@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240710.0 → 0.0.0-nightly-20240711.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
|
-
_0x51fa88(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5e15ed,_0x40b7a9){super(),this['id']=_0x40b7a9['id'],this['type']=_0x40b7a9['type'],this['subType']=_0x40b7a9['subType']||null,this['author']=_0x40b7a9['author'],this['creator']=_0x40b7a9['creator']||_0x40b7a9['author'],this['isExternal']=Boolean(_0x40b7a9['attributes']&&_0x40b7a9['attributes']['@external']),this['data']=null,this['_model']=_0x5e15ed,this['_onAccept']=_0x40b7a9['onAccept'],this['_onDiscard']=_0x40b7a9['onDiscard'],this['_onAttributesChange']=_0x40b7a9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x40b7a9['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 _0x2b6a26=this;for(;_0x2b6a26['previous'];)_0x2b6a26=_0x2b6a26['previous'];return _0x2b6a26;}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'](_0x4b2f33){this['_markerNames']['add'](_0x4b2f33);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x377dda=>this['_model']['markers']['get'](_0x377dda))['filter'](_0x5ddd26=>_0x5ddd26);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2518c3=>{for(const _0x648bef of this['getMarkers']())_0x2518c3['removeMarker'](_0x648bef);}),this['_markerNames']['clear']();}['removeMarker'](_0x45b903){this['_model']['change'](_0x2d5c97=>{_0x2d5c97['removeMarker'](_0x45b903);}),this['_markerNames']['delete'](_0x45b903);}['addRange'](_0x4c9d95){const _0x3b6174='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3b6174),this['_model']['change'](_0xd2675d=>{_0xd2675d['addMarker'](_0x3b6174,{'range':_0x4c9d95,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x13ae15){for(const _0x5a0fd0 of this['getRanges']())if(_0x5a0fd0['isIntersecting'](_0x13ae15))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3cfa1a=>_0x3cfa1a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x57d44b,_0x437e6d)=>[..._0x57d44b,..._0x437e6d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x14a84e=this['getRanges']();if(0x1!=_0x14a84e['length'])return null;const _0x56863a=_0x14a84e[0x0],_0x6eaaf8=_0x56863a['start']['nodeAfter'],_0xf29b4b=_0x56863a['end']['nodeBefore'];return _0x6eaaf8 instanceof _0x376fe0?_0x6eaaf8!=_0xf29b4b?null:_0x6eaaf8: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 _0x527a2b=[];let _0x196692=this['head'];for(;_0x196692;)_0x527a2b['push'](_0x196692),_0x196692=_0x196692['next'];return _0x527a2b;}['setAttribute'](_0x1e7674,_0x58c114){const _0x239ff5=_0x4c1037(this['attributes']);_0x198b68(_0x239ff5,_0x1e7674,_0x58c114),_0x5e988c(_0x239ff5,this['attributes'])||(this['attributes']=_0x239ff5,this['_onAttributesChange'](_0x239ff5));}['removeAttribute'](_0x4d3c51){const _0x407ae6=_0x4c1037(this['attributes']);_0x4663aa(_0x407ae6,_0x4d3c51),_0x5e988c(_0x407ae6,this['attributes'])||(this['attributes']=_0x407ae6,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 _0x572f80()['substr'](0x1,0x5);}}function o(_0x543a83,_0x3929bc,_0x135b53){const t=_0x543a83['t'];switch(_0x3929bc){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',_0x135b53);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x135b53);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x135b53);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x135b53);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x135b53);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',_0x135b53);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x135b53);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',_0x135b53);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x135b53);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x135b53);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x135b53);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x135b53);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x135b53);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x135b53);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x135b53);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x135b53);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x135b53);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x135b53);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x135b53);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x135b53);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x135b53);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x135b53);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x135b53);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'},_0x135b53);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x135b53);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x135b53);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x135b53);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x135b53);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x135b53);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'},_0x135b53);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x135b53);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x135b53);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x135b53);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x135b53);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'},_0x135b53);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x135b53);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'},_0x135b53);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'},_0x135b53);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x135b53);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'},_0x135b53);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x135b53);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'},_0x135b53);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x135b53);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x135b53);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'},_0x135b53);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'},_0x135b53);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 _0x3929bc;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x38a38e,_0x657fd7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x38a38e,this['_locale']=_0x657fd7;}['getDescriptions'](_0x5db297){const _0x2732d6=[],_0xe2835a=new Set(),_0x213ccc=new Set();for(let _0x45cd58=0x0;_0x45cd58<_0x5db297['length'];_0x45cd58++){const _0x22936f=_0x5db297[_0x45cd58];if(!_0x22936f['isInContent'])continue;const _0x5239b2=this['_handleCustomCallbackDescription'](_0x22936f);if(_0x5239b2){if(null!=_0x22936f['subType']){if(_0xe2835a['has'](_0x22936f['subType']))continue;_0xe2835a['add'](_0x22936f['subType']);}_0x2732d6['push'](_0x5239b2);}else{if('attribute'!=_0x22936f['type'])'insertion'!=_0x22936f['type']&&'deletion'!=_0x22936f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2732d6,_0x22936f,_0x5db297[_0x45cd58+0x1]);else{const _0x46f6f6=_0x22936f['data']['key'];if(_0x213ccc['has'](_0x46f6f6))continue;_0x213ccc['add'](_0x22936f['data']['key']),_0x46f6f6==m?this['_handleRenameSuggestionDescription'](_0x2732d6,_0x22936f):this['_handleAttributeSuggestionDescription'](_0x2732d6,_0x22936f);}}}return this['_resolveDescriptionItems'](_0x2732d6);}['registerDescriptionCallback'](_0xf0aea4){this['_customCallbacks']['push'](_0xf0aea4);}['registerElementLabel'](_0x2a88fc,_0x410c85,_0x1f2fec=_0x52fe0a['normal']){'function'==typeof _0x2a88fc?_0x6a6fb3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2a88fc,'label':_0x410c85,'priority':_0x1f2fec}):this['_itemLabels']['set'](_0x2a88fc,_0x410c85);}['registerAttributeLabel'](_0x3440f0,_0x3c6cbd){this['_attributeLabels']['set'](_0x3440f0,_0x3c6cbd);}['getItemLabel'](_0x4e9cd4,_0x5cfa91=0x1){let _0x427612;for(const _0x690dde of this['_itemLabelsCallbacks'])if(_0x690dde['matchingCallback'](_0x4e9cd4)){_0x427612=_0x690dde['label'];break;}return _0x427612||(_0x427612=this['_itemLabels']['get'](_0x4e9cd4['name'])),_0x427612?_0x427612(_0x5cfa91):0x1!==_0x5cfa91?_0x5cfa91+'\x20'+_0x4e9cd4['name']+'s':''+_0x4e9cd4['name'];}['_addDescriptionItems'](_0x509693,_0x4ddaa3){const _0x21ce46=_0x4ddaa3['getFirstRange']()['getWalker'](),_0x489ffc='insertion'==_0x4ddaa3['type']?'add':'remove';for(const _0x573cb6 of _0x21ce46){const _0x47b5eb=_0x573cb6['item'],_0x586e4b=_0x509693[_0x509693['length']-0x1];if(_0x47b5eb['is']('$textProxy'))_0x586e4b&&_0x586e4b['type']['indexOf']('Container')>-0x1&&_0x509693['pop'](),_0x586e4b&&'text'==_0x586e4b['type']?_0x586e4b[_0x489ffc]+=_0x47b5eb['data']:_0x509693['push']({'type':'text','add':'add'==_0x489ffc?_0x47b5eb['data']:'','remove':'remove'==_0x489ffc?_0x47b5eb['data']:''});else{if(this['_schema']['isObject'](_0x47b5eb)){const _0x12f6b4=_0x47b5eb;if(_0x586e4b&&_0x586e4b['type']['indexOf']('Container')>-0x1&&_0x509693['pop'](),'elementEnd'==_0x573cb6['type'])continue;_0x586e4b&&_0x586e4b['type']==_0x489ffc+'Object'&&_0x586e4b['element']['name']==_0x12f6b4['name']?_0x586e4b['quantity']++:_0x509693['push']({'type':_0x489ffc+'Object','element':_0x12f6b4,'quantity':0x1}),_0x21ce46['skip'](_0x36413c=>!('elementEnd'==_0x36413c['type']&&_0x36413c['item']==_0x47b5eb));}else{if(this['_schema']['checkChild'](_0x47b5eb,'$text')||_0x47b5eb['is']('element','softBreak')){const _0x299f52=_0x47b5eb;if('add'==_0x489ffc&&'elementStart'==_0x573cb6['type']||'remove'==_0x489ffc&&'elementEnd'==_0x573cb6['type'])continue;if(_0x586e4b&&-0x1==_0x586e4b['type']['indexOf']('Container')){'text'==_0x586e4b['type']&&(_0x586e4b[_0x489ffc]+='\x0a');continue;}let _0x87ff27;if(_0x87ff27='add'==_0x489ffc?_0x299f52['nextSibling']&&!this['_schema']['isObject'](_0x299f52['nextSibling'])?_0x299f52['nextSibling']:null:_0x299f52['previousSibling']&&!this['_schema']['isObject'](_0x299f52['previousSibling'])?_0x299f52['previousSibling']:null,_0x299f52['isEmpty']||_0x87ff27&&_0x87ff27['isEmpty']){const _0x491695=_0x87ff27&&_0x87ff27['isEmpty']?_0x87ff27:_0x299f52;_0x586e4b&&_0x586e4b['type']==_0x489ffc+'EmptyContainer'&&_0x586e4b['element']['name']==_0x491695['name']?_0x586e4b['quantity']++:_0x509693['push']({'type':_0x489ffc+'EmptyContainer','element':_0x491695,'quantity':0x1});}else _0x509693['push']({'type':_0x489ffc+'Container','element':_0x299f52});}}}}}['_resolveDescriptionItems'](_0x51e394){const _0x402a44=this['_locale'],_0x3e85de=[],_0x1361af=[],_0x18f55f=[];for(const _0x4c97e8 of _0x51e394)switch(_0x4c97e8['type']){case'text':if(_0x4c97e8['add']=_0x4c97e8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4c97e8['remove']=_0x4c97e8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4c97e8['add']&&''!=_0x4c97e8['remove']){_0x3e85de['push']({'type':'replace','content':o(_0x402a44,'REPLACE_TEXT',['\x22'+_0x4c97e8['remove']+'\x22','\x22'+_0x4c97e8['add']+'\x22'])});continue;}if(null!=_0x4c97e8['add']['match'](/^ +$/)){_0x3e85de['push']({'type':'insertion','content':o(_0x402a44,'*Insert:*\x20%0',o(_0x402a44,'ELEMENT_SPACE',_0x4c97e8['add']['length']))});continue;}if(null!=_0x4c97e8['remove']['match'](/^ +$/)){_0x3e85de['push']({'type':'deletion','content':o(_0x402a44,'*Remove:*\x20%0',o(_0x402a44,'ELEMENT_SPACE',_0x4c97e8['remove']['length']))});continue;}if(''!=_0x4c97e8['add']){_0x3e85de['push']({'type':'insertion','content':o(_0x402a44,'*Insert:*\x20%0','\x22'+_0x4c97e8['add']+'\x22')});continue;}_0x3e85de['push']({'type':'deletion','content':o(_0x402a44,'*Remove:*\x20%0','\x22'+_0x4c97e8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3e85de['push']({'type':'insertion','content':o(_0x402a44,'*Insert:*\x20%0',this['getItemLabel'](_0x4c97e8['element'],_0x4c97e8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3e85de['push']({'type':'deletion','content':o(_0x402a44,'*Remove:*\x20%0',this['getItemLabel'](_0x4c97e8['element'],_0x4c97e8['quantity']))});continue;case'addContainer':_0x3e85de['push']({'type':'insertion','content':o(_0x402a44,'*Split:*\x20%0',this['getItemLabel'](_0x4c97e8['element'],_0x4c97e8['quantity']))});continue;case'removeContainer':_0x3e85de['push']({'type':'deletion','content':o(_0x402a44,'*Merge:*\x20%0',this['getItemLabel'](_0x4c97e8['element'],_0x4c97e8['quantity']))});continue;case'addFormat':_0x1361af['push'](_0x4c97e8['key']);continue;case'removeFormat':_0x18f55f['push'](_0x4c97e8['key']);continue;default:_0x3e85de['push'](_0x4c97e8);}if(_0x1361af['length']){const _0x2f345f=_0x1361af['map'](_0x1361ca=>this['_attributeLabels']['has'](_0x1361ca)?this['_attributeLabels']['get'](_0x1361ca):_0x1361ca)['join'](',\x20');_0x3e85de['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2f345f)});}if(_0x18f55f['length']){const _0x4fe148=_0x18f55f['map'](_0x50ebf3=>this['_attributeLabels']['has'](_0x50ebf3)?this['_attributeLabels']['get'](_0x50ebf3):_0x50ebf3)['join'](',\x20');_0x3e85de['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4fe148)});}return _0x3e85de;}['_handleCustomCallbackDescription'](_0x2a5fc7){for(const _0x2f2b8e of this['_customCallbacks']){const _0x463791=_0x2f2b8e(_0x2a5fc7);if(_0x463791&&'type'in _0x463791)return _0x463791;}}['_handleAttributeSuggestionDescription'](_0x18973e,_0xf10e85){const _0x1aa83e=_0xf10e85['data'],_0x1d44b7=void 0x0===_0x1aa83e['newValue']?'removeFormat':'addFormat';_0x18973e['push']({'type':_0x1d44b7,'key':_0x1aa83e['key']});}['_handleRenameSuggestionDescription'](_0x1c30eb,_0x592dbb){_0x1c30eb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x592dbb['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4e8b04,_0x559c93,_0x13efc0){if(this['_addDescriptionItems'](_0x4e8b04,_0x559c93),_0x13efc0&&_0x13efc0['getFirstRange']()&&!_0x559c93['getFirstRange']()['end']['isEqual'](_0x13efc0['getFirstRange']()['start'])){const _0xdbcedf=_0x4e8b04[_0x4e8b04['length']-0x1],_0x3b3d72='insertion'==_0x559c93['type']?'add':'remove';_0xdbcedf&&'text'==_0xdbcedf['type']&&(_0xdbcedf[_0x3b3d72]+='\x0a');}}}class E extends _0x59c88b{['afterInit'](){const _0xb1a22b=this['editor'],_0x1f437=_0xb1a22b['plugins']['get']('TrackChangesEditing');_0xb1a22b['commands']['get']('showAIAssistant')&&_0x1f437['enableCommand']('showAIAssistant');}}class V extends _0x59c88b{['afterInit'](){const _0x55fc82=this['editor'],_0x332717=_0x55fc82['locale'];if(!_0x55fc82['plugins']['has']('AlignmentEditing'))return;const _0x3f9bc2=_0x55fc82['plugins']['get']('TrackChangesEditing');_0x3f9bc2['enableDefaultAttributesIntegration']('alignment'),_0x3f9bc2['registerBlockAttribute']('alignment'),_0x3f9bc2['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x332717,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c6eb1=this['editor'],_0x11d9d1=_0x5c6eb1['locale'];_0x5c6eb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3326d4=>{if('formatBlock'!=_0x3326d4['type'])return;const {data:_0x24a1cb}=_0x3326d4;if(_0x24a1cb&&'alignment'==_0x24a1cb['commandName']){const _0x4d148a=_0x24a1cb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x11d9d1,'*Format:*\x20%0',function(_0x36c81f){switch(_0x36c81f){case'left':return o(_0x11d9d1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x11d9d1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x11d9d1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x11d9d1,'FORMAT_JUSTIFY_TEXT');}}(_0x4d148a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x59c88b{['afterInit'](){const _0x2004f1=this['editor'],_0x39e339=_0x2004f1['plugins']['get']('TrackChangesEditing'),_0x529040=_0x2004f1['locale'];for(const _0x572eb2 of ti){if(!_0x2004f1['plugins']['has'](_0x572eb2))continue;const _0x4820d5=_0x572eb2['slice'](0x0,-0x7)['toLowerCase'](),_0x2c6365='FORMAT_'+_0x4820d5['toUpperCase']();_0x39e339['enableDefaultAttributesIntegration'](_0x4820d5),_0x39e339['registerInlineAttribute'](_0x4820d5),_0x39e339['descriptionFactory']['registerAttributeLabel'](_0x4820d5,o(_0x529040,_0x2c6365));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3571ea=this['editor'],_0x44edd4=_0x3571ea['locale'],_0x1765dc=_0x3571ea['plugins']['get']('TrackChangesEditing');function _0x5aeef3(_0x3b5ec6,_0x38c282){_0x1765dc['descriptionFactory']['registerDescriptionCallback'](_0x4bced3=>{if('formatInline'!=_0x4bced3['type'])return;const {data:_0x349b78}=_0x4bced3;return _0x349b78&&_0x349b78['commandName']===_0x3b5ec6?_0x349b78['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44edd4,'*Format:*\x20%0',_0x38c282)}:{'type':'format','content':o(_0x44edd4,'*Remove\x20format:*\x20%0',_0x38c282)}:void 0x0;});}_0x5aeef3('bold',o(_0x44edd4,'FORMAT_BOLD')),_0x5aeef3('italic',o(_0x44edd4,'FORMAT_ITALIC')),_0x5aeef3('underline',o(_0x44edd4,'FORMAT_UNDERLINE')),_0x5aeef3('code',o(_0x44edd4,'FORMAT_CODE')),_0x5aeef3('strikethrough',o(_0x44edd4,'FORMAT_STRIKETHROUGH')),_0x5aeef3('subscript',o(_0x44edd4,'FORMAT_SUBSCRIPT')),_0x5aeef3('superscript',o(_0x44edd4,'FORMAT_SUPERSCRIPT'));}}class O extends _0x59c88b{['afterInit'](){const _0x537fad=this['editor'],_0x1f498f=_0x537fad['locale'];if(!_0x537fad['plugins']['has']('BlockQuoteEditing'))return;const _0xd5920f=_0x537fad['plugins']['get']('TrackChangesEditing'),_0x59badd=this['editor']['commands']['get']('blockQuote');_0xd5920f['enableCommand']('blockQuote',(_0x33e897,_0x2df801={})=>{const _0x54759e=this['editor']['model']['document']['selection'],_0x171344=_0x2df801&&void 0x0!==_0x2df801['forceValue']?_0x2df801['forceValue']:!_0x59badd['value'];let _0x4f34ab=[];if(_0x171344){const _0x51acc0=Array['from'](_0x54759e['getSelectedBlocks']())['filter'](_0x8499cd=>oo(_0x8499cd)||function(_0x1c9b63,_0x513787){const _0x27da88=_0x513787['checkChild'](_0x1c9b63['parent'],'blockQuote'),_0x4ccdac=_0x513787['checkChild'](['$root','blockQuote'],_0x1c9b63);return _0x27da88&&_0x4ccdac;}(_0x8499cd,this['editor']['model']['schema']));_0x4f34ab=to(_0x51acc0,_0x537fad['model']);}else{const _0xb4a246=Array['from'](_0x54759e['getSelectedBlocks']())['filter'](_0x3b42ea=>oo(_0x3b42ea));_0x4f34ab=to(_0xb4a246,_0x537fad['model']);}_0x537fad['model']['change'](()=>{for(const _0x5b9997 of _0x4f34ab)_0xd5920f['markBlockFormat'](_0x5b9997,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x171344}]});});}),_0xd5920f['descriptionFactory']['registerDescriptionCallback'](_0x58ca5d=>{const {data:_0x18bbbf}=_0x58ca5d;if(_0x18bbbf&&'blockQuote'==_0x18bbbf['commandName']){const _0x56e025=o(_0x1f498f,'ELEMENT_BLOCK_QUOTE');return _0x18bbbf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f498f,'*Set\x20format:*\x20%0',_0x56e025)}:{'type':'format','content':o(_0x1f498f,'*Remove\x20format:*\x20%0',_0x56e025)};}});}}function oo(_0x361394){return'blockQuote'==_0x361394['parent']['name'];}class G extends _0x59c88b{['afterInit'](){const _0x472688=this['editor'];_0x472688['plugins']['has']('CaseChange')&&(_0x472688['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x472688['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x472688['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x59c88b{['afterInit'](){const _0x49fa4f=this['editor'];_0x49fa4f['commands']['get']('ckbox')&&_0x49fa4f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x59c88b{['afterInit'](){const _0x4ddddd=this['editor'];if(!_0x4ddddd['plugins']['has']('CodeBlock'))return;const _0x5d79da=_0x4ddddd['plugins']['get']('TrackChangesEditing'),_0x218ab0=_0x4ddddd['locale'],_0x1ea794=_0x4ddddd['config']['get']('codeBlock')['languages'],_0x48d7f1=_0x4ddddd['commands']['get']('codeBlock');_0x5d79da['enableCommand']('indentCodeBlock'),_0x5d79da['enableCommand']('outdentCodeBlock'),_0x5d79da['enableCommand']('codeBlock',(_0x3866d9,_0x37cd27={})=>{const _0x256dcd=_0x4ddddd['model'],_0x2cba44=_0x4ddddd['model']['document']['selection'],_0xba46c=_0x37cd27&&void 0x0!==_0x37cd27['forceValue']?_0x37cd27['forceValue']:!_0x48d7f1['value'];let _0x27d9ce;_0x37cd27['language']||(_0x37cd27['language']=_0x1ea794[0x0]['language']),_0x27d9ce=_0xba46c?Array['from'](_0x2cba44['getSelectedBlocks']())['filter'](_0x347a2b=>eo(_0x347a2b)||function(_0x4bd409,_0x506c88){if(_0x4bd409['is']('rootElement')||_0x506c88['isLimit'](_0x4bd409))return!0x1;return _0x506c88['checkChild'](_0x4bd409['parent'],'codeBlock');}(_0x347a2b,_0x256dcd['schema'])):Array['from'](_0x2cba44['getSelectedBlocks']())['filter'](_0x55a664=>eo(_0x55a664));const _0x1157c6=to(_0x27d9ce,_0x256dcd);_0x256dcd['change'](()=>{for(const _0x32a541 of _0x1157c6)_0x5d79da['markBlockFormat'](_0x32a541,{'commandName':'codeBlock','commandParams':[{..._0x37cd27,'forceValue':_0xba46c}],'formatGroupId':'blockName'});});}),(_0x5d79da['descriptionFactory']['registerElementLabel']('codeBlock',_0x106af6=>o(_0x218ab0,'ELEMENT_CODE_BLOCK',_0x106af6)),_0x5d79da['descriptionFactory']['registerDescriptionCallback'](_0x9bcdc7=>{if('formatBlock'!=_0x9bcdc7['type'])return;const _0x422897=_0x218ab0['t'],{data:_0x589f08}=_0x9bcdc7;if(!_0x589f08||'codeBlock'!=_0x589f08['commandName'])return;const _0x3a0a6e=_0x589f08['commandParams'][0x0]['language'],_0x3ad279=_0x422897(_0x1ea794['find'](_0x1c64e5=>_0x1c64e5['language']===_0x3a0a6e)['label'])['toLowerCase']();return _0x589f08['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x218ab0,'*Set\x20format:*\x20%0',o(_0x218ab0,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3ad279+')')}:{'type':'format','content':o(_0x218ab0,'*Remove\x20format:*\x20%0',o(_0x218ab0,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x284861){return'codeBlock'==_0x284861['name'];}class H extends _0x59c88b{['afterInit'](){const _0x41fb79=this['editor'];if(!_0x41fb79['plugins']['has']('CommentsEditing'))return;_0x41fb79['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4a9554,_0x31f911,_0x383ee0){const _0x9e9841=[];for(const _0x1f6895 of _0x31f911['getItems']())_0x1f6895['hasAttribute'](_0x4a9554)&&_0x9e9841['push'](_0x383ee0['createRangeOn'](_0x1f6895));return _0x9e9841;}function _e(_0x2678b2,_0x45e39d,{showActiveMarker:_0xbebd0a=!0x0}={}){const _0x5eedfe=_0x2678b2['plugins']['get']('TrackChangesEditing');return(_0x5caba2,_0x526016,_0xc07a66)=>{if(!_0xc07a66['consumable']['test'](_0x526016['markerRange'],_0x5caba2['name']))return;const _0x4ab76b=_0x526016['markerRange']['getWalker'](),_0x8c027b=_0x526016['markerRange']['start'],_0x275339=_0x2678b2['model']['schema'];let _0x2b6b5c=null,_0xa72363=null,_0x27c036=!0x1,_0x3ab36e=!0x1;for(const _0x3891a9 of _0x4ab76b){const _0x583a4d=_0x3891a9['item'];_0x27c036=_0x27c036||_0x275339['isContent'](_0x583a4d);const _0x1999f2=_0xc07a66['mapper']['toViewElement'](_0x583a4d);if(_0x1999f2&&_0x1999f2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3891a9['type']&&(_0x275339['isBlock'](_0x583a4d)&&!_0x275339['isLimit'](_0x583a4d)&&(_0x583a4d['nextSibling']||_0x8c027b['isAtEnd']?_0x2b6b5c&&_0x2b6b5c['parent']==_0x583a4d||(_0x2b6b5c=_0x583a4d,_0x343b0b(_0x3891a9['previousPosition']),_0x3ab36e=!0x0):_0xa72363=_0xa72363||_0x3891a9['previousPosition']));}function _0x343b0b(_0x464e95){const _0xa0b0a1=_0xc07a66['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45e39d}),_0x101f7e=_0xc07a66['mapper']['toViewPosition'](_0x464e95);_0xbebd0a&&_0x5eedfe['activeMarkers']['includes'](_0x526016['markerName'])&&_0xc07a66['writer']['addClass']('ck-suggestion-marker--active',_0xa0b0a1),_0xc07a66['writer']['insert'](_0x101f7e,_0xa0b0a1),_0xc07a66['mapper']['bindElementToMarker'](_0xa0b0a1,_0x526016['markerName']);}_0x27c036||_0x3ab36e||!_0xa72363||_0x343b0b(_0xa72363);};}class q extends _0x59c88b{static get['requires'](){return[_0x3cf1b2];}['init'](){const _0x38412f=this['editor'],_0x46abd4=_0x38412f['plugins']['get']('TrackChangesEditing');_0x46abd4['enableCommand']('delete');const _0x403474=_0x38412f['commands']['get']('deleteForward');_0x46abd4['enableCommand']('deleteForward',(_0x56467e,_0x1bb5e9={})=>{const _0x4e851a=_0x38412f['model']['createSelection'](_0x38412f['model']['document']['selection']);_0x4e851a['isCollapsed']&&_0x38412f['model']['modifySelection'](_0x4e851a,{'direction':'forward','unit':_0x1bb5e9['unit']});const _0x56ae05=_0x4e851a['getFirstRange'](),_0x1601de=_0x273003['fromRange'](_0x56ae05);let _0x3d9e56;_0x56467e(_0x1bb5e9),_0x3d9e56='$graveyard'==_0x1601de['root']['rootName']?_0x38412f['model']['createRange'](_0x56ae05['start']):_0x38412f['model']['createRange'](_0x1601de['start'],_0x1601de['end']),_0x1601de['detach'](),_0x38412f['model']['enqueueChange'](_0x403474['buffer']['batch'],_0x216810=>{_0x403474['buffer']['lock'](),_0x216810['setSelection'](_0x216810['createRange'](_0x3d9e56['end'])),_0x403474['buffer']['unlock']();});}),_0x38412f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x38412f,'merge'),{'priority':'high'}),_0x38412f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xb8dac9,_0x16f3c4,_0x22b525)=>{_0x22b525['options']['showSuggestionHighlights']&&_e(_0x38412f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xb8dac9,_0x16f3c4,_0x22b525);},{'priority':'high'}),_0x38412f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x26a6ab,_0x134ae5,_0x3307f7)=>{const _0x4c0307=_0x3307f7['mapper']['markerNameToElements'](_0x134ae5['markerName']);if(_0x4c0307){for(const _0x592f80 of _0x4c0307)_0x592f80['is']('uiElement')&&(_0x3307f7['mapper']['unbindElementFromMarkerName'](_0x592f80,_0x134ae5['markerName']),_0x3307f7['writer']['remove'](_0x592f80));}},{'priority':'high'});}}class z extends _0x59c88b{['afterInit'](){const _0x3e91d9=this['editor'];if(!_0x3e91d9['plugins']['has']('ListEditing'))return;const _0x384dfd=_0x3e91d9['locale'],_0xb10033=_0x3e91d9['plugins']['get']('TrackChangesEditing'),_0x24f010=_0x3e91d9['plugins']['has']('TodoListEditing'),_0x24d5c3=!!_0x3e91d9['config']['get']('list.multiBlock');function _0x2abc57(_0x337548){return{'type':'format','content':''+o(_0x384dfd,'*Set\x20format:*\x20%0',_0x337548)};}function _0x13f1aa(_0x4f47cc){return{'type':'format','content':''+o(_0x384dfd,'*Remove\x20format:*\x20%0',_0x4f47cc)};}_0xb10033['enableDefaultAttributesIntegration']('numberedList'),_0xb10033['enableDefaultAttributesIntegration']('bulletedList'),_0xb10033['enableDefaultAttributesIntegration']('customNumberedList'),_0xb10033['enableDefaultAttributesIntegration']('customBulletedList'),_0xb10033['enableDefaultAttributesIntegration']('indentList'),_0xb10033['enableDefaultAttributesIntegration']('outdentList'),_0xb10033['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xb10033['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xb10033['registerBlockAttribute']('listItemId'),_0xb10033['registerBlockAttribute']('listType'),_0xb10033['registerBlockAttribute']('listIndent'),_0x24d5c3&&(_0xb10033['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xb10033['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x24f010&&(_0xb10033['enableDefaultAttributesIntegration']('todoList'),_0xb10033['enableDefaultAttributesIntegration']('checkTodoList'),_0xb10033['registerBlockAttribute']('todoListChecked'),_0xb10033['descriptionFactory']['registerDescriptionCallback'](_0x1adcf2=>{const {data:_0x26133a}=_0x1adcf2;if(_0x26133a&&'todoListChecked'==_0x26133a['key'])return{'type':'format','content':_0x26133a['newValue']?o(_0x384dfd,'*Check\x20item*'):o(_0x384dfd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5a5000=>{if(_0x5a5000['batch']['isUndo'])return!0x1;let _0x4372af=!0x1;const _0x11dadb=_0xb10033['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42698e=>'todoListChecked'===_0xb10033['_getAttributeKey'](_0x42698e));for(const _0x40782d of _0x11dadb){'todo'!=_0x40782d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xb10033['_findSuggestions'](_0x40782d['getFirstRange'](),'attribute')['find'](_0x15efc2=>'listType'===_0xb10033['_getAttributeKey'](_0x15efc2['suggestion']))||(_0x5a5000['removeMarker'](_0x40782d['getFirstMarker']()),_0x4372af=!0x0));}return _0x4372af;})),_0xb10033['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x384dfd,'FORMAT_INDENT'));const _0x6c984c={'type':'format','content':''};_0xb10033['descriptionFactory']['registerDescriptionCallback'](_0x50a656=>{const {data:_0xef743a}=_0x50a656;if(!_0xef743a||'listType'!=_0xef743a['key'])return;let _0x51becb=_0x50a656['head'];for(;_0x51becb;){if(_0x51becb['data']&&(('listStyle'==_0x51becb['data']['key']||'listMarkerStyle'==_0x51becb['data']['key'])&&(_0x51becb['data']['newValue']&&'default'!=_0x51becb['data']['newValue']||'default'!=_0x51becb['data']['oldValue']&&!_0xef743a['newValue'])||!_0x24d5c3&&_0x51becb['data']['key']==m))return _0x6c984c;_0x51becb=_0x51becb['next'];}if(null==_0xef743a['newValue'])switch(_0xef743a['oldValue']){case'bulleted':return _0x13f1aa(o(_0x384dfd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13f1aa(o(_0x384dfd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13f1aa(o(_0x384dfd,'ELEMENT_TODO_LIST'));}switch(_0xef743a['newValue']){case'bulleted':return _0x2abc57(o(_0x384dfd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2abc57(o(_0x384dfd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2abc57(o(_0x384dfd,'ELEMENT_TODO_LIST'));}}),_0xb10033['descriptionFactory']['registerDescriptionCallback'](_0x7bf0ed=>{const {data:_0x2f5e7a}=_0x7bf0ed;if(_0x2f5e7a&&'listIndent'==_0x2f5e7a['key'])return null==_0x2f5e7a['newValue']||null==_0x2f5e7a['oldValue']&&0x0==_0x2f5e7a['newValue']?_0x6c984c:void 0x0;}),_0xb10033['descriptionFactory']['registerDescriptionCallback'](_0x1d35f6=>{if('attribute'!=_0x1d35f6['type'])return;const {data:_0x3b6641}=_0x1d35f6;if(!_0x3b6641||'listItemId'!=_0x3b6641['key'])return;const _0x3ae9ff=le(_0x1d35f6);return'newValue'==_0x3ae9ff?{'type':'format','content':o(_0x384dfd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3ae9ff?{'type':'format','content':o(_0x384dfd,'*Split:*\x20list\x20item')}:_0x6c984c;}),_0x3e91d9['model']['document']['registerPostFixer'](_0xb3793b=>this['listItemIdFixer'](_0xb3793b)),_0x3e91d9['model']['document']['registerPostFixer'](_0x478970=>this['noTrackChangesFixer'](_0x478970)),_0x3e91d9['model']['document']['registerPostFixer'](_0x2b3f1b=>this['assureChains'](_0x2b3f1b)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xa75ef3){if(_0xa75ef3['batch']['isUndo']||!_0xa75ef3['batch']['isLocal'])return!0x1;let _0x13dcb7=!0x1;const _0x532014=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd5a72d=>_0xd5a72d['data']&&'listItemId'==_0xd5a72d['data']['key'])['filter'](_0x5e6ebf=>_0x5e6ebf['data']['newValue']&&_0x5e6ebf['data']['oldValue']);for(const _0x1647fc of _0x532014)le(_0x1647fc)||(_0xa75ef3['removeMarker'](_0x1647fc['getFirstMarker']()),_0x13dcb7=!0x0);return _0x13dcb7;}['noTrackChangesFixer'](_0x2ab7a6){if(_0x2ab7a6['batch']['isUndo']||!_0x2ab7a6['batch']['isLocal'])return!0x1;const _0x3d963a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3d963a['trackChangesCommand']['value'])return!0x1;let _0x45dc5d=!0x1;const _0x198025=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x535574=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4efcf1=>'attribute'==_0x4efcf1['type'])['filter'](_0x7311e8=>_0x198025['includes'](_0x7311e8['attributeKey']));if(0x0==_0x535574['length'])return _0x45dc5d;for(const _0xfa30d8 of _0x535574){const _0x58dfa7=_0x3d963a['_findSuggestions'](_0xfa30d8['range'],'attribute')['filter'](_0x15ad35=>!_0x15ad35['meta']['isNextTo'])['map'](_0x16cd8d=>_0x16cd8d['suggestion'])['filter'](_0x19207f=>{const _0x508f69=_0x3d963a['_getAttributeKey'](_0x19207f);return _0x198025['includes'](_0x508f69);});if(_0x58dfa7['length']){for(const _0x1b0794 of _0x58dfa7)_0x2ab7a6['removeMarker'](_0x1b0794['getFirstMarker']());_0x45dc5d=!0x0;}}return _0x45dc5d;}['assureChains'](_0x18eb33){if(_0x18eb33['batch']['isUndo']||!_0x18eb33['batch']['isLocal'])return!0x1;const _0x5ad3b9=this['editor']['plugins']['get']('TrackChangesEditing');let _0x59c611=!0x1;const _0x1dbce4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1d5f76 of _0x5ad3b9['getSuggestions']({'skipNotAttached':!0x0})){const _0x2c49ca=_0x5ad3b9['_findSuggestions'](_0x1d5f76['getFirstRange'](),'attribute')['map'](_0xa9b3b=>_0xa9b3b['suggestion'])['filter'](_0x5f1ea5=>_0x5f1ea5['data']&&_0x1dbce4['includes'](_0x5f1ea5['data']['key']));if(!_0x2c49ca['length'])continue;const _0x4a0904=_0x2c49ca[0x0]['head']['attributes']['groupId'];if(!_0x2c49ca['every'](_0x1610b4=>_0x1610b4['attributes']['groupId']===_0x4a0904)){for(const _0x267e43 of _0x2c49ca)_0x4f1ca2(_0x267e43,_0x4a0904)&&(_0x59c611=!0x0);}}return _0x59c611;function _0x1b81cc(_0x3f818f,_0x3493fb){for(const _0x50f84a of _0x5ad3b9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f6b26=>'attribute'==_0x4f6b26['type']&&_0x4f6b26['attributes']['groupId']==_0x3f818f))_0x50f84a['setAttribute']('groupId',_0x3493fb);}function _0x4f1ca2(_0x391f42,_0x3b0702){let _0x1e249e=_0x391f42['head'],_0x1cded0=!0x1;for(;_0x1e249e;)_0x1e249e['attributes']['groupId']!=_0x3b0702&&(_0x1b81cc(_0x1e249e['attributes']['groupId'],_0x3b0702),_0x1e249e['setAttribute']('groupId',_0x3b0702),_0x1cded0=!0x0),_0x1e249e=_0x1e249e['next'];return _0x1cded0;}}['_supportLegacySuggestions'](){const _0x401481=this['editor'],_0x46a1a7=_0x401481['locale'],_0x32d7f7=_0x401481['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x32d7f7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x18fc47,_0x39affd){const _0x5514ae=[];for(let _0x2b2f8c of _0x18fc47)_0x2b2f8c['start']['nodeAfter']===_0x2b2f8c['end']['parent']&&(_0x2b2f8c=_0x401481['model']['createRange'](_0x401481['model']['createPositionAt'](_0x2b2f8c['start']['nodeAfter'],0x0))),_0x5514ae['push'](_0x2b2f8c);_0x401481['model']['change'](_0x49ecc9=>{const _0x40e076=_0x401481['model']['document']['selection'],_0x84395f=Array['from'](_0x40e076['getRanges']())['map'](_0x1ddadf=>_0x273003['fromRange'](_0x1ddadf));_0x49ecc9['setSelection'](_0x5514ae),_0x401481['commands']['get'](_0x39affd['commandName'])['refresh'](),_0x39affd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x401481['execute'](_0x39affd['commandName'],..._0x39affd['commandParams']),_0x49ecc9['setSelection'](_0x84395f);for(const _0x3a1745 of _0x84395f)_0x3a1745['detach']();});}),_0x32d7f7['descriptionFactory']['registerElementLabel'](function(_0x472c4c){const _0x59f0c0=!_0x401481['model']['schema']['isObject'](_0x472c4c),_0x4cdc8e=_0x472c4c['previousSibling'],_0x1134b1=_0x472c4c['nextSibling'],_0x19c3be=_0x472c4c['getAttribute']('listItemId'),_0x1d8561=!_0x4cdc8e||_0x4cdc8e['getAttribute']('listItemId')!==_0x19c3be,_0x29f125=!_0x1134b1||_0x1134b1['getAttribute']('listItemId')!==_0x19c3be;return _0x59f0c0&&Boolean(_0x19c3be)&&_0x1d8561&&_0x29f125;},_0x5a4810=>o(_0x46a1a7,'ELEMENT_LIST_ITEM',_0x5a4810));}['_registerLegacyDescription'](){const _0x30df4b=this['editor'],_0x563a61=_0x30df4b['locale'];function _0x57c17b(_0x3f646f){const _0x197b79=_0x30df4b['commands']['get']('bulletedList')['value'],_0x3b257b=_0x30df4b['commands']['get']('numberedList')['value'];return'numberedList'===_0x3f646f?_0x197b79:_0x3b257b;}_0x30df4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a6dc8){if('formatBlock'!=_0x4a6dc8['type'])return;const {data:_0x439071}=_0x4a6dc8;if(!_0x439071)return;let _0x4f98d4,_0x5eb20a,_0x148ebe,_0x32735a;switch(_0x439071['commandName']){case'bulletedList':_0x148ebe=_0x439071['commandParams'][0x0]['forceValue'],_0x32735a=_0x57c17b(_0x439071['commandName']),_0x4f98d4=_0x148ebe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32735a&&_0x30df4b['config']['get']('list.multiBlock')||(_0x4f98d4='*Change\x20to:*\x20%0'),_0x5eb20a={'type':'format','content':o(_0x563a61,_0x4f98d4,o(_0x563a61,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x148ebe=_0x439071['commandParams'][0x0]['forceValue'],_0x32735a=_0x57c17b(_0x439071['commandName']),_0x4f98d4=_0x148ebe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32735a&&_0x30df4b['config']['get']('list.multiBlock')||(_0x4f98d4='*Change\x20to:*\x20%0'),_0x5eb20a={'type':'format','content':o(_0x563a61,_0x4f98d4,o(_0x563a61,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4f98d4='*Indent:*\x20%0',_0x5eb20a={'type':'format','content':o(_0x563a61,_0x4f98d4,o(_0x563a61,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4f98d4=function(_0xfa3425){const _0x30c002=_0xfa3425['getFirstRange']();let _0x232888=_0x30c002['start']['nodeAfter'];for(;_0x232888&&_0x30c002['containsItem'](_0x232888);){if(_0x232888['getAttribute']('listIndent')>0x0)return!0x1;_0x232888=_0x232888['nextSibling'];}return!0x0;}(_0x4a6dc8)?o(_0x563a61,'*Format:*\x20remove\x20from\x20%0',o(_0x563a61,function(_0x9c3c9){return'ELEMENT_'+_0x9c3c9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a6dc8))):o(_0x563a61,'*Outdent:*\x20%0',o(_0x563a61,'ELEMENT_LIST_ITEM')),_0x5eb20a={'type':'format','content':_0x4f98d4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x439071['multipleBlocks']&&(_0x4f98d4='*Merge:*\x20%0',_0x5eb20a={'type':'deletion','content':o(_0x563a61,_0x4f98d4,o(_0x563a61,'ELEMENT_LIST_ITEM'))});}return _0x5eb20a;});}}function le(_0x1bc761){let _0x103326=_0x1bc761['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x103326;){const _0x278437=_0x103326['getAttribute']('listItemId');if(!_0x278437)return!0x1;if(_0x278437==_0x1bc761['data']['newValue'])return'newValue';if(_0x278437==_0x1bc761['data']['oldValue'])return'oldValue';_0x103326=_0x103326['previousSibling'];}return!0x1;}class ue extends _0x59c88b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1860d8=this['editor']['config']['get']('list.properties'),_0xf5539=this['editor']['plugins']['get']('TrackChangesEditing');_0x1860d8['styles']&&(_0xf5539['enableDefaultAttributesIntegration']('listStyle'),_0xf5539['registerBlockAttribute']('listStyle')),_0x1860d8['reversed']&&(_0xf5539['enableDefaultAttributesIntegration']('listReversed'),_0xf5539['registerBlockAttribute']('listReversed')),_0x1860d8['startIndex']&&(_0xf5539['enableDefaultAttributesIntegration']('listStart'),_0xf5539['registerBlockAttribute']('listStart'));const _0x5048ef={'type':'format','content':''};_0xf5539['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5e367f=this['editor']['locale'];_0xf5539['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5e367f,'FORMAT_LIST_REVERSED')),_0xf5539['descriptionFactory']['registerDescriptionCallback'](_0xd95d28=>{const {data:_0x44f5fe}=_0xd95d28;if(_0x44f5fe&&'listReversed'==_0x44f5fe['key'])return null==_0x44f5fe['newValue']||0x0==_0x44f5fe['newValue']&&null==_0x44f5fe['oldValue']?_0x5048ef:void 0x0;}),_0xf5539['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5e367f,'FORMAT_LIST_START')),_0xf5539['descriptionFactory']['registerDescriptionCallback'](_0x57600e=>{const {data:_0x40d376}=_0x57600e;if(_0x40d376&&'listStart'==_0x40d376['key'])return null==_0x40d376['newValue']||0x1==_0x40d376['newValue']&&null==_0x40d376['oldValue']?_0x5048ef:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5478da=>{if(_0x5478da['batch']['isUndo'])return!0x1;let _0x377a58=!0x1;const _0x523a6e=_0xf5539['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38e534=>{const _0xf4fd8b=_0xf5539['_getAttributeKey'](_0x38e534);return'listStart'==_0xf4fd8b||'listReversed'==_0xf4fd8b;});for(const _0x722b0c of _0x523a6e){const _0x2a837f=_0x722b0c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2a837f||'customNumbered'==_0x2a837f)continue;_0xf5539['_findSuggestions'](_0x722b0c['getFirstRange'](),'attribute')['find'](_0x3500b4=>'listType'==_0xf5539['_getAttributeKey'](_0x3500b4['suggestion']))||(_0x5478da['removeMarker'](_0x722b0c['getFirstMarker']()),_0x377a58=!0x0);}return _0x377a58;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x14f553){const _0x557b9c=this['editor']['locale'],{data:_0x4211a7}=_0x14f553,_0x200779={'type':'format','content':''};if(!_0x4211a7||'listStyle'!=_0x4211a7['key'])return;if(!_0x4211a7['oldValue'])return'default'==_0x4211a7['newValue']?_0x200779:{'type':'format','content':''+o(_0x557b9c,'*Set\x20format:*\x20%0',o(_0x557b9c,this['_getTranslationKeyForListStyle'](_0x4211a7['newValue'])))};if(!_0x4211a7['newValue']){if('default'==_0x4211a7['oldValue'])return _0x200779;let _0x3d04f8=_0x14f553['head'];for(;_0x3d04f8;){if(_0x3d04f8['data']&&'listType'==_0x3d04f8['data']['key']&&_0x3d04f8['data']['newValue'])return _0x200779;_0x3d04f8=_0x3d04f8['next'];}return{'type':'format','content':''+o(_0x557b9c,'*Remove\x20format:*\x20%0',o(_0x557b9c,this['_getTranslationKeyForListStyle'](_0x4211a7['oldValue'])))};}if('default'!=_0x4211a7['newValue'])return{'type':'format','content':''+o(_0x557b9c,'*Set\x20format:*\x20%0',o(_0x557b9c,this['_getTranslationKeyForListStyle'](_0x4211a7['newValue'])))};let _0x4921a6=_0x14f553['head'];for(;_0x4921a6;){if(_0x4921a6['data']&&'listType'==_0x4921a6['data']['key']&&_0x4921a6['data']['newValue']&&_0x4921a6['data']['oldValue'])return _0x200779;_0x4921a6=_0x4921a6['next'];}return{'type':'format','content':o(_0x557b9c,'*Set\x20format:*\x20%0',o(_0x557b9c,'ELEMENT_'+_0x14f553['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1befc1=this['editor'],_0x364137=_0x1befc1['locale'];_0x1befc1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ef74b=>{if('formatBlock'!=_0x5ef74b['type'])return;const {data:_0x236c2a}=_0x5ef74b;if(!_0x236c2a)return;let _0x248207,_0x1233a7;switch(_0x236c2a['commandName']){case'listStyle':_0x248207='*Change\x20to:*\x20%0',_0x1233a7={'type':'format','content':o(_0x364137,_0x248207,o(_0x364137,this['_getTranslationKeyForListStyle'](_0x236c2a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x248207=_0x236c2a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1233a7={'type':'format','content':o(_0x364137,_0x248207)};break;case'listStart':_0x248207='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1233a7={'type':'format','content':o(_0x364137,_0x248207,_0x236c2a['commandParams'][0x0]['startIndex'])};}return _0x1233a7;});}['_getTranslationKeyForListStyle'](_0x3e67ab){return'ELEMENT_'+function(_0x5dbe28){if(pe['includes'](_0x5dbe28))return'bulleted';if(ye['includes'](_0x5dbe28))return'numbered';return null;}(_0x3e67ab)['toUpperCase']()+'_LIST_'+_0x3e67ab['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x59c88b{static get['requires'](){return[_0x326c5d];}['init'](){const _0x3fc078=this['editor'],_0xde276d=_0x3fc078['plugins']['get']('TrackChangesEditing'),_0x527e15=_0x3fc078['commands']['get']('enter');_0xde276d['enableCommand']('enter',()=>{_0x3fc078['model']['change'](_0x83181=>{const _0x1296e9=_0x3fc078['model']['document']['selection'],_0x2966bf=_0x1296e9['getFirstPosition'](),_0x16674c=_0x273003['fromRange'](_0x1296e9['getFirstRange']());if(_0x527e15['enterBlock'](_0x83181)){const _0x51d9ba=_0x3fc078['model']['createPositionAt'](_0x2966bf['parent']['nextSibling'],0x0),_0x477205=_0x83181['createRange'](_0x2966bf,_0x51d9ba);_0xde276d['markInsertion'](_0x477205);}else _0x83181['setSelection'](_0x83181['createRange'](_0x16674c['end']));_0x16674c['detach'](),_0x527e15['fire']('afterExecute',{'writer':_0x83181});});}),_0x3fc078['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3fc078,'split'),{'priority':'high'}),_0x3fc078['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x36c5b4,_0x302a6f,_0x5e89ee)=>{const _0xb14b59=_0x5e89ee['mapper']['markerNameToElements'](_0x302a6f['markerName']);if(_0xb14b59){for(const _0x3a084a of _0xb14b59)_0x3a084a['hasClass']('ck-suggestion-marker-split')&&(_0x5e89ee['mapper']['unbindElementFromMarkerName'](_0x3a084a,_0x302a6f['markerName']),_0x5e89ee['writer']['remove'](_0x3a084a));}},{'priority':'high'}),_0x3fc078['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x12aa87,_0x43eb8a,_0xf18cdf)=>{_0xf18cdf['options']['showSuggestionHighlights']&&_e(_0x3fc078,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x12aa87,_0x43eb8a,_0xf18cdf);},{'priority':'high'});}}class J extends _0x59c88b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x27b8e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x27b8e2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x27b8e2['enableCommand']('findNext'),_0x27b8e2['enableCommand']('findPrevious'),_0x27b8e2['enableCommand']('replace'),_0x27b8e2['enableCommand']('replaceAll');}['handleFindCommand'](_0x333bc1,_0x3e22c3,_0x35ecd6={}){const _0x4f1715=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x333bc1(_0x39396a=>{let _0x375783=('string'==typeof _0x3e22c3?_0x4f1715['findByTextCallback'](_0x3e22c3,_0x35ecd6):_0x3e22c3)(_0x39396a);Array['isArray'](_0x375783)&&(_0x375783={'results':_0x375783,'searchText':'string'==typeof _0x3e22c3?_0x3e22c3:''});const _0x5a77df=_0x375783['results']['filter'](_0x14b0db=>!0x1===this['_isInDeletionRange'](_0x14b0db,_0x39396a['item']));return{..._0x375783,'results':_0x5a77df};},_0x35ecd6);}['_isInDeletionRange'](_0x5e36d1,_0x227052){const _0x404265=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x227052,_0x5e36d1['start']),this['editor']['model']['createPositionAt'](_0x227052,_0x5e36d1['end']));for(const _0x2f7829 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x404265['getIntersection'](_0x2f7829['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 _0x59c88b{['afterInit'](){const _0xbe512d=this['editor']['locale'],_0x2ce971=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x50cab2,commandName:_0x194474}of ro)this['editor']['plugins']['has'](_0x50cab2)&&(_0x2ce971['enableDefaultAttributesIntegration'](_0x194474),_0x2ce971['registerInlineAttribute'](_0x194474));_0x2ce971['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xbe512d,'FORMAT_FONT_SIZE')),_0x2ce971['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xbe512d,'FORMAT_FONT_FAMILY')),_0x2ce971['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xbe512d,'FORMAT_FONT_COLOR')),_0x2ce971['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xbe512d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34c307=this['editor'],_0x3da3a3=_0x34c307['locale'];_0x34c307['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f0d24=>{const _0x356f6e=_0x3da3a3['t'];if('formatInline'!=_0x3f0d24['type'])return;const {data:_0x56a07f}=_0x3f0d24;if(null!=_0x56a07f){if('fontSize'==_0x56a07f['commandName']){const _0x5e8ed4=_0x56a07f['commandParams'][0x0]['value'];if(_0x5e8ed4){const _0x240f53=_0x356f6e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x340c78=>_0x340c78['model']==_0x5e8ed4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3da3a3,'*Set\x20font\x20size:*\x20%0',_0x240f53)};}return{'type':'format','content':o(_0x3da3a3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x56a07f['commandName']){const _0x511c74=_0x56a07f['commandParams'][0x0]['value'];return _0x511c74?{'type':'format','content':o(_0x3da3a3,'*Set\x20font\x20family:*\x20%0',_0x511c74)}:{'type':'format','content':o(_0x3da3a3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x56a07f['commandName']){const _0x9705aa=_0x56a07f['commandParams'][0x0]['value'];if(_0x9705aa){const _0x2506e6=_0x57f3d7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x57ddc=>_0x57ddc['model']==_0x9705aa);let _0x1ca24a=_0x9705aa,_0x2f7322='';return _0x2506e6&&(_0x1ca24a=_0x2506e6['label'],_0x2f7322=_0x356f6e(_0x1ca24a)['toLowerCase']()),{'type':'format','content':o(_0x3da3a3,'*Set\x20font\x20color:*\x20%0',_0x2f7322)['trim'](),'color':{'value':_0x9705aa,'title':_0x2f7322||_0x1ca24a}};}return{'type':'format','content':o(_0x3da3a3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x56a07f['commandName']){const _0x49b77e=_0x56a07f['commandParams'][0x0]['value'];if(_0x49b77e){const _0x54198c=_0x57f3d7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4be5ad=>_0x4be5ad['model']==_0x49b77e);let _0x5a14ee=_0x49b77e,_0x4c9e22='';return _0x54198c&&(_0x5a14ee=_0x54198c['label'],_0x4c9e22=_0x356f6e(_0x5a14ee)['toLowerCase']()),{'type':'format','content':o(_0x3da3a3,'*Set\x20font\x20background\x20color:*\x20%0',_0x4c9e22)['trim'](),'color':{'value':_0x49b77e,'title':_0x4c9e22||_0x5a14ee}};}return{'type':'format','content':o(_0x3da3a3,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x59c88b{['afterInit'](){const _0x43a051=this['editor'],_0x2c051e=_0x43a051['plugins']['get']('TrackChangesEditing'),_0x59ac49=_0x43a051['commands']['get']('copyFormat'),_0x132461=_0x43a051['commands']['get']('pasteFormat');_0x59ac49&&_0x132461&&(_0x2c051e['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c051e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x50c4e7=this['editor'],_0x4d6c0e=_0x50c4e7['locale'];_0x50c4e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3195e3=>{if('formatBlock'!=_0x3195e3['type']&&'formatInline'!=_0x3195e3['type'])return;const {data:_0x5193cf}=_0x3195e3;if(_0x5193cf&&'pasteFormat'===_0x5193cf['commandName']){const _0x1d5d3c=[],_0x4fdf28=_0x5193cf['commandParams'][0x0];for(const [_0x1026ef,_0x5d0caa]of Object['entries'](_0x4fdf28))_0x1d5d3c['push'](so(_0x50c4e7,_0x1026ef,_0x5d0caa));return _0x1d5d3c['length']?{'type':'format','content':o(_0x4d6c0e,'*Set\x20format\x20to:*\x20%0',_0x1d5d3c['join'](',\x20'))}:{'type':'format','content':o(_0x4d6c0e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x691ff1,_0x4ac0be,_0x2c9b4c){const _0x2564b2=_0x691ff1['locale']['t'],_0x47b7ad=_0x4ac0be['split'](/(?=[A-Z])/)['join']('\x20'),_0xa5f482=_0x2564b2(_0x47b7ad['charAt'](0x0)['toUpperCase']()+_0x47b7ad['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2c9b4c)return _0xa5f482;if('fontColor'===_0x4ac0be||'fontBackgroundColor'===_0x4ac0be){const _0x503fe8=_0x57f3d7(_0x691ff1['config']['get']('fontColor.colors'))['find'](_0x1b17e0=>_0x1b17e0['model']==_0x2c9b4c);return _0xa5f482+'\x20('+(_0x503fe8?_0x2564b2(_0x503fe8['label'])['toLowerCase']():_0x2c9b4c)+')';}if('fontSize'===_0x4ac0be&&isNaN(parseFloat(_0x2c9b4c))){const _0x49e118=_0x691ff1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x691ff1['config']['get']('fontSize.options'))['find'](_0x44712e=>_0x44712e['model']==_0x2c9b4c);return _0xa5f482+'\x20('+(_0x49e118?_0x2564b2(_0x49e118['title'])['toLowerCase']():_0x2c9b4c)+')';}return _0xa5f482+'\x20('+_0x2c9b4c+')';}class Y extends _0x59c88b{['_headingOptions'];['afterInit'](){const _0x39d52d=this['editor'];if(!_0x39d52d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x39d52d['config']['get']('heading.options');const _0x1eb30c=_0x39d52d['locale'],_0x5891df=_0x39d52d['plugins']['get']('TrackChangesEditing');_0x5891df['enableDefaultAttributesIntegration']('heading');for(const _0x228ffe of this['_headingOptions'])'paragraph'!=_0x228ffe['model']&&_0x5891df['descriptionFactory']['registerElementLabel'](_0x228ffe['model'],_0x5e32b7=>{const _0x280c88=this['_getHeadingLevel'](_0x228ffe['model']);return null!==_0x280c88?_0x2b7777(_0x5e32b7,_0x280c88):_0x2ab5d6(_0x5e32b7,_0x228ffe['title']);});function _0x2b7777(_0x2045f3,_0x5af785){return o(_0x1eb30c,'ELEMENT_HEADING',[_0x2045f3,_0x5af785]);}function _0x2ab5d6(_0x252bc3,_0x35862e){return o(_0x1eb30c,'ELEMENT_HEADING_CUSTOM',[_0x252bc3,_0x35862e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9e46c8=this['editor'],_0x3d2051=_0x9e46c8['locale'];function _0x58d432(_0x3f6922,_0x1fa71e){return o(_0x3d2051,'ELEMENT_HEADING_CUSTOM',[_0x3f6922,_0x1fa71e]);}_0x9e46c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d8d56=>{if('formatBlock'!=_0x3d8d56['type'])return;const {data:_0x39ad0b}=_0x3d8d56;if(_0x39ad0b&&'heading'==_0x39ad0b['commandName']){const _0x1efebb=_0x39ad0b['commandParams'][0x0]['value'],_0x297246=this['_getHeadingLevel'](_0x1efebb);if(null!==_0x297246)return{'type':'format','content':o(_0x3d2051,'*Change\x20to:*\x20%0',(_0x1751eb=0x1,_0xc40de3=_0x297246,o(_0x3d2051,'ELEMENT_HEADING',[_0x1751eb,_0xc40de3])))};const _0x44058b=this['_headingOptions']['find'](_0x317279=>_0x317279['model']===_0x1efebb)['title'];return{'type':'format','content':o(_0x3d2051,'*Change\x20to:*\x20%0',_0x58d432(0x1,_0x44058b))};}var _0x1751eb,_0xc40de3;});}['_getHeadingLevel'](_0x5084ea){const _0x123880=_0x5084ea['match'](/^heading(\d+)/);if(_0x123880)return _0x123880[0x1];const _0x4fa892=this['_headingOptions']?.['find'](_0x3e577e=>_0x3e577e['model']==_0x5084ea);if(_0x4fa892&&_0x4fa892['view']){const _0x33d51e=_0x4fa892['view'],_0x4199dd=(_0x33d51e['name']??_0x33d51e)['match'](/^h(\d+)/);if(_0x4199dd)return _0x4199dd[0x1];}return null;}}class Z extends _0x59c88b{['afterInit'](){const _0x5cd2f3=this['editor'];if(!_0x5cd2f3['plugins']['has']('HighlightEditing'))return;const _0x10ac04=_0x5cd2f3['plugins']['get']('TrackChangesEditing'),_0x2b2c01=_0x5cd2f3['locale'];_0x10ac04['enableDefaultAttributesIntegration']('highlight'),_0x10ac04['registerInlineAttribute']('highlight'),_0x10ac04['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2b2c01,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2db5d5=this['editor'],_0x4ae435=_0x2db5d5['locale'];_0x2db5d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x569ee5=>{if('formatInline'!=_0x569ee5['type'])return;const {data:_0x38fc99}=_0x569ee5;if(_0x38fc99&&'highlight'==_0x38fc99['commandName']){const _0x39e595=_0x4ae435['t'],_0x5c25fa=_0x38fc99['commandParams'][0x0]['value'];if(_0x5c25fa){const _0x1b7b39=_0x2db5d5['config']['get']('highlight.options')['find'](_0x1143e6=>_0x1143e6['model']==_0x5c25fa),_0x593076=_0x39e595(_0x1b7b39['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ae435,'*Set\x20highlight:*\x20%0',_0x593076),'color':{'value':_0x1b7b39['color'],'title':_0x1b7b39['title']}};}return{'type':'format','content':o(_0x4ae435,'*Remove\x20highlight*',o(_0x4ae435,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x59c88b{['afterInit'](){const _0x4190e9=this['editor'];if(!_0x4190e9['plugins']['has']('HorizontalLineEditing'))return;_0x4190e9['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4cf511=_0x4190e9['plugins']['get']('TrackChangesEditing'),_0x48bca8=_0x4190e9['locale'];_0x4cf511['descriptionFactory']['registerElementLabel']('horizontalLine',_0x523b48=>o(_0x48bca8,'ELEMENT_HORIZONTAL_LINE',_0x523b48)),_0x4190e9['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x212678,{writer:_0x92835c,options:_0x4c3884})=>{if(!_0x4c3884['showSuggestionHighlights'])return null;const _0x1643c6=_0x92835c['createContainerElement']('div'),_0x2e008c=_0x92835c['createEmptyElement']('hr');return _0x92835c['addClass']('ck-horizontal-line',_0x1643c6),_0x92835c['insert'](_0x92835c['createPositionAt'](_0x1643c6,0x0),_0x2e008c),_0x1643c6;},'converterPriority':'high'});}}class et extends _0x59c88b{['afterInit'](){const _0x504029=this['editor'];if(!_0x504029['plugins']['has']('HtmlEmbed'))return;const _0x4e92d2=_0x504029['plugins']['get']('TrackChangesEditing'),_0x587066=_0x504029['locale'];_0x4e92d2['descriptionFactory']['registerElementLabel']('rawHtml',_0x319a92=>o(_0x587066,'ELEMENT_HTML_EMBED',_0x319a92)),_0x4e92d2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4e92d2['registerBlockAttribute']('value'),_0x4e92d2['descriptionFactory']['registerDescriptionCallback'](_0x66aafe=>{if('attribute'!=_0x66aafe['type'])return;const {data:_0x5206d9}=_0x66aafe;if(_0x5206d9&&'value'==_0x5206d9['key']&&_0x66aafe['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x277136=o(_0x587066,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x587066,'*Change\x20%0\x20content*',_0x277136)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe9e2f8=this['editor'],_0x19d437=_0xe9e2f8['locale'];_0xe9e2f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb225dc=>{if('formatBlock'!=_0xb225dc['type'])return;const {data:_0x4a04ac}=_0xb225dc;if(_0x4a04ac&&'htmlEmbed'==_0x4a04ac['commandName']){const _0x4ea99c=o(_0x19d437,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x19d437,'*Change\x20%0\x20content*',_0x4ea99c)};}});}}class it extends _0x59c88b{['afterInit'](){const _0x14a602=this['editor'];if(!_0x14a602['plugins']['has']('ImageEditing'))return;const _0x52b042=_0x14a602['plugins']['get']('TrackChangesEditing'),_0x104575=_0x14a602['plugins']['get']('ImageUtils'),_0x25dbd5=_0x14a602['locale'];_0x52b042['enableCommand']('insertImage'),_0x52b042['descriptionFactory']['registerElementLabel']('imageBlock',_0x25887e=>o(_0x25dbd5,'ELEMENT_IMAGE',_0x25887e)),_0x52b042['descriptionFactory']['registerElementLabel']('imageInline',_0x1ee4e7=>o(_0x25dbd5,'ELEMENT_INLINE_IMAGE',_0x1ee4e7)),_0x52b042['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x25dbd5,'ELEMENT_CAPTION')),_0x14a602['plugins']['has']('ImageUploadEditing')&&_0x52b042['enableCommand']('uploadImage'),_0x14a602['plugins']['has']('ImageBlockEditing')&&_0x14a602['plugins']['has']('ImageInlineEditing')&&(_0x52b042['enableCommand']('imageTypeInline',(_0x197310,_0x267e29)=>{const _0x551ef3=_0x104575['getClosestSelectedImageElement'](_0x14a602['model']['document']['selection']);_0x14a602['model']['change'](()=>{_0x52b042['markBlockFormat'](_0x551ef3,{'commandName':'imageTypeInline','commandParams':[_0x267e29]},[],'convertBlockImageToInline');});}),_0x52b042['enableCommand']('imageTypeBlock',(_0x5542e1,_0x527bda)=>{_0x14a602['model']['change'](_0xdbbd7c=>{let _0x5c582b=_0x104575['getClosestSelectedImageElement'](_0x14a602['model']['document']['selection']),_0x538542=_0xdbbd7c['createRangeOn'](_0x5c582b);const _0x5e90c0=_0x4e84c3['fromPosition'](_0x538542['start'],'toPrevious'),_0x3c7042=_0x4e84c3['fromPosition'](_0x538542['end'],'toNext');_0x52b042['forceDefaultExecution'](()=>_0x5542e1(_0x527bda)),_0x5c582b=_0x104575['getClosestSelectedImageElement'](_0x14a602['model']['document']['selection']),_0x538542=_0xdbbd7c['createRangeOn'](_0x5c582b);const _0x32c21e=_0xdbbd7c['createRange'](_0x5e90c0,_0x3c7042);_0x5e90c0['detach'](),_0x3c7042['detach'](),_0x52b042['markBlockFormat'](_0x5c582b,{'commandName':'imageTypeInline','commandParams':[_0x527bda]},[],'convertInlineImageToBlock'),_0x32c21e['start']['isBefore'](_0x538542['start'])&&_0x52b042['markInsertion'](_0xdbbd7c['createRange'](_0x32c21e['start'],_0x538542['start']),'convertInlineImageToBlock'),_0x538542['end']['isBefore'](_0x32c21e['end'])&&_0x52b042['markInsertion'](_0xdbbd7c['createRange'](_0x538542['end'],_0x32c21e['end']),'convertInlineImageToBlock');});}),_0x52b042['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x52b042['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x52b042['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x52b042['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x52b042['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x52b042['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x161115])=>{const _0x4d72ce=_0x52b042['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x28808c=_0x161115['start'],_0x2c4dfa=_0x161115['end'];const _0x250c5e=_0x14a602['model']['schema']['getNearestSelectionRange'](_0x28808c,'backward'),_0xbb902d=_0x14a602['model']['schema']['getNearestSelectionRange'](_0x2c4dfa,'forward');_0x250c5e['isCollapsed']&&(_0x28808c=_0x250c5e['start']),_0xbb902d['isCollapsed']&&(_0x2c4dfa=_0xbb902d['end']),_0x4d72ce([_0x14a602['model']['createRange'](_0x28808c,_0x2c4dfa)]);}),_0x52b042['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5e4c51),_0x52b042['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5e4c51)),_0x14a602['plugins']['has']('ImageCaptionEditing')&&(_0x52b042['enableCommand']('toggleImageCaption',(_0x49ad63,_0x4ce571)=>{const _0x7746ab=_0x14a602['plugins']['get']('ImageCaptionUtils');let _0x253abd=_0x104575['getClosestSelectedImageElement'](_0x14a602['model']['document']['selection']),_0x4bcf3b=_0x7746ab['getCaptionFromImageModelElement'](_0x253abd);_0x14a602['model']['change'](()=>{if(_0x4bcf3b)return void _0x52b042['markDeletion'](_0x14a602['model']['createRangeOn'](_0x4bcf3b));const _0x2fcd14=_0x104575['isBlockImage'](_0x253abd);_0x49ad63(_0x4ce571),_0x253abd=_0x104575['getClosestSelectedImageElement'](_0x14a602['model']['document']['selection']),_0x4bcf3b=_0x7746ab['getCaptionFromImageModelElement'](_0x253abd),_0x52b042['markInsertion'](_0x14a602['model']['createRangeOn'](_0x4bcf3b),_0x2fcd14?null:'imageCaption');});}),_0x52b042['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5e4c51));const _0x637d9e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d6eba(_0x3fd14a,_0x193aba){const _0x823a9e=_0x637d9e['findIndex'](({type:_0x1c98da,subType:_0x2e116c})=>_0x3fd14a['type']==_0x1c98da&&_0x3fd14a['subType']==_0x2e116c),_0x2abe96=_0x637d9e['findIndex'](({type:_0x5b9754,subType:_0x6f6d69})=>_0x193aba['type']==_0x5b9754&&_0x193aba['subType']==_0x6f6d69);if(_0x823a9e<0x0||_0x2abe96<0x0)return!0x1;const _0x3e72d4=_0x3fd14a['getFirstRange'](),_0xb3af0b=_0x193aba['getFirstRange']();if((0x0==_0x823a9e||0x1==_0x823a9e)&&0x2==_0x2abe96&&_0x3e72d4['isIntersecting'](_0xb3af0b))return!0x0;if(0x2==_0x823a9e&&0x3==_0x2abe96){const _0x27c4bc=_0x52b042['_findSuggestions'](_0x3e72d4,'insertion')['filter'](({suggestion:_0x48edd6,meta:_0x2640d9})=>_0x2640d9['isOwn']&&'convertInlineImageToBlock'==_0x48edd6['subType']);if(_0x27c4bc['length']>0x1&&_0xb3af0b['end']['isEqual'](_0x3e72d4['start']))return!0x0;if(0x1==_0x27c4bc['length']&&(_0x3e72d4['start']['isEqual'](_0xb3af0b['end'])||_0x3e72d4['end']['isEqual'](_0xb3af0b['start'])))return!0x0;}if(0x3==_0x823a9e&&0x3==_0x2abe96&&_0x3e72d4['start']['isBefore'](_0xb3af0b['start'])){const _0x47ab37=_0x3e72d4['end']['nodeAfter'],_0x52d141=_0xb3af0b['start']['nodeBefore'];return _0x104575['isBlockImage'](_0x47ab37)&&_0x47ab37===_0x52d141;}return!0x1;}function _0x5e4c51(_0xe4fd93,_0x532052){return _0x3d6eba(_0xe4fd93,_0x532052)?[_0xe4fd93,_0x532052]:_0x3d6eba(_0x532052,_0xe4fd93)?[_0x532052,_0xe4fd93]:null;}_0x14a602['plugins']['has']('ImageResize')&&(_0x52b042['enableDefaultAttributesIntegration']('resizeImage'),_0x52b042['registerBlockAttribute']('resizedWidth'),_0x52b042['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x25dbd5,'FORMAT_IMAGE_SIZE'))),_0x14a602['plugins']['has']('ImageTextAlternativeEditing')&&(_0x52b042['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x52b042['registerBlockAttribute']('alt')),_0x52b042['descriptionFactory']['registerDescriptionCallback'](_0x1dd55a=>{if(!!_0x637d9e['find'](({type:_0x4deece,subType:_0x173a8d})=>_0x1dd55a['type']==_0x4deece&&_0x1dd55a['subType']==_0x173a8d))return _0x1dd55a['previous']?{}:void 0x0;}),_0x52b042['descriptionFactory']['registerDescriptionCallback'](_0x521731=>{if('insertion'==_0x521731['type']||'deletion'==_0x521731['type']){const _0x4ca11a=_0x521731['getContainedElement']();if(_0x4ca11a&&_0x4ca11a['is']('element','caption'))return{'type':'insertion'==_0x521731['type']?'addObject':'removeObject','element':_0x4ca11a,'quantity':0x1};}}),_0x52b042['descriptionFactory']['registerDescriptionCallback'](_0x24330e=>'formatBlock'==_0x24330e['type']&&'convertInlineImageToBlock'==_0x24330e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x24330e['type']&&'convertBlockImageToInline'==_0x24330e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x52b042['descriptionFactory']['registerDescriptionCallback'](_0x4afc42=>{if('attribute'!=_0x4afc42['type'])return;const {data:_0x114ed1}=_0x4afc42;if(!_0x114ed1||'alt'!=_0x114ed1['key'])return;const _0x4d7bed=_0x114ed1['newValue'];return _0x4d7bed?{'type':'format','content':o(_0x25dbd5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d7bed+'\x22')}:{'type':'format','content':o(_0x25dbd5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd58149=this['editor'],_0x44ec3d=_0xd58149['locale'];_0xd58149['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x300cd4=>{if('formatBlock'!=_0x300cd4['type']&&'formatInline'!=_0x300cd4['type'])return;const {data:_0x19b62f}=_0x300cd4;if(_0x19b62f){if('imageTextAlternative'==_0x19b62f['commandName']){const _0x1b71b8=_0x19b62f['commandParams'][0x0]['newValue'];return _0x1b71b8?{'type':'format','content':o(_0x44ec3d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b71b8+'\x22')}:{'type':'format','content':o(_0x44ec3d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x19b62f['commandName']){const _0x7d6bb3=_0x19b62f['commandParams'][0x0]['width'];return _0x7d6bb3?{'type':'format','content':o(_0x44ec3d,'*Set\x20image\x20width:*\x20%0',_0x7d6bb3)}:{'type':'format','content':o(_0x44ec3d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x59c88b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xac3881=this['editor']['locale'],_0x232bad=this['editor']['plugins']['get']('TrackChangesEditing');_0x232bad['enableDefaultAttributesIntegration']('replaceImageSource'),_0x232bad['registerBlockAttribute']('src'),_0x232bad['descriptionFactory']['registerDescriptionCallback'](_0x3aa051=>{if('attribute'!=_0x3aa051['type'])return;const {data:_0x292377}=_0x3aa051;return _0x292377&&'src'==_0x292377['key']?_0x292377['newValue']&&_0x292377['oldValue']?{'type':'format','content':o(_0xac3881,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x17e37d=this['editor']['plugins']['get']('TrackChangesEditing');_0x17e37d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x17e37d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17e37d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x17e37d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eec95=this['editor'],_0x192c6f=_0x3eec95['locale'];_0x3eec95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c5885=>{if('formatBlock'!=_0x3c5885['type']&&'formatInline'!=_0x3c5885['type'])return;const {data:_0x430630}=_0x3c5885;if(!_0x430630||'replaceImageSource'!=_0x430630['commandName'])return;return{'type':'format','content':o(_0x192c6f,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x59c88b{['afterInit'](){const _0x3dd38b=this['editor'];if(!_0x3dd38b['plugins']['has']('ImageStyleEditing'))return;const _0xa193f1=_0x3dd38b['plugins']['get']('TrackChangesEditing'),_0x4f0573=_0x3dd38b['plugins']['get']('ImageUtils'),_0x951637={};_0xa193f1['enableCommand']('imageStyle',(_0x5260c4,_0x247810)=>{const _0x3ac367=_0x3dd38b['plugins']['get']('Users')['me'],_0x382a68=_0x3dd38b['commands']['get']('imageStyle');let _0x1556ec=_0x4f0573['getClosestSelectedImageElement'](_0x3dd38b['model']['document']['selection']),_0x1b1795=_0x3dd38b['model']['createRangeOn'](_0x1556ec),_0x5ebfcb=_0x382a68['value'];if(_0x5ebfcb==_0x247810['value'])return;const _0x3de92e={'commandName':'imageStyle','commandParams':[_0x247810],'formatGroupId':_0x572f80()};_0x3dd38b['model']['change'](()=>{if(_0xa193f1['getSuggestions']()['filter'](_0x16f4af=>_0x16f4af['isInContent']&&_0x3ac367==_0x16f4af['author']&&('formatBlock'==_0x16f4af['type']||'formatInline'==_0x16f4af['type'])&&('imageStylePreApply'==_0x16f4af['subType']||'imageStylePostApply'==_0x16f4af['subType'])&&_0x16f4af['getFirstRange']()['isEqual'](_0x1b1795))['forEach'](_0x5e4ddc=>_0xa193f1['discardSuggestion'](_0x5e4ddc['head'])),_0x1556ec=_0x4f0573['getClosestSelectedImageElement'](_0x3dd38b['model']['document']['selection']),_0x1b1795=_0x3dd38b['model']['createRangeOn'](_0x1556ec),_0x382a68['refresh'](),_0x3dd38b['commands']['get']('imageTypeInline')['refresh'](),_0x3dd38b['commands']['get']('imageTypeBlock')['refresh'](),_0x5ebfcb=_0x382a68['value'],_0x5ebfcb!=_0x247810['value'])return _0x4f0573['isInlineImage'](_0x1556ec)&&_0x382a68['shouldConvertImageType'](_0x247810['value'],_0x1556ec)?(_0x5260c4({..._0x247810,'setImageSizes':!0x1}),_0x1556ec=_0x4f0573['getClosestSelectedImageElement'](_0x3dd38b['model']['document']['selection']),void _0xa193f1['markBlockFormat'](_0x1556ec,{..._0x3de92e,'commandReversedParams':[{'value':_0x5ebfcb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4f0573['isBlockImage'](_0x1556ec)?_0xa193f1['markBlockFormat'](_0x1556ec,_0x3de92e,[],'imageStylePostApply'):_0xa193f1['markInlineFormat'](_0x1b1795,_0x3de92e,'imageStylePostApply'));});});for(const _0x4434d0 of _0x3dd38b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x951637[_0x4434d0['name']]=_0x4434d0['title']['toLowerCase']();_0xa193f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xa193f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xa193f1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xa193f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x34d9fc])=>{_0x4f0573['setImageNaturalSizeAttributes'](_0x34d9fc['getContainedElement']());}),_0xa193f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5b7aa3,_0x32ccba)=>{_0xa193f1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5b7aa3,{'commandName':_0x32ccba['commandName'],'commandParams':_0x32ccba['commandReversedParams']});}),_0xa193f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x47e968,_0x2a495c){if(_0x1c61a5(_0x47e968,_0x2a495c))return[_0x47e968,_0x2a495c];if(_0x1c61a5(_0x2a495c,_0x47e968))return[_0x2a495c,_0x47e968];return null;});const _0x550c02=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1c61a5(_0x525437,_0x3cdb81){const _0x2044ed=_0x550c02['findIndex'](({type:_0x5cec1a,subType:_0x18812b})=>_0x525437['type']==_0x5cec1a&&_0x525437['subType']==_0x18812b),_0x1ef4c6=_0x550c02['findIndex'](({type:_0x4527cf,subType:_0x51e17c})=>_0x3cdb81['type']==_0x4527cf&&_0x3cdb81['subType']==_0x51e17c);if(_0x2044ed<0x0||_0x1ef4c6<0x0)return!0x1;const _0x28d789=_0x525437['getFirstRange'](),_0x12f77e=_0x3cdb81['getFirstRange']();if((0x0==_0x2044ed||0x1==_0x2044ed)&&0x2==_0x1ef4c6&&_0x28d789['isIntersecting'](_0x12f77e))return!0x0;if(0x2==_0x2044ed&&0x3==_0x1ef4c6){const _0x149295=_0xa193f1['_findSuggestions'](_0x28d789,'insertion')['filter'](({suggestion:_0x36bf23,meta:_0x344ab1})=>_0x344ab1['isOwn']&&'convertInlineImageToBlock'==_0x36bf23['subType']);if(_0x149295['length']>0x1&&_0x12f77e['end']['isEqual'](_0x28d789['start']))return!0x0;if(0x1==_0x149295['length']&&(_0x28d789['start']['isEqual'](_0x12f77e['end'])||_0x28d789['end']['isEqual'](_0x12f77e['start'])))return!0x0;}if(0x3==_0x2044ed&&0x3==_0x1ef4c6&&_0x28d789['start']['isBefore'](_0x12f77e['start'])){const _0x39307f=_0x28d789['end']['nodeAfter'],_0x61235c=_0x12f77e['start']['nodeBefore'];return _0x4f0573['isBlockImage'](_0x39307f)&&_0x39307f===_0x61235c;}return!0x1;}_0x3dd38b['model']['document']['registerPostFixer'](()=>{let _0x39a4c6=!0x1;const _0x65f6e6=Array['from'](_0x3dd38b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28b81a,data:_0x2465e4}of _0x65f6e6){const {group:_0x21d752,type:_0x29ad9c,subType:_0x566e71,id:_0x447795}=_0xa193f1['_splitMarkerName'](_0x28b81a);if('suggestion'==_0x21d752&&_0xa193f1['hasSuggestion'](_0x447795)){if('formatBlock'==_0x29ad9c&&('imageStylePreApply'==_0x566e71||'imageStylePostApply'==_0x566e71)){const _0xbddb1a=_0xa193f1['getSuggestion'](_0x447795);if(_0x2465e4['newRange']){const _0x34d414=_0xbddb1a['getFirstRange']()['getContainedElement']();if(_0x4f0573['isBlockImage'](_0x34d414))continue;_0xa193f1['discardSuggestion'](_0xbddb1a),_0x39a4c6=!0x0;}}if('insertion'==_0x29ad9c&&'imageCaption'==_0x566e71&&!_0x2465e4['newRange']){const _0x46bb44=_0xa193f1['getSuggestion'](_0x447795);_0x46bb44['next']&&_0x46bb44['next']['isInContent']&&(_0xa193f1['discardSuggestion'](_0x46bb44['next']),_0x39a4c6=!0x0);}}}return _0x39a4c6;}),this['_registerLegacyDescription'](_0x951637);}['_registerLegacyDescription'](_0xf60940){const _0x1f90c6=this['editor'],_0x4375e2=_0x1f90c6['locale'];_0x1f90c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x346dc8=>{if('formatBlock'!=_0x346dc8['type']&&'formatInline'!=_0x346dc8['type'])return;const {data:_0x5bd7ec}=_0x346dc8;if(!_0x5bd7ec||'imageStyle'!=_0x5bd7ec['commandName'])return;const _0x59dd40=_0x5bd7ec['commandParams'][0x0]['value'];return _0x4394f8('side'===_0x59dd40?o(_0x4375e2,'FORMAT_SIDE_IMAGE'):_0xf60940[_0x59dd40]||_0x59dd40);function _0x4394f8(_0x24eded){return{'type':'format','content':o(_0x4375e2,'*Format:*\x20%0',_0x24eded)};}});}}class ot extends _0x59c88b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x104121){super(_0x104121),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xe61f16=this['editor'],_0x4f07cd=_0xe61f16['commands']['get']('importWord'),_0x203ff6=_0xe61f16['commands']['get']('trackChanges');_0x4f07cd&&(_0x4f07cd['on']('execute',(_0x247e1e,[,_0x24d223])=>{this['_trackChangesValueDuringImport']=_0x203ff6['value'],_0x24d223['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f07cd,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f07cd,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x203ff6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xe61f16['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x445052,_0x335386){const {suggestions:_0x3336eb}=_0x335386,_0x248274=this['editor']['commands']['get']('trackChanges'),_0x34ece4=_0x248274['value'];this['_trackChangesValueDuringImport']!==_0x34ece4&&(_0x248274['execute'](),this['_trackChangesExecuted']=!0x0),_0x3336eb&&_0x3336eb['forEach'](({id:_0x233ed3,type:_0xbd1682,author:_0x48bfd8,created_at:_0x59e819})=>{const _0x2ec1c0={'id':_0x233ed3,'type':_0xbd1682,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x48bfd8,'createdAt':_0x59e819?new Date(_0x59e819):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2ec1c0);});}}class rt extends _0x59c88b{['afterInit'](){const _0x180e9f=this['editor'],_0x41f581=_0x180e9f['plugins']['get']('TrackChangesEditing');if(_0x180e9f['plugins']['has']('IndentEditing')&&(_0x41f581['enableCommand']('indent'),_0x41f581['enableCommand']('outdent')),_0x180e9f['plugins']['has']('IndentBlock')){for(const _0x42b41d of['indentBlock','outdentBlock'])_0x41f581['enableDefaultAttributesIntegration'](_0x42b41d);}const _0x570baa=_0x180e9f['locale'];_0x41f581['registerBlockAttribute']('blockIndent'),_0x41f581['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x570baa,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fcd34=this['editor'],_0x5296f4=_0x4fcd34['locale'],_0x2b4ddd=_0x4fcd34['plugins']['get']('TrackChangesEditing');_0x2b4ddd['descriptionFactory']['registerDescriptionCallback'](_0x497995=>{if('formatBlock'!=_0x497995['type'])return;const {data:_0x4857ff}=_0x497995;if(!_0x4857ff)return;if('indentBlock'!=_0x4857ff['commandName']&&'outdentBlock'!=_0x4857ff['commandName'])return;const _0x52db65=_0x497995['getItems']()[0x0],_0x59c5e3=_0x2b4ddd['descriptionFactory']['getItemLabel'](_0x52db65);return'indentBlock'==_0x4857ff['commandName']?{'type':'format','content':o(_0x5296f4,'*Indent:*\x20%0',_0x59c5e3)}:'outdentBlock'==_0x4857ff['commandName']?{'type':'format','content':o(_0x5296f4,'*Outdent:*\x20%0',_0x59c5e3)}:void 0x0;});}}class at extends _0x59c88b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x59c88b{['afterInit'](){const _0x340f4c=this['editor'];if(!_0x340f4c['plugins']['has']('LinkEditing'))return;const _0x464242=_0x340f4c['plugins']['get']('TrackChangesEditing'),_0x341c40=_0x340f4c['commands']['get']('link');_0x464242['enableDefaultAttributesIntegration']('link'),_0x464242['enableDefaultAttributesIntegration']('unlink'),_0x464242['registerInlineAttribute']('linkHref');for(const _0x44f8ed of _0x341c40['manualDecorators'])_0x464242['registerInlineAttribute'](_0x44f8ed['id']),_0x464242['descriptionFactory']['registerAttributeLabel'](_0x44f8ed['id'],'link\x20('+_0x44f8ed['label']['toLowerCase']()+')');_0x464242['descriptionFactory']['registerDescriptionCallback'](_0x404802=>{if('attribute'!=_0x404802['type'])return;const {data:_0x3c5105}=_0x404802;if(!_0x3c5105||'linkHref'!=_0x3c5105['key'])return;const _0x4685b5=_0x3c5105['newValue'],_0x64480=_0x340f4c['locale'];return{'type':'format','content':null==_0x4685b5?o(_0x64480,'*Remove\x20link*'):o(_0x64480,'*Set\x20link:*\x20%0','\x22'+_0x4685b5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d8422=this['editor'],_0x406d18=_0x4d8422['locale'];_0x4d8422['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a52ce=>{if('formatInline'!=_0x1a52ce['type'])return;const {data:_0x2fd8a5}=_0x1a52ce;if(_0x2fd8a5){if('link'==_0x2fd8a5['commandName']){const _0x5e5bd7=_0x2fd8a5['commandParams'][0x0];return{'type':'format','content':o(_0x406d18,'*Set\x20link:*\x20%0','\x22'+_0x5e5bd7+'\x22')};}return'unlink'==_0x2fd8a5['commandName']?{'type':'format','content':o(_0x406d18,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x59c88b{['afterInit'](){const _0x5635a2=this['editor'],_0x540186=_0x5635a2['locale'];if(!_0x5635a2['plugins']['has']('LegacyListEditing'))return;const _0x333bda=_0x5635a2['plugins']['get']('TrackChangesEditing'),_0x70ba0d=_0x5635a2['plugins']['has']('LegacyTodoListEditing');function _0x777db3(_0x1fc0d7){return()=>{const _0x160be3=_0x5635a2['model']['document']['selection'],_0x3a5c66=_0x5635a2['commands']['get'](_0x1fc0d7);if(_0x3a5c66['value'])return void _0x5635a2['execute']('paragraph',{});const _0x26831d=_0x1fc0d7['slice'](0x0,-0x4),_0x53e143=function(_0x3d7fcb,_0x51e9f7,_0x514362){let _0x5cd7b0=Array['from'](_0x3d7fcb)['filter'](_0x5cab1a=>function(_0x1a89f1,_0x4343fc){return _0x4343fc['checkChild'](_0x1a89f1['parent'],'listItem')&&!_0x4343fc['isObject'](_0x1a89f1);}(_0x5cab1a,_0x514362));_0x5cd7b0=_0x5cd7b0['filter'](_0x2f3046=>!_0x2f3046['is']('element','listItem')||_0x2f3046['getAttribute']('listType')!=_0x51e9f7);const _0x51dcfa=new Set();for(const _0x11c6aa of _0x5cd7b0)_0x11c6aa['is']('element','listItem')?_0x51dcfa['add'](me(_0x11c6aa)):_0x51dcfa['add'](_0x11c6aa);return Array['from'](_0x51dcfa);}(_0x160be3['getSelectedBlocks'](),_0x26831d,_0x5635a2['model']['schema']);_0x5635a2['model']['change'](()=>{for(const _0x4124be of _0x53e143)_0x333bda['markBlockFormat'](_0x4124be,{'commandName':_0x1fc0d7,'commandParams':[{'forceValue':!_0x3a5c66['value']}],'formatGroupId':'blockName'},fe(_0x4124be));});};}function _0x1547de(_0x4d9272){return()=>{const _0x38cf4b=function(_0xc6652e){let _0x1d93db=Array['from'](_0xc6652e);const _0x5aed2e=_0x1d93db['findIndex'](_0x1a56df=>'listItem'!=_0x1a56df['name']);return _0x5aed2e>-0x1&&(_0x1d93db=_0x1d93db['slice'](0x0,_0x5aed2e)),_0x1d93db;}(_0x5635a2['model']['document']['selection']['getSelectedBlocks']()),_0x43b240=_0x5635a2['model']['createRange'](_0x5635a2['model']['createPositionAt'](_0x38cf4b[0x0],'before'),_0x5635a2['model']['createPositionAt'](_0x38cf4b[_0x38cf4b['length']-0x1],'end'));_0x5635a2['model']['change'](()=>{_0x333bda['markBlockFormat'](_0x43b240,{'commandName':_0x4d9272,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2fde36){const _0x2dbca2=new Set();for(const _0x1ebb32 of _0x2fde36){let _0x4ce815=_0x1ebb32['nextSibling'];for(;_0x4ce815&&_0x4ce815['getAttribute']('listIndent')>_0x1ebb32['getAttribute']('listIndent');)_0x2dbca2['add'](_0x4ce815),_0x4ce815=_0x4ce815['nextSibling'];}return Array['from'](_0x2dbca2);}(_0x38cf4b));});};}_0x333bda['enableCommand']('numberedList',_0x777db3('numberedList')),_0x333bda['enableCommand']('bulletedList',_0x777db3('bulletedList')),_0x70ba0d&&_0x333bda['enableCommand']('todoList',_0x777db3('todoList')),_0x333bda['enableCommand']('indentList',_0x1547de('indentList')),_0x333bda['enableCommand']('outdentList',_0x1547de('outdentList')),_0x70ba0d&&_0x333bda['enableCommand']('checkTodoList',()=>{const _0x158dc4=_0x5635a2['commands']['get']('checkTodoList'),_0x472876=Array['from'](_0x158dc4['_selectedElements']);_0x472876['filter'](_0x49bf55=>_0x49bf55['getAttribute']('todoListChecked')!=_0x158dc4['value']),_0x5635a2['model']['change'](()=>{for(const _0x31246a of _0x472876)_0x333bda['markBlockFormat'](_0x31246a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x158dc4['value']}]});});}),_0x333bda['descriptionFactory']['registerElementLabel']('listItem',_0x3f3fce=>o(_0x540186,'ELEMENT_LIST_ITEM',_0x3f3fce)),_0x333bda['descriptionFactory']['registerDescriptionCallback'](_0x589a73=>{if('formatBlock'!=_0x589a73['type']&&'formatInline'!=_0x589a73['type'])return;const {data:_0x377500}=_0x589a73;if(_0x377500){if('numberedList'==_0x377500['commandName']||'bulletedList'==_0x377500['commandName']||'todoList'==_0x377500['commandName'])switch(_0x377500['commandName']['replace']('List','')){case'bulleted':return _0x22dc8b(o(_0x540186,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22dc8b(o(_0x540186,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22dc8b(o(_0x540186,'ELEMENT_TODO_LIST'));}if('indentList'==_0x377500['commandName'])return{'type':'format','content':o(_0x540186,'*Indent:*\x20%0',o(_0x540186,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x377500['commandName'])return{'type':'format','content':o(_0x540186,'*Outdent:*\x20%0',o(_0x540186,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x377500['commandName'])return _0x377500['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x540186,'*Check\x20item*')}:{'type':'format','content':o(_0x540186,'*Uncheck\x20item*')};}function _0x22dc8b(_0x581672){return{'type':'format','content':o(_0x540186,'*Change\x20to:*\x20%0',_0x581672)};}});}}function me(_0x39aa8b){const _0x52893b=_0x39aa8b['getAttribute']('listIndent');if(0x0==_0x52893b)return _0x39aa8b;let _0x5a61bb=_0x39aa8b;for(;_0x39aa8b['previousSibling']&&_0x39aa8b['previousSibling']['is']('element','listItem');){const _0x2d5eb8=_0x39aa8b['previousSibling']['getAttribute']('listIndent');if(_0x2d5eb8==_0x52893b)_0x5a61bb=_0x39aa8b['previousSibling'];else{if(_0x2d5eb8<_0x52893b)break;}_0x39aa8b=_0x39aa8b['previousSibling'];}return _0x5a61bb;}function fe(_0xb84f60){const _0x462cfa=[];if(_0xb84f60['is']('element','listItem')&&_0xb84f60['getAttribute']('listIndent')>0x0){let _0x2c7c31=_0xb84f60['nextSibling'];for(;_0x2c7c31&&'listItem'==_0x2c7c31['name']&&_0x2c7c31['getAttribute']('listIndent')==_0xb84f60['getAttribute']('listIndent');)_0x462cfa['push'](_0x2c7c31),_0x2c7c31=_0x2c7c31['nextSibling'];}return _0x462cfa;}class K extends _0x59c88b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4129bd=this['editor']['config']['get']('list.properties'),_0x139df3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4129bd['styles']&&_0x139df3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4129bd['reversed']&&_0x139df3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4129bd['startIndex']&&_0x139df3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x139df3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3c1826,_0x315384={}){const _0x49bda9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4667df=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x49bda9['markMultiRangeBlockFormat'](_0x4667df,{'commandName':'listStyle','commandParams':[{'type':_0x315384['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x35b8aa,_0x5f15ca={}){const _0x9ae734=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b88b1=this['_getSuggestionBlocks'](_0x38ce8a=>_0x38ce8a['is']('element','listItem')&&'numbered'===_0x38ce8a['getAttribute']('listType'));if(_0x4b88b1['length']<0x1)return;const _0x3e6c39=_0x4b88b1['map'](_0x7216dd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7216dd,'before'),this['editor']['model']['createPositionAt'](_0x7216dd,0x0)));this['editor']['model']['change'](()=>{_0x9ae734['markMultiRangeBlockFormat'](_0x3e6c39,{'commandName':'listReversed','commandParams':[{'reversed':_0x5f15ca['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x50f9b8,_0x5647c1={}){const _0x5ccc19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53f54f=this['_getSuggestionBlocks'](_0x21afa0=>_0x21afa0['is']('element','listItem')&&'numbered'===_0x21afa0['getAttribute']('listType'));if(_0x53f54f['length']<0x1)return;const _0x375422=_0x53f54f['map'](_0x463965=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x463965,'before'),this['editor']['model']['createPositionAt'](_0x463965,0x0)));this['editor']['model']['change'](()=>{_0x5ccc19['markMultiRangeBlockFormat'](_0x375422,{'commandName':'listStart','commandParams':[{'startIndex':_0x5647c1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x20293a){if('formatBlock'!=_0x20293a['type']&&'formatInline'!=_0x20293a['type'])return;const _0x4ffcd2=this['editor']['locale'],{data:_0x214bd4}=_0x20293a;if(!_0x214bd4)return;let _0x262b7c,_0x580b0d;switch(_0x214bd4['commandName']){case'listStyle':_0x262b7c='*Change\x20to:*\x20%0',_0x580b0d={'type':'format','content':o(_0x4ffcd2,_0x262b7c,o(_0x4ffcd2,this['_getTranslationKeyForListStyle'](_0x214bd4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x262b7c=_0x214bd4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x580b0d={'type':'format','content':o(_0x4ffcd2,_0x262b7c)};break;case'listStart':_0x262b7c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x580b0d={'type':'format','content':o(_0x4ffcd2,_0x262b7c,_0x214bd4['commandParams'][0x0]['startIndex'])};}return _0x580b0d;}['_getSuggestionBlocksForListStyle'](){const _0x3068be=this['editor']['plugins']['get']('LegacyListUtils');let _0x477242=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x477242[0x0]?.['is']('element','listItem')&&_0x477242['unshift'](..._0x3068be['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x477242[_0x477242['length']-0x1]?.['is']('element','listItem')&&_0x477242['push'](..._0x3068be['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x477242=[...new Set(_0x477242)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x477242=_0x477242['filter'](_0xcae459=>_0xcae459['is']('element','listItem'))),_0x477242;}['_getSuggestionBlocks'](_0x165a16){const _0x53ea69=this['editor']['plugins']['get']('LegacyListUtils');let _0xe8c921=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x165a16)['map'](_0x46f9b9=>{const _0x1f0b75=this['editor']['model']['createPositionAt'](_0x46f9b9,0x0);return[..._0x53ea69['getSiblingNodes'](_0x1f0b75,'backward'),..._0x53ea69['getSiblingNodes'](_0x1f0b75,'forward')];})['flat']();return _0xe8c921=[...new Set(_0xe8c921)],_0xe8c921;}['_getTranslationKeyForListStyle'](_0x8f6e97){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x8f6e97)||'default')['toUpperCase']()+'_LIST_'+_0x8f6e97['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x59c88b{['afterInit'](){const _0x4b1ad9=this['editor'];if(!_0x4b1ad9['plugins']['has']('MediaEmbedEditing'))return;const _0x4e705c=_0x4b1ad9['plugins']['get']('TrackChangesEditing'),_0x36a2a2=_0x4b1ad9['locale'];_0x4e705c['enableCommand']('mediaEmbed'),_0x4e705c['descriptionFactory']['registerElementLabel']('media',_0x3b54da=>o(_0x36a2a2,'ELEMENT_MEDIA',_0x3b54da)),_0x4b1ad9['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4baf1a,{writer:_0x1ebec0,options:_0x56d016})=>{if(_0x56d016['showSuggestionHighlights'])return _0x1ebec0['createEmptyElement']('div');},'converterPriority':'high'}),_0x4b1ad9['data']['downcastDispatcher']['on']('attribute:url:media',(_0x10f0d1,_0x1d7a8b,_0x482d37)=>{_0x482d37['options']['showSuggestionHighlights']&&_0x10f0d1['stop']();},{'priority':'high'});}}class gt extends _0x59c88b{['afterInit'](){const _0x3af4f1=this['editor'];_0x3af4f1['plugins']['has']('MentionEditing')&&_0x3af4f1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x59c88b{['afterInit'](){const _0x10861b=this['editor'],_0x132bf9=_0x10861b['plugins']['get']('TrackChangesEditing');_0x10861b['plugins']['has']('MultiLevelList')&&(_0x132bf9['enableDefaultAttributesIntegration']('multiLevelList'),_0x132bf9['registerBlockAttribute']('listMarkerStyle'),_0x132bf9['descriptionFactory']['registerDescriptionCallback'](_0xc14bc8=>this['handleDescriptions'](_0xc14bc8)));}['handleDescriptions'](_0x3cb39b){const _0x3a119f=this['editor']['locale'],{data:_0x1b135}=_0x3cb39b,_0x46b505={'type':'format','content':''};if(_0x1b135&&'listMarkerStyle'==_0x1b135['key']){if(!_0x1b135['oldValue'])return{'type':'format','content':o(_0x3a119f,'*Set\x20format:*\x20%0',o(_0x3a119f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1b135['newValue']+')'};if(!_0x1b135['newValue']){let _0x8a9d3e=_0x3cb39b['head'];for(;_0x8a9d3e;){if(_0x8a9d3e['data']&&'listType'==_0x8a9d3e['data']['key']&&_0x8a9d3e['data']['newValue'])return _0x46b505;_0x8a9d3e=_0x8a9d3e['next'];}return{'type':'format','content':o(_0x3a119f,'*Remove\x20format:*\x20%0',o(_0x3a119f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1b135['oldValue']+')'};}}}}class mt extends _0x59c88b{['afterInit'](){const _0x470943=this['editor'];if(!_0x470943['plugins']['has']('PageBreakEditing'))return;_0x470943['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3ee7cd=_0x470943['plugins']['get']('TrackChangesEditing'),_0x39b6c1=_0x470943['locale'];_0x3ee7cd['descriptionFactory']['registerElementLabel']('pageBreak',_0x55e57c=>o(_0x39b6c1,'ELEMENT_PAGE_BREAK',_0x55e57c));}}class dt extends _0x59c88b{['afterInit'](){const _0x328a12=this['editor'];if(!_0x328a12['plugins']['has']('Paragraph'))return;const _0x417002=_0x328a12['locale'],_0x1d39bb=_0x328a12['plugins']['get']('TrackChangesEditing');_0x1d39bb['descriptionFactory']['registerElementLabel']('paragraph',_0x3ca1b3=>o(_0x417002,'ELEMENT_PARAGRAPH',_0x3ca1b3)),_0x1d39bb['enableDefaultAttributesIntegration']('paragraph'),_0x1d39bb['enableCommand']('insertParagraph'),_0x328a12['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x328a12),{'priority':'highest'}),_0x328a12['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34ef03,_0x1cf5e9,_0x27aad2)=>{_0x27aad2['options']['showSuggestionHighlights']&&nr(_0x328a12,{'showActiveMarker':!0x1})(_0x34ef03,_0x1cf5e9,_0x27aad2);},{'priority':'highest'});const _0x1f4bf6=_0x1d39bb['descriptionFactory'];_0x1f4bf6['registerDescriptionCallback'](_0x2f2c5c=>{if('insertion'!==_0x2f2c5c['type'])return;const {start:_0x1cf766,end:_0x179412}=_0x2f2c5c['getFirstRange']();if(!_0x1cf766['isTouching'](_0x179412)||!_0x1cf766['nodeAfter'])return;const _0x46663c=_0x328a12['model']['schema'],_0x5a2a32=_0x1cf766['nodeAfter'];return _0x46663c['isBlock'](_0x5a2a32)&&!_0x46663c['isLimit'](_0x5a2a32)&&_0x46663c['checkChild'](_0x5a2a32,'$text')?{'type':'insertion','content':o(_0x417002,'*Insert:*\x20%0',_0x1f4bf6['getItemLabel'](_0x5a2a32,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe1dd21=this['editor'],_0x2c1b01=_0xe1dd21['locale'];_0xe1dd21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcc741a=>{if('formatBlock'!=_0xcc741a['type'])return;const {data:_0x2f75e4}=_0xcc741a;return _0x2f75e4&&'paragraph'==_0x2f75e4['commandName']?{'type':'format','content':o(_0x2c1b01,'*Change\x20to:*\x20%0',o(_0x2c1b01,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x180760,{showActiveMarker:_0x2c3235=!0x0}={}){return(_0x2cb125,_0x307104,_0x21a341)=>{const _0x3c322b=_0x180760['plugins']['get']('TrackChangesEditing'),_0x6ea29c=_0x307104['markerRange']['start'],_0x515a73=_0x307104['markerRange']['end'],_0x32d72e=_0x180760['model']['schema'];if(!_0x6ea29c['isTouching'](_0x515a73)||!_0x6ea29c['nodeAfter'])return;const _0x21fde6=_0x6ea29c['nodeAfter'];if(_0x32d72e['isBlock'](_0x21fde6)&&!_0x32d72e['isLimit'](_0x21fde6)&&_0x32d72e['checkChild'](_0x21fde6,'$text')){if(!_0x21a341['consumable']['consume'](_0x307104['markerRange'],_0x2cb125['name']))return;const _0x3c004d=_0x21a341['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x12658d=_0x21a341['mapper']['toViewPosition'](_0x515a73);_0x2c3235&&_0x3c322b['activeMarkers']['includes'](_0x307104['markerName'])&&_0x21a341['writer']['addClass']('ck-suggestion-marker--active',_0x3c004d),_0x21a341['writer']['insert'](_0x12658d,_0x3c004d),_0x21a341['mapper']['bindElementToMarker'](_0x3c004d,_0x307104['markerName']);}};}class pt extends _0x59c88b{['afterInit'](){const _0x1da867=this['editor'];if(!_0x1da867['plugins']['has']('RemoveFormatEditing'))return;_0x1da867['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55bf81=this['editor'];_0x55bf81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5832ea=>{if('formatBlock'!=_0x5832ea['type']&&'formatInline'!=_0x5832ea['type'])return;const {data:_0x719812}=_0x5832ea;return _0x719812&&'removeFormat'==_0x719812['commandName']?{'type':'format','content':o(_0x55bf81['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x59c88b{['afterInit'](){const _0x2cc9c8=this['editor'];if(!_0x2cc9c8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2b090a=_0x2cc9c8['plugins']['get']('TrackChangesEditing');_0x2b090a['enableCommand']('goToPreviousRestrictedEditingException'),_0x2b090a['enableCommand']('goToNextRestrictedEditingException');const _0x225da8=_0x2cc9c8['plugins']['get']('RestrictedEditingModeEditing');_0x225da8['enableCommand']('trackChanges'),_0x225da8['enableCommand']('acceptSuggestion'),_0x225da8['enableCommand']('discardSuggestion'),_0x225da8['enableCommand']('acceptAllSuggestions'),_0x225da8['enableCommand']('discardAllSuggestions'),_0x225da8['enableCommand']('acceptSelectedSuggestions'),_0x225da8['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x59c88b{static get['requires'](){return[_0x2411e6];}['init'](){const _0x2eca89=this['editor'],_0x40b971=_0x2eca89['plugins']['get']('TrackChangesEditing');_0x40b971['enableCommand']('shiftEnter'),_0x2eca89['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2eca89),{'priority':'high'}),_0x2eca89['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2eca89),{'priority':'high'}),_0x2eca89['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x32e06a,_0x3c6e2e,_0x3f3a90)=>{_0x3f3a90['options']['showSuggestionHighlights']&&de(_0x2eca89,{'showActiveMarker':!0x1})(_0x32e06a,_0x3c6e2e,_0x3f3a90);}),_0x40b971['descriptionFactory']['registerElementLabel']('softBreak',_0x419642=>o(_0x2eca89['locale'],'ELEMENT_LINE_BREAK',_0x419642));}}function de(_0x219db9,{showActiveMarker:_0x19c0b6=!0x0}={}){return(_0x542ffc,_0x4951e7,_0x4e2e9c)=>{const _0x187da8=_0x219db9['plugins']['get']('TrackChangesEditing');if(!_0x4e2e9c['consumable']['test'](_0x4951e7['markerRange'],_0x542ffc['name']))return;const _0x36f79e=_0x219db9['model'];for(const _0x589ab0 of _0x4951e7['markerRange']['getItems']()){if(!_0x589ab0['is']('element','softBreak'))continue;const _0x24d269='deletion'==_0x4951e7['markerName']['split'](':')[0x1]?'merge':'split',_0x5a121e=_0x4e2e9c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x24d269}),_0x562a17=_0x4e2e9c['mapper']['toViewPosition'](_0x36f79e['createPositionBefore'](_0x589ab0));_0x19c0b6&&_0x187da8['activeMarkers']['includes'](_0x4951e7['markerName'])&&_0x4e2e9c['writer']['addClass']('ck-suggestion-marker--active',_0x5a121e),_0x4e2e9c['writer']['insert'](_0x562a17,_0x5a121e),_0x4e2e9c['mapper']['bindElementToMarker'](_0x5a121e,_0x4951e7['markerName']);}};}class wt extends _0x59c88b{['afterInit'](){const _0x30f53f=this['editor'],_0x5eb9f9=_0x30f53f['model'],_0x78cac=_0x30f53f['locale'];if(!_0x30f53f['plugins']['has']('StandardEditingModeEditing'))return;const _0x3c0426=_0x30f53f['plugins']['get']('TrackChangesEditing'),_0x2697ef='restrictedEditingException',_0x24d2fd=_0x30f53f['commands']['get'](_0x2697ef);_0x3c0426['enableCommand'](_0x2697ef,(_0x3f98d3,_0x5c8fb6={})=>{const _0x3cf47c=_0x5eb9f9['document']['selection'];if(_0x3cf47c['isCollapsed'])return void _0x3f98d3(_0x5c8fb6);const _0x335dec=void 0x0!==_0x5c8fb6['forceValue']?_0x5c8fb6['forceValue']:!_0x24d2fd['value'];_0x5eb9f9['change'](()=>{const _0x52bcc1=Array['from'](_0x3cf47c['getRanges']());for(const _0x1e360d of _0x52bcc1){const _0x5af52a=_0x335dec?[_0x1e360d]:io(_0x2697ef,_0x1e360d,_0x5eb9f9);for(const _0x247655 of _0x5af52a)_0x3c0426['markInlineFormat'](_0x247655,{'commandName':_0x2697ef,'commandParams':[{'forceValue':_0x335dec}]});}});}),_0x3c0426['descriptionFactory']['registerDescriptionCallback'](_0x111dbf=>{if('formatBlock'!=_0x111dbf['type']&&'formatInline'!=_0x111dbf['type'])return;const {data:_0x57dcf8}=_0x111dbf;return _0x57dcf8&&_0x57dcf8['commandName']==_0x2697ef?_0x57dcf8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x78cac,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x78cac,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x59c88b{['afterInit'](){const _0x494a9b=this['editor'];if(!_0x494a9b['plugins']['has']('Style')||!_0x494a9b['plugins']['has']('DataSchema'))return;const _0x3a931b=_0x494a9b['plugins']['get']('TrackChangesEditing'),_0x107a01=_0x494a9b['locale'],_0x28a6c0=_0x494a9b['config']['get']('style')||{},_0x265871=_0x494a9b['plugins']['get']('GeneralHtmlSupport'),_0x5c1824=_0x494a9b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x494a9b['plugins']['get']('DataSchema'),_0x28a6c0['definitions']);_0x3a931b['enableDefaultAttributesIntegration']('style');const _0x3ba4fc=new Set();for(const _0x141a04 of _0x5c1824['block']){const _0x51e109=_0x265871['getGhsAttributeNameForElement'](_0x141a04['element']);_0x3ba4fc['add'](_0x51e109);}const _0x539720=new Set();for(const _0x2ff446 of _0x5c1824['inline']){const _0x3408f1=_0x265871['getGhsAttributeNameForElement'](_0x2ff446['element']);_0x539720['add'](_0x3408f1);for(const _0x367a32 of _0x2ff446['ghsAttributes'])_0x539720['add'](_0x367a32);}for(const _0x9fced5 of _0x3ba4fc)_0x3a931b['registerBlockAttribute'](_0x9fced5),_0x3a931b['descriptionFactory']['registerAttributeLabel'](_0x9fced5,o(_0x107a01,'FORMAT_STYLE'));for(const _0x4952f4 of _0x539720)_0x3a931b['registerInlineAttribute'](_0x4952f4),_0x3a931b['descriptionFactory']['registerAttributeLabel'](_0x4952f4,o(_0x107a01,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ec255=this['editor'],_0x598748=_0x5ec255['locale'];_0x5ec255['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18cbae=>{if('formatBlock'!=_0x18cbae['type']&&'formatInline'!=_0x18cbae['type'])return;const {data:_0x3f4809}=_0x18cbae;return _0x3f4809&&'style'===_0x3f4809['commandName']?_0x3f4809['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x598748,'*Set\x20format:*\x20%0',_0x3f4809['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x598748,'*Remove\x20format:*\x20%0',_0x3f4809['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x59c88b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1821e6){super(_0x1821e6),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2dca7e=this['editor'],_0xb67757=_0x2dca7e['model']['document']['selection'];if(!_0x2dca7e['plugins']['has']('TableEditing'))return;const _0x27c25a=_0x2dca7e['locale'],_0x2e74ad=_0x2dca7e['plugins']['get']('TrackChangesEditing'),_0x3f6506=_0x2dca7e['plugins']['get']('TableUtils');_0x2e74ad['descriptionFactory']['registerElementLabel']('table',_0x4d0e47=>o(_0x27c25a,'ELEMENT_TABLE',_0x4d0e47)),this['_setupColumnsRowsFixing'](),_0x2e74ad['enableCommand']('insertTable'),_0x2e74ad['enableCommand']('selectTableRow'),_0x2e74ad['enableCommand']('selectTableColumn');for(const _0x56620c of['insertTableRowAbove','insertTableRowBelow']){const _0xda8d54=_0x2dca7e['commands']['get'](_0x56620c);_0x2e74ad['enableCommand'](_0x56620c,_0x5bc140=>{_0x2dca7e['model']['change'](_0x3708f6=>{_0x5bc140();const _0x417ddd='above'===_0xda8d54['order'],_0x1fb256=_0x3f6506['getSelectionAffectedTableCells'](_0xb67757),_0x449a01=_0x3f6506['getRowIndexes'](_0x1fb256),_0x5565a2=_0x417ddd?_0x449a01['first']-0x1:_0x449a01['last']+0x1,_0x548fa4=_0x1fb256[0x0]['findAncestor']('table'),_0x1a9be6=_0x3f6506['createTableWalker'](_0x548fa4,{'startRow':_0x5565a2,'endRow':_0x5565a2}),_0x355453=Array['from'](_0x1a9be6)['map'](_0x1b4c9a=>_0x3708f6['createRangeOn'](_0x1b4c9a['cell']));_0x2e74ad['markMultiRangeInsertion'](_0x355453,'tableRow');});});}for(const _0x5e74d1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x56fae9=_0x2dca7e['commands']['get'](_0x5e74d1);_0x2e74ad['enableCommand'](_0x5e74d1,_0x5981f0=>{_0x2dca7e['model']['change'](_0x408482=>{_0x5981f0();const _0x5f4962='left'===_0x56fae9['order'],_0xdc1537=_0x3f6506['getSelectionAffectedTableCells'](_0xb67757),_0xc2e5b0=_0x3f6506['getColumnIndexes'](_0xdc1537),_0x416ef8=_0x5f4962?_0xc2e5b0['first']-0x1:_0xc2e5b0['last']+0x1,_0x5cd7f6=_0xdc1537[0x0]['findAncestor']('table'),_0x1f69fb=_0x3f6506['createTableWalker'](_0x5cd7f6,{'startRow':0x0,'column':_0x416ef8,'includeAllSlots':!0x1}),_0x34ca20=Array['from'](_0x1f69fb)['map'](_0xe51527=>_0x408482['createRangeOn'](_0xe51527['cell']));_0x2e74ad['markMultiRangeInsertion'](_0x34ca20,'tableColumn');});});}for(const _0x51db0f of['removeTableRow','removeTableColumn']){const _0x4ad02c=_0x51db0f['substr'](0xb),_0x344798=_0x4ad02c['toLowerCase'](),_0x10b4db=_0x344798['substr'](0x0,0x3)+'span',_0x2dd5d7='table'+_0x4ad02c,_0xad04e5='min'+_0x4ad02c,_0x52ef69='max'+_0x4ad02c;_0x2e74ad['enableCommand'](_0x51db0f,()=>{_0x2dca7e['model']['change'](_0x124c09=>{const _0x32c8c7=_0x3f6506['getSelectionAffectedTableCells'](_0xb67757),_0x51450f=_0x32c8c7[0x0]['findAncestor']('table');let _0x20b795;if('removeTableRow'==_0x51db0f){const _0x594878=_0x3f6506['getRowIndexes'](_0x32c8c7);_0x20b795={'startRow':_0x594878['first'],'endRow':_0x594878['last'],'includeAllSlots':!0x0};}else{const _0x7dd368=_0x3f6506['getColumnIndexes'](_0x32c8c7);_0x20b795={'startColumn':_0x7dd368['first'],'endColumn':_0x7dd368['last'],'includeAllSlots':!0x0};}const _0x12fe63=_0x3f6506['createTableWalker'](_0x51450f,_0x20b795),_0x2d3a93=Array['from'](_0x12fe63)['map'](({cell:_0x3a5f8a})=>_0x3a5f8a),_0x33e88b=Ee(_0x2d3a93['filter'](_0x24e3e5=>_0x24e3e5['hasAttribute'](_0x10b4db))),_0x22703a=Ee(_0x2d3a93['filter'](_0x28691e=>!_0x28691e['hasAttribute'](_0x10b4db)))['map'](_0x430656=>_0x124c09['createRangeOn'](_0x430656)),_0x4a17af=_0x2e74ad['markMultiRangeDeletion'](_0x22703a,_0x2dd5d7);if(_0x4a17af&&('tableRow'==_0x4a17af['subType']||'tableColumn'==_0x4a17af['subType'])){const _0x2ede53=this['_getSuggestionCoords'](_0x4a17af);for(const _0xeb4b2f of _0x33e88b){const _0x210ab9=_0x124c09['createRangeOn'](_0xeb4b2f),_0x407984=_0x3f6506['getCellLocation'](_0xeb4b2f),_0x175379=_0xeb4b2f['getAttribute'](_0x10b4db)-0x1,_0x3e5223=_0x2ede53[_0xad04e5],_0x525925=_0x2ede53[_0x52ef69];_0x3e5223<=_0x407984[_0x344798]&&_0x407984[_0x344798]+_0x175379<=_0x525925&&_0x4a17af['addRange'](_0x210ab9);}}});});}function _0x472880(_0x4f73f4){const _0x15cad9=Array['from'](_0xb67757['getRanges']())['map'](_0x16bcfd=>_0x273003['fromRange'](_0x16bcfd));_0x2dca7e['model']['change'](_0x17fc66=>{const _0x26664c=_0x17fc66['batch'];_0x4f73f4=_0x4f73f4['filter'](_0x4cc3b1=>'$graveyard'!=_0x4cc3b1['root']['rootName']),_0x17fc66['setSelection'](_0x4f73f4),_0x2dca7e['commands']['get']('removeTableRow')['refresh'](),_0x2dca7e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2dca7e['model']['enqueueChange'](()=>{_0x2dca7e['model']['enqueueChange'](_0x26664c,_0x1d377d=>{const _0x2d5af1=_0x15cad9['filter'](_0x52b9d3=>'$graveyard'!=_0x52b9d3['root']['rootName']);_0x2d5af1['length']>0x0&&_0x1d377d['setSelection'](_0x2d5af1);for(const _0x5c83d3 of _0x15cad9)_0x5c83d3['detach']();});});});}function _0x52896b(_0x214780){_0x2dca7e['model']['change'](_0xdec7ce=>{const _0x1717d2=Array['from'](_0xb67757['getRanges']())['map'](_0x2da4cf=>_0x273003['fromRange'](_0x2da4cf)),_0x51611d=[];for(const _0xfbf288 of _0x214780)for(const _0x3231d1 of _0xfbf288['getItems']({'shallow':!0x0}))_0x51611d['push'](_0x3231d1);for(const _0x1389d0 of _0x51611d)'$graveyard'!=_0x1389d0['root']['rootName']&&(_0xdec7ce['setSelection'](_0xdec7ce['createPositionAt'](_0x1389d0,0x0)),_0x2dca7e['commands']['get']('removeTableColumn')['refresh'](),_0x2dca7e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x297991=_0x1717d2['filter'](_0x4c1b3d=>'$graveyard'!=_0x4c1b3d['root']['rootName']);_0x297991['length']>0x0&&_0xdec7ce['setSelection'](_0x297991);for(const _0x3abe22 of _0x1717d2)_0x3abe22['detach']();});}function _0x32a08c(_0x48c32b,_0x1363d3){return _0x1363d3['every'](_0x26fbbb=>_0x48c32b['some'](_0x3cb24d=>_0x3cb24d['end']['isEqual'](_0x26fbbb['start'])||_0x26fbbb['end']['isEqual'](_0x3cb24d['start'])));}function _0x2112f1(_0x5a42da,_0xabf140){return!_0x5a42da['some'](_0x571aa5=>_0xabf140['some'](_0x2c98cf=>_0x571aa5['isIntersecting'](_0x2c98cf)))&&_0x5a42da['some'](_0x4242f1=>_0xabf140['some'](_0x44c03a=>_0x4242f1['end']['isTouching'](_0x44c03a['start'])));}_0x2dca7e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42f0ed,_0x1ea582,_0x238730)=>{if(!_0x238730['options']['showSuggestionHighlights'])return;const _0x57c7d6=_0x1ea582['item'];if(!_0x57c7d6)return;const _0x3bbd34=_0x238730['mapper']['toViewElement'](_0x57c7d6);function _0x1fb23f(_0x3b5f10){return Array['isArray'](_0x3b5f10)?_0x3b5f10:[_0x3b5f10];}_0x3bbd34&&'tableCell'===_0x57c7d6['name']&&_0x4c2da7(_0x3bbd34,_0x238730['writer'],(_0x28d15a,_0x290f78,_0x42b892)=>_0x42b892['addClass'](_0x1fb23f(_0x290f78['classes']),_0x28d15a),(_0x2f7d9f,_0x3e837e,_0x536347)=>_0x536347['removeClass'](_0x1fb23f(_0x3e837e['classes']),_0x2f7d9f));},{'priority':'highest'}),_0x2e74ad['descriptionFactory']['registerDescriptionCallback'](_0xdb268a=>{if('insertion'!=_0xdb268a['type']&&'deletion'!=_0xdb268a['type'])return;const _0xf47210=_0xdb268a['getContainedElement']();if(null!=_0xf47210&&_0xf47210['is']('element','table')){if('insertion'==_0xdb268a['type']){const _0x55b25b=_0xdb268a['getItems']()['filter'](_0x294c41=>_0x294c41['is']('$textProxy'))['map'](_0x27f9a2=>_0x27f9a2['data']);if(_0x55b25b['length'])return{'type':'insertion','content':o(_0x27c25a,'*Insert:*\x20%0',o(_0x27c25a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x55b25b['join']('\x20')+'\x22'))};}if('deletion'==_0xdb268a['type']){const _0x4e8671=_0xdb268a['getItems']()['filter'](_0x4e0a48=>_0x4e0a48['is']('$textProxy'))['map'](_0x502939=>_0x502939['data']);if(_0x4e8671['length'])return{'type':'deletion','content':o(_0x27c25a,'*Remove:*\x20%0',o(_0x27c25a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e8671['join']('\x20')+'\x22'))};}}}),_0x2e74ad['descriptionFactory']['registerDescriptionCallback'](_0x236aea=>{if('tableRow'==_0x236aea['subType']){const _0x158c1f=_0x236aea['getItems']()['filter'](_0x69d987=>_0x69d987['is']('$textProxy'))['map'](_0x4edadd=>_0x4edadd['data']),_0x1ecf2c=this['_getSuggestionCoords'](_0x236aea),_0x1f6814=_0x1ecf2c['maxRow']-_0x1ecf2c['minRow']+0x1;if('insertion'==_0x236aea['type'])return _0x158c1f['length']?{'type':'insertion','content':o(_0x27c25a,'*Insert:*\x20%0',o(_0x27c25a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f6814,'\x22'+_0x158c1f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x27c25a,'*Insert:*\x20%0',o(_0x27c25a,'ELEMENT_TABLE_ROW',_0x1f6814))};if('deletion'==_0x236aea['type'])return _0x158c1f['length']?{'type':'deletion','content':o(_0x27c25a,'*Remove:*\x20%0',o(_0x27c25a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f6814,'\x22'+_0x158c1f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x27c25a,'*Remove:*\x20%0',o(_0x27c25a,'ELEMENT_TABLE_ROW',_0x1f6814))};}if('tableColumn'==_0x236aea['subType']){const _0x4c52bb=_0x236aea['getItems']()['filter'](_0x32963f=>_0x32963f['is']('$textProxy'))['map'](_0x55acaa=>_0x55acaa['data']),_0x19b666=this['_getSuggestionCoords'](_0x236aea),_0x178ea1=_0x19b666['maxColumn']-_0x19b666['minColumn']+0x1;if('insertion'==_0x236aea['type'])return _0x4c52bb['length']?{'type':'insertion','content':o(_0x27c25a,'*Insert:*\x20%0',o(_0x27c25a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x178ea1,'\x22'+_0x4c52bb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x27c25a,'*Insert:*\x20%0',o(_0x27c25a,'ELEMENT_TABLE_COLUMN',_0x178ea1))};if('deletion'==_0x236aea['type'])return _0x4c52bb['length']?{'type':'deletion','content':o(_0x27c25a,'*Remove:*\x20%0',o(_0x27c25a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x178ea1,'\x22'+_0x4c52bb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x27c25a,'*Remove:*\x20%0',o(_0x27c25a,'ELEMENT_TABLE_COLUMN',_0x178ea1))};}}),_0x2e74ad['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x472880),_0x2e74ad['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x472880),_0x2e74ad['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x52896b),_0x2e74ad['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x52896b),_0x2e74ad['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x32a08c),_0x2e74ad['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x32a08c),_0x2e74ad['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2112f1),_0x2e74ad['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2112f1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x257951=this['editor'],_0x792227=_0x257951['model']['document']['selection'];return(_0x493fe1,_0x1b90e7)=>{_0x257951['model']['change'](_0x30215f=>{const {commandName:_0x57c784,commandParams:_0x52b7f9}=_0x1b90e7;let _0x45c462=_0x493fe1[0x0]['end']['nodeBefore'];_0x52b7f9&&_0x52b7f9[0x0]&&!0x1===_0x52b7f9[0x0]['forceValue']&&(_0x45c462=_0x493fe1[0x0]['start']['nodeAfter']);const _0xeac8ea=_0x30215f['createRangeIn'](_0x45c462);if('$graveyard'==_0xeac8ea['root']['rootName'])return;const _0x3cac73=Array['from'](_0x792227['getRanges']())['map'](_0x2713ec=>_0x273003['fromRange'](_0x2713ec));_0x30215f['setSelection'](_0xeac8ea),_0x257951['commands']['get'](_0x57c784)['refresh'](),_0x52b7f9['push']({'forceDefaultExecution':!0x0}),_0x257951['execute'](_0x57c784,..._0x52b7f9);const _0x47aa1c=_0x3cac73['filter'](_0x174112=>'$graveyard'!=_0x174112['root']['rootName']);_0x47aa1c['length']>0x0&&_0x30215f['setSelection'](_0x47aa1c);for(const _0x1584e7 of _0x3cac73)_0x1584e7['detach']();});};}['_getCoordsForCells'](_0x3876c0){const _0x3c3183=this['editor']['plugins']['get']('TableUtils');let _0x536014=Number['MAX_SAFE_INTEGER'],_0x1c630a=Number['MIN_SAFE_INTEGER'],_0x36cc76=Number['MAX_SAFE_INTEGER'],_0x16916f=Number['MIN_SAFE_INTEGER'];for(const _0x1fb1ee of _0x3876c0){if('$graveyard'==_0x1fb1ee['root']['rootName'])continue;const {row:_0x58c376,column:_0xef82f4}=_0x3c3183['getCellLocation'](_0x1fb1ee),_0x1a0ee3=_0x1fb1ee['hasAttribute']('rowspan')?_0x1fb1ee['getAttribute']('rowspan')-0x1:0x0,_0x1931ec=_0x1fb1ee['hasAttribute']('colspan')?_0x1fb1ee['getAttribute']('colspan')-0x1:0x0;_0x536014=_0x58c376<_0x536014?_0x58c376:_0x536014,_0x1c630a=_0x58c376+_0x1a0ee3>_0x1c630a?_0x58c376+_0x1a0ee3:_0x1c630a,_0x36cc76=_0xef82f4<_0x36cc76?_0xef82f4:_0x36cc76,_0x16916f=_0xef82f4+_0x1931ec>_0x16916f?_0xef82f4+_0x1931ec:_0x16916f;}return{'minRow':_0x536014,'maxRow':_0x1c630a,'minColumn':_0x36cc76,'maxColumn':_0x16916f};}['_setupColumnsRowsFixing'](){const _0x476a8c=this['editor'],_0x2095eb=_0x476a8c['plugins']['get']('TrackChangesEditing'),_0x2a0ce1=_0x476a8c['plugins']['get']('TableUtils');_0x476a8c['model']['document']['on']('change:data',()=>{const _0x4be616=Array['from'](_0x476a8c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4cd1f0,data:_0x2c5537}of _0x4be616){const {group:_0x3085ed,id:_0x442a5c,subType:_0x3e58c5}=_0x2095eb['_splitMarkerName'](_0x4cd1f0);if('suggestion'!=_0x3085ed)continue;if(null!=_0x2c5537['oldRange'])continue;const _0x5b7b94=_0x2095eb['getSuggestion'](_0x442a5c);this['_tablePostFixingSubtypes']['includes'](_0x3e58c5)&&this['_tableSuggestions']['add'](_0x5b7b94);}},{'priority':'low'});const _0x83b90f=(_0x36356c,_0x9b4dc)=>{let _0x3b8074=!0x1;const _0x153b79=_0x9b4dc['createRangeOn'](_0x36356c),_0x411a2b=_0x36356c['findAncestor']('table'),_0xe836c0=_0x2a0ce1['getCellLocation'](_0x36356c);for(const _0x4e7cba of this['_tableSuggestions']){const _0x4027cf=_0x4e7cba['subType'],_0x5d02f1=_0x4027cf['startsWith']('tablePaste'),_0x5ec607=_0x4027cf['substr'](_0x5d02f1?0xa:0x5),_0xd0a805=_0x5ec607['toLowerCase'](),_0x3b452b=_0xd0a805['substr'](0x0,0x3)+'span',_0x5618a6='min'+_0x5ec607,_0x46071b='max'+_0x5ec607;if(!_0x4e7cba['isInContent'])continue;if(_0x411a2b!=_0x4e7cba['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4e7cba['isIntersectingWithRange'](_0x153b79))continue;const _0x493008=_0x36356c['hasAttribute'](_0x3b452b)?_0x36356c['getAttribute'](_0x3b452b)-0x1:0x0,_0x1bd0f8=this['_getSuggestionCoords'](_0x4e7cba),_0x4dac12=_0x1bd0f8[_0x5618a6],_0x2911e0=_0x1bd0f8[_0x46071b];_0x4dac12<=_0xe836c0[_0xd0a805]&&_0xe836c0[_0xd0a805]+_0x493008<=_0x2911e0&&(_0x4e7cba['addRange'](_0x153b79),_0x3b8074=!0x0);}return _0x3b8074;};_0x476a8c['model']['document']['registerPostFixer'](_0x199359=>{let _0x4ec667=!0x1;for(const _0x2f2b79 of _0x476a8c['model']['document']['differ']['getChanges']())if('insert'==_0x2f2b79['type']){if('tableRow'==_0x2f2b79['name']){for(const _0x91729d of _0x2f2b79['position']['nodeAfter']['getChildren']())_0x4ec667=_0x4ec667||_0x83b90f(_0x91729d,_0x199359);}else'tableCell'==_0x2f2b79['name']&&(_0x4ec667=_0x4ec667||_0x83b90f(_0x2f2b79['position']['nodeAfter'],_0x199359));}return _0x4ec667;});}['_getSuggestionCoords'](_0x5a41db){return this['_getCoordsForCells'](_0x5a41db['getRanges']()['map'](_0x5f1dfa=>_0x5f1dfa['start']['nodeAfter']));}}function Ee(_0x165441){return Array['from'](new Set(_0x165441)['values']());}class St extends _0x59c88b{static get['requires'](){return[jt];}['afterInit'](){const _0x216ac1=this['editor'],_0x480c93=_0x216ac1['model']['document']['selection'],_0x5804f1=_0x216ac1['locale'];if(!_0x216ac1['plugins']['has']('TableEditing'))return;const _0x350cf3=_0x216ac1['plugins']['get']('TrackChangesEditing'),_0x5c6089=_0x216ac1['plugins']['get']('TableUtils'),_0x3ff3bb=_0x216ac1['plugins']['get'](jt);_0x3ff3bb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x350cf3['enableCommand']('mergeTableCells',()=>{const _0x1aae3a=_0x5c6089['getSelectionAffectedTableCells'](_0x216ac1['model']['document']['selection']);_0x216ac1['model']['change'](()=>{_0x350cf3['markMultiRangeBlockFormat'](_0x1aae3a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x216ac1['commands']['get']('mergeTableCells')['on']('execute',(_0x5ef7a4,_0x5f1bfc)=>{_0x216ac1['commands']['get']('trackChanges')['value']&&(_0x5f1bfc['length']>0x0&&_0x5f1bfc[_0x5f1bfc['length']-0x1]&&_0x5f1bfc[_0x5f1bfc['length']-0x1]['forceDefaultExecution']||_0x350cf3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5ef7a4['stop']());},{'priority':'highest'});for(const _0x2e20d1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x21f13f=_0x216ac1['commands']['get'](_0x2e20d1);_0x350cf3['enableCommand'](_0x2e20d1,()=>{const _0x5ed807=_0x216ac1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a0759=>_0x1a0759['is']('element','tableCell')),_0x329e49=_0x21f13f['value'];_0x216ac1['model']['change'](()=>{_0x350cf3['markMultiRangeBlockFormat']([_0x5ed807,_0x329e49],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x43ba6a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x758a2e=_0x216ac1['commands']['get'](_0x43ba6a);_0x350cf3['enableCommand'](_0x43ba6a,()=>{const _0x15abbf=_0x5c6089['getSelectionAffectedTableCells'](_0x216ac1['model']['document']['selection'])[0x0],_0x5627bb=_0x15abbf['findAncestor']('table'),{column:_0x87cd9b,row:_0x1ca5d0}=_0x5c6089['getCellLocation'](_0x15abbf);let _0x2eb231=[];if('horizontally'==_0x758a2e['direction']){const _0x1bbe94=_0x5c6089['createTableWalker'](_0x5627bb,{'startRow':_0x1ca5d0,'endRow':_0x1ca5d0,'includeAllSlots':!0x0});_0x2eb231=Array['from'](_0x1bbe94)['map'](_0x4b3bd2=>_0x4b3bd2['cell']);}else{const _0x5c0869=_0x5c6089['createTableWalker'](_0x5627bb,{'column':_0x87cd9b,'includeAllSlots':!0x0});_0x2eb231=Array['from'](_0x5c0869)['map'](_0x31d9ac=>_0x31d9ac['cell']);}_0x216ac1['model']['change'](_0x2605c3=>{_0x350cf3['markBlockFormat'](_0x2605c3['createRangeOn'](_0x15abbf),{'commandName':_0x43ba6a,'commandParams':[]},_0x2eb231,_0x43ba6a);});});}_0x350cf3['descriptionFactory']['registerDescriptionCallback'](_0x1be17e=>{if('formatBlock'!=_0x1be17e['type']&&'formatInline'!=_0x1be17e['type'])return;const {data:_0x2dd550}=_0x1be17e;return _0x2dd550&&'mergeTableCells'==_0x2dd550['commandName']?{'type':'format','content':o(_0x5804f1,'*Merge\x20cells*')}:void 0x0;}),_0x350cf3['descriptionFactory']['registerDescriptionCallback'](_0x18b977=>{if('formatBlock'!=_0x18b977['type']&&'formatInline'!=_0x18b977['type'])return;const {data:_0x12a49a}=_0x18b977;return _0x12a49a?'splitTableCellVertically'==_0x12a49a['commandName']?{'type':'format','content':o(_0x5804f1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x12a49a['commandName']?{'type':'format','content':o(_0x5804f1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x51208f=_0x3ff3bb['_acceptFormatSuggestionCallbackFactory']();for(const _0x576a4e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x350cf3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x576a4e,'accept',_0x51208f);for(const _0x511bd1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x350cf3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x511bd1,'accept',_0x51208f);_0x350cf3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x9697e7=>{_0x216ac1['model']['change'](_0x55ff05=>{const _0x147500=Array['from'](_0x480c93['getRanges']())['map'](_0x4be682=>_0x273003['fromRange'](_0x4be682));_0x55ff05['setSelection'](_0x9697e7),_0x216ac1['commands']['get']('mergeTableCells')['refresh'](),_0x216ac1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1de6ef=_0x147500['filter'](_0x33ce29=>'$graveyard'!=_0x33ce29['root']['rootName']);_0x1de6ef['length']>0x0&&_0x55ff05['setSelection'](_0x1de6ef);for(const _0x26a851 of _0x147500)_0x26a851['detach']();});});for(const _0x106c52 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x44f3f0=_0x216ac1['commands']['get'](_0x106c52);_0x44f3f0['on']('set:isEnabled',(_0x1ebe04,_0x2d398c,_0xebfc4b)=>{if(_0xebfc4b){const _0x574842=_0x216ac1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1011a1=>_0x1011a1['is']('element','tableCell'));this['_areMergableCells'](_0x44f3f0['value'],_0x574842)||(_0x1ebe04['return']=!0x1,_0x1ebe04['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x12b2b5=this['editor']['commands']['get']('mergeTableCells'),_0x2e4500=this['editor']['plugins']['get']('TableUtils');if(!_0x12b2b5['isEnabled'])return!0x1;const _0x31b02e=_0x2e4500['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x665eb3 of _0x31b02e)for(const _0x376bb2 of _0x31b02e)if(_0x665eb3!=_0x376bb2&&!this['_areMergableCells'](_0x665eb3,_0x376bb2))return!0x1;return!0x0;}['_areMergableCells'](_0x59722f,_0x44ac45){const _0x28e8dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16ce66=this['editor']['model']['createRangeOn'](_0x59722f),_0x247769=this['editor']['model']['createRangeOn'](_0x44ac45),_0x1783cb=new Set(),_0x58b641=new Set();for(const _0x43e861 of _0x28e8dd['getSuggestions']())if(('insertion'==_0x43e861['type']||'deletion'==_0x43e861['type']||'mergeTableCells'==_0x43e861['subType'])&&_0x43e861['isInContent']){for(const _0x340496 of _0x43e861['getRanges']())_0x340496['containsRange'](_0x16ce66,!0x0)&&_0x1783cb['add'](_0x43e861['type']+':'+_0x43e861['author']['id']),_0x340496['containsRange'](_0x247769,!0x0)&&_0x58b641['add'](_0x43e861['type']+':'+_0x43e861['author']['id']);}if(_0x1783cb['size']!=_0x58b641['size'])return!0x1;for(const _0x383e9c of _0x1783cb)if(!_0x58b641['has'](_0x383e9c))return!0x1;return!0x0;}}class At extends _0x59c88b{static get['requires'](){return[jt];}['afterInit'](){const _0x4f74b1=this['editor'];if(!_0x4f74b1['plugins']['has']('TableEditing'))return;const _0x2e2ea0=_0x4f74b1['locale'],_0x2a6551=_0x4f74b1['plugins']['get']('TrackChangesEditing');_0x2a6551['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2a6551['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2a6551['registerBlockAttribute']('headingRows'),_0x2a6551['registerBlockAttribute']('headingColumns'),_0x2a6551['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2e2ea0,'FORMAT_HEADER_ROW')),_0x2a6551['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2e2ea0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d0200=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc880d8=this['editor']['plugins']['get']('TableUtils'),_0x281069=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3de6cd({showActiveMarker:_0x13b43c=!0x0,setDataAttribute:_0x51a772=!0x0}={}){return(_0x5e15e8,_0x3b9a55,_0x2df4ae)=>{const {type:_0x5f059c,id:_0x44a5c6}=_0x3d0200['_splitMarkerName'](_0x3b9a55['markerName']),_0x122905=_0x3d0200['getSuggestion'](_0x44a5c6),_0x5abd84=_0x122905['data'];if('formatBlock'!=_0x122905['type']||!_0x5abd84||'setTableColumnHeader'!=_0x5abd84['commandName'])return;if(_0x3b9a55['item'])return void _0x5e15e8['stop']();if(!_0x2df4ae['consumable']['consume'](_0x3b9a55['markerRange'],_0x5e15e8['name']))return;const _0x9d3027=_0x3b9a55['markerRange']['start']['nodeAfter'],_0x561b8b=_0x3b9a55['markerRange']['end']['nodeBefore'],_0x3388a8=_0x9d3027['parent']['parent'],{column:_0x4b969e}=_0xc880d8['getCellLocation'](_0x9d3027),{column:_0x5c71c0}=_0xc880d8['getCellLocation'](_0x561b8b);for(let _0x52b53a=_0x4b969e;_0x52b53a<=_0x5c71c0;_0x52b53a++){const _0x377ec8=_0xc880d8['createTableWalker'](_0x3388a8,{'column':_0x52b53a,'includeAllSlots':!0x1});for(const _0x49124b of _0x377ec8){const _0x5f440b=_0x49124b['cell'],_0x8a6d39=_0x2df4ae['mapper']['toViewElement'](_0x5f440b);_0x2df4ae['writer']['addClass']('ck-suggestion-marker-'+_0x5f059c,_0x8a6d39),_0x51a772&&_0x2df4ae['writer']['setAttribute']('data-suggestion',_0x44a5c6,_0x8a6d39),_0x2df4ae['mapper']['bindElementToMarker'](_0x8a6d39,_0x3b9a55['markerName']),_0x13b43c&&(_0x3d0200['activeMarkers']['includes'](_0x3b9a55['markerName'])?_0x2df4ae['writer']['addClass']('ck-suggestion-marker--active',_0x8a6d39):_0x2df4ae['writer']['removeClass']('ck-suggestion-marker--active',_0x8a6d39));}}};}_0x3d0200['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x281069),_0x3d0200['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x281069),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3de6cd(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5aceec,_0x6268c2,_0x3236e1)=>{_0x3236e1['options']['showSuggestionHighlights']&&_0x3de6cd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5aceec,_0x6268c2,_0x3236e1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x31deb8,_0x31d235,_0xa31a29)=>{const {type:_0x5a575b,id:_0x3a5186}=_0x3d0200['_splitMarkerName'](_0x31d235['markerName']),_0x50e8b7=_0x3d0200['getSuggestion'](_0x3a5186),_0x59ea0c=_0x50e8b7['data'];if('formatBlock'!=_0x50e8b7['type']||!_0x59ea0c||'setTableColumnHeader'!=_0x59ea0c['commandName'])return;const _0x568568=_0xa31a29['mapper']['markerNameToElements'](_0x31d235['markerName']);if(_0x568568){for(const _0x813028 of _0x568568)_0xa31a29['writer']['removeClass']('ck-suggestion-marker-'+_0x5a575b,_0x813028),_0xa31a29['writer']['removeClass']('ck-suggestion-marker--active',_0x813028),_0xa31a29['writer']['removeAttribute']('data-suggestion',_0x813028),_0xa31a29['mapper']['unbindElementFromMarkerName'](_0x813028,_0x31d235['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x301fe5=this['editor'],_0x5950fc=_0x301fe5['locale'];function _0x4a7d1b(_0x39ce35){return{'type':'format','content':o(_0x5950fc,'*Format:*\x20%0',_0x39ce35)};}_0x301fe5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35b8a4=>{if('formatBlock'!=_0x35b8a4['type'])return;const {data:_0x430ce1}=_0x35b8a4;if(_0x430ce1){if('setTableRowHeader'==_0x430ce1['commandName']){const _0xe75033=_0x430ce1['commandParams'][0x0]['forceValue'];return _0x4a7d1b(o(_0x5950fc,_0xe75033?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x430ce1['commandName']){const _0x36ec23=_0x430ce1['commandParams'][0x0]['forceValue'];return _0x4a7d1b(o(_0x5950fc,_0x36ec23?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x38782d=>[_0x38782d,null]));class It extends _0x59c88b{static get['requires'](){return[jt];}['afterInit'](){const _0x171f85=this['editor'];if(!_0x171f85['plugins']['has']('TableClipboard'))return;const _0x4459e9=_0x171f85['plugins']['get']('TrackChangesEditing'),_0xdbc524=_0x171f85['plugins']['get']('TableUtils'),_0x529e3f=_0x171f85['plugins']['get'](jt),_0x31b61f=_0x171f85['plugins']['get']('TableClipboard');_0x529e3f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x171f85['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x171f85['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x48b3a9=null;_0x171f85['model']['on']('insertContent',(_0x57e362,_0x38150d)=>{const [_0x31d858,_0x24b667]=_0x38150d,_0x169655=_0x38150d[_0x38150d['length']-0x1];_0x169655&&_0x169655['forceDefaultExecution']||_0x4459e9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1bfc5e,_0x5c33cb,_0x51f760,_0x365f85,_0x41deff){if(_0x5c33cb&&!_0x5c33cb['is']('documentSelection'))return!0x1;const _0x2bc9b7=_0x41deff['getTableIfOnlyTableInContent'](_0x1bfc5e,_0x51f760);if(!_0x2bc9b7||!he(_0x2bc9b7,void 0x0,_0x365f85))return!0x1;const _0x1104e5=_0x365f85['getSelectionAffectedTableCells'](_0x51f760['document']['selection']);if(!_0x1104e5['length'])return!0x1;const _0x1b649e=_0x1104e5[0x0]['findAncestor']('table'),_0x1014fd=_0x365f85['getRowIndexes'](_0x1104e5),_0x2913b4=_0x365f85['getColumnIndexes'](_0x1104e5),_0x1c831a={'startRow':_0x1014fd['first'],'endRow':_0x1014fd['last'],'startColumn':_0x2913b4['first'],'endColumn':_0x2913b4['last']};return 0x1==_0x1104e5['length']&&(_0x1c831a['endRow']+=_0x365f85['getRows'](_0x2bc9b7)-0x1,_0x1c831a['endColumn']+=_0x365f85['getColumns'](_0x2bc9b7)-0x1),he(_0x1b649e,_0x1c831a,_0x365f85);}(_0x31d858,_0x24b667,_0x171f85['model'],_0xdbc524,_0x31b61f)&&(_0x57e362['stop'](),_0x48b3a9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x171f85['model']['change'](()=>{_0x171f85['model']['insertContent'](_0x38150d[0x0],_0x38150d[0x1],_0x38150d[0x2],{'forceDefaultExecution':!0x0});const _0x37f202=_0x572f80(),{rowInsertionRanges:_0x19a60d,columnInsertionRanges:_0x59e866,insertionRanges:_0x33d3ea,deletionRanges:_0x39a69d,cells:_0x3b9831}=_0x48b3a9;_0x19a60d['length']&&_0x4459e9['markMultiRangeInsertion'](_0x19a60d,'tablePasteRow',{'tablePasteChainId':_0x37f202}),_0x59e866['length']&&_0x4459e9['markMultiRangeInsertion'](_0x59e866,'tablePasteColumn',{'tablePasteChainId':_0x37f202}),_0x33d3ea['length']&&(_0x4459e9['markMultiRangeInsertion'](_0x33d3ea,'tablePaste',{'tablePasteChainId':_0x37f202,'skipNestingCheck':!0x0}),_0x33d3ea['forEach'](_0x5dd253=>_0x5dd253['detach']?.())),_0x39a69d['length']&&(_0x4459e9['markMultiRangeDeletion'](_0x39a69d,'tablePaste',{'tablePasteChainId':_0x37f202,'skipNestingCheck':!0x0}),_0x39a69d['forEach'](_0xf8e319=>_0xf8e319['detach']?.()));const _0x2ce98e=_0x4459e9['markMultiRangeBlockFormat'](_0x3b9831['map'](({element:_0x3e2c25})=>_0x3e2c25),{'formatGroupId':_0x572f80()},[],'tablePasteCell',{'tablePasteChainId':_0x37f202});if(_0x2ce98e){const _0x587651=_0x2ce98e['getMarkers'](),_0x5b901d=[];for(const {element:_0x4c251a,attributes:_0x4c3bde}of _0x3b9831){if(!_0x4c3bde)continue;const _0x5890cd=_0x171f85['model']['createRangeOn'](_0x4c251a),_0x55d773=_0x587651['find'](_0xa2e968=>_0xa2e968['getRange']()['isEqual'](_0x5890cd));_0x55d773&&_0x5b901d['push']([_0x55d773['name'],_0x4c3bde]);}_0x5b901d['length']&&_0x2ce98e['setAttribute']('markerAttributes',Object['fromEntries'](_0x5b901d));}_0x48b3a9=null;}));},{'priority':_0x52fe0a['high']+0xa}),_0x171f85['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x16c572,_0x3151ac)=>{const [_0x4ad24e,_0x37ab5c,,_0x412192]=_0x3151ac;if(!_0x48b3a9)return;_0x16c572['stop']();const _0x56c68b=_0x4ad24e['cell'],_0x3c5f38=_0x37ab5c,_0x36c409=Pe(_0x56c68b),_0x5de189=Pe(_0x3c5f38);_0x16c572['return']=_0x56c68b;let _0x3448b3=null,_0x2ea8df=null;if(_0x5de189||_0x36c409){if(_0x36c409&&!_0x5de189){_0x412192['remove'](_0x56c68b['getChild'](0x0));for(const _0x1f8192 of Array['from'](_0x3c5f38['getChildren']()))_0x412192['insert'](_0x1f8192,_0x56c68b,'end');const _0xc2ea8b=_0x48b3a9['rowInsertionIndexes']['includes'](_0x4ad24e['row']),_0x5358ae=_0x48b3a9['columnInsertionIndexes']['includes'](_0x4ad24e['column']);_0xc2ea8b||_0x5358ae||(_0x3448b3=_0x273003['fromRange'](_0x412192['createRangeIn'](_0x56c68b)));}else _0x5de189&&!_0x36c409&&(_0x2ea8df=_0x412192['createRangeIn'](_0x56c68b));}else{const _0x53de23=_0x412192['createElement']('tableCellSuggestion'),_0x5506c2=_0x412192['createElement']('tableCellSuggestion');_0x412192['wrap'](_0x412192['createRangeIn'](_0x56c68b),_0x5506c2),_0x412192['insert'](_0x53de23,_0x56c68b,0x0);for(const _0x2d17d0 of Array['from'](_0x3c5f38['getChildren']()))_0x412192['insert'](_0x2d17d0,_0x53de23,'end');_0x3448b3=_0x273003['fromRange'](_0x412192['createRangeOn'](_0x53de23)),_0x2ea8df=_0x273003['fromRange'](_0x412192['createRangeOn'](_0x5506c2));}const _0x3db4e6=Array['from'](_0x3c5f38['getAttributes']())['filter'](([_0x35505f])=>ge['includes'](_0x35505f));_0x48b3a9['cells']['push']({'element':_0x56c68b,'attributes':_0x3db4e6['length']?Object['fromEntries'](_0x3db4e6):null}),_0x3448b3&&_0x48b3a9['insertionRanges']['push'](_0x3448b3),_0x2ea8df&&_0x48b3a9['deletionRanges']['push'](_0x2ea8df);},{'priority':'high'}),_0xdbc524['on']('insertColumns',(_0x512d35,_0x22c432)=>{const [_0x4374a8,_0x16735c={}]=_0x22c432;if(!_0x48b3a9)return;const _0x54862e=_0x16735c['at']||0x0,_0x39d269=_0x16735c['columns']||0x1;_0x48b3a9['columnInsertionIndexes']=new Array(_0x39d269)['fill'](_0x54862e)['map']((_0x3553da,_0x5a6c89)=>_0x3553da+_0x5a6c89);for(const {cell:_0x4ae930}of _0xdbc524['createTableWalker'](_0x4374a8,{'startColumn':_0x54862e,'endColumn':_0x54862e+_0x39d269-0x1}))_0x48b3a9['columnInsertionRanges']['push'](_0x171f85['model']['createRangeOn'](_0x4ae930));},{'priority':'low'}),_0xdbc524['on']('insertRows',(_0x393e9b,_0x36f7b9)=>{const [_0xf8ae9d,_0x45dbe8={}]=_0x36f7b9;if(!_0x48b3a9)return;const _0x595515=_0x45dbe8['at']||0x0,_0x7c0580=_0x45dbe8['rows']||0x1;_0x48b3a9['rowInsertionIndexes']=new Array(_0x7c0580)['fill'](_0x595515)['map']((_0x570796,_0x26b73c)=>_0x570796+_0x26b73c);for(const {cell:_0x25b6e7}of _0xdbc524['createTableWalker'](_0xf8ae9d,{'startRow':_0x595515,'endRow':_0x595515+_0x7c0580-0x1}))_0x48b3a9['rowInsertionRanges']['push'](_0x171f85['model']['createRangeOn'](_0x25b6e7));},{'priority':'low'}),_0x4459e9['descriptionFactory']['registerDescriptionCallback'](_0x2435bd=>{if(_0x2435bd['subType']&&_0x2435bd['subType']['startsWith']('tablePaste'))return _0x2435bd['previous']?{}:{'type':'insertion','content':o(_0x171f85['locale'],'*Replace\x20table\x20cells*')};});const _0xd58cc1=()=>!0x1;for(const _0x14c039 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4459e9['_suggestionFactory']['registerCustomCallback']('insertion',_0x14c039,'join',_0xd58cc1),_0x4459e9['_suggestionFactory']['registerCustomCallback']('deletion',_0x14c039,'join',_0xd58cc1),_0x4459e9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14c039,'join',_0xd58cc1);_0x4459e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xd58cc1),_0x4459e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1d3cf3,_0x3bacbf,_0x48d137)=>{const _0x5b0200=_0x1d3cf3['map'](_0x563d7c=>_0x563d7c['getContainedElement']())['filter'](_0x5cce77=>_0x5cce77),_0x541046=new Map(_0x5b0200['map'](_0x561cac=>[_0x561cac,null]));if(_0x48b3a9){for(const {element:_0x412066,attributes:_0x316037}of _0x48b3a9['cells'])_0x316037&&_0x541046['set'](_0x412066,_0x316037);}else{if(_0x48d137&&_0x48d137['markerAttributes'])for(const [_0x110a0c,_0x2553a9]of Object['entries'](_0x48d137['markerAttributes'])){const _0x425c48=_0x171f85['model']['markers']['get'](_0x110a0c),_0x4ea7b7=_0x425c48?_0x425c48['getRange']()['getContainedElement']():null;_0x4ea7b7&&_0x541046['set'](_0x4ea7b7,_0x2553a9);}}_0x171f85['model']['change'](_0x2cc931=>{for(const [_0x14e3a1,_0x152907]of _0x541046)_0x2cc931['setAttributes']({...Ce,..._0x152907},_0x14e3a1);});});const _0x587158=(_0x455782,_0x5b898a)=>{_0x4459e9['_suggestionFactory']['registerCustomCallback'](_0x455782,'tablePaste',_0x5b898a,(_0x3dea6b,_0x339c87,_0x2d1c60)=>{_0x171f85['model']['change'](_0x284549=>{const _0x2bc48b=[];for(const _0x2a9313 of _0x3dea6b){const _0x41672b=_0x2a9313['start']['nodeAfter'];_0x41672b['is']('element','tableCellSuggestion')&&_0x2bc48b['push'](_0x41672b);}_0x4459e9['_suggestionFactory']['getSuggestionCallback'](_0x455782,null,_0x5b898a)(_0x3dea6b,_0x339c87,_0x2d1c60);for(const _0xebc5f of _0x2bc48b)'$graveyard'!=_0xebc5f['root']['rootName']&&_0x284549['unwrap'](_0xebc5f);});});};_0x587158('insertion','accept'),_0x587158('insertion','discard'),_0x587158('deletion','accept'),_0x587158('deletion','discard'),_0x4459e9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2a2e9e=>{const _0x33952d=_0x2a2e9e['map'](_0x4b26c6=>_0x4b26c6['getContainedElement']()),_0x55d94e=_0x33952d[0x0]['findAncestor']('table'),{minRow:_0x487748,maxRow:_0xaf6663}=_0x529e3f['_getCoordsForCells'](_0x33952d);_0xdbc524['removeRows'](_0x55d94e,{'at':_0x487748,'rows':_0xaf6663-_0x487748+0x1});}),_0x4459e9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x10c544=>{const _0x54eff1=_0x10c544['map'](_0x958822=>_0x958822['getContainedElement']()),_0x1a8749=_0x54eff1[0x0]['findAncestor']('table'),{minColumn:_0x5eb542,maxColumn:_0x2f3d8e}=_0x529e3f['_getCoordsForCells'](_0x54eff1);_0xdbc524['removeColumns'](_0x1a8749,{'at':_0x5eb542,'columns':_0x2f3d8e-_0x5eb542+0x1});});const _0x36797f=(_0x5b95c0,_0x2b7e00)=>{if(!_0x2b7e00['subType']||!_0x2b7e00['subType']['startsWith']('tablePaste'))return;const _0x454393=_0x2b7e00['attributes']['tablePasteChainId'],_0x137580=_0x4459e9['getSuggestions']()['filter'](_0x17a94a=>_0x17a94a['isInContent']&&_0x17a94a['attributes']&&_0x17a94a['attributes']['tablePasteChainId']==_0x454393);_0x137580['length']&&_0x2b7e00['getAllAdjacentSuggestions']()['length']!=_0x137580['length']&&_0x137580['reduce']((_0x4e37f4,_0x23c7cd)=>(_0x4e37f4['next']=_0x23c7cd,_0x23c7cd['previous']=_0x4e37f4,_0x23c7cd));};function _0x2d156e(_0x4f325b,_0x3fea5a=!0x0){const {id:_0x32e810}=_0x4459e9['_splitMarkerName'](_0x4f325b['markerName']),_0x126ec8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xadd955=_0x4459e9['activeMarkers']['includes'](_0x4f325b['markerName']);return _0xadd955&&_0x126ec8['push']('ck-suggestion-marker--active'),{'classes':_0x126ec8,'attributes':{'data-suggestion':_0x32e810},'priority':_0xadd955&&_0x3fea5a?0xbc2:0xbb8};}_0x4459e9['on']('suggestionLoaded',_0x36797f,{'priority':'high'}),_0x4459e9['on']('suggestionUnloaded',_0x36797f,{'priority':'high'}),_0x171f85['model']['document']['registerPostFixer'](()=>{let _0x1720a4=!0x1;const _0x5af1dc=Array['from'](_0x171f85['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41208d,data:_0xe9b542}of _0x5af1dc){const {group:_0x49745b,type:_0x294852,id:_0x21f122}=_0x4459e9['_splitMarkerName'](_0x41208d);if('suggestion'!=_0x49745b||'deletion'!=_0x294852||_0xe9b542['oldRange'])continue;if(!_0x4459e9['hasSuggestion'](_0x21f122))continue;const _0x485714=_0x4459e9['getSuggestion'](_0x21f122)['getRanges'](),_0x1df0b6=_0x171f85['plugins']['get']('Users')['me'];for(const _0xdfa652 of _0x4459e9['getSuggestions']()){if(!_0xdfa652['isInContent']||_0xdfa652['author']!=_0x1df0b6)continue;if('formatBlock'!=_0xdfa652['type']||'tablePasteCell'!=_0xdfa652['subType'])continue;if(_0xdfa652['getRanges']()['every'](_0x5936c0=>_0x485714['some'](_0x2def49=>_0x2def49['containsRange'](_0x5936c0,!0x0)))){for(const _0x54fb66 of _0xdfa652['getAllAdjacentSuggestions']())_0x54fb66['isInContent']&&(_0x54fb66['discard'](),_0x1720a4=!0x0);}}}return _0x1720a4;}),_0x171f85['model']['document']['registerPostFixer'](_0x1eb97f=>{const _0x4b019a=_0x171f85['commands']['get']('redo');if(!_0x4b019a||!_0x4b019a['_createdBatches']['has'](_0x1eb97f['batch']))return!0x1;let _0x3eaec5=!0x1;const _0x4c8061=_0x171f85['plugins']['get']('Users')['me'],_0x278703=_0x171f85['model']['document']['differ']['getChanges'](),_0x7d2de9=Array['from'](_0x171f85['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x48a7d9,data:_0x345905})=>{const {group:_0x3ae696,subType:_0xbabaf,authorId:_0xaadc7a}=_0x4459e9['_splitMarkerName'](_0x48a7d9);return'suggestion'==_0x3ae696&&'tablePaste'==_0xbabaf&&_0xaadc7a==_0x4c8061['id']&&!_0x345905['oldRange'];});for(const _0x55a082 of _0x278703){if('insert'!=_0x55a082['type']||'tableCellSuggestion'!=_0x55a082['name']||0x1!=_0x55a082['length'])continue;const _0x88e524=_0x1eb97f['createRange'](_0x55a082['position'],_0x55a082['position']['getShiftedBy'](0x1));if(!_0x7d2de9['find'](({data:_0xfb2e95})=>_0xfb2e95['newRange']['isEqual'](_0x88e524))){for(const {name:_0xf6647b,data:_0x374a62}of _0x7d2de9)if(_0x88e524['containsRange'](_0x374a62['newRange'])){_0x1eb97f['updateMarker'](_0xf6647b,{'range':_0x88e524}),_0x3eaec5=!0x0;break;}}}return _0x3eaec5;}),_0x171f85['model']['document']['registerPostFixer'](_0x374417=>{let _0x498fcb=!0x1;const _0x35cca5=_0x171f85['plugins']['get']('Users')['me'],_0xaaa52c=_0x4459e9['getSuggestions']()['filter'](_0x1dff2b=>_0x1dff2b['isInContent']&&_0x1dff2b['author']==_0x35cca5),_0x433b7f=new Set(),_0x25fe46=new Set();for(const _0x54c54c of _0xaaa52c)if('tablePaste'==_0x54c54c['subType'])for(const _0x217c12 of _0x54c54c['getMarkers']()){const _0x3c0ad3=_0x217c12['getRange']()['getContainedElement']();if(_0x3c0ad3){if(_0x3c0ad3['is']('element','tableCellSuggestion')&&Pe(_0x3c0ad3)){_0x54c54c['removeMarker'](_0x217c12['name']),_0x433b7f['add'](_0x3c0ad3),_0x498fcb=!0x0;const _0x490442=_0x3c0ad3['nextSibling'],_0x55963f=_0x3c0ad3['previousSibling'],_0x23f7b2=_0x490442&&_0x490442['is']('element','tableCellSuggestion'),_0x41ea06=_0x55963f&&_0x55963f['is']('element','tableCellSuggestion');_0x23f7b2&&!_0x433b7f['has'](_0x490442)&&_0x25fe46['add'](_0x490442),_0x41ea06&&!_0x433b7f['has'](_0x55963f)&&_0x25fe46['add'](_0x55963f);}else _0x3c0ad3['is']('element','paragraph')&&_0x3c0ad3['isEmpty']&&(_0x54c54c['removeMarker'](_0x217c12['name']),_0x498fcb=!0x0);}}else{if('tablePasteCell'==_0x54c54c['subType']){if(!_0x54c54c['attributes']||!_0x54c54c['attributes']['tablePasteChainId'])continue;const _0x3a22a5=_0x54c54c['attributes']['markerAttributes'];if(_0x3a22a5&&Object['keys'](_0x3a22a5)['length'])continue;const _0x3dc997=_0x54c54c['attributes']['tablePasteChainId'];let _0xb22b5f=!0x0,_0x3b63ec=!0x0;for(const _0x49f3bd of _0xaaa52c)if(_0x49f3bd['subType']&&_0x49f3bd['subType']['startsWith']('tablePaste')){if(!_0x49f3bd['attributes']['tablePasteChainId']){_0x3b63ec=!0x1;break;}if(_0x49f3bd['id']!=_0x54c54c['id']&&_0x49f3bd['attributes']['tablePasteChainId']==_0x3dc997){_0xb22b5f=!0x1;break;}}_0x3b63ec&&_0xb22b5f&&(_0x54c54c['removeMarkers'](),_0x498fcb=!0x0);}}for(const _0x133d7c of _0x433b7f)_0x374417['remove'](_0x133d7c);for(const _0x4a00a8 of _0x25fe46)_0x374417['unwrap'](_0x4a00a8);return _0x498fcb;}),_0x171f85['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x6cebd,_0x39282d)=>_0x2d156e(_0x6cebd),'converterPriority':'high'}),_0x171f85['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3ad44b,_0x262a55)=>_0x262a55['options']['showSuggestionHighlights']?_0x2d156e(_0x3ad44b,!0x1):null,'converterPriority':'high'});const _0x13c3c8=_0x171f85['editing']['view'];this['listenTo'](_0x13c3c8['document'],'clipboardOutput',(_0x1a313a,_0x59f7fd)=>{const _0x5d7f52=[];for(const _0x3e860a of _0x13c3c8['createRangeIn'](_0x59f7fd['content'])['getItems']())_0x3e860a['is']('element','suggestion-td')&&_0x5d7f52['push'](_0x3e860a);_0x13c3c8['change'](_0x4b5a95=>{for(const _0x2b3ff4 of _0x5d7f52)_0x4b5a95['move'](_0x4b5a95['createRangeIn'](_0x2b3ff4),_0x4b5a95['createPositionBefore'](_0x2b3ff4)),_0x4b5a95['remove'](_0x2b3ff4);});});}}function Pe(_0x578058){if(_0x578058['isEmpty'])return!0x0;const _0x1ee0b4=_0x578058['getChild'](0x0);return _0x1ee0b4['is']('element','paragraph')&&_0x1ee0b4['isEmpty'];}function he(_0x1a1ebb,_0x579610={},_0x3b3996){for(const {isAnchor:_0x454e1d,cellHeight:_0x4e06ca,cellWidth:_0x4bdf7b}of _0x3b3996['createTableWalker'](_0x1a1ebb,{'includeAllSlots':!0x0,..._0x579610}))if(!_0x454e1d||0x1!=_0x4e06ca||0x1!=_0x4bdf7b)return!0x1;return!0x0;}class vt extends _0x59c88b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4425b2=this['editor']['plugins']['get']('TrackChangesEditing');_0x4425b2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4425b2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4425b2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4425b2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4425b2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4425b2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3710b0,_0x23448a){const _0x3cf45a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b217a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x6108c4=_0x23448a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x54ff56=_0x1b217a['getColumnGroupElement'](_0x6108c4);let _0x30715d=_0x54ff56?_0x1b217a['getTableColumnsWidths'](_0x54ff56):null,_0x557a65=_0x6108c4['getAttribute']('tableWidth')||null;const _0x49a46a=_0x23448a['tableWidth']||_0x557a65,_0x2fa435=_0x23448a['columnWidths']||_0x30715d,_0x70273b=this['editor']['plugins']['get']('Users')['me'];for(const _0x263cfc of _0x3cf45a['getSuggestions']()){const _0x487192=_0x263cfc['getContainedElement']();if('resizeTable'===_0x263cfc['subType']&&_0x487192===_0x6108c4){_0x263cfc['author']!==_0x70273b&&_0x263cfc['discard']();const _0x498d7b=_0x263cfc['data']['commandParams'];_0x557a65=_0x498d7b[0x0]['tableWidth'],_0x30715d=_0x498d7b[0x0]['columnWidths'];break;}}_0x3710b0({'table':_0x6108c4,'tableWidth':_0x49a46a,'columnWidths':_0x2fa435}),_0x3cf45a['markBlockFormat'](_0x6108c4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x557a65,'columnWidths':_0x30715d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x8df26){if('formatBlock'!=_0x8df26['type']&&'formatInline'!=_0x8df26['type'])return;const {data:_0x272767}=_0x8df26;if(_0x272767&&'resizeTable'===_0x272767['formatGroupId']){const _0x8b43d3='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x8b43d3)};}}}class Ct extends _0x59c88b{['afterInit'](){const _0x620121=this['editor'];_0x620121['plugins']['has']('Template')&&_0x620121['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x59c88b{['afterInit'](){const _0x3531c7=this['editor'];if(!_0x3531c7['commands']['get']('insertTableOfContents'))return;_0x3531c7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x56d554=_0x3531c7['plugins']['get']('TrackChangesEditing'),_0x12dc06=_0x3531c7['locale'];_0x56d554['descriptionFactory']['registerElementLabel']('tableOfContents',_0x500926=>o(_0x12dc06,'ELEMENT_TABLE_OF_CONTENTS',_0x500926));}}class Dt extends _0x59c88b{['afterInit'](){const _0x23fbba=this['editor'];if(!_0x23fbba['plugins']['has']('Title'))return;const _0x54d316=_0x23fbba['plugins']['get']('TrackChangesEditing');_0x54d316['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x23fbba['locale'],'ELEMENT_TITLE')),_0x23fbba['model']['document']['registerPostFixer'](_0x3b6aa0=>{let _0x44dead=!0x1;const _0x211358=Array['from'](_0x23fbba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f05f1,data:_0x550e12}of _0x211358){const {group:_0x5c3536}=_0x54d316['_splitMarkerName'](_0x1f05f1);if('suggestion'!==_0x5c3536||!_0x550e12['newRange'])continue;const _0x33ac04=_0x550e12['newRange'],_0x11ad57=_0x33ac04['end']['nodeBefore'];if(!_0x11ad57||!_0x11ad57['is']('element','title-content'))continue;if(!_0x33ac04['start']['isTouching'](_0x33ac04['end']))continue;const _0x580c52=_0x23fbba['model']['schema']['getNearestSelectionRange'](_0x33ac04['end'],'forward');if(_0x580c52&&_0x580c52['isCollapsed']){const _0x2db47f=_0x3b6aa0['createRange'](_0x33ac04['start'],_0x580c52['start']);_0x2db47f['isEqual'](_0x33ac04)||(_0x3b6aa0['updateMarker'](_0x1f05f1,{'range':_0x2db47f}),_0x44dead=!0x0);}_0x44dead||(_0x3b6aa0['removeMarker'](_0x1f05f1),_0x44dead=!0x0);}return _0x44dead;});}}class Nt extends _0x59c88b{['afterInit'](){const _0x347628=this['editor'],_0x3e8a03=_0x347628['plugins']['get']('TrackChangesEditing');_0x347628['plugins']['has']('UndoEditing')&&(_0x3e8a03['enableCommand']('undo'),_0x3e8a03['enableCommand']('redo'));}}class Mt extends _0x59c88b{static get['requires'](){return[jt];}['afterInit'](){const _0x3df803=this['editor'];if(!_0x3df803['plugins']['has']('TableCaptionEditing'))return;_0x3df803['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x59c88b{['tableProperties'];['tableCellProperties'];constructor(_0x33e2d2){super(_0x33e2d2),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 _0x4faa79=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2a5ebe of this['tableProperties'])_0x4faa79['enableCommand'](_0x2a5ebe,(_0xcb12a4,_0x31c39e)=>{const _0x5bbb85=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2a5ebe,[_0x5bbb85],this['tableProperties'],'tableProperties',_0xcb12a4,_0x31c39e);});_0x4faa79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4faa79['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4faa79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5d5667,_0x54033e)=>this['handleDiscardAction'](this['tableProperties'],_0x5d5667,_0x54033e)),_0x4faa79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5f5370 of this['tableCellProperties'])_0x4faa79['enableCommand'](_0x5f5370,(_0x4b03f7,_0x52a9c6)=>{const _0x57308d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5f5370,_0x57308d,this['tableCellProperties'],'tableCellProperties',_0x4b03f7,_0x52a9c6);});_0x4faa79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4faa79['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4faa79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xd4cda2,_0x4ac551)=>this['handleDiscardAction'](this['tableCellProperties'],_0xd4cda2,_0x4ac551)),_0x4faa79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4faa79['descriptionFactory']['registerDescriptionCallback'](_0x13f408=>this['handleSuggestionDescription'](_0x13f408));}['_handlePropertyChange'](_0x5604cc,_0x436c37,_0x32fb91,_0x413afd,_0x339e42,_0x1dd0a2){const _0x44e286=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1dd0a2['batch'],()=>{for(const _0x2eaa99 of _0x436c37){if(this['_getSuggestion'](_0x2eaa99,_0x413afd))_0x339e42(_0x1dd0a2);else{const _0xcad776={};for(const _0x5ea818 of _0x32fb91){const _0x31ddef=_0x2eaa99['getAttribute'](_0x5ea818);void 0x0!==_0x31ddef&&(_0xcad776[_0x5ea818]=_0x31ddef);}_0x339e42(_0x1dd0a2),_0x44e286['markBlockFormat'](_0x2eaa99,{'commandParams':[_0xcad776]},[],_0x413afd);}}});}['handleDiscardAction'](_0x3f6c99,_0x377904,_0x4fb079){const _0x2dcf13=_0x377904[0x0]['start']['nodeAfter'],_0x59f618=_0x4fb079['commandParams'][0x0];this['editor']['model']['change'](_0x232b36=>{for(const _0x41109f of _0x3f6c99)void 0x0!==_0x59f618[_0x41109f]?_0x232b36['setAttribute'](_0x41109f,_0x59f618[_0x41109f],_0x2dcf13):_0x232b36['removeAttribute'](_0x41109f,_0x2dcf13);});}['handleSuggestionDescription'](_0x1efaff){if(_0x1efaff['data'])switch(_0x1efaff['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'](_0x5db04d,_0x291066){const _0x92bb8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x378988 of _0x92bb8['getSuggestions']({'skipNotAttached':!0x0})){const _0x275d4c=_0x378988['getContainedElement']();if(_0x378988['subType']===_0x291066&&_0x275d4c===_0x5db04d)return _0x378988;}return null;}}const m='$elementName';class p extends _0x59c88b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x33ac0f,_0x547ed1,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5ed23a){function _0x24cb9a(_0x17c456){return _0x17c456['map'](_0xb74af9=>String['fromCharCode'](_0xb74af9))['join']('');}super(_0x5ed23a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3e8c11,_0x474f34,_0x356c0a,_0x3774c3)=>{this['_model']['change'](()=>{for(const _0x3c9f3d of[..._0x3774c3,..._0x356c0a])this['_model']['markers']['has'](_0x3c9f3d)&&_0x5ed23a['editing']['reconvertMarker'](_0x3c9f3d);});}),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']=_0x5ed23a['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(),_0x5ed23a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5ed23a['config']['get']('trackChanges.trackFormatChanges'),_0x5ed23a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5ed23a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5ed23a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x24cb9a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x24cb9a([0x34,0x30,0x34,0x38,0x31,0x34,0x32,0x30]);}['init'](){const _0xe127ad=this['editor'],_0x55997e=(_0x216787,_0x396471)=>{if('attribute'!=_0x216787)return'ck-suggestion-marker-'+_0x216787;const _0x4851e4=_0x396471['split']('|')[0x0];return this['_isBlockAttribute'](_0x4851e4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xe127ad['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xba9a45=>{const {id:_0xbfa88f,type:_0x2d99d1,subType:_0x4b1300}=this['_splitMarkerName'](_0xba9a45['markerName']),_0x1ce089=['ck-suggestion-marker',_0x55997e(_0x2d99d1,_0x4b1300)];let _0x5631ac=0xbb8;return this['activeMarkers']['includes'](_0xba9a45['markerName'])&&(_0x1ce089['push']('ck-suggestion-marker--active'),_0x5631ac=0xbc2),'deletion'==_0x2d99d1&&(_0x5631ac+=0x5),{'classes':_0x1ce089,'attributes':{'data-suggestion':_0xbfa88f},'priority':_0x5631ac};}}),_0xe127ad['conversion']['for']('dataDowncast')['add'](_0x2d7a70=>{_0x2d7a70['on']('addMarker:suggestion',(_0x58df5d,_0xf796ca,_0x3232df)=>{if(!_0x3232df['options']['showSuggestionHighlights'])return;const _0x4978b5=_0xf796ca['item'];if(!_0x4978b5)return;const _0x31bd5d=_0x3232df['mapper']['toViewElement'](_0x4978b5);_0xe127ad['model']['schema']['isObject'](_0x4978b5)&&_0x31bd5d&&!_0x31bd5d['getCustomProperty']('widget')&&_0x31bd5d['is']('containerElement')&&_0xffa378(_0x31bd5d,_0x3232df['writer']);},{'priority':'high'});}),_0xe127ad['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x199333,_0x52d0a8)=>{if(!_0x52d0a8['options']['showSuggestionHighlights'])return null;const {type:_0xdb3e09,subType:_0x1d9f0f}=this['_splitMarkerName'](_0x199333['markerName']);return{'classes':['ck-suggestion-marker',_0x55997e(_0xdb3e09,_0x1d9f0f)],'priority':0xbb8};}});const _0x4984e4=({showActiveMarkers:_0x432697=!0x0,isAttributeSuggestion:_0x597bb7=!0x1}={})=>(_0x1b2a14,_0x98283c,_0x5152fa)=>{if(!_0x98283c['item'])return;const {id:_0x3bc603}=this['_splitMarkerName'](_0x98283c['markerName']);if(_0x597bb7){const _0x683082=this['_suggestions']['get'](_0x3bc603),_0x1ee540=this['_getAttributeKey'](_0x683082);if(!this['_isBlockAttribute'](_0x1ee540))return;}if(_0x98283c['item']['is']('selection'))return void _0x5152fa['consumable']['consume'](_0x98283c['item'],_0x1b2a14['name']);const _0x588941=_0x5152fa['mapper']['toViewElement'](_0x98283c['item']);if(_0x98283c['item']['is']('element')&&_0xe127ad['model']['schema']['isBlock'](_0x98283c['item'])&&!_0x588941['getCustomProperty']('addHighlight')){_0x5152fa['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x588941),_0x5152fa['writer']['setAttribute']('data-suggestion',_0x3bc603,_0x588941),_0x5152fa['mapper']['bindElementToMarker'](_0x588941,_0x98283c['markerName']),_0x432697&&(this['activeMarkers']['includes'](_0x98283c['markerName'])?_0x5152fa['writer']['addClass']('ck-suggestion-marker--active',_0x588941):_0x5152fa['writer']['removeClass']('ck-suggestion-marker--active',_0x588941));for(const _0x102b6d of _0xe127ad['model']['createRangeIn'](_0x98283c['item'])['getItems']())_0x5152fa['consumable']['consume'](_0x102b6d,_0x1b2a14['name']);_0x5152fa['consumable']['consume'](_0x98283c['item'],_0x1b2a14['name']);}};_0xe127ad['conversion']['for']('dataDowncast')['add'](_0x4d2e85=>{_0x4d2e85['on']('addMarker:suggestion:formatBlock',(_0x260841,_0x1cef08,_0x145fb5)=>{_0x145fb5['options']['showSuggestionHighlights']&&_0x4984e4({'showActiveMarkers':!0x1})(_0x260841,_0x1cef08,_0x145fb5);},{'priority':'highest'});}),_0xe127ad['conversion']['for']('dataDowncast')['add'](_0x42e8e3=>{_0x42e8e3['on']('addMarker:suggestion:attribute',(_0x3249d0,_0xe8f718,_0x49a295)=>{_0x49a295['options']['showSuggestionHighlights']&&_0x4984e4({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3249d0,_0xe8f718,_0x49a295);},{'priority':'highest'});}),_0xe127ad['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x287e75,_0x1f042e)=>_0x1f042e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x287e75['substr'](0xb)}}),_0xe127ad['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x293640,{writer:_0x568760})=>{let _0x3194a5='suggestion:'+_0x293640['getAttribute']('suggestion-type')+':'+_0x293640['getAttribute']('id');return _0x293640['getAttribute']('marker-count')&&(_0x3194a5+=':'+_0x293640['getAttribute']('marker-count')),_0x568760['createElement']('$marker',{'data-name':_0x3194a5});}}),_0xe127ad['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xe127ad['conversion']['for']('editingDowncast')['add'](_0x42224b=>{_0x42224b['on']('addMarker:suggestion:formatBlock',_0x4984e4(),{'priority':'high'});}),_0xe127ad['conversion']['for']('editingDowncast')['add'](_0x2dd279=>{_0x2dd279['on']('addMarker:suggestion:attribute',_0x4984e4({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xe127ad['conversion']['for']('editingDowncast')['add'](_0x244238=>{_0x244238['on']('removeMarker:suggestion:formatBlock',(_0x4ad6a7,_0x2646f6,_0x183187)=>{const _0xb24114=_0x183187['mapper']['markerNameToElements'](_0x2646f6['markerName']);if(_0xb24114){for(const _0x51536d of _0xb24114)_0x51536d['getCustomProperty']('addHighlight')||(_0x183187['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x51536d),_0x183187['writer']['removeAttribute']('data-suggestion',_0x51536d),_0x183187['mapper']['unbindElementFromMarkerName'](_0x51536d,_0x2646f6['markerName']));}},{'priority':'high'});}),_0xe127ad['conversion']['for']('editingDowncast')['add'](_0x1628b9=>{_0x1628b9['on']('removeMarker:suggestion:attribute',(_0x55c9e3,_0x23eba2,_0x26b3b7)=>{const _0x1d1cdc=_0x26b3b7['mapper']['markerNameToElements'](_0x23eba2['markerName']);if(!_0x1d1cdc)return;const {id:_0x1472a3}=this['_splitMarkerName'](_0x23eba2['markerName']),_0xe1804e=this['_suggestions']['get'](_0x1472a3),_0x2e8e77=this['_getAttributeKey'](_0xe1804e);if(this['_isBlockAttribute'](_0x2e8e77)){for(const _0x2c29f7 of _0x1d1cdc)_0x2c29f7['getCustomProperty']('addHighlight')||(_0x26b3b7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2c29f7),_0x26b3b7['writer']['removeAttribute']('data-suggestion',_0x2c29f7),_0x26b3b7['mapper']['unbindElementFromMarkerName'](_0x2c29f7,_0x23eba2['markerName']));}},{'priority':'high'});}),_0xe127ad['model']['document']['registerPostFixer'](_0x5caa32=>{let _0x444cf9=!0x1;const _0x43ef59=Array['from'](_0xe127ad['model']['document']['differ']['getChangedMarkers']()),_0x3b8c5e=new Set();for(const {name:_0x589a39,data:_0x366667}of _0x43ef59){const {group:_0x100142,type:_0x43235b,subType:_0x4b4276,id:_0x896572}=this['_splitMarkerName'](_0x589a39);if('suggestion'!==_0x100142)continue;const _0x429306=this['_suggestions']['get'](_0x896572);if(null!=_0x366667['newRange']){'formatInline'==_0x43235b&&(_0x444cf9=_0x444cf9||Et(_0x366667['newRange'],_0x589a39,_0x5caa32,_0xe127ad['model']['schema']));const _0xf9f56a='attribute'==_0x43235b&&this['_isBlockAttribute'](_0x4b4276['split']('|')[0x0]);if(_0x366667['newRange']['isCollapsed']||'$graveyard'==_0x366667['newRange']['root']['rootName']||'formatBlock'==_0x43235b&&!Ut(_0x366667['newRange'])||_0xf9f56a&&!Ut(_0x366667['newRange'])||'deletion'==_0x43235b&&!(!Tt(_0x5cd110=_0x366667['newRange'])&&!function(_0x3c0c85){return _0x3c0c85['start']['parent']==_0x3c0c85['end']['nodeBefore']&&_0x3c0c85['start']['isAtEnd'];}(_0x5cd110)))_0x5caa32['removeMarker'](_0x589a39),_0x444cf9=!0x0;else{if(!_0x429306||!_0x429306['isInContent'])continue;_0x3b8c5e['add'](_0x429306);}}}var _0x5cd110;return _0x3b8c5e['size']>0x0&&(_0x444cf9=!!this['_joinWithAdjacentSuggestions'](_0x3b8c5e)||_0x444cf9),_0x444cf9;}),_0xe127ad['model']['document']['registerPostFixer'](_0x2aee3f=>{let _0xb53ed5=!0x1;for(const _0x11d094 of _0xe127ad['model']['document']['differ']['getChanges']())if('insert'==_0x11d094['type'])for(const _0x3cb8c1 of this['_suggestions']['values']()){if(_0x3cb8c1['isMultiRange']||!_0x3cb8c1['isInContent'])continue;const _0xfc64f5='formatBlock'==_0x3cb8c1['type'],_0x2364d6=this['_getAttributeKey'](_0x3cb8c1),_0x3def1e=_0x2364d6&&this['_isBlockAttribute'](_0x2364d6);if(!_0xfc64f5&&!_0x3def1e)continue;const _0x180783=_0x3cb8c1['getFirstRange']();if(_0x180783['start']['parent']!=_0x180783['end']['parent']&&!_0x180783['end']['isAtEnd']){const _0x1457ed=_0xe127ad['model']['createPositionAt'](_0x180783['start']['nodeAfter'],'end'),_0x433607=_0xe127ad['model']['createRange'](_0x180783['start'],_0x1457ed);_0x2aee3f['updateMarker'](_0x3cb8c1['getFirstMarker'](),{'range':_0x433607}),_0xb53ed5=!0x0;}}return _0xb53ed5;}),_0xe127ad['model']['document']['registerPostFixer'](_0x1789a5=>this['_processAttributeChanges'](_0x1789a5)),_0xe127ad['model']['document']['registerPostFixer'](_0x3ace33=>!_0x3ace33['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3ace33)),_0xe127ad['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xe127ad['model']['document']['on']('change:data',(_0x296b6e,_0x54c3b0)=>{if(!_0x54c3b0['isLocal']||_0x54c3b0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ad2a2=_0xe127ad['model']['document']['differ']['getChanges']();if(0x0==_0x4ad2a2['length'])return;const _0x537f1f=[],_0xb234bf=_0x4ad2a2['filter'](_0x13b420=>'attribute'==_0x13b420['type']),_0x36c6f9=_0x4ad2a2['filter'](_0x4cbba3=>'insert'==_0x4cbba3['type']&&'$text'!=_0x4cbba3['name']);for(const _0x499d2b of _0xb234bf)this['_isRegisteredAttribute'](_0x499d2b['attributeKey'])&&_0x537f1f['push']({'key':_0x499d2b['attributeKey'],'newValue':_0x499d2b['attributeNewValue'],'oldValue':_0x499d2b['attributeOldValue'],'range':Ot(_0x499d2b['range'],_0xe127ad['model'])});for(const _0x49bec1 of _0x36c6f9){if('rename'!=_0x49bec1['action']&&'refresh'!=_0x49bec1['action'])continue;const _0x28804d=Gt(_0x49bec1['position']['nodeAfter'],_0xe127ad['model']),_0x441b48=_0x49bec1['before'];'rename'==_0x49bec1['action']&&_0x537f1f['push']({'key':m,'newValue':_0x49bec1['name'],'oldValue':_0x441b48['name'],'range':_0x28804d});for(const [_0x53e1c2,_0x5cb50d]of _0x441b48['attributes']){if(!this['_isRegisteredAttribute'](_0x53e1c2))continue;const _0x5687f6=_0x49bec1['attributes']['get'](_0x53e1c2);_0x5cb50d!==_0x5687f6&&_0x537f1f['push']({'key':_0x53e1c2,'newValue':_0x5687f6,'oldValue':_0x5cb50d,'range':_0x28804d});}for(const [_0x71bb1d,_0x15304b]of _0x49bec1['attributes'])this['_isRegisteredAttribute'](_0x71bb1d)&&(_0x441b48['attributes']['has'](_0x71bb1d)||_0x537f1f['push']({'key':_0x71bb1d,'newValue':_0x15304b,'oldValue':null,'range':_0x28804d}));}0x0!=_0x537f1f['length']&&_0xe127ad['model']['enqueueChange'](_0x54c3b0,_0x1c4d12=>{const _0x271218=_0x572f80();for(const {range:_0xc688b9,key:_0x5e96d0,oldValue:_0x36a04c,newValue:_0x779ad2}of _0x537f1f)this['markAttributeChange'](_0xc688b9,_0x5e96d0,_0x36a04c,_0x779ad2,{'groupId':_0x271218});this['_reduceExistingSuggestions'](_0x1c4d12,_0x537f1f);});},{'priority':'lowest'}),_0xe127ad['model']['markers']['on']('update:suggestion',(_0x2d0cb2,_0x106f71,_0x3bec89)=>{if(null==_0x3bec89){const {id:_0x55fe55}=this['_splitMarkerName'](_0x106f71['name']),_0x102917=this['_suggestions']['get'](_0x55fe55);_0x102917&&_0x102917['addMarkerName'](_0x106f71['name']);}}),_0xe127ad['model']['document']['on']('change:data',()=>{const _0x372ea5=Array['from'](_0xe127ad['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4a4494=>'suggestion'===this['_splitMarkerName'](_0x4a4494['name'])['group']);if(0x0===_0x372ea5['length'])return;_0x372ea5['sort']((_0x5211a9,_0x16627c)=>{const _0x107d13=_0x5211a9['data']['oldRange'],_0x18a9dc=_0x16627c['data']['oldRange'];return null===_0x107d13&&null===_0x18a9dc?0x0:null===_0x107d13&&null!==_0x18a9dc?-0x1:null!==_0x107d13&&null===_0x18a9dc?0x1:_0x107d13['start']['isBefore'](_0x18a9dc['start'])?-0x1:0x1;});const _0x54b750=new Set(),_0x39d722=new Set();for(const {name:_0x2a7e80,data:_0x583b86}of _0x372ea5){const {id:_0x5e8743}=this['_splitMarkerName'](_0x2a7e80);if(null===_0x583b86['oldRange']){const _0x2460bc=this['_handleNewSuggestionMarker'](_0x2a7e80);_0x39d722['add'](_0x2460bc);}else{const _0x1370dd=this['_suggestions']['get'](_0x5e8743);null!==_0x583b86['newRange']||_0x1370dd['isInContent']?(_0x54b750['add'](_0x1370dd['head']),_0x39d722['add'](_0x1370dd)):this['_removeSuggestion'](_0x1370dd);}}_0x39d722['size']>0x0&&this['_refreshSuggestionsChain'](_0x39d722);for(const _0x24fd22 of _0x54b750)this['fire']('suggestionChanged',_0x24fd22);}),_0xe127ad['model']['on']('applyOperation',(_0x424030,_0x217c80)=>{const _0x55add5=_0x217c80[0x0];if(!this['_suggestions']['size'])return;if(!_0x55add5['isDocumentOperation'])return;if(_0x55add5['batch']['isUndo']||!_0x55add5['batch']['isLocal'])return;let _0x35510a,_0x40514b;switch(_0x55add5['type']){case'insert':_0x35510a=_0xe127ad['model']['createPositionAt'](_0x55add5['position']),_0x40514b=_0x35510a['getShiftedBy'](_0x55add5['howMany']);break;case'split':_0x35510a=_0xe127ad['model']['createPositionAt'](_0x55add5['splitPosition']),_0x40514b=_0xe127ad['model']['createPositionAt'](_0x55add5['moveTargetPosition']);break;case'move':_0x35510a=_0xe127ad['model']['createPositionAt'](_0x55add5['targetPosition']),_0x40514b=_0x35510a['getShiftedBy'](_0x55add5['howMany']);break;default:return;}const _0x3cbf94=_0xe127ad['model']['createRange'](_0x35510a,_0x40514b);_0xe127ad['model']['change'](()=>{for(const {suggestion:_0xd1f863,meta:_0x3f73e1}of this['_findSuggestions'](_0x3cbf94)){if(_0xd1f863['isMultiRange'])continue;if('formatInline'==_0xd1f863['type'])continue;const _0x27f2f0=this['_getAttributeKey'](_0xd1f863);if(_0x27f2f0&&this['_isBlockAttribute'](_0x27f2f0)&&'split'!=_0x55add5['type'])continue;const _0xe40a97=_0xd1f863['data']&&_0xd1f863['data']['multipleBlocks'];('formatBlock'!=_0xd1f863['type']||'split'==_0x55add5['type']&&!_0xe40a97)&&(_0x3f73e1['containsRangeInObject']||'insertion'==_0xd1f863['type']&&_0x3f73e1['isOwn']||_0xd1f863['getFirstRange']()['containsRange'](_0x3cbf94)&&this['_breakSuggestionMarker'](_0xd1f863,_0x35510a,_0x40514b));}});},{'priority':'lowest'}),_0xe127ad['model']['on']('deleteContent',(_0x55072a,_0x3435f0)=>{const _0x57d988=_0x3435f0[0x0],_0x483482=_0x3435f0[0x1];if(_0x483482&&_0x483482['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x57d988['isCollapsed'])return;const _0x508527=_0xe127ad['model']['schema'],{start:_0x3bd4ae,end:_0x1dd6c8}=_0x57d988['getFirstRange'](),_0x6e6e27=_0x3bd4ae['nodeAfter']&&_0x508527['isLimit'](_0x3bd4ae['nodeAfter'])?null:_0x508527['getNearestSelectionRange'](_0x3bd4ae,'forward'),_0x2ad489=_0x1dd6c8['nodeBefore']&&_0x508527['isLimit'](_0x1dd6c8['nodeBefore'])?null:_0x508527['getNearestSelectionRange'](_0x1dd6c8,'backward'),_0x1d3e6b=_0xe127ad['model']['createRange'](_0x6e6e27?_0x6e6e27['start']:_0x3bd4ae,_0x2ad489?_0x2ad489['end']:_0x1dd6c8);_0xe127ad['model']['change'](_0x3dd581=>{this['markDeletion'](_0x1d3e6b);const _0xf44322=_0xe127ad['model']['schema']['getNearestSelectionRange'](_0x1d3e6b['start']);_0x57d988['is']('documentSelection')?_0x3dd581['setSelection'](_0xf44322):_0x57d988['setTo'](_0xf44322);}),_0x55072a['stop']();},{'priority':_0x52fe0a['normal']+0xa}),_0xe127ad['model']['on']('insertContent',(_0x3e8a67,_0x1ac054)=>{const _0x46defc=_0x1ac054[_0x1ac054['length']-0x1];_0x46defc&&_0x46defc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xe127ad['model']['change'](()=>{let _0x3ae870=_0xe127ad['model']['insertContent'](_0x1ac054[0x0],_0x1ac054[0x1],_0x1ac054[0x2],{'forceDefaultExecution':!0x0});if(!_0x3ae870)return;_0x3e8a67['return']=_0x3ae870['clone']();const _0x26d478=_0x3ae870['end']['nodeBefore'],_0x446339=_0xe127ad['model']['schema'];_0x26d478&&_0x446339['isBlock'](_0x26d478)&&!_0x446339['isObject'](_0x26d478)&&(_0x3ae870=_0xe127ad['model']['createRange'](_0x3ae870['start'],_0xe127ad['model']['createPositionAt'](_0x26d478,'end'))),this['markInsertion'](_0x3ae870);}),_0x3e8a67['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2cae79=new $(_0xe127ad,this['_suggestions']);_0xe127ad['commands']['add']('acceptSuggestion',_0x2cae79),this['enableCommand']('acceptSuggestion');const _0x239f8b=new B(_0xe127ad,this['_suggestions']);_0xe127ad['commands']['add']('discardSuggestion',_0x239f8b),this['enableCommand']('discardSuggestion'),_0xe127ad['commands']['add']('acceptAllSuggestions',new x(_0xe127ad,_0x2cae79,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xe127ad['commands']['add']('discardAllSuggestions',new x(_0xe127ad,_0x239f8b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xe127ad['commands']['add']('acceptSelectedSuggestions',new R(_0xe127ad,_0x2cae79,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xe127ad['commands']['add']('discardSelectedSuggestions',new R(_0xe127ad,_0x239f8b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x169552=_0xe127ad['plugins']['get']('CommentsRepository');this['listenTo'](_0x169552,'addComment',(_0x18dc9c,{threadId:_0x47aaa2})=>{const _0x220ee9=this['_suggestions']['get'](_0x47aaa2);_0x220ee9&&_0x220ee9['commentThread']&&0x1===_0x220ee9['commentThread']['length']&&this['_updateSuggestionData'](_0x47aaa2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x169552,'removeComment',(_0x2e6b32,{threadId:_0x5c4836})=>{const _0x559acc=this['_suggestions']['get'](_0x5c4836);_0x559acc&&_0x559acc['commentThread']&&!_0x559acc['commentThread']['length']&&this['_updateSuggestionData'](_0x5c4836,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x223be5){if(this['_adapter'])throw new _0x4e76c6('track-changes-adapter-already-set',this);this['_adapter']=_0x223be5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xaa3cf5=!0x1,toJSON:_0x29f538=!0x1}={}){const _0x2f93a2=[];for(const _0x5d5c99 of this['_suggestions']['values']())_0xaa3cf5&&!_0x5d5c99['isInContent']||_0x2f93a2['push'](_0x5d5c99);return _0x29f538?_0x2f93a2['map'](_0x52731d=>_0x52731d['toJSON']()):_0x2f93a2;}['getSuggestion'](_0x208858){const _0x324218=this['_suggestions']['get'](_0x208858);if(!_0x324218)throw new _0x4e76c6('track-changes-suggestion-not-found',this);return _0x324218;}['hasSuggestion'](_0x4704c6){return this['_suggestions']['has'](_0x4704c6);}['addSuggestionData'](_0x4c6eae){const {authorId:_0xfdab99,id:_0x49585d,attributes:_0x2f95a8}=_0x4c6eae,[_0x2ea71b,_0x45e23f]=_0x4c6eae['type']['split'](':'),_0x43008c=this['_suggestions']['get'](_0x49585d)||this['_createSuggestion'](_0x2ea71b,_0x45e23f,_0x49585d,_0xfdab99,_0x2f95a8);if(this['_addThreadToSuggestion'](_0x43008c),this['_checkSuggestionCorrectness'](_0x43008c,_0x2ea71b,_0x45e23f||null,_0xfdab99),_0x43008c['createdAt']=_0x4c6eae['createdAt'],_0x43008c['_isDataLoaded']=!0x0,_0x2f95a8&&_0x2f95a8['@external']){const _0x57dea7=_0x2f95a8['@external'],_0xa08fb=this['_getExternalAuthor'](_0x57dea7['authorName']);_0x43008c['authoredAt']=_0x57dea7['createdAt'],_0x43008c['author']=_0xa08fb,_0x43008c['isExternal']=!0x0;}else _0x43008c['authoredAt']=_0x4c6eae['createdAt'];switch(_0x4c6eae['data']&&(_0x43008c['data']=_0x4c6eae['data']),_0x4c6eae['attributes']&&(_0x43008c['attributes']=_0x4c6eae['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43008c['_saved']=!0x0),this['_suggestionState']['get'](_0x43008c)){case'notReady':this['_suggestionState']['set'](_0x43008c,'dataReady');break;case'markerReady':_0x43008c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43008c])),this['_refreshSuggestionsChain'](new Set([_0x43008c])),this['_suggestionState']['set'](_0x43008c,'ready'),this['fire']('suggestionLoaded',_0x43008c)):this['_suggestionState']['set'](_0x43008c,'removed');}return _0x43008c;}['acceptSuggestion'](_0x229f40){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x288738 of _0x229f40['getAllAdjacentSuggestions']())_0x288738['accept']();});});}['discardSuggestion'](_0x3e2168){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x375a03 of _0x3e2168['getAllAdjacentSuggestions']())_0x375a03['discard']();});});}['enableCommand'](_0x437019,_0x449c7e){const _0x421289=this['editor']['commands']['get'](_0x437019);if(!_0x421289)throw new _0x4e76c6('track-changes-command-not-found',this,{'commandName':_0x437019});if(this['_enabledCommands']['has'](_0x421289))throw new _0x4e76c6('track-changes-enable-command-twice',this,{'commandName':_0x437019});this['_enabledCommands']['add'](_0x421289),_0x449c7e&&_0x421289['on']('execute',(_0x4635b9,_0x52652d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x52652d['length']>0x0&&_0x52652d[_0x52652d['length']-0x1]&&_0x52652d[_0x52652d['length']-0x1]['forceDefaultExecution']?_0x52652d['pop']():(_0x4635b9['return']=_0x449c7e((..._0x474414)=>_0x421289['execute'](..._0x474414,{'forceDefaultExecution':!0x0}),..._0x52652d),_0x4635b9['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x16101e){let _0x3fc27b,_0x42c37d;const _0x3fd29c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3fc27b=_0x16101e();}catch(_0x38a690){_0x42c37d=_0x38a690;}return _0x3fd29c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x42c37d&&_0x4e76c6['rethrowUnexpectedError'](_0x42c37d,this),_0x3fc27b;}['markInsertion'](_0xfee4e7,_0x4146af=null,_0x507d7a={}){if(_0xfee4e7['isCollapsed'])return null;const _0x31634c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x425f37,meta:_0x119018}of this['_findSuggestions'](_0xfee4e7,'insertion'))if(_0x119018['isOwn']){if(!_0x119018['isNextTo']){if(_0x119018['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x425f37,_0x507d7a))continue;return _0x425f37;}if(Lt(_0x425f37,_0x507d7a))return _0x425f37;this['_breakSuggestionMarker'](_0x425f37,_0xfee4e7['start'],_0xfee4e7['end']);break;}if(_0x4146af==_0x425f37['subType']&&Lt(_0x425f37,_0x507d7a)){const _0x5ee510=_0x425f37['getFirstRange']();return _0x5ee510['start']['isEqual'](_0xfee4e7['end'])?this['_setSuggestionRange'](_0x425f37,this['_model']['createRange'](_0xfee4e7['start'],_0x5ee510['end'])):this['_setSuggestionRange'](_0x425f37,this['_model']['createRange'](_0x5ee510['start'],_0xfee4e7['end'])),_0x425f37;}}const _0x18004b=_0x572f80(),_0x17936e=_0x31634c['id'],_0x441561=_0x4146af?'insertion:'+_0x4146af:'insertion',_0x334a16=this['_setSuggestionData']({'id':_0x18004b,'type':_0x441561,'createdAt':new Date(),'authorId':_0x17936e,'attributes':_0x507d7a});return this['_addSuggestionMarker'](_0x441561,_0x18004b,_0x17936e,_0xfee4e7),_0x334a16;}['markMultiRangeInsertion'](_0x556370,_0x2d7810='multi',_0xb3f7d={}){const _0x140863=this['editor']['plugins']['get']('Users')['me'],_0x25ec35=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d7810,'join');for(const _0x4ac42c of this['getSuggestions']())if(_0x4ac42c['author']['id']==_0x140863['id']&&'insertion'==_0x4ac42c['type']&&_0x4ac42c['subType']==_0x2d7810&&Lt(_0x4ac42c,_0xb3f7d)&&(_0x25ec35(_0x4ac42c['getRanges'](),_0x556370)||_0x25ec35(_0x556370,_0x4ac42c['getRanges']()))){for(const _0x4187ed of _0x556370)_0x4ac42c['addRange'](_0x4187ed);return _0x4ac42c;}for(const {suggestion:_0x2503a3,meta:_0x15eab1}of this['_findSuggestions'](_0x556370,'insertion')){if(!_0x15eab1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x15eab1['containsRangeInObject'])continue;if(!Lt(_0x2503a3,_0xb3f7d))continue;let _0x41da57=!0x0;for(const _0x58d5e6 of _0x2503a3['getRanges']())for(const _0x14fefc of _0x556370)if(!_0x58d5e6['containsRange'](_0x14fefc)){_0x41da57=!0x1;break;}if(_0x41da57)return _0x2503a3;}const _0x17e393=_0x572f80(),_0x11f904=_0x140863['id'],_0x3dc4ed='insertion:'+_0x2d7810,_0x1efddd=this['_setSuggestionData']({'id':_0x17e393,'type':_0x3dc4ed,'createdAt':new Date(),'authorId':_0x11f904,'attributes':_0xb3f7d});for(const _0x17a3ff of _0x556370)this['_addSuggestionMarker'](_0x3dc4ed,_0x17e393,_0x11f904,_0x17a3ff,u['getMultiRangeId']());return _0x1efddd;}['markInlineFormat'](_0x3a534a,_0x564953,_0x15d9bc=null,_0x145c3d={}){if(_0x15d9bc=_0x15d9bc||Vt(_0x564953),_0x3a534a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2e5831=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x15d9bc,'accept');return this['forceDefaultExecution'](()=>_0x2e5831([_0x3a534a],_0x564953,_0x145c3d)),null;}const _0x15951a=this['editor']['plugins']['get']('Users')['me'],_0x42754a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2b3945,meta:_0x3dc129}of this['_findSuggestions'](_0x3a534a,'insertion'))_0x3dc129['isOwn']&&!_0x3dc129['isInsideObject']&&_0x42754a['push'](..._0x2b3945['getRanges']());}const _0x18886a=function(_0x21e0b2,_0x3152eb){const _0x31c7e4=[];for(const _0x40472b of _0x3152eb){const _0x5ba466=_0x21e0b2['getIntersection'](_0x40472b);_0x5ba466&&_0x31c7e4['push'](_0x5ba466);}return _0x31c7e4;}(_0x3a534a,_0x42754a),_0x280a1b=function(_0x4501b4,_0x106a90){const _0x4a3790=[_0x4501b4];for(const _0x299a6a of _0x106a90){let _0x3cc183=0x0;for(;_0x3cc183<_0x4a3790['length'];){const _0x1349a8=_0x4a3790[_0x3cc183]['getDifference'](_0x299a6a);_0x4a3790['splice'](_0x3cc183,0x1,..._0x1349a8),_0x3cc183+=_0x1349a8['length'];}}return _0x4a3790;}(_0x3a534a,_0x42754a);_0x18886a['length']&&this['_model']['change'](()=>{for(const _0x153daa of _0x18886a){const _0x85ec4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x15d9bc,'accept');this['forceDefaultExecution'](()=>_0x85ec4([_0x153daa],_0x564953,_0x145c3d));}});for(const _0x34f37a of _0x280a1b){let _0x471488=null,_0x143813=_0x34f37a['start'],_0x30f930=_0x34f37a['end'];for(const {suggestion:_0x9de276,meta:_0x116418}of this['_findSuggestions'](_0x34f37a,'formatInline')){if(!_0x116418['isOwn'])continue;if(_0x9de276['subType']!=_0x15d9bc)continue;if(!Lt(_0x9de276,_0x145c3d))continue;const _0x51de4d=_0x9de276['getFirstRange']();if(_0x51de4d['containsRange'](_0x34f37a,!0x0))return null;_0x143813=_0x143813['isBefore'](_0x51de4d['start'])?_0x143813:_0x51de4d['start'],_0x30f930=_0x30f930['isAfter'](_0x51de4d['end'])?_0x30f930:_0x51de4d['end'],_0x471488?_0x51de4d['start']['isBefore'](_0x471488['getFirstRange']()['start'])?(_0x471488['removeMarkers'](),_0x471488=_0x9de276):_0x9de276['removeMarkers']():_0x471488=_0x9de276;}const _0x1bc771=this['_model']['createRange'](_0x143813,_0x30f930);if(_0x471488)this['_setSuggestionRange'](_0x471488,_0x1bc771);else{const _0x3d7e41=_0x572f80(),_0x1f8743=_0x15951a['id'];this['_setSuggestionData']({'id':_0x3d7e41,'type':'formatInline:'+_0x15d9bc,'data':_0x564953,'createdAt':new Date(),'authorId':_0x1f8743,'attributes':_0x145c3d}),this['_addSuggestionMarker']('formatInline:'+_0x15d9bc,_0x3d7e41,_0x1f8743,_0x1bc771);}}return null;}['markBlockFormat'](_0x5d09d0,_0x554546,_0x10e557=[],_0x342318=null,_0x4ac502={}){_0x554546['formatGroupId']||(_0x554546['formatGroupId']=_0x554546['commandName']),_0x554546['multipleBlocks']=_0x5d09d0['is']('range'),_0x342318=_0x342318||Vt(_0x554546);const _0x5273a7=_0x10e557['map'](_0x2cb3bb=>Gt(_0x2cb3bb,this['_model'])),_0x1d0593=_0x5d09d0['is']('range')?_0x5d09d0:Gt(_0x5d09d0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2cb743=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x342318,'accept');return this['forceDefaultExecution'](()=>_0x2cb743([_0x1d0593],_0x554546,_0x4ac502)),null;}_0x5273a7['push'](_0x1d0593);let _0x99f9a7=!0x0;for(const _0x1be096 of _0x5273a7)if(!this['_rangeIsInLocalUserInsertion'](_0x1be096)){_0x99f9a7=!0x1;break;}if(_0x99f9a7&&'always'!==this['_trackFormatChanges']){const _0x3a8d08=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x342318,'accept');return this['forceDefaultExecution'](()=>_0x3a8d08([_0x1d0593],_0x554546,_0x4ac502)),null;}let _0x1b516d=null,_0x41573a=_0x1d0593['start'],_0x2ff594=_0x1d0593['end'];for(const {suggestion:_0x184511,meta:_0x3787b7}of this['_findSuggestions'](_0x1d0593,'formatBlock')){if(!_0x3787b7['isOwn'])continue;if(_0x3787b7['isNextTo']||_0x3787b7['containsRangeInObject']||_0x3787b7['isInsideObject'])continue;if(_0x184511['data']['formatGroupId']!=_0x554546['formatGroupId'])continue;if(!Lt(_0x184511,_0x4ac502))continue;const _0x19bf5c=_0x184511['getFirstRange']();if(_0x184511['subType']==_0x342318){if(_0x19bf5c['containsRange'](_0x1d0593,!0x0))return null;_0x41573a=_0x41573a['isBefore'](_0x19bf5c['start'])?_0x41573a:_0x19bf5c['start'],_0x2ff594=_0x2ff594['isAfter'](_0x19bf5c['end'])?_0x2ff594:_0x19bf5c['end'],_0x1b516d?_0x19bf5c['start']['isBefore'](_0x1b516d['getFirstRange']()['start'])?(_0x1b516d['removeMarkers'](),_0x1b516d=_0x184511):_0x184511['removeMarkers']():_0x1b516d=_0x184511;}else{const _0x5811cb=_0x1d0593['getIntersection'](_0x19bf5c);this['_cutOutSuggestionMarker'](_0x184511,_0x5811cb);}}const _0x5f3ae8=this['editor']['plugins']['get']('Users')['me'],_0x18ccf2=_0x572f80(),_0x44543e=_0x5f3ae8['id'];if(_0x1b516d)return this['_setSuggestionRange'](_0x1b516d,this['_model']['createRange'](_0x41573a,_0x2ff594)),_0x1b516d;{const _0x5525e8=this['_setSuggestionData']({'id':_0x18ccf2,'type':'formatBlock:'+_0x342318,'data':_0x554546,'createdAt':new Date(),'authorId':_0x44543e,'attributes':_0x4ac502});return this['_addSuggestionMarker']('formatBlock:'+_0x342318,_0x18ccf2,_0x44543e,this['_model']['createRange'](_0x41573a,_0x2ff594)),_0x5525e8;}}['markMultiRangeBlockFormat'](_0x515e2b,_0x3bb611,_0x3afc23=[],_0x33ab33=null,_0x5aee89={}){_0x3bb611['formatGroupId']||(_0x3bb611['formatGroupId']=_0x3bb611['commandName']);const _0x2038b3=_0x515e2b[0x0];_0x3bb611['multipleBlocks']=_0x2038b3['is']('range'),_0x33ab33=_0x33ab33||Vt(_0x3bb611);const _0x1c196c=_0x3afc23['map'](_0x25974d=>Gt(_0x25974d,this['_model'])),_0x357e89=_0x2038b3['is']('range')?_0x515e2b:_0x515e2b['map'](_0x239e23=>Gt(_0x239e23,this['_model']));if('never'===this['_trackFormatChanges']){const _0x225ec5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33ab33,'accept');return this['forceDefaultExecution'](()=>_0x225ec5(_0x357e89,_0x3bb611,_0x5aee89)),null;}_0x1c196c['push'](..._0x357e89);let _0x15b250=!0x0;for(const _0x1539f4 of _0x1c196c)if(!this['_rangeIsInLocalUserInsertion'](_0x1539f4)){_0x15b250=!0x1;break;}if(_0x15b250&&'always'!==this['_trackFormatChanges']){const _0x33def3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33ab33,'accept');return this['forceDefaultExecution'](()=>_0x33def3(_0x357e89,_0x3bb611,_0x5aee89)),null;}const _0x18922e=this['editor']['plugins']['get']('Users')['me'];for(const _0x21854d of this['getSuggestions']()){if(_0x21854d['author']['id']!=_0x18922e['id'])continue;if('formatBlock'!=_0x21854d['type']||_0x21854d['data']['formatGroupId']!=_0x3bb611['formatGroupId'])continue;if(!Lt(_0x21854d,_0x5aee89))continue;const _0xd0d41f=_0x21854d['subType']==_0x33ab33;for(let _0x501d09=0x0;_0x501d09<_0x357e89['length'];_0x501d09++){const _0x187f6e=_0x357e89[_0x501d09];for(const _0x4ee19f of _0x21854d['getMarkers']()){const _0x102e2c=_0x4ee19f['getRange']();if(_0x187f6e['isEqual'](_0x102e2c)){_0xd0d41f?(_0x357e89['splice'](_0x501d09,0x1),_0x501d09--):_0x21854d['removeMarker'](_0x4ee19f['name']);break;}}}}if(0x0==_0x357e89['length'])return null;const _0x198add=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33ab33,'join');for(const _0x342887 of this['getSuggestions']())if(_0x342887['author']['id']==_0x18922e['id']&&'formatBlock'==_0x342887['type']&&_0x342887['data']['formatGroupId']==_0x3bb611['formatGroupId']&&_0x342887['subType']==_0x33ab33&&Lt(_0x342887,_0x5aee89)&&(_0x198add(_0x342887['getRanges'](),_0x357e89)||_0x198add(_0x357e89,_0x342887['getRanges']()))){for(const _0x5485c3 of _0x357e89)_0x342887['addRange'](_0x5485c3);return _0x342887;}const _0x12c1c1=_0x572f80(),_0x4a65a2=_0x18922e['id'],_0x19b189='formatBlock:'+_0x33ab33,_0xe932d4=this['_setSuggestionData']({'id':_0x12c1c1,'type':_0x19b189,'data':_0x3bb611,'createdAt':new Date(),'authorId':_0x4a65a2,'attributes':_0x5aee89});for(const _0x46cbeb of _0x357e89)this['_addSuggestionMarker'](_0x19b189,_0x12c1c1,_0x4a65a2,_0x46cbeb,u['getMultiRangeId']());return _0xe932d4;}['markDeletion'](_0x334067,_0x272c94=null,_0x545792={}){if(_0x334067['isCollapsed'])return null;const _0x1259e6=this['editor']['plugins']['get']('Users')['me'],_0x5c4356=new _0x273003(_0x334067['start'],_0x334067['end']);for(const {suggestion:_0x2afb2a,meta:_0x16d789}of this['_findSuggestions'](_0x5c4356,'insertion'))if(_0x16d789['isOwn']&&!_0x16d789['isNextTo']){if(_0x2afb2a['isMultiRange']){const _0x154848=_0x2afb2a['getRanges']()['filter'](_0x30ce47=>'$graveyard'!=_0x30ce47['root']['rootName']);_0x154848['every'](_0x4f2e01=>_0x5c4356['containsRange'](_0x4f2e01,!0x0))&&_0x2afb2a['discard']();if(_0x154848['some'](_0x55c62f=>_0x55c62f['containsRange'](_0x5c4356,!0x0))){const _0x3331f2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x272c94,'accept');return this['forceDefaultExecution'](()=>_0x3331f2([_0x5c4356],null,_0x545792)),null;}}else{const _0x1f290e=_0x5c4356['getIntersection'](_0x2afb2a['getFirstRange']());null!==_0x1f290e&&_0x2afb2a['_onDiscard']([_0x1f290e],null,_0x545792);}}if(_0x5c4356['detach'](),_0x5c4356['isCollapsed']||'$graveyard'==_0x5c4356['root']['rootName'])return null;let _0x245574=null,_0x29cdaf=_0x5c4356['start'],_0x53007a=_0x5c4356['end'];const _0x2005ee=this['_findSuggestions'](_0x5c4356,'deletion');for(const {suggestion:_0x1c8124,meta:_0x39095d}of _0x2005ee){const _0x467481=this['_model']['createRange'](_0x29cdaf,_0x53007a);if(_0x39095d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x39095d['containsRangeInObject']&&!_0x39095d['isInsideObject'])){if(_0x1c8124['isMultiRange']){if(!Lt(_0x1c8124,_0x545792))continue;let _0x19e88d=!0x0;for(const _0x2852e5 of _0x1c8124['getRanges']()){if(_0x2852e5['containsRange'](_0x467481,!0x0))return _0x1c8124;_0x467481['containsRange'](_0x2852e5)||(_0x19e88d=!0x1);}_0x19e88d&&_0x1c8124['discard']();}else{const _0x151b91=_0x1c8124['getFirstRange']();if(_0x151b91['containsRange'](_0x467481,!0x0))return _0x1c8124;if(!Lt(_0x1c8124,_0x545792)){_0x467481['containsRange'](_0x151b91)?_0x1c8124['removeMarkers']():_0x151b91['containsPosition'](_0x29cdaf)?_0x29cdaf=_0x151b91['end']:_0x151b91['containsPosition'](_0x53007a)&&(_0x53007a=_0x151b91['start']);continue;}_0x29cdaf=_0x29cdaf['isBefore'](_0x151b91['start'])?_0x29cdaf:_0x151b91['start'],_0x53007a=_0x53007a['isAfter'](_0x151b91['end'])?_0x53007a:_0x151b91['end'],_0x545792=Object['assign']({},_0x1c8124['attributes']),_0x245574?_0x151b91['start']['isBefore'](_0x245574['getFirstRange']()['start'])?(_0x245574['removeMarkers'](),_0x245574=_0x1c8124):_0x1c8124['removeMarkers']():_0x245574=_0x1c8124;}}}if(_0x245574)return this['_setSuggestionRange'](_0x245574,this['_model']['createRange'](_0x29cdaf,_0x53007a)),_0x245574;{const _0x110f95=_0x572f80(),_0x1cee39=this['_model']['createRange'](_0x29cdaf,_0x53007a),_0x5494bb=_0x1259e6['id'],_0x50f600=_0x272c94?'deletion:'+_0x272c94:'deletion',_0x123ecc=this['_setSuggestionData']({'id':_0x110f95,'type':_0x50f600,'createdAt':new Date(),'authorId':_0x5494bb,'attributes':_0x545792});return this['_addSuggestionMarker'](_0x50f600,_0x110f95,_0x5494bb,_0x1cee39),_0x123ecc;}}['markMultiRangeDeletion'](_0x22aacd,_0xc649db='multi',_0x4a4cee={}){const _0x4c48b2=this['editor']['plugins']['get']('Users')['me'],_0x1d8fe1=_0x22aacd['map'](_0x1633e4=>new _0x273003(_0x1633e4['start'],_0x1633e4['end'])),_0x76c0df=new Set();for(const {suggestion:_0x2029ea,meta:_0x53414b}of this['_findSuggestions'](_0x1d8fe1,'insertion'))_0x53414b['isOwn']&&!_0x53414b['isNextTo']&&_0x76c0df['add'](_0x2029ea);for(const _0x271086 of _0x76c0df)if(_0x271086['isMultiRange']){const _0x38dca5=_0x271086['getRanges']();(!_0x271086['attributes']||!_0x271086['attributes']['skipNestingCheck'])&&(_0x38dca5['every'](_0x230650=>_0x1d8fe1['some'](_0x48c3cb=>_0x48c3cb['containsRange'](_0x230650,!0x0)))&&_0x271086['discard']());if(_0x1d8fe1['every'](_0x32f785=>_0x38dca5['some'](_0x3a8888=>_0x3a8888['containsRange'](_0x32f785,!0x0)))){const _0x281461=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc649db,'accept');return this['forceDefaultExecution'](()=>_0x281461(_0x22aacd,null,_0x4a4cee)),null;}}else{const _0x303693=_0x271086['getFirstRange']();_0x1d8fe1['some'](_0x3a2e5c=>_0x3a2e5c['containsRange'](_0x303693,!0x0))&&_0x271086['discard']();if(_0x1d8fe1['every'](_0x21ff5e=>_0x303693['containsRange'](_0x21ff5e,!0x0))){const _0x51d9cd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc649db,'accept');return this['forceDefaultExecution'](()=>_0x51d9cd(_0x1d8fe1,null,_0x4a4cee)),null;}}const _0x55ec34=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc649db,'join');let _0x1229db=null;for(const _0x5d4a16 of this['getSuggestions']())if(_0x5d4a16['author']['id']==_0x4c48b2['id']&&_0x5d4a16['isInContent']&&'deletion'==_0x5d4a16['type']&&_0x5d4a16['subType']==_0xc649db&&Lt(_0x5d4a16,_0x4a4cee)&&(_0x55ec34(_0x5d4a16['getRanges'](),_0x1d8fe1)||_0x55ec34(_0x1d8fe1,_0x5d4a16['getRanges']()))){if(_0x1229db){if(_0x5d4a16['commentThread']&&_0x5d4a16['commentThread']['length'])continue;for(const _0x47b218 of _0x5d4a16['getRanges']())_0x1229db['isIntersectingWithRange'](_0x47b218)||_0x1229db['addRange'](_0x47b218);_0x5d4a16['removeMarkers']();}else{_0x1229db=_0x5d4a16;for(const _0x3c5120 of _0x1d8fe1)_0x5d4a16['isIntersectingWithRange'](_0x3c5120)||_0x5d4a16['addRange'](_0x3c5120);}}if(_0x1229db)return _0x1229db;_0x76c0df['clear']();for(const {suggestion:_0x32dc5d,meta:_0x4a253f}of this['_findSuggestions'](_0x1d8fe1,'deletion'))_0x4a253f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a253f['containsRangeInObject']&&!_0x4a253f['isInsideObject'])&&Lt(_0x32dc5d,_0x4a4cee)&&_0x76c0df['add'](_0x32dc5d);for(const _0x5d14f3 of _0x76c0df){const _0x7143bf=_0x5d14f3['getRanges']();if(!_0x4a4cee||!_0x4a4cee['skipNestingCheck']){if(_0x1d8fe1['every'](_0x48c8b8=>_0x7143bf['some'](_0x3a86bd=>_0x3a86bd['containsRange'](_0x48c8b8,!0x0))))return _0x5d14f3;}(!_0x5d14f3['attributes']||!_0x5d14f3['attributes']['skipNestingCheck'])&&(_0x7143bf['every'](_0x48a49a=>_0x1d8fe1['some'](_0x196566=>_0x196566['containsRange'](_0x48a49a,!0x0)))&&_0x5d14f3['discard']());}const _0x5916be=_0x572f80(),_0xf0a512=_0x4c48b2['id'],_0x55bbc4='deletion:'+_0xc649db,_0xc77298=this['_setSuggestionData']({'id':_0x5916be,'type':_0x55bbc4,'createdAt':new Date(),'authorId':_0xf0a512,'attributes':_0x4a4cee});for(const _0xe4222a of _0x1d8fe1)_0xe4222a['detach'](),_0xe4222a['isCollapsed']||'$graveyard'==_0xe4222a['root']['rootName']||this['_addSuggestionMarker'](_0x55bbc4,_0x5916be,_0xf0a512,_0xe4222a,u['getMultiRangeId']());return _0xc77298;}['markAttributeChange'](_0x5cb4fc,_0x5ec091,_0xa64455,_0x471cd3,_0x2d1b0f){if(_0x5cb4fc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4b7fda=this['editor']['plugins']['get']('Users')['me']['id'],_0x7c0111=Array['from'](this['_suggestions']['values']())['filter'](_0x1154d9=>'attribute'==_0x1154d9['type']&&_0x1154d9['data']['key']==_0x5ec091&&_0x1154d9['isIntersectingWithRange'](_0x5cb4fc));if('default'===this['_trackFormatChanges']){const _0x1d97c6=this['_findSuggestions'](_0x5cb4fc,'insertion')['filter'](({meta:_0xfdf6e7})=>_0xfdf6e7['isOwn']&&!_0xfdf6e7['isInsideObject']&&!_0xfdf6e7['isNextTo'])['map'](({suggestion:_0x4f7229})=>_0x4f7229);_0x7c0111['unshift'](..._0x1d97c6);}const _0x346c15=new Map([[_0x5cb4fc,_0xa64455]]);for(const _0x5d59bb of _0x7c0111){const _0xaf5533='attribute'==_0x5d59bb['type']?_0x5d59bb['data']['oldValue']:void 0x0,_0x49dbc0=_0x5d59bb['getFirstRange'](),_0x5a3609=Array['from'](_0x346c15['keys']())['find'](_0x763cb2=>_0x763cb2['isIntersecting'](_0x49dbc0));if(!_0x5a3609)continue;const _0x41eb30=_0x5a3609['getDifference'](_0x49dbc0);this['_isBlockAttribute'](_0x5ec091)&&'insertion'==_0x5d59bb['type']&&0x0!=_0x41eb30['length']||(_0x346c15['delete'](_0x5a3609),_0x41eb30['forEach'](_0x4a2164=>{_0x346c15['set'](_0x4a2164,_0xa64455);}),'insertion'!=_0x5d59bb['type']&&_0xaf5533!=_0x471cd3&&_0x346c15['set'](_0x5a3609['getIntersection'](_0x49dbc0),_0xaf5533));}const _0x4c431f=[];for(const [_0x49fbc4,_0x392c5e]of _0x346c15){const _0x4897f5=_0x572f80(),_0x4e8ae6={'key':_0x5ec091,'oldValue':_0x392c5e,'newValue':_0x471cd3};_0x5ec091['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':_0x5ec091});const _0x13ef2f=('attribute:'+(_0x5ec091+'|'+Vt({'newValue':_0x471cd3})))['substring'](0x0,0x3c),_0x2380f0=this['_setSuggestionData']({'id':_0x4897f5,'type':_0x13ef2f,'data':_0x4e8ae6,'createdAt':new Date(),'authorId':_0x4b7fda,'attributes':_0x2d1b0f});_0x4c431f['push'](_0x2380f0),this['_addSuggestionMarker'](_0x13ef2f,_0x4897f5,_0x4b7fda,_0x49fbc4);}return _0x4c431f;}['enableDefaultAttributesIntegration'](_0x434914){this['enableCommand'](_0x434914,(_0x511347,..._0x59faea)=>{this['_recordAttributeChanges'](()=>{_0x511347(..._0x59faea);});});}['registerBlockAttribute'](_0x805b77){this['_blockAttributeKeys']['add'](_0x805b77);}['registerInlineAttribute'](_0x3c9acd){this['_inlineAttributeKeys']['add'](_0x3c9acd);}['_getAttributeKey'](_0x40defe){return'attribute'==_0x40defe['type']?_0x40defe['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x214d3a,_0x14c806){const _0x3180e1=_0x214d3a['getFirstMarker']();this['_model']['change'](_0x14621c=>{_0x14621c['updateMarker'](_0x3180e1,{'range':_0x14c806});});}['_addThreadToSuggestion'](_0x13d6ec){const _0x584d07=_0x13d6ec['id'],_0x285937=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x584d07)||this['_commentsRepository']['addCommentThread']({'channelId':_0x285937,'threadId':_0x584d07,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5daca1=this['_commentsRepository']['getCommentThread'](_0x584d07);_0x5daca1['unbind']('isRemovable'),_0x5daca1['isRemovable']=!0x1,_0x13d6ec['commentThread']=_0x5daca1;}['_checkSuggestionCorrectness'](_0xf4c8a5,_0x30bfbc,_0x1a12b5,_0x1bebb7){if(_0xf4c8a5['type']!=_0x30bfbc||_0xf4c8a5['subType']!=_0x1a12b5||_0xf4c8a5['creator']['id']!=_0x1bebb7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4e76c6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x156047,_0x1586b1){const _0x286e89=_0x156047['getFirstRange']();if(_0x1586b1['isEqual'](_0x286e89))_0x156047['removeMarkers']();else{if(_0x286e89['containsRange'](_0x1586b1)){const _0x361d43=this['_model']['createPositionAt'](_0x1586b1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x156047,this['_model']['createRange'](_0x286e89['start'],_0x361d43));const _0x4b7670=_0x572f80(),_0x443187=_0x156047['creator']['id'],_0x134ec3=_0x156047['type']+':'+_0x156047['subType'];this['_setSuggestionData']({'id':_0x4b7670,'type':_0x134ec3,'createdAt':new Date(),'authorId':_0x443187,'data':_0x156047['data'],'attributes':_0x156047['attributes']});const _0x63303f=this['_model']['createPositionAt'](_0x1586b1['end']['parent'],'after'),_0x50a844=this['_model']['createRange'](_0x63303f,_0x286e89['end']);this['_addSuggestionMarker'](_0x134ec3,_0x4b7670,_0x443187,_0x50a844);}else{if(_0x286e89['containsPosition'](_0x1586b1['start'])){const _0x40e6f1=this['_model']['createPositionAt'](_0x1586b1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x156047,this['_model']['createRange'](_0x286e89['start'],_0x40e6f1));}else{const _0x5f6013=this['_model']['createPositionAt'](_0x1586b1['end']['parent'],'after');this['_setSuggestionRange'](_0x156047,this['_model']['createRange'](_0x5f6013,_0x286e89['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x47a010){for(const {suggestion:_0x1f0ed4,meta:_0x44efa3}of this['_findSuggestions'](_0x47a010,'insertion')){if(!_0x44efa3['isOwn'])continue;const _0x387597=_0x1f0ed4['getRanges']();for(const _0x58913c of _0x387597)if(!_0x47a010['getDifference'](_0x58913c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1d4644){const _0x34c4d6=this['editor']['plugins']['get']('Users')['getUser'](_0x1d4644);if(!_0x34c4d6)throw new _0x4e76c6('track-changes-user-not-found',this);return _0x34c4d6;}['_getExternalAuthor'](_0x4ab46c){const _0x3b9283=this['editor']['plugins']['get']('Users'),_0x2c41ad=_0x1e0dcb('external:'+_0x4ab46c),_0x2c27e6=_0x3b9283['getUser'](_0x2c41ad);return _0x2c27e6||_0x3b9283['addUser']({'id':_0x2c41ad,'name':_0x4ab46c});}['_createSuggestion'](_0x529c55,_0x9bab1f,_0x2321c6,_0x3cd15a,_0x8527a6){const _0x3aa5d3=this['_getAuthorFromId'](_0x3cd15a),_0x27349b=this['_suggestionFactory']['buildSuggestion'](_0x529c55,_0x9bab1f,_0x2321c6,_0x3aa5d3,_0x8527a6,_0x13c4d7=>{this['_updateSuggestionData'](_0x2321c6,{'attributes':_0x13c4d7});const _0x47c0a6=this['getSuggestion'](_0x2321c6);this['_joinWithAdjacentSuggestions'](new Set([_0x47c0a6])),this['_refreshSuggestionsChain'](new Set([_0x47c0a6]));});return this['listenTo'](_0x27349b,'accept',()=>{this['_updateSuggestionData'](_0x2321c6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x27349b,'discard',()=>{this['_updateSuggestionData'](_0x2321c6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2321c6,_0x27349b),this['_suggestionState']['set'](_0x27349b,'notReady'),_0x27349b;}['_splitMarkerName'](_0x2dfaa9){const _0x3c5d9c=_0x2dfaa9['split'](':');return{'group':_0x3c5d9c[0x0],'type':_0x3c5d9c[0x1],'subType':_0x3c5d9c['length']>=0x5?_0x3c5d9c[0x2]:null,'id':_0x3c5d9c['length']<0x5?_0x3c5d9c[0x2]:_0x3c5d9c[0x3],'authorId':_0x3c5d9c['length']<0x5?_0x3c5d9c[0x3]:_0x3c5d9c[0x4],'markerCount':0x6==_0x3c5d9c['length']?_0x3c5d9c[0x5]:null};}['_breakSuggestionMarker'](_0x441b65,_0x2d779a,_0xcb92b0){const _0x2c01c9=_0x441b65['getFirstRange'](),_0x55e392=_0x2c01c9['start'],_0x1958ab=_0x2c01c9['end'];this['_setSuggestionRange'](_0x441b65,this['_model']['createRange'](_0x55e392,_0x2d779a));const _0x908352=_0x572f80(),_0x4a58f6=_0x441b65['creator']['id'],_0x345510=_0x441b65['type']+(_0x441b65['subType']?':'+_0x441b65['subType']:'');this['_setSuggestionData']({'id':_0x908352,'type':_0x345510,'createdAt':new Date(),'authorId':_0x4a58f6,'originalSuggestionId':_0x441b65['id'],'attributes':_0x441b65['attributes'],'data':_0x441b65['data']});const _0xf3cb1d=this['_getAttributeKey'](_0x441b65);('formatBlock'==_0x441b65['type']||_0xf3cb1d&&this['_isBlockAttribute'](_0xf3cb1d))&&(_0xcb92b0=this['_model']['createPositionBefore'](_0xcb92b0['parent'])),this['_addSuggestionMarker'](_0x345510,_0x908352,_0x4a58f6,this['_model']['createRange'](_0xcb92b0,_0x1958ab));}['_findSuggestions'](_0x264044,_0x2c428f=null){const _0x36dff5=[],_0x4ae718=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x264044)||(_0x264044=[_0x264044]);for(const _0xbe1069 of this['getSuggestions']()){if(!_0xbe1069['isInContent'])continue;if(_0x2c428f&&_0xbe1069['type']!=_0x2c428f)continue;let _0x512f11=!0x1;for(const _0x1e2d0f of _0xbe1069['getRanges']()){for(const _0x32698d of _0x264044){const _0x118e26=_0x32698d['start']['isEqual'](_0x1e2d0f['end'])||_0x32698d['end']['isEqual'](_0x1e2d0f['start']);if(_0x118e26||_0x32698d['getIntersection'](_0x1e2d0f)){const _0x2c0cc5=_0x32698d['containsRange'](_0x1e2d0f)&&Rt(this['_model']['schema'],_0x1e2d0f['start'],_0x32698d),_0x4c84bd=_0x1e2d0f['containsRange'](_0x32698d)&&Rt(this['_model']['schema'],_0x32698d['start'],_0x1e2d0f);_0x36dff5['push']({'suggestion':_0xbe1069,'meta':{'isOwn':_0x4ae718==_0xbe1069['author'],'isNextTo':_0x118e26,'isInsideObject':_0x2c0cc5,'containsRangeInObject':_0x4c84bd}}),_0x512f11=!0x0;break;}}if(_0x512f11)break;}}return _0x36dff5;}['_addSuggestionMarker'](_0x22eec9,_0x399b56,_0x1ceb79,_0x1a112d,_0x4dca2d){this['_model']['change'](_0x4c62fd=>{let _0x19ba5c='suggestion:'+_0x22eec9+':'+_0x399b56+':'+_0x1ceb79;_0x4dca2d&&(_0x19ba5c=_0x19ba5c+':'+_0x4dca2d),_0x4c62fd['addMarker'](_0x19ba5c,{'range':_0x1a112d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1f214c){const _0x51aa21=_0x1f214c['previous'],_0x21d3ee=_0x1f214c['next'];_0x1f214c['previous']=null,_0x1f214c['next']=null,null!=_0x51aa21&&_0x51aa21['next']==_0x1f214c&&(_0x51aa21['next']=_0x21d3ee),null!=_0x21d3ee&&_0x21d3ee['previous']==_0x1f214c&&(_0x21d3ee['previous']=_0x51aa21),'ready'==this['_suggestionState']['get'](_0x1f214c)&&(this['_suggestionState']['set'](_0x1f214c,'removed'),this['fire']('suggestionUnloaded',_0x1f214c,_0x51aa21,_0x21d3ee));}['_setSuggestionData'](_0x1aa237){const _0x50795d=_0x1aa237['id'],_0xf1eab7=this['addSuggestionData'](_0x1aa237);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3ccbae=this['editor']['plugins']['get']('PendingActions'),_0x56a6a2=_0xf1eab7['hasComments'],_0x56a75b=_0xf1eab7['subType']?_0xf1eab7['type']+':'+_0xf1eab7['subType']:_0xf1eab7['type'],_0x5eeb36=this['editor']['locale'],_0x5ea5be=_0x3ccbae['add'](o(_0x5eeb36,'PENDING_ACTION_SUGGESTION')),_0x4e5594={'id':_0x50795d,'type':_0x56a75b,'hasComments':_0x56a6a2,'data':_0x1aa237['data']||null,'originalSuggestionId':_0x1aa237['originalSuggestionId']||null,'attributes':_0xf1eab7['attributes']};this['_adapter']['addSuggestion'](_0x4e5594)['then'](_0x1a70b6=>{_0xf1eab7['_saved']=!0x0,_0x3ccbae['remove'](_0x5ea5be),_0x1a70b6&&_0x1a70b6['createdAt']&&(this['_suggestions']['get'](_0x50795d)['createdAt']=_0x1a70b6['createdAt']);})['catch'](_0x36213b=>{throw _0x42bf5c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xf1eab7['discard']();}),_0xf1eab7['stopListening'](),this['_suggestions']['delete'](_0xf1eab7['id']),this['_suggestionState']['delete'](_0xf1eab7),_0x36213b;});}return _0xf1eab7;}['_isBlockAttribute'](_0x2e9af2){return this['_blockAttributeKeys']['has'](_0x2e9af2);}['_updateSuggestionData'](_0x4cf6b2,_0x598350){const _0x5b7a4a=this['editor']['plugins']['get']('PendingActions'),_0x544561=this['getSuggestion'](_0x4cf6b2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x544561['_saved']){const _0xdb4421=_0x5b7a4a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4cf6b2,_0x598350)['then'](()=>{_0x5b7a4a['remove'](_0xdb4421);});}else _0x544561['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4cf6b2,_0x598350);});}}['_getSuggestionData'](_0x47d4ab){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4e76c6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47d4ab);}['_handleNewSuggestionMarker'](_0x150d81){const {id:_0x2bb73c,type:_0x162f31,subType:_0x3228ac,authorId:_0x2b6599}=this['_splitMarkerName'](_0x150d81),_0x28ccdd=this['_suggestions']['get'](_0x2bb73c)||this['_createSuggestion'](_0x162f31,_0x3228ac,_0x2bb73c,_0x2b6599,{});switch(this['_checkSuggestionCorrectness'](_0x28ccdd,_0x162f31,_0x3228ac,_0x2b6599),this['_suggestionState']['get'](_0x28ccdd)){case'notReady':this['_getSuggestionData'](_0x2bb73c)['then'](_0x11cd52=>{let _0x511c84=Promise['resolve']();_0x11cd52['hasComments']&&(_0x511c84=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2bb73c})),_0x511c84['then'](()=>{this['addSuggestionData'](_0x11cd52)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x28ccdd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2bb73c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x28ccdd,'ready'),this['fire']('suggestionLoaded',_0x28ccdd);break;case'ready':this['fire']('suggestionChanged',_0x28ccdd);}return _0x28ccdd['addMarkerName'](_0x150d81),_0x28ccdd;}['_refreshSuggestionsChain'](_0x1ecd92){const _0x3b3280=Array['from'](_0x1ecd92),_0x3d1680=_0x3b3280['filter'](_0x4ed1b1=>'attribute'==_0x4ed1b1['type']);this['_refreshAttributeSuggestionsChain'](_0x3d1680);const _0x38df43=_0x3b3280['filter'](_0x3d27d8=>!_0x3d27d8['isMultiRange']&&'attribute'!=_0x3d27d8['type']),_0x25df40=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e0d07=>!_0x2e0d07['isMultiRange']&&'attribute'!=_0x2e0d07['type']),_0x21acce=_0x25df40['filter'](_0x3ead60=>!_0x1ecd92['has'](_0x3ead60)),_0x429a35=new Map(_0x25df40['map'](_0xc3be23=>[_0xc3be23,this['_suggestionFactory']['getSuggestionCallback'](_0xc3be23['type'],_0xc3be23['subType'],'chain')])),_0x400fef=new Map(_0x25df40['map'](_0x480abf=>[_0x480abf,_0x480abf['getFirstRange']()])),_0x1e0c9b=new Set(),_0x260112=new Set();for(let _0x4d39c7=0x0;_0x4d39c7<_0x38df43['length'];_0x4d39c7++)_0x4dcdd4(_0x38df43[_0x4d39c7],_0x38df43,_0x4d39c7+0x1);for(let _0xb38dd1=0x0;_0xb38dd1<_0x38df43['length'];_0xb38dd1++)_0x4dcdd4(_0x38df43[_0xb38dd1],_0x21acce,0x0);const _0x1da68a=new Set();for(let _0x3c020b=0x0;_0x3c020b<_0x38df43['length'];_0x3c020b++){const _0x360811=_0x38df43[_0x3c020b];!_0x260112['has'](_0x360811)&&_0x360811['previous']&&(_0x1da68a['add'](_0x360811['previous']),_0x360811['previous']['next']===_0x360811&&(_0x360811['previous']['next']=null),_0x360811['previous']=null),!_0x1e0c9b['has'](_0x360811)&&_0x360811['next']&&(_0x1da68a['add'](_0x360811['next']),_0x360811['next']['previous']===_0x360811&&(_0x360811['next']['previous']=null),_0x360811['next']=null);}function _0x4dcdd4(_0x5b3e34,_0x10c321,_0x41e574){for(let _0x30a483=_0x41e574;_0x30a483<_0x10c321['length'];_0x30a483++){const _0x5c9938=_0x37a684(_0x5b3e34,_0x10c321[_0x30a483]);_0x5c9938&&(_0x5c9938[0x0]['next']=_0x5c9938[0x1],_0x5c9938[0x1]['previous']=_0x5c9938[0x0],_0x1e0c9b['add'](_0x5c9938[0x0]),_0x260112['add'](_0x5c9938[0x1]));}}function _0x37a684(_0x12948f,_0x1b4acc){if(_0x12948f['author']['id']!==_0x1b4acc['author']['id'])return null;const _0x329049=_0x429a35['get'](_0x12948f)(_0x12948f,_0x1b4acc,_0x400fef['get'](_0x12948f),_0x400fef['get'](_0x1b4acc));if(!_0x329049)return null;return _0x429a35['get'](_0x1b4acc)(_0x12948f,_0x1b4acc,_0x400fef['get'](_0x12948f),_0x400fef['get'](_0x1b4acc))?_0x329049[0x1]['commentThread']&&_0x329049[0x1]['commentThread']['length']?null:_0x329049:null;}_0x1da68a['size']&&this['_refreshSuggestionsChain'](_0x1da68a);}['_refreshAttributeSuggestionsChain'](_0x53b96b){if(0x0==_0x53b96b['length'])return;const _0x3e4c9b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ee472=>'attribute'==_0x2ee472['type']&&_0x2ee472['_isDataLoaded']),_0x495122=[],_0x56a680=new Map();for(const _0x5d4651 of _0x3e4c9b){const _0x244af4=_0x1e0dcb(_0x5d4651['attributes']);_0x56a680['has'](_0x244af4)||(_0x56a680['set'](_0x244af4,_0x495122['length']),_0x495122['push']([]));const _0x1b80d8=_0x56a680['get'](_0x244af4);_0x495122[_0x1b80d8]['push'](_0x5d4651);}!(function(){_0x495122['sort']((_0x13c6cf,_0x148744)=>{const _0x583152=_0x13c6cf[0x0]['createdAt'],_0x191c1d=_0x148744[0x0]['createdAt'];return _0x583152==_0x191c1d?_0x13c6cf[0x0]['attributes']['groupId']<_0x148744[0x0]['attributes']['groupId']?-0x1:0x1:_0x583152<_0x191c1d?-0x1:0x1;});for(const _0x3a0864 of _0x495122)_0x3a0864['sort']((_0x2fb373,_0x51383b)=>_0x2fb373['id']<_0x51383b['id']?-0x1:0x1);}());for(let _0x261f82=0x0;_0x261f82<_0x495122['length'];_0x261f82++){if(0x0==_0x495122[_0x261f82]['length'])continue;const _0x2371e7=[];for(let _0x7d3f90=_0x261f82+0x1;_0x7d3f90<_0x495122['length'];_0x7d3f90++)0x0!=_0x495122[_0x7d3f90]['length']&&_0x46fade(_0x495122[_0x261f82],_0x495122[_0x7d3f90])&&_0x2371e7['push'](_0x7d3f90);for(const _0x153189 of _0x2371e7)_0x495122[_0x261f82]=_0x495122[_0x261f82]['concat'](_0x495122[_0x153189]),_0x495122[_0x153189]=[];}for(const _0x7c3a27 of _0x495122)for(let _0x521130=0x0;_0x521130<_0x7c3a27['length'];_0x521130++)_0x7c3a27[_0x521130]['next']=_0x7c3a27[_0x521130+0x1]||null;for(const _0x3fbdac of _0x495122)for(let _0x40c185=0x0;_0x40c185<_0x3fbdac['length'];_0x40c185++)_0x3fbdac[_0x40c185]['previous']=_0x3fbdac[_0x40c185-0x1]||null;function _0x46fade(_0x50550f,_0x29c3fe){if(_0x50550f[0x0]['attributes']['groupId']!==_0x29c3fe[0x0]['attributes']['groupId']&&_0x50550f[0x0]['author']!==_0x29c3fe[0x0]['author'])return!0x1;if(!function(_0x3fa2d1,_0x3d6f24){if(!_0x3fa2d1['hasComments']&&!_0x3d6f24['hasComments'])return!0x0;if(_0x3fa2d1['hasComments']&&_0x3d6f24['hasComments'])return!0x1;if(_0x3fa2d1['hasComments']&&_0x3d6f24['createdAt']<_0x3fa2d1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3d6f24['hasComments']&&_0x3fa2d1['createdAt']<_0x3d6f24['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x50550f[0x0],_0x29c3fe[0x0]))return!0x1;const _0x437b42=Bt(_0x50550f[0x0]['attributes'],'groupId'),_0x5c1bcf=Bt(_0x29c3fe[0x0]['attributes'],'groupId');if(!_0x5e988c(_0x437b42,_0x5c1bcf))return!0x1;return!!_0x50550f['every'](_0xdb118a=>_0x29c3fe['some'](_0x4747a6=>_0xdb118a['getFirstRange']()['isEqual'](_0x4747a6['getFirstRange']())))&&_0x29c3fe['every'](_0x33a74d=>_0x50550f['some'](_0x406645=>_0x33a74d['getFirstRange']()['isEqual'](_0x406645['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x145a39){const _0x47350a=Array['from'](_0x145a39),_0x2b2c22=this['getSuggestions']({'skipNotAttached':!0x0}),_0x410470=_0x2b2c22['filter'](_0x1d8ca9=>!_0x145a39['has'](_0x1d8ca9)),_0x1c5da2=new Map(_0x47350a['map'](_0x2677e2=>[_0x2677e2,this['_suggestionFactory']['getSuggestionCallback'](_0x2677e2['type'],_0x2677e2['subType'],'join')])),_0x477282=new Map(_0x2b2c22['map'](_0x49e9a3=>[_0x49e9a3,_0x49e9a3['getRanges']()]));for(let _0xa753bf=0x0;_0xa753bf<_0x47350a['length'];_0xa753bf++){if(_0x193c90(this,_0x47350a[_0xa753bf],_0x47350a,_0xa753bf+0x1))return!0x0;}for(let _0x299ce3=0x0;_0x299ce3<_0x47350a['length'];_0x299ce3++){if(_0x193c90(this,_0x47350a[_0x299ce3],_0x410470,0x0))return!0x0;}return!0x1;function _0x193c90(_0x5da78a,_0x2f7e2,_0x22b7cd,_0x12e8a2){for(let _0x1198ae=_0x12e8a2;_0x1198ae<_0x22b7cd['length'];_0x1198ae++){const _0x45f345=_0x22b7cd[_0x1198ae];if(_0x45f345['type']!==_0x2f7e2['type']||_0x45f345['author']['id']!==_0x2f7e2['author']['id']||_0x45f345['subType']!==_0x2f7e2['subType'])continue;if(!Pt(_0x2f7e2,_0x45f345,['groupId']))continue;if('attribute'==_0x2f7e2['type']&&_0x2f7e2['data']['oldValue']!=_0x45f345['data']['oldValue'])continue;if('attribute'==_0x2f7e2['type']&&_0x5da78a['_isBlockAttribute'](_0x2f7e2['data']['key']))continue;if('formatBlock'==_0x2f7e2['type']){const _0x160728=_0x5da78a['editor']['model'],_0x17a679=_0x2f7e2['getContainedElement']();if(_0x17a679&&(_0x160728['schema']['isObject'](_0x17a679)||_0x160728['schema']['isLimit'](_0x17a679)))continue;}const _0x4e80d2=_0x1c5da2['get'](_0x2f7e2),_0x2a97a9=_0x477282['get'](_0x2f7e2),_0x30a577=_0x477282['get'](_0x45f345),_0x1b2e27=_0x2f7e2['commentThread']&&_0x2f7e2['commentThread']['length'],_0x5d0190=_0x45f345['commentThread']&&_0x45f345['commentThread']['length'];if(!_0x1b2e27&&_0x4e80d2(_0x30a577,_0x2a97a9))return _0x5da78a['_joinSuggestions'](_0x45f345,_0x2f7e2),_0x477282['delete'](_0x2f7e2),!0x0;if(!_0x5d0190&&_0x4e80d2(_0x2a97a9,_0x30a577))return _0x5da78a['_joinSuggestions'](_0x2f7e2,_0x45f345),_0x477282['delete'](_0x45f345),!0x0;}return!0x1;}}['_joinSuggestions'](_0xd1d304,_0x40ff16){if(_0xd1d304['isMultiRange']){for(const _0x56cd96 of _0x40ff16['getRanges']())_0xd1d304['addRange'](_0x56cd96);}else{const _0x5ba1d1=_0x40ff16['getFirstRange']()['end'];this['_setSuggestionRange'](_0xd1d304,this['_model']['createRange'](_0xd1d304['getFirstRange']()['start'],_0x5ba1d1));}_0x40ff16['removeMarkers']();}['_getMarkerAnnouncementText'](_0x319f4c,_0x180bf5){const _0x54e482=_0x319f4c['startsWith']('format')||_0x319f4c['startsWith']('attribute')?'FORMATTING':_0x319f4c['toUpperCase']();return o(this['editor']['locale'],_0x180bf5+'_'+_0x54e482+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0xa519dd=this['editor'];if(!_0xa519dd['ui'])return;const {ariaLiveAnnouncer:_0x526d94}=_0xa519dd['ui'];_0x5ba890(this['_model'],({left:_0x502ff6,entered:_0x5b1ec3})=>{for(const _0x1ad487 of _0x502ff6){const {group:_0x36dec6,type:_0x44d82c}=this['_splitMarkerName'](_0x1ad487['name']);if('suggestion'===_0x36dec6){_0x526d94['announce'](this['_getMarkerAnnouncementText'](_0x44d82c,'LEAVE'));break;}}for(const _0xc8189a of _0x5b1ec3){const {group:_0x14275e,type:_0x4640a6}=this['_splitMarkerName'](_0xc8189a['name']);if('suggestion'===_0x14275e){_0x526d94['announce'](this['_getMarkerAnnouncementText'](_0x4640a6,'ENTER'));break;}}});}['_processAttributeChanges'](_0x357f66){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5d63b0=this['editor'],_0x351066=_0x5d63b0['model']['document']['differ']['getChanges']();if(0x0==_0x351066['length'])return!0x1;const _0x41d6c1=[],_0x3e6064=_0x351066['filter'](_0x401582=>'attribute'==_0x401582['type']),_0x548d6f=_0x351066['filter'](_0x95c1c1=>'insert'==_0x95c1c1['type']&&'$text'!=_0x95c1c1['name']),_0xbd0195=_0x351066['filter'](_0x529ade=>'remove'==_0x529ade['type']&&'$text'!=_0x529ade['name']);for(const _0xb72744 of _0x3e6064)_0x41d6c1['push']({'key':_0xb72744['attributeKey'],'newValue':_0xb72744['attributeNewValue'],'oldValue':_0xb72744['attributeOldValue'],'range':Ot(_0xb72744['range'],_0x5d63b0['model'])});for(const _0x39eff1 of _0x548d6f){const _0x4e5b5e=_0xbd0195['find'](_0x458378=>_0x458378['position']['isEqual'](_0x39eff1['position']));_0x4e5b5e&&_0x41d6c1['push']({'key':m,'newValue':_0x39eff1['name'],'oldValue':_0x4e5b5e['name'],'range':_0x5d63b0['model']['createRangeOn'](_0x39eff1['position']['nodeAfter'])});}return 0x0!=_0x41d6c1['length']&&this['_reduceExistingSuggestions'](_0x357f66,_0x41d6c1);}['_processAttributeSuggestions'](_0x3f0bc8){let _0x4207cd=!0x1;const _0x6bd8ab=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55fd71=>_0x55fd71['data']['newRange']&&_0x55fd71['name']['startsWith']('suggestion:attribute:'));for(const _0x432c8d of _0x6bd8ab){const {subType:_0xa865ce,id:_0x5dd1f6}=this['_splitMarkerName'](_0x432c8d['name']),_0x3ffd6a=_0xa865ce['split']('|')[0x0];for(const _0x333d3d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x333d3d['id']!=_0x5dd1f6&&'attribute'==_0x333d3d['type']&&_0x333d3d['data']&&_0x333d3d['data']['key']==_0x3ffd6a&&_0x333d3d['getFirstRange']()['isIntersecting'](_0x432c8d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x333d3d,_0x432c8d['data']['newRange'],_0x3f0bc8),_0x4207cd=!0x0);}return _0x4207cd;}['_recordAttributeChanges'](_0x31861a){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x31861a();}['_isRegisteredAttribute'](_0x522b5f){const _0x592468=this['_isBlockAttribute'](_0x522b5f),_0x4a31e1=this['_inlineAttributeKeys']['has'](_0x522b5f);return _0x592468||_0x4a31e1;}['_reduceExistingSuggestions'](_0x1107c8,_0x12ad8a){if(0x0==_0x12ad8a['length'])return!0x1;let _0x280460=!0x1;for(const _0x1fda7b of _0x12ad8a){const _0x5d6fec=this['_findSuggestions'](_0x1fda7b['range'],'attribute')['filter'](_0x556b3a=>!_0x556b3a['meta']['isNextTo'])['map'](_0x4aecf6=>_0x4aecf6['suggestion']),_0x57bab0=_0x1e0dcb({'newValue':_0x1fda7b['newValue']});_0x5d6fec['filter'](_0x4283de=>{const [_0x4164fe,_0x5682c8]=_0x4283de['subType']['split']('|');return _0x4164fe==_0x1fda7b['key']&&_0x5682c8!=_0x57bab0;})['forEach'](_0x49517d=>{this['_reduceSuggestionAttributeRange'](_0x49517d,_0x1fda7b['range'],_0x1107c8),_0x280460=!0x0;});}return _0x280460;}['_reduceSuggestionAttributeRange'](_0x1515d5,_0x214c27,_0x8ad5c){const _0x2a3b3b=_0x1515d5['getFirstRange']()['getDifference'](_0x214c27);0x0!==_0x2a3b3b['length']?0x1!==_0x2a3b3b['length']?this['_breakSuggestionMarker'](_0x1515d5,_0x214c27['start'],_0x214c27['end']):this['_setSuggestionRange'](_0x1515d5,_0x2a3b3b[0x0]):_0x8ad5c['removeMarker'](_0x1515d5['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x275e51){this['_editor']=_0x275e51,this['_model']=_0x275e51['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3c81a2,_0x161d5b,_0x2e88bf,_0xaa91b0,_0x3c47a0,_0x1c5751){return new u(this['_model'],{'type':_0x3c81a2,'subType':_0x161d5b,'id':_0x2e88bf,'author':_0xaa91b0,'creator':_0xaa91b0,'attributes':_0x3c47a0,'onAttributesChange':_0x1c5751,'onAccept':(..._0x10e547)=>this['getSuggestionCallback'](_0x3c81a2,_0x161d5b,'accept')(..._0x10e547),'onDiscard':(..._0x374269)=>this['getSuggestionCallback'](_0x3c81a2,_0x161d5b,'discard')(..._0x374269)});}['registerCustomCallback'](_0x179658,_0x5ba4f5,_0x239481,_0x526fc5){const _0x551aea=_0x179658+':'+_0x5ba4f5+':'+_0x239481;this['_customCallbacks']['set'](_0x551aea,_0x526fc5);}['getSuggestionCallback'](_0x881db5,_0x149324,_0x6397fb){const _0x5785c7=_0x881db5+':'+_0x149324+':'+_0x6397fb;return this['_customCallbacks']['get'](_0x5785c7)||this['_defaultCallbacks']['get'](_0x881db5+':'+_0x6397fb);}['_registerDefaultCallbacks'](){const _0x43d421=()=>!0x1,_0x4f51cc=_0x56ad85=>{_0x56ad85['sort']((_0x3c7623,_0x2ad60b)=>_0x3c7623['start']['isBefore'](_0x2ad60b['start'])?0x1:-0x1),this['_model']['change'](_0x155598=>{for(const _0x40efd9 of _0x56ad85){let _0x6f34f1;_0x6f34f1=_0x40efd9['end']['isAtEnd']&&_0x40efd9['end']['parent']==_0x40efd9['start']['nodeAfter']?_0x155598['createSelection'](_0x40efd9['start']['nodeAfter'],'on'):_0x155598['createSelection'](_0x40efd9),this['_model']['deleteContent'](_0x6f34f1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3e73ed=(_0x2204b1,_0x3cd804)=>{_0x3cd804&&this['_model']['change'](_0x4be078=>{const {commandName:_0x52856f,commandParams:_0xc91d6c=[]}=_0x3cd804,_0x15f657=_0x2204b1['map'](_0x364b5f=>(Tt(_0x364b5f)&&(_0x364b5f=this['_model']['createRange'](_0x364b5f['end'])),_0x364b5f))['filter'](_0x29e0b1=>'$graveyard'!==_0x29e0b1['root']['rootName']);if(_0x15f657['length']<0x1)return;const _0x2a666b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x30eb59=>_0x273003['fromRange'](_0x30eb59));_0x4be078['setSelection'](_0x15f657);for(const _0x4a2eba of this['_editor']['commands']['commands']())_0x4a2eba['refresh']();_0xc91d6c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x52856f,..._0xc91d6c);const _0x369c97=_0x2a666b['filter'](_0x19f5a6=>'$graveyard'!=_0x19f5a6['root']['rootName']);_0x369c97['length']>0x0&&_0x4be078['setSelection'](_0x369c97);for(const _0x40adc2 of _0x2a666b)_0x40adc2['detach']();});},_0x2247bb=(_0x35d86d,_0x54c604)=>0x1==_0x35d86d['length']&&0x1==_0x54c604['length']&&_0x35d86d[0x0]['end']['isEqual'](_0x54c604[0x0]['start']),_0x5d7d5e=(_0x51a2a0,_0x5228b9,_0x323f37,_0x569899)=>Ft(_0x51a2a0,_0x5228b9,_0x323f37,_0x569899,this['_model'])?[_0x51a2a0,_0x5228b9]:Ft(_0x5228b9,_0x51a2a0,_0x569899,_0x323f37,this['_model'])?[_0x5228b9,_0x51a2a0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x43d421),this['_defaultCallbacks']['set']('insertion:discard',_0x4f51cc),this['_defaultCallbacks']['set']('insertion:join',_0x2247bb),this['_defaultCallbacks']['set']('insertion:chain',_0x5d7d5e),this['_defaultCallbacks']['set']('deletion:accept',_0x4f51cc),this['_defaultCallbacks']['set']('deletion:discard',_0x43d421),this['_defaultCallbacks']['set']('deletion:join',_0x2247bb),this['_defaultCallbacks']['set']('deletion:chain',_0x5d7d5e),this['_defaultCallbacks']['set']('formatInline:accept',_0x3e73ed),this['_defaultCallbacks']['set']('formatInline:discard',_0x43d421),this['_defaultCallbacks']['set']('formatInline:join',_0x2247bb),this['_defaultCallbacks']['set']('formatInline:chain',_0x43d421),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3e73ed),this['_defaultCallbacks']['set']('formatBlock:discard',_0x43d421),this['_defaultCallbacks']['set']('formatBlock:join',_0x2247bb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x43d421),this['_defaultCallbacks']['set']('attribute:accept',_0x43d421),this['_defaultCallbacks']['set']('attribute:discard',(_0x102466,_0x10d28b)=>{if(!_0x10d28b)return;const _0x579849=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x45c40=>{if(_0x10d28b['key']==m)for(const _0x59e5b9 of _0x102466){const _0x584f59=_0x59e5b9['start']['nodeAfter'],_0x4605f5=_0x10d28b['oldValue'];_0x45c40['rename'](_0x584f59,_0x4605f5);}else{if(_0x579849['_isBlockAttribute'](_0x10d28b['key'])){for(const _0x120576 of _0x102466)void 0x0!==_0x10d28b['oldValue']?_0x45c40['setAttribute'](_0x10d28b['key'],_0x10d28b['oldValue'],_0x120576['start']['nodeAfter']):_0x45c40['removeAttribute'](_0x10d28b['key'],_0x120576['start']['nodeAfter']);}else{for(const _0x3f0c22 of _0x102466)_0x10d28b['oldValue']?_0x45c40['setAttribute'](_0x10d28b['key'],_0x10d28b['oldValue'],_0x3f0c22):_0x45c40['removeAttribute'](_0x10d28b['key'],_0x3f0c22);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2247bb);}}function Rt(_0x5456aa,_0x2fa799,_0x941d42){for(const _0x50df84 of _0x2fa799['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x50df84['root']==_0x50df84)return!0x1;if(!_0x941d42['containsItem'](_0x50df84))return!0x1;if(_0x5456aa['isObject'](_0x50df84)||_0x5456aa['isLimit'](_0x50df84))return!0x0;}return!0x1;}function Tt(_0x200e6b){return _0x200e6b['end']['parent']==_0x200e6b['start']['nodeAfter']&&_0x200e6b['end']['isAtStart'];}function Et(_0x37adda,_0x4e3a06,_0x4f4f7b,_0x498391){const _0x271d9f=_0x2ffb89=>!_0x2ffb89['item']['is']('$textProxy')&&!_0x498391['isObject'](_0x2ffb89['item']),_0x113b4c=_0x37adda['start']['getLastMatchingPosition'](_0x271d9f),_0x36591c=_0x37adda['end']['getLastMatchingPosition'](_0x271d9f,{'direction':'backward'});return(!_0x37adda['start']['isEqual'](_0x113b4c)||!_0x37adda['end']['isEqual'](_0x36591c))&&(_0x113b4c['isBefore'](_0x36591c)?_0x4f4f7b['updateMarker'](_0x4e3a06,{'range':_0x4f4f7b['createRange'](_0x113b4c,_0x36591c)}):_0x4f4f7b['removeMarker'](_0x4e3a06),!0x0);}function Vt(_0x1eb903){return _0x1e0dcb(_0x1eb903);}function Ut(_0x1cdb48){const _0x245d20=_0x1cdb48['start']['nodeAfter'];return _0x245d20&&_0x245d20['is']('element');}function Ot(_0x5de03e,_0x202f12){return null==_0x5de03e['end']['nodeBefore']&&_0x5de03e['end']['parent']==_0x5de03e['start']['nodeAfter']?Gt(_0x5de03e['start']['nodeAfter'],_0x202f12):_0x5de03e;}function Gt(_0x378946,_0x312e33){const _0xf51b63=_0x312e33['schema']['isObject'](_0x378946)||_0x312e33['schema']['isSelectable'](_0x378946);return _0x312e33['createRange'](_0x312e33['createPositionAt'](_0x378946,'before'),_0xf51b63?_0x312e33['createPositionAfter'](_0x378946):_0x312e33['createPositionAt'](_0x378946,'end'));}function Ft(_0x1dc804,_0x5c2ff1,_0x2ceac7,_0x3a15a7,_0x2aa8d1){if(!Pt(_0x1dc804,_0x5c2ff1))return!0x1;if(_0x2ceac7['end']['isEqual'](_0x3a15a7['start']))return!0x0;if(_0x1dc804['type']!=_0x5c2ff1['type'])return!0x1;if(!_0x2ceac7['end']['isTouching'](_0x3a15a7['start']))return!0x1;const _0x79bb37=_0x2aa8d1['createRange'](_0x2ceac7['end'],_0x3a15a7['start'])['getWalker']();for(const _0x12cde0 of _0x79bb37)if(['elementStart','elementEnd']['includes'](_0x12cde0['type'])&&_0x2aa8d1['schema']['isLimit'](_0x12cde0['item']))return!0x1;return!0x0;}function Pt(_0x5e141f,_0x13a4ec,_0x26c628=[]){return!(!_0x5e141f['_isDataLoaded']||!_0x13a4ec['_isDataLoaded'])&&_0x5e988c(Bt(_0x5e141f['attributes'],_0x26c628),Bt(_0x13a4ec['attributes'],_0x26c628));}function Lt(_0x52b660,_0x151dde){const _0x3903fc=Ht(_0x52b660['attributes']),_0x19503f=Ht(_0x151dde);if(!_0x52b660['_isDataLoaded'])return!0x1;for(const _0x13c17e of Object['keys'](_0x19503f))if(!_0x5e988c(_0x3903fc[_0x13c17e],_0x19503f[_0x13c17e]))return!0x1;return!0x0;}function Ht(_0x2398eb){const _0x283d43=Object['assign']({},_0x2398eb);return delete _0x283d43['skipNestingCheck'],delete _0x283d43['tablePasteChainId'],_0x283d43;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x51fa88(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x28bfe6,_0x50c7f3,_0x17d5f5,_0x2456de){super(),this['model']=_0x50c7f3,this['view']=_0x17d5f5,this['commentThreadController']=_0x2456de,this['_editor']=_0x28bfe6,this['_acceptCommand']=_0x28bfe6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x28bfe6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1941c0,_0x335f43)=>_0x1941c0||_0x335f43),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x352f8c=>_0x352f8c&&this['_editor']['model']['canEditAt'](_0x50c7f3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x114273=>_0x114273&&this['_editor']['model']['canEditAt'](_0x50c7f3['getRanges']())),this['_pendingAction']=null,_0x17d5f5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x17d5f5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x17d5f5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x17d5f5,'change:isDirty',()=>{_0x17d5f5['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 _0xc83bb7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xc83bb7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x29370c{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x5c9d6b,_0x5324dd,_0x41ee29,_0x49fd84){super(_0x5c9d6b),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5324dd['authoredAt']),this['bind']('authoredAt')['to'](_0x5324dd),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5324dd,this['_localUser']=_0x41ee29,this['_config']=_0x49fd84,_0x49fd84['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:_0x5d1f22}=this['_config'];this['commentsListView']=new _0x5d1f22(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',_0x1c5628=>_0x1c5628+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x573a90,_0x41d59f)=>_0x573a90||!!_0x41d59f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x59fa24}=this['_config'],_0x4e75ad=new _0x59fa24(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x401cfe=_0x4e75ad['commentInputView'];return _0x4e75ad['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x401cfe,'value',(_0x5e962d,_0x4dbbe6,_0x774eca)=>!!_0x774eca||_0x5e962d&&!_0x4dbbe6),_0x401cfe['on']('submit',(_0x3a191e,_0x321916)=>{this['fire']('addComment',_0x321916),_0x401cfe['editor']['setData']('');}),_0x401cfe['on']('cancel',()=>this['focus']()),_0x401cfe['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4e75ad;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x36ba70,_0x1b563c,_0x2f9b98,_0x179aea){super(_0x36ba70,_0x1b563c,_0x2f9b98,_0x179aea),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x14095d=>_0x14095d&&_0x14095d[0x0]?_0x14095d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3cb696,_0x554ded)=>{let _0x373030='';for(const _0x21b841 of _0x3cb696)_0x373030+='<p>'+ds(_0x21b841['content'],_0x21b841['color'])+'</p>';return _0x554ded?_0x373030:_0x1e825e(_0x373030,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x36ba70,'Accept\x20suggestion'),_0x1b14e5['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x36ba70,'Discard\x20suggestion'),_0x1b14e5['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xec90f(_0x36ba70,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x249ffd=this['bindTemplate'],_0x48da14=[{'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':_0x249ffd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x249ffd['to']('authoredAt',_0xb40e42=>this['_config']['formatDateTime'](_0xb40e42))}]}]},{'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']&&_0x48da14['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xf81f10={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x249ffd['if']('isActive','ck-suggestion-wrapper--active'),_0x249ffd['to']('type',_0x65cf86=>'ck-suggestion-'+_0x65cf86),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':_0x48da14}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xf81f10['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)),_0xf81f10;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x255aef,_0xa6a5f6,_0x3bdc10)=>{this['_descriptionElement']['innerHTML']=_0x3bdc10;});}['_createButton'](_0x14608f,_0x42af19,_0x378b85,_0x3a4bd4,_0x57f8e1){const _0x1e4305=new _0x101247(this['locale']);return _0x1e4305['set']({'label':_0x14608f,'icon':_0x42af19,'tooltip':!0x0,'tooltipPosition':_0x57f8e1}),_0x1e4305['extendTemplate']({'attributes':{'class':_0x378b85}}),_0x1e4305['on']('execute',()=>{this['fire'](_0x3a4bd4,this['_model']['id']);}),_0x1e4305;}['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(_0x2c84e5,_0x1222e8){let _0x4180c8='';return _0x4180c8+=_0x2c84e5['split']('*')['map']((_0x508c7d,_0x3b07de)=>_0x3b07de%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x508c7d)+'</span>':us(_0x508c7d))['join'](''),_0x1222e8&&(_0x4180c8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1222e8['value']+'\x22\x20title=\x22'+_0x1222e8['title']+'\x22></span>'),_0x4180c8;}function us(_0x38e100){const _0x1fc49c=document['createElement']('span');return _0x1fc49c['innerText']=_0x38e100,_0x1fc49c['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 _0x59c88b{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x33ac0f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x44dff4){super(_0x44dff4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1379a3=this['editor']['config'];_0x1379a3['define']('trackChanges.SuggestionThreadView',ne),_0x1379a3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1379a3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x40632a,_0x1ff2d9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4bd3a0,_0x335264]of this['_handleControllerBuffer']){const _0x52fee4=this['_suggestionToController']['has'](_0x4bd3a0);_0x52fee4||_0x335264?_0x52fee4&&_0x335264&&this['_destroyController'](_0x4bd3a0):this['_initializeController'](_0x4bd3a0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x40632a,_0x1ff2d9);}['init'](){const _0x5c80df=this['editor'],_0xd6b022=_0x5c80df['plugins']['get']('TrackChangesEditing'),_0x305918=_0x5c80df['plugins']['get']('Annotations'),_0x5924d4=_0x5c80df['plugins']['get']('EditorAnnotations'),_0x4a2cf0=_0x5c80df['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5924d4['addSourceCollector'](()=>{const _0x5b2a5b=[];for(const [_0x2b6b3d,_0x5dedc2]of Array['from'](this['_suggestionToController'])){const _0x3b7193=_0x2b6b3d['getAllAdjacentSuggestions'](),_0x275511=[];for(const _0x54f8ef of _0x3b7193){if(!_0x54f8ef['isInContent'])continue;if(_0x54f8ef['isMultiRange']){_0x275511['push'](..._0x54f8ef['getRanges']());continue;}const _0x4a05cd=_0x54f8ef['getFirstRange']();if(_0x275511['length']>0x0){const _0x5dc37e=_0x275511[0x0]['getJoined'](_0x4a05cd);if(_0x5dc37e){_0x275511[0x0]=_0x5dc37e;continue;}}_0x275511['push'](_0x4a05cd);}_0x5b2a5b['push']([_0x5dedc2['view'],_0x275511]);}return _0x5b2a5b;}),this['listenTo'](_0xd6b022,'suggestionLoaded',(_0x275ff3,_0x4f57d4)=>{this['listenTo'](_0x4f57d4,'change:previous',(_0x59f1b0,_0xae58ff,_0x12e54a,_0x53d287)=>{_0x4f57d4['isInContent']&&(null==_0x12e54a?(this['_updateController'](_0x53d287['head']),this['_handleSuggestionControllerDelayed'](_0x4f57d4,!0x1)):(this['_updateController'](_0x12e54a['head']),null==_0x53d287&&this['_handleSuggestionControllerDelayed'](_0x4f57d4,!0x0)));}),null!==_0x4f57d4['previous']?this['_updateController'](_0x4f57d4['head']):this['_handleSuggestionControllerDelayed'](_0x4f57d4,!0x1);}),this['listenTo'](_0xd6b022,'suggestionUnloaded',(_0x7867a5,_0x41ce56,_0x3d6f8d)=>{this['stopListening'](_0x41ce56,'change:previous'),this['_handleControllerBuffer']['delete'](_0x41ce56),this['_suggestionToController']['has'](_0x41ce56)&&this['_destroyController'](_0x41ce56),_0x3d6f8d&&this['_updateController'](_0x3d6f8d['head']);}),this['listenTo'](_0xd6b022,'suggestionChanged',(_0x12db26,_0x2a62d2)=>{this['_updateController'](_0x2a62d2);}),this['listenTo'](_0x305918,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4a2cf0,'addComment',(_0x519a6e,{threadId:_0x42a3e5,isFromAdapter:_0x5cc65a})=>{if(_0x5cc65a||!_0xd6b022['hasSuggestion'](_0x42a3e5))return;const _0x5aaa9c=_0xd6b022['getSuggestion'](_0x42a3e5);this['_suggestionToController']['get'](_0x5aaa9c)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3a5a43=this['editor']['plugins']['get']('Annotations'),_0x44a5b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b2088=Array['from'](_0x3a5a43['activeAnnotations'],_0x406c38=>_0x406c38['innerView'])['filter'](_0x2964a7=>this['_viewToController']['has'](_0x2964a7)),_0x3599a0=[];for(const _0x1e3e9c of _0x2b2088){const _0x26b652=this['_viewToController']['get'](_0x1e3e9c)['model']['getAllAdjacentSuggestions']();_0x3599a0['push'](..._0x26b652['reduce']((_0x1fd295,_0x28f558)=>[..._0x1fd295,..._0x28f558['getMarkerNames']()],[]));}_0x44a5b5['activeMarkers']=_0x3599a0;}['_addUIComponentsToFactory'](){const _0x5748e2=this['editor'],_0x202a74=_0x5748e2['locale'],_0xf4f30f=o(_0x202a74,'Track\x20changes'),_0x5093a5=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0xf4f30f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x202a74,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x202a74,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x202a74,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x202a74,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x106360 of _0x5093a5)if(ae(_0x106360)){const _0x4b9068=_0x5748e2['commands']['get'](_0x106360['model']['commandName']);_0x106360['model']['bind']('isOn','isEnabled')['to'](_0x4b9068,'value','isEnabled');}_0x5748e2['ui']['componentFactory']['add']('trackChanges',_0x114617=>this['_createToolbarButton'](_0x114617,_0x5093a5,_0xf4f30f)),_0x5748e2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x57dd60=>this['_createMenuBarMenu'](_0x57dd60,_0x5093a5,_0xf4f30f));}['_createToolbarButton'](_0x19a532,_0x3611c3,_0x583588){const _0x1440ce=zt(_0x19a532,Zt),_0x5788f6=this['editor']['commands']['get']('trackChanges');_0x1440ce['buttonView']['set']({'tooltip':_0x583588,'label':_0x583588,'icon':ie}),_0x1440ce['buttonView']['bind']('isOn')['to'](_0x5788f6,'value'),_0x1440ce['buttonView']['on']('execute',()=>{_0x5788f6['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1440ce,_0x3611c3,{'role':'menu'});const _0x2134be=[];for(const _0x11dd23 of _0x3611c3)ae(_0x11dd23)&&_0x2134be['push'](this['editor']['commands']['get'](_0x11dd23['model']['commandName']));const _0x36b1ab=_0x1440ce['buttonView'];return _0x36b1ab['actionView']['unbind']('isEnabled'),_0x36b1ab['arrowView']['unbind']('isEnabled'),_0x36b1ab['actionView']['bind']('isEnabled')['to'](_0x5788f6,'isEnabled'),_0x36b1ab['arrowView']['bind']('isEnabled')['toMany'](_0x2134be,'isEnabled',(..._0x49a16f)=>_0x49a16f['some'](_0x67748b=>_0x67748b)),_0x1440ce['on']('execute',_0x204324=>{this['editor']['execute'](_0x204324['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1440ce;}['_createMenuBarMenu'](_0x5209db,_0x2e48b3,_0x21923f){const _0x4ea243=new Kt(_0x5209db),_0x3b63b5=this['editor']['commands']['get']('trackChanges');_0x4ea243['buttonView']['set']({'label':_0x21923f,'icon':ie});const _0x2f97be=new Qt(_0x5209db);for(const _0x4e9505 of _0x2e48b3){if('separator'==_0x4e9505['type']){_0x2f97be['items']['add'](new Jt(_0x5209db));continue;}const _0x2f9b16=new Xt(_0x5209db,_0x4ea243),_0x317ecc=new Yt(_0x5209db),_0x1b9b10=_0x4e9505['model'];_0x317ecc['bind'](...Object['keys'](_0x1b9b10))['to'](_0x1b9b10),_0x317ecc['delegate']('execute')['to'](_0x4ea243),_0x317ecc['on']('execute',()=>{this['editor']['execute'](_0x1b9b10['commandName']),this['editor']['editing']['view']['focus']();}),_0x2f9b16['children']['add'](_0x317ecc),_0x2f97be['items']['add'](_0x2f9b16);}return _0x4ea243['bind']('isEnabled')['to'](_0x3b63b5,'isEnabled'),_0x4ea243['panelView']['children']['add'](_0x2f97be),_0x4ea243;}['_initializeController'](_0x32c2fd){const _0x42ea30=this['editor'],_0xedfc58=_0x42ea30['config'],_0x1a7488=_0x42ea30['plugins']['get']('Annotations'),_0x211832=_0x42ea30['plugins']['get']('CommentsRepository'),_0xac9283=_0x42ea30['plugins']['get']('EditorAnnotations'),_0xa6e14d=_0x42ea30['plugins']['get'](_0x33ac0f)['me'],_0x350827=_0xedfc58['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x841418,CommentThreadInputView:_0x25d55a}=_0x42ea30['plugins']['get']('CommentsUI');let _0x21aacc,_0x27fd4e;this['_annotationViews']['has'](_0x32c2fd['id'])?(_0x27fd4e=this['_annotationViews']['get'](_0x32c2fd['id']),_0x21aacc=_0x27fd4e['mainView']):(_0x21aacc=new _0x350827(_0x42ea30['locale'],_0x32c2fd,_0xa6e14d,{'disableComments':this['_disableComments'],'editorConfig':_0xedfc58['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xedfc58['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xedfc58['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xedfc58['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2f0187(_0xedfc58['get']('locale')),'CommentView':_0xedfc58['get']('comments')['CommentView'],'CommentsListView':_0x841418,'CommentThreadInputView':_0x25d55a}),_0x21aacc['acceptButton']['on']('execute',()=>{_0x42ea30['editing']['view']['focus']();}),_0x21aacc['discardButton']['on']('execute',()=>{_0x42ea30['editing']['view']['focus']();}),_0x27fd4e=_0x1a7488['createAnnotationView'](this['editor']['locale'],_0x21aacc),_0x27fd4e['bind']('isDirty')['to'](_0x21aacc,'isDirty'),_0x27fd4e['bind']('length')['to'](_0x21aacc),_0x27fd4e['bind']('type')['to'](_0x21aacc,'type',_0x5ba805=>'suggestion-'+_0x5ba805),this['_annotationViews']['set'](_0x32c2fd['id'],_0x27fd4e));const _0x1ede95=_0x211832['createCommentThreadController'](_0x32c2fd['commentThread'],_0x21aacc),_0xba61b=new oe(_0x42ea30,_0x32c2fd,_0x21aacc,_0x1ede95),_0x233d93=_0x32c2fd['getAllAdjacentSuggestions']()['filter'](_0x48ae0b=>_0x48ae0b['isInContent']);_0x21aacc['descriptionParts']=_0x42ea30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x233d93),this['_suggestionToController']['set'](_0x32c2fd,_0xba61b),this['_viewToController']['set'](_0x21aacc,_0xba61b);const _0x355d21=_0x1a7488['createAnnotation']({'view':_0x27fd4e,'target':()=>{const _0x30e048=[],_0x903608=_0x32c2fd['getAllAdjacentSuggestions']()['filter'](_0xfb7a3b=>_0xfb7a3b['isInContent']);for(const _0x3a03a7 of _0x903608)_0x30e048['push'](..._0x3a03a7['getMarkers']());return _0x299e40(_0x42ea30['editing'],_0x30e048);},'type':()=>'suggestion-'+_0xba61b['view']['type']});_0x211832['_bindAnnotationToEditors'](_0x21aacc,_0x355d21),_0x1a7488['add'](_0x355d21),_0xac9283['registerAnnotation'](_0x355d21);}['_destroyController'](_0x514b3b){const _0x549271=this['editor']['plugins']['get']('CommentsRepository'),_0x174d63=this['editor']['plugins']['get']('Annotations'),_0xd7b0cd=this['_suggestionToController']['get'](_0x514b3b),_0x133129=_0xd7b0cd['view'],_0x552995=_0x174d63['getByInnerView'](_0x133129);_0x549271['_unbindEditors'](_0x133129),_0x552995&&_0x174d63['remove'](_0x552995),this['_suggestionToController']['delete'](_0x514b3b),this['_viewToController']['delete'](_0x133129),_0xd7b0cd['destroy']();}['_updateController'](_0x335dd5){if(!_0x335dd5['isInContent']||!this['_suggestionToController']['has'](_0x335dd5))return;const _0x4ee26a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3474f1=this['_suggestionToController']['get'](_0x335dd5),_0x3af8b4=_0x335dd5['getAllAdjacentSuggestions']();_0x3474f1['view']['descriptionParts']=_0x4ee26a['descriptionFactory']['getDescriptions'](_0x3af8b4);}['destroy'](){for(const _0x31cee3 of this['_suggestionToController']['keys']())this['_destroyController'](_0x31cee3);for(const _0x27a4c6 of this['_annotationViews']['values']())_0x27a4c6['mainView']['destroy']();super['destroy']();}}function ae(_0x1c4975){return'model'in _0x1c4975;}class k extends _0x59c88b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x34b61c){this['editor']['plugins']['get'](p)['adapter']=_0x34b61c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5caf25){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5caf25);}['getSuggestions']({skipNotAttached:_0x3e3e60=!0x1,toJSON:_0x307c3f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3e3e60,'toJSON':_0x307c3f});}['getSuggestion'](_0x1136d9){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1136d9);}}const T=['Pagination'];class P extends _0x59c88b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x14a4b6=this['editor'];if(_0x14a4b6['config']['define']('trackChangesData.editorCreator',_0x2c2b1e=>{const _0x1233d5=_0x14a4b6['model']['document']['getRootNames']()['reduce']((_0x2e554c,_0x30caed)=>(_0x2e554c[_0x30caed]='',_0x2e554c),{});return _0x14a4b6['constructor']['create'](_0x1233d5,_0x2c2b1e);}),'function'!=typeof _0x14a4b6['config']['get']('trackChangesData')['editorCreator'])throw new _0x4e76c6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4f7126){return N(this['editor'],!0x0,_0x4f7126);}['getDataWithDiscardedSuggestions'](_0x3a44bf){return N(this['editor'],!0x1,_0x3a44bf);}}class D extends _0x59c88b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x390e53){super(_0x390e53),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(_0x216ab9){return void 0x0!==_0x216ab9['getRootsAttributes'];}async function N(_0x48c2a9,_0x2f40ca,_0x11f4ca){const _0x1d3aca=_0x2abe92(_0x48c2a9,T);_0x1d3aca['plugins']['push'](p,D),_0x1d3aca['rootsAttributes']=v(_0x48c2a9)?_0x48c2a9['getRootsAttributes']():void 0x0;const _0x16ae61=document['createDocumentFragment'](),_0x19821f=_0x48c2a9['config']['get']('trackChangesData')['editorCreator'],_0x44b784=await _0x19821f(_0x1d3aca,()=>function(_0x1be4ef){const _0x2b5daa=document['createElement']('div');return _0x1be4ef['appendChild'](_0x2b5daa),_0x2b5daa;}(_0x16ae61));!function(_0x13840c,_0x5490ac){const _0x11a268=_0x13840c['model']['document']['getRootNames']()['reduce']((_0x2d57c9,_0x24b183)=>(_0x2d57c9[_0x24b183]=_0x13840c['data']['get']({'rootName':_0x24b183}),_0x2d57c9),{}),_0x45dd1e=_0x13840c['plugins']['get']('Users')['users']['map'](_0x335a05=>({'id':_0x335a05['id'],'name':_0x335a05['name']})),_0x58a614=_0x13840c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xb78cdd=_0x13840c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f8711=_0x5490ac['plugins']['get']('Users'),_0x3ca622=_0x5490ac['plugins']['get']('TrackChangesEditing'),_0x11fffb=_0x5490ac['plugins']['get']('CommentsRepository');for(const _0xf0ac95 of _0x45dd1e)_0x1f8711['getUser'](_0xf0ac95['id'])||_0x1f8711['addUser'](_0xf0ac95);_0x1f8711['me']||_0x1f8711['useAnonymousUser']();for(const _0x2fde31 of _0xb78cdd)_0x11fffb['addCommentThread'](_0x2fde31);for(const _0x10525f of _0x58a614)_0x3ca622['addSuggestionData'](_0x10525f);_0x5490ac['data']['set'](_0x11a268);}(_0x48c2a9,_0x44b784),_0x44b784['execute'](_0x2f40ca?'acceptAllSuggestions':'discardAllSuggestions');const _0x2635e8=v(_0x44b784)?_0x44b784['getFullData'](_0x11f4ca):_0x44b784['data']['get'](_0x11f4ca);return await _0x44b784['destroy'](),_0x2635e8;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x4c8a1d,PendingActions as _0x491129,icons as _0x285fdb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x130dd5,ObservableMixin as _0x302a97,uid as _0x282b27,insertToPriorityArray as _0x21e515,priorities as _0x521d0d,logWarning as _0x2166bc,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x15806b,View as _0x467aa5,ButtonView as _0x401646,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 _0x2ef3b4,hashObject as _0x458b6b,surroundingMarkersDetector as _0x50c4fa,trimHtml as _0x54eb76,UserView as _0x209c63,getDateTimeFormatter as _0x23f537,getAllMarkersDomElementsSorted as _0x378d9f,sanitizeEditorConfig as _0x27dcb8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xadedd0,LiveRange as _0x4a275c,LivePosition as _0x149349}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1c61ba,toWidget as _0xa8d8d0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x118084,set as _0x465172,isEqual as _0x5b7b57,unset as _0xa6725d,omit as Bt}from'lodash-es';import{Delete as _0x1b66ea,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1a3e3a,ShiftEnter as _0x30fbb6}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x339657,_0x16ff8c){super(_0x339657),this['_enabledCommands']=_0x16ff8c,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 _0x2d9a30 of this['editor']['commands']['commands']())_0x2d9a30['affectsData']&&!this['_enabledCommands']['has'](_0x2d9a30)&&_0x2d9a30['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4cb4de of this['editor']['commands']['commands']())_0x4cb4de['affectsData']&&!this['_enabledCommands']['has'](_0x4cb4de)&&_0x4cb4de['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x48b418,_0x2f8a9b){super(_0x48b418),this['_suggestions']=_0x2f8a9b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x15ea67){const _0x1479b1=this['_suggestions']['get'](_0x15ea67);if(!_0x1479b1)throw new _0x130dd5('track-changes-accept-suggestion-not-found',this);const _0x4c4ff7=_0x1479b1['getRanges']();this['editor']['model']['canEditAt'](_0x4c4ff7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1479b1);}}class B extends ts{['_suggestions'];constructor(_0x104b03,_0x350cea){super(_0x104b03),this['_suggestions']=_0x350cea,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17825c){const _0x9d8b0e=this['_suggestions']['get'](_0x17825c);if(!_0x9d8b0e)throw new _0x130dd5('track-changes-discard-suggestion-not-found',this);const _0x13e49b=_0x9d8b0e['getRanges']();this['editor']['model']['canEditAt'](_0x13e49b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x9d8b0e);}}function ss(_0x11047e){return _0x11047e['sort']((_0x58c0a8,_0x3e6190)=>'deletion'==_0x58c0a8['type']&&'deletion'!=_0x3e6190['type']?-0x1:'deletion'!=_0x58c0a8['type']&&'deletion'==_0x3e6190['type']?0x1:0x0);}function to(_0x3e2e6d,_0x39365c){let _0x28f29f,_0x28d69b=0x0;const _0x44b790=[],_0x163969=_0x39365c['schema'];for(;_0x28d69b<_0x3e2e6d['length'];){const _0x3dab41=_0x3e2e6d[_0x28d69b],_0x548a48=_0x3e2e6d[_0x28d69b+0x1];_0x28f29f||(_0x28f29f=_0x39365c['createPositionBefore'](_0x3dab41)),co(_0x39365c,_0x3dab41,_0x548a48)||(_0x44b790['push'](_0x39365c['createRange'](_0x28f29f,_0x163969['isObject'](_0x3dab41)?_0x39365c['createPositionAfter'](_0x3dab41):_0x39365c['createPositionAt'](_0x3dab41,'end'))),_0x28f29f=null),_0x28d69b++;}return _0x44b790;}function co(_0x3d18b5,_0x20f47b,_0x5629d8){if(!_0x5629d8)return!0x1;const _0x173cac=_0x3d18b5['createPositionAfter'](_0x20f47b),_0xdb8159=_0x3d18b5['createPositionBefore'](_0x5629d8);return _0x173cac['isTouching'](_0xdb8159);}function rs(_0x19b1e6,_0x3ef364,_0x44aefe){for(;_0x44aefe['length'];){const _0x143d31=_0x44aefe['splice'](0x0,0x64);_0x19b1e6['change'](()=>{for(const _0xe02792 of _0x143d31)_0xe02792['isInContent']&&_0x3ef364['execute'](_0xe02792['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x145e7b,_0x6173ed,_0x4017c2){super(_0x145e7b),this['_command']=_0x6173ed,this['_suggestions']=_0x4017c2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x35fcbf=Array['from'](this['_suggestions']['values']())['some'](_0x26856c=>_0x26856c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x35fcbf;}['execute'](){const _0x267bc7=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5eb6e3 of _0x267bc7){const _0x1ebcdf=_0x5eb6e3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1ebcdf))return;}rs(this['editor']['model'],this['_command'],_0x267bc7);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2b40ae,_0x240725,_0x70f26c){super(_0x2b40ae),this['_command']=_0x240725,this['_suggestions']=_0x70f26c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xbb1079=this['editor']['model']['document']['selection'],_0x135194=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x395ac7,_0x18d0ed){const _0x1f2438=Array['from'](_0x395ac7['getRanges']()),_0x2854b5=new Set();for(const _0x2523d2 of _0x18d0ed)if(_0x2523d2['isInContent']){for(const _0x48111f of _0x1f2438)for(const _0x4d5eee of _0x2523d2['getRanges']())(_0x48111f['isIntersecting'](_0x4d5eee)||_0x395ac7['isCollapsed']&&!_0x2523d2['isMultiRange']&&_0x2523d2['next']&&_0x4d5eee['end']['isTouching'](_0x48111f['start']))&&_0x2854b5['add'](_0x2523d2);}return _0x2854b5;}(_0xbb1079,_0x135194),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2af4fb=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2f8e51 of _0x2af4fb){const _0x3e38a2=_0x2f8e51['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3e38a2))return;}rs(this['editor']['model'],this['_command'],_0x2af4fb);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x302a97(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1bcbd8,_0x1e8bd1){super(),this['id']=_0x1e8bd1['id'],this['type']=_0x1e8bd1['type'],this['subType']=_0x1e8bd1['subType']||null,this['author']=_0x1e8bd1['author'],this['creator']=_0x1e8bd1['creator']||_0x1e8bd1['author'],this['isExternal']=Boolean(_0x1e8bd1['attributes']&&_0x1e8bd1['attributes']['@external']),this['data']=null,this['_model']=_0x1bcbd8,this['_onAccept']=_0x1e8bd1['onAccept'],this['_onDiscard']=_0x1e8bd1['onDiscard'],this['_onAttributesChange']=_0x1e8bd1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1e8bd1['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 _0x5354e6=this;for(;_0x5354e6['previous'];)_0x5354e6=_0x5354e6['previous'];return _0x5354e6;}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'](_0x26cb17){this['_markerNames']['add'](_0x26cb17);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3da4af=>this['_model']['markers']['get'](_0x3da4af))['filter'](_0x52dfb7=>_0x52dfb7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4954c8=>{for(const _0x443e6e of this['getMarkers']())_0x4954c8['removeMarker'](_0x443e6e);}),this['_markerNames']['clear']();}['removeMarker'](_0x31327d){this['_model']['change'](_0x28df65=>{_0x28df65['removeMarker'](_0x31327d);}),this['_markerNames']['delete'](_0x31327d);}['addRange'](_0x1d9ecf){const _0xb7daaa='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xb7daaa),this['_model']['change'](_0x357bd5=>{_0x357bd5['addMarker'](_0xb7daaa,{'range':_0x1d9ecf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x234719){for(const _0x47b98e of this['getRanges']())if(_0x47b98e['isIntersecting'](_0x234719))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x462161=>_0x462161['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1a0222,_0x260927)=>[..._0x1a0222,..._0x260927['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x613ab5=this['getRanges']();if(0x1!=_0x613ab5['length'])return null;const _0x40076d=_0x613ab5[0x0],_0x2e7c24=_0x40076d['start']['nodeAfter'],_0x57a9d4=_0x40076d['end']['nodeBefore'];return _0x2e7c24 instanceof _0xadedd0?_0x2e7c24!=_0x57a9d4?null:_0x2e7c24: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 _0x5ae22e=[];let _0x20f7d7=this['head'];for(;_0x20f7d7;)_0x5ae22e['push'](_0x20f7d7),_0x20f7d7=_0x20f7d7['next'];return _0x5ae22e;}['setAttribute'](_0x523ad6,_0x1708d2){const _0x3063e6=_0x118084(this['attributes']);_0x465172(_0x3063e6,_0x523ad6,_0x1708d2),_0x5b7b57(_0x3063e6,this['attributes'])||(this['attributes']=_0x3063e6,this['_onAttributesChange'](_0x3063e6));}['removeAttribute'](_0x34b4a5){const _0xd8e6ee=_0x118084(this['attributes']);_0xa6725d(_0xd8e6ee,_0x34b4a5),_0x5b7b57(_0xd8e6ee,this['attributes'])||(this['attributes']=_0xd8e6ee,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 _0x282b27()['substr'](0x1,0x5);}}function o(_0x474e8d,_0x1d4c24,_0x393c9b){const t=_0x474e8d['t'];switch(_0x1d4c24){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',_0x393c9b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x393c9b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x393c9b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x393c9b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x393c9b);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',_0x393c9b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x393c9b);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',_0x393c9b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x393c9b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x393c9b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x393c9b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x393c9b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x393c9b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x393c9b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x393c9b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x393c9b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x393c9b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x393c9b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x393c9b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x393c9b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x393c9b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x393c9b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x393c9b);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'},_0x393c9b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x393c9b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x393c9b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x393c9b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x393c9b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x393c9b);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'},_0x393c9b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x393c9b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x393c9b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x393c9b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x393c9b);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'},_0x393c9b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x393c9b);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'},_0x393c9b);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'},_0x393c9b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x393c9b);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'},_0x393c9b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x393c9b);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'},_0x393c9b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x393c9b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x393c9b);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'},_0x393c9b);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'},_0x393c9b);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 _0x1d4c24;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3aa118,_0x34954d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3aa118,this['_locale']=_0x34954d;}['getDescriptions'](_0x4e430f){const _0x493ee5=[],_0x1dbf18=new Set(),_0x317947=new Set();for(let _0x846829=0x0;_0x846829<_0x4e430f['length'];_0x846829++){const _0x2ba660=_0x4e430f[_0x846829];if(!_0x2ba660['isInContent'])continue;const _0x5d3fe1=this['_handleCustomCallbackDescription'](_0x2ba660);if(_0x5d3fe1){if(null!=_0x2ba660['subType']){if(_0x1dbf18['has'](_0x2ba660['subType']))continue;_0x1dbf18['add'](_0x2ba660['subType']);}_0x493ee5['push'](_0x5d3fe1);}else{if('attribute'!=_0x2ba660['type'])'insertion'!=_0x2ba660['type']&&'deletion'!=_0x2ba660['type']||this['_handleInsertRemoveSuggestionDescription'](_0x493ee5,_0x2ba660,_0x4e430f[_0x846829+0x1]);else{const _0x39c131=_0x2ba660['data']['key'];if(_0x317947['has'](_0x39c131))continue;_0x317947['add'](_0x2ba660['data']['key']),_0x39c131==m?this['_handleRenameSuggestionDescription'](_0x493ee5,_0x2ba660):this['_handleAttributeSuggestionDescription'](_0x493ee5,_0x2ba660);}}}return this['_resolveDescriptionItems'](_0x493ee5);}['registerDescriptionCallback'](_0x3c187c){this['_customCallbacks']['push'](_0x3c187c);}['registerElementLabel'](_0x1ed3f5,_0x279a82,_0xf88b93=_0x521d0d['normal']){'function'==typeof _0x1ed3f5?_0x21e515(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1ed3f5,'label':_0x279a82,'priority':_0xf88b93}):this['_itemLabels']['set'](_0x1ed3f5,_0x279a82);}['registerAttributeLabel'](_0x2af8f5,_0x50b320){this['_attributeLabels']['set'](_0x2af8f5,_0x50b320);}['getItemLabel'](_0x5d5ad9,_0xfab564=0x1){let _0x506bf7;for(const _0x56d7f0 of this['_itemLabelsCallbacks'])if(_0x56d7f0['matchingCallback'](_0x5d5ad9)){_0x506bf7=_0x56d7f0['label'];break;}return _0x506bf7||(_0x506bf7=this['_itemLabels']['get'](_0x5d5ad9['name'])),_0x506bf7?_0x506bf7(_0xfab564):0x1!==_0xfab564?_0xfab564+'\x20'+_0x5d5ad9['name']+'s':''+_0x5d5ad9['name'];}['_addDescriptionItems'](_0x1f092a,_0x53738d){const _0x544688=_0x53738d['getFirstRange']()['getWalker'](),_0x13908b='insertion'==_0x53738d['type']?'add':'remove';for(const _0x5d5923 of _0x544688){const _0x440081=_0x5d5923['item'],_0x4cab5e=_0x1f092a[_0x1f092a['length']-0x1];if(_0x440081['is']('$textProxy'))_0x4cab5e&&_0x4cab5e['type']['indexOf']('Container')>-0x1&&_0x1f092a['pop'](),_0x4cab5e&&'text'==_0x4cab5e['type']?_0x4cab5e[_0x13908b]+=_0x440081['data']:_0x1f092a['push']({'type':'text','add':'add'==_0x13908b?_0x440081['data']:'','remove':'remove'==_0x13908b?_0x440081['data']:''});else{if(this['_schema']['isObject'](_0x440081)){const _0x37cefa=_0x440081;if(_0x4cab5e&&_0x4cab5e['type']['indexOf']('Container')>-0x1&&_0x1f092a['pop'](),'elementEnd'==_0x5d5923['type'])continue;_0x4cab5e&&_0x4cab5e['type']==_0x13908b+'Object'&&_0x4cab5e['element']['name']==_0x37cefa['name']?_0x4cab5e['quantity']++:_0x1f092a['push']({'type':_0x13908b+'Object','element':_0x37cefa,'quantity':0x1}),_0x544688['skip'](_0x2d9f40=>!('elementEnd'==_0x2d9f40['type']&&_0x2d9f40['item']==_0x440081));}else{if(this['_schema']['checkChild'](_0x440081,'$text')||_0x440081['is']('element','softBreak')){const _0x22f5d2=_0x440081;if('add'==_0x13908b&&'elementStart'==_0x5d5923['type']||'remove'==_0x13908b&&'elementEnd'==_0x5d5923['type'])continue;if(_0x4cab5e&&-0x1==_0x4cab5e['type']['indexOf']('Container')){'text'==_0x4cab5e['type']&&(_0x4cab5e[_0x13908b]+='\x0a');continue;}let _0x57ff7e;if(_0x57ff7e='add'==_0x13908b?_0x22f5d2['nextSibling']&&!this['_schema']['isObject'](_0x22f5d2['nextSibling'])?_0x22f5d2['nextSibling']:null:_0x22f5d2['previousSibling']&&!this['_schema']['isObject'](_0x22f5d2['previousSibling'])?_0x22f5d2['previousSibling']:null,_0x22f5d2['isEmpty']||_0x57ff7e&&_0x57ff7e['isEmpty']){const _0x1ed955=_0x57ff7e&&_0x57ff7e['isEmpty']?_0x57ff7e:_0x22f5d2;_0x4cab5e&&_0x4cab5e['type']==_0x13908b+'EmptyContainer'&&_0x4cab5e['element']['name']==_0x1ed955['name']?_0x4cab5e['quantity']++:_0x1f092a['push']({'type':_0x13908b+'EmptyContainer','element':_0x1ed955,'quantity':0x1});}else _0x1f092a['push']({'type':_0x13908b+'Container','element':_0x22f5d2});}}}}}['_resolveDescriptionItems'](_0x9631b1){const _0x2e2a06=this['_locale'],_0x4073f1=[],_0xc4f943=[],_0x1ef5c0=[];for(const _0x3ab973 of _0x9631b1)switch(_0x3ab973['type']){case'text':if(_0x3ab973['add']=_0x3ab973['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ab973['remove']=_0x3ab973['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ab973['add']&&''!=_0x3ab973['remove']){_0x4073f1['push']({'type':'replace','content':o(_0x2e2a06,'REPLACE_TEXT',['\x22'+_0x3ab973['remove']+'\x22','\x22'+_0x3ab973['add']+'\x22'])});continue;}if(null!=_0x3ab973['add']['match'](/^ +$/)){_0x4073f1['push']({'type':'insertion','content':o(_0x2e2a06,'*Insert:*\x20%0',o(_0x2e2a06,'ELEMENT_SPACE',_0x3ab973['add']['length']))});continue;}if(null!=_0x3ab973['remove']['match'](/^ +$/)){_0x4073f1['push']({'type':'deletion','content':o(_0x2e2a06,'*Remove:*\x20%0',o(_0x2e2a06,'ELEMENT_SPACE',_0x3ab973['remove']['length']))});continue;}if(''!=_0x3ab973['add']){_0x4073f1['push']({'type':'insertion','content':o(_0x2e2a06,'*Insert:*\x20%0','\x22'+_0x3ab973['add']+'\x22')});continue;}_0x4073f1['push']({'type':'deletion','content':o(_0x2e2a06,'*Remove:*\x20%0','\x22'+_0x3ab973['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4073f1['push']({'type':'insertion','content':o(_0x2e2a06,'*Insert:*\x20%0',this['getItemLabel'](_0x3ab973['element'],_0x3ab973['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4073f1['push']({'type':'deletion','content':o(_0x2e2a06,'*Remove:*\x20%0',this['getItemLabel'](_0x3ab973['element'],_0x3ab973['quantity']))});continue;case'addContainer':_0x4073f1['push']({'type':'insertion','content':o(_0x2e2a06,'*Split:*\x20%0',this['getItemLabel'](_0x3ab973['element'],_0x3ab973['quantity']))});continue;case'removeContainer':_0x4073f1['push']({'type':'deletion','content':o(_0x2e2a06,'*Merge:*\x20%0',this['getItemLabel'](_0x3ab973['element'],_0x3ab973['quantity']))});continue;case'addFormat':_0xc4f943['push'](_0x3ab973['key']);continue;case'removeFormat':_0x1ef5c0['push'](_0x3ab973['key']);continue;default:_0x4073f1['push'](_0x3ab973);}if(_0xc4f943['length']){const _0x3869d4=_0xc4f943['map'](_0x2520ac=>this['_attributeLabels']['has'](_0x2520ac)?this['_attributeLabels']['get'](_0x2520ac):_0x2520ac)['join'](',\x20');_0x4073f1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3869d4)});}if(_0x1ef5c0['length']){const _0xb844b2=_0x1ef5c0['map'](_0x2d90bd=>this['_attributeLabels']['has'](_0x2d90bd)?this['_attributeLabels']['get'](_0x2d90bd):_0x2d90bd)['join'](',\x20');_0x4073f1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xb844b2)});}return _0x4073f1;}['_handleCustomCallbackDescription'](_0x503095){for(const _0x54011a of this['_customCallbacks']){const _0x5482f6=_0x54011a(_0x503095);if(_0x5482f6&&'type'in _0x5482f6)return _0x5482f6;}}['_handleAttributeSuggestionDescription'](_0x31b380,_0x1a7597){const _0x1f2453=_0x1a7597['data'],_0xeb001d=void 0x0===_0x1f2453['newValue']?'removeFormat':'addFormat';_0x31b380['push']({'type':_0xeb001d,'key':_0x1f2453['key']});}['_handleRenameSuggestionDescription'](_0x1d94fb,_0x956e66){_0x1d94fb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x956e66['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x205f13,_0xdff340,_0x52526c){if(this['_addDescriptionItems'](_0x205f13,_0xdff340),_0x52526c&&_0x52526c['getFirstRange']()&&!_0xdff340['getFirstRange']()['end']['isEqual'](_0x52526c['getFirstRange']()['start'])){const _0x2e5acc=_0x205f13[_0x205f13['length']-0x1],_0xccbdc6='insertion'==_0xdff340['type']?'add':'remove';_0x2e5acc&&'text'==_0x2e5acc['type']&&(_0x2e5acc[_0xccbdc6]+='\x0a');}}}class E extends _0x4c8a1d{['afterInit'](){const _0x55fa85=this['editor'],_0x4b2434=_0x55fa85['plugins']['get']('TrackChangesEditing');_0x55fa85['commands']['get']('showAIAssistant')&&_0x4b2434['enableCommand']('showAIAssistant');}}class V extends _0x4c8a1d{['afterInit'](){const _0x2ac16f=this['editor'],_0x300382=_0x2ac16f['locale'];if(!_0x2ac16f['plugins']['has']('AlignmentEditing'))return;const _0x3d8249=_0x2ac16f['plugins']['get']('TrackChangesEditing');_0x3d8249['enableDefaultAttributesIntegration']('alignment'),_0x3d8249['registerBlockAttribute']('alignment'),_0x3d8249['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x300382,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b3a3a=this['editor'],_0x4a84a5=_0x4b3a3a['locale'];_0x4b3a3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31da78=>{if('formatBlock'!=_0x31da78['type'])return;const {data:_0x306cb1}=_0x31da78;if(_0x306cb1&&'alignment'==_0x306cb1['commandName']){const _0x1b7299=_0x306cb1['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4a84a5,'*Format:*\x20%0',function(_0x3901d4){switch(_0x3901d4){case'left':return o(_0x4a84a5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4a84a5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4a84a5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4a84a5,'FORMAT_JUSTIFY_TEXT');}}(_0x1b7299))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4c8a1d{['afterInit'](){const _0x251ffa=this['editor'],_0x4ba79b=_0x251ffa['plugins']['get']('TrackChangesEditing'),_0x3ceeae=_0x251ffa['locale'];for(const _0x5a4973 of ti){if(!_0x251ffa['plugins']['has'](_0x5a4973))continue;const _0x4847de=_0x5a4973['slice'](0x0,-0x7)['toLowerCase'](),_0x535adf='FORMAT_'+_0x4847de['toUpperCase']();_0x4ba79b['enableDefaultAttributesIntegration'](_0x4847de),_0x4ba79b['registerInlineAttribute'](_0x4847de),_0x4ba79b['descriptionFactory']['registerAttributeLabel'](_0x4847de,o(_0x3ceeae,_0x535adf));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21c66c=this['editor'],_0x1bb290=_0x21c66c['locale'],_0x3c6ece=_0x21c66c['plugins']['get']('TrackChangesEditing');function _0x218c5e(_0x2adf27,_0x2546cb){_0x3c6ece['descriptionFactory']['registerDescriptionCallback'](_0x2b0444=>{if('formatInline'!=_0x2b0444['type'])return;const {data:_0x288cbb}=_0x2b0444;return _0x288cbb&&_0x288cbb['commandName']===_0x2adf27?_0x288cbb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1bb290,'*Format:*\x20%0',_0x2546cb)}:{'type':'format','content':o(_0x1bb290,'*Remove\x20format:*\x20%0',_0x2546cb)}:void 0x0;});}_0x218c5e('bold',o(_0x1bb290,'FORMAT_BOLD')),_0x218c5e('italic',o(_0x1bb290,'FORMAT_ITALIC')),_0x218c5e('underline',o(_0x1bb290,'FORMAT_UNDERLINE')),_0x218c5e('code',o(_0x1bb290,'FORMAT_CODE')),_0x218c5e('strikethrough',o(_0x1bb290,'FORMAT_STRIKETHROUGH')),_0x218c5e('subscript',o(_0x1bb290,'FORMAT_SUBSCRIPT')),_0x218c5e('superscript',o(_0x1bb290,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4c8a1d{['afterInit'](){const _0x25811c=this['editor'],_0x2ad78b=_0x25811c['locale'];if(!_0x25811c['plugins']['has']('BlockQuoteEditing'))return;const _0x3bc238=_0x25811c['plugins']['get']('TrackChangesEditing'),_0xd30216=this['editor']['commands']['get']('blockQuote');_0x3bc238['enableCommand']('blockQuote',(_0x25f980,_0x45ff5a={})=>{const _0x397dd1=this['editor']['model']['document']['selection'],_0x1f1be1=_0x45ff5a&&void 0x0!==_0x45ff5a['forceValue']?_0x45ff5a['forceValue']:!_0xd30216['value'];let _0x4f9166=[];if(_0x1f1be1){const _0xdda8bb=Array['from'](_0x397dd1['getSelectedBlocks']())['filter'](_0x2df363=>oo(_0x2df363)||function(_0x1dbdda,_0x5e6ed9){const _0x3aca74=_0x5e6ed9['checkChild'](_0x1dbdda['parent'],'blockQuote'),_0x1893de=_0x5e6ed9['checkChild'](['$root','blockQuote'],_0x1dbdda);return _0x3aca74&&_0x1893de;}(_0x2df363,this['editor']['model']['schema']));_0x4f9166=to(_0xdda8bb,_0x25811c['model']);}else{const _0x22aa64=Array['from'](_0x397dd1['getSelectedBlocks']())['filter'](_0x331135=>oo(_0x331135));_0x4f9166=to(_0x22aa64,_0x25811c['model']);}_0x25811c['model']['change'](()=>{for(const _0x4c97f2 of _0x4f9166)_0x3bc238['markBlockFormat'](_0x4c97f2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1f1be1}]});});}),_0x3bc238['descriptionFactory']['registerDescriptionCallback'](_0xa25b7f=>{const {data:_0x12c452}=_0xa25b7f;if(_0x12c452&&'blockQuote'==_0x12c452['commandName']){const _0x4fac6d=o(_0x2ad78b,'ELEMENT_BLOCK_QUOTE');return _0x12c452['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ad78b,'*Set\x20format:*\x20%0',_0x4fac6d)}:{'type':'format','content':o(_0x2ad78b,'*Remove\x20format:*\x20%0',_0x4fac6d)};}});}}function oo(_0x2083de){return'blockQuote'==_0x2083de['parent']['name'];}class G extends _0x4c8a1d{['afterInit'](){const _0x5998af=this['editor'];_0x5998af['plugins']['has']('CaseChange')&&(_0x5998af['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5998af['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5998af['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4c8a1d{['afterInit'](){const _0x3e877e=this['editor'];_0x3e877e['commands']['get']('ckbox')&&_0x3e877e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4c8a1d{['afterInit'](){const _0x3d407a=this['editor'];if(!_0x3d407a['plugins']['has']('CodeBlock'))return;const _0x2e286f=_0x3d407a['plugins']['get']('TrackChangesEditing'),_0x491497=_0x3d407a['locale'],_0x5260a7=_0x3d407a['config']['get']('codeBlock')['languages'],_0x372c6b=_0x3d407a['commands']['get']('codeBlock');_0x2e286f['enableCommand']('indentCodeBlock'),_0x2e286f['enableCommand']('outdentCodeBlock'),_0x2e286f['enableCommand']('codeBlock',(_0x49d6f7,_0x4d610b={})=>{const _0x39ee76=_0x3d407a['model'],_0x9b8e68=_0x3d407a['model']['document']['selection'],_0x1fbaab=_0x4d610b&&void 0x0!==_0x4d610b['forceValue']?_0x4d610b['forceValue']:!_0x372c6b['value'];let _0x335166;_0x4d610b['language']||(_0x4d610b['language']=_0x5260a7[0x0]['language']),_0x335166=_0x1fbaab?Array['from'](_0x9b8e68['getSelectedBlocks']())['filter'](_0x5febec=>eo(_0x5febec)||function(_0xf4a86f,_0x4b9377){if(_0xf4a86f['is']('rootElement')||_0x4b9377['isLimit'](_0xf4a86f))return!0x1;return _0x4b9377['checkChild'](_0xf4a86f['parent'],'codeBlock');}(_0x5febec,_0x39ee76['schema'])):Array['from'](_0x9b8e68['getSelectedBlocks']())['filter'](_0x243725=>eo(_0x243725));const _0x12895d=to(_0x335166,_0x39ee76);_0x39ee76['change'](()=>{for(const _0xae4bdf of _0x12895d)_0x2e286f['markBlockFormat'](_0xae4bdf,{'commandName':'codeBlock','commandParams':[{..._0x4d610b,'forceValue':_0x1fbaab}],'formatGroupId':'blockName'});});}),(_0x2e286f['descriptionFactory']['registerElementLabel']('codeBlock',_0x5d464f=>o(_0x491497,'ELEMENT_CODE_BLOCK',_0x5d464f)),_0x2e286f['descriptionFactory']['registerDescriptionCallback'](_0x23c8f5=>{if('formatBlock'!=_0x23c8f5['type'])return;const _0x38f95e=_0x491497['t'],{data:_0x37b2b9}=_0x23c8f5;if(!_0x37b2b9||'codeBlock'!=_0x37b2b9['commandName'])return;const _0x353801=_0x37b2b9['commandParams'][0x0]['language'],_0x149845=_0x38f95e(_0x5260a7['find'](_0x1c6c9d=>_0x1c6c9d['language']===_0x353801)['label'])['toLowerCase']();return _0x37b2b9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x491497,'*Set\x20format:*\x20%0',o(_0x491497,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x149845+')')}:{'type':'format','content':o(_0x491497,'*Remove\x20format:*\x20%0',o(_0x491497,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x39ea7a){return'codeBlock'==_0x39ea7a['name'];}class H extends _0x4c8a1d{['afterInit'](){const _0x296442=this['editor'];if(!_0x296442['plugins']['has']('CommentsEditing'))return;_0x296442['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x485d98,_0x247b15,_0x88e63f){const _0x1d7fae=[];for(const _0x558d68 of _0x247b15['getItems']())_0x558d68['hasAttribute'](_0x485d98)&&_0x1d7fae['push'](_0x88e63f['createRangeOn'](_0x558d68));return _0x1d7fae;}function _e(_0x355d8b,_0x556491,{showActiveMarker:_0x5d822=!0x0}={}){const _0x20195c=_0x355d8b['plugins']['get']('TrackChangesEditing');return(_0x32159b,_0x5132be,_0x54a5c9)=>{if(!_0x54a5c9['consumable']['test'](_0x5132be['markerRange'],_0x32159b['name']))return;const _0x43f720=_0x5132be['markerRange']['getWalker'](),_0x44939d=_0x5132be['markerRange']['start'],_0x1d28b4=_0x355d8b['model']['schema'];let _0x92699d=null,_0x4c792d=null,_0x695f25=!0x1,_0x425dcf=!0x1;for(const _0xd231f6 of _0x43f720){const _0x13f79e=_0xd231f6['item'];_0x695f25=_0x695f25||_0x1d28b4['isContent'](_0x13f79e);const _0x2e2e6d=_0x54a5c9['mapper']['toViewElement'](_0x13f79e);if(_0x2e2e6d&&_0x2e2e6d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd231f6['type']&&(_0x1d28b4['isBlock'](_0x13f79e)&&!_0x1d28b4['isLimit'](_0x13f79e)&&(_0x13f79e['nextSibling']||_0x44939d['isAtEnd']?_0x92699d&&_0x92699d['parent']==_0x13f79e||(_0x92699d=_0x13f79e,_0x4fe3d7(_0xd231f6['previousPosition']),_0x425dcf=!0x0):_0x4c792d=_0x4c792d||_0xd231f6['previousPosition']));}function _0x4fe3d7(_0x8c07a9){const _0x3619f8=_0x54a5c9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x556491}),_0x428757=_0x54a5c9['mapper']['toViewPosition'](_0x8c07a9);_0x5d822&&_0x20195c['activeMarkers']['includes'](_0x5132be['markerName'])&&_0x54a5c9['writer']['addClass']('ck-suggestion-marker--active',_0x3619f8),_0x54a5c9['writer']['insert'](_0x428757,_0x3619f8),_0x54a5c9['mapper']['bindElementToMarker'](_0x3619f8,_0x5132be['markerName']);}_0x695f25||_0x425dcf||!_0x4c792d||_0x4fe3d7(_0x4c792d);};}class q extends _0x4c8a1d{static get['requires'](){return[_0x1b66ea];}['init'](){const _0x1ce6bd=this['editor'],_0x10c1ba=_0x1ce6bd['plugins']['get']('TrackChangesEditing');_0x10c1ba['enableCommand']('delete');const _0x5dd890=_0x1ce6bd['commands']['get']('deleteForward');_0x10c1ba['enableCommand']('deleteForward',(_0x2528a3,_0x14fb5f={})=>{const _0x297ce9=_0x1ce6bd['model']['createSelection'](_0x1ce6bd['model']['document']['selection']);_0x297ce9['isCollapsed']&&_0x1ce6bd['model']['modifySelection'](_0x297ce9,{'direction':'forward','unit':_0x14fb5f['unit']});const _0xcfca43=_0x297ce9['getFirstRange'](),_0x33fa5d=_0x4a275c['fromRange'](_0xcfca43);let _0x5e5eee;_0x2528a3(_0x14fb5f),_0x5e5eee='$graveyard'==_0x33fa5d['root']['rootName']?_0x1ce6bd['model']['createRange'](_0xcfca43['start']):_0x1ce6bd['model']['createRange'](_0x33fa5d['start'],_0x33fa5d['end']),_0x33fa5d['detach'](),_0x1ce6bd['model']['enqueueChange'](_0x5dd890['buffer']['batch'],_0x2b8a59=>{_0x5dd890['buffer']['lock'](),_0x2b8a59['setSelection'](_0x2b8a59['createRange'](_0x5e5eee['end'])),_0x5dd890['buffer']['unlock']();});}),_0x1ce6bd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1ce6bd,'merge'),{'priority':'high'}),_0x1ce6bd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2f4c3a,_0x274291,_0xe7ea8a)=>{_0xe7ea8a['options']['showSuggestionHighlights']&&_e(_0x1ce6bd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2f4c3a,_0x274291,_0xe7ea8a);},{'priority':'high'}),_0x1ce6bd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5ec348,_0x16c56d,_0x4e433d)=>{const _0x4b78fd=_0x4e433d['mapper']['markerNameToElements'](_0x16c56d['markerName']);if(_0x4b78fd){for(const _0x3fe9dd of _0x4b78fd)_0x3fe9dd['is']('uiElement')&&(_0x4e433d['mapper']['unbindElementFromMarkerName'](_0x3fe9dd,_0x16c56d['markerName']),_0x4e433d['writer']['remove'](_0x3fe9dd));}},{'priority':'high'});}}class z extends _0x4c8a1d{['afterInit'](){const _0x193487=this['editor'];if(!_0x193487['plugins']['has']('ListEditing'))return;const _0x38de63=_0x193487['locale'],_0x127dab=_0x193487['plugins']['get']('TrackChangesEditing'),_0x203fd3=_0x193487['plugins']['has']('TodoListEditing'),_0x1f87ec=!!_0x193487['config']['get']('list.multiBlock');function _0x378968(_0x44df89){return{'type':'format','content':''+o(_0x38de63,'*Set\x20format:*\x20%0',_0x44df89)};}function _0x2f702a(_0x112aaf){return{'type':'format','content':''+o(_0x38de63,'*Remove\x20format:*\x20%0',_0x112aaf)};}_0x127dab['enableDefaultAttributesIntegration']('numberedList'),_0x127dab['enableDefaultAttributesIntegration']('bulletedList'),_0x127dab['enableDefaultAttributesIntegration']('customNumberedList'),_0x127dab['enableDefaultAttributesIntegration']('customBulletedList'),_0x127dab['enableDefaultAttributesIntegration']('indentList'),_0x127dab['enableDefaultAttributesIntegration']('outdentList'),_0x127dab['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x127dab['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x127dab['registerBlockAttribute']('listItemId'),_0x127dab['registerBlockAttribute']('listType'),_0x127dab['registerBlockAttribute']('listIndent'),_0x1f87ec&&(_0x127dab['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x127dab['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x203fd3&&(_0x127dab['enableDefaultAttributesIntegration']('todoList'),_0x127dab['enableDefaultAttributesIntegration']('checkTodoList'),_0x127dab['registerBlockAttribute']('todoListChecked'),_0x127dab['descriptionFactory']['registerDescriptionCallback'](_0x4c4ea3=>{const {data:_0x30fe08}=_0x4c4ea3;if(_0x30fe08&&'todoListChecked'==_0x30fe08['key'])return{'type':'format','content':_0x30fe08['newValue']?o(_0x38de63,'*Check\x20item*'):o(_0x38de63,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x180487=>{if(_0x180487['batch']['isUndo'])return!0x1;let _0x5e0735=!0x1;const _0x65b24=_0x127dab['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc22790=>'todoListChecked'===_0x127dab['_getAttributeKey'](_0xc22790));for(const _0xdf9fe0 of _0x65b24){'todo'!=_0xdf9fe0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x127dab['_findSuggestions'](_0xdf9fe0['getFirstRange'](),'attribute')['find'](_0x5e9402=>'listType'===_0x127dab['_getAttributeKey'](_0x5e9402['suggestion']))||(_0x180487['removeMarker'](_0xdf9fe0['getFirstMarker']()),_0x5e0735=!0x0));}return _0x5e0735;})),_0x127dab['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x38de63,'FORMAT_INDENT'));const _0xc8d817={'type':'format','content':''};_0x127dab['descriptionFactory']['registerDescriptionCallback'](_0x2d860d=>{const {data:_0x17df51}=_0x2d860d;if(!_0x17df51||'listType'!=_0x17df51['key'])return;let _0x3c613d=_0x2d860d['head'];for(;_0x3c613d;){if(_0x3c613d['data']&&(('listStyle'==_0x3c613d['data']['key']||'listMarkerStyle'==_0x3c613d['data']['key'])&&(_0x3c613d['data']['newValue']&&'default'!=_0x3c613d['data']['newValue']||'default'!=_0x3c613d['data']['oldValue']&&!_0x17df51['newValue'])||!_0x1f87ec&&_0x3c613d['data']['key']==m))return _0xc8d817;_0x3c613d=_0x3c613d['next'];}if(null==_0x17df51['newValue'])switch(_0x17df51['oldValue']){case'bulleted':return _0x2f702a(o(_0x38de63,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f702a(o(_0x38de63,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f702a(o(_0x38de63,'ELEMENT_TODO_LIST'));}switch(_0x17df51['newValue']){case'bulleted':return _0x378968(o(_0x38de63,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x378968(o(_0x38de63,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x378968(o(_0x38de63,'ELEMENT_TODO_LIST'));}}),_0x127dab['descriptionFactory']['registerDescriptionCallback'](_0x110d1b=>{const {data:_0x3f6a60}=_0x110d1b;if(_0x3f6a60&&'listIndent'==_0x3f6a60['key'])return null==_0x3f6a60['newValue']||null==_0x3f6a60['oldValue']&&0x0==_0x3f6a60['newValue']?_0xc8d817:void 0x0;}),_0x127dab['descriptionFactory']['registerDescriptionCallback'](_0x53062a=>{if('attribute'!=_0x53062a['type'])return;const {data:_0x1e4644}=_0x53062a;if(!_0x1e4644||'listItemId'!=_0x1e4644['key'])return;const _0xaab262=le(_0x53062a);return'newValue'==_0xaab262?{'type':'format','content':o(_0x38de63,'*Merge:*\x20list\x20item')}:'oldValue'==_0xaab262?{'type':'format','content':o(_0x38de63,'*Split:*\x20list\x20item')}:_0xc8d817;}),_0x193487['model']['document']['registerPostFixer'](_0x8997b9=>this['listItemIdFixer'](_0x8997b9)),_0x193487['model']['document']['registerPostFixer'](_0xb2795a=>this['noTrackChangesFixer'](_0xb2795a)),_0x193487['model']['document']['registerPostFixer'](_0x4688f6=>this['assureChains'](_0x4688f6)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x15c946){if(_0x15c946['batch']['isUndo']||!_0x15c946['batch']['isLocal'])return!0x1;let _0x4a1a95=!0x1;const _0x35c462=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2db035=>_0x2db035['data']&&'listItemId'==_0x2db035['data']['key'])['filter'](_0x50fe25=>_0x50fe25['data']['newValue']&&_0x50fe25['data']['oldValue']);for(const _0x59db72 of _0x35c462)le(_0x59db72)||(_0x15c946['removeMarker'](_0x59db72['getFirstMarker']()),_0x4a1a95=!0x0);return _0x4a1a95;}['noTrackChangesFixer'](_0x33ddce){if(_0x33ddce['batch']['isUndo']||!_0x33ddce['batch']['isLocal'])return!0x1;const _0x308de9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x308de9['trackChangesCommand']['value'])return!0x1;let _0x4a9a8f=!0x1;const _0x5c49dc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x55c8d2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x401780=>'attribute'==_0x401780['type'])['filter'](_0x215071=>_0x5c49dc['includes'](_0x215071['attributeKey']));if(0x0==_0x55c8d2['length'])return _0x4a9a8f;for(const _0x38ac3e of _0x55c8d2){const _0x5eba51=_0x308de9['_findSuggestions'](_0x38ac3e['range'],'attribute')['filter'](_0x23436f=>!_0x23436f['meta']['isNextTo'])['map'](_0x4d8b1a=>_0x4d8b1a['suggestion'])['filter'](_0x2d2c23=>{const _0xe7dd9b=_0x308de9['_getAttributeKey'](_0x2d2c23);return _0x5c49dc['includes'](_0xe7dd9b);});if(_0x5eba51['length']){for(const _0x888f7d of _0x5eba51)_0x33ddce['removeMarker'](_0x888f7d['getFirstMarker']());_0x4a9a8f=!0x0;}}return _0x4a9a8f;}['assureChains'](_0x23dacf){if(_0x23dacf['batch']['isUndo']||!_0x23dacf['batch']['isLocal'])return!0x1;const _0x3ca211=this['editor']['plugins']['get']('TrackChangesEditing');let _0x36846e=!0x1;const _0x74b08=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5dafe8 of _0x3ca211['getSuggestions']({'skipNotAttached':!0x0})){const _0x5b2ed4=_0x3ca211['_findSuggestions'](_0x5dafe8['getFirstRange'](),'attribute')['map'](_0x4750db=>_0x4750db['suggestion'])['filter'](_0x4b64b2=>_0x4b64b2['data']&&_0x74b08['includes'](_0x4b64b2['data']['key']));if(!_0x5b2ed4['length'])continue;const _0x6d261=_0x5b2ed4[0x0]['head']['attributes']['groupId'];if(!_0x5b2ed4['every'](_0x1ef452=>_0x1ef452['attributes']['groupId']===_0x6d261)){for(const _0x491796 of _0x5b2ed4)_0xa062c2(_0x491796,_0x6d261)&&(_0x36846e=!0x0);}}return _0x36846e;function _0x56d9aa(_0x5bc2d7,_0x4f8fa1){for(const _0x4beb93 of _0x3ca211['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e02c7=>'attribute'==_0x3e02c7['type']&&_0x3e02c7['attributes']['groupId']==_0x5bc2d7))_0x4beb93['setAttribute']('groupId',_0x4f8fa1);}function _0xa062c2(_0x52f138,_0x1d0568){let _0x332285=_0x52f138['head'],_0x1a1a64=!0x1;for(;_0x332285;)_0x332285['attributes']['groupId']!=_0x1d0568&&(_0x56d9aa(_0x332285['attributes']['groupId'],_0x1d0568),_0x332285['setAttribute']('groupId',_0x1d0568),_0x1a1a64=!0x0),_0x332285=_0x332285['next'];return _0x1a1a64;}}['_supportLegacySuggestions'](){const _0x54ea33=this['editor'],_0x4eddd4=_0x54ea33['locale'],_0x3b65a9=_0x54ea33['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b65a9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2976a5,_0x43d5){const _0x4f6c59=[];for(let _0x10733a of _0x2976a5)_0x10733a['start']['nodeAfter']===_0x10733a['end']['parent']&&(_0x10733a=_0x54ea33['model']['createRange'](_0x54ea33['model']['createPositionAt'](_0x10733a['start']['nodeAfter'],0x0))),_0x4f6c59['push'](_0x10733a);_0x54ea33['model']['change'](_0x8c2397=>{const _0x109782=_0x54ea33['model']['document']['selection'],_0x59aba7=Array['from'](_0x109782['getRanges']())['map'](_0x5f56c1=>_0x4a275c['fromRange'](_0x5f56c1));_0x8c2397['setSelection'](_0x4f6c59),_0x54ea33['commands']['get'](_0x43d5['commandName'])['refresh'](),_0x43d5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x54ea33['execute'](_0x43d5['commandName'],..._0x43d5['commandParams']),_0x8c2397['setSelection'](_0x59aba7);for(const _0x423dfe of _0x59aba7)_0x423dfe['detach']();});}),_0x3b65a9['descriptionFactory']['registerElementLabel'](function(_0x4ec66d){const _0x5c77f3=!_0x54ea33['model']['schema']['isObject'](_0x4ec66d),_0x2431d3=_0x4ec66d['previousSibling'],_0x4f7fee=_0x4ec66d['nextSibling'],_0x52a243=_0x4ec66d['getAttribute']('listItemId'),_0x3af57d=!_0x2431d3||_0x2431d3['getAttribute']('listItemId')!==_0x52a243,_0x4587a5=!_0x4f7fee||_0x4f7fee['getAttribute']('listItemId')!==_0x52a243;return _0x5c77f3&&Boolean(_0x52a243)&&_0x3af57d&&_0x4587a5;},_0x4eac66=>o(_0x4eddd4,'ELEMENT_LIST_ITEM',_0x4eac66));}['_registerLegacyDescription'](){const _0x6c4b44=this['editor'],_0x5836e9=_0x6c4b44['locale'];function _0x24c823(_0x59b677){const _0xf01c08=_0x6c4b44['commands']['get']('bulletedList')['value'],_0x4a7bc3=_0x6c4b44['commands']['get']('numberedList')['value'];return'numberedList'===_0x59b677?_0xf01c08:_0x4a7bc3;}_0x6c4b44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x440dfe){if('formatBlock'!=_0x440dfe['type'])return;const {data:_0x2a1423}=_0x440dfe;if(!_0x2a1423)return;let _0x542c71,_0x500295,_0x25fb6c,_0x152ef7;switch(_0x2a1423['commandName']){case'bulletedList':_0x25fb6c=_0x2a1423['commandParams'][0x0]['forceValue'],_0x152ef7=_0x24c823(_0x2a1423['commandName']),_0x542c71=_0x25fb6c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x152ef7&&_0x6c4b44['config']['get']('list.multiBlock')||(_0x542c71='*Change\x20to:*\x20%0'),_0x500295={'type':'format','content':o(_0x5836e9,_0x542c71,o(_0x5836e9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x25fb6c=_0x2a1423['commandParams'][0x0]['forceValue'],_0x152ef7=_0x24c823(_0x2a1423['commandName']),_0x542c71=_0x25fb6c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x152ef7&&_0x6c4b44['config']['get']('list.multiBlock')||(_0x542c71='*Change\x20to:*\x20%0'),_0x500295={'type':'format','content':o(_0x5836e9,_0x542c71,o(_0x5836e9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x542c71='*Indent:*\x20%0',_0x500295={'type':'format','content':o(_0x5836e9,_0x542c71,o(_0x5836e9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x542c71=function(_0x4437fe){const _0x18bb90=_0x4437fe['getFirstRange']();let _0x3ba375=_0x18bb90['start']['nodeAfter'];for(;_0x3ba375&&_0x18bb90['containsItem'](_0x3ba375);){if(_0x3ba375['getAttribute']('listIndent')>0x0)return!0x1;_0x3ba375=_0x3ba375['nextSibling'];}return!0x0;}(_0x440dfe)?o(_0x5836e9,'*Format:*\x20remove\x20from\x20%0',o(_0x5836e9,function(_0x3f7f44){return'ELEMENT_'+_0x3f7f44['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x440dfe))):o(_0x5836e9,'*Outdent:*\x20%0',o(_0x5836e9,'ELEMENT_LIST_ITEM')),_0x500295={'type':'format','content':_0x542c71};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2a1423['multipleBlocks']&&(_0x542c71='*Merge:*\x20%0',_0x500295={'type':'deletion','content':o(_0x5836e9,_0x542c71,o(_0x5836e9,'ELEMENT_LIST_ITEM'))});}return _0x500295;});}}function le(_0x42370f){let _0x2cf038=_0x42370f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2cf038;){const _0x1d2354=_0x2cf038['getAttribute']('listItemId');if(!_0x1d2354)return!0x1;if(_0x1d2354==_0x42370f['data']['newValue'])return'newValue';if(_0x1d2354==_0x42370f['data']['oldValue'])return'oldValue';_0x2cf038=_0x2cf038['previousSibling'];}return!0x1;}class ue extends _0x4c8a1d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1d549b=this['editor']['config']['get']('list.properties'),_0x2bc4b9=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d549b['styles']&&(_0x2bc4b9['enableDefaultAttributesIntegration']('listStyle'),_0x2bc4b9['registerBlockAttribute']('listStyle')),_0x1d549b['reversed']&&(_0x2bc4b9['enableDefaultAttributesIntegration']('listReversed'),_0x2bc4b9['registerBlockAttribute']('listReversed')),_0x1d549b['startIndex']&&(_0x2bc4b9['enableDefaultAttributesIntegration']('listStart'),_0x2bc4b9['registerBlockAttribute']('listStart'));const _0x4fbe09={'type':'format','content':''};_0x2bc4b9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x198b75=this['editor']['locale'];_0x2bc4b9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x198b75,'FORMAT_LIST_REVERSED')),_0x2bc4b9['descriptionFactory']['registerDescriptionCallback'](_0x2805e8=>{const {data:_0xf94e3f}=_0x2805e8;if(_0xf94e3f&&'listReversed'==_0xf94e3f['key'])return null==_0xf94e3f['newValue']||0x0==_0xf94e3f['newValue']&&null==_0xf94e3f['oldValue']?_0x4fbe09:void 0x0;}),_0x2bc4b9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x198b75,'FORMAT_LIST_START')),_0x2bc4b9['descriptionFactory']['registerDescriptionCallback'](_0x1a28a3=>{const {data:_0x566514}=_0x1a28a3;if(_0x566514&&'listStart'==_0x566514['key'])return null==_0x566514['newValue']||0x1==_0x566514['newValue']&&null==_0x566514['oldValue']?_0x4fbe09:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x54cc19=>{if(_0x54cc19['batch']['isUndo'])return!0x1;let _0x8b703e=!0x1;const _0x32dfb0=_0x2bc4b9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x511288=>{const _0x894e97=_0x2bc4b9['_getAttributeKey'](_0x511288);return'listStart'==_0x894e97||'listReversed'==_0x894e97;});for(const _0x132b11 of _0x32dfb0){const _0x4f6ff9=_0x132b11['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4f6ff9||'customNumbered'==_0x4f6ff9)continue;_0x2bc4b9['_findSuggestions'](_0x132b11['getFirstRange'](),'attribute')['find'](_0x1b702d=>'listType'==_0x2bc4b9['_getAttributeKey'](_0x1b702d['suggestion']))||(_0x54cc19['removeMarker'](_0x132b11['getFirstMarker']()),_0x8b703e=!0x0);}return _0x8b703e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x35be97){const _0x310972=this['editor']['locale'],{data:_0x1567f8}=_0x35be97,_0x42a26c={'type':'format','content':''};if(!_0x1567f8||'listStyle'!=_0x1567f8['key'])return;if(!_0x1567f8['oldValue'])return'default'==_0x1567f8['newValue']?_0x42a26c:{'type':'format','content':''+o(_0x310972,'*Set\x20format:*\x20%0',o(_0x310972,this['_getTranslationKeyForListStyle'](_0x1567f8['newValue'])))};if(!_0x1567f8['newValue']){if('default'==_0x1567f8['oldValue'])return _0x42a26c;let _0x43ade4=_0x35be97['head'];for(;_0x43ade4;){if(_0x43ade4['data']&&'listType'==_0x43ade4['data']['key']&&_0x43ade4['data']['newValue'])return _0x42a26c;_0x43ade4=_0x43ade4['next'];}return{'type':'format','content':''+o(_0x310972,'*Remove\x20format:*\x20%0',o(_0x310972,this['_getTranslationKeyForListStyle'](_0x1567f8['oldValue'])))};}if('default'!=_0x1567f8['newValue'])return{'type':'format','content':''+o(_0x310972,'*Set\x20format:*\x20%0',o(_0x310972,this['_getTranslationKeyForListStyle'](_0x1567f8['newValue'])))};let _0x5bab27=_0x35be97['head'];for(;_0x5bab27;){if(_0x5bab27['data']&&'listType'==_0x5bab27['data']['key']&&_0x5bab27['data']['newValue']&&_0x5bab27['data']['oldValue'])return _0x42a26c;_0x5bab27=_0x5bab27['next'];}return{'type':'format','content':o(_0x310972,'*Set\x20format:*\x20%0',o(_0x310972,'ELEMENT_'+_0x35be97['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x115331=this['editor'],_0x914e05=_0x115331['locale'];_0x115331['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x161839=>{if('formatBlock'!=_0x161839['type'])return;const {data:_0x25799b}=_0x161839;if(!_0x25799b)return;let _0x69daca,_0x59fa70;switch(_0x25799b['commandName']){case'listStyle':_0x69daca='*Change\x20to:*\x20%0',_0x59fa70={'type':'format','content':o(_0x914e05,_0x69daca,o(_0x914e05,this['_getTranslationKeyForListStyle'](_0x25799b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x69daca=_0x25799b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x59fa70={'type':'format','content':o(_0x914e05,_0x69daca)};break;case'listStart':_0x69daca='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x59fa70={'type':'format','content':o(_0x914e05,_0x69daca,_0x25799b['commandParams'][0x0]['startIndex'])};}return _0x59fa70;});}['_getTranslationKeyForListStyle'](_0x59ee3e){return'ELEMENT_'+function(_0x1a81e6){if(pe['includes'](_0x1a81e6))return'bulleted';if(ye['includes'](_0x1a81e6))return'numbered';return null;}(_0x59ee3e)['toUpperCase']()+'_LIST_'+_0x59ee3e['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4c8a1d{static get['requires'](){return[_0x1a3e3a];}['init'](){const _0xd3686d=this['editor'],_0x3aeeeb=_0xd3686d['plugins']['get']('TrackChangesEditing'),_0x3a136a=_0xd3686d['commands']['get']('enter');_0x3aeeeb['enableCommand']('enter',()=>{_0xd3686d['model']['change'](_0x529872=>{const _0x545c22=_0xd3686d['model']['document']['selection'],_0xd1948c=_0x545c22['getFirstPosition'](),_0x2bf5a9=_0x4a275c['fromRange'](_0x545c22['getFirstRange']());if(_0x3a136a['enterBlock'](_0x529872)){const _0x5b600b=_0xd3686d['model']['createPositionAt'](_0xd1948c['parent']['nextSibling'],0x0),_0xc8807=_0x529872['createRange'](_0xd1948c,_0x5b600b);_0x3aeeeb['markInsertion'](_0xc8807);}else _0x529872['setSelection'](_0x529872['createRange'](_0x2bf5a9['end']));_0x2bf5a9['detach'](),_0x3a136a['fire']('afterExecute',{'writer':_0x529872});});}),_0xd3686d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xd3686d,'split'),{'priority':'high'}),_0xd3686d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x15758c,_0x35948f,_0x203bfc)=>{const _0x309232=_0x203bfc['mapper']['markerNameToElements'](_0x35948f['markerName']);if(_0x309232){for(const _0x395cc8 of _0x309232)_0x395cc8['hasClass']('ck-suggestion-marker-split')&&(_0x203bfc['mapper']['unbindElementFromMarkerName'](_0x395cc8,_0x35948f['markerName']),_0x203bfc['writer']['remove'](_0x395cc8));}},{'priority':'high'}),_0xd3686d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xa7a83a,_0x424599,_0x5d1e6d)=>{_0x5d1e6d['options']['showSuggestionHighlights']&&_e(_0xd3686d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xa7a83a,_0x424599,_0x5d1e6d);},{'priority':'high'});}}class J extends _0x4c8a1d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x507002=this['editor']['plugins']['get']('TrackChangesEditing');_0x507002['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x507002['enableCommand']('findNext'),_0x507002['enableCommand']('findPrevious'),_0x507002['enableCommand']('replace'),_0x507002['enableCommand']('replaceAll');}['handleFindCommand'](_0x587b20,_0x4249ea,_0x2be6ce={}){const _0x85aba7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x587b20(_0x1b8200=>{let _0x1ced38=('string'==typeof _0x4249ea?_0x85aba7['findByTextCallback'](_0x4249ea,_0x2be6ce):_0x4249ea)(_0x1b8200);Array['isArray'](_0x1ced38)&&(_0x1ced38={'results':_0x1ced38,'searchText':'string'==typeof _0x4249ea?_0x4249ea:''});const _0x31c003=_0x1ced38['results']['filter'](_0x17ff1f=>!0x1===this['_isInDeletionRange'](_0x17ff1f,_0x1b8200['item']));return{..._0x1ced38,'results':_0x31c003};},_0x2be6ce);}['_isInDeletionRange'](_0x3dad0d,_0x526815){const _0x30d2e8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x526815,_0x3dad0d['start']),this['editor']['model']['createPositionAt'](_0x526815,_0x3dad0d['end']));for(const _0x44f29f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x30d2e8['getIntersection'](_0x44f29f['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 _0x4c8a1d{['afterInit'](){const _0x2d4ddf=this['editor']['locale'],_0x4b4f6d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x344c8e,commandName:_0x23d9df}of ro)this['editor']['plugins']['has'](_0x344c8e)&&(_0x4b4f6d['enableDefaultAttributesIntegration'](_0x23d9df),_0x4b4f6d['registerInlineAttribute'](_0x23d9df));_0x4b4f6d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2d4ddf,'FORMAT_FONT_SIZE')),_0x4b4f6d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2d4ddf,'FORMAT_FONT_FAMILY')),_0x4b4f6d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2d4ddf,'FORMAT_FONT_COLOR')),_0x4b4f6d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2d4ddf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cb56a=this['editor'],_0x1ae029=_0x1cb56a['locale'];_0x1cb56a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fded0=>{const _0x3a83ad=_0x1ae029['t'];if('formatInline'!=_0x1fded0['type'])return;const {data:_0x285eeb}=_0x1fded0;if(null!=_0x285eeb){if('fontSize'==_0x285eeb['commandName']){const _0x547d09=_0x285eeb['commandParams'][0x0]['value'];if(_0x547d09){const _0x4ced92=_0x3a83ad(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x467bba=>_0x467bba['model']==_0x547d09)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ae029,'*Set\x20font\x20size:*\x20%0',_0x4ced92)};}return{'type':'format','content':o(_0x1ae029,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x285eeb['commandName']){const _0x2de26d=_0x285eeb['commandParams'][0x0]['value'];return _0x2de26d?{'type':'format','content':o(_0x1ae029,'*Set\x20font\x20family:*\x20%0',_0x2de26d)}:{'type':'format','content':o(_0x1ae029,'*Reset\x20font\x20family*')};}if('fontColor'==_0x285eeb['commandName']){const _0x11948b=_0x285eeb['commandParams'][0x0]['value'];if(_0x11948b){const _0x4e2c39=_0x15806b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5ab2e8=>_0x5ab2e8['model']==_0x11948b);let _0x23985a=_0x11948b,_0x370197='';return _0x4e2c39&&(_0x23985a=_0x4e2c39['label'],_0x370197=_0x3a83ad(_0x23985a)['toLowerCase']()),{'type':'format','content':o(_0x1ae029,'*Set\x20font\x20color:*\x20%0',_0x370197)['trim'](),'color':{'value':_0x11948b,'title':_0x370197||_0x23985a}};}return{'type':'format','content':o(_0x1ae029,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x285eeb['commandName']){const _0x4af982=_0x285eeb['commandParams'][0x0]['value'];if(_0x4af982){const _0x139fd6=_0x15806b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2fa9b5=>_0x2fa9b5['model']==_0x4af982);let _0x5ae33e=_0x4af982,_0x3f56ac='';return _0x139fd6&&(_0x5ae33e=_0x139fd6['label'],_0x3f56ac=_0x3a83ad(_0x5ae33e)['toLowerCase']()),{'type':'format','content':o(_0x1ae029,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f56ac)['trim'](),'color':{'value':_0x4af982,'title':_0x3f56ac||_0x5ae33e}};}return{'type':'format','content':o(_0x1ae029,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4c8a1d{['afterInit'](){const _0x28d02c=this['editor'],_0x1e34db=_0x28d02c['plugins']['get']('TrackChangesEditing'),_0x2f93a7=_0x28d02c['commands']['get']('copyFormat'),_0x2262be=_0x28d02c['commands']['get']('pasteFormat');_0x2f93a7&&_0x2262be&&(_0x1e34db['enableDefaultAttributesIntegration']('pasteFormat'),_0x1e34db['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2014c1=this['editor'],_0x19270d=_0x2014c1['locale'];_0x2014c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13da2f=>{if('formatBlock'!=_0x13da2f['type']&&'formatInline'!=_0x13da2f['type'])return;const {data:_0x49c30b}=_0x13da2f;if(_0x49c30b&&'pasteFormat'===_0x49c30b['commandName']){const _0x3a71ea=[],_0xd078e0=_0x49c30b['commandParams'][0x0];for(const [_0x50f98a,_0x6a9349]of Object['entries'](_0xd078e0))_0x3a71ea['push'](so(_0x2014c1,_0x50f98a,_0x6a9349));return _0x3a71ea['length']?{'type':'format','content':o(_0x19270d,'*Set\x20format\x20to:*\x20%0',_0x3a71ea['join'](',\x20'))}:{'type':'format','content':o(_0x19270d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3166f3,_0x2ac67d,_0x2b7649){const _0x4fc8dd=_0x3166f3['locale']['t'],_0x308cdf=_0x2ac67d['split'](/(?=[A-Z])/)['join']('\x20'),_0x40b987=_0x4fc8dd(_0x308cdf['charAt'](0x0)['toUpperCase']()+_0x308cdf['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2b7649)return _0x40b987;if('fontColor'===_0x2ac67d||'fontBackgroundColor'===_0x2ac67d){const _0xa24838=_0x15806b(_0x3166f3['config']['get']('fontColor.colors'))['find'](_0xa556be=>_0xa556be['model']==_0x2b7649);return _0x40b987+'\x20('+(_0xa24838?_0x4fc8dd(_0xa24838['label'])['toLowerCase']():_0x2b7649)+')';}if('fontSize'===_0x2ac67d&&isNaN(parseFloat(_0x2b7649))){const _0x2f63af=_0x3166f3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3166f3['config']['get']('fontSize.options'))['find'](_0x5a5eed=>_0x5a5eed['model']==_0x2b7649);return _0x40b987+'\x20('+(_0x2f63af?_0x4fc8dd(_0x2f63af['title'])['toLowerCase']():_0x2b7649)+')';}return _0x40b987+'\x20('+_0x2b7649+')';}class Y extends _0x4c8a1d{['_headingOptions'];['afterInit'](){const _0x473936=this['editor'];if(!_0x473936['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x473936['config']['get']('heading.options');const _0x2f688f=_0x473936['locale'],_0x40100c=_0x473936['plugins']['get']('TrackChangesEditing');_0x40100c['enableDefaultAttributesIntegration']('heading');for(const _0x4b1f1a of this['_headingOptions'])'paragraph'!=_0x4b1f1a['model']&&_0x40100c['descriptionFactory']['registerElementLabel'](_0x4b1f1a['model'],_0x4a74b1=>{const _0x23328e=this['_getHeadingLevel'](_0x4b1f1a['model']);return null!==_0x23328e?_0x3dfbd0(_0x4a74b1,_0x23328e):_0x2f5fa1(_0x4a74b1,_0x4b1f1a['title']);});function _0x3dfbd0(_0x262aac,_0x5331ff){return o(_0x2f688f,'ELEMENT_HEADING',[_0x262aac,_0x5331ff]);}function _0x2f5fa1(_0x336828,_0x4bcdfb){return o(_0x2f688f,'ELEMENT_HEADING_CUSTOM',[_0x336828,_0x4bcdfb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f8330=this['editor'],_0x2f24fa=_0x2f8330['locale'];function _0x322f07(_0x2eba13,_0x48e05f){return o(_0x2f24fa,'ELEMENT_HEADING_CUSTOM',[_0x2eba13,_0x48e05f]);}_0x2f8330['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x66f7b6=>{if('formatBlock'!=_0x66f7b6['type'])return;const {data:_0x1a033c}=_0x66f7b6;if(_0x1a033c&&'heading'==_0x1a033c['commandName']){const _0x314fae=_0x1a033c['commandParams'][0x0]['value'],_0x25fec8=this['_getHeadingLevel'](_0x314fae);if(null!==_0x25fec8)return{'type':'format','content':o(_0x2f24fa,'*Change\x20to:*\x20%0',(_0x19254d=0x1,_0x58a31a=_0x25fec8,o(_0x2f24fa,'ELEMENT_HEADING',[_0x19254d,_0x58a31a])))};const _0x3ba90b=this['_headingOptions']['find'](_0x3534ea=>_0x3534ea['model']===_0x314fae)['title'];return{'type':'format','content':o(_0x2f24fa,'*Change\x20to:*\x20%0',_0x322f07(0x1,_0x3ba90b))};}var _0x19254d,_0x58a31a;});}['_getHeadingLevel'](_0x4f71b4){const _0x55657b=_0x4f71b4['match'](/^heading(\d+)/);if(_0x55657b)return _0x55657b[0x1];const _0x4f10bf=this['_headingOptions']?.['find'](_0x19ce4f=>_0x19ce4f['model']==_0x4f71b4);if(_0x4f10bf&&_0x4f10bf['view']){const _0x5e67e4=_0x4f10bf['view'],_0x10bf5f=(_0x5e67e4['name']??_0x5e67e4)['match'](/^h(\d+)/);if(_0x10bf5f)return _0x10bf5f[0x1];}return null;}}class Z extends _0x4c8a1d{['afterInit'](){const _0x2a5401=this['editor'];if(!_0x2a5401['plugins']['has']('HighlightEditing'))return;const _0xc6241b=_0x2a5401['plugins']['get']('TrackChangesEditing'),_0x1af973=_0x2a5401['locale'];_0xc6241b['enableDefaultAttributesIntegration']('highlight'),_0xc6241b['registerInlineAttribute']('highlight'),_0xc6241b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1af973,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2507a6=this['editor'],_0x2e3911=_0x2507a6['locale'];_0x2507a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40c824=>{if('formatInline'!=_0x40c824['type'])return;const {data:_0x21e27d}=_0x40c824;if(_0x21e27d&&'highlight'==_0x21e27d['commandName']){const _0x52f586=_0x2e3911['t'],_0x111df4=_0x21e27d['commandParams'][0x0]['value'];if(_0x111df4){const _0x268de5=_0x2507a6['config']['get']('highlight.options')['find'](_0x4db83c=>_0x4db83c['model']==_0x111df4),_0x136969=_0x52f586(_0x268de5['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e3911,'*Set\x20highlight:*\x20%0',_0x136969),'color':{'value':_0x268de5['color'],'title':_0x268de5['title']}};}return{'type':'format','content':o(_0x2e3911,'*Remove\x20highlight*',o(_0x2e3911,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4c8a1d{['afterInit'](){const _0x2fa07f=this['editor'];if(!_0x2fa07f['plugins']['has']('HorizontalLineEditing'))return;_0x2fa07f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x537938=_0x2fa07f['plugins']['get']('TrackChangesEditing'),_0x4f9fea=_0x2fa07f['locale'];_0x537938['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4436b9=>o(_0x4f9fea,'ELEMENT_HORIZONTAL_LINE',_0x4436b9)),_0x2fa07f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x35f675,{writer:_0x3e6424,options:_0x3c5c46})=>{if(!_0x3c5c46['showSuggestionHighlights'])return null;const _0x2d4952=_0x3e6424['createContainerElement']('div'),_0x55cb8d=_0x3e6424['createEmptyElement']('hr');return _0x3e6424['addClass']('ck-horizontal-line',_0x2d4952),_0x3e6424['insert'](_0x3e6424['createPositionAt'](_0x2d4952,0x0),_0x55cb8d),_0x2d4952;},'converterPriority':'high'});}}class et extends _0x4c8a1d{['afterInit'](){const _0x4eaeed=this['editor'];if(!_0x4eaeed['plugins']['has']('HtmlEmbed'))return;const _0x729f4=_0x4eaeed['plugins']['get']('TrackChangesEditing'),_0x49ed98=_0x4eaeed['locale'];_0x729f4['descriptionFactory']['registerElementLabel']('rawHtml',_0x3ca331=>o(_0x49ed98,'ELEMENT_HTML_EMBED',_0x3ca331)),_0x729f4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x729f4['registerBlockAttribute']('value'),_0x729f4['descriptionFactory']['registerDescriptionCallback'](_0x49dd84=>{if('attribute'!=_0x49dd84['type'])return;const {data:_0x453371}=_0x49dd84;if(_0x453371&&'value'==_0x453371['key']&&_0x49dd84['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xf76a93=o(_0x49ed98,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x49ed98,'*Change\x20%0\x20content*',_0xf76a93)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x180833=this['editor'],_0x5c73d9=_0x180833['locale'];_0x180833['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42d7e8=>{if('formatBlock'!=_0x42d7e8['type'])return;const {data:_0x5e4da2}=_0x42d7e8;if(_0x5e4da2&&'htmlEmbed'==_0x5e4da2['commandName']){const _0x1e31b7=o(_0x5c73d9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5c73d9,'*Change\x20%0\x20content*',_0x1e31b7)};}});}}class it extends _0x4c8a1d{['afterInit'](){const _0xb176bf=this['editor'];if(!_0xb176bf['plugins']['has']('ImageEditing'))return;const _0x220bd7=_0xb176bf['plugins']['get']('TrackChangesEditing'),_0x474ae8=_0xb176bf['plugins']['get']('ImageUtils'),_0x342353=_0xb176bf['locale'];_0x220bd7['enableCommand']('insertImage'),_0x220bd7['descriptionFactory']['registerElementLabel']('imageBlock',_0x1d4286=>o(_0x342353,'ELEMENT_IMAGE',_0x1d4286)),_0x220bd7['descriptionFactory']['registerElementLabel']('imageInline',_0x382ca9=>o(_0x342353,'ELEMENT_INLINE_IMAGE',_0x382ca9)),_0x220bd7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x342353,'ELEMENT_CAPTION')),_0xb176bf['plugins']['has']('ImageUploadEditing')&&_0x220bd7['enableCommand']('uploadImage'),_0xb176bf['plugins']['has']('ImageBlockEditing')&&_0xb176bf['plugins']['has']('ImageInlineEditing')&&(_0x220bd7['enableCommand']('imageTypeInline',(_0x2f9648,_0x157dd7)=>{const _0x537615=_0x474ae8['getClosestSelectedImageElement'](_0xb176bf['model']['document']['selection']);_0xb176bf['model']['change'](()=>{_0x220bd7['markBlockFormat'](_0x537615,{'commandName':'imageTypeInline','commandParams':[_0x157dd7]},[],'convertBlockImageToInline');});}),_0x220bd7['enableCommand']('imageTypeBlock',(_0x2abaa4,_0x42b993)=>{_0xb176bf['model']['change'](_0x282529=>{let _0x5f019a=_0x474ae8['getClosestSelectedImageElement'](_0xb176bf['model']['document']['selection']),_0x2908d4=_0x282529['createRangeOn'](_0x5f019a);const _0x5d5f23=_0x149349['fromPosition'](_0x2908d4['start'],'toPrevious'),_0xae0369=_0x149349['fromPosition'](_0x2908d4['end'],'toNext');_0x220bd7['forceDefaultExecution'](()=>_0x2abaa4(_0x42b993)),_0x5f019a=_0x474ae8['getClosestSelectedImageElement'](_0xb176bf['model']['document']['selection']),_0x2908d4=_0x282529['createRangeOn'](_0x5f019a);const _0xb8520d=_0x282529['createRange'](_0x5d5f23,_0xae0369);_0x5d5f23['detach'](),_0xae0369['detach'](),_0x220bd7['markBlockFormat'](_0x5f019a,{'commandName':'imageTypeInline','commandParams':[_0x42b993]},[],'convertInlineImageToBlock'),_0xb8520d['start']['isBefore'](_0x2908d4['start'])&&_0x220bd7['markInsertion'](_0x282529['createRange'](_0xb8520d['start'],_0x2908d4['start']),'convertInlineImageToBlock'),_0x2908d4['end']['isBefore'](_0xb8520d['end'])&&_0x220bd7['markInsertion'](_0x282529['createRange'](_0x2908d4['end'],_0xb8520d['end']),'convertInlineImageToBlock');});}),_0x220bd7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x220bd7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x220bd7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x220bd7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x220bd7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x220bd7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x17aa19])=>{const _0x62aec1=_0x220bd7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x50938c=_0x17aa19['start'],_0xa6ad71=_0x17aa19['end'];const _0x632a15=_0xb176bf['model']['schema']['getNearestSelectionRange'](_0x50938c,'backward'),_0x313b59=_0xb176bf['model']['schema']['getNearestSelectionRange'](_0xa6ad71,'forward');_0x632a15['isCollapsed']&&(_0x50938c=_0x632a15['start']),_0x313b59['isCollapsed']&&(_0xa6ad71=_0x313b59['end']),_0x62aec1([_0xb176bf['model']['createRange'](_0x50938c,_0xa6ad71)]);}),_0x220bd7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xc40589),_0x220bd7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xc40589)),_0xb176bf['plugins']['has']('ImageCaptionEditing')&&(_0x220bd7['enableCommand']('toggleImageCaption',(_0x1ca31d,_0x609e7b)=>{const _0x23f821=_0xb176bf['plugins']['get']('ImageCaptionUtils');let _0x378cbf=_0x474ae8['getClosestSelectedImageElement'](_0xb176bf['model']['document']['selection']),_0x1f9a57=_0x23f821['getCaptionFromImageModelElement'](_0x378cbf);_0xb176bf['model']['change'](()=>{if(_0x1f9a57)return void _0x220bd7['markDeletion'](_0xb176bf['model']['createRangeOn'](_0x1f9a57));const _0x207e9f=_0x474ae8['isBlockImage'](_0x378cbf);_0x1ca31d(_0x609e7b),_0x378cbf=_0x474ae8['getClosestSelectedImageElement'](_0xb176bf['model']['document']['selection']),_0x1f9a57=_0x23f821['getCaptionFromImageModelElement'](_0x378cbf),_0x220bd7['markInsertion'](_0xb176bf['model']['createRangeOn'](_0x1f9a57),_0x207e9f?null:'imageCaption');});}),_0x220bd7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xc40589));const _0x1ba40f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5efb2b(_0x1fd234,_0x165a23){const _0x3e492c=_0x1ba40f['findIndex'](({type:_0x3603ea,subType:_0x1d4cf9})=>_0x1fd234['type']==_0x3603ea&&_0x1fd234['subType']==_0x1d4cf9),_0x5518b2=_0x1ba40f['findIndex'](({type:_0x12f95c,subType:_0x3def80})=>_0x165a23['type']==_0x12f95c&&_0x165a23['subType']==_0x3def80);if(_0x3e492c<0x0||_0x5518b2<0x0)return!0x1;const _0x591a55=_0x1fd234['getFirstRange'](),_0x500da1=_0x165a23['getFirstRange']();if((0x0==_0x3e492c||0x1==_0x3e492c)&&0x2==_0x5518b2&&_0x591a55['isIntersecting'](_0x500da1))return!0x0;if(0x2==_0x3e492c&&0x3==_0x5518b2){const _0xb147b5=_0x220bd7['_findSuggestions'](_0x591a55,'insertion')['filter'](({suggestion:_0x1f28e0,meta:_0x777055})=>_0x777055['isOwn']&&'convertInlineImageToBlock'==_0x1f28e0['subType']);if(_0xb147b5['length']>0x1&&_0x500da1['end']['isEqual'](_0x591a55['start']))return!0x0;if(0x1==_0xb147b5['length']&&(_0x591a55['start']['isEqual'](_0x500da1['end'])||_0x591a55['end']['isEqual'](_0x500da1['start'])))return!0x0;}if(0x3==_0x3e492c&&0x3==_0x5518b2&&_0x591a55['start']['isBefore'](_0x500da1['start'])){const _0x565f4d=_0x591a55['end']['nodeAfter'],_0xe39d47=_0x500da1['start']['nodeBefore'];return _0x474ae8['isBlockImage'](_0x565f4d)&&_0x565f4d===_0xe39d47;}return!0x1;}function _0xc40589(_0x2231b1,_0x1ceb43){return _0x5efb2b(_0x2231b1,_0x1ceb43)?[_0x2231b1,_0x1ceb43]:_0x5efb2b(_0x1ceb43,_0x2231b1)?[_0x1ceb43,_0x2231b1]:null;}_0xb176bf['plugins']['has']('ImageResize')&&(_0x220bd7['enableDefaultAttributesIntegration']('resizeImage'),_0x220bd7['registerBlockAttribute']('resizedWidth'),_0x220bd7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x342353,'FORMAT_IMAGE_SIZE'))),_0xb176bf['plugins']['has']('ImageTextAlternativeEditing')&&(_0x220bd7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x220bd7['registerBlockAttribute']('alt')),_0x220bd7['descriptionFactory']['registerDescriptionCallback'](_0x164d96=>{if(!!_0x1ba40f['find'](({type:_0x2aac9f,subType:_0x2b2066})=>_0x164d96['type']==_0x2aac9f&&_0x164d96['subType']==_0x2b2066))return _0x164d96['previous']?{}:void 0x0;}),_0x220bd7['descriptionFactory']['registerDescriptionCallback'](_0xf5033d=>{if('insertion'==_0xf5033d['type']||'deletion'==_0xf5033d['type']){const _0xb8eeb9=_0xf5033d['getContainedElement']();if(_0xb8eeb9&&_0xb8eeb9['is']('element','caption'))return{'type':'insertion'==_0xf5033d['type']?'addObject':'removeObject','element':_0xb8eeb9,'quantity':0x1};}}),_0x220bd7['descriptionFactory']['registerDescriptionCallback'](_0x33b9f8=>'formatBlock'==_0x33b9f8['type']&&'convertInlineImageToBlock'==_0x33b9f8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x33b9f8['type']&&'convertBlockImageToInline'==_0x33b9f8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x220bd7['descriptionFactory']['registerDescriptionCallback'](_0x462fe0=>{if('attribute'!=_0x462fe0['type'])return;const {data:_0x3ae457}=_0x462fe0;if(!_0x3ae457||'alt'!=_0x3ae457['key'])return;const _0x2beadb=_0x3ae457['newValue'];return _0x2beadb?{'type':'format','content':o(_0x342353,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2beadb+'\x22')}:{'type':'format','content':o(_0x342353,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x499860=this['editor'],_0x41a6d8=_0x499860['locale'];_0x499860['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ac65f=>{if('formatBlock'!=_0x3ac65f['type']&&'formatInline'!=_0x3ac65f['type'])return;const {data:_0x5f33c2}=_0x3ac65f;if(_0x5f33c2){if('imageTextAlternative'==_0x5f33c2['commandName']){const _0x5ea1c6=_0x5f33c2['commandParams'][0x0]['newValue'];return _0x5ea1c6?{'type':'format','content':o(_0x41a6d8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5ea1c6+'\x22')}:{'type':'format','content':o(_0x41a6d8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5f33c2['commandName']){const _0x523773=_0x5f33c2['commandParams'][0x0]['width'];return _0x523773?{'type':'format','content':o(_0x41a6d8,'*Set\x20image\x20width:*\x20%0',_0x523773)}:{'type':'format','content':o(_0x41a6d8,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4c8a1d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2247e3=this['editor']['locale'],_0x49b4ff=this['editor']['plugins']['get']('TrackChangesEditing');_0x49b4ff['enableDefaultAttributesIntegration']('replaceImageSource'),_0x49b4ff['registerBlockAttribute']('src'),_0x49b4ff['descriptionFactory']['registerDescriptionCallback'](_0x5e7877=>{if('attribute'!=_0x5e7877['type'])return;const {data:_0x1cf189}=_0x5e7877;return _0x1cf189&&'src'==_0x1cf189['key']?_0x1cf189['newValue']&&_0x1cf189['oldValue']?{'type':'format','content':o(_0x2247e3,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e44bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e44bc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3e44bc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e44bc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3e44bc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4129a2=this['editor'],_0x2df865=_0x4129a2['locale'];_0x4129a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22b7e7=>{if('formatBlock'!=_0x22b7e7['type']&&'formatInline'!=_0x22b7e7['type'])return;const {data:_0x229b1c}=_0x22b7e7;if(!_0x229b1c||'replaceImageSource'!=_0x229b1c['commandName'])return;return{'type':'format','content':o(_0x2df865,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4c8a1d{['afterInit'](){const _0x287267=this['editor'];if(!_0x287267['plugins']['has']('ImageStyleEditing'))return;const _0x18e8e0=_0x287267['plugins']['get']('TrackChangesEditing'),_0x381c6d=_0x287267['plugins']['get']('ImageUtils'),_0x20b901={};_0x18e8e0['enableCommand']('imageStyle',(_0x562955,_0x4b76f7)=>{const _0x2c195f=_0x287267['plugins']['get']('Users')['me'],_0x547bd9=_0x287267['commands']['get']('imageStyle');let _0x41d1fd=_0x381c6d['getClosestSelectedImageElement'](_0x287267['model']['document']['selection']),_0x540363=_0x287267['model']['createRangeOn'](_0x41d1fd),_0x5972a3=_0x547bd9['value'];if(_0x5972a3==_0x4b76f7['value'])return;const _0x51f1ae={'commandName':'imageStyle','commandParams':[_0x4b76f7],'formatGroupId':_0x282b27()};_0x287267['model']['change'](()=>{if(_0x18e8e0['getSuggestions']()['filter'](_0x33449c=>_0x33449c['isInContent']&&_0x2c195f==_0x33449c['author']&&('formatBlock'==_0x33449c['type']||'formatInline'==_0x33449c['type'])&&('imageStylePreApply'==_0x33449c['subType']||'imageStylePostApply'==_0x33449c['subType'])&&_0x33449c['getFirstRange']()['isEqual'](_0x540363))['forEach'](_0x1077c7=>_0x18e8e0['discardSuggestion'](_0x1077c7['head'])),_0x41d1fd=_0x381c6d['getClosestSelectedImageElement'](_0x287267['model']['document']['selection']),_0x540363=_0x287267['model']['createRangeOn'](_0x41d1fd),_0x547bd9['refresh'](),_0x287267['commands']['get']('imageTypeInline')['refresh'](),_0x287267['commands']['get']('imageTypeBlock')['refresh'](),_0x5972a3=_0x547bd9['value'],_0x5972a3!=_0x4b76f7['value'])return _0x381c6d['isInlineImage'](_0x41d1fd)&&_0x547bd9['shouldConvertImageType'](_0x4b76f7['value'],_0x41d1fd)?(_0x562955({..._0x4b76f7,'setImageSizes':!0x1}),_0x41d1fd=_0x381c6d['getClosestSelectedImageElement'](_0x287267['model']['document']['selection']),void _0x18e8e0['markBlockFormat'](_0x41d1fd,{..._0x51f1ae,'commandReversedParams':[{'value':_0x5972a3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x381c6d['isBlockImage'](_0x41d1fd)?_0x18e8e0['markBlockFormat'](_0x41d1fd,_0x51f1ae,[],'imageStylePostApply'):_0x18e8e0['markInlineFormat'](_0x540363,_0x51f1ae,'imageStylePostApply'));});});for(const _0x436747 of _0x287267['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x20b901[_0x436747['name']]=_0x436747['title']['toLowerCase']();_0x18e8e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x18e8e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x18e8e0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x18e8e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x25e983])=>{_0x381c6d['setImageNaturalSizeAttributes'](_0x25e983['getContainedElement']());}),_0x18e8e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3ce981,_0x5a6fb9)=>{_0x18e8e0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ce981,{'commandName':_0x5a6fb9['commandName'],'commandParams':_0x5a6fb9['commandReversedParams']});}),_0x18e8e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x42f06f,_0x47be3f){if(_0x49a814(_0x42f06f,_0x47be3f))return[_0x42f06f,_0x47be3f];if(_0x49a814(_0x47be3f,_0x42f06f))return[_0x47be3f,_0x42f06f];return null;});const _0xf13b60=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49a814(_0x8dcc26,_0x1b046d){const _0x4df779=_0xf13b60['findIndex'](({type:_0x18fef5,subType:_0x267c48})=>_0x8dcc26['type']==_0x18fef5&&_0x8dcc26['subType']==_0x267c48),_0x3eca80=_0xf13b60['findIndex'](({type:_0x40b437,subType:_0x89ab91})=>_0x1b046d['type']==_0x40b437&&_0x1b046d['subType']==_0x89ab91);if(_0x4df779<0x0||_0x3eca80<0x0)return!0x1;const _0x140aaa=_0x8dcc26['getFirstRange'](),_0x2d62ad=_0x1b046d['getFirstRange']();if((0x0==_0x4df779||0x1==_0x4df779)&&0x2==_0x3eca80&&_0x140aaa['isIntersecting'](_0x2d62ad))return!0x0;if(0x2==_0x4df779&&0x3==_0x3eca80){const _0x13d81c=_0x18e8e0['_findSuggestions'](_0x140aaa,'insertion')['filter'](({suggestion:_0x1de5cf,meta:_0x587ff5})=>_0x587ff5['isOwn']&&'convertInlineImageToBlock'==_0x1de5cf['subType']);if(_0x13d81c['length']>0x1&&_0x2d62ad['end']['isEqual'](_0x140aaa['start']))return!0x0;if(0x1==_0x13d81c['length']&&(_0x140aaa['start']['isEqual'](_0x2d62ad['end'])||_0x140aaa['end']['isEqual'](_0x2d62ad['start'])))return!0x0;}if(0x3==_0x4df779&&0x3==_0x3eca80&&_0x140aaa['start']['isBefore'](_0x2d62ad['start'])){const _0x4f3a69=_0x140aaa['end']['nodeAfter'],_0x47dcdc=_0x2d62ad['start']['nodeBefore'];return _0x381c6d['isBlockImage'](_0x4f3a69)&&_0x4f3a69===_0x47dcdc;}return!0x1;}_0x287267['model']['document']['registerPostFixer'](()=>{let _0x39af18=!0x1;const _0x4ebfcd=Array['from'](_0x287267['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41beb4,data:_0x2d78db}of _0x4ebfcd){const {group:_0x333166,type:_0x86df58,subType:_0x37d15a,id:_0x3dc390}=_0x18e8e0['_splitMarkerName'](_0x41beb4);if('suggestion'==_0x333166&&_0x18e8e0['hasSuggestion'](_0x3dc390)){if('formatBlock'==_0x86df58&&('imageStylePreApply'==_0x37d15a||'imageStylePostApply'==_0x37d15a)){const _0x4513bb=_0x18e8e0['getSuggestion'](_0x3dc390);if(_0x2d78db['newRange']){const _0x54e977=_0x4513bb['getFirstRange']()['getContainedElement']();if(_0x381c6d['isBlockImage'](_0x54e977))continue;_0x18e8e0['discardSuggestion'](_0x4513bb),_0x39af18=!0x0;}}if('insertion'==_0x86df58&&'imageCaption'==_0x37d15a&&!_0x2d78db['newRange']){const _0x41b46e=_0x18e8e0['getSuggestion'](_0x3dc390);_0x41b46e['next']&&_0x41b46e['next']['isInContent']&&(_0x18e8e0['discardSuggestion'](_0x41b46e['next']),_0x39af18=!0x0);}}}return _0x39af18;}),this['_registerLegacyDescription'](_0x20b901);}['_registerLegacyDescription'](_0x3202a4){const _0x542d97=this['editor'],_0x594ff0=_0x542d97['locale'];_0x542d97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38ef14=>{if('formatBlock'!=_0x38ef14['type']&&'formatInline'!=_0x38ef14['type'])return;const {data:_0x3e5f28}=_0x38ef14;if(!_0x3e5f28||'imageStyle'!=_0x3e5f28['commandName'])return;const _0x4bfc76=_0x3e5f28['commandParams'][0x0]['value'];return _0xcc22da('side'===_0x4bfc76?o(_0x594ff0,'FORMAT_SIDE_IMAGE'):_0x3202a4[_0x4bfc76]||_0x4bfc76);function _0xcc22da(_0xfce72d){return{'type':'format','content':o(_0x594ff0,'*Format:*\x20%0',_0xfce72d)};}});}}class ot extends _0x4c8a1d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4345e1){super(_0x4345e1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5c97cf=this['editor'],_0x557267=_0x5c97cf['commands']['get']('importWord'),_0xdcaa15=_0x5c97cf['commands']['get']('trackChanges');_0x557267&&(_0x557267['on']('execute',(_0x179d09,[,_0x328a8d])=>{this['_trackChangesValueDuringImport']=_0xdcaa15['value'],_0x328a8d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x557267,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x557267,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xdcaa15['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5c97cf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x490cb1,_0x5a603b){const {suggestions:_0x40d7dd}=_0x5a603b,_0x2b4127=this['editor']['commands']['get']('trackChanges'),_0x1b1270=_0x2b4127['value'];this['_trackChangesValueDuringImport']!==_0x1b1270&&(_0x2b4127['execute'](),this['_trackChangesExecuted']=!0x0),_0x40d7dd&&_0x40d7dd['forEach'](({id:_0x479e73,type:_0x116b0b,author:_0x1477ab,created_at:_0x35298f})=>{const _0x7813c2={'id':_0x479e73,'type':_0x116b0b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1477ab,'createdAt':_0x35298f?new Date(_0x35298f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x7813c2);});}}class rt extends _0x4c8a1d{['afterInit'](){const _0x468060=this['editor'],_0x57d8ce=_0x468060['plugins']['get']('TrackChangesEditing');if(_0x468060['plugins']['has']('IndentEditing')&&(_0x57d8ce['enableCommand']('indent'),_0x57d8ce['enableCommand']('outdent')),_0x468060['plugins']['has']('IndentBlock')){for(const _0x573ec2 of['indentBlock','outdentBlock'])_0x57d8ce['enableDefaultAttributesIntegration'](_0x573ec2);}const _0x489d14=_0x468060['locale'];_0x57d8ce['registerBlockAttribute']('blockIndent'),_0x57d8ce['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x489d14,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x456c6c=this['editor'],_0x59cef0=_0x456c6c['locale'],_0x44982b=_0x456c6c['plugins']['get']('TrackChangesEditing');_0x44982b['descriptionFactory']['registerDescriptionCallback'](_0xb64e6d=>{if('formatBlock'!=_0xb64e6d['type'])return;const {data:_0x592b43}=_0xb64e6d;if(!_0x592b43)return;if('indentBlock'!=_0x592b43['commandName']&&'outdentBlock'!=_0x592b43['commandName'])return;const _0x44cf2c=_0xb64e6d['getItems']()[0x0],_0x4c3387=_0x44982b['descriptionFactory']['getItemLabel'](_0x44cf2c);return'indentBlock'==_0x592b43['commandName']?{'type':'format','content':o(_0x59cef0,'*Indent:*\x20%0',_0x4c3387)}:'outdentBlock'==_0x592b43['commandName']?{'type':'format','content':o(_0x59cef0,'*Outdent:*\x20%0',_0x4c3387)}:void 0x0;});}}class at extends _0x4c8a1d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4c8a1d{['afterInit'](){const _0x1588ee=this['editor'];if(!_0x1588ee['plugins']['has']('LinkEditing'))return;const _0xca4a92=_0x1588ee['plugins']['get']('TrackChangesEditing'),_0x5effcb=_0x1588ee['commands']['get']('link');_0xca4a92['enableDefaultAttributesIntegration']('link'),_0xca4a92['enableDefaultAttributesIntegration']('unlink'),_0xca4a92['registerInlineAttribute']('linkHref');for(const _0x54c006 of _0x5effcb['manualDecorators'])_0xca4a92['registerInlineAttribute'](_0x54c006['id']),_0xca4a92['descriptionFactory']['registerAttributeLabel'](_0x54c006['id'],'link\x20('+_0x54c006['label']['toLowerCase']()+')');_0xca4a92['descriptionFactory']['registerDescriptionCallback'](_0x5a2885=>{if('attribute'!=_0x5a2885['type'])return;const {data:_0x25c79b}=_0x5a2885;if(!_0x25c79b||'linkHref'!=_0x25c79b['key'])return;const _0xc73932=_0x25c79b['newValue'],_0x271fd6=_0x1588ee['locale'];return{'type':'format','content':null==_0xc73932?o(_0x271fd6,'*Remove\x20link*'):o(_0x271fd6,'*Set\x20link:*\x20%0','\x22'+_0xc73932+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3afc96=this['editor'],_0x2fe026=_0x3afc96['locale'];_0x3afc96['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e8112=>{if('formatInline'!=_0x1e8112['type'])return;const {data:_0x55b054}=_0x1e8112;if(_0x55b054){if('link'==_0x55b054['commandName']){const _0x2a190c=_0x55b054['commandParams'][0x0];return{'type':'format','content':o(_0x2fe026,'*Set\x20link:*\x20%0','\x22'+_0x2a190c+'\x22')};}return'unlink'==_0x55b054['commandName']?{'type':'format','content':o(_0x2fe026,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4c8a1d{['afterInit'](){const _0x5bc2a1=this['editor'],_0x2b22c7=_0x5bc2a1['locale'];if(!_0x5bc2a1['plugins']['has']('LegacyListEditing'))return;const _0x43ad4c=_0x5bc2a1['plugins']['get']('TrackChangesEditing'),_0x5dbde9=_0x5bc2a1['plugins']['has']('LegacyTodoListEditing');function _0x2abb82(_0x301dd4){return()=>{const _0x5cd8d5=_0x5bc2a1['model']['document']['selection'],_0x56585b=_0x5bc2a1['commands']['get'](_0x301dd4);if(_0x56585b['value'])return void _0x5bc2a1['execute']('paragraph',{});const _0x10e6df=_0x301dd4['slice'](0x0,-0x4),_0x372d07=function(_0x28f39a,_0x4b465b,_0x54301e){let _0x5bafb4=Array['from'](_0x28f39a)['filter'](_0x26e1e8=>function(_0x4f459c,_0x62c39b){return _0x62c39b['checkChild'](_0x4f459c['parent'],'listItem')&&!_0x62c39b['isObject'](_0x4f459c);}(_0x26e1e8,_0x54301e));_0x5bafb4=_0x5bafb4['filter'](_0x9d2489=>!_0x9d2489['is']('element','listItem')||_0x9d2489['getAttribute']('listType')!=_0x4b465b);const _0x2f9845=new Set();for(const _0x4ce858 of _0x5bafb4)_0x4ce858['is']('element','listItem')?_0x2f9845['add'](me(_0x4ce858)):_0x2f9845['add'](_0x4ce858);return Array['from'](_0x2f9845);}(_0x5cd8d5['getSelectedBlocks'](),_0x10e6df,_0x5bc2a1['model']['schema']);_0x5bc2a1['model']['change'](()=>{for(const _0x11c939 of _0x372d07)_0x43ad4c['markBlockFormat'](_0x11c939,{'commandName':_0x301dd4,'commandParams':[{'forceValue':!_0x56585b['value']}],'formatGroupId':'blockName'},fe(_0x11c939));});};}function _0x4072d9(_0x5a06d8){return()=>{const _0x1b5cab=function(_0x4d3e21){let _0x2286ac=Array['from'](_0x4d3e21);const _0x5381c2=_0x2286ac['findIndex'](_0x35a78c=>'listItem'!=_0x35a78c['name']);return _0x5381c2>-0x1&&(_0x2286ac=_0x2286ac['slice'](0x0,_0x5381c2)),_0x2286ac;}(_0x5bc2a1['model']['document']['selection']['getSelectedBlocks']()),_0x3f6bf2=_0x5bc2a1['model']['createRange'](_0x5bc2a1['model']['createPositionAt'](_0x1b5cab[0x0],'before'),_0x5bc2a1['model']['createPositionAt'](_0x1b5cab[_0x1b5cab['length']-0x1],'end'));_0x5bc2a1['model']['change'](()=>{_0x43ad4c['markBlockFormat'](_0x3f6bf2,{'commandName':_0x5a06d8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x179cea){const _0x5b10d1=new Set();for(const _0x3360ae of _0x179cea){let _0x4b7e71=_0x3360ae['nextSibling'];for(;_0x4b7e71&&_0x4b7e71['getAttribute']('listIndent')>_0x3360ae['getAttribute']('listIndent');)_0x5b10d1['add'](_0x4b7e71),_0x4b7e71=_0x4b7e71['nextSibling'];}return Array['from'](_0x5b10d1);}(_0x1b5cab));});};}_0x43ad4c['enableCommand']('numberedList',_0x2abb82('numberedList')),_0x43ad4c['enableCommand']('bulletedList',_0x2abb82('bulletedList')),_0x5dbde9&&_0x43ad4c['enableCommand']('todoList',_0x2abb82('todoList')),_0x43ad4c['enableCommand']('indentList',_0x4072d9('indentList')),_0x43ad4c['enableCommand']('outdentList',_0x4072d9('outdentList')),_0x5dbde9&&_0x43ad4c['enableCommand']('checkTodoList',()=>{const _0x290a0b=_0x5bc2a1['commands']['get']('checkTodoList'),_0x39f815=Array['from'](_0x290a0b['_selectedElements']);_0x39f815['filter'](_0x2ce9c4=>_0x2ce9c4['getAttribute']('todoListChecked')!=_0x290a0b['value']),_0x5bc2a1['model']['change'](()=>{for(const _0x27cdc4 of _0x39f815)_0x43ad4c['markBlockFormat'](_0x27cdc4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x290a0b['value']}]});});}),_0x43ad4c['descriptionFactory']['registerElementLabel']('listItem',_0x349fdf=>o(_0x2b22c7,'ELEMENT_LIST_ITEM',_0x349fdf)),_0x43ad4c['descriptionFactory']['registerDescriptionCallback'](_0x4eb15e=>{if('formatBlock'!=_0x4eb15e['type']&&'formatInline'!=_0x4eb15e['type'])return;const {data:_0x263bf6}=_0x4eb15e;if(_0x263bf6){if('numberedList'==_0x263bf6['commandName']||'bulletedList'==_0x263bf6['commandName']||'todoList'==_0x263bf6['commandName'])switch(_0x263bf6['commandName']['replace']('List','')){case'bulleted':return _0x1382bc(o(_0x2b22c7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1382bc(o(_0x2b22c7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1382bc(o(_0x2b22c7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x263bf6['commandName'])return{'type':'format','content':o(_0x2b22c7,'*Indent:*\x20%0',o(_0x2b22c7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x263bf6['commandName'])return{'type':'format','content':o(_0x2b22c7,'*Outdent:*\x20%0',o(_0x2b22c7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x263bf6['commandName'])return _0x263bf6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b22c7,'*Check\x20item*')}:{'type':'format','content':o(_0x2b22c7,'*Uncheck\x20item*')};}function _0x1382bc(_0x59426a){return{'type':'format','content':o(_0x2b22c7,'*Change\x20to:*\x20%0',_0x59426a)};}});}}function me(_0x497d93){const _0x4acb43=_0x497d93['getAttribute']('listIndent');if(0x0==_0x4acb43)return _0x497d93;let _0x57946f=_0x497d93;for(;_0x497d93['previousSibling']&&_0x497d93['previousSibling']['is']('element','listItem');){const _0x546f05=_0x497d93['previousSibling']['getAttribute']('listIndent');if(_0x546f05==_0x4acb43)_0x57946f=_0x497d93['previousSibling'];else{if(_0x546f05<_0x4acb43)break;}_0x497d93=_0x497d93['previousSibling'];}return _0x57946f;}function fe(_0x3326d3){const _0x478a39=[];if(_0x3326d3['is']('element','listItem')&&_0x3326d3['getAttribute']('listIndent')>0x0){let _0x1375ef=_0x3326d3['nextSibling'];for(;_0x1375ef&&'listItem'==_0x1375ef['name']&&_0x1375ef['getAttribute']('listIndent')==_0x3326d3['getAttribute']('listIndent');)_0x478a39['push'](_0x1375ef),_0x1375ef=_0x1375ef['nextSibling'];}return _0x478a39;}class K extends _0x4c8a1d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x410b2a=this['editor']['config']['get']('list.properties'),_0x43c40f=this['editor']['plugins']['get']('TrackChangesEditing');_0x410b2a['styles']&&_0x43c40f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x410b2a['reversed']&&_0x43c40f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x410b2a['startIndex']&&_0x43c40f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x43c40f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x335a57,_0x228523={}){const _0x2ed35b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x375ac7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2ed35b['markMultiRangeBlockFormat'](_0x375ac7,{'commandName':'listStyle','commandParams':[{'type':_0x228523['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2572ea,_0x1b7ac6={}){const _0x2965e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd90416=this['_getSuggestionBlocks'](_0x35e667=>_0x35e667['is']('element','listItem')&&'numbered'===_0x35e667['getAttribute']('listType'));if(_0xd90416['length']<0x1)return;const _0x2e39d0=_0xd90416['map'](_0x584068=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x584068,'before'),this['editor']['model']['createPositionAt'](_0x584068,0x0)));this['editor']['model']['change'](()=>{_0x2965e1['markMultiRangeBlockFormat'](_0x2e39d0,{'commandName':'listReversed','commandParams':[{'reversed':_0x1b7ac6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3f01a3,_0x525db3={}){const _0x103b3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d6fa4=this['_getSuggestionBlocks'](_0x19c579=>_0x19c579['is']('element','listItem')&&'numbered'===_0x19c579['getAttribute']('listType'));if(_0x5d6fa4['length']<0x1)return;const _0x16d8e4=_0x5d6fa4['map'](_0x2ad7ee=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ad7ee,'before'),this['editor']['model']['createPositionAt'](_0x2ad7ee,0x0)));this['editor']['model']['change'](()=>{_0x103b3a['markMultiRangeBlockFormat'](_0x16d8e4,{'commandName':'listStart','commandParams':[{'startIndex':_0x525db3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2006df){if('formatBlock'!=_0x2006df['type']&&'formatInline'!=_0x2006df['type'])return;const _0x33eba4=this['editor']['locale'],{data:_0x2c73fd}=_0x2006df;if(!_0x2c73fd)return;let _0x35817a,_0x11cea0;switch(_0x2c73fd['commandName']){case'listStyle':_0x35817a='*Change\x20to:*\x20%0',_0x11cea0={'type':'format','content':o(_0x33eba4,_0x35817a,o(_0x33eba4,this['_getTranslationKeyForListStyle'](_0x2c73fd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x35817a=_0x2c73fd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x11cea0={'type':'format','content':o(_0x33eba4,_0x35817a)};break;case'listStart':_0x35817a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11cea0={'type':'format','content':o(_0x33eba4,_0x35817a,_0x2c73fd['commandParams'][0x0]['startIndex'])};}return _0x11cea0;}['_getSuggestionBlocksForListStyle'](){const _0x27549f=this['editor']['plugins']['get']('LegacyListUtils');let _0x152087=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x152087[0x0]?.['is']('element','listItem')&&_0x152087['unshift'](..._0x27549f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x152087[_0x152087['length']-0x1]?.['is']('element','listItem')&&_0x152087['push'](..._0x27549f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x152087=[...new Set(_0x152087)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x152087=_0x152087['filter'](_0x1fa722=>_0x1fa722['is']('element','listItem'))),_0x152087;}['_getSuggestionBlocks'](_0x3ebc07){const _0x3c8c61=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b2065=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3ebc07)['map'](_0x15439f=>{const _0x3c9cc4=this['editor']['model']['createPositionAt'](_0x15439f,0x0);return[..._0x3c8c61['getSiblingNodes'](_0x3c9cc4,'backward'),..._0x3c8c61['getSiblingNodes'](_0x3c9cc4,'forward')];})['flat']();return _0x4b2065=[...new Set(_0x4b2065)],_0x4b2065;}['_getTranslationKeyForListStyle'](_0x54a001){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x54a001)||'default')['toUpperCase']()+'_LIST_'+_0x54a001['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4c8a1d{['afterInit'](){const _0x1fbd87=this['editor'];if(!_0x1fbd87['plugins']['has']('MediaEmbedEditing'))return;const _0x5a73c5=_0x1fbd87['plugins']['get']('TrackChangesEditing'),_0x254139=_0x1fbd87['locale'];_0x5a73c5['enableCommand']('mediaEmbed'),_0x5a73c5['descriptionFactory']['registerElementLabel']('media',_0x56e0d8=>o(_0x254139,'ELEMENT_MEDIA',_0x56e0d8)),_0x1fbd87['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x10d473,{writer:_0x55d072,options:_0x562b16})=>{if(_0x562b16['showSuggestionHighlights'])return _0x55d072['createEmptyElement']('div');},'converterPriority':'high'}),_0x1fbd87['data']['downcastDispatcher']['on']('attribute:url:media',(_0x433aa9,_0x2bda7d,_0x48ff5b)=>{_0x48ff5b['options']['showSuggestionHighlights']&&_0x433aa9['stop']();},{'priority':'high'});}}class gt extends _0x4c8a1d{['afterInit'](){const _0x416fc6=this['editor'];_0x416fc6['plugins']['has']('MentionEditing')&&_0x416fc6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4c8a1d{['afterInit'](){const _0x513efe=this['editor'],_0x53e312=_0x513efe['plugins']['get']('TrackChangesEditing');_0x513efe['plugins']['has']('MultiLevelList')&&(_0x53e312['enableDefaultAttributesIntegration']('multiLevelList'),_0x53e312['registerBlockAttribute']('listMarkerStyle'),_0x53e312['descriptionFactory']['registerDescriptionCallback'](_0x34af14=>this['handleDescriptions'](_0x34af14)));}['handleDescriptions'](_0x2872a8){const _0x2d5098=this['editor']['locale'],{data:_0x4e7b93}=_0x2872a8,_0x1adf25={'type':'format','content':''};if(_0x4e7b93&&'listMarkerStyle'==_0x4e7b93['key']){if(!_0x4e7b93['oldValue'])return{'type':'format','content':o(_0x2d5098,'*Set\x20format:*\x20%0',o(_0x2d5098,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e7b93['newValue']+')'};if(!_0x4e7b93['newValue']){let _0x4040e6=_0x2872a8['head'];for(;_0x4040e6;){if(_0x4040e6['data']&&'listType'==_0x4040e6['data']['key']&&_0x4040e6['data']['newValue'])return _0x1adf25;_0x4040e6=_0x4040e6['next'];}return{'type':'format','content':o(_0x2d5098,'*Remove\x20format:*\x20%0',o(_0x2d5098,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e7b93['oldValue']+')'};}}}}class mt extends _0x4c8a1d{['afterInit'](){const _0x5d3cb1=this['editor'];if(!_0x5d3cb1['plugins']['has']('PageBreakEditing'))return;_0x5d3cb1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1b024d=_0x5d3cb1['plugins']['get']('TrackChangesEditing'),_0x14ace1=_0x5d3cb1['locale'];_0x1b024d['descriptionFactory']['registerElementLabel']('pageBreak',_0x544bae=>o(_0x14ace1,'ELEMENT_PAGE_BREAK',_0x544bae));}}class dt extends _0x4c8a1d{['afterInit'](){const _0x3720ac=this['editor'];if(!_0x3720ac['plugins']['has']('Paragraph'))return;const _0x183c48=_0x3720ac['locale'],_0xc364d1=_0x3720ac['plugins']['get']('TrackChangesEditing');_0xc364d1['descriptionFactory']['registerElementLabel']('paragraph',_0x120bb1=>o(_0x183c48,'ELEMENT_PARAGRAPH',_0x120bb1)),_0xc364d1['enableDefaultAttributesIntegration']('paragraph'),_0xc364d1['enableCommand']('insertParagraph'),_0x3720ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3720ac),{'priority':'highest'}),_0x3720ac['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5c287f,_0x232797,_0x3a21f2)=>{_0x3a21f2['options']['showSuggestionHighlights']&&nr(_0x3720ac,{'showActiveMarker':!0x1})(_0x5c287f,_0x232797,_0x3a21f2);},{'priority':'highest'});const _0x5167b0=_0xc364d1['descriptionFactory'];_0x5167b0['registerDescriptionCallback'](_0x244427=>{if('insertion'!==_0x244427['type'])return;const {start:_0x401843,end:_0x247459}=_0x244427['getFirstRange']();if(!_0x401843['isTouching'](_0x247459)||!_0x401843['nodeAfter'])return;const _0x43ddc9=_0x3720ac['model']['schema'],_0x7585d5=_0x401843['nodeAfter'];return _0x43ddc9['isBlock'](_0x7585d5)&&!_0x43ddc9['isLimit'](_0x7585d5)&&_0x43ddc9['checkChild'](_0x7585d5,'$text')?{'type':'insertion','content':o(_0x183c48,'*Insert:*\x20%0',_0x5167b0['getItemLabel'](_0x7585d5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c6dd1=this['editor'],_0x4abef1=_0x2c6dd1['locale'];_0x2c6dd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b9acb=>{if('formatBlock'!=_0x4b9acb['type'])return;const {data:_0x39ccfe}=_0x4b9acb;return _0x39ccfe&&'paragraph'==_0x39ccfe['commandName']?{'type':'format','content':o(_0x4abef1,'*Change\x20to:*\x20%0',o(_0x4abef1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4913b9,{showActiveMarker:_0x7a1937=!0x0}={}){return(_0x41da76,_0x15bd19,_0x5d5198)=>{const _0x5eeac4=_0x4913b9['plugins']['get']('TrackChangesEditing'),_0x28def8=_0x15bd19['markerRange']['start'],_0x1fe60f=_0x15bd19['markerRange']['end'],_0x1d539e=_0x4913b9['model']['schema'];if(!_0x28def8['isTouching'](_0x1fe60f)||!_0x28def8['nodeAfter'])return;const _0x18e1c3=_0x28def8['nodeAfter'];if(_0x1d539e['isBlock'](_0x18e1c3)&&!_0x1d539e['isLimit'](_0x18e1c3)&&_0x1d539e['checkChild'](_0x18e1c3,'$text')){if(!_0x5d5198['consumable']['consume'](_0x15bd19['markerRange'],_0x41da76['name']))return;const _0x6aefa9=_0x5d5198['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2605ae=_0x5d5198['mapper']['toViewPosition'](_0x1fe60f);_0x7a1937&&_0x5eeac4['activeMarkers']['includes'](_0x15bd19['markerName'])&&_0x5d5198['writer']['addClass']('ck-suggestion-marker--active',_0x6aefa9),_0x5d5198['writer']['insert'](_0x2605ae,_0x6aefa9),_0x5d5198['mapper']['bindElementToMarker'](_0x6aefa9,_0x15bd19['markerName']);}};}class pt extends _0x4c8a1d{['afterInit'](){const _0x1e6ce8=this['editor'];if(!_0x1e6ce8['plugins']['has']('RemoveFormatEditing'))return;_0x1e6ce8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54e594=this['editor'];_0x54e594['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3006ea=>{if('formatBlock'!=_0x3006ea['type']&&'formatInline'!=_0x3006ea['type'])return;const {data:_0x4c6eab}=_0x3006ea;return _0x4c6eab&&'removeFormat'==_0x4c6eab['commandName']?{'type':'format','content':o(_0x54e594['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4c8a1d{['afterInit'](){const _0x252749=this['editor'];if(!_0x252749['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xcedfd5=_0x252749['plugins']['get']('TrackChangesEditing');_0xcedfd5['enableCommand']('goToPreviousRestrictedEditingException'),_0xcedfd5['enableCommand']('goToNextRestrictedEditingException');const _0x3c8377=_0x252749['plugins']['get']('RestrictedEditingModeEditing');_0x3c8377['enableCommand']('trackChanges'),_0x3c8377['enableCommand']('acceptSuggestion'),_0x3c8377['enableCommand']('discardSuggestion'),_0x3c8377['enableCommand']('acceptAllSuggestions'),_0x3c8377['enableCommand']('discardAllSuggestions'),_0x3c8377['enableCommand']('acceptSelectedSuggestions'),_0x3c8377['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4c8a1d{static get['requires'](){return[_0x30fbb6];}['init'](){const _0x5dc2bf=this['editor'],_0x1f788d=_0x5dc2bf['plugins']['get']('TrackChangesEditing');_0x1f788d['enableCommand']('shiftEnter'),_0x5dc2bf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5dc2bf),{'priority':'high'}),_0x5dc2bf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5dc2bf),{'priority':'high'}),_0x5dc2bf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x261f24,_0x4f029c,_0x271ecc)=>{_0x271ecc['options']['showSuggestionHighlights']&&de(_0x5dc2bf,{'showActiveMarker':!0x1})(_0x261f24,_0x4f029c,_0x271ecc);}),_0x1f788d['descriptionFactory']['registerElementLabel']('softBreak',_0xbeacf7=>o(_0x5dc2bf['locale'],'ELEMENT_LINE_BREAK',_0xbeacf7));}}function de(_0x11137b,{showActiveMarker:_0x10e37f=!0x0}={}){return(_0x449f3f,_0x4cb390,_0x4f330d)=>{const _0x2423c7=_0x11137b['plugins']['get']('TrackChangesEditing');if(!_0x4f330d['consumable']['test'](_0x4cb390['markerRange'],_0x449f3f['name']))return;const _0x10ef73=_0x11137b['model'];for(const _0x414b41 of _0x4cb390['markerRange']['getItems']()){if(!_0x414b41['is']('element','softBreak'))continue;const _0x33da42='deletion'==_0x4cb390['markerName']['split'](':')[0x1]?'merge':'split',_0x2a1afc=_0x4f330d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33da42}),_0x2a63f7=_0x4f330d['mapper']['toViewPosition'](_0x10ef73['createPositionBefore'](_0x414b41));_0x10e37f&&_0x2423c7['activeMarkers']['includes'](_0x4cb390['markerName'])&&_0x4f330d['writer']['addClass']('ck-suggestion-marker--active',_0x2a1afc),_0x4f330d['writer']['insert'](_0x2a63f7,_0x2a1afc),_0x4f330d['mapper']['bindElementToMarker'](_0x2a1afc,_0x4cb390['markerName']);}};}class wt extends _0x4c8a1d{['afterInit'](){const _0x50d6d8=this['editor'],_0x1313e7=_0x50d6d8['model'],_0x1ab464=_0x50d6d8['locale'];if(!_0x50d6d8['plugins']['has']('StandardEditingModeEditing'))return;const _0x2b183f=_0x50d6d8['plugins']['get']('TrackChangesEditing'),_0x28f6f8='restrictedEditingException',_0x41bd3a=_0x50d6d8['commands']['get'](_0x28f6f8);_0x2b183f['enableCommand'](_0x28f6f8,(_0x1ea564,_0x2b455e={})=>{const _0x2fbe37=_0x1313e7['document']['selection'];if(_0x2fbe37['isCollapsed'])return void _0x1ea564(_0x2b455e);const _0x5237b1=void 0x0!==_0x2b455e['forceValue']?_0x2b455e['forceValue']:!_0x41bd3a['value'];_0x1313e7['change'](()=>{const _0x1c3fd6=Array['from'](_0x2fbe37['getRanges']());for(const _0x5d9716 of _0x1c3fd6){const _0x2ef935=_0x5237b1?[_0x5d9716]:io(_0x28f6f8,_0x5d9716,_0x1313e7);for(const _0x9b58d0 of _0x2ef935)_0x2b183f['markInlineFormat'](_0x9b58d0,{'commandName':_0x28f6f8,'commandParams':[{'forceValue':_0x5237b1}]});}});}),_0x2b183f['descriptionFactory']['registerDescriptionCallback'](_0xab54b5=>{if('formatBlock'!=_0xab54b5['type']&&'formatInline'!=_0xab54b5['type'])return;const {data:_0x3b8353}=_0xab54b5;return _0x3b8353&&_0x3b8353['commandName']==_0x28f6f8?_0x3b8353['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ab464,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1ab464,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4c8a1d{['afterInit'](){const _0xea6f13=this['editor'];if(!_0xea6f13['plugins']['has']('Style')||!_0xea6f13['plugins']['has']('DataSchema'))return;const _0xc72a67=_0xea6f13['plugins']['get']('TrackChangesEditing'),_0xe1c73e=_0xea6f13['locale'],_0x34417d=_0xea6f13['config']['get']('style')||{},_0x55bed0=_0xea6f13['plugins']['get']('GeneralHtmlSupport'),_0x943bb9=_0xea6f13['plugins']['get']('StyleUtils')['normalizeConfig'](_0xea6f13['plugins']['get']('DataSchema'),_0x34417d['definitions']);_0xc72a67['enableDefaultAttributesIntegration']('style');const _0x25afd6=new Set();for(const _0x148c64 of _0x943bb9['block']){const _0x65306d=_0x55bed0['getGhsAttributeNameForElement'](_0x148c64['element']);_0x25afd6['add'](_0x65306d);}const _0x19e960=new Set();for(const _0x49b90a of _0x943bb9['inline']){const _0x104d49=_0x55bed0['getGhsAttributeNameForElement'](_0x49b90a['element']);_0x19e960['add'](_0x104d49);for(const _0x476dd4 of _0x49b90a['ghsAttributes'])_0x19e960['add'](_0x476dd4);}for(const _0x3297ee of _0x25afd6)_0xc72a67['registerBlockAttribute'](_0x3297ee),_0xc72a67['descriptionFactory']['registerAttributeLabel'](_0x3297ee,o(_0xe1c73e,'FORMAT_STYLE'));for(const _0x65be30 of _0x19e960)_0xc72a67['registerInlineAttribute'](_0x65be30),_0xc72a67['descriptionFactory']['registerAttributeLabel'](_0x65be30,o(_0xe1c73e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x471ec5=this['editor'],_0x429ab2=_0x471ec5['locale'];_0x471ec5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbe9dad=>{if('formatBlock'!=_0xbe9dad['type']&&'formatInline'!=_0xbe9dad['type'])return;const {data:_0x3eba99}=_0xbe9dad;return _0x3eba99&&'style'===_0x3eba99['commandName']?_0x3eba99['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x429ab2,'*Set\x20format:*\x20%0',_0x3eba99['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x429ab2,'*Remove\x20format:*\x20%0',_0x3eba99['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4c8a1d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ff2db){super(_0x1ff2db),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5dbbc2=this['editor'],_0x56cf73=_0x5dbbc2['model']['document']['selection'];if(!_0x5dbbc2['plugins']['has']('TableEditing'))return;const _0x5795b5=_0x5dbbc2['locale'],_0x36cc3a=_0x5dbbc2['plugins']['get']('TrackChangesEditing'),_0x4b394a=_0x5dbbc2['plugins']['get']('TableUtils');_0x36cc3a['descriptionFactory']['registerElementLabel']('table',_0x318616=>o(_0x5795b5,'ELEMENT_TABLE',_0x318616)),this['_setupColumnsRowsFixing'](),_0x36cc3a['enableCommand']('insertTable'),_0x36cc3a['enableCommand']('selectTableRow'),_0x36cc3a['enableCommand']('selectTableColumn');for(const _0x37408c of['insertTableRowAbove','insertTableRowBelow']){const _0x4ddc35=_0x5dbbc2['commands']['get'](_0x37408c);_0x36cc3a['enableCommand'](_0x37408c,_0x37ccca=>{_0x5dbbc2['model']['change'](_0x21cd4f=>{_0x37ccca();const _0x4a583f='above'===_0x4ddc35['order'],_0xcca4ef=_0x4b394a['getSelectionAffectedTableCells'](_0x56cf73),_0x440fce=_0x4b394a['getRowIndexes'](_0xcca4ef),_0x307458=_0x4a583f?_0x440fce['first']-0x1:_0x440fce['last']+0x1,_0x23ea45=_0xcca4ef[0x0]['findAncestor']('table'),_0x2d2ded=_0x4b394a['createTableWalker'](_0x23ea45,{'startRow':_0x307458,'endRow':_0x307458}),_0x1904c3=Array['from'](_0x2d2ded)['map'](_0x472b54=>_0x21cd4f['createRangeOn'](_0x472b54['cell']));_0x36cc3a['markMultiRangeInsertion'](_0x1904c3,'tableRow');});});}for(const _0x2df292 of['insertTableColumnLeft','insertTableColumnRight']){const _0x53551c=_0x5dbbc2['commands']['get'](_0x2df292);_0x36cc3a['enableCommand'](_0x2df292,_0x46e307=>{_0x5dbbc2['model']['change'](_0x50a627=>{_0x46e307();const _0xf91ff2='left'===_0x53551c['order'],_0xecce95=_0x4b394a['getSelectionAffectedTableCells'](_0x56cf73),_0x14b862=_0x4b394a['getColumnIndexes'](_0xecce95),_0x4c56ef=_0xf91ff2?_0x14b862['first']-0x1:_0x14b862['last']+0x1,_0x273f93=_0xecce95[0x0]['findAncestor']('table'),_0x19cd4b=_0x4b394a['createTableWalker'](_0x273f93,{'startRow':0x0,'column':_0x4c56ef,'includeAllSlots':!0x1}),_0x5d194f=Array['from'](_0x19cd4b)['map'](_0x25dc98=>_0x50a627['createRangeOn'](_0x25dc98['cell']));_0x36cc3a['markMultiRangeInsertion'](_0x5d194f,'tableColumn');});});}for(const _0x3b5f55 of['removeTableRow','removeTableColumn']){const _0x3ccb8b=_0x3b5f55['substr'](0xb),_0x1a9c23=_0x3ccb8b['toLowerCase'](),_0x3863c4=_0x1a9c23['substr'](0x0,0x3)+'span',_0x1162bc='table'+_0x3ccb8b,_0xaef4e7='min'+_0x3ccb8b,_0x626328='max'+_0x3ccb8b;_0x36cc3a['enableCommand'](_0x3b5f55,()=>{_0x5dbbc2['model']['change'](_0x1bb9fb=>{const _0x592548=_0x4b394a['getSelectionAffectedTableCells'](_0x56cf73),_0x5e0657=_0x592548[0x0]['findAncestor']('table');let _0x1a968e;if('removeTableRow'==_0x3b5f55){const _0x42e0d1=_0x4b394a['getRowIndexes'](_0x592548);_0x1a968e={'startRow':_0x42e0d1['first'],'endRow':_0x42e0d1['last'],'includeAllSlots':!0x0};}else{const _0x5b910f=_0x4b394a['getColumnIndexes'](_0x592548);_0x1a968e={'startColumn':_0x5b910f['first'],'endColumn':_0x5b910f['last'],'includeAllSlots':!0x0};}const _0x2b76d5=_0x4b394a['createTableWalker'](_0x5e0657,_0x1a968e),_0x3a060f=Array['from'](_0x2b76d5)['map'](({cell:_0x17dce9})=>_0x17dce9),_0x51ce3f=Ee(_0x3a060f['filter'](_0x146f33=>_0x146f33['hasAttribute'](_0x3863c4))),_0x4d527d=Ee(_0x3a060f['filter'](_0x1701ee=>!_0x1701ee['hasAttribute'](_0x3863c4)))['map'](_0xc02f07=>_0x1bb9fb['createRangeOn'](_0xc02f07)),_0x33e7d8=_0x36cc3a['markMultiRangeDeletion'](_0x4d527d,_0x1162bc);if(_0x33e7d8&&('tableRow'==_0x33e7d8['subType']||'tableColumn'==_0x33e7d8['subType'])){const _0x3dc134=this['_getSuggestionCoords'](_0x33e7d8);for(const _0x37b0c8 of _0x51ce3f){const _0x4a2768=_0x1bb9fb['createRangeOn'](_0x37b0c8),_0x470b89=_0x4b394a['getCellLocation'](_0x37b0c8),_0x16c517=_0x37b0c8['getAttribute'](_0x3863c4)-0x1,_0x16b709=_0x3dc134[_0xaef4e7],_0x43b653=_0x3dc134[_0x626328];_0x16b709<=_0x470b89[_0x1a9c23]&&_0x470b89[_0x1a9c23]+_0x16c517<=_0x43b653&&_0x33e7d8['addRange'](_0x4a2768);}}});});}function _0x1d3f20(_0x5ed364){const _0x3e5b79=Array['from'](_0x56cf73['getRanges']())['map'](_0x1044aa=>_0x4a275c['fromRange'](_0x1044aa));_0x5dbbc2['model']['change'](_0x65577c=>{const _0x5569bc=_0x65577c['batch'];_0x5ed364=_0x5ed364['filter'](_0x3d0c69=>'$graveyard'!=_0x3d0c69['root']['rootName']),_0x65577c['setSelection'](_0x5ed364),_0x5dbbc2['commands']['get']('removeTableRow')['refresh'](),_0x5dbbc2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5dbbc2['model']['enqueueChange'](()=>{_0x5dbbc2['model']['enqueueChange'](_0x5569bc,_0x6a0f39=>{const _0x3a4aa1=_0x3e5b79['filter'](_0x5885d2=>'$graveyard'!=_0x5885d2['root']['rootName']);_0x3a4aa1['length']>0x0&&_0x6a0f39['setSelection'](_0x3a4aa1);for(const _0x1217a1 of _0x3e5b79)_0x1217a1['detach']();});});});}function _0x5f1c7c(_0x49a531){_0x5dbbc2['model']['change'](_0x5ef94e=>{const _0x5b41c4=Array['from'](_0x56cf73['getRanges']())['map'](_0x4c5c77=>_0x4a275c['fromRange'](_0x4c5c77)),_0x100c89=[];for(const _0x307ba4 of _0x49a531)for(const _0x1adb11 of _0x307ba4['getItems']({'shallow':!0x0}))_0x100c89['push'](_0x1adb11);for(const _0x2f9332 of _0x100c89)'$graveyard'!=_0x2f9332['root']['rootName']&&(_0x5ef94e['setSelection'](_0x5ef94e['createPositionAt'](_0x2f9332,0x0)),_0x5dbbc2['commands']['get']('removeTableColumn')['refresh'](),_0x5dbbc2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x587afb=_0x5b41c4['filter'](_0x122fd2=>'$graveyard'!=_0x122fd2['root']['rootName']);_0x587afb['length']>0x0&&_0x5ef94e['setSelection'](_0x587afb);for(const _0x10c201 of _0x5b41c4)_0x10c201['detach']();});}function _0x1ab579(_0x26cdf4,_0xe2d107){return _0xe2d107['every'](_0x509b9e=>_0x26cdf4['some'](_0x59fad4=>_0x59fad4['end']['isEqual'](_0x509b9e['start'])||_0x509b9e['end']['isEqual'](_0x59fad4['start'])));}function _0x409a39(_0x4b31af,_0x2b19ba){return!_0x4b31af['some'](_0x374a87=>_0x2b19ba['some'](_0x3c871d=>_0x374a87['isIntersecting'](_0x3c871d)))&&_0x4b31af['some'](_0x1459a6=>_0x2b19ba['some'](_0xbac2d8=>_0x1459a6['end']['isTouching'](_0xbac2d8['start'])));}_0x5dbbc2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x507053,_0x4f45ce,_0x1171f6)=>{if(!_0x1171f6['options']['showSuggestionHighlights'])return;const _0x55a1b3=_0x4f45ce['item'];if(!_0x55a1b3)return;const _0x1cfec9=_0x1171f6['mapper']['toViewElement'](_0x55a1b3);function _0x4d9892(_0x377ef3){return Array['isArray'](_0x377ef3)?_0x377ef3:[_0x377ef3];}_0x1cfec9&&'tableCell'===_0x55a1b3['name']&&_0x1c61ba(_0x1cfec9,_0x1171f6['writer'],(_0x342de6,_0x3d6477,_0x65073)=>_0x65073['addClass'](_0x4d9892(_0x3d6477['classes']),_0x342de6),(_0x10538b,_0x22f551,_0x465c23)=>_0x465c23['removeClass'](_0x4d9892(_0x22f551['classes']),_0x10538b));},{'priority':'highest'}),_0x36cc3a['descriptionFactory']['registerDescriptionCallback'](_0x3a8f7b=>{if('insertion'!=_0x3a8f7b['type']&&'deletion'!=_0x3a8f7b['type'])return;const _0x3ee778=_0x3a8f7b['getContainedElement']();if(null!=_0x3ee778&&_0x3ee778['is']('element','table')){if('insertion'==_0x3a8f7b['type']){const _0x43993e=_0x3a8f7b['getItems']()['filter'](_0x18950d=>_0x18950d['is']('$textProxy'))['map'](_0x2d18b4=>_0x2d18b4['data']);if(_0x43993e['length'])return{'type':'insertion','content':o(_0x5795b5,'*Insert:*\x20%0',o(_0x5795b5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x43993e['join']('\x20')+'\x22'))};}if('deletion'==_0x3a8f7b['type']){const _0x3e079e=_0x3a8f7b['getItems']()['filter'](_0x5b4845=>_0x5b4845['is']('$textProxy'))['map'](_0x41b178=>_0x41b178['data']);if(_0x3e079e['length'])return{'type':'deletion','content':o(_0x5795b5,'*Remove:*\x20%0',o(_0x5795b5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e079e['join']('\x20')+'\x22'))};}}}),_0x36cc3a['descriptionFactory']['registerDescriptionCallback'](_0x34c793=>{if('tableRow'==_0x34c793['subType']){const _0x2afdd2=_0x34c793['getItems']()['filter'](_0x15a1a0=>_0x15a1a0['is']('$textProxy'))['map'](_0x2ab46a=>_0x2ab46a['data']),_0x2ea889=this['_getSuggestionCoords'](_0x34c793),_0x4eb41b=_0x2ea889['maxRow']-_0x2ea889['minRow']+0x1;if('insertion'==_0x34c793['type'])return _0x2afdd2['length']?{'type':'insertion','content':o(_0x5795b5,'*Insert:*\x20%0',o(_0x5795b5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4eb41b,'\x22'+_0x2afdd2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5795b5,'*Insert:*\x20%0',o(_0x5795b5,'ELEMENT_TABLE_ROW',_0x4eb41b))};if('deletion'==_0x34c793['type'])return _0x2afdd2['length']?{'type':'deletion','content':o(_0x5795b5,'*Remove:*\x20%0',o(_0x5795b5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4eb41b,'\x22'+_0x2afdd2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5795b5,'*Remove:*\x20%0',o(_0x5795b5,'ELEMENT_TABLE_ROW',_0x4eb41b))};}if('tableColumn'==_0x34c793['subType']){const _0x28560f=_0x34c793['getItems']()['filter'](_0x2da791=>_0x2da791['is']('$textProxy'))['map'](_0x4488bd=>_0x4488bd['data']),_0x2da354=this['_getSuggestionCoords'](_0x34c793),_0x2ff2b0=_0x2da354['maxColumn']-_0x2da354['minColumn']+0x1;if('insertion'==_0x34c793['type'])return _0x28560f['length']?{'type':'insertion','content':o(_0x5795b5,'*Insert:*\x20%0',o(_0x5795b5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ff2b0,'\x22'+_0x28560f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5795b5,'*Insert:*\x20%0',o(_0x5795b5,'ELEMENT_TABLE_COLUMN',_0x2ff2b0))};if('deletion'==_0x34c793['type'])return _0x28560f['length']?{'type':'deletion','content':o(_0x5795b5,'*Remove:*\x20%0',o(_0x5795b5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ff2b0,'\x22'+_0x28560f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5795b5,'*Remove:*\x20%0',o(_0x5795b5,'ELEMENT_TABLE_COLUMN',_0x2ff2b0))};}}),_0x36cc3a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1d3f20),_0x36cc3a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1d3f20),_0x36cc3a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5f1c7c),_0x36cc3a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5f1c7c),_0x36cc3a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1ab579),_0x36cc3a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1ab579),_0x36cc3a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x409a39),_0x36cc3a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x409a39);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4d150c=this['editor'],_0x4177f1=_0x4d150c['model']['document']['selection'];return(_0x39d97a,_0x3cb04f)=>{_0x4d150c['model']['change'](_0x5cebea=>{const {commandName:_0x4ee53f,commandParams:_0x556af0}=_0x3cb04f;let _0x49518d=_0x39d97a[0x0]['end']['nodeBefore'];_0x556af0&&_0x556af0[0x0]&&!0x1===_0x556af0[0x0]['forceValue']&&(_0x49518d=_0x39d97a[0x0]['start']['nodeAfter']);const _0x5eb0e5=_0x5cebea['createRangeIn'](_0x49518d);if('$graveyard'==_0x5eb0e5['root']['rootName'])return;const _0x2ed5da=Array['from'](_0x4177f1['getRanges']())['map'](_0x5c8fe9=>_0x4a275c['fromRange'](_0x5c8fe9));_0x5cebea['setSelection'](_0x5eb0e5),_0x4d150c['commands']['get'](_0x4ee53f)['refresh'](),_0x556af0['push']({'forceDefaultExecution':!0x0}),_0x4d150c['execute'](_0x4ee53f,..._0x556af0);const _0x445e37=_0x2ed5da['filter'](_0x4a0864=>'$graveyard'!=_0x4a0864['root']['rootName']);_0x445e37['length']>0x0&&_0x5cebea['setSelection'](_0x445e37);for(const _0x4ed019 of _0x2ed5da)_0x4ed019['detach']();});};}['_getCoordsForCells'](_0x4d01b5){const _0x2d1040=this['editor']['plugins']['get']('TableUtils');let _0x573f09=Number['MAX_SAFE_INTEGER'],_0x26c84f=Number['MIN_SAFE_INTEGER'],_0x590d33=Number['MAX_SAFE_INTEGER'],_0x46b206=Number['MIN_SAFE_INTEGER'];for(const _0x5e6a0f of _0x4d01b5){if('$graveyard'==_0x5e6a0f['root']['rootName'])continue;const {row:_0x303f7f,column:_0x4dd7f7}=_0x2d1040['getCellLocation'](_0x5e6a0f),_0x90996b=_0x5e6a0f['hasAttribute']('rowspan')?_0x5e6a0f['getAttribute']('rowspan')-0x1:0x0,_0x23ae62=_0x5e6a0f['hasAttribute']('colspan')?_0x5e6a0f['getAttribute']('colspan')-0x1:0x0;_0x573f09=_0x303f7f<_0x573f09?_0x303f7f:_0x573f09,_0x26c84f=_0x303f7f+_0x90996b>_0x26c84f?_0x303f7f+_0x90996b:_0x26c84f,_0x590d33=_0x4dd7f7<_0x590d33?_0x4dd7f7:_0x590d33,_0x46b206=_0x4dd7f7+_0x23ae62>_0x46b206?_0x4dd7f7+_0x23ae62:_0x46b206;}return{'minRow':_0x573f09,'maxRow':_0x26c84f,'minColumn':_0x590d33,'maxColumn':_0x46b206};}['_setupColumnsRowsFixing'](){const _0x6474ba=this['editor'],_0x14c5c5=_0x6474ba['plugins']['get']('TrackChangesEditing'),_0xfc55d2=_0x6474ba['plugins']['get']('TableUtils');_0x6474ba['model']['document']['on']('change:data',()=>{const _0x3c1090=Array['from'](_0x6474ba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x499b1f,data:_0xe03e9d}of _0x3c1090){const {group:_0x5b88bb,id:_0x349fa4,subType:_0x144e2e}=_0x14c5c5['_splitMarkerName'](_0x499b1f);if('suggestion'!=_0x5b88bb)continue;if(null!=_0xe03e9d['oldRange'])continue;const _0x12a3e2=_0x14c5c5['getSuggestion'](_0x349fa4);this['_tablePostFixingSubtypes']['includes'](_0x144e2e)&&this['_tableSuggestions']['add'](_0x12a3e2);}},{'priority':'low'});const _0x54e4ba=(_0x12eb30,_0x4f8715)=>{let _0x4f6dc8=!0x1;const _0x3a7a0c=_0x4f8715['createRangeOn'](_0x12eb30),_0x1e72be=_0x12eb30['findAncestor']('table'),_0x266df5=_0xfc55d2['getCellLocation'](_0x12eb30);for(const _0x5fe666 of this['_tableSuggestions']){const _0x231abd=_0x5fe666['subType'],_0x5fd599=_0x231abd['startsWith']('tablePaste'),_0x11ef57=_0x231abd['substr'](_0x5fd599?0xa:0x5),_0x557a9a=_0x11ef57['toLowerCase'](),_0x476228=_0x557a9a['substr'](0x0,0x3)+'span',_0x58bdce='min'+_0x11ef57,_0x2e94b1='max'+_0x11ef57;if(!_0x5fe666['isInContent'])continue;if(_0x1e72be!=_0x5fe666['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5fe666['isIntersectingWithRange'](_0x3a7a0c))continue;const _0x230a72=_0x12eb30['hasAttribute'](_0x476228)?_0x12eb30['getAttribute'](_0x476228)-0x1:0x0,_0x582762=this['_getSuggestionCoords'](_0x5fe666),_0xb5dcf7=_0x582762[_0x58bdce],_0x243809=_0x582762[_0x2e94b1];_0xb5dcf7<=_0x266df5[_0x557a9a]&&_0x266df5[_0x557a9a]+_0x230a72<=_0x243809&&(_0x5fe666['addRange'](_0x3a7a0c),_0x4f6dc8=!0x0);}return _0x4f6dc8;};_0x6474ba['model']['document']['registerPostFixer'](_0x4d8fec=>{let _0x48cd37=!0x1;for(const _0x17b797 of _0x6474ba['model']['document']['differ']['getChanges']())if('insert'==_0x17b797['type']){if('tableRow'==_0x17b797['name']){for(const _0x5d6bc0 of _0x17b797['position']['nodeAfter']['getChildren']())_0x48cd37=_0x48cd37||_0x54e4ba(_0x5d6bc0,_0x4d8fec);}else'tableCell'==_0x17b797['name']&&(_0x48cd37=_0x48cd37||_0x54e4ba(_0x17b797['position']['nodeAfter'],_0x4d8fec));}return _0x48cd37;});}['_getSuggestionCoords'](_0x2e4d81){return this['_getCoordsForCells'](_0x2e4d81['getRanges']()['map'](_0x3e0108=>_0x3e0108['start']['nodeAfter']));}}function Ee(_0x22344f){return Array['from'](new Set(_0x22344f)['values']());}class St extends _0x4c8a1d{static get['requires'](){return[jt];}['afterInit'](){const _0x34f9c4=this['editor'],_0x3fd31b=_0x34f9c4['model']['document']['selection'],_0x1085db=_0x34f9c4['locale'];if(!_0x34f9c4['plugins']['has']('TableEditing'))return;const _0x28d6b2=_0x34f9c4['plugins']['get']('TrackChangesEditing'),_0xc0f751=_0x34f9c4['plugins']['get']('TableUtils'),_0x1b4b12=_0x34f9c4['plugins']['get'](jt);_0x1b4b12['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28d6b2['enableCommand']('mergeTableCells',()=>{const _0x2e2fe4=_0xc0f751['getSelectionAffectedTableCells'](_0x34f9c4['model']['document']['selection']);_0x34f9c4['model']['change'](()=>{_0x28d6b2['markMultiRangeBlockFormat'](_0x2e2fe4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x34f9c4['commands']['get']('mergeTableCells')['on']('execute',(_0x43b944,_0x1f75a6)=>{_0x34f9c4['commands']['get']('trackChanges')['value']&&(_0x1f75a6['length']>0x0&&_0x1f75a6[_0x1f75a6['length']-0x1]&&_0x1f75a6[_0x1f75a6['length']-0x1]['forceDefaultExecution']||_0x28d6b2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x43b944['stop']());},{'priority':'highest'});for(const _0x1fccc7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x903d79=_0x34f9c4['commands']['get'](_0x1fccc7);_0x28d6b2['enableCommand'](_0x1fccc7,()=>{const _0x40e0b6=_0x34f9c4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x693117=>_0x693117['is']('element','tableCell')),_0x2d1947=_0x903d79['value'];_0x34f9c4['model']['change'](()=>{_0x28d6b2['markMultiRangeBlockFormat']([_0x40e0b6,_0x2d1947],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x249e43 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x46d5d2=_0x34f9c4['commands']['get'](_0x249e43);_0x28d6b2['enableCommand'](_0x249e43,()=>{const _0x47c41e=_0xc0f751['getSelectionAffectedTableCells'](_0x34f9c4['model']['document']['selection'])[0x0],_0x4aa134=_0x47c41e['findAncestor']('table'),{column:_0x39ca02,row:_0x3ccd01}=_0xc0f751['getCellLocation'](_0x47c41e);let _0x34bc86=[];if('horizontally'==_0x46d5d2['direction']){const _0x158cef=_0xc0f751['createTableWalker'](_0x4aa134,{'startRow':_0x3ccd01,'endRow':_0x3ccd01,'includeAllSlots':!0x0});_0x34bc86=Array['from'](_0x158cef)['map'](_0x1b1bf3=>_0x1b1bf3['cell']);}else{const _0x5ed495=_0xc0f751['createTableWalker'](_0x4aa134,{'column':_0x39ca02,'includeAllSlots':!0x0});_0x34bc86=Array['from'](_0x5ed495)['map'](_0x294016=>_0x294016['cell']);}_0x34f9c4['model']['change'](_0x24158b=>{_0x28d6b2['markBlockFormat'](_0x24158b['createRangeOn'](_0x47c41e),{'commandName':_0x249e43,'commandParams':[]},_0x34bc86,_0x249e43);});});}_0x28d6b2['descriptionFactory']['registerDescriptionCallback'](_0x18cef3=>{if('formatBlock'!=_0x18cef3['type']&&'formatInline'!=_0x18cef3['type'])return;const {data:_0x15b1e3}=_0x18cef3;return _0x15b1e3&&'mergeTableCells'==_0x15b1e3['commandName']?{'type':'format','content':o(_0x1085db,'*Merge\x20cells*')}:void 0x0;}),_0x28d6b2['descriptionFactory']['registerDescriptionCallback'](_0x425bb7=>{if('formatBlock'!=_0x425bb7['type']&&'formatInline'!=_0x425bb7['type'])return;const {data:_0x4837cb}=_0x425bb7;return _0x4837cb?'splitTableCellVertically'==_0x4837cb['commandName']?{'type':'format','content':o(_0x1085db,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4837cb['commandName']?{'type':'format','content':o(_0x1085db,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x104d10=_0x1b4b12['_acceptFormatSuggestionCallbackFactory']();for(const _0x3dcfd7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28d6b2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3dcfd7,'accept',_0x104d10);for(const _0x388ec2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x28d6b2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x388ec2,'accept',_0x104d10);_0x28d6b2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x33590b=>{_0x34f9c4['model']['change'](_0x3ba9f1=>{const _0x2712a3=Array['from'](_0x3fd31b['getRanges']())['map'](_0x1de3b9=>_0x4a275c['fromRange'](_0x1de3b9));_0x3ba9f1['setSelection'](_0x33590b),_0x34f9c4['commands']['get']('mergeTableCells')['refresh'](),_0x34f9c4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x237ee0=_0x2712a3['filter'](_0x421f8e=>'$graveyard'!=_0x421f8e['root']['rootName']);_0x237ee0['length']>0x0&&_0x3ba9f1['setSelection'](_0x237ee0);for(const _0x3e261b of _0x2712a3)_0x3e261b['detach']();});});for(const _0x485783 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4247d2=_0x34f9c4['commands']['get'](_0x485783);_0x4247d2['on']('set:isEnabled',(_0x429f65,_0x150da4,_0x3a51a9)=>{if(_0x3a51a9){const _0x4ccfda=_0x34f9c4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x182b78=>_0x182b78['is']('element','tableCell'));this['_areMergableCells'](_0x4247d2['value'],_0x4ccfda)||(_0x429f65['return']=!0x1,_0x429f65['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4e1df8=this['editor']['commands']['get']('mergeTableCells'),_0x399ff2=this['editor']['plugins']['get']('TableUtils');if(!_0x4e1df8['isEnabled'])return!0x1;const _0x465cf0=_0x399ff2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b371e of _0x465cf0)for(const _0x1969b1 of _0x465cf0)if(_0x2b371e!=_0x1969b1&&!this['_areMergableCells'](_0x2b371e,_0x1969b1))return!0x1;return!0x0;}['_areMergableCells'](_0x375449,_0x16b178){const _0x464588=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35b3b0=this['editor']['model']['createRangeOn'](_0x375449),_0x415307=this['editor']['model']['createRangeOn'](_0x16b178),_0x317c8b=new Set(),_0x4d3249=new Set();for(const _0x37da28 of _0x464588['getSuggestions']())if(('insertion'==_0x37da28['type']||'deletion'==_0x37da28['type']||'mergeTableCells'==_0x37da28['subType'])&&_0x37da28['isInContent']){for(const _0x5e21dc of _0x37da28['getRanges']())_0x5e21dc['containsRange'](_0x35b3b0,!0x0)&&_0x317c8b['add'](_0x37da28['type']+':'+_0x37da28['author']['id']),_0x5e21dc['containsRange'](_0x415307,!0x0)&&_0x4d3249['add'](_0x37da28['type']+':'+_0x37da28['author']['id']);}if(_0x317c8b['size']!=_0x4d3249['size'])return!0x1;for(const _0x162131 of _0x317c8b)if(!_0x4d3249['has'](_0x162131))return!0x1;return!0x0;}}class At extends _0x4c8a1d{static get['requires'](){return[jt];}['afterInit'](){const _0x4f2e69=this['editor'];if(!_0x4f2e69['plugins']['has']('TableEditing'))return;const _0x57dee8=_0x4f2e69['locale'],_0x2e9f66=_0x4f2e69['plugins']['get']('TrackChangesEditing');_0x2e9f66['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2e9f66['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2e9f66['registerBlockAttribute']('headingRows'),_0x2e9f66['registerBlockAttribute']('headingColumns'),_0x2e9f66['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x57dee8,'FORMAT_HEADER_ROW')),_0x2e9f66['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x57dee8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1bc5de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27b01c=this['editor']['plugins']['get']('TableUtils'),_0x126de7=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1bee1b({showActiveMarker:_0x140611=!0x0,setDataAttribute:_0x3e6319=!0x0}={}){return(_0x604b23,_0x564ea9,_0x10aafe)=>{const {type:_0x1771d2,id:_0x35da86}=_0x1bc5de['_splitMarkerName'](_0x564ea9['markerName']),_0x320f4b=_0x1bc5de['getSuggestion'](_0x35da86),_0x44312c=_0x320f4b['data'];if('formatBlock'!=_0x320f4b['type']||!_0x44312c||'setTableColumnHeader'!=_0x44312c['commandName'])return;if(_0x564ea9['item'])return void _0x604b23['stop']();if(!_0x10aafe['consumable']['consume'](_0x564ea9['markerRange'],_0x604b23['name']))return;const _0x5c35e4=_0x564ea9['markerRange']['start']['nodeAfter'],_0x5dd6e3=_0x564ea9['markerRange']['end']['nodeBefore'],_0x1491ab=_0x5c35e4['parent']['parent'],{column:_0x323695}=_0x27b01c['getCellLocation'](_0x5c35e4),{column:_0x525298}=_0x27b01c['getCellLocation'](_0x5dd6e3);for(let _0x2da571=_0x323695;_0x2da571<=_0x525298;_0x2da571++){const _0xb1884c=_0x27b01c['createTableWalker'](_0x1491ab,{'column':_0x2da571,'includeAllSlots':!0x1});for(const _0x5206e4 of _0xb1884c){const _0x19a048=_0x5206e4['cell'],_0x4b728f=_0x10aafe['mapper']['toViewElement'](_0x19a048);_0x10aafe['writer']['addClass']('ck-suggestion-marker-'+_0x1771d2,_0x4b728f),_0x3e6319&&_0x10aafe['writer']['setAttribute']('data-suggestion',_0x35da86,_0x4b728f),_0x10aafe['mapper']['bindElementToMarker'](_0x4b728f,_0x564ea9['markerName']),_0x140611&&(_0x1bc5de['activeMarkers']['includes'](_0x564ea9['markerName'])?_0x10aafe['writer']['addClass']('ck-suggestion-marker--active',_0x4b728f):_0x10aafe['writer']['removeClass']('ck-suggestion-marker--active',_0x4b728f));}}};}_0x1bc5de['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x126de7),_0x1bc5de['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x126de7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1bee1b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x587901,_0x537c1b,_0x3cf019)=>{_0x3cf019['options']['showSuggestionHighlights']&&_0x1bee1b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x587901,_0x537c1b,_0x3cf019);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x25e2f8,_0x41ff43,_0x506f2f)=>{const {type:_0x14f985,id:_0x189e62}=_0x1bc5de['_splitMarkerName'](_0x41ff43['markerName']),_0x1e7073=_0x1bc5de['getSuggestion'](_0x189e62),_0x213226=_0x1e7073['data'];if('formatBlock'!=_0x1e7073['type']||!_0x213226||'setTableColumnHeader'!=_0x213226['commandName'])return;const _0xcaa6ff=_0x506f2f['mapper']['markerNameToElements'](_0x41ff43['markerName']);if(_0xcaa6ff){for(const _0x2d1fe3 of _0xcaa6ff)_0x506f2f['writer']['removeClass']('ck-suggestion-marker-'+_0x14f985,_0x2d1fe3),_0x506f2f['writer']['removeClass']('ck-suggestion-marker--active',_0x2d1fe3),_0x506f2f['writer']['removeAttribute']('data-suggestion',_0x2d1fe3),_0x506f2f['mapper']['unbindElementFromMarkerName'](_0x2d1fe3,_0x41ff43['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15af13=this['editor'],_0x30e1c2=_0x15af13['locale'];function _0x49b990(_0x5381ed){return{'type':'format','content':o(_0x30e1c2,'*Format:*\x20%0',_0x5381ed)};}_0x15af13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e6641=>{if('formatBlock'!=_0x3e6641['type'])return;const {data:_0x32122e}=_0x3e6641;if(_0x32122e){if('setTableRowHeader'==_0x32122e['commandName']){const _0x332f14=_0x32122e['commandParams'][0x0]['forceValue'];return _0x49b990(o(_0x30e1c2,_0x332f14?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x32122e['commandName']){const _0xcda29d=_0x32122e['commandParams'][0x0]['forceValue'];return _0x49b990(o(_0x30e1c2,_0xcda29d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x38ba38=>[_0x38ba38,null]));class It extends _0x4c8a1d{static get['requires'](){return[jt];}['afterInit'](){const _0x511d99=this['editor'];if(!_0x511d99['plugins']['has']('TableClipboard'))return;const _0x1de5cc=_0x511d99['plugins']['get']('TrackChangesEditing'),_0x36e38a=_0x511d99['plugins']['get']('TableUtils'),_0x52e198=_0x511d99['plugins']['get'](jt),_0x536add=_0x511d99['plugins']['get']('TableClipboard');_0x52e198['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x511d99['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x511d99['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x53c430=null;_0x511d99['model']['on']('insertContent',(_0x562ca4,_0x555275)=>{const [_0x22e4c8,_0x524104]=_0x555275,_0x30edca=_0x555275[_0x555275['length']-0x1];_0x30edca&&_0x30edca['forceDefaultExecution']||_0x1de5cc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x27f11f,_0x130009,_0x224e20,_0x2a917f,_0x6a58f9){if(_0x130009&&!_0x130009['is']('documentSelection'))return!0x1;const _0x4cb1ed=_0x6a58f9['getTableIfOnlyTableInContent'](_0x27f11f,_0x224e20);if(!_0x4cb1ed||!he(_0x4cb1ed,void 0x0,_0x2a917f))return!0x1;const _0x2d6c54=_0x2a917f['getSelectionAffectedTableCells'](_0x224e20['document']['selection']);if(!_0x2d6c54['length'])return!0x1;const _0x487777=_0x2d6c54[0x0]['findAncestor']('table'),_0x535618=_0x2a917f['getRowIndexes'](_0x2d6c54),_0xafc888=_0x2a917f['getColumnIndexes'](_0x2d6c54),_0x543a6f={'startRow':_0x535618['first'],'endRow':_0x535618['last'],'startColumn':_0xafc888['first'],'endColumn':_0xafc888['last']};return 0x1==_0x2d6c54['length']&&(_0x543a6f['endRow']+=_0x2a917f['getRows'](_0x4cb1ed)-0x1,_0x543a6f['endColumn']+=_0x2a917f['getColumns'](_0x4cb1ed)-0x1),he(_0x487777,_0x543a6f,_0x2a917f);}(_0x22e4c8,_0x524104,_0x511d99['model'],_0x36e38a,_0x536add)&&(_0x562ca4['stop'](),_0x53c430={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x511d99['model']['change'](()=>{_0x511d99['model']['insertContent'](_0x555275[0x0],_0x555275[0x1],_0x555275[0x2],{'forceDefaultExecution':!0x0});const _0x496241=_0x282b27(),{rowInsertionRanges:_0x5dfbed,columnInsertionRanges:_0x3fc48e,insertionRanges:_0x302984,deletionRanges:_0x12f459,cells:_0x53b48e}=_0x53c430;_0x5dfbed['length']&&_0x1de5cc['markMultiRangeInsertion'](_0x5dfbed,'tablePasteRow',{'tablePasteChainId':_0x496241}),_0x3fc48e['length']&&_0x1de5cc['markMultiRangeInsertion'](_0x3fc48e,'tablePasteColumn',{'tablePasteChainId':_0x496241}),_0x302984['length']&&(_0x1de5cc['markMultiRangeInsertion'](_0x302984,'tablePaste',{'tablePasteChainId':_0x496241,'skipNestingCheck':!0x0}),_0x302984['forEach'](_0x3f3636=>_0x3f3636['detach']?.())),_0x12f459['length']&&(_0x1de5cc['markMultiRangeDeletion'](_0x12f459,'tablePaste',{'tablePasteChainId':_0x496241,'skipNestingCheck':!0x0}),_0x12f459['forEach'](_0x4b326d=>_0x4b326d['detach']?.()));const _0xcf2ef5=_0x1de5cc['markMultiRangeBlockFormat'](_0x53b48e['map'](({element:_0x40b8fc})=>_0x40b8fc),{'formatGroupId':_0x282b27()},[],'tablePasteCell',{'tablePasteChainId':_0x496241});if(_0xcf2ef5){const _0x219e7b=_0xcf2ef5['getMarkers'](),_0x29a6f2=[];for(const {element:_0x2aa392,attributes:_0x5a6c0d}of _0x53b48e){if(!_0x5a6c0d)continue;const _0x37ab2a=_0x511d99['model']['createRangeOn'](_0x2aa392),_0x513a68=_0x219e7b['find'](_0xb78dbb=>_0xb78dbb['getRange']()['isEqual'](_0x37ab2a));_0x513a68&&_0x29a6f2['push']([_0x513a68['name'],_0x5a6c0d]);}_0x29a6f2['length']&&_0xcf2ef5['setAttribute']('markerAttributes',Object['fromEntries'](_0x29a6f2));}_0x53c430=null;}));},{'priority':_0x521d0d['high']+0xa}),_0x511d99['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4cc9a6,_0x8cbbcf)=>{const [_0x3f5bd8,_0x5a646c,,_0x135a9f]=_0x8cbbcf;if(!_0x53c430)return;_0x4cc9a6['stop']();const _0x486771=_0x3f5bd8['cell'],_0x421752=_0x5a646c,_0x10c5aa=Pe(_0x486771),_0x46ed6a=Pe(_0x421752);_0x4cc9a6['return']=_0x486771;let _0x1e4345=null,_0x55692a=null;if(_0x46ed6a||_0x10c5aa){if(_0x10c5aa&&!_0x46ed6a){_0x135a9f['remove'](_0x486771['getChild'](0x0));for(const _0x4cf1b1 of Array['from'](_0x421752['getChildren']()))_0x135a9f['insert'](_0x4cf1b1,_0x486771,'end');const _0x151527=_0x53c430['rowInsertionIndexes']['includes'](_0x3f5bd8['row']),_0x5b67af=_0x53c430['columnInsertionIndexes']['includes'](_0x3f5bd8['column']);_0x151527||_0x5b67af||(_0x1e4345=_0x4a275c['fromRange'](_0x135a9f['createRangeIn'](_0x486771)));}else _0x46ed6a&&!_0x10c5aa&&(_0x55692a=_0x135a9f['createRangeIn'](_0x486771));}else{const _0x2dae62=_0x135a9f['createElement']('tableCellSuggestion'),_0x4328a2=_0x135a9f['createElement']('tableCellSuggestion');_0x135a9f['wrap'](_0x135a9f['createRangeIn'](_0x486771),_0x4328a2),_0x135a9f['insert'](_0x2dae62,_0x486771,0x0);for(const _0x208d66 of Array['from'](_0x421752['getChildren']()))_0x135a9f['insert'](_0x208d66,_0x2dae62,'end');_0x1e4345=_0x4a275c['fromRange'](_0x135a9f['createRangeOn'](_0x2dae62)),_0x55692a=_0x4a275c['fromRange'](_0x135a9f['createRangeOn'](_0x4328a2));}const _0x3172a3=Array['from'](_0x421752['getAttributes']())['filter'](([_0x52066e])=>ge['includes'](_0x52066e));_0x53c430['cells']['push']({'element':_0x486771,'attributes':_0x3172a3['length']?Object['fromEntries'](_0x3172a3):null}),_0x1e4345&&_0x53c430['insertionRanges']['push'](_0x1e4345),_0x55692a&&_0x53c430['deletionRanges']['push'](_0x55692a);},{'priority':'high'}),_0x36e38a['on']('insertColumns',(_0x427774,_0x56678b)=>{const [_0x6d6051,_0x4770a6={}]=_0x56678b;if(!_0x53c430)return;const _0x128fcb=_0x4770a6['at']||0x0,_0x195fec=_0x4770a6['columns']||0x1;_0x53c430['columnInsertionIndexes']=new Array(_0x195fec)['fill'](_0x128fcb)['map']((_0x41c088,_0x49584)=>_0x41c088+_0x49584);for(const {cell:_0xb612cb}of _0x36e38a['createTableWalker'](_0x6d6051,{'startColumn':_0x128fcb,'endColumn':_0x128fcb+_0x195fec-0x1}))_0x53c430['columnInsertionRanges']['push'](_0x511d99['model']['createRangeOn'](_0xb612cb));},{'priority':'low'}),_0x36e38a['on']('insertRows',(_0x26578e,_0x5eb213)=>{const [_0x11fa5a,_0x53436b={}]=_0x5eb213;if(!_0x53c430)return;const _0x3bc001=_0x53436b['at']||0x0,_0x2f803a=_0x53436b['rows']||0x1;_0x53c430['rowInsertionIndexes']=new Array(_0x2f803a)['fill'](_0x3bc001)['map']((_0x2c9252,_0x2122e2)=>_0x2c9252+_0x2122e2);for(const {cell:_0x5cbb85}of _0x36e38a['createTableWalker'](_0x11fa5a,{'startRow':_0x3bc001,'endRow':_0x3bc001+_0x2f803a-0x1}))_0x53c430['rowInsertionRanges']['push'](_0x511d99['model']['createRangeOn'](_0x5cbb85));},{'priority':'low'}),_0x1de5cc['descriptionFactory']['registerDescriptionCallback'](_0x50ab8a=>{if(_0x50ab8a['subType']&&_0x50ab8a['subType']['startsWith']('tablePaste'))return _0x50ab8a['previous']?{}:{'type':'insertion','content':o(_0x511d99['locale'],'*Replace\x20table\x20cells*')};});const _0x18251e=()=>!0x1;for(const _0x968a51 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1de5cc['_suggestionFactory']['registerCustomCallback']('insertion',_0x968a51,'join',_0x18251e),_0x1de5cc['_suggestionFactory']['registerCustomCallback']('deletion',_0x968a51,'join',_0x18251e),_0x1de5cc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x968a51,'join',_0x18251e);_0x1de5cc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x18251e),_0x1de5cc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x6879b9,_0x248a04,_0x19f806)=>{const _0x3bd523=_0x6879b9['map'](_0x51cd16=>_0x51cd16['getContainedElement']())['filter'](_0x23bf58=>_0x23bf58),_0x174835=new Map(_0x3bd523['map'](_0x324140=>[_0x324140,null]));if(_0x53c430){for(const {element:_0x5f280a,attributes:_0x235780}of _0x53c430['cells'])_0x235780&&_0x174835['set'](_0x5f280a,_0x235780);}else{if(_0x19f806&&_0x19f806['markerAttributes'])for(const [_0x5233ce,_0x187b1b]of Object['entries'](_0x19f806['markerAttributes'])){const _0x4b1fa1=_0x511d99['model']['markers']['get'](_0x5233ce),_0x201b8d=_0x4b1fa1?_0x4b1fa1['getRange']()['getContainedElement']():null;_0x201b8d&&_0x174835['set'](_0x201b8d,_0x187b1b);}}_0x511d99['model']['change'](_0x42eff0=>{for(const [_0x1e28cf,_0xff0d57]of _0x174835)_0x42eff0['setAttributes']({...Ce,..._0xff0d57},_0x1e28cf);});});const _0x13dfbb=(_0x4273d8,_0x26ade3)=>{_0x1de5cc['_suggestionFactory']['registerCustomCallback'](_0x4273d8,'tablePaste',_0x26ade3,(_0x3d76e6,_0x26eaf8,_0x2a0c56)=>{_0x511d99['model']['change'](_0x317989=>{const _0x54df82=[];for(const _0x53ce69 of _0x3d76e6){const _0x3d236d=_0x53ce69['start']['nodeAfter'];_0x3d236d['is']('element','tableCellSuggestion')&&_0x54df82['push'](_0x3d236d);}_0x1de5cc['_suggestionFactory']['getSuggestionCallback'](_0x4273d8,null,_0x26ade3)(_0x3d76e6,_0x26eaf8,_0x2a0c56);for(const _0x211a7d of _0x54df82)'$graveyard'!=_0x211a7d['root']['rootName']&&_0x317989['unwrap'](_0x211a7d);});});};_0x13dfbb('insertion','accept'),_0x13dfbb('insertion','discard'),_0x13dfbb('deletion','accept'),_0x13dfbb('deletion','discard'),_0x1de5cc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x451c27=>{const _0x4c3697=_0x451c27['map'](_0x5acbb5=>_0x5acbb5['getContainedElement']()),_0x49f842=_0x4c3697[0x0]['findAncestor']('table'),{minRow:_0x2eb04e,maxRow:_0x455b2c}=_0x52e198['_getCoordsForCells'](_0x4c3697);_0x36e38a['removeRows'](_0x49f842,{'at':_0x2eb04e,'rows':_0x455b2c-_0x2eb04e+0x1});}),_0x1de5cc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xa575c8=>{const _0x5178f7=_0xa575c8['map'](_0x439059=>_0x439059['getContainedElement']()),_0x1b54fe=_0x5178f7[0x0]['findAncestor']('table'),{minColumn:_0x56387a,maxColumn:_0xc0f485}=_0x52e198['_getCoordsForCells'](_0x5178f7);_0x36e38a['removeColumns'](_0x1b54fe,{'at':_0x56387a,'columns':_0xc0f485-_0x56387a+0x1});});const _0x8938c4=(_0x58108b,_0x4569ad)=>{if(!_0x4569ad['subType']||!_0x4569ad['subType']['startsWith']('tablePaste'))return;const _0x42eed2=_0x4569ad['attributes']['tablePasteChainId'],_0x413def=_0x1de5cc['getSuggestions']()['filter'](_0x36cac0=>_0x36cac0['isInContent']&&_0x36cac0['attributes']&&_0x36cac0['attributes']['tablePasteChainId']==_0x42eed2);_0x413def['length']&&_0x4569ad['getAllAdjacentSuggestions']()['length']!=_0x413def['length']&&_0x413def['reduce']((_0x38c49a,_0x53d817)=>(_0x38c49a['next']=_0x53d817,_0x53d817['previous']=_0x38c49a,_0x53d817));};function _0xf5570a(_0x48f7d3,_0x4bb37c=!0x0){const {id:_0x3cbb9c}=_0x1de5cc['_splitMarkerName'](_0x48f7d3['markerName']),_0x225078=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x13555e=_0x1de5cc['activeMarkers']['includes'](_0x48f7d3['markerName']);return _0x13555e&&_0x225078['push']('ck-suggestion-marker--active'),{'classes':_0x225078,'attributes':{'data-suggestion':_0x3cbb9c},'priority':_0x13555e&&_0x4bb37c?0xbc2:0xbb8};}_0x1de5cc['on']('suggestionLoaded',_0x8938c4,{'priority':'high'}),_0x1de5cc['on']('suggestionUnloaded',_0x8938c4,{'priority':'high'}),_0x511d99['model']['document']['registerPostFixer'](()=>{let _0x3559d8=!0x1;const _0x347544=Array['from'](_0x511d99['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14e6db,data:_0x3c3bd0}of _0x347544){const {group:_0x3344af,type:_0x4a029b,id:_0x235913}=_0x1de5cc['_splitMarkerName'](_0x14e6db);if('suggestion'!=_0x3344af||'deletion'!=_0x4a029b||_0x3c3bd0['oldRange'])continue;if(!_0x1de5cc['hasSuggestion'](_0x235913))continue;const _0x12cab3=_0x1de5cc['getSuggestion'](_0x235913)['getRanges'](),_0x5d112d=_0x511d99['plugins']['get']('Users')['me'];for(const _0x475121 of _0x1de5cc['getSuggestions']()){if(!_0x475121['isInContent']||_0x475121['author']!=_0x5d112d)continue;if('formatBlock'!=_0x475121['type']||'tablePasteCell'!=_0x475121['subType'])continue;if(_0x475121['getRanges']()['every'](_0xa9b09e=>_0x12cab3['some'](_0x54bcae=>_0x54bcae['containsRange'](_0xa9b09e,!0x0)))){for(const _0xc4a8f2 of _0x475121['getAllAdjacentSuggestions']())_0xc4a8f2['isInContent']&&(_0xc4a8f2['discard'](),_0x3559d8=!0x0);}}}return _0x3559d8;}),_0x511d99['model']['document']['registerPostFixer'](_0x1e6cbb=>{const _0x30a3e9=_0x511d99['commands']['get']('redo');if(!_0x30a3e9||!_0x30a3e9['_createdBatches']['has'](_0x1e6cbb['batch']))return!0x1;let _0x3a3b82=!0x1;const _0x3bc676=_0x511d99['plugins']['get']('Users')['me'],_0x2ea9c6=_0x511d99['model']['document']['differ']['getChanges'](),_0x539d0a=Array['from'](_0x511d99['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x9ce3b2,data:_0x195f7c})=>{const {group:_0xd220d1,subType:_0x166648,authorId:_0x4fafa9}=_0x1de5cc['_splitMarkerName'](_0x9ce3b2);return'suggestion'==_0xd220d1&&'tablePaste'==_0x166648&&_0x4fafa9==_0x3bc676['id']&&!_0x195f7c['oldRange'];});for(const _0x220265 of _0x2ea9c6){if('insert'!=_0x220265['type']||'tableCellSuggestion'!=_0x220265['name']||0x1!=_0x220265['length'])continue;const _0x251bb8=_0x1e6cbb['createRange'](_0x220265['position'],_0x220265['position']['getShiftedBy'](0x1));if(!_0x539d0a['find'](({data:_0x2a03d4})=>_0x2a03d4['newRange']['isEqual'](_0x251bb8))){for(const {name:_0x429889,data:_0x2b7ba1}of _0x539d0a)if(_0x251bb8['containsRange'](_0x2b7ba1['newRange'])){_0x1e6cbb['updateMarker'](_0x429889,{'range':_0x251bb8}),_0x3a3b82=!0x0;break;}}}return _0x3a3b82;}),_0x511d99['model']['document']['registerPostFixer'](_0x38110e=>{let _0x1a7d97=!0x1;const _0x5caa52=_0x511d99['plugins']['get']('Users')['me'],_0x35beb3=_0x1de5cc['getSuggestions']()['filter'](_0x4e39b3=>_0x4e39b3['isInContent']&&_0x4e39b3['author']==_0x5caa52),_0x587eac=new Set(),_0x5bbc50=new Set();for(const _0x72efc2 of _0x35beb3)if('tablePaste'==_0x72efc2['subType'])for(const _0x4aa545 of _0x72efc2['getMarkers']()){const _0x277690=_0x4aa545['getRange']()['getContainedElement']();if(_0x277690){if(_0x277690['is']('element','tableCellSuggestion')&&Pe(_0x277690)){_0x72efc2['removeMarker'](_0x4aa545['name']),_0x587eac['add'](_0x277690),_0x1a7d97=!0x0;const _0x5ce649=_0x277690['nextSibling'],_0x303639=_0x277690['previousSibling'],_0x2a64b8=_0x5ce649&&_0x5ce649['is']('element','tableCellSuggestion'),_0x1d20a7=_0x303639&&_0x303639['is']('element','tableCellSuggestion');_0x2a64b8&&!_0x587eac['has'](_0x5ce649)&&_0x5bbc50['add'](_0x5ce649),_0x1d20a7&&!_0x587eac['has'](_0x303639)&&_0x5bbc50['add'](_0x303639);}else _0x277690['is']('element','paragraph')&&_0x277690['isEmpty']&&(_0x72efc2['removeMarker'](_0x4aa545['name']),_0x1a7d97=!0x0);}}else{if('tablePasteCell'==_0x72efc2['subType']){if(!_0x72efc2['attributes']||!_0x72efc2['attributes']['tablePasteChainId'])continue;const _0x27a57d=_0x72efc2['attributes']['markerAttributes'];if(_0x27a57d&&Object['keys'](_0x27a57d)['length'])continue;const _0x5b1a2b=_0x72efc2['attributes']['tablePasteChainId'];let _0x3197ef=!0x0,_0x5878e6=!0x0;for(const _0x4dfb9a of _0x35beb3)if(_0x4dfb9a['subType']&&_0x4dfb9a['subType']['startsWith']('tablePaste')){if(!_0x4dfb9a['attributes']['tablePasteChainId']){_0x5878e6=!0x1;break;}if(_0x4dfb9a['id']!=_0x72efc2['id']&&_0x4dfb9a['attributes']['tablePasteChainId']==_0x5b1a2b){_0x3197ef=!0x1;break;}}_0x5878e6&&_0x3197ef&&(_0x72efc2['removeMarkers'](),_0x1a7d97=!0x0);}}for(const _0x519b48 of _0x587eac)_0x38110e['remove'](_0x519b48);for(const _0x5eda04 of _0x5bbc50)_0x38110e['unwrap'](_0x5eda04);return _0x1a7d97;}),_0x511d99['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x8f531e,_0x4af6c5)=>_0xf5570a(_0x8f531e),'converterPriority':'high'}),_0x511d99['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2437ab,_0x439379)=>_0x439379['options']['showSuggestionHighlights']?_0xf5570a(_0x2437ab,!0x1):null,'converterPriority':'high'});const _0x4185cf=_0x511d99['editing']['view'];this['listenTo'](_0x4185cf['document'],'clipboardOutput',(_0x4de436,_0x3c99ac)=>{const _0x55ad6d=[];for(const _0x16f0ee of _0x4185cf['createRangeIn'](_0x3c99ac['content'])['getItems']())_0x16f0ee['is']('element','suggestion-td')&&_0x55ad6d['push'](_0x16f0ee);_0x4185cf['change'](_0x5bfcde=>{for(const _0x3a69c1 of _0x55ad6d)_0x5bfcde['move'](_0x5bfcde['createRangeIn'](_0x3a69c1),_0x5bfcde['createPositionBefore'](_0x3a69c1)),_0x5bfcde['remove'](_0x3a69c1);});});}}function Pe(_0x58c96e){if(_0x58c96e['isEmpty'])return!0x0;const _0x2d7044=_0x58c96e['getChild'](0x0);return _0x2d7044['is']('element','paragraph')&&_0x2d7044['isEmpty'];}function he(_0x3a5cd7,_0x1b4aba={},_0x369191){for(const {isAnchor:_0x3a6b30,cellHeight:_0x287a24,cellWidth:_0x542eff}of _0x369191['createTableWalker'](_0x3a5cd7,{'includeAllSlots':!0x0,..._0x1b4aba}))if(!_0x3a6b30||0x1!=_0x287a24||0x1!=_0x542eff)return!0x1;return!0x0;}class vt extends _0x4c8a1d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4e0b3b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e0b3b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4e0b3b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4e0b3b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e0b3b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4e0b3b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4e0b3b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2ded32,_0x4a6fef){const _0x37fb53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a1ef5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x288283=_0x4a6fef['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x241583=_0x4a1ef5['getColumnGroupElement'](_0x288283);let _0x48bea9=_0x241583?_0x4a1ef5['getTableColumnsWidths'](_0x241583):null,_0x2a8769=_0x288283['getAttribute']('tableWidth')||null;const _0x42618b=_0x4a6fef['tableWidth']||_0x2a8769,_0x20113c=_0x4a6fef['columnWidths']||_0x48bea9,_0x4f66e2=this['editor']['plugins']['get']('Users')['me'];for(const _0x6fb926 of _0x37fb53['getSuggestions']()){const _0x4f2eaa=_0x6fb926['getContainedElement']();if('resizeTable'===_0x6fb926['subType']&&_0x4f2eaa===_0x288283){_0x6fb926['author']!==_0x4f66e2&&_0x6fb926['discard']();const _0x298dae=_0x6fb926['data']['commandParams'];_0x2a8769=_0x298dae[0x0]['tableWidth'],_0x48bea9=_0x298dae[0x0]['columnWidths'];break;}}_0x2ded32({'table':_0x288283,'tableWidth':_0x42618b,'columnWidths':_0x20113c}),_0x37fb53['markBlockFormat'](_0x288283,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a8769,'columnWidths':_0x48bea9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x168042){if('formatBlock'!=_0x168042['type']&&'formatInline'!=_0x168042['type'])return;const {data:_0x4e5be5}=_0x168042;if(_0x4e5be5&&'resizeTable'===_0x4e5be5['formatGroupId']){const _0x1f923d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1f923d)};}}}class Ct extends _0x4c8a1d{['afterInit'](){const _0x51ff1b=this['editor'];_0x51ff1b['plugins']['has']('Template')&&_0x51ff1b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4c8a1d{['afterInit'](){const _0x4d4468=this['editor'];if(!_0x4d4468['commands']['get']('insertTableOfContents'))return;_0x4d4468['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x500f97=_0x4d4468['plugins']['get']('TrackChangesEditing'),_0xb420c8=_0x4d4468['locale'];_0x500f97['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3509ac=>o(_0xb420c8,'ELEMENT_TABLE_OF_CONTENTS',_0x3509ac));}}class Dt extends _0x4c8a1d{['afterInit'](){const _0x1c95c6=this['editor'];if(!_0x1c95c6['plugins']['has']('Title'))return;const _0x558caa=_0x1c95c6['plugins']['get']('TrackChangesEditing');_0x558caa['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1c95c6['locale'],'ELEMENT_TITLE')),_0x1c95c6['model']['document']['registerPostFixer'](_0x46152d=>{let _0x14d39e=!0x1;const _0x491414=Array['from'](_0x1c95c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11e544,data:_0x554700}of _0x491414){const {group:_0x2ee59b}=_0x558caa['_splitMarkerName'](_0x11e544);if('suggestion'!==_0x2ee59b||!_0x554700['newRange'])continue;const _0x2004e8=_0x554700['newRange'],_0x108f90=_0x2004e8['end']['nodeBefore'];if(!_0x108f90||!_0x108f90['is']('element','title-content'))continue;if(!_0x2004e8['start']['isTouching'](_0x2004e8['end']))continue;const _0x524b76=_0x1c95c6['model']['schema']['getNearestSelectionRange'](_0x2004e8['end'],'forward');if(_0x524b76&&_0x524b76['isCollapsed']){const _0x316fee=_0x46152d['createRange'](_0x2004e8['start'],_0x524b76['start']);_0x316fee['isEqual'](_0x2004e8)||(_0x46152d['updateMarker'](_0x11e544,{'range':_0x316fee}),_0x14d39e=!0x0);}_0x14d39e||(_0x46152d['removeMarker'](_0x11e544),_0x14d39e=!0x0);}return _0x14d39e;});}}class Nt extends _0x4c8a1d{['afterInit'](){const _0x555790=this['editor'],_0x361820=_0x555790['plugins']['get']('TrackChangesEditing');_0x555790['plugins']['has']('UndoEditing')&&(_0x361820['enableCommand']('undo'),_0x361820['enableCommand']('redo'));}}class Mt extends _0x4c8a1d{static get['requires'](){return[jt];}['afterInit'](){const _0x5b968b=this['editor'];if(!_0x5b968b['plugins']['has']('TableCaptionEditing'))return;_0x5b968b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4c8a1d{['tableProperties'];['tableCellProperties'];constructor(_0x57e936){super(_0x57e936),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 _0x405871=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5e8126 of this['tableProperties'])_0x405871['enableCommand'](_0x5e8126,(_0x418cfe,_0x6c1ab3)=>{const _0x57c3de=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5e8126,[_0x57c3de],this['tableProperties'],'tableProperties',_0x418cfe,_0x6c1ab3);});_0x405871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x405871['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x270d62,_0x3139c0)=>this['handleDiscardAction'](this['tableProperties'],_0x270d62,_0x3139c0)),_0x405871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x32e2f8 of this['tableCellProperties'])_0x405871['enableCommand'](_0x32e2f8,(_0x296550,_0x23d894)=>{const _0x56ee6b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x32e2f8,_0x56ee6b,this['tableCellProperties'],'tableCellProperties',_0x296550,_0x23d894);});_0x405871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x405871['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x239df5,_0x25e2f0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x239df5,_0x25e2f0)),_0x405871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x405871['descriptionFactory']['registerDescriptionCallback'](_0x56fe7f=>this['handleSuggestionDescription'](_0x56fe7f));}['_handlePropertyChange'](_0x4d2854,_0x3c9ff7,_0x6ad0a0,_0x185920,_0x344e64,_0x14ddcf){const _0xd6d3f4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x14ddcf['batch'],()=>{for(const _0x112522 of _0x3c9ff7){if(this['_getSuggestion'](_0x112522,_0x185920))_0x344e64(_0x14ddcf);else{const _0x22c25f={};for(const _0x428508 of _0x6ad0a0){const _0x2d379c=_0x112522['getAttribute'](_0x428508);void 0x0!==_0x2d379c&&(_0x22c25f[_0x428508]=_0x2d379c);}_0x344e64(_0x14ddcf),_0xd6d3f4['markBlockFormat'](_0x112522,{'commandParams':[_0x22c25f]},[],_0x185920);}}});}['handleDiscardAction'](_0x548882,_0x78a364,_0x5898e2){const _0x18ff96=_0x78a364[0x0]['start']['nodeAfter'],_0xe3fb77=_0x5898e2['commandParams'][0x0];this['editor']['model']['change'](_0x3db6f7=>{for(const _0x2bba66 of _0x548882)void 0x0!==_0xe3fb77[_0x2bba66]?_0x3db6f7['setAttribute'](_0x2bba66,_0xe3fb77[_0x2bba66],_0x18ff96):_0x3db6f7['removeAttribute'](_0x2bba66,_0x18ff96);});}['handleSuggestionDescription'](_0x596113){if(_0x596113['data'])switch(_0x596113['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'](_0x401301,_0x3e4962){const _0x531185=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x46176e of _0x531185['getSuggestions']({'skipNotAttached':!0x0})){const _0x21eab9=_0x46176e['getContainedElement']();if(_0x46176e['subType']===_0x3e4962&&_0x21eab9===_0x401301)return _0x46176e;}return null;}}const m='$elementName';class p extends _0x4c8a1d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2ef3b4,_0x491129,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x2a5b77){function _0x3bfcbd(_0x3a7536){return _0x3a7536['map'](_0x4e87f3=>String['fromCharCode'](_0x4e87f3))['join']('');}super(_0x2a5b77),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x110242,_0x28252f,_0x269fa2,_0x480a48)=>{this['_model']['change'](()=>{for(const _0x161e0e of[..._0x480a48,..._0x269fa2])this['_model']['markers']['has'](_0x161e0e)&&_0x2a5b77['editing']['reconvertMarker'](_0x161e0e);});}),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']=_0x2a5b77['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(),_0x2a5b77['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a5b77['config']['get']('trackChanges.trackFormatChanges'),_0x2a5b77['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a5b77['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x2a5b77,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3bfcbd([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3bfcbd([0x34,0x30,0x34,0x38,0x31,0x34,0x32,0x32]);}['init'](){const _0x24e160=this['editor'],_0xaad7f6=(_0x2bff15,_0x16bd83)=>{if('attribute'!=_0x2bff15)return'ck-suggestion-marker-'+_0x2bff15;const _0x3bd7b1=_0x16bd83['split']('|')[0x0];return this['_isBlockAttribute'](_0x3bd7b1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x24e160['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xe2cf13=>{const {id:_0x15564d,type:_0x2cafcd,subType:_0x1ab142}=this['_splitMarkerName'](_0xe2cf13['markerName']),_0x5a2b80=['ck-suggestion-marker',_0xaad7f6(_0x2cafcd,_0x1ab142)];let _0x2296e4=0xbb8;return this['activeMarkers']['includes'](_0xe2cf13['markerName'])&&(_0x5a2b80['push']('ck-suggestion-marker--active'),_0x2296e4=0xbc2),'deletion'==_0x2cafcd&&(_0x2296e4+=0x5),{'classes':_0x5a2b80,'attributes':{'data-suggestion':_0x15564d},'priority':_0x2296e4};}}),_0x24e160['conversion']['for']('dataDowncast')['add'](_0x2c4a76=>{_0x2c4a76['on']('addMarker:suggestion',(_0xec1468,_0x15dfb2,_0x5e8a0f)=>{if(!_0x5e8a0f['options']['showSuggestionHighlights'])return;const _0x2945d5=_0x15dfb2['item'];if(!_0x2945d5)return;const _0x21a31e=_0x5e8a0f['mapper']['toViewElement'](_0x2945d5);_0x24e160['model']['schema']['isObject'](_0x2945d5)&&_0x21a31e&&!_0x21a31e['getCustomProperty']('widget')&&_0x21a31e['is']('containerElement')&&_0xa8d8d0(_0x21a31e,_0x5e8a0f['writer']);},{'priority':'high'});}),_0x24e160['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4f0cb1,_0x7d5183)=>{if(!_0x7d5183['options']['showSuggestionHighlights'])return null;const {type:_0x122e5b,subType:_0x313aba}=this['_splitMarkerName'](_0x4f0cb1['markerName']);return{'classes':['ck-suggestion-marker',_0xaad7f6(_0x122e5b,_0x313aba)],'priority':0xbb8};}});const _0xbad009=({showActiveMarkers:_0x231e91=!0x0,isAttributeSuggestion:_0x4b4716=!0x1}={})=>(_0x5bcaf2,_0xae6107,_0x2b6206)=>{if(!_0xae6107['item'])return;const {id:_0x4b8195}=this['_splitMarkerName'](_0xae6107['markerName']);if(_0x4b4716){const _0x30fa57=this['_suggestions']['get'](_0x4b8195),_0x527732=this['_getAttributeKey'](_0x30fa57);if(!this['_isBlockAttribute'](_0x527732))return;}if(_0xae6107['item']['is']('selection'))return void _0x2b6206['consumable']['consume'](_0xae6107['item'],_0x5bcaf2['name']);const _0x45c227=_0x2b6206['mapper']['toViewElement'](_0xae6107['item']);if(_0xae6107['item']['is']('element')&&_0x24e160['model']['schema']['isBlock'](_0xae6107['item'])&&!_0x45c227['getCustomProperty']('addHighlight')){_0x2b6206['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x45c227),_0x2b6206['writer']['setAttribute']('data-suggestion',_0x4b8195,_0x45c227),_0x2b6206['mapper']['bindElementToMarker'](_0x45c227,_0xae6107['markerName']),_0x231e91&&(this['activeMarkers']['includes'](_0xae6107['markerName'])?_0x2b6206['writer']['addClass']('ck-suggestion-marker--active',_0x45c227):_0x2b6206['writer']['removeClass']('ck-suggestion-marker--active',_0x45c227));for(const _0x27d654 of _0x24e160['model']['createRangeIn'](_0xae6107['item'])['getItems']())_0x2b6206['consumable']['consume'](_0x27d654,_0x5bcaf2['name']);_0x2b6206['consumable']['consume'](_0xae6107['item'],_0x5bcaf2['name']);}};_0x24e160['conversion']['for']('dataDowncast')['add'](_0x4ce424=>{_0x4ce424['on']('addMarker:suggestion:formatBlock',(_0xbf0481,_0x2b1d6e,_0x31a5a8)=>{_0x31a5a8['options']['showSuggestionHighlights']&&_0xbad009({'showActiveMarkers':!0x1})(_0xbf0481,_0x2b1d6e,_0x31a5a8);},{'priority':'highest'});}),_0x24e160['conversion']['for']('dataDowncast')['add'](_0x6b8b83=>{_0x6b8b83['on']('addMarker:suggestion:attribute',(_0x4fa879,_0x5becd7,_0x547256)=>{_0x547256['options']['showSuggestionHighlights']&&_0xbad009({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4fa879,_0x5becd7,_0x547256);},{'priority':'highest'});}),_0x24e160['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5d0857,_0x3de915)=>_0x3de915['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5d0857['substr'](0xb)}}),_0x24e160['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4618d4,{writer:_0xb557d9})=>{let _0x512bfd='suggestion:'+_0x4618d4['getAttribute']('suggestion-type')+':'+_0x4618d4['getAttribute']('id');return _0x4618d4['getAttribute']('marker-count')&&(_0x512bfd+=':'+_0x4618d4['getAttribute']('marker-count')),_0xb557d9['createElement']('$marker',{'data-name':_0x512bfd});}}),_0x24e160['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x24e160['conversion']['for']('editingDowncast')['add'](_0x5d039e=>{_0x5d039e['on']('addMarker:suggestion:formatBlock',_0xbad009(),{'priority':'high'});}),_0x24e160['conversion']['for']('editingDowncast')['add'](_0xbfa989=>{_0xbfa989['on']('addMarker:suggestion:attribute',_0xbad009({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x24e160['conversion']['for']('editingDowncast')['add'](_0x1fe6c4=>{_0x1fe6c4['on']('removeMarker:suggestion:formatBlock',(_0x18d783,_0x5aaaa8,_0x5df101)=>{const _0x32a352=_0x5df101['mapper']['markerNameToElements'](_0x5aaaa8['markerName']);if(_0x32a352){for(const _0x19928f of _0x32a352)_0x19928f['getCustomProperty']('addHighlight')||(_0x5df101['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x19928f),_0x5df101['writer']['removeAttribute']('data-suggestion',_0x19928f),_0x5df101['mapper']['unbindElementFromMarkerName'](_0x19928f,_0x5aaaa8['markerName']));}},{'priority':'high'});}),_0x24e160['conversion']['for']('editingDowncast')['add'](_0x218bd7=>{_0x218bd7['on']('removeMarker:suggestion:attribute',(_0x52a388,_0x216654,_0x273e53)=>{const _0x581975=_0x273e53['mapper']['markerNameToElements'](_0x216654['markerName']);if(!_0x581975)return;const {id:_0x573a1f}=this['_splitMarkerName'](_0x216654['markerName']),_0xffd03=this['_suggestions']['get'](_0x573a1f),_0x5c5449=this['_getAttributeKey'](_0xffd03);if(this['_isBlockAttribute'](_0x5c5449)){for(const _0x3afce2 of _0x581975)_0x3afce2['getCustomProperty']('addHighlight')||(_0x273e53['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3afce2),_0x273e53['writer']['removeAttribute']('data-suggestion',_0x3afce2),_0x273e53['mapper']['unbindElementFromMarkerName'](_0x3afce2,_0x216654['markerName']));}},{'priority':'high'});}),_0x24e160['model']['document']['registerPostFixer'](_0x1d3c9f=>{let _0x20962e=!0x1;const _0x15a8d0=Array['from'](_0x24e160['model']['document']['differ']['getChangedMarkers']()),_0x2b6443=new Set();for(const {name:_0x3b86a8,data:_0x37c719}of _0x15a8d0){const {group:_0x5095ef,type:_0x253be6,subType:_0x67192d,id:_0x1015c3}=this['_splitMarkerName'](_0x3b86a8);if('suggestion'!==_0x5095ef)continue;const _0x40e24e=this['_suggestions']['get'](_0x1015c3);if(null!=_0x37c719['newRange']){'formatInline'==_0x253be6&&(_0x20962e=_0x20962e||Et(_0x37c719['newRange'],_0x3b86a8,_0x1d3c9f,_0x24e160['model']['schema']));const _0xbf7624='attribute'==_0x253be6&&this['_isBlockAttribute'](_0x67192d['split']('|')[0x0]);if(_0x37c719['newRange']['isCollapsed']||'$graveyard'==_0x37c719['newRange']['root']['rootName']||'formatBlock'==_0x253be6&&!Ut(_0x37c719['newRange'])||_0xbf7624&&!Ut(_0x37c719['newRange'])||'deletion'==_0x253be6&&!(!Tt(_0x1dcaef=_0x37c719['newRange'])&&!function(_0xb46826){return _0xb46826['start']['parent']==_0xb46826['end']['nodeBefore']&&_0xb46826['start']['isAtEnd'];}(_0x1dcaef)))_0x1d3c9f['removeMarker'](_0x3b86a8),_0x20962e=!0x0;else{if(!_0x40e24e||!_0x40e24e['isInContent'])continue;_0x2b6443['add'](_0x40e24e);}}}var _0x1dcaef;return _0x2b6443['size']>0x0&&(_0x20962e=!!this['_joinWithAdjacentSuggestions'](_0x2b6443)||_0x20962e),_0x20962e;}),_0x24e160['model']['document']['registerPostFixer'](_0x55ce7f=>{let _0x4d3376=!0x1;for(const _0x325fab of _0x24e160['model']['document']['differ']['getChanges']())if('insert'==_0x325fab['type'])for(const _0x32741b of this['_suggestions']['values']()){if(_0x32741b['isMultiRange']||!_0x32741b['isInContent'])continue;const _0x446341='formatBlock'==_0x32741b['type'],_0x4e8dd9=this['_getAttributeKey'](_0x32741b),_0x39d637=_0x4e8dd9&&this['_isBlockAttribute'](_0x4e8dd9);if(!_0x446341&&!_0x39d637)continue;const _0x4f37e7=_0x32741b['getFirstRange']();if(_0x4f37e7['start']['parent']!=_0x4f37e7['end']['parent']&&!_0x4f37e7['end']['isAtEnd']){const _0x1d9909=_0x24e160['model']['createPositionAt'](_0x4f37e7['start']['nodeAfter'],'end'),_0x40d8b3=_0x24e160['model']['createRange'](_0x4f37e7['start'],_0x1d9909);_0x55ce7f['updateMarker'](_0x32741b['getFirstMarker'](),{'range':_0x40d8b3}),_0x4d3376=!0x0;}}return _0x4d3376;}),_0x24e160['model']['document']['registerPostFixer'](_0x462039=>this['_processAttributeChanges'](_0x462039)),_0x24e160['model']['document']['registerPostFixer'](_0x158a1f=>!_0x158a1f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x158a1f)),_0x24e160['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x24e160['model']['document']['on']('change:data',(_0x942ffe,_0x29adf2)=>{if(!_0x29adf2['isLocal']||_0x29adf2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xf2f09=_0x24e160['model']['document']['differ']['getChanges']();if(0x0==_0xf2f09['length'])return;const _0x54ca0b=[],_0x129306=_0xf2f09['filter'](_0x430564=>'attribute'==_0x430564['type']),_0x564eac=_0xf2f09['filter'](_0x480a0f=>'insert'==_0x480a0f['type']&&'$text'!=_0x480a0f['name']);for(const _0x17a494 of _0x129306)this['_isRegisteredAttribute'](_0x17a494['attributeKey'])&&_0x54ca0b['push']({'key':_0x17a494['attributeKey'],'newValue':_0x17a494['attributeNewValue'],'oldValue':_0x17a494['attributeOldValue'],'range':Ot(_0x17a494['range'],_0x24e160['model'])});for(const _0x2e8117 of _0x564eac){if('rename'!=_0x2e8117['action']&&'refresh'!=_0x2e8117['action'])continue;const _0x3aceba=Gt(_0x2e8117['position']['nodeAfter'],_0x24e160['model']),_0x54c038=_0x2e8117['before'];'rename'==_0x2e8117['action']&&_0x54ca0b['push']({'key':m,'newValue':_0x2e8117['name'],'oldValue':_0x54c038['name'],'range':_0x3aceba});for(const [_0x3c2238,_0x164f9a]of _0x54c038['attributes']){if(!this['_isRegisteredAttribute'](_0x3c2238))continue;const _0x593a93=_0x2e8117['attributes']['get'](_0x3c2238);_0x164f9a!==_0x593a93&&_0x54ca0b['push']({'key':_0x3c2238,'newValue':_0x593a93,'oldValue':_0x164f9a,'range':_0x3aceba});}for(const [_0x5c65da,_0x441e16]of _0x2e8117['attributes'])this['_isRegisteredAttribute'](_0x5c65da)&&(_0x54c038['attributes']['has'](_0x5c65da)||_0x54ca0b['push']({'key':_0x5c65da,'newValue':_0x441e16,'oldValue':null,'range':_0x3aceba}));}0x0!=_0x54ca0b['length']&&_0x24e160['model']['enqueueChange'](_0x29adf2,_0x5127d7=>{const _0x7278d0=_0x282b27();for(const {range:_0x322538,key:_0x4a62d9,oldValue:_0x368534,newValue:_0x1991df}of _0x54ca0b)this['markAttributeChange'](_0x322538,_0x4a62d9,_0x368534,_0x1991df,{'groupId':_0x7278d0});this['_reduceExistingSuggestions'](_0x5127d7,_0x54ca0b);});},{'priority':'lowest'}),_0x24e160['model']['markers']['on']('update:suggestion',(_0x3a6f30,_0x12f795,_0x484f70)=>{if(null==_0x484f70){const {id:_0x30f390}=this['_splitMarkerName'](_0x12f795['name']),_0x1fe91f=this['_suggestions']['get'](_0x30f390);_0x1fe91f&&_0x1fe91f['addMarkerName'](_0x12f795['name']);}}),_0x24e160['model']['document']['on']('change:data',()=>{const _0x4bcbe4=Array['from'](_0x24e160['model']['document']['differ']['getChangedMarkers']())['filter'](_0x11fe4d=>'suggestion'===this['_splitMarkerName'](_0x11fe4d['name'])['group']);if(0x0===_0x4bcbe4['length'])return;_0x4bcbe4['sort']((_0x2eba88,_0x3b08bc)=>{const _0x2f92b9=_0x2eba88['data']['oldRange'],_0xe5fae0=_0x3b08bc['data']['oldRange'];return null===_0x2f92b9&&null===_0xe5fae0?0x0:null===_0x2f92b9&&null!==_0xe5fae0?-0x1:null!==_0x2f92b9&&null===_0xe5fae0?0x1:_0x2f92b9['start']['isBefore'](_0xe5fae0['start'])?-0x1:0x1;});const _0x202e3c=new Set(),_0x32c351=new Set();for(const {name:_0x4b623d,data:_0xdfe63f}of _0x4bcbe4){const {id:_0x346a52}=this['_splitMarkerName'](_0x4b623d);if(null===_0xdfe63f['oldRange']){const _0x2ea39e=this['_handleNewSuggestionMarker'](_0x4b623d);_0x32c351['add'](_0x2ea39e);}else{const _0x5cf262=this['_suggestions']['get'](_0x346a52);null!==_0xdfe63f['newRange']||_0x5cf262['isInContent']?(_0x202e3c['add'](_0x5cf262['head']),_0x32c351['add'](_0x5cf262)):this['_removeSuggestion'](_0x5cf262);}}_0x32c351['size']>0x0&&this['_refreshSuggestionsChain'](_0x32c351);for(const _0x4b562b of _0x202e3c)this['fire']('suggestionChanged',_0x4b562b);}),_0x24e160['model']['on']('applyOperation',(_0x395dca,_0x4b379a)=>{const _0x46d273=_0x4b379a[0x0];if(!this['_suggestions']['size'])return;if(!_0x46d273['isDocumentOperation'])return;if(_0x46d273['batch']['isUndo']||!_0x46d273['batch']['isLocal'])return;let _0x8360cb,_0x1c083e;switch(_0x46d273['type']){case'insert':_0x8360cb=_0x24e160['model']['createPositionAt'](_0x46d273['position']),_0x1c083e=_0x8360cb['getShiftedBy'](_0x46d273['howMany']);break;case'split':_0x8360cb=_0x24e160['model']['createPositionAt'](_0x46d273['splitPosition']),_0x1c083e=_0x24e160['model']['createPositionAt'](_0x46d273['moveTargetPosition']);break;case'move':_0x8360cb=_0x24e160['model']['createPositionAt'](_0x46d273['targetPosition']),_0x1c083e=_0x8360cb['getShiftedBy'](_0x46d273['howMany']);break;default:return;}const _0x6434dd=_0x24e160['model']['createRange'](_0x8360cb,_0x1c083e);_0x24e160['model']['change'](()=>{for(const {suggestion:_0x3b456a,meta:_0x2832ab}of this['_findSuggestions'](_0x6434dd)){if(_0x3b456a['isMultiRange'])continue;if('formatInline'==_0x3b456a['type'])continue;const _0x5287f8=this['_getAttributeKey'](_0x3b456a);if(_0x5287f8&&this['_isBlockAttribute'](_0x5287f8)&&'split'!=_0x46d273['type'])continue;const _0x224716=_0x3b456a['data']&&_0x3b456a['data']['multipleBlocks'];('formatBlock'!=_0x3b456a['type']||'split'==_0x46d273['type']&&!_0x224716)&&(_0x2832ab['containsRangeInObject']||'insertion'==_0x3b456a['type']&&_0x2832ab['isOwn']||_0x3b456a['getFirstRange']()['containsRange'](_0x6434dd)&&this['_breakSuggestionMarker'](_0x3b456a,_0x8360cb,_0x1c083e));}});},{'priority':'lowest'}),_0x24e160['model']['on']('deleteContent',(_0x115313,_0x43b589)=>{const _0xd64ec4=_0x43b589[0x0],_0x3500b9=_0x43b589[0x1];if(_0x3500b9&&_0x3500b9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd64ec4['isCollapsed'])return;const _0x46b935=_0x24e160['model']['schema'],{start:_0x35d280,end:_0x492779}=_0xd64ec4['getFirstRange'](),_0x45d09e=_0x35d280['nodeAfter']&&_0x46b935['isLimit'](_0x35d280['nodeAfter'])?null:_0x46b935['getNearestSelectionRange'](_0x35d280,'forward'),_0x222313=_0x492779['nodeBefore']&&_0x46b935['isLimit'](_0x492779['nodeBefore'])?null:_0x46b935['getNearestSelectionRange'](_0x492779,'backward'),_0x4c918d=_0x24e160['model']['createRange'](_0x45d09e?_0x45d09e['start']:_0x35d280,_0x222313?_0x222313['end']:_0x492779);_0x24e160['model']['change'](_0x4af365=>{this['markDeletion'](_0x4c918d);const _0x5a17fd=_0x24e160['model']['schema']['getNearestSelectionRange'](_0x4c918d['start']);_0xd64ec4['is']('documentSelection')?_0x4af365['setSelection'](_0x5a17fd):_0xd64ec4['setTo'](_0x5a17fd);}),_0x115313['stop']();},{'priority':_0x521d0d['normal']+0xa}),_0x24e160['model']['on']('insertContent',(_0xdd3df4,_0x516ad4)=>{const _0x2631eb=_0x516ad4[_0x516ad4['length']-0x1];_0x2631eb&&_0x2631eb['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x24e160['model']['change'](()=>{let _0x13a839=_0x24e160['model']['insertContent'](_0x516ad4[0x0],_0x516ad4[0x1],_0x516ad4[0x2],{'forceDefaultExecution':!0x0});if(!_0x13a839)return;_0xdd3df4['return']=_0x13a839['clone']();const _0x5ede9e=_0x13a839['end']['nodeBefore'],_0x388c77=_0x24e160['model']['schema'];_0x5ede9e&&_0x388c77['isBlock'](_0x5ede9e)&&!_0x388c77['isObject'](_0x5ede9e)&&(_0x13a839=_0x24e160['model']['createRange'](_0x13a839['start'],_0x24e160['model']['createPositionAt'](_0x5ede9e,'end'))),this['markInsertion'](_0x13a839);}),_0xdd3df4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xe94843=new $(_0x24e160,this['_suggestions']);_0x24e160['commands']['add']('acceptSuggestion',_0xe94843),this['enableCommand']('acceptSuggestion');const _0x1bc7be=new B(_0x24e160,this['_suggestions']);_0x24e160['commands']['add']('discardSuggestion',_0x1bc7be),this['enableCommand']('discardSuggestion'),_0x24e160['commands']['add']('acceptAllSuggestions',new x(_0x24e160,_0xe94843,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x24e160['commands']['add']('discardAllSuggestions',new x(_0x24e160,_0x1bc7be,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x24e160['commands']['add']('acceptSelectedSuggestions',new R(_0x24e160,_0xe94843,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x24e160['commands']['add']('discardSelectedSuggestions',new R(_0x24e160,_0x1bc7be,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x770b65=_0x24e160['plugins']['get']('CommentsRepository');this['listenTo'](_0x770b65,'addComment',(_0x5c26ee,{threadId:_0x3ddd3f})=>{const _0x40b98e=this['_suggestions']['get'](_0x3ddd3f);_0x40b98e&&_0x40b98e['commentThread']&&0x1===_0x40b98e['commentThread']['length']&&this['_updateSuggestionData'](_0x3ddd3f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x770b65,'removeComment',(_0x4aa46a,{threadId:_0x5967d7})=>{const _0x598b1a=this['_suggestions']['get'](_0x5967d7);_0x598b1a&&_0x598b1a['commentThread']&&!_0x598b1a['commentThread']['length']&&this['_updateSuggestionData'](_0x5967d7,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x20a5e1){if(this['_adapter'])throw new _0x130dd5('track-changes-adapter-already-set',this);this['_adapter']=_0x20a5e1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3fd81e=!0x1,toJSON:_0x433520=!0x1}={}){const _0x2981fe=[];for(const _0x496018 of this['_suggestions']['values']())_0x3fd81e&&!_0x496018['isInContent']||_0x2981fe['push'](_0x496018);return _0x433520?_0x2981fe['map'](_0x372913=>_0x372913['toJSON']()):_0x2981fe;}['getSuggestion'](_0x438d41){const _0xf512a5=this['_suggestions']['get'](_0x438d41);if(!_0xf512a5)throw new _0x130dd5('track-changes-suggestion-not-found',this);return _0xf512a5;}['hasSuggestion'](_0x114f0f){return this['_suggestions']['has'](_0x114f0f);}['addSuggestionData'](_0x2bfd47){const {authorId:_0x545747,id:_0x10f68a,attributes:_0x27f53a}=_0x2bfd47,[_0x567ddf,_0x5a18a4]=_0x2bfd47['type']['split'](':'),_0x5acf2c=this['_suggestions']['get'](_0x10f68a)||this['_createSuggestion'](_0x567ddf,_0x5a18a4,_0x10f68a,_0x545747,_0x27f53a);if(this['_addThreadToSuggestion'](_0x5acf2c),this['_checkSuggestionCorrectness'](_0x5acf2c,_0x567ddf,_0x5a18a4||null,_0x545747),_0x5acf2c['createdAt']=_0x2bfd47['createdAt'],_0x5acf2c['_isDataLoaded']=!0x0,_0x27f53a&&_0x27f53a['@external']){const _0xd7f9e6=_0x27f53a['@external'],_0x24c156=this['_getExternalAuthor'](_0xd7f9e6['authorName']);_0x5acf2c['authoredAt']=_0xd7f9e6['createdAt'],_0x5acf2c['author']=_0x24c156,_0x5acf2c['isExternal']=!0x0;}else _0x5acf2c['authoredAt']=_0x2bfd47['createdAt'];switch(_0x2bfd47['data']&&(_0x5acf2c['data']=_0x2bfd47['data']),_0x2bfd47['attributes']&&(_0x5acf2c['attributes']=_0x2bfd47['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5acf2c['_saved']=!0x0),this['_suggestionState']['get'](_0x5acf2c)){case'notReady':this['_suggestionState']['set'](_0x5acf2c,'dataReady');break;case'markerReady':_0x5acf2c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5acf2c])),this['_refreshSuggestionsChain'](new Set([_0x5acf2c])),this['_suggestionState']['set'](_0x5acf2c,'ready'),this['fire']('suggestionLoaded',_0x5acf2c)):this['_suggestionState']['set'](_0x5acf2c,'removed');}return _0x5acf2c;}['acceptSuggestion'](_0x4ebe4d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41048f of _0x4ebe4d['getAllAdjacentSuggestions']())_0x41048f['accept']();});});}['discardSuggestion'](_0x3989cb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2cf7a6 of _0x3989cb['getAllAdjacentSuggestions']())_0x2cf7a6['discard']();});});}['enableCommand'](_0x3ab682,_0x246c40){const _0x8ac0a5=this['editor']['commands']['get'](_0x3ab682);if(!_0x8ac0a5)throw new _0x130dd5('track-changes-command-not-found',this,{'commandName':_0x3ab682});if(this['_enabledCommands']['has'](_0x8ac0a5))throw new _0x130dd5('track-changes-enable-command-twice',this,{'commandName':_0x3ab682});this['_enabledCommands']['add'](_0x8ac0a5),_0x246c40&&_0x8ac0a5['on']('execute',(_0x970d28,_0x25aa7b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x25aa7b['length']>0x0&&_0x25aa7b[_0x25aa7b['length']-0x1]&&_0x25aa7b[_0x25aa7b['length']-0x1]['forceDefaultExecution']?_0x25aa7b['pop']():(_0x970d28['return']=_0x246c40((..._0x27b146)=>_0x8ac0a5['execute'](..._0x27b146,{'forceDefaultExecution':!0x0}),..._0x25aa7b),_0x970d28['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5a266b){let _0x3c6480,_0x58d3de;const _0x3d6de2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c6480=_0x5a266b();}catch(_0x1e7185){_0x58d3de=_0x1e7185;}return _0x3d6de2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x58d3de&&_0x130dd5['rethrowUnexpectedError'](_0x58d3de,this),_0x3c6480;}['markInsertion'](_0x2686b8,_0x96f4ef=null,_0x112aab={}){if(_0x2686b8['isCollapsed'])return null;const _0x2148f7=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x418cc1,meta:_0x46634e}of this['_findSuggestions'](_0x2686b8,'insertion'))if(_0x46634e['isOwn']){if(!_0x46634e['isNextTo']){if(_0x46634e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x418cc1,_0x112aab))continue;return _0x418cc1;}if(Lt(_0x418cc1,_0x112aab))return _0x418cc1;this['_breakSuggestionMarker'](_0x418cc1,_0x2686b8['start'],_0x2686b8['end']);break;}if(_0x96f4ef==_0x418cc1['subType']&&Lt(_0x418cc1,_0x112aab)){const _0x4cccd7=_0x418cc1['getFirstRange']();return _0x4cccd7['start']['isEqual'](_0x2686b8['end'])?this['_setSuggestionRange'](_0x418cc1,this['_model']['createRange'](_0x2686b8['start'],_0x4cccd7['end'])):this['_setSuggestionRange'](_0x418cc1,this['_model']['createRange'](_0x4cccd7['start'],_0x2686b8['end'])),_0x418cc1;}}const _0x58dc28=_0x282b27(),_0x5150ed=_0x2148f7['id'],_0x18c7da=_0x96f4ef?'insertion:'+_0x96f4ef:'insertion',_0x14a5d3=this['_setSuggestionData']({'id':_0x58dc28,'type':_0x18c7da,'createdAt':new Date(),'authorId':_0x5150ed,'attributes':_0x112aab});return this['_addSuggestionMarker'](_0x18c7da,_0x58dc28,_0x5150ed,_0x2686b8),_0x14a5d3;}['markMultiRangeInsertion'](_0x4632ec,_0x4d05c5='multi',_0x411836={}){const _0x12b493=this['editor']['plugins']['get']('Users')['me'],_0x4dd971=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4d05c5,'join');for(const _0x106e86 of this['getSuggestions']())if(_0x106e86['author']['id']==_0x12b493['id']&&'insertion'==_0x106e86['type']&&_0x106e86['subType']==_0x4d05c5&&Lt(_0x106e86,_0x411836)&&(_0x4dd971(_0x106e86['getRanges'](),_0x4632ec)||_0x4dd971(_0x4632ec,_0x106e86['getRanges']()))){for(const _0x4beea4 of _0x4632ec)_0x106e86['addRange'](_0x4beea4);return _0x106e86;}for(const {suggestion:_0x3fbe31,meta:_0x8d5dba}of this['_findSuggestions'](_0x4632ec,'insertion')){if(!_0x8d5dba['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x8d5dba['containsRangeInObject'])continue;if(!Lt(_0x3fbe31,_0x411836))continue;let _0x4f3599=!0x0;for(const _0x3b0f4c of _0x3fbe31['getRanges']())for(const _0x83d28 of _0x4632ec)if(!_0x3b0f4c['containsRange'](_0x83d28)){_0x4f3599=!0x1;break;}if(_0x4f3599)return _0x3fbe31;}const _0x360694=_0x282b27(),_0x108a92=_0x12b493['id'],_0x3c0509='insertion:'+_0x4d05c5,_0x102ccc=this['_setSuggestionData']({'id':_0x360694,'type':_0x3c0509,'createdAt':new Date(),'authorId':_0x108a92,'attributes':_0x411836});for(const _0x4e74f0 of _0x4632ec)this['_addSuggestionMarker'](_0x3c0509,_0x360694,_0x108a92,_0x4e74f0,u['getMultiRangeId']());return _0x102ccc;}['markInlineFormat'](_0x28b991,_0x2f254e,_0x2f39c9=null,_0x5022e4={}){if(_0x2f39c9=_0x2f39c9||Vt(_0x2f254e),_0x28b991['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3b4f1d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f39c9,'accept');return this['forceDefaultExecution'](()=>_0x3b4f1d([_0x28b991],_0x2f254e,_0x5022e4)),null;}const _0xe8cb8f=this['editor']['plugins']['get']('Users')['me'],_0x45c60b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x478354,meta:_0x540842}of this['_findSuggestions'](_0x28b991,'insertion'))_0x540842['isOwn']&&!_0x540842['isInsideObject']&&_0x45c60b['push'](..._0x478354['getRanges']());}const _0x538d76=function(_0x1ca23c,_0x4aee37){const _0x48c413=[];for(const _0x5c63a5 of _0x4aee37){const _0x47d1cb=_0x1ca23c['getIntersection'](_0x5c63a5);_0x47d1cb&&_0x48c413['push'](_0x47d1cb);}return _0x48c413;}(_0x28b991,_0x45c60b),_0x3dc1f3=function(_0x38e3cc,_0x165393){const _0x3f3f19=[_0x38e3cc];for(const _0x3b3999 of _0x165393){let _0x48eec1=0x0;for(;_0x48eec1<_0x3f3f19['length'];){const _0x1c0c7c=_0x3f3f19[_0x48eec1]['getDifference'](_0x3b3999);_0x3f3f19['splice'](_0x48eec1,0x1,..._0x1c0c7c),_0x48eec1+=_0x1c0c7c['length'];}}return _0x3f3f19;}(_0x28b991,_0x45c60b);_0x538d76['length']&&this['_model']['change'](()=>{for(const _0x5bcf8e of _0x538d76){const _0x32ac5e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f39c9,'accept');this['forceDefaultExecution'](()=>_0x32ac5e([_0x5bcf8e],_0x2f254e,_0x5022e4));}});for(const _0x2a6900 of _0x3dc1f3){let _0x526b0a=null,_0xcfecc3=_0x2a6900['start'],_0xb5b53f=_0x2a6900['end'];for(const {suggestion:_0x2850b9,meta:_0x57080d}of this['_findSuggestions'](_0x2a6900,'formatInline')){if(!_0x57080d['isOwn'])continue;if(_0x2850b9['subType']!=_0x2f39c9)continue;if(!Lt(_0x2850b9,_0x5022e4))continue;const _0x1f6f51=_0x2850b9['getFirstRange']();if(_0x1f6f51['containsRange'](_0x2a6900,!0x0))return null;_0xcfecc3=_0xcfecc3['isBefore'](_0x1f6f51['start'])?_0xcfecc3:_0x1f6f51['start'],_0xb5b53f=_0xb5b53f['isAfter'](_0x1f6f51['end'])?_0xb5b53f:_0x1f6f51['end'],_0x526b0a?_0x1f6f51['start']['isBefore'](_0x526b0a['getFirstRange']()['start'])?(_0x526b0a['removeMarkers'](),_0x526b0a=_0x2850b9):_0x2850b9['removeMarkers']():_0x526b0a=_0x2850b9;}const _0x4d5cf1=this['_model']['createRange'](_0xcfecc3,_0xb5b53f);if(_0x526b0a)this['_setSuggestionRange'](_0x526b0a,_0x4d5cf1);else{const _0x4e3c3e=_0x282b27(),_0x505d5b=_0xe8cb8f['id'];this['_setSuggestionData']({'id':_0x4e3c3e,'type':'formatInline:'+_0x2f39c9,'data':_0x2f254e,'createdAt':new Date(),'authorId':_0x505d5b,'attributes':_0x5022e4}),this['_addSuggestionMarker']('formatInline:'+_0x2f39c9,_0x4e3c3e,_0x505d5b,_0x4d5cf1);}}return null;}['markBlockFormat'](_0x2dd0d3,_0x3f4b19,_0x2de7a0=[],_0xe692b5=null,_0x476cd6={}){_0x3f4b19['formatGroupId']||(_0x3f4b19['formatGroupId']=_0x3f4b19['commandName']),_0x3f4b19['multipleBlocks']=_0x2dd0d3['is']('range'),_0xe692b5=_0xe692b5||Vt(_0x3f4b19);const _0x4d44bb=_0x2de7a0['map'](_0x4a9dbb=>Gt(_0x4a9dbb,this['_model'])),_0xbae8c3=_0x2dd0d3['is']('range')?_0x2dd0d3:Gt(_0x2dd0d3,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4efdab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe692b5,'accept');return this['forceDefaultExecution'](()=>_0x4efdab([_0xbae8c3],_0x3f4b19,_0x476cd6)),null;}_0x4d44bb['push'](_0xbae8c3);let _0xbcdf30=!0x0;for(const _0x11cd53 of _0x4d44bb)if(!this['_rangeIsInLocalUserInsertion'](_0x11cd53)){_0xbcdf30=!0x1;break;}if(_0xbcdf30&&'always'!==this['_trackFormatChanges']){const _0x28991a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe692b5,'accept');return this['forceDefaultExecution'](()=>_0x28991a([_0xbae8c3],_0x3f4b19,_0x476cd6)),null;}let _0x47d026=null,_0x3749be=_0xbae8c3['start'],_0x4412fb=_0xbae8c3['end'];for(const {suggestion:_0x407ab4,meta:_0x4a226d}of this['_findSuggestions'](_0xbae8c3,'formatBlock')){if(!_0x4a226d['isOwn'])continue;if(_0x4a226d['isNextTo']||_0x4a226d['containsRangeInObject']||_0x4a226d['isInsideObject'])continue;if(_0x407ab4['data']['formatGroupId']!=_0x3f4b19['formatGroupId'])continue;if(!Lt(_0x407ab4,_0x476cd6))continue;const _0x2f0b4c=_0x407ab4['getFirstRange']();if(_0x407ab4['subType']==_0xe692b5){if(_0x2f0b4c['containsRange'](_0xbae8c3,!0x0))return null;_0x3749be=_0x3749be['isBefore'](_0x2f0b4c['start'])?_0x3749be:_0x2f0b4c['start'],_0x4412fb=_0x4412fb['isAfter'](_0x2f0b4c['end'])?_0x4412fb:_0x2f0b4c['end'],_0x47d026?_0x2f0b4c['start']['isBefore'](_0x47d026['getFirstRange']()['start'])?(_0x47d026['removeMarkers'](),_0x47d026=_0x407ab4):_0x407ab4['removeMarkers']():_0x47d026=_0x407ab4;}else{const _0xc7cc44=_0xbae8c3['getIntersection'](_0x2f0b4c);this['_cutOutSuggestionMarker'](_0x407ab4,_0xc7cc44);}}const _0x67ccc9=this['editor']['plugins']['get']('Users')['me'],_0x29acae=_0x282b27(),_0x5e05ac=_0x67ccc9['id'];if(_0x47d026)return this['_setSuggestionRange'](_0x47d026,this['_model']['createRange'](_0x3749be,_0x4412fb)),_0x47d026;{const _0x4fd7f7=this['_setSuggestionData']({'id':_0x29acae,'type':'formatBlock:'+_0xe692b5,'data':_0x3f4b19,'createdAt':new Date(),'authorId':_0x5e05ac,'attributes':_0x476cd6});return this['_addSuggestionMarker']('formatBlock:'+_0xe692b5,_0x29acae,_0x5e05ac,this['_model']['createRange'](_0x3749be,_0x4412fb)),_0x4fd7f7;}}['markMultiRangeBlockFormat'](_0x4524a3,_0x4d5ef8,_0x323237=[],_0x105cc8=null,_0x28d0ac={}){_0x4d5ef8['formatGroupId']||(_0x4d5ef8['formatGroupId']=_0x4d5ef8['commandName']);const _0x329412=_0x4524a3[0x0];_0x4d5ef8['multipleBlocks']=_0x329412['is']('range'),_0x105cc8=_0x105cc8||Vt(_0x4d5ef8);const _0x235ec5=_0x323237['map'](_0x1f881a=>Gt(_0x1f881a,this['_model'])),_0x2bfad1=_0x329412['is']('range')?_0x4524a3:_0x4524a3['map'](_0x2e701e=>Gt(_0x2e701e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x30b02a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x105cc8,'accept');return this['forceDefaultExecution'](()=>_0x30b02a(_0x2bfad1,_0x4d5ef8,_0x28d0ac)),null;}_0x235ec5['push'](..._0x2bfad1);let _0x2c52ce=!0x0;for(const _0x37e7bd of _0x235ec5)if(!this['_rangeIsInLocalUserInsertion'](_0x37e7bd)){_0x2c52ce=!0x1;break;}if(_0x2c52ce&&'always'!==this['_trackFormatChanges']){const _0x47108f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x105cc8,'accept');return this['forceDefaultExecution'](()=>_0x47108f(_0x2bfad1,_0x4d5ef8,_0x28d0ac)),null;}const _0x57d99b=this['editor']['plugins']['get']('Users')['me'];for(const _0x6a3937 of this['getSuggestions']()){if(_0x6a3937['author']['id']!=_0x57d99b['id'])continue;if('formatBlock'!=_0x6a3937['type']||_0x6a3937['data']['formatGroupId']!=_0x4d5ef8['formatGroupId'])continue;if(!Lt(_0x6a3937,_0x28d0ac))continue;const _0x5ef249=_0x6a3937['subType']==_0x105cc8;for(let _0x332eaa=0x0;_0x332eaa<_0x2bfad1['length'];_0x332eaa++){const _0x2aa390=_0x2bfad1[_0x332eaa];for(const _0x1e0d21 of _0x6a3937['getMarkers']()){const _0x4f4894=_0x1e0d21['getRange']();if(_0x2aa390['isEqual'](_0x4f4894)){_0x5ef249?(_0x2bfad1['splice'](_0x332eaa,0x1),_0x332eaa--):_0x6a3937['removeMarker'](_0x1e0d21['name']);break;}}}}if(0x0==_0x2bfad1['length'])return null;const _0x351107=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x105cc8,'join');for(const _0x3364ec of this['getSuggestions']())if(_0x3364ec['author']['id']==_0x57d99b['id']&&'formatBlock'==_0x3364ec['type']&&_0x3364ec['data']['formatGroupId']==_0x4d5ef8['formatGroupId']&&_0x3364ec['subType']==_0x105cc8&&Lt(_0x3364ec,_0x28d0ac)&&(_0x351107(_0x3364ec['getRanges'](),_0x2bfad1)||_0x351107(_0x2bfad1,_0x3364ec['getRanges']()))){for(const _0x5c20d3 of _0x2bfad1)_0x3364ec['addRange'](_0x5c20d3);return _0x3364ec;}const _0x159146=_0x282b27(),_0x3fcb15=_0x57d99b['id'],_0x219b2d='formatBlock:'+_0x105cc8,_0x2874d6=this['_setSuggestionData']({'id':_0x159146,'type':_0x219b2d,'data':_0x4d5ef8,'createdAt':new Date(),'authorId':_0x3fcb15,'attributes':_0x28d0ac});for(const _0x18f368 of _0x2bfad1)this['_addSuggestionMarker'](_0x219b2d,_0x159146,_0x3fcb15,_0x18f368,u['getMultiRangeId']());return _0x2874d6;}['markDeletion'](_0x42fd14,_0x2c0468=null,_0x2097cf={}){if(_0x42fd14['isCollapsed'])return null;const _0x41c5b2=this['editor']['plugins']['get']('Users')['me'],_0x288b26=new _0x4a275c(_0x42fd14['start'],_0x42fd14['end']);for(const {suggestion:_0x54d8dd,meta:_0x37ae78}of this['_findSuggestions'](_0x288b26,'insertion'))if(_0x37ae78['isOwn']&&!_0x37ae78['isNextTo']){if(_0x54d8dd['isMultiRange']){const _0x4ad5be=_0x54d8dd['getRanges']()['filter'](_0x4a06a2=>'$graveyard'!=_0x4a06a2['root']['rootName']);_0x4ad5be['every'](_0x3100fa=>_0x288b26['containsRange'](_0x3100fa,!0x0))&&_0x54d8dd['discard']();if(_0x4ad5be['some'](_0x3c95f9=>_0x3c95f9['containsRange'](_0x288b26,!0x0))){const _0x2f5e13=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c0468,'accept');return this['forceDefaultExecution'](()=>_0x2f5e13([_0x288b26],null,_0x2097cf)),null;}}else{const _0x243b47=_0x288b26['getIntersection'](_0x54d8dd['getFirstRange']());null!==_0x243b47&&_0x54d8dd['_onDiscard']([_0x243b47],null,_0x2097cf);}}if(_0x288b26['detach'](),_0x288b26['isCollapsed']||'$graveyard'==_0x288b26['root']['rootName'])return null;let _0x5a7683=null,_0x286144=_0x288b26['start'],_0xd3636c=_0x288b26['end'];const _0x57c406=this['_findSuggestions'](_0x288b26,'deletion');for(const {suggestion:_0x3c31fa,meta:_0xc5490c}of _0x57c406){const _0x2843a3=this['_model']['createRange'](_0x286144,_0xd3636c);if(_0xc5490c['isOwn']&&(this['_mergeNestedSuggestions']||!_0xc5490c['containsRangeInObject']&&!_0xc5490c['isInsideObject'])){if(_0x3c31fa['isMultiRange']){if(!Lt(_0x3c31fa,_0x2097cf))continue;let _0x3ef46=!0x0;for(const _0x5454de of _0x3c31fa['getRanges']()){if(_0x5454de['containsRange'](_0x2843a3,!0x0))return _0x3c31fa;_0x2843a3['containsRange'](_0x5454de)||(_0x3ef46=!0x1);}_0x3ef46&&_0x3c31fa['discard']();}else{const _0xb5b091=_0x3c31fa['getFirstRange']();if(_0xb5b091['containsRange'](_0x2843a3,!0x0))return _0x3c31fa;if(!Lt(_0x3c31fa,_0x2097cf)){_0x2843a3['containsRange'](_0xb5b091)?_0x3c31fa['removeMarkers']():_0xb5b091['containsPosition'](_0x286144)?_0x286144=_0xb5b091['end']:_0xb5b091['containsPosition'](_0xd3636c)&&(_0xd3636c=_0xb5b091['start']);continue;}_0x286144=_0x286144['isBefore'](_0xb5b091['start'])?_0x286144:_0xb5b091['start'],_0xd3636c=_0xd3636c['isAfter'](_0xb5b091['end'])?_0xd3636c:_0xb5b091['end'],_0x2097cf=Object['assign']({},_0x3c31fa['attributes']),_0x5a7683?_0xb5b091['start']['isBefore'](_0x5a7683['getFirstRange']()['start'])?(_0x5a7683['removeMarkers'](),_0x5a7683=_0x3c31fa):_0x3c31fa['removeMarkers']():_0x5a7683=_0x3c31fa;}}}if(_0x5a7683)return this['_setSuggestionRange'](_0x5a7683,this['_model']['createRange'](_0x286144,_0xd3636c)),_0x5a7683;{const _0x4af511=_0x282b27(),_0x2ef864=this['_model']['createRange'](_0x286144,_0xd3636c),_0x26e205=_0x41c5b2['id'],_0x275720=_0x2c0468?'deletion:'+_0x2c0468:'deletion',_0x380bc5=this['_setSuggestionData']({'id':_0x4af511,'type':_0x275720,'createdAt':new Date(),'authorId':_0x26e205,'attributes':_0x2097cf});return this['_addSuggestionMarker'](_0x275720,_0x4af511,_0x26e205,_0x2ef864),_0x380bc5;}}['markMultiRangeDeletion'](_0x4505b7,_0x55a349='multi',_0x2a8e92={}){const _0x1a078e=this['editor']['plugins']['get']('Users')['me'],_0x565afd=_0x4505b7['map'](_0x2e9431=>new _0x4a275c(_0x2e9431['start'],_0x2e9431['end'])),_0x323704=new Set();for(const {suggestion:_0x2bfe4b,meta:_0x5d2f83}of this['_findSuggestions'](_0x565afd,'insertion'))_0x5d2f83['isOwn']&&!_0x5d2f83['isNextTo']&&_0x323704['add'](_0x2bfe4b);for(const _0x3d9a75 of _0x323704)if(_0x3d9a75['isMultiRange']){const _0x44477f=_0x3d9a75['getRanges']();(!_0x3d9a75['attributes']||!_0x3d9a75['attributes']['skipNestingCheck'])&&(_0x44477f['every'](_0x534929=>_0x565afd['some'](_0x38c931=>_0x38c931['containsRange'](_0x534929,!0x0)))&&_0x3d9a75['discard']());if(_0x565afd['every'](_0x162dd6=>_0x44477f['some'](_0x90b2c6=>_0x90b2c6['containsRange'](_0x162dd6,!0x0)))){const _0x2cbf1e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55a349,'accept');return this['forceDefaultExecution'](()=>_0x2cbf1e(_0x4505b7,null,_0x2a8e92)),null;}}else{const _0x47f7d8=_0x3d9a75['getFirstRange']();_0x565afd['some'](_0xf0dfaa=>_0xf0dfaa['containsRange'](_0x47f7d8,!0x0))&&_0x3d9a75['discard']();if(_0x565afd['every'](_0x16e49f=>_0x47f7d8['containsRange'](_0x16e49f,!0x0))){const _0x10a09e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55a349,'accept');return this['forceDefaultExecution'](()=>_0x10a09e(_0x565afd,null,_0x2a8e92)),null;}}const _0x2492a7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55a349,'join');let _0x36b1a8=null;for(const _0x440c9a of this['getSuggestions']())if(_0x440c9a['author']['id']==_0x1a078e['id']&&_0x440c9a['isInContent']&&'deletion'==_0x440c9a['type']&&_0x440c9a['subType']==_0x55a349&&Lt(_0x440c9a,_0x2a8e92)&&(_0x2492a7(_0x440c9a['getRanges'](),_0x565afd)||_0x2492a7(_0x565afd,_0x440c9a['getRanges']()))){if(_0x36b1a8){if(_0x440c9a['commentThread']&&_0x440c9a['commentThread']['length'])continue;for(const _0x62fa7a of _0x440c9a['getRanges']())_0x36b1a8['isIntersectingWithRange'](_0x62fa7a)||_0x36b1a8['addRange'](_0x62fa7a);_0x440c9a['removeMarkers']();}else{_0x36b1a8=_0x440c9a;for(const _0xeaefe2 of _0x565afd)_0x440c9a['isIntersectingWithRange'](_0xeaefe2)||_0x440c9a['addRange'](_0xeaefe2);}}if(_0x36b1a8)return _0x36b1a8;_0x323704['clear']();for(const {suggestion:_0x314bd8,meta:_0x457eef}of this['_findSuggestions'](_0x565afd,'deletion'))_0x457eef['isOwn']&&(this['_mergeNestedSuggestions']||!_0x457eef['containsRangeInObject']&&!_0x457eef['isInsideObject'])&&Lt(_0x314bd8,_0x2a8e92)&&_0x323704['add'](_0x314bd8);for(const _0x2ba3fa of _0x323704){const _0x4c6194=_0x2ba3fa['getRanges']();if(!_0x2a8e92||!_0x2a8e92['skipNestingCheck']){if(_0x565afd['every'](_0x11a932=>_0x4c6194['some'](_0x2e63e9=>_0x2e63e9['containsRange'](_0x11a932,!0x0))))return _0x2ba3fa;}(!_0x2ba3fa['attributes']||!_0x2ba3fa['attributes']['skipNestingCheck'])&&(_0x4c6194['every'](_0x5180f5=>_0x565afd['some'](_0x29780a=>_0x29780a['containsRange'](_0x5180f5,!0x0)))&&_0x2ba3fa['discard']());}const _0x3b2d77=_0x282b27(),_0x75fff0=_0x1a078e['id'],_0x25f4fc='deletion:'+_0x55a349,_0x1b98db=this['_setSuggestionData']({'id':_0x3b2d77,'type':_0x25f4fc,'createdAt':new Date(),'authorId':_0x75fff0,'attributes':_0x2a8e92});for(const _0x41c8eb of _0x565afd)_0x41c8eb['detach'](),_0x41c8eb['isCollapsed']||'$graveyard'==_0x41c8eb['root']['rootName']||this['_addSuggestionMarker'](_0x25f4fc,_0x3b2d77,_0x75fff0,_0x41c8eb,u['getMultiRangeId']());return _0x1b98db;}['markAttributeChange'](_0x5a46d5,_0x24816d,_0x372711,_0x2bbca2,_0x2b12f8){if(_0x5a46d5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2919c1=this['editor']['plugins']['get']('Users')['me']['id'],_0x1b722d=Array['from'](this['_suggestions']['values']())['filter'](_0x559480=>'attribute'==_0x559480['type']&&_0x559480['data']['key']==_0x24816d&&_0x559480['isIntersectingWithRange'](_0x5a46d5));if('default'===this['_trackFormatChanges']){const _0x2fbb1c=this['_findSuggestions'](_0x5a46d5,'insertion')['filter'](({meta:_0x43dfb0})=>_0x43dfb0['isOwn']&&!_0x43dfb0['isInsideObject']&&!_0x43dfb0['isNextTo'])['map'](({suggestion:_0x8598ac})=>_0x8598ac);_0x1b722d['unshift'](..._0x2fbb1c);}const _0x14211c=new Map([[_0x5a46d5,_0x372711]]);for(const _0x25d627 of _0x1b722d){const _0x51ab6a='attribute'==_0x25d627['type']?_0x25d627['data']['oldValue']:void 0x0,_0x5ee0f1=_0x25d627['getFirstRange'](),_0x5653e4=Array['from'](_0x14211c['keys']())['find'](_0x95f08a=>_0x95f08a['isIntersecting'](_0x5ee0f1));if(!_0x5653e4)continue;const _0x460038=_0x5653e4['getDifference'](_0x5ee0f1);this['_isBlockAttribute'](_0x24816d)&&'insertion'==_0x25d627['type']&&0x0!=_0x460038['length']||(_0x14211c['delete'](_0x5653e4),_0x460038['forEach'](_0xb70d90=>{_0x14211c['set'](_0xb70d90,_0x372711);}),'insertion'!=_0x25d627['type']&&_0x51ab6a!=_0x2bbca2&&_0x14211c['set'](_0x5653e4['getIntersection'](_0x5ee0f1),_0x51ab6a));}const _0x141af5=[];for(const [_0xebbdff,_0x1bfe20]of _0x14211c){const _0x1cb356=_0x282b27(),_0x6a3ac4={'key':_0x24816d,'oldValue':_0x1bfe20,'newValue':_0x2bbca2};_0x24816d['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':_0x24816d});const _0x332620=('attribute:'+(_0x24816d+'|'+Vt({'newValue':_0x2bbca2})))['substring'](0x0,0x3c),_0x2931e9=this['_setSuggestionData']({'id':_0x1cb356,'type':_0x332620,'data':_0x6a3ac4,'createdAt':new Date(),'authorId':_0x2919c1,'attributes':_0x2b12f8});_0x141af5['push'](_0x2931e9),this['_addSuggestionMarker'](_0x332620,_0x1cb356,_0x2919c1,_0xebbdff);}return _0x141af5;}['enableDefaultAttributesIntegration'](_0x2c6704){this['enableCommand'](_0x2c6704,(_0x117596,..._0x3649d3)=>{this['_recordAttributeChanges'](()=>{_0x117596(..._0x3649d3);});});}['registerBlockAttribute'](_0x19e9be){this['_blockAttributeKeys']['add'](_0x19e9be);}['registerInlineAttribute'](_0x5f06f5){this['_inlineAttributeKeys']['add'](_0x5f06f5);}['_getAttributeKey'](_0x52c4d8){return'attribute'==_0x52c4d8['type']?_0x52c4d8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x249e16,_0x3d26b4){const _0x513217=_0x249e16['getFirstMarker']();this['_model']['change'](_0x25e6e0=>{_0x25e6e0['updateMarker'](_0x513217,{'range':_0x3d26b4});});}['_addThreadToSuggestion'](_0x4ee63c){const _0x4fe97d=_0x4ee63c['id'],_0x4ba400=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4fe97d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4ba400,'threadId':_0x4fe97d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5e8759=this['_commentsRepository']['getCommentThread'](_0x4fe97d);_0x5e8759['unbind']('isRemovable'),_0x5e8759['isRemovable']=!0x1,_0x4ee63c['commentThread']=_0x5e8759;}['_checkSuggestionCorrectness'](_0x4d542d,_0x2c616d,_0x4d5b3a,_0x1b2aa1){if(_0x4d542d['type']!=_0x2c616d||_0x4d542d['subType']!=_0x4d5b3a||_0x4d542d['creator']['id']!=_0x1b2aa1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x130dd5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3e11ce,_0x4f1714){const _0x19af70=_0x3e11ce['getFirstRange']();if(_0x4f1714['isEqual'](_0x19af70))_0x3e11ce['removeMarkers']();else{if(_0x19af70['containsRange'](_0x4f1714)){const _0x12e683=this['_model']['createPositionAt'](_0x4f1714['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3e11ce,this['_model']['createRange'](_0x19af70['start'],_0x12e683));const _0x276d42=_0x282b27(),_0x2a3756=_0x3e11ce['creator']['id'],_0x4cedf2=_0x3e11ce['type']+':'+_0x3e11ce['subType'];this['_setSuggestionData']({'id':_0x276d42,'type':_0x4cedf2,'createdAt':new Date(),'authorId':_0x2a3756,'data':_0x3e11ce['data'],'attributes':_0x3e11ce['attributes']});const _0x3d3a5b=this['_model']['createPositionAt'](_0x4f1714['end']['parent'],'after'),_0x7ce006=this['_model']['createRange'](_0x3d3a5b,_0x19af70['end']);this['_addSuggestionMarker'](_0x4cedf2,_0x276d42,_0x2a3756,_0x7ce006);}else{if(_0x19af70['containsPosition'](_0x4f1714['start'])){const _0x293124=this['_model']['createPositionAt'](_0x4f1714['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3e11ce,this['_model']['createRange'](_0x19af70['start'],_0x293124));}else{const _0x2bb90e=this['_model']['createPositionAt'](_0x4f1714['end']['parent'],'after');this['_setSuggestionRange'](_0x3e11ce,this['_model']['createRange'](_0x2bb90e,_0x19af70['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x209f31){for(const {suggestion:_0x524834,meta:_0x23c7e8}of this['_findSuggestions'](_0x209f31,'insertion')){if(!_0x23c7e8['isOwn'])continue;const _0x45b8e0=_0x524834['getRanges']();for(const _0x1ec08a of _0x45b8e0)if(!_0x209f31['getDifference'](_0x1ec08a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1068ee){const _0x2f77c2=this['editor']['plugins']['get']('Users')['getUser'](_0x1068ee);if(!_0x2f77c2)throw new _0x130dd5('track-changes-user-not-found',this);return _0x2f77c2;}['_getExternalAuthor'](_0x178c0b){const _0x400bee=this['editor']['plugins']['get']('Users'),_0x16156d=_0x458b6b('external:'+_0x178c0b),_0x1b5968=_0x400bee['getUser'](_0x16156d);return _0x1b5968||_0x400bee['addUser']({'id':_0x16156d,'name':_0x178c0b});}['_createSuggestion'](_0x1c9c44,_0x3723ba,_0x3b3349,_0x587f34,_0x1a8d8c){const _0x52cb15=this['_getAuthorFromId'](_0x587f34),_0x2cdc42=this['_suggestionFactory']['buildSuggestion'](_0x1c9c44,_0x3723ba,_0x3b3349,_0x52cb15,_0x1a8d8c,_0x5726e1=>{this['_updateSuggestionData'](_0x3b3349,{'attributes':_0x5726e1});const _0x39445d=this['getSuggestion'](_0x3b3349);this['_joinWithAdjacentSuggestions'](new Set([_0x39445d])),this['_refreshSuggestionsChain'](new Set([_0x39445d]));});return this['listenTo'](_0x2cdc42,'accept',()=>{this['_updateSuggestionData'](_0x3b3349,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2cdc42,'discard',()=>{this['_updateSuggestionData'](_0x3b3349,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3b3349,_0x2cdc42),this['_suggestionState']['set'](_0x2cdc42,'notReady'),_0x2cdc42;}['_splitMarkerName'](_0x2b5c11){const _0x1eafa4=_0x2b5c11['split'](':');return{'group':_0x1eafa4[0x0],'type':_0x1eafa4[0x1],'subType':_0x1eafa4['length']>=0x5?_0x1eafa4[0x2]:null,'id':_0x1eafa4['length']<0x5?_0x1eafa4[0x2]:_0x1eafa4[0x3],'authorId':_0x1eafa4['length']<0x5?_0x1eafa4[0x3]:_0x1eafa4[0x4],'markerCount':0x6==_0x1eafa4['length']?_0x1eafa4[0x5]:null};}['_breakSuggestionMarker'](_0x6dda58,_0x34e35c,_0x53ec9d){const _0x39f8c1=_0x6dda58['getFirstRange'](),_0x5c20aa=_0x39f8c1['start'],_0x5df662=_0x39f8c1['end'];this['_setSuggestionRange'](_0x6dda58,this['_model']['createRange'](_0x5c20aa,_0x34e35c));const _0x9ba903=_0x282b27(),_0x479992=_0x6dda58['creator']['id'],_0x5efac9=_0x6dda58['type']+(_0x6dda58['subType']?':'+_0x6dda58['subType']:'');this['_setSuggestionData']({'id':_0x9ba903,'type':_0x5efac9,'createdAt':new Date(),'authorId':_0x479992,'originalSuggestionId':_0x6dda58['id'],'attributes':_0x6dda58['attributes'],'data':_0x6dda58['data']});const _0x5dbd3c=this['_getAttributeKey'](_0x6dda58);('formatBlock'==_0x6dda58['type']||_0x5dbd3c&&this['_isBlockAttribute'](_0x5dbd3c))&&(_0x53ec9d=this['_model']['createPositionBefore'](_0x53ec9d['parent'])),this['_addSuggestionMarker'](_0x5efac9,_0x9ba903,_0x479992,this['_model']['createRange'](_0x53ec9d,_0x5df662));}['_findSuggestions'](_0x58e465,_0x5d1abf=null){const _0x3bd029=[],_0x4fb910=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x58e465)||(_0x58e465=[_0x58e465]);for(const _0x2776a0 of this['getSuggestions']()){if(!_0x2776a0['isInContent'])continue;if(_0x5d1abf&&_0x2776a0['type']!=_0x5d1abf)continue;let _0x45cbb4=!0x1;for(const _0x512ffa of _0x2776a0['getRanges']()){for(const _0x508082 of _0x58e465){const _0x2d3ee2=_0x508082['start']['isEqual'](_0x512ffa['end'])||_0x508082['end']['isEqual'](_0x512ffa['start']);if(_0x2d3ee2||_0x508082['getIntersection'](_0x512ffa)){const _0x2fcfb1=_0x508082['containsRange'](_0x512ffa)&&Rt(this['_model']['schema'],_0x512ffa['start'],_0x508082),_0x27f492=_0x512ffa['containsRange'](_0x508082)&&Rt(this['_model']['schema'],_0x508082['start'],_0x512ffa);_0x3bd029['push']({'suggestion':_0x2776a0,'meta':{'isOwn':_0x4fb910==_0x2776a0['author'],'isNextTo':_0x2d3ee2,'isInsideObject':_0x2fcfb1,'containsRangeInObject':_0x27f492}}),_0x45cbb4=!0x0;break;}}if(_0x45cbb4)break;}}return _0x3bd029;}['_addSuggestionMarker'](_0xa76115,_0x1893dc,_0x376830,_0x24e962,_0x366151){this['_model']['change'](_0x7cd0ef=>{let _0x33d7d9='suggestion:'+_0xa76115+':'+_0x1893dc+':'+_0x376830;_0x366151&&(_0x33d7d9=_0x33d7d9+':'+_0x366151),_0x7cd0ef['addMarker'](_0x33d7d9,{'range':_0x24e962,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1fc697){const _0x5e8ee1=_0x1fc697['previous'],_0x216466=_0x1fc697['next'];_0x1fc697['previous']=null,_0x1fc697['next']=null,null!=_0x5e8ee1&&_0x5e8ee1['next']==_0x1fc697&&(_0x5e8ee1['next']=_0x216466),null!=_0x216466&&_0x216466['previous']==_0x1fc697&&(_0x216466['previous']=_0x5e8ee1),'ready'==this['_suggestionState']['get'](_0x1fc697)&&(this['_suggestionState']['set'](_0x1fc697,'removed'),this['fire']('suggestionUnloaded',_0x1fc697,_0x5e8ee1,_0x216466));}['_setSuggestionData'](_0x43f445){const _0x18838e=_0x43f445['id'],_0x500106=this['addSuggestionData'](_0x43f445);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1db18b=this['editor']['plugins']['get']('PendingActions'),_0x90609f=_0x500106['hasComments'],_0x575646=_0x500106['subType']?_0x500106['type']+':'+_0x500106['subType']:_0x500106['type'],_0x1e9f3e=this['editor']['locale'],_0x1086d5=_0x1db18b['add'](o(_0x1e9f3e,'PENDING_ACTION_SUGGESTION')),_0x3c1c07={'id':_0x18838e,'type':_0x575646,'hasComments':_0x90609f,'data':_0x43f445['data']||null,'originalSuggestionId':_0x43f445['originalSuggestionId']||null,'attributes':_0x500106['attributes']};this['_adapter']['addSuggestion'](_0x3c1c07)['then'](_0x192ea8=>{_0x500106['_saved']=!0x0,_0x1db18b['remove'](_0x1086d5),_0x192ea8&&_0x192ea8['createdAt']&&(this['_suggestions']['get'](_0x18838e)['createdAt']=_0x192ea8['createdAt']);})['catch'](_0x307499=>{throw _0x2166bc('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x500106['discard']();}),_0x500106['stopListening'](),this['_suggestions']['delete'](_0x500106['id']),this['_suggestionState']['delete'](_0x500106),_0x307499;});}return _0x500106;}['_isBlockAttribute'](_0x38e8b3){return this['_blockAttributeKeys']['has'](_0x38e8b3);}['_updateSuggestionData'](_0x5b0a40,_0x5f400a){const _0x35098f=this['editor']['plugins']['get']('PendingActions'),_0x1068d0=this['getSuggestion'](_0x5b0a40);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1068d0['_saved']){const _0x380051=_0x35098f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5b0a40,_0x5f400a)['then'](()=>{_0x35098f['remove'](_0x380051);});}else _0x1068d0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5b0a40,_0x5f400a);});}}['_getSuggestionData'](_0x22205e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x130dd5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22205e);}['_handleNewSuggestionMarker'](_0x1bf2d0){const {id:_0xe51405,type:_0x3d07db,subType:_0x58ec12,authorId:_0x492eca}=this['_splitMarkerName'](_0x1bf2d0),_0x52d752=this['_suggestions']['get'](_0xe51405)||this['_createSuggestion'](_0x3d07db,_0x58ec12,_0xe51405,_0x492eca,{});switch(this['_checkSuggestionCorrectness'](_0x52d752,_0x3d07db,_0x58ec12,_0x492eca),this['_suggestionState']['get'](_0x52d752)){case'notReady':this['_getSuggestionData'](_0xe51405)['then'](_0x190605=>{let _0x4e86bc=Promise['resolve']();_0x190605['hasComments']&&(_0x4e86bc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xe51405})),_0x4e86bc['then'](()=>{this['addSuggestionData'](_0x190605)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x52d752,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xe51405,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x52d752,'ready'),this['fire']('suggestionLoaded',_0x52d752);break;case'ready':this['fire']('suggestionChanged',_0x52d752);}return _0x52d752['addMarkerName'](_0x1bf2d0),_0x52d752;}['_refreshSuggestionsChain'](_0x54d68e){const _0x4c6a88=Array['from'](_0x54d68e),_0x2bc3c4=_0x4c6a88['filter'](_0x43a100=>'attribute'==_0x43a100['type']);this['_refreshAttributeSuggestionsChain'](_0x2bc3c4);const _0x514d15=_0x4c6a88['filter'](_0x505e1e=>!_0x505e1e['isMultiRange']&&'attribute'!=_0x505e1e['type']),_0x39e023=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x584a21=>!_0x584a21['isMultiRange']&&'attribute'!=_0x584a21['type']),_0x186253=_0x39e023['filter'](_0x20f0b7=>!_0x54d68e['has'](_0x20f0b7)),_0x3041fd=new Map(_0x39e023['map'](_0x594432=>[_0x594432,this['_suggestionFactory']['getSuggestionCallback'](_0x594432['type'],_0x594432['subType'],'chain')])),_0x43a3a8=new Map(_0x39e023['map'](_0x471009=>[_0x471009,_0x471009['getFirstRange']()])),_0x1f8b1b=new Set(),_0x4886fb=new Set();for(let _0x1eacd1=0x0;_0x1eacd1<_0x514d15['length'];_0x1eacd1++)_0x43e8dc(_0x514d15[_0x1eacd1],_0x514d15,_0x1eacd1+0x1);for(let _0x32177b=0x0;_0x32177b<_0x514d15['length'];_0x32177b++)_0x43e8dc(_0x514d15[_0x32177b],_0x186253,0x0);const _0x475fad=new Set();for(let _0x178d96=0x0;_0x178d96<_0x514d15['length'];_0x178d96++){const _0x1f1515=_0x514d15[_0x178d96];!_0x4886fb['has'](_0x1f1515)&&_0x1f1515['previous']&&(_0x475fad['add'](_0x1f1515['previous']),_0x1f1515['previous']['next']===_0x1f1515&&(_0x1f1515['previous']['next']=null),_0x1f1515['previous']=null),!_0x1f8b1b['has'](_0x1f1515)&&_0x1f1515['next']&&(_0x475fad['add'](_0x1f1515['next']),_0x1f1515['next']['previous']===_0x1f1515&&(_0x1f1515['next']['previous']=null),_0x1f1515['next']=null);}function _0x43e8dc(_0x19c089,_0x118e16,_0x217181){for(let _0x4964a7=_0x217181;_0x4964a7<_0x118e16['length'];_0x4964a7++){const _0x12f891=_0x12a1ff(_0x19c089,_0x118e16[_0x4964a7]);_0x12f891&&(_0x12f891[0x0]['next']=_0x12f891[0x1],_0x12f891[0x1]['previous']=_0x12f891[0x0],_0x1f8b1b['add'](_0x12f891[0x0]),_0x4886fb['add'](_0x12f891[0x1]));}}function _0x12a1ff(_0x581b28,_0x3b8e9f){if(_0x581b28['author']['id']!==_0x3b8e9f['author']['id'])return null;const _0x22d716=_0x3041fd['get'](_0x581b28)(_0x581b28,_0x3b8e9f,_0x43a3a8['get'](_0x581b28),_0x43a3a8['get'](_0x3b8e9f));if(!_0x22d716)return null;return _0x3041fd['get'](_0x3b8e9f)(_0x581b28,_0x3b8e9f,_0x43a3a8['get'](_0x581b28),_0x43a3a8['get'](_0x3b8e9f))?_0x22d716[0x1]['commentThread']&&_0x22d716[0x1]['commentThread']['length']?null:_0x22d716:null;}_0x475fad['size']&&this['_refreshSuggestionsChain'](_0x475fad);}['_refreshAttributeSuggestionsChain'](_0x2859a6){if(0x0==_0x2859a6['length'])return;const _0x27725c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9dc482=>'attribute'==_0x9dc482['type']&&_0x9dc482['_isDataLoaded']),_0x21ffdb=[],_0x2213e4=new Map();for(const _0x30ef0b of _0x27725c){const _0x3a919b=_0x458b6b(_0x30ef0b['attributes']);_0x2213e4['has'](_0x3a919b)||(_0x2213e4['set'](_0x3a919b,_0x21ffdb['length']),_0x21ffdb['push']([]));const _0x22ee63=_0x2213e4['get'](_0x3a919b);_0x21ffdb[_0x22ee63]['push'](_0x30ef0b);}!(function(){_0x21ffdb['sort']((_0x4f37c5,_0x23474c)=>{const _0x56efba=_0x4f37c5[0x0]['createdAt'],_0xf9edd4=_0x23474c[0x0]['createdAt'];return _0x56efba==_0xf9edd4?_0x4f37c5[0x0]['attributes']['groupId']<_0x23474c[0x0]['attributes']['groupId']?-0x1:0x1:_0x56efba<_0xf9edd4?-0x1:0x1;});for(const _0x421377 of _0x21ffdb)_0x421377['sort']((_0x49ef31,_0x2a0e89)=>_0x49ef31['id']<_0x2a0e89['id']?-0x1:0x1);}());for(let _0x5836d5=0x0;_0x5836d5<_0x21ffdb['length'];_0x5836d5++){if(0x0==_0x21ffdb[_0x5836d5]['length'])continue;const _0x360162=[];for(let _0xb70e58=_0x5836d5+0x1;_0xb70e58<_0x21ffdb['length'];_0xb70e58++)0x0!=_0x21ffdb[_0xb70e58]['length']&&_0x49914c(_0x21ffdb[_0x5836d5],_0x21ffdb[_0xb70e58])&&_0x360162['push'](_0xb70e58);for(const _0x3d1196 of _0x360162)_0x21ffdb[_0x5836d5]=_0x21ffdb[_0x5836d5]['concat'](_0x21ffdb[_0x3d1196]),_0x21ffdb[_0x3d1196]=[];}for(const _0xacfd46 of _0x21ffdb)for(let _0x305e8e=0x0;_0x305e8e<_0xacfd46['length'];_0x305e8e++)_0xacfd46[_0x305e8e]['next']=_0xacfd46[_0x305e8e+0x1]||null;for(const _0xbf5399 of _0x21ffdb)for(let _0xc6bfa5=0x0;_0xc6bfa5<_0xbf5399['length'];_0xc6bfa5++)_0xbf5399[_0xc6bfa5]['previous']=_0xbf5399[_0xc6bfa5-0x1]||null;function _0x49914c(_0x3c6d54,_0x33cd37){if(_0x3c6d54[0x0]['attributes']['groupId']!==_0x33cd37[0x0]['attributes']['groupId']&&_0x3c6d54[0x0]['author']!==_0x33cd37[0x0]['author'])return!0x1;if(!function(_0x1eb63f,_0x1038d5){if(!_0x1eb63f['hasComments']&&!_0x1038d5['hasComments'])return!0x0;if(_0x1eb63f['hasComments']&&_0x1038d5['hasComments'])return!0x1;if(_0x1eb63f['hasComments']&&_0x1038d5['createdAt']<_0x1eb63f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1038d5['hasComments']&&_0x1eb63f['createdAt']<_0x1038d5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c6d54[0x0],_0x33cd37[0x0]))return!0x1;const _0xf0282f=Bt(_0x3c6d54[0x0]['attributes'],'groupId'),_0xf31b41=Bt(_0x33cd37[0x0]['attributes'],'groupId');if(!_0x5b7b57(_0xf0282f,_0xf31b41))return!0x1;return!!_0x3c6d54['every'](_0x5b47e2=>_0x33cd37['some'](_0x5daf07=>_0x5b47e2['getFirstRange']()['isEqual'](_0x5daf07['getFirstRange']())))&&_0x33cd37['every'](_0x5654dd=>_0x3c6d54['some'](_0xba42a6=>_0x5654dd['getFirstRange']()['isEqual'](_0xba42a6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3ec6e3){const _0x155e62=Array['from'](_0x3ec6e3),_0x5c7c40=this['getSuggestions']({'skipNotAttached':!0x0}),_0x329280=_0x5c7c40['filter'](_0x567eaf=>!_0x3ec6e3['has'](_0x567eaf)),_0x882688=new Map(_0x155e62['map'](_0x9bb5c4=>[_0x9bb5c4,this['_suggestionFactory']['getSuggestionCallback'](_0x9bb5c4['type'],_0x9bb5c4['subType'],'join')])),_0x3ad767=new Map(_0x5c7c40['map'](_0x485187=>[_0x485187,_0x485187['getRanges']()]));for(let _0x388d85=0x0;_0x388d85<_0x155e62['length'];_0x388d85++){if(_0x14365e(this,_0x155e62[_0x388d85],_0x155e62,_0x388d85+0x1))return!0x0;}for(let _0x2e0b46=0x0;_0x2e0b46<_0x155e62['length'];_0x2e0b46++){if(_0x14365e(this,_0x155e62[_0x2e0b46],_0x329280,0x0))return!0x0;}return!0x1;function _0x14365e(_0x425cda,_0x54af0a,_0x102013,_0x13ad0c){for(let _0x2725f7=_0x13ad0c;_0x2725f7<_0x102013['length'];_0x2725f7++){const _0x49f232=_0x102013[_0x2725f7];if(_0x49f232['type']!==_0x54af0a['type']||_0x49f232['author']['id']!==_0x54af0a['author']['id']||_0x49f232['subType']!==_0x54af0a['subType'])continue;if(!Pt(_0x54af0a,_0x49f232,['groupId']))continue;if('attribute'==_0x54af0a['type']&&_0x54af0a['data']['oldValue']!=_0x49f232['data']['oldValue'])continue;if('attribute'==_0x54af0a['type']&&_0x425cda['_isBlockAttribute'](_0x54af0a['data']['key']))continue;if('formatBlock'==_0x54af0a['type']){const _0x529077=_0x425cda['editor']['model'],_0x444a2d=_0x54af0a['getContainedElement']();if(_0x444a2d&&(_0x529077['schema']['isObject'](_0x444a2d)||_0x529077['schema']['isLimit'](_0x444a2d)))continue;}const _0x4fd18e=_0x882688['get'](_0x54af0a),_0x37596e=_0x3ad767['get'](_0x54af0a),_0x50bb77=_0x3ad767['get'](_0x49f232),_0x4ffd40=_0x54af0a['commentThread']&&_0x54af0a['commentThread']['length'],_0x467a30=_0x49f232['commentThread']&&_0x49f232['commentThread']['length'];if(!_0x4ffd40&&_0x4fd18e(_0x50bb77,_0x37596e))return _0x425cda['_joinSuggestions'](_0x49f232,_0x54af0a),_0x3ad767['delete'](_0x54af0a),!0x0;if(!_0x467a30&&_0x4fd18e(_0x37596e,_0x50bb77))return _0x425cda['_joinSuggestions'](_0x54af0a,_0x49f232),_0x3ad767['delete'](_0x49f232),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1b639c,_0x1ec00e){if(_0x1b639c['isMultiRange']){for(const _0x98b2b7 of _0x1ec00e['getRanges']())_0x1b639c['addRange'](_0x98b2b7);}else{const _0x24bad5=_0x1ec00e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1b639c,this['_model']['createRange'](_0x1b639c['getFirstRange']()['start'],_0x24bad5));}_0x1ec00e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x65bb1f,_0x1a5135){const _0x2e4150=_0x65bb1f['startsWith']('format')||_0x65bb1f['startsWith']('attribute')?'FORMATTING':_0x65bb1f['toUpperCase']();return o(this['editor']['locale'],_0x1a5135+'_'+_0x2e4150+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x37d257=this['editor'];if(!_0x37d257['ui'])return;const {ariaLiveAnnouncer:_0x434957}=_0x37d257['ui'];_0x50c4fa(this['_model'],({left:_0xe74c5,entered:_0x5b01df})=>{for(const _0x1a6aff of _0xe74c5){const {group:_0x3239d9,type:_0x173e8d}=this['_splitMarkerName'](_0x1a6aff['name']);if('suggestion'===_0x3239d9){_0x434957['announce'](this['_getMarkerAnnouncementText'](_0x173e8d,'LEAVE'));break;}}for(const _0x220905 of _0x5b01df){const {group:_0x294c80,type:_0x1972a7}=this['_splitMarkerName'](_0x220905['name']);if('suggestion'===_0x294c80){_0x434957['announce'](this['_getMarkerAnnouncementText'](_0x1972a7,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1716de){if(this['_recordAttributeSuggestions'])return!0x1;const _0x24f994=this['editor'],_0x6e018d=_0x24f994['model']['document']['differ']['getChanges']();if(0x0==_0x6e018d['length'])return!0x1;const _0x574aa2=[],_0x38ab75=_0x6e018d['filter'](_0x328763=>'attribute'==_0x328763['type']),_0x36b9b6=_0x6e018d['filter'](_0x47fc15=>'insert'==_0x47fc15['type']&&'$text'!=_0x47fc15['name']),_0xe5d779=_0x6e018d['filter'](_0x4569c2=>'remove'==_0x4569c2['type']&&'$text'!=_0x4569c2['name']);for(const _0xc86051 of _0x38ab75)_0x574aa2['push']({'key':_0xc86051['attributeKey'],'newValue':_0xc86051['attributeNewValue'],'oldValue':_0xc86051['attributeOldValue'],'range':Ot(_0xc86051['range'],_0x24f994['model'])});for(const _0x569431 of _0x36b9b6){const _0x3e63e8=_0xe5d779['find'](_0x583791=>_0x583791['position']['isEqual'](_0x569431['position']));_0x3e63e8&&_0x574aa2['push']({'key':m,'newValue':_0x569431['name'],'oldValue':_0x3e63e8['name'],'range':_0x24f994['model']['createRangeOn'](_0x569431['position']['nodeAfter'])});}return 0x0!=_0x574aa2['length']&&this['_reduceExistingSuggestions'](_0x1716de,_0x574aa2);}['_processAttributeSuggestions'](_0x383c28){let _0xc20264=!0x1;const _0x4dc477=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2d2da3=>_0x2d2da3['data']['newRange']&&_0x2d2da3['name']['startsWith']('suggestion:attribute:'));for(const _0xf7009 of _0x4dc477){const {subType:_0x463295,id:_0x33af9a}=this['_splitMarkerName'](_0xf7009['name']),_0x38a26f=_0x463295['split']('|')[0x0];for(const _0x218cbf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x218cbf['id']!=_0x33af9a&&'attribute'==_0x218cbf['type']&&_0x218cbf['data']&&_0x218cbf['data']['key']==_0x38a26f&&_0x218cbf['getFirstRange']()['isIntersecting'](_0xf7009['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x218cbf,_0xf7009['data']['newRange'],_0x383c28),_0xc20264=!0x0);}return _0xc20264;}['_recordAttributeChanges'](_0xad1d55){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0xad1d55();}['_isRegisteredAttribute'](_0x42815e){const _0x4f641e=this['_isBlockAttribute'](_0x42815e),_0x46303d=this['_inlineAttributeKeys']['has'](_0x42815e);return _0x4f641e||_0x46303d;}['_reduceExistingSuggestions'](_0x1578f2,_0x5b70f9){if(0x0==_0x5b70f9['length'])return!0x1;let _0x49995a=!0x1;for(const _0x3bf05b of _0x5b70f9){const _0x25bdab=this['_findSuggestions'](_0x3bf05b['range'],'attribute')['filter'](_0x3e3668=>!_0x3e3668['meta']['isNextTo'])['map'](_0x8f23da=>_0x8f23da['suggestion']),_0x2e5521=_0x458b6b({'newValue':_0x3bf05b['newValue']});_0x25bdab['filter'](_0x58e950=>{const [_0x52c001,_0x43defb]=_0x58e950['subType']['split']('|');return _0x52c001==_0x3bf05b['key']&&_0x43defb!=_0x2e5521;})['forEach'](_0x19019f=>{this['_reduceSuggestionAttributeRange'](_0x19019f,_0x3bf05b['range'],_0x1578f2),_0x49995a=!0x0;});}return _0x49995a;}['_reduceSuggestionAttributeRange'](_0x470735,_0x55e2ff,_0x289519){const _0x1e8b47=_0x470735['getFirstRange']()['getDifference'](_0x55e2ff);0x0!==_0x1e8b47['length']?0x1!==_0x1e8b47['length']?this['_breakSuggestionMarker'](_0x470735,_0x55e2ff['start'],_0x55e2ff['end']):this['_setSuggestionRange'](_0x470735,_0x1e8b47[0x0]):_0x289519['removeMarker'](_0x470735['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1d84e4){this['_editor']=_0x1d84e4,this['_model']=_0x1d84e4['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3c93c0,_0x242e99,_0x30f5f3,_0x14f53f,_0x35eb0e,_0x2d3cf0){return new u(this['_model'],{'type':_0x3c93c0,'subType':_0x242e99,'id':_0x30f5f3,'author':_0x14f53f,'creator':_0x14f53f,'attributes':_0x35eb0e,'onAttributesChange':_0x2d3cf0,'onAccept':(..._0x3c1e61)=>this['getSuggestionCallback'](_0x3c93c0,_0x242e99,'accept')(..._0x3c1e61),'onDiscard':(..._0x4ea626)=>this['getSuggestionCallback'](_0x3c93c0,_0x242e99,'discard')(..._0x4ea626)});}['registerCustomCallback'](_0x4b8c0c,_0x1c7e62,_0x2765ab,_0xb2bf8c){const _0x489b55=_0x4b8c0c+':'+_0x1c7e62+':'+_0x2765ab;this['_customCallbacks']['set'](_0x489b55,_0xb2bf8c);}['getSuggestionCallback'](_0x179677,_0x5a91b8,_0x23d1d2){const _0x2fd691=_0x179677+':'+_0x5a91b8+':'+_0x23d1d2;return this['_customCallbacks']['get'](_0x2fd691)||this['_defaultCallbacks']['get'](_0x179677+':'+_0x23d1d2);}['_registerDefaultCallbacks'](){const _0x4dcfef=()=>!0x1,_0x1a18cf=_0x348086=>{_0x348086['sort']((_0x42dce2,_0x9ccb82)=>_0x42dce2['start']['isBefore'](_0x9ccb82['start'])?0x1:-0x1),this['_model']['change'](_0x2c3b63=>{for(const _0x40a901 of _0x348086){let _0x5ab6c3;_0x5ab6c3=_0x40a901['end']['isAtEnd']&&_0x40a901['end']['parent']==_0x40a901['start']['nodeAfter']?_0x2c3b63['createSelection'](_0x40a901['start']['nodeAfter'],'on'):_0x2c3b63['createSelection'](_0x40a901),this['_model']['deleteContent'](_0x5ab6c3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1acbbe=(_0x338904,_0x549f81)=>{_0x549f81&&this['_model']['change'](_0x37d893=>{const {commandName:_0x4213d4,commandParams:_0xca8bcc=[]}=_0x549f81,_0x542662=_0x338904['map'](_0x263399=>(Tt(_0x263399)&&(_0x263399=this['_model']['createRange'](_0x263399['end'])),_0x263399))['filter'](_0xab5b9f=>'$graveyard'!==_0xab5b9f['root']['rootName']);if(_0x542662['length']<0x1)return;const _0x30b16e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x29313b=>_0x4a275c['fromRange'](_0x29313b));_0x37d893['setSelection'](_0x542662);for(const _0x398270 of this['_editor']['commands']['commands']())_0x398270['refresh']();_0xca8bcc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4213d4,..._0xca8bcc);const _0x36c363=_0x30b16e['filter'](_0x4ecf6d=>'$graveyard'!=_0x4ecf6d['root']['rootName']);_0x36c363['length']>0x0&&_0x37d893['setSelection'](_0x36c363);for(const _0x36402f of _0x30b16e)_0x36402f['detach']();});},_0x2ce9e8=(_0x35785b,_0x19a8ad)=>0x1==_0x35785b['length']&&0x1==_0x19a8ad['length']&&_0x35785b[0x0]['end']['isEqual'](_0x19a8ad[0x0]['start']),_0x591841=(_0x4e8589,_0x23b9f7,_0x170d20,_0x4933e5)=>Ft(_0x4e8589,_0x23b9f7,_0x170d20,_0x4933e5,this['_model'])?[_0x4e8589,_0x23b9f7]:Ft(_0x23b9f7,_0x4e8589,_0x4933e5,_0x170d20,this['_model'])?[_0x23b9f7,_0x4e8589]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4dcfef),this['_defaultCallbacks']['set']('insertion:discard',_0x1a18cf),this['_defaultCallbacks']['set']('insertion:join',_0x2ce9e8),this['_defaultCallbacks']['set']('insertion:chain',_0x591841),this['_defaultCallbacks']['set']('deletion:accept',_0x1a18cf),this['_defaultCallbacks']['set']('deletion:discard',_0x4dcfef),this['_defaultCallbacks']['set']('deletion:join',_0x2ce9e8),this['_defaultCallbacks']['set']('deletion:chain',_0x591841),this['_defaultCallbacks']['set']('formatInline:accept',_0x1acbbe),this['_defaultCallbacks']['set']('formatInline:discard',_0x4dcfef),this['_defaultCallbacks']['set']('formatInline:join',_0x2ce9e8),this['_defaultCallbacks']['set']('formatInline:chain',_0x4dcfef),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1acbbe),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4dcfef),this['_defaultCallbacks']['set']('formatBlock:join',_0x2ce9e8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4dcfef),this['_defaultCallbacks']['set']('attribute:accept',_0x4dcfef),this['_defaultCallbacks']['set']('attribute:discard',(_0x2fa11d,_0x5e0bb1)=>{if(!_0x5e0bb1)return;const _0x404bf2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xb3e4f2=>{if(_0x5e0bb1['key']==m)for(const _0x46f5c3 of _0x2fa11d){const _0x331a9e=_0x46f5c3['start']['nodeAfter'],_0x359a08=_0x5e0bb1['oldValue'];_0xb3e4f2['rename'](_0x331a9e,_0x359a08);}else{if(_0x404bf2['_isBlockAttribute'](_0x5e0bb1['key'])){for(const _0xb52947 of _0x2fa11d)void 0x0!==_0x5e0bb1['oldValue']?_0xb3e4f2['setAttribute'](_0x5e0bb1['key'],_0x5e0bb1['oldValue'],_0xb52947['start']['nodeAfter']):_0xb3e4f2['removeAttribute'](_0x5e0bb1['key'],_0xb52947['start']['nodeAfter']);}else{for(const _0x3f0ba7 of _0x2fa11d)_0x5e0bb1['oldValue']?_0xb3e4f2['setAttribute'](_0x5e0bb1['key'],_0x5e0bb1['oldValue'],_0x3f0ba7):_0xb3e4f2['removeAttribute'](_0x5e0bb1['key'],_0x3f0ba7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2ce9e8);}}function Rt(_0x631b03,_0x21c21e,_0x4a8e80){for(const _0xf418fc of _0x21c21e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xf418fc['root']==_0xf418fc)return!0x1;if(!_0x4a8e80['containsItem'](_0xf418fc))return!0x1;if(_0x631b03['isObject'](_0xf418fc)||_0x631b03['isLimit'](_0xf418fc))return!0x0;}return!0x1;}function Tt(_0x35a65f){return _0x35a65f['end']['parent']==_0x35a65f['start']['nodeAfter']&&_0x35a65f['end']['isAtStart'];}function Et(_0x1aab56,_0x34bf92,_0x4d18a0,_0x18e10f){const _0x5cb546=_0x3927d1=>!_0x3927d1['item']['is']('$textProxy')&&!_0x18e10f['isObject'](_0x3927d1['item']),_0x40974f=_0x1aab56['start']['getLastMatchingPosition'](_0x5cb546),_0x1aae1a=_0x1aab56['end']['getLastMatchingPosition'](_0x5cb546,{'direction':'backward'});return(!_0x1aab56['start']['isEqual'](_0x40974f)||!_0x1aab56['end']['isEqual'](_0x1aae1a))&&(_0x40974f['isBefore'](_0x1aae1a)?_0x4d18a0['updateMarker'](_0x34bf92,{'range':_0x4d18a0['createRange'](_0x40974f,_0x1aae1a)}):_0x4d18a0['removeMarker'](_0x34bf92),!0x0);}function Vt(_0x49d78c){return _0x458b6b(_0x49d78c);}function Ut(_0x50eddf){const _0x5dec00=_0x50eddf['start']['nodeAfter'];return _0x5dec00&&_0x5dec00['is']('element');}function Ot(_0x320750,_0x3c9cd3){return null==_0x320750['end']['nodeBefore']&&_0x320750['end']['parent']==_0x320750['start']['nodeAfter']?Gt(_0x320750['start']['nodeAfter'],_0x3c9cd3):_0x320750;}function Gt(_0x117b05,_0x2fc24f){const _0x1e5a7f=_0x2fc24f['schema']['isObject'](_0x117b05)||_0x2fc24f['schema']['isSelectable'](_0x117b05);return _0x2fc24f['createRange'](_0x2fc24f['createPositionAt'](_0x117b05,'before'),_0x1e5a7f?_0x2fc24f['createPositionAfter'](_0x117b05):_0x2fc24f['createPositionAt'](_0x117b05,'end'));}function Ft(_0x49eca0,_0xbf2402,_0x170951,_0x4b58b2,_0x39ece2){if(!Pt(_0x49eca0,_0xbf2402))return!0x1;if(_0x170951['end']['isEqual'](_0x4b58b2['start']))return!0x0;if(_0x49eca0['type']!=_0xbf2402['type'])return!0x1;if(!_0x170951['end']['isTouching'](_0x4b58b2['start']))return!0x1;const _0x27707d=_0x39ece2['createRange'](_0x170951['end'],_0x4b58b2['start'])['getWalker']();for(const _0x25f212 of _0x27707d)if(['elementStart','elementEnd']['includes'](_0x25f212['type'])&&_0x39ece2['schema']['isLimit'](_0x25f212['item']))return!0x1;return!0x0;}function Pt(_0x13702b,_0x55c1b5,_0x57d2a5=[]){return!(!_0x13702b['_isDataLoaded']||!_0x55c1b5['_isDataLoaded'])&&_0x5b7b57(Bt(_0x13702b['attributes'],_0x57d2a5),Bt(_0x55c1b5['attributes'],_0x57d2a5));}function Lt(_0x334bd7,_0x385ea6){const _0x986ce6=Ht(_0x334bd7['attributes']),_0x5b5d2a=Ht(_0x385ea6);if(!_0x334bd7['_isDataLoaded'])return!0x1;for(const _0x3d6654 of Object['keys'](_0x5b5d2a))if(!_0x5b7b57(_0x986ce6[_0x3d6654],_0x5b5d2a[_0x3d6654]))return!0x1;return!0x0;}function Ht(_0x186883){const _0x2ba32a=Object['assign']({},_0x186883);return delete _0x2ba32a['skipNestingCheck'],delete _0x2ba32a['tablePasteChainId'],_0x2ba32a;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x302a97(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x22af79,_0x16ef9d,_0x1eb7a5,_0x392d40){super(),this['model']=_0x16ef9d,this['view']=_0x1eb7a5,this['commentThreadController']=_0x392d40,this['_editor']=_0x22af79,this['_acceptCommand']=_0x22af79['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x22af79['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2f7f0c,_0x1ebdfa)=>_0x2f7f0c||_0x1ebdfa),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x275fc6=>_0x275fc6&&this['_editor']['model']['canEditAt'](_0x16ef9d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x543938=>_0x543938&&this['_editor']['model']['canEditAt'](_0x16ef9d['getRanges']())),this['_pendingAction']=null,_0x1eb7a5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1eb7a5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1eb7a5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1eb7a5,'change:isDirty',()=>{_0x1eb7a5['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 _0x2f7edd=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2f7edd);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x467aa5{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0xbbc287,_0x37bf98,_0x1c2ff1,_0x22a5f3){super(_0xbbc287),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x37bf98['authoredAt']),this['bind']('authoredAt')['to'](_0x37bf98),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x37bf98,this['_localUser']=_0x1c2ff1,this['_config']=_0x22a5f3,_0x22a5f3['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:_0x496ff4}=this['_config'];this['commentsListView']=new _0x496ff4(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',_0x255aea=>_0x255aea+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x16c63d,_0x4758b8)=>_0x16c63d||!!_0x4758b8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4a3f97}=this['_config'],_0xfd4497=new _0x4a3f97(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5d1d8f=_0xfd4497['commentInputView'];return _0xfd4497['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5d1d8f,'value',(_0x219088,_0x52c50c,_0x4a78f0)=>!!_0x4a78f0||_0x219088&&!_0x52c50c),_0x5d1d8f['on']('submit',(_0x2233cf,_0x370052)=>{this['fire']('addComment',_0x370052),_0x5d1d8f['editor']['setData']('');}),_0x5d1d8f['on']('cancel',()=>this['focus']()),_0x5d1d8f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xfd4497;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0xb642c3,_0x26402b,_0x4bf961,_0x200ddf){super(_0xb642c3,_0x26402b,_0x4bf961,_0x200ddf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x287dde=>_0x287dde&&_0x287dde[0x0]?_0x287dde[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xa6be05,_0x550641)=>{let _0x453571='';for(const _0x24d416 of _0xa6be05)_0x453571+='<p>'+ds(_0x24d416['content'],_0x24d416['color'])+'</p>';return _0x550641?_0x453571:_0x54eb76(_0x453571,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0xb642c3,'Accept\x20suggestion'),_0x285fdb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0xb642c3,'Discard\x20suggestion'),_0x285fdb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x209c63(_0xb642c3,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x280722=this['bindTemplate'],_0x32d785=[{'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':_0x280722['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x280722['to']('authoredAt',_0x2c9b31=>this['_config']['formatDateTime'](_0x2c9b31))}]}]},{'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']&&_0x32d785['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4f170d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x280722['if']('isActive','ck-suggestion-wrapper--active'),_0x280722['to']('type',_0xd23df=>'ck-suggestion-'+_0xd23df),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':_0x32d785}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4f170d['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)),_0x4f170d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x506f9c,_0x3d49e3,_0x1c434f)=>{this['_descriptionElement']['innerHTML']=_0x1c434f;});}['_createButton'](_0x49c459,_0x24fa2c,_0x40b021,_0x3c64c0,_0x8a0aca){const _0x47798d=new _0x401646(this['locale']);return _0x47798d['set']({'label':_0x49c459,'icon':_0x24fa2c,'tooltip':!0x0,'tooltipPosition':_0x8a0aca}),_0x47798d['extendTemplate']({'attributes':{'class':_0x40b021}}),_0x47798d['on']('execute',()=>{this['fire'](_0x3c64c0,this['_model']['id']);}),_0x47798d;}['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(_0x3297a2,_0x16bd11){let _0x4e7551='';return _0x4e7551+=_0x3297a2['split']('*')['map']((_0x39ac81,_0x45570a)=>_0x45570a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x39ac81)+'</span>':us(_0x39ac81))['join'](''),_0x16bd11&&(_0x4e7551+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x16bd11['value']+'\x22\x20title=\x22'+_0x16bd11['title']+'\x22></span>'),_0x4e7551;}function us(_0x5cf131){const _0x301edb=document['createElement']('span');return _0x301edb['innerText']=_0x5cf131,_0x301edb['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 _0x4c8a1d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2ef3b4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x240352){super(_0x240352),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c6732=this['editor']['config'];_0x3c6732['define']('trackChanges.SuggestionThreadView',ne),_0x3c6732['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c6732['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x39908b,_0xafcfa1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x514b4f,_0x1b757f]of this['_handleControllerBuffer']){const _0x35989d=this['_suggestionToController']['has'](_0x514b4f);_0x35989d||_0x1b757f?_0x35989d&&_0x1b757f&&this['_destroyController'](_0x514b4f):this['_initializeController'](_0x514b4f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x39908b,_0xafcfa1);}['init'](){const _0x2b410a=this['editor'],_0x41c22a=_0x2b410a['plugins']['get']('TrackChangesEditing'),_0x24bbda=_0x2b410a['plugins']['get']('Annotations'),_0x477b5d=_0x2b410a['plugins']['get']('EditorAnnotations'),_0x359d9e=_0x2b410a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x477b5d['addSourceCollector'](()=>{const _0x3b16b9=[];for(const [_0x1b08d3,_0x447586]of Array['from'](this['_suggestionToController'])){const _0x2f826f=_0x1b08d3['getAllAdjacentSuggestions'](),_0x211e9c=[];for(const _0x265fcb of _0x2f826f){if(!_0x265fcb['isInContent'])continue;if(_0x265fcb['isMultiRange']){_0x211e9c['push'](..._0x265fcb['getRanges']());continue;}const _0x4d2956=_0x265fcb['getFirstRange']();if(_0x211e9c['length']>0x0){const _0x3770f1=_0x211e9c[0x0]['getJoined'](_0x4d2956);if(_0x3770f1){_0x211e9c[0x0]=_0x3770f1;continue;}}_0x211e9c['push'](_0x4d2956);}_0x3b16b9['push']([_0x447586['view'],_0x211e9c]);}return _0x3b16b9;}),this['listenTo'](_0x41c22a,'suggestionLoaded',(_0x6f6844,_0xf10641)=>{this['listenTo'](_0xf10641,'change:previous',(_0xe654b8,_0x4a749c,_0x434f0c,_0x27902c)=>{_0xf10641['isInContent']&&(null==_0x434f0c?(this['_updateController'](_0x27902c['head']),this['_handleSuggestionControllerDelayed'](_0xf10641,!0x1)):(this['_updateController'](_0x434f0c['head']),null==_0x27902c&&this['_handleSuggestionControllerDelayed'](_0xf10641,!0x0)));}),null!==_0xf10641['previous']?this['_updateController'](_0xf10641['head']):this['_handleSuggestionControllerDelayed'](_0xf10641,!0x1);}),this['listenTo'](_0x41c22a,'suggestionUnloaded',(_0x574711,_0x66da19,_0x4c6245)=>{this['stopListening'](_0x66da19,'change:previous'),this['_handleControllerBuffer']['delete'](_0x66da19),this['_suggestionToController']['has'](_0x66da19)&&this['_destroyController'](_0x66da19),_0x4c6245&&this['_updateController'](_0x4c6245['head']);}),this['listenTo'](_0x41c22a,'suggestionChanged',(_0x291d77,_0x318556)=>{this['_updateController'](_0x318556);}),this['listenTo'](_0x24bbda,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x359d9e,'addComment',(_0x3d66f3,{threadId:_0x173aa7,isFromAdapter:_0x16d16a})=>{if(_0x16d16a||!_0x41c22a['hasSuggestion'](_0x173aa7))return;const _0x335181=_0x41c22a['getSuggestion'](_0x173aa7);this['_suggestionToController']['get'](_0x335181)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5daf42=this['editor']['plugins']['get']('Annotations'),_0x4d4da8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a1ace=Array['from'](_0x5daf42['activeAnnotations'],_0xbe113b=>_0xbe113b['innerView'])['filter'](_0x14713c=>this['_viewToController']['has'](_0x14713c)),_0x4322bf=[];for(const _0x45cce7 of _0x2a1ace){const _0x31f2f1=this['_viewToController']['get'](_0x45cce7)['model']['getAllAdjacentSuggestions']();_0x4322bf['push'](..._0x31f2f1['reduce']((_0x7b0a3e,_0x3bfc78)=>[..._0x7b0a3e,..._0x3bfc78['getMarkerNames']()],[]));}_0x4d4da8['activeMarkers']=_0x4322bf;}['_addUIComponentsToFactory'](){const _0x368261=this['editor'],_0x442ebd=_0x368261['locale'],_0x4d358a=o(_0x442ebd,'Track\x20changes'),_0x6c7cdd=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x4d358a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x442ebd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x442ebd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x442ebd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x442ebd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2a0ac3 of _0x6c7cdd)if(ae(_0x2a0ac3)){const _0x2f9fb1=_0x368261['commands']['get'](_0x2a0ac3['model']['commandName']);_0x2a0ac3['model']['bind']('isOn','isEnabled')['to'](_0x2f9fb1,'value','isEnabled');}_0x368261['ui']['componentFactory']['add']('trackChanges',_0x43b9aa=>this['_createToolbarButton'](_0x43b9aa,_0x6c7cdd,_0x4d358a)),_0x368261['ui']['componentFactory']['add']('menuBar:trackChanges',_0x55fadd=>this['_createMenuBarMenu'](_0x55fadd,_0x6c7cdd,_0x4d358a));}['_createToolbarButton'](_0x5e61dc,_0x32a4e8,_0x344b09){const _0x170fc9=zt(_0x5e61dc,Zt),_0x18120e=this['editor']['commands']['get']('trackChanges');_0x170fc9['buttonView']['set']({'tooltip':_0x344b09,'label':_0x344b09,'icon':ie}),_0x170fc9['buttonView']['bind']('isOn')['to'](_0x18120e,'value'),_0x170fc9['buttonView']['on']('execute',()=>{_0x18120e['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x170fc9,_0x32a4e8,{'role':'menu'});const _0xbbf978=[];for(const _0x1e81f5 of _0x32a4e8)ae(_0x1e81f5)&&_0xbbf978['push'](this['editor']['commands']['get'](_0x1e81f5['model']['commandName']));const _0x4cfd04=_0x170fc9['buttonView'];return _0x4cfd04['actionView']['unbind']('isEnabled'),_0x4cfd04['arrowView']['unbind']('isEnabled'),_0x4cfd04['actionView']['bind']('isEnabled')['to'](_0x18120e,'isEnabled'),_0x4cfd04['arrowView']['bind']('isEnabled')['toMany'](_0xbbf978,'isEnabled',(..._0xb7bbf2)=>_0xb7bbf2['some'](_0x596d7b=>_0x596d7b)),_0x170fc9['on']('execute',_0xd0467e=>{this['editor']['execute'](_0xd0467e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x170fc9;}['_createMenuBarMenu'](_0x3cc864,_0x971d4e,_0x9f1a5d){const _0x346f53=new Kt(_0x3cc864),_0x43ec78=this['editor']['commands']['get']('trackChanges');_0x346f53['buttonView']['set']({'label':_0x9f1a5d,'icon':ie});const _0x545f62=new Qt(_0x3cc864);for(const _0x143e7f of _0x971d4e){if('separator'==_0x143e7f['type']){_0x545f62['items']['add'](new Jt(_0x3cc864));continue;}const _0x472378=new Xt(_0x3cc864,_0x346f53),_0x3cae2f=new Yt(_0x3cc864),_0x6bab4a=_0x143e7f['model'];_0x3cae2f['bind'](...Object['keys'](_0x6bab4a))['to'](_0x6bab4a),_0x3cae2f['delegate']('execute')['to'](_0x346f53),_0x3cae2f['on']('execute',()=>{this['editor']['execute'](_0x6bab4a['commandName']),this['editor']['editing']['view']['focus']();}),_0x472378['children']['add'](_0x3cae2f),_0x545f62['items']['add'](_0x472378);}return _0x346f53['bind']('isEnabled')['to'](_0x43ec78,'isEnabled'),_0x346f53['panelView']['children']['add'](_0x545f62),_0x346f53;}['_initializeController'](_0x2beb9a){const _0x35776d=this['editor'],_0x30f12c=_0x35776d['config'],_0x57c3be=_0x35776d['plugins']['get']('Annotations'),_0x5ee12c=_0x35776d['plugins']['get']('CommentsRepository'),_0x26c46f=_0x35776d['plugins']['get']('EditorAnnotations'),_0x16b1f8=_0x35776d['plugins']['get'](_0x2ef3b4)['me'],_0x528098=_0x30f12c['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x171a6c,CommentThreadInputView:_0x41ae3f}=_0x35776d['plugins']['get']('CommentsUI');let _0x16a2c1,_0x107523;this['_annotationViews']['has'](_0x2beb9a['id'])?(_0x107523=this['_annotationViews']['get'](_0x2beb9a['id']),_0x16a2c1=_0x107523['mainView']):(_0x16a2c1=new _0x528098(_0x35776d['locale'],_0x2beb9a,_0x16b1f8,{'disableComments':this['_disableComments'],'editorConfig':_0x30f12c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x30f12c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x30f12c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x30f12c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x23f537(_0x30f12c['get']('locale')),'CommentView':_0x30f12c['get']('comments')['CommentView'],'CommentsListView':_0x171a6c,'CommentThreadInputView':_0x41ae3f}),_0x16a2c1['acceptButton']['on']('execute',()=>{_0x35776d['editing']['view']['focus']();}),_0x16a2c1['discardButton']['on']('execute',()=>{_0x35776d['editing']['view']['focus']();}),_0x107523=_0x57c3be['createAnnotationView'](this['editor']['locale'],_0x16a2c1),_0x107523['bind']('isDirty')['to'](_0x16a2c1,'isDirty'),_0x107523['bind']('length')['to'](_0x16a2c1),_0x107523['bind']('type')['to'](_0x16a2c1,'type',_0x1e6731=>'suggestion-'+_0x1e6731),this['_annotationViews']['set'](_0x2beb9a['id'],_0x107523));const _0xefbb91=_0x5ee12c['createCommentThreadController'](_0x2beb9a['commentThread'],_0x16a2c1),_0x3805e7=new oe(_0x35776d,_0x2beb9a,_0x16a2c1,_0xefbb91),_0x5e263a=_0x2beb9a['getAllAdjacentSuggestions']()['filter'](_0x552b4d=>_0x552b4d['isInContent']);_0x16a2c1['descriptionParts']=_0x35776d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5e263a),this['_suggestionToController']['set'](_0x2beb9a,_0x3805e7),this['_viewToController']['set'](_0x16a2c1,_0x3805e7);const _0xc09144=_0x57c3be['createAnnotation']({'view':_0x107523,'target':()=>{const _0x55a455=[],_0x408560=_0x2beb9a['getAllAdjacentSuggestions']()['filter'](_0x4a9251=>_0x4a9251['isInContent']);for(const _0x1ee2f3 of _0x408560)_0x55a455['push'](..._0x1ee2f3['getMarkers']());return _0x378d9f(_0x35776d['editing'],_0x55a455);},'type':()=>'suggestion-'+_0x3805e7['view']['type']});_0x5ee12c['_bindAnnotationToEditors'](_0x16a2c1,_0xc09144),_0x57c3be['add'](_0xc09144),_0x26c46f['registerAnnotation'](_0xc09144);}['_destroyController'](_0x1b29d5){const _0x4fca83=this['editor']['plugins']['get']('CommentsRepository'),_0xffa6d4=this['editor']['plugins']['get']('Annotations'),_0x4e84bf=this['_suggestionToController']['get'](_0x1b29d5),_0x1ad48c=_0x4e84bf['view'],_0x351567=_0xffa6d4['getByInnerView'](_0x1ad48c);_0x4fca83['_unbindEditors'](_0x1ad48c),_0x351567&&_0xffa6d4['remove'](_0x351567),this['_suggestionToController']['delete'](_0x1b29d5),this['_viewToController']['delete'](_0x1ad48c),_0x4e84bf['destroy']();}['_updateController'](_0x157579){if(!_0x157579['isInContent']||!this['_suggestionToController']['has'](_0x157579))return;const _0x40040a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fa81e=this['_suggestionToController']['get'](_0x157579),_0x2980f2=_0x157579['getAllAdjacentSuggestions']();_0x2fa81e['view']['descriptionParts']=_0x40040a['descriptionFactory']['getDescriptions'](_0x2980f2);}['destroy'](){for(const _0x5c34f2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c34f2);for(const _0x5e3b68 of this['_annotationViews']['values']())_0x5e3b68['mainView']['destroy']();super['destroy']();}}function ae(_0x2cede1){return'model'in _0x2cede1;}class k extends _0x4c8a1d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x1c507c){this['editor']['plugins']['get'](p)['adapter']=_0x1c507c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x32b9d1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x32b9d1);}['getSuggestions']({skipNotAttached:_0x136919=!0x1,toJSON:_0x29fa1c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x136919,'toJSON':_0x29fa1c});}['getSuggestion'](_0x4ad7da){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4ad7da);}}const T=['Pagination'];class P extends _0x4c8a1d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x46f1a6=this['editor'];if(_0x46f1a6['config']['define']('trackChangesData.editorCreator',_0x41dfcf=>{const _0xa78255=_0x46f1a6['model']['document']['getRootNames']()['reduce']((_0x109d42,_0x560133)=>(_0x109d42[_0x560133]='',_0x109d42),{});return _0x46f1a6['constructor']['create'](_0xa78255,_0x41dfcf);}),'function'!=typeof _0x46f1a6['config']['get']('trackChangesData')['editorCreator'])throw new _0x130dd5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3884d6){return N(this['editor'],!0x0,_0x3884d6);}['getDataWithDiscardedSuggestions'](_0x47c2af){return N(this['editor'],!0x1,_0x47c2af);}}class D extends _0x4c8a1d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x30d926){super(_0x30d926),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(_0x18436f){return void 0x0!==_0x18436f['getRootsAttributes'];}async function N(_0x331d94,_0x7105ce,_0x4a66ff){const _0x38af24=_0x27dcb8(_0x331d94,T);_0x38af24['plugins']['push'](p,D),_0x38af24['rootsAttributes']=v(_0x331d94)?_0x331d94['getRootsAttributes']():void 0x0;const _0x5bbf73=document['createDocumentFragment'](),_0x3a1553=_0x331d94['config']['get']('trackChangesData')['editorCreator'],_0x13b95f=await _0x3a1553(_0x38af24,()=>function(_0x206f35){const _0x411af5=document['createElement']('div');return _0x206f35['appendChild'](_0x411af5),_0x411af5;}(_0x5bbf73));!function(_0x3379e1,_0x4dcd82){const _0x39cb60=_0x3379e1['model']['document']['getRootNames']()['reduce']((_0x30d40a,_0x4fdc54)=>(_0x30d40a[_0x4fdc54]=_0x3379e1['data']['get']({'rootName':_0x4fdc54}),_0x30d40a),{}),_0x59537b=_0x3379e1['plugins']['get']('Users')['users']['map'](_0xac3609=>({'id':_0xac3609['id'],'name':_0xac3609['name']})),_0x7ae8d1=_0x3379e1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x335ca8=_0x3379e1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4311e9=_0x4dcd82['plugins']['get']('Users'),_0x26e506=_0x4dcd82['plugins']['get']('TrackChangesEditing'),_0x114290=_0x4dcd82['plugins']['get']('CommentsRepository');for(const _0x5cad7c of _0x59537b)_0x4311e9['getUser'](_0x5cad7c['id'])||_0x4311e9['addUser'](_0x5cad7c);_0x4311e9['me']||_0x4311e9['useAnonymousUser']();for(const _0x371962 of _0x335ca8)_0x114290['addCommentThread'](_0x371962);for(const _0x5cff31 of _0x7ae8d1)_0x26e506['addSuggestionData'](_0x5cff31);_0x4dcd82['data']['set'](_0x39cb60);}(_0x331d94,_0x13b95f),_0x13b95f['execute'](_0x7105ce?'acceptAllSuggestions':'discardAllSuggestions');const _0x89403a=v(_0x13b95f)?_0x13b95f['getFullData'](_0x4a66ff):_0x13b95f['data']['get'](_0x4a66ff);return await _0x13b95f['destroy'](),_0x89403a;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|