@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240628.0 → 0.0.0-nightly-20240629.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 +3 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x53e28a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xbf935,_0x3ae7d6){super(),this['id']=_0x3ae7d6['id'],this['type']=_0x3ae7d6['type'],this['subType']=_0x3ae7d6['subType']||null,this['author']=_0x3ae7d6['author'],this['creator']=_0x3ae7d6['creator']||_0x3ae7d6['author'],this['isExternal']=Boolean(_0x3ae7d6['attributes']&&_0x3ae7d6['attributes']['@external']),this['data']=null,this['_model']=_0xbf935,this['_onAccept']=_0x3ae7d6['onAccept'],this['_onDiscard']=_0x3ae7d6['onDiscard'],this['_onAttributesChange']=_0x3ae7d6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3ae7d6['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 _0x1dc836=this;for(;_0x1dc836['previous'];)_0x1dc836=_0x1dc836['previous'];return _0x1dc836;}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'](_0x30b236){this['_markerNames']['add'](_0x30b236);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x389b45=>this['_model']['markers']['get'](_0x389b45))['filter'](_0x2962a7=>_0x2962a7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x11e382=>{for(const _0x2331da of this['getMarkers']())_0x11e382['removeMarker'](_0x2331da);}),this['_markerNames']['clear']();}['removeMarker'](_0x21e751){this['_model']['change'](_0xb0c680=>{_0xb0c680['removeMarker'](_0x21e751);}),this['_markerNames']['delete'](_0x21e751);}['addRange'](_0x98b7c4){const _0x42c88a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x42c88a),this['_model']['change'](_0x569766=>{_0x569766['addMarker'](_0x42c88a,{'range':_0x98b7c4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3ec4a9){for(const _0xb724e0 of this['getRanges']())if(_0xb724e0['isIntersecting'](_0x3ec4a9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xb1430c=>_0xb1430c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3b84be,_0x4124f2)=>[..._0x3b84be,..._0x4124f2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x56965f=this['getRanges']();if(0x1!=_0x56965f['length'])return null;const _0x1c2d35=_0x56965f[0x0],_0x59164f=_0x1c2d35['start']['nodeAfter'],_0x3a449e=_0x1c2d35['end']['nodeBefore'];return _0x59164f instanceof _0x2046b8?_0x59164f!=_0x3a449e?null:_0x59164f: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 _0x16857b=[];let _0x588698=this['head'];for(;_0x588698;)_0x16857b['push'](_0x588698),_0x588698=_0x588698['next'];return _0x16857b;}['setAttribute'](_0x23f03f,_0x36a184){const _0x45dc58=_0x393427(this['attributes']);_0x54d812(_0x45dc58,_0x23f03f,_0x36a184),_0x4cf88d(_0x45dc58,this['attributes'])||(this['attributes']=_0x45dc58,this['_onAttributesChange'](_0x45dc58));}['removeAttribute'](_0x11d4c3){const _0x1f6631=_0x393427(this['attributes']);_0x15d206(_0x1f6631,_0x11d4c3),_0x4cf88d(_0x1f6631,this['attributes'])||(this['attributes']=_0x1f6631,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 _0xd433a3()['substr'](0x1,0x5);}}function o(_0x41ff56,_0x2da310,_0x6cb2f7){const t=_0x41ff56['t'];switch(_0x2da310){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'*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',_0x6cb2f7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x6cb2f7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x6cb2f7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x6cb2f7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x6cb2f7);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',_0x6cb2f7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x6cb2f7);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x6cb2f7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x6cb2f7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x6cb2f7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x6cb2f7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x6cb2f7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x6cb2f7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x6cb2f7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x6cb2f7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x6cb2f7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x6cb2f7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x6cb2f7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x6cb2f7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x6cb2f7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x6cb2f7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x6cb2f7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x6cb2f7);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'},_0x6cb2f7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x6cb2f7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x6cb2f7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x6cb2f7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x6cb2f7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x6cb2f7);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'},_0x6cb2f7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x6cb2f7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x6cb2f7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x6cb2f7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x6cb2f7);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'},_0x6cb2f7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x6cb2f7);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'},_0x6cb2f7);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'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'},_0x6cb2f7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x6cb2f7);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'},_0x6cb2f7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x6cb2f7);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'},_0x6cb2f7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x6cb2f7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x6cb2f7);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x6cb2f7);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x6cb2f7);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x2da310;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5a8092,_0x17f4c1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5a8092,this['_locale']=_0x17f4c1;}['getDescriptions'](_0x3caa39){const _0x4ecbdf=[],_0x496998=new Set(),_0x18b0b2=new Set();for(let _0xcc5d2a=0x0;_0xcc5d2a<_0x3caa39['length'];_0xcc5d2a++){const _0xf1ba95=_0x3caa39[_0xcc5d2a];if(!_0xf1ba95['isInContent'])continue;const _0x4b648a=this['_handleCustomCallbackDescription'](_0xf1ba95);if(_0x4b648a){if(null!=_0xf1ba95['subType']){if(_0x496998['has'](_0xf1ba95['subType']))continue;_0x496998['add'](_0xf1ba95['subType']);}_0x4ecbdf['push'](_0x4b648a);}else{if('attribute'!=_0xf1ba95['type'])'insertion'!=_0xf1ba95['type']&&'deletion'!=_0xf1ba95['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4ecbdf,_0xf1ba95,_0x3caa39[_0xcc5d2a+0x1]);else{const _0x5ca2f7=_0xf1ba95['data']['key'];if(_0x18b0b2['has'](_0x5ca2f7))continue;_0x18b0b2['add'](_0xf1ba95['data']['key']),_0x5ca2f7==m?this['_handleRenameSuggestionDescription'](_0x4ecbdf,_0xf1ba95):this['_handleAttributeSuggestionDescription'](_0x4ecbdf,_0xf1ba95);}}}return this['_resolveDescriptionItems'](_0x4ecbdf);}['registerDescriptionCallback'](_0x37adc5){this['_customCallbacks']['push'](_0x37adc5);}['registerElementLabel'](_0x3614d2,_0x4aaa74,_0x2c2f9a=_0x3daf78['normal']){'function'==typeof _0x3614d2?_0x4f5cf9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3614d2,'label':_0x4aaa74,'priority':_0x2c2f9a}):this['_itemLabels']['set'](_0x3614d2,_0x4aaa74);}['registerAttributeLabel'](_0x18495f,_0x32e400){this['_attributeLabels']['set'](_0x18495f,_0x32e400);}['getItemLabel'](_0x29b455,_0xc68ca4=0x1){let _0x1cd8b8;for(const _0x59b933 of this['_itemLabelsCallbacks'])if(_0x59b933['matchingCallback'](_0x29b455)){_0x1cd8b8=_0x59b933['label'];break;}return _0x1cd8b8||(_0x1cd8b8=this['_itemLabels']['get'](_0x29b455['name'])),_0x1cd8b8?_0x1cd8b8(_0xc68ca4):0x1!==_0xc68ca4?_0xc68ca4+'\x20'+_0x29b455['name']+'s':''+_0x29b455['name'];}['_addDescriptionItems'](_0x5e0d4b,_0x2d419c){const _0x3a10f1=_0x2d419c['getFirstRange']()['getWalker'](),_0x163985='insertion'==_0x2d419c['type']?'add':'remove';for(const _0x1c88b0 of _0x3a10f1){const _0x458c9e=_0x1c88b0['item'],_0x203086=_0x5e0d4b[_0x5e0d4b['length']-0x1];if(_0x458c9e['is']('$textProxy'))_0x203086&&_0x203086['type']['indexOf']('Container')>-0x1&&_0x5e0d4b['pop'](),_0x203086&&'text'==_0x203086['type']?_0x203086[_0x163985]+=_0x458c9e['data']:_0x5e0d4b['push']({'type':'text','add':'add'==_0x163985?_0x458c9e['data']:'','remove':'remove'==_0x163985?_0x458c9e['data']:''});else{if(this['_schema']['isObject'](_0x458c9e)){const _0x345a8d=_0x458c9e;if(_0x203086&&_0x203086['type']['indexOf']('Container')>-0x1&&_0x5e0d4b['pop'](),'elementEnd'==_0x1c88b0['type'])continue;_0x203086&&_0x203086['type']==_0x163985+'Object'&&_0x203086['element']['name']==_0x345a8d['name']?_0x203086['quantity']++:_0x5e0d4b['push']({'type':_0x163985+'Object','element':_0x345a8d,'quantity':0x1}),_0x3a10f1['skip'](_0x2b03c2=>!('elementEnd'==_0x2b03c2['type']&&_0x2b03c2['item']==_0x458c9e));}else{if(this['_schema']['checkChild'](_0x458c9e,'$text')||_0x458c9e['is']('element','softBreak')){const _0xeda756=_0x458c9e;if('add'==_0x163985&&'elementStart'==_0x1c88b0['type']||'remove'==_0x163985&&'elementEnd'==_0x1c88b0['type'])continue;if(_0x203086&&-0x1==_0x203086['type']['indexOf']('Container')){'text'==_0x203086['type']&&(_0x203086[_0x163985]+='\x0a');continue;}let _0x1fb151;if(_0x1fb151='add'==_0x163985?_0xeda756['nextSibling']&&!this['_schema']['isObject'](_0xeda756['nextSibling'])?_0xeda756['nextSibling']:null:_0xeda756['previousSibling']&&!this['_schema']['isObject'](_0xeda756['previousSibling'])?_0xeda756['previousSibling']:null,_0xeda756['isEmpty']||_0x1fb151&&_0x1fb151['isEmpty']){const _0x207fc1=_0x1fb151&&_0x1fb151['isEmpty']?_0x1fb151:_0xeda756;_0x203086&&_0x203086['type']==_0x163985+'EmptyContainer'&&_0x203086['element']['name']==_0x207fc1['name']?_0x203086['quantity']++:_0x5e0d4b['push']({'type':_0x163985+'EmptyContainer','element':_0x207fc1,'quantity':0x1});}else _0x5e0d4b['push']({'type':_0x163985+'Container','element':_0xeda756});}}}}}['_resolveDescriptionItems'](_0x13c498){const _0x59813e=this['_locale'],_0x4398fc=[],_0x3f0b3f=[],_0x5355f3=[];for(const _0xd7bc9e of _0x13c498)switch(_0xd7bc9e['type']){case'text':if(_0xd7bc9e['add']=_0xd7bc9e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xd7bc9e['remove']=_0xd7bc9e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xd7bc9e['add']&&''!=_0xd7bc9e['remove']){_0x4398fc['push']({'type':'replace','content':o(_0x59813e,'REPLACE_TEXT',['\x22'+_0xd7bc9e['remove']+'\x22','\x22'+_0xd7bc9e['add']+'\x22'])});continue;}if(null!=_0xd7bc9e['add']['match'](/^ +$/)){_0x4398fc['push']({'type':'insertion','content':o(_0x59813e,'*Insert:*\x20%0',o(_0x59813e,'ELEMENT_SPACE',_0xd7bc9e['add']['length']))});continue;}if(null!=_0xd7bc9e['remove']['match'](/^ +$/)){_0x4398fc['push']({'type':'deletion','content':o(_0x59813e,'*Remove:*\x20%0',o(_0x59813e,'ELEMENT_SPACE',_0xd7bc9e['remove']['length']))});continue;}if(''!=_0xd7bc9e['add']){_0x4398fc['push']({'type':'insertion','content':o(_0x59813e,'*Insert:*\x20%0','\x22'+_0xd7bc9e['add']+'\x22')});continue;}_0x4398fc['push']({'type':'deletion','content':o(_0x59813e,'*Remove:*\x20%0','\x22'+_0xd7bc9e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4398fc['push']({'type':'insertion','content':o(_0x59813e,'*Insert:*\x20%0',this['getItemLabel'](_0xd7bc9e['element'],_0xd7bc9e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4398fc['push']({'type':'deletion','content':o(_0x59813e,'*Remove:*\x20%0',this['getItemLabel'](_0xd7bc9e['element'],_0xd7bc9e['quantity']))});continue;case'addContainer':_0x4398fc['push']({'type':'insertion','content':o(_0x59813e,'*Split:*\x20%0',this['getItemLabel'](_0xd7bc9e['element'],_0xd7bc9e['quantity']))});continue;case'removeContainer':_0x4398fc['push']({'type':'deletion','content':o(_0x59813e,'*Merge:*\x20%0',this['getItemLabel'](_0xd7bc9e['element'],_0xd7bc9e['quantity']))});continue;case'addFormat':_0x3f0b3f['push'](_0xd7bc9e['key']);continue;case'removeFormat':_0x5355f3['push'](_0xd7bc9e['key']);continue;default:_0x4398fc['push'](_0xd7bc9e);}if(_0x3f0b3f['length']){const _0x20a00e=_0x3f0b3f['map'](_0x33d23c=>this['_attributeLabels']['has'](_0x33d23c)?this['_attributeLabels']['get'](_0x33d23c):_0x33d23c)['join'](',\x20');_0x4398fc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x20a00e)});}if(_0x5355f3['length']){const _0x2309b8=_0x5355f3['map'](_0x40e51a=>this['_attributeLabels']['has'](_0x40e51a)?this['_attributeLabels']['get'](_0x40e51a):_0x40e51a)['join'](',\x20');_0x4398fc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2309b8)});}return _0x4398fc;}['_handleCustomCallbackDescription'](_0x5c9241){for(const _0x1c430f of this['_customCallbacks']){const _0xdf3f5e=_0x1c430f(_0x5c9241);if(_0xdf3f5e&&'type'in _0xdf3f5e)return _0xdf3f5e;}}['_handleAttributeSuggestionDescription'](_0x23eabf,_0x4eeb9b){const _0x22b499=_0x4eeb9b['data'],_0x4fe362=void 0x0===_0x22b499['newValue']?'removeFormat':'addFormat';_0x23eabf['push']({'type':_0x4fe362,'key':_0x22b499['key']});}['_handleRenameSuggestionDescription'](_0x142aac,_0x2e5efa){_0x142aac['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2e5efa['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1bf6c1,_0x185e16,_0x3ff503){if(this['_addDescriptionItems'](_0x1bf6c1,_0x185e16),_0x3ff503&&_0x3ff503['getFirstRange']()&&!_0x185e16['getFirstRange']()['end']['isEqual'](_0x3ff503['getFirstRange']()['start'])){const _0x41e7a5=_0x1bf6c1[_0x1bf6c1['length']-0x1],_0x423709='insertion'==_0x185e16['type']?'add':'remove';_0x41e7a5&&'text'==_0x41e7a5['type']&&(_0x41e7a5[_0x423709]+='\x0a');}}}class E extends _0x54406a{['afterInit'](){const _0x1375f6=this['editor'],_0x25e1d3=_0x1375f6['plugins']['get']('TrackChangesEditing');_0x1375f6['commands']['get']('showAIAssistant')&&_0x25e1d3['enableCommand']('showAIAssistant');}}class V extends _0x54406a{['afterInit'](){const _0x3a12e8=this['editor'],_0x47d9c0=_0x3a12e8['locale'];if(!_0x3a12e8['plugins']['has']('AlignmentEditing'))return;const _0x1d7066=_0x3a12e8['plugins']['get']('TrackChangesEditing');_0x1d7066['enableDefaultAttributesIntegration']('alignment'),_0x1d7066['registerBlockAttribute']('alignment'),_0x1d7066['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x47d9c0,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13d970=this['editor'],_0x22c748=_0x13d970['locale'];_0x13d970['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xebe547=>{if('formatBlock'!=_0xebe547['type'])return;const {data:_0x4bcf7e}=_0xebe547;if(_0x4bcf7e&&'alignment'==_0x4bcf7e['commandName']){const _0x429c91=_0x4bcf7e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x22c748,'*Format:*\x20%0',function(_0x23766a){switch(_0x23766a){case'left':return o(_0x22c748,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x22c748,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x22c748,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x22c748,'FORMAT_JUSTIFY_TEXT');}}(_0x429c91))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x54406a{['afterInit'](){const _0x54f16c=this['editor'],_0x22cc1a=_0x54f16c['plugins']['get']('TrackChangesEditing'),_0x229dde=_0x54f16c['locale'];for(const _0x1c0dab of ti){if(!_0x54f16c['plugins']['has'](_0x1c0dab))continue;const _0x5b7194=_0x1c0dab['slice'](0x0,-0x7)['toLowerCase'](),_0x296d61='FORMAT_'+_0x5b7194['toUpperCase']();_0x22cc1a['enableDefaultAttributesIntegration'](_0x5b7194),_0x22cc1a['registerInlineAttribute'](_0x5b7194),_0x22cc1a['descriptionFactory']['registerAttributeLabel'](_0x5b7194,o(_0x229dde,_0x296d61));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43d29c=this['editor'],_0x3235e0=_0x43d29c['locale'],_0x3af12d=_0x43d29c['plugins']['get']('TrackChangesEditing');function _0x3a39c5(_0x5494ea,_0x31f6b3){_0x3af12d['descriptionFactory']['registerDescriptionCallback'](_0x3397af=>{if('formatInline'!=_0x3397af['type'])return;const {data:_0x1342b2}=_0x3397af;return _0x1342b2&&_0x1342b2['commandName']===_0x5494ea?_0x1342b2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3235e0,'*Format:*\x20%0',_0x31f6b3)}:{'type':'format','content':o(_0x3235e0,'*Remove\x20format:*\x20%0',_0x31f6b3)}:void 0x0;});}_0x3a39c5('bold',o(_0x3235e0,'FORMAT_BOLD')),_0x3a39c5('italic',o(_0x3235e0,'FORMAT_ITALIC')),_0x3a39c5('underline',o(_0x3235e0,'FORMAT_UNDERLINE')),_0x3a39c5('code',o(_0x3235e0,'FORMAT_CODE')),_0x3a39c5('strikethrough',o(_0x3235e0,'FORMAT_STRIKETHROUGH')),_0x3a39c5('subscript',o(_0x3235e0,'FORMAT_SUBSCRIPT')),_0x3a39c5('superscript',o(_0x3235e0,'FORMAT_SUPERSCRIPT'));}}class O extends _0x54406a{['afterInit'](){const _0x55cf66=this['editor'],_0x2ab4e0=_0x55cf66['locale'];if(!_0x55cf66['plugins']['has']('BlockQuoteEditing'))return;const _0x19b79c=_0x55cf66['plugins']['get']('TrackChangesEditing'),_0x2b4f96=this['editor']['commands']['get']('blockQuote');_0x19b79c['enableCommand']('blockQuote',(_0x52dd43,_0x33215c={})=>{const _0x53b3f6=this['editor']['model']['document']['selection'],_0x38f09d=_0x33215c&&void 0x0!==_0x33215c['forceValue']?_0x33215c['forceValue']:!_0x2b4f96['value'];let _0x5b6d7c=[];if(_0x38f09d){const _0x146ddb=Array['from'](_0x53b3f6['getSelectedBlocks']())['filter'](_0x17c36f=>oo(_0x17c36f)||function(_0xd683d5,_0xe29a0d){const _0x436022=_0xe29a0d['checkChild'](_0xd683d5['parent'],'blockQuote'),_0xfe4146=_0xe29a0d['checkChild'](['$root','blockQuote'],_0xd683d5);return _0x436022&&_0xfe4146;}(_0x17c36f,this['editor']['model']['schema']));_0x5b6d7c=to(_0x146ddb,_0x55cf66['model']);}else{const _0xe80e9e=Array['from'](_0x53b3f6['getSelectedBlocks']())['filter'](_0x40ddb6=>oo(_0x40ddb6));_0x5b6d7c=to(_0xe80e9e,_0x55cf66['model']);}_0x55cf66['model']['change'](()=>{for(const _0x771adb of _0x5b6d7c)_0x19b79c['markBlockFormat'](_0x771adb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x38f09d}]});});}),_0x19b79c['descriptionFactory']['registerDescriptionCallback'](_0x2efcc=>{const {data:_0x5b58d6}=_0x2efcc;if(_0x5b58d6&&'blockQuote'==_0x5b58d6['commandName']){const _0x44f000=o(_0x2ab4e0,'ELEMENT_BLOCK_QUOTE');return _0x5b58d6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ab4e0,'*Set\x20format:*\x20%0',_0x44f000)}:{'type':'format','content':o(_0x2ab4e0,'*Remove\x20format:*\x20%0',_0x44f000)};}});}}function oo(_0x4453c9){return'blockQuote'==_0x4453c9['parent']['name'];}class G extends _0x54406a{['afterInit'](){const _0x2dbe41=this['editor'];_0x2dbe41['plugins']['has']('CaseChange')&&(_0x2dbe41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2dbe41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2dbe41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x54406a{['afterInit'](){const _0x34ed2f=this['editor'];_0x34ed2f['commands']['get']('ckbox')&&_0x34ed2f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x54406a{['afterInit'](){const _0x4a0ee0=this['editor'];if(!_0x4a0ee0['plugins']['has']('CodeBlock'))return;const _0x54e8c7=_0x4a0ee0['plugins']['get']('TrackChangesEditing'),_0x571a90=_0x4a0ee0['locale'],_0x596d19=_0x4a0ee0['config']['get']('codeBlock')['languages'],_0x5ef5ee=_0x4a0ee0['commands']['get']('codeBlock');_0x54e8c7['enableCommand']('indentCodeBlock'),_0x54e8c7['enableCommand']('outdentCodeBlock'),_0x54e8c7['enableCommand']('codeBlock',(_0x147f23,_0x5d3b7f={})=>{const _0x461a36=_0x4a0ee0['model'],_0x537d1b=_0x4a0ee0['model']['document']['selection'],_0x4e877f=_0x5d3b7f&&void 0x0!==_0x5d3b7f['forceValue']?_0x5d3b7f['forceValue']:!_0x5ef5ee['value'];let _0x3be77f;_0x5d3b7f['language']||(_0x5d3b7f['language']=_0x596d19[0x0]['language']),_0x3be77f=_0x4e877f?Array['from'](_0x537d1b['getSelectedBlocks']())['filter'](_0x34a89b=>eo(_0x34a89b)||function(_0x362326,_0x7a2c6f){if(_0x362326['is']('rootElement')||_0x7a2c6f['isLimit'](_0x362326))return!0x1;return _0x7a2c6f['checkChild'](_0x362326['parent'],'codeBlock');}(_0x34a89b,_0x461a36['schema'])):Array['from'](_0x537d1b['getSelectedBlocks']())['filter'](_0x150899=>eo(_0x150899));const _0x2e6f7d=to(_0x3be77f,_0x461a36);_0x461a36['change'](()=>{for(const _0xbb2bfb of _0x2e6f7d)_0x54e8c7['markBlockFormat'](_0xbb2bfb,{'commandName':'codeBlock','commandParams':[{..._0x5d3b7f,'forceValue':_0x4e877f}],'formatGroupId':'blockName'});});}),(_0x54e8c7['descriptionFactory']['registerElementLabel']('codeBlock',_0x557dec=>o(_0x571a90,'ELEMENT_CODE_BLOCK',_0x557dec)),_0x54e8c7['descriptionFactory']['registerDescriptionCallback'](_0x5440fe=>{if('formatBlock'!=_0x5440fe['type'])return;const _0x333dec=_0x571a90['t'],{data:_0x34a565}=_0x5440fe;if(!_0x34a565||'codeBlock'!=_0x34a565['commandName'])return;const _0x1a83fa=_0x34a565['commandParams'][0x0]['language'],_0x2660a0=_0x333dec(_0x596d19['find'](_0x5e475f=>_0x5e475f['language']===_0x1a83fa)['label'])['toLowerCase']();return _0x34a565['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x571a90,'*Set\x20format:*\x20%0',o(_0x571a90,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2660a0+')')}:{'type':'format','content':o(_0x571a90,'*Remove\x20format:*\x20%0',o(_0x571a90,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x420adf){return'codeBlock'==_0x420adf['name'];}class H extends _0x54406a{['afterInit'](){const _0x2ddf28=this['editor'];if(!_0x2ddf28['plugins']['has']('CommentsEditing'))return;_0x2ddf28['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x11c78f,_0x1b874c,_0x35d7e4){const _0x43da8a=[];for(const _0x12c890 of _0x1b874c['getItems']())_0x12c890['hasAttribute'](_0x11c78f)&&_0x43da8a['push'](_0x35d7e4['createRangeOn'](_0x12c890));return _0x43da8a;}function _e(_0x562f1b,_0x344a9a,{showActiveMarker:_0x48ca10=!0x0}={}){const _0x51e054=_0x562f1b['plugins']['get']('TrackChangesEditing');return(_0x37b8ec,_0x3269d5,_0x452951)=>{if(!_0x452951['consumable']['test'](_0x3269d5['markerRange'],_0x37b8ec['name']))return;const _0x55335d=_0x3269d5['markerRange']['getWalker'](),_0x1e2d55=_0x3269d5['markerRange']['start'],_0x44e8f5=_0x562f1b['model']['schema'];let _0x4b3a89=null,_0x51c32d=null,_0x841889=!0x1,_0x4757da=!0x1;for(const _0x3c306e of _0x55335d){const _0xa181f4=_0x3c306e['item'];_0x841889=_0x841889||_0x44e8f5['isContent'](_0xa181f4);const _0x875c7c=_0x452951['mapper']['toViewElement'](_0xa181f4);if(_0x875c7c&&_0x875c7c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c306e['type']&&(_0x44e8f5['isBlock'](_0xa181f4)&&!_0x44e8f5['isLimit'](_0xa181f4)&&(_0xa181f4['nextSibling']||_0x1e2d55['isAtEnd']?_0x4b3a89&&_0x4b3a89['parent']==_0xa181f4||(_0x4b3a89=_0xa181f4,_0x37e0b1(_0x3c306e['previousPosition']),_0x4757da=!0x0):_0x51c32d=_0x51c32d||_0x3c306e['previousPosition']));}function _0x37e0b1(_0x154332){const _0x4e1016=_0x452951['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x344a9a}),_0x580ad9=_0x452951['mapper']['toViewPosition'](_0x154332);_0x48ca10&&_0x51e054['activeMarkers']['includes'](_0x3269d5['markerName'])&&_0x452951['writer']['addClass']('ck-suggestion-marker--active',_0x4e1016),_0x452951['writer']['insert'](_0x580ad9,_0x4e1016),_0x452951['mapper']['bindElementToMarker'](_0x4e1016,_0x3269d5['markerName']);}_0x841889||_0x4757da||!_0x51c32d||_0x37e0b1(_0x51c32d);};}class q extends _0x54406a{static get['requires'](){return[_0x2889b8];}['init'](){const _0xd1ddd=this['editor'],_0x1edeaf=_0xd1ddd['plugins']['get']('TrackChangesEditing');_0x1edeaf['enableCommand']('delete');const _0x16e9df=_0xd1ddd['commands']['get']('deleteForward');_0x1edeaf['enableCommand']('deleteForward',(_0x48d3c2,_0x243b99={})=>{const _0xd89461=_0xd1ddd['model']['createSelection'](_0xd1ddd['model']['document']['selection']);_0xd89461['isCollapsed']&&_0xd1ddd['model']['modifySelection'](_0xd89461,{'direction':'forward','unit':_0x243b99['unit']});const _0x2173da=_0xd89461['getFirstRange'](),_0x2ee57c=_0x3b60af['fromRange'](_0x2173da);let _0x2f6d46;_0x48d3c2(_0x243b99),_0x2f6d46='$graveyard'==_0x2ee57c['root']['rootName']?_0xd1ddd['model']['createRange'](_0x2173da['start']):_0xd1ddd['model']['createRange'](_0x2ee57c['start'],_0x2ee57c['end']),_0x2ee57c['detach'](),_0xd1ddd['model']['enqueueChange'](_0x16e9df['buffer']['batch'],_0x381437=>{_0x16e9df['buffer']['lock'](),_0x381437['setSelection'](_0x381437['createRange'](_0x2f6d46['end'])),_0x16e9df['buffer']['unlock']();});}),_0xd1ddd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xd1ddd,'merge'),{'priority':'high'}),_0xd1ddd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1055aa,_0x43e750,_0x3cdced)=>{_0x3cdced['options']['showSuggestionHighlights']&&_e(_0xd1ddd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1055aa,_0x43e750,_0x3cdced);},{'priority':'high'}),_0xd1ddd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4a3e85,_0x4d0f9e,_0x3fa7ec)=>{const _0x412f82=_0x3fa7ec['mapper']['markerNameToElements'](_0x4d0f9e['markerName']);if(_0x412f82){for(const _0x3926e7 of _0x412f82)_0x3926e7['is']('uiElement')&&(_0x3fa7ec['mapper']['unbindElementFromMarkerName'](_0x3926e7,_0x4d0f9e['markerName']),_0x3fa7ec['writer']['remove'](_0x3926e7));}},{'priority':'high'});}}class z extends _0x54406a{['afterInit'](){const _0x2455ec=this['editor'];if(!_0x2455ec['plugins']['has']('ListEditing'))return;const _0x112227=_0x2455ec['locale'],_0x327905=_0x2455ec['plugins']['get']('TrackChangesEditing'),_0x559856=_0x2455ec['plugins']['has']('TodoListEditing'),_0x175ce0=!!_0x2455ec['config']['get']('list.multiBlock');function _0x4a24b0(_0x28b311){return{'type':'format','content':''+o(_0x112227,'*Set\x20format:*\x20%0',_0x28b311)};}function _0x3aaedd(_0x4e108e){return{'type':'format','content':''+o(_0x112227,'*Remove\x20format:*\x20%0',_0x4e108e)};}_0x327905['enableDefaultAttributesIntegration']('numberedList'),_0x327905['enableDefaultAttributesIntegration']('bulletedList'),_0x327905['enableDefaultAttributesIntegration']('customNumberedList'),_0x327905['enableDefaultAttributesIntegration']('customBulletedList'),_0x327905['enableDefaultAttributesIntegration']('indentList'),_0x327905['enableDefaultAttributesIntegration']('outdentList'),_0x327905['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x327905['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x327905['registerBlockAttribute']('listItemId'),_0x327905['registerBlockAttribute']('listType'),_0x327905['registerBlockAttribute']('listIndent'),_0x175ce0&&(_0x327905['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x327905['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x559856&&(_0x327905['enableDefaultAttributesIntegration']('todoList'),_0x327905['enableDefaultAttributesIntegration']('checkTodoList'),_0x327905['registerBlockAttribute']('todoListChecked'),_0x327905['descriptionFactory']['registerDescriptionCallback'](_0x34f1c3=>{const {data:_0x3c6eb1}=_0x34f1c3;if(_0x3c6eb1&&'todoListChecked'==_0x3c6eb1['key'])return{'type':'format','content':_0x3c6eb1['newValue']?o(_0x112227,'*Check\x20item*'):o(_0x112227,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x581551=>{if(_0x581551['batch']['isUndo'])return!0x1;let _0x2206d8=!0x1;const _0x32931a=_0x327905['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa639a6=>'todoListChecked'===_0x327905['_getAttributeKey'](_0xa639a6));for(const _0x56afdd of _0x32931a){'todo'!=_0x56afdd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x327905['_findSuggestions'](_0x56afdd['getFirstRange'](),'attribute')['find'](_0x5c7c6a=>'listType'===_0x327905['_getAttributeKey'](_0x5c7c6a['suggestion']))||(_0x581551['removeMarker'](_0x56afdd['getFirstMarker']()),_0x2206d8=!0x0));}return _0x2206d8;})),_0x327905['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x112227,'FORMAT_INDENT'));const _0x4088f8={'type':'format','content':''};_0x327905['descriptionFactory']['registerDescriptionCallback'](_0x45f5f2=>{const {data:_0x3e1291}=_0x45f5f2;if(!_0x3e1291||'listType'!=_0x3e1291['key'])return;let _0x5df7f8=_0x45f5f2['head'];for(;_0x5df7f8;){if(_0x5df7f8['data']&&(('listStyle'==_0x5df7f8['data']['key']||'listMarkerStyle'==_0x5df7f8['data']['key'])&&(_0x5df7f8['data']['newValue']&&'default'!=_0x5df7f8['data']['newValue']||'default'!=_0x5df7f8['data']['oldValue']&&!_0x3e1291['newValue'])||!_0x175ce0&&_0x5df7f8['data']['key']==m))return _0x4088f8;_0x5df7f8=_0x5df7f8['next'];}if(null==_0x3e1291['newValue'])switch(_0x3e1291['oldValue']){case'bulleted':return _0x3aaedd(o(_0x112227,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3aaedd(o(_0x112227,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3aaedd(o(_0x112227,'ELEMENT_TODO_LIST'));}switch(_0x3e1291['newValue']){case'bulleted':return _0x4a24b0(o(_0x112227,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4a24b0(o(_0x112227,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4a24b0(o(_0x112227,'ELEMENT_TODO_LIST'));}}),_0x327905['descriptionFactory']['registerDescriptionCallback'](_0x24367b=>{const {data:_0x25b5cc}=_0x24367b;if(_0x25b5cc&&'listIndent'==_0x25b5cc['key'])return null==_0x25b5cc['newValue']||null==_0x25b5cc['oldValue']&&0x0==_0x25b5cc['newValue']?_0x4088f8:void 0x0;}),_0x327905['descriptionFactory']['registerDescriptionCallback'](_0x569947=>{if('attribute'!=_0x569947['type'])return;const {data:_0x4930ea}=_0x569947;if(!_0x4930ea||'listItemId'!=_0x4930ea['key'])return;const _0x5c05d0=le(_0x569947);return'newValue'==_0x5c05d0?{'type':'format','content':o(_0x112227,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5c05d0?{'type':'format','content':o(_0x112227,'*Split:*\x20list\x20item')}:_0x4088f8;}),_0x2455ec['model']['document']['registerPostFixer'](_0x51b275=>this['listItemIdFixer'](_0x51b275)),_0x2455ec['model']['document']['registerPostFixer'](_0x13eff3=>this['noTrackChangesFixer'](_0x13eff3)),_0x2455ec['model']['document']['registerPostFixer'](_0x53510e=>this['assureChains'](_0x53510e)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3537a0){if(_0x3537a0['batch']['isUndo']||!_0x3537a0['batch']['isLocal'])return!0x1;let _0x153081=!0x1;const _0x282d82=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x302d6c=>_0x302d6c['data']&&'listItemId'==_0x302d6c['data']['key'])['filter'](_0xaf0fcf=>_0xaf0fcf['data']['newValue']&&_0xaf0fcf['data']['oldValue']);for(const _0xa11853 of _0x282d82)le(_0xa11853)||(_0x3537a0['removeMarker'](_0xa11853['getFirstMarker']()),_0x153081=!0x0);return _0x153081;}['noTrackChangesFixer'](_0x58969c){if(_0x58969c['batch']['isUndo']||!_0x58969c['batch']['isLocal'])return!0x1;const _0x75d387=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x75d387['trackChangesCommand']['value'])return!0x1;let _0x1b4284=!0x1;const _0x4b394a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xc77e84=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3daaeb=>'attribute'==_0x3daaeb['type'])['filter'](_0x48c89e=>_0x4b394a['includes'](_0x48c89e['attributeKey']));if(0x0==_0xc77e84['length'])return _0x1b4284;for(const _0x5f00aa of _0xc77e84){const _0x111e88=_0x75d387['_findSuggestions'](_0x5f00aa['range'],'attribute')['filter'](_0x59f299=>!_0x59f299['meta']['isNextTo'])['map'](_0x2895af=>_0x2895af['suggestion'])['filter'](_0xac960c=>{const _0x5949c8=_0x75d387['_getAttributeKey'](_0xac960c);return _0x4b394a['includes'](_0x5949c8);});if(_0x111e88['length']){for(const _0x5d7b63 of _0x111e88)_0x58969c['removeMarker'](_0x5d7b63['getFirstMarker']());_0x1b4284=!0x0;}}return _0x1b4284;}['assureChains'](_0x3fb2ea){if(_0x3fb2ea['batch']['isUndo']||!_0x3fb2ea['batch']['isLocal'])return!0x1;const _0x9a2011=this['editor']['plugins']['get']('TrackChangesEditing');let _0x4a65ae=!0x1;const _0x34424b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xb6c9cc of _0x9a2011['getSuggestions']({'skipNotAttached':!0x0})){const _0x142b46=_0x9a2011['_findSuggestions'](_0xb6c9cc['getFirstRange'](),'attribute')['map'](_0x4a8281=>_0x4a8281['suggestion'])['filter'](_0x17acd2=>_0x17acd2['data']&&_0x34424b['includes'](_0x17acd2['data']['key']));if(!_0x142b46['length'])continue;const _0x4f5e12=_0x142b46[0x0]['head']['attributes']['groupId'];if(!_0x142b46['every'](_0x340a3d=>_0x340a3d['attributes']['groupId']===_0x4f5e12)){for(const _0x2cdabd of _0x142b46)_0x19b804(_0x2cdabd,_0x4f5e12)&&(_0x4a65ae=!0x0);}}return _0x4a65ae;function _0x40e816(_0x4f2540,_0x3cfabc){for(const _0x56d9fb of _0x9a2011['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e1e68=>'attribute'==_0x3e1e68['type']&&_0x3e1e68['attributes']['groupId']==_0x4f2540))_0x56d9fb['setAttribute']('groupId',_0x3cfabc);}function _0x19b804(_0x4658d0,_0x446c6d){let _0x4fe7e3=_0x4658d0['head'],_0x317b53=!0x1;for(;_0x4fe7e3;)_0x4fe7e3['attributes']['groupId']!=_0x446c6d&&(_0x40e816(_0x4fe7e3['attributes']['groupId'],_0x446c6d),_0x4fe7e3['setAttribute']('groupId',_0x446c6d),_0x317b53=!0x0),_0x4fe7e3=_0x4fe7e3['next'];return _0x317b53;}}['_supportLegacySuggestions'](){const _0x143c1b=this['editor'],_0x548c06=_0x143c1b['locale'],_0x2310b7=_0x143c1b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2310b7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2d0280,_0x467b28){const _0x22efa1=[];for(let _0x2ce658 of _0x2d0280)_0x2ce658['start']['nodeAfter']===_0x2ce658['end']['parent']&&(_0x2ce658=_0x143c1b['model']['createRange'](_0x143c1b['model']['createPositionAt'](_0x2ce658['start']['nodeAfter'],0x0))),_0x22efa1['push'](_0x2ce658);_0x143c1b['model']['change'](_0x24bd0f=>{const _0x30082d=_0x143c1b['model']['document']['selection'],_0xa62d1e=Array['from'](_0x30082d['getRanges']())['map'](_0x1f332e=>_0x3b60af['fromRange'](_0x1f332e));_0x24bd0f['setSelection'](_0x22efa1),_0x143c1b['commands']['get'](_0x467b28['commandName'])['refresh'](),_0x467b28['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x143c1b['execute'](_0x467b28['commandName'],..._0x467b28['commandParams']),_0x24bd0f['setSelection'](_0xa62d1e);for(const _0x3e7994 of _0xa62d1e)_0x3e7994['detach']();});}),_0x2310b7['descriptionFactory']['registerElementLabel'](function(_0x794d6a){const _0x466e0e=!_0x143c1b['model']['schema']['isObject'](_0x794d6a),_0x52133c=_0x794d6a['previousSibling'],_0x287df4=_0x794d6a['nextSibling'],_0x556440=_0x794d6a['getAttribute']('listItemId'),_0x31722b=!_0x52133c||_0x52133c['getAttribute']('listItemId')!==_0x556440,_0x5546d3=!_0x287df4||_0x287df4['getAttribute']('listItemId')!==_0x556440;return _0x466e0e&&Boolean(_0x556440)&&_0x31722b&&_0x5546d3;},_0x27e71a=>o(_0x548c06,'ELEMENT_LIST_ITEM',_0x27e71a));}['_registerLegacyDescription'](){const _0xf112ca=this['editor'],_0x34af0e=_0xf112ca['locale'];function _0x1b80e2(_0x26e964){const _0x2bcd13=_0xf112ca['commands']['get']('bulletedList')['value'],_0x590d32=_0xf112ca['commands']['get']('numberedList')['value'];return'numberedList'===_0x26e964?_0x2bcd13:_0x590d32;}_0xf112ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a4d06){if('formatBlock'!=_0x4a4d06['type'])return;const {data:_0x42098f}=_0x4a4d06;if(!_0x42098f)return;let _0x4d1fa6,_0xa261e0,_0xa6de07,_0x5e6a13;switch(_0x42098f['commandName']){case'bulletedList':_0xa6de07=_0x42098f['commandParams'][0x0]['forceValue'],_0x5e6a13=_0x1b80e2(_0x42098f['commandName']),_0x4d1fa6=_0xa6de07?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5e6a13&&_0xf112ca['config']['get']('list.multiBlock')||(_0x4d1fa6='*Change\x20to:*\x20%0'),_0xa261e0={'type':'format','content':o(_0x34af0e,_0x4d1fa6,o(_0x34af0e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xa6de07=_0x42098f['commandParams'][0x0]['forceValue'],_0x5e6a13=_0x1b80e2(_0x42098f['commandName']),_0x4d1fa6=_0xa6de07?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5e6a13&&_0xf112ca['config']['get']('list.multiBlock')||(_0x4d1fa6='*Change\x20to:*\x20%0'),_0xa261e0={'type':'format','content':o(_0x34af0e,_0x4d1fa6,o(_0x34af0e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4d1fa6='*Indent:*\x20%0',_0xa261e0={'type':'format','content':o(_0x34af0e,_0x4d1fa6,o(_0x34af0e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4d1fa6=function(_0x431718){const _0x36bc35=_0x431718['getFirstRange']();let _0x28a936=_0x36bc35['start']['nodeAfter'];for(;_0x28a936&&_0x36bc35['containsItem'](_0x28a936);){if(_0x28a936['getAttribute']('listIndent')>0x0)return!0x1;_0x28a936=_0x28a936['nextSibling'];}return!0x0;}(_0x4a4d06)?o(_0x34af0e,'*Format:*\x20remove\x20from\x20%0',o(_0x34af0e,function(_0x1debf7){return'ELEMENT_'+_0x1debf7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a4d06))):o(_0x34af0e,'*Outdent:*\x20%0',o(_0x34af0e,'ELEMENT_LIST_ITEM')),_0xa261e0={'type':'format','content':_0x4d1fa6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x42098f['multipleBlocks']&&(_0x4d1fa6='*Merge:*\x20%0',_0xa261e0={'type':'deletion','content':o(_0x34af0e,_0x4d1fa6,o(_0x34af0e,'ELEMENT_LIST_ITEM'))});}return _0xa261e0;});}}function le(_0x1cdf25){let _0x32e0a4=_0x1cdf25['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x32e0a4;){const _0x53bc68=_0x32e0a4['getAttribute']('listItemId');if(!_0x53bc68)return!0x1;if(_0x53bc68==_0x1cdf25['data']['newValue'])return'newValue';if(_0x53bc68==_0x1cdf25['data']['oldValue'])return'oldValue';_0x32e0a4=_0x32e0a4['previousSibling'];}return!0x1;}class ue extends _0x54406a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x530504=this['editor']['config']['get']('list.properties'),_0x4e55de=this['editor']['plugins']['get']('TrackChangesEditing');_0x530504['styles']&&(_0x4e55de['enableDefaultAttributesIntegration']('listStyle'),_0x4e55de['registerBlockAttribute']('listStyle')),_0x530504['reversed']&&(_0x4e55de['enableDefaultAttributesIntegration']('listReversed'),_0x4e55de['registerBlockAttribute']('listReversed')),_0x530504['startIndex']&&(_0x4e55de['enableDefaultAttributesIntegration']('listStart'),_0x4e55de['registerBlockAttribute']('listStart'));const _0x41fb19={'type':'format','content':''};_0x4e55de['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x25beb8=this['editor']['locale'];_0x4e55de['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x25beb8,'FORMAT_LIST_REVERSED')),_0x4e55de['descriptionFactory']['registerDescriptionCallback'](_0x2cea09=>{const {data:_0x4491ae}=_0x2cea09;if(_0x4491ae&&'listReversed'==_0x4491ae['key'])return null==_0x4491ae['newValue']||0x0==_0x4491ae['newValue']&&null==_0x4491ae['oldValue']?_0x41fb19:void 0x0;}),_0x4e55de['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x25beb8,'FORMAT_LIST_START')),_0x4e55de['descriptionFactory']['registerDescriptionCallback'](_0x17dacd=>{const {data:_0xa1b82c}=_0x17dacd;if(_0xa1b82c&&'listStart'==_0xa1b82c['key'])return null==_0xa1b82c['newValue']||0x1==_0xa1b82c['newValue']&&null==_0xa1b82c['oldValue']?_0x41fb19:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2e3369=>{if(_0x2e3369['batch']['isUndo'])return!0x1;let _0x4cae6f=!0x1;const _0x2d59d5=_0x4e55de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd7f2ba=>{const _0x18777e=_0x4e55de['_getAttributeKey'](_0xd7f2ba);return'listStart'==_0x18777e||'listReversed'==_0x18777e;});for(const _0x3f4ec4 of _0x2d59d5){const _0x4baee4=_0x3f4ec4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4baee4||'customNumbered'==_0x4baee4)continue;_0x4e55de['_findSuggestions'](_0x3f4ec4['getFirstRange'](),'attribute')['find'](_0x4a65cd=>'listType'==_0x4e55de['_getAttributeKey'](_0x4a65cd['suggestion']))||(_0x2e3369['removeMarker'](_0x3f4ec4['getFirstMarker']()),_0x4cae6f=!0x0);}return _0x4cae6f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x8df8b){const _0x24a153=this['editor']['locale'],{data:_0x52493c}=_0x8df8b,_0x1843f1={'type':'format','content':''};if(!_0x52493c||'listStyle'!=_0x52493c['key'])return;if(!_0x52493c['oldValue'])return'default'==_0x52493c['newValue']?_0x1843f1:{'type':'format','content':''+o(_0x24a153,'*Set\x20format:*\x20%0',o(_0x24a153,this['_getTranslationKeyForListStyle'](_0x52493c['newValue'])))};if(!_0x52493c['newValue']){if('default'==_0x52493c['oldValue'])return _0x1843f1;let _0x312e22=_0x8df8b['head'];for(;_0x312e22;){if(_0x312e22['data']&&'listType'==_0x312e22['data']['key']&&_0x312e22['data']['newValue'])return _0x1843f1;_0x312e22=_0x312e22['next'];}return{'type':'format','content':''+o(_0x24a153,'*Remove\x20format:*\x20%0',o(_0x24a153,this['_getTranslationKeyForListStyle'](_0x52493c['oldValue'])))};}if('default'!=_0x52493c['newValue'])return{'type':'format','content':''+o(_0x24a153,'*Set\x20format:*\x20%0',o(_0x24a153,this['_getTranslationKeyForListStyle'](_0x52493c['newValue'])))};let _0x4e6313=_0x8df8b['head'];for(;_0x4e6313;){if(_0x4e6313['data']&&'listType'==_0x4e6313['data']['key']&&_0x4e6313['data']['newValue']&&_0x4e6313['data']['oldValue'])return _0x1843f1;_0x4e6313=_0x4e6313['next'];}return{'type':'format','content':o(_0x24a153,'*Set\x20format:*\x20%0',o(_0x24a153,'ELEMENT_'+_0x8df8b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2dcd7a=this['editor'],_0x44bf8c=_0x2dcd7a['locale'];_0x2dcd7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18ecbd=>{if('formatBlock'!=_0x18ecbd['type'])return;const {data:_0x4f67cc}=_0x18ecbd;if(!_0x4f67cc)return;let _0x10b84,_0x56adf4;switch(_0x4f67cc['commandName']){case'listStyle':_0x10b84='*Change\x20to:*\x20%0',_0x56adf4={'type':'format','content':o(_0x44bf8c,_0x10b84,o(_0x44bf8c,this['_getTranslationKeyForListStyle'](_0x4f67cc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10b84=_0x4f67cc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56adf4={'type':'format','content':o(_0x44bf8c,_0x10b84)};break;case'listStart':_0x10b84='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56adf4={'type':'format','content':o(_0x44bf8c,_0x10b84,_0x4f67cc['commandParams'][0x0]['startIndex'])};}return _0x56adf4;});}['_getTranslationKeyForListStyle'](_0x5b283a){return'ELEMENT_'+function(_0x1d1466){if(pe['includes'](_0x1d1466))return'bulleted';if(ye['includes'](_0x1d1466))return'numbered';return null;}(_0x5b283a)['toUpperCase']()+'_LIST_'+_0x5b283a['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x54406a{static get['requires'](){return[_0x5bbf61];}['init'](){const _0x14b837=this['editor'],_0x496846=_0x14b837['plugins']['get']('TrackChangesEditing'),_0x4793da=_0x14b837['commands']['get']('enter');_0x496846['enableCommand']('enter',()=>{_0x14b837['model']['change'](_0x7d3390=>{const _0x3c2ceb=_0x14b837['model']['document']['selection'],_0x5e02ba=_0x3c2ceb['getFirstPosition'](),_0x4b8c38=_0x3b60af['fromRange'](_0x3c2ceb['getFirstRange']());if(_0x4793da['enterBlock'](_0x7d3390)){const _0xfa2a9e=_0x14b837['model']['createPositionAt'](_0x5e02ba['parent']['nextSibling'],0x0),_0x3d1baf=_0x7d3390['createRange'](_0x5e02ba,_0xfa2a9e);_0x496846['markInsertion'](_0x3d1baf);}else _0x7d3390['setSelection'](_0x7d3390['createRange'](_0x4b8c38['end']));_0x4b8c38['detach'](),_0x4793da['fire']('afterExecute',{'writer':_0x7d3390});});}),_0x14b837['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x14b837,'split'),{'priority':'high'}),_0x14b837['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x17a429,_0x333835,_0x344b03)=>{const _0x1968c6=_0x344b03['mapper']['markerNameToElements'](_0x333835['markerName']);if(_0x1968c6){for(const _0x24208c of _0x1968c6)_0x24208c['hasClass']('ck-suggestion-marker-split')&&(_0x344b03['mapper']['unbindElementFromMarkerName'](_0x24208c,_0x333835['markerName']),_0x344b03['writer']['remove'](_0x24208c));}},{'priority':'high'}),_0x14b837['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13cdc3,_0x5eb717,_0x202733)=>{_0x202733['options']['showSuggestionHighlights']&&_e(_0x14b837,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x13cdc3,_0x5eb717,_0x202733);},{'priority':'high'});}}class J extends _0x54406a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x17bfd2=this['editor']['plugins']['get']('TrackChangesEditing');_0x17bfd2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x17bfd2['enableCommand']('findNext'),_0x17bfd2['enableCommand']('findPrevious'),_0x17bfd2['enableCommand']('replace'),_0x17bfd2['enableCommand']('replaceAll');}['handleFindCommand'](_0x398a4f,_0x39db77,_0x5d81a0={}){const _0x35094b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x398a4f(_0x3b1003=>('string'==typeof _0x39db77?_0x35094b['findByTextCallback'](_0x39db77,_0x5d81a0):_0x39db77)(_0x3b1003)['filter'](_0x43f82c=>!0x1===this['_isInDeletionRange'](_0x43f82c,_0x3b1003['item'])),_0x5d81a0);}['_isInDeletionRange'](_0x110957,_0xf6c2a6){const _0x4d2a29=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf6c2a6,_0x110957['start']),this['editor']['model']['createPositionAt'](_0xf6c2a6,_0x110957['end']));for(const _0x4e3267 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4d2a29['getIntersection'](_0x4e3267['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x54406a{['afterInit'](){const _0x1eb0f2=this['editor']['locale'],_0x4712ef=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x530376,commandName:_0x406921}of ro)this['editor']['plugins']['has'](_0x530376)&&(_0x4712ef['enableDefaultAttributesIntegration'](_0x406921),_0x4712ef['registerInlineAttribute'](_0x406921));_0x4712ef['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1eb0f2,'FORMAT_FONT_SIZE')),_0x4712ef['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1eb0f2,'FORMAT_FONT_FAMILY')),_0x4712ef['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1eb0f2,'FORMAT_FONT_COLOR')),_0x4712ef['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1eb0f2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35a82f=this['editor'],_0x4a1131=_0x35a82f['locale'];_0x35a82f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ac953=>{const _0x2f87ad=_0x4a1131['t'];if('formatInline'!=_0x5ac953['type'])return;const {data:_0x1eaa45}=_0x5ac953;if(null!=_0x1eaa45){if('fontSize'==_0x1eaa45['commandName']){const _0xc8b245=_0x1eaa45['commandParams'][0x0]['value'];if(_0xc8b245){const _0x119937=_0x2f87ad(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xacbaa0=>_0xacbaa0['model']==_0xc8b245)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4a1131,'*Set\x20font\x20size:*\x20%0',_0x119937)};}return{'type':'format','content':o(_0x4a1131,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1eaa45['commandName']){const _0x550e2a=_0x1eaa45['commandParams'][0x0]['value'];return _0x550e2a?{'type':'format','content':o(_0x4a1131,'*Set\x20font\x20family:*\x20%0',_0x550e2a)}:{'type':'format','content':o(_0x4a1131,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1eaa45['commandName']){const _0x1796c6=_0x1eaa45['commandParams'][0x0]['value'];if(_0x1796c6){const _0x16bd32=_0x3da799(this['editor']['config']['get']('fontColor.colors'))['find'](_0x12e7e3=>_0x12e7e3['model']==_0x1796c6);let _0x2900db=_0x1796c6,_0x132aab='';return _0x16bd32&&(_0x2900db=_0x16bd32['label'],_0x132aab=_0x2f87ad(_0x2900db)['toLowerCase']()),{'type':'format','content':o(_0x4a1131,'*Set\x20font\x20color:*\x20%0',_0x132aab)['trim'](),'color':{'value':_0x1796c6,'title':_0x132aab||_0x2900db}};}return{'type':'format','content':o(_0x4a1131,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1eaa45['commandName']){const _0x38b672=_0x1eaa45['commandParams'][0x0]['value'];if(_0x38b672){const _0x55c4b0=_0x3da799(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3d16aa=>_0x3d16aa['model']==_0x38b672);let _0x5213c6=_0x38b672,_0x14fad2='';return _0x55c4b0&&(_0x5213c6=_0x55c4b0['label'],_0x14fad2=_0x2f87ad(_0x5213c6)['toLowerCase']()),{'type':'format','content':o(_0x4a1131,'*Set\x20font\x20background\x20color:*\x20%0',_0x14fad2)['trim'](),'color':{'value':_0x38b672,'title':_0x14fad2||_0x5213c6}};}return{'type':'format','content':o(_0x4a1131,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x54406a{['afterInit'](){const _0xe09363=this['editor'],_0x455e1b=_0xe09363['plugins']['get']('TrackChangesEditing'),_0x38d0dc=_0xe09363['commands']['get']('copyFormat'),_0x370783=_0xe09363['commands']['get']('pasteFormat');_0x38d0dc&&_0x370783&&(_0x455e1b['enableDefaultAttributesIntegration']('pasteFormat'),_0x455e1b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x242f09=this['editor'],_0xe52f55=_0x242f09['locale'];_0x242f09['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x359326=>{if('formatBlock'!=_0x359326['type']&&'formatInline'!=_0x359326['type'])return;const {data:_0x123f4b}=_0x359326;if(_0x123f4b&&'pasteFormat'===_0x123f4b['commandName']){const _0x1f590c=[],_0x329edf=_0x123f4b['commandParams'][0x0];for(const [_0x3023de,_0x49207a]of Object['entries'](_0x329edf))_0x1f590c['push'](so(_0x242f09,_0x3023de,_0x49207a));return _0x1f590c['length']?{'type':'format','content':o(_0xe52f55,'*Set\x20format\x20to:*\x20%0',_0x1f590c['join'](',\x20'))}:{'type':'format','content':o(_0xe52f55,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1bc7cf,_0x498ea7,_0x3ff80f){const _0x30c4ba=_0x1bc7cf['locale']['t'],_0x3cfcfb=_0x498ea7['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c7625=_0x30c4ba(_0x3cfcfb['charAt'](0x0)['toUpperCase']()+_0x3cfcfb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3ff80f)return _0x3c7625;if('fontColor'===_0x498ea7||'fontBackgroundColor'===_0x498ea7){const _0x2ad30b=_0x3da799(_0x1bc7cf['config']['get']('fontColor.colors'))['find'](_0x44f2f3=>_0x44f2f3['model']==_0x3ff80f);return _0x3c7625+'\x20('+(_0x2ad30b?_0x30c4ba(_0x2ad30b['label'])['toLowerCase']():_0x3ff80f)+')';}if('fontSize'===_0x498ea7&&isNaN(parseFloat(_0x3ff80f))){const _0x188c4f=_0x1bc7cf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1bc7cf['config']['get']('fontSize.options'))['find'](_0x1887a6=>_0x1887a6['model']==_0x3ff80f);return _0x3c7625+'\x20('+(_0x188c4f?_0x30c4ba(_0x188c4f['title'])['toLowerCase']():_0x3ff80f)+')';}return _0x3c7625+'\x20('+_0x3ff80f+')';}class Y extends _0x54406a{['_headingOptions'];['afterInit'](){const _0x26e955=this['editor'];if(!_0x26e955['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x26e955['config']['get']('heading.options');const _0x1a3b72=_0x26e955['locale'],_0x5b57b7=_0x26e955['plugins']['get']('TrackChangesEditing');_0x5b57b7['enableDefaultAttributesIntegration']('heading');for(const _0x193d27 of this['_headingOptions'])'paragraph'!=_0x193d27['model']&&_0x5b57b7['descriptionFactory']['registerElementLabel'](_0x193d27['model'],_0x776659=>{const _0x4360b1=this['_getHeadingLevel'](_0x193d27['model']);return null!==_0x4360b1?_0x403f50(_0x776659,_0x4360b1):_0x3678b0(_0x776659,_0x193d27['title']);});function _0x403f50(_0x40cd10,_0x12020f){return o(_0x1a3b72,'ELEMENT_HEADING',[_0x40cd10,_0x12020f]);}function _0x3678b0(_0xf49960,_0x270ccd){return o(_0x1a3b72,'ELEMENT_HEADING_CUSTOM',[_0xf49960,_0x270ccd]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22eac4=this['editor'],_0x2845e5=_0x22eac4['locale'];function _0x31365b(_0x509564,_0x5c1ab0){return o(_0x2845e5,'ELEMENT_HEADING_CUSTOM',[_0x509564,_0x5c1ab0]);}_0x22eac4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d2677=>{if('formatBlock'!=_0x4d2677['type'])return;const {data:_0x397013}=_0x4d2677;if(_0x397013&&'heading'==_0x397013['commandName']){const _0x501c14=_0x397013['commandParams'][0x0]['value'],_0x4fd17c=this['_getHeadingLevel'](_0x501c14);if(null!==_0x4fd17c)return{'type':'format','content':o(_0x2845e5,'*Change\x20to:*\x20%0',(_0xd26065=0x1,_0x4a0e19=_0x4fd17c,o(_0x2845e5,'ELEMENT_HEADING',[_0xd26065,_0x4a0e19])))};const _0x27857e=this['_headingOptions']['find'](_0x9e00b7=>_0x9e00b7['model']===_0x501c14)['title'];return{'type':'format','content':o(_0x2845e5,'*Change\x20to:*\x20%0',_0x31365b(0x1,_0x27857e))};}var _0xd26065,_0x4a0e19;});}['_getHeadingLevel'](_0x28232e){const _0x548487=_0x28232e['match'](/^heading(\d+)/);if(_0x548487)return _0x548487[0x1];const _0x497624=this['_headingOptions']?.['find'](_0x7e3283=>_0x7e3283['model']==_0x28232e);if(_0x497624&&_0x497624['view']){const _0x2134e8=_0x497624['view'],_0x4fdd25=(_0x2134e8['name']??_0x2134e8)['match'](/^h(\d+)/);if(_0x4fdd25)return _0x4fdd25[0x1];}return null;}}class Z extends _0x54406a{['afterInit'](){const _0x53ff4c=this['editor'];if(!_0x53ff4c['plugins']['has']('HighlightEditing'))return;const _0x1fe993=_0x53ff4c['plugins']['get']('TrackChangesEditing'),_0x17478b=_0x53ff4c['locale'];_0x1fe993['enableDefaultAttributesIntegration']('highlight'),_0x1fe993['registerInlineAttribute']('highlight'),_0x1fe993['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x17478b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bd036=this['editor'],_0x1ba29e=_0x1bd036['locale'];_0x1bd036['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56ad25=>{if('formatInline'!=_0x56ad25['type'])return;const {data:_0x3e7064}=_0x56ad25;if(_0x3e7064&&'highlight'==_0x3e7064['commandName']){const _0x14d63c=_0x1ba29e['t'],_0x3f7864=_0x3e7064['commandParams'][0x0]['value'];if(_0x3f7864){const _0x9212cf=_0x1bd036['config']['get']('highlight.options')['find'](_0x4e3bc4=>_0x4e3bc4['model']==_0x3f7864),_0x48cc44=_0x14d63c(_0x9212cf['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ba29e,'*Set\x20highlight:*\x20%0',_0x48cc44),'color':{'value':_0x9212cf['color'],'title':_0x9212cf['title']}};}return{'type':'format','content':o(_0x1ba29e,'*Remove\x20highlight*',o(_0x1ba29e,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x54406a{['afterInit'](){const _0x2e8275=this['editor'];if(!_0x2e8275['plugins']['has']('HorizontalLineEditing'))return;_0x2e8275['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5d5a66=_0x2e8275['plugins']['get']('TrackChangesEditing'),_0x6b13ca=_0x2e8275['locale'];_0x5d5a66['descriptionFactory']['registerElementLabel']('horizontalLine',_0x21273b=>o(_0x6b13ca,'ELEMENT_HORIZONTAL_LINE',_0x21273b)),_0x2e8275['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x583902,{writer:_0x55bc39,options:_0x27e9af})=>{if(!_0x27e9af['showSuggestionHighlights'])return null;const _0x24e206=_0x55bc39['createContainerElement']('div'),_0x24163f=_0x55bc39['createEmptyElement']('hr');return _0x55bc39['addClass']('ck-horizontal-line',_0x24e206),_0x55bc39['insert'](_0x55bc39['createPositionAt'](_0x24e206,0x0),_0x24163f),_0x24e206;},'converterPriority':'high'});}}class et extends _0x54406a{['afterInit'](){const _0x292e94=this['editor'];if(!_0x292e94['plugins']['has']('HtmlEmbed'))return;const _0x444608=_0x292e94['plugins']['get']('TrackChangesEditing'),_0x277333=_0x292e94['locale'];_0x444608['descriptionFactory']['registerElementLabel']('rawHtml',_0xa02de1=>o(_0x277333,'ELEMENT_HTML_EMBED',_0xa02de1)),_0x444608['enableDefaultAttributesIntegration']('htmlEmbed'),_0x444608['registerBlockAttribute']('value'),_0x444608['descriptionFactory']['registerDescriptionCallback'](_0x1cb53a=>{if('attribute'!=_0x1cb53a['type'])return;const {data:_0x356893}=_0x1cb53a;if(_0x356893&&'value'==_0x356893['key']&&_0x1cb53a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1e448a=o(_0x277333,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x277333,'*Change\x20%0\x20content*',_0x1e448a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e9d75=this['editor'],_0xb91df3=_0x2e9d75['locale'];_0x2e9d75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f2cbf=>{if('formatBlock'!=_0x3f2cbf['type'])return;const {data:_0x3815fa}=_0x3f2cbf;if(_0x3815fa&&'htmlEmbed'==_0x3815fa['commandName']){const _0x4ef3dd=o(_0xb91df3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xb91df3,'*Change\x20%0\x20content*',_0x4ef3dd)};}});}}class it extends _0x54406a{['afterInit'](){const _0x46571a=this['editor'];if(!_0x46571a['plugins']['has']('ImageEditing'))return;const _0x4c44e4=_0x46571a['plugins']['get']('TrackChangesEditing'),_0x438ff8=_0x46571a['plugins']['get']('ImageUtils'),_0x15003=_0x46571a['locale'];_0x4c44e4['enableCommand']('insertImage'),_0x4c44e4['descriptionFactory']['registerElementLabel']('imageBlock',_0x533463=>o(_0x15003,'ELEMENT_IMAGE',_0x533463)),_0x4c44e4['descriptionFactory']['registerElementLabel']('imageInline',_0xad0165=>o(_0x15003,'ELEMENT_INLINE_IMAGE',_0xad0165)),_0x4c44e4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x15003,'ELEMENT_CAPTION')),_0x46571a['plugins']['has']('ImageUploadEditing')&&_0x4c44e4['enableCommand']('uploadImage'),_0x46571a['plugins']['has']('ImageBlockEditing')&&_0x46571a['plugins']['has']('ImageInlineEditing')&&(_0x4c44e4['enableCommand']('imageTypeInline',(_0x1aebd3,_0x4666f8)=>{const _0x3b6dca=_0x438ff8['getClosestSelectedImageElement'](_0x46571a['model']['document']['selection']);_0x46571a['model']['change'](()=>{_0x4c44e4['markBlockFormat'](_0x3b6dca,{'commandName':'imageTypeInline','commandParams':[_0x4666f8]},[],'convertBlockImageToInline');});}),_0x4c44e4['enableCommand']('imageTypeBlock',(_0x3d8d0a,_0x1bcb5a)=>{_0x46571a['model']['change'](_0x4940d5=>{let _0x402298=_0x438ff8['getClosestSelectedImageElement'](_0x46571a['model']['document']['selection']),_0x2996b9=_0x4940d5['createRangeOn'](_0x402298);const _0x1c46ea=_0x3877fd['fromPosition'](_0x2996b9['start'],'toPrevious'),_0x19e48e=_0x3877fd['fromPosition'](_0x2996b9['end'],'toNext');_0x4c44e4['forceDefaultExecution'](()=>_0x3d8d0a(_0x1bcb5a)),_0x402298=_0x438ff8['getClosestSelectedImageElement'](_0x46571a['model']['document']['selection']),_0x2996b9=_0x4940d5['createRangeOn'](_0x402298);const _0x4ef9d6=_0x4940d5['createRange'](_0x1c46ea,_0x19e48e);_0x1c46ea['detach'](),_0x19e48e['detach'](),_0x4c44e4['markBlockFormat'](_0x402298,{'commandName':'imageTypeInline','commandParams':[_0x1bcb5a]},[],'convertInlineImageToBlock'),_0x4ef9d6['start']['isBefore'](_0x2996b9['start'])&&_0x4c44e4['markInsertion'](_0x4940d5['createRange'](_0x4ef9d6['start'],_0x2996b9['start']),'convertInlineImageToBlock'),_0x2996b9['end']['isBefore'](_0x4ef9d6['end'])&&_0x4c44e4['markInsertion'](_0x4940d5['createRange'](_0x2996b9['end'],_0x4ef9d6['end']),'convertInlineImageToBlock');});}),_0x4c44e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4c44e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4c44e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4c44e4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4c44e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4c44e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x6d8e88])=>{const _0x538643=_0x4c44e4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x120599=_0x6d8e88['start'],_0x59c2e2=_0x6d8e88['end'];const _0x332981=_0x46571a['model']['schema']['getNearestSelectionRange'](_0x120599,'backward'),_0x4c4d5b=_0x46571a['model']['schema']['getNearestSelectionRange'](_0x59c2e2,'forward');_0x332981['isCollapsed']&&(_0x120599=_0x332981['start']),_0x4c4d5b['isCollapsed']&&(_0x59c2e2=_0x4c4d5b['end']),_0x538643([_0x46571a['model']['createRange'](_0x120599,_0x59c2e2)]);}),_0x4c44e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1ee6ae),_0x4c44e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1ee6ae)),_0x46571a['plugins']['has']('ImageCaptionEditing')&&(_0x4c44e4['enableCommand']('toggleImageCaption',(_0x3f427f,_0x4a962c)=>{const _0x5332e1=_0x46571a['plugins']['get']('ImageCaptionUtils');let _0x46ec85=_0x438ff8['getClosestSelectedImageElement'](_0x46571a['model']['document']['selection']),_0x18ed36=_0x5332e1['getCaptionFromImageModelElement'](_0x46ec85);_0x46571a['model']['change'](()=>{if(_0x18ed36)return void _0x4c44e4['markDeletion'](_0x46571a['model']['createRangeOn'](_0x18ed36));const _0x18a24d=_0x438ff8['isBlockImage'](_0x46ec85);_0x3f427f(_0x4a962c),_0x46ec85=_0x438ff8['getClosestSelectedImageElement'](_0x46571a['model']['document']['selection']),_0x18ed36=_0x5332e1['getCaptionFromImageModelElement'](_0x46ec85),_0x4c44e4['markInsertion'](_0x46571a['model']['createRangeOn'](_0x18ed36),_0x18a24d?null:'imageCaption');});}),_0x4c44e4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1ee6ae));const _0xf6efed=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4cb5a2(_0xfbafee,_0x2d341c){const _0x3b0d62=_0xf6efed['findIndex'](({type:_0x30a8a4,subType:_0x438c40})=>_0xfbafee['type']==_0x30a8a4&&_0xfbafee['subType']==_0x438c40),_0x3194b8=_0xf6efed['findIndex'](({type:_0x2015a6,subType:_0x32ab46})=>_0x2d341c['type']==_0x2015a6&&_0x2d341c['subType']==_0x32ab46);if(_0x3b0d62<0x0||_0x3194b8<0x0)return!0x1;const _0x3eb8cc=_0xfbafee['getFirstRange'](),_0x5504da=_0x2d341c['getFirstRange']();if((0x0==_0x3b0d62||0x1==_0x3b0d62)&&0x2==_0x3194b8&&_0x3eb8cc['isIntersecting'](_0x5504da))return!0x0;if(0x2==_0x3b0d62&&0x3==_0x3194b8){const _0x5cbbca=_0x4c44e4['_findSuggestions'](_0x3eb8cc,'insertion')['filter'](({suggestion:_0x547901,meta:_0x3d68d7})=>_0x3d68d7['isOwn']&&'convertInlineImageToBlock'==_0x547901['subType']);if(_0x5cbbca['length']>0x1&&_0x5504da['end']['isEqual'](_0x3eb8cc['start']))return!0x0;if(0x1==_0x5cbbca['length']&&(_0x3eb8cc['start']['isEqual'](_0x5504da['end'])||_0x3eb8cc['end']['isEqual'](_0x5504da['start'])))return!0x0;}if(0x3==_0x3b0d62&&0x3==_0x3194b8&&_0x3eb8cc['start']['isBefore'](_0x5504da['start'])){const _0x534da7=_0x3eb8cc['end']['nodeAfter'],_0x34e206=_0x5504da['start']['nodeBefore'];return _0x438ff8['isBlockImage'](_0x534da7)&&_0x534da7===_0x34e206;}return!0x1;}function _0x1ee6ae(_0xff821e,_0x5e1615){return _0x4cb5a2(_0xff821e,_0x5e1615)?[_0xff821e,_0x5e1615]:_0x4cb5a2(_0x5e1615,_0xff821e)?[_0x5e1615,_0xff821e]:null;}_0x46571a['plugins']['has']('ImageResize')&&(_0x4c44e4['enableDefaultAttributesIntegration']('resizeImage'),_0x4c44e4['registerBlockAttribute']('resizedWidth'),_0x4c44e4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x15003,'FORMAT_IMAGE_SIZE'))),_0x46571a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4c44e4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4c44e4['registerBlockAttribute']('alt')),_0x4c44e4['descriptionFactory']['registerDescriptionCallback'](_0x1e63ff=>{if(!!_0xf6efed['find'](({type:_0x14578c,subType:_0x954efb})=>_0x1e63ff['type']==_0x14578c&&_0x1e63ff['subType']==_0x954efb))return _0x1e63ff['previous']?{}:void 0x0;}),_0x4c44e4['descriptionFactory']['registerDescriptionCallback'](_0x54b4f7=>{if('insertion'==_0x54b4f7['type']||'deletion'==_0x54b4f7['type']){const _0x3940dc=_0x54b4f7['getContainedElement']();if(_0x3940dc&&_0x3940dc['is']('element','caption'))return{'type':'insertion'==_0x54b4f7['type']?'addObject':'removeObject','element':_0x3940dc,'quantity':0x1};}}),_0x4c44e4['descriptionFactory']['registerDescriptionCallback'](_0x269fbc=>'formatBlock'==_0x269fbc['type']&&'convertInlineImageToBlock'==_0x269fbc['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x269fbc['type']&&'convertBlockImageToInline'==_0x269fbc['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4c44e4['descriptionFactory']['registerDescriptionCallback'](_0x1d5550=>{if('attribute'!=_0x1d5550['type'])return;const {data:_0x3b9d51}=_0x1d5550;if(!_0x3b9d51||'alt'!=_0x3b9d51['key'])return;const _0x893ae3=_0x3b9d51['newValue'];return _0x893ae3?{'type':'format','content':o(_0x15003,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x893ae3+'\x22')}:{'type':'format','content':o(_0x15003,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x365e7e=this['editor'],_0xe14718=_0x365e7e['locale'];_0x365e7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ddfa=>{if('formatBlock'!=_0x41ddfa['type']&&'formatInline'!=_0x41ddfa['type'])return;const {data:_0x487b99}=_0x41ddfa;if(_0x487b99){if('imageTextAlternative'==_0x487b99['commandName']){const _0x4c61c8=_0x487b99['commandParams'][0x0]['newValue'];return _0x4c61c8?{'type':'format','content':o(_0xe14718,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c61c8+'\x22')}:{'type':'format','content':o(_0xe14718,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x487b99['commandName']){const _0x44d44f=_0x487b99['commandParams'][0x0]['width'];return _0x44d44f?{'type':'format','content':o(_0xe14718,'*Set\x20image\x20width:*\x20%0',_0x44d44f)}:{'type':'format','content':o(_0xe14718,'*Reset\x20image\x20width*')};}}});}}class st extends _0x54406a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x36b371=this['editor']['locale'],_0x37d3ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x37d3ec['enableDefaultAttributesIntegration']('replaceImageSource'),_0x37d3ec['registerBlockAttribute']('src'),_0x37d3ec['descriptionFactory']['registerDescriptionCallback'](_0x1cf3b2=>{if('attribute'!=_0x1cf3b2['type'])return;const {data:_0x44b2e6}=_0x1cf3b2;return _0x44b2e6&&'src'==_0x44b2e6['key']?_0x44b2e6['newValue']&&_0x44b2e6['oldValue']?{'type':'format','content':o(_0x36b371,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x82861f=this['editor']['plugins']['get']('TrackChangesEditing');_0x82861f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x82861f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x82861f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x82861f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c7d76=this['editor'],_0x123a63=_0x5c7d76['locale'];_0x5c7d76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a98ed=>{if('formatBlock'!=_0x3a98ed['type']&&'formatInline'!=_0x3a98ed['type'])return;const {data:_0x57669c}=_0x3a98ed;if(!_0x57669c||'replaceImageSource'!=_0x57669c['commandName'])return;return{'type':'format','content':o(_0x123a63,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x54406a{['afterInit'](){const _0x535fc2=this['editor'];if(!_0x535fc2['plugins']['has']('ImageStyleEditing'))return;const _0x12ee66=_0x535fc2['plugins']['get']('TrackChangesEditing'),_0x503691=_0x535fc2['plugins']['get']('ImageUtils'),_0x3be9e7={};_0x12ee66['enableCommand']('imageStyle',(_0x40374f,_0x5ef2e9)=>{const _0x2e5bb6=_0x535fc2['plugins']['get']('Users')['me'],_0x67ab1c=_0x535fc2['commands']['get']('imageStyle');let _0x2c3634=_0x503691['getClosestSelectedImageElement'](_0x535fc2['model']['document']['selection']),_0x275f63=_0x535fc2['model']['createRangeOn'](_0x2c3634),_0x5637d9=_0x67ab1c['value'];if(_0x5637d9==_0x5ef2e9['value'])return;const _0x384d02={'commandName':'imageStyle','commandParams':[_0x5ef2e9],'formatGroupId':_0xd433a3()};_0x535fc2['model']['change'](()=>{if(_0x12ee66['getSuggestions']()['filter'](_0x183ed0=>_0x183ed0['isInContent']&&_0x2e5bb6==_0x183ed0['author']&&('formatBlock'==_0x183ed0['type']||'formatInline'==_0x183ed0['type'])&&('imageStylePreApply'==_0x183ed0['subType']||'imageStylePostApply'==_0x183ed0['subType'])&&_0x183ed0['getFirstRange']()['isEqual'](_0x275f63))['forEach'](_0x4d1249=>_0x12ee66['discardSuggestion'](_0x4d1249['head'])),_0x2c3634=_0x503691['getClosestSelectedImageElement'](_0x535fc2['model']['document']['selection']),_0x275f63=_0x535fc2['model']['createRangeOn'](_0x2c3634),_0x67ab1c['refresh'](),_0x535fc2['commands']['get']('imageTypeInline')['refresh'](),_0x535fc2['commands']['get']('imageTypeBlock')['refresh'](),_0x5637d9=_0x67ab1c['value'],_0x5637d9!=_0x5ef2e9['value'])return _0x503691['isInlineImage'](_0x2c3634)&&_0x67ab1c['shouldConvertImageType'](_0x5ef2e9['value'],_0x2c3634)?(_0x40374f({..._0x5ef2e9,'setImageSizes':!0x1}),_0x2c3634=_0x503691['getClosestSelectedImageElement'](_0x535fc2['model']['document']['selection']),void _0x12ee66['markBlockFormat'](_0x2c3634,{..._0x384d02,'commandReversedParams':[{'value':_0x5637d9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x503691['isBlockImage'](_0x2c3634)?_0x12ee66['markBlockFormat'](_0x2c3634,_0x384d02,[],'imageStylePostApply'):_0x12ee66['markInlineFormat'](_0x275f63,_0x384d02,'imageStylePostApply'));});});for(const _0x354823 of _0x535fc2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3be9e7[_0x354823['name']]=_0x354823['title']['toLowerCase']();_0x12ee66['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x12ee66['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x12ee66['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x12ee66['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x497449])=>{_0x503691['setImageNaturalSizeAttributes'](_0x497449['getContainedElement']());}),_0x12ee66['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x45fa16,_0x4efcce)=>{_0x12ee66['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x45fa16,{'commandName':_0x4efcce['commandName'],'commandParams':_0x4efcce['commandReversedParams']});}),_0x12ee66['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5a0dc8,_0x428557){if(_0x27e03a(_0x5a0dc8,_0x428557))return[_0x5a0dc8,_0x428557];if(_0x27e03a(_0x428557,_0x5a0dc8))return[_0x428557,_0x5a0dc8];return null;});const _0x4310c4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x27e03a(_0x40ce88,_0x3390a3){const _0x4bccc6=_0x4310c4['findIndex'](({type:_0x180771,subType:_0xcc5f92})=>_0x40ce88['type']==_0x180771&&_0x40ce88['subType']==_0xcc5f92),_0x3ab241=_0x4310c4['findIndex'](({type:_0x105ae5,subType:_0x3dd0e5})=>_0x3390a3['type']==_0x105ae5&&_0x3390a3['subType']==_0x3dd0e5);if(_0x4bccc6<0x0||_0x3ab241<0x0)return!0x1;const _0x5b4473=_0x40ce88['getFirstRange'](),_0x5c191e=_0x3390a3['getFirstRange']();if((0x0==_0x4bccc6||0x1==_0x4bccc6)&&0x2==_0x3ab241&&_0x5b4473['isIntersecting'](_0x5c191e))return!0x0;if(0x2==_0x4bccc6&&0x3==_0x3ab241){const _0xae05de=_0x12ee66['_findSuggestions'](_0x5b4473,'insertion')['filter'](({suggestion:_0x2df115,meta:_0x28e4df})=>_0x28e4df['isOwn']&&'convertInlineImageToBlock'==_0x2df115['subType']);if(_0xae05de['length']>0x1&&_0x5c191e['end']['isEqual'](_0x5b4473['start']))return!0x0;if(0x1==_0xae05de['length']&&(_0x5b4473['start']['isEqual'](_0x5c191e['end'])||_0x5b4473['end']['isEqual'](_0x5c191e['start'])))return!0x0;}if(0x3==_0x4bccc6&&0x3==_0x3ab241&&_0x5b4473['start']['isBefore'](_0x5c191e['start'])){const _0x2daa3c=_0x5b4473['end']['nodeAfter'],_0x4d0f60=_0x5c191e['start']['nodeBefore'];return _0x503691['isBlockImage'](_0x2daa3c)&&_0x2daa3c===_0x4d0f60;}return!0x1;}_0x535fc2['model']['document']['registerPostFixer'](()=>{let _0x2272fb=!0x1;const _0x255021=Array['from'](_0x535fc2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20a7a3,data:_0x48db72}of _0x255021){const {group:_0x2e2327,type:_0x40bf21,subType:_0x33373e,id:_0x3812ba}=_0x12ee66['_splitMarkerName'](_0x20a7a3);if('suggestion'==_0x2e2327&&_0x12ee66['hasSuggestion'](_0x3812ba)){if('formatBlock'==_0x40bf21&&('imageStylePreApply'==_0x33373e||'imageStylePostApply'==_0x33373e)){const _0x1c06f4=_0x12ee66['getSuggestion'](_0x3812ba);if(_0x48db72['newRange']){const _0x1c6650=_0x1c06f4['getFirstRange']()['getContainedElement']();if(_0x503691['isBlockImage'](_0x1c6650))continue;_0x12ee66['discardSuggestion'](_0x1c06f4),_0x2272fb=!0x0;}}if('insertion'==_0x40bf21&&'imageCaption'==_0x33373e&&!_0x48db72['newRange']){const _0x3e5380=_0x12ee66['getSuggestion'](_0x3812ba);_0x3e5380['next']&&_0x3e5380['next']['isInContent']&&(_0x12ee66['discardSuggestion'](_0x3e5380['next']),_0x2272fb=!0x0);}}}return _0x2272fb;}),this['_registerLegacyDescription'](_0x3be9e7);}['_registerLegacyDescription'](_0x4842f9){const _0x1b2539=this['editor'],_0xfee101=_0x1b2539['locale'];_0x1b2539['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b8aea=>{if('formatBlock'!=_0x5b8aea['type']&&'formatInline'!=_0x5b8aea['type'])return;const {data:_0x300435}=_0x5b8aea;if(!_0x300435||'imageStyle'!=_0x300435['commandName'])return;const _0x2a1d54=_0x300435['commandParams'][0x0]['value'];return _0x517a61('side'===_0x2a1d54?o(_0xfee101,'FORMAT_SIDE_IMAGE'):_0x4842f9[_0x2a1d54]||_0x2a1d54);function _0x517a61(_0x4978ba){return{'type':'format','content':o(_0xfee101,'*Format:*\x20%0',_0x4978ba)};}});}}class ot extends _0x54406a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x281ec5){super(_0x281ec5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x29c29e=this['editor'],_0x2d64bb=_0x29c29e['commands']['get']('importWord'),_0x1532a5=_0x29c29e['commands']['get']('trackChanges');_0x2d64bb&&(_0x2d64bb['on']('execute',(_0x484560,[,_0x152d00])=>{this['_trackChangesValueDuringImport']=_0x1532a5['value'],_0x152d00['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2d64bb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2d64bb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1532a5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x29c29e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x48d25e,_0x45c789){const {suggestions:_0x126024}=_0x45c789,_0x13d35e=this['editor']['commands']['get']('trackChanges'),_0x1f0e8b=_0x13d35e['value'];this['_trackChangesValueDuringImport']!==_0x1f0e8b&&(_0x13d35e['execute'](),this['_trackChangesExecuted']=!0x0),_0x126024&&_0x126024['forEach'](({id:_0x2c672b,type:_0x4443ff,author:_0x41b1c7,created_at:_0x1658d9})=>{const _0x584b4d={'id':_0x2c672b,'type':_0x4443ff,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x41b1c7,'createdAt':_0x1658d9?new Date(_0x1658d9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x584b4d);});}}class rt extends _0x54406a{['afterInit'](){const _0x2f42e6=this['editor'],_0x4cf7d8=_0x2f42e6['plugins']['get']('TrackChangesEditing');if(_0x2f42e6['plugins']['has']('IndentEditing')&&(_0x4cf7d8['enableCommand']('indent'),_0x4cf7d8['enableCommand']('outdent')),_0x2f42e6['plugins']['has']('IndentBlock')){for(const _0x1bf09c of['indentBlock','outdentBlock'])_0x4cf7d8['enableDefaultAttributesIntegration'](_0x1bf09c);}const _0x9bdc4f=_0x2f42e6['locale'];_0x4cf7d8['registerBlockAttribute']('blockIndent'),_0x4cf7d8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x9bdc4f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f0807=this['editor'],_0x1522cc=_0x3f0807['locale'],_0x5d96c7=_0x3f0807['plugins']['get']('TrackChangesEditing');_0x5d96c7['descriptionFactory']['registerDescriptionCallback'](_0x17a335=>{if('formatBlock'!=_0x17a335['type'])return;const {data:_0x5c8780}=_0x17a335;if(!_0x5c8780)return;if('indentBlock'!=_0x5c8780['commandName']&&'outdentBlock'!=_0x5c8780['commandName'])return;const _0x5ef57e=_0x17a335['getItems']()[0x0],_0xd46a76=_0x5d96c7['descriptionFactory']['getItemLabel'](_0x5ef57e);return'indentBlock'==_0x5c8780['commandName']?{'type':'format','content':o(_0x1522cc,'*Indent:*\x20%0',_0xd46a76)}:'outdentBlock'==_0x5c8780['commandName']?{'type':'format','content':o(_0x1522cc,'*Outdent:*\x20%0',_0xd46a76)}:void 0x0;});}}class at extends _0x54406a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x54406a{['afterInit'](){const _0x20698a=this['editor'];if(!_0x20698a['plugins']['has']('LinkEditing'))return;const _0x11abfa=_0x20698a['plugins']['get']('TrackChangesEditing'),_0x12261a=_0x20698a['commands']['get']('link');_0x11abfa['enableDefaultAttributesIntegration']('link'),_0x11abfa['enableDefaultAttributesIntegration']('unlink'),_0x11abfa['registerInlineAttribute']('linkHref');for(const _0x167a14 of _0x12261a['manualDecorators'])_0x11abfa['registerInlineAttribute'](_0x167a14['id']),_0x11abfa['descriptionFactory']['registerAttributeLabel'](_0x167a14['id'],'link\x20('+_0x167a14['label']['toLowerCase']()+')');_0x11abfa['descriptionFactory']['registerDescriptionCallback'](_0x3bf847=>{if('attribute'!=_0x3bf847['type'])return;const {data:_0x52b219}=_0x3bf847;if(!_0x52b219||'linkHref'!=_0x52b219['key'])return;const _0x99efa5=_0x52b219['newValue'],_0xb14733=_0x20698a['locale'];return{'type':'format','content':null==_0x99efa5?o(_0xb14733,'*Remove\x20link*'):o(_0xb14733,'*Set\x20link:*\x20%0','\x22'+_0x99efa5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31c873=this['editor'],_0x21bc13=_0x31c873['locale'];_0x31c873['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cfd27=>{if('formatInline'!=_0x3cfd27['type'])return;const {data:_0x599d29}=_0x3cfd27;if(_0x599d29){if('link'==_0x599d29['commandName']){const _0x11091b=_0x599d29['commandParams'][0x0];return{'type':'format','content':o(_0x21bc13,'*Set\x20link:*\x20%0','\x22'+_0x11091b+'\x22')};}return'unlink'==_0x599d29['commandName']?{'type':'format','content':o(_0x21bc13,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x54406a{['afterInit'](){const _0x3bd582=this['editor'],_0x281dfd=_0x3bd582['locale'];if(!_0x3bd582['plugins']['has']('LegacyListEditing'))return;const _0x865fd8=_0x3bd582['plugins']['get']('TrackChangesEditing'),_0x1249fb=_0x3bd582['plugins']['has']('LegacyTodoListEditing');function _0x4de7de(_0x362e41){return()=>{const _0x2fefcb=_0x3bd582['model']['document']['selection'],_0x5d5fe8=_0x3bd582['commands']['get'](_0x362e41);if(_0x5d5fe8['value'])return void _0x3bd582['execute']('paragraph',{});const _0x476019=_0x362e41['slice'](0x0,-0x4),_0x2eceea=function(_0x27e82c,_0x38c7f9,_0xf8347a){let _0x1dc29a=Array['from'](_0x27e82c)['filter'](_0xd050d9=>function(_0x1b860d,_0x37823d){return _0x37823d['checkChild'](_0x1b860d['parent'],'listItem')&&!_0x37823d['isObject'](_0x1b860d);}(_0xd050d9,_0xf8347a));_0x1dc29a=_0x1dc29a['filter'](_0x267a6c=>!_0x267a6c['is']('element','listItem')||_0x267a6c['getAttribute']('listType')!=_0x38c7f9);const _0x14d1a2=new Set();for(const _0x1c0890 of _0x1dc29a)_0x1c0890['is']('element','listItem')?_0x14d1a2['add'](me(_0x1c0890)):_0x14d1a2['add'](_0x1c0890);return Array['from'](_0x14d1a2);}(_0x2fefcb['getSelectedBlocks'](),_0x476019,_0x3bd582['model']['schema']);_0x3bd582['model']['change'](()=>{for(const _0x40712b of _0x2eceea)_0x865fd8['markBlockFormat'](_0x40712b,{'commandName':_0x362e41,'commandParams':[{'forceValue':!_0x5d5fe8['value']}],'formatGroupId':'blockName'},fe(_0x40712b));});};}function _0x1d48e9(_0x31c26a){return()=>{const _0x357352=function(_0x25857c){let _0x2a3a81=Array['from'](_0x25857c);const _0x2df2fc=_0x2a3a81['findIndex'](_0x1bb6ba=>'listItem'!=_0x1bb6ba['name']);return _0x2df2fc>-0x1&&(_0x2a3a81=_0x2a3a81['slice'](0x0,_0x2df2fc)),_0x2a3a81;}(_0x3bd582['model']['document']['selection']['getSelectedBlocks']()),_0x22fb2e=_0x3bd582['model']['createRange'](_0x3bd582['model']['createPositionAt'](_0x357352[0x0],'before'),_0x3bd582['model']['createPositionAt'](_0x357352[_0x357352['length']-0x1],'end'));_0x3bd582['model']['change'](()=>{_0x865fd8['markBlockFormat'](_0x22fb2e,{'commandName':_0x31c26a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x31d896){const _0x45cb13=new Set();for(const _0x1cf01f of _0x31d896){let _0x3fbc1c=_0x1cf01f['nextSibling'];for(;_0x3fbc1c&&_0x3fbc1c['getAttribute']('listIndent')>_0x1cf01f['getAttribute']('listIndent');)_0x45cb13['add'](_0x3fbc1c),_0x3fbc1c=_0x3fbc1c['nextSibling'];}return Array['from'](_0x45cb13);}(_0x357352));});};}_0x865fd8['enableCommand']('numberedList',_0x4de7de('numberedList')),_0x865fd8['enableCommand']('bulletedList',_0x4de7de('bulletedList')),_0x1249fb&&_0x865fd8['enableCommand']('todoList',_0x4de7de('todoList')),_0x865fd8['enableCommand']('indentList',_0x1d48e9('indentList')),_0x865fd8['enableCommand']('outdentList',_0x1d48e9('outdentList')),_0x1249fb&&_0x865fd8['enableCommand']('checkTodoList',()=>{const _0x345f30=_0x3bd582['commands']['get']('checkTodoList'),_0x4196b6=Array['from'](_0x345f30['_selectedElements']);_0x4196b6['filter'](_0x9da871=>_0x9da871['getAttribute']('todoListChecked')!=_0x345f30['value']),_0x3bd582['model']['change'](()=>{for(const _0x20e4bc of _0x4196b6)_0x865fd8['markBlockFormat'](_0x20e4bc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x345f30['value']}]});});}),_0x865fd8['descriptionFactory']['registerElementLabel']('listItem',_0xdf1200=>o(_0x281dfd,'ELEMENT_LIST_ITEM',_0xdf1200)),_0x865fd8['descriptionFactory']['registerDescriptionCallback'](_0x5000db=>{if('formatBlock'!=_0x5000db['type']&&'formatInline'!=_0x5000db['type'])return;const {data:_0xb87200}=_0x5000db;if(_0xb87200){if('numberedList'==_0xb87200['commandName']||'bulletedList'==_0xb87200['commandName']||'todoList'==_0xb87200['commandName'])switch(_0xb87200['commandName']['replace']('List','')){case'bulleted':return _0x283ae6(o(_0x281dfd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x283ae6(o(_0x281dfd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x283ae6(o(_0x281dfd,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb87200['commandName'])return{'type':'format','content':o(_0x281dfd,'*Indent:*\x20%0',o(_0x281dfd,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb87200['commandName'])return{'type':'format','content':o(_0x281dfd,'*Outdent:*\x20%0',o(_0x281dfd,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb87200['commandName'])return _0xb87200['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x281dfd,'*Check\x20item*')}:{'type':'format','content':o(_0x281dfd,'*Uncheck\x20item*')};}function _0x283ae6(_0x2358e8){return{'type':'format','content':o(_0x281dfd,'*Change\x20to:*\x20%0',_0x2358e8)};}});}}function me(_0x2c4ae0){const _0x3b42fe=_0x2c4ae0['getAttribute']('listIndent');if(0x0==_0x3b42fe)return _0x2c4ae0;let _0x566a71=_0x2c4ae0;for(;_0x2c4ae0['previousSibling']&&_0x2c4ae0['previousSibling']['is']('element','listItem');){const _0xafc002=_0x2c4ae0['previousSibling']['getAttribute']('listIndent');if(_0xafc002==_0x3b42fe)_0x566a71=_0x2c4ae0['previousSibling'];else{if(_0xafc002<_0x3b42fe)break;}_0x2c4ae0=_0x2c4ae0['previousSibling'];}return _0x566a71;}function fe(_0x1f5f36){const _0x2b0cf7=[];if(_0x1f5f36['is']('element','listItem')&&_0x1f5f36['getAttribute']('listIndent')>0x0){let _0x391bf5=_0x1f5f36['nextSibling'];for(;_0x391bf5&&'listItem'==_0x391bf5['name']&&_0x391bf5['getAttribute']('listIndent')==_0x1f5f36['getAttribute']('listIndent');)_0x2b0cf7['push'](_0x391bf5),_0x391bf5=_0x391bf5['nextSibling'];}return _0x2b0cf7;}class K extends _0x54406a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4d8af9=this['editor']['config']['get']('list.properties'),_0xaa4e16=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d8af9['styles']&&_0xaa4e16['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4d8af9['reversed']&&_0xaa4e16['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4d8af9['startIndex']&&_0xaa4e16['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xaa4e16['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4003c7,_0xcca3f={}){const _0x5f29e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3984e5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5f29e5['markMultiRangeBlockFormat'](_0x3984e5,{'commandName':'listStyle','commandParams':[{'type':_0xcca3f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x499eae,_0x400e3d={}){const _0x8dd41e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c8118=this['_getSuggestionBlocks'](_0xfac0a4=>_0xfac0a4['is']('element','listItem')&&'numbered'===_0xfac0a4['getAttribute']('listType'));if(_0x3c8118['length']<0x1)return;const _0x47b66f=_0x3c8118['map'](_0x3d2ba4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d2ba4,'before'),this['editor']['model']['createPositionAt'](_0x3d2ba4,0x0)));this['editor']['model']['change'](()=>{_0x8dd41e['markMultiRangeBlockFormat'](_0x47b66f,{'commandName':'listReversed','commandParams':[{'reversed':_0x400e3d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x233742,_0x65db65={}){const _0x79f223=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1816be=this['_getSuggestionBlocks'](_0x28367b=>_0x28367b['is']('element','listItem')&&'numbered'===_0x28367b['getAttribute']('listType'));if(_0x1816be['length']<0x1)return;const _0x3c531f=_0x1816be['map'](_0x4632ce=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4632ce,'before'),this['editor']['model']['createPositionAt'](_0x4632ce,0x0)));this['editor']['model']['change'](()=>{_0x79f223['markMultiRangeBlockFormat'](_0x3c531f,{'commandName':'listStart','commandParams':[{'startIndex':_0x65db65['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xf49223){if('formatBlock'!=_0xf49223['type']&&'formatInline'!=_0xf49223['type'])return;const _0x2e5930=this['editor']['locale'],{data:_0x44f03d}=_0xf49223;if(!_0x44f03d)return;let _0x294f82,_0x2af66a;switch(_0x44f03d['commandName']){case'listStyle':_0x294f82='*Change\x20to:*\x20%0',_0x2af66a={'type':'format','content':o(_0x2e5930,_0x294f82,o(_0x2e5930,this['_getTranslationKeyForListStyle'](_0x44f03d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x294f82=_0x44f03d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2af66a={'type':'format','content':o(_0x2e5930,_0x294f82)};break;case'listStart':_0x294f82='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2af66a={'type':'format','content':o(_0x2e5930,_0x294f82,_0x44f03d['commandParams'][0x0]['startIndex'])};}return _0x2af66a;}['_getSuggestionBlocksForListStyle'](){const _0x2ab4e4=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f152f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5f152f[0x0]?.['is']('element','listItem')&&_0x5f152f['unshift'](..._0x2ab4e4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5f152f[_0x5f152f['length']-0x1]?.['is']('element','listItem')&&_0x5f152f['push'](..._0x2ab4e4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5f152f=[...new Set(_0x5f152f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5f152f=_0x5f152f['filter'](_0x327ce7=>_0x327ce7['is']('element','listItem'))),_0x5f152f;}['_getSuggestionBlocks'](_0x3d39d4){const _0x2c3e98=this['editor']['plugins']['get']('LegacyListUtils');let _0x340347=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3d39d4)['map'](_0x3d2925=>{const _0x4d5695=this['editor']['model']['createPositionAt'](_0x3d2925,0x0);return[..._0x2c3e98['getSiblingNodes'](_0x4d5695,'backward'),..._0x2c3e98['getSiblingNodes'](_0x4d5695,'forward')];})['flat']();return _0x340347=[...new Set(_0x340347)],_0x340347;}['_getTranslationKeyForListStyle'](_0x51d330){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x51d330)||'default')['toUpperCase']()+'_LIST_'+_0x51d330['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x54406a{['afterInit'](){const _0x194982=this['editor'];if(!_0x194982['plugins']['has']('MediaEmbedEditing'))return;const _0x7e5dd1=_0x194982['plugins']['get']('TrackChangesEditing'),_0x1bf802=_0x194982['locale'];_0x7e5dd1['enableCommand']('mediaEmbed'),_0x7e5dd1['descriptionFactory']['registerElementLabel']('media',_0x545296=>o(_0x1bf802,'ELEMENT_MEDIA',_0x545296)),_0x194982['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2698f8,{writer:_0x1c62f5,options:_0x41d3e5})=>{if(_0x41d3e5['showSuggestionHighlights'])return _0x1c62f5['createEmptyElement']('div');},'converterPriority':'high'}),_0x194982['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4ce5d2,_0x325743,_0xddf76b)=>{_0xddf76b['options']['showSuggestionHighlights']&&_0x4ce5d2['stop']();},{'priority':'high'});}}class gt extends _0x54406a{['afterInit'](){const _0x119903=this['editor'];_0x119903['plugins']['has']('MentionEditing')&&_0x119903['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x54406a{['afterInit'](){const _0x26055b=this['editor'],_0x612638=_0x26055b['plugins']['get']('TrackChangesEditing');_0x26055b['plugins']['has']('MultiLevelList')&&(_0x612638['enableDefaultAttributesIntegration']('multiLevelList'),_0x612638['registerBlockAttribute']('listMarkerStyle'),_0x612638['descriptionFactory']['registerDescriptionCallback'](_0x4c7e82=>this['handleDescriptions'](_0x4c7e82)));}['handleDescriptions'](_0x3a9958){const _0x5af885=this['editor']['locale'],{data:_0x1b1c96}=_0x3a9958,_0x335cef={'type':'format','content':''};if(_0x1b1c96&&'listMarkerStyle'==_0x1b1c96['key']){if(!_0x1b1c96['oldValue'])return{'type':'format','content':o(_0x5af885,'*Set\x20format:*\x20%0',o(_0x5af885,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1b1c96['newValue']+')'};if(!_0x1b1c96['newValue']){let _0x570061=_0x3a9958['head'];for(;_0x570061;){if(_0x570061['data']&&'listType'==_0x570061['data']['key']&&_0x570061['data']['newValue'])return _0x335cef;_0x570061=_0x570061['next'];}return{'type':'format','content':o(_0x5af885,'*Remove\x20format:*\x20%0',o(_0x5af885,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1b1c96['oldValue']+')'};}}}}class mt extends _0x54406a{['afterInit'](){const _0x4dc043=this['editor'];if(!_0x4dc043['plugins']['has']('PageBreakEditing'))return;_0x4dc043['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x43a6e1=_0x4dc043['plugins']['get']('TrackChangesEditing'),_0x8cdd07=_0x4dc043['locale'];_0x43a6e1['descriptionFactory']['registerElementLabel']('pageBreak',_0x4945e8=>o(_0x8cdd07,'ELEMENT_PAGE_BREAK',_0x4945e8));}}class dt extends _0x54406a{['afterInit'](){const _0x6fb057=this['editor'];if(!_0x6fb057['plugins']['has']('Paragraph'))return;const _0xa1a78e=_0x6fb057['locale'],_0x2e1747=_0x6fb057['plugins']['get']('TrackChangesEditing');_0x2e1747['descriptionFactory']['registerElementLabel']('paragraph',_0x9e94ed=>o(_0xa1a78e,'ELEMENT_PARAGRAPH',_0x9e94ed)),_0x2e1747['enableDefaultAttributesIntegration']('paragraph'),_0x2e1747['enableCommand']('insertParagraph'),_0x6fb057['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x6fb057),{'priority':'highest'}),_0x6fb057['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x22d55b,_0x53efa8,_0x1e7eb7)=>{_0x1e7eb7['options']['showSuggestionHighlights']&&nr(_0x6fb057,{'showActiveMarker':!0x1})(_0x22d55b,_0x53efa8,_0x1e7eb7);},{'priority':'highest'});const _0x5af92e=_0x2e1747['descriptionFactory'];_0x5af92e['registerDescriptionCallback'](_0x594fae=>{if('insertion'!==_0x594fae['type'])return;const {start:_0x6fcd18,end:_0x32c6e9}=_0x594fae['getFirstRange']();if(!_0x6fcd18['isTouching'](_0x32c6e9)||!_0x6fcd18['nodeAfter'])return;const _0x59d971=_0x6fb057['model']['schema'],_0x5c66e8=_0x6fcd18['nodeAfter'];return _0x59d971['isBlock'](_0x5c66e8)&&!_0x59d971['isLimit'](_0x5c66e8)&&_0x59d971['checkChild'](_0x5c66e8,'$text')?{'type':'insertion','content':o(_0xa1a78e,'*Insert:*\x20%0',_0x5af92e['getItemLabel'](_0x5c66e8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24efa6=this['editor'],_0x1337a7=_0x24efa6['locale'];_0x24efa6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49d474=>{if('formatBlock'!=_0x49d474['type'])return;const {data:_0xc05669}=_0x49d474;return _0xc05669&&'paragraph'==_0xc05669['commandName']?{'type':'format','content':o(_0x1337a7,'*Change\x20to:*\x20%0',o(_0x1337a7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x125fdd,{showActiveMarker:_0x3f308d=!0x0}={}){return(_0x43db10,_0x48e7ea,_0x4859f9)=>{const _0xce14f6=_0x125fdd['plugins']['get']('TrackChangesEditing'),_0x1676fc=_0x48e7ea['markerRange']['start'],_0x409a6f=_0x48e7ea['markerRange']['end'],_0x1febdb=_0x125fdd['model']['schema'];if(!_0x1676fc['isTouching'](_0x409a6f)||!_0x1676fc['nodeAfter'])return;const _0xa8dd39=_0x1676fc['nodeAfter'];if(_0x1febdb['isBlock'](_0xa8dd39)&&!_0x1febdb['isLimit'](_0xa8dd39)&&_0x1febdb['checkChild'](_0xa8dd39,'$text')){if(!_0x4859f9['consumable']['consume'](_0x48e7ea['markerRange'],_0x43db10['name']))return;const _0x275749=_0x4859f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x21b8e3=_0x4859f9['mapper']['toViewPosition'](_0x409a6f);_0x3f308d&&_0xce14f6['activeMarkers']['includes'](_0x48e7ea['markerName'])&&_0x4859f9['writer']['addClass']('ck-suggestion-marker--active',_0x275749),_0x4859f9['writer']['insert'](_0x21b8e3,_0x275749),_0x4859f9['mapper']['bindElementToMarker'](_0x275749,_0x48e7ea['markerName']);}};}class pt extends _0x54406a{['afterInit'](){const _0x314d02=this['editor'];if(!_0x314d02['plugins']['has']('RemoveFormatEditing'))return;_0x314d02['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x125bf0=this['editor'];_0x125bf0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fa0ce=>{if('formatBlock'!=_0x2fa0ce['type']&&'formatInline'!=_0x2fa0ce['type'])return;const {data:_0x7a44ce}=_0x2fa0ce;return _0x7a44ce&&'removeFormat'==_0x7a44ce['commandName']?{'type':'format','content':o(_0x125bf0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x54406a{['afterInit'](){const _0x524135=this['editor'];if(!_0x524135['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3d9ffa=_0x524135['plugins']['get']('TrackChangesEditing');_0x3d9ffa['enableCommand']('goToPreviousRestrictedEditingException'),_0x3d9ffa['enableCommand']('goToNextRestrictedEditingException');const _0x531ad4=_0x524135['plugins']['get']('RestrictedEditingModeEditing');_0x531ad4['enableCommand']('trackChanges'),_0x531ad4['enableCommand']('acceptSuggestion'),_0x531ad4['enableCommand']('discardSuggestion'),_0x531ad4['enableCommand']('acceptAllSuggestions'),_0x531ad4['enableCommand']('discardAllSuggestions'),_0x531ad4['enableCommand']('acceptSelectedSuggestions'),_0x531ad4['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x54406a{static get['requires'](){return[_0x3806c4];}['init'](){const _0x9ad02a=this['editor'],_0x175aec=_0x9ad02a['plugins']['get']('TrackChangesEditing');_0x175aec['enableCommand']('shiftEnter'),_0x9ad02a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x9ad02a),{'priority':'high'}),_0x9ad02a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x9ad02a),{'priority':'high'}),_0x9ad02a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27a36d,_0x17fea2,_0x4d3e7d)=>{_0x4d3e7d['options']['showSuggestionHighlights']&&de(_0x9ad02a,{'showActiveMarker':!0x1})(_0x27a36d,_0x17fea2,_0x4d3e7d);}),_0x175aec['descriptionFactory']['registerElementLabel']('softBreak',_0x5b1db2=>o(_0x9ad02a['locale'],'ELEMENT_LINE_BREAK',_0x5b1db2));}}function de(_0x555495,{showActiveMarker:_0x44f50f=!0x0}={}){return(_0x48c398,_0x5d0301,_0x1374ec)=>{const _0x290f1b=_0x555495['plugins']['get']('TrackChangesEditing');if(!_0x1374ec['consumable']['test'](_0x5d0301['markerRange'],_0x48c398['name']))return;const _0xce0301=_0x555495['model'];for(const _0x3843e9 of _0x5d0301['markerRange']['getItems']()){if(!_0x3843e9['is']('element','softBreak'))continue;const _0x4e629b='deletion'==_0x5d0301['markerName']['split'](':')[0x1]?'merge':'split',_0x2a80f4=_0x1374ec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e629b}),_0x2a2b50=_0x1374ec['mapper']['toViewPosition'](_0xce0301['createPositionBefore'](_0x3843e9));_0x44f50f&&_0x290f1b['activeMarkers']['includes'](_0x5d0301['markerName'])&&_0x1374ec['writer']['addClass']('ck-suggestion-marker--active',_0x2a80f4),_0x1374ec['writer']['insert'](_0x2a2b50,_0x2a80f4),_0x1374ec['mapper']['bindElementToMarker'](_0x2a80f4,_0x5d0301['markerName']);}};}class wt extends _0x54406a{['afterInit'](){const _0x149d7b=this['editor'],_0x10632b=_0x149d7b['model'],_0xb19a78=_0x149d7b['locale'];if(!_0x149d7b['plugins']['has']('StandardEditingModeEditing'))return;const _0x3fba37=_0x149d7b['plugins']['get']('TrackChangesEditing'),_0x41634f='restrictedEditingException',_0x28fc0e=_0x149d7b['commands']['get'](_0x41634f);_0x3fba37['enableCommand'](_0x41634f,(_0x819e2a,_0x2a9952={})=>{const _0x343ef5=_0x10632b['document']['selection'];if(_0x343ef5['isCollapsed'])return void _0x819e2a(_0x2a9952);const _0x242b83=void 0x0!==_0x2a9952['forceValue']?_0x2a9952['forceValue']:!_0x28fc0e['value'];_0x10632b['change'](()=>{const _0x15a31c=Array['from'](_0x343ef5['getRanges']());for(const _0xa15671 of _0x15a31c){const _0x4b414d=_0x242b83?[_0xa15671]:io(_0x41634f,_0xa15671,_0x10632b);for(const _0x346b0e of _0x4b414d)_0x3fba37['markInlineFormat'](_0x346b0e,{'commandName':_0x41634f,'commandParams':[{'forceValue':_0x242b83}]});}});}),_0x3fba37['descriptionFactory']['registerDescriptionCallback'](_0x4c98f3=>{if('formatBlock'!=_0x4c98f3['type']&&'formatInline'!=_0x4c98f3['type'])return;const {data:_0x202949}=_0x4c98f3;return _0x202949&&_0x202949['commandName']==_0x41634f?_0x202949['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb19a78,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb19a78,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x54406a{['afterInit'](){const _0x4f2048=this['editor'];if(!_0x4f2048['plugins']['has']('Style')||!_0x4f2048['plugins']['has']('DataSchema'))return;const _0xa88009=_0x4f2048['plugins']['get']('TrackChangesEditing'),_0x5319f6=_0x4f2048['locale'],_0x56b908=_0x4f2048['config']['get']('style')||{},_0x17995a=_0x4f2048['plugins']['get']('GeneralHtmlSupport'),_0x591b35=_0x4f2048['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4f2048['plugins']['get']('DataSchema'),_0x56b908['definitions']);_0xa88009['enableDefaultAttributesIntegration']('style');const _0x1c2573=new Set();for(const _0x3c35b0 of _0x591b35['block']){const _0x2318e9=_0x17995a['getGhsAttributeNameForElement'](_0x3c35b0['element']);_0x1c2573['add'](_0x2318e9);}const _0x36d66e=new Set();for(const _0x21a0cf of _0x591b35['inline']){const _0xc05da9=_0x17995a['getGhsAttributeNameForElement'](_0x21a0cf['element']);_0x36d66e['add'](_0xc05da9);for(const _0x170640 of _0x21a0cf['ghsAttributes'])_0x36d66e['add'](_0x170640);}for(const _0x24ae3e of _0x1c2573)_0xa88009['registerBlockAttribute'](_0x24ae3e),_0xa88009['descriptionFactory']['registerAttributeLabel'](_0x24ae3e,o(_0x5319f6,'FORMAT_STYLE'));for(const _0x3a266c of _0x36d66e)_0xa88009['registerInlineAttribute'](_0x3a266c),_0xa88009['descriptionFactory']['registerAttributeLabel'](_0x3a266c,o(_0x5319f6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dacb6=this['editor'],_0x160b38=_0x3dacb6['locale'];_0x3dacb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18e6ce=>{if('formatBlock'!=_0x18e6ce['type']&&'formatInline'!=_0x18e6ce['type'])return;const {data:_0x371b0a}=_0x18e6ce;return _0x371b0a&&'style'===_0x371b0a['commandName']?_0x371b0a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x160b38,'*Set\x20format:*\x20%0',_0x371b0a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x160b38,'*Remove\x20format:*\x20%0',_0x371b0a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x54406a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3001f3){super(_0x3001f3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x341cdc=this['editor'],_0xc76155=_0x341cdc['model']['document']['selection'];if(!_0x341cdc['plugins']['has']('TableEditing'))return;const _0x37d7a4=_0x341cdc['locale'],_0x4785c2=_0x341cdc['plugins']['get']('TrackChangesEditing'),_0x96496c=_0x341cdc['plugins']['get']('TableUtils');_0x4785c2['descriptionFactory']['registerElementLabel']('table',_0x5ecc3c=>o(_0x37d7a4,'ELEMENT_TABLE',_0x5ecc3c)),this['_setupColumnsRowsFixing'](),_0x4785c2['enableCommand']('insertTable'),_0x4785c2['enableCommand']('selectTableRow'),_0x4785c2['enableCommand']('selectTableColumn');for(const _0x3edbfb of['insertTableRowAbove','insertTableRowBelow']){const _0x2ad032=_0x341cdc['commands']['get'](_0x3edbfb);_0x4785c2['enableCommand'](_0x3edbfb,_0x580256=>{_0x341cdc['model']['change'](_0x398b66=>{_0x580256();const _0x14372='above'===_0x2ad032['order'],_0x18e2e8=_0x96496c['getSelectionAffectedTableCells'](_0xc76155),_0x4edc08=_0x96496c['getRowIndexes'](_0x18e2e8),_0xee88e9=_0x14372?_0x4edc08['first']-0x1:_0x4edc08['last']+0x1,_0x71693f=_0x18e2e8[0x0]['findAncestor']('table'),_0x1f196f=_0x96496c['createTableWalker'](_0x71693f,{'startRow':_0xee88e9,'endRow':_0xee88e9}),_0x8a895e=Array['from'](_0x1f196f)['map'](_0x50cb20=>_0x398b66['createRangeOn'](_0x50cb20['cell']));_0x4785c2['markMultiRangeInsertion'](_0x8a895e,'tableRow');});});}for(const _0x2e8647 of['insertTableColumnLeft','insertTableColumnRight']){const _0x58cc78=_0x341cdc['commands']['get'](_0x2e8647);_0x4785c2['enableCommand'](_0x2e8647,_0xc71393=>{_0x341cdc['model']['change'](_0x56ff58=>{_0xc71393();const _0x1d6bb7='left'===_0x58cc78['order'],_0x4242a9=_0x96496c['getSelectionAffectedTableCells'](_0xc76155),_0x4c6acb=_0x96496c['getColumnIndexes'](_0x4242a9),_0x3e922f=_0x1d6bb7?_0x4c6acb['first']-0x1:_0x4c6acb['last']+0x1,_0x19977a=_0x4242a9[0x0]['findAncestor']('table'),_0x5a870c=_0x96496c['createTableWalker'](_0x19977a,{'startRow':0x0,'column':_0x3e922f,'includeAllSlots':!0x1}),_0x404a89=Array['from'](_0x5a870c)['map'](_0x399383=>_0x56ff58['createRangeOn'](_0x399383['cell']));_0x4785c2['markMultiRangeInsertion'](_0x404a89,'tableColumn');});});}for(const _0x4115a1 of['removeTableRow','removeTableColumn']){const _0x3f8b3e=_0x4115a1['substr'](0xb),_0x357716=_0x3f8b3e['toLowerCase'](),_0x1c6a51=_0x357716['substr'](0x0,0x3)+'span',_0x22d110='table'+_0x3f8b3e,_0x15d161='min'+_0x3f8b3e,_0x152e47='max'+_0x3f8b3e;_0x4785c2['enableCommand'](_0x4115a1,()=>{_0x341cdc['model']['change'](_0x2a2417=>{const _0x1e67d6=_0x96496c['getSelectionAffectedTableCells'](_0xc76155),_0x272c28=_0x1e67d6[0x0]['findAncestor']('table');let _0x5301ea;if('removeTableRow'==_0x4115a1){const _0x34f463=_0x96496c['getRowIndexes'](_0x1e67d6);_0x5301ea={'startRow':_0x34f463['first'],'endRow':_0x34f463['last'],'includeAllSlots':!0x0};}else{const _0xe2e692=_0x96496c['getColumnIndexes'](_0x1e67d6);_0x5301ea={'startColumn':_0xe2e692['first'],'endColumn':_0xe2e692['last'],'includeAllSlots':!0x0};}const _0x4d9600=_0x96496c['createTableWalker'](_0x272c28,_0x5301ea),_0x1e4ef8=Array['from'](_0x4d9600)['map'](({cell:_0x28f949})=>_0x28f949),_0x50ea5a=Ee(_0x1e4ef8['filter'](_0x3bd27d=>_0x3bd27d['hasAttribute'](_0x1c6a51))),_0x55cb8f=Ee(_0x1e4ef8['filter'](_0x26459b=>!_0x26459b['hasAttribute'](_0x1c6a51)))['map'](_0x30ce62=>_0x2a2417['createRangeOn'](_0x30ce62)),_0x16d59b=_0x4785c2['markMultiRangeDeletion'](_0x55cb8f,_0x22d110);if(_0x16d59b&&('tableRow'==_0x16d59b['subType']||'tableColumn'==_0x16d59b['subType'])){const _0x229f41=this['_getSuggestionCoords'](_0x16d59b);for(const _0x2fad5e of _0x50ea5a){const _0x2b6e95=_0x2a2417['createRangeOn'](_0x2fad5e),_0x6051b8=_0x96496c['getCellLocation'](_0x2fad5e),_0x4a7f26=_0x2fad5e['getAttribute'](_0x1c6a51)-0x1,_0x30f9b4=_0x229f41[_0x15d161],_0x3bbc37=_0x229f41[_0x152e47];_0x30f9b4<=_0x6051b8[_0x357716]&&_0x6051b8[_0x357716]+_0x4a7f26<=_0x3bbc37&&_0x16d59b['addRange'](_0x2b6e95);}}});});}function _0x45c623(_0x325e65){const _0x5ba481=Array['from'](_0xc76155['getRanges']())['map'](_0x434408=>_0x3b60af['fromRange'](_0x434408));_0x341cdc['model']['change'](_0x1b3272=>{const _0x1e4c55=_0x1b3272['batch'];_0x325e65=_0x325e65['filter'](_0x3d0264=>'$graveyard'!=_0x3d0264['root']['rootName']),_0x1b3272['setSelection'](_0x325e65),_0x341cdc['commands']['get']('removeTableRow')['refresh'](),_0x341cdc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x341cdc['model']['enqueueChange'](()=>{_0x341cdc['model']['enqueueChange'](_0x1e4c55,_0x1f148a=>{const _0x444faf=_0x5ba481['filter'](_0x2c46ef=>'$graveyard'!=_0x2c46ef['root']['rootName']);_0x444faf['length']>0x0&&_0x1f148a['setSelection'](_0x444faf);for(const _0x5b0baf of _0x5ba481)_0x5b0baf['detach']();});});});}function _0x107c73(_0x5ad3a8){_0x341cdc['model']['change'](_0x554a32=>{const _0x182d27=Array['from'](_0xc76155['getRanges']())['map'](_0x235645=>_0x3b60af['fromRange'](_0x235645)),_0x3935ac=[];for(const _0x185ab8 of _0x5ad3a8)for(const _0x2cad39 of _0x185ab8['getItems']({'shallow':!0x0}))_0x3935ac['push'](_0x2cad39);for(const _0x2ca03e of _0x3935ac)'$graveyard'!=_0x2ca03e['root']['rootName']&&(_0x554a32['setSelection'](_0x554a32['createPositionAt'](_0x2ca03e,0x0)),_0x341cdc['commands']['get']('removeTableColumn')['refresh'](),_0x341cdc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3226df=_0x182d27['filter'](_0x2254d5=>'$graveyard'!=_0x2254d5['root']['rootName']);_0x3226df['length']>0x0&&_0x554a32['setSelection'](_0x3226df);for(const _0x4d5b07 of _0x182d27)_0x4d5b07['detach']();});}function _0x13c4be(_0x3ab1c6,_0x2e1f4f){return _0x2e1f4f['every'](_0x617742=>_0x3ab1c6['some'](_0x12e1e2=>_0x12e1e2['end']['isEqual'](_0x617742['start'])||_0x617742['end']['isEqual'](_0x12e1e2['start'])));}function _0x85dd6(_0x2cd1f3,_0x193a7e){return!_0x2cd1f3['some'](_0x5ac382=>_0x193a7e['some'](_0x583793=>_0x5ac382['isIntersecting'](_0x583793)))&&_0x2cd1f3['some'](_0x1950dd=>_0x193a7e['some'](_0x3e21d4=>_0x1950dd['end']['isTouching'](_0x3e21d4['start'])));}_0x341cdc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x328d48,_0x3e81e6,_0x1588f4)=>{if(!_0x1588f4['options']['showSuggestionHighlights'])return;const _0x145b87=_0x3e81e6['item'];if(!_0x145b87)return;const _0x261332=_0x1588f4['mapper']['toViewElement'](_0x145b87);function _0x267c4f(_0x35a541){return Array['isArray'](_0x35a541)?_0x35a541:[_0x35a541];}_0x261332&&'tableCell'===_0x145b87['name']&&_0x2dcf9e(_0x261332,_0x1588f4['writer'],(_0x1ece08,_0x41bf4d,_0x1d3a51)=>_0x1d3a51['addClass'](_0x267c4f(_0x41bf4d['classes']),_0x1ece08),(_0x5bcec3,_0x52b750,_0x45f51b)=>_0x45f51b['removeClass'](_0x267c4f(_0x52b750['classes']),_0x5bcec3));},{'priority':'highest'}),_0x4785c2['descriptionFactory']['registerDescriptionCallback'](_0x12e748=>{if('insertion'!=_0x12e748['type']&&'deletion'!=_0x12e748['type'])return;const _0x53767a=_0x12e748['getContainedElement']();if(null!=_0x53767a&&_0x53767a['is']('element','table')){if('insertion'==_0x12e748['type']){const _0x4f41a5=_0x12e748['getItems']()['filter'](_0x21a81f=>_0x21a81f['is']('$textProxy'))['map'](_0x2adc17=>_0x2adc17['data']);if(_0x4f41a5['length'])return{'type':'insertion','content':o(_0x37d7a4,'*Insert:*\x20%0',o(_0x37d7a4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f41a5['join']('\x20')+'\x22'))};}if('deletion'==_0x12e748['type']){const _0x7ca591=_0x12e748['getItems']()['filter'](_0x42b94b=>_0x42b94b['is']('$textProxy'))['map'](_0x2efb4b=>_0x2efb4b['data']);if(_0x7ca591['length'])return{'type':'deletion','content':o(_0x37d7a4,'*Remove:*\x20%0',o(_0x37d7a4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x7ca591['join']('\x20')+'\x22'))};}}}),_0x4785c2['descriptionFactory']['registerDescriptionCallback'](_0x5702c2=>{if('tableRow'==_0x5702c2['subType']){const _0x18a0ac=_0x5702c2['getItems']()['filter'](_0x51bb85=>_0x51bb85['is']('$textProxy'))['map'](_0x426131=>_0x426131['data']),_0x1eaeab=this['_getSuggestionCoords'](_0x5702c2),_0x28e3ba=_0x1eaeab['maxRow']-_0x1eaeab['minRow']+0x1;if('insertion'==_0x5702c2['type'])return _0x18a0ac['length']?{'type':'insertion','content':o(_0x37d7a4,'*Insert:*\x20%0',o(_0x37d7a4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x28e3ba,'\x22'+_0x18a0ac['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37d7a4,'*Insert:*\x20%0',o(_0x37d7a4,'ELEMENT_TABLE_ROW',_0x28e3ba))};if('deletion'==_0x5702c2['type'])return _0x18a0ac['length']?{'type':'deletion','content':o(_0x37d7a4,'*Remove:*\x20%0',o(_0x37d7a4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x28e3ba,'\x22'+_0x18a0ac['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37d7a4,'*Remove:*\x20%0',o(_0x37d7a4,'ELEMENT_TABLE_ROW',_0x28e3ba))};}if('tableColumn'==_0x5702c2['subType']){const _0x3308d5=_0x5702c2['getItems']()['filter'](_0x3611bd=>_0x3611bd['is']('$textProxy'))['map'](_0x28576c=>_0x28576c['data']),_0x255de2=this['_getSuggestionCoords'](_0x5702c2),_0x386a25=_0x255de2['maxColumn']-_0x255de2['minColumn']+0x1;if('insertion'==_0x5702c2['type'])return _0x3308d5['length']?{'type':'insertion','content':o(_0x37d7a4,'*Insert:*\x20%0',o(_0x37d7a4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x386a25,'\x22'+_0x3308d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37d7a4,'*Insert:*\x20%0',o(_0x37d7a4,'ELEMENT_TABLE_COLUMN',_0x386a25))};if('deletion'==_0x5702c2['type'])return _0x3308d5['length']?{'type':'deletion','content':o(_0x37d7a4,'*Remove:*\x20%0',o(_0x37d7a4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x386a25,'\x22'+_0x3308d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37d7a4,'*Remove:*\x20%0',o(_0x37d7a4,'ELEMENT_TABLE_COLUMN',_0x386a25))};}}),_0x4785c2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x45c623),_0x4785c2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x45c623),_0x4785c2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x107c73),_0x4785c2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x107c73),_0x4785c2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x13c4be),_0x4785c2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x13c4be),_0x4785c2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x85dd6),_0x4785c2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x85dd6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x20dd36=this['editor'],_0x18adbd=_0x20dd36['model']['document']['selection'];return(_0x297715,_0x1d181c)=>{_0x20dd36['model']['change'](_0xf62d5d=>{const {commandName:_0x6b6a97,commandParams:_0x2fe885}=_0x1d181c;let _0x26d81f=_0x297715[0x0]['end']['nodeBefore'];_0x2fe885&&_0x2fe885[0x0]&&!0x1===_0x2fe885[0x0]['forceValue']&&(_0x26d81f=_0x297715[0x0]['start']['nodeAfter']);const _0x21c5f5=_0xf62d5d['createRangeIn'](_0x26d81f);if('$graveyard'==_0x21c5f5['root']['rootName'])return;const _0x1dd6ea=Array['from'](_0x18adbd['getRanges']())['map'](_0x539c84=>_0x3b60af['fromRange'](_0x539c84));_0xf62d5d['setSelection'](_0x21c5f5),_0x20dd36['commands']['get'](_0x6b6a97)['refresh'](),_0x2fe885['push']({'forceDefaultExecution':!0x0}),_0x20dd36['execute'](_0x6b6a97,..._0x2fe885);const _0x8320bb=_0x1dd6ea['filter'](_0x22f70b=>'$graveyard'!=_0x22f70b['root']['rootName']);_0x8320bb['length']>0x0&&_0xf62d5d['setSelection'](_0x8320bb);for(const _0x2ed7fc of _0x1dd6ea)_0x2ed7fc['detach']();});};}['_getCoordsForCells'](_0x1e6509){const _0x5974ea=this['editor']['plugins']['get']('TableUtils');let _0x54afbd=Number['MAX_SAFE_INTEGER'],_0x588874=Number['MIN_SAFE_INTEGER'],_0x44d981=Number['MAX_SAFE_INTEGER'],_0x5a8127=Number['MIN_SAFE_INTEGER'];for(const _0x5b8768 of _0x1e6509){if('$graveyard'==_0x5b8768['root']['rootName'])continue;const {row:_0x34357d,column:_0x1e36de}=_0x5974ea['getCellLocation'](_0x5b8768),_0x13dc22=_0x5b8768['hasAttribute']('rowspan')?_0x5b8768['getAttribute']('rowspan')-0x1:0x0,_0x424a10=_0x5b8768['hasAttribute']('colspan')?_0x5b8768['getAttribute']('colspan')-0x1:0x0;_0x54afbd=_0x34357d<_0x54afbd?_0x34357d:_0x54afbd,_0x588874=_0x34357d+_0x13dc22>_0x588874?_0x34357d+_0x13dc22:_0x588874,_0x44d981=_0x1e36de<_0x44d981?_0x1e36de:_0x44d981,_0x5a8127=_0x1e36de+_0x424a10>_0x5a8127?_0x1e36de+_0x424a10:_0x5a8127;}return{'minRow':_0x54afbd,'maxRow':_0x588874,'minColumn':_0x44d981,'maxColumn':_0x5a8127};}['_setupColumnsRowsFixing'](){const _0x23ad8d=this['editor'],_0x551dce=_0x23ad8d['plugins']['get']('TrackChangesEditing'),_0x29689d=_0x23ad8d['plugins']['get']('TableUtils');_0x23ad8d['model']['document']['on']('change:data',()=>{const _0x465f55=Array['from'](_0x23ad8d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x531ac0,data:_0x2d719b}of _0x465f55){const {group:_0x255571,id:_0x18425f,subType:_0x299e85}=_0x551dce['_splitMarkerName'](_0x531ac0);if('suggestion'!=_0x255571)continue;if(null!=_0x2d719b['oldRange'])continue;const _0x3e0770=_0x551dce['getSuggestion'](_0x18425f);this['_tablePostFixingSubtypes']['includes'](_0x299e85)&&this['_tableSuggestions']['add'](_0x3e0770);}},{'priority':'low'});const _0x1cc6ce=(_0x2df78c,_0x221d9b)=>{let _0x36c993=!0x1;const _0x55e4a9=_0x221d9b['createRangeOn'](_0x2df78c),_0x345e4d=_0x2df78c['findAncestor']('table'),_0x301c99=_0x29689d['getCellLocation'](_0x2df78c);for(const _0x21bf28 of this['_tableSuggestions']){const _0x1f3a6e=_0x21bf28['subType'],_0xc727de=_0x1f3a6e['startsWith']('tablePaste'),_0x113fdd=_0x1f3a6e['substr'](_0xc727de?0xa:0x5),_0x362f35=_0x113fdd['toLowerCase'](),_0xc47783=_0x362f35['substr'](0x0,0x3)+'span',_0xc6678c='min'+_0x113fdd,_0x45fee0='max'+_0x113fdd;if(!_0x21bf28['isInContent'])continue;if(_0x345e4d!=_0x21bf28['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x21bf28['isIntersectingWithRange'](_0x55e4a9))continue;const _0x8b8f94=_0x2df78c['hasAttribute'](_0xc47783)?_0x2df78c['getAttribute'](_0xc47783)-0x1:0x0,_0x493f03=this['_getSuggestionCoords'](_0x21bf28),_0x179459=_0x493f03[_0xc6678c],_0x23ccd4=_0x493f03[_0x45fee0];_0x179459<=_0x301c99[_0x362f35]&&_0x301c99[_0x362f35]+_0x8b8f94<=_0x23ccd4&&(_0x21bf28['addRange'](_0x55e4a9),_0x36c993=!0x0);}return _0x36c993;};_0x23ad8d['model']['document']['registerPostFixer'](_0x4af9a8=>{let _0x3490c0=!0x1;for(const _0x702073 of _0x23ad8d['model']['document']['differ']['getChanges']())if('insert'==_0x702073['type']){if('tableRow'==_0x702073['name']){for(const _0x414cae of _0x702073['position']['nodeAfter']['getChildren']())_0x3490c0=_0x3490c0||_0x1cc6ce(_0x414cae,_0x4af9a8);}else'tableCell'==_0x702073['name']&&(_0x3490c0=_0x3490c0||_0x1cc6ce(_0x702073['position']['nodeAfter'],_0x4af9a8));}return _0x3490c0;});}['_getSuggestionCoords'](_0x3be95d){return this['_getCoordsForCells'](_0x3be95d['getRanges']()['map'](_0x372d87=>_0x372d87['start']['nodeAfter']));}}function Ee(_0x2b478e){return Array['from'](new Set(_0x2b478e)['values']());}class St extends _0x54406a{static get['requires'](){return[jt];}['afterInit'](){const _0x5952a9=this['editor'],_0x2d3845=_0x5952a9['model']['document']['selection'],_0x35de2f=_0x5952a9['locale'];if(!_0x5952a9['plugins']['has']('TableEditing'))return;const _0x5be7d0=_0x5952a9['plugins']['get']('TrackChangesEditing'),_0x4a76a5=_0x5952a9['plugins']['get']('TableUtils'),_0x467a72=_0x5952a9['plugins']['get'](jt);_0x467a72['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5be7d0['enableCommand']('mergeTableCells',()=>{const _0x23b55c=_0x4a76a5['getSelectionAffectedTableCells'](_0x5952a9['model']['document']['selection']);_0x5952a9['model']['change'](()=>{_0x5be7d0['markMultiRangeBlockFormat'](_0x23b55c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5952a9['commands']['get']('mergeTableCells')['on']('execute',(_0x47afae,_0x344bb3)=>{_0x5952a9['commands']['get']('trackChanges')['value']&&(_0x344bb3['length']>0x0&&_0x344bb3[_0x344bb3['length']-0x1]&&_0x344bb3[_0x344bb3['length']-0x1]['forceDefaultExecution']||_0x5be7d0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x47afae['stop']());},{'priority':'highest'});for(const _0x213105 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x339af0=_0x5952a9['commands']['get'](_0x213105);_0x5be7d0['enableCommand'](_0x213105,()=>{const _0x44075f=_0x5952a9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd6d4a6=>_0xd6d4a6['is']('element','tableCell')),_0x1f1395=_0x339af0['value'];_0x5952a9['model']['change'](()=>{_0x5be7d0['markMultiRangeBlockFormat']([_0x44075f,_0x1f1395],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x26e100 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x148c98=_0x5952a9['commands']['get'](_0x26e100);_0x5be7d0['enableCommand'](_0x26e100,()=>{const _0x3df340=_0x4a76a5['getSelectionAffectedTableCells'](_0x5952a9['model']['document']['selection'])[0x0],_0x3eb5eb=_0x3df340['findAncestor']('table'),{column:_0x546700,row:_0x6b7970}=_0x4a76a5['getCellLocation'](_0x3df340);let _0x39b107=[];if('horizontally'==_0x148c98['direction']){const _0x46abb3=_0x4a76a5['createTableWalker'](_0x3eb5eb,{'startRow':_0x6b7970,'endRow':_0x6b7970,'includeAllSlots':!0x0});_0x39b107=Array['from'](_0x46abb3)['map'](_0x4a4fc3=>_0x4a4fc3['cell']);}else{const _0x4edd87=_0x4a76a5['createTableWalker'](_0x3eb5eb,{'column':_0x546700,'includeAllSlots':!0x0});_0x39b107=Array['from'](_0x4edd87)['map'](_0x5df529=>_0x5df529['cell']);}_0x5952a9['model']['change'](_0x6909d5=>{_0x5be7d0['markBlockFormat'](_0x6909d5['createRangeOn'](_0x3df340),{'commandName':_0x26e100,'commandParams':[]},_0x39b107,_0x26e100);});});}_0x5be7d0['descriptionFactory']['registerDescriptionCallback'](_0x106a0f=>{if('formatBlock'!=_0x106a0f['type']&&'formatInline'!=_0x106a0f['type'])return;const {data:_0x142c58}=_0x106a0f;return _0x142c58&&'mergeTableCells'==_0x142c58['commandName']?{'type':'format','content':o(_0x35de2f,'*Merge\x20cells*')}:void 0x0;}),_0x5be7d0['descriptionFactory']['registerDescriptionCallback'](_0x337f46=>{if('formatBlock'!=_0x337f46['type']&&'formatInline'!=_0x337f46['type'])return;const {data:_0xb663d7}=_0x337f46;return _0xb663d7?'splitTableCellVertically'==_0xb663d7['commandName']?{'type':'format','content':o(_0x35de2f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb663d7['commandName']?{'type':'format','content':o(_0x35de2f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x17d8e1=_0x467a72['_acceptFormatSuggestionCallbackFactory']();for(const _0x3f31c2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5be7d0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f31c2,'accept',_0x17d8e1);for(const _0x169f1a of['splitTableCellVertically','splitTableCellHorizontally'])_0x5be7d0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x169f1a,'accept',_0x17d8e1);_0x5be7d0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x7b8b4e=>{_0x5952a9['model']['change'](_0x2f3e0f=>{const _0x5e089c=Array['from'](_0x2d3845['getRanges']())['map'](_0x1f2a13=>_0x3b60af['fromRange'](_0x1f2a13));_0x2f3e0f['setSelection'](_0x7b8b4e),_0x5952a9['commands']['get']('mergeTableCells')['refresh'](),_0x5952a9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x44fce4=_0x5e089c['filter'](_0x3a9f37=>'$graveyard'!=_0x3a9f37['root']['rootName']);_0x44fce4['length']>0x0&&_0x2f3e0f['setSelection'](_0x44fce4);for(const _0x4824df of _0x5e089c)_0x4824df['detach']();});});for(const _0x5c4df7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x52961a=_0x5952a9['commands']['get'](_0x5c4df7);_0x52961a['on']('set:isEnabled',(_0x1de171,_0x4f06af,_0xc05c8c)=>{if(_0xc05c8c){const _0x2de9cc=_0x5952a9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x70e87f=>_0x70e87f['is']('element','tableCell'));this['_areMergableCells'](_0x52961a['value'],_0x2de9cc)||(_0x1de171['return']=!0x1,_0x1de171['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x25a112=this['editor']['commands']['get']('mergeTableCells'),_0x121b39=this['editor']['plugins']['get']('TableUtils');if(!_0x25a112['isEnabled'])return!0x1;const _0xf2136b=_0x121b39['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3f7c95 of _0xf2136b)for(const _0x43dca7 of _0xf2136b)if(_0x3f7c95!=_0x43dca7&&!this['_areMergableCells'](_0x3f7c95,_0x43dca7))return!0x1;return!0x0;}['_areMergableCells'](_0x451c2d,_0x4c83cf){const _0x5074d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46e8ac=this['editor']['model']['createRangeOn'](_0x451c2d),_0x22cc73=this['editor']['model']['createRangeOn'](_0x4c83cf),_0xd16cb1=new Set(),_0x278b6f=new Set();for(const _0x39c0df of _0x5074d2['getSuggestions']())if(('insertion'==_0x39c0df['type']||'deletion'==_0x39c0df['type']||'mergeTableCells'==_0x39c0df['subType'])&&_0x39c0df['isInContent']){for(const _0x469047 of _0x39c0df['getRanges']())_0x469047['containsRange'](_0x46e8ac,!0x0)&&_0xd16cb1['add'](_0x39c0df['type']+':'+_0x39c0df['author']['id']),_0x469047['containsRange'](_0x22cc73,!0x0)&&_0x278b6f['add'](_0x39c0df['type']+':'+_0x39c0df['author']['id']);}if(_0xd16cb1['size']!=_0x278b6f['size'])return!0x1;for(const _0x50898b of _0xd16cb1)if(!_0x278b6f['has'](_0x50898b))return!0x1;return!0x0;}}class At extends _0x54406a{static get['requires'](){return[jt];}['afterInit'](){const _0x618204=this['editor'];if(!_0x618204['plugins']['has']('TableEditing'))return;const _0x3d73a5=_0x618204['locale'],_0x19f1f8=_0x618204['plugins']['get']('TrackChangesEditing');_0x19f1f8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x19f1f8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x19f1f8['registerBlockAttribute']('headingRows'),_0x19f1f8['registerBlockAttribute']('headingColumns'),_0x19f1f8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3d73a5,'FORMAT_HEADER_ROW')),_0x19f1f8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3d73a5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1fe97a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50333a=this['editor']['plugins']['get']('TableUtils'),_0x4a3b59=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x338c13({showActiveMarker:_0x42fa3e=!0x0,setDataAttribute:_0x4fd2bb=!0x0}={}){return(_0x4a8854,_0x502979,_0xd6674b)=>{const {type:_0x275c10,id:_0x268b6b}=_0x1fe97a['_splitMarkerName'](_0x502979['markerName']),_0x45140d=_0x1fe97a['getSuggestion'](_0x268b6b),_0xe16866=_0x45140d['data'];if('formatBlock'!=_0x45140d['type']||!_0xe16866||'setTableColumnHeader'!=_0xe16866['commandName'])return;if(_0x502979['item'])return void _0x4a8854['stop']();if(!_0xd6674b['consumable']['consume'](_0x502979['markerRange'],_0x4a8854['name']))return;const _0x2e2676=_0x502979['markerRange']['start']['nodeAfter'],_0x13c24c=_0x502979['markerRange']['end']['nodeBefore'],_0x1a5bb7=_0x2e2676['parent']['parent'],{column:_0x1d9ed3}=_0x50333a['getCellLocation'](_0x2e2676),{column:_0x5d4104}=_0x50333a['getCellLocation'](_0x13c24c);for(let _0x519590=_0x1d9ed3;_0x519590<=_0x5d4104;_0x519590++){const _0x396f33=_0x50333a['createTableWalker'](_0x1a5bb7,{'column':_0x519590,'includeAllSlots':!0x1});for(const _0xd32e37 of _0x396f33){const _0x35b885=_0xd32e37['cell'],_0x578c93=_0xd6674b['mapper']['toViewElement'](_0x35b885);_0xd6674b['writer']['addClass']('ck-suggestion-marker-'+_0x275c10,_0x578c93),_0x4fd2bb&&_0xd6674b['writer']['setAttribute']('data-suggestion',_0x268b6b,_0x578c93),_0xd6674b['mapper']['bindElementToMarker'](_0x578c93,_0x502979['markerName']),_0x42fa3e&&(_0x1fe97a['activeMarkers']['includes'](_0x502979['markerName'])?_0xd6674b['writer']['addClass']('ck-suggestion-marker--active',_0x578c93):_0xd6674b['writer']['removeClass']('ck-suggestion-marker--active',_0x578c93));}}};}_0x1fe97a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4a3b59),_0x1fe97a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4a3b59),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x338c13(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24b5ef,_0x9b401a,_0x17c143)=>{_0x17c143['options']['showSuggestionHighlights']&&_0x338c13({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x24b5ef,_0x9b401a,_0x17c143);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x384cf3,_0x4345ae,_0x1a6b53)=>{const {type:_0x5263a6,id:_0x6a7ef0}=_0x1fe97a['_splitMarkerName'](_0x4345ae['markerName']),_0x21bb1b=_0x1fe97a['getSuggestion'](_0x6a7ef0),_0x3a664f=_0x21bb1b['data'];if('formatBlock'!=_0x21bb1b['type']||!_0x3a664f||'setTableColumnHeader'!=_0x3a664f['commandName'])return;const _0x33f588=_0x1a6b53['mapper']['markerNameToElements'](_0x4345ae['markerName']);if(_0x33f588){for(const _0x1da1f2 of _0x33f588)_0x1a6b53['writer']['removeClass']('ck-suggestion-marker-'+_0x5263a6,_0x1da1f2),_0x1a6b53['writer']['removeClass']('ck-suggestion-marker--active',_0x1da1f2),_0x1a6b53['writer']['removeAttribute']('data-suggestion',_0x1da1f2),_0x1a6b53['mapper']['unbindElementFromMarkerName'](_0x1da1f2,_0x4345ae['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x473782=this['editor'],_0x4c40d5=_0x473782['locale'];function _0x2f4a1d(_0x50f74b){return{'type':'format','content':o(_0x4c40d5,'*Format:*\x20%0',_0x50f74b)};}_0x473782['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32146c=>{if('formatBlock'!=_0x32146c['type'])return;const {data:_0x19aec3}=_0x32146c;if(_0x19aec3){if('setTableRowHeader'==_0x19aec3['commandName']){const _0x17b562=_0x19aec3['commandParams'][0x0]['forceValue'];return _0x2f4a1d(o(_0x4c40d5,_0x17b562?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x19aec3['commandName']){const _0x481636=_0x19aec3['commandParams'][0x0]['forceValue'];return _0x2f4a1d(o(_0x4c40d5,_0x481636?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2205fd=>[_0x2205fd,null]));class It extends _0x54406a{static get['requires'](){return[jt];}['afterInit'](){const _0x414a87=this['editor'];if(!_0x414a87['plugins']['has']('TableClipboard'))return;const _0x4772be=_0x414a87['plugins']['get']('TrackChangesEditing'),_0x4d864d=_0x414a87['plugins']['get']('TableUtils'),_0x32fae1=_0x414a87['plugins']['get'](jt),_0x5f5252=_0x414a87['plugins']['get']('TableClipboard');_0x32fae1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x414a87['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x414a87['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x194655=null;_0x414a87['model']['on']('insertContent',(_0x13393a,_0x59c46c)=>{const [_0x51897f,_0x4a687c]=_0x59c46c,_0x396657=_0x59c46c[_0x59c46c['length']-0x1];_0x396657&&_0x396657['forceDefaultExecution']||_0x4772be['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x358522,_0x58609c,_0x28149b,_0x2b2d32,_0x5482d3){if(_0x58609c&&!_0x58609c['is']('documentSelection'))return!0x1;const _0x152b12=_0x5482d3['getTableIfOnlyTableInContent'](_0x358522,_0x28149b);if(!_0x152b12||!he(_0x152b12,void 0x0,_0x2b2d32))return!0x1;const _0x431bb1=_0x2b2d32['getSelectionAffectedTableCells'](_0x28149b['document']['selection']);if(!_0x431bb1['length'])return!0x1;const _0x5cb69d=_0x431bb1[0x0]['findAncestor']('table'),_0x18c296=_0x2b2d32['getRowIndexes'](_0x431bb1),_0x59d5b0=_0x2b2d32['getColumnIndexes'](_0x431bb1),_0x44e558={'startRow':_0x18c296['first'],'endRow':_0x18c296['last'],'startColumn':_0x59d5b0['first'],'endColumn':_0x59d5b0['last']};return 0x1==_0x431bb1['length']&&(_0x44e558['endRow']+=_0x2b2d32['getRows'](_0x152b12)-0x1,_0x44e558['endColumn']+=_0x2b2d32['getColumns'](_0x152b12)-0x1),he(_0x5cb69d,_0x44e558,_0x2b2d32);}(_0x51897f,_0x4a687c,_0x414a87['model'],_0x4d864d,_0x5f5252)&&(_0x13393a['stop'](),_0x194655={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x414a87['model']['change'](()=>{_0x414a87['model']['insertContent'](_0x59c46c[0x0],_0x59c46c[0x1],_0x59c46c[0x2],{'forceDefaultExecution':!0x0});const _0x43a40c=_0xd433a3(),{rowInsertionRanges:_0x586c66,columnInsertionRanges:_0x5d8987,insertionRanges:_0xa0da69,deletionRanges:_0x2b6747,cells:_0x47c6d3}=_0x194655;_0x586c66['length']&&_0x4772be['markMultiRangeInsertion'](_0x586c66,'tablePasteRow',{'tablePasteChainId':_0x43a40c}),_0x5d8987['length']&&_0x4772be['markMultiRangeInsertion'](_0x5d8987,'tablePasteColumn',{'tablePasteChainId':_0x43a40c}),_0xa0da69['length']&&(_0x4772be['markMultiRangeInsertion'](_0xa0da69,'tablePaste',{'tablePasteChainId':_0x43a40c,'skipNestingCheck':!0x0}),_0xa0da69['forEach'](_0x104f91=>_0x104f91['detach']?.())),_0x2b6747['length']&&(_0x4772be['markMultiRangeDeletion'](_0x2b6747,'tablePaste',{'tablePasteChainId':_0x43a40c,'skipNestingCheck':!0x0}),_0x2b6747['forEach'](_0x17a8b=>_0x17a8b['detach']?.()));const _0xe55cb2=_0x4772be['markMultiRangeBlockFormat'](_0x47c6d3['map'](({element:_0x4f5e46})=>_0x4f5e46),{'formatGroupId':_0xd433a3()},[],'tablePasteCell',{'tablePasteChainId':_0x43a40c});if(_0xe55cb2){const _0x2dd91c=_0xe55cb2['getMarkers'](),_0x36164d=[];for(const {element:_0x2c5e18,attributes:_0x505337}of _0x47c6d3){if(!_0x505337)continue;const _0x44ca53=_0x414a87['model']['createRangeOn'](_0x2c5e18),_0x2d167a=_0x2dd91c['find'](_0x8939e8=>_0x8939e8['getRange']()['isEqual'](_0x44ca53));_0x2d167a&&_0x36164d['push']([_0x2d167a['name'],_0x505337]);}_0x36164d['length']&&_0xe55cb2['setAttribute']('markerAttributes',Object['fromEntries'](_0x36164d));}_0x194655=null;}));},{'priority':_0x3daf78['high']+0xa}),_0x414a87['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x310e1b,_0x32e706)=>{const [_0x723ed8,_0x2a90a6,,_0x47d4a3]=_0x32e706;if(!_0x194655)return;_0x310e1b['stop']();const _0x547612=_0x723ed8['cell'],_0x4e0b86=_0x2a90a6,_0x5e0dd0=Pe(_0x547612),_0x226a41=Pe(_0x4e0b86);_0x310e1b['return']=_0x547612;let _0x227e3b=null,_0x1fa448=null;if(_0x226a41||_0x5e0dd0){if(_0x5e0dd0&&!_0x226a41){_0x47d4a3['remove'](_0x547612['getChild'](0x0));for(const _0x598019 of Array['from'](_0x4e0b86['getChildren']()))_0x47d4a3['insert'](_0x598019,_0x547612,'end');const _0x329202=_0x194655['rowInsertionIndexes']['includes'](_0x723ed8['row']),_0x31225c=_0x194655['columnInsertionIndexes']['includes'](_0x723ed8['column']);_0x329202||_0x31225c||(_0x227e3b=_0x3b60af['fromRange'](_0x47d4a3['createRangeIn'](_0x547612)));}else _0x226a41&&!_0x5e0dd0&&(_0x1fa448=_0x47d4a3['createRangeIn'](_0x547612));}else{const _0x417666=_0x47d4a3['createElement']('tableCellSuggestion'),_0x146c68=_0x47d4a3['createElement']('tableCellSuggestion');_0x47d4a3['wrap'](_0x47d4a3['createRangeIn'](_0x547612),_0x146c68),_0x47d4a3['insert'](_0x417666,_0x547612,0x0);for(const _0x2bc267 of Array['from'](_0x4e0b86['getChildren']()))_0x47d4a3['insert'](_0x2bc267,_0x417666,'end');_0x227e3b=_0x3b60af['fromRange'](_0x47d4a3['createRangeOn'](_0x417666)),_0x1fa448=_0x3b60af['fromRange'](_0x47d4a3['createRangeOn'](_0x146c68));}const _0x16a913=Array['from'](_0x4e0b86['getAttributes']())['filter'](([_0x11981d])=>ge['includes'](_0x11981d));_0x194655['cells']['push']({'element':_0x547612,'attributes':_0x16a913['length']?Object['fromEntries'](_0x16a913):null}),_0x227e3b&&_0x194655['insertionRanges']['push'](_0x227e3b),_0x1fa448&&_0x194655['deletionRanges']['push'](_0x1fa448);},{'priority':'high'}),_0x4d864d['on']('insertColumns',(_0x593229,_0x4d81c0)=>{const [_0x25e1f1,_0x4cbcfe={}]=_0x4d81c0;if(!_0x194655)return;const _0x35b981=_0x4cbcfe['at']||0x0,_0x23664d=_0x4cbcfe['columns']||0x1;_0x194655['columnInsertionIndexes']=new Array(_0x23664d)['fill'](_0x35b981)['map']((_0x465b7b,_0x568116)=>_0x465b7b+_0x568116);for(const {cell:_0x4adbf7}of _0x4d864d['createTableWalker'](_0x25e1f1,{'startColumn':_0x35b981,'endColumn':_0x35b981+_0x23664d-0x1}))_0x194655['columnInsertionRanges']['push'](_0x414a87['model']['createRangeOn'](_0x4adbf7));},{'priority':'low'}),_0x4d864d['on']('insertRows',(_0x2c533d,_0x1a7b1c)=>{const [_0x38f233,_0x4e0b44={}]=_0x1a7b1c;if(!_0x194655)return;const _0x252f28=_0x4e0b44['at']||0x0,_0x537f00=_0x4e0b44['rows']||0x1;_0x194655['rowInsertionIndexes']=new Array(_0x537f00)['fill'](_0x252f28)['map']((_0x7f28e5,_0xd8dc76)=>_0x7f28e5+_0xd8dc76);for(const {cell:_0x460f7a}of _0x4d864d['createTableWalker'](_0x38f233,{'startRow':_0x252f28,'endRow':_0x252f28+_0x537f00-0x1}))_0x194655['rowInsertionRanges']['push'](_0x414a87['model']['createRangeOn'](_0x460f7a));},{'priority':'low'}),_0x4772be['descriptionFactory']['registerDescriptionCallback'](_0x132e42=>{if(_0x132e42['subType']&&_0x132e42['subType']['startsWith']('tablePaste'))return _0x132e42['previous']?{}:{'type':'insertion','content':o(_0x414a87['locale'],'*Replace\x20table\x20cells*')};});const _0x1b70e3=()=>!0x1;for(const _0x2e09d5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4772be['_suggestionFactory']['registerCustomCallback']('insertion',_0x2e09d5,'join',_0x1b70e3),_0x4772be['_suggestionFactory']['registerCustomCallback']('deletion',_0x2e09d5,'join',_0x1b70e3),_0x4772be['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e09d5,'join',_0x1b70e3);_0x4772be['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1b70e3),_0x4772be['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x10601d,_0x1ccea7,_0x418686)=>{const _0x171d82=_0x10601d['map'](_0x166a9d=>_0x166a9d['getContainedElement']())['filter'](_0x54b45b=>_0x54b45b),_0x13bb97=new Map(_0x171d82['map'](_0x34f203=>[_0x34f203,null]));if(_0x194655){for(const {element:_0x1ed553,attributes:_0xf22359}of _0x194655['cells'])_0xf22359&&_0x13bb97['set'](_0x1ed553,_0xf22359);}else{if(_0x418686&&_0x418686['markerAttributes'])for(const [_0x5caf7a,_0x46ba29]of Object['entries'](_0x418686['markerAttributes'])){const _0x583fc1=_0x414a87['model']['markers']['get'](_0x5caf7a),_0x23c89d=_0x583fc1?_0x583fc1['getRange']()['getContainedElement']():null;_0x23c89d&&_0x13bb97['set'](_0x23c89d,_0x46ba29);}}_0x414a87['model']['change'](_0x30a77a=>{for(const [_0x2c8c2b,_0x3ef305]of _0x13bb97)_0x30a77a['setAttributes']({...Ce,..._0x3ef305},_0x2c8c2b);});});const _0x29b628=(_0x578f8b,_0x4fe608)=>{_0x4772be['_suggestionFactory']['registerCustomCallback'](_0x578f8b,'tablePaste',_0x4fe608,(_0x40d4c3,_0xa70495,_0x461956)=>{_0x414a87['model']['change'](_0x5cec61=>{const _0x1b8966=[];for(const _0xc40ef6 of _0x40d4c3){const _0x5bf4b5=_0xc40ef6['start']['nodeAfter'];_0x5bf4b5['is']('element','tableCellSuggestion')&&_0x1b8966['push'](_0x5bf4b5);}_0x4772be['_suggestionFactory']['getSuggestionCallback'](_0x578f8b,null,_0x4fe608)(_0x40d4c3,_0xa70495,_0x461956);for(const _0x1efbb8 of _0x1b8966)'$graveyard'!=_0x1efbb8['root']['rootName']&&_0x5cec61['unwrap'](_0x1efbb8);});});};_0x29b628('insertion','accept'),_0x29b628('insertion','discard'),_0x29b628('deletion','accept'),_0x29b628('deletion','discard'),_0x4772be['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5b05a7=>{const _0x2a435c=_0x5b05a7['map'](_0x39459e=>_0x39459e['getContainedElement']()),_0x273c4a=_0x2a435c[0x0]['findAncestor']('table'),{minRow:_0x2fc3a2,maxRow:_0xb71446}=_0x32fae1['_getCoordsForCells'](_0x2a435c);_0x4d864d['removeRows'](_0x273c4a,{'at':_0x2fc3a2,'rows':_0xb71446-_0x2fc3a2+0x1});}),_0x4772be['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x55c430=>{const _0x5a4039=_0x55c430['map'](_0x25892f=>_0x25892f['getContainedElement']()),_0x4a18f5=_0x5a4039[0x0]['findAncestor']('table'),{minColumn:_0x238686,maxColumn:_0x9662a8}=_0x32fae1['_getCoordsForCells'](_0x5a4039);_0x4d864d['removeColumns'](_0x4a18f5,{'at':_0x238686,'columns':_0x9662a8-_0x238686+0x1});});const _0x4b0102=(_0x173868,_0x2f182f)=>{if(!_0x2f182f['subType']||!_0x2f182f['subType']['startsWith']('tablePaste'))return;const _0x17e194=_0x2f182f['attributes']['tablePasteChainId'],_0x56b418=_0x4772be['getSuggestions']()['filter'](_0x4a22c7=>_0x4a22c7['isInContent']&&_0x4a22c7['attributes']&&_0x4a22c7['attributes']['tablePasteChainId']==_0x17e194);_0x56b418['length']&&_0x2f182f['getAllAdjacentSuggestions']()['length']!=_0x56b418['length']&&_0x56b418['reduce']((_0x470d71,_0x99e4fa)=>(_0x470d71['next']=_0x99e4fa,_0x99e4fa['previous']=_0x470d71,_0x99e4fa));};function _0x19e7bf(_0x228951,_0x383ca2=!0x0){const {id:_0x384900}=_0x4772be['_splitMarkerName'](_0x228951['markerName']),_0x346b2a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4d474d=_0x4772be['activeMarkers']['includes'](_0x228951['markerName']);return _0x4d474d&&_0x346b2a['push']('ck-suggestion-marker--active'),{'classes':_0x346b2a,'attributes':{'data-suggestion':_0x384900},'priority':_0x4d474d&&_0x383ca2?0xbc2:0xbb8};}_0x4772be['on']('suggestionLoaded',_0x4b0102,{'priority':'high'}),_0x4772be['on']('suggestionUnloaded',_0x4b0102,{'priority':'high'}),_0x414a87['model']['document']['registerPostFixer'](()=>{let _0x217d9b=!0x1;const _0x12fca8=Array['from'](_0x414a87['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa274d3,data:_0x12ea49}of _0x12fca8){const {group:_0x59b35b,type:_0x1a52c0,id:_0x2ee1f7}=_0x4772be['_splitMarkerName'](_0xa274d3);if('suggestion'!=_0x59b35b||'deletion'!=_0x1a52c0||_0x12ea49['oldRange'])continue;if(!_0x4772be['hasSuggestion'](_0x2ee1f7))continue;const _0x1f7d59=_0x4772be['getSuggestion'](_0x2ee1f7)['getRanges'](),_0x15867b=_0x414a87['plugins']['get']('Users')['me'];for(const _0x263ee0 of _0x4772be['getSuggestions']()){if(!_0x263ee0['isInContent']||_0x263ee0['author']!=_0x15867b)continue;if('formatBlock'!=_0x263ee0['type']||'tablePasteCell'!=_0x263ee0['subType'])continue;if(_0x263ee0['getRanges']()['every'](_0x31e195=>_0x1f7d59['some'](_0x2308df=>_0x2308df['containsRange'](_0x31e195,!0x0)))){for(const _0x38fbce of _0x263ee0['getAllAdjacentSuggestions']())_0x38fbce['isInContent']&&(_0x38fbce['discard'](),_0x217d9b=!0x0);}}}return _0x217d9b;}),_0x414a87['model']['document']['registerPostFixer'](_0x4c5ad9=>{const _0x362e98=_0x414a87['commands']['get']('redo');if(!_0x362e98||!_0x362e98['_createdBatches']['has'](_0x4c5ad9['batch']))return!0x1;let _0x369618=!0x1;const _0x21e14c=_0x414a87['plugins']['get']('Users')['me'],_0x1e10e5=_0x414a87['model']['document']['differ']['getChanges'](),_0x3f72ce=Array['from'](_0x414a87['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x372816,data:_0x18e46f})=>{const {group:_0x375503,subType:_0x5ed489,authorId:_0x1f7c25}=_0x4772be['_splitMarkerName'](_0x372816);return'suggestion'==_0x375503&&'tablePaste'==_0x5ed489&&_0x1f7c25==_0x21e14c['id']&&!_0x18e46f['oldRange'];});for(const _0x3bfe5c of _0x1e10e5){if('insert'!=_0x3bfe5c['type']||'tableCellSuggestion'!=_0x3bfe5c['name']||0x1!=_0x3bfe5c['length'])continue;const _0x3fd28b=_0x4c5ad9['createRange'](_0x3bfe5c['position'],_0x3bfe5c['position']['getShiftedBy'](0x1));if(!_0x3f72ce['find'](({data:_0x523f83})=>_0x523f83['newRange']['isEqual'](_0x3fd28b))){for(const {name:_0x48613c,data:_0xed5e35}of _0x3f72ce)if(_0x3fd28b['containsRange'](_0xed5e35['newRange'])){_0x4c5ad9['updateMarker'](_0x48613c,{'range':_0x3fd28b}),_0x369618=!0x0;break;}}}return _0x369618;}),_0x414a87['model']['document']['registerPostFixer'](_0x282015=>{let _0x157f48=!0x1;const _0x108984=_0x414a87['plugins']['get']('Users')['me'],_0x2898b6=_0x4772be['getSuggestions']()['filter'](_0x54a5de=>_0x54a5de['isInContent']&&_0x54a5de['author']==_0x108984),_0x1f3d60=new Set(),_0x1b4f0b=new Set();for(const _0x46d7b2 of _0x2898b6)if('tablePaste'==_0x46d7b2['subType'])for(const _0x4cf602 of _0x46d7b2['getMarkers']()){const _0x484dbd=_0x4cf602['getRange']()['getContainedElement']();if(_0x484dbd){if(_0x484dbd['is']('element','tableCellSuggestion')&&Pe(_0x484dbd)){_0x46d7b2['removeMarker'](_0x4cf602['name']),_0x1f3d60['add'](_0x484dbd),_0x157f48=!0x0;const _0x483385=_0x484dbd['nextSibling'],_0x50407d=_0x484dbd['previousSibling'],_0x3b4087=_0x483385&&_0x483385['is']('element','tableCellSuggestion'),_0x46da95=_0x50407d&&_0x50407d['is']('element','tableCellSuggestion');_0x3b4087&&!_0x1f3d60['has'](_0x483385)&&_0x1b4f0b['add'](_0x483385),_0x46da95&&!_0x1f3d60['has'](_0x50407d)&&_0x1b4f0b['add'](_0x50407d);}else _0x484dbd['is']('element','paragraph')&&_0x484dbd['isEmpty']&&(_0x46d7b2['removeMarker'](_0x4cf602['name']),_0x157f48=!0x0);}}else{if('tablePasteCell'==_0x46d7b2['subType']){if(!_0x46d7b2['attributes']||!_0x46d7b2['attributes']['tablePasteChainId'])continue;const _0x3aaa5e=_0x46d7b2['attributes']['markerAttributes'];if(_0x3aaa5e&&Object['keys'](_0x3aaa5e)['length'])continue;const _0x509451=_0x46d7b2['attributes']['tablePasteChainId'];let _0x1ac3bb=!0x0,_0x2542f3=!0x0;for(const _0x32b394 of _0x2898b6)if(_0x32b394['subType']&&_0x32b394['subType']['startsWith']('tablePaste')){if(!_0x32b394['attributes']['tablePasteChainId']){_0x2542f3=!0x1;break;}if(_0x32b394['id']!=_0x46d7b2['id']&&_0x32b394['attributes']['tablePasteChainId']==_0x509451){_0x1ac3bb=!0x1;break;}}_0x2542f3&&_0x1ac3bb&&(_0x46d7b2['removeMarkers'](),_0x157f48=!0x0);}}for(const _0x45484b of _0x1f3d60)_0x282015['remove'](_0x45484b);for(const _0x8c0dff of _0x1b4f0b)_0x282015['unwrap'](_0x8c0dff);return _0x157f48;}),_0x414a87['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36ff13,_0x3cc64e)=>_0x19e7bf(_0x36ff13),'converterPriority':'high'}),_0x414a87['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x586613,_0x3a5af7)=>_0x3a5af7['options']['showSuggestionHighlights']?_0x19e7bf(_0x586613,!0x1):null,'converterPriority':'high'});const _0x564a71=_0x414a87['editing']['view'];this['listenTo'](_0x564a71['document'],'clipboardOutput',(_0x4d5dc4,_0x4ee881)=>{const _0x468e46=[];for(const _0x2f59bf of _0x564a71['createRangeIn'](_0x4ee881['content'])['getItems']())_0x2f59bf['is']('element','suggestion-td')&&_0x468e46['push'](_0x2f59bf);_0x564a71['change'](_0x976319=>{for(const _0x32114b of _0x468e46)_0x976319['move'](_0x976319['createRangeIn'](_0x32114b),_0x976319['createPositionBefore'](_0x32114b)),_0x976319['remove'](_0x32114b);});});}}function Pe(_0x23d07b){if(_0x23d07b['isEmpty'])return!0x0;const _0xe1d78f=_0x23d07b['getChild'](0x0);return _0xe1d78f['is']('element','paragraph')&&_0xe1d78f['isEmpty'];}function he(_0x3d386d,_0x3bebb0={},_0x38de47){for(const {isAnchor:_0x4dc19f,cellHeight:_0x36f705,cellWidth:_0x41ec15}of _0x38de47['createTableWalker'](_0x3d386d,{'includeAllSlots':!0x0,..._0x3bebb0}))if(!_0x4dc19f||0x1!=_0x36f705||0x1!=_0x41ec15)return!0x1;return!0x0;}class vt extends _0x54406a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2acf62=this['editor']['plugins']['get']('TrackChangesEditing');_0x2acf62['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2acf62['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2acf62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2acf62['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2acf62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2acf62['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x48bf94,_0x4c9d88){const _0x45bdc0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb7baf3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2b9d27=_0x4c9d88['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5656f7=_0xb7baf3['getColumnGroupElement'](_0x2b9d27);let _0x53f66c=_0x5656f7?_0xb7baf3['getTableColumnsWidths'](_0x5656f7):null,_0x462cd8=_0x2b9d27['getAttribute']('tableWidth')||null;const _0x1f3d70=_0x4c9d88['tableWidth']||_0x462cd8,_0x269c7b=_0x4c9d88['columnWidths']||_0x53f66c,_0x65977a=this['editor']['plugins']['get']('Users')['me'];for(const _0xfdb844 of _0x45bdc0['getSuggestions']()){const _0xa2b72b=_0xfdb844['getContainedElement']();if('resizeTable'===_0xfdb844['subType']&&_0xa2b72b===_0x2b9d27){_0xfdb844['author']!==_0x65977a&&_0xfdb844['discard']();const _0x23a793=_0xfdb844['data']['commandParams'];_0x462cd8=_0x23a793[0x0]['tableWidth'],_0x53f66c=_0x23a793[0x0]['columnWidths'];break;}}_0x48bf94({'table':_0x2b9d27,'tableWidth':_0x1f3d70,'columnWidths':_0x269c7b}),_0x45bdc0['markBlockFormat'](_0x2b9d27,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x462cd8,'columnWidths':_0x53f66c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x554c83){if('formatBlock'!=_0x554c83['type']&&'formatInline'!=_0x554c83['type'])return;const {data:_0x4de666}=_0x554c83;if(_0x4de666&&'resizeTable'===_0x4de666['formatGroupId']){const _0x45d45a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x45d45a)};}}}class Ct extends _0x54406a{['afterInit'](){const _0xcfde0e=this['editor'];_0xcfde0e['plugins']['has']('Template')&&_0xcfde0e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x54406a{['afterInit'](){const _0x17f94e=this['editor'];if(!_0x17f94e['commands']['get']('insertTableOfContents'))return;_0x17f94e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x38e68c=_0x17f94e['plugins']['get']('TrackChangesEditing'),_0x52ed69=_0x17f94e['locale'];_0x38e68c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x48bc72=>o(_0x52ed69,'ELEMENT_TABLE_OF_CONTENTS',_0x48bc72));}}class Dt extends _0x54406a{['afterInit'](){const _0x828487=this['editor'];if(!_0x828487['plugins']['has']('Title'))return;const _0x366fac=_0x828487['plugins']['get']('TrackChangesEditing');_0x366fac['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x828487['locale'],'ELEMENT_TITLE')),_0x828487['model']['document']['registerPostFixer'](_0x1b5008=>{let _0x47ad0b=!0x1;const _0x108889=Array['from'](_0x828487['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x52c11a,data:_0xa2de6d}of _0x108889){const {group:_0x3456ea}=_0x366fac['_splitMarkerName'](_0x52c11a);if('suggestion'!==_0x3456ea||!_0xa2de6d['newRange'])continue;const _0x488760=_0xa2de6d['newRange'],_0x3b8c72=_0x488760['end']['nodeBefore'];if(!_0x3b8c72||!_0x3b8c72['is']('element','title-content'))continue;if(!_0x488760['start']['isTouching'](_0x488760['end']))continue;const _0x338b74=_0x828487['model']['schema']['getNearestSelectionRange'](_0x488760['end'],'forward');if(_0x338b74&&_0x338b74['isCollapsed']){const _0x15c654=_0x1b5008['createRange'](_0x488760['start'],_0x338b74['start']);_0x15c654['isEqual'](_0x488760)||(_0x1b5008['updateMarker'](_0x52c11a,{'range':_0x15c654}),_0x47ad0b=!0x0);}_0x47ad0b||(_0x1b5008['removeMarker'](_0x52c11a),_0x47ad0b=!0x0);}return _0x47ad0b;});}}class Nt extends _0x54406a{['afterInit'](){const _0x232fe6=this['editor'],_0xd92287=_0x232fe6['plugins']['get']('TrackChangesEditing');_0x232fe6['plugins']['has']('UndoEditing')&&(_0xd92287['enableCommand']('undo'),_0xd92287['enableCommand']('redo'));}}class Mt extends _0x54406a{static get['requires'](){return[jt];}['afterInit'](){const _0x36ba52=this['editor'];if(!_0x36ba52['plugins']['has']('TableCaptionEditing'))return;_0x36ba52['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x54406a{['tableProperties'];['tableCellProperties'];constructor(_0x200b17){super(_0x200b17),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';}['afterInit'](){const _0xe71ae1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x539767 of this['tableProperties'])_0xe71ae1['enableCommand'](_0x539767,(_0x26fa54,_0x4c94aa)=>{const _0x548c32=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x539767,[_0x548c32],this['tableProperties'],'tableProperties',_0x26fa54,_0x4c94aa);});_0xe71ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xe71ae1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe71ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ab5fc,_0x33f373)=>this['handleDiscardAction'](this['tableProperties'],_0x2ab5fc,_0x33f373)),_0xe71ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5571fe of this['tableCellProperties'])_0xe71ae1['enableCommand'](_0x5571fe,(_0x570a13,_0x22416d)=>{const _0x1924f8=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5571fe,_0x1924f8,this['tableCellProperties'],'tableCellProperties',_0x570a13,_0x22416d);});_0xe71ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xe71ae1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe71ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5d9700,_0x43b901)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5d9700,_0x43b901)),_0xe71ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xe71ae1['descriptionFactory']['registerDescriptionCallback'](_0x1aeece=>this['handleSuggestionDescription'](_0x1aeece));}['_handlePropertyChange'](_0x534f41,_0x2c2256,_0x189785,_0x535dc8,_0xec575d,_0x51b386){const _0x1b0134=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x51b386['batch'],()=>{for(const _0x2b3bc8 of _0x2c2256){if(this['_getSuggestion'](_0x2b3bc8,_0x535dc8))_0xec575d(_0x51b386);else{const _0x38c2a9={};for(const _0x131383 of _0x189785){const _0x2ff81a=_0x2b3bc8['getAttribute'](_0x131383);void 0x0!==_0x2ff81a&&(_0x38c2a9[_0x131383]=_0x2ff81a);}_0xec575d(_0x51b386),_0x1b0134['markBlockFormat'](_0x2b3bc8,{'commandParams':[_0x38c2a9]},[],_0x535dc8);}}});}['handleDiscardAction'](_0x83631,_0x303027,_0xa0891){const _0x3e125c=_0x303027[0x0]['start']['nodeAfter'],_0x33cd9c=_0xa0891['commandParams'][0x0];this['editor']['model']['change'](_0xd41424=>{for(const _0x3f3101 of _0x83631)void 0x0!==_0x33cd9c[_0x3f3101]?_0xd41424['setAttribute'](_0x3f3101,_0x33cd9c[_0x3f3101],_0x3e125c):_0xd41424['removeAttribute'](_0x3f3101,_0x3e125c);});}['handleSuggestionDescription'](_0x18b0c6){if(_0x18b0c6['data'])switch(_0x18b0c6['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'](_0x1f925d,_0x5e9f97){const _0x34e623=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xda779b of _0x34e623['getSuggestions']({'skipNotAttached':!0x0})){const _0x34e119=_0xda779b['getContainedElement']();if(_0xda779b['subType']===_0x5e9f97&&_0x34e119===_0x1f925d)return _0xda779b;}return null;}}const m='$elementName';class p extends _0x54406a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x51caa5,_0x2c1617,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x31b622){function _0x38edc0(_0x2a6273){return _0x2a6273['map'](_0x3a9216=>String['fromCharCode'](_0x3a9216))['join']('');}super(_0x31b622),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2e0f54,_0x4d5e68,_0x2aeacf,_0x5d67e1)=>{this['_model']['change'](()=>{for(const _0x37928 of[..._0x5d67e1,..._0x2aeacf])this['_model']['markers']['has'](_0x37928)&&_0x31b622['editing']['reconvertMarker'](_0x37928);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x31b622['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(),_0x31b622['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x31b622['config']['get']('trackChanges.trackFormatChanges'),_0x31b622['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x31b622['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x31b622,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x38edc0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x38edc0([0x34,0x30,0x34,0x38,0x31,0x32,0x35,0x36]);}['init'](){const _0x26f4ef=this['editor'],_0xd198b=(_0x41809b,_0xb0e890)=>{if('attribute'!=_0x41809b)return'ck-suggestion-marker-'+_0x41809b;const _0x1fdab0=_0xb0e890['split']('|')[0x0];return this['_isBlockAttribute'](_0x1fdab0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x26f4ef['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2b8ab4=>{const {id:_0x2ec403,type:_0x386212,subType:_0x21c43c}=this['_splitMarkerName'](_0x2b8ab4['markerName']),_0x313918=['ck-suggestion-marker',_0xd198b(_0x386212,_0x21c43c)];let _0x180a3e=0xbb8;return this['activeMarkers']['includes'](_0x2b8ab4['markerName'])&&(_0x313918['push']('ck-suggestion-marker--active'),_0x180a3e=0xbc2),'deletion'==_0x386212&&(_0x180a3e+=0x5),{'classes':_0x313918,'attributes':{'data-suggestion':_0x2ec403},'priority':_0x180a3e};}}),_0x26f4ef['conversion']['for']('dataDowncast')['add'](_0x4e28ab=>{_0x4e28ab['on']('addMarker:suggestion',(_0x1aaa36,_0x1786f1,_0x4727f8)=>{if(!_0x4727f8['options']['showSuggestionHighlights'])return;const _0x57bd40=_0x1786f1['item'];if(!_0x57bd40)return;const _0x4099f6=_0x4727f8['mapper']['toViewElement'](_0x57bd40);_0x26f4ef['model']['schema']['isObject'](_0x57bd40)&&_0x4099f6&&!_0x4099f6['getCustomProperty']('widget')&&_0x4099f6['is']('containerElement')&&_0x27eea7(_0x4099f6,_0x4727f8['writer']);},{'priority':'high'});}),_0x26f4ef['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x380e9a,_0x2c2c7b)=>{if(!_0x2c2c7b['options']['showSuggestionHighlights'])return null;const {type:_0x4fdfcb,subType:_0x104ab4}=this['_splitMarkerName'](_0x380e9a['markerName']);return{'classes':['ck-suggestion-marker',_0xd198b(_0x4fdfcb,_0x104ab4)],'priority':0xbb8};}});const _0x1d5156=({showActiveMarkers:_0x1bdc5b=!0x0,isAttributeSuggestion:_0x5385d2=!0x1}={})=>(_0x136cfb,_0x559153,_0x29ef1c)=>{if(!_0x559153['item'])return;const {id:_0x2358da}=this['_splitMarkerName'](_0x559153['markerName']);if(_0x5385d2){const _0x2c3bb6=this['_suggestions']['get'](_0x2358da),_0xca373c=this['_getAttributeKey'](_0x2c3bb6);if(!this['_isBlockAttribute'](_0xca373c))return;}if(_0x559153['item']['is']('selection'))return void _0x29ef1c['consumable']['consume'](_0x559153['item'],_0x136cfb['name']);const _0x3d3c60=_0x29ef1c['mapper']['toViewElement'](_0x559153['item']);if(_0x559153['item']['is']('element')&&_0x26f4ef['model']['schema']['isBlock'](_0x559153['item'])&&!_0x3d3c60['getCustomProperty']('addHighlight')){_0x29ef1c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3d3c60),_0x29ef1c['writer']['setAttribute']('data-suggestion',_0x2358da,_0x3d3c60),_0x29ef1c['mapper']['bindElementToMarker'](_0x3d3c60,_0x559153['markerName']),_0x1bdc5b&&(this['activeMarkers']['includes'](_0x559153['markerName'])?_0x29ef1c['writer']['addClass']('ck-suggestion-marker--active',_0x3d3c60):_0x29ef1c['writer']['removeClass']('ck-suggestion-marker--active',_0x3d3c60));for(const _0x58ffba of _0x26f4ef['model']['createRangeIn'](_0x559153['item'])['getItems']())_0x29ef1c['consumable']['consume'](_0x58ffba,_0x136cfb['name']);_0x29ef1c['consumable']['consume'](_0x559153['item'],_0x136cfb['name']);}};_0x26f4ef['conversion']['for']('dataDowncast')['add'](_0x5ed449=>{_0x5ed449['on']('addMarker:suggestion:formatBlock',(_0x1ae875,_0x120a32,_0x42dcd3)=>{_0x42dcd3['options']['showSuggestionHighlights']&&_0x1d5156({'showActiveMarkers':!0x1})(_0x1ae875,_0x120a32,_0x42dcd3);},{'priority':'highest'});}),_0x26f4ef['conversion']['for']('dataDowncast')['add'](_0x5e07e8=>{_0x5e07e8['on']('addMarker:suggestion:attribute',(_0x26aea8,_0x376f91,_0x3b5c3b)=>{_0x3b5c3b['options']['showSuggestionHighlights']&&_0x1d5156({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x26aea8,_0x376f91,_0x3b5c3b);},{'priority':'highest'});}),_0x26f4ef['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x587aa9,_0x1047e2)=>_0x1047e2['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x587aa9['substr'](0xb)}}),_0x26f4ef['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x46f6f0,{writer:_0x3d2665})=>{let _0x6acce1='suggestion:'+_0x46f6f0['getAttribute']('suggestion-type')+':'+_0x46f6f0['getAttribute']('id');return _0x46f6f0['getAttribute']('marker-count')&&(_0x6acce1+=':'+_0x46f6f0['getAttribute']('marker-count')),_0x3d2665['createElement']('$marker',{'data-name':_0x6acce1});}}),_0x26f4ef['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x26f4ef['conversion']['for']('editingDowncast')['add'](_0x49cacc=>{_0x49cacc['on']('addMarker:suggestion:formatBlock',_0x1d5156(),{'priority':'high'});}),_0x26f4ef['conversion']['for']('editingDowncast')['add'](_0x40376c=>{_0x40376c['on']('addMarker:suggestion:attribute',_0x1d5156({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x26f4ef['conversion']['for']('editingDowncast')['add'](_0x44bcc6=>{_0x44bcc6['on']('removeMarker:suggestion:formatBlock',(_0x1e3341,_0x424028,_0x19271e)=>{const _0x17b77a=_0x19271e['mapper']['markerNameToElements'](_0x424028['markerName']);if(_0x17b77a){for(const _0x3b710d of _0x17b77a)_0x3b710d['getCustomProperty']('addHighlight')||(_0x19271e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3b710d),_0x19271e['writer']['removeAttribute']('data-suggestion',_0x3b710d),_0x19271e['mapper']['unbindElementFromMarkerName'](_0x3b710d,_0x424028['markerName']));}},{'priority':'high'});}),_0x26f4ef['conversion']['for']('editingDowncast')['add'](_0x24ce49=>{_0x24ce49['on']('removeMarker:suggestion:attribute',(_0x212775,_0x3dfc9c,_0x110ea9)=>{const _0x286d4f=_0x110ea9['mapper']['markerNameToElements'](_0x3dfc9c['markerName']);if(!_0x286d4f)return;const {id:_0x3f318e}=this['_splitMarkerName'](_0x3dfc9c['markerName']),_0x120ddd=this['_suggestions']['get'](_0x3f318e),_0x4c4a77=this['_getAttributeKey'](_0x120ddd);if(this['_isBlockAttribute'](_0x4c4a77)){for(const _0x35bb33 of _0x286d4f)_0x35bb33['getCustomProperty']('addHighlight')||(_0x110ea9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35bb33),_0x110ea9['writer']['removeAttribute']('data-suggestion',_0x35bb33),_0x110ea9['mapper']['unbindElementFromMarkerName'](_0x35bb33,_0x3dfc9c['markerName']));}},{'priority':'high'});}),_0x26f4ef['model']['document']['registerPostFixer'](_0x1949c6=>{let _0x72a729=!0x1;const _0xb1108d=Array['from'](_0x26f4ef['model']['document']['differ']['getChangedMarkers']()),_0x4f3c23=new Set();for(const {name:_0x2891a1,data:_0x40999f}of _0xb1108d){const {group:_0x389cc7,type:_0x5426ae,subType:_0x42199e,id:_0x281a8d}=this['_splitMarkerName'](_0x2891a1);if('suggestion'!==_0x389cc7)continue;const _0x449204=this['_suggestions']['get'](_0x281a8d);if(null!=_0x40999f['newRange']){'formatInline'==_0x5426ae&&(_0x72a729=_0x72a729||Et(_0x40999f['newRange'],_0x2891a1,_0x1949c6,_0x26f4ef['model']['schema']));const _0x38b836='attribute'==_0x5426ae&&this['_isBlockAttribute'](_0x42199e['split']('|')[0x0]);if(_0x40999f['newRange']['isCollapsed']||'$graveyard'==_0x40999f['newRange']['root']['rootName']||'formatBlock'==_0x5426ae&&!Ut(_0x40999f['newRange'])||_0x38b836&&!Ut(_0x40999f['newRange'])||'deletion'==_0x5426ae&&!(!Tt(_0x320846=_0x40999f['newRange'])&&!function(_0x3c2a36){return _0x3c2a36['start']['parent']==_0x3c2a36['end']['nodeBefore']&&_0x3c2a36['start']['isAtEnd'];}(_0x320846)))_0x1949c6['removeMarker'](_0x2891a1),_0x72a729=!0x0;else{if(!_0x449204||!_0x449204['isInContent'])continue;_0x4f3c23['add'](_0x449204);}}}var _0x320846;return _0x4f3c23['size']>0x0&&(_0x72a729=!!this['_joinWithAdjacentSuggestions'](_0x4f3c23)||_0x72a729),_0x72a729;}),_0x26f4ef['model']['document']['registerPostFixer'](_0x7fc2a0=>{let _0x592151=!0x1;for(const _0x37d9eb of _0x26f4ef['model']['document']['differ']['getChanges']())if('insert'==_0x37d9eb['type'])for(const _0x47014f of this['_suggestions']['values']()){if(_0x47014f['isMultiRange']||!_0x47014f['isInContent'])continue;const _0x29575f='formatBlock'==_0x47014f['type'],_0x551f1c=this['_getAttributeKey'](_0x47014f),_0x5ab47=_0x551f1c&&this['_isBlockAttribute'](_0x551f1c);if(!_0x29575f&&!_0x5ab47)continue;const _0x38643a=_0x47014f['getFirstRange']();if(_0x38643a['start']['parent']!=_0x38643a['end']['parent']&&!_0x38643a['end']['isAtEnd']){const _0xe30d82=_0x26f4ef['model']['createPositionAt'](_0x38643a['start']['nodeAfter'],'end'),_0x433841=_0x26f4ef['model']['createRange'](_0x38643a['start'],_0xe30d82);_0x7fc2a0['updateMarker'](_0x47014f['getFirstMarker'](),{'range':_0x433841}),_0x592151=!0x0;}}return _0x592151;}),_0x26f4ef['model']['document']['registerPostFixer'](_0x4102ca=>this['_processAttributeChanges'](_0x4102ca)),_0x26f4ef['model']['document']['registerPostFixer'](_0x33ef71=>!_0x33ef71['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x33ef71)),_0x26f4ef['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x26f4ef['model']['document']['on']('change:data',(_0x28b75a,_0x416d7b)=>{if(!_0x416d7b['isLocal']||_0x416d7b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1bbee0=_0x26f4ef['model']['document']['differ']['getChanges']();if(0x0==_0x1bbee0['length'])return;const _0x2e9c64=[],_0x339926=_0x1bbee0['filter'](_0x4b0f91=>'attribute'==_0x4b0f91['type']),_0x2453a0=_0x1bbee0['filter'](_0x2b4d77=>'insert'==_0x2b4d77['type']&&'$text'!=_0x2b4d77['name']);for(const _0xca3609 of _0x339926)this['_isRegisteredAttribute'](_0xca3609['attributeKey'])&&_0x2e9c64['push']({'key':_0xca3609['attributeKey'],'newValue':_0xca3609['attributeNewValue'],'oldValue':_0xca3609['attributeOldValue'],'range':Ot(_0xca3609['range'],_0x26f4ef['model'])});for(const _0x2cf042 of _0x2453a0){if('rename'!=_0x2cf042['action']&&'refresh'!=_0x2cf042['action'])continue;const _0x33d2b2=Gt(_0x2cf042['position']['nodeAfter'],_0x26f4ef['model']),_0x346bb4=_0x2cf042['before'];'rename'==_0x2cf042['action']&&_0x2e9c64['push']({'key':m,'newValue':_0x2cf042['name'],'oldValue':_0x346bb4['name'],'range':_0x33d2b2});for(const [_0x32ab8c,_0xd98d8e]of _0x346bb4['attributes']){if(!this['_isRegisteredAttribute'](_0x32ab8c))continue;const _0x152f3d=_0x2cf042['attributes']['get'](_0x32ab8c);_0xd98d8e!==_0x152f3d&&_0x2e9c64['push']({'key':_0x32ab8c,'newValue':_0x152f3d,'oldValue':_0xd98d8e,'range':_0x33d2b2});}for(const [_0x522127,_0x39c7b3]of _0x2cf042['attributes'])this['_isRegisteredAttribute'](_0x522127)&&(_0x346bb4['attributes']['has'](_0x522127)||_0x2e9c64['push']({'key':_0x522127,'newValue':_0x39c7b3,'oldValue':null,'range':_0x33d2b2}));}0x0!=_0x2e9c64['length']&&_0x26f4ef['model']['enqueueChange'](_0x416d7b,_0x279929=>{const _0x454477=_0xd433a3();for(const {range:_0x74c271,key:_0x477fdc,oldValue:_0x30e38d,newValue:_0x27e0c3}of _0x2e9c64)this['markAttributeChange'](_0x74c271,_0x477fdc,_0x30e38d,_0x27e0c3,{'groupId':_0x454477});this['_reduceExistingSuggestions'](_0x279929,_0x2e9c64);});},{'priority':'lowest'}),_0x26f4ef['model']['markers']['on']('update:suggestion',(_0x4b4e27,_0x3c4f67,_0x108414)=>{if(null==_0x108414){const {id:_0x7ccdce}=this['_splitMarkerName'](_0x3c4f67['name']),_0x5bde01=this['_suggestions']['get'](_0x7ccdce);_0x5bde01&&_0x5bde01['addMarkerName'](_0x3c4f67['name']);}}),_0x26f4ef['model']['document']['on']('change:data',()=>{const _0x32be10=Array['from'](_0x26f4ef['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c8967=>'suggestion'===this['_splitMarkerName'](_0x1c8967['name'])['group']);if(0x0===_0x32be10['length'])return;_0x32be10['sort']((_0x26bed9,_0x5e926b)=>{const _0x9f8343=_0x26bed9['data']['oldRange'],_0x54d261=_0x5e926b['data']['oldRange'];return null===_0x9f8343&&null===_0x54d261?0x0:null===_0x9f8343&&null!==_0x54d261?-0x1:null!==_0x9f8343&&null===_0x54d261?0x1:_0x9f8343['start']['isBefore'](_0x54d261['start'])?-0x1:0x1;});const _0x3a8293=new Set(),_0x5e0de8=new Set();for(const {name:_0x344833,data:_0x3e0994}of _0x32be10){const {id:_0x24dcba}=this['_splitMarkerName'](_0x344833);if(null===_0x3e0994['oldRange']){const _0x1a75af=this['_handleNewSuggestionMarker'](_0x344833);_0x5e0de8['add'](_0x1a75af);}else{const _0x382673=this['_suggestions']['get'](_0x24dcba);null!==_0x3e0994['newRange']||_0x382673['isInContent']?(_0x3a8293['add'](_0x382673['head']),_0x5e0de8['add'](_0x382673)):this['_removeSuggestion'](_0x382673);}}_0x5e0de8['size']>0x0&&this['_refreshSuggestionsChain'](_0x5e0de8);for(const _0x4e75e4 of _0x3a8293)this['fire']('suggestionChanged',_0x4e75e4);}),_0x26f4ef['model']['on']('applyOperation',(_0x423d27,_0x3be73f)=>{const _0x208a3e=_0x3be73f[0x0];if(!this['_suggestions']['size'])return;if(!_0x208a3e['isDocumentOperation'])return;if(_0x208a3e['batch']['isUndo']||!_0x208a3e['batch']['isLocal'])return;let _0x3940a1,_0x5d9318;switch(_0x208a3e['type']){case'insert':_0x3940a1=_0x26f4ef['model']['createPositionAt'](_0x208a3e['position']),_0x5d9318=_0x3940a1['getShiftedBy'](_0x208a3e['howMany']);break;case'split':_0x3940a1=_0x26f4ef['model']['createPositionAt'](_0x208a3e['splitPosition']),_0x5d9318=_0x26f4ef['model']['createPositionAt'](_0x208a3e['moveTargetPosition']);break;case'move':_0x3940a1=_0x26f4ef['model']['createPositionAt'](_0x208a3e['targetPosition']),_0x5d9318=_0x3940a1['getShiftedBy'](_0x208a3e['howMany']);break;default:return;}const _0x2a663f=_0x26f4ef['model']['createRange'](_0x3940a1,_0x5d9318);_0x26f4ef['model']['change'](()=>{for(const {suggestion:_0x3f4db6,meta:_0x4f0875}of this['_findSuggestions'](_0x2a663f)){if(_0x3f4db6['isMultiRange'])continue;if('formatInline'==_0x3f4db6['type'])continue;const _0x35995b=this['_getAttributeKey'](_0x3f4db6);if(_0x35995b&&this['_isBlockAttribute'](_0x35995b)&&'split'!=_0x208a3e['type'])continue;const _0x33f260=_0x3f4db6['data']&&_0x3f4db6['data']['multipleBlocks'];('formatBlock'!=_0x3f4db6['type']||'split'==_0x208a3e['type']&&!_0x33f260)&&(_0x4f0875['containsRangeInObject']||'insertion'==_0x3f4db6['type']&&_0x4f0875['isOwn']||_0x3f4db6['getFirstRange']()['containsRange'](_0x2a663f)&&this['_breakSuggestionMarker'](_0x3f4db6,_0x3940a1,_0x5d9318));}});},{'priority':'lowest'}),_0x26f4ef['model']['on']('deleteContent',(_0x3292e5,_0xaabb8b)=>{const _0x598468=_0xaabb8b[0x0],_0x37ec55=_0xaabb8b[0x1];if(_0x37ec55&&_0x37ec55['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x598468['isCollapsed'])return;const _0x555017=_0x26f4ef['model']['schema'],{start:_0x41681a,end:_0xb788e5}=_0x598468['getFirstRange'](),_0x319d2a=_0x41681a['nodeAfter']&&_0x555017['isLimit'](_0x41681a['nodeAfter'])?null:_0x555017['getNearestSelectionRange'](_0x41681a,'forward'),_0x15e91e=_0xb788e5['nodeBefore']&&_0x555017['isLimit'](_0xb788e5['nodeBefore'])?null:_0x555017['getNearestSelectionRange'](_0xb788e5,'backward'),_0x431972=_0x26f4ef['model']['createRange'](_0x319d2a?_0x319d2a['start']:_0x41681a,_0x15e91e?_0x15e91e['end']:_0xb788e5);_0x26f4ef['model']['change'](_0x513e2f=>{this['markDeletion'](_0x431972);const _0x4606b9=_0x26f4ef['model']['schema']['getNearestSelectionRange'](_0x431972['start']);_0x598468['is']('documentSelection')?_0x513e2f['setSelection'](_0x4606b9):_0x598468['setTo'](_0x4606b9);}),_0x3292e5['stop']();},{'priority':_0x3daf78['normal']+0xa}),_0x26f4ef['model']['on']('insertContent',(_0x30eabc,_0x1aaaa9)=>{const _0x405392=_0x1aaaa9[_0x1aaaa9['length']-0x1];_0x405392&&_0x405392['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x26f4ef['model']['change'](()=>{let _0x15f8fc=_0x26f4ef['model']['insertContent'](_0x1aaaa9[0x0],_0x1aaaa9[0x1],_0x1aaaa9[0x2],{'forceDefaultExecution':!0x0});if(!_0x15f8fc)return;_0x30eabc['return']=_0x15f8fc['clone']();const _0x19b923=_0x15f8fc['end']['nodeBefore'],_0x4a2753=_0x26f4ef['model']['schema'];_0x19b923&&_0x4a2753['isBlock'](_0x19b923)&&!_0x4a2753['isObject'](_0x19b923)&&(_0x15f8fc=_0x26f4ef['model']['createRange'](_0x15f8fc['start'],_0x26f4ef['model']['createPositionAt'](_0x19b923,'end'))),this['markInsertion'](_0x15f8fc);}),_0x30eabc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1326b2=new $(_0x26f4ef,this['_suggestions']);_0x26f4ef['commands']['add']('acceptSuggestion',_0x1326b2),this['enableCommand']('acceptSuggestion');const _0x3a15d0=new B(_0x26f4ef,this['_suggestions']);_0x26f4ef['commands']['add']('discardSuggestion',_0x3a15d0),this['enableCommand']('discardSuggestion'),_0x26f4ef['commands']['add']('acceptAllSuggestions',new x(_0x26f4ef,_0x1326b2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x26f4ef['commands']['add']('discardAllSuggestions',new x(_0x26f4ef,_0x3a15d0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x26f4ef['commands']['add']('acceptSelectedSuggestions',new R(_0x26f4ef,_0x1326b2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x26f4ef['commands']['add']('discardSelectedSuggestions',new R(_0x26f4ef,_0x3a15d0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x52ff76=_0x26f4ef['plugins']['get']('CommentsRepository');this['listenTo'](_0x52ff76,'addComment',(_0x3f86b1,{threadId:_0x24923b})=>{const _0x3bd071=this['_suggestions']['get'](_0x24923b);_0x3bd071&&_0x3bd071['commentThread']&&0x1===_0x3bd071['commentThread']['length']&&this['_updateSuggestionData'](_0x24923b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x52ff76,'removeComment',(_0x37d8d9,{threadId:_0x207f32})=>{const _0x2b9aed=this['_suggestions']['get'](_0x207f32);_0x2b9aed&&_0x2b9aed['commentThread']&&!_0x2b9aed['commentThread']['length']&&this['_updateSuggestionData'](_0x207f32,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x66ac3c){if(this['_adapter'])throw new _0x557558('track-changes-adapter-already-set',this);this['_adapter']=_0x66ac3c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2b2538=!0x1,toJSON:_0xa01797=!0x1}={}){const _0x27fcda=[];for(const _0x2548a6 of this['_suggestions']['values']())_0x2b2538&&!_0x2548a6['isInContent']||_0x27fcda['push'](_0x2548a6);return _0xa01797?_0x27fcda['map'](_0x23af5e=>_0x23af5e['toJSON']()):_0x27fcda;}['getSuggestion'](_0x3658cb){const _0x520512=this['_suggestions']['get'](_0x3658cb);if(!_0x520512)throw new _0x557558('track-changes-suggestion-not-found',this);return _0x520512;}['hasSuggestion'](_0x993228){return this['_suggestions']['has'](_0x993228);}['addSuggestionData'](_0x524059){const {authorId:_0x1d8942,id:_0x3da056,attributes:_0x59efac}=_0x524059,[_0x1313b7,_0x50f449]=_0x524059['type']['split'](':'),_0x31e945=this['_suggestions']['get'](_0x3da056)||this['_createSuggestion'](_0x1313b7,_0x50f449,_0x3da056,_0x1d8942,_0x59efac);if(this['_addThreadToSuggestion'](_0x31e945),this['_checkSuggestionCorrectness'](_0x31e945,_0x1313b7,_0x50f449||null,_0x1d8942),_0x31e945['createdAt']=_0x524059['createdAt'],_0x31e945['_isDataLoaded']=!0x0,_0x59efac&&_0x59efac['@external']){const _0x407f07=_0x59efac['@external'],_0x2d94d4=this['_getExternalAuthor'](_0x407f07['authorName']);_0x31e945['authoredAt']=_0x407f07['createdAt'],_0x31e945['author']=_0x2d94d4,_0x31e945['isExternal']=!0x0;}else _0x31e945['authoredAt']=_0x524059['createdAt'];switch(_0x524059['data']&&(_0x31e945['data']=_0x524059['data']),_0x524059['attributes']&&(_0x31e945['attributes']=_0x524059['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x31e945['_saved']=!0x0),this['_suggestionState']['get'](_0x31e945)){case'notReady':this['_suggestionState']['set'](_0x31e945,'dataReady');break;case'markerReady':_0x31e945['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x31e945])),this['_refreshSuggestionsChain'](new Set([_0x31e945])),this['_suggestionState']['set'](_0x31e945,'ready'),this['fire']('suggestionLoaded',_0x31e945)):this['_suggestionState']['set'](_0x31e945,'removed');}return _0x31e945;}['acceptSuggestion'](_0x1e3629){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4cdecf of _0x1e3629['getAllAdjacentSuggestions']())_0x4cdecf['accept']();});});}['discardSuggestion'](_0x366d1c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x209c1e of _0x366d1c['getAllAdjacentSuggestions']())_0x209c1e['discard']();});});}['enableCommand'](_0x1092e8,_0x38f9cc){const _0xd6e9da=this['editor']['commands']['get'](_0x1092e8);if(!_0xd6e9da)throw new _0x557558('track-changes-command-not-found',this,{'commandName':_0x1092e8});if(this['_enabledCommands']['has'](_0xd6e9da))throw new _0x557558('track-changes-enable-command-twice',this,{'commandName':_0x1092e8});this['_enabledCommands']['add'](_0xd6e9da),_0x38f9cc&&_0xd6e9da['on']('execute',(_0x1c5041,_0x20e3be)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20e3be['length']>0x0&&_0x20e3be[_0x20e3be['length']-0x1]&&_0x20e3be[_0x20e3be['length']-0x1]['forceDefaultExecution']?_0x20e3be['pop']():(_0x1c5041['return']=_0x38f9cc((..._0x548802)=>_0xd6e9da['execute'](..._0x548802,{'forceDefaultExecution':!0x0}),..._0x20e3be),_0x1c5041['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xec1d16){let _0x58359a,_0x2981da;const _0x362854=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x58359a=_0xec1d16();}catch(_0xf15fbe){_0x2981da=_0xf15fbe;}return _0x362854||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2981da&&_0x557558['rethrowUnexpectedError'](_0x2981da,this),_0x58359a;}['markInsertion'](_0x5b884a,_0x2758d9=null,_0x3a779b={}){if(_0x5b884a['isCollapsed'])return null;const _0x21b2b5=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4fa64b,meta:_0x50148d}of this['_findSuggestions'](_0x5b884a,'insertion'))if(_0x50148d['isOwn']){if(!_0x50148d['isNextTo']){if(_0x50148d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x4fa64b,_0x3a779b))continue;return _0x4fa64b;}if(Lt(_0x4fa64b,_0x3a779b))return _0x4fa64b;this['_breakSuggestionMarker'](_0x4fa64b,_0x5b884a['start'],_0x5b884a['end']);break;}if(_0x2758d9==_0x4fa64b['subType']&&Lt(_0x4fa64b,_0x3a779b)){const _0x89c2d2=_0x4fa64b['getFirstRange']();return _0x89c2d2['start']['isEqual'](_0x5b884a['end'])?this['_setSuggestionRange'](_0x4fa64b,this['_model']['createRange'](_0x5b884a['start'],_0x89c2d2['end'])):this['_setSuggestionRange'](_0x4fa64b,this['_model']['createRange'](_0x89c2d2['start'],_0x5b884a['end'])),_0x4fa64b;}}const _0x26a487=_0xd433a3(),_0x493957=_0x21b2b5['id'],_0x28dfdb=_0x2758d9?'insertion:'+_0x2758d9:'insertion',_0x4eeae0=this['_setSuggestionData']({'id':_0x26a487,'type':_0x28dfdb,'createdAt':new Date(),'authorId':_0x493957,'attributes':_0x3a779b});return this['_addSuggestionMarker'](_0x28dfdb,_0x26a487,_0x493957,_0x5b884a),_0x4eeae0;}['markMultiRangeInsertion'](_0x34d817,_0x3c1a09='multi',_0x18864c={}){const _0x1dc38d=this['editor']['plugins']['get']('Users')['me'],_0x127926=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3c1a09,'join');for(const _0x9147e8 of this['getSuggestions']())if(_0x9147e8['author']['id']==_0x1dc38d['id']&&'insertion'==_0x9147e8['type']&&_0x9147e8['subType']==_0x3c1a09&&Lt(_0x9147e8,_0x18864c)&&(_0x127926(_0x9147e8['getRanges'](),_0x34d817)||_0x127926(_0x34d817,_0x9147e8['getRanges']()))){for(const _0x53acab of _0x34d817)_0x9147e8['addRange'](_0x53acab);return _0x9147e8;}for(const {suggestion:_0x295fe1,meta:_0x4e6df8}of this['_findSuggestions'](_0x34d817,'insertion')){if(!_0x4e6df8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4e6df8['containsRangeInObject'])continue;if(!Lt(_0x295fe1,_0x18864c))continue;let _0x9921f7=!0x0;for(const _0x6eb76e of _0x295fe1['getRanges']())for(const _0x3de8b8 of _0x34d817)if(!_0x6eb76e['containsRange'](_0x3de8b8)){_0x9921f7=!0x1;break;}if(_0x9921f7)return _0x295fe1;}const _0x36719f=_0xd433a3(),_0x3ce5b8=_0x1dc38d['id'],_0x5983b7='insertion:'+_0x3c1a09,_0x3a813d=this['_setSuggestionData']({'id':_0x36719f,'type':_0x5983b7,'createdAt':new Date(),'authorId':_0x3ce5b8,'attributes':_0x18864c});for(const _0x382507 of _0x34d817)this['_addSuggestionMarker'](_0x5983b7,_0x36719f,_0x3ce5b8,_0x382507,u['getMultiRangeId']());return _0x3a813d;}['markInlineFormat'](_0x1892f3,_0x44eb51,_0x2608d2=null,_0x5408d8={}){if(_0x2608d2=_0x2608d2||Vt(_0x44eb51),_0x1892f3['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4ac141=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2608d2,'accept');return this['forceDefaultExecution'](()=>_0x4ac141([_0x1892f3],_0x44eb51,_0x5408d8)),null;}const _0x39bda6=this['editor']['plugins']['get']('Users')['me'],_0x1dd44c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d52bb,meta:_0xa51e71}of this['_findSuggestions'](_0x1892f3,'insertion'))_0xa51e71['isOwn']&&!_0xa51e71['isInsideObject']&&_0x1dd44c['push'](..._0x3d52bb['getRanges']());}const _0x139e92=function(_0x5ad590,_0x3f197c){const _0x42c99e=[];for(const _0x37d549 of _0x3f197c){const _0xc1b166=_0x5ad590['getIntersection'](_0x37d549);_0xc1b166&&_0x42c99e['push'](_0xc1b166);}return _0x42c99e;}(_0x1892f3,_0x1dd44c),_0x1209c3=function(_0x4a5af6,_0x43b710){const _0x4893aa=[_0x4a5af6];for(const _0x26d0f2 of _0x43b710){let _0x3967c0=0x0;for(;_0x3967c0<_0x4893aa['length'];){const _0x2b3779=_0x4893aa[_0x3967c0]['getDifference'](_0x26d0f2);_0x4893aa['splice'](_0x3967c0,0x1,..._0x2b3779),_0x3967c0+=_0x2b3779['length'];}}return _0x4893aa;}(_0x1892f3,_0x1dd44c);_0x139e92['length']&&this['_model']['change'](()=>{for(const _0x4b70a0 of _0x139e92){const _0x5d6aba=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2608d2,'accept');this['forceDefaultExecution'](()=>_0x5d6aba([_0x4b70a0],_0x44eb51,_0x5408d8));}});for(const _0x32828e of _0x1209c3){let _0x4add33=null,_0x6c1282=_0x32828e['start'],_0x22026a=_0x32828e['end'];for(const {suggestion:_0x8553be,meta:_0x18a50e}of this['_findSuggestions'](_0x32828e,'formatInline')){if(!_0x18a50e['isOwn'])continue;if(_0x8553be['subType']!=_0x2608d2)continue;if(!Lt(_0x8553be,_0x5408d8))continue;const _0x39a2fa=_0x8553be['getFirstRange']();if(_0x39a2fa['containsRange'](_0x32828e,!0x0))return null;_0x6c1282=_0x6c1282['isBefore'](_0x39a2fa['start'])?_0x6c1282:_0x39a2fa['start'],_0x22026a=_0x22026a['isAfter'](_0x39a2fa['end'])?_0x22026a:_0x39a2fa['end'],_0x4add33?_0x39a2fa['start']['isBefore'](_0x4add33['getFirstRange']()['start'])?(_0x4add33['removeMarkers'](),_0x4add33=_0x8553be):_0x8553be['removeMarkers']():_0x4add33=_0x8553be;}const _0xaf1312=this['_model']['createRange'](_0x6c1282,_0x22026a);if(_0x4add33)this['_setSuggestionRange'](_0x4add33,_0xaf1312);else{const _0x5a7704=_0xd433a3(),_0x5ac0df=_0x39bda6['id'];this['_setSuggestionData']({'id':_0x5a7704,'type':'formatInline:'+_0x2608d2,'data':_0x44eb51,'createdAt':new Date(),'authorId':_0x5ac0df,'attributes':_0x5408d8}),this['_addSuggestionMarker']('formatInline:'+_0x2608d2,_0x5a7704,_0x5ac0df,_0xaf1312);}}return null;}['markBlockFormat'](_0x1e04e1,_0x43447d,_0x2895d0=[],_0x38e23f=null,_0x11d0fc={}){_0x43447d['formatGroupId']||(_0x43447d['formatGroupId']=_0x43447d['commandName']),_0x43447d['multipleBlocks']=_0x1e04e1['is']('range'),_0x38e23f=_0x38e23f||Vt(_0x43447d);const _0x1a78af=_0x2895d0['map'](_0x5ead0b=>Gt(_0x5ead0b,this['_model'])),_0x803af=_0x1e04e1['is']('range')?_0x1e04e1:Gt(_0x1e04e1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x174b7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38e23f,'accept');return this['forceDefaultExecution'](()=>_0x174b7f([_0x803af],_0x43447d,_0x11d0fc)),null;}_0x1a78af['push'](_0x803af);let _0x752e7d=!0x0;for(const _0x1d7cbb of _0x1a78af)if(!this['_rangeIsInLocalUserInsertion'](_0x1d7cbb)){_0x752e7d=!0x1;break;}if(_0x752e7d&&'always'!==this['_trackFormatChanges']){const _0x3b57f5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38e23f,'accept');return this['forceDefaultExecution'](()=>_0x3b57f5([_0x803af],_0x43447d,_0x11d0fc)),null;}let _0x5ed081=null,_0x54bfdf=_0x803af['start'],_0x45228e=_0x803af['end'];for(const {suggestion:_0x313a94,meta:_0x5e4c75}of this['_findSuggestions'](_0x803af,'formatBlock')){if(!_0x5e4c75['isOwn'])continue;if(_0x5e4c75['isNextTo']||_0x5e4c75['containsRangeInObject']||_0x5e4c75['isInsideObject'])continue;if(_0x313a94['data']['formatGroupId']!=_0x43447d['formatGroupId'])continue;if(!Lt(_0x313a94,_0x11d0fc))continue;const _0x5dd239=_0x313a94['getFirstRange']();if(_0x313a94['subType']==_0x38e23f){if(_0x5dd239['containsRange'](_0x803af,!0x0))return null;_0x54bfdf=_0x54bfdf['isBefore'](_0x5dd239['start'])?_0x54bfdf:_0x5dd239['start'],_0x45228e=_0x45228e['isAfter'](_0x5dd239['end'])?_0x45228e:_0x5dd239['end'],_0x5ed081?_0x5dd239['start']['isBefore'](_0x5ed081['getFirstRange']()['start'])?(_0x5ed081['removeMarkers'](),_0x5ed081=_0x313a94):_0x313a94['removeMarkers']():_0x5ed081=_0x313a94;}else{const _0x376603=_0x803af['getIntersection'](_0x5dd239);this['_cutOutSuggestionMarker'](_0x313a94,_0x376603);}}const _0x54f3c5=this['editor']['plugins']['get']('Users')['me'],_0x56a202=_0xd433a3(),_0x32803f=_0x54f3c5['id'];if(_0x5ed081)return this['_setSuggestionRange'](_0x5ed081,this['_model']['createRange'](_0x54bfdf,_0x45228e)),_0x5ed081;{const _0x992fdd=this['_setSuggestionData']({'id':_0x56a202,'type':'formatBlock:'+_0x38e23f,'data':_0x43447d,'createdAt':new Date(),'authorId':_0x32803f,'attributes':_0x11d0fc});return this['_addSuggestionMarker']('formatBlock:'+_0x38e23f,_0x56a202,_0x32803f,this['_model']['createRange'](_0x54bfdf,_0x45228e)),_0x992fdd;}}['markMultiRangeBlockFormat'](_0xc28751,_0x276c3b,_0x4e26c7=[],_0x223a2e=null,_0x3f914c={}){_0x276c3b['formatGroupId']||(_0x276c3b['formatGroupId']=_0x276c3b['commandName']);const _0x32199c=_0xc28751[0x0];_0x276c3b['multipleBlocks']=_0x32199c['is']('range'),_0x223a2e=_0x223a2e||Vt(_0x276c3b);const _0x1385e7=_0x4e26c7['map'](_0x4149a5=>Gt(_0x4149a5,this['_model'])),_0x98b59f=_0x32199c['is']('range')?_0xc28751:_0xc28751['map'](_0x40d61f=>Gt(_0x40d61f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x276baf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x223a2e,'accept');return this['forceDefaultExecution'](()=>_0x276baf(_0x98b59f,_0x276c3b,_0x3f914c)),null;}_0x1385e7['push'](..._0x98b59f);let _0x146189=!0x0;for(const _0x33bc47 of _0x1385e7)if(!this['_rangeIsInLocalUserInsertion'](_0x33bc47)){_0x146189=!0x1;break;}if(_0x146189&&'always'!==this['_trackFormatChanges']){const _0x2fbd22=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x223a2e,'accept');return this['forceDefaultExecution'](()=>_0x2fbd22(_0x98b59f,_0x276c3b,_0x3f914c)),null;}const _0x1858ba=this['editor']['plugins']['get']('Users')['me'];for(const _0x552269 of this['getSuggestions']()){if(_0x552269['author']['id']!=_0x1858ba['id'])continue;if('formatBlock'!=_0x552269['type']||_0x552269['data']['formatGroupId']!=_0x276c3b['formatGroupId'])continue;if(!Lt(_0x552269,_0x3f914c))continue;const _0x1d24f4=_0x552269['subType']==_0x223a2e;for(let _0x3093da=0x0;_0x3093da<_0x98b59f['length'];_0x3093da++){const _0x5569eb=_0x98b59f[_0x3093da];for(const _0x24dc25 of _0x552269['getMarkers']()){const _0x3de129=_0x24dc25['getRange']();if(_0x5569eb['isEqual'](_0x3de129)){_0x1d24f4?(_0x98b59f['splice'](_0x3093da,0x1),_0x3093da--):_0x552269['removeMarker'](_0x24dc25['name']);break;}}}}if(0x0==_0x98b59f['length'])return null;const _0x2fd114=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x223a2e,'join');for(const _0x2e7b99 of this['getSuggestions']())if(_0x2e7b99['author']['id']==_0x1858ba['id']&&'formatBlock'==_0x2e7b99['type']&&_0x2e7b99['data']['formatGroupId']==_0x276c3b['formatGroupId']&&_0x2e7b99['subType']==_0x223a2e&&Lt(_0x2e7b99,_0x3f914c)&&(_0x2fd114(_0x2e7b99['getRanges'](),_0x98b59f)||_0x2fd114(_0x98b59f,_0x2e7b99['getRanges']()))){for(const _0x2e8310 of _0x98b59f)_0x2e7b99['addRange'](_0x2e8310);return _0x2e7b99;}const _0x35d43c=_0xd433a3(),_0x3738af=_0x1858ba['id'],_0x5ad68f='formatBlock:'+_0x223a2e,_0x3876be=this['_setSuggestionData']({'id':_0x35d43c,'type':_0x5ad68f,'data':_0x276c3b,'createdAt':new Date(),'authorId':_0x3738af,'attributes':_0x3f914c});for(const _0x2a2ff3 of _0x98b59f)this['_addSuggestionMarker'](_0x5ad68f,_0x35d43c,_0x3738af,_0x2a2ff3,u['getMultiRangeId']());return _0x3876be;}['markDeletion'](_0xb9142a,_0x29d35d=null,_0x2a2cb8={}){if(_0xb9142a['isCollapsed'])return null;const _0xddc698=this['editor']['plugins']['get']('Users')['me'],_0x2834c6=new _0x3b60af(_0xb9142a['start'],_0xb9142a['end']);for(const {suggestion:_0x488c34,meta:_0x23a6a4}of this['_findSuggestions'](_0x2834c6,'insertion'))if(_0x23a6a4['isOwn']&&!_0x23a6a4['isNextTo']){if(_0x488c34['isMultiRange']){const _0x20f875=_0x488c34['getRanges']()['filter'](_0x376aa8=>'$graveyard'!=_0x376aa8['root']['rootName']);_0x20f875['every'](_0xa46897=>_0x2834c6['containsRange'](_0xa46897,!0x0))&&_0x488c34['discard']();if(_0x20f875['some'](_0x1f0aa5=>_0x1f0aa5['containsRange'](_0x2834c6,!0x0))){const _0x6961ae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29d35d,'accept');return this['forceDefaultExecution'](()=>_0x6961ae([_0x2834c6],null,_0x2a2cb8)),null;}}else{const _0x332c00=_0x2834c6['getIntersection'](_0x488c34['getFirstRange']());null!==_0x332c00&&_0x488c34['_onDiscard']([_0x332c00],null,_0x2a2cb8);}}if(_0x2834c6['detach'](),_0x2834c6['isCollapsed']||'$graveyard'==_0x2834c6['root']['rootName'])return null;let _0x48392f=null,_0x5cdfab=_0x2834c6['start'],_0x1d995f=_0x2834c6['end'];const _0x502224=this['_findSuggestions'](_0x2834c6,'deletion');for(const {suggestion:_0x5a3023,meta:_0x239fef}of _0x502224){const _0x4c3126=this['_model']['createRange'](_0x5cdfab,_0x1d995f);if(_0x239fef['isOwn']&&(this['_mergeNestedSuggestions']||!_0x239fef['containsRangeInObject']&&!_0x239fef['isInsideObject'])){if(_0x5a3023['isMultiRange']){if(!Lt(_0x5a3023,_0x2a2cb8))continue;let _0x37ff4c=!0x0;for(const _0x3c8b98 of _0x5a3023['getRanges']()){if(_0x3c8b98['containsRange'](_0x4c3126,!0x0))return _0x5a3023;_0x4c3126['containsRange'](_0x3c8b98)||(_0x37ff4c=!0x1);}_0x37ff4c&&_0x5a3023['discard']();}else{const _0x339bc4=_0x5a3023['getFirstRange']();if(_0x339bc4['containsRange'](_0x4c3126,!0x0))return _0x5a3023;if(!Lt(_0x5a3023,_0x2a2cb8)){_0x4c3126['containsRange'](_0x339bc4)?_0x5a3023['removeMarkers']():_0x339bc4['containsPosition'](_0x5cdfab)?_0x5cdfab=_0x339bc4['end']:_0x339bc4['containsPosition'](_0x1d995f)&&(_0x1d995f=_0x339bc4['start']);continue;}_0x5cdfab=_0x5cdfab['isBefore'](_0x339bc4['start'])?_0x5cdfab:_0x339bc4['start'],_0x1d995f=_0x1d995f['isAfter'](_0x339bc4['end'])?_0x1d995f:_0x339bc4['end'],_0x2a2cb8=Object['assign']({},_0x5a3023['attributes']),_0x48392f?_0x339bc4['start']['isBefore'](_0x48392f['getFirstRange']()['start'])?(_0x48392f['removeMarkers'](),_0x48392f=_0x5a3023):_0x5a3023['removeMarkers']():_0x48392f=_0x5a3023;}}}if(_0x48392f)return this['_setSuggestionRange'](_0x48392f,this['_model']['createRange'](_0x5cdfab,_0x1d995f)),_0x48392f;{const _0x4427b9=_0xd433a3(),_0x240737=this['_model']['createRange'](_0x5cdfab,_0x1d995f),_0x2b6b4b=_0xddc698['id'],_0x2a8c7d=_0x29d35d?'deletion:'+_0x29d35d:'deletion',_0x50826b=this['_setSuggestionData']({'id':_0x4427b9,'type':_0x2a8c7d,'createdAt':new Date(),'authorId':_0x2b6b4b,'attributes':_0x2a2cb8});return this['_addSuggestionMarker'](_0x2a8c7d,_0x4427b9,_0x2b6b4b,_0x240737),_0x50826b;}}['markMultiRangeDeletion'](_0x218b69,_0x13ff01='multi',_0x3b6eac={}){const _0x5b329a=this['editor']['plugins']['get']('Users')['me'],_0x2e2aab=_0x218b69['map'](_0x15fc1c=>new _0x3b60af(_0x15fc1c['start'],_0x15fc1c['end'])),_0x53be6e=new Set();for(const {suggestion:_0x3a0046,meta:_0x300b25}of this['_findSuggestions'](_0x2e2aab,'insertion'))_0x300b25['isOwn']&&!_0x300b25['isNextTo']&&_0x53be6e['add'](_0x3a0046);for(const _0x2438f2 of _0x53be6e)if(_0x2438f2['isMultiRange']){const _0x56424f=_0x2438f2['getRanges']();(!_0x2438f2['attributes']||!_0x2438f2['attributes']['skipNestingCheck'])&&(_0x56424f['every'](_0x252ac1=>_0x2e2aab['some'](_0x477bfc=>_0x477bfc['containsRange'](_0x252ac1,!0x0)))&&_0x2438f2['discard']());if(_0x2e2aab['every'](_0x3a0117=>_0x56424f['some'](_0x50ad1b=>_0x50ad1b['containsRange'](_0x3a0117,!0x0)))){const _0x2cd073=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x13ff01,'accept');return this['forceDefaultExecution'](()=>_0x2cd073(_0x218b69,null,_0x3b6eac)),null;}}else{const _0x1d9848=_0x2438f2['getFirstRange']();_0x2e2aab['some'](_0x17a433=>_0x17a433['containsRange'](_0x1d9848,!0x0))&&_0x2438f2['discard']();if(_0x2e2aab['every'](_0xec9641=>_0x1d9848['containsRange'](_0xec9641,!0x0))){const _0xf99e9f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x13ff01,'accept');return this['forceDefaultExecution'](()=>_0xf99e9f(_0x2e2aab,null,_0x3b6eac)),null;}}const _0x32d016=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x13ff01,'join');let _0x20212a=null;for(const _0x143f96 of this['getSuggestions']())if(_0x143f96['author']['id']==_0x5b329a['id']&&_0x143f96['isInContent']&&'deletion'==_0x143f96['type']&&_0x143f96['subType']==_0x13ff01&&Lt(_0x143f96,_0x3b6eac)&&(_0x32d016(_0x143f96['getRanges'](),_0x2e2aab)||_0x32d016(_0x2e2aab,_0x143f96['getRanges']()))){if(_0x20212a){if(_0x143f96['commentThread']&&_0x143f96['commentThread']['length'])continue;for(const _0x155c26 of _0x143f96['getRanges']())_0x20212a['isIntersectingWithRange'](_0x155c26)||_0x20212a['addRange'](_0x155c26);_0x143f96['removeMarkers']();}else{_0x20212a=_0x143f96;for(const _0x38f2a0 of _0x2e2aab)_0x143f96['isIntersectingWithRange'](_0x38f2a0)||_0x143f96['addRange'](_0x38f2a0);}}if(_0x20212a)return _0x20212a;_0x53be6e['clear']();for(const {suggestion:_0x5e1859,meta:_0x425e28}of this['_findSuggestions'](_0x2e2aab,'deletion'))_0x425e28['isOwn']&&(this['_mergeNestedSuggestions']||!_0x425e28['containsRangeInObject']&&!_0x425e28['isInsideObject'])&&Lt(_0x5e1859,_0x3b6eac)&&_0x53be6e['add'](_0x5e1859);for(const _0x4145f6 of _0x53be6e){const _0x316367=_0x4145f6['getRanges']();if(!_0x3b6eac||!_0x3b6eac['skipNestingCheck']){if(_0x2e2aab['every'](_0x53921d=>_0x316367['some'](_0x30a7a9=>_0x30a7a9['containsRange'](_0x53921d,!0x0))))return _0x4145f6;}(!_0x4145f6['attributes']||!_0x4145f6['attributes']['skipNestingCheck'])&&(_0x316367['every'](_0x343229=>_0x2e2aab['some'](_0x393c23=>_0x393c23['containsRange'](_0x343229,!0x0)))&&_0x4145f6['discard']());}const _0x2dd9bd=_0xd433a3(),_0x508e34=_0x5b329a['id'],_0x3a2e24='deletion:'+_0x13ff01,_0x23e71c=this['_setSuggestionData']({'id':_0x2dd9bd,'type':_0x3a2e24,'createdAt':new Date(),'authorId':_0x508e34,'attributes':_0x3b6eac});for(const _0x424daf of _0x2e2aab)_0x424daf['detach'](),_0x424daf['isCollapsed']||'$graveyard'==_0x424daf['root']['rootName']||this['_addSuggestionMarker'](_0x3a2e24,_0x2dd9bd,_0x508e34,_0x424daf,u['getMultiRangeId']());return _0x23e71c;}['markAttributeChange'](_0x19e033,_0x3a77d3,_0x7ae642,_0x2a1f77,_0x502a60){if(_0x19e033['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x589a7f=this['editor']['plugins']['get']('Users')['me']['id'],_0x861508=Array['from'](this['_suggestions']['values']())['filter'](_0x430952=>'attribute'==_0x430952['type']&&_0x430952['data']['key']==_0x3a77d3&&_0x430952['isIntersectingWithRange'](_0x19e033));if('default'===this['_trackFormatChanges']){const _0x22e4d7=this['_findSuggestions'](_0x19e033,'insertion')['filter'](({meta:_0x36a09a})=>_0x36a09a['isOwn']&&!_0x36a09a['isInsideObject']&&!_0x36a09a['isNextTo'])['map'](({suggestion:_0x42bfa1})=>_0x42bfa1);_0x861508['unshift'](..._0x22e4d7);}const _0x292c86=new Map([[_0x19e033,_0x7ae642]]);for(const _0x1987ae of _0x861508){const _0x2319d7='attribute'==_0x1987ae['type']?_0x1987ae['data']['oldValue']:void 0x0,_0x5908c8=_0x1987ae['getFirstRange'](),_0x126fca=Array['from'](_0x292c86['keys']())['find'](_0x22f3e=>_0x22f3e['isIntersecting'](_0x5908c8));if(!_0x126fca)continue;const _0x415fc6=_0x126fca['getDifference'](_0x5908c8);this['_isBlockAttribute'](_0x3a77d3)&&'insertion'==_0x1987ae['type']&&0x0!=_0x415fc6['length']||(_0x292c86['delete'](_0x126fca),_0x415fc6['forEach'](_0x27c517=>{_0x292c86['set'](_0x27c517,_0x7ae642);}),'insertion'!=_0x1987ae['type']&&_0x2319d7!=_0x2a1f77&&_0x292c86['set'](_0x126fca['getIntersection'](_0x5908c8),_0x2319d7));}const _0x257247=[];for(const [_0x3e6166,_0x9c9ff8]of _0x292c86){const _0x392ac4=_0xd433a3(),_0x4efd57={'key':_0x3a77d3,'oldValue':_0x9c9ff8,'newValue':_0x2a1f77};_0x3a77d3['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':_0x3a77d3});const _0x14dff5=('attribute:'+(_0x3a77d3+'|'+Vt({'newValue':_0x2a1f77})))['substring'](0x0,0x3c),_0x3c8482=this['_setSuggestionData']({'id':_0x392ac4,'type':_0x14dff5,'data':_0x4efd57,'createdAt':new Date(),'authorId':_0x589a7f,'attributes':_0x502a60});_0x257247['push'](_0x3c8482),this['_addSuggestionMarker'](_0x14dff5,_0x392ac4,_0x589a7f,_0x3e6166);}return _0x257247;}['enableDefaultAttributesIntegration'](_0x5581b9){this['enableCommand'](_0x5581b9,(_0x4e6be2,..._0x37b70c)=>{this['_recordAttributeChanges'](()=>{_0x4e6be2(..._0x37b70c);});});}['registerBlockAttribute'](_0x1b13f5){this['_blockAttributeKeys']['add'](_0x1b13f5);}['registerInlineAttribute'](_0x1ec238){this['_inlineAttributeKeys']['add'](_0x1ec238);}['_getAttributeKey'](_0x1e5183){return'attribute'==_0x1e5183['type']?_0x1e5183['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x270c04,_0x3e021e){const _0x2555ed=_0x270c04['getFirstMarker']();this['_model']['change'](_0x58b640=>{_0x58b640['updateMarker'](_0x2555ed,{'range':_0x3e021e});});}['_addThreadToSuggestion'](_0x4edbcc){const _0x3af847=_0x4edbcc['id'],_0x3ba33c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3af847)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ba33c,'threadId':_0x3af847,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xfd55f4=this['_commentsRepository']['getCommentThread'](_0x3af847);_0xfd55f4['unbind']('isRemovable'),_0xfd55f4['isRemovable']=!0x1,_0x4edbcc['commentThread']=_0xfd55f4;}['_checkSuggestionCorrectness'](_0x155a53,_0xcbb40f,_0x480adc,_0x318ca5){if(_0x155a53['type']!=_0xcbb40f||_0x155a53['subType']!=_0x480adc||_0x155a53['creator']['id']!=_0x318ca5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x557558('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x354d58,_0x5f4121){const _0x4a3a3f=_0x354d58['getFirstRange']();if(_0x5f4121['isEqual'](_0x4a3a3f))_0x354d58['removeMarkers']();else{if(_0x4a3a3f['containsRange'](_0x5f4121)){const _0x15a4d4=this['_model']['createPositionAt'](_0x5f4121['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x354d58,this['_model']['createRange'](_0x4a3a3f['start'],_0x15a4d4));const _0x5556c3=_0xd433a3(),_0x13164f=_0x354d58['creator']['id'],_0x5cac95=_0x354d58['type']+':'+_0x354d58['subType'];this['_setSuggestionData']({'id':_0x5556c3,'type':_0x5cac95,'createdAt':new Date(),'authorId':_0x13164f,'data':_0x354d58['data'],'attributes':_0x354d58['attributes']});const _0x5f078e=this['_model']['createPositionAt'](_0x5f4121['end']['parent'],'after'),_0x35e248=this['_model']['createRange'](_0x5f078e,_0x4a3a3f['end']);this['_addSuggestionMarker'](_0x5cac95,_0x5556c3,_0x13164f,_0x35e248);}else{if(_0x4a3a3f['containsPosition'](_0x5f4121['start'])){const _0x18045d=this['_model']['createPositionAt'](_0x5f4121['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x354d58,this['_model']['createRange'](_0x4a3a3f['start'],_0x18045d));}else{const _0x1c9de3=this['_model']['createPositionAt'](_0x5f4121['end']['parent'],'after');this['_setSuggestionRange'](_0x354d58,this['_model']['createRange'](_0x1c9de3,_0x4a3a3f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3734eb){for(const {suggestion:_0x4e7acb,meta:_0x898538}of this['_findSuggestions'](_0x3734eb,'insertion')){if(!_0x898538['isOwn'])continue;const _0x35bb99=_0x4e7acb['getRanges']();for(const _0x590aad of _0x35bb99)if(!_0x3734eb['getDifference'](_0x590aad)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x21b4aa){const _0x2a6ee1=this['editor']['plugins']['get']('Users')['getUser'](_0x21b4aa);if(!_0x2a6ee1)throw new _0x557558('track-changes-user-not-found',this);return _0x2a6ee1;}['_getExternalAuthor'](_0x446629){const _0x4a161d=this['editor']['plugins']['get']('Users'),_0x34b843=_0x21916d('external:'+_0x446629),_0x454841=_0x4a161d['getUser'](_0x34b843);return _0x454841||_0x4a161d['addUser']({'id':_0x34b843,'name':_0x446629});}['_createSuggestion'](_0x1a652b,_0x477061,_0x42af79,_0x46af59,_0x5f20ec){const _0x45b3ce=this['_getAuthorFromId'](_0x46af59),_0x5cc3fb=this['_suggestionFactory']['buildSuggestion'](_0x1a652b,_0x477061,_0x42af79,_0x45b3ce,_0x5f20ec,_0x424a54=>{this['_updateSuggestionData'](_0x42af79,{'attributes':_0x424a54});const _0x3657b6=this['getSuggestion'](_0x42af79);this['_joinWithAdjacentSuggestions'](new Set([_0x3657b6])),this['_refreshSuggestionsChain'](new Set([_0x3657b6]));});return this['listenTo'](_0x5cc3fb,'accept',()=>{this['_updateSuggestionData'](_0x42af79,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5cc3fb,'discard',()=>{this['_updateSuggestionData'](_0x42af79,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x42af79,_0x5cc3fb),this['_suggestionState']['set'](_0x5cc3fb,'notReady'),_0x5cc3fb;}['_splitMarkerName'](_0x440f31){const _0x5eda7f=_0x440f31['split'](':');return{'group':_0x5eda7f[0x0],'type':_0x5eda7f[0x1],'subType':_0x5eda7f['length']>=0x5?_0x5eda7f[0x2]:null,'id':_0x5eda7f['length']<0x5?_0x5eda7f[0x2]:_0x5eda7f[0x3],'authorId':_0x5eda7f['length']<0x5?_0x5eda7f[0x3]:_0x5eda7f[0x4],'markerCount':0x6==_0x5eda7f['length']?_0x5eda7f[0x5]:null};}['_breakSuggestionMarker'](_0x129600,_0x8fce7a,_0x17c5b0){const _0x380743=_0x129600['getFirstRange'](),_0x1df160=_0x380743['start'],_0x138054=_0x380743['end'];this['_setSuggestionRange'](_0x129600,this['_model']['createRange'](_0x1df160,_0x8fce7a));const _0x38d207=_0xd433a3(),_0x45499f=_0x129600['creator']['id'],_0x1f80b4=_0x129600['type']+(_0x129600['subType']?':'+_0x129600['subType']:'');this['_setSuggestionData']({'id':_0x38d207,'type':_0x1f80b4,'createdAt':new Date(),'authorId':_0x45499f,'originalSuggestionId':_0x129600['id'],'attributes':_0x129600['attributes'],'data':_0x129600['data']});const _0x177a25=this['_getAttributeKey'](_0x129600);('formatBlock'==_0x129600['type']||_0x177a25&&this['_isBlockAttribute'](_0x177a25))&&(_0x17c5b0=this['_model']['createPositionBefore'](_0x17c5b0['parent'])),this['_addSuggestionMarker'](_0x1f80b4,_0x38d207,_0x45499f,this['_model']['createRange'](_0x17c5b0,_0x138054));}['_findSuggestions'](_0xd5a9fe,_0x1b74c7=null){const _0x5f5920=[],_0x4c5fc2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xd5a9fe)||(_0xd5a9fe=[_0xd5a9fe]);for(const _0x5db4ea of this['getSuggestions']()){if(!_0x5db4ea['isInContent'])continue;if(_0x1b74c7&&_0x5db4ea['type']!=_0x1b74c7)continue;let _0x946fb4=!0x1;for(const _0x50914a of _0x5db4ea['getRanges']()){for(const _0x158958 of _0xd5a9fe){const _0x400e50=_0x158958['start']['isEqual'](_0x50914a['end'])||_0x158958['end']['isEqual'](_0x50914a['start']);if(_0x400e50||_0x158958['getIntersection'](_0x50914a)){const _0x2740ea=_0x158958['containsRange'](_0x50914a)&&Rt(this['_model']['schema'],_0x50914a['start'],_0x158958),_0x400c51=_0x50914a['containsRange'](_0x158958)&&Rt(this['_model']['schema'],_0x158958['start'],_0x50914a);_0x5f5920['push']({'suggestion':_0x5db4ea,'meta':{'isOwn':_0x4c5fc2==_0x5db4ea['author'],'isNextTo':_0x400e50,'isInsideObject':_0x2740ea,'containsRangeInObject':_0x400c51}}),_0x946fb4=!0x0;break;}}if(_0x946fb4)break;}}return _0x5f5920;}['_addSuggestionMarker'](_0x24bb45,_0x535433,_0x1d5461,_0x525ab4,_0x2959ef){this['_model']['change'](_0x4b8a3b=>{let _0x3dd973='suggestion:'+_0x24bb45+':'+_0x535433+':'+_0x1d5461;_0x2959ef&&(_0x3dd973=_0x3dd973+':'+_0x2959ef),_0x4b8a3b['addMarker'](_0x3dd973,{'range':_0x525ab4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x403d6f){const _0x3cd3ee=_0x403d6f['previous'],_0x12de25=_0x403d6f['next'];_0x403d6f['previous']=null,_0x403d6f['next']=null,null!=_0x3cd3ee&&_0x3cd3ee['next']==_0x403d6f&&(_0x3cd3ee['next']=_0x12de25),null!=_0x12de25&&_0x12de25['previous']==_0x403d6f&&(_0x12de25['previous']=_0x3cd3ee),'ready'==this['_suggestionState']['get'](_0x403d6f)&&(this['_suggestionState']['set'](_0x403d6f,'removed'),this['fire']('suggestionUnloaded',_0x403d6f,_0x3cd3ee,_0x12de25));}['_setSuggestionData'](_0x385a3e){const _0xcf3b8c=_0x385a3e['id'],_0x59641f=this['addSuggestionData'](_0x385a3e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x52eaf8=this['editor']['plugins']['get']('PendingActions'),_0x9de834=_0x59641f['hasComments'],_0x476ba1=_0x59641f['subType']?_0x59641f['type']+':'+_0x59641f['subType']:_0x59641f['type'],_0x34024b=this['editor']['locale'],_0x40488=_0x52eaf8['add'](o(_0x34024b,'PENDING_ACTION_SUGGESTION')),_0x19f27d={'id':_0xcf3b8c,'type':_0x476ba1,'hasComments':_0x9de834,'data':_0x385a3e['data']||null,'originalSuggestionId':_0x385a3e['originalSuggestionId']||null,'attributes':_0x59641f['attributes']};this['_adapter']['addSuggestion'](_0x19f27d)['then'](_0x107a72=>{_0x59641f['_saved']=!0x0,_0x52eaf8['remove'](_0x40488),_0x107a72&&_0x107a72['createdAt']&&(this['_suggestions']['get'](_0xcf3b8c)['createdAt']=_0x107a72['createdAt']);})['catch'](_0x393460=>{throw _0x144d1b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x59641f['discard']();}),_0x59641f['stopListening'](),this['_suggestions']['delete'](_0x59641f['id']),this['_suggestionState']['delete'](_0x59641f),_0x393460;});}return _0x59641f;}['_isBlockAttribute'](_0x133d28){return this['_blockAttributeKeys']['has'](_0x133d28);}['_updateSuggestionData'](_0x17b4f4,_0x5d466d){const _0x4d1e1d=this['editor']['plugins']['get']('PendingActions'),_0x47b065=this['getSuggestion'](_0x17b4f4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x47b065['_saved']){const _0x11e01e=_0x4d1e1d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x17b4f4,_0x5d466d)['then'](()=>{_0x4d1e1d['remove'](_0x11e01e);});}else _0x47b065['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x17b4f4,_0x5d466d);});}}['_getSuggestionData'](_0x3b17ea){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x557558('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3b17ea);}['_handleNewSuggestionMarker'](_0x2dc935){const {id:_0x3861b1,type:_0x39bf59,subType:_0x36c479,authorId:_0x18097e}=this['_splitMarkerName'](_0x2dc935),_0x5d9ddc=this['_suggestions']['get'](_0x3861b1)||this['_createSuggestion'](_0x39bf59,_0x36c479,_0x3861b1,_0x18097e,{});switch(this['_checkSuggestionCorrectness'](_0x5d9ddc,_0x39bf59,_0x36c479,_0x18097e),this['_suggestionState']['get'](_0x5d9ddc)){case'notReady':this['_getSuggestionData'](_0x3861b1)['then'](_0x2aa24e=>{let _0x1a8037=Promise['resolve']();_0x2aa24e['hasComments']&&(_0x1a8037=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3861b1})),_0x1a8037['then'](()=>{this['addSuggestionData'](_0x2aa24e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5d9ddc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3861b1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5d9ddc,'ready'),this['fire']('suggestionLoaded',_0x5d9ddc);break;case'ready':this['fire']('suggestionChanged',_0x5d9ddc);}return _0x5d9ddc['addMarkerName'](_0x2dc935),_0x5d9ddc;}['_refreshSuggestionsChain'](_0xd88d8a){const _0x22bfe7=Array['from'](_0xd88d8a),_0xc6fa2e=_0x22bfe7['filter'](_0x3f56c0=>'attribute'==_0x3f56c0['type']);this['_refreshAttributeSuggestionsChain'](_0xc6fa2e);const _0x285549=_0x22bfe7['filter'](_0x2c5400=>!_0x2c5400['isMultiRange']&&'attribute'!=_0x2c5400['type']),_0x2ca21d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12db2c=>!_0x12db2c['isMultiRange']&&'attribute'!=_0x12db2c['type']),_0x50f383=_0x2ca21d['filter'](_0x333daf=>!_0xd88d8a['has'](_0x333daf)),_0x233f4e=new Map(_0x2ca21d['map'](_0x17ddb1=>[_0x17ddb1,this['_suggestionFactory']['getSuggestionCallback'](_0x17ddb1['type'],_0x17ddb1['subType'],'chain')])),_0x27f7a2=new Map(_0x2ca21d['map'](_0x1f6172=>[_0x1f6172,_0x1f6172['getFirstRange']()])),_0x2f6960=new Set(),_0x79ffd4=new Set();for(let _0x34ec17=0x0;_0x34ec17<_0x285549['length'];_0x34ec17++)_0x153cb7(_0x285549[_0x34ec17],_0x285549,_0x34ec17+0x1);for(let _0x47c6af=0x0;_0x47c6af<_0x285549['length'];_0x47c6af++)_0x153cb7(_0x285549[_0x47c6af],_0x50f383,0x0);const _0x476554=new Set();for(let _0x2ba266=0x0;_0x2ba266<_0x285549['length'];_0x2ba266++){const _0x1aa378=_0x285549[_0x2ba266];!_0x79ffd4['has'](_0x1aa378)&&_0x1aa378['previous']&&(_0x476554['add'](_0x1aa378['previous']),_0x1aa378['previous']['next']===_0x1aa378&&(_0x1aa378['previous']['next']=null),_0x1aa378['previous']=null),!_0x2f6960['has'](_0x1aa378)&&_0x1aa378['next']&&(_0x476554['add'](_0x1aa378['next']),_0x1aa378['next']['previous']===_0x1aa378&&(_0x1aa378['next']['previous']=null),_0x1aa378['next']=null);}function _0x153cb7(_0x50226d,_0x3c8b52,_0x72dce5){for(let _0x199466=_0x72dce5;_0x199466<_0x3c8b52['length'];_0x199466++){const _0x37312d=_0x186dbb(_0x50226d,_0x3c8b52[_0x199466]);_0x37312d&&(_0x37312d[0x0]['next']=_0x37312d[0x1],_0x37312d[0x1]['previous']=_0x37312d[0x0],_0x2f6960['add'](_0x37312d[0x0]),_0x79ffd4['add'](_0x37312d[0x1]));}}function _0x186dbb(_0x509cb1,_0x41a833){if(_0x509cb1['author']['id']!==_0x41a833['author']['id'])return null;const _0x42d976=_0x233f4e['get'](_0x509cb1)(_0x509cb1,_0x41a833,_0x27f7a2['get'](_0x509cb1),_0x27f7a2['get'](_0x41a833));if(!_0x42d976)return null;return _0x233f4e['get'](_0x41a833)(_0x509cb1,_0x41a833,_0x27f7a2['get'](_0x509cb1),_0x27f7a2['get'](_0x41a833))?_0x42d976[0x1]['commentThread']&&_0x42d976[0x1]['commentThread']['length']?null:_0x42d976:null;}_0x476554['size']&&this['_refreshSuggestionsChain'](_0x476554);}['_refreshAttributeSuggestionsChain'](_0x19c4a1){if(0x0==_0x19c4a1['length'])return;const _0xfaecc4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e96ad=>'attribute'==_0x4e96ad['type']&&_0x4e96ad['_isDataLoaded']),_0x4f340b=[],_0x132b48=new Map();for(const _0x14207e of _0xfaecc4){const _0x7c79cf=_0x21916d(_0x14207e['attributes']);_0x132b48['has'](_0x7c79cf)||(_0x132b48['set'](_0x7c79cf,_0x4f340b['length']),_0x4f340b['push']([]));const _0xeea0f8=_0x132b48['get'](_0x7c79cf);_0x4f340b[_0xeea0f8]['push'](_0x14207e);}!(function(){_0x4f340b['sort']((_0x14c4b6,_0xfd36a9)=>{const _0x3e271f=_0x14c4b6[0x0]['createdAt'],_0x1d1c4a=_0xfd36a9[0x0]['createdAt'];return _0x3e271f==_0x1d1c4a?_0x14c4b6[0x0]['attributes']['groupId']<_0xfd36a9[0x0]['attributes']['groupId']?-0x1:0x1:_0x3e271f<_0x1d1c4a?-0x1:0x1;});for(const _0x14c645 of _0x4f340b)_0x14c645['sort']((_0x48f573,_0x2702b2)=>_0x48f573['id']<_0x2702b2['id']?-0x1:0x1);}());for(let _0x517e23=0x0;_0x517e23<_0x4f340b['length'];_0x517e23++){if(0x0==_0x4f340b[_0x517e23]['length'])continue;const _0x128a76=[];for(let _0x17a9f9=_0x517e23+0x1;_0x17a9f9<_0x4f340b['length'];_0x17a9f9++)0x0!=_0x4f340b[_0x17a9f9]['length']&&_0x5f362b(_0x4f340b[_0x517e23],_0x4f340b[_0x17a9f9])&&_0x128a76['push'](_0x17a9f9);for(const _0x25849d of _0x128a76)_0x4f340b[_0x517e23]=_0x4f340b[_0x517e23]['concat'](_0x4f340b[_0x25849d]),_0x4f340b[_0x25849d]=[];}for(const _0x46b6a2 of _0x4f340b)for(let _0x442100=0x0;_0x442100<_0x46b6a2['length'];_0x442100++)_0x46b6a2[_0x442100]['next']=_0x46b6a2[_0x442100+0x1]||null;for(const _0x130d76 of _0x4f340b)for(let _0x361292=0x0;_0x361292<_0x130d76['length'];_0x361292++)_0x130d76[_0x361292]['previous']=_0x130d76[_0x361292-0x1]||null;function _0x5f362b(_0x5c0943,_0x2d51b6){if(_0x5c0943[0x0]['attributes']['groupId']!==_0x2d51b6[0x0]['attributes']['groupId']&&_0x5c0943[0x0]['author']!==_0x2d51b6[0x0]['author'])return!0x1;if(!function(_0x438a6e,_0x37e107){if(!_0x438a6e['hasComments']&&!_0x37e107['hasComments'])return!0x0;if(_0x438a6e['hasComments']&&_0x37e107['hasComments'])return!0x1;if(_0x438a6e['hasComments']&&_0x37e107['createdAt']<_0x438a6e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x37e107['hasComments']&&_0x438a6e['createdAt']<_0x37e107['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5c0943[0x0],_0x2d51b6[0x0]))return!0x1;const _0x177510=Bt(_0x5c0943[0x0]['attributes'],'groupId'),_0x6d6d7c=Bt(_0x2d51b6[0x0]['attributes'],'groupId');if(!_0x4cf88d(_0x177510,_0x6d6d7c))return!0x1;return!!_0x5c0943['every'](_0x330147=>_0x2d51b6['some'](_0x3b892f=>_0x330147['getFirstRange']()['isEqual'](_0x3b892f['getFirstRange']())))&&_0x2d51b6['every'](_0x67a319=>_0x5c0943['some'](_0x15d335=>_0x67a319['getFirstRange']()['isEqual'](_0x15d335['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3251fc){const _0x303264=Array['from'](_0x3251fc),_0x2615e1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1d9a76=_0x2615e1['filter'](_0x1d4b85=>!_0x3251fc['has'](_0x1d4b85)),_0x15551a=new Map(_0x303264['map'](_0x49f2de=>[_0x49f2de,this['_suggestionFactory']['getSuggestionCallback'](_0x49f2de['type'],_0x49f2de['subType'],'join')])),_0x54b245=new Map(_0x2615e1['map'](_0x26703a=>[_0x26703a,_0x26703a['getRanges']()]));for(let _0x14b008=0x0;_0x14b008<_0x303264['length'];_0x14b008++){if(_0xac1328(this,_0x303264[_0x14b008],_0x303264,_0x14b008+0x1))return!0x0;}for(let _0x27db4c=0x0;_0x27db4c<_0x303264['length'];_0x27db4c++){if(_0xac1328(this,_0x303264[_0x27db4c],_0x1d9a76,0x0))return!0x0;}return!0x1;function _0xac1328(_0x258127,_0x14fb4a,_0x206636,_0x31757e){for(let _0x5b1321=_0x31757e;_0x5b1321<_0x206636['length'];_0x5b1321++){const _0x11bf11=_0x206636[_0x5b1321];if(_0x11bf11['type']!==_0x14fb4a['type']||_0x11bf11['author']['id']!==_0x14fb4a['author']['id']||_0x11bf11['subType']!==_0x14fb4a['subType'])continue;if(!Pt(_0x14fb4a,_0x11bf11,['groupId']))continue;if('attribute'==_0x14fb4a['type']&&_0x14fb4a['data']['oldValue']!=_0x11bf11['data']['oldValue'])continue;if('attribute'==_0x14fb4a['type']&&_0x258127['_isBlockAttribute'](_0x14fb4a['data']['key']))continue;if('formatBlock'==_0x14fb4a['type']){const _0x49f5e6=_0x258127['editor']['model'],_0x5642eb=_0x14fb4a['getContainedElement']();if(_0x5642eb&&(_0x49f5e6['schema']['isObject'](_0x5642eb)||_0x49f5e6['schema']['isLimit'](_0x5642eb)))continue;}const _0x50f88b=_0x15551a['get'](_0x14fb4a),_0x20025a=_0x54b245['get'](_0x14fb4a),_0xf3c208=_0x54b245['get'](_0x11bf11),_0x585c37=_0x14fb4a['commentThread']&&_0x14fb4a['commentThread']['length'],_0xa91de9=_0x11bf11['commentThread']&&_0x11bf11['commentThread']['length'];if(!_0x585c37&&_0x50f88b(_0xf3c208,_0x20025a))return _0x258127['_joinSuggestions'](_0x11bf11,_0x14fb4a),_0x54b245['delete'](_0x14fb4a),!0x0;if(!_0xa91de9&&_0x50f88b(_0x20025a,_0xf3c208))return _0x258127['_joinSuggestions'](_0x14fb4a,_0x11bf11),_0x54b245['delete'](_0x11bf11),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1135ae,_0x3a17a2){if(_0x1135ae['isMultiRange']){for(const _0xaba1a9 of _0x3a17a2['getRanges']())_0x1135ae['addRange'](_0xaba1a9);}else{const _0x6b56b2=_0x3a17a2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1135ae,this['_model']['createRange'](_0x1135ae['getFirstRange']()['start'],_0x6b56b2));}_0x3a17a2['removeMarkers']();}['_getMarkerAnnouncementText'](_0xd3d731,_0x1cae2b){const _0x210701=_0xd3d731['startsWith']('format')||_0xd3d731['startsWith']('attribute')?'FORMATTING':_0xd3d731['toUpperCase']();return o(this['editor']['locale'],_0x1cae2b+'_'+_0x210701+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4124d1=this['editor'];if(!_0x4124d1['ui'])return;const {ariaLiveAnnouncer:_0xbd299f}=_0x4124d1['ui'];_0x42bdde(this['_model'],({left:_0x41aa10,entered:_0xc110d5})=>{for(const _0x5d4156 of _0x41aa10){const {group:_0x44fc46,type:_0x2e7571}=this['_splitMarkerName'](_0x5d4156['name']);if('suggestion'===_0x44fc46){_0xbd299f['announce'](this['_getMarkerAnnouncementText'](_0x2e7571,'LEAVE'));break;}}for(const _0x532f0b of _0xc110d5){const {group:_0xd248f2,type:_0x37a233}=this['_splitMarkerName'](_0x532f0b['name']);if('suggestion'===_0xd248f2){_0xbd299f['announce'](this['_getMarkerAnnouncementText'](_0x37a233,'ENTER'));break;}}});}['_processAttributeChanges'](_0x324f22){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2f1cc8=this['editor'],_0x53c940=_0x2f1cc8['model']['document']['differ']['getChanges']();if(0x0==_0x53c940['length'])return!0x1;const _0x4c942e=[],_0x5ba903=_0x53c940['filter'](_0x38ece0=>'attribute'==_0x38ece0['type']),_0x16d1f2=_0x53c940['filter'](_0x3d0553=>'insert'==_0x3d0553['type']&&'$text'!=_0x3d0553['name']),_0x2fff1a=_0x53c940['filter'](_0x3fc851=>'remove'==_0x3fc851['type']&&'$text'!=_0x3fc851['name']);for(const _0x2a332e of _0x5ba903)_0x4c942e['push']({'key':_0x2a332e['attributeKey'],'newValue':_0x2a332e['attributeNewValue'],'oldValue':_0x2a332e['attributeOldValue'],'range':Ot(_0x2a332e['range'],_0x2f1cc8['model'])});for(const _0x535821 of _0x16d1f2){const _0x5c031e=_0x2fff1a['find'](_0x2412d3=>_0x2412d3['position']['isEqual'](_0x535821['position']));_0x5c031e&&_0x4c942e['push']({'key':m,'newValue':_0x535821['name'],'oldValue':_0x5c031e['name'],'range':_0x2f1cc8['model']['createRangeOn'](_0x535821['position']['nodeAfter'])});}return 0x0!=_0x4c942e['length']&&this['_reduceExistingSuggestions'](_0x324f22,_0x4c942e);}['_processAttributeSuggestions'](_0x2d9458){let _0x4ee68f=!0x1;const _0x4be721=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x352d3e=>_0x352d3e['data']['newRange']&&_0x352d3e['name']['startsWith']('suggestion:attribute:'));for(const _0x25aca1 of _0x4be721){const {subType:_0x42d590,id:_0x6cc1fa}=this['_splitMarkerName'](_0x25aca1['name']),_0x3d1d0e=_0x42d590['split']('|')[0x0];for(const _0x509a89 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x509a89['id']!=_0x6cc1fa&&'attribute'==_0x509a89['type']&&_0x509a89['data']&&_0x509a89['data']['key']==_0x3d1d0e&&_0x509a89['getFirstRange']()['isIntersecting'](_0x25aca1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x509a89,_0x25aca1['data']['newRange'],_0x2d9458),_0x4ee68f=!0x0);}return _0x4ee68f;}['_recordAttributeChanges'](_0x3ca589){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3ca589();}['_isRegisteredAttribute'](_0x1cab46){const _0x303a26=this['_isBlockAttribute'](_0x1cab46),_0x167094=this['_inlineAttributeKeys']['has'](_0x1cab46);return _0x303a26||_0x167094;}['_reduceExistingSuggestions'](_0x5dc524,_0x2210d8){if(0x0==_0x2210d8['length'])return!0x1;let _0x5f4024=!0x1;for(const _0x3c0333 of _0x2210d8){const _0x127d53=this['_findSuggestions'](_0x3c0333['range'],'attribute')['filter'](_0x13856c=>!_0x13856c['meta']['isNextTo'])['map'](_0x324676=>_0x324676['suggestion']),_0x45cf2c=_0x21916d({'newValue':_0x3c0333['newValue']});_0x127d53['filter'](_0x28559f=>{const [_0x4ec138,_0x22aded]=_0x28559f['subType']['split']('|');return _0x4ec138==_0x3c0333['key']&&_0x22aded!=_0x45cf2c;})['forEach'](_0x5efb17=>{this['_reduceSuggestionAttributeRange'](_0x5efb17,_0x3c0333['range'],_0x5dc524),_0x5f4024=!0x0;});}return _0x5f4024;}['_reduceSuggestionAttributeRange'](_0x42d6cc,_0x5d528b,_0x32a011){const _0x25aeb0=_0x42d6cc['getFirstRange']()['getDifference'](_0x5d528b);0x0!==_0x25aeb0['length']?0x1!==_0x25aeb0['length']?this['_breakSuggestionMarker'](_0x42d6cc,_0x5d528b['start'],_0x5d528b['end']):this['_setSuggestionRange'](_0x42d6cc,_0x25aeb0[0x0]):_0x32a011['removeMarker'](_0x42d6cc['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5eb0dd){this['_editor']=_0x5eb0dd,this['_model']=_0x5eb0dd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xd50687,_0x100092,_0x2162a1,_0x4f7ec2,_0x31f8be,_0xe2a36b){return new u(this['_model'],{'type':_0xd50687,'subType':_0x100092,'id':_0x2162a1,'author':_0x4f7ec2,'creator':_0x4f7ec2,'attributes':_0x31f8be,'onAttributesChange':_0xe2a36b,'onAccept':(..._0x3b44f4)=>this['getSuggestionCallback'](_0xd50687,_0x100092,'accept')(..._0x3b44f4),'onDiscard':(..._0x52a845)=>this['getSuggestionCallback'](_0xd50687,_0x100092,'discard')(..._0x52a845)});}['registerCustomCallback'](_0x2689df,_0x714759,_0x138136,_0x590034){const _0x1bc15a=_0x2689df+':'+_0x714759+':'+_0x138136;this['_customCallbacks']['set'](_0x1bc15a,_0x590034);}['getSuggestionCallback'](_0x194581,_0x49fd6e,_0x4bfac6){const _0x59c31e=_0x194581+':'+_0x49fd6e+':'+_0x4bfac6;return this['_customCallbacks']['get'](_0x59c31e)||this['_defaultCallbacks']['get'](_0x194581+':'+_0x4bfac6);}['_registerDefaultCallbacks'](){const _0x4985a5=()=>!0x1,_0x4a8d87=_0x46960a=>{_0x46960a['sort']((_0x41dbc0,_0x144312)=>_0x41dbc0['start']['isBefore'](_0x144312['start'])?0x1:-0x1),this['_model']['change'](_0x887415=>{for(const _0x2ba924 of _0x46960a){let _0x1c277b;_0x1c277b=_0x2ba924['end']['isAtEnd']&&_0x2ba924['end']['parent']==_0x2ba924['start']['nodeAfter']?_0x887415['createSelection'](_0x2ba924['start']['nodeAfter'],'on'):_0x887415['createSelection'](_0x2ba924),this['_model']['deleteContent'](_0x1c277b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x459ada=(_0x49140f,_0x3061a0)=>{_0x3061a0&&this['_model']['change'](_0x3f8da0=>{const {commandName:_0x122370,commandParams:_0x41f1be=[]}=_0x3061a0,_0x13b1ff=_0x49140f['map'](_0x3f3d06=>(Tt(_0x3f3d06)&&(_0x3f3d06=this['_model']['createRange'](_0x3f3d06['end'])),_0x3f3d06))['filter'](_0xbda20a=>'$graveyard'!==_0xbda20a['root']['rootName']);if(_0x13b1ff['length']<0x1)return;const _0x3f53d2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xe226e4=>_0x3b60af['fromRange'](_0xe226e4));_0x3f8da0['setSelection'](_0x13b1ff);for(const _0x2bb795 of this['_editor']['commands']['commands']())_0x2bb795['refresh']();_0x41f1be['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x122370,..._0x41f1be);const _0x229e73=_0x3f53d2['filter'](_0x50e2b5=>'$graveyard'!=_0x50e2b5['root']['rootName']);_0x229e73['length']>0x0&&_0x3f8da0['setSelection'](_0x229e73);for(const _0x2d4861 of _0x3f53d2)_0x2d4861['detach']();});},_0x35a9c0=(_0xd9c35d,_0x116c77)=>0x1==_0xd9c35d['length']&&0x1==_0x116c77['length']&&_0xd9c35d[0x0]['end']['isEqual'](_0x116c77[0x0]['start']),_0x4bc3ea=(_0x2f83dd,_0x28911d,_0x4cbbca,_0x136161)=>Ft(_0x2f83dd,_0x28911d,_0x4cbbca,_0x136161,this['_model'])?[_0x2f83dd,_0x28911d]:Ft(_0x28911d,_0x2f83dd,_0x136161,_0x4cbbca,this['_model'])?[_0x28911d,_0x2f83dd]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4985a5),this['_defaultCallbacks']['set']('insertion:discard',_0x4a8d87),this['_defaultCallbacks']['set']('insertion:join',_0x35a9c0),this['_defaultCallbacks']['set']('insertion:chain',_0x4bc3ea),this['_defaultCallbacks']['set']('deletion:accept',_0x4a8d87),this['_defaultCallbacks']['set']('deletion:discard',_0x4985a5),this['_defaultCallbacks']['set']('deletion:join',_0x35a9c0),this['_defaultCallbacks']['set']('deletion:chain',_0x4bc3ea),this['_defaultCallbacks']['set']('formatInline:accept',_0x459ada),this['_defaultCallbacks']['set']('formatInline:discard',_0x4985a5),this['_defaultCallbacks']['set']('formatInline:join',_0x35a9c0),this['_defaultCallbacks']['set']('formatInline:chain',_0x4985a5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x459ada),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4985a5),this['_defaultCallbacks']['set']('formatBlock:join',_0x35a9c0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4985a5),this['_defaultCallbacks']['set']('attribute:accept',_0x4985a5),this['_defaultCallbacks']['set']('attribute:discard',(_0x109b62,_0x22422f)=>{if(!_0x22422f)return;const _0x2d70ca=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2a722c=>{if(_0x22422f['key']==m)for(const _0x2f0178 of _0x109b62){const _0x470446=_0x2f0178['start']['nodeAfter'],_0x5d708b=_0x22422f['oldValue'];_0x2a722c['rename'](_0x470446,_0x5d708b);}else{if(_0x2d70ca['_isBlockAttribute'](_0x22422f['key'])){for(const _0x17a5b4 of _0x109b62)void 0x0!==_0x22422f['oldValue']?_0x2a722c['setAttribute'](_0x22422f['key'],_0x22422f['oldValue'],_0x17a5b4['start']['nodeAfter']):_0x2a722c['removeAttribute'](_0x22422f['key'],_0x17a5b4['start']['nodeAfter']);}else{for(const _0x252f1f of _0x109b62)_0x22422f['oldValue']?_0x2a722c['setAttribute'](_0x22422f['key'],_0x22422f['oldValue'],_0x252f1f):_0x2a722c['removeAttribute'](_0x22422f['key'],_0x252f1f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x35a9c0);}}function Rt(_0xdde94e,_0x3d1b0e,_0xb949bc){for(const _0x1fb2c8 of _0x3d1b0e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1fb2c8['root']==_0x1fb2c8)return!0x1;if(!_0xb949bc['containsItem'](_0x1fb2c8))return!0x1;if(_0xdde94e['isObject'](_0x1fb2c8)||_0xdde94e['isLimit'](_0x1fb2c8))return!0x0;}return!0x1;}function Tt(_0x39300d){return _0x39300d['end']['parent']==_0x39300d['start']['nodeAfter']&&_0x39300d['end']['isAtStart'];}function Et(_0x16c92b,_0x1b20cb,_0x4af901,_0x79c57){const _0x1894a2=_0x4534bc=>!_0x4534bc['item']['is']('$textProxy')&&!_0x79c57['isObject'](_0x4534bc['item']),_0x2fcd87=_0x16c92b['start']['getLastMatchingPosition'](_0x1894a2),_0x43297c=_0x16c92b['end']['getLastMatchingPosition'](_0x1894a2,{'direction':'backward'});return(!_0x16c92b['start']['isEqual'](_0x2fcd87)||!_0x16c92b['end']['isEqual'](_0x43297c))&&(_0x2fcd87['isBefore'](_0x43297c)?_0x4af901['updateMarker'](_0x1b20cb,{'range':_0x4af901['createRange'](_0x2fcd87,_0x43297c)}):_0x4af901['removeMarker'](_0x1b20cb),!0x0);}function Vt(_0x3ad0da){return _0x21916d(_0x3ad0da);}function Ut(_0x26cf8b){const _0x82f81c=_0x26cf8b['start']['nodeAfter'];return _0x82f81c&&_0x82f81c['is']('element');}function Ot(_0x3c4e49,_0x20126a){return null==_0x3c4e49['end']['nodeBefore']&&_0x3c4e49['end']['parent']==_0x3c4e49['start']['nodeAfter']?Gt(_0x3c4e49['start']['nodeAfter'],_0x20126a):_0x3c4e49;}function Gt(_0x34227c,_0x2e9005){const _0x247f3c=_0x2e9005['schema']['isObject'](_0x34227c)||_0x2e9005['schema']['isSelectable'](_0x34227c);return _0x2e9005['createRange'](_0x2e9005['createPositionAt'](_0x34227c,'before'),_0x247f3c?_0x2e9005['createPositionAfter'](_0x34227c):_0x2e9005['createPositionAt'](_0x34227c,'end'));}function Ft(_0x5ab77d,_0x3f6f2a,_0x1f5169,_0x36461f,_0xdbd858){if(!Pt(_0x5ab77d,_0x3f6f2a))return!0x1;if(_0x1f5169['end']['isEqual'](_0x36461f['start']))return!0x0;if(_0x5ab77d['type']!=_0x3f6f2a['type'])return!0x1;if(!_0x1f5169['end']['isTouching'](_0x36461f['start']))return!0x1;const _0x260aa2=_0xdbd858['createRange'](_0x1f5169['end'],_0x36461f['start'])['getWalker']();for(const _0xde3cf8 of _0x260aa2)if(['elementStart','elementEnd']['includes'](_0xde3cf8['type'])&&_0xdbd858['schema']['isLimit'](_0xde3cf8['item']))return!0x1;return!0x0;}function Pt(_0xc6747e,_0x31089f,_0x4dad94=[]){return!(!_0xc6747e['_isDataLoaded']||!_0x31089f['_isDataLoaded'])&&_0x4cf88d(Bt(_0xc6747e['attributes'],_0x4dad94),Bt(_0x31089f['attributes'],_0x4dad94));}function Lt(_0x182b5e,_0x2e46ee){const _0xa9f18f=Ht(_0x182b5e['attributes']),_0x4e12ef=Ht(_0x2e46ee);if(!_0x182b5e['_isDataLoaded'])return!0x1;for(const _0x22c932 of Object['keys'](_0x4e12ef))if(!_0x4cf88d(_0xa9f18f[_0x22c932],_0x4e12ef[_0x22c932]))return!0x1;return!0x0;}function Ht(_0x2d828c){const _0x5315db=Object['assign']({},_0x2d828c);return delete _0x5315db['skipNestingCheck'],delete _0x5315db['tablePasteChainId'],_0x5315db;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x53e28a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x424e7f,_0x1cccb9,_0x3ae26a,_0x4e540b){super(),this['model']=_0x1cccb9,this['view']=_0x3ae26a,this['commentThreadController']=_0x4e540b,this['_editor']=_0x424e7f,this['_acceptCommand']=_0x424e7f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x424e7f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x220a34,_0x34dd00)=>_0x220a34||_0x34dd00),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1d2d6e=>_0x1d2d6e&&this['_editor']['model']['canEditAt'](_0x1cccb9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x474512=>_0x474512&&this['_editor']['model']['canEditAt'](_0x1cccb9['getRanges']())),this['_pendingAction']=null,_0x3ae26a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3ae26a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3ae26a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3ae26a,'change:isDirty',()=>{_0x3ae26a['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 _0x131df9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x131df9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x2ec912{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x2a2390,_0x2414ff,_0x39c7d1,_0x43cc32){super(_0x2a2390),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x2414ff['authoredAt']),this['bind']('authoredAt')['to'](_0x2414ff),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x2414ff,this['_localUser']=_0x39c7d1,this['_config']=_0x43cc32,_0x43cc32['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x304062}=this['_config'];this['commentsListView']=new _0x304062(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',_0x58045e=>_0x58045e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x114461,_0x1f8cce)=>_0x114461||!!_0x1f8cce);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3b15c9}=this['_config'],_0x1bba13=new _0x3b15c9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1acc5f=_0x1bba13['commentInputView'];return _0x1bba13['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1acc5f,'value',(_0x39a37b,_0x50c35d,_0x465421)=>!!_0x465421||_0x39a37b&&!_0x50c35d),_0x1acc5f['on']('submit',(_0x3ec5d1,_0x2012d8)=>{this['fire']('addComment',_0x2012d8),_0x1acc5f['editor']['setData']('');}),_0x1acc5f['on']('cancel',()=>this['focus']()),_0x1acc5f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1bba13;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x13f907,_0x3e67fa,_0x251f62,_0x34e582){super(_0x13f907,_0x3e67fa,_0x251f62,_0x34e582),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x128e97=>_0x128e97&&_0x128e97[0x0]?_0x128e97[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x17162b,_0xc846a7)=>{let _0x1c2c5f='';for(const _0x6de353 of _0x17162b)_0x1c2c5f+='<p>'+ds(_0x6de353['content'],_0x6de353['color'])+'</p>';return _0xc846a7?_0x1c2c5f:_0x3b21bf(_0x1c2c5f,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x13f907,'Accept\x20suggestion'),_0x4152f8['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x13f907,'Discard\x20suggestion'),_0x4152f8['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x20bd01(_0x13f907,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5ad490=this['bindTemplate'],_0x1380ae=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x5ad490['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5ad490['to']('authoredAt',_0x556069=>this['_config']['formatDateTime'](_0x556069))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x1380ae['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2504cb={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5ad490['if']('isActive','ck-suggestion-wrapper--active'),_0x5ad490['to']('type',_0x559672=>'ck-suggestion-'+_0x559672),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x1380ae}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2504cb['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x2504cb;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x15d95c,_0x4f9d00,_0x562c25)=>{this['_descriptionElement']['innerHTML']=_0x562c25;});}['_createButton'](_0x3ab0e9,_0x39a6b3,_0x203aa9,_0x4a10cc,_0x1919b6){const _0x2f7c2e=new _0x50f9f7(this['locale']);return _0x2f7c2e['set']({'label':_0x3ab0e9,'icon':_0x39a6b3,'tooltip':!0x0,'tooltipPosition':_0x1919b6}),_0x2f7c2e['extendTemplate']({'attributes':{'class':_0x203aa9}}),_0x2f7c2e['on']('execute',()=>{this['fire'](_0x4a10cc,this['_model']['id']);}),_0x2f7c2e;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x5ec7cd,_0x16f8ce){let _0x58e963='';return _0x58e963+=_0x5ec7cd['split']('*')['map']((_0x593ef2,_0x545d69)=>_0x545d69%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x593ef2)+'</span>':us(_0x593ef2))['join'](''),_0x16f8ce&&(_0x58e963+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x16f8ce['value']+'\x22\x20title=\x22'+_0x16f8ce['title']+'\x22></span>'),_0x58e963;}function us(_0x373334){const _0x1d92a6=document['createElement']('span');return _0x1d92a6['innerText']=_0x373334,_0x1d92a6['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x54406a{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x51caa5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x14afad){super(_0x14afad),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3d47c8=this['editor']['config'];_0x3d47c8['define']('trackChanges.SuggestionThreadView',ne),_0x3d47c8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3d47c8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5b5164,_0x3a5152){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4fa0b3,_0x3797c5]of this['_handleControllerBuffer']){const _0x1e3e23=this['_suggestionToController']['has'](_0x4fa0b3);_0x1e3e23||_0x3797c5?_0x1e3e23&&_0x3797c5&&this['_destroyController'](_0x4fa0b3):this['_initializeController'](_0x4fa0b3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5b5164,_0x3a5152);}['init'](){const _0x47c898=this['editor'],_0x5180b9=_0x47c898['plugins']['get']('TrackChangesEditing'),_0x653419=_0x47c898['plugins']['get']('Annotations'),_0x352ad7=_0x47c898['plugins']['get']('EditorAnnotations'),_0x23f9f9=_0x47c898['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x352ad7['addSourceCollector'](()=>{const _0x2bc1a7=[];for(const [_0x515da9,_0x1fa7e4]of Array['from'](this['_suggestionToController'])){const _0x578ded=_0x515da9['getAllAdjacentSuggestions'](),_0x276f5c=[];for(const _0x7c1d77 of _0x578ded){if(!_0x7c1d77['isInContent'])continue;if(_0x7c1d77['isMultiRange']){_0x276f5c['push'](..._0x7c1d77['getRanges']());continue;}const _0x45e15e=_0x7c1d77['getFirstRange']();if(_0x276f5c['length']>0x0){const _0x1a9492=_0x276f5c[0x0]['getJoined'](_0x45e15e);if(_0x1a9492){_0x276f5c[0x0]=_0x1a9492;continue;}}_0x276f5c['push'](_0x45e15e);}_0x2bc1a7['push']([_0x1fa7e4['view'],_0x276f5c]);}return _0x2bc1a7;}),this['listenTo'](_0x5180b9,'suggestionLoaded',(_0x37f563,_0x43dedc)=>{this['listenTo'](_0x43dedc,'change:previous',(_0xbc0ef6,_0x4c18fa,_0x4a3418,_0x39c605)=>{_0x43dedc['isInContent']&&(null==_0x4a3418?(this['_updateController'](_0x39c605['head']),this['_handleSuggestionControllerDelayed'](_0x43dedc,!0x1)):(this['_updateController'](_0x4a3418['head']),null==_0x39c605&&this['_handleSuggestionControllerDelayed'](_0x43dedc,!0x0)));}),null!==_0x43dedc['previous']?this['_updateController'](_0x43dedc['head']):this['_handleSuggestionControllerDelayed'](_0x43dedc,!0x1);}),this['listenTo'](_0x5180b9,'suggestionUnloaded',(_0x47564a,_0x2131d1,_0x1be934)=>{this['stopListening'](_0x2131d1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2131d1),this['_suggestionToController']['has'](_0x2131d1)&&this['_destroyController'](_0x2131d1),_0x1be934&&this['_updateController'](_0x1be934['head']);}),this['listenTo'](_0x5180b9,'suggestionChanged',(_0x21454e,_0xa9c189)=>{this['_updateController'](_0xa9c189);}),this['listenTo'](_0x653419,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x23f9f9,'addComment',(_0x188a24,{threadId:_0x288a9a,isFromAdapter:_0x5c3db7})=>{if(_0x5c3db7||!_0x5180b9['hasSuggestion'](_0x288a9a))return;const _0x363319=_0x5180b9['getSuggestion'](_0x288a9a);this['_suggestionToController']['get'](_0x363319)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x65919=this['editor']['plugins']['get']('Annotations'),_0x53051d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x520906=Array['from'](_0x65919['activeAnnotations'],_0x4b1790=>_0x4b1790['innerView'])['filter'](_0x5bae65=>this['_viewToController']['has'](_0x5bae65)),_0x24cd7f=[];for(const _0x4abb8f of _0x520906){const _0x1a2e25=this['_viewToController']['get'](_0x4abb8f)['model']['getAllAdjacentSuggestions']();_0x24cd7f['push'](..._0x1a2e25['reduce']((_0x226d0c,_0x8f20e5)=>[..._0x226d0c,..._0x8f20e5['getMarkerNames']()],[]));}_0x53051d['activeMarkers']=_0x24cd7f;}['_addUIComponentsToFactory'](){const _0x1f266=this['editor'],_0xc6fd=_0x1f266['locale'],_0x161134=o(_0xc6fd,'Track\x20changes'),_0x59667d=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x161134,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xc6fd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xc6fd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xc6fd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xc6fd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x524da8 of _0x59667d)if(ae(_0x524da8)){const _0x5a5c99=_0x1f266['commands']['get'](_0x524da8['model']['commandName']);_0x524da8['model']['bind']('isOn','isEnabled')['to'](_0x5a5c99,'value','isEnabled');}_0x1f266['ui']['componentFactory']['add']('trackChanges',_0x4d3dbb=>this['_createToolbarButton'](_0x4d3dbb,_0x59667d,_0x161134)),_0x1f266['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3cbe94=>this['_createMenuBarMenu'](_0x3cbe94,_0x59667d,_0x161134));}['_createToolbarButton'](_0x120c7b,_0x4690c8,_0x59b300){const _0x42d79f=zt(_0x120c7b,Zt),_0x3bb0fe=this['editor']['commands']['get']('trackChanges');_0x42d79f['buttonView']['set']({'tooltip':_0x59b300,'label':_0x59b300,'icon':ie}),_0x42d79f['buttonView']['bind']('isOn')['to'](_0x3bb0fe,'value'),_0x42d79f['buttonView']['on']('execute',()=>{_0x3bb0fe['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x42d79f,_0x4690c8,{'role':'menu'});const _0x3a32d3=[];for(const _0x23ecab of _0x4690c8)ae(_0x23ecab)&&_0x3a32d3['push'](this['editor']['commands']['get'](_0x23ecab['model']['commandName']));const _0x40ae6b=_0x42d79f['buttonView'];return _0x40ae6b['actionView']['unbind']('isEnabled'),_0x40ae6b['arrowView']['unbind']('isEnabled'),_0x40ae6b['actionView']['bind']('isEnabled')['to'](_0x3bb0fe,'isEnabled'),_0x40ae6b['arrowView']['bind']('isEnabled')['toMany'](_0x3a32d3,'isEnabled',(..._0x21bc7c)=>_0x21bc7c['some'](_0x387ec8=>_0x387ec8)),_0x42d79f['on']('execute',_0x1636ca=>{this['editor']['execute'](_0x1636ca['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x42d79f;}['_createMenuBarMenu'](_0xe8dfe6,_0x15bcce,_0x2c2977){const _0x2ec2b1=new Kt(_0xe8dfe6),_0x1797e9=this['editor']['commands']['get']('trackChanges');_0x2ec2b1['buttonView']['set']({'label':_0x2c2977,'icon':ie});const _0x105b4e=new Qt(_0xe8dfe6);for(const _0x592f18 of _0x15bcce){if('separator'==_0x592f18['type']){_0x105b4e['items']['add'](new Jt(_0xe8dfe6));continue;}const _0x4df583=new Xt(_0xe8dfe6,_0x2ec2b1),_0x1be922=new Yt(_0xe8dfe6),_0x1a7fb7=_0x592f18['model'];_0x1be922['bind'](...Object['keys'](_0x1a7fb7))['to'](_0x1a7fb7),_0x1be922['delegate']('execute')['to'](_0x2ec2b1),_0x1be922['on']('execute',()=>{this['editor']['execute'](_0x1a7fb7['commandName']),this['editor']['editing']['view']['focus']();}),_0x4df583['children']['add'](_0x1be922),_0x105b4e['items']['add'](_0x4df583);}return _0x2ec2b1['bind']('isEnabled')['to'](_0x1797e9,'isEnabled'),_0x2ec2b1['panelView']['children']['add'](_0x105b4e),_0x2ec2b1;}['_initializeController'](_0x289167){const _0x447a65=this['editor'],_0x271b95=_0x447a65['config'],_0x3eedae=_0x447a65['plugins']['get']('Annotations'),_0x5cfcb2=_0x447a65['plugins']['get']('CommentsRepository'),_0x21f93f=_0x447a65['plugins']['get']('EditorAnnotations'),_0x384f4a=_0x447a65['plugins']['get'](_0x51caa5)['me'],_0x4cad22=_0x271b95['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4911e9,CommentThreadInputView:_0x407997}=_0x447a65['plugins']['get']('CommentsUI');let _0x49ca8a,_0x3f8dea;this['_annotationViews']['has'](_0x289167['id'])?(_0x3f8dea=this['_annotationViews']['get'](_0x289167['id']),_0x49ca8a=_0x3f8dea['mainView']):(_0x49ca8a=new _0x4cad22(_0x447a65['locale'],_0x289167,_0x384f4a,{'disableComments':this['_disableComments'],'editorConfig':_0x271b95['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x271b95['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x271b95['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x271b95['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x24c7f4(_0x271b95['get']('locale')),'CommentView':_0x271b95['get']('comments')['CommentView'],'CommentsListView':_0x4911e9,'CommentThreadInputView':_0x407997}),_0x49ca8a['acceptButton']['on']('execute',()=>{_0x447a65['editing']['view']['focus']();}),_0x49ca8a['discardButton']['on']('execute',()=>{_0x447a65['editing']['view']['focus']();}),_0x3f8dea=_0x3eedae['createAnnotationView'](this['editor']['locale'],_0x49ca8a),_0x3f8dea['bind']('isDirty')['to'](_0x49ca8a,'isDirty'),_0x3f8dea['bind']('length')['to'](_0x49ca8a),_0x3f8dea['bind']('type')['to'](_0x49ca8a,'type',_0x2536f4=>'suggestion-'+_0x2536f4),this['_annotationViews']['set'](_0x289167['id'],_0x3f8dea));const _0x48e5b3=_0x5cfcb2['createCommentThreadController'](_0x289167['commentThread'],_0x49ca8a),_0x3f9d89=new oe(_0x447a65,_0x289167,_0x49ca8a,_0x48e5b3),_0x5a12cd=_0x289167['getAllAdjacentSuggestions']()['filter'](_0x538e37=>_0x538e37['isInContent']);_0x49ca8a['descriptionParts']=_0x447a65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5a12cd),this['_suggestionToController']['set'](_0x289167,_0x3f9d89),this['_viewToController']['set'](_0x49ca8a,_0x3f9d89);const _0x6a87cc=_0x3eedae['createAnnotation']({'view':_0x3f8dea,'target':()=>{const _0x1209d1=[],_0x53cdf2=_0x289167['getAllAdjacentSuggestions']()['filter'](_0x14528a=>_0x14528a['isInContent']);for(const _0x3b9956 of _0x53cdf2)_0x1209d1['push'](..._0x3b9956['getMarkers']());return _0x4b85dd(_0x447a65['editing'],_0x1209d1);},'type':()=>'suggestion-'+_0x3f9d89['view']['type']});_0x5cfcb2['_bindAnnotationToEditors'](_0x49ca8a,_0x6a87cc),_0x3eedae['add'](_0x6a87cc),_0x21f93f['registerAnnotation'](_0x6a87cc);}['_destroyController'](_0x5a74dd){const _0x19f824=this['editor']['plugins']['get']('CommentsRepository'),_0x195cf7=this['editor']['plugins']['get']('Annotations'),_0x3e77a3=this['_suggestionToController']['get'](_0x5a74dd),_0x3a1388=_0x3e77a3['view'],_0x2b429e=_0x195cf7['getByInnerView'](_0x3a1388);_0x19f824['_unbindEditors'](_0x3a1388),_0x2b429e&&_0x195cf7['remove'](_0x2b429e),this['_suggestionToController']['delete'](_0x5a74dd),this['_viewToController']['delete'](_0x3a1388),_0x3e77a3['destroy']();}['_updateController'](_0x42f69c){if(!_0x42f69c['isInContent']||!this['_suggestionToController']['has'](_0x42f69c))return;const _0x2de847=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38a8cd=this['_suggestionToController']['get'](_0x42f69c),_0x15568b=_0x42f69c['getAllAdjacentSuggestions']();_0x38a8cd['view']['descriptionParts']=_0x2de847['descriptionFactory']['getDescriptions'](_0x15568b);}['destroy'](){for(const _0x56e69b of this['_suggestionToController']['keys']())this['_destroyController'](_0x56e69b);for(const _0x56a3e0 of this['_annotationViews']['values']())_0x56a3e0['mainView']['destroy']();super['destroy']();}}function ae(_0x40445a){return'model'in _0x40445a;}class k extends _0x54406a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x273d3b){this['editor']['plugins']['get'](p)['adapter']=_0x273d3b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x42f969){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x42f969);}['getSuggestions']({skipNotAttached:_0x51ffc5=!0x1,toJSON:_0x38abe8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x51ffc5,'toJSON':_0x38abe8});}['getSuggestion'](_0x2e616e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2e616e);}}const T=['Pagination'];class P extends _0x54406a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x52e1bc=this['editor'];if(_0x52e1bc['config']['define']('trackChangesData.editorCreator',_0xcb9bb6=>{const _0x44da79=_0x52e1bc['model']['document']['getRootNames']()['reduce']((_0x4f2978,_0x1aab79)=>(_0x4f2978[_0x1aab79]='',_0x4f2978),{});return _0x52e1bc['constructor']['create'](_0x44da79,_0xcb9bb6);}),'function'!=typeof _0x52e1bc['config']['get']('trackChangesData')['editorCreator'])throw new _0x557558('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f6311){return N(this['editor'],!0x0,_0x1f6311);}['getDataWithDiscardedSuggestions'](_0x53ee40){return N(this['editor'],!0x1,_0x53ee40);}}class D extends _0x54406a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x5c48d3){super(_0x5c48d3),this['result']='end';}['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 v(_0x1ce968){return void 0x0!==_0x1ce968['getRootsAttributes'];}async function N(_0x48f25f,_0x373f40,_0x40a161){const _0x49bd68=_0x5616f0(_0x48f25f,T);_0x49bd68['plugins']['push'](p,D),_0x49bd68['rootsAttributes']=v(_0x48f25f)?_0x48f25f['getRootsAttributes']():void 0x0;const _0x2e601a=document['createDocumentFragment'](),_0x13a661=_0x48f25f['config']['get']('trackChangesData')['editorCreator'],_0xaaa187=await _0x13a661(_0x49bd68,()=>function(_0x5eee67){const _0x4ba958=document['createElement']('div');return _0x5eee67['appendChild'](_0x4ba958),_0x4ba958;}(_0x2e601a));!function(_0x579f5d,_0x2416ab){const _0x103603=_0x579f5d['model']['document']['getRootNames']()['reduce']((_0x35f1bc,_0x14f9c4)=>(_0x35f1bc[_0x14f9c4]=_0x579f5d['data']['get']({'rootName':_0x14f9c4}),_0x35f1bc),{}),_0x59392e=_0x579f5d['plugins']['get']('Users')['users']['map'](_0x3ec00f=>({'id':_0x3ec00f['id'],'name':_0x3ec00f['name']})),_0x16832d=_0x579f5d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1950fb=_0x579f5d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a7a32=_0x2416ab['plugins']['get']('Users'),_0x1cd0ce=_0x2416ab['plugins']['get']('TrackChangesEditing'),_0x133957=_0x2416ab['plugins']['get']('CommentsRepository');for(const _0x2df0c6 of _0x59392e)_0x1a7a32['getUser'](_0x2df0c6['id'])||_0x1a7a32['addUser'](_0x2df0c6);_0x1a7a32['me']||_0x1a7a32['useAnonymousUser']();for(const _0x4d070e of _0x1950fb)_0x133957['addCommentThread'](_0x4d070e);for(const _0x935478 of _0x16832d)_0x1cd0ce['addSuggestionData'](_0x935478);_0x2416ab['data']['set'](_0x103603);}(_0x48f25f,_0xaaa187),_0xaaa187['execute'](_0x373f40?'acceptAllSuggestions':'discardAllSuggestions');const _0x3cf803=v(_0xaaa187)?_0xaaa187['getFullData'](_0x40a161):_0xaaa187['data']['get'](_0x40a161);return await _0xaaa187['destroy'](),_0x3cf803;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x470f93,PendingActions as _0x1ae075,icons as _0x1d4a10}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4524f9,ObservableMixin as _0x4fa93a,uid as _0x336056,insertToPriorityArray as _0x2bfdb8,priorities as _0x1e623f,logWarning as _0x1c4769,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4b76ca,View as _0x385a1,ButtonView as _0x3786c0,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x26cba0,hashObject as _0x326b5a,surroundingMarkersDetector as _0x59f9db,trimHtml as _0x1f62ea,UserView as _0x1ff3e0,getDateTimeFormatter as _0x3c0223,getAllMarkersDomElementsSorted as _0x741fd5,sanitizeEditorConfig as _0x486efe}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x45d00e,LiveRange as _0x424176,LivePosition as _0x378777}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x141c2a,toWidget as _0x3676ef}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xaa375d,set as _0x472c2c,isEqual as _0x5767df,unset as _0x4ae41d,omit as Bt}from'lodash-es';import{Delete as _0x11ceb6,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4d515b,ShiftEnter as _0x393c11}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x4efc92,_0x4b34b5){super(_0x4efc92),this['_enabledCommands']=_0x4b34b5,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 _0x5db89c of this['editor']['commands']['commands']())_0x5db89c['affectsData']&&!this['_enabledCommands']['has'](_0x5db89c)&&_0x5db89c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2150fb of this['editor']['commands']['commands']())_0x2150fb['affectsData']&&!this['_enabledCommands']['has'](_0x2150fb)&&_0x2150fb['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x1b0566,_0x9ad92a){super(_0x1b0566),this['_suggestions']=_0x9ad92a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x120e33){const _0x3fa809=this['_suggestions']['get'](_0x120e33);if(!_0x3fa809)throw new _0x4524f9('track-changes-accept-suggestion-not-found',this);const _0xa98131=_0x3fa809['getRanges']();this['editor']['model']['canEditAt'](_0xa98131)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3fa809);}}class B extends ts{['_suggestions'];constructor(_0x2d0227,_0x2bef17){super(_0x2d0227),this['_suggestions']=_0x2bef17,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x455b8e){const _0x153340=this['_suggestions']['get'](_0x455b8e);if(!_0x153340)throw new _0x4524f9('track-changes-discard-suggestion-not-found',this);const _0x4a4596=_0x153340['getRanges']();this['editor']['model']['canEditAt'](_0x4a4596)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x153340);}}function ss(_0x577fbc){return _0x577fbc['sort']((_0x31d050,_0x400373)=>'deletion'==_0x31d050['type']&&'deletion'!=_0x400373['type']?-0x1:'deletion'!=_0x31d050['type']&&'deletion'==_0x400373['type']?0x1:0x0);}function to(_0x295250,_0x14d054){let _0x4ad699,_0x227b6a=0x0;const _0x3b0288=[],_0x312e8e=_0x14d054['schema'];for(;_0x227b6a<_0x295250['length'];){const _0x4d76ff=_0x295250[_0x227b6a],_0x34fd5a=_0x295250[_0x227b6a+0x1];_0x4ad699||(_0x4ad699=_0x14d054['createPositionBefore'](_0x4d76ff)),co(_0x14d054,_0x4d76ff,_0x34fd5a)||(_0x3b0288['push'](_0x14d054['createRange'](_0x4ad699,_0x312e8e['isObject'](_0x4d76ff)?_0x14d054['createPositionAfter'](_0x4d76ff):_0x14d054['createPositionAt'](_0x4d76ff,'end'))),_0x4ad699=null),_0x227b6a++;}return _0x3b0288;}function co(_0x1a436a,_0x2e9948,_0x54fa51){if(!_0x54fa51)return!0x1;const _0x4ac25d=_0x1a436a['createPositionAfter'](_0x2e9948),_0x5c9d4c=_0x1a436a['createPositionBefore'](_0x54fa51);return _0x4ac25d['isTouching'](_0x5c9d4c);}function rs(_0x321b03,_0x35bb19,_0x3ed0a9){for(;_0x3ed0a9['length'];){const _0x229c78=_0x3ed0a9['splice'](0x0,0x64);_0x321b03['change'](()=>{for(const _0x5f593e of _0x229c78)_0x5f593e['isInContent']&&_0x35bb19['execute'](_0x5f593e['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x856c78,_0x2237b9,_0x38b60e){super(_0x856c78),this['_command']=_0x2237b9,this['_suggestions']=_0x38b60e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xec9e8b=Array['from'](this['_suggestions']['values']())['some'](_0x30351a=>_0x30351a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xec9e8b;}['execute'](){const _0x5ee98c=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3fdf07 of _0x5ee98c){const _0x5a6bdd=_0x3fdf07['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a6bdd))return;}rs(this['editor']['model'],this['_command'],_0x5ee98c);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3708de,_0x1692e1,_0x30449d){super(_0x3708de),this['_command']=_0x1692e1,this['_suggestions']=_0x30449d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4fea01=this['editor']['model']['document']['selection'],_0x36891c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xf92f2e,_0x114f96){const _0x3cb9b5=Array['from'](_0xf92f2e['getRanges']()),_0x33f6ff=new Set();for(const _0x5eedd3 of _0x114f96)if(_0x5eedd3['isInContent']){for(const _0x544be0 of _0x3cb9b5)for(const _0x43efaf of _0x5eedd3['getRanges']())(_0x544be0['isIntersecting'](_0x43efaf)||_0xf92f2e['isCollapsed']&&!_0x5eedd3['isMultiRange']&&_0x5eedd3['next']&&_0x43efaf['end']['isTouching'](_0x544be0['start']))&&_0x33f6ff['add'](_0x5eedd3);}return _0x33f6ff;}(_0x4fea01,_0x36891c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5231c5=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4d9e62 of _0x5231c5){const _0x208be8=_0x4d9e62['getRanges']();if(!this['editor']['model']['canEditAt'](_0x208be8))return;}rs(this['editor']['model'],this['_command'],_0x5231c5);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4fa93a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4c46f3,_0x1dc7f1){super(),this['id']=_0x1dc7f1['id'],this['type']=_0x1dc7f1['type'],this['subType']=_0x1dc7f1['subType']||null,this['author']=_0x1dc7f1['author'],this['creator']=_0x1dc7f1['creator']||_0x1dc7f1['author'],this['isExternal']=Boolean(_0x1dc7f1['attributes']&&_0x1dc7f1['attributes']['@external']),this['data']=null,this['_model']=_0x4c46f3,this['_onAccept']=_0x1dc7f1['onAccept'],this['_onDiscard']=_0x1dc7f1['onDiscard'],this['_onAttributesChange']=_0x1dc7f1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1dc7f1['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 _0x48b776=this;for(;_0x48b776['previous'];)_0x48b776=_0x48b776['previous'];return _0x48b776;}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'](_0x3f7d45){this['_markerNames']['add'](_0x3f7d45);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1cc20f=>this['_model']['markers']['get'](_0x1cc20f))['filter'](_0x3ac307=>_0x3ac307);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x158be7=>{for(const _0x5b2606 of this['getMarkers']())_0x158be7['removeMarker'](_0x5b2606);}),this['_markerNames']['clear']();}['removeMarker'](_0x511c4e){this['_model']['change'](_0x5b3986=>{_0x5b3986['removeMarker'](_0x511c4e);}),this['_markerNames']['delete'](_0x511c4e);}['addRange'](_0x2fd1fe){const _0xc486be='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xc486be),this['_model']['change'](_0x48274d=>{_0x48274d['addMarker'](_0xc486be,{'range':_0x2fd1fe,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x343c1c){for(const _0xffa3d3 of this['getRanges']())if(_0xffa3d3['isIntersecting'](_0x343c1c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3376ca=>_0x3376ca['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x24eae2,_0x461d2f)=>[..._0x24eae2,..._0x461d2f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x952cac=this['getRanges']();if(0x1!=_0x952cac['length'])return null;const _0x15fb24=_0x952cac[0x0],_0x370937=_0x15fb24['start']['nodeAfter'],_0xfefc6b=_0x15fb24['end']['nodeBefore'];return _0x370937 instanceof _0x45d00e?_0x370937!=_0xfefc6b?null:_0x370937: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 _0x1de387=[];let _0x2bc3ea=this['head'];for(;_0x2bc3ea;)_0x1de387['push'](_0x2bc3ea),_0x2bc3ea=_0x2bc3ea['next'];return _0x1de387;}['setAttribute'](_0x133dee,_0x3b7100){const _0x201d1f=_0xaa375d(this['attributes']);_0x472c2c(_0x201d1f,_0x133dee,_0x3b7100),_0x5767df(_0x201d1f,this['attributes'])||(this['attributes']=_0x201d1f,this['_onAttributesChange'](_0x201d1f));}['removeAttribute'](_0x3e7a24){const _0x2906ae=_0xaa375d(this['attributes']);_0x4ae41d(_0x2906ae,_0x3e7a24),_0x5767df(_0x2906ae,this['attributes'])||(this['attributes']=_0x2906ae,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 _0x336056()['substr'](0x1,0x5);}}function o(_0x459620,_0xf3516e,_0x722ef1){const t=_0x459620['t'];switch(_0xf3516e){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'*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',_0x722ef1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x722ef1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x722ef1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x722ef1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x722ef1);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',_0x722ef1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x722ef1);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x722ef1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x722ef1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x722ef1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x722ef1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x722ef1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x722ef1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x722ef1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x722ef1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x722ef1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x722ef1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x722ef1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x722ef1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x722ef1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x722ef1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x722ef1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x722ef1);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'},_0x722ef1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x722ef1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x722ef1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x722ef1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x722ef1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x722ef1);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'},_0x722ef1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x722ef1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x722ef1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x722ef1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x722ef1);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'},_0x722ef1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x722ef1);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'},_0x722ef1);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'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'},_0x722ef1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x722ef1);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'},_0x722ef1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x722ef1);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'},_0x722ef1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x722ef1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x722ef1);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x722ef1);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x722ef1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xf3516e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x45476b,_0x218ccd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x45476b,this['_locale']=_0x218ccd;}['getDescriptions'](_0x2635e7){const _0x2ac94e=[],_0xc62de3=new Set(),_0x26561f=new Set();for(let _0xfd3273=0x0;_0xfd3273<_0x2635e7['length'];_0xfd3273++){const _0x3004dc=_0x2635e7[_0xfd3273];if(!_0x3004dc['isInContent'])continue;const _0x1e83c6=this['_handleCustomCallbackDescription'](_0x3004dc);if(_0x1e83c6){if(null!=_0x3004dc['subType']){if(_0xc62de3['has'](_0x3004dc['subType']))continue;_0xc62de3['add'](_0x3004dc['subType']);}_0x2ac94e['push'](_0x1e83c6);}else{if('attribute'!=_0x3004dc['type'])'insertion'!=_0x3004dc['type']&&'deletion'!=_0x3004dc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2ac94e,_0x3004dc,_0x2635e7[_0xfd3273+0x1]);else{const _0x2a4fec=_0x3004dc['data']['key'];if(_0x26561f['has'](_0x2a4fec))continue;_0x26561f['add'](_0x3004dc['data']['key']),_0x2a4fec==m?this['_handleRenameSuggestionDescription'](_0x2ac94e,_0x3004dc):this['_handleAttributeSuggestionDescription'](_0x2ac94e,_0x3004dc);}}}return this['_resolveDescriptionItems'](_0x2ac94e);}['registerDescriptionCallback'](_0xfd5bc1){this['_customCallbacks']['push'](_0xfd5bc1);}['registerElementLabel'](_0x240bbd,_0x5c5bdd,_0x3a3ba0=_0x1e623f['normal']){'function'==typeof _0x240bbd?_0x2bfdb8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x240bbd,'label':_0x5c5bdd,'priority':_0x3a3ba0}):this['_itemLabels']['set'](_0x240bbd,_0x5c5bdd);}['registerAttributeLabel'](_0x2957af,_0x34ff2d){this['_attributeLabels']['set'](_0x2957af,_0x34ff2d);}['getItemLabel'](_0x25ac0d,_0x3e42c1=0x1){let _0x34c748;for(const _0x2584ba of this['_itemLabelsCallbacks'])if(_0x2584ba['matchingCallback'](_0x25ac0d)){_0x34c748=_0x2584ba['label'];break;}return _0x34c748||(_0x34c748=this['_itemLabels']['get'](_0x25ac0d['name'])),_0x34c748?_0x34c748(_0x3e42c1):0x1!==_0x3e42c1?_0x3e42c1+'\x20'+_0x25ac0d['name']+'s':''+_0x25ac0d['name'];}['_addDescriptionItems'](_0x2fde3f,_0x25ef05){const _0xee5f83=_0x25ef05['getFirstRange']()['getWalker'](),_0x2bd770='insertion'==_0x25ef05['type']?'add':'remove';for(const _0x4a49ae of _0xee5f83){const _0x5d9f53=_0x4a49ae['item'],_0x684cd4=_0x2fde3f[_0x2fde3f['length']-0x1];if(_0x5d9f53['is']('$textProxy'))_0x684cd4&&_0x684cd4['type']['indexOf']('Container')>-0x1&&_0x2fde3f['pop'](),_0x684cd4&&'text'==_0x684cd4['type']?_0x684cd4[_0x2bd770]+=_0x5d9f53['data']:_0x2fde3f['push']({'type':'text','add':'add'==_0x2bd770?_0x5d9f53['data']:'','remove':'remove'==_0x2bd770?_0x5d9f53['data']:''});else{if(this['_schema']['isObject'](_0x5d9f53)){const _0x2573cd=_0x5d9f53;if(_0x684cd4&&_0x684cd4['type']['indexOf']('Container')>-0x1&&_0x2fde3f['pop'](),'elementEnd'==_0x4a49ae['type'])continue;_0x684cd4&&_0x684cd4['type']==_0x2bd770+'Object'&&_0x684cd4['element']['name']==_0x2573cd['name']?_0x684cd4['quantity']++:_0x2fde3f['push']({'type':_0x2bd770+'Object','element':_0x2573cd,'quantity':0x1}),_0xee5f83['skip'](_0x139a0d=>!('elementEnd'==_0x139a0d['type']&&_0x139a0d['item']==_0x5d9f53));}else{if(this['_schema']['checkChild'](_0x5d9f53,'$text')||_0x5d9f53['is']('element','softBreak')){const _0x362a4e=_0x5d9f53;if('add'==_0x2bd770&&'elementStart'==_0x4a49ae['type']||'remove'==_0x2bd770&&'elementEnd'==_0x4a49ae['type'])continue;if(_0x684cd4&&-0x1==_0x684cd4['type']['indexOf']('Container')){'text'==_0x684cd4['type']&&(_0x684cd4[_0x2bd770]+='\x0a');continue;}let _0x15745a;if(_0x15745a='add'==_0x2bd770?_0x362a4e['nextSibling']&&!this['_schema']['isObject'](_0x362a4e['nextSibling'])?_0x362a4e['nextSibling']:null:_0x362a4e['previousSibling']&&!this['_schema']['isObject'](_0x362a4e['previousSibling'])?_0x362a4e['previousSibling']:null,_0x362a4e['isEmpty']||_0x15745a&&_0x15745a['isEmpty']){const _0x223bcf=_0x15745a&&_0x15745a['isEmpty']?_0x15745a:_0x362a4e;_0x684cd4&&_0x684cd4['type']==_0x2bd770+'EmptyContainer'&&_0x684cd4['element']['name']==_0x223bcf['name']?_0x684cd4['quantity']++:_0x2fde3f['push']({'type':_0x2bd770+'EmptyContainer','element':_0x223bcf,'quantity':0x1});}else _0x2fde3f['push']({'type':_0x2bd770+'Container','element':_0x362a4e});}}}}}['_resolveDescriptionItems'](_0x5eafd9){const _0x37e28c=this['_locale'],_0x36d45b=[],_0x2833c3=[],_0x3b32f0=[];for(const _0x398a4d of _0x5eafd9)switch(_0x398a4d['type']){case'text':if(_0x398a4d['add']=_0x398a4d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x398a4d['remove']=_0x398a4d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x398a4d['add']&&''!=_0x398a4d['remove']){_0x36d45b['push']({'type':'replace','content':o(_0x37e28c,'REPLACE_TEXT',['\x22'+_0x398a4d['remove']+'\x22','\x22'+_0x398a4d['add']+'\x22'])});continue;}if(null!=_0x398a4d['add']['match'](/^ +$/)){_0x36d45b['push']({'type':'insertion','content':o(_0x37e28c,'*Insert:*\x20%0',o(_0x37e28c,'ELEMENT_SPACE',_0x398a4d['add']['length']))});continue;}if(null!=_0x398a4d['remove']['match'](/^ +$/)){_0x36d45b['push']({'type':'deletion','content':o(_0x37e28c,'*Remove:*\x20%0',o(_0x37e28c,'ELEMENT_SPACE',_0x398a4d['remove']['length']))});continue;}if(''!=_0x398a4d['add']){_0x36d45b['push']({'type':'insertion','content':o(_0x37e28c,'*Insert:*\x20%0','\x22'+_0x398a4d['add']+'\x22')});continue;}_0x36d45b['push']({'type':'deletion','content':o(_0x37e28c,'*Remove:*\x20%0','\x22'+_0x398a4d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x36d45b['push']({'type':'insertion','content':o(_0x37e28c,'*Insert:*\x20%0',this['getItemLabel'](_0x398a4d['element'],_0x398a4d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x36d45b['push']({'type':'deletion','content':o(_0x37e28c,'*Remove:*\x20%0',this['getItemLabel'](_0x398a4d['element'],_0x398a4d['quantity']))});continue;case'addContainer':_0x36d45b['push']({'type':'insertion','content':o(_0x37e28c,'*Split:*\x20%0',this['getItemLabel'](_0x398a4d['element'],_0x398a4d['quantity']))});continue;case'removeContainer':_0x36d45b['push']({'type':'deletion','content':o(_0x37e28c,'*Merge:*\x20%0',this['getItemLabel'](_0x398a4d['element'],_0x398a4d['quantity']))});continue;case'addFormat':_0x2833c3['push'](_0x398a4d['key']);continue;case'removeFormat':_0x3b32f0['push'](_0x398a4d['key']);continue;default:_0x36d45b['push'](_0x398a4d);}if(_0x2833c3['length']){const _0x4471ca=_0x2833c3['map'](_0xe8692e=>this['_attributeLabels']['has'](_0xe8692e)?this['_attributeLabels']['get'](_0xe8692e):_0xe8692e)['join'](',\x20');_0x36d45b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4471ca)});}if(_0x3b32f0['length']){const _0x351521=_0x3b32f0['map'](_0x4e831c=>this['_attributeLabels']['has'](_0x4e831c)?this['_attributeLabels']['get'](_0x4e831c):_0x4e831c)['join'](',\x20');_0x36d45b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x351521)});}return _0x36d45b;}['_handleCustomCallbackDescription'](_0x5dae92){for(const _0x103fa6 of this['_customCallbacks']){const _0xc29c8b=_0x103fa6(_0x5dae92);if(_0xc29c8b&&'type'in _0xc29c8b)return _0xc29c8b;}}['_handleAttributeSuggestionDescription'](_0xfab257,_0x1e7f17){const _0x1eae95=_0x1e7f17['data'],_0x1f4690=void 0x0===_0x1eae95['newValue']?'removeFormat':'addFormat';_0xfab257['push']({'type':_0x1f4690,'key':_0x1eae95['key']});}['_handleRenameSuggestionDescription'](_0x55b078,_0x2e557b){_0x55b078['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2e557b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x30017d,_0x5a1364,_0x4a6182){if(this['_addDescriptionItems'](_0x30017d,_0x5a1364),_0x4a6182&&_0x4a6182['getFirstRange']()&&!_0x5a1364['getFirstRange']()['end']['isEqual'](_0x4a6182['getFirstRange']()['start'])){const _0x28599f=_0x30017d[_0x30017d['length']-0x1],_0x281416='insertion'==_0x5a1364['type']?'add':'remove';_0x28599f&&'text'==_0x28599f['type']&&(_0x28599f[_0x281416]+='\x0a');}}}class E extends _0x470f93{['afterInit'](){const _0x2448c1=this['editor'],_0x3c10b7=_0x2448c1['plugins']['get']('TrackChangesEditing');_0x2448c1['commands']['get']('showAIAssistant')&&_0x3c10b7['enableCommand']('showAIAssistant');}}class V extends _0x470f93{['afterInit'](){const _0x175e3d=this['editor'],_0x5909db=_0x175e3d['locale'];if(!_0x175e3d['plugins']['has']('AlignmentEditing'))return;const _0x26d348=_0x175e3d['plugins']['get']('TrackChangesEditing');_0x26d348['enableDefaultAttributesIntegration']('alignment'),_0x26d348['registerBlockAttribute']('alignment'),_0x26d348['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5909db,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c9948=this['editor'],_0x489cb5=_0x4c9948['locale'];_0x4c9948['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a8ab1=>{if('formatBlock'!=_0x2a8ab1['type'])return;const {data:_0x462e66}=_0x2a8ab1;if(_0x462e66&&'alignment'==_0x462e66['commandName']){const _0x5be438=_0x462e66['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x489cb5,'*Format:*\x20%0',function(_0x4d086a){switch(_0x4d086a){case'left':return o(_0x489cb5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x489cb5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x489cb5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x489cb5,'FORMAT_JUSTIFY_TEXT');}}(_0x5be438))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x470f93{['afterInit'](){const _0x1ed874=this['editor'],_0x2a33f3=_0x1ed874['plugins']['get']('TrackChangesEditing'),_0x44ad4e=_0x1ed874['locale'];for(const _0x21873d of ti){if(!_0x1ed874['plugins']['has'](_0x21873d))continue;const _0x3d8d2c=_0x21873d['slice'](0x0,-0x7)['toLowerCase'](),_0x53127f='FORMAT_'+_0x3d8d2c['toUpperCase']();_0x2a33f3['enableDefaultAttributesIntegration'](_0x3d8d2c),_0x2a33f3['registerInlineAttribute'](_0x3d8d2c),_0x2a33f3['descriptionFactory']['registerAttributeLabel'](_0x3d8d2c,o(_0x44ad4e,_0x53127f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50ad61=this['editor'],_0x470d63=_0x50ad61['locale'],_0x228078=_0x50ad61['plugins']['get']('TrackChangesEditing');function _0x166ef5(_0x2ffa8c,_0x189d61){_0x228078['descriptionFactory']['registerDescriptionCallback'](_0x58d58c=>{if('formatInline'!=_0x58d58c['type'])return;const {data:_0x2d4fb7}=_0x58d58c;return _0x2d4fb7&&_0x2d4fb7['commandName']===_0x2ffa8c?_0x2d4fb7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x470d63,'*Format:*\x20%0',_0x189d61)}:{'type':'format','content':o(_0x470d63,'*Remove\x20format:*\x20%0',_0x189d61)}:void 0x0;});}_0x166ef5('bold',o(_0x470d63,'FORMAT_BOLD')),_0x166ef5('italic',o(_0x470d63,'FORMAT_ITALIC')),_0x166ef5('underline',o(_0x470d63,'FORMAT_UNDERLINE')),_0x166ef5('code',o(_0x470d63,'FORMAT_CODE')),_0x166ef5('strikethrough',o(_0x470d63,'FORMAT_STRIKETHROUGH')),_0x166ef5('subscript',o(_0x470d63,'FORMAT_SUBSCRIPT')),_0x166ef5('superscript',o(_0x470d63,'FORMAT_SUPERSCRIPT'));}}class O extends _0x470f93{['afterInit'](){const _0x5bc0d4=this['editor'],_0x2e9e4e=_0x5bc0d4['locale'];if(!_0x5bc0d4['plugins']['has']('BlockQuoteEditing'))return;const _0x1ffcd5=_0x5bc0d4['plugins']['get']('TrackChangesEditing'),_0x5a4e7f=this['editor']['commands']['get']('blockQuote');_0x1ffcd5['enableCommand']('blockQuote',(_0x487587,_0x509333={})=>{const _0x58e28b=this['editor']['model']['document']['selection'],_0x254ea9=_0x509333&&void 0x0!==_0x509333['forceValue']?_0x509333['forceValue']:!_0x5a4e7f['value'];let _0x2788c0=[];if(_0x254ea9){const _0x50efa2=Array['from'](_0x58e28b['getSelectedBlocks']())['filter'](_0x3e4693=>oo(_0x3e4693)||function(_0x2bdb57,_0x353d49){const _0x25f05a=_0x353d49['checkChild'](_0x2bdb57['parent'],'blockQuote'),_0x17e5dc=_0x353d49['checkChild'](['$root','blockQuote'],_0x2bdb57);return _0x25f05a&&_0x17e5dc;}(_0x3e4693,this['editor']['model']['schema']));_0x2788c0=to(_0x50efa2,_0x5bc0d4['model']);}else{const _0x3081ea=Array['from'](_0x58e28b['getSelectedBlocks']())['filter'](_0xc30cba=>oo(_0xc30cba));_0x2788c0=to(_0x3081ea,_0x5bc0d4['model']);}_0x5bc0d4['model']['change'](()=>{for(const _0x6d3a0c of _0x2788c0)_0x1ffcd5['markBlockFormat'](_0x6d3a0c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x254ea9}]});});}),_0x1ffcd5['descriptionFactory']['registerDescriptionCallback'](_0xabc8ed=>{const {data:_0x18abee}=_0xabc8ed;if(_0x18abee&&'blockQuote'==_0x18abee['commandName']){const _0x1f8660=o(_0x2e9e4e,'ELEMENT_BLOCK_QUOTE');return _0x18abee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e9e4e,'*Set\x20format:*\x20%0',_0x1f8660)}:{'type':'format','content':o(_0x2e9e4e,'*Remove\x20format:*\x20%0',_0x1f8660)};}});}}function oo(_0x3e23cd){return'blockQuote'==_0x3e23cd['parent']['name'];}class G extends _0x470f93{['afterInit'](){const _0xe830e=this['editor'];_0xe830e['plugins']['has']('CaseChange')&&(_0xe830e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xe830e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xe830e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x470f93{['afterInit'](){const _0x21e1e3=this['editor'];_0x21e1e3['commands']['get']('ckbox')&&_0x21e1e3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x470f93{['afterInit'](){const _0x2ab541=this['editor'];if(!_0x2ab541['plugins']['has']('CodeBlock'))return;const _0x54b07a=_0x2ab541['plugins']['get']('TrackChangesEditing'),_0x569959=_0x2ab541['locale'],_0x5910b4=_0x2ab541['config']['get']('codeBlock')['languages'],_0x324e17=_0x2ab541['commands']['get']('codeBlock');_0x54b07a['enableCommand']('indentCodeBlock'),_0x54b07a['enableCommand']('outdentCodeBlock'),_0x54b07a['enableCommand']('codeBlock',(_0x2c1285,_0x14463a={})=>{const _0x18f68f=_0x2ab541['model'],_0x13491e=_0x2ab541['model']['document']['selection'],_0x4cf16f=_0x14463a&&void 0x0!==_0x14463a['forceValue']?_0x14463a['forceValue']:!_0x324e17['value'];let _0x440d99;_0x14463a['language']||(_0x14463a['language']=_0x5910b4[0x0]['language']),_0x440d99=_0x4cf16f?Array['from'](_0x13491e['getSelectedBlocks']())['filter'](_0x27f747=>eo(_0x27f747)||function(_0x468cf2,_0x483755){if(_0x468cf2['is']('rootElement')||_0x483755['isLimit'](_0x468cf2))return!0x1;return _0x483755['checkChild'](_0x468cf2['parent'],'codeBlock');}(_0x27f747,_0x18f68f['schema'])):Array['from'](_0x13491e['getSelectedBlocks']())['filter'](_0x1eb475=>eo(_0x1eb475));const _0x3031d9=to(_0x440d99,_0x18f68f);_0x18f68f['change'](()=>{for(const _0x4dffea of _0x3031d9)_0x54b07a['markBlockFormat'](_0x4dffea,{'commandName':'codeBlock','commandParams':[{..._0x14463a,'forceValue':_0x4cf16f}],'formatGroupId':'blockName'});});}),(_0x54b07a['descriptionFactory']['registerElementLabel']('codeBlock',_0x4828cc=>o(_0x569959,'ELEMENT_CODE_BLOCK',_0x4828cc)),_0x54b07a['descriptionFactory']['registerDescriptionCallback'](_0x3f131f=>{if('formatBlock'!=_0x3f131f['type'])return;const _0x42d502=_0x569959['t'],{data:_0x11758c}=_0x3f131f;if(!_0x11758c||'codeBlock'!=_0x11758c['commandName'])return;const _0x30fb0f=_0x11758c['commandParams'][0x0]['language'],_0x2cf160=_0x42d502(_0x5910b4['find'](_0x424926=>_0x424926['language']===_0x30fb0f)['label'])['toLowerCase']();return _0x11758c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x569959,'*Set\x20format:*\x20%0',o(_0x569959,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2cf160+')')}:{'type':'format','content':o(_0x569959,'*Remove\x20format:*\x20%0',o(_0x569959,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x162888){return'codeBlock'==_0x162888['name'];}class H extends _0x470f93{['afterInit'](){const _0x468361=this['editor'];if(!_0x468361['plugins']['has']('CommentsEditing'))return;_0x468361['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xdca29a,_0x3c23d5,_0x2fda84){const _0xa35557=[];for(const _0x2a7f14 of _0x3c23d5['getItems']())_0x2a7f14['hasAttribute'](_0xdca29a)&&_0xa35557['push'](_0x2fda84['createRangeOn'](_0x2a7f14));return _0xa35557;}function _e(_0x25fb56,_0x55947f,{showActiveMarker:_0x474da1=!0x0}={}){const _0x2e407e=_0x25fb56['plugins']['get']('TrackChangesEditing');return(_0x11d13b,_0x422775,_0x44eb92)=>{if(!_0x44eb92['consumable']['test'](_0x422775['markerRange'],_0x11d13b['name']))return;const _0x526dbb=_0x422775['markerRange']['getWalker'](),_0x64154c=_0x422775['markerRange']['start'],_0x242733=_0x25fb56['model']['schema'];let _0x5e7e1d=null,_0x543267=null,_0x5252dc=!0x1,_0x8c49e9=!0x1;for(const _0x2fbae5 of _0x526dbb){const _0x9785e6=_0x2fbae5['item'];_0x5252dc=_0x5252dc||_0x242733['isContent'](_0x9785e6);const _0x31c7b4=_0x44eb92['mapper']['toViewElement'](_0x9785e6);if(_0x31c7b4&&_0x31c7b4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fbae5['type']&&(_0x242733['isBlock'](_0x9785e6)&&!_0x242733['isLimit'](_0x9785e6)&&(_0x9785e6['nextSibling']||_0x64154c['isAtEnd']?_0x5e7e1d&&_0x5e7e1d['parent']==_0x9785e6||(_0x5e7e1d=_0x9785e6,_0x1238bf(_0x2fbae5['previousPosition']),_0x8c49e9=!0x0):_0x543267=_0x543267||_0x2fbae5['previousPosition']));}function _0x1238bf(_0x164dbf){const _0x12e959=_0x44eb92['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55947f}),_0x1d7c14=_0x44eb92['mapper']['toViewPosition'](_0x164dbf);_0x474da1&&_0x2e407e['activeMarkers']['includes'](_0x422775['markerName'])&&_0x44eb92['writer']['addClass']('ck-suggestion-marker--active',_0x12e959),_0x44eb92['writer']['insert'](_0x1d7c14,_0x12e959),_0x44eb92['mapper']['bindElementToMarker'](_0x12e959,_0x422775['markerName']);}_0x5252dc||_0x8c49e9||!_0x543267||_0x1238bf(_0x543267);};}class q extends _0x470f93{static get['requires'](){return[_0x11ceb6];}['init'](){const _0x3bbc5d=this['editor'],_0x1343c8=_0x3bbc5d['plugins']['get']('TrackChangesEditing');_0x1343c8['enableCommand']('delete');const _0x34ffb4=_0x3bbc5d['commands']['get']('deleteForward');_0x1343c8['enableCommand']('deleteForward',(_0x37766b,_0x15548d={})=>{const _0x1397f8=_0x3bbc5d['model']['createSelection'](_0x3bbc5d['model']['document']['selection']);_0x1397f8['isCollapsed']&&_0x3bbc5d['model']['modifySelection'](_0x1397f8,{'direction':'forward','unit':_0x15548d['unit']});const _0x25b33c=_0x1397f8['getFirstRange'](),_0x4745ae=_0x424176['fromRange'](_0x25b33c);let _0x51cd17;_0x37766b(_0x15548d),_0x51cd17='$graveyard'==_0x4745ae['root']['rootName']?_0x3bbc5d['model']['createRange'](_0x25b33c['start']):_0x3bbc5d['model']['createRange'](_0x4745ae['start'],_0x4745ae['end']),_0x4745ae['detach'](),_0x3bbc5d['model']['enqueueChange'](_0x34ffb4['buffer']['batch'],_0x36041b=>{_0x34ffb4['buffer']['lock'](),_0x36041b['setSelection'](_0x36041b['createRange'](_0x51cd17['end'])),_0x34ffb4['buffer']['unlock']();});}),_0x3bbc5d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3bbc5d,'merge'),{'priority':'high'}),_0x3bbc5d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x51c674,_0x393ba,_0x554e4a)=>{_0x554e4a['options']['showSuggestionHighlights']&&_e(_0x3bbc5d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x51c674,_0x393ba,_0x554e4a);},{'priority':'high'}),_0x3bbc5d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4888d1,_0x8d3b69,_0x521eeb)=>{const _0x1ae2ff=_0x521eeb['mapper']['markerNameToElements'](_0x8d3b69['markerName']);if(_0x1ae2ff){for(const _0x24e64d of _0x1ae2ff)_0x24e64d['is']('uiElement')&&(_0x521eeb['mapper']['unbindElementFromMarkerName'](_0x24e64d,_0x8d3b69['markerName']),_0x521eeb['writer']['remove'](_0x24e64d));}},{'priority':'high'});}}class z extends _0x470f93{['afterInit'](){const _0x44bf18=this['editor'];if(!_0x44bf18['plugins']['has']('ListEditing'))return;const _0xbe89e3=_0x44bf18['locale'],_0x42cb2a=_0x44bf18['plugins']['get']('TrackChangesEditing'),_0x14d3ce=_0x44bf18['plugins']['has']('TodoListEditing'),_0x3af560=!!_0x44bf18['config']['get']('list.multiBlock');function _0x2134e8(_0x1da13f){return{'type':'format','content':''+o(_0xbe89e3,'*Set\x20format:*\x20%0',_0x1da13f)};}function _0x299422(_0x5808fe){return{'type':'format','content':''+o(_0xbe89e3,'*Remove\x20format:*\x20%0',_0x5808fe)};}_0x42cb2a['enableDefaultAttributesIntegration']('numberedList'),_0x42cb2a['enableDefaultAttributesIntegration']('bulletedList'),_0x42cb2a['enableDefaultAttributesIntegration']('customNumberedList'),_0x42cb2a['enableDefaultAttributesIntegration']('customBulletedList'),_0x42cb2a['enableDefaultAttributesIntegration']('indentList'),_0x42cb2a['enableDefaultAttributesIntegration']('outdentList'),_0x42cb2a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x42cb2a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x42cb2a['registerBlockAttribute']('listItemId'),_0x42cb2a['registerBlockAttribute']('listType'),_0x42cb2a['registerBlockAttribute']('listIndent'),_0x3af560&&(_0x42cb2a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x42cb2a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x14d3ce&&(_0x42cb2a['enableDefaultAttributesIntegration']('todoList'),_0x42cb2a['enableDefaultAttributesIntegration']('checkTodoList'),_0x42cb2a['registerBlockAttribute']('todoListChecked'),_0x42cb2a['descriptionFactory']['registerDescriptionCallback'](_0x547d66=>{const {data:_0x5323a9}=_0x547d66;if(_0x5323a9&&'todoListChecked'==_0x5323a9['key'])return{'type':'format','content':_0x5323a9['newValue']?o(_0xbe89e3,'*Check\x20item*'):o(_0xbe89e3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x41015b=>{if(_0x41015b['batch']['isUndo'])return!0x1;let _0xb996ba=!0x1;const _0x381a10=_0x42cb2a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f3dbb=>'todoListChecked'===_0x42cb2a['_getAttributeKey'](_0x4f3dbb));for(const _0xee3d85 of _0x381a10){'todo'!=_0xee3d85['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x42cb2a['_findSuggestions'](_0xee3d85['getFirstRange'](),'attribute')['find'](_0x43b392=>'listType'===_0x42cb2a['_getAttributeKey'](_0x43b392['suggestion']))||(_0x41015b['removeMarker'](_0xee3d85['getFirstMarker']()),_0xb996ba=!0x0));}return _0xb996ba;})),_0x42cb2a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xbe89e3,'FORMAT_INDENT'));const _0x406d7d={'type':'format','content':''};_0x42cb2a['descriptionFactory']['registerDescriptionCallback'](_0x3d81f6=>{const {data:_0x8fdec9}=_0x3d81f6;if(!_0x8fdec9||'listType'!=_0x8fdec9['key'])return;let _0x169b97=_0x3d81f6['head'];for(;_0x169b97;){if(_0x169b97['data']&&(('listStyle'==_0x169b97['data']['key']||'listMarkerStyle'==_0x169b97['data']['key'])&&(_0x169b97['data']['newValue']&&'default'!=_0x169b97['data']['newValue']||'default'!=_0x169b97['data']['oldValue']&&!_0x8fdec9['newValue'])||!_0x3af560&&_0x169b97['data']['key']==m))return _0x406d7d;_0x169b97=_0x169b97['next'];}if(null==_0x8fdec9['newValue'])switch(_0x8fdec9['oldValue']){case'bulleted':return _0x299422(o(_0xbe89e3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x299422(o(_0xbe89e3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x299422(o(_0xbe89e3,'ELEMENT_TODO_LIST'));}switch(_0x8fdec9['newValue']){case'bulleted':return _0x2134e8(o(_0xbe89e3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2134e8(o(_0xbe89e3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2134e8(o(_0xbe89e3,'ELEMENT_TODO_LIST'));}}),_0x42cb2a['descriptionFactory']['registerDescriptionCallback'](_0x3b1ab7=>{const {data:_0x30edee}=_0x3b1ab7;if(_0x30edee&&'listIndent'==_0x30edee['key'])return null==_0x30edee['newValue']||null==_0x30edee['oldValue']&&0x0==_0x30edee['newValue']?_0x406d7d:void 0x0;}),_0x42cb2a['descriptionFactory']['registerDescriptionCallback'](_0x3cc38c=>{if('attribute'!=_0x3cc38c['type'])return;const {data:_0x594f61}=_0x3cc38c;if(!_0x594f61||'listItemId'!=_0x594f61['key'])return;const _0x1973f3=le(_0x3cc38c);return'newValue'==_0x1973f3?{'type':'format','content':o(_0xbe89e3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1973f3?{'type':'format','content':o(_0xbe89e3,'*Split:*\x20list\x20item')}:_0x406d7d;}),_0x44bf18['model']['document']['registerPostFixer'](_0x373931=>this['listItemIdFixer'](_0x373931)),_0x44bf18['model']['document']['registerPostFixer'](_0x1dc964=>this['noTrackChangesFixer'](_0x1dc964)),_0x44bf18['model']['document']['registerPostFixer'](_0x5f01c4=>this['assureChains'](_0x5f01c4)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1e7b3e){if(_0x1e7b3e['batch']['isUndo']||!_0x1e7b3e['batch']['isLocal'])return!0x1;let _0x9fb5e9=!0x1;const _0x31634=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c961e=>_0x3c961e['data']&&'listItemId'==_0x3c961e['data']['key'])['filter'](_0x3f573e=>_0x3f573e['data']['newValue']&&_0x3f573e['data']['oldValue']);for(const _0x32f3de of _0x31634)le(_0x32f3de)||(_0x1e7b3e['removeMarker'](_0x32f3de['getFirstMarker']()),_0x9fb5e9=!0x0);return _0x9fb5e9;}['noTrackChangesFixer'](_0x5f2adc){if(_0x5f2adc['batch']['isUndo']||!_0x5f2adc['batch']['isLocal'])return!0x1;const _0x27fade=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x27fade['trackChangesCommand']['value'])return!0x1;let _0x1a86d4=!0x1;const _0x170ea6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xdf554d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x10722d=>'attribute'==_0x10722d['type'])['filter'](_0x541ae7=>_0x170ea6['includes'](_0x541ae7['attributeKey']));if(0x0==_0xdf554d['length'])return _0x1a86d4;for(const _0x47b2ff of _0xdf554d){const _0x5d2b90=_0x27fade['_findSuggestions'](_0x47b2ff['range'],'attribute')['filter'](_0x5ad281=>!_0x5ad281['meta']['isNextTo'])['map'](_0x3e175e=>_0x3e175e['suggestion'])['filter'](_0x1e81c8=>{const _0x51bb9a=_0x27fade['_getAttributeKey'](_0x1e81c8);return _0x170ea6['includes'](_0x51bb9a);});if(_0x5d2b90['length']){for(const _0x33b31e of _0x5d2b90)_0x5f2adc['removeMarker'](_0x33b31e['getFirstMarker']());_0x1a86d4=!0x0;}}return _0x1a86d4;}['assureChains'](_0x4c499d){if(_0x4c499d['batch']['isUndo']||!_0x4c499d['batch']['isLocal'])return!0x1;const _0x381aa8=this['editor']['plugins']['get']('TrackChangesEditing');let _0x214905=!0x1;const _0x58100e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1538fc of _0x381aa8['getSuggestions']({'skipNotAttached':!0x0})){const _0x18e701=_0x381aa8['_findSuggestions'](_0x1538fc['getFirstRange'](),'attribute')['map'](_0x3a84d5=>_0x3a84d5['suggestion'])['filter'](_0x3d28dc=>_0x3d28dc['data']&&_0x58100e['includes'](_0x3d28dc['data']['key']));if(!_0x18e701['length'])continue;const _0x141ca9=_0x18e701[0x0]['head']['attributes']['groupId'];if(!_0x18e701['every'](_0x456d52=>_0x456d52['attributes']['groupId']===_0x141ca9)){for(const _0x16d086 of _0x18e701)_0x375ebf(_0x16d086,_0x141ca9)&&(_0x214905=!0x0);}}return _0x214905;function _0xbcf8cf(_0x187f66,_0x3fecbe){for(const _0x42c5bc of _0x381aa8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x295730=>'attribute'==_0x295730['type']&&_0x295730['attributes']['groupId']==_0x187f66))_0x42c5bc['setAttribute']('groupId',_0x3fecbe);}function _0x375ebf(_0x3a7071,_0x23a36a){let _0x196a30=_0x3a7071['head'],_0x21708e=!0x1;for(;_0x196a30;)_0x196a30['attributes']['groupId']!=_0x23a36a&&(_0xbcf8cf(_0x196a30['attributes']['groupId'],_0x23a36a),_0x196a30['setAttribute']('groupId',_0x23a36a),_0x21708e=!0x0),_0x196a30=_0x196a30['next'];return _0x21708e;}}['_supportLegacySuggestions'](){const _0x1bab41=this['editor'],_0x11c949=_0x1bab41['locale'],_0xc93e5e=_0x1bab41['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xc93e5e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xc60e19,_0x1568e4){const _0x30c2a8=[];for(let _0x4f45bd of _0xc60e19)_0x4f45bd['start']['nodeAfter']===_0x4f45bd['end']['parent']&&(_0x4f45bd=_0x1bab41['model']['createRange'](_0x1bab41['model']['createPositionAt'](_0x4f45bd['start']['nodeAfter'],0x0))),_0x30c2a8['push'](_0x4f45bd);_0x1bab41['model']['change'](_0x7c8dbe=>{const _0x19df7a=_0x1bab41['model']['document']['selection'],_0x290438=Array['from'](_0x19df7a['getRanges']())['map'](_0x6ad62=>_0x424176['fromRange'](_0x6ad62));_0x7c8dbe['setSelection'](_0x30c2a8),_0x1bab41['commands']['get'](_0x1568e4['commandName'])['refresh'](),_0x1568e4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1bab41['execute'](_0x1568e4['commandName'],..._0x1568e4['commandParams']),_0x7c8dbe['setSelection'](_0x290438);for(const _0x1d3c2d of _0x290438)_0x1d3c2d['detach']();});}),_0xc93e5e['descriptionFactory']['registerElementLabel'](function(_0x14ec2b){const _0x5eb9ad=!_0x1bab41['model']['schema']['isObject'](_0x14ec2b),_0x104b1d=_0x14ec2b['previousSibling'],_0x135e51=_0x14ec2b['nextSibling'],_0x3cac34=_0x14ec2b['getAttribute']('listItemId'),_0x1e9e2b=!_0x104b1d||_0x104b1d['getAttribute']('listItemId')!==_0x3cac34,_0x15a067=!_0x135e51||_0x135e51['getAttribute']('listItemId')!==_0x3cac34;return _0x5eb9ad&&Boolean(_0x3cac34)&&_0x1e9e2b&&_0x15a067;},_0xc50d9b=>o(_0x11c949,'ELEMENT_LIST_ITEM',_0xc50d9b));}['_registerLegacyDescription'](){const _0x2eb980=this['editor'],_0x91c346=_0x2eb980['locale'];function _0x59e5b3(_0x3b0503){const _0x2c68ca=_0x2eb980['commands']['get']('bulletedList')['value'],_0x1d39b6=_0x2eb980['commands']['get']('numberedList')['value'];return'numberedList'===_0x3b0503?_0x2c68ca:_0x1d39b6;}_0x2eb980['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x32e04b){if('formatBlock'!=_0x32e04b['type'])return;const {data:_0x4ab01f}=_0x32e04b;if(!_0x4ab01f)return;let _0x583696,_0x1c4f92,_0x137140,_0x2031c4;switch(_0x4ab01f['commandName']){case'bulletedList':_0x137140=_0x4ab01f['commandParams'][0x0]['forceValue'],_0x2031c4=_0x59e5b3(_0x4ab01f['commandName']),_0x583696=_0x137140?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2031c4&&_0x2eb980['config']['get']('list.multiBlock')||(_0x583696='*Change\x20to:*\x20%0'),_0x1c4f92={'type':'format','content':o(_0x91c346,_0x583696,o(_0x91c346,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x137140=_0x4ab01f['commandParams'][0x0]['forceValue'],_0x2031c4=_0x59e5b3(_0x4ab01f['commandName']),_0x583696=_0x137140?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2031c4&&_0x2eb980['config']['get']('list.multiBlock')||(_0x583696='*Change\x20to:*\x20%0'),_0x1c4f92={'type':'format','content':o(_0x91c346,_0x583696,o(_0x91c346,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x583696='*Indent:*\x20%0',_0x1c4f92={'type':'format','content':o(_0x91c346,_0x583696,o(_0x91c346,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x583696=function(_0x5bd3cc){const _0x2894bc=_0x5bd3cc['getFirstRange']();let _0x38498f=_0x2894bc['start']['nodeAfter'];for(;_0x38498f&&_0x2894bc['containsItem'](_0x38498f);){if(_0x38498f['getAttribute']('listIndent')>0x0)return!0x1;_0x38498f=_0x38498f['nextSibling'];}return!0x0;}(_0x32e04b)?o(_0x91c346,'*Format:*\x20remove\x20from\x20%0',o(_0x91c346,function(_0x2d319c){return'ELEMENT_'+_0x2d319c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x32e04b))):o(_0x91c346,'*Outdent:*\x20%0',o(_0x91c346,'ELEMENT_LIST_ITEM')),_0x1c4f92={'type':'format','content':_0x583696};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4ab01f['multipleBlocks']&&(_0x583696='*Merge:*\x20%0',_0x1c4f92={'type':'deletion','content':o(_0x91c346,_0x583696,o(_0x91c346,'ELEMENT_LIST_ITEM'))});}return _0x1c4f92;});}}function le(_0x4d0c08){let _0x7141a9=_0x4d0c08['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x7141a9;){const _0x471bc8=_0x7141a9['getAttribute']('listItemId');if(!_0x471bc8)return!0x1;if(_0x471bc8==_0x4d0c08['data']['newValue'])return'newValue';if(_0x471bc8==_0x4d0c08['data']['oldValue'])return'oldValue';_0x7141a9=_0x7141a9['previousSibling'];}return!0x1;}class ue extends _0x470f93{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4957c=this['editor']['config']['get']('list.properties'),_0x43e5c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4957c['styles']&&(_0x43e5c8['enableDefaultAttributesIntegration']('listStyle'),_0x43e5c8['registerBlockAttribute']('listStyle')),_0x4957c['reversed']&&(_0x43e5c8['enableDefaultAttributesIntegration']('listReversed'),_0x43e5c8['registerBlockAttribute']('listReversed')),_0x4957c['startIndex']&&(_0x43e5c8['enableDefaultAttributesIntegration']('listStart'),_0x43e5c8['registerBlockAttribute']('listStart'));const _0x976f45={'type':'format','content':''};_0x43e5c8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x23391d=this['editor']['locale'];_0x43e5c8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x23391d,'FORMAT_LIST_REVERSED')),_0x43e5c8['descriptionFactory']['registerDescriptionCallback'](_0xffab39=>{const {data:_0x37b26b}=_0xffab39;if(_0x37b26b&&'listReversed'==_0x37b26b['key'])return null==_0x37b26b['newValue']||0x0==_0x37b26b['newValue']&&null==_0x37b26b['oldValue']?_0x976f45:void 0x0;}),_0x43e5c8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x23391d,'FORMAT_LIST_START')),_0x43e5c8['descriptionFactory']['registerDescriptionCallback'](_0x37746d=>{const {data:_0x1bd2d6}=_0x37746d;if(_0x1bd2d6&&'listStart'==_0x1bd2d6['key'])return null==_0x1bd2d6['newValue']||0x1==_0x1bd2d6['newValue']&&null==_0x1bd2d6['oldValue']?_0x976f45:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5afa55=>{if(_0x5afa55['batch']['isUndo'])return!0x1;let _0x5775cc=!0x1;const _0x264463=_0x43e5c8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ff6f0=>{const _0x1614f9=_0x43e5c8['_getAttributeKey'](_0x4ff6f0);return'listStart'==_0x1614f9||'listReversed'==_0x1614f9;});for(const _0x32dc12 of _0x264463){const _0x5496cf=_0x32dc12['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5496cf||'customNumbered'==_0x5496cf)continue;_0x43e5c8['_findSuggestions'](_0x32dc12['getFirstRange'](),'attribute')['find'](_0x415742=>'listType'==_0x43e5c8['_getAttributeKey'](_0x415742['suggestion']))||(_0x5afa55['removeMarker'](_0x32dc12['getFirstMarker']()),_0x5775cc=!0x0);}return _0x5775cc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2ad9af){const _0x949e22=this['editor']['locale'],{data:_0x5366dd}=_0x2ad9af,_0x5cd134={'type':'format','content':''};if(!_0x5366dd||'listStyle'!=_0x5366dd['key'])return;if(!_0x5366dd['oldValue'])return'default'==_0x5366dd['newValue']?_0x5cd134:{'type':'format','content':''+o(_0x949e22,'*Set\x20format:*\x20%0',o(_0x949e22,this['_getTranslationKeyForListStyle'](_0x5366dd['newValue'])))};if(!_0x5366dd['newValue']){if('default'==_0x5366dd['oldValue'])return _0x5cd134;let _0x1d4340=_0x2ad9af['head'];for(;_0x1d4340;){if(_0x1d4340['data']&&'listType'==_0x1d4340['data']['key']&&_0x1d4340['data']['newValue'])return _0x5cd134;_0x1d4340=_0x1d4340['next'];}return{'type':'format','content':''+o(_0x949e22,'*Remove\x20format:*\x20%0',o(_0x949e22,this['_getTranslationKeyForListStyle'](_0x5366dd['oldValue'])))};}if('default'!=_0x5366dd['newValue'])return{'type':'format','content':''+o(_0x949e22,'*Set\x20format:*\x20%0',o(_0x949e22,this['_getTranslationKeyForListStyle'](_0x5366dd['newValue'])))};let _0x42dcc1=_0x2ad9af['head'];for(;_0x42dcc1;){if(_0x42dcc1['data']&&'listType'==_0x42dcc1['data']['key']&&_0x42dcc1['data']['newValue']&&_0x42dcc1['data']['oldValue'])return _0x5cd134;_0x42dcc1=_0x42dcc1['next'];}return{'type':'format','content':o(_0x949e22,'*Set\x20format:*\x20%0',o(_0x949e22,'ELEMENT_'+_0x2ad9af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xc52d07=this['editor'],_0x364374=_0xc52d07['locale'];_0xc52d07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeac9d6=>{if('formatBlock'!=_0xeac9d6['type'])return;const {data:_0x104fb5}=_0xeac9d6;if(!_0x104fb5)return;let _0x57afc5,_0x175f8e;switch(_0x104fb5['commandName']){case'listStyle':_0x57afc5='*Change\x20to:*\x20%0',_0x175f8e={'type':'format','content':o(_0x364374,_0x57afc5,o(_0x364374,this['_getTranslationKeyForListStyle'](_0x104fb5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x57afc5=_0x104fb5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x175f8e={'type':'format','content':o(_0x364374,_0x57afc5)};break;case'listStart':_0x57afc5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x175f8e={'type':'format','content':o(_0x364374,_0x57afc5,_0x104fb5['commandParams'][0x0]['startIndex'])};}return _0x175f8e;});}['_getTranslationKeyForListStyle'](_0x10794b){return'ELEMENT_'+function(_0x250aef){if(pe['includes'](_0x250aef))return'bulleted';if(ye['includes'](_0x250aef))return'numbered';return null;}(_0x10794b)['toUpperCase']()+'_LIST_'+_0x10794b['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x470f93{static get['requires'](){return[_0x4d515b];}['init'](){const _0x6e3b2a=this['editor'],_0x202974=_0x6e3b2a['plugins']['get']('TrackChangesEditing'),_0x47262a=_0x6e3b2a['commands']['get']('enter');_0x202974['enableCommand']('enter',()=>{_0x6e3b2a['model']['change'](_0x101583=>{const _0x314926=_0x6e3b2a['model']['document']['selection'],_0x4ed558=_0x314926['getFirstPosition'](),_0x3503d3=_0x424176['fromRange'](_0x314926['getFirstRange']());if(_0x47262a['enterBlock'](_0x101583)){const _0x318e40=_0x6e3b2a['model']['createPositionAt'](_0x4ed558['parent']['nextSibling'],0x0),_0x1a3a55=_0x101583['createRange'](_0x4ed558,_0x318e40);_0x202974['markInsertion'](_0x1a3a55);}else _0x101583['setSelection'](_0x101583['createRange'](_0x3503d3['end']));_0x3503d3['detach'](),_0x47262a['fire']('afterExecute',{'writer':_0x101583});});}),_0x6e3b2a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x6e3b2a,'split'),{'priority':'high'}),_0x6e3b2a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2c2731,_0xe36455,_0x41959e)=>{const _0x2973fb=_0x41959e['mapper']['markerNameToElements'](_0xe36455['markerName']);if(_0x2973fb){for(const _0x1cf2fa of _0x2973fb)_0x1cf2fa['hasClass']('ck-suggestion-marker-split')&&(_0x41959e['mapper']['unbindElementFromMarkerName'](_0x1cf2fa,_0xe36455['markerName']),_0x41959e['writer']['remove'](_0x1cf2fa));}},{'priority':'high'}),_0x6e3b2a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x477182,_0x56a1ce,_0x49abe0)=>{_0x49abe0['options']['showSuggestionHighlights']&&_e(_0x6e3b2a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x477182,_0x56a1ce,_0x49abe0);},{'priority':'high'});}}class J extends _0x470f93{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x30b6e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x30b6e4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x30b6e4['enableCommand']('findNext'),_0x30b6e4['enableCommand']('findPrevious'),_0x30b6e4['enableCommand']('replace'),_0x30b6e4['enableCommand']('replaceAll');}['handleFindCommand'](_0x8ca8c0,_0x459170,_0x281564={}){const _0xf00ff4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x8ca8c0(_0x9f04f=>('string'==typeof _0x459170?_0xf00ff4['findByTextCallback'](_0x459170,_0x281564):_0x459170)(_0x9f04f)['filter'](_0x33656e=>!0x1===this['_isInDeletionRange'](_0x33656e,_0x9f04f['item'])),_0x281564);}['_isInDeletionRange'](_0x4b0b49,_0x4c46f0){const _0x395813=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c46f0,_0x4b0b49['start']),this['editor']['model']['createPositionAt'](_0x4c46f0,_0x4b0b49['end']));for(const _0x526c41 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x395813['getIntersection'](_0x526c41['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x470f93{['afterInit'](){const _0x1df568=this['editor']['locale'],_0x5f0da4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x291175,commandName:_0x4218aa}of ro)this['editor']['plugins']['has'](_0x291175)&&(_0x5f0da4['enableDefaultAttributesIntegration'](_0x4218aa),_0x5f0da4['registerInlineAttribute'](_0x4218aa));_0x5f0da4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1df568,'FORMAT_FONT_SIZE')),_0x5f0da4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1df568,'FORMAT_FONT_FAMILY')),_0x5f0da4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1df568,'FORMAT_FONT_COLOR')),_0x5f0da4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1df568,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x394b5d=this['editor'],_0x1b4df9=_0x394b5d['locale'];_0x394b5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c5cf5=>{const _0x471cf2=_0x1b4df9['t'];if('formatInline'!=_0x2c5cf5['type'])return;const {data:_0x110278}=_0x2c5cf5;if(null!=_0x110278){if('fontSize'==_0x110278['commandName']){const _0x9e17bf=_0x110278['commandParams'][0x0]['value'];if(_0x9e17bf){const _0x4a49bb=_0x471cf2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x103797=>_0x103797['model']==_0x9e17bf)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b4df9,'*Set\x20font\x20size:*\x20%0',_0x4a49bb)};}return{'type':'format','content':o(_0x1b4df9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x110278['commandName']){const _0x3ef121=_0x110278['commandParams'][0x0]['value'];return _0x3ef121?{'type':'format','content':o(_0x1b4df9,'*Set\x20font\x20family:*\x20%0',_0x3ef121)}:{'type':'format','content':o(_0x1b4df9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x110278['commandName']){const _0x42a91a=_0x110278['commandParams'][0x0]['value'];if(_0x42a91a){const _0x526538=_0x4b76ca(this['editor']['config']['get']('fontColor.colors'))['find'](_0x36d5fb=>_0x36d5fb['model']==_0x42a91a);let _0x927565=_0x42a91a,_0x43b297='';return _0x526538&&(_0x927565=_0x526538['label'],_0x43b297=_0x471cf2(_0x927565)['toLowerCase']()),{'type':'format','content':o(_0x1b4df9,'*Set\x20font\x20color:*\x20%0',_0x43b297)['trim'](),'color':{'value':_0x42a91a,'title':_0x43b297||_0x927565}};}return{'type':'format','content':o(_0x1b4df9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x110278['commandName']){const _0x1ceda1=_0x110278['commandParams'][0x0]['value'];if(_0x1ceda1){const _0x1bae65=_0x4b76ca(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3830be=>_0x3830be['model']==_0x1ceda1);let _0x2c3806=_0x1ceda1,_0x1210bf='';return _0x1bae65&&(_0x2c3806=_0x1bae65['label'],_0x1210bf=_0x471cf2(_0x2c3806)['toLowerCase']()),{'type':'format','content':o(_0x1b4df9,'*Set\x20font\x20background\x20color:*\x20%0',_0x1210bf)['trim'](),'color':{'value':_0x1ceda1,'title':_0x1210bf||_0x2c3806}};}return{'type':'format','content':o(_0x1b4df9,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x470f93{['afterInit'](){const _0x2b916b=this['editor'],_0x17c8bb=_0x2b916b['plugins']['get']('TrackChangesEditing'),_0x232145=_0x2b916b['commands']['get']('copyFormat'),_0x21e8ef=_0x2b916b['commands']['get']('pasteFormat');_0x232145&&_0x21e8ef&&(_0x17c8bb['enableDefaultAttributesIntegration']('pasteFormat'),_0x17c8bb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4ddb2a=this['editor'],_0x109d90=_0x4ddb2a['locale'];_0x4ddb2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27e86b=>{if('formatBlock'!=_0x27e86b['type']&&'formatInline'!=_0x27e86b['type'])return;const {data:_0x5549dd}=_0x27e86b;if(_0x5549dd&&'pasteFormat'===_0x5549dd['commandName']){const _0x22b1e0=[],_0x1f177c=_0x5549dd['commandParams'][0x0];for(const [_0x3bc476,_0x2a14b5]of Object['entries'](_0x1f177c))_0x22b1e0['push'](so(_0x4ddb2a,_0x3bc476,_0x2a14b5));return _0x22b1e0['length']?{'type':'format','content':o(_0x109d90,'*Set\x20format\x20to:*\x20%0',_0x22b1e0['join'](',\x20'))}:{'type':'format','content':o(_0x109d90,'*Remove\x20all\x20formatting*')};}});}}function so(_0xce058c,_0x4a76dd,_0x4aaf5a){const _0x31c374=_0xce058c['locale']['t'],_0x2765e8=_0x4a76dd['split'](/(?=[A-Z])/)['join']('\x20'),_0x8fbf52=_0x31c374(_0x2765e8['charAt'](0x0)['toUpperCase']()+_0x2765e8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4aaf5a)return _0x8fbf52;if('fontColor'===_0x4a76dd||'fontBackgroundColor'===_0x4a76dd){const _0x11ff28=_0x4b76ca(_0xce058c['config']['get']('fontColor.colors'))['find'](_0x5c251e=>_0x5c251e['model']==_0x4aaf5a);return _0x8fbf52+'\x20('+(_0x11ff28?_0x31c374(_0x11ff28['label'])['toLowerCase']():_0x4aaf5a)+')';}if('fontSize'===_0x4a76dd&&isNaN(parseFloat(_0x4aaf5a))){const _0x14f359=_0xce058c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xce058c['config']['get']('fontSize.options'))['find'](_0x5be6bc=>_0x5be6bc['model']==_0x4aaf5a);return _0x8fbf52+'\x20('+(_0x14f359?_0x31c374(_0x14f359['title'])['toLowerCase']():_0x4aaf5a)+')';}return _0x8fbf52+'\x20('+_0x4aaf5a+')';}class Y extends _0x470f93{['_headingOptions'];['afterInit'](){const _0x437649=this['editor'];if(!_0x437649['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x437649['config']['get']('heading.options');const _0x10dfe4=_0x437649['locale'],_0x13c2c2=_0x437649['plugins']['get']('TrackChangesEditing');_0x13c2c2['enableDefaultAttributesIntegration']('heading');for(const _0x357444 of this['_headingOptions'])'paragraph'!=_0x357444['model']&&_0x13c2c2['descriptionFactory']['registerElementLabel'](_0x357444['model'],_0x3c093e=>{const _0x21e517=this['_getHeadingLevel'](_0x357444['model']);return null!==_0x21e517?_0x187189(_0x3c093e,_0x21e517):_0x3851b1(_0x3c093e,_0x357444['title']);});function _0x187189(_0x59ed84,_0x156afb){return o(_0x10dfe4,'ELEMENT_HEADING',[_0x59ed84,_0x156afb]);}function _0x3851b1(_0xab0b7b,_0x271549){return o(_0x10dfe4,'ELEMENT_HEADING_CUSTOM',[_0xab0b7b,_0x271549]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b3863=this['editor'],_0x26aeae=_0x5b3863['locale'];function _0x351804(_0xb2cc70,_0xdd7582){return o(_0x26aeae,'ELEMENT_HEADING_CUSTOM',[_0xb2cc70,_0xdd7582]);}_0x5b3863['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b58cb=>{if('formatBlock'!=_0x2b58cb['type'])return;const {data:_0x49991c}=_0x2b58cb;if(_0x49991c&&'heading'==_0x49991c['commandName']){const _0x2cb601=_0x49991c['commandParams'][0x0]['value'],_0x2c305e=this['_getHeadingLevel'](_0x2cb601);if(null!==_0x2c305e)return{'type':'format','content':o(_0x26aeae,'*Change\x20to:*\x20%0',(_0x2794c8=0x1,_0x528e3b=_0x2c305e,o(_0x26aeae,'ELEMENT_HEADING',[_0x2794c8,_0x528e3b])))};const _0x580dbb=this['_headingOptions']['find'](_0x543dc6=>_0x543dc6['model']===_0x2cb601)['title'];return{'type':'format','content':o(_0x26aeae,'*Change\x20to:*\x20%0',_0x351804(0x1,_0x580dbb))};}var _0x2794c8,_0x528e3b;});}['_getHeadingLevel'](_0x590871){const _0x3b549c=_0x590871['match'](/^heading(\d+)/);if(_0x3b549c)return _0x3b549c[0x1];const _0x4be8fd=this['_headingOptions']?.['find'](_0x51fd5d=>_0x51fd5d['model']==_0x590871);if(_0x4be8fd&&_0x4be8fd['view']){const _0x3d4f3d=_0x4be8fd['view'],_0x20e8fb=(_0x3d4f3d['name']??_0x3d4f3d)['match'](/^h(\d+)/);if(_0x20e8fb)return _0x20e8fb[0x1];}return null;}}class Z extends _0x470f93{['afterInit'](){const _0x151356=this['editor'];if(!_0x151356['plugins']['has']('HighlightEditing'))return;const _0x349300=_0x151356['plugins']['get']('TrackChangesEditing'),_0x3b7fd7=_0x151356['locale'];_0x349300['enableDefaultAttributesIntegration']('highlight'),_0x349300['registerInlineAttribute']('highlight'),_0x349300['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3b7fd7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5198c9=this['editor'],_0x17af11=_0x5198c9['locale'];_0x5198c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49095d=>{if('formatInline'!=_0x49095d['type'])return;const {data:_0x4a03df}=_0x49095d;if(_0x4a03df&&'highlight'==_0x4a03df['commandName']){const _0xcfcd3a=_0x17af11['t'],_0x12f10f=_0x4a03df['commandParams'][0x0]['value'];if(_0x12f10f){const _0x1cfaa8=_0x5198c9['config']['get']('highlight.options')['find'](_0x4baecc=>_0x4baecc['model']==_0x12f10f),_0x2cc171=_0xcfcd3a(_0x1cfaa8['title'])['toLowerCase']();return{'type':'format','content':o(_0x17af11,'*Set\x20highlight:*\x20%0',_0x2cc171),'color':{'value':_0x1cfaa8['color'],'title':_0x1cfaa8['title']}};}return{'type':'format','content':o(_0x17af11,'*Remove\x20highlight*',o(_0x17af11,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x470f93{['afterInit'](){const _0x35216b=this['editor'];if(!_0x35216b['plugins']['has']('HorizontalLineEditing'))return;_0x35216b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3084cf=_0x35216b['plugins']['get']('TrackChangesEditing'),_0x1c0189=_0x35216b['locale'];_0x3084cf['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4fc1c3=>o(_0x1c0189,'ELEMENT_HORIZONTAL_LINE',_0x4fc1c3)),_0x35216b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x42e172,{writer:_0x53f95e,options:_0x5e4338})=>{if(!_0x5e4338['showSuggestionHighlights'])return null;const _0x249477=_0x53f95e['createContainerElement']('div'),_0x197c4a=_0x53f95e['createEmptyElement']('hr');return _0x53f95e['addClass']('ck-horizontal-line',_0x249477),_0x53f95e['insert'](_0x53f95e['createPositionAt'](_0x249477,0x0),_0x197c4a),_0x249477;},'converterPriority':'high'});}}class et extends _0x470f93{['afterInit'](){const _0x422aa7=this['editor'];if(!_0x422aa7['plugins']['has']('HtmlEmbed'))return;const _0x597072=_0x422aa7['plugins']['get']('TrackChangesEditing'),_0x2b3f2c=_0x422aa7['locale'];_0x597072['descriptionFactory']['registerElementLabel']('rawHtml',_0x41c039=>o(_0x2b3f2c,'ELEMENT_HTML_EMBED',_0x41c039)),_0x597072['enableDefaultAttributesIntegration']('htmlEmbed'),_0x597072['registerBlockAttribute']('value'),_0x597072['descriptionFactory']['registerDescriptionCallback'](_0x569021=>{if('attribute'!=_0x569021['type'])return;const {data:_0x45cbe7}=_0x569021;if(_0x45cbe7&&'value'==_0x45cbe7['key']&&_0x569021['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b2aed=o(_0x2b3f2c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b3f2c,'*Change\x20%0\x20content*',_0x2b2aed)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x382dbf=this['editor'],_0x53f483=_0x382dbf['locale'];_0x382dbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x572aaf=>{if('formatBlock'!=_0x572aaf['type'])return;const {data:_0x19b5f5}=_0x572aaf;if(_0x19b5f5&&'htmlEmbed'==_0x19b5f5['commandName']){const _0x4a7307=o(_0x53f483,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53f483,'*Change\x20%0\x20content*',_0x4a7307)};}});}}class it extends _0x470f93{['afterInit'](){const _0x502e2f=this['editor'];if(!_0x502e2f['plugins']['has']('ImageEditing'))return;const _0x232a58=_0x502e2f['plugins']['get']('TrackChangesEditing'),_0xc74b8e=_0x502e2f['plugins']['get']('ImageUtils'),_0x42d597=_0x502e2f['locale'];_0x232a58['enableCommand']('insertImage'),_0x232a58['descriptionFactory']['registerElementLabel']('imageBlock',_0x557a0d=>o(_0x42d597,'ELEMENT_IMAGE',_0x557a0d)),_0x232a58['descriptionFactory']['registerElementLabel']('imageInline',_0x32b4fd=>o(_0x42d597,'ELEMENT_INLINE_IMAGE',_0x32b4fd)),_0x232a58['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x42d597,'ELEMENT_CAPTION')),_0x502e2f['plugins']['has']('ImageUploadEditing')&&_0x232a58['enableCommand']('uploadImage'),_0x502e2f['plugins']['has']('ImageBlockEditing')&&_0x502e2f['plugins']['has']('ImageInlineEditing')&&(_0x232a58['enableCommand']('imageTypeInline',(_0x5eb738,_0x27801c)=>{const _0x1b2737=_0xc74b8e['getClosestSelectedImageElement'](_0x502e2f['model']['document']['selection']);_0x502e2f['model']['change'](()=>{_0x232a58['markBlockFormat'](_0x1b2737,{'commandName':'imageTypeInline','commandParams':[_0x27801c]},[],'convertBlockImageToInline');});}),_0x232a58['enableCommand']('imageTypeBlock',(_0x41dc9b,_0x230908)=>{_0x502e2f['model']['change'](_0xe70550=>{let _0x623df2=_0xc74b8e['getClosestSelectedImageElement'](_0x502e2f['model']['document']['selection']),_0x320b52=_0xe70550['createRangeOn'](_0x623df2);const _0x4d66cf=_0x378777['fromPosition'](_0x320b52['start'],'toPrevious'),_0x2eb90f=_0x378777['fromPosition'](_0x320b52['end'],'toNext');_0x232a58['forceDefaultExecution'](()=>_0x41dc9b(_0x230908)),_0x623df2=_0xc74b8e['getClosestSelectedImageElement'](_0x502e2f['model']['document']['selection']),_0x320b52=_0xe70550['createRangeOn'](_0x623df2);const _0x58377a=_0xe70550['createRange'](_0x4d66cf,_0x2eb90f);_0x4d66cf['detach'](),_0x2eb90f['detach'](),_0x232a58['markBlockFormat'](_0x623df2,{'commandName':'imageTypeInline','commandParams':[_0x230908]},[],'convertInlineImageToBlock'),_0x58377a['start']['isBefore'](_0x320b52['start'])&&_0x232a58['markInsertion'](_0xe70550['createRange'](_0x58377a['start'],_0x320b52['start']),'convertInlineImageToBlock'),_0x320b52['end']['isBefore'](_0x58377a['end'])&&_0x232a58['markInsertion'](_0xe70550['createRange'](_0x320b52['end'],_0x58377a['end']),'convertInlineImageToBlock');});}),_0x232a58['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x232a58['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x232a58['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x232a58['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x232a58['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x232a58['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2dcb05])=>{const _0x521ce8=_0x232a58['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4deb26=_0x2dcb05['start'],_0x3eaa08=_0x2dcb05['end'];const _0x45213a=_0x502e2f['model']['schema']['getNearestSelectionRange'](_0x4deb26,'backward'),_0x35b5e5=_0x502e2f['model']['schema']['getNearestSelectionRange'](_0x3eaa08,'forward');_0x45213a['isCollapsed']&&(_0x4deb26=_0x45213a['start']),_0x35b5e5['isCollapsed']&&(_0x3eaa08=_0x35b5e5['end']),_0x521ce8([_0x502e2f['model']['createRange'](_0x4deb26,_0x3eaa08)]);}),_0x232a58['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15ae30),_0x232a58['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15ae30)),_0x502e2f['plugins']['has']('ImageCaptionEditing')&&(_0x232a58['enableCommand']('toggleImageCaption',(_0x55aafe,_0x10bd7d)=>{const _0x3b4538=_0x502e2f['plugins']['get']('ImageCaptionUtils');let _0x3a362a=_0xc74b8e['getClosestSelectedImageElement'](_0x502e2f['model']['document']['selection']),_0x2a20c6=_0x3b4538['getCaptionFromImageModelElement'](_0x3a362a);_0x502e2f['model']['change'](()=>{if(_0x2a20c6)return void _0x232a58['markDeletion'](_0x502e2f['model']['createRangeOn'](_0x2a20c6));const _0x25e2be=_0xc74b8e['isBlockImage'](_0x3a362a);_0x55aafe(_0x10bd7d),_0x3a362a=_0xc74b8e['getClosestSelectedImageElement'](_0x502e2f['model']['document']['selection']),_0x2a20c6=_0x3b4538['getCaptionFromImageModelElement'](_0x3a362a),_0x232a58['markInsertion'](_0x502e2f['model']['createRangeOn'](_0x2a20c6),_0x25e2be?null:'imageCaption');});}),_0x232a58['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15ae30));const _0x2eb557=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3078d1(_0x194256,_0x45a078){const _0x5847bd=_0x2eb557['findIndex'](({type:_0x1e90aa,subType:_0x5c1217})=>_0x194256['type']==_0x1e90aa&&_0x194256['subType']==_0x5c1217),_0x1948b3=_0x2eb557['findIndex'](({type:_0x225b8d,subType:_0x3b9fd7})=>_0x45a078['type']==_0x225b8d&&_0x45a078['subType']==_0x3b9fd7);if(_0x5847bd<0x0||_0x1948b3<0x0)return!0x1;const _0x4d1a8e=_0x194256['getFirstRange'](),_0x5a9a5d=_0x45a078['getFirstRange']();if((0x0==_0x5847bd||0x1==_0x5847bd)&&0x2==_0x1948b3&&_0x4d1a8e['isIntersecting'](_0x5a9a5d))return!0x0;if(0x2==_0x5847bd&&0x3==_0x1948b3){const _0x1eac65=_0x232a58['_findSuggestions'](_0x4d1a8e,'insertion')['filter'](({suggestion:_0x302e0b,meta:_0x139d8f})=>_0x139d8f['isOwn']&&'convertInlineImageToBlock'==_0x302e0b['subType']);if(_0x1eac65['length']>0x1&&_0x5a9a5d['end']['isEqual'](_0x4d1a8e['start']))return!0x0;if(0x1==_0x1eac65['length']&&(_0x4d1a8e['start']['isEqual'](_0x5a9a5d['end'])||_0x4d1a8e['end']['isEqual'](_0x5a9a5d['start'])))return!0x0;}if(0x3==_0x5847bd&&0x3==_0x1948b3&&_0x4d1a8e['start']['isBefore'](_0x5a9a5d['start'])){const _0x24dd58=_0x4d1a8e['end']['nodeAfter'],_0x8f6d91=_0x5a9a5d['start']['nodeBefore'];return _0xc74b8e['isBlockImage'](_0x24dd58)&&_0x24dd58===_0x8f6d91;}return!0x1;}function _0x15ae30(_0x4e6fb6,_0x11d80d){return _0x3078d1(_0x4e6fb6,_0x11d80d)?[_0x4e6fb6,_0x11d80d]:_0x3078d1(_0x11d80d,_0x4e6fb6)?[_0x11d80d,_0x4e6fb6]:null;}_0x502e2f['plugins']['has']('ImageResize')&&(_0x232a58['enableDefaultAttributesIntegration']('resizeImage'),_0x232a58['registerBlockAttribute']('resizedWidth'),_0x232a58['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x42d597,'FORMAT_IMAGE_SIZE'))),_0x502e2f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x232a58['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x232a58['registerBlockAttribute']('alt')),_0x232a58['descriptionFactory']['registerDescriptionCallback'](_0x5e7925=>{if(!!_0x2eb557['find'](({type:_0x5cfc96,subType:_0x48e283})=>_0x5e7925['type']==_0x5cfc96&&_0x5e7925['subType']==_0x48e283))return _0x5e7925['previous']?{}:void 0x0;}),_0x232a58['descriptionFactory']['registerDescriptionCallback'](_0x339388=>{if('insertion'==_0x339388['type']||'deletion'==_0x339388['type']){const _0x3e3f8b=_0x339388['getContainedElement']();if(_0x3e3f8b&&_0x3e3f8b['is']('element','caption'))return{'type':'insertion'==_0x339388['type']?'addObject':'removeObject','element':_0x3e3f8b,'quantity':0x1};}}),_0x232a58['descriptionFactory']['registerDescriptionCallback'](_0x397ffb=>'formatBlock'==_0x397ffb['type']&&'convertInlineImageToBlock'==_0x397ffb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x397ffb['type']&&'convertBlockImageToInline'==_0x397ffb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x232a58['descriptionFactory']['registerDescriptionCallback'](_0x5abd9d=>{if('attribute'!=_0x5abd9d['type'])return;const {data:_0x17ee1a}=_0x5abd9d;if(!_0x17ee1a||'alt'!=_0x17ee1a['key'])return;const _0x486e92=_0x17ee1a['newValue'];return _0x486e92?{'type':'format','content':o(_0x42d597,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x486e92+'\x22')}:{'type':'format','content':o(_0x42d597,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbcdd81=this['editor'],_0x5a4f43=_0xbcdd81['locale'];_0xbcdd81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fa478=>{if('formatBlock'!=_0x1fa478['type']&&'formatInline'!=_0x1fa478['type'])return;const {data:_0x59ec19}=_0x1fa478;if(_0x59ec19){if('imageTextAlternative'==_0x59ec19['commandName']){const _0x39a2f3=_0x59ec19['commandParams'][0x0]['newValue'];return _0x39a2f3?{'type':'format','content':o(_0x5a4f43,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39a2f3+'\x22')}:{'type':'format','content':o(_0x5a4f43,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x59ec19['commandName']){const _0x366a6e=_0x59ec19['commandParams'][0x0]['width'];return _0x366a6e?{'type':'format','content':o(_0x5a4f43,'*Set\x20image\x20width:*\x20%0',_0x366a6e)}:{'type':'format','content':o(_0x5a4f43,'*Reset\x20image\x20width*')};}}});}}class st extends _0x470f93{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x32af56=this['editor']['locale'],_0x1573f2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1573f2['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1573f2['registerBlockAttribute']('src'),_0x1573f2['descriptionFactory']['registerDescriptionCallback'](_0x3eddf6=>{if('attribute'!=_0x3eddf6['type'])return;const {data:_0x501850}=_0x3eddf6;return _0x501850&&'src'==_0x501850['key']?_0x501850['newValue']&&_0x501850['oldValue']?{'type':'format','content':o(_0x32af56,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5e7050=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e7050['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5e7050['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e7050['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5e7050['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16b29e=this['editor'],_0x78b89c=_0x16b29e['locale'];_0x16b29e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5427d6=>{if('formatBlock'!=_0x5427d6['type']&&'formatInline'!=_0x5427d6['type'])return;const {data:_0x43d5ed}=_0x5427d6;if(!_0x43d5ed||'replaceImageSource'!=_0x43d5ed['commandName'])return;return{'type':'format','content':o(_0x78b89c,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x470f93{['afterInit'](){const _0x2d14f4=this['editor'];if(!_0x2d14f4['plugins']['has']('ImageStyleEditing'))return;const _0x3ddba7=_0x2d14f4['plugins']['get']('TrackChangesEditing'),_0x5cdc1b=_0x2d14f4['plugins']['get']('ImageUtils'),_0x171bd3={};_0x3ddba7['enableCommand']('imageStyle',(_0x45fefc,_0x1b7a84)=>{const _0x2ae46d=_0x2d14f4['plugins']['get']('Users')['me'],_0x26f940=_0x2d14f4['commands']['get']('imageStyle');let _0x2b0e46=_0x5cdc1b['getClosestSelectedImageElement'](_0x2d14f4['model']['document']['selection']),_0x10739c=_0x2d14f4['model']['createRangeOn'](_0x2b0e46),_0x2099a2=_0x26f940['value'];if(_0x2099a2==_0x1b7a84['value'])return;const _0x23a875={'commandName':'imageStyle','commandParams':[_0x1b7a84],'formatGroupId':_0x336056()};_0x2d14f4['model']['change'](()=>{if(_0x3ddba7['getSuggestions']()['filter'](_0x43c021=>_0x43c021['isInContent']&&_0x2ae46d==_0x43c021['author']&&('formatBlock'==_0x43c021['type']||'formatInline'==_0x43c021['type'])&&('imageStylePreApply'==_0x43c021['subType']||'imageStylePostApply'==_0x43c021['subType'])&&_0x43c021['getFirstRange']()['isEqual'](_0x10739c))['forEach'](_0x4c679f=>_0x3ddba7['discardSuggestion'](_0x4c679f['head'])),_0x2b0e46=_0x5cdc1b['getClosestSelectedImageElement'](_0x2d14f4['model']['document']['selection']),_0x10739c=_0x2d14f4['model']['createRangeOn'](_0x2b0e46),_0x26f940['refresh'](),_0x2d14f4['commands']['get']('imageTypeInline')['refresh'](),_0x2d14f4['commands']['get']('imageTypeBlock')['refresh'](),_0x2099a2=_0x26f940['value'],_0x2099a2!=_0x1b7a84['value'])return _0x5cdc1b['isInlineImage'](_0x2b0e46)&&_0x26f940['shouldConvertImageType'](_0x1b7a84['value'],_0x2b0e46)?(_0x45fefc({..._0x1b7a84,'setImageSizes':!0x1}),_0x2b0e46=_0x5cdc1b['getClosestSelectedImageElement'](_0x2d14f4['model']['document']['selection']),void _0x3ddba7['markBlockFormat'](_0x2b0e46,{..._0x23a875,'commandReversedParams':[{'value':_0x2099a2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5cdc1b['isBlockImage'](_0x2b0e46)?_0x3ddba7['markBlockFormat'](_0x2b0e46,_0x23a875,[],'imageStylePostApply'):_0x3ddba7['markInlineFormat'](_0x10739c,_0x23a875,'imageStylePostApply'));});});for(const _0x1864c2 of _0x2d14f4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x171bd3[_0x1864c2['name']]=_0x1864c2['title']['toLowerCase']();_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x16e2fe])=>{_0x5cdc1b['setImageNaturalSizeAttributes'](_0x16e2fe['getContainedElement']());}),_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x286b1d,_0x31ac8e)=>{_0x3ddba7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x286b1d,{'commandName':_0x31ac8e['commandName'],'commandParams':_0x31ac8e['commandReversedParams']});}),_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x350c96,_0x4f579d){if(_0x241d5f(_0x350c96,_0x4f579d))return[_0x350c96,_0x4f579d];if(_0x241d5f(_0x4f579d,_0x350c96))return[_0x4f579d,_0x350c96];return null;});const _0x375938=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x241d5f(_0x3ccceb,_0x7c75b9){const _0x12d2d6=_0x375938['findIndex'](({type:_0x11dbc0,subType:_0xa5f220})=>_0x3ccceb['type']==_0x11dbc0&&_0x3ccceb['subType']==_0xa5f220),_0x3845fe=_0x375938['findIndex'](({type:_0x4b6411,subType:_0x1e9c22})=>_0x7c75b9['type']==_0x4b6411&&_0x7c75b9['subType']==_0x1e9c22);if(_0x12d2d6<0x0||_0x3845fe<0x0)return!0x1;const _0x5ea413=_0x3ccceb['getFirstRange'](),_0x31269f=_0x7c75b9['getFirstRange']();if((0x0==_0x12d2d6||0x1==_0x12d2d6)&&0x2==_0x3845fe&&_0x5ea413['isIntersecting'](_0x31269f))return!0x0;if(0x2==_0x12d2d6&&0x3==_0x3845fe){const _0x36f651=_0x3ddba7['_findSuggestions'](_0x5ea413,'insertion')['filter'](({suggestion:_0x4e61c4,meta:_0x409f22})=>_0x409f22['isOwn']&&'convertInlineImageToBlock'==_0x4e61c4['subType']);if(_0x36f651['length']>0x1&&_0x31269f['end']['isEqual'](_0x5ea413['start']))return!0x0;if(0x1==_0x36f651['length']&&(_0x5ea413['start']['isEqual'](_0x31269f['end'])||_0x5ea413['end']['isEqual'](_0x31269f['start'])))return!0x0;}if(0x3==_0x12d2d6&&0x3==_0x3845fe&&_0x5ea413['start']['isBefore'](_0x31269f['start'])){const _0x2d4c76=_0x5ea413['end']['nodeAfter'],_0x5bb5e3=_0x31269f['start']['nodeBefore'];return _0x5cdc1b['isBlockImage'](_0x2d4c76)&&_0x2d4c76===_0x5bb5e3;}return!0x1;}_0x2d14f4['model']['document']['registerPostFixer'](()=>{let _0x483331=!0x1;const _0x2d4f21=Array['from'](_0x2d14f4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12c7fc,data:_0xeb3037}of _0x2d4f21){const {group:_0x2e917b,type:_0x42cd1e,subType:_0x1212e2,id:_0x357bac}=_0x3ddba7['_splitMarkerName'](_0x12c7fc);if('suggestion'==_0x2e917b&&_0x3ddba7['hasSuggestion'](_0x357bac)){if('formatBlock'==_0x42cd1e&&('imageStylePreApply'==_0x1212e2||'imageStylePostApply'==_0x1212e2)){const _0x54741e=_0x3ddba7['getSuggestion'](_0x357bac);if(_0xeb3037['newRange']){const _0x43bb9f=_0x54741e['getFirstRange']()['getContainedElement']();if(_0x5cdc1b['isBlockImage'](_0x43bb9f))continue;_0x3ddba7['discardSuggestion'](_0x54741e),_0x483331=!0x0;}}if('insertion'==_0x42cd1e&&'imageCaption'==_0x1212e2&&!_0xeb3037['newRange']){const _0x35a738=_0x3ddba7['getSuggestion'](_0x357bac);_0x35a738['next']&&_0x35a738['next']['isInContent']&&(_0x3ddba7['discardSuggestion'](_0x35a738['next']),_0x483331=!0x0);}}}return _0x483331;}),this['_registerLegacyDescription'](_0x171bd3);}['_registerLegacyDescription'](_0x4690e3){const _0x2c8722=this['editor'],_0x1279e0=_0x2c8722['locale'];_0x2c8722['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x345eae=>{if('formatBlock'!=_0x345eae['type']&&'formatInline'!=_0x345eae['type'])return;const {data:_0x5cd3f8}=_0x345eae;if(!_0x5cd3f8||'imageStyle'!=_0x5cd3f8['commandName'])return;const _0x531c92=_0x5cd3f8['commandParams'][0x0]['value'];return _0x127f20('side'===_0x531c92?o(_0x1279e0,'FORMAT_SIDE_IMAGE'):_0x4690e3[_0x531c92]||_0x531c92);function _0x127f20(_0x474173){return{'type':'format','content':o(_0x1279e0,'*Format:*\x20%0',_0x474173)};}});}}class ot extends _0x470f93{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4e2326){super(_0x4e2326),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1fe151=this['editor'],_0x331236=_0x1fe151['commands']['get']('importWord'),_0x5f0bf4=_0x1fe151['commands']['get']('trackChanges');_0x331236&&(_0x331236['on']('execute',(_0x20771e,[,_0xaf67c4])=>{this['_trackChangesValueDuringImport']=_0x5f0bf4['value'],_0xaf67c4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x331236,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x331236,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5f0bf4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1fe151['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2e36ed,_0xafd8d8){const {suggestions:_0x431dd9}=_0xafd8d8,_0x49d8e9=this['editor']['commands']['get']('trackChanges'),_0x324550=_0x49d8e9['value'];this['_trackChangesValueDuringImport']!==_0x324550&&(_0x49d8e9['execute'](),this['_trackChangesExecuted']=!0x0),_0x431dd9&&_0x431dd9['forEach'](({id:_0x2da2d4,type:_0x4b02b6,author:_0x5af175,created_at:_0x2e6a66})=>{const _0x20b981={'id':_0x2da2d4,'type':_0x4b02b6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5af175,'createdAt':_0x2e6a66?new Date(_0x2e6a66):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x20b981);});}}class rt extends _0x470f93{['afterInit'](){const _0xee2387=this['editor'],_0x421e55=_0xee2387['plugins']['get']('TrackChangesEditing');if(_0xee2387['plugins']['has']('IndentEditing')&&(_0x421e55['enableCommand']('indent'),_0x421e55['enableCommand']('outdent')),_0xee2387['plugins']['has']('IndentBlock')){for(const _0x4e36ef of['indentBlock','outdentBlock'])_0x421e55['enableDefaultAttributesIntegration'](_0x4e36ef);}const _0x338683=_0xee2387['locale'];_0x421e55['registerBlockAttribute']('blockIndent'),_0x421e55['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x338683,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x411cc7=this['editor'],_0x203b32=_0x411cc7['locale'],_0x5717fc=_0x411cc7['plugins']['get']('TrackChangesEditing');_0x5717fc['descriptionFactory']['registerDescriptionCallback'](_0x17063b=>{if('formatBlock'!=_0x17063b['type'])return;const {data:_0x4f296c}=_0x17063b;if(!_0x4f296c)return;if('indentBlock'!=_0x4f296c['commandName']&&'outdentBlock'!=_0x4f296c['commandName'])return;const _0x20ee83=_0x17063b['getItems']()[0x0],_0x2da51d=_0x5717fc['descriptionFactory']['getItemLabel'](_0x20ee83);return'indentBlock'==_0x4f296c['commandName']?{'type':'format','content':o(_0x203b32,'*Indent:*\x20%0',_0x2da51d)}:'outdentBlock'==_0x4f296c['commandName']?{'type':'format','content':o(_0x203b32,'*Outdent:*\x20%0',_0x2da51d)}:void 0x0;});}}class at extends _0x470f93{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x470f93{['afterInit'](){const _0x5af326=this['editor'];if(!_0x5af326['plugins']['has']('LinkEditing'))return;const _0x12f8e1=_0x5af326['plugins']['get']('TrackChangesEditing'),_0x2b13e1=_0x5af326['commands']['get']('link');_0x12f8e1['enableDefaultAttributesIntegration']('link'),_0x12f8e1['enableDefaultAttributesIntegration']('unlink'),_0x12f8e1['registerInlineAttribute']('linkHref');for(const _0x5bd1d7 of _0x2b13e1['manualDecorators'])_0x12f8e1['registerInlineAttribute'](_0x5bd1d7['id']),_0x12f8e1['descriptionFactory']['registerAttributeLabel'](_0x5bd1d7['id'],'link\x20('+_0x5bd1d7['label']['toLowerCase']()+')');_0x12f8e1['descriptionFactory']['registerDescriptionCallback'](_0xe9eb3f=>{if('attribute'!=_0xe9eb3f['type'])return;const {data:_0x2f1b18}=_0xe9eb3f;if(!_0x2f1b18||'linkHref'!=_0x2f1b18['key'])return;const _0x2a297d=_0x2f1b18['newValue'],_0x2e7792=_0x5af326['locale'];return{'type':'format','content':null==_0x2a297d?o(_0x2e7792,'*Remove\x20link*'):o(_0x2e7792,'*Set\x20link:*\x20%0','\x22'+_0x2a297d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b1124=this['editor'],_0x53819f=_0x4b1124['locale'];_0x4b1124['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x465dc5=>{if('formatInline'!=_0x465dc5['type'])return;const {data:_0x439507}=_0x465dc5;if(_0x439507){if('link'==_0x439507['commandName']){const _0x45f572=_0x439507['commandParams'][0x0];return{'type':'format','content':o(_0x53819f,'*Set\x20link:*\x20%0','\x22'+_0x45f572+'\x22')};}return'unlink'==_0x439507['commandName']?{'type':'format','content':o(_0x53819f,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x470f93{['afterInit'](){const _0x5759f6=this['editor'],_0x597d79=_0x5759f6['locale'];if(!_0x5759f6['plugins']['has']('LegacyListEditing'))return;const _0x15d39f=_0x5759f6['plugins']['get']('TrackChangesEditing'),_0x2aac7d=_0x5759f6['plugins']['has']('LegacyTodoListEditing');function _0x28bda4(_0x2ff035){return()=>{const _0x3204e0=_0x5759f6['model']['document']['selection'],_0x5f55b4=_0x5759f6['commands']['get'](_0x2ff035);if(_0x5f55b4['value'])return void _0x5759f6['execute']('paragraph',{});const _0x3cf166=_0x2ff035['slice'](0x0,-0x4),_0x52d8fe=function(_0x56a9bb,_0x1326dc,_0x1d4d5b){let _0x4d4248=Array['from'](_0x56a9bb)['filter'](_0x30deab=>function(_0x3f048b,_0x133f65){return _0x133f65['checkChild'](_0x3f048b['parent'],'listItem')&&!_0x133f65['isObject'](_0x3f048b);}(_0x30deab,_0x1d4d5b));_0x4d4248=_0x4d4248['filter'](_0x4a7fd8=>!_0x4a7fd8['is']('element','listItem')||_0x4a7fd8['getAttribute']('listType')!=_0x1326dc);const _0x1a7f4d=new Set();for(const _0x1a1153 of _0x4d4248)_0x1a1153['is']('element','listItem')?_0x1a7f4d['add'](me(_0x1a1153)):_0x1a7f4d['add'](_0x1a1153);return Array['from'](_0x1a7f4d);}(_0x3204e0['getSelectedBlocks'](),_0x3cf166,_0x5759f6['model']['schema']);_0x5759f6['model']['change'](()=>{for(const _0x323de0 of _0x52d8fe)_0x15d39f['markBlockFormat'](_0x323de0,{'commandName':_0x2ff035,'commandParams':[{'forceValue':!_0x5f55b4['value']}],'formatGroupId':'blockName'},fe(_0x323de0));});};}function _0x431f26(_0x23029c){return()=>{const _0x2166a1=function(_0x44cf69){let _0x83636=Array['from'](_0x44cf69);const _0x1129de=_0x83636['findIndex'](_0x39dd90=>'listItem'!=_0x39dd90['name']);return _0x1129de>-0x1&&(_0x83636=_0x83636['slice'](0x0,_0x1129de)),_0x83636;}(_0x5759f6['model']['document']['selection']['getSelectedBlocks']()),_0x59ef61=_0x5759f6['model']['createRange'](_0x5759f6['model']['createPositionAt'](_0x2166a1[0x0],'before'),_0x5759f6['model']['createPositionAt'](_0x2166a1[_0x2166a1['length']-0x1],'end'));_0x5759f6['model']['change'](()=>{_0x15d39f['markBlockFormat'](_0x59ef61,{'commandName':_0x23029c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2d2862){const _0x3bb292=new Set();for(const _0x4487b5 of _0x2d2862){let _0x2b25a7=_0x4487b5['nextSibling'];for(;_0x2b25a7&&_0x2b25a7['getAttribute']('listIndent')>_0x4487b5['getAttribute']('listIndent');)_0x3bb292['add'](_0x2b25a7),_0x2b25a7=_0x2b25a7['nextSibling'];}return Array['from'](_0x3bb292);}(_0x2166a1));});};}_0x15d39f['enableCommand']('numberedList',_0x28bda4('numberedList')),_0x15d39f['enableCommand']('bulletedList',_0x28bda4('bulletedList')),_0x2aac7d&&_0x15d39f['enableCommand']('todoList',_0x28bda4('todoList')),_0x15d39f['enableCommand']('indentList',_0x431f26('indentList')),_0x15d39f['enableCommand']('outdentList',_0x431f26('outdentList')),_0x2aac7d&&_0x15d39f['enableCommand']('checkTodoList',()=>{const _0x3425a3=_0x5759f6['commands']['get']('checkTodoList'),_0x5f102e=Array['from'](_0x3425a3['_selectedElements']);_0x5f102e['filter'](_0x174de2=>_0x174de2['getAttribute']('todoListChecked')!=_0x3425a3['value']),_0x5759f6['model']['change'](()=>{for(const _0x5d1661 of _0x5f102e)_0x15d39f['markBlockFormat'](_0x5d1661,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3425a3['value']}]});});}),_0x15d39f['descriptionFactory']['registerElementLabel']('listItem',_0x3fc937=>o(_0x597d79,'ELEMENT_LIST_ITEM',_0x3fc937)),_0x15d39f['descriptionFactory']['registerDescriptionCallback'](_0xf0c247=>{if('formatBlock'!=_0xf0c247['type']&&'formatInline'!=_0xf0c247['type'])return;const {data:_0x296e44}=_0xf0c247;if(_0x296e44){if('numberedList'==_0x296e44['commandName']||'bulletedList'==_0x296e44['commandName']||'todoList'==_0x296e44['commandName'])switch(_0x296e44['commandName']['replace']('List','')){case'bulleted':return _0x2641e0(o(_0x597d79,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2641e0(o(_0x597d79,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2641e0(o(_0x597d79,'ELEMENT_TODO_LIST'));}if('indentList'==_0x296e44['commandName'])return{'type':'format','content':o(_0x597d79,'*Indent:*\x20%0',o(_0x597d79,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x296e44['commandName'])return{'type':'format','content':o(_0x597d79,'*Outdent:*\x20%0',o(_0x597d79,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x296e44['commandName'])return _0x296e44['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x597d79,'*Check\x20item*')}:{'type':'format','content':o(_0x597d79,'*Uncheck\x20item*')};}function _0x2641e0(_0x139173){return{'type':'format','content':o(_0x597d79,'*Change\x20to:*\x20%0',_0x139173)};}});}}function me(_0x5b4486){const _0x1c91e5=_0x5b4486['getAttribute']('listIndent');if(0x0==_0x1c91e5)return _0x5b4486;let _0x2d40f4=_0x5b4486;for(;_0x5b4486['previousSibling']&&_0x5b4486['previousSibling']['is']('element','listItem');){const _0x21fb22=_0x5b4486['previousSibling']['getAttribute']('listIndent');if(_0x21fb22==_0x1c91e5)_0x2d40f4=_0x5b4486['previousSibling'];else{if(_0x21fb22<_0x1c91e5)break;}_0x5b4486=_0x5b4486['previousSibling'];}return _0x2d40f4;}function fe(_0x5c5169){const _0x2dea0a=[];if(_0x5c5169['is']('element','listItem')&&_0x5c5169['getAttribute']('listIndent')>0x0){let _0x2aa2c6=_0x5c5169['nextSibling'];for(;_0x2aa2c6&&'listItem'==_0x2aa2c6['name']&&_0x2aa2c6['getAttribute']('listIndent')==_0x5c5169['getAttribute']('listIndent');)_0x2dea0a['push'](_0x2aa2c6),_0x2aa2c6=_0x2aa2c6['nextSibling'];}return _0x2dea0a;}class K extends _0x470f93{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xb20441=this['editor']['config']['get']('list.properties'),_0x53dda0=this['editor']['plugins']['get']('TrackChangesEditing');_0xb20441['styles']&&_0x53dda0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xb20441['reversed']&&_0x53dda0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xb20441['startIndex']&&_0x53dda0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x53dda0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x557116,_0x289748={}){const _0x4c952e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x503693=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4c952e['markMultiRangeBlockFormat'](_0x503693,{'commandName':'listStyle','commandParams':[{'type':_0x289748['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2f4922,_0xfabdb8={}){const _0x569bbe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ea16d=this['_getSuggestionBlocks'](_0x3ba148=>_0x3ba148['is']('element','listItem')&&'numbered'===_0x3ba148['getAttribute']('listType'));if(_0x2ea16d['length']<0x1)return;const _0x8dbcb5=_0x2ea16d['map'](_0x4a0376=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a0376,'before'),this['editor']['model']['createPositionAt'](_0x4a0376,0x0)));this['editor']['model']['change'](()=>{_0x569bbe['markMultiRangeBlockFormat'](_0x8dbcb5,{'commandName':'listReversed','commandParams':[{'reversed':_0xfabdb8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x56b6ae,_0x1f735c={}){const _0x2dcb1a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15b88c=this['_getSuggestionBlocks'](_0x30d8b1=>_0x30d8b1['is']('element','listItem')&&'numbered'===_0x30d8b1['getAttribute']('listType'));if(_0x15b88c['length']<0x1)return;const _0xcf34e4=_0x15b88c['map'](_0x181f6f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x181f6f,'before'),this['editor']['model']['createPositionAt'](_0x181f6f,0x0)));this['editor']['model']['change'](()=>{_0x2dcb1a['markMultiRangeBlockFormat'](_0xcf34e4,{'commandName':'listStart','commandParams':[{'startIndex':_0x1f735c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5bc56a){if('formatBlock'!=_0x5bc56a['type']&&'formatInline'!=_0x5bc56a['type'])return;const _0xf0ee9e=this['editor']['locale'],{data:_0x6d4419}=_0x5bc56a;if(!_0x6d4419)return;let _0x1d0d3e,_0x46d1c0;switch(_0x6d4419['commandName']){case'listStyle':_0x1d0d3e='*Change\x20to:*\x20%0',_0x46d1c0={'type':'format','content':o(_0xf0ee9e,_0x1d0d3e,o(_0xf0ee9e,this['_getTranslationKeyForListStyle'](_0x6d4419['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d0d3e=_0x6d4419['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46d1c0={'type':'format','content':o(_0xf0ee9e,_0x1d0d3e)};break;case'listStart':_0x1d0d3e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46d1c0={'type':'format','content':o(_0xf0ee9e,_0x1d0d3e,_0x6d4419['commandParams'][0x0]['startIndex'])};}return _0x46d1c0;}['_getSuggestionBlocksForListStyle'](){const _0xfeafb0=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c0c5a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4c0c5a[0x0]?.['is']('element','listItem')&&_0x4c0c5a['unshift'](..._0xfeafb0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4c0c5a[_0x4c0c5a['length']-0x1]?.['is']('element','listItem')&&_0x4c0c5a['push'](..._0xfeafb0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4c0c5a=[...new Set(_0x4c0c5a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4c0c5a=_0x4c0c5a['filter'](_0x3afa7a=>_0x3afa7a['is']('element','listItem'))),_0x4c0c5a;}['_getSuggestionBlocks'](_0x5dcc93){const _0x847baf=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e8fdf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5dcc93)['map'](_0x131236=>{const _0x2b8f83=this['editor']['model']['createPositionAt'](_0x131236,0x0);return[..._0x847baf['getSiblingNodes'](_0x2b8f83,'backward'),..._0x847baf['getSiblingNodes'](_0x2b8f83,'forward')];})['flat']();return _0x5e8fdf=[...new Set(_0x5e8fdf)],_0x5e8fdf;}['_getTranslationKeyForListStyle'](_0x4e360c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4e360c)||'default')['toUpperCase']()+'_LIST_'+_0x4e360c['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x470f93{['afterInit'](){const _0x209ee7=this['editor'];if(!_0x209ee7['plugins']['has']('MediaEmbedEditing'))return;const _0x2bba0a=_0x209ee7['plugins']['get']('TrackChangesEditing'),_0x2358da=_0x209ee7['locale'];_0x2bba0a['enableCommand']('mediaEmbed'),_0x2bba0a['descriptionFactory']['registerElementLabel']('media',_0x178514=>o(_0x2358da,'ELEMENT_MEDIA',_0x178514)),_0x209ee7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3dddbd,{writer:_0x50fbef,options:_0x444e63})=>{if(_0x444e63['showSuggestionHighlights'])return _0x50fbef['createEmptyElement']('div');},'converterPriority':'high'}),_0x209ee7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5d9efb,_0x14be8a,_0x4c02be)=>{_0x4c02be['options']['showSuggestionHighlights']&&_0x5d9efb['stop']();},{'priority':'high'});}}class gt extends _0x470f93{['afterInit'](){const _0xdd49ee=this['editor'];_0xdd49ee['plugins']['has']('MentionEditing')&&_0xdd49ee['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x470f93{['afterInit'](){const _0x44e154=this['editor'],_0x53f004=_0x44e154['plugins']['get']('TrackChangesEditing');_0x44e154['plugins']['has']('MultiLevelList')&&(_0x53f004['enableDefaultAttributesIntegration']('multiLevelList'),_0x53f004['registerBlockAttribute']('listMarkerStyle'),_0x53f004['descriptionFactory']['registerDescriptionCallback'](_0x4069cf=>this['handleDescriptions'](_0x4069cf)));}['handleDescriptions'](_0x17a445){const _0x499f36=this['editor']['locale'],{data:_0x5a09bb}=_0x17a445,_0x55cb80={'type':'format','content':''};if(_0x5a09bb&&'listMarkerStyle'==_0x5a09bb['key']){if(!_0x5a09bb['oldValue'])return{'type':'format','content':o(_0x499f36,'*Set\x20format:*\x20%0',o(_0x499f36,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a09bb['newValue']+')'};if(!_0x5a09bb['newValue']){let _0x543c4e=_0x17a445['head'];for(;_0x543c4e;){if(_0x543c4e['data']&&'listType'==_0x543c4e['data']['key']&&_0x543c4e['data']['newValue'])return _0x55cb80;_0x543c4e=_0x543c4e['next'];}return{'type':'format','content':o(_0x499f36,'*Remove\x20format:*\x20%0',o(_0x499f36,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a09bb['oldValue']+')'};}}}}class mt extends _0x470f93{['afterInit'](){const _0x4f851c=this['editor'];if(!_0x4f851c['plugins']['has']('PageBreakEditing'))return;_0x4f851c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x39b814=_0x4f851c['plugins']['get']('TrackChangesEditing'),_0x14f2cf=_0x4f851c['locale'];_0x39b814['descriptionFactory']['registerElementLabel']('pageBreak',_0x277df1=>o(_0x14f2cf,'ELEMENT_PAGE_BREAK',_0x277df1));}}class dt extends _0x470f93{['afterInit'](){const _0x1b4ee7=this['editor'];if(!_0x1b4ee7['plugins']['has']('Paragraph'))return;const _0x3893dd=_0x1b4ee7['locale'],_0x12a5e6=_0x1b4ee7['plugins']['get']('TrackChangesEditing');_0x12a5e6['descriptionFactory']['registerElementLabel']('paragraph',_0x91fd9a=>o(_0x3893dd,'ELEMENT_PARAGRAPH',_0x91fd9a)),_0x12a5e6['enableDefaultAttributesIntegration']('paragraph'),_0x12a5e6['enableCommand']('insertParagraph'),_0x1b4ee7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1b4ee7),{'priority':'highest'}),_0x1b4ee7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2db91c,_0x44014a,_0x1bfec6)=>{_0x1bfec6['options']['showSuggestionHighlights']&&nr(_0x1b4ee7,{'showActiveMarker':!0x1})(_0x2db91c,_0x44014a,_0x1bfec6);},{'priority':'highest'});const _0x403d4d=_0x12a5e6['descriptionFactory'];_0x403d4d['registerDescriptionCallback'](_0x49e445=>{if('insertion'!==_0x49e445['type'])return;const {start:_0x26053c,end:_0x377267}=_0x49e445['getFirstRange']();if(!_0x26053c['isTouching'](_0x377267)||!_0x26053c['nodeAfter'])return;const _0x436416=_0x1b4ee7['model']['schema'],_0x114944=_0x26053c['nodeAfter'];return _0x436416['isBlock'](_0x114944)&&!_0x436416['isLimit'](_0x114944)&&_0x436416['checkChild'](_0x114944,'$text')?{'type':'insertion','content':o(_0x3893dd,'*Insert:*\x20%0',_0x403d4d['getItemLabel'](_0x114944,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x160fb9=this['editor'],_0x490fb9=_0x160fb9['locale'];_0x160fb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b4b7c=>{if('formatBlock'!=_0x4b4b7c['type'])return;const {data:_0x1922e6}=_0x4b4b7c;return _0x1922e6&&'paragraph'==_0x1922e6['commandName']?{'type':'format','content':o(_0x490fb9,'*Change\x20to:*\x20%0',o(_0x490fb9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5de336,{showActiveMarker:_0x7e9668=!0x0}={}){return(_0x219b65,_0x39c8cf,_0x60a018)=>{const _0x4459ee=_0x5de336['plugins']['get']('TrackChangesEditing'),_0x2f332a=_0x39c8cf['markerRange']['start'],_0x1eb76b=_0x39c8cf['markerRange']['end'],_0x1931a1=_0x5de336['model']['schema'];if(!_0x2f332a['isTouching'](_0x1eb76b)||!_0x2f332a['nodeAfter'])return;const _0x143aa2=_0x2f332a['nodeAfter'];if(_0x1931a1['isBlock'](_0x143aa2)&&!_0x1931a1['isLimit'](_0x143aa2)&&_0x1931a1['checkChild'](_0x143aa2,'$text')){if(!_0x60a018['consumable']['consume'](_0x39c8cf['markerRange'],_0x219b65['name']))return;const _0x321a76=_0x60a018['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2350f4=_0x60a018['mapper']['toViewPosition'](_0x1eb76b);_0x7e9668&&_0x4459ee['activeMarkers']['includes'](_0x39c8cf['markerName'])&&_0x60a018['writer']['addClass']('ck-suggestion-marker--active',_0x321a76),_0x60a018['writer']['insert'](_0x2350f4,_0x321a76),_0x60a018['mapper']['bindElementToMarker'](_0x321a76,_0x39c8cf['markerName']);}};}class pt extends _0x470f93{['afterInit'](){const _0x83aa4f=this['editor'];if(!_0x83aa4f['plugins']['has']('RemoveFormatEditing'))return;_0x83aa4f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c2aef=this['editor'];_0x1c2aef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x435548=>{if('formatBlock'!=_0x435548['type']&&'formatInline'!=_0x435548['type'])return;const {data:_0x3db367}=_0x435548;return _0x3db367&&'removeFormat'==_0x3db367['commandName']?{'type':'format','content':o(_0x1c2aef['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x470f93{['afterInit'](){const _0x2d18e2=this['editor'];if(!_0x2d18e2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5186ea=_0x2d18e2['plugins']['get']('TrackChangesEditing');_0x5186ea['enableCommand']('goToPreviousRestrictedEditingException'),_0x5186ea['enableCommand']('goToNextRestrictedEditingException');const _0x3e08c4=_0x2d18e2['plugins']['get']('RestrictedEditingModeEditing');_0x3e08c4['enableCommand']('trackChanges'),_0x3e08c4['enableCommand']('acceptSuggestion'),_0x3e08c4['enableCommand']('discardSuggestion'),_0x3e08c4['enableCommand']('acceptAllSuggestions'),_0x3e08c4['enableCommand']('discardAllSuggestions'),_0x3e08c4['enableCommand']('acceptSelectedSuggestions'),_0x3e08c4['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x470f93{static get['requires'](){return[_0x393c11];}['init'](){const _0x2b1825=this['editor'],_0xf2b0c1=_0x2b1825['plugins']['get']('TrackChangesEditing');_0xf2b0c1['enableCommand']('shiftEnter'),_0x2b1825['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2b1825),{'priority':'high'}),_0x2b1825['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2b1825),{'priority':'high'}),_0x2b1825['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x803ee1,_0x47c840,_0x266ef8)=>{_0x266ef8['options']['showSuggestionHighlights']&&de(_0x2b1825,{'showActiveMarker':!0x1})(_0x803ee1,_0x47c840,_0x266ef8);}),_0xf2b0c1['descriptionFactory']['registerElementLabel']('softBreak',_0x595e23=>o(_0x2b1825['locale'],'ELEMENT_LINE_BREAK',_0x595e23));}}function de(_0x5c1164,{showActiveMarker:_0x352b95=!0x0}={}){return(_0x36b799,_0xf7e63f,_0x23ae11)=>{const _0x4ea107=_0x5c1164['plugins']['get']('TrackChangesEditing');if(!_0x23ae11['consumable']['test'](_0xf7e63f['markerRange'],_0x36b799['name']))return;const _0x43176c=_0x5c1164['model'];for(const _0x16ec10 of _0xf7e63f['markerRange']['getItems']()){if(!_0x16ec10['is']('element','softBreak'))continue;const _0x108f21='deletion'==_0xf7e63f['markerName']['split'](':')[0x1]?'merge':'split',_0x315265=_0x23ae11['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x108f21}),_0x2e11ee=_0x23ae11['mapper']['toViewPosition'](_0x43176c['createPositionBefore'](_0x16ec10));_0x352b95&&_0x4ea107['activeMarkers']['includes'](_0xf7e63f['markerName'])&&_0x23ae11['writer']['addClass']('ck-suggestion-marker--active',_0x315265),_0x23ae11['writer']['insert'](_0x2e11ee,_0x315265),_0x23ae11['mapper']['bindElementToMarker'](_0x315265,_0xf7e63f['markerName']);}};}class wt extends _0x470f93{['afterInit'](){const _0x2e159f=this['editor'],_0x5e7c11=_0x2e159f['model'],_0xb2e8ef=_0x2e159f['locale'];if(!_0x2e159f['plugins']['has']('StandardEditingModeEditing'))return;const _0x4f3bc8=_0x2e159f['plugins']['get']('TrackChangesEditing'),_0x25ef2f='restrictedEditingException',_0x467672=_0x2e159f['commands']['get'](_0x25ef2f);_0x4f3bc8['enableCommand'](_0x25ef2f,(_0x51c605,_0x35f911={})=>{const _0x122fd7=_0x5e7c11['document']['selection'];if(_0x122fd7['isCollapsed'])return void _0x51c605(_0x35f911);const _0x50e8bf=void 0x0!==_0x35f911['forceValue']?_0x35f911['forceValue']:!_0x467672['value'];_0x5e7c11['change'](()=>{const _0x48cb2f=Array['from'](_0x122fd7['getRanges']());for(const _0x380ecd of _0x48cb2f){const _0x40706e=_0x50e8bf?[_0x380ecd]:io(_0x25ef2f,_0x380ecd,_0x5e7c11);for(const _0x8224c0 of _0x40706e)_0x4f3bc8['markInlineFormat'](_0x8224c0,{'commandName':_0x25ef2f,'commandParams':[{'forceValue':_0x50e8bf}]});}});}),_0x4f3bc8['descriptionFactory']['registerDescriptionCallback'](_0xdf4466=>{if('formatBlock'!=_0xdf4466['type']&&'formatInline'!=_0xdf4466['type'])return;const {data:_0x47cbf3}=_0xdf4466;return _0x47cbf3&&_0x47cbf3['commandName']==_0x25ef2f?_0x47cbf3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb2e8ef,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb2e8ef,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x470f93{['afterInit'](){const _0x4c399f=this['editor'];if(!_0x4c399f['plugins']['has']('Style')||!_0x4c399f['plugins']['has']('DataSchema'))return;const _0x1cc913=_0x4c399f['plugins']['get']('TrackChangesEditing'),_0x5eb1aa=_0x4c399f['locale'],_0x101332=_0x4c399f['config']['get']('style')||{},_0x59ab05=_0x4c399f['plugins']['get']('GeneralHtmlSupport'),_0x6d648=_0x4c399f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4c399f['plugins']['get']('DataSchema'),_0x101332['definitions']);_0x1cc913['enableDefaultAttributesIntegration']('style');const _0x473c65=new Set();for(const _0x5735fd of _0x6d648['block']){const _0x5ce0b3=_0x59ab05['getGhsAttributeNameForElement'](_0x5735fd['element']);_0x473c65['add'](_0x5ce0b3);}const _0x12d1ad=new Set();for(const _0x1cb204 of _0x6d648['inline']){const _0x782486=_0x59ab05['getGhsAttributeNameForElement'](_0x1cb204['element']);_0x12d1ad['add'](_0x782486);for(const _0x227728 of _0x1cb204['ghsAttributes'])_0x12d1ad['add'](_0x227728);}for(const _0x2cd3f5 of _0x473c65)_0x1cc913['registerBlockAttribute'](_0x2cd3f5),_0x1cc913['descriptionFactory']['registerAttributeLabel'](_0x2cd3f5,o(_0x5eb1aa,'FORMAT_STYLE'));for(const _0x34dfd8 of _0x12d1ad)_0x1cc913['registerInlineAttribute'](_0x34dfd8),_0x1cc913['descriptionFactory']['registerAttributeLabel'](_0x34dfd8,o(_0x5eb1aa,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ddb61=this['editor'],_0x25785d=_0x4ddb61['locale'];_0x4ddb61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12ad23=>{if('formatBlock'!=_0x12ad23['type']&&'formatInline'!=_0x12ad23['type'])return;const {data:_0x5820c6}=_0x12ad23;return _0x5820c6&&'style'===_0x5820c6['commandName']?_0x5820c6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25785d,'*Set\x20format:*\x20%0',_0x5820c6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x25785d,'*Remove\x20format:*\x20%0',_0x5820c6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x470f93{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3ab47c){super(_0x3ab47c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2eb1da=this['editor'],_0x28d91e=_0x2eb1da['model']['document']['selection'];if(!_0x2eb1da['plugins']['has']('TableEditing'))return;const _0x36b5ea=_0x2eb1da['locale'],_0x2c0e0a=_0x2eb1da['plugins']['get']('TrackChangesEditing'),_0x39ba29=_0x2eb1da['plugins']['get']('TableUtils');_0x2c0e0a['descriptionFactory']['registerElementLabel']('table',_0x12eb85=>o(_0x36b5ea,'ELEMENT_TABLE',_0x12eb85)),this['_setupColumnsRowsFixing'](),_0x2c0e0a['enableCommand']('insertTable'),_0x2c0e0a['enableCommand']('selectTableRow'),_0x2c0e0a['enableCommand']('selectTableColumn');for(const _0x709a90 of['insertTableRowAbove','insertTableRowBelow']){const _0x575a2c=_0x2eb1da['commands']['get'](_0x709a90);_0x2c0e0a['enableCommand'](_0x709a90,_0x42dc29=>{_0x2eb1da['model']['change'](_0x5387d5=>{_0x42dc29();const _0x80b5c1='above'===_0x575a2c['order'],_0x1d16fd=_0x39ba29['getSelectionAffectedTableCells'](_0x28d91e),_0x495ff9=_0x39ba29['getRowIndexes'](_0x1d16fd),_0x56e9ae=_0x80b5c1?_0x495ff9['first']-0x1:_0x495ff9['last']+0x1,_0x4d75ba=_0x1d16fd[0x0]['findAncestor']('table'),_0x1db768=_0x39ba29['createTableWalker'](_0x4d75ba,{'startRow':_0x56e9ae,'endRow':_0x56e9ae}),_0x3cddf2=Array['from'](_0x1db768)['map'](_0x1170d5=>_0x5387d5['createRangeOn'](_0x1170d5['cell']));_0x2c0e0a['markMultiRangeInsertion'](_0x3cddf2,'tableRow');});});}for(const _0x3bca17 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2b806a=_0x2eb1da['commands']['get'](_0x3bca17);_0x2c0e0a['enableCommand'](_0x3bca17,_0x44ecd3=>{_0x2eb1da['model']['change'](_0x286d7f=>{_0x44ecd3();const _0x490dda='left'===_0x2b806a['order'],_0x1b2b58=_0x39ba29['getSelectionAffectedTableCells'](_0x28d91e),_0x46b165=_0x39ba29['getColumnIndexes'](_0x1b2b58),_0x4a9311=_0x490dda?_0x46b165['first']-0x1:_0x46b165['last']+0x1,_0x24fb8f=_0x1b2b58[0x0]['findAncestor']('table'),_0x8ebdba=_0x39ba29['createTableWalker'](_0x24fb8f,{'startRow':0x0,'column':_0x4a9311,'includeAllSlots':!0x1}),_0xe29ae8=Array['from'](_0x8ebdba)['map'](_0x17951b=>_0x286d7f['createRangeOn'](_0x17951b['cell']));_0x2c0e0a['markMultiRangeInsertion'](_0xe29ae8,'tableColumn');});});}for(const _0x5ac9ef of['removeTableRow','removeTableColumn']){const _0x394043=_0x5ac9ef['substr'](0xb),_0x25794b=_0x394043['toLowerCase'](),_0x59fb8a=_0x25794b['substr'](0x0,0x3)+'span',_0x1215cf='table'+_0x394043,_0x4672ba='min'+_0x394043,_0x211e82='max'+_0x394043;_0x2c0e0a['enableCommand'](_0x5ac9ef,()=>{_0x2eb1da['model']['change'](_0x976f70=>{const _0x4274c7=_0x39ba29['getSelectionAffectedTableCells'](_0x28d91e),_0x55fd52=_0x4274c7[0x0]['findAncestor']('table');let _0x34468d;if('removeTableRow'==_0x5ac9ef){const _0x173ed8=_0x39ba29['getRowIndexes'](_0x4274c7);_0x34468d={'startRow':_0x173ed8['first'],'endRow':_0x173ed8['last'],'includeAllSlots':!0x0};}else{const _0x265ca0=_0x39ba29['getColumnIndexes'](_0x4274c7);_0x34468d={'startColumn':_0x265ca0['first'],'endColumn':_0x265ca0['last'],'includeAllSlots':!0x0};}const _0x593380=_0x39ba29['createTableWalker'](_0x55fd52,_0x34468d),_0x12813d=Array['from'](_0x593380)['map'](({cell:_0x200c3e})=>_0x200c3e),_0x1bd2c4=Ee(_0x12813d['filter'](_0x2621f7=>_0x2621f7['hasAttribute'](_0x59fb8a))),_0x53a71c=Ee(_0x12813d['filter'](_0x29cb4f=>!_0x29cb4f['hasAttribute'](_0x59fb8a)))['map'](_0x24d6fe=>_0x976f70['createRangeOn'](_0x24d6fe)),_0x4a186e=_0x2c0e0a['markMultiRangeDeletion'](_0x53a71c,_0x1215cf);if(_0x4a186e&&('tableRow'==_0x4a186e['subType']||'tableColumn'==_0x4a186e['subType'])){const _0x3f878a=this['_getSuggestionCoords'](_0x4a186e);for(const _0x43f354 of _0x1bd2c4){const _0x32f893=_0x976f70['createRangeOn'](_0x43f354),_0x56b14b=_0x39ba29['getCellLocation'](_0x43f354),_0x4bd007=_0x43f354['getAttribute'](_0x59fb8a)-0x1,_0x5533da=_0x3f878a[_0x4672ba],_0x7bd2e1=_0x3f878a[_0x211e82];_0x5533da<=_0x56b14b[_0x25794b]&&_0x56b14b[_0x25794b]+_0x4bd007<=_0x7bd2e1&&_0x4a186e['addRange'](_0x32f893);}}});});}function _0x4a179a(_0x420cf4){const _0x220128=Array['from'](_0x28d91e['getRanges']())['map'](_0x2aae82=>_0x424176['fromRange'](_0x2aae82));_0x2eb1da['model']['change'](_0x47d421=>{const _0x506ae3=_0x47d421['batch'];_0x420cf4=_0x420cf4['filter'](_0x4ad84c=>'$graveyard'!=_0x4ad84c['root']['rootName']),_0x47d421['setSelection'](_0x420cf4),_0x2eb1da['commands']['get']('removeTableRow')['refresh'](),_0x2eb1da['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2eb1da['model']['enqueueChange'](()=>{_0x2eb1da['model']['enqueueChange'](_0x506ae3,_0x11e150=>{const _0x1ed9af=_0x220128['filter'](_0x44e75e=>'$graveyard'!=_0x44e75e['root']['rootName']);_0x1ed9af['length']>0x0&&_0x11e150['setSelection'](_0x1ed9af);for(const _0x56b568 of _0x220128)_0x56b568['detach']();});});});}function _0x1344d4(_0x1d9bc2){_0x2eb1da['model']['change'](_0x19dc44=>{const _0x2d709e=Array['from'](_0x28d91e['getRanges']())['map'](_0x4d6b1f=>_0x424176['fromRange'](_0x4d6b1f)),_0x1be42e=[];for(const _0x55801d of _0x1d9bc2)for(const _0x4cd4d5 of _0x55801d['getItems']({'shallow':!0x0}))_0x1be42e['push'](_0x4cd4d5);for(const _0x508655 of _0x1be42e)'$graveyard'!=_0x508655['root']['rootName']&&(_0x19dc44['setSelection'](_0x19dc44['createPositionAt'](_0x508655,0x0)),_0x2eb1da['commands']['get']('removeTableColumn')['refresh'](),_0x2eb1da['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59ecd6=_0x2d709e['filter'](_0x3b949a=>'$graveyard'!=_0x3b949a['root']['rootName']);_0x59ecd6['length']>0x0&&_0x19dc44['setSelection'](_0x59ecd6);for(const _0x338f5b of _0x2d709e)_0x338f5b['detach']();});}function _0x1a2edc(_0x566c27,_0x13149f){return _0x13149f['every'](_0x319441=>_0x566c27['some'](_0x2909c2=>_0x2909c2['end']['isEqual'](_0x319441['start'])||_0x319441['end']['isEqual'](_0x2909c2['start'])));}function _0x5a92b6(_0x524bbe,_0x5d2f8a){return!_0x524bbe['some'](_0x5e6c78=>_0x5d2f8a['some'](_0x2474d5=>_0x5e6c78['isIntersecting'](_0x2474d5)))&&_0x524bbe['some'](_0x49d6d2=>_0x5d2f8a['some'](_0x143bf8=>_0x49d6d2['end']['isTouching'](_0x143bf8['start'])));}_0x2eb1da['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4a78ba,_0x4db231,_0x3d519c)=>{if(!_0x3d519c['options']['showSuggestionHighlights'])return;const _0x3bc42d=_0x4db231['item'];if(!_0x3bc42d)return;const _0x15a29b=_0x3d519c['mapper']['toViewElement'](_0x3bc42d);function _0x5eeb02(_0x282019){return Array['isArray'](_0x282019)?_0x282019:[_0x282019];}_0x15a29b&&'tableCell'===_0x3bc42d['name']&&_0x141c2a(_0x15a29b,_0x3d519c['writer'],(_0x3d89f1,_0x25fbbf,_0x42ff2f)=>_0x42ff2f['addClass'](_0x5eeb02(_0x25fbbf['classes']),_0x3d89f1),(_0x1e3245,_0x5c4498,_0x134685)=>_0x134685['removeClass'](_0x5eeb02(_0x5c4498['classes']),_0x1e3245));},{'priority':'highest'}),_0x2c0e0a['descriptionFactory']['registerDescriptionCallback'](_0x11d8ac=>{if('insertion'!=_0x11d8ac['type']&&'deletion'!=_0x11d8ac['type'])return;const _0x5dbc17=_0x11d8ac['getContainedElement']();if(null!=_0x5dbc17&&_0x5dbc17['is']('element','table')){if('insertion'==_0x11d8ac['type']){const _0x326c4b=_0x11d8ac['getItems']()['filter'](_0x2e7ab9=>_0x2e7ab9['is']('$textProxy'))['map'](_0x20a026=>_0x20a026['data']);if(_0x326c4b['length'])return{'type':'insertion','content':o(_0x36b5ea,'*Insert:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x326c4b['join']('\x20')+'\x22'))};}if('deletion'==_0x11d8ac['type']){const _0x1d3b43=_0x11d8ac['getItems']()['filter'](_0x46b4c0=>_0x46b4c0['is']('$textProxy'))['map'](_0x4cfc28=>_0x4cfc28['data']);if(_0x1d3b43['length'])return{'type':'deletion','content':o(_0x36b5ea,'*Remove:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d3b43['join']('\x20')+'\x22'))};}}}),_0x2c0e0a['descriptionFactory']['registerDescriptionCallback'](_0x572f7d=>{if('tableRow'==_0x572f7d['subType']){const _0x4660d5=_0x572f7d['getItems']()['filter'](_0x1d9bc1=>_0x1d9bc1['is']('$textProxy'))['map'](_0x3ec889=>_0x3ec889['data']),_0x5dd250=this['_getSuggestionCoords'](_0x572f7d),_0x506895=_0x5dd250['maxRow']-_0x5dd250['minRow']+0x1;if('insertion'==_0x572f7d['type'])return _0x4660d5['length']?{'type':'insertion','content':o(_0x36b5ea,'*Insert:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x506895,'\x22'+_0x4660d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36b5ea,'*Insert:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_ROW',_0x506895))};if('deletion'==_0x572f7d['type'])return _0x4660d5['length']?{'type':'deletion','content':o(_0x36b5ea,'*Remove:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x506895,'\x22'+_0x4660d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36b5ea,'*Remove:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_ROW',_0x506895))};}if('tableColumn'==_0x572f7d['subType']){const _0x5c024b=_0x572f7d['getItems']()['filter'](_0x2111db=>_0x2111db['is']('$textProxy'))['map'](_0x100241=>_0x100241['data']),_0x5b164b=this['_getSuggestionCoords'](_0x572f7d),_0x1c27f1=_0x5b164b['maxColumn']-_0x5b164b['minColumn']+0x1;if('insertion'==_0x572f7d['type'])return _0x5c024b['length']?{'type':'insertion','content':o(_0x36b5ea,'*Insert:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c27f1,'\x22'+_0x5c024b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36b5ea,'*Insert:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_COLUMN',_0x1c27f1))};if('deletion'==_0x572f7d['type'])return _0x5c024b['length']?{'type':'deletion','content':o(_0x36b5ea,'*Remove:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c27f1,'\x22'+_0x5c024b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36b5ea,'*Remove:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_COLUMN',_0x1c27f1))};}}),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4a179a),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4a179a),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1344d4),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1344d4),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1a2edc),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1a2edc),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5a92b6),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5a92b6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x18d636=this['editor'],_0x45daa2=_0x18d636['model']['document']['selection'];return(_0x446949,_0x562716)=>{_0x18d636['model']['change'](_0xabca9b=>{const {commandName:_0x5e763d,commandParams:_0x2a751c}=_0x562716;let _0x2668a8=_0x446949[0x0]['end']['nodeBefore'];_0x2a751c&&_0x2a751c[0x0]&&!0x1===_0x2a751c[0x0]['forceValue']&&(_0x2668a8=_0x446949[0x0]['start']['nodeAfter']);const _0x570ac6=_0xabca9b['createRangeIn'](_0x2668a8);if('$graveyard'==_0x570ac6['root']['rootName'])return;const _0x48f8a9=Array['from'](_0x45daa2['getRanges']())['map'](_0x568625=>_0x424176['fromRange'](_0x568625));_0xabca9b['setSelection'](_0x570ac6),_0x18d636['commands']['get'](_0x5e763d)['refresh'](),_0x2a751c['push']({'forceDefaultExecution':!0x0}),_0x18d636['execute'](_0x5e763d,..._0x2a751c);const _0x4de8c8=_0x48f8a9['filter'](_0x2bb29f=>'$graveyard'!=_0x2bb29f['root']['rootName']);_0x4de8c8['length']>0x0&&_0xabca9b['setSelection'](_0x4de8c8);for(const _0x26c202 of _0x48f8a9)_0x26c202['detach']();});};}['_getCoordsForCells'](_0x2ca4da){const _0x28fcbe=this['editor']['plugins']['get']('TableUtils');let _0x524523=Number['MAX_SAFE_INTEGER'],_0x21c328=Number['MIN_SAFE_INTEGER'],_0xddd99=Number['MAX_SAFE_INTEGER'],_0x50c87b=Number['MIN_SAFE_INTEGER'];for(const _0x4a9439 of _0x2ca4da){if('$graveyard'==_0x4a9439['root']['rootName'])continue;const {row:_0x25c880,column:_0x55a478}=_0x28fcbe['getCellLocation'](_0x4a9439),_0x12cb56=_0x4a9439['hasAttribute']('rowspan')?_0x4a9439['getAttribute']('rowspan')-0x1:0x0,_0x5caff9=_0x4a9439['hasAttribute']('colspan')?_0x4a9439['getAttribute']('colspan')-0x1:0x0;_0x524523=_0x25c880<_0x524523?_0x25c880:_0x524523,_0x21c328=_0x25c880+_0x12cb56>_0x21c328?_0x25c880+_0x12cb56:_0x21c328,_0xddd99=_0x55a478<_0xddd99?_0x55a478:_0xddd99,_0x50c87b=_0x55a478+_0x5caff9>_0x50c87b?_0x55a478+_0x5caff9:_0x50c87b;}return{'minRow':_0x524523,'maxRow':_0x21c328,'minColumn':_0xddd99,'maxColumn':_0x50c87b};}['_setupColumnsRowsFixing'](){const _0x150e75=this['editor'],_0x2b5923=_0x150e75['plugins']['get']('TrackChangesEditing'),_0xf41cc5=_0x150e75['plugins']['get']('TableUtils');_0x150e75['model']['document']['on']('change:data',()=>{const _0x2bd16d=Array['from'](_0x150e75['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x379062,data:_0x1bdf3b}of _0x2bd16d){const {group:_0x43bc77,id:_0x2e13e0,subType:_0x23e460}=_0x2b5923['_splitMarkerName'](_0x379062);if('suggestion'!=_0x43bc77)continue;if(null!=_0x1bdf3b['oldRange'])continue;const _0x2ce07e=_0x2b5923['getSuggestion'](_0x2e13e0);this['_tablePostFixingSubtypes']['includes'](_0x23e460)&&this['_tableSuggestions']['add'](_0x2ce07e);}},{'priority':'low'});const _0x3a5da3=(_0x3345f9,_0x3cc3bd)=>{let _0x58464a=!0x1;const _0x1ea032=_0x3cc3bd['createRangeOn'](_0x3345f9),_0x233916=_0x3345f9['findAncestor']('table'),_0x2849b5=_0xf41cc5['getCellLocation'](_0x3345f9);for(const _0x37e0eb of this['_tableSuggestions']){const _0x21d39a=_0x37e0eb['subType'],_0x217809=_0x21d39a['startsWith']('tablePaste'),_0x2d5e89=_0x21d39a['substr'](_0x217809?0xa:0x5),_0x112887=_0x2d5e89['toLowerCase'](),_0x164186=_0x112887['substr'](0x0,0x3)+'span',_0x24e483='min'+_0x2d5e89,_0x3535ce='max'+_0x2d5e89;if(!_0x37e0eb['isInContent'])continue;if(_0x233916!=_0x37e0eb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x37e0eb['isIntersectingWithRange'](_0x1ea032))continue;const _0x485c0f=_0x3345f9['hasAttribute'](_0x164186)?_0x3345f9['getAttribute'](_0x164186)-0x1:0x0,_0x258c8b=this['_getSuggestionCoords'](_0x37e0eb),_0x2903be=_0x258c8b[_0x24e483],_0x39df49=_0x258c8b[_0x3535ce];_0x2903be<=_0x2849b5[_0x112887]&&_0x2849b5[_0x112887]+_0x485c0f<=_0x39df49&&(_0x37e0eb['addRange'](_0x1ea032),_0x58464a=!0x0);}return _0x58464a;};_0x150e75['model']['document']['registerPostFixer'](_0x107a84=>{let _0x8b7ddb=!0x1;for(const _0x25165b of _0x150e75['model']['document']['differ']['getChanges']())if('insert'==_0x25165b['type']){if('tableRow'==_0x25165b['name']){for(const _0x3c1757 of _0x25165b['position']['nodeAfter']['getChildren']())_0x8b7ddb=_0x8b7ddb||_0x3a5da3(_0x3c1757,_0x107a84);}else'tableCell'==_0x25165b['name']&&(_0x8b7ddb=_0x8b7ddb||_0x3a5da3(_0x25165b['position']['nodeAfter'],_0x107a84));}return _0x8b7ddb;});}['_getSuggestionCoords'](_0x360027){return this['_getCoordsForCells'](_0x360027['getRanges']()['map'](_0x3a8270=>_0x3a8270['start']['nodeAfter']));}}function Ee(_0x3a3393){return Array['from'](new Set(_0x3a3393)['values']());}class St extends _0x470f93{static get['requires'](){return[jt];}['afterInit'](){const _0x2261d6=this['editor'],_0x372599=_0x2261d6['model']['document']['selection'],_0x462cb7=_0x2261d6['locale'];if(!_0x2261d6['plugins']['has']('TableEditing'))return;const _0x4e52ec=_0x2261d6['plugins']['get']('TrackChangesEditing'),_0x2c2e3b=_0x2261d6['plugins']['get']('TableUtils'),_0x5f166f=_0x2261d6['plugins']['get'](jt);_0x5f166f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4e52ec['enableCommand']('mergeTableCells',()=>{const _0xbc3885=_0x2c2e3b['getSelectionAffectedTableCells'](_0x2261d6['model']['document']['selection']);_0x2261d6['model']['change'](()=>{_0x4e52ec['markMultiRangeBlockFormat'](_0xbc3885,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2261d6['commands']['get']('mergeTableCells')['on']('execute',(_0x5a3dfb,_0x3a6ff3)=>{_0x2261d6['commands']['get']('trackChanges')['value']&&(_0x3a6ff3['length']>0x0&&_0x3a6ff3[_0x3a6ff3['length']-0x1]&&_0x3a6ff3[_0x3a6ff3['length']-0x1]['forceDefaultExecution']||_0x4e52ec['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5a3dfb['stop']());},{'priority':'highest'});for(const _0x17901e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x105769=_0x2261d6['commands']['get'](_0x17901e);_0x4e52ec['enableCommand'](_0x17901e,()=>{const _0x1c1f6f=_0x2261d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2fe918=>_0x2fe918['is']('element','tableCell')),_0x5f35c0=_0x105769['value'];_0x2261d6['model']['change'](()=>{_0x4e52ec['markMultiRangeBlockFormat']([_0x1c1f6f,_0x5f35c0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x28b24c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3efb4b=_0x2261d6['commands']['get'](_0x28b24c);_0x4e52ec['enableCommand'](_0x28b24c,()=>{const _0x4bab1c=_0x2c2e3b['getSelectionAffectedTableCells'](_0x2261d6['model']['document']['selection'])[0x0],_0xcc3f7f=_0x4bab1c['findAncestor']('table'),{column:_0x39ae05,row:_0x3fb4dd}=_0x2c2e3b['getCellLocation'](_0x4bab1c);let _0x256b84=[];if('horizontally'==_0x3efb4b['direction']){const _0x5601bc=_0x2c2e3b['createTableWalker'](_0xcc3f7f,{'startRow':_0x3fb4dd,'endRow':_0x3fb4dd,'includeAllSlots':!0x0});_0x256b84=Array['from'](_0x5601bc)['map'](_0x186ec3=>_0x186ec3['cell']);}else{const _0x2310fe=_0x2c2e3b['createTableWalker'](_0xcc3f7f,{'column':_0x39ae05,'includeAllSlots':!0x0});_0x256b84=Array['from'](_0x2310fe)['map'](_0x4434a5=>_0x4434a5['cell']);}_0x2261d6['model']['change'](_0x24724b=>{_0x4e52ec['markBlockFormat'](_0x24724b['createRangeOn'](_0x4bab1c),{'commandName':_0x28b24c,'commandParams':[]},_0x256b84,_0x28b24c);});});}_0x4e52ec['descriptionFactory']['registerDescriptionCallback'](_0x8bcacc=>{if('formatBlock'!=_0x8bcacc['type']&&'formatInline'!=_0x8bcacc['type'])return;const {data:_0x5caaa7}=_0x8bcacc;return _0x5caaa7&&'mergeTableCells'==_0x5caaa7['commandName']?{'type':'format','content':o(_0x462cb7,'*Merge\x20cells*')}:void 0x0;}),_0x4e52ec['descriptionFactory']['registerDescriptionCallback'](_0x13282d=>{if('formatBlock'!=_0x13282d['type']&&'formatInline'!=_0x13282d['type'])return;const {data:_0x515d11}=_0x13282d;return _0x515d11?'splitTableCellVertically'==_0x515d11['commandName']?{'type':'format','content':o(_0x462cb7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x515d11['commandName']?{'type':'format','content':o(_0x462cb7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xc5f61=_0x5f166f['_acceptFormatSuggestionCallbackFactory']();for(const _0x8649bb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4e52ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8649bb,'accept',_0xc5f61);for(const _0x57c977 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4e52ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57c977,'accept',_0xc5f61);_0x4e52ec['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xdaaf8c=>{_0x2261d6['model']['change'](_0x5e4ff7=>{const _0x382917=Array['from'](_0x372599['getRanges']())['map'](_0x18807b=>_0x424176['fromRange'](_0x18807b));_0x5e4ff7['setSelection'](_0xdaaf8c),_0x2261d6['commands']['get']('mergeTableCells')['refresh'](),_0x2261d6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xd5ecc=_0x382917['filter'](_0x86b5a6=>'$graveyard'!=_0x86b5a6['root']['rootName']);_0xd5ecc['length']>0x0&&_0x5e4ff7['setSelection'](_0xd5ecc);for(const _0xf474ee of _0x382917)_0xf474ee['detach']();});});for(const _0x335dbf of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x246db8=_0x2261d6['commands']['get'](_0x335dbf);_0x246db8['on']('set:isEnabled',(_0x17da04,_0x23ee17,_0x54bf63)=>{if(_0x54bf63){const _0x5a3cda=_0x2261d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c8797=>_0x3c8797['is']('element','tableCell'));this['_areMergableCells'](_0x246db8['value'],_0x5a3cda)||(_0x17da04['return']=!0x1,_0x17da04['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xd70f2e=this['editor']['commands']['get']('mergeTableCells'),_0x126c2f=this['editor']['plugins']['get']('TableUtils');if(!_0xd70f2e['isEnabled'])return!0x1;const _0x2d5636=_0x126c2f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x40c35d of _0x2d5636)for(const _0x1336c8 of _0x2d5636)if(_0x40c35d!=_0x1336c8&&!this['_areMergableCells'](_0x40c35d,_0x1336c8))return!0x1;return!0x0;}['_areMergableCells'](_0x120e30,_0x1bf71c){const _0x4f5d4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47cbd3=this['editor']['model']['createRangeOn'](_0x120e30),_0x53dfe9=this['editor']['model']['createRangeOn'](_0x1bf71c),_0x6a0a30=new Set(),_0xb1b8d5=new Set();for(const _0x1da999 of _0x4f5d4f['getSuggestions']())if(('insertion'==_0x1da999['type']||'deletion'==_0x1da999['type']||'mergeTableCells'==_0x1da999['subType'])&&_0x1da999['isInContent']){for(const _0x2e05e1 of _0x1da999['getRanges']())_0x2e05e1['containsRange'](_0x47cbd3,!0x0)&&_0x6a0a30['add'](_0x1da999['type']+':'+_0x1da999['author']['id']),_0x2e05e1['containsRange'](_0x53dfe9,!0x0)&&_0xb1b8d5['add'](_0x1da999['type']+':'+_0x1da999['author']['id']);}if(_0x6a0a30['size']!=_0xb1b8d5['size'])return!0x1;for(const _0x3411f5 of _0x6a0a30)if(!_0xb1b8d5['has'](_0x3411f5))return!0x1;return!0x0;}}class At extends _0x470f93{static get['requires'](){return[jt];}['afterInit'](){const _0x1565a0=this['editor'];if(!_0x1565a0['plugins']['has']('TableEditing'))return;const _0x4e0629=_0x1565a0['locale'],_0x367bcf=_0x1565a0['plugins']['get']('TrackChangesEditing');_0x367bcf['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x367bcf['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x367bcf['registerBlockAttribute']('headingRows'),_0x367bcf['registerBlockAttribute']('headingColumns'),_0x367bcf['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4e0629,'FORMAT_HEADER_ROW')),_0x367bcf['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4e0629,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x536120=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e50a9=this['editor']['plugins']['get']('TableUtils'),_0x53c863=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5003d7({showActiveMarker:_0x1be880=!0x0,setDataAttribute:_0x282985=!0x0}={}){return(_0x3a7714,_0x183c99,_0x142711)=>{const {type:_0x560265,id:_0x43e6fe}=_0x536120['_splitMarkerName'](_0x183c99['markerName']),_0x3cb70b=_0x536120['getSuggestion'](_0x43e6fe),_0x274255=_0x3cb70b['data'];if('formatBlock'!=_0x3cb70b['type']||!_0x274255||'setTableColumnHeader'!=_0x274255['commandName'])return;if(_0x183c99['item'])return void _0x3a7714['stop']();if(!_0x142711['consumable']['consume'](_0x183c99['markerRange'],_0x3a7714['name']))return;const _0x2c4d3c=_0x183c99['markerRange']['start']['nodeAfter'],_0x351bbc=_0x183c99['markerRange']['end']['nodeBefore'],_0x44ce6a=_0x2c4d3c['parent']['parent'],{column:_0xa259ac}=_0x2e50a9['getCellLocation'](_0x2c4d3c),{column:_0x336dbe}=_0x2e50a9['getCellLocation'](_0x351bbc);for(let _0x1cc4a1=_0xa259ac;_0x1cc4a1<=_0x336dbe;_0x1cc4a1++){const _0x5c308b=_0x2e50a9['createTableWalker'](_0x44ce6a,{'column':_0x1cc4a1,'includeAllSlots':!0x1});for(const _0x990a0c of _0x5c308b){const _0x5d8c86=_0x990a0c['cell'],_0x3a5848=_0x142711['mapper']['toViewElement'](_0x5d8c86);_0x142711['writer']['addClass']('ck-suggestion-marker-'+_0x560265,_0x3a5848),_0x282985&&_0x142711['writer']['setAttribute']('data-suggestion',_0x43e6fe,_0x3a5848),_0x142711['mapper']['bindElementToMarker'](_0x3a5848,_0x183c99['markerName']),_0x1be880&&(_0x536120['activeMarkers']['includes'](_0x183c99['markerName'])?_0x142711['writer']['addClass']('ck-suggestion-marker--active',_0x3a5848):_0x142711['writer']['removeClass']('ck-suggestion-marker--active',_0x3a5848));}}};}_0x536120['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x53c863),_0x536120['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x53c863),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5003d7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a0c2f,_0x52f0b1,_0x36b695)=>{_0x36b695['options']['showSuggestionHighlights']&&_0x5003d7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a0c2f,_0x52f0b1,_0x36b695);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x57d587,_0x28f2be,_0x315ea9)=>{const {type:_0x5ab5ed,id:_0x53b204}=_0x536120['_splitMarkerName'](_0x28f2be['markerName']),_0xe5ef7e=_0x536120['getSuggestion'](_0x53b204),_0x56b1e0=_0xe5ef7e['data'];if('formatBlock'!=_0xe5ef7e['type']||!_0x56b1e0||'setTableColumnHeader'!=_0x56b1e0['commandName'])return;const _0x5b8673=_0x315ea9['mapper']['markerNameToElements'](_0x28f2be['markerName']);if(_0x5b8673){for(const _0xeb531f of _0x5b8673)_0x315ea9['writer']['removeClass']('ck-suggestion-marker-'+_0x5ab5ed,_0xeb531f),_0x315ea9['writer']['removeClass']('ck-suggestion-marker--active',_0xeb531f),_0x315ea9['writer']['removeAttribute']('data-suggestion',_0xeb531f),_0x315ea9['mapper']['unbindElementFromMarkerName'](_0xeb531f,_0x28f2be['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x399323=this['editor'],_0x1c1239=_0x399323['locale'];function _0x40b015(_0x10e1bf){return{'type':'format','content':o(_0x1c1239,'*Format:*\x20%0',_0x10e1bf)};}_0x399323['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57971b=>{if('formatBlock'!=_0x57971b['type'])return;const {data:_0x5612d4}=_0x57971b;if(_0x5612d4){if('setTableRowHeader'==_0x5612d4['commandName']){const _0x6e81dd=_0x5612d4['commandParams'][0x0]['forceValue'];return _0x40b015(o(_0x1c1239,_0x6e81dd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5612d4['commandName']){const _0x408b93=_0x5612d4['commandParams'][0x0]['forceValue'];return _0x40b015(o(_0x1c1239,_0x408b93?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x25b873=>[_0x25b873,null]));class It extends _0x470f93{static get['requires'](){return[jt];}['afterInit'](){const _0x1d6021=this['editor'];if(!_0x1d6021['plugins']['has']('TableClipboard'))return;const _0xe60a4=_0x1d6021['plugins']['get']('TrackChangesEditing'),_0x4655a6=_0x1d6021['plugins']['get']('TableUtils'),_0x427179=_0x1d6021['plugins']['get'](jt),_0x1e57a8=_0x1d6021['plugins']['get']('TableClipboard');_0x427179['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1d6021['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1d6021['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3ce2e9=null;_0x1d6021['model']['on']('insertContent',(_0x40456b,_0x4b039c)=>{const [_0x7dfce9,_0x13b906]=_0x4b039c,_0xfdb3aa=_0x4b039c[_0x4b039c['length']-0x1];_0xfdb3aa&&_0xfdb3aa['forceDefaultExecution']||_0xe60a4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x327898,_0x1d3614,_0x5b46d6,_0x2fb24a,_0x190e3d){if(_0x1d3614&&!_0x1d3614['is']('documentSelection'))return!0x1;const _0x2f4ffe=_0x190e3d['getTableIfOnlyTableInContent'](_0x327898,_0x5b46d6);if(!_0x2f4ffe||!he(_0x2f4ffe,void 0x0,_0x2fb24a))return!0x1;const _0x37314e=_0x2fb24a['getSelectionAffectedTableCells'](_0x5b46d6['document']['selection']);if(!_0x37314e['length'])return!0x1;const _0x12b1d9=_0x37314e[0x0]['findAncestor']('table'),_0x5adf5f=_0x2fb24a['getRowIndexes'](_0x37314e),_0x57dad0=_0x2fb24a['getColumnIndexes'](_0x37314e),_0x388e3b={'startRow':_0x5adf5f['first'],'endRow':_0x5adf5f['last'],'startColumn':_0x57dad0['first'],'endColumn':_0x57dad0['last']};return 0x1==_0x37314e['length']&&(_0x388e3b['endRow']+=_0x2fb24a['getRows'](_0x2f4ffe)-0x1,_0x388e3b['endColumn']+=_0x2fb24a['getColumns'](_0x2f4ffe)-0x1),he(_0x12b1d9,_0x388e3b,_0x2fb24a);}(_0x7dfce9,_0x13b906,_0x1d6021['model'],_0x4655a6,_0x1e57a8)&&(_0x40456b['stop'](),_0x3ce2e9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d6021['model']['change'](()=>{_0x1d6021['model']['insertContent'](_0x4b039c[0x0],_0x4b039c[0x1],_0x4b039c[0x2],{'forceDefaultExecution':!0x0});const _0x3fd186=_0x336056(),{rowInsertionRanges:_0x3d7313,columnInsertionRanges:_0x1f65c5,insertionRanges:_0x7f43ad,deletionRanges:_0x2da675,cells:_0xf77396}=_0x3ce2e9;_0x3d7313['length']&&_0xe60a4['markMultiRangeInsertion'](_0x3d7313,'tablePasteRow',{'tablePasteChainId':_0x3fd186}),_0x1f65c5['length']&&_0xe60a4['markMultiRangeInsertion'](_0x1f65c5,'tablePasteColumn',{'tablePasteChainId':_0x3fd186}),_0x7f43ad['length']&&(_0xe60a4['markMultiRangeInsertion'](_0x7f43ad,'tablePaste',{'tablePasteChainId':_0x3fd186,'skipNestingCheck':!0x0}),_0x7f43ad['forEach'](_0xb5e6b5=>_0xb5e6b5['detach']?.())),_0x2da675['length']&&(_0xe60a4['markMultiRangeDeletion'](_0x2da675,'tablePaste',{'tablePasteChainId':_0x3fd186,'skipNestingCheck':!0x0}),_0x2da675['forEach'](_0x1e8f5a=>_0x1e8f5a['detach']?.()));const _0x295f69=_0xe60a4['markMultiRangeBlockFormat'](_0xf77396['map'](({element:_0x4dba6b})=>_0x4dba6b),{'formatGroupId':_0x336056()},[],'tablePasteCell',{'tablePasteChainId':_0x3fd186});if(_0x295f69){const _0x1e4cf2=_0x295f69['getMarkers'](),_0x3809a6=[];for(const {element:_0xf1a2f9,attributes:_0xe049ee}of _0xf77396){if(!_0xe049ee)continue;const _0x593aef=_0x1d6021['model']['createRangeOn'](_0xf1a2f9),_0x316b1c=_0x1e4cf2['find'](_0x2c43bf=>_0x2c43bf['getRange']()['isEqual'](_0x593aef));_0x316b1c&&_0x3809a6['push']([_0x316b1c['name'],_0xe049ee]);}_0x3809a6['length']&&_0x295f69['setAttribute']('markerAttributes',Object['fromEntries'](_0x3809a6));}_0x3ce2e9=null;}));},{'priority':_0x1e623f['high']+0xa}),_0x1d6021['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x358ed3,_0x4a3fe6)=>{const [_0x133506,_0x368110,,_0x385028]=_0x4a3fe6;if(!_0x3ce2e9)return;_0x358ed3['stop']();const _0x5bcbda=_0x133506['cell'],_0x39ae10=_0x368110,_0x4f89ab=Pe(_0x5bcbda),_0x26be42=Pe(_0x39ae10);_0x358ed3['return']=_0x5bcbda;let _0x40f3cf=null,_0x1e3f4b=null;if(_0x26be42||_0x4f89ab){if(_0x4f89ab&&!_0x26be42){_0x385028['remove'](_0x5bcbda['getChild'](0x0));for(const _0xb171b2 of Array['from'](_0x39ae10['getChildren']()))_0x385028['insert'](_0xb171b2,_0x5bcbda,'end');const _0x556902=_0x3ce2e9['rowInsertionIndexes']['includes'](_0x133506['row']),_0x299417=_0x3ce2e9['columnInsertionIndexes']['includes'](_0x133506['column']);_0x556902||_0x299417||(_0x40f3cf=_0x424176['fromRange'](_0x385028['createRangeIn'](_0x5bcbda)));}else _0x26be42&&!_0x4f89ab&&(_0x1e3f4b=_0x385028['createRangeIn'](_0x5bcbda));}else{const _0x21b3d0=_0x385028['createElement']('tableCellSuggestion'),_0x4ad3ab=_0x385028['createElement']('tableCellSuggestion');_0x385028['wrap'](_0x385028['createRangeIn'](_0x5bcbda),_0x4ad3ab),_0x385028['insert'](_0x21b3d0,_0x5bcbda,0x0);for(const _0x415e9 of Array['from'](_0x39ae10['getChildren']()))_0x385028['insert'](_0x415e9,_0x21b3d0,'end');_0x40f3cf=_0x424176['fromRange'](_0x385028['createRangeOn'](_0x21b3d0)),_0x1e3f4b=_0x424176['fromRange'](_0x385028['createRangeOn'](_0x4ad3ab));}const _0x3b0a8d=Array['from'](_0x39ae10['getAttributes']())['filter'](([_0x5e889c])=>ge['includes'](_0x5e889c));_0x3ce2e9['cells']['push']({'element':_0x5bcbda,'attributes':_0x3b0a8d['length']?Object['fromEntries'](_0x3b0a8d):null}),_0x40f3cf&&_0x3ce2e9['insertionRanges']['push'](_0x40f3cf),_0x1e3f4b&&_0x3ce2e9['deletionRanges']['push'](_0x1e3f4b);},{'priority':'high'}),_0x4655a6['on']('insertColumns',(_0xe58a1f,_0x2a2deb)=>{const [_0x283190,_0x5f503e={}]=_0x2a2deb;if(!_0x3ce2e9)return;const _0x2cec70=_0x5f503e['at']||0x0,_0x2e9383=_0x5f503e['columns']||0x1;_0x3ce2e9['columnInsertionIndexes']=new Array(_0x2e9383)['fill'](_0x2cec70)['map']((_0x442aef,_0x4307ac)=>_0x442aef+_0x4307ac);for(const {cell:_0x224fbb}of _0x4655a6['createTableWalker'](_0x283190,{'startColumn':_0x2cec70,'endColumn':_0x2cec70+_0x2e9383-0x1}))_0x3ce2e9['columnInsertionRanges']['push'](_0x1d6021['model']['createRangeOn'](_0x224fbb));},{'priority':'low'}),_0x4655a6['on']('insertRows',(_0x51048a,_0x1d00b9)=>{const [_0x2b5116,_0x59b815={}]=_0x1d00b9;if(!_0x3ce2e9)return;const _0x368aa5=_0x59b815['at']||0x0,_0x577dbc=_0x59b815['rows']||0x1;_0x3ce2e9['rowInsertionIndexes']=new Array(_0x577dbc)['fill'](_0x368aa5)['map']((_0x2860da,_0x382249)=>_0x2860da+_0x382249);for(const {cell:_0x5422c2}of _0x4655a6['createTableWalker'](_0x2b5116,{'startRow':_0x368aa5,'endRow':_0x368aa5+_0x577dbc-0x1}))_0x3ce2e9['rowInsertionRanges']['push'](_0x1d6021['model']['createRangeOn'](_0x5422c2));},{'priority':'low'}),_0xe60a4['descriptionFactory']['registerDescriptionCallback'](_0x4988e5=>{if(_0x4988e5['subType']&&_0x4988e5['subType']['startsWith']('tablePaste'))return _0x4988e5['previous']?{}:{'type':'insertion','content':o(_0x1d6021['locale'],'*Replace\x20table\x20cells*')};});const _0x3aa065=()=>!0x1;for(const _0x403024 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xe60a4['_suggestionFactory']['registerCustomCallback']('insertion',_0x403024,'join',_0x3aa065),_0xe60a4['_suggestionFactory']['registerCustomCallback']('deletion',_0x403024,'join',_0x3aa065),_0xe60a4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x403024,'join',_0x3aa065);_0xe60a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3aa065),_0xe60a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1a1a56,_0x49ecc6,_0x151f68)=>{const _0x169b1b=_0x1a1a56['map'](_0x20dab7=>_0x20dab7['getContainedElement']())['filter'](_0x22eb6a=>_0x22eb6a),_0x55b98f=new Map(_0x169b1b['map'](_0x33f275=>[_0x33f275,null]));if(_0x3ce2e9){for(const {element:_0x25adbb,attributes:_0xd628b}of _0x3ce2e9['cells'])_0xd628b&&_0x55b98f['set'](_0x25adbb,_0xd628b);}else{if(_0x151f68&&_0x151f68['markerAttributes'])for(const [_0x116b03,_0x1261ef]of Object['entries'](_0x151f68['markerAttributes'])){const _0x265a87=_0x1d6021['model']['markers']['get'](_0x116b03),_0x418c58=_0x265a87?_0x265a87['getRange']()['getContainedElement']():null;_0x418c58&&_0x55b98f['set'](_0x418c58,_0x1261ef);}}_0x1d6021['model']['change'](_0x10bfea=>{for(const [_0x43512c,_0x34a281]of _0x55b98f)_0x10bfea['setAttributes']({...Ce,..._0x34a281},_0x43512c);});});const _0x2919e8=(_0x186292,_0x11f5f7)=>{_0xe60a4['_suggestionFactory']['registerCustomCallback'](_0x186292,'tablePaste',_0x11f5f7,(_0x34e5ca,_0x402d64,_0x26df4c)=>{_0x1d6021['model']['change'](_0x2c53e2=>{const _0x365ffc=[];for(const _0x231836 of _0x34e5ca){const _0x4b6566=_0x231836['start']['nodeAfter'];_0x4b6566['is']('element','tableCellSuggestion')&&_0x365ffc['push'](_0x4b6566);}_0xe60a4['_suggestionFactory']['getSuggestionCallback'](_0x186292,null,_0x11f5f7)(_0x34e5ca,_0x402d64,_0x26df4c);for(const _0x5bcca5 of _0x365ffc)'$graveyard'!=_0x5bcca5['root']['rootName']&&_0x2c53e2['unwrap'](_0x5bcca5);});});};_0x2919e8('insertion','accept'),_0x2919e8('insertion','discard'),_0x2919e8('deletion','accept'),_0x2919e8('deletion','discard'),_0xe60a4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x15c716=>{const _0x135c72=_0x15c716['map'](_0x529137=>_0x529137['getContainedElement']()),_0x2f825e=_0x135c72[0x0]['findAncestor']('table'),{minRow:_0x493e74,maxRow:_0x4dabae}=_0x427179['_getCoordsForCells'](_0x135c72);_0x4655a6['removeRows'](_0x2f825e,{'at':_0x493e74,'rows':_0x4dabae-_0x493e74+0x1});}),_0xe60a4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x42bfab=>{const _0x2e2c7b=_0x42bfab['map'](_0x372e4e=>_0x372e4e['getContainedElement']()),_0x4aa755=_0x2e2c7b[0x0]['findAncestor']('table'),{minColumn:_0x325812,maxColumn:_0x28c079}=_0x427179['_getCoordsForCells'](_0x2e2c7b);_0x4655a6['removeColumns'](_0x4aa755,{'at':_0x325812,'columns':_0x28c079-_0x325812+0x1});});const _0x516968=(_0x139034,_0x4c31e4)=>{if(!_0x4c31e4['subType']||!_0x4c31e4['subType']['startsWith']('tablePaste'))return;const _0x3c541c=_0x4c31e4['attributes']['tablePasteChainId'],_0x2a64d4=_0xe60a4['getSuggestions']()['filter'](_0x37fbda=>_0x37fbda['isInContent']&&_0x37fbda['attributes']&&_0x37fbda['attributes']['tablePasteChainId']==_0x3c541c);_0x2a64d4['length']&&_0x4c31e4['getAllAdjacentSuggestions']()['length']!=_0x2a64d4['length']&&_0x2a64d4['reduce']((_0x4dcb28,_0x33ce58)=>(_0x4dcb28['next']=_0x33ce58,_0x33ce58['previous']=_0x4dcb28,_0x33ce58));};function _0x1123c5(_0x54bae3,_0x250001=!0x0){const {id:_0x11f922}=_0xe60a4['_splitMarkerName'](_0x54bae3['markerName']),_0x1e2327=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4bccf7=_0xe60a4['activeMarkers']['includes'](_0x54bae3['markerName']);return _0x4bccf7&&_0x1e2327['push']('ck-suggestion-marker--active'),{'classes':_0x1e2327,'attributes':{'data-suggestion':_0x11f922},'priority':_0x4bccf7&&_0x250001?0xbc2:0xbb8};}_0xe60a4['on']('suggestionLoaded',_0x516968,{'priority':'high'}),_0xe60a4['on']('suggestionUnloaded',_0x516968,{'priority':'high'}),_0x1d6021['model']['document']['registerPostFixer'](()=>{let _0x59debd=!0x1;const _0x30c472=Array['from'](_0x1d6021['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b7a25,data:_0x23f3cc}of _0x30c472){const {group:_0x21292b,type:_0x562ece,id:_0x15b471}=_0xe60a4['_splitMarkerName'](_0x5b7a25);if('suggestion'!=_0x21292b||'deletion'!=_0x562ece||_0x23f3cc['oldRange'])continue;if(!_0xe60a4['hasSuggestion'](_0x15b471))continue;const _0x3ae0ec=_0xe60a4['getSuggestion'](_0x15b471)['getRanges'](),_0x391095=_0x1d6021['plugins']['get']('Users')['me'];for(const _0x8a7db3 of _0xe60a4['getSuggestions']()){if(!_0x8a7db3['isInContent']||_0x8a7db3['author']!=_0x391095)continue;if('formatBlock'!=_0x8a7db3['type']||'tablePasteCell'!=_0x8a7db3['subType'])continue;if(_0x8a7db3['getRanges']()['every'](_0x39998a=>_0x3ae0ec['some'](_0x4a5e16=>_0x4a5e16['containsRange'](_0x39998a,!0x0)))){for(const _0x232de0 of _0x8a7db3['getAllAdjacentSuggestions']())_0x232de0['isInContent']&&(_0x232de0['discard'](),_0x59debd=!0x0);}}}return _0x59debd;}),_0x1d6021['model']['document']['registerPostFixer'](_0x57e3e4=>{const _0x5c496f=_0x1d6021['commands']['get']('redo');if(!_0x5c496f||!_0x5c496f['_createdBatches']['has'](_0x57e3e4['batch']))return!0x1;let _0x7d25e4=!0x1;const _0x2b0e57=_0x1d6021['plugins']['get']('Users')['me'],_0x2d2f8e=_0x1d6021['model']['document']['differ']['getChanges'](),_0x152995=Array['from'](_0x1d6021['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x382d95,data:_0x377611})=>{const {group:_0x339cbe,subType:_0x34b0f9,authorId:_0x2a0912}=_0xe60a4['_splitMarkerName'](_0x382d95);return'suggestion'==_0x339cbe&&'tablePaste'==_0x34b0f9&&_0x2a0912==_0x2b0e57['id']&&!_0x377611['oldRange'];});for(const _0x1f47bf of _0x2d2f8e){if('insert'!=_0x1f47bf['type']||'tableCellSuggestion'!=_0x1f47bf['name']||0x1!=_0x1f47bf['length'])continue;const _0x29ca75=_0x57e3e4['createRange'](_0x1f47bf['position'],_0x1f47bf['position']['getShiftedBy'](0x1));if(!_0x152995['find'](({data:_0x1792fd})=>_0x1792fd['newRange']['isEqual'](_0x29ca75))){for(const {name:_0x3d8b43,data:_0x4b2adf}of _0x152995)if(_0x29ca75['containsRange'](_0x4b2adf['newRange'])){_0x57e3e4['updateMarker'](_0x3d8b43,{'range':_0x29ca75}),_0x7d25e4=!0x0;break;}}}return _0x7d25e4;}),_0x1d6021['model']['document']['registerPostFixer'](_0x4ea496=>{let _0x471910=!0x1;const _0x957ba=_0x1d6021['plugins']['get']('Users')['me'],_0x46d890=_0xe60a4['getSuggestions']()['filter'](_0x1450b9=>_0x1450b9['isInContent']&&_0x1450b9['author']==_0x957ba),_0x347223=new Set(),_0xca436d=new Set();for(const _0x5eeaa4 of _0x46d890)if('tablePaste'==_0x5eeaa4['subType'])for(const _0x1d938e of _0x5eeaa4['getMarkers']()){const _0x54d823=_0x1d938e['getRange']()['getContainedElement']();if(_0x54d823){if(_0x54d823['is']('element','tableCellSuggestion')&&Pe(_0x54d823)){_0x5eeaa4['removeMarker'](_0x1d938e['name']),_0x347223['add'](_0x54d823),_0x471910=!0x0;const _0x1da7da=_0x54d823['nextSibling'],_0x375047=_0x54d823['previousSibling'],_0xfaaa88=_0x1da7da&&_0x1da7da['is']('element','tableCellSuggestion'),_0x5d417b=_0x375047&&_0x375047['is']('element','tableCellSuggestion');_0xfaaa88&&!_0x347223['has'](_0x1da7da)&&_0xca436d['add'](_0x1da7da),_0x5d417b&&!_0x347223['has'](_0x375047)&&_0xca436d['add'](_0x375047);}else _0x54d823['is']('element','paragraph')&&_0x54d823['isEmpty']&&(_0x5eeaa4['removeMarker'](_0x1d938e['name']),_0x471910=!0x0);}}else{if('tablePasteCell'==_0x5eeaa4['subType']){if(!_0x5eeaa4['attributes']||!_0x5eeaa4['attributes']['tablePasteChainId'])continue;const _0x25e1a0=_0x5eeaa4['attributes']['markerAttributes'];if(_0x25e1a0&&Object['keys'](_0x25e1a0)['length'])continue;const _0x5e2810=_0x5eeaa4['attributes']['tablePasteChainId'];let _0x4d01c1=!0x0,_0x48e23f=!0x0;for(const _0x3aebac of _0x46d890)if(_0x3aebac['subType']&&_0x3aebac['subType']['startsWith']('tablePaste')){if(!_0x3aebac['attributes']['tablePasteChainId']){_0x48e23f=!0x1;break;}if(_0x3aebac['id']!=_0x5eeaa4['id']&&_0x3aebac['attributes']['tablePasteChainId']==_0x5e2810){_0x4d01c1=!0x1;break;}}_0x48e23f&&_0x4d01c1&&(_0x5eeaa4['removeMarkers'](),_0x471910=!0x0);}}for(const _0x1b726d of _0x347223)_0x4ea496['remove'](_0x1b726d);for(const _0x5e0a6f of _0xca436d)_0x4ea496['unwrap'](_0x5e0a6f);return _0x471910;}),_0x1d6021['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x495b4c,_0x3a14c5)=>_0x1123c5(_0x495b4c),'converterPriority':'high'}),_0x1d6021['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x128b9a,_0x2a8acc)=>_0x2a8acc['options']['showSuggestionHighlights']?_0x1123c5(_0x128b9a,!0x1):null,'converterPriority':'high'});const _0x161a80=_0x1d6021['editing']['view'];this['listenTo'](_0x161a80['document'],'clipboardOutput',(_0x5888ec,_0x163f23)=>{const _0x7e503e=[];for(const _0x5b8102 of _0x161a80['createRangeIn'](_0x163f23['content'])['getItems']())_0x5b8102['is']('element','suggestion-td')&&_0x7e503e['push'](_0x5b8102);_0x161a80['change'](_0x248647=>{for(const _0x3b9912 of _0x7e503e)_0x248647['move'](_0x248647['createRangeIn'](_0x3b9912),_0x248647['createPositionBefore'](_0x3b9912)),_0x248647['remove'](_0x3b9912);});});}}function Pe(_0x505f59){if(_0x505f59['isEmpty'])return!0x0;const _0x394f68=_0x505f59['getChild'](0x0);return _0x394f68['is']('element','paragraph')&&_0x394f68['isEmpty'];}function he(_0x17fe40,_0x137047={},_0x4bc6b0){for(const {isAnchor:_0x2c230c,cellHeight:_0x471008,cellWidth:_0x3dce7d}of _0x4bc6b0['createTableWalker'](_0x17fe40,{'includeAllSlots':!0x0,..._0x137047}))if(!_0x2c230c||0x1!=_0x471008||0x1!=_0x3dce7d)return!0x1;return!0x0;}class vt extends _0x470f93{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5bf6f9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bf6f9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5bf6f9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5bf6f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5bf6f9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5bf6f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5bf6f9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x58c5b4,_0x57ec21){const _0x9cf738=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56ed08=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x166c3c=_0x57ec21['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3d84e4=_0x56ed08['getColumnGroupElement'](_0x166c3c);let _0x307cdb=_0x3d84e4?_0x56ed08['getTableColumnsWidths'](_0x3d84e4):null,_0x568fdd=_0x166c3c['getAttribute']('tableWidth')||null;const _0x273b64=_0x57ec21['tableWidth']||_0x568fdd,_0x92c65e=_0x57ec21['columnWidths']||_0x307cdb,_0x2e7848=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e19ec of _0x9cf738['getSuggestions']()){const _0x55642e=_0x4e19ec['getContainedElement']();if('resizeTable'===_0x4e19ec['subType']&&_0x55642e===_0x166c3c){_0x4e19ec['author']!==_0x2e7848&&_0x4e19ec['discard']();const _0x123685=_0x4e19ec['data']['commandParams'];_0x568fdd=_0x123685[0x0]['tableWidth'],_0x307cdb=_0x123685[0x0]['columnWidths'];break;}}_0x58c5b4({'table':_0x166c3c,'tableWidth':_0x273b64,'columnWidths':_0x92c65e}),_0x9cf738['markBlockFormat'](_0x166c3c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x568fdd,'columnWidths':_0x307cdb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x253374){if('formatBlock'!=_0x253374['type']&&'formatInline'!=_0x253374['type'])return;const {data:_0x39addc}=_0x253374;if(_0x39addc&&'resizeTable'===_0x39addc['formatGroupId']){const _0x2158cb='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2158cb)};}}}class Ct extends _0x470f93{['afterInit'](){const _0x36f3cc=this['editor'];_0x36f3cc['plugins']['has']('Template')&&_0x36f3cc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x470f93{['afterInit'](){const _0x268ca2=this['editor'];if(!_0x268ca2['commands']['get']('insertTableOfContents'))return;_0x268ca2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x247e55=_0x268ca2['plugins']['get']('TrackChangesEditing'),_0x1313da=_0x268ca2['locale'];_0x247e55['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1b72a8=>o(_0x1313da,'ELEMENT_TABLE_OF_CONTENTS',_0x1b72a8));}}class Dt extends _0x470f93{['afterInit'](){const _0x2e3c04=this['editor'];if(!_0x2e3c04['plugins']['has']('Title'))return;const _0x238ead=_0x2e3c04['plugins']['get']('TrackChangesEditing');_0x238ead['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2e3c04['locale'],'ELEMENT_TITLE')),_0x2e3c04['model']['document']['registerPostFixer'](_0x3bf4b0=>{let _0x3c7d7a=!0x1;const _0x5bddec=Array['from'](_0x2e3c04['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x469520,data:_0xe640cb}of _0x5bddec){const {group:_0x10f285}=_0x238ead['_splitMarkerName'](_0x469520);if('suggestion'!==_0x10f285||!_0xe640cb['newRange'])continue;const _0x3701a2=_0xe640cb['newRange'],_0x32a107=_0x3701a2['end']['nodeBefore'];if(!_0x32a107||!_0x32a107['is']('element','title-content'))continue;if(!_0x3701a2['start']['isTouching'](_0x3701a2['end']))continue;const _0x4f5ec1=_0x2e3c04['model']['schema']['getNearestSelectionRange'](_0x3701a2['end'],'forward');if(_0x4f5ec1&&_0x4f5ec1['isCollapsed']){const _0x4e9545=_0x3bf4b0['createRange'](_0x3701a2['start'],_0x4f5ec1['start']);_0x4e9545['isEqual'](_0x3701a2)||(_0x3bf4b0['updateMarker'](_0x469520,{'range':_0x4e9545}),_0x3c7d7a=!0x0);}_0x3c7d7a||(_0x3bf4b0['removeMarker'](_0x469520),_0x3c7d7a=!0x0);}return _0x3c7d7a;});}}class Nt extends _0x470f93{['afterInit'](){const _0x2df684=this['editor'],_0x4c3c13=_0x2df684['plugins']['get']('TrackChangesEditing');_0x2df684['plugins']['has']('UndoEditing')&&(_0x4c3c13['enableCommand']('undo'),_0x4c3c13['enableCommand']('redo'));}}class Mt extends _0x470f93{static get['requires'](){return[jt];}['afterInit'](){const _0x50643e=this['editor'];if(!_0x50643e['plugins']['has']('TableCaptionEditing'))return;_0x50643e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x470f93{['tableProperties'];['tableCellProperties'];constructor(_0xe9a88c){super(_0xe9a88c),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';}['afterInit'](){const _0xf2f394=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xe04df3 of this['tableProperties'])_0xf2f394['enableCommand'](_0xe04df3,(_0x24383c,_0x4d41d0)=>{const _0x1c5adf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xe04df3,[_0x1c5adf],this['tableProperties'],'tableProperties',_0x24383c,_0x4d41d0);});_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xf2f394['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x525e06,_0x1cda1d)=>this['handleDiscardAction'](this['tableProperties'],_0x525e06,_0x1cda1d)),_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x455b88 of this['tableCellProperties'])_0xf2f394['enableCommand'](_0x455b88,(_0x961832,_0x40b9fe)=>{const _0x4fdb28=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x455b88,_0x4fdb28,this['tableCellProperties'],'tableCellProperties',_0x961832,_0x40b9fe);});_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xf2f394['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f91ef,_0xdc97d5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f91ef,_0xdc97d5)),_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xf2f394['descriptionFactory']['registerDescriptionCallback'](_0x9676d4=>this['handleSuggestionDescription'](_0x9676d4));}['_handlePropertyChange'](_0x5418c5,_0x356ee7,_0x41b5e7,_0xb30dad,_0x4fadf5,_0x2865bd){const _0x4b2aef=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2865bd['batch'],()=>{for(const _0x5287b4 of _0x356ee7){if(this['_getSuggestion'](_0x5287b4,_0xb30dad))_0x4fadf5(_0x2865bd);else{const _0x2479ee={};for(const _0x49ae16 of _0x41b5e7){const _0x446413=_0x5287b4['getAttribute'](_0x49ae16);void 0x0!==_0x446413&&(_0x2479ee[_0x49ae16]=_0x446413);}_0x4fadf5(_0x2865bd),_0x4b2aef['markBlockFormat'](_0x5287b4,{'commandParams':[_0x2479ee]},[],_0xb30dad);}}});}['handleDiscardAction'](_0x59a7f2,_0x3e42b9,_0x1746fd){const _0x36e799=_0x3e42b9[0x0]['start']['nodeAfter'],_0x204ab8=_0x1746fd['commandParams'][0x0];this['editor']['model']['change'](_0x28df63=>{for(const _0x1341f8 of _0x59a7f2)void 0x0!==_0x204ab8[_0x1341f8]?_0x28df63['setAttribute'](_0x1341f8,_0x204ab8[_0x1341f8],_0x36e799):_0x28df63['removeAttribute'](_0x1341f8,_0x36e799);});}['handleSuggestionDescription'](_0x2dc541){if(_0x2dc541['data'])switch(_0x2dc541['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'](_0x320d25,_0x1749f1){const _0x466b05=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1c4988 of _0x466b05['getSuggestions']({'skipNotAttached':!0x0})){const _0x1a440a=_0x1c4988['getContainedElement']();if(_0x1c4988['subType']===_0x1749f1&&_0x1a440a===_0x320d25)return _0x1c4988;}return null;}}const m='$elementName';class p extends _0x470f93{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x26cba0,_0x1ae075,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x344fad){function _0x40c8c6(_0x10c55b){return _0x10c55b['map'](_0x3e80ec=>String['fromCharCode'](_0x3e80ec))['join']('');}super(_0x344fad),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x51c086,_0x9a54a0,_0x385963,_0x4523fa)=>{this['_model']['change'](()=>{for(const _0x43a3f1 of[..._0x4523fa,..._0x385963])this['_model']['markers']['has'](_0x43a3f1)&&_0x344fad['editing']['reconvertMarker'](_0x43a3f1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x344fad['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(),_0x344fad['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x344fad['config']['get']('trackChanges.trackFormatChanges'),_0x344fad['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x344fad['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x344fad,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x40c8c6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x40c8c6([0x34,0x30,0x34,0x38,0x31,0x32,0x35,0x38]);}['init'](){const _0x2bc27b=this['editor'],_0x1443d1=(_0x50f3b2,_0x4845b8)=>{if('attribute'!=_0x50f3b2)return'ck-suggestion-marker-'+_0x50f3b2;const _0x59a91c=_0x4845b8['split']('|')[0x0];return this['_isBlockAttribute'](_0x59a91c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2bc27b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1db48a=>{const {id:_0x13d85a,type:_0x15e9e3,subType:_0x46e748}=this['_splitMarkerName'](_0x1db48a['markerName']),_0x205a9a=['ck-suggestion-marker',_0x1443d1(_0x15e9e3,_0x46e748)];let _0x1e3278=0xbb8;return this['activeMarkers']['includes'](_0x1db48a['markerName'])&&(_0x205a9a['push']('ck-suggestion-marker--active'),_0x1e3278=0xbc2),'deletion'==_0x15e9e3&&(_0x1e3278+=0x5),{'classes':_0x205a9a,'attributes':{'data-suggestion':_0x13d85a},'priority':_0x1e3278};}}),_0x2bc27b['conversion']['for']('dataDowncast')['add'](_0x47be85=>{_0x47be85['on']('addMarker:suggestion',(_0x5d2d55,_0x286277,_0x456e46)=>{if(!_0x456e46['options']['showSuggestionHighlights'])return;const _0x2b38ab=_0x286277['item'];if(!_0x2b38ab)return;const _0x522dee=_0x456e46['mapper']['toViewElement'](_0x2b38ab);_0x2bc27b['model']['schema']['isObject'](_0x2b38ab)&&_0x522dee&&!_0x522dee['getCustomProperty']('widget')&&_0x522dee['is']('containerElement')&&_0x3676ef(_0x522dee,_0x456e46['writer']);},{'priority':'high'});}),_0x2bc27b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xbc6ff2,_0x99ce16)=>{if(!_0x99ce16['options']['showSuggestionHighlights'])return null;const {type:_0x5eaac4,subType:_0x3c8351}=this['_splitMarkerName'](_0xbc6ff2['markerName']);return{'classes':['ck-suggestion-marker',_0x1443d1(_0x5eaac4,_0x3c8351)],'priority':0xbb8};}});const _0x3f5670=({showActiveMarkers:_0x481f1e=!0x0,isAttributeSuggestion:_0x3e5f7a=!0x1}={})=>(_0x29e435,_0xbee82d,_0x1585f6)=>{if(!_0xbee82d['item'])return;const {id:_0x1a6bf8}=this['_splitMarkerName'](_0xbee82d['markerName']);if(_0x3e5f7a){const _0x1d3f1b=this['_suggestions']['get'](_0x1a6bf8),_0x283962=this['_getAttributeKey'](_0x1d3f1b);if(!this['_isBlockAttribute'](_0x283962))return;}if(_0xbee82d['item']['is']('selection'))return void _0x1585f6['consumable']['consume'](_0xbee82d['item'],_0x29e435['name']);const _0x3bd236=_0x1585f6['mapper']['toViewElement'](_0xbee82d['item']);if(_0xbee82d['item']['is']('element')&&_0x2bc27b['model']['schema']['isBlock'](_0xbee82d['item'])&&!_0x3bd236['getCustomProperty']('addHighlight')){_0x1585f6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3bd236),_0x1585f6['writer']['setAttribute']('data-suggestion',_0x1a6bf8,_0x3bd236),_0x1585f6['mapper']['bindElementToMarker'](_0x3bd236,_0xbee82d['markerName']),_0x481f1e&&(this['activeMarkers']['includes'](_0xbee82d['markerName'])?_0x1585f6['writer']['addClass']('ck-suggestion-marker--active',_0x3bd236):_0x1585f6['writer']['removeClass']('ck-suggestion-marker--active',_0x3bd236));for(const _0x3f994f of _0x2bc27b['model']['createRangeIn'](_0xbee82d['item'])['getItems']())_0x1585f6['consumable']['consume'](_0x3f994f,_0x29e435['name']);_0x1585f6['consumable']['consume'](_0xbee82d['item'],_0x29e435['name']);}};_0x2bc27b['conversion']['for']('dataDowncast')['add'](_0x4c6c40=>{_0x4c6c40['on']('addMarker:suggestion:formatBlock',(_0x25c397,_0x51019f,_0x50c9e3)=>{_0x50c9e3['options']['showSuggestionHighlights']&&_0x3f5670({'showActiveMarkers':!0x1})(_0x25c397,_0x51019f,_0x50c9e3);},{'priority':'highest'});}),_0x2bc27b['conversion']['for']('dataDowncast')['add'](_0x17549c=>{_0x17549c['on']('addMarker:suggestion:attribute',(_0x11afcd,_0x5ae99b,_0x44ebfa)=>{_0x44ebfa['options']['showSuggestionHighlights']&&_0x3f5670({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x11afcd,_0x5ae99b,_0x44ebfa);},{'priority':'highest'});}),_0x2bc27b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x929b8e,_0x52b463)=>_0x52b463['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x929b8e['substr'](0xb)}}),_0x2bc27b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5ab55d,{writer:_0x1d0e9d})=>{let _0x7f1c6f='suggestion:'+_0x5ab55d['getAttribute']('suggestion-type')+':'+_0x5ab55d['getAttribute']('id');return _0x5ab55d['getAttribute']('marker-count')&&(_0x7f1c6f+=':'+_0x5ab55d['getAttribute']('marker-count')),_0x1d0e9d['createElement']('$marker',{'data-name':_0x7f1c6f});}}),_0x2bc27b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2bc27b['conversion']['for']('editingDowncast')['add'](_0x154320=>{_0x154320['on']('addMarker:suggestion:formatBlock',_0x3f5670(),{'priority':'high'});}),_0x2bc27b['conversion']['for']('editingDowncast')['add'](_0x3daf20=>{_0x3daf20['on']('addMarker:suggestion:attribute',_0x3f5670({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2bc27b['conversion']['for']('editingDowncast')['add'](_0x528c7f=>{_0x528c7f['on']('removeMarker:suggestion:formatBlock',(_0x4df83d,_0x492e3a,_0x3e5ac6)=>{const _0xfb3034=_0x3e5ac6['mapper']['markerNameToElements'](_0x492e3a['markerName']);if(_0xfb3034){for(const _0x2686a5 of _0xfb3034)_0x2686a5['getCustomProperty']('addHighlight')||(_0x3e5ac6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2686a5),_0x3e5ac6['writer']['removeAttribute']('data-suggestion',_0x2686a5),_0x3e5ac6['mapper']['unbindElementFromMarkerName'](_0x2686a5,_0x492e3a['markerName']));}},{'priority':'high'});}),_0x2bc27b['conversion']['for']('editingDowncast')['add'](_0x58e9d0=>{_0x58e9d0['on']('removeMarker:suggestion:attribute',(_0x161a94,_0x42ec4f,_0x4ddbef)=>{const _0xa61561=_0x4ddbef['mapper']['markerNameToElements'](_0x42ec4f['markerName']);if(!_0xa61561)return;const {id:_0x23889b}=this['_splitMarkerName'](_0x42ec4f['markerName']),_0x883a30=this['_suggestions']['get'](_0x23889b),_0x52bca5=this['_getAttributeKey'](_0x883a30);if(this['_isBlockAttribute'](_0x52bca5)){for(const _0x1a5204 of _0xa61561)_0x1a5204['getCustomProperty']('addHighlight')||(_0x4ddbef['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a5204),_0x4ddbef['writer']['removeAttribute']('data-suggestion',_0x1a5204),_0x4ddbef['mapper']['unbindElementFromMarkerName'](_0x1a5204,_0x42ec4f['markerName']));}},{'priority':'high'});}),_0x2bc27b['model']['document']['registerPostFixer'](_0x5c4109=>{let _0x4f5727=!0x1;const _0x4219d1=Array['from'](_0x2bc27b['model']['document']['differ']['getChangedMarkers']()),_0x1e33be=new Set();for(const {name:_0x333677,data:_0x28d160}of _0x4219d1){const {group:_0x1ddbd3,type:_0x2c07dc,subType:_0x126c2a,id:_0xd5700}=this['_splitMarkerName'](_0x333677);if('suggestion'!==_0x1ddbd3)continue;const _0x4f4b31=this['_suggestions']['get'](_0xd5700);if(null!=_0x28d160['newRange']){'formatInline'==_0x2c07dc&&(_0x4f5727=_0x4f5727||Et(_0x28d160['newRange'],_0x333677,_0x5c4109,_0x2bc27b['model']['schema']));const _0xe03295='attribute'==_0x2c07dc&&this['_isBlockAttribute'](_0x126c2a['split']('|')[0x0]);if(_0x28d160['newRange']['isCollapsed']||'$graveyard'==_0x28d160['newRange']['root']['rootName']||'formatBlock'==_0x2c07dc&&!Ut(_0x28d160['newRange'])||_0xe03295&&!Ut(_0x28d160['newRange'])||'deletion'==_0x2c07dc&&!(!Tt(_0x5df2e1=_0x28d160['newRange'])&&!function(_0x587e6c){return _0x587e6c['start']['parent']==_0x587e6c['end']['nodeBefore']&&_0x587e6c['start']['isAtEnd'];}(_0x5df2e1)))_0x5c4109['removeMarker'](_0x333677),_0x4f5727=!0x0;else{if(!_0x4f4b31||!_0x4f4b31['isInContent'])continue;_0x1e33be['add'](_0x4f4b31);}}}var _0x5df2e1;return _0x1e33be['size']>0x0&&(_0x4f5727=!!this['_joinWithAdjacentSuggestions'](_0x1e33be)||_0x4f5727),_0x4f5727;}),_0x2bc27b['model']['document']['registerPostFixer'](_0x59b919=>{let _0x4cb92e=!0x1;for(const _0x5dcb47 of _0x2bc27b['model']['document']['differ']['getChanges']())if('insert'==_0x5dcb47['type'])for(const _0x514234 of this['_suggestions']['values']()){if(_0x514234['isMultiRange']||!_0x514234['isInContent'])continue;const _0x5167a='formatBlock'==_0x514234['type'],_0x2aa64f=this['_getAttributeKey'](_0x514234),_0x342da0=_0x2aa64f&&this['_isBlockAttribute'](_0x2aa64f);if(!_0x5167a&&!_0x342da0)continue;const _0x5d0010=_0x514234['getFirstRange']();if(_0x5d0010['start']['parent']!=_0x5d0010['end']['parent']&&!_0x5d0010['end']['isAtEnd']){const _0x2c0cd4=_0x2bc27b['model']['createPositionAt'](_0x5d0010['start']['nodeAfter'],'end'),_0x576f8e=_0x2bc27b['model']['createRange'](_0x5d0010['start'],_0x2c0cd4);_0x59b919['updateMarker'](_0x514234['getFirstMarker'](),{'range':_0x576f8e}),_0x4cb92e=!0x0;}}return _0x4cb92e;}),_0x2bc27b['model']['document']['registerPostFixer'](_0x2d2410=>this['_processAttributeChanges'](_0x2d2410)),_0x2bc27b['model']['document']['registerPostFixer'](_0x34c7ee=>!_0x34c7ee['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x34c7ee)),_0x2bc27b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2bc27b['model']['document']['on']('change:data',(_0x45db11,_0x2dd1dc)=>{if(!_0x2dd1dc['isLocal']||_0x2dd1dc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x56bd1b=_0x2bc27b['model']['document']['differ']['getChanges']();if(0x0==_0x56bd1b['length'])return;const _0x552738=[],_0x3cd6ab=_0x56bd1b['filter'](_0x4d54f1=>'attribute'==_0x4d54f1['type']),_0x281935=_0x56bd1b['filter'](_0x592813=>'insert'==_0x592813['type']&&'$text'!=_0x592813['name']);for(const _0x286cbc of _0x3cd6ab)this['_isRegisteredAttribute'](_0x286cbc['attributeKey'])&&_0x552738['push']({'key':_0x286cbc['attributeKey'],'newValue':_0x286cbc['attributeNewValue'],'oldValue':_0x286cbc['attributeOldValue'],'range':Ot(_0x286cbc['range'],_0x2bc27b['model'])});for(const _0x12e67e of _0x281935){if('rename'!=_0x12e67e['action']&&'refresh'!=_0x12e67e['action'])continue;const _0x14649c=Gt(_0x12e67e['position']['nodeAfter'],_0x2bc27b['model']),_0x55167a=_0x12e67e['before'];'rename'==_0x12e67e['action']&&_0x552738['push']({'key':m,'newValue':_0x12e67e['name'],'oldValue':_0x55167a['name'],'range':_0x14649c});for(const [_0x2b0de2,_0x4f62eb]of _0x55167a['attributes']){if(!this['_isRegisteredAttribute'](_0x2b0de2))continue;const _0x55b51e=_0x12e67e['attributes']['get'](_0x2b0de2);_0x4f62eb!==_0x55b51e&&_0x552738['push']({'key':_0x2b0de2,'newValue':_0x55b51e,'oldValue':_0x4f62eb,'range':_0x14649c});}for(const [_0x51f034,_0x4d39d4]of _0x12e67e['attributes'])this['_isRegisteredAttribute'](_0x51f034)&&(_0x55167a['attributes']['has'](_0x51f034)||_0x552738['push']({'key':_0x51f034,'newValue':_0x4d39d4,'oldValue':null,'range':_0x14649c}));}0x0!=_0x552738['length']&&_0x2bc27b['model']['enqueueChange'](_0x2dd1dc,_0x2e75eb=>{const _0x4c44c7=_0x336056();for(const {range:_0x3a9155,key:_0x2f01f2,oldValue:_0x42276d,newValue:_0x111a01}of _0x552738)this['markAttributeChange'](_0x3a9155,_0x2f01f2,_0x42276d,_0x111a01,{'groupId':_0x4c44c7});this['_reduceExistingSuggestions'](_0x2e75eb,_0x552738);});},{'priority':'lowest'}),_0x2bc27b['model']['markers']['on']('update:suggestion',(_0x2ec83b,_0x28d30a,_0x207c0d)=>{if(null==_0x207c0d){const {id:_0x44fb0b}=this['_splitMarkerName'](_0x28d30a['name']),_0xf27b81=this['_suggestions']['get'](_0x44fb0b);_0xf27b81&&_0xf27b81['addMarkerName'](_0x28d30a['name']);}}),_0x2bc27b['model']['document']['on']('change:data',()=>{const _0x361f78=Array['from'](_0x2bc27b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x40023b=>'suggestion'===this['_splitMarkerName'](_0x40023b['name'])['group']);if(0x0===_0x361f78['length'])return;_0x361f78['sort']((_0x39d8c5,_0x87c225)=>{const _0x2358a1=_0x39d8c5['data']['oldRange'],_0x22c8ab=_0x87c225['data']['oldRange'];return null===_0x2358a1&&null===_0x22c8ab?0x0:null===_0x2358a1&&null!==_0x22c8ab?-0x1:null!==_0x2358a1&&null===_0x22c8ab?0x1:_0x2358a1['start']['isBefore'](_0x22c8ab['start'])?-0x1:0x1;});const _0x347553=new Set(),_0x20ed05=new Set();for(const {name:_0xf33df4,data:_0x46cdfe}of _0x361f78){const {id:_0x477d3d}=this['_splitMarkerName'](_0xf33df4);if(null===_0x46cdfe['oldRange']){const _0x3c4af0=this['_handleNewSuggestionMarker'](_0xf33df4);_0x20ed05['add'](_0x3c4af0);}else{const _0x230b68=this['_suggestions']['get'](_0x477d3d);null!==_0x46cdfe['newRange']||_0x230b68['isInContent']?(_0x347553['add'](_0x230b68['head']),_0x20ed05['add'](_0x230b68)):this['_removeSuggestion'](_0x230b68);}}_0x20ed05['size']>0x0&&this['_refreshSuggestionsChain'](_0x20ed05);for(const _0x2d2886 of _0x347553)this['fire']('suggestionChanged',_0x2d2886);}),_0x2bc27b['model']['on']('applyOperation',(_0x3ef83d,_0x4fe44e)=>{const _0x533254=_0x4fe44e[0x0];if(!this['_suggestions']['size'])return;if(!_0x533254['isDocumentOperation'])return;if(_0x533254['batch']['isUndo']||!_0x533254['batch']['isLocal'])return;let _0x1136cd,_0x452f86;switch(_0x533254['type']){case'insert':_0x1136cd=_0x2bc27b['model']['createPositionAt'](_0x533254['position']),_0x452f86=_0x1136cd['getShiftedBy'](_0x533254['howMany']);break;case'split':_0x1136cd=_0x2bc27b['model']['createPositionAt'](_0x533254['splitPosition']),_0x452f86=_0x2bc27b['model']['createPositionAt'](_0x533254['moveTargetPosition']);break;case'move':_0x1136cd=_0x2bc27b['model']['createPositionAt'](_0x533254['targetPosition']),_0x452f86=_0x1136cd['getShiftedBy'](_0x533254['howMany']);break;default:return;}const _0x2810b6=_0x2bc27b['model']['createRange'](_0x1136cd,_0x452f86);_0x2bc27b['model']['change'](()=>{for(const {suggestion:_0x47f2b3,meta:_0x3904c7}of this['_findSuggestions'](_0x2810b6)){if(_0x47f2b3['isMultiRange'])continue;if('formatInline'==_0x47f2b3['type'])continue;const _0xf1d53b=this['_getAttributeKey'](_0x47f2b3);if(_0xf1d53b&&this['_isBlockAttribute'](_0xf1d53b)&&'split'!=_0x533254['type'])continue;const _0x1a47bc=_0x47f2b3['data']&&_0x47f2b3['data']['multipleBlocks'];('formatBlock'!=_0x47f2b3['type']||'split'==_0x533254['type']&&!_0x1a47bc)&&(_0x3904c7['containsRangeInObject']||'insertion'==_0x47f2b3['type']&&_0x3904c7['isOwn']||_0x47f2b3['getFirstRange']()['containsRange'](_0x2810b6)&&this['_breakSuggestionMarker'](_0x47f2b3,_0x1136cd,_0x452f86));}});},{'priority':'lowest'}),_0x2bc27b['model']['on']('deleteContent',(_0x173015,_0x133439)=>{const _0x37f4de=_0x133439[0x0],_0x4f21a1=_0x133439[0x1];if(_0x4f21a1&&_0x4f21a1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x37f4de['isCollapsed'])return;const _0x3172fc=_0x2bc27b['model']['schema'],{start:_0x247ed4,end:_0x8e019a}=_0x37f4de['getFirstRange'](),_0x431854=_0x247ed4['nodeAfter']&&_0x3172fc['isLimit'](_0x247ed4['nodeAfter'])?null:_0x3172fc['getNearestSelectionRange'](_0x247ed4,'forward'),_0x6b2fb3=_0x8e019a['nodeBefore']&&_0x3172fc['isLimit'](_0x8e019a['nodeBefore'])?null:_0x3172fc['getNearestSelectionRange'](_0x8e019a,'backward'),_0x278f96=_0x2bc27b['model']['createRange'](_0x431854?_0x431854['start']:_0x247ed4,_0x6b2fb3?_0x6b2fb3['end']:_0x8e019a);_0x2bc27b['model']['change'](_0x4150be=>{this['markDeletion'](_0x278f96);const _0x53ef0e=_0x2bc27b['model']['schema']['getNearestSelectionRange'](_0x278f96['start']);_0x37f4de['is']('documentSelection')?_0x4150be['setSelection'](_0x53ef0e):_0x37f4de['setTo'](_0x53ef0e);}),_0x173015['stop']();},{'priority':_0x1e623f['normal']+0xa}),_0x2bc27b['model']['on']('insertContent',(_0x49fa58,_0x4a26e6)=>{const _0x3bf1cc=_0x4a26e6[_0x4a26e6['length']-0x1];_0x3bf1cc&&_0x3bf1cc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2bc27b['model']['change'](()=>{let _0x2234fc=_0x2bc27b['model']['insertContent'](_0x4a26e6[0x0],_0x4a26e6[0x1],_0x4a26e6[0x2],{'forceDefaultExecution':!0x0});if(!_0x2234fc)return;_0x49fa58['return']=_0x2234fc['clone']();const _0x21b5ef=_0x2234fc['end']['nodeBefore'],_0x184304=_0x2bc27b['model']['schema'];_0x21b5ef&&_0x184304['isBlock'](_0x21b5ef)&&!_0x184304['isObject'](_0x21b5ef)&&(_0x2234fc=_0x2bc27b['model']['createRange'](_0x2234fc['start'],_0x2bc27b['model']['createPositionAt'](_0x21b5ef,'end'))),this['markInsertion'](_0x2234fc);}),_0x49fa58['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x27364f=new $(_0x2bc27b,this['_suggestions']);_0x2bc27b['commands']['add']('acceptSuggestion',_0x27364f),this['enableCommand']('acceptSuggestion');const _0x4bdb1e=new B(_0x2bc27b,this['_suggestions']);_0x2bc27b['commands']['add']('discardSuggestion',_0x4bdb1e),this['enableCommand']('discardSuggestion'),_0x2bc27b['commands']['add']('acceptAllSuggestions',new x(_0x2bc27b,_0x27364f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2bc27b['commands']['add']('discardAllSuggestions',new x(_0x2bc27b,_0x4bdb1e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2bc27b['commands']['add']('acceptSelectedSuggestions',new R(_0x2bc27b,_0x27364f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2bc27b['commands']['add']('discardSelectedSuggestions',new R(_0x2bc27b,_0x4bdb1e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x46e6b7=_0x2bc27b['plugins']['get']('CommentsRepository');this['listenTo'](_0x46e6b7,'addComment',(_0x436eb1,{threadId:_0x867f67})=>{const _0x196e83=this['_suggestions']['get'](_0x867f67);_0x196e83&&_0x196e83['commentThread']&&0x1===_0x196e83['commentThread']['length']&&this['_updateSuggestionData'](_0x867f67,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x46e6b7,'removeComment',(_0x5c8ac3,{threadId:_0x5b2c3d})=>{const _0x2bb001=this['_suggestions']['get'](_0x5b2c3d);_0x2bb001&&_0x2bb001['commentThread']&&!_0x2bb001['commentThread']['length']&&this['_updateSuggestionData'](_0x5b2c3d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1fae49){if(this['_adapter'])throw new _0x4524f9('track-changes-adapter-already-set',this);this['_adapter']=_0x1fae49;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x355564=!0x1,toJSON:_0x1f0637=!0x1}={}){const _0x5e21e1=[];for(const _0x9b436d of this['_suggestions']['values']())_0x355564&&!_0x9b436d['isInContent']||_0x5e21e1['push'](_0x9b436d);return _0x1f0637?_0x5e21e1['map'](_0x4b719d=>_0x4b719d['toJSON']()):_0x5e21e1;}['getSuggestion'](_0x150aa9){const _0x3de598=this['_suggestions']['get'](_0x150aa9);if(!_0x3de598)throw new _0x4524f9('track-changes-suggestion-not-found',this);return _0x3de598;}['hasSuggestion'](_0x28033c){return this['_suggestions']['has'](_0x28033c);}['addSuggestionData'](_0x4341cd){const {authorId:_0x24b206,id:_0x3c3b00,attributes:_0x2704a2}=_0x4341cd,[_0x2dbe08,_0x50f7fe]=_0x4341cd['type']['split'](':'),_0x2c50a7=this['_suggestions']['get'](_0x3c3b00)||this['_createSuggestion'](_0x2dbe08,_0x50f7fe,_0x3c3b00,_0x24b206,_0x2704a2);if(this['_addThreadToSuggestion'](_0x2c50a7),this['_checkSuggestionCorrectness'](_0x2c50a7,_0x2dbe08,_0x50f7fe||null,_0x24b206),_0x2c50a7['createdAt']=_0x4341cd['createdAt'],_0x2c50a7['_isDataLoaded']=!0x0,_0x2704a2&&_0x2704a2['@external']){const _0x31047d=_0x2704a2['@external'],_0x10f1b5=this['_getExternalAuthor'](_0x31047d['authorName']);_0x2c50a7['authoredAt']=_0x31047d['createdAt'],_0x2c50a7['author']=_0x10f1b5,_0x2c50a7['isExternal']=!0x0;}else _0x2c50a7['authoredAt']=_0x4341cd['createdAt'];switch(_0x4341cd['data']&&(_0x2c50a7['data']=_0x4341cd['data']),_0x4341cd['attributes']&&(_0x2c50a7['attributes']=_0x4341cd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2c50a7['_saved']=!0x0),this['_suggestionState']['get'](_0x2c50a7)){case'notReady':this['_suggestionState']['set'](_0x2c50a7,'dataReady');break;case'markerReady':_0x2c50a7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2c50a7])),this['_refreshSuggestionsChain'](new Set([_0x2c50a7])),this['_suggestionState']['set'](_0x2c50a7,'ready'),this['fire']('suggestionLoaded',_0x2c50a7)):this['_suggestionState']['set'](_0x2c50a7,'removed');}return _0x2c50a7;}['acceptSuggestion'](_0x47d36e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4514a8 of _0x47d36e['getAllAdjacentSuggestions']())_0x4514a8['accept']();});});}['discardSuggestion'](_0x3de92e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ee2f1 of _0x3de92e['getAllAdjacentSuggestions']())_0x2ee2f1['discard']();});});}['enableCommand'](_0x1bf7bc,_0x3f825e){const _0x4fffbf=this['editor']['commands']['get'](_0x1bf7bc);if(!_0x4fffbf)throw new _0x4524f9('track-changes-command-not-found',this,{'commandName':_0x1bf7bc});if(this['_enabledCommands']['has'](_0x4fffbf))throw new _0x4524f9('track-changes-enable-command-twice',this,{'commandName':_0x1bf7bc});this['_enabledCommands']['add'](_0x4fffbf),_0x3f825e&&_0x4fffbf['on']('execute',(_0x4c5dee,_0x18d362)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x18d362['length']>0x0&&_0x18d362[_0x18d362['length']-0x1]&&_0x18d362[_0x18d362['length']-0x1]['forceDefaultExecution']?_0x18d362['pop']():(_0x4c5dee['return']=_0x3f825e((..._0xa2200)=>_0x4fffbf['execute'](..._0xa2200,{'forceDefaultExecution':!0x0}),..._0x18d362),_0x4c5dee['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x229cd0){let _0x16f343,_0xa5c0ce;const _0x5ae934=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x16f343=_0x229cd0();}catch(_0x1183b4){_0xa5c0ce=_0x1183b4;}return _0x5ae934||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xa5c0ce&&_0x4524f9['rethrowUnexpectedError'](_0xa5c0ce,this),_0x16f343;}['markInsertion'](_0x46b5e5,_0x1d3fc0=null,_0x17f185={}){if(_0x46b5e5['isCollapsed'])return null;const _0x2d3004=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x22fd8f,meta:_0x394c00}of this['_findSuggestions'](_0x46b5e5,'insertion'))if(_0x394c00['isOwn']){if(!_0x394c00['isNextTo']){if(_0x394c00['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x22fd8f,_0x17f185))continue;return _0x22fd8f;}if(Lt(_0x22fd8f,_0x17f185))return _0x22fd8f;this['_breakSuggestionMarker'](_0x22fd8f,_0x46b5e5['start'],_0x46b5e5['end']);break;}if(_0x1d3fc0==_0x22fd8f['subType']&&Lt(_0x22fd8f,_0x17f185)){const _0x96c88e=_0x22fd8f['getFirstRange']();return _0x96c88e['start']['isEqual'](_0x46b5e5['end'])?this['_setSuggestionRange'](_0x22fd8f,this['_model']['createRange'](_0x46b5e5['start'],_0x96c88e['end'])):this['_setSuggestionRange'](_0x22fd8f,this['_model']['createRange'](_0x96c88e['start'],_0x46b5e5['end'])),_0x22fd8f;}}const _0x1b42e1=_0x336056(),_0x57745c=_0x2d3004['id'],_0x531bb=_0x1d3fc0?'insertion:'+_0x1d3fc0:'insertion',_0x3b3551=this['_setSuggestionData']({'id':_0x1b42e1,'type':_0x531bb,'createdAt':new Date(),'authorId':_0x57745c,'attributes':_0x17f185});return this['_addSuggestionMarker'](_0x531bb,_0x1b42e1,_0x57745c,_0x46b5e5),_0x3b3551;}['markMultiRangeInsertion'](_0x288514,_0x4db32a='multi',_0x2a592f={}){const _0x143d82=this['editor']['plugins']['get']('Users')['me'],_0x3e3d20=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4db32a,'join');for(const _0xcdba1 of this['getSuggestions']())if(_0xcdba1['author']['id']==_0x143d82['id']&&'insertion'==_0xcdba1['type']&&_0xcdba1['subType']==_0x4db32a&&Lt(_0xcdba1,_0x2a592f)&&(_0x3e3d20(_0xcdba1['getRanges'](),_0x288514)||_0x3e3d20(_0x288514,_0xcdba1['getRanges']()))){for(const _0xf4acf0 of _0x288514)_0xcdba1['addRange'](_0xf4acf0);return _0xcdba1;}for(const {suggestion:_0x5b8a40,meta:_0x34189a}of this['_findSuggestions'](_0x288514,'insertion')){if(!_0x34189a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x34189a['containsRangeInObject'])continue;if(!Lt(_0x5b8a40,_0x2a592f))continue;let _0x1a2fea=!0x0;for(const _0x49a519 of _0x5b8a40['getRanges']())for(const _0x3778c4 of _0x288514)if(!_0x49a519['containsRange'](_0x3778c4)){_0x1a2fea=!0x1;break;}if(_0x1a2fea)return _0x5b8a40;}const _0x46c186=_0x336056(),_0x1fc5f6=_0x143d82['id'],_0x551613='insertion:'+_0x4db32a,_0x1a3ddc=this['_setSuggestionData']({'id':_0x46c186,'type':_0x551613,'createdAt':new Date(),'authorId':_0x1fc5f6,'attributes':_0x2a592f});for(const _0x4b8234 of _0x288514)this['_addSuggestionMarker'](_0x551613,_0x46c186,_0x1fc5f6,_0x4b8234,u['getMultiRangeId']());return _0x1a3ddc;}['markInlineFormat'](_0x39d862,_0x12b05f,_0x3e2ea3=null,_0x461022={}){if(_0x3e2ea3=_0x3e2ea3||Vt(_0x12b05f),_0x39d862['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x239e3d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e2ea3,'accept');return this['forceDefaultExecution'](()=>_0x239e3d([_0x39d862],_0x12b05f,_0x461022)),null;}const _0x470916=this['editor']['plugins']['get']('Users')['me'],_0x4f4cbf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x162b6c,meta:_0x41add5}of this['_findSuggestions'](_0x39d862,'insertion'))_0x41add5['isOwn']&&!_0x41add5['isInsideObject']&&_0x4f4cbf['push'](..._0x162b6c['getRanges']());}const _0x1e795b=function(_0x1831e7,_0x510dc7){const _0x1b0c64=[];for(const _0x280677 of _0x510dc7){const _0x5dff60=_0x1831e7['getIntersection'](_0x280677);_0x5dff60&&_0x1b0c64['push'](_0x5dff60);}return _0x1b0c64;}(_0x39d862,_0x4f4cbf),_0x25b09b=function(_0x26c0a2,_0x57c11b){const _0x607eea=[_0x26c0a2];for(const _0x475ec0 of _0x57c11b){let _0x4f6b05=0x0;for(;_0x4f6b05<_0x607eea['length'];){const _0x220281=_0x607eea[_0x4f6b05]['getDifference'](_0x475ec0);_0x607eea['splice'](_0x4f6b05,0x1,..._0x220281),_0x4f6b05+=_0x220281['length'];}}return _0x607eea;}(_0x39d862,_0x4f4cbf);_0x1e795b['length']&&this['_model']['change'](()=>{for(const _0x2c4657 of _0x1e795b){const _0x16ab16=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e2ea3,'accept');this['forceDefaultExecution'](()=>_0x16ab16([_0x2c4657],_0x12b05f,_0x461022));}});for(const _0x12a73c of _0x25b09b){let _0xc5a4a9=null,_0x28fb35=_0x12a73c['start'],_0x2ac6ea=_0x12a73c['end'];for(const {suggestion:_0x502130,meta:_0x59d4f7}of this['_findSuggestions'](_0x12a73c,'formatInline')){if(!_0x59d4f7['isOwn'])continue;if(_0x502130['subType']!=_0x3e2ea3)continue;if(!Lt(_0x502130,_0x461022))continue;const _0x5371c9=_0x502130['getFirstRange']();if(_0x5371c9['containsRange'](_0x12a73c,!0x0))return null;_0x28fb35=_0x28fb35['isBefore'](_0x5371c9['start'])?_0x28fb35:_0x5371c9['start'],_0x2ac6ea=_0x2ac6ea['isAfter'](_0x5371c9['end'])?_0x2ac6ea:_0x5371c9['end'],_0xc5a4a9?_0x5371c9['start']['isBefore'](_0xc5a4a9['getFirstRange']()['start'])?(_0xc5a4a9['removeMarkers'](),_0xc5a4a9=_0x502130):_0x502130['removeMarkers']():_0xc5a4a9=_0x502130;}const _0x199308=this['_model']['createRange'](_0x28fb35,_0x2ac6ea);if(_0xc5a4a9)this['_setSuggestionRange'](_0xc5a4a9,_0x199308);else{const _0xb4c93d=_0x336056(),_0x1d8951=_0x470916['id'];this['_setSuggestionData']({'id':_0xb4c93d,'type':'formatInline:'+_0x3e2ea3,'data':_0x12b05f,'createdAt':new Date(),'authorId':_0x1d8951,'attributes':_0x461022}),this['_addSuggestionMarker']('formatInline:'+_0x3e2ea3,_0xb4c93d,_0x1d8951,_0x199308);}}return null;}['markBlockFormat'](_0xf00a5f,_0x205565,_0x4eabc5=[],_0x4a35f7=null,_0x3a9966={}){_0x205565['formatGroupId']||(_0x205565['formatGroupId']=_0x205565['commandName']),_0x205565['multipleBlocks']=_0xf00a5f['is']('range'),_0x4a35f7=_0x4a35f7||Vt(_0x205565);const _0x385539=_0x4eabc5['map'](_0x407baf=>Gt(_0x407baf,this['_model'])),_0x4ce577=_0xf00a5f['is']('range')?_0xf00a5f:Gt(_0xf00a5f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x514318=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a35f7,'accept');return this['forceDefaultExecution'](()=>_0x514318([_0x4ce577],_0x205565,_0x3a9966)),null;}_0x385539['push'](_0x4ce577);let _0x33372f=!0x0;for(const _0x4da9ce of _0x385539)if(!this['_rangeIsInLocalUserInsertion'](_0x4da9ce)){_0x33372f=!0x1;break;}if(_0x33372f&&'always'!==this['_trackFormatChanges']){const _0x245793=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a35f7,'accept');return this['forceDefaultExecution'](()=>_0x245793([_0x4ce577],_0x205565,_0x3a9966)),null;}let _0x21306c=null,_0x2c7a70=_0x4ce577['start'],_0x1514ed=_0x4ce577['end'];for(const {suggestion:_0x838cd1,meta:_0x266f78}of this['_findSuggestions'](_0x4ce577,'formatBlock')){if(!_0x266f78['isOwn'])continue;if(_0x266f78['isNextTo']||_0x266f78['containsRangeInObject']||_0x266f78['isInsideObject'])continue;if(_0x838cd1['data']['formatGroupId']!=_0x205565['formatGroupId'])continue;if(!Lt(_0x838cd1,_0x3a9966))continue;const _0x56eac8=_0x838cd1['getFirstRange']();if(_0x838cd1['subType']==_0x4a35f7){if(_0x56eac8['containsRange'](_0x4ce577,!0x0))return null;_0x2c7a70=_0x2c7a70['isBefore'](_0x56eac8['start'])?_0x2c7a70:_0x56eac8['start'],_0x1514ed=_0x1514ed['isAfter'](_0x56eac8['end'])?_0x1514ed:_0x56eac8['end'],_0x21306c?_0x56eac8['start']['isBefore'](_0x21306c['getFirstRange']()['start'])?(_0x21306c['removeMarkers'](),_0x21306c=_0x838cd1):_0x838cd1['removeMarkers']():_0x21306c=_0x838cd1;}else{const _0x18ec15=_0x4ce577['getIntersection'](_0x56eac8);this['_cutOutSuggestionMarker'](_0x838cd1,_0x18ec15);}}const _0x403505=this['editor']['plugins']['get']('Users')['me'],_0x14fc6a=_0x336056(),_0x4ad45b=_0x403505['id'];if(_0x21306c)return this['_setSuggestionRange'](_0x21306c,this['_model']['createRange'](_0x2c7a70,_0x1514ed)),_0x21306c;{const _0x57912b=this['_setSuggestionData']({'id':_0x14fc6a,'type':'formatBlock:'+_0x4a35f7,'data':_0x205565,'createdAt':new Date(),'authorId':_0x4ad45b,'attributes':_0x3a9966});return this['_addSuggestionMarker']('formatBlock:'+_0x4a35f7,_0x14fc6a,_0x4ad45b,this['_model']['createRange'](_0x2c7a70,_0x1514ed)),_0x57912b;}}['markMultiRangeBlockFormat'](_0xa4ab6c,_0x197e63,_0x186c04=[],_0x4777cb=null,_0x31265f={}){_0x197e63['formatGroupId']||(_0x197e63['formatGroupId']=_0x197e63['commandName']);const _0x137678=_0xa4ab6c[0x0];_0x197e63['multipleBlocks']=_0x137678['is']('range'),_0x4777cb=_0x4777cb||Vt(_0x197e63);const _0x13ba9e=_0x186c04['map'](_0x4ecc69=>Gt(_0x4ecc69,this['_model'])),_0x52c84d=_0x137678['is']('range')?_0xa4ab6c:_0xa4ab6c['map'](_0x3dc723=>Gt(_0x3dc723,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1be287=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4777cb,'accept');return this['forceDefaultExecution'](()=>_0x1be287(_0x52c84d,_0x197e63,_0x31265f)),null;}_0x13ba9e['push'](..._0x52c84d);let _0x2094d6=!0x0;for(const _0x5e6119 of _0x13ba9e)if(!this['_rangeIsInLocalUserInsertion'](_0x5e6119)){_0x2094d6=!0x1;break;}if(_0x2094d6&&'always'!==this['_trackFormatChanges']){const _0x2afa9e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4777cb,'accept');return this['forceDefaultExecution'](()=>_0x2afa9e(_0x52c84d,_0x197e63,_0x31265f)),null;}const _0x8a4f07=this['editor']['plugins']['get']('Users')['me'];for(const _0x1543bd of this['getSuggestions']()){if(_0x1543bd['author']['id']!=_0x8a4f07['id'])continue;if('formatBlock'!=_0x1543bd['type']||_0x1543bd['data']['formatGroupId']!=_0x197e63['formatGroupId'])continue;if(!Lt(_0x1543bd,_0x31265f))continue;const _0x439887=_0x1543bd['subType']==_0x4777cb;for(let _0x46b77a=0x0;_0x46b77a<_0x52c84d['length'];_0x46b77a++){const _0x2338cf=_0x52c84d[_0x46b77a];for(const _0x15343c of _0x1543bd['getMarkers']()){const _0x124828=_0x15343c['getRange']();if(_0x2338cf['isEqual'](_0x124828)){_0x439887?(_0x52c84d['splice'](_0x46b77a,0x1),_0x46b77a--):_0x1543bd['removeMarker'](_0x15343c['name']);break;}}}}if(0x0==_0x52c84d['length'])return null;const _0x2b4c47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4777cb,'join');for(const _0x809514 of this['getSuggestions']())if(_0x809514['author']['id']==_0x8a4f07['id']&&'formatBlock'==_0x809514['type']&&_0x809514['data']['formatGroupId']==_0x197e63['formatGroupId']&&_0x809514['subType']==_0x4777cb&&Lt(_0x809514,_0x31265f)&&(_0x2b4c47(_0x809514['getRanges'](),_0x52c84d)||_0x2b4c47(_0x52c84d,_0x809514['getRanges']()))){for(const _0x423324 of _0x52c84d)_0x809514['addRange'](_0x423324);return _0x809514;}const _0x820242=_0x336056(),_0xd7f105=_0x8a4f07['id'],_0x15910e='formatBlock:'+_0x4777cb,_0xf7a449=this['_setSuggestionData']({'id':_0x820242,'type':_0x15910e,'data':_0x197e63,'createdAt':new Date(),'authorId':_0xd7f105,'attributes':_0x31265f});for(const _0x38831e of _0x52c84d)this['_addSuggestionMarker'](_0x15910e,_0x820242,_0xd7f105,_0x38831e,u['getMultiRangeId']());return _0xf7a449;}['markDeletion'](_0x37f5d2,_0x1ba901=null,_0x34787d={}){if(_0x37f5d2['isCollapsed'])return null;const _0x26abe7=this['editor']['plugins']['get']('Users')['me'],_0x340961=new _0x424176(_0x37f5d2['start'],_0x37f5d2['end']);for(const {suggestion:_0x3faa49,meta:_0x454df2}of this['_findSuggestions'](_0x340961,'insertion'))if(_0x454df2['isOwn']&&!_0x454df2['isNextTo']){if(_0x3faa49['isMultiRange']){const _0x2fc0c7=_0x3faa49['getRanges']()['filter'](_0x25cf83=>'$graveyard'!=_0x25cf83['root']['rootName']);_0x2fc0c7['every'](_0x4610e9=>_0x340961['containsRange'](_0x4610e9,!0x0))&&_0x3faa49['discard']();if(_0x2fc0c7['some'](_0x29634d=>_0x29634d['containsRange'](_0x340961,!0x0))){const _0x5cac58=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ba901,'accept');return this['forceDefaultExecution'](()=>_0x5cac58([_0x340961],null,_0x34787d)),null;}}else{const _0x1f6da8=_0x340961['getIntersection'](_0x3faa49['getFirstRange']());null!==_0x1f6da8&&_0x3faa49['_onDiscard']([_0x1f6da8],null,_0x34787d);}}if(_0x340961['detach'](),_0x340961['isCollapsed']||'$graveyard'==_0x340961['root']['rootName'])return null;let _0x4ce862=null,_0x2adc9e=_0x340961['start'],_0x553899=_0x340961['end'];const _0x20b9d6=this['_findSuggestions'](_0x340961,'deletion');for(const {suggestion:_0x3cc4a2,meta:_0x518a60}of _0x20b9d6){const _0x12a071=this['_model']['createRange'](_0x2adc9e,_0x553899);if(_0x518a60['isOwn']&&(this['_mergeNestedSuggestions']||!_0x518a60['containsRangeInObject']&&!_0x518a60['isInsideObject'])){if(_0x3cc4a2['isMultiRange']){if(!Lt(_0x3cc4a2,_0x34787d))continue;let _0x2c3c10=!0x0;for(const _0x50ae61 of _0x3cc4a2['getRanges']()){if(_0x50ae61['containsRange'](_0x12a071,!0x0))return _0x3cc4a2;_0x12a071['containsRange'](_0x50ae61)||(_0x2c3c10=!0x1);}_0x2c3c10&&_0x3cc4a2['discard']();}else{const _0x159abb=_0x3cc4a2['getFirstRange']();if(_0x159abb['containsRange'](_0x12a071,!0x0))return _0x3cc4a2;if(!Lt(_0x3cc4a2,_0x34787d)){_0x12a071['containsRange'](_0x159abb)?_0x3cc4a2['removeMarkers']():_0x159abb['containsPosition'](_0x2adc9e)?_0x2adc9e=_0x159abb['end']:_0x159abb['containsPosition'](_0x553899)&&(_0x553899=_0x159abb['start']);continue;}_0x2adc9e=_0x2adc9e['isBefore'](_0x159abb['start'])?_0x2adc9e:_0x159abb['start'],_0x553899=_0x553899['isAfter'](_0x159abb['end'])?_0x553899:_0x159abb['end'],_0x34787d=Object['assign']({},_0x3cc4a2['attributes']),_0x4ce862?_0x159abb['start']['isBefore'](_0x4ce862['getFirstRange']()['start'])?(_0x4ce862['removeMarkers'](),_0x4ce862=_0x3cc4a2):_0x3cc4a2['removeMarkers']():_0x4ce862=_0x3cc4a2;}}}if(_0x4ce862)return this['_setSuggestionRange'](_0x4ce862,this['_model']['createRange'](_0x2adc9e,_0x553899)),_0x4ce862;{const _0x9fbf2e=_0x336056(),_0x54e53d=this['_model']['createRange'](_0x2adc9e,_0x553899),_0x266faa=_0x26abe7['id'],_0x434514=_0x1ba901?'deletion:'+_0x1ba901:'deletion',_0xa25ea4=this['_setSuggestionData']({'id':_0x9fbf2e,'type':_0x434514,'createdAt':new Date(),'authorId':_0x266faa,'attributes':_0x34787d});return this['_addSuggestionMarker'](_0x434514,_0x9fbf2e,_0x266faa,_0x54e53d),_0xa25ea4;}}['markMultiRangeDeletion'](_0x5440f5,_0x3edca2='multi',_0x2aaa74={}){const _0xd97585=this['editor']['plugins']['get']('Users')['me'],_0xb0f830=_0x5440f5['map'](_0x919aec=>new _0x424176(_0x919aec['start'],_0x919aec['end'])),_0x8fbaee=new Set();for(const {suggestion:_0x1fc4bb,meta:_0x25125d}of this['_findSuggestions'](_0xb0f830,'insertion'))_0x25125d['isOwn']&&!_0x25125d['isNextTo']&&_0x8fbaee['add'](_0x1fc4bb);for(const _0x2076f2 of _0x8fbaee)if(_0x2076f2['isMultiRange']){const _0x58f687=_0x2076f2['getRanges']();(!_0x2076f2['attributes']||!_0x2076f2['attributes']['skipNestingCheck'])&&(_0x58f687['every'](_0xf17091=>_0xb0f830['some'](_0x1dd655=>_0x1dd655['containsRange'](_0xf17091,!0x0)))&&_0x2076f2['discard']());if(_0xb0f830['every'](_0x51cde3=>_0x58f687['some'](_0x5d468f=>_0x5d468f['containsRange'](_0x51cde3,!0x0)))){const _0x1a42db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3edca2,'accept');return this['forceDefaultExecution'](()=>_0x1a42db(_0x5440f5,null,_0x2aaa74)),null;}}else{const _0x59f6e1=_0x2076f2['getFirstRange']();_0xb0f830['some'](_0x20be27=>_0x20be27['containsRange'](_0x59f6e1,!0x0))&&_0x2076f2['discard']();if(_0xb0f830['every'](_0x17ea12=>_0x59f6e1['containsRange'](_0x17ea12,!0x0))){const _0x5d7b92=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3edca2,'accept');return this['forceDefaultExecution'](()=>_0x5d7b92(_0xb0f830,null,_0x2aaa74)),null;}}const _0x3e7c10=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3edca2,'join');let _0x4c7e4d=null;for(const _0x19678a of this['getSuggestions']())if(_0x19678a['author']['id']==_0xd97585['id']&&_0x19678a['isInContent']&&'deletion'==_0x19678a['type']&&_0x19678a['subType']==_0x3edca2&&Lt(_0x19678a,_0x2aaa74)&&(_0x3e7c10(_0x19678a['getRanges'](),_0xb0f830)||_0x3e7c10(_0xb0f830,_0x19678a['getRanges']()))){if(_0x4c7e4d){if(_0x19678a['commentThread']&&_0x19678a['commentThread']['length'])continue;for(const _0xac0342 of _0x19678a['getRanges']())_0x4c7e4d['isIntersectingWithRange'](_0xac0342)||_0x4c7e4d['addRange'](_0xac0342);_0x19678a['removeMarkers']();}else{_0x4c7e4d=_0x19678a;for(const _0xedfd37 of _0xb0f830)_0x19678a['isIntersectingWithRange'](_0xedfd37)||_0x19678a['addRange'](_0xedfd37);}}if(_0x4c7e4d)return _0x4c7e4d;_0x8fbaee['clear']();for(const {suggestion:_0x446963,meta:_0x45091e}of this['_findSuggestions'](_0xb0f830,'deletion'))_0x45091e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45091e['containsRangeInObject']&&!_0x45091e['isInsideObject'])&&Lt(_0x446963,_0x2aaa74)&&_0x8fbaee['add'](_0x446963);for(const _0x292a7a of _0x8fbaee){const _0x2a9f1f=_0x292a7a['getRanges']();if(!_0x2aaa74||!_0x2aaa74['skipNestingCheck']){if(_0xb0f830['every'](_0x56159e=>_0x2a9f1f['some'](_0x50cd87=>_0x50cd87['containsRange'](_0x56159e,!0x0))))return _0x292a7a;}(!_0x292a7a['attributes']||!_0x292a7a['attributes']['skipNestingCheck'])&&(_0x2a9f1f['every'](_0x40bdb6=>_0xb0f830['some'](_0x2e1a0a=>_0x2e1a0a['containsRange'](_0x40bdb6,!0x0)))&&_0x292a7a['discard']());}const _0x46235a=_0x336056(),_0x3e41e0=_0xd97585['id'],_0x526faa='deletion:'+_0x3edca2,_0x5b7731=this['_setSuggestionData']({'id':_0x46235a,'type':_0x526faa,'createdAt':new Date(),'authorId':_0x3e41e0,'attributes':_0x2aaa74});for(const _0x515daa of _0xb0f830)_0x515daa['detach'](),_0x515daa['isCollapsed']||'$graveyard'==_0x515daa['root']['rootName']||this['_addSuggestionMarker'](_0x526faa,_0x46235a,_0x3e41e0,_0x515daa,u['getMultiRangeId']());return _0x5b7731;}['markAttributeChange'](_0x33b4a3,_0x520774,_0x50383c,_0x1ae551,_0x20982a){if(_0x33b4a3['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4de21c=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b1cdb=Array['from'](this['_suggestions']['values']())['filter'](_0x2df8be=>'attribute'==_0x2df8be['type']&&_0x2df8be['data']['key']==_0x520774&&_0x2df8be['isIntersectingWithRange'](_0x33b4a3));if('default'===this['_trackFormatChanges']){const _0x40665f=this['_findSuggestions'](_0x33b4a3,'insertion')['filter'](({meta:_0x56b446})=>_0x56b446['isOwn']&&!_0x56b446['isInsideObject']&&!_0x56b446['isNextTo'])['map'](({suggestion:_0x4c7335})=>_0x4c7335);_0x4b1cdb['unshift'](..._0x40665f);}const _0x5df7be=new Map([[_0x33b4a3,_0x50383c]]);for(const _0x2b0c7e of _0x4b1cdb){const _0x31cdc8='attribute'==_0x2b0c7e['type']?_0x2b0c7e['data']['oldValue']:void 0x0,_0x18ff2b=_0x2b0c7e['getFirstRange'](),_0x1b43a9=Array['from'](_0x5df7be['keys']())['find'](_0xeab06c=>_0xeab06c['isIntersecting'](_0x18ff2b));if(!_0x1b43a9)continue;const _0x2b857f=_0x1b43a9['getDifference'](_0x18ff2b);this['_isBlockAttribute'](_0x520774)&&'insertion'==_0x2b0c7e['type']&&0x0!=_0x2b857f['length']||(_0x5df7be['delete'](_0x1b43a9),_0x2b857f['forEach'](_0x549ce8=>{_0x5df7be['set'](_0x549ce8,_0x50383c);}),'insertion'!=_0x2b0c7e['type']&&_0x31cdc8!=_0x1ae551&&_0x5df7be['set'](_0x1b43a9['getIntersection'](_0x18ff2b),_0x31cdc8));}const _0x185590=[];for(const [_0x4cb956,_0x4fa4ea]of _0x5df7be){const _0x1dee52=_0x336056(),_0x34265f={'key':_0x520774,'oldValue':_0x4fa4ea,'newValue':_0x1ae551};_0x520774['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':_0x520774});const _0x13a989=('attribute:'+(_0x520774+'|'+Vt({'newValue':_0x1ae551})))['substring'](0x0,0x3c),_0xfcf01d=this['_setSuggestionData']({'id':_0x1dee52,'type':_0x13a989,'data':_0x34265f,'createdAt':new Date(),'authorId':_0x4de21c,'attributes':_0x20982a});_0x185590['push'](_0xfcf01d),this['_addSuggestionMarker'](_0x13a989,_0x1dee52,_0x4de21c,_0x4cb956);}return _0x185590;}['enableDefaultAttributesIntegration'](_0x33dfd5){this['enableCommand'](_0x33dfd5,(_0x540ed5,..._0x58b060)=>{this['_recordAttributeChanges'](()=>{_0x540ed5(..._0x58b060);});});}['registerBlockAttribute'](_0x32ef77){this['_blockAttributeKeys']['add'](_0x32ef77);}['registerInlineAttribute'](_0x3c212e){this['_inlineAttributeKeys']['add'](_0x3c212e);}['_getAttributeKey'](_0x21459b){return'attribute'==_0x21459b['type']?_0x21459b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x397c2a,_0xdcfead){const _0x2e8659=_0x397c2a['getFirstMarker']();this['_model']['change'](_0x29ec2e=>{_0x29ec2e['updateMarker'](_0x2e8659,{'range':_0xdcfead});});}['_addThreadToSuggestion'](_0x15d19a){const _0x556fe6=_0x15d19a['id'],_0x5814f8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x556fe6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5814f8,'threadId':_0x556fe6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xc8d8dc=this['_commentsRepository']['getCommentThread'](_0x556fe6);_0xc8d8dc['unbind']('isRemovable'),_0xc8d8dc['isRemovable']=!0x1,_0x15d19a['commentThread']=_0xc8d8dc;}['_checkSuggestionCorrectness'](_0x29225c,_0x3aa50c,_0x4df569,_0x2ce09f){if(_0x29225c['type']!=_0x3aa50c||_0x29225c['subType']!=_0x4df569||_0x29225c['creator']['id']!=_0x2ce09f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4524f9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x413133,_0x4c3497){const _0x3ea554=_0x413133['getFirstRange']();if(_0x4c3497['isEqual'](_0x3ea554))_0x413133['removeMarkers']();else{if(_0x3ea554['containsRange'](_0x4c3497)){const _0x1c3ab3=this['_model']['createPositionAt'](_0x4c3497['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x413133,this['_model']['createRange'](_0x3ea554['start'],_0x1c3ab3));const _0x334be7=_0x336056(),_0x391e88=_0x413133['creator']['id'],_0x1b83e2=_0x413133['type']+':'+_0x413133['subType'];this['_setSuggestionData']({'id':_0x334be7,'type':_0x1b83e2,'createdAt':new Date(),'authorId':_0x391e88,'data':_0x413133['data'],'attributes':_0x413133['attributes']});const _0x4e4378=this['_model']['createPositionAt'](_0x4c3497['end']['parent'],'after'),_0x1c5346=this['_model']['createRange'](_0x4e4378,_0x3ea554['end']);this['_addSuggestionMarker'](_0x1b83e2,_0x334be7,_0x391e88,_0x1c5346);}else{if(_0x3ea554['containsPosition'](_0x4c3497['start'])){const _0x2a2563=this['_model']['createPositionAt'](_0x4c3497['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x413133,this['_model']['createRange'](_0x3ea554['start'],_0x2a2563));}else{const _0x4d916d=this['_model']['createPositionAt'](_0x4c3497['end']['parent'],'after');this['_setSuggestionRange'](_0x413133,this['_model']['createRange'](_0x4d916d,_0x3ea554['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1a89ce){for(const {suggestion:_0x14f346,meta:_0x1af70f}of this['_findSuggestions'](_0x1a89ce,'insertion')){if(!_0x1af70f['isOwn'])continue;const _0x2a4c7c=_0x14f346['getRanges']();for(const _0x193160 of _0x2a4c7c)if(!_0x1a89ce['getDifference'](_0x193160)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3dfc3d){const _0x1a8e41=this['editor']['plugins']['get']('Users')['getUser'](_0x3dfc3d);if(!_0x1a8e41)throw new _0x4524f9('track-changes-user-not-found',this);return _0x1a8e41;}['_getExternalAuthor'](_0x382362){const _0x2084ce=this['editor']['plugins']['get']('Users'),_0x405daa=_0x326b5a('external:'+_0x382362),_0x5e7cec=_0x2084ce['getUser'](_0x405daa);return _0x5e7cec||_0x2084ce['addUser']({'id':_0x405daa,'name':_0x382362});}['_createSuggestion'](_0x3bd472,_0x37e766,_0x5d6cb2,_0x2ab2fe,_0x82e028){const _0x92a1c4=this['_getAuthorFromId'](_0x2ab2fe),_0x5b0756=this['_suggestionFactory']['buildSuggestion'](_0x3bd472,_0x37e766,_0x5d6cb2,_0x92a1c4,_0x82e028,_0x2cd787=>{this['_updateSuggestionData'](_0x5d6cb2,{'attributes':_0x2cd787});const _0x2293ad=this['getSuggestion'](_0x5d6cb2);this['_joinWithAdjacentSuggestions'](new Set([_0x2293ad])),this['_refreshSuggestionsChain'](new Set([_0x2293ad]));});return this['listenTo'](_0x5b0756,'accept',()=>{this['_updateSuggestionData'](_0x5d6cb2,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5b0756,'discard',()=>{this['_updateSuggestionData'](_0x5d6cb2,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5d6cb2,_0x5b0756),this['_suggestionState']['set'](_0x5b0756,'notReady'),_0x5b0756;}['_splitMarkerName'](_0x427bfa){const _0x279c8e=_0x427bfa['split'](':');return{'group':_0x279c8e[0x0],'type':_0x279c8e[0x1],'subType':_0x279c8e['length']>=0x5?_0x279c8e[0x2]:null,'id':_0x279c8e['length']<0x5?_0x279c8e[0x2]:_0x279c8e[0x3],'authorId':_0x279c8e['length']<0x5?_0x279c8e[0x3]:_0x279c8e[0x4],'markerCount':0x6==_0x279c8e['length']?_0x279c8e[0x5]:null};}['_breakSuggestionMarker'](_0x4de28d,_0x19c8d7,_0x46cb8f){const _0x56b22b=_0x4de28d['getFirstRange'](),_0x1ea172=_0x56b22b['start'],_0x3e5901=_0x56b22b['end'];this['_setSuggestionRange'](_0x4de28d,this['_model']['createRange'](_0x1ea172,_0x19c8d7));const _0x35782a=_0x336056(),_0x11d0a7=_0x4de28d['creator']['id'],_0x1df632=_0x4de28d['type']+(_0x4de28d['subType']?':'+_0x4de28d['subType']:'');this['_setSuggestionData']({'id':_0x35782a,'type':_0x1df632,'createdAt':new Date(),'authorId':_0x11d0a7,'originalSuggestionId':_0x4de28d['id'],'attributes':_0x4de28d['attributes'],'data':_0x4de28d['data']});const _0x250e4a=this['_getAttributeKey'](_0x4de28d);('formatBlock'==_0x4de28d['type']||_0x250e4a&&this['_isBlockAttribute'](_0x250e4a))&&(_0x46cb8f=this['_model']['createPositionBefore'](_0x46cb8f['parent'])),this['_addSuggestionMarker'](_0x1df632,_0x35782a,_0x11d0a7,this['_model']['createRange'](_0x46cb8f,_0x3e5901));}['_findSuggestions'](_0x5d2645,_0x130d58=null){const _0x448464=[],_0xd8cdd0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5d2645)||(_0x5d2645=[_0x5d2645]);for(const _0x59b354 of this['getSuggestions']()){if(!_0x59b354['isInContent'])continue;if(_0x130d58&&_0x59b354['type']!=_0x130d58)continue;let _0x5c5b09=!0x1;for(const _0xb81126 of _0x59b354['getRanges']()){for(const _0x169b3d of _0x5d2645){const _0x42d250=_0x169b3d['start']['isEqual'](_0xb81126['end'])||_0x169b3d['end']['isEqual'](_0xb81126['start']);if(_0x42d250||_0x169b3d['getIntersection'](_0xb81126)){const _0x460e72=_0x169b3d['containsRange'](_0xb81126)&&Rt(this['_model']['schema'],_0xb81126['start'],_0x169b3d),_0x5d6d39=_0xb81126['containsRange'](_0x169b3d)&&Rt(this['_model']['schema'],_0x169b3d['start'],_0xb81126);_0x448464['push']({'suggestion':_0x59b354,'meta':{'isOwn':_0xd8cdd0==_0x59b354['author'],'isNextTo':_0x42d250,'isInsideObject':_0x460e72,'containsRangeInObject':_0x5d6d39}}),_0x5c5b09=!0x0;break;}}if(_0x5c5b09)break;}}return _0x448464;}['_addSuggestionMarker'](_0x1de231,_0x136a87,_0x5ef03b,_0x563435,_0x3f547e){this['_model']['change'](_0x1b22b9=>{let _0x3a6525='suggestion:'+_0x1de231+':'+_0x136a87+':'+_0x5ef03b;_0x3f547e&&(_0x3a6525=_0x3a6525+':'+_0x3f547e),_0x1b22b9['addMarker'](_0x3a6525,{'range':_0x563435,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xb0467){const _0x406fa7=_0xb0467['previous'],_0x3940e0=_0xb0467['next'];_0xb0467['previous']=null,_0xb0467['next']=null,null!=_0x406fa7&&_0x406fa7['next']==_0xb0467&&(_0x406fa7['next']=_0x3940e0),null!=_0x3940e0&&_0x3940e0['previous']==_0xb0467&&(_0x3940e0['previous']=_0x406fa7),'ready'==this['_suggestionState']['get'](_0xb0467)&&(this['_suggestionState']['set'](_0xb0467,'removed'),this['fire']('suggestionUnloaded',_0xb0467,_0x406fa7,_0x3940e0));}['_setSuggestionData'](_0x3fb1ec){const _0x402ec0=_0x3fb1ec['id'],_0xfbab43=this['addSuggestionData'](_0x3fb1ec);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x383f17=this['editor']['plugins']['get']('PendingActions'),_0x347771=_0xfbab43['hasComments'],_0x24f831=_0xfbab43['subType']?_0xfbab43['type']+':'+_0xfbab43['subType']:_0xfbab43['type'],_0x2c1c5f=this['editor']['locale'],_0x2fd29c=_0x383f17['add'](o(_0x2c1c5f,'PENDING_ACTION_SUGGESTION')),_0x50549b={'id':_0x402ec0,'type':_0x24f831,'hasComments':_0x347771,'data':_0x3fb1ec['data']||null,'originalSuggestionId':_0x3fb1ec['originalSuggestionId']||null,'attributes':_0xfbab43['attributes']};this['_adapter']['addSuggestion'](_0x50549b)['then'](_0x4b0a17=>{_0xfbab43['_saved']=!0x0,_0x383f17['remove'](_0x2fd29c),_0x4b0a17&&_0x4b0a17['createdAt']&&(this['_suggestions']['get'](_0x402ec0)['createdAt']=_0x4b0a17['createdAt']);})['catch'](_0x1a8467=>{throw _0x1c4769('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xfbab43['discard']();}),_0xfbab43['stopListening'](),this['_suggestions']['delete'](_0xfbab43['id']),this['_suggestionState']['delete'](_0xfbab43),_0x1a8467;});}return _0xfbab43;}['_isBlockAttribute'](_0x338318){return this['_blockAttributeKeys']['has'](_0x338318);}['_updateSuggestionData'](_0x45708a,_0x3819da){const _0x5922af=this['editor']['plugins']['get']('PendingActions'),_0x2f3365=this['getSuggestion'](_0x45708a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2f3365['_saved']){const _0x26afb2=_0x5922af['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x45708a,_0x3819da)['then'](()=>{_0x5922af['remove'](_0x26afb2);});}else _0x2f3365['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x45708a,_0x3819da);});}}['_getSuggestionData'](_0x190e5c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4524f9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x190e5c);}['_handleNewSuggestionMarker'](_0x303e63){const {id:_0x1c4c7a,type:_0x2722fc,subType:_0x5d8173,authorId:_0xca1427}=this['_splitMarkerName'](_0x303e63),_0x174641=this['_suggestions']['get'](_0x1c4c7a)||this['_createSuggestion'](_0x2722fc,_0x5d8173,_0x1c4c7a,_0xca1427,{});switch(this['_checkSuggestionCorrectness'](_0x174641,_0x2722fc,_0x5d8173,_0xca1427),this['_suggestionState']['get'](_0x174641)){case'notReady':this['_getSuggestionData'](_0x1c4c7a)['then'](_0x3bebf9=>{let _0x154856=Promise['resolve']();_0x3bebf9['hasComments']&&(_0x154856=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1c4c7a})),_0x154856['then'](()=>{this['addSuggestionData'](_0x3bebf9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x174641,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1c4c7a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x174641,'ready'),this['fire']('suggestionLoaded',_0x174641);break;case'ready':this['fire']('suggestionChanged',_0x174641);}return _0x174641['addMarkerName'](_0x303e63),_0x174641;}['_refreshSuggestionsChain'](_0x34a05d){const _0x2a9fe5=Array['from'](_0x34a05d),_0x16ad8b=_0x2a9fe5['filter'](_0x3b976d=>'attribute'==_0x3b976d['type']);this['_refreshAttributeSuggestionsChain'](_0x16ad8b);const _0x3a0247=_0x2a9fe5['filter'](_0xd8b287=>!_0xd8b287['isMultiRange']&&'attribute'!=_0xd8b287['type']),_0x2c02fe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40b181=>!_0x40b181['isMultiRange']&&'attribute'!=_0x40b181['type']),_0x91d6f8=_0x2c02fe['filter'](_0x2af0d3=>!_0x34a05d['has'](_0x2af0d3)),_0x20751e=new Map(_0x2c02fe['map'](_0xfca293=>[_0xfca293,this['_suggestionFactory']['getSuggestionCallback'](_0xfca293['type'],_0xfca293['subType'],'chain')])),_0x1d9915=new Map(_0x2c02fe['map'](_0x5e557a=>[_0x5e557a,_0x5e557a['getFirstRange']()])),_0x3818e2=new Set(),_0x1918c4=new Set();for(let _0x339c74=0x0;_0x339c74<_0x3a0247['length'];_0x339c74++)_0xcb3d84(_0x3a0247[_0x339c74],_0x3a0247,_0x339c74+0x1);for(let _0x59afde=0x0;_0x59afde<_0x3a0247['length'];_0x59afde++)_0xcb3d84(_0x3a0247[_0x59afde],_0x91d6f8,0x0);const _0x458be6=new Set();for(let _0x1fc3e7=0x0;_0x1fc3e7<_0x3a0247['length'];_0x1fc3e7++){const _0x2080c8=_0x3a0247[_0x1fc3e7];!_0x1918c4['has'](_0x2080c8)&&_0x2080c8['previous']&&(_0x458be6['add'](_0x2080c8['previous']),_0x2080c8['previous']['next']===_0x2080c8&&(_0x2080c8['previous']['next']=null),_0x2080c8['previous']=null),!_0x3818e2['has'](_0x2080c8)&&_0x2080c8['next']&&(_0x458be6['add'](_0x2080c8['next']),_0x2080c8['next']['previous']===_0x2080c8&&(_0x2080c8['next']['previous']=null),_0x2080c8['next']=null);}function _0xcb3d84(_0x5203da,_0x6fd37e,_0x48bf84){for(let _0x3d2b1f=_0x48bf84;_0x3d2b1f<_0x6fd37e['length'];_0x3d2b1f++){const _0x359f59=_0x136051(_0x5203da,_0x6fd37e[_0x3d2b1f]);_0x359f59&&(_0x359f59[0x0]['next']=_0x359f59[0x1],_0x359f59[0x1]['previous']=_0x359f59[0x0],_0x3818e2['add'](_0x359f59[0x0]),_0x1918c4['add'](_0x359f59[0x1]));}}function _0x136051(_0xcbaf17,_0x58ccc7){if(_0xcbaf17['author']['id']!==_0x58ccc7['author']['id'])return null;const _0x5266a8=_0x20751e['get'](_0xcbaf17)(_0xcbaf17,_0x58ccc7,_0x1d9915['get'](_0xcbaf17),_0x1d9915['get'](_0x58ccc7));if(!_0x5266a8)return null;return _0x20751e['get'](_0x58ccc7)(_0xcbaf17,_0x58ccc7,_0x1d9915['get'](_0xcbaf17),_0x1d9915['get'](_0x58ccc7))?_0x5266a8[0x1]['commentThread']&&_0x5266a8[0x1]['commentThread']['length']?null:_0x5266a8:null;}_0x458be6['size']&&this['_refreshSuggestionsChain'](_0x458be6);}['_refreshAttributeSuggestionsChain'](_0x9ea68a){if(0x0==_0x9ea68a['length'])return;const _0x3a394c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ad3a0=>'attribute'==_0x3ad3a0['type']&&_0x3ad3a0['_isDataLoaded']),_0x348c68=[],_0x91ad57=new Map();for(const _0x217899 of _0x3a394c){const _0x4fe768=_0x326b5a(_0x217899['attributes']);_0x91ad57['has'](_0x4fe768)||(_0x91ad57['set'](_0x4fe768,_0x348c68['length']),_0x348c68['push']([]));const _0x568a7d=_0x91ad57['get'](_0x4fe768);_0x348c68[_0x568a7d]['push'](_0x217899);}!(function(){_0x348c68['sort']((_0x19764b,_0x36a616)=>{const _0x573e51=_0x19764b[0x0]['createdAt'],_0x484724=_0x36a616[0x0]['createdAt'];return _0x573e51==_0x484724?_0x19764b[0x0]['attributes']['groupId']<_0x36a616[0x0]['attributes']['groupId']?-0x1:0x1:_0x573e51<_0x484724?-0x1:0x1;});for(const _0xaaf6e7 of _0x348c68)_0xaaf6e7['sort']((_0x266304,_0x55f817)=>_0x266304['id']<_0x55f817['id']?-0x1:0x1);}());for(let _0x5d1025=0x0;_0x5d1025<_0x348c68['length'];_0x5d1025++){if(0x0==_0x348c68[_0x5d1025]['length'])continue;const _0x4def2e=[];for(let _0x3cc0b0=_0x5d1025+0x1;_0x3cc0b0<_0x348c68['length'];_0x3cc0b0++)0x0!=_0x348c68[_0x3cc0b0]['length']&&_0x3b6634(_0x348c68[_0x5d1025],_0x348c68[_0x3cc0b0])&&_0x4def2e['push'](_0x3cc0b0);for(const _0x118eb1 of _0x4def2e)_0x348c68[_0x5d1025]=_0x348c68[_0x5d1025]['concat'](_0x348c68[_0x118eb1]),_0x348c68[_0x118eb1]=[];}for(const _0x54c0d1 of _0x348c68)for(let _0x374b51=0x0;_0x374b51<_0x54c0d1['length'];_0x374b51++)_0x54c0d1[_0x374b51]['next']=_0x54c0d1[_0x374b51+0x1]||null;for(const _0x3adc46 of _0x348c68)for(let _0x1d6ec5=0x0;_0x1d6ec5<_0x3adc46['length'];_0x1d6ec5++)_0x3adc46[_0x1d6ec5]['previous']=_0x3adc46[_0x1d6ec5-0x1]||null;function _0x3b6634(_0x5da374,_0x11b0e9){if(_0x5da374[0x0]['attributes']['groupId']!==_0x11b0e9[0x0]['attributes']['groupId']&&_0x5da374[0x0]['author']!==_0x11b0e9[0x0]['author'])return!0x1;if(!function(_0x3733c3,_0x42d4be){if(!_0x3733c3['hasComments']&&!_0x42d4be['hasComments'])return!0x0;if(_0x3733c3['hasComments']&&_0x42d4be['hasComments'])return!0x1;if(_0x3733c3['hasComments']&&_0x42d4be['createdAt']<_0x3733c3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x42d4be['hasComments']&&_0x3733c3['createdAt']<_0x42d4be['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5da374[0x0],_0x11b0e9[0x0]))return!0x1;const _0xf97d5d=Bt(_0x5da374[0x0]['attributes'],'groupId'),_0x3b0549=Bt(_0x11b0e9[0x0]['attributes'],'groupId');if(!_0x5767df(_0xf97d5d,_0x3b0549))return!0x1;return!!_0x5da374['every'](_0x4cf472=>_0x11b0e9['some'](_0x4195a2=>_0x4cf472['getFirstRange']()['isEqual'](_0x4195a2['getFirstRange']())))&&_0x11b0e9['every'](_0x218762=>_0x5da374['some'](_0x3ef741=>_0x218762['getFirstRange']()['isEqual'](_0x3ef741['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x41f594){const _0x87c401=Array['from'](_0x41f594),_0x5064d3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5c2fc0=_0x5064d3['filter'](_0x294da4=>!_0x41f594['has'](_0x294da4)),_0x293587=new Map(_0x87c401['map'](_0x210896=>[_0x210896,this['_suggestionFactory']['getSuggestionCallback'](_0x210896['type'],_0x210896['subType'],'join')])),_0x8a172b=new Map(_0x5064d3['map'](_0x3b1d5f=>[_0x3b1d5f,_0x3b1d5f['getRanges']()]));for(let _0x19c010=0x0;_0x19c010<_0x87c401['length'];_0x19c010++){if(_0x1ac8c4(this,_0x87c401[_0x19c010],_0x87c401,_0x19c010+0x1))return!0x0;}for(let _0x486856=0x0;_0x486856<_0x87c401['length'];_0x486856++){if(_0x1ac8c4(this,_0x87c401[_0x486856],_0x5c2fc0,0x0))return!0x0;}return!0x1;function _0x1ac8c4(_0x456e16,_0x5994c2,_0x5bce25,_0x4959c6){for(let _0x1a1810=_0x4959c6;_0x1a1810<_0x5bce25['length'];_0x1a1810++){const _0x760d59=_0x5bce25[_0x1a1810];if(_0x760d59['type']!==_0x5994c2['type']||_0x760d59['author']['id']!==_0x5994c2['author']['id']||_0x760d59['subType']!==_0x5994c2['subType'])continue;if(!Pt(_0x5994c2,_0x760d59,['groupId']))continue;if('attribute'==_0x5994c2['type']&&_0x5994c2['data']['oldValue']!=_0x760d59['data']['oldValue'])continue;if('attribute'==_0x5994c2['type']&&_0x456e16['_isBlockAttribute'](_0x5994c2['data']['key']))continue;if('formatBlock'==_0x5994c2['type']){const _0x4d43eb=_0x456e16['editor']['model'],_0x5b4c66=_0x5994c2['getContainedElement']();if(_0x5b4c66&&(_0x4d43eb['schema']['isObject'](_0x5b4c66)||_0x4d43eb['schema']['isLimit'](_0x5b4c66)))continue;}const _0x36d453=_0x293587['get'](_0x5994c2),_0x31d5d4=_0x8a172b['get'](_0x5994c2),_0x40a692=_0x8a172b['get'](_0x760d59),_0x37db13=_0x5994c2['commentThread']&&_0x5994c2['commentThread']['length'],_0x2a8b84=_0x760d59['commentThread']&&_0x760d59['commentThread']['length'];if(!_0x37db13&&_0x36d453(_0x40a692,_0x31d5d4))return _0x456e16['_joinSuggestions'](_0x760d59,_0x5994c2),_0x8a172b['delete'](_0x5994c2),!0x0;if(!_0x2a8b84&&_0x36d453(_0x31d5d4,_0x40a692))return _0x456e16['_joinSuggestions'](_0x5994c2,_0x760d59),_0x8a172b['delete'](_0x760d59),!0x0;}return!0x1;}}['_joinSuggestions'](_0x582d48,_0x192ac1){if(_0x582d48['isMultiRange']){for(const _0x1d4ef7 of _0x192ac1['getRanges']())_0x582d48['addRange'](_0x1d4ef7);}else{const _0x1212eb=_0x192ac1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x582d48,this['_model']['createRange'](_0x582d48['getFirstRange']()['start'],_0x1212eb));}_0x192ac1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x257a3a,_0xcc8a51){const _0x415d28=_0x257a3a['startsWith']('format')||_0x257a3a['startsWith']('attribute')?'FORMATTING':_0x257a3a['toUpperCase']();return o(this['editor']['locale'],_0xcc8a51+'_'+_0x415d28+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x1389b3=this['editor'];if(!_0x1389b3['ui'])return;const {ariaLiveAnnouncer:_0x3968b1}=_0x1389b3['ui'];_0x59f9db(this['_model'],({left:_0x54631c,entered:_0x24e4a1})=>{for(const _0x36e136 of _0x54631c){const {group:_0x34c31b,type:_0x390a07}=this['_splitMarkerName'](_0x36e136['name']);if('suggestion'===_0x34c31b){_0x3968b1['announce'](this['_getMarkerAnnouncementText'](_0x390a07,'LEAVE'));break;}}for(const _0x136a3c of _0x24e4a1){const {group:_0x2a52f8,type:_0x29906b}=this['_splitMarkerName'](_0x136a3c['name']);if('suggestion'===_0x2a52f8){_0x3968b1['announce'](this['_getMarkerAnnouncementText'](_0x29906b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x294b76){if(this['_recordAttributeSuggestions'])return!0x1;const _0x8c31e8=this['editor'],_0x53b3ee=_0x8c31e8['model']['document']['differ']['getChanges']();if(0x0==_0x53b3ee['length'])return!0x1;const _0x1a5d17=[],_0xaf9fb6=_0x53b3ee['filter'](_0x58cba0=>'attribute'==_0x58cba0['type']),_0x19c3c7=_0x53b3ee['filter'](_0x2fa01c=>'insert'==_0x2fa01c['type']&&'$text'!=_0x2fa01c['name']),_0x1297ed=_0x53b3ee['filter'](_0xff1e62=>'remove'==_0xff1e62['type']&&'$text'!=_0xff1e62['name']);for(const _0x247268 of _0xaf9fb6)_0x1a5d17['push']({'key':_0x247268['attributeKey'],'newValue':_0x247268['attributeNewValue'],'oldValue':_0x247268['attributeOldValue'],'range':Ot(_0x247268['range'],_0x8c31e8['model'])});for(const _0xcebfa7 of _0x19c3c7){const _0x1a2a31=_0x1297ed['find'](_0x1466c9=>_0x1466c9['position']['isEqual'](_0xcebfa7['position']));_0x1a2a31&&_0x1a5d17['push']({'key':m,'newValue':_0xcebfa7['name'],'oldValue':_0x1a2a31['name'],'range':_0x8c31e8['model']['createRangeOn'](_0xcebfa7['position']['nodeAfter'])});}return 0x0!=_0x1a5d17['length']&&this['_reduceExistingSuggestions'](_0x294b76,_0x1a5d17);}['_processAttributeSuggestions'](_0x3a9017){let _0x95ee0c=!0x1;const _0x2efa36=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26b715=>_0x26b715['data']['newRange']&&_0x26b715['name']['startsWith']('suggestion:attribute:'));for(const _0x53224d of _0x2efa36){const {subType:_0x1c52d0,id:_0x17557a}=this['_splitMarkerName'](_0x53224d['name']),_0x15383f=_0x1c52d0['split']('|')[0x0];for(const _0x18235a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x18235a['id']!=_0x17557a&&'attribute'==_0x18235a['type']&&_0x18235a['data']&&_0x18235a['data']['key']==_0x15383f&&_0x18235a['getFirstRange']()['isIntersecting'](_0x53224d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x18235a,_0x53224d['data']['newRange'],_0x3a9017),_0x95ee0c=!0x0);}return _0x95ee0c;}['_recordAttributeChanges'](_0x14e4b3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x14e4b3();}['_isRegisteredAttribute'](_0x4fbdf8){const _0x4483d1=this['_isBlockAttribute'](_0x4fbdf8),_0x2ec8f8=this['_inlineAttributeKeys']['has'](_0x4fbdf8);return _0x4483d1||_0x2ec8f8;}['_reduceExistingSuggestions'](_0x25280c,_0xcbcc80){if(0x0==_0xcbcc80['length'])return!0x1;let _0x1353e4=!0x1;for(const _0x2c45c1 of _0xcbcc80){const _0x289a12=this['_findSuggestions'](_0x2c45c1['range'],'attribute')['filter'](_0x134a85=>!_0x134a85['meta']['isNextTo'])['map'](_0x3e4738=>_0x3e4738['suggestion']),_0x565923=_0x326b5a({'newValue':_0x2c45c1['newValue']});_0x289a12['filter'](_0x405765=>{const [_0x2f2ada,_0x26a004]=_0x405765['subType']['split']('|');return _0x2f2ada==_0x2c45c1['key']&&_0x26a004!=_0x565923;})['forEach'](_0x5aba5a=>{this['_reduceSuggestionAttributeRange'](_0x5aba5a,_0x2c45c1['range'],_0x25280c),_0x1353e4=!0x0;});}return _0x1353e4;}['_reduceSuggestionAttributeRange'](_0x3678fd,_0x2b3016,_0x1af2cf){const _0x54165b=_0x3678fd['getFirstRange']()['getDifference'](_0x2b3016);0x0!==_0x54165b['length']?0x1!==_0x54165b['length']?this['_breakSuggestionMarker'](_0x3678fd,_0x2b3016['start'],_0x2b3016['end']):this['_setSuggestionRange'](_0x3678fd,_0x54165b[0x0]):_0x1af2cf['removeMarker'](_0x3678fd['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x32fa0c){this['_editor']=_0x32fa0c,this['_model']=_0x32fa0c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xbb7109,_0x33a8ee,_0x42c17f,_0x19c640,_0x68fb65,_0x58265e){return new u(this['_model'],{'type':_0xbb7109,'subType':_0x33a8ee,'id':_0x42c17f,'author':_0x19c640,'creator':_0x19c640,'attributes':_0x68fb65,'onAttributesChange':_0x58265e,'onAccept':(..._0x175135)=>this['getSuggestionCallback'](_0xbb7109,_0x33a8ee,'accept')(..._0x175135),'onDiscard':(..._0x4603af)=>this['getSuggestionCallback'](_0xbb7109,_0x33a8ee,'discard')(..._0x4603af)});}['registerCustomCallback'](_0x383660,_0x350eb3,_0x171329,_0x35ddd8){const _0x282f2a=_0x383660+':'+_0x350eb3+':'+_0x171329;this['_customCallbacks']['set'](_0x282f2a,_0x35ddd8);}['getSuggestionCallback'](_0x38a002,_0x480e09,_0x121934){const _0x5849a3=_0x38a002+':'+_0x480e09+':'+_0x121934;return this['_customCallbacks']['get'](_0x5849a3)||this['_defaultCallbacks']['get'](_0x38a002+':'+_0x121934);}['_registerDefaultCallbacks'](){const _0x4409b9=()=>!0x1,_0x16644c=_0x2842b4=>{_0x2842b4['sort']((_0x4ab892,_0x2ff355)=>_0x4ab892['start']['isBefore'](_0x2ff355['start'])?0x1:-0x1),this['_model']['change'](_0x91db59=>{for(const _0x433c49 of _0x2842b4){let _0x6e256;_0x6e256=_0x433c49['end']['isAtEnd']&&_0x433c49['end']['parent']==_0x433c49['start']['nodeAfter']?_0x91db59['createSelection'](_0x433c49['start']['nodeAfter'],'on'):_0x91db59['createSelection'](_0x433c49),this['_model']['deleteContent'](_0x6e256,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4d3713=(_0x4d68e8,_0x2820bb)=>{_0x2820bb&&this['_model']['change'](_0x7a0c2b=>{const {commandName:_0x471f3c,commandParams:_0x59b6ca=[]}=_0x2820bb,_0x13afb5=_0x4d68e8['map'](_0x1f4195=>(Tt(_0x1f4195)&&(_0x1f4195=this['_model']['createRange'](_0x1f4195['end'])),_0x1f4195))['filter'](_0x35cbf9=>'$graveyard'!==_0x35cbf9['root']['rootName']);if(_0x13afb5['length']<0x1)return;const _0x2c1136=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b8a4f=>_0x424176['fromRange'](_0x3b8a4f));_0x7a0c2b['setSelection'](_0x13afb5);for(const _0x40559b of this['_editor']['commands']['commands']())_0x40559b['refresh']();_0x59b6ca['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x471f3c,..._0x59b6ca);const _0x5a56ac=_0x2c1136['filter'](_0x31ed57=>'$graveyard'!=_0x31ed57['root']['rootName']);_0x5a56ac['length']>0x0&&_0x7a0c2b['setSelection'](_0x5a56ac);for(const _0x238dd8 of _0x2c1136)_0x238dd8['detach']();});},_0x3829a3=(_0x41056e,_0x561149)=>0x1==_0x41056e['length']&&0x1==_0x561149['length']&&_0x41056e[0x0]['end']['isEqual'](_0x561149[0x0]['start']),_0x28ae0d=(_0x1b565e,_0x392da5,_0x28e165,_0x50d061)=>Ft(_0x1b565e,_0x392da5,_0x28e165,_0x50d061,this['_model'])?[_0x1b565e,_0x392da5]:Ft(_0x392da5,_0x1b565e,_0x50d061,_0x28e165,this['_model'])?[_0x392da5,_0x1b565e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4409b9),this['_defaultCallbacks']['set']('insertion:discard',_0x16644c),this['_defaultCallbacks']['set']('insertion:join',_0x3829a3),this['_defaultCallbacks']['set']('insertion:chain',_0x28ae0d),this['_defaultCallbacks']['set']('deletion:accept',_0x16644c),this['_defaultCallbacks']['set']('deletion:discard',_0x4409b9),this['_defaultCallbacks']['set']('deletion:join',_0x3829a3),this['_defaultCallbacks']['set']('deletion:chain',_0x28ae0d),this['_defaultCallbacks']['set']('formatInline:accept',_0x4d3713),this['_defaultCallbacks']['set']('formatInline:discard',_0x4409b9),this['_defaultCallbacks']['set']('formatInline:join',_0x3829a3),this['_defaultCallbacks']['set']('formatInline:chain',_0x4409b9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4d3713),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4409b9),this['_defaultCallbacks']['set']('formatBlock:join',_0x3829a3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4409b9),this['_defaultCallbacks']['set']('attribute:accept',_0x4409b9),this['_defaultCallbacks']['set']('attribute:discard',(_0x56842f,_0x5684a7)=>{if(!_0x5684a7)return;const _0x390472=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2fd8dd=>{if(_0x5684a7['key']==m)for(const _0x33e382 of _0x56842f){const _0x2164d4=_0x33e382['start']['nodeAfter'],_0x327b0e=_0x5684a7['oldValue'];_0x2fd8dd['rename'](_0x2164d4,_0x327b0e);}else{if(_0x390472['_isBlockAttribute'](_0x5684a7['key'])){for(const _0x543486 of _0x56842f)void 0x0!==_0x5684a7['oldValue']?_0x2fd8dd['setAttribute'](_0x5684a7['key'],_0x5684a7['oldValue'],_0x543486['start']['nodeAfter']):_0x2fd8dd['removeAttribute'](_0x5684a7['key'],_0x543486['start']['nodeAfter']);}else{for(const _0x5323d6 of _0x56842f)_0x5684a7['oldValue']?_0x2fd8dd['setAttribute'](_0x5684a7['key'],_0x5684a7['oldValue'],_0x5323d6):_0x2fd8dd['removeAttribute'](_0x5684a7['key'],_0x5323d6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3829a3);}}function Rt(_0x40728a,_0x36dd4e,_0x2bd038){for(const _0x3b6885 of _0x36dd4e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3b6885['root']==_0x3b6885)return!0x1;if(!_0x2bd038['containsItem'](_0x3b6885))return!0x1;if(_0x40728a['isObject'](_0x3b6885)||_0x40728a['isLimit'](_0x3b6885))return!0x0;}return!0x1;}function Tt(_0x3f7aa1){return _0x3f7aa1['end']['parent']==_0x3f7aa1['start']['nodeAfter']&&_0x3f7aa1['end']['isAtStart'];}function Et(_0x3b5b4c,_0x145c22,_0x319c1e,_0x5be46d){const _0x2b4f67=_0x1904c1=>!_0x1904c1['item']['is']('$textProxy')&&!_0x5be46d['isObject'](_0x1904c1['item']),_0x11a21a=_0x3b5b4c['start']['getLastMatchingPosition'](_0x2b4f67),_0x964713=_0x3b5b4c['end']['getLastMatchingPosition'](_0x2b4f67,{'direction':'backward'});return(!_0x3b5b4c['start']['isEqual'](_0x11a21a)||!_0x3b5b4c['end']['isEqual'](_0x964713))&&(_0x11a21a['isBefore'](_0x964713)?_0x319c1e['updateMarker'](_0x145c22,{'range':_0x319c1e['createRange'](_0x11a21a,_0x964713)}):_0x319c1e['removeMarker'](_0x145c22),!0x0);}function Vt(_0x1d0e94){return _0x326b5a(_0x1d0e94);}function Ut(_0x1b42a4){const _0x5a9279=_0x1b42a4['start']['nodeAfter'];return _0x5a9279&&_0x5a9279['is']('element');}function Ot(_0x4cddfc,_0x25addf){return null==_0x4cddfc['end']['nodeBefore']&&_0x4cddfc['end']['parent']==_0x4cddfc['start']['nodeAfter']?Gt(_0x4cddfc['start']['nodeAfter'],_0x25addf):_0x4cddfc;}function Gt(_0x1164e0,_0x2bfc67){const _0x29ed5a=_0x2bfc67['schema']['isObject'](_0x1164e0)||_0x2bfc67['schema']['isSelectable'](_0x1164e0);return _0x2bfc67['createRange'](_0x2bfc67['createPositionAt'](_0x1164e0,'before'),_0x29ed5a?_0x2bfc67['createPositionAfter'](_0x1164e0):_0x2bfc67['createPositionAt'](_0x1164e0,'end'));}function Ft(_0xa31486,_0x385394,_0x16a058,_0x3814ea,_0x5cc4e4){if(!Pt(_0xa31486,_0x385394))return!0x1;if(_0x16a058['end']['isEqual'](_0x3814ea['start']))return!0x0;if(_0xa31486['type']!=_0x385394['type'])return!0x1;if(!_0x16a058['end']['isTouching'](_0x3814ea['start']))return!0x1;const _0x59902a=_0x5cc4e4['createRange'](_0x16a058['end'],_0x3814ea['start'])['getWalker']();for(const _0x221d95 of _0x59902a)if(['elementStart','elementEnd']['includes'](_0x221d95['type'])&&_0x5cc4e4['schema']['isLimit'](_0x221d95['item']))return!0x1;return!0x0;}function Pt(_0x2d43b9,_0xfd1b5e,_0x4234ef=[]){return!(!_0x2d43b9['_isDataLoaded']||!_0xfd1b5e['_isDataLoaded'])&&_0x5767df(Bt(_0x2d43b9['attributes'],_0x4234ef),Bt(_0xfd1b5e['attributes'],_0x4234ef));}function Lt(_0x517347,_0x3d0811){const _0x52c1d1=Ht(_0x517347['attributes']),_0x2d35ad=Ht(_0x3d0811);if(!_0x517347['_isDataLoaded'])return!0x1;for(const _0x3f24a9 of Object['keys'](_0x2d35ad))if(!_0x5767df(_0x52c1d1[_0x3f24a9],_0x2d35ad[_0x3f24a9]))return!0x1;return!0x0;}function Ht(_0x43281f){const _0x38521a=Object['assign']({},_0x43281f);return delete _0x38521a['skipNestingCheck'],delete _0x38521a['tablePasteChainId'],_0x38521a;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4fa93a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3c397a,_0xe4ad88,_0x266dd2,_0x590f6e){super(),this['model']=_0xe4ad88,this['view']=_0x266dd2,this['commentThreadController']=_0x590f6e,this['_editor']=_0x3c397a,this['_acceptCommand']=_0x3c397a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3c397a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x82e76f,_0x2a4cec)=>_0x82e76f||_0x2a4cec),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5992cf=>_0x5992cf&&this['_editor']['model']['canEditAt'](_0xe4ad88['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4079e6=>_0x4079e6&&this['_editor']['model']['canEditAt'](_0xe4ad88['getRanges']())),this['_pendingAction']=null,_0x266dd2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x266dd2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x266dd2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x266dd2,'change:isDirty',()=>{_0x266dd2['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 _0x1444d2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1444d2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x385a1{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x36323c,_0x35977d,_0x1703cf,_0x1347cb){super(_0x36323c),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x35977d['authoredAt']),this['bind']('authoredAt')['to'](_0x35977d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x35977d,this['_localUser']=_0x1703cf,this['_config']=_0x1347cb,_0x1347cb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2f35ad}=this['_config'];this['commentsListView']=new _0x2f35ad(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',_0x3b0dbf=>_0x3b0dbf+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5bf06b,_0x2c865a)=>_0x5bf06b||!!_0x2c865a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1bc757}=this['_config'],_0xd9d7a1=new _0x1bc757(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x14bd39=_0xd9d7a1['commentInputView'];return _0xd9d7a1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x14bd39,'value',(_0x312b23,_0x652646,_0x2dfa92)=>!!_0x2dfa92||_0x312b23&&!_0x652646),_0x14bd39['on']('submit',(_0x56c748,_0x1b1d80)=>{this['fire']('addComment',_0x1b1d80),_0x14bd39['editor']['setData']('');}),_0x14bd39['on']('cancel',()=>this['focus']()),_0x14bd39['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xd9d7a1;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x3a8125,_0x3670af,_0x303a6a,_0x46d103){super(_0x3a8125,_0x3670af,_0x303a6a,_0x46d103),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2cde4c=>_0x2cde4c&&_0x2cde4c[0x0]?_0x2cde4c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x174ce8,_0x3104cb)=>{let _0x13ef1a='';for(const _0x265de7 of _0x174ce8)_0x13ef1a+='<p>'+ds(_0x265de7['content'],_0x265de7['color'])+'</p>';return _0x3104cb?_0x13ef1a:_0x1f62ea(_0x13ef1a,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x3a8125,'Accept\x20suggestion'),_0x1d4a10['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x3a8125,'Discard\x20suggestion'),_0x1d4a10['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1ff3e0(_0x3a8125,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4a0ff7=this['bindTemplate'],_0x4a3e7a=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x4a0ff7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4a0ff7['to']('authoredAt',_0x263590=>this['_config']['formatDateTime'](_0x263590))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x4a3e7a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5dd37e={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4a0ff7['if']('isActive','ck-suggestion-wrapper--active'),_0x4a0ff7['to']('type',_0x4ed623=>'ck-suggestion-'+_0x4ed623),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x4a3e7a}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5dd37e['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x5dd37e;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2c9365,_0x5caa5a,_0x1d1c96)=>{this['_descriptionElement']['innerHTML']=_0x1d1c96;});}['_createButton'](_0x69f2a2,_0x15d3f7,_0x15f584,_0x3115d3,_0x5ef583){const _0x31ce59=new _0x3786c0(this['locale']);return _0x31ce59['set']({'label':_0x69f2a2,'icon':_0x15d3f7,'tooltip':!0x0,'tooltipPosition':_0x5ef583}),_0x31ce59['extendTemplate']({'attributes':{'class':_0x15f584}}),_0x31ce59['on']('execute',()=>{this['fire'](_0x3115d3,this['_model']['id']);}),_0x31ce59;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x33cddf,_0x321541){let _0x27c180='';return _0x27c180+=_0x33cddf['split']('*')['map']((_0x3ddf52,_0x2b19ce)=>_0x2b19ce%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x3ddf52)+'</span>':us(_0x3ddf52))['join'](''),_0x321541&&(_0x27c180+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x321541['value']+'\x22\x20title=\x22'+_0x321541['title']+'\x22></span>'),_0x27c180;}function us(_0x26dced){const _0x58242e=document['createElement']('span');return _0x58242e['innerText']=_0x26dced,_0x58242e['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x470f93{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x26cba0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x232d2a){super(_0x232d2a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x45db98=this['editor']['config'];_0x45db98['define']('trackChanges.SuggestionThreadView',ne),_0x45db98['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x45db98['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xe2eebd,_0x2894c5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5d9401,_0x419814]of this['_handleControllerBuffer']){const _0x45c503=this['_suggestionToController']['has'](_0x5d9401);_0x45c503||_0x419814?_0x45c503&&_0x419814&&this['_destroyController'](_0x5d9401):this['_initializeController'](_0x5d9401);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xe2eebd,_0x2894c5);}['init'](){const _0x3e2adb=this['editor'],_0x32b871=_0x3e2adb['plugins']['get']('TrackChangesEditing'),_0x349a71=_0x3e2adb['plugins']['get']('Annotations'),_0x276aa3=_0x3e2adb['plugins']['get']('EditorAnnotations'),_0x246eb8=_0x3e2adb['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x276aa3['addSourceCollector'](()=>{const _0x47ec70=[];for(const [_0x2b780c,_0x5b540a]of Array['from'](this['_suggestionToController'])){const _0xe3d6c9=_0x2b780c['getAllAdjacentSuggestions'](),_0x5d16da=[];for(const _0x393639 of _0xe3d6c9){if(!_0x393639['isInContent'])continue;if(_0x393639['isMultiRange']){_0x5d16da['push'](..._0x393639['getRanges']());continue;}const _0x34aa6e=_0x393639['getFirstRange']();if(_0x5d16da['length']>0x0){const _0x66512b=_0x5d16da[0x0]['getJoined'](_0x34aa6e);if(_0x66512b){_0x5d16da[0x0]=_0x66512b;continue;}}_0x5d16da['push'](_0x34aa6e);}_0x47ec70['push']([_0x5b540a['view'],_0x5d16da]);}return _0x47ec70;}),this['listenTo'](_0x32b871,'suggestionLoaded',(_0x45f6a7,_0x2102c6)=>{this['listenTo'](_0x2102c6,'change:previous',(_0xd44b08,_0x463ab6,_0x1d8b1d,_0x5a2d0f)=>{_0x2102c6['isInContent']&&(null==_0x1d8b1d?(this['_updateController'](_0x5a2d0f['head']),this['_handleSuggestionControllerDelayed'](_0x2102c6,!0x1)):(this['_updateController'](_0x1d8b1d['head']),null==_0x5a2d0f&&this['_handleSuggestionControllerDelayed'](_0x2102c6,!0x0)));}),null!==_0x2102c6['previous']?this['_updateController'](_0x2102c6['head']):this['_handleSuggestionControllerDelayed'](_0x2102c6,!0x1);}),this['listenTo'](_0x32b871,'suggestionUnloaded',(_0x363ad7,_0x231323,_0x438430)=>{this['stopListening'](_0x231323,'change:previous'),this['_handleControllerBuffer']['delete'](_0x231323),this['_suggestionToController']['has'](_0x231323)&&this['_destroyController'](_0x231323),_0x438430&&this['_updateController'](_0x438430['head']);}),this['listenTo'](_0x32b871,'suggestionChanged',(_0x510f1d,_0x3110cd)=>{this['_updateController'](_0x3110cd);}),this['listenTo'](_0x349a71,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x246eb8,'addComment',(_0x7ef4b2,{threadId:_0x44da40,isFromAdapter:_0x419250})=>{if(_0x419250||!_0x32b871['hasSuggestion'](_0x44da40))return;const _0x1f1786=_0x32b871['getSuggestion'](_0x44da40);this['_suggestionToController']['get'](_0x1f1786)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5916b8=this['editor']['plugins']['get']('Annotations'),_0x3d2b2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dd428=Array['from'](_0x5916b8['activeAnnotations'],_0x308ecd=>_0x308ecd['innerView'])['filter'](_0x37cb32=>this['_viewToController']['has'](_0x37cb32)),_0x1f282e=[];for(const _0x403c23 of _0x3dd428){const _0x2bc537=this['_viewToController']['get'](_0x403c23)['model']['getAllAdjacentSuggestions']();_0x1f282e['push'](..._0x2bc537['reduce']((_0x554ff3,_0x4f2af3)=>[..._0x554ff3,..._0x4f2af3['getMarkerNames']()],[]));}_0x3d2b2e['activeMarkers']=_0x1f282e;}['_addUIComponentsToFactory'](){const _0x26faf5=this['editor'],_0x1816ba=_0x26faf5['locale'],_0x20ca65=o(_0x1816ba,'Track\x20changes'),_0x459de1=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x20ca65,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1816ba,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1816ba,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1816ba,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1816ba,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x305d56 of _0x459de1)if(ae(_0x305d56)){const _0x3bbfe3=_0x26faf5['commands']['get'](_0x305d56['model']['commandName']);_0x305d56['model']['bind']('isOn','isEnabled')['to'](_0x3bbfe3,'value','isEnabled');}_0x26faf5['ui']['componentFactory']['add']('trackChanges',_0x2a8024=>this['_createToolbarButton'](_0x2a8024,_0x459de1,_0x20ca65)),_0x26faf5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4d526b=>this['_createMenuBarMenu'](_0x4d526b,_0x459de1,_0x20ca65));}['_createToolbarButton'](_0x3f8abb,_0x4dbf32,_0x412343){const _0x12760d=zt(_0x3f8abb,Zt),_0x218f90=this['editor']['commands']['get']('trackChanges');_0x12760d['buttonView']['set']({'tooltip':_0x412343,'label':_0x412343,'icon':ie}),_0x12760d['buttonView']['bind']('isOn')['to'](_0x218f90,'value'),_0x12760d['buttonView']['on']('execute',()=>{_0x218f90['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x12760d,_0x4dbf32,{'role':'menu'});const _0x3427bc=[];for(const _0x4e1b56 of _0x4dbf32)ae(_0x4e1b56)&&_0x3427bc['push'](this['editor']['commands']['get'](_0x4e1b56['model']['commandName']));const _0x5b6e78=_0x12760d['buttonView'];return _0x5b6e78['actionView']['unbind']('isEnabled'),_0x5b6e78['arrowView']['unbind']('isEnabled'),_0x5b6e78['actionView']['bind']('isEnabled')['to'](_0x218f90,'isEnabled'),_0x5b6e78['arrowView']['bind']('isEnabled')['toMany'](_0x3427bc,'isEnabled',(..._0x435bb6)=>_0x435bb6['some'](_0x1a7e9c=>_0x1a7e9c)),_0x12760d['on']('execute',_0x2ac7f6=>{this['editor']['execute'](_0x2ac7f6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12760d;}['_createMenuBarMenu'](_0x53b8a7,_0x37b1be,_0x75f6a4){const _0x74a154=new Kt(_0x53b8a7),_0x2d17fc=this['editor']['commands']['get']('trackChanges');_0x74a154['buttonView']['set']({'label':_0x75f6a4,'icon':ie});const _0x243e4a=new Qt(_0x53b8a7);for(const _0x177fd0 of _0x37b1be){if('separator'==_0x177fd0['type']){_0x243e4a['items']['add'](new Jt(_0x53b8a7));continue;}const _0x43cbcb=new Xt(_0x53b8a7,_0x74a154),_0x2769cd=new Yt(_0x53b8a7),_0x2c4e01=_0x177fd0['model'];_0x2769cd['bind'](...Object['keys'](_0x2c4e01))['to'](_0x2c4e01),_0x2769cd['delegate']('execute')['to'](_0x74a154),_0x2769cd['on']('execute',()=>{this['editor']['execute'](_0x2c4e01['commandName']),this['editor']['editing']['view']['focus']();}),_0x43cbcb['children']['add'](_0x2769cd),_0x243e4a['items']['add'](_0x43cbcb);}return _0x74a154['bind']('isEnabled')['to'](_0x2d17fc,'isEnabled'),_0x74a154['panelView']['children']['add'](_0x243e4a),_0x74a154;}['_initializeController'](_0x35aded){const _0xb85fd9=this['editor'],_0x1c95fb=_0xb85fd9['config'],_0x37ed11=_0xb85fd9['plugins']['get']('Annotations'),_0x369797=_0xb85fd9['plugins']['get']('CommentsRepository'),_0x48d30f=_0xb85fd9['plugins']['get']('EditorAnnotations'),_0x28033d=_0xb85fd9['plugins']['get'](_0x26cba0)['me'],_0x3cb5ab=_0x1c95fb['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x8f2f61,CommentThreadInputView:_0x4d1cdb}=_0xb85fd9['plugins']['get']('CommentsUI');let _0x4b2f20,_0x15215c;this['_annotationViews']['has'](_0x35aded['id'])?(_0x15215c=this['_annotationViews']['get'](_0x35aded['id']),_0x4b2f20=_0x15215c['mainView']):(_0x4b2f20=new _0x3cb5ab(_0xb85fd9['locale'],_0x35aded,_0x28033d,{'disableComments':this['_disableComments'],'editorConfig':_0x1c95fb['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1c95fb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1c95fb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1c95fb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3c0223(_0x1c95fb['get']('locale')),'CommentView':_0x1c95fb['get']('comments')['CommentView'],'CommentsListView':_0x8f2f61,'CommentThreadInputView':_0x4d1cdb}),_0x4b2f20['acceptButton']['on']('execute',()=>{_0xb85fd9['editing']['view']['focus']();}),_0x4b2f20['discardButton']['on']('execute',()=>{_0xb85fd9['editing']['view']['focus']();}),_0x15215c=_0x37ed11['createAnnotationView'](this['editor']['locale'],_0x4b2f20),_0x15215c['bind']('isDirty')['to'](_0x4b2f20,'isDirty'),_0x15215c['bind']('length')['to'](_0x4b2f20),_0x15215c['bind']('type')['to'](_0x4b2f20,'type',_0x265fb0=>'suggestion-'+_0x265fb0),this['_annotationViews']['set'](_0x35aded['id'],_0x15215c));const _0x315108=_0x369797['createCommentThreadController'](_0x35aded['commentThread'],_0x4b2f20),_0x211f9f=new oe(_0xb85fd9,_0x35aded,_0x4b2f20,_0x315108),_0x4cfa6c=_0x35aded['getAllAdjacentSuggestions']()['filter'](_0xa5a332=>_0xa5a332['isInContent']);_0x4b2f20['descriptionParts']=_0xb85fd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4cfa6c),this['_suggestionToController']['set'](_0x35aded,_0x211f9f),this['_viewToController']['set'](_0x4b2f20,_0x211f9f);const _0x29b852=_0x37ed11['createAnnotation']({'view':_0x15215c,'target':()=>{const _0x13d940=[],_0x385bd9=_0x35aded['getAllAdjacentSuggestions']()['filter'](_0x2eb060=>_0x2eb060['isInContent']);for(const _0x561333 of _0x385bd9)_0x13d940['push'](..._0x561333['getMarkers']());return _0x741fd5(_0xb85fd9['editing'],_0x13d940);},'type':()=>'suggestion-'+_0x211f9f['view']['type']});_0x369797['_bindAnnotationToEditors'](_0x4b2f20,_0x29b852),_0x37ed11['add'](_0x29b852),_0x48d30f['registerAnnotation'](_0x29b852);}['_destroyController'](_0x38ff96){const _0x22c0bb=this['editor']['plugins']['get']('CommentsRepository'),_0x113475=this['editor']['plugins']['get']('Annotations'),_0x48fb9b=this['_suggestionToController']['get'](_0x38ff96),_0x369629=_0x48fb9b['view'],_0x2fa36d=_0x113475['getByInnerView'](_0x369629);_0x22c0bb['_unbindEditors'](_0x369629),_0x2fa36d&&_0x113475['remove'](_0x2fa36d),this['_suggestionToController']['delete'](_0x38ff96),this['_viewToController']['delete'](_0x369629),_0x48fb9b['destroy']();}['_updateController'](_0x56da39){if(!_0x56da39['isInContent']||!this['_suggestionToController']['has'](_0x56da39))return;const _0x4503fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3ca2=this['_suggestionToController']['get'](_0x56da39),_0x4d72e8=_0x56da39['getAllAdjacentSuggestions']();_0x2d3ca2['view']['descriptionParts']=_0x4503fe['descriptionFactory']['getDescriptions'](_0x4d72e8);}['destroy'](){for(const _0x21f50d of this['_suggestionToController']['keys']())this['_destroyController'](_0x21f50d);for(const _0x18fce1 of this['_annotationViews']['values']())_0x18fce1['mainView']['destroy']();super['destroy']();}}function ae(_0x550eac){return'model'in _0x550eac;}class k extends _0x470f93{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x430f36){this['editor']['plugins']['get'](p)['adapter']=_0x430f36;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x364c28){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x364c28);}['getSuggestions']({skipNotAttached:_0x18c43c=!0x1,toJSON:_0x408e3a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x18c43c,'toJSON':_0x408e3a});}['getSuggestion'](_0x50c1fa){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x50c1fa);}}const T=['Pagination'];class P extends _0x470f93{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x11bd7e=this['editor'];if(_0x11bd7e['config']['define']('trackChangesData.editorCreator',_0x15e87b=>{const _0x295b72=_0x11bd7e['model']['document']['getRootNames']()['reduce']((_0x172773,_0x140cbd)=>(_0x172773[_0x140cbd]='',_0x172773),{});return _0x11bd7e['constructor']['create'](_0x295b72,_0x15e87b);}),'function'!=typeof _0x11bd7e['config']['get']('trackChangesData')['editorCreator'])throw new _0x4524f9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x53e0ad){return N(this['editor'],!0x0,_0x53e0ad);}['getDataWithDiscardedSuggestions'](_0x159458){return N(this['editor'],!0x1,_0x159458);}}class D extends _0x470f93{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x33c7f){super(_0x33c7f),this['result']='end';}['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 v(_0x5808c2){return void 0x0!==_0x5808c2['getRootsAttributes'];}async function N(_0x2d9e90,_0x4e694a,_0x39eea7){const _0x3864dd=_0x486efe(_0x2d9e90,T);_0x3864dd['plugins']['push'](p,D),_0x3864dd['rootsAttributes']=v(_0x2d9e90)?_0x2d9e90['getRootsAttributes']():void 0x0;const _0x43e990=document['createDocumentFragment'](),_0x291cb5=_0x2d9e90['config']['get']('trackChangesData')['editorCreator'],_0x8ff5f1=await _0x291cb5(_0x3864dd,()=>function(_0x5c3563){const _0x540f28=document['createElement']('div');return _0x5c3563['appendChild'](_0x540f28),_0x540f28;}(_0x43e990));!function(_0x4429be,_0x16809f){const _0x90a166=_0x4429be['model']['document']['getRootNames']()['reduce']((_0x4c00c0,_0x220cf7)=>(_0x4c00c0[_0x220cf7]=_0x4429be['data']['get']({'rootName':_0x220cf7}),_0x4c00c0),{}),_0x418ce0=_0x4429be['plugins']['get']('Users')['users']['map'](_0x563c5c=>({'id':_0x563c5c['id'],'name':_0x563c5c['name']})),_0x4338e0=_0x4429be['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a640d=_0x4429be['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e3409=_0x16809f['plugins']['get']('Users'),_0x7de5c6=_0x16809f['plugins']['get']('TrackChangesEditing'),_0x5171e5=_0x16809f['plugins']['get']('CommentsRepository');for(const _0x1e6ced of _0x418ce0)_0x4e3409['getUser'](_0x1e6ced['id'])||_0x4e3409['addUser'](_0x1e6ced);_0x4e3409['me']||_0x4e3409['useAnonymousUser']();for(const _0x43a6c5 of _0x3a640d)_0x5171e5['addCommentThread'](_0x43a6c5);for(const _0x287d8f of _0x4338e0)_0x7de5c6['addSuggestionData'](_0x287d8f);_0x16809f['data']['set'](_0x90a166);}(_0x2d9e90,_0x8ff5f1),_0x8ff5f1['execute'](_0x4e694a?'acceptAllSuggestions':'discardAllSuggestions');const _0x9f5b55=v(_0x8ff5f1)?_0x8ff5f1['getFullData'](_0x39eea7):_0x8ff5f1['data']['get'](_0x39eea7);return await _0x8ff5f1['destroy'](),_0x9f5b55;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|