@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240719.0 → 0.0.0-nightly-20240720.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/mergefields.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
|
-
_0x33aa48(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1219bc,_0x37433f){super(),this['id']=_0x37433f['id'],this['type']=_0x37433f['type'],this['subType']=_0x37433f['subType']||null,this['author']=_0x37433f['author'],this['creator']=_0x37433f['creator']||_0x37433f['author'],this['isExternal']=Boolean(_0x37433f['attributes']&&_0x37433f['attributes']['@external']),this['data']=null,this['_model']=_0x1219bc,this['_onAccept']=_0x37433f['onAccept'],this['_onDiscard']=_0x37433f['onDiscard'],this['_onAttributesChange']=_0x37433f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x37433f['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 _0x44c721=this;for(;_0x44c721['previous'];)_0x44c721=_0x44c721['previous'];return _0x44c721;}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'](_0x3d3f39){this['_markerNames']['add'](_0x3d3f39);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x109f1a=>this['_model']['markers']['get'](_0x109f1a))['filter'](_0x32edc9=>_0x32edc9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1e6b50=>{for(const _0x5739f9 of this['getMarkers']())_0x1e6b50['removeMarker'](_0x5739f9);}),this['_markerNames']['clear']();}['removeMarker'](_0x79447e){this['_model']['change'](_0x3b9c8e=>{_0x3b9c8e['removeMarker'](_0x79447e);}),this['_markerNames']['delete'](_0x79447e);}['addRange'](_0x1a14fd){const _0x33dd26='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x33dd26),this['_model']['change'](_0x4f407d=>{_0x4f407d['addMarker'](_0x33dd26,{'range':_0x1a14fd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x11af78){for(const _0x18affa of this['getRanges']())if(_0x18affa['isIntersecting'](_0x11af78))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x26ba25=>_0x26ba25['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x44d31f,_0xbfa10a)=>[..._0x44d31f,..._0xbfa10a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3aec5e=this['getRanges']();if(0x1!=_0x3aec5e['length'])return null;const _0x3afab1=_0x3aec5e[0x0],_0x6e30cb=_0x3afab1['start']['nodeAfter'],_0x5b12c2=_0x3afab1['end']['nodeBefore'];return _0x6e30cb instanceof _0x21280b?_0x6e30cb!=_0x5b12c2?null:_0x6e30cb: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 _0x554e00=[];let _0x11c004=this['head'];for(;_0x11c004;)_0x554e00['push'](_0x11c004),_0x11c004=_0x11c004['next'];return _0x554e00;}['setAttribute'](_0x45dddd,_0x13025d){const _0x558770=_0x4ca879(this['attributes']);_0x3a0804(_0x558770,_0x45dddd,_0x13025d),_0x363f51(_0x558770,this['attributes'])||(this['attributes']=_0x558770,this['_onAttributesChange'](_0x558770));}['removeAttribute'](_0x4d2388){const _0x453a42=_0x4ca879(this['attributes']);_0xc13064(_0x453a42,_0x4d2388),_0x363f51(_0x453a42,this['attributes'])||(this['attributes']=_0x453a42,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 _0x556763()['substr'](0x1,0x5);}}function o(_0x5d2cc8,_0x2bda92,_0x340a39){const t=_0x5d2cc8['t'];switch(_0x2bda92){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',_0x340a39);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x340a39);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x340a39);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x340a39);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x340a39);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',_0x340a39);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x340a39);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',_0x340a39);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x340a39);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x340a39);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x340a39);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x340a39);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x340a39);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x340a39);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x340a39);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x340a39);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x340a39);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x340a39);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x340a39);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x340a39);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x340a39);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x340a39);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x340a39);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'},_0x340a39);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x340a39);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x340a39);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x340a39);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x340a39);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x340a39);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'},_0x340a39);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x340a39);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x340a39);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x340a39);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x340a39);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'},_0x340a39);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x340a39);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'},_0x340a39);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'},_0x340a39);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x340a39);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'},_0x340a39);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x340a39);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'},_0x340a39);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x340a39);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x340a39);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x340a39);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'},_0x340a39);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'},_0x340a39);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 _0x2bda92;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1aebd3,_0x2f0d7c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1aebd3,this['_locale']=_0x2f0d7c;}['getDescriptions'](_0x11812b){const _0x4db1f7=[],_0x2a3d17=new Set(),_0xde6459=new Set();for(let _0x2f2311=0x0;_0x2f2311<_0x11812b['length'];_0x2f2311++){const _0x44b3eb=_0x11812b[_0x2f2311];if(!_0x44b3eb['isInContent'])continue;const _0x24f6be=this['_handleCustomCallbackDescription'](_0x44b3eb);if(_0x24f6be){if(null!=_0x44b3eb['subType']){if(_0x2a3d17['has'](_0x44b3eb['subType']))continue;_0x2a3d17['add'](_0x44b3eb['subType']);}_0x4db1f7['push'](_0x24f6be);}else{if('attribute'!=_0x44b3eb['type'])'insertion'!=_0x44b3eb['type']&&'deletion'!=_0x44b3eb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4db1f7,_0x44b3eb,_0x11812b[_0x2f2311+0x1]);else{const _0x596e96=_0x44b3eb['data']['key'];if(_0xde6459['has'](_0x596e96))continue;_0xde6459['add'](_0x44b3eb['data']['key']),_0x596e96==m?this['_handleRenameSuggestionDescription'](_0x4db1f7,_0x44b3eb):this['_handleAttributeSuggestionDescription'](_0x4db1f7,_0x44b3eb);}}}return this['_resolveDescriptionItems'](_0x4db1f7);}['registerDescriptionCallback'](_0x5007b3){this['_customCallbacks']['push'](_0x5007b3);}['registerElementLabel'](_0x131cc3,_0x5ae8ee,_0x20afce=_0x276514['normal']){'function'==typeof _0x131cc3?_0x41520e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x131cc3,'label':_0x5ae8ee,'priority':_0x20afce}):this['_itemLabels']['set'](_0x131cc3,_0x5ae8ee);}['registerAttributeLabel'](_0x5c1ed6,_0x5ca3c6){this['_attributeLabels']['set'](_0x5c1ed6,_0x5ca3c6);}['getItemLabel'](_0x56461d,_0x377666=0x1){let _0x296b6c;for(const _0x1a801b of this['_itemLabelsCallbacks'])if(_0x1a801b['matchingCallback'](_0x56461d)){_0x296b6c=_0x1a801b['label'];break;}return _0x296b6c||(_0x296b6c=this['_itemLabels']['get'](_0x56461d['name'])),_0x296b6c?_0x296b6c(_0x377666):0x1!==_0x377666?_0x377666+'\x20'+_0x56461d['name']+'s':''+_0x56461d['name'];}['_addDescriptionItems'](_0x4bd063,_0x588b80){const _0x5be3f0=_0x588b80['getFirstRange']()['getWalker'](),_0x5638b3='insertion'==_0x588b80['type']?'add':'remove';for(const _0x1593a1 of _0x5be3f0){const _0x4553da=_0x1593a1['item'],_0x394335=_0x4bd063[_0x4bd063['length']-0x1];if(_0x4553da['is']('$textProxy'))_0x394335&&_0x394335['type']['indexOf']('Container')>-0x1&&_0x4bd063['pop'](),_0x394335&&'text'==_0x394335['type']?_0x394335[_0x5638b3]+=_0x4553da['data']:_0x4bd063['push']({'type':'text','add':'add'==_0x5638b3?_0x4553da['data']:'','remove':'remove'==_0x5638b3?_0x4553da['data']:''});else{if(this['_schema']['isObject'](_0x4553da)){const _0x110a93=_0x4553da;if(_0x394335&&_0x394335['type']['indexOf']('Container')>-0x1&&_0x4bd063['pop'](),'elementEnd'==_0x1593a1['type'])continue;_0x394335&&_0x394335['type']==_0x5638b3+'Object'&&_0x394335['element']['name']==_0x110a93['name']?_0x394335['quantity']++:_0x4bd063['push']({'type':_0x5638b3+'Object','element':_0x110a93,'quantity':0x1}),_0x5be3f0['skip'](_0x322603=>!('elementEnd'==_0x322603['type']&&_0x322603['item']==_0x4553da));}else{if(this['_schema']['checkChild'](_0x4553da,'$text')||_0x4553da['is']('element','softBreak')){const _0x55ec78=_0x4553da;if('add'==_0x5638b3&&'elementStart'==_0x1593a1['type']||'remove'==_0x5638b3&&'elementEnd'==_0x1593a1['type'])continue;if(_0x394335&&-0x1==_0x394335['type']['indexOf']('Container')){'text'==_0x394335['type']&&(_0x394335[_0x5638b3]+='\x0a');continue;}let _0x2fcfd7;if(_0x2fcfd7='add'==_0x5638b3?_0x55ec78['nextSibling']&&!this['_schema']['isObject'](_0x55ec78['nextSibling'])?_0x55ec78['nextSibling']:null:_0x55ec78['previousSibling']&&!this['_schema']['isObject'](_0x55ec78['previousSibling'])?_0x55ec78['previousSibling']:null,_0x55ec78['isEmpty']||_0x2fcfd7&&_0x2fcfd7['isEmpty']){const _0x4796b3=_0x2fcfd7&&_0x2fcfd7['isEmpty']?_0x2fcfd7:_0x55ec78;_0x394335&&_0x394335['type']==_0x5638b3+'EmptyContainer'&&_0x394335['element']['name']==_0x4796b3['name']?_0x394335['quantity']++:_0x4bd063['push']({'type':_0x5638b3+'EmptyContainer','element':_0x4796b3,'quantity':0x1});}else _0x4bd063['push']({'type':_0x5638b3+'Container','element':_0x55ec78});}}}}}['_resolveDescriptionItems'](_0x30cc48){const _0x37f10e=this['_locale'],_0x4d4157=[],_0x4a9d54=[],_0x44e395=[];for(const _0x35b2ec of _0x30cc48)switch(_0x35b2ec['type']){case'text':if(_0x35b2ec['add']=_0x35b2ec['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x35b2ec['remove']=_0x35b2ec['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x35b2ec['add']&&''!=_0x35b2ec['remove']){_0x4d4157['push']({'type':'replace','content':o(_0x37f10e,'REPLACE_TEXT',['\x22'+_0x35b2ec['remove']+'\x22','\x22'+_0x35b2ec['add']+'\x22'])});continue;}if(null!=_0x35b2ec['add']['match'](/^ +$/)){_0x4d4157['push']({'type':'insertion','content':o(_0x37f10e,'*Insert:*\x20%0',o(_0x37f10e,'ELEMENT_SPACE',_0x35b2ec['add']['length']))});continue;}if(null!=_0x35b2ec['remove']['match'](/^ +$/)){_0x4d4157['push']({'type':'deletion','content':o(_0x37f10e,'*Remove:*\x20%0',o(_0x37f10e,'ELEMENT_SPACE',_0x35b2ec['remove']['length']))});continue;}if(''!=_0x35b2ec['add']){_0x4d4157['push']({'type':'insertion','content':o(_0x37f10e,'*Insert:*\x20%0','\x22'+_0x35b2ec['add']+'\x22')});continue;}_0x4d4157['push']({'type':'deletion','content':o(_0x37f10e,'*Remove:*\x20%0','\x22'+_0x35b2ec['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4d4157['push']({'type':'insertion','content':o(_0x37f10e,'*Insert:*\x20%0',this['getItemLabel'](_0x35b2ec['element'],_0x35b2ec['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4d4157['push']({'type':'deletion','content':o(_0x37f10e,'*Remove:*\x20%0',this['getItemLabel'](_0x35b2ec['element'],_0x35b2ec['quantity']))});continue;case'addContainer':_0x4d4157['push']({'type':'insertion','content':o(_0x37f10e,'*Split:*\x20%0',this['getItemLabel'](_0x35b2ec['element'],_0x35b2ec['quantity']))});continue;case'removeContainer':_0x4d4157['push']({'type':'deletion','content':o(_0x37f10e,'*Merge:*\x20%0',this['getItemLabel'](_0x35b2ec['element'],_0x35b2ec['quantity']))});continue;case'addFormat':_0x4a9d54['push'](_0x35b2ec['key']);continue;case'removeFormat':_0x44e395['push'](_0x35b2ec['key']);continue;default:_0x4d4157['push'](_0x35b2ec);}if(_0x4a9d54['length']){const _0x2474a2=_0x4a9d54['map'](_0x10f58c=>this['_attributeLabels']['has'](_0x10f58c)?this['_attributeLabels']['get'](_0x10f58c):_0x10f58c)['join'](',\x20');_0x4d4157['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2474a2)});}if(_0x44e395['length']){const _0x330049=_0x44e395['map'](_0x2ba68d=>this['_attributeLabels']['has'](_0x2ba68d)?this['_attributeLabels']['get'](_0x2ba68d):_0x2ba68d)['join'](',\x20');_0x4d4157['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x330049)});}return _0x4d4157;}['_handleCustomCallbackDescription'](_0x72d75f){for(const _0x37736d of this['_customCallbacks']){const _0x30843c=_0x37736d(_0x72d75f);if(_0x30843c&&'type'in _0x30843c)return _0x30843c;}}['_handleAttributeSuggestionDescription'](_0x2d7798,_0x22cf40){const _0x808918=_0x22cf40['data'],_0x198a3d=void 0x0===_0x808918['newValue']?'removeFormat':'addFormat';_0x2d7798['push']({'type':_0x198a3d,'key':_0x808918['key']});}['_handleRenameSuggestionDescription'](_0x5748fd,_0x343a1a){_0x5748fd['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x343a1a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x23827a,_0x5d5273,_0x3be91e){if(this['_addDescriptionItems'](_0x23827a,_0x5d5273),_0x3be91e&&_0x3be91e['getFirstRange']()&&!_0x5d5273['getFirstRange']()['end']['isEqual'](_0x3be91e['getFirstRange']()['start'])){const _0x586668=_0x23827a[_0x23827a['length']-0x1],_0x33382b='insertion'==_0x5d5273['type']?'add':'remove';_0x586668&&'text'==_0x586668['type']&&(_0x586668[_0x33382b]+='\x0a');}}}class E extends _0x30666f{['afterInit'](){const _0x43003b=this['editor'],_0x3c2312=_0x43003b['plugins']['get']('TrackChangesEditing');_0x43003b['commands']['get']('showAIAssistant')&&_0x3c2312['enableCommand']('showAIAssistant');}}class V extends _0x30666f{['afterInit'](){const _0x3ae177=this['editor'],_0x133198=_0x3ae177['locale'];if(!_0x3ae177['plugins']['has']('AlignmentEditing'))return;const _0x4775e5=_0x3ae177['plugins']['get']('TrackChangesEditing');_0x4775e5['enableDefaultAttributesIntegration']('alignment'),_0x4775e5['registerBlockAttribute']('alignment'),_0x4775e5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x133198,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21c8ef=this['editor'],_0x1a264a=_0x21c8ef['locale'];_0x21c8ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa4aae0=>{if('formatBlock'!=_0xa4aae0['type'])return;const {data:_0x1042ad}=_0xa4aae0;if(_0x1042ad&&'alignment'==_0x1042ad['commandName']){const _0x5d61dd=_0x1042ad['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1a264a,'*Format:*\x20%0',function(_0x2f29f2){switch(_0x2f29f2){case'left':return o(_0x1a264a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1a264a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1a264a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1a264a,'FORMAT_JUSTIFY_TEXT');}}(_0x5d61dd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x30666f{['afterInit'](){const _0x3674db=this['editor'],_0xf43f29=_0x3674db['plugins']['get']('TrackChangesEditing'),_0x111e15=_0x3674db['locale'];for(const _0x578700 of ti){if(!_0x3674db['plugins']['has'](_0x578700))continue;const _0x49fb20=_0x578700['slice'](0x0,-0x7)['toLowerCase'](),_0x3283f1='FORMAT_'+_0x49fb20['toUpperCase']();_0xf43f29['enableDefaultAttributesIntegration'](_0x49fb20),_0xf43f29['registerInlineAttribute'](_0x49fb20),_0xf43f29['descriptionFactory']['registerAttributeLabel'](_0x49fb20,o(_0x111e15,_0x3283f1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33b252=this['editor'],_0x2bc340=_0x33b252['locale'],_0x4d38c1=_0x33b252['plugins']['get']('TrackChangesEditing');function _0x2d1c98(_0x2ce42b,_0x230bc4){_0x4d38c1['descriptionFactory']['registerDescriptionCallback'](_0x4cbbea=>{if('formatInline'!=_0x4cbbea['type'])return;const {data:_0x2a226a}=_0x4cbbea;return _0x2a226a&&_0x2a226a['commandName']===_0x2ce42b?_0x2a226a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2bc340,'*Format:*\x20%0',_0x230bc4)}:{'type':'format','content':o(_0x2bc340,'*Remove\x20format:*\x20%0',_0x230bc4)}:void 0x0;});}_0x2d1c98('bold',o(_0x2bc340,'FORMAT_BOLD')),_0x2d1c98('italic',o(_0x2bc340,'FORMAT_ITALIC')),_0x2d1c98('underline',o(_0x2bc340,'FORMAT_UNDERLINE')),_0x2d1c98('code',o(_0x2bc340,'FORMAT_CODE')),_0x2d1c98('strikethrough',o(_0x2bc340,'FORMAT_STRIKETHROUGH')),_0x2d1c98('subscript',o(_0x2bc340,'FORMAT_SUBSCRIPT')),_0x2d1c98('superscript',o(_0x2bc340,'FORMAT_SUPERSCRIPT'));}}class O extends _0x30666f{['afterInit'](){const _0x445c57=this['editor'],_0x5e6cd3=_0x445c57['locale'];if(!_0x445c57['plugins']['has']('BlockQuoteEditing'))return;const _0x2aaa74=_0x445c57['plugins']['get']('TrackChangesEditing'),_0x135e3e=this['editor']['commands']['get']('blockQuote');_0x2aaa74['enableCommand']('blockQuote',(_0x11aff5,_0x1f7667={})=>{const _0x3c7434=this['editor']['model']['document']['selection'],_0x3da05f=_0x1f7667&&void 0x0!==_0x1f7667['forceValue']?_0x1f7667['forceValue']:!_0x135e3e['value'];let _0x1f0049=[];if(_0x3da05f){const _0x182723=Array['from'](_0x3c7434['getSelectedBlocks']())['filter'](_0x5b9d7b=>oo(_0x5b9d7b)||function(_0x4f07ff,_0x177526){const _0x426138=_0x177526['checkChild'](_0x4f07ff['parent'],'blockQuote'),_0x1633cd=_0x177526['checkChild'](['$root','blockQuote'],_0x4f07ff);return _0x426138&&_0x1633cd;}(_0x5b9d7b,this['editor']['model']['schema']));_0x1f0049=to(_0x182723,_0x445c57['model']);}else{const _0x13d017=Array['from'](_0x3c7434['getSelectedBlocks']())['filter'](_0x4e1565=>oo(_0x4e1565));_0x1f0049=to(_0x13d017,_0x445c57['model']);}_0x445c57['model']['change'](()=>{for(const _0x561208 of _0x1f0049)_0x2aaa74['markBlockFormat'](_0x561208,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3da05f}]});});}),_0x2aaa74['descriptionFactory']['registerDescriptionCallback'](_0x4a339e=>{const {data:_0x3324cc}=_0x4a339e;if(_0x3324cc&&'blockQuote'==_0x3324cc['commandName']){const _0x5ee79b=o(_0x5e6cd3,'ELEMENT_BLOCK_QUOTE');return _0x3324cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e6cd3,'*Set\x20format:*\x20%0',_0x5ee79b)}:{'type':'format','content':o(_0x5e6cd3,'*Remove\x20format:*\x20%0',_0x5ee79b)};}});}}function oo(_0x359ea2){return'blockQuote'==_0x359ea2['parent']['name'];}class G extends _0x30666f{['afterInit'](){const _0x358799=this['editor'];_0x358799['plugins']['has']('CaseChange')&&(_0x358799['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x358799['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x358799['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x30666f{['afterInit'](){const _0x8f95f1=this['editor'];_0x8f95f1['commands']['get']('ckbox')&&_0x8f95f1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x30666f{['afterInit'](){const _0x240358=this['editor'];if(!_0x240358['plugins']['has']('CodeBlock'))return;const _0x401bba=_0x240358['plugins']['get']('TrackChangesEditing'),_0x2682e2=_0x240358['locale'],_0x4bcf6a=_0x240358['config']['get']('codeBlock')['languages'],_0x3db3a4=_0x240358['commands']['get']('codeBlock');_0x401bba['enableCommand']('indentCodeBlock'),_0x401bba['enableCommand']('outdentCodeBlock'),_0x401bba['enableCommand']('codeBlock',(_0x22c0ca,_0x380739={})=>{const _0xd26f77=_0x240358['model'],_0x4a3104=_0x240358['model']['document']['selection'],_0xcd165d=_0x380739&&void 0x0!==_0x380739['forceValue']?_0x380739['forceValue']:!_0x3db3a4['value'];let _0x459aed;_0x380739['language']||(_0x380739['language']=_0x4bcf6a[0x0]['language']),_0x459aed=_0xcd165d?Array['from'](_0x4a3104['getSelectedBlocks']())['filter'](_0xe9b973=>eo(_0xe9b973)||function(_0x4a6bd6,_0x58cd7c){if(_0x4a6bd6['is']('rootElement')||_0x58cd7c['isLimit'](_0x4a6bd6))return!0x1;return _0x58cd7c['checkChild'](_0x4a6bd6['parent'],'codeBlock');}(_0xe9b973,_0xd26f77['schema'])):Array['from'](_0x4a3104['getSelectedBlocks']())['filter'](_0x594ae5=>eo(_0x594ae5));const _0x43c3f8=to(_0x459aed,_0xd26f77);_0xd26f77['change'](()=>{for(const _0x51810f of _0x43c3f8)_0x401bba['markBlockFormat'](_0x51810f,{'commandName':'codeBlock','commandParams':[{..._0x380739,'forceValue':_0xcd165d}],'formatGroupId':'blockName'});});}),(_0x401bba['descriptionFactory']['registerElementLabel']('codeBlock',_0x5e28aa=>o(_0x2682e2,'ELEMENT_CODE_BLOCK',_0x5e28aa)),_0x401bba['descriptionFactory']['registerDescriptionCallback'](_0x3584d5=>{if('formatBlock'!=_0x3584d5['type'])return;const _0x117dc6=_0x2682e2['t'],{data:_0x23b74c}=_0x3584d5;if(!_0x23b74c||'codeBlock'!=_0x23b74c['commandName'])return;const _0x257d0e=_0x23b74c['commandParams'][0x0]['language'],_0x5d46b3=_0x117dc6(_0x4bcf6a['find'](_0x31f3cf=>_0x31f3cf['language']===_0x257d0e)['label'])['toLowerCase']();return _0x23b74c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2682e2,'*Set\x20format:*\x20%0',o(_0x2682e2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5d46b3+')')}:{'type':'format','content':o(_0x2682e2,'*Remove\x20format:*\x20%0',o(_0x2682e2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xe835a2){return'codeBlock'==_0xe835a2['name'];}class H extends _0x30666f{['afterInit'](){const _0x369f7f=this['editor'];if(!_0x369f7f['plugins']['has']('CommentsEditing'))return;_0x369f7f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3f7b2f,_0x2a3b09,_0x7d5c75){const _0x319984=[];for(const _0x1c6861 of _0x2a3b09['getItems']())_0x1c6861['hasAttribute'](_0x3f7b2f)&&_0x319984['push'](_0x7d5c75['createRangeOn'](_0x1c6861));return _0x319984;}function _e(_0x574652,_0x230c14,{showActiveMarker:_0x326132=!0x0}={}){const _0x23ed3f=_0x574652['plugins']['get']('TrackChangesEditing');return(_0x31b6c6,_0x2dabd8,_0x586792)=>{if(!_0x586792['consumable']['test'](_0x2dabd8['markerRange'],_0x31b6c6['name']))return;const _0x3b6e54=_0x2dabd8['markerRange']['getWalker'](),_0x7237f8=_0x2dabd8['markerRange']['start'],_0x1682f2=_0x574652['model']['schema'];let _0x1a59e1=null,_0x416af9=null,_0x300991=!0x1,_0x6459e2=!0x1;for(const _0x22ac48 of _0x3b6e54){const _0x446f2d=_0x22ac48['item'];_0x300991=_0x300991||_0x1682f2['isContent'](_0x446f2d);const _0x1be035=_0x586792['mapper']['toViewElement'](_0x446f2d);if(_0x1be035&&_0x1be035['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x22ac48['type']&&(_0x1682f2['isBlock'](_0x446f2d)&&!_0x1682f2['isLimit'](_0x446f2d)&&(_0x446f2d['nextSibling']||_0x7237f8['isAtEnd']?_0x1a59e1&&_0x1a59e1['parent']==_0x446f2d||(_0x1a59e1=_0x446f2d,_0x25e57a(_0x22ac48['previousPosition']),_0x6459e2=!0x0):_0x416af9=_0x416af9||_0x22ac48['previousPosition']));}function _0x25e57a(_0x3340ce){const _0x4ce86c=_0x586792['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x230c14}),_0x4c6786=_0x586792['mapper']['toViewPosition'](_0x3340ce);_0x326132&&_0x23ed3f['activeMarkers']['includes'](_0x2dabd8['markerName'])&&_0x586792['writer']['addClass']('ck-suggestion-marker--active',_0x4ce86c),_0x586792['writer']['insert'](_0x4c6786,_0x4ce86c),_0x586792['mapper']['bindElementToMarker'](_0x4ce86c,_0x2dabd8['markerName']);}_0x300991||_0x6459e2||!_0x416af9||_0x25e57a(_0x416af9);};}class q extends _0x30666f{static get['requires'](){return[_0x56f297];}['init'](){const _0x43cf89=this['editor'],_0x1600d5=_0x43cf89['plugins']['get']('TrackChangesEditing');_0x1600d5['enableCommand']('delete');const _0x5a2c2d=_0x43cf89['commands']['get']('deleteForward');_0x1600d5['enableCommand']('deleteForward',(_0x57c075,_0x82b7b6={})=>{const _0x3daf86=_0x43cf89['model']['createSelection'](_0x43cf89['model']['document']['selection']);_0x3daf86['isCollapsed']&&_0x43cf89['model']['modifySelection'](_0x3daf86,{'direction':'forward','unit':_0x82b7b6['unit']});const _0x10468d=_0x3daf86['getFirstRange'](),_0xd19193=_0x2fbf4a['fromRange'](_0x10468d);let _0x4aafda;_0x57c075(_0x82b7b6),_0x4aafda='$graveyard'==_0xd19193['root']['rootName']?_0x43cf89['model']['createRange'](_0x10468d['start']):_0x43cf89['model']['createRange'](_0xd19193['start'],_0xd19193['end']),_0xd19193['detach'](),_0x43cf89['model']['enqueueChange'](_0x5a2c2d['buffer']['batch'],_0x1b4776=>{_0x5a2c2d['buffer']['lock'](),_0x1b4776['setSelection'](_0x1b4776['createRange'](_0x4aafda['end'])),_0x5a2c2d['buffer']['unlock']();});}),_0x43cf89['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x43cf89,'merge'),{'priority':'high'}),_0x43cf89['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3cc34d,_0x1ab5d9,_0x2da623)=>{_0x2da623['options']['showSuggestionHighlights']&&_e(_0x43cf89,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3cc34d,_0x1ab5d9,_0x2da623);},{'priority':'high'}),_0x43cf89['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5d7a01,_0x2e8128,_0xfa98b0)=>{const _0x56ceb3=_0xfa98b0['mapper']['markerNameToElements'](_0x2e8128['markerName']);if(_0x56ceb3){for(const _0x49a2cb of _0x56ceb3)_0x49a2cb['is']('uiElement')&&(_0xfa98b0['mapper']['unbindElementFromMarkerName'](_0x49a2cb,_0x2e8128['markerName']),_0xfa98b0['writer']['remove'](_0x49a2cb));}},{'priority':'high'});}}class z extends _0x30666f{['afterInit'](){const _0x3672e8=this['editor'];if(!_0x3672e8['plugins']['has']('ListEditing'))return;const _0x42174f=_0x3672e8['locale'],_0x488914=_0x3672e8['plugins']['get']('TrackChangesEditing'),_0x55a7bc=_0x3672e8['plugins']['has']('TodoListEditing'),_0xb63dc6=!!_0x3672e8['config']['get']('list.multiBlock');function _0xa0ae08(_0x35e18c){return{'type':'format','content':''+o(_0x42174f,'*Set\x20format:*\x20%0',_0x35e18c)};}function _0xbe1490(_0x3ba386){return{'type':'format','content':''+o(_0x42174f,'*Remove\x20format:*\x20%0',_0x3ba386)};}_0x488914['enableDefaultAttributesIntegration']('numberedList'),_0x488914['enableDefaultAttributesIntegration']('bulletedList'),_0x488914['enableDefaultAttributesIntegration']('customNumberedList'),_0x488914['enableDefaultAttributesIntegration']('customBulletedList'),_0x488914['enableDefaultAttributesIntegration']('indentList'),_0x488914['enableDefaultAttributesIntegration']('outdentList'),_0x488914['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x488914['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x488914['registerBlockAttribute']('listItemId'),_0x488914['registerBlockAttribute']('listType'),_0x488914['registerBlockAttribute']('listIndent'),_0xb63dc6&&(_0x488914['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x488914['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x55a7bc&&(_0x488914['enableDefaultAttributesIntegration']('todoList'),_0x488914['enableDefaultAttributesIntegration']('checkTodoList'),_0x488914['registerBlockAttribute']('todoListChecked'),_0x488914['descriptionFactory']['registerDescriptionCallback'](_0x13bac2=>{const {data:_0x12bbd}=_0x13bac2;if(_0x12bbd&&'todoListChecked'==_0x12bbd['key'])return{'type':'format','content':_0x12bbd['newValue']?o(_0x42174f,'*Check\x20item*'):o(_0x42174f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2a15e1=>{if(_0x2a15e1['batch']['isUndo'])return!0x1;let _0x1e221e=!0x1;const _0x504eaf=_0x488914['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e5c45=>'todoListChecked'===_0x488914['_getAttributeKey'](_0x3e5c45));for(const _0x29efb9 of _0x504eaf){'todo'!=_0x29efb9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x488914['_findSuggestions'](_0x29efb9['getFirstRange'](),'attribute')['find'](_0x176fb5=>'listType'===_0x488914['_getAttributeKey'](_0x176fb5['suggestion']))||(_0x2a15e1['removeMarker'](_0x29efb9['getFirstMarker']()),_0x1e221e=!0x0));}return _0x1e221e;})),_0x488914['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x42174f,'FORMAT_INDENT'));const _0x33fd69={'type':'format','content':''};_0x488914['descriptionFactory']['registerDescriptionCallback'](_0x7c8ec5=>{const {data:_0x3efbf0}=_0x7c8ec5;if(!_0x3efbf0||'listType'!=_0x3efbf0['key'])return;let _0x1af12c=_0x7c8ec5['head'];for(;_0x1af12c;){if(_0x1af12c['data']&&(('listStyle'==_0x1af12c['data']['key']||'listMarkerStyle'==_0x1af12c['data']['key'])&&(_0x1af12c['data']['newValue']&&'default'!=_0x1af12c['data']['newValue']||'default'!=_0x1af12c['data']['oldValue']&&!_0x3efbf0['newValue'])||!_0xb63dc6&&_0x1af12c['data']['key']==m))return _0x33fd69;_0x1af12c=_0x1af12c['next'];}if(null==_0x3efbf0['newValue'])switch(_0x3efbf0['oldValue']){case'bulleted':return _0xbe1490(o(_0x42174f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xbe1490(o(_0x42174f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xbe1490(o(_0x42174f,'ELEMENT_TODO_LIST'));}switch(_0x3efbf0['newValue']){case'bulleted':return _0xa0ae08(o(_0x42174f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa0ae08(o(_0x42174f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa0ae08(o(_0x42174f,'ELEMENT_TODO_LIST'));}}),_0x488914['descriptionFactory']['registerDescriptionCallback'](_0x7ab58c=>{const {data:_0x163587}=_0x7ab58c;if(_0x163587&&'listIndent'==_0x163587['key'])return null==_0x163587['newValue']||null==_0x163587['oldValue']&&0x0==_0x163587['newValue']?_0x33fd69:void 0x0;}),_0x488914['descriptionFactory']['registerDescriptionCallback'](_0x7c0c17=>{if('attribute'!=_0x7c0c17['type'])return;const {data:_0x2bea63}=_0x7c0c17;if(!_0x2bea63||'listItemId'!=_0x2bea63['key'])return;const _0x40282e=le(_0x7c0c17);return'newValue'==_0x40282e?{'type':'format','content':o(_0x42174f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x40282e?{'type':'format','content':o(_0x42174f,'*Split:*\x20list\x20item')}:_0x33fd69;}),_0x3672e8['model']['document']['registerPostFixer'](_0x3ea28b=>this['listItemIdFixer'](_0x3ea28b)),_0x3672e8['model']['document']['registerPostFixer'](_0x8d5840=>this['noTrackChangesFixer'](_0x8d5840)),_0x3672e8['model']['document']['registerPostFixer'](_0x395c27=>this['assureChains'](_0x395c27)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2a9b74){if(_0x2a9b74['batch']['isUndo']||!_0x2a9b74['batch']['isLocal'])return!0x1;let _0x385adf=!0x1;const _0x1c2cda=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47af63=>_0x47af63['data']&&'listItemId'==_0x47af63['data']['key'])['filter'](_0x2af543=>_0x2af543['data']['newValue']&&_0x2af543['data']['oldValue']);for(const _0x6e3047 of _0x1c2cda)le(_0x6e3047)||(_0x2a9b74['removeMarker'](_0x6e3047['getFirstMarker']()),_0x385adf=!0x0);return _0x385adf;}['noTrackChangesFixer'](_0x3bce1b){if(_0x3bce1b['batch']['isUndo']||!_0x3bce1b['batch']['isLocal'])return!0x1;const _0x4474b4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4474b4['trackChangesCommand']['value'])return!0x1;let _0x4a89be=!0x1;const _0x182b9a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x427970=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x167a0b=>'attribute'==_0x167a0b['type'])['filter'](_0x1b41b4=>_0x182b9a['includes'](_0x1b41b4['attributeKey']));if(0x0==_0x427970['length'])return _0x4a89be;for(const _0x3f7c22 of _0x427970){const _0x468c56=_0x4474b4['_findSuggestions'](_0x3f7c22['range'],'attribute')['filter'](_0x4e6baf=>!_0x4e6baf['meta']['isNextTo'])['map'](_0x1079aa=>_0x1079aa['suggestion'])['filter'](_0x38a500=>{const _0x4eb00a=_0x4474b4['_getAttributeKey'](_0x38a500);return _0x182b9a['includes'](_0x4eb00a);});if(_0x468c56['length']){for(const _0x54b6a0 of _0x468c56)_0x3bce1b['removeMarker'](_0x54b6a0['getFirstMarker']());_0x4a89be=!0x0;}}return _0x4a89be;}['assureChains'](_0x5c2902){if(_0x5c2902['batch']['isUndo']||!_0x5c2902['batch']['isLocal'])return!0x1;const _0x504d55=this['editor']['plugins']['get']('TrackChangesEditing');let _0x5898d8=!0x1;const _0x23cc2d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1b1577 of _0x504d55['getSuggestions']({'skipNotAttached':!0x0})){const _0x16a67b=_0x504d55['_findSuggestions'](_0x1b1577['getFirstRange'](),'attribute')['map'](_0x23e8a3=>_0x23e8a3['suggestion'])['filter'](_0x1fed88=>_0x1fed88['data']&&_0x23cc2d['includes'](_0x1fed88['data']['key']));if(!_0x16a67b['length'])continue;const _0x8b0e49=_0x16a67b[0x0]['head']['attributes']['groupId'];if(!_0x16a67b['every'](_0x40b6b5=>_0x40b6b5['attributes']['groupId']===_0x8b0e49)){for(const _0x4b273b of _0x16a67b)_0x300ff9(_0x4b273b,_0x8b0e49)&&(_0x5898d8=!0x0);}}return _0x5898d8;function _0x1cc4a6(_0x1009ff,_0x1af7d6){for(const _0x19d7dc of _0x504d55['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50573d=>'attribute'==_0x50573d['type']&&_0x50573d['attributes']['groupId']==_0x1009ff))_0x19d7dc['setAttribute']('groupId',_0x1af7d6);}function _0x300ff9(_0x1ae463,_0x47b440){let _0x6320d1=_0x1ae463['head'],_0x4c1128=!0x1;for(;_0x6320d1;)_0x6320d1['attributes']['groupId']!=_0x47b440&&(_0x1cc4a6(_0x6320d1['attributes']['groupId'],_0x47b440),_0x6320d1['setAttribute']('groupId',_0x47b440),_0x4c1128=!0x0),_0x6320d1=_0x6320d1['next'];return _0x4c1128;}}['_supportLegacySuggestions'](){const _0x48eeb1=this['editor'],_0x1c7122=_0x48eeb1['locale'],_0x4f6bc9=_0x48eeb1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4f6bc9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x32ef90,_0x2203f3){const _0x2fd8a0=[];for(let _0x2143c2 of _0x32ef90)_0x2143c2['start']['nodeAfter']===_0x2143c2['end']['parent']&&(_0x2143c2=_0x48eeb1['model']['createRange'](_0x48eeb1['model']['createPositionAt'](_0x2143c2['start']['nodeAfter'],0x0))),_0x2fd8a0['push'](_0x2143c2);_0x48eeb1['model']['change'](_0x1eb666=>{const _0x1477de=_0x48eeb1['model']['document']['selection'],_0x421c6b=Array['from'](_0x1477de['getRanges']())['map'](_0x326efc=>_0x2fbf4a['fromRange'](_0x326efc));_0x1eb666['setSelection'](_0x2fd8a0),_0x48eeb1['commands']['get'](_0x2203f3['commandName'])['refresh'](),_0x2203f3['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x48eeb1['execute'](_0x2203f3['commandName'],..._0x2203f3['commandParams']),_0x1eb666['setSelection'](_0x421c6b);for(const _0x3ca369 of _0x421c6b)_0x3ca369['detach']();});}),_0x4f6bc9['descriptionFactory']['registerElementLabel'](function(_0x2f1843){const _0x16f326=!_0x48eeb1['model']['schema']['isObject'](_0x2f1843),_0x54450e=_0x2f1843['previousSibling'],_0x56a6cb=_0x2f1843['nextSibling'],_0x34b8f1=_0x2f1843['getAttribute']('listItemId'),_0x39077e=!_0x54450e||_0x54450e['getAttribute']('listItemId')!==_0x34b8f1,_0x3223df=!_0x56a6cb||_0x56a6cb['getAttribute']('listItemId')!==_0x34b8f1;return _0x16f326&&Boolean(_0x34b8f1)&&_0x39077e&&_0x3223df;},_0x2877c7=>o(_0x1c7122,'ELEMENT_LIST_ITEM',_0x2877c7));}['_registerLegacyDescription'](){const _0x50ed48=this['editor'],_0x513588=_0x50ed48['locale'];function _0x43ce79(_0xdaf2d0){const _0x245538=_0x50ed48['commands']['get']('bulletedList')['value'],_0x12fb9f=_0x50ed48['commands']['get']('numberedList')['value'];return'numberedList'===_0xdaf2d0?_0x245538:_0x12fb9f;}_0x50ed48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x44c674){if('formatBlock'!=_0x44c674['type'])return;const {data:_0x4b478d}=_0x44c674;if(!_0x4b478d)return;let _0xd7788,_0x5cb4c3,_0x32ff16,_0x57a626;switch(_0x4b478d['commandName']){case'bulletedList':_0x32ff16=_0x4b478d['commandParams'][0x0]['forceValue'],_0x57a626=_0x43ce79(_0x4b478d['commandName']),_0xd7788=_0x32ff16?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x57a626&&_0x50ed48['config']['get']('list.multiBlock')||(_0xd7788='*Change\x20to:*\x20%0'),_0x5cb4c3={'type':'format','content':o(_0x513588,_0xd7788,o(_0x513588,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x32ff16=_0x4b478d['commandParams'][0x0]['forceValue'],_0x57a626=_0x43ce79(_0x4b478d['commandName']),_0xd7788=_0x32ff16?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x57a626&&_0x50ed48['config']['get']('list.multiBlock')||(_0xd7788='*Change\x20to:*\x20%0'),_0x5cb4c3={'type':'format','content':o(_0x513588,_0xd7788,o(_0x513588,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xd7788='*Indent:*\x20%0',_0x5cb4c3={'type':'format','content':o(_0x513588,_0xd7788,o(_0x513588,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xd7788=function(_0x426f50){const _0x2ed748=_0x426f50['getFirstRange']();let _0x537f71=_0x2ed748['start']['nodeAfter'];for(;_0x537f71&&_0x2ed748['containsItem'](_0x537f71);){if(_0x537f71['getAttribute']('listIndent')>0x0)return!0x1;_0x537f71=_0x537f71['nextSibling'];}return!0x0;}(_0x44c674)?o(_0x513588,'*Format:*\x20remove\x20from\x20%0',o(_0x513588,function(_0x3013d9){return'ELEMENT_'+_0x3013d9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x44c674))):o(_0x513588,'*Outdent:*\x20%0',o(_0x513588,'ELEMENT_LIST_ITEM')),_0x5cb4c3={'type':'format','content':_0xd7788};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4b478d['multipleBlocks']&&(_0xd7788='*Merge:*\x20%0',_0x5cb4c3={'type':'deletion','content':o(_0x513588,_0xd7788,o(_0x513588,'ELEMENT_LIST_ITEM'))});}return _0x5cb4c3;});}}function le(_0x27babe){let _0x586f86=_0x27babe['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x586f86;){const _0x1af906=_0x586f86['getAttribute']('listItemId');if(!_0x1af906)return!0x1;if(_0x1af906==_0x27babe['data']['newValue'])return'newValue';if(_0x1af906==_0x27babe['data']['oldValue'])return'oldValue';_0x586f86=_0x586f86['previousSibling'];}return!0x1;}class pe extends _0x30666f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1f6dc5=this['editor']['config']['get']('list.properties'),_0x4bd6fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f6dc5['styles']&&(_0x4bd6fb['enableDefaultAttributesIntegration']('listStyle'),_0x4bd6fb['registerBlockAttribute']('listStyle')),_0x1f6dc5['reversed']&&(_0x4bd6fb['enableDefaultAttributesIntegration']('listReversed'),_0x4bd6fb['registerBlockAttribute']('listReversed')),_0x1f6dc5['startIndex']&&(_0x4bd6fb['enableDefaultAttributesIntegration']('listStart'),_0x4bd6fb['registerBlockAttribute']('listStart'));const _0x200076={'type':'format','content':''};_0x4bd6fb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3bb160=this['editor']['locale'];_0x4bd6fb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3bb160,'FORMAT_LIST_REVERSED')),_0x4bd6fb['descriptionFactory']['registerDescriptionCallback'](_0x535186=>{const {data:_0x26da7b}=_0x535186;if(_0x26da7b&&'listReversed'==_0x26da7b['key'])return null==_0x26da7b['newValue']||0x0==_0x26da7b['newValue']&&null==_0x26da7b['oldValue']?_0x200076:void 0x0;}),_0x4bd6fb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3bb160,'FORMAT_LIST_START')),_0x4bd6fb['descriptionFactory']['registerDescriptionCallback'](_0x2a8403=>{const {data:_0x3fc729}=_0x2a8403;if(_0x3fc729&&'listStart'==_0x3fc729['key'])return null==_0x3fc729['newValue']||0x1==_0x3fc729['newValue']&&null==_0x3fc729['oldValue']?_0x200076:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2543f9=>{if(_0x2543f9['batch']['isUndo'])return!0x1;let _0x1f26e7=!0x1;const _0x342a48=_0x4bd6fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xaf5641=>{const _0x26b1ed=_0x4bd6fb['_getAttributeKey'](_0xaf5641);return'listStart'==_0x26b1ed||'listReversed'==_0x26b1ed;});for(const _0x3c53b3 of _0x342a48){const _0x1891b1=_0x3c53b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1891b1||'customNumbered'==_0x1891b1)continue;_0x4bd6fb['_findSuggestions'](_0x3c53b3['getFirstRange'](),'attribute')['find'](_0x101cdd=>'listType'==_0x4bd6fb['_getAttributeKey'](_0x101cdd['suggestion']))||(_0x2543f9['removeMarker'](_0x3c53b3['getFirstMarker']()),_0x1f26e7=!0x0);}return _0x1f26e7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x382f9d){const _0x15746d=this['editor']['locale'],{data:_0x1a2cfd}=_0x382f9d,_0x3c6c78={'type':'format','content':''};if(!_0x1a2cfd||'listStyle'!=_0x1a2cfd['key'])return;if(!_0x1a2cfd['oldValue'])return'default'==_0x1a2cfd['newValue']?_0x3c6c78:{'type':'format','content':''+o(_0x15746d,'*Set\x20format:*\x20%0',o(_0x15746d,this['_getTranslationKeyForListStyle'](_0x1a2cfd['newValue'])))};if(!_0x1a2cfd['newValue']){if('default'==_0x1a2cfd['oldValue'])return _0x3c6c78;let _0x3a70f3=_0x382f9d['head'];for(;_0x3a70f3;){if(_0x3a70f3['data']&&'listType'==_0x3a70f3['data']['key']&&_0x3a70f3['data']['newValue'])return _0x3c6c78;_0x3a70f3=_0x3a70f3['next'];}return{'type':'format','content':''+o(_0x15746d,'*Remove\x20format:*\x20%0',o(_0x15746d,this['_getTranslationKeyForListStyle'](_0x1a2cfd['oldValue'])))};}if('default'!=_0x1a2cfd['newValue'])return{'type':'format','content':''+o(_0x15746d,'*Set\x20format:*\x20%0',o(_0x15746d,this['_getTranslationKeyForListStyle'](_0x1a2cfd['newValue'])))};let _0x37642f=_0x382f9d['head'];for(;_0x37642f;){if(_0x37642f['data']&&'listType'==_0x37642f['data']['key']&&_0x37642f['data']['newValue']&&_0x37642f['data']['oldValue'])return _0x3c6c78;_0x37642f=_0x37642f['next'];}return{'type':'format','content':o(_0x15746d,'*Set\x20format:*\x20%0',o(_0x15746d,'ELEMENT_'+_0x382f9d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x215ef5=this['editor'],_0x126a11=_0x215ef5['locale'];_0x215ef5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a66ec=>{if('formatBlock'!=_0x2a66ec['type'])return;const {data:_0x519e59}=_0x2a66ec;if(!_0x519e59)return;let _0x4f3f7a,_0x39bbab;switch(_0x519e59['commandName']){case'listStyle':_0x4f3f7a='*Change\x20to:*\x20%0',_0x39bbab={'type':'format','content':o(_0x126a11,_0x4f3f7a,o(_0x126a11,this['_getTranslationKeyForListStyle'](_0x519e59['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f3f7a=_0x519e59['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x39bbab={'type':'format','content':o(_0x126a11,_0x4f3f7a)};break;case'listStart':_0x4f3f7a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x39bbab={'type':'format','content':o(_0x126a11,_0x4f3f7a,_0x519e59['commandParams'][0x0]['startIndex'])};}return _0x39bbab;});}['_getTranslationKeyForListStyle'](_0x2899c8){return'ELEMENT_'+function(_0x438754){if(ye['includes'](_0x438754))return'bulleted';if(he['includes'](_0x438754))return'numbered';return null;}(_0x2899c8)['toUpperCase']()+'_LIST_'+_0x2899c8['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x30666f{static get['requires'](){return[_0x3a33c4];}['init'](){const _0x31bebf=this['editor'],_0x1d5389=_0x31bebf['plugins']['get']('TrackChangesEditing'),_0x3718a5=_0x31bebf['commands']['get']('enter');_0x1d5389['enableCommand']('enter',()=>{_0x31bebf['model']['change'](_0x4688c2=>{const _0x833db6=_0x31bebf['model']['document']['selection'],_0x1596d8=_0x833db6['getFirstPosition'](),_0x3268c7=_0x2fbf4a['fromRange'](_0x833db6['getFirstRange']());if(_0x3718a5['enterBlock'](_0x4688c2)){const _0x3e56bc=_0x31bebf['model']['createPositionAt'](_0x1596d8['parent']['nextSibling'],0x0),_0x3851fe=_0x4688c2['createRange'](_0x1596d8,_0x3e56bc);_0x1d5389['markInsertion'](_0x3851fe);}else _0x4688c2['setSelection'](_0x4688c2['createRange'](_0x3268c7['end']));_0x3268c7['detach'](),_0x3718a5['fire']('afterExecute',{'writer':_0x4688c2});});}),_0x31bebf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x31bebf,'split'),{'priority':'high'}),_0x31bebf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x58ef6f,_0x182d84,_0x18905c)=>{const _0x2814fc=_0x18905c['mapper']['markerNameToElements'](_0x182d84['markerName']);if(_0x2814fc){for(const _0x26a2b8 of _0x2814fc)_0x26a2b8['hasClass']('ck-suggestion-marker-split')&&(_0x18905c['mapper']['unbindElementFromMarkerName'](_0x26a2b8,_0x182d84['markerName']),_0x18905c['writer']['remove'](_0x26a2b8));}},{'priority':'high'}),_0x31bebf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x558092,_0x34ac9f,_0x48e257)=>{_0x48e257['options']['showSuggestionHighlights']&&_e(_0x31bebf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x558092,_0x34ac9f,_0x48e257);},{'priority':'high'});}}class J extends _0x30666f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x42fdf7=this['editor']['plugins']['get']('TrackChangesEditing');_0x42fdf7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x42fdf7['enableCommand']('findNext'),_0x42fdf7['enableCommand']('findPrevious'),_0x42fdf7['enableCommand']('replace'),_0x42fdf7['enableCommand']('replaceAll');}['handleFindCommand'](_0x162c81,_0x48310d,_0x879d9a={}){const _0x38ed70=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x162c81(_0x360303=>{let _0x5092e2=('string'==typeof _0x48310d?_0x38ed70['findByTextCallback'](_0x48310d,_0x879d9a):_0x48310d)(_0x360303);Array['isArray'](_0x5092e2)&&(_0x5092e2={'results':_0x5092e2,'searchText':'string'==typeof _0x48310d?_0x48310d:''});const _0x40eab7=_0x5092e2['results']['filter'](_0x2480ba=>!0x1===this['_isInDeletionRange'](_0x2480ba,_0x360303['item']));return{..._0x5092e2,'results':_0x40eab7};},_0x879d9a);}['_isInDeletionRange'](_0x516753,_0x2e4a33){const _0x2b2fb5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e4a33,_0x516753['start']),this['editor']['model']['createPositionAt'](_0x2e4a33,_0x516753['end']));for(const _0xe6ca76 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2b2fb5['getIntersection'](_0xe6ca76['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 _0x30666f{['afterInit'](){const _0xd60f12=this['editor']['locale'],_0x86bcab=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x11ef06,commandName:_0x321bf0}of ro)this['editor']['plugins']['has'](_0x11ef06)&&(_0x86bcab['enableDefaultAttributesIntegration'](_0x321bf0),_0x86bcab['registerInlineAttribute'](_0x321bf0));_0x86bcab['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xd60f12,'FORMAT_FONT_SIZE')),_0x86bcab['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xd60f12,'FORMAT_FONT_FAMILY')),_0x86bcab['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xd60f12,'FORMAT_FONT_COLOR')),_0x86bcab['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xd60f12,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12abf3=this['editor'],_0xce40fd=_0x12abf3['locale'];_0x12abf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8992e6=>{const _0x546e4e=_0xce40fd['t'];if('formatInline'!=_0x8992e6['type'])return;const {data:_0x89d51e}=_0x8992e6;if(null!=_0x89d51e){if('fontSize'==_0x89d51e['commandName']){const _0x203953=_0x89d51e['commandParams'][0x0]['value'];if(_0x203953){const _0x9fb813=_0x546e4e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x39ac04=>_0x39ac04['model']==_0x203953)['title'])['toLowerCase']();return{'type':'format','content':o(_0xce40fd,'*Set\x20font\x20size:*\x20%0',_0x9fb813)};}return{'type':'format','content':o(_0xce40fd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x89d51e['commandName']){const _0x45f9c1=_0x89d51e['commandParams'][0x0]['value'];return _0x45f9c1?{'type':'format','content':o(_0xce40fd,'*Set\x20font\x20family:*\x20%0',_0x45f9c1)}:{'type':'format','content':o(_0xce40fd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x89d51e['commandName']){const _0xd1861b=_0x89d51e['commandParams'][0x0]['value'];if(_0xd1861b){const _0x29b0fe=_0x3fb39d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x14e703=>_0x14e703['model']==_0xd1861b);let _0x3ffbab=_0xd1861b,_0x2afc91='';return _0x29b0fe&&(_0x3ffbab=_0x29b0fe['label'],_0x2afc91=_0x546e4e(_0x3ffbab)['toLowerCase']()),{'type':'format','content':o(_0xce40fd,'*Set\x20font\x20color:*\x20%0',_0x2afc91)['trim'](),'color':{'value':_0xd1861b,'title':_0x2afc91||_0x3ffbab}};}return{'type':'format','content':o(_0xce40fd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x89d51e['commandName']){const _0x30ba2c=_0x89d51e['commandParams'][0x0]['value'];if(_0x30ba2c){const _0x48a525=_0x3fb39d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2c781e=>_0x2c781e['model']==_0x30ba2c);let _0x50a159=_0x30ba2c,_0x4b4ba9='';return _0x48a525&&(_0x50a159=_0x48a525['label'],_0x4b4ba9=_0x546e4e(_0x50a159)['toLowerCase']()),{'type':'format','content':o(_0xce40fd,'*Set\x20font\x20background\x20color:*\x20%0',_0x4b4ba9)['trim'](),'color':{'value':_0x30ba2c,'title':_0x4b4ba9||_0x50a159}};}return{'type':'format','content':o(_0xce40fd,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x30666f{['afterInit'](){const _0xc8487=this['editor'],_0x40af19=_0xc8487['plugins']['get']('TrackChangesEditing'),_0x4b048b=_0xc8487['commands']['get']('copyFormat'),_0x1d901c=_0xc8487['commands']['get']('pasteFormat');_0x4b048b&&_0x1d901c&&(_0x40af19['enableDefaultAttributesIntegration']('pasteFormat'),_0x40af19['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x49317b=this['editor'],_0x40d8de=_0x49317b['locale'];_0x49317b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1865e4=>{if('formatBlock'!=_0x1865e4['type']&&'formatInline'!=_0x1865e4['type'])return;const {data:_0x1e219b}=_0x1865e4;if(_0x1e219b&&'pasteFormat'===_0x1e219b['commandName']){const _0x4230ae=[],_0x59db03=_0x1e219b['commandParams'][0x0];for(const [_0x4d371f,_0x1e6837]of Object['entries'](_0x59db03))_0x4230ae['push'](so(_0x49317b,_0x4d371f,_0x1e6837));return _0x4230ae['length']?{'type':'format','content':o(_0x40d8de,'*Set\x20format\x20to:*\x20%0',_0x4230ae['join'](',\x20'))}:{'type':'format','content':o(_0x40d8de,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3a140d,_0x509367,_0x38450e){const _0x538fa2=_0x3a140d['locale']['t'],_0x4a1b05=_0x509367['split'](/(?=[A-Z])/)['join']('\x20'),_0x4a93d1=_0x538fa2(_0x4a1b05['charAt'](0x0)['toUpperCase']()+_0x4a1b05['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x38450e)return _0x4a93d1;if('fontColor'===_0x509367||'fontBackgroundColor'===_0x509367){const _0x27e197=_0x3fb39d(_0x3a140d['config']['get']('fontColor.colors'))['find'](_0x5918df=>_0x5918df['model']==_0x38450e);return _0x4a93d1+'\x20('+(_0x27e197?_0x538fa2(_0x27e197['label'])['toLowerCase']():_0x38450e)+')';}if('fontSize'===_0x509367&&isNaN(parseFloat(_0x38450e))){const _0x3cb0a7=_0x3a140d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3a140d['config']['get']('fontSize.options'))['find'](_0x393631=>_0x393631['model']==_0x38450e);return _0x4a93d1+'\x20('+(_0x3cb0a7?_0x538fa2(_0x3cb0a7['title'])['toLowerCase']():_0x38450e)+')';}return _0x4a93d1+'\x20('+_0x38450e+')';}class Y extends _0x30666f{['_headingOptions'];['afterInit'](){const _0x5d9464=this['editor'];if(!_0x5d9464['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5d9464['config']['get']('heading.options');const _0x185a2d=_0x5d9464['locale'],_0x5d6524=_0x5d9464['plugins']['get']('TrackChangesEditing');_0x5d6524['enableDefaultAttributesIntegration']('heading');for(const _0x1bf9d4 of this['_headingOptions'])'paragraph'!=_0x1bf9d4['model']&&_0x5d6524['descriptionFactory']['registerElementLabel'](_0x1bf9d4['model'],_0xa5e9e6=>{const _0x2dfda8=this['_getHeadingLevel'](_0x1bf9d4['model']);return null!==_0x2dfda8?_0x226cc9(_0xa5e9e6,_0x2dfda8):_0x383322(_0xa5e9e6,_0x1bf9d4['title']);});function _0x226cc9(_0xac348d,_0x588fa0){return o(_0x185a2d,'ELEMENT_HEADING',[_0xac348d,_0x588fa0]);}function _0x383322(_0x10ffa4,_0x15a387){return o(_0x185a2d,'ELEMENT_HEADING_CUSTOM',[_0x10ffa4,_0x15a387]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a527e=this['editor'],_0x1e2ecf=_0x1a527e['locale'];function _0xccfcf6(_0x6e83ea,_0x10996a){return o(_0x1e2ecf,'ELEMENT_HEADING_CUSTOM',[_0x6e83ea,_0x10996a]);}_0x1a527e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a17e1=>{if('formatBlock'!=_0x5a17e1['type'])return;const {data:_0x21401d}=_0x5a17e1;if(_0x21401d&&'heading'==_0x21401d['commandName']){const _0x1ba786=_0x21401d['commandParams'][0x0]['value'],_0xfe0d38=this['_getHeadingLevel'](_0x1ba786);if(null!==_0xfe0d38)return{'type':'format','content':o(_0x1e2ecf,'*Change\x20to:*\x20%0',(_0x473eab=0x1,_0x27e12a=_0xfe0d38,o(_0x1e2ecf,'ELEMENT_HEADING',[_0x473eab,_0x27e12a])))};const _0x188905=this['_headingOptions']['find'](_0x3200ed=>_0x3200ed['model']===_0x1ba786)['title'];return{'type':'format','content':o(_0x1e2ecf,'*Change\x20to:*\x20%0',_0xccfcf6(0x1,_0x188905))};}var _0x473eab,_0x27e12a;});}['_getHeadingLevel'](_0x5647db){const _0x235d7d=_0x5647db['match'](/^heading(\d+)/);if(_0x235d7d)return _0x235d7d[0x1];const _0x27b81e=this['_headingOptions']?.['find'](_0x3d9be4=>_0x3d9be4['model']==_0x5647db);if(_0x27b81e&&_0x27b81e['view']){const _0x2a505a=_0x27b81e['view'],_0xe96ff6=(_0x2a505a['name']??_0x2a505a)['match'](/^h(\d+)/);if(_0xe96ff6)return _0xe96ff6[0x1];}return null;}}class Z extends _0x30666f{['afterInit'](){const _0x298ae5=this['editor'];if(!_0x298ae5['plugins']['has']('HighlightEditing'))return;const _0x228d33=_0x298ae5['plugins']['get']('TrackChangesEditing'),_0x332996=_0x298ae5['locale'];_0x228d33['enableDefaultAttributesIntegration']('highlight'),_0x228d33['registerInlineAttribute']('highlight'),_0x228d33['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x332996,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5efb2e=this['editor'],_0x4be921=_0x5efb2e['locale'];_0x5efb2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xce20c5=>{if('formatInline'!=_0xce20c5['type'])return;const {data:_0x5dc11f}=_0xce20c5;if(_0x5dc11f&&'highlight'==_0x5dc11f['commandName']){const _0x254050=_0x4be921['t'],_0x2390ba=_0x5dc11f['commandParams'][0x0]['value'];if(_0x2390ba){const _0x4de794=_0x5efb2e['config']['get']('highlight.options')['find'](_0x4ab38c=>_0x4ab38c['model']==_0x2390ba),_0x135803=_0x254050(_0x4de794['title'])['toLowerCase']();return{'type':'format','content':o(_0x4be921,'*Set\x20highlight:*\x20%0',_0x135803),'color':{'value':_0x4de794['color'],'title':_0x4de794['title']}};}return{'type':'format','content':o(_0x4be921,'*Remove\x20highlight*',o(_0x4be921,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x30666f{['afterInit'](){const _0x1402fc=this['editor'];if(!_0x1402fc['plugins']['has']('HorizontalLineEditing'))return;_0x1402fc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x14f154=_0x1402fc['plugins']['get']('TrackChangesEditing'),_0x4ae40a=_0x1402fc['locale'];_0x14f154['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2445bf=>o(_0x4ae40a,'ELEMENT_HORIZONTAL_LINE',_0x2445bf)),_0x1402fc['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xfe55ca,{writer:_0x3cbaab,options:_0x1b9c86})=>{if(!_0x1b9c86['showSuggestionHighlights'])return null;const _0x2ec993=_0x3cbaab['createContainerElement']('div'),_0x477ede=_0x3cbaab['createEmptyElement']('hr');return _0x3cbaab['addClass']('ck-horizontal-line',_0x2ec993),_0x3cbaab['insert'](_0x3cbaab['createPositionAt'](_0x2ec993,0x0),_0x477ede),_0x2ec993;},'converterPriority':'high'});}}class et extends _0x30666f{['afterInit'](){const _0x22e666=this['editor'];if(!_0x22e666['plugins']['has']('HtmlEmbed'))return;const _0xc32436=_0x22e666['plugins']['get']('TrackChangesEditing'),_0x459e30=_0x22e666['locale'];_0xc32436['descriptionFactory']['registerElementLabel']('rawHtml',_0x3a556b=>o(_0x459e30,'ELEMENT_HTML_EMBED',_0x3a556b)),_0xc32436['enableDefaultAttributesIntegration']('htmlEmbed'),_0xc32436['registerBlockAttribute']('value'),_0xc32436['descriptionFactory']['registerDescriptionCallback'](_0xc2a4c7=>{if('attribute'!=_0xc2a4c7['type'])return;const {data:_0x6ddb7a}=_0xc2a4c7;if(_0x6ddb7a&&'value'==_0x6ddb7a['key']&&_0xc2a4c7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4f0611=o(_0x459e30,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x459e30,'*Change\x20%0\x20content*',_0x4f0611)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x915cae=this['editor'],_0x2db075=_0x915cae['locale'];_0x915cae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ba17c=>{if('formatBlock'!=_0x2ba17c['type'])return;const {data:_0x6ef942}=_0x2ba17c;if(_0x6ef942&&'htmlEmbed'==_0x6ef942['commandName']){const _0x443bd4=o(_0x2db075,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2db075,'*Change\x20%0\x20content*',_0x443bd4)};}});}}class it extends _0x30666f{['afterInit'](){const _0x594b9c=this['editor'];if(!_0x594b9c['plugins']['has']('ImageEditing'))return;const _0x4cb6ab=_0x594b9c['plugins']['get']('TrackChangesEditing'),_0x5170da=_0x594b9c['plugins']['get']('ImageUtils'),_0x7ce660=_0x594b9c['locale'];_0x4cb6ab['enableCommand']('insertImage'),_0x4cb6ab['descriptionFactory']['registerElementLabel']('imageBlock',_0xe663f0=>o(_0x7ce660,'ELEMENT_IMAGE',_0xe663f0)),_0x4cb6ab['descriptionFactory']['registerElementLabel']('imageInline',_0x107017=>o(_0x7ce660,'ELEMENT_INLINE_IMAGE',_0x107017)),_0x4cb6ab['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x7ce660,'ELEMENT_CAPTION')),_0x594b9c['plugins']['has']('ImageUploadEditing')&&_0x4cb6ab['enableCommand']('uploadImage'),_0x594b9c['plugins']['has']('ImageBlockEditing')&&_0x594b9c['plugins']['has']('ImageInlineEditing')&&(_0x4cb6ab['enableCommand']('imageTypeInline',(_0xf15293,_0x52c5ad)=>{const _0xfdd535=_0x5170da['getClosestSelectedImageElement'](_0x594b9c['model']['document']['selection']);_0x594b9c['model']['change'](()=>{_0x4cb6ab['markBlockFormat'](_0xfdd535,{'commandName':'imageTypeInline','commandParams':[_0x52c5ad]},[],'convertBlockImageToInline');});}),_0x4cb6ab['enableCommand']('imageTypeBlock',(_0x359d91,_0x2dd8d5)=>{_0x594b9c['model']['change'](_0x99b10b=>{let _0x99434d=_0x5170da['getClosestSelectedImageElement'](_0x594b9c['model']['document']['selection']),_0x34db3b=_0x99b10b['createRangeOn'](_0x99434d);const _0x33beca=_0x3df0b2['fromPosition'](_0x34db3b['start'],'toPrevious'),_0x25d73d=_0x3df0b2['fromPosition'](_0x34db3b['end'],'toNext');_0x4cb6ab['forceDefaultExecution'](()=>_0x359d91(_0x2dd8d5)),_0x99434d=_0x5170da['getClosestSelectedImageElement'](_0x594b9c['model']['document']['selection']),_0x34db3b=_0x99b10b['createRangeOn'](_0x99434d);const _0x3ab117=_0x99b10b['createRange'](_0x33beca,_0x25d73d);_0x33beca['detach'](),_0x25d73d['detach'](),_0x4cb6ab['markBlockFormat'](_0x99434d,{'commandName':'imageTypeInline','commandParams':[_0x2dd8d5]},[],'convertInlineImageToBlock'),_0x3ab117['start']['isBefore'](_0x34db3b['start'])&&_0x4cb6ab['markInsertion'](_0x99b10b['createRange'](_0x3ab117['start'],_0x34db3b['start']),'convertInlineImageToBlock'),_0x34db3b['end']['isBefore'](_0x3ab117['end'])&&_0x4cb6ab['markInsertion'](_0x99b10b['createRange'](_0x34db3b['end'],_0x3ab117['end']),'convertInlineImageToBlock');});}),_0x4cb6ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4cb6ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4cb6ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4cb6ab['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4cb6ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4cb6ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x30bc95])=>{const _0x28fc34=_0x4cb6ab['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4d82e8=_0x30bc95['start'],_0x579e41=_0x30bc95['end'];const _0x307135=_0x594b9c['model']['schema']['getNearestSelectionRange'](_0x4d82e8,'backward'),_0x3247c8=_0x594b9c['model']['schema']['getNearestSelectionRange'](_0x579e41,'forward');_0x307135['isCollapsed']&&(_0x4d82e8=_0x307135['start']),_0x3247c8['isCollapsed']&&(_0x579e41=_0x3247c8['end']),_0x28fc34([_0x594b9c['model']['createRange'](_0x4d82e8,_0x579e41)]);}),_0x4cb6ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f429c),_0x4cb6ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f429c)),_0x594b9c['plugins']['has']('ImageCaptionEditing')&&(_0x4cb6ab['enableCommand']('toggleImageCaption',(_0x5f145f,_0x645394)=>{const _0x237694=_0x594b9c['plugins']['get']('ImageCaptionUtils');let _0x2925ce=_0x5170da['getClosestSelectedImageElement'](_0x594b9c['model']['document']['selection']),_0x3569d6=_0x237694['getCaptionFromImageModelElement'](_0x2925ce);_0x594b9c['model']['change'](()=>{if(_0x3569d6)return void _0x4cb6ab['markDeletion'](_0x594b9c['model']['createRangeOn'](_0x3569d6));const _0x4a1602=_0x5170da['isBlockImage'](_0x2925ce);_0x5f145f(_0x645394),_0x2925ce=_0x5170da['getClosestSelectedImageElement'](_0x594b9c['model']['document']['selection']),_0x3569d6=_0x237694['getCaptionFromImageModelElement'](_0x2925ce),_0x4cb6ab['markInsertion'](_0x594b9c['model']['createRangeOn'](_0x3569d6),_0x4a1602?null:'imageCaption');});}),_0x4cb6ab['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f429c));const _0x3c9163=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1bd70b(_0x201604,_0x5c743c){const _0x212683=_0x3c9163['findIndex'](({type:_0x2b088c,subType:_0x1a7b63})=>_0x201604['type']==_0x2b088c&&_0x201604['subType']==_0x1a7b63),_0x4364a5=_0x3c9163['findIndex'](({type:_0x3f915a,subType:_0x5a1afa})=>_0x5c743c['type']==_0x3f915a&&_0x5c743c['subType']==_0x5a1afa);if(_0x212683<0x0||_0x4364a5<0x0)return!0x1;const _0x50f30b=_0x201604['getFirstRange'](),_0x3636a2=_0x5c743c['getFirstRange']();if((0x0==_0x212683||0x1==_0x212683)&&0x2==_0x4364a5&&_0x50f30b['isIntersecting'](_0x3636a2))return!0x0;if(0x2==_0x212683&&0x3==_0x4364a5){const _0x2509ab=_0x4cb6ab['_findSuggestions'](_0x50f30b,'insertion')['filter'](({suggestion:_0x55929b,meta:_0x34c741})=>_0x34c741['isOwn']&&'convertInlineImageToBlock'==_0x55929b['subType']);if(_0x2509ab['length']>0x1&&_0x3636a2['end']['isEqual'](_0x50f30b['start']))return!0x0;if(0x1==_0x2509ab['length']&&(_0x50f30b['start']['isEqual'](_0x3636a2['end'])||_0x50f30b['end']['isEqual'](_0x3636a2['start'])))return!0x0;}if(0x3==_0x212683&&0x3==_0x4364a5&&_0x50f30b['start']['isBefore'](_0x3636a2['start'])){const _0x42a52d=_0x50f30b['end']['nodeAfter'],_0x1e6f40=_0x3636a2['start']['nodeBefore'];return _0x5170da['isBlockImage'](_0x42a52d)&&_0x42a52d===_0x1e6f40;}return!0x1;}function _0x2f429c(_0x13f204,_0x550901){return _0x1bd70b(_0x13f204,_0x550901)?[_0x13f204,_0x550901]:_0x1bd70b(_0x550901,_0x13f204)?[_0x550901,_0x13f204]:null;}_0x594b9c['plugins']['has']('ImageResize')&&(_0x4cb6ab['enableDefaultAttributesIntegration']('resizeImage'),_0x4cb6ab['registerBlockAttribute']('resizedWidth'),_0x4cb6ab['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x7ce660,'FORMAT_IMAGE_SIZE'))),_0x594b9c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4cb6ab['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4cb6ab['registerBlockAttribute']('alt')),_0x4cb6ab['descriptionFactory']['registerDescriptionCallback'](_0x1696ea=>{if(!!_0x3c9163['find'](({type:_0x4ad4c3,subType:_0x2dca03})=>_0x1696ea['type']==_0x4ad4c3&&_0x1696ea['subType']==_0x2dca03))return _0x1696ea['previous']?{}:void 0x0;}),_0x4cb6ab['descriptionFactory']['registerDescriptionCallback'](_0x533854=>{if('insertion'==_0x533854['type']||'deletion'==_0x533854['type']){const _0x4023ae=_0x533854['getContainedElement']();if(_0x4023ae&&_0x4023ae['is']('element','caption'))return{'type':'insertion'==_0x533854['type']?'addObject':'removeObject','element':_0x4023ae,'quantity':0x1};}}),_0x4cb6ab['descriptionFactory']['registerDescriptionCallback'](_0x237664=>'formatBlock'==_0x237664['type']&&'convertInlineImageToBlock'==_0x237664['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x237664['type']&&'convertBlockImageToInline'==_0x237664['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4cb6ab['descriptionFactory']['registerDescriptionCallback'](_0x14e420=>{if('attribute'!=_0x14e420['type'])return;const {data:_0x1be9db}=_0x14e420;if(!_0x1be9db||'alt'!=_0x1be9db['key'])return;const _0x38441d=_0x1be9db['newValue'];return _0x38441d?{'type':'format','content':o(_0x7ce660,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x38441d+'\x22')}:{'type':'format','content':o(_0x7ce660,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e394=this['editor'],_0x2a38eb=_0x53e394['locale'];_0x53e394['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d3471=>{if('formatBlock'!=_0x1d3471['type']&&'formatInline'!=_0x1d3471['type'])return;const {data:_0x7a39ea}=_0x1d3471;if(_0x7a39ea){if('imageTextAlternative'==_0x7a39ea['commandName']){const _0x2f223c=_0x7a39ea['commandParams'][0x0]['newValue'];return _0x2f223c?{'type':'format','content':o(_0x2a38eb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f223c+'\x22')}:{'type':'format','content':o(_0x2a38eb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x7a39ea['commandName']){const _0xaddda1=_0x7a39ea['commandParams'][0x0]['width'];return _0xaddda1?{'type':'format','content':o(_0x2a38eb,'*Set\x20image\x20width:*\x20%0',_0xaddda1)}:{'type':'format','content':o(_0x2a38eb,'*Reset\x20image\x20width*')};}}});}}class st extends _0x30666f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x27ab33=this['editor']['locale'],_0x1ee6fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ee6fd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1ee6fd['registerBlockAttribute']('src'),_0x1ee6fd['descriptionFactory']['registerDescriptionCallback'](_0x54c29f=>{if('attribute'!=_0x54c29f['type'])return;const {data:_0x12cf74}=_0x54c29f;return _0x12cf74&&'src'==_0x12cf74['key']?_0x12cf74['newValue']&&_0x12cf74['oldValue']?{'type':'format','content':o(_0x27ab33,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8e8fa9=this['editor']['plugins']['get']('TrackChangesEditing');_0x8e8fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x8e8fa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8e8fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x8e8fa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39a5b6=this['editor'],_0x5ad853=_0x39a5b6['locale'];_0x39a5b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cfbcf=>{if('formatBlock'!=_0x1cfbcf['type']&&'formatInline'!=_0x1cfbcf['type'])return;const {data:_0xaeef85}=_0x1cfbcf;if(!_0xaeef85||'replaceImageSource'!=_0xaeef85['commandName'])return;return{'type':'format','content':o(_0x5ad853,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x30666f{['afterInit'](){const _0x28a809=this['editor'];if(!_0x28a809['plugins']['has']('ImageStyleEditing'))return;const _0x4e7e83=_0x28a809['plugins']['get']('TrackChangesEditing'),_0x5a1cbf=_0x28a809['plugins']['get']('ImageUtils'),_0x22dd71={};_0x4e7e83['enableCommand']('imageStyle',(_0x253e41,_0x37f361)=>{const _0x1e3f20=_0x28a809['plugins']['get']('Users')['me'],_0x4852da=_0x28a809['commands']['get']('imageStyle');let _0x39fea7=_0x5a1cbf['getClosestSelectedImageElement'](_0x28a809['model']['document']['selection']),_0x5a442c=_0x28a809['model']['createRangeOn'](_0x39fea7),_0x1ef408=_0x4852da['value'];if(_0x1ef408==_0x37f361['value'])return;const _0x5b51f8={'commandName':'imageStyle','commandParams':[_0x37f361],'formatGroupId':_0x556763()};_0x28a809['model']['change'](()=>{if(_0x4e7e83['getSuggestions']()['filter'](_0x1b6c88=>_0x1b6c88['isInContent']&&_0x1e3f20==_0x1b6c88['author']&&('formatBlock'==_0x1b6c88['type']||'formatInline'==_0x1b6c88['type'])&&('imageStylePreApply'==_0x1b6c88['subType']||'imageStylePostApply'==_0x1b6c88['subType'])&&_0x1b6c88['getFirstRange']()['isEqual'](_0x5a442c))['forEach'](_0x25cb8f=>_0x4e7e83['discardSuggestion'](_0x25cb8f['head'])),_0x39fea7=_0x5a1cbf['getClosestSelectedImageElement'](_0x28a809['model']['document']['selection']),_0x5a442c=_0x28a809['model']['createRangeOn'](_0x39fea7),_0x4852da['refresh'](),_0x28a809['commands']['get']('imageTypeInline')['refresh'](),_0x28a809['commands']['get']('imageTypeBlock')['refresh'](),_0x1ef408=_0x4852da['value'],_0x1ef408!=_0x37f361['value'])return _0x5a1cbf['isInlineImage'](_0x39fea7)&&_0x4852da['shouldConvertImageType'](_0x37f361['value'],_0x39fea7)?(_0x253e41({..._0x37f361,'setImageSizes':!0x1}),_0x39fea7=_0x5a1cbf['getClosestSelectedImageElement'](_0x28a809['model']['document']['selection']),void _0x4e7e83['markBlockFormat'](_0x39fea7,{..._0x5b51f8,'commandReversedParams':[{'value':_0x1ef408||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5a1cbf['isBlockImage'](_0x39fea7)?_0x4e7e83['markBlockFormat'](_0x39fea7,_0x5b51f8,[],'imageStylePostApply'):_0x4e7e83['markInlineFormat'](_0x5a442c,_0x5b51f8,'imageStylePostApply'));});});for(const _0xa568a7 of _0x28a809['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x22dd71[_0xa568a7['name']]=_0xa568a7['title']['toLowerCase']();_0x4e7e83['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e7e83['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e7e83['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e7e83['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x136510])=>{_0x5a1cbf['setImageNaturalSizeAttributes'](_0x136510['getContainedElement']());}),_0x4e7e83['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4d3727,_0x5afb56)=>{_0x4e7e83['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4d3727,{'commandName':_0x5afb56['commandName'],'commandParams':_0x5afb56['commandReversedParams']});}),_0x4e7e83['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1f305d,_0x5ca7a8){if(_0x1b8e7f(_0x1f305d,_0x5ca7a8))return[_0x1f305d,_0x5ca7a8];if(_0x1b8e7f(_0x5ca7a8,_0x1f305d))return[_0x5ca7a8,_0x1f305d];return null;});const _0x305473=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1b8e7f(_0x48d441,_0x224e6d){const _0x362b41=_0x305473['findIndex'](({type:_0x380615,subType:_0x231f3b})=>_0x48d441['type']==_0x380615&&_0x48d441['subType']==_0x231f3b),_0x39f11f=_0x305473['findIndex'](({type:_0x45ce75,subType:_0x26a96c})=>_0x224e6d['type']==_0x45ce75&&_0x224e6d['subType']==_0x26a96c);if(_0x362b41<0x0||_0x39f11f<0x0)return!0x1;const _0x138448=_0x48d441['getFirstRange'](),_0x451219=_0x224e6d['getFirstRange']();if((0x0==_0x362b41||0x1==_0x362b41)&&0x2==_0x39f11f&&_0x138448['isIntersecting'](_0x451219))return!0x0;if(0x2==_0x362b41&&0x3==_0x39f11f){const _0x2e11ed=_0x4e7e83['_findSuggestions'](_0x138448,'insertion')['filter'](({suggestion:_0x49710b,meta:_0x2d2def})=>_0x2d2def['isOwn']&&'convertInlineImageToBlock'==_0x49710b['subType']);if(_0x2e11ed['length']>0x1&&_0x451219['end']['isEqual'](_0x138448['start']))return!0x0;if(0x1==_0x2e11ed['length']&&(_0x138448['start']['isEqual'](_0x451219['end'])||_0x138448['end']['isEqual'](_0x451219['start'])))return!0x0;}if(0x3==_0x362b41&&0x3==_0x39f11f&&_0x138448['start']['isBefore'](_0x451219['start'])){const _0x28cf7f=_0x138448['end']['nodeAfter'],_0x2cfe63=_0x451219['start']['nodeBefore'];return _0x5a1cbf['isBlockImage'](_0x28cf7f)&&_0x28cf7f===_0x2cfe63;}return!0x1;}_0x28a809['model']['document']['registerPostFixer'](()=>{let _0x2406a5=!0x1;const _0x5bee3d=Array['from'](_0x28a809['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a3694,data:_0x14741d}of _0x5bee3d){const {group:_0x46259f,type:_0x152408,subType:_0x317a59,id:_0x34e704}=_0x4e7e83['_splitMarkerName'](_0x2a3694);if('suggestion'==_0x46259f&&_0x4e7e83['hasSuggestion'](_0x34e704)){if('formatBlock'==_0x152408&&('imageStylePreApply'==_0x317a59||'imageStylePostApply'==_0x317a59)){const _0x728b7=_0x4e7e83['getSuggestion'](_0x34e704);if(_0x14741d['newRange']){const _0x79c0ce=_0x728b7['getFirstRange']()['getContainedElement']();if(_0x5a1cbf['isBlockImage'](_0x79c0ce))continue;_0x4e7e83['discardSuggestion'](_0x728b7),_0x2406a5=!0x0;}}if('insertion'==_0x152408&&'imageCaption'==_0x317a59&&!_0x14741d['newRange']){const _0xcedf4b=_0x4e7e83['getSuggestion'](_0x34e704);_0xcedf4b['next']&&_0xcedf4b['next']['isInContent']&&(_0x4e7e83['discardSuggestion'](_0xcedf4b['next']),_0x2406a5=!0x0);}}}return _0x2406a5;}),this['_registerLegacyDescription'](_0x22dd71);}['_registerLegacyDescription'](_0x49d335){const _0x4ee37c=this['editor'],_0x528630=_0x4ee37c['locale'];_0x4ee37c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4749f9=>{if('formatBlock'!=_0x4749f9['type']&&'formatInline'!=_0x4749f9['type'])return;const {data:_0x521605}=_0x4749f9;if(!_0x521605||'imageStyle'!=_0x521605['commandName'])return;const _0x3026dd=_0x521605['commandParams'][0x0]['value'];return _0xf92139('side'===_0x3026dd?o(_0x528630,'FORMAT_SIDE_IMAGE'):_0x49d335[_0x3026dd]||_0x3026dd);function _0xf92139(_0x2b2b8f){return{'type':'format','content':o(_0x528630,'*Format:*\x20%0',_0x2b2b8f)};}});}}class ot extends _0x30666f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x36855c){super(_0x36855c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5c6b10=this['editor'],_0x597ba6=_0x5c6b10['commands']['get']('importWord'),_0x3c9630=_0x5c6b10['commands']['get']('trackChanges');_0x597ba6&&(_0x597ba6['on']('execute',(_0x5ba410,[,_0x14ee9c])=>{this['_trackChangesValueDuringImport']=_0x3c9630['value'],_0x14ee9c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x597ba6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x597ba6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3c9630['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5c6b10['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x9e1ae1,_0xb521ac){const {suggestions:_0x2c1973}=_0xb521ac,_0x447ac4=this['editor']['commands']['get']('trackChanges'),_0x4a3d64=_0x447ac4['value'];this['_trackChangesValueDuringImport']!==_0x4a3d64&&(_0x447ac4['execute'](),this['_trackChangesExecuted']=!0x0),_0x2c1973&&_0x2c1973['forEach'](({id:_0x30d6f1,type:_0x370ae1,author:_0x274cb1,created_at:_0x337894})=>{const _0x46e789={'id':_0x30d6f1,'type':_0x370ae1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x274cb1,'createdAt':_0x337894?new Date(_0x337894):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x46e789);});}}class rt extends _0x30666f{['afterInit'](){const _0x424411=this['editor'],_0x2ba52e=_0x424411['plugins']['get']('TrackChangesEditing');if(_0x424411['plugins']['has']('IndentEditing')&&(_0x2ba52e['enableCommand']('indent'),_0x2ba52e['enableCommand']('outdent')),_0x424411['plugins']['has']('IndentBlock')){for(const _0x573e96 of['indentBlock','outdentBlock'])_0x2ba52e['enableDefaultAttributesIntegration'](_0x573e96);}const _0x533993=_0x424411['locale'];_0x2ba52e['registerBlockAttribute']('blockIndent'),_0x2ba52e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x533993,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x165883=this['editor'],_0x179979=_0x165883['locale'],_0x34f94d=_0x165883['plugins']['get']('TrackChangesEditing');_0x34f94d['descriptionFactory']['registerDescriptionCallback'](_0x324d8e=>{if('formatBlock'!=_0x324d8e['type'])return;const {data:_0x53135a}=_0x324d8e;if(!_0x53135a)return;if('indentBlock'!=_0x53135a['commandName']&&'outdentBlock'!=_0x53135a['commandName'])return;const _0x369499=_0x324d8e['getItems']()[0x0],_0x553e55=_0x34f94d['descriptionFactory']['getItemLabel'](_0x369499);return'indentBlock'==_0x53135a['commandName']?{'type':'format','content':o(_0x179979,'*Indent:*\x20%0',_0x553e55)}:'outdentBlock'==_0x53135a['commandName']?{'type':'format','content':o(_0x179979,'*Outdent:*\x20%0',_0x553e55)}:void 0x0;});}}class at extends _0x30666f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x30666f{['afterInit'](){const _0x3cccec=this['editor'];if(!_0x3cccec['plugins']['has']('LinkEditing'))return;const _0x4944a8=_0x3cccec['plugins']['get']('TrackChangesEditing'),_0x2fd823=_0x3cccec['commands']['get']('link');_0x4944a8['enableDefaultAttributesIntegration']('link'),_0x4944a8['enableDefaultAttributesIntegration']('unlink'),_0x4944a8['registerInlineAttribute']('linkHref');for(const _0x1bcda4 of _0x2fd823['manualDecorators'])_0x4944a8['registerInlineAttribute'](_0x1bcda4['id']),_0x4944a8['descriptionFactory']['registerAttributeLabel'](_0x1bcda4['id'],'link\x20('+_0x1bcda4['label']['toLowerCase']()+')');_0x4944a8['descriptionFactory']['registerDescriptionCallback'](_0x22fd84=>{if('attribute'!=_0x22fd84['type'])return;const {data:_0x18a9e0}=_0x22fd84;if(!_0x18a9e0||'linkHref'!=_0x18a9e0['key'])return;const _0x227fef=_0x18a9e0['newValue'],_0x8ddb70=_0x3cccec['locale'];return{'type':'format','content':null==_0x227fef?o(_0x8ddb70,'*Remove\x20link*'):o(_0x8ddb70,'*Set\x20link:*\x20%0','\x22'+_0x227fef+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbc55fd=this['editor'],_0x17c38f=_0xbc55fd['locale'];_0xbc55fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44349f=>{if('formatInline'!=_0x44349f['type'])return;const {data:_0x425aaf}=_0x44349f;if(_0x425aaf){if('link'==_0x425aaf['commandName']){const _0x4c6ce5=_0x425aaf['commandParams'][0x0];return{'type':'format','content':o(_0x17c38f,'*Set\x20link:*\x20%0','\x22'+_0x4c6ce5+'\x22')};}return'unlink'==_0x425aaf['commandName']?{'type':'format','content':o(_0x17c38f,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x30666f{['afterInit'](){const _0x17d2ae=this['editor'],_0x4e514b=_0x17d2ae['locale'];if(!_0x17d2ae['plugins']['has']('LegacyListEditing'))return;const _0x22f2bf=_0x17d2ae['plugins']['get']('TrackChangesEditing'),_0x22c401=_0x17d2ae['plugins']['has']('LegacyTodoListEditing');function _0x5c69d9(_0xb31ece){return()=>{const _0x592a9b=_0x17d2ae['model']['document']['selection'],_0x40ac27=_0x17d2ae['commands']['get'](_0xb31ece);if(_0x40ac27['value'])return void _0x17d2ae['execute']('paragraph',{});const _0x256732=_0xb31ece['slice'](0x0,-0x4),_0x1f8282=function(_0x114da4,_0x142a8,_0x248813){let _0x1486f4=Array['from'](_0x114da4)['filter'](_0xa6d391=>function(_0x5dfe6f,_0x1dbfef){return _0x1dbfef['checkChild'](_0x5dfe6f['parent'],'listItem')&&!_0x1dbfef['isObject'](_0x5dfe6f);}(_0xa6d391,_0x248813));_0x1486f4=_0x1486f4['filter'](_0x4732fb=>!_0x4732fb['is']('element','listItem')||_0x4732fb['getAttribute']('listType')!=_0x142a8);const _0x1fbfdb=new Set();for(const _0x6317f3 of _0x1486f4)_0x6317f3['is']('element','listItem')?_0x1fbfdb['add'](fe(_0x6317f3)):_0x1fbfdb['add'](_0x6317f3);return Array['from'](_0x1fbfdb);}(_0x592a9b['getSelectedBlocks'](),_0x256732,_0x17d2ae['model']['schema']);_0x17d2ae['model']['change'](()=>{for(const _0x39da6d of _0x1f8282)_0x22f2bf['markBlockFormat'](_0x39da6d,{'commandName':_0xb31ece,'commandParams':[{'forceValue':!_0x40ac27['value']}],'formatGroupId':'blockName'},ue(_0x39da6d));});};}function _0xd225ce(_0x528057){return()=>{const _0x4b30f0=function(_0x4732d9){let _0x41e02a=Array['from'](_0x4732d9);const _0x541599=_0x41e02a['findIndex'](_0x5e1446=>'listItem'!=_0x5e1446['name']);return _0x541599>-0x1&&(_0x41e02a=_0x41e02a['slice'](0x0,_0x541599)),_0x41e02a;}(_0x17d2ae['model']['document']['selection']['getSelectedBlocks']()),_0xba7c51=_0x17d2ae['model']['createRange'](_0x17d2ae['model']['createPositionAt'](_0x4b30f0[0x0],'before'),_0x17d2ae['model']['createPositionAt'](_0x4b30f0[_0x4b30f0['length']-0x1],'end'));_0x17d2ae['model']['change'](()=>{_0x22f2bf['markBlockFormat'](_0xba7c51,{'commandName':_0x528057,'commandParams':[],'formatGroupId':'listIndent'},function(_0x10548d){const _0x334348=new Set();for(const _0xb89de0 of _0x10548d){let _0x152036=_0xb89de0['nextSibling'];for(;_0x152036&&_0x152036['getAttribute']('listIndent')>_0xb89de0['getAttribute']('listIndent');)_0x334348['add'](_0x152036),_0x152036=_0x152036['nextSibling'];}return Array['from'](_0x334348);}(_0x4b30f0));});};}_0x22f2bf['enableCommand']('numberedList',_0x5c69d9('numberedList')),_0x22f2bf['enableCommand']('bulletedList',_0x5c69d9('bulletedList')),_0x22c401&&_0x22f2bf['enableCommand']('todoList',_0x5c69d9('todoList')),_0x22f2bf['enableCommand']('indentList',_0xd225ce('indentList')),_0x22f2bf['enableCommand']('outdentList',_0xd225ce('outdentList')),_0x22c401&&_0x22f2bf['enableCommand']('checkTodoList',()=>{const _0x1dfeb8=_0x17d2ae['commands']['get']('checkTodoList'),_0x550198=Array['from'](_0x1dfeb8['_selectedElements']);_0x550198['filter'](_0x598ead=>_0x598ead['getAttribute']('todoListChecked')!=_0x1dfeb8['value']),_0x17d2ae['model']['change'](()=>{for(const _0x91827f of _0x550198)_0x22f2bf['markBlockFormat'](_0x91827f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1dfeb8['value']}]});});}),_0x22f2bf['descriptionFactory']['registerElementLabel']('listItem',_0x20fd0f=>o(_0x4e514b,'ELEMENT_LIST_ITEM',_0x20fd0f)),_0x22f2bf['descriptionFactory']['registerDescriptionCallback'](_0x33ffc7=>{if('formatBlock'!=_0x33ffc7['type']&&'formatInline'!=_0x33ffc7['type'])return;const {data:_0x47a9c7}=_0x33ffc7;if(_0x47a9c7){if('numberedList'==_0x47a9c7['commandName']||'bulletedList'==_0x47a9c7['commandName']||'todoList'==_0x47a9c7['commandName'])switch(_0x47a9c7['commandName']['replace']('List','')){case'bulleted':return _0x43fe2e(o(_0x4e514b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x43fe2e(o(_0x4e514b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x43fe2e(o(_0x4e514b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x47a9c7['commandName'])return{'type':'format','content':o(_0x4e514b,'*Indent:*\x20%0',o(_0x4e514b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x47a9c7['commandName'])return{'type':'format','content':o(_0x4e514b,'*Outdent:*\x20%0',o(_0x4e514b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x47a9c7['commandName'])return _0x47a9c7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e514b,'*Check\x20item*')}:{'type':'format','content':o(_0x4e514b,'*Uncheck\x20item*')};}function _0x43fe2e(_0x51f7a0){return{'type':'format','content':o(_0x4e514b,'*Change\x20to:*\x20%0',_0x51f7a0)};}});}}function fe(_0x395234){const _0x58a010=_0x395234['getAttribute']('listIndent');if(0x0==_0x58a010)return _0x395234;let _0x432f2d=_0x395234;for(;_0x395234['previousSibling']&&_0x395234['previousSibling']['is']('element','listItem');){const _0x5a2753=_0x395234['previousSibling']['getAttribute']('listIndent');if(_0x5a2753==_0x58a010)_0x432f2d=_0x395234['previousSibling'];else{if(_0x5a2753<_0x58a010)break;}_0x395234=_0x395234['previousSibling'];}return _0x432f2d;}function ue(_0x35e9d5){const _0x568053=[];if(_0x35e9d5['is']('element','listItem')&&_0x35e9d5['getAttribute']('listIndent')>0x0){let _0x4b296e=_0x35e9d5['nextSibling'];for(;_0x4b296e&&'listItem'==_0x4b296e['name']&&_0x4b296e['getAttribute']('listIndent')==_0x35e9d5['getAttribute']('listIndent');)_0x568053['push'](_0x4b296e),_0x4b296e=_0x4b296e['nextSibling'];}return _0x568053;}class K extends _0x30666f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x257f94=this['editor']['config']['get']('list.properties'),_0x57919a=this['editor']['plugins']['get']('TrackChangesEditing');_0x257f94['styles']&&_0x57919a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x257f94['reversed']&&_0x57919a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x257f94['startIndex']&&_0x57919a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x57919a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x16666a,_0x58b404={}){const _0x2419e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x196e22=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2419e2['markMultiRangeBlockFormat'](_0x196e22,{'commandName':'listStyle','commandParams':[{'type':_0x58b404['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x20700c,_0x5cdda3={}){const _0x425984=this['editor']['plugins']['get']('TrackChangesEditing'),_0x374bd8=this['_getSuggestionBlocks'](_0x17be42=>_0x17be42['is']('element','listItem')&&'numbered'===_0x17be42['getAttribute']('listType'));if(_0x374bd8['length']<0x1)return;const _0x3a4472=_0x374bd8['map'](_0x35125d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x35125d,'before'),this['editor']['model']['createPositionAt'](_0x35125d,0x0)));this['editor']['model']['change'](()=>{_0x425984['markMultiRangeBlockFormat'](_0x3a4472,{'commandName':'listReversed','commandParams':[{'reversed':_0x5cdda3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x99f1ef,_0x2462e6={}){const _0x1a6394=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5942db=this['_getSuggestionBlocks'](_0x35647a=>_0x35647a['is']('element','listItem')&&'numbered'===_0x35647a['getAttribute']('listType'));if(_0x5942db['length']<0x1)return;const _0x42c7c5=_0x5942db['map'](_0x48019a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48019a,'before'),this['editor']['model']['createPositionAt'](_0x48019a,0x0)));this['editor']['model']['change'](()=>{_0x1a6394['markMultiRangeBlockFormat'](_0x42c7c5,{'commandName':'listStart','commandParams':[{'startIndex':_0x2462e6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2f0273){if('formatBlock'!=_0x2f0273['type']&&'formatInline'!=_0x2f0273['type'])return;const _0x3f273f=this['editor']['locale'],{data:_0xcfb888}=_0x2f0273;if(!_0xcfb888)return;let _0x46d33c,_0x10722f;switch(_0xcfb888['commandName']){case'listStyle':_0x46d33c='*Change\x20to:*\x20%0',_0x10722f={'type':'format','content':o(_0x3f273f,_0x46d33c,o(_0x3f273f,this['_getTranslationKeyForListStyle'](_0xcfb888['commandParams'][0x0]['type'])))};break;case'listReversed':_0x46d33c=_0xcfb888['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x10722f={'type':'format','content':o(_0x3f273f,_0x46d33c)};break;case'listStart':_0x46d33c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x10722f={'type':'format','content':o(_0x3f273f,_0x46d33c,_0xcfb888['commandParams'][0x0]['startIndex'])};}return _0x10722f;}['_getSuggestionBlocksForListStyle'](){const _0x2fe821=this['editor']['plugins']['get']('LegacyListUtils');let _0x5320f0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5320f0[0x0]?.['is']('element','listItem')&&_0x5320f0['unshift'](..._0x2fe821['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5320f0[_0x5320f0['length']-0x1]?.['is']('element','listItem')&&_0x5320f0['push'](..._0x2fe821['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5320f0=[...new Set(_0x5320f0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5320f0=_0x5320f0['filter'](_0x3c19f5=>_0x3c19f5['is']('element','listItem'))),_0x5320f0;}['_getSuggestionBlocks'](_0x51d072){const _0x5248e6=this['editor']['plugins']['get']('LegacyListUtils');let _0x45158a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x51d072)['map'](_0x4cfd63=>{const _0x23519e=this['editor']['model']['createPositionAt'](_0x4cfd63,0x0);return[..._0x5248e6['getSiblingNodes'](_0x23519e,'backward'),..._0x5248e6['getSiblingNodes'](_0x23519e,'forward')];})['flat']();return _0x45158a=[...new Set(_0x45158a)],_0x45158a;}['_getTranslationKeyForListStyle'](_0x1bd0a1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1bd0a1)||'default')['toUpperCase']()+'_LIST_'+_0x1bd0a1['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x30666f{['afterInit'](){const _0x3fd8e9=this['editor'];if(!_0x3fd8e9['plugins']['has']('MediaEmbedEditing'))return;const _0x53fdb3=_0x3fd8e9['plugins']['get']('TrackChangesEditing'),_0x280696=_0x3fd8e9['locale'];_0x53fdb3['enableCommand']('mediaEmbed'),_0x53fdb3['descriptionFactory']['registerElementLabel']('media',_0x83b13f=>o(_0x280696,'ELEMENT_MEDIA',_0x83b13f)),_0x3fd8e9['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3fbc12,{writer:_0x3fdd63,options:_0x79c021})=>{if(_0x79c021['showSuggestionHighlights'])return _0x3fdd63['createEmptyElement']('div');},'converterPriority':'high'}),_0x3fd8e9['data']['downcastDispatcher']['on']('attribute:url:media',(_0x207f71,_0x335715,_0x2ad226)=>{_0x2ad226['options']['showSuggestionHighlights']&&_0x207f71['stop']();},{'priority':'high'});}}class gt extends _0x30666f{['afterInit'](){const _0x24e62e=this['editor'];_0x24e62e['plugins']['has']('MentionEditing')&&_0x24e62e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x30666f{['afterInit'](){const _0x5d7d7b=this['editor'];if(!_0x5d7d7b['commands']['get']('insertMergeField'))return;_0x5d7d7b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x6b424b=_0x5d7d7b['plugins']['get']('TrackChangesEditing'),_0x319ca0=_0x5d7d7b['locale'];_0x6b424b['descriptionFactory']['registerElementLabel']('mergeField',_0x2eceab=>o(_0x319ca0,'ELEMENT_MERGE_FIELD',_0x2eceab)),_0x6b424b['descriptionFactory']['registerDescriptionCallback'](_0x22907d=>{if('insertion'!=_0x22907d['type']&&'deletion'!=_0x22907d['type'])return;const _0x4b1f2a=_0x22907d['getContainedElement']();if(null==_0x4b1f2a)return;if(!_0x4b1f2a['is']('element','mergeField'))return;const _0x5d0284=_0x5d7d7b['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4b1f2a['getAttribute']('id'));return'insertion'==_0x22907d['type']?{'type':'insertion','content':o(_0x319ca0,'*Insert:*\x20%0','\x22'+_0x5d0284+'\x22\x20'+o(_0x319ca0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x319ca0,'*Remove:*\x20%0','\x22'+_0x5d0284+'\x22\x20'+o(_0x319ca0,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x30666f{['afterInit'](){const _0x1bcd89=this['editor'],_0x4764d0=_0x1bcd89['plugins']['get']('TrackChangesEditing');_0x1bcd89['plugins']['has']('MultiLevelList')&&(_0x4764d0['enableDefaultAttributesIntegration']('multiLevelList'),_0x4764d0['registerBlockAttribute']('listMarkerStyle'),_0x4764d0['descriptionFactory']['registerDescriptionCallback'](_0x46e3cc=>this['handleDescriptions'](_0x46e3cc)));}['handleDescriptions'](_0x5b1a02){const _0x1385f5=this['editor']['locale'],{data:_0xbf3320}=_0x5b1a02,_0x4b1b3e={'type':'format','content':''};if(_0xbf3320&&'listMarkerStyle'==_0xbf3320['key']){if(!_0xbf3320['oldValue'])return{'type':'format','content':o(_0x1385f5,'*Set\x20format:*\x20%0',o(_0x1385f5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xbf3320['newValue']+')'};if(!_0xbf3320['newValue']){let _0xefa6e7=_0x5b1a02['head'];for(;_0xefa6e7;){if(_0xefa6e7['data']&&'listType'==_0xefa6e7['data']['key']&&_0xefa6e7['data']['newValue'])return _0x4b1b3e;_0xefa6e7=_0xefa6e7['next'];}return{'type':'format','content':o(_0x1385f5,'*Remove\x20format:*\x20%0',o(_0x1385f5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xbf3320['oldValue']+')'};}}}}class dt extends _0x30666f{['afterInit'](){const _0x274c5f=this['editor'];if(!_0x274c5f['plugins']['has']('PageBreakEditing'))return;_0x274c5f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1e70ea=_0x274c5f['plugins']['get']('TrackChangesEditing'),_0x502f39=_0x274c5f['locale'];_0x1e70ea['descriptionFactory']['registerElementLabel']('pageBreak',_0x46bbd8=>o(_0x502f39,'ELEMENT_PAGE_BREAK',_0x46bbd8));}}class pt extends _0x30666f{['afterInit'](){const _0x1e177b=this['editor'];if(!_0x1e177b['plugins']['has']('Paragraph'))return;const _0x53863c=_0x1e177b['locale'],_0x4481ea=_0x1e177b['plugins']['get']('TrackChangesEditing');_0x4481ea['descriptionFactory']['registerElementLabel']('paragraph',_0x40b3b7=>o(_0x53863c,'ELEMENT_PARAGRAPH',_0x40b3b7)),_0x4481ea['enableDefaultAttributesIntegration']('paragraph'),_0x4481ea['enableCommand']('insertParagraph'),_0x1e177b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1e177b),{'priority':'highest'}),_0x1e177b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4aac2a,_0xe10e77,_0x5d71f2)=>{_0x5d71f2['options']['showSuggestionHighlights']&&nr(_0x1e177b,{'showActiveMarker':!0x1})(_0x4aac2a,_0xe10e77,_0x5d71f2);},{'priority':'highest'});const _0x42c54f=_0x4481ea['descriptionFactory'];_0x42c54f['registerDescriptionCallback'](_0x26bfe1=>{if('insertion'!==_0x26bfe1['type'])return;const {start:_0x35bafa,end:_0x5877dd}=_0x26bfe1['getFirstRange']();if(!_0x35bafa['isTouching'](_0x5877dd)||!_0x35bafa['nodeAfter'])return;const _0x28eea3=_0x1e177b['model']['schema'],_0x1da2c9=_0x35bafa['nodeAfter'];return _0x28eea3['isBlock'](_0x1da2c9)&&!_0x28eea3['isLimit'](_0x1da2c9)&&_0x28eea3['checkChild'](_0x1da2c9,'$text')?{'type':'insertion','content':o(_0x53863c,'*Insert:*\x20%0',_0x42c54f['getItemLabel'](_0x1da2c9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26e4b6=this['editor'],_0x1d0579=_0x26e4b6['locale'];_0x26e4b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x409b8e=>{if('formatBlock'!=_0x409b8e['type'])return;const {data:_0x17a579}=_0x409b8e;return _0x17a579&&'paragraph'==_0x17a579['commandName']?{'type':'format','content':o(_0x1d0579,'*Change\x20to:*\x20%0',o(_0x1d0579,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x18144c,{showActiveMarker:_0x5d383b=!0x0}={}){return(_0x72a4d2,_0x145145,_0x50a500)=>{const _0x2c2b04=_0x18144c['plugins']['get']('TrackChangesEditing'),_0x3798ee=_0x145145['markerRange']['start'],_0x1d4f39=_0x145145['markerRange']['end'],_0x4bfbed=_0x18144c['model']['schema'];if(!_0x3798ee['isTouching'](_0x1d4f39)||!_0x3798ee['nodeAfter'])return;const _0xa419ec=_0x3798ee['nodeAfter'];if(_0x4bfbed['isBlock'](_0xa419ec)&&!_0x4bfbed['isLimit'](_0xa419ec)&&_0x4bfbed['checkChild'](_0xa419ec,'$text')){if(!_0x50a500['consumable']['consume'](_0x145145['markerRange'],_0x72a4d2['name']))return;const _0x56a38a=_0x50a500['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x41320c=_0x50a500['mapper']['toViewPosition'](_0x1d4f39);_0x5d383b&&_0x2c2b04['activeMarkers']['includes'](_0x145145['markerName'])&&_0x50a500['writer']['addClass']('ck-suggestion-marker--active',_0x56a38a),_0x50a500['writer']['insert'](_0x41320c,_0x56a38a),_0x50a500['mapper']['bindElementToMarker'](_0x56a38a,_0x145145['markerName']);}};}class kt extends _0x30666f{['afterInit'](){const _0x4f198b=this['editor'];if(!_0x4f198b['plugins']['has']('RemoveFormatEditing'))return;_0x4f198b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x464ee7=this['editor'];_0x464ee7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eb716=>{if('formatBlock'!=_0x3eb716['type']&&'formatInline'!=_0x3eb716['type'])return;const {data:_0x178a4c}=_0x3eb716;return _0x178a4c&&'removeFormat'==_0x178a4c['commandName']?{'type':'format','content':o(_0x464ee7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x30666f{['afterInit'](){const _0x588841=this['editor'];if(!_0x588841['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5d67f8=_0x588841['plugins']['get']('TrackChangesEditing');_0x5d67f8['enableCommand']('goToPreviousRestrictedEditingException'),_0x5d67f8['enableCommand']('goToNextRestrictedEditingException');const _0x278ff4=_0x588841['plugins']['get']('RestrictedEditingModeEditing');_0x278ff4['enableCommand']('trackChanges'),_0x278ff4['enableCommand']('acceptSuggestion'),_0x278ff4['enableCommand']('discardSuggestion'),_0x278ff4['enableCommand']('acceptAllSuggestions'),_0x278ff4['enableCommand']('discardAllSuggestions'),_0x278ff4['enableCommand']('acceptSelectedSuggestions'),_0x278ff4['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x30666f{static get['requires'](){return[_0x54eb9b];}['init'](){const _0x5196c2=this['editor'],_0x39db35=_0x5196c2['plugins']['get']('TrackChangesEditing');_0x39db35['enableCommand']('shiftEnter'),_0x5196c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x5196c2),{'priority':'high'}),_0x5196c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x5196c2),{'priority':'high'}),_0x5196c2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2e8ae2,_0x505de0,_0xf1a1d5)=>{_0xf1a1d5['options']['showSuggestionHighlights']&&ce(_0x5196c2,{'showActiveMarker':!0x1})(_0x2e8ae2,_0x505de0,_0xf1a1d5);}),_0x39db35['descriptionFactory']['registerElementLabel']('softBreak',_0x547e36=>o(_0x5196c2['locale'],'ELEMENT_LINE_BREAK',_0x547e36));}}function ce(_0x53e2b7,{showActiveMarker:_0x149d3d=!0x0}={}){return(_0x3f6d3c,_0x46d734,_0x48075c)=>{const _0x324c95=_0x53e2b7['plugins']['get']('TrackChangesEditing');if(!_0x48075c['consumable']['test'](_0x46d734['markerRange'],_0x3f6d3c['name']))return;const _0x266d88=_0x53e2b7['model'];for(const _0x58127d of _0x46d734['markerRange']['getItems']()){if(!_0x58127d['is']('element','softBreak'))continue;const _0x14dec8='deletion'==_0x46d734['markerName']['split'](':')[0x1]?'merge':'split',_0xaf8a8f=_0x48075c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14dec8}),_0x360250=_0x48075c['mapper']['toViewPosition'](_0x266d88['createPositionBefore'](_0x58127d));_0x149d3d&&_0x324c95['activeMarkers']['includes'](_0x46d734['markerName'])&&_0x48075c['writer']['addClass']('ck-suggestion-marker--active',_0xaf8a8f),_0x48075c['writer']['insert'](_0x360250,_0xaf8a8f),_0x48075c['mapper']['bindElementToMarker'](_0xaf8a8f,_0x46d734['markerName']);}};}class yt extends _0x30666f{['afterInit'](){const _0x42fd14=this['editor'],_0x5bdd57=_0x42fd14['model'],_0x452bf8=_0x42fd14['locale'];if(!_0x42fd14['plugins']['has']('StandardEditingModeEditing'))return;const _0x38b6ef=_0x42fd14['plugins']['get']('TrackChangesEditing'),_0x54cc77='restrictedEditingException',_0x3ec14e=_0x42fd14['commands']['get'](_0x54cc77);_0x38b6ef['enableCommand'](_0x54cc77,(_0x2b0b1b,_0x1eac8d={})=>{const _0x3c72e=_0x5bdd57['document']['selection'];if(_0x3c72e['isCollapsed'])return void _0x2b0b1b(_0x1eac8d);const _0x1d1ae4=void 0x0!==_0x1eac8d['forceValue']?_0x1eac8d['forceValue']:!_0x3ec14e['value'];_0x5bdd57['change'](()=>{const _0x258d15=Array['from'](_0x3c72e['getRanges']());for(const _0x458669 of _0x258d15){const _0x4c0aae=_0x1d1ae4?[_0x458669]:io(_0x54cc77,_0x458669,_0x5bdd57);for(const _0x190b26 of _0x4c0aae)_0x38b6ef['markInlineFormat'](_0x190b26,{'commandName':_0x54cc77,'commandParams':[{'forceValue':_0x1d1ae4}]});}});}),_0x38b6ef['descriptionFactory']['registerDescriptionCallback'](_0x27b1e7=>{if('formatBlock'!=_0x27b1e7['type']&&'formatInline'!=_0x27b1e7['type'])return;const {data:_0x583d54}=_0x27b1e7;return _0x583d54&&_0x583d54['commandName']==_0x54cc77?_0x583d54['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x452bf8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x452bf8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x30666f{['afterInit'](){const _0x39db7e=this['editor'];if(!_0x39db7e['plugins']['has']('Style')||!_0x39db7e['plugins']['has']('DataSchema'))return;const _0x1b32d3=_0x39db7e['plugins']['get']('TrackChangesEditing'),_0x264683=_0x39db7e['locale'],_0x3db015=_0x39db7e['config']['get']('style')||{},_0x165939=_0x39db7e['plugins']['get']('GeneralHtmlSupport'),_0xf0c5d=_0x39db7e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x39db7e['plugins']['get']('DataSchema'),_0x3db015['definitions']);_0x1b32d3['enableDefaultAttributesIntegration']('style');const _0x2a790c=new Set();for(const _0x5a0a2a of _0xf0c5d['block']){const _0x4d0925=_0x165939['getGhsAttributeNameForElement'](_0x5a0a2a['element']);_0x2a790c['add'](_0x4d0925);}const _0x3aa0b5=new Set();for(const _0x24855e of _0xf0c5d['inline']){const _0x427938=_0x165939['getGhsAttributeNameForElement'](_0x24855e['element']);_0x3aa0b5['add'](_0x427938);for(const _0xb0dbb3 of _0x24855e['ghsAttributes'])_0x3aa0b5['add'](_0xb0dbb3);}for(const _0x12a719 of _0x2a790c)_0x1b32d3['registerBlockAttribute'](_0x12a719),_0x1b32d3['descriptionFactory']['registerAttributeLabel'](_0x12a719,o(_0x264683,'FORMAT_STYLE'));for(const _0x508b57 of _0x3aa0b5)_0x1b32d3['registerInlineAttribute'](_0x508b57),_0x1b32d3['descriptionFactory']['registerAttributeLabel'](_0x508b57,o(_0x264683,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x108f11=this['editor'],_0xa24115=_0x108f11['locale'];_0x108f11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43cb9b=>{if('formatBlock'!=_0x43cb9b['type']&&'formatInline'!=_0x43cb9b['type'])return;const {data:_0x127a74}=_0x43cb9b;return _0x127a74&&'style'===_0x127a74['commandName']?_0x127a74['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa24115,'*Set\x20format:*\x20%0',_0x127a74['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xa24115,'*Remove\x20format:*\x20%0',_0x127a74['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x30666f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4e3758){super(_0x4e3758),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3d9199=this['editor'],_0x47c02f=_0x3d9199['model']['document']['selection'];if(!_0x3d9199['plugins']['has']('TableEditing'))return;const _0x468e7d=_0x3d9199['locale'],_0x32ae61=_0x3d9199['plugins']['get']('TrackChangesEditing'),_0x4f6ce0=_0x3d9199['plugins']['get']('TableUtils');_0x32ae61['descriptionFactory']['registerElementLabel']('table',_0x8dbe40=>o(_0x468e7d,'ELEMENT_TABLE',_0x8dbe40)),this['_setupColumnsRowsFixing'](),_0x32ae61['enableCommand']('insertTable'),_0x32ae61['enableCommand']('selectTableRow'),_0x32ae61['enableCommand']('selectTableColumn');for(const _0x4f25c6 of['insertTableRowAbove','insertTableRowBelow']){const _0x1a1a9f=_0x3d9199['commands']['get'](_0x4f25c6);_0x32ae61['enableCommand'](_0x4f25c6,_0xfe3110=>{_0x3d9199['model']['change'](_0xd72744=>{_0xfe3110();const _0x47a81d='above'===_0x1a1a9f['order'],_0x80c563=_0x4f6ce0['getSelectionAffectedTableCells'](_0x47c02f),_0x759aa1=_0x4f6ce0['getRowIndexes'](_0x80c563),_0x10ec34=_0x47a81d?_0x759aa1['first']-0x1:_0x759aa1['last']+0x1,_0x2aafbe=_0x80c563[0x0]['findAncestor']('table'),_0x2a05da=_0x4f6ce0['createTableWalker'](_0x2aafbe,{'startRow':_0x10ec34,'endRow':_0x10ec34}),_0x218d57=Array['from'](_0x2a05da)['map'](_0x410e67=>_0xd72744['createRangeOn'](_0x410e67['cell']));_0x32ae61['markMultiRangeInsertion'](_0x218d57,'tableRow');});});}for(const _0x16b1ff of['insertTableColumnLeft','insertTableColumnRight']){const _0x2d393d=_0x3d9199['commands']['get'](_0x16b1ff);_0x32ae61['enableCommand'](_0x16b1ff,_0x54597d=>{_0x3d9199['model']['change'](_0xba652c=>{_0x54597d();const _0x4da297='left'===_0x2d393d['order'],_0x42eece=_0x4f6ce0['getSelectionAffectedTableCells'](_0x47c02f),_0x418620=_0x4f6ce0['getColumnIndexes'](_0x42eece),_0x26c2de=_0x4da297?_0x418620['first']-0x1:_0x418620['last']+0x1,_0x1067c2=_0x42eece[0x0]['findAncestor']('table'),_0x2404b6=_0x4f6ce0['createTableWalker'](_0x1067c2,{'startRow':0x0,'column':_0x26c2de,'includeAllSlots':!0x1}),_0x43c77f=Array['from'](_0x2404b6)['map'](_0x347358=>_0xba652c['createRangeOn'](_0x347358['cell']));_0x32ae61['markMultiRangeInsertion'](_0x43c77f,'tableColumn');});});}for(const _0x205273 of['removeTableRow','removeTableColumn']){const _0x343e19=_0x205273['substr'](0xb),_0x595415=_0x343e19['toLowerCase'](),_0xda41e6=_0x595415['substr'](0x0,0x3)+'span',_0x2512c6='table'+_0x343e19,_0x33f340='min'+_0x343e19,_0xdc4cc='max'+_0x343e19;_0x32ae61['enableCommand'](_0x205273,()=>{_0x3d9199['model']['change'](_0x4d85e4=>{const _0x2c7381=_0x4f6ce0['getSelectionAffectedTableCells'](_0x47c02f),_0x49177e=_0x2c7381[0x0]['findAncestor']('table');let _0x1d6ac2;if('removeTableRow'==_0x205273){const _0x5da0b8=_0x4f6ce0['getRowIndexes'](_0x2c7381);_0x1d6ac2={'startRow':_0x5da0b8['first'],'endRow':_0x5da0b8['last'],'includeAllSlots':!0x0};}else{const _0x250349=_0x4f6ce0['getColumnIndexes'](_0x2c7381);_0x1d6ac2={'startColumn':_0x250349['first'],'endColumn':_0x250349['last'],'includeAllSlots':!0x0};}const _0x343e51=_0x4f6ce0['createTableWalker'](_0x49177e,_0x1d6ac2),_0x41d62e=Array['from'](_0x343e51)['map'](({cell:_0x4f0b80})=>_0x4f0b80),_0x3f1932=Ee(_0x41d62e['filter'](_0x554b80=>_0x554b80['hasAttribute'](_0xda41e6))),_0x573ae7=Ee(_0x41d62e['filter'](_0x304f33=>!_0x304f33['hasAttribute'](_0xda41e6)))['map'](_0x4f70a5=>_0x4d85e4['createRangeOn'](_0x4f70a5)),_0x5d12ca=_0x32ae61['markMultiRangeDeletion'](_0x573ae7,_0x2512c6);if(_0x5d12ca&&('tableRow'==_0x5d12ca['subType']||'tableColumn'==_0x5d12ca['subType'])){const _0x48dcd3=this['_getSuggestionCoords'](_0x5d12ca);for(const _0x562b76 of _0x3f1932){const _0x551ed8=_0x4d85e4['createRangeOn'](_0x562b76),_0x4128c6=_0x4f6ce0['getCellLocation'](_0x562b76),_0x1f05d6=_0x562b76['getAttribute'](_0xda41e6)-0x1,_0x1cf931=_0x48dcd3[_0x33f340],_0x57a5e9=_0x48dcd3[_0xdc4cc];_0x1cf931<=_0x4128c6[_0x595415]&&_0x4128c6[_0x595415]+_0x1f05d6<=_0x57a5e9&&_0x5d12ca['addRange'](_0x551ed8);}}});});}function _0x25e065(_0x42964a){const _0x48d325=Array['from'](_0x47c02f['getRanges']())['map'](_0x5004b9=>_0x2fbf4a['fromRange'](_0x5004b9));_0x3d9199['model']['change'](_0xe2f5c8=>{const _0x3233d0=_0xe2f5c8['batch'];_0x42964a=_0x42964a['filter'](_0x2aa476=>'$graveyard'!=_0x2aa476['root']['rootName']),_0xe2f5c8['setSelection'](_0x42964a),_0x3d9199['commands']['get']('removeTableRow')['refresh'](),_0x3d9199['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3d9199['model']['enqueueChange'](()=>{_0x3d9199['model']['enqueueChange'](_0x3233d0,_0x19576f=>{const _0x330569=_0x48d325['filter'](_0x4168ad=>'$graveyard'!=_0x4168ad['root']['rootName']);_0x330569['length']>0x0&&_0x19576f['setSelection'](_0x330569);for(const _0x14355b of _0x48d325)_0x14355b['detach']();});});});}function _0x462d68(_0x1eaf74){_0x3d9199['model']['change'](_0x2eac1d=>{const _0x19f951=Array['from'](_0x47c02f['getRanges']())['map'](_0x3d68bf=>_0x2fbf4a['fromRange'](_0x3d68bf)),_0xe2c75d=[];for(const _0x1a6dad of _0x1eaf74)for(const _0x5ba156 of _0x1a6dad['getItems']({'shallow':!0x0}))_0xe2c75d['push'](_0x5ba156);for(const _0x4ce679 of _0xe2c75d)'$graveyard'!=_0x4ce679['root']['rootName']&&(_0x2eac1d['setSelection'](_0x2eac1d['createPositionAt'](_0x4ce679,0x0)),_0x3d9199['commands']['get']('removeTableColumn')['refresh'](),_0x3d9199['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5d2ad8=_0x19f951['filter'](_0x5539b1=>'$graveyard'!=_0x5539b1['root']['rootName']);_0x5d2ad8['length']>0x0&&_0x2eac1d['setSelection'](_0x5d2ad8);for(const _0x5a22c9 of _0x19f951)_0x5a22c9['detach']();});}function _0x48cb93(_0x35a990,_0x5d5f3e){return _0x5d5f3e['every'](_0x5ea3e9=>_0x35a990['some'](_0x330bcb=>_0x330bcb['end']['isEqual'](_0x5ea3e9['start'])||_0x5ea3e9['end']['isEqual'](_0x330bcb['start'])));}function _0x241d4c(_0x2082ba,_0x34a323){return!_0x2082ba['some'](_0x99bf2c=>_0x34a323['some'](_0x5b47ec=>_0x99bf2c['isIntersecting'](_0x5b47ec)))&&_0x2082ba['some'](_0x3e3888=>_0x34a323['some'](_0x470ad1=>_0x3e3888['end']['isTouching'](_0x470ad1['start'])));}_0x3d9199['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e4273,_0x47ddd0,_0x558a19)=>{if(!_0x558a19['options']['showSuggestionHighlights'])return;const _0x3c8120=_0x47ddd0['item'];if(!_0x3c8120)return;const _0x1105b3=_0x558a19['mapper']['toViewElement'](_0x3c8120);function _0xdeed08(_0xc5eb7){return Array['isArray'](_0xc5eb7)?_0xc5eb7:[_0xc5eb7];}_0x1105b3&&'tableCell'===_0x3c8120['name']&&_0x15795e(_0x1105b3,_0x558a19['writer'],(_0x5514c1,_0x33e333,_0x48c92d)=>_0x48c92d['addClass'](_0xdeed08(_0x33e333['classes']),_0x5514c1),(_0x18448c,_0x47ae40,_0x9029f0)=>_0x9029f0['removeClass'](_0xdeed08(_0x47ae40['classes']),_0x18448c));},{'priority':'highest'}),_0x32ae61['descriptionFactory']['registerDescriptionCallback'](_0x1b85e5=>{if('insertion'!=_0x1b85e5['type']&&'deletion'!=_0x1b85e5['type'])return;const _0x247552=_0x1b85e5['getContainedElement']();if(null!=_0x247552&&_0x247552['is']('element','table')){if('insertion'==_0x1b85e5['type']){const _0x153ac6=_0x1b85e5['getItems']()['filter'](_0x4cee06=>_0x4cee06['is']('$textProxy'))['map'](_0x42044c=>_0x42044c['data']);if(_0x153ac6['length'])return{'type':'insertion','content':o(_0x468e7d,'*Insert:*\x20%0',o(_0x468e7d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x153ac6['join']('\x20')+'\x22'))};}if('deletion'==_0x1b85e5['type']){const _0x2c8f5e=_0x1b85e5['getItems']()['filter'](_0x12655e=>_0x12655e['is']('$textProxy'))['map'](_0x4f3f85=>_0x4f3f85['data']);if(_0x2c8f5e['length'])return{'type':'deletion','content':o(_0x468e7d,'*Remove:*\x20%0',o(_0x468e7d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2c8f5e['join']('\x20')+'\x22'))};}}}),_0x32ae61['descriptionFactory']['registerDescriptionCallback'](_0x1f7dc0=>{if('tableRow'==_0x1f7dc0['subType']){const _0x2a3d72=_0x1f7dc0['getItems']()['filter'](_0x394d3a=>_0x394d3a['is']('$textProxy'))['map'](_0x4e73a7=>_0x4e73a7['data']),_0x2bf58c=this['_getSuggestionCoords'](_0x1f7dc0),_0x51eb97=_0x2bf58c['maxRow']-_0x2bf58c['minRow']+0x1;if('insertion'==_0x1f7dc0['type'])return _0x2a3d72['length']?{'type':'insertion','content':o(_0x468e7d,'*Insert:*\x20%0',o(_0x468e7d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x51eb97,'\x22'+_0x2a3d72['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x468e7d,'*Insert:*\x20%0',o(_0x468e7d,'ELEMENT_TABLE_ROW',_0x51eb97))};if('deletion'==_0x1f7dc0['type'])return _0x2a3d72['length']?{'type':'deletion','content':o(_0x468e7d,'*Remove:*\x20%0',o(_0x468e7d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x51eb97,'\x22'+_0x2a3d72['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x468e7d,'*Remove:*\x20%0',o(_0x468e7d,'ELEMENT_TABLE_ROW',_0x51eb97))};}if('tableColumn'==_0x1f7dc0['subType']){const _0xff0543=_0x1f7dc0['getItems']()['filter'](_0x1ac556=>_0x1ac556['is']('$textProxy'))['map'](_0x10bba4=>_0x10bba4['data']),_0x198be5=this['_getSuggestionCoords'](_0x1f7dc0),_0x2958c2=_0x198be5['maxColumn']-_0x198be5['minColumn']+0x1;if('insertion'==_0x1f7dc0['type'])return _0xff0543['length']?{'type':'insertion','content':o(_0x468e7d,'*Insert:*\x20%0',o(_0x468e7d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2958c2,'\x22'+_0xff0543['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x468e7d,'*Insert:*\x20%0',o(_0x468e7d,'ELEMENT_TABLE_COLUMN',_0x2958c2))};if('deletion'==_0x1f7dc0['type'])return _0xff0543['length']?{'type':'deletion','content':o(_0x468e7d,'*Remove:*\x20%0',o(_0x468e7d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2958c2,'\x22'+_0xff0543['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x468e7d,'*Remove:*\x20%0',o(_0x468e7d,'ELEMENT_TABLE_COLUMN',_0x2958c2))};}}),_0x32ae61['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x25e065),_0x32ae61['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x25e065),_0x32ae61['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x462d68),_0x32ae61['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x462d68),_0x32ae61['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x48cb93),_0x32ae61['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x48cb93),_0x32ae61['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x241d4c),_0x32ae61['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x241d4c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1813e4=this['editor'],_0x278dc5=_0x1813e4['model']['document']['selection'];return(_0x5926be,_0x3b78fb)=>{_0x1813e4['model']['change'](_0x53c89b=>{const {commandName:_0x131b4f,commandParams:_0x2d4cef}=_0x3b78fb;let _0x49f4ff=_0x5926be[0x0]['end']['nodeBefore'];_0x2d4cef&&_0x2d4cef[0x0]&&!0x1===_0x2d4cef[0x0]['forceValue']&&(_0x49f4ff=_0x5926be[0x0]['start']['nodeAfter']);const _0x4ecb56=_0x53c89b['createRangeIn'](_0x49f4ff);if('$graveyard'==_0x4ecb56['root']['rootName'])return;const _0xcb8aa3=Array['from'](_0x278dc5['getRanges']())['map'](_0x5dbc37=>_0x2fbf4a['fromRange'](_0x5dbc37));_0x53c89b['setSelection'](_0x4ecb56),_0x1813e4['commands']['get'](_0x131b4f)['refresh'](),_0x2d4cef['push']({'forceDefaultExecution':!0x0}),_0x1813e4['execute'](_0x131b4f,..._0x2d4cef);const _0x1267db=_0xcb8aa3['filter'](_0x16dc7d=>'$graveyard'!=_0x16dc7d['root']['rootName']);_0x1267db['length']>0x0&&_0x53c89b['setSelection'](_0x1267db);for(const _0x256a6c of _0xcb8aa3)_0x256a6c['detach']();});};}['_getCoordsForCells'](_0x5bad7a){const _0x4e01d1=this['editor']['plugins']['get']('TableUtils');let _0x379731=Number['MAX_SAFE_INTEGER'],_0x53c2d1=Number['MIN_SAFE_INTEGER'],_0x3e319e=Number['MAX_SAFE_INTEGER'],_0x419c0d=Number['MIN_SAFE_INTEGER'];for(const _0x4886 of _0x5bad7a){if('$graveyard'==_0x4886['root']['rootName'])continue;const {row:_0x951565,column:_0x3bfe1c}=_0x4e01d1['getCellLocation'](_0x4886),_0x46c4a4=_0x4886['hasAttribute']('rowspan')?_0x4886['getAttribute']('rowspan')-0x1:0x0,_0x3b032c=_0x4886['hasAttribute']('colspan')?_0x4886['getAttribute']('colspan')-0x1:0x0;_0x379731=_0x951565<_0x379731?_0x951565:_0x379731,_0x53c2d1=_0x951565+_0x46c4a4>_0x53c2d1?_0x951565+_0x46c4a4:_0x53c2d1,_0x3e319e=_0x3bfe1c<_0x3e319e?_0x3bfe1c:_0x3e319e,_0x419c0d=_0x3bfe1c+_0x3b032c>_0x419c0d?_0x3bfe1c+_0x3b032c:_0x419c0d;}return{'minRow':_0x379731,'maxRow':_0x53c2d1,'minColumn':_0x3e319e,'maxColumn':_0x419c0d};}['_setupColumnsRowsFixing'](){const _0x2fce84=this['editor'],_0x5ebdf6=_0x2fce84['plugins']['get']('TrackChangesEditing'),_0x5c8e31=_0x2fce84['plugins']['get']('TableUtils');_0x2fce84['model']['document']['on']('change:data',()=>{const _0x41fbac=Array['from'](_0x2fce84['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e8f1d,data:_0x1fba0}of _0x41fbac){const {group:_0x7516ee,id:_0x142886,subType:_0x53c749}=_0x5ebdf6['_splitMarkerName'](_0x4e8f1d);if('suggestion'!=_0x7516ee)continue;if(null!=_0x1fba0['oldRange'])continue;const _0x5b13e9=_0x5ebdf6['getSuggestion'](_0x142886);this['_tablePostFixingSubtypes']['includes'](_0x53c749)&&this['_tableSuggestions']['add'](_0x5b13e9);}},{'priority':'low'});const _0x245ed5=(_0x3d4700,_0x8a5454)=>{let _0x4f60de=!0x1;const _0x3558f8=_0x8a5454['createRangeOn'](_0x3d4700),_0x3e271a=_0x3d4700['findAncestor']('table'),_0x168bda=_0x5c8e31['getCellLocation'](_0x3d4700);for(const _0x1a5454 of this['_tableSuggestions']){const _0x26b8ed=_0x1a5454['subType'],_0x446914=_0x26b8ed['startsWith']('tablePaste'),_0x126f7f=_0x26b8ed['substr'](_0x446914?0xa:0x5),_0x3af503=_0x126f7f['toLowerCase'](),_0xf661e5=_0x3af503['substr'](0x0,0x3)+'span',_0x36f729='min'+_0x126f7f,_0x25f9b4='max'+_0x126f7f;if(!_0x1a5454['isInContent'])continue;if(_0x3e271a!=_0x1a5454['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1a5454['isIntersectingWithRange'](_0x3558f8))continue;const _0x264e60=_0x3d4700['hasAttribute'](_0xf661e5)?_0x3d4700['getAttribute'](_0xf661e5)-0x1:0x0,_0x529a49=this['_getSuggestionCoords'](_0x1a5454),_0x287995=_0x529a49[_0x36f729],_0x9a929f=_0x529a49[_0x25f9b4];_0x287995<=_0x168bda[_0x3af503]&&_0x168bda[_0x3af503]+_0x264e60<=_0x9a929f&&(_0x1a5454['addRange'](_0x3558f8),_0x4f60de=!0x0);}return _0x4f60de;};_0x2fce84['model']['document']['registerPostFixer'](_0x42b8b8=>{let _0xd4f61c=!0x1;for(const _0x3444f7 of _0x2fce84['model']['document']['differ']['getChanges']())if('insert'==_0x3444f7['type']){if('tableRow'==_0x3444f7['name']){for(const _0x267569 of _0x3444f7['position']['nodeAfter']['getChildren']())_0xd4f61c=_0xd4f61c||_0x245ed5(_0x267569,_0x42b8b8);}else'tableCell'==_0x3444f7['name']&&(_0xd4f61c=_0xd4f61c||_0x245ed5(_0x3444f7['position']['nodeAfter'],_0x42b8b8));}return _0xd4f61c;});}['_getSuggestionCoords'](_0x1682b6){return this['_getCoordsForCells'](_0x1682b6['getRanges']()['map'](_0x369d8a=>_0x369d8a['start']['nodeAfter']));}}function Ee(_0x48095c){return Array['from'](new Set(_0x48095c)['values']());}class At extends _0x30666f{static get['requires'](){return[St];}['afterInit'](){const _0x3f7522=this['editor'],_0x372117=_0x3f7522['model']['document']['selection'],_0x5e4643=_0x3f7522['locale'];if(!_0x3f7522['plugins']['has']('TableEditing'))return;const _0x351226=_0x3f7522['plugins']['get']('TrackChangesEditing'),_0x29d40e=_0x3f7522['plugins']['get']('TableUtils'),_0x13d8d1=_0x3f7522['plugins']['get'](St);_0x13d8d1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x351226['enableCommand']('mergeTableCells',()=>{const _0x3951a9=_0x29d40e['getSelectionAffectedTableCells'](_0x3f7522['model']['document']['selection']);_0x3f7522['model']['change'](()=>{_0x351226['markMultiRangeBlockFormat'](_0x3951a9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3f7522['commands']['get']('mergeTableCells')['on']('execute',(_0x4f5405,_0x102a9a)=>{_0x3f7522['commands']['get']('trackChanges')['value']&&(_0x102a9a['length']>0x0&&_0x102a9a[_0x102a9a['length']-0x1]&&_0x102a9a[_0x102a9a['length']-0x1]['forceDefaultExecution']||_0x351226['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4f5405['stop']());},{'priority':'highest'});for(const _0x44a56b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2f7571=_0x3f7522['commands']['get'](_0x44a56b);_0x351226['enableCommand'](_0x44a56b,()=>{const _0x3def66=_0x3f7522['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4e7b7c=>_0x4e7b7c['is']('element','tableCell')),_0x1aad0c=_0x2f7571['value'];_0x3f7522['model']['change'](()=>{_0x351226['markMultiRangeBlockFormat']([_0x3def66,_0x1aad0c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x140784 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x53c165=_0x3f7522['commands']['get'](_0x140784);_0x351226['enableCommand'](_0x140784,()=>{const _0x4d4ee7=_0x29d40e['getSelectionAffectedTableCells'](_0x3f7522['model']['document']['selection'])[0x0],_0x3f35f4=_0x4d4ee7['findAncestor']('table'),{column:_0x50de8c,row:_0x50ebd0}=_0x29d40e['getCellLocation'](_0x4d4ee7);let _0x22551d=[];if('horizontally'==_0x53c165['direction']){const _0x2093a7=_0x29d40e['createTableWalker'](_0x3f35f4,{'startRow':_0x50ebd0,'endRow':_0x50ebd0,'includeAllSlots':!0x0});_0x22551d=Array['from'](_0x2093a7)['map'](_0x55a61a=>_0x55a61a['cell']);}else{const _0x3faed5=_0x29d40e['createTableWalker'](_0x3f35f4,{'column':_0x50de8c,'includeAllSlots':!0x0});_0x22551d=Array['from'](_0x3faed5)['map'](_0x11691e=>_0x11691e['cell']);}_0x3f7522['model']['change'](_0x11d849=>{_0x351226['markBlockFormat'](_0x11d849['createRangeOn'](_0x4d4ee7),{'commandName':_0x140784,'commandParams':[]},_0x22551d,_0x140784);});});}_0x351226['descriptionFactory']['registerDescriptionCallback'](_0x1dc295=>{if('formatBlock'!=_0x1dc295['type']&&'formatInline'!=_0x1dc295['type'])return;const {data:_0xc95863}=_0x1dc295;return _0xc95863&&'mergeTableCells'==_0xc95863['commandName']?{'type':'format','content':o(_0x5e4643,'*Merge\x20cells*')}:void 0x0;}),_0x351226['descriptionFactory']['registerDescriptionCallback'](_0x12f3bd=>{if('formatBlock'!=_0x12f3bd['type']&&'formatInline'!=_0x12f3bd['type'])return;const {data:_0x57b105}=_0x12f3bd;return _0x57b105?'splitTableCellVertically'==_0x57b105['commandName']?{'type':'format','content':o(_0x5e4643,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x57b105['commandName']?{'type':'format','content':o(_0x5e4643,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5dec7f=_0x13d8d1['_acceptFormatSuggestionCallbackFactory']();for(const _0xf906ac of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x351226['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf906ac,'accept',_0x5dec7f);for(const _0xf99f61 of['splitTableCellVertically','splitTableCellHorizontally'])_0x351226['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf99f61,'accept',_0x5dec7f);_0x351226['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x219252=>{_0x3f7522['model']['change'](_0x2ada1a=>{const _0xe8b5a2=Array['from'](_0x372117['getRanges']())['map'](_0x586a62=>_0x2fbf4a['fromRange'](_0x586a62));_0x2ada1a['setSelection'](_0x219252),_0x3f7522['commands']['get']('mergeTableCells')['refresh'](),_0x3f7522['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c2e76=_0xe8b5a2['filter'](_0xbbdcfb=>'$graveyard'!=_0xbbdcfb['root']['rootName']);_0x3c2e76['length']>0x0&&_0x2ada1a['setSelection'](_0x3c2e76);for(const _0xb76f40 of _0xe8b5a2)_0xb76f40['detach']();});});for(const _0x123900 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x42d37c=_0x3f7522['commands']['get'](_0x123900);_0x42d37c['on']('set:isEnabled',(_0x576ab6,_0x50a2f0,_0x57a92e)=>{if(_0x57a92e){const _0x26f69a=_0x3f7522['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x313fb1=>_0x313fb1['is']('element','tableCell'));this['_areMergableCells'](_0x42d37c['value'],_0x26f69a)||(_0x576ab6['return']=!0x1,_0x576ab6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2740e3=this['editor']['commands']['get']('mergeTableCells'),_0x840f2c=this['editor']['plugins']['get']('TableUtils');if(!_0x2740e3['isEnabled'])return!0x1;const _0x5343f6=_0x840f2c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x168e7b of _0x5343f6)for(const _0x38a2d2 of _0x5343f6)if(_0x168e7b!=_0x38a2d2&&!this['_areMergableCells'](_0x168e7b,_0x38a2d2))return!0x1;return!0x0;}['_areMergableCells'](_0x15b152,_0x3a4c3b){const _0xe16953=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe3eb5c=this['editor']['model']['createRangeOn'](_0x15b152),_0x1525f1=this['editor']['model']['createRangeOn'](_0x3a4c3b),_0x2ae092=new Set(),_0x5a2ab0=new Set();for(const _0x2bce82 of _0xe16953['getSuggestions']())if(('insertion'==_0x2bce82['type']||'deletion'==_0x2bce82['type']||'mergeTableCells'==_0x2bce82['subType'])&&_0x2bce82['isInContent']){for(const _0x497e1c of _0x2bce82['getRanges']())_0x497e1c['containsRange'](_0xe3eb5c,!0x0)&&_0x2ae092['add'](_0x2bce82['type']+':'+_0x2bce82['author']['id']),_0x497e1c['containsRange'](_0x1525f1,!0x0)&&_0x5a2ab0['add'](_0x2bce82['type']+':'+_0x2bce82['author']['id']);}if(_0x2ae092['size']!=_0x5a2ab0['size'])return!0x1;for(const _0x4f0dbd of _0x2ae092)if(!_0x5a2ab0['has'](_0x4f0dbd))return!0x1;return!0x0;}}class It extends _0x30666f{static get['requires'](){return[St];}['afterInit'](){const _0x5d14b1=this['editor'];if(!_0x5d14b1['plugins']['has']('TableEditing'))return;const _0x2663a7=_0x5d14b1['locale'],_0x4cbe54=_0x5d14b1['plugins']['get']('TrackChangesEditing');_0x4cbe54['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4cbe54['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4cbe54['registerBlockAttribute']('headingRows'),_0x4cbe54['registerBlockAttribute']('headingColumns'),_0x4cbe54['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2663a7,'FORMAT_HEADER_ROW')),_0x4cbe54['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2663a7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a57ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x119d95=this['editor']['plugins']['get']('TableUtils'),_0x3fdee5=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x140d95({showActiveMarker:_0x31bb80=!0x0,setDataAttribute:_0x52f060=!0x0}={}){return(_0x849ded,_0x5ae85a,_0x57adcc)=>{const {type:_0x44aa0a,id:_0x31a474}=_0x2a57ca['_splitMarkerName'](_0x5ae85a['markerName']),_0x640103=_0x2a57ca['getSuggestion'](_0x31a474),_0x4041ca=_0x640103['data'];if('formatBlock'!=_0x640103['type']||!_0x4041ca||'setTableColumnHeader'!=_0x4041ca['commandName'])return;if(_0x5ae85a['item'])return void _0x849ded['stop']();if(!_0x57adcc['consumable']['consume'](_0x5ae85a['markerRange'],_0x849ded['name']))return;const _0x2089e3=_0x5ae85a['markerRange']['start']['nodeAfter'],_0x250d5c=_0x5ae85a['markerRange']['end']['nodeBefore'],_0x3a34a5=_0x2089e3['parent']['parent'],{column:_0x38193d}=_0x119d95['getCellLocation'](_0x2089e3),{column:_0x26cd7c}=_0x119d95['getCellLocation'](_0x250d5c);for(let _0x166259=_0x38193d;_0x166259<=_0x26cd7c;_0x166259++){const _0x18b5e7=_0x119d95['createTableWalker'](_0x3a34a5,{'column':_0x166259,'includeAllSlots':!0x1});for(const _0x28555f of _0x18b5e7){const _0xb53306=_0x28555f['cell'],_0x2f61a5=_0x57adcc['mapper']['toViewElement'](_0xb53306);_0x57adcc['writer']['addClass']('ck-suggestion-marker-'+_0x44aa0a,_0x2f61a5),_0x52f060&&_0x57adcc['writer']['setAttribute']('data-suggestion',_0x31a474,_0x2f61a5),_0x57adcc['mapper']['bindElementToMarker'](_0x2f61a5,_0x5ae85a['markerName']),_0x31bb80&&(_0x2a57ca['activeMarkers']['includes'](_0x5ae85a['markerName'])?_0x57adcc['writer']['addClass']('ck-suggestion-marker--active',_0x2f61a5):_0x57adcc['writer']['removeClass']('ck-suggestion-marker--active',_0x2f61a5));}}};}_0x2a57ca['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3fdee5),_0x2a57ca['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3fdee5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x140d95(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59f6f4,_0x4f023a,_0xf27e15)=>{_0xf27e15['options']['showSuggestionHighlights']&&_0x140d95({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59f6f4,_0x4f023a,_0xf27e15);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4793e7,_0x3f2c57,_0x3dd85d)=>{const {type:_0x1000d4,id:_0x54bb07}=_0x2a57ca['_splitMarkerName'](_0x3f2c57['markerName']),_0x4ff127=_0x2a57ca['getSuggestion'](_0x54bb07),_0x97904f=_0x4ff127['data'];if('formatBlock'!=_0x4ff127['type']||!_0x97904f||'setTableColumnHeader'!=_0x97904f['commandName'])return;const _0x171fe3=_0x3dd85d['mapper']['markerNameToElements'](_0x3f2c57['markerName']);if(_0x171fe3){for(const _0x109dc3 of _0x171fe3)_0x3dd85d['writer']['removeClass']('ck-suggestion-marker-'+_0x1000d4,_0x109dc3),_0x3dd85d['writer']['removeClass']('ck-suggestion-marker--active',_0x109dc3),_0x3dd85d['writer']['removeAttribute']('data-suggestion',_0x109dc3),_0x3dd85d['mapper']['unbindElementFromMarkerName'](_0x109dc3,_0x3f2c57['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a1c8e=this['editor'],_0x249ae6=_0x1a1c8e['locale'];function _0x1ff75a(_0x439989){return{'type':'format','content':o(_0x249ae6,'*Format:*\x20%0',_0x439989)};}_0x1a1c8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36b8df=>{if('formatBlock'!=_0x36b8df['type'])return;const {data:_0x2846ec}=_0x36b8df;if(_0x2846ec){if('setTableRowHeader'==_0x2846ec['commandName']){const _0x22ee51=_0x2846ec['commandParams'][0x0]['forceValue'];return _0x1ff75a(o(_0x249ae6,_0x22ee51?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2846ec['commandName']){const _0x596e08=_0x2846ec['commandParams'][0x0]['forceValue'];return _0x1ff75a(o(_0x249ae6,_0x596e08?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x377d98=>[_0x377d98,null]));class vt extends _0x30666f{static get['requires'](){return[St];}['afterInit'](){const _0x26e108=this['editor'];if(!_0x26e108['plugins']['has']('TableClipboard'))return;const _0x28404a=_0x26e108['plugins']['get']('TrackChangesEditing'),_0xa05cfb=_0x26e108['plugins']['get']('TableUtils'),_0x53039f=_0x26e108['plugins']['get'](St),_0x286b0a=_0x26e108['plugins']['get']('TableClipboard');_0x53039f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x26e108['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x26e108['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x232e10=null;_0x26e108['model']['on']('insertContent',(_0x1cbf40,_0x16131c)=>{const [_0x264ed8,_0x5ccd4d]=_0x16131c,_0x4f041a=_0x16131c[_0x16131c['length']-0x1];_0x4f041a&&_0x4f041a['forceDefaultExecution']||_0x28404a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x45451c,_0x1a68e4,_0x2fe25f,_0x4db9fe,_0x56c29a){if(_0x1a68e4&&!_0x1a68e4['is']('documentSelection'))return!0x1;const _0x41164b=_0x56c29a['getTableIfOnlyTableInContent'](_0x45451c,_0x2fe25f);if(!_0x41164b||!we(_0x41164b,void 0x0,_0x4db9fe))return!0x1;const _0xf50f79=_0x4db9fe['getSelectionAffectedTableCells'](_0x2fe25f['document']['selection']);if(!_0xf50f79['length'])return!0x1;const _0x1ea9d3=_0xf50f79[0x0]['findAncestor']('table'),_0x2903e3=_0x4db9fe['getRowIndexes'](_0xf50f79),_0x35866f=_0x4db9fe['getColumnIndexes'](_0xf50f79),_0x366858={'startRow':_0x2903e3['first'],'endRow':_0x2903e3['last'],'startColumn':_0x35866f['first'],'endColumn':_0x35866f['last']};return 0x1==_0xf50f79['length']&&(_0x366858['endRow']+=_0x4db9fe['getRows'](_0x41164b)-0x1,_0x366858['endColumn']+=_0x4db9fe['getColumns'](_0x41164b)-0x1),we(_0x1ea9d3,_0x366858,_0x4db9fe);}(_0x264ed8,_0x5ccd4d,_0x26e108['model'],_0xa05cfb,_0x286b0a)&&(_0x1cbf40['stop'](),_0x232e10={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x26e108['model']['change'](()=>{_0x26e108['model']['insertContent'](_0x16131c[0x0],_0x16131c[0x1],_0x16131c[0x2],{'forceDefaultExecution':!0x0});const _0x498b6e=_0x556763(),{rowInsertionRanges:_0x3d7745,columnInsertionRanges:_0x52cf27,insertionRanges:_0x5b2c4a,deletionRanges:_0xb267e5,cells:_0x228dea}=_0x232e10;_0x3d7745['length']&&_0x28404a['markMultiRangeInsertion'](_0x3d7745,'tablePasteRow',{'tablePasteChainId':_0x498b6e}),_0x52cf27['length']&&_0x28404a['markMultiRangeInsertion'](_0x52cf27,'tablePasteColumn',{'tablePasteChainId':_0x498b6e}),_0x5b2c4a['length']&&(_0x28404a['markMultiRangeInsertion'](_0x5b2c4a,'tablePaste',{'tablePasteChainId':_0x498b6e,'skipNestingCheck':!0x0}),_0x5b2c4a['forEach'](_0x3ba756=>_0x3ba756['detach']?.())),_0xb267e5['length']&&(_0x28404a['markMultiRangeDeletion'](_0xb267e5,'tablePaste',{'tablePasteChainId':_0x498b6e,'skipNestingCheck':!0x0}),_0xb267e5['forEach'](_0x2a2499=>_0x2a2499['detach']?.()));const _0x3b91ea=_0x28404a['markMultiRangeBlockFormat'](_0x228dea['map'](({element:_0x2980d1})=>_0x2980d1),{'formatGroupId':_0x556763()},[],'tablePasteCell',{'tablePasteChainId':_0x498b6e});if(_0x3b91ea){const _0x10143f=_0x3b91ea['getMarkers'](),_0x549670=[];for(const {element:_0x49b59c,attributes:_0x2dc84b}of _0x228dea){if(!_0x2dc84b)continue;const _0x1a6e2c=_0x26e108['model']['createRangeOn'](_0x49b59c),_0x56d7ac=_0x10143f['find'](_0xff68aa=>_0xff68aa['getRange']()['isEqual'](_0x1a6e2c));_0x56d7ac&&_0x549670['push']([_0x56d7ac['name'],_0x2dc84b]);}_0x549670['length']&&_0x3b91ea['setAttribute']('markerAttributes',Object['fromEntries'](_0x549670));}_0x232e10=null;}));},{'priority':_0x276514['high']+0xa}),_0x26e108['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x559408,_0x318288)=>{const [_0x145425,_0xb77d9b,,_0xf633a2]=_0x318288;if(!_0x232e10)return;_0x559408['stop']();const _0x4b0535=_0x145425['cell'],_0xf28597=_0xb77d9b,_0x437d67=Pe(_0x4b0535),_0x3254a4=Pe(_0xf28597);_0x559408['return']=_0x4b0535;let _0x565b55=null,_0x2d4e0f=null;if(_0x3254a4||_0x437d67){if(_0x437d67&&!_0x3254a4){_0xf633a2['remove'](_0x4b0535['getChild'](0x0));for(const _0x379b52 of Array['from'](_0xf28597['getChildren']()))_0xf633a2['insert'](_0x379b52,_0x4b0535,'end');const _0x3921d0=_0x232e10['rowInsertionIndexes']['includes'](_0x145425['row']),_0x8c9687=_0x232e10['columnInsertionIndexes']['includes'](_0x145425['column']);_0x3921d0||_0x8c9687||(_0x565b55=_0x2fbf4a['fromRange'](_0xf633a2['createRangeIn'](_0x4b0535)));}else _0x3254a4&&!_0x437d67&&(_0x2d4e0f=_0xf633a2['createRangeIn'](_0x4b0535));}else{const _0xa8175a=_0xf633a2['createElement']('tableCellSuggestion'),_0x1669ab=_0xf633a2['createElement']('tableCellSuggestion');_0xf633a2['wrap'](_0xf633a2['createRangeIn'](_0x4b0535),_0x1669ab),_0xf633a2['insert'](_0xa8175a,_0x4b0535,0x0);for(const _0x51a375 of Array['from'](_0xf28597['getChildren']()))_0xf633a2['insert'](_0x51a375,_0xa8175a,'end');_0x565b55=_0x2fbf4a['fromRange'](_0xf633a2['createRangeOn'](_0xa8175a)),_0x2d4e0f=_0x2fbf4a['fromRange'](_0xf633a2['createRangeOn'](_0x1669ab));}const _0x367344=Array['from'](_0xf28597['getAttributes']())['filter'](([_0x2f8fab])=>ge['includes'](_0x2f8fab));_0x232e10['cells']['push']({'element':_0x4b0535,'attributes':_0x367344['length']?Object['fromEntries'](_0x367344):null}),_0x565b55&&_0x232e10['insertionRanges']['push'](_0x565b55),_0x2d4e0f&&_0x232e10['deletionRanges']['push'](_0x2d4e0f);},{'priority':'high'}),_0xa05cfb['on']('insertColumns',(_0x22428e,_0x45650d)=>{const [_0x5d0b02,_0x2096ec={}]=_0x45650d;if(!_0x232e10)return;const _0x3b4336=_0x2096ec['at']||0x0,_0x5f4a78=_0x2096ec['columns']||0x1;_0x232e10['columnInsertionIndexes']=new Array(_0x5f4a78)['fill'](_0x3b4336)['map']((_0x3ffb7d,_0x2f9f5f)=>_0x3ffb7d+_0x2f9f5f);for(const {cell:_0x2bc334}of _0xa05cfb['createTableWalker'](_0x5d0b02,{'startColumn':_0x3b4336,'endColumn':_0x3b4336+_0x5f4a78-0x1}))_0x232e10['columnInsertionRanges']['push'](_0x26e108['model']['createRangeOn'](_0x2bc334));},{'priority':'low'}),_0xa05cfb['on']('insertRows',(_0x413770,_0x5d81ae)=>{const [_0x946765,_0x567ce5={}]=_0x5d81ae;if(!_0x232e10)return;const _0x2824e6=_0x567ce5['at']||0x0,_0x2cefd2=_0x567ce5['rows']||0x1;_0x232e10['rowInsertionIndexes']=new Array(_0x2cefd2)['fill'](_0x2824e6)['map']((_0x5f0d87,_0x394cdb)=>_0x5f0d87+_0x394cdb);for(const {cell:_0x28b8ff}of _0xa05cfb['createTableWalker'](_0x946765,{'startRow':_0x2824e6,'endRow':_0x2824e6+_0x2cefd2-0x1}))_0x232e10['rowInsertionRanges']['push'](_0x26e108['model']['createRangeOn'](_0x28b8ff));},{'priority':'low'}),_0x28404a['descriptionFactory']['registerDescriptionCallback'](_0x33259c=>{if(_0x33259c['subType']&&_0x33259c['subType']['startsWith']('tablePaste'))return _0x33259c['previous']?{}:{'type':'insertion','content':o(_0x26e108['locale'],'*Replace\x20table\x20cells*')};});const _0x2144e9=()=>!0x1;for(const _0xae833e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x28404a['_suggestionFactory']['registerCustomCallback']('insertion',_0xae833e,'join',_0x2144e9),_0x28404a['_suggestionFactory']['registerCustomCallback']('deletion',_0xae833e,'join',_0x2144e9),_0x28404a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xae833e,'join',_0x2144e9);_0x28404a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2144e9),_0x28404a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x36208d,_0x38314f,_0x8f8b3d)=>{const _0xc533=_0x36208d['map'](_0x1f1b87=>_0x1f1b87['getContainedElement']())['filter'](_0x546311=>_0x546311),_0x31600c=new Map(_0xc533['map'](_0x18dc02=>[_0x18dc02,null]));if(_0x232e10){for(const {element:_0x3803f5,attributes:_0x1897b0}of _0x232e10['cells'])_0x1897b0&&_0x31600c['set'](_0x3803f5,_0x1897b0);}else{if(_0x8f8b3d&&_0x8f8b3d['markerAttributes'])for(const [_0x3dee90,_0x248c5b]of Object['entries'](_0x8f8b3d['markerAttributes'])){const _0x31592d=_0x26e108['model']['markers']['get'](_0x3dee90),_0x3c6d44=_0x31592d?_0x31592d['getRange']()['getContainedElement']():null;_0x3c6d44&&_0x31600c['set'](_0x3c6d44,_0x248c5b);}}_0x26e108['model']['change'](_0x278a6d=>{for(const [_0x495863,_0x3eb9ff]of _0x31600c)_0x278a6d['setAttributes']({...Ce,..._0x3eb9ff},_0x495863);});});const _0x3478ab=(_0x2af278,_0x28841d)=>{_0x28404a['_suggestionFactory']['registerCustomCallback'](_0x2af278,'tablePaste',_0x28841d,(_0x336154,_0x250e10,_0x3783b3)=>{_0x26e108['model']['change'](_0x4b927c=>{const _0x5ea429=[];for(const _0xb66e91 of _0x336154){const _0x2e7ec3=_0xb66e91['start']['nodeAfter'];_0x2e7ec3['is']('element','tableCellSuggestion')&&_0x5ea429['push'](_0x2e7ec3);}_0x28404a['_suggestionFactory']['getSuggestionCallback'](_0x2af278,null,_0x28841d)(_0x336154,_0x250e10,_0x3783b3);for(const _0x7db771 of _0x5ea429)'$graveyard'!=_0x7db771['root']['rootName']&&_0x4b927c['unwrap'](_0x7db771);});});};_0x3478ab('insertion','accept'),_0x3478ab('insertion','discard'),_0x3478ab('deletion','accept'),_0x3478ab('deletion','discard'),_0x28404a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xae09f2=>{const _0x3591b0=_0xae09f2['map'](_0x5ba9e3=>_0x5ba9e3['getContainedElement']()),_0x20edea=_0x3591b0[0x0]['findAncestor']('table'),{minRow:_0x559149,maxRow:_0x2bac0d}=_0x53039f['_getCoordsForCells'](_0x3591b0);_0xa05cfb['removeRows'](_0x20edea,{'at':_0x559149,'rows':_0x2bac0d-_0x559149+0x1});}),_0x28404a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x192144=>{const _0x2ad55c=_0x192144['map'](_0x2ca953=>_0x2ca953['getContainedElement']()),_0x4ad2f2=_0x2ad55c[0x0]['findAncestor']('table'),{minColumn:_0x3feb53,maxColumn:_0x440c70}=_0x53039f['_getCoordsForCells'](_0x2ad55c);_0xa05cfb['removeColumns'](_0x4ad2f2,{'at':_0x3feb53,'columns':_0x440c70-_0x3feb53+0x1});});const _0x28b5e3=(_0xf8d065,_0x45a773)=>{if(!_0x45a773['subType']||!_0x45a773['subType']['startsWith']('tablePaste'))return;const _0x225ebc=_0x45a773['attributes']['tablePasteChainId'],_0x5dc622=_0x28404a['getSuggestions']()['filter'](_0x90a53a=>_0x90a53a['isInContent']&&_0x90a53a['attributes']&&_0x90a53a['attributes']['tablePasteChainId']==_0x225ebc);_0x5dc622['length']&&_0x45a773['getAllAdjacentSuggestions']()['length']!=_0x5dc622['length']&&_0x5dc622['reduce']((_0x380c77,_0x3404fd)=>(_0x380c77['next']=_0x3404fd,_0x3404fd['previous']=_0x380c77,_0x3404fd));};function _0x45ac7a(_0x3dc77c,_0x47d3a8=!0x0){const {id:_0xa2a2ca}=_0x28404a['_splitMarkerName'](_0x3dc77c['markerName']),_0x591974=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4b4217=_0x28404a['activeMarkers']['includes'](_0x3dc77c['markerName']);return _0x4b4217&&_0x591974['push']('ck-suggestion-marker--active'),{'classes':_0x591974,'attributes':{'data-suggestion':_0xa2a2ca},'priority':_0x4b4217&&_0x47d3a8?0xbc2:0xbb8};}_0x28404a['on']('suggestionLoaded',_0x28b5e3,{'priority':'high'}),_0x28404a['on']('suggestionUnloaded',_0x28b5e3,{'priority':'high'}),_0x26e108['model']['document']['registerPostFixer'](()=>{let _0x53e4be=!0x1;const _0x87161=Array['from'](_0x26e108['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b7e46,data:_0x45ed18}of _0x87161){const {group:_0x36593e,type:_0x17f2cd,id:_0x1928a1}=_0x28404a['_splitMarkerName'](_0x5b7e46);if('suggestion'!=_0x36593e||'deletion'!=_0x17f2cd||_0x45ed18['oldRange'])continue;if(!_0x28404a['hasSuggestion'](_0x1928a1))continue;const _0x49b5b3=_0x28404a['getSuggestion'](_0x1928a1)['getRanges'](),_0x454b1c=_0x26e108['plugins']['get']('Users')['me'];for(const _0x109524 of _0x28404a['getSuggestions']()){if(!_0x109524['isInContent']||_0x109524['author']!=_0x454b1c)continue;if('formatBlock'!=_0x109524['type']||'tablePasteCell'!=_0x109524['subType'])continue;if(_0x109524['getRanges']()['every'](_0x274b74=>_0x49b5b3['some'](_0x37ad14=>_0x37ad14['containsRange'](_0x274b74,!0x0)))){for(const _0x4f5a89 of _0x109524['getAllAdjacentSuggestions']())_0x4f5a89['isInContent']&&(_0x4f5a89['discard'](),_0x53e4be=!0x0);}}}return _0x53e4be;}),_0x26e108['model']['document']['registerPostFixer'](_0x3c2562=>{const _0x5ec6f6=_0x26e108['commands']['get']('redo');if(!_0x5ec6f6||!_0x5ec6f6['_createdBatches']['has'](_0x3c2562['batch']))return!0x1;let _0x343182=!0x1;const _0x27801a=_0x26e108['plugins']['get']('Users')['me'],_0x267a64=_0x26e108['model']['document']['differ']['getChanges'](),_0x4af688=Array['from'](_0x26e108['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x40343c,data:_0x2f67f9})=>{const {group:_0x178680,subType:_0x144c9b,authorId:_0x3d5a52}=_0x28404a['_splitMarkerName'](_0x40343c);return'suggestion'==_0x178680&&'tablePaste'==_0x144c9b&&_0x3d5a52==_0x27801a['id']&&!_0x2f67f9['oldRange'];});for(const _0x226f7c of _0x267a64){if('insert'!=_0x226f7c['type']||'tableCellSuggestion'!=_0x226f7c['name']||0x1!=_0x226f7c['length'])continue;const _0x2fd3ce=_0x3c2562['createRange'](_0x226f7c['position'],_0x226f7c['position']['getShiftedBy'](0x1));if(!_0x4af688['find'](({data:_0x3eb273})=>_0x3eb273['newRange']['isEqual'](_0x2fd3ce))){for(const {name:_0x4664e6,data:_0x67c0f}of _0x4af688)if(_0x2fd3ce['containsRange'](_0x67c0f['newRange'])){_0x3c2562['updateMarker'](_0x4664e6,{'range':_0x2fd3ce}),_0x343182=!0x0;break;}}}return _0x343182;}),_0x26e108['model']['document']['registerPostFixer'](_0x208e20=>{let _0x2d7744=!0x1;const _0x18ec94=_0x26e108['plugins']['get']('Users')['me'],_0x2a8142=_0x28404a['getSuggestions']()['filter'](_0x475814=>_0x475814['isInContent']&&_0x475814['author']==_0x18ec94),_0x52add2=new Set(),_0x331ec9=new Set();for(const _0x1d4a3f of _0x2a8142)if('tablePaste'==_0x1d4a3f['subType'])for(const _0x484052 of _0x1d4a3f['getMarkers']()){const _0x3ee02f=_0x484052['getRange']()['getContainedElement']();if(_0x3ee02f){if(_0x3ee02f['is']('element','tableCellSuggestion')&&Pe(_0x3ee02f)){_0x1d4a3f['removeMarker'](_0x484052['name']),_0x52add2['add'](_0x3ee02f),_0x2d7744=!0x0;const _0x41b0df=_0x3ee02f['nextSibling'],_0x2f1e77=_0x3ee02f['previousSibling'],_0x48ab73=_0x41b0df&&_0x41b0df['is']('element','tableCellSuggestion'),_0x1e3b02=_0x2f1e77&&_0x2f1e77['is']('element','tableCellSuggestion');_0x48ab73&&!_0x52add2['has'](_0x41b0df)&&_0x331ec9['add'](_0x41b0df),_0x1e3b02&&!_0x52add2['has'](_0x2f1e77)&&_0x331ec9['add'](_0x2f1e77);}else _0x3ee02f['is']('element','paragraph')&&_0x3ee02f['isEmpty']&&(_0x1d4a3f['removeMarker'](_0x484052['name']),_0x2d7744=!0x0);}}else{if('tablePasteCell'==_0x1d4a3f['subType']){if(!_0x1d4a3f['attributes']||!_0x1d4a3f['attributes']['tablePasteChainId'])continue;const _0x5220ea=_0x1d4a3f['attributes']['markerAttributes'];if(_0x5220ea&&Object['keys'](_0x5220ea)['length'])continue;const _0x1958e5=_0x1d4a3f['attributes']['tablePasteChainId'];let _0x1f7228=!0x0,_0xb32298=!0x0;for(const _0x49f97b of _0x2a8142)if(_0x49f97b['subType']&&_0x49f97b['subType']['startsWith']('tablePaste')){if(!_0x49f97b['attributes']['tablePasteChainId']){_0xb32298=!0x1;break;}if(_0x49f97b['id']!=_0x1d4a3f['id']&&_0x49f97b['attributes']['tablePasteChainId']==_0x1958e5){_0x1f7228=!0x1;break;}}_0xb32298&&_0x1f7228&&(_0x1d4a3f['removeMarkers'](),_0x2d7744=!0x0);}}for(const _0x4ec845 of _0x52add2)_0x208e20['remove'](_0x4ec845);for(const _0x269fea of _0x331ec9)_0x208e20['unwrap'](_0x269fea);return _0x2d7744;}),_0x26e108['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4978a0,_0x3830be)=>_0x45ac7a(_0x4978a0),'converterPriority':'high'}),_0x26e108['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x287c1c,_0x2528e6)=>_0x2528e6['options']['showSuggestionHighlights']?_0x45ac7a(_0x287c1c,!0x1):null,'converterPriority':'high'});const _0x2f1f25=_0x26e108['editing']['view'];this['listenTo'](_0x2f1f25['document'],'clipboardOutput',(_0x30f710,_0x44c281)=>{const _0x3221d4=[];for(const _0x3a49e6 of _0x2f1f25['createRangeIn'](_0x44c281['content'])['getItems']())_0x3a49e6['is']('element','suggestion-td')&&_0x3221d4['push'](_0x3a49e6);_0x2f1f25['change'](_0x27d0f7=>{for(const _0x584a55 of _0x3221d4)_0x27d0f7['move'](_0x27d0f7['createRangeIn'](_0x584a55),_0x27d0f7['createPositionBefore'](_0x584a55)),_0x27d0f7['remove'](_0x584a55);});});}}function Pe(_0x59d8fa){if(_0x59d8fa['isEmpty'])return!0x0;const _0x16b0b6=_0x59d8fa['getChild'](0x0);return _0x16b0b6['is']('element','paragraph')&&_0x16b0b6['isEmpty'];}function we(_0x1600ea,_0x40ad65={},_0x377e0f){for(const {isAnchor:_0x5ea52f,cellHeight:_0x3a42e2,cellWidth:_0x58a027}of _0x377e0f['createTableWalker'](_0x1600ea,{'includeAllSlots':!0x0,..._0x40ad65}))if(!_0x5ea52f||0x1!=_0x3a42e2||0x1!=_0x58a027)return!0x1;return!0x0;}class Ct extends _0x30666f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2badba=this['editor']['plugins']['get']('TrackChangesEditing');_0x2badba['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2badba['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2badba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2badba['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2badba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2badba['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1d3902,_0x1f45ac){const _0x114eb7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a75fd=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xe6262b=_0x1f45ac['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3b12fd=_0x5a75fd['getColumnGroupElement'](_0xe6262b);let _0x1492ae=_0x3b12fd?_0x5a75fd['getTableColumnsWidths'](_0x3b12fd):null,_0x4efe3e=_0xe6262b['getAttribute']('tableWidth')||null;const _0x29d648=_0x1f45ac['tableWidth']||_0x4efe3e,_0x51c57f=_0x1f45ac['columnWidths']||_0x1492ae,_0x446d4c=this['editor']['plugins']['get']('Users')['me'];for(const _0xf23d9b of _0x114eb7['getSuggestions']()){const _0xbab4c7=_0xf23d9b['getContainedElement']();if('resizeTable'===_0xf23d9b['subType']&&_0xbab4c7===_0xe6262b){_0xf23d9b['author']!==_0x446d4c&&_0xf23d9b['discard']();const _0x4ca588=_0xf23d9b['data']['commandParams'];_0x4efe3e=_0x4ca588[0x0]['tableWidth'],_0x1492ae=_0x4ca588[0x0]['columnWidths'];break;}}_0x1d3902({'table':_0xe6262b,'tableWidth':_0x29d648,'columnWidths':_0x51c57f}),_0x114eb7['markBlockFormat'](_0xe6262b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4efe3e,'columnWidths':_0x1492ae}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x28f7f6){if('formatBlock'!=_0x28f7f6['type']&&'formatInline'!=_0x28f7f6['type'])return;const {data:_0x40cd7c}=_0x28f7f6;if(_0x40cd7c&&'resizeTable'===_0x40cd7c['formatGroupId']){const _0x4ec32c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4ec32c)};}}}class _t extends _0x30666f{['afterInit'](){const _0x204b49=this['editor'];_0x204b49['plugins']['has']('Template')&&_0x204b49['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x30666f{['afterInit'](){const _0x5ce0d2=this['editor'];if(!_0x5ce0d2['commands']['get']('insertTableOfContents'))return;_0x5ce0d2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x367dd6=_0x5ce0d2['plugins']['get']('TrackChangesEditing'),_0x4d061a=_0x5ce0d2['locale'];_0x367dd6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4b7309=>o(_0x4d061a,'ELEMENT_TABLE_OF_CONTENTS',_0x4b7309));}}class Nt extends _0x30666f{['afterInit'](){const _0x41e1bd=this['editor'];if(!_0x41e1bd['plugins']['has']('Title'))return;const _0x73596a=_0x41e1bd['plugins']['get']('TrackChangesEditing');_0x73596a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x41e1bd['locale'],'ELEMENT_TITLE')),_0x41e1bd['model']['document']['registerPostFixer'](_0x506515=>{let _0x22a11e=!0x1;const _0x33ce38=Array['from'](_0x41e1bd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ac237,data:_0xd1b8e6}of _0x33ce38){const {group:_0x358987}=_0x73596a['_splitMarkerName'](_0x3ac237);if('suggestion'!==_0x358987||!_0xd1b8e6['newRange'])continue;const _0x4b42e2=_0xd1b8e6['newRange'],_0x4412b7=_0x4b42e2['end']['nodeBefore'];if(!_0x4412b7||!_0x4412b7['is']('element','title-content'))continue;if(!_0x4b42e2['start']['isTouching'](_0x4b42e2['end']))continue;const _0x4933bd=_0x41e1bd['model']['schema']['getNearestSelectionRange'](_0x4b42e2['end'],'forward');if(_0x4933bd&&_0x4933bd['isCollapsed']){const _0x54a021=_0x506515['createRange'](_0x4b42e2['start'],_0x4933bd['start']);_0x54a021['isEqual'](_0x4b42e2)||(_0x506515['updateMarker'](_0x3ac237,{'range':_0x54a021}),_0x22a11e=!0x0);}_0x22a11e||(_0x506515['removeMarker'](_0x3ac237),_0x22a11e=!0x0);}return _0x22a11e;});}}class Mt extends _0x30666f{['afterInit'](){const _0x5c1dd4=this['editor'],_0x1f23a5=_0x5c1dd4['plugins']['get']('TrackChangesEditing');_0x5c1dd4['plugins']['has']('UndoEditing')&&(_0x1f23a5['enableCommand']('undo'),_0x1f23a5['enableCommand']('redo'));}}class $t extends _0x30666f{static get['requires'](){return[St];}['afterInit'](){const _0x4a8f87=this['editor'];if(!_0x4a8f87['plugins']['has']('TableCaptionEditing'))return;_0x4a8f87['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x30666f{['tableProperties'];['tableCellProperties'];constructor(_0x3bcdae){super(_0x3bcdae),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 _0x58babd=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5e81a7 of this['tableProperties'])_0x58babd['enableCommand'](_0x5e81a7,(_0x316fa7,_0x325c5e)=>{const _0x5e4b18=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5e81a7,[_0x5e4b18],this['tableProperties'],'tableProperties',_0x316fa7,_0x325c5e);});_0x58babd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x58babd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58babd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x56113e,_0x5a1b51)=>this['handleDiscardAction'](this['tableProperties'],_0x56113e,_0x5a1b51)),_0x58babd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x167eb7 of this['tableCellProperties'])_0x58babd['enableCommand'](_0x167eb7,(_0x24ee29,_0x28c807)=>{const _0x2404e5=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x167eb7,_0x2404e5,this['tableCellProperties'],'tableCellProperties',_0x24ee29,_0x28c807);});_0x58babd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x58babd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58babd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x14a95f,_0x5e15d5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x14a95f,_0x5e15d5)),_0x58babd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x58babd['descriptionFactory']['registerDescriptionCallback'](_0x3a8ef4=>this['handleSuggestionDescription'](_0x3a8ef4));}['_handlePropertyChange'](_0x5a8794,_0x2292bb,_0x79a924,_0x469467,_0x1aac99,_0x4ff5e1){const _0x294a29=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4ff5e1['batch'],()=>{for(const _0x297a7d of _0x2292bb){if(this['_getSuggestion'](_0x297a7d,_0x469467))_0x1aac99(_0x4ff5e1);else{const _0x7f87ea={};for(const _0x58db2a of _0x79a924){const _0xd222f6=_0x297a7d['getAttribute'](_0x58db2a);void 0x0!==_0xd222f6&&(_0x7f87ea[_0x58db2a]=_0xd222f6);}_0x1aac99(_0x4ff5e1),_0x294a29['markBlockFormat'](_0x297a7d,{'commandParams':[_0x7f87ea]},[],_0x469467);}}});}['handleDiscardAction'](_0x51a4ef,_0x7a7205,_0x2ba0a2){const _0x3cc0e8=_0x7a7205[0x0]['start']['nodeAfter'],_0x49bd7d=_0x2ba0a2['commandParams'][0x0];this['editor']['model']['change'](_0x9f1446=>{for(const _0x42c725 of _0x51a4ef)void 0x0!==_0x49bd7d[_0x42c725]?_0x9f1446['setAttribute'](_0x42c725,_0x49bd7d[_0x42c725],_0x3cc0e8):_0x9f1446['removeAttribute'](_0x42c725,_0x3cc0e8);});}['handleSuggestionDescription'](_0x3a7e9d){if(_0x3a7e9d['data'])switch(_0x3a7e9d['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'](_0x1d2a27,_0x576208){const _0x40603d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x572b76 of _0x40603d['getSuggestions']({'skipNotAttached':!0x0})){const _0x2a9845=_0x572b76['getContainedElement']();if(_0x572b76['subType']===_0x576208&&_0x2a9845===_0x1d2a27)return _0x572b76;}return null;}}const m='$elementName';class p extends _0x30666f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x48a60c,_0x56f5fd,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,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x26eaad){function _0x1f989e(_0xd1375e){return _0xd1375e['map'](_0x51e45c=>String['fromCharCode'](_0x51e45c))['join']('');}super(_0x26eaad),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x46c746,_0x2085b6,_0x1e564a,_0x5dfcf9)=>{this['_model']['change'](()=>{for(const _0x198131 of[..._0x5dfcf9,..._0x1e564a])this['_model']['markers']['has'](_0x198131)&&_0x26eaad['editing']['reconvertMarker'](_0x198131);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x26eaad['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(),_0x26eaad['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x26eaad['config']['get']('trackChanges.trackFormatChanges'),_0x26eaad['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x26eaad['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x26eaad,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1f989e([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1f989e([0x34,0x30,0x34,0x38,0x31,0x34,0x33,0x38]);}['init'](){const _0x1ce147=this['editor'],_0x5c7f65=(_0x56b59b,_0x6d75b2)=>{if('attribute'!=_0x56b59b)return'ck-suggestion-marker-'+_0x56b59b;const _0x17e353=_0x6d75b2['split']('|')[0x0];return this['_isBlockAttribute'](_0x17e353)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1ce147['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4284fc=>{const {id:_0x4f1010,type:_0x3619e7,subType:_0x229381}=this['_splitMarkerName'](_0x4284fc['markerName']),_0x9066c2=['ck-suggestion-marker',_0x5c7f65(_0x3619e7,_0x229381)];let _0x25f325=0xbb8;return this['activeMarkers']['includes'](_0x4284fc['markerName'])&&(_0x9066c2['push']('ck-suggestion-marker--active'),_0x25f325=0xbc2),'deletion'==_0x3619e7&&(_0x25f325+=0x5),{'classes':_0x9066c2,'attributes':{'data-suggestion':_0x4f1010},'priority':_0x25f325};}}),_0x1ce147['conversion']['for']('dataDowncast')['add'](_0x76faaa=>{_0x76faaa['on']('addMarker:suggestion',(_0x3be36e,_0x5c2852,_0x4a1a4d)=>{if(!_0x4a1a4d['options']['showSuggestionHighlights'])return;const _0x5d2206=_0x5c2852['item'];if(!_0x5d2206)return;const _0x47b319=_0x4a1a4d['mapper']['toViewElement'](_0x5d2206);_0x1ce147['model']['schema']['isObject'](_0x5d2206)&&_0x47b319&&!_0x47b319['getCustomProperty']('widget')&&_0x47b319['is']('containerElement')&&_0x552020(_0x47b319,_0x4a1a4d['writer']);},{'priority':'high'});}),_0x1ce147['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1fc88e,_0x500b79)=>{if(!_0x500b79['options']['showSuggestionHighlights'])return null;const {type:_0x4947f3,subType:_0x2ae95f}=this['_splitMarkerName'](_0x1fc88e['markerName']);return{'classes':['ck-suggestion-marker',_0x5c7f65(_0x4947f3,_0x2ae95f)],'priority':0xbb8};}});const _0x37c5d3=({showActiveMarkers:_0x4efd82=!0x0,isAttributeSuggestion:_0x3c3829=!0x1}={})=>(_0x39f854,_0x790676,_0x43f92b)=>{if(!_0x790676['item'])return;const {id:_0x34664b}=this['_splitMarkerName'](_0x790676['markerName']);if(_0x3c3829){const _0x178263=this['_suggestions']['get'](_0x34664b),_0x53abea=this['_getAttributeKey'](_0x178263);if(!this['_isBlockAttribute'](_0x53abea))return;}if(_0x790676['item']['is']('selection'))return void _0x43f92b['consumable']['consume'](_0x790676['item'],_0x39f854['name']);const _0xd04e93=_0x43f92b['mapper']['toViewElement'](_0x790676['item']);if(_0x790676['item']['is']('element')&&_0x1ce147['model']['schema']['isBlock'](_0x790676['item'])&&!_0xd04e93['getCustomProperty']('addHighlight')){_0x43f92b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xd04e93),_0x43f92b['writer']['setAttribute']('data-suggestion',_0x34664b,_0xd04e93),_0x43f92b['mapper']['bindElementToMarker'](_0xd04e93,_0x790676['markerName']),_0x4efd82&&(this['activeMarkers']['includes'](_0x790676['markerName'])?_0x43f92b['writer']['addClass']('ck-suggestion-marker--active',_0xd04e93):_0x43f92b['writer']['removeClass']('ck-suggestion-marker--active',_0xd04e93));for(const _0x333c74 of _0x1ce147['model']['createRangeIn'](_0x790676['item'])['getItems']())_0x43f92b['consumable']['consume'](_0x333c74,_0x39f854['name']);_0x43f92b['consumable']['consume'](_0x790676['item'],_0x39f854['name']);}};_0x1ce147['conversion']['for']('dataDowncast')['add'](_0x303f13=>{_0x303f13['on']('addMarker:suggestion:formatBlock',(_0x1627bd,_0x37b201,_0x430ae0)=>{_0x430ae0['options']['showSuggestionHighlights']&&_0x37c5d3({'showActiveMarkers':!0x1})(_0x1627bd,_0x37b201,_0x430ae0);},{'priority':'highest'});}),_0x1ce147['conversion']['for']('dataDowncast')['add'](_0x4548e9=>{_0x4548e9['on']('addMarker:suggestion:attribute',(_0x253234,_0x41ac1d,_0x87525d)=>{_0x87525d['options']['showSuggestionHighlights']&&_0x37c5d3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x253234,_0x41ac1d,_0x87525d);},{'priority':'highest'});}),_0x1ce147['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1b8594,_0x493884)=>_0x493884['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1b8594['substr'](0xb)}}),_0x1ce147['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x38b1a3,{writer:_0x170ca4})=>{let _0x18874a='suggestion:'+_0x38b1a3['getAttribute']('suggestion-type')+':'+_0x38b1a3['getAttribute']('id');return _0x38b1a3['getAttribute']('marker-count')&&(_0x18874a+=':'+_0x38b1a3['getAttribute']('marker-count')),_0x170ca4['createElement']('$marker',{'data-name':_0x18874a});}}),_0x1ce147['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1ce147['conversion']['for']('editingDowncast')['add'](_0x2b57ba=>{_0x2b57ba['on']('addMarker:suggestion:formatBlock',_0x37c5d3(),{'priority':'high'});}),_0x1ce147['conversion']['for']('editingDowncast')['add'](_0x29d8a6=>{_0x29d8a6['on']('addMarker:suggestion:attribute',_0x37c5d3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1ce147['conversion']['for']('editingDowncast')['add'](_0x2baddc=>{_0x2baddc['on']('removeMarker:suggestion:formatBlock',(_0x419c1,_0x1800a9,_0x4e9604)=>{const _0x241bd2=_0x4e9604['mapper']['markerNameToElements'](_0x1800a9['markerName']);if(_0x241bd2){for(const _0x558e37 of _0x241bd2)_0x558e37['getCustomProperty']('addHighlight')||(_0x4e9604['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x558e37),_0x4e9604['writer']['removeAttribute']('data-suggestion',_0x558e37),_0x4e9604['mapper']['unbindElementFromMarkerName'](_0x558e37,_0x1800a9['markerName']));}},{'priority':'high'});}),_0x1ce147['conversion']['for']('editingDowncast')['add'](_0x27e61b=>{_0x27e61b['on']('removeMarker:suggestion:attribute',(_0x29a43b,_0x25f799,_0x12bd97)=>{const _0x146f77=_0x12bd97['mapper']['markerNameToElements'](_0x25f799['markerName']);if(!_0x146f77)return;const {id:_0x42d13c}=this['_splitMarkerName'](_0x25f799['markerName']),_0x2d42ed=this['_suggestions']['get'](_0x42d13c),_0x50d023=this['_getAttributeKey'](_0x2d42ed);if(this['_isBlockAttribute'](_0x50d023)){for(const _0x2ae8a4 of _0x146f77)_0x2ae8a4['getCustomProperty']('addHighlight')||(_0x12bd97['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ae8a4),_0x12bd97['writer']['removeAttribute']('data-suggestion',_0x2ae8a4),_0x12bd97['mapper']['unbindElementFromMarkerName'](_0x2ae8a4,_0x25f799['markerName']));}},{'priority':'high'});}),_0x1ce147['model']['document']['registerPostFixer'](_0x474c1f=>{let _0x54bf9f=!0x1;const _0x55e760=Array['from'](_0x1ce147['model']['document']['differ']['getChangedMarkers']()),_0x29eaf6=new Set();for(const {name:_0xaed82a,data:_0x55d141}of _0x55e760){const {group:_0x58afa4,type:_0x5505e2,subType:_0x4dad24,id:_0x191ce8}=this['_splitMarkerName'](_0xaed82a);if('suggestion'!==_0x58afa4)continue;const _0x40329c=this['_suggestions']['get'](_0x191ce8);if(null!=_0x55d141['newRange']){'formatInline'==_0x5505e2&&(_0x54bf9f=_0x54bf9f||Vt(_0x55d141['newRange'],_0xaed82a,_0x474c1f,_0x1ce147['model']['schema']));const _0xd424a6='attribute'==_0x5505e2&&this['_isBlockAttribute'](_0x4dad24['split']('|')[0x0]);if(_0x55d141['newRange']['isCollapsed']||'$graveyard'==_0x55d141['newRange']['root']['rootName']||'formatBlock'==_0x5505e2&&!Ot(_0x55d141['newRange'])||_0xd424a6&&!Ot(_0x55d141['newRange'])||'deletion'==_0x5505e2&&!(!Et(_0x348aac=_0x55d141['newRange'])&&!function(_0x28e2c7){return _0x28e2c7['start']['parent']==_0x28e2c7['end']['nodeBefore']&&_0x28e2c7['start']['isAtEnd'];}(_0x348aac)))_0x474c1f['removeMarker'](_0xaed82a),_0x54bf9f=!0x0;else{if(!_0x40329c||!_0x40329c['isInContent'])continue;_0x29eaf6['add'](_0x40329c);}}}var _0x348aac;return _0x29eaf6['size']>0x0&&(_0x54bf9f=!!this['_joinWithAdjacentSuggestions'](_0x29eaf6)||_0x54bf9f),_0x54bf9f;}),_0x1ce147['model']['document']['registerPostFixer'](_0x2f97bd=>{let _0x10ad40=!0x1;for(const _0x2536ca of _0x1ce147['model']['document']['differ']['getChanges']())if('insert'==_0x2536ca['type'])for(const _0x251280 of this['_suggestions']['values']()){if(_0x251280['isMultiRange']||!_0x251280['isInContent'])continue;const _0x113bf3='formatBlock'==_0x251280['type'],_0x5e2e1c=this['_getAttributeKey'](_0x251280),_0x4d2a36=_0x5e2e1c&&this['_isBlockAttribute'](_0x5e2e1c);if(!_0x113bf3&&!_0x4d2a36)continue;const _0x254b0a=_0x251280['getFirstRange']();if(_0x254b0a['start']['parent']!=_0x254b0a['end']['parent']&&!_0x254b0a['end']['isAtEnd']){const _0x42dbb1=_0x1ce147['model']['createPositionAt'](_0x254b0a['start']['nodeAfter'],'end'),_0x3417e8=_0x1ce147['model']['createRange'](_0x254b0a['start'],_0x42dbb1);_0x2f97bd['updateMarker'](_0x251280['getFirstMarker'](),{'range':_0x3417e8}),_0x10ad40=!0x0;}}return _0x10ad40;}),_0x1ce147['model']['document']['registerPostFixer'](_0x4191e7=>this['_processAttributeChanges'](_0x4191e7)),_0x1ce147['model']['document']['registerPostFixer'](_0x4ebb95=>!_0x4ebb95['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4ebb95)),_0x1ce147['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1ce147['model']['document']['on']('change:data',(_0x43521a,_0x2506f6)=>{if(!_0x2506f6['isLocal']||_0x2506f6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5c9bf8=_0x1ce147['model']['document']['differ']['getChanges']();if(0x0==_0x5c9bf8['length'])return;const _0x37ae98=[],_0x52f8a7=_0x5c9bf8['filter'](_0x2e7a75=>'attribute'==_0x2e7a75['type']),_0x5bcfc5=_0x5c9bf8['filter'](_0x5c7e7e=>'insert'==_0x5c7e7e['type']&&'$text'!=_0x5c7e7e['name']);for(const _0x5c6c11 of _0x52f8a7)this['_isRegisteredAttribute'](_0x5c6c11['attributeKey'])&&_0x37ae98['push']({'key':_0x5c6c11['attributeKey'],'newValue':_0x5c6c11['attributeNewValue'],'oldValue':_0x5c6c11['attributeOldValue'],'range':Gt(_0x5c6c11['range'],_0x1ce147['model'])});for(const _0x162ce6 of _0x5bcfc5){if('rename'!=_0x162ce6['action']&&'refresh'!=_0x162ce6['action'])continue;const _0x43a6e8=Ft(_0x162ce6['position']['nodeAfter'],_0x1ce147['model']),_0x33a876=_0x162ce6['before'];'rename'==_0x162ce6['action']&&_0x37ae98['push']({'key':m,'newValue':_0x162ce6['name'],'oldValue':_0x33a876['name'],'range':_0x43a6e8});for(const [_0x5eee91,_0x304917]of _0x33a876['attributes']){if(!this['_isRegisteredAttribute'](_0x5eee91))continue;const _0xe70a8=_0x162ce6['attributes']['get'](_0x5eee91);_0x304917!==_0xe70a8&&_0x37ae98['push']({'key':_0x5eee91,'newValue':_0xe70a8,'oldValue':_0x304917,'range':_0x43a6e8});}for(const [_0x4619d0,_0x3dff85]of _0x162ce6['attributes'])this['_isRegisteredAttribute'](_0x4619d0)&&(_0x33a876['attributes']['has'](_0x4619d0)||_0x37ae98['push']({'key':_0x4619d0,'newValue':_0x3dff85,'oldValue':null,'range':_0x43a6e8}));}0x0!=_0x37ae98['length']&&_0x1ce147['model']['enqueueChange'](_0x2506f6,_0x379a31=>{const _0x4faead=_0x556763();for(const {range:_0x4dbdfd,key:_0xeb1ed2,oldValue:_0x10bfe2,newValue:_0x79d86a}of _0x37ae98)this['markAttributeChange'](_0x4dbdfd,_0xeb1ed2,_0x10bfe2,_0x79d86a,{'groupId':_0x4faead});this['_reduceExistingSuggestions'](_0x379a31,_0x37ae98);});},{'priority':'lowest'}),_0x1ce147['model']['markers']['on']('update:suggestion',(_0x4ccba2,_0x5d4be0,_0x11bffe)=>{if(null==_0x11bffe){const {id:_0xc9ef21}=this['_splitMarkerName'](_0x5d4be0['name']),_0x3b0281=this['_suggestions']['get'](_0xc9ef21);_0x3b0281&&_0x3b0281['addMarkerName'](_0x5d4be0['name']);}}),_0x1ce147['model']['document']['on']('change:data',()=>{const _0x474242=Array['from'](_0x1ce147['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1afd28=>'suggestion'===this['_splitMarkerName'](_0x1afd28['name'])['group']);if(0x0===_0x474242['length'])return;_0x474242['sort']((_0x5ec2b2,_0x178f0e)=>{const _0x4a5dc7=_0x5ec2b2['data']['oldRange'],_0x453233=_0x178f0e['data']['oldRange'];return null===_0x4a5dc7&&null===_0x453233?0x0:null===_0x4a5dc7&&null!==_0x453233?-0x1:null!==_0x4a5dc7&&null===_0x453233?0x1:_0x4a5dc7['start']['isBefore'](_0x453233['start'])?-0x1:0x1;});const _0x3f64a0=new Set(),_0x4c9a3b=new Set();for(const {name:_0x59f9cb,data:_0x3c4a41}of _0x474242){const {id:_0xcfb744}=this['_splitMarkerName'](_0x59f9cb);if(null===_0x3c4a41['oldRange']){const _0x3c1de8=this['_handleNewSuggestionMarker'](_0x59f9cb);_0x4c9a3b['add'](_0x3c1de8);}else{const _0x37ec24=this['_suggestions']['get'](_0xcfb744);null!==_0x3c4a41['newRange']||_0x37ec24['isInContent']?(_0x3f64a0['add'](_0x37ec24['head']),_0x4c9a3b['add'](_0x37ec24)):this['_removeSuggestion'](_0x37ec24);}}_0x4c9a3b['size']>0x0&&this['_refreshSuggestionsChain'](_0x4c9a3b);for(const _0x75e7a0 of _0x3f64a0)this['fire']('suggestionChanged',_0x75e7a0);}),_0x1ce147['model']['on']('applyOperation',(_0x505a8f,_0x528adc)=>{const _0x548bad=_0x528adc[0x0];if(!this['_suggestions']['size'])return;if(!_0x548bad['isDocumentOperation'])return;if(_0x548bad['batch']['isUndo']||!_0x548bad['batch']['isLocal'])return;let _0x4be8cb,_0x56a07e;switch(_0x548bad['type']){case'insert':_0x4be8cb=_0x1ce147['model']['createPositionAt'](_0x548bad['position']),_0x56a07e=_0x4be8cb['getShiftedBy'](_0x548bad['howMany']);break;case'split':_0x4be8cb=_0x1ce147['model']['createPositionAt'](_0x548bad['splitPosition']),_0x56a07e=_0x1ce147['model']['createPositionAt'](_0x548bad['moveTargetPosition']);break;case'move':_0x4be8cb=_0x1ce147['model']['createPositionAt'](_0x548bad['targetPosition']),_0x56a07e=_0x4be8cb['getShiftedBy'](_0x548bad['howMany']);break;default:return;}const _0x3be651=_0x1ce147['model']['createRange'](_0x4be8cb,_0x56a07e);_0x1ce147['model']['change'](()=>{for(const {suggestion:_0xe5ef8e,meta:_0x18e262}of this['_findSuggestions'](_0x3be651)){if(_0xe5ef8e['isMultiRange'])continue;if('formatInline'==_0xe5ef8e['type'])continue;const _0x7c394b=this['_getAttributeKey'](_0xe5ef8e);if(_0x7c394b&&this['_isBlockAttribute'](_0x7c394b)&&'split'!=_0x548bad['type'])continue;const _0x11b7ca=_0xe5ef8e['data']&&_0xe5ef8e['data']['multipleBlocks'];('formatBlock'!=_0xe5ef8e['type']||'split'==_0x548bad['type']&&!_0x11b7ca)&&(_0x18e262['containsRangeInObject']||'insertion'==_0xe5ef8e['type']&&_0x18e262['isOwn']||_0xe5ef8e['getFirstRange']()['containsRange'](_0x3be651)&&this['_breakSuggestionMarker'](_0xe5ef8e,_0x4be8cb,_0x56a07e));}});},{'priority':'lowest'}),_0x1ce147['model']['on']('deleteContent',(_0x1ff280,_0xbe582b)=>{const _0x1573bf=_0xbe582b[0x0],_0x3475ba=_0xbe582b[0x1];if(_0x3475ba&&_0x3475ba['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1573bf['isCollapsed'])return;const _0x5e9308=_0x1ce147['model']['schema'],{start:_0x17790e,end:_0x5417ef}=_0x1573bf['getFirstRange'](),_0x1b6d74=_0x17790e['nodeAfter']&&_0x5e9308['isLimit'](_0x17790e['nodeAfter'])?null:_0x5e9308['getNearestSelectionRange'](_0x17790e,'forward'),_0x58d1e6=_0x5417ef['nodeBefore']&&_0x5e9308['isLimit'](_0x5417ef['nodeBefore'])?null:_0x5e9308['getNearestSelectionRange'](_0x5417ef,'backward'),_0x366aea=_0x1ce147['model']['createRange'](_0x1b6d74?_0x1b6d74['start']:_0x17790e,_0x58d1e6?_0x58d1e6['end']:_0x5417ef);_0x1ce147['model']['change'](_0x2b7b5e=>{this['markDeletion'](_0x366aea);const _0x252a65=_0x1ce147['model']['schema']['getNearestSelectionRange'](_0x366aea['start']);_0x1573bf['is']('documentSelection')?_0x2b7b5e['setSelection'](_0x252a65):_0x1573bf['setTo'](_0x252a65);}),_0x1ff280['stop']();},{'priority':_0x276514['normal']+0xa}),_0x1ce147['model']['on']('insertContent',(_0x30c707,_0x426b25)=>{const _0x3ed3da=_0x426b25[_0x426b25['length']-0x1];_0x3ed3da&&_0x3ed3da['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1ce147['model']['change'](()=>{let _0xa4216e=_0x1ce147['model']['insertContent'](_0x426b25[0x0],_0x426b25[0x1],_0x426b25[0x2],{'forceDefaultExecution':!0x0});if(!_0xa4216e)return;_0x30c707['return']=_0xa4216e['clone']();const _0x56ce6b=_0xa4216e['end']['nodeBefore'],_0x12d057=_0x1ce147['model']['schema'];_0x56ce6b&&_0x12d057['isBlock'](_0x56ce6b)&&!_0x12d057['isObject'](_0x56ce6b)&&(_0xa4216e=_0x1ce147['model']['createRange'](_0xa4216e['start'],_0x1ce147['model']['createPositionAt'](_0x56ce6b,'end'))),this['markInsertion'](_0xa4216e);}),_0x30c707['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x469f57=new $(_0x1ce147,this['_suggestions']);_0x1ce147['commands']['add']('acceptSuggestion',_0x469f57),this['enableCommand']('acceptSuggestion');const _0x46e43a=new B(_0x1ce147,this['_suggestions']);_0x1ce147['commands']['add']('discardSuggestion',_0x46e43a),this['enableCommand']('discardSuggestion'),_0x1ce147['commands']['add']('acceptAllSuggestions',new x(_0x1ce147,_0x469f57,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1ce147['commands']['add']('discardAllSuggestions',new x(_0x1ce147,_0x46e43a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1ce147['commands']['add']('acceptSelectedSuggestions',new R(_0x1ce147,_0x469f57,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1ce147['commands']['add']('discardSelectedSuggestions',new R(_0x1ce147,_0x46e43a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xf68584=_0x1ce147['plugins']['get']('CommentsRepository');this['listenTo'](_0xf68584,'addComment',(_0x155d55,{threadId:_0x3dd756})=>{const _0x3e8853=this['_suggestions']['get'](_0x3dd756);_0x3e8853&&_0x3e8853['commentThread']&&0x1===_0x3e8853['commentThread']['length']&&this['_updateSuggestionData'](_0x3dd756,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xf68584,'removeComment',(_0x7e127c,{threadId:_0x1683e5})=>{const _0x575fc6=this['_suggestions']['get'](_0x1683e5);_0x575fc6&&_0x575fc6['commentThread']&&!_0x575fc6['commentThread']['length']&&this['_updateSuggestionData'](_0x1683e5,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x192e0e){if(this['_adapter'])throw new _0x10ad1c('track-changes-adapter-already-set',this);this['_adapter']=_0x192e0e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x133063=!0x1,toJSON:_0x9b366d=!0x1}={}){const _0x41e0ed=[];for(const _0x59e8bc of this['_suggestions']['values']())_0x133063&&!_0x59e8bc['isInContent']||_0x41e0ed['push'](_0x59e8bc);return _0x9b366d?_0x41e0ed['map'](_0x5b6a58=>_0x5b6a58['toJSON']()):_0x41e0ed;}['getSuggestion'](_0xebc9b){const _0x100b70=this['_suggestions']['get'](_0xebc9b);if(!_0x100b70)throw new _0x10ad1c('track-changes-suggestion-not-found',this);return _0x100b70;}['hasSuggestion'](_0x400cbd){return this['_suggestions']['has'](_0x400cbd);}['addSuggestionData'](_0x46d44e){const {authorId:_0x21cf18,id:_0xbb9047,attributes:_0x30ee2a}=_0x46d44e,[_0x3cee5d,_0xfbfe5c]=_0x46d44e['type']['split'](':'),_0x581484=this['_suggestions']['get'](_0xbb9047)||this['_createSuggestion'](_0x3cee5d,_0xfbfe5c,_0xbb9047,_0x21cf18,_0x30ee2a);if(this['_addThreadToSuggestion'](_0x581484),this['_checkSuggestionCorrectness'](_0x581484,_0x3cee5d,_0xfbfe5c||null,_0x21cf18),_0x581484['createdAt']=_0x46d44e['createdAt'],_0x581484['_isDataLoaded']=!0x0,_0x30ee2a&&_0x30ee2a['@external']){const _0x443323=_0x30ee2a['@external'],_0x1fd312=this['_getExternalAuthor'](_0x443323['authorName']);_0x581484['authoredAt']=_0x443323['createdAt'],_0x581484['author']=_0x1fd312,_0x581484['isExternal']=!0x0;}else _0x581484['authoredAt']=_0x46d44e['createdAt'];switch(_0x46d44e['data']&&(_0x581484['data']=_0x46d44e['data']),_0x46d44e['attributes']&&(_0x581484['attributes']=_0x46d44e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x581484['_saved']=!0x0),this['_suggestionState']['get'](_0x581484)){case'notReady':this['_suggestionState']['set'](_0x581484,'dataReady');break;case'markerReady':_0x581484['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x581484])),this['_refreshSuggestionsChain'](new Set([_0x581484])),this['_suggestionState']['set'](_0x581484,'ready'),this['fire']('suggestionLoaded',_0x581484)):this['_suggestionState']['set'](_0x581484,'removed');}return _0x581484;}['acceptSuggestion'](_0x1bcd25){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x20699e of _0x1bcd25['getAllAdjacentSuggestions']())_0x20699e['accept']();});});}['discardSuggestion'](_0x269458){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x49a71e of _0x269458['getAllAdjacentSuggestions']())_0x49a71e['discard']();});});}['enableCommand'](_0x52440d,_0x4c647a){const _0x7b6069=this['editor']['commands']['get'](_0x52440d);if(!_0x7b6069)throw new _0x10ad1c('track-changes-command-not-found',this,{'commandName':_0x52440d});if(this['_enabledCommands']['has'](_0x7b6069))throw new _0x10ad1c('track-changes-enable-command-twice',this,{'commandName':_0x52440d});this['_enabledCommands']['add'](_0x7b6069),_0x4c647a&&_0x7b6069['on']('execute',(_0x573f5b,_0x1baeae)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1baeae['length']>0x0&&_0x1baeae[_0x1baeae['length']-0x1]&&_0x1baeae[_0x1baeae['length']-0x1]['forceDefaultExecution']?_0x1baeae['pop']():(_0x573f5b['return']=_0x4c647a((..._0x4890bd)=>_0x7b6069['execute'](..._0x4890bd,{'forceDefaultExecution':!0x0}),..._0x1baeae),_0x573f5b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xd49cbf){let _0x1e9ad7,_0x477b80;const _0x2883c5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1e9ad7=_0xd49cbf();}catch(_0x22e51a){_0x477b80=_0x22e51a;}return _0x2883c5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x477b80&&_0x10ad1c['rethrowUnexpectedError'](_0x477b80,this),_0x1e9ad7;}['markInsertion'](_0x411cf4,_0x60f3ab=null,_0x232ad0={}){if(_0x411cf4['isCollapsed'])return null;const _0x395480=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x23e9b9,meta:_0x19acad}of this['_findSuggestions'](_0x411cf4,'insertion'))if(_0x19acad['isOwn']){if(!_0x19acad['isNextTo']){if(_0x19acad['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x23e9b9,_0x232ad0))continue;return _0x23e9b9;}if(Ht(_0x23e9b9,_0x232ad0))return _0x23e9b9;this['_breakSuggestionMarker'](_0x23e9b9,_0x411cf4['start'],_0x411cf4['end']);break;}if(_0x60f3ab==_0x23e9b9['subType']&&Ht(_0x23e9b9,_0x232ad0)){const _0x5d58dd=_0x23e9b9['getFirstRange']();return _0x5d58dd['start']['isEqual'](_0x411cf4['end'])?this['_setSuggestionRange'](_0x23e9b9,this['_model']['createRange'](_0x411cf4['start'],_0x5d58dd['end'])):this['_setSuggestionRange'](_0x23e9b9,this['_model']['createRange'](_0x5d58dd['start'],_0x411cf4['end'])),_0x23e9b9;}}const _0x532207=_0x556763(),_0x475f09=_0x395480['id'],_0x274cdf=_0x60f3ab?'insertion:'+_0x60f3ab:'insertion',_0x42a972=this['_setSuggestionData']({'id':_0x532207,'type':_0x274cdf,'createdAt':new Date(),'authorId':_0x475f09,'attributes':_0x232ad0});return this['_addSuggestionMarker'](_0x274cdf,_0x532207,_0x475f09,_0x411cf4),_0x42a972;}['markMultiRangeInsertion'](_0x2a1221,_0x56d6d5='multi',_0x4e9047={}){const _0x12070e=this['editor']['plugins']['get']('Users')['me'],_0x17a9d5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x56d6d5,'join');for(const _0x30a318 of this['getSuggestions']())if(_0x30a318['author']['id']==_0x12070e['id']&&'insertion'==_0x30a318['type']&&_0x30a318['subType']==_0x56d6d5&&Ht(_0x30a318,_0x4e9047)&&(_0x17a9d5(_0x30a318['getRanges'](),_0x2a1221)||_0x17a9d5(_0x2a1221,_0x30a318['getRanges']()))){for(const _0x71bd14 of _0x2a1221)_0x30a318['addRange'](_0x71bd14);return _0x30a318;}for(const {suggestion:_0x47a208,meta:_0x3858cb}of this['_findSuggestions'](_0x2a1221,'insertion')){if(!_0x3858cb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3858cb['containsRangeInObject'])continue;if(!Ht(_0x47a208,_0x4e9047))continue;let _0x4f8daf=!0x0;for(const _0x40a8c6 of _0x47a208['getRanges']())for(const _0x239dc7 of _0x2a1221)if(!_0x40a8c6['containsRange'](_0x239dc7)){_0x4f8daf=!0x1;break;}if(_0x4f8daf)return _0x47a208;}const _0x542759=_0x556763(),_0x27229c=_0x12070e['id'],_0x2e44e6='insertion:'+_0x56d6d5,_0x27e07c=this['_setSuggestionData']({'id':_0x542759,'type':_0x2e44e6,'createdAt':new Date(),'authorId':_0x27229c,'attributes':_0x4e9047});for(const _0x1b63aa of _0x2a1221)this['_addSuggestionMarker'](_0x2e44e6,_0x542759,_0x27229c,_0x1b63aa,u['getMultiRangeId']());return _0x27e07c;}['markInlineFormat'](_0x4260d0,_0x4c5386,_0xe05230=null,_0x3dca85={}){if(_0xe05230=_0xe05230||Ut(_0x4c5386),_0x4260d0['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1100ac=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe05230,'accept');return this['forceDefaultExecution'](()=>_0x1100ac([_0x4260d0],_0x4c5386,_0x3dca85)),null;}const _0xff3f6f=this['editor']['plugins']['get']('Users')['me'],_0x1dd5f0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x20bc7a,meta:_0x68205e}of this['_findSuggestions'](_0x4260d0,'insertion'))_0x68205e['isOwn']&&!_0x68205e['isInsideObject']&&_0x1dd5f0['push'](..._0x20bc7a['getRanges']());}const _0x28143c=function(_0x297ab8,_0x53faa7){const _0x1685ce=[];for(const _0x20cb82 of _0x53faa7){const _0x4e76db=_0x297ab8['getIntersection'](_0x20cb82);_0x4e76db&&_0x1685ce['push'](_0x4e76db);}return _0x1685ce;}(_0x4260d0,_0x1dd5f0),_0x4c2f9d=function(_0x110180,_0x1a9b7b){const _0x24b567=[_0x110180];for(const _0x4d1949 of _0x1a9b7b){let _0x2e96f5=0x0;for(;_0x2e96f5<_0x24b567['length'];){const _0x24c75a=_0x24b567[_0x2e96f5]['getDifference'](_0x4d1949);_0x24b567['splice'](_0x2e96f5,0x1,..._0x24c75a),_0x2e96f5+=_0x24c75a['length'];}}return _0x24b567;}(_0x4260d0,_0x1dd5f0);_0x28143c['length']&&this['_model']['change'](()=>{for(const _0x4e14ca of _0x28143c){const _0x3b9b90=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe05230,'accept');this['forceDefaultExecution'](()=>_0x3b9b90([_0x4e14ca],_0x4c5386,_0x3dca85));}});for(const _0x407307 of _0x4c2f9d){let _0x1ea8ec=null,_0x20ce30=_0x407307['start'],_0x4da359=_0x407307['end'];for(const {suggestion:_0x4b0380,meta:_0x36f388}of this['_findSuggestions'](_0x407307,'formatInline')){if(!_0x36f388['isOwn'])continue;if(_0x4b0380['subType']!=_0xe05230)continue;if(!Ht(_0x4b0380,_0x3dca85))continue;const _0x111d1f=_0x4b0380['getFirstRange']();if(_0x111d1f['containsRange'](_0x407307,!0x0))return null;_0x20ce30=_0x20ce30['isBefore'](_0x111d1f['start'])?_0x20ce30:_0x111d1f['start'],_0x4da359=_0x4da359['isAfter'](_0x111d1f['end'])?_0x4da359:_0x111d1f['end'],_0x1ea8ec?_0x111d1f['start']['isBefore'](_0x1ea8ec['getFirstRange']()['start'])?(_0x1ea8ec['removeMarkers'](),_0x1ea8ec=_0x4b0380):_0x4b0380['removeMarkers']():_0x1ea8ec=_0x4b0380;}const _0x596a4a=this['_model']['createRange'](_0x20ce30,_0x4da359);if(_0x1ea8ec)this['_setSuggestionRange'](_0x1ea8ec,_0x596a4a);else{const _0x46c7af=_0x556763(),_0x2016c2=_0xff3f6f['id'];this['_setSuggestionData']({'id':_0x46c7af,'type':'formatInline:'+_0xe05230,'data':_0x4c5386,'createdAt':new Date(),'authorId':_0x2016c2,'attributes':_0x3dca85}),this['_addSuggestionMarker']('formatInline:'+_0xe05230,_0x46c7af,_0x2016c2,_0x596a4a);}}return null;}['markBlockFormat'](_0x3bd860,_0x4eb267,_0x449063=[],_0xe09a1e=null,_0x273f75={}){_0x4eb267['formatGroupId']||(_0x4eb267['formatGroupId']=_0x4eb267['commandName']),_0x4eb267['multipleBlocks']=_0x3bd860['is']('range'),_0xe09a1e=_0xe09a1e||Ut(_0x4eb267);const _0x74b02c=_0x449063['map'](_0xd6c8bc=>Ft(_0xd6c8bc,this['_model'])),_0x25e8bd=_0x3bd860['is']('range')?_0x3bd860:Ft(_0x3bd860,this['_model']);if('never'===this['_trackFormatChanges']){const _0x34823f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe09a1e,'accept');return this['forceDefaultExecution'](()=>_0x34823f([_0x25e8bd],_0x4eb267,_0x273f75)),null;}_0x74b02c['push'](_0x25e8bd);let _0x4c9505=!0x0;for(const _0x2ca79a of _0x74b02c)if(!this['_rangeIsInLocalUserInsertion'](_0x2ca79a)){_0x4c9505=!0x1;break;}if(_0x4c9505&&'always'!==this['_trackFormatChanges']){const _0x217a6e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe09a1e,'accept');return this['forceDefaultExecution'](()=>_0x217a6e([_0x25e8bd],_0x4eb267,_0x273f75)),null;}let _0x241de7=null,_0x2465bc=_0x25e8bd['start'],_0x3ee110=_0x25e8bd['end'];for(const {suggestion:_0x4459c0,meta:_0x53dab6}of this['_findSuggestions'](_0x25e8bd,'formatBlock')){if(!_0x53dab6['isOwn'])continue;if(_0x53dab6['isNextTo']||_0x53dab6['containsRangeInObject']||_0x53dab6['isInsideObject'])continue;if(_0x4459c0['data']['formatGroupId']!=_0x4eb267['formatGroupId'])continue;if(!Ht(_0x4459c0,_0x273f75))continue;const _0x2c11a0=_0x4459c0['getFirstRange']();if(_0x4459c0['subType']==_0xe09a1e){if(_0x2c11a0['containsRange'](_0x25e8bd,!0x0))return null;_0x2465bc=_0x2465bc['isBefore'](_0x2c11a0['start'])?_0x2465bc:_0x2c11a0['start'],_0x3ee110=_0x3ee110['isAfter'](_0x2c11a0['end'])?_0x3ee110:_0x2c11a0['end'],_0x241de7?_0x2c11a0['start']['isBefore'](_0x241de7['getFirstRange']()['start'])?(_0x241de7['removeMarkers'](),_0x241de7=_0x4459c0):_0x4459c0['removeMarkers']():_0x241de7=_0x4459c0;}else{const _0x2d1fe2=_0x25e8bd['getIntersection'](_0x2c11a0);this['_cutOutSuggestionMarker'](_0x4459c0,_0x2d1fe2);}}const _0x1f367c=this['editor']['plugins']['get']('Users')['me'],_0x30d0f9=_0x556763(),_0x6da0a7=_0x1f367c['id'];if(_0x241de7)return this['_setSuggestionRange'](_0x241de7,this['_model']['createRange'](_0x2465bc,_0x3ee110)),_0x241de7;{const _0x1989a0=this['_setSuggestionData']({'id':_0x30d0f9,'type':'formatBlock:'+_0xe09a1e,'data':_0x4eb267,'createdAt':new Date(),'authorId':_0x6da0a7,'attributes':_0x273f75});return this['_addSuggestionMarker']('formatBlock:'+_0xe09a1e,_0x30d0f9,_0x6da0a7,this['_model']['createRange'](_0x2465bc,_0x3ee110)),_0x1989a0;}}['markMultiRangeBlockFormat'](_0x2c888e,_0x50d166,_0x24756d=[],_0x186e49=null,_0x296988={}){_0x50d166['formatGroupId']||(_0x50d166['formatGroupId']=_0x50d166['commandName']);const _0x398f4b=_0x2c888e[0x0];_0x50d166['multipleBlocks']=_0x398f4b['is']('range'),_0x186e49=_0x186e49||Ut(_0x50d166);const _0x14187a=_0x24756d['map'](_0x41d023=>Ft(_0x41d023,this['_model'])),_0x5bd486=_0x398f4b['is']('range')?_0x2c888e:_0x2c888e['map'](_0x50a3e4=>Ft(_0x50a3e4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1323a1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x186e49,'accept');return this['forceDefaultExecution'](()=>_0x1323a1(_0x5bd486,_0x50d166,_0x296988)),null;}_0x14187a['push'](..._0x5bd486);let _0x2d0b0d=!0x0;for(const _0x365fea of _0x14187a)if(!this['_rangeIsInLocalUserInsertion'](_0x365fea)){_0x2d0b0d=!0x1;break;}if(_0x2d0b0d&&'always'!==this['_trackFormatChanges']){const _0x13e8b6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x186e49,'accept');return this['forceDefaultExecution'](()=>_0x13e8b6(_0x5bd486,_0x50d166,_0x296988)),null;}const _0x4f4ebf=this['editor']['plugins']['get']('Users')['me'];for(const _0x2393c8 of this['getSuggestions']()){if(_0x2393c8['author']['id']!=_0x4f4ebf['id'])continue;if('formatBlock'!=_0x2393c8['type']||_0x2393c8['data']['formatGroupId']!=_0x50d166['formatGroupId'])continue;if(!Ht(_0x2393c8,_0x296988))continue;const _0x1ff553=_0x2393c8['subType']==_0x186e49;for(let _0x2e28cc=0x0;_0x2e28cc<_0x5bd486['length'];_0x2e28cc++){const _0x384ee6=_0x5bd486[_0x2e28cc];for(const _0x4494d2 of _0x2393c8['getMarkers']()){const _0x2523e8=_0x4494d2['getRange']();if(_0x384ee6['isEqual'](_0x2523e8)){_0x1ff553?(_0x5bd486['splice'](_0x2e28cc,0x1),_0x2e28cc--):_0x2393c8['removeMarker'](_0x4494d2['name']);break;}}}}if(0x0==_0x5bd486['length'])return null;const _0x126a9b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x186e49,'join');for(const _0x1821a9 of this['getSuggestions']())if(_0x1821a9['author']['id']==_0x4f4ebf['id']&&'formatBlock'==_0x1821a9['type']&&_0x1821a9['data']['formatGroupId']==_0x50d166['formatGroupId']&&_0x1821a9['subType']==_0x186e49&&Ht(_0x1821a9,_0x296988)&&(_0x126a9b(_0x1821a9['getRanges'](),_0x5bd486)||_0x126a9b(_0x5bd486,_0x1821a9['getRanges']()))){for(const _0x243602 of _0x5bd486)_0x1821a9['addRange'](_0x243602);return _0x1821a9;}const _0xa6146e=_0x556763(),_0x5bfdcd=_0x4f4ebf['id'],_0x123aa9='formatBlock:'+_0x186e49,_0x104e42=this['_setSuggestionData']({'id':_0xa6146e,'type':_0x123aa9,'data':_0x50d166,'createdAt':new Date(),'authorId':_0x5bfdcd,'attributes':_0x296988});for(const _0x444974 of _0x5bd486)this['_addSuggestionMarker'](_0x123aa9,_0xa6146e,_0x5bfdcd,_0x444974,u['getMultiRangeId']());return _0x104e42;}['markDeletion'](_0x4b5c58,_0x18e1ce=null,_0x5db867={}){if(_0x4b5c58['isCollapsed'])return null;const _0x2b216a=this['editor']['plugins']['get']('Users')['me'],_0x3ee6b0=new _0x2fbf4a(_0x4b5c58['start'],_0x4b5c58['end']);for(const {suggestion:_0xe2659f,meta:_0x2c9ee0}of this['_findSuggestions'](_0x3ee6b0,'insertion'))if(_0x2c9ee0['isOwn']&&!_0x2c9ee0['isNextTo']){if(_0xe2659f['isMultiRange']){const _0x3f4fdf=_0xe2659f['getRanges']()['filter'](_0x5cb98a=>'$graveyard'!=_0x5cb98a['root']['rootName']);_0x3f4fdf['every'](_0x325b08=>_0x3ee6b0['containsRange'](_0x325b08,!0x0))&&_0xe2659f['discard']();if(_0x3f4fdf['some'](_0x238122=>_0x238122['containsRange'](_0x3ee6b0,!0x0))){const _0x57ee50=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18e1ce,'accept');return this['forceDefaultExecution'](()=>_0x57ee50([_0x3ee6b0],null,_0x5db867)),null;}}else{const _0x51903d=_0x3ee6b0['getIntersection'](_0xe2659f['getFirstRange']());null!==_0x51903d&&_0xe2659f['_onDiscard']([_0x51903d],null,_0x5db867);}}if(_0x3ee6b0['detach'](),_0x3ee6b0['isCollapsed']||'$graveyard'==_0x3ee6b0['root']['rootName'])return null;let _0x3e436e=null,_0x4cc586=_0x3ee6b0['start'],_0x5ce73a=_0x3ee6b0['end'];const _0x60c41c=this['_findSuggestions'](_0x3ee6b0,'deletion');for(const {suggestion:_0x5d3217,meta:_0x54d48f}of _0x60c41c){const _0x1ce9bd=this['_model']['createRange'](_0x4cc586,_0x5ce73a);if(_0x54d48f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x54d48f['containsRangeInObject']&&!_0x54d48f['isInsideObject'])){if(_0x5d3217['isMultiRange']){if(!Ht(_0x5d3217,_0x5db867))continue;let _0x4e3546=!0x0;for(const _0x4300e5 of _0x5d3217['getRanges']()){if(_0x4300e5['containsRange'](_0x1ce9bd,!0x0))return _0x5d3217;_0x1ce9bd['containsRange'](_0x4300e5)||(_0x4e3546=!0x1);}_0x4e3546&&_0x5d3217['discard']();}else{const _0x5e5246=_0x5d3217['getFirstRange']();if(_0x5e5246['containsRange'](_0x1ce9bd,!0x0))return _0x5d3217;if(!Ht(_0x5d3217,_0x5db867)){_0x1ce9bd['containsRange'](_0x5e5246)?_0x5d3217['removeMarkers']():_0x5e5246['containsPosition'](_0x4cc586)?_0x4cc586=_0x5e5246['end']:_0x5e5246['containsPosition'](_0x5ce73a)&&(_0x5ce73a=_0x5e5246['start']);continue;}_0x4cc586=_0x4cc586['isBefore'](_0x5e5246['start'])?_0x4cc586:_0x5e5246['start'],_0x5ce73a=_0x5ce73a['isAfter'](_0x5e5246['end'])?_0x5ce73a:_0x5e5246['end'],_0x5db867=Object['assign']({},_0x5d3217['attributes']),_0x3e436e?_0x5e5246['start']['isBefore'](_0x3e436e['getFirstRange']()['start'])?(_0x3e436e['removeMarkers'](),_0x3e436e=_0x5d3217):_0x5d3217['removeMarkers']():_0x3e436e=_0x5d3217;}}}if(_0x3e436e)return this['_setSuggestionRange'](_0x3e436e,this['_model']['createRange'](_0x4cc586,_0x5ce73a)),_0x3e436e;{const _0xc680a4=_0x556763(),_0x1cf2ac=this['_model']['createRange'](_0x4cc586,_0x5ce73a),_0x556bcc=_0x2b216a['id'],_0x522029=_0x18e1ce?'deletion:'+_0x18e1ce:'deletion',_0x67f70c=this['_setSuggestionData']({'id':_0xc680a4,'type':_0x522029,'createdAt':new Date(),'authorId':_0x556bcc,'attributes':_0x5db867});return this['_addSuggestionMarker'](_0x522029,_0xc680a4,_0x556bcc,_0x1cf2ac),_0x67f70c;}}['markMultiRangeDeletion'](_0x3d2d4b,_0x345239='multi',_0x57e8e7={}){const _0x23066f=this['editor']['plugins']['get']('Users')['me'],_0x1a7c29=_0x3d2d4b['map'](_0x16c860=>new _0x2fbf4a(_0x16c860['start'],_0x16c860['end'])),_0x1503aa=new Set();for(const {suggestion:_0x4fc124,meta:_0xc0c5b4}of this['_findSuggestions'](_0x1a7c29,'insertion'))_0xc0c5b4['isOwn']&&!_0xc0c5b4['isNextTo']&&_0x1503aa['add'](_0x4fc124);for(const _0x17ed8d of _0x1503aa)if(_0x17ed8d['isMultiRange']){const _0x84e890=_0x17ed8d['getRanges']();(!_0x17ed8d['attributes']||!_0x17ed8d['attributes']['skipNestingCheck'])&&(_0x84e890['every'](_0x4bec9b=>_0x1a7c29['some'](_0x2a8152=>_0x2a8152['containsRange'](_0x4bec9b,!0x0)))&&_0x17ed8d['discard']());if(_0x1a7c29['every'](_0x711036=>_0x84e890['some'](_0x278a1b=>_0x278a1b['containsRange'](_0x711036,!0x0)))){const _0x30bf90=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x345239,'accept');return this['forceDefaultExecution'](()=>_0x30bf90(_0x3d2d4b,null,_0x57e8e7)),null;}}else{const _0x5407ad=_0x17ed8d['getFirstRange']();_0x1a7c29['some'](_0x4d6cda=>_0x4d6cda['containsRange'](_0x5407ad,!0x0))&&_0x17ed8d['discard']();if(_0x1a7c29['every'](_0x3d6241=>_0x5407ad['containsRange'](_0x3d6241,!0x0))){const _0x11558c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x345239,'accept');return this['forceDefaultExecution'](()=>_0x11558c(_0x1a7c29,null,_0x57e8e7)),null;}}const _0x55bb05=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x345239,'join');let _0x13456c=null;for(const _0x2ab0ca of this['getSuggestions']())if(_0x2ab0ca['author']['id']==_0x23066f['id']&&_0x2ab0ca['isInContent']&&'deletion'==_0x2ab0ca['type']&&_0x2ab0ca['subType']==_0x345239&&Ht(_0x2ab0ca,_0x57e8e7)&&(_0x55bb05(_0x2ab0ca['getRanges'](),_0x1a7c29)||_0x55bb05(_0x1a7c29,_0x2ab0ca['getRanges']()))){if(_0x13456c){if(_0x2ab0ca['commentThread']&&_0x2ab0ca['commentThread']['length'])continue;for(const _0x4dd55f of _0x2ab0ca['getRanges']())_0x13456c['isIntersectingWithRange'](_0x4dd55f)||_0x13456c['addRange'](_0x4dd55f);_0x2ab0ca['removeMarkers']();}else{_0x13456c=_0x2ab0ca;for(const _0x200e5b of _0x1a7c29)_0x2ab0ca['isIntersectingWithRange'](_0x200e5b)||_0x2ab0ca['addRange'](_0x200e5b);}}if(_0x13456c)return _0x13456c;_0x1503aa['clear']();for(const {suggestion:_0x442375,meta:_0x564fcd}of this['_findSuggestions'](_0x1a7c29,'deletion'))_0x564fcd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x564fcd['containsRangeInObject']&&!_0x564fcd['isInsideObject'])&&Ht(_0x442375,_0x57e8e7)&&_0x1503aa['add'](_0x442375);for(const _0x224093 of _0x1503aa){const _0x462e20=_0x224093['getRanges']();if(!_0x57e8e7||!_0x57e8e7['skipNestingCheck']){if(_0x1a7c29['every'](_0xe4b93f=>_0x462e20['some'](_0x361753=>_0x361753['containsRange'](_0xe4b93f,!0x0))))return _0x224093;}(!_0x224093['attributes']||!_0x224093['attributes']['skipNestingCheck'])&&(_0x462e20['every'](_0x1ea95a=>_0x1a7c29['some'](_0xc56e99=>_0xc56e99['containsRange'](_0x1ea95a,!0x0)))&&_0x224093['discard']());}const _0x193e23=_0x556763(),_0xe63709=_0x23066f['id'],_0x1e271e='deletion:'+_0x345239,_0x2a3a21=this['_setSuggestionData']({'id':_0x193e23,'type':_0x1e271e,'createdAt':new Date(),'authorId':_0xe63709,'attributes':_0x57e8e7});for(const _0x5cb2f1 of _0x1a7c29)_0x5cb2f1['detach'](),_0x5cb2f1['isCollapsed']||'$graveyard'==_0x5cb2f1['root']['rootName']||this['_addSuggestionMarker'](_0x1e271e,_0x193e23,_0xe63709,_0x5cb2f1,u['getMultiRangeId']());return _0x2a3a21;}['markAttributeChange'](_0x485c5d,_0x100947,_0x1669d4,_0x257e41,_0xd98bfe){if(_0x485c5d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x16d1d7=this['editor']['plugins']['get']('Users')['me']['id'],_0x4942f7=Array['from'](this['_suggestions']['values']())['filter'](_0x512522=>'attribute'==_0x512522['type']&&_0x512522['data']['key']==_0x100947&&_0x512522['isIntersectingWithRange'](_0x485c5d));if('default'===this['_trackFormatChanges']){const _0x34c1d6=this['_findSuggestions'](_0x485c5d,'insertion')['filter'](({meta:_0x2aaf30})=>_0x2aaf30['isOwn']&&!_0x2aaf30['isInsideObject']&&!_0x2aaf30['isNextTo'])['map'](({suggestion:_0x42b829})=>_0x42b829);_0x4942f7['unshift'](..._0x34c1d6);}const _0x1d3182=new Map([[_0x485c5d,_0x1669d4]]);for(const _0x807c5 of _0x4942f7){const _0x4eb28f='attribute'==_0x807c5['type']?_0x807c5['data']['oldValue']:void 0x0,_0xf66fa2=_0x807c5['getFirstRange'](),_0x189059=Array['from'](_0x1d3182['keys']())['find'](_0xe24ce8=>_0xe24ce8['isIntersecting'](_0xf66fa2));if(!_0x189059)continue;const _0x4e4288=_0x189059['getDifference'](_0xf66fa2);this['_isBlockAttribute'](_0x100947)&&'insertion'==_0x807c5['type']&&0x0!=_0x4e4288['length']||(_0x1d3182['delete'](_0x189059),_0x4e4288['forEach'](_0x1d2d3c=>{_0x1d3182['set'](_0x1d2d3c,_0x1669d4);}),'insertion'!=_0x807c5['type']&&_0x4eb28f!=_0x257e41&&_0x1d3182['set'](_0x189059['getIntersection'](_0xf66fa2),_0x4eb28f));}const _0x35e389=[];for(const [_0xac4dd,_0x134e98]of _0x1d3182){const _0x541947=_0x556763(),_0x54d3de={'key':_0x100947,'oldValue':_0x134e98,'newValue':_0x257e41};_0x100947['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':_0x100947});const _0x4f972d=('attribute:'+(_0x100947+'|'+Ut({'newValue':_0x257e41})))['substring'](0x0,0x3c),_0x291d11=this['_setSuggestionData']({'id':_0x541947,'type':_0x4f972d,'data':_0x54d3de,'createdAt':new Date(),'authorId':_0x16d1d7,'attributes':_0xd98bfe});_0x35e389['push'](_0x291d11),this['_addSuggestionMarker'](_0x4f972d,_0x541947,_0x16d1d7,_0xac4dd);}return _0x35e389;}['enableDefaultAttributesIntegration'](_0x4d8e1f){this['enableCommand'](_0x4d8e1f,(_0x1580a8,..._0x173df0)=>{this['_recordAttributeChanges'](()=>{_0x1580a8(..._0x173df0);});});}['registerBlockAttribute'](_0x237f98){this['_blockAttributeKeys']['add'](_0x237f98);}['registerInlineAttribute'](_0x10bbd7){this['_inlineAttributeKeys']['add'](_0x10bbd7);}['_getAttributeKey'](_0x282bc6){return'attribute'==_0x282bc6['type']?_0x282bc6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xca9a0,_0x247bdc){const _0x4d11c1=_0xca9a0['getFirstMarker']();this['_model']['change'](_0x3376f0=>{_0x3376f0['updateMarker'](_0x4d11c1,{'range':_0x247bdc});});}['_addThreadToSuggestion'](_0x58f052){const _0x6fe487=_0x58f052['id'],_0x2ee111=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x6fe487)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2ee111,'threadId':_0x6fe487,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x26c19e=this['_commentsRepository']['getCommentThread'](_0x6fe487);_0x26c19e['unbind']('isRemovable'),_0x26c19e['isRemovable']=!0x1,_0x58f052['commentThread']=_0x26c19e;}['_checkSuggestionCorrectness'](_0xa040fe,_0x4958b8,_0x4fe2a4,_0x44d980){if(_0xa040fe['type']!=_0x4958b8||_0xa040fe['subType']!=_0x4fe2a4||_0xa040fe['creator']['id']!=_0x44d980)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x10ad1c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x43549f,_0x22f54d){const _0x365e89=_0x43549f['getFirstRange']();if(_0x22f54d['isEqual'](_0x365e89))_0x43549f['removeMarkers']();else{if(_0x365e89['containsRange'](_0x22f54d)){const _0x45dd16=this['_model']['createPositionAt'](_0x22f54d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43549f,this['_model']['createRange'](_0x365e89['start'],_0x45dd16));const _0x23fba3=_0x556763(),_0x31ab94=_0x43549f['creator']['id'],_0x189edb=_0x43549f['type']+':'+_0x43549f['subType'];this['_setSuggestionData']({'id':_0x23fba3,'type':_0x189edb,'createdAt':new Date(),'authorId':_0x31ab94,'data':_0x43549f['data'],'attributes':_0x43549f['attributes']});const _0x10e045=this['_model']['createPositionAt'](_0x22f54d['end']['parent'],'after'),_0xb5d36a=this['_model']['createRange'](_0x10e045,_0x365e89['end']);this['_addSuggestionMarker'](_0x189edb,_0x23fba3,_0x31ab94,_0xb5d36a);}else{if(_0x365e89['containsPosition'](_0x22f54d['start'])){const _0x5aa264=this['_model']['createPositionAt'](_0x22f54d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43549f,this['_model']['createRange'](_0x365e89['start'],_0x5aa264));}else{const _0x57e96a=this['_model']['createPositionAt'](_0x22f54d['end']['parent'],'after');this['_setSuggestionRange'](_0x43549f,this['_model']['createRange'](_0x57e96a,_0x365e89['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x268646){for(const {suggestion:_0x4352f1,meta:_0x30e317}of this['_findSuggestions'](_0x268646,'insertion')){if(!_0x30e317['isOwn'])continue;const _0x340134=_0x4352f1['getRanges']();for(const _0x30c408 of _0x340134)if(!_0x268646['getDifference'](_0x30c408)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x56d6bf){const _0xe0aedc=this['editor']['plugins']['get']('Users')['getUser'](_0x56d6bf);if(!_0xe0aedc)throw new _0x10ad1c('track-changes-user-not-found',this);return _0xe0aedc;}['_getExternalAuthor'](_0x5652c4){const _0x128af0=this['editor']['plugins']['get']('Users'),_0x409ce5=_0x417e0e('external:'+_0x5652c4),_0x12716f=_0x128af0['getUser'](_0x409ce5);return _0x12716f||_0x128af0['addUser']({'id':_0x409ce5,'name':_0x5652c4});}['_createSuggestion'](_0x236817,_0x3d2baa,_0x4bb274,_0x5e5f3c,_0x4438ed){const _0x4122a6=this['_getAuthorFromId'](_0x5e5f3c),_0x47144b=this['_suggestionFactory']['buildSuggestion'](_0x236817,_0x3d2baa,_0x4bb274,_0x4122a6,_0x4438ed,_0x1d95b2=>{this['_updateSuggestionData'](_0x4bb274,{'attributes':_0x1d95b2});const _0x550e13=this['getSuggestion'](_0x4bb274);this['_joinWithAdjacentSuggestions'](new Set([_0x550e13])),this['_refreshSuggestionsChain'](new Set([_0x550e13]));});return this['listenTo'](_0x47144b,'accept',()=>{this['_updateSuggestionData'](_0x4bb274,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x47144b,'discard',()=>{this['_updateSuggestionData'](_0x4bb274,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4bb274,_0x47144b),this['_suggestionState']['set'](_0x47144b,'notReady'),_0x47144b;}['_splitMarkerName'](_0x225a26){const _0x56ce8a=_0x225a26['split'](':');return{'group':_0x56ce8a[0x0],'type':_0x56ce8a[0x1],'subType':_0x56ce8a['length']>=0x5?_0x56ce8a[0x2]:null,'id':_0x56ce8a['length']<0x5?_0x56ce8a[0x2]:_0x56ce8a[0x3],'authorId':_0x56ce8a['length']<0x5?_0x56ce8a[0x3]:_0x56ce8a[0x4],'markerCount':0x6==_0x56ce8a['length']?_0x56ce8a[0x5]:null};}['_breakSuggestionMarker'](_0x35f595,_0x5ae3cf,_0x57bcb1){const _0x657279=_0x35f595['getFirstRange'](),_0x9d7e1b=_0x657279['start'],_0x109818=_0x657279['end'];this['_setSuggestionRange'](_0x35f595,this['_model']['createRange'](_0x9d7e1b,_0x5ae3cf));const _0x3c3122=_0x556763(),_0x5e635e=_0x35f595['creator']['id'],_0x339bd1=_0x35f595['type']+(_0x35f595['subType']?':'+_0x35f595['subType']:'');this['_setSuggestionData']({'id':_0x3c3122,'type':_0x339bd1,'createdAt':new Date(),'authorId':_0x5e635e,'originalSuggestionId':_0x35f595['id'],'attributes':_0x35f595['attributes'],'data':_0x35f595['data']});const _0x5b8e0e=this['_getAttributeKey'](_0x35f595);('formatBlock'==_0x35f595['type']||_0x5b8e0e&&this['_isBlockAttribute'](_0x5b8e0e))&&(_0x57bcb1=this['_model']['createPositionBefore'](_0x57bcb1['parent'])),this['_addSuggestionMarker'](_0x339bd1,_0x3c3122,_0x5e635e,this['_model']['createRange'](_0x57bcb1,_0x109818));}['_findSuggestions'](_0xb0f172,_0x233ccd=null){const _0x300a0d=[],_0x9481a3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xb0f172)||(_0xb0f172=[_0xb0f172]);for(const _0x3b8148 of this['getSuggestions']()){if(!_0x3b8148['isInContent'])continue;if(_0x233ccd&&_0x3b8148['type']!=_0x233ccd)continue;let _0x27d644=!0x1;for(const _0x8d26d6 of _0x3b8148['getRanges']()){for(const _0x2d512d of _0xb0f172){const _0xa862ac=_0x2d512d['start']['isEqual'](_0x8d26d6['end'])||_0x2d512d['end']['isEqual'](_0x8d26d6['start']);if(_0xa862ac||_0x2d512d['getIntersection'](_0x8d26d6)){const _0x2d259a=_0x2d512d['containsRange'](_0x8d26d6)&&Tt(this['_model']['schema'],_0x8d26d6['start'],_0x2d512d),_0x1ec420=_0x8d26d6['containsRange'](_0x2d512d)&&Tt(this['_model']['schema'],_0x2d512d['start'],_0x8d26d6);_0x300a0d['push']({'suggestion':_0x3b8148,'meta':{'isOwn':_0x9481a3==_0x3b8148['author'],'isNextTo':_0xa862ac,'isInsideObject':_0x2d259a,'containsRangeInObject':_0x1ec420}}),_0x27d644=!0x0;break;}}if(_0x27d644)break;}}return _0x300a0d;}['_addSuggestionMarker'](_0x63ae13,_0x5aab78,_0x5caa25,_0x3b0adf,_0x14d3ff){this['_model']['change'](_0x2a5416=>{let _0x4e4c3a='suggestion:'+_0x63ae13+':'+_0x5aab78+':'+_0x5caa25;_0x14d3ff&&(_0x4e4c3a=_0x4e4c3a+':'+_0x14d3ff),_0x2a5416['addMarker'](_0x4e4c3a,{'range':_0x3b0adf,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5e7465){const _0x28f2bf=_0x5e7465['previous'],_0x43936e=_0x5e7465['next'];_0x5e7465['previous']=null,_0x5e7465['next']=null,null!=_0x28f2bf&&_0x28f2bf['next']==_0x5e7465&&(_0x28f2bf['next']=_0x43936e),null!=_0x43936e&&_0x43936e['previous']==_0x5e7465&&(_0x43936e['previous']=_0x28f2bf),'ready'==this['_suggestionState']['get'](_0x5e7465)&&(this['_suggestionState']['set'](_0x5e7465,'removed'),this['fire']('suggestionUnloaded',_0x5e7465,_0x28f2bf,_0x43936e));}['_setSuggestionData'](_0x3afed1){const _0x1232f0=_0x3afed1['id'],_0x416832=this['addSuggestionData'](_0x3afed1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xbeaf63=this['editor']['plugins']['get']('PendingActions'),_0x2e5834=_0x416832['hasComments'],_0x80ea8a=_0x416832['subType']?_0x416832['type']+':'+_0x416832['subType']:_0x416832['type'],_0xe0870d=this['editor']['locale'],_0x1696bb=_0xbeaf63['add'](o(_0xe0870d,'PENDING_ACTION_SUGGESTION')),_0x1708f3={'id':_0x1232f0,'type':_0x80ea8a,'hasComments':_0x2e5834,'data':_0x3afed1['data']||null,'originalSuggestionId':_0x3afed1['originalSuggestionId']||null,'attributes':_0x416832['attributes']};this['_adapter']['addSuggestion'](_0x1708f3)['then'](_0x2fb22e=>{_0x416832['_saved']=!0x0,_0xbeaf63['remove'](_0x1696bb),_0x2fb22e&&_0x2fb22e['createdAt']&&(this['_suggestions']['get'](_0x1232f0)['createdAt']=_0x2fb22e['createdAt']);})['catch'](_0x5a7c4a=>{throw _0x5f4932('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x416832['discard']();}),_0x416832['stopListening'](),this['_suggestions']['delete'](_0x416832['id']),this['_suggestionState']['delete'](_0x416832),_0x5a7c4a;});}return _0x416832;}['_isBlockAttribute'](_0x281939){return this['_blockAttributeKeys']['has'](_0x281939);}['_updateSuggestionData'](_0x5e2366,_0x5379ab){const _0xdf449=this['editor']['plugins']['get']('PendingActions'),_0x19e681=this['getSuggestion'](_0x5e2366);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x19e681['_saved']){const _0x197afb=_0xdf449['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5e2366,_0x5379ab)['then'](()=>{_0xdf449['remove'](_0x197afb);});}else _0x19e681['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5e2366,_0x5379ab);});}}['_getSuggestionData'](_0x2daf87){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x10ad1c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2daf87);}['_handleNewSuggestionMarker'](_0x5e35dd){const {id:_0x2ab480,type:_0x3d97f6,subType:_0x3f860a,authorId:_0x50755c}=this['_splitMarkerName'](_0x5e35dd),_0x32295c=this['_suggestions']['get'](_0x2ab480)||this['_createSuggestion'](_0x3d97f6,_0x3f860a,_0x2ab480,_0x50755c,{});switch(this['_checkSuggestionCorrectness'](_0x32295c,_0x3d97f6,_0x3f860a,_0x50755c),this['_suggestionState']['get'](_0x32295c)){case'notReady':this['_getSuggestionData'](_0x2ab480)['then'](_0x296be7=>{let _0x1f5ad8=Promise['resolve']();_0x296be7['hasComments']&&(_0x1f5ad8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ab480})),_0x1f5ad8['then'](()=>{this['addSuggestionData'](_0x296be7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x32295c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ab480,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x32295c,'ready'),this['fire']('suggestionLoaded',_0x32295c);break;case'ready':this['fire']('suggestionChanged',_0x32295c);}return _0x32295c['addMarkerName'](_0x5e35dd),_0x32295c;}['_refreshSuggestionsChain'](_0x55acc1){const _0x53a344=Array['from'](_0x55acc1),_0x248abe=_0x53a344['filter'](_0x53e5cf=>'attribute'==_0x53e5cf['type']);this['_refreshAttributeSuggestionsChain'](_0x248abe);const _0x39f2c7=_0x53a344['filter'](_0x457285=>!_0x457285['isMultiRange']&&'attribute'!=_0x457285['type']),_0x50a690=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x345b6e=>!_0x345b6e['isMultiRange']&&'attribute'!=_0x345b6e['type']),_0x585458=_0x50a690['filter'](_0x570e0b=>!_0x55acc1['has'](_0x570e0b)),_0xa41026=new Map(_0x50a690['map'](_0x273115=>[_0x273115,this['_suggestionFactory']['getSuggestionCallback'](_0x273115['type'],_0x273115['subType'],'chain')])),_0x18deef=new Map(_0x50a690['map'](_0x540c9e=>[_0x540c9e,_0x540c9e['getFirstRange']()])),_0x4eb729=new Set(),_0x1ab9d6=new Set();for(let _0x2a4d0e=0x0;_0x2a4d0e<_0x39f2c7['length'];_0x2a4d0e++)_0x4e4754(_0x39f2c7[_0x2a4d0e],_0x39f2c7,_0x2a4d0e+0x1);for(let _0x423d2b=0x0;_0x423d2b<_0x39f2c7['length'];_0x423d2b++)_0x4e4754(_0x39f2c7[_0x423d2b],_0x585458,0x0);const _0x2d7d7f=new Set();for(let _0x586744=0x0;_0x586744<_0x39f2c7['length'];_0x586744++){const _0x3f7bfc=_0x39f2c7[_0x586744];!_0x1ab9d6['has'](_0x3f7bfc)&&_0x3f7bfc['previous']&&(_0x2d7d7f['add'](_0x3f7bfc['previous']),_0x3f7bfc['previous']['next']===_0x3f7bfc&&(_0x3f7bfc['previous']['next']=null),_0x3f7bfc['previous']=null),!_0x4eb729['has'](_0x3f7bfc)&&_0x3f7bfc['next']&&(_0x2d7d7f['add'](_0x3f7bfc['next']),_0x3f7bfc['next']['previous']===_0x3f7bfc&&(_0x3f7bfc['next']['previous']=null),_0x3f7bfc['next']=null);}function _0x4e4754(_0x1cad5b,_0x532eef,_0x53fd8b){for(let _0x177df1=_0x53fd8b;_0x177df1<_0x532eef['length'];_0x177df1++){const _0x4b59f3=_0x566277(_0x1cad5b,_0x532eef[_0x177df1]);_0x4b59f3&&(_0x4b59f3[0x0]['next']=_0x4b59f3[0x1],_0x4b59f3[0x1]['previous']=_0x4b59f3[0x0],_0x4eb729['add'](_0x4b59f3[0x0]),_0x1ab9d6['add'](_0x4b59f3[0x1]));}}function _0x566277(_0x3a2dab,_0x2059e0){if(_0x3a2dab['author']['id']!==_0x2059e0['author']['id'])return null;const _0x130751=_0xa41026['get'](_0x3a2dab)(_0x3a2dab,_0x2059e0,_0x18deef['get'](_0x3a2dab),_0x18deef['get'](_0x2059e0));if(!_0x130751)return null;return _0xa41026['get'](_0x2059e0)(_0x3a2dab,_0x2059e0,_0x18deef['get'](_0x3a2dab),_0x18deef['get'](_0x2059e0))?_0x130751[0x1]['commentThread']&&_0x130751[0x1]['commentThread']['length']?null:_0x130751:null;}_0x2d7d7f['size']&&this['_refreshSuggestionsChain'](_0x2d7d7f);}['_refreshAttributeSuggestionsChain'](_0x3354e4){if(0x0==_0x3354e4['length'])return;const _0x58c6bd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4682a4=>'attribute'==_0x4682a4['type']&&_0x4682a4['_isDataLoaded']),_0x855213=[],_0x226c88=new Map();for(const _0x67bbfd of _0x58c6bd){const _0x586f42=_0x417e0e(_0x67bbfd['attributes']);_0x226c88['has'](_0x586f42)||(_0x226c88['set'](_0x586f42,_0x855213['length']),_0x855213['push']([]));const _0x3f1cc0=_0x226c88['get'](_0x586f42);_0x855213[_0x3f1cc0]['push'](_0x67bbfd);}!(function(){_0x855213['sort']((_0x544381,_0x31f336)=>{const _0x450b18=_0x544381[0x0]['createdAt'],_0xd1c4d4=_0x31f336[0x0]['createdAt'];return _0x450b18==_0xd1c4d4?_0x544381[0x0]['attributes']['groupId']<_0x31f336[0x0]['attributes']['groupId']?-0x1:0x1:_0x450b18<_0xd1c4d4?-0x1:0x1;});for(const _0x21f439 of _0x855213)_0x21f439['sort']((_0x4763f1,_0x294fb7)=>_0x4763f1['id']<_0x294fb7['id']?-0x1:0x1);}());for(let _0x4f48c2=0x0;_0x4f48c2<_0x855213['length'];_0x4f48c2++){if(0x0==_0x855213[_0x4f48c2]['length'])continue;const _0x347bf2=[];for(let _0x222466=_0x4f48c2+0x1;_0x222466<_0x855213['length'];_0x222466++)0x0!=_0x855213[_0x222466]['length']&&_0x255387(_0x855213[_0x4f48c2],_0x855213[_0x222466])&&_0x347bf2['push'](_0x222466);for(const _0x3ac5a7 of _0x347bf2)_0x855213[_0x4f48c2]=_0x855213[_0x4f48c2]['concat'](_0x855213[_0x3ac5a7]),_0x855213[_0x3ac5a7]=[];}for(const _0x2d777c of _0x855213)for(let _0x2c644f=0x0;_0x2c644f<_0x2d777c['length'];_0x2c644f++)_0x2d777c[_0x2c644f]['next']=_0x2d777c[_0x2c644f+0x1]||null;for(const _0x5a8e8b of _0x855213)for(let _0x1e0ff8=0x0;_0x1e0ff8<_0x5a8e8b['length'];_0x1e0ff8++)_0x5a8e8b[_0x1e0ff8]['previous']=_0x5a8e8b[_0x1e0ff8-0x1]||null;function _0x255387(_0x2001a6,_0x5f0108){if(_0x2001a6[0x0]['attributes']['groupId']!==_0x5f0108[0x0]['attributes']['groupId']&&_0x2001a6[0x0]['author']!==_0x5f0108[0x0]['author'])return!0x1;if(!function(_0x46e6da,_0x1f8c54){if(!_0x46e6da['hasComments']&&!_0x1f8c54['hasComments'])return!0x0;if(_0x46e6da['hasComments']&&_0x1f8c54['hasComments'])return!0x1;if(_0x46e6da['hasComments']&&_0x1f8c54['createdAt']<_0x46e6da['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1f8c54['hasComments']&&_0x46e6da['createdAt']<_0x1f8c54['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2001a6[0x0],_0x5f0108[0x0]))return!0x1;const _0x15990a=xt(_0x2001a6[0x0]['attributes'],'groupId'),_0x1e35dd=xt(_0x5f0108[0x0]['attributes'],'groupId');if(!_0x363f51(_0x15990a,_0x1e35dd))return!0x1;return!!_0x2001a6['every'](_0x4d06b2=>_0x5f0108['some'](_0x54e740=>_0x4d06b2['getFirstRange']()['isEqual'](_0x54e740['getFirstRange']())))&&_0x5f0108['every'](_0x5e3fca=>_0x2001a6['some'](_0x317bda=>_0x5e3fca['getFirstRange']()['isEqual'](_0x317bda['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x103e51){const _0x1924d1=Array['from'](_0x103e51),_0x28e055=this['getSuggestions']({'skipNotAttached':!0x0}),_0x348b0d=_0x28e055['filter'](_0x5aad22=>!_0x103e51['has'](_0x5aad22)),_0x4a88cb=new Map(_0x1924d1['map'](_0xd6456a=>[_0xd6456a,this['_suggestionFactory']['getSuggestionCallback'](_0xd6456a['type'],_0xd6456a['subType'],'join')])),_0x26d824=new Map(_0x28e055['map'](_0x14078f=>[_0x14078f,_0x14078f['getRanges']()]));for(let _0xba68ab=0x0;_0xba68ab<_0x1924d1['length'];_0xba68ab++){if(_0x2d9633(this,_0x1924d1[_0xba68ab],_0x1924d1,_0xba68ab+0x1))return!0x0;}for(let _0x3e0cf7=0x0;_0x3e0cf7<_0x1924d1['length'];_0x3e0cf7++){if(_0x2d9633(this,_0x1924d1[_0x3e0cf7],_0x348b0d,0x0))return!0x0;}return!0x1;function _0x2d9633(_0x21aba6,_0x1bffca,_0x5d20f7,_0x2b59f0){for(let _0x45deb2=_0x2b59f0;_0x45deb2<_0x5d20f7['length'];_0x45deb2++){const _0x40d5e6=_0x5d20f7[_0x45deb2];if(_0x40d5e6['type']!==_0x1bffca['type']||_0x40d5e6['author']['id']!==_0x1bffca['author']['id']||_0x40d5e6['subType']!==_0x1bffca['subType'])continue;if(!Lt(_0x1bffca,_0x40d5e6,['groupId']))continue;if('attribute'==_0x1bffca['type']&&_0x1bffca['data']['oldValue']!=_0x40d5e6['data']['oldValue'])continue;if('attribute'==_0x1bffca['type']&&_0x21aba6['_isBlockAttribute'](_0x1bffca['data']['key']))continue;if('formatBlock'==_0x1bffca['type']){const _0xf40371=_0x21aba6['editor']['model'],_0xc4980=_0x1bffca['getContainedElement']();if(_0xc4980&&(_0xf40371['schema']['isObject'](_0xc4980)||_0xf40371['schema']['isLimit'](_0xc4980)))continue;}const _0x33daf1=_0x4a88cb['get'](_0x1bffca),_0x105dae=_0x26d824['get'](_0x1bffca),_0x591785=_0x26d824['get'](_0x40d5e6),_0x59bfa1=_0x1bffca['commentThread']&&_0x1bffca['commentThread']['length'],_0x4a7ba3=_0x40d5e6['commentThread']&&_0x40d5e6['commentThread']['length'];if(!_0x59bfa1&&_0x33daf1(_0x591785,_0x105dae))return _0x21aba6['_joinSuggestions'](_0x40d5e6,_0x1bffca),_0x26d824['delete'](_0x1bffca),!0x0;if(!_0x4a7ba3&&_0x33daf1(_0x105dae,_0x591785))return _0x21aba6['_joinSuggestions'](_0x1bffca,_0x40d5e6),_0x26d824['delete'](_0x40d5e6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x137886,_0x393b37){if(_0x137886['isMultiRange']){for(const _0x2a6332 of _0x393b37['getRanges']())_0x137886['addRange'](_0x2a6332);}else{const _0x1ce0a7=_0x393b37['getFirstRange']()['end'];this['_setSuggestionRange'](_0x137886,this['_model']['createRange'](_0x137886['getFirstRange']()['start'],_0x1ce0a7));}_0x393b37['removeMarkers']();}['_getMarkerAnnouncementText'](_0x392c74,_0x42a6f2){const _0x2f16a3=_0x392c74['startsWith']('format')||_0x392c74['startsWith']('attribute')?'FORMATTING':_0x392c74['toUpperCase']();return o(this['editor']['locale'],_0x42a6f2+'_'+_0x2f16a3+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4d42c6=this['editor'];if(!_0x4d42c6['ui'])return;const {ariaLiveAnnouncer:_0x32bf75}=_0x4d42c6['ui'];_0x2abcaf(this['_model'],({left:_0x140106,entered:_0x11e7c6})=>{for(const _0x595da7 of _0x140106){const {group:_0x5362e9,type:_0x64d4c5}=this['_splitMarkerName'](_0x595da7['name']);if('suggestion'===_0x5362e9){_0x32bf75['announce'](this['_getMarkerAnnouncementText'](_0x64d4c5,'LEAVE'));break;}}for(const _0x247925 of _0x11e7c6){const {group:_0x15628e,type:_0x5d7104}=this['_splitMarkerName'](_0x247925['name']);if('suggestion'===_0x15628e){_0x32bf75['announce'](this['_getMarkerAnnouncementText'](_0x5d7104,'ENTER'));break;}}});}['_processAttributeChanges'](_0x101c95){if(this['_recordAttributeSuggestions'])return!0x1;const _0x231862=this['editor'],_0x86f4b3=_0x231862['model']['document']['differ']['getChanges']();if(0x0==_0x86f4b3['length'])return!0x1;const _0x18f301=[],_0x281944=_0x86f4b3['filter'](_0x354b6e=>'attribute'==_0x354b6e['type']),_0x331c44=_0x86f4b3['filter'](_0x310cb8=>'insert'==_0x310cb8['type']&&'$text'!=_0x310cb8['name']),_0x289a6d=_0x86f4b3['filter'](_0x130115=>'remove'==_0x130115['type']&&'$text'!=_0x130115['name']);for(const _0x2f1aaa of _0x281944)_0x18f301['push']({'key':_0x2f1aaa['attributeKey'],'newValue':_0x2f1aaa['attributeNewValue'],'oldValue':_0x2f1aaa['attributeOldValue'],'range':Gt(_0x2f1aaa['range'],_0x231862['model'])});for(const _0x734097 of _0x331c44){const _0x220d82=_0x289a6d['find'](_0xc1efd4=>_0xc1efd4['position']['isEqual'](_0x734097['position']));_0x220d82&&_0x18f301['push']({'key':m,'newValue':_0x734097['name'],'oldValue':_0x220d82['name'],'range':_0x231862['model']['createRangeOn'](_0x734097['position']['nodeAfter'])});}return 0x0!=_0x18f301['length']&&this['_reduceExistingSuggestions'](_0x101c95,_0x18f301);}['_processAttributeSuggestions'](_0x680f4){let _0x5ae711=!0x1;const _0x2b96e4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ccae5=>_0x2ccae5['data']['newRange']&&_0x2ccae5['name']['startsWith']('suggestion:attribute:'));for(const _0x2e7ce1 of _0x2b96e4){const {subType:_0x4698ad,id:_0x3a0194}=this['_splitMarkerName'](_0x2e7ce1['name']),_0x5aef76=_0x4698ad['split']('|')[0x0];for(const _0x2edaf9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2edaf9['id']!=_0x3a0194&&'attribute'==_0x2edaf9['type']&&_0x2edaf9['data']&&_0x2edaf9['data']['key']==_0x5aef76&&_0x2edaf9['getFirstRange']()['isIntersecting'](_0x2e7ce1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2edaf9,_0x2e7ce1['data']['newRange'],_0x680f4),_0x5ae711=!0x0);}return _0x5ae711;}['_recordAttributeChanges'](_0x3cd1b1){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3cd1b1();}['_isRegisteredAttribute'](_0xe0353f){const _0x52a2f6=this['_isBlockAttribute'](_0xe0353f),_0x31b7e7=this['_inlineAttributeKeys']['has'](_0xe0353f);return _0x52a2f6||_0x31b7e7;}['_reduceExistingSuggestions'](_0x444a72,_0x51210e){if(0x0==_0x51210e['length'])return!0x1;let _0x59ef2c=!0x1;for(const _0x4079e2 of _0x51210e){const _0x568a4a=this['_findSuggestions'](_0x4079e2['range'],'attribute')['filter'](_0x3782f3=>!_0x3782f3['meta']['isNextTo'])['map'](_0x4e5dbc=>_0x4e5dbc['suggestion']),_0x4b70a5=_0x417e0e({'newValue':_0x4079e2['newValue']});_0x568a4a['filter'](_0x301f03=>{const [_0x12da82,_0x36a273]=_0x301f03['subType']['split']('|');return _0x12da82==_0x4079e2['key']&&_0x36a273!=_0x4b70a5;})['forEach'](_0x2d69f2=>{this['_reduceSuggestionAttributeRange'](_0x2d69f2,_0x4079e2['range'],_0x444a72),_0x59ef2c=!0x0;});}return _0x59ef2c;}['_reduceSuggestionAttributeRange'](_0x1055ca,_0x15408a,_0x5742d4){const _0x3cada3=_0x1055ca['getFirstRange']()['getDifference'](_0x15408a);0x0!==_0x3cada3['length']?0x1!==_0x3cada3['length']?this['_breakSuggestionMarker'](_0x1055ca,_0x15408a['start'],_0x15408a['end']):this['_setSuggestionRange'](_0x1055ca,_0x3cada3[0x0]):_0x5742d4['removeMarker'](_0x1055ca['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3e9fd8){this['_editor']=_0x3e9fd8,this['_model']=_0x3e9fd8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x10a975,_0x33feb5,_0x20823f,_0x41a553,_0x19ac7d,_0x5d0660){return new u(this['_model'],{'type':_0x10a975,'subType':_0x33feb5,'id':_0x20823f,'author':_0x41a553,'creator':_0x41a553,'attributes':_0x19ac7d,'onAttributesChange':_0x5d0660,'onAccept':(..._0x3f1241)=>this['getSuggestionCallback'](_0x10a975,_0x33feb5,'accept')(..._0x3f1241),'onDiscard':(..._0x31759c)=>this['getSuggestionCallback'](_0x10a975,_0x33feb5,'discard')(..._0x31759c)});}['registerCustomCallback'](_0x1fbcda,_0x374dff,_0x25a476,_0x4e40d3){const _0x4a4dfb=_0x1fbcda+':'+_0x374dff+':'+_0x25a476;this['_customCallbacks']['set'](_0x4a4dfb,_0x4e40d3);}['getSuggestionCallback'](_0x25283e,_0x4638ce,_0xf79fde){const _0x42f6be=_0x25283e+':'+_0x4638ce+':'+_0xf79fde;return this['_customCallbacks']['get'](_0x42f6be)||this['_defaultCallbacks']['get'](_0x25283e+':'+_0xf79fde);}['_registerDefaultCallbacks'](){const _0x38a24c=()=>!0x1,_0x4cd1f8=_0xe27b17=>{_0xe27b17['sort']((_0x654ca5,_0x15c92d)=>_0x654ca5['start']['isBefore'](_0x15c92d['start'])?0x1:-0x1),this['_model']['change'](_0xb9e072=>{for(const _0x331fd5 of _0xe27b17){let _0x3c1659;_0x3c1659=_0x331fd5['end']['isAtEnd']&&_0x331fd5['end']['parent']==_0x331fd5['start']['nodeAfter']?_0xb9e072['createSelection'](_0x331fd5['start']['nodeAfter'],'on'):_0xb9e072['createSelection'](_0x331fd5),this['_model']['deleteContent'](_0x3c1659,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x31a8c3=(_0x20c598,_0xb75337)=>{_0xb75337&&this['_model']['change'](_0x56c074=>{const {commandName:_0x660206,commandParams:_0x1a7afb=[]}=_0xb75337,_0x2f97a0=_0x20c598['map'](_0x4683f4=>(Et(_0x4683f4)&&(_0x4683f4=this['_model']['createRange'](_0x4683f4['end'])),_0x4683f4))['filter'](_0x275ec7=>'$graveyard'!==_0x275ec7['root']['rootName']);if(_0x2f97a0['length']<0x1)return;const _0x8041bd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x28d4b5=>_0x2fbf4a['fromRange'](_0x28d4b5));_0x56c074['setSelection'](_0x2f97a0);for(const _0x5cbb16 of this['_editor']['commands']['commands']())_0x5cbb16['refresh']();_0x1a7afb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x660206,..._0x1a7afb);const _0x43c531=_0x8041bd['filter'](_0x4e9da8=>'$graveyard'!=_0x4e9da8['root']['rootName']);_0x43c531['length']>0x0&&_0x56c074['setSelection'](_0x43c531);for(const _0x265ad3 of _0x8041bd)_0x265ad3['detach']();});},_0x4de8d3=(_0x30d8ae,_0x2e2364)=>0x1==_0x30d8ae['length']&&0x1==_0x2e2364['length']&&_0x30d8ae[0x0]['end']['isEqual'](_0x2e2364[0x0]['start']),_0x5e8b41=(_0x306c9e,_0x3b3340,_0x5dd8bd,_0x297b61)=>Pt(_0x306c9e,_0x3b3340,_0x5dd8bd,_0x297b61,this['_model'])?[_0x306c9e,_0x3b3340]:Pt(_0x3b3340,_0x306c9e,_0x297b61,_0x5dd8bd,this['_model'])?[_0x3b3340,_0x306c9e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x38a24c),this['_defaultCallbacks']['set']('insertion:discard',_0x4cd1f8),this['_defaultCallbacks']['set']('insertion:join',_0x4de8d3),this['_defaultCallbacks']['set']('insertion:chain',_0x5e8b41),this['_defaultCallbacks']['set']('deletion:accept',_0x4cd1f8),this['_defaultCallbacks']['set']('deletion:discard',_0x38a24c),this['_defaultCallbacks']['set']('deletion:join',_0x4de8d3),this['_defaultCallbacks']['set']('deletion:chain',_0x5e8b41),this['_defaultCallbacks']['set']('formatInline:accept',_0x31a8c3),this['_defaultCallbacks']['set']('formatInline:discard',_0x38a24c),this['_defaultCallbacks']['set']('formatInline:join',_0x4de8d3),this['_defaultCallbacks']['set']('formatInline:chain',_0x38a24c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x31a8c3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x38a24c),this['_defaultCallbacks']['set']('formatBlock:join',_0x4de8d3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x38a24c),this['_defaultCallbacks']['set']('attribute:accept',_0x38a24c),this['_defaultCallbacks']['set']('attribute:discard',(_0x448e07,_0x2f7a84)=>{if(!_0x2f7a84)return;const _0x3d53de=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x7236f2=>{if(_0x2f7a84['key']==m)for(const _0x15f643 of _0x448e07){const _0x26ddce=_0x15f643['start']['nodeAfter'],_0x14db1e=_0x2f7a84['oldValue'];_0x7236f2['rename'](_0x26ddce,_0x14db1e);}else{if(_0x3d53de['_isBlockAttribute'](_0x2f7a84['key'])){for(const _0x5769a5 of _0x448e07)void 0x0!==_0x2f7a84['oldValue']?_0x7236f2['setAttribute'](_0x2f7a84['key'],_0x2f7a84['oldValue'],_0x5769a5['start']['nodeAfter']):_0x7236f2['removeAttribute'](_0x2f7a84['key'],_0x5769a5['start']['nodeAfter']);}else{for(const _0x2d0708 of _0x448e07)_0x2f7a84['oldValue']?_0x7236f2['setAttribute'](_0x2f7a84['key'],_0x2f7a84['oldValue'],_0x2d0708):_0x7236f2['removeAttribute'](_0x2f7a84['key'],_0x2d0708);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4de8d3);}}function Tt(_0x475c45,_0x2022b6,_0x396e4a){for(const _0xddee8d of _0x2022b6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xddee8d['root']==_0xddee8d)return!0x1;if(!_0x396e4a['containsItem'](_0xddee8d))return!0x1;if(_0x475c45['isObject'](_0xddee8d)||_0x475c45['isLimit'](_0xddee8d))return!0x0;}return!0x1;}function Et(_0x217fff){return _0x217fff['end']['parent']==_0x217fff['start']['nodeAfter']&&_0x217fff['end']['isAtStart'];}function Vt(_0x170515,_0x2d67de,_0x4ac8e6,_0x3ced0a){const _0x46091f=_0x22958a=>!_0x22958a['item']['is']('$textProxy')&&!_0x3ced0a['isObject'](_0x22958a['item']),_0x1f6025=_0x170515['start']['getLastMatchingPosition'](_0x46091f),_0x5e15ce=_0x170515['end']['getLastMatchingPosition'](_0x46091f,{'direction':'backward'});return(!_0x170515['start']['isEqual'](_0x1f6025)||!_0x170515['end']['isEqual'](_0x5e15ce))&&(_0x1f6025['isBefore'](_0x5e15ce)?_0x4ac8e6['updateMarker'](_0x2d67de,{'range':_0x4ac8e6['createRange'](_0x1f6025,_0x5e15ce)}):_0x4ac8e6['removeMarker'](_0x2d67de),!0x0);}function Ut(_0x3dcca2){return _0x417e0e(_0x3dcca2);}function Ot(_0xf78cd7){const _0x2b646f=_0xf78cd7['start']['nodeAfter'];return _0x2b646f&&_0x2b646f['is']('element');}function Gt(_0x359d4c,_0x297925){return null==_0x359d4c['end']['nodeBefore']&&_0x359d4c['end']['parent']==_0x359d4c['start']['nodeAfter']?Ft(_0x359d4c['start']['nodeAfter'],_0x297925):_0x359d4c;}function Ft(_0x3b220c,_0x3eb9d8){const _0x93561f=_0x3eb9d8['schema']['isObject'](_0x3b220c)||_0x3eb9d8['schema']['isSelectable'](_0x3b220c);return _0x3eb9d8['createRange'](_0x3eb9d8['createPositionAt'](_0x3b220c,'before'),_0x93561f?_0x3eb9d8['createPositionAfter'](_0x3b220c):_0x3eb9d8['createPositionAt'](_0x3b220c,'end'));}function Pt(_0x4f73c6,_0x4b2865,_0x8075a1,_0x39a1f7,_0xf774d7){if(!Lt(_0x4f73c6,_0x4b2865))return!0x1;if(_0x8075a1['end']['isEqual'](_0x39a1f7['start']))return!0x0;if(_0x4f73c6['type']!=_0x4b2865['type'])return!0x1;if(!_0x8075a1['end']['isTouching'](_0x39a1f7['start']))return!0x1;const _0xb0aadf=_0xf774d7['createRange'](_0x8075a1['end'],_0x39a1f7['start'])['getWalker']();for(const _0x302d3f of _0xb0aadf)if(['elementStart','elementEnd']['includes'](_0x302d3f['type'])&&_0xf774d7['schema']['isLimit'](_0x302d3f['item']))return!0x1;return!0x0;}function Lt(_0x5552ab,_0x3f56f0,_0x26d7b3=[]){return!(!_0x5552ab['_isDataLoaded']||!_0x3f56f0['_isDataLoaded'])&&_0x363f51(xt(_0x5552ab['attributes'],_0x26d7b3),xt(_0x3f56f0['attributes'],_0x26d7b3));}function Ht(_0x226e12,_0x2bf103){const _0x12263e=qt(_0x226e12['attributes']),_0x51dc56=qt(_0x2bf103);if(!_0x226e12['_isDataLoaded'])return!0x1;for(const _0x484352 of Object['keys'](_0x51dc56))if(!_0x363f51(_0x12263e[_0x484352],_0x51dc56[_0x484352]))return!0x1;return!0x0;}function qt(_0x3d8f38){const _0x7122dd=Object['assign']({},_0x3d8f38);return delete _0x7122dd['skipNestingCheck'],delete _0x7122dd['tablePasteChainId'],_0x7122dd;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x33aa48(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x33492e,_0x531f41,_0x4cf5b6,_0x544119){super(),this['model']=_0x531f41,this['view']=_0x4cf5b6,this['commentThreadController']=_0x544119,this['_editor']=_0x33492e,this['_acceptCommand']=_0x33492e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x33492e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x42a496,_0x54665f)=>_0x42a496||_0x54665f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x14211b=>_0x14211b&&this['_editor']['model']['canEditAt'](_0x531f41['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1a64d3=>_0x1a64d3&&this['_editor']['model']['canEditAt'](_0x531f41['getRanges']())),this['_pendingAction']=null,_0x4cf5b6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4cf5b6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4cf5b6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4cf5b6,'change:isDirty',()=>{_0x4cf5b6['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 _0x19ecd8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x19ecd8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x48674f{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x9ee1db,_0x33a530,_0x259c11,_0x5cc01a){super(_0x9ee1db),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x33a530['authoredAt']),this['bind']('authoredAt')['to'](_0x33a530),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x33a530,this['_localUser']=_0x259c11,this['_config']=_0x5cc01a,_0x5cc01a['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:_0x468fdf}=this['_config'];this['commentsListView']=new _0x468fdf(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',_0x176e37=>_0x176e37+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1cf271,_0x125aeb)=>_0x1cf271||!!_0x125aeb);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x129904}=this['_config'],_0x5cbea5=new _0x129904(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5bc62d=_0x5cbea5['commentInputView'];return _0x5cbea5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5bc62d,'value',(_0x3916ac,_0x2dbb69,_0x28a15c)=>!!_0x28a15c||_0x3916ac&&!_0x2dbb69),_0x5bc62d['on']('submit',(_0x66bbc7,_0x2f8582)=>{this['fire']('addComment',_0x2f8582),_0x5bc62d['editor']['setData']('');}),_0x5bc62d['on']('cancel',()=>this['focus']()),_0x5bc62d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5cbea5;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x3f2c02,_0x370ee7,_0x2db722,_0x50a95d){super(_0x3f2c02,_0x370ee7,_0x2db722,_0x50a95d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x580a30=>_0x580a30&&_0x580a30[0x0]?_0x580a30[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2b355d,_0x375273)=>{let _0x5c96b9='';for(const _0x179071 of _0x2b355d)_0x5c96b9+='<p>'+ds(_0x179071['content'],_0x179071['color'])+'</p>';return _0x375273?_0x5c96b9:_0x5295c8(_0x5c96b9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x3f2c02,'Accept\x20suggestion'),_0x411bee['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x3f2c02,'Discard\x20suggestion'),_0x411bee['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x32f7f2(_0x3f2c02,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x533e8c=this['bindTemplate'],_0x24d31a=[{'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':_0x533e8c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x533e8c['to']('authoredAt',_0x2150af=>this['_config']['formatDateTime'](_0x2150af))}]}]},{'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']&&_0x24d31a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3c9bb0={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x533e8c['if']('isActive','ck-suggestion-wrapper--active'),_0x533e8c['to']('type',_0x3096ab=>'ck-suggestion-'+_0x3096ab),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':_0x24d31a}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3c9bb0['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)),_0x3c9bb0;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2af9ec,_0x4b3088,_0x3f6b5e)=>{this['_descriptionElement']['innerHTML']=_0x3f6b5e;});}['_createButton'](_0x590028,_0x11d3cf,_0x312dcd,_0x3b2619,_0x352f32){const _0x14075e=new _0x18469a(this['locale']);return _0x14075e['set']({'label':_0x590028,'icon':_0x11d3cf,'tooltip':!0x0,'tooltipPosition':_0x352f32}),_0x14075e['extendTemplate']({'attributes':{'class':_0x312dcd}}),_0x14075e['on']('execute',()=>{this['fire'](_0x3b2619,this['_model']['id']);}),_0x14075e;}['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(_0x18f0aa,_0x54f1d4){let _0x5ee9d6='';return _0x5ee9d6+=_0x18f0aa['split']('*')['map']((_0x5cc97d,_0x312f55)=>_0x312f55%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5cc97d)+'</span>':us(_0x5cc97d))['join'](''),_0x54f1d4&&(_0x5ee9d6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x54f1d4['value']+'\x22\x20title=\x22'+_0x54f1d4['title']+'\x22></span>'),_0x5ee9d6;}function us(_0x1e55d0){const _0x3205f6=document['createElement']('span');return _0x3205f6['innerText']=_0x1e55d0,_0x3205f6['innerHTML'];}var ae='<!--\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 _0x30666f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x48a60c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xcdbc9a){super(_0xcdbc9a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5386ba=this['editor']['config'];_0x5386ba['define']('trackChanges.SuggestionThreadView',ie),_0x5386ba['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5386ba['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5ba272,_0x2ff029){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x548676,_0x493a06]of this['_handleControllerBuffer']){const _0x659841=this['_suggestionToController']['has'](_0x548676);_0x659841||_0x493a06?_0x659841&&_0x493a06&&this['_destroyController'](_0x548676):this['_initializeController'](_0x548676);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5ba272,_0x2ff029);}['init'](){const _0x593de9=this['editor'],_0x4b79a4=_0x593de9['plugins']['get']('TrackChangesEditing'),_0x2e5f33=_0x593de9['plugins']['get']('Annotations'),_0x4f6f5f=_0x593de9['plugins']['get']('EditorAnnotations'),_0x2c7bcb=_0x593de9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4f6f5f['addSourceCollector'](()=>{const _0x2f2917=[];for(const [_0xb0c4f0,_0x3e2239]of Array['from'](this['_suggestionToController'])){const _0xf49695=_0xb0c4f0['getAllAdjacentSuggestions'](),_0x79f0fe=[];for(const _0x23ac0f of _0xf49695){if(!_0x23ac0f['isInContent'])continue;if(_0x23ac0f['isMultiRange']){_0x79f0fe['push'](..._0x23ac0f['getRanges']());continue;}const _0x40a05b=_0x23ac0f['getFirstRange']();if(_0x79f0fe['length']>0x0){const _0x11add2=_0x79f0fe[0x0]['getJoined'](_0x40a05b);if(_0x11add2){_0x79f0fe[0x0]=_0x11add2;continue;}}_0x79f0fe['push'](_0x40a05b);}_0x2f2917['push']([_0x3e2239['view'],_0x79f0fe]);}return _0x2f2917;}),this['listenTo'](_0x4b79a4,'suggestionLoaded',(_0x415d95,_0x51e01b)=>{this['listenTo'](_0x51e01b,'change:previous',(_0x4ba14e,_0x12bd57,_0x5f4fab,_0x734f7a)=>{_0x51e01b['isInContent']&&(null==_0x5f4fab?(this['_updateController'](_0x734f7a['head']),this['_handleSuggestionControllerDelayed'](_0x51e01b,!0x1)):(this['_updateController'](_0x5f4fab['head']),null==_0x734f7a&&this['_handleSuggestionControllerDelayed'](_0x51e01b,!0x0)));}),null!==_0x51e01b['previous']?this['_updateController'](_0x51e01b['head']):this['_handleSuggestionControllerDelayed'](_0x51e01b,!0x1);}),this['listenTo'](_0x4b79a4,'suggestionUnloaded',(_0x5dee1f,_0x479324,_0x235cd3)=>{this['stopListening'](_0x479324,'change:previous'),this['_handleControllerBuffer']['delete'](_0x479324),this['_suggestionToController']['has'](_0x479324)&&this['_destroyController'](_0x479324),_0x235cd3&&this['_updateController'](_0x235cd3['head']);}),this['listenTo'](_0x4b79a4,'suggestionChanged',(_0x11cac3,_0x4fa076)=>{this['_updateController'](_0x4fa076);}),this['listenTo'](_0x2e5f33,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2c7bcb,'addComment',(_0x83c85e,{threadId:_0x1b8470,isFromAdapter:_0x3637c1})=>{if(_0x3637c1||!_0x4b79a4['hasSuggestion'](_0x1b8470))return;const _0x181384=_0x4b79a4['getSuggestion'](_0x1b8470);this['_suggestionToController']['get'](_0x181384)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x58ff4e=this['editor']['plugins']['get']('Annotations'),_0x580c6d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ce8ad=Array['from'](_0x58ff4e['activeAnnotations'],_0x41badc=>_0x41badc['innerView'])['filter'](_0x1d2b8a=>this['_viewToController']['has'](_0x1d2b8a)),_0x1f9bff=[];for(const _0x3c8cbe of _0x4ce8ad){const _0x161685=this['_viewToController']['get'](_0x3c8cbe)['model']['getAllAdjacentSuggestions']();_0x1f9bff['push'](..._0x161685['reduce']((_0x5dd5a1,_0x4c1933)=>[..._0x5dd5a1,..._0x4c1933['getMarkerNames']()],[]));}_0x580c6d['activeMarkers']=_0x1f9bff;}['_addUIComponentsToFactory'](){const _0x11ab7a=this['editor'],_0x3aa126=_0x11ab7a['locale'],_0x1f08d7=o(_0x3aa126,'Track\x20changes'),_0x5dffba=new Wt([{'type':'switchbutton','model':new _0x3b8fc5({'withText':!0x0,'isToggleable':!0x0,'label':_0x1f08d7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3b8fc5({'withText':!0x0,'label':o(_0x3aa126,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b8fc5({'withText':!0x0,'label':o(_0x3aa126,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b8fc5({'withText':!0x0,'label':o(_0x3aa126,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b8fc5({'withText':!0x0,'label':o(_0x3aa126,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1333c5 of _0x5dffba)if(re(_0x1333c5)){const _0x1e0da5=_0x11ab7a['commands']['get'](_0x1333c5['model']['commandName']);_0x1333c5['model']['bind']('isOn','isEnabled')['to'](_0x1e0da5,'value','isEnabled');}_0x11ab7a['ui']['componentFactory']['add']('trackChanges',_0x1f151a=>this['_createToolbarButton'](_0x1f151a,_0x5dffba,_0x1f08d7)),_0x11ab7a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x310ffc=>this['_createMenuBarMenu'](_0x310ffc,_0x5dffba,_0x1f08d7));}['_createToolbarButton'](_0x21d176,_0x243f25,_0x428458){const _0x212b8d=Jt(_0x21d176,te),_0x5ad2e9=this['editor']['commands']['get']('trackChanges');_0x212b8d['buttonView']['set']({'tooltip':_0x428458,'label':_0x428458,'icon':ae}),_0x212b8d['buttonView']['bind']('isOn')['to'](_0x5ad2e9,'value'),_0x212b8d['buttonView']['on']('execute',()=>{_0x5ad2e9['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x212b8d,_0x243f25,{'role':'menu'});const _0x3708bf=[];for(const _0xd4e340 of _0x243f25)re(_0xd4e340)&&_0x3708bf['push'](this['editor']['commands']['get'](_0xd4e340['model']['commandName']));const _0x565750=_0x212b8d['buttonView'];return _0x565750['actionView']['unbind']('isEnabled'),_0x565750['arrowView']['unbind']('isEnabled'),_0x565750['actionView']['bind']('isEnabled')['to'](_0x5ad2e9,'isEnabled'),_0x565750['arrowView']['bind']('isEnabled')['toMany'](_0x3708bf,'isEnabled',(..._0x19f414)=>_0x19f414['some'](_0x255be0=>_0x255be0)),_0x212b8d['on']('execute',_0x4edb94=>{this['editor']['execute'](_0x4edb94['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x212b8d;}['_createMenuBarMenu'](_0x40b32a,_0x55f0ba,_0x453ebb){const _0x296d85=new Qt(_0x40b32a),_0x214b0b=this['editor']['commands']['get']('trackChanges');_0x296d85['buttonView']['set']({'label':_0x453ebb,'icon':ae});const _0x161cf2=new Xt(_0x40b32a);for(const _0x131e0f of _0x55f0ba){if('separator'==_0x131e0f['type']){_0x161cf2['items']['add'](new Kt(_0x40b32a));continue;}const _0x188535=new Yt(_0x40b32a,_0x296d85),_0xf6d90f=new Zt(_0x40b32a),_0x47e683=_0x131e0f['model'];_0xf6d90f['bind'](...Object['keys'](_0x47e683))['to'](_0x47e683),_0xf6d90f['delegate']('execute')['to'](_0x296d85),_0xf6d90f['on']('execute',()=>{this['editor']['execute'](_0x47e683['commandName']),this['editor']['editing']['view']['focus']();}),_0x188535['children']['add'](_0xf6d90f),_0x161cf2['items']['add'](_0x188535);}return _0x296d85['bind']('isEnabled')['to'](_0x214b0b,'isEnabled'),_0x296d85['panelView']['children']['add'](_0x161cf2),_0x296d85;}['_initializeController'](_0xf71528){const _0x8d9444=this['editor'],_0x33ca6f=_0x8d9444['config'],_0x5be7b8=_0x8d9444['plugins']['get']('Annotations'),_0x5a4faa=_0x8d9444['plugins']['get']('CommentsRepository'),_0x560c26=_0x8d9444['plugins']['get']('EditorAnnotations'),_0x3fc40f=_0x8d9444['plugins']['get'](_0x48a60c)['me'],_0x19877d=_0x33ca6f['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x372883,CommentThreadInputView:_0x5da910}=_0x8d9444['plugins']['get']('CommentsUI');let _0x3a337e,_0x4aa932;this['_annotationViews']['has'](_0xf71528['id'])?(_0x4aa932=this['_annotationViews']['get'](_0xf71528['id']),_0x3a337e=_0x4aa932['mainView']):(_0x3a337e=new _0x19877d(_0x8d9444['locale'],_0xf71528,_0x3fc40f,{'disableComments':this['_disableComments'],'editorConfig':_0x33ca6f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x33ca6f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x33ca6f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x33ca6f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x574d25(_0x33ca6f['get']('locale')),'CommentView':_0x33ca6f['get']('comments')['CommentView'],'CommentsListView':_0x372883,'CommentThreadInputView':_0x5da910}),_0x3a337e['acceptButton']['on']('execute',()=>{_0x8d9444['editing']['view']['focus']();}),_0x3a337e['discardButton']['on']('execute',()=>{_0x8d9444['editing']['view']['focus']();}),_0x4aa932=_0x5be7b8['createAnnotationView'](this['editor']['locale'],_0x3a337e),_0x4aa932['bind']('isDirty')['to'](_0x3a337e,'isDirty'),_0x4aa932['bind']('length')['to'](_0x3a337e),_0x4aa932['bind']('type')['to'](_0x3a337e,'type',_0x4d27f5=>'suggestion-'+_0x4d27f5),this['_annotationViews']['set'](_0xf71528['id'],_0x4aa932));const _0x2745fd=_0x5a4faa['createCommentThreadController'](_0xf71528['commentThread'],_0x3a337e),_0x3df7da=new ne(_0x8d9444,_0xf71528,_0x3a337e,_0x2745fd),_0x111211=_0xf71528['getAllAdjacentSuggestions']()['filter'](_0x1fdc28=>_0x1fdc28['isInContent']);_0x3a337e['descriptionParts']=_0x8d9444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x111211),this['_suggestionToController']['set'](_0xf71528,_0x3df7da),this['_viewToController']['set'](_0x3a337e,_0x3df7da);const _0x1459ac=_0x5be7b8['createAnnotation']({'view':_0x4aa932,'target':()=>{const _0x4b0845=[],_0x1329cc=_0xf71528['getAllAdjacentSuggestions']()['filter'](_0x17adfe=>_0x17adfe['isInContent']);for(const _0x4fa154 of _0x1329cc)_0x4b0845['push'](..._0x4fa154['getMarkers']());return _0x5993d3(_0x8d9444['editing'],_0x4b0845);},'type':()=>'suggestion-'+_0x3df7da['view']['type']});_0x5a4faa['_bindAnnotationToEditors'](_0x3a337e,_0x1459ac),_0x5be7b8['add'](_0x1459ac),_0x560c26['registerAnnotation'](_0x1459ac);}['_destroyController'](_0x4d225a){const _0x15d7b2=this['editor']['plugins']['get']('CommentsRepository'),_0x2c1460=this['editor']['plugins']['get']('Annotations'),_0x34118c=this['_suggestionToController']['get'](_0x4d225a),_0x224b0b=_0x34118c['view'],_0x5c2da7=_0x2c1460['getByInnerView'](_0x224b0b);_0x15d7b2['_unbindEditors'](_0x224b0b),_0x5c2da7&&_0x2c1460['remove'](_0x5c2da7),this['_suggestionToController']['delete'](_0x4d225a),this['_viewToController']['delete'](_0x224b0b),_0x34118c['destroy']();}['_updateController'](_0x2cd8d0){if(!_0x2cd8d0['isInContent']||!this['_suggestionToController']['has'](_0x2cd8d0))return;const _0x514773=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1677ae=this['_suggestionToController']['get'](_0x2cd8d0),_0x3fcb48=_0x2cd8d0['getAllAdjacentSuggestions']();_0x1677ae['view']['descriptionParts']=_0x514773['descriptionFactory']['getDescriptions'](_0x3fcb48);}['destroy'](){for(const _0x174196 of this['_suggestionToController']['keys']())this['_destroyController'](_0x174196);for(const _0x4dc38a of this['_annotationViews']['values']())_0x4dc38a['mainView']['destroy']();super['destroy']();}}function re(_0x66d1fc){return'model'in _0x66d1fc;}class k extends _0x30666f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5e2bab){this['editor']['plugins']['get'](p)['adapter']=_0x5e2bab;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5eec2b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5eec2b);}['getSuggestions']({skipNotAttached:_0x493cad=!0x1,toJSON:_0x21a349=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x493cad,'toJSON':_0x21a349});}['getSuggestion'](_0x51e756){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x51e756);}}const T=['Pagination'];class P extends _0x30666f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x503960=this['editor'];if(_0x503960['config']['define']('trackChangesData.editorCreator',_0x4716c8=>{const _0x11ab50=_0x503960['model']['document']['getRootNames']()['reduce']((_0x343532,_0x3844d9)=>(_0x343532[_0x3844d9]='',_0x343532),{});return _0x503960['constructor']['create'](_0x11ab50,_0x4716c8);}),'function'!=typeof _0x503960['config']['get']('trackChangesData')['editorCreator'])throw new _0x10ad1c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x371f11){return N(this['editor'],!0x0,_0x371f11);}['getDataWithDiscardedSuggestions'](_0x2320e0){return N(this['editor'],!0x1,_0x2320e0);}}class D extends _0x30666f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4d2d9c){super(_0x4d2d9c),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(_0x6f93bc){return void 0x0!==_0x6f93bc['getRootsAttributes'];}async function N(_0x489f84,_0x4dbaed,_0x35e045){const _0x328d8c=_0x491ecd(_0x489f84,T);_0x328d8c['plugins']['push'](p,D),_0x328d8c['rootsAttributes']=v(_0x489f84)?_0x489f84['getRootsAttributes']():void 0x0;const _0x5cbf74=document['createDocumentFragment'](),_0x31b6a9=_0x489f84['config']['get']('trackChangesData')['editorCreator'],_0x35f1f3=await _0x31b6a9(_0x328d8c,()=>function(_0x304f27){const _0x2bfc80=document['createElement']('div');return _0x304f27['appendChild'](_0x2bfc80),_0x2bfc80;}(_0x5cbf74));!function(_0x3e791f,_0x19036b){const _0x23bad6=_0x3e791f['model']['document']['getRootNames']()['reduce']((_0x4e3105,_0x593462)=>(_0x4e3105[_0x593462]=_0x3e791f['data']['get']({'rootName':_0x593462}),_0x4e3105),{}),_0x381729=_0x3e791f['plugins']['get']('Users')['users']['map'](_0x1e3849=>({'id':_0x1e3849['id'],'name':_0x1e3849['name']})),_0x1bda88=_0x3e791f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a8a7d=_0x3e791f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26b40f=_0x19036b['plugins']['get']('Users'),_0x1b37ae=_0x19036b['plugins']['get']('TrackChangesEditing'),_0x13eb6d=_0x19036b['plugins']['get']('CommentsRepository');for(const _0x4be469 of _0x381729)_0x26b40f['getUser'](_0x4be469['id'])||_0x26b40f['addUser'](_0x4be469);_0x26b40f['me']||_0x26b40f['useAnonymousUser']();for(const _0x1f6f56 of _0x5a8a7d)_0x13eb6d['addCommentThread'](_0x1f6f56);for(const _0x50441d of _0x1bda88)_0x1b37ae['addSuggestionData'](_0x50441d);_0x19036b['data']['set'](_0x23bad6);}(_0x489f84,_0x35f1f3),_0x35f1f3['execute'](_0x4dbaed?'acceptAllSuggestions':'discardAllSuggestions');const _0x85b25d=v(_0x35f1f3)?_0x35f1f3['getFullData'](_0x35e045):_0x35f1f3['data']['get'](_0x35e045);return await _0x35f1f3['destroy'](),_0x85b25d;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x15c086,PendingActions as _0x159dc3,icons as _0x5dc603}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3cf89a,ObservableMixin as _0x28acc2,uid as _0x27f732,insertToPriorityArray as _0x3a65c8,priorities as _0x200434,logWarning as _0x227421,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4c81bc,View as _0x590774,ButtonView as _0x56024e,ViewModel as _0x3a5c24,createDropdown as Jt,SplitButtonView as te,addListToDropdown as zt,MenuBarMenuView as Qt,MenuBarMenuListView as Xt,ListSeparatorView as Kt,MenuBarMenuListItemView as Yt,MenuBarMenuListItemButtonView as Zt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x391bb8,hashObject as _0x16ce2e,surroundingMarkersDetector as _0x176339,trimHtml as _0x39a1b4,UserView as _0x315dbd,getDateTimeFormatter as _0x14289b,getAllMarkersDomElementsSorted as _0x492e53,sanitizeEditorConfig as _0x362255}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2f484a,LiveRange as _0x948f0b,LivePosition as _0x5337e8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5bea68,toWidget as _0xb67c89}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x7c6eac,set as _0x3e0bf6,isEqual as _0x35c1e7,unset as _0x243a98,omit as xt}from'lodash-es';import{Delete as _0x272956,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x331ec9,ShiftEnter as _0x275f63}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x7f1c48,_0x4f23b3){super(_0x7f1c48),this['_enabledCommands']=_0x4f23b3,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 _0x3ed086 of this['editor']['commands']['commands']())_0x3ed086['affectsData']&&!this['_enabledCommands']['has'](_0x3ed086)&&_0x3ed086['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x554a5e of this['editor']['commands']['commands']())_0x554a5e['affectsData']&&!this['_enabledCommands']['has'](_0x554a5e)&&_0x554a5e['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xf36c33,_0x51e185){super(_0xf36c33),this['_suggestions']=_0x51e185,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x41b990){const _0x5d5b9a=this['_suggestions']['get'](_0x41b990);if(!_0x5d5b9a)throw new _0x3cf89a('track-changes-accept-suggestion-not-found',this);const _0x1f2443=_0x5d5b9a['getRanges']();this['editor']['model']['canEditAt'](_0x1f2443)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5d5b9a);}}class B extends ts{['_suggestions'];constructor(_0x257f6c,_0xdc6d22){super(_0x257f6c),this['_suggestions']=_0xdc6d22,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x54355a){const _0x16539c=this['_suggestions']['get'](_0x54355a);if(!_0x16539c)throw new _0x3cf89a('track-changes-discard-suggestion-not-found',this);const _0x30d72b=_0x16539c['getRanges']();this['editor']['model']['canEditAt'](_0x30d72b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x16539c);}}function ss(_0x2c66bb){return _0x2c66bb['sort']((_0x3a0e52,_0xd40e)=>'deletion'==_0x3a0e52['type']&&'deletion'!=_0xd40e['type']?-0x1:'deletion'!=_0x3a0e52['type']&&'deletion'==_0xd40e['type']?0x1:0x0);}function to(_0x280c3a,_0x49cfc8){let _0x57613e,_0x1b72f7=0x0;const _0x1f24cb=[],_0x2ba7ce=_0x49cfc8['schema'];for(;_0x1b72f7<_0x280c3a['length'];){const _0x35293a=_0x280c3a[_0x1b72f7],_0x5335c6=_0x280c3a[_0x1b72f7+0x1];_0x57613e||(_0x57613e=_0x49cfc8['createPositionBefore'](_0x35293a)),co(_0x49cfc8,_0x35293a,_0x5335c6)||(_0x1f24cb['push'](_0x49cfc8['createRange'](_0x57613e,_0x2ba7ce['isObject'](_0x35293a)?_0x49cfc8['createPositionAfter'](_0x35293a):_0x49cfc8['createPositionAt'](_0x35293a,'end'))),_0x57613e=null),_0x1b72f7++;}return _0x1f24cb;}function co(_0x4eaa76,_0x411e50,_0x202314){if(!_0x202314)return!0x1;const _0x2f4fc0=_0x4eaa76['createPositionAfter'](_0x411e50),_0x147adf=_0x4eaa76['createPositionBefore'](_0x202314);return _0x2f4fc0['isTouching'](_0x147adf);}function rs(_0x258dab,_0x12861c,_0x26819e){for(;_0x26819e['length'];){const _0x13ff30=_0x26819e['splice'](0x0,0x64);_0x258dab['change'](()=>{for(const _0x35a537 of _0x13ff30)_0x35a537['isInContent']&&_0x12861c['execute'](_0x35a537['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0xf3a204,_0x25fcad,_0x5bbba3){super(_0xf3a204),this['_command']=_0x25fcad,this['_suggestions']=_0x5bbba3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x34669b=Array['from'](this['_suggestions']['values']())['some'](_0x34ef95=>_0x34ef95['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x34669b;}['execute'](){const _0x12ab54=ss(Array['from'](this['_suggestions']['values']()));for(const _0xa91b0 of _0x12ab54){const _0x4bb64c=_0xa91b0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4bb64c))return;}rs(this['editor']['model'],this['_command'],_0x12ab54);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x121898,_0x45c695,_0x48f07e){super(_0x121898),this['_command']=_0x45c695,this['_suggestions']=_0x48f07e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x423c9c=this['editor']['model']['document']['selection'],_0x3cfb28=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x26bba0,_0x530796){const _0x114091=Array['from'](_0x26bba0['getRanges']()),_0x55cc09=new Set();for(const _0x1f08ab of _0x530796)if(_0x1f08ab['isInContent']){for(const _0x4b9233 of _0x114091)for(const _0x2a225e of _0x1f08ab['getRanges']())(_0x4b9233['isIntersecting'](_0x2a225e)||_0x26bba0['isCollapsed']&&!_0x1f08ab['isMultiRange']&&_0x1f08ab['next']&&_0x2a225e['end']['isTouching'](_0x4b9233['start']))&&_0x55cc09['add'](_0x1f08ab);}return _0x55cc09;}(_0x423c9c,_0x3cfb28),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x47ecea=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2a9637 of _0x47ecea){const _0x5d704b=_0x2a9637['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5d704b))return;}rs(this['editor']['model'],this['_command'],_0x47ecea);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x28acc2(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x527a38,_0x29e851){super(),this['id']=_0x29e851['id'],this['type']=_0x29e851['type'],this['subType']=_0x29e851['subType']||null,this['author']=_0x29e851['author'],this['creator']=_0x29e851['creator']||_0x29e851['author'],this['isExternal']=Boolean(_0x29e851['attributes']&&_0x29e851['attributes']['@external']),this['data']=null,this['_model']=_0x527a38,this['_onAccept']=_0x29e851['onAccept'],this['_onDiscard']=_0x29e851['onDiscard'],this['_onAttributesChange']=_0x29e851['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29e851['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 _0xfb778f=this;for(;_0xfb778f['previous'];)_0xfb778f=_0xfb778f['previous'];return _0xfb778f;}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'](_0xb43db7){this['_markerNames']['add'](_0xb43db7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x114598=>this['_model']['markers']['get'](_0x114598))['filter'](_0x4db2e8=>_0x4db2e8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x56ba9e=>{for(const _0x125370 of this['getMarkers']())_0x56ba9e['removeMarker'](_0x125370);}),this['_markerNames']['clear']();}['removeMarker'](_0x5cdb86){this['_model']['change'](_0x48880e=>{_0x48880e['removeMarker'](_0x5cdb86);}),this['_markerNames']['delete'](_0x5cdb86);}['addRange'](_0x340e3a){const _0x1ebf82='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1ebf82),this['_model']['change'](_0x445e50=>{_0x445e50['addMarker'](_0x1ebf82,{'range':_0x340e3a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1659c5){for(const _0xc6905a of this['getRanges']())if(_0xc6905a['isIntersecting'](_0x1659c5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4ed4fb=>_0x4ed4fb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x759ca9,_0x243da0)=>[..._0x759ca9,..._0x243da0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x18294b=this['getRanges']();if(0x1!=_0x18294b['length'])return null;const _0x491d31=_0x18294b[0x0],_0x2017a9=_0x491d31['start']['nodeAfter'],_0x5478e1=_0x491d31['end']['nodeBefore'];return _0x2017a9 instanceof _0x2f484a?_0x2017a9!=_0x5478e1?null:_0x2017a9: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 _0x1b90d5=[];let _0x100a65=this['head'];for(;_0x100a65;)_0x1b90d5['push'](_0x100a65),_0x100a65=_0x100a65['next'];return _0x1b90d5;}['setAttribute'](_0x256aa5,_0x2ca998){const _0x45311f=_0x7c6eac(this['attributes']);_0x3e0bf6(_0x45311f,_0x256aa5,_0x2ca998),_0x35c1e7(_0x45311f,this['attributes'])||(this['attributes']=_0x45311f,this['_onAttributesChange'](_0x45311f));}['removeAttribute'](_0x18acca){const _0x5a57a7=_0x7c6eac(this['attributes']);_0x243a98(_0x5a57a7,_0x18acca),_0x35c1e7(_0x5a57a7,this['attributes'])||(this['attributes']=_0x5a57a7,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 _0x27f732()['substr'](0x1,0x5);}}function o(_0x4b8ce1,_0x4b5646,_0x301d94){const t=_0x4b8ce1['t'];switch(_0x4b5646){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',_0x301d94);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x301d94);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x301d94);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x301d94);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x301d94);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',_0x301d94);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x301d94);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',_0x301d94);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x301d94);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x301d94);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x301d94);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x301d94);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x301d94);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x301d94);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x301d94);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x301d94);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x301d94);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x301d94);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x301d94);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x301d94);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x301d94);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x301d94);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x301d94);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'},_0x301d94);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x301d94);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x301d94);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x301d94);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x301d94);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x301d94);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'},_0x301d94);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x301d94);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x301d94);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x301d94);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x301d94);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'},_0x301d94);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x301d94);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'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x301d94);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x301d94);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x301d94);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'},_0x301d94);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'},_0x301d94);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 _0x4b5646;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1824d5,_0x2ad20e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1824d5,this['_locale']=_0x2ad20e;}['getDescriptions'](_0x21bfa9){const _0x2994f0=[],_0x3937b4=new Set(),_0x4052fa=new Set();for(let _0x5c62ba=0x0;_0x5c62ba<_0x21bfa9['length'];_0x5c62ba++){const _0x3c8520=_0x21bfa9[_0x5c62ba];if(!_0x3c8520['isInContent'])continue;const _0x4045f8=this['_handleCustomCallbackDescription'](_0x3c8520);if(_0x4045f8){if(null!=_0x3c8520['subType']){if(_0x3937b4['has'](_0x3c8520['subType']))continue;_0x3937b4['add'](_0x3c8520['subType']);}_0x2994f0['push'](_0x4045f8);}else{if('attribute'!=_0x3c8520['type'])'insertion'!=_0x3c8520['type']&&'deletion'!=_0x3c8520['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2994f0,_0x3c8520,_0x21bfa9[_0x5c62ba+0x1]);else{const _0xcd685=_0x3c8520['data']['key'];if(_0x4052fa['has'](_0xcd685))continue;_0x4052fa['add'](_0x3c8520['data']['key']),_0xcd685==m?this['_handleRenameSuggestionDescription'](_0x2994f0,_0x3c8520):this['_handleAttributeSuggestionDescription'](_0x2994f0,_0x3c8520);}}}return this['_resolveDescriptionItems'](_0x2994f0);}['registerDescriptionCallback'](_0x3d1c3d){this['_customCallbacks']['push'](_0x3d1c3d);}['registerElementLabel'](_0x54b39c,_0x2e4a3b,_0x39fe4e=_0x200434['normal']){'function'==typeof _0x54b39c?_0x3a65c8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54b39c,'label':_0x2e4a3b,'priority':_0x39fe4e}):this['_itemLabels']['set'](_0x54b39c,_0x2e4a3b);}['registerAttributeLabel'](_0x47e62a,_0x1ba57b){this['_attributeLabels']['set'](_0x47e62a,_0x1ba57b);}['getItemLabel'](_0x587f43,_0x58576c=0x1){let _0x4dad63;for(const _0x54f6c7 of this['_itemLabelsCallbacks'])if(_0x54f6c7['matchingCallback'](_0x587f43)){_0x4dad63=_0x54f6c7['label'];break;}return _0x4dad63||(_0x4dad63=this['_itemLabels']['get'](_0x587f43['name'])),_0x4dad63?_0x4dad63(_0x58576c):0x1!==_0x58576c?_0x58576c+'\x20'+_0x587f43['name']+'s':''+_0x587f43['name'];}['_addDescriptionItems'](_0x458286,_0x4535f1){const _0x2640b8=_0x4535f1['getFirstRange']()['getWalker'](),_0x3915be='insertion'==_0x4535f1['type']?'add':'remove';for(const _0x30b2ad of _0x2640b8){const _0xefcaa2=_0x30b2ad['item'],_0x27a188=_0x458286[_0x458286['length']-0x1];if(_0xefcaa2['is']('$textProxy'))_0x27a188&&_0x27a188['type']['indexOf']('Container')>-0x1&&_0x458286['pop'](),_0x27a188&&'text'==_0x27a188['type']?_0x27a188[_0x3915be]+=_0xefcaa2['data']:_0x458286['push']({'type':'text','add':'add'==_0x3915be?_0xefcaa2['data']:'','remove':'remove'==_0x3915be?_0xefcaa2['data']:''});else{if(this['_schema']['isObject'](_0xefcaa2)){const _0x3f3711=_0xefcaa2;if(_0x27a188&&_0x27a188['type']['indexOf']('Container')>-0x1&&_0x458286['pop'](),'elementEnd'==_0x30b2ad['type'])continue;_0x27a188&&_0x27a188['type']==_0x3915be+'Object'&&_0x27a188['element']['name']==_0x3f3711['name']?_0x27a188['quantity']++:_0x458286['push']({'type':_0x3915be+'Object','element':_0x3f3711,'quantity':0x1}),_0x2640b8['skip'](_0x25243d=>!('elementEnd'==_0x25243d['type']&&_0x25243d['item']==_0xefcaa2));}else{if(this['_schema']['checkChild'](_0xefcaa2,'$text')||_0xefcaa2['is']('element','softBreak')){const _0x298812=_0xefcaa2;if('add'==_0x3915be&&'elementStart'==_0x30b2ad['type']||'remove'==_0x3915be&&'elementEnd'==_0x30b2ad['type'])continue;if(_0x27a188&&-0x1==_0x27a188['type']['indexOf']('Container')){'text'==_0x27a188['type']&&(_0x27a188[_0x3915be]+='\x0a');continue;}let _0x481c51;if(_0x481c51='add'==_0x3915be?_0x298812['nextSibling']&&!this['_schema']['isObject'](_0x298812['nextSibling'])?_0x298812['nextSibling']:null:_0x298812['previousSibling']&&!this['_schema']['isObject'](_0x298812['previousSibling'])?_0x298812['previousSibling']:null,_0x298812['isEmpty']||_0x481c51&&_0x481c51['isEmpty']){const _0x5a6aec=_0x481c51&&_0x481c51['isEmpty']?_0x481c51:_0x298812;_0x27a188&&_0x27a188['type']==_0x3915be+'EmptyContainer'&&_0x27a188['element']['name']==_0x5a6aec['name']?_0x27a188['quantity']++:_0x458286['push']({'type':_0x3915be+'EmptyContainer','element':_0x5a6aec,'quantity':0x1});}else _0x458286['push']({'type':_0x3915be+'Container','element':_0x298812});}}}}}['_resolveDescriptionItems'](_0x36411d){const _0x2e7e7f=this['_locale'],_0x35f22b=[],_0x302294=[],_0x21d1c6=[];for(const _0x130888 of _0x36411d)switch(_0x130888['type']){case'text':if(_0x130888['add']=_0x130888['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x130888['remove']=_0x130888['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x130888['add']&&''!=_0x130888['remove']){_0x35f22b['push']({'type':'replace','content':o(_0x2e7e7f,'REPLACE_TEXT',['\x22'+_0x130888['remove']+'\x22','\x22'+_0x130888['add']+'\x22'])});continue;}if(null!=_0x130888['add']['match'](/^ +$/)){_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0',o(_0x2e7e7f,'ELEMENT_SPACE',_0x130888['add']['length']))});continue;}if(null!=_0x130888['remove']['match'](/^ +$/)){_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0',o(_0x2e7e7f,'ELEMENT_SPACE',_0x130888['remove']['length']))});continue;}if(''!=_0x130888['add']){_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0','\x22'+_0x130888['add']+'\x22')});continue;}_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0','\x22'+_0x130888['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'addContainer':_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Split:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'removeContainer':_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Merge:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'addFormat':_0x302294['push'](_0x130888['key']);continue;case'removeFormat':_0x21d1c6['push'](_0x130888['key']);continue;default:_0x35f22b['push'](_0x130888);}if(_0x302294['length']){const _0x2efde3=_0x302294['map'](_0x2c30d2=>this['_attributeLabels']['has'](_0x2c30d2)?this['_attributeLabels']['get'](_0x2c30d2):_0x2c30d2)['join'](',\x20');_0x35f22b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2efde3)});}if(_0x21d1c6['length']){const _0x3910d3=_0x21d1c6['map'](_0x20d9c3=>this['_attributeLabels']['has'](_0x20d9c3)?this['_attributeLabels']['get'](_0x20d9c3):_0x20d9c3)['join'](',\x20');_0x35f22b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3910d3)});}return _0x35f22b;}['_handleCustomCallbackDescription'](_0x4fdd20){for(const _0x593cc2 of this['_customCallbacks']){const _0x376f75=_0x593cc2(_0x4fdd20);if(_0x376f75&&'type'in _0x376f75)return _0x376f75;}}['_handleAttributeSuggestionDescription'](_0x39f59e,_0x3e50cb){const _0x4e3fe8=_0x3e50cb['data'],_0x5b8680=void 0x0===_0x4e3fe8['newValue']?'removeFormat':'addFormat';_0x39f59e['push']({'type':_0x5b8680,'key':_0x4e3fe8['key']});}['_handleRenameSuggestionDescription'](_0xeace45,_0x55dcb0){_0xeace45['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x55dcb0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5c5cb9,_0x36d6ad,_0x5b475f){if(this['_addDescriptionItems'](_0x5c5cb9,_0x36d6ad),_0x5b475f&&_0x5b475f['getFirstRange']()&&!_0x36d6ad['getFirstRange']()['end']['isEqual'](_0x5b475f['getFirstRange']()['start'])){const _0xf7f75e=_0x5c5cb9[_0x5c5cb9['length']-0x1],_0x1c67e9='insertion'==_0x36d6ad['type']?'add':'remove';_0xf7f75e&&'text'==_0xf7f75e['type']&&(_0xf7f75e[_0x1c67e9]+='\x0a');}}}class E extends _0x15c086{['afterInit'](){const _0x27e100=this['editor'],_0x3edf97=_0x27e100['plugins']['get']('TrackChangesEditing');_0x27e100['commands']['get']('showAIAssistant')&&_0x3edf97['enableCommand']('showAIAssistant');}}class V extends _0x15c086{['afterInit'](){const _0x13fa7f=this['editor'],_0x2176aa=_0x13fa7f['locale'];if(!_0x13fa7f['plugins']['has']('AlignmentEditing'))return;const _0x49bb11=_0x13fa7f['plugins']['get']('TrackChangesEditing');_0x49bb11['enableDefaultAttributesIntegration']('alignment'),_0x49bb11['registerBlockAttribute']('alignment'),_0x49bb11['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2176aa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x227a75=this['editor'],_0x21a8e2=_0x227a75['locale'];_0x227a75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e1cf4=>{if('formatBlock'!=_0x3e1cf4['type'])return;const {data:_0x4e06b9}=_0x3e1cf4;if(_0x4e06b9&&'alignment'==_0x4e06b9['commandName']){const _0x302574=_0x4e06b9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x21a8e2,'*Format:*\x20%0',function(_0x4a0095){switch(_0x4a0095){case'left':return o(_0x21a8e2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x21a8e2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x21a8e2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x21a8e2,'FORMAT_JUSTIFY_TEXT');}}(_0x302574))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x15c086{['afterInit'](){const _0x210d8f=this['editor'],_0x22b757=_0x210d8f['plugins']['get']('TrackChangesEditing'),_0x2c05f4=_0x210d8f['locale'];for(const _0x1f4de3 of ti){if(!_0x210d8f['plugins']['has'](_0x1f4de3))continue;const _0x13a5f8=_0x1f4de3['slice'](0x0,-0x7)['toLowerCase'](),_0x308bee='FORMAT_'+_0x13a5f8['toUpperCase']();_0x22b757['enableDefaultAttributesIntegration'](_0x13a5f8),_0x22b757['registerInlineAttribute'](_0x13a5f8),_0x22b757['descriptionFactory']['registerAttributeLabel'](_0x13a5f8,o(_0x2c05f4,_0x308bee));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ba040=this['editor'],_0x460c18=_0x2ba040['locale'],_0x4ad2e3=_0x2ba040['plugins']['get']('TrackChangesEditing');function _0x2fba0c(_0x14e53a,_0x2594d1){_0x4ad2e3['descriptionFactory']['registerDescriptionCallback'](_0x2e87d2=>{if('formatInline'!=_0x2e87d2['type'])return;const {data:_0x39bef0}=_0x2e87d2;return _0x39bef0&&_0x39bef0['commandName']===_0x14e53a?_0x39bef0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x460c18,'*Format:*\x20%0',_0x2594d1)}:{'type':'format','content':o(_0x460c18,'*Remove\x20format:*\x20%0',_0x2594d1)}:void 0x0;});}_0x2fba0c('bold',o(_0x460c18,'FORMAT_BOLD')),_0x2fba0c('italic',o(_0x460c18,'FORMAT_ITALIC')),_0x2fba0c('underline',o(_0x460c18,'FORMAT_UNDERLINE')),_0x2fba0c('code',o(_0x460c18,'FORMAT_CODE')),_0x2fba0c('strikethrough',o(_0x460c18,'FORMAT_STRIKETHROUGH')),_0x2fba0c('subscript',o(_0x460c18,'FORMAT_SUBSCRIPT')),_0x2fba0c('superscript',o(_0x460c18,'FORMAT_SUPERSCRIPT'));}}class O extends _0x15c086{['afterInit'](){const _0x354c8e=this['editor'],_0x361b2d=_0x354c8e['locale'];if(!_0x354c8e['plugins']['has']('BlockQuoteEditing'))return;const _0x29474d=_0x354c8e['plugins']['get']('TrackChangesEditing'),_0x39d0ce=this['editor']['commands']['get']('blockQuote');_0x29474d['enableCommand']('blockQuote',(_0x58f5ad,_0x51f327={})=>{const _0x344c41=this['editor']['model']['document']['selection'],_0x2d25a=_0x51f327&&void 0x0!==_0x51f327['forceValue']?_0x51f327['forceValue']:!_0x39d0ce['value'];let _0x6aceca=[];if(_0x2d25a){const _0x2ab31a=Array['from'](_0x344c41['getSelectedBlocks']())['filter'](_0x246e96=>oo(_0x246e96)||function(_0x4e5108,_0xb4b260){const _0x706f7a=_0xb4b260['checkChild'](_0x4e5108['parent'],'blockQuote'),_0x352af2=_0xb4b260['checkChild'](['$root','blockQuote'],_0x4e5108);return _0x706f7a&&_0x352af2;}(_0x246e96,this['editor']['model']['schema']));_0x6aceca=to(_0x2ab31a,_0x354c8e['model']);}else{const _0x5c2c90=Array['from'](_0x344c41['getSelectedBlocks']())['filter'](_0x4aa710=>oo(_0x4aa710));_0x6aceca=to(_0x5c2c90,_0x354c8e['model']);}_0x354c8e['model']['change'](()=>{for(const _0x46f1d4 of _0x6aceca)_0x29474d['markBlockFormat'](_0x46f1d4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2d25a}]});});}),_0x29474d['descriptionFactory']['registerDescriptionCallback'](_0x1a0512=>{const {data:_0x5c2326}=_0x1a0512;if(_0x5c2326&&'blockQuote'==_0x5c2326['commandName']){const _0x9a5e72=o(_0x361b2d,'ELEMENT_BLOCK_QUOTE');return _0x5c2326['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x361b2d,'*Set\x20format:*\x20%0',_0x9a5e72)}:{'type':'format','content':o(_0x361b2d,'*Remove\x20format:*\x20%0',_0x9a5e72)};}});}}function oo(_0x31de90){return'blockQuote'==_0x31de90['parent']['name'];}class G extends _0x15c086{['afterInit'](){const _0x26c532=this['editor'];_0x26c532['plugins']['has']('CaseChange')&&(_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x15c086{['afterInit'](){const _0xd6c662=this['editor'];_0xd6c662['commands']['get']('ckbox')&&_0xd6c662['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x15c086{['afterInit'](){const _0x50bceb=this['editor'];if(!_0x50bceb['plugins']['has']('CodeBlock'))return;const _0x4d275d=_0x50bceb['plugins']['get']('TrackChangesEditing'),_0x684c04=_0x50bceb['locale'],_0xcca2c9=_0x50bceb['config']['get']('codeBlock')['languages'],_0x55770f=_0x50bceb['commands']['get']('codeBlock');_0x4d275d['enableCommand']('indentCodeBlock'),_0x4d275d['enableCommand']('outdentCodeBlock'),_0x4d275d['enableCommand']('codeBlock',(_0x8cf064,_0x2d8640={})=>{const _0x2b1a15=_0x50bceb['model'],_0x2434fc=_0x50bceb['model']['document']['selection'],_0x173698=_0x2d8640&&void 0x0!==_0x2d8640['forceValue']?_0x2d8640['forceValue']:!_0x55770f['value'];let _0x19e9bb;_0x2d8640['language']||(_0x2d8640['language']=_0xcca2c9[0x0]['language']),_0x19e9bb=_0x173698?Array['from'](_0x2434fc['getSelectedBlocks']())['filter'](_0x3dbe19=>eo(_0x3dbe19)||function(_0x55cf80,_0x188a40){if(_0x55cf80['is']('rootElement')||_0x188a40['isLimit'](_0x55cf80))return!0x1;return _0x188a40['checkChild'](_0x55cf80['parent'],'codeBlock');}(_0x3dbe19,_0x2b1a15['schema'])):Array['from'](_0x2434fc['getSelectedBlocks']())['filter'](_0x262ce9=>eo(_0x262ce9));const _0xe28e09=to(_0x19e9bb,_0x2b1a15);_0x2b1a15['change'](()=>{for(const _0x5e1c08 of _0xe28e09)_0x4d275d['markBlockFormat'](_0x5e1c08,{'commandName':'codeBlock','commandParams':[{..._0x2d8640,'forceValue':_0x173698}],'formatGroupId':'blockName'});});}),(_0x4d275d['descriptionFactory']['registerElementLabel']('codeBlock',_0x7040b4=>o(_0x684c04,'ELEMENT_CODE_BLOCK',_0x7040b4)),_0x4d275d['descriptionFactory']['registerDescriptionCallback'](_0x1575d3=>{if('formatBlock'!=_0x1575d3['type'])return;const _0x1ca6a1=_0x684c04['t'],{data:_0x178e30}=_0x1575d3;if(!_0x178e30||'codeBlock'!=_0x178e30['commandName'])return;const _0x4b8570=_0x178e30['commandParams'][0x0]['language'],_0x5ac2c0=_0x1ca6a1(_0xcca2c9['find'](_0x5d73f1=>_0x5d73f1['language']===_0x4b8570)['label'])['toLowerCase']();return _0x178e30['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x684c04,'*Set\x20format:*\x20%0',o(_0x684c04,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ac2c0+')')}:{'type':'format','content':o(_0x684c04,'*Remove\x20format:*\x20%0',o(_0x684c04,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5b9d04){return'codeBlock'==_0x5b9d04['name'];}class H extends _0x15c086{['afterInit'](){const _0x361ae4=this['editor'];if(!_0x361ae4['plugins']['has']('CommentsEditing'))return;_0x361ae4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5416a0,_0x5e9084,_0x371154){const _0x5df1e6=[];for(const _0x447127 of _0x5e9084['getItems']())_0x447127['hasAttribute'](_0x5416a0)&&_0x5df1e6['push'](_0x371154['createRangeOn'](_0x447127));return _0x5df1e6;}function _e(_0x3ecee3,_0x497817,{showActiveMarker:_0x53f8e6=!0x0}={}){const _0x1f4c0c=_0x3ecee3['plugins']['get']('TrackChangesEditing');return(_0x16bb49,_0x37a22a,_0x5d4d59)=>{if(!_0x5d4d59['consumable']['test'](_0x37a22a['markerRange'],_0x16bb49['name']))return;const _0x256732=_0x37a22a['markerRange']['getWalker'](),_0x243eb8=_0x37a22a['markerRange']['start'],_0x1fcc8d=_0x3ecee3['model']['schema'];let _0x21839a=null,_0x5ac659=null,_0x527a73=!0x1,_0x32b0ce=!0x1;for(const _0x167879 of _0x256732){const _0x355cd8=_0x167879['item'];_0x527a73=_0x527a73||_0x1fcc8d['isContent'](_0x355cd8);const _0x267204=_0x5d4d59['mapper']['toViewElement'](_0x355cd8);if(_0x267204&&_0x267204['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x167879['type']&&(_0x1fcc8d['isBlock'](_0x355cd8)&&!_0x1fcc8d['isLimit'](_0x355cd8)&&(_0x355cd8['nextSibling']||_0x243eb8['isAtEnd']?_0x21839a&&_0x21839a['parent']==_0x355cd8||(_0x21839a=_0x355cd8,_0x3b8203(_0x167879['previousPosition']),_0x32b0ce=!0x0):_0x5ac659=_0x5ac659||_0x167879['previousPosition']));}function _0x3b8203(_0x71f03b){const _0x51b2b2=_0x5d4d59['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x497817}),_0x1f3db8=_0x5d4d59['mapper']['toViewPosition'](_0x71f03b);_0x53f8e6&&_0x1f4c0c['activeMarkers']['includes'](_0x37a22a['markerName'])&&_0x5d4d59['writer']['addClass']('ck-suggestion-marker--active',_0x51b2b2),_0x5d4d59['writer']['insert'](_0x1f3db8,_0x51b2b2),_0x5d4d59['mapper']['bindElementToMarker'](_0x51b2b2,_0x37a22a['markerName']);}_0x527a73||_0x32b0ce||!_0x5ac659||_0x3b8203(_0x5ac659);};}class q extends _0x15c086{static get['requires'](){return[_0x272956];}['init'](){const _0x28e29f=this['editor'],_0x5372cb=_0x28e29f['plugins']['get']('TrackChangesEditing');_0x5372cb['enableCommand']('delete');const _0x56aeac=_0x28e29f['commands']['get']('deleteForward');_0x5372cb['enableCommand']('deleteForward',(_0x250569,_0x1912fa={})=>{const _0x438a40=_0x28e29f['model']['createSelection'](_0x28e29f['model']['document']['selection']);_0x438a40['isCollapsed']&&_0x28e29f['model']['modifySelection'](_0x438a40,{'direction':'forward','unit':_0x1912fa['unit']});const _0x5d9444=_0x438a40['getFirstRange'](),_0x30430c=_0x948f0b['fromRange'](_0x5d9444);let _0x1b2606;_0x250569(_0x1912fa),_0x1b2606='$graveyard'==_0x30430c['root']['rootName']?_0x28e29f['model']['createRange'](_0x5d9444['start']):_0x28e29f['model']['createRange'](_0x30430c['start'],_0x30430c['end']),_0x30430c['detach'](),_0x28e29f['model']['enqueueChange'](_0x56aeac['buffer']['batch'],_0x3d3dde=>{_0x56aeac['buffer']['lock'](),_0x3d3dde['setSelection'](_0x3d3dde['createRange'](_0x1b2606['end'])),_0x56aeac['buffer']['unlock']();});}),_0x28e29f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x28e29f,'merge'),{'priority':'high'}),_0x28e29f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3f6914,_0x15510e,_0x5c038e)=>{_0x5c038e['options']['showSuggestionHighlights']&&_e(_0x28e29f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3f6914,_0x15510e,_0x5c038e);},{'priority':'high'}),_0x28e29f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x6c7b8a,_0x1d8ba5,_0x4907e5)=>{const _0x32794e=_0x4907e5['mapper']['markerNameToElements'](_0x1d8ba5['markerName']);if(_0x32794e){for(const _0x437add of _0x32794e)_0x437add['is']('uiElement')&&(_0x4907e5['mapper']['unbindElementFromMarkerName'](_0x437add,_0x1d8ba5['markerName']),_0x4907e5['writer']['remove'](_0x437add));}},{'priority':'high'});}}class z extends _0x15c086{['afterInit'](){const _0x1b93c9=this['editor'];if(!_0x1b93c9['plugins']['has']('ListEditing'))return;const _0x9d1f74=_0x1b93c9['locale'],_0x339497=_0x1b93c9['plugins']['get']('TrackChangesEditing'),_0x1fcddb=_0x1b93c9['plugins']['has']('TodoListEditing'),_0x4319f4=!!_0x1b93c9['config']['get']('list.multiBlock');function _0x3a3ff7(_0x28c535){return{'type':'format','content':''+o(_0x9d1f74,'*Set\x20format:*\x20%0',_0x28c535)};}function _0x3920de(_0x39021c){return{'type':'format','content':''+o(_0x9d1f74,'*Remove\x20format:*\x20%0',_0x39021c)};}_0x339497['enableDefaultAttributesIntegration']('numberedList'),_0x339497['enableDefaultAttributesIntegration']('bulletedList'),_0x339497['enableDefaultAttributesIntegration']('customNumberedList'),_0x339497['enableDefaultAttributesIntegration']('customBulletedList'),_0x339497['enableDefaultAttributesIntegration']('indentList'),_0x339497['enableDefaultAttributesIntegration']('outdentList'),_0x339497['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x339497['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x339497['registerBlockAttribute']('listItemId'),_0x339497['registerBlockAttribute']('listType'),_0x339497['registerBlockAttribute']('listIndent'),_0x4319f4&&(_0x339497['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x339497['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1fcddb&&(_0x339497['enableDefaultAttributesIntegration']('todoList'),_0x339497['enableDefaultAttributesIntegration']('checkTodoList'),_0x339497['registerBlockAttribute']('todoListChecked'),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x3f2ebf=>{const {data:_0x21b521}=_0x3f2ebf;if(_0x21b521&&'todoListChecked'==_0x21b521['key'])return{'type':'format','content':_0x21b521['newValue']?o(_0x9d1f74,'*Check\x20item*'):o(_0x9d1f74,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x248df6=>{if(_0x248df6['batch']['isUndo'])return!0x1;let _0xcec665=!0x1;const _0x5b94e6=_0x339497['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fa6af=>'todoListChecked'===_0x339497['_getAttributeKey'](_0x4fa6af));for(const _0x7c45ad of _0x5b94e6){'todo'!=_0x7c45ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x339497['_findSuggestions'](_0x7c45ad['getFirstRange'](),'attribute')['find'](_0x1b9aee=>'listType'===_0x339497['_getAttributeKey'](_0x1b9aee['suggestion']))||(_0x248df6['removeMarker'](_0x7c45ad['getFirstMarker']()),_0xcec665=!0x0));}return _0xcec665;})),_0x339497['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x9d1f74,'FORMAT_INDENT'));const _0x253873={'type':'format','content':''};_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x335a46=>{const {data:_0x8a42bb}=_0x335a46;if(!_0x8a42bb||'listType'!=_0x8a42bb['key'])return;let _0x179f87=_0x335a46['head'];for(;_0x179f87;){if(_0x179f87['data']&&(('listStyle'==_0x179f87['data']['key']||'listMarkerStyle'==_0x179f87['data']['key'])&&(_0x179f87['data']['newValue']&&'default'!=_0x179f87['data']['newValue']||'default'!=_0x179f87['data']['oldValue']&&!_0x8a42bb['newValue'])||!_0x4319f4&&_0x179f87['data']['key']==m))return _0x253873;_0x179f87=_0x179f87['next'];}if(null==_0x8a42bb['newValue'])switch(_0x8a42bb['oldValue']){case'bulleted':return _0x3920de(o(_0x9d1f74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3920de(o(_0x9d1f74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3920de(o(_0x9d1f74,'ELEMENT_TODO_LIST'));}switch(_0x8a42bb['newValue']){case'bulleted':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_TODO_LIST'));}}),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x2740dc=>{const {data:_0x3acf10}=_0x2740dc;if(_0x3acf10&&'listIndent'==_0x3acf10['key'])return null==_0x3acf10['newValue']||null==_0x3acf10['oldValue']&&0x0==_0x3acf10['newValue']?_0x253873:void 0x0;}),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0xf4bb59=>{if('attribute'!=_0xf4bb59['type'])return;const {data:_0x10abc9}=_0xf4bb59;if(!_0x10abc9||'listItemId'!=_0x10abc9['key'])return;const _0x2d35cd=le(_0xf4bb59);return'newValue'==_0x2d35cd?{'type':'format','content':o(_0x9d1f74,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2d35cd?{'type':'format','content':o(_0x9d1f74,'*Split:*\x20list\x20item')}:_0x253873;}),_0x1b93c9['model']['document']['registerPostFixer'](_0x26e499=>this['listItemIdFixer'](_0x26e499)),_0x1b93c9['model']['document']['registerPostFixer'](_0xf8713d=>this['noTrackChangesFixer'](_0xf8713d)),_0x1b93c9['model']['document']['registerPostFixer'](_0x467247=>this['assureChains'](_0x467247)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3340c9){if(_0x3340c9['batch']['isUndo']||!_0x3340c9['batch']['isLocal'])return!0x1;let _0x175a99=!0x1;const _0x3b8c59=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x707e67=>_0x707e67['data']&&'listItemId'==_0x707e67['data']['key'])['filter'](_0xd3da7a=>_0xd3da7a['data']['newValue']&&_0xd3da7a['data']['oldValue']);for(const _0x520fd8 of _0x3b8c59)le(_0x520fd8)||(_0x3340c9['removeMarker'](_0x520fd8['getFirstMarker']()),_0x175a99=!0x0);return _0x175a99;}['noTrackChangesFixer'](_0x599f53){if(_0x599f53['batch']['isUndo']||!_0x599f53['batch']['isLocal'])return!0x1;const _0x43b10b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x43b10b['trackChangesCommand']['value'])return!0x1;let _0x1d7223=!0x1;const _0x488ff6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x205b03=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2fe003=>'attribute'==_0x2fe003['type'])['filter'](_0x350698=>_0x488ff6['includes'](_0x350698['attributeKey']));if(0x0==_0x205b03['length'])return _0x1d7223;for(const _0x2cf128 of _0x205b03){const _0x15c044=_0x43b10b['_findSuggestions'](_0x2cf128['range'],'attribute')['filter'](_0x2529a4=>!_0x2529a4['meta']['isNextTo'])['map'](_0x1a670e=>_0x1a670e['suggestion'])['filter'](_0x14d1a5=>{const _0x266892=_0x43b10b['_getAttributeKey'](_0x14d1a5);return _0x488ff6['includes'](_0x266892);});if(_0x15c044['length']){for(const _0x2bcadc of _0x15c044)_0x599f53['removeMarker'](_0x2bcadc['getFirstMarker']());_0x1d7223=!0x0;}}return _0x1d7223;}['assureChains'](_0x4f87fe){if(_0x4f87fe['batch']['isUndo']||!_0x4f87fe['batch']['isLocal'])return!0x1;const _0xdb6400=this['editor']['plugins']['get']('TrackChangesEditing');let _0x24afc4=!0x1;const _0x595371=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x22bd1b of _0xdb6400['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d9d8b=_0xdb6400['_findSuggestions'](_0x22bd1b['getFirstRange'](),'attribute')['map'](_0x239ec0=>_0x239ec0['suggestion'])['filter'](_0x580290=>_0x580290['data']&&_0x595371['includes'](_0x580290['data']['key']));if(!_0x5d9d8b['length'])continue;const _0x1393c3=_0x5d9d8b[0x0]['head']['attributes']['groupId'];if(!_0x5d9d8b['every'](_0x4db98a=>_0x4db98a['attributes']['groupId']===_0x1393c3)){for(const _0x666d34 of _0x5d9d8b)_0x2ec377(_0x666d34,_0x1393c3)&&(_0x24afc4=!0x0);}}return _0x24afc4;function _0x536acf(_0x2eae24,_0x3fe61a){for(const _0x441d8e of _0xdb6400['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1edbee=>'attribute'==_0x1edbee['type']&&_0x1edbee['attributes']['groupId']==_0x2eae24))_0x441d8e['setAttribute']('groupId',_0x3fe61a);}function _0x2ec377(_0x213865,_0x34db90){let _0x11f4c7=_0x213865['head'],_0x5ccbd9=!0x1;for(;_0x11f4c7;)_0x11f4c7['attributes']['groupId']!=_0x34db90&&(_0x536acf(_0x11f4c7['attributes']['groupId'],_0x34db90),_0x11f4c7['setAttribute']('groupId',_0x34db90),_0x5ccbd9=!0x0),_0x11f4c7=_0x11f4c7['next'];return _0x5ccbd9;}}['_supportLegacySuggestions'](){const _0x1db73b=this['editor'],_0x49cf34=_0x1db73b['locale'],_0x5bf134=_0x1db73b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5bf134['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1b9407,_0x2b3576){const _0x2021c7=[];for(let _0x44ad2b of _0x1b9407)_0x44ad2b['start']['nodeAfter']===_0x44ad2b['end']['parent']&&(_0x44ad2b=_0x1db73b['model']['createRange'](_0x1db73b['model']['createPositionAt'](_0x44ad2b['start']['nodeAfter'],0x0))),_0x2021c7['push'](_0x44ad2b);_0x1db73b['model']['change'](_0x401121=>{const _0x4027c0=_0x1db73b['model']['document']['selection'],_0x4926b5=Array['from'](_0x4027c0['getRanges']())['map'](_0x30f910=>_0x948f0b['fromRange'](_0x30f910));_0x401121['setSelection'](_0x2021c7),_0x1db73b['commands']['get'](_0x2b3576['commandName'])['refresh'](),_0x2b3576['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1db73b['execute'](_0x2b3576['commandName'],..._0x2b3576['commandParams']),_0x401121['setSelection'](_0x4926b5);for(const _0x512a9a of _0x4926b5)_0x512a9a['detach']();});}),_0x5bf134['descriptionFactory']['registerElementLabel'](function(_0x3c28fd){const _0x199cd2=!_0x1db73b['model']['schema']['isObject'](_0x3c28fd),_0x5e556f=_0x3c28fd['previousSibling'],_0x3f985b=_0x3c28fd['nextSibling'],_0xa9df96=_0x3c28fd['getAttribute']('listItemId'),_0x1bd253=!_0x5e556f||_0x5e556f['getAttribute']('listItemId')!==_0xa9df96,_0x44aabc=!_0x3f985b||_0x3f985b['getAttribute']('listItemId')!==_0xa9df96;return _0x199cd2&&Boolean(_0xa9df96)&&_0x1bd253&&_0x44aabc;},_0x22a030=>o(_0x49cf34,'ELEMENT_LIST_ITEM',_0x22a030));}['_registerLegacyDescription'](){const _0x346b7c=this['editor'],_0x2c6e8c=_0x346b7c['locale'];function _0x7996f4(_0x2122a6){const _0xdde061=_0x346b7c['commands']['get']('bulletedList')['value'],_0x1487ca=_0x346b7c['commands']['get']('numberedList')['value'];return'numberedList'===_0x2122a6?_0xdde061:_0x1487ca;}_0x346b7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x7d8fa6){if('formatBlock'!=_0x7d8fa6['type'])return;const {data:_0x406d33}=_0x7d8fa6;if(!_0x406d33)return;let _0x2e3de5,_0x3d96eb,_0x2aa7bc,_0x58d991;switch(_0x406d33['commandName']){case'bulletedList':_0x2aa7bc=_0x406d33['commandParams'][0x0]['forceValue'],_0x58d991=_0x7996f4(_0x406d33['commandName']),_0x2e3de5=_0x2aa7bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58d991&&_0x346b7c['config']['get']('list.multiBlock')||(_0x2e3de5='*Change\x20to:*\x20%0'),_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2aa7bc=_0x406d33['commandParams'][0x0]['forceValue'],_0x58d991=_0x7996f4(_0x406d33['commandName']),_0x2e3de5=_0x2aa7bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58d991&&_0x346b7c['config']['get']('list.multiBlock')||(_0x2e3de5='*Change\x20to:*\x20%0'),_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2e3de5='*Indent:*\x20%0',_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2e3de5=function(_0x5b233b){const _0x2720e9=_0x5b233b['getFirstRange']();let _0xb06ce7=_0x2720e9['start']['nodeAfter'];for(;_0xb06ce7&&_0x2720e9['containsItem'](_0xb06ce7);){if(_0xb06ce7['getAttribute']('listIndent')>0x0)return!0x1;_0xb06ce7=_0xb06ce7['nextSibling'];}return!0x0;}(_0x7d8fa6)?o(_0x2c6e8c,'*Format:*\x20remove\x20from\x20%0',o(_0x2c6e8c,function(_0x376fb9){return'ELEMENT_'+_0x376fb9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x7d8fa6))):o(_0x2c6e8c,'*Outdent:*\x20%0',o(_0x2c6e8c,'ELEMENT_LIST_ITEM')),_0x3d96eb={'type':'format','content':_0x2e3de5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x406d33['multipleBlocks']&&(_0x2e3de5='*Merge:*\x20%0',_0x3d96eb={'type':'deletion','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_LIST_ITEM'))});}return _0x3d96eb;});}}function le(_0x9a059d){let _0x28526b=_0x9a059d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x28526b;){const _0x429295=_0x28526b['getAttribute']('listItemId');if(!_0x429295)return!0x1;if(_0x429295==_0x9a059d['data']['newValue'])return'newValue';if(_0x429295==_0x9a059d['data']['oldValue'])return'oldValue';_0x28526b=_0x28526b['previousSibling'];}return!0x1;}class pe extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1a79bb=this['editor']['config']['get']('list.properties'),_0x2cd288=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a79bb['styles']&&(_0x2cd288['enableDefaultAttributesIntegration']('listStyle'),_0x2cd288['registerBlockAttribute']('listStyle')),_0x1a79bb['reversed']&&(_0x2cd288['enableDefaultAttributesIntegration']('listReversed'),_0x2cd288['registerBlockAttribute']('listReversed')),_0x1a79bb['startIndex']&&(_0x2cd288['enableDefaultAttributesIntegration']('listStart'),_0x2cd288['registerBlockAttribute']('listStart'));const _0x19b723={'type':'format','content':''};_0x2cd288['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x21be29=this['editor']['locale'];_0x2cd288['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x21be29,'FORMAT_LIST_REVERSED')),_0x2cd288['descriptionFactory']['registerDescriptionCallback'](_0x245de2=>{const {data:_0x27f83e}=_0x245de2;if(_0x27f83e&&'listReversed'==_0x27f83e['key'])return null==_0x27f83e['newValue']||0x0==_0x27f83e['newValue']&&null==_0x27f83e['oldValue']?_0x19b723:void 0x0;}),_0x2cd288['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x21be29,'FORMAT_LIST_START')),_0x2cd288['descriptionFactory']['registerDescriptionCallback'](_0xae6e6e=>{const {data:_0x25ffbb}=_0xae6e6e;if(_0x25ffbb&&'listStart'==_0x25ffbb['key'])return null==_0x25ffbb['newValue']||0x1==_0x25ffbb['newValue']&&null==_0x25ffbb['oldValue']?_0x19b723:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x51c1ac=>{if(_0x51c1ac['batch']['isUndo'])return!0x1;let _0x54f565=!0x1;const _0x54c7c3=_0x2cd288['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x317207=>{const _0xed1471=_0x2cd288['_getAttributeKey'](_0x317207);return'listStart'==_0xed1471||'listReversed'==_0xed1471;});for(const _0x17219e of _0x54c7c3){const _0x411b67=_0x17219e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x411b67||'customNumbered'==_0x411b67)continue;_0x2cd288['_findSuggestions'](_0x17219e['getFirstRange'](),'attribute')['find'](_0x495e3d=>'listType'==_0x2cd288['_getAttributeKey'](_0x495e3d['suggestion']))||(_0x51c1ac['removeMarker'](_0x17219e['getFirstMarker']()),_0x54f565=!0x0);}return _0x54f565;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x44644a){const _0x129c1e=this['editor']['locale'],{data:_0x469cde}=_0x44644a,_0x581ce4={'type':'format','content':''};if(!_0x469cde||'listStyle'!=_0x469cde['key'])return;if(!_0x469cde['oldValue'])return'default'==_0x469cde['newValue']?_0x581ce4:{'type':'format','content':''+o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['newValue'])))};if(!_0x469cde['newValue']){if('default'==_0x469cde['oldValue'])return _0x581ce4;let _0x169c03=_0x44644a['head'];for(;_0x169c03;){if(_0x169c03['data']&&'listType'==_0x169c03['data']['key']&&_0x169c03['data']['newValue'])return _0x581ce4;_0x169c03=_0x169c03['next'];}return{'type':'format','content':''+o(_0x129c1e,'*Remove\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['oldValue'])))};}if('default'!=_0x469cde['newValue'])return{'type':'format','content':''+o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['newValue'])))};let _0x973b53=_0x44644a['head'];for(;_0x973b53;){if(_0x973b53['data']&&'listType'==_0x973b53['data']['key']&&_0x973b53['data']['newValue']&&_0x973b53['data']['oldValue'])return _0x581ce4;_0x973b53=_0x973b53['next'];}return{'type':'format','content':o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,'ELEMENT_'+_0x44644a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x17773f=this['editor'],_0x4d41ad=_0x17773f['locale'];_0x17773f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492886=>{if('formatBlock'!=_0x492886['type'])return;const {data:_0xf45c99}=_0x492886;if(!_0xf45c99)return;let _0x296cf1,_0x360449;switch(_0xf45c99['commandName']){case'listStyle':_0x296cf1='*Change\x20to:*\x20%0',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1,o(_0x4d41ad,this['_getTranslationKeyForListStyle'](_0xf45c99['commandParams'][0x0]['type'])))};break;case'listReversed':_0x296cf1=_0xf45c99['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1)};break;case'listStart':_0x296cf1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1,_0xf45c99['commandParams'][0x0]['startIndex'])};}return _0x360449;});}['_getTranslationKeyForListStyle'](_0x4f0f61){return'ELEMENT_'+function(_0xd60820){if(ye['includes'](_0xd60820))return'bulleted';if(he['includes'](_0xd60820))return'numbered';return null;}(_0x4f0f61)['toUpperCase']()+'_LIST_'+_0x4f0f61['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x15c086{static get['requires'](){return[_0x331ec9];}['init'](){const _0x145bdc=this['editor'],_0x26dd5f=_0x145bdc['plugins']['get']('TrackChangesEditing'),_0x1bbfd6=_0x145bdc['commands']['get']('enter');_0x26dd5f['enableCommand']('enter',()=>{_0x145bdc['model']['change'](_0x3e2e5f=>{const _0x2f8f6f=_0x145bdc['model']['document']['selection'],_0x1412ce=_0x2f8f6f['getFirstPosition'](),_0x4a05b7=_0x948f0b['fromRange'](_0x2f8f6f['getFirstRange']());if(_0x1bbfd6['enterBlock'](_0x3e2e5f)){const _0x398739=_0x145bdc['model']['createPositionAt'](_0x1412ce['parent']['nextSibling'],0x0),_0x41a5cf=_0x3e2e5f['createRange'](_0x1412ce,_0x398739);_0x26dd5f['markInsertion'](_0x41a5cf);}else _0x3e2e5f['setSelection'](_0x3e2e5f['createRange'](_0x4a05b7['end']));_0x4a05b7['detach'](),_0x1bbfd6['fire']('afterExecute',{'writer':_0x3e2e5f});});}),_0x145bdc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x145bdc,'split'),{'priority':'high'}),_0x145bdc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x513bff,_0x51ce3d,_0x564e09)=>{const _0x5857fd=_0x564e09['mapper']['markerNameToElements'](_0x51ce3d['markerName']);if(_0x5857fd){for(const _0x5151d4 of _0x5857fd)_0x5151d4['hasClass']('ck-suggestion-marker-split')&&(_0x564e09['mapper']['unbindElementFromMarkerName'](_0x5151d4,_0x51ce3d['markerName']),_0x564e09['writer']['remove'](_0x5151d4));}},{'priority':'high'}),_0x145bdc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x120bdb,_0x13d002,_0x367812)=>{_0x367812['options']['showSuggestionHighlights']&&_e(_0x145bdc,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x120bdb,_0x13d002,_0x367812);},{'priority':'high'});}}class J extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x17a7e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x17a7e3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x17a7e3['enableCommand']('findNext'),_0x17a7e3['enableCommand']('findPrevious'),_0x17a7e3['enableCommand']('replace'),_0x17a7e3['enableCommand']('replaceAll');}['handleFindCommand'](_0x36e7be,_0x186b07,_0x2f9df2={}){const _0x40c6fe=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x36e7be(_0x58718c=>{let _0x28f1f3=('string'==typeof _0x186b07?_0x40c6fe['findByTextCallback'](_0x186b07,_0x2f9df2):_0x186b07)(_0x58718c);Array['isArray'](_0x28f1f3)&&(_0x28f1f3={'results':_0x28f1f3,'searchText':'string'==typeof _0x186b07?_0x186b07:''});const _0x522636=_0x28f1f3['results']['filter'](_0x1f0f77=>!0x1===this['_isInDeletionRange'](_0x1f0f77,_0x58718c['item']));return{..._0x28f1f3,'results':_0x522636};},_0x2f9df2);}['_isInDeletionRange'](_0x104728,_0x15f4f7){const _0x5b3e6f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15f4f7,_0x104728['start']),this['editor']['model']['createPositionAt'](_0x15f4f7,_0x104728['end']));for(const _0x380b52 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5b3e6f['getIntersection'](_0x380b52['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 _0x15c086{['afterInit'](){const _0x8be507=this['editor']['locale'],_0x31dda8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3584e1,commandName:_0x20b10b}of ro)this['editor']['plugins']['has'](_0x3584e1)&&(_0x31dda8['enableDefaultAttributesIntegration'](_0x20b10b),_0x31dda8['registerInlineAttribute'](_0x20b10b));_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x8be507,'FORMAT_FONT_SIZE')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x8be507,'FORMAT_FONT_FAMILY')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x8be507,'FORMAT_FONT_COLOR')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x8be507,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd63c5d=this['editor'],_0x3a1b78=_0xd63c5d['locale'];_0xd63c5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24e15c=>{const _0x5cc437=_0x3a1b78['t'];if('formatInline'!=_0x24e15c['type'])return;const {data:_0x12d6c8}=_0x24e15c;if(null!=_0x12d6c8){if('fontSize'==_0x12d6c8['commandName']){const _0x2abbe4=_0x12d6c8['commandParams'][0x0]['value'];if(_0x2abbe4){const _0x2dfee5=_0x5cc437(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4315aa=>_0x4315aa['model']==_0x2abbe4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20size:*\x20%0',_0x2dfee5)};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x12d6c8['commandName']){const _0x160dcd=_0x12d6c8['commandParams'][0x0]['value'];return _0x160dcd?{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20family:*\x20%0',_0x160dcd)}:{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20family*')};}if('fontColor'==_0x12d6c8['commandName']){const _0xc45c32=_0x12d6c8['commandParams'][0x0]['value'];if(_0xc45c32){const _0xea44c3=_0x4c81bc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x57e583=>_0x57e583['model']==_0xc45c32);let _0x120941=_0xc45c32,_0x4eabed='';return _0xea44c3&&(_0x120941=_0xea44c3['label'],_0x4eabed=_0x5cc437(_0x120941)['toLowerCase']()),{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20color:*\x20%0',_0x4eabed)['trim'](),'color':{'value':_0xc45c32,'title':_0x4eabed||_0x120941}};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x12d6c8['commandName']){const _0x15d6c5=_0x12d6c8['commandParams'][0x0]['value'];if(_0x15d6c5){const _0x155ff0=_0x4c81bc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x589f71=>_0x589f71['model']==_0x15d6c5);let _0x5c993c=_0x15d6c5,_0x3ebc02='';return _0x155ff0&&(_0x5c993c=_0x155ff0['label'],_0x3ebc02=_0x5cc437(_0x5c993c)['toLowerCase']()),{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ebc02)['trim'](),'color':{'value':_0x15d6c5,'title':_0x3ebc02||_0x5c993c}};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x15c086{['afterInit'](){const _0x3f3f4e=this['editor'],_0x3ea6b5=_0x3f3f4e['plugins']['get']('TrackChangesEditing'),_0xce74f9=_0x3f3f4e['commands']['get']('copyFormat'),_0x5c10e7=_0x3f3f4e['commands']['get']('pasteFormat');_0xce74f9&&_0x5c10e7&&(_0x3ea6b5['enableDefaultAttributesIntegration']('pasteFormat'),_0x3ea6b5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x52b5b6=this['editor'],_0x33eea8=_0x52b5b6['locale'];_0x52b5b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52688d=>{if('formatBlock'!=_0x52688d['type']&&'formatInline'!=_0x52688d['type'])return;const {data:_0x134232}=_0x52688d;if(_0x134232&&'pasteFormat'===_0x134232['commandName']){const _0x137e02=[],_0x9d6696=_0x134232['commandParams'][0x0];for(const [_0x2c22eb,_0x3840d6]of Object['entries'](_0x9d6696))_0x137e02['push'](so(_0x52b5b6,_0x2c22eb,_0x3840d6));return _0x137e02['length']?{'type':'format','content':o(_0x33eea8,'*Set\x20format\x20to:*\x20%0',_0x137e02['join'](',\x20'))}:{'type':'format','content':o(_0x33eea8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x44b419,_0x45b78e,_0x19cdec){const _0x571946=_0x44b419['locale']['t'],_0x417efc=_0x45b78e['split'](/(?=[A-Z])/)['join']('\x20'),_0x154dbf=_0x571946(_0x417efc['charAt'](0x0)['toUpperCase']()+_0x417efc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x19cdec)return _0x154dbf;if('fontColor'===_0x45b78e||'fontBackgroundColor'===_0x45b78e){const _0x57234e=_0x4c81bc(_0x44b419['config']['get']('fontColor.colors'))['find'](_0x1fd8e5=>_0x1fd8e5['model']==_0x19cdec);return _0x154dbf+'\x20('+(_0x57234e?_0x571946(_0x57234e['label'])['toLowerCase']():_0x19cdec)+')';}if('fontSize'===_0x45b78e&&isNaN(parseFloat(_0x19cdec))){const _0x3e1540=_0x44b419['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x44b419['config']['get']('fontSize.options'))['find'](_0x5c975b=>_0x5c975b['model']==_0x19cdec);return _0x154dbf+'\x20('+(_0x3e1540?_0x571946(_0x3e1540['title'])['toLowerCase']():_0x19cdec)+')';}return _0x154dbf+'\x20('+_0x19cdec+')';}class Y extends _0x15c086{['_headingOptions'];['afterInit'](){const _0x107cb1=this['editor'];if(!_0x107cb1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x107cb1['config']['get']('heading.options');const _0x2b622e=_0x107cb1['locale'],_0x24572c=_0x107cb1['plugins']['get']('TrackChangesEditing');_0x24572c['enableDefaultAttributesIntegration']('heading');for(const _0x34a234 of this['_headingOptions'])'paragraph'!=_0x34a234['model']&&_0x24572c['descriptionFactory']['registerElementLabel'](_0x34a234['model'],_0x35a209=>{const _0x319682=this['_getHeadingLevel'](_0x34a234['model']);return null!==_0x319682?_0x21dbfe(_0x35a209,_0x319682):_0x4c3ade(_0x35a209,_0x34a234['title']);});function _0x21dbfe(_0x5bff93,_0x570d08){return o(_0x2b622e,'ELEMENT_HEADING',[_0x5bff93,_0x570d08]);}function _0x4c3ade(_0x3ed080,_0x357946){return o(_0x2b622e,'ELEMENT_HEADING_CUSTOM',[_0x3ed080,_0x357946]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x551f85=this['editor'],_0x2a86a7=_0x551f85['locale'];function _0x1a5723(_0x3e3309,_0x501479){return o(_0x2a86a7,'ELEMENT_HEADING_CUSTOM',[_0x3e3309,_0x501479]);}_0x551f85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb43243=>{if('formatBlock'!=_0xb43243['type'])return;const {data:_0x3c4386}=_0xb43243;if(_0x3c4386&&'heading'==_0x3c4386['commandName']){const _0x7fd84c=_0x3c4386['commandParams'][0x0]['value'],_0x35b88b=this['_getHeadingLevel'](_0x7fd84c);if(null!==_0x35b88b)return{'type':'format','content':o(_0x2a86a7,'*Change\x20to:*\x20%0',(_0x4092dc=0x1,_0x54de5e=_0x35b88b,o(_0x2a86a7,'ELEMENT_HEADING',[_0x4092dc,_0x54de5e])))};const _0xb5ce56=this['_headingOptions']['find'](_0x58ab57=>_0x58ab57['model']===_0x7fd84c)['title'];return{'type':'format','content':o(_0x2a86a7,'*Change\x20to:*\x20%0',_0x1a5723(0x1,_0xb5ce56))};}var _0x4092dc,_0x54de5e;});}['_getHeadingLevel'](_0x4a0462){const _0x557519=_0x4a0462['match'](/^heading(\d+)/);if(_0x557519)return _0x557519[0x1];const _0x11f35e=this['_headingOptions']?.['find'](_0x3535b1=>_0x3535b1['model']==_0x4a0462);if(_0x11f35e&&_0x11f35e['view']){const _0x18738b=_0x11f35e['view'],_0x1cd260=(_0x18738b['name']??_0x18738b)['match'](/^h(\d+)/);if(_0x1cd260)return _0x1cd260[0x1];}return null;}}class Z extends _0x15c086{['afterInit'](){const _0x4f57cd=this['editor'];if(!_0x4f57cd['plugins']['has']('HighlightEditing'))return;const _0x5462e8=_0x4f57cd['plugins']['get']('TrackChangesEditing'),_0x3c4090=_0x4f57cd['locale'];_0x5462e8['enableDefaultAttributesIntegration']('highlight'),_0x5462e8['registerInlineAttribute']('highlight'),_0x5462e8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3c4090,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4664f3=this['editor'],_0x1b860d=_0x4664f3['locale'];_0x4664f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x104c96=>{if('formatInline'!=_0x104c96['type'])return;const {data:_0x4d2e41}=_0x104c96;if(_0x4d2e41&&'highlight'==_0x4d2e41['commandName']){const _0x14a355=_0x1b860d['t'],_0x311bd3=_0x4d2e41['commandParams'][0x0]['value'];if(_0x311bd3){const _0x3dd9d=_0x4664f3['config']['get']('highlight.options')['find'](_0x2c0c35=>_0x2c0c35['model']==_0x311bd3),_0x346f26=_0x14a355(_0x3dd9d['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b860d,'*Set\x20highlight:*\x20%0',_0x346f26),'color':{'value':_0x3dd9d['color'],'title':_0x3dd9d['title']}};}return{'type':'format','content':o(_0x1b860d,'*Remove\x20highlight*',o(_0x1b860d,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x15c086{['afterInit'](){const _0x150f8f=this['editor'];if(!_0x150f8f['plugins']['has']('HorizontalLineEditing'))return;_0x150f8f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa87649=_0x150f8f['plugins']['get']('TrackChangesEditing'),_0x4dfa5a=_0x150f8f['locale'];_0xa87649['descriptionFactory']['registerElementLabel']('horizontalLine',_0x112724=>o(_0x4dfa5a,'ELEMENT_HORIZONTAL_LINE',_0x112724)),_0x150f8f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xa64e80,{writer:_0x2580ac,options:_0x46c142})=>{if(!_0x46c142['showSuggestionHighlights'])return null;const _0x29281d=_0x2580ac['createContainerElement']('div'),_0x4e2702=_0x2580ac['createEmptyElement']('hr');return _0x2580ac['addClass']('ck-horizontal-line',_0x29281d),_0x2580ac['insert'](_0x2580ac['createPositionAt'](_0x29281d,0x0),_0x4e2702),_0x29281d;},'converterPriority':'high'});}}class et extends _0x15c086{['afterInit'](){const _0x5507ac=this['editor'];if(!_0x5507ac['plugins']['has']('HtmlEmbed'))return;const _0x5413ee=_0x5507ac['plugins']['get']('TrackChangesEditing'),_0x3edce3=_0x5507ac['locale'];_0x5413ee['descriptionFactory']['registerElementLabel']('rawHtml',_0x58ae99=>o(_0x3edce3,'ELEMENT_HTML_EMBED',_0x58ae99)),_0x5413ee['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5413ee['registerBlockAttribute']('value'),_0x5413ee['descriptionFactory']['registerDescriptionCallback'](_0x5620c4=>{if('attribute'!=_0x5620c4['type'])return;const {data:_0x13593f}=_0x5620c4;if(_0x13593f&&'value'==_0x13593f['key']&&_0x5620c4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x553fb0=o(_0x3edce3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3edce3,'*Change\x20%0\x20content*',_0x553fb0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdb2974=this['editor'],_0x2faa40=_0xdb2974['locale'];_0xdb2974['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2af0e1=>{if('formatBlock'!=_0x2af0e1['type'])return;const {data:_0x52a83f}=_0x2af0e1;if(_0x52a83f&&'htmlEmbed'==_0x52a83f['commandName']){const _0x238aea=o(_0x2faa40,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2faa40,'*Change\x20%0\x20content*',_0x238aea)};}});}}class it extends _0x15c086{['afterInit'](){const _0x31b339=this['editor'];if(!_0x31b339['plugins']['has']('ImageEditing'))return;const _0x507c92=_0x31b339['plugins']['get']('TrackChangesEditing'),_0xcc3710=_0x31b339['plugins']['get']('ImageUtils'),_0x1813da=_0x31b339['locale'];_0x507c92['enableCommand']('insertImage'),_0x507c92['descriptionFactory']['registerElementLabel']('imageBlock',_0x5a25d3=>o(_0x1813da,'ELEMENT_IMAGE',_0x5a25d3)),_0x507c92['descriptionFactory']['registerElementLabel']('imageInline',_0x2baad9=>o(_0x1813da,'ELEMENT_INLINE_IMAGE',_0x2baad9)),_0x507c92['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1813da,'ELEMENT_CAPTION')),_0x31b339['plugins']['has']('ImageUploadEditing')&&_0x507c92['enableCommand']('uploadImage'),_0x31b339['plugins']['has']('ImageBlockEditing')&&_0x31b339['plugins']['has']('ImageInlineEditing')&&(_0x507c92['enableCommand']('imageTypeInline',(_0x3ef9c7,_0x1fb237)=>{const _0x383ca2=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']);_0x31b339['model']['change'](()=>{_0x507c92['markBlockFormat'](_0x383ca2,{'commandName':'imageTypeInline','commandParams':[_0x1fb237]},[],'convertBlockImageToInline');});}),_0x507c92['enableCommand']('imageTypeBlock',(_0x569b05,_0x57f567)=>{_0x31b339['model']['change'](_0x108300=>{let _0x595c94=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x4a2159=_0x108300['createRangeOn'](_0x595c94);const _0x4d4cfa=_0x5337e8['fromPosition'](_0x4a2159['start'],'toPrevious'),_0x335d66=_0x5337e8['fromPosition'](_0x4a2159['end'],'toNext');_0x507c92['forceDefaultExecution'](()=>_0x569b05(_0x57f567)),_0x595c94=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x4a2159=_0x108300['createRangeOn'](_0x595c94);const _0xaecba0=_0x108300['createRange'](_0x4d4cfa,_0x335d66);_0x4d4cfa['detach'](),_0x335d66['detach'](),_0x507c92['markBlockFormat'](_0x595c94,{'commandName':'imageTypeInline','commandParams':[_0x57f567]},[],'convertInlineImageToBlock'),_0xaecba0['start']['isBefore'](_0x4a2159['start'])&&_0x507c92['markInsertion'](_0x108300['createRange'](_0xaecba0['start'],_0x4a2159['start']),'convertInlineImageToBlock'),_0x4a2159['end']['isBefore'](_0xaecba0['end'])&&_0x507c92['markInsertion'](_0x108300['createRange'](_0x4a2159['end'],_0xaecba0['end']),'convertInlineImageToBlock');});}),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x507c92['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x54d704])=>{const _0x24236b=_0x507c92['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x21b50f=_0x54d704['start'],_0x57acdd=_0x54d704['end'];const _0x5153fc=_0x31b339['model']['schema']['getNearestSelectionRange'](_0x21b50f,'backward'),_0x10135a=_0x31b339['model']['schema']['getNearestSelectionRange'](_0x57acdd,'forward');_0x5153fc['isCollapsed']&&(_0x21b50f=_0x5153fc['start']),_0x10135a['isCollapsed']&&(_0x57acdd=_0x10135a['end']),_0x24236b([_0x31b339['model']['createRange'](_0x21b50f,_0x57acdd)]);}),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x689873),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x689873)),_0x31b339['plugins']['has']('ImageCaptionEditing')&&(_0x507c92['enableCommand']('toggleImageCaption',(_0x196da3,_0x3d2d93)=>{const _0xfe7e52=_0x31b339['plugins']['get']('ImageCaptionUtils');let _0x3ddb79=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x603b79=_0xfe7e52['getCaptionFromImageModelElement'](_0x3ddb79);_0x31b339['model']['change'](()=>{if(_0x603b79)return void _0x507c92['markDeletion'](_0x31b339['model']['createRangeOn'](_0x603b79));const _0x36f62e=_0xcc3710['isBlockImage'](_0x3ddb79);_0x196da3(_0x3d2d93),_0x3ddb79=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x603b79=_0xfe7e52['getCaptionFromImageModelElement'](_0x3ddb79),_0x507c92['markInsertion'](_0x31b339['model']['createRangeOn'](_0x603b79),_0x36f62e?null:'imageCaption');});}),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x689873));const _0x4bca0a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2769db(_0x939b51,_0x194896){const _0x3e49b3=_0x4bca0a['findIndex'](({type:_0x2071be,subType:_0x49023c})=>_0x939b51['type']==_0x2071be&&_0x939b51['subType']==_0x49023c),_0x226455=_0x4bca0a['findIndex'](({type:_0x249dfd,subType:_0x22f256})=>_0x194896['type']==_0x249dfd&&_0x194896['subType']==_0x22f256);if(_0x3e49b3<0x0||_0x226455<0x0)return!0x1;const _0x369fb4=_0x939b51['getFirstRange'](),_0x262798=_0x194896['getFirstRange']();if((0x0==_0x3e49b3||0x1==_0x3e49b3)&&0x2==_0x226455&&_0x369fb4['isIntersecting'](_0x262798))return!0x0;if(0x2==_0x3e49b3&&0x3==_0x226455){const _0x5b368b=_0x507c92['_findSuggestions'](_0x369fb4,'insertion')['filter'](({suggestion:_0x2c4bd8,meta:_0xc988dd})=>_0xc988dd['isOwn']&&'convertInlineImageToBlock'==_0x2c4bd8['subType']);if(_0x5b368b['length']>0x1&&_0x262798['end']['isEqual'](_0x369fb4['start']))return!0x0;if(0x1==_0x5b368b['length']&&(_0x369fb4['start']['isEqual'](_0x262798['end'])||_0x369fb4['end']['isEqual'](_0x262798['start'])))return!0x0;}if(0x3==_0x3e49b3&&0x3==_0x226455&&_0x369fb4['start']['isBefore'](_0x262798['start'])){const _0x13b6a1=_0x369fb4['end']['nodeAfter'],_0x2bf691=_0x262798['start']['nodeBefore'];return _0xcc3710['isBlockImage'](_0x13b6a1)&&_0x13b6a1===_0x2bf691;}return!0x1;}function _0x689873(_0x26e5ce,_0x2a0430){return _0x2769db(_0x26e5ce,_0x2a0430)?[_0x26e5ce,_0x2a0430]:_0x2769db(_0x2a0430,_0x26e5ce)?[_0x2a0430,_0x26e5ce]:null;}_0x31b339['plugins']['has']('ImageResize')&&(_0x507c92['enableDefaultAttributesIntegration']('resizeImage'),_0x507c92['registerBlockAttribute']('resizedWidth'),_0x507c92['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1813da,'FORMAT_IMAGE_SIZE'))),_0x31b339['plugins']['has']('ImageTextAlternativeEditing')&&(_0x507c92['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x507c92['registerBlockAttribute']('alt')),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x218c73=>{if(!!_0x4bca0a['find'](({type:_0x461f49,subType:_0x18a8f2})=>_0x218c73['type']==_0x461f49&&_0x218c73['subType']==_0x18a8f2))return _0x218c73['previous']?{}:void 0x0;}),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x1eaa55=>{if('insertion'==_0x1eaa55['type']||'deletion'==_0x1eaa55['type']){const _0x17ba4e=_0x1eaa55['getContainedElement']();if(_0x17ba4e&&_0x17ba4e['is']('element','caption'))return{'type':'insertion'==_0x1eaa55['type']?'addObject':'removeObject','element':_0x17ba4e,'quantity':0x1};}}),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x11bc7b=>'formatBlock'==_0x11bc7b['type']&&'convertInlineImageToBlock'==_0x11bc7b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x11bc7b['type']&&'convertBlockImageToInline'==_0x11bc7b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x42e072=>{if('attribute'!=_0x42e072['type'])return;const {data:_0x4c8317}=_0x42e072;if(!_0x4c8317||'alt'!=_0x4c8317['key'])return;const _0x46be88=_0x4c8317['newValue'];return _0x46be88?{'type':'format','content':o(_0x1813da,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x46be88+'\x22')}:{'type':'format','content':o(_0x1813da,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166dd4=this['editor'],_0x1103c9=_0x166dd4['locale'];_0x166dd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d3e08=>{if('formatBlock'!=_0x6d3e08['type']&&'formatInline'!=_0x6d3e08['type'])return;const {data:_0x366bf1}=_0x6d3e08;if(_0x366bf1){if('imageTextAlternative'==_0x366bf1['commandName']){const _0x1f661f=_0x366bf1['commandParams'][0x0]['newValue'];return _0x1f661f?{'type':'format','content':o(_0x1103c9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1f661f+'\x22')}:{'type':'format','content':o(_0x1103c9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x366bf1['commandName']){const _0x257c6f=_0x366bf1['commandParams'][0x0]['width'];return _0x257c6f?{'type':'format','content':o(_0x1103c9,'*Set\x20image\x20width:*\x20%0',_0x257c6f)}:{'type':'format','content':o(_0x1103c9,'*Reset\x20image\x20width*')};}}});}}class st extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1edf4f=this['editor']['locale'],_0x661499=this['editor']['plugins']['get']('TrackChangesEditing');_0x661499['enableDefaultAttributesIntegration']('replaceImageSource'),_0x661499['registerBlockAttribute']('src'),_0x661499['descriptionFactory']['registerDescriptionCallback'](_0x2bbf5e=>{if('attribute'!=_0x2bbf5e['type'])return;const {data:_0x9b951a}=_0x2bbf5e;return _0x9b951a&&'src'==_0x9b951a['key']?_0x9b951a['newValue']&&_0x9b951a['oldValue']?{'type':'format','content':o(_0x1edf4f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b11d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5b11d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5b11d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54179e=this['editor'],_0x22054e=_0x54179e['locale'];_0x54179e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x388ea7=>{if('formatBlock'!=_0x388ea7['type']&&'formatInline'!=_0x388ea7['type'])return;const {data:_0x3a4cae}=_0x388ea7;if(!_0x3a4cae||'replaceImageSource'!=_0x3a4cae['commandName'])return;return{'type':'format','content':o(_0x22054e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x15c086{['afterInit'](){const _0x352768=this['editor'];if(!_0x352768['plugins']['has']('ImageStyleEditing'))return;const _0x42fd59=_0x352768['plugins']['get']('TrackChangesEditing'),_0x2c26fa=_0x352768['plugins']['get']('ImageUtils'),_0x28a5f0={};_0x42fd59['enableCommand']('imageStyle',(_0x11fe1d,_0x7f1bbb)=>{const _0x5e7759=_0x352768['plugins']['get']('Users')['me'],_0x2a436a=_0x352768['commands']['get']('imageStyle');let _0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),_0x3a4d75=_0x352768['model']['createRangeOn'](_0x3abbf2),_0xcd7e6a=_0x2a436a['value'];if(_0xcd7e6a==_0x7f1bbb['value'])return;const _0x2cb152={'commandName':'imageStyle','commandParams':[_0x7f1bbb],'formatGroupId':_0x27f732()};_0x352768['model']['change'](()=>{if(_0x42fd59['getSuggestions']()['filter'](_0x120ec1=>_0x120ec1['isInContent']&&_0x5e7759==_0x120ec1['author']&&('formatBlock'==_0x120ec1['type']||'formatInline'==_0x120ec1['type'])&&('imageStylePreApply'==_0x120ec1['subType']||'imageStylePostApply'==_0x120ec1['subType'])&&_0x120ec1['getFirstRange']()['isEqual'](_0x3a4d75))['forEach'](_0x380297=>_0x42fd59['discardSuggestion'](_0x380297['head'])),_0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),_0x3a4d75=_0x352768['model']['createRangeOn'](_0x3abbf2),_0x2a436a['refresh'](),_0x352768['commands']['get']('imageTypeInline')['refresh'](),_0x352768['commands']['get']('imageTypeBlock')['refresh'](),_0xcd7e6a=_0x2a436a['value'],_0xcd7e6a!=_0x7f1bbb['value'])return _0x2c26fa['isInlineImage'](_0x3abbf2)&&_0x2a436a['shouldConvertImageType'](_0x7f1bbb['value'],_0x3abbf2)?(_0x11fe1d({..._0x7f1bbb,'setImageSizes':!0x1}),_0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),void _0x42fd59['markBlockFormat'](_0x3abbf2,{..._0x2cb152,'commandReversedParams':[{'value':_0xcd7e6a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c26fa['isBlockImage'](_0x3abbf2)?_0x42fd59['markBlockFormat'](_0x3abbf2,_0x2cb152,[],'imageStylePostApply'):_0x42fd59['markInlineFormat'](_0x3a4d75,_0x2cb152,'imageStylePostApply'));});});for(const _0xa5d8ca of _0x352768['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x28a5f0[_0xa5d8ca['name']]=_0xa5d8ca['title']['toLowerCase']();_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x546f57])=>{_0x2c26fa['setImageNaturalSizeAttributes'](_0x546f57['getContainedElement']());}),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2afec7,_0x5f1574)=>{_0x42fd59['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2afec7,{'commandName':_0x5f1574['commandName'],'commandParams':_0x5f1574['commandReversedParams']});}),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4362ab,_0x3fcf30){if(_0x20fcc8(_0x4362ab,_0x3fcf30))return[_0x4362ab,_0x3fcf30];if(_0x20fcc8(_0x3fcf30,_0x4362ab))return[_0x3fcf30,_0x4362ab];return null;});const _0xb3ad41=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20fcc8(_0x18ca42,_0x27297a){const _0x541dd3=_0xb3ad41['findIndex'](({type:_0x3d2864,subType:_0x5a5a43})=>_0x18ca42['type']==_0x3d2864&&_0x18ca42['subType']==_0x5a5a43),_0x3510a0=_0xb3ad41['findIndex'](({type:_0x1f8674,subType:_0x4b27ce})=>_0x27297a['type']==_0x1f8674&&_0x27297a['subType']==_0x4b27ce);if(_0x541dd3<0x0||_0x3510a0<0x0)return!0x1;const _0x3f8f28=_0x18ca42['getFirstRange'](),_0x58d3ef=_0x27297a['getFirstRange']();if((0x0==_0x541dd3||0x1==_0x541dd3)&&0x2==_0x3510a0&&_0x3f8f28['isIntersecting'](_0x58d3ef))return!0x0;if(0x2==_0x541dd3&&0x3==_0x3510a0){const _0x451c46=_0x42fd59['_findSuggestions'](_0x3f8f28,'insertion')['filter'](({suggestion:_0x52bf23,meta:_0x3f07a4})=>_0x3f07a4['isOwn']&&'convertInlineImageToBlock'==_0x52bf23['subType']);if(_0x451c46['length']>0x1&&_0x58d3ef['end']['isEqual'](_0x3f8f28['start']))return!0x0;if(0x1==_0x451c46['length']&&(_0x3f8f28['start']['isEqual'](_0x58d3ef['end'])||_0x3f8f28['end']['isEqual'](_0x58d3ef['start'])))return!0x0;}if(0x3==_0x541dd3&&0x3==_0x3510a0&&_0x3f8f28['start']['isBefore'](_0x58d3ef['start'])){const _0x503b70=_0x3f8f28['end']['nodeAfter'],_0x52ea17=_0x58d3ef['start']['nodeBefore'];return _0x2c26fa['isBlockImage'](_0x503b70)&&_0x503b70===_0x52ea17;}return!0x1;}_0x352768['model']['document']['registerPostFixer'](()=>{let _0xeeaf2a=!0x1;const _0x101236=Array['from'](_0x352768['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1feacf,data:_0x2de0b3}of _0x101236){const {group:_0x2d34ec,type:_0x38b77f,subType:_0x531f5a,id:_0x2e5f27}=_0x42fd59['_splitMarkerName'](_0x1feacf);if('suggestion'==_0x2d34ec&&_0x42fd59['hasSuggestion'](_0x2e5f27)){if('formatBlock'==_0x38b77f&&('imageStylePreApply'==_0x531f5a||'imageStylePostApply'==_0x531f5a)){const _0x1961d2=_0x42fd59['getSuggestion'](_0x2e5f27);if(_0x2de0b3['newRange']){const _0x1463fb=_0x1961d2['getFirstRange']()['getContainedElement']();if(_0x2c26fa['isBlockImage'](_0x1463fb))continue;_0x42fd59['discardSuggestion'](_0x1961d2),_0xeeaf2a=!0x0;}}if('insertion'==_0x38b77f&&'imageCaption'==_0x531f5a&&!_0x2de0b3['newRange']){const _0x1e9813=_0x42fd59['getSuggestion'](_0x2e5f27);_0x1e9813['next']&&_0x1e9813['next']['isInContent']&&(_0x42fd59['discardSuggestion'](_0x1e9813['next']),_0xeeaf2a=!0x0);}}}return _0xeeaf2a;}),this['_registerLegacyDescription'](_0x28a5f0);}['_registerLegacyDescription'](_0x154d95){const _0x5565b9=this['editor'],_0x1c0805=_0x5565b9['locale'];_0x5565b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e2c7c=>{if('formatBlock'!=_0x3e2c7c['type']&&'formatInline'!=_0x3e2c7c['type'])return;const {data:_0x612bfa}=_0x3e2c7c;if(!_0x612bfa||'imageStyle'!=_0x612bfa['commandName'])return;const _0xb45156=_0x612bfa['commandParams'][0x0]['value'];return _0x5e3cb8('side'===_0xb45156?o(_0x1c0805,'FORMAT_SIDE_IMAGE'):_0x154d95[_0xb45156]||_0xb45156);function _0x5e3cb8(_0x4aa193){return{'type':'format','content':o(_0x1c0805,'*Format:*\x20%0',_0x4aa193)};}});}}class ot extends _0x15c086{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x59fbd1){super(_0x59fbd1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4edce5=this['editor'],_0x3033a7=_0x4edce5['commands']['get']('importWord'),_0x9cbf10=_0x4edce5['commands']['get']('trackChanges');_0x3033a7&&(_0x3033a7['on']('execute',(_0x520a8c,[,_0x3b826b])=>{this['_trackChangesValueDuringImport']=_0x9cbf10['value'],_0x3b826b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3033a7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3033a7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x9cbf10['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4edce5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x423549,_0x52ae7b){const {suggestions:_0x43e8da}=_0x52ae7b,_0x161e82=this['editor']['commands']['get']('trackChanges'),_0xac4f53=_0x161e82['value'];this['_trackChangesValueDuringImport']!==_0xac4f53&&(_0x161e82['execute'](),this['_trackChangesExecuted']=!0x0),_0x43e8da&&_0x43e8da['forEach'](({id:_0x43bf27,type:_0x26eef0,author:_0x16d92a,created_at:_0x54dc6f})=>{const _0xb7d41d={'id':_0x43bf27,'type':_0x26eef0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x16d92a,'createdAt':_0x54dc6f?new Date(_0x54dc6f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb7d41d);});}}class rt extends _0x15c086{['afterInit'](){const _0x4c0fa2=this['editor'],_0x2b23a8=_0x4c0fa2['plugins']['get']('TrackChangesEditing');if(_0x4c0fa2['plugins']['has']('IndentEditing')&&(_0x2b23a8['enableCommand']('indent'),_0x2b23a8['enableCommand']('outdent')),_0x4c0fa2['plugins']['has']('IndentBlock')){for(const _0x42a5d6 of['indentBlock','outdentBlock'])_0x2b23a8['enableDefaultAttributesIntegration'](_0x42a5d6);}const _0x28dc62=_0x4c0fa2['locale'];_0x2b23a8['registerBlockAttribute']('blockIndent'),_0x2b23a8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x28dc62,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166b5c=this['editor'],_0x4e3f96=_0x166b5c['locale'],_0x3164df=_0x166b5c['plugins']['get']('TrackChangesEditing');_0x3164df['descriptionFactory']['registerDescriptionCallback'](_0x14162e=>{if('formatBlock'!=_0x14162e['type'])return;const {data:_0x5067ed}=_0x14162e;if(!_0x5067ed)return;if('indentBlock'!=_0x5067ed['commandName']&&'outdentBlock'!=_0x5067ed['commandName'])return;const _0x28df0d=_0x14162e['getItems']()[0x0],_0x21b63d=_0x3164df['descriptionFactory']['getItemLabel'](_0x28df0d);return'indentBlock'==_0x5067ed['commandName']?{'type':'format','content':o(_0x4e3f96,'*Indent:*\x20%0',_0x21b63d)}:'outdentBlock'==_0x5067ed['commandName']?{'type':'format','content':o(_0x4e3f96,'*Outdent:*\x20%0',_0x21b63d)}:void 0x0;});}}class at extends _0x15c086{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x15c086{['afterInit'](){const _0xd5b25f=this['editor'];if(!_0xd5b25f['plugins']['has']('LinkEditing'))return;const _0x3f32da=_0xd5b25f['plugins']['get']('TrackChangesEditing'),_0x2b14e8=_0xd5b25f['commands']['get']('link');_0x3f32da['enableDefaultAttributesIntegration']('link'),_0x3f32da['enableDefaultAttributesIntegration']('unlink'),_0x3f32da['registerInlineAttribute']('linkHref');for(const _0x22b218 of _0x2b14e8['manualDecorators'])_0x3f32da['registerInlineAttribute'](_0x22b218['id']),_0x3f32da['descriptionFactory']['registerAttributeLabel'](_0x22b218['id'],'link\x20('+_0x22b218['label']['toLowerCase']()+')');_0x3f32da['descriptionFactory']['registerDescriptionCallback'](_0x5bc176=>{if('attribute'!=_0x5bc176['type'])return;const {data:_0x23a0fd}=_0x5bc176;if(!_0x23a0fd||'linkHref'!=_0x23a0fd['key'])return;const _0x1a3637=_0x23a0fd['newValue'],_0x4e4dcd=_0xd5b25f['locale'];return{'type':'format','content':null==_0x1a3637?o(_0x4e4dcd,'*Remove\x20link*'):o(_0x4e4dcd,'*Set\x20link:*\x20%0','\x22'+_0x1a3637+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55c9c1=this['editor'],_0x5efc6f=_0x55c9c1['locale'];_0x55c9c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x117157=>{if('formatInline'!=_0x117157['type'])return;const {data:_0x3c12e9}=_0x117157;if(_0x3c12e9){if('link'==_0x3c12e9['commandName']){const _0x3e51d0=_0x3c12e9['commandParams'][0x0];return{'type':'format','content':o(_0x5efc6f,'*Set\x20link:*\x20%0','\x22'+_0x3e51d0+'\x22')};}return'unlink'==_0x3c12e9['commandName']?{'type':'format','content':o(_0x5efc6f,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x15c086{['afterInit'](){const _0x1fdcd2=this['editor'],_0xb9edcb=_0x1fdcd2['locale'];if(!_0x1fdcd2['plugins']['has']('LegacyListEditing'))return;const _0x32286d=_0x1fdcd2['plugins']['get']('TrackChangesEditing'),_0x2966a1=_0x1fdcd2['plugins']['has']('LegacyTodoListEditing');function _0x1c4205(_0x3ff8fa){return()=>{const _0x1f1d83=_0x1fdcd2['model']['document']['selection'],_0x184884=_0x1fdcd2['commands']['get'](_0x3ff8fa);if(_0x184884['value'])return void _0x1fdcd2['execute']('paragraph',{});const _0x1be8a8=_0x3ff8fa['slice'](0x0,-0x4),_0x2fdc70=function(_0x3654af,_0x1d0a87,_0x443f3b){let _0x23fb67=Array['from'](_0x3654af)['filter'](_0x528b3a=>function(_0x330caf,_0x55adfb){return _0x55adfb['checkChild'](_0x330caf['parent'],'listItem')&&!_0x55adfb['isObject'](_0x330caf);}(_0x528b3a,_0x443f3b));_0x23fb67=_0x23fb67['filter'](_0x2f6a11=>!_0x2f6a11['is']('element','listItem')||_0x2f6a11['getAttribute']('listType')!=_0x1d0a87);const _0x4ed51e=new Set();for(const _0x2160d7 of _0x23fb67)_0x2160d7['is']('element','listItem')?_0x4ed51e['add'](fe(_0x2160d7)):_0x4ed51e['add'](_0x2160d7);return Array['from'](_0x4ed51e);}(_0x1f1d83['getSelectedBlocks'](),_0x1be8a8,_0x1fdcd2['model']['schema']);_0x1fdcd2['model']['change'](()=>{for(const _0xd3305e of _0x2fdc70)_0x32286d['markBlockFormat'](_0xd3305e,{'commandName':_0x3ff8fa,'commandParams':[{'forceValue':!_0x184884['value']}],'formatGroupId':'blockName'},ue(_0xd3305e));});};}function _0x512129(_0x175b93){return()=>{const _0x5bf4fe=function(_0x4e4290){let _0x52b192=Array['from'](_0x4e4290);const _0xc73900=_0x52b192['findIndex'](_0xcb0cb4=>'listItem'!=_0xcb0cb4['name']);return _0xc73900>-0x1&&(_0x52b192=_0x52b192['slice'](0x0,_0xc73900)),_0x52b192;}(_0x1fdcd2['model']['document']['selection']['getSelectedBlocks']()),_0x29c4cb=_0x1fdcd2['model']['createRange'](_0x1fdcd2['model']['createPositionAt'](_0x5bf4fe[0x0],'before'),_0x1fdcd2['model']['createPositionAt'](_0x5bf4fe[_0x5bf4fe['length']-0x1],'end'));_0x1fdcd2['model']['change'](()=>{_0x32286d['markBlockFormat'](_0x29c4cb,{'commandName':_0x175b93,'commandParams':[],'formatGroupId':'listIndent'},function(_0x596e65){const _0x181289=new Set();for(const _0x5e4857 of _0x596e65){let _0x5dc94e=_0x5e4857['nextSibling'];for(;_0x5dc94e&&_0x5dc94e['getAttribute']('listIndent')>_0x5e4857['getAttribute']('listIndent');)_0x181289['add'](_0x5dc94e),_0x5dc94e=_0x5dc94e['nextSibling'];}return Array['from'](_0x181289);}(_0x5bf4fe));});};}_0x32286d['enableCommand']('numberedList',_0x1c4205('numberedList')),_0x32286d['enableCommand']('bulletedList',_0x1c4205('bulletedList')),_0x2966a1&&_0x32286d['enableCommand']('todoList',_0x1c4205('todoList')),_0x32286d['enableCommand']('indentList',_0x512129('indentList')),_0x32286d['enableCommand']('outdentList',_0x512129('outdentList')),_0x2966a1&&_0x32286d['enableCommand']('checkTodoList',()=>{const _0x26f183=_0x1fdcd2['commands']['get']('checkTodoList'),_0x2bf7bb=Array['from'](_0x26f183['_selectedElements']);_0x2bf7bb['filter'](_0x28b3eb=>_0x28b3eb['getAttribute']('todoListChecked')!=_0x26f183['value']),_0x1fdcd2['model']['change'](()=>{for(const _0xde4f45 of _0x2bf7bb)_0x32286d['markBlockFormat'](_0xde4f45,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x26f183['value']}]});});}),_0x32286d['descriptionFactory']['registerElementLabel']('listItem',_0x1677ec=>o(_0xb9edcb,'ELEMENT_LIST_ITEM',_0x1677ec)),_0x32286d['descriptionFactory']['registerDescriptionCallback'](_0x1ed971=>{if('formatBlock'!=_0x1ed971['type']&&'formatInline'!=_0x1ed971['type'])return;const {data:_0xc2de4d}=_0x1ed971;if(_0xc2de4d){if('numberedList'==_0xc2de4d['commandName']||'bulletedList'==_0xc2de4d['commandName']||'todoList'==_0xc2de4d['commandName'])switch(_0xc2de4d['commandName']['replace']('List','')){case'bulleted':return _0x55bc59(o(_0xb9edcb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55bc59(o(_0xb9edcb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55bc59(o(_0xb9edcb,'ELEMENT_TODO_LIST'));}if('indentList'==_0xc2de4d['commandName'])return{'type':'format','content':o(_0xb9edcb,'*Indent:*\x20%0',o(_0xb9edcb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xc2de4d['commandName'])return{'type':'format','content':o(_0xb9edcb,'*Outdent:*\x20%0',o(_0xb9edcb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xc2de4d['commandName'])return _0xc2de4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb9edcb,'*Check\x20item*')}:{'type':'format','content':o(_0xb9edcb,'*Uncheck\x20item*')};}function _0x55bc59(_0x3860a1){return{'type':'format','content':o(_0xb9edcb,'*Change\x20to:*\x20%0',_0x3860a1)};}});}}function fe(_0x4713cc){const _0x186350=_0x4713cc['getAttribute']('listIndent');if(0x0==_0x186350)return _0x4713cc;let _0x4c7b4b=_0x4713cc;for(;_0x4713cc['previousSibling']&&_0x4713cc['previousSibling']['is']('element','listItem');){const _0x32ff2a=_0x4713cc['previousSibling']['getAttribute']('listIndent');if(_0x32ff2a==_0x186350)_0x4c7b4b=_0x4713cc['previousSibling'];else{if(_0x32ff2a<_0x186350)break;}_0x4713cc=_0x4713cc['previousSibling'];}return _0x4c7b4b;}function ue(_0x23f063){const _0x355538=[];if(_0x23f063['is']('element','listItem')&&_0x23f063['getAttribute']('listIndent')>0x0){let _0x1433ab=_0x23f063['nextSibling'];for(;_0x1433ab&&'listItem'==_0x1433ab['name']&&_0x1433ab['getAttribute']('listIndent')==_0x23f063['getAttribute']('listIndent');)_0x355538['push'](_0x1433ab),_0x1433ab=_0x1433ab['nextSibling'];}return _0x355538;}class K extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x13f2d9=this['editor']['config']['get']('list.properties'),_0x410b08=this['editor']['plugins']['get']('TrackChangesEditing');_0x13f2d9['styles']&&_0x410b08['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x13f2d9['reversed']&&_0x410b08['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x13f2d9['startIndex']&&_0x410b08['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x410b08['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xcb61ff,_0x46d17d={}){const _0x416761=this['editor']['plugins']['get']('TrackChangesEditing'),_0x538ba1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x416761['markMultiRangeBlockFormat'](_0x538ba1,{'commandName':'listStyle','commandParams':[{'type':_0x46d17d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1c589f,_0x500b2b={}){const _0x18d498=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c8e73=this['_getSuggestionBlocks'](_0x40a3ac=>_0x40a3ac['is']('element','listItem')&&'numbered'===_0x40a3ac['getAttribute']('listType'));if(_0x2c8e73['length']<0x1)return;const _0x49681f=_0x2c8e73['map'](_0x1a8ceb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a8ceb,'before'),this['editor']['model']['createPositionAt'](_0x1a8ceb,0x0)));this['editor']['model']['change'](()=>{_0x18d498['markMultiRangeBlockFormat'](_0x49681f,{'commandName':'listReversed','commandParams':[{'reversed':_0x500b2b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3e2bca,_0x19e3bc={}){const _0x46f8bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x329746=this['_getSuggestionBlocks'](_0x2535e1=>_0x2535e1['is']('element','listItem')&&'numbered'===_0x2535e1['getAttribute']('listType'));if(_0x329746['length']<0x1)return;const _0x4db993=_0x329746['map'](_0xfee5dc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfee5dc,'before'),this['editor']['model']['createPositionAt'](_0xfee5dc,0x0)));this['editor']['model']['change'](()=>{_0x46f8bc['markMultiRangeBlockFormat'](_0x4db993,{'commandName':'listStart','commandParams':[{'startIndex':_0x19e3bc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x15230c){if('formatBlock'!=_0x15230c['type']&&'formatInline'!=_0x15230c['type'])return;const _0x59bb6a=this['editor']['locale'],{data:_0x213554}=_0x15230c;if(!_0x213554)return;let _0x3bcb90,_0x4c60c6;switch(_0x213554['commandName']){case'listStyle':_0x3bcb90='*Change\x20to:*\x20%0',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90,o(_0x59bb6a,this['_getTranslationKeyForListStyle'](_0x213554['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bcb90=_0x213554['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90)};break;case'listStart':_0x3bcb90='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90,_0x213554['commandParams'][0x0]['startIndex'])};}return _0x4c60c6;}['_getSuggestionBlocksForListStyle'](){const _0x589735=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a8bd0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a8bd0[0x0]?.['is']('element','listItem')&&_0x5a8bd0['unshift'](..._0x589735['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a8bd0[_0x5a8bd0['length']-0x1]?.['is']('element','listItem')&&_0x5a8bd0['push'](..._0x589735['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a8bd0=[...new Set(_0x5a8bd0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a8bd0=_0x5a8bd0['filter'](_0x141eb2=>_0x141eb2['is']('element','listItem'))),_0x5a8bd0;}['_getSuggestionBlocks'](_0x79eff2){const _0x13d59e=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e6b3c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x79eff2)['map'](_0x5232fc=>{const _0xd7029=this['editor']['model']['createPositionAt'](_0x5232fc,0x0);return[..._0x13d59e['getSiblingNodes'](_0xd7029,'backward'),..._0x13d59e['getSiblingNodes'](_0xd7029,'forward')];})['flat']();return _0x5e6b3c=[...new Set(_0x5e6b3c)],_0x5e6b3c;}['_getTranslationKeyForListStyle'](_0xca247b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xca247b)||'default')['toUpperCase']()+'_LIST_'+_0xca247b['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x15c086{['afterInit'](){const _0x44fe3c=this['editor'];if(!_0x44fe3c['plugins']['has']('MediaEmbedEditing'))return;const _0x3e763b=_0x44fe3c['plugins']['get']('TrackChangesEditing'),_0x551034=_0x44fe3c['locale'];_0x3e763b['enableCommand']('mediaEmbed'),_0x3e763b['descriptionFactory']['registerElementLabel']('media',_0x3d531f=>o(_0x551034,'ELEMENT_MEDIA',_0x3d531f)),_0x44fe3c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4ef42b,{writer:_0x560508,options:_0x1b9576})=>{if(_0x1b9576['showSuggestionHighlights'])return _0x560508['createEmptyElement']('div');},'converterPriority':'high'}),_0x44fe3c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x13daa7,_0x803f36,_0x209e4d)=>{_0x209e4d['options']['showSuggestionHighlights']&&_0x13daa7['stop']();},{'priority':'high'});}}class gt extends _0x15c086{['afterInit'](){const _0x54a74f=this['editor'];_0x54a74f['plugins']['has']('MentionEditing')&&_0x54a74f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x15c086{['afterInit'](){const _0x220270=this['editor'];if(!_0x220270['commands']['get']('insertMergeField'))return;_0x220270['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x4e6a57=_0x220270['plugins']['get']('TrackChangesEditing'),_0x408e63=_0x220270['locale'];_0x4e6a57['descriptionFactory']['registerElementLabel']('mergeField',_0x83c8f=>o(_0x408e63,'ELEMENT_MERGE_FIELD',_0x83c8f)),_0x4e6a57['descriptionFactory']['registerDescriptionCallback'](_0x2b8b56=>{if('insertion'!=_0x2b8b56['type']&&'deletion'!=_0x2b8b56['type'])return;const _0x380ae0=_0x2b8b56['getContainedElement']();if(null==_0x380ae0)return;if(!_0x380ae0['is']('element','mergeField'))return;const _0x353a3b=_0x220270['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x380ae0['getAttribute']('id'));return'insertion'==_0x2b8b56['type']?{'type':'insertion','content':o(_0x408e63,'*Insert:*\x20%0','\x22'+_0x353a3b+'\x22\x20'+o(_0x408e63,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x408e63,'*Remove:*\x20%0','\x22'+_0x353a3b+'\x22\x20'+o(_0x408e63,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x15c086{['afterInit'](){const _0x5d4546=this['editor'],_0x15c7a1=_0x5d4546['plugins']['get']('TrackChangesEditing');_0x5d4546['plugins']['has']('MultiLevelList')&&(_0x15c7a1['enableDefaultAttributesIntegration']('multiLevelList'),_0x15c7a1['registerBlockAttribute']('listMarkerStyle'),_0x15c7a1['descriptionFactory']['registerDescriptionCallback'](_0x4c50eb=>this['handleDescriptions'](_0x4c50eb)));}['handleDescriptions'](_0x1fc26f){const _0x47948c=this['editor']['locale'],{data:_0x575870}=_0x1fc26f,_0x1accb0={'type':'format','content':''};if(_0x575870&&'listMarkerStyle'==_0x575870['key']){if(!_0x575870['oldValue'])return{'type':'format','content':o(_0x47948c,'*Set\x20format:*\x20%0',o(_0x47948c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x575870['newValue']+')'};if(!_0x575870['newValue']){let _0x43258e=_0x1fc26f['head'];for(;_0x43258e;){if(_0x43258e['data']&&'listType'==_0x43258e['data']['key']&&_0x43258e['data']['newValue'])return _0x1accb0;_0x43258e=_0x43258e['next'];}return{'type':'format','content':o(_0x47948c,'*Remove\x20format:*\x20%0',o(_0x47948c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x575870['oldValue']+')'};}}}}class dt extends _0x15c086{['afterInit'](){const _0x4e979e=this['editor'];if(!_0x4e979e['plugins']['has']('PageBreakEditing'))return;_0x4e979e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa9194e=_0x4e979e['plugins']['get']('TrackChangesEditing'),_0x24eaf4=_0x4e979e['locale'];_0xa9194e['descriptionFactory']['registerElementLabel']('pageBreak',_0x513054=>o(_0x24eaf4,'ELEMENT_PAGE_BREAK',_0x513054));}}class pt extends _0x15c086{['afterInit'](){const _0x1d5cfa=this['editor'];if(!_0x1d5cfa['plugins']['has']('Paragraph'))return;const _0x1dbffe=_0x1d5cfa['locale'],_0x3ede95=_0x1d5cfa['plugins']['get']('TrackChangesEditing');_0x3ede95['descriptionFactory']['registerElementLabel']('paragraph',_0x26b46e=>o(_0x1dbffe,'ELEMENT_PARAGRAPH',_0x26b46e)),_0x3ede95['enableDefaultAttributesIntegration']('paragraph'),_0x3ede95['enableCommand']('insertParagraph'),_0x1d5cfa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d5cfa),{'priority':'highest'}),_0x1d5cfa['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b150e,_0x124365,_0x2695f6)=>{_0x2695f6['options']['showSuggestionHighlights']&&nr(_0x1d5cfa,{'showActiveMarker':!0x1})(_0x1b150e,_0x124365,_0x2695f6);},{'priority':'highest'});const _0x5481a1=_0x3ede95['descriptionFactory'];_0x5481a1['registerDescriptionCallback'](_0x108b75=>{if('insertion'!==_0x108b75['type'])return;const {start:_0x128966,end:_0x548819}=_0x108b75['getFirstRange']();if(!_0x128966['isTouching'](_0x548819)||!_0x128966['nodeAfter'])return;const _0x4e2d9b=_0x1d5cfa['model']['schema'],_0x1a60ff=_0x128966['nodeAfter'];return _0x4e2d9b['isBlock'](_0x1a60ff)&&!_0x4e2d9b['isLimit'](_0x1a60ff)&&_0x4e2d9b['checkChild'](_0x1a60ff,'$text')?{'type':'insertion','content':o(_0x1dbffe,'*Insert:*\x20%0',_0x5481a1['getItemLabel'](_0x1a60ff,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0fd8=this['editor'],_0x27ab15=_0x4c0fd8['locale'];_0x4c0fd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd07c=>{if('formatBlock'!=_0x2fd07c['type'])return;const {data:_0x114ac3}=_0x2fd07c;return _0x114ac3&&'paragraph'==_0x114ac3['commandName']?{'type':'format','content':o(_0x27ab15,'*Change\x20to:*\x20%0',o(_0x27ab15,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x45b431,{showActiveMarker:_0x1b8197=!0x0}={}){return(_0x3609ce,_0x59a055,_0x6d5ab3)=>{const _0x2fa1e2=_0x45b431['plugins']['get']('TrackChangesEditing'),_0xf79d08=_0x59a055['markerRange']['start'],_0x372df3=_0x59a055['markerRange']['end'],_0x54b513=_0x45b431['model']['schema'];if(!_0xf79d08['isTouching'](_0x372df3)||!_0xf79d08['nodeAfter'])return;const _0x2adc92=_0xf79d08['nodeAfter'];if(_0x54b513['isBlock'](_0x2adc92)&&!_0x54b513['isLimit'](_0x2adc92)&&_0x54b513['checkChild'](_0x2adc92,'$text')){if(!_0x6d5ab3['consumable']['consume'](_0x59a055['markerRange'],_0x3609ce['name']))return;const _0x43624b=_0x6d5ab3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x399b83=_0x6d5ab3['mapper']['toViewPosition'](_0x372df3);_0x1b8197&&_0x2fa1e2['activeMarkers']['includes'](_0x59a055['markerName'])&&_0x6d5ab3['writer']['addClass']('ck-suggestion-marker--active',_0x43624b),_0x6d5ab3['writer']['insert'](_0x399b83,_0x43624b),_0x6d5ab3['mapper']['bindElementToMarker'](_0x43624b,_0x59a055['markerName']);}};}class kt extends _0x15c086{['afterInit'](){const _0x21a611=this['editor'];if(!_0x21a611['plugins']['has']('RemoveFormatEditing'))return;_0x21a611['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6c2293=this['editor'];_0x6c2293['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56e0da=>{if('formatBlock'!=_0x56e0da['type']&&'formatInline'!=_0x56e0da['type'])return;const {data:_0x248634}=_0x56e0da;return _0x248634&&'removeFormat'==_0x248634['commandName']?{'type':'format','content':o(_0x6c2293['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x15c086{['afterInit'](){const _0x3f461e=this['editor'];if(!_0x3f461e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1e153d=_0x3f461e['plugins']['get']('TrackChangesEditing');_0x1e153d['enableCommand']('goToPreviousRestrictedEditingException'),_0x1e153d['enableCommand']('goToNextRestrictedEditingException');const _0x3c864f=_0x3f461e['plugins']['get']('RestrictedEditingModeEditing');_0x3c864f['enableCommand']('trackChanges'),_0x3c864f['enableCommand']('acceptSuggestion'),_0x3c864f['enableCommand']('discardSuggestion'),_0x3c864f['enableCommand']('acceptAllSuggestions'),_0x3c864f['enableCommand']('discardAllSuggestions'),_0x3c864f['enableCommand']('acceptSelectedSuggestions'),_0x3c864f['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x15c086{static get['requires'](){return[_0x275f63];}['init'](){const _0x1e8e36=this['editor'],_0x5c4c5b=_0x1e8e36['plugins']['get']('TrackChangesEditing');_0x5c4c5b['enableCommand']('shiftEnter'),_0x1e8e36['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x1e8e36),{'priority':'high'}),_0x1e8e36['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x1e8e36),{'priority':'high'}),_0x1e8e36['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f7a4c,_0x5911f9,_0x45597f)=>{_0x45597f['options']['showSuggestionHighlights']&&ce(_0x1e8e36,{'showActiveMarker':!0x1})(_0x4f7a4c,_0x5911f9,_0x45597f);}),_0x5c4c5b['descriptionFactory']['registerElementLabel']('softBreak',_0x2d5dd9=>o(_0x1e8e36['locale'],'ELEMENT_LINE_BREAK',_0x2d5dd9));}}function ce(_0xc0ddb3,{showActiveMarker:_0x46c2d4=!0x0}={}){return(_0x219400,_0x51e08c,_0x833b20)=>{const _0x55cf6d=_0xc0ddb3['plugins']['get']('TrackChangesEditing');if(!_0x833b20['consumable']['test'](_0x51e08c['markerRange'],_0x219400['name']))return;const _0x200014=_0xc0ddb3['model'];for(const _0x235998 of _0x51e08c['markerRange']['getItems']()){if(!_0x235998['is']('element','softBreak'))continue;const _0x4c4480='deletion'==_0x51e08c['markerName']['split'](':')[0x1]?'merge':'split',_0x9a30c7=_0x833b20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c4480}),_0x8f0f71=_0x833b20['mapper']['toViewPosition'](_0x200014['createPositionBefore'](_0x235998));_0x46c2d4&&_0x55cf6d['activeMarkers']['includes'](_0x51e08c['markerName'])&&_0x833b20['writer']['addClass']('ck-suggestion-marker--active',_0x9a30c7),_0x833b20['writer']['insert'](_0x8f0f71,_0x9a30c7),_0x833b20['mapper']['bindElementToMarker'](_0x9a30c7,_0x51e08c['markerName']);}};}class yt extends _0x15c086{['afterInit'](){const _0x3c4407=this['editor'],_0x276daf=_0x3c4407['model'],_0x88d997=_0x3c4407['locale'];if(!_0x3c4407['plugins']['has']('StandardEditingModeEditing'))return;const _0x1d1ad5=_0x3c4407['plugins']['get']('TrackChangesEditing'),_0x18a698='restrictedEditingException',_0x568eb3=_0x3c4407['commands']['get'](_0x18a698);_0x1d1ad5['enableCommand'](_0x18a698,(_0x31b3d7,_0x41c4d9={})=>{const _0x2fbee7=_0x276daf['document']['selection'];if(_0x2fbee7['isCollapsed'])return void _0x31b3d7(_0x41c4d9);const _0x46d711=void 0x0!==_0x41c4d9['forceValue']?_0x41c4d9['forceValue']:!_0x568eb3['value'];_0x276daf['change'](()=>{const _0x2729dc=Array['from'](_0x2fbee7['getRanges']());for(const _0x17d223 of _0x2729dc){const _0x1c9862=_0x46d711?[_0x17d223]:io(_0x18a698,_0x17d223,_0x276daf);for(const _0x370022 of _0x1c9862)_0x1d1ad5['markInlineFormat'](_0x370022,{'commandName':_0x18a698,'commandParams':[{'forceValue':_0x46d711}]});}});}),_0x1d1ad5['descriptionFactory']['registerDescriptionCallback'](_0x18f350=>{if('formatBlock'!=_0x18f350['type']&&'formatInline'!=_0x18f350['type'])return;const {data:_0x55c3d9}=_0x18f350;return _0x55c3d9&&_0x55c3d9['commandName']==_0x18a698?_0x55c3d9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x88d997,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x88d997,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x15c086{['afterInit'](){const _0xd21aca=this['editor'];if(!_0xd21aca['plugins']['has']('Style')||!_0xd21aca['plugins']['has']('DataSchema'))return;const _0x44547e=_0xd21aca['plugins']['get']('TrackChangesEditing'),_0xad3cb0=_0xd21aca['locale'],_0x305205=_0xd21aca['config']['get']('style')||{},_0x5970ec=_0xd21aca['plugins']['get']('GeneralHtmlSupport'),_0x5a985e=_0xd21aca['plugins']['get']('StyleUtils')['normalizeConfig'](_0xd21aca['plugins']['get']('DataSchema'),_0x305205['definitions']);_0x44547e['enableDefaultAttributesIntegration']('style');const _0x3b5546=new Set();for(const _0x16adc6 of _0x5a985e['block']){const _0xdf298=_0x5970ec['getGhsAttributeNameForElement'](_0x16adc6['element']);_0x3b5546['add'](_0xdf298);}const _0x9a0c83=new Set();for(const _0xe6417 of _0x5a985e['inline']){const _0x2ab127=_0x5970ec['getGhsAttributeNameForElement'](_0xe6417['element']);_0x9a0c83['add'](_0x2ab127);for(const _0x3bb008 of _0xe6417['ghsAttributes'])_0x9a0c83['add'](_0x3bb008);}for(const _0x3cd172 of _0x3b5546)_0x44547e['registerBlockAttribute'](_0x3cd172),_0x44547e['descriptionFactory']['registerAttributeLabel'](_0x3cd172,o(_0xad3cb0,'FORMAT_STYLE'));for(const _0x420b34 of _0x9a0c83)_0x44547e['registerInlineAttribute'](_0x420b34),_0x44547e['descriptionFactory']['registerAttributeLabel'](_0x420b34,o(_0xad3cb0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x329afa=this['editor'],_0x3c9133=_0x329afa['locale'];_0x329afa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3324d9=>{if('formatBlock'!=_0x3324d9['type']&&'formatInline'!=_0x3324d9['type'])return;const {data:_0x2f3164}=_0x3324d9;return _0x2f3164&&'style'===_0x2f3164['commandName']?_0x2f3164['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c9133,'*Set\x20format:*\x20%0',_0x2f3164['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3c9133,'*Remove\x20format:*\x20%0',_0x2f3164['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x15c086{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x594fb1){super(_0x594fb1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x6e1230=this['editor'],_0x4d8240=_0x6e1230['model']['document']['selection'];if(!_0x6e1230['plugins']['has']('TableEditing'))return;const _0xbd3196=_0x6e1230['locale'],_0x48e544=_0x6e1230['plugins']['get']('TrackChangesEditing'),_0x49842d=_0x6e1230['plugins']['get']('TableUtils');_0x48e544['descriptionFactory']['registerElementLabel']('table',_0x5f56e8=>o(_0xbd3196,'ELEMENT_TABLE',_0x5f56e8)),this['_setupColumnsRowsFixing'](),_0x48e544['enableCommand']('insertTable'),_0x48e544['enableCommand']('selectTableRow'),_0x48e544['enableCommand']('selectTableColumn');for(const _0x521d43 of['insertTableRowAbove','insertTableRowBelow']){const _0x587874=_0x6e1230['commands']['get'](_0x521d43);_0x48e544['enableCommand'](_0x521d43,_0x37cfab=>{_0x6e1230['model']['change'](_0x56a873=>{_0x37cfab();const _0x214a84='above'===_0x587874['order'],_0x1fcd9b=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0x3a0107=_0x49842d['getRowIndexes'](_0x1fcd9b),_0x3a6f3b=_0x214a84?_0x3a0107['first']-0x1:_0x3a0107['last']+0x1,_0x98a0e2=_0x1fcd9b[0x0]['findAncestor']('table'),_0x30e119=_0x49842d['createTableWalker'](_0x98a0e2,{'startRow':_0x3a6f3b,'endRow':_0x3a6f3b}),_0x4a3c95=Array['from'](_0x30e119)['map'](_0x53ed9d=>_0x56a873['createRangeOn'](_0x53ed9d['cell']));_0x48e544['markMultiRangeInsertion'](_0x4a3c95,'tableRow');});});}for(const _0x32cf7c of['insertTableColumnLeft','insertTableColumnRight']){const _0x194f54=_0x6e1230['commands']['get'](_0x32cf7c);_0x48e544['enableCommand'](_0x32cf7c,_0x1fac77=>{_0x6e1230['model']['change'](_0x4c4519=>{_0x1fac77();const _0x3c6845='left'===_0x194f54['order'],_0x344674=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0x1c1c8e=_0x49842d['getColumnIndexes'](_0x344674),_0x4e3540=_0x3c6845?_0x1c1c8e['first']-0x1:_0x1c1c8e['last']+0x1,_0x40a970=_0x344674[0x0]['findAncestor']('table'),_0x1ba4a6=_0x49842d['createTableWalker'](_0x40a970,{'startRow':0x0,'column':_0x4e3540,'includeAllSlots':!0x1}),_0x9b5909=Array['from'](_0x1ba4a6)['map'](_0x10bdf0=>_0x4c4519['createRangeOn'](_0x10bdf0['cell']));_0x48e544['markMultiRangeInsertion'](_0x9b5909,'tableColumn');});});}for(const _0x562195 of['removeTableRow','removeTableColumn']){const _0x38edfe=_0x562195['substr'](0xb),_0x4c3a9f=_0x38edfe['toLowerCase'](),_0x5e5a65=_0x4c3a9f['substr'](0x0,0x3)+'span',_0x4fb795='table'+_0x38edfe,_0x77c4be='min'+_0x38edfe,_0x2f7408='max'+_0x38edfe;_0x48e544['enableCommand'](_0x562195,()=>{_0x6e1230['model']['change'](_0x60c7e7=>{const _0x48bdf6=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0xd68e06=_0x48bdf6[0x0]['findAncestor']('table');let _0x5c2273;if('removeTableRow'==_0x562195){const _0x1c1949=_0x49842d['getRowIndexes'](_0x48bdf6);_0x5c2273={'startRow':_0x1c1949['first'],'endRow':_0x1c1949['last'],'includeAllSlots':!0x0};}else{const _0x1ff79a=_0x49842d['getColumnIndexes'](_0x48bdf6);_0x5c2273={'startColumn':_0x1ff79a['first'],'endColumn':_0x1ff79a['last'],'includeAllSlots':!0x0};}const _0xbefabd=_0x49842d['createTableWalker'](_0xd68e06,_0x5c2273),_0x502bc8=Array['from'](_0xbefabd)['map'](({cell:_0x4a16fd})=>_0x4a16fd),_0x502b6d=Ee(_0x502bc8['filter'](_0xd4caff=>_0xd4caff['hasAttribute'](_0x5e5a65))),_0x129750=Ee(_0x502bc8['filter'](_0x34a272=>!_0x34a272['hasAttribute'](_0x5e5a65)))['map'](_0x2e9f07=>_0x60c7e7['createRangeOn'](_0x2e9f07)),_0x154d51=_0x48e544['markMultiRangeDeletion'](_0x129750,_0x4fb795);if(_0x154d51&&('tableRow'==_0x154d51['subType']||'tableColumn'==_0x154d51['subType'])){const _0x3642cc=this['_getSuggestionCoords'](_0x154d51);for(const _0x59ee55 of _0x502b6d){const _0x85a5e1=_0x60c7e7['createRangeOn'](_0x59ee55),_0x23bc0d=_0x49842d['getCellLocation'](_0x59ee55),_0x2b4836=_0x59ee55['getAttribute'](_0x5e5a65)-0x1,_0x546990=_0x3642cc[_0x77c4be],_0x493422=_0x3642cc[_0x2f7408];_0x546990<=_0x23bc0d[_0x4c3a9f]&&_0x23bc0d[_0x4c3a9f]+_0x2b4836<=_0x493422&&_0x154d51['addRange'](_0x85a5e1);}}});});}function _0x2fdfc1(_0x13d2b2){const _0x46f4d3=Array['from'](_0x4d8240['getRanges']())['map'](_0x11ed0d=>_0x948f0b['fromRange'](_0x11ed0d));_0x6e1230['model']['change'](_0x200855=>{const _0x56a53a=_0x200855['batch'];_0x13d2b2=_0x13d2b2['filter'](_0x560d1a=>'$graveyard'!=_0x560d1a['root']['rootName']),_0x200855['setSelection'](_0x13d2b2),_0x6e1230['commands']['get']('removeTableRow')['refresh'](),_0x6e1230['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x6e1230['model']['enqueueChange'](()=>{_0x6e1230['model']['enqueueChange'](_0x56a53a,_0x4479ac=>{const _0x3469b7=_0x46f4d3['filter'](_0x293da2=>'$graveyard'!=_0x293da2['root']['rootName']);_0x3469b7['length']>0x0&&_0x4479ac['setSelection'](_0x3469b7);for(const _0x58f263 of _0x46f4d3)_0x58f263['detach']();});});});}function _0x1ab757(_0x4c8546){_0x6e1230['model']['change'](_0x1cd6e2=>{const _0x4b313e=Array['from'](_0x4d8240['getRanges']())['map'](_0x1d18a2=>_0x948f0b['fromRange'](_0x1d18a2)),_0x109485=[];for(const _0x27608c of _0x4c8546)for(const _0x23ca61 of _0x27608c['getItems']({'shallow':!0x0}))_0x109485['push'](_0x23ca61);for(const _0x3cf7a5 of _0x109485)'$graveyard'!=_0x3cf7a5['root']['rootName']&&(_0x1cd6e2['setSelection'](_0x1cd6e2['createPositionAt'](_0x3cf7a5,0x0)),_0x6e1230['commands']['get']('removeTableColumn')['refresh'](),_0x6e1230['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42514f=_0x4b313e['filter'](_0x3a7918=>'$graveyard'!=_0x3a7918['root']['rootName']);_0x42514f['length']>0x0&&_0x1cd6e2['setSelection'](_0x42514f);for(const _0x1220c4 of _0x4b313e)_0x1220c4['detach']();});}function _0x8c0f3f(_0x1c58a7,_0x3cd43c){return _0x3cd43c['every'](_0x50e7b9=>_0x1c58a7['some'](_0x2206d0=>_0x2206d0['end']['isEqual'](_0x50e7b9['start'])||_0x50e7b9['end']['isEqual'](_0x2206d0['start'])));}function _0x48352c(_0x1fde33,_0xb0d21e){return!_0x1fde33['some'](_0x30280c=>_0xb0d21e['some'](_0x472503=>_0x30280c['isIntersecting'](_0x472503)))&&_0x1fde33['some'](_0x1b15e8=>_0xb0d21e['some'](_0x4c8fcf=>_0x1b15e8['end']['isTouching'](_0x4c8fcf['start'])));}_0x6e1230['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55de5f,_0x483b43,_0x3d5a1c)=>{if(!_0x3d5a1c['options']['showSuggestionHighlights'])return;const _0x13c4d2=_0x483b43['item'];if(!_0x13c4d2)return;const _0x256d28=_0x3d5a1c['mapper']['toViewElement'](_0x13c4d2);function _0x40309f(_0x1eac20){return Array['isArray'](_0x1eac20)?_0x1eac20:[_0x1eac20];}_0x256d28&&'tableCell'===_0x13c4d2['name']&&_0x5bea68(_0x256d28,_0x3d5a1c['writer'],(_0x57e2fb,_0x1e08ed,_0x3cb569)=>_0x3cb569['addClass'](_0x40309f(_0x1e08ed['classes']),_0x57e2fb),(_0x21a6ef,_0xd7dbf8,_0x5dcc28)=>_0x5dcc28['removeClass'](_0x40309f(_0xd7dbf8['classes']),_0x21a6ef));},{'priority':'highest'}),_0x48e544['descriptionFactory']['registerDescriptionCallback'](_0x26f49e=>{if('insertion'!=_0x26f49e['type']&&'deletion'!=_0x26f49e['type'])return;const _0x377d8d=_0x26f49e['getContainedElement']();if(null!=_0x377d8d&&_0x377d8d['is']('element','table')){if('insertion'==_0x26f49e['type']){const _0xe84c91=_0x26f49e['getItems']()['filter'](_0x54962d=>_0x54962d['is']('$textProxy'))['map'](_0x2353ea=>_0x2353ea['data']);if(_0xe84c91['length'])return{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe84c91['join']('\x20')+'\x22'))};}if('deletion'==_0x26f49e['type']){const _0x1fb07=_0x26f49e['getItems']()['filter'](_0xe2fe2=>_0xe2fe2['is']('$textProxy'))['map'](_0x42ffa2=>_0x42ffa2['data']);if(_0x1fb07['length'])return{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fb07['join']('\x20')+'\x22'))};}}}),_0x48e544['descriptionFactory']['registerDescriptionCallback'](_0x10098d=>{if('tableRow'==_0x10098d['subType']){const _0x213e2c=_0x10098d['getItems']()['filter'](_0x353969=>_0x353969['is']('$textProxy'))['map'](_0x3de28c=>_0x3de28c['data']),_0x53315c=this['_getSuggestionCoords'](_0x10098d),_0x4f79fe=_0x53315c['maxRow']-_0x53315c['minRow']+0x1;if('insertion'==_0x10098d['type'])return _0x213e2c['length']?{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f79fe,'\x22'+_0x213e2c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW',_0x4f79fe))};if('deletion'==_0x10098d['type'])return _0x213e2c['length']?{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f79fe,'\x22'+_0x213e2c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW',_0x4f79fe))};}if('tableColumn'==_0x10098d['subType']){const _0x5738fd=_0x10098d['getItems']()['filter'](_0x43f78c=>_0x43f78c['is']('$textProxy'))['map'](_0x15851b=>_0x15851b['data']),_0x2c5c4e=this['_getSuggestionCoords'](_0x10098d),_0x321f8c=_0x2c5c4e['maxColumn']-_0x2c5c4e['minColumn']+0x1;if('insertion'==_0x10098d['type'])return _0x5738fd['length']?{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x321f8c,'\x22'+_0x5738fd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN',_0x321f8c))};if('deletion'==_0x10098d['type'])return _0x5738fd['length']?{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x321f8c,'\x22'+_0x5738fd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN',_0x321f8c))};}}),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2fdfc1),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2fdfc1),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1ab757),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1ab757),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x8c0f3f),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x8c0f3f),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x48352c),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x48352c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x521a9d=this['editor'],_0x309cef=_0x521a9d['model']['document']['selection'];return(_0x5d00f8,_0x1fd0ee)=>{_0x521a9d['model']['change'](_0x406b08=>{const {commandName:_0x4d0781,commandParams:_0x358a6b}=_0x1fd0ee;let _0x1b8901=_0x5d00f8[0x0]['end']['nodeBefore'];_0x358a6b&&_0x358a6b[0x0]&&!0x1===_0x358a6b[0x0]['forceValue']&&(_0x1b8901=_0x5d00f8[0x0]['start']['nodeAfter']);const _0x4d5fc5=_0x406b08['createRangeIn'](_0x1b8901);if('$graveyard'==_0x4d5fc5['root']['rootName'])return;const _0x5cf91e=Array['from'](_0x309cef['getRanges']())['map'](_0x141783=>_0x948f0b['fromRange'](_0x141783));_0x406b08['setSelection'](_0x4d5fc5),_0x521a9d['commands']['get'](_0x4d0781)['refresh'](),_0x358a6b['push']({'forceDefaultExecution':!0x0}),_0x521a9d['execute'](_0x4d0781,..._0x358a6b);const _0x3ea3e0=_0x5cf91e['filter'](_0x8c0484=>'$graveyard'!=_0x8c0484['root']['rootName']);_0x3ea3e0['length']>0x0&&_0x406b08['setSelection'](_0x3ea3e0);for(const _0x273dcf of _0x5cf91e)_0x273dcf['detach']();});};}['_getCoordsForCells'](_0x36eb26){const _0x37dfea=this['editor']['plugins']['get']('TableUtils');let _0x279cc2=Number['MAX_SAFE_INTEGER'],_0x3a8bc2=Number['MIN_SAFE_INTEGER'],_0x489612=Number['MAX_SAFE_INTEGER'],_0x16b1c8=Number['MIN_SAFE_INTEGER'];for(const _0x319440 of _0x36eb26){if('$graveyard'==_0x319440['root']['rootName'])continue;const {row:_0x19b149,column:_0x1c6adc}=_0x37dfea['getCellLocation'](_0x319440),_0x44ff9d=_0x319440['hasAttribute']('rowspan')?_0x319440['getAttribute']('rowspan')-0x1:0x0,_0x350081=_0x319440['hasAttribute']('colspan')?_0x319440['getAttribute']('colspan')-0x1:0x0;_0x279cc2=_0x19b149<_0x279cc2?_0x19b149:_0x279cc2,_0x3a8bc2=_0x19b149+_0x44ff9d>_0x3a8bc2?_0x19b149+_0x44ff9d:_0x3a8bc2,_0x489612=_0x1c6adc<_0x489612?_0x1c6adc:_0x489612,_0x16b1c8=_0x1c6adc+_0x350081>_0x16b1c8?_0x1c6adc+_0x350081:_0x16b1c8;}return{'minRow':_0x279cc2,'maxRow':_0x3a8bc2,'minColumn':_0x489612,'maxColumn':_0x16b1c8};}['_setupColumnsRowsFixing'](){const _0x2b4f10=this['editor'],_0x3a87a4=_0x2b4f10['plugins']['get']('TrackChangesEditing'),_0x20e8ec=_0x2b4f10['plugins']['get']('TableUtils');_0x2b4f10['model']['document']['on']('change:data',()=>{const _0x32179d=Array['from'](_0x2b4f10['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19c8f5,data:_0x11d075}of _0x32179d){const {group:_0x456b88,id:_0x11be1b,subType:_0xac5cb2}=_0x3a87a4['_splitMarkerName'](_0x19c8f5);if('suggestion'!=_0x456b88)continue;if(null!=_0x11d075['oldRange'])continue;const _0x42c52d=_0x3a87a4['getSuggestion'](_0x11be1b);this['_tablePostFixingSubtypes']['includes'](_0xac5cb2)&&this['_tableSuggestions']['add'](_0x42c52d);}},{'priority':'low'});const _0x79deff=(_0x52717c,_0x21b68d)=>{let _0x378159=!0x1;const _0xd42d7c=_0x21b68d['createRangeOn'](_0x52717c),_0x440a1f=_0x52717c['findAncestor']('table'),_0x2c4910=_0x20e8ec['getCellLocation'](_0x52717c);for(const _0x345a2c of this['_tableSuggestions']){const _0x48a2e7=_0x345a2c['subType'],_0x318b21=_0x48a2e7['startsWith']('tablePaste'),_0x3d6c6c=_0x48a2e7['substr'](_0x318b21?0xa:0x5),_0x45f00d=_0x3d6c6c['toLowerCase'](),_0xcec5d=_0x45f00d['substr'](0x0,0x3)+'span',_0xfbc79='min'+_0x3d6c6c,_0x1443c5='max'+_0x3d6c6c;if(!_0x345a2c['isInContent'])continue;if(_0x440a1f!=_0x345a2c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x345a2c['isIntersectingWithRange'](_0xd42d7c))continue;const _0xd0d85=_0x52717c['hasAttribute'](_0xcec5d)?_0x52717c['getAttribute'](_0xcec5d)-0x1:0x0,_0x4e6f85=this['_getSuggestionCoords'](_0x345a2c),_0x38f269=_0x4e6f85[_0xfbc79],_0x121a9e=_0x4e6f85[_0x1443c5];_0x38f269<=_0x2c4910[_0x45f00d]&&_0x2c4910[_0x45f00d]+_0xd0d85<=_0x121a9e&&(_0x345a2c['addRange'](_0xd42d7c),_0x378159=!0x0);}return _0x378159;};_0x2b4f10['model']['document']['registerPostFixer'](_0x5f25f7=>{let _0x5c63f3=!0x1;for(const _0x63e216 of _0x2b4f10['model']['document']['differ']['getChanges']())if('insert'==_0x63e216['type']){if('tableRow'==_0x63e216['name']){for(const _0x4ad809 of _0x63e216['position']['nodeAfter']['getChildren']())_0x5c63f3=_0x5c63f3||_0x79deff(_0x4ad809,_0x5f25f7);}else'tableCell'==_0x63e216['name']&&(_0x5c63f3=_0x5c63f3||_0x79deff(_0x63e216['position']['nodeAfter'],_0x5f25f7));}return _0x5c63f3;});}['_getSuggestionCoords'](_0x5f5334){return this['_getCoordsForCells'](_0x5f5334['getRanges']()['map'](_0x991fdf=>_0x991fdf['start']['nodeAfter']));}}function Ee(_0x1f93b2){return Array['from'](new Set(_0x1f93b2)['values']());}class At extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x548fa3=this['editor'],_0x44b826=_0x548fa3['model']['document']['selection'],_0x1df8ca=_0x548fa3['locale'];if(!_0x548fa3['plugins']['has']('TableEditing'))return;const _0x3320ec=_0x548fa3['plugins']['get']('TrackChangesEditing'),_0x43cffb=_0x548fa3['plugins']['get']('TableUtils'),_0x3c317e=_0x548fa3['plugins']['get'](St);_0x3c317e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3320ec['enableCommand']('mergeTableCells',()=>{const _0x392f28=_0x43cffb['getSelectionAffectedTableCells'](_0x548fa3['model']['document']['selection']);_0x548fa3['model']['change'](()=>{_0x3320ec['markMultiRangeBlockFormat'](_0x392f28,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x548fa3['commands']['get']('mergeTableCells')['on']('execute',(_0x45e82a,_0x5cb562)=>{_0x548fa3['commands']['get']('trackChanges')['value']&&(_0x5cb562['length']>0x0&&_0x5cb562[_0x5cb562['length']-0x1]&&_0x5cb562[_0x5cb562['length']-0x1]['forceDefaultExecution']||_0x3320ec['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x45e82a['stop']());},{'priority':'highest'});for(const _0x29eb64 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x23fe58=_0x548fa3['commands']['get'](_0x29eb64);_0x3320ec['enableCommand'](_0x29eb64,()=>{const _0x108e05=_0x548fa3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5e3e16=>_0x5e3e16['is']('element','tableCell')),_0x2b8cb8=_0x23fe58['value'];_0x548fa3['model']['change'](()=>{_0x3320ec['markMultiRangeBlockFormat']([_0x108e05,_0x2b8cb8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x13c3f2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3f3e80=_0x548fa3['commands']['get'](_0x13c3f2);_0x3320ec['enableCommand'](_0x13c3f2,()=>{const _0xb9ba00=_0x43cffb['getSelectionAffectedTableCells'](_0x548fa3['model']['document']['selection'])[0x0],_0x1aa5b7=_0xb9ba00['findAncestor']('table'),{column:_0x365c83,row:_0x2bcdbb}=_0x43cffb['getCellLocation'](_0xb9ba00);let _0x2cd545=[];if('horizontally'==_0x3f3e80['direction']){const _0x319442=_0x43cffb['createTableWalker'](_0x1aa5b7,{'startRow':_0x2bcdbb,'endRow':_0x2bcdbb,'includeAllSlots':!0x0});_0x2cd545=Array['from'](_0x319442)['map'](_0x1a1be0=>_0x1a1be0['cell']);}else{const _0x26cffa=_0x43cffb['createTableWalker'](_0x1aa5b7,{'column':_0x365c83,'includeAllSlots':!0x0});_0x2cd545=Array['from'](_0x26cffa)['map'](_0x312c7e=>_0x312c7e['cell']);}_0x548fa3['model']['change'](_0x323bba=>{_0x3320ec['markBlockFormat'](_0x323bba['createRangeOn'](_0xb9ba00),{'commandName':_0x13c3f2,'commandParams':[]},_0x2cd545,_0x13c3f2);});});}_0x3320ec['descriptionFactory']['registerDescriptionCallback'](_0x1d14b2=>{if('formatBlock'!=_0x1d14b2['type']&&'formatInline'!=_0x1d14b2['type'])return;const {data:_0x5456ef}=_0x1d14b2;return _0x5456ef&&'mergeTableCells'==_0x5456ef['commandName']?{'type':'format','content':o(_0x1df8ca,'*Merge\x20cells*')}:void 0x0;}),_0x3320ec['descriptionFactory']['registerDescriptionCallback'](_0x38d970=>{if('formatBlock'!=_0x38d970['type']&&'formatInline'!=_0x38d970['type'])return;const {data:_0xb3b06d}=_0x38d970;return _0xb3b06d?'splitTableCellVertically'==_0xb3b06d['commandName']?{'type':'format','content':o(_0x1df8ca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb3b06d['commandName']?{'type':'format','content':o(_0x1df8ca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x535bd2=_0x3c317e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3cb66f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3cb66f,'accept',_0x535bd2);for(const _0x4ce1aa of['splitTableCellVertically','splitTableCellHorizontally'])_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ce1aa,'accept',_0x535bd2);_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2ce3ba=>{_0x548fa3['model']['change'](_0x501912=>{const _0x558f58=Array['from'](_0x44b826['getRanges']())['map'](_0x1a36d0=>_0x948f0b['fromRange'](_0x1a36d0));_0x501912['setSelection'](_0x2ce3ba),_0x548fa3['commands']['get']('mergeTableCells')['refresh'](),_0x548fa3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x38b18c=_0x558f58['filter'](_0x50ea1b=>'$graveyard'!=_0x50ea1b['root']['rootName']);_0x38b18c['length']>0x0&&_0x501912['setSelection'](_0x38b18c);for(const _0x3397ea of _0x558f58)_0x3397ea['detach']();});});for(const _0x595a30 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5cc816=_0x548fa3['commands']['get'](_0x595a30);_0x5cc816['on']('set:isEnabled',(_0x2763cf,_0x46c5e9,_0x1b7844)=>{if(_0x1b7844){const _0x176cd3=_0x548fa3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xaf0116=>_0xaf0116['is']('element','tableCell'));this['_areMergableCells'](_0x5cc816['value'],_0x176cd3)||(_0x2763cf['return']=!0x1,_0x2763cf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4e25d7=this['editor']['commands']['get']('mergeTableCells'),_0x3ace13=this['editor']['plugins']['get']('TableUtils');if(!_0x4e25d7['isEnabled'])return!0x1;const _0x1e5415=_0x3ace13['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33b1b8 of _0x1e5415)for(const _0x577e90 of _0x1e5415)if(_0x33b1b8!=_0x577e90&&!this['_areMergableCells'](_0x33b1b8,_0x577e90))return!0x1;return!0x0;}['_areMergableCells'](_0x514c29,_0x3229ab){const _0x563535=this['editor']['plugins']['get']('TrackChangesEditing'),_0x70067d=this['editor']['model']['createRangeOn'](_0x514c29),_0x2deb68=this['editor']['model']['createRangeOn'](_0x3229ab),_0x1cc677=new Set(),_0x43fd07=new Set();for(const _0x232aef of _0x563535['getSuggestions']())if(('insertion'==_0x232aef['type']||'deletion'==_0x232aef['type']||'mergeTableCells'==_0x232aef['subType'])&&_0x232aef['isInContent']){for(const _0x6e513e of _0x232aef['getRanges']())_0x6e513e['containsRange'](_0x70067d,!0x0)&&_0x1cc677['add'](_0x232aef['type']+':'+_0x232aef['author']['id']),_0x6e513e['containsRange'](_0x2deb68,!0x0)&&_0x43fd07['add'](_0x232aef['type']+':'+_0x232aef['author']['id']);}if(_0x1cc677['size']!=_0x43fd07['size'])return!0x1;for(const _0x24a844 of _0x1cc677)if(!_0x43fd07['has'](_0x24a844))return!0x1;return!0x0;}}class It extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x5d452d=this['editor'];if(!_0x5d452d['plugins']['has']('TableEditing'))return;const _0x3df145=_0x5d452d['locale'],_0x38e59d=_0x5d452d['plugins']['get']('TrackChangesEditing');_0x38e59d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x38e59d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x38e59d['registerBlockAttribute']('headingRows'),_0x38e59d['registerBlockAttribute']('headingColumns'),_0x38e59d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3df145,'FORMAT_HEADER_ROW')),_0x38e59d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3df145,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x374207=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d7032=this['editor']['plugins']['get']('TableUtils'),_0x432518=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x4f02b6({showActiveMarker:_0x3e7212=!0x0,setDataAttribute:_0x4ef56b=!0x0}={}){return(_0xda2eb8,_0x48c6b1,_0x5935ad)=>{const {type:_0x2d19b9,id:_0x44cf0d}=_0x374207['_splitMarkerName'](_0x48c6b1['markerName']),_0x36feeb=_0x374207['getSuggestion'](_0x44cf0d),_0x3b1834=_0x36feeb['data'];if('formatBlock'!=_0x36feeb['type']||!_0x3b1834||'setTableColumnHeader'!=_0x3b1834['commandName'])return;if(_0x48c6b1['item'])return void _0xda2eb8['stop']();if(!_0x5935ad['consumable']['consume'](_0x48c6b1['markerRange'],_0xda2eb8['name']))return;const _0x5243e3=_0x48c6b1['markerRange']['start']['nodeAfter'],_0x2a9b31=_0x48c6b1['markerRange']['end']['nodeBefore'],_0x56e545=_0x5243e3['parent']['parent'],{column:_0x162031}=_0x4d7032['getCellLocation'](_0x5243e3),{column:_0x33d49a}=_0x4d7032['getCellLocation'](_0x2a9b31);for(let _0x5d293d=_0x162031;_0x5d293d<=_0x33d49a;_0x5d293d++){const _0x467287=_0x4d7032['createTableWalker'](_0x56e545,{'column':_0x5d293d,'includeAllSlots':!0x1});for(const _0x2504ef of _0x467287){const _0x27246e=_0x2504ef['cell'],_0x42a63f=_0x5935ad['mapper']['toViewElement'](_0x27246e);_0x5935ad['writer']['addClass']('ck-suggestion-marker-'+_0x2d19b9,_0x42a63f),_0x4ef56b&&_0x5935ad['writer']['setAttribute']('data-suggestion',_0x44cf0d,_0x42a63f),_0x5935ad['mapper']['bindElementToMarker'](_0x42a63f,_0x48c6b1['markerName']),_0x3e7212&&(_0x374207['activeMarkers']['includes'](_0x48c6b1['markerName'])?_0x5935ad['writer']['addClass']('ck-suggestion-marker--active',_0x42a63f):_0x5935ad['writer']['removeClass']('ck-suggestion-marker--active',_0x42a63f));}}};}_0x374207['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x432518),_0x374207['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x432518),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f02b6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x510127,_0x412712,_0x366a63)=>{_0x366a63['options']['showSuggestionHighlights']&&_0x4f02b6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x510127,_0x412712,_0x366a63);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x44a806,_0x79d738,_0x54c027)=>{const {type:_0x3c5cf9,id:_0x182157}=_0x374207['_splitMarkerName'](_0x79d738['markerName']),_0x2f7541=_0x374207['getSuggestion'](_0x182157),_0x20cc40=_0x2f7541['data'];if('formatBlock'!=_0x2f7541['type']||!_0x20cc40||'setTableColumnHeader'!=_0x20cc40['commandName'])return;const _0x22b253=_0x54c027['mapper']['markerNameToElements'](_0x79d738['markerName']);if(_0x22b253){for(const _0x2e1cad of _0x22b253)_0x54c027['writer']['removeClass']('ck-suggestion-marker-'+_0x3c5cf9,_0x2e1cad),_0x54c027['writer']['removeClass']('ck-suggestion-marker--active',_0x2e1cad),_0x54c027['writer']['removeAttribute']('data-suggestion',_0x2e1cad),_0x54c027['mapper']['unbindElementFromMarkerName'](_0x2e1cad,_0x79d738['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a5287=this['editor'],_0x4dc34e=_0x1a5287['locale'];function _0x1153c3(_0x5e8808){return{'type':'format','content':o(_0x4dc34e,'*Format:*\x20%0',_0x5e8808)};}_0x1a5287['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a7344=>{if('formatBlock'!=_0x4a7344['type'])return;const {data:_0x4c51c2}=_0x4a7344;if(_0x4c51c2){if('setTableRowHeader'==_0x4c51c2['commandName']){const _0x59c008=_0x4c51c2['commandParams'][0x0]['forceValue'];return _0x1153c3(o(_0x4dc34e,_0x59c008?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4c51c2['commandName']){const _0x20de9b=_0x4c51c2['commandParams'][0x0]['forceValue'];return _0x1153c3(o(_0x4dc34e,_0x20de9b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3ac9a9=>[_0x3ac9a9,null]));class vt extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x1776ab=this['editor'];if(!_0x1776ab['plugins']['has']('TableClipboard'))return;const _0xfa8e11=_0x1776ab['plugins']['get']('TrackChangesEditing'),_0x4cc8e1=_0x1776ab['plugins']['get']('TableUtils'),_0xa9a577=_0x1776ab['plugins']['get'](St),_0x427397=_0x1776ab['plugins']['get']('TableClipboard');_0xa9a577['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1776ab['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1776ab['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2d3b22=null;_0x1776ab['model']['on']('insertContent',(_0x26017a,_0x324ab7)=>{const [_0x332400,_0x3f50d4]=_0x324ab7,_0x3b3838=_0x324ab7[_0x324ab7['length']-0x1];_0x3b3838&&_0x3b3838['forceDefaultExecution']||_0xfa8e11['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x46754e,_0x325484,_0x4ddbf5,_0xadde56,_0x442013){if(_0x325484&&!_0x325484['is']('documentSelection'))return!0x1;const _0x56e6d5=_0x442013['getTableIfOnlyTableInContent'](_0x46754e,_0x4ddbf5);if(!_0x56e6d5||!we(_0x56e6d5,void 0x0,_0xadde56))return!0x1;const _0x44d147=_0xadde56['getSelectionAffectedTableCells'](_0x4ddbf5['document']['selection']);if(!_0x44d147['length'])return!0x1;const _0x2d77b8=_0x44d147[0x0]['findAncestor']('table'),_0x283439=_0xadde56['getRowIndexes'](_0x44d147),_0x386884=_0xadde56['getColumnIndexes'](_0x44d147),_0x3f5905={'startRow':_0x283439['first'],'endRow':_0x283439['last'],'startColumn':_0x386884['first'],'endColumn':_0x386884['last']};return 0x1==_0x44d147['length']&&(_0x3f5905['endRow']+=_0xadde56['getRows'](_0x56e6d5)-0x1,_0x3f5905['endColumn']+=_0xadde56['getColumns'](_0x56e6d5)-0x1),we(_0x2d77b8,_0x3f5905,_0xadde56);}(_0x332400,_0x3f50d4,_0x1776ab['model'],_0x4cc8e1,_0x427397)&&(_0x26017a['stop'](),_0x2d3b22={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1776ab['model']['change'](()=>{_0x1776ab['model']['insertContent'](_0x324ab7[0x0],_0x324ab7[0x1],_0x324ab7[0x2],{'forceDefaultExecution':!0x0});const _0x598f8f=_0x27f732(),{rowInsertionRanges:_0x29e069,columnInsertionRanges:_0x278bd7,insertionRanges:_0x49dc69,deletionRanges:_0x58811b,cells:_0xc21a9e}=_0x2d3b22;_0x29e069['length']&&_0xfa8e11['markMultiRangeInsertion'](_0x29e069,'tablePasteRow',{'tablePasteChainId':_0x598f8f}),_0x278bd7['length']&&_0xfa8e11['markMultiRangeInsertion'](_0x278bd7,'tablePasteColumn',{'tablePasteChainId':_0x598f8f}),_0x49dc69['length']&&(_0xfa8e11['markMultiRangeInsertion'](_0x49dc69,'tablePaste',{'tablePasteChainId':_0x598f8f,'skipNestingCheck':!0x0}),_0x49dc69['forEach'](_0x54a87a=>_0x54a87a['detach']?.())),_0x58811b['length']&&(_0xfa8e11['markMultiRangeDeletion'](_0x58811b,'tablePaste',{'tablePasteChainId':_0x598f8f,'skipNestingCheck':!0x0}),_0x58811b['forEach'](_0x2ad455=>_0x2ad455['detach']?.()));const _0x3b881c=_0xfa8e11['markMultiRangeBlockFormat'](_0xc21a9e['map'](({element:_0xc60b9c})=>_0xc60b9c),{'formatGroupId':_0x27f732()},[],'tablePasteCell',{'tablePasteChainId':_0x598f8f});if(_0x3b881c){const _0x2deda0=_0x3b881c['getMarkers'](),_0x19ec05=[];for(const {element:_0x39300b,attributes:_0x201370}of _0xc21a9e){if(!_0x201370)continue;const _0x33561c=_0x1776ab['model']['createRangeOn'](_0x39300b),_0x314883=_0x2deda0['find'](_0x367a3c=>_0x367a3c['getRange']()['isEqual'](_0x33561c));_0x314883&&_0x19ec05['push']([_0x314883['name'],_0x201370]);}_0x19ec05['length']&&_0x3b881c['setAttribute']('markerAttributes',Object['fromEntries'](_0x19ec05));}_0x2d3b22=null;}));},{'priority':_0x200434['high']+0xa}),_0x1776ab['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x25aedb,_0x2a5ff1)=>{const [_0x3f4066,_0x302cd6,,_0x5b0500]=_0x2a5ff1;if(!_0x2d3b22)return;_0x25aedb['stop']();const _0x2901be=_0x3f4066['cell'],_0x3b34f4=_0x302cd6,_0x1d803d=Pe(_0x2901be),_0x3e069f=Pe(_0x3b34f4);_0x25aedb['return']=_0x2901be;let _0x474801=null,_0x3712d5=null;if(_0x3e069f||_0x1d803d){if(_0x1d803d&&!_0x3e069f){_0x5b0500['remove'](_0x2901be['getChild'](0x0));for(const _0x5a632a of Array['from'](_0x3b34f4['getChildren']()))_0x5b0500['insert'](_0x5a632a,_0x2901be,'end');const _0x462c8b=_0x2d3b22['rowInsertionIndexes']['includes'](_0x3f4066['row']),_0x416b23=_0x2d3b22['columnInsertionIndexes']['includes'](_0x3f4066['column']);_0x462c8b||_0x416b23||(_0x474801=_0x948f0b['fromRange'](_0x5b0500['createRangeIn'](_0x2901be)));}else _0x3e069f&&!_0x1d803d&&(_0x3712d5=_0x5b0500['createRangeIn'](_0x2901be));}else{const _0x2a6de6=_0x5b0500['createElement']('tableCellSuggestion'),_0x130907=_0x5b0500['createElement']('tableCellSuggestion');_0x5b0500['wrap'](_0x5b0500['createRangeIn'](_0x2901be),_0x130907),_0x5b0500['insert'](_0x2a6de6,_0x2901be,0x0);for(const _0x4be5f0 of Array['from'](_0x3b34f4['getChildren']()))_0x5b0500['insert'](_0x4be5f0,_0x2a6de6,'end');_0x474801=_0x948f0b['fromRange'](_0x5b0500['createRangeOn'](_0x2a6de6)),_0x3712d5=_0x948f0b['fromRange'](_0x5b0500['createRangeOn'](_0x130907));}const _0x11aad6=Array['from'](_0x3b34f4['getAttributes']())['filter'](([_0x41c85a])=>ge['includes'](_0x41c85a));_0x2d3b22['cells']['push']({'element':_0x2901be,'attributes':_0x11aad6['length']?Object['fromEntries'](_0x11aad6):null}),_0x474801&&_0x2d3b22['insertionRanges']['push'](_0x474801),_0x3712d5&&_0x2d3b22['deletionRanges']['push'](_0x3712d5);},{'priority':'high'}),_0x4cc8e1['on']('insertColumns',(_0x1df3ab,_0x35205f)=>{const [_0x56e010,_0x31de98={}]=_0x35205f;if(!_0x2d3b22)return;const _0x5b81f8=_0x31de98['at']||0x0,_0x35a308=_0x31de98['columns']||0x1;_0x2d3b22['columnInsertionIndexes']=new Array(_0x35a308)['fill'](_0x5b81f8)['map']((_0x4a3e61,_0x2bc784)=>_0x4a3e61+_0x2bc784);for(const {cell:_0x490768}of _0x4cc8e1['createTableWalker'](_0x56e010,{'startColumn':_0x5b81f8,'endColumn':_0x5b81f8+_0x35a308-0x1}))_0x2d3b22['columnInsertionRanges']['push'](_0x1776ab['model']['createRangeOn'](_0x490768));},{'priority':'low'}),_0x4cc8e1['on']('insertRows',(_0x1e0eb8,_0xf87303)=>{const [_0x5181e6,_0x34b793={}]=_0xf87303;if(!_0x2d3b22)return;const _0x594414=_0x34b793['at']||0x0,_0x17f725=_0x34b793['rows']||0x1;_0x2d3b22['rowInsertionIndexes']=new Array(_0x17f725)['fill'](_0x594414)['map']((_0xd4439f,_0x483542)=>_0xd4439f+_0x483542);for(const {cell:_0x4a031e}of _0x4cc8e1['createTableWalker'](_0x5181e6,{'startRow':_0x594414,'endRow':_0x594414+_0x17f725-0x1}))_0x2d3b22['rowInsertionRanges']['push'](_0x1776ab['model']['createRangeOn'](_0x4a031e));},{'priority':'low'}),_0xfa8e11['descriptionFactory']['registerDescriptionCallback'](_0x5e6d41=>{if(_0x5e6d41['subType']&&_0x5e6d41['subType']['startsWith']('tablePaste'))return _0x5e6d41['previous']?{}:{'type':'insertion','content':o(_0x1776ab['locale'],'*Replace\x20table\x20cells*')};});const _0x5e4d25=()=>!0x1;for(const _0x19a1ac of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion',_0x19a1ac,'join',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('deletion',_0x19a1ac,'join',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19a1ac,'join',_0x5e4d25);_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x7d3859,_0x446104,_0x1402c0)=>{const _0x21ad4b=_0x7d3859['map'](_0x506f51=>_0x506f51['getContainedElement']())['filter'](_0x4ee19a=>_0x4ee19a),_0x3c380e=new Map(_0x21ad4b['map'](_0x415a48=>[_0x415a48,null]));if(_0x2d3b22){for(const {element:_0x32b1ed,attributes:_0x5a2fd}of _0x2d3b22['cells'])_0x5a2fd&&_0x3c380e['set'](_0x32b1ed,_0x5a2fd);}else{if(_0x1402c0&&_0x1402c0['markerAttributes'])for(const [_0x2bd4bc,_0x32e1f3]of Object['entries'](_0x1402c0['markerAttributes'])){const _0x1184a9=_0x1776ab['model']['markers']['get'](_0x2bd4bc),_0x3d1aec=_0x1184a9?_0x1184a9['getRange']()['getContainedElement']():null;_0x3d1aec&&_0x3c380e['set'](_0x3d1aec,_0x32e1f3);}}_0x1776ab['model']['change'](_0x1fcbe0=>{for(const [_0x131277,_0xa4d065]of _0x3c380e)_0x1fcbe0['setAttributes']({...Ce,..._0xa4d065},_0x131277);});});const _0x48695e=(_0x122672,_0x369f04)=>{_0xfa8e11['_suggestionFactory']['registerCustomCallback'](_0x122672,'tablePaste',_0x369f04,(_0x5996f1,_0x152919,_0x2ee717)=>{_0x1776ab['model']['change'](_0x1e6e77=>{const _0x58e571=[];for(const _0x2ef86c of _0x5996f1){const _0x410c22=_0x2ef86c['start']['nodeAfter'];_0x410c22['is']('element','tableCellSuggestion')&&_0x58e571['push'](_0x410c22);}_0xfa8e11['_suggestionFactory']['getSuggestionCallback'](_0x122672,null,_0x369f04)(_0x5996f1,_0x152919,_0x2ee717);for(const _0x5c7101 of _0x58e571)'$graveyard'!=_0x5c7101['root']['rootName']&&_0x1e6e77['unwrap'](_0x5c7101);});});};_0x48695e('insertion','accept'),_0x48695e('insertion','discard'),_0x48695e('deletion','accept'),_0x48695e('deletion','discard'),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x7f2e84=>{const _0x2bccf8=_0x7f2e84['map'](_0x491d3e=>_0x491d3e['getContainedElement']()),_0x3e787e=_0x2bccf8[0x0]['findAncestor']('table'),{minRow:_0x4664b4,maxRow:_0x41cce0}=_0xa9a577['_getCoordsForCells'](_0x2bccf8);_0x4cc8e1['removeRows'](_0x3e787e,{'at':_0x4664b4,'rows':_0x41cce0-_0x4664b4+0x1});}),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x58fd1e=>{const _0x59881c=_0x58fd1e['map'](_0x35849f=>_0x35849f['getContainedElement']()),_0x4dbddf=_0x59881c[0x0]['findAncestor']('table'),{minColumn:_0x574981,maxColumn:_0x5dcc59}=_0xa9a577['_getCoordsForCells'](_0x59881c);_0x4cc8e1['removeColumns'](_0x4dbddf,{'at':_0x574981,'columns':_0x5dcc59-_0x574981+0x1});});const _0x41c85f=(_0x5ceac7,_0x2f97e8)=>{if(!_0x2f97e8['subType']||!_0x2f97e8['subType']['startsWith']('tablePaste'))return;const _0x183e96=_0x2f97e8['attributes']['tablePasteChainId'],_0x3f2152=_0xfa8e11['getSuggestions']()['filter'](_0x370436=>_0x370436['isInContent']&&_0x370436['attributes']&&_0x370436['attributes']['tablePasteChainId']==_0x183e96);_0x3f2152['length']&&_0x2f97e8['getAllAdjacentSuggestions']()['length']!=_0x3f2152['length']&&_0x3f2152['reduce']((_0x5afb41,_0x246ce2)=>(_0x5afb41['next']=_0x246ce2,_0x246ce2['previous']=_0x5afb41,_0x246ce2));};function _0x114c9a(_0x129573,_0x47934b=!0x0){const {id:_0x3f675c}=_0xfa8e11['_splitMarkerName'](_0x129573['markerName']),_0x547861=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3868c6=_0xfa8e11['activeMarkers']['includes'](_0x129573['markerName']);return _0x3868c6&&_0x547861['push']('ck-suggestion-marker--active'),{'classes':_0x547861,'attributes':{'data-suggestion':_0x3f675c},'priority':_0x3868c6&&_0x47934b?0xbc2:0xbb8};}_0xfa8e11['on']('suggestionLoaded',_0x41c85f,{'priority':'high'}),_0xfa8e11['on']('suggestionUnloaded',_0x41c85f,{'priority':'high'}),_0x1776ab['model']['document']['registerPostFixer'](()=>{let _0x20808a=!0x1;const _0x49b78b=Array['from'](_0x1776ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x289c38,data:_0x7ed752}of _0x49b78b){const {group:_0x4f44ea,type:_0x195b5d,id:_0x31b6f7}=_0xfa8e11['_splitMarkerName'](_0x289c38);if('suggestion'!=_0x4f44ea||'deletion'!=_0x195b5d||_0x7ed752['oldRange'])continue;if(!_0xfa8e11['hasSuggestion'](_0x31b6f7))continue;const _0x51bb1e=_0xfa8e11['getSuggestion'](_0x31b6f7)['getRanges'](),_0x16f5d5=_0x1776ab['plugins']['get']('Users')['me'];for(const _0x316e17 of _0xfa8e11['getSuggestions']()){if(!_0x316e17['isInContent']||_0x316e17['author']!=_0x16f5d5)continue;if('formatBlock'!=_0x316e17['type']||'tablePasteCell'!=_0x316e17['subType'])continue;if(_0x316e17['getRanges']()['every'](_0x44134a=>_0x51bb1e['some'](_0x5a1816=>_0x5a1816['containsRange'](_0x44134a,!0x0)))){for(const _0x318055 of _0x316e17['getAllAdjacentSuggestions']())_0x318055['isInContent']&&(_0x318055['discard'](),_0x20808a=!0x0);}}}return _0x20808a;}),_0x1776ab['model']['document']['registerPostFixer'](_0x5dc406=>{const _0x35bb71=_0x1776ab['commands']['get']('redo');if(!_0x35bb71||!_0x35bb71['_createdBatches']['has'](_0x5dc406['batch']))return!0x1;let _0x57d6d4=!0x1;const _0x2a8cce=_0x1776ab['plugins']['get']('Users')['me'],_0x4e7bde=_0x1776ab['model']['document']['differ']['getChanges'](),_0x19525a=Array['from'](_0x1776ab['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d11e9,data:_0x15a42a})=>{const {group:_0x1fad4b,subType:_0x52fe55,authorId:_0x24f8e6}=_0xfa8e11['_splitMarkerName'](_0x3d11e9);return'suggestion'==_0x1fad4b&&'tablePaste'==_0x52fe55&&_0x24f8e6==_0x2a8cce['id']&&!_0x15a42a['oldRange'];});for(const _0x4a81f5 of _0x4e7bde){if('insert'!=_0x4a81f5['type']||'tableCellSuggestion'!=_0x4a81f5['name']||0x1!=_0x4a81f5['length'])continue;const _0x305f19=_0x5dc406['createRange'](_0x4a81f5['position'],_0x4a81f5['position']['getShiftedBy'](0x1));if(!_0x19525a['find'](({data:_0x56853b})=>_0x56853b['newRange']['isEqual'](_0x305f19))){for(const {name:_0x3d2466,data:_0x54af6c}of _0x19525a)if(_0x305f19['containsRange'](_0x54af6c['newRange'])){_0x5dc406['updateMarker'](_0x3d2466,{'range':_0x305f19}),_0x57d6d4=!0x0;break;}}}return _0x57d6d4;}),_0x1776ab['model']['document']['registerPostFixer'](_0x4ee4d0=>{let _0x47d0b5=!0x1;const _0x25f779=_0x1776ab['plugins']['get']('Users')['me'],_0x8567c9=_0xfa8e11['getSuggestions']()['filter'](_0x5a64ce=>_0x5a64ce['isInContent']&&_0x5a64ce['author']==_0x25f779),_0x3a73a2=new Set(),_0x1dcd0f=new Set();for(const _0x1019c7 of _0x8567c9)if('tablePaste'==_0x1019c7['subType'])for(const _0xb8bbed of _0x1019c7['getMarkers']()){const _0x511757=_0xb8bbed['getRange']()['getContainedElement']();if(_0x511757){if(_0x511757['is']('element','tableCellSuggestion')&&Pe(_0x511757)){_0x1019c7['removeMarker'](_0xb8bbed['name']),_0x3a73a2['add'](_0x511757),_0x47d0b5=!0x0;const _0x342c02=_0x511757['nextSibling'],_0x4f7ce4=_0x511757['previousSibling'],_0x102bb3=_0x342c02&&_0x342c02['is']('element','tableCellSuggestion'),_0x25fcef=_0x4f7ce4&&_0x4f7ce4['is']('element','tableCellSuggestion');_0x102bb3&&!_0x3a73a2['has'](_0x342c02)&&_0x1dcd0f['add'](_0x342c02),_0x25fcef&&!_0x3a73a2['has'](_0x4f7ce4)&&_0x1dcd0f['add'](_0x4f7ce4);}else _0x511757['is']('element','paragraph')&&_0x511757['isEmpty']&&(_0x1019c7['removeMarker'](_0xb8bbed['name']),_0x47d0b5=!0x0);}}else{if('tablePasteCell'==_0x1019c7['subType']){if(!_0x1019c7['attributes']||!_0x1019c7['attributes']['tablePasteChainId'])continue;const _0x4ac58e=_0x1019c7['attributes']['markerAttributes'];if(_0x4ac58e&&Object['keys'](_0x4ac58e)['length'])continue;const _0x6020d5=_0x1019c7['attributes']['tablePasteChainId'];let _0x37c6a1=!0x0,_0x2ad168=!0x0;for(const _0xe50f3d of _0x8567c9)if(_0xe50f3d['subType']&&_0xe50f3d['subType']['startsWith']('tablePaste')){if(!_0xe50f3d['attributes']['tablePasteChainId']){_0x2ad168=!0x1;break;}if(_0xe50f3d['id']!=_0x1019c7['id']&&_0xe50f3d['attributes']['tablePasteChainId']==_0x6020d5){_0x37c6a1=!0x1;break;}}_0x2ad168&&_0x37c6a1&&(_0x1019c7['removeMarkers'](),_0x47d0b5=!0x0);}}for(const _0x22ff78 of _0x3a73a2)_0x4ee4d0['remove'](_0x22ff78);for(const _0x256fe4 of _0x1dcd0f)_0x4ee4d0['unwrap'](_0x256fe4);return _0x47d0b5;}),_0x1776ab['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3d8e67,_0x23d222)=>_0x114c9a(_0x3d8e67),'converterPriority':'high'}),_0x1776ab['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38bfd1,_0xd9214d)=>_0xd9214d['options']['showSuggestionHighlights']?_0x114c9a(_0x38bfd1,!0x1):null,'converterPriority':'high'});const _0x576392=_0x1776ab['editing']['view'];this['listenTo'](_0x576392['document'],'clipboardOutput',(_0x225d67,_0x16da3d)=>{const _0x3c4a2c=[];for(const _0x14585b of _0x576392['createRangeIn'](_0x16da3d['content'])['getItems']())_0x14585b['is']('element','suggestion-td')&&_0x3c4a2c['push'](_0x14585b);_0x576392['change'](_0x187b96=>{for(const _0x987471 of _0x3c4a2c)_0x187b96['move'](_0x187b96['createRangeIn'](_0x987471),_0x187b96['createPositionBefore'](_0x987471)),_0x187b96['remove'](_0x987471);});});}}function Pe(_0x2711bf){if(_0x2711bf['isEmpty'])return!0x0;const _0x36973d=_0x2711bf['getChild'](0x0);return _0x36973d['is']('element','paragraph')&&_0x36973d['isEmpty'];}function we(_0x3c19c5,_0x541a0f={},_0x5910bc){for(const {isAnchor:_0x238931,cellHeight:_0x5944b8,cellWidth:_0x1d1fff}of _0x5910bc['createTableWalker'](_0x3c19c5,{'includeAllSlots':!0x0,..._0x541a0f}))if(!_0x238931||0x1!=_0x5944b8||0x1!=_0x1d1fff)return!0x1;return!0x0;}class Ct extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x8cf208=this['editor']['plugins']['get']('TrackChangesEditing');_0x8cf208['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x8cf208['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x8cf208['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8cf208['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x8cf208['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x8cf208['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x10c67a,_0x53d45c){const _0x1520dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b8fa1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x114e0f=_0x53d45c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f916f=_0x3b8fa1['getColumnGroupElement'](_0x114e0f);let _0x16b42e=_0x3f916f?_0x3b8fa1['getTableColumnsWidths'](_0x3f916f):null,_0x3bad62=_0x114e0f['getAttribute']('tableWidth')||null;const _0x7a0fb9=_0x53d45c['tableWidth']||_0x3bad62,_0x10d53b=_0x53d45c['columnWidths']||_0x16b42e,_0x3a8d8f=this['editor']['plugins']['get']('Users')['me'];for(const _0x119a9f of _0x1520dd['getSuggestions']()){const _0x16dcef=_0x119a9f['getContainedElement']();if('resizeTable'===_0x119a9f['subType']&&_0x16dcef===_0x114e0f){_0x119a9f['author']!==_0x3a8d8f&&_0x119a9f['discard']();const _0x171b86=_0x119a9f['data']['commandParams'];_0x3bad62=_0x171b86[0x0]['tableWidth'],_0x16b42e=_0x171b86[0x0]['columnWidths'];break;}}_0x10c67a({'table':_0x114e0f,'tableWidth':_0x7a0fb9,'columnWidths':_0x10d53b}),_0x1520dd['markBlockFormat'](_0x114e0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3bad62,'columnWidths':_0x16b42e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x14a7cd){if('formatBlock'!=_0x14a7cd['type']&&'formatInline'!=_0x14a7cd['type'])return;const {data:_0x228bb1}=_0x14a7cd;if(_0x228bb1&&'resizeTable'===_0x228bb1['formatGroupId']){const _0xc030d9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xc030d9)};}}}class _t extends _0x15c086{['afterInit'](){const _0x41be26=this['editor'];_0x41be26['plugins']['has']('Template')&&_0x41be26['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x15c086{['afterInit'](){const _0x345313=this['editor'];if(!_0x345313['commands']['get']('insertTableOfContents'))return;_0x345313['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x59afbc=_0x345313['plugins']['get']('TrackChangesEditing'),_0x4fc344=_0x345313['locale'];_0x59afbc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1adcd3=>o(_0x4fc344,'ELEMENT_TABLE_OF_CONTENTS',_0x1adcd3));}}class Nt extends _0x15c086{['afterInit'](){const _0x5733fd=this['editor'];if(!_0x5733fd['plugins']['has']('Title'))return;const _0x629e3=_0x5733fd['plugins']['get']('TrackChangesEditing');_0x629e3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5733fd['locale'],'ELEMENT_TITLE')),_0x5733fd['model']['document']['registerPostFixer'](_0x2b0add=>{let _0x5414ed=!0x1;const _0x21d969=Array['from'](_0x5733fd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15def7,data:_0x22775e}of _0x21d969){const {group:_0x119fb8}=_0x629e3['_splitMarkerName'](_0x15def7);if('suggestion'!==_0x119fb8||!_0x22775e['newRange'])continue;const _0x87296=_0x22775e['newRange'],_0x3f2708=_0x87296['end']['nodeBefore'];if(!_0x3f2708||!_0x3f2708['is']('element','title-content'))continue;if(!_0x87296['start']['isTouching'](_0x87296['end']))continue;const _0xa3a815=_0x5733fd['model']['schema']['getNearestSelectionRange'](_0x87296['end'],'forward');if(_0xa3a815&&_0xa3a815['isCollapsed']){const _0x2f29da=_0x2b0add['createRange'](_0x87296['start'],_0xa3a815['start']);_0x2f29da['isEqual'](_0x87296)||(_0x2b0add['updateMarker'](_0x15def7,{'range':_0x2f29da}),_0x5414ed=!0x0);}_0x5414ed||(_0x2b0add['removeMarker'](_0x15def7),_0x5414ed=!0x0);}return _0x5414ed;});}}class Mt extends _0x15c086{['afterInit'](){const _0x1a0e28=this['editor'],_0x1f6b3d=_0x1a0e28['plugins']['get']('TrackChangesEditing');_0x1a0e28['plugins']['has']('UndoEditing')&&(_0x1f6b3d['enableCommand']('undo'),_0x1f6b3d['enableCommand']('redo'));}}class $t extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x513057=this['editor'];if(!_0x513057['plugins']['has']('TableCaptionEditing'))return;_0x513057['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x15c086{['tableProperties'];['tableCellProperties'];constructor(_0x1749ac){super(_0x1749ac),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 _0x51db46=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x477e0d of this['tableProperties'])_0x51db46['enableCommand'](_0x477e0d,(_0x5639c2,_0x2526d2)=>{const _0x591f05=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x477e0d,[_0x591f05],this['tableProperties'],'tableProperties',_0x5639c2,_0x2526d2);});_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x51db46['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4c0e4a,_0x390c67)=>this['handleDiscardAction'](this['tableProperties'],_0x4c0e4a,_0x390c67)),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12f8ea of this['tableCellProperties'])_0x51db46['enableCommand'](_0x12f8ea,(_0x433e1d,_0x337ced)=>{const _0x4d18b6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12f8ea,_0x4d18b6,this['tableCellProperties'],'tableCellProperties',_0x433e1d,_0x337ced);});_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x51db46['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2a76c3,_0x3b9d8f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2a76c3,_0x3b9d8f)),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x51db46['descriptionFactory']['registerDescriptionCallback'](_0x1fe2ba=>this['handleSuggestionDescription'](_0x1fe2ba));}['_handlePropertyChange'](_0x4c1cd3,_0x5c8068,_0x2f6a94,_0x17c7d3,_0x794cdf,_0x7d7c5b){const _0x12eede=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x7d7c5b['batch'],()=>{for(const _0x103007 of _0x5c8068){if(this['_getSuggestion'](_0x103007,_0x17c7d3))_0x794cdf(_0x7d7c5b);else{const _0x2f61d0={};for(const _0x694e91 of _0x2f6a94){const _0x3c4a44=_0x103007['getAttribute'](_0x694e91);void 0x0!==_0x3c4a44&&(_0x2f61d0[_0x694e91]=_0x3c4a44);}_0x794cdf(_0x7d7c5b),_0x12eede['markBlockFormat'](_0x103007,{'commandParams':[_0x2f61d0]},[],_0x17c7d3);}}});}['handleDiscardAction'](_0x1df6be,_0x64904e,_0x4de6bd){const _0x4eeba5=_0x64904e[0x0]['start']['nodeAfter'],_0x301a4d=_0x4de6bd['commandParams'][0x0];this['editor']['model']['change'](_0x46aa1d=>{for(const _0x1e7e94 of _0x1df6be)void 0x0!==_0x301a4d[_0x1e7e94]?_0x46aa1d['setAttribute'](_0x1e7e94,_0x301a4d[_0x1e7e94],_0x4eeba5):_0x46aa1d['removeAttribute'](_0x1e7e94,_0x4eeba5);});}['handleSuggestionDescription'](_0x3467fc){if(_0x3467fc['data'])switch(_0x3467fc['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'](_0x363863,_0x4f9843){const _0x4e98eb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x269803 of _0x4e98eb['getSuggestions']({'skipNotAttached':!0x0})){const _0x43ec6b=_0x269803['getContainedElement']();if(_0x269803['subType']===_0x4f9843&&_0x43ec6b===_0x363863)return _0x269803;}return null;}}const m='$elementName';class p extends _0x15c086{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x391bb8,_0x159dc3,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,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x59bd3e){function _0x18f6da(_0x340367){return _0x340367['map'](_0x352fc4=>String['fromCharCode'](_0x352fc4))['join']('');}super(_0x59bd3e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x52d663,_0x1269f9,_0xe452d6,_0x43ce7c)=>{this['_model']['change'](()=>{for(const _0x5e9df7 of[..._0x43ce7c,..._0xe452d6])this['_model']['markers']['has'](_0x5e9df7)&&_0x59bd3e['editing']['reconvertMarker'](_0x5e9df7);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x59bd3e['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(),_0x59bd3e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x59bd3e['config']['get']('trackChanges.trackFormatChanges'),_0x59bd3e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x59bd3e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x59bd3e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x18f6da([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x18f6da([0x34,0x30,0x34,0x38,0x31,0x34,0x34,0x30]);}['init'](){const _0x94d4b7=this['editor'],_0x1c39c4=(_0x1473a5,_0x575c49)=>{if('attribute'!=_0x1473a5)return'ck-suggestion-marker-'+_0x1473a5;const _0xb4a941=_0x575c49['split']('|')[0x0];return this['_isBlockAttribute'](_0xb4a941)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x94d4b7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x29339e=>{const {id:_0xd05fee,type:_0x1afb79,subType:_0x69d425}=this['_splitMarkerName'](_0x29339e['markerName']),_0x297372=['ck-suggestion-marker',_0x1c39c4(_0x1afb79,_0x69d425)];let _0xeec419=0xbb8;return this['activeMarkers']['includes'](_0x29339e['markerName'])&&(_0x297372['push']('ck-suggestion-marker--active'),_0xeec419=0xbc2),'deletion'==_0x1afb79&&(_0xeec419+=0x5),{'classes':_0x297372,'attributes':{'data-suggestion':_0xd05fee},'priority':_0xeec419};}}),_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x28c251=>{_0x28c251['on']('addMarker:suggestion',(_0x4d1596,_0x408a58,_0x403b4d)=>{if(!_0x403b4d['options']['showSuggestionHighlights'])return;const _0x29650e=_0x408a58['item'];if(!_0x29650e)return;const _0xed272e=_0x403b4d['mapper']['toViewElement'](_0x29650e);_0x94d4b7['model']['schema']['isObject'](_0x29650e)&&_0xed272e&&!_0xed272e['getCustomProperty']('widget')&&_0xed272e['is']('containerElement')&&_0xb67c89(_0xed272e,_0x403b4d['writer']);},{'priority':'high'});}),_0x94d4b7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x50a6a8,_0x537355)=>{if(!_0x537355['options']['showSuggestionHighlights'])return null;const {type:_0x2174d2,subType:_0x938e79}=this['_splitMarkerName'](_0x50a6a8['markerName']);return{'classes':['ck-suggestion-marker',_0x1c39c4(_0x2174d2,_0x938e79)],'priority':0xbb8};}});const _0xbd3ce9=({showActiveMarkers:_0x1f84f7=!0x0,isAttributeSuggestion:_0x5b25bc=!0x1}={})=>(_0x11b37b,_0x471bbf,_0x1a8df1)=>{if(!_0x471bbf['item'])return;const {id:_0x1de24c}=this['_splitMarkerName'](_0x471bbf['markerName']);if(_0x5b25bc){const _0x21bbc9=this['_suggestions']['get'](_0x1de24c),_0x3e35ce=this['_getAttributeKey'](_0x21bbc9);if(!this['_isBlockAttribute'](_0x3e35ce))return;}if(_0x471bbf['item']['is']('selection'))return void _0x1a8df1['consumable']['consume'](_0x471bbf['item'],_0x11b37b['name']);const _0xab104c=_0x1a8df1['mapper']['toViewElement'](_0x471bbf['item']);if(_0x471bbf['item']['is']('element')&&_0x94d4b7['model']['schema']['isBlock'](_0x471bbf['item'])&&!_0xab104c['getCustomProperty']('addHighlight')){_0x1a8df1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xab104c),_0x1a8df1['writer']['setAttribute']('data-suggestion',_0x1de24c,_0xab104c),_0x1a8df1['mapper']['bindElementToMarker'](_0xab104c,_0x471bbf['markerName']),_0x1f84f7&&(this['activeMarkers']['includes'](_0x471bbf['markerName'])?_0x1a8df1['writer']['addClass']('ck-suggestion-marker--active',_0xab104c):_0x1a8df1['writer']['removeClass']('ck-suggestion-marker--active',_0xab104c));for(const _0x3b6291 of _0x94d4b7['model']['createRangeIn'](_0x471bbf['item'])['getItems']())_0x1a8df1['consumable']['consume'](_0x3b6291,_0x11b37b['name']);_0x1a8df1['consumable']['consume'](_0x471bbf['item'],_0x11b37b['name']);}};_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x363417=>{_0x363417['on']('addMarker:suggestion:formatBlock',(_0x2caff0,_0x3d2955,_0x5192c3)=>{_0x5192c3['options']['showSuggestionHighlights']&&_0xbd3ce9({'showActiveMarkers':!0x1})(_0x2caff0,_0x3d2955,_0x5192c3);},{'priority':'highest'});}),_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x2f1f27=>{_0x2f1f27['on']('addMarker:suggestion:attribute',(_0x91d1bc,_0x54566f,_0x400690)=>{_0x400690['options']['showSuggestionHighlights']&&_0xbd3ce9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x91d1bc,_0x54566f,_0x400690);},{'priority':'highest'});}),_0x94d4b7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3c6320,_0x22fca8)=>_0x22fca8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3c6320['substr'](0xb)}}),_0x94d4b7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ad7b0,{writer:_0x1cbe22})=>{let _0x3bf26a='suggestion:'+_0x3ad7b0['getAttribute']('suggestion-type')+':'+_0x3ad7b0['getAttribute']('id');return _0x3ad7b0['getAttribute']('marker-count')&&(_0x3bf26a+=':'+_0x3ad7b0['getAttribute']('marker-count')),_0x1cbe22['createElement']('$marker',{'data-name':_0x3bf26a});}}),_0x94d4b7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x369b8b=>{_0x369b8b['on']('addMarker:suggestion:formatBlock',_0xbd3ce9(),{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x2bd565=>{_0x2bd565['on']('addMarker:suggestion:attribute',_0xbd3ce9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x1dadd1=>{_0x1dadd1['on']('removeMarker:suggestion:formatBlock',(_0xb3da7a,_0x3d76e6,_0x575553)=>{const _0x53ff83=_0x575553['mapper']['markerNameToElements'](_0x3d76e6['markerName']);if(_0x53ff83){for(const _0x3c302f of _0x53ff83)_0x3c302f['getCustomProperty']('addHighlight')||(_0x575553['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c302f),_0x575553['writer']['removeAttribute']('data-suggestion',_0x3c302f),_0x575553['mapper']['unbindElementFromMarkerName'](_0x3c302f,_0x3d76e6['markerName']));}},{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x20187a=>{_0x20187a['on']('removeMarker:suggestion:attribute',(_0x2f5b97,_0x321135,_0x3cadaf)=>{const _0x55268e=_0x3cadaf['mapper']['markerNameToElements'](_0x321135['markerName']);if(!_0x55268e)return;const {id:_0x3ad5e2}=this['_splitMarkerName'](_0x321135['markerName']),_0xc0ddb8=this['_suggestions']['get'](_0x3ad5e2),_0x4d4ae8=this['_getAttributeKey'](_0xc0ddb8);if(this['_isBlockAttribute'](_0x4d4ae8)){for(const _0x348810 of _0x55268e)_0x348810['getCustomProperty']('addHighlight')||(_0x3cadaf['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x348810),_0x3cadaf['writer']['removeAttribute']('data-suggestion',_0x348810),_0x3cadaf['mapper']['unbindElementFromMarkerName'](_0x348810,_0x321135['markerName']));}},{'priority':'high'});}),_0x94d4b7['model']['document']['registerPostFixer'](_0x28fbad=>{let _0x12f5c7=!0x1;const _0xab03d6=Array['from'](_0x94d4b7['model']['document']['differ']['getChangedMarkers']()),_0x11663b=new Set();for(const {name:_0x286172,data:_0x4f41e0}of _0xab03d6){const {group:_0x5a2229,type:_0x298381,subType:_0x4e45f8,id:_0x20733c}=this['_splitMarkerName'](_0x286172);if('suggestion'!==_0x5a2229)continue;const _0x283feb=this['_suggestions']['get'](_0x20733c);if(null!=_0x4f41e0['newRange']){'formatInline'==_0x298381&&(_0x12f5c7=_0x12f5c7||Vt(_0x4f41e0['newRange'],_0x286172,_0x28fbad,_0x94d4b7['model']['schema']));const _0x52725a='attribute'==_0x298381&&this['_isBlockAttribute'](_0x4e45f8['split']('|')[0x0]);if(_0x4f41e0['newRange']['isCollapsed']||'$graveyard'==_0x4f41e0['newRange']['root']['rootName']||'formatBlock'==_0x298381&&!Ot(_0x4f41e0['newRange'])||_0x52725a&&!Ot(_0x4f41e0['newRange'])||'deletion'==_0x298381&&!(!Et(_0x58812b=_0x4f41e0['newRange'])&&!function(_0x8646a2){return _0x8646a2['start']['parent']==_0x8646a2['end']['nodeBefore']&&_0x8646a2['start']['isAtEnd'];}(_0x58812b)))_0x28fbad['removeMarker'](_0x286172),_0x12f5c7=!0x0;else{if(!_0x283feb||!_0x283feb['isInContent'])continue;_0x11663b['add'](_0x283feb);}}}var _0x58812b;return _0x11663b['size']>0x0&&(_0x12f5c7=!!this['_joinWithAdjacentSuggestions'](_0x11663b)||_0x12f5c7),_0x12f5c7;}),_0x94d4b7['model']['document']['registerPostFixer'](_0x56ff24=>{let _0xdc6fd4=!0x1;for(const _0x27a981 of _0x94d4b7['model']['document']['differ']['getChanges']())if('insert'==_0x27a981['type'])for(const _0x3a83c3 of this['_suggestions']['values']()){if(_0x3a83c3['isMultiRange']||!_0x3a83c3['isInContent'])continue;const _0x58e0ea='formatBlock'==_0x3a83c3['type'],_0xdf7c5e=this['_getAttributeKey'](_0x3a83c3),_0x3b1a72=_0xdf7c5e&&this['_isBlockAttribute'](_0xdf7c5e);if(!_0x58e0ea&&!_0x3b1a72)continue;const _0x33582d=_0x3a83c3['getFirstRange']();if(_0x33582d['start']['parent']!=_0x33582d['end']['parent']&&!_0x33582d['end']['isAtEnd']){const _0x450fbf=_0x94d4b7['model']['createPositionAt'](_0x33582d['start']['nodeAfter'],'end'),_0x1e1cf5=_0x94d4b7['model']['createRange'](_0x33582d['start'],_0x450fbf);_0x56ff24['updateMarker'](_0x3a83c3['getFirstMarker'](),{'range':_0x1e1cf5}),_0xdc6fd4=!0x0;}}return _0xdc6fd4;}),_0x94d4b7['model']['document']['registerPostFixer'](_0x424354=>this['_processAttributeChanges'](_0x424354)),_0x94d4b7['model']['document']['registerPostFixer'](_0x5e712a=>!_0x5e712a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5e712a)),_0x94d4b7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x94d4b7['model']['document']['on']('change:data',(_0x177c37,_0x1ae8ca)=>{if(!_0x1ae8ca['isLocal']||_0x1ae8ca['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x465895=_0x94d4b7['model']['document']['differ']['getChanges']();if(0x0==_0x465895['length'])return;const _0xf0cc2e=[],_0x17f03d=_0x465895['filter'](_0x3ad60f=>'attribute'==_0x3ad60f['type']),_0x562041=_0x465895['filter'](_0x14034f=>'insert'==_0x14034f['type']&&'$text'!=_0x14034f['name']);for(const _0x3a3411 of _0x17f03d)this['_isRegisteredAttribute'](_0x3a3411['attributeKey'])&&_0xf0cc2e['push']({'key':_0x3a3411['attributeKey'],'newValue':_0x3a3411['attributeNewValue'],'oldValue':_0x3a3411['attributeOldValue'],'range':Gt(_0x3a3411['range'],_0x94d4b7['model'])});for(const _0x64ec64 of _0x562041){if('rename'!=_0x64ec64['action']&&'refresh'!=_0x64ec64['action'])continue;const _0x494948=Ft(_0x64ec64['position']['nodeAfter'],_0x94d4b7['model']),_0x27aa80=_0x64ec64['before'];'rename'==_0x64ec64['action']&&_0xf0cc2e['push']({'key':m,'newValue':_0x64ec64['name'],'oldValue':_0x27aa80['name'],'range':_0x494948});for(const [_0x7f0e18,_0xb19505]of _0x27aa80['attributes']){if(!this['_isRegisteredAttribute'](_0x7f0e18))continue;const _0x2fb2a2=_0x64ec64['attributes']['get'](_0x7f0e18);_0xb19505!==_0x2fb2a2&&_0xf0cc2e['push']({'key':_0x7f0e18,'newValue':_0x2fb2a2,'oldValue':_0xb19505,'range':_0x494948});}for(const [_0x5c4204,_0x44d9cc]of _0x64ec64['attributes'])this['_isRegisteredAttribute'](_0x5c4204)&&(_0x27aa80['attributes']['has'](_0x5c4204)||_0xf0cc2e['push']({'key':_0x5c4204,'newValue':_0x44d9cc,'oldValue':null,'range':_0x494948}));}0x0!=_0xf0cc2e['length']&&_0x94d4b7['model']['enqueueChange'](_0x1ae8ca,_0x2f81a3=>{const _0x3a90cc=_0x27f732();for(const {range:_0x52acb9,key:_0x56e6e4,oldValue:_0x558a06,newValue:_0x5ec010}of _0xf0cc2e)this['markAttributeChange'](_0x52acb9,_0x56e6e4,_0x558a06,_0x5ec010,{'groupId':_0x3a90cc});this['_reduceExistingSuggestions'](_0x2f81a3,_0xf0cc2e);});},{'priority':'lowest'}),_0x94d4b7['model']['markers']['on']('update:suggestion',(_0x1a0326,_0x38d6a4,_0x5d4bd5)=>{if(null==_0x5d4bd5){const {id:_0x3a0781}=this['_splitMarkerName'](_0x38d6a4['name']),_0x4c80cb=this['_suggestions']['get'](_0x3a0781);_0x4c80cb&&_0x4c80cb['addMarkerName'](_0x38d6a4['name']);}}),_0x94d4b7['model']['document']['on']('change:data',()=>{const _0x4302e5=Array['from'](_0x94d4b7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x205d46=>'suggestion'===this['_splitMarkerName'](_0x205d46['name'])['group']);if(0x0===_0x4302e5['length'])return;_0x4302e5['sort']((_0x352556,_0x3c78b6)=>{const _0xcc33e1=_0x352556['data']['oldRange'],_0x10aa2d=_0x3c78b6['data']['oldRange'];return null===_0xcc33e1&&null===_0x10aa2d?0x0:null===_0xcc33e1&&null!==_0x10aa2d?-0x1:null!==_0xcc33e1&&null===_0x10aa2d?0x1:_0xcc33e1['start']['isBefore'](_0x10aa2d['start'])?-0x1:0x1;});const _0x52db19=new Set(),_0x5d6c39=new Set();for(const {name:_0x46f5b4,data:_0x360d5b}of _0x4302e5){const {id:_0x179bbb}=this['_splitMarkerName'](_0x46f5b4);if(null===_0x360d5b['oldRange']){const _0x5abb1e=this['_handleNewSuggestionMarker'](_0x46f5b4);_0x5d6c39['add'](_0x5abb1e);}else{const _0xa76e69=this['_suggestions']['get'](_0x179bbb);null!==_0x360d5b['newRange']||_0xa76e69['isInContent']?(_0x52db19['add'](_0xa76e69['head']),_0x5d6c39['add'](_0xa76e69)):this['_removeSuggestion'](_0xa76e69);}}_0x5d6c39['size']>0x0&&this['_refreshSuggestionsChain'](_0x5d6c39);for(const _0x3cd0b1 of _0x52db19)this['fire']('suggestionChanged',_0x3cd0b1);}),_0x94d4b7['model']['on']('applyOperation',(_0x4dd8d0,_0x4c4ab8)=>{const _0x18c5b5=_0x4c4ab8[0x0];if(!this['_suggestions']['size'])return;if(!_0x18c5b5['isDocumentOperation'])return;if(_0x18c5b5['batch']['isUndo']||!_0x18c5b5['batch']['isLocal'])return;let _0x2c8b17,_0x31e9f7;switch(_0x18c5b5['type']){case'insert':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['position']),_0x31e9f7=_0x2c8b17['getShiftedBy'](_0x18c5b5['howMany']);break;case'split':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['splitPosition']),_0x31e9f7=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['moveTargetPosition']);break;case'move':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['targetPosition']),_0x31e9f7=_0x2c8b17['getShiftedBy'](_0x18c5b5['howMany']);break;default:return;}const _0x4a08a7=_0x94d4b7['model']['createRange'](_0x2c8b17,_0x31e9f7);_0x94d4b7['model']['change'](()=>{for(const {suggestion:_0x393c20,meta:_0x2365c3}of this['_findSuggestions'](_0x4a08a7)){if(_0x393c20['isMultiRange'])continue;if('formatInline'==_0x393c20['type'])continue;const _0x413634=this['_getAttributeKey'](_0x393c20);if(_0x413634&&this['_isBlockAttribute'](_0x413634)&&'split'!=_0x18c5b5['type'])continue;const _0x3a8f6d=_0x393c20['data']&&_0x393c20['data']['multipleBlocks'];('formatBlock'!=_0x393c20['type']||'split'==_0x18c5b5['type']&&!_0x3a8f6d)&&(_0x2365c3['containsRangeInObject']||'insertion'==_0x393c20['type']&&_0x2365c3['isOwn']||_0x393c20['getFirstRange']()['containsRange'](_0x4a08a7)&&this['_breakSuggestionMarker'](_0x393c20,_0x2c8b17,_0x31e9f7));}});},{'priority':'lowest'}),_0x94d4b7['model']['on']('deleteContent',(_0x4122e0,_0x2b75ae)=>{const _0x249c1a=_0x2b75ae[0x0],_0x2146a5=_0x2b75ae[0x1];if(_0x2146a5&&_0x2146a5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x249c1a['isCollapsed'])return;const _0xf255b4=_0x94d4b7['model']['schema'],{start:_0x3758f6,end:_0xd6020f}=_0x249c1a['getFirstRange'](),_0x502a66=_0x3758f6['nodeAfter']&&_0xf255b4['isLimit'](_0x3758f6['nodeAfter'])?null:_0xf255b4['getNearestSelectionRange'](_0x3758f6,'forward'),_0x3bb1a8=_0xd6020f['nodeBefore']&&_0xf255b4['isLimit'](_0xd6020f['nodeBefore'])?null:_0xf255b4['getNearestSelectionRange'](_0xd6020f,'backward'),_0x34f4b9=_0x94d4b7['model']['createRange'](_0x502a66?_0x502a66['start']:_0x3758f6,_0x3bb1a8?_0x3bb1a8['end']:_0xd6020f);_0x94d4b7['model']['change'](_0xe2e622=>{this['markDeletion'](_0x34f4b9);const _0x23be18=_0x94d4b7['model']['schema']['getNearestSelectionRange'](_0x34f4b9['start']);_0x249c1a['is']('documentSelection')?_0xe2e622['setSelection'](_0x23be18):_0x249c1a['setTo'](_0x23be18);}),_0x4122e0['stop']();},{'priority':_0x200434['normal']+0xa}),_0x94d4b7['model']['on']('insertContent',(_0x46d5b2,_0x874e7b)=>{const _0x61a02b=_0x874e7b[_0x874e7b['length']-0x1];_0x61a02b&&_0x61a02b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x94d4b7['model']['change'](()=>{let _0xd51b01=_0x94d4b7['model']['insertContent'](_0x874e7b[0x0],_0x874e7b[0x1],_0x874e7b[0x2],{'forceDefaultExecution':!0x0});if(!_0xd51b01)return;_0x46d5b2['return']=_0xd51b01['clone']();const _0x2424a6=_0xd51b01['end']['nodeBefore'],_0x447729=_0x94d4b7['model']['schema'];_0x2424a6&&_0x447729['isBlock'](_0x2424a6)&&!_0x447729['isObject'](_0x2424a6)&&(_0xd51b01=_0x94d4b7['model']['createRange'](_0xd51b01['start'],_0x94d4b7['model']['createPositionAt'](_0x2424a6,'end'))),this['markInsertion'](_0xd51b01);}),_0x46d5b2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3a66cf=new $(_0x94d4b7,this['_suggestions']);_0x94d4b7['commands']['add']('acceptSuggestion',_0x3a66cf),this['enableCommand']('acceptSuggestion');const _0x2da8e8=new B(_0x94d4b7,this['_suggestions']);_0x94d4b7['commands']['add']('discardSuggestion',_0x2da8e8),this['enableCommand']('discardSuggestion'),_0x94d4b7['commands']['add']('acceptAllSuggestions',new x(_0x94d4b7,_0x3a66cf,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x94d4b7['commands']['add']('discardAllSuggestions',new x(_0x94d4b7,_0x2da8e8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x94d4b7['commands']['add']('acceptSelectedSuggestions',new R(_0x94d4b7,_0x3a66cf,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x94d4b7['commands']['add']('discardSelectedSuggestions',new R(_0x94d4b7,_0x2da8e8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x251b6d=_0x94d4b7['plugins']['get']('CommentsRepository');this['listenTo'](_0x251b6d,'addComment',(_0x20cb03,{threadId:_0x5ab62e})=>{const _0x23a7c2=this['_suggestions']['get'](_0x5ab62e);_0x23a7c2&&_0x23a7c2['commentThread']&&0x1===_0x23a7c2['commentThread']['length']&&this['_updateSuggestionData'](_0x5ab62e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x251b6d,'removeComment',(_0x213834,{threadId:_0x44c6f2})=>{const _0x4679a6=this['_suggestions']['get'](_0x44c6f2);_0x4679a6&&_0x4679a6['commentThread']&&!_0x4679a6['commentThread']['length']&&this['_updateSuggestionData'](_0x44c6f2,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x38730a){if(this['_adapter'])throw new _0x3cf89a('track-changes-adapter-already-set',this);this['_adapter']=_0x38730a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b33cd=!0x1,toJSON:_0x1ba277=!0x1}={}){const _0xcc9621=[];for(const _0x42a0aa of this['_suggestions']['values']())_0x4b33cd&&!_0x42a0aa['isInContent']||_0xcc9621['push'](_0x42a0aa);return _0x1ba277?_0xcc9621['map'](_0x5a3f58=>_0x5a3f58['toJSON']()):_0xcc9621;}['getSuggestion'](_0x4d03b2){const _0x1d6a1a=this['_suggestions']['get'](_0x4d03b2);if(!_0x1d6a1a)throw new _0x3cf89a('track-changes-suggestion-not-found',this);return _0x1d6a1a;}['hasSuggestion'](_0x372457){return this['_suggestions']['has'](_0x372457);}['addSuggestionData'](_0x3ba015){const {authorId:_0x20c398,id:_0x40fe65,attributes:_0x4ff887}=_0x3ba015,[_0x3227b8,_0x7c9951]=_0x3ba015['type']['split'](':'),_0x144d78=this['_suggestions']['get'](_0x40fe65)||this['_createSuggestion'](_0x3227b8,_0x7c9951,_0x40fe65,_0x20c398,_0x4ff887);if(this['_addThreadToSuggestion'](_0x144d78),this['_checkSuggestionCorrectness'](_0x144d78,_0x3227b8,_0x7c9951||null,_0x20c398),_0x144d78['createdAt']=_0x3ba015['createdAt'],_0x144d78['_isDataLoaded']=!0x0,_0x4ff887&&_0x4ff887['@external']){const _0x517ff6=_0x4ff887['@external'],_0x576911=this['_getExternalAuthor'](_0x517ff6['authorName']);_0x144d78['authoredAt']=_0x517ff6['createdAt'],_0x144d78['author']=_0x576911,_0x144d78['isExternal']=!0x0;}else _0x144d78['authoredAt']=_0x3ba015['createdAt'];switch(_0x3ba015['data']&&(_0x144d78['data']=_0x3ba015['data']),_0x3ba015['attributes']&&(_0x144d78['attributes']=_0x3ba015['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x144d78['_saved']=!0x0),this['_suggestionState']['get'](_0x144d78)){case'notReady':this['_suggestionState']['set'](_0x144d78,'dataReady');break;case'markerReady':_0x144d78['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x144d78])),this['_refreshSuggestionsChain'](new Set([_0x144d78])),this['_suggestionState']['set'](_0x144d78,'ready'),this['fire']('suggestionLoaded',_0x144d78)):this['_suggestionState']['set'](_0x144d78,'removed');}return _0x144d78;}['acceptSuggestion'](_0x4a0a9a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x29d744 of _0x4a0a9a['getAllAdjacentSuggestions']())_0x29d744['accept']();});});}['discardSuggestion'](_0x53c0f6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55d8b5 of _0x53c0f6['getAllAdjacentSuggestions']())_0x55d8b5['discard']();});});}['enableCommand'](_0x27c405,_0x300940){const _0x468248=this['editor']['commands']['get'](_0x27c405);if(!_0x468248)throw new _0x3cf89a('track-changes-command-not-found',this,{'commandName':_0x27c405});if(this['_enabledCommands']['has'](_0x468248))throw new _0x3cf89a('track-changes-enable-command-twice',this,{'commandName':_0x27c405});this['_enabledCommands']['add'](_0x468248),_0x300940&&_0x468248['on']('execute',(_0x101e23,_0x3c31d6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3c31d6['length']>0x0&&_0x3c31d6[_0x3c31d6['length']-0x1]&&_0x3c31d6[_0x3c31d6['length']-0x1]['forceDefaultExecution']?_0x3c31d6['pop']():(_0x101e23['return']=_0x300940((..._0x5e1114)=>_0x468248['execute'](..._0x5e1114,{'forceDefaultExecution':!0x0}),..._0x3c31d6),_0x101e23['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5104f9){let _0x557b0f,_0x424f03;const _0x4edbc4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x557b0f=_0x5104f9();}catch(_0x425047){_0x424f03=_0x425047;}return _0x4edbc4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x424f03&&_0x3cf89a['rethrowUnexpectedError'](_0x424f03,this),_0x557b0f;}['markInsertion'](_0x1c4150,_0x5d1100=null,_0xf5a636={}){if(_0x1c4150['isCollapsed'])return null;const _0x551854=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x56ac89,meta:_0x2fdc04}of this['_findSuggestions'](_0x1c4150,'insertion'))if(_0x2fdc04['isOwn']){if(!_0x2fdc04['isNextTo']){if(_0x2fdc04['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x56ac89,_0xf5a636))continue;return _0x56ac89;}if(Ht(_0x56ac89,_0xf5a636))return _0x56ac89;this['_breakSuggestionMarker'](_0x56ac89,_0x1c4150['start'],_0x1c4150['end']);break;}if(_0x5d1100==_0x56ac89['subType']&&Ht(_0x56ac89,_0xf5a636)){const _0x418c89=_0x56ac89['getFirstRange']();return _0x418c89['start']['isEqual'](_0x1c4150['end'])?this['_setSuggestionRange'](_0x56ac89,this['_model']['createRange'](_0x1c4150['start'],_0x418c89['end'])):this['_setSuggestionRange'](_0x56ac89,this['_model']['createRange'](_0x418c89['start'],_0x1c4150['end'])),_0x56ac89;}}const _0x4cad8b=_0x27f732(),_0xb2ebe1=_0x551854['id'],_0x36dded=_0x5d1100?'insertion:'+_0x5d1100:'insertion',_0x3d4cb2=this['_setSuggestionData']({'id':_0x4cad8b,'type':_0x36dded,'createdAt':new Date(),'authorId':_0xb2ebe1,'attributes':_0xf5a636});return this['_addSuggestionMarker'](_0x36dded,_0x4cad8b,_0xb2ebe1,_0x1c4150),_0x3d4cb2;}['markMultiRangeInsertion'](_0x148ad3,_0x13b73a='multi',_0x19826f={}){const _0x15b66a=this['editor']['plugins']['get']('Users')['me'],_0x2f1d6c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x13b73a,'join');for(const _0x2fecc5 of this['getSuggestions']())if(_0x2fecc5['author']['id']==_0x15b66a['id']&&'insertion'==_0x2fecc5['type']&&_0x2fecc5['subType']==_0x13b73a&&Ht(_0x2fecc5,_0x19826f)&&(_0x2f1d6c(_0x2fecc5['getRanges'](),_0x148ad3)||_0x2f1d6c(_0x148ad3,_0x2fecc5['getRanges']()))){for(const _0x12ea0f of _0x148ad3)_0x2fecc5['addRange'](_0x12ea0f);return _0x2fecc5;}for(const {suggestion:_0x248ed4,meta:_0x82f324}of this['_findSuggestions'](_0x148ad3,'insertion')){if(!_0x82f324['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x82f324['containsRangeInObject'])continue;if(!Ht(_0x248ed4,_0x19826f))continue;let _0x5b52c4=!0x0;for(const _0x142f12 of _0x248ed4['getRanges']())for(const _0xedd174 of _0x148ad3)if(!_0x142f12['containsRange'](_0xedd174)){_0x5b52c4=!0x1;break;}if(_0x5b52c4)return _0x248ed4;}const _0x932914=_0x27f732(),_0x496647=_0x15b66a['id'],_0x4affae='insertion:'+_0x13b73a,_0x10a18f=this['_setSuggestionData']({'id':_0x932914,'type':_0x4affae,'createdAt':new Date(),'authorId':_0x496647,'attributes':_0x19826f});for(const _0x26386a of _0x148ad3)this['_addSuggestionMarker'](_0x4affae,_0x932914,_0x496647,_0x26386a,u['getMultiRangeId']());return _0x10a18f;}['markInlineFormat'](_0x5e00c1,_0x63cdc4,_0x55d6f1=null,_0x1c429d={}){if(_0x55d6f1=_0x55d6f1||Ut(_0x63cdc4),_0x5e00c1['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x32b848=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55d6f1,'accept');return this['forceDefaultExecution'](()=>_0x32b848([_0x5e00c1],_0x63cdc4,_0x1c429d)),null;}const _0x149d76=this['editor']['plugins']['get']('Users')['me'],_0x3c833c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e36e9,meta:_0x4cf433}of this['_findSuggestions'](_0x5e00c1,'insertion'))_0x4cf433['isOwn']&&!_0x4cf433['isInsideObject']&&_0x3c833c['push'](..._0x1e36e9['getRanges']());}const _0x2d5915=function(_0x5df397,_0x59d54b){const _0x5d08ea=[];for(const _0x2be7f1 of _0x59d54b){const _0x4a8156=_0x5df397['getIntersection'](_0x2be7f1);_0x4a8156&&_0x5d08ea['push'](_0x4a8156);}return _0x5d08ea;}(_0x5e00c1,_0x3c833c),_0x4bd0e7=function(_0x28c299,_0x45b14d){const _0x477c7f=[_0x28c299];for(const _0x5e3927 of _0x45b14d){let _0x37feed=0x0;for(;_0x37feed<_0x477c7f['length'];){const _0x1c5517=_0x477c7f[_0x37feed]['getDifference'](_0x5e3927);_0x477c7f['splice'](_0x37feed,0x1,..._0x1c5517),_0x37feed+=_0x1c5517['length'];}}return _0x477c7f;}(_0x5e00c1,_0x3c833c);_0x2d5915['length']&&this['_model']['change'](()=>{for(const _0x2aac7d of _0x2d5915){const _0x155419=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55d6f1,'accept');this['forceDefaultExecution'](()=>_0x155419([_0x2aac7d],_0x63cdc4,_0x1c429d));}});for(const _0x572312 of _0x4bd0e7){let _0x1ae572=null,_0x36d8c4=_0x572312['start'],_0x3b5731=_0x572312['end'];for(const {suggestion:_0x5a5aa2,meta:_0x5dea3f}of this['_findSuggestions'](_0x572312,'formatInline')){if(!_0x5dea3f['isOwn'])continue;if(_0x5a5aa2['subType']!=_0x55d6f1)continue;if(!Ht(_0x5a5aa2,_0x1c429d))continue;const _0x2464c2=_0x5a5aa2['getFirstRange']();if(_0x2464c2['containsRange'](_0x572312,!0x0))return null;_0x36d8c4=_0x36d8c4['isBefore'](_0x2464c2['start'])?_0x36d8c4:_0x2464c2['start'],_0x3b5731=_0x3b5731['isAfter'](_0x2464c2['end'])?_0x3b5731:_0x2464c2['end'],_0x1ae572?_0x2464c2['start']['isBefore'](_0x1ae572['getFirstRange']()['start'])?(_0x1ae572['removeMarkers'](),_0x1ae572=_0x5a5aa2):_0x5a5aa2['removeMarkers']():_0x1ae572=_0x5a5aa2;}const _0x2a92b7=this['_model']['createRange'](_0x36d8c4,_0x3b5731);if(_0x1ae572)this['_setSuggestionRange'](_0x1ae572,_0x2a92b7);else{const _0x5ea461=_0x27f732(),_0x40967e=_0x149d76['id'];this['_setSuggestionData']({'id':_0x5ea461,'type':'formatInline:'+_0x55d6f1,'data':_0x63cdc4,'createdAt':new Date(),'authorId':_0x40967e,'attributes':_0x1c429d}),this['_addSuggestionMarker']('formatInline:'+_0x55d6f1,_0x5ea461,_0x40967e,_0x2a92b7);}}return null;}['markBlockFormat'](_0x865d46,_0x4fc2a4,_0x395b96=[],_0x132a94=null,_0x255724={}){_0x4fc2a4['formatGroupId']||(_0x4fc2a4['formatGroupId']=_0x4fc2a4['commandName']),_0x4fc2a4['multipleBlocks']=_0x865d46['is']('range'),_0x132a94=_0x132a94||Ut(_0x4fc2a4);const _0xd75b5a=_0x395b96['map'](_0x2e3028=>Ft(_0x2e3028,this['_model'])),_0x429ea1=_0x865d46['is']('range')?_0x865d46:Ft(_0x865d46,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5bfd84=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x132a94,'accept');return this['forceDefaultExecution'](()=>_0x5bfd84([_0x429ea1],_0x4fc2a4,_0x255724)),null;}_0xd75b5a['push'](_0x429ea1);let _0x53c891=!0x0;for(const _0x36eb3d of _0xd75b5a)if(!this['_rangeIsInLocalUserInsertion'](_0x36eb3d)){_0x53c891=!0x1;break;}if(_0x53c891&&'always'!==this['_trackFormatChanges']){const _0x5d3a29=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x132a94,'accept');return this['forceDefaultExecution'](()=>_0x5d3a29([_0x429ea1],_0x4fc2a4,_0x255724)),null;}let _0x2a9e4f=null,_0x51f16a=_0x429ea1['start'],_0x453740=_0x429ea1['end'];for(const {suggestion:_0x367579,meta:_0x4f0de7}of this['_findSuggestions'](_0x429ea1,'formatBlock')){if(!_0x4f0de7['isOwn'])continue;if(_0x4f0de7['isNextTo']||_0x4f0de7['containsRangeInObject']||_0x4f0de7['isInsideObject'])continue;if(_0x367579['data']['formatGroupId']!=_0x4fc2a4['formatGroupId'])continue;if(!Ht(_0x367579,_0x255724))continue;const _0x28783d=_0x367579['getFirstRange']();if(_0x367579['subType']==_0x132a94){if(_0x28783d['containsRange'](_0x429ea1,!0x0))return null;_0x51f16a=_0x51f16a['isBefore'](_0x28783d['start'])?_0x51f16a:_0x28783d['start'],_0x453740=_0x453740['isAfter'](_0x28783d['end'])?_0x453740:_0x28783d['end'],_0x2a9e4f?_0x28783d['start']['isBefore'](_0x2a9e4f['getFirstRange']()['start'])?(_0x2a9e4f['removeMarkers'](),_0x2a9e4f=_0x367579):_0x367579['removeMarkers']():_0x2a9e4f=_0x367579;}else{const _0x2ea643=_0x429ea1['getIntersection'](_0x28783d);this['_cutOutSuggestionMarker'](_0x367579,_0x2ea643);}}const _0x30a668=this['editor']['plugins']['get']('Users')['me'],_0x590db5=_0x27f732(),_0x4b0d38=_0x30a668['id'];if(_0x2a9e4f)return this['_setSuggestionRange'](_0x2a9e4f,this['_model']['createRange'](_0x51f16a,_0x453740)),_0x2a9e4f;{const _0x4b0392=this['_setSuggestionData']({'id':_0x590db5,'type':'formatBlock:'+_0x132a94,'data':_0x4fc2a4,'createdAt':new Date(),'authorId':_0x4b0d38,'attributes':_0x255724});return this['_addSuggestionMarker']('formatBlock:'+_0x132a94,_0x590db5,_0x4b0d38,this['_model']['createRange'](_0x51f16a,_0x453740)),_0x4b0392;}}['markMultiRangeBlockFormat'](_0x132abc,_0x59e136,_0x4775f6=[],_0x38f1d7=null,_0x16b8fa={}){_0x59e136['formatGroupId']||(_0x59e136['formatGroupId']=_0x59e136['commandName']);const _0x381fa0=_0x132abc[0x0];_0x59e136['multipleBlocks']=_0x381fa0['is']('range'),_0x38f1d7=_0x38f1d7||Ut(_0x59e136);const _0x49284e=_0x4775f6['map'](_0x4d0424=>Ft(_0x4d0424,this['_model'])),_0x470cde=_0x381fa0['is']('range')?_0x132abc:_0x132abc['map'](_0x37849b=>Ft(_0x37849b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x385d1e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'accept');return this['forceDefaultExecution'](()=>_0x385d1e(_0x470cde,_0x59e136,_0x16b8fa)),null;}_0x49284e['push'](..._0x470cde);let _0x54e8be=!0x0;for(const _0x5834fe of _0x49284e)if(!this['_rangeIsInLocalUserInsertion'](_0x5834fe)){_0x54e8be=!0x1;break;}if(_0x54e8be&&'always'!==this['_trackFormatChanges']){const _0x4bb09a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'accept');return this['forceDefaultExecution'](()=>_0x4bb09a(_0x470cde,_0x59e136,_0x16b8fa)),null;}const _0xa52e5e=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f25b7 of this['getSuggestions']()){if(_0x2f25b7['author']['id']!=_0xa52e5e['id'])continue;if('formatBlock'!=_0x2f25b7['type']||_0x2f25b7['data']['formatGroupId']!=_0x59e136['formatGroupId'])continue;if(!Ht(_0x2f25b7,_0x16b8fa))continue;const _0x5966e2=_0x2f25b7['subType']==_0x38f1d7;for(let _0x33cbdd=0x0;_0x33cbdd<_0x470cde['length'];_0x33cbdd++){const _0x1bf88a=_0x470cde[_0x33cbdd];for(const _0x297d23 of _0x2f25b7['getMarkers']()){const _0x18cfa2=_0x297d23['getRange']();if(_0x1bf88a['isEqual'](_0x18cfa2)){_0x5966e2?(_0x470cde['splice'](_0x33cbdd,0x1),_0x33cbdd--):_0x2f25b7['removeMarker'](_0x297d23['name']);break;}}}}if(0x0==_0x470cde['length'])return null;const _0xe0193b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'join');for(const _0x193efb of this['getSuggestions']())if(_0x193efb['author']['id']==_0xa52e5e['id']&&'formatBlock'==_0x193efb['type']&&_0x193efb['data']['formatGroupId']==_0x59e136['formatGroupId']&&_0x193efb['subType']==_0x38f1d7&&Ht(_0x193efb,_0x16b8fa)&&(_0xe0193b(_0x193efb['getRanges'](),_0x470cde)||_0xe0193b(_0x470cde,_0x193efb['getRanges']()))){for(const _0x53858a of _0x470cde)_0x193efb['addRange'](_0x53858a);return _0x193efb;}const _0x5dddc8=_0x27f732(),_0x2c4ff0=_0xa52e5e['id'],_0x4e1d21='formatBlock:'+_0x38f1d7,_0x5109d5=this['_setSuggestionData']({'id':_0x5dddc8,'type':_0x4e1d21,'data':_0x59e136,'createdAt':new Date(),'authorId':_0x2c4ff0,'attributes':_0x16b8fa});for(const _0x3658d7 of _0x470cde)this['_addSuggestionMarker'](_0x4e1d21,_0x5dddc8,_0x2c4ff0,_0x3658d7,u['getMultiRangeId']());return _0x5109d5;}['markDeletion'](_0x28ea3b,_0x20155e=null,_0x50caa6={}){if(_0x28ea3b['isCollapsed'])return null;const _0x4123bd=this['editor']['plugins']['get']('Users')['me'],_0x41b6b9=new _0x948f0b(_0x28ea3b['start'],_0x28ea3b['end']);for(const {suggestion:_0x5bf784,meta:_0x294936}of this['_findSuggestions'](_0x41b6b9,'insertion'))if(_0x294936['isOwn']&&!_0x294936['isNextTo']){if(_0x5bf784['isMultiRange']){const _0xc4ef9f=_0x5bf784['getRanges']()['filter'](_0x6b9579=>'$graveyard'!=_0x6b9579['root']['rootName']);_0xc4ef9f['every'](_0x365944=>_0x41b6b9['containsRange'](_0x365944,!0x0))&&_0x5bf784['discard']();if(_0xc4ef9f['some'](_0x38380f=>_0x38380f['containsRange'](_0x41b6b9,!0x0))){const _0x10c56e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20155e,'accept');return this['forceDefaultExecution'](()=>_0x10c56e([_0x41b6b9],null,_0x50caa6)),null;}}else{const _0x893b2f=_0x41b6b9['getIntersection'](_0x5bf784['getFirstRange']());null!==_0x893b2f&&_0x5bf784['_onDiscard']([_0x893b2f],null,_0x50caa6);}}if(_0x41b6b9['detach'](),_0x41b6b9['isCollapsed']||'$graveyard'==_0x41b6b9['root']['rootName'])return null;let _0x27c88a=null,_0xb7bf3b=_0x41b6b9['start'],_0x3da952=_0x41b6b9['end'];const _0x504ebe=this['_findSuggestions'](_0x41b6b9,'deletion');for(const {suggestion:_0x50abb5,meta:_0x71496b}of _0x504ebe){const _0x1b23e3=this['_model']['createRange'](_0xb7bf3b,_0x3da952);if(_0x71496b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x71496b['containsRangeInObject']&&!_0x71496b['isInsideObject'])){if(_0x50abb5['isMultiRange']){if(!Ht(_0x50abb5,_0x50caa6))continue;let _0x1548b2=!0x0;for(const _0x21bee9 of _0x50abb5['getRanges']()){if(_0x21bee9['containsRange'](_0x1b23e3,!0x0))return _0x50abb5;_0x1b23e3['containsRange'](_0x21bee9)||(_0x1548b2=!0x1);}_0x1548b2&&_0x50abb5['discard']();}else{const _0x54b433=_0x50abb5['getFirstRange']();if(_0x54b433['containsRange'](_0x1b23e3,!0x0))return _0x50abb5;if(!Ht(_0x50abb5,_0x50caa6)){_0x1b23e3['containsRange'](_0x54b433)?_0x50abb5['removeMarkers']():_0x54b433['containsPosition'](_0xb7bf3b)?_0xb7bf3b=_0x54b433['end']:_0x54b433['containsPosition'](_0x3da952)&&(_0x3da952=_0x54b433['start']);continue;}_0xb7bf3b=_0xb7bf3b['isBefore'](_0x54b433['start'])?_0xb7bf3b:_0x54b433['start'],_0x3da952=_0x3da952['isAfter'](_0x54b433['end'])?_0x3da952:_0x54b433['end'],_0x50caa6=Object['assign']({},_0x50abb5['attributes']),_0x27c88a?_0x54b433['start']['isBefore'](_0x27c88a['getFirstRange']()['start'])?(_0x27c88a['removeMarkers'](),_0x27c88a=_0x50abb5):_0x50abb5['removeMarkers']():_0x27c88a=_0x50abb5;}}}if(_0x27c88a)return this['_setSuggestionRange'](_0x27c88a,this['_model']['createRange'](_0xb7bf3b,_0x3da952)),_0x27c88a;{const _0x5a0f22=_0x27f732(),_0x43c526=this['_model']['createRange'](_0xb7bf3b,_0x3da952),_0x234af1=_0x4123bd['id'],_0x205e49=_0x20155e?'deletion:'+_0x20155e:'deletion',_0x12aebe=this['_setSuggestionData']({'id':_0x5a0f22,'type':_0x205e49,'createdAt':new Date(),'authorId':_0x234af1,'attributes':_0x50caa6});return this['_addSuggestionMarker'](_0x205e49,_0x5a0f22,_0x234af1,_0x43c526),_0x12aebe;}}['markMultiRangeDeletion'](_0x39352f,_0x540469='multi',_0x2f737e={}){const _0x16959b=this['editor']['plugins']['get']('Users')['me'],_0x11ac4a=_0x39352f['map'](_0x4586be=>new _0x948f0b(_0x4586be['start'],_0x4586be['end'])),_0x19d072=new Set();for(const {suggestion:_0xb73e79,meta:_0x5c49f4}of this['_findSuggestions'](_0x11ac4a,'insertion'))_0x5c49f4['isOwn']&&!_0x5c49f4['isNextTo']&&_0x19d072['add'](_0xb73e79);for(const _0x24b753 of _0x19d072)if(_0x24b753['isMultiRange']){const _0x34d173=_0x24b753['getRanges']();(!_0x24b753['attributes']||!_0x24b753['attributes']['skipNestingCheck'])&&(_0x34d173['every'](_0x18253b=>_0x11ac4a['some'](_0x424398=>_0x424398['containsRange'](_0x18253b,!0x0)))&&_0x24b753['discard']());if(_0x11ac4a['every'](_0x5a2b3e=>_0x34d173['some'](_0x5ebcd6=>_0x5ebcd6['containsRange'](_0x5a2b3e,!0x0)))){const _0x4b607b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'accept');return this['forceDefaultExecution'](()=>_0x4b607b(_0x39352f,null,_0x2f737e)),null;}}else{const _0x3a7c87=_0x24b753['getFirstRange']();_0x11ac4a['some'](_0x55d088=>_0x55d088['containsRange'](_0x3a7c87,!0x0))&&_0x24b753['discard']();if(_0x11ac4a['every'](_0x2b47ee=>_0x3a7c87['containsRange'](_0x2b47ee,!0x0))){const _0x47227f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'accept');return this['forceDefaultExecution'](()=>_0x47227f(_0x11ac4a,null,_0x2f737e)),null;}}const _0x26b6f5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'join');let _0x4b3b83=null;for(const _0x1579d3 of this['getSuggestions']())if(_0x1579d3['author']['id']==_0x16959b['id']&&_0x1579d3['isInContent']&&'deletion'==_0x1579d3['type']&&_0x1579d3['subType']==_0x540469&&Ht(_0x1579d3,_0x2f737e)&&(_0x26b6f5(_0x1579d3['getRanges'](),_0x11ac4a)||_0x26b6f5(_0x11ac4a,_0x1579d3['getRanges']()))){if(_0x4b3b83){if(_0x1579d3['commentThread']&&_0x1579d3['commentThread']['length'])continue;for(const _0x3803c4 of _0x1579d3['getRanges']())_0x4b3b83['isIntersectingWithRange'](_0x3803c4)||_0x4b3b83['addRange'](_0x3803c4);_0x1579d3['removeMarkers']();}else{_0x4b3b83=_0x1579d3;for(const _0x5b0786 of _0x11ac4a)_0x1579d3['isIntersectingWithRange'](_0x5b0786)||_0x1579d3['addRange'](_0x5b0786);}}if(_0x4b3b83)return _0x4b3b83;_0x19d072['clear']();for(const {suggestion:_0x1cb749,meta:_0x49b3f0}of this['_findSuggestions'](_0x11ac4a,'deletion'))_0x49b3f0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49b3f0['containsRangeInObject']&&!_0x49b3f0['isInsideObject'])&&Ht(_0x1cb749,_0x2f737e)&&_0x19d072['add'](_0x1cb749);for(const _0x1b0a30 of _0x19d072){const _0x59df0e=_0x1b0a30['getRanges']();if(!_0x2f737e||!_0x2f737e['skipNestingCheck']){if(_0x11ac4a['every'](_0x1266ac=>_0x59df0e['some'](_0x59218a=>_0x59218a['containsRange'](_0x1266ac,!0x0))))return _0x1b0a30;}(!_0x1b0a30['attributes']||!_0x1b0a30['attributes']['skipNestingCheck'])&&(_0x59df0e['every'](_0x689c42=>_0x11ac4a['some'](_0xa90a60=>_0xa90a60['containsRange'](_0x689c42,!0x0)))&&_0x1b0a30['discard']());}const _0x3e8bf8=_0x27f732(),_0x350976=_0x16959b['id'],_0x449f00='deletion:'+_0x540469,_0x1b14b6=this['_setSuggestionData']({'id':_0x3e8bf8,'type':_0x449f00,'createdAt':new Date(),'authorId':_0x350976,'attributes':_0x2f737e});for(const _0x383e2d of _0x11ac4a)_0x383e2d['detach'](),_0x383e2d['isCollapsed']||'$graveyard'==_0x383e2d['root']['rootName']||this['_addSuggestionMarker'](_0x449f00,_0x3e8bf8,_0x350976,_0x383e2d,u['getMultiRangeId']());return _0x1b14b6;}['markAttributeChange'](_0x2fecdd,_0x7c2406,_0x3d9c75,_0x2f6a7d,_0x1cd751){if(_0x2fecdd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xe4573e=this['editor']['plugins']['get']('Users')['me']['id'],_0x64a987=Array['from'](this['_suggestions']['values']())['filter'](_0x17eb57=>'attribute'==_0x17eb57['type']&&_0x17eb57['data']['key']==_0x7c2406&&_0x17eb57['isIntersectingWithRange'](_0x2fecdd));if('default'===this['_trackFormatChanges']){const _0x1765a9=this['_findSuggestions'](_0x2fecdd,'insertion')['filter'](({meta:_0x5e7147})=>_0x5e7147['isOwn']&&!_0x5e7147['isInsideObject']&&!_0x5e7147['isNextTo'])['map'](({suggestion:_0x545b94})=>_0x545b94);_0x64a987['unshift'](..._0x1765a9);}const _0x4b9fa2=new Map([[_0x2fecdd,_0x3d9c75]]);for(const _0x1f8722 of _0x64a987){const _0x15a07a='attribute'==_0x1f8722['type']?_0x1f8722['data']['oldValue']:void 0x0,_0x3103db=_0x1f8722['getFirstRange'](),_0x6e3aac=Array['from'](_0x4b9fa2['keys']())['find'](_0x726acb=>_0x726acb['isIntersecting'](_0x3103db));if(!_0x6e3aac)continue;const _0x1555b8=_0x6e3aac['getDifference'](_0x3103db);this['_isBlockAttribute'](_0x7c2406)&&'insertion'==_0x1f8722['type']&&0x0!=_0x1555b8['length']||(_0x4b9fa2['delete'](_0x6e3aac),_0x1555b8['forEach'](_0x512874=>{_0x4b9fa2['set'](_0x512874,_0x3d9c75);}),'insertion'!=_0x1f8722['type']&&_0x15a07a!=_0x2f6a7d&&_0x4b9fa2['set'](_0x6e3aac['getIntersection'](_0x3103db),_0x15a07a));}const _0x5779b5=[];for(const [_0xb35e,_0x510202]of _0x4b9fa2){const _0x237fa6=_0x27f732(),_0x1b8624={'key':_0x7c2406,'oldValue':_0x510202,'newValue':_0x2f6a7d};_0x7c2406['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':_0x7c2406});const _0x297bbb=('attribute:'+(_0x7c2406+'|'+Ut({'newValue':_0x2f6a7d})))['substring'](0x0,0x3c),_0x302b45=this['_setSuggestionData']({'id':_0x237fa6,'type':_0x297bbb,'data':_0x1b8624,'createdAt':new Date(),'authorId':_0xe4573e,'attributes':_0x1cd751});_0x5779b5['push'](_0x302b45),this['_addSuggestionMarker'](_0x297bbb,_0x237fa6,_0xe4573e,_0xb35e);}return _0x5779b5;}['enableDefaultAttributesIntegration'](_0x4f39c4){this['enableCommand'](_0x4f39c4,(_0x12eacf,..._0x233263)=>{this['_recordAttributeChanges'](()=>{_0x12eacf(..._0x233263);});});}['registerBlockAttribute'](_0x5c8873){this['_blockAttributeKeys']['add'](_0x5c8873);}['registerInlineAttribute'](_0x29ca51){this['_inlineAttributeKeys']['add'](_0x29ca51);}['_getAttributeKey'](_0x1431a2){return'attribute'==_0x1431a2['type']?_0x1431a2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x564af1,_0x4e6ec7){const _0x2eca49=_0x564af1['getFirstMarker']();this['_model']['change'](_0x20ebb3=>{_0x20ebb3['updateMarker'](_0x2eca49,{'range':_0x4e6ec7});});}['_addThreadToSuggestion'](_0x31fa31){const _0x4d23ba=_0x31fa31['id'],_0x19fe86=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4d23ba)||this['_commentsRepository']['addCommentThread']({'channelId':_0x19fe86,'threadId':_0x4d23ba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x92b281=this['_commentsRepository']['getCommentThread'](_0x4d23ba);_0x92b281['unbind']('isRemovable'),_0x92b281['isRemovable']=!0x1,_0x31fa31['commentThread']=_0x92b281;}['_checkSuggestionCorrectness'](_0x8223c5,_0x45c77b,_0x117bc5,_0x56a8a6){if(_0x8223c5['type']!=_0x45c77b||_0x8223c5['subType']!=_0x117bc5||_0x8223c5['creator']['id']!=_0x56a8a6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3cf89a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x331c61,_0x708a78){const _0x3517b0=_0x331c61['getFirstRange']();if(_0x708a78['isEqual'](_0x3517b0))_0x331c61['removeMarkers']();else{if(_0x3517b0['containsRange'](_0x708a78)){const _0x589bd8=this['_model']['createPositionAt'](_0x708a78['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x3517b0['start'],_0x589bd8));const _0x4d0c2f=_0x27f732(),_0x4ce1ab=_0x331c61['creator']['id'],_0x2eee12=_0x331c61['type']+':'+_0x331c61['subType'];this['_setSuggestionData']({'id':_0x4d0c2f,'type':_0x2eee12,'createdAt':new Date(),'authorId':_0x4ce1ab,'data':_0x331c61['data'],'attributes':_0x331c61['attributes']});const _0x3147ff=this['_model']['createPositionAt'](_0x708a78['end']['parent'],'after'),_0x488879=this['_model']['createRange'](_0x3147ff,_0x3517b0['end']);this['_addSuggestionMarker'](_0x2eee12,_0x4d0c2f,_0x4ce1ab,_0x488879);}else{if(_0x3517b0['containsPosition'](_0x708a78['start'])){const _0x41f493=this['_model']['createPositionAt'](_0x708a78['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x3517b0['start'],_0x41f493));}else{const _0x5d9695=this['_model']['createPositionAt'](_0x708a78['end']['parent'],'after');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x5d9695,_0x3517b0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1d37b3){for(const {suggestion:_0x254a8b,meta:_0x3fa44d}of this['_findSuggestions'](_0x1d37b3,'insertion')){if(!_0x3fa44d['isOwn'])continue;const _0x1c5f18=_0x254a8b['getRanges']();for(const _0x55a329 of _0x1c5f18)if(!_0x1d37b3['getDifference'](_0x55a329)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4c0e31){const _0x4abb2b=this['editor']['plugins']['get']('Users')['getUser'](_0x4c0e31);if(!_0x4abb2b)throw new _0x3cf89a('track-changes-user-not-found',this);return _0x4abb2b;}['_getExternalAuthor'](_0x2d6b6b){const _0x4e94e2=this['editor']['plugins']['get']('Users'),_0x15b794=_0x16ce2e('external:'+_0x2d6b6b),_0x365644=_0x4e94e2['getUser'](_0x15b794);return _0x365644||_0x4e94e2['addUser']({'id':_0x15b794,'name':_0x2d6b6b});}['_createSuggestion'](_0x124e38,_0x549704,_0x2f51b4,_0x4acb01,_0x187601){const _0x465fe5=this['_getAuthorFromId'](_0x4acb01),_0x4297c4=this['_suggestionFactory']['buildSuggestion'](_0x124e38,_0x549704,_0x2f51b4,_0x465fe5,_0x187601,_0xaa73bd=>{this['_updateSuggestionData'](_0x2f51b4,{'attributes':_0xaa73bd});const _0x34edcc=this['getSuggestion'](_0x2f51b4);this['_joinWithAdjacentSuggestions'](new Set([_0x34edcc])),this['_refreshSuggestionsChain'](new Set([_0x34edcc]));});return this['listenTo'](_0x4297c4,'accept',()=>{this['_updateSuggestionData'](_0x2f51b4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4297c4,'discard',()=>{this['_updateSuggestionData'](_0x2f51b4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f51b4,_0x4297c4),this['_suggestionState']['set'](_0x4297c4,'notReady'),_0x4297c4;}['_splitMarkerName'](_0x5bd87d){const _0x4f91bb=_0x5bd87d['split'](':');return{'group':_0x4f91bb[0x0],'type':_0x4f91bb[0x1],'subType':_0x4f91bb['length']>=0x5?_0x4f91bb[0x2]:null,'id':_0x4f91bb['length']<0x5?_0x4f91bb[0x2]:_0x4f91bb[0x3],'authorId':_0x4f91bb['length']<0x5?_0x4f91bb[0x3]:_0x4f91bb[0x4],'markerCount':0x6==_0x4f91bb['length']?_0x4f91bb[0x5]:null};}['_breakSuggestionMarker'](_0x3551de,_0x29acad,_0x2f982d){const _0x51ee12=_0x3551de['getFirstRange'](),_0x3168bd=_0x51ee12['start'],_0x32dc87=_0x51ee12['end'];this['_setSuggestionRange'](_0x3551de,this['_model']['createRange'](_0x3168bd,_0x29acad));const _0x554c89=_0x27f732(),_0x455f55=_0x3551de['creator']['id'],_0x4a8301=_0x3551de['type']+(_0x3551de['subType']?':'+_0x3551de['subType']:'');this['_setSuggestionData']({'id':_0x554c89,'type':_0x4a8301,'createdAt':new Date(),'authorId':_0x455f55,'originalSuggestionId':_0x3551de['id'],'attributes':_0x3551de['attributes'],'data':_0x3551de['data']});const _0x213be2=this['_getAttributeKey'](_0x3551de);('formatBlock'==_0x3551de['type']||_0x213be2&&this['_isBlockAttribute'](_0x213be2))&&(_0x2f982d=this['_model']['createPositionBefore'](_0x2f982d['parent'])),this['_addSuggestionMarker'](_0x4a8301,_0x554c89,_0x455f55,this['_model']['createRange'](_0x2f982d,_0x32dc87));}['_findSuggestions'](_0x37f847,_0x1e51dd=null){const _0x48c6f5=[],_0x13747d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x37f847)||(_0x37f847=[_0x37f847]);for(const _0x382e15 of this['getSuggestions']()){if(!_0x382e15['isInContent'])continue;if(_0x1e51dd&&_0x382e15['type']!=_0x1e51dd)continue;let _0x23cce9=!0x1;for(const _0x2f3ccc of _0x382e15['getRanges']()){for(const _0x5f0ff0 of _0x37f847){const _0x28efb2=_0x5f0ff0['start']['isEqual'](_0x2f3ccc['end'])||_0x5f0ff0['end']['isEqual'](_0x2f3ccc['start']);if(_0x28efb2||_0x5f0ff0['getIntersection'](_0x2f3ccc)){const _0x2fe0b3=_0x5f0ff0['containsRange'](_0x2f3ccc)&&Tt(this['_model']['schema'],_0x2f3ccc['start'],_0x5f0ff0),_0x432540=_0x2f3ccc['containsRange'](_0x5f0ff0)&&Tt(this['_model']['schema'],_0x5f0ff0['start'],_0x2f3ccc);_0x48c6f5['push']({'suggestion':_0x382e15,'meta':{'isOwn':_0x13747d==_0x382e15['author'],'isNextTo':_0x28efb2,'isInsideObject':_0x2fe0b3,'containsRangeInObject':_0x432540}}),_0x23cce9=!0x0;break;}}if(_0x23cce9)break;}}return _0x48c6f5;}['_addSuggestionMarker'](_0xfc247a,_0x43fc2,_0x465bbd,_0x3c7b99,_0x3324e1){this['_model']['change'](_0x3774c6=>{let _0x4722ff='suggestion:'+_0xfc247a+':'+_0x43fc2+':'+_0x465bbd;_0x3324e1&&(_0x4722ff=_0x4722ff+':'+_0x3324e1),_0x3774c6['addMarker'](_0x4722ff,{'range':_0x3c7b99,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x59c419){const _0x5c7f0d=_0x59c419['previous'],_0x596487=_0x59c419['next'];_0x59c419['previous']=null,_0x59c419['next']=null,null!=_0x5c7f0d&&_0x5c7f0d['next']==_0x59c419&&(_0x5c7f0d['next']=_0x596487),null!=_0x596487&&_0x596487['previous']==_0x59c419&&(_0x596487['previous']=_0x5c7f0d),'ready'==this['_suggestionState']['get'](_0x59c419)&&(this['_suggestionState']['set'](_0x59c419,'removed'),this['fire']('suggestionUnloaded',_0x59c419,_0x5c7f0d,_0x596487));}['_setSuggestionData'](_0x5cce4c){const _0x153867=_0x5cce4c['id'],_0x308d72=this['addSuggestionData'](_0x5cce4c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d2cfb=this['editor']['plugins']['get']('PendingActions'),_0x1d21a6=_0x308d72['hasComments'],_0x51d4f3=_0x308d72['subType']?_0x308d72['type']+':'+_0x308d72['subType']:_0x308d72['type'],_0x3c6353=this['editor']['locale'],_0x3c557a=_0x1d2cfb['add'](o(_0x3c6353,'PENDING_ACTION_SUGGESTION')),_0x23b2e8={'id':_0x153867,'type':_0x51d4f3,'hasComments':_0x1d21a6,'data':_0x5cce4c['data']||null,'originalSuggestionId':_0x5cce4c['originalSuggestionId']||null,'attributes':_0x308d72['attributes']};this['_adapter']['addSuggestion'](_0x23b2e8)['then'](_0x1f81ee=>{_0x308d72['_saved']=!0x0,_0x1d2cfb['remove'](_0x3c557a),_0x1f81ee&&_0x1f81ee['createdAt']&&(this['_suggestions']['get'](_0x153867)['createdAt']=_0x1f81ee['createdAt']);})['catch'](_0x4dd813=>{throw _0x227421('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x308d72['discard']();}),_0x308d72['stopListening'](),this['_suggestions']['delete'](_0x308d72['id']),this['_suggestionState']['delete'](_0x308d72),_0x4dd813;});}return _0x308d72;}['_isBlockAttribute'](_0x2e72e7){return this['_blockAttributeKeys']['has'](_0x2e72e7);}['_updateSuggestionData'](_0x18c005,_0x1f7ff1){const _0x36a43a=this['editor']['plugins']['get']('PendingActions'),_0x39f7a5=this['getSuggestion'](_0x18c005);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x39f7a5['_saved']){const _0x4381ff=_0x36a43a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x18c005,_0x1f7ff1)['then'](()=>{_0x36a43a['remove'](_0x4381ff);});}else _0x39f7a5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x18c005,_0x1f7ff1);});}}['_getSuggestionData'](_0x2d78a5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3cf89a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d78a5);}['_handleNewSuggestionMarker'](_0x1e5238){const {id:_0x2ce636,type:_0x3b5de8,subType:_0x1a72d2,authorId:_0x5e1907}=this['_splitMarkerName'](_0x1e5238),_0x1a5716=this['_suggestions']['get'](_0x2ce636)||this['_createSuggestion'](_0x3b5de8,_0x1a72d2,_0x2ce636,_0x5e1907,{});switch(this['_checkSuggestionCorrectness'](_0x1a5716,_0x3b5de8,_0x1a72d2,_0x5e1907),this['_suggestionState']['get'](_0x1a5716)){case'notReady':this['_getSuggestionData'](_0x2ce636)['then'](_0x163d8e=>{let _0x21881b=Promise['resolve']();_0x163d8e['hasComments']&&(_0x21881b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ce636})),_0x21881b['then'](()=>{this['addSuggestionData'](_0x163d8e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1a5716,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ce636,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1a5716,'ready'),this['fire']('suggestionLoaded',_0x1a5716);break;case'ready':this['fire']('suggestionChanged',_0x1a5716);}return _0x1a5716['addMarkerName'](_0x1e5238),_0x1a5716;}['_refreshSuggestionsChain'](_0x310ae2){const _0xf0491e=Array['from'](_0x310ae2),_0x371e66=_0xf0491e['filter'](_0xa1b7fe=>'attribute'==_0xa1b7fe['type']);this['_refreshAttributeSuggestionsChain'](_0x371e66);const _0x4bcfba=_0xf0491e['filter'](_0x3ddd5a=>!_0x3ddd5a['isMultiRange']&&'attribute'!=_0x3ddd5a['type']),_0x7c1dfd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47b83f=>!_0x47b83f['isMultiRange']&&'attribute'!=_0x47b83f['type']),_0x19b7e2=_0x7c1dfd['filter'](_0x36e086=>!_0x310ae2['has'](_0x36e086)),_0x45b991=new Map(_0x7c1dfd['map'](_0x29a946=>[_0x29a946,this['_suggestionFactory']['getSuggestionCallback'](_0x29a946['type'],_0x29a946['subType'],'chain')])),_0x1219ea=new Map(_0x7c1dfd['map'](_0x23d6eb=>[_0x23d6eb,_0x23d6eb['getFirstRange']()])),_0x58f084=new Set(),_0x4634d5=new Set();for(let _0x3d81d5=0x0;_0x3d81d5<_0x4bcfba['length'];_0x3d81d5++)_0x51294a(_0x4bcfba[_0x3d81d5],_0x4bcfba,_0x3d81d5+0x1);for(let _0x32b6da=0x0;_0x32b6da<_0x4bcfba['length'];_0x32b6da++)_0x51294a(_0x4bcfba[_0x32b6da],_0x19b7e2,0x0);const _0x53caeb=new Set();for(let _0x107247=0x0;_0x107247<_0x4bcfba['length'];_0x107247++){const _0x1c46f5=_0x4bcfba[_0x107247];!_0x4634d5['has'](_0x1c46f5)&&_0x1c46f5['previous']&&(_0x53caeb['add'](_0x1c46f5['previous']),_0x1c46f5['previous']['next']===_0x1c46f5&&(_0x1c46f5['previous']['next']=null),_0x1c46f5['previous']=null),!_0x58f084['has'](_0x1c46f5)&&_0x1c46f5['next']&&(_0x53caeb['add'](_0x1c46f5['next']),_0x1c46f5['next']['previous']===_0x1c46f5&&(_0x1c46f5['next']['previous']=null),_0x1c46f5['next']=null);}function _0x51294a(_0x51bc53,_0x395c53,_0x5b1810){for(let _0x488da2=_0x5b1810;_0x488da2<_0x395c53['length'];_0x488da2++){const _0x104517=_0x126e0c(_0x51bc53,_0x395c53[_0x488da2]);_0x104517&&(_0x104517[0x0]['next']=_0x104517[0x1],_0x104517[0x1]['previous']=_0x104517[0x0],_0x58f084['add'](_0x104517[0x0]),_0x4634d5['add'](_0x104517[0x1]));}}function _0x126e0c(_0x443e67,_0x2ee205){if(_0x443e67['author']['id']!==_0x2ee205['author']['id'])return null;const _0x580ce7=_0x45b991['get'](_0x443e67)(_0x443e67,_0x2ee205,_0x1219ea['get'](_0x443e67),_0x1219ea['get'](_0x2ee205));if(!_0x580ce7)return null;return _0x45b991['get'](_0x2ee205)(_0x443e67,_0x2ee205,_0x1219ea['get'](_0x443e67),_0x1219ea['get'](_0x2ee205))?_0x580ce7[0x1]['commentThread']&&_0x580ce7[0x1]['commentThread']['length']?null:_0x580ce7:null;}_0x53caeb['size']&&this['_refreshSuggestionsChain'](_0x53caeb);}['_refreshAttributeSuggestionsChain'](_0x3594c2){if(0x0==_0x3594c2['length'])return;const _0x41e372=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x164e73=>'attribute'==_0x164e73['type']&&_0x164e73['_isDataLoaded']),_0x9f4170=[],_0x39f9c2=new Map();for(const _0x291571 of _0x41e372){const _0x187acb=_0x16ce2e(_0x291571['attributes']);_0x39f9c2['has'](_0x187acb)||(_0x39f9c2['set'](_0x187acb,_0x9f4170['length']),_0x9f4170['push']([]));const _0x3180e6=_0x39f9c2['get'](_0x187acb);_0x9f4170[_0x3180e6]['push'](_0x291571);}!(function(){_0x9f4170['sort']((_0x1e538d,_0x44b4b0)=>{const _0xab9b21=_0x1e538d[0x0]['createdAt'],_0x356653=_0x44b4b0[0x0]['createdAt'];return _0xab9b21==_0x356653?_0x1e538d[0x0]['attributes']['groupId']<_0x44b4b0[0x0]['attributes']['groupId']?-0x1:0x1:_0xab9b21<_0x356653?-0x1:0x1;});for(const _0xda94ec of _0x9f4170)_0xda94ec['sort']((_0x349101,_0x40d1d0)=>_0x349101['id']<_0x40d1d0['id']?-0x1:0x1);}());for(let _0x383f9d=0x0;_0x383f9d<_0x9f4170['length'];_0x383f9d++){if(0x0==_0x9f4170[_0x383f9d]['length'])continue;const _0x4f9e67=[];for(let _0x325cb7=_0x383f9d+0x1;_0x325cb7<_0x9f4170['length'];_0x325cb7++)0x0!=_0x9f4170[_0x325cb7]['length']&&_0x2be887(_0x9f4170[_0x383f9d],_0x9f4170[_0x325cb7])&&_0x4f9e67['push'](_0x325cb7);for(const _0x18d035 of _0x4f9e67)_0x9f4170[_0x383f9d]=_0x9f4170[_0x383f9d]['concat'](_0x9f4170[_0x18d035]),_0x9f4170[_0x18d035]=[];}for(const _0x245236 of _0x9f4170)for(let _0x292598=0x0;_0x292598<_0x245236['length'];_0x292598++)_0x245236[_0x292598]['next']=_0x245236[_0x292598+0x1]||null;for(const _0x23aaed of _0x9f4170)for(let _0x19378b=0x0;_0x19378b<_0x23aaed['length'];_0x19378b++)_0x23aaed[_0x19378b]['previous']=_0x23aaed[_0x19378b-0x1]||null;function _0x2be887(_0x4998d7,_0x13daf7){if(_0x4998d7[0x0]['attributes']['groupId']!==_0x13daf7[0x0]['attributes']['groupId']&&_0x4998d7[0x0]['author']!==_0x13daf7[0x0]['author'])return!0x1;if(!function(_0x445b64,_0x333e1a){if(!_0x445b64['hasComments']&&!_0x333e1a['hasComments'])return!0x0;if(_0x445b64['hasComments']&&_0x333e1a['hasComments'])return!0x1;if(_0x445b64['hasComments']&&_0x333e1a['createdAt']<_0x445b64['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x333e1a['hasComments']&&_0x445b64['createdAt']<_0x333e1a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4998d7[0x0],_0x13daf7[0x0]))return!0x1;const _0x5ec1e3=xt(_0x4998d7[0x0]['attributes'],'groupId'),_0x5ed684=xt(_0x13daf7[0x0]['attributes'],'groupId');if(!_0x35c1e7(_0x5ec1e3,_0x5ed684))return!0x1;return!!_0x4998d7['every'](_0x22a0df=>_0x13daf7['some'](_0x5eb66f=>_0x22a0df['getFirstRange']()['isEqual'](_0x5eb66f['getFirstRange']())))&&_0x13daf7['every'](_0x4f6808=>_0x4998d7['some'](_0x313494=>_0x4f6808['getFirstRange']()['isEqual'](_0x313494['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x582f65){const _0xe4a443=Array['from'](_0x582f65),_0x4bf3eb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x204218=_0x4bf3eb['filter'](_0x29b3b2=>!_0x582f65['has'](_0x29b3b2)),_0x95375f=new Map(_0xe4a443['map'](_0x4a32f5=>[_0x4a32f5,this['_suggestionFactory']['getSuggestionCallback'](_0x4a32f5['type'],_0x4a32f5['subType'],'join')])),_0x357f0e=new Map(_0x4bf3eb['map'](_0x3e56f4=>[_0x3e56f4,_0x3e56f4['getRanges']()]));for(let _0x5666dd=0x0;_0x5666dd<_0xe4a443['length'];_0x5666dd++){if(_0xd1e2d(this,_0xe4a443[_0x5666dd],_0xe4a443,_0x5666dd+0x1))return!0x0;}for(let _0x151bb8=0x0;_0x151bb8<_0xe4a443['length'];_0x151bb8++){if(_0xd1e2d(this,_0xe4a443[_0x151bb8],_0x204218,0x0))return!0x0;}return!0x1;function _0xd1e2d(_0x2c90be,_0x44bc5b,_0x572974,_0x4e0aec){for(let _0x1b3135=_0x4e0aec;_0x1b3135<_0x572974['length'];_0x1b3135++){const _0x5b9bf1=_0x572974[_0x1b3135];if(_0x5b9bf1['type']!==_0x44bc5b['type']||_0x5b9bf1['author']['id']!==_0x44bc5b['author']['id']||_0x5b9bf1['subType']!==_0x44bc5b['subType'])continue;if(!Lt(_0x44bc5b,_0x5b9bf1,['groupId']))continue;if('attribute'==_0x44bc5b['type']&&_0x44bc5b['data']['oldValue']!=_0x5b9bf1['data']['oldValue'])continue;if('attribute'==_0x44bc5b['type']&&_0x2c90be['_isBlockAttribute'](_0x44bc5b['data']['key']))continue;if('formatBlock'==_0x44bc5b['type']){const _0x3f7f2b=_0x2c90be['editor']['model'],_0x555cd5=_0x44bc5b['getContainedElement']();if(_0x555cd5&&(_0x3f7f2b['schema']['isObject'](_0x555cd5)||_0x3f7f2b['schema']['isLimit'](_0x555cd5)))continue;}const _0xb2b16b=_0x95375f['get'](_0x44bc5b),_0x7bcc7b=_0x357f0e['get'](_0x44bc5b),_0xbc1599=_0x357f0e['get'](_0x5b9bf1),_0x45756b=_0x44bc5b['commentThread']&&_0x44bc5b['commentThread']['length'],_0x187759=_0x5b9bf1['commentThread']&&_0x5b9bf1['commentThread']['length'];if(!_0x45756b&&_0xb2b16b(_0xbc1599,_0x7bcc7b))return _0x2c90be['_joinSuggestions'](_0x5b9bf1,_0x44bc5b),_0x357f0e['delete'](_0x44bc5b),!0x0;if(!_0x187759&&_0xb2b16b(_0x7bcc7b,_0xbc1599))return _0x2c90be['_joinSuggestions'](_0x44bc5b,_0x5b9bf1),_0x357f0e['delete'](_0x5b9bf1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x194f0c,_0x33f85c){if(_0x194f0c['isMultiRange']){for(const _0x2d5a0a of _0x33f85c['getRanges']())_0x194f0c['addRange'](_0x2d5a0a);}else{const _0x2c7e86=_0x33f85c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x194f0c,this['_model']['createRange'](_0x194f0c['getFirstRange']()['start'],_0x2c7e86));}_0x33f85c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x58ed0c,_0x421c36){const _0x3b6d0a=_0x58ed0c['startsWith']('format')||_0x58ed0c['startsWith']('attribute')?'FORMATTING':_0x58ed0c['toUpperCase']();return o(this['editor']['locale'],_0x421c36+'_'+_0x3b6d0a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x50cdb8=this['editor'];if(!_0x50cdb8['ui'])return;const {ariaLiveAnnouncer:_0x3e44d4}=_0x50cdb8['ui'];_0x176339(this['_model'],({left:_0x2586be,entered:_0x145ae5})=>{for(const _0x461035 of _0x2586be){const {group:_0x2b92ce,type:_0x1abc55}=this['_splitMarkerName'](_0x461035['name']);if('suggestion'===_0x2b92ce){_0x3e44d4['announce'](this['_getMarkerAnnouncementText'](_0x1abc55,'LEAVE'));break;}}for(const _0x1c84bb of _0x145ae5){const {group:_0x23721a,type:_0x22a0d7}=this['_splitMarkerName'](_0x1c84bb['name']);if('suggestion'===_0x23721a){_0x3e44d4['announce'](this['_getMarkerAnnouncementText'](_0x22a0d7,'ENTER'));break;}}});}['_processAttributeChanges'](_0x21c35d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x157747=this['editor'],_0x5ee9f1=_0x157747['model']['document']['differ']['getChanges']();if(0x0==_0x5ee9f1['length'])return!0x1;const _0x5c6ddf=[],_0x57553b=_0x5ee9f1['filter'](_0xad71f6=>'attribute'==_0xad71f6['type']),_0x5bf65a=_0x5ee9f1['filter'](_0x4f0bc6=>'insert'==_0x4f0bc6['type']&&'$text'!=_0x4f0bc6['name']),_0x7f8628=_0x5ee9f1['filter'](_0x380809=>'remove'==_0x380809['type']&&'$text'!=_0x380809['name']);for(const _0xd7d778 of _0x57553b)_0x5c6ddf['push']({'key':_0xd7d778['attributeKey'],'newValue':_0xd7d778['attributeNewValue'],'oldValue':_0xd7d778['attributeOldValue'],'range':Gt(_0xd7d778['range'],_0x157747['model'])});for(const _0x184a30 of _0x5bf65a){const _0x28ab45=_0x7f8628['find'](_0xac575c=>_0xac575c['position']['isEqual'](_0x184a30['position']));_0x28ab45&&_0x5c6ddf['push']({'key':m,'newValue':_0x184a30['name'],'oldValue':_0x28ab45['name'],'range':_0x157747['model']['createRangeOn'](_0x184a30['position']['nodeAfter'])});}return 0x0!=_0x5c6ddf['length']&&this['_reduceExistingSuggestions'](_0x21c35d,_0x5c6ddf);}['_processAttributeSuggestions'](_0x475130){let _0x43be03=!0x1;const _0x4e112f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x514f45=>_0x514f45['data']['newRange']&&_0x514f45['name']['startsWith']('suggestion:attribute:'));for(const _0x554de2 of _0x4e112f){const {subType:_0x1a5fa1,id:_0x197112}=this['_splitMarkerName'](_0x554de2['name']),_0x474824=_0x1a5fa1['split']('|')[0x0];for(const _0x31a278 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x31a278['id']!=_0x197112&&'attribute'==_0x31a278['type']&&_0x31a278['data']&&_0x31a278['data']['key']==_0x474824&&_0x31a278['getFirstRange']()['isIntersecting'](_0x554de2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x31a278,_0x554de2['data']['newRange'],_0x475130),_0x43be03=!0x0);}return _0x43be03;}['_recordAttributeChanges'](_0x564bdd){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x564bdd();}['_isRegisteredAttribute'](_0x50c177){const _0xdea71f=this['_isBlockAttribute'](_0x50c177),_0x3fbd25=this['_inlineAttributeKeys']['has'](_0x50c177);return _0xdea71f||_0x3fbd25;}['_reduceExistingSuggestions'](_0x233b30,_0x10fbef){if(0x0==_0x10fbef['length'])return!0x1;let _0x4cc442=!0x1;for(const _0x7688d5 of _0x10fbef){const _0xd53e9b=this['_findSuggestions'](_0x7688d5['range'],'attribute')['filter'](_0x32c4f8=>!_0x32c4f8['meta']['isNextTo'])['map'](_0x2df871=>_0x2df871['suggestion']),_0x4063ab=_0x16ce2e({'newValue':_0x7688d5['newValue']});_0xd53e9b['filter'](_0xc2965c=>{const [_0x324540,_0x5f0e9f]=_0xc2965c['subType']['split']('|');return _0x324540==_0x7688d5['key']&&_0x5f0e9f!=_0x4063ab;})['forEach'](_0x11e603=>{this['_reduceSuggestionAttributeRange'](_0x11e603,_0x7688d5['range'],_0x233b30),_0x4cc442=!0x0;});}return _0x4cc442;}['_reduceSuggestionAttributeRange'](_0x521a91,_0x43b355,_0x52ffca){const _0x568af9=_0x521a91['getFirstRange']()['getDifference'](_0x43b355);0x0!==_0x568af9['length']?0x1!==_0x568af9['length']?this['_breakSuggestionMarker'](_0x521a91,_0x43b355['start'],_0x43b355['end']):this['_setSuggestionRange'](_0x521a91,_0x568af9[0x0]):_0x52ffca['removeMarker'](_0x521a91['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b18ce){this['_editor']=_0x5b18ce,this['_model']=_0x5b18ce['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22aaf0,_0x5820d8,_0x58ab72,_0x2df786,_0x4fe11a,_0x47ca31){return new u(this['_model'],{'type':_0x22aaf0,'subType':_0x5820d8,'id':_0x58ab72,'author':_0x2df786,'creator':_0x2df786,'attributes':_0x4fe11a,'onAttributesChange':_0x47ca31,'onAccept':(..._0x2f5d8)=>this['getSuggestionCallback'](_0x22aaf0,_0x5820d8,'accept')(..._0x2f5d8),'onDiscard':(..._0x374bfe)=>this['getSuggestionCallback'](_0x22aaf0,_0x5820d8,'discard')(..._0x374bfe)});}['registerCustomCallback'](_0x20b8cc,_0x24b6ba,_0x9b51c4,_0x422924){const _0x58884c=_0x20b8cc+':'+_0x24b6ba+':'+_0x9b51c4;this['_customCallbacks']['set'](_0x58884c,_0x422924);}['getSuggestionCallback'](_0x512837,_0x53d785,_0x5cfd60){const _0x22ff5d=_0x512837+':'+_0x53d785+':'+_0x5cfd60;return this['_customCallbacks']['get'](_0x22ff5d)||this['_defaultCallbacks']['get'](_0x512837+':'+_0x5cfd60);}['_registerDefaultCallbacks'](){const _0x192011=()=>!0x1,_0xc15e6c=_0x2ee029=>{_0x2ee029['sort']((_0x460087,_0x5390e7)=>_0x460087['start']['isBefore'](_0x5390e7['start'])?0x1:-0x1),this['_model']['change'](_0x17332b=>{for(const _0x1d5a41 of _0x2ee029){let _0x186f2e;_0x186f2e=_0x1d5a41['end']['isAtEnd']&&_0x1d5a41['end']['parent']==_0x1d5a41['start']['nodeAfter']?_0x17332b['createSelection'](_0x1d5a41['start']['nodeAfter'],'on'):_0x17332b['createSelection'](_0x1d5a41),this['_model']['deleteContent'](_0x186f2e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3ac186=(_0x277cc4,_0x16364a)=>{_0x16364a&&this['_model']['change'](_0x36571c=>{const {commandName:_0x31bd68,commandParams:_0x2e707a=[]}=_0x16364a,_0x3e56dc=_0x277cc4['map'](_0x26c59a=>(Et(_0x26c59a)&&(_0x26c59a=this['_model']['createRange'](_0x26c59a['end'])),_0x26c59a))['filter'](_0x4af959=>'$graveyard'!==_0x4af959['root']['rootName']);if(_0x3e56dc['length']<0x1)return;const _0x5af888=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x25444f=>_0x948f0b['fromRange'](_0x25444f));_0x36571c['setSelection'](_0x3e56dc);for(const _0x57e8f2 of this['_editor']['commands']['commands']())_0x57e8f2['refresh']();_0x2e707a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31bd68,..._0x2e707a);const _0x1b3f85=_0x5af888['filter'](_0x37b0fe=>'$graveyard'!=_0x37b0fe['root']['rootName']);_0x1b3f85['length']>0x0&&_0x36571c['setSelection'](_0x1b3f85);for(const _0x204729 of _0x5af888)_0x204729['detach']();});},_0x3eb6ca=(_0xba3be5,_0x109768)=>0x1==_0xba3be5['length']&&0x1==_0x109768['length']&&_0xba3be5[0x0]['end']['isEqual'](_0x109768[0x0]['start']),_0x3cc224=(_0x52dce9,_0x45962e,_0x3dae71,_0x125399)=>Pt(_0x52dce9,_0x45962e,_0x3dae71,_0x125399,this['_model'])?[_0x52dce9,_0x45962e]:Pt(_0x45962e,_0x52dce9,_0x125399,_0x3dae71,this['_model'])?[_0x45962e,_0x52dce9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x192011),this['_defaultCallbacks']['set']('insertion:discard',_0xc15e6c),this['_defaultCallbacks']['set']('insertion:join',_0x3eb6ca),this['_defaultCallbacks']['set']('insertion:chain',_0x3cc224),this['_defaultCallbacks']['set']('deletion:accept',_0xc15e6c),this['_defaultCallbacks']['set']('deletion:discard',_0x192011),this['_defaultCallbacks']['set']('deletion:join',_0x3eb6ca),this['_defaultCallbacks']['set']('deletion:chain',_0x3cc224),this['_defaultCallbacks']['set']('formatInline:accept',_0x3ac186),this['_defaultCallbacks']['set']('formatInline:discard',_0x192011),this['_defaultCallbacks']['set']('formatInline:join',_0x3eb6ca),this['_defaultCallbacks']['set']('formatInline:chain',_0x192011),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3ac186),this['_defaultCallbacks']['set']('formatBlock:discard',_0x192011),this['_defaultCallbacks']['set']('formatBlock:join',_0x3eb6ca),this['_defaultCallbacks']['set']('formatBlock:chain',_0x192011),this['_defaultCallbacks']['set']('attribute:accept',_0x192011),this['_defaultCallbacks']['set']('attribute:discard',(_0x4c8ba2,_0xbb5002)=>{if(!_0xbb5002)return;const _0x24e2a2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x473aa3=>{if(_0xbb5002['key']==m)for(const _0x25f94d of _0x4c8ba2){const _0x7362e=_0x25f94d['start']['nodeAfter'],_0x392684=_0xbb5002['oldValue'];_0x473aa3['rename'](_0x7362e,_0x392684);}else{if(_0x24e2a2['_isBlockAttribute'](_0xbb5002['key'])){for(const _0x2bd8f3 of _0x4c8ba2)void 0x0!==_0xbb5002['oldValue']?_0x473aa3['setAttribute'](_0xbb5002['key'],_0xbb5002['oldValue'],_0x2bd8f3['start']['nodeAfter']):_0x473aa3['removeAttribute'](_0xbb5002['key'],_0x2bd8f3['start']['nodeAfter']);}else{for(const _0x451334 of _0x4c8ba2)_0xbb5002['oldValue']?_0x473aa3['setAttribute'](_0xbb5002['key'],_0xbb5002['oldValue'],_0x451334):_0x473aa3['removeAttribute'](_0xbb5002['key'],_0x451334);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3eb6ca);}}function Tt(_0x3e74c4,_0x151f99,_0x58bd56){for(const _0x4f0fd1 of _0x151f99['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f0fd1['root']==_0x4f0fd1)return!0x1;if(!_0x58bd56['containsItem'](_0x4f0fd1))return!0x1;if(_0x3e74c4['isObject'](_0x4f0fd1)||_0x3e74c4['isLimit'](_0x4f0fd1))return!0x0;}return!0x1;}function Et(_0x12832b){return _0x12832b['end']['parent']==_0x12832b['start']['nodeAfter']&&_0x12832b['end']['isAtStart'];}function Vt(_0x46bd26,_0x4e7242,_0x5265b2,_0x19099f){const _0x393fd6=_0x1fdb21=>!_0x1fdb21['item']['is']('$textProxy')&&!_0x19099f['isObject'](_0x1fdb21['item']),_0x54d068=_0x46bd26['start']['getLastMatchingPosition'](_0x393fd6),_0x459a7e=_0x46bd26['end']['getLastMatchingPosition'](_0x393fd6,{'direction':'backward'});return(!_0x46bd26['start']['isEqual'](_0x54d068)||!_0x46bd26['end']['isEqual'](_0x459a7e))&&(_0x54d068['isBefore'](_0x459a7e)?_0x5265b2['updateMarker'](_0x4e7242,{'range':_0x5265b2['createRange'](_0x54d068,_0x459a7e)}):_0x5265b2['removeMarker'](_0x4e7242),!0x0);}function Ut(_0x1edf57){return _0x16ce2e(_0x1edf57);}function Ot(_0x502810){const _0x122f35=_0x502810['start']['nodeAfter'];return _0x122f35&&_0x122f35['is']('element');}function Gt(_0x3a59e1,_0x4b503c){return null==_0x3a59e1['end']['nodeBefore']&&_0x3a59e1['end']['parent']==_0x3a59e1['start']['nodeAfter']?Ft(_0x3a59e1['start']['nodeAfter'],_0x4b503c):_0x3a59e1;}function Ft(_0x5b3967,_0x3b648d){const _0x1a7bfe=_0x3b648d['schema']['isObject'](_0x5b3967)||_0x3b648d['schema']['isSelectable'](_0x5b3967);return _0x3b648d['createRange'](_0x3b648d['createPositionAt'](_0x5b3967,'before'),_0x1a7bfe?_0x3b648d['createPositionAfter'](_0x5b3967):_0x3b648d['createPositionAt'](_0x5b3967,'end'));}function Pt(_0x350c77,_0x1cb857,_0x3261d3,_0x4058f1,_0x561855){if(!Lt(_0x350c77,_0x1cb857))return!0x1;if(_0x3261d3['end']['isEqual'](_0x4058f1['start']))return!0x0;if(_0x350c77['type']!=_0x1cb857['type'])return!0x1;if(!_0x3261d3['end']['isTouching'](_0x4058f1['start']))return!0x1;const _0x14bde8=_0x561855['createRange'](_0x3261d3['end'],_0x4058f1['start'])['getWalker']();for(const _0x147de9 of _0x14bde8)if(['elementStart','elementEnd']['includes'](_0x147de9['type'])&&_0x561855['schema']['isLimit'](_0x147de9['item']))return!0x1;return!0x0;}function Lt(_0x53af9c,_0x5089e2,_0x31cc15=[]){return!(!_0x53af9c['_isDataLoaded']||!_0x5089e2['_isDataLoaded'])&&_0x35c1e7(xt(_0x53af9c['attributes'],_0x31cc15),xt(_0x5089e2['attributes'],_0x31cc15));}function Ht(_0xe97712,_0x166ddf){const _0x2026c5=qt(_0xe97712['attributes']),_0x59b4bd=qt(_0x166ddf);if(!_0xe97712['_isDataLoaded'])return!0x1;for(const _0x306d81 of Object['keys'](_0x59b4bd))if(!_0x35c1e7(_0x2026c5[_0x306d81],_0x59b4bd[_0x306d81]))return!0x1;return!0x0;}function qt(_0x1ee201){const _0x1d81d8=Object['assign']({},_0x1ee201);return delete _0x1d81d8['skipNestingCheck'],delete _0x1d81d8['tablePasteChainId'],_0x1d81d8;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x28acc2(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x451d03,_0x15bd4c,_0x54cf53,_0x21a098){super(),this['model']=_0x15bd4c,this['view']=_0x54cf53,this['commentThreadController']=_0x21a098,this['_editor']=_0x451d03,this['_acceptCommand']=_0x451d03['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x451d03['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x454d72,_0x3166ef)=>_0x454d72||_0x3166ef),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2dd03e=>_0x2dd03e&&this['_editor']['model']['canEditAt'](_0x15bd4c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x39c168=>_0x39c168&&this['_editor']['model']['canEditAt'](_0x15bd4c['getRanges']())),this['_pendingAction']=null,_0x54cf53['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x54cf53,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x54cf53,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x54cf53,'change:isDirty',()=>{_0x54cf53['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 _0x512003=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x512003);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x590774{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x473f2e,_0x4e9ed4,_0xa4e79e,_0x1dda9f){super(_0x473f2e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4e9ed4['authoredAt']),this['bind']('authoredAt')['to'](_0x4e9ed4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4e9ed4,this['_localUser']=_0xa4e79e,this['_config']=_0x1dda9f,_0x1dda9f['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:_0x50c3f5}=this['_config'];this['commentsListView']=new _0x50c3f5(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',_0x444ff7=>_0x444ff7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x255d81,_0x3ae867)=>_0x255d81||!!_0x3ae867);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4258ba}=this['_config'],_0x385962=new _0x4258ba(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x288e80=_0x385962['commentInputView'];return _0x385962['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x288e80,'value',(_0x1ddcec,_0x3f2ee4,_0x3ea583)=>!!_0x3ea583||_0x1ddcec&&!_0x3f2ee4),_0x288e80['on']('submit',(_0x48e84a,_0x16c133)=>{this['fire']('addComment',_0x16c133),_0x288e80['editor']['setData']('');}),_0x288e80['on']('cancel',()=>this['focus']()),_0x288e80['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x385962;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x406c25,_0x39463e,_0x2c38c0,_0x34849c){super(_0x406c25,_0x39463e,_0x2c38c0,_0x34849c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x57cf0f=>_0x57cf0f&&_0x57cf0f[0x0]?_0x57cf0f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5c9960,_0x10d3bc)=>{let _0x2c8ca9='';for(const _0x1e183e of _0x5c9960)_0x2c8ca9+='<p>'+ds(_0x1e183e['content'],_0x1e183e['color'])+'</p>';return _0x10d3bc?_0x2c8ca9:_0x39a1b4(_0x2c8ca9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x406c25,'Accept\x20suggestion'),_0x5dc603['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x406c25,'Discard\x20suggestion'),_0x5dc603['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x315dbd(_0x406c25,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3b5919=this['bindTemplate'],_0x159a73=[{'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':_0x3b5919['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3b5919['to']('authoredAt',_0x1b09ae=>this['_config']['formatDateTime'](_0x1b09ae))}]}]},{'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']&&_0x159a73['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2e342d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3b5919['if']('isActive','ck-suggestion-wrapper--active'),_0x3b5919['to']('type',_0x322722=>'ck-suggestion-'+_0x322722),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':_0x159a73}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2e342d['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)),_0x2e342d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x187c24,_0x20729f,_0x1c278d)=>{this['_descriptionElement']['innerHTML']=_0x1c278d;});}['_createButton'](_0x1e33a9,_0x12bf7f,_0x28ca25,_0x3838da,_0x22a3de){const _0x45276b=new _0x56024e(this['locale']);return _0x45276b['set']({'label':_0x1e33a9,'icon':_0x12bf7f,'tooltip':!0x0,'tooltipPosition':_0x22a3de}),_0x45276b['extendTemplate']({'attributes':{'class':_0x28ca25}}),_0x45276b['on']('execute',()=>{this['fire'](_0x3838da,this['_model']['id']);}),_0x45276b;}['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(_0x1a7b89,_0x3e200f){let _0x27bc93='';return _0x27bc93+=_0x1a7b89['split']('*')['map']((_0x2cab93,_0x279c8f)=>_0x279c8f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x2cab93)+'</span>':us(_0x2cab93))['join'](''),_0x3e200f&&(_0x27bc93+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3e200f['value']+'\x22\x20title=\x22'+_0x3e200f['title']+'\x22></span>'),_0x27bc93;}function us(_0x17b800){const _0x11b500=document['createElement']('span');return _0x11b500['innerText']=_0x17b800,_0x11b500['innerHTML'];}var ae='<!--\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 _0x15c086{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x391bb8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x112b63){super(_0x112b63),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40f9fc=this['editor']['config'];_0x40f9fc['define']('trackChanges.SuggestionThreadView',ie),_0x40f9fc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40f9fc['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1c7f90,_0x4578c9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b61ba,_0x19c0d1]of this['_handleControllerBuffer']){const _0x5dc013=this['_suggestionToController']['has'](_0x4b61ba);_0x5dc013||_0x19c0d1?_0x5dc013&&_0x19c0d1&&this['_destroyController'](_0x4b61ba):this['_initializeController'](_0x4b61ba);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1c7f90,_0x4578c9);}['init'](){const _0x45f23c=this['editor'],_0x3865a0=_0x45f23c['plugins']['get']('TrackChangesEditing'),_0x3a5ebf=_0x45f23c['plugins']['get']('Annotations'),_0x563e47=_0x45f23c['plugins']['get']('EditorAnnotations'),_0x4b2b95=_0x45f23c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x563e47['addSourceCollector'](()=>{const _0x562361=[];for(const [_0x1e5fdc,_0xa0f12c]of Array['from'](this['_suggestionToController'])){const _0x26bcb8=_0x1e5fdc['getAllAdjacentSuggestions'](),_0xcc60f1=[];for(const _0x27c338 of _0x26bcb8){if(!_0x27c338['isInContent'])continue;if(_0x27c338['isMultiRange']){_0xcc60f1['push'](..._0x27c338['getRanges']());continue;}const _0x55a6bc=_0x27c338['getFirstRange']();if(_0xcc60f1['length']>0x0){const _0x3cd8c3=_0xcc60f1[0x0]['getJoined'](_0x55a6bc);if(_0x3cd8c3){_0xcc60f1[0x0]=_0x3cd8c3;continue;}}_0xcc60f1['push'](_0x55a6bc);}_0x562361['push']([_0xa0f12c['view'],_0xcc60f1]);}return _0x562361;}),this['listenTo'](_0x3865a0,'suggestionLoaded',(_0x1a8535,_0x475643)=>{this['listenTo'](_0x475643,'change:previous',(_0x248fce,_0x215a3a,_0x219258,_0x2cce6f)=>{_0x475643['isInContent']&&(null==_0x219258?(this['_updateController'](_0x2cce6f['head']),this['_handleSuggestionControllerDelayed'](_0x475643,!0x1)):(this['_updateController'](_0x219258['head']),null==_0x2cce6f&&this['_handleSuggestionControllerDelayed'](_0x475643,!0x0)));}),null!==_0x475643['previous']?this['_updateController'](_0x475643['head']):this['_handleSuggestionControllerDelayed'](_0x475643,!0x1);}),this['listenTo'](_0x3865a0,'suggestionUnloaded',(_0x1baace,_0x4e696e,_0x2ffb95)=>{this['stopListening'](_0x4e696e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4e696e),this['_suggestionToController']['has'](_0x4e696e)&&this['_destroyController'](_0x4e696e),_0x2ffb95&&this['_updateController'](_0x2ffb95['head']);}),this['listenTo'](_0x3865a0,'suggestionChanged',(_0x3420ff,_0x1cef1e)=>{this['_updateController'](_0x1cef1e);}),this['listenTo'](_0x3a5ebf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4b2b95,'addComment',(_0x2ddb26,{threadId:_0x4ada8a,isFromAdapter:_0x4f54e5})=>{if(_0x4f54e5||!_0x3865a0['hasSuggestion'](_0x4ada8a))return;const _0x30e5d8=_0x3865a0['getSuggestion'](_0x4ada8a);this['_suggestionToController']['get'](_0x30e5d8)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xbea36b=this['editor']['plugins']['get']('Annotations'),_0x2109e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44a015=Array['from'](_0xbea36b['activeAnnotations'],_0xfc64cc=>_0xfc64cc['innerView'])['filter'](_0x193374=>this['_viewToController']['has'](_0x193374)),_0x37f593=[];for(const _0x2bcec1 of _0x44a015){const _0x6f1f3d=this['_viewToController']['get'](_0x2bcec1)['model']['getAllAdjacentSuggestions']();_0x37f593['push'](..._0x6f1f3d['reduce']((_0xb4c9f6,_0x19a46e)=>[..._0xb4c9f6,..._0x19a46e['getMarkerNames']()],[]));}_0x2109e7['activeMarkers']=_0x37f593;}['_addUIComponentsToFactory'](){const _0x737a73=this['editor'],_0x5a4839=_0x737a73['locale'],_0x2bae9b=o(_0x5a4839,'Track\x20changes'),_0x5dc6bc=new Wt([{'type':'switchbutton','model':new _0x3a5c24({'withText':!0x0,'isToggleable':!0x0,'label':_0x2bae9b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5b7cf1 of _0x5dc6bc)if(re(_0x5b7cf1)){const _0x14b9cd=_0x737a73['commands']['get'](_0x5b7cf1['model']['commandName']);_0x5b7cf1['model']['bind']('isOn','isEnabled')['to'](_0x14b9cd,'value','isEnabled');}_0x737a73['ui']['componentFactory']['add']('trackChanges',_0x7a322=>this['_createToolbarButton'](_0x7a322,_0x5dc6bc,_0x2bae9b)),_0x737a73['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d59b0=>this['_createMenuBarMenu'](_0x2d59b0,_0x5dc6bc,_0x2bae9b));}['_createToolbarButton'](_0x1c07c6,_0x5424f2,_0xb88098){const _0x197ac0=Jt(_0x1c07c6,te),_0x4a56db=this['editor']['commands']['get']('trackChanges');_0x197ac0['buttonView']['set']({'tooltip':_0xb88098,'label':_0xb88098,'icon':ae}),_0x197ac0['buttonView']['bind']('isOn')['to'](_0x4a56db,'value'),_0x197ac0['buttonView']['on']('execute',()=>{_0x4a56db['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x197ac0,_0x5424f2,{'role':'menu'});const _0x2835c8=[];for(const _0x2646b4 of _0x5424f2)re(_0x2646b4)&&_0x2835c8['push'](this['editor']['commands']['get'](_0x2646b4['model']['commandName']));const _0x41c45a=_0x197ac0['buttonView'];return _0x41c45a['actionView']['unbind']('isEnabled'),_0x41c45a['arrowView']['unbind']('isEnabled'),_0x41c45a['actionView']['bind']('isEnabled')['to'](_0x4a56db,'isEnabled'),_0x41c45a['arrowView']['bind']('isEnabled')['toMany'](_0x2835c8,'isEnabled',(..._0x540d2a)=>_0x540d2a['some'](_0x202aba=>_0x202aba)),_0x197ac0['on']('execute',_0x5afe40=>{this['editor']['execute'](_0x5afe40['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x197ac0;}['_createMenuBarMenu'](_0x41fca4,_0x10c032,_0x59c049){const _0x23233f=new Qt(_0x41fca4),_0x4833ce=this['editor']['commands']['get']('trackChanges');_0x23233f['buttonView']['set']({'label':_0x59c049,'icon':ae});const _0x25e8aa=new Xt(_0x41fca4);for(const _0x4e28a3 of _0x10c032){if('separator'==_0x4e28a3['type']){_0x25e8aa['items']['add'](new Kt(_0x41fca4));continue;}const _0x57ed6d=new Yt(_0x41fca4,_0x23233f),_0x2b60f3=new Zt(_0x41fca4),_0x2818f4=_0x4e28a3['model'];_0x2b60f3['bind'](...Object['keys'](_0x2818f4))['to'](_0x2818f4),_0x2b60f3['delegate']('execute')['to'](_0x23233f),_0x2b60f3['on']('execute',()=>{this['editor']['execute'](_0x2818f4['commandName']),this['editor']['editing']['view']['focus']();}),_0x57ed6d['children']['add'](_0x2b60f3),_0x25e8aa['items']['add'](_0x57ed6d);}return _0x23233f['bind']('isEnabled')['to'](_0x4833ce,'isEnabled'),_0x23233f['panelView']['children']['add'](_0x25e8aa),_0x23233f;}['_initializeController'](_0x145d27){const _0x26c094=this['editor'],_0x450936=_0x26c094['config'],_0x11e734=_0x26c094['plugins']['get']('Annotations'),_0x2ae6e8=_0x26c094['plugins']['get']('CommentsRepository'),_0x1b26f0=_0x26c094['plugins']['get']('EditorAnnotations'),_0x349faf=_0x26c094['plugins']['get'](_0x391bb8)['me'],_0x26236f=_0x450936['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x49d520,CommentThreadInputView:_0x4ea307}=_0x26c094['plugins']['get']('CommentsUI');let _0x25a0b1,_0x3df32d;this['_annotationViews']['has'](_0x145d27['id'])?(_0x3df32d=this['_annotationViews']['get'](_0x145d27['id']),_0x25a0b1=_0x3df32d['mainView']):(_0x25a0b1=new _0x26236f(_0x26c094['locale'],_0x145d27,_0x349faf,{'disableComments':this['_disableComments'],'editorConfig':_0x450936['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x450936['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x450936['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x450936['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x14289b(_0x450936['get']('locale')),'CommentView':_0x450936['get']('comments')['CommentView'],'CommentsListView':_0x49d520,'CommentThreadInputView':_0x4ea307}),_0x25a0b1['acceptButton']['on']('execute',()=>{_0x26c094['editing']['view']['focus']();}),_0x25a0b1['discardButton']['on']('execute',()=>{_0x26c094['editing']['view']['focus']();}),_0x3df32d=_0x11e734['createAnnotationView'](this['editor']['locale'],_0x25a0b1),_0x3df32d['bind']('isDirty')['to'](_0x25a0b1,'isDirty'),_0x3df32d['bind']('length')['to'](_0x25a0b1),_0x3df32d['bind']('type')['to'](_0x25a0b1,'type',_0xd491c2=>'suggestion-'+_0xd491c2),this['_annotationViews']['set'](_0x145d27['id'],_0x3df32d));const _0x58a1ea=_0x2ae6e8['createCommentThreadController'](_0x145d27['commentThread'],_0x25a0b1),_0x1bb467=new ne(_0x26c094,_0x145d27,_0x25a0b1,_0x58a1ea),_0xecc650=_0x145d27['getAllAdjacentSuggestions']()['filter'](_0x59d98f=>_0x59d98f['isInContent']);_0x25a0b1['descriptionParts']=_0x26c094['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xecc650),this['_suggestionToController']['set'](_0x145d27,_0x1bb467),this['_viewToController']['set'](_0x25a0b1,_0x1bb467);const _0x1721b6=_0x11e734['createAnnotation']({'view':_0x3df32d,'target':()=>{const _0x4b28f1=[],_0x29eb2b=_0x145d27['getAllAdjacentSuggestions']()['filter'](_0x13298a=>_0x13298a['isInContent']);for(const _0x2988ae of _0x29eb2b)_0x4b28f1['push'](..._0x2988ae['getMarkers']());return _0x492e53(_0x26c094['editing'],_0x4b28f1);},'type':()=>'suggestion-'+_0x1bb467['view']['type']});_0x2ae6e8['_bindAnnotationToEditors'](_0x25a0b1,_0x1721b6),_0x11e734['add'](_0x1721b6),_0x1b26f0['registerAnnotation'](_0x1721b6);}['_destroyController'](_0xee5a5c){const _0x5e5dee=this['editor']['plugins']['get']('CommentsRepository'),_0x4e110e=this['editor']['plugins']['get']('Annotations'),_0x4ef237=this['_suggestionToController']['get'](_0xee5a5c),_0x20ef1d=_0x4ef237['view'],_0x1c06bc=_0x4e110e['getByInnerView'](_0x20ef1d);_0x5e5dee['_unbindEditors'](_0x20ef1d),_0x1c06bc&&_0x4e110e['remove'](_0x1c06bc),this['_suggestionToController']['delete'](_0xee5a5c),this['_viewToController']['delete'](_0x20ef1d),_0x4ef237['destroy']();}['_updateController'](_0x13c8fc){if(!_0x13c8fc['isInContent']||!this['_suggestionToController']['has'](_0x13c8fc))return;const _0x8b4f91=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9c309c=this['_suggestionToController']['get'](_0x13c8fc),_0x4081e6=_0x13c8fc['getAllAdjacentSuggestions']();_0x9c309c['view']['descriptionParts']=_0x8b4f91['descriptionFactory']['getDescriptions'](_0x4081e6);}['destroy'](){for(const _0x33bf6d of this['_suggestionToController']['keys']())this['_destroyController'](_0x33bf6d);for(const _0x464fd1 of this['_annotationViews']['values']())_0x464fd1['mainView']['destroy']();super['destroy']();}}function re(_0x16eaa1){return'model'in _0x16eaa1;}class k extends _0x15c086{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2d440c){this['editor']['plugins']['get'](p)['adapter']=_0x2d440c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x30047d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x30047d);}['getSuggestions']({skipNotAttached:_0xa43110=!0x1,toJSON:_0x580eef=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xa43110,'toJSON':_0x580eef});}['getSuggestion'](_0x359617){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x359617);}}const T=['Pagination'];class P extends _0x15c086{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3948e2=this['editor'];if(_0x3948e2['config']['define']('trackChangesData.editorCreator',_0x54ca34=>{const _0x124aa6=_0x3948e2['model']['document']['getRootNames']()['reduce']((_0x5ee15e,_0x10511e)=>(_0x5ee15e[_0x10511e]='',_0x5ee15e),{});return _0x3948e2['constructor']['create'](_0x124aa6,_0x54ca34);}),'function'!=typeof _0x3948e2['config']['get']('trackChangesData')['editorCreator'])throw new _0x3cf89a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x53fc38){return N(this['editor'],!0x0,_0x53fc38);}['getDataWithDiscardedSuggestions'](_0x283965){return N(this['editor'],!0x1,_0x283965);}}class D extends _0x15c086{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x425ba6){super(_0x425ba6),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(_0x9c1450){return void 0x0!==_0x9c1450['getRootsAttributes'];}async function N(_0x5dcdd7,_0x562bff,_0x2cc14e){const _0x37c0f1=_0x362255(_0x5dcdd7,T);_0x37c0f1['plugins']['push'](p,D),_0x37c0f1['rootsAttributes']=v(_0x5dcdd7)?_0x5dcdd7['getRootsAttributes']():void 0x0;const _0x46f144=document['createDocumentFragment'](),_0x5022fa=_0x5dcdd7['config']['get']('trackChangesData')['editorCreator'],_0x120612=await _0x5022fa(_0x37c0f1,()=>function(_0x39f1dd){const _0x19497c=document['createElement']('div');return _0x39f1dd['appendChild'](_0x19497c),_0x19497c;}(_0x46f144));!function(_0x4c96b9,_0x129472){const _0x146508=_0x4c96b9['model']['document']['getRootNames']()['reduce']((_0x2ab665,_0x5690b7)=>(_0x2ab665[_0x5690b7]=_0x4c96b9['data']['get']({'rootName':_0x5690b7}),_0x2ab665),{}),_0x19ca62=_0x4c96b9['plugins']['get']('Users')['users']['map'](_0x3d7966=>({'id':_0x3d7966['id'],'name':_0x3d7966['name']})),_0x4df581=_0x4c96b9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f19dd=_0x4c96b9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x415d65=_0x129472['plugins']['get']('Users'),_0x3bf561=_0x129472['plugins']['get']('TrackChangesEditing'),_0x5d7102=_0x129472['plugins']['get']('CommentsRepository');for(const _0x2d5aba of _0x19ca62)_0x415d65['getUser'](_0x2d5aba['id'])||_0x415d65['addUser'](_0x2d5aba);_0x415d65['me']||_0x415d65['useAnonymousUser']();for(const _0x47c172 of _0x2f19dd)_0x5d7102['addCommentThread'](_0x47c172);for(const _0x19d0b0 of _0x4df581)_0x3bf561['addSuggestionData'](_0x19d0b0);_0x129472['data']['set'](_0x146508);}(_0x5dcdd7,_0x120612),_0x120612['execute'](_0x562bff?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e0085=v(_0x120612)?_0x120612['getFullData'](_0x2cc14e):_0x120612['data']['get'](_0x2cc14e);return await _0x120612['destroy'](),_0x1e0085;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|