@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240519.0 → 0.0.0-nightly-20240521.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x4389d6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2b4f63,_0x4f7229){super(),this['id']=_0x4f7229['id'],this['type']=_0x4f7229['type'],this['subType']=_0x4f7229['subType']||null,this['author']=_0x4f7229['author'],this['creator']=_0x4f7229['creator']||_0x4f7229['author'],this['isExternal']=Boolean(_0x4f7229['attributes']&&_0x4f7229['attributes']['@external']),this['data']=null,this['_model']=_0x2b4f63,this['_onAccept']=_0x4f7229['onAccept'],this['_onDiscard']=_0x4f7229['onDiscard'],this['_onAttributesChange']=_0x4f7229['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f7229['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 _0x3f5f9b=this;for(;_0x3f5f9b['previous'];)_0x3f5f9b=_0x3f5f9b['previous'];return _0x3f5f9b;}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'](_0x268fb0){this['_markerNames']['add'](_0x268fb0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3a6006=>this['_model']['markers']['get'](_0x3a6006))['filter'](_0x263bdd=>_0x263bdd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1f1758=>{for(const _0x52fe83 of this['getMarkers']())_0x1f1758['removeMarker'](_0x52fe83);}),this['_markerNames']['clear']();}['removeMarker'](_0x209cc7){this['_model']['change'](_0x484921=>{_0x484921['removeMarker'](_0x209cc7);}),this['_markerNames']['delete'](_0x209cc7);}['addRange'](_0x1aceac){const _0x2934e7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2934e7),this['_model']['change'](_0xb12b44=>{_0xb12b44['addMarker'](_0x2934e7,{'range':_0x1aceac,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x433042){for(const _0x247df1 of this['getRanges']())if(_0x247df1['isIntersecting'](_0x433042))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5b8e48=>_0x5b8e48['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4907a5,_0x54e25e)=>[..._0x4907a5,..._0x54e25e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x250fb4=this['getRanges']();if(0x1!=_0x250fb4['length'])return null;const _0x3052d9=_0x250fb4[0x0],_0x27e3fe=_0x3052d9['start']['nodeAfter'],_0x48b5ff=_0x3052d9['end']['nodeBefore'];return _0x27e3fe instanceof _0x499afe?_0x27e3fe!=_0x48b5ff?null:_0x27e3fe: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 _0x4ba57f=[];let _0x2d3b09=this['head'];for(;_0x2d3b09;)_0x4ba57f['push'](_0x2d3b09),_0x2d3b09=_0x2d3b09['next'];return _0x4ba57f;}['setAttribute'](_0x555cd0,_0x151eb6){const _0x397941=_0x92f7df(this['attributes']);_0x33088b(_0x397941,_0x555cd0,_0x151eb6),_0x29bdc1(_0x397941,this['attributes'])||(this['attributes']=_0x397941,this['_onAttributesChange'](_0x397941));}['removeAttribute'](_0x231289){const _0x590538=_0x92f7df(this['attributes']);_0x2522d8(_0x590538,_0x231289),_0x29bdc1(_0x590538,this['attributes'])||(this['attributes']=_0x590538,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 _0x5e29c1()['substr'](0x1,0x5);}}function o(_0x4434d5,_0x12cce6,_0x1ee68b){const t=_0x4434d5['t'];switch(_0x12cce6){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',_0x1ee68b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1ee68b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1ee68b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1ee68b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1ee68b);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',_0x1ee68b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1ee68b);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',_0x1ee68b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1ee68b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1ee68b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1ee68b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1ee68b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1ee68b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1ee68b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1ee68b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1ee68b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1ee68b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1ee68b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1ee68b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1ee68b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1ee68b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1ee68b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1ee68b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1ee68b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1ee68b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1ee68b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1ee68b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1ee68b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1ee68b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1ee68b);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'},_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1ee68b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1ee68b);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1ee68b);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'},_0x1ee68b);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 _0x12cce6;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x65e3c1,_0x2ca38d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x65e3c1,this['_locale']=_0x2ca38d;}['getDescriptions'](_0x97cb28){const _0x2bc11c=[],_0x4017f8=new Set(),_0x26fa06=new Set();for(let _0x41e6d3=0x0;_0x41e6d3<_0x97cb28['length'];_0x41e6d3++){const _0x54a4ee=_0x97cb28[_0x41e6d3];if(!_0x54a4ee['isInContent'])continue;const _0x53774f=this['_handleCustomCallbackDescription'](_0x54a4ee);if(_0x53774f){if(null!=_0x54a4ee['subType']){if(_0x4017f8['has'](_0x54a4ee['subType']))continue;_0x4017f8['add'](_0x54a4ee['subType']);}_0x2bc11c['push'](_0x53774f);}else{if('attribute'!=_0x54a4ee['type'])'insertion'!=_0x54a4ee['type']&&'deletion'!=_0x54a4ee['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2bc11c,_0x54a4ee,_0x97cb28[_0x41e6d3+0x1]);else{const _0x1c0802=_0x54a4ee['data']['key'];if(_0x26fa06['has'](_0x1c0802))continue;_0x26fa06['add'](_0x54a4ee['data']['key']),_0x1c0802==m?this['_handleRenameSuggestionDescription'](_0x2bc11c,_0x54a4ee):this['_handleAttributeSuggestionDescription'](_0x2bc11c,_0x54a4ee);}}}return this['_resolveDescriptionItems'](_0x2bc11c);}['registerDescriptionCallback'](_0x54c706){this['_customCallbacks']['push'](_0x54c706);}['registerElementLabel'](_0x1bc390,_0x238800,_0x150e39=_0x32be84['normal']){'function'==typeof _0x1bc390?_0x14c827(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1bc390,'label':_0x238800,'priority':_0x150e39}):this['_itemLabels']['set'](_0x1bc390,_0x238800);}['registerAttributeLabel'](_0x4847c0,_0x226303){this['_attributeLabels']['set'](_0x4847c0,_0x226303);}['getItemLabel'](_0x16c879,_0x2a1a51=0x1){let _0xb5d62e;for(const _0x76c0c6 of this['_itemLabelsCallbacks'])if(_0x76c0c6['matchingCallback'](_0x16c879)){_0xb5d62e=_0x76c0c6['label'];break;}return _0xb5d62e||(_0xb5d62e=this['_itemLabels']['get'](_0x16c879['name'])),_0xb5d62e?_0xb5d62e(_0x2a1a51):0x1!==_0x2a1a51?_0x2a1a51+'\x20'+_0x16c879['name']+'s':''+_0x16c879['name'];}['_addDescriptionItems'](_0xa777bc,_0x30db89){const _0x2ba409=_0x30db89['getFirstRange']()['getWalker'](),_0x327e8a='insertion'==_0x30db89['type']?'add':'remove';for(const _0x3d1033 of _0x2ba409){const _0x2fe41f=_0x3d1033['item'],_0x2a93e8=_0xa777bc[_0xa777bc['length']-0x1];if(_0x2fe41f['is']('$textProxy'))_0x2a93e8&&_0x2a93e8['type']['indexOf']('Container')>-0x1&&_0xa777bc['pop'](),_0x2a93e8&&'text'==_0x2a93e8['type']?_0x2a93e8[_0x327e8a]+=_0x2fe41f['data']:_0xa777bc['push']({'type':'text','add':'add'==_0x327e8a?_0x2fe41f['data']:'','remove':'remove'==_0x327e8a?_0x2fe41f['data']:''});else{if(this['_schema']['isObject'](_0x2fe41f)){const _0x4a5b8d=_0x2fe41f;if(_0x2a93e8&&_0x2a93e8['type']['indexOf']('Container')>-0x1&&_0xa777bc['pop'](),'elementEnd'==_0x3d1033['type'])continue;_0x2a93e8&&_0x2a93e8['type']==_0x327e8a+'Object'&&_0x2a93e8['element']['name']==_0x4a5b8d['name']?_0x2a93e8['quantity']++:_0xa777bc['push']({'type':_0x327e8a+'Object','element':_0x4a5b8d,'quantity':0x1}),_0x2ba409['skip'](_0x5103ab=>!('elementEnd'==_0x5103ab['type']&&_0x5103ab['item']==_0x2fe41f));}else{if(this['_schema']['checkChild'](_0x2fe41f,'$text')||_0x2fe41f['is']('element','softBreak')){const _0x50a565=_0x2fe41f;if('add'==_0x327e8a&&'elementStart'==_0x3d1033['type']||'remove'==_0x327e8a&&'elementEnd'==_0x3d1033['type'])continue;if(_0x2a93e8&&-0x1==_0x2a93e8['type']['indexOf']('Container')){'text'==_0x2a93e8['type']&&(_0x2a93e8[_0x327e8a]+='\x0a');continue;}let _0x10ee07;if(_0x10ee07='add'==_0x327e8a?_0x50a565['nextSibling']&&!this['_schema']['isObject'](_0x50a565['nextSibling'])?_0x50a565['nextSibling']:null:_0x50a565['previousSibling']&&!this['_schema']['isObject'](_0x50a565['previousSibling'])?_0x50a565['previousSibling']:null,_0x50a565['isEmpty']||_0x10ee07&&_0x10ee07['isEmpty']){const _0x28c424=_0x10ee07&&_0x10ee07['isEmpty']?_0x10ee07:_0x50a565;_0x2a93e8&&_0x2a93e8['type']==_0x327e8a+'EmptyContainer'&&_0x2a93e8['element']['name']==_0x28c424['name']?_0x2a93e8['quantity']++:_0xa777bc['push']({'type':_0x327e8a+'EmptyContainer','element':_0x28c424,'quantity':0x1});}else _0xa777bc['push']({'type':_0x327e8a+'Container','element':_0x50a565});}}}}}['_resolveDescriptionItems'](_0x3ab0bc){const _0x53f29d=this['_locale'],_0x2a3301=[],_0x1b7898=[],_0x2a7ab4=[];for(const _0x3f89b6 of _0x3ab0bc)switch(_0x3f89b6['type']){case'text':if(_0x3f89b6['add']=_0x3f89b6['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3f89b6['remove']=_0x3f89b6['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3f89b6['add']&&''!=_0x3f89b6['remove']){_0x2a3301['push']({'type':'replace','content':o(_0x53f29d,'REPLACE_TEXT',['\x22'+_0x3f89b6['remove']+'\x22','\x22'+_0x3f89b6['add']+'\x22'])});continue;}if(null!=_0x3f89b6['add']['match'](/^ +$/)){_0x2a3301['push']({'type':'insertion','content':o(_0x53f29d,'*Insert:*\x20%0',o(_0x53f29d,'ELEMENT_SPACE',_0x3f89b6['add']['length']))});continue;}if(null!=_0x3f89b6['remove']['match'](/^ +$/)){_0x2a3301['push']({'type':'deletion','content':o(_0x53f29d,'*Remove:*\x20%0',o(_0x53f29d,'ELEMENT_SPACE',_0x3f89b6['remove']['length']))});continue;}if(''!=_0x3f89b6['add']){_0x2a3301['push']({'type':'insertion','content':o(_0x53f29d,'*Insert:*\x20%0','\x22'+_0x3f89b6['add']+'\x22')});continue;}_0x2a3301['push']({'type':'deletion','content':o(_0x53f29d,'*Remove:*\x20%0','\x22'+_0x3f89b6['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2a3301['push']({'type':'insertion','content':o(_0x53f29d,'*Insert:*\x20%0',this['getItemLabel'](_0x3f89b6['element'],_0x3f89b6['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2a3301['push']({'type':'deletion','content':o(_0x53f29d,'*Remove:*\x20%0',this['getItemLabel'](_0x3f89b6['element'],_0x3f89b6['quantity']))});continue;case'addContainer':_0x2a3301['push']({'type':'insertion','content':o(_0x53f29d,'*Split:*\x20%0',this['getItemLabel'](_0x3f89b6['element'],_0x3f89b6['quantity']))});continue;case'removeContainer':_0x2a3301['push']({'type':'deletion','content':o(_0x53f29d,'*Merge:*\x20%0',this['getItemLabel'](_0x3f89b6['element'],_0x3f89b6['quantity']))});continue;case'addFormat':_0x1b7898['push'](_0x3f89b6['key']);continue;case'removeFormat':_0x2a7ab4['push'](_0x3f89b6['key']);continue;default:_0x2a3301['push'](_0x3f89b6);}if(_0x1b7898['length']){const _0x1ed0a1=_0x1b7898['map'](_0x10c501=>this['_attributeLabels']['has'](_0x10c501)?this['_attributeLabels']['get'](_0x10c501):_0x10c501)['join'](',\x20');_0x2a3301['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1ed0a1)});}if(_0x2a7ab4['length']){const _0x260909=_0x2a7ab4['map'](_0xc7f5ad=>this['_attributeLabels']['has'](_0xc7f5ad)?this['_attributeLabels']['get'](_0xc7f5ad):_0xc7f5ad)['join'](',\x20');_0x2a3301['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x260909)});}return _0x2a3301;}['_handleCustomCallbackDescription'](_0x35bb9f){for(const _0x5bd7bc of this['_customCallbacks']){const _0x6cc54e=_0x5bd7bc(_0x35bb9f);if(_0x6cc54e&&'type'in _0x6cc54e)return _0x6cc54e;}}['_handleAttributeSuggestionDescription'](_0xf674f7,_0x162f95){const _0x376795=_0x162f95['data'],_0x31ab8c=void 0x0===_0x376795['newValue']?'removeFormat':'addFormat';_0xf674f7['push']({'type':_0x31ab8c,'key':_0x376795['key']});}['_handleRenameSuggestionDescription'](_0x59e464,_0x276c9b){_0x59e464['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x276c9b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xa73760,_0x1a9417,_0x5097b8){if(this['_addDescriptionItems'](_0xa73760,_0x1a9417),_0x5097b8&&_0x5097b8['getFirstRange']()&&!_0x1a9417['getFirstRange']()['end']['isEqual'](_0x5097b8['getFirstRange']()['start'])){const _0x408dc1=_0xa73760[_0xa73760['length']-0x1],_0x2dd778='insertion'==_0x1a9417['type']?'add':'remove';_0x408dc1&&'text'==_0x408dc1['type']&&(_0x408dc1[_0x2dd778]+='\x0a');}}}class E extends _0x17f7ef{['afterInit'](){const _0x3ff383=this['editor'],_0x26dd53=_0x3ff383['plugins']['get']('TrackChangesEditing');_0x3ff383['commands']['get']('showAIAssistant')&&_0x26dd53['enableCommand']('showAIAssistant');}}class V extends _0x17f7ef{['afterInit'](){const _0x47a169=this['editor'],_0x43b71c=_0x47a169['locale'];if(!_0x47a169['plugins']['has']('AlignmentEditing'))return;const _0x3f01fd=_0x47a169['plugins']['get']('TrackChangesEditing');_0x3f01fd['enableDefaultAttributesIntegration']('alignment'),_0x3f01fd['registerBlockAttribute']('alignment'),_0x3f01fd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x43b71c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fcde4=this['editor'],_0x44a947=_0x4fcde4['locale'];_0x4fcde4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x527601=>{if('formatBlock'!=_0x527601['type'])return;const {data:_0x8ab08d}=_0x527601;if(_0x8ab08d&&'alignment'==_0x8ab08d['commandName']){const _0x3c4cb4=_0x8ab08d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x44a947,'*Format:*\x20%0',function(_0x1ba2a5){switch(_0x1ba2a5){case'left':return o(_0x44a947,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x44a947,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x44a947,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x44a947,'FORMAT_JUSTIFY_TEXT');}}(_0x3c4cb4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x17f7ef{['afterInit'](){const _0x47b82e=this['editor'],_0x1a5d39=_0x47b82e['plugins']['get']('TrackChangesEditing'),_0x581275=_0x47b82e['locale'];for(const _0xc9a976 of ti){if(!_0x47b82e['plugins']['has'](_0xc9a976))continue;const _0x45e176=_0xc9a976['slice'](0x0,-0x7)['toLowerCase'](),_0x10e150='FORMAT_'+_0x45e176['toUpperCase']();_0x1a5d39['enableDefaultAttributesIntegration'](_0x45e176),_0x1a5d39['registerInlineAttribute'](_0x45e176),_0x1a5d39['descriptionFactory']['registerAttributeLabel'](_0x45e176,o(_0x581275,_0x10e150));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b1d00=this['editor'],_0xcd6cc3=_0x3b1d00['locale'],_0x2df4fa=_0x3b1d00['plugins']['get']('TrackChangesEditing');function _0x1ecdf1(_0x4ac0cf,_0x4dc546){_0x2df4fa['descriptionFactory']['registerDescriptionCallback'](_0x3f2e64=>{if('formatInline'!=_0x3f2e64['type'])return;const {data:_0x3686ed}=_0x3f2e64;return _0x3686ed&&_0x3686ed['commandName']===_0x4ac0cf?_0x3686ed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcd6cc3,'*Format:*\x20%0',_0x4dc546)}:{'type':'format','content':o(_0xcd6cc3,'*Remove\x20format:*\x20%0',_0x4dc546)}:void 0x0;});}_0x1ecdf1('bold',o(_0xcd6cc3,'FORMAT_BOLD')),_0x1ecdf1('italic',o(_0xcd6cc3,'FORMAT_ITALIC')),_0x1ecdf1('underline',o(_0xcd6cc3,'FORMAT_UNDERLINE')),_0x1ecdf1('code',o(_0xcd6cc3,'FORMAT_CODE')),_0x1ecdf1('strikethrough',o(_0xcd6cc3,'FORMAT_STRIKETHROUGH')),_0x1ecdf1('subscript',o(_0xcd6cc3,'FORMAT_SUBSCRIPT')),_0x1ecdf1('superscript',o(_0xcd6cc3,'FORMAT_SUPERSCRIPT'));}}class O extends _0x17f7ef{['afterInit'](){const _0x15d6d5=this['editor'],_0x1b972b=_0x15d6d5['locale'];if(!_0x15d6d5['plugins']['has']('BlockQuoteEditing'))return;const _0x506a93=_0x15d6d5['plugins']['get']('TrackChangesEditing'),_0x4dbdbe=this['editor']['commands']['get']('blockQuote');_0x506a93['enableCommand']('blockQuote',(_0x2e751d,_0x3083a6={})=>{const _0x5b699e=this['editor']['model']['document']['selection'],_0x151e6a=_0x3083a6&&void 0x0!==_0x3083a6['forceValue']?_0x3083a6['forceValue']:!_0x4dbdbe['value'];let _0x3b3050=[];if(_0x151e6a){const _0x20db30=Array['from'](_0x5b699e['getSelectedBlocks']())['filter'](_0x3c26dd=>oo(_0x3c26dd)||function(_0x3dec91,_0x5e94c5){const _0x25ed7b=_0x5e94c5['checkChild'](_0x3dec91['parent'],'blockQuote'),_0x27e257=_0x5e94c5['checkChild'](['$root','blockQuote'],_0x3dec91);return _0x25ed7b&&_0x27e257;}(_0x3c26dd,this['editor']['model']['schema']));_0x3b3050=to(_0x20db30,_0x15d6d5['model']);}else{const _0x3793cb=Array['from'](_0x5b699e['getSelectedBlocks']())['filter'](_0x5de5b4=>oo(_0x5de5b4));_0x3b3050=to(_0x3793cb,_0x15d6d5['model']);}_0x15d6d5['model']['change'](()=>{for(const _0x7f1df3 of _0x3b3050)_0x506a93['markBlockFormat'](_0x7f1df3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x151e6a}]});});}),_0x506a93['descriptionFactory']['registerDescriptionCallback'](_0x1044e5=>{const {data:_0x2ca346}=_0x1044e5;if(_0x2ca346&&'blockQuote'==_0x2ca346['commandName']){const _0x364678=o(_0x1b972b,'ELEMENT_BLOCK_QUOTE');return _0x2ca346['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b972b,'*Set\x20format:*\x20%0',_0x364678)}:{'type':'format','content':o(_0x1b972b,'*Remove\x20format:*\x20%0',_0x364678)};}});}}function oo(_0x5d57cc){return'blockQuote'==_0x5d57cc['parent']['name'];}class F extends _0x17f7ef{['afterInit'](){const _0x9219f7=this['editor'];_0x9219f7['plugins']['has']('CaseChange')&&(_0x9219f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x9219f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x9219f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x17f7ef{['afterInit'](){const _0x4cf31a=this['editor'];_0x4cf31a['commands']['get']('ckbox')&&_0x4cf31a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x17f7ef{['afterInit'](){const _0x118c0b=this['editor'];if(!_0x118c0b['plugins']['has']('CodeBlock'))return;const _0x1e9719=_0x118c0b['plugins']['get']('TrackChangesEditing'),_0x3b85b1=_0x118c0b['locale'],_0x5e2840=_0x118c0b['config']['get']('codeBlock')['languages'],_0x1f3fce=_0x118c0b['commands']['get']('codeBlock');_0x1e9719['enableCommand']('indentCodeBlock'),_0x1e9719['enableCommand']('outdentCodeBlock'),_0x1e9719['enableCommand']('codeBlock',(_0x3d063c,_0x3367b1={})=>{const _0x55494b=_0x118c0b['model'],_0xfacc97=_0x118c0b['model']['document']['selection'],_0x41f923=_0x3367b1&&void 0x0!==_0x3367b1['forceValue']?_0x3367b1['forceValue']:!_0x1f3fce['value'];let _0x38f3a7;_0x3367b1['language']||(_0x3367b1['language']=_0x5e2840[0x0]['language']),_0x38f3a7=_0x41f923?Array['from'](_0xfacc97['getSelectedBlocks']())['filter'](_0x471957=>eo(_0x471957)||function(_0x3d7e4e,_0x59ee0e){if(_0x3d7e4e['is']('rootElement')||_0x59ee0e['isLimit'](_0x3d7e4e))return!0x1;return _0x59ee0e['checkChild'](_0x3d7e4e['parent'],'codeBlock');}(_0x471957,_0x55494b['schema'])):Array['from'](_0xfacc97['getSelectedBlocks']())['filter'](_0x568bda=>eo(_0x568bda));const _0x53709f=to(_0x38f3a7,_0x55494b);_0x55494b['change'](()=>{for(const _0x95d989 of _0x53709f)_0x1e9719['markBlockFormat'](_0x95d989,{'commandName':'codeBlock','commandParams':[{..._0x3367b1,'forceValue':_0x41f923}],'formatGroupId':'blockName'});});}),(_0x1e9719['descriptionFactory']['registerElementLabel']('codeBlock',_0x3fd9c1=>o(_0x3b85b1,'ELEMENT_CODE_BLOCK',_0x3fd9c1)),_0x1e9719['descriptionFactory']['registerDescriptionCallback'](_0xec6240=>{if('formatBlock'!=_0xec6240['type'])return;const _0x4d3e55=_0x3b85b1['t'],{data:_0x2e633b}=_0xec6240;if(!_0x2e633b||'codeBlock'!=_0x2e633b['commandName'])return;const _0x299ed0=_0x2e633b['commandParams'][0x0]['language'],_0x4496ff=_0x4d3e55(_0x5e2840['find'](_0x253f24=>_0x253f24['language']===_0x299ed0)['label'])['toLowerCase']();return _0x2e633b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b85b1,'*Set\x20format:*\x20%0',o(_0x3b85b1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4496ff+')')}:{'type':'format','content':o(_0x3b85b1,'*Remove\x20format:*\x20%0',o(_0x3b85b1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x47dfe6){return'codeBlock'==_0x47dfe6['name'];}class H extends _0x17f7ef{['afterInit'](){const _0xe8e7ef=this['editor'];if(!_0xe8e7ef['plugins']['has']('CommentsEditing'))return;_0xe8e7ef['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xd22154,_0x37b820,_0x2148e1){const _0x2f10af=[];for(const _0x4495df of _0x37b820['getItems']())_0x4495df['hasAttribute'](_0xd22154)&&_0x2f10af['push'](_0x2148e1['createRangeOn'](_0x4495df));return _0x2f10af;}function _e(_0x4f62b4,_0x139951,{showActiveMarker:_0x3484f6=!0x0}={}){const _0x505f80=_0x4f62b4['plugins']['get']('TrackChangesEditing');return(_0x69b20f,_0x5c49f3,_0x447f22)=>{if(!_0x447f22['consumable']['test'](_0x5c49f3['markerRange'],_0x69b20f['name']))return;const _0x3a7a37=_0x5c49f3['markerRange']['getWalker'](),_0x43be2a=_0x5c49f3['markerRange']['start'],_0xfbfef5=_0x4f62b4['model']['schema'];let _0x5f54d2=null,_0x2ffcd2=null,_0x52be8c=!0x1,_0x2d7680=!0x1;for(const _0x49a18c of _0x3a7a37){const _0x1d3d94=_0x49a18c['item'];_0x52be8c=_0x52be8c||_0xfbfef5['isContent'](_0x1d3d94);const _0x29d51a=_0x447f22['mapper']['toViewElement'](_0x1d3d94);if(_0x29d51a&&_0x29d51a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49a18c['type']&&(_0xfbfef5['isBlock'](_0x1d3d94)&&!_0xfbfef5['isLimit'](_0x1d3d94)&&(_0x1d3d94['nextSibling']||_0x43be2a['isAtEnd']?_0x5f54d2&&_0x5f54d2['parent']==_0x1d3d94||(_0x5f54d2=_0x1d3d94,_0x486dca(_0x49a18c['previousPosition']),_0x2d7680=!0x0):_0x2ffcd2=_0x2ffcd2||_0x49a18c['previousPosition']));}function _0x486dca(_0x36d616){const _0xbd339c=_0x447f22['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x139951}),_0x46a49e=_0x447f22['mapper']['toViewPosition'](_0x36d616);_0x3484f6&&_0x505f80['activeMarkers']['includes'](_0x5c49f3['markerName'])&&_0x447f22['writer']['addClass']('ck-suggestion-marker--active',_0xbd339c),_0x447f22['writer']['insert'](_0x46a49e,_0xbd339c),_0x447f22['mapper']['bindElementToMarker'](_0xbd339c,_0x5c49f3['markerName']);}_0x52be8c||_0x2d7680||!_0x2ffcd2||_0x486dca(_0x2ffcd2);};}class q extends _0x17f7ef{static get['requires'](){return[_0x1f282c];}['init'](){const _0x1d2a91=this['editor'],_0x3e21a0=_0x1d2a91['plugins']['get']('TrackChangesEditing');_0x3e21a0['enableCommand']('delete');const _0x338f1a=_0x1d2a91['commands']['get']('deleteForward');_0x3e21a0['enableCommand']('deleteForward',(_0x5b947e,_0x4d0324={})=>{const _0x2d5f8c=_0x1d2a91['model']['createSelection'](_0x1d2a91['model']['document']['selection']);_0x2d5f8c['isCollapsed']&&_0x1d2a91['model']['modifySelection'](_0x2d5f8c,{'direction':'forward','unit':_0x4d0324['unit']});const _0x157675=_0x2d5f8c['getFirstRange'](),_0x3d8fb3=_0x3939f1['fromRange'](_0x157675);let _0xe45a1b;_0x5b947e(_0x4d0324),_0xe45a1b='$graveyard'==_0x3d8fb3['root']['rootName']?_0x1d2a91['model']['createRange'](_0x157675['start']):_0x1d2a91['model']['createRange'](_0x3d8fb3['start'],_0x3d8fb3['end']),_0x3d8fb3['detach'](),_0x1d2a91['model']['enqueueChange'](_0x338f1a['buffer']['batch'],_0x21cb96=>{_0x338f1a['buffer']['lock'](),_0x21cb96['setSelection'](_0x21cb96['createRange'](_0xe45a1b['end'])),_0x338f1a['buffer']['unlock']();});}),_0x1d2a91['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1d2a91,'merge'),{'priority':'high'}),_0x1d2a91['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2e701b,_0x4eedaa,_0x181080)=>{_0x181080['options']['showSuggestionHighlights']&&_e(_0x1d2a91,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2e701b,_0x4eedaa,_0x181080);},{'priority':'high'}),_0x1d2a91['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x14dcae,_0x2040c2,_0x252a1b)=>{const _0x1151fb=_0x252a1b['mapper']['markerNameToElements'](_0x2040c2['markerName']);if(_0x1151fb){for(const _0xf75e49 of _0x1151fb)_0xf75e49['is']('uiElement')&&(_0x252a1b['mapper']['unbindElementFromMarkerName'](_0xf75e49,_0x2040c2['markerName']),_0x252a1b['writer']['remove'](_0xf75e49));}},{'priority':'high'});}}class z extends _0x17f7ef{['afterInit'](){const _0x3f9bdb=this['editor'];if(!_0x3f9bdb['plugins']['has']('ListEditing'))return;const _0x2f24ed=_0x3f9bdb['locale'],_0x350922=_0x3f9bdb['plugins']['get']('TrackChangesEditing'),_0x2dc4b1=_0x3f9bdb['plugins']['has']('TodoListEditing'),_0x387183=!!_0x3f9bdb['config']['get']('list.multiBlock');function _0x5bd0df(_0x7fdca4){return{'type':'format','content':''+o(_0x2f24ed,'*Set\x20format:*\x20%0',_0x7fdca4)};}function _0x5f1a77(_0x301a82){return{'type':'format','content':''+o(_0x2f24ed,'*Remove\x20format:*\x20%0',_0x301a82)};}_0x350922['enableDefaultAttributesIntegration']('numberedList'),_0x350922['enableDefaultAttributesIntegration']('bulletedList'),_0x350922['enableDefaultAttributesIntegration']('customNumberedList'),_0x350922['enableDefaultAttributesIntegration']('customBulletedList'),_0x350922['enableDefaultAttributesIntegration']('indentList'),_0x350922['enableDefaultAttributesIntegration']('outdentList'),_0x350922['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x350922['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x350922['registerBlockAttribute']('listItemId'),_0x350922['registerBlockAttribute']('listType'),_0x350922['registerBlockAttribute']('listIndent'),_0x387183&&(_0x350922['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x350922['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2dc4b1&&(_0x350922['enableDefaultAttributesIntegration']('todoList'),_0x350922['enableDefaultAttributesIntegration']('checkTodoList'),_0x350922['registerBlockAttribute']('todoListChecked'),_0x350922['descriptionFactory']['registerDescriptionCallback'](_0x2e23bd=>{const {data:_0x23be32}=_0x2e23bd;if(_0x23be32&&'todoListChecked'==_0x23be32['key'])return{'type':'format','content':_0x23be32['newValue']?o(_0x2f24ed,'*Check\x20item*'):o(_0x2f24ed,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x27ede0=>{if(_0x27ede0['batch']['isUndo'])return!0x1;let _0x162070=!0x1;const _0x3dcb4c=_0x350922['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11bf2c=>'todoListChecked'===_0x350922['_getAttributeKey'](_0x11bf2c));for(const _0x1efa17 of _0x3dcb4c){'todo'!=_0x1efa17['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x350922['_findSuggestions'](_0x1efa17['getFirstRange'](),'attribute')['find'](_0x357b96=>'listType'===_0x350922['_getAttributeKey'](_0x357b96['suggestion']))||(_0x27ede0['removeMarker'](_0x1efa17['getFirstMarker']()),_0x162070=!0x0));}return _0x162070;})),_0x350922['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2f24ed,'FORMAT_INDENT'));const _0x2fc0d8={'type':'format','content':''};_0x350922['descriptionFactory']['registerDescriptionCallback'](_0x49ae5d=>{const {data:_0xbb69c4}=_0x49ae5d;if(!_0xbb69c4||'listType'!=_0xbb69c4['key'])return;let _0x4dd08d=_0x49ae5d['head'];for(;_0x4dd08d;){if(_0x4dd08d['data']&&(('listStyle'==_0x4dd08d['data']['key']||'listMarkerStyle'==_0x4dd08d['data']['key'])&&(_0x4dd08d['data']['newValue']&&'default'!=_0x4dd08d['data']['newValue']||'default'!=_0x4dd08d['data']['oldValue']&&!_0xbb69c4['newValue'])||!_0x387183&&_0x4dd08d['data']['key']==m))return _0x2fc0d8;_0x4dd08d=_0x4dd08d['next'];}if(null==_0xbb69c4['newValue'])switch(_0xbb69c4['oldValue']){case'bulleted':return _0x5f1a77(o(_0x2f24ed,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f1a77(o(_0x2f24ed,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f1a77(o(_0x2f24ed,'ELEMENT_TODO_LIST'));}switch(_0xbb69c4['newValue']){case'bulleted':return _0x5bd0df(o(_0x2f24ed,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5bd0df(o(_0x2f24ed,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5bd0df(o(_0x2f24ed,'ELEMENT_TODO_LIST'));}}),_0x350922['descriptionFactory']['registerDescriptionCallback'](_0x457403=>{const {data:_0x2be36d}=_0x457403;if(_0x2be36d&&'listIndent'==_0x2be36d['key'])return null==_0x2be36d['newValue']||null==_0x2be36d['oldValue']&&0x0==_0x2be36d['newValue']?_0x2fc0d8:void 0x0;}),_0x350922['descriptionFactory']['registerDescriptionCallback'](_0x36f98e=>{if('attribute'!=_0x36f98e['type'])return;const {data:_0x35377c}=_0x36f98e;if(!_0x35377c||'listItemId'!=_0x35377c['key'])return;const _0x517c5f=le(_0x36f98e);return'newValue'==_0x517c5f?{'type':'format','content':o(_0x2f24ed,'*Merge:*\x20list\x20item')}:'oldValue'==_0x517c5f?{'type':'format','content':o(_0x2f24ed,'*Split:*\x20list\x20item')}:_0x2fc0d8;}),_0x3f9bdb['model']['document']['registerPostFixer'](_0x5a0f22=>this['listItemIdFixer'](_0x5a0f22)),_0x3f9bdb['model']['document']['registerPostFixer'](_0x4b8ef6=>this['noTrackChangesFixer'](_0x4b8ef6)),_0x3f9bdb['model']['document']['registerPostFixer'](_0x27e388=>this['assureChains'](_0x27e388)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x116eb5){if(_0x116eb5['batch']['isUndo']||!_0x116eb5['batch']['isLocal'])return!0x1;let _0x278804=!0x1;const _0x564957=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15aa71=>_0x15aa71['data']&&'listItemId'==_0x15aa71['data']['key'])['filter'](_0x582b96=>_0x582b96['data']['newValue']&&_0x582b96['data']['oldValue']);for(const _0x482030 of _0x564957)le(_0x482030)||(_0x116eb5['removeMarker'](_0x482030['getFirstMarker']()),_0x278804=!0x0);return _0x278804;}['noTrackChangesFixer'](_0x1ff7b0){if(_0x1ff7b0['batch']['isUndo']||!_0x1ff7b0['batch']['isLocal'])return!0x1;const _0x2c6576=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2c6576['trackChangesCommand']['value'])return!0x1;let _0x3aa53d=!0x1;const _0x254ff1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x156231=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5e314f=>'attribute'==_0x5e314f['type'])['filter'](_0x2b2fbd=>_0x254ff1['includes'](_0x2b2fbd['attributeKey']));if(0x0==_0x156231['length'])return _0x3aa53d;for(const _0x33d40f of _0x156231){const _0x4c67b4=_0x2c6576['_findSuggestions'](_0x33d40f['range'],'attribute')['filter'](_0x27feff=>!_0x27feff['meta']['isNextTo'])['map'](_0x1dd699=>_0x1dd699['suggestion'])['filter'](_0x1f460a=>{const _0x490148=_0x2c6576['_getAttributeKey'](_0x1f460a);return _0x254ff1['includes'](_0x490148);});if(_0x4c67b4['length']){for(const _0xa4d77b of _0x4c67b4)_0x1ff7b0['removeMarker'](_0xa4d77b['getFirstMarker']());_0x3aa53d=!0x0;}}return _0x3aa53d;}['assureChains'](_0x2b6b38){if(_0x2b6b38['batch']['isUndo']||!_0x2b6b38['batch']['isLocal'])return!0x1;const _0x431128=this['editor']['plugins']['get']('TrackChangesEditing');let _0x46d490=!0x1;const _0x1849a2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4d8a33 of _0x431128['getSuggestions']({'skipNotAttached':!0x0})){const _0x4bd468=_0x431128['_findSuggestions'](_0x4d8a33['getFirstRange'](),'attribute')['map'](_0x1ab494=>_0x1ab494['suggestion'])['filter'](_0x6a672e=>_0x6a672e['data']&&_0x1849a2['includes'](_0x6a672e['data']['key']));if(!_0x4bd468['length'])continue;const _0x42691e=_0x4bd468[0x0]['head']['attributes']['groupId'];if(!_0x4bd468['every'](_0xb73d60=>_0xb73d60['attributes']['groupId']===_0x42691e)){for(const _0x59af17 of _0x4bd468)_0xdee551(_0x59af17,_0x42691e)&&(_0x46d490=!0x0);}}return _0x46d490;function _0x2f76a9(_0x512a17,_0x247474){for(const _0x3c53a0 of _0x431128['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x627cb9=>'attribute'==_0x627cb9['type']&&_0x627cb9['attributes']['groupId']==_0x512a17))_0x3c53a0['setAttribute']('groupId',_0x247474);}function _0xdee551(_0x14f860,_0xafc194){let _0x5117d6=_0x14f860['head'],_0x433939=!0x1;for(;_0x5117d6;)_0x5117d6['attributes']['groupId']!=_0xafc194&&(_0x2f76a9(_0x5117d6['attributes']['groupId'],_0xafc194),_0x5117d6['setAttribute']('groupId',_0xafc194),_0x433939=!0x0),_0x5117d6=_0x5117d6['next'];return _0x433939;}}['_supportLegacySuggestions'](){const _0x347543=this['editor'],_0x1c7c27=_0x347543['locale'],_0x112942=_0x347543['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x112942['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x56a448,_0x559c88){const _0x3cd6b4=[];for(let _0x386ad5 of _0x56a448)_0x386ad5['start']['nodeAfter']===_0x386ad5['end']['parent']&&(_0x386ad5=_0x347543['model']['createRange'](_0x347543['model']['createPositionAt'](_0x386ad5['start']['nodeAfter'],0x0))),_0x3cd6b4['push'](_0x386ad5);_0x347543['model']['change'](_0x26ca5b=>{const _0x3ca4ed=_0x347543['model']['document']['selection'],_0xe5ee8f=Array['from'](_0x3ca4ed['getRanges']())['map'](_0x2c9413=>_0x3939f1['fromRange'](_0x2c9413));_0x26ca5b['setSelection'](_0x3cd6b4),_0x347543['commands']['get'](_0x559c88['commandName'])['refresh'](),_0x559c88['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x347543['execute'](_0x559c88['commandName'],..._0x559c88['commandParams']),_0x26ca5b['setSelection'](_0xe5ee8f);for(const _0x259ba6 of _0xe5ee8f)_0x259ba6['detach']();});}),_0x112942['descriptionFactory']['registerElementLabel'](function(_0xbcda6c){const _0x5717bb=!_0x347543['model']['schema']['isObject'](_0xbcda6c),_0x34f493=_0xbcda6c['previousSibling'],_0xb37a83=_0xbcda6c['nextSibling'],_0x5e813=_0xbcda6c['getAttribute']('listItemId'),_0x74be81=!_0x34f493||_0x34f493['getAttribute']('listItemId')!==_0x5e813,_0x30b5db=!_0xb37a83||_0xb37a83['getAttribute']('listItemId')!==_0x5e813;return _0x5717bb&&Boolean(_0x5e813)&&_0x74be81&&_0x30b5db;},_0x5c20ef=>o(_0x1c7c27,'ELEMENT_LIST_ITEM',_0x5c20ef));}['_registerLegacyDescription'](){const _0x353b90=this['editor'],_0x380d8d=_0x353b90['locale'];function _0x124f19(_0x9f8511){const _0x9a8663=_0x353b90['commands']['get']('bulletedList')['value'],_0x41b4da=_0x353b90['commands']['get']('numberedList')['value'];return'numberedList'===_0x9f8511?_0x9a8663:_0x41b4da;}_0x353b90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ba859){if('formatBlock'!=_0x1ba859['type'])return;const {data:_0x2a2c9a}=_0x1ba859;if(!_0x2a2c9a)return;let _0x247a30,_0x2af0b9,_0xa8e0c0,_0x3ea9c9;switch(_0x2a2c9a['commandName']){case'bulletedList':_0xa8e0c0=_0x2a2c9a['commandParams'][0x0]['forceValue'],_0x3ea9c9=_0x124f19(_0x2a2c9a['commandName']),_0x247a30=_0xa8e0c0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ea9c9&&_0x353b90['config']['get']('list.multiBlock')||(_0x247a30='*Change\x20to:*\x20%0'),_0x2af0b9={'type':'format','content':o(_0x380d8d,_0x247a30,o(_0x380d8d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xa8e0c0=_0x2a2c9a['commandParams'][0x0]['forceValue'],_0x3ea9c9=_0x124f19(_0x2a2c9a['commandName']),_0x247a30=_0xa8e0c0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ea9c9&&_0x353b90['config']['get']('list.multiBlock')||(_0x247a30='*Change\x20to:*\x20%0'),_0x2af0b9={'type':'format','content':o(_0x380d8d,_0x247a30,o(_0x380d8d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x247a30='*Indent:*\x20%0',_0x2af0b9={'type':'format','content':o(_0x380d8d,_0x247a30,o(_0x380d8d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x247a30=function(_0x5467c8){const _0x2f8384=_0x5467c8['getFirstRange']();let _0x3af2f6=_0x2f8384['start']['nodeAfter'];for(;_0x3af2f6&&_0x2f8384['containsItem'](_0x3af2f6);){if(_0x3af2f6['getAttribute']('listIndent')>0x0)return!0x1;_0x3af2f6=_0x3af2f6['nextSibling'];}return!0x0;}(_0x1ba859)?o(_0x380d8d,'*Format:*\x20remove\x20from\x20%0',o(_0x380d8d,function(_0x3b0010){return'ELEMENT_'+_0x3b0010['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ba859))):o(_0x380d8d,'*Outdent:*\x20%0',o(_0x380d8d,'ELEMENT_LIST_ITEM')),_0x2af0b9={'type':'format','content':_0x247a30};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2a2c9a['multipleBlocks']&&(_0x247a30='*Merge:*\x20%0',_0x2af0b9={'type':'deletion','content':o(_0x380d8d,_0x247a30,o(_0x380d8d,'ELEMENT_LIST_ITEM'))});}return _0x2af0b9;});}}function le(_0x8a6102){let _0x4e6c20=_0x8a6102['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4e6c20;){const _0xa1de5d=_0x4e6c20['getAttribute']('listItemId');if(!_0xa1de5d)return!0x1;if(_0xa1de5d==_0x8a6102['data']['newValue'])return'newValue';if(_0xa1de5d==_0x8a6102['data']['oldValue'])return'oldValue';_0x4e6c20=_0x4e6c20['previousSibling'];}return!0x1;}class ue extends _0x17f7ef{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xc10719=this['editor']['config']['get']('list.properties'),_0x54aca9=this['editor']['plugins']['get']('TrackChangesEditing');_0xc10719['styles']&&(_0x54aca9['enableDefaultAttributesIntegration']('listStyle'),_0x54aca9['registerBlockAttribute']('listStyle')),_0xc10719['reversed']&&(_0x54aca9['enableDefaultAttributesIntegration']('listReversed'),_0x54aca9['registerBlockAttribute']('listReversed')),_0xc10719['startIndex']&&(_0x54aca9['enableDefaultAttributesIntegration']('listStart'),_0x54aca9['registerBlockAttribute']('listStart'));const _0x2f7d1a={'type':'format','content':''};_0x54aca9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x32b769=this['editor']['locale'];_0x54aca9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x32b769,'FORMAT_LIST_REVERSED')),_0x54aca9['descriptionFactory']['registerDescriptionCallback'](_0x1852c7=>{const {data:_0x3b0815}=_0x1852c7;if(_0x3b0815&&'listReversed'==_0x3b0815['key'])return null==_0x3b0815['newValue']||0x0==_0x3b0815['newValue']&&null==_0x3b0815['oldValue']?_0x2f7d1a:void 0x0;}),_0x54aca9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x32b769,'FORMAT_LIST_START')),_0x54aca9['descriptionFactory']['registerDescriptionCallback'](_0x44bdb2=>{const {data:_0x36dfae}=_0x44bdb2;if(_0x36dfae&&'listStart'==_0x36dfae['key'])return null==_0x36dfae['newValue']||0x1==_0x36dfae['newValue']&&null==_0x36dfae['oldValue']?_0x2f7d1a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x26582f=>{if(_0x26582f['batch']['isUndo'])return!0x1;let _0x19ec47=!0x1;const _0x352dd5=_0x54aca9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12507c=>{const _0x278600=_0x54aca9['_getAttributeKey'](_0x12507c);return'listStart'==_0x278600||'listReversed'==_0x278600;});for(const _0x4b5187 of _0x352dd5){const _0x5089fe=_0x4b5187['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5089fe||'customNumbered'==_0x5089fe)continue;_0x54aca9['_findSuggestions'](_0x4b5187['getFirstRange'](),'attribute')['find'](_0x2e3df0=>'listType'==_0x54aca9['_getAttributeKey'](_0x2e3df0['suggestion']))||(_0x26582f['removeMarker'](_0x4b5187['getFirstMarker']()),_0x19ec47=!0x0);}return _0x19ec47;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x102abd){const _0x24980b=this['editor']['locale'],{data:_0x1e0b64}=_0x102abd,_0x4ad37f={'type':'format','content':''};if(!_0x1e0b64||'listStyle'!=_0x1e0b64['key'])return;if(!_0x1e0b64['oldValue'])return'default'==_0x1e0b64['newValue']?_0x4ad37f:{'type':'format','content':''+o(_0x24980b,'*Set\x20format:*\x20%0',o(_0x24980b,this['_getTranslationKeyForListStyle'](_0x1e0b64['newValue'])))};if(!_0x1e0b64['newValue']){if('default'==_0x1e0b64['oldValue'])return _0x4ad37f;let _0x4f3464=_0x102abd['head'];for(;_0x4f3464;){if(_0x4f3464['data']&&'listType'==_0x4f3464['data']['key']&&_0x4f3464['data']['newValue'])return _0x4ad37f;_0x4f3464=_0x4f3464['next'];}return{'type':'format','content':''+o(_0x24980b,'*Remove\x20format:*\x20%0',o(_0x24980b,this['_getTranslationKeyForListStyle'](_0x1e0b64['oldValue'])))};}if('default'!=_0x1e0b64['newValue'])return{'type':'format','content':''+o(_0x24980b,'*Set\x20format:*\x20%0',o(_0x24980b,this['_getTranslationKeyForListStyle'](_0x1e0b64['newValue'])))};let _0x37a450=_0x102abd['head'];for(;_0x37a450;){if(_0x37a450['data']&&'listType'==_0x37a450['data']['key']&&_0x37a450['data']['newValue']&&_0x37a450['data']['oldValue'])return _0x4ad37f;_0x37a450=_0x37a450['next'];}return{'type':'format','content':o(_0x24980b,'*Set\x20format:*\x20%0',o(_0x24980b,'ELEMENT_'+_0x102abd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x381264=this['editor'],_0x96d7c7=_0x381264['locale'];_0x381264['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f265b=>{if('formatBlock'!=_0x3f265b['type'])return;const {data:_0x1555a2}=_0x3f265b;if(!_0x1555a2)return;let _0x54fa72,_0x201e3b;switch(_0x1555a2['commandName']){case'listStyle':_0x54fa72='*Change\x20to:*\x20%0',_0x201e3b={'type':'format','content':o(_0x96d7c7,_0x54fa72,o(_0x96d7c7,this['_getTranslationKeyForListStyle'](_0x1555a2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x54fa72=_0x1555a2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x201e3b={'type':'format','content':o(_0x96d7c7,_0x54fa72)};break;case'listStart':_0x54fa72='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x201e3b={'type':'format','content':o(_0x96d7c7,_0x54fa72,_0x1555a2['commandParams'][0x0]['startIndex'])};}return _0x201e3b;});}['_getTranslationKeyForListStyle'](_0x19d339){return'ELEMENT_'+function(_0x3effde){if(pe['includes'](_0x3effde))return'bulleted';if(ye['includes'](_0x3effde))return'numbered';return null;}(_0x19d339)['toUpperCase']()+'_LIST_'+_0x19d339['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x17f7ef{static get['requires'](){return[_0x37977b];}['init'](){const _0x1ec258=this['editor'],_0x10b7d3=_0x1ec258['plugins']['get']('TrackChangesEditing'),_0x384f05=_0x1ec258['commands']['get']('enter');_0x10b7d3['enableCommand']('enter',()=>{_0x1ec258['model']['change'](_0x4dc091=>{const _0x4b774f=_0x1ec258['model']['document']['selection'],_0x3e2360=_0x4b774f['getFirstPosition'](),_0x222ce2=_0x3939f1['fromRange'](_0x4b774f['getFirstRange']());if(_0x384f05['enterBlock'](_0x4dc091)){const _0xc1802a=_0x1ec258['model']['createPositionAt'](_0x3e2360['parent']['nextSibling'],0x0),_0x2641ee=_0x4dc091['createRange'](_0x3e2360,_0xc1802a);_0x10b7d3['markInsertion'](_0x2641ee);}else _0x4dc091['setSelection'](_0x4dc091['createRange'](_0x222ce2['end']));_0x222ce2['detach'](),_0x384f05['fire']('afterExecute',{'writer':_0x4dc091});});}),_0x1ec258['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1ec258,'split'),{'priority':'high'}),_0x1ec258['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x49da39,_0x4cad9c,_0x203f93)=>{const _0xdb0646=_0x203f93['mapper']['markerNameToElements'](_0x4cad9c['markerName']);if(_0xdb0646){for(const _0x5a4975 of _0xdb0646)_0x5a4975['hasClass']('ck-suggestion-marker-split')&&(_0x203f93['mapper']['unbindElementFromMarkerName'](_0x5a4975,_0x4cad9c['markerName']),_0x203f93['writer']['remove'](_0x5a4975));}},{'priority':'high'}),_0x1ec258['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3dc131,_0x25b82e,_0x2a787)=>{_0x2a787['options']['showSuggestionHighlights']&&_e(_0x1ec258,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3dc131,_0x25b82e,_0x2a787);},{'priority':'high'});}}class J extends _0x17f7ef{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x41923e=this['editor']['plugins']['get']('TrackChangesEditing');_0x41923e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x41923e['enableCommand']('findNext'),_0x41923e['enableCommand']('findPrevious'),_0x41923e['enableCommand']('replace'),_0x41923e['enableCommand']('replaceAll');}['handleFindCommand'](_0x2b0ca1,_0x3914b0,_0x558e1d={}){const _0x3dd17e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2b0ca1(_0x7362ae=>('string'==typeof _0x3914b0?_0x3dd17e['findByTextCallback'](_0x3914b0,_0x558e1d):_0x3914b0)(_0x7362ae)['filter'](_0x2ec48a=>!0x1===this['_isInDeletionRange'](_0x2ec48a,_0x7362ae['item'])),_0x558e1d);}['_isInDeletionRange'](_0x450ae0,_0x2a7e5c){const _0x412b2f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a7e5c,_0x450ae0['start']),this['editor']['model']['createPositionAt'](_0x2a7e5c,_0x450ae0['end']));for(const _0xcf5ae1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x412b2f['getIntersection'](_0xcf5ae1['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 _0x17f7ef{['afterInit'](){const _0x247eef=this['editor']['locale'],_0x5f04d4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5d91ce,commandName:_0x5c45ac}of ro)this['editor']['plugins']['has'](_0x5d91ce)&&(_0x5f04d4['enableDefaultAttributesIntegration'](_0x5c45ac),_0x5f04d4['registerInlineAttribute'](_0x5c45ac));_0x247eef['t'],_0x5f04d4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x247eef,'FORMAT_FONT_SIZE')),_0x5f04d4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x247eef,'FORMAT_FONT_FAMILY')),_0x5f04d4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x247eef,'FORMAT_FONT_COLOR')),_0x5f04d4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x247eef,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8f306f=this['editor'],_0x192c17=_0x8f306f['locale'];_0x8f306f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x224fd5=>{const _0x4fae9f=_0x192c17['t'];if('formatInline'!=_0x224fd5['type'])return;const {data:_0x10fdf0}=_0x224fd5;if(null!=_0x10fdf0){if('fontSize'==_0x10fdf0['commandName']){const _0x1e503f=_0x10fdf0['commandParams'][0x0]['value'];if(_0x1e503f){const _0x37563c=_0x4fae9f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x761784=>_0x761784['model']==_0x1e503f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x192c17,'*Set\x20font\x20size:*\x20%0',_0x37563c)};}return{'type':'format','content':o(_0x192c17,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x10fdf0['commandName']){const _0x5a334a=_0x10fdf0['commandParams'][0x0]['value'];return _0x5a334a?{'type':'format','content':o(_0x192c17,'*Set\x20font\x20family:*\x20%0',_0x5a334a)}:{'type':'format','content':o(_0x192c17,'*Reset\x20font\x20family*')};}if('fontColor'==_0x10fdf0['commandName']){const _0x2b1bf2=_0x10fdf0['commandParams'][0x0]['value'];if(_0x2b1bf2){const _0x466404=_0x4cd0af(this['editor']['config']['get']('fontColor.colors'))['find'](_0x12e73d=>_0x12e73d['model']==_0x2b1bf2);let _0x192ad4=_0x2b1bf2,_0x4c9efd='';return _0x466404&&(_0x192ad4=_0x466404['label'],_0x4c9efd=_0x4fae9f(_0x192ad4)['toLowerCase']()),{'type':'format','content':o(_0x192c17,'*Set\x20font\x20color:*\x20%0',_0x4c9efd)['trim'](),'color':{'value':_0x2b1bf2,'title':_0x4c9efd||_0x192ad4}};}return{'type':'format','content':o(_0x192c17,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x10fdf0['commandName']){const _0x2b20a5=_0x10fdf0['commandParams'][0x0]['value'];if(_0x2b20a5){const _0x139ea7=_0x4cd0af(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x9d9d28=>_0x9d9d28['model']==_0x2b20a5);let _0xedfe16=_0x2b20a5,_0x228db2='';return _0x139ea7&&(_0xedfe16=_0x139ea7['label'],_0x228db2=_0x4fae9f(_0xedfe16)['toLowerCase']()),{'type':'format','content':o(_0x192c17,'*Set\x20font\x20background\x20color:*\x20%0',_0x228db2)['trim'](),'color':{'value':_0x2b20a5,'title':_0x228db2||_0xedfe16}};}return{'type':'format','content':o(_0x192c17,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x17f7ef{['afterInit'](){const _0x23bc56=this['editor'],_0x3232cb=_0x23bc56['plugins']['get']('TrackChangesEditing'),_0x202ee8=_0x23bc56['commands']['get']('copyFormat'),_0x65c490=_0x23bc56['commands']['get']('pasteFormat');_0x202ee8&&_0x65c490&&(_0x3232cb['enableDefaultAttributesIntegration']('pasteFormat'),_0x3232cb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4f70c9=this['editor'],_0x411aa8=_0x4f70c9['locale'];_0x4f70c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26582c=>{if('formatBlock'!=_0x26582c['type']&&'formatInline'!=_0x26582c['type'])return;const {data:_0x2c3be4}=_0x26582c;if(_0x2c3be4&&'pasteFormat'===_0x2c3be4['commandName']){const _0x5f4cec=[],_0x1055a7=_0x2c3be4['commandParams'][0x0];for(const [_0x26686f,_0x13e508]of Object['entries'](_0x1055a7))_0x5f4cec['push'](so(_0x4f70c9,_0x26686f,_0x13e508));return _0x5f4cec['length']?{'type':'format','content':o(_0x411aa8,'*Set\x20format\x20to:*\x20%0',_0x5f4cec['join'](',\x20'))}:{'type':'format','content':o(_0x411aa8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5080ae,_0x5337e9,_0x11bb7c){const _0x4d019c=_0x5080ae['locale']['t'],_0x358ba6=_0x5337e9['split'](/(?=[A-Z])/)['join']('\x20'),_0xc49e90=_0x4d019c(_0x358ba6['charAt'](0x0)['toUpperCase']()+_0x358ba6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x11bb7c)return _0xc49e90;if('fontColor'===_0x5337e9||'fontBackgroundColor'===_0x5337e9){const _0x35b35b=_0x4cd0af(_0x5080ae['config']['get']('fontColor.colors'))['find'](_0x1f25de=>_0x1f25de['model']==_0x11bb7c);return _0xc49e90+'\x20('+(_0x35b35b?_0x4d019c(_0x35b35b['label'])['toLowerCase']():_0x11bb7c)+')';}if('fontSize'===_0x5337e9&&isNaN(parseFloat(_0x11bb7c))){const _0x117936=_0x5080ae['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5080ae['config']['get']('fontSize.options'))['find'](_0x4ba03b=>_0x4ba03b['model']==_0x11bb7c);return _0xc49e90+'\x20('+(_0x117936?_0x4d019c(_0x117936['title'])['toLowerCase']():_0x11bb7c)+')';}return _0xc49e90+'\x20('+_0x11bb7c+')';}class Y extends _0x17f7ef{['_headingOptions'];['afterInit'](){const _0x2e1654=this['editor'];if(!_0x2e1654['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2e1654['config']['get']('heading.options');const _0x3072e7=_0x2e1654['locale'],_0x4dc930=_0x2e1654['plugins']['get']('TrackChangesEditing');_0x4dc930['enableDefaultAttributesIntegration']('heading');for(const _0x4acc14 of this['_headingOptions'])'paragraph'!=_0x4acc14['model']&&_0x4dc930['descriptionFactory']['registerElementLabel'](_0x4acc14['model'],_0x4ba2bc=>{const _0x3f83af=this['_getHeadingLevel'](_0x4acc14['model']);return null!==_0x3f83af?_0x1da1b8(_0x4ba2bc,_0x3f83af):_0x51c568(_0x4ba2bc,_0x4acc14['title']);});function _0x1da1b8(_0x31aedf,_0xd3eec9){return o(_0x3072e7,'ELEMENT_HEADING',[_0x31aedf,_0xd3eec9]);}function _0x51c568(_0x49781d,_0x3455a5){return o(_0x3072e7,'ELEMENT_HEADING_CUSTOM',[_0x49781d,_0x3455a5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x109e8b=this['editor'],_0x1e3eb0=_0x109e8b['locale'];function _0x3deccb(_0x20e8bd,_0xe1af1f){return o(_0x1e3eb0,'ELEMENT_HEADING_CUSTOM',[_0x20e8bd,_0xe1af1f]);}_0x109e8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c47df=>{if('formatBlock'!=_0x1c47df['type'])return;const {data:_0x3b6c04}=_0x1c47df;if(_0x3b6c04&&'heading'==_0x3b6c04['commandName']){const _0x2f5a7b=_0x3b6c04['commandParams'][0x0]['value'],_0x18ed0b=this['_getHeadingLevel'](_0x2f5a7b);if(null!==_0x18ed0b)return{'type':'format','content':o(_0x1e3eb0,'*Change\x20to:*\x20%0',(_0x2da423=0x1,_0x3da060=_0x18ed0b,o(_0x1e3eb0,'ELEMENT_HEADING',[_0x2da423,_0x3da060])))};const _0x48187d=this['_headingOptions']['find'](_0x48a48a=>_0x48a48a['model']===_0x2f5a7b)['title'];return{'type':'format','content':o(_0x1e3eb0,'*Change\x20to:*\x20%0',_0x3deccb(0x1,_0x48187d))};}var _0x2da423,_0x3da060;});}['_getHeadingLevel'](_0x59ad25){const _0x9865bf=_0x59ad25['match'](/^heading(\d+)/);if(_0x9865bf)return _0x9865bf[0x1];const _0x44427a=this['_headingOptions']?.['find'](_0x1c2b76=>_0x1c2b76['model']==_0x59ad25);if(_0x44427a&&_0x44427a['view']){const _0x5b800c=_0x44427a['view'],_0x401ef3=(_0x5b800c['name']??_0x5b800c)['match'](/^h(\d+)/);if(_0x401ef3)return _0x401ef3[0x1];}return null;}}class Z extends _0x17f7ef{['afterInit'](){const _0x147a32=this['editor'];if(!_0x147a32['plugins']['has']('HighlightEditing'))return;const _0x23914a=_0x147a32['plugins']['get']('TrackChangesEditing'),_0x34748f=_0x147a32['locale'];_0x23914a['enableDefaultAttributesIntegration']('highlight'),_0x23914a['registerInlineAttribute']('highlight'),_0x23914a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x34748f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c963e=this['editor'],_0x43ab00=_0x3c963e['locale'];_0x3c963e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12e2ff=>{if('formatInline'!=_0x12e2ff['type'])return;const {data:_0x122a28}=_0x12e2ff;if(_0x122a28&&'highlight'==_0x122a28['commandName']){const _0x656e31=_0x43ab00['t'],_0x1e61ed=_0x122a28['commandParams'][0x0]['value'];if(_0x1e61ed){const _0x1cf772=_0x3c963e['config']['get']('highlight.options')['find'](_0x15efae=>_0x15efae['model']==_0x1e61ed),_0x49d0ab=_0x656e31(_0x1cf772['title'])['toLowerCase']();return{'type':'format','content':o(_0x43ab00,'*Set\x20highlight:*\x20%0',_0x49d0ab),'color':{'value':_0x1cf772['color'],'title':_0x1cf772['title']}};}return{'type':'format','content':o(_0x43ab00,'*Remove\x20highlight*',o(_0x43ab00,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x17f7ef{['afterInit'](){const _0x4b4303=this['editor'];if(!_0x4b4303['plugins']['has']('HorizontalLineEditing'))return;_0x4b4303['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a8534=_0x4b4303['plugins']['get']('TrackChangesEditing'),_0x1ba89f=_0x4b4303['locale'];_0x4a8534['descriptionFactory']['registerElementLabel']('horizontalLine',_0x354ac6=>o(_0x1ba89f,'ELEMENT_HORIZONTAL_LINE',_0x354ac6)),_0x4b4303['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x585a06,{writer:_0x3baee5,options:_0x1bcca2})=>{if(!_0x1bcca2['showSuggestionHighlights'])return null;const _0x51d70d=_0x3baee5['createContainerElement']('div'),_0x3e9a8d=_0x3baee5['createEmptyElement']('hr');return _0x3baee5['addClass']('ck-horizontal-line',_0x51d70d),_0x3baee5['insert'](_0x3baee5['createPositionAt'](_0x51d70d,0x0),_0x3e9a8d),_0x51d70d;},'converterPriority':'high'});}}class et extends _0x17f7ef{['afterInit'](){const _0x60912c=this['editor'];if(!_0x60912c['plugins']['has']('HtmlEmbed'))return;const _0x55a5b5=_0x60912c['plugins']['get']('TrackChangesEditing'),_0x235ff7=_0x60912c['locale'];_0x55a5b5['descriptionFactory']['registerElementLabel']('rawHtml',_0x3033cd=>o(_0x235ff7,'ELEMENT_HTML_EMBED',_0x3033cd)),_0x55a5b5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x55a5b5['registerBlockAttribute']('value'),_0x55a5b5['descriptionFactory']['registerDescriptionCallback'](_0x1f709a=>{if('attribute'!=_0x1f709a['type'])return;const {data:_0x3fded2}=_0x1f709a;if(_0x3fded2&&'value'==_0x3fded2['key']&&_0x1f709a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5ddc73=o(_0x235ff7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x235ff7,'*Change\x20%0\x20content*',_0x5ddc73)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c9ff8=this['editor'],_0x14a483=_0x2c9ff8['locale'];_0x2c9ff8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x465ef0=>{if('formatBlock'!=_0x465ef0['type'])return;const {data:_0x305c03}=_0x465ef0;if(_0x305c03&&'htmlEmbed'==_0x305c03['commandName']){const _0x2e24e8=o(_0x14a483,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x14a483,'*Change\x20%0\x20content*',_0x2e24e8)};}});}}class it extends _0x17f7ef{['afterInit'](){const _0x1fe5ad=this['editor'];if(!_0x1fe5ad['plugins']['has']('ImageEditing'))return;const _0x332f8c=_0x1fe5ad['plugins']['get']('TrackChangesEditing'),_0x44ae5c=_0x1fe5ad['plugins']['get']('ImageUtils'),_0x11848c=_0x1fe5ad['locale'];_0x332f8c['enableCommand']('insertImage'),_0x332f8c['descriptionFactory']['registerElementLabel']('imageBlock',_0xea06ad=>o(_0x11848c,'ELEMENT_IMAGE',_0xea06ad)),_0x332f8c['descriptionFactory']['registerElementLabel']('imageInline',_0x418a43=>o(_0x11848c,'ELEMENT_INLINE_IMAGE',_0x418a43)),_0x332f8c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x11848c,'ELEMENT_CAPTION')),_0x1fe5ad['plugins']['has']('ImageUploadEditing')&&_0x332f8c['enableCommand']('uploadImage'),_0x1fe5ad['plugins']['has']('ImageBlockEditing')&&_0x1fe5ad['plugins']['has']('ImageInlineEditing')&&(_0x332f8c['enableCommand']('imageTypeInline',(_0x4fab8c,_0x8762ad)=>{const _0x488cb5=_0x44ae5c['getClosestSelectedImageElement'](_0x1fe5ad['model']['document']['selection']);_0x1fe5ad['model']['change'](()=>{_0x332f8c['markBlockFormat'](_0x488cb5,{'commandName':'imageTypeInline','commandParams':[_0x8762ad]},[],'convertBlockImageToInline');});}),_0x332f8c['enableCommand']('imageTypeBlock',(_0x316864,_0x25959b)=>{_0x1fe5ad['model']['change'](_0xdbac8=>{let _0x5c63fd=_0x44ae5c['getClosestSelectedImageElement'](_0x1fe5ad['model']['document']['selection']),_0x311630=_0xdbac8['createRangeOn'](_0x5c63fd);const _0xb54928=_0x1484b7['fromPosition'](_0x311630['start'],'toPrevious'),_0x145205=_0x1484b7['fromPosition'](_0x311630['end'],'toNext');_0x332f8c['forceDefaultExecution'](()=>_0x316864(_0x25959b)),_0x5c63fd=_0x44ae5c['getClosestSelectedImageElement'](_0x1fe5ad['model']['document']['selection']),_0x311630=_0xdbac8['createRangeOn'](_0x5c63fd);const _0x982ddb=_0xdbac8['createRange'](_0xb54928,_0x145205);_0xb54928['detach'](),_0x145205['detach'](),_0x332f8c['markBlockFormat'](_0x5c63fd,{'commandName':'imageTypeInline','commandParams':[_0x25959b]},[],'convertInlineImageToBlock'),_0x982ddb['start']['isBefore'](_0x311630['start'])&&_0x332f8c['markInsertion'](_0xdbac8['createRange'](_0x982ddb['start'],_0x311630['start']),'convertInlineImageToBlock'),_0x311630['end']['isBefore'](_0x982ddb['end'])&&_0x332f8c['markInsertion'](_0xdbac8['createRange'](_0x311630['end'],_0x982ddb['end']),'convertInlineImageToBlock');});}),_0x332f8c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x332f8c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x332f8c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x332f8c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x332f8c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x332f8c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x16a037])=>{const _0x4a0ca5=_0x332f8c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5a230b=_0x16a037['start'],_0x49cb74=_0x16a037['end'];const _0x5f15e0=_0x1fe5ad['model']['schema']['getNearestSelectionRange'](_0x5a230b,'backward'),_0x9cb199=_0x1fe5ad['model']['schema']['getNearestSelectionRange'](_0x49cb74,'forward');_0x5f15e0['isCollapsed']&&(_0x5a230b=_0x5f15e0['start']),_0x9cb199['isCollapsed']&&(_0x49cb74=_0x9cb199['end']),_0x4a0ca5([_0x1fe5ad['model']['createRange'](_0x5a230b,_0x49cb74)]);}),_0x332f8c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x49567b),_0x332f8c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x49567b)),_0x1fe5ad['plugins']['has']('ImageCaptionEditing')&&(_0x332f8c['enableCommand']('toggleImageCaption',(_0x76107,_0x3e9a49)=>{const _0x3d962a=_0x1fe5ad['plugins']['get']('ImageCaptionUtils');let _0x11204b=_0x44ae5c['getClosestSelectedImageElement'](_0x1fe5ad['model']['document']['selection']),_0x3c31ec=_0x3d962a['getCaptionFromImageModelElement'](_0x11204b);_0x1fe5ad['model']['change'](()=>{if(_0x3c31ec)return void _0x332f8c['markDeletion'](_0x1fe5ad['model']['createRangeOn'](_0x3c31ec));const _0x2fb3ca=_0x44ae5c['isBlockImage'](_0x11204b);_0x76107(_0x3e9a49),_0x11204b=_0x44ae5c['getClosestSelectedImageElement'](_0x1fe5ad['model']['document']['selection']),_0x3c31ec=_0x3d962a['getCaptionFromImageModelElement'](_0x11204b),_0x332f8c['markInsertion'](_0x1fe5ad['model']['createRangeOn'](_0x3c31ec),_0x2fb3ca?null:'imageCaption');});}),_0x332f8c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x49567b));const _0x2c31c0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f415b(_0x3079dd,_0x18e137){const _0x2bbfe1=_0x2c31c0['findIndex'](({type:_0x22b4e8,subType:_0x1f92c1})=>_0x3079dd['type']==_0x22b4e8&&_0x3079dd['subType']==_0x1f92c1),_0x4a9407=_0x2c31c0['findIndex'](({type:_0x1fbce8,subType:_0x9c28ca})=>_0x18e137['type']==_0x1fbce8&&_0x18e137['subType']==_0x9c28ca);if(_0x2bbfe1<0x0||_0x4a9407<0x0)return!0x1;const _0x3dea79=_0x3079dd['getFirstRange'](),_0x19e25a=_0x18e137['getFirstRange']();if((0x0==_0x2bbfe1||0x1==_0x2bbfe1)&&0x2==_0x4a9407&&_0x3dea79['isIntersecting'](_0x19e25a))return!0x0;if(0x2==_0x2bbfe1&&0x3==_0x4a9407){const _0x2d61c2=_0x332f8c['_findSuggestions'](_0x3dea79,'insertion')['filter'](({suggestion:_0x1609e7,meta:_0x50fa11})=>_0x50fa11['isOwn']&&'convertInlineImageToBlock'==_0x1609e7['subType']);if(_0x2d61c2['length']>0x1&&_0x19e25a['end']['isEqual'](_0x3dea79['start']))return!0x0;if(0x1==_0x2d61c2['length']&&(_0x3dea79['start']['isEqual'](_0x19e25a['end'])||_0x3dea79['end']['isEqual'](_0x19e25a['start'])))return!0x0;}if(0x3==_0x2bbfe1&&0x3==_0x4a9407&&_0x3dea79['start']['isBefore'](_0x19e25a['start'])){const _0x515541=_0x3dea79['end']['nodeAfter'],_0x442576=_0x19e25a['start']['nodeBefore'];return _0x44ae5c['isBlockImage'](_0x515541)&&_0x515541===_0x442576;}return!0x1;}function _0x49567b(_0x47f564,_0x51f702){return _0x4f415b(_0x47f564,_0x51f702)?[_0x47f564,_0x51f702]:_0x4f415b(_0x51f702,_0x47f564)?[_0x51f702,_0x47f564]:null;}_0x1fe5ad['plugins']['has']('ImageResize')&&(_0x332f8c['enableDefaultAttributesIntegration']('resizeImage'),_0x332f8c['registerBlockAttribute']('resizedWidth'),_0x332f8c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x11848c,'FORMAT_IMAGE_SIZE'))),_0x1fe5ad['plugins']['has']('ImageTextAlternativeEditing')&&(_0x332f8c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x332f8c['registerBlockAttribute']('alt')),_0x332f8c['descriptionFactory']['registerDescriptionCallback'](_0x4cf76c=>{if(!!_0x2c31c0['find'](({type:_0x61f726,subType:_0x260433})=>_0x4cf76c['type']==_0x61f726&&_0x4cf76c['subType']==_0x260433))return _0x4cf76c['previous']?{}:void 0x0;}),_0x332f8c['descriptionFactory']['registerDescriptionCallback'](_0xf8e668=>{if('insertion'==_0xf8e668['type']||'deletion'==_0xf8e668['type']){const _0x25f102=_0xf8e668['getContainedElement']();if(_0x25f102&&_0x25f102['is']('element','caption'))return{'type':'insertion'==_0xf8e668['type']?'addObject':'removeObject','element':_0x25f102,'quantity':0x1};}}),_0x332f8c['descriptionFactory']['registerDescriptionCallback'](_0x2fbe7d=>'formatBlock'==_0x2fbe7d['type']&&'convertInlineImageToBlock'==_0x2fbe7d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2fbe7d['type']&&'convertBlockImageToInline'==_0x2fbe7d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x332f8c['descriptionFactory']['registerDescriptionCallback'](_0x3cdc67=>{if('attribute'!=_0x3cdc67['type'])return;const {data:_0x518a4b}=_0x3cdc67;if(!_0x518a4b||'alt'!=_0x518a4b['key'])return;const _0x535cf0=_0x518a4b['newValue'];return _0x535cf0?{'type':'format','content':o(_0x11848c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x535cf0+'\x22')}:{'type':'format','content':o(_0x11848c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ca666=this['editor'],_0x1a8c43=_0x3ca666['locale'];_0x3ca666['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdfc703=>{if('formatBlock'!=_0xdfc703['type']&&'formatInline'!=_0xdfc703['type'])return;const {data:_0x46949b}=_0xdfc703;if(_0x46949b){if('imageTextAlternative'==_0x46949b['commandName']){const _0x110ac6=_0x46949b['commandParams'][0x0]['newValue'];return _0x110ac6?{'type':'format','content':o(_0x1a8c43,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x110ac6+'\x22')}:{'type':'format','content':o(_0x1a8c43,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x46949b['commandName']){const _0x336e8a=_0x46949b['commandParams'][0x0]['width'];return _0x336e8a?{'type':'format','content':o(_0x1a8c43,'*Set\x20image\x20width:*\x20%0',_0x336e8a)}:{'type':'format','content':o(_0x1a8c43,'*Reset\x20image\x20width*')};}}});}}class st extends _0x17f7ef{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3031e7=this['editor']['locale'],_0x365228=this['editor']['plugins']['get']('TrackChangesEditing');_0x365228['enableDefaultAttributesIntegration']('replaceImageSource'),_0x365228['registerBlockAttribute']('src'),_0x365228['descriptionFactory']['registerDescriptionCallback'](_0x59f932=>{if('attribute'!=_0x59f932['type'])return;const {data:_0x5b1112}=_0x59f932;return _0x5b1112&&'src'==_0x5b1112['key']?_0x5b1112['newValue']&&_0x5b1112['oldValue']?{'type':'format','content':o(_0x3031e7,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12dde5=this['editor']['plugins']['get']('TrackChangesEditing');_0x12dde5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x12dde5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12dde5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x12dde5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd59e8b=this['editor'],_0x16e510=_0xd59e8b['locale'];_0xd59e8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x269e4b=>{if('formatBlock'!=_0x269e4b['type']&&'formatInline'!=_0x269e4b['type'])return;const {data:_0x185e2f}=_0x269e4b;if(!_0x185e2f||'replaceImageSource'!=_0x185e2f['commandName'])return;return{'type':'format','content':o(_0x16e510,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x17f7ef{['afterInit'](){const _0x53078e=this['editor'];if(!_0x53078e['plugins']['has']('ImageStyleEditing'))return;const _0x35d91b=_0x53078e['plugins']['get']('TrackChangesEditing'),_0x309cd5=_0x53078e['plugins']['get']('ImageUtils'),_0xe6f067={};_0x35d91b['enableCommand']('imageStyle',(_0x3fd0ab,_0x3832b7)=>{const _0x4a0e42=_0x53078e['plugins']['get']('Users')['me'],_0x1ed86e=_0x53078e['commands']['get']('imageStyle');let _0x576a74=_0x309cd5['getClosestSelectedImageElement'](_0x53078e['model']['document']['selection']),_0x1da125=_0x53078e['model']['createRangeOn'](_0x576a74),_0x2f7820=_0x1ed86e['value'];if(_0x2f7820==_0x3832b7['value'])return;const _0xa20362={'commandName':'imageStyle','commandParams':[_0x3832b7],'formatGroupId':_0x5e29c1()};_0x53078e['model']['change'](()=>{if(_0x35d91b['getSuggestions']()['filter'](_0x12e8df=>_0x12e8df['isInContent']&&_0x4a0e42==_0x12e8df['author']&&('formatBlock'==_0x12e8df['type']||'formatInline'==_0x12e8df['type'])&&('imageStylePreApply'==_0x12e8df['subType']||'imageStylePostApply'==_0x12e8df['subType'])&&_0x12e8df['getFirstRange']()['isEqual'](_0x1da125))['forEach'](_0x15be38=>_0x35d91b['discardSuggestion'](_0x15be38['head'])),_0x576a74=_0x309cd5['getClosestSelectedImageElement'](_0x53078e['model']['document']['selection']),_0x1da125=_0x53078e['model']['createRangeOn'](_0x576a74),_0x1ed86e['refresh'](),_0x53078e['commands']['get']('imageTypeInline')['refresh'](),_0x53078e['commands']['get']('imageTypeBlock')['refresh'](),_0x2f7820=_0x1ed86e['value'],_0x2f7820!=_0x3832b7['value'])return _0x309cd5['isInlineImage'](_0x576a74)&&_0x1ed86e['shouldConvertImageType'](_0x3832b7['value'],_0x576a74)?(_0x3fd0ab({..._0x3832b7,'setImageSizes':!0x1}),_0x576a74=_0x309cd5['getClosestSelectedImageElement'](_0x53078e['model']['document']['selection']),void _0x35d91b['markBlockFormat'](_0x576a74,{..._0xa20362,'commandReversedParams':[{'value':_0x2f7820||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x309cd5['isBlockImage'](_0x576a74)?_0x35d91b['markBlockFormat'](_0x576a74,_0xa20362,[],'imageStylePostApply'):_0x35d91b['markInlineFormat'](_0x1da125,_0xa20362,'imageStylePostApply'));});});for(const _0x526170 of _0x53078e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xe6f067[_0x526170['name']]=_0x526170['title']['toLowerCase']();_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5a6ebd])=>{_0x309cd5['setImageNaturalSizeAttributes'](_0x5a6ebd['getContainedElement']());}),_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xb2cb6c,_0x3d4dee)=>{_0x35d91b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xb2cb6c,{'commandName':_0x3d4dee['commandName'],'commandParams':_0x3d4dee['commandReversedParams']});}),_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x967997,_0x1845cf){if(_0x4da03b(_0x967997,_0x1845cf))return[_0x967997,_0x1845cf];if(_0x4da03b(_0x1845cf,_0x967997))return[_0x1845cf,_0x967997];return null;});const _0x3283da=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4da03b(_0x54f8ec,_0x4b2ab7){const _0x4e750a=_0x3283da['findIndex'](({type:_0x8d4f05,subType:_0x2d8bac})=>_0x54f8ec['type']==_0x8d4f05&&_0x54f8ec['subType']==_0x2d8bac),_0xe2b314=_0x3283da['findIndex'](({type:_0xd2281c,subType:_0x30fad3})=>_0x4b2ab7['type']==_0xd2281c&&_0x4b2ab7['subType']==_0x30fad3);if(_0x4e750a<0x0||_0xe2b314<0x0)return!0x1;const _0x411cb8=_0x54f8ec['getFirstRange'](),_0x2ad615=_0x4b2ab7['getFirstRange']();if((0x0==_0x4e750a||0x1==_0x4e750a)&&0x2==_0xe2b314&&_0x411cb8['isIntersecting'](_0x2ad615))return!0x0;if(0x2==_0x4e750a&&0x3==_0xe2b314){const _0x2b9c38=_0x35d91b['_findSuggestions'](_0x411cb8,'insertion')['filter'](({suggestion:_0x308217,meta:_0x497385})=>_0x497385['isOwn']&&'convertInlineImageToBlock'==_0x308217['subType']);if(_0x2b9c38['length']>0x1&&_0x2ad615['end']['isEqual'](_0x411cb8['start']))return!0x0;if(0x1==_0x2b9c38['length']&&(_0x411cb8['start']['isEqual'](_0x2ad615['end'])||_0x411cb8['end']['isEqual'](_0x2ad615['start'])))return!0x0;}if(0x3==_0x4e750a&&0x3==_0xe2b314&&_0x411cb8['start']['isBefore'](_0x2ad615['start'])){const _0x344e5a=_0x411cb8['end']['nodeAfter'],_0x37ee25=_0x2ad615['start']['nodeBefore'];return _0x309cd5['isBlockImage'](_0x344e5a)&&_0x344e5a===_0x37ee25;}return!0x1;}_0x53078e['model']['document']['registerPostFixer'](()=>{let _0x5bf600=!0x1;const _0x4c872d=Array['from'](_0x53078e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39f3ae,data:_0x18a9d5}of _0x4c872d){const {group:_0x4e040,type:_0x391388,subType:_0xa3b082,id:_0x9a04e8}=_0x35d91b['_splitMarkerName'](_0x39f3ae);if('suggestion'==_0x4e040&&_0x35d91b['hasSuggestion'](_0x9a04e8)){if('formatBlock'==_0x391388&&('imageStylePreApply'==_0xa3b082||'imageStylePostApply'==_0xa3b082)){const _0x1667f7=_0x35d91b['getSuggestion'](_0x9a04e8);if(_0x18a9d5['newRange']){const _0x5755e9=_0x1667f7['getFirstRange']()['getContainedElement']();if(_0x309cd5['isBlockImage'](_0x5755e9))continue;_0x35d91b['discardSuggestion'](_0x1667f7),_0x5bf600=!0x0;}}if('insertion'==_0x391388&&'imageCaption'==_0xa3b082&&!_0x18a9d5['newRange']){const _0x389aa5=_0x35d91b['getSuggestion'](_0x9a04e8);_0x389aa5['next']&&_0x389aa5['next']['isInContent']&&(_0x35d91b['discardSuggestion'](_0x389aa5['next']),_0x5bf600=!0x0);}}}return _0x5bf600;}),this['_registerLegacyDescription'](_0xe6f067);}['_registerLegacyDescription'](_0x52fe08){const _0x594771=this['editor'],_0x54f5ad=_0x594771['locale'];_0x594771['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27cee4=>{if('formatBlock'!=_0x27cee4['type']&&'formatInline'!=_0x27cee4['type'])return;const {data:_0x1f2146}=_0x27cee4;if(!_0x1f2146||'imageStyle'!=_0x1f2146['commandName'])return;const _0x3fcd19=_0x1f2146['commandParams'][0x0]['value'];return _0x1e7a6d('side'===_0x3fcd19?o(_0x54f5ad,'FORMAT_SIDE_IMAGE'):_0x52fe08[_0x3fcd19]||_0x3fcd19);function _0x1e7a6d(_0x4e399d){return{'type':'format','content':o(_0x54f5ad,'*Format:*\x20%0',_0x4e399d)};}});}}class ot extends _0x17f7ef{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x18ce37){super(_0x18ce37),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xc13ce9=this['editor'],_0x44821c=_0xc13ce9['commands']['get']('importWord'),_0x5eb9c0=_0xc13ce9['commands']['get']('trackChanges');_0x44821c&&(_0x44821c['on']('execute',(_0x544bde,[,_0x35ac0c])=>{this['_trackChangesValueDuringImport']=_0x5eb9c0['value'],_0x35ac0c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x44821c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x44821c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5eb9c0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xc13ce9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2223e3,_0x1a3819){const {suggestions:_0x24c772}=_0x1a3819,_0x4c72ec=this['editor']['commands']['get']('trackChanges'),_0x717abf=_0x4c72ec['value'];this['_trackChangesValueDuringImport']!==_0x717abf&&(_0x4c72ec['execute'](),this['_trackChangesExecuted']=!0x0),_0x24c772&&_0x24c772['forEach'](({id:_0x57705a,type:_0x3d86ed,author:_0x12bb7a,created_at:_0xa8c68e})=>{const _0x5f344e={'id':_0x57705a,'type':_0x3d86ed,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x12bb7a,'createdAt':_0xa8c68e?new Date(_0xa8c68e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5f344e);});}}class rt extends _0x17f7ef{['afterInit'](){const _0xafdef8=this['editor'],_0x54ac6e=_0xafdef8['plugins']['get']('TrackChangesEditing');if(_0xafdef8['plugins']['has']('IndentEditing')&&(_0x54ac6e['enableCommand']('indent'),_0x54ac6e['enableCommand']('outdent')),_0xafdef8['plugins']['has']('IndentBlock')){for(const _0x35fdbe of['indentBlock','outdentBlock'])_0x54ac6e['enableDefaultAttributesIntegration'](_0x35fdbe);}const _0x2c4fdf=_0xafdef8['locale'];_0x54ac6e['registerBlockAttribute']('blockIndent'),_0x54ac6e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2c4fdf,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8691d1=this['editor'],_0xc6f4ef=_0x8691d1['locale'],_0x5bf6a7=_0x8691d1['plugins']['get']('TrackChangesEditing');_0x5bf6a7['descriptionFactory']['registerDescriptionCallback'](_0x1298a7=>{if('formatBlock'!=_0x1298a7['type'])return;const {data:_0xdb67a7}=_0x1298a7;if(!_0xdb67a7)return;if('indentBlock'!=_0xdb67a7['commandName']&&'outdentBlock'!=_0xdb67a7['commandName'])return;const _0x4c9cd8=_0x1298a7['getItems']()[0x0],_0x8435ff=_0x5bf6a7['descriptionFactory']['getItemLabel'](_0x4c9cd8);return'indentBlock'==_0xdb67a7['commandName']?{'type':'format','content':o(_0xc6f4ef,'*Indent:*\x20%0',_0x8435ff)}:'outdentBlock'==_0xdb67a7['commandName']?{'type':'format','content':o(_0xc6f4ef,'*Outdent:*\x20%0',_0x8435ff)}:void 0x0;});}}class at extends _0x17f7ef{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x17f7ef{['afterInit'](){const _0x104a55=this['editor'];if(!_0x104a55['plugins']['has']('LinkEditing'))return;const _0x549791=_0x104a55['plugins']['get']('TrackChangesEditing'),_0x47b8ec=_0x104a55['commands']['get']('link');_0x549791['enableDefaultAttributesIntegration']('link'),_0x549791['enableDefaultAttributesIntegration']('unlink'),_0x549791['registerInlineAttribute']('linkHref');for(const _0x489db9 of _0x47b8ec['manualDecorators'])_0x549791['registerInlineAttribute'](_0x489db9['id']),_0x549791['descriptionFactory']['registerAttributeLabel'](_0x489db9['id'],'link\x20('+_0x489db9['label']['toLowerCase']()+')');_0x549791['descriptionFactory']['registerDescriptionCallback'](_0xc2f4f7=>{if('attribute'!=_0xc2f4f7['type'])return;const {data:_0x8573dc}=_0xc2f4f7;if(!_0x8573dc||'linkHref'!=_0x8573dc['key'])return;const _0x48ed76=_0x8573dc['newValue'],_0x21729f=_0x104a55['locale'];return{'type':'format','content':null==_0x48ed76?o(_0x21729f,'*Remove\x20link*'):o(_0x21729f,'*Set\x20link:*\x20%0','\x22'+_0x48ed76+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a888f=this['editor'],_0x3eeb01=_0x2a888f['locale'];_0x2a888f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3520cc=>{if('formatInline'!=_0x3520cc['type'])return;const {data:_0x460d5e}=_0x3520cc;if(_0x460d5e){if('link'==_0x460d5e['commandName']){const _0x5e6e14=_0x460d5e['commandParams'][0x0];return{'type':'format','content':o(_0x3eeb01,'*Set\x20link:*\x20%0','\x22'+_0x5e6e14+'\x22')};}return'unlink'==_0x460d5e['commandName']?{'type':'format','content':o(_0x3eeb01,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x17f7ef{['afterInit'](){const _0x10a92d=this['editor'],_0x5963c4=_0x10a92d['locale'];if(!_0x10a92d['plugins']['has']('LegacyListEditing'))return;const _0xc65f14=_0x10a92d['plugins']['get']('TrackChangesEditing'),_0x163d49=_0x10a92d['plugins']['has']('LegacyTodoListEditing');function _0xe5f008(_0x28c077){return()=>{const _0x95754b=_0x10a92d['model']['document']['selection'],_0x4d10cd=_0x10a92d['commands']['get'](_0x28c077);if(_0x4d10cd['value'])return void _0x10a92d['execute']('paragraph',{});const _0x4e17b3=_0x28c077['slice'](0x0,-0x4),_0x1ac6e8=function(_0x1d4ffb,_0x11b3ec,_0x3697a0){let _0xc165af=Array['from'](_0x1d4ffb)['filter'](_0x44475a=>function(_0x5e9abb,_0x39da4c){return _0x39da4c['checkChild'](_0x5e9abb['parent'],'listItem')&&!_0x39da4c['isObject'](_0x5e9abb);}(_0x44475a,_0x3697a0));_0xc165af=_0xc165af['filter'](_0x99050d=>!_0x99050d['is']('element','listItem')||_0x99050d['getAttribute']('listType')!=_0x11b3ec);const _0x140cf5=new Set();for(const _0x2a9dc6 of _0xc165af)_0x2a9dc6['is']('element','listItem')?_0x140cf5['add'](me(_0x2a9dc6)):_0x140cf5['add'](_0x2a9dc6);return Array['from'](_0x140cf5);}(_0x95754b['getSelectedBlocks'](),_0x4e17b3,_0x10a92d['model']['schema']);_0x10a92d['model']['change'](()=>{for(const _0x483dc2 of _0x1ac6e8)_0xc65f14['markBlockFormat'](_0x483dc2,{'commandName':_0x28c077,'commandParams':[{'forceValue':!_0x4d10cd['value']}],'formatGroupId':'blockName'},fe(_0x483dc2));});};}function _0x196b0d(_0xbc5eaa){return()=>{const _0x2499ff=function(_0x350654){let _0x52e3d8=Array['from'](_0x350654);const _0x3ece10=_0x52e3d8['findIndex'](_0x193ee8=>'listItem'!=_0x193ee8['name']);return _0x3ece10>-0x1&&(_0x52e3d8=_0x52e3d8['slice'](0x0,_0x3ece10)),_0x52e3d8;}(_0x10a92d['model']['document']['selection']['getSelectedBlocks']()),_0x530a59=_0x10a92d['model']['createRange'](_0x10a92d['model']['createPositionAt'](_0x2499ff[0x0],'before'),_0x10a92d['model']['createPositionAt'](_0x2499ff[_0x2499ff['length']-0x1],'end'));_0x10a92d['model']['change'](()=>{_0xc65f14['markBlockFormat'](_0x530a59,{'commandName':_0xbc5eaa,'commandParams':[],'formatGroupId':'listIndent'},function(_0x342f28){const _0x35813e=new Set();for(const _0x1c9491 of _0x342f28){let _0x541dc8=_0x1c9491['nextSibling'];for(;_0x541dc8&&_0x541dc8['getAttribute']('listIndent')>_0x1c9491['getAttribute']('listIndent');)_0x35813e['add'](_0x541dc8),_0x541dc8=_0x541dc8['nextSibling'];}return Array['from'](_0x35813e);}(_0x2499ff));});};}_0xc65f14['enableCommand']('numberedList',_0xe5f008('numberedList')),_0xc65f14['enableCommand']('bulletedList',_0xe5f008('bulletedList')),_0x163d49&&_0xc65f14['enableCommand']('todoList',_0xe5f008('todoList')),_0xc65f14['enableCommand']('indentList',_0x196b0d('indentList')),_0xc65f14['enableCommand']('outdentList',_0x196b0d('outdentList')),_0x163d49&&_0xc65f14['enableCommand']('checkTodoList',()=>{const _0x5695d6=_0x10a92d['commands']['get']('checkTodoList'),_0xb08794=Array['from'](_0x5695d6['_selectedElements']);_0xb08794['filter'](_0x41b564=>_0x41b564['getAttribute']('todoListChecked')!=_0x5695d6['value']),_0x10a92d['model']['change'](()=>{for(const _0x57ad9b of _0xb08794)_0xc65f14['markBlockFormat'](_0x57ad9b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5695d6['value']}]});});}),_0xc65f14['descriptionFactory']['registerElementLabel']('listItem',_0x4e1797=>o(_0x5963c4,'ELEMENT_LIST_ITEM',_0x4e1797)),_0xc65f14['descriptionFactory']['registerDescriptionCallback'](_0x5eb355=>{if('formatBlock'!=_0x5eb355['type']&&'formatInline'!=_0x5eb355['type'])return;const {data:_0x212b39}=_0x5eb355;if(_0x212b39){if('numberedList'==_0x212b39['commandName']||'bulletedList'==_0x212b39['commandName']||'todoList'==_0x212b39['commandName'])switch(_0x212b39['commandName']['replace']('List','')){case'bulleted':return _0x1bfa18(o(_0x5963c4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1bfa18(o(_0x5963c4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1bfa18(o(_0x5963c4,'ELEMENT_TODO_LIST'));}if('indentList'==_0x212b39['commandName'])return{'type':'format','content':o(_0x5963c4,'*Indent:*\x20%0',o(_0x5963c4,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x212b39['commandName'])return{'type':'format','content':o(_0x5963c4,'*Outdent:*\x20%0',o(_0x5963c4,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x212b39['commandName'])return _0x212b39['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5963c4,'*Check\x20item*')}:{'type':'format','content':o(_0x5963c4,'*Uncheck\x20item*')};}function _0x1bfa18(_0x4d97d6){return{'type':'format','content':o(_0x5963c4,'*Change\x20to:*\x20%0',_0x4d97d6)};}});}}function me(_0x41e29b){const _0x4cd599=_0x41e29b['getAttribute']('listIndent');if(0x0==_0x4cd599)return _0x41e29b;let _0x3262cf=_0x41e29b;for(;_0x41e29b['previousSibling']&&_0x41e29b['previousSibling']['is']('element','listItem');){const _0x3a8fba=_0x41e29b['previousSibling']['getAttribute']('listIndent');if(_0x3a8fba==_0x4cd599)_0x3262cf=_0x41e29b['previousSibling'];else{if(_0x3a8fba<_0x4cd599)break;}_0x41e29b=_0x41e29b['previousSibling'];}return _0x3262cf;}function fe(_0x86d1ea){const _0x2876f7=[];if(_0x86d1ea['is']('element','listItem')&&_0x86d1ea['getAttribute']('listIndent')>0x0){let _0x59a915=_0x86d1ea['nextSibling'];for(;_0x59a915&&'listItem'==_0x59a915['name']&&_0x59a915['getAttribute']('listIndent')==_0x86d1ea['getAttribute']('listIndent');)_0x2876f7['push'](_0x59a915),_0x59a915=_0x59a915['nextSibling'];}return _0x2876f7;}class K extends _0x17f7ef{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x152371=this['editor']['config']['get']('list.properties'),_0x30a8d0=this['editor']['plugins']['get']('TrackChangesEditing');_0x152371['styles']&&_0x30a8d0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x152371['reversed']&&_0x30a8d0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x152371['startIndex']&&_0x30a8d0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x30a8d0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5614f1,_0x19276d={}){const _0x298c82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x303005=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x298c82['markMultiRangeBlockFormat'](_0x303005,{'commandName':'listStyle','commandParams':[{'type':_0x19276d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x351427,_0x5056ce={}){const _0x42ab51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54a81f=this['_getSuggestionBlocks'](_0x2e0b9e=>_0x2e0b9e['is']('element','listItem')&&'numbered'===_0x2e0b9e['getAttribute']('listType'));if(_0x54a81f['length']<0x1)return;const _0x45c237=_0x54a81f['map'](_0x80c737=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x80c737,'before'),this['editor']['model']['createPositionAt'](_0x80c737,0x0)));this['editor']['model']['change'](()=>{_0x42ab51['markMultiRangeBlockFormat'](_0x45c237,{'commandName':'listReversed','commandParams':[{'reversed':_0x5056ce['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x250222,_0x52e750={}){const _0x2d908d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f88aa=this['_getSuggestionBlocks'](_0x194291=>_0x194291['is']('element','listItem')&&'numbered'===_0x194291['getAttribute']('listType'));if(_0x2f88aa['length']<0x1)return;const _0x557e9d=_0x2f88aa['map'](_0x3aa578=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3aa578,'before'),this['editor']['model']['createPositionAt'](_0x3aa578,0x0)));this['editor']['model']['change'](()=>{_0x2d908d['markMultiRangeBlockFormat'](_0x557e9d,{'commandName':'listStart','commandParams':[{'startIndex':_0x52e750['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x105195){if('formatBlock'!=_0x105195['type']&&'formatInline'!=_0x105195['type'])return;const _0x1f88b7=this['editor']['locale'],{data:_0x3e78ae}=_0x105195;if(!_0x3e78ae)return;let _0x13eb75,_0x76b90f;switch(_0x3e78ae['commandName']){case'listStyle':_0x13eb75='*Change\x20to:*\x20%0',_0x76b90f={'type':'format','content':o(_0x1f88b7,_0x13eb75,o(_0x1f88b7,this['_getTranslationKeyForListStyle'](_0x3e78ae['commandParams'][0x0]['type'])))};break;case'listReversed':_0x13eb75=_0x3e78ae['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x76b90f={'type':'format','content':o(_0x1f88b7,_0x13eb75)};break;case'listStart':_0x13eb75='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x76b90f={'type':'format','content':o(_0x1f88b7,_0x13eb75,_0x3e78ae['commandParams'][0x0]['startIndex'])};}return _0x76b90f;}['_getSuggestionBlocksForListStyle'](){const _0x251f4f=this['editor']['plugins']['get']('LegacyListUtils');let _0x1af386=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1af386[0x0]?.['is']('element','listItem')&&_0x1af386['unshift'](..._0x251f4f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1af386[_0x1af386['length']-0x1]?.['is']('element','listItem')&&_0x1af386['push'](..._0x251f4f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1af386=[...new Set(_0x1af386)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1af386=_0x1af386['filter'](_0x1c43cb=>_0x1c43cb['is']('element','listItem'))),_0x1af386;}['_getSuggestionBlocks'](_0xb1c62f){const _0x368380=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b02fe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xb1c62f)['map'](_0xa40e81=>{const _0x4cff2d=this['editor']['model']['createPositionAt'](_0xa40e81,0x0);return[..._0x368380['getSiblingNodes'](_0x4cff2d,'backward'),..._0x368380['getSiblingNodes'](_0x4cff2d,'forward')];})['flat']();return _0x5b02fe=[...new Set(_0x5b02fe)],_0x5b02fe;}['_getTranslationKeyForListStyle'](_0x3ba19d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3ba19d)||'default')['toUpperCase']()+'_LIST_'+_0x3ba19d['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x17f7ef{['afterInit'](){const _0x4db56b=this['editor'];if(!_0x4db56b['plugins']['has']('MediaEmbedEditing'))return;const _0xd2d11d=_0x4db56b['plugins']['get']('TrackChangesEditing'),_0x2db0ba=_0x4db56b['locale'];_0xd2d11d['enableCommand']('mediaEmbed'),_0xd2d11d['descriptionFactory']['registerElementLabel']('media',_0x490b74=>o(_0x2db0ba,'ELEMENT_MEDIA',_0x490b74)),_0x4db56b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1ebf52,{writer:_0x306e7c,options:_0x52a33b})=>{if(_0x52a33b['showSuggestionHighlights'])return _0x306e7c['createEmptyElement']('div');},'converterPriority':'high'}),_0x4db56b['data']['downcastDispatcher']['on']('attribute:url:media',(_0xf8f191,_0x57469b,_0x2965d7)=>{_0x2965d7['options']['showSuggestionHighlights']&&_0xf8f191['stop']();},{'priority':'high'});}}class gt extends _0x17f7ef{['afterInit'](){const _0x459254=this['editor'];_0x459254['plugins']['has']('MentionEditing')&&_0x459254['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x17f7ef{['afterInit'](){const _0x4b272b=this['editor'],_0x55a63a=_0x4b272b['plugins']['get']('TrackChangesEditing');_0x4b272b['plugins']['has']('MultiLevelList')&&(_0x55a63a['enableDefaultAttributesIntegration']('multiLevelList'),_0x55a63a['registerBlockAttribute']('listMarkerStyle'),_0x55a63a['descriptionFactory']['registerDescriptionCallback'](_0x2e6416=>this['handleDescriptions'](_0x2e6416)));}['handleDescriptions'](_0x2c304d){const _0x38ffa6=this['editor']['locale'],{data:_0x25c14c}=_0x2c304d,_0x3e16ce={'type':'format','content':''};if(_0x25c14c&&'listMarkerStyle'==_0x25c14c['key']){if(!_0x25c14c['oldValue'])return{'type':'format','content':o(_0x38ffa6,'*Set\x20format:*\x20%0',o(_0x38ffa6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x25c14c['newValue']+')'};if(!_0x25c14c['newValue']){let _0x11f333=_0x2c304d['head'];for(;_0x11f333;){if(_0x11f333['data']&&'listType'==_0x11f333['data']['key']&&_0x11f333['data']['newValue'])return _0x3e16ce;_0x11f333=_0x11f333['next'];}return{'type':'format','content':o(_0x38ffa6,'*Remove\x20format:*\x20%0',o(_0x38ffa6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x25c14c['oldValue']+')'};}}}}class mt extends _0x17f7ef{['afterInit'](){const _0x229f51=this['editor'];if(!_0x229f51['plugins']['has']('PageBreakEditing'))return;_0x229f51['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x26e968=_0x229f51['plugins']['get']('TrackChangesEditing'),_0x47c0dc=_0x229f51['locale'];_0x26e968['descriptionFactory']['registerElementLabel']('pageBreak',_0x1359ae=>o(_0x47c0dc,'ELEMENT_PAGE_BREAK',_0x1359ae));}}class dt extends _0x17f7ef{['afterInit'](){const _0x2286a0=this['editor'];if(!_0x2286a0['plugins']['has']('Paragraph'))return;const _0x634503=_0x2286a0['locale'],_0x3524bd=_0x2286a0['plugins']['get']('TrackChangesEditing');_0x3524bd['descriptionFactory']['registerElementLabel']('paragraph',_0x58f3df=>o(_0x634503,'ELEMENT_PARAGRAPH',_0x58f3df)),_0x3524bd['enableDefaultAttributesIntegration']('paragraph'),_0x3524bd['enableCommand']('insertParagraph'),_0x2286a0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2286a0),{'priority':'highest'}),_0x2286a0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41034c,_0xa3b3b7,_0x46cb61)=>{_0x46cb61['options']['showSuggestionHighlights']&&nr(_0x2286a0,{'showActiveMarker':!0x1})(_0x41034c,_0xa3b3b7,_0x46cb61);},{'priority':'highest'});const _0x572059=_0x3524bd['descriptionFactory'];_0x572059['registerDescriptionCallback'](_0x350970=>{if('insertion'!==_0x350970['type'])return;const {start:_0x19c34a,end:_0x43dc75}=_0x350970['getFirstRange']();if(!_0x19c34a['isTouching'](_0x43dc75)||!_0x19c34a['nodeAfter'])return;const _0x182218=_0x2286a0['model']['schema'],_0x169ebe=_0x19c34a['nodeAfter'];return _0x182218['isBlock'](_0x169ebe)&&!_0x182218['isLimit'](_0x169ebe)&&_0x182218['checkChild'](_0x169ebe,'$text')?{'type':'insertion','content':o(_0x634503,'*Insert:*\x20%0',_0x572059['getItemLabel'](_0x169ebe,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11b764=this['editor'],_0x4bc6bb=_0x11b764['locale'];_0x11b764['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13b188=>{if('formatBlock'!=_0x13b188['type'])return;const {data:_0x5a2ed8}=_0x13b188;return _0x5a2ed8&&'paragraph'==_0x5a2ed8['commandName']?{'type':'format','content':o(_0x4bc6bb,'*Change\x20to:*\x20%0',o(_0x4bc6bb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2be3f5,{showActiveMarker:_0x31322c=!0x0}={}){return(_0x7e675f,_0xc1542,_0x4f0b23)=>{const _0x219133=_0x2be3f5['plugins']['get']('TrackChangesEditing'),_0x2250f3=_0xc1542['markerRange']['start'],_0x547939=_0xc1542['markerRange']['end'],_0x4858bf=_0x2be3f5['model']['schema'];if(!_0x2250f3['isTouching'](_0x547939)||!_0x2250f3['nodeAfter'])return;const _0x20dd9d=_0x2250f3['nodeAfter'];if(_0x4858bf['isBlock'](_0x20dd9d)&&!_0x4858bf['isLimit'](_0x20dd9d)&&_0x4858bf['checkChild'](_0x20dd9d,'$text')){if(!_0x4f0b23['consumable']['consume'](_0xc1542['markerRange'],_0x7e675f['name']))return;const _0x3134dc=_0x4f0b23['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3c7bf9=_0x4f0b23['mapper']['toViewPosition'](_0x547939);_0x31322c&&_0x219133['activeMarkers']['includes'](_0xc1542['markerName'])&&_0x4f0b23['writer']['addClass']('ck-suggestion-marker--active',_0x3134dc),_0x4f0b23['writer']['insert'](_0x3c7bf9,_0x3134dc),_0x4f0b23['mapper']['bindElementToMarker'](_0x3134dc,_0xc1542['markerName']);}};}class pt extends _0x17f7ef{['afterInit'](){const _0x663ca4=this['editor'];if(!_0x663ca4['plugins']['has']('RemoveFormatEditing'))return;_0x663ca4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50c227=this['editor'];_0x50c227['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3270c4=>{if('formatBlock'!=_0x3270c4['type']&&'formatInline'!=_0x3270c4['type'])return;const {data:_0x5b09a8}=_0x3270c4;return _0x5b09a8&&'removeFormat'==_0x5b09a8['commandName']?{'type':'format','content':o(_0x50c227['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x17f7ef{['afterInit'](){const _0x5db8eb=this['editor'];if(!_0x5db8eb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x38a39b=_0x5db8eb['plugins']['get']('TrackChangesEditing');_0x38a39b['enableCommand']('goToPreviousRestrictedEditingException'),_0x38a39b['enableCommand']('goToNextRestrictedEditingException');const _0x160ead=_0x5db8eb['plugins']['get']('RestrictedEditingModeEditing');_0x160ead['enableCommand']('trackChanges'),_0x160ead['enableCommand']('acceptSuggestion'),_0x160ead['enableCommand']('discardSuggestion'),_0x160ead['enableCommand']('acceptAllSuggestions'),_0x160ead['enableCommand']('discardAllSuggestions'),_0x160ead['enableCommand']('acceptSelectedSuggestions'),_0x160ead['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x17f7ef{static get['requires'](){return[_0x322827];}['init'](){const _0x712048=this['editor'],_0x2ebd2a=_0x712048['plugins']['get']('TrackChangesEditing');_0x2ebd2a['enableCommand']('shiftEnter'),_0x712048['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x712048),{'priority':'high'}),_0x712048['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x712048),{'priority':'high'}),_0x712048['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52eafa,_0x5df70f,_0x1f81a7)=>{_0x1f81a7['options']['showSuggestionHighlights']&&de(_0x712048,{'showActiveMarker':!0x1})(_0x52eafa,_0x5df70f,_0x1f81a7);}),_0x2ebd2a['descriptionFactory']['registerElementLabel']('softBreak',_0x8c11ac=>o(_0x712048['locale'],'ELEMENT_LINE_BREAK',_0x8c11ac));}}function de(_0x37d561,{showActiveMarker:_0x2e7e06=!0x0}={}){return(_0x28e367,_0x2ffd79,_0x43fe06)=>{const _0x5cc806=_0x37d561['plugins']['get']('TrackChangesEditing');if(!_0x43fe06['consumable']['test'](_0x2ffd79['markerRange'],_0x28e367['name']))return;const _0x59173e=_0x37d561['model'];for(const _0x276955 of _0x2ffd79['markerRange']['getItems']()){if(!_0x276955['is']('element','softBreak'))continue;const _0xfcc26d='deletion'==_0x2ffd79['markerName']['split'](':')[0x1]?'merge':'split',_0x206706=_0x43fe06['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xfcc26d}),_0x52381c=_0x43fe06['mapper']['toViewPosition'](_0x59173e['createPositionBefore'](_0x276955));_0x2e7e06&&_0x5cc806['activeMarkers']['includes'](_0x2ffd79['markerName'])&&_0x43fe06['writer']['addClass']('ck-suggestion-marker--active',_0x206706),_0x43fe06['writer']['insert'](_0x52381c,_0x206706),_0x43fe06['mapper']['bindElementToMarker'](_0x206706,_0x2ffd79['markerName']);}};}class wt extends _0x17f7ef{['afterInit'](){const _0x449cc5=this['editor'],_0x79b847=_0x449cc5['model'],_0x26349d=_0x449cc5['locale'];if(!_0x449cc5['plugins']['has']('StandardEditingModeEditing'))return;const _0x20bfd7=_0x449cc5['plugins']['get']('TrackChangesEditing'),_0x2f91ad='restrictedEditingException',_0x21112c=_0x449cc5['commands']['get'](_0x2f91ad);_0x20bfd7['enableCommand'](_0x2f91ad,(_0x5bbeff,_0x2846c9={})=>{const _0x5d92d8=_0x79b847['document']['selection'];if(_0x5d92d8['isCollapsed'])return void _0x5bbeff(_0x2846c9);const _0x3b6d71=void 0x0!==_0x2846c9['forceValue']?_0x2846c9['forceValue']:!_0x21112c['value'];_0x79b847['change'](()=>{const _0x251aa6=Array['from'](_0x5d92d8['getRanges']());for(const _0xbc85c of _0x251aa6){const _0x4127da=_0x3b6d71?[_0xbc85c]:io(_0x2f91ad,_0xbc85c,_0x79b847);for(const _0x26288d of _0x4127da)_0x20bfd7['markInlineFormat'](_0x26288d,{'commandName':_0x2f91ad,'commandParams':[{'forceValue':_0x3b6d71}]});}});}),_0x20bfd7['descriptionFactory']['registerDescriptionCallback'](_0x3e638a=>{if('formatBlock'!=_0x3e638a['type']&&'formatInline'!=_0x3e638a['type'])return;const {data:_0x168bc3}=_0x3e638a;return _0x168bc3&&_0x168bc3['commandName']==_0x2f91ad?_0x168bc3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26349d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x26349d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x17f7ef{['afterInit'](){const _0x55fbae=this['editor'];if(!_0x55fbae['plugins']['has']('Style')||!_0x55fbae['plugins']['has']('DataSchema'))return;const _0x1dc09a=_0x55fbae['plugins']['get']('TrackChangesEditing'),_0x36f06d=_0x55fbae['locale'],_0x758e50=_0x55fbae['config']['get']('style')||{},_0x520df3=_0x55fbae['plugins']['get']('GeneralHtmlSupport'),_0x43b58a=_0x55fbae['plugins']['get']('StyleUtils')['normalizeConfig'](_0x55fbae['plugins']['get']('DataSchema'),_0x758e50['definitions']);_0x1dc09a['enableDefaultAttributesIntegration']('style');const _0x1cb63b=new Set();for(const _0x1446ff of _0x43b58a['block']){const _0x5a3e00=_0x520df3['getGhsAttributeNameForElement'](_0x1446ff['element']);_0x1cb63b['add'](_0x5a3e00);}const _0x16c8cb=new Set();for(const _0x13a136 of _0x43b58a['inline']){const _0x32128a=_0x520df3['getGhsAttributeNameForElement'](_0x13a136['element']);_0x16c8cb['add'](_0x32128a);for(const _0x1f5260 of _0x13a136['ghsAttributes'])_0x16c8cb['add'](_0x1f5260);}for(const _0x1cd825 of _0x1cb63b)_0x1dc09a['registerBlockAttribute'](_0x1cd825),_0x1dc09a['descriptionFactory']['registerAttributeLabel'](_0x1cd825,o(_0x36f06d,'FORMAT_STYLE'));for(const _0x3b77d3 of _0x16c8cb)_0x1dc09a['registerInlineAttribute'](_0x3b77d3),_0x1dc09a['descriptionFactory']['registerAttributeLabel'](_0x3b77d3,o(_0x36f06d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x498f54=this['editor'],_0x30b80b=_0x498f54['locale'];_0x498f54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb53f=>{if('formatBlock'!=_0x2eb53f['type']&&'formatInline'!=_0x2eb53f['type'])return;const {data:_0x44ab62}=_0x2eb53f;return _0x44ab62&&'style'===_0x44ab62['commandName']?_0x44ab62['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30b80b,'*Set\x20format:*\x20%0',_0x44ab62['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x30b80b,'*Remove\x20format:*\x20%0',_0x44ab62['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x17f7ef{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3f300f){super(_0x3f300f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1fd9df=this['editor'],_0x88b81=_0x1fd9df['model']['document']['selection'];if(!_0x1fd9df['plugins']['has']('TableEditing'))return;const _0x478cc8=_0x1fd9df['locale'],_0x70f5ba=_0x1fd9df['plugins']['get']('TrackChangesEditing'),_0x4c3aa3=_0x1fd9df['plugins']['get']('TableUtils');_0x70f5ba['descriptionFactory']['registerElementLabel']('table',_0x1af9b8=>o(_0x478cc8,'ELEMENT_TABLE',_0x1af9b8)),this['_setupColumnsRowsFixing'](),_0x70f5ba['enableCommand']('insertTable'),_0x70f5ba['enableCommand']('selectTableRow'),_0x70f5ba['enableCommand']('selectTableColumn');for(const _0x5bb78e of['insertTableRowAbove','insertTableRowBelow']){const _0x284b90=_0x1fd9df['commands']['get'](_0x5bb78e);_0x70f5ba['enableCommand'](_0x5bb78e,_0x489d78=>{_0x1fd9df['model']['change'](_0x23bdc5=>{_0x489d78();const _0xddb81b='above'===_0x284b90['order'],_0x4cbcb8=_0x4c3aa3['getSelectionAffectedTableCells'](_0x88b81),_0x5a67a0=_0x4c3aa3['getRowIndexes'](_0x4cbcb8),_0x55a50a=_0xddb81b?_0x5a67a0['first']-0x1:_0x5a67a0['last']+0x1,_0x4898ab=_0x4cbcb8[0x0]['findAncestor']('table'),_0x1cea72=_0x4c3aa3['createTableWalker'](_0x4898ab,{'startRow':_0x55a50a,'endRow':_0x55a50a}),_0x37408c=Array['from'](_0x1cea72)['map'](_0x4f1f98=>_0x23bdc5['createRangeOn'](_0x4f1f98['cell']));_0x70f5ba['markMultiRangeInsertion'](_0x37408c,'tableRow');});});}for(const _0x1b451a of['insertTableColumnLeft','insertTableColumnRight']){const _0x4384fe=_0x1fd9df['commands']['get'](_0x1b451a);_0x70f5ba['enableCommand'](_0x1b451a,_0x4acf75=>{_0x1fd9df['model']['change'](_0x1395d6=>{_0x4acf75();const _0x3371fd='left'===_0x4384fe['order'],_0x22c0d6=_0x4c3aa3['getSelectionAffectedTableCells'](_0x88b81),_0x291669=_0x4c3aa3['getColumnIndexes'](_0x22c0d6),_0x549afc=_0x3371fd?_0x291669['first']-0x1:_0x291669['last']+0x1,_0x5d0878=_0x22c0d6[0x0]['findAncestor']('table'),_0x1272fb=_0x4c3aa3['createTableWalker'](_0x5d0878,{'startRow':0x0,'column':_0x549afc,'includeAllSlots':!0x1}),_0x189338=Array['from'](_0x1272fb)['map'](_0x17c8a9=>_0x1395d6['createRangeOn'](_0x17c8a9['cell']));_0x70f5ba['markMultiRangeInsertion'](_0x189338,'tableColumn');});});}for(const _0x4b9c51 of['removeTableRow','removeTableColumn']){const _0x21210c=_0x4b9c51['substr'](0xb),_0x4592a3=_0x21210c['toLowerCase'](),_0xde103c=_0x4592a3['substr'](0x0,0x3)+'span',_0x276968='table'+_0x21210c,_0x15dfa9='min'+_0x21210c,_0x2cd036='max'+_0x21210c;_0x70f5ba['enableCommand'](_0x4b9c51,()=>{_0x1fd9df['model']['change'](_0x4110f4=>{const _0x600ca7=_0x4c3aa3['getSelectionAffectedTableCells'](_0x88b81),_0x22e7e3=_0x600ca7[0x0]['findAncestor']('table');let _0x1d6403;if('removeTableRow'==_0x4b9c51){const _0x52a92f=_0x4c3aa3['getRowIndexes'](_0x600ca7);_0x1d6403={'startRow':_0x52a92f['first'],'endRow':_0x52a92f['last'],'includeAllSlots':!0x0};}else{const _0x4c2151=_0x4c3aa3['getColumnIndexes'](_0x600ca7);_0x1d6403={'startColumn':_0x4c2151['first'],'endColumn':_0x4c2151['last'],'includeAllSlots':!0x0};}const _0x293db4=_0x4c3aa3['createTableWalker'](_0x22e7e3,_0x1d6403),_0x387e81=Array['from'](_0x293db4)['map'](({cell:_0x55ed7e})=>_0x55ed7e),_0x52029a=Ee(_0x387e81['filter'](_0x58d361=>_0x58d361['hasAttribute'](_0xde103c))),_0x6dcd04=Ee(_0x387e81['filter'](_0x5741af=>!_0x5741af['hasAttribute'](_0xde103c)))['map'](_0x3d27e6=>_0x4110f4['createRangeOn'](_0x3d27e6)),_0x6014c2=_0x70f5ba['markMultiRangeDeletion'](_0x6dcd04,_0x276968);if(_0x6014c2&&('tableRow'==_0x6014c2['subType']||'tableColumn'==_0x6014c2['subType'])){const _0x338d19=this['_getSuggestionCoords'](_0x6014c2);for(const _0x485bbb of _0x52029a){const _0x309b6b=_0x4110f4['createRangeOn'](_0x485bbb),_0x332113=_0x4c3aa3['getCellLocation'](_0x485bbb),_0xdecb5e=_0x485bbb['getAttribute'](_0xde103c)-0x1,_0x19ebde=_0x338d19[_0x15dfa9],_0x51ba07=_0x338d19[_0x2cd036];_0x19ebde<=_0x332113[_0x4592a3]&&_0x332113[_0x4592a3]+_0xdecb5e<=_0x51ba07&&_0x6014c2['addRange'](_0x309b6b);}}});});}function _0x58303f(_0xa61614){const _0x341f1d=Array['from'](_0x88b81['getRanges']())['map'](_0x5366f0=>_0x3939f1['fromRange'](_0x5366f0));_0x1fd9df['model']['change'](_0x2f8991=>{const _0x3a453e=_0x2f8991['batch'];_0xa61614=_0xa61614['filter'](_0x3dad0b=>'$graveyard'!=_0x3dad0b['root']['rootName']),_0x2f8991['setSelection'](_0xa61614),_0x1fd9df['commands']['get']('removeTableRow')['refresh'](),_0x1fd9df['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1fd9df['model']['enqueueChange'](()=>{_0x1fd9df['model']['enqueueChange'](_0x3a453e,_0x42cf09=>{const _0x2029e8=_0x341f1d['filter'](_0x14f9ac=>'$graveyard'!=_0x14f9ac['root']['rootName']);_0x2029e8['length']>0x0&&_0x42cf09['setSelection'](_0x2029e8);for(const _0xbabcdf of _0x341f1d)_0xbabcdf['detach']();});});});}function _0x40cc08(_0x3cf447){_0x1fd9df['model']['change'](_0x220949=>{const _0x2ca30d=Array['from'](_0x88b81['getRanges']())['map'](_0x1311e5=>_0x3939f1['fromRange'](_0x1311e5)),_0x13974b=[];for(const _0x425f2c of _0x3cf447)for(const _0x222e08 of _0x425f2c['getItems']({'shallow':!0x0}))_0x13974b['push'](_0x222e08);for(const _0x2ac835 of _0x13974b)'$graveyard'!=_0x2ac835['root']['rootName']&&(_0x220949['setSelection'](_0x220949['createPositionAt'](_0x2ac835,0x0)),_0x1fd9df['commands']['get']('removeTableColumn')['refresh'](),_0x1fd9df['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x30e0a0=_0x2ca30d['filter'](_0x4c6ae5=>'$graveyard'!=_0x4c6ae5['root']['rootName']);_0x30e0a0['length']>0x0&&_0x220949['setSelection'](_0x30e0a0);for(const _0x342217 of _0x2ca30d)_0x342217['detach']();});}function _0x2d66fa(_0x3630f2,_0x41d4b4){return _0x41d4b4['every'](_0x2f4fe7=>_0x3630f2['some'](_0x18ec9e=>_0x18ec9e['end']['isEqual'](_0x2f4fe7['start'])||_0x2f4fe7['end']['isEqual'](_0x18ec9e['start'])));}function _0x29f339(_0x289523,_0x350da1){return _0x289523['some'](_0x229be2=>_0x350da1['some'](_0x1b2e44=>_0x229be2['end']['isTouching'](_0x1b2e44['start'])));}_0x1fd9df['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18d622,_0x59cd32,_0x2ec8b7)=>{if(!_0x2ec8b7['options']['showSuggestionHighlights'])return;const _0xdeb942=_0x59cd32['item'];if(!_0xdeb942)return;const _0x290e83=_0x2ec8b7['mapper']['toViewElement'](_0xdeb942);function _0x11843f(_0x448daf){return Array['isArray'](_0x448daf)?_0x448daf:[_0x448daf];}_0x290e83&&'tableCell'===_0xdeb942['name']&&_0x3eb6fb(_0x290e83,_0x2ec8b7['writer'],(_0x5be5f8,_0x5eb511,_0xcf635)=>_0xcf635['addClass'](_0x11843f(_0x5eb511['classes']),_0x5be5f8),(_0x1f624,_0x4cd57c,_0xf8bb1b)=>_0xf8bb1b['removeClass'](_0x11843f(_0x4cd57c['classes']),_0x1f624));},{'priority':'highest'}),_0x70f5ba['descriptionFactory']['registerDescriptionCallback'](_0x452e33=>{if('insertion'!=_0x452e33['type']&&'deletion'!=_0x452e33['type'])return;const _0x3b53a8=_0x452e33['getContainedElement']();if(null!=_0x3b53a8&&_0x3b53a8['is']('element','table')){if('insertion'==_0x452e33['type']){const _0x37faea=_0x452e33['getItems']()['filter'](_0x29f3e4=>_0x29f3e4['is']('$textProxy'))['map'](_0x37595a=>_0x37595a['data']);if(_0x37faea['length'])return{'type':'insertion','content':o(_0x478cc8,'*Insert:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37faea['join']('\x20')+'\x22'))};}if('deletion'==_0x452e33['type']){const _0x4c0fe4=_0x452e33['getItems']()['filter'](_0x2a6f4e=>_0x2a6f4e['is']('$textProxy'))['map'](_0x4a85ad=>_0x4a85ad['data']);if(_0x4c0fe4['length'])return{'type':'deletion','content':o(_0x478cc8,'*Remove:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c0fe4['join']('\x20')+'\x22'))};}}}),_0x70f5ba['descriptionFactory']['registerDescriptionCallback'](_0x16bf81=>{if('tableRow'==_0x16bf81['subType']){const _0x55196b=_0x16bf81['getItems']()['filter'](_0x381d26=>_0x381d26['is']('$textProxy'))['map'](_0x2da7c6=>_0x2da7c6['data']),_0x407cfd=this['_getSuggestionCoords'](_0x16bf81),_0x5cdfed=_0x407cfd['maxRow']-_0x407cfd['minRow']+0x1;if('insertion'==_0x16bf81['type'])return _0x55196b['length']?{'type':'insertion','content':o(_0x478cc8,'*Insert:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cdfed,'\x22'+_0x55196b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x478cc8,'*Insert:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_ROW',_0x5cdfed))};if('deletion'==_0x16bf81['type'])return _0x55196b['length']?{'type':'deletion','content':o(_0x478cc8,'*Remove:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cdfed,'\x22'+_0x55196b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x478cc8,'*Remove:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_ROW',_0x5cdfed))};}if('tableColumn'==_0x16bf81['subType']){const _0x34510a=_0x16bf81['getItems']()['filter'](_0x44d50d=>_0x44d50d['is']('$textProxy'))['map'](_0xcac64c=>_0xcac64c['data']),_0x4d2fca=this['_getSuggestionCoords'](_0x16bf81),_0x187454=_0x4d2fca['maxColumn']-_0x4d2fca['minColumn']+0x1;if('insertion'==_0x16bf81['type'])return _0x34510a['length']?{'type':'insertion','content':o(_0x478cc8,'*Insert:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x187454,'\x22'+_0x34510a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x478cc8,'*Insert:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_COLUMN',_0x187454))};if('deletion'==_0x16bf81['type'])return _0x34510a['length']?{'type':'deletion','content':o(_0x478cc8,'*Remove:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x187454,'\x22'+_0x34510a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x478cc8,'*Remove:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_COLUMN',_0x187454))};}}),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x58303f),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x58303f),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x40cc08),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x40cc08),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2d66fa),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2d66fa),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x29f339),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x29f339);}['_acceptFormatSuggestionCallbackFactory'](){const _0x51a602=this['editor'],_0xfc4af4=_0x51a602['model']['document']['selection'];return(_0x366e0f,_0x362fde)=>{_0x51a602['model']['change'](_0x571872=>{const {commandName:_0x23302e,commandParams:_0x55f856}=_0x362fde;let _0x55e17a=_0x366e0f[0x0]['end']['nodeBefore'];_0x55f856&&_0x55f856[0x0]&&!0x1===_0x55f856[0x0]['forceValue']&&(_0x55e17a=_0x366e0f[0x0]['start']['nodeAfter']);const _0x4b0846=_0x571872['createRangeIn'](_0x55e17a);if('$graveyard'==_0x4b0846['root']['rootName'])return;const _0x373f41=Array['from'](_0xfc4af4['getRanges']())['map'](_0x59eae3=>_0x3939f1['fromRange'](_0x59eae3));_0x571872['setSelection'](_0x4b0846),_0x51a602['commands']['get'](_0x23302e)['refresh'](),_0x55f856['push']({'forceDefaultExecution':!0x0}),_0x51a602['execute'](_0x23302e,..._0x55f856);const _0x38442d=_0x373f41['filter'](_0x3927a4=>'$graveyard'!=_0x3927a4['root']['rootName']);_0x38442d['length']>0x0&&_0x571872['setSelection'](_0x38442d);for(const _0xb7827f of _0x373f41)_0xb7827f['detach']();});};}['_getCoordsForCells'](_0x2e1607){const _0x2dcd54=this['editor']['plugins']['get']('TableUtils');let _0x1851b5=Number['MAX_SAFE_INTEGER'],_0x574bda=Number['MIN_SAFE_INTEGER'],_0x43df13=Number['MAX_SAFE_INTEGER'],_0x1db2e3=Number['MIN_SAFE_INTEGER'];for(const _0x3bf4f1 of _0x2e1607){if('$graveyard'==_0x3bf4f1['root']['rootName'])continue;const {row:_0x465c50,column:_0x27ea19}=_0x2dcd54['getCellLocation'](_0x3bf4f1),_0x1d983e=_0x3bf4f1['hasAttribute']('rowspan')?_0x3bf4f1['getAttribute']('rowspan')-0x1:0x0,_0x4db44e=_0x3bf4f1['hasAttribute']('colspan')?_0x3bf4f1['getAttribute']('colspan')-0x1:0x0;_0x1851b5=_0x465c50<_0x1851b5?_0x465c50:_0x1851b5,_0x574bda=_0x465c50+_0x1d983e>_0x574bda?_0x465c50+_0x1d983e:_0x574bda,_0x43df13=_0x27ea19<_0x43df13?_0x27ea19:_0x43df13,_0x1db2e3=_0x27ea19+_0x4db44e>_0x1db2e3?_0x27ea19+_0x4db44e:_0x1db2e3;}return{'minRow':_0x1851b5,'maxRow':_0x574bda,'minColumn':_0x43df13,'maxColumn':_0x1db2e3};}['_setupColumnsRowsFixing'](){const _0x5067d8=this['editor'],_0x2b5ab4=_0x5067d8['plugins']['get']('TrackChangesEditing'),_0x44d587=_0x5067d8['plugins']['get']('TableUtils');_0x5067d8['model']['document']['on']('change:data',()=>{const _0x124aab=Array['from'](_0x5067d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44f67d,data:_0x1eb8c8}of _0x124aab){const {group:_0x53b7ab,id:_0x43290d,subType:_0x5783cc}=_0x2b5ab4['_splitMarkerName'](_0x44f67d);if('suggestion'!=_0x53b7ab)continue;if(null!=_0x1eb8c8['oldRange'])continue;const _0x3a0fa6=_0x2b5ab4['getSuggestion'](_0x43290d);this['_tablePostFixingSubtypes']['includes'](_0x5783cc)&&this['_tableSuggestions']['add'](_0x3a0fa6);}},{'priority':'low'});const _0x4c05e5=(_0x40f067,_0x43bd93)=>{let _0x1934a0=!0x1;const _0x412260=_0x43bd93['createRangeOn'](_0x40f067),_0x26226f=_0x40f067['findAncestor']('table'),_0x4e6794=_0x44d587['getCellLocation'](_0x40f067);for(const _0x4392b4 of this['_tableSuggestions']){const _0x389611=_0x4392b4['subType'],_0x442686=_0x389611['startsWith']('tablePaste'),_0x515845=_0x389611['substr'](_0x442686?0xa:0x5),_0x3792fe=_0x515845['toLowerCase'](),_0xd118cc=_0x3792fe['substr'](0x0,0x3)+'span',_0x15b708='min'+_0x515845,_0x20a578='max'+_0x515845;if(!_0x4392b4['isInContent'])continue;if(_0x26226f!=_0x4392b4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4392b4['isIntersectingWithRange'](_0x412260))continue;const _0x1ee60d=_0x40f067['hasAttribute'](_0xd118cc)?_0x40f067['getAttribute'](_0xd118cc)-0x1:0x0,_0x3712cb=this['_getSuggestionCoords'](_0x4392b4),_0x377c82=_0x3712cb[_0x15b708],_0x25e611=_0x3712cb[_0x20a578];_0x377c82<=_0x4e6794[_0x3792fe]&&_0x4e6794[_0x3792fe]+_0x1ee60d<=_0x25e611&&(_0x4392b4['addRange'](_0x412260),_0x1934a0=!0x0);}return _0x1934a0;};_0x5067d8['model']['document']['registerPostFixer'](_0xf3e775=>{let _0xa60a44=!0x1;for(const _0x6700ed of _0x5067d8['model']['document']['differ']['getChanges']())if('insert'==_0x6700ed['type']){if('tableRow'==_0x6700ed['name']){for(const _0x4d5ef9 of _0x6700ed['position']['nodeAfter']['getChildren']())_0xa60a44=_0xa60a44||_0x4c05e5(_0x4d5ef9,_0xf3e775);}else'tableCell'==_0x6700ed['name']&&(_0xa60a44=_0xa60a44||_0x4c05e5(_0x6700ed['position']['nodeAfter'],_0xf3e775));}return _0xa60a44;});}['_getSuggestionCoords'](_0x408b93){return this['_getCoordsForCells'](_0x408b93['getRanges']()['map'](_0x390614=>_0x390614['start']['nodeAfter']));}}function Ee(_0x572d86){return Array['from'](new Set(_0x572d86)['values']());}class St extends _0x17f7ef{static get['requires'](){return[jt];}['afterInit'](){const _0x2a2965=this['editor'],_0x1a6d5c=_0x2a2965['model']['document']['selection'],_0x388af9=_0x2a2965['locale'];if(!_0x2a2965['plugins']['has']('TableEditing'))return;const _0x56ffdc=_0x2a2965['plugins']['get']('TrackChangesEditing'),_0x23aa80=_0x2a2965['plugins']['get']('TableUtils'),_0x4c75ad=_0x2a2965['plugins']['get'](jt);_0x4c75ad['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x56ffdc['enableCommand']('mergeTableCells',()=>{const _0x3f78d2=_0x23aa80['getSelectionAffectedTableCells'](_0x2a2965['model']['document']['selection']);_0x2a2965['model']['change'](()=>{_0x56ffdc['markMultiRangeBlockFormat'](_0x3f78d2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2a2965['commands']['get']('mergeTableCells')['on']('execute',(_0x12c948,_0x18ccc6)=>{_0x2a2965['commands']['get']('trackChanges')['value']&&(_0x18ccc6['length']>0x0&&_0x18ccc6[_0x18ccc6['length']-0x1]&&_0x18ccc6[_0x18ccc6['length']-0x1]['forceDefaultExecution']||_0x56ffdc['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x12c948['stop']());},{'priority':'highest'});for(const _0x4a8e28 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4f63d5=_0x2a2965['commands']['get'](_0x4a8e28);_0x56ffdc['enableCommand'](_0x4a8e28,()=>{const _0x4a8b91=_0x2a2965['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e6ae9=>_0x3e6ae9['is']('element','tableCell')),_0x3f5b02=_0x4f63d5['value'];_0x2a2965['model']['change'](()=>{_0x56ffdc['markMultiRangeBlockFormat']([_0x4a8b91,_0x3f5b02],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1f6d4f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2b3644=_0x2a2965['commands']['get'](_0x1f6d4f);_0x56ffdc['enableCommand'](_0x1f6d4f,()=>{const _0x40d61c=_0x23aa80['getSelectionAffectedTableCells'](_0x2a2965['model']['document']['selection'])[0x0],_0x306696=_0x40d61c['findAncestor']('table'),{column:_0x40c1ff,row:_0x719a76}=_0x23aa80['getCellLocation'](_0x40d61c);let _0x2f98b1=[];if('horizontally'==_0x2b3644['direction']){const _0x1ec7dd=_0x23aa80['createTableWalker'](_0x306696,{'startRow':_0x719a76,'endRow':_0x719a76,'includeAllSlots':!0x0});_0x2f98b1=Array['from'](_0x1ec7dd)['map'](_0x17a36e=>_0x17a36e['cell']);}else{const _0xdd7d2c=_0x23aa80['createTableWalker'](_0x306696,{'column':_0x40c1ff,'includeAllSlots':!0x0});_0x2f98b1=Array['from'](_0xdd7d2c)['map'](_0x519866=>_0x519866['cell']);}_0x2a2965['model']['change'](_0x2bf8b5=>{_0x56ffdc['markBlockFormat'](_0x2bf8b5['createRangeOn'](_0x40d61c),{'commandName':_0x1f6d4f,'commandParams':[]},_0x2f98b1,_0x1f6d4f);});});}_0x56ffdc['descriptionFactory']['registerDescriptionCallback'](_0x1a0d5a=>{if('formatBlock'!=_0x1a0d5a['type']&&'formatInline'!=_0x1a0d5a['type'])return;const {data:_0x2e5797}=_0x1a0d5a;return _0x2e5797&&'mergeTableCells'==_0x2e5797['commandName']?{'type':'format','content':o(_0x388af9,'*Merge\x20cells*')}:void 0x0;}),_0x56ffdc['descriptionFactory']['registerDescriptionCallback'](_0x196556=>{if('formatBlock'!=_0x196556['type']&&'formatInline'!=_0x196556['type'])return;const {data:_0x1b5f94}=_0x196556;return _0x1b5f94?'splitTableCellVertically'==_0x1b5f94['commandName']?{'type':'format','content':o(_0x388af9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1b5f94['commandName']?{'type':'format','content':o(_0x388af9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5bc5bf=_0x4c75ad['_acceptFormatSuggestionCallbackFactory']();for(const _0x5274ec of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x56ffdc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5274ec,'accept',_0x5bc5bf);for(const _0x3097a5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x56ffdc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3097a5,'accept',_0x5bc5bf);_0x56ffdc['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x55c181=>{_0x2a2965['model']['change'](_0x9842a2=>{const _0x308146=Array['from'](_0x1a6d5c['getRanges']())['map'](_0x4d6ae5=>_0x3939f1['fromRange'](_0x4d6ae5));_0x9842a2['setSelection'](_0x55c181),_0x2a2965['commands']['get']('mergeTableCells')['refresh'](),_0x2a2965['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x43b56e=_0x308146['filter'](_0x206c4c=>'$graveyard'!=_0x206c4c['root']['rootName']);_0x43b56e['length']>0x0&&_0x9842a2['setSelection'](_0x43b56e);for(const _0x2fbb16 of _0x308146)_0x2fbb16['detach']();});});for(const _0x8929b0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x42f831=_0x2a2965['commands']['get'](_0x8929b0);_0x42f831['on']('set:isEnabled',(_0xb6609,_0x55c34f,_0x150dde)=>{if(_0x150dde){const _0x187aa7=_0x2a2965['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x505f8b=>_0x505f8b['is']('element','tableCell'));this['_areMergableCells'](_0x42f831['value'],_0x187aa7)||(_0xb6609['return']=!0x1,_0xb6609['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x19b261=this['editor']['commands']['get']('mergeTableCells'),_0x46fba9=this['editor']['plugins']['get']('TableUtils');if(!_0x19b261['isEnabled'])return!0x1;const _0xfcdda2=_0x46fba9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x353239 of _0xfcdda2)for(const _0x5109d6 of _0xfcdda2)if(_0x353239!=_0x5109d6&&!this['_areMergableCells'](_0x353239,_0x5109d6))return!0x1;return!0x0;}['_areMergableCells'](_0x149088,_0x393bb5){const _0x2af94c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13993b=this['editor']['model']['createRangeOn'](_0x149088),_0x2a1c02=this['editor']['model']['createRangeOn'](_0x393bb5),_0xecaaa8=new Set(),_0x35610c=new Set();for(const _0x13809f of _0x2af94c['getSuggestions']())if(('insertion'==_0x13809f['type']||'deletion'==_0x13809f['type']||'mergeTableCells'==_0x13809f['subType'])&&_0x13809f['isInContent']){for(const _0x5799d9 of _0x13809f['getRanges']())_0x5799d9['containsRange'](_0x13993b,!0x0)&&_0xecaaa8['add'](_0x13809f['type']+':'+_0x13809f['author']['id']),_0x5799d9['containsRange'](_0x2a1c02,!0x0)&&_0x35610c['add'](_0x13809f['type']+':'+_0x13809f['author']['id']);}if(_0xecaaa8['size']!=_0x35610c['size'])return!0x1;for(const _0x844d64 of _0xecaaa8)if(!_0x35610c['has'](_0x844d64))return!0x1;return!0x0;}}class At extends _0x17f7ef{static get['requires'](){return[jt];}['afterInit'](){const _0x283205=this['editor'];if(!_0x283205['plugins']['has']('TableEditing'))return;const _0x4c0a75=_0x283205['locale'],_0x31a883=_0x283205['plugins']['get']('TrackChangesEditing');_0x31a883['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x31a883['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x31a883['registerBlockAttribute']('headingRows'),_0x31a883['registerBlockAttribute']('headingColumns'),_0x31a883['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4c0a75,'FORMAT_HEADER_ROW')),_0x31a883['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4c0a75,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e9e71=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47f7cd=this['editor']['plugins']['get']('TableUtils'),_0x5d48b9=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x108521({showActiveMarker:_0x4ff6b8=!0x0,setDataAttribute:_0x1d27ad=!0x0}={}){return(_0x7b90b0,_0x3c6136,_0x30765c)=>{const {type:_0x36b33e,id:_0x517add}=_0x4e9e71['_splitMarkerName'](_0x3c6136['markerName']),_0xd3d60d=_0x4e9e71['getSuggestion'](_0x517add),_0x57f7f0=_0xd3d60d['data'];if('formatBlock'!=_0xd3d60d['type']||!_0x57f7f0||'setTableColumnHeader'!=_0x57f7f0['commandName'])return;if(_0x3c6136['item'])return void _0x7b90b0['stop']();if(!_0x30765c['consumable']['consume'](_0x3c6136['markerRange'],_0x7b90b0['name']))return;const _0x56e30f=_0x3c6136['markerRange']['start']['nodeAfter'],_0x2ed7c3=_0x3c6136['markerRange']['end']['nodeBefore'],_0x1dcc16=_0x56e30f['parent']['parent'],{column:_0x364c3f}=_0x47f7cd['getCellLocation'](_0x56e30f),{column:_0x234695}=_0x47f7cd['getCellLocation'](_0x2ed7c3);for(let _0x1751f6=_0x364c3f;_0x1751f6<=_0x234695;_0x1751f6++){const _0x48cd8f=_0x47f7cd['createTableWalker'](_0x1dcc16,{'column':_0x1751f6,'includeAllSlots':!0x1});for(const _0xeeb4ab of _0x48cd8f){const _0x4b91b3=_0xeeb4ab['cell'],_0x40d2e5=_0x30765c['mapper']['toViewElement'](_0x4b91b3);_0x30765c['writer']['addClass']('ck-suggestion-marker-'+_0x36b33e,_0x40d2e5),_0x1d27ad&&_0x30765c['writer']['setAttribute']('data-suggestion',_0x517add,_0x40d2e5),_0x30765c['mapper']['bindElementToMarker'](_0x40d2e5,_0x3c6136['markerName']),_0x4ff6b8&&(_0x4e9e71['activeMarkers']['includes'](_0x3c6136['markerName'])?_0x30765c['writer']['addClass']('ck-suggestion-marker--active',_0x40d2e5):_0x30765c['writer']['removeClass']('ck-suggestion-marker--active',_0x40d2e5));}}};}_0x4e9e71['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5d48b9),_0x4e9e71['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5d48b9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x108521(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xba55f0,_0xda8dcf,_0x25590b)=>{_0x25590b['options']['showSuggestionHighlights']&&_0x108521({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xba55f0,_0xda8dcf,_0x25590b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x40cbbf,_0x34d9af,_0x208256)=>{const {type:_0xbcf005,id:_0x20d7dd}=_0x4e9e71['_splitMarkerName'](_0x34d9af['markerName']),_0x4122ed=_0x4e9e71['getSuggestion'](_0x20d7dd),_0xc9c0b3=_0x4122ed['data'];if('formatBlock'!=_0x4122ed['type']||!_0xc9c0b3||'setTableColumnHeader'!=_0xc9c0b3['commandName'])return;const _0x48d1dd=_0x208256['mapper']['markerNameToElements'](_0x34d9af['markerName']);if(_0x48d1dd){for(const _0x30dd6e of _0x48d1dd)_0x208256['writer']['removeClass']('ck-suggestion-marker-'+_0xbcf005,_0x30dd6e),_0x208256['writer']['removeClass']('ck-suggestion-marker--active',_0x30dd6e),_0x208256['writer']['removeAttribute']('data-suggestion',_0x30dd6e),_0x208256['mapper']['unbindElementFromMarkerName'](_0x30dd6e,_0x34d9af['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31ebfa=this['editor'],_0x33a245=_0x31ebfa['locale'];function _0x12d17c(_0x3ae2b9){return{'type':'format','content':o(_0x33a245,'*Format:*\x20%0',_0x3ae2b9)};}_0x31ebfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e4989=>{if('formatBlock'!=_0x2e4989['type'])return;const {data:_0xf131a5}=_0x2e4989;if(_0xf131a5){if('setTableRowHeader'==_0xf131a5['commandName']){const _0x2385b3=_0xf131a5['commandParams'][0x0]['forceValue'];return _0x12d17c(o(_0x33a245,_0x2385b3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xf131a5['commandName']){const _0xd04575=_0xf131a5['commandParams'][0x0]['forceValue'];return _0x12d17c(o(_0x33a245,_0xd04575?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4dc7b9=>[_0x4dc7b9,null]));class It extends _0x17f7ef{static get['requires'](){return[jt];}['afterInit'](){const _0x581d35=this['editor'];if(!_0x581d35['plugins']['has']('TableClipboard'))return;const _0x196f6d=_0x581d35['plugins']['get']('TrackChangesEditing'),_0x46b880=_0x581d35['plugins']['get']('TableUtils'),_0x5584a4=_0x581d35['plugins']['get'](jt),_0x53cfdc=_0x581d35['plugins']['get']('TableClipboard');_0x5584a4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x581d35['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x581d35['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x572d4d=null;_0x581d35['model']['on']('insertContent',(_0xb414cf,_0xb3c6b9)=>{const [_0x5d7ca2,_0x89f055]=_0xb3c6b9,_0x88728d=_0xb3c6b9[_0xb3c6b9['length']-0x1];_0x88728d&&_0x88728d['forceDefaultExecution']||_0x196f6d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4450d2,_0x414545,_0x2b3782,_0x533ffc,_0x146d62){if(_0x414545&&!_0x414545['is']('documentSelection'))return!0x1;const _0x30d463=_0x146d62['getTableIfOnlyTableInContent'](_0x4450d2,_0x2b3782);if(!_0x30d463||!he(_0x30d463,void 0x0,_0x533ffc))return!0x1;const _0x359f1f=_0x533ffc['getSelectionAffectedTableCells'](_0x2b3782['document']['selection']);if(!_0x359f1f['length'])return!0x1;const _0xacdd3=_0x359f1f[0x0]['findAncestor']('table'),_0x2edcdc=_0x533ffc['getRowIndexes'](_0x359f1f),_0x6c985a=_0x533ffc['getColumnIndexes'](_0x359f1f),_0xd80f03={'startRow':_0x2edcdc['first'],'endRow':_0x2edcdc['last'],'startColumn':_0x6c985a['first'],'endColumn':_0x6c985a['last']};return 0x1==_0x359f1f['length']&&(_0xd80f03['endRow']+=_0x533ffc['getRows'](_0x30d463)-0x1,_0xd80f03['endColumn']+=_0x533ffc['getColumns'](_0x30d463)-0x1),he(_0xacdd3,_0xd80f03,_0x533ffc);}(_0x5d7ca2,_0x89f055,_0x581d35['model'],_0x46b880,_0x53cfdc)&&(_0xb414cf['stop'](),_0x572d4d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x581d35['model']['change'](()=>{_0x581d35['model']['insertContent'](_0xb3c6b9[0x0],_0xb3c6b9[0x1],_0xb3c6b9[0x2],{'forceDefaultExecution':!0x0});const _0x366aaa=_0x5e29c1(),{rowInsertionRanges:_0x42ce79,columnInsertionRanges:_0x58f6b6,insertionRanges:_0x528153,deletionRanges:_0x33b2cf,cells:_0x30f22e}=_0x572d4d;_0x42ce79['length']&&_0x196f6d['markMultiRangeInsertion'](_0x42ce79,'tablePasteRow',{'tablePasteChainId':_0x366aaa}),_0x58f6b6['length']&&_0x196f6d['markMultiRangeInsertion'](_0x58f6b6,'tablePasteColumn',{'tablePasteChainId':_0x366aaa}),_0x528153['length']&&(_0x196f6d['markMultiRangeInsertion'](_0x528153,'tablePaste',{'tablePasteChainId':_0x366aaa,'skipNestingCheck':!0x0}),_0x528153['forEach'](_0x54452e=>_0x54452e['detach']?.())),_0x33b2cf['length']&&(_0x196f6d['markMultiRangeDeletion'](_0x33b2cf,'tablePaste',{'tablePasteChainId':_0x366aaa,'skipNestingCheck':!0x0}),_0x33b2cf['forEach'](_0x39735f=>_0x39735f['detach']?.()));const _0xc2d39f=_0x196f6d['markMultiRangeBlockFormat'](_0x30f22e['map'](({element:_0x4665bc})=>_0x4665bc),{'formatGroupId':_0x5e29c1()},[],'tablePasteCell',{'tablePasteChainId':_0x366aaa});if(_0xc2d39f){const _0x558f6d=_0xc2d39f['getMarkers'](),_0x2f2344=[];for(const {element:_0x3178c3,attributes:_0x42f848}of _0x30f22e){if(!_0x42f848)continue;const _0x3a6499=_0x581d35['model']['createRangeOn'](_0x3178c3),_0x1913df=_0x558f6d['find'](_0x120c95=>_0x120c95['getRange']()['isEqual'](_0x3a6499));_0x1913df&&_0x2f2344['push']([_0x1913df['name'],_0x42f848]);}_0x2f2344['length']&&_0xc2d39f['setAttribute']('markerAttributes',Object['fromEntries'](_0x2f2344));}_0x572d4d=null;}));},{'priority':_0x32be84['high']+0xa}),_0x581d35['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3aa9ab,_0x2b92ed)=>{const [_0x1679ad,_0x494499,,_0x186aa5]=_0x2b92ed;if(!_0x572d4d)return;_0x3aa9ab['stop']();const _0xbe4132=_0x1679ad['cell'],_0x245c29=_0x494499,_0x923e7f=Pe(_0xbe4132),_0x37c0a8=Pe(_0x245c29);_0x3aa9ab['return']=_0xbe4132;let _0x37b65c=null,_0xf5b10f=null;if(_0x37c0a8||_0x923e7f){if(_0x923e7f&&!_0x37c0a8){_0x186aa5['remove'](_0xbe4132['getChild'](0x0));for(const _0x3b3454 of Array['from'](_0x245c29['getChildren']()))_0x186aa5['insert'](_0x3b3454,_0xbe4132,'end');const _0x5e74ad=_0x572d4d['rowInsertionIndexes']['includes'](_0x1679ad['row']),_0x1ccaec=_0x572d4d['columnInsertionIndexes']['includes'](_0x1679ad['column']);_0x5e74ad||_0x1ccaec||(_0x37b65c=_0x3939f1['fromRange'](_0x186aa5['createRangeIn'](_0xbe4132)));}else _0x37c0a8&&!_0x923e7f&&(_0xf5b10f=_0x186aa5['createRangeIn'](_0xbe4132));}else{const _0x502c60=_0x186aa5['createElement']('tableCellSuggestion'),_0x41a2b5=_0x186aa5['createElement']('tableCellSuggestion');_0x186aa5['wrap'](_0x186aa5['createRangeIn'](_0xbe4132),_0x41a2b5),_0x186aa5['insert'](_0x502c60,_0xbe4132,0x0);for(const _0xde0c7 of Array['from'](_0x245c29['getChildren']()))_0x186aa5['insert'](_0xde0c7,_0x502c60,'end');_0x37b65c=_0x3939f1['fromRange'](_0x186aa5['createRangeOn'](_0x502c60)),_0xf5b10f=_0x3939f1['fromRange'](_0x186aa5['createRangeOn'](_0x41a2b5));}const _0x118325=Array['from'](_0x245c29['getAttributes']())['filter'](([_0x2ddd6a])=>ge['includes'](_0x2ddd6a));_0x572d4d['cells']['push']({'element':_0xbe4132,'attributes':_0x118325['length']?Object['fromEntries'](_0x118325):null}),_0x37b65c&&_0x572d4d['insertionRanges']['push'](_0x37b65c),_0xf5b10f&&_0x572d4d['deletionRanges']['push'](_0xf5b10f);},{'priority':'high'}),_0x46b880['on']('insertColumns',(_0x39426e,_0x264328)=>{const [_0x101437,_0x5c2381={}]=_0x264328;if(!_0x572d4d)return;const _0x44ff0e=_0x5c2381['at']||0x0,_0x446530=_0x5c2381['columns']||0x1;_0x572d4d['columnInsertionIndexes']=new Array(_0x446530)['fill'](_0x44ff0e)['map']((_0x3f23ce,_0x422605)=>_0x3f23ce+_0x422605);for(const {cell:_0x14e16e}of _0x46b880['createTableWalker'](_0x101437,{'startColumn':_0x44ff0e,'endColumn':_0x44ff0e+_0x446530-0x1}))_0x572d4d['columnInsertionRanges']['push'](_0x581d35['model']['createRangeOn'](_0x14e16e));},{'priority':'low'}),_0x46b880['on']('insertRows',(_0x1d2af4,_0x3101e4)=>{const [_0x236271,_0x28b64e={}]=_0x3101e4;if(!_0x572d4d)return;const _0x43df98=_0x28b64e['at']||0x0,_0x1aedfa=_0x28b64e['rows']||0x1;_0x572d4d['rowInsertionIndexes']=new Array(_0x1aedfa)['fill'](_0x43df98)['map']((_0x546d82,_0x39d29f)=>_0x546d82+_0x39d29f);for(const {cell:_0x14d69c}of _0x46b880['createTableWalker'](_0x236271,{'startRow':_0x43df98,'endRow':_0x43df98+_0x1aedfa-0x1}))_0x572d4d['rowInsertionRanges']['push'](_0x581d35['model']['createRangeOn'](_0x14d69c));},{'priority':'low'}),_0x196f6d['descriptionFactory']['registerDescriptionCallback'](_0x3582ae=>{if(_0x3582ae['subType']&&_0x3582ae['subType']['startsWith']('tablePaste'))return _0x3582ae['previous']?{}:{'type':'insertion','content':o(_0x581d35['locale'],'*Replace\x20table\x20cells*')};});const _0x199130=()=>!0x1;for(const _0x4350d9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x196f6d['_suggestionFactory']['registerCustomCallback']('insertion',_0x4350d9,'join',_0x199130),_0x196f6d['_suggestionFactory']['registerCustomCallback']('deletion',_0x4350d9,'join',_0x199130),_0x196f6d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4350d9,'join',_0x199130);_0x196f6d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x199130),_0x196f6d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5e281a,_0x3c0d75,_0x341785)=>{const _0x4f9427=_0x5e281a['map'](_0x7be763=>_0x7be763['getContainedElement']())['filter'](_0x30fa39=>_0x30fa39),_0x53a10f=new Map(_0x4f9427['map'](_0x18e8f1=>[_0x18e8f1,null]));if(_0x572d4d){for(const {element:_0x262d9e,attributes:_0x4e777c}of _0x572d4d['cells'])_0x4e777c&&_0x53a10f['set'](_0x262d9e,_0x4e777c);}else{if(_0x341785&&_0x341785['markerAttributes'])for(const [_0x1bbe74,_0x10ae62]of Object['entries'](_0x341785['markerAttributes'])){const _0x1fa85d=_0x581d35['model']['markers']['get'](_0x1bbe74),_0x520a04=_0x1fa85d?_0x1fa85d['getRange']()['getContainedElement']():null;_0x520a04&&_0x53a10f['set'](_0x520a04,_0x10ae62);}}_0x581d35['model']['change'](_0xa445bc=>{for(const [_0x20abb3,_0x573990]of _0x53a10f)_0xa445bc['setAttributes']({...Ce,..._0x573990},_0x20abb3);});});const _0x3c2df6=(_0x8c6914,_0x2d7555)=>{_0x196f6d['_suggestionFactory']['registerCustomCallback'](_0x8c6914,'tablePaste',_0x2d7555,(_0xc2c127,_0x2e329b,_0x18ded1)=>{_0x581d35['model']['change'](_0x541a5d=>{const _0x504841=[];for(const _0x3d573c of _0xc2c127){const _0x48c363=_0x3d573c['start']['nodeAfter'];_0x48c363['is']('element','tableCellSuggestion')&&_0x504841['push'](_0x48c363);}_0x196f6d['_suggestionFactory']['getSuggestionCallback'](_0x8c6914,null,_0x2d7555)(_0xc2c127,_0x2e329b,_0x18ded1);for(const _0x45f4 of _0x504841)'$graveyard'!=_0x45f4['root']['rootName']&&_0x541a5d['unwrap'](_0x45f4);});});};_0x3c2df6('insertion','accept'),_0x3c2df6('insertion','discard'),_0x3c2df6('deletion','accept'),_0x3c2df6('deletion','discard'),_0x196f6d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x36f1db=>{const _0x361649=_0x36f1db['map'](_0x3145d7=>_0x3145d7['getContainedElement']()),_0x15dde5=_0x361649[0x0]['findAncestor']('table'),{minRow:_0x2c3def,maxRow:_0x1df205}=_0x5584a4['_getCoordsForCells'](_0x361649);_0x46b880['removeRows'](_0x15dde5,{'at':_0x2c3def,'rows':_0x1df205-_0x2c3def+0x1});}),_0x196f6d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4414bb=>{const _0x1d5e50=_0x4414bb['map'](_0x551ab8=>_0x551ab8['getContainedElement']()),_0x3f2481=_0x1d5e50[0x0]['findAncestor']('table'),{minColumn:_0x41a94e,maxColumn:_0x4c728b}=_0x5584a4['_getCoordsForCells'](_0x1d5e50);_0x46b880['removeColumns'](_0x3f2481,{'at':_0x41a94e,'columns':_0x4c728b-_0x41a94e+0x1});});const _0x4687d9=(_0x3035cc,_0x55aa79)=>{if(!_0x55aa79['subType']||!_0x55aa79['subType']['startsWith']('tablePaste'))return;const _0x4a84b3=_0x55aa79['attributes']['tablePasteChainId'],_0x33320d=_0x196f6d['getSuggestions']()['filter'](_0x4148c=>_0x4148c['isInContent']&&_0x4148c['attributes']&&_0x4148c['attributes']['tablePasteChainId']==_0x4a84b3);_0x33320d['length']&&_0x55aa79['getAllAdjacentSuggestions']()['length']!=_0x33320d['length']&&_0x33320d['reduce']((_0x38ee5e,_0x33b01f)=>(_0x38ee5e['next']=_0x33b01f,_0x33b01f['previous']=_0x38ee5e,_0x33b01f));};function _0xc7fbc3(_0x48e7f1,_0x41e1a9=!0x0){const {id:_0x349172}=_0x196f6d['_splitMarkerName'](_0x48e7f1['markerName']),_0x53c577=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xddd4a2=_0x196f6d['activeMarkers']['includes'](_0x48e7f1['markerName']);return _0xddd4a2&&_0x53c577['push']('ck-suggestion-marker--active'),{'classes':_0x53c577,'attributes':{'data-suggestion':_0x349172},'priority':_0xddd4a2&&_0x41e1a9?0xbc2:0xbb8};}_0x196f6d['on']('suggestionLoaded',_0x4687d9,{'priority':'high'}),_0x196f6d['on']('suggestionUnloaded',_0x4687d9,{'priority':'high'}),_0x581d35['model']['document']['registerPostFixer'](()=>{let _0x36224e=!0x1;const _0x35b6b7=Array['from'](_0x581d35['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1648e8,data:_0x13559f}of _0x35b6b7){const {group:_0x334c8,type:_0x1e4575,id:_0x5022d5}=_0x196f6d['_splitMarkerName'](_0x1648e8);if('suggestion'!=_0x334c8||'deletion'!=_0x1e4575||_0x13559f['oldRange'])continue;if(!_0x196f6d['hasSuggestion'](_0x5022d5))continue;const _0x2fcedc=_0x196f6d['getSuggestion'](_0x5022d5)['getRanges'](),_0xa1c8b2=_0x581d35['plugins']['get']('Users')['me'];for(const _0x398b9f of _0x196f6d['getSuggestions']()){if(!_0x398b9f['isInContent']||_0x398b9f['author']!=_0xa1c8b2)continue;if('formatBlock'!=_0x398b9f['type']||'tablePasteCell'!=_0x398b9f['subType'])continue;if(_0x398b9f['getRanges']()['every'](_0x14fec7=>_0x2fcedc['some'](_0x47490e=>_0x47490e['containsRange'](_0x14fec7,!0x0)))){for(const _0x2e4d63 of _0x398b9f['getAllAdjacentSuggestions']())_0x2e4d63['isInContent']&&(_0x2e4d63['discard'](),_0x36224e=!0x0);}}}return _0x36224e;}),_0x581d35['model']['document']['registerPostFixer'](_0x475303=>{const _0x3705d3=_0x581d35['commands']['get']('redo');if(!_0x3705d3||!_0x3705d3['_createdBatches']['has'](_0x475303['batch']))return!0x1;let _0x4fa859=!0x1;const _0x5c736a=_0x581d35['plugins']['get']('Users')['me'],_0xb9a4ae=_0x581d35['model']['document']['differ']['getChanges'](),_0x39d154=Array['from'](_0x581d35['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x28e32b,data:_0x59180f})=>{const {group:_0xc8794b,subType:_0x4c8af1,authorId:_0x568f72}=_0x196f6d['_splitMarkerName'](_0x28e32b);return'suggestion'==_0xc8794b&&'tablePaste'==_0x4c8af1&&_0x568f72==_0x5c736a['id']&&!_0x59180f['oldRange'];});for(const _0x1e4b64 of _0xb9a4ae){if('insert'!=_0x1e4b64['type']||'tableCellSuggestion'!=_0x1e4b64['name']||0x1!=_0x1e4b64['length'])continue;const _0x2a8253=_0x475303['createRange'](_0x1e4b64['position'],_0x1e4b64['position']['getShiftedBy'](0x1));if(!_0x39d154['find'](({data:_0x368383})=>_0x368383['newRange']['isEqual'](_0x2a8253))){for(const {name:_0xa7def2,data:_0x4da393}of _0x39d154)if(_0x2a8253['containsRange'](_0x4da393['newRange'])){_0x475303['updateMarker'](_0xa7def2,{'range':_0x2a8253}),_0x4fa859=!0x0;break;}}}return _0x4fa859;}),_0x581d35['model']['document']['registerPostFixer'](_0x2dbdc3=>{let _0x35feac=!0x1;const _0x5dd255=_0x581d35['plugins']['get']('Users')['me'],_0x31106e=_0x196f6d['getSuggestions']()['filter'](_0x3b2504=>_0x3b2504['isInContent']&&_0x3b2504['author']==_0x5dd255),_0x42979b=new Set(),_0x4f6608=new Set();for(const _0x4218c6 of _0x31106e)if('tablePaste'==_0x4218c6['subType'])for(const _0x29faba of _0x4218c6['getMarkers']()){const _0x2f4e35=_0x29faba['getRange']()['getContainedElement']();if(_0x2f4e35){if(_0x2f4e35['is']('element','tableCellSuggestion')&&Pe(_0x2f4e35)){_0x4218c6['removeMarker'](_0x29faba['name']),_0x42979b['add'](_0x2f4e35),_0x35feac=!0x0;const _0x48cff9=_0x2f4e35['nextSibling'],_0x23e068=_0x2f4e35['previousSibling'],_0x4c8c73=_0x48cff9&&_0x48cff9['is']('element','tableCellSuggestion'),_0xb34c51=_0x23e068&&_0x23e068['is']('element','tableCellSuggestion');_0x4c8c73&&!_0x42979b['has'](_0x48cff9)&&_0x4f6608['add'](_0x48cff9),_0xb34c51&&!_0x42979b['has'](_0x23e068)&&_0x4f6608['add'](_0x23e068);}else _0x2f4e35['is']('element','paragraph')&&_0x2f4e35['isEmpty']&&(_0x4218c6['removeMarker'](_0x29faba['name']),_0x35feac=!0x0);}}else{if('tablePasteCell'==_0x4218c6['subType']){if(!_0x4218c6['attributes']||!_0x4218c6['attributes']['tablePasteChainId'])continue;const _0x2f3e2d=_0x4218c6['attributes']['markerAttributes'];if(_0x2f3e2d&&Object['keys'](_0x2f3e2d)['length'])continue;const _0x37f0cd=_0x4218c6['attributes']['tablePasteChainId'];let _0x556015=!0x0,_0x4c6eaf=!0x0;for(const _0x323410 of _0x31106e)if(_0x323410['subType']&&_0x323410['subType']['startsWith']('tablePaste')){if(!_0x323410['attributes']['tablePasteChainId']){_0x4c6eaf=!0x1;break;}if(_0x323410['id']!=_0x4218c6['id']&&_0x323410['attributes']['tablePasteChainId']==_0x37f0cd){_0x556015=!0x1;break;}}_0x4c6eaf&&_0x556015&&(_0x4218c6['removeMarkers'](),_0x35feac=!0x0);}}for(const _0x286bbb of _0x42979b)_0x2dbdc3['remove'](_0x286bbb);for(const _0x2970ad of _0x4f6608)_0x2dbdc3['unwrap'](_0x2970ad);return _0x35feac;}),_0x581d35['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4c9057,_0x502816)=>_0xc7fbc3(_0x4c9057),'converterPriority':'high'}),_0x581d35['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29243b,_0x363942)=>_0x363942['options']['showSuggestionHighlights']?_0xc7fbc3(_0x29243b,!0x1):null,'converterPriority':'high'});const _0x4c1663=_0x581d35['editing']['view'];this['listenTo'](_0x4c1663['document'],'clipboardOutput',(_0x3cafa0,_0x32a9bc)=>{const _0x4ed8ea=[];for(const _0x16da21 of _0x4c1663['createRangeIn'](_0x32a9bc['content'])['getItems']())_0x16da21['is']('element','suggestion-td')&&_0x4ed8ea['push'](_0x16da21);_0x4c1663['change'](_0xbea287=>{for(const _0x7957d9 of _0x4ed8ea)_0xbea287['move'](_0xbea287['createRangeIn'](_0x7957d9),_0xbea287['createPositionBefore'](_0x7957d9)),_0xbea287['remove'](_0x7957d9);});});}}function Pe(_0x2cc691){if(_0x2cc691['isEmpty'])return!0x0;const _0x4b3940=_0x2cc691['getChild'](0x0);return _0x4b3940['is']('element','paragraph')&&_0x4b3940['isEmpty'];}function he(_0x6418fd,_0x2aa03c={},_0x121997){for(const {isAnchor:_0x1fe736,cellHeight:_0x9e3559,cellWidth:_0x29e503}of _0x121997['createTableWalker'](_0x6418fd,{'includeAllSlots':!0x0,..._0x2aa03c}))if(!_0x1fe736||0x1!=_0x9e3559||0x1!=_0x29e503)return!0x1;return!0x0;}class vt extends _0x17f7ef{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x161c64=this['editor']['plugins']['get']('TrackChangesEditing');_0x161c64['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x161c64['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x161c64['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x161c64['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x161c64['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x161c64['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x388772,_0x3b8785){const _0x3fc9c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27bd19=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5aeb3e=_0x3b8785['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1bc76f=_0x27bd19['getColumnGroupElement'](_0x5aeb3e);let _0x3dd22a=_0x1bc76f?_0x27bd19['getTableColumnsWidths'](_0x1bc76f):null,_0x4fd9dc=_0x5aeb3e['getAttribute']('tableWidth')||null;const _0x193d1d=_0x3b8785['tableWidth']||_0x4fd9dc,_0x29c501=_0x3b8785['columnWidths']||_0x3dd22a,_0x247693=this['editor']['plugins']['get']('Users')['me'];for(const _0x323899 of _0x3fc9c4['getSuggestions']()){const _0x30948d=_0x323899['getContainedElement']();if('resizeTable'===_0x323899['subType']&&_0x30948d===_0x5aeb3e){_0x323899['author']!==_0x247693&&_0x323899['discard']();const _0x38bc9e=_0x323899['data']['commandParams'];_0x4fd9dc=_0x38bc9e[0x0]['tableWidth'],_0x3dd22a=_0x38bc9e[0x0]['columnWidths'];break;}}_0x388772({'table':_0x5aeb3e,'tableWidth':_0x193d1d,'columnWidths':_0x29c501}),_0x3fc9c4['markBlockFormat'](_0x5aeb3e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4fd9dc,'columnWidths':_0x3dd22a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x46b589){if('formatBlock'!=_0x46b589['type']&&'formatInline'!=_0x46b589['type'])return;const {data:_0x417490}=_0x46b589;if(_0x417490&&'resizeTable'===_0x417490['formatGroupId']){const _0x1b04d9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1b04d9)};}}}class _t extends _0x17f7ef{['afterInit'](){const _0x7a4fea=this['editor'];_0x7a4fea['plugins']['has']('Template')&&_0x7a4fea['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x17f7ef{['afterInit'](){const _0xa29d3e=this['editor'];if(!_0xa29d3e['commands']['get']('insertTableOfContents'))return;_0xa29d3e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3941dd=_0xa29d3e['plugins']['get']('TrackChangesEditing'),_0x51c408=_0xa29d3e['locale'];_0x3941dd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a62c1=>o(_0x51c408,'ELEMENT_TABLE_OF_CONTENTS',_0x1a62c1));}}class Dt extends _0x17f7ef{['afterInit'](){const _0x12ef81=this['editor'];if(!_0x12ef81['plugins']['has']('Title'))return;const _0x437298=_0x12ef81['plugins']['get']('TrackChangesEditing');_0x437298['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x12ef81['locale'],'ELEMENT_TITLE')),_0x12ef81['model']['document']['registerPostFixer'](_0x57a6b9=>{let _0x311cb8=!0x1;const _0x101022=Array['from'](_0x12ef81['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3cedd3,data:_0x20c0e7}of _0x101022){const {group:_0x41b77c}=_0x437298['_splitMarkerName'](_0x3cedd3);if('suggestion'!==_0x41b77c||!_0x20c0e7['newRange'])continue;const _0x38613c=_0x20c0e7['newRange'],_0x457bd5=_0x38613c['end']['nodeBefore'];if(!_0x457bd5||!_0x457bd5['is']('element','title-content'))continue;if(!_0x38613c['start']['isTouching'](_0x38613c['end']))continue;const _0x3b2df1=_0x12ef81['model']['schema']['getNearestSelectionRange'](_0x38613c['end'],'forward');if(_0x3b2df1&&_0x3b2df1['isCollapsed']){const _0x58c017=_0x57a6b9['createRange'](_0x38613c['start'],_0x3b2df1['start']);_0x58c017['isEqual'](_0x38613c)||(_0x57a6b9['updateMarker'](_0x3cedd3,{'range':_0x58c017}),_0x311cb8=!0x0);}_0x311cb8||(_0x57a6b9['removeMarker'](_0x3cedd3),_0x311cb8=!0x0);}return _0x311cb8;});}}class Nt extends _0x17f7ef{['afterInit'](){const _0x194dee=this['editor'],_0xab47e5=_0x194dee['plugins']['get']('TrackChangesEditing');_0x194dee['plugins']['has']('UndoEditing')&&(_0xab47e5['enableCommand']('undo'),_0xab47e5['enableCommand']('redo'));}}class Mt extends _0x17f7ef{static get['requires'](){return[jt];}['afterInit'](){const _0x205e20=this['editor'];if(!_0x205e20['plugins']['has']('TableCaptionEditing'))return;_0x205e20['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x17f7ef{['tableProperties'];['tableCellProperties'];constructor(_0x16dcac){super(_0x16dcac),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 _0x306afa=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3aaad7 of this['tableProperties'])_0x306afa['enableCommand'](_0x3aaad7,(_0x205c93,_0x524260)=>{const _0x1df6cf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3aaad7,[_0x1df6cf],this['tableProperties'],'tableProperties',_0x205c93,_0x524260);});_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x306afa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x31791d,_0x13ed60)=>this['handleDiscardAction'](this['tableProperties'],_0x31791d,_0x13ed60)),_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xdd41b3 of this['tableCellProperties'])_0x306afa['enableCommand'](_0xdd41b3,(_0x391fda,_0x2360f4)=>{const _0x48402e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xdd41b3,_0x48402e,this['tableCellProperties'],'tableCellProperties',_0x391fda,_0x2360f4);});_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x306afa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x46c7fe,_0x2dabd0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x46c7fe,_0x2dabd0)),_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x306afa['descriptionFactory']['registerDescriptionCallback'](_0x2db4ca=>this['handleSuggestionDescription'](_0x2db4ca));}['_handlePropertyChange'](_0x7fbab3,_0x1f6403,_0x4b4660,_0x48d098,_0x124170,_0x4e2088){const _0x478375=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4e2088['batch'],()=>{for(const _0x15b84e of _0x1f6403){if(this['_getSuggestion'](_0x15b84e,_0x48d098))_0x124170(_0x4e2088);else{const _0x1b107b={};for(const _0x4647fb of _0x4b4660){const _0x27f693=_0x15b84e['getAttribute'](_0x4647fb);void 0x0!==_0x27f693&&(_0x1b107b[_0x4647fb]=_0x27f693);}_0x124170(_0x4e2088),_0x478375['markBlockFormat'](_0x15b84e,{'commandParams':[_0x1b107b]},[],_0x48d098);}}});}['handleDiscardAction'](_0x16d1c7,_0x1998c0,_0x1582c4){const _0x2feb7f=_0x1998c0[0x0]['start']['nodeAfter'],_0x4cf1f2=_0x1582c4['commandParams'][0x0];this['editor']['model']['change'](_0x853dc4=>{for(const _0x41f360 of _0x16d1c7)void 0x0!==_0x4cf1f2[_0x41f360]?_0x853dc4['setAttribute'](_0x41f360,_0x4cf1f2[_0x41f360],_0x2feb7f):_0x853dc4['removeAttribute'](_0x41f360,_0x2feb7f);});}['handleSuggestionDescription'](_0x4a3c58){if(_0x4a3c58['data'])switch(_0x4a3c58['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'](_0x22b808,_0x3c5d70){const _0x19c052=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x577636 of _0x19c052['getSuggestions']({'skipNotAttached':!0x0})){const _0x56a635=_0x577636['getContainedElement']();if(_0x577636['subType']===_0x3c5d70&&_0x56a635===_0x22b808)return _0x577636;}return null;}}const m='$elementName';class p extends _0x17f7ef{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xfe0aac,_0x1373d4,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x15c484){function _0x412a67(_0x2e6529){return _0x2e6529['map'](_0x923b1=>String['fromCharCode'](_0x923b1))['join']('');}super(_0x15c484),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2cf986,_0x3b0641,_0x1c0356,_0x53f0a4)=>{this['_model']['change'](()=>{for(const _0x3aed6e of[..._0x53f0a4,..._0x1c0356])this['_model']['markers']['has'](_0x3aed6e)&&_0x15c484['editing']['reconvertMarker'](_0x3aed6e);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x15c484['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(),_0x15c484['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x15c484['config']['get']('trackChanges.trackFormatChanges'),_0x15c484['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x15c484['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x15c484,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x412a67([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x412a67([0x34,0x30,0x34,0x38,0x31,0x30,0x33,0x38]);}['init'](){const _0x5169a9=this['editor'],_0x3fef5c=(_0x112fa1,_0x87283)=>{if('attribute'!=_0x112fa1)return'ck-suggestion-marker-'+_0x112fa1;const _0x1dabc8=_0x87283['split']('|')[0x0];return this['_isBlockAttribute'](_0x1dabc8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5169a9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x443d76=>{const {id:_0x21c3be,type:_0x1d1726,subType:_0xede91}=this['_splitMarkerName'](_0x443d76['markerName']),_0x4bf862=['ck-suggestion-marker',_0x3fef5c(_0x1d1726,_0xede91)];let _0x1ad735=0xbb8;return this['activeMarkers']['includes'](_0x443d76['markerName'])&&(_0x4bf862['push']('ck-suggestion-marker--active'),_0x1ad735=0xbc2),'deletion'==_0x1d1726&&(_0x1ad735+=0x5),{'classes':_0x4bf862,'attributes':{'data-suggestion':_0x21c3be},'priority':_0x1ad735};}}),_0x5169a9['conversion']['for']('dataDowncast')['add'](_0x224449=>{_0x224449['on']('addMarker:suggestion',(_0x2a1571,_0x17c9af,_0x57bece)=>{if(!_0x57bece['options']['showSuggestionHighlights'])return;const _0x5eda61=_0x17c9af['item'];if(!_0x5eda61)return;const _0x46f965=_0x57bece['mapper']['toViewElement'](_0x5eda61);_0x5169a9['model']['schema']['isObject'](_0x5eda61)&&_0x46f965&&!_0x46f965['getCustomProperty']('widget')&&_0x46f965['is']('containerElement')&&_0x4f25e1(_0x46f965,_0x57bece['writer']);},{'priority':'high'});}),_0x5169a9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x158fb1,_0x1390eb)=>{if(!_0x1390eb['options']['showSuggestionHighlights'])return null;const {type:_0x44e637,subType:_0x43316a}=this['_splitMarkerName'](_0x158fb1['markerName']);return{'classes':['ck-suggestion-marker',_0x3fef5c(_0x44e637,_0x43316a)],'priority':0xbb8};}});const _0x6ee31f=({showActiveMarkers:_0x1046e0=!0x0,isAttributeSuggestion:_0x2b97b1=!0x1}={})=>(_0x5dbb39,_0x49275c,_0x30fc86)=>{if(!_0x49275c['item'])return;const {id:_0x4ddf9e}=this['_splitMarkerName'](_0x49275c['markerName']);if(_0x2b97b1){const _0x4c6cb8=this['_suggestions']['get'](_0x4ddf9e),_0x729531=this['_getAttributeKey'](_0x4c6cb8);if(!this['_isBlockAttribute'](_0x729531))return;}if(_0x49275c['item']['is']('selection'))return void _0x30fc86['consumable']['consume'](_0x49275c['item'],_0x5dbb39['name']);const _0xb59a0e=_0x30fc86['mapper']['toViewElement'](_0x49275c['item']);if(_0x49275c['item']['is']('element')&&_0x5169a9['model']['schema']['isBlock'](_0x49275c['item'])&&!_0xb59a0e['getCustomProperty']('addHighlight')){_0x30fc86['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xb59a0e),_0x30fc86['writer']['setAttribute']('data-suggestion',_0x4ddf9e,_0xb59a0e),_0x30fc86['mapper']['bindElementToMarker'](_0xb59a0e,_0x49275c['markerName']),_0x1046e0&&(this['activeMarkers']['includes'](_0x49275c['markerName'])?_0x30fc86['writer']['addClass']('ck-suggestion-marker--active',_0xb59a0e):_0x30fc86['writer']['removeClass']('ck-suggestion-marker--active',_0xb59a0e));for(const _0x3eecd6 of _0x5169a9['model']['createRangeIn'](_0x49275c['item'])['getItems']())_0x30fc86['consumable']['consume'](_0x3eecd6,_0x5dbb39['name']);_0x30fc86['consumable']['consume'](_0x49275c['item'],_0x5dbb39['name']);}};_0x5169a9['conversion']['for']('dataDowncast')['add'](_0x47aeaa=>{_0x47aeaa['on']('addMarker:suggestion:formatBlock',(_0x45d1bf,_0x1eaa43,_0x15ab8d)=>{_0x15ab8d['options']['showSuggestionHighlights']&&_0x6ee31f({'showActiveMarkers':!0x1})(_0x45d1bf,_0x1eaa43,_0x15ab8d);},{'priority':'highest'});}),_0x5169a9['conversion']['for']('dataDowncast')['add'](_0xb99ba0=>{_0xb99ba0['on']('addMarker:suggestion:attribute',(_0x54beca,_0x1319e2,_0x466f97)=>{_0x466f97['options']['showSuggestionHighlights']&&_0x6ee31f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x54beca,_0x1319e2,_0x466f97);},{'priority':'highest'});}),_0x5169a9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24a945,_0x166d1a)=>_0x166d1a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x24a945['substr'](0xb)}}),_0x5169a9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x458d36,{writer:_0x3248cf})=>{let _0x2c8239='suggestion:'+_0x458d36['getAttribute']('suggestion-type')+':'+_0x458d36['getAttribute']('id');return _0x458d36['getAttribute']('marker-count')&&(_0x2c8239+=':'+_0x458d36['getAttribute']('marker-count')),_0x3248cf['createElement']('$marker',{'data-name':_0x2c8239});}}),_0x5169a9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5169a9['conversion']['for']('editingDowncast')['add'](_0x2820ec=>{_0x2820ec['on']('addMarker:suggestion:formatBlock',_0x6ee31f(),{'priority':'high'});}),_0x5169a9['conversion']['for']('editingDowncast')['add'](_0x3f7ada=>{_0x3f7ada['on']('addMarker:suggestion:attribute',_0x6ee31f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5169a9['conversion']['for']('editingDowncast')['add'](_0x12e2ec=>{_0x12e2ec['on']('removeMarker:suggestion:formatBlock',(_0x4d9766,_0x250ea2,_0x2b0929)=>{const _0x1e85fe=_0x2b0929['mapper']['markerNameToElements'](_0x250ea2['markerName']);if(_0x1e85fe){for(const _0x2cff60 of _0x1e85fe)_0x2cff60['getCustomProperty']('addHighlight')||(_0x2b0929['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2cff60),_0x2b0929['writer']['removeAttribute']('data-suggestion',_0x2cff60),_0x2b0929['mapper']['unbindElementFromMarkerName'](_0x2cff60,_0x250ea2['markerName']));}},{'priority':'high'});}),_0x5169a9['conversion']['for']('editingDowncast')['add'](_0x1a1584=>{_0x1a1584['on']('removeMarker:suggestion:attribute',(_0x53ad8a,_0x4dbda9,_0x1a26a3)=>{const _0x428f92=_0x1a26a3['mapper']['markerNameToElements'](_0x4dbda9['markerName']);if(!_0x428f92)return;const {id:_0x5004da}=this['_splitMarkerName'](_0x4dbda9['markerName']),_0x160f00=this['_suggestions']['get'](_0x5004da),_0x5d96c7=this['_getAttributeKey'](_0x160f00);if(this['_isBlockAttribute'](_0x5d96c7)){for(const _0x9cd1c9 of _0x428f92)_0x9cd1c9['getCustomProperty']('addHighlight')||(_0x1a26a3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9cd1c9),_0x1a26a3['writer']['removeAttribute']('data-suggestion',_0x9cd1c9),_0x1a26a3['mapper']['unbindElementFromMarkerName'](_0x9cd1c9,_0x4dbda9['markerName']));}},{'priority':'high'});}),_0x5169a9['model']['document']['registerPostFixer'](_0x1e0fb7=>{let _0x1d407b=!0x1;const _0x19fc4b=Array['from'](_0x5169a9['model']['document']['differ']['getChangedMarkers']()),_0x5dd20e=new Set();for(const {name:_0x329147,data:_0x1329fd}of _0x19fc4b){const {group:_0x17e40f,type:_0x2688a7,subType:_0x499745,id:_0xbc2b6f}=this['_splitMarkerName'](_0x329147);if('suggestion'!==_0x17e40f)continue;const _0x370214=this['_suggestions']['get'](_0xbc2b6f);if(null!=_0x1329fd['newRange']){'formatInline'==_0x2688a7&&(_0x1d407b=_0x1d407b||Et(_0x1329fd['newRange'],_0x329147,_0x1e0fb7,_0x5169a9['model']['schema']));const _0x28e83c='attribute'==_0x2688a7&&this['_isBlockAttribute'](_0x499745['split']('|')[0x0]);if(_0x1329fd['newRange']['isCollapsed']||'$graveyard'==_0x1329fd['newRange']['root']['rootName']||'formatBlock'==_0x2688a7&&!Ut(_0x1329fd['newRange'])||_0x28e83c&&!Ut(_0x1329fd['newRange'])||'deletion'==_0x2688a7&&!(!Tt(_0x28d4c3=_0x1329fd['newRange'])&&!function(_0x3ca6b4){return _0x3ca6b4['start']['parent']==_0x3ca6b4['end']['nodeBefore']&&_0x3ca6b4['start']['isAtEnd'];}(_0x28d4c3)))_0x1e0fb7['removeMarker'](_0x329147),_0x1d407b=!0x0;else{if(!_0x370214||!_0x370214['isInContent'])continue;_0x5dd20e['add'](_0x370214);}}}var _0x28d4c3;return _0x5dd20e['size']>0x0&&(_0x1d407b=!!this['_joinWithAdjacentSuggestions'](_0x5dd20e)||_0x1d407b),_0x1d407b;}),_0x5169a9['model']['document']['registerPostFixer'](_0x35e9d9=>{let _0x3623c7=!0x1;for(const _0xd08a6c of _0x5169a9['model']['document']['differ']['getChanges']())if('insert'==_0xd08a6c['type'])for(const _0x5ad7da of this['_suggestions']['values']()){if(_0x5ad7da['isMultiRange']||!_0x5ad7da['isInContent'])continue;const _0x343173='formatBlock'==_0x5ad7da['type'],_0x1be57d=this['_getAttributeKey'](_0x5ad7da),_0x2582f9=_0x1be57d&&this['_isBlockAttribute'](_0x1be57d);if(!_0x343173&&!_0x2582f9)continue;const _0x67522d=_0x5ad7da['getFirstRange']();if(_0x67522d['start']['parent']!=_0x67522d['end']['parent']&&!_0x67522d['end']['isAtEnd']){const _0x1543f0=_0x5169a9['model']['createPositionAt'](_0x67522d['start']['nodeAfter'],'end'),_0x19b173=_0x5169a9['model']['createRange'](_0x67522d['start'],_0x1543f0);_0x35e9d9['updateMarker'](_0x5ad7da['getFirstMarker'](),{'range':_0x19b173}),_0x3623c7=!0x0;}}return _0x3623c7;}),_0x5169a9['model']['document']['registerPostFixer'](_0x3c58ec=>this['_processAttributeChanges'](_0x3c58ec)),_0x5169a9['model']['document']['registerPostFixer'](_0x227695=>!_0x227695['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x227695)),_0x5169a9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5169a9['model']['document']['on']('change:data',(_0x50915a,_0x15b67b)=>{if(!_0x15b67b['isLocal']||_0x15b67b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x6b7118=_0x5169a9['model']['document']['differ']['getChanges']();if(0x0==_0x6b7118['length'])return;const _0xb1c51=[],_0x46e8c4=_0x6b7118['filter'](_0x304671=>'attribute'==_0x304671['type']),_0x20d75e=_0x6b7118['filter'](_0x50f166=>'insert'==_0x50f166['type']&&'$text'!=_0x50f166['name']),_0x56939a=_0x6b7118['filter'](_0x4d163f=>'remove'==_0x4d163f['type']&&'$text'!=_0x4d163f['name']);for(const _0x3dd107 of _0x46e8c4)this['_isRegisteredAttribute'](_0x3dd107['attributeKey'])&&_0xb1c51['push']({'key':_0x3dd107['attributeKey'],'newValue':_0x3dd107['attributeNewValue'],'oldValue':_0x3dd107['attributeOldValue'],'range':Ot(_0x3dd107['range'],_0x5169a9['model'])});for(const _0x344699 of _0x20d75e){const _0x29c8e5=_0x56939a['find'](_0x2ab732=>_0x2ab732['_element']===_0x344699['_element']);if(_0x29c8e5){const _0xe5f0c=Ft(_0x344699['position']['nodeAfter'],_0x5169a9['model']);_0x29c8e5['name']!==_0x344699['name']&&_0xb1c51['push']({'key':m,'newValue':_0x344699['name'],'oldValue':_0x29c8e5['name'],'range':_0xe5f0c});for(const [_0x333e56,_0x1d7952]of _0x29c8e5['attributes']){if(!this['_isRegisteredAttribute'](_0x333e56))continue;const _0xe65108=_0x344699['attributes']['get'](_0x333e56);_0x1d7952!==_0xe65108&&_0xb1c51['push']({'key':_0x333e56,'newValue':_0xe65108,'oldValue':_0x1d7952,'range':_0xe5f0c});}for(const [_0x594c06,_0x3c4f74]of _0x344699['attributes'])this['_isRegisteredAttribute'](_0x594c06)&&(_0x29c8e5['attributes']['has'](_0x594c06)||_0xb1c51['push']({'key':_0x594c06,'newValue':_0x3c4f74,'oldValue':null,'range':_0xe5f0c}));}}0x0!=_0xb1c51['length']&&_0x5169a9['model']['enqueueChange'](_0x15b67b,_0x1eabe2=>{const _0x1d7628=_0x5e29c1();for(const {range:_0x54bddc,key:_0x478154,oldValue:_0x1bbb4c,newValue:_0x5238d3}of _0xb1c51)this['markAttributeChange'](_0x54bddc,_0x478154,_0x1bbb4c,_0x5238d3,{'groupId':_0x1d7628});this['_reduceExistingSuggestions'](_0x1eabe2,_0xb1c51);});},{'priority':'lowest'}),_0x5169a9['model']['markers']['on']('update:suggestion',(_0x10c98e,_0x2f8b2c,_0x307e04)=>{if(null==_0x307e04){const {id:_0x40c381}=this['_splitMarkerName'](_0x2f8b2c['name']),_0x5ea4c3=this['_suggestions']['get'](_0x40c381);_0x5ea4c3&&_0x5ea4c3['addMarkerName'](_0x2f8b2c['name']);}}),_0x5169a9['model']['document']['on']('change:data',()=>{const _0xb32015=Array['from'](_0x5169a9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x35860a=>'suggestion'===this['_splitMarkerName'](_0x35860a['name'])['group']);if(0x0===_0xb32015['length'])return;_0xb32015['sort']((_0x2b4aed,_0x303c3c)=>{const _0x12e600=_0x2b4aed['data']['oldRange'],_0x55db71=_0x303c3c['data']['oldRange'];return null===_0x12e600&&null===_0x55db71?0x0:null===_0x12e600&&null!==_0x55db71?-0x1:null!==_0x12e600&&null===_0x55db71?0x1:_0x12e600['start']['isBefore'](_0x55db71['start'])?-0x1:0x1;});const _0x3a80cf=new Set(),_0x1867bc=new Set();for(const {name:_0x363afd,data:_0x28f287}of _0xb32015){const {id:_0x77a1d6}=this['_splitMarkerName'](_0x363afd);if(null===_0x28f287['oldRange']){const _0x5234d9=this['_handleNewSuggestionMarker'](_0x363afd);_0x1867bc['add'](_0x5234d9);}else{const _0x22c46b=this['_suggestions']['get'](_0x77a1d6);null!==_0x28f287['newRange']||_0x22c46b['isInContent']?(_0x3a80cf['add'](_0x22c46b['head']),_0x1867bc['add'](_0x22c46b)):this['_removeSuggestion'](_0x22c46b);}}_0x1867bc['size']>0x0&&this['_refreshSuggestionsChain'](_0x1867bc);for(const _0x340e31 of _0x3a80cf)this['fire']('suggestionChanged',_0x340e31);}),_0x5169a9['model']['on']('applyOperation',(_0x1848d2,_0x2281a2)=>{const _0x7ab9d5=_0x2281a2[0x0];if(!this['_suggestions']['size'])return;if(!_0x7ab9d5['isDocumentOperation'])return;if(_0x7ab9d5['batch']['isUndo']||!_0x7ab9d5['batch']['isLocal'])return;let _0x4f7356,_0x2e5f2a;switch(_0x7ab9d5['type']){case'insert':_0x4f7356=_0x5169a9['model']['createPositionAt'](_0x7ab9d5['position']),_0x2e5f2a=_0x4f7356['getShiftedBy'](_0x7ab9d5['howMany']);break;case'split':_0x4f7356=_0x5169a9['model']['createPositionAt'](_0x7ab9d5['splitPosition']),_0x2e5f2a=_0x5169a9['model']['createPositionAt'](_0x7ab9d5['moveTargetPosition']);break;case'move':_0x4f7356=_0x5169a9['model']['createPositionAt'](_0x7ab9d5['targetPosition']),_0x2e5f2a=_0x4f7356['getShiftedBy'](_0x7ab9d5['howMany']);break;default:return;}const _0xc6c109=_0x5169a9['model']['createRange'](_0x4f7356,_0x2e5f2a);_0x5169a9['model']['change'](()=>{for(const {suggestion:_0x152b3d,meta:_0xaef5e5}of this['_findSuggestions'](_0xc6c109)){if(_0x152b3d['isMultiRange'])continue;if('formatInline'==_0x152b3d['type'])continue;const _0x26d3ca=this['_getAttributeKey'](_0x152b3d);if(_0x26d3ca&&this['_isBlockAttribute'](_0x26d3ca)&&'split'!=_0x7ab9d5['type'])continue;const _0x5de62c=_0x152b3d['data']&&_0x152b3d['data']['multipleBlocks'];('formatBlock'!=_0x152b3d['type']||'split'==_0x7ab9d5['type']&&!_0x5de62c)&&(_0xaef5e5['containsRangeInObject']||'insertion'==_0x152b3d['type']&&_0xaef5e5['isOwn']||_0x152b3d['getFirstRange']()['containsRange'](_0xc6c109)&&this['_breakSuggestionMarker'](_0x152b3d,_0x4f7356,_0x2e5f2a));}});},{'priority':'lowest'}),_0x5169a9['model']['on']('deleteContent',(_0x4acfe6,_0xecc6bb)=>{const _0x227178=_0xecc6bb[0x0],_0x5e7cb6=_0xecc6bb[0x1];if(_0x5e7cb6&&_0x5e7cb6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x227178['isCollapsed'])return;const _0x380998=_0x5169a9['model']['schema'],{start:_0x513c17,end:_0x26bc5b}=_0x227178['getFirstRange'](),_0x2e521a=_0x513c17['nodeAfter']&&_0x380998['isLimit'](_0x513c17['nodeAfter'])?null:_0x380998['getNearestSelectionRange'](_0x513c17,'forward'),_0x4e6a60=_0x26bc5b['nodeBefore']&&_0x380998['isLimit'](_0x26bc5b['nodeBefore'])?null:_0x380998['getNearestSelectionRange'](_0x26bc5b,'backward'),_0x26d121=_0x5169a9['model']['createRange'](_0x2e521a?_0x2e521a['start']:_0x513c17,_0x4e6a60?_0x4e6a60['end']:_0x26bc5b);_0x5169a9['model']['change'](_0x3f18d0=>{this['markDeletion'](_0x26d121);const _0x9bc6f0=_0x5169a9['model']['schema']['getNearestSelectionRange'](_0x26d121['start']);_0x227178['is']('documentSelection')?_0x3f18d0['setSelection'](_0x9bc6f0):_0x227178['setTo'](_0x9bc6f0);}),_0x4acfe6['stop']();},{'priority':_0x32be84['normal']+0xa}),_0x5169a9['model']['on']('insertContent',(_0xcfffc9,_0x120101)=>{const _0x5bda7b=_0x120101[_0x120101['length']-0x1];_0x5bda7b&&_0x5bda7b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5169a9['model']['change'](()=>{let _0x14fdbd=_0x5169a9['model']['insertContent'](_0x120101[0x0],_0x120101[0x1],_0x120101[0x2],{'forceDefaultExecution':!0x0});if(!_0x14fdbd)return;_0xcfffc9['return']=_0x14fdbd['clone']();const _0x356b7b=_0x14fdbd['end']['nodeBefore'],_0x22b945=_0x5169a9['model']['schema'];_0x356b7b&&_0x22b945['isBlock'](_0x356b7b)&&!_0x22b945['isObject'](_0x356b7b)&&(_0x14fdbd=_0x5169a9['model']['createRange'](_0x14fdbd['start'],_0x5169a9['model']['createPositionAt'](_0x356b7b,'end'))),this['markInsertion'](_0x14fdbd);}),_0xcfffc9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5a50a7=new $(_0x5169a9,this['_suggestions']);_0x5169a9['commands']['add']('acceptSuggestion',_0x5a50a7),this['enableCommand']('acceptSuggestion');const _0x3abdc8=new B(_0x5169a9,this['_suggestions']);_0x5169a9['commands']['add']('discardSuggestion',_0x3abdc8),this['enableCommand']('discardSuggestion'),_0x5169a9['commands']['add']('acceptAllSuggestions',new x(_0x5169a9,_0x5a50a7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5169a9['commands']['add']('discardAllSuggestions',new x(_0x5169a9,_0x3abdc8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5169a9['commands']['add']('acceptSelectedSuggestions',new R(_0x5169a9,_0x5a50a7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5169a9['commands']['add']('discardSelectedSuggestions',new R(_0x5169a9,_0x3abdc8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4d1250=_0x5169a9['plugins']['get']('CommentsRepository');this['listenTo'](_0x4d1250,'addComment',(_0x5bbba8,{threadId:_0x1a6989})=>{const _0x2f476b=this['_suggestions']['get'](_0x1a6989);_0x2f476b&&_0x2f476b['commentThread']&&0x1===_0x2f476b['commentThread']['length']&&this['_updateSuggestionData'](_0x1a6989,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4d1250,'removeComment',(_0x2dc4c9,{threadId:_0x27219f})=>{const _0x30e7c8=this['_suggestions']['get'](_0x27219f);_0x30e7c8&&_0x30e7c8['commentThread']&&!_0x30e7c8['commentThread']['length']&&this['_updateSuggestionData'](_0x27219f,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x23d583){if(this['_adapter'])throw new _0x47d488('track-changes-adapter-already-set',this);this['_adapter']=_0x23d583;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2bc44a=!0x1,toJSON:_0x5b9507=!0x1}={}){const _0x2c27d2=[];for(const _0x583c79 of this['_suggestions']['values']())_0x2bc44a&&!_0x583c79['isInContent']||_0x2c27d2['push'](_0x583c79);return _0x5b9507?_0x2c27d2['map'](_0x5e59a7=>_0x5e59a7['toJSON']()):_0x2c27d2;}['getSuggestion'](_0x336bea){const _0x2f5f1a=this['_suggestions']['get'](_0x336bea);if(!_0x2f5f1a)throw new _0x47d488('track-changes-suggestion-not-found',this);return _0x2f5f1a;}['hasSuggestion'](_0x319977){return this['_suggestions']['has'](_0x319977);}['addSuggestionData'](_0x51d956){const {authorId:_0x5ee14f,id:_0x27c06b,attributes:_0x33b841}=_0x51d956,[_0x380957,_0x29ca3d]=_0x51d956['type']['split'](':'),_0xfee1b5=this['_suggestions']['get'](_0x27c06b)||this['_createSuggestion'](_0x380957,_0x29ca3d,_0x27c06b,_0x5ee14f,_0x33b841);if(this['_addThreadToSuggestion'](_0xfee1b5),this['_checkSuggestionCorrectness'](_0xfee1b5,_0x380957,_0x29ca3d||null,_0x5ee14f),_0xfee1b5['createdAt']=_0x51d956['createdAt'],_0xfee1b5['_isDataLoaded']=!0x0,_0x33b841&&_0x33b841['@external']){const _0x467cf1=_0x33b841['@external'],_0x4d3ed5=this['_getExternalAuthor'](_0x467cf1['authorName']);_0xfee1b5['authoredAt']=_0x467cf1['createdAt'],_0xfee1b5['author']=_0x4d3ed5,_0xfee1b5['isExternal']=!0x0;}else _0xfee1b5['authoredAt']=_0x51d956['createdAt'];switch(_0x51d956['data']&&(_0xfee1b5['data']=_0x51d956['data']),_0x51d956['attributes']&&(_0xfee1b5['attributes']=_0x51d956['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xfee1b5['_saved']=!0x0),this['_suggestionState']['get'](_0xfee1b5)){case'notReady':this['_suggestionState']['set'](_0xfee1b5,'dataReady');break;case'markerReady':_0xfee1b5['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xfee1b5])),this['_refreshSuggestionsChain'](new Set([_0xfee1b5])),this['_suggestionState']['set'](_0xfee1b5,'ready'),this['fire']('suggestionLoaded',_0xfee1b5)):this['_suggestionState']['set'](_0xfee1b5,'removed');}return _0xfee1b5;}['acceptSuggestion'](_0x532900){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x128706 of _0x532900['getAllAdjacentSuggestions']())_0x128706['accept']();});});}['discardSuggestion'](_0x1d45e1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c0cad of _0x1d45e1['getAllAdjacentSuggestions']())_0x5c0cad['discard']();});});}['enableCommand'](_0x484769,_0x51bea7){const _0x58d4f7=this['editor']['commands']['get'](_0x484769);if(!_0x58d4f7)throw new _0x47d488('track-changes-command-not-found',this,{'commandName':_0x484769});if(this['_enabledCommands']['has'](_0x58d4f7))throw new _0x47d488('track-changes-enable-command-twice',this,{'commandName':_0x484769});this['_enabledCommands']['add'](_0x58d4f7),_0x51bea7&&_0x58d4f7['on']('execute',(_0x17fc6e,_0x2a298a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2a298a['length']>0x0&&_0x2a298a[_0x2a298a['length']-0x1]&&_0x2a298a[_0x2a298a['length']-0x1]['forceDefaultExecution']?_0x2a298a['pop']():(_0x17fc6e['return']=_0x51bea7((..._0x575c60)=>_0x58d4f7['execute'](..._0x575c60,{'forceDefaultExecution':!0x0}),..._0x2a298a),_0x17fc6e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3998f4){let _0x593b08,_0x47c123;const _0x554804=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x593b08=_0x3998f4();}catch(_0x2dab76){_0x47c123=_0x2dab76;}return _0x554804||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x47c123&&_0x47d488['rethrowUnexpectedError'](_0x47c123,this),_0x593b08;}['markInsertion'](_0x108cb6,_0xc5dc96=null,_0x1203a3={}){if(_0x108cb6['isCollapsed'])return null;const _0x418441=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5bcb44,meta:_0x3d51ea}of this['_findSuggestions'](_0x108cb6,'insertion'))if(_0x3d51ea['isOwn']){if(!_0x3d51ea['isNextTo']){if(_0x3d51ea['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x5bcb44,_0x1203a3))continue;return _0x5bcb44;}if(Lt(_0x5bcb44,_0x1203a3))return _0x5bcb44;this['_breakSuggestionMarker'](_0x5bcb44,_0x108cb6['start'],_0x108cb6['end']);break;}if(_0xc5dc96==_0x5bcb44['subType']&&Lt(_0x5bcb44,_0x1203a3)){const _0x1879a3=_0x5bcb44['getFirstRange']();return _0x1879a3['start']['isEqual'](_0x108cb6['end'])?this['_setSuggestionRange'](_0x5bcb44,this['_model']['createRange'](_0x108cb6['start'],_0x1879a3['end'])):this['_setSuggestionRange'](_0x5bcb44,this['_model']['createRange'](_0x1879a3['start'],_0x108cb6['end'])),_0x5bcb44;}}const _0x40274d=_0x5e29c1(),_0x1f9376=_0x418441['id'],_0x230427=_0xc5dc96?'insertion:'+_0xc5dc96:'insertion',_0x2c0968=this['_setSuggestionData']({'id':_0x40274d,'type':_0x230427,'createdAt':new Date(),'authorId':_0x1f9376,'attributes':_0x1203a3});return this['_addSuggestionMarker'](_0x230427,_0x40274d,_0x1f9376,_0x108cb6),_0x2c0968;}['markMultiRangeInsertion'](_0x3dbb73,_0x1c0f17='multi',_0x10df22={}){const _0x3dfa15=this['editor']['plugins']['get']('Users')['me'],_0x30fe5d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1c0f17,'join');for(const _0x4dc7d9 of this['getSuggestions']())if(_0x4dc7d9['author']['id']==_0x3dfa15['id']&&'insertion'==_0x4dc7d9['type']&&_0x4dc7d9['subType']==_0x1c0f17&&Lt(_0x4dc7d9,_0x10df22)&&(_0x30fe5d(_0x4dc7d9['getRanges'](),_0x3dbb73)||_0x30fe5d(_0x3dbb73,_0x4dc7d9['getRanges']()))){for(const _0x4469f7 of _0x3dbb73)_0x4dc7d9['addRange'](_0x4469f7);return _0x4dc7d9;}for(const {suggestion:_0x2b773a,meta:_0x6ac51d}of this['_findSuggestions'](_0x3dbb73,'insertion')){if(!_0x6ac51d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x6ac51d['containsRangeInObject'])continue;if(!Lt(_0x2b773a,_0x10df22))continue;let _0x2f12e8=!0x0;for(const _0x509190 of _0x2b773a['getRanges']())for(const _0x63fc4a of _0x3dbb73)if(!_0x509190['containsRange'](_0x63fc4a)){_0x2f12e8=!0x1;break;}if(_0x2f12e8)return _0x2b773a;}const _0x4a641a=_0x5e29c1(),_0x24ca71=_0x3dfa15['id'],_0x1a9479='insertion:'+_0x1c0f17,_0x81c869=this['_setSuggestionData']({'id':_0x4a641a,'type':_0x1a9479,'createdAt':new Date(),'authorId':_0x24ca71,'attributes':_0x10df22});for(const _0x154be9 of _0x3dbb73)this['_addSuggestionMarker'](_0x1a9479,_0x4a641a,_0x24ca71,_0x154be9,u['getMultiRangeId']());return _0x81c869;}['markInlineFormat'](_0x4c420e,_0x339475,_0x167ee3=null,_0x479496={}){if(_0x167ee3=_0x167ee3||Vt(_0x339475),_0x4c420e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5b7ac1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x167ee3,'accept');return this['forceDefaultExecution'](()=>_0x5b7ac1([_0x4c420e],_0x339475,_0x479496)),null;}const _0x542cd7=this['editor']['plugins']['get']('Users')['me'],_0x5aedb0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3b39e8,meta:_0x8255c3}of this['_findSuggestions'](_0x4c420e,'insertion'))_0x8255c3['isOwn']&&!_0x8255c3['isInsideObject']&&_0x5aedb0['push'](..._0x3b39e8['getRanges']());}const _0x34adcf=function(_0x268c85,_0x401325){const _0x56d753=[];for(const _0x47011c of _0x401325){const _0x2b16f0=_0x268c85['getIntersection'](_0x47011c);_0x2b16f0&&_0x56d753['push'](_0x2b16f0);}return _0x56d753;}(_0x4c420e,_0x5aedb0),_0x2f15ce=function(_0x4f93aa,_0x583966){const _0x5bef5b=[_0x4f93aa];for(const _0x34f45 of _0x583966){let _0x15f8f1=0x0;for(;_0x15f8f1<_0x5bef5b['length'];){const _0x25e0f7=_0x5bef5b[_0x15f8f1]['getDifference'](_0x34f45);_0x5bef5b['splice'](_0x15f8f1,0x1,..._0x25e0f7),_0x15f8f1+=_0x25e0f7['length'];}}return _0x5bef5b;}(_0x4c420e,_0x5aedb0);_0x34adcf['length']&&this['_model']['change'](()=>{for(const _0x440af2 of _0x34adcf){const _0x5b45b7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x167ee3,'accept');this['forceDefaultExecution'](()=>_0x5b45b7([_0x440af2],_0x339475,_0x479496));}});for(const _0x2a1be2 of _0x2f15ce){let _0x2630ce=null,_0x1cc724=_0x2a1be2['start'],_0xce268b=_0x2a1be2['end'];for(const {suggestion:_0x185bd9,meta:_0x53765b}of this['_findSuggestions'](_0x2a1be2,'formatInline')){if(!_0x53765b['isOwn'])continue;if(_0x185bd9['subType']!=_0x167ee3)continue;if(!Lt(_0x185bd9,_0x479496))continue;const _0x4bbe7b=_0x185bd9['getFirstRange']();if(_0x4bbe7b['containsRange'](_0x2a1be2,!0x0))return null;_0x1cc724=_0x1cc724['isBefore'](_0x4bbe7b['start'])?_0x1cc724:_0x4bbe7b['start'],_0xce268b=_0xce268b['isAfter'](_0x4bbe7b['end'])?_0xce268b:_0x4bbe7b['end'],_0x2630ce?_0x4bbe7b['start']['isBefore'](_0x2630ce['getFirstRange']()['start'])?(_0x2630ce['removeMarkers'](),_0x2630ce=_0x185bd9):_0x185bd9['removeMarkers']():_0x2630ce=_0x185bd9;}const _0x118efb=this['_model']['createRange'](_0x1cc724,_0xce268b);if(_0x2630ce)this['_setSuggestionRange'](_0x2630ce,_0x118efb);else{const _0x243029=_0x5e29c1(),_0x52d5b8=_0x542cd7['id'];this['_setSuggestionData']({'id':_0x243029,'type':'formatInline:'+_0x167ee3,'data':_0x339475,'createdAt':new Date(),'authorId':_0x52d5b8,'attributes':_0x479496}),this['_addSuggestionMarker']('formatInline:'+_0x167ee3,_0x243029,_0x52d5b8,_0x118efb);}}return null;}['markBlockFormat'](_0x3d1939,_0x43d72c,_0x2f5792=[],_0x159c5c=null,_0x54421d={}){_0x43d72c['formatGroupId']||(_0x43d72c['formatGroupId']=_0x43d72c['commandName']),_0x43d72c['multipleBlocks']=_0x3d1939['is']('range'),_0x159c5c=_0x159c5c||Vt(_0x43d72c);const _0x52f5bb=_0x2f5792['map'](_0x3ebeac=>Ft(_0x3ebeac,this['_model'])),_0x2e9676=_0x3d1939['is']('range')?_0x3d1939:Ft(_0x3d1939,this['_model']);if('never'===this['_trackFormatChanges']){const _0x910233=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x159c5c,'accept');return this['forceDefaultExecution'](()=>_0x910233([_0x2e9676],_0x43d72c,_0x54421d)),null;}_0x52f5bb['push'](_0x2e9676);let _0x554275=!0x0;for(const _0x4c5968 of _0x52f5bb)if(!this['_rangeIsInLocalUserInsertion'](_0x4c5968)){_0x554275=!0x1;break;}if(_0x554275&&'always'!==this['_trackFormatChanges']){const _0x18ba4e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x159c5c,'accept');return this['forceDefaultExecution'](()=>_0x18ba4e([_0x2e9676],_0x43d72c,_0x54421d)),null;}let _0x7c824e=null,_0x4652ad=_0x2e9676['start'],_0xf52837=_0x2e9676['end'];for(const {suggestion:_0x2948a7,meta:_0x25944f}of this['_findSuggestions'](_0x2e9676,'formatBlock')){if(!_0x25944f['isOwn'])continue;if(_0x25944f['isNextTo']||_0x25944f['containsRangeInObject']||_0x25944f['isInsideObject'])continue;if(_0x2948a7['data']['formatGroupId']!=_0x43d72c['formatGroupId'])continue;if(!Lt(_0x2948a7,_0x54421d))continue;const _0x46345f=_0x2948a7['getFirstRange']();if(_0x2948a7['subType']==_0x159c5c){if(_0x46345f['containsRange'](_0x2e9676,!0x0))return null;_0x4652ad=_0x4652ad['isBefore'](_0x46345f['start'])?_0x4652ad:_0x46345f['start'],_0xf52837=_0xf52837['isAfter'](_0x46345f['end'])?_0xf52837:_0x46345f['end'],_0x7c824e?_0x46345f['start']['isBefore'](_0x7c824e['getFirstRange']()['start'])?(_0x7c824e['removeMarkers'](),_0x7c824e=_0x2948a7):_0x2948a7['removeMarkers']():_0x7c824e=_0x2948a7;}else{const _0x26ea2b=_0x2e9676['getIntersection'](_0x46345f);this['_cutOutSuggestionMarker'](_0x2948a7,_0x26ea2b);}}const _0x52ab33=this['editor']['plugins']['get']('Users')['me'],_0x25e2fa=_0x5e29c1(),_0x16bacd=_0x52ab33['id'];if(_0x7c824e)return this['_setSuggestionRange'](_0x7c824e,this['_model']['createRange'](_0x4652ad,_0xf52837)),_0x7c824e;{const _0x15cc0b=this['_setSuggestionData']({'id':_0x25e2fa,'type':'formatBlock:'+_0x159c5c,'data':_0x43d72c,'createdAt':new Date(),'authorId':_0x16bacd,'attributes':_0x54421d});return this['_addSuggestionMarker']('formatBlock:'+_0x159c5c,_0x25e2fa,_0x16bacd,this['_model']['createRange'](_0x4652ad,_0xf52837)),_0x15cc0b;}}['markMultiRangeBlockFormat'](_0x5c2d35,_0x37fa76,_0x2b7c9a=[],_0x2f2fb9=null,_0x223aa2={}){_0x37fa76['formatGroupId']||(_0x37fa76['formatGroupId']=_0x37fa76['commandName']);const _0x48cf01=_0x5c2d35[0x0];_0x37fa76['multipleBlocks']=_0x48cf01['is']('range'),_0x2f2fb9=_0x2f2fb9||Vt(_0x37fa76);const _0x5b9481=_0x2b7c9a['map'](_0x4b8d1c=>Ft(_0x4b8d1c,this['_model'])),_0x21cfb5=_0x48cf01['is']('range')?_0x5c2d35:_0x5c2d35['map'](_0x3924d7=>Ft(_0x3924d7,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2dfb7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f2fb9,'accept');return this['forceDefaultExecution'](()=>_0x2dfb7f(_0x21cfb5,_0x37fa76,_0x223aa2)),null;}_0x5b9481['push'](..._0x21cfb5);let _0x1d9bc4=!0x0;for(const _0x4de71a of _0x5b9481)if(!this['_rangeIsInLocalUserInsertion'](_0x4de71a)){_0x1d9bc4=!0x1;break;}if(_0x1d9bc4&&'always'!==this['_trackFormatChanges']){const _0x5c34c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f2fb9,'accept');return this['forceDefaultExecution'](()=>_0x5c34c4(_0x21cfb5,_0x37fa76,_0x223aa2)),null;}const _0x24ec79=this['editor']['plugins']['get']('Users')['me'];for(const _0x233a6f of this['getSuggestions']()){if(_0x233a6f['author']['id']!=_0x24ec79['id'])continue;if('formatBlock'!=_0x233a6f['type']||_0x233a6f['data']['formatGroupId']!=_0x37fa76['formatGroupId'])continue;if(!Lt(_0x233a6f,_0x223aa2))continue;const _0x5cb281=_0x233a6f['subType']==_0x2f2fb9;for(let _0x305053=0x0;_0x305053<_0x21cfb5['length'];_0x305053++){const _0x4362b1=_0x21cfb5[_0x305053];for(const _0x493c90 of _0x233a6f['getMarkers']()){const _0x438cd6=_0x493c90['getRange']();if(_0x4362b1['isEqual'](_0x438cd6)){_0x5cb281?(_0x21cfb5['splice'](_0x305053,0x1),_0x305053--):_0x233a6f['removeMarker'](_0x493c90['name']);break;}}}}if(0x0==_0x21cfb5['length'])return null;const _0x56d2a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f2fb9,'join');for(const _0x4e3dd9 of this['getSuggestions']())if(_0x4e3dd9['author']['id']==_0x24ec79['id']&&'formatBlock'==_0x4e3dd9['type']&&_0x4e3dd9['data']['formatGroupId']==_0x37fa76['formatGroupId']&&_0x4e3dd9['subType']==_0x2f2fb9&&Lt(_0x4e3dd9,_0x223aa2)&&(_0x56d2a7(_0x4e3dd9['getRanges'](),_0x21cfb5)||_0x56d2a7(_0x21cfb5,_0x4e3dd9['getRanges']()))){for(const _0x416910 of _0x21cfb5)_0x4e3dd9['addRange'](_0x416910);return _0x4e3dd9;}const _0x5190ae=_0x5e29c1(),_0x439649=_0x24ec79['id'],_0x274b0b='formatBlock:'+_0x2f2fb9,_0x230f2f=this['_setSuggestionData']({'id':_0x5190ae,'type':_0x274b0b,'data':_0x37fa76,'createdAt':new Date(),'authorId':_0x439649,'attributes':_0x223aa2});for(const _0x117d8f of _0x21cfb5)this['_addSuggestionMarker'](_0x274b0b,_0x5190ae,_0x439649,_0x117d8f,u['getMultiRangeId']());return _0x230f2f;}['markDeletion'](_0x129ae5,_0x927831=null,_0x109c83={}){if(_0x129ae5['isCollapsed'])return null;const _0x4c7d24=this['editor']['plugins']['get']('Users')['me'],_0x54afd4=new _0x3939f1(_0x129ae5['start'],_0x129ae5['end']);for(const {suggestion:_0x397d53,meta:_0x283338}of this['_findSuggestions'](_0x54afd4,'insertion'))if(_0x283338['isOwn']&&!_0x283338['isNextTo']){if(_0x397d53['isMultiRange']){const _0x50384b=_0x397d53['getRanges']()['filter'](_0x151090=>'$graveyard'!=_0x151090['root']['rootName']);_0x50384b['every'](_0xa29a64=>_0x54afd4['containsRange'](_0xa29a64,!0x0))&&_0x397d53['discard']();if(_0x50384b['some'](_0x3621c9=>_0x3621c9['containsRange'](_0x54afd4,!0x0))){const _0x2ce884=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x927831,'accept');return this['forceDefaultExecution'](()=>_0x2ce884([_0x54afd4],null,_0x109c83)),null;}}else{const _0x42a03d=_0x54afd4['getIntersection'](_0x397d53['getFirstRange']());null!==_0x42a03d&&_0x397d53['_onDiscard']([_0x42a03d],null,_0x109c83);}}if(_0x54afd4['detach'](),_0x54afd4['isCollapsed']||'$graveyard'==_0x54afd4['root']['rootName'])return null;let _0x53792d=null,_0x577e2c=_0x54afd4['start'],_0x2a78f9=_0x54afd4['end'];const _0x2b426f=this['_findSuggestions'](_0x54afd4,'deletion');for(const {suggestion:_0x162448,meta:_0x3847c4}of _0x2b426f){const _0x3260fb=this['_model']['createRange'](_0x577e2c,_0x2a78f9);if(_0x3847c4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3847c4['containsRangeInObject']&&!_0x3847c4['isInsideObject'])){if(_0x162448['isMultiRange']){if(!Lt(_0x162448,_0x109c83))continue;let _0x3190dd=!0x0;for(const _0xa859d2 of _0x162448['getRanges']()){if(_0xa859d2['containsRange'](_0x3260fb,!0x0))return _0x162448;_0x3260fb['containsRange'](_0xa859d2)||(_0x3190dd=!0x1);}_0x3190dd&&_0x162448['discard']();}else{const _0x1b23f9=_0x162448['getFirstRange']();if(_0x1b23f9['containsRange'](_0x3260fb,!0x0))return _0x162448;if(!Lt(_0x162448,_0x109c83)){_0x3260fb['containsRange'](_0x1b23f9)?_0x162448['removeMarkers']():_0x1b23f9['containsPosition'](_0x577e2c)?_0x577e2c=_0x1b23f9['end']:_0x1b23f9['containsPosition'](_0x2a78f9)&&(_0x2a78f9=_0x1b23f9['start']);continue;}_0x577e2c=_0x577e2c['isBefore'](_0x1b23f9['start'])?_0x577e2c:_0x1b23f9['start'],_0x2a78f9=_0x2a78f9['isAfter'](_0x1b23f9['end'])?_0x2a78f9:_0x1b23f9['end'],_0x109c83=Object['assign']({},_0x162448['attributes']),_0x53792d?_0x1b23f9['start']['isBefore'](_0x53792d['getFirstRange']()['start'])?(_0x53792d['removeMarkers'](),_0x53792d=_0x162448):_0x162448['removeMarkers']():_0x53792d=_0x162448;}}}if(_0x53792d)return this['_setSuggestionRange'](_0x53792d,this['_model']['createRange'](_0x577e2c,_0x2a78f9)),_0x53792d;{const _0x30dd15=_0x5e29c1(),_0x234aae=this['_model']['createRange'](_0x577e2c,_0x2a78f9),_0x5e5524=_0x4c7d24['id'],_0x3ac516=_0x927831?'deletion:'+_0x927831:'deletion',_0x21b6a4=this['_setSuggestionData']({'id':_0x30dd15,'type':_0x3ac516,'createdAt':new Date(),'authorId':_0x5e5524,'attributes':_0x109c83});return this['_addSuggestionMarker'](_0x3ac516,_0x30dd15,_0x5e5524,_0x234aae),_0x21b6a4;}}['markMultiRangeDeletion'](_0x1e8dcf,_0x586b99='multi',_0x339542={}){const _0x253a09=this['editor']['plugins']['get']('Users')['me'],_0x11839f=_0x1e8dcf['map'](_0x2a8866=>new _0x3939f1(_0x2a8866['start'],_0x2a8866['end'])),_0x591569=new Set();for(const {suggestion:_0x264419,meta:_0x580308}of this['_findSuggestions'](_0x11839f,'insertion'))_0x580308['isOwn']&&!_0x580308['isNextTo']&&_0x591569['add'](_0x264419);for(const _0x43f483 of _0x591569)if(_0x43f483['isMultiRange']){const _0x1f05c4=_0x43f483['getRanges']();(!_0x43f483['attributes']||!_0x43f483['attributes']['skipNestingCheck'])&&(_0x1f05c4['every'](_0x5532d0=>_0x11839f['some'](_0x207b45=>_0x207b45['containsRange'](_0x5532d0,!0x0)))&&_0x43f483['discard']());if(_0x11839f['every'](_0x3c9db6=>_0x1f05c4['some'](_0x5318a6=>_0x5318a6['containsRange'](_0x3c9db6,!0x0)))){const _0x1bf200=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x586b99,'accept');return this['forceDefaultExecution'](()=>_0x1bf200(_0x1e8dcf,null,_0x339542)),null;}}else{const _0x4945f1=_0x43f483['getFirstRange']();_0x11839f['some'](_0x334c5c=>_0x334c5c['containsRange'](_0x4945f1,!0x0))&&_0x43f483['discard']();if(_0x11839f['every'](_0x1f1d0f=>_0x4945f1['containsRange'](_0x1f1d0f,!0x0))){const _0x431494=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x586b99,'accept');return this['forceDefaultExecution'](()=>_0x431494(_0x11839f,null,_0x339542)),null;}}const _0x322f8a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x586b99,'join');let _0x352d1e=null;for(const _0x4c3516 of this['getSuggestions']())if(_0x4c3516['author']['id']==_0x253a09['id']&&_0x4c3516['isInContent']&&'deletion'==_0x4c3516['type']&&_0x4c3516['subType']==_0x586b99&&Lt(_0x4c3516,_0x339542)&&(_0x322f8a(_0x4c3516['getRanges'](),_0x11839f)||_0x322f8a(_0x11839f,_0x4c3516['getRanges']()))){if(_0x352d1e){if(_0x4c3516['commentThread']&&_0x4c3516['commentThread']['length'])continue;for(const _0x3e5883 of _0x4c3516['getRanges']())_0x352d1e['isIntersectingWithRange'](_0x3e5883)||_0x352d1e['addRange'](_0x3e5883);_0x4c3516['removeMarkers']();}else{_0x352d1e=_0x4c3516;for(const _0x2a94fb of _0x11839f)_0x4c3516['isIntersectingWithRange'](_0x2a94fb)||_0x4c3516['addRange'](_0x2a94fb);}}if(_0x352d1e)return _0x352d1e;_0x591569['clear']();for(const {suggestion:_0x2e4e44,meta:_0x18fd3e}of this['_findSuggestions'](_0x11839f,'deletion'))_0x18fd3e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x18fd3e['containsRangeInObject']&&!_0x18fd3e['isInsideObject'])&&Lt(_0x2e4e44,_0x339542)&&_0x591569['add'](_0x2e4e44);for(const _0x11ae43 of _0x591569){const _0xaa1759=_0x11ae43['getRanges']();if(!_0x339542||!_0x339542['skipNestingCheck']){if(_0x11839f['every'](_0x5a1a78=>_0xaa1759['some'](_0x122d6a=>_0x122d6a['containsRange'](_0x5a1a78,!0x0))))return _0x11ae43;}(!_0x11ae43['attributes']||!_0x11ae43['attributes']['skipNestingCheck'])&&(_0xaa1759['every'](_0x98a6da=>_0x11839f['some'](_0x35d634=>_0x35d634['containsRange'](_0x98a6da,!0x0)))&&_0x11ae43['discard']());}const _0x518c90=_0x5e29c1(),_0x3b8769=_0x253a09['id'],_0x18cd9d='deletion:'+_0x586b99,_0x1eca66=this['_setSuggestionData']({'id':_0x518c90,'type':_0x18cd9d,'createdAt':new Date(),'authorId':_0x3b8769,'attributes':_0x339542});for(const _0x46163e of _0x11839f)_0x46163e['detach'](),_0x46163e['isCollapsed']||'$graveyard'==_0x46163e['root']['rootName']||this['_addSuggestionMarker'](_0x18cd9d,_0x518c90,_0x3b8769,_0x46163e,u['getMultiRangeId']());return _0x1eca66;}['markAttributeChange'](_0x2bd196,_0x155edc,_0x3e57b5,_0x35638a,_0x273db0){if(_0x2bd196['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa4f31=this['editor']['plugins']['get']('Users')['me']['id'],_0x3971b3=Array['from'](this['_suggestions']['values']())['filter'](_0x2ce803=>'attribute'==_0x2ce803['type']&&_0x2ce803['data']['key']==_0x155edc&&_0x2ce803['isIntersectingWithRange'](_0x2bd196));if('default'===this['_trackFormatChanges']){const _0x116eb4=this['_findSuggestions'](_0x2bd196,'insertion')['filter'](({meta:_0x59a3d2})=>_0x59a3d2['isOwn']&&!_0x59a3d2['isInsideObject']&&!_0x59a3d2['isNextTo'])['map'](({suggestion:_0x24f83e})=>_0x24f83e);_0x3971b3['unshift'](..._0x116eb4);}const _0x571725=new Map([[_0x2bd196,_0x3e57b5]]);for(const _0x169f1e of _0x3971b3){const _0x5ba6ae='attribute'==_0x169f1e['type']?_0x169f1e['data']['oldValue']:void 0x0,_0xfce7fe=_0x169f1e['getFirstRange'](),_0x2049f1=Array['from'](_0x571725['keys']())['find'](_0x23c10b=>_0x23c10b['isIntersecting'](_0xfce7fe));if(!_0x2049f1)continue;const _0x420a4f=_0x2049f1['getDifference'](_0xfce7fe);this['_isBlockAttribute'](_0x155edc)&&'insertion'==_0x169f1e['type']&&0x0!=_0x420a4f['length']||(_0x571725['delete'](_0x2049f1),_0x420a4f['forEach'](_0x4f77d9=>{_0x571725['set'](_0x4f77d9,_0x3e57b5);}),'insertion'!=_0x169f1e['type']&&_0x5ba6ae!=_0x35638a&&_0x571725['set'](_0x2049f1['getIntersection'](_0xfce7fe),_0x5ba6ae));}const _0x9b7c2c=[];for(const [_0x2b95cc,_0x2a1284]of _0x571725){const _0x47556c=_0x5e29c1(),_0x4d3e99={'key':_0x155edc,'oldValue':_0x2a1284,'newValue':_0x35638a};_0x155edc['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':_0x155edc});const _0x5d849e=('attribute:'+(_0x155edc+'|'+Vt({'newValue':_0x35638a})))['substring'](0x0,0x3c),_0x4b189c=this['_setSuggestionData']({'id':_0x47556c,'type':_0x5d849e,'data':_0x4d3e99,'createdAt':new Date(),'authorId':_0xa4f31,'attributes':_0x273db0});_0x9b7c2c['push'](_0x4b189c),this['_addSuggestionMarker'](_0x5d849e,_0x47556c,_0xa4f31,_0x2b95cc);}return _0x9b7c2c;}['enableDefaultAttributesIntegration'](_0xa396b7){this['enableCommand'](_0xa396b7,(_0x24b44a,..._0xd4b2b1)=>{this['_recordAttributeChanges'](()=>{_0x24b44a(..._0xd4b2b1);});});}['registerBlockAttribute'](_0x1cf58b){this['_blockAttributeKeys']['add'](_0x1cf58b);}['registerInlineAttribute'](_0x36318b){this['_inlineAttributeKeys']['add'](_0x36318b);}['_getAttributeKey'](_0xd41d6e){return'attribute'==_0xd41d6e['type']?_0xd41d6e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3160ef,_0x238f45){const _0x165fdb=_0x3160ef['getFirstMarker']();this['_model']['change'](_0x2924ac=>{_0x2924ac['updateMarker'](_0x165fdb,{'range':_0x238f45});});}['_addThreadToSuggestion'](_0x141b3f){const _0x2fc7ea=_0x141b3f['id'],_0x58323f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2fc7ea)||this['_commentsRepository']['addCommentThread']({'channelId':_0x58323f,'threadId':_0x2fc7ea,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x183b01=this['_commentsRepository']['getCommentThread'](_0x2fc7ea);_0x183b01['unbind']('isRemovable'),_0x183b01['isRemovable']=!0x1,_0x141b3f['commentThread']=_0x183b01;}['_checkSuggestionCorrectness'](_0x43435a,_0x3027d0,_0x462f64,_0x20eb47){if(_0x43435a['type']!=_0x3027d0||_0x43435a['subType']!=_0x462f64||_0x43435a['creator']['id']!=_0x20eb47)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x47d488('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xacc9f0,_0x1d049e){const _0x5313e3=_0xacc9f0['getFirstRange']();if(_0x1d049e['isEqual'](_0x5313e3))_0xacc9f0['removeMarkers']();else{if(_0x5313e3['containsRange'](_0x1d049e)){const _0xa6eaed=this['_model']['createPositionAt'](_0x1d049e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xacc9f0,this['_model']['createRange'](_0x5313e3['start'],_0xa6eaed));const _0x2c2abd=_0x5e29c1(),_0x458be9=_0xacc9f0['creator']['id'],_0x4a9469=_0xacc9f0['type']+':'+_0xacc9f0['subType'];this['_setSuggestionData']({'id':_0x2c2abd,'type':_0x4a9469,'createdAt':new Date(),'authorId':_0x458be9,'data':_0xacc9f0['data'],'attributes':_0xacc9f0['attributes']});const _0x3a05c5=this['_model']['createPositionAt'](_0x1d049e['end']['parent'],'after'),_0x4fc1f5=this['_model']['createRange'](_0x3a05c5,_0x5313e3['end']);this['_addSuggestionMarker'](_0x4a9469,_0x2c2abd,_0x458be9,_0x4fc1f5);}else{if(_0x5313e3['containsPosition'](_0x1d049e['start'])){const _0x589e6a=this['_model']['createPositionAt'](_0x1d049e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xacc9f0,this['_model']['createRange'](_0x5313e3['start'],_0x589e6a));}else{const _0x400e0d=this['_model']['createPositionAt'](_0x1d049e['end']['parent'],'after');this['_setSuggestionRange'](_0xacc9f0,this['_model']['createRange'](_0x400e0d,_0x5313e3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x980144){for(const {suggestion:_0x589a44,meta:_0x3243fd}of this['_findSuggestions'](_0x980144,'insertion')){if(!_0x3243fd['isOwn'])continue;const _0x12f098=_0x589a44['getRanges']();for(const _0x71a2dc of _0x12f098)if(!_0x980144['getDifference'](_0x71a2dc)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x53e99c){const _0x3544e6=this['editor']['plugins']['get']('Users')['getUser'](_0x53e99c);if(!_0x3544e6)throw new _0x47d488('track-changes-user-not-found',this);return _0x3544e6;}['_getExternalAuthor'](_0x22ffff){const _0x22d0ed=this['editor']['plugins']['get']('Users'),_0x304eea=_0x18cece('external:'+_0x22ffff),_0x4f95b0=_0x22d0ed['getUser'](_0x304eea);return _0x4f95b0||_0x22d0ed['addUser']({'id':_0x304eea,'name':_0x22ffff});}['_createSuggestion'](_0x43db2a,_0x2dfd8d,_0x540670,_0x452270,_0x34316f){const _0x2d23e6=this['_getAuthorFromId'](_0x452270),_0x56ee97=this['_suggestionFactory']['buildSuggestion'](_0x43db2a,_0x2dfd8d,_0x540670,_0x2d23e6,_0x34316f,_0x5de7d8=>{this['_updateSuggestionData'](_0x540670,{'attributes':_0x5de7d8});const _0x33557d=this['getSuggestion'](_0x540670);this['_joinWithAdjacentSuggestions'](new Set([_0x33557d])),this['_refreshSuggestionsChain'](new Set([_0x33557d]));});return this['listenTo'](_0x56ee97,'accept',()=>{this['_updateSuggestionData'](_0x540670,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x56ee97,'discard',()=>{this['_updateSuggestionData'](_0x540670,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x540670,_0x56ee97),this['_suggestionState']['set'](_0x56ee97,'notReady'),_0x56ee97;}['_splitMarkerName'](_0x4097cf){const _0x46602a=_0x4097cf['split'](':');return{'group':_0x46602a[0x0],'type':_0x46602a[0x1],'subType':_0x46602a['length']>=0x5?_0x46602a[0x2]:null,'id':_0x46602a['length']<0x5?_0x46602a[0x2]:_0x46602a[0x3],'authorId':_0x46602a['length']<0x5?_0x46602a[0x3]:_0x46602a[0x4],'markerCount':0x6==_0x46602a['length']?_0x46602a[0x5]:null};}['_breakSuggestionMarker'](_0x2e5bc7,_0x2e01be,_0x437bdf){const _0x4a1bec=_0x2e5bc7['getFirstRange'](),_0x4bcffc=_0x4a1bec['start'],_0x41f7a2=_0x4a1bec['end'];this['_setSuggestionRange'](_0x2e5bc7,this['_model']['createRange'](_0x4bcffc,_0x2e01be));const _0x132ed1=_0x5e29c1(),_0x30ac1a=_0x2e5bc7['creator']['id'],_0x2404d4=_0x2e5bc7['type']+(_0x2e5bc7['subType']?':'+_0x2e5bc7['subType']:'');this['_setSuggestionData']({'id':_0x132ed1,'type':_0x2404d4,'createdAt':new Date(),'authorId':_0x30ac1a,'originalSuggestionId':_0x2e5bc7['id'],'attributes':_0x2e5bc7['attributes'],'data':_0x2e5bc7['data']});const _0x48c8dd=this['_getAttributeKey'](_0x2e5bc7);('formatBlock'==_0x2e5bc7['type']||_0x48c8dd&&this['_isBlockAttribute'](_0x48c8dd))&&(_0x437bdf=this['_model']['createPositionBefore'](_0x437bdf['parent'])),this['_addSuggestionMarker'](_0x2404d4,_0x132ed1,_0x30ac1a,this['_model']['createRange'](_0x437bdf,_0x41f7a2));}['_findSuggestions'](_0x203441,_0x35cfeb=null){const _0x3fa2d5=[],_0x322ec3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x203441)||(_0x203441=[_0x203441]);for(const _0x241827 of this['getSuggestions']()){if(!_0x241827['isInContent'])continue;if(_0x35cfeb&&_0x241827['type']!=_0x35cfeb)continue;let _0x2b6b1d=!0x1;for(const _0x1b03ab of _0x241827['getRanges']()){for(const _0x502a04 of _0x203441){const _0x8da448=_0x502a04['start']['isEqual'](_0x1b03ab['end'])||_0x502a04['end']['isEqual'](_0x1b03ab['start']);if(_0x8da448||_0x502a04['getIntersection'](_0x1b03ab)){const _0x56de73=_0x502a04['containsRange'](_0x1b03ab)&&Rt(this['_model']['schema'],_0x1b03ab['start'],_0x502a04),_0x194c9f=_0x1b03ab['containsRange'](_0x502a04)&&Rt(this['_model']['schema'],_0x502a04['start'],_0x1b03ab);_0x3fa2d5['push']({'suggestion':_0x241827,'meta':{'isOwn':_0x322ec3==_0x241827['author'],'isNextTo':_0x8da448,'isInsideObject':_0x56de73,'containsRangeInObject':_0x194c9f}}),_0x2b6b1d=!0x0;break;}}if(_0x2b6b1d)break;}}return _0x3fa2d5;}['_addSuggestionMarker'](_0x3e1b14,_0x4a5b57,_0x13cd73,_0x29c1d4,_0x51de29){this['_model']['change'](_0x37c26c=>{let _0xc6b185='suggestion:'+_0x3e1b14+':'+_0x4a5b57+':'+_0x13cd73;_0x51de29&&(_0xc6b185=_0xc6b185+':'+_0x51de29),_0x37c26c['addMarker'](_0xc6b185,{'range':_0x29c1d4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x246b02){const _0x89f031=_0x246b02['previous'],_0x5737aa=_0x246b02['next'];_0x246b02['previous']=null,_0x246b02['next']=null,null!=_0x89f031&&_0x89f031['next']==_0x246b02&&(_0x89f031['next']=_0x5737aa),null!=_0x5737aa&&_0x5737aa['previous']==_0x246b02&&(_0x5737aa['previous']=_0x89f031),'ready'==this['_suggestionState']['get'](_0x246b02)&&(this['_suggestionState']['set'](_0x246b02,'removed'),this['fire']('suggestionUnloaded',_0x246b02,_0x89f031,_0x5737aa));}['_setSuggestionData'](_0x3a93da){const _0x49418c=_0x3a93da['id'],_0x5791dc=this['addSuggestionData'](_0x3a93da);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x464eb0=this['editor']['plugins']['get']('PendingActions'),_0x2efcea=_0x5791dc['hasComments'],_0xf93fa2=_0x5791dc['subType']?_0x5791dc['type']+':'+_0x5791dc['subType']:_0x5791dc['type'],_0x526ae8=this['editor']['locale'],_0x26179d=_0x464eb0['add'](o(_0x526ae8,'PENDING_ACTION_SUGGESTION')),_0x3d57ac={'id':_0x49418c,'type':_0xf93fa2,'hasComments':_0x2efcea,'data':_0x3a93da['data']||null,'originalSuggestionId':_0x3a93da['originalSuggestionId']||null,'attributes':_0x5791dc['attributes']};this['_adapter']['addSuggestion'](_0x3d57ac)['then'](_0x44e431=>{_0x5791dc['_saved']=!0x0,_0x464eb0['remove'](_0x26179d),_0x44e431&&_0x44e431['createdAt']&&(this['_suggestions']['get'](_0x49418c)['createdAt']=_0x44e431['createdAt']);})['catch'](_0x580d0b=>{throw _0x26e9c6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5791dc['discard']();}),_0x5791dc['stopListening'](),this['_suggestions']['delete'](_0x5791dc['id']),this['_suggestionState']['delete'](_0x5791dc),_0x580d0b;});}return _0x5791dc;}['_isBlockAttribute'](_0x1f859d){return this['_blockAttributeKeys']['has'](_0x1f859d);}['_updateSuggestionData'](_0x4017bc,_0x18c454){const _0x38b905=this['editor']['plugins']['get']('PendingActions'),_0x322d48=this['getSuggestion'](_0x4017bc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x322d48['_saved']){const _0x244756=_0x38b905['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4017bc,_0x18c454)['then'](()=>{_0x38b905['remove'](_0x244756);});}else _0x322d48['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4017bc,_0x18c454);});}}['_getSuggestionData'](_0x59d635){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x47d488('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x59d635);}['_handleNewSuggestionMarker'](_0x29c995){const {id:_0x16adfd,type:_0x170a62,subType:_0x2c0ffa,authorId:_0x169e1a}=this['_splitMarkerName'](_0x29c995),_0x5cedf0=this['_suggestions']['get'](_0x16adfd)||this['_createSuggestion'](_0x170a62,_0x2c0ffa,_0x16adfd,_0x169e1a,{});switch(this['_checkSuggestionCorrectness'](_0x5cedf0,_0x170a62,_0x2c0ffa,_0x169e1a),this['_suggestionState']['get'](_0x5cedf0)){case'notReady':this['_getSuggestionData'](_0x16adfd)['then'](_0xc36cbb=>{let _0x2d0255=Promise['resolve']();_0xc36cbb['hasComments']&&(_0x2d0255=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x16adfd})),_0x2d0255['then'](()=>{this['addSuggestionData'](_0xc36cbb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5cedf0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x16adfd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5cedf0,'ready'),this['fire']('suggestionLoaded',_0x5cedf0);break;case'ready':this['fire']('suggestionChanged',_0x5cedf0);}return _0x5cedf0['addMarkerName'](_0x29c995),_0x5cedf0;}['_refreshSuggestionsChain'](_0xadd035){const _0x39aee7=Array['from'](_0xadd035),_0x3fc6c6=_0x39aee7['filter'](_0x2aba5d=>'attribute'==_0x2aba5d['type']);this['_refreshAttributeSuggestionsChain'](_0x3fc6c6);const _0x45e8cc=_0x39aee7['filter'](_0x3d7cd6=>!_0x3d7cd6['isMultiRange']&&'attribute'!=_0x3d7cd6['type']),_0x4cfd3a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x642eaa=>!_0x642eaa['isMultiRange']&&'attribute'!=_0x642eaa['type']),_0x28f52d=_0x4cfd3a['filter'](_0x44b737=>!_0xadd035['has'](_0x44b737)),_0x2a12b1=new Map(_0x4cfd3a['map'](_0x5699d5=>[_0x5699d5,this['_suggestionFactory']['getSuggestionCallback'](_0x5699d5['type'],_0x5699d5['subType'],'chain')])),_0xe24cfc=new Map(_0x4cfd3a['map'](_0x2ceb90=>[_0x2ceb90,_0x2ceb90['getFirstRange']()])),_0x134008=new Set(),_0x32ce14=new Set();for(let _0x2c6b84=0x0;_0x2c6b84<_0x45e8cc['length'];_0x2c6b84++)_0x2683a8(_0x45e8cc[_0x2c6b84],_0x45e8cc,_0x2c6b84+0x1);for(let _0x1ba83a=0x0;_0x1ba83a<_0x45e8cc['length'];_0x1ba83a++)_0x2683a8(_0x45e8cc[_0x1ba83a],_0x28f52d,0x0);const _0x16d4f4=new Set();for(let _0x1bdf23=0x0;_0x1bdf23<_0x45e8cc['length'];_0x1bdf23++){const _0x4c6733=_0x45e8cc[_0x1bdf23];!_0x32ce14['has'](_0x4c6733)&&_0x4c6733['previous']&&(_0x16d4f4['add'](_0x4c6733['previous']),_0x4c6733['previous']['next']===_0x4c6733&&(_0x4c6733['previous']['next']=null),_0x4c6733['previous']=null),!_0x134008['has'](_0x4c6733)&&_0x4c6733['next']&&(_0x16d4f4['add'](_0x4c6733['next']),_0x4c6733['next']['previous']===_0x4c6733&&(_0x4c6733['next']['previous']=null),_0x4c6733['next']=null);}function _0x2683a8(_0x48ac2d,_0x41fa21,_0x5219fb){for(let _0x5b9246=_0x5219fb;_0x5b9246<_0x41fa21['length'];_0x5b9246++){const _0x2a5716=_0x3119fb(_0x48ac2d,_0x41fa21[_0x5b9246]);_0x2a5716&&(_0x2a5716[0x0]['next']=_0x2a5716[0x1],_0x2a5716[0x1]['previous']=_0x2a5716[0x0],_0x134008['add'](_0x2a5716[0x0]),_0x32ce14['add'](_0x2a5716[0x1]));}}function _0x3119fb(_0x25c3a9,_0x4de5ea){if(_0x25c3a9['author']['id']!==_0x4de5ea['author']['id'])return null;const _0x5b3a47=_0x2a12b1['get'](_0x25c3a9)(_0x25c3a9,_0x4de5ea,_0xe24cfc['get'](_0x25c3a9),_0xe24cfc['get'](_0x4de5ea));if(!_0x5b3a47)return null;return _0x2a12b1['get'](_0x4de5ea)(_0x25c3a9,_0x4de5ea,_0xe24cfc['get'](_0x25c3a9),_0xe24cfc['get'](_0x4de5ea))?_0x5b3a47[0x1]['commentThread']&&_0x5b3a47[0x1]['commentThread']['length']?null:_0x5b3a47:null;}_0x16d4f4['size']&&this['_refreshSuggestionsChain'](_0x16d4f4);}['_refreshAttributeSuggestionsChain'](_0x438838){if(0x0==_0x438838['length'])return;const _0x3d0472=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x494eac=>'attribute'==_0x494eac['type']&&_0x494eac['_isDataLoaded']),_0x1b0810=[],_0xd9cb22=new Map();for(const _0x30df21 of _0x3d0472){const _0xfcc4d=_0x18cece(_0x30df21['attributes']);_0xd9cb22['has'](_0xfcc4d)||(_0xd9cb22['set'](_0xfcc4d,_0x1b0810['length']),_0x1b0810['push']([]));const _0x2f5cd0=_0xd9cb22['get'](_0xfcc4d);_0x1b0810[_0x2f5cd0]['push'](_0x30df21);}!(function(){_0x1b0810['sort']((_0x21e61a,_0x34357e)=>{const _0x4eedd0=_0x21e61a[0x0]['createdAt'],_0x1a5259=_0x34357e[0x0]['createdAt'];return _0x4eedd0==_0x1a5259?_0x21e61a[0x0]['attributes']['groupId']<_0x34357e[0x0]['attributes']['groupId']?-0x1:0x1:_0x4eedd0<_0x1a5259?-0x1:0x1;});for(const _0x590a35 of _0x1b0810)_0x590a35['sort']((_0x2b2c4a,_0x559679)=>_0x2b2c4a['id']<_0x559679['id']?-0x1:0x1);}());for(let _0x49e32f=0x0;_0x49e32f<_0x1b0810['length'];_0x49e32f++){if(0x0==_0x1b0810[_0x49e32f]['length'])continue;const _0x342e90=[];for(let _0x365c56=_0x49e32f+0x1;_0x365c56<_0x1b0810['length'];_0x365c56++)0x0!=_0x1b0810[_0x365c56]['length']&&_0x56890a(_0x1b0810[_0x49e32f],_0x1b0810[_0x365c56])&&_0x342e90['push'](_0x365c56);for(const _0x1b8020 of _0x342e90)_0x1b0810[_0x49e32f]=_0x1b0810[_0x49e32f]['concat'](_0x1b0810[_0x1b8020]),_0x1b0810[_0x1b8020]=[];}for(const _0x138e7b of _0x1b0810)for(let _0x43d9ce=0x0;_0x43d9ce<_0x138e7b['length'];_0x43d9ce++)_0x138e7b[_0x43d9ce]['next']=_0x138e7b[_0x43d9ce+0x1]||null;for(const _0x4011c4 of _0x1b0810)for(let _0x2d5ff0=0x0;_0x2d5ff0<_0x4011c4['length'];_0x2d5ff0++)_0x4011c4[_0x2d5ff0]['previous']=_0x4011c4[_0x2d5ff0-0x1]||null;function _0x56890a(_0x487516,_0x6c381d){if(_0x487516[0x0]['attributes']['groupId']!==_0x6c381d[0x0]['attributes']['groupId']&&_0x487516[0x0]['author']!==_0x6c381d[0x0]['author'])return!0x1;if(!function(_0x704633,_0x276a9d){if(!_0x704633['hasComments']&&!_0x276a9d['hasComments'])return!0x0;if(_0x704633['hasComments']&&_0x276a9d['hasComments'])return!0x1;if(_0x704633['hasComments']&&_0x276a9d['createdAt']<_0x704633['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x276a9d['hasComments']&&_0x704633['createdAt']<_0x276a9d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x487516[0x0],_0x6c381d[0x0]))return!0x1;const _0x52abf7=Bt(_0x487516[0x0]['attributes'],'groupId'),_0x14634a=Bt(_0x6c381d[0x0]['attributes'],'groupId');if(!_0x29bdc1(_0x52abf7,_0x14634a))return!0x1;return!!_0x487516['every'](_0xe8da27=>_0x6c381d['some'](_0x372721=>_0xe8da27['getFirstRange']()['isEqual'](_0x372721['getFirstRange']())))&&_0x6c381d['every'](_0x2f35b2=>_0x487516['some'](_0x2b1203=>_0x2f35b2['getFirstRange']()['isEqual'](_0x2b1203['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4e0a72){const _0x47c8ee=Array['from'](_0x4e0a72),_0x4e43cb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x317770=_0x4e43cb['filter'](_0x5c99ea=>!_0x4e0a72['has'](_0x5c99ea)),_0x1adc0a=new Map(_0x47c8ee['map'](_0x54863a=>[_0x54863a,this['_suggestionFactory']['getSuggestionCallback'](_0x54863a['type'],_0x54863a['subType'],'join')])),_0x58e3e5=new Map(_0x4e43cb['map'](_0x30c1ed=>[_0x30c1ed,_0x30c1ed['getRanges']()]));for(let _0x4eac1a=0x0;_0x4eac1a<_0x47c8ee['length'];_0x4eac1a++){if(_0xf337ae(this,_0x47c8ee[_0x4eac1a],_0x47c8ee,_0x4eac1a+0x1))return!0x0;}for(let _0x1c5cef=0x0;_0x1c5cef<_0x47c8ee['length'];_0x1c5cef++){if(_0xf337ae(this,_0x47c8ee[_0x1c5cef],_0x317770,0x0))return!0x0;}return!0x1;function _0xf337ae(_0xb7cb61,_0x41d84d,_0x42575e,_0x32b5b7){for(let _0x21f26e=_0x32b5b7;_0x21f26e<_0x42575e['length'];_0x21f26e++){const _0x267c31=_0x42575e[_0x21f26e];if(_0x267c31['type']!==_0x41d84d['type']||_0x267c31['author']['id']!==_0x41d84d['author']['id']||_0x267c31['subType']!==_0x41d84d['subType'])continue;if(!Pt(_0x41d84d,_0x267c31,['groupId']))continue;if('attribute'==_0x41d84d['type']&&_0x41d84d['data']['oldValue']!=_0x267c31['data']['oldValue'])continue;if('attribute'==_0x41d84d['type']&&_0xb7cb61['_isBlockAttribute'](_0x41d84d['data']['key']))continue;if('formatBlock'==_0x41d84d['type']){const _0x89f0a6=_0xb7cb61['editor']['model'],_0x27b240=_0x41d84d['getContainedElement']();if(_0x27b240&&(_0x89f0a6['schema']['isObject'](_0x27b240)||_0x89f0a6['schema']['isLimit'](_0x27b240)))continue;}const _0x1cc818=_0x1adc0a['get'](_0x41d84d),_0x20d903=_0x58e3e5['get'](_0x41d84d),_0x4ebf3c=_0x58e3e5['get'](_0x267c31),_0x5c1fb5=_0x41d84d['commentThread']&&_0x41d84d['commentThread']['length'],_0x3eb045=_0x267c31['commentThread']&&_0x267c31['commentThread']['length'];if(!_0x5c1fb5&&_0x1cc818(_0x4ebf3c,_0x20d903))return _0xb7cb61['_joinSuggestions'](_0x267c31,_0x41d84d),_0x58e3e5['delete'](_0x41d84d),!0x0;if(!_0x3eb045&&_0x1cc818(_0x20d903,_0x4ebf3c))return _0xb7cb61['_joinSuggestions'](_0x41d84d,_0x267c31),_0x58e3e5['delete'](_0x267c31),!0x0;}return!0x1;}}['_joinSuggestions'](_0x372133,_0x436461){if(_0x372133['isMultiRange']){for(const _0x2dd600 of _0x436461['getRanges']())_0x372133['addRange'](_0x2dd600);}else{const _0x4ffc18=_0x436461['getFirstRange']()['end'];this['_setSuggestionRange'](_0x372133,this['_model']['createRange'](_0x372133['getFirstRange']()['start'],_0x4ffc18));}_0x436461['removeMarkers']();}['_getMarkerAnnouncementText'](_0x20785e,_0x296513){const _0x30d443=_0x20785e['startsWith']('format')||_0x20785e['startsWith']('attribute')?'FORMATTING':_0x20785e['toUpperCase']();return o(this['editor']['locale'],_0x296513+'_'+_0x30d443+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5360e1=this['editor'];if(!_0x5360e1['ui'])return;const {ariaLiveAnnouncer:_0x48569d}=_0x5360e1['ui'];_0xae6502(this['_model'],({left:_0x44d54f,entered:_0x47b963})=>{for(const _0x2cd3e5 of _0x44d54f){const {group:_0x1c79ce,type:_0x33a833}=this['_splitMarkerName'](_0x2cd3e5['name']);if('suggestion'===_0x1c79ce){_0x48569d['announce'](this['_getMarkerAnnouncementText'](_0x33a833,'LEAVE'));break;}}for(const _0x5b1fe0 of _0x47b963){const {group:_0x5b01dd,type:_0xadfa43}=this['_splitMarkerName'](_0x5b1fe0['name']);if('suggestion'===_0x5b01dd){_0x48569d['announce'](this['_getMarkerAnnouncementText'](_0xadfa43,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5c3b59){if(this['_recordAttributeSuggestions'])return!0x1;const _0x264251=this['editor'],_0x3cd827=_0x264251['model']['document']['differ']['getChanges']();if(0x0==_0x3cd827['length'])return!0x1;const _0x1f974c=[],_0x4b6594=_0x3cd827['filter'](_0x44a77b=>'attribute'==_0x44a77b['type']),_0x4cee2b=_0x3cd827['filter'](_0x59e9ee=>'insert'==_0x59e9ee['type']&&'$text'!=_0x59e9ee['name']),_0xf13e50=_0x3cd827['filter'](_0xb0b63f=>'remove'==_0xb0b63f['type']&&'$text'!=_0xb0b63f['name']);for(const _0xd08e49 of _0x4b6594)_0x1f974c['push']({'key':_0xd08e49['attributeKey'],'newValue':_0xd08e49['attributeNewValue'],'oldValue':_0xd08e49['attributeOldValue'],'range':Ot(_0xd08e49['range'],_0x264251['model'])});for(const _0x1dda16 of _0x4cee2b){const _0x5d861f=_0xf13e50['find'](_0xf7309d=>_0xf7309d['position']['isEqual'](_0x1dda16['position']));_0x5d861f&&_0x1f974c['push']({'key':m,'newValue':_0x1dda16['name'],'oldValue':_0x5d861f['name'],'range':_0x264251['model']['createRangeOn'](_0x1dda16['position']['nodeAfter'])});}return 0x0!=_0x1f974c['length']&&this['_reduceExistingSuggestions'](_0x5c3b59,_0x1f974c);}['_processAttributeSuggestions'](_0x326336){let _0x43ceea=!0x1;const _0x35e705=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x646acd=>_0x646acd['data']['newRange']&&_0x646acd['name']['startsWith']('suggestion:attribute:'));for(const _0x191b21 of _0x35e705){const {subType:_0x6f4b61,id:_0x262b91}=this['_splitMarkerName'](_0x191b21['name']),_0x183d9=_0x6f4b61['split']('|')[0x0];for(const _0x58d46b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x58d46b['id']!=_0x262b91&&'attribute'==_0x58d46b['type']&&_0x58d46b['data']&&_0x58d46b['data']['key']==_0x183d9&&_0x58d46b['getFirstRange']()['isIntersecting'](_0x191b21['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x58d46b,_0x191b21['data']['newRange'],_0x326336),_0x43ceea=!0x0);}return _0x43ceea;}['_recordAttributeChanges'](_0x4b7fd0){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4b7fd0();}['_isRegisteredAttribute'](_0x55d69d){const _0x34a990=this['_isBlockAttribute'](_0x55d69d),_0x46979d=this['_inlineAttributeKeys']['has'](_0x55d69d);return _0x34a990||_0x46979d;}['_reduceExistingSuggestions'](_0x2eb4fb,_0x33f21c){if(0x0==_0x33f21c['length'])return!0x1;let _0x53280b=!0x1;for(const _0x31f8be of _0x33f21c){const _0x1c349f=this['_findSuggestions'](_0x31f8be['range'],'attribute')['filter'](_0x1236bd=>!_0x1236bd['meta']['isNextTo'])['map'](_0x5be19e=>_0x5be19e['suggestion']),_0x25538a=_0x18cece({'newValue':_0x31f8be['newValue']});_0x1c349f['filter'](_0x57b489=>{const [_0x16e5d8,_0x5346f7]=_0x57b489['subType']['split']('|');return _0x16e5d8==_0x31f8be['key']&&_0x5346f7!=_0x25538a;})['forEach'](_0x327ef5=>{this['_reduceSuggestionAttributeRange'](_0x327ef5,_0x31f8be['range'],_0x2eb4fb),_0x53280b=!0x0;});}return _0x53280b;}['_reduceSuggestionAttributeRange'](_0x146451,_0x28335e,_0x23d5e9){const _0x1d8006=_0x146451['getFirstRange']()['getDifference'](_0x28335e);0x0!==_0x1d8006['length']?0x1!==_0x1d8006['length']?this['_breakSuggestionMarker'](_0x146451,_0x28335e['start'],_0x28335e['end']):this['_setSuggestionRange'](_0x146451,_0x1d8006[0x0]):_0x23d5e9['removeMarker'](_0x146451['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b53c1){this['_editor']=_0x5b53c1,this['_model']=_0x5b53c1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1dde0f,_0x88ac65,_0x1aa6a2,_0x208ebd,_0x207ed0,_0x3289b9){return new u(this['_model'],{'type':_0x1dde0f,'subType':_0x88ac65,'id':_0x1aa6a2,'author':_0x208ebd,'creator':_0x208ebd,'attributes':_0x207ed0,'onAttributesChange':_0x3289b9,'onAccept':(..._0x1daa17)=>this['getSuggestionCallback'](_0x1dde0f,_0x88ac65,'accept')(..._0x1daa17),'onDiscard':(..._0x1003e3)=>this['getSuggestionCallback'](_0x1dde0f,_0x88ac65,'discard')(..._0x1003e3)});}['registerCustomCallback'](_0x33d41e,_0x1003bc,_0x1f0277,_0x3974b1){const _0x2d2546=_0x33d41e+':'+_0x1003bc+':'+_0x1f0277;this['_customCallbacks']['set'](_0x2d2546,_0x3974b1);}['getSuggestionCallback'](_0x36d43f,_0x45c60d,_0x29ef36){const _0x292558=_0x36d43f+':'+_0x45c60d+':'+_0x29ef36;return this['_customCallbacks']['get'](_0x292558)||this['_defaultCallbacks']['get'](_0x36d43f+':'+_0x29ef36);}['_registerDefaultCallbacks'](){const _0x544c55=()=>!0x1,_0x2c466d=_0x6ca7a4=>{_0x6ca7a4['sort']((_0x2bcd1b,_0xbba6e4)=>_0x2bcd1b['start']['isBefore'](_0xbba6e4['start'])?0x1:-0x1),this['_model']['change'](_0x5d23e1=>{for(const _0x50fefe of _0x6ca7a4){let _0x4865ed;_0x4865ed=_0x50fefe['end']['isAtEnd']&&_0x50fefe['end']['parent']==_0x50fefe['start']['nodeAfter']?_0x5d23e1['createSelection'](_0x50fefe['start']['nodeAfter'],'on'):_0x5d23e1['createSelection'](_0x50fefe),this['_model']['deleteContent'](_0x4865ed,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4b665e=(_0x14d9e6,_0x280556)=>{_0x280556&&this['_model']['change'](_0x2994dc=>{const {commandName:_0x23de76,commandParams:_0x213672=[]}=_0x280556,_0x424172=_0x14d9e6['map'](_0x529f5d=>(Tt(_0x529f5d)&&(_0x529f5d=this['_model']['createRange'](_0x529f5d['end'])),_0x529f5d))['filter'](_0x323b45=>'$graveyard'!==_0x323b45['root']['rootName']);if(_0x424172['length']<0x1)return;const _0x441271=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x32a398=>_0x3939f1['fromRange'](_0x32a398));_0x2994dc['setSelection'](_0x424172);for(const _0x257a3d of this['_editor']['commands']['commands']())_0x257a3d['refresh']();_0x213672['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x23de76,..._0x213672);const _0x21c77a=_0x441271['filter'](_0x2e3a67=>'$graveyard'!=_0x2e3a67['root']['rootName']);_0x21c77a['length']>0x0&&_0x2994dc['setSelection'](_0x21c77a);for(const _0x4ad728 of _0x441271)_0x4ad728['detach']();});},_0x232902=(_0x32d828,_0x5c4fea)=>0x1==_0x32d828['length']&&0x1==_0x5c4fea['length']&&_0x32d828[0x0]['end']['isEqual'](_0x5c4fea[0x0]['start']),_0x523e50=(_0x1e14a7,_0x3a6cf9,_0x25cb59,_0x249e9e)=>Gt(_0x1e14a7,_0x3a6cf9,_0x25cb59,_0x249e9e,this['_model'])?[_0x1e14a7,_0x3a6cf9]:Gt(_0x3a6cf9,_0x1e14a7,_0x249e9e,_0x25cb59,this['_model'])?[_0x3a6cf9,_0x1e14a7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x544c55),this['_defaultCallbacks']['set']('insertion:discard',_0x2c466d),this['_defaultCallbacks']['set']('insertion:join',_0x232902),this['_defaultCallbacks']['set']('insertion:chain',_0x523e50),this['_defaultCallbacks']['set']('deletion:accept',_0x2c466d),this['_defaultCallbacks']['set']('deletion:discard',_0x544c55),this['_defaultCallbacks']['set']('deletion:join',_0x232902),this['_defaultCallbacks']['set']('deletion:chain',_0x523e50),this['_defaultCallbacks']['set']('formatInline:accept',_0x4b665e),this['_defaultCallbacks']['set']('formatInline:discard',_0x544c55),this['_defaultCallbacks']['set']('formatInline:join',_0x232902),this['_defaultCallbacks']['set']('formatInline:chain',_0x544c55),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4b665e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x544c55),this['_defaultCallbacks']['set']('formatBlock:join',_0x232902),this['_defaultCallbacks']['set']('formatBlock:chain',_0x544c55),this['_defaultCallbacks']['set']('attribute:accept',_0x544c55),this['_defaultCallbacks']['set']('attribute:discard',(_0x439aee,_0x3d2848)=>{if(!_0x3d2848)return;const _0x148534=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1a64e5=>{if(_0x3d2848['key']==m)for(const _0x52a972 of _0x439aee){const _0x58735d=_0x52a972['start']['nodeAfter'],_0x40f17f=_0x3d2848['oldValue'];_0x1a64e5['rename'](_0x58735d,_0x40f17f);}else{if(_0x148534['_isBlockAttribute'](_0x3d2848['key'])){for(const _0x17a966 of _0x439aee)void 0x0!==_0x3d2848['oldValue']?_0x1a64e5['setAttribute'](_0x3d2848['key'],_0x3d2848['oldValue'],_0x17a966['start']['nodeAfter']):_0x1a64e5['removeAttribute'](_0x3d2848['key'],_0x17a966['start']['nodeAfter']);}else{for(const _0x1fa871 of _0x439aee)_0x3d2848['oldValue']?_0x1a64e5['setAttribute'](_0x3d2848['key'],_0x3d2848['oldValue'],_0x1fa871):_0x1a64e5['removeAttribute'](_0x3d2848['key'],_0x1fa871);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x232902);}}function Rt(_0x31d02f,_0x4022cf,_0x4e2eab){for(const _0x15074e of _0x4022cf['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x15074e['root']==_0x15074e)return!0x1;if(!_0x4e2eab['containsItem'](_0x15074e))return!0x1;if(_0x31d02f['isObject'](_0x15074e)||_0x31d02f['isLimit'](_0x15074e))return!0x0;}return!0x1;}function Tt(_0x37ab87){return _0x37ab87['end']['parent']==_0x37ab87['start']['nodeAfter']&&_0x37ab87['end']['isAtStart'];}function Et(_0x561cb2,_0x4b637e,_0x231588,_0x119a21){const _0x1587ec=_0x47f757=>!_0x47f757['item']['is']('$textProxy')&&!_0x119a21['isObject'](_0x47f757['item']),_0x335ff4=_0x561cb2['start']['getLastMatchingPosition'](_0x1587ec),_0x7991f4=_0x561cb2['end']['getLastMatchingPosition'](_0x1587ec,{'direction':'backward'});return(!_0x561cb2['start']['isEqual'](_0x335ff4)||!_0x561cb2['end']['isEqual'](_0x7991f4))&&(_0x335ff4['isBefore'](_0x7991f4)?_0x231588['updateMarker'](_0x4b637e,{'range':_0x231588['createRange'](_0x335ff4,_0x7991f4)}):_0x231588['removeMarker'](_0x4b637e),!0x0);}function Vt(_0x450834){return _0x18cece(_0x450834);}function Ut(_0x15d1b8){const _0x440620=_0x15d1b8['start']['nodeAfter'];return _0x440620&&_0x440620['is']('element');}function Ot(_0x58e12c,_0x3a5084){return null==_0x58e12c['end']['nodeBefore']&&_0x58e12c['end']['parent']==_0x58e12c['start']['nodeAfter']?Ft(_0x58e12c['start']['nodeAfter'],_0x3a5084):_0x58e12c;}function Ft(_0x12283c,_0x4bcfe1){const _0x5c7784=_0x4bcfe1['schema']['isObject'](_0x12283c)||_0x4bcfe1['schema']['isSelectable'](_0x12283c);return _0x4bcfe1['createRange'](_0x4bcfe1['createPositionAt'](_0x12283c,'before'),_0x5c7784?_0x4bcfe1['createPositionAfter'](_0x12283c):_0x4bcfe1['createPositionAt'](_0x12283c,'end'));}function Gt(_0x1907d5,_0x387bc9,_0x8f77e0,_0x58fda3,_0xf18f2b){if(!Pt(_0x1907d5,_0x387bc9))return!0x1;if(_0x8f77e0['end']['isEqual'](_0x58fda3['start']))return!0x0;if(_0x1907d5['type']!=_0x387bc9['type'])return!0x1;if(!_0x8f77e0['end']['isTouching'](_0x58fda3['start']))return!0x1;const _0x59f2bf=_0xf18f2b['createRange'](_0x8f77e0['end'],_0x58fda3['start'])['getWalker']();for(const _0x2cacef of _0x59f2bf)if(['elementStart','elementEnd']['includes'](_0x2cacef['type'])&&_0xf18f2b['schema']['isLimit'](_0x2cacef['item']))return!0x1;return!0x0;}function Pt(_0x506ce9,_0x47186b,_0x25a423=[]){return!(!_0x506ce9['_isDataLoaded']||!_0x47186b['_isDataLoaded'])&&_0x29bdc1(Bt(_0x506ce9['attributes'],_0x25a423),Bt(_0x47186b['attributes'],_0x25a423));}function Lt(_0x3bd918,_0x2060d2){const _0x5024ab=Ht(_0x3bd918['attributes']),_0x125f26=Ht(_0x2060d2);if(!_0x3bd918['_isDataLoaded'])return!0x1;for(const _0x390a51 of Object['keys'](_0x125f26))if(!_0x29bdc1(_0x5024ab[_0x390a51],_0x125f26[_0x390a51]))return!0x1;return!0x0;}function Ht(_0x3e0d8d){const _0x1c7e08=Object['assign']({},_0x3e0d8d);return delete _0x1c7e08['skipNestingCheck'],delete _0x1c7e08['tablePasteChainId'],_0x1c7e08;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4389d6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2c6d1e,_0xa8d48b,_0x16c3d4,_0x4c5815){super(),this['model']=_0xa8d48b,this['view']=_0x16c3d4,this['commentThreadController']=_0x4c5815,this['_editor']=_0x2c6d1e,this['_acceptCommand']=_0x2c6d1e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2c6d1e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x226c6b,_0x3d08c4)=>_0x226c6b||_0x3d08c4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x139bdf=>_0x139bdf&&this['_editor']['model']['canEditAt'](_0xa8d48b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4f7b93=>_0x4f7b93&&this['_editor']['model']['canEditAt'](_0xa8d48b['getRanges']())),this['_pendingAction']=null,_0x16c3d4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x16c3d4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x16c3d4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x16c3d4,'change:isDirty',()=>{_0x16c3d4['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 _0x29f958=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x29f958);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x59fb7f{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x165721,_0x8d0a9b,_0x5db903,_0x269f26){super(_0x165721),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x8d0a9b['authoredAt']),this['bind']('authoredAt')['to'](_0x8d0a9b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x8d0a9b,this['_localUser']=_0x5db903,this['_config']=_0x269f26,_0x269f26['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:_0x518f23}=this['_config'];this['commentsListView']=new _0x518f23(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',_0x4a7839=>_0x4a7839+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x49292c,_0x21e29c)=>_0x49292c||!!_0x21e29c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x59ef4c}=this['_config'],_0x255ddd=new _0x59ef4c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x508e99=_0x255ddd['commentInputView'];return _0x255ddd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x508e99,'value',(_0x1ec8ad,_0x4a588b,_0x4f2efd)=>!!_0x4f2efd||_0x1ec8ad&&!_0x4a588b),_0x508e99['on']('submit',(_0x4dde71,_0x43c9e9)=>{this['fire']('addComment',_0x43c9e9),_0x508e99['editor']['setData']('');}),_0x508e99['on']('cancel',()=>this['focus']()),_0x508e99['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x255ddd;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5971f8,_0x2e4969,_0x32ff78,_0xcf5c6d){super(_0x5971f8,_0x2e4969,_0x32ff78,_0xcf5c6d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x52e6f3=>_0x52e6f3&&_0x52e6f3[0x0]?_0x52e6f3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4438fa,_0x3ab115)=>{let _0xe4ca62='';for(const _0x4f4599 of _0x4438fa)_0xe4ca62+='<p>'+ds(_0x4f4599['content'],_0x4f4599['color'])+'</p>';return _0x3ab115?_0xe4ca62:_0x4fc0d0(_0xe4ca62,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5971f8,'Accept\x20suggestion'),_0x36cd8f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5971f8,'Discard\x20suggestion'),_0x36cd8f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x32f5f7(_0x5971f8,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x536173=this['bindTemplate'],_0x585200=[{'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':_0x536173['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x536173['to']('authoredAt',_0xe5f1e6=>this['_config']['formatDateTime'](_0xe5f1e6))}]}]},{'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']&&_0x585200['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x514510={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x536173['if']('isActive','ck-suggestion-wrapper--active'),_0x536173['to']('type',_0x26d328=>'ck-suggestion-'+_0x26d328),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':_0x585200}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x514510['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)),_0x514510;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x136863,_0x42aef5,_0x3414f2)=>{this['_descriptionElement']['innerHTML']=_0x3414f2;});}['_createButton'](_0x11f388,_0x28d9f1,_0x4bd346,_0x149064,_0xae8a3e){const _0x2293b1=new _0x3416da(this['locale']);return _0x2293b1['set']({'label':_0x11f388,'icon':_0x28d9f1,'tooltip':!0x0,'tooltipPosition':_0xae8a3e}),_0x2293b1['extendTemplate']({'attributes':{'class':_0x4bd346}}),_0x2293b1['on']('execute',()=>{this['fire'](_0x149064,this['_model']['id']);}),_0x2293b1;}['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(_0x4bc223,_0x3e892e){let _0x591633='';return _0x591633+=_0x4bc223['split']('*')['map']((_0xd7dbd7,_0x2ee881)=>_0x2ee881%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xd7dbd7)+'</span>':us(_0xd7dbd7))['join'](''),_0x3e892e&&(_0x591633+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3e892e['value']+'\x22\x20title=\x22'+_0x3e892e['title']+'\x22></span>'),_0x591633;}function us(_0x1e8a1d){const _0x242aed=document['createElement']('span');return _0x242aed['innerText']=_0x1e8a1d,_0x242aed['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x17f7ef{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xfe0aac,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1b3f11){super(_0x1b3f11),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x59c558=this['editor']['config'];_0x59c558['define']('trackChanges.SuggestionThreadView',ne),_0x59c558['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x59c558['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5206e7,_0x54220c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x539cf7,_0x4e9f24]of this['_handleControllerBuffer']){const _0x37c4ef=this['_suggestionToController']['has'](_0x539cf7);_0x37c4ef||_0x4e9f24?_0x37c4ef&&_0x4e9f24&&this['_destroyController'](_0x539cf7):this['_initializeController'](_0x539cf7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5206e7,_0x54220c);}['init'](){const _0xb74971=this['editor'],_0x5ba1ad=_0xb74971['plugins']['get']('TrackChangesEditing'),_0x5eec99=_0xb74971['plugins']['get']('Annotations'),_0x2e3c0b=_0xb74971['plugins']['get']('EditorAnnotations'),_0x2025e6=_0xb74971['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2e3c0b['addSourceCollector'](()=>{const _0x3bd158=[];for(const [_0x160276,_0x5c3f8e]of Array['from'](this['_suggestionToController'])){const _0x255f59=_0x160276['getAllAdjacentSuggestions'](),_0x5846f7=[];for(const _0x315846 of _0x255f59){if(!_0x315846['isInContent'])continue;if(_0x315846['isMultiRange']){_0x5846f7['push'](..._0x315846['getRanges']());continue;}const _0x55b3c9=_0x315846['getFirstRange']();if(_0x5846f7['length']>0x0){const _0x32b889=_0x5846f7[0x0]['getJoined'](_0x55b3c9);if(_0x32b889){_0x5846f7[0x0]=_0x32b889;continue;}}_0x5846f7['push'](_0x55b3c9);}_0x3bd158['push']([_0x5c3f8e['view'],_0x5846f7]);}return _0x3bd158;}),this['listenTo'](_0x5ba1ad,'suggestionLoaded',(_0x6a078e,_0x5a6e8b)=>{this['listenTo'](_0x5a6e8b,'change:previous',(_0x242fa0,_0xcfd696,_0x3f754,_0x4f3af4)=>{_0x5a6e8b['isInContent']&&(null==_0x3f754?(this['_updateController'](_0x4f3af4['head']),this['_handleSuggestionControllerDelayed'](_0x5a6e8b,!0x1)):(this['_updateController'](_0x3f754['head']),null==_0x4f3af4&&this['_handleSuggestionControllerDelayed'](_0x5a6e8b,!0x0)));}),null!==_0x5a6e8b['previous']?this['_updateController'](_0x5a6e8b['head']):this['_handleSuggestionControllerDelayed'](_0x5a6e8b,!0x1);}),this['listenTo'](_0x5ba1ad,'suggestionUnloaded',(_0x58ea7c,_0x5064fc,_0x24023e)=>{this['stopListening'](_0x5064fc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5064fc),this['_suggestionToController']['has'](_0x5064fc)&&this['_destroyController'](_0x5064fc),_0x24023e&&this['_updateController'](_0x24023e['head']);}),this['listenTo'](_0x5ba1ad,'suggestionChanged',(_0x77e3d6,_0x27cd28)=>{this['_updateController'](_0x27cd28);}),this['listenTo'](_0x5eec99,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2025e6,'addComment',(_0x36d103,{threadId:_0xc2f1bd,isFromAdapter:_0x5c5804})=>{if(_0x5c5804||!_0x5ba1ad['hasSuggestion'](_0xc2f1bd))return;const _0x31338a=_0x5ba1ad['getSuggestion'](_0xc2f1bd);this['_suggestionToController']['get'](_0x31338a)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x36af98=this['editor']['plugins']['get']('Annotations'),_0x2d97b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b9ec1=Array['from'](_0x36af98['activeAnnotations'],_0x2245fe=>_0x2245fe['innerView'])['filter'](_0x1657c0=>this['_viewToController']['has'](_0x1657c0)),_0x4028cc=[];for(const _0x4b17ae of _0x5b9ec1){const _0x379da0=this['_viewToController']['get'](_0x4b17ae)['model']['getAllAdjacentSuggestions']();_0x4028cc['push'](..._0x379da0['reduce']((_0x10e22d,_0x471526)=>[..._0x10e22d,..._0x471526['getMarkerNames']()],[]));}_0x2d97b7['activeMarkers']=_0x4028cc;}['_addUIComponentsToFactory'](){const _0xb6a213=this['editor'],_0x141586=_0xb6a213['locale'],_0x169aee=o(_0x141586,'Track\x20changes'),_0x267e62=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x169aee,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x141586,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x141586,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x141586,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x141586,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x521d70 of _0x267e62)if(ae(_0x521d70)){const _0xc1f554=_0xb6a213['commands']['get'](_0x521d70['model']['commandName']);_0x521d70['model']['bind']('isOn','isEnabled')['to'](_0xc1f554,'value','isEnabled');}_0xb6a213['ui']['componentFactory']['add']('trackChanges',_0x2ea8b4=>this['_createToolbarButton'](_0x2ea8b4,_0x267e62,_0x169aee)),_0xb6a213['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3a516d=>this['_createMenuBarMenu'](_0x3a516d,_0x267e62,_0x169aee));}['_createToolbarButton'](_0x22cc41,_0x459e45,_0xdda277){const _0x323d90=zt(_0x22cc41,Zt),_0x474c25=this['editor']['commands']['get']('trackChanges');_0x323d90['buttonView']['set']({'tooltip':_0xdda277,'label':_0xdda277,'icon':ie}),_0x323d90['buttonView']['bind']('isOn')['to'](_0x474c25,'value'),_0x323d90['buttonView']['on']('execute',()=>{_0x474c25['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x323d90,_0x459e45,{'role':'menu'});const _0x402b50=[];for(const _0x3007bf of _0x459e45)ae(_0x3007bf)&&_0x402b50['push'](this['editor']['commands']['get'](_0x3007bf['model']['commandName']));const _0x2d531a=_0x323d90['buttonView'];return _0x2d531a['actionView']['unbind']('isEnabled'),_0x2d531a['arrowView']['unbind']('isEnabled'),_0x2d531a['actionView']['bind']('isEnabled')['to'](_0x474c25,'isEnabled'),_0x2d531a['arrowView']['bind']('isEnabled')['toMany'](_0x402b50,'isEnabled',(..._0x4a1666)=>_0x4a1666['some'](_0x35e2eb=>_0x35e2eb)),_0x323d90['on']('execute',_0x115d17=>{this['editor']['execute'](_0x115d17['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x323d90;}['_createMenuBarMenu'](_0x293f1f,_0x381b65,_0x402a32){const _0x2fe84c=new Kt(_0x293f1f),_0x36049c=this['editor']['commands']['get']('trackChanges');_0x2fe84c['buttonView']['set']({'label':_0x402a32,'icon':ie});const _0x232899=new Qt(_0x293f1f);for(const _0x2a19e7 of _0x381b65){if('separator'==_0x2a19e7['type']){_0x232899['items']['add'](new Jt(_0x293f1f));continue;}const _0x28352f=new Xt(_0x293f1f,_0x2fe84c),_0x3fe999=new Yt(_0x293f1f),_0x489f31=_0x2a19e7['model'];_0x3fe999['bind'](...Object['keys'](_0x489f31))['to'](_0x489f31),_0x3fe999['delegate']('execute')['to'](_0x2fe84c),_0x3fe999['on']('execute',()=>{this['editor']['execute'](_0x489f31['commandName']),this['editor']['editing']['view']['focus']();}),_0x28352f['children']['add'](_0x3fe999),_0x232899['items']['add'](_0x28352f);}return _0x2fe84c['bind']('isEnabled')['to'](_0x36049c,'isEnabled'),_0x2fe84c['panelView']['children']['add'](_0x232899),_0x2fe84c;}['_initializeController'](_0x4d76d5){const _0x4132a6=this['editor'],_0x4c7e10=_0x4132a6['config'],_0x7286a7=_0x4132a6['plugins']['get']('Annotations'),_0x4f7e50=_0x4132a6['plugins']['get']('CommentsRepository'),_0x492d50=_0x4132a6['plugins']['get']('EditorAnnotations'),_0x3551de=_0x4132a6['plugins']['get'](_0xfe0aac)['me'],_0x4cda0a=_0x4c7e10['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xb46bd4,CommentThreadInputView:_0x373660}=_0x4132a6['plugins']['get']('CommentsUI');let _0x395ee3,_0x532b68;this['_annotationViews']['has'](_0x4d76d5['id'])?(_0x532b68=this['_annotationViews']['get'](_0x4d76d5['id']),_0x395ee3=_0x532b68['mainView']):(_0x395ee3=new _0x4cda0a(_0x4132a6['locale'],_0x4d76d5,_0x3551de,{'disableComments':this['_disableComments'],'editorConfig':_0x4c7e10['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4c7e10['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4c7e10['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4c7e10['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x38f9ee(_0x4c7e10['get']('locale')),'CommentView':_0x4c7e10['get']('comments')['CommentView'],'CommentsListView':_0xb46bd4,'CommentThreadInputView':_0x373660}),_0x395ee3['acceptButton']['on']('execute',()=>{_0x4132a6['editing']['view']['focus']();}),_0x395ee3['discardButton']['on']('execute',()=>{_0x4132a6['editing']['view']['focus']();}),_0x532b68=_0x7286a7['createAnnotationView'](this['editor']['locale'],_0x395ee3),_0x532b68['bind']('isDirty')['to'](_0x395ee3,'isDirty'),_0x532b68['bind']('length')['to'](_0x395ee3),_0x532b68['bind']('type')['to'](_0x395ee3,'type',_0x418536=>'suggestion-'+_0x418536),this['_annotationViews']['set'](_0x4d76d5['id'],_0x532b68));const _0x3b4715=_0x4f7e50['createCommentThreadController'](_0x4d76d5['commentThread'],_0x395ee3),_0x58dd5a=new oe(_0x4132a6,_0x4d76d5,_0x395ee3,_0x3b4715),_0xd9873b=_0x4d76d5['getAllAdjacentSuggestions']()['filter'](_0x1b0935=>_0x1b0935['isInContent']);_0x395ee3['descriptionParts']=_0x4132a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xd9873b),this['_suggestionToController']['set'](_0x4d76d5,_0x58dd5a),this['_viewToController']['set'](_0x395ee3,_0x58dd5a);const _0x2b24ce=_0x7286a7['createAnnotation']({'view':_0x532b68,'target':()=>{const _0x503411=[],_0x3bdd40=_0x4d76d5['getAllAdjacentSuggestions']()['filter'](_0x1cfc89=>_0x1cfc89['isInContent']);for(const _0x17fab3 of _0x3bdd40)_0x503411['push'](..._0x17fab3['getMarkers']());return _0x456120(_0x4132a6['editing'],_0x503411);},'type':()=>'suggestion-'+_0x58dd5a['view']['type']});_0x4f7e50['_bindAnnotationToEditors'](_0x395ee3,_0x2b24ce),_0x7286a7['add'](_0x2b24ce),_0x492d50['registerAnnotation'](_0x2b24ce);}['_destroyController'](_0xdbd739){const _0x401a29=this['editor']['plugins']['get']('CommentsRepository'),_0x2b7500=this['editor']['plugins']['get']('Annotations'),_0xaddebf=this['_suggestionToController']['get'](_0xdbd739),_0x262b88=_0xaddebf['view'],_0x5e4e27=_0x2b7500['getByInnerView'](_0x262b88);_0x401a29['_unbindEditors'](_0x262b88),_0x5e4e27&&_0x2b7500['remove'](_0x5e4e27),this['_suggestionToController']['delete'](_0xdbd739),this['_viewToController']['delete'](_0x262b88),_0xaddebf['destroy']();}['_updateController'](_0x1c83ca){if(!_0x1c83ca['isInContent']||!this['_suggestionToController']['has'](_0x1c83ca))return;const _0x13904a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x588292=this['_suggestionToController']['get'](_0x1c83ca),_0x464a4d=_0x1c83ca['getAllAdjacentSuggestions']();_0x588292['view']['descriptionParts']=_0x13904a['descriptionFactory']['getDescriptions'](_0x464a4d);}['destroy'](){for(const _0x1ab4d7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1ab4d7);for(const _0x27e4da of this['_annotationViews']['values']())_0x27e4da['mainView']['destroy']();super['destroy']();}}function ae(_0x178acf){return'model'in _0x178acf;}class k extends _0x17f7ef{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xc401e6){this['editor']['plugins']['get'](p)['adapter']=_0xc401e6;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3e5490){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3e5490);}['getSuggestions']({skipNotAttached:_0x19f5d2=!0x1,toJSON:_0x34d763=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x19f5d2,'toJSON':_0x34d763});}['getSuggestion'](_0x5133ce){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5133ce);}}const T=['Pagination'];class P extends _0x17f7ef{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x58540f=this['editor'];if(_0x58540f['config']['define']('trackChangesData.editorCreator',_0x39a74d=>{const _0xe49776=_0x58540f['model']['document']['getRootNames']()['reduce']((_0x11ab8f,_0x250b32)=>(_0x11ab8f[_0x250b32]='',_0x11ab8f),{});return _0x58540f['constructor']['create'](_0xe49776,_0x39a74d);}),'function'!=typeof _0x58540f['config']['get']('trackChangesData')['editorCreator'])throw new _0x47d488('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x41ba8e){return N(this['editor'],!0x0,_0x41ba8e);}['getDataWithDiscardedSuggestions'](_0x364384){return N(this['editor'],!0x1,_0x364384);}}class D extends _0x17f7ef{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x11e7f1){super(_0x11e7f1),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(_0x45f403){return void 0x0!==_0x45f403['getRootsAttributes'];}async function N(_0x466a4e,_0x33f0d0,_0x1bf6d1){const _0x1cde36=_0x68500f(_0x466a4e,T);_0x1cde36['plugins']['push'](p,D),_0x1cde36['rootsAttributes']=v(_0x466a4e)?_0x466a4e['getRootsAttributes']():void 0x0;const _0x44b11e=document['createDocumentFragment'](),_0x58c38a=_0x466a4e['config']['get']('trackChangesData')['editorCreator'],_0x3b4346=await _0x58c38a(_0x1cde36,()=>function(_0x1221f8){const _0x163bb5=document['createElement']('div');return _0x1221f8['appendChild'](_0x163bb5),_0x163bb5;}(_0x44b11e));!function(_0x43d7b5,_0x5a0f16){const _0x58a16f=_0x43d7b5['model']['document']['getRootNames']()['reduce']((_0x2b0a35,_0x56d690)=>(_0x2b0a35[_0x56d690]=_0x43d7b5['data']['get']({'rootName':_0x56d690}),_0x2b0a35),{}),_0x5d4de3=_0x43d7b5['plugins']['get']('Users')['users']['map'](_0x456a0b=>({'id':_0x456a0b['id'],'name':_0x456a0b['name']})),_0x540f56=_0x43d7b5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x35b73e=_0x43d7b5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x250d18=_0x5a0f16['plugins']['get']('Users'),_0x1c7d72=_0x5a0f16['plugins']['get']('TrackChangesEditing'),_0x36caa4=_0x5a0f16['plugins']['get']('CommentsRepository');for(const _0x328d66 of _0x5d4de3)_0x250d18['getUser'](_0x328d66['id'])||_0x250d18['addUser'](_0x328d66);_0x250d18['me']||_0x250d18['useAnonymousUser']();for(const _0x54563d of _0x540f56)_0x1c7d72['addSuggestionData'](_0x54563d);for(const _0x16bd8b of _0x35b73e)_0x36caa4['addCommentThread'](_0x16bd8b);_0x5a0f16['data']['set'](_0x58a16f);}(_0x466a4e,_0x3b4346),_0x3b4346['execute'](_0x33f0d0?'acceptAllSuggestions':'discardAllSuggestions');const _0x13946d=v(_0x3b4346)?_0x3b4346['getFullData'](_0x1bf6d1):_0x3b4346['data']['get'](_0x1bf6d1);return await _0x3b4346['destroy'](),_0x13946d;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x578bbc,PendingActions as _0x59b9b5,icons as _0x49cdbf}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1d6b47,ObservableMixin as _0x294ea9,uid as _0x3446bc,insertToPriorityArray as _0x22a364,priorities as _0x509bb4,logWarning as _0x3b3527,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x26798f,View as _0x3d4348,ButtonView as _0x54f3a5,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4e9db3,hashObject as _0x25c756,surroundingMarkersDetector as _0x2033ad,trimHtml as _0x41dbaf,UserView as _0x36e838,getDateTimeFormatter as _0x21937f,getAllMarkersDomElementsSorted as _0x785c86,sanitizeEditorConfig as _0x9ac77}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2d424e,LiveRange as _0x2028c8,LivePosition as _0x13fc95}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5231e2,toWidget as _0x2ad45c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1b6d16,set as _0x4cde22,isEqual as _0x43d31e,unset as _0x42bb33,omit as Bt}from'lodash-es';import{Delete as _0x346d9a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2eb65c,ShiftEnter as _0x22041e}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x27ba88,_0xe5a26){super(_0x27ba88),this['_enabledCommands']=_0xe5a26,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 _0x5385e9 of this['editor']['commands']['commands']())_0x5385e9['affectsData']&&!this['_enabledCommands']['has'](_0x5385e9)&&_0x5385e9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1e0eb9 of this['editor']['commands']['commands']())_0x1e0eb9['affectsData']&&!this['_enabledCommands']['has'](_0x1e0eb9)&&_0x1e0eb9['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x27b918,_0x562bf2){super(_0x27b918),this['_suggestions']=_0x562bf2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa2b9d1){const _0x25d768=this['_suggestions']['get'](_0xa2b9d1);if(!_0x25d768)throw new _0x1d6b47('track-changes-accept-suggestion-not-found',this);const _0x5b15c2=_0x25d768['getRanges']();this['editor']['model']['canEditAt'](_0x5b15c2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x25d768);}}class B extends ts{['_suggestions'];constructor(_0x3b75ef,_0x115685){super(_0x3b75ef),this['_suggestions']=_0x115685,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x54632d){const _0x13c277=this['_suggestions']['get'](_0x54632d);if(!_0x13c277)throw new _0x1d6b47('track-changes-discard-suggestion-not-found',this);const _0x47c705=_0x13c277['getRanges']();this['editor']['model']['canEditAt'](_0x47c705)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x13c277);}}function ss(_0xd140a9){return _0xd140a9['sort']((_0x400a86,_0x32d4ec)=>'deletion'==_0x400a86['type']&&'deletion'!=_0x32d4ec['type']?-0x1:'deletion'!=_0x400a86['type']&&'deletion'==_0x32d4ec['type']?0x1:0x0);}function to(_0x431f1c,_0x4e79dc){let _0xec6c30,_0x2b8d15=0x0;const _0x124420=[],_0x379c96=_0x4e79dc['schema'];for(;_0x2b8d15<_0x431f1c['length'];){const _0x546849=_0x431f1c[_0x2b8d15],_0xb7db5c=_0x431f1c[_0x2b8d15+0x1];_0xec6c30||(_0xec6c30=_0x4e79dc['createPositionBefore'](_0x546849)),co(_0x4e79dc,_0x546849,_0xb7db5c)||(_0x124420['push'](_0x4e79dc['createRange'](_0xec6c30,_0x379c96['isObject'](_0x546849)?_0x4e79dc['createPositionAfter'](_0x546849):_0x4e79dc['createPositionAt'](_0x546849,'end'))),_0xec6c30=null),_0x2b8d15++;}return _0x124420;}function co(_0x183d81,_0x383a9f,_0x3d28da){if(!_0x3d28da)return!0x1;const _0x40b554=_0x183d81['createPositionAfter'](_0x383a9f),_0x12c847=_0x183d81['createPositionBefore'](_0x3d28da);return _0x40b554['isTouching'](_0x12c847);}function rs(_0x62d619,_0x6a5bca,_0x7e4806){for(;_0x7e4806['length'];){const _0x5bee4e=_0x7e4806['splice'](0x0,0x64);_0x62d619['change'](()=>{for(const _0x51b12e of _0x5bee4e)_0x51b12e['isInContent']&&_0x6a5bca['execute'](_0x51b12e['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4baee4,_0x5bae24,_0x437a0e){super(_0x4baee4),this['_command']=_0x5bae24,this['_suggestions']=_0x437a0e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x475bae=Array['from'](this['_suggestions']['values']())['some'](_0x27e82b=>_0x27e82b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x475bae;}['execute'](){const _0x24cd91=ss(Array['from'](this['_suggestions']['values']()));for(const _0x55680d of _0x24cd91){const _0x2ba58f=_0x55680d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ba58f))return;}rs(this['editor']['model'],this['_command'],_0x24cd91);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x28b702,_0x2844af,_0x431ce2){super(_0x28b702),this['_command']=_0x2844af,this['_suggestions']=_0x431ce2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d1877=this['editor']['model']['document']['selection'],_0x3bb25d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x117652,_0x28613b){const _0xe65a84=Array['from'](_0x117652['getRanges']()),_0x29ee19=new Set();for(const _0x1d09b9 of _0x28613b)if(_0x1d09b9['isInContent']){for(const _0x2b1ffe of _0xe65a84)for(const _0x4221c7 of _0x1d09b9['getRanges']())(_0x2b1ffe['isIntersecting'](_0x4221c7)||_0x117652['isCollapsed']&&!_0x1d09b9['isMultiRange']&&_0x1d09b9['next']&&_0x4221c7['end']['isTouching'](_0x2b1ffe['start']))&&_0x29ee19['add'](_0x1d09b9);}return _0x29ee19;}(_0x4d1877,_0x3bb25d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x339ba=ss(Array['from'](this['_selectedSuggestions']));for(const _0x44ff2c of _0x339ba){const _0x5c3051=_0x44ff2c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c3051))return;}rs(this['editor']['model'],this['_command'],_0x339ba);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x294ea9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xcbe204,_0x1010e1){super(),this['id']=_0x1010e1['id'],this['type']=_0x1010e1['type'],this['subType']=_0x1010e1['subType']||null,this['author']=_0x1010e1['author'],this['creator']=_0x1010e1['creator']||_0x1010e1['author'],this['isExternal']=Boolean(_0x1010e1['attributes']&&_0x1010e1['attributes']['@external']),this['data']=null,this['_model']=_0xcbe204,this['_onAccept']=_0x1010e1['onAccept'],this['_onDiscard']=_0x1010e1['onDiscard'],this['_onAttributesChange']=_0x1010e1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1010e1['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 _0x311e83=this;for(;_0x311e83['previous'];)_0x311e83=_0x311e83['previous'];return _0x311e83;}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'](_0x504fd4){this['_markerNames']['add'](_0x504fd4);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x569003=>this['_model']['markers']['get'](_0x569003))['filter'](_0x29e030=>_0x29e030);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x145a9f=>{for(const _0x16d0ab of this['getMarkers']())_0x145a9f['removeMarker'](_0x16d0ab);}),this['_markerNames']['clear']();}['removeMarker'](_0x14739e){this['_model']['change'](_0x355151=>{_0x355151['removeMarker'](_0x14739e);}),this['_markerNames']['delete'](_0x14739e);}['addRange'](_0x42169e){const _0x49e48f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x49e48f),this['_model']['change'](_0x4a2512=>{_0x4a2512['addMarker'](_0x49e48f,{'range':_0x42169e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1bf64a){for(const _0x45d99f of this['getRanges']())if(_0x45d99f['isIntersecting'](_0x1bf64a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4a5b71=>_0x4a5b71['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x314c88,_0x481e59)=>[..._0x314c88,..._0x481e59['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xc5cab7=this['getRanges']();if(0x1!=_0xc5cab7['length'])return null;const _0x33495f=_0xc5cab7[0x0],_0x43d1ba=_0x33495f['start']['nodeAfter'],_0x30a16b=_0x33495f['end']['nodeBefore'];return _0x43d1ba instanceof _0x2d424e?_0x43d1ba!=_0x30a16b?null:_0x43d1ba: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 _0x174834=[];let _0x44fb07=this['head'];for(;_0x44fb07;)_0x174834['push'](_0x44fb07),_0x44fb07=_0x44fb07['next'];return _0x174834;}['setAttribute'](_0x2807ee,_0x1c653d){const _0x121e3b=_0x1b6d16(this['attributes']);_0x4cde22(_0x121e3b,_0x2807ee,_0x1c653d),_0x43d31e(_0x121e3b,this['attributes'])||(this['attributes']=_0x121e3b,this['_onAttributesChange'](_0x121e3b));}['removeAttribute'](_0x1f27d8){const _0x5b8d9b=_0x1b6d16(this['attributes']);_0x42bb33(_0x5b8d9b,_0x1f27d8),_0x43d31e(_0x5b8d9b,this['attributes'])||(this['attributes']=_0x5b8d9b,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 _0x3446bc()['substr'](0x1,0x5);}}function o(_0x4b2552,_0x29a943,_0x1890a9){const t=_0x4b2552['t'];switch(_0x29a943){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',_0x1890a9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1890a9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1890a9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1890a9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1890a9);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',_0x1890a9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1890a9);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',_0x1890a9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1890a9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1890a9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1890a9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1890a9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1890a9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1890a9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1890a9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1890a9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1890a9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1890a9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1890a9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1890a9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1890a9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1890a9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1890a9);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'},_0x1890a9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1890a9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1890a9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1890a9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1890a9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1890a9);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'},_0x1890a9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1890a9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1890a9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1890a9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1890a9);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'},_0x1890a9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1890a9);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'},_0x1890a9);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'},_0x1890a9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1890a9);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'},_0x1890a9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1890a9);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'},_0x1890a9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1890a9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1890a9);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1890a9);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'},_0x1890a9);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 _0x29a943;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4bd1a5,_0x1e189b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4bd1a5,this['_locale']=_0x1e189b;}['getDescriptions'](_0x1f0673){const _0x118950=[],_0x2058b0=new Set(),_0x497897=new Set();for(let _0x42f3db=0x0;_0x42f3db<_0x1f0673['length'];_0x42f3db++){const _0x25da03=_0x1f0673[_0x42f3db];if(!_0x25da03['isInContent'])continue;const _0x21ce7a=this['_handleCustomCallbackDescription'](_0x25da03);if(_0x21ce7a){if(null!=_0x25da03['subType']){if(_0x2058b0['has'](_0x25da03['subType']))continue;_0x2058b0['add'](_0x25da03['subType']);}_0x118950['push'](_0x21ce7a);}else{if('attribute'!=_0x25da03['type'])'insertion'!=_0x25da03['type']&&'deletion'!=_0x25da03['type']||this['_handleInsertRemoveSuggestionDescription'](_0x118950,_0x25da03,_0x1f0673[_0x42f3db+0x1]);else{const _0x429a39=_0x25da03['data']['key'];if(_0x497897['has'](_0x429a39))continue;_0x497897['add'](_0x25da03['data']['key']),_0x429a39==m?this['_handleRenameSuggestionDescription'](_0x118950,_0x25da03):this['_handleAttributeSuggestionDescription'](_0x118950,_0x25da03);}}}return this['_resolveDescriptionItems'](_0x118950);}['registerDescriptionCallback'](_0x55258f){this['_customCallbacks']['push'](_0x55258f);}['registerElementLabel'](_0x5485b0,_0x41390c,_0x20eeb7=_0x509bb4['normal']){'function'==typeof _0x5485b0?_0x22a364(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5485b0,'label':_0x41390c,'priority':_0x20eeb7}):this['_itemLabels']['set'](_0x5485b0,_0x41390c);}['registerAttributeLabel'](_0x4de5df,_0x4cda7c){this['_attributeLabels']['set'](_0x4de5df,_0x4cda7c);}['getItemLabel'](_0x47199f,_0x4a598d=0x1){let _0x2a7060;for(const _0x3aad29 of this['_itemLabelsCallbacks'])if(_0x3aad29['matchingCallback'](_0x47199f)){_0x2a7060=_0x3aad29['label'];break;}return _0x2a7060||(_0x2a7060=this['_itemLabels']['get'](_0x47199f['name'])),_0x2a7060?_0x2a7060(_0x4a598d):0x1!==_0x4a598d?_0x4a598d+'\x20'+_0x47199f['name']+'s':''+_0x47199f['name'];}['_addDescriptionItems'](_0x10cfc2,_0x538a9f){const _0x3c75b3=_0x538a9f['getFirstRange']()['getWalker'](),_0x5cb9ba='insertion'==_0x538a9f['type']?'add':'remove';for(const _0x1a9072 of _0x3c75b3){const _0x5511b5=_0x1a9072['item'],_0x3fe106=_0x10cfc2[_0x10cfc2['length']-0x1];if(_0x5511b5['is']('$textProxy'))_0x3fe106&&_0x3fe106['type']['indexOf']('Container')>-0x1&&_0x10cfc2['pop'](),_0x3fe106&&'text'==_0x3fe106['type']?_0x3fe106[_0x5cb9ba]+=_0x5511b5['data']:_0x10cfc2['push']({'type':'text','add':'add'==_0x5cb9ba?_0x5511b5['data']:'','remove':'remove'==_0x5cb9ba?_0x5511b5['data']:''});else{if(this['_schema']['isObject'](_0x5511b5)){const _0x3be5d0=_0x5511b5;if(_0x3fe106&&_0x3fe106['type']['indexOf']('Container')>-0x1&&_0x10cfc2['pop'](),'elementEnd'==_0x1a9072['type'])continue;_0x3fe106&&_0x3fe106['type']==_0x5cb9ba+'Object'&&_0x3fe106['element']['name']==_0x3be5d0['name']?_0x3fe106['quantity']++:_0x10cfc2['push']({'type':_0x5cb9ba+'Object','element':_0x3be5d0,'quantity':0x1}),_0x3c75b3['skip'](_0x3e18c1=>!('elementEnd'==_0x3e18c1['type']&&_0x3e18c1['item']==_0x5511b5));}else{if(this['_schema']['checkChild'](_0x5511b5,'$text')||_0x5511b5['is']('element','softBreak')){const _0x51d3b2=_0x5511b5;if('add'==_0x5cb9ba&&'elementStart'==_0x1a9072['type']||'remove'==_0x5cb9ba&&'elementEnd'==_0x1a9072['type'])continue;if(_0x3fe106&&-0x1==_0x3fe106['type']['indexOf']('Container')){'text'==_0x3fe106['type']&&(_0x3fe106[_0x5cb9ba]+='\x0a');continue;}let _0x48c1f9;if(_0x48c1f9='add'==_0x5cb9ba?_0x51d3b2['nextSibling']&&!this['_schema']['isObject'](_0x51d3b2['nextSibling'])?_0x51d3b2['nextSibling']:null:_0x51d3b2['previousSibling']&&!this['_schema']['isObject'](_0x51d3b2['previousSibling'])?_0x51d3b2['previousSibling']:null,_0x51d3b2['isEmpty']||_0x48c1f9&&_0x48c1f9['isEmpty']){const _0x1ff76e=_0x48c1f9&&_0x48c1f9['isEmpty']?_0x48c1f9:_0x51d3b2;_0x3fe106&&_0x3fe106['type']==_0x5cb9ba+'EmptyContainer'&&_0x3fe106['element']['name']==_0x1ff76e['name']?_0x3fe106['quantity']++:_0x10cfc2['push']({'type':_0x5cb9ba+'EmptyContainer','element':_0x1ff76e,'quantity':0x1});}else _0x10cfc2['push']({'type':_0x5cb9ba+'Container','element':_0x51d3b2});}}}}}['_resolveDescriptionItems'](_0x1b6615){const _0x3af2b3=this['_locale'],_0x335829=[],_0x542458=[],_0x549fe8=[];for(const _0x232212 of _0x1b6615)switch(_0x232212['type']){case'text':if(_0x232212['add']=_0x232212['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x232212['remove']=_0x232212['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x232212['add']&&''!=_0x232212['remove']){_0x335829['push']({'type':'replace','content':o(_0x3af2b3,'REPLACE_TEXT',['\x22'+_0x232212['remove']+'\x22','\x22'+_0x232212['add']+'\x22'])});continue;}if(null!=_0x232212['add']['match'](/^ +$/)){_0x335829['push']({'type':'insertion','content':o(_0x3af2b3,'*Insert:*\x20%0',o(_0x3af2b3,'ELEMENT_SPACE',_0x232212['add']['length']))});continue;}if(null!=_0x232212['remove']['match'](/^ +$/)){_0x335829['push']({'type':'deletion','content':o(_0x3af2b3,'*Remove:*\x20%0',o(_0x3af2b3,'ELEMENT_SPACE',_0x232212['remove']['length']))});continue;}if(''!=_0x232212['add']){_0x335829['push']({'type':'insertion','content':o(_0x3af2b3,'*Insert:*\x20%0','\x22'+_0x232212['add']+'\x22')});continue;}_0x335829['push']({'type':'deletion','content':o(_0x3af2b3,'*Remove:*\x20%0','\x22'+_0x232212['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x335829['push']({'type':'insertion','content':o(_0x3af2b3,'*Insert:*\x20%0',this['getItemLabel'](_0x232212['element'],_0x232212['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x335829['push']({'type':'deletion','content':o(_0x3af2b3,'*Remove:*\x20%0',this['getItemLabel'](_0x232212['element'],_0x232212['quantity']))});continue;case'addContainer':_0x335829['push']({'type':'insertion','content':o(_0x3af2b3,'*Split:*\x20%0',this['getItemLabel'](_0x232212['element'],_0x232212['quantity']))});continue;case'removeContainer':_0x335829['push']({'type':'deletion','content':o(_0x3af2b3,'*Merge:*\x20%0',this['getItemLabel'](_0x232212['element'],_0x232212['quantity']))});continue;case'addFormat':_0x542458['push'](_0x232212['key']);continue;case'removeFormat':_0x549fe8['push'](_0x232212['key']);continue;default:_0x335829['push'](_0x232212);}if(_0x542458['length']){const _0x358e9e=_0x542458['map'](_0x34aaa7=>this['_attributeLabels']['has'](_0x34aaa7)?this['_attributeLabels']['get'](_0x34aaa7):_0x34aaa7)['join'](',\x20');_0x335829['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x358e9e)});}if(_0x549fe8['length']){const _0xc37054=_0x549fe8['map'](_0xec09c0=>this['_attributeLabels']['has'](_0xec09c0)?this['_attributeLabels']['get'](_0xec09c0):_0xec09c0)['join'](',\x20');_0x335829['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xc37054)});}return _0x335829;}['_handleCustomCallbackDescription'](_0x4d5e39){for(const _0x1fc081 of this['_customCallbacks']){const _0x535ed7=_0x1fc081(_0x4d5e39);if(_0x535ed7&&'type'in _0x535ed7)return _0x535ed7;}}['_handleAttributeSuggestionDescription'](_0xd83689,_0x2cba09){const _0x3f2489=_0x2cba09['data'],_0x8081c6=void 0x0===_0x3f2489['newValue']?'removeFormat':'addFormat';_0xd83689['push']({'type':_0x8081c6,'key':_0x3f2489['key']});}['_handleRenameSuggestionDescription'](_0x39161b,_0x20ccf9){_0x39161b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20ccf9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x62fa74,_0xea7813,_0x402db6){if(this['_addDescriptionItems'](_0x62fa74,_0xea7813),_0x402db6&&_0x402db6['getFirstRange']()&&!_0xea7813['getFirstRange']()['end']['isEqual'](_0x402db6['getFirstRange']()['start'])){const _0x2b327b=_0x62fa74[_0x62fa74['length']-0x1],_0x58985f='insertion'==_0xea7813['type']?'add':'remove';_0x2b327b&&'text'==_0x2b327b['type']&&(_0x2b327b[_0x58985f]+='\x0a');}}}class E extends _0x578bbc{['afterInit'](){const _0x409f85=this['editor'],_0x17fc3a=_0x409f85['plugins']['get']('TrackChangesEditing');_0x409f85['commands']['get']('showAIAssistant')&&_0x17fc3a['enableCommand']('showAIAssistant');}}class V extends _0x578bbc{['afterInit'](){const _0x4984b9=this['editor'],_0xfea372=_0x4984b9['locale'];if(!_0x4984b9['plugins']['has']('AlignmentEditing'))return;const _0x204409=_0x4984b9['plugins']['get']('TrackChangesEditing');_0x204409['enableDefaultAttributesIntegration']('alignment'),_0x204409['registerBlockAttribute']('alignment'),_0x204409['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xfea372,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21321f=this['editor'],_0x2a1eb3=_0x21321f['locale'];_0x21321f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54a503=>{if('formatBlock'!=_0x54a503['type'])return;const {data:_0x154414}=_0x54a503;if(_0x154414&&'alignment'==_0x154414['commandName']){const _0x37700a=_0x154414['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2a1eb3,'*Format:*\x20%0',function(_0x3fa8e8){switch(_0x3fa8e8){case'left':return o(_0x2a1eb3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2a1eb3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2a1eb3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2a1eb3,'FORMAT_JUSTIFY_TEXT');}}(_0x37700a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x578bbc{['afterInit'](){const _0x2e0aca=this['editor'],_0xd8f669=_0x2e0aca['plugins']['get']('TrackChangesEditing'),_0x388c38=_0x2e0aca['locale'];for(const _0x5ba2cf of ti){if(!_0x2e0aca['plugins']['has'](_0x5ba2cf))continue;const _0x23763e=_0x5ba2cf['slice'](0x0,-0x7)['toLowerCase'](),_0x5e76c8='FORMAT_'+_0x23763e['toUpperCase']();_0xd8f669['enableDefaultAttributesIntegration'](_0x23763e),_0xd8f669['registerInlineAttribute'](_0x23763e),_0xd8f669['descriptionFactory']['registerAttributeLabel'](_0x23763e,o(_0x388c38,_0x5e76c8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a9c52=this['editor'],_0x547849=_0x1a9c52['locale'],_0x20305f=_0x1a9c52['plugins']['get']('TrackChangesEditing');function _0x1ef537(_0x25bf17,_0x27de51){_0x20305f['descriptionFactory']['registerDescriptionCallback'](_0x4b82b3=>{if('formatInline'!=_0x4b82b3['type'])return;const {data:_0x4911d5}=_0x4b82b3;return _0x4911d5&&_0x4911d5['commandName']===_0x25bf17?_0x4911d5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x547849,'*Format:*\x20%0',_0x27de51)}:{'type':'format','content':o(_0x547849,'*Remove\x20format:*\x20%0',_0x27de51)}:void 0x0;});}_0x1ef537('bold',o(_0x547849,'FORMAT_BOLD')),_0x1ef537('italic',o(_0x547849,'FORMAT_ITALIC')),_0x1ef537('underline',o(_0x547849,'FORMAT_UNDERLINE')),_0x1ef537('code',o(_0x547849,'FORMAT_CODE')),_0x1ef537('strikethrough',o(_0x547849,'FORMAT_STRIKETHROUGH')),_0x1ef537('subscript',o(_0x547849,'FORMAT_SUBSCRIPT')),_0x1ef537('superscript',o(_0x547849,'FORMAT_SUPERSCRIPT'));}}class O extends _0x578bbc{['afterInit'](){const _0xd7fd47=this['editor'],_0x16a02f=_0xd7fd47['locale'];if(!_0xd7fd47['plugins']['has']('BlockQuoteEditing'))return;const _0x1dfb7b=_0xd7fd47['plugins']['get']('TrackChangesEditing'),_0x306e82=this['editor']['commands']['get']('blockQuote');_0x1dfb7b['enableCommand']('blockQuote',(_0x21e4d4,_0x349842={})=>{const _0x5bc033=this['editor']['model']['document']['selection'],_0x2eeb29=_0x349842&&void 0x0!==_0x349842['forceValue']?_0x349842['forceValue']:!_0x306e82['value'];let _0x55e3ef=[];if(_0x2eeb29){const _0x3b87e2=Array['from'](_0x5bc033['getSelectedBlocks']())['filter'](_0x2f0c61=>oo(_0x2f0c61)||function(_0x2a93ba,_0x31b317){const _0x2df893=_0x31b317['checkChild'](_0x2a93ba['parent'],'blockQuote'),_0x5c43b6=_0x31b317['checkChild'](['$root','blockQuote'],_0x2a93ba);return _0x2df893&&_0x5c43b6;}(_0x2f0c61,this['editor']['model']['schema']));_0x55e3ef=to(_0x3b87e2,_0xd7fd47['model']);}else{const _0x442b34=Array['from'](_0x5bc033['getSelectedBlocks']())['filter'](_0x158951=>oo(_0x158951));_0x55e3ef=to(_0x442b34,_0xd7fd47['model']);}_0xd7fd47['model']['change'](()=>{for(const _0x590d98 of _0x55e3ef)_0x1dfb7b['markBlockFormat'](_0x590d98,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2eeb29}]});});}),_0x1dfb7b['descriptionFactory']['registerDescriptionCallback'](_0x32402e=>{const {data:_0x6509b}=_0x32402e;if(_0x6509b&&'blockQuote'==_0x6509b['commandName']){const _0x4610eb=o(_0x16a02f,'ELEMENT_BLOCK_QUOTE');return _0x6509b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16a02f,'*Set\x20format:*\x20%0',_0x4610eb)}:{'type':'format','content':o(_0x16a02f,'*Remove\x20format:*\x20%0',_0x4610eb)};}});}}function oo(_0x5cc192){return'blockQuote'==_0x5cc192['parent']['name'];}class F extends _0x578bbc{['afterInit'](){const _0x5171ab=this['editor'];_0x5171ab['plugins']['has']('CaseChange')&&(_0x5171ab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5171ab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5171ab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x578bbc{['afterInit'](){const _0xdcb4ec=this['editor'];_0xdcb4ec['commands']['get']('ckbox')&&_0xdcb4ec['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x578bbc{['afterInit'](){const _0x4b3110=this['editor'];if(!_0x4b3110['plugins']['has']('CodeBlock'))return;const _0x53c26c=_0x4b3110['plugins']['get']('TrackChangesEditing'),_0x53fca8=_0x4b3110['locale'],_0x3ea011=_0x4b3110['config']['get']('codeBlock')['languages'],_0x5933a0=_0x4b3110['commands']['get']('codeBlock');_0x53c26c['enableCommand']('indentCodeBlock'),_0x53c26c['enableCommand']('outdentCodeBlock'),_0x53c26c['enableCommand']('codeBlock',(_0x3c73cd,_0x2b57a9={})=>{const _0x34160f=_0x4b3110['model'],_0x21be51=_0x4b3110['model']['document']['selection'],_0xece6be=_0x2b57a9&&void 0x0!==_0x2b57a9['forceValue']?_0x2b57a9['forceValue']:!_0x5933a0['value'];let _0x2dd0f9;_0x2b57a9['language']||(_0x2b57a9['language']=_0x3ea011[0x0]['language']),_0x2dd0f9=_0xece6be?Array['from'](_0x21be51['getSelectedBlocks']())['filter'](_0x535fd5=>eo(_0x535fd5)||function(_0x292e47,_0x3ab600){if(_0x292e47['is']('rootElement')||_0x3ab600['isLimit'](_0x292e47))return!0x1;return _0x3ab600['checkChild'](_0x292e47['parent'],'codeBlock');}(_0x535fd5,_0x34160f['schema'])):Array['from'](_0x21be51['getSelectedBlocks']())['filter'](_0x5d55fc=>eo(_0x5d55fc));const _0x29db3c=to(_0x2dd0f9,_0x34160f);_0x34160f['change'](()=>{for(const _0x10a9e2 of _0x29db3c)_0x53c26c['markBlockFormat'](_0x10a9e2,{'commandName':'codeBlock','commandParams':[{..._0x2b57a9,'forceValue':_0xece6be}],'formatGroupId':'blockName'});});}),(_0x53c26c['descriptionFactory']['registerElementLabel']('codeBlock',_0x525baf=>o(_0x53fca8,'ELEMENT_CODE_BLOCK',_0x525baf)),_0x53c26c['descriptionFactory']['registerDescriptionCallback'](_0xe3b2fc=>{if('formatBlock'!=_0xe3b2fc['type'])return;const _0x2e4f94=_0x53fca8['t'],{data:_0x2508d6}=_0xe3b2fc;if(!_0x2508d6||'codeBlock'!=_0x2508d6['commandName'])return;const _0x5ada5f=_0x2508d6['commandParams'][0x0]['language'],_0x43866a=_0x2e4f94(_0x3ea011['find'](_0x102325=>_0x102325['language']===_0x5ada5f)['label'])['toLowerCase']();return _0x2508d6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53fca8,'*Set\x20format:*\x20%0',o(_0x53fca8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x43866a+')')}:{'type':'format','content':o(_0x53fca8,'*Remove\x20format:*\x20%0',o(_0x53fca8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x179b18){return'codeBlock'==_0x179b18['name'];}class H extends _0x578bbc{['afterInit'](){const _0x3e505a=this['editor'];if(!_0x3e505a['plugins']['has']('CommentsEditing'))return;_0x3e505a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2428d1,_0x4f5bee,_0x4f73db){const _0x227843=[];for(const _0x4c6378 of _0x4f5bee['getItems']())_0x4c6378['hasAttribute'](_0x2428d1)&&_0x227843['push'](_0x4f73db['createRangeOn'](_0x4c6378));return _0x227843;}function _e(_0x1b8ca7,_0x1fa22f,{showActiveMarker:_0x2df469=!0x0}={}){const _0x18a8f2=_0x1b8ca7['plugins']['get']('TrackChangesEditing');return(_0x29550a,_0x4199af,_0xf8e711)=>{if(!_0xf8e711['consumable']['test'](_0x4199af['markerRange'],_0x29550a['name']))return;const _0x36f4e3=_0x4199af['markerRange']['getWalker'](),_0x31ae9f=_0x4199af['markerRange']['start'],_0x5f12db=_0x1b8ca7['model']['schema'];let _0x5cdd93=null,_0x236810=null,_0x48926c=!0x1,_0x2319be=!0x1;for(const _0x107838 of _0x36f4e3){const _0x1fd0e6=_0x107838['item'];_0x48926c=_0x48926c||_0x5f12db['isContent'](_0x1fd0e6);const _0x466ba6=_0xf8e711['mapper']['toViewElement'](_0x1fd0e6);if(_0x466ba6&&_0x466ba6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x107838['type']&&(_0x5f12db['isBlock'](_0x1fd0e6)&&!_0x5f12db['isLimit'](_0x1fd0e6)&&(_0x1fd0e6['nextSibling']||_0x31ae9f['isAtEnd']?_0x5cdd93&&_0x5cdd93['parent']==_0x1fd0e6||(_0x5cdd93=_0x1fd0e6,_0x100a82(_0x107838['previousPosition']),_0x2319be=!0x0):_0x236810=_0x236810||_0x107838['previousPosition']));}function _0x100a82(_0x2e6c43){const _0x32f80b=_0xf8e711['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1fa22f}),_0x3e0a92=_0xf8e711['mapper']['toViewPosition'](_0x2e6c43);_0x2df469&&_0x18a8f2['activeMarkers']['includes'](_0x4199af['markerName'])&&_0xf8e711['writer']['addClass']('ck-suggestion-marker--active',_0x32f80b),_0xf8e711['writer']['insert'](_0x3e0a92,_0x32f80b),_0xf8e711['mapper']['bindElementToMarker'](_0x32f80b,_0x4199af['markerName']);}_0x48926c||_0x2319be||!_0x236810||_0x100a82(_0x236810);};}class q extends _0x578bbc{static get['requires'](){return[_0x346d9a];}['init'](){const _0x298702=this['editor'],_0x37be2c=_0x298702['plugins']['get']('TrackChangesEditing');_0x37be2c['enableCommand']('delete');const _0x58e090=_0x298702['commands']['get']('deleteForward');_0x37be2c['enableCommand']('deleteForward',(_0x5eaae2,_0xddbe65={})=>{const _0x14eaf8=_0x298702['model']['createSelection'](_0x298702['model']['document']['selection']);_0x14eaf8['isCollapsed']&&_0x298702['model']['modifySelection'](_0x14eaf8,{'direction':'forward','unit':_0xddbe65['unit']});const _0x4907a2=_0x14eaf8['getFirstRange'](),_0x28d79a=_0x2028c8['fromRange'](_0x4907a2);let _0xdd7873;_0x5eaae2(_0xddbe65),_0xdd7873='$graveyard'==_0x28d79a['root']['rootName']?_0x298702['model']['createRange'](_0x4907a2['start']):_0x298702['model']['createRange'](_0x28d79a['start'],_0x28d79a['end']),_0x28d79a['detach'](),_0x298702['model']['enqueueChange'](_0x58e090['buffer']['batch'],_0x4c3b9a=>{_0x58e090['buffer']['lock'](),_0x4c3b9a['setSelection'](_0x4c3b9a['createRange'](_0xdd7873['end'])),_0x58e090['buffer']['unlock']();});}),_0x298702['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x298702,'merge'),{'priority':'high'}),_0x298702['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x30cfff,_0xb6fc58,_0x5d6708)=>{_0x5d6708['options']['showSuggestionHighlights']&&_e(_0x298702,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x30cfff,_0xb6fc58,_0x5d6708);},{'priority':'high'}),_0x298702['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4d5414,_0x3e1653,_0x270b95)=>{const _0x2ed366=_0x270b95['mapper']['markerNameToElements'](_0x3e1653['markerName']);if(_0x2ed366){for(const _0x3b951f of _0x2ed366)_0x3b951f['is']('uiElement')&&(_0x270b95['mapper']['unbindElementFromMarkerName'](_0x3b951f,_0x3e1653['markerName']),_0x270b95['writer']['remove'](_0x3b951f));}},{'priority':'high'});}}class z extends _0x578bbc{['afterInit'](){const _0x12099a=this['editor'];if(!_0x12099a['plugins']['has']('ListEditing'))return;const _0x3f1a12=_0x12099a['locale'],_0xcd6053=_0x12099a['plugins']['get']('TrackChangesEditing'),_0x495ce0=_0x12099a['plugins']['has']('TodoListEditing'),_0xfc2178=!!_0x12099a['config']['get']('list.multiBlock');function _0xfbcaa2(_0x3f6f9f){return{'type':'format','content':''+o(_0x3f1a12,'*Set\x20format:*\x20%0',_0x3f6f9f)};}function _0x4b9bcb(_0x4c80c3){return{'type':'format','content':''+o(_0x3f1a12,'*Remove\x20format:*\x20%0',_0x4c80c3)};}_0xcd6053['enableDefaultAttributesIntegration']('numberedList'),_0xcd6053['enableDefaultAttributesIntegration']('bulletedList'),_0xcd6053['enableDefaultAttributesIntegration']('customNumberedList'),_0xcd6053['enableDefaultAttributesIntegration']('customBulletedList'),_0xcd6053['enableDefaultAttributesIntegration']('indentList'),_0xcd6053['enableDefaultAttributesIntegration']('outdentList'),_0xcd6053['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xcd6053['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xcd6053['registerBlockAttribute']('listItemId'),_0xcd6053['registerBlockAttribute']('listType'),_0xcd6053['registerBlockAttribute']('listIndent'),_0xfc2178&&(_0xcd6053['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xcd6053['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x495ce0&&(_0xcd6053['enableDefaultAttributesIntegration']('todoList'),_0xcd6053['enableDefaultAttributesIntegration']('checkTodoList'),_0xcd6053['registerBlockAttribute']('todoListChecked'),_0xcd6053['descriptionFactory']['registerDescriptionCallback'](_0x3b23c7=>{const {data:_0x510548}=_0x3b23c7;if(_0x510548&&'todoListChecked'==_0x510548['key'])return{'type':'format','content':_0x510548['newValue']?o(_0x3f1a12,'*Check\x20item*'):o(_0x3f1a12,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4aadc6=>{if(_0x4aadc6['batch']['isUndo'])return!0x1;let _0x5a3813=!0x1;const _0x112e1c=_0xcd6053['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c2b52=>'todoListChecked'===_0xcd6053['_getAttributeKey'](_0x1c2b52));for(const _0x1e2b34 of _0x112e1c){'todo'!=_0x1e2b34['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xcd6053['_findSuggestions'](_0x1e2b34['getFirstRange'](),'attribute')['find'](_0x39d036=>'listType'===_0xcd6053['_getAttributeKey'](_0x39d036['suggestion']))||(_0x4aadc6['removeMarker'](_0x1e2b34['getFirstMarker']()),_0x5a3813=!0x0));}return _0x5a3813;})),_0xcd6053['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3f1a12,'FORMAT_INDENT'));const _0x3892fe={'type':'format','content':''};_0xcd6053['descriptionFactory']['registerDescriptionCallback'](_0x54fc92=>{const {data:_0x5bf44c}=_0x54fc92;if(!_0x5bf44c||'listType'!=_0x5bf44c['key'])return;let _0x17f002=_0x54fc92['head'];for(;_0x17f002;){if(_0x17f002['data']&&(('listStyle'==_0x17f002['data']['key']||'listMarkerStyle'==_0x17f002['data']['key'])&&(_0x17f002['data']['newValue']&&'default'!=_0x17f002['data']['newValue']||'default'!=_0x17f002['data']['oldValue']&&!_0x5bf44c['newValue'])||!_0xfc2178&&_0x17f002['data']['key']==m))return _0x3892fe;_0x17f002=_0x17f002['next'];}if(null==_0x5bf44c['newValue'])switch(_0x5bf44c['oldValue']){case'bulleted':return _0x4b9bcb(o(_0x3f1a12,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b9bcb(o(_0x3f1a12,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b9bcb(o(_0x3f1a12,'ELEMENT_TODO_LIST'));}switch(_0x5bf44c['newValue']){case'bulleted':return _0xfbcaa2(o(_0x3f1a12,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfbcaa2(o(_0x3f1a12,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfbcaa2(o(_0x3f1a12,'ELEMENT_TODO_LIST'));}}),_0xcd6053['descriptionFactory']['registerDescriptionCallback'](_0x4f9929=>{const {data:_0x1107e6}=_0x4f9929;if(_0x1107e6&&'listIndent'==_0x1107e6['key'])return null==_0x1107e6['newValue']||null==_0x1107e6['oldValue']&&0x0==_0x1107e6['newValue']?_0x3892fe:void 0x0;}),_0xcd6053['descriptionFactory']['registerDescriptionCallback'](_0x2673ba=>{if('attribute'!=_0x2673ba['type'])return;const {data:_0x491d0e}=_0x2673ba;if(!_0x491d0e||'listItemId'!=_0x491d0e['key'])return;const _0x4ed2b5=le(_0x2673ba);return'newValue'==_0x4ed2b5?{'type':'format','content':o(_0x3f1a12,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4ed2b5?{'type':'format','content':o(_0x3f1a12,'*Split:*\x20list\x20item')}:_0x3892fe;}),_0x12099a['model']['document']['registerPostFixer'](_0x59aa82=>this['listItemIdFixer'](_0x59aa82)),_0x12099a['model']['document']['registerPostFixer'](_0x920b51=>this['noTrackChangesFixer'](_0x920b51)),_0x12099a['model']['document']['registerPostFixer'](_0x235e4=>this['assureChains'](_0x235e4)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1d5add){if(_0x1d5add['batch']['isUndo']||!_0x1d5add['batch']['isLocal'])return!0x1;let _0x239a61=!0x1;const _0x56e6af=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fe542=>_0x4fe542['data']&&'listItemId'==_0x4fe542['data']['key'])['filter'](_0x3de550=>_0x3de550['data']['newValue']&&_0x3de550['data']['oldValue']);for(const _0x194c93 of _0x56e6af)le(_0x194c93)||(_0x1d5add['removeMarker'](_0x194c93['getFirstMarker']()),_0x239a61=!0x0);return _0x239a61;}['noTrackChangesFixer'](_0x318e48){if(_0x318e48['batch']['isUndo']||!_0x318e48['batch']['isLocal'])return!0x1;const _0x5dd0a6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5dd0a6['trackChangesCommand']['value'])return!0x1;let _0x3cc62f=!0x1;const _0x20235c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5549f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4bd11a=>'attribute'==_0x4bd11a['type'])['filter'](_0x5e7506=>_0x20235c['includes'](_0x5e7506['attributeKey']));if(0x0==_0x5549f['length'])return _0x3cc62f;for(const _0x257b6e of _0x5549f){const _0x2d0483=_0x5dd0a6['_findSuggestions'](_0x257b6e['range'],'attribute')['filter'](_0x5dd5e0=>!_0x5dd5e0['meta']['isNextTo'])['map'](_0x2ea23e=>_0x2ea23e['suggestion'])['filter'](_0x26fa53=>{const _0x22025e=_0x5dd0a6['_getAttributeKey'](_0x26fa53);return _0x20235c['includes'](_0x22025e);});if(_0x2d0483['length']){for(const _0x484e3e of _0x2d0483)_0x318e48['removeMarker'](_0x484e3e['getFirstMarker']());_0x3cc62f=!0x0;}}return _0x3cc62f;}['assureChains'](_0x51415c){if(_0x51415c['batch']['isUndo']||!_0x51415c['batch']['isLocal'])return!0x1;const _0x4496a2=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3ba3fb=!0x1;const _0x450850=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x499620 of _0x4496a2['getSuggestions']({'skipNotAttached':!0x0})){const _0x4c5c11=_0x4496a2['_findSuggestions'](_0x499620['getFirstRange'](),'attribute')['map'](_0x444557=>_0x444557['suggestion'])['filter'](_0x57ce31=>_0x57ce31['data']&&_0x450850['includes'](_0x57ce31['data']['key']));if(!_0x4c5c11['length'])continue;const _0x55d1c8=_0x4c5c11[0x0]['head']['attributes']['groupId'];if(!_0x4c5c11['every'](_0x3f8804=>_0x3f8804['attributes']['groupId']===_0x55d1c8)){for(const _0x24b0aa of _0x4c5c11)_0x259f1e(_0x24b0aa,_0x55d1c8)&&(_0x3ba3fb=!0x0);}}return _0x3ba3fb;function _0x34c48c(_0x1c1192,_0x19afc3){for(const _0x3519ae of _0x4496a2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27d4fa=>'attribute'==_0x27d4fa['type']&&_0x27d4fa['attributes']['groupId']==_0x1c1192))_0x3519ae['setAttribute']('groupId',_0x19afc3);}function _0x259f1e(_0x3a225e,_0x3a4a8e){let _0x588cf3=_0x3a225e['head'],_0x2289f5=!0x1;for(;_0x588cf3;)_0x588cf3['attributes']['groupId']!=_0x3a4a8e&&(_0x34c48c(_0x588cf3['attributes']['groupId'],_0x3a4a8e),_0x588cf3['setAttribute']('groupId',_0x3a4a8e),_0x2289f5=!0x0),_0x588cf3=_0x588cf3['next'];return _0x2289f5;}}['_supportLegacySuggestions'](){const _0x499523=this['editor'],_0x598c5f=_0x499523['locale'],_0x51bc67=_0x499523['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x51bc67['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1887fb,_0x1fe761){const _0x171c16=[];for(let _0x2227be of _0x1887fb)_0x2227be['start']['nodeAfter']===_0x2227be['end']['parent']&&(_0x2227be=_0x499523['model']['createRange'](_0x499523['model']['createPositionAt'](_0x2227be['start']['nodeAfter'],0x0))),_0x171c16['push'](_0x2227be);_0x499523['model']['change'](_0x439975=>{const _0x3c5a4e=_0x499523['model']['document']['selection'],_0x292dc6=Array['from'](_0x3c5a4e['getRanges']())['map'](_0x3dd16e=>_0x2028c8['fromRange'](_0x3dd16e));_0x439975['setSelection'](_0x171c16),_0x499523['commands']['get'](_0x1fe761['commandName'])['refresh'](),_0x1fe761['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x499523['execute'](_0x1fe761['commandName'],..._0x1fe761['commandParams']),_0x439975['setSelection'](_0x292dc6);for(const _0x23257a of _0x292dc6)_0x23257a['detach']();});}),_0x51bc67['descriptionFactory']['registerElementLabel'](function(_0x851433){const _0x304061=!_0x499523['model']['schema']['isObject'](_0x851433),_0x462ee0=_0x851433['previousSibling'],_0x1e1a4e=_0x851433['nextSibling'],_0xfad5d0=_0x851433['getAttribute']('listItemId'),_0x150fa1=!_0x462ee0||_0x462ee0['getAttribute']('listItemId')!==_0xfad5d0,_0x553fad=!_0x1e1a4e||_0x1e1a4e['getAttribute']('listItemId')!==_0xfad5d0;return _0x304061&&Boolean(_0xfad5d0)&&_0x150fa1&&_0x553fad;},_0x229eed=>o(_0x598c5f,'ELEMENT_LIST_ITEM',_0x229eed));}['_registerLegacyDescription'](){const _0x1fc0ba=this['editor'],_0x9e435c=_0x1fc0ba['locale'];function _0x2ba55e(_0x3d8168){const _0x28a6f5=_0x1fc0ba['commands']['get']('bulletedList')['value'],_0x1d5528=_0x1fc0ba['commands']['get']('numberedList')['value'];return'numberedList'===_0x3d8168?_0x28a6f5:_0x1d5528;}_0x1fc0ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x203f0f){if('formatBlock'!=_0x203f0f['type'])return;const {data:_0x489773}=_0x203f0f;if(!_0x489773)return;let _0x1b90d5,_0x444ff2,_0x5f58dc,_0x9a2f1d;switch(_0x489773['commandName']){case'bulletedList':_0x5f58dc=_0x489773['commandParams'][0x0]['forceValue'],_0x9a2f1d=_0x2ba55e(_0x489773['commandName']),_0x1b90d5=_0x5f58dc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x9a2f1d&&_0x1fc0ba['config']['get']('list.multiBlock')||(_0x1b90d5='*Change\x20to:*\x20%0'),_0x444ff2={'type':'format','content':o(_0x9e435c,_0x1b90d5,o(_0x9e435c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5f58dc=_0x489773['commandParams'][0x0]['forceValue'],_0x9a2f1d=_0x2ba55e(_0x489773['commandName']),_0x1b90d5=_0x5f58dc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x9a2f1d&&_0x1fc0ba['config']['get']('list.multiBlock')||(_0x1b90d5='*Change\x20to:*\x20%0'),_0x444ff2={'type':'format','content':o(_0x9e435c,_0x1b90d5,o(_0x9e435c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1b90d5='*Indent:*\x20%0',_0x444ff2={'type':'format','content':o(_0x9e435c,_0x1b90d5,o(_0x9e435c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1b90d5=function(_0x400e05){const _0x1e5ddb=_0x400e05['getFirstRange']();let _0x3bfc01=_0x1e5ddb['start']['nodeAfter'];for(;_0x3bfc01&&_0x1e5ddb['containsItem'](_0x3bfc01);){if(_0x3bfc01['getAttribute']('listIndent')>0x0)return!0x1;_0x3bfc01=_0x3bfc01['nextSibling'];}return!0x0;}(_0x203f0f)?o(_0x9e435c,'*Format:*\x20remove\x20from\x20%0',o(_0x9e435c,function(_0x10dc0e){return'ELEMENT_'+_0x10dc0e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x203f0f))):o(_0x9e435c,'*Outdent:*\x20%0',o(_0x9e435c,'ELEMENT_LIST_ITEM')),_0x444ff2={'type':'format','content':_0x1b90d5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x489773['multipleBlocks']&&(_0x1b90d5='*Merge:*\x20%0',_0x444ff2={'type':'deletion','content':o(_0x9e435c,_0x1b90d5,o(_0x9e435c,'ELEMENT_LIST_ITEM'))});}return _0x444ff2;});}}function le(_0x20b871){let _0x12b89a=_0x20b871['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x12b89a;){const _0x158275=_0x12b89a['getAttribute']('listItemId');if(!_0x158275)return!0x1;if(_0x158275==_0x20b871['data']['newValue'])return'newValue';if(_0x158275==_0x20b871['data']['oldValue'])return'oldValue';_0x12b89a=_0x12b89a['previousSibling'];}return!0x1;}class ue extends _0x578bbc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x150533=this['editor']['config']['get']('list.properties'),_0x30bee8=this['editor']['plugins']['get']('TrackChangesEditing');_0x150533['styles']&&(_0x30bee8['enableDefaultAttributesIntegration']('listStyle'),_0x30bee8['registerBlockAttribute']('listStyle')),_0x150533['reversed']&&(_0x30bee8['enableDefaultAttributesIntegration']('listReversed'),_0x30bee8['registerBlockAttribute']('listReversed')),_0x150533['startIndex']&&(_0x30bee8['enableDefaultAttributesIntegration']('listStart'),_0x30bee8['registerBlockAttribute']('listStart'));const _0xe37844={'type':'format','content':''};_0x30bee8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x180b40=this['editor']['locale'];_0x30bee8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x180b40,'FORMAT_LIST_REVERSED')),_0x30bee8['descriptionFactory']['registerDescriptionCallback'](_0x1b9aed=>{const {data:_0x6fef18}=_0x1b9aed;if(_0x6fef18&&'listReversed'==_0x6fef18['key'])return null==_0x6fef18['newValue']||0x0==_0x6fef18['newValue']&&null==_0x6fef18['oldValue']?_0xe37844:void 0x0;}),_0x30bee8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x180b40,'FORMAT_LIST_START')),_0x30bee8['descriptionFactory']['registerDescriptionCallback'](_0x45c3f1=>{const {data:_0x333a13}=_0x45c3f1;if(_0x333a13&&'listStart'==_0x333a13['key'])return null==_0x333a13['newValue']||0x1==_0x333a13['newValue']&&null==_0x333a13['oldValue']?_0xe37844:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x183020=>{if(_0x183020['batch']['isUndo'])return!0x1;let _0x4d1c75=!0x1;const _0x487587=_0x30bee8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e3f15=>{const _0x500c6d=_0x30bee8['_getAttributeKey'](_0x2e3f15);return'listStart'==_0x500c6d||'listReversed'==_0x500c6d;});for(const _0x5f4f50 of _0x487587){const _0x3bd26f=_0x5f4f50['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3bd26f||'customNumbered'==_0x3bd26f)continue;_0x30bee8['_findSuggestions'](_0x5f4f50['getFirstRange'](),'attribute')['find'](_0x1c3865=>'listType'==_0x30bee8['_getAttributeKey'](_0x1c3865['suggestion']))||(_0x183020['removeMarker'](_0x5f4f50['getFirstMarker']()),_0x4d1c75=!0x0);}return _0x4d1c75;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x13a51f){const _0x5868a1=this['editor']['locale'],{data:_0x223673}=_0x13a51f,_0x18ce28={'type':'format','content':''};if(!_0x223673||'listStyle'!=_0x223673['key'])return;if(!_0x223673['oldValue'])return'default'==_0x223673['newValue']?_0x18ce28:{'type':'format','content':''+o(_0x5868a1,'*Set\x20format:*\x20%0',o(_0x5868a1,this['_getTranslationKeyForListStyle'](_0x223673['newValue'])))};if(!_0x223673['newValue']){if('default'==_0x223673['oldValue'])return _0x18ce28;let _0x54270b=_0x13a51f['head'];for(;_0x54270b;){if(_0x54270b['data']&&'listType'==_0x54270b['data']['key']&&_0x54270b['data']['newValue'])return _0x18ce28;_0x54270b=_0x54270b['next'];}return{'type':'format','content':''+o(_0x5868a1,'*Remove\x20format:*\x20%0',o(_0x5868a1,this['_getTranslationKeyForListStyle'](_0x223673['oldValue'])))};}if('default'!=_0x223673['newValue'])return{'type':'format','content':''+o(_0x5868a1,'*Set\x20format:*\x20%0',o(_0x5868a1,this['_getTranslationKeyForListStyle'](_0x223673['newValue'])))};let _0xa9c1b0=_0x13a51f['head'];for(;_0xa9c1b0;){if(_0xa9c1b0['data']&&'listType'==_0xa9c1b0['data']['key']&&_0xa9c1b0['data']['newValue']&&_0xa9c1b0['data']['oldValue'])return _0x18ce28;_0xa9c1b0=_0xa9c1b0['next'];}return{'type':'format','content':o(_0x5868a1,'*Set\x20format:*\x20%0',o(_0x5868a1,'ELEMENT_'+_0x13a51f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4b5e2f=this['editor'],_0xeb8e5d=_0x4b5e2f['locale'];_0x4b5e2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x120f31=>{if('formatBlock'!=_0x120f31['type'])return;const {data:_0x3b121e}=_0x120f31;if(!_0x3b121e)return;let _0x49c651,_0x2e2047;switch(_0x3b121e['commandName']){case'listStyle':_0x49c651='*Change\x20to:*\x20%0',_0x2e2047={'type':'format','content':o(_0xeb8e5d,_0x49c651,o(_0xeb8e5d,this['_getTranslationKeyForListStyle'](_0x3b121e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x49c651=_0x3b121e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e2047={'type':'format','content':o(_0xeb8e5d,_0x49c651)};break;case'listStart':_0x49c651='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e2047={'type':'format','content':o(_0xeb8e5d,_0x49c651,_0x3b121e['commandParams'][0x0]['startIndex'])};}return _0x2e2047;});}['_getTranslationKeyForListStyle'](_0x47610f){return'ELEMENT_'+function(_0x504deb){if(pe['includes'](_0x504deb))return'bulleted';if(ye['includes'](_0x504deb))return'numbered';return null;}(_0x47610f)['toUpperCase']()+'_LIST_'+_0x47610f['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x578bbc{static get['requires'](){return[_0x2eb65c];}['init'](){const _0x3623d0=this['editor'],_0x4f0cf0=_0x3623d0['plugins']['get']('TrackChangesEditing'),_0x59def2=_0x3623d0['commands']['get']('enter');_0x4f0cf0['enableCommand']('enter',()=>{_0x3623d0['model']['change'](_0x1f2eb5=>{const _0x4487f0=_0x3623d0['model']['document']['selection'],_0x3bd0bd=_0x4487f0['getFirstPosition'](),_0x44529e=_0x2028c8['fromRange'](_0x4487f0['getFirstRange']());if(_0x59def2['enterBlock'](_0x1f2eb5)){const _0x98479c=_0x3623d0['model']['createPositionAt'](_0x3bd0bd['parent']['nextSibling'],0x0),_0x109782=_0x1f2eb5['createRange'](_0x3bd0bd,_0x98479c);_0x4f0cf0['markInsertion'](_0x109782);}else _0x1f2eb5['setSelection'](_0x1f2eb5['createRange'](_0x44529e['end']));_0x44529e['detach'](),_0x59def2['fire']('afterExecute',{'writer':_0x1f2eb5});});}),_0x3623d0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3623d0,'split'),{'priority':'high'}),_0x3623d0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2f46d3,_0x4c4d3f,_0x2e03c6)=>{const _0x4d12c7=_0x2e03c6['mapper']['markerNameToElements'](_0x4c4d3f['markerName']);if(_0x4d12c7){for(const _0x21f946 of _0x4d12c7)_0x21f946['hasClass']('ck-suggestion-marker-split')&&(_0x2e03c6['mapper']['unbindElementFromMarkerName'](_0x21f946,_0x4c4d3f['markerName']),_0x2e03c6['writer']['remove'](_0x21f946));}},{'priority':'high'}),_0x3623d0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x147f00,_0x24d7bd,_0x3d5103)=>{_0x3d5103['options']['showSuggestionHighlights']&&_e(_0x3623d0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x147f00,_0x24d7bd,_0x3d5103);},{'priority':'high'});}}class J extends _0x578bbc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3db952=this['editor']['plugins']['get']('TrackChangesEditing');_0x3db952['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3db952['enableCommand']('findNext'),_0x3db952['enableCommand']('findPrevious'),_0x3db952['enableCommand']('replace'),_0x3db952['enableCommand']('replaceAll');}['handleFindCommand'](_0x527210,_0x378582,_0x369256={}){const _0x5a2d22=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x527210(_0x48c5c4=>('string'==typeof _0x378582?_0x5a2d22['findByTextCallback'](_0x378582,_0x369256):_0x378582)(_0x48c5c4)['filter'](_0x448e9c=>!0x1===this['_isInDeletionRange'](_0x448e9c,_0x48c5c4['item'])),_0x369256);}['_isInDeletionRange'](_0x4ee725,_0x20835c){const _0x22f02d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x20835c,_0x4ee725['start']),this['editor']['model']['createPositionAt'](_0x20835c,_0x4ee725['end']));for(const _0x426521 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x22f02d['getIntersection'](_0x426521['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 _0x578bbc{['afterInit'](){const _0x2a5072=this['editor']['locale'],_0x1cedcd=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x43f1cd,commandName:_0xfd51bc}of ro)this['editor']['plugins']['has'](_0x43f1cd)&&(_0x1cedcd['enableDefaultAttributesIntegration'](_0xfd51bc),_0x1cedcd['registerInlineAttribute'](_0xfd51bc));_0x2a5072['t'],_0x1cedcd['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2a5072,'FORMAT_FONT_SIZE')),_0x1cedcd['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2a5072,'FORMAT_FONT_FAMILY')),_0x1cedcd['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2a5072,'FORMAT_FONT_COLOR')),_0x1cedcd['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2a5072,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16b698=this['editor'],_0x312c68=_0x16b698['locale'];_0x16b698['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31b527=>{const _0x4afcf6=_0x312c68['t'];if('formatInline'!=_0x31b527['type'])return;const {data:_0x452c7d}=_0x31b527;if(null!=_0x452c7d){if('fontSize'==_0x452c7d['commandName']){const _0x354d43=_0x452c7d['commandParams'][0x0]['value'];if(_0x354d43){const _0x3b3d25=_0x4afcf6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2bc7c0=>_0x2bc7c0['model']==_0x354d43)['title'])['toLowerCase']();return{'type':'format','content':o(_0x312c68,'*Set\x20font\x20size:*\x20%0',_0x3b3d25)};}return{'type':'format','content':o(_0x312c68,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x452c7d['commandName']){const _0x56a114=_0x452c7d['commandParams'][0x0]['value'];return _0x56a114?{'type':'format','content':o(_0x312c68,'*Set\x20font\x20family:*\x20%0',_0x56a114)}:{'type':'format','content':o(_0x312c68,'*Reset\x20font\x20family*')};}if('fontColor'==_0x452c7d['commandName']){const _0x1eb5c7=_0x452c7d['commandParams'][0x0]['value'];if(_0x1eb5c7){const _0x2e4021=_0x26798f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a1e67=>_0x4a1e67['model']==_0x1eb5c7);let _0x389ac9=_0x1eb5c7,_0xf14f90='';return _0x2e4021&&(_0x389ac9=_0x2e4021['label'],_0xf14f90=_0x4afcf6(_0x389ac9)['toLowerCase']()),{'type':'format','content':o(_0x312c68,'*Set\x20font\x20color:*\x20%0',_0xf14f90)['trim'](),'color':{'value':_0x1eb5c7,'title':_0xf14f90||_0x389ac9}};}return{'type':'format','content':o(_0x312c68,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x452c7d['commandName']){const _0x439f26=_0x452c7d['commandParams'][0x0]['value'];if(_0x439f26){const _0x51e89f=_0x26798f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x479140=>_0x479140['model']==_0x439f26);let _0x3be771=_0x439f26,_0x5d1a8d='';return _0x51e89f&&(_0x3be771=_0x51e89f['label'],_0x5d1a8d=_0x4afcf6(_0x3be771)['toLowerCase']()),{'type':'format','content':o(_0x312c68,'*Set\x20font\x20background\x20color:*\x20%0',_0x5d1a8d)['trim'](),'color':{'value':_0x439f26,'title':_0x5d1a8d||_0x3be771}};}return{'type':'format','content':o(_0x312c68,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x578bbc{['afterInit'](){const _0x453e2c=this['editor'],_0x56f679=_0x453e2c['plugins']['get']('TrackChangesEditing'),_0x1dbeb2=_0x453e2c['commands']['get']('copyFormat'),_0x5ded9f=_0x453e2c['commands']['get']('pasteFormat');_0x1dbeb2&&_0x5ded9f&&(_0x56f679['enableDefaultAttributesIntegration']('pasteFormat'),_0x56f679['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5ecf52=this['editor'],_0x4a5d38=_0x5ecf52['locale'];_0x5ecf52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb6eb=>{if('formatBlock'!=_0x3bb6eb['type']&&'formatInline'!=_0x3bb6eb['type'])return;const {data:_0x104e83}=_0x3bb6eb;if(_0x104e83&&'pasteFormat'===_0x104e83['commandName']){const _0x375a48=[],_0x2dfe83=_0x104e83['commandParams'][0x0];for(const [_0x2900fe,_0xc131c9]of Object['entries'](_0x2dfe83))_0x375a48['push'](so(_0x5ecf52,_0x2900fe,_0xc131c9));return _0x375a48['length']?{'type':'format','content':o(_0x4a5d38,'*Set\x20format\x20to:*\x20%0',_0x375a48['join'](',\x20'))}:{'type':'format','content':o(_0x4a5d38,'*Remove\x20all\x20formatting*')};}});}}function so(_0xf904d3,_0x106938,_0x1d36d9){const _0x3b54ee=_0xf904d3['locale']['t'],_0x173df8=_0x106938['split'](/(?=[A-Z])/)['join']('\x20'),_0x573e8d=_0x3b54ee(_0x173df8['charAt'](0x0)['toUpperCase']()+_0x173df8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1d36d9)return _0x573e8d;if('fontColor'===_0x106938||'fontBackgroundColor'===_0x106938){const _0x1639e9=_0x26798f(_0xf904d3['config']['get']('fontColor.colors'))['find'](_0xf03573=>_0xf03573['model']==_0x1d36d9);return _0x573e8d+'\x20('+(_0x1639e9?_0x3b54ee(_0x1639e9['label'])['toLowerCase']():_0x1d36d9)+')';}if('fontSize'===_0x106938&&isNaN(parseFloat(_0x1d36d9))){const _0x36ec1d=_0xf904d3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xf904d3['config']['get']('fontSize.options'))['find'](_0x35ccbe=>_0x35ccbe['model']==_0x1d36d9);return _0x573e8d+'\x20('+(_0x36ec1d?_0x3b54ee(_0x36ec1d['title'])['toLowerCase']():_0x1d36d9)+')';}return _0x573e8d+'\x20('+_0x1d36d9+')';}class Y extends _0x578bbc{['_headingOptions'];['afterInit'](){const _0x5d8fb8=this['editor'];if(!_0x5d8fb8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5d8fb8['config']['get']('heading.options');const _0x4f550f=_0x5d8fb8['locale'],_0x202b02=_0x5d8fb8['plugins']['get']('TrackChangesEditing');_0x202b02['enableDefaultAttributesIntegration']('heading');for(const _0x1f4e31 of this['_headingOptions'])'paragraph'!=_0x1f4e31['model']&&_0x202b02['descriptionFactory']['registerElementLabel'](_0x1f4e31['model'],_0x3348d6=>{const _0x302301=this['_getHeadingLevel'](_0x1f4e31['model']);return null!==_0x302301?_0xe423f8(_0x3348d6,_0x302301):_0x5051db(_0x3348d6,_0x1f4e31['title']);});function _0xe423f8(_0x1f8c88,_0x4f11e5){return o(_0x4f550f,'ELEMENT_HEADING',[_0x1f8c88,_0x4f11e5]);}function _0x5051db(_0x333d6e,_0x4ea5de){return o(_0x4f550f,'ELEMENT_HEADING_CUSTOM',[_0x333d6e,_0x4ea5de]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x577202=this['editor'],_0x1f96ab=_0x577202['locale'];function _0x1bcaf8(_0x299014,_0x5263ae){return o(_0x1f96ab,'ELEMENT_HEADING_CUSTOM',[_0x299014,_0x5263ae]);}_0x577202['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5531d9=>{if('formatBlock'!=_0x5531d9['type'])return;const {data:_0x8d7dc7}=_0x5531d9;if(_0x8d7dc7&&'heading'==_0x8d7dc7['commandName']){const _0x20d8e3=_0x8d7dc7['commandParams'][0x0]['value'],_0x282dcd=this['_getHeadingLevel'](_0x20d8e3);if(null!==_0x282dcd)return{'type':'format','content':o(_0x1f96ab,'*Change\x20to:*\x20%0',(_0x572cb6=0x1,_0x4bab73=_0x282dcd,o(_0x1f96ab,'ELEMENT_HEADING',[_0x572cb6,_0x4bab73])))};const _0x555353=this['_headingOptions']['find'](_0x2e90bd=>_0x2e90bd['model']===_0x20d8e3)['title'];return{'type':'format','content':o(_0x1f96ab,'*Change\x20to:*\x20%0',_0x1bcaf8(0x1,_0x555353))};}var _0x572cb6,_0x4bab73;});}['_getHeadingLevel'](_0x483275){const _0x36cbff=_0x483275['match'](/^heading(\d+)/);if(_0x36cbff)return _0x36cbff[0x1];const _0x38af5c=this['_headingOptions']?.['find'](_0x144d47=>_0x144d47['model']==_0x483275);if(_0x38af5c&&_0x38af5c['view']){const _0x448703=_0x38af5c['view'],_0x293662=(_0x448703['name']??_0x448703)['match'](/^h(\d+)/);if(_0x293662)return _0x293662[0x1];}return null;}}class Z extends _0x578bbc{['afterInit'](){const _0x1c2f53=this['editor'];if(!_0x1c2f53['plugins']['has']('HighlightEditing'))return;const _0x561dbb=_0x1c2f53['plugins']['get']('TrackChangesEditing'),_0x123115=_0x1c2f53['locale'];_0x561dbb['enableDefaultAttributesIntegration']('highlight'),_0x561dbb['registerInlineAttribute']('highlight'),_0x561dbb['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x123115,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35a951=this['editor'],_0x34c3b6=_0x35a951['locale'];_0x35a951['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x526342=>{if('formatInline'!=_0x526342['type'])return;const {data:_0x1f8832}=_0x526342;if(_0x1f8832&&'highlight'==_0x1f8832['commandName']){const _0x2a9d96=_0x34c3b6['t'],_0x4ff0ec=_0x1f8832['commandParams'][0x0]['value'];if(_0x4ff0ec){const _0x20bb65=_0x35a951['config']['get']('highlight.options')['find'](_0x5ef7f9=>_0x5ef7f9['model']==_0x4ff0ec),_0x5472f8=_0x2a9d96(_0x20bb65['title'])['toLowerCase']();return{'type':'format','content':o(_0x34c3b6,'*Set\x20highlight:*\x20%0',_0x5472f8),'color':{'value':_0x20bb65['color'],'title':_0x20bb65['title']}};}return{'type':'format','content':o(_0x34c3b6,'*Remove\x20highlight*',o(_0x34c3b6,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x578bbc{['afterInit'](){const _0x29fe10=this['editor'];if(!_0x29fe10['plugins']['has']('HorizontalLineEditing'))return;_0x29fe10['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x398539=_0x29fe10['plugins']['get']('TrackChangesEditing'),_0x1028f6=_0x29fe10['locale'];_0x398539['descriptionFactory']['registerElementLabel']('horizontalLine',_0x8e5b41=>o(_0x1028f6,'ELEMENT_HORIZONTAL_LINE',_0x8e5b41)),_0x29fe10['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x318fdb,{writer:_0x58536e,options:_0x4077a6})=>{if(!_0x4077a6['showSuggestionHighlights'])return null;const _0xfcaf81=_0x58536e['createContainerElement']('div'),_0x21bdd5=_0x58536e['createEmptyElement']('hr');return _0x58536e['addClass']('ck-horizontal-line',_0xfcaf81),_0x58536e['insert'](_0x58536e['createPositionAt'](_0xfcaf81,0x0),_0x21bdd5),_0xfcaf81;},'converterPriority':'high'});}}class et extends _0x578bbc{['afterInit'](){const _0x319810=this['editor'];if(!_0x319810['plugins']['has']('HtmlEmbed'))return;const _0x243f43=_0x319810['plugins']['get']('TrackChangesEditing'),_0x1fba6c=_0x319810['locale'];_0x243f43['descriptionFactory']['registerElementLabel']('rawHtml',_0x5cc7d8=>o(_0x1fba6c,'ELEMENT_HTML_EMBED',_0x5cc7d8)),_0x243f43['enableDefaultAttributesIntegration']('htmlEmbed'),_0x243f43['registerBlockAttribute']('value'),_0x243f43['descriptionFactory']['registerDescriptionCallback'](_0x5c4db4=>{if('attribute'!=_0x5c4db4['type'])return;const {data:_0x1f16e6}=_0x5c4db4;if(_0x1f16e6&&'value'==_0x1f16e6['key']&&_0x5c4db4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3aaca2=o(_0x1fba6c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1fba6c,'*Change\x20%0\x20content*',_0x3aaca2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x126b70=this['editor'],_0x410a69=_0x126b70['locale'];_0x126b70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x521e31=>{if('formatBlock'!=_0x521e31['type'])return;const {data:_0x2c265c}=_0x521e31;if(_0x2c265c&&'htmlEmbed'==_0x2c265c['commandName']){const _0x1b02dd=o(_0x410a69,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x410a69,'*Change\x20%0\x20content*',_0x1b02dd)};}});}}class it extends _0x578bbc{['afterInit'](){const _0x4f47d0=this['editor'];if(!_0x4f47d0['plugins']['has']('ImageEditing'))return;const _0x26155d=_0x4f47d0['plugins']['get']('TrackChangesEditing'),_0x1805a1=_0x4f47d0['plugins']['get']('ImageUtils'),_0x23fe49=_0x4f47d0['locale'];_0x26155d['enableCommand']('insertImage'),_0x26155d['descriptionFactory']['registerElementLabel']('imageBlock',_0x59ce4d=>o(_0x23fe49,'ELEMENT_IMAGE',_0x59ce4d)),_0x26155d['descriptionFactory']['registerElementLabel']('imageInline',_0xb6d563=>o(_0x23fe49,'ELEMENT_INLINE_IMAGE',_0xb6d563)),_0x26155d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x23fe49,'ELEMENT_CAPTION')),_0x4f47d0['plugins']['has']('ImageUploadEditing')&&_0x26155d['enableCommand']('uploadImage'),_0x4f47d0['plugins']['has']('ImageBlockEditing')&&_0x4f47d0['plugins']['has']('ImageInlineEditing')&&(_0x26155d['enableCommand']('imageTypeInline',(_0x5d2bed,_0x17e04a)=>{const _0xc37ff2=_0x1805a1['getClosestSelectedImageElement'](_0x4f47d0['model']['document']['selection']);_0x4f47d0['model']['change'](()=>{_0x26155d['markBlockFormat'](_0xc37ff2,{'commandName':'imageTypeInline','commandParams':[_0x17e04a]},[],'convertBlockImageToInline');});}),_0x26155d['enableCommand']('imageTypeBlock',(_0x28ae6f,_0x241039)=>{_0x4f47d0['model']['change'](_0x3f7169=>{let _0x2fae6a=_0x1805a1['getClosestSelectedImageElement'](_0x4f47d0['model']['document']['selection']),_0x3b7298=_0x3f7169['createRangeOn'](_0x2fae6a);const _0x3fabdf=_0x13fc95['fromPosition'](_0x3b7298['start'],'toPrevious'),_0xed6c9c=_0x13fc95['fromPosition'](_0x3b7298['end'],'toNext');_0x26155d['forceDefaultExecution'](()=>_0x28ae6f(_0x241039)),_0x2fae6a=_0x1805a1['getClosestSelectedImageElement'](_0x4f47d0['model']['document']['selection']),_0x3b7298=_0x3f7169['createRangeOn'](_0x2fae6a);const _0x2a5298=_0x3f7169['createRange'](_0x3fabdf,_0xed6c9c);_0x3fabdf['detach'](),_0xed6c9c['detach'](),_0x26155d['markBlockFormat'](_0x2fae6a,{'commandName':'imageTypeInline','commandParams':[_0x241039]},[],'convertInlineImageToBlock'),_0x2a5298['start']['isBefore'](_0x3b7298['start'])&&_0x26155d['markInsertion'](_0x3f7169['createRange'](_0x2a5298['start'],_0x3b7298['start']),'convertInlineImageToBlock'),_0x3b7298['end']['isBefore'](_0x2a5298['end'])&&_0x26155d['markInsertion'](_0x3f7169['createRange'](_0x3b7298['end'],_0x2a5298['end']),'convertInlineImageToBlock');});}),_0x26155d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x26155d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x26155d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x26155d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x26155d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x26155d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x48e8e1])=>{const _0x203bfd=_0x26155d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5ecfc9=_0x48e8e1['start'],_0x4f6dbb=_0x48e8e1['end'];const _0x3f1653=_0x4f47d0['model']['schema']['getNearestSelectionRange'](_0x5ecfc9,'backward'),_0x366613=_0x4f47d0['model']['schema']['getNearestSelectionRange'](_0x4f6dbb,'forward');_0x3f1653['isCollapsed']&&(_0x5ecfc9=_0x3f1653['start']),_0x366613['isCollapsed']&&(_0x4f6dbb=_0x366613['end']),_0x203bfd([_0x4f47d0['model']['createRange'](_0x5ecfc9,_0x4f6dbb)]);}),_0x26155d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x134689),_0x26155d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x134689)),_0x4f47d0['plugins']['has']('ImageCaptionEditing')&&(_0x26155d['enableCommand']('toggleImageCaption',(_0xc46da0,_0x5c860a)=>{const _0x485884=_0x4f47d0['plugins']['get']('ImageCaptionUtils');let _0x157666=_0x1805a1['getClosestSelectedImageElement'](_0x4f47d0['model']['document']['selection']),_0x1e3ce2=_0x485884['getCaptionFromImageModelElement'](_0x157666);_0x4f47d0['model']['change'](()=>{if(_0x1e3ce2)return void _0x26155d['markDeletion'](_0x4f47d0['model']['createRangeOn'](_0x1e3ce2));const _0x40c223=_0x1805a1['isBlockImage'](_0x157666);_0xc46da0(_0x5c860a),_0x157666=_0x1805a1['getClosestSelectedImageElement'](_0x4f47d0['model']['document']['selection']),_0x1e3ce2=_0x485884['getCaptionFromImageModelElement'](_0x157666),_0x26155d['markInsertion'](_0x4f47d0['model']['createRangeOn'](_0x1e3ce2),_0x40c223?null:'imageCaption');});}),_0x26155d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x134689));const _0x2cea0d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x296dc3(_0x5db424,_0x4a227f){const _0x3082c6=_0x2cea0d['findIndex'](({type:_0x262a84,subType:_0xabd083})=>_0x5db424['type']==_0x262a84&&_0x5db424['subType']==_0xabd083),_0x35a848=_0x2cea0d['findIndex'](({type:_0x4bf05f,subType:_0x3c327a})=>_0x4a227f['type']==_0x4bf05f&&_0x4a227f['subType']==_0x3c327a);if(_0x3082c6<0x0||_0x35a848<0x0)return!0x1;const _0x44b76e=_0x5db424['getFirstRange'](),_0x4f367a=_0x4a227f['getFirstRange']();if((0x0==_0x3082c6||0x1==_0x3082c6)&&0x2==_0x35a848&&_0x44b76e['isIntersecting'](_0x4f367a))return!0x0;if(0x2==_0x3082c6&&0x3==_0x35a848){const _0x5563ad=_0x26155d['_findSuggestions'](_0x44b76e,'insertion')['filter'](({suggestion:_0xf00979,meta:_0x45aebd})=>_0x45aebd['isOwn']&&'convertInlineImageToBlock'==_0xf00979['subType']);if(_0x5563ad['length']>0x1&&_0x4f367a['end']['isEqual'](_0x44b76e['start']))return!0x0;if(0x1==_0x5563ad['length']&&(_0x44b76e['start']['isEqual'](_0x4f367a['end'])||_0x44b76e['end']['isEqual'](_0x4f367a['start'])))return!0x0;}if(0x3==_0x3082c6&&0x3==_0x35a848&&_0x44b76e['start']['isBefore'](_0x4f367a['start'])){const _0x3a984b=_0x44b76e['end']['nodeAfter'],_0x1fe01a=_0x4f367a['start']['nodeBefore'];return _0x1805a1['isBlockImage'](_0x3a984b)&&_0x3a984b===_0x1fe01a;}return!0x1;}function _0x134689(_0x399a21,_0x4cfa5d){return _0x296dc3(_0x399a21,_0x4cfa5d)?[_0x399a21,_0x4cfa5d]:_0x296dc3(_0x4cfa5d,_0x399a21)?[_0x4cfa5d,_0x399a21]:null;}_0x4f47d0['plugins']['has']('ImageResize')&&(_0x26155d['enableDefaultAttributesIntegration']('resizeImage'),_0x26155d['registerBlockAttribute']('resizedWidth'),_0x26155d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x23fe49,'FORMAT_IMAGE_SIZE'))),_0x4f47d0['plugins']['has']('ImageTextAlternativeEditing')&&(_0x26155d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x26155d['registerBlockAttribute']('alt')),_0x26155d['descriptionFactory']['registerDescriptionCallback'](_0x4a878c=>{if(!!_0x2cea0d['find'](({type:_0xadf19c,subType:_0x1a30b1})=>_0x4a878c['type']==_0xadf19c&&_0x4a878c['subType']==_0x1a30b1))return _0x4a878c['previous']?{}:void 0x0;}),_0x26155d['descriptionFactory']['registerDescriptionCallback'](_0x363807=>{if('insertion'==_0x363807['type']||'deletion'==_0x363807['type']){const _0x480769=_0x363807['getContainedElement']();if(_0x480769&&_0x480769['is']('element','caption'))return{'type':'insertion'==_0x363807['type']?'addObject':'removeObject','element':_0x480769,'quantity':0x1};}}),_0x26155d['descriptionFactory']['registerDescriptionCallback'](_0x63d145=>'formatBlock'==_0x63d145['type']&&'convertInlineImageToBlock'==_0x63d145['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x63d145['type']&&'convertBlockImageToInline'==_0x63d145['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26155d['descriptionFactory']['registerDescriptionCallback'](_0xd25bcb=>{if('attribute'!=_0xd25bcb['type'])return;const {data:_0x4966bb}=_0xd25bcb;if(!_0x4966bb||'alt'!=_0x4966bb['key'])return;const _0x250f83=_0x4966bb['newValue'];return _0x250f83?{'type':'format','content':o(_0x23fe49,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x250f83+'\x22')}:{'type':'format','content':o(_0x23fe49,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x500fec=this['editor'],_0x4fa433=_0x500fec['locale'];_0x500fec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44f515=>{if('formatBlock'!=_0x44f515['type']&&'formatInline'!=_0x44f515['type'])return;const {data:_0x2384f1}=_0x44f515;if(_0x2384f1){if('imageTextAlternative'==_0x2384f1['commandName']){const _0x5d0dfa=_0x2384f1['commandParams'][0x0]['newValue'];return _0x5d0dfa?{'type':'format','content':o(_0x4fa433,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d0dfa+'\x22')}:{'type':'format','content':o(_0x4fa433,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2384f1['commandName']){const _0x104389=_0x2384f1['commandParams'][0x0]['width'];return _0x104389?{'type':'format','content':o(_0x4fa433,'*Set\x20image\x20width:*\x20%0',_0x104389)}:{'type':'format','content':o(_0x4fa433,'*Reset\x20image\x20width*')};}}});}}class st extends _0x578bbc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1310ba=this['editor']['locale'],_0x411ab0=this['editor']['plugins']['get']('TrackChangesEditing');_0x411ab0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x411ab0['registerBlockAttribute']('src'),_0x411ab0['descriptionFactory']['registerDescriptionCallback'](_0x305689=>{if('attribute'!=_0x305689['type'])return;const {data:_0x1268bb}=_0x305689;return _0x1268bb&&'src'==_0x1268bb['key']?_0x1268bb['newValue']&&_0x1268bb['oldValue']?{'type':'format','content':o(_0x1310ba,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x468e62=this['editor']['plugins']['get']('TrackChangesEditing');_0x468e62['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x468e62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x468e62['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x468e62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe020ba=this['editor'],_0x5524a9=_0xe020ba['locale'];_0xe020ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x520c93=>{if('formatBlock'!=_0x520c93['type']&&'formatInline'!=_0x520c93['type'])return;const {data:_0x347345}=_0x520c93;if(!_0x347345||'replaceImageSource'!=_0x347345['commandName'])return;return{'type':'format','content':o(_0x5524a9,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x578bbc{['afterInit'](){const _0x360982=this['editor'];if(!_0x360982['plugins']['has']('ImageStyleEditing'))return;const _0x3c12b2=_0x360982['plugins']['get']('TrackChangesEditing'),_0x1c6550=_0x360982['plugins']['get']('ImageUtils'),_0xf5e4c1={};_0x3c12b2['enableCommand']('imageStyle',(_0x17d75a,_0x3cb9d8)=>{const _0x4c4c26=_0x360982['plugins']['get']('Users')['me'],_0xe65b3f=_0x360982['commands']['get']('imageStyle');let _0x27d040=_0x1c6550['getClosestSelectedImageElement'](_0x360982['model']['document']['selection']),_0x1daf1d=_0x360982['model']['createRangeOn'](_0x27d040),_0x4f88e4=_0xe65b3f['value'];if(_0x4f88e4==_0x3cb9d8['value'])return;const _0x1339b7={'commandName':'imageStyle','commandParams':[_0x3cb9d8],'formatGroupId':_0x3446bc()};_0x360982['model']['change'](()=>{if(_0x3c12b2['getSuggestions']()['filter'](_0x47658b=>_0x47658b['isInContent']&&_0x4c4c26==_0x47658b['author']&&('formatBlock'==_0x47658b['type']||'formatInline'==_0x47658b['type'])&&('imageStylePreApply'==_0x47658b['subType']||'imageStylePostApply'==_0x47658b['subType'])&&_0x47658b['getFirstRange']()['isEqual'](_0x1daf1d))['forEach'](_0x502bac=>_0x3c12b2['discardSuggestion'](_0x502bac['head'])),_0x27d040=_0x1c6550['getClosestSelectedImageElement'](_0x360982['model']['document']['selection']),_0x1daf1d=_0x360982['model']['createRangeOn'](_0x27d040),_0xe65b3f['refresh'](),_0x360982['commands']['get']('imageTypeInline')['refresh'](),_0x360982['commands']['get']('imageTypeBlock')['refresh'](),_0x4f88e4=_0xe65b3f['value'],_0x4f88e4!=_0x3cb9d8['value'])return _0x1c6550['isInlineImage'](_0x27d040)&&_0xe65b3f['shouldConvertImageType'](_0x3cb9d8['value'],_0x27d040)?(_0x17d75a({..._0x3cb9d8,'setImageSizes':!0x1}),_0x27d040=_0x1c6550['getClosestSelectedImageElement'](_0x360982['model']['document']['selection']),void _0x3c12b2['markBlockFormat'](_0x27d040,{..._0x1339b7,'commandReversedParams':[{'value':_0x4f88e4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1c6550['isBlockImage'](_0x27d040)?_0x3c12b2['markBlockFormat'](_0x27d040,_0x1339b7,[],'imageStylePostApply'):_0x3c12b2['markInlineFormat'](_0x1daf1d,_0x1339b7,'imageStylePostApply'));});});for(const _0x5c4a52 of _0x360982['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xf5e4c1[_0x5c4a52['name']]=_0x5c4a52['title']['toLowerCase']();_0x3c12b2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3c12b2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3c12b2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3c12b2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1fc1d6])=>{_0x1c6550['setImageNaturalSizeAttributes'](_0x1fc1d6['getContainedElement']());}),_0x3c12b2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x24f75e,_0x58f448)=>{_0x3c12b2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x24f75e,{'commandName':_0x58f448['commandName'],'commandParams':_0x58f448['commandReversedParams']});}),_0x3c12b2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5e77da,_0x294d0f){if(_0x486580(_0x5e77da,_0x294d0f))return[_0x5e77da,_0x294d0f];if(_0x486580(_0x294d0f,_0x5e77da))return[_0x294d0f,_0x5e77da];return null;});const _0x4bc38d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x486580(_0x30af30,_0x379df8){const _0x132c15=_0x4bc38d['findIndex'](({type:_0xe7b029,subType:_0x542a43})=>_0x30af30['type']==_0xe7b029&&_0x30af30['subType']==_0x542a43),_0x4d4781=_0x4bc38d['findIndex'](({type:_0x4ced05,subType:_0x368776})=>_0x379df8['type']==_0x4ced05&&_0x379df8['subType']==_0x368776);if(_0x132c15<0x0||_0x4d4781<0x0)return!0x1;const _0x13655d=_0x30af30['getFirstRange'](),_0x2093a2=_0x379df8['getFirstRange']();if((0x0==_0x132c15||0x1==_0x132c15)&&0x2==_0x4d4781&&_0x13655d['isIntersecting'](_0x2093a2))return!0x0;if(0x2==_0x132c15&&0x3==_0x4d4781){const _0x4fad9e=_0x3c12b2['_findSuggestions'](_0x13655d,'insertion')['filter'](({suggestion:_0x91d8db,meta:_0x458f04})=>_0x458f04['isOwn']&&'convertInlineImageToBlock'==_0x91d8db['subType']);if(_0x4fad9e['length']>0x1&&_0x2093a2['end']['isEqual'](_0x13655d['start']))return!0x0;if(0x1==_0x4fad9e['length']&&(_0x13655d['start']['isEqual'](_0x2093a2['end'])||_0x13655d['end']['isEqual'](_0x2093a2['start'])))return!0x0;}if(0x3==_0x132c15&&0x3==_0x4d4781&&_0x13655d['start']['isBefore'](_0x2093a2['start'])){const _0x3585f4=_0x13655d['end']['nodeAfter'],_0x573975=_0x2093a2['start']['nodeBefore'];return _0x1c6550['isBlockImage'](_0x3585f4)&&_0x3585f4===_0x573975;}return!0x1;}_0x360982['model']['document']['registerPostFixer'](()=>{let _0x4f3a27=!0x1;const _0x4640a9=Array['from'](_0x360982['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27b9c4,data:_0x2a27d0}of _0x4640a9){const {group:_0x3e8cb7,type:_0x26116a,subType:_0x5f3406,id:_0x51db84}=_0x3c12b2['_splitMarkerName'](_0x27b9c4);if('suggestion'==_0x3e8cb7&&_0x3c12b2['hasSuggestion'](_0x51db84)){if('formatBlock'==_0x26116a&&('imageStylePreApply'==_0x5f3406||'imageStylePostApply'==_0x5f3406)){const _0x5a9a2e=_0x3c12b2['getSuggestion'](_0x51db84);if(_0x2a27d0['newRange']){const _0x13c540=_0x5a9a2e['getFirstRange']()['getContainedElement']();if(_0x1c6550['isBlockImage'](_0x13c540))continue;_0x3c12b2['discardSuggestion'](_0x5a9a2e),_0x4f3a27=!0x0;}}if('insertion'==_0x26116a&&'imageCaption'==_0x5f3406&&!_0x2a27d0['newRange']){const _0x2cdbf1=_0x3c12b2['getSuggestion'](_0x51db84);_0x2cdbf1['next']&&_0x2cdbf1['next']['isInContent']&&(_0x3c12b2['discardSuggestion'](_0x2cdbf1['next']),_0x4f3a27=!0x0);}}}return _0x4f3a27;}),this['_registerLegacyDescription'](_0xf5e4c1);}['_registerLegacyDescription'](_0x384606){const _0x25d8a7=this['editor'],_0x12804b=_0x25d8a7['locale'];_0x25d8a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57acf2=>{if('formatBlock'!=_0x57acf2['type']&&'formatInline'!=_0x57acf2['type'])return;const {data:_0x41a203}=_0x57acf2;if(!_0x41a203||'imageStyle'!=_0x41a203['commandName'])return;const _0x1e2f07=_0x41a203['commandParams'][0x0]['value'];return _0x1db6c0('side'===_0x1e2f07?o(_0x12804b,'FORMAT_SIDE_IMAGE'):_0x384606[_0x1e2f07]||_0x1e2f07);function _0x1db6c0(_0x5a9f9a){return{'type':'format','content':o(_0x12804b,'*Format:*\x20%0',_0x5a9f9a)};}});}}class ot extends _0x578bbc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x15391b){super(_0x15391b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x295079=this['editor'],_0x352286=_0x295079['commands']['get']('importWord'),_0xde08d6=_0x295079['commands']['get']('trackChanges');_0x352286&&(_0x352286['on']('execute',(_0x2389bf,[,_0x4f0c6b])=>{this['_trackChangesValueDuringImport']=_0xde08d6['value'],_0x4f0c6b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x352286,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x352286,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xde08d6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x295079['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1e7b99,_0x1d6e83){const {suggestions:_0x2a1947}=_0x1d6e83,_0x63ecc=this['editor']['commands']['get']('trackChanges'),_0x420e5c=_0x63ecc['value'];this['_trackChangesValueDuringImport']!==_0x420e5c&&(_0x63ecc['execute'](),this['_trackChangesExecuted']=!0x0),_0x2a1947&&_0x2a1947['forEach'](({id:_0x2bac58,type:_0x543e1b,author:_0x406d65,created_at:_0x34ffdd})=>{const _0x499fa9={'id':_0x2bac58,'type':_0x543e1b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x406d65,'createdAt':_0x34ffdd?new Date(_0x34ffdd):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x499fa9);});}}class rt extends _0x578bbc{['afterInit'](){const _0x25ed36=this['editor'],_0x4a46cc=_0x25ed36['plugins']['get']('TrackChangesEditing');if(_0x25ed36['plugins']['has']('IndentEditing')&&(_0x4a46cc['enableCommand']('indent'),_0x4a46cc['enableCommand']('outdent')),_0x25ed36['plugins']['has']('IndentBlock')){for(const _0x97b695 of['indentBlock','outdentBlock'])_0x4a46cc['enableDefaultAttributesIntegration'](_0x97b695);}const _0x51db66=_0x25ed36['locale'];_0x4a46cc['registerBlockAttribute']('blockIndent'),_0x4a46cc['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x51db66,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3253ed=this['editor'],_0x1b00bd=_0x3253ed['locale'],_0x289041=_0x3253ed['plugins']['get']('TrackChangesEditing');_0x289041['descriptionFactory']['registerDescriptionCallback'](_0x2dbd1e=>{if('formatBlock'!=_0x2dbd1e['type'])return;const {data:_0x1403d0}=_0x2dbd1e;if(!_0x1403d0)return;if('indentBlock'!=_0x1403d0['commandName']&&'outdentBlock'!=_0x1403d0['commandName'])return;const _0x50bb09=_0x2dbd1e['getItems']()[0x0],_0x371910=_0x289041['descriptionFactory']['getItemLabel'](_0x50bb09);return'indentBlock'==_0x1403d0['commandName']?{'type':'format','content':o(_0x1b00bd,'*Indent:*\x20%0',_0x371910)}:'outdentBlock'==_0x1403d0['commandName']?{'type':'format','content':o(_0x1b00bd,'*Outdent:*\x20%0',_0x371910)}:void 0x0;});}}class at extends _0x578bbc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x578bbc{['afterInit'](){const _0x2f2af9=this['editor'];if(!_0x2f2af9['plugins']['has']('LinkEditing'))return;const _0x2e1d00=_0x2f2af9['plugins']['get']('TrackChangesEditing'),_0x3f936d=_0x2f2af9['commands']['get']('link');_0x2e1d00['enableDefaultAttributesIntegration']('link'),_0x2e1d00['enableDefaultAttributesIntegration']('unlink'),_0x2e1d00['registerInlineAttribute']('linkHref');for(const _0x5ed295 of _0x3f936d['manualDecorators'])_0x2e1d00['registerInlineAttribute'](_0x5ed295['id']),_0x2e1d00['descriptionFactory']['registerAttributeLabel'](_0x5ed295['id'],'link\x20('+_0x5ed295['label']['toLowerCase']()+')');_0x2e1d00['descriptionFactory']['registerDescriptionCallback'](_0x60c525=>{if('attribute'!=_0x60c525['type'])return;const {data:_0x5e75c9}=_0x60c525;if(!_0x5e75c9||'linkHref'!=_0x5e75c9['key'])return;const _0xd97f2f=_0x5e75c9['newValue'],_0x338e2b=_0x2f2af9['locale'];return{'type':'format','content':null==_0xd97f2f?o(_0x338e2b,'*Remove\x20link*'):o(_0x338e2b,'*Set\x20link:*\x20%0','\x22'+_0xd97f2f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5061c2=this['editor'],_0x60eada=_0x5061c2['locale'];_0x5061c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x138ef8=>{if('formatInline'!=_0x138ef8['type'])return;const {data:_0x334ecd}=_0x138ef8;if(_0x334ecd){if('link'==_0x334ecd['commandName']){const _0x3c24bf=_0x334ecd['commandParams'][0x0];return{'type':'format','content':o(_0x60eada,'*Set\x20link:*\x20%0','\x22'+_0x3c24bf+'\x22')};}return'unlink'==_0x334ecd['commandName']?{'type':'format','content':o(_0x60eada,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x578bbc{['afterInit'](){const _0x3baa37=this['editor'],_0x5ecfc0=_0x3baa37['locale'];if(!_0x3baa37['plugins']['has']('LegacyListEditing'))return;const _0x203403=_0x3baa37['plugins']['get']('TrackChangesEditing'),_0x26adb6=_0x3baa37['plugins']['has']('LegacyTodoListEditing');function _0x2da9db(_0x5f523b){return()=>{const _0x5de924=_0x3baa37['model']['document']['selection'],_0xf286a5=_0x3baa37['commands']['get'](_0x5f523b);if(_0xf286a5['value'])return void _0x3baa37['execute']('paragraph',{});const _0x5cc65f=_0x5f523b['slice'](0x0,-0x4),_0x29d1cf=function(_0x57d748,_0x36c27f,_0x7f0379){let _0x130389=Array['from'](_0x57d748)['filter'](_0x270856=>function(_0x56b9d8,_0x5515fc){return _0x5515fc['checkChild'](_0x56b9d8['parent'],'listItem')&&!_0x5515fc['isObject'](_0x56b9d8);}(_0x270856,_0x7f0379));_0x130389=_0x130389['filter'](_0x1f9e86=>!_0x1f9e86['is']('element','listItem')||_0x1f9e86['getAttribute']('listType')!=_0x36c27f);const _0x1ed9b5=new Set();for(const _0x59a311 of _0x130389)_0x59a311['is']('element','listItem')?_0x1ed9b5['add'](me(_0x59a311)):_0x1ed9b5['add'](_0x59a311);return Array['from'](_0x1ed9b5);}(_0x5de924['getSelectedBlocks'](),_0x5cc65f,_0x3baa37['model']['schema']);_0x3baa37['model']['change'](()=>{for(const _0x522485 of _0x29d1cf)_0x203403['markBlockFormat'](_0x522485,{'commandName':_0x5f523b,'commandParams':[{'forceValue':!_0xf286a5['value']}],'formatGroupId':'blockName'},fe(_0x522485));});};}function _0x1bdc75(_0xf79c25){return()=>{const _0x5de20e=function(_0x3a2903){let _0x4cd0c0=Array['from'](_0x3a2903);const _0x54362a=_0x4cd0c0['findIndex'](_0x56c7eb=>'listItem'!=_0x56c7eb['name']);return _0x54362a>-0x1&&(_0x4cd0c0=_0x4cd0c0['slice'](0x0,_0x54362a)),_0x4cd0c0;}(_0x3baa37['model']['document']['selection']['getSelectedBlocks']()),_0x17735b=_0x3baa37['model']['createRange'](_0x3baa37['model']['createPositionAt'](_0x5de20e[0x0],'before'),_0x3baa37['model']['createPositionAt'](_0x5de20e[_0x5de20e['length']-0x1],'end'));_0x3baa37['model']['change'](()=>{_0x203403['markBlockFormat'](_0x17735b,{'commandName':_0xf79c25,'commandParams':[],'formatGroupId':'listIndent'},function(_0x394376){const _0x4fa844=new Set();for(const _0x14d8cd of _0x394376){let _0x43fe89=_0x14d8cd['nextSibling'];for(;_0x43fe89&&_0x43fe89['getAttribute']('listIndent')>_0x14d8cd['getAttribute']('listIndent');)_0x4fa844['add'](_0x43fe89),_0x43fe89=_0x43fe89['nextSibling'];}return Array['from'](_0x4fa844);}(_0x5de20e));});};}_0x203403['enableCommand']('numberedList',_0x2da9db('numberedList')),_0x203403['enableCommand']('bulletedList',_0x2da9db('bulletedList')),_0x26adb6&&_0x203403['enableCommand']('todoList',_0x2da9db('todoList')),_0x203403['enableCommand']('indentList',_0x1bdc75('indentList')),_0x203403['enableCommand']('outdentList',_0x1bdc75('outdentList')),_0x26adb6&&_0x203403['enableCommand']('checkTodoList',()=>{const _0x129f61=_0x3baa37['commands']['get']('checkTodoList'),_0xe4bf82=Array['from'](_0x129f61['_selectedElements']);_0xe4bf82['filter'](_0x2ac80f=>_0x2ac80f['getAttribute']('todoListChecked')!=_0x129f61['value']),_0x3baa37['model']['change'](()=>{for(const _0x481f87 of _0xe4bf82)_0x203403['markBlockFormat'](_0x481f87,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x129f61['value']}]});});}),_0x203403['descriptionFactory']['registerElementLabel']('listItem',_0x426c7d=>o(_0x5ecfc0,'ELEMENT_LIST_ITEM',_0x426c7d)),_0x203403['descriptionFactory']['registerDescriptionCallback'](_0x5c4b99=>{if('formatBlock'!=_0x5c4b99['type']&&'formatInline'!=_0x5c4b99['type'])return;const {data:_0xdfbe5a}=_0x5c4b99;if(_0xdfbe5a){if('numberedList'==_0xdfbe5a['commandName']||'bulletedList'==_0xdfbe5a['commandName']||'todoList'==_0xdfbe5a['commandName'])switch(_0xdfbe5a['commandName']['replace']('List','')){case'bulleted':return _0x16c28d(o(_0x5ecfc0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x16c28d(o(_0x5ecfc0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x16c28d(o(_0x5ecfc0,'ELEMENT_TODO_LIST'));}if('indentList'==_0xdfbe5a['commandName'])return{'type':'format','content':o(_0x5ecfc0,'*Indent:*\x20%0',o(_0x5ecfc0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xdfbe5a['commandName'])return{'type':'format','content':o(_0x5ecfc0,'*Outdent:*\x20%0',o(_0x5ecfc0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xdfbe5a['commandName'])return _0xdfbe5a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ecfc0,'*Check\x20item*')}:{'type':'format','content':o(_0x5ecfc0,'*Uncheck\x20item*')};}function _0x16c28d(_0x568c56){return{'type':'format','content':o(_0x5ecfc0,'*Change\x20to:*\x20%0',_0x568c56)};}});}}function me(_0x156de5){const _0xf42342=_0x156de5['getAttribute']('listIndent');if(0x0==_0xf42342)return _0x156de5;let _0x4476cf=_0x156de5;for(;_0x156de5['previousSibling']&&_0x156de5['previousSibling']['is']('element','listItem');){const _0x20386a=_0x156de5['previousSibling']['getAttribute']('listIndent');if(_0x20386a==_0xf42342)_0x4476cf=_0x156de5['previousSibling'];else{if(_0x20386a<_0xf42342)break;}_0x156de5=_0x156de5['previousSibling'];}return _0x4476cf;}function fe(_0x1660d7){const _0x363479=[];if(_0x1660d7['is']('element','listItem')&&_0x1660d7['getAttribute']('listIndent')>0x0){let _0x287e26=_0x1660d7['nextSibling'];for(;_0x287e26&&'listItem'==_0x287e26['name']&&_0x287e26['getAttribute']('listIndent')==_0x1660d7['getAttribute']('listIndent');)_0x363479['push'](_0x287e26),_0x287e26=_0x287e26['nextSibling'];}return _0x363479;}class K extends _0x578bbc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x314171=this['editor']['config']['get']('list.properties'),_0x466312=this['editor']['plugins']['get']('TrackChangesEditing');_0x314171['styles']&&_0x466312['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x314171['reversed']&&_0x466312['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x314171['startIndex']&&_0x466312['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x466312['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b0666,_0x4fa958={}){const _0xd080df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fb17c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xd080df['markMultiRangeBlockFormat'](_0x4fb17c,{'commandName':'listStyle','commandParams':[{'type':_0x4fa958['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2e69fe,_0x280a78={}){const _0x44d483=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fe0e3=this['_getSuggestionBlocks'](_0x35f18a=>_0x35f18a['is']('element','listItem')&&'numbered'===_0x35f18a['getAttribute']('listType'));if(_0x3fe0e3['length']<0x1)return;const _0x59a5d2=_0x3fe0e3['map'](_0x163e1b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x163e1b,'before'),this['editor']['model']['createPositionAt'](_0x163e1b,0x0)));this['editor']['model']['change'](()=>{_0x44d483['markMultiRangeBlockFormat'](_0x59a5d2,{'commandName':'listReversed','commandParams':[{'reversed':_0x280a78['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x164e41,_0xf08616={}){const _0x2c46da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d9e0b=this['_getSuggestionBlocks'](_0x163502=>_0x163502['is']('element','listItem')&&'numbered'===_0x163502['getAttribute']('listType'));if(_0x5d9e0b['length']<0x1)return;const _0xf6be68=_0x5d9e0b['map'](_0x589c74=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x589c74,'before'),this['editor']['model']['createPositionAt'](_0x589c74,0x0)));this['editor']['model']['change'](()=>{_0x2c46da['markMultiRangeBlockFormat'](_0xf6be68,{'commandName':'listStart','commandParams':[{'startIndex':_0xf08616['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x120945){if('formatBlock'!=_0x120945['type']&&'formatInline'!=_0x120945['type'])return;const _0x138f97=this['editor']['locale'],{data:_0x303971}=_0x120945;if(!_0x303971)return;let _0x398acf,_0x333c5e;switch(_0x303971['commandName']){case'listStyle':_0x398acf='*Change\x20to:*\x20%0',_0x333c5e={'type':'format','content':o(_0x138f97,_0x398acf,o(_0x138f97,this['_getTranslationKeyForListStyle'](_0x303971['commandParams'][0x0]['type'])))};break;case'listReversed':_0x398acf=_0x303971['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x333c5e={'type':'format','content':o(_0x138f97,_0x398acf)};break;case'listStart':_0x398acf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x333c5e={'type':'format','content':o(_0x138f97,_0x398acf,_0x303971['commandParams'][0x0]['startIndex'])};}return _0x333c5e;}['_getSuggestionBlocksForListStyle'](){const _0x32d96f=this['editor']['plugins']['get']('LegacyListUtils');let _0xcbdd10=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xcbdd10[0x0]?.['is']('element','listItem')&&_0xcbdd10['unshift'](..._0x32d96f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xcbdd10[_0xcbdd10['length']-0x1]?.['is']('element','listItem')&&_0xcbdd10['push'](..._0x32d96f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xcbdd10=[...new Set(_0xcbdd10)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xcbdd10=_0xcbdd10['filter'](_0x98a295=>_0x98a295['is']('element','listItem'))),_0xcbdd10;}['_getSuggestionBlocks'](_0x448a41){const _0x6219ae=this['editor']['plugins']['get']('LegacyListUtils');let _0x354f5a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x448a41)['map'](_0x1ea5aa=>{const _0xf75c85=this['editor']['model']['createPositionAt'](_0x1ea5aa,0x0);return[..._0x6219ae['getSiblingNodes'](_0xf75c85,'backward'),..._0x6219ae['getSiblingNodes'](_0xf75c85,'forward')];})['flat']();return _0x354f5a=[...new Set(_0x354f5a)],_0x354f5a;}['_getTranslationKeyForListStyle'](_0x11c846){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x11c846)||'default')['toUpperCase']()+'_LIST_'+_0x11c846['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x578bbc{['afterInit'](){const _0x4454e1=this['editor'];if(!_0x4454e1['plugins']['has']('MediaEmbedEditing'))return;const _0x20a2b3=_0x4454e1['plugins']['get']('TrackChangesEditing'),_0x20a46c=_0x4454e1['locale'];_0x20a2b3['enableCommand']('mediaEmbed'),_0x20a2b3['descriptionFactory']['registerElementLabel']('media',_0x5f7a7=>o(_0x20a46c,'ELEMENT_MEDIA',_0x5f7a7)),_0x4454e1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x386678,{writer:_0x490031,options:_0x371cad})=>{if(_0x371cad['showSuggestionHighlights'])return _0x490031['createEmptyElement']('div');},'converterPriority':'high'}),_0x4454e1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ae537,_0x43d69f,_0x1f3646)=>{_0x1f3646['options']['showSuggestionHighlights']&&_0x1ae537['stop']();},{'priority':'high'});}}class gt extends _0x578bbc{['afterInit'](){const _0x335c06=this['editor'];_0x335c06['plugins']['has']('MentionEditing')&&_0x335c06['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x578bbc{['afterInit'](){const _0x123f44=this['editor'],_0x5d345a=_0x123f44['plugins']['get']('TrackChangesEditing');_0x123f44['plugins']['has']('MultiLevelList')&&(_0x5d345a['enableDefaultAttributesIntegration']('multiLevelList'),_0x5d345a['registerBlockAttribute']('listMarkerStyle'),_0x5d345a['descriptionFactory']['registerDescriptionCallback'](_0x57980c=>this['handleDescriptions'](_0x57980c)));}['handleDescriptions'](_0x28a796){const _0x53850d=this['editor']['locale'],{data:_0x18987e}=_0x28a796,_0x533199={'type':'format','content':''};if(_0x18987e&&'listMarkerStyle'==_0x18987e['key']){if(!_0x18987e['oldValue'])return{'type':'format','content':o(_0x53850d,'*Set\x20format:*\x20%0',o(_0x53850d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18987e['newValue']+')'};if(!_0x18987e['newValue']){let _0x361bd6=_0x28a796['head'];for(;_0x361bd6;){if(_0x361bd6['data']&&'listType'==_0x361bd6['data']['key']&&_0x361bd6['data']['newValue'])return _0x533199;_0x361bd6=_0x361bd6['next'];}return{'type':'format','content':o(_0x53850d,'*Remove\x20format:*\x20%0',o(_0x53850d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18987e['oldValue']+')'};}}}}class mt extends _0x578bbc{['afterInit'](){const _0x2d2d7c=this['editor'];if(!_0x2d2d7c['plugins']['has']('PageBreakEditing'))return;_0x2d2d7c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x559b3a=_0x2d2d7c['plugins']['get']('TrackChangesEditing'),_0x4f7597=_0x2d2d7c['locale'];_0x559b3a['descriptionFactory']['registerElementLabel']('pageBreak',_0x3d58b8=>o(_0x4f7597,'ELEMENT_PAGE_BREAK',_0x3d58b8));}}class dt extends _0x578bbc{['afterInit'](){const _0x2518af=this['editor'];if(!_0x2518af['plugins']['has']('Paragraph'))return;const _0xa4efc9=_0x2518af['locale'],_0x4a1279=_0x2518af['plugins']['get']('TrackChangesEditing');_0x4a1279['descriptionFactory']['registerElementLabel']('paragraph',_0x8bd4b0=>o(_0xa4efc9,'ELEMENT_PARAGRAPH',_0x8bd4b0)),_0x4a1279['enableDefaultAttributesIntegration']('paragraph'),_0x4a1279['enableCommand']('insertParagraph'),_0x2518af['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2518af),{'priority':'highest'}),_0x2518af['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29150d,_0x1d388b,_0x9f33eb)=>{_0x9f33eb['options']['showSuggestionHighlights']&&nr(_0x2518af,{'showActiveMarker':!0x1})(_0x29150d,_0x1d388b,_0x9f33eb);},{'priority':'highest'});const _0x358136=_0x4a1279['descriptionFactory'];_0x358136['registerDescriptionCallback'](_0x222a57=>{if('insertion'!==_0x222a57['type'])return;const {start:_0x336acd,end:_0x2e730b}=_0x222a57['getFirstRange']();if(!_0x336acd['isTouching'](_0x2e730b)||!_0x336acd['nodeAfter'])return;const _0x1925bd=_0x2518af['model']['schema'],_0x513101=_0x336acd['nodeAfter'];return _0x1925bd['isBlock'](_0x513101)&&!_0x1925bd['isLimit'](_0x513101)&&_0x1925bd['checkChild'](_0x513101,'$text')?{'type':'insertion','content':o(_0xa4efc9,'*Insert:*\x20%0',_0x358136['getItemLabel'](_0x513101,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1033e2=this['editor'],_0x52dd1e=_0x1033e2['locale'];_0x1033e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x442b44=>{if('formatBlock'!=_0x442b44['type'])return;const {data:_0x4c67ba}=_0x442b44;return _0x4c67ba&&'paragraph'==_0x4c67ba['commandName']?{'type':'format','content':o(_0x52dd1e,'*Change\x20to:*\x20%0',o(_0x52dd1e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x50730b,{showActiveMarker:_0x22938c=!0x0}={}){return(_0x32e975,_0x257db2,_0x3a709a)=>{const _0x5141da=_0x50730b['plugins']['get']('TrackChangesEditing'),_0x3c8dd=_0x257db2['markerRange']['start'],_0x5be78d=_0x257db2['markerRange']['end'],_0x38a404=_0x50730b['model']['schema'];if(!_0x3c8dd['isTouching'](_0x5be78d)||!_0x3c8dd['nodeAfter'])return;const _0x2778ed=_0x3c8dd['nodeAfter'];if(_0x38a404['isBlock'](_0x2778ed)&&!_0x38a404['isLimit'](_0x2778ed)&&_0x38a404['checkChild'](_0x2778ed,'$text')){if(!_0x3a709a['consumable']['consume'](_0x257db2['markerRange'],_0x32e975['name']))return;const _0x4cd4f1=_0x3a709a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3c5a7f=_0x3a709a['mapper']['toViewPosition'](_0x5be78d);_0x22938c&&_0x5141da['activeMarkers']['includes'](_0x257db2['markerName'])&&_0x3a709a['writer']['addClass']('ck-suggestion-marker--active',_0x4cd4f1),_0x3a709a['writer']['insert'](_0x3c5a7f,_0x4cd4f1),_0x3a709a['mapper']['bindElementToMarker'](_0x4cd4f1,_0x257db2['markerName']);}};}class pt extends _0x578bbc{['afterInit'](){const _0x3181d5=this['editor'];if(!_0x3181d5['plugins']['has']('RemoveFormatEditing'))return;_0x3181d5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59cb5f=this['editor'];_0x59cb5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5af1b3=>{if('formatBlock'!=_0x5af1b3['type']&&'formatInline'!=_0x5af1b3['type'])return;const {data:_0x512103}=_0x5af1b3;return _0x512103&&'removeFormat'==_0x512103['commandName']?{'type':'format','content':o(_0x59cb5f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x578bbc{['afterInit'](){const _0x436fd2=this['editor'];if(!_0x436fd2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4d4f48=_0x436fd2['plugins']['get']('TrackChangesEditing');_0x4d4f48['enableCommand']('goToPreviousRestrictedEditingException'),_0x4d4f48['enableCommand']('goToNextRestrictedEditingException');const _0x5daa17=_0x436fd2['plugins']['get']('RestrictedEditingModeEditing');_0x5daa17['enableCommand']('trackChanges'),_0x5daa17['enableCommand']('acceptSuggestion'),_0x5daa17['enableCommand']('discardSuggestion'),_0x5daa17['enableCommand']('acceptAllSuggestions'),_0x5daa17['enableCommand']('discardAllSuggestions'),_0x5daa17['enableCommand']('acceptSelectedSuggestions'),_0x5daa17['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x578bbc{static get['requires'](){return[_0x22041e];}['init'](){const _0x286505=this['editor'],_0x454798=_0x286505['plugins']['get']('TrackChangesEditing');_0x454798['enableCommand']('shiftEnter'),_0x286505['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x286505),{'priority':'high'}),_0x286505['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x286505),{'priority':'high'}),_0x286505['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x566d0e,_0x4f3900,_0x16c8b9)=>{_0x16c8b9['options']['showSuggestionHighlights']&&de(_0x286505,{'showActiveMarker':!0x1})(_0x566d0e,_0x4f3900,_0x16c8b9);}),_0x454798['descriptionFactory']['registerElementLabel']('softBreak',_0x339c9f=>o(_0x286505['locale'],'ELEMENT_LINE_BREAK',_0x339c9f));}}function de(_0x3f41b2,{showActiveMarker:_0x2900e9=!0x0}={}){return(_0x2a190a,_0x4e7973,_0x209974)=>{const _0x1b377f=_0x3f41b2['plugins']['get']('TrackChangesEditing');if(!_0x209974['consumable']['test'](_0x4e7973['markerRange'],_0x2a190a['name']))return;const _0x358fee=_0x3f41b2['model'];for(const _0x10cc40 of _0x4e7973['markerRange']['getItems']()){if(!_0x10cc40['is']('element','softBreak'))continue;const _0x12f577='deletion'==_0x4e7973['markerName']['split'](':')[0x1]?'merge':'split',_0x4d0bd9=_0x209974['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12f577}),_0x47e04e=_0x209974['mapper']['toViewPosition'](_0x358fee['createPositionBefore'](_0x10cc40));_0x2900e9&&_0x1b377f['activeMarkers']['includes'](_0x4e7973['markerName'])&&_0x209974['writer']['addClass']('ck-suggestion-marker--active',_0x4d0bd9),_0x209974['writer']['insert'](_0x47e04e,_0x4d0bd9),_0x209974['mapper']['bindElementToMarker'](_0x4d0bd9,_0x4e7973['markerName']);}};}class wt extends _0x578bbc{['afterInit'](){const _0x59038e=this['editor'],_0x34964c=_0x59038e['model'],_0x231b7e=_0x59038e['locale'];if(!_0x59038e['plugins']['has']('StandardEditingModeEditing'))return;const _0x2c3f7f=_0x59038e['plugins']['get']('TrackChangesEditing'),_0x5838fc='restrictedEditingException',_0x1f2cad=_0x59038e['commands']['get'](_0x5838fc);_0x2c3f7f['enableCommand'](_0x5838fc,(_0x216e3e,_0x5cfa24={})=>{const _0xf2b1fc=_0x34964c['document']['selection'];if(_0xf2b1fc['isCollapsed'])return void _0x216e3e(_0x5cfa24);const _0xe0a1f7=void 0x0!==_0x5cfa24['forceValue']?_0x5cfa24['forceValue']:!_0x1f2cad['value'];_0x34964c['change'](()=>{const _0x2adcc9=Array['from'](_0xf2b1fc['getRanges']());for(const _0x32e3fb of _0x2adcc9){const _0x2f9529=_0xe0a1f7?[_0x32e3fb]:io(_0x5838fc,_0x32e3fb,_0x34964c);for(const _0x49ca5a of _0x2f9529)_0x2c3f7f['markInlineFormat'](_0x49ca5a,{'commandName':_0x5838fc,'commandParams':[{'forceValue':_0xe0a1f7}]});}});}),_0x2c3f7f['descriptionFactory']['registerDescriptionCallback'](_0x2587e0=>{if('formatBlock'!=_0x2587e0['type']&&'formatInline'!=_0x2587e0['type'])return;const {data:_0x19a574}=_0x2587e0;return _0x19a574&&_0x19a574['commandName']==_0x5838fc?_0x19a574['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x231b7e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x231b7e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x578bbc{['afterInit'](){const _0x29d424=this['editor'];if(!_0x29d424['plugins']['has']('Style')||!_0x29d424['plugins']['has']('DataSchema'))return;const _0x1ebb98=_0x29d424['plugins']['get']('TrackChangesEditing'),_0x457a5f=_0x29d424['locale'],_0xab5fd2=_0x29d424['config']['get']('style')||{},_0x37015a=_0x29d424['plugins']['get']('GeneralHtmlSupport'),_0x470e77=_0x29d424['plugins']['get']('StyleUtils')['normalizeConfig'](_0x29d424['plugins']['get']('DataSchema'),_0xab5fd2['definitions']);_0x1ebb98['enableDefaultAttributesIntegration']('style');const _0x1a9aab=new Set();for(const _0x101ea8 of _0x470e77['block']){const _0x4d0c97=_0x37015a['getGhsAttributeNameForElement'](_0x101ea8['element']);_0x1a9aab['add'](_0x4d0c97);}const _0x532c89=new Set();for(const _0x490f8e of _0x470e77['inline']){const _0x4ae643=_0x37015a['getGhsAttributeNameForElement'](_0x490f8e['element']);_0x532c89['add'](_0x4ae643);for(const _0x4d4ea1 of _0x490f8e['ghsAttributes'])_0x532c89['add'](_0x4d4ea1);}for(const _0x47b893 of _0x1a9aab)_0x1ebb98['registerBlockAttribute'](_0x47b893),_0x1ebb98['descriptionFactory']['registerAttributeLabel'](_0x47b893,o(_0x457a5f,'FORMAT_STYLE'));for(const _0x46c451 of _0x532c89)_0x1ebb98['registerInlineAttribute'](_0x46c451),_0x1ebb98['descriptionFactory']['registerAttributeLabel'](_0x46c451,o(_0x457a5f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aed65=this['editor'],_0x2ac1f2=_0x3aed65['locale'];_0x3aed65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d432b=>{if('formatBlock'!=_0x2d432b['type']&&'formatInline'!=_0x2d432b['type'])return;const {data:_0x311666}=_0x2d432b;return _0x311666&&'style'===_0x311666['commandName']?_0x311666['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ac1f2,'*Set\x20format:*\x20%0',_0x311666['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2ac1f2,'*Remove\x20format:*\x20%0',_0x311666['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x578bbc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x324ff0){super(_0x324ff0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x7ae4e4=this['editor'],_0x31764b=_0x7ae4e4['model']['document']['selection'];if(!_0x7ae4e4['plugins']['has']('TableEditing'))return;const _0xcb32c4=_0x7ae4e4['locale'],_0x4773ff=_0x7ae4e4['plugins']['get']('TrackChangesEditing'),_0x359dba=_0x7ae4e4['plugins']['get']('TableUtils');_0x4773ff['descriptionFactory']['registerElementLabel']('table',_0x3f8578=>o(_0xcb32c4,'ELEMENT_TABLE',_0x3f8578)),this['_setupColumnsRowsFixing'](),_0x4773ff['enableCommand']('insertTable'),_0x4773ff['enableCommand']('selectTableRow'),_0x4773ff['enableCommand']('selectTableColumn');for(const _0x2cd0f2 of['insertTableRowAbove','insertTableRowBelow']){const _0x20f82c=_0x7ae4e4['commands']['get'](_0x2cd0f2);_0x4773ff['enableCommand'](_0x2cd0f2,_0x24d7d2=>{_0x7ae4e4['model']['change'](_0x507f8c=>{_0x24d7d2();const _0x16cc29='above'===_0x20f82c['order'],_0x496b8e=_0x359dba['getSelectionAffectedTableCells'](_0x31764b),_0x438277=_0x359dba['getRowIndexes'](_0x496b8e),_0x14e225=_0x16cc29?_0x438277['first']-0x1:_0x438277['last']+0x1,_0xd2d9d2=_0x496b8e[0x0]['findAncestor']('table'),_0x4befcc=_0x359dba['createTableWalker'](_0xd2d9d2,{'startRow':_0x14e225,'endRow':_0x14e225}),_0x332ffe=Array['from'](_0x4befcc)['map'](_0x2a6456=>_0x507f8c['createRangeOn'](_0x2a6456['cell']));_0x4773ff['markMultiRangeInsertion'](_0x332ffe,'tableRow');});});}for(const _0x14aa85 of['insertTableColumnLeft','insertTableColumnRight']){const _0x334499=_0x7ae4e4['commands']['get'](_0x14aa85);_0x4773ff['enableCommand'](_0x14aa85,_0x1e0947=>{_0x7ae4e4['model']['change'](_0x2456c0=>{_0x1e0947();const _0x206340='left'===_0x334499['order'],_0x178520=_0x359dba['getSelectionAffectedTableCells'](_0x31764b),_0x351e68=_0x359dba['getColumnIndexes'](_0x178520),_0x1e681b=_0x206340?_0x351e68['first']-0x1:_0x351e68['last']+0x1,_0x3a93e7=_0x178520[0x0]['findAncestor']('table'),_0xf1cbf2=_0x359dba['createTableWalker'](_0x3a93e7,{'startRow':0x0,'column':_0x1e681b,'includeAllSlots':!0x1}),_0x79fd56=Array['from'](_0xf1cbf2)['map'](_0x46f854=>_0x2456c0['createRangeOn'](_0x46f854['cell']));_0x4773ff['markMultiRangeInsertion'](_0x79fd56,'tableColumn');});});}for(const _0x28421a of['removeTableRow','removeTableColumn']){const _0x4c2d8d=_0x28421a['substr'](0xb),_0x3dd98a=_0x4c2d8d['toLowerCase'](),_0x2b94b4=_0x3dd98a['substr'](0x0,0x3)+'span',_0x3007f3='table'+_0x4c2d8d,_0x2d445d='min'+_0x4c2d8d,_0x4e2f0b='max'+_0x4c2d8d;_0x4773ff['enableCommand'](_0x28421a,()=>{_0x7ae4e4['model']['change'](_0x30c77f=>{const _0x37a2f5=_0x359dba['getSelectionAffectedTableCells'](_0x31764b),_0x4eee9e=_0x37a2f5[0x0]['findAncestor']('table');let _0x584bbd;if('removeTableRow'==_0x28421a){const _0x17549b=_0x359dba['getRowIndexes'](_0x37a2f5);_0x584bbd={'startRow':_0x17549b['first'],'endRow':_0x17549b['last'],'includeAllSlots':!0x0};}else{const _0x593db4=_0x359dba['getColumnIndexes'](_0x37a2f5);_0x584bbd={'startColumn':_0x593db4['first'],'endColumn':_0x593db4['last'],'includeAllSlots':!0x0};}const _0x3cb4ff=_0x359dba['createTableWalker'](_0x4eee9e,_0x584bbd),_0x5c15dc=Array['from'](_0x3cb4ff)['map'](({cell:_0x4316e0})=>_0x4316e0),_0x3a4ea3=Ee(_0x5c15dc['filter'](_0x206e42=>_0x206e42['hasAttribute'](_0x2b94b4))),_0x20c831=Ee(_0x5c15dc['filter'](_0x3f8991=>!_0x3f8991['hasAttribute'](_0x2b94b4)))['map'](_0x375584=>_0x30c77f['createRangeOn'](_0x375584)),_0x183a78=_0x4773ff['markMultiRangeDeletion'](_0x20c831,_0x3007f3);if(_0x183a78&&('tableRow'==_0x183a78['subType']||'tableColumn'==_0x183a78['subType'])){const _0x22f244=this['_getSuggestionCoords'](_0x183a78);for(const _0x3d3f34 of _0x3a4ea3){const _0x59bdbb=_0x30c77f['createRangeOn'](_0x3d3f34),_0x5ab214=_0x359dba['getCellLocation'](_0x3d3f34),_0x3eb3ec=_0x3d3f34['getAttribute'](_0x2b94b4)-0x1,_0x39daa0=_0x22f244[_0x2d445d],_0x17c19f=_0x22f244[_0x4e2f0b];_0x39daa0<=_0x5ab214[_0x3dd98a]&&_0x5ab214[_0x3dd98a]+_0x3eb3ec<=_0x17c19f&&_0x183a78['addRange'](_0x59bdbb);}}});});}function _0x14682f(_0x48e885){const _0x29c233=Array['from'](_0x31764b['getRanges']())['map'](_0x5e4c12=>_0x2028c8['fromRange'](_0x5e4c12));_0x7ae4e4['model']['change'](_0x110b2b=>{const _0x357e5b=_0x110b2b['batch'];_0x48e885=_0x48e885['filter'](_0x3438f6=>'$graveyard'!=_0x3438f6['root']['rootName']),_0x110b2b['setSelection'](_0x48e885),_0x7ae4e4['commands']['get']('removeTableRow')['refresh'](),_0x7ae4e4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x7ae4e4['model']['enqueueChange'](()=>{_0x7ae4e4['model']['enqueueChange'](_0x357e5b,_0x24cfd5=>{const _0x72762b=_0x29c233['filter'](_0x188d2c=>'$graveyard'!=_0x188d2c['root']['rootName']);_0x72762b['length']>0x0&&_0x24cfd5['setSelection'](_0x72762b);for(const _0xd7311a of _0x29c233)_0xd7311a['detach']();});});});}function _0xabc313(_0x101443){_0x7ae4e4['model']['change'](_0x553797=>{const _0x35324f=Array['from'](_0x31764b['getRanges']())['map'](_0x42c5df=>_0x2028c8['fromRange'](_0x42c5df)),_0x50149e=[];for(const _0x1f8d0c of _0x101443)for(const _0x4aac8a of _0x1f8d0c['getItems']({'shallow':!0x0}))_0x50149e['push'](_0x4aac8a);for(const _0x36eb47 of _0x50149e)'$graveyard'!=_0x36eb47['root']['rootName']&&(_0x553797['setSelection'](_0x553797['createPositionAt'](_0x36eb47,0x0)),_0x7ae4e4['commands']['get']('removeTableColumn')['refresh'](),_0x7ae4e4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3eebfe=_0x35324f['filter'](_0x28cd7a=>'$graveyard'!=_0x28cd7a['root']['rootName']);_0x3eebfe['length']>0x0&&_0x553797['setSelection'](_0x3eebfe);for(const _0x4bc513 of _0x35324f)_0x4bc513['detach']();});}function _0x350b90(_0x5971c5,_0x3afd7d){return _0x3afd7d['every'](_0x447bfb=>_0x5971c5['some'](_0x489a0f=>_0x489a0f['end']['isEqual'](_0x447bfb['start'])||_0x447bfb['end']['isEqual'](_0x489a0f['start'])));}function _0x12e3e9(_0x15ed5a,_0x3d62b5){return _0x15ed5a['some'](_0x21a482=>_0x3d62b5['some'](_0x52aba3=>_0x21a482['end']['isTouching'](_0x52aba3['start'])));}_0x7ae4e4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e08a3,_0x4a3006,_0x135716)=>{if(!_0x135716['options']['showSuggestionHighlights'])return;const _0x4b61ed=_0x4a3006['item'];if(!_0x4b61ed)return;const _0x7b9b43=_0x135716['mapper']['toViewElement'](_0x4b61ed);function _0xc094a4(_0x5b984b){return Array['isArray'](_0x5b984b)?_0x5b984b:[_0x5b984b];}_0x7b9b43&&'tableCell'===_0x4b61ed['name']&&_0x5231e2(_0x7b9b43,_0x135716['writer'],(_0xb5919c,_0xb3722e,_0x4c7c74)=>_0x4c7c74['addClass'](_0xc094a4(_0xb3722e['classes']),_0xb5919c),(_0x4c90c3,_0x5ddbdc,_0x2c78c8)=>_0x2c78c8['removeClass'](_0xc094a4(_0x5ddbdc['classes']),_0x4c90c3));},{'priority':'highest'}),_0x4773ff['descriptionFactory']['registerDescriptionCallback'](_0x2602bc=>{if('insertion'!=_0x2602bc['type']&&'deletion'!=_0x2602bc['type'])return;const _0x32f610=_0x2602bc['getContainedElement']();if(null!=_0x32f610&&_0x32f610['is']('element','table')){if('insertion'==_0x2602bc['type']){const _0x31ef98=_0x2602bc['getItems']()['filter'](_0x4161d0=>_0x4161d0['is']('$textProxy'))['map'](_0x24dde2=>_0x24dde2['data']);if(_0x31ef98['length'])return{'type':'insertion','content':o(_0xcb32c4,'*Insert:*\x20%0',o(_0xcb32c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x31ef98['join']('\x20')+'\x22'))};}if('deletion'==_0x2602bc['type']){const _0x3eae33=_0x2602bc['getItems']()['filter'](_0x385096=>_0x385096['is']('$textProxy'))['map'](_0x10d814=>_0x10d814['data']);if(_0x3eae33['length'])return{'type':'deletion','content':o(_0xcb32c4,'*Remove:*\x20%0',o(_0xcb32c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3eae33['join']('\x20')+'\x22'))};}}}),_0x4773ff['descriptionFactory']['registerDescriptionCallback'](_0x768106=>{if('tableRow'==_0x768106['subType']){const _0x5d036f=_0x768106['getItems']()['filter'](_0x5ac017=>_0x5ac017['is']('$textProxy'))['map'](_0x26462d=>_0x26462d['data']),_0x1ce4c5=this['_getSuggestionCoords'](_0x768106),_0x26e60a=_0x1ce4c5['maxRow']-_0x1ce4c5['minRow']+0x1;if('insertion'==_0x768106['type'])return _0x5d036f['length']?{'type':'insertion','content':o(_0xcb32c4,'*Insert:*\x20%0',o(_0xcb32c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26e60a,'\x22'+_0x5d036f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xcb32c4,'*Insert:*\x20%0',o(_0xcb32c4,'ELEMENT_TABLE_ROW',_0x26e60a))};if('deletion'==_0x768106['type'])return _0x5d036f['length']?{'type':'deletion','content':o(_0xcb32c4,'*Remove:*\x20%0',o(_0xcb32c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26e60a,'\x22'+_0x5d036f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xcb32c4,'*Remove:*\x20%0',o(_0xcb32c4,'ELEMENT_TABLE_ROW',_0x26e60a))};}if('tableColumn'==_0x768106['subType']){const _0x46d367=_0x768106['getItems']()['filter'](_0x49b7dd=>_0x49b7dd['is']('$textProxy'))['map'](_0x1baecc=>_0x1baecc['data']),_0x287869=this['_getSuggestionCoords'](_0x768106),_0xe4404c=_0x287869['maxColumn']-_0x287869['minColumn']+0x1;if('insertion'==_0x768106['type'])return _0x46d367['length']?{'type':'insertion','content':o(_0xcb32c4,'*Insert:*\x20%0',o(_0xcb32c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe4404c,'\x22'+_0x46d367['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xcb32c4,'*Insert:*\x20%0',o(_0xcb32c4,'ELEMENT_TABLE_COLUMN',_0xe4404c))};if('deletion'==_0x768106['type'])return _0x46d367['length']?{'type':'deletion','content':o(_0xcb32c4,'*Remove:*\x20%0',o(_0xcb32c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe4404c,'\x22'+_0x46d367['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xcb32c4,'*Remove:*\x20%0',o(_0xcb32c4,'ELEMENT_TABLE_COLUMN',_0xe4404c))};}}),_0x4773ff['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x14682f),_0x4773ff['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x14682f),_0x4773ff['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xabc313),_0x4773ff['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xabc313),_0x4773ff['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x350b90),_0x4773ff['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x350b90),_0x4773ff['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x12e3e9),_0x4773ff['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x12e3e9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x166820=this['editor'],_0xe21a61=_0x166820['model']['document']['selection'];return(_0x2338b8,_0x120d95)=>{_0x166820['model']['change'](_0x3681b0=>{const {commandName:_0x286544,commandParams:_0x2c4413}=_0x120d95;let _0x3623c4=_0x2338b8[0x0]['end']['nodeBefore'];_0x2c4413&&_0x2c4413[0x0]&&!0x1===_0x2c4413[0x0]['forceValue']&&(_0x3623c4=_0x2338b8[0x0]['start']['nodeAfter']);const _0xa8c2f6=_0x3681b0['createRangeIn'](_0x3623c4);if('$graveyard'==_0xa8c2f6['root']['rootName'])return;const _0x222811=Array['from'](_0xe21a61['getRanges']())['map'](_0x293ff6=>_0x2028c8['fromRange'](_0x293ff6));_0x3681b0['setSelection'](_0xa8c2f6),_0x166820['commands']['get'](_0x286544)['refresh'](),_0x2c4413['push']({'forceDefaultExecution':!0x0}),_0x166820['execute'](_0x286544,..._0x2c4413);const _0x12af3f=_0x222811['filter'](_0x32513f=>'$graveyard'!=_0x32513f['root']['rootName']);_0x12af3f['length']>0x0&&_0x3681b0['setSelection'](_0x12af3f);for(const _0x804ae3 of _0x222811)_0x804ae3['detach']();});};}['_getCoordsForCells'](_0x587184){const _0x1c4d40=this['editor']['plugins']['get']('TableUtils');let _0x1843d4=Number['MAX_SAFE_INTEGER'],_0x3f75c6=Number['MIN_SAFE_INTEGER'],_0x3f9a0d=Number['MAX_SAFE_INTEGER'],_0x21ae37=Number['MIN_SAFE_INTEGER'];for(const _0x31eddc of _0x587184){if('$graveyard'==_0x31eddc['root']['rootName'])continue;const {row:_0x4d5357,column:_0x408686}=_0x1c4d40['getCellLocation'](_0x31eddc),_0x500d44=_0x31eddc['hasAttribute']('rowspan')?_0x31eddc['getAttribute']('rowspan')-0x1:0x0,_0x34a9c1=_0x31eddc['hasAttribute']('colspan')?_0x31eddc['getAttribute']('colspan')-0x1:0x0;_0x1843d4=_0x4d5357<_0x1843d4?_0x4d5357:_0x1843d4,_0x3f75c6=_0x4d5357+_0x500d44>_0x3f75c6?_0x4d5357+_0x500d44:_0x3f75c6,_0x3f9a0d=_0x408686<_0x3f9a0d?_0x408686:_0x3f9a0d,_0x21ae37=_0x408686+_0x34a9c1>_0x21ae37?_0x408686+_0x34a9c1:_0x21ae37;}return{'minRow':_0x1843d4,'maxRow':_0x3f75c6,'minColumn':_0x3f9a0d,'maxColumn':_0x21ae37};}['_setupColumnsRowsFixing'](){const _0xe371f2=this['editor'],_0x51d473=_0xe371f2['plugins']['get']('TrackChangesEditing'),_0x5b8a3f=_0xe371f2['plugins']['get']('TableUtils');_0xe371f2['model']['document']['on']('change:data',()=>{const _0x28f418=Array['from'](_0xe371f2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7f5a87,data:_0x357352}of _0x28f418){const {group:_0x41e83e,id:_0x3a4f7a,subType:_0x9aa6bf}=_0x51d473['_splitMarkerName'](_0x7f5a87);if('suggestion'!=_0x41e83e)continue;if(null!=_0x357352['oldRange'])continue;const _0x4edc3e=_0x51d473['getSuggestion'](_0x3a4f7a);this['_tablePostFixingSubtypes']['includes'](_0x9aa6bf)&&this['_tableSuggestions']['add'](_0x4edc3e);}},{'priority':'low'});const _0x288963=(_0xfba767,_0x3a5590)=>{let _0x1bf239=!0x1;const _0x4b0a47=_0x3a5590['createRangeOn'](_0xfba767),_0x416302=_0xfba767['findAncestor']('table'),_0x79d623=_0x5b8a3f['getCellLocation'](_0xfba767);for(const _0x5800d2 of this['_tableSuggestions']){const _0x4f994f=_0x5800d2['subType'],_0x16db0b=_0x4f994f['startsWith']('tablePaste'),_0x24515d=_0x4f994f['substr'](_0x16db0b?0xa:0x5),_0x268bca=_0x24515d['toLowerCase'](),_0x3ad66d=_0x268bca['substr'](0x0,0x3)+'span',_0x5e6f5d='min'+_0x24515d,_0x38e33c='max'+_0x24515d;if(!_0x5800d2['isInContent'])continue;if(_0x416302!=_0x5800d2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5800d2['isIntersectingWithRange'](_0x4b0a47))continue;const _0x4b4bdb=_0xfba767['hasAttribute'](_0x3ad66d)?_0xfba767['getAttribute'](_0x3ad66d)-0x1:0x0,_0xf0b21d=this['_getSuggestionCoords'](_0x5800d2),_0x31a9fa=_0xf0b21d[_0x5e6f5d],_0xdc818a=_0xf0b21d[_0x38e33c];_0x31a9fa<=_0x79d623[_0x268bca]&&_0x79d623[_0x268bca]+_0x4b4bdb<=_0xdc818a&&(_0x5800d2['addRange'](_0x4b0a47),_0x1bf239=!0x0);}return _0x1bf239;};_0xe371f2['model']['document']['registerPostFixer'](_0x114bcf=>{let _0x413520=!0x1;for(const _0x290250 of _0xe371f2['model']['document']['differ']['getChanges']())if('insert'==_0x290250['type']){if('tableRow'==_0x290250['name']){for(const _0x2aa653 of _0x290250['position']['nodeAfter']['getChildren']())_0x413520=_0x413520||_0x288963(_0x2aa653,_0x114bcf);}else'tableCell'==_0x290250['name']&&(_0x413520=_0x413520||_0x288963(_0x290250['position']['nodeAfter'],_0x114bcf));}return _0x413520;});}['_getSuggestionCoords'](_0x27b23c){return this['_getCoordsForCells'](_0x27b23c['getRanges']()['map'](_0x2f1f27=>_0x2f1f27['start']['nodeAfter']));}}function Ee(_0x21b368){return Array['from'](new Set(_0x21b368)['values']());}class St extends _0x578bbc{static get['requires'](){return[jt];}['afterInit'](){const _0x4ba53b=this['editor'],_0x4190f1=_0x4ba53b['model']['document']['selection'],_0x3782a6=_0x4ba53b['locale'];if(!_0x4ba53b['plugins']['has']('TableEditing'))return;const _0x37ccb1=_0x4ba53b['plugins']['get']('TrackChangesEditing'),_0x4af4b2=_0x4ba53b['plugins']['get']('TableUtils'),_0x42d360=_0x4ba53b['plugins']['get'](jt);_0x42d360['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x37ccb1['enableCommand']('mergeTableCells',()=>{const _0x20d85a=_0x4af4b2['getSelectionAffectedTableCells'](_0x4ba53b['model']['document']['selection']);_0x4ba53b['model']['change'](()=>{_0x37ccb1['markMultiRangeBlockFormat'](_0x20d85a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4ba53b['commands']['get']('mergeTableCells')['on']('execute',(_0x5f17f2,_0x4ec3ba)=>{_0x4ba53b['commands']['get']('trackChanges')['value']&&(_0x4ec3ba['length']>0x0&&_0x4ec3ba[_0x4ec3ba['length']-0x1]&&_0x4ec3ba[_0x4ec3ba['length']-0x1]['forceDefaultExecution']||_0x37ccb1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5f17f2['stop']());},{'priority':'highest'});for(const _0x17e275 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4f1892=_0x4ba53b['commands']['get'](_0x17e275);_0x37ccb1['enableCommand'](_0x17e275,()=>{const _0x5ceb94=_0x4ba53b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x511382=>_0x511382['is']('element','tableCell')),_0x544917=_0x4f1892['value'];_0x4ba53b['model']['change'](()=>{_0x37ccb1['markMultiRangeBlockFormat']([_0x5ceb94,_0x544917],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x54d66c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1bd791=_0x4ba53b['commands']['get'](_0x54d66c);_0x37ccb1['enableCommand'](_0x54d66c,()=>{const _0x1dc694=_0x4af4b2['getSelectionAffectedTableCells'](_0x4ba53b['model']['document']['selection'])[0x0],_0x445c30=_0x1dc694['findAncestor']('table'),{column:_0x1be145,row:_0x2df4da}=_0x4af4b2['getCellLocation'](_0x1dc694);let _0x591bd2=[];if('horizontally'==_0x1bd791['direction']){const _0x49c399=_0x4af4b2['createTableWalker'](_0x445c30,{'startRow':_0x2df4da,'endRow':_0x2df4da,'includeAllSlots':!0x0});_0x591bd2=Array['from'](_0x49c399)['map'](_0x1c8cf1=>_0x1c8cf1['cell']);}else{const _0x5b18e5=_0x4af4b2['createTableWalker'](_0x445c30,{'column':_0x1be145,'includeAllSlots':!0x0});_0x591bd2=Array['from'](_0x5b18e5)['map'](_0x118f70=>_0x118f70['cell']);}_0x4ba53b['model']['change'](_0x43c3a1=>{_0x37ccb1['markBlockFormat'](_0x43c3a1['createRangeOn'](_0x1dc694),{'commandName':_0x54d66c,'commandParams':[]},_0x591bd2,_0x54d66c);});});}_0x37ccb1['descriptionFactory']['registerDescriptionCallback'](_0x5dd924=>{if('formatBlock'!=_0x5dd924['type']&&'formatInline'!=_0x5dd924['type'])return;const {data:_0x3a95e0}=_0x5dd924;return _0x3a95e0&&'mergeTableCells'==_0x3a95e0['commandName']?{'type':'format','content':o(_0x3782a6,'*Merge\x20cells*')}:void 0x0;}),_0x37ccb1['descriptionFactory']['registerDescriptionCallback'](_0x20e1cc=>{if('formatBlock'!=_0x20e1cc['type']&&'formatInline'!=_0x20e1cc['type'])return;const {data:_0x202010}=_0x20e1cc;return _0x202010?'splitTableCellVertically'==_0x202010['commandName']?{'type':'format','content':o(_0x3782a6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x202010['commandName']?{'type':'format','content':o(_0x3782a6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x40ab7c=_0x42d360['_acceptFormatSuggestionCallbackFactory']();for(const _0x59809b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x37ccb1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59809b,'accept',_0x40ab7c);for(const _0x30ff13 of['splitTableCellVertically','splitTableCellHorizontally'])_0x37ccb1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30ff13,'accept',_0x40ab7c);_0x37ccb1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21126c=>{_0x4ba53b['model']['change'](_0x2baacd=>{const _0x5fc862=Array['from'](_0x4190f1['getRanges']())['map'](_0x83ccd6=>_0x2028c8['fromRange'](_0x83ccd6));_0x2baacd['setSelection'](_0x21126c),_0x4ba53b['commands']['get']('mergeTableCells')['refresh'](),_0x4ba53b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1d206d=_0x5fc862['filter'](_0x285736=>'$graveyard'!=_0x285736['root']['rootName']);_0x1d206d['length']>0x0&&_0x2baacd['setSelection'](_0x1d206d);for(const _0x592a14 of _0x5fc862)_0x592a14['detach']();});});for(const _0x5bdbdd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x148c85=_0x4ba53b['commands']['get'](_0x5bdbdd);_0x148c85['on']('set:isEnabled',(_0xa9d591,_0x134e53,_0xa36ff1)=>{if(_0xa36ff1){const _0x183156=_0x4ba53b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x110078=>_0x110078['is']('element','tableCell'));this['_areMergableCells'](_0x148c85['value'],_0x183156)||(_0xa9d591['return']=!0x1,_0xa9d591['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x355f4d=this['editor']['commands']['get']('mergeTableCells'),_0x24e01f=this['editor']['plugins']['get']('TableUtils');if(!_0x355f4d['isEnabled'])return!0x1;const _0x58b3a7=_0x24e01f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x151877 of _0x58b3a7)for(const _0x26154a of _0x58b3a7)if(_0x151877!=_0x26154a&&!this['_areMergableCells'](_0x151877,_0x26154a))return!0x1;return!0x0;}['_areMergableCells'](_0x445c58,_0x2288b3){const _0x48c2b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8791e7=this['editor']['model']['createRangeOn'](_0x445c58),_0x5ea067=this['editor']['model']['createRangeOn'](_0x2288b3),_0x2c5ee1=new Set(),_0x1dd833=new Set();for(const _0x489416 of _0x48c2b5['getSuggestions']())if(('insertion'==_0x489416['type']||'deletion'==_0x489416['type']||'mergeTableCells'==_0x489416['subType'])&&_0x489416['isInContent']){for(const _0x3d261 of _0x489416['getRanges']())_0x3d261['containsRange'](_0x8791e7,!0x0)&&_0x2c5ee1['add'](_0x489416['type']+':'+_0x489416['author']['id']),_0x3d261['containsRange'](_0x5ea067,!0x0)&&_0x1dd833['add'](_0x489416['type']+':'+_0x489416['author']['id']);}if(_0x2c5ee1['size']!=_0x1dd833['size'])return!0x1;for(const _0x66f650 of _0x2c5ee1)if(!_0x1dd833['has'](_0x66f650))return!0x1;return!0x0;}}class At extends _0x578bbc{static get['requires'](){return[jt];}['afterInit'](){const _0x5b43ad=this['editor'];if(!_0x5b43ad['plugins']['has']('TableEditing'))return;const _0x24f0d=_0x5b43ad['locale'],_0x2e5a71=_0x5b43ad['plugins']['get']('TrackChangesEditing');_0x2e5a71['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2e5a71['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2e5a71['registerBlockAttribute']('headingRows'),_0x2e5a71['registerBlockAttribute']('headingColumns'),_0x2e5a71['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x24f0d,'FORMAT_HEADER_ROW')),_0x2e5a71['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x24f0d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x41fe07=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44f8e4=this['editor']['plugins']['get']('TableUtils'),_0xc701b8=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0xaf13f({showActiveMarker:_0x1c0df2=!0x0,setDataAttribute:_0x5e3f92=!0x0}={}){return(_0x7cdf3a,_0x3f414d,_0x1c4cd8)=>{const {type:_0x32cca7,id:_0x183f07}=_0x41fe07['_splitMarkerName'](_0x3f414d['markerName']),_0x466fc1=_0x41fe07['getSuggestion'](_0x183f07),_0x1696be=_0x466fc1['data'];if('formatBlock'!=_0x466fc1['type']||!_0x1696be||'setTableColumnHeader'!=_0x1696be['commandName'])return;if(_0x3f414d['item'])return void _0x7cdf3a['stop']();if(!_0x1c4cd8['consumable']['consume'](_0x3f414d['markerRange'],_0x7cdf3a['name']))return;const _0xe69adb=_0x3f414d['markerRange']['start']['nodeAfter'],_0x3bb114=_0x3f414d['markerRange']['end']['nodeBefore'],_0xf6141f=_0xe69adb['parent']['parent'],{column:_0x50e1be}=_0x44f8e4['getCellLocation'](_0xe69adb),{column:_0x8369e1}=_0x44f8e4['getCellLocation'](_0x3bb114);for(let _0x4cb71e=_0x50e1be;_0x4cb71e<=_0x8369e1;_0x4cb71e++){const _0x3e4e22=_0x44f8e4['createTableWalker'](_0xf6141f,{'column':_0x4cb71e,'includeAllSlots':!0x1});for(const _0x446f40 of _0x3e4e22){const _0x46a600=_0x446f40['cell'],_0x173e24=_0x1c4cd8['mapper']['toViewElement'](_0x46a600);_0x1c4cd8['writer']['addClass']('ck-suggestion-marker-'+_0x32cca7,_0x173e24),_0x5e3f92&&_0x1c4cd8['writer']['setAttribute']('data-suggestion',_0x183f07,_0x173e24),_0x1c4cd8['mapper']['bindElementToMarker'](_0x173e24,_0x3f414d['markerName']),_0x1c0df2&&(_0x41fe07['activeMarkers']['includes'](_0x3f414d['markerName'])?_0x1c4cd8['writer']['addClass']('ck-suggestion-marker--active',_0x173e24):_0x1c4cd8['writer']['removeClass']('ck-suggestion-marker--active',_0x173e24));}}};}_0x41fe07['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc701b8),_0x41fe07['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc701b8),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xaf13f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1584cf,_0x3201e4,_0x16dd76)=>{_0x16dd76['options']['showSuggestionHighlights']&&_0xaf13f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1584cf,_0x3201e4,_0x16dd76);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x374887,_0x23d407,_0xe52a1e)=>{const {type:_0x27f514,id:_0x3d90c4}=_0x41fe07['_splitMarkerName'](_0x23d407['markerName']),_0x52335c=_0x41fe07['getSuggestion'](_0x3d90c4),_0x2f133a=_0x52335c['data'];if('formatBlock'!=_0x52335c['type']||!_0x2f133a||'setTableColumnHeader'!=_0x2f133a['commandName'])return;const _0x591a96=_0xe52a1e['mapper']['markerNameToElements'](_0x23d407['markerName']);if(_0x591a96){for(const _0x3d9e37 of _0x591a96)_0xe52a1e['writer']['removeClass']('ck-suggestion-marker-'+_0x27f514,_0x3d9e37),_0xe52a1e['writer']['removeClass']('ck-suggestion-marker--active',_0x3d9e37),_0xe52a1e['writer']['removeAttribute']('data-suggestion',_0x3d9e37),_0xe52a1e['mapper']['unbindElementFromMarkerName'](_0x3d9e37,_0x23d407['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x133e4d=this['editor'],_0x48fd47=_0x133e4d['locale'];function _0x2cab8e(_0xbdafc6){return{'type':'format','content':o(_0x48fd47,'*Format:*\x20%0',_0xbdafc6)};}_0x133e4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13ecb7=>{if('formatBlock'!=_0x13ecb7['type'])return;const {data:_0x1f25c6}=_0x13ecb7;if(_0x1f25c6){if('setTableRowHeader'==_0x1f25c6['commandName']){const _0x4bbb74=_0x1f25c6['commandParams'][0x0]['forceValue'];return _0x2cab8e(o(_0x48fd47,_0x4bbb74?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1f25c6['commandName']){const _0x13ee60=_0x1f25c6['commandParams'][0x0]['forceValue'];return _0x2cab8e(o(_0x48fd47,_0x13ee60?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x24c5eb=>[_0x24c5eb,null]));class It extends _0x578bbc{static get['requires'](){return[jt];}['afterInit'](){const _0x9dfc8d=this['editor'];if(!_0x9dfc8d['plugins']['has']('TableClipboard'))return;const _0x47220a=_0x9dfc8d['plugins']['get']('TrackChangesEditing'),_0x4d614c=_0x9dfc8d['plugins']['get']('TableUtils'),_0x114ce3=_0x9dfc8d['plugins']['get'](jt),_0x50d88a=_0x9dfc8d['plugins']['get']('TableClipboard');_0x114ce3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x9dfc8d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x9dfc8d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x437091=null;_0x9dfc8d['model']['on']('insertContent',(_0x385278,_0x432dd4)=>{const [_0x369d00,_0x5565f5]=_0x432dd4,_0x5e5725=_0x432dd4[_0x432dd4['length']-0x1];_0x5e5725&&_0x5e5725['forceDefaultExecution']||_0x47220a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xad6c07,_0x34ac30,_0xda658e,_0x406993,_0x38cad0){if(_0x34ac30&&!_0x34ac30['is']('documentSelection'))return!0x1;const _0x567f85=_0x38cad0['getTableIfOnlyTableInContent'](_0xad6c07,_0xda658e);if(!_0x567f85||!he(_0x567f85,void 0x0,_0x406993))return!0x1;const _0x6a7c3a=_0x406993['getSelectionAffectedTableCells'](_0xda658e['document']['selection']);if(!_0x6a7c3a['length'])return!0x1;const _0x17a668=_0x6a7c3a[0x0]['findAncestor']('table'),_0x5a77c1=_0x406993['getRowIndexes'](_0x6a7c3a),_0x32d29c=_0x406993['getColumnIndexes'](_0x6a7c3a),_0x3a05aa={'startRow':_0x5a77c1['first'],'endRow':_0x5a77c1['last'],'startColumn':_0x32d29c['first'],'endColumn':_0x32d29c['last']};return 0x1==_0x6a7c3a['length']&&(_0x3a05aa['endRow']+=_0x406993['getRows'](_0x567f85)-0x1,_0x3a05aa['endColumn']+=_0x406993['getColumns'](_0x567f85)-0x1),he(_0x17a668,_0x3a05aa,_0x406993);}(_0x369d00,_0x5565f5,_0x9dfc8d['model'],_0x4d614c,_0x50d88a)&&(_0x385278['stop'](),_0x437091={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9dfc8d['model']['change'](()=>{_0x9dfc8d['model']['insertContent'](_0x432dd4[0x0],_0x432dd4[0x1],_0x432dd4[0x2],{'forceDefaultExecution':!0x0});const _0x1a46c5=_0x3446bc(),{rowInsertionRanges:_0x2ad580,columnInsertionRanges:_0x1a2994,insertionRanges:_0x46c858,deletionRanges:_0x4277d4,cells:_0x20519e}=_0x437091;_0x2ad580['length']&&_0x47220a['markMultiRangeInsertion'](_0x2ad580,'tablePasteRow',{'tablePasteChainId':_0x1a46c5}),_0x1a2994['length']&&_0x47220a['markMultiRangeInsertion'](_0x1a2994,'tablePasteColumn',{'tablePasteChainId':_0x1a46c5}),_0x46c858['length']&&(_0x47220a['markMultiRangeInsertion'](_0x46c858,'tablePaste',{'tablePasteChainId':_0x1a46c5,'skipNestingCheck':!0x0}),_0x46c858['forEach'](_0x388072=>_0x388072['detach']?.())),_0x4277d4['length']&&(_0x47220a['markMultiRangeDeletion'](_0x4277d4,'tablePaste',{'tablePasteChainId':_0x1a46c5,'skipNestingCheck':!0x0}),_0x4277d4['forEach'](_0x4f9b25=>_0x4f9b25['detach']?.()));const _0x3ca202=_0x47220a['markMultiRangeBlockFormat'](_0x20519e['map'](({element:_0x4b287b})=>_0x4b287b),{'formatGroupId':_0x3446bc()},[],'tablePasteCell',{'tablePasteChainId':_0x1a46c5});if(_0x3ca202){const _0x4f2669=_0x3ca202['getMarkers'](),_0x28919f=[];for(const {element:_0x505c13,attributes:_0x48f8b0}of _0x20519e){if(!_0x48f8b0)continue;const _0x595ba6=_0x9dfc8d['model']['createRangeOn'](_0x505c13),_0x49dc25=_0x4f2669['find'](_0xc21389=>_0xc21389['getRange']()['isEqual'](_0x595ba6));_0x49dc25&&_0x28919f['push']([_0x49dc25['name'],_0x48f8b0]);}_0x28919f['length']&&_0x3ca202['setAttribute']('markerAttributes',Object['fromEntries'](_0x28919f));}_0x437091=null;}));},{'priority':_0x509bb4['high']+0xa}),_0x9dfc8d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5ab7ab,_0x3602a2)=>{const [_0x44177a,_0x5c8c50,,_0x78e5d8]=_0x3602a2;if(!_0x437091)return;_0x5ab7ab['stop']();const _0x4b54e8=_0x44177a['cell'],_0x93fa37=_0x5c8c50,_0x51644e=Pe(_0x4b54e8),_0x36431f=Pe(_0x93fa37);_0x5ab7ab['return']=_0x4b54e8;let _0x5acdd3=null,_0x3b0e9d=null;if(_0x36431f||_0x51644e){if(_0x51644e&&!_0x36431f){_0x78e5d8['remove'](_0x4b54e8['getChild'](0x0));for(const _0x35dc03 of Array['from'](_0x93fa37['getChildren']()))_0x78e5d8['insert'](_0x35dc03,_0x4b54e8,'end');const _0x302560=_0x437091['rowInsertionIndexes']['includes'](_0x44177a['row']),_0x2be6ad=_0x437091['columnInsertionIndexes']['includes'](_0x44177a['column']);_0x302560||_0x2be6ad||(_0x5acdd3=_0x2028c8['fromRange'](_0x78e5d8['createRangeIn'](_0x4b54e8)));}else _0x36431f&&!_0x51644e&&(_0x3b0e9d=_0x78e5d8['createRangeIn'](_0x4b54e8));}else{const _0x49b7af=_0x78e5d8['createElement']('tableCellSuggestion'),_0x145dfe=_0x78e5d8['createElement']('tableCellSuggestion');_0x78e5d8['wrap'](_0x78e5d8['createRangeIn'](_0x4b54e8),_0x145dfe),_0x78e5d8['insert'](_0x49b7af,_0x4b54e8,0x0);for(const _0x415899 of Array['from'](_0x93fa37['getChildren']()))_0x78e5d8['insert'](_0x415899,_0x49b7af,'end');_0x5acdd3=_0x2028c8['fromRange'](_0x78e5d8['createRangeOn'](_0x49b7af)),_0x3b0e9d=_0x2028c8['fromRange'](_0x78e5d8['createRangeOn'](_0x145dfe));}const _0xa3b255=Array['from'](_0x93fa37['getAttributes']())['filter'](([_0x55e891])=>ge['includes'](_0x55e891));_0x437091['cells']['push']({'element':_0x4b54e8,'attributes':_0xa3b255['length']?Object['fromEntries'](_0xa3b255):null}),_0x5acdd3&&_0x437091['insertionRanges']['push'](_0x5acdd3),_0x3b0e9d&&_0x437091['deletionRanges']['push'](_0x3b0e9d);},{'priority':'high'}),_0x4d614c['on']('insertColumns',(_0x10f815,_0x1bab0d)=>{const [_0xace8e9,_0xdb4089={}]=_0x1bab0d;if(!_0x437091)return;const _0x47d9e3=_0xdb4089['at']||0x0,_0x7409b7=_0xdb4089['columns']||0x1;_0x437091['columnInsertionIndexes']=new Array(_0x7409b7)['fill'](_0x47d9e3)['map']((_0x5823d9,_0xa99cdd)=>_0x5823d9+_0xa99cdd);for(const {cell:_0x133d0a}of _0x4d614c['createTableWalker'](_0xace8e9,{'startColumn':_0x47d9e3,'endColumn':_0x47d9e3+_0x7409b7-0x1}))_0x437091['columnInsertionRanges']['push'](_0x9dfc8d['model']['createRangeOn'](_0x133d0a));},{'priority':'low'}),_0x4d614c['on']('insertRows',(_0x143d95,_0x1f2468)=>{const [_0x4b5198,_0x334a93={}]=_0x1f2468;if(!_0x437091)return;const _0x618dd3=_0x334a93['at']||0x0,_0x4ef870=_0x334a93['rows']||0x1;_0x437091['rowInsertionIndexes']=new Array(_0x4ef870)['fill'](_0x618dd3)['map']((_0x26ff85,_0x594c99)=>_0x26ff85+_0x594c99);for(const {cell:_0x316d20}of _0x4d614c['createTableWalker'](_0x4b5198,{'startRow':_0x618dd3,'endRow':_0x618dd3+_0x4ef870-0x1}))_0x437091['rowInsertionRanges']['push'](_0x9dfc8d['model']['createRangeOn'](_0x316d20));},{'priority':'low'}),_0x47220a['descriptionFactory']['registerDescriptionCallback'](_0xba8b1d=>{if(_0xba8b1d['subType']&&_0xba8b1d['subType']['startsWith']('tablePaste'))return _0xba8b1d['previous']?{}:{'type':'insertion','content':o(_0x9dfc8d['locale'],'*Replace\x20table\x20cells*')};});const _0xa764f4=()=>!0x1;for(const _0x2eaf34 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x47220a['_suggestionFactory']['registerCustomCallback']('insertion',_0x2eaf34,'join',_0xa764f4),_0x47220a['_suggestionFactory']['registerCustomCallback']('deletion',_0x2eaf34,'join',_0xa764f4),_0x47220a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2eaf34,'join',_0xa764f4);_0x47220a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa764f4),_0x47220a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a51bf,_0x3375e8,_0x5f123b)=>{const _0x440d38=_0x3a51bf['map'](_0x5af66d=>_0x5af66d['getContainedElement']())['filter'](_0x5851f2=>_0x5851f2),_0x127c93=new Map(_0x440d38['map'](_0x255ceb=>[_0x255ceb,null]));if(_0x437091){for(const {element:_0x546705,attributes:_0x78b862}of _0x437091['cells'])_0x78b862&&_0x127c93['set'](_0x546705,_0x78b862);}else{if(_0x5f123b&&_0x5f123b['markerAttributes'])for(const [_0x298985,_0x1a030c]of Object['entries'](_0x5f123b['markerAttributes'])){const _0x598170=_0x9dfc8d['model']['markers']['get'](_0x298985),_0x1d1c40=_0x598170?_0x598170['getRange']()['getContainedElement']():null;_0x1d1c40&&_0x127c93['set'](_0x1d1c40,_0x1a030c);}}_0x9dfc8d['model']['change'](_0x3f8688=>{for(const [_0x3d1d99,_0x2d4fc2]of _0x127c93)_0x3f8688['setAttributes']({...Ce,..._0x2d4fc2},_0x3d1d99);});});const _0x30d48a=(_0x595638,_0x32bc4f)=>{_0x47220a['_suggestionFactory']['registerCustomCallback'](_0x595638,'tablePaste',_0x32bc4f,(_0x5998d4,_0x19cb93,_0x24bea2)=>{_0x9dfc8d['model']['change'](_0x373c93=>{const _0x111f86=[];for(const _0x35239e of _0x5998d4){const _0x161c30=_0x35239e['start']['nodeAfter'];_0x161c30['is']('element','tableCellSuggestion')&&_0x111f86['push'](_0x161c30);}_0x47220a['_suggestionFactory']['getSuggestionCallback'](_0x595638,null,_0x32bc4f)(_0x5998d4,_0x19cb93,_0x24bea2);for(const _0x1c460c of _0x111f86)'$graveyard'!=_0x1c460c['root']['rootName']&&_0x373c93['unwrap'](_0x1c460c);});});};_0x30d48a('insertion','accept'),_0x30d48a('insertion','discard'),_0x30d48a('deletion','accept'),_0x30d48a('deletion','discard'),_0x47220a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1a40ca=>{const _0x5b1734=_0x1a40ca['map'](_0x5dc5e4=>_0x5dc5e4['getContainedElement']()),_0x5d59a4=_0x5b1734[0x0]['findAncestor']('table'),{minRow:_0x3aaa0a,maxRow:_0x17012d}=_0x114ce3['_getCoordsForCells'](_0x5b1734);_0x4d614c['removeRows'](_0x5d59a4,{'at':_0x3aaa0a,'rows':_0x17012d-_0x3aaa0a+0x1});}),_0x47220a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5fb53e=>{const _0x57d382=_0x5fb53e['map'](_0x39c2cc=>_0x39c2cc['getContainedElement']()),_0xc90a7f=_0x57d382[0x0]['findAncestor']('table'),{minColumn:_0x38806a,maxColumn:_0x13a8b7}=_0x114ce3['_getCoordsForCells'](_0x57d382);_0x4d614c['removeColumns'](_0xc90a7f,{'at':_0x38806a,'columns':_0x13a8b7-_0x38806a+0x1});});const _0x553936=(_0x5d4e34,_0x5a760d)=>{if(!_0x5a760d['subType']||!_0x5a760d['subType']['startsWith']('tablePaste'))return;const _0x588299=_0x5a760d['attributes']['tablePasteChainId'],_0x14d573=_0x47220a['getSuggestions']()['filter'](_0x3446d5=>_0x3446d5['isInContent']&&_0x3446d5['attributes']&&_0x3446d5['attributes']['tablePasteChainId']==_0x588299);_0x14d573['length']&&_0x5a760d['getAllAdjacentSuggestions']()['length']!=_0x14d573['length']&&_0x14d573['reduce']((_0x55968a,_0x1674de)=>(_0x55968a['next']=_0x1674de,_0x1674de['previous']=_0x55968a,_0x1674de));};function _0x1c67dc(_0x14ee6d,_0x1ca454=!0x0){const {id:_0x1e1e11}=_0x47220a['_splitMarkerName'](_0x14ee6d['markerName']),_0xbef1c8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x9236c8=_0x47220a['activeMarkers']['includes'](_0x14ee6d['markerName']);return _0x9236c8&&_0xbef1c8['push']('ck-suggestion-marker--active'),{'classes':_0xbef1c8,'attributes':{'data-suggestion':_0x1e1e11},'priority':_0x9236c8&&_0x1ca454?0xbc2:0xbb8};}_0x47220a['on']('suggestionLoaded',_0x553936,{'priority':'high'}),_0x47220a['on']('suggestionUnloaded',_0x553936,{'priority':'high'}),_0x9dfc8d['model']['document']['registerPostFixer'](()=>{let _0xd4a82a=!0x1;const _0x1d42e0=Array['from'](_0x9dfc8d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x57b8c6,data:_0x56b554}of _0x1d42e0){const {group:_0x9f1229,type:_0x1c5269,id:_0x5bd26d}=_0x47220a['_splitMarkerName'](_0x57b8c6);if('suggestion'!=_0x9f1229||'deletion'!=_0x1c5269||_0x56b554['oldRange'])continue;if(!_0x47220a['hasSuggestion'](_0x5bd26d))continue;const _0x4ccc01=_0x47220a['getSuggestion'](_0x5bd26d)['getRanges'](),_0x5ed6bd=_0x9dfc8d['plugins']['get']('Users')['me'];for(const _0x77160c of _0x47220a['getSuggestions']()){if(!_0x77160c['isInContent']||_0x77160c['author']!=_0x5ed6bd)continue;if('formatBlock'!=_0x77160c['type']||'tablePasteCell'!=_0x77160c['subType'])continue;if(_0x77160c['getRanges']()['every'](_0x269bcd=>_0x4ccc01['some'](_0x1ba870=>_0x1ba870['containsRange'](_0x269bcd,!0x0)))){for(const _0x707b2a of _0x77160c['getAllAdjacentSuggestions']())_0x707b2a['isInContent']&&(_0x707b2a['discard'](),_0xd4a82a=!0x0);}}}return _0xd4a82a;}),_0x9dfc8d['model']['document']['registerPostFixer'](_0x19d283=>{const _0x20a491=_0x9dfc8d['commands']['get']('redo');if(!_0x20a491||!_0x20a491['_createdBatches']['has'](_0x19d283['batch']))return!0x1;let _0x46b43a=!0x1;const _0x54f9f5=_0x9dfc8d['plugins']['get']('Users')['me'],_0xf7a6a8=_0x9dfc8d['model']['document']['differ']['getChanges'](),_0x159351=Array['from'](_0x9dfc8d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x188a16,data:_0x2ad083})=>{const {group:_0x2c62a8,subType:_0x2cac46,authorId:_0x504f2f}=_0x47220a['_splitMarkerName'](_0x188a16);return'suggestion'==_0x2c62a8&&'tablePaste'==_0x2cac46&&_0x504f2f==_0x54f9f5['id']&&!_0x2ad083['oldRange'];});for(const _0xe9eeaf of _0xf7a6a8){if('insert'!=_0xe9eeaf['type']||'tableCellSuggestion'!=_0xe9eeaf['name']||0x1!=_0xe9eeaf['length'])continue;const _0x504571=_0x19d283['createRange'](_0xe9eeaf['position'],_0xe9eeaf['position']['getShiftedBy'](0x1));if(!_0x159351['find'](({data:_0x2de8de})=>_0x2de8de['newRange']['isEqual'](_0x504571))){for(const {name:_0x502d1f,data:_0x121635}of _0x159351)if(_0x504571['containsRange'](_0x121635['newRange'])){_0x19d283['updateMarker'](_0x502d1f,{'range':_0x504571}),_0x46b43a=!0x0;break;}}}return _0x46b43a;}),_0x9dfc8d['model']['document']['registerPostFixer'](_0x2fd672=>{let _0x49f684=!0x1;const _0x3a1688=_0x9dfc8d['plugins']['get']('Users')['me'],_0x4e45d1=_0x47220a['getSuggestions']()['filter'](_0x10ca35=>_0x10ca35['isInContent']&&_0x10ca35['author']==_0x3a1688),_0x3a5311=new Set(),_0x23cfaa=new Set();for(const _0x1c1a4a of _0x4e45d1)if('tablePaste'==_0x1c1a4a['subType'])for(const _0x3db9b7 of _0x1c1a4a['getMarkers']()){const _0x5ef46a=_0x3db9b7['getRange']()['getContainedElement']();if(_0x5ef46a){if(_0x5ef46a['is']('element','tableCellSuggestion')&&Pe(_0x5ef46a)){_0x1c1a4a['removeMarker'](_0x3db9b7['name']),_0x3a5311['add'](_0x5ef46a),_0x49f684=!0x0;const _0x3598a0=_0x5ef46a['nextSibling'],_0x1c5ed5=_0x5ef46a['previousSibling'],_0x2c9d75=_0x3598a0&&_0x3598a0['is']('element','tableCellSuggestion'),_0x2811a8=_0x1c5ed5&&_0x1c5ed5['is']('element','tableCellSuggestion');_0x2c9d75&&!_0x3a5311['has'](_0x3598a0)&&_0x23cfaa['add'](_0x3598a0),_0x2811a8&&!_0x3a5311['has'](_0x1c5ed5)&&_0x23cfaa['add'](_0x1c5ed5);}else _0x5ef46a['is']('element','paragraph')&&_0x5ef46a['isEmpty']&&(_0x1c1a4a['removeMarker'](_0x3db9b7['name']),_0x49f684=!0x0);}}else{if('tablePasteCell'==_0x1c1a4a['subType']){if(!_0x1c1a4a['attributes']||!_0x1c1a4a['attributes']['tablePasteChainId'])continue;const _0xe82e49=_0x1c1a4a['attributes']['markerAttributes'];if(_0xe82e49&&Object['keys'](_0xe82e49)['length'])continue;const _0x1a3a65=_0x1c1a4a['attributes']['tablePasteChainId'];let _0x4d284b=!0x0,_0x254b30=!0x0;for(const _0x1a21bb of _0x4e45d1)if(_0x1a21bb['subType']&&_0x1a21bb['subType']['startsWith']('tablePaste')){if(!_0x1a21bb['attributes']['tablePasteChainId']){_0x254b30=!0x1;break;}if(_0x1a21bb['id']!=_0x1c1a4a['id']&&_0x1a21bb['attributes']['tablePasteChainId']==_0x1a3a65){_0x4d284b=!0x1;break;}}_0x254b30&&_0x4d284b&&(_0x1c1a4a['removeMarkers'](),_0x49f684=!0x0);}}for(const _0x546357 of _0x3a5311)_0x2fd672['remove'](_0x546357);for(const _0x3b252f of _0x23cfaa)_0x2fd672['unwrap'](_0x3b252f);return _0x49f684;}),_0x9dfc8d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x365721,_0xd9ce19)=>_0x1c67dc(_0x365721),'converterPriority':'high'}),_0x9dfc8d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1f1619,_0x3ef11d)=>_0x3ef11d['options']['showSuggestionHighlights']?_0x1c67dc(_0x1f1619,!0x1):null,'converterPriority':'high'});const _0x34ecda=_0x9dfc8d['editing']['view'];this['listenTo'](_0x34ecda['document'],'clipboardOutput',(_0x2d4ffc,_0x3184f0)=>{const _0x3f8889=[];for(const _0x43897e of _0x34ecda['createRangeIn'](_0x3184f0['content'])['getItems']())_0x43897e['is']('element','suggestion-td')&&_0x3f8889['push'](_0x43897e);_0x34ecda['change'](_0x4e78a6=>{for(const _0x21f2db of _0x3f8889)_0x4e78a6['move'](_0x4e78a6['createRangeIn'](_0x21f2db),_0x4e78a6['createPositionBefore'](_0x21f2db)),_0x4e78a6['remove'](_0x21f2db);});});}}function Pe(_0x34e772){if(_0x34e772['isEmpty'])return!0x0;const _0x519244=_0x34e772['getChild'](0x0);return _0x519244['is']('element','paragraph')&&_0x519244['isEmpty'];}function he(_0x5b7de0,_0xf868c1={},_0x5c787b){for(const {isAnchor:_0x212e21,cellHeight:_0x225142,cellWidth:_0x277550}of _0x5c787b['createTableWalker'](_0x5b7de0,{'includeAllSlots':!0x0,..._0xf868c1}))if(!_0x212e21||0x1!=_0x225142||0x1!=_0x277550)return!0x1;return!0x0;}class vt extends _0x578bbc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x918722=this['editor']['plugins']['get']('TrackChangesEditing');_0x918722['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x918722['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x918722['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x918722['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x918722['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x918722['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1e3ad2,_0xe4269f){const _0x3f44bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xef81da=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x48bf47=_0xe4269f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5609cd=_0xef81da['getColumnGroupElement'](_0x48bf47);let _0x277566=_0x5609cd?_0xef81da['getTableColumnsWidths'](_0x5609cd):null,_0x44e8be=_0x48bf47['getAttribute']('tableWidth')||null;const _0x4b7981=_0xe4269f['tableWidth']||_0x44e8be,_0x4ae21b=_0xe4269f['columnWidths']||_0x277566,_0x109f35=this['editor']['plugins']['get']('Users')['me'];for(const _0x2667f7 of _0x3f44bb['getSuggestions']()){const _0x136422=_0x2667f7['getContainedElement']();if('resizeTable'===_0x2667f7['subType']&&_0x136422===_0x48bf47){_0x2667f7['author']!==_0x109f35&&_0x2667f7['discard']();const _0x4bc81b=_0x2667f7['data']['commandParams'];_0x44e8be=_0x4bc81b[0x0]['tableWidth'],_0x277566=_0x4bc81b[0x0]['columnWidths'];break;}}_0x1e3ad2({'table':_0x48bf47,'tableWidth':_0x4b7981,'columnWidths':_0x4ae21b}),_0x3f44bb['markBlockFormat'](_0x48bf47,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x44e8be,'columnWidths':_0x277566}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x32bf38){if('formatBlock'!=_0x32bf38['type']&&'formatInline'!=_0x32bf38['type'])return;const {data:_0x1f1a62}=_0x32bf38;if(_0x1f1a62&&'resizeTable'===_0x1f1a62['formatGroupId']){const _0x49ae54='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x49ae54)};}}}class _t extends _0x578bbc{['afterInit'](){const _0x372aad=this['editor'];_0x372aad['plugins']['has']('Template')&&_0x372aad['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x578bbc{['afterInit'](){const _0x466991=this['editor'];if(!_0x466991['commands']['get']('insertTableOfContents'))return;_0x466991['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x43c7e5=_0x466991['plugins']['get']('TrackChangesEditing'),_0x47b5a8=_0x466991['locale'];_0x43c7e5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x22073b=>o(_0x47b5a8,'ELEMENT_TABLE_OF_CONTENTS',_0x22073b));}}class Dt extends _0x578bbc{['afterInit'](){const _0x26c8c7=this['editor'];if(!_0x26c8c7['plugins']['has']('Title'))return;const _0x9e00f0=_0x26c8c7['plugins']['get']('TrackChangesEditing');_0x9e00f0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x26c8c7['locale'],'ELEMENT_TITLE')),_0x26c8c7['model']['document']['registerPostFixer'](_0x1bee55=>{let _0x571ab0=!0x1;const _0x50b9fa=Array['from'](_0x26c8c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f54e8,data:_0x34ba97}of _0x50b9fa){const {group:_0x1fc44d}=_0x9e00f0['_splitMarkerName'](_0x3f54e8);if('suggestion'!==_0x1fc44d||!_0x34ba97['newRange'])continue;const _0x3d6266=_0x34ba97['newRange'],_0x2b8224=_0x3d6266['end']['nodeBefore'];if(!_0x2b8224||!_0x2b8224['is']('element','title-content'))continue;if(!_0x3d6266['start']['isTouching'](_0x3d6266['end']))continue;const _0x456dcf=_0x26c8c7['model']['schema']['getNearestSelectionRange'](_0x3d6266['end'],'forward');if(_0x456dcf&&_0x456dcf['isCollapsed']){const _0x191ffb=_0x1bee55['createRange'](_0x3d6266['start'],_0x456dcf['start']);_0x191ffb['isEqual'](_0x3d6266)||(_0x1bee55['updateMarker'](_0x3f54e8,{'range':_0x191ffb}),_0x571ab0=!0x0);}_0x571ab0||(_0x1bee55['removeMarker'](_0x3f54e8),_0x571ab0=!0x0);}return _0x571ab0;});}}class Nt extends _0x578bbc{['afterInit'](){const _0x47c049=this['editor'],_0x19bb3f=_0x47c049['plugins']['get']('TrackChangesEditing');_0x47c049['plugins']['has']('UndoEditing')&&(_0x19bb3f['enableCommand']('undo'),_0x19bb3f['enableCommand']('redo'));}}class Mt extends _0x578bbc{static get['requires'](){return[jt];}['afterInit'](){const _0x433b86=this['editor'];if(!_0x433b86['plugins']['has']('TableCaptionEditing'))return;_0x433b86['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x578bbc{['tableProperties'];['tableCellProperties'];constructor(_0x40aa54){super(_0x40aa54),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 _0x575d71=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x126304 of this['tableProperties'])_0x575d71['enableCommand'](_0x126304,(_0x3f812e,_0x53f021)=>{const _0x3b410f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x126304,[_0x3b410f],this['tableProperties'],'tableProperties',_0x3f812e,_0x53f021);});_0x575d71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x575d71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x575d71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x113b4a,_0x323f92)=>this['handleDiscardAction'](this['tableProperties'],_0x113b4a,_0x323f92)),_0x575d71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x32ded5 of this['tableCellProperties'])_0x575d71['enableCommand'](_0x32ded5,(_0x4dc857,_0x187fcb)=>{const _0x5f12c1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x32ded5,_0x5f12c1,this['tableCellProperties'],'tableCellProperties',_0x4dc857,_0x187fcb);});_0x575d71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x575d71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x575d71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1f43de,_0x18d10f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1f43de,_0x18d10f)),_0x575d71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x575d71['descriptionFactory']['registerDescriptionCallback'](_0x459202=>this['handleSuggestionDescription'](_0x459202));}['_handlePropertyChange'](_0x51a69a,_0x331bc4,_0x437ec3,_0x16adfd,_0xa19833,_0x45ce79){const _0x1f2a69=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45ce79['batch'],()=>{for(const _0x2c9565 of _0x331bc4){if(this['_getSuggestion'](_0x2c9565,_0x16adfd))_0xa19833(_0x45ce79);else{const _0x690cfa={};for(const _0x43afb0 of _0x437ec3){const _0x50dc1f=_0x2c9565['getAttribute'](_0x43afb0);void 0x0!==_0x50dc1f&&(_0x690cfa[_0x43afb0]=_0x50dc1f);}_0xa19833(_0x45ce79),_0x1f2a69['markBlockFormat'](_0x2c9565,{'commandParams':[_0x690cfa]},[],_0x16adfd);}}});}['handleDiscardAction'](_0x1ad7aa,_0x1190f2,_0xcedc77){const _0x3b123d=_0x1190f2[0x0]['start']['nodeAfter'],_0x3a60cf=_0xcedc77['commandParams'][0x0];this['editor']['model']['change'](_0x11542b=>{for(const _0x30c310 of _0x1ad7aa)void 0x0!==_0x3a60cf[_0x30c310]?_0x11542b['setAttribute'](_0x30c310,_0x3a60cf[_0x30c310],_0x3b123d):_0x11542b['removeAttribute'](_0x30c310,_0x3b123d);});}['handleSuggestionDescription'](_0x3e726c){if(_0x3e726c['data'])switch(_0x3e726c['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'](_0x44518d,_0x3f51ca){const _0x3f28d8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xd04d7f of _0x3f28d8['getSuggestions']({'skipNotAttached':!0x0})){const _0x54f72b=_0xd04d7f['getContainedElement']();if(_0xd04d7f['subType']===_0x3f51ca&&_0x54f72b===_0x44518d)return _0xd04d7f;}return null;}}const m='$elementName';class p extends _0x578bbc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4e9db3,_0x59b9b5,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x54fa93){function _0x387fd1(_0x144e1d){return _0x144e1d['map'](_0x3d784f=>String['fromCharCode'](_0x3d784f))['join']('');}super(_0x54fa93),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x43710c,_0x143505,_0x34fdc3,_0x1f3202)=>{this['_model']['change'](()=>{for(const _0x278841 of[..._0x1f3202,..._0x34fdc3])this['_model']['markers']['has'](_0x278841)&&_0x54fa93['editing']['reconvertMarker'](_0x278841);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x54fa93['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(),_0x54fa93['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x54fa93['config']['get']('trackChanges.trackFormatChanges'),_0x54fa93['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x54fa93['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x54fa93,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x387fd1([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x387fd1([0x34,0x30,0x34,0x38,0x31,0x30,0x34,0x32]);}['init'](){const _0x285032=this['editor'],_0x3b8956=(_0x1742b5,_0x1920f3)=>{if('attribute'!=_0x1742b5)return'ck-suggestion-marker-'+_0x1742b5;const _0x133c8b=_0x1920f3['split']('|')[0x0];return this['_isBlockAttribute'](_0x133c8b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x285032['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x504e54=>{const {id:_0x1c0994,type:_0x37f594,subType:_0x55d21a}=this['_splitMarkerName'](_0x504e54['markerName']),_0x3d687a=['ck-suggestion-marker',_0x3b8956(_0x37f594,_0x55d21a)];let _0x57486b=0xbb8;return this['activeMarkers']['includes'](_0x504e54['markerName'])&&(_0x3d687a['push']('ck-suggestion-marker--active'),_0x57486b=0xbc2),'deletion'==_0x37f594&&(_0x57486b+=0x5),{'classes':_0x3d687a,'attributes':{'data-suggestion':_0x1c0994},'priority':_0x57486b};}}),_0x285032['conversion']['for']('dataDowncast')['add'](_0x54b13d=>{_0x54b13d['on']('addMarker:suggestion',(_0x2afd9d,_0xf4e142,_0x8c9b1)=>{if(!_0x8c9b1['options']['showSuggestionHighlights'])return;const _0x367603=_0xf4e142['item'];if(!_0x367603)return;const _0x386e4b=_0x8c9b1['mapper']['toViewElement'](_0x367603);_0x285032['model']['schema']['isObject'](_0x367603)&&_0x386e4b&&!_0x386e4b['getCustomProperty']('widget')&&_0x386e4b['is']('containerElement')&&_0x2ad45c(_0x386e4b,_0x8c9b1['writer']);},{'priority':'high'});}),_0x285032['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1a730a,_0x1b0e2b)=>{if(!_0x1b0e2b['options']['showSuggestionHighlights'])return null;const {type:_0x67636d,subType:_0x48a7c2}=this['_splitMarkerName'](_0x1a730a['markerName']);return{'classes':['ck-suggestion-marker',_0x3b8956(_0x67636d,_0x48a7c2)],'priority':0xbb8};}});const _0x54e3f6=({showActiveMarkers:_0x11bf84=!0x0,isAttributeSuggestion:_0x2333f1=!0x1}={})=>(_0x541154,_0x3d74fe,_0x5aa044)=>{if(!_0x3d74fe['item'])return;const {id:_0x3022c6}=this['_splitMarkerName'](_0x3d74fe['markerName']);if(_0x2333f1){const _0x52878f=this['_suggestions']['get'](_0x3022c6),_0x472751=this['_getAttributeKey'](_0x52878f);if(!this['_isBlockAttribute'](_0x472751))return;}if(_0x3d74fe['item']['is']('selection'))return void _0x5aa044['consumable']['consume'](_0x3d74fe['item'],_0x541154['name']);const _0x25d24f=_0x5aa044['mapper']['toViewElement'](_0x3d74fe['item']);if(_0x3d74fe['item']['is']('element')&&_0x285032['model']['schema']['isBlock'](_0x3d74fe['item'])&&!_0x25d24f['getCustomProperty']('addHighlight')){_0x5aa044['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x25d24f),_0x5aa044['writer']['setAttribute']('data-suggestion',_0x3022c6,_0x25d24f),_0x5aa044['mapper']['bindElementToMarker'](_0x25d24f,_0x3d74fe['markerName']),_0x11bf84&&(this['activeMarkers']['includes'](_0x3d74fe['markerName'])?_0x5aa044['writer']['addClass']('ck-suggestion-marker--active',_0x25d24f):_0x5aa044['writer']['removeClass']('ck-suggestion-marker--active',_0x25d24f));for(const _0x588dac of _0x285032['model']['createRangeIn'](_0x3d74fe['item'])['getItems']())_0x5aa044['consumable']['consume'](_0x588dac,_0x541154['name']);_0x5aa044['consumable']['consume'](_0x3d74fe['item'],_0x541154['name']);}};_0x285032['conversion']['for']('dataDowncast')['add'](_0x568ab3=>{_0x568ab3['on']('addMarker:suggestion:formatBlock',(_0x175944,_0x3f0f1a,_0x34b7d5)=>{_0x34b7d5['options']['showSuggestionHighlights']&&_0x54e3f6({'showActiveMarkers':!0x1})(_0x175944,_0x3f0f1a,_0x34b7d5);},{'priority':'highest'});}),_0x285032['conversion']['for']('dataDowncast')['add'](_0x41853e=>{_0x41853e['on']('addMarker:suggestion:attribute',(_0x50bbfd,_0xc5606f,_0x56b25b)=>{_0x56b25b['options']['showSuggestionHighlights']&&_0x54e3f6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x50bbfd,_0xc5606f,_0x56b25b);},{'priority':'highest'});}),_0x285032['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1b61f4,_0x5411dd)=>_0x5411dd['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1b61f4['substr'](0xb)}}),_0x285032['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c8a72,{writer:_0x4df8f7})=>{let _0x22fde8='suggestion:'+_0x1c8a72['getAttribute']('suggestion-type')+':'+_0x1c8a72['getAttribute']('id');return _0x1c8a72['getAttribute']('marker-count')&&(_0x22fde8+=':'+_0x1c8a72['getAttribute']('marker-count')),_0x4df8f7['createElement']('$marker',{'data-name':_0x22fde8});}}),_0x285032['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x285032['conversion']['for']('editingDowncast')['add'](_0x5823e9=>{_0x5823e9['on']('addMarker:suggestion:formatBlock',_0x54e3f6(),{'priority':'high'});}),_0x285032['conversion']['for']('editingDowncast')['add'](_0x1aec82=>{_0x1aec82['on']('addMarker:suggestion:attribute',_0x54e3f6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x285032['conversion']['for']('editingDowncast')['add'](_0x9dfdfc=>{_0x9dfdfc['on']('removeMarker:suggestion:formatBlock',(_0x1e2d1f,_0x35edca,_0x74c627)=>{const _0x3f8799=_0x74c627['mapper']['markerNameToElements'](_0x35edca['markerName']);if(_0x3f8799){for(const _0x1c56a5 of _0x3f8799)_0x1c56a5['getCustomProperty']('addHighlight')||(_0x74c627['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c56a5),_0x74c627['writer']['removeAttribute']('data-suggestion',_0x1c56a5),_0x74c627['mapper']['unbindElementFromMarkerName'](_0x1c56a5,_0x35edca['markerName']));}},{'priority':'high'});}),_0x285032['conversion']['for']('editingDowncast')['add'](_0x4f3b52=>{_0x4f3b52['on']('removeMarker:suggestion:attribute',(_0x343006,_0x491fa4,_0x1a5b2e)=>{const _0x20dad3=_0x1a5b2e['mapper']['markerNameToElements'](_0x491fa4['markerName']);if(!_0x20dad3)return;const {id:_0x5ccffb}=this['_splitMarkerName'](_0x491fa4['markerName']),_0x2630d3=this['_suggestions']['get'](_0x5ccffb),_0x5aacf5=this['_getAttributeKey'](_0x2630d3);if(this['_isBlockAttribute'](_0x5aacf5)){for(const _0x647241 of _0x20dad3)_0x647241['getCustomProperty']('addHighlight')||(_0x1a5b2e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x647241),_0x1a5b2e['writer']['removeAttribute']('data-suggestion',_0x647241),_0x1a5b2e['mapper']['unbindElementFromMarkerName'](_0x647241,_0x491fa4['markerName']));}},{'priority':'high'});}),_0x285032['model']['document']['registerPostFixer'](_0x434dbb=>{let _0x8b6328=!0x1;const _0x28bc62=Array['from'](_0x285032['model']['document']['differ']['getChangedMarkers']()),_0x41db3e=new Set();for(const {name:_0x4f2e20,data:_0x2c4674}of _0x28bc62){const {group:_0x3b4797,type:_0x456c7f,subType:_0x352035,id:_0x11d290}=this['_splitMarkerName'](_0x4f2e20);if('suggestion'!==_0x3b4797)continue;const _0x123708=this['_suggestions']['get'](_0x11d290);if(null!=_0x2c4674['newRange']){'formatInline'==_0x456c7f&&(_0x8b6328=_0x8b6328||Et(_0x2c4674['newRange'],_0x4f2e20,_0x434dbb,_0x285032['model']['schema']));const _0x555c4d='attribute'==_0x456c7f&&this['_isBlockAttribute'](_0x352035['split']('|')[0x0]);if(_0x2c4674['newRange']['isCollapsed']||'$graveyard'==_0x2c4674['newRange']['root']['rootName']||'formatBlock'==_0x456c7f&&!Ut(_0x2c4674['newRange'])||_0x555c4d&&!Ut(_0x2c4674['newRange'])||'deletion'==_0x456c7f&&!(!Tt(_0x1e6d4e=_0x2c4674['newRange'])&&!function(_0x383d97){return _0x383d97['start']['parent']==_0x383d97['end']['nodeBefore']&&_0x383d97['start']['isAtEnd'];}(_0x1e6d4e)))_0x434dbb['removeMarker'](_0x4f2e20),_0x8b6328=!0x0;else{if(!_0x123708||!_0x123708['isInContent'])continue;_0x41db3e['add'](_0x123708);}}}var _0x1e6d4e;return _0x41db3e['size']>0x0&&(_0x8b6328=!!this['_joinWithAdjacentSuggestions'](_0x41db3e)||_0x8b6328),_0x8b6328;}),_0x285032['model']['document']['registerPostFixer'](_0x1fd41d=>{let _0x4e85c5=!0x1;for(const _0x34bb29 of _0x285032['model']['document']['differ']['getChanges']())if('insert'==_0x34bb29['type'])for(const _0x2ec3c7 of this['_suggestions']['values']()){if(_0x2ec3c7['isMultiRange']||!_0x2ec3c7['isInContent'])continue;const _0x4cb656='formatBlock'==_0x2ec3c7['type'],_0x22830f=this['_getAttributeKey'](_0x2ec3c7),_0x45a822=_0x22830f&&this['_isBlockAttribute'](_0x22830f);if(!_0x4cb656&&!_0x45a822)continue;const _0x21bbea=_0x2ec3c7['getFirstRange']();if(_0x21bbea['start']['parent']!=_0x21bbea['end']['parent']&&!_0x21bbea['end']['isAtEnd']){const _0x16fc80=_0x285032['model']['createPositionAt'](_0x21bbea['start']['nodeAfter'],'end'),_0x1cd43a=_0x285032['model']['createRange'](_0x21bbea['start'],_0x16fc80);_0x1fd41d['updateMarker'](_0x2ec3c7['getFirstMarker'](),{'range':_0x1cd43a}),_0x4e85c5=!0x0;}}return _0x4e85c5;}),_0x285032['model']['document']['registerPostFixer'](_0x29a4dc=>this['_processAttributeChanges'](_0x29a4dc)),_0x285032['model']['document']['registerPostFixer'](_0x67ab55=>!_0x67ab55['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x67ab55)),_0x285032['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x285032['model']['document']['on']('change:data',(_0xe0dcff,_0x30d4f5)=>{if(!_0x30d4f5['isLocal']||_0x30d4f5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x24f6a7=_0x285032['model']['document']['differ']['getChanges']();if(0x0==_0x24f6a7['length'])return;const _0x19a4ac=[],_0x2e7683=_0x24f6a7['filter'](_0x55a7f1=>'attribute'==_0x55a7f1['type']),_0x4b9b9a=_0x24f6a7['filter'](_0x2421fe=>'insert'==_0x2421fe['type']&&'$text'!=_0x2421fe['name']),_0x1b0748=_0x24f6a7['filter'](_0x52a3f9=>'remove'==_0x52a3f9['type']&&'$text'!=_0x52a3f9['name']);for(const _0x155595 of _0x2e7683)this['_isRegisteredAttribute'](_0x155595['attributeKey'])&&_0x19a4ac['push']({'key':_0x155595['attributeKey'],'newValue':_0x155595['attributeNewValue'],'oldValue':_0x155595['attributeOldValue'],'range':Ot(_0x155595['range'],_0x285032['model'])});for(const _0x1ca51a of _0x4b9b9a){const _0x2c095d=_0x1b0748['find'](_0x230c0f=>_0x230c0f['_element']===_0x1ca51a['_element']);if(_0x2c095d){const _0x37eb39=Ft(_0x1ca51a['position']['nodeAfter'],_0x285032['model']);_0x2c095d['name']!==_0x1ca51a['name']&&_0x19a4ac['push']({'key':m,'newValue':_0x1ca51a['name'],'oldValue':_0x2c095d['name'],'range':_0x37eb39});for(const [_0xcba489,_0x48e7f1]of _0x2c095d['attributes']){if(!this['_isRegisteredAttribute'](_0xcba489))continue;const _0x431b18=_0x1ca51a['attributes']['get'](_0xcba489);_0x48e7f1!==_0x431b18&&_0x19a4ac['push']({'key':_0xcba489,'newValue':_0x431b18,'oldValue':_0x48e7f1,'range':_0x37eb39});}for(const [_0x157906,_0x3feb17]of _0x1ca51a['attributes'])this['_isRegisteredAttribute'](_0x157906)&&(_0x2c095d['attributes']['has'](_0x157906)||_0x19a4ac['push']({'key':_0x157906,'newValue':_0x3feb17,'oldValue':null,'range':_0x37eb39}));}}0x0!=_0x19a4ac['length']&&_0x285032['model']['enqueueChange'](_0x30d4f5,_0x26d0c9=>{const _0x204a30=_0x3446bc();for(const {range:_0x26bfa8,key:_0x1ee730,oldValue:_0x38859f,newValue:_0x460844}of _0x19a4ac)this['markAttributeChange'](_0x26bfa8,_0x1ee730,_0x38859f,_0x460844,{'groupId':_0x204a30});this['_reduceExistingSuggestions'](_0x26d0c9,_0x19a4ac);});},{'priority':'lowest'}),_0x285032['model']['markers']['on']('update:suggestion',(_0x357d04,_0x5a5f8e,_0x1d4d2f)=>{if(null==_0x1d4d2f){const {id:_0x411202}=this['_splitMarkerName'](_0x5a5f8e['name']),_0x515ffd=this['_suggestions']['get'](_0x411202);_0x515ffd&&_0x515ffd['addMarkerName'](_0x5a5f8e['name']);}}),_0x285032['model']['document']['on']('change:data',()=>{const _0x31e3c7=Array['from'](_0x285032['model']['document']['differ']['getChangedMarkers']())['filter'](_0x40b84c=>'suggestion'===this['_splitMarkerName'](_0x40b84c['name'])['group']);if(0x0===_0x31e3c7['length'])return;_0x31e3c7['sort']((_0x514c02,_0x37b242)=>{const _0x3905df=_0x514c02['data']['oldRange'],_0x288cb2=_0x37b242['data']['oldRange'];return null===_0x3905df&&null===_0x288cb2?0x0:null===_0x3905df&&null!==_0x288cb2?-0x1:null!==_0x3905df&&null===_0x288cb2?0x1:_0x3905df['start']['isBefore'](_0x288cb2['start'])?-0x1:0x1;});const _0x4aa27f=new Set(),_0x1237f5=new Set();for(const {name:_0x5dfbd0,data:_0x5a78b7}of _0x31e3c7){const {id:_0x24fbfe}=this['_splitMarkerName'](_0x5dfbd0);if(null===_0x5a78b7['oldRange']){const _0x4ca74d=this['_handleNewSuggestionMarker'](_0x5dfbd0);_0x1237f5['add'](_0x4ca74d);}else{const _0x310156=this['_suggestions']['get'](_0x24fbfe);null!==_0x5a78b7['newRange']||_0x310156['isInContent']?(_0x4aa27f['add'](_0x310156['head']),_0x1237f5['add'](_0x310156)):this['_removeSuggestion'](_0x310156);}}_0x1237f5['size']>0x0&&this['_refreshSuggestionsChain'](_0x1237f5);for(const _0xcc0aca of _0x4aa27f)this['fire']('suggestionChanged',_0xcc0aca);}),_0x285032['model']['on']('applyOperation',(_0x2ebbdf,_0x5b58cd)=>{const _0x56a728=_0x5b58cd[0x0];if(!this['_suggestions']['size'])return;if(!_0x56a728['isDocumentOperation'])return;if(_0x56a728['batch']['isUndo']||!_0x56a728['batch']['isLocal'])return;let _0x38479e,_0x4a4eac;switch(_0x56a728['type']){case'insert':_0x38479e=_0x285032['model']['createPositionAt'](_0x56a728['position']),_0x4a4eac=_0x38479e['getShiftedBy'](_0x56a728['howMany']);break;case'split':_0x38479e=_0x285032['model']['createPositionAt'](_0x56a728['splitPosition']),_0x4a4eac=_0x285032['model']['createPositionAt'](_0x56a728['moveTargetPosition']);break;case'move':_0x38479e=_0x285032['model']['createPositionAt'](_0x56a728['targetPosition']),_0x4a4eac=_0x38479e['getShiftedBy'](_0x56a728['howMany']);break;default:return;}const _0x117205=_0x285032['model']['createRange'](_0x38479e,_0x4a4eac);_0x285032['model']['change'](()=>{for(const {suggestion:_0x3d8bb4,meta:_0x479043}of this['_findSuggestions'](_0x117205)){if(_0x3d8bb4['isMultiRange'])continue;if('formatInline'==_0x3d8bb4['type'])continue;const _0x162de0=this['_getAttributeKey'](_0x3d8bb4);if(_0x162de0&&this['_isBlockAttribute'](_0x162de0)&&'split'!=_0x56a728['type'])continue;const _0x49b9cf=_0x3d8bb4['data']&&_0x3d8bb4['data']['multipleBlocks'];('formatBlock'!=_0x3d8bb4['type']||'split'==_0x56a728['type']&&!_0x49b9cf)&&(_0x479043['containsRangeInObject']||'insertion'==_0x3d8bb4['type']&&_0x479043['isOwn']||_0x3d8bb4['getFirstRange']()['containsRange'](_0x117205)&&this['_breakSuggestionMarker'](_0x3d8bb4,_0x38479e,_0x4a4eac));}});},{'priority':'lowest'}),_0x285032['model']['on']('deleteContent',(_0x410a48,_0xf27ad2)=>{const _0x4fbc2d=_0xf27ad2[0x0],_0x49f08e=_0xf27ad2[0x1];if(_0x49f08e&&_0x49f08e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4fbc2d['isCollapsed'])return;const _0x4a6553=_0x285032['model']['schema'],{start:_0x28e9f9,end:_0x21ca70}=_0x4fbc2d['getFirstRange'](),_0x20ea5e=_0x28e9f9['nodeAfter']&&_0x4a6553['isLimit'](_0x28e9f9['nodeAfter'])?null:_0x4a6553['getNearestSelectionRange'](_0x28e9f9,'forward'),_0x47e333=_0x21ca70['nodeBefore']&&_0x4a6553['isLimit'](_0x21ca70['nodeBefore'])?null:_0x4a6553['getNearestSelectionRange'](_0x21ca70,'backward'),_0x47c0ee=_0x285032['model']['createRange'](_0x20ea5e?_0x20ea5e['start']:_0x28e9f9,_0x47e333?_0x47e333['end']:_0x21ca70);_0x285032['model']['change'](_0x378b4b=>{this['markDeletion'](_0x47c0ee);const _0x1f3d76=_0x285032['model']['schema']['getNearestSelectionRange'](_0x47c0ee['start']);_0x4fbc2d['is']('documentSelection')?_0x378b4b['setSelection'](_0x1f3d76):_0x4fbc2d['setTo'](_0x1f3d76);}),_0x410a48['stop']();},{'priority':_0x509bb4['normal']+0xa}),_0x285032['model']['on']('insertContent',(_0x1b7623,_0x215721)=>{const _0xb164c8=_0x215721[_0x215721['length']-0x1];_0xb164c8&&_0xb164c8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x285032['model']['change'](()=>{let _0x5ce325=_0x285032['model']['insertContent'](_0x215721[0x0],_0x215721[0x1],_0x215721[0x2],{'forceDefaultExecution':!0x0});if(!_0x5ce325)return;_0x1b7623['return']=_0x5ce325['clone']();const _0x58938f=_0x5ce325['end']['nodeBefore'],_0x435207=_0x285032['model']['schema'];_0x58938f&&_0x435207['isBlock'](_0x58938f)&&!_0x435207['isObject'](_0x58938f)&&(_0x5ce325=_0x285032['model']['createRange'](_0x5ce325['start'],_0x285032['model']['createPositionAt'](_0x58938f,'end'))),this['markInsertion'](_0x5ce325);}),_0x1b7623['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x54a096=new $(_0x285032,this['_suggestions']);_0x285032['commands']['add']('acceptSuggestion',_0x54a096),this['enableCommand']('acceptSuggestion');const _0x3497b7=new B(_0x285032,this['_suggestions']);_0x285032['commands']['add']('discardSuggestion',_0x3497b7),this['enableCommand']('discardSuggestion'),_0x285032['commands']['add']('acceptAllSuggestions',new x(_0x285032,_0x54a096,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x285032['commands']['add']('discardAllSuggestions',new x(_0x285032,_0x3497b7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x285032['commands']['add']('acceptSelectedSuggestions',new R(_0x285032,_0x54a096,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x285032['commands']['add']('discardSelectedSuggestions',new R(_0x285032,_0x3497b7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4373ee=_0x285032['plugins']['get']('CommentsRepository');this['listenTo'](_0x4373ee,'addComment',(_0x442718,{threadId:_0x2360d0})=>{const _0x4fa4d=this['_suggestions']['get'](_0x2360d0);_0x4fa4d&&_0x4fa4d['commentThread']&&0x1===_0x4fa4d['commentThread']['length']&&this['_updateSuggestionData'](_0x2360d0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4373ee,'removeComment',(_0xf9b9ec,{threadId:_0x569513})=>{const _0x3ff2db=this['_suggestions']['get'](_0x569513);_0x3ff2db&&_0x3ff2db['commentThread']&&!_0x3ff2db['commentThread']['length']&&this['_updateSuggestionData'](_0x569513,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2ad3e3){if(this['_adapter'])throw new _0x1d6b47('track-changes-adapter-already-set',this);this['_adapter']=_0x2ad3e3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3dc779=!0x1,toJSON:_0x55d8f4=!0x1}={}){const _0x5b3733=[];for(const _0x217cc8 of this['_suggestions']['values']())_0x3dc779&&!_0x217cc8['isInContent']||_0x5b3733['push'](_0x217cc8);return _0x55d8f4?_0x5b3733['map'](_0x55eaee=>_0x55eaee['toJSON']()):_0x5b3733;}['getSuggestion'](_0x262633){const _0xd7dc61=this['_suggestions']['get'](_0x262633);if(!_0xd7dc61)throw new _0x1d6b47('track-changes-suggestion-not-found',this);return _0xd7dc61;}['hasSuggestion'](_0x23eae8){return this['_suggestions']['has'](_0x23eae8);}['addSuggestionData'](_0x2393a3){const {authorId:_0x2d6356,id:_0x358dbe,attributes:_0x28a3a5}=_0x2393a3,[_0x5e706d,_0xf9a3ee]=_0x2393a3['type']['split'](':'),_0x18f257=this['_suggestions']['get'](_0x358dbe)||this['_createSuggestion'](_0x5e706d,_0xf9a3ee,_0x358dbe,_0x2d6356,_0x28a3a5);if(this['_addThreadToSuggestion'](_0x18f257),this['_checkSuggestionCorrectness'](_0x18f257,_0x5e706d,_0xf9a3ee||null,_0x2d6356),_0x18f257['createdAt']=_0x2393a3['createdAt'],_0x18f257['_isDataLoaded']=!0x0,_0x28a3a5&&_0x28a3a5['@external']){const _0x69a651=_0x28a3a5['@external'],_0x104106=this['_getExternalAuthor'](_0x69a651['authorName']);_0x18f257['authoredAt']=_0x69a651['createdAt'],_0x18f257['author']=_0x104106,_0x18f257['isExternal']=!0x0;}else _0x18f257['authoredAt']=_0x2393a3['createdAt'];switch(_0x2393a3['data']&&(_0x18f257['data']=_0x2393a3['data']),_0x2393a3['attributes']&&(_0x18f257['attributes']=_0x2393a3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x18f257['_saved']=!0x0),this['_suggestionState']['get'](_0x18f257)){case'notReady':this['_suggestionState']['set'](_0x18f257,'dataReady');break;case'markerReady':_0x18f257['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x18f257])),this['_refreshSuggestionsChain'](new Set([_0x18f257])),this['_suggestionState']['set'](_0x18f257,'ready'),this['fire']('suggestionLoaded',_0x18f257)):this['_suggestionState']['set'](_0x18f257,'removed');}return _0x18f257;}['acceptSuggestion'](_0x278b45){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x358c89 of _0x278b45['getAllAdjacentSuggestions']())_0x358c89['accept']();});});}['discardSuggestion'](_0x4fc650){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x34878a of _0x4fc650['getAllAdjacentSuggestions']())_0x34878a['discard']();});});}['enableCommand'](_0x2e6a0c,_0x215bdd){const _0x4b3d8a=this['editor']['commands']['get'](_0x2e6a0c);if(!_0x4b3d8a)throw new _0x1d6b47('track-changes-command-not-found',this,{'commandName':_0x2e6a0c});if(this['_enabledCommands']['has'](_0x4b3d8a))throw new _0x1d6b47('track-changes-enable-command-twice',this,{'commandName':_0x2e6a0c});this['_enabledCommands']['add'](_0x4b3d8a),_0x215bdd&&_0x4b3d8a['on']('execute',(_0x101b4b,_0x37ff37)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x37ff37['length']>0x0&&_0x37ff37[_0x37ff37['length']-0x1]&&_0x37ff37[_0x37ff37['length']-0x1]['forceDefaultExecution']?_0x37ff37['pop']():(_0x101b4b['return']=_0x215bdd((..._0x376889)=>_0x4b3d8a['execute'](..._0x376889,{'forceDefaultExecution':!0x0}),..._0x37ff37),_0x101b4b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x432943){let _0x47e48d,_0x4402d4;const _0x2a3481=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x47e48d=_0x432943();}catch(_0x5b4266){_0x4402d4=_0x5b4266;}return _0x2a3481||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4402d4&&_0x1d6b47['rethrowUnexpectedError'](_0x4402d4,this),_0x47e48d;}['markInsertion'](_0x28a292,_0x3f9112=null,_0x38b485={}){if(_0x28a292['isCollapsed'])return null;const _0x2a9f8f=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x13dc2d,meta:_0x5949c0}of this['_findSuggestions'](_0x28a292,'insertion'))if(_0x5949c0['isOwn']){if(!_0x5949c0['isNextTo']){if(_0x5949c0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x13dc2d,_0x38b485))continue;return _0x13dc2d;}if(Lt(_0x13dc2d,_0x38b485))return _0x13dc2d;this['_breakSuggestionMarker'](_0x13dc2d,_0x28a292['start'],_0x28a292['end']);break;}if(_0x3f9112==_0x13dc2d['subType']&&Lt(_0x13dc2d,_0x38b485)){const _0x1ac6e7=_0x13dc2d['getFirstRange']();return _0x1ac6e7['start']['isEqual'](_0x28a292['end'])?this['_setSuggestionRange'](_0x13dc2d,this['_model']['createRange'](_0x28a292['start'],_0x1ac6e7['end'])):this['_setSuggestionRange'](_0x13dc2d,this['_model']['createRange'](_0x1ac6e7['start'],_0x28a292['end'])),_0x13dc2d;}}const _0x512382=_0x3446bc(),_0x13343c=_0x2a9f8f['id'],_0x262355=_0x3f9112?'insertion:'+_0x3f9112:'insertion',_0x3c5c2d=this['_setSuggestionData']({'id':_0x512382,'type':_0x262355,'createdAt':new Date(),'authorId':_0x13343c,'attributes':_0x38b485});return this['_addSuggestionMarker'](_0x262355,_0x512382,_0x13343c,_0x28a292),_0x3c5c2d;}['markMultiRangeInsertion'](_0x256e03,_0x4568a6='multi',_0x50a064={}){const _0x37c74a=this['editor']['plugins']['get']('Users')['me'],_0x18e7d5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4568a6,'join');for(const _0x1adf6e of this['getSuggestions']())if(_0x1adf6e['author']['id']==_0x37c74a['id']&&'insertion'==_0x1adf6e['type']&&_0x1adf6e['subType']==_0x4568a6&&Lt(_0x1adf6e,_0x50a064)&&(_0x18e7d5(_0x1adf6e['getRanges'](),_0x256e03)||_0x18e7d5(_0x256e03,_0x1adf6e['getRanges']()))){for(const _0x2d2866 of _0x256e03)_0x1adf6e['addRange'](_0x2d2866);return _0x1adf6e;}for(const {suggestion:_0x1bab3b,meta:_0x4977a2}of this['_findSuggestions'](_0x256e03,'insertion')){if(!_0x4977a2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4977a2['containsRangeInObject'])continue;if(!Lt(_0x1bab3b,_0x50a064))continue;let _0x20e59c=!0x0;for(const _0x3a68bc of _0x1bab3b['getRanges']())for(const _0x25887e of _0x256e03)if(!_0x3a68bc['containsRange'](_0x25887e)){_0x20e59c=!0x1;break;}if(_0x20e59c)return _0x1bab3b;}const _0x5846e3=_0x3446bc(),_0xf8347d=_0x37c74a['id'],_0x242fa6='insertion:'+_0x4568a6,_0x3d79d3=this['_setSuggestionData']({'id':_0x5846e3,'type':_0x242fa6,'createdAt':new Date(),'authorId':_0xf8347d,'attributes':_0x50a064});for(const _0x56a46f of _0x256e03)this['_addSuggestionMarker'](_0x242fa6,_0x5846e3,_0xf8347d,_0x56a46f,u['getMultiRangeId']());return _0x3d79d3;}['markInlineFormat'](_0x4e14a5,_0x498eef,_0x46f2eb=null,_0x2c0a9e={}){if(_0x46f2eb=_0x46f2eb||Vt(_0x498eef),_0x4e14a5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x9ec4ac=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x46f2eb,'accept');return this['forceDefaultExecution'](()=>_0x9ec4ac([_0x4e14a5],_0x498eef,_0x2c0a9e)),null;}const _0x49420c=this['editor']['plugins']['get']('Users')['me'],_0x4f5162=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4e599b,meta:_0x33f2b3}of this['_findSuggestions'](_0x4e14a5,'insertion'))_0x33f2b3['isOwn']&&!_0x33f2b3['isInsideObject']&&_0x4f5162['push'](..._0x4e599b['getRanges']());}const _0x3780d8=function(_0x1e28c3,_0x1b5a68){const _0x15b8e1=[];for(const _0x3d716c of _0x1b5a68){const _0x54c576=_0x1e28c3['getIntersection'](_0x3d716c);_0x54c576&&_0x15b8e1['push'](_0x54c576);}return _0x15b8e1;}(_0x4e14a5,_0x4f5162),_0x40e094=function(_0x495fc8,_0x221ec1){const _0x515ac3=[_0x495fc8];for(const _0x14c1ee of _0x221ec1){let _0x6d5be8=0x0;for(;_0x6d5be8<_0x515ac3['length'];){const _0x1e9cfb=_0x515ac3[_0x6d5be8]['getDifference'](_0x14c1ee);_0x515ac3['splice'](_0x6d5be8,0x1,..._0x1e9cfb),_0x6d5be8+=_0x1e9cfb['length'];}}return _0x515ac3;}(_0x4e14a5,_0x4f5162);_0x3780d8['length']&&this['_model']['change'](()=>{for(const _0x338341 of _0x3780d8){const _0x13b6c4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x46f2eb,'accept');this['forceDefaultExecution'](()=>_0x13b6c4([_0x338341],_0x498eef,_0x2c0a9e));}});for(const _0x326bdb of _0x40e094){let _0x1fdced=null,_0x5f4ada=_0x326bdb['start'],_0x51d871=_0x326bdb['end'];for(const {suggestion:_0x1163a0,meta:_0x289bf5}of this['_findSuggestions'](_0x326bdb,'formatInline')){if(!_0x289bf5['isOwn'])continue;if(_0x1163a0['subType']!=_0x46f2eb)continue;if(!Lt(_0x1163a0,_0x2c0a9e))continue;const _0x2d1ca8=_0x1163a0['getFirstRange']();if(_0x2d1ca8['containsRange'](_0x326bdb,!0x0))return null;_0x5f4ada=_0x5f4ada['isBefore'](_0x2d1ca8['start'])?_0x5f4ada:_0x2d1ca8['start'],_0x51d871=_0x51d871['isAfter'](_0x2d1ca8['end'])?_0x51d871:_0x2d1ca8['end'],_0x1fdced?_0x2d1ca8['start']['isBefore'](_0x1fdced['getFirstRange']()['start'])?(_0x1fdced['removeMarkers'](),_0x1fdced=_0x1163a0):_0x1163a0['removeMarkers']():_0x1fdced=_0x1163a0;}const _0x1d2abb=this['_model']['createRange'](_0x5f4ada,_0x51d871);if(_0x1fdced)this['_setSuggestionRange'](_0x1fdced,_0x1d2abb);else{const _0x342d6e=_0x3446bc(),_0x2be874=_0x49420c['id'];this['_setSuggestionData']({'id':_0x342d6e,'type':'formatInline:'+_0x46f2eb,'data':_0x498eef,'createdAt':new Date(),'authorId':_0x2be874,'attributes':_0x2c0a9e}),this['_addSuggestionMarker']('formatInline:'+_0x46f2eb,_0x342d6e,_0x2be874,_0x1d2abb);}}return null;}['markBlockFormat'](_0xae83a6,_0x33f4c9,_0x21b223=[],_0x85797e=null,_0x466e4c={}){_0x33f4c9['formatGroupId']||(_0x33f4c9['formatGroupId']=_0x33f4c9['commandName']),_0x33f4c9['multipleBlocks']=_0xae83a6['is']('range'),_0x85797e=_0x85797e||Vt(_0x33f4c9);const _0x2e6e71=_0x21b223['map'](_0x338575=>Ft(_0x338575,this['_model'])),_0x1cbb79=_0xae83a6['is']('range')?_0xae83a6:Ft(_0xae83a6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1c5626=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x85797e,'accept');return this['forceDefaultExecution'](()=>_0x1c5626([_0x1cbb79],_0x33f4c9,_0x466e4c)),null;}_0x2e6e71['push'](_0x1cbb79);let _0x10252f=!0x0;for(const _0x3713ca of _0x2e6e71)if(!this['_rangeIsInLocalUserInsertion'](_0x3713ca)){_0x10252f=!0x1;break;}if(_0x10252f&&'always'!==this['_trackFormatChanges']){const _0x24608e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x85797e,'accept');return this['forceDefaultExecution'](()=>_0x24608e([_0x1cbb79],_0x33f4c9,_0x466e4c)),null;}let _0x57fb3a=null,_0x36d436=_0x1cbb79['start'],_0x4199a3=_0x1cbb79['end'];for(const {suggestion:_0x3a698b,meta:_0xacacf0}of this['_findSuggestions'](_0x1cbb79,'formatBlock')){if(!_0xacacf0['isOwn'])continue;if(_0xacacf0['isNextTo']||_0xacacf0['containsRangeInObject']||_0xacacf0['isInsideObject'])continue;if(_0x3a698b['data']['formatGroupId']!=_0x33f4c9['formatGroupId'])continue;if(!Lt(_0x3a698b,_0x466e4c))continue;const _0x55aafb=_0x3a698b['getFirstRange']();if(_0x3a698b['subType']==_0x85797e){if(_0x55aafb['containsRange'](_0x1cbb79,!0x0))return null;_0x36d436=_0x36d436['isBefore'](_0x55aafb['start'])?_0x36d436:_0x55aafb['start'],_0x4199a3=_0x4199a3['isAfter'](_0x55aafb['end'])?_0x4199a3:_0x55aafb['end'],_0x57fb3a?_0x55aafb['start']['isBefore'](_0x57fb3a['getFirstRange']()['start'])?(_0x57fb3a['removeMarkers'](),_0x57fb3a=_0x3a698b):_0x3a698b['removeMarkers']():_0x57fb3a=_0x3a698b;}else{const _0x3eca30=_0x1cbb79['getIntersection'](_0x55aafb);this['_cutOutSuggestionMarker'](_0x3a698b,_0x3eca30);}}const _0x40fc24=this['editor']['plugins']['get']('Users')['me'],_0x5a3faa=_0x3446bc(),_0x69b41b=_0x40fc24['id'];if(_0x57fb3a)return this['_setSuggestionRange'](_0x57fb3a,this['_model']['createRange'](_0x36d436,_0x4199a3)),_0x57fb3a;{const _0x172fcf=this['_setSuggestionData']({'id':_0x5a3faa,'type':'formatBlock:'+_0x85797e,'data':_0x33f4c9,'createdAt':new Date(),'authorId':_0x69b41b,'attributes':_0x466e4c});return this['_addSuggestionMarker']('formatBlock:'+_0x85797e,_0x5a3faa,_0x69b41b,this['_model']['createRange'](_0x36d436,_0x4199a3)),_0x172fcf;}}['markMultiRangeBlockFormat'](_0x1f88b5,_0x134b61,_0x1b8663=[],_0x359ac1=null,_0x5191da={}){_0x134b61['formatGroupId']||(_0x134b61['formatGroupId']=_0x134b61['commandName']);const _0x326dfd=_0x1f88b5[0x0];_0x134b61['multipleBlocks']=_0x326dfd['is']('range'),_0x359ac1=_0x359ac1||Vt(_0x134b61);const _0x598bbc=_0x1b8663['map'](_0x11534c=>Ft(_0x11534c,this['_model'])),_0x37e251=_0x326dfd['is']('range')?_0x1f88b5:_0x1f88b5['map'](_0x8fea45=>Ft(_0x8fea45,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1527ce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x359ac1,'accept');return this['forceDefaultExecution'](()=>_0x1527ce(_0x37e251,_0x134b61,_0x5191da)),null;}_0x598bbc['push'](..._0x37e251);let _0x4287a5=!0x0;for(const _0x443934 of _0x598bbc)if(!this['_rangeIsInLocalUserInsertion'](_0x443934)){_0x4287a5=!0x1;break;}if(_0x4287a5&&'always'!==this['_trackFormatChanges']){const _0x4cc542=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x359ac1,'accept');return this['forceDefaultExecution'](()=>_0x4cc542(_0x37e251,_0x134b61,_0x5191da)),null;}const _0x3ff5d3=this['editor']['plugins']['get']('Users')['me'];for(const _0x1c350a of this['getSuggestions']()){if(_0x1c350a['author']['id']!=_0x3ff5d3['id'])continue;if('formatBlock'!=_0x1c350a['type']||_0x1c350a['data']['formatGroupId']!=_0x134b61['formatGroupId'])continue;if(!Lt(_0x1c350a,_0x5191da))continue;const _0x143a84=_0x1c350a['subType']==_0x359ac1;for(let _0x2bb539=0x0;_0x2bb539<_0x37e251['length'];_0x2bb539++){const _0x3f976e=_0x37e251[_0x2bb539];for(const _0x20aa28 of _0x1c350a['getMarkers']()){const _0x2a3c54=_0x20aa28['getRange']();if(_0x3f976e['isEqual'](_0x2a3c54)){_0x143a84?(_0x37e251['splice'](_0x2bb539,0x1),_0x2bb539--):_0x1c350a['removeMarker'](_0x20aa28['name']);break;}}}}if(0x0==_0x37e251['length'])return null;const _0x421e23=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x359ac1,'join');for(const _0x47f723 of this['getSuggestions']())if(_0x47f723['author']['id']==_0x3ff5d3['id']&&'formatBlock'==_0x47f723['type']&&_0x47f723['data']['formatGroupId']==_0x134b61['formatGroupId']&&_0x47f723['subType']==_0x359ac1&&Lt(_0x47f723,_0x5191da)&&(_0x421e23(_0x47f723['getRanges'](),_0x37e251)||_0x421e23(_0x37e251,_0x47f723['getRanges']()))){for(const _0x4a2f7d of _0x37e251)_0x47f723['addRange'](_0x4a2f7d);return _0x47f723;}const _0x55636c=_0x3446bc(),_0x5c8d6d=_0x3ff5d3['id'],_0x1cbcda='formatBlock:'+_0x359ac1,_0x258bc3=this['_setSuggestionData']({'id':_0x55636c,'type':_0x1cbcda,'data':_0x134b61,'createdAt':new Date(),'authorId':_0x5c8d6d,'attributes':_0x5191da});for(const _0x2832ad of _0x37e251)this['_addSuggestionMarker'](_0x1cbcda,_0x55636c,_0x5c8d6d,_0x2832ad,u['getMultiRangeId']());return _0x258bc3;}['markDeletion'](_0x51f509,_0x53f7d4=null,_0x2c0fff={}){if(_0x51f509['isCollapsed'])return null;const _0x3175db=this['editor']['plugins']['get']('Users')['me'],_0x552519=new _0x2028c8(_0x51f509['start'],_0x51f509['end']);for(const {suggestion:_0x424169,meta:_0x4862f6}of this['_findSuggestions'](_0x552519,'insertion'))if(_0x4862f6['isOwn']&&!_0x4862f6['isNextTo']){if(_0x424169['isMultiRange']){const _0xa0ba0a=_0x424169['getRanges']()['filter'](_0x33ed34=>'$graveyard'!=_0x33ed34['root']['rootName']);_0xa0ba0a['every'](_0x2d71d6=>_0x552519['containsRange'](_0x2d71d6,!0x0))&&_0x424169['discard']();if(_0xa0ba0a['some'](_0x299d20=>_0x299d20['containsRange'](_0x552519,!0x0))){const _0x58bfb3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53f7d4,'accept');return this['forceDefaultExecution'](()=>_0x58bfb3([_0x552519],null,_0x2c0fff)),null;}}else{const _0x21222f=_0x552519['getIntersection'](_0x424169['getFirstRange']());null!==_0x21222f&&_0x424169['_onDiscard']([_0x21222f],null,_0x2c0fff);}}if(_0x552519['detach'](),_0x552519['isCollapsed']||'$graveyard'==_0x552519['root']['rootName'])return null;let _0x3bbf55=null,_0x159288=_0x552519['start'],_0x5eaa90=_0x552519['end'];const _0x236776=this['_findSuggestions'](_0x552519,'deletion');for(const {suggestion:_0x5c7253,meta:_0xc0bc}of _0x236776){const _0x27aa15=this['_model']['createRange'](_0x159288,_0x5eaa90);if(_0xc0bc['isOwn']&&(this['_mergeNestedSuggestions']||!_0xc0bc['containsRangeInObject']&&!_0xc0bc['isInsideObject'])){if(_0x5c7253['isMultiRange']){if(!Lt(_0x5c7253,_0x2c0fff))continue;let _0x1fa2d7=!0x0;for(const _0x59fa77 of _0x5c7253['getRanges']()){if(_0x59fa77['containsRange'](_0x27aa15,!0x0))return _0x5c7253;_0x27aa15['containsRange'](_0x59fa77)||(_0x1fa2d7=!0x1);}_0x1fa2d7&&_0x5c7253['discard']();}else{const _0x589a1d=_0x5c7253['getFirstRange']();if(_0x589a1d['containsRange'](_0x27aa15,!0x0))return _0x5c7253;if(!Lt(_0x5c7253,_0x2c0fff)){_0x27aa15['containsRange'](_0x589a1d)?_0x5c7253['removeMarkers']():_0x589a1d['containsPosition'](_0x159288)?_0x159288=_0x589a1d['end']:_0x589a1d['containsPosition'](_0x5eaa90)&&(_0x5eaa90=_0x589a1d['start']);continue;}_0x159288=_0x159288['isBefore'](_0x589a1d['start'])?_0x159288:_0x589a1d['start'],_0x5eaa90=_0x5eaa90['isAfter'](_0x589a1d['end'])?_0x5eaa90:_0x589a1d['end'],_0x2c0fff=Object['assign']({},_0x5c7253['attributes']),_0x3bbf55?_0x589a1d['start']['isBefore'](_0x3bbf55['getFirstRange']()['start'])?(_0x3bbf55['removeMarkers'](),_0x3bbf55=_0x5c7253):_0x5c7253['removeMarkers']():_0x3bbf55=_0x5c7253;}}}if(_0x3bbf55)return this['_setSuggestionRange'](_0x3bbf55,this['_model']['createRange'](_0x159288,_0x5eaa90)),_0x3bbf55;{const _0x3b24bf=_0x3446bc(),_0x998f7b=this['_model']['createRange'](_0x159288,_0x5eaa90),_0x555e9a=_0x3175db['id'],_0x34356d=_0x53f7d4?'deletion:'+_0x53f7d4:'deletion',_0x2d79ad=this['_setSuggestionData']({'id':_0x3b24bf,'type':_0x34356d,'createdAt':new Date(),'authorId':_0x555e9a,'attributes':_0x2c0fff});return this['_addSuggestionMarker'](_0x34356d,_0x3b24bf,_0x555e9a,_0x998f7b),_0x2d79ad;}}['markMultiRangeDeletion'](_0x38420d,_0x58e9db='multi',_0x17dd78={}){const _0x351305=this['editor']['plugins']['get']('Users')['me'],_0x218dce=_0x38420d['map'](_0x4eb03c=>new _0x2028c8(_0x4eb03c['start'],_0x4eb03c['end'])),_0xcd932=new Set();for(const {suggestion:_0x45d77c,meta:_0x225ee0}of this['_findSuggestions'](_0x218dce,'insertion'))_0x225ee0['isOwn']&&!_0x225ee0['isNextTo']&&_0xcd932['add'](_0x45d77c);for(const _0x45222e of _0xcd932)if(_0x45222e['isMultiRange']){const _0x228274=_0x45222e['getRanges']();(!_0x45222e['attributes']||!_0x45222e['attributes']['skipNestingCheck'])&&(_0x228274['every'](_0x2883f3=>_0x218dce['some'](_0x3e0008=>_0x3e0008['containsRange'](_0x2883f3,!0x0)))&&_0x45222e['discard']());if(_0x218dce['every'](_0x29e34f=>_0x228274['some'](_0x2dddc5=>_0x2dddc5['containsRange'](_0x29e34f,!0x0)))){const _0x5465ff=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58e9db,'accept');return this['forceDefaultExecution'](()=>_0x5465ff(_0x38420d,null,_0x17dd78)),null;}}else{const _0x1de770=_0x45222e['getFirstRange']();_0x218dce['some'](_0xdb979=>_0xdb979['containsRange'](_0x1de770,!0x0))&&_0x45222e['discard']();if(_0x218dce['every'](_0x59702d=>_0x1de770['containsRange'](_0x59702d,!0x0))){const _0x84c273=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58e9db,'accept');return this['forceDefaultExecution'](()=>_0x84c273(_0x218dce,null,_0x17dd78)),null;}}const _0x5838a8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58e9db,'join');let _0x46443b=null;for(const _0x4db05b of this['getSuggestions']())if(_0x4db05b['author']['id']==_0x351305['id']&&_0x4db05b['isInContent']&&'deletion'==_0x4db05b['type']&&_0x4db05b['subType']==_0x58e9db&&Lt(_0x4db05b,_0x17dd78)&&(_0x5838a8(_0x4db05b['getRanges'](),_0x218dce)||_0x5838a8(_0x218dce,_0x4db05b['getRanges']()))){if(_0x46443b){if(_0x4db05b['commentThread']&&_0x4db05b['commentThread']['length'])continue;for(const _0x554c1e of _0x4db05b['getRanges']())_0x46443b['isIntersectingWithRange'](_0x554c1e)||_0x46443b['addRange'](_0x554c1e);_0x4db05b['removeMarkers']();}else{_0x46443b=_0x4db05b;for(const _0x6fb57 of _0x218dce)_0x4db05b['isIntersectingWithRange'](_0x6fb57)||_0x4db05b['addRange'](_0x6fb57);}}if(_0x46443b)return _0x46443b;_0xcd932['clear']();for(const {suggestion:_0x5ed554,meta:_0x383363}of this['_findSuggestions'](_0x218dce,'deletion'))_0x383363['isOwn']&&(this['_mergeNestedSuggestions']||!_0x383363['containsRangeInObject']&&!_0x383363['isInsideObject'])&&Lt(_0x5ed554,_0x17dd78)&&_0xcd932['add'](_0x5ed554);for(const _0x405eb7 of _0xcd932){const _0x194dfa=_0x405eb7['getRanges']();if(!_0x17dd78||!_0x17dd78['skipNestingCheck']){if(_0x218dce['every'](_0x35266a=>_0x194dfa['some'](_0x5192f4=>_0x5192f4['containsRange'](_0x35266a,!0x0))))return _0x405eb7;}(!_0x405eb7['attributes']||!_0x405eb7['attributes']['skipNestingCheck'])&&(_0x194dfa['every'](_0x2f3f01=>_0x218dce['some'](_0x212100=>_0x212100['containsRange'](_0x2f3f01,!0x0)))&&_0x405eb7['discard']());}const _0x536d53=_0x3446bc(),_0x2d059d=_0x351305['id'],_0x2c3045='deletion:'+_0x58e9db,_0x109a4e=this['_setSuggestionData']({'id':_0x536d53,'type':_0x2c3045,'createdAt':new Date(),'authorId':_0x2d059d,'attributes':_0x17dd78});for(const _0x52e006 of _0x218dce)_0x52e006['detach'](),_0x52e006['isCollapsed']||'$graveyard'==_0x52e006['root']['rootName']||this['_addSuggestionMarker'](_0x2c3045,_0x536d53,_0x2d059d,_0x52e006,u['getMultiRangeId']());return _0x109a4e;}['markAttributeChange'](_0x28d13d,_0x1c3c90,_0x412570,_0x588622,_0xa9b388){if(_0x28d13d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5ca2ff=this['editor']['plugins']['get']('Users')['me']['id'],_0x290f2c=Array['from'](this['_suggestions']['values']())['filter'](_0x2d5621=>'attribute'==_0x2d5621['type']&&_0x2d5621['data']['key']==_0x1c3c90&&_0x2d5621['isIntersectingWithRange'](_0x28d13d));if('default'===this['_trackFormatChanges']){const _0x1381ef=this['_findSuggestions'](_0x28d13d,'insertion')['filter'](({meta:_0x5401d6})=>_0x5401d6['isOwn']&&!_0x5401d6['isInsideObject']&&!_0x5401d6['isNextTo'])['map'](({suggestion:_0x507264})=>_0x507264);_0x290f2c['unshift'](..._0x1381ef);}const _0x59676a=new Map([[_0x28d13d,_0x412570]]);for(const _0x3d60bb of _0x290f2c){const _0x371a3e='attribute'==_0x3d60bb['type']?_0x3d60bb['data']['oldValue']:void 0x0,_0x4b9402=_0x3d60bb['getFirstRange'](),_0x17eb49=Array['from'](_0x59676a['keys']())['find'](_0x5e3616=>_0x5e3616['isIntersecting'](_0x4b9402));if(!_0x17eb49)continue;const _0x2c92b9=_0x17eb49['getDifference'](_0x4b9402);this['_isBlockAttribute'](_0x1c3c90)&&'insertion'==_0x3d60bb['type']&&0x0!=_0x2c92b9['length']||(_0x59676a['delete'](_0x17eb49),_0x2c92b9['forEach'](_0x4d4fe6=>{_0x59676a['set'](_0x4d4fe6,_0x412570);}),'insertion'!=_0x3d60bb['type']&&_0x371a3e!=_0x588622&&_0x59676a['set'](_0x17eb49['getIntersection'](_0x4b9402),_0x371a3e));}const _0x21a060=[];for(const [_0x2cb116,_0x22de63]of _0x59676a){const _0x26bfdc=_0x3446bc(),_0x5d5ce7={'key':_0x1c3c90,'oldValue':_0x22de63,'newValue':_0x588622};_0x1c3c90['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':_0x1c3c90});const _0x5a8aff=('attribute:'+(_0x1c3c90+'|'+Vt({'newValue':_0x588622})))['substring'](0x0,0x3c),_0x504615=this['_setSuggestionData']({'id':_0x26bfdc,'type':_0x5a8aff,'data':_0x5d5ce7,'createdAt':new Date(),'authorId':_0x5ca2ff,'attributes':_0xa9b388});_0x21a060['push'](_0x504615),this['_addSuggestionMarker'](_0x5a8aff,_0x26bfdc,_0x5ca2ff,_0x2cb116);}return _0x21a060;}['enableDefaultAttributesIntegration'](_0x553a66){this['enableCommand'](_0x553a66,(_0x3b7b3d,..._0x47165b)=>{this['_recordAttributeChanges'](()=>{_0x3b7b3d(..._0x47165b);});});}['registerBlockAttribute'](_0x5343dc){this['_blockAttributeKeys']['add'](_0x5343dc);}['registerInlineAttribute'](_0x91f2a6){this['_inlineAttributeKeys']['add'](_0x91f2a6);}['_getAttributeKey'](_0x382cc4){return'attribute'==_0x382cc4['type']?_0x382cc4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x524b8a,_0x5305bd){const _0x562a5d=_0x524b8a['getFirstMarker']();this['_model']['change'](_0x1ce735=>{_0x1ce735['updateMarker'](_0x562a5d,{'range':_0x5305bd});});}['_addThreadToSuggestion'](_0x3d4a16){const _0x517460=_0x3d4a16['id'],_0x59df45=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x517460)||this['_commentsRepository']['addCommentThread']({'channelId':_0x59df45,'threadId':_0x517460,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5a058b=this['_commentsRepository']['getCommentThread'](_0x517460);_0x5a058b['unbind']('isRemovable'),_0x5a058b['isRemovable']=!0x1,_0x3d4a16['commentThread']=_0x5a058b;}['_checkSuggestionCorrectness'](_0x27b808,_0x52fe10,_0x4b99cb,_0x372cd3){if(_0x27b808['type']!=_0x52fe10||_0x27b808['subType']!=_0x4b99cb||_0x27b808['creator']['id']!=_0x372cd3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1d6b47('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1ba57a,_0x509c2a){const _0x48a607=_0x1ba57a['getFirstRange']();if(_0x509c2a['isEqual'](_0x48a607))_0x1ba57a['removeMarkers']();else{if(_0x48a607['containsRange'](_0x509c2a)){const _0x3498c8=this['_model']['createPositionAt'](_0x509c2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ba57a,this['_model']['createRange'](_0x48a607['start'],_0x3498c8));const _0x103c4a=_0x3446bc(),_0x21f387=_0x1ba57a['creator']['id'],_0x54fabe=_0x1ba57a['type']+':'+_0x1ba57a['subType'];this['_setSuggestionData']({'id':_0x103c4a,'type':_0x54fabe,'createdAt':new Date(),'authorId':_0x21f387,'data':_0x1ba57a['data'],'attributes':_0x1ba57a['attributes']});const _0x4584d3=this['_model']['createPositionAt'](_0x509c2a['end']['parent'],'after'),_0x1c5478=this['_model']['createRange'](_0x4584d3,_0x48a607['end']);this['_addSuggestionMarker'](_0x54fabe,_0x103c4a,_0x21f387,_0x1c5478);}else{if(_0x48a607['containsPosition'](_0x509c2a['start'])){const _0x1ca3a3=this['_model']['createPositionAt'](_0x509c2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ba57a,this['_model']['createRange'](_0x48a607['start'],_0x1ca3a3));}else{const _0x213665=this['_model']['createPositionAt'](_0x509c2a['end']['parent'],'after');this['_setSuggestionRange'](_0x1ba57a,this['_model']['createRange'](_0x213665,_0x48a607['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2fab0e){for(const {suggestion:_0xf389b8,meta:_0x13a73e}of this['_findSuggestions'](_0x2fab0e,'insertion')){if(!_0x13a73e['isOwn'])continue;const _0x5f0c6f=_0xf389b8['getRanges']();for(const _0x320813 of _0x5f0c6f)if(!_0x2fab0e['getDifference'](_0x320813)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x439593){const _0x844a31=this['editor']['plugins']['get']('Users')['getUser'](_0x439593);if(!_0x844a31)throw new _0x1d6b47('track-changes-user-not-found',this);return _0x844a31;}['_getExternalAuthor'](_0x54c598){const _0x3c20e4=this['editor']['plugins']['get']('Users'),_0x2245e7=_0x25c756('external:'+_0x54c598),_0x516ad3=_0x3c20e4['getUser'](_0x2245e7);return _0x516ad3||_0x3c20e4['addUser']({'id':_0x2245e7,'name':_0x54c598});}['_createSuggestion'](_0x1b53b2,_0x351a4d,_0x57c2ce,_0x363661,_0x4d4f43){const _0x59fb93=this['_getAuthorFromId'](_0x363661),_0x544ff1=this['_suggestionFactory']['buildSuggestion'](_0x1b53b2,_0x351a4d,_0x57c2ce,_0x59fb93,_0x4d4f43,_0xd45f2a=>{this['_updateSuggestionData'](_0x57c2ce,{'attributes':_0xd45f2a});const _0x3081f4=this['getSuggestion'](_0x57c2ce);this['_joinWithAdjacentSuggestions'](new Set([_0x3081f4])),this['_refreshSuggestionsChain'](new Set([_0x3081f4]));});return this['listenTo'](_0x544ff1,'accept',()=>{this['_updateSuggestionData'](_0x57c2ce,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x544ff1,'discard',()=>{this['_updateSuggestionData'](_0x57c2ce,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x57c2ce,_0x544ff1),this['_suggestionState']['set'](_0x544ff1,'notReady'),_0x544ff1;}['_splitMarkerName'](_0x8fe1a8){const _0x5c325f=_0x8fe1a8['split'](':');return{'group':_0x5c325f[0x0],'type':_0x5c325f[0x1],'subType':_0x5c325f['length']>=0x5?_0x5c325f[0x2]:null,'id':_0x5c325f['length']<0x5?_0x5c325f[0x2]:_0x5c325f[0x3],'authorId':_0x5c325f['length']<0x5?_0x5c325f[0x3]:_0x5c325f[0x4],'markerCount':0x6==_0x5c325f['length']?_0x5c325f[0x5]:null};}['_breakSuggestionMarker'](_0x83d120,_0x5ea37c,_0x432b9c){const _0x5cc7a8=_0x83d120['getFirstRange'](),_0x410cf3=_0x5cc7a8['start'],_0x26aeed=_0x5cc7a8['end'];this['_setSuggestionRange'](_0x83d120,this['_model']['createRange'](_0x410cf3,_0x5ea37c));const _0x1f800a=_0x3446bc(),_0x11fd73=_0x83d120['creator']['id'],_0x31fb91=_0x83d120['type']+(_0x83d120['subType']?':'+_0x83d120['subType']:'');this['_setSuggestionData']({'id':_0x1f800a,'type':_0x31fb91,'createdAt':new Date(),'authorId':_0x11fd73,'originalSuggestionId':_0x83d120['id'],'attributes':_0x83d120['attributes'],'data':_0x83d120['data']});const _0x4fc643=this['_getAttributeKey'](_0x83d120);('formatBlock'==_0x83d120['type']||_0x4fc643&&this['_isBlockAttribute'](_0x4fc643))&&(_0x432b9c=this['_model']['createPositionBefore'](_0x432b9c['parent'])),this['_addSuggestionMarker'](_0x31fb91,_0x1f800a,_0x11fd73,this['_model']['createRange'](_0x432b9c,_0x26aeed));}['_findSuggestions'](_0x155a9c,_0x3dcfab=null){const _0xe4ebc4=[],_0x38ecfa=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x155a9c)||(_0x155a9c=[_0x155a9c]);for(const _0x14c55c of this['getSuggestions']()){if(!_0x14c55c['isInContent'])continue;if(_0x3dcfab&&_0x14c55c['type']!=_0x3dcfab)continue;let _0x4ddd67=!0x1;for(const _0x2e2918 of _0x14c55c['getRanges']()){for(const _0x561f3e of _0x155a9c){const _0x2f0dff=_0x561f3e['start']['isEqual'](_0x2e2918['end'])||_0x561f3e['end']['isEqual'](_0x2e2918['start']);if(_0x2f0dff||_0x561f3e['getIntersection'](_0x2e2918)){const _0x8c88f3=_0x561f3e['containsRange'](_0x2e2918)&&Rt(this['_model']['schema'],_0x2e2918['start'],_0x561f3e),_0x454799=_0x2e2918['containsRange'](_0x561f3e)&&Rt(this['_model']['schema'],_0x561f3e['start'],_0x2e2918);_0xe4ebc4['push']({'suggestion':_0x14c55c,'meta':{'isOwn':_0x38ecfa==_0x14c55c['author'],'isNextTo':_0x2f0dff,'isInsideObject':_0x8c88f3,'containsRangeInObject':_0x454799}}),_0x4ddd67=!0x0;break;}}if(_0x4ddd67)break;}}return _0xe4ebc4;}['_addSuggestionMarker'](_0x2b8ca3,_0x7db410,_0x29c608,_0x5a2d38,_0x3995b7){this['_model']['change'](_0x36df64=>{let _0x31a15c='suggestion:'+_0x2b8ca3+':'+_0x7db410+':'+_0x29c608;_0x3995b7&&(_0x31a15c=_0x31a15c+':'+_0x3995b7),_0x36df64['addMarker'](_0x31a15c,{'range':_0x5a2d38,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x37db48){const _0x8062d6=_0x37db48['previous'],_0x430106=_0x37db48['next'];_0x37db48['previous']=null,_0x37db48['next']=null,null!=_0x8062d6&&_0x8062d6['next']==_0x37db48&&(_0x8062d6['next']=_0x430106),null!=_0x430106&&_0x430106['previous']==_0x37db48&&(_0x430106['previous']=_0x8062d6),'ready'==this['_suggestionState']['get'](_0x37db48)&&(this['_suggestionState']['set'](_0x37db48,'removed'),this['fire']('suggestionUnloaded',_0x37db48,_0x8062d6,_0x430106));}['_setSuggestionData'](_0x53ee34){const _0x1d3af8=_0x53ee34['id'],_0x2827c2=this['addSuggestionData'](_0x53ee34);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3fa7fa=this['editor']['plugins']['get']('PendingActions'),_0x862d55=_0x2827c2['hasComments'],_0x3698f4=_0x2827c2['subType']?_0x2827c2['type']+':'+_0x2827c2['subType']:_0x2827c2['type'],_0x4f78d0=this['editor']['locale'],_0x5b6eaa=_0x3fa7fa['add'](o(_0x4f78d0,'PENDING_ACTION_SUGGESTION')),_0x5800b6={'id':_0x1d3af8,'type':_0x3698f4,'hasComments':_0x862d55,'data':_0x53ee34['data']||null,'originalSuggestionId':_0x53ee34['originalSuggestionId']||null,'attributes':_0x2827c2['attributes']};this['_adapter']['addSuggestion'](_0x5800b6)['then'](_0x152297=>{_0x2827c2['_saved']=!0x0,_0x3fa7fa['remove'](_0x5b6eaa),_0x152297&&_0x152297['createdAt']&&(this['_suggestions']['get'](_0x1d3af8)['createdAt']=_0x152297['createdAt']);})['catch'](_0x55e3b3=>{throw _0x3b3527('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2827c2['discard']();}),_0x2827c2['stopListening'](),this['_suggestions']['delete'](_0x2827c2['id']),this['_suggestionState']['delete'](_0x2827c2),_0x55e3b3;});}return _0x2827c2;}['_isBlockAttribute'](_0x22771f){return this['_blockAttributeKeys']['has'](_0x22771f);}['_updateSuggestionData'](_0x194d2c,_0xd8c6f7){const _0x5ded9a=this['editor']['plugins']['get']('PendingActions'),_0x135f5d=this['getSuggestion'](_0x194d2c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x135f5d['_saved']){const _0x6043d2=_0x5ded9a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x194d2c,_0xd8c6f7)['then'](()=>{_0x5ded9a['remove'](_0x6043d2);});}else _0x135f5d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x194d2c,_0xd8c6f7);});}}['_getSuggestionData'](_0x5b3bbd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1d6b47('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5b3bbd);}['_handleNewSuggestionMarker'](_0xa47823){const {id:_0x83f276,type:_0x2496c3,subType:_0x3c30b9,authorId:_0x55cc5c}=this['_splitMarkerName'](_0xa47823),_0x559554=this['_suggestions']['get'](_0x83f276)||this['_createSuggestion'](_0x2496c3,_0x3c30b9,_0x83f276,_0x55cc5c,{});switch(this['_checkSuggestionCorrectness'](_0x559554,_0x2496c3,_0x3c30b9,_0x55cc5c),this['_suggestionState']['get'](_0x559554)){case'notReady':this['_getSuggestionData'](_0x83f276)['then'](_0x434040=>{let _0x4cdc62=Promise['resolve']();_0x434040['hasComments']&&(_0x4cdc62=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x83f276})),_0x4cdc62['then'](()=>{this['addSuggestionData'](_0x434040)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x559554,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x83f276,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x559554,'ready'),this['fire']('suggestionLoaded',_0x559554);break;case'ready':this['fire']('suggestionChanged',_0x559554);}return _0x559554['addMarkerName'](_0xa47823),_0x559554;}['_refreshSuggestionsChain'](_0xd0ad48){const _0x17c61c=Array['from'](_0xd0ad48),_0x3d8199=_0x17c61c['filter'](_0x1e87af=>'attribute'==_0x1e87af['type']);this['_refreshAttributeSuggestionsChain'](_0x3d8199);const _0x2bf631=_0x17c61c['filter'](_0x4128d5=>!_0x4128d5['isMultiRange']&&'attribute'!=_0x4128d5['type']),_0x136f3a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cdb93=>!_0x1cdb93['isMultiRange']&&'attribute'!=_0x1cdb93['type']),_0x49d8cb=_0x136f3a['filter'](_0x214fdc=>!_0xd0ad48['has'](_0x214fdc)),_0xf17360=new Map(_0x136f3a['map'](_0x5c0d1e=>[_0x5c0d1e,this['_suggestionFactory']['getSuggestionCallback'](_0x5c0d1e['type'],_0x5c0d1e['subType'],'chain')])),_0x5a19a4=new Map(_0x136f3a['map'](_0x4e870f=>[_0x4e870f,_0x4e870f['getFirstRange']()])),_0x1e5777=new Set(),_0x2bdb4a=new Set();for(let _0x1f4664=0x0;_0x1f4664<_0x2bf631['length'];_0x1f4664++)_0x4c862c(_0x2bf631[_0x1f4664],_0x2bf631,_0x1f4664+0x1);for(let _0x2b2554=0x0;_0x2b2554<_0x2bf631['length'];_0x2b2554++)_0x4c862c(_0x2bf631[_0x2b2554],_0x49d8cb,0x0);const _0x12c461=new Set();for(let _0x3487f4=0x0;_0x3487f4<_0x2bf631['length'];_0x3487f4++){const _0x339137=_0x2bf631[_0x3487f4];!_0x2bdb4a['has'](_0x339137)&&_0x339137['previous']&&(_0x12c461['add'](_0x339137['previous']),_0x339137['previous']['next']===_0x339137&&(_0x339137['previous']['next']=null),_0x339137['previous']=null),!_0x1e5777['has'](_0x339137)&&_0x339137['next']&&(_0x12c461['add'](_0x339137['next']),_0x339137['next']['previous']===_0x339137&&(_0x339137['next']['previous']=null),_0x339137['next']=null);}function _0x4c862c(_0x3848d7,_0x2c23db,_0x458197){for(let _0x2c8e67=_0x458197;_0x2c8e67<_0x2c23db['length'];_0x2c8e67++){const _0x4b4002=_0x49c38d(_0x3848d7,_0x2c23db[_0x2c8e67]);_0x4b4002&&(_0x4b4002[0x0]['next']=_0x4b4002[0x1],_0x4b4002[0x1]['previous']=_0x4b4002[0x0],_0x1e5777['add'](_0x4b4002[0x0]),_0x2bdb4a['add'](_0x4b4002[0x1]));}}function _0x49c38d(_0x2b0525,_0xf0adf1){if(_0x2b0525['author']['id']!==_0xf0adf1['author']['id'])return null;const _0x126d16=_0xf17360['get'](_0x2b0525)(_0x2b0525,_0xf0adf1,_0x5a19a4['get'](_0x2b0525),_0x5a19a4['get'](_0xf0adf1));if(!_0x126d16)return null;return _0xf17360['get'](_0xf0adf1)(_0x2b0525,_0xf0adf1,_0x5a19a4['get'](_0x2b0525),_0x5a19a4['get'](_0xf0adf1))?_0x126d16[0x1]['commentThread']&&_0x126d16[0x1]['commentThread']['length']?null:_0x126d16:null;}_0x12c461['size']&&this['_refreshSuggestionsChain'](_0x12c461);}['_refreshAttributeSuggestionsChain'](_0x42080a){if(0x0==_0x42080a['length'])return;const _0x4cb07f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d3733=>'attribute'==_0x4d3733['type']&&_0x4d3733['_isDataLoaded']),_0x3e3fb4=[],_0x5cb309=new Map();for(const _0x159b84 of _0x4cb07f){const _0x39c703=_0x25c756(_0x159b84['attributes']);_0x5cb309['has'](_0x39c703)||(_0x5cb309['set'](_0x39c703,_0x3e3fb4['length']),_0x3e3fb4['push']([]));const _0x201fe5=_0x5cb309['get'](_0x39c703);_0x3e3fb4[_0x201fe5]['push'](_0x159b84);}!(function(){_0x3e3fb4['sort']((_0xbdf82,_0x3d3607)=>{const _0x5c0cb5=_0xbdf82[0x0]['createdAt'],_0x1803e3=_0x3d3607[0x0]['createdAt'];return _0x5c0cb5==_0x1803e3?_0xbdf82[0x0]['attributes']['groupId']<_0x3d3607[0x0]['attributes']['groupId']?-0x1:0x1:_0x5c0cb5<_0x1803e3?-0x1:0x1;});for(const _0x3abc4b of _0x3e3fb4)_0x3abc4b['sort']((_0x5a3fd1,_0x2fab43)=>_0x5a3fd1['id']<_0x2fab43['id']?-0x1:0x1);}());for(let _0x39d457=0x0;_0x39d457<_0x3e3fb4['length'];_0x39d457++){if(0x0==_0x3e3fb4[_0x39d457]['length'])continue;const _0x4bcf02=[];for(let _0x5a5496=_0x39d457+0x1;_0x5a5496<_0x3e3fb4['length'];_0x5a5496++)0x0!=_0x3e3fb4[_0x5a5496]['length']&&_0x5e47bb(_0x3e3fb4[_0x39d457],_0x3e3fb4[_0x5a5496])&&_0x4bcf02['push'](_0x5a5496);for(const _0x195c67 of _0x4bcf02)_0x3e3fb4[_0x39d457]=_0x3e3fb4[_0x39d457]['concat'](_0x3e3fb4[_0x195c67]),_0x3e3fb4[_0x195c67]=[];}for(const _0x569feb of _0x3e3fb4)for(let _0xec2ca3=0x0;_0xec2ca3<_0x569feb['length'];_0xec2ca3++)_0x569feb[_0xec2ca3]['next']=_0x569feb[_0xec2ca3+0x1]||null;for(const _0x309324 of _0x3e3fb4)for(let _0x9fd0d=0x0;_0x9fd0d<_0x309324['length'];_0x9fd0d++)_0x309324[_0x9fd0d]['previous']=_0x309324[_0x9fd0d-0x1]||null;function _0x5e47bb(_0x1b1854,_0x314d31){if(_0x1b1854[0x0]['attributes']['groupId']!==_0x314d31[0x0]['attributes']['groupId']&&_0x1b1854[0x0]['author']!==_0x314d31[0x0]['author'])return!0x1;if(!function(_0x13f4ba,_0x2be4b1){if(!_0x13f4ba['hasComments']&&!_0x2be4b1['hasComments'])return!0x0;if(_0x13f4ba['hasComments']&&_0x2be4b1['hasComments'])return!0x1;if(_0x13f4ba['hasComments']&&_0x2be4b1['createdAt']<_0x13f4ba['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2be4b1['hasComments']&&_0x13f4ba['createdAt']<_0x2be4b1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1b1854[0x0],_0x314d31[0x0]))return!0x1;const _0x445f11=Bt(_0x1b1854[0x0]['attributes'],'groupId'),_0x3c2c61=Bt(_0x314d31[0x0]['attributes'],'groupId');if(!_0x43d31e(_0x445f11,_0x3c2c61))return!0x1;return!!_0x1b1854['every'](_0xc2d5b4=>_0x314d31['some'](_0x3a2401=>_0xc2d5b4['getFirstRange']()['isEqual'](_0x3a2401['getFirstRange']())))&&_0x314d31['every'](_0x5cc7bc=>_0x1b1854['some'](_0x27ec42=>_0x5cc7bc['getFirstRange']()['isEqual'](_0x27ec42['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x535c95){const _0x29ca0c=Array['from'](_0x535c95),_0x330b69=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3675a1=_0x330b69['filter'](_0x40e040=>!_0x535c95['has'](_0x40e040)),_0x132716=new Map(_0x29ca0c['map'](_0x5b9071=>[_0x5b9071,this['_suggestionFactory']['getSuggestionCallback'](_0x5b9071['type'],_0x5b9071['subType'],'join')])),_0x22e766=new Map(_0x330b69['map'](_0x2abd59=>[_0x2abd59,_0x2abd59['getRanges']()]));for(let _0x148182=0x0;_0x148182<_0x29ca0c['length'];_0x148182++){if(_0x1e7e50(this,_0x29ca0c[_0x148182],_0x29ca0c,_0x148182+0x1))return!0x0;}for(let _0x2b7e2a=0x0;_0x2b7e2a<_0x29ca0c['length'];_0x2b7e2a++){if(_0x1e7e50(this,_0x29ca0c[_0x2b7e2a],_0x3675a1,0x0))return!0x0;}return!0x1;function _0x1e7e50(_0x28da35,_0x3dd2ee,_0x5dbed3,_0x226031){for(let _0x5dda4d=_0x226031;_0x5dda4d<_0x5dbed3['length'];_0x5dda4d++){const _0xb32946=_0x5dbed3[_0x5dda4d];if(_0xb32946['type']!==_0x3dd2ee['type']||_0xb32946['author']['id']!==_0x3dd2ee['author']['id']||_0xb32946['subType']!==_0x3dd2ee['subType'])continue;if(!Pt(_0x3dd2ee,_0xb32946,['groupId']))continue;if('attribute'==_0x3dd2ee['type']&&_0x3dd2ee['data']['oldValue']!=_0xb32946['data']['oldValue'])continue;if('attribute'==_0x3dd2ee['type']&&_0x28da35['_isBlockAttribute'](_0x3dd2ee['data']['key']))continue;if('formatBlock'==_0x3dd2ee['type']){const _0x29e95c=_0x28da35['editor']['model'],_0x4de2a9=_0x3dd2ee['getContainedElement']();if(_0x4de2a9&&(_0x29e95c['schema']['isObject'](_0x4de2a9)||_0x29e95c['schema']['isLimit'](_0x4de2a9)))continue;}const _0x26289b=_0x132716['get'](_0x3dd2ee),_0xd5688f=_0x22e766['get'](_0x3dd2ee),_0x3d2854=_0x22e766['get'](_0xb32946),_0x3a60a8=_0x3dd2ee['commentThread']&&_0x3dd2ee['commentThread']['length'],_0x3c10c9=_0xb32946['commentThread']&&_0xb32946['commentThread']['length'];if(!_0x3a60a8&&_0x26289b(_0x3d2854,_0xd5688f))return _0x28da35['_joinSuggestions'](_0xb32946,_0x3dd2ee),_0x22e766['delete'](_0x3dd2ee),!0x0;if(!_0x3c10c9&&_0x26289b(_0xd5688f,_0x3d2854))return _0x28da35['_joinSuggestions'](_0x3dd2ee,_0xb32946),_0x22e766['delete'](_0xb32946),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8be172,_0x50eafc){if(_0x8be172['isMultiRange']){for(const _0x9d662f of _0x50eafc['getRanges']())_0x8be172['addRange'](_0x9d662f);}else{const _0x31b2b5=_0x50eafc['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8be172,this['_model']['createRange'](_0x8be172['getFirstRange']()['start'],_0x31b2b5));}_0x50eafc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x9ded8a,_0x35d728){const _0x246b8a=_0x9ded8a['startsWith']('format')||_0x9ded8a['startsWith']('attribute')?'FORMATTING':_0x9ded8a['toUpperCase']();return o(this['editor']['locale'],_0x35d728+'_'+_0x246b8a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x3a0de3=this['editor'];if(!_0x3a0de3['ui'])return;const {ariaLiveAnnouncer:_0x12b455}=_0x3a0de3['ui'];_0x2033ad(this['_model'],({left:_0x3e65fc,entered:_0x4eff30})=>{for(const _0x46a495 of _0x3e65fc){const {group:_0x5512e3,type:_0x5494d4}=this['_splitMarkerName'](_0x46a495['name']);if('suggestion'===_0x5512e3){_0x12b455['announce'](this['_getMarkerAnnouncementText'](_0x5494d4,'LEAVE'));break;}}for(const _0x2e4176 of _0x4eff30){const {group:_0x4cd8db,type:_0x12529c}=this['_splitMarkerName'](_0x2e4176['name']);if('suggestion'===_0x4cd8db){_0x12b455['announce'](this['_getMarkerAnnouncementText'](_0x12529c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x47ca96){if(this['_recordAttributeSuggestions'])return!0x1;const _0x577efb=this['editor'],_0x14a2a2=_0x577efb['model']['document']['differ']['getChanges']();if(0x0==_0x14a2a2['length'])return!0x1;const _0x46ec4c=[],_0x59e537=_0x14a2a2['filter'](_0x1e16a5=>'attribute'==_0x1e16a5['type']),_0x1e0060=_0x14a2a2['filter'](_0x4a146a=>'insert'==_0x4a146a['type']&&'$text'!=_0x4a146a['name']),_0x5e6b72=_0x14a2a2['filter'](_0x232721=>'remove'==_0x232721['type']&&'$text'!=_0x232721['name']);for(const _0xc7fe39 of _0x59e537)_0x46ec4c['push']({'key':_0xc7fe39['attributeKey'],'newValue':_0xc7fe39['attributeNewValue'],'oldValue':_0xc7fe39['attributeOldValue'],'range':Ot(_0xc7fe39['range'],_0x577efb['model'])});for(const _0x45110e of _0x1e0060){const _0x2e4d19=_0x5e6b72['find'](_0x4e3f17=>_0x4e3f17['position']['isEqual'](_0x45110e['position']));_0x2e4d19&&_0x46ec4c['push']({'key':m,'newValue':_0x45110e['name'],'oldValue':_0x2e4d19['name'],'range':_0x577efb['model']['createRangeOn'](_0x45110e['position']['nodeAfter'])});}return 0x0!=_0x46ec4c['length']&&this['_reduceExistingSuggestions'](_0x47ca96,_0x46ec4c);}['_processAttributeSuggestions'](_0x3f9307){let _0x1fbdd1=!0x1;const _0x629721=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f9202=>_0x1f9202['data']['newRange']&&_0x1f9202['name']['startsWith']('suggestion:attribute:'));for(const _0x4c7633 of _0x629721){const {subType:_0x2f8abc,id:_0x5a9ece}=this['_splitMarkerName'](_0x4c7633['name']),_0x2e9ca0=_0x2f8abc['split']('|')[0x0];for(const _0x516d01 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x516d01['id']!=_0x5a9ece&&'attribute'==_0x516d01['type']&&_0x516d01['data']&&_0x516d01['data']['key']==_0x2e9ca0&&_0x516d01['getFirstRange']()['isIntersecting'](_0x4c7633['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x516d01,_0x4c7633['data']['newRange'],_0x3f9307),_0x1fbdd1=!0x0);}return _0x1fbdd1;}['_recordAttributeChanges'](_0x16bb9f){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x16bb9f();}['_isRegisteredAttribute'](_0x109234){const _0x7647a7=this['_isBlockAttribute'](_0x109234),_0x4daf87=this['_inlineAttributeKeys']['has'](_0x109234);return _0x7647a7||_0x4daf87;}['_reduceExistingSuggestions'](_0x4c8797,_0xa4df55){if(0x0==_0xa4df55['length'])return!0x1;let _0x37bdb9=!0x1;for(const _0x54711c of _0xa4df55){const _0x5b84a5=this['_findSuggestions'](_0x54711c['range'],'attribute')['filter'](_0x547b81=>!_0x547b81['meta']['isNextTo'])['map'](_0x340b2b=>_0x340b2b['suggestion']),_0x24f7fe=_0x25c756({'newValue':_0x54711c['newValue']});_0x5b84a5['filter'](_0x5c1112=>{const [_0x21d17b,_0x2b0e2d]=_0x5c1112['subType']['split']('|');return _0x21d17b==_0x54711c['key']&&_0x2b0e2d!=_0x24f7fe;})['forEach'](_0x5c4fc2=>{this['_reduceSuggestionAttributeRange'](_0x5c4fc2,_0x54711c['range'],_0x4c8797),_0x37bdb9=!0x0;});}return _0x37bdb9;}['_reduceSuggestionAttributeRange'](_0x347dfe,_0xe21d8f,_0x5e539d){const _0x101c3e=_0x347dfe['getFirstRange']()['getDifference'](_0xe21d8f);0x0!==_0x101c3e['length']?0x1!==_0x101c3e['length']?this['_breakSuggestionMarker'](_0x347dfe,_0xe21d8f['start'],_0xe21d8f['end']):this['_setSuggestionRange'](_0x347dfe,_0x101c3e[0x0]):_0x5e539d['removeMarker'](_0x347dfe['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x563ff8){this['_editor']=_0x563ff8,this['_model']=_0x563ff8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x226451,_0x1aadbc,_0x37136f,_0x1d39bd,_0x43aef9,_0x2d2b07){return new u(this['_model'],{'type':_0x226451,'subType':_0x1aadbc,'id':_0x37136f,'author':_0x1d39bd,'creator':_0x1d39bd,'attributes':_0x43aef9,'onAttributesChange':_0x2d2b07,'onAccept':(..._0xe84ff7)=>this['getSuggestionCallback'](_0x226451,_0x1aadbc,'accept')(..._0xe84ff7),'onDiscard':(..._0x301904)=>this['getSuggestionCallback'](_0x226451,_0x1aadbc,'discard')(..._0x301904)});}['registerCustomCallback'](_0x52a2c1,_0x2d414e,_0x31f6a1,_0x49277b){const _0x3ca476=_0x52a2c1+':'+_0x2d414e+':'+_0x31f6a1;this['_customCallbacks']['set'](_0x3ca476,_0x49277b);}['getSuggestionCallback'](_0x371784,_0x2bf0a9,_0x2c21d8){const _0x3e2012=_0x371784+':'+_0x2bf0a9+':'+_0x2c21d8;return this['_customCallbacks']['get'](_0x3e2012)||this['_defaultCallbacks']['get'](_0x371784+':'+_0x2c21d8);}['_registerDefaultCallbacks'](){const _0x1bbfdb=()=>!0x1,_0x3d59c6=_0x161318=>{_0x161318['sort']((_0x2adc6b,_0x107e0b)=>_0x2adc6b['start']['isBefore'](_0x107e0b['start'])?0x1:-0x1),this['_model']['change'](_0xdb64e3=>{for(const _0x2f7686 of _0x161318){let _0x4edba8;_0x4edba8=_0x2f7686['end']['isAtEnd']&&_0x2f7686['end']['parent']==_0x2f7686['start']['nodeAfter']?_0xdb64e3['createSelection'](_0x2f7686['start']['nodeAfter'],'on'):_0xdb64e3['createSelection'](_0x2f7686),this['_model']['deleteContent'](_0x4edba8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x250878=(_0x796dd7,_0x594004)=>{_0x594004&&this['_model']['change'](_0x582423=>{const {commandName:_0x5ac581,commandParams:_0x287b60=[]}=_0x594004,_0xe08bfc=_0x796dd7['map'](_0x41f9f8=>(Tt(_0x41f9f8)&&(_0x41f9f8=this['_model']['createRange'](_0x41f9f8['end'])),_0x41f9f8))['filter'](_0x3abd41=>'$graveyard'!==_0x3abd41['root']['rootName']);if(_0xe08bfc['length']<0x1)return;const _0x12681f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2aad36=>_0x2028c8['fromRange'](_0x2aad36));_0x582423['setSelection'](_0xe08bfc);for(const _0x5bbdac of this['_editor']['commands']['commands']())_0x5bbdac['refresh']();_0x287b60['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5ac581,..._0x287b60);const _0x133d59=_0x12681f['filter'](_0x245cc0=>'$graveyard'!=_0x245cc0['root']['rootName']);_0x133d59['length']>0x0&&_0x582423['setSelection'](_0x133d59);for(const _0xc5631 of _0x12681f)_0xc5631['detach']();});},_0x3715e1=(_0x4f67ba,_0x5d60a9)=>0x1==_0x4f67ba['length']&&0x1==_0x5d60a9['length']&&_0x4f67ba[0x0]['end']['isEqual'](_0x5d60a9[0x0]['start']),_0x325676=(_0xe2bcd2,_0x93fba0,_0x2364e7,_0x58c41d)=>Gt(_0xe2bcd2,_0x93fba0,_0x2364e7,_0x58c41d,this['_model'])?[_0xe2bcd2,_0x93fba0]:Gt(_0x93fba0,_0xe2bcd2,_0x58c41d,_0x2364e7,this['_model'])?[_0x93fba0,_0xe2bcd2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1bbfdb),this['_defaultCallbacks']['set']('insertion:discard',_0x3d59c6),this['_defaultCallbacks']['set']('insertion:join',_0x3715e1),this['_defaultCallbacks']['set']('insertion:chain',_0x325676),this['_defaultCallbacks']['set']('deletion:accept',_0x3d59c6),this['_defaultCallbacks']['set']('deletion:discard',_0x1bbfdb),this['_defaultCallbacks']['set']('deletion:join',_0x3715e1),this['_defaultCallbacks']['set']('deletion:chain',_0x325676),this['_defaultCallbacks']['set']('formatInline:accept',_0x250878),this['_defaultCallbacks']['set']('formatInline:discard',_0x1bbfdb),this['_defaultCallbacks']['set']('formatInline:join',_0x3715e1),this['_defaultCallbacks']['set']('formatInline:chain',_0x1bbfdb),this['_defaultCallbacks']['set']('formatBlock:accept',_0x250878),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1bbfdb),this['_defaultCallbacks']['set']('formatBlock:join',_0x3715e1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1bbfdb),this['_defaultCallbacks']['set']('attribute:accept',_0x1bbfdb),this['_defaultCallbacks']['set']('attribute:discard',(_0x49bf01,_0x144bf2)=>{if(!_0x144bf2)return;const _0x27dc2c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x10bc81=>{if(_0x144bf2['key']==m)for(const _0x1b6c97 of _0x49bf01){const _0x49c92c=_0x1b6c97['start']['nodeAfter'],_0x3bd8b7=_0x144bf2['oldValue'];_0x10bc81['rename'](_0x49c92c,_0x3bd8b7);}else{if(_0x27dc2c['_isBlockAttribute'](_0x144bf2['key'])){for(const _0xc6aa93 of _0x49bf01)void 0x0!==_0x144bf2['oldValue']?_0x10bc81['setAttribute'](_0x144bf2['key'],_0x144bf2['oldValue'],_0xc6aa93['start']['nodeAfter']):_0x10bc81['removeAttribute'](_0x144bf2['key'],_0xc6aa93['start']['nodeAfter']);}else{for(const _0x549cfe of _0x49bf01)_0x144bf2['oldValue']?_0x10bc81['setAttribute'](_0x144bf2['key'],_0x144bf2['oldValue'],_0x549cfe):_0x10bc81['removeAttribute'](_0x144bf2['key'],_0x549cfe);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3715e1);}}function Rt(_0x31aab9,_0xf35d4a,_0x40dfcf){for(const _0x302bd5 of _0xf35d4a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x302bd5['root']==_0x302bd5)return!0x1;if(!_0x40dfcf['containsItem'](_0x302bd5))return!0x1;if(_0x31aab9['isObject'](_0x302bd5)||_0x31aab9['isLimit'](_0x302bd5))return!0x0;}return!0x1;}function Tt(_0x1a7a64){return _0x1a7a64['end']['parent']==_0x1a7a64['start']['nodeAfter']&&_0x1a7a64['end']['isAtStart'];}function Et(_0x6c4b74,_0x5462ed,_0x281a4e,_0x5e18a4){const _0x8efdf8=_0x5876f6=>!_0x5876f6['item']['is']('$textProxy')&&!_0x5e18a4['isObject'](_0x5876f6['item']),_0x270733=_0x6c4b74['start']['getLastMatchingPosition'](_0x8efdf8),_0x34b9ae=_0x6c4b74['end']['getLastMatchingPosition'](_0x8efdf8,{'direction':'backward'});return(!_0x6c4b74['start']['isEqual'](_0x270733)||!_0x6c4b74['end']['isEqual'](_0x34b9ae))&&(_0x270733['isBefore'](_0x34b9ae)?_0x281a4e['updateMarker'](_0x5462ed,{'range':_0x281a4e['createRange'](_0x270733,_0x34b9ae)}):_0x281a4e['removeMarker'](_0x5462ed),!0x0);}function Vt(_0x19682f){return _0x25c756(_0x19682f);}function Ut(_0xf6bf0b){const _0x306b7c=_0xf6bf0b['start']['nodeAfter'];return _0x306b7c&&_0x306b7c['is']('element');}function Ot(_0x1a84a6,_0x54977e){return null==_0x1a84a6['end']['nodeBefore']&&_0x1a84a6['end']['parent']==_0x1a84a6['start']['nodeAfter']?Ft(_0x1a84a6['start']['nodeAfter'],_0x54977e):_0x1a84a6;}function Ft(_0x44f6b4,_0x3fbe0b){const _0xf3558b=_0x3fbe0b['schema']['isObject'](_0x44f6b4)||_0x3fbe0b['schema']['isSelectable'](_0x44f6b4);return _0x3fbe0b['createRange'](_0x3fbe0b['createPositionAt'](_0x44f6b4,'before'),_0xf3558b?_0x3fbe0b['createPositionAfter'](_0x44f6b4):_0x3fbe0b['createPositionAt'](_0x44f6b4,'end'));}function Gt(_0x54cb66,_0x53cc18,_0x29b233,_0x3e6910,_0x27fb93){if(!Pt(_0x54cb66,_0x53cc18))return!0x1;if(_0x29b233['end']['isEqual'](_0x3e6910['start']))return!0x0;if(_0x54cb66['type']!=_0x53cc18['type'])return!0x1;if(!_0x29b233['end']['isTouching'](_0x3e6910['start']))return!0x1;const _0x3eeab6=_0x27fb93['createRange'](_0x29b233['end'],_0x3e6910['start'])['getWalker']();for(const _0x1a6beb of _0x3eeab6)if(['elementStart','elementEnd']['includes'](_0x1a6beb['type'])&&_0x27fb93['schema']['isLimit'](_0x1a6beb['item']))return!0x1;return!0x0;}function Pt(_0x9e07f8,_0x6ad84f,_0x2e5645=[]){return!(!_0x9e07f8['_isDataLoaded']||!_0x6ad84f['_isDataLoaded'])&&_0x43d31e(Bt(_0x9e07f8['attributes'],_0x2e5645),Bt(_0x6ad84f['attributes'],_0x2e5645));}function Lt(_0x116c95,_0x9c4bdb){const _0x4c8f12=Ht(_0x116c95['attributes']),_0x864eb8=Ht(_0x9c4bdb);if(!_0x116c95['_isDataLoaded'])return!0x1;for(const _0x3a4860 of Object['keys'](_0x864eb8))if(!_0x43d31e(_0x4c8f12[_0x3a4860],_0x864eb8[_0x3a4860]))return!0x1;return!0x0;}function Ht(_0x396533){const _0x27fac8=Object['assign']({},_0x396533);return delete _0x27fac8['skipNestingCheck'],delete _0x27fac8['tablePasteChainId'],_0x27fac8;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x294ea9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x43acfc,_0x307a94,_0x176700,_0x4cc7c5){super(),this['model']=_0x307a94,this['view']=_0x176700,this['commentThreadController']=_0x4cc7c5,this['_editor']=_0x43acfc,this['_acceptCommand']=_0x43acfc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x43acfc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x10c273,_0x181286)=>_0x10c273||_0x181286),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x204d4d=>_0x204d4d&&this['_editor']['model']['canEditAt'](_0x307a94['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1924cc=>_0x1924cc&&this['_editor']['model']['canEditAt'](_0x307a94['getRanges']())),this['_pendingAction']=null,_0x176700['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x176700,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x176700,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x176700,'change:isDirty',()=>{_0x176700['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 _0x1dd43e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1dd43e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x3d4348{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x655def,_0x12f32b,_0x451d52,_0x4b5485){super(_0x655def),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x12f32b['authoredAt']),this['bind']('authoredAt')['to'](_0x12f32b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x12f32b,this['_localUser']=_0x451d52,this['_config']=_0x4b5485,_0x4b5485['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:_0x397608}=this['_config'];this['commentsListView']=new _0x397608(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',_0x2d6c57=>_0x2d6c57+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2449f7,_0x44eca6)=>_0x2449f7||!!_0x44eca6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x12bbb3}=this['_config'],_0x500b0d=new _0x12bbb3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x29480e=_0x500b0d['commentInputView'];return _0x500b0d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x29480e,'value',(_0x1e22ec,_0x4404fe,_0x5a3b2a)=>!!_0x5a3b2a||_0x1e22ec&&!_0x4404fe),_0x29480e['on']('submit',(_0x49d329,_0x13e150)=>{this['fire']('addComment',_0x13e150),_0x29480e['editor']['setData']('');}),_0x29480e['on']('cancel',()=>this['focus']()),_0x29480e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x500b0d;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x3b3925,_0x53bd77,_0x2e9c7e,_0x1fc9d3){super(_0x3b3925,_0x53bd77,_0x2e9c7e,_0x1fc9d3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x248413=>_0x248413&&_0x248413[0x0]?_0x248413[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1b446f,_0x5e050c)=>{let _0xfde70c='';for(const _0x380b96 of _0x1b446f)_0xfde70c+='<p>'+ds(_0x380b96['content'],_0x380b96['color'])+'</p>';return _0x5e050c?_0xfde70c:_0x41dbaf(_0xfde70c,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x3b3925,'Accept\x20suggestion'),_0x49cdbf['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x3b3925,'Discard\x20suggestion'),_0x49cdbf['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x36e838(_0x3b3925,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3f9993=this['bindTemplate'],_0x2f1ea7=[{'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':_0x3f9993['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3f9993['to']('authoredAt',_0x36567d=>this['_config']['formatDateTime'](_0x36567d))}]}]},{'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']&&_0x2f1ea7['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4bc6e4={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3f9993['if']('isActive','ck-suggestion-wrapper--active'),_0x3f9993['to']('type',_0x51dd0e=>'ck-suggestion-'+_0x51dd0e),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':_0x2f1ea7}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4bc6e4['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)),_0x4bc6e4;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4533c7,_0x2f6b45,_0x556b79)=>{this['_descriptionElement']['innerHTML']=_0x556b79;});}['_createButton'](_0x5e5a0f,_0x5c47f6,_0x2357bf,_0x2ad15b,_0x300233){const _0x2a0604=new _0x54f3a5(this['locale']);return _0x2a0604['set']({'label':_0x5e5a0f,'icon':_0x5c47f6,'tooltip':!0x0,'tooltipPosition':_0x300233}),_0x2a0604['extendTemplate']({'attributes':{'class':_0x2357bf}}),_0x2a0604['on']('execute',()=>{this['fire'](_0x2ad15b,this['_model']['id']);}),_0x2a0604;}['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(_0x3af5f,_0x3a7b69){let _0x33a846='';return _0x33a846+=_0x3af5f['split']('*')['map']((_0x19b6e9,_0x1e8616)=>_0x1e8616%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x19b6e9)+'</span>':us(_0x19b6e9))['join'](''),_0x3a7b69&&(_0x33a846+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3a7b69['value']+'\x22\x20title=\x22'+_0x3a7b69['title']+'\x22></span>'),_0x33a846;}function us(_0x1eace6){const _0x4ab6ed=document['createElement']('span');return _0x4ab6ed['innerText']=_0x1eace6,_0x4ab6ed['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x578bbc{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4e9db3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x49a223){super(_0x49a223),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x364dfe=this['editor']['config'];_0x364dfe['define']('trackChanges.SuggestionThreadView',ne),_0x364dfe['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x364dfe['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x91c1d3,_0x4ee410){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x319094,_0x214627]of this['_handleControllerBuffer']){const _0x141531=this['_suggestionToController']['has'](_0x319094);_0x141531||_0x214627?_0x141531&&_0x214627&&this['_destroyController'](_0x319094):this['_initializeController'](_0x319094);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x91c1d3,_0x4ee410);}['init'](){const _0x252e1f=this['editor'],_0x18b689=_0x252e1f['plugins']['get']('TrackChangesEditing'),_0x4a57df=_0x252e1f['plugins']['get']('Annotations'),_0x32dbfa=_0x252e1f['plugins']['get']('EditorAnnotations'),_0x49b43c=_0x252e1f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x32dbfa['addSourceCollector'](()=>{const _0x1b9eca=[];for(const [_0x305bb1,_0x19af86]of Array['from'](this['_suggestionToController'])){const _0x56daa0=_0x305bb1['getAllAdjacentSuggestions'](),_0x5b90e7=[];for(const _0x2111d1 of _0x56daa0){if(!_0x2111d1['isInContent'])continue;if(_0x2111d1['isMultiRange']){_0x5b90e7['push'](..._0x2111d1['getRanges']());continue;}const _0x5db475=_0x2111d1['getFirstRange']();if(_0x5b90e7['length']>0x0){const _0x22fd3b=_0x5b90e7[0x0]['getJoined'](_0x5db475);if(_0x22fd3b){_0x5b90e7[0x0]=_0x22fd3b;continue;}}_0x5b90e7['push'](_0x5db475);}_0x1b9eca['push']([_0x19af86['view'],_0x5b90e7]);}return _0x1b9eca;}),this['listenTo'](_0x18b689,'suggestionLoaded',(_0x3e6e99,_0x162cdd)=>{this['listenTo'](_0x162cdd,'change:previous',(_0x520855,_0x323fd3,_0x497544,_0x24e98c)=>{_0x162cdd['isInContent']&&(null==_0x497544?(this['_updateController'](_0x24e98c['head']),this['_handleSuggestionControllerDelayed'](_0x162cdd,!0x1)):(this['_updateController'](_0x497544['head']),null==_0x24e98c&&this['_handleSuggestionControllerDelayed'](_0x162cdd,!0x0)));}),null!==_0x162cdd['previous']?this['_updateController'](_0x162cdd['head']):this['_handleSuggestionControllerDelayed'](_0x162cdd,!0x1);}),this['listenTo'](_0x18b689,'suggestionUnloaded',(_0x199d71,_0x173676,_0x4160c7)=>{this['stopListening'](_0x173676,'change:previous'),this['_handleControllerBuffer']['delete'](_0x173676),this['_suggestionToController']['has'](_0x173676)&&this['_destroyController'](_0x173676),_0x4160c7&&this['_updateController'](_0x4160c7['head']);}),this['listenTo'](_0x18b689,'suggestionChanged',(_0x1db51c,_0x2e3a0b)=>{this['_updateController'](_0x2e3a0b);}),this['listenTo'](_0x4a57df,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x49b43c,'addComment',(_0x186f50,{threadId:_0x55cc96,isFromAdapter:_0x4c7693})=>{if(_0x4c7693||!_0x18b689['hasSuggestion'](_0x55cc96))return;const _0x505f46=_0x18b689['getSuggestion'](_0x55cc96);this['_suggestionToController']['get'](_0x505f46)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1c5615=this['editor']['plugins']['get']('Annotations'),_0x343648=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4942e3=Array['from'](_0x1c5615['activeAnnotations'],_0x537545=>_0x537545['innerView'])['filter'](_0x1d5558=>this['_viewToController']['has'](_0x1d5558)),_0x51be8e=[];for(const _0x16e3b7 of _0x4942e3){const _0x369982=this['_viewToController']['get'](_0x16e3b7)['model']['getAllAdjacentSuggestions']();_0x51be8e['push'](..._0x369982['reduce']((_0x4a8539,_0x29021b)=>[..._0x4a8539,..._0x29021b['getMarkerNames']()],[]));}_0x343648['activeMarkers']=_0x51be8e;}['_addUIComponentsToFactory'](){const _0x2d3c13=this['editor'],_0x225bda=_0x2d3c13['locale'],_0x4a0465=o(_0x225bda,'Track\x20changes'),_0x584cbb=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x4a0465,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x225bda,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x225bda,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x225bda,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x225bda,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x41d3a3 of _0x584cbb)if(ae(_0x41d3a3)){const _0xefac44=_0x2d3c13['commands']['get'](_0x41d3a3['model']['commandName']);_0x41d3a3['model']['bind']('isOn','isEnabled')['to'](_0xefac44,'value','isEnabled');}_0x2d3c13['ui']['componentFactory']['add']('trackChanges',_0x43b6ec=>this['_createToolbarButton'](_0x43b6ec,_0x584cbb,_0x4a0465)),_0x2d3c13['ui']['componentFactory']['add']('menuBar:trackChanges',_0x514353=>this['_createMenuBarMenu'](_0x514353,_0x584cbb,_0x4a0465));}['_createToolbarButton'](_0x505425,_0x2a2675,_0x3d442d){const _0x4b3f34=zt(_0x505425,Zt),_0x299212=this['editor']['commands']['get']('trackChanges');_0x4b3f34['buttonView']['set']({'tooltip':_0x3d442d,'label':_0x3d442d,'icon':ie}),_0x4b3f34['buttonView']['bind']('isOn')['to'](_0x299212,'value'),_0x4b3f34['buttonView']['on']('execute',()=>{_0x299212['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x4b3f34,_0x2a2675,{'role':'menu'});const _0x35798e=[];for(const _0x27c9e3 of _0x2a2675)ae(_0x27c9e3)&&_0x35798e['push'](this['editor']['commands']['get'](_0x27c9e3['model']['commandName']));const _0x489c13=_0x4b3f34['buttonView'];return _0x489c13['actionView']['unbind']('isEnabled'),_0x489c13['arrowView']['unbind']('isEnabled'),_0x489c13['actionView']['bind']('isEnabled')['to'](_0x299212,'isEnabled'),_0x489c13['arrowView']['bind']('isEnabled')['toMany'](_0x35798e,'isEnabled',(..._0xd8ce26)=>_0xd8ce26['some'](_0x4160be=>_0x4160be)),_0x4b3f34['on']('execute',_0x1749cd=>{this['editor']['execute'](_0x1749cd['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4b3f34;}['_createMenuBarMenu'](_0x5044ac,_0x22fda1,_0x3b0dc0){const _0x5631c4=new Kt(_0x5044ac),_0x215443=this['editor']['commands']['get']('trackChanges');_0x5631c4['buttonView']['set']({'label':_0x3b0dc0,'icon':ie});const _0x59501f=new Qt(_0x5044ac);for(const _0x60e502 of _0x22fda1){if('separator'==_0x60e502['type']){_0x59501f['items']['add'](new Jt(_0x5044ac));continue;}const _0x1949f1=new Xt(_0x5044ac,_0x5631c4),_0x5c1a30=new Yt(_0x5044ac),_0x4e2c34=_0x60e502['model'];_0x5c1a30['bind'](...Object['keys'](_0x4e2c34))['to'](_0x4e2c34),_0x5c1a30['delegate']('execute')['to'](_0x5631c4),_0x5c1a30['on']('execute',()=>{this['editor']['execute'](_0x4e2c34['commandName']),this['editor']['editing']['view']['focus']();}),_0x1949f1['children']['add'](_0x5c1a30),_0x59501f['items']['add'](_0x1949f1);}return _0x5631c4['bind']('isEnabled')['to'](_0x215443,'isEnabled'),_0x5631c4['panelView']['children']['add'](_0x59501f),_0x5631c4;}['_initializeController'](_0x33188c){const _0x5e7aaf=this['editor'],_0x441d4d=_0x5e7aaf['config'],_0x4a6140=_0x5e7aaf['plugins']['get']('Annotations'),_0x5457d2=_0x5e7aaf['plugins']['get']('CommentsRepository'),_0x2d3954=_0x5e7aaf['plugins']['get']('EditorAnnotations'),_0x5e593e=_0x5e7aaf['plugins']['get'](_0x4e9db3)['me'],_0x81bf26=_0x441d4d['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x240692,CommentThreadInputView:_0x1fcf14}=_0x5e7aaf['plugins']['get']('CommentsUI');let _0x877269,_0x5626d7;this['_annotationViews']['has'](_0x33188c['id'])?(_0x5626d7=this['_annotationViews']['get'](_0x33188c['id']),_0x877269=_0x5626d7['mainView']):(_0x877269=new _0x81bf26(_0x5e7aaf['locale'],_0x33188c,_0x5e593e,{'disableComments':this['_disableComments'],'editorConfig':_0x441d4d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x441d4d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x441d4d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x441d4d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x21937f(_0x441d4d['get']('locale')),'CommentView':_0x441d4d['get']('comments')['CommentView'],'CommentsListView':_0x240692,'CommentThreadInputView':_0x1fcf14}),_0x877269['acceptButton']['on']('execute',()=>{_0x5e7aaf['editing']['view']['focus']();}),_0x877269['discardButton']['on']('execute',()=>{_0x5e7aaf['editing']['view']['focus']();}),_0x5626d7=_0x4a6140['createAnnotationView'](this['editor']['locale'],_0x877269),_0x5626d7['bind']('isDirty')['to'](_0x877269,'isDirty'),_0x5626d7['bind']('length')['to'](_0x877269),_0x5626d7['bind']('type')['to'](_0x877269,'type',_0x3ee60d=>'suggestion-'+_0x3ee60d),this['_annotationViews']['set'](_0x33188c['id'],_0x5626d7));const _0x26fde1=_0x5457d2['createCommentThreadController'](_0x33188c['commentThread'],_0x877269),_0x3c49a2=new oe(_0x5e7aaf,_0x33188c,_0x877269,_0x26fde1),_0x11cd9f=_0x33188c['getAllAdjacentSuggestions']()['filter'](_0x1fc116=>_0x1fc116['isInContent']);_0x877269['descriptionParts']=_0x5e7aaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x11cd9f),this['_suggestionToController']['set'](_0x33188c,_0x3c49a2),this['_viewToController']['set'](_0x877269,_0x3c49a2);const _0x388456=_0x4a6140['createAnnotation']({'view':_0x5626d7,'target':()=>{const _0x5b3e04=[],_0x5d1330=_0x33188c['getAllAdjacentSuggestions']()['filter'](_0xe7312f=>_0xe7312f['isInContent']);for(const _0x3c0723 of _0x5d1330)_0x5b3e04['push'](..._0x3c0723['getMarkers']());return _0x785c86(_0x5e7aaf['editing'],_0x5b3e04);},'type':()=>'suggestion-'+_0x3c49a2['view']['type']});_0x5457d2['_bindAnnotationToEditors'](_0x877269,_0x388456),_0x4a6140['add'](_0x388456),_0x2d3954['registerAnnotation'](_0x388456);}['_destroyController'](_0x4d63b0){const _0x3a85cd=this['editor']['plugins']['get']('CommentsRepository'),_0x325504=this['editor']['plugins']['get']('Annotations'),_0x3eb042=this['_suggestionToController']['get'](_0x4d63b0),_0x4e8848=_0x3eb042['view'],_0x3bb16a=_0x325504['getByInnerView'](_0x4e8848);_0x3a85cd['_unbindEditors'](_0x4e8848),_0x3bb16a&&_0x325504['remove'](_0x3bb16a),this['_suggestionToController']['delete'](_0x4d63b0),this['_viewToController']['delete'](_0x4e8848),_0x3eb042['destroy']();}['_updateController'](_0x5c12ff){if(!_0x5c12ff['isInContent']||!this['_suggestionToController']['has'](_0x5c12ff))return;const _0x3be508=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bc0c5=this['_suggestionToController']['get'](_0x5c12ff),_0x8133cb=_0x5c12ff['getAllAdjacentSuggestions']();_0x5bc0c5['view']['descriptionParts']=_0x3be508['descriptionFactory']['getDescriptions'](_0x8133cb);}['destroy'](){for(const _0x5e3495 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5e3495);for(const _0x360386 of this['_annotationViews']['values']())_0x360386['mainView']['destroy']();super['destroy']();}}function ae(_0x15de6e){return'model'in _0x15de6e;}class k extends _0x578bbc{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x281667){this['editor']['plugins']['get'](p)['adapter']=_0x281667;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2dab21){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2dab21);}['getSuggestions']({skipNotAttached:_0x4cd663=!0x1,toJSON:_0x2447dd=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4cd663,'toJSON':_0x2447dd});}['getSuggestion'](_0x52f90a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x52f90a);}}const T=['Pagination'];class P extends _0x578bbc{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x34395a=this['editor'];if(_0x34395a['config']['define']('trackChangesData.editorCreator',_0x15583c=>{const _0x1c3d93=_0x34395a['model']['document']['getRootNames']()['reduce']((_0x9866d2,_0x43e852)=>(_0x9866d2[_0x43e852]='',_0x9866d2),{});return _0x34395a['constructor']['create'](_0x1c3d93,_0x15583c);}),'function'!=typeof _0x34395a['config']['get']('trackChangesData')['editorCreator'])throw new _0x1d6b47('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x27e3ff){return N(this['editor'],!0x0,_0x27e3ff);}['getDataWithDiscardedSuggestions'](_0x31a10d){return N(this['editor'],!0x1,_0x31a10d);}}class D extends _0x578bbc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x38acc4){super(_0x38acc4),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(_0x1a2224){return void 0x0!==_0x1a2224['getRootsAttributes'];}async function N(_0x23e0db,_0x33e41e,_0x5c5627){const _0x3b5c05=_0x9ac77(_0x23e0db,T);_0x3b5c05['plugins']['push'](p,D),_0x3b5c05['rootsAttributes']=v(_0x23e0db)?_0x23e0db['getRootsAttributes']():void 0x0;const _0x2e55db=document['createDocumentFragment'](),_0x265b87=_0x23e0db['config']['get']('trackChangesData')['editorCreator'],_0x3b3712=await _0x265b87(_0x3b5c05,()=>function(_0x46cebd){const _0x54c14d=document['createElement']('div');return _0x46cebd['appendChild'](_0x54c14d),_0x54c14d;}(_0x2e55db));!function(_0x47eafb,_0x26a040){const _0x2a5d9e=_0x47eafb['model']['document']['getRootNames']()['reduce']((_0x499e78,_0x22b899)=>(_0x499e78[_0x22b899]=_0x47eafb['data']['get']({'rootName':_0x22b899}),_0x499e78),{}),_0x42b369=_0x47eafb['plugins']['get']('Users')['users']['map'](_0x53f788=>({'id':_0x53f788['id'],'name':_0x53f788['name']})),_0x10dcf6=_0x47eafb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x12ebc9=_0x47eafb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3076d0=_0x26a040['plugins']['get']('Users'),_0x57c12c=_0x26a040['plugins']['get']('TrackChangesEditing'),_0x35b28b=_0x26a040['plugins']['get']('CommentsRepository');for(const _0x379589 of _0x42b369)_0x3076d0['getUser'](_0x379589['id'])||_0x3076d0['addUser'](_0x379589);_0x3076d0['me']||_0x3076d0['useAnonymousUser']();for(const _0x5e96ff of _0x10dcf6)_0x57c12c['addSuggestionData'](_0x5e96ff);for(const _0x4ebcee of _0x12ebc9)_0x35b28b['addCommentThread'](_0x4ebcee);_0x26a040['data']['set'](_0x2a5d9e);}(_0x23e0db,_0x3b3712),_0x3b3712['execute'](_0x33e41e?'acceptAllSuggestions':'discardAllSuggestions');const _0x5db4ca=v(_0x3b3712)?_0x3b3712['getFullData'](_0x5c5627):_0x3b3712['data']['get'](_0x5c5627);return await _0x3b3712['destroy'](),_0x5db4ca;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|