@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250703.0 → 0.0.0-nightly-20250704.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +27 -27
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x348430(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x54c2f5,_0x239caa){super(),this['id']=_0x239caa['id'],this['type']=_0x239caa['type'],this['subType']=_0x239caa['subType']||null,this['author']=_0x239caa['author'],this['creator']=_0x239caa['creator']||_0x239caa['author'],this['isExternal']=Boolean(_0x239caa['attributes']&&_0x239caa['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x239caa['originalSuggestionId']||null,this['_model']=_0x54c2f5,this['_onAccept']=_0x239caa['onAccept'],this['_onDiscard']=_0x239caa['onDiscard'],this['_onAttributesChange']=_0x239caa['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x239caa['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x50f9ca=this;for(;_0x50f9ca['previous'];)_0x50f9ca=_0x50f9ca['previous'];return _0x50f9ca;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x251ba4){this['_markerNames']['add'](_0x251ba4);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2d9cbc=>this['_model']['markers']['get'](_0x2d9cbc))['filter'](_0x4ba7c7=>_0x4ba7c7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2459b=>{for(const _0x49d5a1 of this['getMarkers']())_0x2459b['removeMarker'](_0x49d5a1);}),this['_markerNames']['clear']();}['removeMarker'](_0xebfb77){this['_model']['change'](_0x58f20c=>{_0x58f20c['removeMarker'](_0xebfb77);}),this['_markerNames']['delete'](_0xebfb77);}['addRange'](_0x16a107){const _0x793e17='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x793e17),this['_model']['change'](_0x1e7be2=>{_0x1e7be2['addMarker'](_0x793e17,{'range':_0x16a107,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x495fa1){for(const _0x14d02e of this['getRanges']())if(_0x14d02e['isIntersecting'](_0x495fa1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2f136a=>_0x2f136a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x551f74,_0x25dbbd)=>[..._0x551f74,..._0x25dbbd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1c2f06=this['getRanges']();if(0x1!=_0x1c2f06['length'])return null;const _0x5e9a14=_0x1c2f06[0x0],_0x210a64=_0x5e9a14['start']['nodeAfter'],_0x391912=_0x5e9a14['end']['nodeBefore'];return _0x210a64 instanceof _0x5a481d?_0x210a64!=_0x391912?null:_0x210a64: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 _0x2910fb=[];let _0x2cf153=this['head'];for(;_0x2cf153;)_0x2910fb['push'](_0x2cf153),_0x2cf153=_0x2cf153['next'];return _0x2910fb;}['setAttribute'](_0x2c8d33,_0x101e6a){const _0x1e4ee2=_0x173584(this['attributes']);_0x42c5e9(_0x1e4ee2,_0x2c8d33,_0x101e6a),_0x28a429(_0x1e4ee2,this['attributes'])||(this['attributes']=_0x1e4ee2,this['_onAttributesChange'](_0x1e4ee2));}['removeAttribute'](_0x3de4f2){const _0xccc119=_0x173584(this['attributes']);_0x3d4b2d(_0xccc119,_0x3de4f2),_0x28a429(_0xccc119,this['attributes'])||(this['attributes']=_0xccc119,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 _0x13da56()['substr'](0x1,0x5);}}function o(_0x5b9ae6,_0x1eb402,_0xe73ba9){const _0xe3dfa6=_0x5b9ae6['t'],t=_0x5b9ae6['t'];switch(_0x1eb402){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',_0xe73ba9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xe73ba9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xe73ba9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xe73ba9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xe73ba9);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',_0xe73ba9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xe73ba9);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',_0xe73ba9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xe73ba9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xe73ba9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xe73ba9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xe73ba9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xe73ba9);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xe73ba9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xe73ba9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xe73ba9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xe73ba9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xe73ba9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xe73ba9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xe73ba9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xe73ba9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xe73ba9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xe73ba9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xe73ba9);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xe73ba9);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'},_0xe73ba9);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xe73ba9);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xe73ba9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xe73ba9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xe73ba9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xe73ba9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xe73ba9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xe73ba9);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0xe73ba9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xe73ba9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xe73ba9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xe73ba9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xe73ba9);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0xe73ba9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xe73ba9);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'},_0xe73ba9);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'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'},_0xe73ba9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xe73ba9);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'},_0xe73ba9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xe73ba9);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'},_0xe73ba9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xe73ba9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xe73ba9);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'},_0xe73ba9);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xe73ba9);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0xe3dfa6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xe73ba9);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xe3dfa6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xe73ba9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xe73ba9);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'},_0xe73ba9);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'},_0xe73ba9);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'},_0xe73ba9);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1eb402;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x452907,_0x442361){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x452907,this['_locale']=_0x442361;}['getDescriptions'](_0xa705c){const _0x265d13=[],_0xbc355e=new Set(),_0x4aabb2=new Set();for(let _0x1895bd=0x0;_0x1895bd<_0xa705c['length'];_0x1895bd++){const _0x5c5520=_0xa705c[_0x1895bd];if(!_0x5c5520['isInContent'])continue;const _0x563e22=this['_handleCustomCallbackDescription'](_0x5c5520);if(_0x563e22){if(null!=_0x5c5520['subType']){if(_0xbc355e['has'](_0x5c5520['subType']))continue;_0xbc355e['add'](_0x5c5520['subType']);}_0x265d13['push'](_0x563e22);}else{if('attribute'==_0x5c5520['type']){const _0x5e703e=_0x5c5520['data']['key'];if(_0x4aabb2['has'](_0x5e703e))continue;_0x4aabb2['add'](_0x5c5520['data']['key']),_0x5e703e==m?this['_handleRenameSuggestionDescription'](_0x265d13,_0x5c5520):this['_handleAttributeSuggestionDescription'](_0x265d13,_0x5c5520);continue;}'insertion'!=_0x5c5520['type']&&'deletion'!=_0x5c5520['type']||this['_handleInsertRemoveSuggestionDescription'](_0x265d13,_0x5c5520,_0xa705c[_0x1895bd+0x1]);}}return this['_resolveDescriptionItems'](_0x265d13);}['registerDescriptionCallback'](_0x598933){this['_customCallbacks']['push'](_0x598933);}['registerElementLabel'](_0x47a171,_0x3e31dc,_0x1c5f8f=_0xc2125b['normal']){'function'==typeof _0x47a171?_0x542f56(this['_itemLabelsCallbacks'],{'matchingCallback':_0x47a171,'label':_0x3e31dc,'priority':_0x1c5f8f}):this['_itemLabels']['set'](_0x47a171,_0x3e31dc);}['registerAttributeLabel'](_0x18b644,_0x5643dd){this['_attributeLabels']['set'](_0x18b644,_0x5643dd);}['getItemLabel'](_0x14b42d,_0x13bfa1=0x1){let _0x38cb51;for(const _0x5c7799 of this['_itemLabelsCallbacks'])if(_0x5c7799['matchingCallback'](_0x14b42d)){_0x38cb51=_0x5c7799['label'];break;}return _0x38cb51||(_0x38cb51=this['_itemLabels']['get'](_0x14b42d['name'])),_0x38cb51?_0x38cb51(_0x13bfa1):0x1!==_0x13bfa1?_0x13bfa1+'\x20'+_0x14b42d['name']+'s':''+_0x14b42d['name'];}['_addDescriptionItems'](_0xb493d1,_0x1a08ac){const _0x19ef98=_0x1a08ac['getFirstRange']()['getWalker'](),_0x2308fb='insertion'==_0x1a08ac['type']?'add':'remove';for(const _0x445fa8 of _0x19ef98){const _0x52705f=_0x445fa8['item'],_0x3b8163=_0xb493d1[_0xb493d1['length']-0x1];if(_0x52705f['is']('$textProxy'))_0x3b8163&&_0x3b8163['type']['indexOf']('Container')>-0x1&&_0xb493d1['pop'](),_0x3b8163&&'text'==_0x3b8163['type']?_0x3b8163[_0x2308fb]+=_0x52705f['data']:_0xb493d1['push']({'type':'text','add':'add'==_0x2308fb?_0x52705f['data']:'','remove':'remove'==_0x2308fb?_0x52705f['data']:''});else{if(this['_schema']['isObject'](_0x52705f)){const _0x3a8608=_0x52705f;if(_0x3b8163&&_0x3b8163['type']['indexOf']('Container')>-0x1&&_0xb493d1['pop'](),'elementEnd'==_0x445fa8['type'])continue;_0x3b8163&&_0x3b8163['type']==_0x2308fb+'Object'&&_0x3b8163['element']['name']==_0x3a8608['name']?_0x3b8163['quantity']++:_0xb493d1['push']({'type':_0x2308fb+'Object','element':_0x3a8608,'quantity':0x1}),_0x19ef98['skip'](_0x3b8a63=>!('elementEnd'==_0x3b8a63['type']&&_0x3b8a63['item']==_0x52705f));}else{if(this['_schema']['checkChild'](_0x52705f,'$text')||_0x52705f['is']('element','softBreak')){const _0x4320b2=_0x52705f;if('add'==_0x2308fb&&'elementStart'==_0x445fa8['type']||'remove'==_0x2308fb&&'elementEnd'==_0x445fa8['type'])continue;if(_0x3b8163&&-0x1==_0x3b8163['type']['indexOf']('Container')){'text'==_0x3b8163['type']&&(_0x3b8163[_0x2308fb]+='\x0a');continue;}let _0x14a2ca;if(_0x14a2ca='add'==_0x2308fb?_0x4320b2['nextSibling']&&!this['_schema']['isObject'](_0x4320b2['nextSibling'])?_0x4320b2['nextSibling']:null:_0x4320b2['previousSibling']&&!this['_schema']['isObject'](_0x4320b2['previousSibling'])?_0x4320b2['previousSibling']:null,_0x4320b2['isEmpty']||_0x14a2ca&&_0x14a2ca['isEmpty']){const _0x3dd977=_0x14a2ca&&_0x14a2ca['isEmpty']?_0x14a2ca:_0x4320b2;_0x3b8163&&_0x3b8163['type']==_0x2308fb+'EmptyContainer'&&_0x3b8163['element']['name']==_0x3dd977['name']?_0x3b8163['quantity']++:_0xb493d1['push']({'type':_0x2308fb+'EmptyContainer','element':_0x3dd977,'quantity':0x1});}else _0xb493d1['push']({'type':_0x2308fb+'Container','element':_0x4320b2});}}}}}['_resolveDescriptionItems'](_0x3365b4){const _0x2d959f=this['_locale'],_0x22d3c2=[],_0x219402=[],_0x1fa6f5=[];for(const _0x480007 of _0x3365b4)switch(_0x480007['type']){case'text':if(_0x480007['add']=_0x480007['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x480007['remove']=_0x480007['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x480007['add']&&''!=_0x480007['remove']){_0x22d3c2['push']({'type':'replace','content':o(_0x2d959f,'REPLACE_TEXT',['\x22'+_0x480007['remove']+'\x22','\x22'+_0x480007['add']+'\x22'])});continue;}if(null!=_0x480007['add']['match'](/^ +$/)){_0x22d3c2['push']({'type':'insertion','content':o(_0x2d959f,'*Insert:*\x20%0',o(_0x2d959f,'ELEMENT_SPACE',_0x480007['add']['length']))});continue;}if(null!=_0x480007['remove']['match'](/^ +$/)){_0x22d3c2['push']({'type':'deletion','content':o(_0x2d959f,'*Remove:*\x20%0',o(_0x2d959f,'ELEMENT_SPACE',_0x480007['remove']['length']))});continue;}if(''!=_0x480007['add']){_0x22d3c2['push']({'type':'insertion','content':o(_0x2d959f,'*Insert:*\x20%0','\x22'+_0x480007['add']+'\x22')});continue;}_0x22d3c2['push']({'type':'deletion','content':o(_0x2d959f,'*Remove:*\x20%0','\x22'+_0x480007['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x22d3c2['push']({'type':'insertion','content':o(_0x2d959f,'*Insert:*\x20%0',this['getItemLabel'](_0x480007['element'],_0x480007['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x22d3c2['push']({'type':'deletion','content':o(_0x2d959f,'*Remove:*\x20%0',this['getItemLabel'](_0x480007['element'],_0x480007['quantity']))});continue;case'addContainer':_0x22d3c2['push']({'type':'insertion','content':o(_0x2d959f,'*Split:*\x20%0',this['getItemLabel'](_0x480007['element'],_0x480007['quantity']))});continue;case'removeContainer':_0x22d3c2['push']({'type':'deletion','content':o(_0x2d959f,'*Merge:*\x20%0',this['getItemLabel'](_0x480007['element'],_0x480007['quantity']))});continue;case'addFormat':_0x219402['push'](_0x480007['key']);continue;case'removeFormat':_0x1fa6f5['push'](_0x480007['key']);continue;default:_0x22d3c2['push'](_0x480007);}if(_0x219402['length']){const _0x287da7=_0x219402['map'](_0x156959=>this['_attributeLabels']['has'](_0x156959)?this['_attributeLabels']['get'](_0x156959):_0x156959)['join'](',\x20');_0x22d3c2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x287da7)});}if(_0x1fa6f5['length']){const _0x4c0a4a=_0x1fa6f5['map'](_0x56e95c=>this['_attributeLabels']['has'](_0x56e95c)?this['_attributeLabels']['get'](_0x56e95c):_0x56e95c)['join'](',\x20');_0x22d3c2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c0a4a)});}return _0x22d3c2;}['_handleCustomCallbackDescription'](_0x1bcb52){for(const _0x48964a of this['_customCallbacks']){const _0x27d794=_0x48964a(_0x1bcb52);if(_0x27d794&&'type'in _0x27d794)return _0x27d794;}}['_handleAttributeSuggestionDescription'](_0x51a453,_0x579b9e){const _0x554f8a=_0x579b9e['data'],_0x4a5dfb=void 0x0===_0x554f8a['newValue']?'removeFormat':'addFormat';_0x51a453['push']({'type':_0x4a5dfb,'key':_0x554f8a['key']});}['_handleRenameSuggestionDescription'](_0x148158,_0x62f0b4){_0x148158['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x62f0b4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xfe3332,_0x2d5b67,_0x399d42){if(this['_addDescriptionItems'](_0xfe3332,_0x2d5b67),_0x399d42&&_0x399d42['getFirstRange']()&&!_0x2d5b67['getFirstRange']()['end']['isEqual'](_0x399d42['getFirstRange']()['start'])){const _0x136c81=_0xfe3332[_0xfe3332['length']-0x1],_0x187e42='insertion'==_0x2d5b67['type']?'add':'remove';_0x136c81&&'text'==_0x136c81['type']&&(_0x136c81[_0x187e42]+='\x0a');}}}class O extends _0xb6c9b9{['afterInit'](){const _0x1443b5=this['editor'],_0x5c476e=_0x1443b5['plugins']['get']('TrackChangesEditing');_0x1443b5['commands']['get']('showAIAssistant')&&_0x5c476e['enableCommand']('showAIAssistant');}}class E extends _0xb6c9b9{['afterInit'](){const _0x2bd04f=this['editor'],_0x56c62a=_0x2bd04f['locale'];if(!_0x2bd04f['plugins']['has']('AlignmentEditing'))return;const _0x1905ef=_0x2bd04f['plugins']['get']('TrackChangesEditing');_0x1905ef['enableDefaultAttributesIntegration']('alignment'),_0x1905ef['registerBlockAttribute']('alignment'),_0x1905ef['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x56c62a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fa74f=this['editor'],_0xef5311=_0x1fa74f['locale'];_0x1fa74f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ad3e1=>{if('formatBlock'!=_0x3ad3e1['type'])return;const {data:_0x17e35d}=_0x3ad3e1;if(_0x17e35d&&'alignment'==_0x17e35d['commandName']){const _0x534a81=_0x17e35d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xef5311,'*Format:*\x20%0',function(_0x28e982){switch(_0x28e982){case'left':return o(_0xef5311,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xef5311,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xef5311,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xef5311,'FORMAT_JUSTIFY_TEXT');}}(_0x534a81))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xb6c9b9{['afterInit'](){const _0x7c3d5=this['editor'],_0x3b4e06=_0x7c3d5['plugins']['get']('TrackChangesEditing'),_0x183c63=_0x7c3d5['locale'];for(const _0x596a3d of Yt){if(!_0x7c3d5['plugins']['has'](_0x596a3d))continue;const _0x5a8be4=_0x596a3d['slice'](0x0,-0x7)['toLowerCase'](),_0x28792b='FORMAT_'+_0x5a8be4['toUpperCase']();_0x3b4e06['enableDefaultAttributesIntegration'](_0x5a8be4),_0x3b4e06['registerInlineAttribute'](_0x5a8be4),_0x3b4e06['descriptionFactory']['registerAttributeLabel'](_0x5a8be4,o(_0x183c63,_0x28792b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2de263=this['editor'],_0x1d4b6a=_0x2de263['locale'],_0x3b04e6=_0x2de263['plugins']['get']('TrackChangesEditing');function _0x239c20(_0xc90e7f,_0xfce38b){_0x3b04e6['descriptionFactory']['registerDescriptionCallback'](_0x52436e=>{if('formatInline'!=_0x52436e['type'])return;const {data:_0x4005f0}=_0x52436e;return _0x4005f0&&_0x4005f0['commandName']===_0xc90e7f?_0x4005f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d4b6a,'*Format:*\x20%0',_0xfce38b)}:{'type':'format','content':o(_0x1d4b6a,'*Remove\x20format:*\x20%0',_0xfce38b)}:void 0x0;});}_0x239c20('bold',o(_0x1d4b6a,'FORMAT_BOLD')),_0x239c20('italic',o(_0x1d4b6a,'FORMAT_ITALIC')),_0x239c20('underline',o(_0x1d4b6a,'FORMAT_UNDERLINE')),_0x239c20('code',o(_0x1d4b6a,'FORMAT_CODE')),_0x239c20('strikethrough',o(_0x1d4b6a,'FORMAT_STRIKETHROUGH')),_0x239c20('subscript',o(_0x1d4b6a,'FORMAT_SUBSCRIPT')),_0x239c20('superscript',o(_0x1d4b6a,'FORMAT_SUPERSCRIPT'));}}class U extends _0xb6c9b9{['afterInit'](){const _0x3bef5=this['editor'],_0x3abaaf=_0x3bef5['locale'];if(!_0x3bef5['plugins']['has']('BlockQuoteEditing'))return;const _0x1b78e0=_0x3bef5['plugins']['get']('TrackChangesEditing'),_0x11e22c=this['editor']['commands']['get']('blockQuote');_0x1b78e0['enableCommand']('blockQuote',(_0x2d02f2,_0x32c9e9={})=>{const _0x56f5c3=this['editor']['model']['document']['selection'],_0x46db41=_0x32c9e9&&void 0x0!==_0x32c9e9['forceValue']?_0x32c9e9['forceValue']:!_0x11e22c['value'];let _0x3bceac=[];if(_0x46db41){const _0x21b6bc=Array['from'](_0x56f5c3['getSelectedBlocks']())['filter'](_0x248d0e=>to(_0x248d0e)||function(_0x3fe323,_0x446856){const _0x46ff4b=_0x446856['checkChild'](_0x3fe323['parent'],'blockQuote'),_0x7bf15d=_0x446856['checkChild'](['$root','blockQuote'],_0x3fe323);return _0x46ff4b&&_0x7bf15d;}(_0x248d0e,this['editor']['model']['schema']));_0x3bceac=Zt(_0x21b6bc,_0x3bef5['model']);}else{const _0x38ca13=Array['from'](_0x56f5c3['getSelectedBlocks']())['filter'](_0x78cb55=>to(_0x78cb55));_0x3bceac=Zt(_0x38ca13,_0x3bef5['model']);}_0x3bef5['model']['change'](()=>{for(const _0x1a5d24 of _0x3bceac)_0x1b78e0['markBlockFormat'](_0x1a5d24,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x46db41}]});});}),_0x1b78e0['descriptionFactory']['registerDescriptionCallback'](_0x28e7f5=>{const {data:_0x57b596}=_0x28e7f5;if(_0x57b596&&'blockQuote'==_0x57b596['commandName']){const _0x1fe3cf=o(_0x3abaaf,'ELEMENT_BLOCK_QUOTE');return _0x57b596['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3abaaf,'*Set\x20format:*\x20%0',_0x1fe3cf)}:{'type':'format','content':o(_0x3abaaf,'*Remove\x20format:*\x20%0',_0x1fe3cf)};}});}}function to(_0x2c6b0d){return'blockQuote'==_0x2c6b0d['parent']['name'];}class V extends _0xb6c9b9{['afterInit'](){const _0x46c8db=this['editor'],_0x5ed939=_0x46c8db['locale'],_0x449e27=_0x46c8db['plugins']['get']('TrackChangesEditing');_0x46c8db['plugins']['has']('BookmarkEditing')&&(_0x449e27['enableCommand']('insertBookmark'),_0x449e27['enableDefaultAttributesIntegration']('updateBookmark'),_0x449e27['registerBlockAttribute']('bookmarkId'),_0x449e27['descriptionFactory']['registerDescriptionCallback'](_0x39ec68=>{if('insertion'!=_0x39ec68['type']&&'deletion'!=_0x39ec68['type']&&'attribute'!=_0x39ec68['type'])return;const _0x3cf8c8=_0x39ec68['getContainedElement']();if(null==_0x3cf8c8)return;if(!_0x3cf8c8['is']('element','bookmark'))return;const _0x1db82b=_0x3cf8c8['getAttribute']('bookmarkId');if('insertion'==_0x39ec68['type'])return{'type':'insertion','content':o(_0x5ed939,'*Insert:*\x20%0','\x22'+_0x1db82b+'\x22\x20'+o(_0x5ed939,'ELEMENT_BOOKMARK'))};if('deletion'==_0x39ec68['type'])return{'type':'deletion','content':o(_0x5ed939,'*Remove:*\x20%0','\x22'+_0x1db82b+'\x22\x20'+o(_0x5ed939,'ELEMENT_BOOKMARK'))};const {data:_0x115f98}=_0x39ec68;if(!_0x115f98||'bookmarkId'!=_0x115f98['key'])return;return{'type':'format','content':o(_0x5ed939,'*Set\x20bookmark:*\x20%0','\x22'+_0x115f98['newValue']+'\x22')};}));}}class F extends _0xb6c9b9{['afterInit'](){const _0xb0b8a8=this['editor'];_0xb0b8a8['plugins']['has']('CaseChange')&&(_0xb0b8a8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xb0b8a8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xb0b8a8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xb6c9b9{['afterInit'](){const _0x30a7bf=this['editor'];_0x30a7bf['commands']['get']('ckbox')&&_0x30a7bf['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xb6c9b9{['afterInit'](){const _0x168803=this['editor'];if(!_0x168803['plugins']['has']('CodeBlock'))return;const _0x36a615=_0x168803['plugins']['get']('TrackChangesEditing'),_0x5a8e55=_0x168803['locale'],_0x6bc8aa=_0x168803['config']['get']('codeBlock')['languages'],_0x215f7e=_0x168803['commands']['get']('codeBlock');_0x36a615['enableCommand']('indentCodeBlock'),_0x36a615['enableCommand']('outdentCodeBlock'),_0x36a615['enableCommand']('codeBlock',(_0x98162,_0x505ed8={})=>{const _0xe8cfb3=_0x168803['model'],_0x3298a6=_0x168803['model']['document']['selection'],_0x3f7931=_0x505ed8&&void 0x0!==_0x505ed8['forceValue']?_0x505ed8['forceValue']:!_0x215f7e['value'];let _0x3ebc4b;_0x505ed8['language']||(_0x505ed8['language']=_0x6bc8aa[0x0]['language']),_0x3ebc4b=_0x3f7931?Array['from'](_0x3298a6['getSelectedBlocks']())['filter'](_0x1f6621=>oo(_0x1f6621)||function(_0x23932e,_0x4079b6){if(_0x23932e['is']('rootElement')||_0x4079b6['isLimit'](_0x23932e))return!0x1;return _0x4079b6['checkChild'](_0x23932e['parent'],'codeBlock');}(_0x1f6621,_0xe8cfb3['schema'])):Array['from'](_0x3298a6['getSelectedBlocks']())['filter'](_0x372590=>oo(_0x372590));const _0x49ce03=Zt(_0x3ebc4b,_0xe8cfb3);_0xe8cfb3['change'](()=>{for(const _0xa88e58 of _0x49ce03)_0x36a615['markBlockFormat'](_0xa88e58,{'commandName':'codeBlock','commandParams':[{..._0x505ed8,'forceValue':_0x3f7931}],'formatGroupId':'blockName'});});}),(_0x36a615['descriptionFactory']['registerElementLabel']('codeBlock',_0x433f9b=>o(_0x5a8e55,'ELEMENT_CODE_BLOCK',_0x433f9b)),_0x36a615['descriptionFactory']['registerDescriptionCallback'](_0x26986f=>{if('formatBlock'!=_0x26986f['type'])return;const _0x1de900=_0x5a8e55['t'],{data:_0x7929c0}=_0x26986f;if(!_0x7929c0||'codeBlock'!=_0x7929c0['commandName'])return;const _0x1a30ca=_0x7929c0['commandParams'][0x0]['language'],_0xb7d991=_0x1de900(_0x6bc8aa['find'](_0x15e2a9=>_0x15e2a9['language']===_0x1a30ca)['label'])['toLowerCase']();return _0x7929c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a8e55,'*Set\x20format:*\x20%0',o(_0x5a8e55,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xb7d991+')')}:{'type':'format','content':o(_0x5a8e55,'*Remove\x20format:*\x20%0',o(_0x5a8e55,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x47ae77){return'codeBlock'==_0x47ae77['name'];}class J extends _0xb6c9b9{['afterInit'](){const _0x48c9f7=this['editor'];if(!_0x48c9f7['plugins']['has']('CommentsEditing'))return;_0x48c9f7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1b28c0,_0x4a9a93,_0x474c5d){const _0x3e72bb=[];for(const _0x1349ad of _0x4a9a93['getItems']())_0x1349ad['hasAttribute'](_0x1b28c0)&&_0x3e72bb['push'](_0x474c5d['createRangeOn'](_0x1349ad));return _0x3e72bb;}function De(_0x509cf3,_0x5177b0,{showActiveMarker:_0x515b77=!0x0}={}){const _0x34c521=_0x509cf3['plugins']['get']('TrackChangesEditing');return(_0x133d33,_0x46e9db,_0x204ea7)=>{if(!_0x204ea7['consumable']['test'](_0x46e9db['markerRange'],_0x133d33['name']))return;const _0x2d6b24=_0x46e9db['markerRange']['getWalker'](),_0x26c654=_0x46e9db['markerRange']['start'],_0x130d13=_0x509cf3['model']['schema'];let _0x1b43b4=null,_0x27df1b=null,_0x50a147=!0x1,_0x147257=!0x1;for(const _0x32f734 of _0x2d6b24){const _0x1137c5=_0x32f734['item'];_0x50a147=_0x50a147||_0x130d13['isContent'](_0x1137c5);const _0x491537=_0x204ea7['mapper']['toViewElement'](_0x1137c5);if(_0x491537&&_0x491537['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x32f734['type']&&(_0x130d13['isBlock'](_0x1137c5)&&!_0x130d13['isLimit'](_0x1137c5)&&(_0x1137c5['nextSibling']||_0x26c654['isAtEnd']?_0x1b43b4&&_0x1b43b4['parent']==_0x1137c5||(_0x1b43b4=_0x1137c5,_0x1daef2(_0x32f734['previousPosition']),_0x147257=!0x0):_0x27df1b=_0x27df1b||_0x32f734['previousPosition']));}function _0x1daef2(_0x33d808){const {id:_0x44a7bb,authorId:_0x237e1a}=_0x34c521['_splitMarkerName'](_0x46e9db['markerName']),_0x3b530f=_0x204ea7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5177b0,'data-suggestion':_0x44a7bb,'data-author-id':_0x237e1a}),_0x5c625a=_0x204ea7['mapper']['toViewPosition'](_0x33d808);_0x515b77&&_0x34c521['activeMarkers']['includes'](_0x46e9db['markerName'])&&_0x204ea7['writer']['addClass']('ck-suggestion-marker--active',_0x3b530f),_0x204ea7['writer']['insert'](_0x5c625a,_0x3b530f),_0x204ea7['mapper']['bindElementToMarker'](_0x3b530f,_0x46e9db['markerName']);}_0x50a147||_0x147257||!_0x27df1b||_0x1daef2(_0x27df1b);};}class K extends _0xb6c9b9{static get['requires'](){return[_0x3e5983];}['init'](){const _0x5a98cc=this['editor'],_0x1ded6d=_0x5a98cc['plugins']['get']('TrackChangesEditing');_0x1ded6d['enableCommand']('delete');const _0x354e02=_0x5a98cc['commands']['get']('deleteForward');_0x1ded6d['enableCommand']('deleteForward',(_0x4c06df,_0x404260={})=>{const _0x3c9f3e=_0x5a98cc['model']['createSelection'](_0x5a98cc['model']['document']['selection']);_0x3c9f3e['isCollapsed']&&_0x5a98cc['model']['modifySelection'](_0x3c9f3e,{'direction':'forward','unit':_0x404260['unit']});const _0x4a5f46=_0x3c9f3e['getFirstRange'](),_0x1149d9=_0x4ffd26['fromRange'](_0x4a5f46);let _0x40cbb5;_0x4c06df(_0x404260),_0x40cbb5='$graveyard'==_0x1149d9['root']['rootName']?_0x5a98cc['model']['createRange'](_0x4a5f46['start']):_0x5a98cc['model']['createRange'](_0x1149d9['start'],_0x1149d9['end']),_0x1149d9['detach'](),_0x5a98cc['model']['enqueueChange'](_0x354e02['buffer']['batch'],_0x44b2d5=>{_0x354e02['buffer']['lock'](),_0x44b2d5['setSelection'](_0x44b2d5['createRange'](_0x40cbb5['end'])),_0x354e02['buffer']['unlock']();});}),_0x5a98cc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x5a98cc,'merge'),{'priority':'high'}),_0x5a98cc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1db9a5,_0x537a55,_0x1cea51)=>{_0x1cea51['options']['showSuggestionHighlights']&&De(_0x5a98cc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1db9a5,_0x537a55,_0x1cea51);},{'priority':'high'}),_0x5a98cc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x24da81,_0x157295,_0x30ca8f)=>{const _0x38548a=_0x30ca8f['mapper']['markerNameToElements'](_0x157295['markerName']);if(_0x38548a){for(const _0x17749a of _0x38548a)_0x17749a['is']('uiElement')&&(_0x30ca8f['mapper']['unbindElementFromMarkerName'](_0x17749a,_0x157295['markerName']),_0x30ca8f['writer']['remove'](_0x17749a));}},{'priority':'high'});}}class H extends _0xb6c9b9{['afterInit'](){const _0x34cc78=this['editor'];if(!_0x34cc78['plugins']['has']('ListEditing'))return;const _0x568c2d=_0x34cc78['locale'],_0x197f97=_0x34cc78['plugins']['get']('TrackChangesEditing'),_0x547559=_0x34cc78['plugins']['has']('TodoListEditing'),_0x4bc1a1=!!_0x34cc78['config']['get']('list.multiBlock');function _0x1d19bb(_0x20acd3){return{'type':'format','content':''+o(_0x568c2d,'*Set\x20format:*\x20%0',_0x20acd3)};}function _0x3bbed0(_0x308de5){return{'type':'format','content':''+o(_0x568c2d,'*Remove\x20format:*\x20%0',_0x308de5)};}_0x197f97['enableDefaultAttributesIntegration']('numberedList'),_0x197f97['enableDefaultAttributesIntegration']('bulletedList'),_0x197f97['enableDefaultAttributesIntegration']('customNumberedList'),_0x197f97['enableDefaultAttributesIntegration']('customBulletedList'),_0x197f97['enableDefaultAttributesIntegration']('indentList'),_0x197f97['enableDefaultAttributesIntegration']('outdentList'),_0x197f97['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x197f97['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x197f97['registerBlockAttribute']('listItemId'),_0x197f97['registerBlockAttribute']('listType'),_0x197f97['registerBlockAttribute']('listIndent'),_0x4bc1a1&&(_0x197f97['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x197f97['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x547559&&(_0x197f97['enableDefaultAttributesIntegration']('todoList'),_0x197f97['enableDefaultAttributesIntegration']('checkTodoList'),_0x197f97['registerBlockAttribute']('todoListChecked'),_0x197f97['descriptionFactory']['registerDescriptionCallback'](_0x1f24fd=>{const {data:_0x275793}=_0x1f24fd;if(_0x275793&&'todoListChecked'==_0x275793['key'])return{'type':'format','content':_0x275793['newValue']?o(_0x568c2d,'*Check\x20item*'):o(_0x568c2d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x32ae02=>{if(_0x32ae02['batch']['isUndo'])return!0x1;let _0x2a9b6d=!0x1;const _0xe5a9a2=_0x197f97['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19b8eb=>'todoListChecked'===_0x197f97['_getAttributeKey'](_0x19b8eb));for(const _0x3d7135 of _0xe5a9a2){'todo'!=_0x3d7135['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x197f97['_findSuggestions'](_0x3d7135['getFirstRange'](),'attribute')['find'](_0x14cd1e=>'listType'===_0x197f97['_getAttributeKey'](_0x14cd1e['suggestion']))||(_0x32ae02['removeMarker'](_0x3d7135['getFirstMarker']()),_0x2a9b6d=!0x0));}return _0x2a9b6d;})),_0x197f97['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x568c2d,'FORMAT_INDENT'));const _0x47e79e={'type':'format','content':''};_0x197f97['descriptionFactory']['registerDescriptionCallback'](_0x17b43b=>{const {data:_0x475740}=_0x17b43b;if(!_0x475740||'listType'!=_0x475740['key'])return;let _0x57aedf=_0x17b43b['head'];for(;_0x57aedf;){if(_0x57aedf['data']&&(('listStyle'==_0x57aedf['data']['key']||'listMarkerStyle'==_0x57aedf['data']['key'])&&(_0x57aedf['data']['newValue']&&'default'!=_0x57aedf['data']['newValue']||'default'!=_0x57aedf['data']['oldValue']&&!_0x475740['newValue'])||!_0x4bc1a1&&_0x57aedf['data']['key']==m))return _0x47e79e;_0x57aedf=_0x57aedf['next'];}if(null==_0x475740['newValue'])switch(_0x475740['oldValue']){case'bulleted':return _0x3bbed0(o(_0x568c2d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3bbed0(o(_0x568c2d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3bbed0(o(_0x568c2d,'ELEMENT_TODO_LIST'));}switch(_0x475740['newValue']){case'bulleted':return _0x1d19bb(o(_0x568c2d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d19bb(o(_0x568c2d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d19bb(o(_0x568c2d,'ELEMENT_TODO_LIST'));}}),_0x197f97['descriptionFactory']['registerDescriptionCallback'](_0x3694c8=>{const {data:_0x484d44}=_0x3694c8;if(_0x484d44&&'listIndent'==_0x484d44['key'])return null==_0x484d44['newValue']||null==_0x484d44['oldValue']&&0x0==_0x484d44['newValue']?_0x47e79e:void 0x0;}),_0x197f97['descriptionFactory']['registerDescriptionCallback'](_0xa1bfff=>{if('attribute'!=_0xa1bfff['type'])return;const {data:_0x3df6db}=_0xa1bfff;if(!_0x3df6db||'listItemId'!=_0x3df6db['key'])return;const _0x26f524=Te(_0xa1bfff);return'newValue'==_0x26f524?{'type':'format','content':o(_0x568c2d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x26f524?{'type':'format','content':o(_0x568c2d,'*Split:*\x20list\x20item')}:_0x47e79e;}),_0x34cc78['model']['document']['registerPostFixer'](_0x5f4c65=>this['listItemIdFixer'](_0x5f4c65)),_0x34cc78['model']['document']['registerPostFixer'](_0xc75fa3=>this['noTrackChangesFixer'](_0xc75fa3)),_0x34cc78['model']['document']['on']('change:data',(_0x38503a,_0x46f12b)=>{if(_0x46f12b['isUndo']||!_0x46f12b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x52f7cf){if(_0x52f7cf['batch']['isUndo']||!_0x52f7cf['batch']['isLocal'])return!0x1;let _0x5ad26a=!0x1;const _0x48ac55=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42b740=>_0x42b740['data']&&'listItemId'==_0x42b740['data']['key'])['filter'](_0x47829a=>_0x47829a['data']['newValue']&&_0x47829a['data']['oldValue']);for(const _0x2eda97 of _0x48ac55)Te(_0x2eda97)||(_0x52f7cf['removeMarker'](_0x2eda97['getFirstMarker']()),_0x5ad26a=!0x0);return _0x5ad26a;}['noTrackChangesFixer'](_0x5e3c08){if(_0x5e3c08['batch']['isUndo']||!_0x5e3c08['batch']['isLocal'])return!0x1;const _0x51854c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x51854c['trackChangesCommand']['value'])return!0x1;let _0x273b49=!0x1;const _0x2280a9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x59e59b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4b8cdc=>'attribute'==_0x4b8cdc['type'])['filter'](_0x2c27ed=>_0x2280a9['includes'](_0x2c27ed['attributeKey']));if(0x0==_0x59e59b['length'])return _0x273b49;for(const _0x24b06c of _0x59e59b){const _0x472773=_0x51854c['_findSuggestions'](_0x24b06c['range'],'attribute')['filter'](_0xab4990=>!_0xab4990['meta']['isNextTo'])['map'](_0x3cc530=>_0x3cc530['suggestion'])['filter'](_0x2f3c7b=>{const _0x4b18c7=_0x51854c['_getAttributeKey'](_0x2f3c7b);return _0x2280a9['includes'](_0x4b18c7);});if(_0x472773['length']){for(const _0x3a8682 of _0x472773)_0x5e3c08['removeMarker'](_0x3a8682['getFirstMarker']());_0x273b49=!0x0;}}return _0x273b49;}['assureChains'](){const _0x1d3434=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfe5a26=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x48423b;const _0x2ba582=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x523fd4=>{if(_0x523fd4['data']['oldRange']||!_0x523fd4['data']['newRange'])return null;if(!_0x523fd4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1efcfb}=_0x1d3434['_splitMarkerName'](_0x523fd4['name']);if(!_0x1d3434['hasSuggestion'](_0x1efcfb))return null;const _0x1c13d7=_0x1d3434['getSuggestion'](_0x1efcfb);return _0xfe5a26['includes'](_0x1c13d7['data']['key']);})['map'](_0x50c42a=>{const {id:_0x92f000}=_0x1d3434['_splitMarkerName'](_0x50c42a['name']),_0x5e7c3b=_0x1d3434['getSuggestion'](_0x92f000);return _0x48423b=_0x5e7c3b['attributes']['groupId'],_0x5e7c3b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2ba582['size'])return;const _0x30f5f9=_0x1d3434['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52752d=>'attribute'==_0x52752d['type']&&_0x52752d['data']&&_0xfe5a26['includes'](_0x52752d['data']['key'])&&_0x52752d['attributes']['groupId']!=_0x48423b)['map'](_0x7f23ae=>({'listItem':_0x7f23ae['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7f23ae['attributes']['groupId']})),_0x5f2652=new Set();for(const {groupId:_0x3b4ea5,listItem:_0x10d871}of _0x30f5f9)_0x2ba582['has'](_0x10d871)&&_0x5f2652['add'](_0x3b4ea5);for(const _0x1ae4b0 of _0x1d3434['getSuggestions']())_0x5f2652['has'](_0x1ae4b0['attributes']['groupId'])&&_0x1ae4b0['setAttribute']('groupId',_0x48423b);}['_supportLegacySuggestions'](){const _0x30e4da=this['editor'],_0x11035e=_0x30e4da['locale'],_0x1eb72f=_0x30e4da['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1eb72f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xe57535,_0x131f89){const _0xdd747c=[];for(let _0xb28762 of _0xe57535)_0xb28762['start']['nodeAfter']===_0xb28762['end']['parent']&&(_0xb28762=_0x30e4da['model']['createRange'](_0x30e4da['model']['createPositionAt'](_0xb28762['start']['nodeAfter'],0x0))),_0xdd747c['push'](_0xb28762);_0x30e4da['model']['change'](_0x15d930=>{const _0x414aa3=_0x30e4da['model']['document']['selection'],_0x5aea2f=Array['from'](_0x414aa3['getRanges']())['map'](_0x1c9843=>_0x4ffd26['fromRange'](_0x1c9843));_0x15d930['setSelection'](_0xdd747c),_0x30e4da['commands']['get'](_0x131f89['commandName'])['refresh'](),_0x131f89['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x30e4da['execute'](_0x131f89['commandName'],..._0x131f89['commandParams']),_0x15d930['setSelection'](_0x5aea2f);for(const _0xb95550 of _0x5aea2f)_0xb95550['detach']();});}),_0x1eb72f['descriptionFactory']['registerElementLabel'](function(_0x29a37f){const _0x1189b4=!_0x30e4da['model']['schema']['isObject'](_0x29a37f),_0x4f803b=_0x29a37f['previousSibling'],_0x202b3a=_0x29a37f['nextSibling'],_0x36d035=_0x29a37f['getAttribute']('listItemId'),_0x33e2f7=!_0x4f803b||_0x4f803b['getAttribute']('listItemId')!==_0x36d035,_0xa6d897=!_0x202b3a||_0x202b3a['getAttribute']('listItemId')!==_0x36d035;return _0x1189b4&&Boolean(_0x36d035)&&_0x33e2f7&&_0xa6d897;},_0x1db29a=>o(_0x11035e,'ELEMENT_LIST_ITEM',_0x1db29a));}['_registerLegacyDescription'](){const _0x354f84=this['editor'],_0x2eba74=_0x354f84['locale'];function _0x4f5a21(_0x600ad3){const _0x5b5c02=_0x354f84['commands']['get']('bulletedList')['value'],_0x15b92b=_0x354f84['commands']['get']('numberedList')['value'];return'numberedList'===_0x600ad3?_0x5b5c02:_0x15b92b;}_0x354f84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x564b03){if('formatBlock'!=_0x564b03['type'])return;const {data:_0x5a4ac8}=_0x564b03;if(!_0x5a4ac8)return;let _0xc2b2d8,_0x37a60c,_0x528195,_0x59aa1c;switch(_0x5a4ac8['commandName']){case'bulletedList':_0x528195=_0x5a4ac8['commandParams'][0x0]['forceValue'],_0x59aa1c=_0x4f5a21(_0x5a4ac8['commandName']),_0xc2b2d8=_0x528195?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59aa1c&&_0x354f84['config']['get']('list.multiBlock')||(_0xc2b2d8='*Change\x20to:*\x20%0'),_0x37a60c={'type':'format','content':o(_0x2eba74,_0xc2b2d8,o(_0x2eba74,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x528195=_0x5a4ac8['commandParams'][0x0]['forceValue'],_0x59aa1c=_0x4f5a21(_0x5a4ac8['commandName']),_0xc2b2d8=_0x528195?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59aa1c&&_0x354f84['config']['get']('list.multiBlock')||(_0xc2b2d8='*Change\x20to:*\x20%0'),_0x37a60c={'type':'format','content':o(_0x2eba74,_0xc2b2d8,o(_0x2eba74,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xc2b2d8='*Indent:*\x20%0',_0x37a60c={'type':'format','content':o(_0x2eba74,_0xc2b2d8,o(_0x2eba74,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xc2b2d8=function(_0x6daca7){const _0x378ea4=_0x6daca7['getFirstRange']();let _0x5232e8=_0x378ea4['start']['nodeAfter'];for(;_0x5232e8&&_0x378ea4['containsItem'](_0x5232e8);){if(_0x5232e8['getAttribute']('listIndent')>0x0)return!0x1;_0x5232e8=_0x5232e8['nextSibling'];}return!0x0;}(_0x564b03)?o(_0x2eba74,'*Format:*\x20remove\x20from\x20%0',o(_0x2eba74,function(_0x2ae2b3){return'ELEMENT_'+_0x2ae2b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x564b03))):o(_0x2eba74,'*Outdent:*\x20%0',o(_0x2eba74,'ELEMENT_LIST_ITEM')),_0x37a60c={'type':'format','content':_0xc2b2d8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5a4ac8['multipleBlocks']&&(_0xc2b2d8='*Merge:*\x20%0',_0x37a60c={'type':'deletion','content':o(_0x2eba74,_0xc2b2d8,o(_0x2eba74,'ELEMENT_LIST_ITEM'))});}return _0x37a60c;});}}function Te(_0x1baed9){let _0x494fd3=_0x1baed9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x494fd3;){const _0x1d7cdd=_0x494fd3['getAttribute']('listItemId');if(!_0x1d7cdd)return!0x1;if(_0x1d7cdd==_0x1baed9['data']['newValue'])return'newValue';if(_0x1d7cdd==_0x1baed9['data']['oldValue'])return'oldValue';_0x494fd3=_0x494fd3['previousSibling'];}return!0x1;}class q extends _0xb6c9b9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x15e4e3=this['editor']['config']['get']('list.properties'),_0x1323ac=this['editor']['plugins']['get']('TrackChangesEditing');_0x15e4e3['styles']&&(_0x1323ac['enableDefaultAttributesIntegration']('listStyle'),_0x1323ac['registerBlockAttribute']('listStyle')),_0x15e4e3['reversed']&&(_0x1323ac['enableDefaultAttributesIntegration']('listReversed'),_0x1323ac['registerBlockAttribute']('listReversed')),_0x15e4e3['startIndex']&&(_0x1323ac['enableDefaultAttributesIntegration']('listStart'),_0x1323ac['registerBlockAttribute']('listStart'));const _0x5cebed={'type':'format','content':''};_0x1323ac['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x32e02e=this['editor']['locale'];_0x1323ac['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x32e02e,'FORMAT_LIST_REVERSED')),_0x1323ac['descriptionFactory']['registerDescriptionCallback'](_0x99f94=>{const {data:_0x2674bb}=_0x99f94;if(_0x2674bb&&'listReversed'==_0x2674bb['key'])return null==_0x2674bb['newValue']||0x0==_0x2674bb['newValue']&&null==_0x2674bb['oldValue']?_0x5cebed:void 0x0;}),_0x1323ac['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x32e02e,'FORMAT_LIST_START')),_0x1323ac['descriptionFactory']['registerDescriptionCallback'](_0x4476fc=>{const {data:_0x4592e0}=_0x4476fc;if(_0x4592e0&&'listStart'==_0x4592e0['key'])return null==_0x4592e0['newValue']||0x1==_0x4592e0['newValue']&&null==_0x4592e0['oldValue']?_0x5cebed:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xac4c64=>{if(_0xac4c64['batch']['isUndo'])return!0x1;let _0x39814e=!0x1;const _0x3e53ce=_0x1323ac['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a877e=>{const _0x30348f=_0x1323ac['_getAttributeKey'](_0x4a877e);return'listStart'==_0x30348f||'listReversed'==_0x30348f;});for(const _0x201c8c of _0x3e53ce){const _0x2cec5b=_0x201c8c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2cec5b||'customNumbered'==_0x2cec5b)continue;_0x1323ac['_findSuggestions'](_0x201c8c['getFirstRange'](),'attribute')['find'](_0x2cadb1=>'listType'==_0x1323ac['_getAttributeKey'](_0x2cadb1['suggestion']))||(_0xac4c64['removeMarker'](_0x201c8c['getFirstMarker']()),_0x39814e=!0x0);}return _0x39814e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xde59f4){const _0x1b4afb=this['editor']['locale'],{data:_0x4de885}=_0xde59f4,_0x32d051={'type':'format','content':''};if(!_0x4de885||'listStyle'!=_0x4de885['key'])return;if(!_0x4de885['oldValue'])return'default'==_0x4de885['newValue']?_0x32d051:{'type':'format','content':''+o(_0x1b4afb,'*Set\x20format:*\x20%0',o(_0x1b4afb,this['_getTranslationKeyForListStyle'](_0x4de885['newValue'])))};if(!_0x4de885['newValue']){if('default'==_0x4de885['oldValue'])return _0x32d051;let _0x1ffca0=_0xde59f4['head'];for(;_0x1ffca0;){if(_0x1ffca0['data']&&'listType'==_0x1ffca0['data']['key']&&_0x1ffca0['data']['newValue'])return _0x32d051;_0x1ffca0=_0x1ffca0['next'];}return{'type':'format','content':''+o(_0x1b4afb,'*Remove\x20format:*\x20%0',o(_0x1b4afb,this['_getTranslationKeyForListStyle'](_0x4de885['oldValue'])))};}if('default'!=_0x4de885['newValue'])return{'type':'format','content':''+o(_0x1b4afb,'*Set\x20format:*\x20%0',o(_0x1b4afb,this['_getTranslationKeyForListStyle'](_0x4de885['newValue'])))};let _0x5e48e1=_0xde59f4['head'];for(;_0x5e48e1;){if(_0x5e48e1['data']&&'listType'==_0x5e48e1['data']['key']&&_0x5e48e1['data']['newValue']&&_0x5e48e1['data']['oldValue'])return _0x32d051;_0x5e48e1=_0x5e48e1['next'];}return{'type':'format','content':o(_0x1b4afb,'*Set\x20format:*\x20%0',o(_0x1b4afb,'ELEMENT_'+_0xde59f4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3dc119=this['editor'],_0xf28603=_0x3dc119['locale'];_0x3dc119['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15eac7=>{if('formatBlock'!=_0x15eac7['type'])return;const {data:_0x3de4d1}=_0x15eac7;if(!_0x3de4d1)return;let _0x1edd29,_0x76c345;switch(_0x3de4d1['commandName']){case'listStyle':_0x1edd29='*Change\x20to:*\x20%0',_0x76c345={'type':'format','content':o(_0xf28603,_0x1edd29,o(_0xf28603,this['_getTranslationKeyForListStyle'](_0x3de4d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1edd29=_0x3de4d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x76c345={'type':'format','content':o(_0xf28603,_0x1edd29)};break;case'listStart':_0x1edd29='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x76c345={'type':'format','content':o(_0xf28603,_0x1edd29,_0x3de4d1['commandParams'][0x0]['startIndex'])};}return _0x76c345;});}['_getTranslationKeyForListStyle'](_0x4f557f){return'ELEMENT_'+function(_0x163fe1){if(Se['includes'](_0x163fe1))return'bulleted';if(_e['includes'](_0x163fe1))return'numbered';return null;}(_0x4f557f)['toUpperCase']()+'_LIST_'+_0x4f557f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xb6c9b9{['afterInit'](){const _0x341b0e=this['editor'];_0x341b0e['commands']['get']('emoji')&&_0x341b0e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xb6c9b9{static get['requires'](){return[_0x3a2b59];}['init'](){const _0x469fab=this['editor'],_0x48f8d7=_0x469fab['plugins']['get']('TrackChangesEditing'),_0x483b85=_0x469fab['commands']['get']('enter');_0x48f8d7['enableCommand']('enter',()=>{_0x469fab['model']['change'](_0x388db9=>{const _0x478411=_0x469fab['model']['document']['selection'],_0xd01ba2=_0x478411['getFirstPosition'](),_0x2e1d4e=_0x4ffd26['fromRange'](_0x478411['getFirstRange']());if(_0x483b85['enterBlock'](_0x388db9)){const _0x337e5c=_0x469fab['model']['createPositionAt'](_0xd01ba2['parent']['nextSibling'],0x0),_0x3a0ab2=_0x388db9['createRange'](_0xd01ba2,_0x337e5c);_0x48f8d7['markInsertion'](_0x3a0ab2);}else _0x388db9['setSelection'](_0x388db9['createRange'](_0x2e1d4e['end']));_0x2e1d4e['detach'](),_0x483b85['fire']('afterExecute',{'writer':_0x388db9});});}),_0x469fab['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x469fab,'split'),{'priority':'high'}),_0x469fab['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x567132,_0x2d8c04,_0x564836)=>{const _0x273bc1=_0x564836['mapper']['markerNameToElements'](_0x2d8c04['markerName']);if(_0x273bc1){for(const _0x3d8265 of _0x273bc1)_0x3d8265['hasClass']('ck-suggestion-marker-split')&&(_0x564836['mapper']['unbindElementFromMarkerName'](_0x3d8265,_0x2d8c04['markerName']),_0x564836['writer']['remove'](_0x3d8265));}},{'priority':'high'}),_0x469fab['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x31cb41,_0x30ca46,_0xdbd0e9)=>{_0xdbd0e9['options']['showSuggestionHighlights']&&De(_0x469fab,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x31cb41,_0x30ca46,_0xdbd0e9);},{'priority':'high'});}}class Q extends _0xb6c9b9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x591612=this['editor']['plugins']['get']('TrackChangesEditing');_0x591612['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x591612['enableCommand']('findNext'),_0x591612['enableCommand']('findPrevious'),_0x591612['enableCommand']('replace'),_0x591612['enableCommand']('replaceAll');}['handleFindCommand'](_0x209bee,_0xd7ac6d,_0x26cc16={}){const _0x59353f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x209bee(_0x4e2645=>{let _0x27b6d2=('string'==typeof _0xd7ac6d?_0x59353f['findByTextCallback'](_0xd7ac6d,_0x26cc16):_0xd7ac6d)(_0x4e2645);Array['isArray'](_0x27b6d2)&&(_0x27b6d2={'results':_0x27b6d2,'searchText':'string'==typeof _0xd7ac6d?_0xd7ac6d:''});const _0x3033c6=_0x27b6d2['results']['filter'](_0x1cc10b=>!0x1===this['_isInDeletionRange'](_0x1cc10b,_0x4e2645['item']));return{..._0x27b6d2,'results':_0x3033c6};},_0x26cc16);}['_isInDeletionRange'](_0x5d750b,_0x3e54bc){const _0x5ba3dc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e54bc,_0x5d750b['start']),this['editor']['model']['createPositionAt'](_0x3e54bc,_0x5d750b['end']));for(const _0x3bf5e8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5ba3dc['getIntersection'](_0x3bf5e8['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xb6c9b9{['afterInit'](){const _0x43e10f=this['editor']['locale'],_0x54bb6d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x229a01,commandName:_0x5d386d}of eo)this['editor']['plugins']['has'](_0x229a01)&&(_0x54bb6d['enableDefaultAttributesIntegration'](_0x5d386d),_0x54bb6d['registerInlineAttribute'](_0x5d386d));_0x54bb6d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x43e10f,'FORMAT_FONT_SIZE')),_0x54bb6d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x43e10f,'FORMAT_FONT_FAMILY')),_0x54bb6d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x43e10f,'FORMAT_FONT_COLOR')),_0x54bb6d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x43e10f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b97e1=this['editor'],_0x273b93=_0x2b97e1['locale'];_0x2b97e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27da3a=>{const _0x49119b=_0x273b93['t'];if('formatInline'!=_0x27da3a['type'])return;const {data:_0x3e8cbd}=_0x27da3a;if(null!=_0x3e8cbd){if('fontSize'==_0x3e8cbd['commandName']){const _0x263f47=_0x3e8cbd['commandParams'][0x0]['value'];if(_0x263f47){const _0xbcc72c=_0x49119b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x181896=>_0x181896['model']==_0x263f47)['title'])['toLowerCase']();return{'type':'format','content':o(_0x273b93,'*Set\x20font\x20size:*\x20%0',_0xbcc72c)};}return{'type':'format','content':o(_0x273b93,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3e8cbd['commandName']){const _0x8a1c42=_0x3e8cbd['commandParams'][0x0]['value'];return _0x8a1c42?{'type':'format','content':o(_0x273b93,'*Set\x20font\x20family:*\x20%0',_0x8a1c42)}:{'type':'format','content':o(_0x273b93,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3e8cbd['commandName']){const _0x474cca=_0x3e8cbd['commandParams'][0x0]['value'];if(_0x474cca){const _0x197b59=_0x28497c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x12cb12=>_0x12cb12['model']==_0x474cca);let _0xfae923=_0x474cca,_0x492ac5='';return _0x197b59&&(_0xfae923=_0x197b59['label'],_0x492ac5=_0x49119b(_0xfae923)['toLowerCase']()),{'type':'format','content':o(_0x273b93,'*Set\x20font\x20color:*\x20%0',_0x492ac5)['trim'](),'color':{'value':_0x474cca,'title':_0x492ac5||_0xfae923}};}return{'type':'format','content':o(_0x273b93,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3e8cbd['commandName']){const _0x5ce9e1=_0x3e8cbd['commandParams'][0x0]['value'];if(_0x5ce9e1){const _0x571e54=_0x28497c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xbec694=>_0xbec694['model']==_0x5ce9e1);let _0x268f0b=_0x5ce9e1,_0x535293='';return _0x571e54&&(_0x268f0b=_0x571e54['label'],_0x535293=_0x49119b(_0x268f0b)['toLowerCase']()),{'type':'format','content':o(_0x273b93,'*Set\x20font\x20background\x20color:*\x20%0',_0x535293)['trim'](),'color':{'value':_0x5ce9e1,'title':_0x535293||_0x268f0b}};}return{'type':'format','content':o(_0x273b93,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xb6c9b9{['afterInit'](){const _0xf68652=this['editor'],_0x4aec3b=_0xf68652['plugins']['get']('TrackChangesEditing'),_0x2da32d=_0xf68652['commands']['get']('copyFormat'),_0x5138da=_0xf68652['commands']['get']('pasteFormat');_0x2da32d&&_0x5138da&&(_0x4aec3b['enableDefaultAttributesIntegration']('pasteFormat'),_0x4aec3b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2bc1c4=this['editor'],_0x3f6c33=_0x2bc1c4['locale'];_0x2bc1c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x578e87=>{if('formatBlock'!=_0x578e87['type']&&'formatInline'!=_0x578e87['type'])return;const {data:_0x44a185}=_0x578e87;if(_0x44a185&&'pasteFormat'===_0x44a185['commandName']){const _0x5a1348=[],_0x2ebff6=_0x44a185['commandParams'][0x0];for(const [_0x3f87db,_0x22dda2]of Object['entries'](_0x2ebff6))_0x5a1348['push'](ro(_0x2bc1c4,_0x3f87db,_0x22dda2));return _0x5a1348['length']?{'type':'format','content':o(_0x3f6c33,'*Set\x20format\x20to:*\x20%0',_0x5a1348['join'](',\x20'))}:{'type':'format','content':o(_0x3f6c33,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x466146,_0x20f154,_0x5b05b0){const _0x545f95=_0x466146['locale']['t'],_0x402d08=_0x20f154['split'](/(?=[A-Z])/)['join']('\x20'),_0x1afdc3=_0x545f95(_0x402d08['charAt'](0x0)['toUpperCase']()+_0x402d08['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5b05b0)return _0x1afdc3;if('fontColor'===_0x20f154||'fontBackgroundColor'===_0x20f154){const _0x59c0bc=_0x28497c(_0x466146['config']['get']('fontColor.colors'))['find'](_0x1bf7fd=>_0x1bf7fd['model']==_0x5b05b0);return _0x1afdc3+'\x20('+(_0x59c0bc?_0x545f95(_0x59c0bc['label'])['toLowerCase']():_0x5b05b0)+')';}if('fontSize'===_0x20f154&&isNaN(parseFloat(_0x5b05b0))){const _0x1cc282=_0x466146['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x466146['config']['get']('fontSize.options'))['find'](_0x50f5dc=>_0x50f5dc['model']==_0x5b05b0);return _0x1afdc3+'\x20('+(_0x1cc282?_0x545f95(_0x1cc282['title'])['toLowerCase']():_0x5b05b0)+')';}return _0x1afdc3+'\x20('+_0x5b05b0+')';}class Z extends _0xb6c9b9{['_headingOptions'];['afterInit'](){const _0x485c1d=this['editor'];if(!_0x485c1d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x485c1d['config']['get']('heading.options');const _0x3349fb=_0x485c1d['locale'],_0x2ddc9b=_0x485c1d['plugins']['get']('TrackChangesEditing');_0x2ddc9b['enableDefaultAttributesIntegration']('heading');for(const _0x2042c5 of this['_headingOptions'])'paragraph'!=_0x2042c5['model']&&_0x2ddc9b['descriptionFactory']['registerElementLabel'](_0x2042c5['model'],_0x157b7c=>{const _0x36923e=this['_getHeadingLevel'](_0x2042c5['model']);return null!==_0x36923e?_0x2b9cd0(_0x157b7c,_0x36923e):_0xcd635c(_0x157b7c,_0x2042c5['title']);});function _0x2b9cd0(_0x3aca6e,_0x48dcfc){return o(_0x3349fb,'ELEMENT_HEADING',[_0x3aca6e,_0x48dcfc]);}function _0xcd635c(_0x1e425a,_0x397ed1){return o(_0x3349fb,'ELEMENT_HEADING_CUSTOM',[_0x1e425a,_0x397ed1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x127dcf=this['editor'],_0x1a6ae7=_0x127dcf['locale'];function _0x50ab47(_0xcf9a89,_0x2f034b){return o(_0x1a6ae7,'ELEMENT_HEADING_CUSTOM',[_0xcf9a89,_0x2f034b]);}_0x127dcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3701cb=>{if('formatBlock'!=_0x3701cb['type'])return;const {data:_0x59528a}=_0x3701cb;if(_0x59528a&&'heading'==_0x59528a['commandName']){const _0xff257=_0x59528a['commandParams'][0x0]['value'],_0x2fa54c=this['_getHeadingLevel'](_0xff257);if(null!==_0x2fa54c)return{'type':'format','content':o(_0x1a6ae7,'*Change\x20to:*\x20%0',(_0x426164=0x1,_0x59b57d=_0x2fa54c,o(_0x1a6ae7,'ELEMENT_HEADING',[_0x426164,_0x59b57d])))};const _0x45b26f=this['_headingOptions']['find'](_0x4e12d4=>_0x4e12d4['model']===_0xff257)['title'];return{'type':'format','content':o(_0x1a6ae7,'*Change\x20to:*\x20%0',_0x50ab47(0x1,_0x45b26f))};}var _0x426164,_0x59b57d;});}['_getHeadingLevel'](_0x495f50){const _0x36c959=_0x495f50['match'](/^heading(\d+)/);if(_0x36c959)return _0x36c959[0x1];const _0x2bb77a=this['_headingOptions']?.['find'](_0x55ac26=>_0x55ac26['model']==_0x495f50);if(_0x2bb77a&&_0x2bb77a['view']){const _0x3c2eba=_0x2bb77a['view'],_0x39d35d=(_0x3c2eba['name']??_0x3c2eba)['match'](/^h(\d+)/);if(_0x39d35d)return _0x39d35d[0x1];}return null;}}class tt extends _0xb6c9b9{['afterInit'](){const _0x5dc041=this['editor'];if(!_0x5dc041['plugins']['has']('HighlightEditing'))return;const _0x1730e0=_0x5dc041['plugins']['get']('TrackChangesEditing'),_0x4f9150=_0x5dc041['locale'];_0x1730e0['enableDefaultAttributesIntegration']('highlight'),_0x1730e0['registerInlineAttribute']('highlight'),_0x1730e0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4f9150,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x160fc9=this['editor'],_0x4a4b60=_0x160fc9['locale'];_0x160fc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a1865=>{if('formatInline'!=_0x1a1865['type'])return;const {data:_0x2bcbf2}=_0x1a1865;if(_0x2bcbf2&&'highlight'==_0x2bcbf2['commandName']){const _0x33f2a7=_0x4a4b60['t'],_0x3b8c44=_0x2bcbf2['commandParams'][0x0]['value'];if(_0x3b8c44){const _0x12eafe=_0x160fc9['config']['get']('highlight.options')['find'](_0x9ca588=>_0x9ca588['model']==_0x3b8c44),_0x3bb7b3=_0x33f2a7(_0x12eafe['title'])['toLowerCase']();return{'type':'format','content':o(_0x4a4b60,'*Set\x20highlight:*\x20%0',_0x3bb7b3),'color':{'value':_0x12eafe['color'],'title':_0x12eafe['title']}};}return{'type':'format','content':o(_0x4a4b60,'*Remove\x20highlight*',o(_0x4a4b60,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xb6c9b9{['afterInit'](){const _0x57fccf=this['editor'];if(!_0x57fccf['plugins']['has']('HorizontalLineEditing'))return;_0x57fccf['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a14b1=_0x57fccf['plugins']['get']('TrackChangesEditing'),_0x43cdaa=_0x57fccf['locale'];_0x4a14b1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x390e49=>o(_0x43cdaa,'ELEMENT_HORIZONTAL_LINE',_0x390e49)),_0x57fccf['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5cbd49,{writer:_0x48ae8c,options:_0x5552de})=>{if(!_0x5552de['showSuggestionHighlights'])return null;const _0x1fcde3=_0x48ae8c['createContainerElement']('div'),_0x482c2e=_0x48ae8c['createEmptyElement']('hr');return _0x48ae8c['addClass']('ck-horizontal-line',_0x1fcde3),_0x48ae8c['insert'](_0x48ae8c['createPositionAt'](_0x1fcde3,0x0),_0x482c2e),_0x1fcde3;},'converterPriority':'high'});}}class nt extends _0xb6c9b9{['afterInit'](){const _0x4e4d77=this['editor'];if(!_0x4e4d77['plugins']['has']('HtmlEmbed'))return;const _0x4af9df=_0x4e4d77['plugins']['get']('TrackChangesEditing'),_0x34ea8d=_0x4e4d77['locale'];_0x4af9df['descriptionFactory']['registerElementLabel']('rawHtml',_0x34a01c=>o(_0x34ea8d,'ELEMENT_HTML_EMBED',_0x34a01c)),_0x4af9df['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4af9df['registerBlockAttribute']('value'),_0x4af9df['descriptionFactory']['registerDescriptionCallback'](_0x2e7976=>{if('attribute'!=_0x2e7976['type'])return;const {data:_0x19cb67}=_0x2e7976;if(_0x19cb67&&'value'==_0x19cb67['key']&&_0x2e7976['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x39eabc=o(_0x34ea8d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x34ea8d,'*Change\x20%0\x20content*',_0x39eabc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x181f4a=this['editor'],_0xc76c7d=_0x181f4a['locale'];_0x181f4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58ab48=>{if('formatBlock'!=_0x58ab48['type'])return;const {data:_0x665bb9}=_0x58ab48;if(_0x665bb9&&'htmlEmbed'==_0x665bb9['commandName']){const _0x3f4fdb=o(_0xc76c7d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xc76c7d,'*Change\x20%0\x20content*',_0x3f4fdb)};}});}}class et extends _0xb6c9b9{['afterInit'](){const _0x5ef3a1=this['editor'];if(!_0x5ef3a1['plugins']['has']('ImageEditing'))return;const _0x463325=_0x5ef3a1['plugins']['get']('TrackChangesEditing'),_0x4fcdd9=_0x5ef3a1['plugins']['get']('ImageUtils'),_0x22ac36=_0x5ef3a1['locale'];_0x463325['enableCommand']('insertImage'),_0x463325['descriptionFactory']['registerElementLabel']('imageBlock',_0x569540=>o(_0x22ac36,'ELEMENT_IMAGE',_0x569540)),_0x463325['descriptionFactory']['registerElementLabel']('imageInline',_0x1d8fd0=>o(_0x22ac36,'ELEMENT_INLINE_IMAGE',_0x1d8fd0)),_0x463325['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x22ac36,'ELEMENT_CAPTION')),_0x5ef3a1['plugins']['has']('ImageUploadEditing')&&_0x463325['enableCommand']('uploadImage'),_0x5ef3a1['plugins']['has']('ImageBlockEditing')&&_0x5ef3a1['plugins']['has']('ImageInlineEditing')&&(_0x463325['enableCommand']('imageTypeInline',(_0xd88640,_0x829d01)=>{const _0x552d14=_0x4fcdd9['getClosestSelectedImageElement'](_0x5ef3a1['model']['document']['selection']);_0x5ef3a1['model']['change'](()=>{_0x463325['markBlockFormat'](_0x552d14,{'commandName':'imageTypeInline','commandParams':[_0x829d01]},[],'convertBlockImageToInline');});}),_0x463325['enableCommand']('imageTypeBlock',(_0x2baf66,_0x5227f5)=>{_0x5ef3a1['model']['change'](_0x109a96=>{let _0xeeedbc=_0x4fcdd9['getClosestSelectedImageElement'](_0x5ef3a1['model']['document']['selection']),_0x41b7cd=_0x109a96['createRangeOn'](_0xeeedbc);const _0x304f71=_0xa2950f['fromPosition'](_0x41b7cd['start'],'toPrevious'),_0x51765b=_0xa2950f['fromPosition'](_0x41b7cd['end'],'toNext');_0x463325['forceDefaultExecution'](()=>_0x2baf66(_0x5227f5)),_0xeeedbc=_0x4fcdd9['getClosestSelectedImageElement'](_0x5ef3a1['model']['document']['selection']),_0x41b7cd=_0x109a96['createRangeOn'](_0xeeedbc);const _0x5b816c=_0x109a96['createRange'](_0x304f71,_0x51765b);_0x304f71['detach'](),_0x51765b['detach'](),_0x463325['markBlockFormat'](_0xeeedbc,{'commandName':'imageTypeInline','commandParams':[_0x5227f5]},[],'convertInlineImageToBlock'),_0x5b816c['start']['isBefore'](_0x41b7cd['start'])&&_0x463325['markInsertion'](_0x109a96['createRange'](_0x5b816c['start'],_0x41b7cd['start']),'convertInlineImageToBlock'),_0x41b7cd['end']['isBefore'](_0x5b816c['end'])&&_0x463325['markInsertion'](_0x109a96['createRange'](_0x41b7cd['end'],_0x5b816c['end']),'convertInlineImageToBlock');});}),_0x463325['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x463325['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x463325['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x463325['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x463325['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x463325['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2bd377])=>{const _0x5da669=_0x463325['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x439510=_0x2bd377['start'],_0x37c32e=_0x2bd377['end'];const _0xd7820=_0x5ef3a1['model']['schema']['getNearestSelectionRange'](_0x439510,'backward'),_0x530eae=_0x5ef3a1['model']['schema']['getNearestSelectionRange'](_0x37c32e,'forward');_0xd7820['isCollapsed']&&(_0x439510=_0xd7820['start']),_0x530eae['isCollapsed']&&(_0x37c32e=_0x530eae['end']),_0x5da669([_0x5ef3a1['model']['createRange'](_0x439510,_0x37c32e)]);}),_0x463325['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x932e6),_0x463325['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x932e6)),_0x5ef3a1['plugins']['has']('ImageCaptionEditing')&&(_0x463325['enableCommand']('toggleImageCaption',(_0x4b7665,_0x385a02)=>{const _0x380334=_0x5ef3a1['plugins']['get']('ImageCaptionUtils');let _0x5711fc=_0x4fcdd9['getClosestSelectedImageElement'](_0x5ef3a1['model']['document']['selection']),_0x4ef80c=_0x380334['getCaptionFromImageModelElement'](_0x5711fc);_0x5ef3a1['model']['change'](()=>{if(_0x4ef80c)return void _0x463325['markDeletion'](_0x5ef3a1['model']['createRangeOn'](_0x4ef80c));const _0x4b0c22=_0x4fcdd9['isBlockImage'](_0x5711fc);_0x4b7665(_0x385a02),_0x5711fc=_0x4fcdd9['getClosestSelectedImageElement'](_0x5ef3a1['model']['document']['selection']),_0x4ef80c=_0x380334['getCaptionFromImageModelElement'](_0x5711fc),_0x463325['markInsertion'](_0x5ef3a1['model']['createRangeOn'](_0x4ef80c),_0x4b0c22?null:'imageCaption');});}),_0x463325['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x932e6));const _0x3fd0cf=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x308fbd(_0x237969,_0xe4c205){const _0x123bb3=_0x3fd0cf['findIndex'](({type:_0x4da2c7,subType:_0x412a41})=>_0x237969['type']==_0x4da2c7&&_0x237969['subType']==_0x412a41),_0x4b1045=_0x3fd0cf['findIndex'](({type:_0x2fa1a9,subType:_0x5a2c14})=>_0xe4c205['type']==_0x2fa1a9&&_0xe4c205['subType']==_0x5a2c14);if(_0x123bb3<0x0||_0x4b1045<0x0)return!0x1;const _0x4ba76c=_0x237969['getFirstRange'](),_0x5159af=_0xe4c205['getFirstRange']();if((0x0==_0x123bb3||0x1==_0x123bb3)&&0x2==_0x4b1045&&_0x4ba76c['isIntersecting'](_0x5159af))return!0x0;if(0x2==_0x123bb3&&0x3==_0x4b1045){const _0x12a7ef=_0x463325['_findSuggestions'](_0x4ba76c,'insertion')['filter'](({suggestion:_0x5ee653,meta:_0x3fd26a})=>_0x3fd26a['isOwn']&&'convertInlineImageToBlock'==_0x5ee653['subType']);if(_0x12a7ef['length']>0x1&&_0x5159af['end']['isEqual'](_0x4ba76c['start']))return!0x0;if(0x1==_0x12a7ef['length']&&(_0x4ba76c['start']['isEqual'](_0x5159af['end'])||_0x4ba76c['end']['isEqual'](_0x5159af['start'])))return!0x0;}if(0x3==_0x123bb3&&0x3==_0x4b1045&&_0x4ba76c['start']['isBefore'](_0x5159af['start'])){const _0x19a578=_0x4ba76c['end']['nodeAfter'],_0x2cfca7=_0x5159af['start']['nodeBefore'];return _0x4fcdd9['isBlockImage'](_0x19a578)&&_0x19a578===_0x2cfca7;}return!0x1;}function _0x932e6(_0x476797,_0x1f8a18){return _0x308fbd(_0x476797,_0x1f8a18)?[_0x476797,_0x1f8a18]:_0x308fbd(_0x1f8a18,_0x476797)?[_0x1f8a18,_0x476797]:null;}_0x5ef3a1['plugins']['has']('ImageResize')&&(_0x463325['enableDefaultAttributesIntegration']('resizeImage'),_0x463325['registerBlockAttribute']('resizedWidth'),_0x463325['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x22ac36,'FORMAT_IMAGE_SIZE'))),_0x5ef3a1['plugins']['has']('ImageTextAlternativeEditing')&&(_0x463325['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x463325['registerBlockAttribute']('alt')),_0x5ef3a1['plugins']['has']('PictureEditing')&&(_0x463325['registerBlockAttribute']('sources'),_0x463325['descriptionFactory']['registerDescriptionCallback'](_0xe263e7=>{if('attribute'!=_0xe263e7['type'])return;const {data:_0x4755da}=_0xe263e7;return _0x4755da&&'sources'==_0x4755da['key']?{'type':'format','content':''}:void 0x0;})),_0x5ef3a1['plugins']['has']('ImageSizeAttributes')&&(_0x463325['registerBlockAttribute']('width'),_0x463325['registerBlockAttribute']('height'),_0x463325['descriptionFactory']['registerDescriptionCallback'](_0x9c1456=>{if('attribute'!=_0x9c1456['type'])return;const {data:_0x51cf99}=_0x9c1456;return!_0x51cf99||'width'!=_0x51cf99['key']&&'height'!=_0x51cf99['key']?void 0x0:{'type':'format','content':''};})),_0x463325['descriptionFactory']['registerDescriptionCallback'](_0x239e9d=>{if(!!_0x3fd0cf['find'](({type:_0xfe2454,subType:_0x447ddd})=>_0x239e9d['type']==_0xfe2454&&_0x239e9d['subType']==_0x447ddd))return _0x239e9d['previous']?{}:void 0x0;}),_0x463325['descriptionFactory']['registerDescriptionCallback'](_0x15cc37=>{if('insertion'==_0x15cc37['type']||'deletion'==_0x15cc37['type']){const _0x15dced=_0x15cc37['getContainedElement']();if(_0x15dced&&_0x15dced['is']('element','caption'))return{'type':'insertion'==_0x15cc37['type']?'addObject':'removeObject','element':_0x15dced,'quantity':0x1};}}),_0x463325['descriptionFactory']['registerDescriptionCallback'](_0x25a25e=>'formatBlock'==_0x25a25e['type']&&'convertInlineImageToBlock'==_0x25a25e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x25a25e['type']&&'convertBlockImageToInline'==_0x25a25e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x463325['descriptionFactory']['registerDescriptionCallback'](_0x1000ee=>{if('attribute'!=_0x1000ee['type'])return;const {data:_0x54f9c5}=_0x1000ee;if(!_0x54f9c5||'alt'!=_0x54f9c5['key'])return;const _0x2f6184=_0x54f9c5['newValue'];return _0x2f6184?{'type':'format','content':o(_0x22ac36,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f6184+'\x22')}:{'type':'format','content':o(_0x22ac36,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34d41d=this['editor'],_0x274466=_0x34d41d['locale'];_0x34d41d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17b66a=>{if('formatBlock'!=_0x17b66a['type']&&'formatInline'!=_0x17b66a['type'])return;const {data:_0x192668}=_0x17b66a;if(_0x192668){if('imageTextAlternative'==_0x192668['commandName']){const _0x25c1e3=_0x192668['commandParams'][0x0]['newValue'];return _0x25c1e3?{'type':'format','content':o(_0x274466,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x25c1e3+'\x22')}:{'type':'format','content':o(_0x274466,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x192668['commandName']){const _0xd48fc1=_0x192668['commandParams'][0x0]['width'];return _0xd48fc1?{'type':'format','content':o(_0x274466,'*Set\x20image\x20width:*\x20%0',_0xd48fc1)}:{'type':'format','content':o(_0x274466,'*Reset\x20image\x20width*')};}}});}}class st extends _0xb6c9b9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4efed2=this['editor']['locale'],_0x1c4f4f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c4f4f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1c4f4f['registerBlockAttribute']('src'),_0x1c4f4f['descriptionFactory']['registerDescriptionCallback'](_0x2e8387=>{if('attribute'!=_0x2e8387['type'])return;const {data:_0x4115b2}=_0x2e8387;return _0x4115b2&&'src'==_0x4115b2['key']?_0x4115b2['newValue']&&_0x4115b2['oldValue']?{'type':'format','content':o(_0x4efed2,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59dfb1=this['editor']['plugins']['get']('TrackChangesEditing');_0x59dfb1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x59dfb1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59dfb1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x59dfb1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x586807=this['editor'],_0x453b5d=_0x586807['locale'];_0x586807['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b355d=>{if('formatBlock'!=_0x5b355d['type']&&'formatInline'!=_0x5b355d['type'])return;const {data:_0x3ebce7}=_0x5b355d;if(!_0x3ebce7||'replaceImageSource'!=_0x3ebce7['commandName'])return;return{'type':'format','content':o(_0x453b5d,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xb6c9b9{['afterInit'](){const _0x21d2da=this['editor'];if(!_0x21d2da['plugins']['has']('ImageStyleEditing'))return;const _0x59e193=_0x21d2da['plugins']['get']('TrackChangesEditing'),_0x56e1eb=_0x21d2da['plugins']['get']('ImageUtils'),_0x4e1265={};_0x59e193['enableCommand']('imageStyle',(_0x252c92,_0x19338e)=>{const _0x14cec7=_0x21d2da['plugins']['get']('Users')['me'],_0x351365=_0x21d2da['commands']['get']('imageStyle');let _0xefb008=_0x56e1eb['getClosestSelectedImageElement'](_0x21d2da['model']['document']['selection']),_0x530b08=_0x21d2da['model']['createRangeOn'](_0xefb008),_0x5de01d=_0x351365['value'];if(_0x5de01d==_0x19338e['value'])return;const _0x895318={'commandName':'imageStyle','commandParams':[_0x19338e],'formatGroupId':_0x13da56()};_0x21d2da['model']['change'](()=>{if(_0x59e193['getSuggestions']()['filter'](_0x40a892=>_0x40a892['isInContent']&&_0x14cec7==_0x40a892['author']&&('formatBlock'==_0x40a892['type']||'formatInline'==_0x40a892['type'])&&('imageStylePreApply'==_0x40a892['subType']||'imageStylePostApply'==_0x40a892['subType'])&&_0x40a892['getFirstRange']()['isEqual'](_0x530b08))['forEach'](_0x192604=>_0x59e193['discardSuggestion'](_0x192604['head'])),_0xefb008=_0x56e1eb['getClosestSelectedImageElement'](_0x21d2da['model']['document']['selection']),_0x530b08=_0x21d2da['model']['createRangeOn'](_0xefb008),_0x351365['refresh'](),_0x21d2da['commands']['get']('imageTypeInline')['refresh'](),_0x21d2da['commands']['get']('imageTypeBlock')['refresh'](),_0x5de01d=_0x351365['value'],_0x5de01d!=_0x19338e['value'])return _0x56e1eb['isInlineImage'](_0xefb008)&&_0x351365['shouldConvertImageType'](_0x19338e['value'],_0xefb008)?(_0x252c92({..._0x19338e,'setImageSizes':!0x1}),_0xefb008=_0x56e1eb['getClosestSelectedImageElement'](_0x21d2da['model']['document']['selection']),void _0x59e193['markBlockFormat'](_0xefb008,{..._0x895318,'commandReversedParams':[{'value':_0x5de01d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x56e1eb['isBlockImage'](_0xefb008)?_0x59e193['markBlockFormat'](_0xefb008,_0x895318,[],'imageStylePostApply'):_0x59e193['markInlineFormat'](_0x530b08,_0x895318,'imageStylePostApply'));});});for(const _0x4ec39a of _0x21d2da['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4e1265[_0x4ec39a['name']]=_0x4ec39a['title']['toLowerCase']();_0x59e193['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x59e193['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x59e193['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x59e193['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x336fcf])=>{_0x56e1eb['setImageNaturalSizeAttributes'](_0x336fcf['getContainedElement']());}),_0x59e193['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5066df,_0x58d376)=>{_0x59e193['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5066df,{'commandName':_0x58d376['commandName'],'commandParams':_0x58d376['commandReversedParams']});}),_0x59e193['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2a4e1b,_0x3d072d){if(_0x2f2c3c(_0x2a4e1b,_0x3d072d))return[_0x2a4e1b,_0x3d072d];if(_0x2f2c3c(_0x3d072d,_0x2a4e1b))return[_0x3d072d,_0x2a4e1b];return null;});const _0x41f4f4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f2c3c(_0x558578,_0x346430){const _0x552670=_0x41f4f4['findIndex'](({type:_0x593c2f,subType:_0x1c2210})=>_0x558578['type']==_0x593c2f&&_0x558578['subType']==_0x1c2210),_0x330c92=_0x41f4f4['findIndex'](({type:_0x5aefda,subType:_0x1f9f4c})=>_0x346430['type']==_0x5aefda&&_0x346430['subType']==_0x1f9f4c);if(_0x552670<0x0||_0x330c92<0x0)return!0x1;const _0x1684ca=_0x558578['getFirstRange'](),_0x1e020f=_0x346430['getFirstRange']();if((0x0==_0x552670||0x1==_0x552670)&&0x2==_0x330c92&&_0x1684ca['isIntersecting'](_0x1e020f))return!0x0;if(0x2==_0x552670&&0x3==_0x330c92){const _0x4e2c66=_0x59e193['_findSuggestions'](_0x1684ca,'insertion')['filter'](({suggestion:_0x345b42,meta:_0x804f2b})=>_0x804f2b['isOwn']&&'convertInlineImageToBlock'==_0x345b42['subType']);if(_0x4e2c66['length']>0x1&&_0x1e020f['end']['isEqual'](_0x1684ca['start']))return!0x0;if(0x1==_0x4e2c66['length']&&(_0x1684ca['start']['isEqual'](_0x1e020f['end'])||_0x1684ca['end']['isEqual'](_0x1e020f['start'])))return!0x0;}if(0x3==_0x552670&&0x3==_0x330c92&&_0x1684ca['start']['isBefore'](_0x1e020f['start'])){const _0x5440f6=_0x1684ca['end']['nodeAfter'],_0x3bb975=_0x1e020f['start']['nodeBefore'];return _0x56e1eb['isBlockImage'](_0x5440f6)&&_0x5440f6===_0x3bb975;}return!0x1;}_0x21d2da['model']['document']['registerPostFixer'](()=>{let _0x7ebbba=!0x1;const _0xdc8466=Array['from'](_0x21d2da['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13220c,data:_0xc29b3}of _0xdc8466){const {group:_0x19b540,type:_0x587bfa,subType:_0x566771,id:_0x50376d}=_0x59e193['_splitMarkerName'](_0x13220c);if('suggestion'==_0x19b540&&_0x59e193['hasSuggestion'](_0x50376d)){if('formatBlock'==_0x587bfa&&('imageStylePreApply'==_0x566771||'imageStylePostApply'==_0x566771)){const _0x12523e=_0x59e193['getSuggestion'](_0x50376d);if(_0xc29b3['newRange']){const _0x54ad7e=_0x12523e['getFirstRange']()['getContainedElement']();if(_0x56e1eb['isBlockImage'](_0x54ad7e))continue;_0x59e193['discardSuggestion'](_0x12523e),_0x7ebbba=!0x0;}}if('insertion'==_0x587bfa&&'imageCaption'==_0x566771&&!_0xc29b3['newRange']){const _0x160e65=_0x59e193['getSuggestion'](_0x50376d);_0x160e65['next']&&_0x160e65['next']['isInContent']&&(_0x59e193['discardSuggestion'](_0x160e65['next']),_0x7ebbba=!0x0);}}}return _0x7ebbba;}),this['_registerLegacyDescription'](_0x4e1265);}['_registerLegacyDescription'](_0x195dd8){const _0x117b49=this['editor'],_0x5807bf=_0x117b49['locale'];_0x117b49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x113197=>{if('formatBlock'!=_0x113197['type']&&'formatInline'!=_0x113197['type'])return;const {data:_0x402ff4}=_0x113197;if(!_0x402ff4||'imageStyle'!=_0x402ff4['commandName'])return;const _0x25b477=_0x402ff4['commandParams'][0x0]['value'];return _0x32cbd8('side'===_0x25b477?o(_0x5807bf,'FORMAT_SIDE_IMAGE'):_0x195dd8[_0x25b477]||_0x25b477);function _0x32cbd8(_0x34de40){return{'type':'format','content':o(_0x5807bf,'*Format:*\x20%0',_0x34de40)};}});}}class rt extends _0xb6c9b9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3d0a6b){super(_0x3d0a6b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4cc678=this['editor'],_0x3cd24c=_0x4cc678['commands']['get']('importWord'),_0x3b4007=_0x4cc678['commands']['get']('trackChanges');_0x3cd24c&&(_0x3cd24c['on']('execute',(_0x12825b,[,_0x4e388d])=>{this['_trackChangesValueDuringImport']=_0x3b4007['value'],_0x4e388d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3cd24c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3cd24c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3b4007['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4cc678['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x68453e,_0x4914bc){const {suggestions:_0x57b3d8}=_0x4914bc,_0x3d24ae=this['editor']['commands']['get']('trackChanges'),_0x553e1f=_0x3d24ae['value'];this['_trackChangesValueDuringImport']!==_0x553e1f&&(_0x3d24ae['execute'](),this['_trackChangesExecuted']=!0x0),_0x57b3d8&&_0x57b3d8['forEach'](({id:_0x36d780,type:_0x5dec8e,author:_0x30d1f4,created_at:_0x289468})=>{const _0x4498ad={'id':_0x36d780,'type':_0x5dec8e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x30d1f4,'createdAt':_0x289468?new Date(_0x289468):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4498ad);});}}class at extends _0xb6c9b9{['afterInit'](){const _0x2434b7=this['editor'],_0x260c82=_0x2434b7['plugins']['get']('TrackChangesEditing');if(_0x2434b7['plugins']['has']('IndentEditing')&&(_0x260c82['enableCommand']('indent'),_0x260c82['enableCommand']('outdent')),_0x2434b7['plugins']['has']('IndentBlock')){for(const _0x27c94e of['indentBlock','outdentBlock'])_0x260c82['enableDefaultAttributesIntegration'](_0x27c94e);}const _0x149874=_0x2434b7['locale'];_0x260c82['registerBlockAttribute']('blockIndent'),_0x260c82['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x149874,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a140=this['editor'],_0x5d853d=_0x5a140['locale'],_0x350e2d=_0x5a140['plugins']['get']('TrackChangesEditing');_0x350e2d['descriptionFactory']['registerDescriptionCallback'](_0x413f68=>{if('formatBlock'!=_0x413f68['type'])return;const {data:_0x807f2e}=_0x413f68;if(!_0x807f2e)return;if('indentBlock'!=_0x807f2e['commandName']&&'outdentBlock'!=_0x807f2e['commandName'])return;const _0x4064a3=_0x413f68['getItems']()[0x0],_0x27c5f0=_0x350e2d['descriptionFactory']['getItemLabel'](_0x4064a3);return'indentBlock'==_0x807f2e['commandName']?{'type':'format','content':o(_0x5d853d,'*Indent:*\x20%0',_0x27c5f0)}:'outdentBlock'==_0x807f2e['commandName']?{'type':'format','content':o(_0x5d853d,'*Outdent:*\x20%0',_0x27c5f0)}:void 0x0;});}}class ct extends _0xb6c9b9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xb6c9b9{['afterInit'](){const _0x344a6e=this['editor'];if(!_0x344a6e['plugins']['has']('LinkEditing'))return;const _0x4a0569=_0x344a6e['plugins']['get']('TrackChangesEditing'),_0x45a49d=_0x344a6e['commands']['get']('link');_0x4a0569['enableDefaultAttributesIntegration']('link'),_0x4a0569['enableDefaultAttributesIntegration']('unlink'),_0x4a0569['registerInlineAttribute']('linkHref');for(const _0x4cef51 of _0x45a49d['manualDecorators'])_0x4a0569['registerInlineAttribute'](_0x4cef51['id']),_0x4a0569['descriptionFactory']['registerAttributeLabel'](_0x4cef51['id'],'link\x20('+_0x4cef51['label']['toLowerCase']()+')');_0x4a0569['descriptionFactory']['registerDescriptionCallback'](_0x9d1826=>{if('attribute'!=_0x9d1826['type'])return;const {data:_0x42a0b6}=_0x9d1826;if(!_0x42a0b6||'linkHref'!=_0x42a0b6['key'])return;const _0x5c9700=_0x42a0b6['newValue'],_0x2d5a27=_0x344a6e['locale'];return{'type':'format','content':null==_0x5c9700?o(_0x2d5a27,'*Remove\x20link*'):o(_0x2d5a27,'*Set\x20link:*\x20%0','\x22'+_0x5c9700+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x286263=this['editor'],_0x44ff56=_0x286263['locale'];_0x286263['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16dc35=>{if('formatInline'!=_0x16dc35['type'])return;const {data:_0x691d9e}=_0x16dc35;if(_0x691d9e){if('link'==_0x691d9e['commandName']){const _0x250424=_0x691d9e['commandParams'][0x0];return{'type':'format','content':o(_0x44ff56,'*Set\x20link:*\x20%0','\x22'+_0x250424+'\x22')};}return'unlink'==_0x691d9e['commandName']?{'type':'format','content':o(_0x44ff56,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xb6c9b9{['afterInit'](){const _0x4cf22d=this['editor'],_0x2ecf86=_0x4cf22d['locale'];if(!_0x4cf22d['plugins']['has']('LegacyListEditing'))return;const _0x187595=_0x4cf22d['plugins']['get']('TrackChangesEditing'),_0x3c90c8=_0x4cf22d['plugins']['has']('LegacyTodoListEditing');function _0x1064a0(_0x131624){return()=>{const _0x3f7668=_0x4cf22d['model']['document']['selection'],_0x5db6e0=_0x4cf22d['commands']['get'](_0x131624);if(_0x5db6e0['value'])return void _0x4cf22d['execute']('paragraph',{});const _0x43c108=_0x131624['slice'](0x0,-0x4),_0x4d1c05=function(_0x3c79f6,_0x42ecfa,_0x203f2b){let _0x522dda=Array['from'](_0x3c79f6)['filter'](_0x1461fc=>function(_0xf278b3,_0x1589a4){return _0x1589a4['checkChild'](_0xf278b3['parent'],'listItem')&&!_0x1589a4['isObject'](_0xf278b3);}(_0x1461fc,_0x203f2b));_0x522dda=_0x522dda['filter'](_0x3a2867=>!_0x3a2867['is']('element','listItem')||_0x3a2867['getAttribute']('listType')!=_0x42ecfa);const _0x13e269=new Set();for(const _0x45045a of _0x522dda)_0x45045a['is']('element','listItem')?_0x13e269['add'](Le(_0x45045a)):_0x13e269['add'](_0x45045a);return Array['from'](_0x13e269);}(_0x3f7668['getSelectedBlocks'](),_0x43c108,_0x4cf22d['model']['schema']);_0x4cf22d['model']['change'](()=>{for(const _0x957e48 of _0x4d1c05)_0x187595['markBlockFormat'](_0x957e48,{'commandName':_0x131624,'commandParams':[{'forceValue':!_0x5db6e0['value']}],'formatGroupId':'blockName'},Ee(_0x957e48));});};}function _0x68816c(_0x28ef72){return()=>{const _0x470d1f=function(_0x1f68ac){let _0x9bd2f=Array['from'](_0x1f68ac);const _0x3a9474=_0x9bd2f['findIndex'](_0x31a4b2=>'listItem'!=_0x31a4b2['name']);return _0x3a9474>-0x1&&(_0x9bd2f=_0x9bd2f['slice'](0x0,_0x3a9474)),_0x9bd2f;}(_0x4cf22d['model']['document']['selection']['getSelectedBlocks']()),_0x3b3e02=_0x4cf22d['model']['createRange'](_0x4cf22d['model']['createPositionAt'](_0x470d1f[0x0],'before'),_0x4cf22d['model']['createPositionAt'](_0x470d1f[_0x470d1f['length']-0x1],'end'));_0x4cf22d['model']['change'](()=>{_0x187595['markBlockFormat'](_0x3b3e02,{'commandName':_0x28ef72,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4da271){const _0x56c964=new Set();for(const _0x42a8dc of _0x4da271){let _0x226902=_0x42a8dc['nextSibling'];for(;_0x226902&&_0x226902['getAttribute']('listIndent')>_0x42a8dc['getAttribute']('listIndent');)_0x56c964['add'](_0x226902),_0x226902=_0x226902['nextSibling'];}return Array['from'](_0x56c964);}(_0x470d1f));});};}_0x187595['enableCommand']('numberedList',_0x1064a0('numberedList')),_0x187595['enableCommand']('bulletedList',_0x1064a0('bulletedList')),_0x3c90c8&&_0x187595['enableCommand']('todoList',_0x1064a0('todoList')),_0x187595['enableCommand']('indentList',_0x68816c('indentList')),_0x187595['enableCommand']('outdentList',_0x68816c('outdentList')),_0x3c90c8&&_0x187595['enableCommand']('checkTodoList',()=>{const _0x4a28c4=_0x4cf22d['commands']['get']('checkTodoList'),_0x21f896=Array['from'](_0x4a28c4['_selectedElements']);_0x21f896['filter'](_0x2f458d=>_0x2f458d['getAttribute']('todoListChecked')!=_0x4a28c4['value']),_0x4cf22d['model']['change'](()=>{for(const _0x480cf6 of _0x21f896)_0x187595['markBlockFormat'](_0x480cf6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4a28c4['value']}]});});}),_0x187595['descriptionFactory']['registerElementLabel']('listItem',_0x82291e=>o(_0x2ecf86,'ELEMENT_LIST_ITEM',_0x82291e)),_0x187595['descriptionFactory']['registerDescriptionCallback'](_0x52a1c7=>{if('formatBlock'!=_0x52a1c7['type']&&'formatInline'!=_0x52a1c7['type'])return;const {data:_0x1e7dfb}=_0x52a1c7;if(_0x1e7dfb){if('numberedList'==_0x1e7dfb['commandName']||'bulletedList'==_0x1e7dfb['commandName']||'todoList'==_0x1e7dfb['commandName'])switch(_0x1e7dfb['commandName']['replace']('List','')){case'bulleted':return _0x3e4510(o(_0x2ecf86,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e4510(o(_0x2ecf86,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e4510(o(_0x2ecf86,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1e7dfb['commandName'])return{'type':'format','content':o(_0x2ecf86,'*Indent:*\x20%0',o(_0x2ecf86,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1e7dfb['commandName'])return{'type':'format','content':o(_0x2ecf86,'*Outdent:*\x20%0',o(_0x2ecf86,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1e7dfb['commandName'])return _0x1e7dfb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ecf86,'*Check\x20item*')}:{'type':'format','content':o(_0x2ecf86,'*Uncheck\x20item*')};}function _0x3e4510(_0x649c52){return{'type':'format','content':o(_0x2ecf86,'*Change\x20to:*\x20%0',_0x649c52)};}});}}function Le(_0x42d19f){const _0x255562=_0x42d19f['getAttribute']('listIndent');if(0x0==_0x255562)return _0x42d19f;let _0x4f42f1=_0x42d19f;for(;_0x42d19f['previousSibling']&&_0x42d19f['previousSibling']['is']('element','listItem');){const _0x3d4a5f=_0x42d19f['previousSibling']['getAttribute']('listIndent');if(_0x3d4a5f==_0x255562)_0x4f42f1=_0x42d19f['previousSibling'];else{if(_0x3d4a5f<_0x255562)break;}_0x42d19f=_0x42d19f['previousSibling'];}return _0x4f42f1;}function Ee(_0xd9d22d){const _0x34a570=[];if(_0xd9d22d['is']('element','listItem')&&_0xd9d22d['getAttribute']('listIndent')>0x0){let _0x4cfdf6=_0xd9d22d['nextSibling'];for(;_0x4cfdf6&&'listItem'==_0x4cfdf6['name']&&_0x4cfdf6['getAttribute']('listIndent')==_0xd9d22d['getAttribute']('listIndent');)_0x34a570['push'](_0x4cfdf6),_0x4cfdf6=_0x4cfdf6['nextSibling'];}return _0x34a570;}class ht extends _0xb6c9b9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4fe46d=this['editor']['config']['get']('list.properties'),_0x35c0e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fe46d['styles']&&_0x35c0e3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4fe46d['reversed']&&_0x35c0e3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4fe46d['startIndex']&&_0x35c0e3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x35c0e3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x96bc39,_0x254d07={}){const _0x2cf311=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f8ab0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2cf311['markMultiRangeBlockFormat'](_0x4f8ab0,{'commandName':'listStyle','commandParams':[{'type':_0x254d07['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2d6445,_0x1c212a={}){const _0x35146b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fc8a6=this['_getSuggestionBlocks'](_0x3c3c4f=>_0x3c3c4f['is']('element','listItem')&&'numbered'===_0x3c3c4f['getAttribute']('listType'));if(_0x1fc8a6['length']<0x1)return;const _0x3d88f0=_0x1fc8a6['map'](_0x7f1eab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7f1eab,'before'),this['editor']['model']['createPositionAt'](_0x7f1eab,0x0)));this['editor']['model']['change'](()=>{_0x35146b['markMultiRangeBlockFormat'](_0x3d88f0,{'commandName':'listReversed','commandParams':[{'reversed':_0x1c212a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x23e808,_0x4ec016={}){const _0x52d436=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa8970c=this['_getSuggestionBlocks'](_0x2c24f6=>_0x2c24f6['is']('element','listItem')&&'numbered'===_0x2c24f6['getAttribute']('listType'));if(_0xa8970c['length']<0x1)return;const _0x272f46=_0xa8970c['map'](_0x5b3789=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b3789,'before'),this['editor']['model']['createPositionAt'](_0x5b3789,0x0)));this['editor']['model']['change'](()=>{_0x52d436['markMultiRangeBlockFormat'](_0x272f46,{'commandName':'listStart','commandParams':[{'startIndex':_0x4ec016['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4ac9ae){if('formatBlock'!=_0x4ac9ae['type']&&'formatInline'!=_0x4ac9ae['type'])return;const _0x484efe=this['editor']['locale'],{data:_0x1d4d02}=_0x4ac9ae;if(!_0x1d4d02)return;let _0x1878ed,_0x1d04d5;switch(_0x1d4d02['commandName']){case'listStyle':_0x1878ed='*Change\x20to:*\x20%0',_0x1d04d5={'type':'format','content':o(_0x484efe,_0x1878ed,o(_0x484efe,this['_getTranslationKeyForListStyle'](_0x1d4d02['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1878ed=_0x1d4d02['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d04d5={'type':'format','content':o(_0x484efe,_0x1878ed)};break;case'listStart':_0x1878ed='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d04d5={'type':'format','content':o(_0x484efe,_0x1878ed,_0x1d4d02['commandParams'][0x0]['startIndex'])};}return _0x1d04d5;}['_getSuggestionBlocksForListStyle'](){const _0x499554=this['editor']['plugins']['get']('LegacyListUtils');let _0x59c86f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x59c86f[0x0]?.['is']('element','listItem')&&_0x59c86f['unshift'](..._0x499554['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x59c86f[_0x59c86f['length']-0x1]?.['is']('element','listItem')&&_0x59c86f['push'](..._0x499554['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x59c86f=[...new Set(_0x59c86f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x59c86f=_0x59c86f['filter'](_0x39f2cf=>_0x39f2cf['is']('element','listItem'))),_0x59c86f;}['_getSuggestionBlocks'](_0x58f220){const _0x5f15af=this['editor']['plugins']['get']('LegacyListUtils');let _0x45191b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x58f220)['map'](_0x2075aa=>{const _0x21e022=this['editor']['model']['createPositionAt'](_0x2075aa,0x0);return[..._0x5f15af['getSiblingNodes'](_0x21e022,'backward'),..._0x5f15af['getSiblingNodes'](_0x21e022,'forward')];})['flat']();return _0x45191b=[...new Set(_0x45191b)],_0x45191b;}['_getTranslationKeyForListStyle'](_0x572723){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x572723)||'default')['toUpperCase']()+'_LIST_'+_0x572723['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xb6c9b9{['afterInit'](){const _0x27830f=this['editor'];if(!_0x27830f['plugins']['has']('MediaEmbedEditing'))return;const _0x1e45a5=_0x27830f['plugins']['get']('TrackChangesEditing'),_0x248444=_0x27830f['locale'];_0x1e45a5['enableCommand']('mediaEmbed'),_0x1e45a5['descriptionFactory']['registerElementLabel']('media',_0x3248b4=>o(_0x248444,'ELEMENT_MEDIA',_0x3248b4)),_0x27830f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4cadb8,{writer:_0x28cbf2,options:_0x42b672})=>{if(_0x42b672['showSuggestionHighlights'])return _0x28cbf2['createEmptyElement']('div');},'converterPriority':'high'}),_0x27830f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3dd060,_0x63d929,_0x313c01)=>{_0x313c01['options']['showSuggestionHighlights']&&_0x3dd060['stop']();},{'priority':'high'});}}class lt extends _0xb6c9b9{['afterInit'](){const _0x5309dc=this['editor'];_0x5309dc['plugins']['has']('MentionEditing')&&_0x5309dc['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xb6c9b9{['afterInit'](){const _0x3ec475=this['editor'];if(!_0x3ec475['plugins']['has']('MergeFieldsEditing'))return;const _0x1b833a=_0x3ec475['plugins']['get']('TrackChangesEditing'),_0x71c016=_0x3ec475['locale'];_0x1b833a['enableCommand']('insertMergeField'),_0x1b833a['enableCommand']('insertMergeFieldBlock'),_0x1b833a['enableCommand']('insertMergeFieldImage'),_0x1b833a['descriptionFactory']['registerElementLabel']('mergeField',_0x3283e9=>o(_0x71c016,'ELEMENT_MERGE_FIELD',_0x3283e9)),_0x1b833a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x210e84=>o(_0x71c016,'ELEMENT_MERGE_FIELD',_0x210e84)),_0x1b833a['descriptionFactory']['registerDescriptionCallback'](_0x33a2b1=>{if('insertion'!=_0x33a2b1['type']&&'deletion'!=_0x33a2b1['type'])return;const _0x2b5b26=_0x33a2b1['getContainedElement']();if(null==_0x2b5b26)return;const _0x14cb4c=_0x3ec475['plugins']['get']('MergeFieldsEditing');let _0x5ee9bc;switch(_0x14cb4c['getMergeFieldType'](_0x2b5b26)){case null:return;case'image':{const _0xcb71ed=_0x14cb4c['unwrapAffixes'](_0x2b5b26['getAttribute']('src'));_0x5ee9bc=_0x14cb4c['getLabel'](_0xcb71ed)||_0xcb71ed;break;}default:{const _0x2f5a8a=_0x2b5b26['getAttribute']('id');_0x5ee9bc=_0x14cb4c['getLabel'](_0x2f5a8a)||_0x2f5a8a;break;}}return'insertion'==_0x33a2b1['type']?{'type':'insertion','content':o(_0x71c016,'*Insert:*\x20%0','\x22'+_0x5ee9bc+'\x22\x20'+o(_0x71c016,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x71c016,'*Remove:*\x20%0','\x22'+_0x5ee9bc+'\x22\x20'+o(_0x71c016,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xb6c9b9{['afterInit'](){const _0x55d45e=this['editor'],_0x26693d=_0x55d45e['plugins']['get']('TrackChangesEditing');_0x55d45e['plugins']['has']('MultiLevelList')&&(_0x26693d['enableDefaultAttributesIntegration']('multiLevelList'),_0x26693d['registerBlockAttribute']('listMarkerStyle'),_0x26693d['descriptionFactory']['registerDescriptionCallback'](_0x584d39=>this['handleDescriptions'](_0x584d39)));}['handleDescriptions'](_0x52ddeb){const _0x250cdc=this['editor']['locale'],{data:_0x1a3e9a}=_0x52ddeb,_0x27d116={'type':'format','content':''};if(_0x1a3e9a&&'listMarkerStyle'==_0x1a3e9a['key']){if(!_0x1a3e9a['oldValue'])return{'type':'format','content':o(_0x250cdc,'*Set\x20format:*\x20%0',o(_0x250cdc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a3e9a['newValue']+')'};if(!_0x1a3e9a['newValue']){let _0x3e36da=_0x52ddeb['head'];for(;_0x3e36da;){if(_0x3e36da['data']&&'listType'==_0x3e36da['data']['key']&&_0x3e36da['data']['newValue'])return _0x27d116;_0x3e36da=_0x3e36da['next'];}return{'type':'format','content':o(_0x250cdc,'*Remove\x20format:*\x20%0',o(_0x250cdc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a3e9a['oldValue']+')'};}}}}class pt extends _0xb6c9b9{['afterInit'](){const _0x4c4bff=this['editor'];if(!_0x4c4bff['plugins']['has']('PageBreakEditing'))return;_0x4c4bff['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4734e7=_0x4c4bff['plugins']['get']('TrackChangesEditing'),_0x3b0fc2=_0x4c4bff['locale'];_0x4734e7['descriptionFactory']['registerElementLabel']('pageBreak',_0x61b8f1=>o(_0x3b0fc2,'ELEMENT_PAGE_BREAK',_0x61b8f1));}}class kt extends _0xb6c9b9{['afterInit'](){const _0x416702=this['editor'];if(!_0x416702['plugins']['has']('Paragraph'))return;const _0x28b885=_0x416702['locale'],_0x523387=_0x416702['plugins']['get']('TrackChangesEditing');_0x523387['descriptionFactory']['registerElementLabel']('paragraph',_0x4eac30=>o(_0x28b885,'ELEMENT_PARAGRAPH',_0x4eac30)),_0x523387['enableDefaultAttributesIntegration']('paragraph'),_0x523387['enableCommand']('insertParagraph'),_0x416702['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x416702),{'priority':'highest'}),_0x416702['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x17e7d4,_0x5cbc50,_0x4bddf8)=>{_0x4bddf8['options']['showSuggestionHighlights']&&nr(_0x416702,{'showActiveMarker':!0x1})(_0x17e7d4,_0x5cbc50,_0x4bddf8);},{'priority':'highest'});const _0x34dcf3=_0x523387['descriptionFactory'];_0x34dcf3['registerDescriptionCallback'](_0x3e86ae=>{if('insertion'!==_0x3e86ae['type'])return;const {start:_0x5364b8,end:_0x59bd72}=_0x3e86ae['getFirstRange']();if(!_0x5364b8['isTouching'](_0x59bd72)||!_0x5364b8['nodeAfter'])return;const _0x11ec4=_0x416702['model']['schema'],_0x12eda0=_0x5364b8['nodeAfter'];return _0x11ec4['isBlock'](_0x12eda0)&&!_0x11ec4['isLimit'](_0x12eda0)&&_0x11ec4['checkChild'](_0x12eda0,'$text')?{'type':'insertion','content':o(_0x28b885,'*Insert:*\x20%0',_0x34dcf3['getItemLabel'](_0x12eda0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f19b8=this['editor'],_0x49dae3=_0x2f19b8['locale'];_0x2f19b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c77b4=>{if('formatBlock'!=_0x2c77b4['type'])return;const {data:_0x362f07}=_0x2c77b4;return _0x362f07&&'paragraph'==_0x362f07['commandName']?{'type':'format','content':o(_0x49dae3,'*Change\x20to:*\x20%0',o(_0x49dae3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2f5bac,{showActiveMarker:_0x3ca8ff=!0x0}={}){return(_0x3eb37d,_0x33fbfc,_0x25bb05)=>{const _0x417825=_0x2f5bac['plugins']['get']('TrackChangesEditing'),_0x1a1120=_0x33fbfc['markerRange']['start'],_0x55cd6d=_0x33fbfc['markerRange']['end'],_0x8aef2d=_0x2f5bac['model']['schema'];if(!_0x1a1120['isTouching'](_0x55cd6d)||!_0x1a1120['nodeAfter'])return;const _0x178e11=_0x1a1120['nodeAfter'];if(_0x8aef2d['isBlock'](_0x178e11)&&!_0x8aef2d['isLimit'](_0x178e11)&&_0x8aef2d['checkChild'](_0x178e11,'$text')){if(!_0x25bb05['consumable']['consume'](_0x33fbfc['markerRange'],_0x3eb37d['name']))return;const {id:_0x20cea2,authorId:_0x539ba7}=_0x417825['_splitMarkerName'](_0x33fbfc['markerName']),_0x5290ae=_0x25bb05['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x20cea2,'data-author-id':_0x539ba7}),_0x15409c=_0x25bb05['mapper']['toViewPosition'](_0x55cd6d);_0x3ca8ff&&_0x417825['activeMarkers']['includes'](_0x33fbfc['markerName'])&&_0x25bb05['writer']['addClass']('ck-suggestion-marker--active',_0x5290ae),_0x25bb05['writer']['insert'](_0x15409c,_0x5290ae),_0x25bb05['mapper']['bindElementToMarker'](_0x5290ae,_0x33fbfc['markerName']);}};}class wt extends _0xb6c9b9{['afterInit'](){const _0x1a054f=this['editor'];_0x1a054f['commands']['get']('replaceSource')&&_0x1a054f['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xb6c9b9{['afterInit'](){const _0x4dd8b1=this['editor'];if(!_0x4dd8b1['plugins']['has']('RemoveFormatEditing'))return;_0x4dd8b1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12084b=this['editor'];_0x12084b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c19c4=>{if('formatBlock'!=_0x3c19c4['type']&&'formatInline'!=_0x3c19c4['type'])return;const {data:_0x19695c}=_0x3c19c4;return _0x19695c&&'removeFormat'==_0x19695c['commandName']?{'type':'format','content':o(_0x12084b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xb6c9b9{['afterInit'](){const _0x13cdba=this['editor'];if(!_0x13cdba['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xc9c13a=_0x13cdba['plugins']['get']('TrackChangesEditing');_0xc9c13a['enableCommand']('goToPreviousRestrictedEditingException'),_0xc9c13a['enableCommand']('goToNextRestrictedEditingException');const _0x5dbaa6=_0x13cdba['plugins']['get']('RestrictedEditingModeEditing');_0x5dbaa6['enableCommand']('trackChanges'),_0x5dbaa6['enableCommand']('acceptSuggestion'),_0x5dbaa6['enableCommand']('discardSuggestion'),_0x5dbaa6['enableCommand']('acceptAllSuggestions'),_0x5dbaa6['enableCommand']('discardAllSuggestions'),_0x5dbaa6['enableCommand']('acceptSelectedSuggestions'),_0x5dbaa6['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xb6c9b9{['afterInit'](){const _0x7787ec=this['editor'];if(!_0x7787ec['plugins']['has']('ShiftEnter'))return;const _0x4b0d68=_0x7787ec['plugins']['get']('TrackChangesEditing');_0x4b0d68['enableCommand']('shiftEnter'),_0x7787ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x7787ec),{'priority':'high'}),_0x7787ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x7787ec),{'priority':'high'}),_0x7787ec['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x48405a,_0x504c8b,_0x714c2c)=>{_0x714c2c['options']['showSuggestionHighlights']&&je(_0x7787ec,{'showActiveMarker':!0x1})(_0x48405a,_0x504c8b,_0x714c2c);}),_0x4b0d68['descriptionFactory']['registerElementLabel']('softBreak',_0x1a3243=>o(_0x7787ec['locale'],'ELEMENT_LINE_BREAK',_0x1a3243));}}function je(_0x1886b2,{showActiveMarker:_0x11f096=!0x0}={}){return(_0x161f7c,_0x9ce39a,_0x543780)=>{const _0x2be19c=_0x1886b2['plugins']['get']('TrackChangesEditing');if(!_0x543780['consumable']['test'](_0x9ce39a['markerRange'],_0x161f7c['name']))return;const _0x2cf1a9=_0x1886b2['model'];for(const _0x4241a2 of _0x9ce39a['markerRange']['getItems']()){if(!_0x4241a2['is']('element','softBreak'))continue;const _0x334c34='deletion'==_0x9ce39a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x138c6a,authorId:_0x4e0aa8}=_0x2be19c['_splitMarkerName'](_0x9ce39a['markerName']),_0xefa4f4=_0x543780['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x334c34,'data-suggestion':_0x138c6a,'data-author-id':_0x4e0aa8}),_0xd82c8d=_0x543780['mapper']['toViewPosition'](_0x2cf1a9['createPositionBefore'](_0x4241a2));_0x11f096&&_0x2be19c['activeMarkers']['includes'](_0x9ce39a['markerName'])&&_0x543780['writer']['addClass']('ck-suggestion-marker--active',_0xefa4f4),_0x543780['writer']['insert'](_0xd82c8d,_0xefa4f4),_0x543780['mapper']['bindElementToMarker'](_0xefa4f4,_0x9ce39a['markerName']);}};}class St extends _0xb6c9b9{['afterInit'](){const _0x395171=this['editor'],_0x108dc4=_0x395171['model'],_0x3f745f=_0x395171['locale'];if(!_0x395171['plugins']['has']('StandardEditingModeEditing'))return;const _0x4f9267=_0x395171['plugins']['get']('TrackChangesEditing'),_0x31f0ec='restrictedEditingException',_0x18ab44=_0x395171['commands']['get'](_0x31f0ec);_0x4f9267['enableCommand'](_0x31f0ec,(_0x444071,_0x6ce1ee={})=>{const _0x5be047=_0x108dc4['document']['selection'];if(_0x5be047['isCollapsed'])return void _0x444071(_0x6ce1ee);const _0x346294=void 0x0!==_0x6ce1ee['forceValue']?_0x6ce1ee['forceValue']:!_0x18ab44['value'];_0x108dc4['change'](()=>{const _0x122a37=Array['from'](_0x5be047['getRanges']());for(const _0x198262 of _0x122a37){const _0x11ad96=_0x346294?[_0x198262]:io(_0x31f0ec,_0x198262,_0x108dc4);for(const _0x3257fa of _0x11ad96)_0x4f9267['markInlineFormat'](_0x3257fa,{'commandName':_0x31f0ec,'commandParams':[{'forceValue':_0x346294}]});}});}),_0x4f9267['descriptionFactory']['registerDescriptionCallback'](_0x1110fb=>{if('formatBlock'!=_0x1110fb['type']&&'formatInline'!=_0x1110fb['type'])return;const {data:_0x47bc93}=_0x1110fb;return _0x47bc93&&_0x47bc93['commandName']==_0x31f0ec?_0x47bc93['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f745f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3f745f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xb6c9b9{['afterInit'](){const _0x17f4b8=this['editor'];if(!_0x17f4b8['plugins']['has']('Style')||!_0x17f4b8['plugins']['has']('DataSchema'))return;const _0x2f0105=_0x17f4b8['plugins']['get']('TrackChangesEditing'),_0x3e356e=_0x17f4b8['locale'],_0x3134e9=_0x17f4b8['config']['get']('style')||{},_0x4c36c2=_0x17f4b8['plugins']['get']('GeneralHtmlSupport'),_0x2e78fb=_0x17f4b8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x17f4b8['plugins']['get']('DataSchema'),_0x3134e9['definitions']);_0x2f0105['enableDefaultAttributesIntegration']('style');const _0x2fcb3e=new Set();for(const _0x5b2a92 of _0x2e78fb['block']){const _0x870db2=_0x4c36c2['getGhsAttributeNameForElement'](_0x5b2a92['element']);_0x2fcb3e['add'](_0x870db2);}const _0x4e4b4a=new Set();for(const _0x4f7287 of _0x2e78fb['inline']){const _0x503a27=_0x4c36c2['getGhsAttributeNameForElement'](_0x4f7287['element']);_0x4e4b4a['add'](_0x503a27);for(const _0x68edd4 of _0x4f7287['ghsAttributes'])_0x4e4b4a['add'](_0x68edd4);}for(const _0x50b1dd of _0x2fcb3e)_0x2f0105['registerBlockAttribute'](_0x50b1dd),_0x2f0105['descriptionFactory']['registerAttributeLabel'](_0x50b1dd,o(_0x3e356e,'FORMAT_STYLE'));for(const _0x5bc29f of _0x4e4b4a)_0x2f0105['registerInlineAttribute'](_0x5bc29f),_0x2f0105['descriptionFactory']['registerAttributeLabel'](_0x5bc29f,o(_0x3e356e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x223ead=this['editor'],_0x2275a6=_0x223ead['locale'];_0x223ead['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ff838=>{if('formatBlock'!=_0x4ff838['type']&&'formatInline'!=_0x4ff838['type'])return;const {data:_0x5e8368}=_0x4ff838;return _0x5e8368&&'style'===_0x5e8368['commandName']?_0x5e8368['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2275a6,'*Set\x20format:*\x20%0',_0x5e8368['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2275a6,'*Remove\x20format:*\x20%0',_0x5e8368['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xb6c9b9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ae158){super(_0x1ae158),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x325360=this['editor'],_0x459810=_0x325360['model']['document']['selection'];if(!_0x325360['plugins']['has']('TableEditing'))return;const _0x5eff14=_0x325360['locale'],_0x1e1371=_0x325360['plugins']['get']('TrackChangesEditing'),_0xf6fe9f=_0x325360['plugins']['get']('TableUtils');_0x1e1371['descriptionFactory']['registerElementLabel']('table',_0x471b48=>o(_0x5eff14,'ELEMENT_TABLE',_0x471b48)),this['_setupColumnsRowsFixing'](),_0x1e1371['enableCommand']('insertTable'),_0x1e1371['enableCommand']('selectTableRow'),_0x1e1371['enableCommand']('selectTableColumn');for(const _0x12717a of['insertTableRowAbove','insertTableRowBelow']){const _0x1d81ad=_0x325360['commands']['get'](_0x12717a);_0x1e1371['enableCommand'](_0x12717a,_0x98444b=>{_0x325360['model']['change'](_0x33ee2b=>{_0x98444b();const _0x3e53c8='above'===_0x1d81ad['order'],_0x1a6ede=_0xf6fe9f['getSelectionAffectedTableCells'](_0x459810),_0x33752e=_0xf6fe9f['getRowIndexes'](_0x1a6ede),_0x5bc4a7=_0x3e53c8?_0x33752e['first']-0x1:_0x33752e['last']+0x1,_0x1692db=_0x1a6ede[0x0]['findAncestor']('table'),_0x3c53ec=_0xf6fe9f['createTableWalker'](_0x1692db,{'startRow':_0x5bc4a7,'endRow':_0x5bc4a7}),_0x5a6838=Array['from'](_0x3c53ec)['map'](_0x252850=>_0x33ee2b['createRangeOn'](_0x252850['cell']));_0x1e1371['markMultiRangeInsertion'](_0x5a6838,'tableRow');});});}for(const _0x3a235b of['insertTableColumnLeft','insertTableColumnRight']){const _0x28b598=_0x325360['commands']['get'](_0x3a235b);_0x1e1371['enableCommand'](_0x3a235b,_0x232803=>{_0x325360['model']['change'](_0x411df2=>{_0x232803();const _0x1d9b6a='left'===_0x28b598['order'],_0x581299=_0xf6fe9f['getSelectionAffectedTableCells'](_0x459810),_0x222e1a=_0xf6fe9f['getColumnIndexes'](_0x581299),_0x2ca168=_0x1d9b6a?_0x222e1a['first']-0x1:_0x222e1a['last']+0x1,_0x3e971e=_0x581299[0x0]['findAncestor']('table'),_0x49d139=_0xf6fe9f['createTableWalker'](_0x3e971e,{'startRow':0x0,'column':_0x2ca168,'includeAllSlots':!0x1}),_0x43bee1=Array['from'](_0x49d139)['map'](_0x21648e=>_0x411df2['createRangeOn'](_0x21648e['cell']));_0x1e1371['markMultiRangeInsertion'](_0x43bee1,'tableColumn');});});}for(const _0x4c824a of['removeTableRow','removeTableColumn']){const _0x23b92a=_0x4c824a['substr'](0xb),_0x4e52d6=_0x23b92a['toLowerCase'](),_0x46f479=_0x4e52d6['substr'](0x0,0x3)+'span',_0x385715='table'+_0x23b92a,_0x2ef53c='min'+_0x23b92a,_0x41b565='max'+_0x23b92a;_0x1e1371['enableCommand'](_0x4c824a,()=>{_0x325360['model']['change'](_0x5ebf54=>{const _0x12263a=_0xf6fe9f['getSelectionAffectedTableCells'](_0x459810),_0x3427ab=_0x12263a[0x0]['findAncestor']('table');let _0x313596;if('removeTableRow'==_0x4c824a){const _0x49ce9e=_0xf6fe9f['getRowIndexes'](_0x12263a);_0x313596={'startRow':_0x49ce9e['first'],'endRow':_0x49ce9e['last'],'includeAllSlots':!0x0};}else{const _0x202939=_0xf6fe9f['getColumnIndexes'](_0x12263a);_0x313596={'startColumn':_0x202939['first'],'endColumn':_0x202939['last'],'includeAllSlots':!0x0};}const _0x242b9d=_0xf6fe9f['createTableWalker'](_0x3427ab,_0x313596),_0x1ed743=Array['from'](_0x242b9d)['map'](({cell:_0x91f794})=>_0x91f794),_0x5713a9=Ne(_0x1ed743['filter'](_0x2b552f=>_0x2b552f['hasAttribute'](_0x46f479))),_0x47778c=Ne(_0x1ed743['filter'](_0x526e7b=>!_0x526e7b['hasAttribute'](_0x46f479)))['map'](_0x4f25f0=>_0x5ebf54['createRangeOn'](_0x4f25f0)),_0x46ca8c=_0x1e1371['markMultiRangeDeletion'](_0x47778c,_0x385715);if(_0x46ca8c&&('tableRow'==_0x46ca8c['subType']||'tableColumn'==_0x46ca8c['subType'])){const _0x2dd552=this['_getSuggestionCoords'](_0x46ca8c);for(const _0x26e0bb of _0x5713a9){const _0x55c1b6=_0x5ebf54['createRangeOn'](_0x26e0bb),_0x52c470=_0xf6fe9f['getCellLocation'](_0x26e0bb),_0x2f5792=_0x26e0bb['getAttribute'](_0x46f479)-0x1,_0x28cfee=_0x2dd552[_0x2ef53c],_0x2c0dcc=_0x2dd552[_0x41b565];_0x28cfee<=_0x52c470[_0x4e52d6]&&_0x52c470[_0x4e52d6]+_0x2f5792<=_0x2c0dcc&&_0x46ca8c['addRange'](_0x55c1b6);}}});});}function _0x1459d6(_0x1b9dee){const _0x32da93=Array['from'](_0x459810['getRanges']())['map'](_0x23240a=>_0x4ffd26['fromRange'](_0x23240a));_0x325360['model']['change'](_0x20f3e1=>{const _0x43cc3f=_0x20f3e1['batch'];_0x1b9dee=_0x1b9dee['filter'](_0x33fe0f=>'$graveyard'!=_0x33fe0f['root']['rootName']),_0x20f3e1['setSelection'](_0x1b9dee),_0x325360['commands']['get']('removeTableRow')['refresh'](),_0x325360['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x325360['model']['enqueueChange'](()=>{_0x325360['model']['enqueueChange'](_0x43cc3f,_0x33c14b=>{const _0x5d7a60=_0x32da93['filter'](_0x190e53=>'$graveyard'!=_0x190e53['root']['rootName']);_0x5d7a60['length']>0x0&&_0x33c14b['setSelection'](_0x5d7a60);for(const _0x4b89af of _0x32da93)_0x4b89af['detach']();});});});}function _0x171c20(_0x44e9a4){_0x325360['model']['change'](_0x4e0918=>{const _0x394c5f=Array['from'](_0x459810['getRanges']())['map'](_0x1ace73=>_0x4ffd26['fromRange'](_0x1ace73)),_0x4c24e9=[];for(const _0x4ec82e of _0x44e9a4)for(const _0x162ed4 of _0x4ec82e['getItems']({'shallow':!0x0}))_0x4c24e9['push'](_0x162ed4);for(const _0x197d62 of _0x4c24e9)'$graveyard'!=_0x197d62['root']['rootName']&&(_0x4e0918['setSelection'](_0x4e0918['createPositionAt'](_0x197d62,0x0)),_0x325360['commands']['get']('removeTableColumn')['refresh'](),_0x325360['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x29445e=_0x394c5f['filter'](_0x36e4a0=>'$graveyard'!=_0x36e4a0['root']['rootName']);_0x29445e['length']>0x0&&_0x4e0918['setSelection'](_0x29445e);for(const _0x1a367f of _0x394c5f)_0x1a367f['detach']();});}function _0x2010fd(_0x126e28,_0x4a8d4c){return _0x4a8d4c['every'](_0x36e971=>_0x126e28['some'](_0x2058e4=>_0x2058e4['end']['isEqual'](_0x36e971['start'])||_0x36e971['end']['isEqual'](_0x2058e4['start'])));}function _0x3a203d(_0x46aee5,_0x171b8e){return!_0x46aee5['some'](_0x2e4095=>_0x171b8e['some'](_0x46ee52=>_0x2e4095['isIntersecting'](_0x46ee52)))&&_0x46aee5['some'](_0x41de15=>_0x171b8e['some'](_0x19e52e=>_0x41de15['end']['isTouching'](_0x19e52e['start'])));}_0x325360['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9a01be,_0x324c62,_0x2d951e)=>{if(!_0x2d951e['options']['showSuggestionHighlights'])return;const _0x53165f=_0x324c62['item'];if(!_0x53165f||!_0x53165f['is']('element','tableCell'))return;const _0x5adfa6=_0x2d951e['mapper']['toViewElement'](_0x53165f);if(_0x5adfa6){const {id:_0x1ffe60,authorId:_0x27e611}=_0x1e1371['_splitMarkerName'](_0x324c62['markerName']);_0x310eca(_0x5adfa6,_0x2d951e['writer'],(_0xe6df79,_0x1580b0,_0x4e7d3f)=>{_0x4e7d3f['addClass'](_0x310fac(_0x1580b0['classes']),_0xe6df79),_0x4e7d3f['setAttribute']('data-suggestion-id',_0x1ffe60,_0xe6df79),_0x4e7d3f['setAttribute']('data-author-id',_0x27e611,_0xe6df79);},(_0x2e132b,_0x21dda1,_0x3cab18)=>{_0x3cab18['removeClass'](_0x310fac(_0x21dda1['classes']),_0x2e132b),_0x3cab18['removeAttribute']('data-suggestion-id',_0x2e132b),_0x3cab18['removeAttribute']('data-author-id',_0x2e132b);});}},{'priority':'highest'}),_0x1e1371['descriptionFactory']['registerDescriptionCallback'](_0x5b1d50=>{if('insertion'!=_0x5b1d50['type']&&'deletion'!=_0x5b1d50['type'])return;const _0x30af26=_0x5b1d50['getContainedElement']();if(null!=_0x30af26&&_0x30af26['is']('element','table')){if('insertion'==_0x5b1d50['type']){const _0x14f220=_0x5b1d50['getItems']()['filter'](_0x328eae=>_0x328eae['is']('$textProxy'))['map'](_0x84b687=>_0x84b687['data']);if(_0x14f220['length'])return{'type':'insertion','content':o(_0x5eff14,'*Insert:*\x20%0',o(_0x5eff14,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x14f220['join']('\x20')+'\x22'))};}if('deletion'==_0x5b1d50['type']){const _0x5ba79f=_0x5b1d50['getItems']()['filter'](_0x416579=>_0x416579['is']('$textProxy'))['map'](_0x1a4977=>_0x1a4977['data']);if(_0x5ba79f['length'])return{'type':'deletion','content':o(_0x5eff14,'*Remove:*\x20%0',o(_0x5eff14,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5ba79f['join']('\x20')+'\x22'))};}}}),_0x1e1371['descriptionFactory']['registerDescriptionCallback'](_0x2d58b9=>{if('tableRow'==_0x2d58b9['subType']){const _0xf47b88=_0x2d58b9['getItems']()['filter'](_0x27d899=>_0x27d899['is']('$textProxy'))['map'](_0x5da09f=>_0x5da09f['data']),_0x4b2d5b=this['_getSuggestionCoords'](_0x2d58b9),_0x4800dd=_0x4b2d5b['maxRow']-_0x4b2d5b['minRow']+0x1;if('insertion'==_0x2d58b9['type'])return _0xf47b88['length']?{'type':'insertion','content':o(_0x5eff14,'*Insert:*\x20%0',o(_0x5eff14,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4800dd,'\x22'+_0xf47b88['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5eff14,'*Insert:*\x20%0',o(_0x5eff14,'ELEMENT_TABLE_ROW',_0x4800dd))};if('deletion'==_0x2d58b9['type'])return _0xf47b88['length']?{'type':'deletion','content':o(_0x5eff14,'*Remove:*\x20%0',o(_0x5eff14,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4800dd,'\x22'+_0xf47b88['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5eff14,'*Remove:*\x20%0',o(_0x5eff14,'ELEMENT_TABLE_ROW',_0x4800dd))};}if('tableColumn'==_0x2d58b9['subType']){const _0x705ead=_0x2d58b9['getItems']()['filter'](_0x46a71e=>_0x46a71e['is']('$textProxy'))['map'](_0x2d2fb8=>_0x2d2fb8['data']),_0x69df82=this['_getSuggestionCoords'](_0x2d58b9),_0x2f4d58=_0x69df82['maxColumn']-_0x69df82['minColumn']+0x1;if('insertion'==_0x2d58b9['type'])return _0x705ead['length']?{'type':'insertion','content':o(_0x5eff14,'*Insert:*\x20%0',o(_0x5eff14,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2f4d58,'\x22'+_0x705ead['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5eff14,'*Insert:*\x20%0',o(_0x5eff14,'ELEMENT_TABLE_COLUMN',_0x2f4d58))};if('deletion'==_0x2d58b9['type'])return _0x705ead['length']?{'type':'deletion','content':o(_0x5eff14,'*Remove:*\x20%0',o(_0x5eff14,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2f4d58,'\x22'+_0x705ead['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5eff14,'*Remove:*\x20%0',o(_0x5eff14,'ELEMENT_TABLE_COLUMN',_0x2f4d58))};}}),_0x1e1371['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1459d6),_0x1e1371['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1459d6),_0x1e1371['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x171c20),_0x1e1371['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x171c20),_0x1e1371['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2010fd),_0x1e1371['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2010fd),_0x1e1371['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3a203d),_0x1e1371['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3a203d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x300150=this['editor'],_0x3ebac5=_0x300150['model']['document']['selection'];return(_0x1aba82,_0x593d03)=>{_0x300150['model']['change'](_0x3c7243=>{const {commandName:_0x5a43f1,commandParams:_0x21e908}=_0x593d03;let _0xe5cd3d=_0x1aba82[0x0]['end']['nodeBefore'];_0x21e908&&_0x21e908[0x0]&&!0x1===_0x21e908[0x0]['forceValue']&&(_0xe5cd3d=_0x1aba82[0x0]['start']['nodeAfter']);const _0x3e03f2=_0x3c7243['createRangeIn'](_0xe5cd3d);if('$graveyard'==_0x3e03f2['root']['rootName'])return;const _0x56d4ab=Array['from'](_0x3ebac5['getRanges']())['map'](_0x26d05a=>_0x4ffd26['fromRange'](_0x26d05a));_0x3c7243['setSelection'](_0x3e03f2),_0x300150['commands']['get'](_0x5a43f1)['refresh'](),_0x21e908['push']({'forceDefaultExecution':!0x0}),_0x300150['execute'](_0x5a43f1,..._0x21e908);const _0x4c8b9e=_0x56d4ab['filter'](_0x1bcff9=>'$graveyard'!=_0x1bcff9['root']['rootName']);_0x4c8b9e['length']>0x0&&_0x3c7243['setSelection'](_0x4c8b9e);for(const _0x49e3f4 of _0x56d4ab)_0x49e3f4['detach']();});};}['_getCoordsForCells'](_0x144c04){const _0x3100d2=this['editor']['plugins']['get']('TableUtils');let _0x1d9b13=Number['MAX_SAFE_INTEGER'],_0x3b82fd=Number['MIN_SAFE_INTEGER'],_0x4c1db8=Number['MAX_SAFE_INTEGER'],_0x3126bf=Number['MIN_SAFE_INTEGER'];for(const _0x4f6ad7 of _0x144c04){if('$graveyard'==_0x4f6ad7['root']['rootName'])continue;const {row:_0x22276e,column:_0x58aa82}=_0x3100d2['getCellLocation'](_0x4f6ad7),_0x2061d2=_0x4f6ad7['hasAttribute']('rowspan')?_0x4f6ad7['getAttribute']('rowspan')-0x1:0x0,_0x516fce=_0x4f6ad7['hasAttribute']('colspan')?_0x4f6ad7['getAttribute']('colspan')-0x1:0x0;_0x1d9b13=_0x22276e<_0x1d9b13?_0x22276e:_0x1d9b13,_0x3b82fd=_0x22276e+_0x2061d2>_0x3b82fd?_0x22276e+_0x2061d2:_0x3b82fd,_0x4c1db8=_0x58aa82<_0x4c1db8?_0x58aa82:_0x4c1db8,_0x3126bf=_0x58aa82+_0x516fce>_0x3126bf?_0x58aa82+_0x516fce:_0x3126bf;}return{'minRow':_0x1d9b13,'maxRow':_0x3b82fd,'minColumn':_0x4c1db8,'maxColumn':_0x3126bf};}['_setupColumnsRowsFixing'](){const _0x39c08b=this['editor'],_0x35fd70=_0x39c08b['plugins']['get']('TrackChangesEditing'),_0x4e95d3=_0x39c08b['plugins']['get']('TableUtils');_0x39c08b['model']['document']['on']('change:data',()=>{const _0x13a88d=Array['from'](_0x39c08b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22f9a9,data:_0x217cd8}of _0x13a88d){const {group:_0x5aff56,id:_0x9c246e,subType:_0x320663}=_0x35fd70['_splitMarkerName'](_0x22f9a9);if('suggestion'!=_0x5aff56)continue;if(null!=_0x217cd8['oldRange'])continue;const _0x3d3831=_0x35fd70['getSuggestion'](_0x9c246e);this['_tablePostFixingSubtypes']['includes'](_0x320663)&&this['_tableSuggestions']['add'](_0x3d3831);}},{'priority':'low'});const _0x88a4d2=(_0x20e040,_0x3b58d4)=>{let _0x312d18=!0x1;const _0x3f8fcf=_0x3b58d4['createRangeOn'](_0x20e040),_0x4a7da3=_0x20e040['findAncestor']('table'),_0xb4679a=_0x4e95d3['getCellLocation'](_0x20e040);for(const _0x425fbb of this['_tableSuggestions']){const _0x52dbf5=_0x425fbb['subType'],_0x51f970=_0x52dbf5['startsWith']('tablePaste'),_0x4ff300=_0x52dbf5['substr'](_0x51f970?0xa:0x5),_0x226ffb=_0x4ff300['toLowerCase'](),_0x220205=_0x226ffb['substr'](0x0,0x3)+'span',_0x5ca6fe='min'+_0x4ff300,_0x4716d0='max'+_0x4ff300;if(!_0x425fbb['isInContent'])continue;if(_0x4a7da3!=_0x425fbb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x425fbb['isIntersectingWithRange'](_0x3f8fcf))continue;const _0x3503c8=_0x20e040['hasAttribute'](_0x220205)?_0x20e040['getAttribute'](_0x220205)-0x1:0x0,_0x507923=this['_getSuggestionCoords'](_0x425fbb),_0x152c0a=_0x507923[_0x5ca6fe],_0x7f6ced=_0x507923[_0x4716d0];_0x152c0a<=_0xb4679a[_0x226ffb]&&_0xb4679a[_0x226ffb]+_0x3503c8<=_0x7f6ced&&(_0x425fbb['addRange'](_0x3f8fcf),_0x312d18=!0x0);}return _0x312d18;};_0x39c08b['model']['document']['registerPostFixer'](_0x1bc254=>{let _0x58fe70=!0x1;for(const _0x125423 of _0x39c08b['model']['document']['differ']['getChanges']())if('insert'==_0x125423['type']){if('tableRow'==_0x125423['name']){for(const _0xa30eb of _0x125423['position']['nodeAfter']['getChildren']())_0x58fe70=_0x58fe70||_0x88a4d2(_0xa30eb,_0x1bc254);}else'tableCell'==_0x125423['name']&&(_0x58fe70=_0x58fe70||_0x88a4d2(_0x125423['position']['nodeAfter'],_0x1bc254));}return _0x58fe70;});}['_getSuggestionCoords'](_0x5d082e){return this['_getCoordsForCells'](_0x5d082e['getRanges']()['map'](_0x3240aa=>_0x3240aa['start']['nodeAfter']));}}function Ne(_0x2f4698){return Array['from'](new Set(_0x2f4698)['values']());}class _t extends _0xb6c9b9{static get['requires'](){return[At];}['afterInit'](){const _0x23b6a1=this['editor'],_0x53fdd=_0x23b6a1['model']['document']['selection'],_0x49aee0=_0x23b6a1['locale'];if(!_0x23b6a1['plugins']['has']('TableEditing'))return;const _0x129d03=_0x23b6a1['plugins']['get']('TrackChangesEditing'),_0x52d1ce=_0x23b6a1['plugins']['get']('TableUtils'),_0x1bf61a=_0x23b6a1['plugins']['get'](At);_0x1bf61a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x129d03['enableCommand']('mergeTableCells',()=>{const _0x372f1a=_0x52d1ce['getSelectionAffectedTableCells'](_0x23b6a1['model']['document']['selection']);_0x23b6a1['model']['change'](()=>{_0x129d03['markMultiRangeBlockFormat'](_0x372f1a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x23b6a1['commands']['get']('mergeTableCells')['on']('execute',(_0xe42b30,_0x2745ef)=>{_0x23b6a1['commands']['get']('trackChanges')['value']&&(_0x2745ef['length']>0x0&&_0x2745ef[_0x2745ef['length']-0x1]&&_0x2745ef[_0x2745ef['length']-0x1]['forceDefaultExecution']||_0x129d03['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xe42b30['stop']());},{'priority':'highest'});for(const _0x4f583c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2cbc3b=_0x23b6a1['commands']['get'](_0x4f583c);_0x129d03['enableCommand'](_0x4f583c,()=>{const _0x4d8f41=_0x23b6a1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x51f911=>_0x51f911['is']('element','tableCell')),_0x1abf43=_0x2cbc3b['value'];_0x23b6a1['model']['change'](()=>{_0x129d03['markMultiRangeBlockFormat']([_0x4d8f41,_0x1abf43],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5b4dc0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x396f27=_0x23b6a1['commands']['get'](_0x5b4dc0);_0x129d03['enableCommand'](_0x5b4dc0,()=>{const _0x3f485e=_0x52d1ce['getSelectionAffectedTableCells'](_0x23b6a1['model']['document']['selection'])[0x0],_0x5c6710=_0x3f485e['findAncestor']('table'),{column:_0x1758f9,row:_0x438a71}=_0x52d1ce['getCellLocation'](_0x3f485e);let _0x74d4cf=[];if('horizontally'==_0x396f27['direction']){const _0x33d4d1=_0x52d1ce['createTableWalker'](_0x5c6710,{'startRow':_0x438a71,'endRow':_0x438a71,'includeAllSlots':!0x0});_0x74d4cf=Array['from'](_0x33d4d1)['map'](_0xc6e23a=>_0xc6e23a['cell']);}else{const _0x11f5b8=_0x52d1ce['createTableWalker'](_0x5c6710,{'column':_0x1758f9,'includeAllSlots':!0x0});_0x74d4cf=Array['from'](_0x11f5b8)['map'](_0xa22f76=>_0xa22f76['cell']);}_0x23b6a1['model']['change'](_0xc251a6=>{_0x129d03['markBlockFormat'](_0xc251a6['createRangeOn'](_0x3f485e),{'commandName':_0x5b4dc0,'commandParams':[]},_0x74d4cf,_0x5b4dc0);});});}_0x129d03['descriptionFactory']['registerDescriptionCallback'](_0x16afa1=>{if('formatBlock'!=_0x16afa1['type']&&'formatInline'!=_0x16afa1['type'])return;const {data:_0x3531bb}=_0x16afa1;return _0x3531bb&&'mergeTableCells'==_0x3531bb['commandName']?{'type':'format','content':o(_0x49aee0,'*Merge\x20cells*')}:void 0x0;}),_0x129d03['descriptionFactory']['registerDescriptionCallback'](_0x50e2a8=>{if('formatBlock'!=_0x50e2a8['type']&&'formatInline'!=_0x50e2a8['type'])return;const {data:_0xb018d5}=_0x50e2a8;return _0xb018d5?'splitTableCellVertically'==_0xb018d5['commandName']?{'type':'format','content':o(_0x49aee0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb018d5['commandName']?{'type':'format','content':o(_0x49aee0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3686b0=_0x1bf61a['_acceptFormatSuggestionCallbackFactory']();for(const _0x276630 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x129d03['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x276630,'accept',_0x3686b0);for(const _0x2a8625 of['splitTableCellVertically','splitTableCellHorizontally'])_0x129d03['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a8625,'accept',_0x3686b0);_0x129d03['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5e25ac=>{_0x23b6a1['model']['change'](_0x476192=>{const _0x1b3f56=Array['from'](_0x53fdd['getRanges']())['map'](_0x3a2fef=>_0x4ffd26['fromRange'](_0x3a2fef));_0x476192['setSelection'](_0x5e25ac),_0x23b6a1['commands']['get']('mergeTableCells')['refresh'](),_0x23b6a1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x18c719=_0x1b3f56['filter'](_0x3b02f8=>'$graveyard'!=_0x3b02f8['root']['rootName']);_0x18c719['length']>0x0&&_0x476192['setSelection'](_0x18c719);for(const _0x2caf98 of _0x1b3f56)_0x2caf98['detach']();});});for(const _0x1aae95 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3ea7d2=_0x23b6a1['commands']['get'](_0x1aae95);_0x3ea7d2['on']('set:isEnabled',(_0x5aa7be,_0x3f91b0,_0x147500)=>{if(_0x147500){const _0x1e717a=_0x23b6a1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38202b=>_0x38202b['is']('element','tableCell'));this['_areMergableCells'](_0x3ea7d2['value'],_0x1e717a)||(_0x5aa7be['return']=!0x1,_0x5aa7be['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2a28dd=this['editor']['commands']['get']('mergeTableCells'),_0x505b95=this['editor']['plugins']['get']('TableUtils');if(!_0x2a28dd['isEnabled'])return!0x1;const _0x371570=_0x505b95['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4884dd of _0x371570)for(const _0x1ec45f of _0x371570)if(_0x4884dd!=_0x1ec45f&&!this['_areMergableCells'](_0x4884dd,_0x1ec45f))return!0x1;return!0x0;}['_areMergableCells'](_0x331942,_0x224d6d){const _0x428cde=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17085e=this['editor']['model']['createRangeOn'](_0x331942),_0x44b11c=this['editor']['model']['createRangeOn'](_0x224d6d),_0x51d0ec=new Set(),_0xbe1a8=new Set();for(const _0x27a1ff of _0x428cde['getSuggestions']())if(('insertion'==_0x27a1ff['type']||'deletion'==_0x27a1ff['type']||'mergeTableCells'==_0x27a1ff['subType'])&&_0x27a1ff['isInContent']){for(const _0x4680f6 of _0x27a1ff['getRanges']())_0x4680f6['containsRange'](_0x17085e,!0x0)&&_0x51d0ec['add'](_0x27a1ff['type']+':'+_0x27a1ff['author']['id']),_0x4680f6['containsRange'](_0x44b11c,!0x0)&&_0xbe1a8['add'](_0x27a1ff['type']+':'+_0x27a1ff['author']['id']);}if(_0x51d0ec['size']!=_0xbe1a8['size'])return!0x1;for(const _0x3fbfeb of _0x51d0ec)if(!_0xbe1a8['has'](_0x3fbfeb))return!0x1;return!0x0;}}class Ct extends _0xb6c9b9{static get['requires'](){return[At];}['afterInit'](){const _0x46e5e7=this['editor'];if(!_0x46e5e7['plugins']['has']('TableEditing'))return;const _0x4a60fd=_0x46e5e7['locale'],_0x40ecc9=_0x46e5e7['plugins']['get']('TrackChangesEditing');_0x40ecc9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x40ecc9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x40ecc9['registerBlockAttribute']('headingRows'),_0x40ecc9['registerBlockAttribute']('headingColumns'),_0x40ecc9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4a60fd,'FORMAT_HEADER_ROW')),_0x40ecc9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4a60fd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x22129a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34da6b=this['editor']['plugins']['get']('TableUtils'),_0x48c947=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x1906ef({showActiveMarker:_0x310433=!0x0,setDataAttribute:_0x12f093=!0x0}={}){return(_0x562486,_0x5ce1f5,_0x3a52ad)=>{const {type:_0x281387,id:_0x4cdf96}=_0x22129a['_splitMarkerName'](_0x5ce1f5['markerName']),_0x396d7c=_0x22129a['getSuggestion'](_0x4cdf96),_0x30ac6a=_0x396d7c['data'];if('formatBlock'!=_0x396d7c['type']||!_0x30ac6a||'setTableColumnHeader'!=_0x30ac6a['commandName'])return;if(_0x5ce1f5['item'])return void _0x562486['stop']();if(!_0x3a52ad['consumable']['consume'](_0x5ce1f5['markerRange'],_0x562486['name']))return;const _0x5c4735=_0x5ce1f5['markerRange']['start']['nodeAfter'],_0x1b1702=_0x5ce1f5['markerRange']['end']['nodeBefore'],_0x356d1b=_0x5c4735['parent']['parent'],{column:_0x4bf56c}=_0x34da6b['getCellLocation'](_0x5c4735),{column:_0x3f037d}=_0x34da6b['getCellLocation'](_0x1b1702);for(let _0x29f2bc=_0x4bf56c;_0x29f2bc<=_0x3f037d;_0x29f2bc++){const _0x4ed0cf=_0x34da6b['createTableWalker'](_0x356d1b,{'column':_0x29f2bc,'includeAllSlots':!0x1});for(const _0x5e3f9c of _0x4ed0cf){const _0x32ad0a=_0x5e3f9c['cell'],_0x1e2848=_0x3a52ad['mapper']['toViewElement'](_0x32ad0a);_0x3a52ad['writer']['addClass']('ck-suggestion-marker-'+_0x281387,_0x1e2848),_0x12f093&&_0x3a52ad['writer']['setAttribute']('data-suggestion',_0x4cdf96,_0x1e2848),_0x3a52ad['mapper']['bindElementToMarker'](_0x1e2848,_0x5ce1f5['markerName']),_0x310433&&(_0x22129a['activeMarkers']['includes'](_0x5ce1f5['markerName'])?_0x3a52ad['writer']['addClass']('ck-suggestion-marker--active',_0x1e2848):_0x3a52ad['writer']['removeClass']('ck-suggestion-marker--active',_0x1e2848));}}};}_0x22129a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x48c947),_0x22129a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x48c947),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1906ef(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35e1e7,_0x271ea3,_0x4ce35b)=>{_0x4ce35b['options']['showSuggestionHighlights']&&_0x1906ef({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x35e1e7,_0x271ea3,_0x4ce35b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x27ed5f,_0x1a315e,_0x378917)=>{const {type:_0x489655,id:_0x55a11b}=_0x22129a['_splitMarkerName'](_0x1a315e['markerName']),_0x42750e=_0x22129a['getSuggestion'](_0x55a11b),_0x1d1a5e=_0x42750e['data'];if('formatBlock'!=_0x42750e['type']||!_0x1d1a5e||'setTableColumnHeader'!=_0x1d1a5e['commandName'])return;const _0x67d1f3=_0x378917['mapper']['markerNameToElements'](_0x1a315e['markerName']);if(_0x67d1f3){for(const _0x5a5e33 of _0x67d1f3)_0x378917['writer']['removeClass']('ck-suggestion-marker-'+_0x489655,_0x5a5e33),_0x378917['writer']['removeClass']('ck-suggestion-marker--active',_0x5a5e33),_0x378917['writer']['removeAttribute']('data-suggestion',_0x5a5e33),_0x378917['mapper']['unbindElementFromMarkerName'](_0x5a5e33,_0x1a315e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445412=this['editor'],_0x4fd707=_0x445412['locale'];function _0x8e07c4(_0x1ce870){return{'type':'format','content':o(_0x4fd707,'*Format:*\x20%0',_0x1ce870)};}_0x445412['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50f0a3=>{if('formatBlock'!=_0x50f0a3['type'])return;const {data:_0x386255}=_0x50f0a3;if(_0x386255){if('setTableRowHeader'==_0x386255['commandName']){const _0x3da181=_0x386255['commandParams'][0x0]['forceValue'];return _0x8e07c4(o(_0x4fd707,_0x3da181?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x386255['commandName']){const _0x375329=_0x386255['commandParams'][0x0]['forceValue'];return _0x8e07c4(o(_0x4fd707,_0x375329?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xb6c9b9{['afterInit'](){const _0x1d1ede=this['editor'],_0xc46747=_0x1d1ede['locale'],_0x2ec4de=_0x1d1ede['plugins']['get']('TrackChangesEditing');function _0x447eb8(_0x296d0b){return{'type':'format','content':''+o(_0xc46747,'*Set\x20table\x20type:*\x20%0',_0x296d0b)};}_0x1d1ede['plugins']['has']('TableLayout')&&(_0x2ec4de['enableCommand']('insertTableLayout'),_0x2ec4de['enableDefaultAttributesIntegration']('tableType'),_0x2ec4de['registerBlockAttribute']('tableType'),_0x2ec4de['descriptionFactory']['registerElementLabel'](_0x5b7450=>_0x5b7450['is']('element','table')&&'layout'===_0x5b7450['getAttribute']('tableType'),_0x54d6de=>o(_0xc46747,'ELEMENT_LAYOUT_TABLE',_0x54d6de)),_0x2ec4de['descriptionFactory']['registerDescriptionCallback'](_0x351d0a=>{const {data:_0x43bc98}=_0x351d0a;if(_0x43bc98&&'tableType'==_0x43bc98['key'])switch(_0x43bc98['newValue']){case'layout':return _0x447eb8(o(_0xc46747,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x447eb8(o(_0xc46747,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x3ca6f8=>[_0x3ca6f8,null]));class Nt extends _0xb6c9b9{static get['requires'](){return[At];}['afterInit'](){const _0x1550fa=this['editor'];if(!_0x1550fa['plugins']['has']('TableClipboard'))return;const _0x57dec9=_0x1550fa['plugins']['get']('TrackChangesEditing'),_0x5e565e=_0x1550fa['plugins']['get']('TableUtils'),_0x487214=_0x1550fa['plugins']['get'](At),_0x24ce3c=_0x1550fa['plugins']['get']('TableClipboard'),_0x51c95e=_0x1550fa['plugins']['get']('TableSelection'),_0x524fa2=_0x1550fa['plugins']['get'](_0x2a569a);_0x487214['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1550fa['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1550fa['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4c1618=null,_0x984dfe=!0x1;_0x524fa2['on']('contentInsertion',(_0x1df947,_0x3eb73c)=>{_0x984dfe='paste'===_0x3eb73c['method'];}),_0x1550fa['model']['on']('insertContent',(_0x2978ee,_0x35daf0)=>{if(!_0x984dfe&&null===_0x51c95e['getSelectedTableCells']())return;const [_0x34035e,_0x798a67]=_0x35daf0,_0x210ede=_0x35daf0[_0x35daf0['length']-0x1];_0x210ede&&_0x210ede['forceDefaultExecution']||_0x57dec9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5ee29d,_0x520bb6,_0x358cad,_0x8cbc1a,_0xbd9f28){if(_0x520bb6&&!_0x520bb6['is']('documentSelection'))return!0x1;const _0x48b10a=_0xbd9f28['getTableIfOnlyTableInContent'](_0x5ee29d,_0x358cad);if(!_0x48b10a||!Ue(_0x48b10a,void 0x0,_0x8cbc1a))return!0x1;const _0x2acad3=_0x8cbc1a['getSelectionAffectedTableCells'](_0x358cad['document']['selection']);if(!_0x2acad3['length'])return!0x1;const _0x1f0880=_0x2acad3[0x0]['findAncestor']('table'),_0x21c760=_0x8cbc1a['getRowIndexes'](_0x2acad3),_0x2cc67c=_0x8cbc1a['getColumnIndexes'](_0x2acad3),_0x5219b8={'startRow':_0x21c760['first'],'endRow':_0x21c760['last'],'startColumn':_0x2cc67c['first'],'endColumn':_0x2cc67c['last']};return 0x1==_0x2acad3['length']&&(_0x5219b8['endRow']+=_0x8cbc1a['getRows'](_0x48b10a)-0x1,_0x5219b8['endColumn']+=_0x8cbc1a['getColumns'](_0x48b10a)-0x1),Ue(_0x1f0880,_0x5219b8,_0x8cbc1a);}(_0x34035e,_0x798a67,_0x1550fa['model'],_0x5e565e,_0x24ce3c)&&(_0x2978ee['stop'](),_0x4c1618={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1550fa['model']['change'](()=>{_0x1550fa['model']['insertContent'](_0x35daf0[0x0],_0x35daf0[0x1],_0x35daf0[0x2],{'forceDefaultExecution':!0x0});const _0x4de7bd=_0x13da56(),{rowInsertionRanges:_0xcb9115,columnInsertionRanges:_0xf40c4,insertionRanges:_0x43ac6f,deletionRanges:_0xe52af6,cells:_0x3fa365}=_0x4c1618;_0xcb9115['length']&&_0x57dec9['markMultiRangeInsertion'](_0xcb9115,'tablePasteRow',{'tablePasteChainId':_0x4de7bd}),_0xf40c4['length']&&_0x57dec9['markMultiRangeInsertion'](_0xf40c4,'tablePasteColumn',{'tablePasteChainId':_0x4de7bd}),_0x43ac6f['length']&&(_0x57dec9['markMultiRangeInsertion'](_0x43ac6f,'tablePaste',{'tablePasteChainId':_0x4de7bd,'skipNestingCheck':!0x0}),_0x43ac6f['forEach'](_0x1064bf=>_0x1064bf['detach']?.())),_0xe52af6['length']&&(_0x57dec9['markMultiRangeDeletion'](_0xe52af6,'tablePaste',{'tablePasteChainId':_0x4de7bd,'skipNestingCheck':!0x0}),_0xe52af6['forEach'](_0x399ab8=>_0x399ab8['detach']?.()));const _0x24d9dc=_0x57dec9['markMultiRangeBlockFormat'](_0x3fa365['map'](({element:_0x10df91})=>_0x10df91),{'formatGroupId':_0x13da56()},[],'tablePasteCell',{'tablePasteChainId':_0x4de7bd});if(_0x24d9dc){const _0x194605=_0x24d9dc['getMarkers'](),_0xbd8f57=[];for(const {element:_0x159757,attributes:_0x308811}of _0x3fa365){if(!_0x308811)continue;const _0x4a9d89=_0x1550fa['model']['createRangeOn'](_0x159757),_0x3c4c25=_0x194605['find'](_0x4afed2=>_0x4afed2['getRange']()['isEqual'](_0x4a9d89));_0x3c4c25&&_0xbd8f57['push']([_0x3c4c25['name'],_0x308811]);}_0xbd8f57['length']&&_0x24d9dc['setAttribute']('markerAttributes',Object['fromEntries'](_0xbd8f57));}_0x4c1618=null;}));},{'priority':_0xc2125b['high']+0xa}),_0x524fa2['on']('contentInsertion',()=>{_0x984dfe=!0x1;},{'priority':'lowest'}),_0x1550fa['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3d6662,_0x554214)=>{const [_0x51a9f6,_0x49f795,,_0x3a6a44]=_0x554214;if(!_0x4c1618)return;_0x3d6662['stop']();const _0x40f0ff=_0x51a9f6['cell'],_0x40b292=_0x49f795,_0x38b232=Oe(_0x40f0ff),_0x2ddb3a=Oe(_0x40b292);_0x3d6662['return']=_0x40f0ff;let _0x3d6dda=null,_0x2440a1=null;if(_0x2ddb3a||_0x38b232){if(_0x38b232&&!_0x2ddb3a){_0x3a6a44['remove'](_0x40f0ff['getChild'](0x0));for(const _0x460589 of Array['from'](_0x40b292['getChildren']()))_0x3a6a44['insert'](_0x460589,_0x40f0ff,'end');const _0x3cb17b=_0x4c1618['rowInsertionIndexes']['includes'](_0x51a9f6['row']),_0x544b26=_0x4c1618['columnInsertionIndexes']['includes'](_0x51a9f6['column']);_0x3cb17b||_0x544b26||(_0x3d6dda=_0x4ffd26['fromRange'](_0x3a6a44['createRangeIn'](_0x40f0ff)));}else _0x2ddb3a&&!_0x38b232&&(_0x2440a1=_0x3a6a44['createRangeIn'](_0x40f0ff));}else{const _0x114c19=_0x3a6a44['createElement']('tableCellSuggestion'),_0x36957d=_0x3a6a44['createElement']('tableCellSuggestion');_0x3a6a44['wrap'](_0x3a6a44['createRangeIn'](_0x40f0ff),_0x36957d),_0x3a6a44['insert'](_0x114c19,_0x40f0ff,0x0);for(const _0x1bcf84 of Array['from'](_0x40b292['getChildren']()))_0x3a6a44['insert'](_0x1bcf84,_0x114c19,'end');_0x3d6dda=_0x4ffd26['fromRange'](_0x3a6a44['createRangeOn'](_0x114c19)),_0x2440a1=_0x4ffd26['fromRange'](_0x3a6a44['createRangeOn'](_0x36957d));}const _0x4d7b86=Array['from'](_0x40b292['getAttributes']())['filter'](([_0x28e7f1])=>Be['includes'](_0x28e7f1));_0x4c1618['cells']['push']({'element':_0x40f0ff,'attributes':_0x4d7b86['length']?Object['fromEntries'](_0x4d7b86):null}),_0x3d6dda&&_0x4c1618['insertionRanges']['push'](_0x3d6dda),_0x2440a1&&_0x4c1618['deletionRanges']['push'](_0x2440a1);},{'priority':'high'}),_0x5e565e['on']('insertColumns',(_0x32a06c,_0x4a73ef)=>{const [_0x4a11d1,_0x3bf4ce={}]=_0x4a73ef;if(!_0x4c1618)return;const _0x12cfd3=_0x3bf4ce['at']||0x0,_0x155cf4=_0x3bf4ce['columns']||0x1;_0x4c1618['columnInsertionIndexes']=new Array(_0x155cf4)['fill'](_0x12cfd3)['map']((_0x22ad1b,_0x479aaa)=>_0x22ad1b+_0x479aaa);for(const {cell:_0xa905c7}of _0x5e565e['createTableWalker'](_0x4a11d1,{'startColumn':_0x12cfd3,'endColumn':_0x12cfd3+_0x155cf4-0x1}))_0x4c1618['columnInsertionRanges']['push'](_0x1550fa['model']['createRangeOn'](_0xa905c7));},{'priority':'low'}),_0x5e565e['on']('insertRows',(_0x498846,_0x53e127)=>{const [_0x255ed2,_0x1fab8e={}]=_0x53e127;if(!_0x4c1618)return;const _0x56f562=_0x1fab8e['at']||0x0,_0x1f9097=_0x1fab8e['rows']||0x1;_0x4c1618['rowInsertionIndexes']=new Array(_0x1f9097)['fill'](_0x56f562)['map']((_0x4de3c9,_0x1a951a)=>_0x4de3c9+_0x1a951a);for(const {cell:_0x34b7bc}of _0x5e565e['createTableWalker'](_0x255ed2,{'startRow':_0x56f562,'endRow':_0x56f562+_0x1f9097-0x1}))_0x4c1618['rowInsertionRanges']['push'](_0x1550fa['model']['createRangeOn'](_0x34b7bc));},{'priority':'low'}),_0x57dec9['descriptionFactory']['registerDescriptionCallback'](_0x2f7173=>{if(_0x2f7173['subType']&&_0x2f7173['subType']['startsWith']('tablePaste'))return _0x2f7173['previous']?{}:{'type':'insertion','content':o(_0x1550fa['locale'],'*Replace\x20table\x20cells*')};});const _0x4422c6=()=>!0x1;for(const _0x547c94 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x57dec9['_suggestionFactory']['registerCustomCallback']('insertion',_0x547c94,'join',_0x4422c6),_0x57dec9['_suggestionFactory']['registerCustomCallback']('deletion',_0x547c94,'join',_0x4422c6),_0x57dec9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x547c94,'join',_0x4422c6);_0x57dec9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4422c6),_0x57dec9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x592dac,_0x35995e,_0x511424)=>{const _0x13012a=_0x592dac['map'](_0x1da4f8=>_0x1da4f8['getContainedElement']())['filter'](_0xbff461=>_0xbff461),_0x260dff=new Map(_0x13012a['map'](_0x2f91c8=>[_0x2f91c8,null]));if(_0x4c1618){for(const {element:_0x47adce,attributes:_0x9a8d36}of _0x4c1618['cells'])_0x9a8d36&&_0x260dff['set'](_0x47adce,_0x9a8d36);}else{if(_0x511424&&_0x511424['markerAttributes'])for(const [_0x18c7f2,_0x42b272]of Object['entries'](_0x511424['markerAttributes'])){const _0x558f94=_0x1550fa['model']['markers']['get'](_0x18c7f2),_0x1b5c11=_0x558f94?_0x558f94['getRange']()['getContainedElement']():null;_0x1b5c11&&_0x260dff['set'](_0x1b5c11,_0x42b272);}}_0x1550fa['model']['change'](_0x5cfeab=>{for(const [_0x2836df,_0x256641]of _0x260dff)_0x5cfeab['setAttributes']({...xe,..._0x256641},_0x2836df);});});const _0x37b25=(_0x399056,_0x1df77c)=>{_0x57dec9['_suggestionFactory']['registerCustomCallback'](_0x399056,'tablePaste',_0x1df77c,(_0x5cef91,_0x4fe14d,_0x29d723)=>{_0x1550fa['model']['change'](_0x140e68=>{const _0x4e8cc1=[];for(const _0x5438d9 of _0x5cef91){const _0x171075=_0x5438d9['start']['nodeAfter'];_0x171075['is']('element','tableCellSuggestion')&&_0x4e8cc1['push'](_0x171075);}_0x57dec9['_suggestionFactory']['getSuggestionCallback'](_0x399056,null,_0x1df77c)(_0x5cef91,_0x4fe14d,_0x29d723);for(const _0x154ea0 of _0x4e8cc1)'$graveyard'!=_0x154ea0['root']['rootName']&&_0x140e68['unwrap'](_0x154ea0);});});};_0x37b25('insertion','accept'),_0x37b25('insertion','discard'),_0x37b25('deletion','accept'),_0x37b25('deletion','discard'),_0x57dec9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3bb42c=>{const _0x5c442a=_0x3bb42c['map'](_0x3a22ea=>_0x3a22ea['getContainedElement']()),_0x219359=_0x5c442a[0x0]['findAncestor']('table'),{minRow:_0x4dd86f,maxRow:_0x3ec259}=_0x487214['_getCoordsForCells'](_0x5c442a);_0x5e565e['removeRows'](_0x219359,{'at':_0x4dd86f,'rows':_0x3ec259-_0x4dd86f+0x1});}),_0x57dec9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xd8acc3=>{const _0xc37aa5=_0xd8acc3['map'](_0x2f9ff3=>_0x2f9ff3['getContainedElement']()),_0x24ec21=_0xc37aa5[0x0]['findAncestor']('table'),{minColumn:_0x458865,maxColumn:_0x31425b}=_0x487214['_getCoordsForCells'](_0xc37aa5);_0x5e565e['removeColumns'](_0x24ec21,{'at':_0x458865,'columns':_0x31425b-_0x458865+0x1});});const _0x2e4a97=(_0x2e3bef,_0x1af7ff)=>{if(!_0x1af7ff['subType']||!_0x1af7ff['subType']['startsWith']('tablePaste'))return;const _0x50c30a=_0x1af7ff['attributes']['tablePasteChainId'],_0x32676f=_0x57dec9['getSuggestions']()['filter'](_0x744b01=>_0x744b01['isInContent']&&_0x744b01['attributes']&&_0x744b01['attributes']['tablePasteChainId']==_0x50c30a);_0x32676f['length']&&_0x1af7ff['getAllAdjacentSuggestions']()['length']!=_0x32676f['length']&&_0x32676f['reduce']((_0x3233d2,_0xe2c116)=>(_0x3233d2['next']=_0xe2c116,_0xe2c116['previous']=_0x3233d2,_0xe2c116));};function _0x900516(_0x554802,_0x9d5819=!0x0){const {id:_0x123e0a,authorId:_0x395841}=_0x57dec9['_splitMarkerName'](_0x554802['markerName']),_0x37eaea=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1e5400=_0x57dec9['activeMarkers']['includes'](_0x554802['markerName']);return _0x1e5400&&_0x37eaea['push']('ck-suggestion-marker--active'),{'classes':_0x37eaea,'attributes':{'data-suggestion':_0x123e0a,'data-author-id':_0x395841},'priority':_0x1e5400&&_0x9d5819?0xbc2:0xbb8};}_0x57dec9['on']('suggestionLoaded',_0x2e4a97,{'priority':'high'}),_0x57dec9['on']('suggestionUnloaded',_0x2e4a97,{'priority':'high'}),_0x1550fa['model']['document']['registerPostFixer'](()=>{let _0x1d89df=!0x1;const _0x467da6=Array['from'](_0x1550fa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x470bd9,data:_0x98a1c4}of _0x467da6){const {group:_0x259ae1,type:_0x555254,id:_0x568f0e}=_0x57dec9['_splitMarkerName'](_0x470bd9);if('suggestion'!=_0x259ae1||'deletion'!=_0x555254||_0x98a1c4['oldRange'])continue;if(!_0x57dec9['hasSuggestion'](_0x568f0e))continue;const _0x244792=_0x57dec9['getSuggestion'](_0x568f0e)['getRanges'](),_0x5372f2=_0x1550fa['plugins']['get']('Users')['me'];for(const _0x418421 of _0x57dec9['getSuggestions']()){if(!_0x418421['isInContent']||_0x418421['author']!=_0x5372f2)continue;if('formatBlock'!=_0x418421['type']||'tablePasteCell'!=_0x418421['subType'])continue;if(_0x418421['getRanges']()['every'](_0x4adb00=>_0x244792['some'](_0x507e20=>_0x507e20['containsRange'](_0x4adb00,!0x0)))){for(const _0x3978cf of _0x418421['getAllAdjacentSuggestions']())_0x3978cf['isInContent']&&(_0x3978cf['discard'](),_0x1d89df=!0x0);}}}return _0x1d89df;}),_0x1550fa['model']['document']['registerPostFixer'](_0x70e2f6=>{const _0x61ca2a=_0x1550fa['commands']['get']('redo');if(!_0x61ca2a||!_0x61ca2a['_createdBatches']['has'](_0x70e2f6['batch']))return!0x1;let _0x19df9e=!0x1;const _0x32f349=_0x1550fa['plugins']['get']('Users')['me'],_0x3286c0=_0x1550fa['model']['document']['differ']['getChanges'](),_0x1dbf61=Array['from'](_0x1550fa['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3adc50,data:_0x162b10})=>{const {group:_0x180f63,subType:_0x426283,authorId:_0x2e062c}=_0x57dec9['_splitMarkerName'](_0x3adc50);return'suggestion'==_0x180f63&&'tablePaste'==_0x426283&&_0x2e062c==_0x32f349['id']&&!_0x162b10['oldRange'];});for(const _0x5222dc of _0x3286c0){if('insert'!=_0x5222dc['type']||'tableCellSuggestion'!=_0x5222dc['name']||0x1!=_0x5222dc['length'])continue;const _0x5d15b1=_0x70e2f6['createRange'](_0x5222dc['position'],_0x5222dc['position']['getShiftedBy'](0x1));if(!_0x1dbf61['find'](({data:_0x516495})=>_0x516495['newRange']['isEqual'](_0x5d15b1))){for(const {name:_0x327043,data:_0x133094}of _0x1dbf61)if(_0x5d15b1['containsRange'](_0x133094['newRange'])){_0x70e2f6['updateMarker'](_0x327043,{'range':_0x5d15b1}),_0x19df9e=!0x0;break;}}}return _0x19df9e;}),_0x1550fa['model']['document']['registerPostFixer'](_0x50e5f9=>{let _0x3d8690=!0x1;const _0x3949ad=_0x1550fa['plugins']['get']('Users')['me'],_0x34d3ae=_0x57dec9['getSuggestions']()['filter'](_0x223f61=>_0x223f61['isInContent']&&_0x223f61['author']==_0x3949ad),_0x556b77=new Set(),_0x23dd86=new Set();for(const _0x5866e3 of _0x34d3ae)if('tablePaste'==_0x5866e3['subType'])for(const _0x3b4ca4 of _0x5866e3['getMarkers']()){const _0x27c422=_0x3b4ca4['getRange']()['getContainedElement']();if(_0x27c422){if(_0x27c422['is']('element','tableCellSuggestion')&&Oe(_0x27c422)){_0x5866e3['removeMarker'](_0x3b4ca4['name']),_0x556b77['add'](_0x27c422),_0x3d8690=!0x0;const _0xb1916d=_0x27c422['nextSibling'],_0x475dbb=_0x27c422['previousSibling'],_0x3d6bec=_0xb1916d&&_0xb1916d['is']('element','tableCellSuggestion'),_0x5abe9d=_0x475dbb&&_0x475dbb['is']('element','tableCellSuggestion');_0x3d6bec&&!_0x556b77['has'](_0xb1916d)&&_0x23dd86['add'](_0xb1916d),_0x5abe9d&&!_0x556b77['has'](_0x475dbb)&&_0x23dd86['add'](_0x475dbb);}else _0x27c422['is']('element','paragraph')&&_0x27c422['isEmpty']&&(_0x5866e3['removeMarker'](_0x3b4ca4['name']),_0x3d8690=!0x0);}}else{if('tablePasteCell'==_0x5866e3['subType']){if(!_0x5866e3['attributes']||!_0x5866e3['attributes']['tablePasteChainId'])continue;const _0x1efe59=_0x5866e3['attributes']['markerAttributes'];if(_0x1efe59&&Object['keys'](_0x1efe59)['length'])continue;const _0x39c9bd=_0x5866e3['attributes']['tablePasteChainId'];let _0x4a6dd8=!0x0,_0xbcd7b2=!0x0;for(const _0x24c818 of _0x34d3ae)if(_0x24c818['subType']&&_0x24c818['subType']['startsWith']('tablePaste')){if(!_0x24c818['attributes']['tablePasteChainId']){_0xbcd7b2=!0x1;break;}if(_0x24c818['id']!=_0x5866e3['id']&&_0x24c818['attributes']['tablePasteChainId']==_0x39c9bd){_0x4a6dd8=!0x1;break;}}_0xbcd7b2&&_0x4a6dd8&&(_0x5866e3['removeMarkers'](),_0x3d8690=!0x0);}}for(const _0x4bf204 of _0x556b77)_0x50e5f9['remove'](_0x4bf204);for(const _0x38baa0 of _0x23dd86)_0x50e5f9['unwrap'](_0x38baa0);return _0x3d8690;}),_0x1550fa['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1a9404=>_0x900516(_0x1a9404),'converterPriority':'high'}),_0x1550fa['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xbd9589,_0x25b352)=>_0x25b352['options']['showSuggestionHighlights']?_0x900516(_0xbd9589,!0x1):null,'converterPriority':'high'});const _0x184d5b=_0x1550fa['editing']['view'];this['listenTo'](_0x184d5b['document'],'clipboardOutput',(_0x25dd13,_0x3f0763)=>{const _0x9c3d0d=[];for(const _0x43d912 of _0x184d5b['createRangeIn'](_0x3f0763['content'])['getItems']())_0x43d912['is']('element','suggestion-td')&&_0x9c3d0d['push'](_0x43d912);_0x184d5b['change'](_0x36fe98=>{for(const _0x4b8b07 of _0x9c3d0d)_0x36fe98['move'](_0x36fe98['createRangeIn'](_0x4b8b07),_0x36fe98['createPositionBefore'](_0x4b8b07)),_0x36fe98['remove'](_0x4b8b07);});});}}function Oe(_0x31fc8d){if(_0x31fc8d['isEmpty'])return!0x0;const _0x381684=_0x31fc8d['getChild'](0x0);return _0x381684['is']('element','paragraph')&&_0x381684['isEmpty'];}function Ue(_0x6ee1fa,_0x408daf={},_0x26433d){for(const {isAnchor:_0x18a86e,cellHeight:_0x5e50e4,cellWidth:_0x6bdd28}of _0x26433d['createTableWalker'](_0x6ee1fa,{'includeAllSlots':!0x0,..._0x408daf}))if(!_0x18a86e||0x1!=_0x5e50e4||0x1!=_0x6bdd28)return!0x1;return!0x0;}class Dt extends _0xb6c9b9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x39033f=this['editor']['plugins']['get']('TrackChangesEditing');_0x39033f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x39033f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x39033f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x39033f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x39033f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x39033f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x317eda,_0x52f2c3){const _0x5688a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x554760=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x35f018=_0x52f2c3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3589e4=_0x554760['getColumnGroupElement'](_0x35f018);let _0x178e06=_0x3589e4?_0x554760['getTableColumnsWidths'](_0x3589e4):null,_0x2f6429=_0x35f018['getAttribute']('tableWidth')||null;const _0x2083f6=_0x52f2c3['tableWidth']||_0x2f6429,_0x10525d=_0x52f2c3['columnWidths']||_0x178e06,_0x283903=this['editor']['plugins']['get']('Users')['me'];for(const _0x2b09ca of _0x5688a9['getSuggestions']()){const _0xa06590=_0x2b09ca['getContainedElement']();if('resizeTable'===_0x2b09ca['subType']&&_0xa06590===_0x35f018){_0x2b09ca['author']!==_0x283903&&_0x2b09ca['discard']();const _0x482a33=_0x2b09ca['data']['commandParams'];_0x2f6429=_0x482a33[0x0]['tableWidth'],_0x178e06=_0x482a33[0x0]['columnWidths'];break;}}_0x317eda({'table':_0x35f018,'tableWidth':_0x2083f6,'columnWidths':_0x10525d}),_0x5688a9['markBlockFormat'](_0x35f018,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2f6429,'columnWidths':_0x178e06}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x349c02){if('formatBlock'!=_0x349c02['type']&&'formatInline'!=_0x349c02['type'])return;const {data:_0xe73296}=_0x349c02;if(_0xe73296&&'resizeTable'===_0xe73296['formatGroupId']){const _0x4a220f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4a220f)};}}}class Mt extends _0xb6c9b9{['afterInit'](){const _0x363f0b=this['editor'];_0x363f0b['plugins']['has']('Template')&&_0x363f0b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0xb6c9b9{['afterInit'](){const _0x37c310=this['editor'];if(!_0x37c310['commands']['get']('insertTableOfContents'))return;_0x37c310['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x144ffc=_0x37c310['plugins']['get']('TrackChangesEditing'),_0x1e15c5=_0x37c310['locale'];_0x144ffc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1feea2=>o(_0x1e15c5,'ELEMENT_TABLE_OF_CONTENTS',_0x1feea2));}}class Bt extends _0xb6c9b9{['afterInit'](){const _0x400229=this['editor'];if(!_0x400229['plugins']['has']('Title'))return;const _0x4b2979=_0x400229['plugins']['get']('TrackChangesEditing');_0x4b2979['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x400229['locale'],'ELEMENT_TITLE')),_0x400229['model']['document']['registerPostFixer'](_0x3c81c5=>{let _0x344559=!0x1;const _0x428ee4=Array['from'](_0x400229['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53bbff,data:_0xbfb21e}of _0x428ee4){const {group:_0x3495d9}=_0x4b2979['_splitMarkerName'](_0x53bbff);if('suggestion'!==_0x3495d9||!_0xbfb21e['newRange'])continue;const _0x3bb3ba=_0xbfb21e['newRange'],_0x5dd45c=_0x3bb3ba['end']['nodeBefore'];if(!_0x5dd45c||!_0x5dd45c['is']('element','title-content'))continue;if(!_0x3bb3ba['start']['isTouching'](_0x3bb3ba['end']))continue;const _0x3dafc1=_0x400229['model']['schema']['getNearestSelectionRange'](_0x3bb3ba['end'],'forward');if(_0x3dafc1&&_0x3dafc1['isCollapsed']){const _0x145338=_0x3c81c5['createRange'](_0x3bb3ba['start'],_0x3dafc1['start']);_0x145338['isEqual'](_0x3bb3ba)||(_0x3c81c5['updateMarker'](_0x53bbff,{'range':_0x145338}),_0x344559=!0x0);}_0x344559||(_0x3c81c5['removeMarker'](_0x53bbff),_0x344559=!0x0);}return _0x344559;});}}class Tt extends _0xb6c9b9{['afterInit'](){const _0x2d21e6=this['editor'],_0x4d8d09=_0x2d21e6['plugins']['get']('TrackChangesEditing');_0x2d21e6['plugins']['has']('Uploadcare')&&(_0x4d8d09['enableCommand']('uploadcare'),_0x2d21e6['plugins']['has']('UploadcareImageEdit')&&(_0x4d8d09['enableCommand']('uploadcareImageEdit'),_0x4d8d09['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4d8d09['registerBlockAttribute']('uploadcareImageId'),_0x4d8d09['descriptionFactory']['registerDescriptionCallback'](_0x12d670=>{if('attribute'!=_0x12d670['type'])return;const {data:_0x510cb3}=_0x12d670;return _0x510cb3&&'uploadcareImageId'==_0x510cb3['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xb6c9b9{['afterInit'](){const _0x15f3b9=this['editor'],_0x481ccd=_0x15f3b9['plugins']['get']('TrackChangesEditing');_0x15f3b9['plugins']['has']('UndoEditing')&&(_0x481ccd['enableCommand']('undo'),_0x481ccd['enableCommand']('redo'));}}class Ot extends _0xb6c9b9{static get['requires'](){return[At];}['afterInit'](){const _0x5ace07=this['editor'];if(!_0x5ace07['plugins']['has']('TableCaptionEditing'))return;_0x5ace07['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xb6c9b9{['tableProperties'];['tableCellProperties'];constructor(_0x19a6ee){super(_0x19a6ee),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x66ad86=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x57b44f of this['tableProperties'])_0x66ad86['enableCommand'](_0x57b44f,(_0x22b604,_0x4ac7cf)=>{const _0x547444=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x57b44f,[_0x547444],this['tableProperties'],'tableProperties',_0x22b604,_0x4ac7cf);});_0x66ad86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x66ad86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x66ad86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3b3267,_0x24b620)=>this['handleDiscardAction'](this['tableProperties'],_0x3b3267,_0x24b620)),_0x66ad86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x37f02 of this['tableCellProperties'])_0x66ad86['enableCommand'](_0x37f02,(_0x8de624,_0x22ed75)=>{const _0x207d8e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x37f02,_0x207d8e,this['tableCellProperties'],'tableCellProperties',_0x8de624,_0x22ed75);});_0x66ad86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x66ad86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x66ad86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5e23b6,_0x3125e5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5e23b6,_0x3125e5)),_0x66ad86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x66ad86['descriptionFactory']['registerDescriptionCallback'](_0x2623b6=>this['handleSuggestionDescription'](_0x2623b6));}['_handlePropertyChange'](_0x1dc189,_0x2eb2fe,_0x128910,_0x26210a,_0x521c6f,_0x1d037c){const _0x25e0c6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1d037c['batch'],()=>{for(const _0x23f89a of _0x2eb2fe){if(this['_getSuggestion'](_0x23f89a,_0x26210a))_0x521c6f(_0x1d037c);else{const _0x417d85={};for(const _0x5474c1 of _0x128910){const _0x3da0b3=_0x23f89a['getAttribute'](_0x5474c1);void 0x0!==_0x3da0b3&&(_0x417d85[_0x5474c1]=_0x3da0b3);}_0x521c6f(_0x1d037c),_0x25e0c6['markBlockFormat'](_0x23f89a,{'commandParams':[_0x417d85]},[],_0x26210a);}}});}['handleDiscardAction'](_0x212a41,_0x533501,_0x5ce536){const _0x167fd8=_0x533501[0x0]['start']['nodeAfter'],_0x4483a1=_0x5ce536['commandParams'][0x0];this['editor']['model']['change'](_0x4faa91=>{for(const _0x13d291 of _0x212a41)void 0x0!==_0x4483a1[_0x13d291]?_0x4faa91['setAttribute'](_0x13d291,_0x4483a1[_0x13d291],_0x167fd8):_0x4faa91['removeAttribute'](_0x13d291,_0x167fd8);});}['handleSuggestionDescription'](_0x590287){if(_0x590287['data'])switch(_0x590287['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x18384e,_0x26d576){const _0x25f786=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3346b6 of _0x25f786['getSuggestions']({'skipNotAttached':!0x0})){const _0x254b01=_0x3346b6['getContainedElement']();if(_0x3346b6['subType']===_0x26d576&&_0x254b01===_0x18384e)return _0x3346b6;}return null;}}class Rt extends _0xb6c9b9{['afterInit'](){const _0x26e4c9=this['editor'];if(!_0x26e4c9['plugins']['has']('LineHeight'))return;const _0x9022d3=_0x26e4c9['plugins']['get']('TrackChangesEditing'),_0xf7677f=_0x26e4c9['locale'];_0x9022d3['enableDefaultAttributesIntegration']('lineHeight'),_0x9022d3['registerBlockAttribute']('lineHeight'),_0x9022d3['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xf7677f,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xb6c9b9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x37a16c,_0x118eab,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bf329){super(_0x3bf329),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x111bc3,_0x144683,_0x3aa5e3,_0x5b4e8e)=>{this['_model']['change'](()=>{for(const _0x13a2a1 of[..._0x5b4e8e,..._0x3aa5e3])this['_model']['markers']['has'](_0x13a2a1)&&_0x3bf329['editing']['reconvertMarker'](_0x13a2a1);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3bf329['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3bf329['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3bf329['config']['get']('trackChanges.trackFormatChanges'),_0x3bf329['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3bf329['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x3bf329,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2ed5eb=this['editor'],_0x2012a3=(_0x45a76a,_0xa209c2)=>{if('attribute'!=_0x45a76a)return'ck-suggestion-marker-'+_0x45a76a;const _0x1ad376=_0xa209c2['split']('|')[0x0];return this['_isBlockAttribute'](_0x1ad376)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2ed5eb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x538edb=>{const {id:_0xaea114,authorId:_0x2bbc2f,type:_0x267d03,subType:_0xb8c61e}=this['_splitMarkerName'](_0x538edb['markerName']),_0x22f817=['ck-suggestion-marker',_0x2012a3(_0x267d03,_0xb8c61e)];let _0x14b3a8=0xbb8;return this['activeMarkers']['includes'](_0x538edb['markerName'])&&(_0x22f817['push']('ck-suggestion-marker--active'),_0x14b3a8=0xbc2),'deletion'==_0x267d03&&(_0x14b3a8+=0x5),{'classes':_0x22f817,'attributes':{'data-suggestion':_0xaea114,'data-author-id':_0x2bbc2f},'priority':_0x14b3a8};}}),_0x2ed5eb['conversion']['for']('dataDowncast')['add'](_0x450612=>{_0x450612['on']('addMarker:suggestion',(_0x2d939e,_0x324981,_0x47d5a5)=>{if(!_0x47d5a5['options']['showSuggestionHighlights'])return;const _0x2e13e2=_0x324981['item'];if(!_0x2e13e2)return;const _0x40c082=_0x47d5a5['mapper']['toViewElement'](_0x2e13e2);_0x2ed5eb['model']['schema']['isObject'](_0x2e13e2)&&_0x40c082&&!_0x40c082['getCustomProperty']('widget')&&_0x40c082['is']('containerElement')&&_0x3c45aa(_0x40c082,_0x47d5a5['writer']);},{'priority':'high'});}),_0x2ed5eb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x79168f,_0x1fab62)=>{if(!_0x1fab62['options']['showSuggestionHighlights'])return null;const {id:_0x2291b7,authorId:_0x10745a,type:_0x258d48,subType:_0x12dcfa}=this['_splitMarkerName'](_0x79168f['markerName']);return{'classes':['ck-suggestion-marker',_0x2012a3(_0x258d48,_0x12dcfa)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2291b7,'data-author-id':_0x10745a}};}});const _0x9ded13=({showActiveMarkers:_0x547ccc=!0x0,isAttributeSuggestion:_0x45944f=!0x1}={})=>(_0x794e69,_0x4d2c26,_0x1168df)=>{if(!_0x4d2c26['item'])return;const {id:_0xbe221a,authorId:_0x3fb30d}=this['_splitMarkerName'](_0x4d2c26['markerName']);if(_0x45944f){const _0xa8ec4c=this['_suggestions']['get'](_0xbe221a),_0x23e4f1=this['_getAttributeKey'](_0xa8ec4c);if(!this['_isBlockAttribute'](_0x23e4f1))return;}if(_0x4d2c26['item']['is']('selection'))return void _0x1168df['consumable']['consume'](_0x4d2c26['item'],_0x794e69['name']);const _0x272dd5=_0x1168df['mapper']['toViewElement'](_0x4d2c26['item']);if(_0x4d2c26['item']['is']('element')&&_0x2ed5eb['model']['schema']['isBlock'](_0x4d2c26['item'])&&!_0x272dd5['getCustomProperty']('addHighlight')){_0x1168df['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x272dd5),_0x1168df['writer']['setAttribute']('data-suggestion',_0xbe221a,_0x272dd5),_0x1168df['writer']['setAttribute']('data-author-id',_0x3fb30d,_0x272dd5),_0x1168df['mapper']['bindElementToMarker'](_0x272dd5,_0x4d2c26['markerName']),_0x547ccc&&(this['activeMarkers']['includes'](_0x4d2c26['markerName'])?_0x1168df['writer']['addClass']('ck-suggestion-marker--active',_0x272dd5):_0x1168df['writer']['removeClass']('ck-suggestion-marker--active',_0x272dd5));for(const _0x34d160 of _0x2ed5eb['model']['createRangeIn'](_0x4d2c26['item'])['getItems']())_0x1168df['consumable']['consume'](_0x34d160,_0x794e69['name']);_0x1168df['consumable']['consume'](_0x4d2c26['item'],_0x794e69['name']);}};_0x2ed5eb['conversion']['for']('dataDowncast')['add'](_0x2c8ed1=>{_0x2c8ed1['on']('addMarker:suggestion:formatBlock',(_0xc566e6,_0x26b60c,_0x201f0b)=>{_0x201f0b['options']['showSuggestionHighlights']&&_0x9ded13({'showActiveMarkers':!0x1})(_0xc566e6,_0x26b60c,_0x201f0b);},{'priority':'highest'});}),_0x2ed5eb['conversion']['for']('dataDowncast')['add'](_0x5426a0=>{_0x5426a0['on']('addMarker:suggestion:attribute',(_0x2fa539,_0x2d7cf8,_0x1ad9b0)=>{_0x1ad9b0['options']['showSuggestionHighlights']&&_0x9ded13({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2fa539,_0x2d7cf8,_0x1ad9b0);},{'priority':'highest'});}),_0x2ed5eb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2b97e5,_0x4d2370)=>{if(_0x4d2370['options']['showSuggestionHighlights']){const {id:_0x5b9090,authorId:_0x2a3649}=this['_splitMarkerName'](_0x2b97e5);return _0x2b97e5['includes'](':split')||_0x2b97e5['includes'](':merge')?{'group':'suggestion','name':_0x2b97e5['substr'](0xb),'attributes':{'data-suggestion':_0x5b9090,'data-author-id':_0x2a3649}}:null;}return{'group':'suggestion','name':_0x2b97e5['substr'](0xb)};}}),_0x2ed5eb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5e7563,{writer:_0x8aa143})=>{let _0x2fc5eb='suggestion:'+_0x5e7563['getAttribute']('suggestion-type')+':'+_0x5e7563['getAttribute']('id');return _0x5e7563['getAttribute']('marker-count')&&(_0x2fc5eb+=':'+_0x5e7563['getAttribute']('marker-count')),_0x8aa143['createElement']('$marker',{'data-name':_0x2fc5eb});}}),_0x2ed5eb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2ed5eb['conversion']['for']('editingDowncast')['add'](_0x53bf5e=>{_0x53bf5e['on']('addMarker:suggestion:formatBlock',_0x9ded13(),{'priority':'high'});}),_0x2ed5eb['conversion']['for']('editingDowncast')['add'](_0x892a35=>{_0x892a35['on']('addMarker:suggestion:attribute',_0x9ded13({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2ed5eb['conversion']['for']('editingDowncast')['add'](_0x350c39=>{_0x350c39['on']('removeMarker:suggestion:formatBlock',(_0x3da2c7,_0xcdd3d7,_0x5ee9fc)=>{const _0x57daea=_0x5ee9fc['mapper']['markerNameToElements'](_0xcdd3d7['markerName']);if(_0x57daea){for(const _0x15d3a9 of _0x57daea)_0x15d3a9['getCustomProperty']('addHighlight')||(_0x5ee9fc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x15d3a9),_0x5ee9fc['writer']['removeAttribute']('data-suggestion',_0x15d3a9),_0x5ee9fc['writer']['removeAttribute']('data-author-id',_0x15d3a9),_0x5ee9fc['mapper']['unbindElementFromMarkerName'](_0x15d3a9,_0xcdd3d7['markerName']));}},{'priority':'high'});}),_0x2ed5eb['conversion']['for']('editingDowncast')['add'](_0x69df0f=>{_0x69df0f['on']('removeMarker:suggestion:attribute',(_0x1775cd,_0x3d0ee1,_0x4fa852)=>{const _0x4740b5=_0x4fa852['mapper']['markerNameToElements'](_0x3d0ee1['markerName']);if(!_0x4740b5)return;const {id:_0x21afcf}=this['_splitMarkerName'](_0x3d0ee1['markerName']),_0x35a19f=this['_suggestions']['get'](_0x21afcf),_0xed864b=this['_getAttributeKey'](_0x35a19f);if(this['_isBlockAttribute'](_0xed864b)){for(const _0x36136a of _0x4740b5)_0x36136a['getCustomProperty']('addHighlight')||(_0x4fa852['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x36136a),_0x4fa852['writer']['removeAttribute']('data-suggestion',_0x36136a),_0x4fa852['writer']['removeAttribute']('data-author-id',_0x36136a),_0x4fa852['mapper']['unbindElementFromMarkerName'](_0x36136a,_0x3d0ee1['markerName']));}},{'priority':'high'});}),_0x2ed5eb['model']['document']['registerPostFixer'](_0x3acc4f=>{let _0x1de280=!0x1;const _0xfca437=Array['from'](_0x2ed5eb['model']['document']['differ']['getChangedMarkers']()),_0xcb989e=new Set();for(const {name:_0x1687cf,data:_0x32e17f}of _0xfca437){const {group:_0x297cbb,type:_0x5fa422,subType:_0x4e2fef,id:_0x1aae6c}=this['_splitMarkerName'](_0x1687cf);if('suggestion'!==_0x297cbb)continue;const _0x353079=this['_suggestions']['get'](_0x1aae6c);if(null!=_0x32e17f['newRange']){'formatInline'==_0x5fa422&&(_0x1de280=_0x1de280||Gt(_0x32e17f['newRange'],_0x1687cf,_0x3acc4f,_0x2ed5eb['model']['schema']));const _0x28df4b='attribute'==_0x5fa422&&this['_isBlockAttribute'](_0x4e2fef['split']('|')[0x0]);if(_0x32e17f['newRange']['isCollapsed']||'$graveyard'==_0x32e17f['newRange']['root']['rootName']||'formatBlock'==_0x5fa422&&!Jt(_0x32e17f['newRange'])||_0x28df4b&&!Jt(_0x32e17f['newRange'])||'deletion'==_0x5fa422&&!Kt(_0x32e17f['newRange']))_0x3acc4f['removeMarker'](_0x1687cf),_0x1de280=!0x0;else{if(!_0x353079||!_0x353079['isInContent'])continue;if(_0x32e17f['newRange']&&_0x32e17f['oldRange']&&_0x32e17f['newRange']['isEqual'](_0x32e17f['oldRange']))continue;_0xcb989e['add'](_0x353079);}}}return _0xcb989e['size']>0x0&&(_0x1de280=!!this['_joinWithAdjacentSuggestions'](_0xcb989e)||_0x1de280),_0x1de280;}),_0x2ed5eb['model']['document']['registerPostFixer'](_0x63753b=>{let _0x2bb9fb=!0x1;for(const _0x4fbdaa of _0x2ed5eb['model']['document']['differ']['getChanges']())if('insert'==_0x4fbdaa['type'])for(const _0x36efa7 of this['_suggestions']['values']()){if(_0x36efa7['isMultiRange']||!_0x36efa7['isInContent'])continue;const _0x53c655='formatBlock'==_0x36efa7['type'],_0x3f1034=this['_getAttributeKey'](_0x36efa7),_0x19baf5=_0x3f1034&&this['_isBlockAttribute'](_0x3f1034);if(!_0x53c655&&!_0x19baf5)continue;const _0x5dbd9e=_0x36efa7['getFirstRange']();if(_0x5dbd9e['start']['parent']!=_0x5dbd9e['end']['parent']&&!_0x5dbd9e['end']['isAtEnd']){const _0x1e6e6a=_0x2ed5eb['model']['createPositionAt'](_0x5dbd9e['start']['nodeAfter'],'end'),_0x45d0cc=_0x2ed5eb['model']['createRange'](_0x5dbd9e['start'],_0x1e6e6a);_0x63753b['updateMarker'](_0x36efa7['getFirstMarker'](),{'range':_0x45d0cc}),_0x2bb9fb=!0x0;}}return _0x2bb9fb;}),_0x2ed5eb['model']['document']['registerPostFixer'](_0x4253b1=>this['_processAttributeChanges'](_0x4253b1)),_0x2ed5eb['model']['document']['registerPostFixer'](_0x5039b1=>!_0x5039b1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5039b1)),_0x2ed5eb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2ed5eb['model']['document']['on']('change:data',(_0x5cb33e,_0x5d4687)=>{if(!_0x5d4687['isLocal']||_0x5d4687['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x310dbf=_0x2ed5eb['model']['document']['differ']['getChanges']();if(0x0==_0x310dbf['length'])return;const _0x26c984=[],_0x253e5a=_0x310dbf['filter'](_0x4a44b9=>'attribute'==_0x4a44b9['type']),_0x1e509c=_0x310dbf['filter'](_0x35c11a=>'insert'==_0x35c11a['type']&&'$text'!=_0x35c11a['name']);for(const _0x161814 of _0x253e5a)this['_isRegisteredAttribute'](_0x161814['attributeKey'])&&_0x26c984['push']({'key':_0x161814['attributeKey'],'newValue':_0x161814['attributeNewValue'],'oldValue':_0x161814['attributeOldValue'],'range':Ht(_0x161814['range'],_0x2ed5eb['model'])});for(const _0xad33ae of _0x1e509c){if('rename'!=_0xad33ae['action']&&'refresh'!=_0xad33ae['action'])continue;const _0x28add9=qt(_0xad33ae['position']['nodeAfter'],_0x2ed5eb['model']),_0x597f11=_0xad33ae['before'];'rename'==_0xad33ae['action']&&_0x26c984['push']({'key':m,'newValue':_0xad33ae['name'],'oldValue':_0x597f11['name'],'range':_0x28add9});for(const [_0x4093d9,_0xb57649]of _0x597f11['attributes']){if(!this['_isRegisteredAttribute'](_0x4093d9))continue;const _0x2724f5=_0xad33ae['attributes']['get'](_0x4093d9);_0xb57649!==_0x2724f5&&_0x26c984['push']({'key':_0x4093d9,'newValue':_0x2724f5,'oldValue':_0xb57649,'range':_0x28add9});}for(const [_0x34ca8,_0x1fbc71]of _0xad33ae['attributes'])this['_isRegisteredAttribute'](_0x34ca8)&&(_0x597f11['attributes']['has'](_0x34ca8)||_0x26c984['push']({'key':_0x34ca8,'newValue':_0x1fbc71,'oldValue':null,'range':_0x28add9}));}0x0!=_0x26c984['length']&&_0x2ed5eb['model']['enqueueChange'](_0x5d4687,_0x138869=>{const _0x4b14f0=_0x13da56();for(const {range:_0x244259,key:_0x5839a0,oldValue:_0x4c2bd5,newValue:_0xd514b9}of _0x26c984)this['markAttributeChange'](_0x244259,_0x5839a0,_0x4c2bd5,_0xd514b9,{'groupId':_0x4b14f0});this['_reduceExistingSuggestions'](_0x138869,_0x26c984);});},{'priority':'lowest'}),_0x2ed5eb['model']['markers']['on']('update:suggestion',(_0x1f0a12,_0x397f74,_0xabcdad)=>{if(null==_0xabcdad){const {id:_0x33c90b}=this['_splitMarkerName'](_0x397f74['name']),_0x276ae5=this['_suggestions']['get'](_0x33c90b);_0x276ae5&&_0x276ae5['addMarkerName'](_0x397f74['name']);}}),_0x2ed5eb['model']['document']['on']('change:data',()=>{const _0x16b43e=Array['from'](_0x2ed5eb['model']['document']['differ']['getChangedMarkers']())['filter'](_0xeb52fa=>'suggestion'===this['_splitMarkerName'](_0xeb52fa['name'])['group']);if(0x0===_0x16b43e['length'])return;_0x16b43e['sort']((_0xe70d26,_0x27fd7f)=>{const _0x2aee41=_0xe70d26['data']['oldRange'],_0x3a567e=_0x27fd7f['data']['oldRange'];return null===_0x2aee41&&null===_0x3a567e?0x0:null===_0x2aee41&&null!==_0x3a567e?-0x1:null!==_0x2aee41&&null===_0x3a567e?0x1:_0x2aee41['start']['isBefore'](_0x3a567e['start'])?-0x1:0x1;});const _0x6cf11a=new Set(),_0xcfc235=new Set();for(const {name:_0x44ceeb,data:_0x418da8}of _0x16b43e){const {id:_0x43f3fc}=this['_splitMarkerName'](_0x44ceeb);if(null===_0x418da8['oldRange']){const _0x38fc90=this['_handleNewSuggestionMarker'](_0x44ceeb);_0xcfc235['add'](_0x38fc90);}else{const _0x29b900=this['_suggestions']['get'](_0x43f3fc);null!==_0x418da8['newRange']||_0x29b900['isInContent']?(_0x6cf11a['add'](_0x29b900['head']),_0xcfc235['add'](_0x29b900)):this['_removeSuggestion'](_0x29b900);}}_0xcfc235['size']>0x0&&this['_refreshSuggestionsChain'](_0xcfc235);for(const _0x3a01af of _0x6cf11a)this['fire']('suggestionChanged',_0x3a01af);}),_0x2ed5eb['model']['on']('applyOperation',(_0x217ec3,_0x2c3616)=>{const _0x5bef94=_0x2c3616[0x0];if(!this['_suggestions']['size'])return;if(!_0x5bef94['isDocumentOperation'])return;if(_0x5bef94['batch']['isUndo']||!_0x5bef94['batch']['isLocal'])return;let _0x469746,_0x1a1ef4;switch(_0x5bef94['type']){case'insert':_0x469746=_0x2ed5eb['model']['createPositionAt'](_0x5bef94['position']),_0x1a1ef4=_0x469746['getShiftedBy'](_0x5bef94['howMany']);break;case'split':_0x469746=_0x2ed5eb['model']['createPositionAt'](_0x5bef94['splitPosition']),_0x1a1ef4=_0x2ed5eb['model']['createPositionAt'](_0x5bef94['moveTargetPosition']);break;case'move':_0x469746=_0x2ed5eb['model']['createPositionAt'](_0x5bef94['targetPosition']),_0x1a1ef4=_0x469746['getShiftedBy'](_0x5bef94['howMany']);break;default:return;}const _0x35040f=_0x2ed5eb['model']['createRange'](_0x469746,_0x1a1ef4);_0x2ed5eb['model']['change'](()=>{for(const {suggestion:_0x562321,meta:_0x25af76}of this['_findSuggestions'](_0x35040f)){if(_0x562321['isMultiRange'])continue;if('formatInline'==_0x562321['type'])continue;const _0x2f03ab=this['_getAttributeKey'](_0x562321);if(_0x2f03ab&&this['_isBlockAttribute'](_0x2f03ab)&&'split'!=_0x5bef94['type'])continue;const _0x1991d1=_0x562321['data']&&_0x562321['data']['multipleBlocks'];('formatBlock'!=_0x562321['type']||'split'==_0x5bef94['type']&&!_0x1991d1)&&(_0x25af76['containsRangeInObject']||'insertion'==_0x562321['type']&&_0x25af76['isOwn']||_0x562321['getFirstRange']()['containsRange'](_0x35040f)&&this['_breakSuggestionMarker'](_0x562321,_0x469746,_0x1a1ef4));}});},{'priority':'lowest'}),_0x2ed5eb['model']['on']('deleteContent',(_0x491ef2,_0x400026)=>{const _0x584924=_0x400026[0x0],_0x34769f=_0x400026[0x1];if(_0x34769f&&_0x34769f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x584924['isCollapsed'])return;const _0x1b0159=_0x2ed5eb['model']['schema'],{start:_0x309516,end:_0x3771a8}=_0x584924['getFirstRange'](),_0x30b3ae=_0x309516['nodeAfter']&&_0x1b0159['isLimit'](_0x309516['nodeAfter'])?null:_0x1b0159['getNearestSelectionRange'](_0x309516,'forward'),_0x2d3505=_0x3771a8['nodeBefore']&&_0x1b0159['isLimit'](_0x3771a8['nodeBefore'])?null:_0x1b0159['getNearestSelectionRange'](_0x3771a8,'backward'),_0x56fcc9=_0x2ed5eb['model']['createRange'](_0x30b3ae?_0x30b3ae['start']:_0x309516,_0x2d3505?_0x2d3505['end']:_0x3771a8);_0x2ed5eb['model']['change'](_0x38b0a3=>{this['markDeletion'](_0x56fcc9);const _0x2211dc=_0x2ed5eb['model']['schema']['getNearestSelectionRange'](_0x56fcc9['start']);_0x584924['is']('documentSelection')?_0x38b0a3['setSelection'](_0x2211dc):_0x584924['setTo'](_0x2211dc);}),_0x491ef2['stop']();},{'priority':_0xc2125b['normal']+0xa}),_0x2ed5eb['model']['on']('insertContent',(_0x3e01d7,_0x191f99)=>{const _0x11bb68=_0x191f99[_0x191f99['length']-0x1];_0x11bb68&&_0x11bb68['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2ed5eb['model']['change'](()=>{let _0x2ce8c2=_0x2ed5eb['model']['insertContent'](_0x191f99[0x0],_0x191f99[0x1],_0x191f99[0x2],{'forceDefaultExecution':!0x0});if(!_0x2ce8c2)return;_0x3e01d7['return']=_0x2ce8c2['clone']();const _0x4a8b92=_0x2ce8c2['end']['nodeBefore'],_0x14c0bf=_0x2ed5eb['model']['schema'];_0x4a8b92&&_0x14c0bf['isBlock'](_0x4a8b92)&&!_0x14c0bf['isObject'](_0x4a8b92)&&(_0x2ce8c2=_0x2ed5eb['model']['createRange'](_0x2ce8c2['start'],_0x2ed5eb['model']['createPositionAt'](_0x4a8b92,'end'))),this['markInsertion'](_0x2ce8c2);}),_0x3e01d7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf818c5=new D(_0x2ed5eb,this['_suggestions']);_0x2ed5eb['commands']['add']('acceptSuggestion',_0xf818c5),this['enableCommand']('acceptSuggestion');const _0x44330e=new M(_0x2ed5eb,this['_suggestions']);_0x2ed5eb['commands']['add']('discardSuggestion',_0x44330e),this['enableCommand']('discardSuggestion'),_0x2ed5eb['commands']['add']('acceptAllSuggestions',new $(_0x2ed5eb,_0xf818c5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2ed5eb['commands']['add']('discardAllSuggestions',new $(_0x2ed5eb,_0x44330e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2ed5eb['commands']['add']('acceptSelectedSuggestions',new B(_0x2ed5eb,_0xf818c5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2ed5eb['commands']['add']('discardSelectedSuggestions',new B(_0x2ed5eb,_0x44330e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3771e1=_0x2ed5eb['plugins']['get']('CommentsRepository');this['listenTo'](_0x3771e1,'addComment',(_0x51480e,{threadId:_0x42f477})=>{const _0x150197=this['_suggestions']['get'](_0x42f477);_0x150197&&_0x150197['commentThread']&&0x1===_0x150197['commentThread']['length']&&this['_updateSuggestionData'](_0x42f477,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3771e1,'removeComment',(_0x246ffe,{threadId:_0x23c1a6})=>{const _0x5dfb3d=this['_suggestions']['get'](_0x23c1a6);_0x5dfb3d&&_0x5dfb3d['commentThread']&&!_0x5dfb3d['commentThread']['length']&&this['_updateSuggestionData'](_0x23c1a6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x468992){const _0x49a531=_0x170e6c([0x5a,0x76,0x58,0x35,0x38,0x7a,0x54,0x53,0x71,0x37,0x70,0x59,0x61,0x78,0x6d,0x64,0x41,0x49,0x47,0x42,0x72,0x44,0x56,0x68,0x6e,0x52,0x46,0x30,0x6a,0x4f,0x4e,0x69,0x63,0x36,0x45,0x43,0x33,0x55,0x39,0x32,0x4c,0x4a,0x51,0x79,0x73,0x57,0x67,0x6b,0x34,0x66,0x4d,0x77,0x75,0x48,0x50,0x74,0x6c,0x62,0x4b,0x65,0x6f,0x31]),_0x90f38d=0x77b87fe3,_0x4e5e27=0x77bf1363^_0x90f38d,_0x4c2c69=window[_0x170e6c([0x44,0x61,0x74,0x65])][_0x170e6c([0x6e,0x6f,0x77])](),_0x28b062=_0x468992[_0x170e6c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa1618=new window[(_0x170e6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3126cc=>{_0x28b062[_0x170e6c([0x6f,0x6e,0x63,0x65])](_0x170e6c([0x72,0x65,0x61,0x64,0x79]),_0x3126cc);}),_0x250056={[_0x170e6c([0x6b,0x74,0x79])]:_0x170e6c([0x45,0x43]),[_0x170e6c([0x75,0x73,0x65])]:_0x170e6c([0x73,0x69,0x67]),[_0x170e6c([0x63,0x72,0x76])]:_0x170e6c([0x50,0x2d,0x32,0x35,0x36]),[_0x170e6c([0x78])]:_0x170e6c([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x170e6c([0x79])]:_0x170e6c([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x170e6c([0x61,0x6c,0x67])]:_0x170e6c([0x45,0x53,0x32,0x35,0x36])},_0x262cd4=_0x28b062[_0x170e6c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x170e6c([0x67,0x65,0x74])](_0x170e6c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17f06b(){let _0x4c2b44,_0x248356=null,_0x5a474c=null;try{if(_0x262cd4==_0x170e6c([0x47,0x50,0x4c]))return _0x170e6c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c2b44=_0x7a61ba(),!_0x4c2b44)return _0x170e6c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c2b44[_0x170e6c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a474c=_0xe719f5(_0x4c2b44[_0x170e6c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c2b44[_0x170e6c([0x6a,0x74,0x69])])),await _0x398c78()?_0x28f35b()?_0x7dc703()?_0x170e6c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f7400()?(_0x4c2b44[_0x170e6c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x170e6c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x248356=_0x4d6a21(_0x170e6c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c2b44[_0x170e6c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x170e6c([0x74,0x72,0x69,0x61,0x6c])&&(_0x248356=_0x4d6a21(_0x170e6c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a9817()):_0x170e6c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x170e6c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x170e6c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x170e6c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7dc703(){const _0x45ae3b=[_0x170e6c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x170e6c([0x74,0x72,0x69,0x61,0x6c])][_0x170e6c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c2b44[_0x170e6c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c2c69/0x3e8:0xe10*_0x4e5e27;return _0x4c2b44[_0x170e6c([0x65,0x78,0x70])]<_0x45ae3b;}function _0x28f35b(){const _0x419f29=_0x4c2b44[_0x170e6c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x419f29)return!0x1;if(_0x419f29[_0x170e6c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x170e6c([0x2a])))return!0x0;if(_0x419f29[_0x170e6c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x170e6c([0x54,0x43])))return!0x0;if(_0x419f29[_0x170e6c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x170e6c([0x52,0x54,0x43]))){if(_0x352b2c())return!0x0;if(_0x4d8b52()||_0x32caf7())return!0x0;}return!0x1;}function _0x1f7400(){const _0x5a80d3=_0x4c2b44[_0x170e6c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a80d3||0x0==_0x5a80d3[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58b7bd}=new URL(window[_0x170e6c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a80d3[_0x170e6c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b7bd))return!0x0;const _0x329cc9=_0x58b7bd[_0x170e6c([0x73,0x70,0x6c,0x69,0x74])](_0x170e6c([0x2e]));return _0x5a80d3[_0x170e6c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5019e3=>_0x5019e3[_0x170e6c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x170e6c([0x2a])))[_0x170e6c([0x6d,0x61,0x70])](_0x321891=>_0x321891[_0x170e6c([0x73,0x70,0x6c,0x69,0x74])](_0x170e6c([0x2e])))[_0x170e6c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c0890=>_0x2c0890[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x329cc9[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x170e6c([0x6d,0x61,0x70])](_0x22f1a5=>Array(_0x329cc9[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22f1a5[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x170e6c([0x66,0x69,0x6c,0x6c])](_0x22f1a5[0x0]===_0x170e6c([0x2a])?_0x170e6c([0x2a]):'')[_0x170e6c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22f1a5))[_0x170e6c([0x73,0x6f,0x6d,0x65])](_0x301e8e=>_0x329cc9[_0x170e6c([0x65,0x76,0x65,0x72,0x79])]((_0x491595,_0x99363)=>_0x301e8e[_0x99363]===_0x491595||_0x301e8e[_0x99363]===_0x170e6c([0x2a])));}function _0x3a9817(){return _0x248356&&_0x5a474c?new window[(_0x170e6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57ac97,_0xfc35a0)=>{_0x248356[_0x170e6c([0x74,0x68,0x65,0x6e])](_0x57ac97,_0xfc35a0),_0x5a474c[_0x170e6c([0x74,0x68,0x65,0x6e])](_0x15b2d1=>{_0x15b2d1!=_0x170e6c([0x56,0x61,0x6c,0x69,0x64])&&_0x57ac97(_0x15b2d1);},_0xfc35a0);}):_0x248356||_0x5a474c||_0x170e6c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe719f5(_0x5c617d,_0x805131){return new window[(_0x170e6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5911a7=>{if(_0x1dc359())return _0x5911a7(_0x170e6c([0x56,0x61,0x6c,0x69,0x64]));_0x5a0215(),_0x28b062[_0x170e6c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x170e6c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34c8ee=!0x1;const _0xb9eed7=_0x13da56();function _0x9b2461(_0xd7568c){return!!_0xd7568c&&(typeof _0xd7568c===_0x170e6c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd7568c===_0x170e6c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd7568c[_0x170e6c([0x74,0x68,0x65,0x6e])]===_0x170e6c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd7568c[_0x170e6c([0x63,0x61,0x74,0x63,0x68])]===_0x170e6c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5268d7(_0x59863f){_0x29badb(_0x59863f)[_0x170e6c([0x74,0x68,0x65,0x6e])](_0x5788d9=>{if(!_0x5788d9||_0x5788d9[_0x170e6c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x170e6c([0x6f,0x6b]))return _0x170e6c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x21d71a(_0x14681c(_0xb9eed7+_0x805131))!=_0x5788d9[_0x170e6c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x170e6c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x170e6c([0x56,0x61,0x6c,0x69,0x64]);})[_0x170e6c([0x74,0x68,0x65,0x6e])](_0x123b40=>(_0x406f38(),_0x123b40),()=>{const _0x1820ba=_0x2bd9a8();return null==_0x1820ba?(_0x406f38(),_0x170e6c([0x56,0x61,0x6c,0x69,0x64])):_0x170e6c(_0x4c2c69-_0x1820ba>(0x53b4fbe3^_0x90f38d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x170e6c([0x74,0x68,0x65,0x6e])](_0x5911a7)[_0x170e6c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5911a7(_0x170e6c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb152c4=0x778e9163^_0x90f38d;function _0x406f38(){const _0x4ca2d8=_0x170e6c([0x6c,0x6c,0x63,0x74,0x2d])+_0x21d71a(_0x14681c(_0x5c617d)),_0x3f0712=_0x1f1f07(_0x21d71a(window[_0x170e6c([0x4d,0x61,0x74,0x68])][_0x170e6c([0x63,0x65,0x69,0x6c])](_0x4c2c69/_0xb152c4)));window[_0x170e6c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x170e6c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ca2d8,_0x3f0712);}function _0x2bd9a8(){const _0x3232b3=_0x170e6c([0x6c,0x6c,0x63,0x74,0x2d])+_0x21d71a(_0x14681c(_0x5c617d)),_0x41f0cd=window[_0x170e6c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x170e6c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3232b3);return _0x41f0cd?window[_0x170e6c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f1f07(_0x41f0cd),0x10)*_0xb152c4:null;}function _0x29badb(_0x322d7f){return new window[(_0x170e6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x389874,_0x57682a)=>{_0x322d7f[_0x170e6c([0x74,0x68,0x65,0x6e])](_0x389874,_0x57682a),window[_0x170e6c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57682a,0x77b9ab23^_0x90f38d);});}}_0x28b062[_0x170e6c([0x6f,0x6e])](_0x170e6c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b6a66,_0x1180e4)=>{if(_0x1180e4[0x0]!=_0x5c617d)return _0x5911a7(_0x170e6c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1180e4[0x1]={..._0x1180e4[0x1],[_0x170e6c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb9eed7};},{[_0x170e6c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x170e6c([0x68,0x69,0x67,0x68])}),_0x28b062[_0x170e6c([0x6f,0x6e])](_0x170e6c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a5312=>{_0x9b2461(_0x2a5312[_0x170e6c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34c8ee=!0x0,_0x5268d7(_0x2a5312[_0x170e6c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x170e6c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x170e6c([0x6c,0x6f,0x77])}),_0xa1618[_0x170e6c([0x74,0x68,0x65,0x6e])](()=>{_0x34c8ee||_0x5911a7(_0x170e6c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1dc359(){return _0x28b062[_0x170e6c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x170e6c([0x76,0x69,0x65,0x77])][_0x170e6c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x170e6c([0x61,0x75,0x74,0x6f]);}function _0x5a0215(){_0x28b062[_0x170e6c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x170e6c([0x76,0x69,0x65,0x77])][_0x170e6c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x170e6c([0x61,0x75,0x74,0x6f]);}}function _0x4d6a21(_0x2d7fae){const _0x2ac111=[new window[(_0x170e6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x115bfd=>setTimeout(_0x115bfd,0x77b1412f^_0x90f38d)),_0xa1618[_0x170e6c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x170e6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e5176=>{let _0x2ffd02=0x0;_0x28b062[_0x170e6c([0x6d,0x6f,0x64,0x65,0x6c])][_0x170e6c([0x6f,0x6e])](_0x170e6c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e3fad,_0x39cd13)=>{_0x39cd13[0x0][_0x170e6c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ffd02++,_0x2ffd02==(0x77b87e1b^_0x90f38d)&&(_0x2e5176(),_0x2e3fad[_0x170e6c([0x6f,0x66,0x66])]());});}))];return window[_0x170e6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x170e6c([0x72,0x61,0x63,0x65])](_0x2ac111)[_0x170e6c([0x74,0x68,0x65,0x6e])](()=>_0x2d7fae);}async function _0x250747(){await _0xa1618,_0x28b062[_0x170e6c([0x6d,0x6f,0x64,0x65,0x6c])][_0x170e6c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ca648,_0x28b062[_0x170e6c([0x6d,0x6f,0x64,0x65,0x6c])][_0x170e6c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ca648,_0x28b062[_0x170e6c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x170e6c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x352b2c(){return _0x38d0cd(_0x170e6c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2bef2e(_0x170e6c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x170e6c([0x73,0x74,0x61,0x74,0x65])]==_0x170e6c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d8b52(){return _0x38d0cd(_0x170e6c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x32caf7(){return _0x38d0cd(_0x170e6c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3c64c1(_0xf32ad0){const _0x2e1d94=_0x44193d();_0x28b062[_0x2e1d94]=_0x170e6c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf32ad0,_0xf32ad0!=_0x170e6c([0x56,0x61,0x6c,0x69,0x64])&&_0x250747();}function _0x44193d(){const _0x20f52e=window[_0x170e6c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x170e6c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x170e6c([0x6e,0x6f,0x77])]())[_0x170e6c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x170e6c([0x2e]),'');let _0x1c85af=_0x170e6c([0x5a]);for(let _0x344e0a=0x0;_0x344e0a<_0x20f52e[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x344e0a+=0x2){let _0x2f1f1a=window[_0x170e6c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20f52e[_0x170e6c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x344e0a,_0x344e0a+0x2));_0x2f1f1a>=_0x49a531[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f1f1a-=_0x49a531[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c85af+=_0x49a531[_0x2f1f1a];}return _0x1c85af;}function _0x7a61ba(){const _0x502eb7=_0x262cd4[_0x170e6c([0x73,0x70,0x6c,0x69,0x74])](_0x170e6c([0x2e]));if(0x3!=_0x502eb7[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4da67(_0x502eb7[0x1]);function _0x4da67(_0x118e65){const _0x34fa3f=_0x1342a6(_0x118e65);return _0x34fa3f&&_0x60e431()?_0x34fa3f:null;function _0x60e431(){const _0x2a32c9=_0x34fa3f[_0x170e6c([0x6a,0x74,0x69])],_0xbf89c6=window[_0x170e6c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a32c9[_0x170e6c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a32c9[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17a9e6={..._0x34fa3f,[_0x170e6c([0x6a,0x74,0x69])]:_0x2a32c9[_0x170e6c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2a32c9[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17a9e6[_0x170e6c([0x76,0x63])],_0x14681c(_0x17a9e6)==_0xbf89c6;}}}async function _0x398c78(){let _0x35dca8=!0x0;try{const _0xf3bb3a=_0x262cd4[_0x170e6c([0x73,0x70,0x6c,0x69,0x74])](_0x170e6c([0x2e])),[_0x3aab2e,_0x4540a1,_0x127263]=_0xf3bb3a;return _0x444565(_0x3aab2e),await _0x2fc2c7(_0x3aab2e,_0x4540a1,_0x127263),_0x35dca8;}catch{return!0x1;}function _0x444565(_0x1649bb){const _0x2f2a91=_0x1342a6(_0x1649bb);_0x2f2a91&&_0x2f2a91[_0x170e6c([0x61,0x6c,0x67])]==_0x170e6c([0x45,0x53,0x32,0x35,0x36])||(_0x35dca8=!0x1);}async function _0x2fc2c7(_0x5bb1de,_0xd0efbc,_0xb1b861){const _0x17c991=window[_0x170e6c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x170e6c([0x66,0x72,0x6f,0x6d])](_0x2e5c23(_0xb1b861),_0x454249=>_0x454249[_0x170e6c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1591a1=new window[(_0x170e6c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x170e6c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5bb1de+_0x170e6c([0x2e])+_0xd0efbc),_0x3468da=window[_0x170e6c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x170e6c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3468da)return;const _0x461184=await _0x3468da[_0x170e6c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x170e6c([0x6a,0x77,0x6b]),_0x250056,{[_0x170e6c([0x6e,0x61,0x6d,0x65])]:_0x170e6c([0x45,0x43,0x44,0x53,0x41]),[_0x170e6c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x170e6c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x170e6c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3468da[_0x170e6c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x170e6c([0x6e,0x61,0x6d,0x65])]:_0x170e6c([0x45,0x43,0x44,0x53,0x41]),[_0x170e6c([0x68,0x61,0x73,0x68])]:{[_0x170e6c([0x6e,0x61,0x6d,0x65])]:_0x170e6c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x461184,_0x17c991,_0x1591a1)||(_0x35dca8=!0x1);}}function _0x1342a6(_0x47527c){return _0x47527c[_0x170e6c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x170e6c([0x65,0x79]))?JSON[_0x170e6c([0x70,0x61,0x72,0x73,0x65])](_0x2e5c23(_0x47527c)):null;}function _0x2e5c23(_0x17b2b8){return window[_0x170e6c([0x61,0x74,0x6f,0x62])](_0x17b2b8[_0x170e6c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x170e6c([0x2b]))[_0x170e6c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x170e6c([0x2f])));}function _0x14681c(_0x259a20){let _0x4a2164=0x1505;function _0x409b61(_0x361bec){for(let _0x27b900=0x0;_0x27b900<_0x361bec[_0x170e6c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27b900++){const _0x394979=_0x361bec[_0x170e6c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x27b900);_0x4a2164=(_0x4a2164<<0x5)+_0x4a2164+_0x394979,_0x4a2164&=_0x4a2164;}}function _0x1c5979(_0x88acb3){Array[_0x170e6c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x88acb3)?_0x88acb3[_0x170e6c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c5979):_0x88acb3&&typeof _0x88acb3==_0x170e6c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x170e6c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x88acb3)[_0x170e6c([0x73,0x6f,0x72,0x74])]()[_0x170e6c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3832da,_0xc288b2])=>{_0x409b61(_0x3832da),_0x1c5979(_0xc288b2);}):_0x409b61(window[_0x170e6c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x88acb3));}return _0x1c5979(_0x259a20),_0x4a2164>>>0x0;}function _0x21d71a(_0x16a5a8){return _0x16a5a8[_0x170e6c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x170e6c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x170e6c([0x30]));}function _0x1f1f07(_0x21370c){return _0x21370c[_0x170e6c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x170e6c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x170e6c([0x6a,0x6f,0x69,0x6e])]('');}function _0x38d0cd(_0x24b14f){return _0x28b062[_0x170e6c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x170e6c([0x68,0x61,0x73])](_0x24b14f);}function _0x2bef2e(_0x2e42e3){return _0x28b062[_0x170e6c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x170e6c([0x67,0x65,0x74])](_0x2e42e3);}function _0x4ca648(){}function _0x170e6c(_0x4e0d07){return _0x4e0d07['map'](_0x37838c=>String['fromCharCode'](_0x37838c))['join']('');}_0x3c64c1(await _0x17f06b());}(this);}set['adapter'](_0x4702d3){if(this['_adapter'])throw new _0x318405('track-changes-adapter-already-set',this);this['_adapter']=_0x4702d3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x53568a=!0x1,toJSON:_0x3f0d5f=!0x1}={}){const _0x29fd2b=[];for(const _0x53d41b of this['_suggestions']['values']())_0x53568a&&!_0x53d41b['isInContent']||_0x29fd2b['push'](_0x53d41b);return _0x3f0d5f?_0x29fd2b['map'](_0x3e20f1=>_0x3e20f1['toJSON']()):_0x29fd2b;}['getSuggestion'](_0x30a350){const _0x4ed765=this['_suggestions']['get'](_0x30a350);if(!_0x4ed765)throw new _0x318405('track-changes-suggestion-not-found',this);return _0x4ed765;}['hasSuggestion'](_0x2e3fbd){return this['_suggestions']['has'](_0x2e3fbd);}['addSuggestionData'](_0x9342af){const {authorId:_0x162da8,id:_0x15e2fd,originalSuggestionId:_0x50ecea,attributes:_0x2c269f}=_0x9342af,[_0x41f7df,_0x14e7b1]=_0x9342af['type']['split'](':'),_0x481e3f=this['_suggestions']['get'](_0x15e2fd)||this['_createSuggestion'](_0x41f7df,_0x14e7b1,_0x15e2fd,_0x162da8,_0x2c269f,_0x50ecea);if(this['_addThreadToSuggestion'](_0x481e3f),this['_checkSuggestionCorrectness'](_0x481e3f,_0x41f7df,_0x14e7b1||null,_0x162da8),_0x481e3f['createdAt']=_0x9342af['createdAt'],_0x481e3f['_isDataLoaded']=!0x0,_0x2c269f&&_0x2c269f['@external']){const _0x2ff192=_0x2c269f['@external'],_0x3655f9=this['_getExternalAuthor'](_0x2ff192['authorName']);_0x481e3f['authoredAt']=_0x2ff192['createdAt'],_0x481e3f['author']=_0x3655f9,_0x481e3f['isExternal']=!0x0;}else _0x481e3f['authoredAt']=_0x9342af['createdAt'];switch(_0x9342af['data']&&(_0x481e3f['data']=_0x9342af['data']),_0x9342af['attributes']&&(_0x481e3f['attributes']=_0x9342af['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x481e3f['_saved']=!0x0),this['_suggestionState']['get'](_0x481e3f)){case'notReady':this['_suggestionState']['set'](_0x481e3f,'dataReady');break;case'markerReady':_0x481e3f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x481e3f])),this['_refreshSuggestionsChain'](new Set([_0x481e3f])),this['_suggestionState']['set'](_0x481e3f,'ready'),this['fire']('suggestionLoaded',_0x481e3f)):this['_suggestionState']['set'](_0x481e3f,'removed');}return _0x481e3f;}['acceptSuggestion'](_0x5974d0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2707e0 of _0x5974d0['getAllAdjacentSuggestions']())_0x2707e0['accept']();});});}['discardSuggestion'](_0xa6a776){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x13bf8c of _0xa6a776['getAllAdjacentSuggestions']())_0x13bf8c['discard']();});});}['enableCommand'](_0x4799a6,_0x3c18ed){const _0x50edf8=this['editor']['commands']['get'](_0x4799a6);if(!_0x50edf8)throw new _0x318405('track-changes-command-not-found',this,{'commandName':_0x4799a6});if(this['_enabledCommands']['has'](_0x50edf8))throw new _0x318405('track-changes-enable-command-twice',this,{'commandName':_0x4799a6});this['_enabledCommands']['add'](_0x50edf8),_0x3c18ed&&_0x50edf8['on']('execute',(_0x209fc0,_0x2b17aa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2b17aa['length']>0x0&&_0x2b17aa[_0x2b17aa['length']-0x1]&&_0x2b17aa[_0x2b17aa['length']-0x1]['forceDefaultExecution']?_0x2b17aa['pop']():(_0x209fc0['return']=_0x3c18ed((..._0x28dc52)=>_0x50edf8['execute'](..._0x28dc52,{'forceDefaultExecution':!0x0}),..._0x2b17aa),_0x209fc0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x307b12){let _0x58cd31,_0x40cc0c;const _0x55f990=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x58cd31=_0x307b12();}catch(_0x265692){_0x40cc0c=_0x265692;}return _0x55f990||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x40cc0c&&_0x318405['rethrowUnexpectedError'](_0x40cc0c,this),_0x58cd31;}['markInsertion'](_0x11ef55,_0x2e6806=null,_0x54f0be={}){if(_0x11ef55['isCollapsed'])return null;const _0x563961=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x54f0be['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3853ae,meta:_0x39dedd}of this['_findSuggestions'](_0x11ef55,'insertion'))if(_0x39dedd['isOwn']){if(!_0x39dedd['isNextTo']){if(_0x39dedd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3853ae,_0x54f0be))continue;return _0x3853ae;}if(Qt(_0x3853ae,_0x54f0be))return _0x3853ae;this['_breakSuggestionMarker'](_0x3853ae,_0x11ef55['start'],_0x11ef55['end']);break;}if(_0x2e6806==_0x3853ae['subType']&&Qt(_0x3853ae,_0x54f0be)){const _0x48bdbb=_0x3853ae['getFirstRange']();return _0x48bdbb['start']['isEqual'](_0x11ef55['end'])?this['_setSuggestionRange'](_0x3853ae,this['_model']['createRange'](_0x11ef55['start'],_0x48bdbb['end'])):this['_setSuggestionRange'](_0x3853ae,this['_model']['createRange'](_0x48bdbb['start'],_0x11ef55['end'])),_0x3853ae;}}const _0x528821=_0x13da56(),_0x4fb4fd=_0x563961['id'],_0x3612a3=_0x2e6806?'insertion:'+_0x2e6806:'insertion',_0x33522f=this['_setSuggestionData']({'id':_0x528821,'type':_0x3612a3,'createdAt':new Date(),'authorId':_0x4fb4fd,'attributes':_0x54f0be});return this['_addSuggestionMarker'](_0x3612a3,_0x528821,_0x4fb4fd,_0x11ef55),_0x33522f;}['markMultiRangeInsertion'](_0x5ef09d,_0x2fc2b6='multi',_0x1d0597={}){const _0x321999=this['editor']['plugins']['get']('Users')['me'],_0x57b09d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2fc2b6,'join');this['_trackingSessionId']&&(_0x1d0597['trackingSessionId']=this['_trackingSessionId']);for(const _0x3bdfd1 of this['getSuggestions']())if(_0x3bdfd1['author']['id']==_0x321999['id']&&'insertion'==_0x3bdfd1['type']&&_0x3bdfd1['subType']==_0x2fc2b6&&Qt(_0x3bdfd1,_0x1d0597)&&(_0x57b09d(_0x3bdfd1['getRanges'](),_0x5ef09d)||_0x57b09d(_0x5ef09d,_0x3bdfd1['getRanges']()))){for(const _0x4930c3 of _0x5ef09d)_0x3bdfd1['addRange'](_0x4930c3);return _0x3bdfd1;}for(const {suggestion:_0x274cf5,meta:_0x4da02e}of this['_findSuggestions'](_0x5ef09d,'insertion')){if(!_0x4da02e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4da02e['containsRangeInObject'])continue;if(!Qt(_0x274cf5,_0x1d0597))continue;let _0x27d5bf=!0x0;for(const _0x5bfe5d of _0x274cf5['getRanges']())for(const _0x1011bc of _0x5ef09d)if(!_0x5bfe5d['containsRange'](_0x1011bc)){_0x27d5bf=!0x1;break;}if(_0x27d5bf)return _0x274cf5;}const _0x4b651a=_0x13da56(),_0x3f8eee=_0x321999['id'],_0x4747a2='insertion:'+_0x2fc2b6,_0x140314=this['_setSuggestionData']({'id':_0x4b651a,'type':_0x4747a2,'createdAt':new Date(),'authorId':_0x3f8eee,'attributes':_0x1d0597});for(const _0x3cbe99 of _0x5ef09d)this['_addSuggestionMarker'](_0x4747a2,_0x4b651a,_0x3f8eee,_0x3cbe99,T['getMultiRangeId']());return _0x140314;}['markInlineFormat'](_0x44b658,_0x4c599c,_0x13fdbf=null,_0x5344b6={}){if(_0x13fdbf=_0x13fdbf||Lt(_0x4c599c),_0x44b658['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5344b6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2f8d83=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13fdbf,'accept');return this['forceDefaultExecution'](()=>_0x2f8d83([_0x44b658],_0x4c599c,_0x5344b6)),null;}const _0x18ae9f=this['editor']['plugins']['get']('Users')['me'],_0x32e754=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x35bb4e,meta:_0x3085d7}of this['_findSuggestions'](_0x44b658,'insertion'))_0x3085d7['isOwn']&&!_0x3085d7['isInsideObject']&&_0x32e754['push'](..._0x35bb4e['getRanges']());}const _0x5995ce=function(_0x5a7a08,_0x4ef7c4){const _0x3bf0ec=[];for(const _0x5ba815 of _0x4ef7c4){const _0xa15509=_0x5a7a08['getIntersection'](_0x5ba815);_0xa15509&&_0x3bf0ec['push'](_0xa15509);}return _0x3bf0ec;}(_0x44b658,_0x32e754),_0x21099c=function(_0x1ce241,_0x50b9e5){const _0x58145a=[_0x1ce241];for(const _0x32616 of _0x50b9e5){let _0x2efe0b=0x0;for(;_0x2efe0b<_0x58145a['length'];){const _0x4125c3=_0x58145a[_0x2efe0b]['getDifference'](_0x32616);_0x58145a['splice'](_0x2efe0b,0x1,..._0x4125c3),_0x2efe0b+=_0x4125c3['length'];}}return _0x58145a;}(_0x44b658,_0x32e754);_0x5995ce['length']&&this['_model']['change'](()=>{for(const _0xf6a292 of _0x5995ce){const _0x49a6ad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13fdbf,'accept');this['forceDefaultExecution'](()=>_0x49a6ad([_0xf6a292],_0x4c599c,_0x5344b6));}});for(const _0x26cf7e of _0x21099c){let _0x1f403b=null,_0x5a6a0b=_0x26cf7e['start'],_0x1d7879=_0x26cf7e['end'];for(const {suggestion:_0x5de6d9,meta:_0x2e0356}of this['_findSuggestions'](_0x26cf7e,'formatInline')){if(!_0x2e0356['isOwn'])continue;if(_0x5de6d9['subType']!=_0x13fdbf)continue;if(!Qt(_0x5de6d9,_0x5344b6))continue;const _0x3e30e5=_0x5de6d9['getFirstRange']();if(_0x3e30e5['containsRange'](_0x26cf7e,!0x0))return null;_0x5a6a0b=_0x5a6a0b['isBefore'](_0x3e30e5['start'])?_0x5a6a0b:_0x3e30e5['start'],_0x1d7879=_0x1d7879['isAfter'](_0x3e30e5['end'])?_0x1d7879:_0x3e30e5['end'],_0x1f403b?_0x3e30e5['start']['isBefore'](_0x1f403b['getFirstRange']()['start'])?(_0x1f403b['removeMarkers'](),_0x1f403b=_0x5de6d9):_0x5de6d9['removeMarkers']():_0x1f403b=_0x5de6d9;}const _0x1334c5=this['_model']['createRange'](_0x5a6a0b,_0x1d7879);if(_0x1f403b)this['_setSuggestionRange'](_0x1f403b,_0x1334c5);else{const _0x150411=_0x13da56(),_0x3cd5ba=_0x18ae9f['id'];this['_setSuggestionData']({'id':_0x150411,'type':'formatInline:'+_0x13fdbf,'data':_0x4c599c,'createdAt':new Date(),'authorId':_0x3cd5ba,'attributes':_0x5344b6}),this['_addSuggestionMarker']('formatInline:'+_0x13fdbf,_0x150411,_0x3cd5ba,_0x1334c5);}}return null;}['markBlockFormat'](_0x18bf86,_0x19b2ce,_0x4dfde5=[],_0xbd9844=null,_0x2a1ce4={}){_0x19b2ce['formatGroupId']||(_0x19b2ce['formatGroupId']=_0x19b2ce['commandName']),_0x19b2ce['multipleBlocks']=_0x18bf86['is']('range'),_0xbd9844=_0xbd9844||Lt(_0x19b2ce);const _0x511254=_0x4dfde5['map'](_0x435658=>qt(_0x435658,this['_model'])),_0x2b5720=_0x18bf86['is']('range')?_0x18bf86:qt(_0x18bf86,this['_model']);if(this['_trackingSessionId']&&(_0x2a1ce4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xcbfd7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbd9844,'accept');return this['forceDefaultExecution'](()=>_0xcbfd7f([_0x2b5720],_0x19b2ce,_0x2a1ce4)),null;}_0x511254['push'](_0x2b5720);let _0x1a130c=!0x0;for(const _0x20dbb1 of _0x511254)if(!this['_rangeIsInLocalUserInsertion'](_0x20dbb1)){_0x1a130c=!0x1;break;}if(_0x1a130c&&'always'!==this['_trackFormatChanges']){const _0x5387f4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbd9844,'accept');return this['forceDefaultExecution'](()=>_0x5387f4([_0x2b5720],_0x19b2ce,_0x2a1ce4)),null;}let _0x3fb2a6=null,_0x4b2501=_0x2b5720['start'],_0x49dbfb=_0x2b5720['end'];for(const {suggestion:_0x47c7b1,meta:_0x91477}of this['_findSuggestions'](_0x2b5720,'formatBlock')){if(!_0x91477['isOwn'])continue;if(_0x91477['isNextTo']||_0x91477['containsRangeInObject']||_0x91477['isInsideObject'])continue;if(_0x47c7b1['data']['formatGroupId']!=_0x19b2ce['formatGroupId'])continue;if(!Qt(_0x47c7b1,_0x2a1ce4))continue;const _0x204d48=_0x47c7b1['getFirstRange']();if(_0x47c7b1['subType']==_0xbd9844){if(_0x204d48['containsRange'](_0x2b5720,!0x0))return null;_0x4b2501=_0x4b2501['isBefore'](_0x204d48['start'])?_0x4b2501:_0x204d48['start'],_0x49dbfb=_0x49dbfb['isAfter'](_0x204d48['end'])?_0x49dbfb:_0x204d48['end'],_0x3fb2a6?_0x204d48['start']['isBefore'](_0x3fb2a6['getFirstRange']()['start'])?(_0x3fb2a6['removeMarkers'](),_0x3fb2a6=_0x47c7b1):_0x47c7b1['removeMarkers']():_0x3fb2a6=_0x47c7b1;}else{const _0x445bff=_0x2b5720['getIntersection'](_0x204d48);this['_cutOutSuggestionMarker'](_0x47c7b1,_0x445bff);}}const _0x423c13=this['editor']['plugins']['get']('Users')['me'],_0x56eef6=_0x13da56(),_0x4dac43=_0x423c13['id'];if(_0x3fb2a6)return this['_setSuggestionRange'](_0x3fb2a6,this['_model']['createRange'](_0x4b2501,_0x49dbfb)),_0x3fb2a6;{const _0x4c2ae9=this['_setSuggestionData']({'id':_0x56eef6,'type':'formatBlock:'+_0xbd9844,'data':_0x19b2ce,'createdAt':new Date(),'authorId':_0x4dac43,'attributes':_0x2a1ce4});return this['_addSuggestionMarker']('formatBlock:'+_0xbd9844,_0x56eef6,_0x4dac43,this['_model']['createRange'](_0x4b2501,_0x49dbfb)),_0x4c2ae9;}}['markMultiRangeBlockFormat'](_0x12a071,_0x37b189,_0x146129=[],_0x434212=null,_0x18614c={}){_0x37b189['formatGroupId']||(_0x37b189['formatGroupId']=_0x37b189['commandName']);const _0x8dbb48=_0x12a071[0x0];_0x37b189['multipleBlocks']=_0x8dbb48['is']('range'),_0x434212=_0x434212||Lt(_0x37b189);const _0x327515=_0x146129['map'](_0x101aa2=>qt(_0x101aa2,this['_model'])),_0x1855f9=_0x8dbb48['is']('range')?_0x12a071:_0x12a071['map'](_0x2744e2=>qt(_0x2744e2,this['_model']));if(this['_trackingSessionId']&&(_0x18614c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2bfe13=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x434212,'accept');return this['forceDefaultExecution'](()=>_0x2bfe13(_0x1855f9,_0x37b189,_0x18614c)),null;}_0x327515['push'](..._0x1855f9);let _0x4350a9=!0x0;for(const _0x8e967a of _0x327515)if(!this['_rangeIsInLocalUserInsertion'](_0x8e967a)){_0x4350a9=!0x1;break;}if(_0x4350a9&&'always'!==this['_trackFormatChanges']){const _0x371872=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x434212,'accept');return this['forceDefaultExecution'](()=>_0x371872(_0x1855f9,_0x37b189,_0x18614c)),null;}const _0x4b3a3c=this['editor']['plugins']['get']('Users')['me'];for(const _0x28da8c of this['getSuggestions']()){const _0x52eb88=_0x28da8c['data'];if(_0x28da8c['author']['id']!=_0x4b3a3c['id'])continue;if('formatBlock'!=_0x28da8c['type']||_0x52eb88['formatGroupId']!=_0x37b189['formatGroupId'])continue;if(!Qt(_0x28da8c,_0x18614c))continue;const _0x3bf9df=_0x28da8c['subType']==_0x434212;for(let _0x550b18=0x0;_0x550b18<_0x1855f9['length'];_0x550b18++){const _0x36fa29=_0x1855f9[_0x550b18];for(const _0x9dd383 of _0x28da8c['getMarkers']()){const _0x48ae04=_0x9dd383['getRange']();if(_0x36fa29['isEqual'](_0x48ae04)){_0x3bf9df?(_0x1855f9['splice'](_0x550b18,0x1),_0x550b18--):_0x28da8c['removeMarker'](_0x9dd383['name']);break;}}}}if(0x0==_0x1855f9['length'])return null;const _0x192fb3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x434212,'join');for(const _0x5d5027 of this['getSuggestions']()){const _0x167a29=_0x5d5027['data'];if(_0x5d5027['author']['id']==_0x4b3a3c['id']&&('formatBlock'==_0x5d5027['type']&&_0x167a29['formatGroupId']==_0x37b189['formatGroupId']&&_0x5d5027['subType']==_0x434212&&Qt(_0x5d5027,_0x18614c)&&(_0x192fb3(_0x5d5027['getRanges'](),_0x1855f9)||_0x192fb3(_0x1855f9,_0x5d5027['getRanges']())))){for(const _0x4921e4 of _0x1855f9)_0x5d5027['addRange'](_0x4921e4);return _0x5d5027;}}const _0x3f2063=_0x13da56(),_0x245430=_0x4b3a3c['id'],_0x287cd3='formatBlock:'+_0x434212,_0x4726bf=this['_setSuggestionData']({'id':_0x3f2063,'type':_0x287cd3,'data':_0x37b189,'createdAt':new Date(),'authorId':_0x245430,'attributes':_0x18614c});for(const _0x12ac33 of _0x1855f9)this['_addSuggestionMarker'](_0x287cd3,_0x3f2063,_0x245430,_0x12ac33,T['getMultiRangeId']());return _0x4726bf;}['markDeletion'](_0x42506f,_0x86335e=null,_0x2c4434={}){if(_0x42506f['isCollapsed'])return null;const _0x27d86c=this['editor']['plugins']['get']('Users')['me'],_0x4e9631=new _0x4ffd26(_0x42506f['start'],_0x42506f['end']);this['_trackingSessionId']&&(_0x2c4434['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4891aa,meta:_0x353592}of this['_findSuggestions'](_0x4e9631,'insertion'))if(_0x353592['isOwn']&&!_0x353592['isNextTo']){if(_0x4891aa['isMultiRange']){const _0x5f402b=_0x4891aa['getRanges']()['filter'](_0xe4f082=>'$graveyard'!=_0xe4f082['root']['rootName']);_0x5f402b['every'](_0x1b04a8=>_0x4e9631['containsRange'](_0x1b04a8,!0x0))&&_0x4891aa['discard']();if(_0x5f402b['some'](_0x36fea5=>_0x36fea5['containsRange'](_0x4e9631,!0x0))){const _0x48446d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x86335e,'accept');return this['forceDefaultExecution'](()=>_0x48446d([_0x4e9631],null,_0x2c4434)),null;}}else{const _0x13ce23=_0x4e9631['getIntersection'](_0x4891aa['getFirstRange']());null!==_0x13ce23&&_0x4891aa['_onDiscard']([_0x13ce23],null,_0x2c4434);}}if(_0x4e9631['detach'](),_0x4e9631['isCollapsed']||'$graveyard'==_0x4e9631['root']['rootName'])return null;let _0x55a0b0=null,_0x3a204c=_0x4e9631['start'],_0x3e6d9e=_0x4e9631['end'];const _0x1549e9=this['_findSuggestions'](_0x4e9631,'deletion');for(const {suggestion:_0x3bb061,meta:_0x2a4d2a}of _0x1549e9){const _0x102af4=this['_model']['createRange'](_0x3a204c,_0x3e6d9e);if(_0x2a4d2a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a4d2a['containsRangeInObject']&&!_0x2a4d2a['isInsideObject'])){if(_0x3bb061['isMultiRange']){if(!Qt(_0x3bb061,_0x2c4434))continue;let _0x56187c=!0x0;for(const _0x3be4b1 of _0x3bb061['getRanges']()){if(_0x3be4b1['containsRange'](_0x102af4,!0x0))return _0x3bb061;_0x102af4['containsRange'](_0x3be4b1)||(_0x56187c=!0x1);}_0x56187c&&_0x3bb061['discard']();}else{const _0xc5864=_0x3bb061['getFirstRange']();if(_0xc5864['containsRange'](_0x102af4,!0x0))return _0x3bb061;if(!Qt(_0x3bb061,_0x2c4434)){_0x102af4['containsRange'](_0xc5864)?_0x3bb061['removeMarkers']():_0xc5864['containsPosition'](_0x3a204c)?_0x3a204c=_0xc5864['end']:_0xc5864['containsPosition'](_0x3e6d9e)&&(_0x3e6d9e=_0xc5864['start']);continue;}_0x3a204c=_0x3a204c['isBefore'](_0xc5864['start'])?_0x3a204c:_0xc5864['start'],_0x3e6d9e=_0x3e6d9e['isAfter'](_0xc5864['end'])?_0x3e6d9e:_0xc5864['end'],_0x2c4434=Object['assign']({},_0x3bb061['attributes']),_0x55a0b0?_0xc5864['start']['isBefore'](_0x55a0b0['getFirstRange']()['start'])?(_0x55a0b0['removeMarkers'](),_0x55a0b0=_0x3bb061):_0x3bb061['removeMarkers']():_0x55a0b0=_0x3bb061;}}}if(_0x55a0b0)return this['_setSuggestionRange'](_0x55a0b0,this['_model']['createRange'](_0x3a204c,_0x3e6d9e)),_0x55a0b0;{const _0x2aba82=_0x13da56(),_0xc1ccfd=this['_model']['createRange'](_0x3a204c,_0x3e6d9e),_0x1244e2=_0x27d86c['id'],_0x5aa8e8=_0x86335e?'deletion:'+_0x86335e:'deletion',_0x16d575=this['_setSuggestionData']({'id':_0x2aba82,'type':_0x5aa8e8,'createdAt':new Date(),'authorId':_0x1244e2,'attributes':_0x2c4434});return this['_addSuggestionMarker'](_0x5aa8e8,_0x2aba82,_0x1244e2,_0xc1ccfd),_0x16d575;}}['markMultiRangeDeletion'](_0xcf9181,_0xa8ae8='multi',_0x54d779={}){const _0x23eff4=this['editor']['plugins']['get']('Users')['me'],_0x12e603=_0xcf9181['map'](_0x1b2ebf=>new _0x4ffd26(_0x1b2ebf['start'],_0x1b2ebf['end'])),_0x41509c=new Set();this['_trackingSessionId']&&(_0x54d779['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2472d6,meta:_0x2059e8}of this['_findSuggestions'](_0x12e603,'insertion'))_0x2059e8['isOwn']&&!_0x2059e8['isNextTo']&&_0x41509c['add'](_0x2472d6);for(const _0x2bd419 of _0x41509c)if(_0x2bd419['isMultiRange']){const _0x27a771=_0x2bd419['getRanges']();(!_0x2bd419['attributes']||!_0x2bd419['attributes']['skipNestingCheck'])&&(_0x27a771['every'](_0x2fc44f=>_0x12e603['some'](_0x330906=>_0x330906['containsRange'](_0x2fc44f,!0x0)))&&_0x2bd419['discard']());if(_0x12e603['every'](_0x1c9346=>_0x27a771['some'](_0x40ca29=>_0x40ca29['containsRange'](_0x1c9346,!0x0)))){const _0x14d1cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa8ae8,'accept');return this['forceDefaultExecution'](()=>_0x14d1cf(_0xcf9181,null,_0x54d779)),null;}}else{const _0x501588=_0x2bd419['getFirstRange']();_0x12e603['some'](_0x3f65ab=>_0x3f65ab['containsRange'](_0x501588,!0x0))&&_0x2bd419['discard']();if(_0x12e603['every'](_0x26c02e=>_0x501588['containsRange'](_0x26c02e,!0x0))){const _0x2127df=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa8ae8,'accept');return this['forceDefaultExecution'](()=>_0x2127df(_0x12e603,null,_0x54d779)),null;}}const _0x386314=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa8ae8,'join');let _0x22238e=null;for(const _0x2e7733 of this['getSuggestions']())if(_0x2e7733['author']['id']==_0x23eff4['id']&&_0x2e7733['isInContent']&&'deletion'==_0x2e7733['type']&&_0x2e7733['subType']==_0xa8ae8&&Qt(_0x2e7733,_0x54d779)&&(_0x386314(_0x2e7733['getRanges'](),_0x12e603)||_0x386314(_0x12e603,_0x2e7733['getRanges']()))){if(_0x22238e){if(_0x2e7733['commentThread']&&_0x2e7733['commentThread']['length'])continue;for(const _0x1f9e90 of _0x2e7733['getRanges']())_0x22238e['isIntersectingWithRange'](_0x1f9e90)||_0x22238e['addRange'](_0x1f9e90);_0x2e7733['removeMarkers']();}else{_0x22238e=_0x2e7733;for(const _0x24f5ee of _0x12e603)_0x2e7733['isIntersectingWithRange'](_0x24f5ee)||_0x2e7733['addRange'](_0x24f5ee);}}if(_0x22238e)return _0x22238e;_0x41509c['clear']();for(const {suggestion:_0x10c3da,meta:_0x58f306}of this['_findSuggestions'](_0x12e603,'deletion'))_0x58f306['isOwn']&&(this['_mergeNestedSuggestions']||!_0x58f306['containsRangeInObject']&&!_0x58f306['isInsideObject'])&&Qt(_0x10c3da,_0x54d779)&&_0x41509c['add'](_0x10c3da);for(const _0x39c859 of _0x41509c){const _0x337d5e=_0x39c859['getRanges']();if(!_0x54d779||!_0x54d779['skipNestingCheck']){if(_0x12e603['every'](_0x2f78c3=>_0x337d5e['some'](_0x160cf1=>_0x160cf1['containsRange'](_0x2f78c3,!0x0))))return _0x39c859;}(!_0x39c859['attributes']||!_0x39c859['attributes']['skipNestingCheck'])&&(_0x337d5e['every'](_0x449c58=>_0x12e603['some'](_0x26879d=>_0x26879d['containsRange'](_0x449c58,!0x0)))&&_0x39c859['discard']());}const _0x5ebebe=_0x13da56(),_0x3a1447=_0x23eff4['id'],_0x2d24f8='deletion:'+_0xa8ae8,_0x4a05f9=this['_setSuggestionData']({'id':_0x5ebebe,'type':_0x2d24f8,'createdAt':new Date(),'authorId':_0x3a1447,'attributes':_0x54d779});for(const _0x119dfb of _0x12e603)_0x119dfb['detach'](),_0x119dfb['isCollapsed']||'$graveyard'==_0x119dfb['root']['rootName']||this['_addSuggestionMarker'](_0x2d24f8,_0x5ebebe,_0x3a1447,_0x119dfb,T['getMultiRangeId']());return _0x4a05f9;}['markAttributeChange'](_0x4f4297,_0x14b207,_0x270ebc,_0x264f64,_0x3cb449){if(_0x4f4297['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4010ec=this['editor']['plugins']['get']('Users')['me']['id'],_0x3c235b=Array['from'](this['_suggestions']['values']())['filter'](_0x154ffb=>'attribute'==_0x154ffb['type']&&_0x154ffb['data']['key']==_0x14b207&&_0x154ffb['isIntersectingWithRange'](_0x4f4297));if(this['_trackingSessionId']&&(_0x3cb449['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x18e871=this['_findSuggestions'](_0x4f4297,'insertion')['filter'](({meta:_0x18073e})=>_0x18073e['isOwn']&&!_0x18073e['isInsideObject']&&!_0x18073e['isNextTo'])['map'](({suggestion:_0xad9867})=>_0xad9867);_0x3c235b['unshift'](..._0x18e871);}const _0x41502f=new Map([[_0x4f4297,_0x270ebc]]);for(const _0x1ec4fd of _0x3c235b){const _0x20bdcd='attribute'==_0x1ec4fd['type']?_0x1ec4fd['data']['oldValue']:void 0x0,_0x5efd86=_0x1ec4fd['getFirstRange'](),_0x2145ad=Array['from'](_0x41502f['keys']())['find'](_0x413549=>_0x413549['isIntersecting'](_0x5efd86));if(!_0x2145ad)continue;const _0x252ee5=_0x2145ad['getDifference'](_0x5efd86);this['_isBlockAttribute'](_0x14b207)&&'insertion'==_0x1ec4fd['type']&&0x0!=_0x252ee5['length']||(_0x41502f['delete'](_0x2145ad),_0x252ee5['forEach'](_0x3b2343=>{_0x41502f['set'](_0x3b2343,_0x270ebc);}),'insertion'!=_0x1ec4fd['type']&&_0x20bdcd!=_0x264f64&&_0x41502f['set'](_0x2145ad['getIntersection'](_0x5efd86),_0x20bdcd));}const _0x474a99=[];for(const [_0xcaea19,_0x1e9bbd]of _0x41502f){const _0x196d3b=_0x13da56(),_0x33f149={'key':_0x14b207,'oldValue':_0x1e9bbd,'newValue':_0x264f64};_0x14b207['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':_0x14b207});const _0x48c3e6=('attribute:'+(_0x14b207+'|'+Lt({'newValue':_0x264f64})))['substring'](0x0,0x3c),_0x35488e=this['_setSuggestionData']({'id':_0x196d3b,'type':_0x48c3e6,'data':_0x33f149,'createdAt':new Date(),'authorId':_0x4010ec,'attributes':_0x3cb449});_0x474a99['push'](_0x35488e),this['_addSuggestionMarker'](_0x48c3e6,_0x196d3b,_0x4010ec,_0xcaea19);}return _0x474a99;}['enableDefaultAttributesIntegration'](_0x454700){this['enableCommand'](_0x454700,(_0x5c0947,..._0x158884)=>{this['recordAttributeChanges'](()=>{_0x5c0947(..._0x158884);});});}['registerBlockAttribute'](_0x1b51ca){this['_blockAttributeKeys']['add'](_0x1b51ca);}['registerInlineAttribute'](_0x92304b){this['_inlineAttributeKeys']['add'](_0x92304b);}['startTrackingSession'](_0x4a375c){return this['_trackingSessionId']=void 0x0!==_0x4a375c?_0x4a375c:_0x13da56(),this['_trackingSessionId'];}['_getAttributeKey'](_0x21f8a6){return'attribute'==_0x21f8a6['type']?_0x21f8a6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x56b5c5,_0x3ce54e){const _0x3d594c=_0x56b5c5['getFirstMarker']();this['_model']['change'](_0x55c67e=>{_0x55c67e['updateMarker'](_0x3d594c,{'range':_0x3ce54e});});}['_addThreadToSuggestion'](_0x368053){const _0x23deef=_0x368053['id'],_0x14ea44=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x23deef)||this['_commentsRepository']['addCommentThread']({'channelId':_0x14ea44,'threadId':_0x23deef,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x72e92c=this['_commentsRepository']['getCommentThread'](_0x23deef);_0x72e92c['unbind']('isRemovable'),_0x72e92c['isRemovable']=!0x1,_0x368053['commentThread']=_0x72e92c;}['_checkSuggestionCorrectness'](_0x2f7ef5,_0x5c0194,_0x2e030f,_0x45e1a1){if(_0x2f7ef5['type']!=_0x5c0194||_0x2f7ef5['subType']!=_0x2e030f||_0x2f7ef5['creator']['id']!=_0x45e1a1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x318405('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x518ff9,_0xe20cd){const _0x19ac93=_0x518ff9['getFirstRange']();if(_0xe20cd['isEqual'](_0x19ac93))_0x518ff9['removeMarkers']();else{if(_0x19ac93['containsRange'](_0xe20cd)){const _0x23f482=this['_model']['createPositionAt'](_0xe20cd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x518ff9,this['_model']['createRange'](_0x19ac93['start'],_0x23f482));const _0x19b602=_0x13da56(),_0x263591=_0x518ff9['creator']['id'],_0x4cea43=_0x518ff9['type']+':'+_0x518ff9['subType'];this['_setSuggestionData']({'id':_0x19b602,'type':_0x4cea43,'createdAt':new Date(),'authorId':_0x263591,'data':_0x518ff9['data'],'attributes':_0x518ff9['attributes']});const _0xe41f77=this['_model']['createPositionAt'](_0xe20cd['end']['parent'],'after'),_0x1aca5f=this['_model']['createRange'](_0xe41f77,_0x19ac93['end']);this['_addSuggestionMarker'](_0x4cea43,_0x19b602,_0x263591,_0x1aca5f);}else{if(_0x19ac93['containsPosition'](_0xe20cd['start'])){const _0x140793=this['_model']['createPositionAt'](_0xe20cd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x518ff9,this['_model']['createRange'](_0x19ac93['start'],_0x140793));}else{const _0x56dae4=this['_model']['createPositionAt'](_0xe20cd['end']['parent'],'after');this['_setSuggestionRange'](_0x518ff9,this['_model']['createRange'](_0x56dae4,_0x19ac93['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4618fa){for(const {suggestion:_0x221e6e,meta:_0x2dcb98}of this['_findSuggestions'](_0x4618fa,'insertion')){if(!_0x2dcb98['isOwn'])continue;const _0x1ba905=_0x221e6e['getRanges']();for(const _0x2132d8 of _0x1ba905)if(!_0x4618fa['getDifference'](_0x2132d8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4d9bf2){const _0x1626c7=this['editor']['plugins']['get']('Users')['getUser'](_0x4d9bf2);if(!_0x1626c7)throw new _0x318405('track-changes-user-not-found',this);return _0x1626c7;}['_getExternalAuthor'](_0x41270e){const _0x1f23d7=this['editor']['plugins']['get']('Users'),_0x28fcdf=_0x4f512c('external:'+_0x41270e),_0x137cfd=_0x1f23d7['getUser'](_0x28fcdf);return _0x137cfd||_0x1f23d7['addUser']({'id':_0x28fcdf,'name':_0x41270e});}['_createSuggestion'](_0x29b6fc,_0x5dfbee,_0x5cfccd,_0xe174ec,_0x258a95,_0x17a2d6){const _0x47d85d=this['_getAuthorFromId'](_0xe174ec),_0x5b1933=this['_suggestionFactory']['buildSuggestion'](_0x29b6fc,_0x5dfbee,_0x5cfccd,_0x47d85d,_0x258a95,_0x3a4032=>{this['_updateSuggestionData'](_0x5cfccd,{'attributes':_0x3a4032});const _0x2226f7=this['getSuggestion'](_0x5cfccd);this['_joinWithAdjacentSuggestions'](new Set([_0x2226f7])),this['_refreshSuggestionsChain'](new Set([_0x2226f7]));},_0x17a2d6);return this['listenTo'](_0x5b1933,'accept',()=>{this['_updateSuggestionData'](_0x5cfccd,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5b1933,'discard',()=>{this['_updateSuggestionData'](_0x5cfccd,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5cfccd,_0x5b1933),this['_suggestionState']['set'](_0x5b1933,'notReady'),_0x5b1933;}['_splitMarkerName'](_0x246a68){const _0x393dea=_0x246a68['split'](':');return{'group':_0x393dea[0x0],'type':_0x393dea[0x1],'subType':_0x393dea['length']>=0x5?_0x393dea[0x2]:null,'id':_0x393dea['length']<0x5?_0x393dea[0x2]:_0x393dea[0x3],'authorId':_0x393dea['length']<0x5?_0x393dea[0x3]:_0x393dea[0x4],'markerCount':0x6==_0x393dea['length']?_0x393dea[0x5]:null};}['_breakSuggestionMarker'](_0xbed6fb,_0xa8eaa6,_0x569558){const _0x3d1a7f=_0xbed6fb['getFirstRange'](),_0x247fe6=_0x3d1a7f['start'],_0x180986=_0x3d1a7f['end'];this['_setSuggestionRange'](_0xbed6fb,this['_model']['createRange'](_0x247fe6,_0xa8eaa6));const _0x4a821c=_0x13da56(),_0x111273=_0xbed6fb['creator']['id'],_0x47c2fd=_0xbed6fb['type']+(_0xbed6fb['subType']?':'+_0xbed6fb['subType']:'');this['_setSuggestionData']({'id':_0x4a821c,'type':_0x47c2fd,'createdAt':new Date(),'authorId':_0x111273,'originalSuggestionId':_0xbed6fb['_originalSuggestionId']||_0xbed6fb['id'],'attributes':_0xbed6fb['attributes'],'data':_0xbed6fb['data']});const _0x3d8e8c=this['_getAttributeKey'](_0xbed6fb);('formatBlock'==_0xbed6fb['type']||_0x3d8e8c&&this['_isBlockAttribute'](_0x3d8e8c))&&(_0x569558=this['_model']['createPositionBefore'](_0x569558['parent'])),this['_addSuggestionMarker'](_0x47c2fd,_0x4a821c,_0x111273,this['_model']['createRange'](_0x569558,_0x180986));}['_findSuggestions'](_0x2010b7,_0x2fb87b=null){const _0x26fc4c=[],_0x55a6d4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2010b7)||(_0x2010b7=[_0x2010b7]);for(const _0x5a8bb0 of this['getSuggestions']()){if(!_0x5a8bb0['isInContent'])continue;if(_0x2fb87b&&_0x5a8bb0['type']!=_0x2fb87b)continue;let _0x18216b=!0x1;for(const _0x4b0388 of _0x5a8bb0['getRanges']()){for(const _0x20cc2c of _0x2010b7){const _0x441849=_0x20cc2c['start']['isEqual'](_0x4b0388['end'])||_0x20cc2c['end']['isEqual'](_0x4b0388['start']);if(_0x441849||_0x20cc2c['getIntersection'](_0x4b0388)){const _0x5d083a=_0x20cc2c['containsRange'](_0x4b0388)&&Ft(this['_model']['schema'],_0x4b0388['start'],_0x20cc2c),_0x221d2b=_0x4b0388['containsRange'](_0x20cc2c)&&Ft(this['_model']['schema'],_0x20cc2c['start'],_0x4b0388);_0x26fc4c['push']({'suggestion':_0x5a8bb0,'meta':{'isOwn':_0x55a6d4==_0x5a8bb0['author'],'isNextTo':_0x441849,'isInsideObject':_0x5d083a,'containsRangeInObject':_0x221d2b}}),_0x18216b=!0x0;break;}}if(_0x18216b)break;}}return _0x26fc4c;}['_addSuggestionMarker'](_0x5cd708,_0x5b9d18,_0x303c20,_0x3b9025,_0x21a125){this['_model']['change'](_0xb79aa8=>{let _0xd470a2='suggestion:'+_0x5cd708+':'+_0x5b9d18+':'+_0x303c20;_0x21a125&&(_0xd470a2=_0xd470a2+':'+_0x21a125),_0xb79aa8['addMarker'](_0xd470a2,{'range':_0x3b9025,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xeff054){const _0x3fdf66=_0xeff054['previous'],_0x21898a=_0xeff054['next'];_0xeff054['previous']=null,_0xeff054['next']=null,null!=_0x3fdf66&&_0x3fdf66['next']==_0xeff054&&(_0x3fdf66['next']=_0x21898a),null!=_0x21898a&&_0x21898a['previous']==_0xeff054&&(_0x21898a['previous']=_0x3fdf66),'ready'==this['_suggestionState']['get'](_0xeff054)&&(this['_suggestionState']['set'](_0xeff054,'removed'),this['fire']('suggestionUnloaded',_0xeff054,_0x3fdf66,_0x21898a));}['_setSuggestionData'](_0x5257d0){const _0x3c7cc8=_0x5257d0['id'],_0x114509=this['addSuggestionData'](_0x5257d0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4e4df9=this['editor']['plugins']['get']('PendingActions'),_0x3ad8e6=_0x114509['hasComments'],_0x4e69f7=_0x114509['subType']?_0x114509['type']+':'+_0x114509['subType']:_0x114509['type'],_0x431d4c=this['editor']['locale'],_0x24e37d=_0x4e4df9['add'](o(_0x431d4c,'PENDING_ACTION_SUGGESTION')),_0x647081={'id':_0x3c7cc8,'type':_0x4e69f7,'hasComments':_0x3ad8e6,'data':_0x5257d0['data']||null,'originalSuggestionId':_0x5257d0['originalSuggestionId']||null,'attributes':_0x114509['attributes']};this['_adapter']['addSuggestion'](_0x647081)['then'](_0x55b8db=>{_0x114509['_saved']=!0x0,_0x4e4df9['remove'](_0x24e37d),_0x55b8db&&_0x55b8db['createdAt']&&(this['_suggestions']['get'](_0x3c7cc8)['createdAt']=_0x55b8db['createdAt']);})['catch'](_0x36e866=>{throw _0x11ca43('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x114509['discard']();}),_0x114509['stopListening'](),this['_suggestions']['delete'](_0x114509['id']),this['_suggestionState']['delete'](_0x114509),_0x36e866;});}return _0x114509;}['_isBlockAttribute'](_0x143674){return this['_blockAttributeKeys']['has'](_0x143674);}['_updateSuggestionData'](_0x487243,_0x340c0f){const _0x459a50=this['editor']['plugins']['get']('PendingActions'),_0x444472=this['getSuggestion'](_0x487243);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x444472['_saved']){const _0x5a6d9c=_0x459a50['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x487243,_0x340c0f)['then'](()=>{_0x459a50['remove'](_0x5a6d9c);});}else _0x444472['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x487243,_0x340c0f);});}}['_getSuggestionData'](_0x41e637){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x318405('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x41e637);}['_handleNewSuggestionMarker'](_0x1fc74e){const {id:_0x21d6ad,type:_0x311cc2,subType:_0x551a95,authorId:_0x2597f1}=this['_splitMarkerName'](_0x1fc74e),_0x4cd843=this['_suggestions']['get'](_0x21d6ad)||this['_createSuggestion'](_0x311cc2,_0x551a95,_0x21d6ad,_0x2597f1,{});switch(this['_checkSuggestionCorrectness'](_0x4cd843,_0x311cc2,_0x551a95,_0x2597f1),this['_suggestionState']['get'](_0x4cd843)){case'notReady':this['_getSuggestionData'](_0x21d6ad)['then'](_0x46eda1=>{let _0x939693=Promise['resolve']();_0x46eda1['hasComments']&&(_0x939693=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x21d6ad})),_0x939693['then'](()=>{this['addSuggestionData'](_0x46eda1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4cd843,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x21d6ad,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4cd843,'ready'),this['fire']('suggestionLoaded',_0x4cd843);break;case'ready':this['fire']('suggestionChanged',_0x4cd843);}return _0x4cd843['addMarkerName'](_0x1fc74e),_0x4cd843;}['_refreshSuggestionsChain'](_0x55b4c0){const _0x5bf831=Array['from'](_0x55b4c0),_0xbf41f=_0x5bf831['filter'](_0x37838f=>'attribute'==_0x37838f['type']);this['_refreshAttributeSuggestionsChain'](_0xbf41f);const _0x1aa5be=_0x5bf831['filter'](_0x4b0f0f=>!_0x4b0f0f['isMultiRange']&&'attribute'!=_0x4b0f0f['type']),_0x1631ad=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1db118=>!_0x1db118['isMultiRange']&&'attribute'!=_0x1db118['type']),_0xd6e09d=_0x1631ad['filter'](_0x1711cd=>!_0x55b4c0['has'](_0x1711cd)),_0x585065=new Map(_0x1631ad['map'](_0x5456a0=>[_0x5456a0,this['_suggestionFactory']['getSuggestionCallback'](_0x5456a0['type'],_0x5456a0['subType'],'chain')])),_0x5c7362=new Map(_0x1631ad['map'](_0x7b0a61=>[_0x7b0a61,_0x7b0a61['getFirstRange']()])),_0x14acc3=new Set(),_0x586fe3=new Set();for(let _0xde4304=0x0;_0xde4304<_0x1aa5be['length'];_0xde4304++)_0x2fcfe3(_0x1aa5be[_0xde4304],_0x1aa5be,_0xde4304+0x1);for(let _0x222407=0x0;_0x222407<_0x1aa5be['length'];_0x222407++)_0x2fcfe3(_0x1aa5be[_0x222407],_0xd6e09d,0x0);const _0x26349e=new Set();for(let _0x40f877=0x0;_0x40f877<_0x1aa5be['length'];_0x40f877++){const _0xbd1c4=_0x1aa5be[_0x40f877];!_0x586fe3['has'](_0xbd1c4)&&_0xbd1c4['previous']&&(_0x26349e['add'](_0xbd1c4['previous']),_0xbd1c4['previous']['next']===_0xbd1c4&&(_0xbd1c4['previous']['next']=null),_0xbd1c4['previous']=null),!_0x14acc3['has'](_0xbd1c4)&&_0xbd1c4['next']&&(_0x26349e['add'](_0xbd1c4['next']),_0xbd1c4['next']['previous']===_0xbd1c4&&(_0xbd1c4['next']['previous']=null),_0xbd1c4['next']=null);}function _0x2fcfe3(_0x338fab,_0x34d587,_0x996632){for(let _0x4ffe18=_0x996632;_0x4ffe18<_0x34d587['length'];_0x4ffe18++){const _0x4296b0=_0x519ab6(_0x338fab,_0x34d587[_0x4ffe18]);_0x4296b0&&(_0x4296b0[0x0]['next']=_0x4296b0[0x1],_0x4296b0[0x1]['previous']=_0x4296b0[0x0],_0x14acc3['add'](_0x4296b0[0x0]),_0x586fe3['add'](_0x4296b0[0x1]));}}function _0x519ab6(_0x384c46,_0x10b457){if(_0x384c46['author']['id']!==_0x10b457['author']['id'])return null;const _0x278446=_0x585065['get'](_0x384c46)(_0x384c46,_0x10b457,_0x5c7362['get'](_0x384c46),_0x5c7362['get'](_0x10b457));if(!_0x278446)return null;return _0x585065['get'](_0x10b457)(_0x384c46,_0x10b457,_0x5c7362['get'](_0x384c46),_0x5c7362['get'](_0x10b457))?_0x278446[0x1]['commentThread']&&_0x278446[0x1]['commentThread']['length']?null:_0x278446:null;}_0x26349e['size']&&this['_refreshSuggestionsChain'](_0x26349e);}['_refreshAttributeSuggestionsChain'](_0x1d58a2){if(0x0==_0x1d58a2['length'])return;const _0x2b9ed9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a63b5=>'attribute'==_0x5a63b5['type']&&_0x5a63b5['_isDataLoaded']),_0x20411c=[],_0x5b7cbb=new Map();for(const _0x3e4d1d of _0x2b9ed9){const _0x36514d=_0x4f512c(_0x3e4d1d['attributes']);_0x5b7cbb['has'](_0x36514d)||(_0x5b7cbb['set'](_0x36514d,_0x20411c['length']),_0x20411c['push']([]));const _0x357178=_0x5b7cbb['get'](_0x36514d);_0x20411c[_0x357178]['push'](_0x3e4d1d);}!(function(){_0x20411c['sort']((_0x358c99,_0x493313)=>{const _0x120cb7=_0x358c99[0x0]['createdAt'],_0x412db0=_0x493313[0x0]['createdAt'];return _0x120cb7==_0x412db0?_0x358c99[0x0]['attributes']['groupId']<_0x493313[0x0]['attributes']['groupId']?-0x1:0x1:_0x120cb7<_0x412db0?-0x1:0x1;});for(const _0x45f857 of _0x20411c)_0x45f857['sort']((_0x2f5cad,_0x12cf3a)=>_0x2f5cad['id']<_0x12cf3a['id']?-0x1:0x1);}());for(let _0x567974=0x0;_0x567974<_0x20411c['length'];_0x567974++){if(0x0==_0x20411c[_0x567974]['length'])continue;const _0x7b438f=[];for(let _0x5ee6e0=_0x567974+0x1;_0x5ee6e0<_0x20411c['length'];_0x5ee6e0++)0x0!=_0x20411c[_0x5ee6e0]['length']&&_0x3c112a(_0x20411c[_0x567974],_0x20411c[_0x5ee6e0])&&_0x7b438f['push'](_0x5ee6e0);for(const _0x52219a of _0x7b438f)_0x20411c[_0x567974]=_0x20411c[_0x567974]['concat'](_0x20411c[_0x52219a]),_0x20411c[_0x52219a]=[];}for(const _0x3d47f9 of _0x20411c)for(let _0x1d8221=0x0;_0x1d8221<_0x3d47f9['length'];_0x1d8221++){const _0x4f910d=_0x3d47f9[_0x1d8221+0x1]||null;_0x3d47f9[_0x1d8221]['next']!==_0x4f910d&&(_0x3d47f9[_0x1d8221]['next']=_0x4f910d);}for(const _0x481613 of _0x20411c)for(let _0x2be79e=0x0;_0x2be79e<_0x481613['length'];_0x2be79e++){const _0x314be2=_0x481613[_0x2be79e-0x1]||null;_0x481613[_0x2be79e]['previous']!==_0x314be2&&(_0x481613[_0x2be79e]['previous']=_0x314be2);}function _0x3c112a(_0x523673,_0x510985){if(_0x523673[0x0]['attributes']['groupId']!==_0x510985[0x0]['attributes']['groupId']&&_0x523673[0x0]['author']!==_0x510985[0x0]['author'])return!0x1;if(!function(_0x51c294,_0x4d1665){if(!_0x51c294['hasComments']&&!_0x4d1665['hasComments'])return!0x0;if(_0x51c294['hasComments']&&_0x4d1665['hasComments'])return!0x1;if(_0x51c294['hasComments']&&_0x4d1665['createdAt']<_0x51c294['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4d1665['hasComments']&&_0x51c294['createdAt']<_0x4d1665['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x523673[0x0],_0x510985[0x0]))return!0x1;const _0x15a1f9=Ut(_0x523673[0x0]['attributes'],['groupId','trackingSessionId']),_0x59e101=Ut(_0x510985[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x28a429(_0x15a1f9,_0x59e101))return!0x1;if(_0x523673[0x0]['attributes']['groupId']==_0x510985[0x0]['attributes']['groupId'])return!0x0;if(_0x523673[0x0]['attributes']['trackingSessionId']!==_0x510985[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x523673['every'](_0x126461=>_0x510985['some'](_0x3b6e85=>_0x126461['getFirstRange']()['isEqual'](_0x3b6e85['getFirstRange']())))&&_0x510985['every'](_0x2f1d61=>_0x523673['some'](_0x3e2692=>_0x2f1d61['getFirstRange']()['isEqual'](_0x3e2692['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x271569){const _0x5e4732=Array['from'](_0x271569),_0x371c47=this['getSuggestions']({'skipNotAttached':!0x0}),_0x41fd90=_0x371c47['filter'](_0x43ac5c=>!_0x271569['has'](_0x43ac5c)),_0x5aea5e=new Map(_0x5e4732['map'](_0x304aee=>[_0x304aee,this['_suggestionFactory']['getSuggestionCallback'](_0x304aee['type'],_0x304aee['subType'],'join')])),_0x46ca26=new Map(_0x371c47['map'](_0x5dfaba=>[_0x5dfaba,_0x5dfaba['getRanges']()]));for(let _0x2f5214=0x0;_0x2f5214<_0x5e4732['length'];_0x2f5214++){if(_0x5c1fd6(this,_0x5e4732[_0x2f5214],_0x5e4732,_0x2f5214+0x1))return!0x0;}for(let _0x1bc860=0x0;_0x1bc860<_0x5e4732['length'];_0x1bc860++){if(_0x5c1fd6(this,_0x5e4732[_0x1bc860],_0x41fd90,0x0))return!0x0;}return!0x1;function _0x5c1fd6(_0x445f94,_0x31dd97,_0x24e882,_0x51cb00){for(let _0x44c4e9=_0x51cb00;_0x44c4e9<_0x24e882['length'];_0x44c4e9++){const _0x35a8f2=_0x24e882[_0x44c4e9];if(_0x35a8f2['type']!==_0x31dd97['type']||_0x35a8f2['author']['id']!==_0x31dd97['author']['id']||_0x35a8f2['subType']!==_0x31dd97['subType'])continue;if(!Wt(_0x31dd97,_0x35a8f2))continue;if('attribute'==_0x31dd97['type']&&_0x31dd97['data']['oldValue']!=_0x35a8f2['data']['oldValue'])continue;if('attribute'==_0x31dd97['type']&&_0x445f94['_isBlockAttribute'](_0x31dd97['data']['key']))continue;if('formatBlock'==_0x31dd97['type']){const _0x356ee8=_0x445f94['editor']['model'],_0x57a8c6=_0x31dd97['getContainedElement']();if(_0x57a8c6&&(_0x356ee8['schema']['isObject'](_0x57a8c6)||_0x356ee8['schema']['isLimit'](_0x57a8c6)))continue;}const _0x52f433=_0x5aea5e['get'](_0x31dd97),_0x1161b1=_0x46ca26['get'](_0x31dd97),_0xefd05c=_0x46ca26['get'](_0x35a8f2),_0x22151b=_0x31dd97['commentThread']&&_0x31dd97['commentThread']['length'],_0x4e7880=_0x35a8f2['commentThread']&&_0x35a8f2['commentThread']['length'];if(!_0x22151b&&_0x52f433(_0xefd05c,_0x1161b1))return _0x445f94['_joinSuggestions'](_0x35a8f2,_0x31dd97),_0x46ca26['delete'](_0x31dd97),!0x0;if(!_0x4e7880&&_0x52f433(_0x1161b1,_0xefd05c))return _0x445f94['_joinSuggestions'](_0x31dd97,_0x35a8f2),_0x46ca26['delete'](_0x35a8f2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c8184,_0x571403){if(_0x5c8184['isMultiRange']){for(const _0x50c5a0 of _0x571403['getRanges']())_0x5c8184['addRange'](_0x50c5a0);}else{const _0x12cc17=_0x571403['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c8184,this['_model']['createRange'](_0x5c8184['getFirstRange']()['start'],_0x12cc17));}_0x571403['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5eaec6,_0xc2190f,_0x19dc85){const _0x100bf5=_0x5eaec6['startsWith']('format')||_0x5eaec6['startsWith']('attribute')?'FORMATTING':_0x5eaec6['toUpperCase']();return o(this['editor']['locale'],_0xc2190f+'_'+_0x100bf5+'_SUGGESTION_ANNOUNCEMENT',_0x19dc85);}['_initAriaMarkerChangeAnnouncements'](){const _0x42ba60=this['editor'];if(!_0x42ba60['ui'])return;const {ariaLiveAnnouncer:_0x30206b}=_0x42ba60['ui'];_0x1e9960(this['_model'],({left:_0x1cbad9,entered:_0x47f3c4})=>{for(const _0x4b7a6b of _0x1cbad9){const {group:_0x17e8ab,type:_0x2ebc38}=this['_splitMarkerName'](_0x4b7a6b['name']);if('suggestion'===_0x17e8ab){_0x30206b['announce'](this['_getMarkerAnnouncementText'](_0x2ebc38,'LEAVE'));break;}}for(const _0x19927a of _0x47f3c4){const {group:_0x23abe4,type:_0x2baae9}=this['_splitMarkerName'](_0x19927a['name']);if('suggestion'===_0x23abe4){_0x30206b['announce'](this['_getMarkerAnnouncementText'](_0x2baae9,'ENTER',_0x5dcb12(_0x19ce89)));break;}}});}['_processAttributeChanges'](_0xaaa891){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4044e9=this['editor'],_0x489996=_0x4044e9['model']['document']['differ']['getChanges']();if(0x0==_0x489996['length'])return!0x1;const _0xc06e50=[],_0x4f683e=_0x489996['filter'](_0x7622bf=>'attribute'==_0x7622bf['type']),_0x4ba0a9=_0x489996['filter'](_0xe678eb=>'insert'==_0xe678eb['type']&&'$text'!=_0xe678eb['name']),_0x21db59=_0x489996['filter'](_0x9e17db=>'remove'==_0x9e17db['type']&&'$text'!=_0x9e17db['name']);for(const _0x1ba8bd of _0x4f683e)_0xc06e50['push']({'key':_0x1ba8bd['attributeKey'],'newValue':_0x1ba8bd['attributeNewValue'],'oldValue':_0x1ba8bd['attributeOldValue'],'range':Ht(_0x1ba8bd['range'],_0x4044e9['model'])});for(const _0x1b164f of _0x4ba0a9){const _0x337fea=_0x21db59['find'](_0x57954a=>_0x57954a['position']['isEqual'](_0x1b164f['position']));_0x337fea&&_0xc06e50['push']({'key':m,'newValue':_0x1b164f['name'],'oldValue':_0x337fea['name'],'range':_0x4044e9['model']['createRangeOn'](_0x1b164f['position']['nodeAfter'])});}return 0x0!=_0xc06e50['length']&&this['_reduceExistingSuggestions'](_0xaaa891,_0xc06e50);}['_processAttributeSuggestions'](_0x1ce2dd){let _0x271138=!0x1;const _0x2a23ba=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xf6a0cc=>_0xf6a0cc['data']['newRange']&&_0xf6a0cc['name']['startsWith']('suggestion:attribute:'));for(const _0x5a12f2 of _0x2a23ba){const {subType:_0x493722,id:_0x55ddeb}=this['_splitMarkerName'](_0x5a12f2['name']),_0x5d3823=_0x493722['split']('|')[0x0];for(const _0x2c9e32 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2c9e32['id']!=_0x55ddeb&&'attribute'==_0x2c9e32['type']&&_0x2c9e32['data']&&_0x2c9e32['data']['key']==_0x5d3823&&_0x2c9e32['getFirstRange']()['isIntersecting'](_0x5a12f2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2c9e32,_0x5a12f2['data']['newRange'],_0x1ce2dd),_0x271138=!0x0);}return _0x271138;}['recordAttributeChanges'](_0x433584){this['_recordAttributeSuggestions']=!0x0,_0x433584();}['_isRegisteredAttribute'](_0x3f842b){const _0x3bc2f0=this['_isBlockAttribute'](_0x3f842b),_0x5638b6=this['_inlineAttributeKeys']['has'](_0x3f842b);return _0x3bc2f0||_0x5638b6;}['_reduceExistingSuggestions'](_0x1313be,_0x1ac9e3){if(0x0==_0x1ac9e3['length'])return!0x1;let _0x5e7483=!0x1;for(const _0xb4f998 of _0x1ac9e3){const _0x13eb81=this['_findSuggestions'](_0xb4f998['range'],'attribute')['filter'](_0x137af9=>!_0x137af9['meta']['isNextTo'])['map'](_0x11c2a4=>_0x11c2a4['suggestion']),_0x4a0491=_0x4f512c({'newValue':_0xb4f998['newValue']});_0x13eb81['filter'](_0x28b779=>{const [_0x303ce1,_0x5c5943]=_0x28b779['subType']['split']('|');return _0x303ce1==_0xb4f998['key']&&_0x5c5943!=_0x4a0491;})['forEach'](_0x156ddb=>{this['_reduceSuggestionAttributeRange'](_0x156ddb,_0xb4f998['range'],_0x1313be),_0x5e7483=!0x0;});}return _0x5e7483;}['_reduceSuggestionAttributeRange'](_0x4b5ab2,_0x3d90a4,_0x2b0eb1){const _0x83fa5d=_0x4b5ab2['getFirstRange']()['getDifference'](_0x3d90a4);0x0!==_0x83fa5d['length']?0x1!==_0x83fa5d['length']?this['_breakSuggestionMarker'](_0x4b5ab2,_0x3d90a4['start'],_0x3d90a4['end']):this['_setSuggestionRange'](_0x4b5ab2,_0x83fa5d[0x0]):_0x2b0eb1['removeMarker'](_0x4b5ab2['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5694f2){this['_editor']=_0x5694f2,this['_model']=_0x5694f2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x358424,_0x5e4c50,_0x55ac84,_0x1cc0fe,_0xaf9fca,_0x4cfea3,_0x287bae){return new T(this['_model'],{'type':_0x358424,'subType':_0x5e4c50,'id':_0x55ac84,'originalSuggestionId':_0x287bae,'author':_0x1cc0fe,'creator':_0x1cc0fe,'attributes':_0xaf9fca,'onAttributesChange':_0x4cfea3,'onAccept':(..._0x104690)=>this['getSuggestionCallback'](_0x358424,_0x5e4c50,'accept')(..._0x104690),'onDiscard':(..._0x5720ff)=>this['getSuggestionCallback'](_0x358424,_0x5e4c50,'discard')(..._0x5720ff)});}['registerCustomCallback'](_0x4f6564,_0x4c95b0,_0x2b5574,_0x59539f){const _0x41c3a9=_0x4f6564+':'+_0x4c95b0+':'+_0x2b5574;this['_customCallbacks']['set'](_0x41c3a9,_0x59539f);}['getSuggestionCallback'](_0x431aac,_0xa4cb05,_0x170890){const _0x1cebed=_0x431aac+':'+_0xa4cb05+':'+_0x170890;return this['_customCallbacks']['get'](_0x1cebed)||this['_defaultCallbacks']['get'](_0x431aac+':'+_0x170890);}['_registerDefaultCallbacks'](){const _0x595360=()=>!0x1,_0x5174be=_0x5550e8=>{_0x5550e8['sort']((_0x188e1b,_0x2cc3a5)=>_0x188e1b['start']['isBefore'](_0x2cc3a5['start'])?0x1:-0x1),this['_model']['change'](_0x5c99ad=>{for(const _0x194403 of _0x5550e8){let _0x2a3bc2;_0x2a3bc2=_0x194403['end']['isAtEnd']&&_0x194403['end']['parent']==_0x194403['start']['nodeAfter']?_0x5c99ad['createSelection'](_0x194403['start']['nodeAfter'],'on'):_0x5c99ad['createSelection'](_0x194403),this['_model']['deleteContent'](_0x2a3bc2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2f46d9=(_0xddd464,_0x3ff4c7)=>{_0x3ff4c7&&this['_model']['change'](_0x47f74f=>{const {commandName:_0x5af3ac,commandParams:_0x4ebbb2=[]}=_0x3ff4c7,_0x59709d=_0xddd464['map'](_0x168c8b=>(Pt(_0x168c8b)&&(_0x168c8b=this['_model']['createRange'](_0x168c8b['end'])),_0x168c8b))['filter'](_0x3d6013=>'$graveyard'!==_0x3d6013['root']['rootName']);if(_0x59709d['length']<0x1)return;const _0x1b033d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x8de723=>_0x4ffd26['fromRange'](_0x8de723));_0x47f74f['setSelection'](_0x59709d);for(const _0x9e4218 of this['_editor']['commands']['commands']())_0x9e4218['refresh']();_0x4ebbb2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5af3ac,..._0x4ebbb2);const _0x1959a8=_0x1b033d['filter'](_0xb6057e=>'$graveyard'!=_0xb6057e['root']['rootName']);_0x1959a8['length']>0x0&&_0x47f74f['setSelection'](_0x1959a8);for(const _0xfaf56a of _0x1b033d)_0xfaf56a['detach']();});},_0x19d117=(_0x9f73fe,_0x1427ef)=>0x1==_0x9f73fe['length']&&0x1==_0x1427ef['length']&&_0x9f73fe[0x0]['end']['isEqual'](_0x1427ef[0x0]['start']),_0x594774=(_0x40b54e,_0x12db42,_0x4170b7,_0x113bdd)=>zt(_0x40b54e,_0x12db42,_0x4170b7,_0x113bdd)?[_0x40b54e,_0x12db42]:zt(_0x12db42,_0x40b54e,_0x113bdd,_0x4170b7)?[_0x12db42,_0x40b54e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x595360),this['_defaultCallbacks']['set']('insertion:discard',_0x5174be),this['_defaultCallbacks']['set']('insertion:join',_0x19d117),this['_defaultCallbacks']['set']('insertion:chain',_0x594774),this['_defaultCallbacks']['set']('deletion:accept',_0x5174be),this['_defaultCallbacks']['set']('deletion:discard',_0x595360),this['_defaultCallbacks']['set']('deletion:join',_0x19d117),this['_defaultCallbacks']['set']('deletion:chain',_0x594774),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f46d9),this['_defaultCallbacks']['set']('formatInline:discard',_0x595360),this['_defaultCallbacks']['set']('formatInline:join',_0x19d117),this['_defaultCallbacks']['set']('formatInline:chain',_0x595360),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f46d9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x595360),this['_defaultCallbacks']['set']('formatBlock:join',_0x19d117),this['_defaultCallbacks']['set']('formatBlock:chain',_0x595360),this['_defaultCallbacks']['set']('attribute:accept',_0x595360),this['_defaultCallbacks']['set']('attribute:discard',(_0x2c8cad,_0x59d58f)=>{if(!_0x59d58f)return;const _0x6455c9=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4b69dd=>{if(_0x59d58f['key']==m)for(const _0xac3b7a of _0x2c8cad){const _0x59989c=_0xac3b7a['start']['nodeAfter'],_0x936fb1=_0x59d58f['oldValue'];_0x4b69dd['rename'](_0x59989c,_0x936fb1);}else{if(_0x6455c9['_isBlockAttribute'](_0x59d58f['key'])){for(const _0x2d8a27 of _0x2c8cad)void 0x0!==_0x59d58f['oldValue']?_0x4b69dd['setAttribute'](_0x59d58f['key'],_0x59d58f['oldValue'],_0x2d8a27['start']['nodeAfter']):_0x4b69dd['removeAttribute'](_0x59d58f['key'],_0x2d8a27['start']['nodeAfter']);}else{for(const _0x551678 of _0x2c8cad)_0x59d58f['oldValue']?_0x4b69dd['setAttribute'](_0x59d58f['key'],_0x59d58f['oldValue'],_0x551678):_0x4b69dd['removeAttribute'](_0x59d58f['key'],_0x551678);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x19d117);}}function Ft(_0x5bc4d4,_0x351f3b,_0x46d243){for(const _0x41b9ae of _0x351f3b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x41b9ae['root']==_0x41b9ae)return!0x1;if(!_0x46d243['containsItem'](_0x41b9ae))return!0x1;if(_0x5bc4d4['isObject'](_0x41b9ae)||_0x5bc4d4['isLimit'](_0x41b9ae))return!0x0;}return!0x1;}function Pt(_0x224957){return _0x224957['end']['parent']==_0x224957['start']['nodeAfter']&&_0x224957['end']['isAtStart'];}function Gt(_0x360f63,_0x14de17,_0x2dea5b,_0x4a94cc){const _0x4105b0=_0x51c542=>!_0x51c542['item']['is']('$textProxy')&&!_0x4a94cc['isObject'](_0x51c542['item']),_0x4abe78=_0x360f63['start']['getLastMatchingPosition'](_0x4105b0),_0x254f23=_0x360f63['end']['getLastMatchingPosition'](_0x4105b0,{'direction':'backward'});return(!_0x360f63['start']['isEqual'](_0x4abe78)||!_0x360f63['end']['isEqual'](_0x254f23))&&(_0x4abe78['isBefore'](_0x254f23)?_0x2dea5b['updateMarker'](_0x14de17,{'range':_0x2dea5b['createRange'](_0x4abe78,_0x254f23)}):_0x2dea5b['removeMarker'](_0x14de17),!0x0);}function Lt(_0x1a6b9f){return _0x4f512c(_0x1a6b9f);}function Jt(_0x32bae4){const _0xd3964c=_0x32bae4['start']['nodeAfter'];return _0xd3964c&&_0xd3964c['is']('element');}function Kt(_0x399cbd){return!Pt(_0x399cbd)&&!function(_0x5c89da){return _0x5c89da['start']['parent']==_0x5c89da['end']['nodeBefore']&&_0x5c89da['start']['isAtEnd'];}(_0x399cbd);}function Ht(_0x42dbea,_0x5501df){return null==_0x42dbea['end']['nodeBefore']&&_0x42dbea['end']['parent']==_0x42dbea['start']['nodeAfter']?qt(_0x42dbea['start']['nodeAfter'],_0x5501df):_0x42dbea;}function qt(_0x27be10,_0x48a718){const _0x4df96f=_0x48a718['schema']['isObject'](_0x27be10)||_0x48a718['schema']['isSelectable'](_0x27be10);return _0x48a718['createRange'](_0x48a718['createPositionAt'](_0x27be10,'before'),_0x4df96f?_0x48a718['createPositionAfter'](_0x27be10):_0x48a718['createPositionAt'](_0x27be10,'end'));}function zt(_0x528c66,_0x214f23,_0x299bf1,_0x5a8292){return!!Wt(_0x528c66,_0x214f23)&&_0x299bf1['end']['isEqual'](_0x5a8292['start']);}function Wt(_0x475349,_0x3817ab){if(!_0x475349['_isDataLoaded']||!_0x3817ab['_isDataLoaded'])return!0x1;const _0x5951f8=new Set(Object['keys'](_0x475349['attributes'])),_0x43e0e2=new Set(Object['keys'](_0x3817ab['attributes']));if(_0x5951f8['delete']('groupId'),_0x43e0e2['delete']('groupId'),0x0==_0x5951f8['size']&&0x0==_0x43e0e2['size'])return!0x0;if(_0x5951f8['size']!=_0x43e0e2['size'])return!0x1;const _0x4e6200={..._0x475349['attributes']},_0x4b5da7={..._0x3817ab['attributes']};return delete _0x4e6200['groupId'],delete _0x4b5da7['groupId'],JSON['stringify'](_0x4e6200)==JSON['stringify'](_0x4b5da7);}function Qt(_0x495fb9,_0x45f674){const _0xad1b3a=Xt(_0x495fb9['attributes']),_0x302cd6=Xt(_0x45f674);if(!_0x495fb9['_isDataLoaded'])return!0x1;for(const _0x50a2c4 of Object['keys'](_0x302cd6))if(!_0x28a429(_0xad1b3a[_0x50a2c4],_0x302cd6[_0x50a2c4]))return!0x1;return!0x0;}function Xt(_0x25d770){const _0x509f3c=Object['assign']({},_0x25d770);return delete _0x509f3c['skipNestingCheck'],delete _0x509f3c['tablePasteChainId'],_0x509f3c;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x348430(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x54e9bf,_0x11aa3d,_0x4966ef,_0x1372d9){super(),this['model']=_0x11aa3d,this['view']=_0x4966ef,this['commentThreadController']=_0x1372d9,this['_editor']=_0x54e9bf,this['_acceptCommand']=_0x54e9bf['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x54e9bf['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x39e6de,_0x280b75)=>_0x39e6de||_0x280b75),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x116160=>_0x116160&&this['_editor']['model']['canEditAt'](_0x11aa3d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xac002=>_0xac002&&this['_editor']['model']['canEditAt'](_0x11aa3d['getRanges']())),this['_pendingAction']=null,_0x4966ef['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4966ef,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4966ef,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4966ef,'change:isDirty',()=>{_0x4966ef['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 _0x129714=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x129714);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x24bf71{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x369981,_0x2ad8c3,_0x31e3c6,_0x3afb8f){super(_0x369981),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1faf6e(_0x369981,o(_0x369981,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2ad8c3['authoredAt']),this['bind']('authoredAt')['to'](_0x2ad8c3),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',_0x2ad8c3,'authoredAt',this,'descriptionParts',(_0x46c981,_0x33c282,_0x572b72)=>{const _0x305fbe=_0x572b72['map'](_0x5c573e=>ls(_0x5c573e['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x46c981-0x1,_0x2ad8c3['author']['name'],_0x33c282?_0x3afb8f['formatDateTime'](_0x33c282):'',new DOMParser()['parseFromString'](_0x305fbe,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1decf5(),this['focusTracker']=new _0x389d4c(),this['keystrokes']=new _0x5db899(),this['focusCycler']=new _0x2e97fa({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x49988e=>_0x49988e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2ad8c3,this['_localUser']=_0x31e3c6,this['_config']=_0x3afb8f,_0x3afb8f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3c169a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2f41b2}=this['_config'];this['commentsListView']=new _0x2f41b2(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',_0x20be5d=>_0x20be5d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5d798d,_0x26fee0)=>_0x5d798d||!!_0x26fee0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x13e893}=this['_config'],_0x63a919=new _0x13e893(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1a1736=_0x63a919['commentInputView'];return _0x63a919['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1a1736,'value',(_0x547c97,_0x45d39c,_0x141506)=>!!_0x141506||_0x547c97&&!_0x45d39c),_0x1a1736['on']('submit',(_0x1b302e,_0x22c9ea)=>{this['fire']('addComment',_0x22c9ea),_0x1a1736['editor']['setData']('');}),_0x1a1736['on']('cancel',()=>this['focus']()),_0x1a1736['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x63a919;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x335d05,_0x5b2722,_0x1309f5,_0x5a86a8){super(_0x335d05,_0x5b2722,_0x1309f5,_0x5a86a8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2eb51d=>_0x2eb51d&&_0x2eb51d[0x0]?_0x2eb51d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x39888f,_0xb7e537)=>{let _0x21abc9='';for(const _0x165bbf of _0x39888f)_0x21abc9+='<p>'+ls(_0x165bbf['content'],_0x165bbf['color'])+'</p>';return _0xb7e537?_0x21abc9:_0x5a05f6(_0x21abc9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5a86a8['SuggestionView'](_0x335d05,_0x5b2722,{'formatDateTime':_0x5a86a8['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5d53c8=this['bindTemplate'],_0x2e37ae=[this['suggestionView']];return this['commentsListView']&&_0x2e37ae['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2e37ae['push'](this['commentThreadInputView']),_0x2e37ae['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5d53c8['if']('isActive','ck-suggestion-wrapper--active'),_0x5d53c8['to']('type',_0x298549=>'ck-suggestion-'+_0x298549),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':_0x5d53c8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2e37ae};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x24bf71{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x471cc4,_0x22a8f8,_0x120dd5){super(_0x471cc4),this['_model']=_0x22a8f8,this['_config']=_0x120dd5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x22a8f8),this['acceptButton']=this['_createButton'](o(_0x471cc4,'Accept\x20suggestion'),_0x2b26de,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x471cc4,'Discard\x20suggestion'),_0x1f54db,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x20f67d(_0x471cc4,_0x22a8f8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1decf5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x389d4c(),this['keystrokes']=new _0x5db899(),this['focusCycler']=new _0x2e97fa({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x21ca01=>_0x21ca01['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x10d374=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x10d374['innerHTML']=this['description'],this['on']('change:description',(_0x2aebfc,_0x1b73d9,_0x32a5ae)=>{_0x10d374['innerHTML']=_0x32a5ae;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5af932=this['bindTemplate'],_0x34dd56=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5af932['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5af932['to']('authoredAt',_0x2173e7=>this['_config']['formatDateTime'](_0x2173e7))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x34dd56['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x34dd56}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x299b63,_0x4420a2,_0x447fc2,_0x34db54,_0x2ae01d){const _0x128b7d=new _0x5dc674(this['locale']);return _0x128b7d['set']({'label':_0x299b63,'icon':_0x4420a2,'tooltip':!0x0,'tooltipPosition':_0x2ae01d}),_0x128b7d['extendTemplate']({'attributes':{'class':_0x447fc2}}),_0x128b7d['on']('execute',()=>{this['fire'](_0x34db54,this['_model']['id']);}),_0x128b7d;}['_setupKeyboardNavigation'](){const _0x3b5ad6=this['element'];this['keystrokes']['listenTo'](_0x3b5ad6);for(const _0x371e74 of this['focusables'])this['focusTracker']['add'](_0x371e74['element']),this['keystrokes']['listenTo'](_0x371e74['element']);this['keystrokes']['set']('enter',(_0x5d7abf,_0x431a2c)=>{_0x3b5ad6===_0x5d7abf['target']&&(this['focusCycler']['focusFirst'](),_0x431a2c());}),this['keystrokes']['set']('esc',(_0x3ada22,_0x1d8fb1)=>{_0x3b5ad6!==_0x3ada22['target']&&(this['focus'](),_0x1d8fb1());});}}class u extends _0xb6c9b9{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x37a16c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3545fc){super(_0x3545fc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x328b79=this['editor']['config'];_0x328b79['define']('trackChanges.SuggestionThreadView',fe),_0x328b79['define']('trackChanges.SuggestionView',we),_0x328b79['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x328b79['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1630f0,_0x2abe6f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1279df,_0x1b8a60]of this['_handleControllerBuffer']){const _0x32503f=this['_suggestionToController']['has'](_0x1279df);_0x32503f||_0x1b8a60?_0x32503f&&_0x1b8a60&&this['_destroyController'](_0x1279df):this['_initializeController'](_0x1279df);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1630f0,_0x2abe6f);}['init'](){const _0x3a5a58=this['editor'],_0x4feeeb=_0x3a5a58['plugins']['get']('TrackChangesEditing'),_0x3cf2f2=_0x3a5a58['plugins']['get']('Annotations'),_0x419daa=_0x3a5a58['plugins']['get']('EditorAnnotations'),_0x1848ca=_0x3a5a58['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x419daa['addSourceCollector'](()=>{const _0x30df8c=[];for(const [_0x5811f2,_0x32fd9d]of Array['from'](this['_suggestionToController'])){const _0x451401=_0x5811f2['getAllAdjacentSuggestions'](),_0x3cfa7b=[];for(const _0x4a38c0 of _0x451401){if(!_0x4a38c0['isInContent'])continue;if(_0x4a38c0['isMultiRange']){_0x3cfa7b['push'](..._0x4a38c0['getRanges']());continue;}const _0x2f2ee7=_0x4a38c0['getFirstRange']();if(_0x3cfa7b['length']>0x0){const _0x49c787=_0x3cfa7b[0x0]['getJoined'](_0x2f2ee7);if(_0x49c787){_0x3cfa7b[0x0]=_0x49c787;continue;}}_0x3cfa7b['push'](_0x2f2ee7);}_0x30df8c['push']([_0x32fd9d['view'],_0x3cfa7b]);}return _0x30df8c;}),this['listenTo'](_0x4feeeb,'suggestionLoaded',(_0x284c7f,_0x41f465)=>{this['listenTo'](_0x41f465,'change:previous',(_0x2b0435,_0x3f3e79,_0x2ee882,_0xe25928)=>{_0x41f465['isInContent']&&(null==_0x2ee882?(this['_updateController'](_0xe25928['head']),this['_handleSuggestionControllerDelayed'](_0x41f465,!0x1)):(this['_updateController'](_0x2ee882['head']),null==_0xe25928&&this['_handleSuggestionControllerDelayed'](_0x41f465,!0x0)));}),null!==_0x41f465['previous']?this['_updateController'](_0x41f465['head']):this['_handleSuggestionControllerDelayed'](_0x41f465,!0x1);}),this['listenTo'](_0x4feeeb,'suggestionUnloaded',(_0x3dafce,_0x28702b,_0x52c47e)=>{this['stopListening'](_0x28702b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x28702b),this['_suggestionToController']['has'](_0x28702b)&&this['_destroyController'](_0x28702b),_0x52c47e&&this['_updateController'](_0x52c47e['head']);}),this['listenTo'](_0x4feeeb,'suggestionChanged',(_0xaef3e5,_0x3268a9)=>{this['_updateController'](_0x3268a9);}),this['listenTo'](_0x3cf2f2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1848ca,'addComment',(_0x54088f,{threadId:_0x3e2fc0,isFromAdapter:_0x176a94})=>{if(_0x176a94||!_0x4feeeb['hasSuggestion'](_0x3e2fc0))return;const _0x5a4537=_0x4feeeb['getSuggestion'](_0x3e2fc0);this['_suggestionToController']['get'](_0x5a4537)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x40299c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c27f8;for(const _0x3f4fef in _0x40299c){const _0xeb258b=_0x3f4fef,_0x41cbc6=_0x40299c[_0xeb258b];if('trackChangesLicenseKeyValid'==_0x41cbc6||'trackChangesLicenseKeyInvalid'==_0x41cbc6||'trackChangesLicenseKeyExpired'==_0x41cbc6||'trackChangesLicenseKeyDomainLimit'==_0x41cbc6||'trackChangesLicenseKeyNotAllowed'==_0x41cbc6||'trackChangesLicenseKeyEvaluationLimit'==_0x41cbc6||'trackChangesLicenseKeyTrialLimit'==_0x41cbc6||'trackChangesLicenseKeyUsageLimit'==_0x41cbc6){delete _0x40299c[_0xeb258b],_0x5c27f8=_0x41cbc6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5c27f8&&_0x40299c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5c27f8&&_0x40299c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5c27f8&&_0x40299c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5c27f8&&_0x40299c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5c27f8&&_0x40299c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5c27f8&&_0x40299c['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5c27f8&&_0x40299c['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2e5f49){const _0xa05d0=this['_suggestionToController']['get'](_0x2e5f49);if(!_0xa05d0)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0xa05d0['view'])||null;}['getSuggestionForAnnotation'](_0x356f42){const _0x1038da=this['_viewToController']['get'](_0x356f42['innerView']);return _0x1038da?_0x1038da['model']:null;}['_refreshActiveMarkers'](){const _0xc9ced6=this['editor']['plugins']['get']('Annotations'),_0x40ca4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x494bf9=Array['from'](_0xc9ced6['activeAnnotations'],_0x533363=>_0x533363['innerView'])['filter'](_0x933e7c=>this['_viewToController']['has'](_0x933e7c)),_0x3d4152=[];for(const _0x140568 of _0x494bf9){const _0x111733=this['_viewToController']['get'](_0x140568)['model']['getAllAdjacentSuggestions']();_0x3d4152['push'](..._0x111733['reduce']((_0x4a818f,_0x534728)=>[..._0x4a818f,..._0x534728['getMarkerNames']()],[]));}_0x40ca4b['activeMarkers']=_0x3d4152;}['_addUIComponentsToFactory'](){const _0xb58638=this['editor'],_0xeb7d6a=_0xb58638['locale'],_0x40c5bd=o(_0xeb7d6a,'Track\x20changes'),_0x26b442=new _0x32b3b3([{'type':'switchbutton','model':new _0x3fba36({'withText':!0x0,'isToggleable':!0x0,'label':_0x40c5bd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3fba36({'withText':!0x0,'label':o(_0xeb7d6a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fba36({'withText':!0x0,'label':o(_0xeb7d6a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fba36({'withText':!0x0,'label':o(_0xeb7d6a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fba36({'withText':!0x0,'label':o(_0xeb7d6a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xb58638['plugins']['has']('TrackChangesPreview')&&_0x26b442['addMany']([{'type':'separator'},{'type':'button','model':new _0x3fba36({'withText':!0x0,'label':o(_0xeb7d6a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xa95111 of _0x26b442)if(ke(_0xa95111)){const _0x5176b3=_0xb58638['commands']['get'](_0xa95111['model']['commandName']);_0xa95111['model']['bind']('isOn','isEnabled')['to'](_0x5176b3,'value','isEnabled');}_0xb58638['ui']['componentFactory']['add']('trackChanges',_0x7bafce=>this['_createToolbarButton'](_0x7bafce,_0x26b442,_0x40c5bd)),_0xb58638['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ac374=>this['_createMenuBarMenu'](_0x2ac374,_0x26b442,_0x40c5bd));}['_createToolbarButton'](_0x4c5b90,_0xc97b1b,_0x35b9c2){const _0x1b63e2=_0x3b762a(_0x4c5b90,_0x1164b8),_0x450d74=this['editor']['commands']['get']('trackChanges');_0x1b63e2['buttonView']['set']({'tooltip':_0x35b9c2,'label':_0x35b9c2,'icon':_0x257c7e}),_0x1b63e2['buttonView']['bind']('isOn')['to'](_0x450d74,'value'),_0x1b63e2['buttonView']['on']('execute',()=>{_0x450d74['execute'](),this['editor']['editing']['view']['focus']();}),_0x30bdfb(_0x1b63e2,_0xc97b1b,{'role':'menu'});const _0x4e5c9f=[];for(const _0x1a1745 of _0xc97b1b)ke(_0x1a1745)&&_0x4e5c9f['push'](this['editor']['commands']['get'](_0x1a1745['model']['commandName']));const _0x26d334=_0x1b63e2['buttonView'];return _0x26d334['actionView']['unbind']('isEnabled'),_0x26d334['arrowView']['unbind']('isEnabled'),_0x26d334['actionView']['bind']('isEnabled')['to'](_0x450d74,'isEnabled'),_0x26d334['arrowView']['bind']('isEnabled')['toMany'](_0x4e5c9f,'isEnabled',(..._0x39867b)=>_0x39867b['some'](_0x241d6d=>_0x241d6d)),_0x1b63e2['on']('execute',_0xa51371=>{this['editor']['execute'](_0xa51371['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b63e2;}['_createMenuBarMenu'](_0x2156c7,_0x13a771,_0x4ff622){const _0x1df1b3=new _0x1f58a1(_0x2156c7),_0x2d3dd4=this['editor']['commands']['get']('trackChanges');_0x1df1b3['buttonView']['set']({'label':_0x4ff622,'icon':_0x257c7e});const _0x4ea4db=new _0x57bbe7(_0x2156c7);for(const _0x59408b of _0x13a771){if('separator'==_0x59408b['type']){_0x4ea4db['items']['add'](new _0x35266f(_0x2156c7));continue;}const _0x1d6b31=new _0x3a4da2(_0x2156c7,_0x1df1b3),_0x5e80af=new _0x156932(_0x2156c7),_0x417ddc=_0x59408b['model'];_0x5e80af['bind'](...Object['keys'](_0x417ddc))['to'](_0x417ddc),_0x5e80af['delegate']('execute')['to'](_0x1df1b3),_0x5e80af['on']('execute',()=>{this['editor']['execute'](_0x417ddc['commandName']),this['editor']['editing']['view']['focus']();}),_0x1d6b31['children']['add'](_0x5e80af),_0x4ea4db['items']['add'](_0x1d6b31);}return _0x1df1b3['bind']('isEnabled')['to'](_0x2d3dd4,'isEnabled'),_0x1df1b3['panelView']['children']['add'](_0x4ea4db),_0x1df1b3;}['_initializeController'](_0x10c6fa){const _0x48c18e=this['editor'],_0xa895a4=_0x48c18e['config'],_0x3bf702=_0x48c18e['plugins']['get']('Annotations'),_0x54d466=_0x48c18e['plugins']['get']('CommentsRepository'),_0x100f00=_0x48c18e['plugins']['get']('EditorAnnotations'),_0x5350c4=_0x48c18e['plugins']['get'](_0x37a16c)['me'],_0x804341=_0xa895a4['get']('trackChanges')['SuggestionThreadView'],_0xbac8bf=_0xa895a4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xb27f31,CommentThreadInputView:_0x13ee46}=_0x48c18e['plugins']['get']('CommentsUI');let _0x166bba,_0x3e08a8,_0x520779;this['_annotationViews']['has'](_0x10c6fa['id'])?(_0x3e08a8=this['_annotationViews']['get'](_0x10c6fa['id']),_0x166bba=_0x3e08a8['mainView']):(_0x166bba=new _0x804341(_0x48c18e['locale'],_0x10c6fa,_0x5350c4,{'disableComments':this['_disableComments'],'editorConfig':{..._0xa895a4['get']('comments.editorConfig'),'licenseKey':_0xa895a4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xa895a4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xa895a4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xa895a4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xf1e3a1(_0xa895a4['get']('locale'),_0x48c18e['locale']),'CommentView':_0xa895a4['get']('comments')['CommentView'],'CommentsListView':_0xb27f31,'CommentThreadInputView':_0x13ee46,'SuggestionView':_0xbac8bf}),_0x166bba['suggestionView']['acceptButton']['on']('execute',()=>{_0x48c18e['editing']['view']['focus']();}),_0x166bba['suggestionView']['discardButton']['on']('execute',()=>{_0x48c18e['editing']['view']['focus']();}),_0x3e08a8=_0x3bf702['createAnnotationView'](this['editor']['locale'],_0x166bba),_0x3e08a8['bind']('isDirty')['to'](_0x166bba,'isDirty'),_0x3e08a8['bind']('length')['to'](_0x166bba),_0x3e08a8['bind']('type')['to'](_0x166bba,'type',_0x2125e0=>'suggestion-'+_0x2125e0),_0x166bba['on']('escape',()=>{_0x520779['fire']('escape');}),this['_annotationViews']['set'](_0x10c6fa['id'],_0x3e08a8));const _0x28ded0=_0x54d466['createCommentThreadController'](_0x10c6fa['commentThread'],_0x166bba),_0x355b04=new pe(_0x48c18e,_0x10c6fa,_0x166bba,_0x28ded0),_0x43d002=_0x10c6fa['getAllAdjacentSuggestions']()['filter'](_0x5467d4=>_0x5467d4['isInContent']);_0x166bba['descriptionParts']=_0x48c18e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x43d002),this['_suggestionToController']['set'](_0x10c6fa,_0x355b04),this['_viewToController']['set'](_0x166bba,_0x355b04),_0x520779=_0x3bf702['createAnnotation']({'view':_0x3e08a8,'target':()=>{const _0x397bb7=[],_0x5571a1=_0x10c6fa['getAllAdjacentSuggestions']()['filter'](_0x5d0767=>_0x5d0767['isInContent']);for(const _0x2d374f of _0x5571a1)_0x397bb7['push'](..._0x2d374f['getMarkers']());return _0xa70db0(_0x48c18e['editing'],_0x397bb7);},'type':()=>'suggestion-'+_0x355b04['view']['type']}),_0x54d466['_bindAnnotationToEditors'](_0x166bba,_0x520779),_0x3bf702['add'](_0x520779),_0x100f00['registerAnnotation'](_0x520779);}['_destroyController'](_0x33c6bd){const _0x4d091c=this['editor']['plugins']['get']('CommentsRepository'),_0x4d85a9=this['editor']['plugins']['get']('Annotations'),_0x4cf296=this['_suggestionToController']['get'](_0x33c6bd),_0x4649b5=_0x4cf296['view'],_0x4f5f6e=_0x4d85a9['getByInnerView'](_0x4649b5);_0x4d091c['_unbindEditors'](_0x4649b5),_0x4f5f6e&&_0x4d85a9['remove'](_0x4f5f6e),this['_suggestionToController']['delete'](_0x33c6bd),this['_viewToController']['delete'](_0x4649b5),_0x4cf296['destroy']();}['_updateController'](_0x1424dd){if(!_0x1424dd['isInContent']||!this['_suggestionToController']['has'](_0x1424dd))return;const _0x37f827=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e5baa=this['_suggestionToController']['get'](_0x1424dd),_0x488018=_0x1424dd['getAllAdjacentSuggestions']();_0x1e5baa['view']['descriptionParts']=_0x37f827['descriptionFactory']['getDescriptions'](_0x488018);}['destroy'](){for(const _0x275d70 of this['_suggestionToController']['keys']())this['_destroyController'](_0x275d70);for(const _0x36ed0d of this['_annotationViews']['values']())_0x36ed0d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x37d229){return'model'in _0x37d229;}class Fe extends _0xb6c9b9{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4c17bf){this['editor']['plugins']['get'](d)['adapter']=_0x4c17bf;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x3b8b8c){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x3b8b8c);}['getSuggestions']({skipNotAttached:_0x1afd45=!0x1,toJSON:_0x3b4e75=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1afd45,'toJSON':_0x3b4e75});}['getSuggestion'](_0x51424d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x51424d);}}const p=['Pagination'];class re extends _0xb6c9b9{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x147eb8=this['editor'];if(_0x147eb8['config']['define']('trackChangesData.editorCreator',_0x3a7e99=>{const _0x3509d5=_0x147eb8['model']['document']['getRootNames']()['reduce']((_0x2f64bd,_0x3db77a)=>(_0x2f64bd[_0x3db77a]='',_0x2f64bd),{});return _0x147eb8['constructor']['create'](_0x3509d5,_0x3a7e99);}),'function'!=typeof _0x147eb8['config']['get']('trackChangesData')['editorCreator'])throw new _0x318405('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x507833){return P(this['editor'],!0x0,_0x507833);}['getDataWithDiscardedSuggestions'](_0x4f48e7){return P(this['editor'],!0x1,_0x4f48e7);}}class Ge extends _0xb6c9b9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e42f7){function _0x90f640(_0x2ce08d){return _0x2ce08d['map'](_0x597073=>String['fromCharCode'](_0x597073))['join']('');}super(_0x3e42f7),this['result']='end',_0x3e42f7[_0x90f640([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x90f640([0x76,0x69,0x65,0x77])][_0x90f640([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x90f640([0x61,0x75,0x74,0x6f]),_0x3e42f7[_0x90f640([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x90f640([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x90f640([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x90f640([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x90f640([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function $e(_0x262d18){return void 0x0!==_0x262d18['getRootsAttributes'];}async function P(_0x565ea9,_0x3b0aad,_0x58a690){const _0xf8f0b2=_0x43b066(_0x565ea9,p);_0xf8f0b2['plugins']['push'](d,Ge),_0xf8f0b2['rootsAttributes']=$e(_0x565ea9)?_0x565ea9['getRootsAttributes']():void 0x0;const _0x419383=document['createDocumentFragment'](),_0x2a7905=_0x565ea9['config']['get']('trackChangesData')['editorCreator'],_0x4c635b=await _0x2a7905(_0xf8f0b2,()=>function(_0x3c20e2){const _0x1fce61=document['createElement']('div');return _0x3c20e2['appendChild'](_0x1fce61),_0x1fce61;}(_0x419383));!function(_0x5015da,_0x1e60fc){const _0xb5c4d0=_0x5015da['model']['document']['getRootNames']()['reduce']((_0x5e4120,_0x230aa8)=>(_0x5e4120[_0x230aa8]=_0x5015da['data']['get']({'rootName':_0x230aa8}),_0x5e4120),{}),_0x37e0a0=_0x5015da['plugins']['get']('Users')['users']['map'](_0x38dd14=>({'id':_0x38dd14['id'],'name':_0x38dd14['name']})),_0x302e02=_0x5015da['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e6eeb=_0x5015da['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bfa1a=_0x1e60fc['plugins']['get']('Users'),_0x4c205a=_0x1e60fc['plugins']['get']('TrackChangesEditing'),_0x554765=_0x1e60fc['plugins']['get']('CommentsRepository');for(const _0x37242a of _0x554765['getCommentThreads']())_0x37242a['remove']();for(const _0x5158b5 of _0x37e0a0)_0x3bfa1a['getUser'](_0x5158b5['id'])||_0x3bfa1a['addUser'](_0x5158b5);_0x3bfa1a['me']||_0x3bfa1a['useAnonymousUser']();for(const _0x6d3947 of _0x4e6eeb)_0x554765['addCommentThread'](_0x6d3947);for(const _0x41fc49 of _0x302e02)_0x4c205a['addSuggestionData'](_0x41fc49);_0x1e60fc['data']['set'](_0xb5c4d0);}(_0x565ea9,_0x4c635b),_0x4c635b['execute'](_0x3b0aad?'acceptAllSuggestions':'discardAllSuggestions');const _0x5beff6=$e(_0x4c635b)?_0x4c635b['getFullData'](_0x58a690):_0x4c635b['data']['get'](_0x58a690);return await _0x4c635b['destroy'](),_0x5beff6;}class Me extends _0x24bf71{['options'];constructor(_0x223eb3,_0xbc1d47){super(_0x223eb3),this['options']=_0xbc1d47,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'](_0x2f6d21,_0x33df7a){if(!this['element'])return;const _0x4aa6b7=[];for(const [_0x1c20ae,_0x8dfd72]of _0x2f6d21){const _0x2e37a7=document['createElement']('div');_0x2e37a7['setAttribute']('data-ck-root-name',_0x1c20ae),_0x2e37a7['className']=_0x8dfd72['classes']+'\x20ck-track-changes-preview__root-container',_0x2e37a7['innerHTML']=_0x8dfd72['content'],_0x4aa6b7['push'](_0x2e37a7);}_0x33df7a(this['element'],_0x4aa6b7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5cb448{constructor(_0x567efc){super(_0x567efc),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3f6ac0=this['editor'],_0x1a4eee=_0x3f6ac0['locale'],_0x3f88ea=_0x3f6ac0['plugins']['get']('Dialog');let _0x15055c;const _0x1f58d7=function(_0x44aaae){const _0x1c974c={};if('editables'in _0x44aaae['ui']['view']){for(const [_0x1e0add,_0x32e536]of Object['entries'](_0x44aaae['ui']['view']['editables']))_0x1c974c[_0x1e0add]=_0x32e536['element'];}else _0x1c974c[_0x44aaae['model']['document']['getRootNames']()[0x0]]=_0x44aaae['ui']['view']['editable']['element'];return _0x1c974c;}(_0x3f6ac0),_0x2764db=function(_0x371978){let _0x52a244=0x0;for(const _0x10830f of Object['values'](_0x371978))_0x52a244=Math['max'](_0x52a244,_0x10830f['getBoundingClientRect']()['width']);let _0x432996=0x0;for(const _0x86f1e of Object['values'](_0x371978))_0x432996+=_0x86f1e['getBoundingClientRect']()['height'];const _0x16f0d2=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x578555=Math['min'](_0x432996,_0x16f0d2);return{'width':_0x52a244,'height':_0x578555};}(_0x1f58d7);_0x3f88ea['show']({'id':'finalContentPreview','title':o(_0x1a4eee,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1a4eee,{'dialogRects':_0x2764db}),'onHide':()=>{_0x15055c['detachFromDom']();},'onShow':()=>{_0x3f6ac0['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5d669e=>{const _0x38ca9e=this['_standarizeRootsData'](_0x5d669e,_0x3f6ac0,_0x1f58d7);_0x3f88ea['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x38ca9e,_0x3f6ac0['config']['get']('trackChanges.preview.renderFunction'));}),_0x15055c=new _0x680c94(_0x1a4eee,[_0x3f88ea['view']]),_0x15055c['attachToDom'](),_0x15055c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3f6ac0['once']('destroy',()=>{_0x15055c['detachFromDom']();});const _0x46d0ad=_0x3f88ea['view']['headerView']['class'];_0x3f88ea['view']['headerView']['class']=_0x46d0ad?_0x46d0ad+'\x20ck-reset_all':'ck-reset_all',_0x3f88ea['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3f88ea['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x543b99=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x521c94=_0x543b99['previewMode'],_0x53f511={};if('$labels'===_0x521c94){for(const _0x539821 of _0x543b99['getMergeFieldsIds']())_0x53f511[_0x539821]=_0x543b99['getLabel'](_0x539821)||_0x539821;}else{const _0x2c9279='$defaultValues'===_0x521c94?_0x543b99['getDefaultValues']():_0x543b99['getDataSetValues'](_0x521c94,!0x0);for(const _0x2b2fe8 of Object['entries'](_0x2c9279)){const [_0x2ccf61,_0x479732]=_0x2b2fe8;_0x53f511[_0x2ccf61]=null!==_0x479732?_0x479732:_0x543b99['getLabel'](_0x2ccf61)||_0x2ccf61;}}return{'mergeFieldsData':_0x53f511};}['_standarizeRootsData'](_0x37a7f6,_0xd248b8,_0x5d1f07){let _0x171464;if('string'==typeof _0x37a7f6){const _0x546cd5=_0xd248b8['model']['document']['getRootNames']()[0x0];_0x171464={[_0x546cd5]:_0x37a7f6};}else _0x171464=_0x37a7f6;const _0x423342=this['_fixMediaEmbeds'](_0x171464,_0xd248b8),_0x4753e3=function(_0x1fd80f,_0x16cf63){for(const [_0x406e0b,_0x1163a5]of _0x1fd80f)_0x1163a5['classes']=_0x16cf63[_0x406e0b]['classList']['value']['replace']('ck-focused','');return _0x1fd80f;}(this['_sortRoots'](_0xd248b8)['reduce']((_0x325d05,_0x3f7f99)=>(_0x325d05['push']([_0x3f7f99,{'content':_0x423342[_0x3f7f99],'classes':''}]),_0x325d05),[]),_0x5d1f07);return _0x4753e3;}['_fixMediaEmbeds'](_0x4782e5,_0x8d3714){if(!_0x8d3714['plugins']['has']('MediaEmbedEditing'))return _0x4782e5;const _0x16fdb5=_0x8d3714['plugins']['get']('MediaEmbedEditing');for(const [_0xd4b5f8,_0x4fb09a]of Object['entries'](_0x4782e5)){const _0xba8bb0=document['createElement']('div');_0xba8bb0['innerHTML']=_0x4fb09a,(_0xba8bb0['querySelectorAll']('figure.media')['forEach'](_0x456af5=>{const _0x469bd2=_0x456af5['querySelector']('oembed');if(_0x469bd2){const _0x16c7c7=_0x469bd2['getAttribute']('url');if(_0x16c7c7){const _0x48201e=_0x16fdb5['registry']['getMediaViewElement'](new _0x5656c5(_0x8d3714['editing']['view']['document']),_0x16c7c7,{'elementName':'','renderForEditingView':!0x0}),_0x562ccb=document['createElement']('div');_0x562ccb['classList']['add']('ck-media__wrapper'),_0x48201e['render'](_0x562ccb,_0x8d3714['editing']['view']['domConverter']),_0x469bd2['replaceWith'](_0x562ccb);}}}),_0x4782e5[_0xd4b5f8]=_0xba8bb0['innerHTML']);}return _0x4782e5;}['_sortRoots'](_0x419495){if(!function(_0x2c0a70){return void 0x0!==_0x2c0a70['getRootsAttributes'];}(_0x419495))return _0x419495['model']['document']['getRootNames']();const _0x5b75a6=[],_0x555072=new Map();for(const _0x289273 of _0x419495['model']['document']['getRootNames']()){const _0x1ec065=_0x419495['editing']['view']['getDomRoot'](_0x289273)['getClientRects']()['item'](0x0);_0x5b75a6['push'](_0x289273),_0x555072['set'](_0x289273,_0x1ec065);}return _0x5b75a6['sort']((_0x3ead5c,_0x4ac98b)=>{const _0x7ba049=_0x555072['get'](_0x3ead5c),_0xa45fa=_0x555072['get'](_0x4ac98b);return _0x7ba049['y']-_0xa45fa['y']||_0x7ba049['x']-_0xa45fa['x'];}),_0x5b75a6;}}class He extends _0xb6c9b9{static get['requires'](){return[re,_0x4e4e22];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b48ee){super(_0x1b48ee),_0x1b48ee['commands']['add']('previewFinalContent',new te(this['editor'])),_0x1b48ee['config']['define']('trackChanges.preview.renderFunction',(_0x168680,_0x4ccdc1)=>{for(const _0x33b751 of _0x4ccdc1)_0x168680['appendChild'](_0x33b751);});}}export{D as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|
|
23
|
+
import{Command as _0x3ce43f,Plugin as _0x519785,PendingActions as _0x2a689b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5cecf6,ObservableMixin as _0x2f7706,uid as _0x19694d,priorities as _0x57c570,insertToPriorityArray as _0x4f17a4,toArray as _0x2b7eab,logWarning as _0xc05f79,getEnvKeystrokeText as _0x206b69,FocusTracker as _0x513954,KeystrokeHandler as _0x3f6c83,Collection as _0x221f2c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x163398,IconCancel as _0x4dad76,IconTrackChanges as _0x1c1625}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1031d7,View as _0x33a1b7,ViewCollection as _0x2a00df,FocusCycler as _0x3288bf,UIModel as _0x5bd144,createDropdown as _0x2851f4,SplitButtonView as _0x463226,addListToDropdown as _0x50583c,MenuBarMenuView as _0x39293e,MenuBarMenuListView as _0x42ef81,ListSeparatorView as _0x179721,MenuBarMenuListItemView as _0x49d588,MenuBarMenuListItemButtonView as _0x377c54,BodyCollection as _0x31f2fe,Dialog as _0xd32161}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3141dd,hashObject as _0x2d1cfb,surroundingMarkersDetector as _0x927f42,FOCUS_ANNOTATION_KEYSTROKE as _0x48270c,AriaDescriptionView as _0x29e999,setupThreadKeyboardNavigation as _0x4a448c,trimHtml as _0x4c24c5,UserView as _0x10a06d,LateFocusButtonView as _0x57cb20,getDateTimeFormatter as _0xcf14d9,getAllMarkersDomElementsSorted as _0x54ca32,sanitizeEditorConfig as _0x4bb27a}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x860346,ModelLiveRange as _0x45518e,ModelLivePosition as _0x25db75,ViewDowncastWriter as _0xdb61c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x55ab0b,toWidget as _0x7c41fb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x312db7,set as _0x4c330a,isEqual as _0x4e9274,unset as _0x4fb041,omit as Ut}from'es-toolkit/compat';import{Delete as _0x4fa260,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x40d804}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x182772}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x3ce43f{['_enabledCommands'];constructor(_0x41767e,_0x445eb0){super(_0x41767e),this['_enabledCommands']=_0x445eb0,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 _0x2cb803 of this['editor']['commands']['commands']())_0x2cb803['affectsData']&&!this['_enabledCommands']['has'](_0x2cb803)&&_0x2cb803['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2ef945 of this['editor']['commands']['commands']())_0x2ef945['affectsData']&&!this['_enabledCommands']['has'](_0x2ef945)&&_0x2ef945['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x3ce43f{['_suggestions'];constructor(_0x36ebac,_0xbc0c38){super(_0x36ebac),this['_suggestions']=_0xbc0c38,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2720d7){const _0x346190=this['_suggestions']['get'](_0x2720d7);if(!_0x346190)throw new _0x5cecf6('track-changes-accept-suggestion-not-found',this);const _0x32a7a3=_0x346190['getRanges']();this['editor']['model']['canEditAt'](_0x32a7a3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x346190);}}class M extends _0x3ce43f{['_suggestions'];constructor(_0x30c8b5,_0x3e9a3b){super(_0x30c8b5),this['_suggestions']=_0x3e9a3b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5737d2){const _0xa43bda=this['_suggestions']['get'](_0x5737d2);if(!_0xa43bda)throw new _0x5cecf6('track-changes-discard-suggestion-not-found',this);const _0x2df597=_0xa43bda['getRanges']();this['editor']['model']['canEditAt'](_0x2df597)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xa43bda);}}function ls(_0x12e24a,_0x4c28be){let _0x4ded29='';return _0x4ded29+=_0x12e24a['split']('*')['map']((_0x130f75,_0x14dd9b)=>_0x14dd9b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x130f75)+'</span>':Yt(_0x130f75))['join'](''),_0x4c28be&&(_0x4ded29+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4c28be['value']+'\x22\x20title=\x22'+_0x4c28be['title']+'\x22></span>'),_0x4ded29;}function Yt(_0x12d1cb){const _0x14c245=document['createElement']('span');return _0x14c245['innerText']=_0x12d1cb,_0x14c245['innerHTML'];}function ts(_0x2238b5){return _0x2238b5['sort']((_0x2d1949,_0x24e8db)=>'attribute'===_0x2d1949['type']&&'attribute'!==_0x24e8db['type']?-0x1:'attribute'!==_0x2d1949['type']&&'attribute'===_0x24e8db['type']?0x1:'deletion'==_0x2d1949['type']&&'deletion'!=_0x24e8db['type']?-0x1:'deletion'!=_0x2d1949['type']&&'deletion'==_0x24e8db['type']?0x1:0x0);}function to(_0x59bc9c,_0x4df848){let _0x216d59,_0x1a7677=0x0;const _0x3945c9=[],_0x3b490c=_0x4df848['schema'];for(;_0x1a7677<_0x59bc9c['length'];){const _0x15db75=_0x59bc9c[_0x1a7677],_0x13de79=_0x59bc9c[_0x1a7677+0x1];_0x216d59||(_0x216d59=_0x4df848['createPositionBefore'](_0x15db75)),Zt(_0x4df848,_0x15db75,_0x13de79)||(_0x3945c9['push'](_0x4df848['createRange'](_0x216d59,_0x3b490c['isObject'](_0x15db75)?_0x4df848['createPositionAfter'](_0x15db75):_0x4df848['createPositionAt'](_0x15db75,'end'))),_0x216d59=null),_0x1a7677++;}return _0x3945c9;}function Zt(_0x5168e2,_0x4c04ae,_0x87f46b){if(!_0x87f46b)return!0x1;const _0x27ac36=_0x5168e2['createPositionAfter'](_0x4c04ae),_0x3f9089=_0x5168e2['createPositionBefore'](_0x87f46b);return _0x27ac36['isTouching'](_0x3f9089);}function rs(_0xa21ebe,_0x412f1a,_0x13682b){for(;_0x13682b['length'];){const _0xf76c6d=_0x13682b['splice'](0x0,0x64);_0xa21ebe['change'](()=>{for(const _0x6cc76b of _0xf76c6d)_0x6cc76b['isInContent']&&_0x412f1a['execute'](_0x6cc76b['id']);});}}class $ extends _0x3ce43f{['_command'];['_suggestions'];constructor(_0xb46600,_0x292e40,_0x129a59){super(_0xb46600),this['_command']=_0x292e40,this['_suggestions']=_0x129a59,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x27c1a6=Array['from'](this['_suggestions']['values']())['some'](_0x1d4378=>_0x1d4378['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x27c1a6;}['execute'](){const _0x5c69af=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1d7857 of _0x5c69af){const _0x428b7b=_0x1d7857['getRanges']();if(!this['editor']['model']['canEditAt'](_0x428b7b))return;}rs(this['editor']['model'],this['_command'],_0x5c69af);}}class B extends _0x3ce43f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2ef9c2,_0x434b62,_0x2c3b52){super(_0x2ef9c2),this['_command']=_0x434b62,this['_suggestions']=_0x2c3b52,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a5c6b=this['editor']['model']['document']['selection'],_0x25cd95=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x45cfde,_0x1f36a3){const _0x35e48b=Array['from'](_0x45cfde['getRanges']()),_0x283870=new Set();for(const _0x252886 of _0x1f36a3)if(_0x252886['isInContent']){for(const _0x5ad2ac of _0x35e48b)for(const _0x3af341 of _0x252886['getRanges']())(_0x5ad2ac['isIntersecting'](_0x3af341)||_0x45cfde['isCollapsed']&&!_0x252886['isMultiRange']&&_0x252886['next']&&_0x3af341['end']['isTouching'](_0x5ad2ac['start']))&&_0x283870['add'](_0x252886);}return _0x283870;}(_0x3a5c6b,_0x25cd95),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xfdef7b=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1896d4 of _0xfdef7b){const _0x2f3b63=_0x1896d4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2f3b63))return;}rs(this['editor']['model'],this['_command'],_0xfdef7b);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2f7706(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x29bf81,_0x56461b){super(),this['id']=_0x56461b['id'],this['type']=_0x56461b['type'],this['subType']=_0x56461b['subType']||null,this['author']=_0x56461b['author'],this['creator']=_0x56461b['creator']||_0x56461b['author'],this['isExternal']=Boolean(_0x56461b['attributes']&&_0x56461b['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x56461b['originalSuggestionId']||null,this['_model']=_0x29bf81,this['_onAccept']=_0x56461b['onAccept'],this['_onDiscard']=_0x56461b['onDiscard'],this['_onAttributesChange']=_0x56461b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x56461b['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0xbccb9e=this;for(;_0xbccb9e['previous'];)_0xbccb9e=_0xbccb9e['previous'];return _0xbccb9e;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x4393bd){this['_markerNames']['add'](_0x4393bd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x18a49b=>this['_model']['markers']['get'](_0x18a49b))['filter'](_0x449195=>_0x449195);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x392fe1=>{for(const _0x43bad8 of this['getMarkers']())_0x392fe1['removeMarker'](_0x43bad8);}),this['_markerNames']['clear']();}['removeMarker'](_0x32a6f4){this['_model']['change'](_0x4a4de9=>{_0x4a4de9['removeMarker'](_0x32a6f4);}),this['_markerNames']['delete'](_0x32a6f4);}['addRange'](_0x4230ce){const _0xc1f881='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0xc1f881),this['_model']['change'](_0x5858cc=>{_0x5858cc['addMarker'](_0xc1f881,{'range':_0x4230ce,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2ade33){for(const _0x49c558 of this['getRanges']())if(_0x49c558['isIntersecting'](_0x2ade33))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x228bd5=>_0x228bd5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x31e54d,_0x53f843)=>[..._0x31e54d,..._0x53f843['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x59d60e=this['getRanges']();if(0x1!=_0x59d60e['length'])return null;const _0x51d9ea=_0x59d60e[0x0],_0x1b1510=_0x51d9ea['start']['nodeAfter'],_0x1d517b=_0x51d9ea['end']['nodeBefore'];return _0x1b1510 instanceof _0x860346?_0x1b1510!=_0x1d517b?null:_0x1b1510: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 _0x2c54c7=[];let _0x1c3e6b=this['head'];for(;_0x1c3e6b;)_0x2c54c7['push'](_0x1c3e6b),_0x1c3e6b=_0x1c3e6b['next'];return _0x2c54c7;}['setAttribute'](_0x39205c,_0x49f045){const _0x30d301=_0x312db7(this['attributes']);_0x4c330a(_0x30d301,_0x39205c,_0x49f045),_0x4e9274(_0x30d301,this['attributes'])||(this['attributes']=_0x30d301,this['_onAttributesChange'](_0x30d301));}['removeAttribute'](_0x2c816f){const _0xae6787=_0x312db7(this['attributes']);_0x4fb041(_0xae6787,_0x2c816f),_0x4e9274(_0xae6787,this['attributes'])||(this['attributes']=_0xae6787,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 _0x19694d()['substr'](0x1,0x5);}}function o(_0x3b3092,_0x5e513a,_0x44076a){const _0x764012=_0x3b3092['t'],t=_0x3b3092['t'];switch(_0x5e513a){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',_0x44076a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44076a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44076a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44076a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44076a);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',_0x44076a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44076a);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',_0x44076a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44076a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44076a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44076a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44076a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44076a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x44076a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44076a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44076a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44076a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44076a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44076a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44076a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44076a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44076a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44076a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44076a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x44076a);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'},_0x44076a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x44076a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x44076a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44076a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44076a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44076a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44076a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44076a);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x44076a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44076a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44076a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44076a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44076a);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x44076a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44076a);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'},_0x44076a);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'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'},_0x44076a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44076a);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'},_0x44076a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44076a);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'},_0x44076a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44076a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44076a);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'},_0x44076a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x44076a);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x764012({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x44076a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x764012({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x44076a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x44076a);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'},_0x44076a);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'},_0x44076a);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'},_0x44076a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5e513a;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5e03bb,_0x4c720b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5e03bb,this['_locale']=_0x4c720b;}['getDescriptions'](_0x46b769){const _0x3319a9=[],_0x4f49db=new Set(),_0x140f6e=new Set();for(let _0x2e64aa=0x0;_0x2e64aa<_0x46b769['length'];_0x2e64aa++){const _0x3e126d=_0x46b769[_0x2e64aa];if(!_0x3e126d['isInContent'])continue;const _0x11dda0=this['_handleCustomCallbackDescription'](_0x3e126d);if(_0x11dda0){if(null!=_0x3e126d['subType']){if(_0x4f49db['has'](_0x3e126d['subType']))continue;_0x4f49db['add'](_0x3e126d['subType']);}_0x3319a9['push'](_0x11dda0);}else{if('attribute'==_0x3e126d['type']){const _0x44af48=_0x3e126d['data']['key'];if(_0x140f6e['has'](_0x44af48))continue;_0x140f6e['add'](_0x3e126d['data']['key']),_0x44af48==m?this['_handleRenameSuggestionDescription'](_0x3319a9,_0x3e126d):this['_handleAttributeSuggestionDescription'](_0x3319a9,_0x3e126d);continue;}'insertion'!=_0x3e126d['type']&&'deletion'!=_0x3e126d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3319a9,_0x3e126d,_0x46b769[_0x2e64aa+0x1]);}}return this['_resolveDescriptionItems'](_0x3319a9);}['registerDescriptionCallback'](_0x33aae3){this['_customCallbacks']['push'](_0x33aae3);}['registerElementLabel'](_0x1689cc,_0x1d3679,_0x406842=_0x57c570['normal']){'function'==typeof _0x1689cc?_0x4f17a4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1689cc,'label':_0x1d3679,'priority':_0x406842}):this['_itemLabels']['set'](_0x1689cc,_0x1d3679);}['registerAttributeLabel'](_0x1d0dbf,_0x3993bb){this['_attributeLabels']['set'](_0x1d0dbf,_0x3993bb);}['getItemLabel'](_0x21de2d,_0x58e014=0x1){let _0x4a4cae;for(const _0x2150cc of this['_itemLabelsCallbacks'])if(_0x2150cc['matchingCallback'](_0x21de2d)){_0x4a4cae=_0x2150cc['label'];break;}return _0x4a4cae||(_0x4a4cae=this['_itemLabels']['get'](_0x21de2d['name'])),_0x4a4cae?_0x4a4cae(_0x58e014):0x1!==_0x58e014?_0x58e014+'\x20'+_0x21de2d['name']+'s':''+_0x21de2d['name'];}['_addDescriptionItems'](_0x557c7b,_0x4b529d){const _0x2a636b=_0x4b529d['getFirstRange']()['getWalker'](),_0x39e5ce='insertion'==_0x4b529d['type']?'add':'remove';for(const _0x51611a of _0x2a636b){const _0x22d113=_0x51611a['item'],_0x3e303e=_0x557c7b[_0x557c7b['length']-0x1];if(_0x22d113['is']('$textProxy'))_0x3e303e&&_0x3e303e['type']['indexOf']('Container')>-0x1&&_0x557c7b['pop'](),_0x3e303e&&'text'==_0x3e303e['type']?_0x3e303e[_0x39e5ce]+=_0x22d113['data']:_0x557c7b['push']({'type':'text','add':'add'==_0x39e5ce?_0x22d113['data']:'','remove':'remove'==_0x39e5ce?_0x22d113['data']:''});else{if(this['_schema']['isObject'](_0x22d113)){const _0x5e1c5d=_0x22d113;if(_0x3e303e&&_0x3e303e['type']['indexOf']('Container')>-0x1&&_0x557c7b['pop'](),'elementEnd'==_0x51611a['type'])continue;_0x3e303e&&_0x3e303e['type']==_0x39e5ce+'Object'&&_0x3e303e['element']['name']==_0x5e1c5d['name']?_0x3e303e['quantity']++:_0x557c7b['push']({'type':_0x39e5ce+'Object','element':_0x5e1c5d,'quantity':0x1}),_0x2a636b['skip'](_0x4d6a20=>!('elementEnd'==_0x4d6a20['type']&&_0x4d6a20['item']==_0x22d113));}else{if(this['_schema']['checkChild'](_0x22d113,'$text')||_0x22d113['is']('element','softBreak')){const _0x108aad=_0x22d113;if('add'==_0x39e5ce&&'elementStart'==_0x51611a['type']||'remove'==_0x39e5ce&&'elementEnd'==_0x51611a['type'])continue;if(_0x3e303e&&-0x1==_0x3e303e['type']['indexOf']('Container')){'text'==_0x3e303e['type']&&(_0x3e303e[_0x39e5ce]+='\x0a');continue;}let _0x27ce1b;if(_0x27ce1b='add'==_0x39e5ce?_0x108aad['nextSibling']&&!this['_schema']['isObject'](_0x108aad['nextSibling'])?_0x108aad['nextSibling']:null:_0x108aad['previousSibling']&&!this['_schema']['isObject'](_0x108aad['previousSibling'])?_0x108aad['previousSibling']:null,_0x108aad['isEmpty']||_0x27ce1b&&_0x27ce1b['isEmpty']){const _0x35f305=_0x27ce1b&&_0x27ce1b['isEmpty']?_0x27ce1b:_0x108aad;_0x3e303e&&_0x3e303e['type']==_0x39e5ce+'EmptyContainer'&&_0x3e303e['element']['name']==_0x35f305['name']?_0x3e303e['quantity']++:_0x557c7b['push']({'type':_0x39e5ce+'EmptyContainer','element':_0x35f305,'quantity':0x1});}else _0x557c7b['push']({'type':_0x39e5ce+'Container','element':_0x108aad});}}}}}['_resolveDescriptionItems'](_0x1a67d0){const _0x93cd02=this['_locale'],_0x4fdc83=[],_0x141e61=[],_0x3123cb=[];for(const _0x59df5f of _0x1a67d0)switch(_0x59df5f['type']){case'text':if(_0x59df5f['add']=_0x59df5f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x59df5f['remove']=_0x59df5f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x59df5f['add']&&''!=_0x59df5f['remove']){_0x4fdc83['push']({'type':'replace','content':o(_0x93cd02,'REPLACE_TEXT',['\x22'+_0x59df5f['remove']+'\x22','\x22'+_0x59df5f['add']+'\x22'])});continue;}if(null!=_0x59df5f['add']['match'](/^ +$/)){_0x4fdc83['push']({'type':'insertion','content':o(_0x93cd02,'*Insert:*\x20%0',o(_0x93cd02,'ELEMENT_SPACE',_0x59df5f['add']['length']))});continue;}if(null!=_0x59df5f['remove']['match'](/^ +$/)){_0x4fdc83['push']({'type':'deletion','content':o(_0x93cd02,'*Remove:*\x20%0',o(_0x93cd02,'ELEMENT_SPACE',_0x59df5f['remove']['length']))});continue;}if(''!=_0x59df5f['add']){_0x4fdc83['push']({'type':'insertion','content':o(_0x93cd02,'*Insert:*\x20%0','\x22'+_0x59df5f['add']+'\x22')});continue;}_0x4fdc83['push']({'type':'deletion','content':o(_0x93cd02,'*Remove:*\x20%0','\x22'+_0x59df5f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4fdc83['push']({'type':'insertion','content':o(_0x93cd02,'*Insert:*\x20%0',this['getItemLabel'](_0x59df5f['element'],_0x59df5f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4fdc83['push']({'type':'deletion','content':o(_0x93cd02,'*Remove:*\x20%0',this['getItemLabel'](_0x59df5f['element'],_0x59df5f['quantity']))});continue;case'addContainer':_0x4fdc83['push']({'type':'insertion','content':o(_0x93cd02,'*Split:*\x20%0',this['getItemLabel'](_0x59df5f['element'],_0x59df5f['quantity']))});continue;case'removeContainer':_0x4fdc83['push']({'type':'deletion','content':o(_0x93cd02,'*Merge:*\x20%0',this['getItemLabel'](_0x59df5f['element'],_0x59df5f['quantity']))});continue;case'addFormat':_0x141e61['push'](_0x59df5f['key']);continue;case'removeFormat':_0x3123cb['push'](_0x59df5f['key']);continue;default:_0x4fdc83['push'](_0x59df5f);}if(_0x141e61['length']){const _0x437841=_0x141e61['map'](_0x192735=>this['_attributeLabels']['has'](_0x192735)?this['_attributeLabels']['get'](_0x192735):_0x192735)['join'](',\x20');_0x4fdc83['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x437841)});}if(_0x3123cb['length']){const _0x590250=_0x3123cb['map'](_0x4be660=>this['_attributeLabels']['has'](_0x4be660)?this['_attributeLabels']['get'](_0x4be660):_0x4be660)['join'](',\x20');_0x4fdc83['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x590250)});}return _0x4fdc83;}['_handleCustomCallbackDescription'](_0x248d1c){for(const _0xc3257f of this['_customCallbacks']){const _0x1ec93b=_0xc3257f(_0x248d1c);if(_0x1ec93b&&'type'in _0x1ec93b)return _0x1ec93b;}}['_handleAttributeSuggestionDescription'](_0x2162b9,_0x6f61c5){const _0x5b5d10=_0x6f61c5['data'],_0x41bc26=void 0x0===_0x5b5d10['newValue']?'removeFormat':'addFormat';_0x2162b9['push']({'type':_0x41bc26,'key':_0x5b5d10['key']});}['_handleRenameSuggestionDescription'](_0x28e60f,_0x4053bf){_0x28e60f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4053bf['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5db3e0,_0x4e43fb,_0x24af62){if(this['_addDescriptionItems'](_0x5db3e0,_0x4e43fb),_0x24af62&&_0x24af62['getFirstRange']()&&!_0x4e43fb['getFirstRange']()['end']['isEqual'](_0x24af62['getFirstRange']()['start'])){const _0x45e573=_0x5db3e0[_0x5db3e0['length']-0x1],_0x4a9ee5='insertion'==_0x4e43fb['type']?'add':'remove';_0x45e573&&'text'==_0x45e573['type']&&(_0x45e573[_0x4a9ee5]+='\x0a');}}}class O extends _0x519785{['afterInit'](){const _0xa91d19=this['editor'],_0x246bce=_0xa91d19['plugins']['get']('TrackChangesEditing');_0xa91d19['commands']['get']('showAIAssistant')&&_0x246bce['enableCommand']('showAIAssistant');}}class E extends _0x519785{['afterInit'](){const _0x4d2580=this['editor'],_0x487f47=_0x4d2580['locale'];if(!_0x4d2580['plugins']['has']('AlignmentEditing'))return;const _0x29c737=_0x4d2580['plugins']['get']('TrackChangesEditing');_0x29c737['enableDefaultAttributesIntegration']('alignment'),_0x29c737['registerBlockAttribute']('alignment'),_0x29c737['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x487f47,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b7eb0=this['editor'],_0x41e2b8=_0x1b7eb0['locale'];_0x1b7eb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48378b=>{if('formatBlock'!=_0x48378b['type'])return;const {data:_0x5504e1}=_0x48378b;if(_0x5504e1&&'alignment'==_0x5504e1['commandName']){const _0x9b0077=_0x5504e1['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x41e2b8,'*Format:*\x20%0',function(_0x193845){switch(_0x193845){case'left':return o(_0x41e2b8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x41e2b8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x41e2b8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x41e2b8,'FORMAT_JUSTIFY_TEXT');}}(_0x9b0077))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x519785{['afterInit'](){const _0x56cfe6=this['editor'],_0x814f44=_0x56cfe6['plugins']['get']('TrackChangesEditing'),_0x1b9ef5=_0x56cfe6['locale'];for(const _0x38b772 of ti){if(!_0x56cfe6['plugins']['has'](_0x38b772))continue;const _0x5dbd4f=_0x38b772['slice'](0x0,-0x7)['toLowerCase'](),_0x3cdfa5='FORMAT_'+_0x5dbd4f['toUpperCase']();_0x814f44['enableDefaultAttributesIntegration'](_0x5dbd4f),_0x814f44['registerInlineAttribute'](_0x5dbd4f),_0x814f44['descriptionFactory']['registerAttributeLabel'](_0x5dbd4f,o(_0x1b9ef5,_0x3cdfa5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb30c6e=this['editor'],_0x5ddd8a=_0xb30c6e['locale'],_0x1ab4a4=_0xb30c6e['plugins']['get']('TrackChangesEditing');function _0x1e857e(_0xedabf9,_0x205649){_0x1ab4a4['descriptionFactory']['registerDescriptionCallback'](_0x1dd405=>{if('formatInline'!=_0x1dd405['type'])return;const {data:_0x5e41c6}=_0x1dd405;return _0x5e41c6&&_0x5e41c6['commandName']===_0xedabf9?_0x5e41c6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ddd8a,'*Format:*\x20%0',_0x205649)}:{'type':'format','content':o(_0x5ddd8a,'*Remove\x20format:*\x20%0',_0x205649)}:void 0x0;});}_0x1e857e('bold',o(_0x5ddd8a,'FORMAT_BOLD')),_0x1e857e('italic',o(_0x5ddd8a,'FORMAT_ITALIC')),_0x1e857e('underline',o(_0x5ddd8a,'FORMAT_UNDERLINE')),_0x1e857e('code',o(_0x5ddd8a,'FORMAT_CODE')),_0x1e857e('strikethrough',o(_0x5ddd8a,'FORMAT_STRIKETHROUGH')),_0x1e857e('subscript',o(_0x5ddd8a,'FORMAT_SUBSCRIPT')),_0x1e857e('superscript',o(_0x5ddd8a,'FORMAT_SUPERSCRIPT'));}}class U extends _0x519785{['afterInit'](){const _0x3a01e0=this['editor'],_0x10d443=_0x3a01e0['locale'];if(!_0x3a01e0['plugins']['has']('BlockQuoteEditing'))return;const _0x37d660=_0x3a01e0['plugins']['get']('TrackChangesEditing'),_0x571ae1=this['editor']['commands']['get']('blockQuote');_0x37d660['enableCommand']('blockQuote',(_0x1d88fa,_0x1b7122={})=>{const _0x1252af=this['editor']['model']['document']['selection'],_0x1d1309=_0x1b7122&&void 0x0!==_0x1b7122['forceValue']?_0x1b7122['forceValue']:!_0x571ae1['value'];let _0x5f45ce=[];if(_0x1d1309){const _0x4c8752=Array['from'](_0x1252af['getSelectedBlocks']())['filter'](_0x4e39b9=>oo(_0x4e39b9)||function(_0x4792c1,_0x288996){const _0x539ccc=_0x288996['checkChild'](_0x4792c1['parent'],'blockQuote'),_0x38929a=_0x288996['checkChild'](['$root','blockQuote'],_0x4792c1);return _0x539ccc&&_0x38929a;}(_0x4e39b9,this['editor']['model']['schema']));_0x5f45ce=to(_0x4c8752,_0x3a01e0['model']);}else{const _0x2344b3=Array['from'](_0x1252af['getSelectedBlocks']())['filter'](_0x554a4e=>oo(_0x554a4e));_0x5f45ce=to(_0x2344b3,_0x3a01e0['model']);}_0x3a01e0['model']['change'](()=>{for(const _0xd503b8 of _0x5f45ce)_0x37d660['markBlockFormat'](_0xd503b8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d1309}]});});}),_0x37d660['descriptionFactory']['registerDescriptionCallback'](_0x4019cf=>{const {data:_0x119d43}=_0x4019cf;if(_0x119d43&&'blockQuote'==_0x119d43['commandName']){const _0x2b3c7d=o(_0x10d443,'ELEMENT_BLOCK_QUOTE');return _0x119d43['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10d443,'*Set\x20format:*\x20%0',_0x2b3c7d)}:{'type':'format','content':o(_0x10d443,'*Remove\x20format:*\x20%0',_0x2b3c7d)};}});}}function oo(_0x5394aa){return'blockQuote'==_0x5394aa['parent']['name'];}class V extends _0x519785{['afterInit'](){const _0xc7adbe=this['editor'],_0x91b7d=_0xc7adbe['locale'],_0x106a70=_0xc7adbe['plugins']['get']('TrackChangesEditing');_0xc7adbe['plugins']['has']('BookmarkEditing')&&(_0x106a70['enableCommand']('insertBookmark'),_0x106a70['enableDefaultAttributesIntegration']('updateBookmark'),_0x106a70['registerBlockAttribute']('bookmarkId'),_0x106a70['descriptionFactory']['registerDescriptionCallback'](_0x1a96e6=>{if('insertion'!=_0x1a96e6['type']&&'deletion'!=_0x1a96e6['type']&&'attribute'!=_0x1a96e6['type'])return;const _0x4d469d=_0x1a96e6['getContainedElement']();if(null==_0x4d469d)return;if(!_0x4d469d['is']('element','bookmark'))return;const _0x35ce6c=_0x4d469d['getAttribute']('bookmarkId');if('insertion'==_0x1a96e6['type'])return{'type':'insertion','content':o(_0x91b7d,'*Insert:*\x20%0','\x22'+_0x35ce6c+'\x22\x20'+o(_0x91b7d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1a96e6['type'])return{'type':'deletion','content':o(_0x91b7d,'*Remove:*\x20%0','\x22'+_0x35ce6c+'\x22\x20'+o(_0x91b7d,'ELEMENT_BOOKMARK'))};const {data:_0xdb3503}=_0x1a96e6;if(!_0xdb3503||'bookmarkId'!=_0xdb3503['key'])return;return{'type':'format','content':o(_0x91b7d,'*Set\x20bookmark:*\x20%0','\x22'+_0xdb3503['newValue']+'\x22')};}));}}class F extends _0x519785{['afterInit'](){const _0x516401=this['editor'];_0x516401['plugins']['has']('CaseChange')&&(_0x516401['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x516401['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x516401['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x519785{['afterInit'](){const _0x2c07e8=this['editor'];_0x2c07e8['commands']['get']('ckbox')&&_0x2c07e8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x519785{['afterInit'](){const _0x1d1947=this['editor'];if(!_0x1d1947['plugins']['has']('CodeBlock'))return;const _0x4c81c2=_0x1d1947['plugins']['get']('TrackChangesEditing'),_0x4246f8=_0x1d1947['locale'],_0x5f4d25=_0x1d1947['config']['get']('codeBlock')['languages'],_0x34d984=_0x1d1947['commands']['get']('codeBlock');_0x4c81c2['enableCommand']('indentCodeBlock'),_0x4c81c2['enableCommand']('outdentCodeBlock'),_0x4c81c2['enableCommand']('codeBlock',(_0x12f51e,_0x5c9766={})=>{const _0x4b2780=_0x1d1947['model'],_0x40719c=_0x1d1947['model']['document']['selection'],_0x170c65=_0x5c9766&&void 0x0!==_0x5c9766['forceValue']?_0x5c9766['forceValue']:!_0x34d984['value'];let _0x13dd31;_0x5c9766['language']||(_0x5c9766['language']=_0x5f4d25[0x0]['language']),_0x13dd31=_0x170c65?Array['from'](_0x40719c['getSelectedBlocks']())['filter'](_0x380f8d=>co(_0x380f8d)||function(_0x487379,_0x29937f){if(_0x487379['is']('rootElement')||_0x29937f['isLimit'](_0x487379))return!0x1;return _0x29937f['checkChild'](_0x487379['parent'],'codeBlock');}(_0x380f8d,_0x4b2780['schema'])):Array['from'](_0x40719c['getSelectedBlocks']())['filter'](_0x2fc277=>co(_0x2fc277));const _0x6266f6=to(_0x13dd31,_0x4b2780);_0x4b2780['change'](()=>{for(const _0x876f7a of _0x6266f6)_0x4c81c2['markBlockFormat'](_0x876f7a,{'commandName':'codeBlock','commandParams':[{..._0x5c9766,'forceValue':_0x170c65}],'formatGroupId':'blockName'});});}),(_0x4c81c2['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a4a08=>o(_0x4246f8,'ELEMENT_CODE_BLOCK',_0x2a4a08)),_0x4c81c2['descriptionFactory']['registerDescriptionCallback'](_0x5c371e=>{if('formatBlock'!=_0x5c371e['type'])return;const _0x5ad699=_0x4246f8['t'],{data:_0x1c5945}=_0x5c371e;if(!_0x1c5945||'codeBlock'!=_0x1c5945['commandName'])return;const _0x5400d2=_0x1c5945['commandParams'][0x0]['language'],_0x4609b0=_0x5ad699(_0x5f4d25['find'](_0x33b44a=>_0x33b44a['language']===_0x5400d2)['label'])['toLowerCase']();return _0x1c5945['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4246f8,'*Set\x20format:*\x20%0',o(_0x4246f8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4609b0+')')}:{'type':'format','content':o(_0x4246f8,'*Remove\x20format:*\x20%0',o(_0x4246f8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1be7c7){return'codeBlock'==_0x1be7c7['name'];}class J extends _0x519785{['afterInit'](){const _0x4914bf=this['editor'];if(!_0x4914bf['plugins']['has']('CommentsEditing'))return;_0x4914bf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1adff7,_0x462c25,_0x265931){const _0x34018f=[];for(const _0x2d076b of _0x462c25['getItems']())_0x2d076b['hasAttribute'](_0x1adff7)&&_0x34018f['push'](_0x265931['createRangeOn'](_0x2d076b));return _0x34018f;}function De(_0xf92b35,_0x32fefd,{showActiveMarker:_0x3a88be=!0x0}={}){const _0x5ed093=_0xf92b35['plugins']['get']('TrackChangesEditing');return(_0x26a337,_0x131e13,_0x447f32)=>{if(!_0x447f32['consumable']['test'](_0x131e13['markerRange'],_0x26a337['name']))return;const _0x421203=_0x131e13['markerRange']['getWalker'](),_0x1f4669=_0x131e13['markerRange']['start'],_0x2f7f32=_0xf92b35['model']['schema'];let _0x56f34e=null,_0x2f3d52=null,_0x489361=!0x1,_0x1aec76=!0x1;for(const _0x5d336d of _0x421203){const _0x3c15a4=_0x5d336d['item'];_0x489361=_0x489361||_0x2f7f32['isContent'](_0x3c15a4);const _0x17f323=_0x447f32['mapper']['toViewElement'](_0x3c15a4);if(_0x17f323&&_0x17f323['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5d336d['type']&&(_0x2f7f32['isBlock'](_0x3c15a4)&&!_0x2f7f32['isLimit'](_0x3c15a4)&&(_0x3c15a4['nextSibling']||_0x1f4669['isAtEnd']?_0x56f34e&&_0x56f34e['parent']==_0x3c15a4||(_0x56f34e=_0x3c15a4,_0x42f314(_0x5d336d['previousPosition']),_0x1aec76=!0x0):_0x2f3d52=_0x2f3d52||_0x5d336d['previousPosition']));}function _0x42f314(_0x2d2293){const {id:_0x52d15e,authorId:_0x2e4372}=_0x5ed093['_splitMarkerName'](_0x131e13['markerName']),_0x3cd1b3=_0x447f32['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x32fefd,'data-suggestion':_0x52d15e,'data-author-id':_0x2e4372}),_0x1347e4=_0x447f32['mapper']['toViewPosition'](_0x2d2293);_0x3a88be&&_0x5ed093['activeMarkers']['includes'](_0x131e13['markerName'])&&_0x447f32['writer']['addClass']('ck-suggestion-marker--active',_0x3cd1b3),_0x447f32['writer']['insert'](_0x1347e4,_0x3cd1b3),_0x447f32['mapper']['bindElementToMarker'](_0x3cd1b3,_0x131e13['markerName']);}_0x489361||_0x1aec76||!_0x2f3d52||_0x42f314(_0x2f3d52);};}class K extends _0x519785{static get['requires'](){return[_0x4fa260];}['init'](){const _0xfaf328=this['editor'],_0x3444ed=_0xfaf328['plugins']['get']('TrackChangesEditing');_0x3444ed['enableCommand']('delete');const _0x185ca5=_0xfaf328['commands']['get']('deleteForward');_0x3444ed['enableCommand']('deleteForward',(_0x46a6fa,_0x26c2a6={})=>{const _0x9cccfd=_0xfaf328['model']['createSelection'](_0xfaf328['model']['document']['selection']);_0x9cccfd['isCollapsed']&&_0xfaf328['model']['modifySelection'](_0x9cccfd,{'direction':'forward','unit':_0x26c2a6['unit']});const _0x5bb70d=_0x9cccfd['getFirstRange'](),_0x803beb=_0x45518e['fromRange'](_0x5bb70d);let _0x3a150a;_0x46a6fa(_0x26c2a6),_0x3a150a='$graveyard'==_0x803beb['root']['rootName']?_0xfaf328['model']['createRange'](_0x5bb70d['start']):_0xfaf328['model']['createRange'](_0x803beb['start'],_0x803beb['end']),_0x803beb['detach'](),_0xfaf328['model']['enqueueChange'](_0x185ca5['buffer']['batch'],_0x31e13e=>{_0x185ca5['buffer']['lock'](),_0x31e13e['setSelection'](_0x31e13e['createRange'](_0x3a150a['end'])),_0x185ca5['buffer']['unlock']();});}),_0xfaf328['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xfaf328,'merge'),{'priority':'high'}),_0xfaf328['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x22a21c,_0x2f3f88,_0x5c2956)=>{_0x5c2956['options']['showSuggestionHighlights']&&De(_0xfaf328,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x22a21c,_0x2f3f88,_0x5c2956);},{'priority':'high'}),_0xfaf328['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5a2404,_0x46426b,_0xace863)=>{const _0x1e5cd8=_0xace863['mapper']['markerNameToElements'](_0x46426b['markerName']);if(_0x1e5cd8){for(const _0x4ce462 of _0x1e5cd8)_0x4ce462['is']('uiElement')&&(_0xace863['mapper']['unbindElementFromMarkerName'](_0x4ce462,_0x46426b['markerName']),_0xace863['writer']['remove'](_0x4ce462));}},{'priority':'high'});}}class H extends _0x519785{['afterInit'](){const _0x29800a=this['editor'];if(!_0x29800a['plugins']['has']('ListEditing'))return;const _0x4bae8a=_0x29800a['locale'],_0x5a7e7e=_0x29800a['plugins']['get']('TrackChangesEditing'),_0x5dff26=_0x29800a['plugins']['has']('TodoListEditing'),_0xaad7af=!!_0x29800a['config']['get']('list.multiBlock');function _0x4e9798(_0x1c757d){return{'type':'format','content':''+o(_0x4bae8a,'*Set\x20format:*\x20%0',_0x1c757d)};}function _0x2558c2(_0x5e0471){return{'type':'format','content':''+o(_0x4bae8a,'*Remove\x20format:*\x20%0',_0x5e0471)};}_0x5a7e7e['enableDefaultAttributesIntegration']('numberedList'),_0x5a7e7e['enableDefaultAttributesIntegration']('bulletedList'),_0x5a7e7e['enableDefaultAttributesIntegration']('customNumberedList'),_0x5a7e7e['enableDefaultAttributesIntegration']('customBulletedList'),_0x5a7e7e['enableDefaultAttributesIntegration']('indentList'),_0x5a7e7e['enableDefaultAttributesIntegration']('outdentList'),_0x5a7e7e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5a7e7e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5a7e7e['registerBlockAttribute']('listItemId'),_0x5a7e7e['registerBlockAttribute']('listType'),_0x5a7e7e['registerBlockAttribute']('listIndent'),_0xaad7af&&(_0x5a7e7e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5a7e7e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5dff26&&(_0x5a7e7e['enableDefaultAttributesIntegration']('todoList'),_0x5a7e7e['enableDefaultAttributesIntegration']('checkTodoList'),_0x5a7e7e['registerBlockAttribute']('todoListChecked'),_0x5a7e7e['descriptionFactory']['registerDescriptionCallback'](_0x3bbb7=>{const {data:_0x4809a0}=_0x3bbb7;if(_0x4809a0&&'todoListChecked'==_0x4809a0['key'])return{'type':'format','content':_0x4809a0['newValue']?o(_0x4bae8a,'*Check\x20item*'):o(_0x4bae8a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2de1b5=>{if(_0x2de1b5['batch']['isUndo'])return!0x1;let _0x337b8c=!0x1;const _0x2e0f1d=_0x5a7e7e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a4fd8=>'todoListChecked'===_0x5a7e7e['_getAttributeKey'](_0x4a4fd8));for(const _0x4c726e of _0x2e0f1d){'todo'!=_0x4c726e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5a7e7e['_findSuggestions'](_0x4c726e['getFirstRange'](),'attribute')['find'](_0x2e8de2=>'listType'===_0x5a7e7e['_getAttributeKey'](_0x2e8de2['suggestion']))||(_0x2de1b5['removeMarker'](_0x4c726e['getFirstMarker']()),_0x337b8c=!0x0));}return _0x337b8c;})),_0x5a7e7e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4bae8a,'FORMAT_INDENT'));const _0x490862={'type':'format','content':''};_0x5a7e7e['descriptionFactory']['registerDescriptionCallback'](_0x2adae5=>{const {data:_0x2b15e4}=_0x2adae5;if(!_0x2b15e4||'listType'!=_0x2b15e4['key'])return;let _0x3416c3=_0x2adae5['head'];for(;_0x3416c3;){if(_0x3416c3['data']&&(('listStyle'==_0x3416c3['data']['key']||'listMarkerStyle'==_0x3416c3['data']['key'])&&(_0x3416c3['data']['newValue']&&'default'!=_0x3416c3['data']['newValue']||'default'!=_0x3416c3['data']['oldValue']&&!_0x2b15e4['newValue'])||!_0xaad7af&&_0x3416c3['data']['key']==m))return _0x490862;_0x3416c3=_0x3416c3['next'];}if(null==_0x2b15e4['newValue'])switch(_0x2b15e4['oldValue']){case'bulleted':return _0x2558c2(o(_0x4bae8a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2558c2(o(_0x4bae8a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2558c2(o(_0x4bae8a,'ELEMENT_TODO_LIST'));}switch(_0x2b15e4['newValue']){case'bulleted':return _0x4e9798(o(_0x4bae8a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e9798(o(_0x4bae8a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e9798(o(_0x4bae8a,'ELEMENT_TODO_LIST'));}}),_0x5a7e7e['descriptionFactory']['registerDescriptionCallback'](_0x51dec2=>{const {data:_0x54bfc5}=_0x51dec2;if(_0x54bfc5&&'listIndent'==_0x54bfc5['key'])return null==_0x54bfc5['newValue']||null==_0x54bfc5['oldValue']&&0x0==_0x54bfc5['newValue']?_0x490862:void 0x0;}),_0x5a7e7e['descriptionFactory']['registerDescriptionCallback'](_0x17ca5a=>{if('attribute'!=_0x17ca5a['type'])return;const {data:_0x4b3729}=_0x17ca5a;if(!_0x4b3729||'listItemId'!=_0x4b3729['key'])return;const _0x55fa58=Te(_0x17ca5a);return'newValue'==_0x55fa58?{'type':'format','content':o(_0x4bae8a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x55fa58?{'type':'format','content':o(_0x4bae8a,'*Split:*\x20list\x20item')}:_0x490862;}),_0x29800a['model']['document']['registerPostFixer'](_0x95b07b=>this['listItemIdFixer'](_0x95b07b)),_0x29800a['model']['document']['registerPostFixer'](_0xe9c41a=>this['noTrackChangesFixer'](_0xe9c41a)),_0x29800a['model']['document']['on']('change:data',(_0x1a17c5,_0x1b7bfa)=>{if(_0x1b7bfa['isUndo']||!_0x1b7bfa['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x398e86){if(_0x398e86['batch']['isUndo']||!_0x398e86['batch']['isLocal'])return!0x1;let _0x3a369e=!0x1;const _0x198a0b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f15e9=>_0x4f15e9['data']&&'listItemId'==_0x4f15e9['data']['key'])['filter'](_0x5929a1=>_0x5929a1['data']['newValue']&&_0x5929a1['data']['oldValue']);for(const _0xc75aaf of _0x198a0b)Te(_0xc75aaf)||(_0x398e86['removeMarker'](_0xc75aaf['getFirstMarker']()),_0x3a369e=!0x0);return _0x3a369e;}['noTrackChangesFixer'](_0x261634){if(_0x261634['batch']['isUndo']||!_0x261634['batch']['isLocal'])return!0x1;const _0x30497d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30497d['trackChangesCommand']['value'])return!0x1;let _0x1a1d9d=!0x1;const _0x3cb7e5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4526c2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x966ee2=>'attribute'==_0x966ee2['type'])['filter'](_0x2c4ba3=>_0x3cb7e5['includes'](_0x2c4ba3['attributeKey']));if(0x0==_0x4526c2['length'])return _0x1a1d9d;for(const _0x27eb19 of _0x4526c2){const _0x1f0f3e=_0x30497d['_findSuggestions'](_0x27eb19['range'],'attribute')['filter'](_0x1b3d6a=>!_0x1b3d6a['meta']['isNextTo'])['map'](_0x575fd3=>_0x575fd3['suggestion'])['filter'](_0x5dea37=>{const _0x156a42=_0x30497d['_getAttributeKey'](_0x5dea37);return _0x3cb7e5['includes'](_0x156a42);});if(_0x1f0f3e['length']){for(const _0x3b4f12 of _0x1f0f3e)_0x261634['removeMarker'](_0x3b4f12['getFirstMarker']());_0x1a1d9d=!0x0;}}return _0x1a1d9d;}['assureChains'](){const _0x1534fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52c10e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3393ec;const _0x46f6f6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x217435=>{if(_0x217435['data']['oldRange']||!_0x217435['data']['newRange'])return null;if(!_0x217435['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x229d70}=_0x1534fb['_splitMarkerName'](_0x217435['name']);if(!_0x1534fb['hasSuggestion'](_0x229d70))return null;const _0x5bdf08=_0x1534fb['getSuggestion'](_0x229d70);return _0x52c10e['includes'](_0x5bdf08['data']['key']);})['map'](_0x1ae460=>{const {id:_0x54982c}=_0x1534fb['_splitMarkerName'](_0x1ae460['name']),_0x146874=_0x1534fb['getSuggestion'](_0x54982c);return _0x3393ec=_0x146874['attributes']['groupId'],_0x146874['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x46f6f6['size'])return;const _0x9d7222=_0x1534fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x416c7a=>'attribute'==_0x416c7a['type']&&_0x416c7a['data']&&_0x52c10e['includes'](_0x416c7a['data']['key'])&&_0x416c7a['attributes']['groupId']!=_0x3393ec)['map'](_0x1ffad7=>({'listItem':_0x1ffad7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1ffad7['attributes']['groupId']})),_0x1fdc54=new Set();for(const {groupId:_0x4d017d,listItem:_0x5603fb}of _0x9d7222)_0x46f6f6['has'](_0x5603fb)&&_0x1fdc54['add'](_0x4d017d);for(const _0x2f52c8 of _0x1534fb['getSuggestions']())_0x1fdc54['has'](_0x2f52c8['attributes']['groupId'])&&_0x2f52c8['setAttribute']('groupId',_0x3393ec);}['_supportLegacySuggestions'](){const _0x3ea95e=this['editor'],_0x47846f=_0x3ea95e['locale'],_0x380143=_0x3ea95e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x380143['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x26bb92,_0x48aa27){const _0x8de686=[];for(let _0x1b0496 of _0x26bb92)_0x1b0496['start']['nodeAfter']===_0x1b0496['end']['parent']&&(_0x1b0496=_0x3ea95e['model']['createRange'](_0x3ea95e['model']['createPositionAt'](_0x1b0496['start']['nodeAfter'],0x0))),_0x8de686['push'](_0x1b0496);_0x3ea95e['model']['change'](_0x329ea0=>{const _0x5eb218=_0x3ea95e['model']['document']['selection'],_0x578d81=Array['from'](_0x5eb218['getRanges']())['map'](_0x397a43=>_0x45518e['fromRange'](_0x397a43));_0x329ea0['setSelection'](_0x8de686),_0x3ea95e['commands']['get'](_0x48aa27['commandName'])['refresh'](),_0x48aa27['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3ea95e['execute'](_0x48aa27['commandName'],..._0x48aa27['commandParams']),_0x329ea0['setSelection'](_0x578d81);for(const _0x2bab92 of _0x578d81)_0x2bab92['detach']();});}),_0x380143['descriptionFactory']['registerElementLabel'](function(_0x555fe7){const _0x2c0e44=!_0x3ea95e['model']['schema']['isObject'](_0x555fe7),_0x409f26=_0x555fe7['previousSibling'],_0x19af9c=_0x555fe7['nextSibling'],_0xa3378c=_0x555fe7['getAttribute']('listItemId'),_0x2ce83c=!_0x409f26||_0x409f26['getAttribute']('listItemId')!==_0xa3378c,_0x2344d2=!_0x19af9c||_0x19af9c['getAttribute']('listItemId')!==_0xa3378c;return _0x2c0e44&&Boolean(_0xa3378c)&&_0x2ce83c&&_0x2344d2;},_0x20f8fa=>o(_0x47846f,'ELEMENT_LIST_ITEM',_0x20f8fa));}['_registerLegacyDescription'](){const _0x35c615=this['editor'],_0x2c1b12=_0x35c615['locale'];function _0x37d8a5(_0x4e9572){const _0x2e73a0=_0x35c615['commands']['get']('bulletedList')['value'],_0x4cc196=_0x35c615['commands']['get']('numberedList')['value'];return'numberedList'===_0x4e9572?_0x2e73a0:_0x4cc196;}_0x35c615['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x378d90){if('formatBlock'!=_0x378d90['type'])return;const {data:_0x3df24b}=_0x378d90;if(!_0x3df24b)return;let _0x43f213,_0x12519f,_0x5b279a,_0x4dc56b;switch(_0x3df24b['commandName']){case'bulletedList':_0x5b279a=_0x3df24b['commandParams'][0x0]['forceValue'],_0x4dc56b=_0x37d8a5(_0x3df24b['commandName']),_0x43f213=_0x5b279a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4dc56b&&_0x35c615['config']['get']('list.multiBlock')||(_0x43f213='*Change\x20to:*\x20%0'),_0x12519f={'type':'format','content':o(_0x2c1b12,_0x43f213,o(_0x2c1b12,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5b279a=_0x3df24b['commandParams'][0x0]['forceValue'],_0x4dc56b=_0x37d8a5(_0x3df24b['commandName']),_0x43f213=_0x5b279a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4dc56b&&_0x35c615['config']['get']('list.multiBlock')||(_0x43f213='*Change\x20to:*\x20%0'),_0x12519f={'type':'format','content':o(_0x2c1b12,_0x43f213,o(_0x2c1b12,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x43f213='*Indent:*\x20%0',_0x12519f={'type':'format','content':o(_0x2c1b12,_0x43f213,o(_0x2c1b12,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x43f213=function(_0x591f87){const _0x514c26=_0x591f87['getFirstRange']();let _0x5ce95d=_0x514c26['start']['nodeAfter'];for(;_0x5ce95d&&_0x514c26['containsItem'](_0x5ce95d);){if(_0x5ce95d['getAttribute']('listIndent')>0x0)return!0x1;_0x5ce95d=_0x5ce95d['nextSibling'];}return!0x0;}(_0x378d90)?o(_0x2c1b12,'*Format:*\x20remove\x20from\x20%0',o(_0x2c1b12,function(_0xe19bf9){return'ELEMENT_'+_0xe19bf9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x378d90))):o(_0x2c1b12,'*Outdent:*\x20%0',o(_0x2c1b12,'ELEMENT_LIST_ITEM')),_0x12519f={'type':'format','content':_0x43f213};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3df24b['multipleBlocks']&&(_0x43f213='*Merge:*\x20%0',_0x12519f={'type':'deletion','content':o(_0x2c1b12,_0x43f213,o(_0x2c1b12,'ELEMENT_LIST_ITEM'))});}return _0x12519f;});}}function Te(_0x2d85be){let _0x15eed6=_0x2d85be['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x15eed6;){const _0x181513=_0x15eed6['getAttribute']('listItemId');if(!_0x181513)return!0x1;if(_0x181513==_0x2d85be['data']['newValue'])return'newValue';if(_0x181513==_0x2d85be['data']['oldValue'])return'oldValue';_0x15eed6=_0x15eed6['previousSibling'];}return!0x1;}class q extends _0x519785{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x21ec25=this['editor']['config']['get']('list.properties'),_0x209819=this['editor']['plugins']['get']('TrackChangesEditing');_0x21ec25['styles']&&(_0x209819['enableDefaultAttributesIntegration']('listStyle'),_0x209819['registerBlockAttribute']('listStyle')),_0x21ec25['reversed']&&(_0x209819['enableDefaultAttributesIntegration']('listReversed'),_0x209819['registerBlockAttribute']('listReversed')),_0x21ec25['startIndex']&&(_0x209819['enableDefaultAttributesIntegration']('listStart'),_0x209819['registerBlockAttribute']('listStart'));const _0x2d9527={'type':'format','content':''};_0x209819['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x33590e=this['editor']['locale'];_0x209819['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x33590e,'FORMAT_LIST_REVERSED')),_0x209819['descriptionFactory']['registerDescriptionCallback'](_0x4de569=>{const {data:_0x18f39c}=_0x4de569;if(_0x18f39c&&'listReversed'==_0x18f39c['key'])return null==_0x18f39c['newValue']||0x0==_0x18f39c['newValue']&&null==_0x18f39c['oldValue']?_0x2d9527:void 0x0;}),_0x209819['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x33590e,'FORMAT_LIST_START')),_0x209819['descriptionFactory']['registerDescriptionCallback'](_0x59bdd1=>{const {data:_0x49cb2d}=_0x59bdd1;if(_0x49cb2d&&'listStart'==_0x49cb2d['key'])return null==_0x49cb2d['newValue']||0x1==_0x49cb2d['newValue']&&null==_0x49cb2d['oldValue']?_0x2d9527:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5d5330=>{if(_0x5d5330['batch']['isUndo'])return!0x1;let _0x48f756=!0x1;const _0x5f1644=_0x209819['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a0f5b=>{const _0x377d60=_0x209819['_getAttributeKey'](_0x2a0f5b);return'listStart'==_0x377d60||'listReversed'==_0x377d60;});for(const _0x37c47b of _0x5f1644){const _0x3050fc=_0x37c47b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3050fc||'customNumbered'==_0x3050fc)continue;_0x209819['_findSuggestions'](_0x37c47b['getFirstRange'](),'attribute')['find'](_0x52aeab=>'listType'==_0x209819['_getAttributeKey'](_0x52aeab['suggestion']))||(_0x5d5330['removeMarker'](_0x37c47b['getFirstMarker']()),_0x48f756=!0x0);}return _0x48f756;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4eee03){const _0x1988ad=this['editor']['locale'],{data:_0x1b2bd6}=_0x4eee03,_0xc9d323={'type':'format','content':''};if(!_0x1b2bd6||'listStyle'!=_0x1b2bd6['key'])return;if(!_0x1b2bd6['oldValue'])return'default'==_0x1b2bd6['newValue']?_0xc9d323:{'type':'format','content':''+o(_0x1988ad,'*Set\x20format:*\x20%0',o(_0x1988ad,this['_getTranslationKeyForListStyle'](_0x1b2bd6['newValue'])))};if(!_0x1b2bd6['newValue']){if('default'==_0x1b2bd6['oldValue'])return _0xc9d323;let _0x19e254=_0x4eee03['head'];for(;_0x19e254;){if(_0x19e254['data']&&'listType'==_0x19e254['data']['key']&&_0x19e254['data']['newValue'])return _0xc9d323;_0x19e254=_0x19e254['next'];}return{'type':'format','content':''+o(_0x1988ad,'*Remove\x20format:*\x20%0',o(_0x1988ad,this['_getTranslationKeyForListStyle'](_0x1b2bd6['oldValue'])))};}if('default'!=_0x1b2bd6['newValue'])return{'type':'format','content':''+o(_0x1988ad,'*Set\x20format:*\x20%0',o(_0x1988ad,this['_getTranslationKeyForListStyle'](_0x1b2bd6['newValue'])))};let _0x2b4274=_0x4eee03['head'];for(;_0x2b4274;){if(_0x2b4274['data']&&'listType'==_0x2b4274['data']['key']&&_0x2b4274['data']['newValue']&&_0x2b4274['data']['oldValue'])return _0xc9d323;_0x2b4274=_0x2b4274['next'];}return{'type':'format','content':o(_0x1988ad,'*Set\x20format:*\x20%0',o(_0x1988ad,'ELEMENT_'+_0x4eee03['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e84ac=this['editor'],_0x38f279=_0x2e84ac['locale'];_0x2e84ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b2061=>{if('formatBlock'!=_0x3b2061['type'])return;const {data:_0x4274f3}=_0x3b2061;if(!_0x4274f3)return;let _0x5dc027,_0xbe897;switch(_0x4274f3['commandName']){case'listStyle':_0x5dc027='*Change\x20to:*\x20%0',_0xbe897={'type':'format','content':o(_0x38f279,_0x5dc027,o(_0x38f279,this['_getTranslationKeyForListStyle'](_0x4274f3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5dc027=_0x4274f3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xbe897={'type':'format','content':o(_0x38f279,_0x5dc027)};break;case'listStart':_0x5dc027='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xbe897={'type':'format','content':o(_0x38f279,_0x5dc027,_0x4274f3['commandParams'][0x0]['startIndex'])};}return _0xbe897;});}['_getTranslationKeyForListStyle'](_0x38b787){return'ELEMENT_'+function(_0x47fb0){if(Se['includes'](_0x47fb0))return'bulleted';if(_e['includes'](_0x47fb0))return'numbered';return null;}(_0x38b787)['toUpperCase']()+'_LIST_'+_0x38b787['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x519785{['afterInit'](){const _0x543e4e=this['editor'];_0x543e4e['commands']['get']('emoji')&&_0x543e4e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x519785{static get['requires'](){return[_0x40d804];}['init'](){const _0x38dff8=this['editor'],_0xaf2306=_0x38dff8['plugins']['get']('TrackChangesEditing'),_0x2166f9=_0x38dff8['commands']['get']('enter');_0xaf2306['enableCommand']('enter',()=>{_0x38dff8['model']['change'](_0x249c60=>{const _0x1272dd=_0x38dff8['model']['document']['selection'],_0x402344=_0x1272dd['getFirstPosition'](),_0x2680cf=_0x45518e['fromRange'](_0x1272dd['getFirstRange']());if(_0x2166f9['enterBlock'](_0x249c60)){const _0x2719bd=_0x38dff8['model']['createPositionAt'](_0x402344['parent']['nextSibling'],0x0),_0x39ad89=_0x249c60['createRange'](_0x402344,_0x2719bd);_0xaf2306['markInsertion'](_0x39ad89);}else _0x249c60['setSelection'](_0x249c60['createRange'](_0x2680cf['end']));_0x2680cf['detach'](),_0x2166f9['fire']('afterExecute',{'writer':_0x249c60});});}),_0x38dff8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x38dff8,'split'),{'priority':'high'}),_0x38dff8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x49b8df,_0x595928,_0x3c138e)=>{const _0x51e6a9=_0x3c138e['mapper']['markerNameToElements'](_0x595928['markerName']);if(_0x51e6a9){for(const _0x11ba8a of _0x51e6a9)_0x11ba8a['hasClass']('ck-suggestion-marker-split')&&(_0x3c138e['mapper']['unbindElementFromMarkerName'](_0x11ba8a,_0x595928['markerName']),_0x3c138e['writer']['remove'](_0x11ba8a));}},{'priority':'high'}),_0x38dff8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f4041,_0x5cab08,_0x5f2f94)=>{_0x5f2f94['options']['showSuggestionHighlights']&&De(_0x38dff8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4f4041,_0x5cab08,_0x5f2f94);},{'priority':'high'});}}class Q extends _0x519785{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3bbf50=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bbf50['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3bbf50['enableCommand']('findNext'),_0x3bbf50['enableCommand']('findPrevious'),_0x3bbf50['enableCommand']('replace'),_0x3bbf50['enableCommand']('replaceAll');}['handleFindCommand'](_0x275424,_0x2d0b24,_0x554945={}){const _0x30c8f5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x275424(_0x31c962=>{let _0x2611b6=('string'==typeof _0x2d0b24?_0x30c8f5['findByTextCallback'](_0x2d0b24,_0x554945):_0x2d0b24)(_0x31c962);Array['isArray'](_0x2611b6)&&(_0x2611b6={'results':_0x2611b6,'searchText':'string'==typeof _0x2d0b24?_0x2d0b24:''});const _0x3b3388=_0x2611b6['results']['filter'](_0x3ac597=>!0x1===this['_isInDeletionRange'](_0x3ac597,_0x31c962['item']));return{..._0x2611b6,'results':_0x3b3388};},_0x554945);}['_isInDeletionRange'](_0x4a19d4,_0x1aee85){const _0x292d27=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1aee85,_0x4a19d4['start']),this['editor']['model']['createPositionAt'](_0x1aee85,_0x4a19d4['end']));for(const _0x31fe05 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x292d27['getIntersection'](_0x31fe05['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x519785{['afterInit'](){const _0x1f09b5=this['editor']['locale'],_0x306e9c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x551403,commandName:_0x59c868}of eo)this['editor']['plugins']['has'](_0x551403)&&(_0x306e9c['enableDefaultAttributesIntegration'](_0x59c868),_0x306e9c['registerInlineAttribute'](_0x59c868));_0x306e9c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1f09b5,'FORMAT_FONT_SIZE')),_0x306e9c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1f09b5,'FORMAT_FONT_FAMILY')),_0x306e9c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1f09b5,'FORMAT_FONT_COLOR')),_0x306e9c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1f09b5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x404fab=this['editor'],_0x5bacae=_0x404fab['locale'];_0x404fab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f7bbc=>{const _0x9a696a=_0x5bacae['t'];if('formatInline'!=_0x4f7bbc['type'])return;const {data:_0x2cfd71}=_0x4f7bbc;if(null!=_0x2cfd71){if('fontSize'==_0x2cfd71['commandName']){const _0x264944=_0x2cfd71['commandParams'][0x0]['value'];if(_0x264944){const _0x411a49=_0x9a696a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x32bb0a=>_0x32bb0a['model']==_0x264944)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5bacae,'*Set\x20font\x20size:*\x20%0',_0x411a49)};}return{'type':'format','content':o(_0x5bacae,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2cfd71['commandName']){const _0x40e87a=_0x2cfd71['commandParams'][0x0]['value'];return _0x40e87a?{'type':'format','content':o(_0x5bacae,'*Set\x20font\x20family:*\x20%0',_0x40e87a)}:{'type':'format','content':o(_0x5bacae,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2cfd71['commandName']){const _0x12c3f3=_0x2cfd71['commandParams'][0x0]['value'];if(_0x12c3f3){const _0x481fd4=_0x1031d7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3266b3=>_0x3266b3['model']==_0x12c3f3);let _0x1e77f8=_0x12c3f3,_0x28023c='';return _0x481fd4&&(_0x1e77f8=_0x481fd4['label'],_0x28023c=_0x9a696a(_0x1e77f8)['toLowerCase']()),{'type':'format','content':o(_0x5bacae,'*Set\x20font\x20color:*\x20%0',_0x28023c)['trim'](),'color':{'value':_0x12c3f3,'title':_0x28023c||_0x1e77f8}};}return{'type':'format','content':o(_0x5bacae,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2cfd71['commandName']){const _0x5cc8df=_0x2cfd71['commandParams'][0x0]['value'];if(_0x5cc8df){const _0x3dc60b=_0x1031d7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3e1852=>_0x3e1852['model']==_0x5cc8df);let _0xfbdc00=_0x5cc8df,_0x449faa='';return _0x3dc60b&&(_0xfbdc00=_0x3dc60b['label'],_0x449faa=_0x9a696a(_0xfbdc00)['toLowerCase']()),{'type':'format','content':o(_0x5bacae,'*Set\x20font\x20background\x20color:*\x20%0',_0x449faa)['trim'](),'color':{'value':_0x5cc8df,'title':_0x449faa||_0xfbdc00}};}return{'type':'format','content':o(_0x5bacae,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x519785{['afterInit'](){const _0x382d1f=this['editor'],_0x285d22=_0x382d1f['plugins']['get']('TrackChangesEditing'),_0x46716c=_0x382d1f['commands']['get']('copyFormat'),_0x5abac4=_0x382d1f['commands']['get']('pasteFormat');_0x46716c&&_0x5abac4&&(_0x285d22['enableDefaultAttributesIntegration']('pasteFormat'),_0x285d22['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x496c22=this['editor'],_0x1d701b=_0x496c22['locale'];_0x496c22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ffdbf=>{if('formatBlock'!=_0x4ffdbf['type']&&'formatInline'!=_0x4ffdbf['type'])return;const {data:_0x26bc37}=_0x4ffdbf;if(_0x26bc37&&'pasteFormat'===_0x26bc37['commandName']){const _0x14aa4a=[],_0x1638a5=_0x26bc37['commandParams'][0x0];for(const [_0x3dcca2,_0x19a8e0]of Object['entries'](_0x1638a5))_0x14aa4a['push'](ro(_0x496c22,_0x3dcca2,_0x19a8e0));return _0x14aa4a['length']?{'type':'format','content':o(_0x1d701b,'*Set\x20format\x20to:*\x20%0',_0x14aa4a['join'](',\x20'))}:{'type':'format','content':o(_0x1d701b,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x347bb2,_0xe8f2a9,_0x5776dc){const _0x4844f1=_0x347bb2['locale']['t'],_0x536a37=_0xe8f2a9['split'](/(?=[A-Z])/)['join']('\x20'),_0x26db8e=_0x4844f1(_0x536a37['charAt'](0x0)['toUpperCase']()+_0x536a37['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5776dc)return _0x26db8e;if('fontColor'===_0xe8f2a9||'fontBackgroundColor'===_0xe8f2a9){const _0x4276b7=_0x1031d7(_0x347bb2['config']['get']('fontColor.colors'))['find'](_0x148895=>_0x148895['model']==_0x5776dc);return _0x26db8e+'\x20('+(_0x4276b7?_0x4844f1(_0x4276b7['label'])['toLowerCase']():_0x5776dc)+')';}if('fontSize'===_0xe8f2a9&&isNaN(parseFloat(_0x5776dc))){const _0x47cc97=_0x347bb2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x347bb2['config']['get']('fontSize.options'))['find'](_0x520e54=>_0x520e54['model']==_0x5776dc);return _0x26db8e+'\x20('+(_0x47cc97?_0x4844f1(_0x47cc97['title'])['toLowerCase']():_0x5776dc)+')';}return _0x26db8e+'\x20('+_0x5776dc+')';}class Z extends _0x519785{['_headingOptions'];['afterInit'](){const _0x206d09=this['editor'];if(!_0x206d09['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x206d09['config']['get']('heading.options');const _0x4d6a73=_0x206d09['locale'],_0x514a0b=_0x206d09['plugins']['get']('TrackChangesEditing');_0x514a0b['enableDefaultAttributesIntegration']('heading');for(const _0x51c9d7 of this['_headingOptions'])'paragraph'!=_0x51c9d7['model']&&_0x514a0b['descriptionFactory']['registerElementLabel'](_0x51c9d7['model'],_0x25f75b=>{const _0x17086b=this['_getHeadingLevel'](_0x51c9d7['model']);return null!==_0x17086b?_0x49d876(_0x25f75b,_0x17086b):_0xb25ea3(_0x25f75b,_0x51c9d7['title']);});function _0x49d876(_0xb48aea,_0x76c8b4){return o(_0x4d6a73,'ELEMENT_HEADING',[_0xb48aea,_0x76c8b4]);}function _0xb25ea3(_0x2d478c,_0x31fb8c){return o(_0x4d6a73,'ELEMENT_HEADING_CUSTOM',[_0x2d478c,_0x31fb8c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1255fb=this['editor'],_0x44f652=_0x1255fb['locale'];function _0x419ce2(_0x4ad693,_0x5557d6){return o(_0x44f652,'ELEMENT_HEADING_CUSTOM',[_0x4ad693,_0x5557d6]);}_0x1255fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c3500=>{if('formatBlock'!=_0x3c3500['type'])return;const {data:_0x5c1184}=_0x3c3500;if(_0x5c1184&&'heading'==_0x5c1184['commandName']){const _0x6fe908=_0x5c1184['commandParams'][0x0]['value'],_0x292f80=this['_getHeadingLevel'](_0x6fe908);if(null!==_0x292f80)return{'type':'format','content':o(_0x44f652,'*Change\x20to:*\x20%0',(_0x532214=0x1,_0x102e61=_0x292f80,o(_0x44f652,'ELEMENT_HEADING',[_0x532214,_0x102e61])))};const _0x1257ed=this['_headingOptions']['find'](_0x44519b=>_0x44519b['model']===_0x6fe908)['title'];return{'type':'format','content':o(_0x44f652,'*Change\x20to:*\x20%0',_0x419ce2(0x1,_0x1257ed))};}var _0x532214,_0x102e61;});}['_getHeadingLevel'](_0x3d346a){const _0x202ac5=_0x3d346a['match'](/^heading(\d+)/);if(_0x202ac5)return _0x202ac5[0x1];const _0x12edca=this['_headingOptions']?.['find'](_0x3d8deb=>_0x3d8deb['model']==_0x3d346a);if(_0x12edca&&_0x12edca['view']){const _0x299bcd=_0x12edca['view'],_0x23ebe3=(_0x299bcd['name']??_0x299bcd)['match'](/^h(\d+)/);if(_0x23ebe3)return _0x23ebe3[0x1];}return null;}}class tt extends _0x519785{['afterInit'](){const _0x42f239=this['editor'];if(!_0x42f239['plugins']['has']('HighlightEditing'))return;const _0x173d2e=_0x42f239['plugins']['get']('TrackChangesEditing'),_0x2399a4=_0x42f239['locale'];_0x173d2e['enableDefaultAttributesIntegration']('highlight'),_0x173d2e['registerInlineAttribute']('highlight'),_0x173d2e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2399a4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcfe396=this['editor'],_0x146e61=_0xcfe396['locale'];_0xcfe396['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b4227=>{if('formatInline'!=_0x2b4227['type'])return;const {data:_0x11601a}=_0x2b4227;if(_0x11601a&&'highlight'==_0x11601a['commandName']){const _0x14b67c=_0x146e61['t'],_0xb14035=_0x11601a['commandParams'][0x0]['value'];if(_0xb14035){const _0x4b981e=_0xcfe396['config']['get']('highlight.options')['find'](_0x567b4b=>_0x567b4b['model']==_0xb14035),_0x3afb15=_0x14b67c(_0x4b981e['title'])['toLowerCase']();return{'type':'format','content':o(_0x146e61,'*Set\x20highlight:*\x20%0',_0x3afb15),'color':{'value':_0x4b981e['color'],'title':_0x4b981e['title']}};}return{'type':'format','content':o(_0x146e61,'*Remove\x20highlight*',o(_0x146e61,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x519785{['afterInit'](){const _0xcba0ac=this['editor'];if(!_0xcba0ac['plugins']['has']('HorizontalLineEditing'))return;_0xcba0ac['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x363d92=_0xcba0ac['plugins']['get']('TrackChangesEditing'),_0x56d9ed=_0xcba0ac['locale'];_0x363d92['descriptionFactory']['registerElementLabel']('horizontalLine',_0x47691d=>o(_0x56d9ed,'ELEMENT_HORIZONTAL_LINE',_0x47691d)),_0xcba0ac['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2170d5,{writer:_0x2af3e9,options:_0x7acc39})=>{if(!_0x7acc39['showSuggestionHighlights'])return null;const _0x52f588=_0x2af3e9['createContainerElement']('div'),_0x1db80b=_0x2af3e9['createEmptyElement']('hr');return _0x2af3e9['addClass']('ck-horizontal-line',_0x52f588),_0x2af3e9['insert'](_0x2af3e9['createPositionAt'](_0x52f588,0x0),_0x1db80b),_0x52f588;},'converterPriority':'high'});}}class nt extends _0x519785{['afterInit'](){const _0x58def5=this['editor'];if(!_0x58def5['plugins']['has']('HtmlEmbed'))return;const _0x36a103=_0x58def5['plugins']['get']('TrackChangesEditing'),_0xd3b1e4=_0x58def5['locale'];_0x36a103['descriptionFactory']['registerElementLabel']('rawHtml',_0x3d8efb=>o(_0xd3b1e4,'ELEMENT_HTML_EMBED',_0x3d8efb)),_0x36a103['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36a103['registerBlockAttribute']('value'),_0x36a103['descriptionFactory']['registerDescriptionCallback'](_0x5eb66d=>{if('attribute'!=_0x5eb66d['type'])return;const {data:_0x581229}=_0x5eb66d;if(_0x581229&&'value'==_0x581229['key']&&_0x5eb66d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x26f932=o(_0xd3b1e4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xd3b1e4,'*Change\x20%0\x20content*',_0x26f932)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x268b74=this['editor'],_0x4a95dd=_0x268b74['locale'];_0x268b74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe1464d=>{if('formatBlock'!=_0xe1464d['type'])return;const {data:_0x3d02c5}=_0xe1464d;if(_0x3d02c5&&'htmlEmbed'==_0x3d02c5['commandName']){const _0x5ef80a=o(_0x4a95dd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a95dd,'*Change\x20%0\x20content*',_0x5ef80a)};}});}}class et extends _0x519785{['afterInit'](){const _0x4c0e74=this['editor'];if(!_0x4c0e74['plugins']['has']('ImageEditing'))return;const _0x271a62=_0x4c0e74['plugins']['get']('TrackChangesEditing'),_0x206560=_0x4c0e74['plugins']['get']('ImageUtils'),_0x87c3ff=_0x4c0e74['locale'];_0x271a62['enableCommand']('insertImage'),_0x271a62['descriptionFactory']['registerElementLabel']('imageBlock',_0x10b8c5=>o(_0x87c3ff,'ELEMENT_IMAGE',_0x10b8c5)),_0x271a62['descriptionFactory']['registerElementLabel']('imageInline',_0x4321cb=>o(_0x87c3ff,'ELEMENT_INLINE_IMAGE',_0x4321cb)),_0x271a62['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x87c3ff,'ELEMENT_CAPTION')),_0x4c0e74['plugins']['has']('ImageUploadEditing')&&_0x271a62['enableCommand']('uploadImage'),_0x4c0e74['plugins']['has']('ImageBlockEditing')&&_0x4c0e74['plugins']['has']('ImageInlineEditing')&&(_0x271a62['enableCommand']('imageTypeInline',(_0x35a0a5,_0x22aec5)=>{const _0x2d0029=_0x206560['getClosestSelectedImageElement'](_0x4c0e74['model']['document']['selection']);_0x4c0e74['model']['change'](()=>{_0x271a62['markBlockFormat'](_0x2d0029,{'commandName':'imageTypeInline','commandParams':[_0x22aec5]},[],'convertBlockImageToInline');});}),_0x271a62['enableCommand']('imageTypeBlock',(_0xbc8b5c,_0x23e34e)=>{_0x4c0e74['model']['change'](_0x47ec42=>{let _0x4aa48a=_0x206560['getClosestSelectedImageElement'](_0x4c0e74['model']['document']['selection']),_0x47d627=_0x47ec42['createRangeOn'](_0x4aa48a);const _0x256a30=_0x25db75['fromPosition'](_0x47d627['start'],'toPrevious'),_0x1eccec=_0x25db75['fromPosition'](_0x47d627['end'],'toNext');_0x271a62['forceDefaultExecution'](()=>_0xbc8b5c(_0x23e34e)),_0x4aa48a=_0x206560['getClosestSelectedImageElement'](_0x4c0e74['model']['document']['selection']),_0x47d627=_0x47ec42['createRangeOn'](_0x4aa48a);const _0xea0e78=_0x47ec42['createRange'](_0x256a30,_0x1eccec);_0x256a30['detach'](),_0x1eccec['detach'](),_0x271a62['markBlockFormat'](_0x4aa48a,{'commandName':'imageTypeInline','commandParams':[_0x23e34e]},[],'convertInlineImageToBlock'),_0xea0e78['start']['isBefore'](_0x47d627['start'])&&_0x271a62['markInsertion'](_0x47ec42['createRange'](_0xea0e78['start'],_0x47d627['start']),'convertInlineImageToBlock'),_0x47d627['end']['isBefore'](_0xea0e78['end'])&&_0x271a62['markInsertion'](_0x47ec42['createRange'](_0x47d627['end'],_0xea0e78['end']),'convertInlineImageToBlock');});}),_0x271a62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x271a62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x271a62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x271a62['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x271a62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x271a62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x247dd9])=>{const _0x3df913=_0x271a62['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x27ef18=_0x247dd9['start'],_0x40eff6=_0x247dd9['end'];const _0x55d8c8=_0x4c0e74['model']['schema']['getNearestSelectionRange'](_0x27ef18,'backward'),_0x4fb18d=_0x4c0e74['model']['schema']['getNearestSelectionRange'](_0x40eff6,'forward');_0x55d8c8['isCollapsed']&&(_0x27ef18=_0x55d8c8['start']),_0x4fb18d['isCollapsed']&&(_0x40eff6=_0x4fb18d['end']),_0x3df913([_0x4c0e74['model']['createRange'](_0x27ef18,_0x40eff6)]);}),_0x271a62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3dccc7),_0x271a62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3dccc7)),_0x4c0e74['plugins']['has']('ImageCaptionEditing')&&(_0x271a62['enableCommand']('toggleImageCaption',(_0x211c88,_0x34d11b)=>{const _0x35b201=_0x4c0e74['plugins']['get']('ImageCaptionUtils');let _0x22a591=_0x206560['getClosestSelectedImageElement'](_0x4c0e74['model']['document']['selection']),_0x25aadd=_0x35b201['getCaptionFromImageModelElement'](_0x22a591);_0x4c0e74['model']['change'](()=>{if(_0x25aadd)return void _0x271a62['markDeletion'](_0x4c0e74['model']['createRangeOn'](_0x25aadd));const _0x568920=_0x206560['isBlockImage'](_0x22a591);_0x211c88(_0x34d11b),_0x22a591=_0x206560['getClosestSelectedImageElement'](_0x4c0e74['model']['document']['selection']),_0x25aadd=_0x35b201['getCaptionFromImageModelElement'](_0x22a591),_0x271a62['markInsertion'](_0x4c0e74['model']['createRangeOn'](_0x25aadd),_0x568920?null:'imageCaption');});}),_0x271a62['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3dccc7));const _0x138be0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e1c58(_0x24d50a,_0x400c9c){const _0x3ddacf=_0x138be0['findIndex'](({type:_0x5c1b2f,subType:_0x43a1a3})=>_0x24d50a['type']==_0x5c1b2f&&_0x24d50a['subType']==_0x43a1a3),_0x3d6c6a=_0x138be0['findIndex'](({type:_0x3229e2,subType:_0xdd4417})=>_0x400c9c['type']==_0x3229e2&&_0x400c9c['subType']==_0xdd4417);if(_0x3ddacf<0x0||_0x3d6c6a<0x0)return!0x1;const _0x253bc1=_0x24d50a['getFirstRange'](),_0x390003=_0x400c9c['getFirstRange']();if((0x0==_0x3ddacf||0x1==_0x3ddacf)&&0x2==_0x3d6c6a&&_0x253bc1['isIntersecting'](_0x390003))return!0x0;if(0x2==_0x3ddacf&&0x3==_0x3d6c6a){const _0x4220fc=_0x271a62['_findSuggestions'](_0x253bc1,'insertion')['filter'](({suggestion:_0x462c08,meta:_0x5d5b2f})=>_0x5d5b2f['isOwn']&&'convertInlineImageToBlock'==_0x462c08['subType']);if(_0x4220fc['length']>0x1&&_0x390003['end']['isEqual'](_0x253bc1['start']))return!0x0;if(0x1==_0x4220fc['length']&&(_0x253bc1['start']['isEqual'](_0x390003['end'])||_0x253bc1['end']['isEqual'](_0x390003['start'])))return!0x0;}if(0x3==_0x3ddacf&&0x3==_0x3d6c6a&&_0x253bc1['start']['isBefore'](_0x390003['start'])){const _0x152b00=_0x253bc1['end']['nodeAfter'],_0x46419a=_0x390003['start']['nodeBefore'];return _0x206560['isBlockImage'](_0x152b00)&&_0x152b00===_0x46419a;}return!0x1;}function _0x3dccc7(_0x4e08f4,_0x2eb674){return _0x5e1c58(_0x4e08f4,_0x2eb674)?[_0x4e08f4,_0x2eb674]:_0x5e1c58(_0x2eb674,_0x4e08f4)?[_0x2eb674,_0x4e08f4]:null;}_0x4c0e74['plugins']['has']('ImageResize')&&(_0x271a62['enableDefaultAttributesIntegration']('resizeImage'),_0x271a62['registerBlockAttribute']('resizedWidth'),_0x271a62['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x87c3ff,'FORMAT_IMAGE_SIZE'))),_0x4c0e74['plugins']['has']('ImageTextAlternativeEditing')&&(_0x271a62['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x271a62['registerBlockAttribute']('alt')),_0x4c0e74['plugins']['has']('PictureEditing')&&(_0x271a62['registerBlockAttribute']('sources'),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x489c24=>{if('attribute'!=_0x489c24['type'])return;const {data:_0x2d7d04}=_0x489c24;return _0x2d7d04&&'sources'==_0x2d7d04['key']?{'type':'format','content':''}:void 0x0;})),_0x4c0e74['plugins']['has']('ImageSizeAttributes')&&(_0x271a62['registerBlockAttribute']('width'),_0x271a62['registerBlockAttribute']('height'),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x33c44d=>{if('attribute'!=_0x33c44d['type'])return;const {data:_0x1317ff}=_0x33c44d;return!_0x1317ff||'width'!=_0x1317ff['key']&&'height'!=_0x1317ff['key']?void 0x0:{'type':'format','content':''};})),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x56dc30=>{if(!!_0x138be0['find'](({type:_0x271916,subType:_0x5a2445})=>_0x56dc30['type']==_0x271916&&_0x56dc30['subType']==_0x5a2445))return _0x56dc30['previous']?{}:void 0x0;}),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x286125=>{if('insertion'==_0x286125['type']||'deletion'==_0x286125['type']){const _0x290612=_0x286125['getContainedElement']();if(_0x290612&&_0x290612['is']('element','caption'))return{'type':'insertion'==_0x286125['type']?'addObject':'removeObject','element':_0x290612,'quantity':0x1};}}),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x35a344=>'formatBlock'==_0x35a344['type']&&'convertInlineImageToBlock'==_0x35a344['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x35a344['type']&&'convertBlockImageToInline'==_0x35a344['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x1c7c3a=>{if('attribute'!=_0x1c7c3a['type'])return;const {data:_0xff38f8}=_0x1c7c3a;if(!_0xff38f8||'alt'!=_0xff38f8['key'])return;const _0x547ae8=_0xff38f8['newValue'];return _0x547ae8?{'type':'format','content':o(_0x87c3ff,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x547ae8+'\x22')}:{'type':'format','content':o(_0x87c3ff,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xee9ce7=this['editor'],_0x78fb06=_0xee9ce7['locale'];_0xee9ce7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27aaa7=>{if('formatBlock'!=_0x27aaa7['type']&&'formatInline'!=_0x27aaa7['type'])return;const {data:_0x3e39d6}=_0x27aaa7;if(_0x3e39d6){if('imageTextAlternative'==_0x3e39d6['commandName']){const _0x4015cb=_0x3e39d6['commandParams'][0x0]['newValue'];return _0x4015cb?{'type':'format','content':o(_0x78fb06,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4015cb+'\x22')}:{'type':'format','content':o(_0x78fb06,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3e39d6['commandName']){const _0x5207fd=_0x3e39d6['commandParams'][0x0]['width'];return _0x5207fd?{'type':'format','content':o(_0x78fb06,'*Set\x20image\x20width:*\x20%0',_0x5207fd)}:{'type':'format','content':o(_0x78fb06,'*Reset\x20image\x20width*')};}}});}}class st extends _0x519785{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1526fc=this['editor']['locale'],_0x219c76=this['editor']['plugins']['get']('TrackChangesEditing');_0x219c76['enableDefaultAttributesIntegration']('replaceImageSource'),_0x219c76['registerBlockAttribute']('src'),_0x219c76['descriptionFactory']['registerDescriptionCallback'](_0x5084a5=>{if('attribute'!=_0x5084a5['type'])return;const {data:_0x503675}=_0x5084a5;return _0x503675&&'src'==_0x503675['key']?_0x503675['newValue']&&_0x503675['oldValue']?{'type':'format','content':o(_0x1526fc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x35aedd=this['editor']['plugins']['get']('TrackChangesEditing');_0x35aedd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x35aedd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35aedd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x35aedd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f5c5a=this['editor'],_0x51b104=_0x1f5c5a['locale'];_0x1f5c5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57bd4c=>{if('formatBlock'!=_0x57bd4c['type']&&'formatInline'!=_0x57bd4c['type'])return;const {data:_0x449951}=_0x57bd4c;if(!_0x449951||'replaceImageSource'!=_0x449951['commandName'])return;return{'type':'format','content':o(_0x51b104,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x519785{['afterInit'](){const _0x3717dc=this['editor'];if(!_0x3717dc['plugins']['has']('ImageStyleEditing'))return;const _0xe7ff0b=_0x3717dc['plugins']['get']('TrackChangesEditing'),_0xb12c23=_0x3717dc['plugins']['get']('ImageUtils'),_0x47b201={};_0xe7ff0b['enableCommand']('imageStyle',(_0x4059eb,_0x30f34f)=>{const _0x17aa69=_0x3717dc['plugins']['get']('Users')['me'],_0x3cd2ba=_0x3717dc['commands']['get']('imageStyle');let _0x1fc963=_0xb12c23['getClosestSelectedImageElement'](_0x3717dc['model']['document']['selection']),_0x33ff16=_0x3717dc['model']['createRangeOn'](_0x1fc963),_0x499e74=_0x3cd2ba['value'];if(_0x499e74==_0x30f34f['value'])return;const _0x2ced55={'commandName':'imageStyle','commandParams':[_0x30f34f],'formatGroupId':_0x19694d()};_0x3717dc['model']['change'](()=>{if(_0xe7ff0b['getSuggestions']()['filter'](_0x11bda4=>_0x11bda4['isInContent']&&_0x17aa69==_0x11bda4['author']&&('formatBlock'==_0x11bda4['type']||'formatInline'==_0x11bda4['type'])&&('imageStylePreApply'==_0x11bda4['subType']||'imageStylePostApply'==_0x11bda4['subType'])&&_0x11bda4['getFirstRange']()['isEqual'](_0x33ff16))['forEach'](_0x395297=>_0xe7ff0b['discardSuggestion'](_0x395297['head'])),_0x1fc963=_0xb12c23['getClosestSelectedImageElement'](_0x3717dc['model']['document']['selection']),_0x33ff16=_0x3717dc['model']['createRangeOn'](_0x1fc963),_0x3cd2ba['refresh'](),_0x3717dc['commands']['get']('imageTypeInline')['refresh'](),_0x3717dc['commands']['get']('imageTypeBlock')['refresh'](),_0x499e74=_0x3cd2ba['value'],_0x499e74!=_0x30f34f['value'])return _0xb12c23['isInlineImage'](_0x1fc963)&&_0x3cd2ba['shouldConvertImageType'](_0x30f34f['value'],_0x1fc963)?(_0x4059eb({..._0x30f34f,'setImageSizes':!0x1}),_0x1fc963=_0xb12c23['getClosestSelectedImageElement'](_0x3717dc['model']['document']['selection']),void _0xe7ff0b['markBlockFormat'](_0x1fc963,{..._0x2ced55,'commandReversedParams':[{'value':_0x499e74||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xb12c23['isBlockImage'](_0x1fc963)?_0xe7ff0b['markBlockFormat'](_0x1fc963,_0x2ced55,[],'imageStylePostApply'):_0xe7ff0b['markInlineFormat'](_0x33ff16,_0x2ced55,'imageStylePostApply'));});});for(const _0x33d8c1 of _0x3717dc['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x47b201[_0x33d8c1['name']]=_0x33d8c1['title']['toLowerCase']();_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x18fdd8])=>{_0xb12c23['setImageNaturalSizeAttributes'](_0x18fdd8['getContainedElement']());}),_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2ab931,_0x2b949f)=>{_0xe7ff0b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2ab931,{'commandName':_0x2b949f['commandName'],'commandParams':_0x2b949f['commandReversedParams']});}),_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1704fd,_0x3228a1){if(_0x29b891(_0x1704fd,_0x3228a1))return[_0x1704fd,_0x3228a1];if(_0x29b891(_0x3228a1,_0x1704fd))return[_0x3228a1,_0x1704fd];return null;});const _0x24b4ac=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29b891(_0x2cea37,_0x5bb9fc){const _0x5151cf=_0x24b4ac['findIndex'](({type:_0x2132f8,subType:_0x2e568b})=>_0x2cea37['type']==_0x2132f8&&_0x2cea37['subType']==_0x2e568b),_0x5ceac9=_0x24b4ac['findIndex'](({type:_0xc21e7a,subType:_0x450b15})=>_0x5bb9fc['type']==_0xc21e7a&&_0x5bb9fc['subType']==_0x450b15);if(_0x5151cf<0x0||_0x5ceac9<0x0)return!0x1;const _0x5f45ca=_0x2cea37['getFirstRange'](),_0x590d52=_0x5bb9fc['getFirstRange']();if((0x0==_0x5151cf||0x1==_0x5151cf)&&0x2==_0x5ceac9&&_0x5f45ca['isIntersecting'](_0x590d52))return!0x0;if(0x2==_0x5151cf&&0x3==_0x5ceac9){const _0x1bb31a=_0xe7ff0b['_findSuggestions'](_0x5f45ca,'insertion')['filter'](({suggestion:_0x4c6660,meta:_0x5200f4})=>_0x5200f4['isOwn']&&'convertInlineImageToBlock'==_0x4c6660['subType']);if(_0x1bb31a['length']>0x1&&_0x590d52['end']['isEqual'](_0x5f45ca['start']))return!0x0;if(0x1==_0x1bb31a['length']&&(_0x5f45ca['start']['isEqual'](_0x590d52['end'])||_0x5f45ca['end']['isEqual'](_0x590d52['start'])))return!0x0;}if(0x3==_0x5151cf&&0x3==_0x5ceac9&&_0x5f45ca['start']['isBefore'](_0x590d52['start'])){const _0x2d569d=_0x5f45ca['end']['nodeAfter'],_0x56c71a=_0x590d52['start']['nodeBefore'];return _0xb12c23['isBlockImage'](_0x2d569d)&&_0x2d569d===_0x56c71a;}return!0x1;}_0x3717dc['model']['document']['registerPostFixer'](()=>{let _0x263709=!0x1;const _0x923aab=Array['from'](_0x3717dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x317569,data:_0x2f54bd}of _0x923aab){const {group:_0x4941aa,type:_0x2ff21f,subType:_0x10bc28,id:_0x55e5ed}=_0xe7ff0b['_splitMarkerName'](_0x317569);if('suggestion'==_0x4941aa&&_0xe7ff0b['hasSuggestion'](_0x55e5ed)){if('formatBlock'==_0x2ff21f&&('imageStylePreApply'==_0x10bc28||'imageStylePostApply'==_0x10bc28)){const _0x403fec=_0xe7ff0b['getSuggestion'](_0x55e5ed);if(_0x2f54bd['newRange']){const _0x34bd50=_0x403fec['getFirstRange']()['getContainedElement']();if(_0xb12c23['isBlockImage'](_0x34bd50))continue;_0xe7ff0b['discardSuggestion'](_0x403fec),_0x263709=!0x0;}}if('insertion'==_0x2ff21f&&'imageCaption'==_0x10bc28&&!_0x2f54bd['newRange']){const _0x576e5b=_0xe7ff0b['getSuggestion'](_0x55e5ed);_0x576e5b['next']&&_0x576e5b['next']['isInContent']&&(_0xe7ff0b['discardSuggestion'](_0x576e5b['next']),_0x263709=!0x0);}}}return _0x263709;}),this['_registerLegacyDescription'](_0x47b201);}['_registerLegacyDescription'](_0x205d03){const _0x5458b2=this['editor'],_0x3eb863=_0x5458b2['locale'];_0x5458b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdff6c9=>{if('formatBlock'!=_0xdff6c9['type']&&'formatInline'!=_0xdff6c9['type'])return;const {data:_0x21b748}=_0xdff6c9;if(!_0x21b748||'imageStyle'!=_0x21b748['commandName'])return;const _0x2e6ae6=_0x21b748['commandParams'][0x0]['value'];return _0x5989f7('side'===_0x2e6ae6?o(_0x3eb863,'FORMAT_SIDE_IMAGE'):_0x205d03[_0x2e6ae6]||_0x2e6ae6);function _0x5989f7(_0x5972de){return{'type':'format','content':o(_0x3eb863,'*Format:*\x20%0',_0x5972de)};}});}}class rt extends _0x519785{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x229fc1){super(_0x229fc1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x44d419=this['editor'],_0x4cdd5f=_0x44d419['commands']['get']('importWord'),_0x322e90=_0x44d419['commands']['get']('trackChanges');_0x4cdd5f&&(_0x4cdd5f['on']('execute',(_0x2e5d36,[,_0x2019e6])=>{this['_trackChangesValueDuringImport']=_0x322e90['value'],_0x2019e6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cdd5f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cdd5f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x322e90['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x44d419['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x10183e,_0x288666){const {suggestions:_0x1ff3b9}=_0x288666,_0x43b468=this['editor']['commands']['get']('trackChanges'),_0x57139c=_0x43b468['value'];this['_trackChangesValueDuringImport']!==_0x57139c&&(_0x43b468['execute'](),this['_trackChangesExecuted']=!0x0),_0x1ff3b9&&_0x1ff3b9['forEach'](({id:_0x123736,type:_0x32bb6d,author:_0x27b02b,created_at:_0x9846ea})=>{const _0xb86c4={'id':_0x123736,'type':_0x32bb6d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x27b02b,'createdAt':_0x9846ea?new Date(_0x9846ea):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb86c4);});}}class at extends _0x519785{['afterInit'](){const _0x441d11=this['editor'],_0x12afcf=_0x441d11['plugins']['get']('TrackChangesEditing');if(_0x441d11['plugins']['has']('IndentEditing')&&(_0x12afcf['enableCommand']('indent'),_0x12afcf['enableCommand']('outdent')),_0x441d11['plugins']['has']('IndentBlock')){for(const _0x3530c5 of['indentBlock','outdentBlock'])_0x12afcf['enableDefaultAttributesIntegration'](_0x3530c5);}const _0x3af926=_0x441d11['locale'];_0x12afcf['registerBlockAttribute']('blockIndent'),_0x12afcf['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3af926,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b820d=this['editor'],_0x218a91=_0x5b820d['locale'],_0x3799b4=_0x5b820d['plugins']['get']('TrackChangesEditing');_0x3799b4['descriptionFactory']['registerDescriptionCallback'](_0x467d65=>{if('formatBlock'!=_0x467d65['type'])return;const {data:_0x4129ee}=_0x467d65;if(!_0x4129ee)return;if('indentBlock'!=_0x4129ee['commandName']&&'outdentBlock'!=_0x4129ee['commandName'])return;const _0x2b5a3a=_0x467d65['getItems']()[0x0],_0x37a4fb=_0x3799b4['descriptionFactory']['getItemLabel'](_0x2b5a3a);return'indentBlock'==_0x4129ee['commandName']?{'type':'format','content':o(_0x218a91,'*Indent:*\x20%0',_0x37a4fb)}:'outdentBlock'==_0x4129ee['commandName']?{'type':'format','content':o(_0x218a91,'*Outdent:*\x20%0',_0x37a4fb)}:void 0x0;});}}class ct extends _0x519785{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x519785{['afterInit'](){const _0x2c7998=this['editor'];if(!_0x2c7998['plugins']['has']('LinkEditing'))return;const _0x5c4989=_0x2c7998['plugins']['get']('TrackChangesEditing'),_0x5e2c79=_0x2c7998['commands']['get']('link');_0x5c4989['enableDefaultAttributesIntegration']('link'),_0x5c4989['enableDefaultAttributesIntegration']('unlink'),_0x5c4989['registerInlineAttribute']('linkHref');for(const _0x47bd74 of _0x5e2c79['manualDecorators'])_0x5c4989['registerInlineAttribute'](_0x47bd74['id']),_0x5c4989['descriptionFactory']['registerAttributeLabel'](_0x47bd74['id'],'link\x20('+_0x47bd74['label']['toLowerCase']()+')');_0x5c4989['descriptionFactory']['registerDescriptionCallback'](_0x5244e4=>{if('attribute'!=_0x5244e4['type'])return;const {data:_0x1ffe94}=_0x5244e4;if(!_0x1ffe94||'linkHref'!=_0x1ffe94['key'])return;const _0x4382d4=_0x1ffe94['newValue'],_0x275bb6=_0x2c7998['locale'];return{'type':'format','content':null==_0x4382d4?o(_0x275bb6,'*Remove\x20link*'):o(_0x275bb6,'*Set\x20link:*\x20%0','\x22'+_0x4382d4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238d26=this['editor'],_0x3a7433=_0x238d26['locale'];_0x238d26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a5227=>{if('formatInline'!=_0x1a5227['type'])return;const {data:_0x31aec4}=_0x1a5227;if(_0x31aec4){if('link'==_0x31aec4['commandName']){const _0x2ff06d=_0x31aec4['commandParams'][0x0];return{'type':'format','content':o(_0x3a7433,'*Set\x20link:*\x20%0','\x22'+_0x2ff06d+'\x22')};}return'unlink'==_0x31aec4['commandName']?{'type':'format','content':o(_0x3a7433,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x519785{['afterInit'](){const _0x5e3333=this['editor'],_0x44e155=_0x5e3333['locale'];if(!_0x5e3333['plugins']['has']('LegacyListEditing'))return;const _0x27f0a2=_0x5e3333['plugins']['get']('TrackChangesEditing'),_0x4d8e43=_0x5e3333['plugins']['has']('LegacyTodoListEditing');function _0x328e02(_0x4c0c44){return()=>{const _0x19d086=_0x5e3333['model']['document']['selection'],_0x5574b9=_0x5e3333['commands']['get'](_0x4c0c44);if(_0x5574b9['value'])return void _0x5e3333['execute']('paragraph',{});const _0x19df28=_0x4c0c44['slice'](0x0,-0x4),_0x4b695e=function(_0x161d9a,_0x4b96b6,_0x52c8ae){let _0x402cda=Array['from'](_0x161d9a)['filter'](_0x39ce42=>function(_0x1483d8,_0x55085a){return _0x55085a['checkChild'](_0x1483d8['parent'],'listItem')&&!_0x55085a['isObject'](_0x1483d8);}(_0x39ce42,_0x52c8ae));_0x402cda=_0x402cda['filter'](_0x36263a=>!_0x36263a['is']('element','listItem')||_0x36263a['getAttribute']('listType')!=_0x4b96b6);const _0x275fb4=new Set();for(const _0x389051 of _0x402cda)_0x389051['is']('element','listItem')?_0x275fb4['add'](Le(_0x389051)):_0x275fb4['add'](_0x389051);return Array['from'](_0x275fb4);}(_0x19d086['getSelectedBlocks'](),_0x19df28,_0x5e3333['model']['schema']);_0x5e3333['model']['change'](()=>{for(const _0x57fc10 of _0x4b695e)_0x27f0a2['markBlockFormat'](_0x57fc10,{'commandName':_0x4c0c44,'commandParams':[{'forceValue':!_0x5574b9['value']}],'formatGroupId':'blockName'},Ee(_0x57fc10));});};}function _0x2eab62(_0x47d7cf){return()=>{const _0x182983=function(_0x226356){let _0x155f5c=Array['from'](_0x226356);const _0x38291d=_0x155f5c['findIndex'](_0x27b67d=>'listItem'!=_0x27b67d['name']);return _0x38291d>-0x1&&(_0x155f5c=_0x155f5c['slice'](0x0,_0x38291d)),_0x155f5c;}(_0x5e3333['model']['document']['selection']['getSelectedBlocks']()),_0x4ef927=_0x5e3333['model']['createRange'](_0x5e3333['model']['createPositionAt'](_0x182983[0x0],'before'),_0x5e3333['model']['createPositionAt'](_0x182983[_0x182983['length']-0x1],'end'));_0x5e3333['model']['change'](()=>{_0x27f0a2['markBlockFormat'](_0x4ef927,{'commandName':_0x47d7cf,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2d6ec8){const _0x52baba=new Set();for(const _0x5ad6c of _0x2d6ec8){let _0x476d0f=_0x5ad6c['nextSibling'];for(;_0x476d0f&&_0x476d0f['getAttribute']('listIndent')>_0x5ad6c['getAttribute']('listIndent');)_0x52baba['add'](_0x476d0f),_0x476d0f=_0x476d0f['nextSibling'];}return Array['from'](_0x52baba);}(_0x182983));});};}_0x27f0a2['enableCommand']('numberedList',_0x328e02('numberedList')),_0x27f0a2['enableCommand']('bulletedList',_0x328e02('bulletedList')),_0x4d8e43&&_0x27f0a2['enableCommand']('todoList',_0x328e02('todoList')),_0x27f0a2['enableCommand']('indentList',_0x2eab62('indentList')),_0x27f0a2['enableCommand']('outdentList',_0x2eab62('outdentList')),_0x4d8e43&&_0x27f0a2['enableCommand']('checkTodoList',()=>{const _0x22f9c3=_0x5e3333['commands']['get']('checkTodoList'),_0xcd800c=Array['from'](_0x22f9c3['_selectedElements']);_0xcd800c['filter'](_0x27e369=>_0x27e369['getAttribute']('todoListChecked')!=_0x22f9c3['value']),_0x5e3333['model']['change'](()=>{for(const _0x3521b3 of _0xcd800c)_0x27f0a2['markBlockFormat'](_0x3521b3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x22f9c3['value']}]});});}),_0x27f0a2['descriptionFactory']['registerElementLabel']('listItem',_0x5a1235=>o(_0x44e155,'ELEMENT_LIST_ITEM',_0x5a1235)),_0x27f0a2['descriptionFactory']['registerDescriptionCallback'](_0x9b615b=>{if('formatBlock'!=_0x9b615b['type']&&'formatInline'!=_0x9b615b['type'])return;const {data:_0x36cc7a}=_0x9b615b;if(_0x36cc7a){if('numberedList'==_0x36cc7a['commandName']||'bulletedList'==_0x36cc7a['commandName']||'todoList'==_0x36cc7a['commandName'])switch(_0x36cc7a['commandName']['replace']('List','')){case'bulleted':return _0x278541(o(_0x44e155,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x278541(o(_0x44e155,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x278541(o(_0x44e155,'ELEMENT_TODO_LIST'));}if('indentList'==_0x36cc7a['commandName'])return{'type':'format','content':o(_0x44e155,'*Indent:*\x20%0',o(_0x44e155,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x36cc7a['commandName'])return{'type':'format','content':o(_0x44e155,'*Outdent:*\x20%0',o(_0x44e155,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x36cc7a['commandName'])return _0x36cc7a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44e155,'*Check\x20item*')}:{'type':'format','content':o(_0x44e155,'*Uncheck\x20item*')};}function _0x278541(_0x403caf){return{'type':'format','content':o(_0x44e155,'*Change\x20to:*\x20%0',_0x403caf)};}});}}function Le(_0x1bad51){const _0x28d4da=_0x1bad51['getAttribute']('listIndent');if(0x0==_0x28d4da)return _0x1bad51;let _0x10c813=_0x1bad51;for(;_0x1bad51['previousSibling']&&_0x1bad51['previousSibling']['is']('element','listItem');){const _0x14c568=_0x1bad51['previousSibling']['getAttribute']('listIndent');if(_0x14c568==_0x28d4da)_0x10c813=_0x1bad51['previousSibling'];else{if(_0x14c568<_0x28d4da)break;}_0x1bad51=_0x1bad51['previousSibling'];}return _0x10c813;}function Ee(_0x5f46a7){const _0xa0d1af=[];if(_0x5f46a7['is']('element','listItem')&&_0x5f46a7['getAttribute']('listIndent')>0x0){let _0x1ddf3a=_0x5f46a7['nextSibling'];for(;_0x1ddf3a&&'listItem'==_0x1ddf3a['name']&&_0x1ddf3a['getAttribute']('listIndent')==_0x5f46a7['getAttribute']('listIndent');)_0xa0d1af['push'](_0x1ddf3a),_0x1ddf3a=_0x1ddf3a['nextSibling'];}return _0xa0d1af;}class ht extends _0x519785{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x41e35a=this['editor']['config']['get']('list.properties'),_0x1a4a3a=this['editor']['plugins']['get']('TrackChangesEditing');_0x41e35a['styles']&&_0x1a4a3a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x41e35a['reversed']&&_0x1a4a3a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x41e35a['startIndex']&&_0x1a4a3a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1a4a3a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2e3a3e,_0x2cf224={}){const _0x34b28c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e0d03=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x34b28c['markMultiRangeBlockFormat'](_0x1e0d03,{'commandName':'listStyle','commandParams':[{'type':_0x2cf224['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x46d1d0,_0x516a8e={}){const _0x265856=this['editor']['plugins']['get']('TrackChangesEditing'),_0xafd322=this['_getSuggestionBlocks'](_0x161906=>_0x161906['is']('element','listItem')&&'numbered'===_0x161906['getAttribute']('listType'));if(_0xafd322['length']<0x1)return;const _0x32b0b3=_0xafd322['map'](_0x21305c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x21305c,'before'),this['editor']['model']['createPositionAt'](_0x21305c,0x0)));this['editor']['model']['change'](()=>{_0x265856['markMultiRangeBlockFormat'](_0x32b0b3,{'commandName':'listReversed','commandParams':[{'reversed':_0x516a8e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5ae4d7,_0x12f738={}){const _0x70ab8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23acf6=this['_getSuggestionBlocks'](_0x8334b7=>_0x8334b7['is']('element','listItem')&&'numbered'===_0x8334b7['getAttribute']('listType'));if(_0x23acf6['length']<0x1)return;const _0x47c0d1=_0x23acf6['map'](_0x37695f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37695f,'before'),this['editor']['model']['createPositionAt'](_0x37695f,0x0)));this['editor']['model']['change'](()=>{_0x70ab8e['markMultiRangeBlockFormat'](_0x47c0d1,{'commandName':'listStart','commandParams':[{'startIndex':_0x12f738['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x229e0c){if('formatBlock'!=_0x229e0c['type']&&'formatInline'!=_0x229e0c['type'])return;const _0x4d4430=this['editor']['locale'],{data:_0x56ddf3}=_0x229e0c;if(!_0x56ddf3)return;let _0x3dfecc,_0x35e5f0;switch(_0x56ddf3['commandName']){case'listStyle':_0x3dfecc='*Change\x20to:*\x20%0',_0x35e5f0={'type':'format','content':o(_0x4d4430,_0x3dfecc,o(_0x4d4430,this['_getTranslationKeyForListStyle'](_0x56ddf3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3dfecc=_0x56ddf3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x35e5f0={'type':'format','content':o(_0x4d4430,_0x3dfecc)};break;case'listStart':_0x3dfecc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x35e5f0={'type':'format','content':o(_0x4d4430,_0x3dfecc,_0x56ddf3['commandParams'][0x0]['startIndex'])};}return _0x35e5f0;}['_getSuggestionBlocksForListStyle'](){const _0x3d5e71=this['editor']['plugins']['get']('LegacyListUtils');let _0x2a24a3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2a24a3[0x0]?.['is']('element','listItem')&&_0x2a24a3['unshift'](..._0x3d5e71['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2a24a3[_0x2a24a3['length']-0x1]?.['is']('element','listItem')&&_0x2a24a3['push'](..._0x3d5e71['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2a24a3=[...new Set(_0x2a24a3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2a24a3=_0x2a24a3['filter'](_0x5d1c5f=>_0x5d1c5f['is']('element','listItem'))),_0x2a24a3;}['_getSuggestionBlocks'](_0xc92950){const _0x1f2554=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a1268=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc92950)['map'](_0x3d66e6=>{const _0x4a8fdb=this['editor']['model']['createPositionAt'](_0x3d66e6,0x0);return[..._0x1f2554['getSiblingNodes'](_0x4a8fdb,'backward'),..._0x1f2554['getSiblingNodes'](_0x4a8fdb,'forward')];})['flat']();return _0x3a1268=[...new Set(_0x3a1268)],_0x3a1268;}['_getTranslationKeyForListStyle'](_0x527471){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x527471)||'default')['toUpperCase']()+'_LIST_'+_0x527471['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x519785{['afterInit'](){const _0x20804a=this['editor'];if(!_0x20804a['plugins']['has']('MediaEmbedEditing'))return;const _0x2b16bd=_0x20804a['plugins']['get']('TrackChangesEditing'),_0x1488d5=_0x20804a['locale'];_0x2b16bd['enableCommand']('mediaEmbed'),_0x2b16bd['descriptionFactory']['registerElementLabel']('media',_0x56febe=>o(_0x1488d5,'ELEMENT_MEDIA',_0x56febe)),_0x20804a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2a97fe,{writer:_0x79f66a,options:_0x144394})=>{if(_0x144394['showSuggestionHighlights'])return _0x79f66a['createEmptyElement']('div');},'converterPriority':'high'}),_0x20804a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x219d68,_0x2a2329,_0x554805)=>{_0x554805['options']['showSuggestionHighlights']&&_0x219d68['stop']();},{'priority':'high'});}}class lt extends _0x519785{['afterInit'](){const _0x51a356=this['editor'];_0x51a356['plugins']['has']('MentionEditing')&&_0x51a356['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x519785{['afterInit'](){const _0x149cd4=this['editor'];if(!_0x149cd4['plugins']['has']('MergeFieldsEditing'))return;const _0x260f2f=_0x149cd4['plugins']['get']('TrackChangesEditing'),_0x38d2a8=_0x149cd4['locale'];_0x260f2f['enableCommand']('insertMergeField'),_0x260f2f['enableCommand']('insertMergeFieldBlock'),_0x260f2f['enableCommand']('insertMergeFieldImage'),_0x260f2f['descriptionFactory']['registerElementLabel']('mergeField',_0x5c8464=>o(_0x38d2a8,'ELEMENT_MERGE_FIELD',_0x5c8464)),_0x260f2f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x14f0e4=>o(_0x38d2a8,'ELEMENT_MERGE_FIELD',_0x14f0e4)),_0x260f2f['descriptionFactory']['registerDescriptionCallback'](_0x2858d2=>{if('insertion'!=_0x2858d2['type']&&'deletion'!=_0x2858d2['type'])return;const _0x2751bf=_0x2858d2['getContainedElement']();if(null==_0x2751bf)return;const _0x2793c1=_0x149cd4['plugins']['get']('MergeFieldsEditing');let _0x14d517;switch(_0x2793c1['getMergeFieldType'](_0x2751bf)){case null:return;case'image':{const _0x116f52=_0x2793c1['unwrapAffixes'](_0x2751bf['getAttribute']('src'));_0x14d517=_0x2793c1['getLabel'](_0x116f52)||_0x116f52;break;}default:{const _0x4778e3=_0x2751bf['getAttribute']('id');_0x14d517=_0x2793c1['getLabel'](_0x4778e3)||_0x4778e3;break;}}return'insertion'==_0x2858d2['type']?{'type':'insertion','content':o(_0x38d2a8,'*Insert:*\x20%0','\x22'+_0x14d517+'\x22\x20'+o(_0x38d2a8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x38d2a8,'*Remove:*\x20%0','\x22'+_0x14d517+'\x22\x20'+o(_0x38d2a8,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x519785{['afterInit'](){const _0x4d00b1=this['editor'],_0x493c97=_0x4d00b1['plugins']['get']('TrackChangesEditing');_0x4d00b1['plugins']['has']('MultiLevelList')&&(_0x493c97['enableDefaultAttributesIntegration']('multiLevelList'),_0x493c97['registerBlockAttribute']('listMarkerStyle'),_0x493c97['descriptionFactory']['registerDescriptionCallback'](_0x3233ec=>this['handleDescriptions'](_0x3233ec)));}['handleDescriptions'](_0x2e8189){const _0x2e9e63=this['editor']['locale'],{data:_0x38f3f9}=_0x2e8189,_0x22e81f={'type':'format','content':''};if(_0x38f3f9&&'listMarkerStyle'==_0x38f3f9['key']){if(!_0x38f3f9['oldValue'])return{'type':'format','content':o(_0x2e9e63,'*Set\x20format:*\x20%0',o(_0x2e9e63,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x38f3f9['newValue']+')'};if(!_0x38f3f9['newValue']){let _0xc63a61=_0x2e8189['head'];for(;_0xc63a61;){if(_0xc63a61['data']&&'listType'==_0xc63a61['data']['key']&&_0xc63a61['data']['newValue'])return _0x22e81f;_0xc63a61=_0xc63a61['next'];}return{'type':'format','content':o(_0x2e9e63,'*Remove\x20format:*\x20%0',o(_0x2e9e63,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x38f3f9['oldValue']+')'};}}}}class pt extends _0x519785{['afterInit'](){const _0x1c8aeb=this['editor'];if(!_0x1c8aeb['plugins']['has']('PageBreakEditing'))return;_0x1c8aeb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4b2acb=_0x1c8aeb['plugins']['get']('TrackChangesEditing'),_0x1c002a=_0x1c8aeb['locale'];_0x4b2acb['descriptionFactory']['registerElementLabel']('pageBreak',_0x35c1a4=>o(_0x1c002a,'ELEMENT_PAGE_BREAK',_0x35c1a4));}}class kt extends _0x519785{['afterInit'](){const _0x2d5e55=this['editor'];if(!_0x2d5e55['plugins']['has']('Paragraph'))return;const _0x186d19=_0x2d5e55['locale'],_0x4fbcff=_0x2d5e55['plugins']['get']('TrackChangesEditing');_0x4fbcff['descriptionFactory']['registerElementLabel']('paragraph',_0x1fc88f=>o(_0x186d19,'ELEMENT_PARAGRAPH',_0x1fc88f)),_0x4fbcff['enableDefaultAttributesIntegration']('paragraph'),_0x4fbcff['enableCommand']('insertParagraph'),_0x2d5e55['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2d5e55),{'priority':'highest'}),_0x2d5e55['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc6a0df,_0x22fa77,_0xf66904)=>{_0xf66904['options']['showSuggestionHighlights']&&nr(_0x2d5e55,{'showActiveMarker':!0x1})(_0xc6a0df,_0x22fa77,_0xf66904);},{'priority':'highest'});const _0x3afa60=_0x4fbcff['descriptionFactory'];_0x3afa60['registerDescriptionCallback'](_0x37bd0f=>{if('insertion'!==_0x37bd0f['type'])return;const {start:_0x316d81,end:_0x5082ed}=_0x37bd0f['getFirstRange']();if(!_0x316d81['isTouching'](_0x5082ed)||!_0x316d81['nodeAfter'])return;const _0x335605=_0x2d5e55['model']['schema'],_0x497e16=_0x316d81['nodeAfter'];return _0x335605['isBlock'](_0x497e16)&&!_0x335605['isLimit'](_0x497e16)&&_0x335605['checkChild'](_0x497e16,'$text')?{'type':'insertion','content':o(_0x186d19,'*Insert:*\x20%0',_0x3afa60['getItemLabel'](_0x497e16,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x440628=this['editor'],_0x18cfd3=_0x440628['locale'];_0x440628['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2435f8=>{if('formatBlock'!=_0x2435f8['type'])return;const {data:_0x2c1056}=_0x2435f8;return _0x2c1056&&'paragraph'==_0x2c1056['commandName']?{'type':'format','content':o(_0x18cfd3,'*Change\x20to:*\x20%0',o(_0x18cfd3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3128ca,{showActiveMarker:_0x430c8a=!0x0}={}){return(_0x48c89a,_0xf6c12e,_0x3d2138)=>{const _0x4c3b7c=_0x3128ca['plugins']['get']('TrackChangesEditing'),_0x3b25cc=_0xf6c12e['markerRange']['start'],_0x563f82=_0xf6c12e['markerRange']['end'],_0x47acf2=_0x3128ca['model']['schema'];if(!_0x3b25cc['isTouching'](_0x563f82)||!_0x3b25cc['nodeAfter'])return;const _0x1796f8=_0x3b25cc['nodeAfter'];if(_0x47acf2['isBlock'](_0x1796f8)&&!_0x47acf2['isLimit'](_0x1796f8)&&_0x47acf2['checkChild'](_0x1796f8,'$text')){if(!_0x3d2138['consumable']['consume'](_0xf6c12e['markerRange'],_0x48c89a['name']))return;const {id:_0x51af6c,authorId:_0x1233e9}=_0x4c3b7c['_splitMarkerName'](_0xf6c12e['markerName']),_0x299905=_0x3d2138['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x51af6c,'data-author-id':_0x1233e9}),_0xdb0187=_0x3d2138['mapper']['toViewPosition'](_0x563f82);_0x430c8a&&_0x4c3b7c['activeMarkers']['includes'](_0xf6c12e['markerName'])&&_0x3d2138['writer']['addClass']('ck-suggestion-marker--active',_0x299905),_0x3d2138['writer']['insert'](_0xdb0187,_0x299905),_0x3d2138['mapper']['bindElementToMarker'](_0x299905,_0xf6c12e['markerName']);}};}class wt extends _0x519785{['afterInit'](){const _0x224d41=this['editor'];_0x224d41['commands']['get']('replaceSource')&&_0x224d41['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x519785{['afterInit'](){const _0xa31dbd=this['editor'];if(!_0xa31dbd['plugins']['has']('RemoveFormatEditing'))return;_0xa31dbd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b8f7b=this['editor'];_0x5b8f7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x442c12=>{if('formatBlock'!=_0x442c12['type']&&'formatInline'!=_0x442c12['type'])return;const {data:_0x1e7c6f}=_0x442c12;return _0x1e7c6f&&'removeFormat'==_0x1e7c6f['commandName']?{'type':'format','content':o(_0x5b8f7b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x519785{['afterInit'](){const _0x2892a3=this['editor'];if(!_0x2892a3['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x549a8f=_0x2892a3['plugins']['get']('TrackChangesEditing');_0x549a8f['enableCommand']('goToPreviousRestrictedEditingException'),_0x549a8f['enableCommand']('goToNextRestrictedEditingException');const _0x227c17=_0x2892a3['plugins']['get']('RestrictedEditingModeEditing');_0x227c17['enableCommand']('trackChanges'),_0x227c17['enableCommand']('acceptSuggestion'),_0x227c17['enableCommand']('discardSuggestion'),_0x227c17['enableCommand']('acceptAllSuggestions'),_0x227c17['enableCommand']('discardAllSuggestions'),_0x227c17['enableCommand']('acceptSelectedSuggestions'),_0x227c17['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x519785{['afterInit'](){const _0x1845ca=this['editor'];if(!_0x1845ca['plugins']['has']('ShiftEnter'))return;const _0x275fcd=_0x1845ca['plugins']['get']('TrackChangesEditing');_0x275fcd['enableCommand']('shiftEnter'),_0x1845ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1845ca),{'priority':'high'}),_0x1845ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1845ca),{'priority':'high'}),_0x1845ca['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ab983,_0x7f903c,_0x5980b)=>{_0x5980b['options']['showSuggestionHighlights']&&je(_0x1845ca,{'showActiveMarker':!0x1})(_0x5ab983,_0x7f903c,_0x5980b);}),_0x275fcd['descriptionFactory']['registerElementLabel']('softBreak',_0x444392=>o(_0x1845ca['locale'],'ELEMENT_LINE_BREAK',_0x444392));}}function je(_0x283f15,{showActiveMarker:_0x185147=!0x0}={}){return(_0x1aaa23,_0x5ac5aa,_0x1d8c47)=>{const _0xbbdf52=_0x283f15['plugins']['get']('TrackChangesEditing');if(!_0x1d8c47['consumable']['test'](_0x5ac5aa['markerRange'],_0x1aaa23['name']))return;const _0x204d29=_0x283f15['model'];for(const _0x1a9794 of _0x5ac5aa['markerRange']['getItems']()){if(!_0x1a9794['is']('element','softBreak'))continue;const _0x38d4fc='deletion'==_0x5ac5aa['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3d8274,authorId:_0x359b50}=_0xbbdf52['_splitMarkerName'](_0x5ac5aa['markerName']),_0x4236d0=_0x1d8c47['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38d4fc,'data-suggestion':_0x3d8274,'data-author-id':_0x359b50}),_0x5a7dde=_0x1d8c47['mapper']['toViewPosition'](_0x204d29['createPositionBefore'](_0x1a9794));_0x185147&&_0xbbdf52['activeMarkers']['includes'](_0x5ac5aa['markerName'])&&_0x1d8c47['writer']['addClass']('ck-suggestion-marker--active',_0x4236d0),_0x1d8c47['writer']['insert'](_0x5a7dde,_0x4236d0),_0x1d8c47['mapper']['bindElementToMarker'](_0x4236d0,_0x5ac5aa['markerName']);}};}class St extends _0x519785{['afterInit'](){const _0x496abb=this['editor'],_0x283697=_0x496abb['model'],_0x2865e9=_0x496abb['locale'];if(!_0x496abb['plugins']['has']('StandardEditingModeEditing'))return;const _0x10f3b1=_0x496abb['plugins']['get']('TrackChangesEditing'),_0x2e5795='restrictedEditingException',_0x288d74=_0x496abb['commands']['get'](_0x2e5795);_0x10f3b1['enableCommand'](_0x2e5795,(_0x2febbc,_0x52f1b4={})=>{const _0x28d0e6=_0x283697['document']['selection'];if(_0x28d0e6['isCollapsed'])return void _0x2febbc(_0x52f1b4);const _0x33c8c7=void 0x0!==_0x52f1b4['forceValue']?_0x52f1b4['forceValue']:!_0x288d74['value'];_0x283697['change'](()=>{const _0x49139a=Array['from'](_0x28d0e6['getRanges']());for(const _0x5b08d2 of _0x49139a){const _0x56e901=_0x33c8c7?[_0x5b08d2]:io(_0x2e5795,_0x5b08d2,_0x283697);for(const _0x363357 of _0x56e901)_0x10f3b1['markInlineFormat'](_0x363357,{'commandName':_0x2e5795,'commandParams':[{'forceValue':_0x33c8c7}]});}});}),_0x10f3b1['descriptionFactory']['registerDescriptionCallback'](_0x56b168=>{if('formatBlock'!=_0x56b168['type']&&'formatInline'!=_0x56b168['type'])return;const {data:_0x8a9424}=_0x56b168;return _0x8a9424&&_0x8a9424['commandName']==_0x2e5795?_0x8a9424['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2865e9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2865e9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x519785{['afterInit'](){const _0x2b54cf=this['editor'];if(!_0x2b54cf['plugins']['has']('Style')||!_0x2b54cf['plugins']['has']('DataSchema'))return;const _0x53f39e=_0x2b54cf['plugins']['get']('TrackChangesEditing'),_0x13b8bd=_0x2b54cf['locale'],_0x1a6a99=_0x2b54cf['config']['get']('style')||{},_0x9a9b0e=_0x2b54cf['plugins']['get']('GeneralHtmlSupport'),_0x3547be=_0x2b54cf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2b54cf['plugins']['get']('DataSchema'),_0x1a6a99['definitions']);_0x53f39e['enableDefaultAttributesIntegration']('style');const _0x231318=new Set();for(const _0x17d2b4 of _0x3547be['block']){const _0x42d9e4=_0x9a9b0e['getGhsAttributeNameForElement'](_0x17d2b4['element']);_0x231318['add'](_0x42d9e4);}const _0x4a6d11=new Set();for(const _0x505407 of _0x3547be['inline']){const _0x2a5bd6=_0x9a9b0e['getGhsAttributeNameForElement'](_0x505407['element']);_0x4a6d11['add'](_0x2a5bd6);for(const _0x4dde06 of _0x505407['ghsAttributes'])_0x4a6d11['add'](_0x4dde06);}for(const _0x19bc7c of _0x231318)_0x53f39e['registerBlockAttribute'](_0x19bc7c),_0x53f39e['descriptionFactory']['registerAttributeLabel'](_0x19bc7c,o(_0x13b8bd,'FORMAT_STYLE'));for(const _0x118686 of _0x4a6d11)_0x53f39e['registerInlineAttribute'](_0x118686),_0x53f39e['descriptionFactory']['registerAttributeLabel'](_0x118686,o(_0x13b8bd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x548cb3=this['editor'],_0x1544d9=_0x548cb3['locale'];_0x548cb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50101a=>{if('formatBlock'!=_0x50101a['type']&&'formatInline'!=_0x50101a['type'])return;const {data:_0x4e9652}=_0x50101a;return _0x4e9652&&'style'===_0x4e9652['commandName']?_0x4e9652['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1544d9,'*Set\x20format:*\x20%0',_0x4e9652['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1544d9,'*Remove\x20format:*\x20%0',_0x4e9652['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x519785{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x328fef){super(_0x328fef),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1b3945=this['editor'],_0x3598d0=_0x1b3945['model']['document']['selection'];if(!_0x1b3945['plugins']['has']('TableEditing'))return;const _0x343c06=_0x1b3945['locale'],_0x50119d=_0x1b3945['plugins']['get']('TrackChangesEditing'),_0x4c86af=_0x1b3945['plugins']['get']('TableUtils');_0x50119d['descriptionFactory']['registerElementLabel']('table',_0x1644fb=>o(_0x343c06,'ELEMENT_TABLE',_0x1644fb)),this['_setupColumnsRowsFixing'](),_0x50119d['enableCommand']('insertTable'),_0x50119d['enableCommand']('selectTableRow'),_0x50119d['enableCommand']('selectTableColumn');for(const _0x48cddb of['insertTableRowAbove','insertTableRowBelow']){const _0x293880=_0x1b3945['commands']['get'](_0x48cddb);_0x50119d['enableCommand'](_0x48cddb,_0x32066f=>{_0x1b3945['model']['change'](_0x26c5e5=>{_0x32066f();const _0x1d291a='above'===_0x293880['order'],_0x372a30=_0x4c86af['getSelectionAffectedTableCells'](_0x3598d0),_0x1f14e5=_0x4c86af['getRowIndexes'](_0x372a30),_0x3509de=_0x1d291a?_0x1f14e5['first']-0x1:_0x1f14e5['last']+0x1,_0x1248cc=_0x372a30[0x0]['findAncestor']('table'),_0x9ba5af=_0x4c86af['createTableWalker'](_0x1248cc,{'startRow':_0x3509de,'endRow':_0x3509de}),_0x451e47=Array['from'](_0x9ba5af)['map'](_0x3593f3=>_0x26c5e5['createRangeOn'](_0x3593f3['cell']));_0x50119d['markMultiRangeInsertion'](_0x451e47,'tableRow');});});}for(const _0x496843 of['insertTableColumnLeft','insertTableColumnRight']){const _0x48b141=_0x1b3945['commands']['get'](_0x496843);_0x50119d['enableCommand'](_0x496843,_0x2f23ac=>{_0x1b3945['model']['change'](_0x2e5c5f=>{_0x2f23ac();const _0x5e8fb9='left'===_0x48b141['order'],_0x384cd7=_0x4c86af['getSelectionAffectedTableCells'](_0x3598d0),_0x1ddb3b=_0x4c86af['getColumnIndexes'](_0x384cd7),_0x4aeef3=_0x5e8fb9?_0x1ddb3b['first']-0x1:_0x1ddb3b['last']+0x1,_0x38a7bc=_0x384cd7[0x0]['findAncestor']('table'),_0x440cbd=_0x4c86af['createTableWalker'](_0x38a7bc,{'startRow':0x0,'column':_0x4aeef3,'includeAllSlots':!0x1}),_0x5dcefe=Array['from'](_0x440cbd)['map'](_0x48e376=>_0x2e5c5f['createRangeOn'](_0x48e376['cell']));_0x50119d['markMultiRangeInsertion'](_0x5dcefe,'tableColumn');});});}for(const _0x331a25 of['removeTableRow','removeTableColumn']){const _0x20cf0f=_0x331a25['substr'](0xb),_0x5774bd=_0x20cf0f['toLowerCase'](),_0x2b0320=_0x5774bd['substr'](0x0,0x3)+'span',_0x2ee515='table'+_0x20cf0f,_0x5e44b8='min'+_0x20cf0f,_0xb93d6a='max'+_0x20cf0f;_0x50119d['enableCommand'](_0x331a25,()=>{_0x1b3945['model']['change'](_0x25f98d=>{const _0x43a2c7=_0x4c86af['getSelectionAffectedTableCells'](_0x3598d0),_0x1c6ac7=_0x43a2c7[0x0]['findAncestor']('table');let _0x216cc7;if('removeTableRow'==_0x331a25){const _0x1ae17f=_0x4c86af['getRowIndexes'](_0x43a2c7);_0x216cc7={'startRow':_0x1ae17f['first'],'endRow':_0x1ae17f['last'],'includeAllSlots':!0x0};}else{const _0x3849b3=_0x4c86af['getColumnIndexes'](_0x43a2c7);_0x216cc7={'startColumn':_0x3849b3['first'],'endColumn':_0x3849b3['last'],'includeAllSlots':!0x0};}const _0x46aabb=_0x4c86af['createTableWalker'](_0x1c6ac7,_0x216cc7),_0x385e4f=Array['from'](_0x46aabb)['map'](({cell:_0x40029e})=>_0x40029e),_0x1c20b5=Ne(_0x385e4f['filter'](_0x2ab7a9=>_0x2ab7a9['hasAttribute'](_0x2b0320))),_0x1074ce=Ne(_0x385e4f['filter'](_0x5d1cee=>!_0x5d1cee['hasAttribute'](_0x2b0320)))['map'](_0xa64ef=>_0x25f98d['createRangeOn'](_0xa64ef)),_0x5175ea=_0x50119d['markMultiRangeDeletion'](_0x1074ce,_0x2ee515);if(_0x5175ea&&('tableRow'==_0x5175ea['subType']||'tableColumn'==_0x5175ea['subType'])){const _0x1456f9=this['_getSuggestionCoords'](_0x5175ea);for(const _0x3b0a4e of _0x1c20b5){const _0x3d5c62=_0x25f98d['createRangeOn'](_0x3b0a4e),_0x327c39=_0x4c86af['getCellLocation'](_0x3b0a4e),_0x2a8616=_0x3b0a4e['getAttribute'](_0x2b0320)-0x1,_0x1609df=_0x1456f9[_0x5e44b8],_0x587f26=_0x1456f9[_0xb93d6a];_0x1609df<=_0x327c39[_0x5774bd]&&_0x327c39[_0x5774bd]+_0x2a8616<=_0x587f26&&_0x5175ea['addRange'](_0x3d5c62);}}});});}function _0x221dc7(_0x12876e){const _0x50f9b8=Array['from'](_0x3598d0['getRanges']())['map'](_0x1d273e=>_0x45518e['fromRange'](_0x1d273e));_0x1b3945['model']['change'](_0x5f5993=>{const _0x590256=_0x5f5993['batch'];_0x12876e=_0x12876e['filter'](_0x2d7e42=>'$graveyard'!=_0x2d7e42['root']['rootName']),_0x5f5993['setSelection'](_0x12876e),_0x1b3945['commands']['get']('removeTableRow')['refresh'](),_0x1b3945['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1b3945['model']['enqueueChange'](()=>{_0x1b3945['model']['enqueueChange'](_0x590256,_0x43c85a=>{const _0xdbc988=_0x50f9b8['filter'](_0x5a2b10=>'$graveyard'!=_0x5a2b10['root']['rootName']);_0xdbc988['length']>0x0&&_0x43c85a['setSelection'](_0xdbc988);for(const _0x3fd60e of _0x50f9b8)_0x3fd60e['detach']();});});});}function _0x13c79c(_0x2fcf78){_0x1b3945['model']['change'](_0x3df516=>{const _0x5acd79=Array['from'](_0x3598d0['getRanges']())['map'](_0x21c74c=>_0x45518e['fromRange'](_0x21c74c)),_0x4a6cc5=[];for(const _0x3c13d4 of _0x2fcf78)for(const _0x2fcbf7 of _0x3c13d4['getItems']({'shallow':!0x0}))_0x4a6cc5['push'](_0x2fcbf7);for(const _0x1e22e0 of _0x4a6cc5)'$graveyard'!=_0x1e22e0['root']['rootName']&&(_0x3df516['setSelection'](_0x3df516['createPositionAt'](_0x1e22e0,0x0)),_0x1b3945['commands']['get']('removeTableColumn')['refresh'](),_0x1b3945['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x390212=_0x5acd79['filter'](_0x1ac6c4=>'$graveyard'!=_0x1ac6c4['root']['rootName']);_0x390212['length']>0x0&&_0x3df516['setSelection'](_0x390212);for(const _0x26bcb0 of _0x5acd79)_0x26bcb0['detach']();});}function _0x3f2516(_0x262902,_0x1a42cc){return _0x1a42cc['every'](_0x48e6d2=>_0x262902['some'](_0x231afa=>_0x231afa['end']['isEqual'](_0x48e6d2['start'])||_0x48e6d2['end']['isEqual'](_0x231afa['start'])));}function _0x15f29b(_0x3a07f8,_0x2334f8){return!_0x3a07f8['some'](_0x52903b=>_0x2334f8['some'](_0x176245=>_0x52903b['isIntersecting'](_0x176245)))&&_0x3a07f8['some'](_0x5ac287=>_0x2334f8['some'](_0x4c78ea=>_0x5ac287['end']['isTouching'](_0x4c78ea['start'])));}_0x1b3945['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f119,_0x2aa5f4,_0x4972fb)=>{if(!_0x4972fb['options']['showSuggestionHighlights'])return;const _0x1698b5=_0x2aa5f4['item'];if(!_0x1698b5||!_0x1698b5['is']('element','tableCell'))return;const _0x503b7a=_0x4972fb['mapper']['toViewElement'](_0x1698b5);if(_0x503b7a){const {id:_0x458a5b,authorId:_0x5656da}=_0x50119d['_splitMarkerName'](_0x2aa5f4['markerName']);_0x55ab0b(_0x503b7a,_0x4972fb['writer'],(_0x54dbd1,_0x4d4e4a,_0x28ee12)=>{_0x28ee12['addClass'](_0x2b7eab(_0x4d4e4a['classes']),_0x54dbd1),_0x28ee12['setAttribute']('data-suggestion-id',_0x458a5b,_0x54dbd1),_0x28ee12['setAttribute']('data-author-id',_0x5656da,_0x54dbd1);},(_0x29c0e1,_0x21c212,_0x4d64d7)=>{_0x4d64d7['removeClass'](_0x2b7eab(_0x21c212['classes']),_0x29c0e1),_0x4d64d7['removeAttribute']('data-suggestion-id',_0x29c0e1),_0x4d64d7['removeAttribute']('data-author-id',_0x29c0e1);});}},{'priority':'highest'}),_0x50119d['descriptionFactory']['registerDescriptionCallback'](_0x363a0f=>{if('insertion'!=_0x363a0f['type']&&'deletion'!=_0x363a0f['type'])return;const _0x3aeaf2=_0x363a0f['getContainedElement']();if(null!=_0x3aeaf2&&_0x3aeaf2['is']('element','table')){if('insertion'==_0x363a0f['type']){const _0x16def6=_0x363a0f['getItems']()['filter'](_0x8401fc=>_0x8401fc['is']('$textProxy'))['map'](_0x50afe3=>_0x50afe3['data']);if(_0x16def6['length'])return{'type':'insertion','content':o(_0x343c06,'*Insert:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x16def6['join']('\x20')+'\x22'))};}if('deletion'==_0x363a0f['type']){const _0x5ee301=_0x363a0f['getItems']()['filter'](_0x489fa0=>_0x489fa0['is']('$textProxy'))['map'](_0x4c4e48=>_0x4c4e48['data']);if(_0x5ee301['length'])return{'type':'deletion','content':o(_0x343c06,'*Remove:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5ee301['join']('\x20')+'\x22'))};}}}),_0x50119d['descriptionFactory']['registerDescriptionCallback'](_0x3fef81=>{if('tableRow'==_0x3fef81['subType']){const _0x348258=_0x3fef81['getItems']()['filter'](_0x47dc71=>_0x47dc71['is']('$textProxy'))['map'](_0x2204ed=>_0x2204ed['data']),_0x291013=this['_getSuggestionCoords'](_0x3fef81),_0x5baec6=_0x291013['maxRow']-_0x291013['minRow']+0x1;if('insertion'==_0x3fef81['type'])return _0x348258['length']?{'type':'insertion','content':o(_0x343c06,'*Insert:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5baec6,'\x22'+_0x348258['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x343c06,'*Insert:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_ROW',_0x5baec6))};if('deletion'==_0x3fef81['type'])return _0x348258['length']?{'type':'deletion','content':o(_0x343c06,'*Remove:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5baec6,'\x22'+_0x348258['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x343c06,'*Remove:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_ROW',_0x5baec6))};}if('tableColumn'==_0x3fef81['subType']){const _0xf1e43=_0x3fef81['getItems']()['filter'](_0x7dff5b=>_0x7dff5b['is']('$textProxy'))['map'](_0x1da2db=>_0x1da2db['data']),_0x5c3f6c=this['_getSuggestionCoords'](_0x3fef81),_0x21b7cd=_0x5c3f6c['maxColumn']-_0x5c3f6c['minColumn']+0x1;if('insertion'==_0x3fef81['type'])return _0xf1e43['length']?{'type':'insertion','content':o(_0x343c06,'*Insert:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x21b7cd,'\x22'+_0xf1e43['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x343c06,'*Insert:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_COLUMN',_0x21b7cd))};if('deletion'==_0x3fef81['type'])return _0xf1e43['length']?{'type':'deletion','content':o(_0x343c06,'*Remove:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x21b7cd,'\x22'+_0xf1e43['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x343c06,'*Remove:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_COLUMN',_0x21b7cd))};}}),_0x50119d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x221dc7),_0x50119d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x221dc7),_0x50119d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13c79c),_0x50119d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13c79c),_0x50119d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3f2516),_0x50119d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3f2516),_0x50119d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x15f29b),_0x50119d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x15f29b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x537613=this['editor'],_0x93f08a=_0x537613['model']['document']['selection'];return(_0x47f535,_0x2e322a)=>{_0x537613['model']['change'](_0x208286=>{const {commandName:_0x1f33eb,commandParams:_0x40d83f}=_0x2e322a;let _0x22bf09=_0x47f535[0x0]['end']['nodeBefore'];_0x40d83f&&_0x40d83f[0x0]&&!0x1===_0x40d83f[0x0]['forceValue']&&(_0x22bf09=_0x47f535[0x0]['start']['nodeAfter']);const _0x415c6e=_0x208286['createRangeIn'](_0x22bf09);if('$graveyard'==_0x415c6e['root']['rootName'])return;const _0x1819c7=Array['from'](_0x93f08a['getRanges']())['map'](_0x3766fd=>_0x45518e['fromRange'](_0x3766fd));_0x208286['setSelection'](_0x415c6e),_0x537613['commands']['get'](_0x1f33eb)['refresh'](),_0x40d83f['push']({'forceDefaultExecution':!0x0}),_0x537613['execute'](_0x1f33eb,..._0x40d83f);const _0x23f1b8=_0x1819c7['filter'](_0x1be799=>'$graveyard'!=_0x1be799['root']['rootName']);_0x23f1b8['length']>0x0&&_0x208286['setSelection'](_0x23f1b8);for(const _0x3c9767 of _0x1819c7)_0x3c9767['detach']();});};}['_getCoordsForCells'](_0x333678){const _0x1d48ed=this['editor']['plugins']['get']('TableUtils');let _0x4d63d8=Number['MAX_SAFE_INTEGER'],_0x1a7d15=Number['MIN_SAFE_INTEGER'],_0x11b0b2=Number['MAX_SAFE_INTEGER'],_0x2528cf=Number['MIN_SAFE_INTEGER'];for(const _0x5a9b42 of _0x333678){if('$graveyard'==_0x5a9b42['root']['rootName'])continue;const {row:_0xc86608,column:_0x14210c}=_0x1d48ed['getCellLocation'](_0x5a9b42),_0x3ec9a5=_0x5a9b42['hasAttribute']('rowspan')?_0x5a9b42['getAttribute']('rowspan')-0x1:0x0,_0x42960b=_0x5a9b42['hasAttribute']('colspan')?_0x5a9b42['getAttribute']('colspan')-0x1:0x0;_0x4d63d8=_0xc86608<_0x4d63d8?_0xc86608:_0x4d63d8,_0x1a7d15=_0xc86608+_0x3ec9a5>_0x1a7d15?_0xc86608+_0x3ec9a5:_0x1a7d15,_0x11b0b2=_0x14210c<_0x11b0b2?_0x14210c:_0x11b0b2,_0x2528cf=_0x14210c+_0x42960b>_0x2528cf?_0x14210c+_0x42960b:_0x2528cf;}return{'minRow':_0x4d63d8,'maxRow':_0x1a7d15,'minColumn':_0x11b0b2,'maxColumn':_0x2528cf};}['_setupColumnsRowsFixing'](){const _0x476097=this['editor'],_0x349c88=_0x476097['plugins']['get']('TrackChangesEditing'),_0x4af111=_0x476097['plugins']['get']('TableUtils');_0x476097['model']['document']['on']('change:data',()=>{const _0x296d39=Array['from'](_0x476097['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30ec1b,data:_0x39378a}of _0x296d39){const {group:_0x59ba92,id:_0x56e6db,subType:_0x515f89}=_0x349c88['_splitMarkerName'](_0x30ec1b);if('suggestion'!=_0x59ba92)continue;if(null!=_0x39378a['oldRange'])continue;const _0x480be9=_0x349c88['getSuggestion'](_0x56e6db);this['_tablePostFixingSubtypes']['includes'](_0x515f89)&&this['_tableSuggestions']['add'](_0x480be9);}},{'priority':'low'});const _0xdd54fe=(_0x1fe0ca,_0x1e8926)=>{let _0x4713c5=!0x1;const _0x26ad4a=_0x1e8926['createRangeOn'](_0x1fe0ca),_0x39adaa=_0x1fe0ca['findAncestor']('table'),_0x31a022=_0x4af111['getCellLocation'](_0x1fe0ca);for(const _0x3f70c8 of this['_tableSuggestions']){const _0x4eea10=_0x3f70c8['subType'],_0xc9c504=_0x4eea10['startsWith']('tablePaste'),_0xc3e76b=_0x4eea10['substr'](_0xc9c504?0xa:0x5),_0x3c2bf3=_0xc3e76b['toLowerCase'](),_0xf070b3=_0x3c2bf3['substr'](0x0,0x3)+'span',_0xe9c3fd='min'+_0xc3e76b,_0x3461b5='max'+_0xc3e76b;if(!_0x3f70c8['isInContent'])continue;if(_0x39adaa!=_0x3f70c8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3f70c8['isIntersectingWithRange'](_0x26ad4a))continue;const _0x142931=_0x1fe0ca['hasAttribute'](_0xf070b3)?_0x1fe0ca['getAttribute'](_0xf070b3)-0x1:0x0,_0x5efa3b=this['_getSuggestionCoords'](_0x3f70c8),_0x54f5ee=_0x5efa3b[_0xe9c3fd],_0x11ce34=_0x5efa3b[_0x3461b5];_0x54f5ee<=_0x31a022[_0x3c2bf3]&&_0x31a022[_0x3c2bf3]+_0x142931<=_0x11ce34&&(_0x3f70c8['addRange'](_0x26ad4a),_0x4713c5=!0x0);}return _0x4713c5;};_0x476097['model']['document']['registerPostFixer'](_0x11113a=>{let _0x571247=!0x1;for(const _0x5cb84b of _0x476097['model']['document']['differ']['getChanges']())if('insert'==_0x5cb84b['type']){if('tableRow'==_0x5cb84b['name']){for(const _0xee78f of _0x5cb84b['position']['nodeAfter']['getChildren']())_0x571247=_0x571247||_0xdd54fe(_0xee78f,_0x11113a);}else'tableCell'==_0x5cb84b['name']&&(_0x571247=_0x571247||_0xdd54fe(_0x5cb84b['position']['nodeAfter'],_0x11113a));}return _0x571247;});}['_getSuggestionCoords'](_0x1518db){return this['_getCoordsForCells'](_0x1518db['getRanges']()['map'](_0x19c8e0=>_0x19c8e0['start']['nodeAfter']));}}function Ne(_0x2321f4){return Array['from'](new Set(_0x2321f4)['values']());}class _t extends _0x519785{static get['requires'](){return[At];}['afterInit'](){const _0x3ecbc4=this['editor'],_0x335651=_0x3ecbc4['model']['document']['selection'],_0x1087c6=_0x3ecbc4['locale'];if(!_0x3ecbc4['plugins']['has']('TableEditing'))return;const _0x27527b=_0x3ecbc4['plugins']['get']('TrackChangesEditing'),_0x548d98=_0x3ecbc4['plugins']['get']('TableUtils'),_0x40401f=_0x3ecbc4['plugins']['get'](At);_0x40401f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x27527b['enableCommand']('mergeTableCells',()=>{const _0x21c338=_0x548d98['getSelectionAffectedTableCells'](_0x3ecbc4['model']['document']['selection']);_0x3ecbc4['model']['change'](()=>{_0x27527b['markMultiRangeBlockFormat'](_0x21c338,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3ecbc4['commands']['get']('mergeTableCells')['on']('execute',(_0x3a31e0,_0x9d293)=>{_0x3ecbc4['commands']['get']('trackChanges')['value']&&(_0x9d293['length']>0x0&&_0x9d293[_0x9d293['length']-0x1]&&_0x9d293[_0x9d293['length']-0x1]['forceDefaultExecution']||_0x27527b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3a31e0['stop']());},{'priority':'highest'});for(const _0x28ed44 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50f576=_0x3ecbc4['commands']['get'](_0x28ed44);_0x27527b['enableCommand'](_0x28ed44,()=>{const _0x185c50=_0x3ecbc4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xb40209=>_0xb40209['is']('element','tableCell')),_0x581452=_0x50f576['value'];_0x3ecbc4['model']['change'](()=>{_0x27527b['markMultiRangeBlockFormat']([_0x185c50,_0x581452],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x56d580 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4dbdc9=_0x3ecbc4['commands']['get'](_0x56d580);_0x27527b['enableCommand'](_0x56d580,()=>{const _0x5b4ecd=_0x548d98['getSelectionAffectedTableCells'](_0x3ecbc4['model']['document']['selection'])[0x0],_0x2af512=_0x5b4ecd['findAncestor']('table'),{column:_0x2b3ba0,row:_0x2a4d57}=_0x548d98['getCellLocation'](_0x5b4ecd);let _0x566484=[];if('horizontally'==_0x4dbdc9['direction']){const _0x4040a8=_0x548d98['createTableWalker'](_0x2af512,{'startRow':_0x2a4d57,'endRow':_0x2a4d57,'includeAllSlots':!0x0});_0x566484=Array['from'](_0x4040a8)['map'](_0x127f14=>_0x127f14['cell']);}else{const _0x3767d4=_0x548d98['createTableWalker'](_0x2af512,{'column':_0x2b3ba0,'includeAllSlots':!0x0});_0x566484=Array['from'](_0x3767d4)['map'](_0x52747f=>_0x52747f['cell']);}_0x3ecbc4['model']['change'](_0x42650d=>{_0x27527b['markBlockFormat'](_0x42650d['createRangeOn'](_0x5b4ecd),{'commandName':_0x56d580,'commandParams':[]},_0x566484,_0x56d580);});});}_0x27527b['descriptionFactory']['registerDescriptionCallback'](_0x5c06b2=>{if('formatBlock'!=_0x5c06b2['type']&&'formatInline'!=_0x5c06b2['type'])return;const {data:_0x4556dc}=_0x5c06b2;return _0x4556dc&&'mergeTableCells'==_0x4556dc['commandName']?{'type':'format','content':o(_0x1087c6,'*Merge\x20cells*')}:void 0x0;}),_0x27527b['descriptionFactory']['registerDescriptionCallback'](_0x3fc1b7=>{if('formatBlock'!=_0x3fc1b7['type']&&'formatInline'!=_0x3fc1b7['type'])return;const {data:_0x2e23b5}=_0x3fc1b7;return _0x2e23b5?'splitTableCellVertically'==_0x2e23b5['commandName']?{'type':'format','content':o(_0x1087c6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2e23b5['commandName']?{'type':'format','content':o(_0x1087c6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4f60a4=_0x40401f['_acceptFormatSuggestionCallbackFactory']();for(const _0x14892e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x27527b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14892e,'accept',_0x4f60a4);for(const _0xae69ad of['splitTableCellVertically','splitTableCellHorizontally'])_0x27527b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xae69ad,'accept',_0x4f60a4);_0x27527b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x322e05=>{_0x3ecbc4['model']['change'](_0x10f552=>{const _0x26aae0=Array['from'](_0x335651['getRanges']())['map'](_0x216a4e=>_0x45518e['fromRange'](_0x216a4e));_0x10f552['setSelection'](_0x322e05),_0x3ecbc4['commands']['get']('mergeTableCells')['refresh'](),_0x3ecbc4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1591c4=_0x26aae0['filter'](_0x36030b=>'$graveyard'!=_0x36030b['root']['rootName']);_0x1591c4['length']>0x0&&_0x10f552['setSelection'](_0x1591c4);for(const _0x1d7c6a of _0x26aae0)_0x1d7c6a['detach']();});});for(const _0x4ec428 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x41f489=_0x3ecbc4['commands']['get'](_0x4ec428);_0x41f489['on']('set:isEnabled',(_0x64afba,_0xafc781,_0x52b5b6)=>{if(_0x52b5b6){const _0x3a1cfa=_0x3ecbc4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xbb63a2=>_0xbb63a2['is']('element','tableCell'));this['_areMergableCells'](_0x41f489['value'],_0x3a1cfa)||(_0x64afba['return']=!0x1,_0x64afba['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5845b3=this['editor']['commands']['get']('mergeTableCells'),_0x170270=this['editor']['plugins']['get']('TableUtils');if(!_0x5845b3['isEnabled'])return!0x1;const _0x269626=_0x170270['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xbaa10a of _0x269626)for(const _0x400023 of _0x269626)if(_0xbaa10a!=_0x400023&&!this['_areMergableCells'](_0xbaa10a,_0x400023))return!0x1;return!0x0;}['_areMergableCells'](_0x2ffc59,_0x1d7ba4){const _0x215bb3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e9d23=this['editor']['model']['createRangeOn'](_0x2ffc59),_0x4c799f=this['editor']['model']['createRangeOn'](_0x1d7ba4),_0x1e1e25=new Set(),_0x3a5b9f=new Set();for(const _0x838685 of _0x215bb3['getSuggestions']())if(('insertion'==_0x838685['type']||'deletion'==_0x838685['type']||'mergeTableCells'==_0x838685['subType'])&&_0x838685['isInContent']){for(const _0x4361d5 of _0x838685['getRanges']())_0x4361d5['containsRange'](_0x4e9d23,!0x0)&&_0x1e1e25['add'](_0x838685['type']+':'+_0x838685['author']['id']),_0x4361d5['containsRange'](_0x4c799f,!0x0)&&_0x3a5b9f['add'](_0x838685['type']+':'+_0x838685['author']['id']);}if(_0x1e1e25['size']!=_0x3a5b9f['size'])return!0x1;for(const _0xbb073a of _0x1e1e25)if(!_0x3a5b9f['has'](_0xbb073a))return!0x1;return!0x0;}}class Ct extends _0x519785{static get['requires'](){return[At];}['afterInit'](){const _0x43a45e=this['editor'];if(!_0x43a45e['plugins']['has']('TableEditing'))return;const _0x55adb6=_0x43a45e['locale'],_0x781782=_0x43a45e['plugins']['get']('TrackChangesEditing');_0x781782['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x781782['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x781782['registerBlockAttribute']('headingRows'),_0x781782['registerBlockAttribute']('headingColumns'),_0x781782['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x55adb6,'FORMAT_HEADER_ROW')),_0x781782['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x55adb6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x26aa09=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bcba5=this['editor']['plugins']['get']('TableUtils'),_0x2b90e9=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x16f97d({showActiveMarker:_0x3a1ea5=!0x0,setDataAttribute:_0x4adb4f=!0x0}={}){return(_0x1584a0,_0x366002,_0x59dab0)=>{const {type:_0x2bcb29,id:_0x57a4b3}=_0x26aa09['_splitMarkerName'](_0x366002['markerName']),_0x1ee5b7=_0x26aa09['getSuggestion'](_0x57a4b3),_0x83fd44=_0x1ee5b7['data'];if('formatBlock'!=_0x1ee5b7['type']||!_0x83fd44||'setTableColumnHeader'!=_0x83fd44['commandName'])return;if(_0x366002['item'])return void _0x1584a0['stop']();if(!_0x59dab0['consumable']['consume'](_0x366002['markerRange'],_0x1584a0['name']))return;const _0x252429=_0x366002['markerRange']['start']['nodeAfter'],_0x25627b=_0x366002['markerRange']['end']['nodeBefore'],_0x5e9c58=_0x252429['parent']['parent'],{column:_0xd2e42c}=_0x4bcba5['getCellLocation'](_0x252429),{column:_0x248b6e}=_0x4bcba5['getCellLocation'](_0x25627b);for(let _0x38ae95=_0xd2e42c;_0x38ae95<=_0x248b6e;_0x38ae95++){const _0x52b2fa=_0x4bcba5['createTableWalker'](_0x5e9c58,{'column':_0x38ae95,'includeAllSlots':!0x1});for(const _0x348361 of _0x52b2fa){const _0x4ba0d8=_0x348361['cell'],_0x341969=_0x59dab0['mapper']['toViewElement'](_0x4ba0d8);_0x59dab0['writer']['addClass']('ck-suggestion-marker-'+_0x2bcb29,_0x341969),_0x4adb4f&&_0x59dab0['writer']['setAttribute']('data-suggestion',_0x57a4b3,_0x341969),_0x59dab0['mapper']['bindElementToMarker'](_0x341969,_0x366002['markerName']),_0x3a1ea5&&(_0x26aa09['activeMarkers']['includes'](_0x366002['markerName'])?_0x59dab0['writer']['addClass']('ck-suggestion-marker--active',_0x341969):_0x59dab0['writer']['removeClass']('ck-suggestion-marker--active',_0x341969));}}};}_0x26aa09['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2b90e9),_0x26aa09['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2b90e9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x16f97d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4195f0,_0x456b4d,_0x4e63a9)=>{_0x4e63a9['options']['showSuggestionHighlights']&&_0x16f97d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4195f0,_0x456b4d,_0x4e63a9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3caaf8,_0x1d2ab9,_0x1a0b0a)=>{const {type:_0x2890b9,id:_0x276ff1}=_0x26aa09['_splitMarkerName'](_0x1d2ab9['markerName']),_0x5eb1ab=_0x26aa09['getSuggestion'](_0x276ff1),_0x284149=_0x5eb1ab['data'];if('formatBlock'!=_0x5eb1ab['type']||!_0x284149||'setTableColumnHeader'!=_0x284149['commandName'])return;const _0x1aa903=_0x1a0b0a['mapper']['markerNameToElements'](_0x1d2ab9['markerName']);if(_0x1aa903){for(const _0x374a7e of _0x1aa903)_0x1a0b0a['writer']['removeClass']('ck-suggestion-marker-'+_0x2890b9,_0x374a7e),_0x1a0b0a['writer']['removeClass']('ck-suggestion-marker--active',_0x374a7e),_0x1a0b0a['writer']['removeAttribute']('data-suggestion',_0x374a7e),_0x1a0b0a['mapper']['unbindElementFromMarkerName'](_0x374a7e,_0x1d2ab9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17a5b2=this['editor'],_0x456132=_0x17a5b2['locale'];function _0x543097(_0x534b9e){return{'type':'format','content':o(_0x456132,'*Format:*\x20%0',_0x534b9e)};}_0x17a5b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x97015a=>{if('formatBlock'!=_0x97015a['type'])return;const {data:_0x188e36}=_0x97015a;if(_0x188e36){if('setTableRowHeader'==_0x188e36['commandName']){const _0x87201d=_0x188e36['commandParams'][0x0]['forceValue'];return _0x543097(o(_0x456132,_0x87201d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x188e36['commandName']){const _0x48d23d=_0x188e36['commandParams'][0x0]['forceValue'];return _0x543097(o(_0x456132,_0x48d23d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x519785{['afterInit'](){const _0x42c652=this['editor'],_0x3c83a6=_0x42c652['locale'],_0x366a4d=_0x42c652['plugins']['get']('TrackChangesEditing');function _0x1c4333(_0x47347d){return{'type':'format','content':''+o(_0x3c83a6,'*Set\x20table\x20type:*\x20%0',_0x47347d)};}_0x42c652['plugins']['has']('TableLayout')&&(_0x366a4d['enableCommand']('insertTableLayout'),_0x366a4d['enableDefaultAttributesIntegration']('tableType'),_0x366a4d['registerBlockAttribute']('tableType'),_0x366a4d['descriptionFactory']['registerElementLabel'](_0x398ef2=>_0x398ef2['is']('element','table')&&'layout'===_0x398ef2['getAttribute']('tableType'),_0x44bd44=>o(_0x3c83a6,'ELEMENT_LAYOUT_TABLE',_0x44bd44)),_0x366a4d['descriptionFactory']['registerDescriptionCallback'](_0xbfd87b=>{const {data:_0x376b16}=_0xbfd87b;if(_0x376b16&&'tableType'==_0x376b16['key'])switch(_0x376b16['newValue']){case'layout':return _0x1c4333(o(_0x3c83a6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1c4333(o(_0x3c83a6,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x4d22e8=>[_0x4d22e8,null]));class Nt extends _0x519785{static get['requires'](){return[At];}['afterInit'](){const _0x46154b=this['editor'];if(!_0x46154b['plugins']['has']('TableClipboard'))return;const _0x44e2b9=_0x46154b['plugins']['get']('TrackChangesEditing'),_0x5df5db=_0x46154b['plugins']['get']('TableUtils'),_0x24f85b=_0x46154b['plugins']['get'](At),_0x5a21e9=_0x46154b['plugins']['get']('TableClipboard'),_0x49f1c2=_0x46154b['plugins']['get']('TableSelection'),_0x455007=_0x46154b['plugins']['get'](_0x182772);_0x24f85b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x46154b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x46154b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3947e4=null,_0xdf3368=!0x1;_0x455007['on']('contentInsertion',(_0x1c4561,_0x4f8135)=>{_0xdf3368='paste'===_0x4f8135['method'];}),_0x46154b['model']['on']('insertContent',(_0xc82b1d,_0x576365)=>{if(!_0xdf3368&&null===_0x49f1c2['getSelectedTableCells']())return;const [_0x2e3e2b,_0x511fc2]=_0x576365,_0x4804a9=_0x576365[_0x576365['length']-0x1];_0x4804a9&&_0x4804a9['forceDefaultExecution']||_0x44e2b9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x540264,_0x283370,_0x58bb7e,_0x4dfd95,_0x2ec418){if(_0x283370&&!_0x283370['is']('documentSelection'))return!0x1;const _0x3f4ad2=_0x2ec418['getTableIfOnlyTableInContent'](_0x540264,_0x58bb7e);if(!_0x3f4ad2||!Ue(_0x3f4ad2,void 0x0,_0x4dfd95))return!0x1;const _0x3d4e6b=_0x4dfd95['getSelectionAffectedTableCells'](_0x58bb7e['document']['selection']);if(!_0x3d4e6b['length'])return!0x1;const _0x2c17b7=_0x3d4e6b[0x0]['findAncestor']('table'),_0x636371=_0x4dfd95['getRowIndexes'](_0x3d4e6b),_0x25f7eb=_0x4dfd95['getColumnIndexes'](_0x3d4e6b),_0x4cfee7={'startRow':_0x636371['first'],'endRow':_0x636371['last'],'startColumn':_0x25f7eb['first'],'endColumn':_0x25f7eb['last']};return 0x1==_0x3d4e6b['length']&&(_0x4cfee7['endRow']+=_0x4dfd95['getRows'](_0x3f4ad2)-0x1,_0x4cfee7['endColumn']+=_0x4dfd95['getColumns'](_0x3f4ad2)-0x1),Ue(_0x2c17b7,_0x4cfee7,_0x4dfd95);}(_0x2e3e2b,_0x511fc2,_0x46154b['model'],_0x5df5db,_0x5a21e9)&&(_0xc82b1d['stop'](),_0x3947e4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x46154b['model']['change'](()=>{_0x46154b['model']['insertContent'](_0x576365[0x0],_0x576365[0x1],_0x576365[0x2],{'forceDefaultExecution':!0x0});const _0x34477d=_0x19694d(),{rowInsertionRanges:_0x1cb319,columnInsertionRanges:_0x437c5d,insertionRanges:_0x1f94d4,deletionRanges:_0x10c90b,cells:_0x46c6c7}=_0x3947e4;_0x1cb319['length']&&_0x44e2b9['markMultiRangeInsertion'](_0x1cb319,'tablePasteRow',{'tablePasteChainId':_0x34477d}),_0x437c5d['length']&&_0x44e2b9['markMultiRangeInsertion'](_0x437c5d,'tablePasteColumn',{'tablePasteChainId':_0x34477d}),_0x1f94d4['length']&&(_0x44e2b9['markMultiRangeInsertion'](_0x1f94d4,'tablePaste',{'tablePasteChainId':_0x34477d,'skipNestingCheck':!0x0}),_0x1f94d4['forEach'](_0xa3481e=>_0xa3481e['detach']?.())),_0x10c90b['length']&&(_0x44e2b9['markMultiRangeDeletion'](_0x10c90b,'tablePaste',{'tablePasteChainId':_0x34477d,'skipNestingCheck':!0x0}),_0x10c90b['forEach'](_0x597732=>_0x597732['detach']?.()));const _0xbadb42=_0x44e2b9['markMultiRangeBlockFormat'](_0x46c6c7['map'](({element:_0xb14c49})=>_0xb14c49),{'formatGroupId':_0x19694d()},[],'tablePasteCell',{'tablePasteChainId':_0x34477d});if(_0xbadb42){const _0x3ad27f=_0xbadb42['getMarkers'](),_0x2b3457=[];for(const {element:_0x40d869,attributes:_0x457181}of _0x46c6c7){if(!_0x457181)continue;const _0x23c113=_0x46154b['model']['createRangeOn'](_0x40d869),_0x3506a2=_0x3ad27f['find'](_0x3d7af6=>_0x3d7af6['getRange']()['isEqual'](_0x23c113));_0x3506a2&&_0x2b3457['push']([_0x3506a2['name'],_0x457181]);}_0x2b3457['length']&&_0xbadb42['setAttribute']('markerAttributes',Object['fromEntries'](_0x2b3457));}_0x3947e4=null;}));},{'priority':_0x57c570['high']+0xa}),_0x455007['on']('contentInsertion',()=>{_0xdf3368=!0x1;},{'priority':'lowest'}),_0x46154b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xa7a71b,_0x10cad4)=>{const [_0x354242,_0x4a8f78,,_0x55d570]=_0x10cad4;if(!_0x3947e4)return;_0xa7a71b['stop']();const _0x39ecbe=_0x354242['cell'],_0x139bb0=_0x4a8f78,_0x2f8244=Oe(_0x39ecbe),_0x16e2a9=Oe(_0x139bb0);_0xa7a71b['return']=_0x39ecbe;let _0xed2da3=null,_0x3c21d1=null;if(_0x16e2a9||_0x2f8244){if(_0x2f8244&&!_0x16e2a9){_0x55d570['remove'](_0x39ecbe['getChild'](0x0));for(const _0x4b9cea of Array['from'](_0x139bb0['getChildren']()))_0x55d570['insert'](_0x4b9cea,_0x39ecbe,'end');const _0x4a4ea0=_0x3947e4['rowInsertionIndexes']['includes'](_0x354242['row']),_0x2e97a7=_0x3947e4['columnInsertionIndexes']['includes'](_0x354242['column']);_0x4a4ea0||_0x2e97a7||(_0xed2da3=_0x45518e['fromRange'](_0x55d570['createRangeIn'](_0x39ecbe)));}else _0x16e2a9&&!_0x2f8244&&(_0x3c21d1=_0x55d570['createRangeIn'](_0x39ecbe));}else{const _0x303b6a=_0x55d570['createElement']('tableCellSuggestion'),_0x1c59f4=_0x55d570['createElement']('tableCellSuggestion');_0x55d570['wrap'](_0x55d570['createRangeIn'](_0x39ecbe),_0x1c59f4),_0x55d570['insert'](_0x303b6a,_0x39ecbe,0x0);for(const _0x3f46cf of Array['from'](_0x139bb0['getChildren']()))_0x55d570['insert'](_0x3f46cf,_0x303b6a,'end');_0xed2da3=_0x45518e['fromRange'](_0x55d570['createRangeOn'](_0x303b6a)),_0x3c21d1=_0x45518e['fromRange'](_0x55d570['createRangeOn'](_0x1c59f4));}const _0x2835fe=Array['from'](_0x139bb0['getAttributes']())['filter'](([_0x25d363])=>Be['includes'](_0x25d363));_0x3947e4['cells']['push']({'element':_0x39ecbe,'attributes':_0x2835fe['length']?Object['fromEntries'](_0x2835fe):null}),_0xed2da3&&_0x3947e4['insertionRanges']['push'](_0xed2da3),_0x3c21d1&&_0x3947e4['deletionRanges']['push'](_0x3c21d1);},{'priority':'high'}),_0x5df5db['on']('insertColumns',(_0x34db0c,_0x2840e5)=>{const [_0x1f0361,_0xe5d2b9={}]=_0x2840e5;if(!_0x3947e4)return;const _0x34e74c=_0xe5d2b9['at']||0x0,_0x3b3c0d=_0xe5d2b9['columns']||0x1;_0x3947e4['columnInsertionIndexes']=new Array(_0x3b3c0d)['fill'](_0x34e74c)['map']((_0x496806,_0x2403e1)=>_0x496806+_0x2403e1);for(const {cell:_0x400606}of _0x5df5db['createTableWalker'](_0x1f0361,{'startColumn':_0x34e74c,'endColumn':_0x34e74c+_0x3b3c0d-0x1}))_0x3947e4['columnInsertionRanges']['push'](_0x46154b['model']['createRangeOn'](_0x400606));},{'priority':'low'}),_0x5df5db['on']('insertRows',(_0x5ee07d,_0x1f7bb6)=>{const [_0x178f2c,_0x4a58e5={}]=_0x1f7bb6;if(!_0x3947e4)return;const _0xb67c3a=_0x4a58e5['at']||0x0,_0x48b11e=_0x4a58e5['rows']||0x1;_0x3947e4['rowInsertionIndexes']=new Array(_0x48b11e)['fill'](_0xb67c3a)['map']((_0x18a1de,_0x2ec5aa)=>_0x18a1de+_0x2ec5aa);for(const {cell:_0x44b887}of _0x5df5db['createTableWalker'](_0x178f2c,{'startRow':_0xb67c3a,'endRow':_0xb67c3a+_0x48b11e-0x1}))_0x3947e4['rowInsertionRanges']['push'](_0x46154b['model']['createRangeOn'](_0x44b887));},{'priority':'low'}),_0x44e2b9['descriptionFactory']['registerDescriptionCallback'](_0x5166d5=>{if(_0x5166d5['subType']&&_0x5166d5['subType']['startsWith']('tablePaste'))return _0x5166d5['previous']?{}:{'type':'insertion','content':o(_0x46154b['locale'],'*Replace\x20table\x20cells*')};});const _0x31efed=()=>!0x1;for(const _0x128216 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x44e2b9['_suggestionFactory']['registerCustomCallback']('insertion',_0x128216,'join',_0x31efed),_0x44e2b9['_suggestionFactory']['registerCustomCallback']('deletion',_0x128216,'join',_0x31efed),_0x44e2b9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x128216,'join',_0x31efed);_0x44e2b9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x31efed),_0x44e2b9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xe2dcae,_0x474139,_0x44208d)=>{const _0xddf1a0=_0xe2dcae['map'](_0x4d6c78=>_0x4d6c78['getContainedElement']())['filter'](_0x556f32=>_0x556f32),_0x3f2985=new Map(_0xddf1a0['map'](_0x28c2ef=>[_0x28c2ef,null]));if(_0x3947e4){for(const {element:_0x3b353d,attributes:_0x4e4cc0}of _0x3947e4['cells'])_0x4e4cc0&&_0x3f2985['set'](_0x3b353d,_0x4e4cc0);}else{if(_0x44208d&&_0x44208d['markerAttributes'])for(const [_0x2f54b0,_0x4ed5b1]of Object['entries'](_0x44208d['markerAttributes'])){const _0x40601a=_0x46154b['model']['markers']['get'](_0x2f54b0),_0x427c7e=_0x40601a?_0x40601a['getRange']()['getContainedElement']():null;_0x427c7e&&_0x3f2985['set'](_0x427c7e,_0x4ed5b1);}}_0x46154b['model']['change'](_0x41084a=>{for(const [_0x1bdfeb,_0x14509b]of _0x3f2985)_0x41084a['setAttributes']({...xe,..._0x14509b},_0x1bdfeb);});});const _0x25ed55=(_0x5730f0,_0x344525)=>{_0x44e2b9['_suggestionFactory']['registerCustomCallback'](_0x5730f0,'tablePaste',_0x344525,(_0x258db8,_0x2b3f69,_0x22e55f)=>{_0x46154b['model']['change'](_0x53924d=>{const _0x4cb25a=[];for(const _0x23c2c5 of _0x258db8){const _0x5acfdf=_0x23c2c5['start']['nodeAfter'];_0x5acfdf['is']('element','tableCellSuggestion')&&_0x4cb25a['push'](_0x5acfdf);}_0x44e2b9['_suggestionFactory']['getSuggestionCallback'](_0x5730f0,null,_0x344525)(_0x258db8,_0x2b3f69,_0x22e55f);for(const _0xc27a14 of _0x4cb25a)'$graveyard'!=_0xc27a14['root']['rootName']&&_0x53924d['unwrap'](_0xc27a14);});});};_0x25ed55('insertion','accept'),_0x25ed55('insertion','discard'),_0x25ed55('deletion','accept'),_0x25ed55('deletion','discard'),_0x44e2b9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3484ab=>{const _0x24a33a=_0x3484ab['map'](_0xe3108c=>_0xe3108c['getContainedElement']()),_0x26eaef=_0x24a33a[0x0]['findAncestor']('table'),{minRow:_0x22d782,maxRow:_0x5dccd9}=_0x24f85b['_getCoordsForCells'](_0x24a33a);_0x5df5db['removeRows'](_0x26eaef,{'at':_0x22d782,'rows':_0x5dccd9-_0x22d782+0x1});}),_0x44e2b9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x970160=>{const _0x26d7e3=_0x970160['map'](_0x1a0022=>_0x1a0022['getContainedElement']()),_0x4ebe30=_0x26d7e3[0x0]['findAncestor']('table'),{minColumn:_0x250f04,maxColumn:_0x57428a}=_0x24f85b['_getCoordsForCells'](_0x26d7e3);_0x5df5db['removeColumns'](_0x4ebe30,{'at':_0x250f04,'columns':_0x57428a-_0x250f04+0x1});});const _0x3ca551=(_0x34cdb3,_0x56fe33)=>{if(!_0x56fe33['subType']||!_0x56fe33['subType']['startsWith']('tablePaste'))return;const _0x40a1be=_0x56fe33['attributes']['tablePasteChainId'],_0x5cb732=_0x44e2b9['getSuggestions']()['filter'](_0x2d3c62=>_0x2d3c62['isInContent']&&_0x2d3c62['attributes']&&_0x2d3c62['attributes']['tablePasteChainId']==_0x40a1be);_0x5cb732['length']&&_0x56fe33['getAllAdjacentSuggestions']()['length']!=_0x5cb732['length']&&_0x5cb732['reduce']((_0x6e6b45,_0x17d69b)=>(_0x6e6b45['next']=_0x17d69b,_0x17d69b['previous']=_0x6e6b45,_0x17d69b));};function _0x1b3dab(_0x25c9ed,_0x20cc86=!0x0){const {id:_0x3cba03,authorId:_0x25159e}=_0x44e2b9['_splitMarkerName'](_0x25c9ed['markerName']),_0xa04940=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x353d16=_0x44e2b9['activeMarkers']['includes'](_0x25c9ed['markerName']);return _0x353d16&&_0xa04940['push']('ck-suggestion-marker--active'),{'classes':_0xa04940,'attributes':{'data-suggestion':_0x3cba03,'data-author-id':_0x25159e},'priority':_0x353d16&&_0x20cc86?0xbc2:0xbb8};}_0x44e2b9['on']('suggestionLoaded',_0x3ca551,{'priority':'high'}),_0x44e2b9['on']('suggestionUnloaded',_0x3ca551,{'priority':'high'}),_0x46154b['model']['document']['registerPostFixer'](()=>{let _0x4cefb7=!0x1;const _0x19ba48=Array['from'](_0x46154b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b42d5,data:_0x508f31}of _0x19ba48){const {group:_0x40e63d,type:_0x2e0fdb,id:_0x49be60}=_0x44e2b9['_splitMarkerName'](_0x2b42d5);if('suggestion'!=_0x40e63d||'deletion'!=_0x2e0fdb||_0x508f31['oldRange'])continue;if(!_0x44e2b9['hasSuggestion'](_0x49be60))continue;const _0x411648=_0x44e2b9['getSuggestion'](_0x49be60)['getRanges'](),_0x3bb736=_0x46154b['plugins']['get']('Users')['me'];for(const _0x5212ff of _0x44e2b9['getSuggestions']()){if(!_0x5212ff['isInContent']||_0x5212ff['author']!=_0x3bb736)continue;if('formatBlock'!=_0x5212ff['type']||'tablePasteCell'!=_0x5212ff['subType'])continue;if(_0x5212ff['getRanges']()['every'](_0x36bedf=>_0x411648['some'](_0x301fe3=>_0x301fe3['containsRange'](_0x36bedf,!0x0)))){for(const _0x198b1f of _0x5212ff['getAllAdjacentSuggestions']())_0x198b1f['isInContent']&&(_0x198b1f['discard'](),_0x4cefb7=!0x0);}}}return _0x4cefb7;}),_0x46154b['model']['document']['registerPostFixer'](_0x3941c7=>{const _0x36d1b4=_0x46154b['commands']['get']('redo');if(!_0x36d1b4||!_0x36d1b4['_createdBatches']['has'](_0x3941c7['batch']))return!0x1;let _0x1a5a29=!0x1;const _0x5d7480=_0x46154b['plugins']['get']('Users')['me'],_0x3795e4=_0x46154b['model']['document']['differ']['getChanges'](),_0x47ae65=Array['from'](_0x46154b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x16de9a,data:_0x207932})=>{const {group:_0x2e8ec3,subType:_0x591356,authorId:_0x2bd59b}=_0x44e2b9['_splitMarkerName'](_0x16de9a);return'suggestion'==_0x2e8ec3&&'tablePaste'==_0x591356&&_0x2bd59b==_0x5d7480['id']&&!_0x207932['oldRange'];});for(const _0x58055b of _0x3795e4){if('insert'!=_0x58055b['type']||'tableCellSuggestion'!=_0x58055b['name']||0x1!=_0x58055b['length'])continue;const _0x33dfc3=_0x3941c7['createRange'](_0x58055b['position'],_0x58055b['position']['getShiftedBy'](0x1));if(!_0x47ae65['find'](({data:_0x33384b})=>_0x33384b['newRange']['isEqual'](_0x33dfc3))){for(const {name:_0x3ff52e,data:_0x2e4e42}of _0x47ae65)if(_0x33dfc3['containsRange'](_0x2e4e42['newRange'])){_0x3941c7['updateMarker'](_0x3ff52e,{'range':_0x33dfc3}),_0x1a5a29=!0x0;break;}}}return _0x1a5a29;}),_0x46154b['model']['document']['registerPostFixer'](_0x102ebb=>{let _0x2e39e9=!0x1;const _0x2728dc=_0x46154b['plugins']['get']('Users')['me'],_0x22c2c9=_0x44e2b9['getSuggestions']()['filter'](_0xa49c9d=>_0xa49c9d['isInContent']&&_0xa49c9d['author']==_0x2728dc),_0x1be5a7=new Set(),_0x855ee2=new Set();for(const _0xedde97 of _0x22c2c9)if('tablePaste'==_0xedde97['subType'])for(const _0x5a9eac of _0xedde97['getMarkers']()){const _0xfbed4b=_0x5a9eac['getRange']()['getContainedElement']();if(_0xfbed4b){if(_0xfbed4b['is']('element','tableCellSuggestion')&&Oe(_0xfbed4b)){_0xedde97['removeMarker'](_0x5a9eac['name']),_0x1be5a7['add'](_0xfbed4b),_0x2e39e9=!0x0;const _0x3c9a56=_0xfbed4b['nextSibling'],_0x26ce1b=_0xfbed4b['previousSibling'],_0x2e53ab=_0x3c9a56&&_0x3c9a56['is']('element','tableCellSuggestion'),_0x10e4fb=_0x26ce1b&&_0x26ce1b['is']('element','tableCellSuggestion');_0x2e53ab&&!_0x1be5a7['has'](_0x3c9a56)&&_0x855ee2['add'](_0x3c9a56),_0x10e4fb&&!_0x1be5a7['has'](_0x26ce1b)&&_0x855ee2['add'](_0x26ce1b);}else _0xfbed4b['is']('element','paragraph')&&_0xfbed4b['isEmpty']&&(_0xedde97['removeMarker'](_0x5a9eac['name']),_0x2e39e9=!0x0);}}else{if('tablePasteCell'==_0xedde97['subType']){if(!_0xedde97['attributes']||!_0xedde97['attributes']['tablePasteChainId'])continue;const _0xae667c=_0xedde97['attributes']['markerAttributes'];if(_0xae667c&&Object['keys'](_0xae667c)['length'])continue;const _0x45aaff=_0xedde97['attributes']['tablePasteChainId'];let _0x5ce3aa=!0x0,_0x4361d3=!0x0;for(const _0x216f82 of _0x22c2c9)if(_0x216f82['subType']&&_0x216f82['subType']['startsWith']('tablePaste')){if(!_0x216f82['attributes']['tablePasteChainId']){_0x4361d3=!0x1;break;}if(_0x216f82['id']!=_0xedde97['id']&&_0x216f82['attributes']['tablePasteChainId']==_0x45aaff){_0x5ce3aa=!0x1;break;}}_0x4361d3&&_0x5ce3aa&&(_0xedde97['removeMarkers'](),_0x2e39e9=!0x0);}}for(const _0x5b5858 of _0x1be5a7)_0x102ebb['remove'](_0x5b5858);for(const _0x4546dd of _0x855ee2)_0x102ebb['unwrap'](_0x4546dd);return _0x2e39e9;}),_0x46154b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5717ff=>_0x1b3dab(_0x5717ff),'converterPriority':'high'}),_0x46154b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x851037,_0x138333)=>_0x138333['options']['showSuggestionHighlights']?_0x1b3dab(_0x851037,!0x1):null,'converterPriority':'high'});const _0xd23444=_0x46154b['editing']['view'];this['listenTo'](_0xd23444['document'],'clipboardOutput',(_0x5d75a4,_0x34d0ce)=>{const _0xe33253=[];for(const _0x579a9c of _0xd23444['createRangeIn'](_0x34d0ce['content'])['getItems']())_0x579a9c['is']('element','suggestion-td')&&_0xe33253['push'](_0x579a9c);_0xd23444['change'](_0x43111e=>{for(const _0x1eca76 of _0xe33253)_0x43111e['move'](_0x43111e['createRangeIn'](_0x1eca76),_0x43111e['createPositionBefore'](_0x1eca76)),_0x43111e['remove'](_0x1eca76);});});}}function Oe(_0x3e6d04){if(_0x3e6d04['isEmpty'])return!0x0;const _0x222686=_0x3e6d04['getChild'](0x0);return _0x222686['is']('element','paragraph')&&_0x222686['isEmpty'];}function Ue(_0x433a30,_0x2765e9={},_0x22417b){for(const {isAnchor:_0x4c3ccb,cellHeight:_0x1070df,cellWidth:_0x317973}of _0x22417b['createTableWalker'](_0x433a30,{'includeAllSlots':!0x0,..._0x2765e9}))if(!_0x4c3ccb||0x1!=_0x1070df||0x1!=_0x317973)return!0x1;return!0x0;}class Dt extends _0x519785{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x639b41=this['editor']['plugins']['get']('TrackChangesEditing');_0x639b41['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x639b41['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x639b41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x639b41['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x639b41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x639b41['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x33727d,_0x779d0e){const _0x3b67c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34f95e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x25a7ed=_0x779d0e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x531364=_0x34f95e['getColumnGroupElement'](_0x25a7ed);let _0x8cc8eb=_0x531364?_0x34f95e['getTableColumnsWidths'](_0x531364):null,_0x21c30b=_0x25a7ed['getAttribute']('tableWidth')||null;const _0x5456a4=_0x779d0e['tableWidth']||_0x21c30b,_0x200583=_0x779d0e['columnWidths']||_0x8cc8eb,_0x1af39c=this['editor']['plugins']['get']('Users')['me'];for(const _0x108d48 of _0x3b67c0['getSuggestions']()){const _0x1940a1=_0x108d48['getContainedElement']();if('resizeTable'===_0x108d48['subType']&&_0x1940a1===_0x25a7ed){_0x108d48['author']!==_0x1af39c&&_0x108d48['discard']();const _0x2c1080=_0x108d48['data']['commandParams'];_0x21c30b=_0x2c1080[0x0]['tableWidth'],_0x8cc8eb=_0x2c1080[0x0]['columnWidths'];break;}}_0x33727d({'table':_0x25a7ed,'tableWidth':_0x5456a4,'columnWidths':_0x200583}),_0x3b67c0['markBlockFormat'](_0x25a7ed,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x21c30b,'columnWidths':_0x8cc8eb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2f423f){if('formatBlock'!=_0x2f423f['type']&&'formatInline'!=_0x2f423f['type'])return;const {data:_0x54d8df}=_0x2f423f;if(_0x54d8df&&'resizeTable'===_0x54d8df['formatGroupId']){const _0x35f5c0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x35f5c0)};}}}class Mt extends _0x519785{['afterInit'](){const _0x2be7a0=this['editor'];_0x2be7a0['plugins']['has']('Template')&&_0x2be7a0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x519785{['afterInit'](){const _0x48604f=this['editor'];if(!_0x48604f['commands']['get']('insertTableOfContents'))return;_0x48604f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x885364=_0x48604f['plugins']['get']('TrackChangesEditing'),_0x4965ae=_0x48604f['locale'];_0x885364['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5dc17b=>o(_0x4965ae,'ELEMENT_TABLE_OF_CONTENTS',_0x5dc17b));}}class Bt extends _0x519785{['afterInit'](){const _0x2f5f11=this['editor'];if(!_0x2f5f11['plugins']['has']('Title'))return;const _0x4b1ee4=_0x2f5f11['plugins']['get']('TrackChangesEditing');_0x4b1ee4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2f5f11['locale'],'ELEMENT_TITLE')),_0x2f5f11['model']['document']['registerPostFixer'](_0x89f4e0=>{let _0x49d306=!0x1;const _0x54afab=Array['from'](_0x2f5f11['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x317ae2,data:_0x2c9f02}of _0x54afab){const {group:_0x4a8f6d}=_0x4b1ee4['_splitMarkerName'](_0x317ae2);if('suggestion'!==_0x4a8f6d||!_0x2c9f02['newRange'])continue;const _0x15cf5b=_0x2c9f02['newRange'],_0x5adb6f=_0x15cf5b['end']['nodeBefore'];if(!_0x5adb6f||!_0x5adb6f['is']('element','title-content'))continue;if(!_0x15cf5b['start']['isTouching'](_0x15cf5b['end']))continue;const _0x104747=_0x2f5f11['model']['schema']['getNearestSelectionRange'](_0x15cf5b['end'],'forward');if(_0x104747&&_0x104747['isCollapsed']){const _0x5297b8=_0x89f4e0['createRange'](_0x15cf5b['start'],_0x104747['start']);_0x5297b8['isEqual'](_0x15cf5b)||(_0x89f4e0['updateMarker'](_0x317ae2,{'range':_0x5297b8}),_0x49d306=!0x0);}_0x49d306||(_0x89f4e0['removeMarker'](_0x317ae2),_0x49d306=!0x0);}return _0x49d306;});}}class Tt extends _0x519785{['afterInit'](){const _0x2c2b78=this['editor'],_0x1d59d3=_0x2c2b78['plugins']['get']('TrackChangesEditing');_0x2c2b78['plugins']['has']('Uploadcare')&&(_0x1d59d3['enableCommand']('uploadcare'),_0x2c2b78['plugins']['has']('UploadcareImageEdit')&&(_0x1d59d3['enableCommand']('uploadcareImageEdit'),_0x1d59d3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1d59d3['registerBlockAttribute']('uploadcareImageId'),_0x1d59d3['descriptionFactory']['registerDescriptionCallback'](_0x5f4d4b=>{if('attribute'!=_0x5f4d4b['type'])return;const {data:_0x2e4d7d}=_0x5f4d4b;return _0x2e4d7d&&'uploadcareImageId'==_0x2e4d7d['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x519785{['afterInit'](){const _0x437cc2=this['editor'],_0x1255d9=_0x437cc2['plugins']['get']('TrackChangesEditing');_0x437cc2['plugins']['has']('UndoEditing')&&(_0x1255d9['enableCommand']('undo'),_0x1255d9['enableCommand']('redo'));}}class Ot extends _0x519785{static get['requires'](){return[At];}['afterInit'](){const _0x3d82c4=this['editor'];if(!_0x3d82c4['plugins']['has']('TableCaptionEditing'))return;_0x3d82c4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x519785{['tableProperties'];['tableCellProperties'];constructor(_0x3789e3){super(_0x3789e3),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x22e448=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x39dd8d of this['tableProperties'])_0x22e448['enableCommand'](_0x39dd8d,(_0xa6cbe3,_0x17bebc)=>{const _0x2cb0b7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x39dd8d,[_0x2cb0b7],this['tableProperties'],'tableProperties',_0xa6cbe3,_0x17bebc);});_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x22e448['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x433e70,_0x94db8a)=>this['handleDiscardAction'](this['tableProperties'],_0x433e70,_0x94db8a)),_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x174743 of this['tableCellProperties'])_0x22e448['enableCommand'](_0x174743,(_0x3bf012,_0x529f62)=>{const _0x4bbbba=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x174743,_0x4bbbba,this['tableCellProperties'],'tableCellProperties',_0x3bf012,_0x529f62);});_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x22e448['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x223ce1,_0x219382)=>this['handleDiscardAction'](this['tableCellProperties'],_0x223ce1,_0x219382)),_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x22e448['descriptionFactory']['registerDescriptionCallback'](_0x4be70d=>this['handleSuggestionDescription'](_0x4be70d));}['_handlePropertyChange'](_0x3a7c0e,_0x1cc2da,_0x3e35bb,_0x1ff179,_0x895a8b,_0x22cb9e){const _0x4221c4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x22cb9e['batch'],()=>{for(const _0x5a539f of _0x1cc2da){if(this['_getSuggestion'](_0x5a539f,_0x1ff179))_0x895a8b(_0x22cb9e);else{const _0xb0a2da={};for(const _0x3b4500 of _0x3e35bb){const _0x214bd6=_0x5a539f['getAttribute'](_0x3b4500);void 0x0!==_0x214bd6&&(_0xb0a2da[_0x3b4500]=_0x214bd6);}_0x895a8b(_0x22cb9e),_0x4221c4['markBlockFormat'](_0x5a539f,{'commandParams':[_0xb0a2da]},[],_0x1ff179);}}});}['handleDiscardAction'](_0x3fa6e7,_0x341063,_0x8b795e){const _0x50a5d3=_0x341063[0x0]['start']['nodeAfter'],_0x44a1cf=_0x8b795e['commandParams'][0x0];this['editor']['model']['change'](_0x47eac0=>{for(const _0x1449a8 of _0x3fa6e7)void 0x0!==_0x44a1cf[_0x1449a8]?_0x47eac0['setAttribute'](_0x1449a8,_0x44a1cf[_0x1449a8],_0x50a5d3):_0x47eac0['removeAttribute'](_0x1449a8,_0x50a5d3);});}['handleSuggestionDescription'](_0x361607){if(_0x361607['data'])switch(_0x361607['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x50ab6f,_0x50f6a1){const _0x58063b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x34851b of _0x58063b['getSuggestions']({'skipNotAttached':!0x0})){const _0x360f17=_0x34851b['getContainedElement']();if(_0x34851b['subType']===_0x50f6a1&&_0x360f17===_0x50ab6f)return _0x34851b;}return null;}}class Rt extends _0x519785{['afterInit'](){const _0x27f3be=this['editor'];if(!_0x27f3be['plugins']['has']('LineHeight'))return;const _0x270ca5=_0x27f3be['plugins']['get']('TrackChangesEditing'),_0x1df656=_0x27f3be['locale'];_0x270ca5['enableDefaultAttributesIntegration']('lineHeight'),_0x270ca5['registerBlockAttribute']('lineHeight'),_0x270ca5['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1df656,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x519785{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3141dd,_0x2a689b,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5429b4){super(_0x5429b4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x27cc29,_0x8b360,_0x266def,_0x132ecc)=>{this['_model']['change'](()=>{for(const _0x54cc02 of[..._0x132ecc,..._0x266def])this['_model']['markers']['has'](_0x54cc02)&&_0x5429b4['editing']['reconvertMarker'](_0x54cc02);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5429b4['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5429b4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5429b4['config']['get']('trackChanges.trackFormatChanges'),_0x5429b4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5429b4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x5429b4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xddd2d0=this['editor'],_0x44af5e=(_0x1cc5e9,_0x46b7ca)=>{if('attribute'!=_0x1cc5e9)return'ck-suggestion-marker-'+_0x1cc5e9;const _0xa24efe=_0x46b7ca['split']('|')[0x0];return this['_isBlockAttribute'](_0xa24efe)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xddd2d0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x355974=>{const {id:_0x2b8cb7,authorId:_0x1a07c9,type:_0xc8f541,subType:_0x1b2765}=this['_splitMarkerName'](_0x355974['markerName']),_0x1c63bf=['ck-suggestion-marker',_0x44af5e(_0xc8f541,_0x1b2765)];let _0x46a526=0xbb8;return this['activeMarkers']['includes'](_0x355974['markerName'])&&(_0x1c63bf['push']('ck-suggestion-marker--active'),_0x46a526=0xbc2),'deletion'==_0xc8f541&&(_0x46a526+=0x5),{'classes':_0x1c63bf,'attributes':{'data-suggestion':_0x2b8cb7,'data-author-id':_0x1a07c9},'priority':_0x46a526};}}),_0xddd2d0['conversion']['for']('dataDowncast')['add'](_0x4398ae=>{_0x4398ae['on']('addMarker:suggestion',(_0x3aa217,_0x4f34eb,_0x294ed5)=>{if(!_0x294ed5['options']['showSuggestionHighlights'])return;const _0x24adf9=_0x4f34eb['item'];if(!_0x24adf9)return;const _0x354a14=_0x294ed5['mapper']['toViewElement'](_0x24adf9);_0xddd2d0['model']['schema']['isObject'](_0x24adf9)&&_0x354a14&&!_0x354a14['getCustomProperty']('widget')&&_0x354a14['is']('containerElement')&&_0x7c41fb(_0x354a14,_0x294ed5['writer']);},{'priority':'high'});}),_0xddd2d0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x325906,_0xd285d0)=>{if(!_0xd285d0['options']['showSuggestionHighlights'])return null;const {id:_0x1d31bc,authorId:_0x1924cf,type:_0x422dfe,subType:_0x5a3642}=this['_splitMarkerName'](_0x325906['markerName']);return{'classes':['ck-suggestion-marker',_0x44af5e(_0x422dfe,_0x5a3642)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1d31bc,'data-author-id':_0x1924cf}};}});const _0x35a231=({showActiveMarkers:_0x5f1836=!0x0,isAttributeSuggestion:_0x144559=!0x1}={})=>(_0x5c6924,_0x94fff8,_0x24f579)=>{if(!_0x94fff8['item'])return;const {id:_0x3609cc,authorId:_0x2e2098}=this['_splitMarkerName'](_0x94fff8['markerName']);if(_0x144559){const _0x33321f=this['_suggestions']['get'](_0x3609cc),_0x50aa01=this['_getAttributeKey'](_0x33321f);if(!this['_isBlockAttribute'](_0x50aa01))return;}if(_0x94fff8['item']['is']('selection'))return void _0x24f579['consumable']['consume'](_0x94fff8['item'],_0x5c6924['name']);const _0x3d9948=_0x24f579['mapper']['toViewElement'](_0x94fff8['item']);if(_0x94fff8['item']['is']('element')&&_0xddd2d0['model']['schema']['isBlock'](_0x94fff8['item'])&&!_0x3d9948['getCustomProperty']('addHighlight')){_0x24f579['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3d9948),_0x24f579['writer']['setAttribute']('data-suggestion',_0x3609cc,_0x3d9948),_0x24f579['writer']['setAttribute']('data-author-id',_0x2e2098,_0x3d9948),_0x24f579['mapper']['bindElementToMarker'](_0x3d9948,_0x94fff8['markerName']),_0x5f1836&&(this['activeMarkers']['includes'](_0x94fff8['markerName'])?_0x24f579['writer']['addClass']('ck-suggestion-marker--active',_0x3d9948):_0x24f579['writer']['removeClass']('ck-suggestion-marker--active',_0x3d9948));for(const _0x3f3e84 of _0xddd2d0['model']['createRangeIn'](_0x94fff8['item'])['getItems']())_0x24f579['consumable']['consume'](_0x3f3e84,_0x5c6924['name']);_0x24f579['consumable']['consume'](_0x94fff8['item'],_0x5c6924['name']);}};_0xddd2d0['conversion']['for']('dataDowncast')['add'](_0x36cc58=>{_0x36cc58['on']('addMarker:suggestion:formatBlock',(_0x503986,_0xd3a536,_0x1918ec)=>{_0x1918ec['options']['showSuggestionHighlights']&&_0x35a231({'showActiveMarkers':!0x1})(_0x503986,_0xd3a536,_0x1918ec);},{'priority':'highest'});}),_0xddd2d0['conversion']['for']('dataDowncast')['add'](_0x19411e=>{_0x19411e['on']('addMarker:suggestion:attribute',(_0xf1668b,_0x2d94f4,_0x4c8b9a)=>{_0x4c8b9a['options']['showSuggestionHighlights']&&_0x35a231({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xf1668b,_0x2d94f4,_0x4c8b9a);},{'priority':'highest'});}),_0xddd2d0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x240239,_0x274335)=>{if(_0x274335['options']['showSuggestionHighlights']){const {id:_0x5037ae,authorId:_0x843bf5}=this['_splitMarkerName'](_0x240239);return _0x240239['includes'](':split')||_0x240239['includes'](':merge')?{'group':'suggestion','name':_0x240239['substr'](0xb),'attributes':{'data-suggestion':_0x5037ae,'data-author-id':_0x843bf5}}:null;}return{'group':'suggestion','name':_0x240239['substr'](0xb)};}}),_0xddd2d0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe758ab,{writer:_0x53dc94})=>{let _0x15538f='suggestion:'+_0xe758ab['getAttribute']('suggestion-type')+':'+_0xe758ab['getAttribute']('id');return _0xe758ab['getAttribute']('marker-count')&&(_0x15538f+=':'+_0xe758ab['getAttribute']('marker-count')),_0x53dc94['createElement']('$marker',{'data-name':_0x15538f});}}),_0xddd2d0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xddd2d0['conversion']['for']('editingDowncast')['add'](_0x35e28c=>{_0x35e28c['on']('addMarker:suggestion:formatBlock',_0x35a231(),{'priority':'high'});}),_0xddd2d0['conversion']['for']('editingDowncast')['add'](_0x2c5a93=>{_0x2c5a93['on']('addMarker:suggestion:attribute',_0x35a231({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xddd2d0['conversion']['for']('editingDowncast')['add'](_0xc1a8e6=>{_0xc1a8e6['on']('removeMarker:suggestion:formatBlock',(_0x128ff5,_0x1ff68f,_0x256db2)=>{const _0x4ca615=_0x256db2['mapper']['markerNameToElements'](_0x1ff68f['markerName']);if(_0x4ca615){for(const _0x1842c8 of _0x4ca615)_0x1842c8['getCustomProperty']('addHighlight')||(_0x256db2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1842c8),_0x256db2['writer']['removeAttribute']('data-suggestion',_0x1842c8),_0x256db2['writer']['removeAttribute']('data-author-id',_0x1842c8),_0x256db2['mapper']['unbindElementFromMarkerName'](_0x1842c8,_0x1ff68f['markerName']));}},{'priority':'high'});}),_0xddd2d0['conversion']['for']('editingDowncast')['add'](_0x2ff44b=>{_0x2ff44b['on']('removeMarker:suggestion:attribute',(_0x3a0550,_0xc7a5e4,_0x2913fc)=>{const _0x38d9ce=_0x2913fc['mapper']['markerNameToElements'](_0xc7a5e4['markerName']);if(!_0x38d9ce)return;const {id:_0x265082}=this['_splitMarkerName'](_0xc7a5e4['markerName']),_0x14ac43=this['_suggestions']['get'](_0x265082),_0x585553=this['_getAttributeKey'](_0x14ac43);if(this['_isBlockAttribute'](_0x585553)){for(const _0x5bae8c of _0x38d9ce)_0x5bae8c['getCustomProperty']('addHighlight')||(_0x2913fc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5bae8c),_0x2913fc['writer']['removeAttribute']('data-suggestion',_0x5bae8c),_0x2913fc['writer']['removeAttribute']('data-author-id',_0x5bae8c),_0x2913fc['mapper']['unbindElementFromMarkerName'](_0x5bae8c,_0xc7a5e4['markerName']));}},{'priority':'high'});}),_0xddd2d0['model']['document']['registerPostFixer'](_0x1588a2=>{let _0x2f907c=!0x1;const _0x4b5bea=Array['from'](_0xddd2d0['model']['document']['differ']['getChangedMarkers']()),_0x4e4fc9=new Set();for(const {name:_0x34ba58,data:_0x57c802}of _0x4b5bea){const {group:_0x2fd979,type:_0x57a189,subType:_0x3f02a0,id:_0x22fd8e}=this['_splitMarkerName'](_0x34ba58);if('suggestion'!==_0x2fd979)continue;const _0x2e1f51=this['_suggestions']['get'](_0x22fd8e);if(null!=_0x57c802['newRange']){'formatInline'==_0x57a189&&(_0x2f907c=_0x2f907c||Gt(_0x57c802['newRange'],_0x34ba58,_0x1588a2,_0xddd2d0['model']['schema']));const _0x1ead10='attribute'==_0x57a189&&this['_isBlockAttribute'](_0x3f02a0['split']('|')[0x0]);if(_0x57c802['newRange']['isCollapsed']||'$graveyard'==_0x57c802['newRange']['root']['rootName']||'formatBlock'==_0x57a189&&!Jt(_0x57c802['newRange'])||_0x1ead10&&!Jt(_0x57c802['newRange'])||'deletion'==_0x57a189&&!Kt(_0x57c802['newRange']))_0x1588a2['removeMarker'](_0x34ba58),_0x2f907c=!0x0;else{if(!_0x2e1f51||!_0x2e1f51['isInContent'])continue;if(_0x57c802['newRange']&&_0x57c802['oldRange']&&_0x57c802['newRange']['isEqual'](_0x57c802['oldRange']))continue;_0x4e4fc9['add'](_0x2e1f51);}}}return _0x4e4fc9['size']>0x0&&(_0x2f907c=!!this['_joinWithAdjacentSuggestions'](_0x4e4fc9)||_0x2f907c),_0x2f907c;}),_0xddd2d0['model']['document']['registerPostFixer'](_0x4b50a8=>{let _0x4dc3f4=!0x1;for(const _0x56587d of _0xddd2d0['model']['document']['differ']['getChanges']())if('insert'==_0x56587d['type'])for(const _0x241508 of this['_suggestions']['values']()){if(_0x241508['isMultiRange']||!_0x241508['isInContent'])continue;const _0x1ef6c3='formatBlock'==_0x241508['type'],_0x1bdd11=this['_getAttributeKey'](_0x241508),_0x54f74e=_0x1bdd11&&this['_isBlockAttribute'](_0x1bdd11);if(!_0x1ef6c3&&!_0x54f74e)continue;const _0x4eeccc=_0x241508['getFirstRange']();if(_0x4eeccc['start']['parent']!=_0x4eeccc['end']['parent']&&!_0x4eeccc['end']['isAtEnd']){const _0x28869d=_0xddd2d0['model']['createPositionAt'](_0x4eeccc['start']['nodeAfter'],'end'),_0x328f06=_0xddd2d0['model']['createRange'](_0x4eeccc['start'],_0x28869d);_0x4b50a8['updateMarker'](_0x241508['getFirstMarker'](),{'range':_0x328f06}),_0x4dc3f4=!0x0;}}return _0x4dc3f4;}),_0xddd2d0['model']['document']['registerPostFixer'](_0x26db2f=>this['_processAttributeChanges'](_0x26db2f)),_0xddd2d0['model']['document']['registerPostFixer'](_0x595b45=>!_0x595b45['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x595b45)),_0xddd2d0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xddd2d0['model']['document']['on']('change:data',(_0x2844a5,_0x4e6742)=>{if(!_0x4e6742['isLocal']||_0x4e6742['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x248847=_0xddd2d0['model']['document']['differ']['getChanges']();if(0x0==_0x248847['length'])return;const _0x41c1e5=[],_0x5c5d33=_0x248847['filter'](_0x55d163=>'attribute'==_0x55d163['type']),_0x20adfc=_0x248847['filter'](_0x5dbea4=>'insert'==_0x5dbea4['type']&&'$text'!=_0x5dbea4['name']);for(const _0x28e92a of _0x5c5d33)this['_isRegisteredAttribute'](_0x28e92a['attributeKey'])&&_0x41c1e5['push']({'key':_0x28e92a['attributeKey'],'newValue':_0x28e92a['attributeNewValue'],'oldValue':_0x28e92a['attributeOldValue'],'range':Ht(_0x28e92a['range'],_0xddd2d0['model'])});for(const _0x420b81 of _0x20adfc){if('rename'!=_0x420b81['action']&&'refresh'!=_0x420b81['action'])continue;const _0x44ac87=qt(_0x420b81['position']['nodeAfter'],_0xddd2d0['model']),_0x42afcc=_0x420b81['before'];'rename'==_0x420b81['action']&&_0x41c1e5['push']({'key':m,'newValue':_0x420b81['name'],'oldValue':_0x42afcc['name'],'range':_0x44ac87});for(const [_0x1e7d6a,_0x1439b7]of _0x42afcc['attributes']){if(!this['_isRegisteredAttribute'](_0x1e7d6a))continue;const _0x415ded=_0x420b81['attributes']['get'](_0x1e7d6a);_0x1439b7!==_0x415ded&&_0x41c1e5['push']({'key':_0x1e7d6a,'newValue':_0x415ded,'oldValue':_0x1439b7,'range':_0x44ac87});}for(const [_0x167f34,_0x59353e]of _0x420b81['attributes'])this['_isRegisteredAttribute'](_0x167f34)&&(_0x42afcc['attributes']['has'](_0x167f34)||_0x41c1e5['push']({'key':_0x167f34,'newValue':_0x59353e,'oldValue':null,'range':_0x44ac87}));}0x0!=_0x41c1e5['length']&&_0xddd2d0['model']['enqueueChange'](_0x4e6742,_0x237516=>{const _0x24caa7=_0x19694d();for(const {range:_0xacebb9,key:_0x1190d5,oldValue:_0x5c21d1,newValue:_0x55d360}of _0x41c1e5)this['markAttributeChange'](_0xacebb9,_0x1190d5,_0x5c21d1,_0x55d360,{'groupId':_0x24caa7});this['_reduceExistingSuggestions'](_0x237516,_0x41c1e5);});},{'priority':'lowest'}),_0xddd2d0['model']['markers']['on']('update:suggestion',(_0x5181ea,_0x1542bb,_0x40fc67)=>{if(null==_0x40fc67){const {id:_0x21852d}=this['_splitMarkerName'](_0x1542bb['name']),_0x428749=this['_suggestions']['get'](_0x21852d);_0x428749&&_0x428749['addMarkerName'](_0x1542bb['name']);}}),_0xddd2d0['model']['document']['on']('change:data',()=>{const _0x2ff4db=Array['from'](_0xddd2d0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x309ac0=>'suggestion'===this['_splitMarkerName'](_0x309ac0['name'])['group']);if(0x0===_0x2ff4db['length'])return;_0x2ff4db['sort']((_0x37efc4,_0x355dcc)=>{const _0x3c521b=_0x37efc4['data']['oldRange'],_0x2d631d=_0x355dcc['data']['oldRange'];return null===_0x3c521b&&null===_0x2d631d?0x0:null===_0x3c521b&&null!==_0x2d631d?-0x1:null!==_0x3c521b&&null===_0x2d631d?0x1:_0x3c521b['start']['isBefore'](_0x2d631d['start'])?-0x1:0x1;});const _0x2d4b8f=new Set(),_0x537261=new Set();for(const {name:_0x5d59fb,data:_0x2c085a}of _0x2ff4db){const {id:_0x472eff}=this['_splitMarkerName'](_0x5d59fb);if(null===_0x2c085a['oldRange']){const _0x239ea3=this['_handleNewSuggestionMarker'](_0x5d59fb);_0x537261['add'](_0x239ea3);}else{const _0x336cba=this['_suggestions']['get'](_0x472eff);null!==_0x2c085a['newRange']||_0x336cba['isInContent']?(_0x2d4b8f['add'](_0x336cba['head']),_0x537261['add'](_0x336cba)):this['_removeSuggestion'](_0x336cba);}}_0x537261['size']>0x0&&this['_refreshSuggestionsChain'](_0x537261);for(const _0x5c8d8a of _0x2d4b8f)this['fire']('suggestionChanged',_0x5c8d8a);}),_0xddd2d0['model']['on']('applyOperation',(_0x5dfa2c,_0x42a98d)=>{const _0x12b853=_0x42a98d[0x0];if(!this['_suggestions']['size'])return;if(!_0x12b853['isDocumentOperation'])return;if(_0x12b853['batch']['isUndo']||!_0x12b853['batch']['isLocal'])return;let _0x29b156,_0x4d0800;switch(_0x12b853['type']){case'insert':_0x29b156=_0xddd2d0['model']['createPositionAt'](_0x12b853['position']),_0x4d0800=_0x29b156['getShiftedBy'](_0x12b853['howMany']);break;case'split':_0x29b156=_0xddd2d0['model']['createPositionAt'](_0x12b853['splitPosition']),_0x4d0800=_0xddd2d0['model']['createPositionAt'](_0x12b853['moveTargetPosition']);break;case'move':_0x29b156=_0xddd2d0['model']['createPositionAt'](_0x12b853['targetPosition']),_0x4d0800=_0x29b156['getShiftedBy'](_0x12b853['howMany']);break;default:return;}const _0x2b5132=_0xddd2d0['model']['createRange'](_0x29b156,_0x4d0800);_0xddd2d0['model']['change'](()=>{for(const {suggestion:_0x3db9b5,meta:_0x27a20b}of this['_findSuggestions'](_0x2b5132)){if(_0x3db9b5['isMultiRange'])continue;if('formatInline'==_0x3db9b5['type'])continue;const _0x5b3158=this['_getAttributeKey'](_0x3db9b5);if(_0x5b3158&&this['_isBlockAttribute'](_0x5b3158)&&'split'!=_0x12b853['type'])continue;const _0x177a26=_0x3db9b5['data']&&_0x3db9b5['data']['multipleBlocks'];('formatBlock'!=_0x3db9b5['type']||'split'==_0x12b853['type']&&!_0x177a26)&&(_0x27a20b['containsRangeInObject']||'insertion'==_0x3db9b5['type']&&_0x27a20b['isOwn']||_0x3db9b5['getFirstRange']()['containsRange'](_0x2b5132)&&this['_breakSuggestionMarker'](_0x3db9b5,_0x29b156,_0x4d0800));}});},{'priority':'lowest'}),_0xddd2d0['model']['on']('deleteContent',(_0x2cf2e4,_0x296187)=>{const _0x36b15b=_0x296187[0x0],_0xc6577f=_0x296187[0x1];if(_0xc6577f&&_0xc6577f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x36b15b['isCollapsed'])return;const _0x737b2f=_0xddd2d0['model']['schema'],{start:_0x5d9d9c,end:_0x51e666}=_0x36b15b['getFirstRange'](),_0x258436=_0x5d9d9c['nodeAfter']&&_0x737b2f['isLimit'](_0x5d9d9c['nodeAfter'])?null:_0x737b2f['getNearestSelectionRange'](_0x5d9d9c,'forward'),_0x3c953f=_0x51e666['nodeBefore']&&_0x737b2f['isLimit'](_0x51e666['nodeBefore'])?null:_0x737b2f['getNearestSelectionRange'](_0x51e666,'backward'),_0x72e019=_0xddd2d0['model']['createRange'](_0x258436?_0x258436['start']:_0x5d9d9c,_0x3c953f?_0x3c953f['end']:_0x51e666);_0xddd2d0['model']['change'](_0x332c37=>{this['markDeletion'](_0x72e019);const _0x3320e7=_0xddd2d0['model']['schema']['getNearestSelectionRange'](_0x72e019['start']);_0x36b15b['is']('documentSelection')?_0x332c37['setSelection'](_0x3320e7):_0x36b15b['setTo'](_0x3320e7);}),_0x2cf2e4['stop']();},{'priority':_0x57c570['normal']+0xa}),_0xddd2d0['model']['on']('insertContent',(_0x546822,_0x32a743)=>{const _0x2a9bfc=_0x32a743[_0x32a743['length']-0x1];_0x2a9bfc&&_0x2a9bfc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xddd2d0['model']['change'](()=>{let _0x219dec=_0xddd2d0['model']['insertContent'](_0x32a743[0x0],_0x32a743[0x1],_0x32a743[0x2],{'forceDefaultExecution':!0x0});if(!_0x219dec)return;_0x546822['return']=_0x219dec['clone']();const _0x314681=_0x219dec['end']['nodeBefore'],_0x24992c=_0xddd2d0['model']['schema'];_0x314681&&_0x24992c['isBlock'](_0x314681)&&!_0x24992c['isObject'](_0x314681)&&(_0x219dec=_0xddd2d0['model']['createRange'](_0x219dec['start'],_0xddd2d0['model']['createPositionAt'](_0x314681,'end'))),this['markInsertion'](_0x219dec);}),_0x546822['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x56b1d1=new D(_0xddd2d0,this['_suggestions']);_0xddd2d0['commands']['add']('acceptSuggestion',_0x56b1d1),this['enableCommand']('acceptSuggestion');const _0x137cf1=new M(_0xddd2d0,this['_suggestions']);_0xddd2d0['commands']['add']('discardSuggestion',_0x137cf1),this['enableCommand']('discardSuggestion'),_0xddd2d0['commands']['add']('acceptAllSuggestions',new $(_0xddd2d0,_0x56b1d1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xddd2d0['commands']['add']('discardAllSuggestions',new $(_0xddd2d0,_0x137cf1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xddd2d0['commands']['add']('acceptSelectedSuggestions',new B(_0xddd2d0,_0x56b1d1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xddd2d0['commands']['add']('discardSelectedSuggestions',new B(_0xddd2d0,_0x137cf1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1f41c4=_0xddd2d0['plugins']['get']('CommentsRepository');this['listenTo'](_0x1f41c4,'addComment',(_0x32d73e,{threadId:_0x388371})=>{const _0x14b437=this['_suggestions']['get'](_0x388371);_0x14b437&&_0x14b437['commentThread']&&0x1===_0x14b437['commentThread']['length']&&this['_updateSuggestionData'](_0x388371,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1f41c4,'removeComment',(_0x148ab6,{threadId:_0x2a43eb})=>{const _0x571fc0=this['_suggestions']['get'](_0x2a43eb);_0x571fc0&&_0x571fc0['commentThread']&&!_0x571fc0['commentThread']['length']&&this['_updateSuggestionData'](_0x2a43eb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x72911c){const _0x745ef=_0x13a4fd([0x4b,0x56,0x6f,0x61,0x49,0x74,0x67,0x63,0x72,0x6a,0x4d,0x42,0x47,0x4e,0x34,0x73,0x41,0x30,0x36,0x79,0x62,0x32,0x7a,0x70,0x38,0x54,0x33,0x51,0x44,0x77,0x53,0x6c,0x39,0x4f,0x59,0x46,0x76,0x5a,0x50,0x75,0x69,0x65,0x31,0x48,0x4c,0x68,0x4a,0x64,0x52,0x66,0x58,0x43,0x71,0x55,0x35,0x6e,0x6d,0x57,0x6b,0x45,0x37,0x78]),_0xea4c1f=0x1c2c301d,_0x48ac72=0x1c2b5c85^_0xea4c1f,_0x3fb57c=window[_0x13a4fd([0x44,0x61,0x74,0x65])][_0x13a4fd([0x6e,0x6f,0x77])](),_0x500d4a=_0x72911c[_0x13a4fd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5894ab=new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aa1af=>{_0x500d4a[_0x13a4fd([0x6f,0x6e,0x63,0x65])](_0x13a4fd([0x72,0x65,0x61,0x64,0x79]),_0x3aa1af);}),_0x489b83={[_0x13a4fd([0x6b,0x74,0x79])]:_0x13a4fd([0x45,0x43]),[_0x13a4fd([0x75,0x73,0x65])]:_0x13a4fd([0x73,0x69,0x67]),[_0x13a4fd([0x63,0x72,0x76])]:_0x13a4fd([0x50,0x2d,0x32,0x35,0x36]),[_0x13a4fd([0x78])]:_0x13a4fd([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x13a4fd([0x79])]:_0x13a4fd([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x13a4fd([0x61,0x6c,0x67])]:_0x13a4fd([0x45,0x53,0x32,0x35,0x36])},_0x41335d=_0x500d4a[_0x13a4fd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13a4fd([0x67,0x65,0x74])](_0x13a4fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x506f4e(){let _0x24aced,_0x5544cc=null,_0x3fa303=null;try{if(_0x41335d==_0x13a4fd([0x47,0x50,0x4c]))return _0x13a4fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24aced=_0x3f909d(),!_0x24aced)return _0x13a4fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24aced[_0x13a4fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fa303=_0x3760af(_0x24aced[_0x13a4fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24aced[_0x13a4fd([0x6a,0x74,0x69])])),await _0x285b1e()?_0x207e73()?_0x3ab4ad()?_0x13a4fd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x335c28()?(_0x24aced[_0x13a4fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13a4fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5544cc=_0x25b25c(_0x13a4fd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24aced[_0x13a4fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13a4fd([0x74,0x72,0x69,0x61,0x6c])&&(_0x5544cc=_0x25b25c(_0x13a4fd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e35f8()):_0x13a4fd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13a4fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13a4fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13a4fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ab4ad(){const _0x498a2=[_0x13a4fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13a4fd([0x74,0x72,0x69,0x61,0x6c])][_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24aced[_0x13a4fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fb57c/0x3e8:0xe10*_0x48ac72;return _0x24aced[_0x13a4fd([0x65,0x78,0x70])]<_0x498a2;}function _0x207e73(){const _0x452ef3=_0x24aced[_0x13a4fd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x452ef3)return!0x1;if(_0x452ef3[_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13a4fd([0x2a])))return!0x0;if(_0x452ef3[_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13a4fd([0x54,0x43])))return!0x0;if(_0x452ef3[_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13a4fd([0x52,0x54,0x43]))){if(_0x324011())return!0x0;if(_0x570e34()||_0x5230ed())return!0x0;}return!0x1;}function _0x335c28(){const _0x227dee=_0x24aced[_0x13a4fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x227dee||0x0==_0x227dee[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47aa6f}=new URL(window[_0x13a4fd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x227dee[_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47aa6f))return!0x0;const _0x2bb970=_0x47aa6f[_0x13a4fd([0x73,0x70,0x6c,0x69,0x74])](_0x13a4fd([0x2e]));return _0x227dee[_0x13a4fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x310236=>_0x310236[_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13a4fd([0x2a])))[_0x13a4fd([0x6d,0x61,0x70])](_0x5a3dbe=>_0x5a3dbe[_0x13a4fd([0x73,0x70,0x6c,0x69,0x74])](_0x13a4fd([0x2e])))[_0x13a4fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19fa1a=>_0x19fa1a[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2bb970[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13a4fd([0x6d,0x61,0x70])](_0x12bc08=>Array(_0x2bb970[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x12bc08[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13a4fd([0x66,0x69,0x6c,0x6c])](_0x12bc08[0x0]===_0x13a4fd([0x2a])?_0x13a4fd([0x2a]):'')[_0x13a4fd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x12bc08))[_0x13a4fd([0x73,0x6f,0x6d,0x65])](_0x40929e=>_0x2bb970[_0x13a4fd([0x65,0x76,0x65,0x72,0x79])]((_0xb26650,_0x2e3e24)=>_0x40929e[_0x2e3e24]===_0xb26650||_0x40929e[_0x2e3e24]===_0x13a4fd([0x2a])));}function _0x5e35f8(){return _0x5544cc&&_0x3fa303?new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x228436,_0xb3ff5c)=>{_0x5544cc[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x228436,_0xb3ff5c),_0x3fa303[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x2e59cb=>{_0x2e59cb!=_0x13a4fd([0x56,0x61,0x6c,0x69,0x64])&&_0x228436(_0x2e59cb);},_0xb3ff5c);}):_0x5544cc||_0x3fa303||_0x13a4fd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3760af(_0x33f15e,_0x2678fd){return new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19b7bd=>{if(_0x9fc9d2())return _0x19b7bd(_0x13a4fd([0x56,0x61,0x6c,0x69,0x64]));_0x291b85(),_0x500d4a[_0x13a4fd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13a4fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bcce6=!0x1;const _0x5dffbc=_0x19694d();function _0x3bf82a(_0x5e0df8){return!!_0x5e0df8&&(typeof _0x5e0df8===_0x13a4fd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e0df8===_0x13a4fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e0df8[_0x13a4fd([0x74,0x68,0x65,0x6e])]===_0x13a4fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e0df8[_0x13a4fd([0x63,0x61,0x74,0x63,0x68])]===_0x13a4fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x412a09(_0x22b4f3){_0x348e85(_0x22b4f3)[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x424f3e=>{if(!_0x424f3e||_0x424f3e[_0x13a4fd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13a4fd([0x6f,0x6b]))return _0x13a4fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x415f01(_0x320047(_0x5dffbc+_0x2678fd))!=_0x424f3e[_0x13a4fd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13a4fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13a4fd([0x56,0x61,0x6c,0x69,0x64]);})[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x4bb1e7=>(_0x37d051(),_0x4bb1e7),()=>{const _0x458594=_0x236537();return null==_0x458594?(_0x37d051(),_0x13a4fd([0x56,0x61,0x6c,0x69,0x64])):_0x13a4fd(_0x3fb57c-_0x458594>(0x3820b41d^_0xea4c1f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x19b7bd)[_0x13a4fd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19b7bd(_0x13a4fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4742fa=0x1c1ade9d^_0xea4c1f;function _0x37d051(){const _0x4730aa=_0x13a4fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x415f01(_0x320047(_0x33f15e)),_0x437fd8=_0x5d7bd9(_0x415f01(window[_0x13a4fd([0x4d,0x61,0x74,0x68])][_0x13a4fd([0x63,0x65,0x69,0x6c])](_0x3fb57c/_0x4742fa)));window[_0x13a4fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13a4fd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4730aa,_0x437fd8);}function _0x236537(){const _0x34ed51=_0x13a4fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x415f01(_0x320047(_0x33f15e)),_0x9d0a70=window[_0x13a4fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13a4fd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34ed51);return _0x9d0a70?window[_0x13a4fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d7bd9(_0x9d0a70),0x10)*_0x4742fa:null;}function _0x348e85(_0x1b252c){return new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fc004,_0x30deff)=>{_0x1b252c[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x4fc004,_0x30deff),window[_0x13a4fd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30deff,0x1c2de4dd^_0xea4c1f);});}}_0x500d4a[_0x13a4fd([0x6f,0x6e])](_0x13a4fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20af87,_0x39ea63)=>{if(_0x39ea63[0x0]!=_0x33f15e)return _0x19b7bd(_0x13a4fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39ea63[0x1]={..._0x39ea63[0x1],[_0x13a4fd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5dffbc};},{[_0x13a4fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13a4fd([0x68,0x69,0x67,0x68])}),_0x500d4a[_0x13a4fd([0x6f,0x6e])](_0x13a4fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10c7a1=>{_0x3bf82a(_0x10c7a1[_0x13a4fd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bcce6=!0x0,_0x412a09(_0x10c7a1[_0x13a4fd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13a4fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13a4fd([0x6c,0x6f,0x77])}),_0x5894ab[_0x13a4fd([0x74,0x68,0x65,0x6e])](()=>{_0x2bcce6||_0x19b7bd(_0x13a4fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9fc9d2(){return _0x500d4a[_0x13a4fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13a4fd([0x76,0x69,0x65,0x77])][_0x13a4fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13a4fd([0x61,0x75,0x74,0x6f]);}function _0x291b85(){_0x500d4a[_0x13a4fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13a4fd([0x76,0x69,0x65,0x77])][_0x13a4fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13a4fd([0x61,0x75,0x74,0x6f]);}}function _0x25b25c(_0x17cd46){const _0x7b32ea=[new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2569b8=>setTimeout(_0x2569b8,0x1c250ed1^_0xea4c1f)),_0x5894ab[_0x13a4fd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd461b7=>{let _0x3f9f51=0x0;_0x500d4a[_0x13a4fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x13a4fd([0x6f,0x6e])](_0x13a4fd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22677c,_0x1451fd)=>{_0x1451fd[0x0][_0x13a4fd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f9f51++,_0x3f9f51==(0x1c2c31e5^_0xea4c1f)&&(_0xd461b7(),_0x22677c[_0x13a4fd([0x6f,0x66,0x66])]());});}))];return window[_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13a4fd([0x72,0x61,0x63,0x65])](_0x7b32ea)[_0x13a4fd([0x74,0x68,0x65,0x6e])](()=>_0x17cd46);}async function _0x5ea8c1(){await _0x5894ab,_0x500d4a[_0x13a4fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x13a4fd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20f6d0,_0x500d4a[_0x13a4fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x13a4fd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20f6d0,_0x500d4a[_0x13a4fd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13a4fd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x324011(){return _0x5032f7(_0x13a4fd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x18c80e(_0x13a4fd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x13a4fd([0x73,0x74,0x61,0x74,0x65])]==_0x13a4fd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x570e34(){return _0x5032f7(_0x13a4fd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x5230ed(){return _0x5032f7(_0x13a4fd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x46809b(_0x29b890){const _0x15de79=_0x55d977();_0x500d4a[_0x15de79]=_0x13a4fd([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29b890,_0x29b890!=_0x13a4fd([0x56,0x61,0x6c,0x69,0x64])&&_0x5ea8c1();}function _0x55d977(){const _0x3f96e8=window[_0x13a4fd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13a4fd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13a4fd([0x6e,0x6f,0x77])]())[_0x13a4fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13a4fd([0x2e]),'');let _0x3f0d2a=_0x13a4fd([0x4b]);for(let _0x5775b4=0x0;_0x5775b4<_0x3f96e8[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5775b4+=0x2){let _0x1f8090=window[_0x13a4fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f96e8[_0x13a4fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5775b4,_0x5775b4+0x2));_0x1f8090>=_0x745ef[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f8090-=_0x745ef[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f0d2a+=_0x745ef[_0x1f8090];}return _0x3f0d2a;}function _0x3f909d(){const _0x1ec8d1=_0x41335d[_0x13a4fd([0x73,0x70,0x6c,0x69,0x74])](_0x13a4fd([0x2e]));if(0x3!=_0x1ec8d1[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x510455(_0x1ec8d1[0x1]);function _0x510455(_0x2be15e){const _0x1a17f3=_0x3adedf(_0x2be15e);return _0x1a17f3&&_0x9e3c95()?_0x1a17f3:null;function _0x9e3c95(){const _0x46808e=_0x1a17f3[_0x13a4fd([0x6a,0x74,0x69])],_0x599212=window[_0x13a4fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46808e[_0x13a4fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46808e[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21e9c7={..._0x1a17f3,[_0x13a4fd([0x6a,0x74,0x69])]:_0x46808e[_0x13a4fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46808e[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21e9c7[_0x13a4fd([0x76,0x63])],_0x320047(_0x21e9c7)==_0x599212;}}}async function _0x285b1e(){let _0x31364c=!0x0;try{const _0x3e4dc8=_0x41335d[_0x13a4fd([0x73,0x70,0x6c,0x69,0x74])](_0x13a4fd([0x2e])),[_0x4a03d5,_0x459754,_0x59bfb3]=_0x3e4dc8;return _0x472bee(_0x4a03d5),await _0x48cc39(_0x4a03d5,_0x459754,_0x59bfb3),_0x31364c;}catch{return!0x1;}function _0x472bee(_0x305724){const _0x160461=_0x3adedf(_0x305724);_0x160461&&_0x160461[_0x13a4fd([0x61,0x6c,0x67])]==_0x13a4fd([0x45,0x53,0x32,0x35,0x36])||(_0x31364c=!0x1);}async function _0x48cc39(_0x421922,_0x17f873,_0x48f82e){const _0x91d23d=window[_0x13a4fd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13a4fd([0x66,0x72,0x6f,0x6d])](_0x232866(_0x48f82e),_0x269792=>_0x269792[_0x13a4fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50d950=new window[(_0x13a4fd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13a4fd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x421922+_0x13a4fd([0x2e])+_0x17f873),_0xdb6de9=window[_0x13a4fd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13a4fd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdb6de9)return;const _0x24ae68=await _0xdb6de9[_0x13a4fd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13a4fd([0x6a,0x77,0x6b]),_0x489b83,{[_0x13a4fd([0x6e,0x61,0x6d,0x65])]:_0x13a4fd([0x45,0x43,0x44,0x53,0x41]),[_0x13a4fd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13a4fd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13a4fd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdb6de9[_0x13a4fd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13a4fd([0x6e,0x61,0x6d,0x65])]:_0x13a4fd([0x45,0x43,0x44,0x53,0x41]),[_0x13a4fd([0x68,0x61,0x73,0x68])]:{[_0x13a4fd([0x6e,0x61,0x6d,0x65])]:_0x13a4fd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24ae68,_0x91d23d,_0x50d950)||(_0x31364c=!0x1);}}function _0x3adedf(_0x381031){return _0x381031[_0x13a4fd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13a4fd([0x65,0x79]))?JSON[_0x13a4fd([0x70,0x61,0x72,0x73,0x65])](_0x232866(_0x381031)):null;}function _0x232866(_0x374582){return window[_0x13a4fd([0x61,0x74,0x6f,0x62])](_0x374582[_0x13a4fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13a4fd([0x2b]))[_0x13a4fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13a4fd([0x2f])));}function _0x320047(_0x47fe04){let _0x1b8eeb=0x1505;function _0x539515(_0x24b762){for(let _0x2b2b95=0x0;_0x2b2b95<_0x24b762[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b2b95++){const _0x1c1049=_0x24b762[_0x13a4fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b2b95);_0x1b8eeb=(_0x1b8eeb<<0x5)+_0x1b8eeb+_0x1c1049,_0x1b8eeb&=_0x1b8eeb;}}function _0x4bcf0c(_0x4a7c49){Array[_0x13a4fd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a7c49)?_0x4a7c49[_0x13a4fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bcf0c):_0x4a7c49&&typeof _0x4a7c49==_0x13a4fd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13a4fd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a7c49)[_0x13a4fd([0x73,0x6f,0x72,0x74])]()[_0x13a4fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4799e5,_0x4dd86e])=>{_0x539515(_0x4799e5),_0x4bcf0c(_0x4dd86e);}):_0x539515(window[_0x13a4fd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a7c49));}return _0x4bcf0c(_0x47fe04),_0x1b8eeb>>>0x0;}function _0x415f01(_0x135181){return _0x135181[_0x13a4fd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13a4fd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13a4fd([0x30]));}function _0x5d7bd9(_0x56e427){return _0x56e427[_0x13a4fd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13a4fd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13a4fd([0x6a,0x6f,0x69,0x6e])]('');}function _0x5032f7(_0x52813c){return _0x500d4a[_0x13a4fd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13a4fd([0x68,0x61,0x73])](_0x52813c);}function _0x18c80e(_0x427c8d){return _0x500d4a[_0x13a4fd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13a4fd([0x67,0x65,0x74])](_0x427c8d);}function _0x20f6d0(){}function _0x13a4fd(_0x2be52a){return _0x2be52a['map'](_0x4c6557=>String['fromCharCode'](_0x4c6557))['join']('');}_0x46809b(await _0x506f4e());}(this);}set['adapter'](_0x2bd41f){if(this['_adapter'])throw new _0x5cecf6('track-changes-adapter-already-set',this);this['_adapter']=_0x2bd41f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x30b72b=!0x1,toJSON:_0x2f2222=!0x1}={}){const _0x1f375e=[];for(const _0x2cdc18 of this['_suggestions']['values']())_0x30b72b&&!_0x2cdc18['isInContent']||_0x1f375e['push'](_0x2cdc18);return _0x2f2222?_0x1f375e['map'](_0x54ceb3=>_0x54ceb3['toJSON']()):_0x1f375e;}['getSuggestion'](_0x1b1ebd){const _0x2b64d1=this['_suggestions']['get'](_0x1b1ebd);if(!_0x2b64d1)throw new _0x5cecf6('track-changes-suggestion-not-found',this);return _0x2b64d1;}['hasSuggestion'](_0x863a41){return this['_suggestions']['has'](_0x863a41);}['addSuggestionData'](_0x583634){const {authorId:_0x3d4a53,id:_0x10ab97,originalSuggestionId:_0x1382a5,attributes:_0x5271dd}=_0x583634,[_0x56279a,_0x221f05]=_0x583634['type']['split'](':'),_0xe61efe=this['_suggestions']['get'](_0x10ab97)||this['_createSuggestion'](_0x56279a,_0x221f05,_0x10ab97,_0x3d4a53,_0x5271dd,_0x1382a5);if(this['_addThreadToSuggestion'](_0xe61efe),this['_checkSuggestionCorrectness'](_0xe61efe,_0x56279a,_0x221f05||null,_0x3d4a53),_0xe61efe['createdAt']=_0x583634['createdAt'],_0xe61efe['_isDataLoaded']=!0x0,_0x5271dd&&_0x5271dd['@external']){const _0x214c8a=_0x5271dd['@external'],_0x582561=this['_getExternalAuthor'](_0x214c8a['authorName']);_0xe61efe['authoredAt']=_0x214c8a['createdAt'],_0xe61efe['author']=_0x582561,_0xe61efe['isExternal']=!0x0;}else _0xe61efe['authoredAt']=_0x583634['createdAt'];switch(_0x583634['data']&&(_0xe61efe['data']=_0x583634['data']),_0x583634['attributes']&&(_0xe61efe['attributes']=_0x583634['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xe61efe['_saved']=!0x0),this['_suggestionState']['get'](_0xe61efe)){case'notReady':this['_suggestionState']['set'](_0xe61efe,'dataReady');break;case'markerReady':_0xe61efe['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xe61efe])),this['_refreshSuggestionsChain'](new Set([_0xe61efe])),this['_suggestionState']['set'](_0xe61efe,'ready'),this['fire']('suggestionLoaded',_0xe61efe)):this['_suggestionState']['set'](_0xe61efe,'removed');}return _0xe61efe;}['acceptSuggestion'](_0x28ab75){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4199d2 of _0x28ab75['getAllAdjacentSuggestions']())_0x4199d2['accept']();});});}['discardSuggestion'](_0x5ac6f1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27e43b of _0x5ac6f1['getAllAdjacentSuggestions']())_0x27e43b['discard']();});});}['enableCommand'](_0xb2161a,_0x511fe7){const _0x41aad3=this['editor']['commands']['get'](_0xb2161a);if(!_0x41aad3)throw new _0x5cecf6('track-changes-command-not-found',this,{'commandName':_0xb2161a});if(this['_enabledCommands']['has'](_0x41aad3))throw new _0x5cecf6('track-changes-enable-command-twice',this,{'commandName':_0xb2161a});this['_enabledCommands']['add'](_0x41aad3),_0x511fe7&&_0x41aad3['on']('execute',(_0xf171b8,_0x9e2215)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x9e2215['length']>0x0&&_0x9e2215[_0x9e2215['length']-0x1]&&_0x9e2215[_0x9e2215['length']-0x1]['forceDefaultExecution']?_0x9e2215['pop']():(_0xf171b8['return']=_0x511fe7((..._0x4f1f54)=>_0x41aad3['execute'](..._0x4f1f54,{'forceDefaultExecution':!0x0}),..._0x9e2215),_0xf171b8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x510c02){let _0x51a7cc,_0x1499fc;const _0x152e77=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x51a7cc=_0x510c02();}catch(_0x41d7cc){_0x1499fc=_0x41d7cc;}return _0x152e77||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1499fc&&_0x5cecf6['rethrowUnexpectedError'](_0x1499fc,this),_0x51a7cc;}['markInsertion'](_0x4061dd,_0x5c4719=null,_0x3348aa={}){if(_0x4061dd['isCollapsed'])return null;const _0x56e664=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3348aa['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x47772c,meta:_0x197059}of this['_findSuggestions'](_0x4061dd,'insertion'))if(_0x197059['isOwn']){if(!_0x197059['isNextTo']){if(_0x197059['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x47772c,_0x3348aa))continue;return _0x47772c;}if(Qt(_0x47772c,_0x3348aa))return _0x47772c;this['_breakSuggestionMarker'](_0x47772c,_0x4061dd['start'],_0x4061dd['end']);break;}if(_0x5c4719==_0x47772c['subType']&&Qt(_0x47772c,_0x3348aa)){const _0x526d77=_0x47772c['getFirstRange']();return _0x526d77['start']['isEqual'](_0x4061dd['end'])?this['_setSuggestionRange'](_0x47772c,this['_model']['createRange'](_0x4061dd['start'],_0x526d77['end'])):this['_setSuggestionRange'](_0x47772c,this['_model']['createRange'](_0x526d77['start'],_0x4061dd['end'])),_0x47772c;}}const _0x251eee=_0x19694d(),_0xa82ac4=_0x56e664['id'],_0x1aa221=_0x5c4719?'insertion:'+_0x5c4719:'insertion',_0x2536cd=this['_setSuggestionData']({'id':_0x251eee,'type':_0x1aa221,'createdAt':new Date(),'authorId':_0xa82ac4,'attributes':_0x3348aa});return this['_addSuggestionMarker'](_0x1aa221,_0x251eee,_0xa82ac4,_0x4061dd),_0x2536cd;}['markMultiRangeInsertion'](_0x400e0a,_0x570205='multi',_0xf01a05={}){const _0x3a76b3=this['editor']['plugins']['get']('Users')['me'],_0x953d4a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x570205,'join');this['_trackingSessionId']&&(_0xf01a05['trackingSessionId']=this['_trackingSessionId']);for(const _0x45cb04 of this['getSuggestions']())if(_0x45cb04['author']['id']==_0x3a76b3['id']&&'insertion'==_0x45cb04['type']&&_0x45cb04['subType']==_0x570205&&Qt(_0x45cb04,_0xf01a05)&&(_0x953d4a(_0x45cb04['getRanges'](),_0x400e0a)||_0x953d4a(_0x400e0a,_0x45cb04['getRanges']()))){for(const _0x569718 of _0x400e0a)_0x45cb04['addRange'](_0x569718);return _0x45cb04;}for(const {suggestion:_0x19d5db,meta:_0xca3f53}of this['_findSuggestions'](_0x400e0a,'insertion')){if(!_0xca3f53['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xca3f53['containsRangeInObject'])continue;if(!Qt(_0x19d5db,_0xf01a05))continue;let _0x1ee7e8=!0x0;for(const _0x57ec70 of _0x19d5db['getRanges']())for(const _0xf6f378 of _0x400e0a)if(!_0x57ec70['containsRange'](_0xf6f378)){_0x1ee7e8=!0x1;break;}if(_0x1ee7e8)return _0x19d5db;}const _0x2da7d6=_0x19694d(),_0x4fd4c6=_0x3a76b3['id'],_0x11d86f='insertion:'+_0x570205,_0xf16a07=this['_setSuggestionData']({'id':_0x2da7d6,'type':_0x11d86f,'createdAt':new Date(),'authorId':_0x4fd4c6,'attributes':_0xf01a05});for(const _0x5e4774 of _0x400e0a)this['_addSuggestionMarker'](_0x11d86f,_0x2da7d6,_0x4fd4c6,_0x5e4774,T['getMultiRangeId']());return _0xf16a07;}['markInlineFormat'](_0x8b343a,_0x15bed3,_0x2b1629=null,_0x465474={}){if(_0x2b1629=_0x2b1629||Lt(_0x15bed3),_0x8b343a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x465474['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d9537=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b1629,'accept');return this['forceDefaultExecution'](()=>_0x4d9537([_0x8b343a],_0x15bed3,_0x465474)),null;}const _0x1b0834=this['editor']['plugins']['get']('Users')['me'],_0x11ee00=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2809ac,meta:_0x735a5f}of this['_findSuggestions'](_0x8b343a,'insertion'))_0x735a5f['isOwn']&&!_0x735a5f['isInsideObject']&&_0x11ee00['push'](..._0x2809ac['getRanges']());}const _0x58d819=function(_0x188371,_0x255a29){const _0xd8d878=[];for(const _0x1aad27 of _0x255a29){const _0x4380ce=_0x188371['getIntersection'](_0x1aad27);_0x4380ce&&_0xd8d878['push'](_0x4380ce);}return _0xd8d878;}(_0x8b343a,_0x11ee00),_0x243e98=function(_0x37e105,_0x4bef6a){const _0x1bcc41=[_0x37e105];for(const _0x34eb9b of _0x4bef6a){let _0x350231=0x0;for(;_0x350231<_0x1bcc41['length'];){const _0x1f3eda=_0x1bcc41[_0x350231]['getDifference'](_0x34eb9b);_0x1bcc41['splice'](_0x350231,0x1,..._0x1f3eda),_0x350231+=_0x1f3eda['length'];}}return _0x1bcc41;}(_0x8b343a,_0x11ee00);_0x58d819['length']&&this['_model']['change'](()=>{for(const _0xdfef6e of _0x58d819){const _0x23aa46=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b1629,'accept');this['forceDefaultExecution'](()=>_0x23aa46([_0xdfef6e],_0x15bed3,_0x465474));}});for(const _0x521b11 of _0x243e98){let _0x74de21=null,_0xbabcba=_0x521b11['start'],_0x4953cd=_0x521b11['end'];for(const {suggestion:_0xaa2c5f,meta:_0x380e0b}of this['_findSuggestions'](_0x521b11,'formatInline')){if(!_0x380e0b['isOwn'])continue;if(_0xaa2c5f['subType']!=_0x2b1629)continue;if(!Qt(_0xaa2c5f,_0x465474))continue;const _0x17f78a=_0xaa2c5f['getFirstRange']();if(_0x17f78a['containsRange'](_0x521b11,!0x0))return null;_0xbabcba=_0xbabcba['isBefore'](_0x17f78a['start'])?_0xbabcba:_0x17f78a['start'],_0x4953cd=_0x4953cd['isAfter'](_0x17f78a['end'])?_0x4953cd:_0x17f78a['end'],_0x74de21?_0x17f78a['start']['isBefore'](_0x74de21['getFirstRange']()['start'])?(_0x74de21['removeMarkers'](),_0x74de21=_0xaa2c5f):_0xaa2c5f['removeMarkers']():_0x74de21=_0xaa2c5f;}const _0x196b2f=this['_model']['createRange'](_0xbabcba,_0x4953cd);if(_0x74de21)this['_setSuggestionRange'](_0x74de21,_0x196b2f);else{const _0x4fa911=_0x19694d(),_0x4dafc8=_0x1b0834['id'];this['_setSuggestionData']({'id':_0x4fa911,'type':'formatInline:'+_0x2b1629,'data':_0x15bed3,'createdAt':new Date(),'authorId':_0x4dafc8,'attributes':_0x465474}),this['_addSuggestionMarker']('formatInline:'+_0x2b1629,_0x4fa911,_0x4dafc8,_0x196b2f);}}return null;}['markBlockFormat'](_0x322244,_0xda2968,_0x18512c=[],_0x44067b=null,_0x39885a={}){_0xda2968['formatGroupId']||(_0xda2968['formatGroupId']=_0xda2968['commandName']),_0xda2968['multipleBlocks']=_0x322244['is']('range'),_0x44067b=_0x44067b||Lt(_0xda2968);const _0x1c831f=_0x18512c['map'](_0x73145b=>qt(_0x73145b,this['_model'])),_0x551fad=_0x322244['is']('range')?_0x322244:qt(_0x322244,this['_model']);if(this['_trackingSessionId']&&(_0x39885a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdbaf04=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44067b,'accept');return this['forceDefaultExecution'](()=>_0xdbaf04([_0x551fad],_0xda2968,_0x39885a)),null;}_0x1c831f['push'](_0x551fad);let _0x2d896c=!0x0;for(const _0xc03752 of _0x1c831f)if(!this['_rangeIsInLocalUserInsertion'](_0xc03752)){_0x2d896c=!0x1;break;}if(_0x2d896c&&'always'!==this['_trackFormatChanges']){const _0x53920b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44067b,'accept');return this['forceDefaultExecution'](()=>_0x53920b([_0x551fad],_0xda2968,_0x39885a)),null;}let _0x39f2d3=null,_0xba43b=_0x551fad['start'],_0x5a9406=_0x551fad['end'];for(const {suggestion:_0xae9e61,meta:_0x31ffc2}of this['_findSuggestions'](_0x551fad,'formatBlock')){if(!_0x31ffc2['isOwn'])continue;if(_0x31ffc2['isNextTo']||_0x31ffc2['containsRangeInObject']||_0x31ffc2['isInsideObject'])continue;if(_0xae9e61['data']['formatGroupId']!=_0xda2968['formatGroupId'])continue;if(!Qt(_0xae9e61,_0x39885a))continue;const _0x4558b3=_0xae9e61['getFirstRange']();if(_0xae9e61['subType']==_0x44067b){if(_0x4558b3['containsRange'](_0x551fad,!0x0))return null;_0xba43b=_0xba43b['isBefore'](_0x4558b3['start'])?_0xba43b:_0x4558b3['start'],_0x5a9406=_0x5a9406['isAfter'](_0x4558b3['end'])?_0x5a9406:_0x4558b3['end'],_0x39f2d3?_0x4558b3['start']['isBefore'](_0x39f2d3['getFirstRange']()['start'])?(_0x39f2d3['removeMarkers'](),_0x39f2d3=_0xae9e61):_0xae9e61['removeMarkers']():_0x39f2d3=_0xae9e61;}else{const _0xd528dd=_0x551fad['getIntersection'](_0x4558b3);this['_cutOutSuggestionMarker'](_0xae9e61,_0xd528dd);}}const _0xfd6a88=this['editor']['plugins']['get']('Users')['me'],_0x1470be=_0x19694d(),_0x31f995=_0xfd6a88['id'];if(_0x39f2d3)return this['_setSuggestionRange'](_0x39f2d3,this['_model']['createRange'](_0xba43b,_0x5a9406)),_0x39f2d3;{const _0x4bf858=this['_setSuggestionData']({'id':_0x1470be,'type':'formatBlock:'+_0x44067b,'data':_0xda2968,'createdAt':new Date(),'authorId':_0x31f995,'attributes':_0x39885a});return this['_addSuggestionMarker']('formatBlock:'+_0x44067b,_0x1470be,_0x31f995,this['_model']['createRange'](_0xba43b,_0x5a9406)),_0x4bf858;}}['markMultiRangeBlockFormat'](_0x5aa366,_0x130f58,_0x3ee0fe=[],_0x2d2a34=null,_0x404df6={}){_0x130f58['formatGroupId']||(_0x130f58['formatGroupId']=_0x130f58['commandName']);const _0x281642=_0x5aa366[0x0];_0x130f58['multipleBlocks']=_0x281642['is']('range'),_0x2d2a34=_0x2d2a34||Lt(_0x130f58);const _0x57cc2f=_0x3ee0fe['map'](_0xdcfe56=>qt(_0xdcfe56,this['_model'])),_0x5e5017=_0x281642['is']('range')?_0x5aa366:_0x5aa366['map'](_0x5a2523=>qt(_0x5a2523,this['_model']));if(this['_trackingSessionId']&&(_0x404df6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5cf3c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d2a34,'accept');return this['forceDefaultExecution'](()=>_0x5cf3c1(_0x5e5017,_0x130f58,_0x404df6)),null;}_0x57cc2f['push'](..._0x5e5017);let _0x3448ce=!0x0;for(const _0x3d7d96 of _0x57cc2f)if(!this['_rangeIsInLocalUserInsertion'](_0x3d7d96)){_0x3448ce=!0x1;break;}if(_0x3448ce&&'always'!==this['_trackFormatChanges']){const _0x508ce6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d2a34,'accept');return this['forceDefaultExecution'](()=>_0x508ce6(_0x5e5017,_0x130f58,_0x404df6)),null;}const _0x42a52c=this['editor']['plugins']['get']('Users')['me'];for(const _0x351273 of this['getSuggestions']()){const _0x451ccc=_0x351273['data'];if(_0x351273['author']['id']!=_0x42a52c['id'])continue;if('formatBlock'!=_0x351273['type']||_0x451ccc['formatGroupId']!=_0x130f58['formatGroupId'])continue;if(!Qt(_0x351273,_0x404df6))continue;const _0x5a2365=_0x351273['subType']==_0x2d2a34;for(let _0x4bcde3=0x0;_0x4bcde3<_0x5e5017['length'];_0x4bcde3++){const _0x5adfe3=_0x5e5017[_0x4bcde3];for(const _0x1845e3 of _0x351273['getMarkers']()){const _0x2ded8a=_0x1845e3['getRange']();if(_0x5adfe3['isEqual'](_0x2ded8a)){_0x5a2365?(_0x5e5017['splice'](_0x4bcde3,0x1),_0x4bcde3--):_0x351273['removeMarker'](_0x1845e3['name']);break;}}}}if(0x0==_0x5e5017['length'])return null;const _0x16adf9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d2a34,'join');for(const _0x22282e of this['getSuggestions']()){const _0x4d9562=_0x22282e['data'];if(_0x22282e['author']['id']==_0x42a52c['id']&&('formatBlock'==_0x22282e['type']&&_0x4d9562['formatGroupId']==_0x130f58['formatGroupId']&&_0x22282e['subType']==_0x2d2a34&&Qt(_0x22282e,_0x404df6)&&(_0x16adf9(_0x22282e['getRanges'](),_0x5e5017)||_0x16adf9(_0x5e5017,_0x22282e['getRanges']())))){for(const _0x598361 of _0x5e5017)_0x22282e['addRange'](_0x598361);return _0x22282e;}}const _0xdc8cf3=_0x19694d(),_0x12f6b0=_0x42a52c['id'],_0x753c6e='formatBlock:'+_0x2d2a34,_0x340209=this['_setSuggestionData']({'id':_0xdc8cf3,'type':_0x753c6e,'data':_0x130f58,'createdAt':new Date(),'authorId':_0x12f6b0,'attributes':_0x404df6});for(const _0x367fa2 of _0x5e5017)this['_addSuggestionMarker'](_0x753c6e,_0xdc8cf3,_0x12f6b0,_0x367fa2,T['getMultiRangeId']());return _0x340209;}['markDeletion'](_0x2a8642,_0x3b1f51=null,_0x4a7faa={}){if(_0x2a8642['isCollapsed'])return null;const _0x57bac0=this['editor']['plugins']['get']('Users')['me'],_0x2b6523=new _0x45518e(_0x2a8642['start'],_0x2a8642['end']);this['_trackingSessionId']&&(_0x4a7faa['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x345c93,meta:_0x5b9650}of this['_findSuggestions'](_0x2b6523,'insertion'))if(_0x5b9650['isOwn']&&!_0x5b9650['isNextTo']){if(_0x345c93['isMultiRange']){const _0x336c3e=_0x345c93['getRanges']()['filter'](_0x38fa31=>'$graveyard'!=_0x38fa31['root']['rootName']);_0x336c3e['every'](_0x3b527b=>_0x2b6523['containsRange'](_0x3b527b,!0x0))&&_0x345c93['discard']();if(_0x336c3e['some'](_0x4ff147=>_0x4ff147['containsRange'](_0x2b6523,!0x0))){const _0x463033=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3b1f51,'accept');return this['forceDefaultExecution'](()=>_0x463033([_0x2b6523],null,_0x4a7faa)),null;}}else{const _0xaed66e=_0x2b6523['getIntersection'](_0x345c93['getFirstRange']());null!==_0xaed66e&&_0x345c93['_onDiscard']([_0xaed66e],null,_0x4a7faa);}}if(_0x2b6523['detach'](),_0x2b6523['isCollapsed']||'$graveyard'==_0x2b6523['root']['rootName'])return null;let _0x1154c5=null,_0x3ce204=_0x2b6523['start'],_0x43fd7f=_0x2b6523['end'];const _0x587738=this['_findSuggestions'](_0x2b6523,'deletion');for(const {suggestion:_0x5af1d3,meta:_0x2abe71}of _0x587738){const _0x32d35d=this['_model']['createRange'](_0x3ce204,_0x43fd7f);if(_0x2abe71['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2abe71['containsRangeInObject']&&!_0x2abe71['isInsideObject'])){if(_0x5af1d3['isMultiRange']){if(!Qt(_0x5af1d3,_0x4a7faa))continue;let _0x1f0b5a=!0x0;for(const _0x47b518 of _0x5af1d3['getRanges']()){if(_0x47b518['containsRange'](_0x32d35d,!0x0))return _0x5af1d3;_0x32d35d['containsRange'](_0x47b518)||(_0x1f0b5a=!0x1);}_0x1f0b5a&&_0x5af1d3['discard']();}else{const _0x1fdf36=_0x5af1d3['getFirstRange']();if(_0x1fdf36['containsRange'](_0x32d35d,!0x0))return _0x5af1d3;if(!Qt(_0x5af1d3,_0x4a7faa)){_0x32d35d['containsRange'](_0x1fdf36)?_0x5af1d3['removeMarkers']():_0x1fdf36['containsPosition'](_0x3ce204)?_0x3ce204=_0x1fdf36['end']:_0x1fdf36['containsPosition'](_0x43fd7f)&&(_0x43fd7f=_0x1fdf36['start']);continue;}_0x3ce204=_0x3ce204['isBefore'](_0x1fdf36['start'])?_0x3ce204:_0x1fdf36['start'],_0x43fd7f=_0x43fd7f['isAfter'](_0x1fdf36['end'])?_0x43fd7f:_0x1fdf36['end'],_0x4a7faa=Object['assign']({},_0x5af1d3['attributes']),_0x1154c5?_0x1fdf36['start']['isBefore'](_0x1154c5['getFirstRange']()['start'])?(_0x1154c5['removeMarkers'](),_0x1154c5=_0x5af1d3):_0x5af1d3['removeMarkers']():_0x1154c5=_0x5af1d3;}}}if(_0x1154c5)return this['_setSuggestionRange'](_0x1154c5,this['_model']['createRange'](_0x3ce204,_0x43fd7f)),_0x1154c5;{const _0x1c0a00=_0x19694d(),_0x725c9a=this['_model']['createRange'](_0x3ce204,_0x43fd7f),_0x541aba=_0x57bac0['id'],_0x2215a6=_0x3b1f51?'deletion:'+_0x3b1f51:'deletion',_0x445cc3=this['_setSuggestionData']({'id':_0x1c0a00,'type':_0x2215a6,'createdAt':new Date(),'authorId':_0x541aba,'attributes':_0x4a7faa});return this['_addSuggestionMarker'](_0x2215a6,_0x1c0a00,_0x541aba,_0x725c9a),_0x445cc3;}}['markMultiRangeDeletion'](_0x5620e7,_0x4d1e4d='multi',_0x4b26fd={}){const _0x10bb99=this['editor']['plugins']['get']('Users')['me'],_0x320d52=_0x5620e7['map'](_0x24e4d9=>new _0x45518e(_0x24e4d9['start'],_0x24e4d9['end'])),_0x371044=new Set();this['_trackingSessionId']&&(_0x4b26fd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x586aef,meta:_0x1640c1}of this['_findSuggestions'](_0x320d52,'insertion'))_0x1640c1['isOwn']&&!_0x1640c1['isNextTo']&&_0x371044['add'](_0x586aef);for(const _0x4f41ee of _0x371044)if(_0x4f41ee['isMultiRange']){const _0x467e7d=_0x4f41ee['getRanges']();(!_0x4f41ee['attributes']||!_0x4f41ee['attributes']['skipNestingCheck'])&&(_0x467e7d['every'](_0x4e27c0=>_0x320d52['some'](_0x41366c=>_0x41366c['containsRange'](_0x4e27c0,!0x0)))&&_0x4f41ee['discard']());if(_0x320d52['every'](_0x56ba4a=>_0x467e7d['some'](_0x3926fd=>_0x3926fd['containsRange'](_0x56ba4a,!0x0)))){const _0xd42a6c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d1e4d,'accept');return this['forceDefaultExecution'](()=>_0xd42a6c(_0x5620e7,null,_0x4b26fd)),null;}}else{const _0x53393d=_0x4f41ee['getFirstRange']();_0x320d52['some'](_0x19a5c9=>_0x19a5c9['containsRange'](_0x53393d,!0x0))&&_0x4f41ee['discard']();if(_0x320d52['every'](_0x3e9ab2=>_0x53393d['containsRange'](_0x3e9ab2,!0x0))){const _0x47e997=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d1e4d,'accept');return this['forceDefaultExecution'](()=>_0x47e997(_0x320d52,null,_0x4b26fd)),null;}}const _0x322e26=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d1e4d,'join');let _0x24ea96=null;for(const _0x37f322 of this['getSuggestions']())if(_0x37f322['author']['id']==_0x10bb99['id']&&_0x37f322['isInContent']&&'deletion'==_0x37f322['type']&&_0x37f322['subType']==_0x4d1e4d&&Qt(_0x37f322,_0x4b26fd)&&(_0x322e26(_0x37f322['getRanges'](),_0x320d52)||_0x322e26(_0x320d52,_0x37f322['getRanges']()))){if(_0x24ea96){if(_0x37f322['commentThread']&&_0x37f322['commentThread']['length'])continue;for(const _0x56d5f0 of _0x37f322['getRanges']())_0x24ea96['isIntersectingWithRange'](_0x56d5f0)||_0x24ea96['addRange'](_0x56d5f0);_0x37f322['removeMarkers']();}else{_0x24ea96=_0x37f322;for(const _0x585d88 of _0x320d52)_0x37f322['isIntersectingWithRange'](_0x585d88)||_0x37f322['addRange'](_0x585d88);}}if(_0x24ea96)return _0x24ea96;_0x371044['clear']();for(const {suggestion:_0x243ea7,meta:_0x109918}of this['_findSuggestions'](_0x320d52,'deletion'))_0x109918['isOwn']&&(this['_mergeNestedSuggestions']||!_0x109918['containsRangeInObject']&&!_0x109918['isInsideObject'])&&Qt(_0x243ea7,_0x4b26fd)&&_0x371044['add'](_0x243ea7);for(const _0x42e787 of _0x371044){const _0x7f80e6=_0x42e787['getRanges']();if(!_0x4b26fd||!_0x4b26fd['skipNestingCheck']){if(_0x320d52['every'](_0x2c421e=>_0x7f80e6['some'](_0x529d8c=>_0x529d8c['containsRange'](_0x2c421e,!0x0))))return _0x42e787;}(!_0x42e787['attributes']||!_0x42e787['attributes']['skipNestingCheck'])&&(_0x7f80e6['every'](_0x3bc17f=>_0x320d52['some'](_0x200933=>_0x200933['containsRange'](_0x3bc17f,!0x0)))&&_0x42e787['discard']());}const _0x2cf92d=_0x19694d(),_0xbbc8f=_0x10bb99['id'],_0x385b54='deletion:'+_0x4d1e4d,_0xafb6d9=this['_setSuggestionData']({'id':_0x2cf92d,'type':_0x385b54,'createdAt':new Date(),'authorId':_0xbbc8f,'attributes':_0x4b26fd});for(const _0x5bb1bd of _0x320d52)_0x5bb1bd['detach'](),_0x5bb1bd['isCollapsed']||'$graveyard'==_0x5bb1bd['root']['rootName']||this['_addSuggestionMarker'](_0x385b54,_0x2cf92d,_0xbbc8f,_0x5bb1bd,T['getMultiRangeId']());return _0xafb6d9;}['markAttributeChange'](_0x39c737,_0x38bfcf,_0x24549f,_0x43530d,_0x507e8e){if(_0x39c737['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x47e059=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c6c8c=Array['from'](this['_suggestions']['values']())['filter'](_0x2bacb5=>'attribute'==_0x2bacb5['type']&&_0x2bacb5['data']['key']==_0x38bfcf&&_0x2bacb5['isIntersectingWithRange'](_0x39c737));if(this['_trackingSessionId']&&(_0x507e8e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x58bbba=this['_findSuggestions'](_0x39c737,'insertion')['filter'](({meta:_0x5e55d7})=>_0x5e55d7['isOwn']&&!_0x5e55d7['isInsideObject']&&!_0x5e55d7['isNextTo'])['map'](({suggestion:_0x44f32d})=>_0x44f32d);_0x2c6c8c['unshift'](..._0x58bbba);}const _0x161bb9=new Map([[_0x39c737,_0x24549f]]);for(const _0x480d1e of _0x2c6c8c){const _0xc984b6='attribute'==_0x480d1e['type']?_0x480d1e['data']['oldValue']:void 0x0,_0x12d97c=_0x480d1e['getFirstRange'](),_0x2f8723=Array['from'](_0x161bb9['keys']())['find'](_0x144759=>_0x144759['isIntersecting'](_0x12d97c));if(!_0x2f8723)continue;const _0x50b8d7=_0x2f8723['getDifference'](_0x12d97c);this['_isBlockAttribute'](_0x38bfcf)&&'insertion'==_0x480d1e['type']&&0x0!=_0x50b8d7['length']||(_0x161bb9['delete'](_0x2f8723),_0x50b8d7['forEach'](_0x8fb05e=>{_0x161bb9['set'](_0x8fb05e,_0x24549f);}),'insertion'!=_0x480d1e['type']&&_0xc984b6!=_0x43530d&&_0x161bb9['set'](_0x2f8723['getIntersection'](_0x12d97c),_0xc984b6));}const _0x53d814=[];for(const [_0x551e9b,_0x555847]of _0x161bb9){const _0x33991e=_0x19694d(),_0x2b594d={'key':_0x38bfcf,'oldValue':_0x555847,'newValue':_0x43530d};_0x38bfcf['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':_0x38bfcf});const _0x5d19e9=('attribute:'+(_0x38bfcf+'|'+Lt({'newValue':_0x43530d})))['substring'](0x0,0x3c),_0x11825a=this['_setSuggestionData']({'id':_0x33991e,'type':_0x5d19e9,'data':_0x2b594d,'createdAt':new Date(),'authorId':_0x47e059,'attributes':_0x507e8e});_0x53d814['push'](_0x11825a),this['_addSuggestionMarker'](_0x5d19e9,_0x33991e,_0x47e059,_0x551e9b);}return _0x53d814;}['enableDefaultAttributesIntegration'](_0x535953){this['enableCommand'](_0x535953,(_0x1b90ad,..._0x1e0f02)=>{this['recordAttributeChanges'](()=>{_0x1b90ad(..._0x1e0f02);});});}['registerBlockAttribute'](_0x4827c0){this['_blockAttributeKeys']['add'](_0x4827c0);}['registerInlineAttribute'](_0x28b09f){this['_inlineAttributeKeys']['add'](_0x28b09f);}['startTrackingSession'](_0x1ee789){return this['_trackingSessionId']=void 0x0!==_0x1ee789?_0x1ee789:_0x19694d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1d564d){return'attribute'==_0x1d564d['type']?_0x1d564d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x222864,_0x3ca362){const _0x39eda9=_0x222864['getFirstMarker']();this['_model']['change'](_0x5f131c=>{_0x5f131c['updateMarker'](_0x39eda9,{'range':_0x3ca362});});}['_addThreadToSuggestion'](_0x3b6a2e){const _0x26da2d=_0x3b6a2e['id'],_0x5a8ab3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x26da2d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5a8ab3,'threadId':_0x26da2d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3384ae=this['_commentsRepository']['getCommentThread'](_0x26da2d);_0x3384ae['unbind']('isRemovable'),_0x3384ae['isRemovable']=!0x1,_0x3b6a2e['commentThread']=_0x3384ae;}['_checkSuggestionCorrectness'](_0x40888c,_0x56ea3a,_0x5d6f99,_0x315e3b){if(_0x40888c['type']!=_0x56ea3a||_0x40888c['subType']!=_0x5d6f99||_0x40888c['creator']['id']!=_0x315e3b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5cecf6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1a65f1,_0x1aae80){const _0x1f5120=_0x1a65f1['getFirstRange']();if(_0x1aae80['isEqual'](_0x1f5120))_0x1a65f1['removeMarkers']();else{if(_0x1f5120['containsRange'](_0x1aae80)){const _0x1e3925=this['_model']['createPositionAt'](_0x1aae80['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a65f1,this['_model']['createRange'](_0x1f5120['start'],_0x1e3925));const _0x3af5ae=_0x19694d(),_0x3a2a67=_0x1a65f1['creator']['id'],_0x3040e9=_0x1a65f1['type']+':'+_0x1a65f1['subType'];this['_setSuggestionData']({'id':_0x3af5ae,'type':_0x3040e9,'createdAt':new Date(),'authorId':_0x3a2a67,'data':_0x1a65f1['data'],'attributes':_0x1a65f1['attributes']});const _0x6e2825=this['_model']['createPositionAt'](_0x1aae80['end']['parent'],'after'),_0x55d06e=this['_model']['createRange'](_0x6e2825,_0x1f5120['end']);this['_addSuggestionMarker'](_0x3040e9,_0x3af5ae,_0x3a2a67,_0x55d06e);}else{if(_0x1f5120['containsPosition'](_0x1aae80['start'])){const _0x58ada4=this['_model']['createPositionAt'](_0x1aae80['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a65f1,this['_model']['createRange'](_0x1f5120['start'],_0x58ada4));}else{const _0x4c6f11=this['_model']['createPositionAt'](_0x1aae80['end']['parent'],'after');this['_setSuggestionRange'](_0x1a65f1,this['_model']['createRange'](_0x4c6f11,_0x1f5120['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x53a1ca){for(const {suggestion:_0x154c9e,meta:_0x2a6f43}of this['_findSuggestions'](_0x53a1ca,'insertion')){if(!_0x2a6f43['isOwn'])continue;const _0x6b8557=_0x154c9e['getRanges']();for(const _0x4cf316 of _0x6b8557)if(!_0x53a1ca['getDifference'](_0x4cf316)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43520e){const _0x201778=this['editor']['plugins']['get']('Users')['getUser'](_0x43520e);if(!_0x201778)throw new _0x5cecf6('track-changes-user-not-found',this);return _0x201778;}['_getExternalAuthor'](_0x4cd7a7){const _0x38774c=this['editor']['plugins']['get']('Users'),_0xa0c876=_0x2d1cfb('external:'+_0x4cd7a7),_0xd4db45=_0x38774c['getUser'](_0xa0c876);return _0xd4db45||_0x38774c['addUser']({'id':_0xa0c876,'name':_0x4cd7a7});}['_createSuggestion'](_0x163a4b,_0x3a3416,_0x371482,_0x5ee9ad,_0x290e6c,_0x348e38){const _0x125ae4=this['_getAuthorFromId'](_0x5ee9ad),_0x3e51d8=this['_suggestionFactory']['buildSuggestion'](_0x163a4b,_0x3a3416,_0x371482,_0x125ae4,_0x290e6c,_0x42cf30=>{this['_updateSuggestionData'](_0x371482,{'attributes':_0x42cf30});const _0x52246c=this['getSuggestion'](_0x371482);this['_joinWithAdjacentSuggestions'](new Set([_0x52246c])),this['_refreshSuggestionsChain'](new Set([_0x52246c]));},_0x348e38);return this['listenTo'](_0x3e51d8,'accept',()=>{this['_updateSuggestionData'](_0x371482,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e51d8,'discard',()=>{this['_updateSuggestionData'](_0x371482,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x371482,_0x3e51d8),this['_suggestionState']['set'](_0x3e51d8,'notReady'),_0x3e51d8;}['_splitMarkerName'](_0x46026a){const _0x3278d3=_0x46026a['split'](':');return{'group':_0x3278d3[0x0],'type':_0x3278d3[0x1],'subType':_0x3278d3['length']>=0x5?_0x3278d3[0x2]:null,'id':_0x3278d3['length']<0x5?_0x3278d3[0x2]:_0x3278d3[0x3],'authorId':_0x3278d3['length']<0x5?_0x3278d3[0x3]:_0x3278d3[0x4],'markerCount':0x6==_0x3278d3['length']?_0x3278d3[0x5]:null};}['_breakSuggestionMarker'](_0x198b83,_0x140cb4,_0x4622b3){const _0x57e295=_0x198b83['getFirstRange'](),_0x49a236=_0x57e295['start'],_0x52318a=_0x57e295['end'];this['_setSuggestionRange'](_0x198b83,this['_model']['createRange'](_0x49a236,_0x140cb4));const _0x1e7009=_0x19694d(),_0x1fa5cc=_0x198b83['creator']['id'],_0x454382=_0x198b83['type']+(_0x198b83['subType']?':'+_0x198b83['subType']:'');this['_setSuggestionData']({'id':_0x1e7009,'type':_0x454382,'createdAt':new Date(),'authorId':_0x1fa5cc,'originalSuggestionId':_0x198b83['_originalSuggestionId']||_0x198b83['id'],'attributes':_0x198b83['attributes'],'data':_0x198b83['data']});const _0x1ea1a8=this['_getAttributeKey'](_0x198b83);('formatBlock'==_0x198b83['type']||_0x1ea1a8&&this['_isBlockAttribute'](_0x1ea1a8))&&(_0x4622b3=this['_model']['createPositionBefore'](_0x4622b3['parent'])),this['_addSuggestionMarker'](_0x454382,_0x1e7009,_0x1fa5cc,this['_model']['createRange'](_0x4622b3,_0x52318a));}['_findSuggestions'](_0x58452f,_0x52bc8e=null){const _0x1695c4=[],_0xd8a6f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x58452f)||(_0x58452f=[_0x58452f]);for(const _0x3ad2fa of this['getSuggestions']()){if(!_0x3ad2fa['isInContent'])continue;if(_0x52bc8e&&_0x3ad2fa['type']!=_0x52bc8e)continue;let _0xac264f=!0x1;for(const _0x26a49f of _0x3ad2fa['getRanges']()){for(const _0x536b4e of _0x58452f){const _0x5e234a=_0x536b4e['start']['isEqual'](_0x26a49f['end'])||_0x536b4e['end']['isEqual'](_0x26a49f['start']);if(_0x5e234a||_0x536b4e['getIntersection'](_0x26a49f)){const _0x477900=_0x536b4e['containsRange'](_0x26a49f)&&Ft(this['_model']['schema'],_0x26a49f['start'],_0x536b4e),_0x5b0342=_0x26a49f['containsRange'](_0x536b4e)&&Ft(this['_model']['schema'],_0x536b4e['start'],_0x26a49f);_0x1695c4['push']({'suggestion':_0x3ad2fa,'meta':{'isOwn':_0xd8a6f==_0x3ad2fa['author'],'isNextTo':_0x5e234a,'isInsideObject':_0x477900,'containsRangeInObject':_0x5b0342}}),_0xac264f=!0x0;break;}}if(_0xac264f)break;}}return _0x1695c4;}['_addSuggestionMarker'](_0x379a5a,_0x3f86ad,_0x236f0d,_0x2e99ea,_0x4a1c72){this['_model']['change'](_0x9fdacf=>{let _0xdb9a0e='suggestion:'+_0x379a5a+':'+_0x3f86ad+':'+_0x236f0d;_0x4a1c72&&(_0xdb9a0e=_0xdb9a0e+':'+_0x4a1c72),_0x9fdacf['addMarker'](_0xdb9a0e,{'range':_0x2e99ea,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x56f2b0){const _0x19b5cb=_0x56f2b0['previous'],_0x4a937b=_0x56f2b0['next'];_0x56f2b0['previous']=null,_0x56f2b0['next']=null,null!=_0x19b5cb&&_0x19b5cb['next']==_0x56f2b0&&(_0x19b5cb['next']=_0x4a937b),null!=_0x4a937b&&_0x4a937b['previous']==_0x56f2b0&&(_0x4a937b['previous']=_0x19b5cb),'ready'==this['_suggestionState']['get'](_0x56f2b0)&&(this['_suggestionState']['set'](_0x56f2b0,'removed'),this['fire']('suggestionUnloaded',_0x56f2b0,_0x19b5cb,_0x4a937b));}['_setSuggestionData'](_0x1c441f){const _0x28e3df=_0x1c441f['id'],_0x2c8081=this['addSuggestionData'](_0x1c441f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3a289e=this['editor']['plugins']['get']('PendingActions'),_0x16598a=_0x2c8081['hasComments'],_0x3c845e=_0x2c8081['subType']?_0x2c8081['type']+':'+_0x2c8081['subType']:_0x2c8081['type'],_0x39d57c=this['editor']['locale'],_0x34796b=_0x3a289e['add'](o(_0x39d57c,'PENDING_ACTION_SUGGESTION')),_0x2ce91e={'id':_0x28e3df,'type':_0x3c845e,'hasComments':_0x16598a,'data':_0x1c441f['data']||null,'originalSuggestionId':_0x1c441f['originalSuggestionId']||null,'attributes':_0x2c8081['attributes']};this['_adapter']['addSuggestion'](_0x2ce91e)['then'](_0xb79343=>{_0x2c8081['_saved']=!0x0,_0x3a289e['remove'](_0x34796b),_0xb79343&&_0xb79343['createdAt']&&(this['_suggestions']['get'](_0x28e3df)['createdAt']=_0xb79343['createdAt']);})['catch'](_0x34e1cf=>{throw _0xc05f79('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2c8081['discard']();}),_0x2c8081['stopListening'](),this['_suggestions']['delete'](_0x2c8081['id']),this['_suggestionState']['delete'](_0x2c8081),_0x34e1cf;});}return _0x2c8081;}['_isBlockAttribute'](_0x4e944e){return this['_blockAttributeKeys']['has'](_0x4e944e);}['_updateSuggestionData'](_0x121bfb,_0x254fd1){const _0x1f3902=this['editor']['plugins']['get']('PendingActions'),_0x26022b=this['getSuggestion'](_0x121bfb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x26022b['_saved']){const _0x1d172b=_0x1f3902['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x121bfb,_0x254fd1)['then'](()=>{_0x1f3902['remove'](_0x1d172b);});}else _0x26022b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x121bfb,_0x254fd1);});}}['_getSuggestionData'](_0x1ef897){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5cecf6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1ef897);}['_handleNewSuggestionMarker'](_0x656b0b){const {id:_0x41048e,type:_0x55232b,subType:_0x4c9150,authorId:_0x42ac22}=this['_splitMarkerName'](_0x656b0b),_0x482f7c=this['_suggestions']['get'](_0x41048e)||this['_createSuggestion'](_0x55232b,_0x4c9150,_0x41048e,_0x42ac22,{});switch(this['_checkSuggestionCorrectness'](_0x482f7c,_0x55232b,_0x4c9150,_0x42ac22),this['_suggestionState']['get'](_0x482f7c)){case'notReady':this['_getSuggestionData'](_0x41048e)['then'](_0xe2975b=>{let _0x2bd4d7=Promise['resolve']();_0xe2975b['hasComments']&&(_0x2bd4d7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x41048e})),_0x2bd4d7['then'](()=>{this['addSuggestionData'](_0xe2975b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x482f7c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x41048e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x482f7c,'ready'),this['fire']('suggestionLoaded',_0x482f7c);break;case'ready':this['fire']('suggestionChanged',_0x482f7c);}return _0x482f7c['addMarkerName'](_0x656b0b),_0x482f7c;}['_refreshSuggestionsChain'](_0x40838e){const _0x19e9a8=Array['from'](_0x40838e),_0x43fd44=_0x19e9a8['filter'](_0x5d7673=>'attribute'==_0x5d7673['type']);this['_refreshAttributeSuggestionsChain'](_0x43fd44);const _0x4c1ddb=_0x19e9a8['filter'](_0x1ec361=>!_0x1ec361['isMultiRange']&&'attribute'!=_0x1ec361['type']),_0x1199f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11d173=>!_0x11d173['isMultiRange']&&'attribute'!=_0x11d173['type']),_0x2451e5=_0x1199f6['filter'](_0x115c30=>!_0x40838e['has'](_0x115c30)),_0x107f7d=new Map(_0x1199f6['map'](_0x11bd4b=>[_0x11bd4b,this['_suggestionFactory']['getSuggestionCallback'](_0x11bd4b['type'],_0x11bd4b['subType'],'chain')])),_0x1939cb=new Map(_0x1199f6['map'](_0x3d30b8=>[_0x3d30b8,_0x3d30b8['getFirstRange']()])),_0x11dffb=new Set(),_0x4e5778=new Set();for(let _0x109e90=0x0;_0x109e90<_0x4c1ddb['length'];_0x109e90++)_0xc85f3c(_0x4c1ddb[_0x109e90],_0x4c1ddb,_0x109e90+0x1);for(let _0x4c6f41=0x0;_0x4c6f41<_0x4c1ddb['length'];_0x4c6f41++)_0xc85f3c(_0x4c1ddb[_0x4c6f41],_0x2451e5,0x0);const _0x258ea1=new Set();for(let _0x19cd10=0x0;_0x19cd10<_0x4c1ddb['length'];_0x19cd10++){const _0x15b574=_0x4c1ddb[_0x19cd10];!_0x4e5778['has'](_0x15b574)&&_0x15b574['previous']&&(_0x258ea1['add'](_0x15b574['previous']),_0x15b574['previous']['next']===_0x15b574&&(_0x15b574['previous']['next']=null),_0x15b574['previous']=null),!_0x11dffb['has'](_0x15b574)&&_0x15b574['next']&&(_0x258ea1['add'](_0x15b574['next']),_0x15b574['next']['previous']===_0x15b574&&(_0x15b574['next']['previous']=null),_0x15b574['next']=null);}function _0xc85f3c(_0x59ea30,_0x43a4c9,_0x5391f8){for(let _0x1019dd=_0x5391f8;_0x1019dd<_0x43a4c9['length'];_0x1019dd++){const _0x5a67e8=_0x29d591(_0x59ea30,_0x43a4c9[_0x1019dd]);_0x5a67e8&&(_0x5a67e8[0x0]['next']=_0x5a67e8[0x1],_0x5a67e8[0x1]['previous']=_0x5a67e8[0x0],_0x11dffb['add'](_0x5a67e8[0x0]),_0x4e5778['add'](_0x5a67e8[0x1]));}}function _0x29d591(_0x12a031,_0x136a1d){if(_0x12a031['author']['id']!==_0x136a1d['author']['id'])return null;const _0xcded38=_0x107f7d['get'](_0x12a031)(_0x12a031,_0x136a1d,_0x1939cb['get'](_0x12a031),_0x1939cb['get'](_0x136a1d));if(!_0xcded38)return null;return _0x107f7d['get'](_0x136a1d)(_0x12a031,_0x136a1d,_0x1939cb['get'](_0x12a031),_0x1939cb['get'](_0x136a1d))?_0xcded38[0x1]['commentThread']&&_0xcded38[0x1]['commentThread']['length']?null:_0xcded38:null;}_0x258ea1['size']&&this['_refreshSuggestionsChain'](_0x258ea1);}['_refreshAttributeSuggestionsChain'](_0x30f6d6){if(0x0==_0x30f6d6['length'])return;const _0x8c8e39=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16344d=>'attribute'==_0x16344d['type']&&_0x16344d['_isDataLoaded']),_0x4a007e=[],_0x148581=new Map();for(const _0x4350a3 of _0x8c8e39){const _0x292b95=_0x2d1cfb(_0x4350a3['attributes']);_0x148581['has'](_0x292b95)||(_0x148581['set'](_0x292b95,_0x4a007e['length']),_0x4a007e['push']([]));const _0xeb340f=_0x148581['get'](_0x292b95);_0x4a007e[_0xeb340f]['push'](_0x4350a3);}!(function(){_0x4a007e['sort']((_0x3ea8be,_0x40c1b0)=>{const _0x40ad2e=_0x3ea8be[0x0]['createdAt'],_0x19af3f=_0x40c1b0[0x0]['createdAt'];return _0x40ad2e==_0x19af3f?_0x3ea8be[0x0]['attributes']['groupId']<_0x40c1b0[0x0]['attributes']['groupId']?-0x1:0x1:_0x40ad2e<_0x19af3f?-0x1:0x1;});for(const _0x58c8f6 of _0x4a007e)_0x58c8f6['sort']((_0x16c540,_0x30c96d)=>_0x16c540['id']<_0x30c96d['id']?-0x1:0x1);}());for(let _0x498841=0x0;_0x498841<_0x4a007e['length'];_0x498841++){if(0x0==_0x4a007e[_0x498841]['length'])continue;const _0x3466f2=[];for(let _0x42e577=_0x498841+0x1;_0x42e577<_0x4a007e['length'];_0x42e577++)0x0!=_0x4a007e[_0x42e577]['length']&&_0x33c592(_0x4a007e[_0x498841],_0x4a007e[_0x42e577])&&_0x3466f2['push'](_0x42e577);for(const _0x435dd8 of _0x3466f2)_0x4a007e[_0x498841]=_0x4a007e[_0x498841]['concat'](_0x4a007e[_0x435dd8]),_0x4a007e[_0x435dd8]=[];}for(const _0x5a9667 of _0x4a007e)for(let _0x1e9842=0x0;_0x1e9842<_0x5a9667['length'];_0x1e9842++){const _0x588921=_0x5a9667[_0x1e9842+0x1]||null;_0x5a9667[_0x1e9842]['next']!==_0x588921&&(_0x5a9667[_0x1e9842]['next']=_0x588921);}for(const _0x5671c0 of _0x4a007e)for(let _0x12efed=0x0;_0x12efed<_0x5671c0['length'];_0x12efed++){const _0x220d6c=_0x5671c0[_0x12efed-0x1]||null;_0x5671c0[_0x12efed]['previous']!==_0x220d6c&&(_0x5671c0[_0x12efed]['previous']=_0x220d6c);}function _0x33c592(_0x2ab541,_0x1f761a){if(_0x2ab541[0x0]['attributes']['groupId']!==_0x1f761a[0x0]['attributes']['groupId']&&_0x2ab541[0x0]['author']!==_0x1f761a[0x0]['author'])return!0x1;if(!function(_0x3145ef,_0x46df87){if(!_0x3145ef['hasComments']&&!_0x46df87['hasComments'])return!0x0;if(_0x3145ef['hasComments']&&_0x46df87['hasComments'])return!0x1;if(_0x3145ef['hasComments']&&_0x46df87['createdAt']<_0x3145ef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x46df87['hasComments']&&_0x3145ef['createdAt']<_0x46df87['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2ab541[0x0],_0x1f761a[0x0]))return!0x1;const _0x4bfa28=Ut(_0x2ab541[0x0]['attributes'],['groupId','trackingSessionId']),_0x54184b=Ut(_0x1f761a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4e9274(_0x4bfa28,_0x54184b))return!0x1;if(_0x2ab541[0x0]['attributes']['groupId']==_0x1f761a[0x0]['attributes']['groupId'])return!0x0;if(_0x2ab541[0x0]['attributes']['trackingSessionId']!==_0x1f761a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2ab541['every'](_0x44c13f=>_0x1f761a['some'](_0x2638fb=>_0x44c13f['getFirstRange']()['isEqual'](_0x2638fb['getFirstRange']())))&&_0x1f761a['every'](_0x518ef8=>_0x2ab541['some'](_0x5d6f24=>_0x518ef8['getFirstRange']()['isEqual'](_0x5d6f24['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x218a1c){const _0x455d61=Array['from'](_0x218a1c),_0x4831db=this['getSuggestions']({'skipNotAttached':!0x0}),_0x39ce5b=_0x4831db['filter'](_0x434434=>!_0x218a1c['has'](_0x434434)),_0x19eb3f=new Map(_0x455d61['map'](_0x2baf67=>[_0x2baf67,this['_suggestionFactory']['getSuggestionCallback'](_0x2baf67['type'],_0x2baf67['subType'],'join')])),_0x1df0ff=new Map(_0x4831db['map'](_0x10ebc9=>[_0x10ebc9,_0x10ebc9['getRanges']()]));for(let _0x407209=0x0;_0x407209<_0x455d61['length'];_0x407209++){if(_0x1514b8(this,_0x455d61[_0x407209],_0x455d61,_0x407209+0x1))return!0x0;}for(let _0x3ef86e=0x0;_0x3ef86e<_0x455d61['length'];_0x3ef86e++){if(_0x1514b8(this,_0x455d61[_0x3ef86e],_0x39ce5b,0x0))return!0x0;}return!0x1;function _0x1514b8(_0x408b0a,_0x1582cb,_0x5b793b,_0x44a2db){for(let _0x267294=_0x44a2db;_0x267294<_0x5b793b['length'];_0x267294++){const _0x538f8f=_0x5b793b[_0x267294];if(_0x538f8f['type']!==_0x1582cb['type']||_0x538f8f['author']['id']!==_0x1582cb['author']['id']||_0x538f8f['subType']!==_0x1582cb['subType'])continue;if(!Wt(_0x1582cb,_0x538f8f))continue;if('attribute'==_0x1582cb['type']&&_0x1582cb['data']['oldValue']!=_0x538f8f['data']['oldValue'])continue;if('attribute'==_0x1582cb['type']&&_0x408b0a['_isBlockAttribute'](_0x1582cb['data']['key']))continue;if('formatBlock'==_0x1582cb['type']){const _0x32cba7=_0x408b0a['editor']['model'],_0x359f89=_0x1582cb['getContainedElement']();if(_0x359f89&&(_0x32cba7['schema']['isObject'](_0x359f89)||_0x32cba7['schema']['isLimit'](_0x359f89)))continue;}const _0x2611d9=_0x19eb3f['get'](_0x1582cb),_0x25d17b=_0x1df0ff['get'](_0x1582cb),_0x5cbfae=_0x1df0ff['get'](_0x538f8f),_0x481cc2=_0x1582cb['commentThread']&&_0x1582cb['commentThread']['length'],_0x106ba6=_0x538f8f['commentThread']&&_0x538f8f['commentThread']['length'];if(!_0x481cc2&&_0x2611d9(_0x5cbfae,_0x25d17b))return _0x408b0a['_joinSuggestions'](_0x538f8f,_0x1582cb),_0x1df0ff['delete'](_0x1582cb),!0x0;if(!_0x106ba6&&_0x2611d9(_0x25d17b,_0x5cbfae))return _0x408b0a['_joinSuggestions'](_0x1582cb,_0x538f8f),_0x1df0ff['delete'](_0x538f8f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x467164,_0x5eb0c6){if(_0x467164['isMultiRange']){for(const _0x8d4263 of _0x5eb0c6['getRanges']())_0x467164['addRange'](_0x8d4263);}else{const _0x3a688f=_0x5eb0c6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x467164,this['_model']['createRange'](_0x467164['getFirstRange']()['start'],_0x3a688f));}_0x5eb0c6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5313da,_0xdc6550,_0x18e607){const _0x5dbf54=_0x5313da['startsWith']('format')||_0x5313da['startsWith']('attribute')?'FORMATTING':_0x5313da['toUpperCase']();return o(this['editor']['locale'],_0xdc6550+'_'+_0x5dbf54+'_SUGGESTION_ANNOUNCEMENT',_0x18e607);}['_initAriaMarkerChangeAnnouncements'](){const _0x517039=this['editor'];if(!_0x517039['ui'])return;const {ariaLiveAnnouncer:_0x3f7f95}=_0x517039['ui'];_0x927f42(this['_model'],({left:_0x45feee,entered:_0x16b168})=>{for(const _0x4eb63f of _0x45feee){const {group:_0x17b03c,type:_0x176403}=this['_splitMarkerName'](_0x4eb63f['name']);if('suggestion'===_0x17b03c){_0x3f7f95['announce'](this['_getMarkerAnnouncementText'](_0x176403,'LEAVE'));break;}}for(const _0x1464c1 of _0x16b168){const {group:_0x1813d0,type:_0x7eac90}=this['_splitMarkerName'](_0x1464c1['name']);if('suggestion'===_0x1813d0){_0x3f7f95['announce'](this['_getMarkerAnnouncementText'](_0x7eac90,'ENTER',_0x206b69(_0x48270c)));break;}}});}['_processAttributeChanges'](_0x2d4476){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37f3d4=this['editor'],_0x249e3c=_0x37f3d4['model']['document']['differ']['getChanges']();if(0x0==_0x249e3c['length'])return!0x1;const _0x49943c=[],_0x3ec376=_0x249e3c['filter'](_0x4c1d9c=>'attribute'==_0x4c1d9c['type']),_0xb018c5=_0x249e3c['filter'](_0x5a6df7=>'insert'==_0x5a6df7['type']&&'$text'!=_0x5a6df7['name']),_0x39e613=_0x249e3c['filter'](_0x5475eb=>'remove'==_0x5475eb['type']&&'$text'!=_0x5475eb['name']);for(const _0x28bda8 of _0x3ec376)_0x49943c['push']({'key':_0x28bda8['attributeKey'],'newValue':_0x28bda8['attributeNewValue'],'oldValue':_0x28bda8['attributeOldValue'],'range':Ht(_0x28bda8['range'],_0x37f3d4['model'])});for(const _0x559d38 of _0xb018c5){const _0x43a4fa=_0x39e613['find'](_0x19738a=>_0x19738a['position']['isEqual'](_0x559d38['position']));_0x43a4fa&&_0x49943c['push']({'key':m,'newValue':_0x559d38['name'],'oldValue':_0x43a4fa['name'],'range':_0x37f3d4['model']['createRangeOn'](_0x559d38['position']['nodeAfter'])});}return 0x0!=_0x49943c['length']&&this['_reduceExistingSuggestions'](_0x2d4476,_0x49943c);}['_processAttributeSuggestions'](_0x4ce308){let _0x163602=!0x1;const _0x5ab601=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4788c6=>_0x4788c6['data']['newRange']&&_0x4788c6['name']['startsWith']('suggestion:attribute:'));for(const _0x3b0999 of _0x5ab601){const {subType:_0x437ed2,id:_0x4f6c4a}=this['_splitMarkerName'](_0x3b0999['name']),_0x5a3dd7=_0x437ed2['split']('|')[0x0];for(const _0x553545 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x553545['id']!=_0x4f6c4a&&'attribute'==_0x553545['type']&&_0x553545['data']&&_0x553545['data']['key']==_0x5a3dd7&&_0x553545['getFirstRange']()['isIntersecting'](_0x3b0999['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x553545,_0x3b0999['data']['newRange'],_0x4ce308),_0x163602=!0x0);}return _0x163602;}['recordAttributeChanges'](_0x189609){this['_recordAttributeSuggestions']=!0x0,_0x189609();}['_isRegisteredAttribute'](_0x4ba031){const _0x843140=this['_isBlockAttribute'](_0x4ba031),_0xf4a294=this['_inlineAttributeKeys']['has'](_0x4ba031);return _0x843140||_0xf4a294;}['_reduceExistingSuggestions'](_0x3f4e56,_0x5af7fd){if(0x0==_0x5af7fd['length'])return!0x1;let _0x294c5a=!0x1;for(const _0x21f60c of _0x5af7fd){const _0x58d679=this['_findSuggestions'](_0x21f60c['range'],'attribute')['filter'](_0x113e92=>!_0x113e92['meta']['isNextTo'])['map'](_0x150eef=>_0x150eef['suggestion']),_0x8f6e61=_0x2d1cfb({'newValue':_0x21f60c['newValue']});_0x58d679['filter'](_0x3f8007=>{const [_0x5e5810,_0x268d80]=_0x3f8007['subType']['split']('|');return _0x5e5810==_0x21f60c['key']&&_0x268d80!=_0x8f6e61;})['forEach'](_0x4ed4be=>{this['_reduceSuggestionAttributeRange'](_0x4ed4be,_0x21f60c['range'],_0x3f4e56),_0x294c5a=!0x0;});}return _0x294c5a;}['_reduceSuggestionAttributeRange'](_0x442140,_0x295768,_0x193afb){const _0x3e719a=_0x442140['getFirstRange']()['getDifference'](_0x295768);0x0!==_0x3e719a['length']?0x1!==_0x3e719a['length']?this['_breakSuggestionMarker'](_0x442140,_0x295768['start'],_0x295768['end']):this['_setSuggestionRange'](_0x442140,_0x3e719a[0x0]):_0x193afb['removeMarker'](_0x442140['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4f020d){this['_editor']=_0x4f020d,this['_model']=_0x4f020d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x24eac9,_0xbd7e7f,_0x470446,_0x3bc537,_0x56d72c,_0x36088c,_0x58df00){return new T(this['_model'],{'type':_0x24eac9,'subType':_0xbd7e7f,'id':_0x470446,'originalSuggestionId':_0x58df00,'author':_0x3bc537,'creator':_0x3bc537,'attributes':_0x56d72c,'onAttributesChange':_0x36088c,'onAccept':(..._0x359c41)=>this['getSuggestionCallback'](_0x24eac9,_0xbd7e7f,'accept')(..._0x359c41),'onDiscard':(..._0x3e3619)=>this['getSuggestionCallback'](_0x24eac9,_0xbd7e7f,'discard')(..._0x3e3619)});}['registerCustomCallback'](_0x5d6124,_0x261dff,_0xea2528,_0x750a68){const _0x48e255=_0x5d6124+':'+_0x261dff+':'+_0xea2528;this['_customCallbacks']['set'](_0x48e255,_0x750a68);}['getSuggestionCallback'](_0x24b165,_0x25b07c,_0x2f2ce9){const _0x29bc9c=_0x24b165+':'+_0x25b07c+':'+_0x2f2ce9;return this['_customCallbacks']['get'](_0x29bc9c)||this['_defaultCallbacks']['get'](_0x24b165+':'+_0x2f2ce9);}['_registerDefaultCallbacks'](){const _0x143254=()=>!0x1,_0x280a00=_0x1c5297=>{_0x1c5297['sort']((_0x3b269d,_0x4c82a0)=>_0x3b269d['start']['isBefore'](_0x4c82a0['start'])?0x1:-0x1),this['_model']['change'](_0x25f38e=>{for(const _0x4c5d60 of _0x1c5297){let _0x182051;_0x182051=_0x4c5d60['end']['isAtEnd']&&_0x4c5d60['end']['parent']==_0x4c5d60['start']['nodeAfter']?_0x25f38e['createSelection'](_0x4c5d60['start']['nodeAfter'],'on'):_0x25f38e['createSelection'](_0x4c5d60),this['_model']['deleteContent'](_0x182051,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x555274=(_0x41be51,_0x18704e)=>{_0x18704e&&this['_model']['change'](_0x4d7f70=>{const {commandName:_0x15c2c3,commandParams:_0x1af859=[]}=_0x18704e,_0x114e44=_0x41be51['map'](_0x334e48=>(Pt(_0x334e48)&&(_0x334e48=this['_model']['createRange'](_0x334e48['end'])),_0x334e48))['filter'](_0x1107dc=>'$graveyard'!==_0x1107dc['root']['rootName']);if(_0x114e44['length']<0x1)return;const _0x4a632d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x350737=>_0x45518e['fromRange'](_0x350737));_0x4d7f70['setSelection'](_0x114e44);for(const _0x57f303 of this['_editor']['commands']['commands']())_0x57f303['refresh']();_0x1af859['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x15c2c3,..._0x1af859);const _0x43df13=_0x4a632d['filter'](_0x1d47c9=>'$graveyard'!=_0x1d47c9['root']['rootName']);_0x43df13['length']>0x0&&_0x4d7f70['setSelection'](_0x43df13);for(const _0xabd2f8 of _0x4a632d)_0xabd2f8['detach']();});},_0x288ba6=(_0x488ee8,_0x26a870)=>0x1==_0x488ee8['length']&&0x1==_0x26a870['length']&&_0x488ee8[0x0]['end']['isEqual'](_0x26a870[0x0]['start']),_0x5cd30f=(_0x5a2b3f,_0x5b8bab,_0x122d44,_0xc5a6f0)=>zt(_0x5a2b3f,_0x5b8bab,_0x122d44,_0xc5a6f0)?[_0x5a2b3f,_0x5b8bab]:zt(_0x5b8bab,_0x5a2b3f,_0xc5a6f0,_0x122d44)?[_0x5b8bab,_0x5a2b3f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x143254),this['_defaultCallbacks']['set']('insertion:discard',_0x280a00),this['_defaultCallbacks']['set']('insertion:join',_0x288ba6),this['_defaultCallbacks']['set']('insertion:chain',_0x5cd30f),this['_defaultCallbacks']['set']('deletion:accept',_0x280a00),this['_defaultCallbacks']['set']('deletion:discard',_0x143254),this['_defaultCallbacks']['set']('deletion:join',_0x288ba6),this['_defaultCallbacks']['set']('deletion:chain',_0x5cd30f),this['_defaultCallbacks']['set']('formatInline:accept',_0x555274),this['_defaultCallbacks']['set']('formatInline:discard',_0x143254),this['_defaultCallbacks']['set']('formatInline:join',_0x288ba6),this['_defaultCallbacks']['set']('formatInline:chain',_0x143254),this['_defaultCallbacks']['set']('formatBlock:accept',_0x555274),this['_defaultCallbacks']['set']('formatBlock:discard',_0x143254),this['_defaultCallbacks']['set']('formatBlock:join',_0x288ba6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x143254),this['_defaultCallbacks']['set']('attribute:accept',_0x143254),this['_defaultCallbacks']['set']('attribute:discard',(_0x5f28a2,_0x2ff75d)=>{if(!_0x2ff75d)return;const _0x5b0eb1=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x303851=>{if(_0x2ff75d['key']==m)for(const _0x40005f of _0x5f28a2){const _0x416fbb=_0x40005f['start']['nodeAfter'],_0xb7435d=_0x2ff75d['oldValue'];_0x303851['rename'](_0x416fbb,_0xb7435d);}else{if(_0x5b0eb1['_isBlockAttribute'](_0x2ff75d['key'])){for(const _0x4870f5 of _0x5f28a2)void 0x0!==_0x2ff75d['oldValue']?_0x303851['setAttribute'](_0x2ff75d['key'],_0x2ff75d['oldValue'],_0x4870f5['start']['nodeAfter']):_0x303851['removeAttribute'](_0x2ff75d['key'],_0x4870f5['start']['nodeAfter']);}else{for(const _0x4cd0d7 of _0x5f28a2)_0x2ff75d['oldValue']?_0x303851['setAttribute'](_0x2ff75d['key'],_0x2ff75d['oldValue'],_0x4cd0d7):_0x303851['removeAttribute'](_0x2ff75d['key'],_0x4cd0d7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x288ba6);}}function Ft(_0x3cc89d,_0x580a93,_0x4a45cc){for(const _0x2638b9 of _0x580a93['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2638b9['root']==_0x2638b9)return!0x1;if(!_0x4a45cc['containsItem'](_0x2638b9))return!0x1;if(_0x3cc89d['isObject'](_0x2638b9)||_0x3cc89d['isLimit'](_0x2638b9))return!0x0;}return!0x1;}function Pt(_0xf70b34){return _0xf70b34['end']['parent']==_0xf70b34['start']['nodeAfter']&&_0xf70b34['end']['isAtStart'];}function Gt(_0x574570,_0x46c279,_0x24b887,_0x6886e6){const _0x29479e=_0x47ac1c=>!_0x47ac1c['item']['is']('$textProxy')&&!_0x6886e6['isObject'](_0x47ac1c['item']),_0x8d03e5=_0x574570['start']['getLastMatchingPosition'](_0x29479e),_0x2fbf95=_0x574570['end']['getLastMatchingPosition'](_0x29479e,{'direction':'backward'});return(!_0x574570['start']['isEqual'](_0x8d03e5)||!_0x574570['end']['isEqual'](_0x2fbf95))&&(_0x8d03e5['isBefore'](_0x2fbf95)?_0x24b887['updateMarker'](_0x46c279,{'range':_0x24b887['createRange'](_0x8d03e5,_0x2fbf95)}):_0x24b887['removeMarker'](_0x46c279),!0x0);}function Lt(_0x310f2a){return _0x2d1cfb(_0x310f2a);}function Jt(_0x5a652c){const _0x456181=_0x5a652c['start']['nodeAfter'];return _0x456181&&_0x456181['is']('element');}function Kt(_0x949b03){return!Pt(_0x949b03)&&!function(_0x4e79cf){return _0x4e79cf['start']['parent']==_0x4e79cf['end']['nodeBefore']&&_0x4e79cf['start']['isAtEnd'];}(_0x949b03);}function Ht(_0x5130ec,_0x55df4b){return null==_0x5130ec['end']['nodeBefore']&&_0x5130ec['end']['parent']==_0x5130ec['start']['nodeAfter']?qt(_0x5130ec['start']['nodeAfter'],_0x55df4b):_0x5130ec;}function qt(_0x2fd4ce,_0x2a55d6){const _0x4de403=_0x2a55d6['schema']['isObject'](_0x2fd4ce)||_0x2a55d6['schema']['isSelectable'](_0x2fd4ce);return _0x2a55d6['createRange'](_0x2a55d6['createPositionAt'](_0x2fd4ce,'before'),_0x4de403?_0x2a55d6['createPositionAfter'](_0x2fd4ce):_0x2a55d6['createPositionAt'](_0x2fd4ce,'end'));}function zt(_0x38e8a4,_0x23df76,_0x294341,_0x4b88fd){return!!Wt(_0x38e8a4,_0x23df76)&&_0x294341['end']['isEqual'](_0x4b88fd['start']);}function Wt(_0x32ef2c,_0x476428){if(!_0x32ef2c['_isDataLoaded']||!_0x476428['_isDataLoaded'])return!0x1;const _0x166683=new Set(Object['keys'](_0x32ef2c['attributes'])),_0x29392c=new Set(Object['keys'](_0x476428['attributes']));if(_0x166683['delete']('groupId'),_0x29392c['delete']('groupId'),0x0==_0x166683['size']&&0x0==_0x29392c['size'])return!0x0;if(_0x166683['size']!=_0x29392c['size'])return!0x1;const _0x2d04aa={..._0x32ef2c['attributes']},_0x122403={..._0x476428['attributes']};return delete _0x2d04aa['groupId'],delete _0x122403['groupId'],JSON['stringify'](_0x2d04aa)==JSON['stringify'](_0x122403);}function Qt(_0x19956d,_0x4c0f4d){const _0x2dff91=Xt(_0x19956d['attributes']),_0x3a9ac7=Xt(_0x4c0f4d);if(!_0x19956d['_isDataLoaded'])return!0x1;for(const _0x127638 of Object['keys'](_0x3a9ac7))if(!_0x4e9274(_0x2dff91[_0x127638],_0x3a9ac7[_0x127638]))return!0x1;return!0x0;}function Xt(_0x1e1265){const _0x5b33af=Object['assign']({},_0x1e1265);return delete _0x5b33af['skipNestingCheck'],delete _0x5b33af['tablePasteChainId'],_0x5b33af;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2f7706(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x567e34,_0x4ccf54,_0x434fdb,_0x5ec21e){super(),this['model']=_0x4ccf54,this['view']=_0x434fdb,this['commentThreadController']=_0x5ec21e,this['_editor']=_0x567e34,this['_acceptCommand']=_0x567e34['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x567e34['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x220e8e,_0x485a0f)=>_0x220e8e||_0x485a0f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x38883e=>_0x38883e&&this['_editor']['model']['canEditAt'](_0x4ccf54['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xc09942=>_0xc09942&&this['_editor']['model']['canEditAt'](_0x4ccf54['getRanges']())),this['_pendingAction']=null,_0x434fdb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x434fdb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x434fdb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x434fdb,'change:isDirty',()=>{_0x434fdb['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 _0x38ead4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x38ead4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x33a1b7{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50d4f8,_0x52dac4,_0x4e10d3,_0x3517ce){super(_0x50d4f8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x29e999(_0x50d4f8,o(_0x50d4f8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x52dac4['authoredAt']),this['bind']('authoredAt')['to'](_0x52dac4),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',_0x52dac4,'authoredAt',this,'descriptionParts',(_0x15f71c,_0x2c45b6,_0x22c960)=>{const _0x23d34d=_0x22c960['map'](_0x147970=>ls(_0x147970['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x15f71c-0x1,_0x52dac4['author']['name'],_0x2c45b6?_0x3517ce['formatDateTime'](_0x2c45b6):'',new DOMParser()['parseFromString'](_0x23d34d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2a00df(),this['focusTracker']=new _0x513954(),this['keystrokes']=new _0x3f6c83(),this['focusCycler']=new _0x3288bf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5b2034=>_0x5b2034['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x52dac4,this['_localUser']=_0x4e10d3,this['_config']=_0x3517ce,_0x3517ce['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4a448c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x17361b}=this['_config'];this['commentsListView']=new _0x17361b(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',_0x2efcc0=>_0x2efcc0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4973dc,_0x587b0a)=>_0x4973dc||!!_0x587b0a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2319e2}=this['_config'],_0x516d34=new _0x2319e2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5003f8=_0x516d34['commentInputView'];return _0x516d34['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5003f8,'value',(_0x1bcded,_0x4879bc,_0x16d0d3)=>!!_0x16d0d3||_0x1bcded&&!_0x4879bc),_0x5003f8['on']('submit',(_0x17a75e,_0x1fc47a)=>{this['fire']('addComment',_0x1fc47a),_0x5003f8['editor']['setData']('');}),_0x5003f8['on']('cancel',()=>this['focus']()),_0x5003f8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x516d34;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x39704f,_0xd00722,_0x889fca,_0x3fc0c0){super(_0x39704f,_0xd00722,_0x889fca,_0x3fc0c0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x21d68b=>_0x21d68b&&_0x21d68b[0x0]?_0x21d68b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x394672,_0x397cd7)=>{let _0x9f0e5f='';for(const _0x43dc2c of _0x394672)_0x9f0e5f+='<p>'+ls(_0x43dc2c['content'],_0x43dc2c['color'])+'</p>';return _0x397cd7?_0x9f0e5f:_0x4c24c5(_0x9f0e5f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3fc0c0['SuggestionView'](_0x39704f,_0xd00722,{'formatDateTime':_0x3fc0c0['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1da4c8=this['bindTemplate'],_0x7394f4=[this['suggestionView']];return this['commentsListView']&&_0x7394f4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x7394f4['push'](this['commentThreadInputView']),_0x7394f4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1da4c8['if']('isActive','ck-suggestion-wrapper--active'),_0x1da4c8['to']('type',_0x339e0c=>'ck-suggestion-'+_0x339e0c),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':_0x1da4c8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x7394f4};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x33a1b7{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4d6ee8,_0x4ff054,_0x227250){super(_0x4d6ee8),this['_model']=_0x4ff054,this['_config']=_0x227250,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4ff054),this['acceptButton']=this['_createButton'](o(_0x4d6ee8,'Accept\x20suggestion'),_0x163398,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4d6ee8,'Discard\x20suggestion'),_0x4dad76,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x10a06d(_0x4d6ee8,_0x4ff054['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2a00df([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x513954(),this['keystrokes']=new _0x3f6c83(),this['focusCycler']=new _0x3288bf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3f767f=>_0x3f767f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x7f57c4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x7f57c4['innerHTML']=this['description'],this['on']('change:description',(_0x4ae089,_0x193638,_0x20ae51)=>{_0x7f57c4['innerHTML']=_0x20ae51;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x231c1c=this['bindTemplate'],_0x192f6f=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x231c1c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x231c1c['to']('authoredAt',_0x38c27b=>this['_config']['formatDateTime'](_0x38c27b))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x192f6f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x192f6f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3173b5,_0x4859e0,_0x38a6aa,_0x423bc5,_0x30499e){const _0x32ce12=new _0x57cb20(this['locale']);return _0x32ce12['set']({'label':_0x3173b5,'icon':_0x4859e0,'tooltip':!0x0,'tooltipPosition':_0x30499e}),_0x32ce12['extendTemplate']({'attributes':{'class':_0x38a6aa}}),_0x32ce12['on']('execute',()=>{this['fire'](_0x423bc5,this['_model']['id']);}),_0x32ce12;}['_setupKeyboardNavigation'](){const _0x5a972c=this['element'];this['keystrokes']['listenTo'](_0x5a972c);for(const _0x4b717b of this['focusables'])this['focusTracker']['add'](_0x4b717b['element']),this['keystrokes']['listenTo'](_0x4b717b['element']);this['keystrokes']['set']('enter',(_0x319212,_0x12311a)=>{_0x5a972c===_0x319212['target']&&(this['focusCycler']['focusFirst'](),_0x12311a());}),this['keystrokes']['set']('esc',(_0x390806,_0x4ca7bb)=>{_0x5a972c!==_0x390806['target']&&(this['focus'](),_0x4ca7bb());});}}class u extends _0x519785{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3141dd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x62f051){super(_0x62f051),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5af4fd=this['editor']['config'];_0x5af4fd['define']('trackChanges.SuggestionThreadView',fe),_0x5af4fd['define']('trackChanges.SuggestionView',we),_0x5af4fd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5af4fd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1af111,_0x2308b3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x284333,_0x5ee566]of this['_handleControllerBuffer']){const _0xd849b3=this['_suggestionToController']['has'](_0x284333);_0xd849b3||_0x5ee566?_0xd849b3&&_0x5ee566&&this['_destroyController'](_0x284333):this['_initializeController'](_0x284333);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1af111,_0x2308b3);}['init'](){const _0x3c2428=this['editor'],_0x4a3c81=_0x3c2428['plugins']['get']('TrackChangesEditing'),_0x2c138f=_0x3c2428['plugins']['get']('Annotations'),_0x1d60a3=_0x3c2428['plugins']['get']('EditorAnnotations'),_0x428d7c=_0x3c2428['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d60a3['addSourceCollector'](()=>{const _0x564d9e=[];for(const [_0x3f98de,_0x994e80]of Array['from'](this['_suggestionToController'])){const _0x3e3f7e=_0x3f98de['getAllAdjacentSuggestions'](),_0x23c84d=[];for(const _0x310a73 of _0x3e3f7e){if(!_0x310a73['isInContent'])continue;if(_0x310a73['isMultiRange']){_0x23c84d['push'](..._0x310a73['getRanges']());continue;}const _0x2f2ad6=_0x310a73['getFirstRange']();if(_0x23c84d['length']>0x0){const _0xf2b134=_0x23c84d[0x0]['getJoined'](_0x2f2ad6);if(_0xf2b134){_0x23c84d[0x0]=_0xf2b134;continue;}}_0x23c84d['push'](_0x2f2ad6);}_0x564d9e['push']([_0x994e80['view'],_0x23c84d]);}return _0x564d9e;}),this['listenTo'](_0x4a3c81,'suggestionLoaded',(_0x456852,_0x130dc9)=>{this['listenTo'](_0x130dc9,'change:previous',(_0x4e2c98,_0x150444,_0x498478,_0x3e3925)=>{_0x130dc9['isInContent']&&(null==_0x498478?(this['_updateController'](_0x3e3925['head']),this['_handleSuggestionControllerDelayed'](_0x130dc9,!0x1)):(this['_updateController'](_0x498478['head']),null==_0x3e3925&&this['_handleSuggestionControllerDelayed'](_0x130dc9,!0x0)));}),null!==_0x130dc9['previous']?this['_updateController'](_0x130dc9['head']):this['_handleSuggestionControllerDelayed'](_0x130dc9,!0x1);}),this['listenTo'](_0x4a3c81,'suggestionUnloaded',(_0x1dadb7,_0x1ca6f7,_0x31ad46)=>{this['stopListening'](_0x1ca6f7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1ca6f7),this['_suggestionToController']['has'](_0x1ca6f7)&&this['_destroyController'](_0x1ca6f7),_0x31ad46&&this['_updateController'](_0x31ad46['head']);}),this['listenTo'](_0x4a3c81,'suggestionChanged',(_0x532175,_0x205f65)=>{this['_updateController'](_0x205f65);}),this['listenTo'](_0x2c138f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x428d7c,'addComment',(_0x32f4b5,{threadId:_0x3bec70,isFromAdapter:_0x104833})=>{if(_0x104833||!_0x4a3c81['hasSuggestion'](_0x3bec70))return;const _0x5a889d=_0x4a3c81['getSuggestion'](_0x3bec70);this['_suggestionToController']['get'](_0x5a889d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xfc273f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45b2e4;for(const _0x8b0e86 in _0xfc273f){const _0x57211e=_0x8b0e86,_0x383dfa=_0xfc273f[_0x57211e];if('trackChangesLicenseKeyValid'==_0x383dfa||'trackChangesLicenseKeyInvalid'==_0x383dfa||'trackChangesLicenseKeyExpired'==_0x383dfa||'trackChangesLicenseKeyDomainLimit'==_0x383dfa||'trackChangesLicenseKeyNotAllowed'==_0x383dfa||'trackChangesLicenseKeyEvaluationLimit'==_0x383dfa||'trackChangesLicenseKeyTrialLimit'==_0x383dfa||'trackChangesLicenseKeyUsageLimit'==_0x383dfa){delete _0xfc273f[_0x57211e],_0x45b2e4=_0x383dfa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x45b2e4&&_0xfc273f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x45b2e4&&_0xfc273f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x45b2e4&&_0xfc273f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x45b2e4&&_0xfc273f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x45b2e4&&_0xfc273f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x45b2e4&&_0xfc273f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x45b2e4&&_0xfc273f['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x27d747){const _0x251230=this['_suggestionToController']['get'](_0x27d747);if(!_0x251230)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x251230['view'])||null;}['getSuggestionForAnnotation'](_0x184d9d){const _0x59c63a=this['_viewToController']['get'](_0x184d9d['innerView']);return _0x59c63a?_0x59c63a['model']:null;}['_refreshActiveMarkers'](){const _0x2410f1=this['editor']['plugins']['get']('Annotations'),_0xea9b57=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ac31f=Array['from'](_0x2410f1['activeAnnotations'],_0x40332d=>_0x40332d['innerView'])['filter'](_0x15bdd4=>this['_viewToController']['has'](_0x15bdd4)),_0x2285b8=[];for(const _0x1c99b8 of _0x4ac31f){const _0x3e26b5=this['_viewToController']['get'](_0x1c99b8)['model']['getAllAdjacentSuggestions']();_0x2285b8['push'](..._0x3e26b5['reduce']((_0x5e5aa4,_0xe76c12)=>[..._0x5e5aa4,..._0xe76c12['getMarkerNames']()],[]));}_0xea9b57['activeMarkers']=_0x2285b8;}['_addUIComponentsToFactory'](){const _0x311edc=this['editor'],_0x52b7f5=_0x311edc['locale'],_0x8408ef=o(_0x52b7f5,'Track\x20changes'),_0x7f56bc=new _0x221f2c([{'type':'switchbutton','model':new _0x5bd144({'withText':!0x0,'isToggleable':!0x0,'label':_0x8408ef,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5bd144({'withText':!0x0,'label':o(_0x52b7f5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bd144({'withText':!0x0,'label':o(_0x52b7f5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bd144({'withText':!0x0,'label':o(_0x52b7f5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bd144({'withText':!0x0,'label':o(_0x52b7f5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x311edc['plugins']['has']('TrackChangesPreview')&&_0x7f56bc['addMany']([{'type':'separator'},{'type':'button','model':new _0x5bd144({'withText':!0x0,'label':o(_0x52b7f5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4e3420 of _0x7f56bc)if(ke(_0x4e3420)){const _0x551f78=_0x311edc['commands']['get'](_0x4e3420['model']['commandName']);_0x4e3420['model']['bind']('isOn','isEnabled')['to'](_0x551f78,'value','isEnabled');}_0x311edc['ui']['componentFactory']['add']('trackChanges',_0x47269a=>this['_createToolbarButton'](_0x47269a,_0x7f56bc,_0x8408ef)),_0x311edc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3e8183=>this['_createMenuBarMenu'](_0x3e8183,_0x7f56bc,_0x8408ef));}['_createToolbarButton'](_0x3705c9,_0x42bf74,_0x2919ef){const _0x3545ec=_0x2851f4(_0x3705c9,_0x463226),_0x3967d9=this['editor']['commands']['get']('trackChanges');_0x3545ec['buttonView']['set']({'tooltip':_0x2919ef,'label':_0x2919ef,'icon':_0x1c1625}),_0x3545ec['buttonView']['bind']('isOn')['to'](_0x3967d9,'value'),_0x3545ec['buttonView']['on']('execute',()=>{_0x3967d9['execute'](),this['editor']['editing']['view']['focus']();}),_0x50583c(_0x3545ec,_0x42bf74,{'role':'menu'});const _0x42f964=[];for(const _0x478f52 of _0x42bf74)ke(_0x478f52)&&_0x42f964['push'](this['editor']['commands']['get'](_0x478f52['model']['commandName']));const _0x1c64ac=_0x3545ec['buttonView'];return _0x1c64ac['actionView']['unbind']('isEnabled'),_0x1c64ac['arrowView']['unbind']('isEnabled'),_0x1c64ac['actionView']['bind']('isEnabled')['to'](_0x3967d9,'isEnabled'),_0x1c64ac['arrowView']['bind']('isEnabled')['toMany'](_0x42f964,'isEnabled',(..._0x4d5686)=>_0x4d5686['some'](_0x5d42c3=>_0x5d42c3)),_0x3545ec['on']('execute',_0x37df19=>{this['editor']['execute'](_0x37df19['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3545ec;}['_createMenuBarMenu'](_0x2f0a31,_0x586791,_0xa88c9d){const _0x591876=new _0x39293e(_0x2f0a31),_0x2d6f49=this['editor']['commands']['get']('trackChanges');_0x591876['buttonView']['set']({'label':_0xa88c9d,'icon':_0x1c1625});const _0x44425d=new _0x42ef81(_0x2f0a31);for(const _0x3a5cc5 of _0x586791){if('separator'==_0x3a5cc5['type']){_0x44425d['items']['add'](new _0x179721(_0x2f0a31));continue;}const _0x404707=new _0x49d588(_0x2f0a31,_0x591876),_0x432168=new _0x377c54(_0x2f0a31),_0x3f217b=_0x3a5cc5['model'];_0x432168['bind'](...Object['keys'](_0x3f217b))['to'](_0x3f217b),_0x432168['delegate']('execute')['to'](_0x591876),_0x432168['on']('execute',()=>{this['editor']['execute'](_0x3f217b['commandName']),this['editor']['editing']['view']['focus']();}),_0x404707['children']['add'](_0x432168),_0x44425d['items']['add'](_0x404707);}return _0x591876['bind']('isEnabled')['to'](_0x2d6f49,'isEnabled'),_0x591876['panelView']['children']['add'](_0x44425d),_0x591876;}['_initializeController'](_0x5186fb){const _0x250156=this['editor'],_0x1d6cfd=_0x250156['config'],_0xd15abf=_0x250156['plugins']['get']('Annotations'),_0x11fb2c=_0x250156['plugins']['get']('CommentsRepository'),_0x3eff03=_0x250156['plugins']['get']('EditorAnnotations'),_0x3534a3=_0x250156['plugins']['get'](_0x3141dd)['me'],_0x482635=_0x1d6cfd['get']('trackChanges')['SuggestionThreadView'],_0x33e644=_0x1d6cfd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x18dfac,CommentThreadInputView:_0x317510}=_0x250156['plugins']['get']('CommentsUI');let _0x5beb01,_0x5bd3c9,_0x505a6e;this['_annotationViews']['has'](_0x5186fb['id'])?(_0x5bd3c9=this['_annotationViews']['get'](_0x5186fb['id']),_0x5beb01=_0x5bd3c9['mainView']):(_0x5beb01=new _0x482635(_0x250156['locale'],_0x5186fb,_0x3534a3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1d6cfd['get']('comments.editorConfig'),'licenseKey':_0x1d6cfd['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1d6cfd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1d6cfd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1d6cfd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xcf14d9(_0x1d6cfd['get']('locale'),_0x250156['locale']),'CommentView':_0x1d6cfd['get']('comments')['CommentView'],'CommentsListView':_0x18dfac,'CommentThreadInputView':_0x317510,'SuggestionView':_0x33e644}),_0x5beb01['suggestionView']['acceptButton']['on']('execute',()=>{_0x250156['editing']['view']['focus']();}),_0x5beb01['suggestionView']['discardButton']['on']('execute',()=>{_0x250156['editing']['view']['focus']();}),_0x5bd3c9=_0xd15abf['createAnnotationView'](this['editor']['locale'],_0x5beb01),_0x5bd3c9['bind']('isDirty')['to'](_0x5beb01,'isDirty'),_0x5bd3c9['bind']('length')['to'](_0x5beb01),_0x5bd3c9['bind']('type')['to'](_0x5beb01,'type',_0x5089ad=>'suggestion-'+_0x5089ad),_0x5beb01['on']('escape',()=>{_0x505a6e['fire']('escape');}),this['_annotationViews']['set'](_0x5186fb['id'],_0x5bd3c9));const _0x4cb2b2=_0x11fb2c['createCommentThreadController'](_0x5186fb['commentThread'],_0x5beb01),_0x42ee29=new pe(_0x250156,_0x5186fb,_0x5beb01,_0x4cb2b2),_0x6dff58=_0x5186fb['getAllAdjacentSuggestions']()['filter'](_0x49644f=>_0x49644f['isInContent']);_0x5beb01['descriptionParts']=_0x250156['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x6dff58),this['_suggestionToController']['set'](_0x5186fb,_0x42ee29),this['_viewToController']['set'](_0x5beb01,_0x42ee29),_0x505a6e=_0xd15abf['createAnnotation']({'view':_0x5bd3c9,'target':()=>{const _0x4eb911=[],_0x91b47d=_0x5186fb['getAllAdjacentSuggestions']()['filter'](_0x115844=>_0x115844['isInContent']);for(const _0x5df4c3 of _0x91b47d)_0x4eb911['push'](..._0x5df4c3['getMarkers']());return _0x54ca32(_0x250156['editing'],_0x4eb911);},'type':()=>'suggestion-'+_0x42ee29['view']['type']}),_0x11fb2c['_bindAnnotationToEditors'](_0x5beb01,_0x505a6e),_0xd15abf['add'](_0x505a6e),_0x3eff03['registerAnnotation'](_0x505a6e);}['_destroyController'](_0x8360a7){const _0x32da4f=this['editor']['plugins']['get']('CommentsRepository'),_0x293450=this['editor']['plugins']['get']('Annotations'),_0x2381c7=this['_suggestionToController']['get'](_0x8360a7),_0x34f099=_0x2381c7['view'],_0x4776e5=_0x293450['getByInnerView'](_0x34f099);_0x32da4f['_unbindEditors'](_0x34f099),_0x4776e5&&_0x293450['remove'](_0x4776e5),this['_suggestionToController']['delete'](_0x8360a7),this['_viewToController']['delete'](_0x34f099),_0x2381c7['destroy']();}['_updateController'](_0x5d0b5c){if(!_0x5d0b5c['isInContent']||!this['_suggestionToController']['has'](_0x5d0b5c))return;const _0x13a655=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbc1d4a=this['_suggestionToController']['get'](_0x5d0b5c),_0x4f0f3a=_0x5d0b5c['getAllAdjacentSuggestions']();_0xbc1d4a['view']['descriptionParts']=_0x13a655['descriptionFactory']['getDescriptions'](_0x4f0f3a);}['destroy'](){for(const _0x1d9ea1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1d9ea1);for(const _0x96c8b7 of this['_annotationViews']['values']())_0x96c8b7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x34bc68){return'model'in _0x34bc68;}class Fe extends _0x519785{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x55b418){this['editor']['plugins']['get'](d)['adapter']=_0x55b418;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x20c61f){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x20c61f);}['getSuggestions']({skipNotAttached:_0x1eb54c=!0x1,toJSON:_0xf272e3=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1eb54c,'toJSON':_0xf272e3});}['getSuggestion'](_0x32d5a2){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x32d5a2);}}const p=['Pagination'];class re extends _0x519785{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2d749e=this['editor'];if(_0x2d749e['config']['define']('trackChangesData.editorCreator',_0x5b6ab6=>{const _0x505493=_0x2d749e['model']['document']['getRootNames']()['reduce']((_0x58132d,_0x58df75)=>(_0x58132d[_0x58df75]='',_0x58132d),{});return _0x2d749e['constructor']['create'](_0x505493,_0x5b6ab6);}),'function'!=typeof _0x2d749e['config']['get']('trackChangesData')['editorCreator'])throw new _0x5cecf6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x518f9d){return P(this['editor'],!0x0,_0x518f9d);}['getDataWithDiscardedSuggestions'](_0x3ef222){return P(this['editor'],!0x1,_0x3ef222);}}class Ge extends _0x519785{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34d8b3){function _0x39796c(_0x28a945){return _0x28a945['map'](_0x51c1dd=>String['fromCharCode'](_0x51c1dd))['join']('');}super(_0x34d8b3),this['result']='end',_0x34d8b3[_0x39796c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39796c([0x76,0x69,0x65,0x77])][_0x39796c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39796c([0x61,0x75,0x74,0x6f]),_0x34d8b3[_0x39796c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x39796c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39796c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x39796c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x39796c([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function $e(_0x275bb9){return void 0x0!==_0x275bb9['getRootsAttributes'];}async function P(_0x5727c7,_0x223932,_0x36f074){const _0x4facf1=_0x4bb27a(_0x5727c7,p);_0x4facf1['plugins']['push'](d,Ge),_0x4facf1['rootsAttributes']=$e(_0x5727c7)?_0x5727c7['getRootsAttributes']():void 0x0;const _0x2f46ea=document['createDocumentFragment'](),_0x2ffb05=_0x5727c7['config']['get']('trackChangesData')['editorCreator'],_0x49bc0e=await _0x2ffb05(_0x4facf1,()=>function(_0x2c7abd){const _0x3da064=document['createElement']('div');return _0x2c7abd['appendChild'](_0x3da064),_0x3da064;}(_0x2f46ea));!function(_0x440e58,_0x112859){const _0x207472=_0x440e58['model']['document']['getRootNames']()['reduce']((_0x4b6ec0,_0x23de67)=>(_0x4b6ec0[_0x23de67]=_0x440e58['data']['get']({'rootName':_0x23de67}),_0x4b6ec0),{}),_0x6596d2=_0x440e58['plugins']['get']('Users')['users']['map'](_0x4803da=>({'id':_0x4803da['id'],'name':_0x4803da['name']})),_0x38d36d=_0x440e58['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bc42a=_0x440e58['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a2405=_0x112859['plugins']['get']('Users'),_0x45f35d=_0x112859['plugins']['get']('TrackChangesEditing'),_0x423ccc=_0x112859['plugins']['get']('CommentsRepository');for(const _0x1aa96e of _0x423ccc['getCommentThreads']())_0x1aa96e['remove']();for(const _0x28881c of _0x6596d2)_0x3a2405['getUser'](_0x28881c['id'])||_0x3a2405['addUser'](_0x28881c);_0x3a2405['me']||_0x3a2405['useAnonymousUser']();for(const _0x2a15b3 of _0x3bc42a)_0x423ccc['addCommentThread'](_0x2a15b3);for(const _0x37c0b5 of _0x38d36d)_0x45f35d['addSuggestionData'](_0x37c0b5);_0x112859['data']['set'](_0x207472);}(_0x5727c7,_0x49bc0e),_0x49bc0e['execute'](_0x223932?'acceptAllSuggestions':'discardAllSuggestions');const _0x18fc85=$e(_0x49bc0e)?_0x49bc0e['getFullData'](_0x36f074):_0x49bc0e['data']['get'](_0x36f074);return await _0x49bc0e['destroy'](),_0x18fc85;}class Me extends _0x33a1b7{['options'];constructor(_0x4237d7,_0x149bc8){super(_0x4237d7),this['options']=_0x149bc8,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'](_0x3d57dd,_0x2fc8f4){if(!this['element'])return;const _0x3b451f=[];for(const [_0x24e12a,_0xd1c16c]of _0x3d57dd){const _0x34b028=document['createElement']('div');_0x34b028['setAttribute']('data-ck-root-name',_0x24e12a),_0x34b028['className']=_0xd1c16c['classes']+'\x20ck-track-changes-preview__root-container',_0x34b028['innerHTML']=_0xd1c16c['content'],_0x3b451f['push'](_0x34b028);}_0x2fc8f4(this['element'],_0x3b451f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3ce43f{constructor(_0x101f9b){super(_0x101f9b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x317815=this['editor'],_0x1d18c0=_0x317815['locale'],_0x5e3a56=_0x317815['plugins']['get']('Dialog');let _0x37c009;const _0x3292ad=function(_0x59a0d8){const _0x1ff6f2={};if('editables'in _0x59a0d8['ui']['view']){for(const [_0x1e1eae,_0x57433d]of Object['entries'](_0x59a0d8['ui']['view']['editables']))_0x1ff6f2[_0x1e1eae]=_0x57433d['element'];}else _0x1ff6f2[_0x59a0d8['model']['document']['getRootNames']()[0x0]]=_0x59a0d8['ui']['view']['editable']['element'];return _0x1ff6f2;}(_0x317815),_0x3bce13=function(_0x43ea22){let _0x297683=0x0;for(const _0x16fc01 of Object['values'](_0x43ea22))_0x297683=Math['max'](_0x297683,_0x16fc01['getBoundingClientRect']()['width']);let _0x5ccfd=0x0;for(const _0x55f31d of Object['values'](_0x43ea22))_0x5ccfd+=_0x55f31d['getBoundingClientRect']()['height'];const _0x4d308c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x370648=Math['min'](_0x5ccfd,_0x4d308c);return{'width':_0x297683,'height':_0x370648};}(_0x3292ad);_0x5e3a56['show']({'id':'finalContentPreview','title':o(_0x1d18c0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1d18c0,{'dialogRects':_0x3bce13}),'onHide':()=>{_0x37c009['detachFromDom']();},'onShow':()=>{_0x317815['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x46c887=>{const _0x35ac9=this['_standarizeRootsData'](_0x46c887,_0x317815,_0x3292ad);_0x5e3a56['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x35ac9,_0x317815['config']['get']('trackChanges.preview.renderFunction'));}),_0x37c009=new _0x31f2fe(_0x1d18c0,[_0x5e3a56['view']]),_0x37c009['attachToDom'](),_0x37c009['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x317815['once']('destroy',()=>{_0x37c009['detachFromDom']();});const _0x5d9470=_0x5e3a56['view']['headerView']['class'];_0x5e3a56['view']['headerView']['class']=_0x5d9470?_0x5d9470+'\x20ck-reset_all':'ck-reset_all',_0x5e3a56['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5e3a56['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x17a638=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x97bd74=_0x17a638['previewMode'],_0x4289f0={};if('$labels'===_0x97bd74){for(const _0x20c51c of _0x17a638['getMergeFieldsIds']())_0x4289f0[_0x20c51c]=_0x17a638['getLabel'](_0x20c51c)||_0x20c51c;}else{const _0x2bb7a6='$defaultValues'===_0x97bd74?_0x17a638['getDefaultValues']():_0x17a638['getDataSetValues'](_0x97bd74,!0x0);for(const _0x2dc874 of Object['entries'](_0x2bb7a6)){const [_0x177277,_0x3f8085]=_0x2dc874;_0x4289f0[_0x177277]=null!==_0x3f8085?_0x3f8085:_0x17a638['getLabel'](_0x177277)||_0x177277;}}return{'mergeFieldsData':_0x4289f0};}['_standarizeRootsData'](_0x512c1c,_0xccfa8e,_0x3005ac){let _0x571308;if('string'==typeof _0x512c1c){const _0xb2d77c=_0xccfa8e['model']['document']['getRootNames']()[0x0];_0x571308={[_0xb2d77c]:_0x512c1c};}else _0x571308=_0x512c1c;const _0x6bdf01=this['_fixMediaEmbeds'](_0x571308,_0xccfa8e),_0x161e57=function(_0x168457,_0x21cc1d){for(const [_0x1483d5,_0x1a7a12]of _0x168457)_0x1a7a12['classes']=_0x21cc1d[_0x1483d5]['classList']['value']['replace']('ck-focused','');return _0x168457;}(this['_sortRoots'](_0xccfa8e)['reduce']((_0x86ef39,_0x26075e)=>(_0x86ef39['push']([_0x26075e,{'content':_0x6bdf01[_0x26075e],'classes':''}]),_0x86ef39),[]),_0x3005ac);return _0x161e57;}['_fixMediaEmbeds'](_0x1934c1,_0x1dd347){if(!_0x1dd347['plugins']['has']('MediaEmbedEditing'))return _0x1934c1;const _0xcb122a=_0x1dd347['plugins']['get']('MediaEmbedEditing');for(const [_0x51c34d,_0x47e169]of Object['entries'](_0x1934c1)){const _0xe6bf1d=document['createElement']('div');_0xe6bf1d['innerHTML']=_0x47e169,(_0xe6bf1d['querySelectorAll']('figure.media')['forEach'](_0x48ebd5=>{const _0x12672d=_0x48ebd5['querySelector']('oembed');if(_0x12672d){const _0x1c96e1=_0x12672d['getAttribute']('url');if(_0x1c96e1){const _0x45796b=_0xcb122a['registry']['getMediaViewElement'](new _0xdb61c(_0x1dd347['editing']['view']['document']),_0x1c96e1,{'elementName':'','renderForEditingView':!0x0}),_0x20e7c7=document['createElement']('div');_0x20e7c7['classList']['add']('ck-media__wrapper'),_0x45796b['render'](_0x20e7c7,_0x1dd347['editing']['view']['domConverter']),_0x12672d['replaceWith'](_0x20e7c7);}}}),_0x1934c1[_0x51c34d]=_0xe6bf1d['innerHTML']);}return _0x1934c1;}['_sortRoots'](_0x4c68de){if(!function(_0x15b83e){return void 0x0!==_0x15b83e['getRootsAttributes'];}(_0x4c68de))return _0x4c68de['model']['document']['getRootNames']();const _0x53e322=[],_0x10ad12=new Map();for(const _0x29eabc of _0x4c68de['model']['document']['getRootNames']()){const _0x5140d7=_0x4c68de['editing']['view']['getDomRoot'](_0x29eabc)['getClientRects']()['item'](0x0);_0x53e322['push'](_0x29eabc),_0x10ad12['set'](_0x29eabc,_0x5140d7);}return _0x53e322['sort']((_0x5affcf,_0x43d5f5)=>{const _0x63229c=_0x10ad12['get'](_0x5affcf),_0x59ea24=_0x10ad12['get'](_0x43d5f5);return _0x63229c['y']-_0x59ea24['y']||_0x63229c['x']-_0x59ea24['x'];}),_0x53e322;}}class He extends _0x519785{static get['requires'](){return[re,_0xd32161];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4118d3){super(_0x4118d3),_0x4118d3['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4118d3['config']['define']('trackChanges.preview.renderFunction',(_0x2a7950,_0x23a197)=>{for(const _0x352d02 of _0x23a197)_0x2a7950['appendChild'](_0x352d02);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|