@ckeditor/ckeditor5-track-changes 43.2.0-alpha.7 → 43.2.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 +10 -10
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.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
|
-
_0x1be9a8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x9dac4e,_0x47afab){super(),this['id']=_0x47afab['id'],this['type']=_0x47afab['type'],this['subType']=_0x47afab['subType']||null,this['author']=_0x47afab['author'],this['creator']=_0x47afab['creator']||_0x47afab['author'],this['isExternal']=Boolean(_0x47afab['attributes']&&_0x47afab['attributes']['@external']),this['data']=null,this['_model']=_0x9dac4e,this['_onAccept']=_0x47afab['onAccept'],this['_onDiscard']=_0x47afab['onDiscard'],this['_onAttributesChange']=_0x47afab['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x47afab['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 _0x4d83c3=this;for(;_0x4d83c3['previous'];)_0x4d83c3=_0x4d83c3['previous'];return _0x4d83c3;}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'](_0x48af9a){this['_markerNames']['add'](_0x48af9a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2a5f04=>this['_model']['markers']['get'](_0x2a5f04))['filter'](_0x3ad658=>_0x3ad658);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b1a1c=>{for(const _0x4a60d9 of this['getMarkers']())_0x2b1a1c['removeMarker'](_0x4a60d9);}),this['_markerNames']['clear']();}['removeMarker'](_0x41b831){this['_model']['change'](_0x261f7b=>{_0x261f7b['removeMarker'](_0x41b831);}),this['_markerNames']['delete'](_0x41b831);}['addRange'](_0x461ee4){const _0x21d3e5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x21d3e5),this['_model']['change'](_0x5ae7b3=>{_0x5ae7b3['addMarker'](_0x21d3e5,{'range':_0x461ee4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x297193){for(const _0x3756ca of this['getRanges']())if(_0x3756ca['isIntersecting'](_0x297193))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3ff47b=>_0x3ff47b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x38fedb,_0x49993e)=>[..._0x38fedb,..._0x49993e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2fc914=this['getRanges']();if(0x1!=_0x2fc914['length'])return null;const _0x1659ee=_0x2fc914[0x0],_0x308813=_0x1659ee['start']['nodeAfter'],_0xc4f2e2=_0x1659ee['end']['nodeBefore'];return _0x308813 instanceof _0x99059?_0x308813!=_0xc4f2e2?null:_0x308813: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 _0x265779=[];let _0x523412=this['head'];for(;_0x523412;)_0x265779['push'](_0x523412),_0x523412=_0x523412['next'];return _0x265779;}['setAttribute'](_0x15c259,_0x5b4ae1){const _0x3917aa=_0x543239(this['attributes']);_0x16b581(_0x3917aa,_0x15c259,_0x5b4ae1),_0x536f58(_0x3917aa,this['attributes'])||(this['attributes']=_0x3917aa,this['_onAttributesChange'](_0x3917aa));}['removeAttribute'](_0x2c3940){const _0x2eccdb=_0x543239(this['attributes']);_0x46c99b(_0x2eccdb,_0x2c3940),_0x536f58(_0x2eccdb,this['attributes'])||(this['attributes']=_0x2eccdb,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 _0x447718()['substr'](0x1,0x5);}}function o(_0x4ec656,_0x1f27c6,_0x100ff1){const t=_0x4ec656['t'];switch(_0x1f27c6){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',_0x100ff1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x100ff1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x100ff1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x100ff1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x100ff1);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',_0x100ff1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x100ff1);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',_0x100ff1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x100ff1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x100ff1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x100ff1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x100ff1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x100ff1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x100ff1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x100ff1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x100ff1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x100ff1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x100ff1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x100ff1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x100ff1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x100ff1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x100ff1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x100ff1);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'},_0x100ff1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x100ff1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x100ff1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x100ff1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x100ff1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x100ff1);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'},_0x100ff1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x100ff1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x100ff1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x100ff1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x100ff1);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'},_0x100ff1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x100ff1);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'},_0x100ff1);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'},_0x100ff1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x100ff1);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'},_0x100ff1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x100ff1);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'},_0x100ff1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x100ff1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x100ff1);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x100ff1);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'},_0x100ff1);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'},_0x100ff1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x100ff1);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x100ff1);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x100ff1);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x100ff1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1f27c6;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5f013f,_0xb1492){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5f013f,this['_locale']=_0xb1492;}['getDescriptions'](_0x51121e){const _0x3b4bb4=[],_0x2c18ae=new Set(),_0x13353e=new Set();for(let _0x4829f8=0x0;_0x4829f8<_0x51121e['length'];_0x4829f8++){const _0x4f2fea=_0x51121e[_0x4829f8];if(!_0x4f2fea['isInContent'])continue;const _0x1f03b0=this['_handleCustomCallbackDescription'](_0x4f2fea);if(_0x1f03b0){if(null!=_0x4f2fea['subType']){if(_0x2c18ae['has'](_0x4f2fea['subType']))continue;_0x2c18ae['add'](_0x4f2fea['subType']);}_0x3b4bb4['push'](_0x1f03b0);}else{if('attribute'!=_0x4f2fea['type'])'insertion'!=_0x4f2fea['type']&&'deletion'!=_0x4f2fea['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3b4bb4,_0x4f2fea,_0x51121e[_0x4829f8+0x1]);else{const _0x369e23=_0x4f2fea['data']['key'];if(_0x13353e['has'](_0x369e23))continue;_0x13353e['add'](_0x4f2fea['data']['key']),_0x369e23==m?this['_handleRenameSuggestionDescription'](_0x3b4bb4,_0x4f2fea):this['_handleAttributeSuggestionDescription'](_0x3b4bb4,_0x4f2fea);}}}return this['_resolveDescriptionItems'](_0x3b4bb4);}['registerDescriptionCallback'](_0xc9a57e){this['_customCallbacks']['push'](_0xc9a57e);}['registerElementLabel'](_0x31e4b2,_0x2369c2,_0x5c1dd2=_0x2e92e4['normal']){'function'==typeof _0x31e4b2?_0x264771(this['_itemLabelsCallbacks'],{'matchingCallback':_0x31e4b2,'label':_0x2369c2,'priority':_0x5c1dd2}):this['_itemLabels']['set'](_0x31e4b2,_0x2369c2);}['registerAttributeLabel'](_0x49c54d,_0x26cfce){this['_attributeLabels']['set'](_0x49c54d,_0x26cfce);}['getItemLabel'](_0x294936,_0x751df3=0x1){let _0x588769;for(const _0x1de23d of this['_itemLabelsCallbacks'])if(_0x1de23d['matchingCallback'](_0x294936)){_0x588769=_0x1de23d['label'];break;}return _0x588769||(_0x588769=this['_itemLabels']['get'](_0x294936['name'])),_0x588769?_0x588769(_0x751df3):0x1!==_0x751df3?_0x751df3+'\x20'+_0x294936['name']+'s':''+_0x294936['name'];}['_addDescriptionItems'](_0x472961,_0x2dc981){const _0x42fcc8=_0x2dc981['getFirstRange']()['getWalker'](),_0x182d37='insertion'==_0x2dc981['type']?'add':'remove';for(const _0x5740b9 of _0x42fcc8){const _0x3eb441=_0x5740b9['item'],_0x100e1f=_0x472961[_0x472961['length']-0x1];if(_0x3eb441['is']('$textProxy'))_0x100e1f&&_0x100e1f['type']['indexOf']('Container')>-0x1&&_0x472961['pop'](),_0x100e1f&&'text'==_0x100e1f['type']?_0x100e1f[_0x182d37]+=_0x3eb441['data']:_0x472961['push']({'type':'text','add':'add'==_0x182d37?_0x3eb441['data']:'','remove':'remove'==_0x182d37?_0x3eb441['data']:''});else{if(this['_schema']['isObject'](_0x3eb441)){const _0x4b0d05=_0x3eb441;if(_0x100e1f&&_0x100e1f['type']['indexOf']('Container')>-0x1&&_0x472961['pop'](),'elementEnd'==_0x5740b9['type'])continue;_0x100e1f&&_0x100e1f['type']==_0x182d37+'Object'&&_0x100e1f['element']['name']==_0x4b0d05['name']?_0x100e1f['quantity']++:_0x472961['push']({'type':_0x182d37+'Object','element':_0x4b0d05,'quantity':0x1}),_0x42fcc8['skip'](_0x4bda5a=>!('elementEnd'==_0x4bda5a['type']&&_0x4bda5a['item']==_0x3eb441));}else{if(this['_schema']['checkChild'](_0x3eb441,'$text')||_0x3eb441['is']('element','softBreak')){const _0x242f58=_0x3eb441;if('add'==_0x182d37&&'elementStart'==_0x5740b9['type']||'remove'==_0x182d37&&'elementEnd'==_0x5740b9['type'])continue;if(_0x100e1f&&-0x1==_0x100e1f['type']['indexOf']('Container')){'text'==_0x100e1f['type']&&(_0x100e1f[_0x182d37]+='\x0a');continue;}let _0x266ae1;if(_0x266ae1='add'==_0x182d37?_0x242f58['nextSibling']&&!this['_schema']['isObject'](_0x242f58['nextSibling'])?_0x242f58['nextSibling']:null:_0x242f58['previousSibling']&&!this['_schema']['isObject'](_0x242f58['previousSibling'])?_0x242f58['previousSibling']:null,_0x242f58['isEmpty']||_0x266ae1&&_0x266ae1['isEmpty']){const _0x5e3472=_0x266ae1&&_0x266ae1['isEmpty']?_0x266ae1:_0x242f58;_0x100e1f&&_0x100e1f['type']==_0x182d37+'EmptyContainer'&&_0x100e1f['element']['name']==_0x5e3472['name']?_0x100e1f['quantity']++:_0x472961['push']({'type':_0x182d37+'EmptyContainer','element':_0x5e3472,'quantity':0x1});}else _0x472961['push']({'type':_0x182d37+'Container','element':_0x242f58});}}}}}['_resolveDescriptionItems'](_0x168173){const _0x1651e3=this['_locale'],_0x45c296=[],_0x37f826=[],_0x103fd1=[];for(const _0x15c1e8 of _0x168173)switch(_0x15c1e8['type']){case'text':if(_0x15c1e8['add']=_0x15c1e8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x15c1e8['remove']=_0x15c1e8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x15c1e8['add']&&''!=_0x15c1e8['remove']){_0x45c296['push']({'type':'replace','content':o(_0x1651e3,'REPLACE_TEXT',['\x22'+_0x15c1e8['remove']+'\x22','\x22'+_0x15c1e8['add']+'\x22'])});continue;}if(null!=_0x15c1e8['add']['match'](/^ +$/)){_0x45c296['push']({'type':'insertion','content':o(_0x1651e3,'*Insert:*\x20%0',o(_0x1651e3,'ELEMENT_SPACE',_0x15c1e8['add']['length']))});continue;}if(null!=_0x15c1e8['remove']['match'](/^ +$/)){_0x45c296['push']({'type':'deletion','content':o(_0x1651e3,'*Remove:*\x20%0',o(_0x1651e3,'ELEMENT_SPACE',_0x15c1e8['remove']['length']))});continue;}if(''!=_0x15c1e8['add']){_0x45c296['push']({'type':'insertion','content':o(_0x1651e3,'*Insert:*\x20%0','\x22'+_0x15c1e8['add']+'\x22')});continue;}_0x45c296['push']({'type':'deletion','content':o(_0x1651e3,'*Remove:*\x20%0','\x22'+_0x15c1e8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x45c296['push']({'type':'insertion','content':o(_0x1651e3,'*Insert:*\x20%0',this['getItemLabel'](_0x15c1e8['element'],_0x15c1e8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x45c296['push']({'type':'deletion','content':o(_0x1651e3,'*Remove:*\x20%0',this['getItemLabel'](_0x15c1e8['element'],_0x15c1e8['quantity']))});continue;case'addContainer':_0x45c296['push']({'type':'insertion','content':o(_0x1651e3,'*Split:*\x20%0',this['getItemLabel'](_0x15c1e8['element'],_0x15c1e8['quantity']))});continue;case'removeContainer':_0x45c296['push']({'type':'deletion','content':o(_0x1651e3,'*Merge:*\x20%0',this['getItemLabel'](_0x15c1e8['element'],_0x15c1e8['quantity']))});continue;case'addFormat':_0x37f826['push'](_0x15c1e8['key']);continue;case'removeFormat':_0x103fd1['push'](_0x15c1e8['key']);continue;default:_0x45c296['push'](_0x15c1e8);}if(_0x37f826['length']){const _0x95d1cf=_0x37f826['map'](_0x5ee85a=>this['_attributeLabels']['has'](_0x5ee85a)?this['_attributeLabels']['get'](_0x5ee85a):_0x5ee85a)['join'](',\x20');_0x45c296['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x95d1cf)});}if(_0x103fd1['length']){const _0x2dd04f=_0x103fd1['map'](_0x41b96c=>this['_attributeLabels']['has'](_0x41b96c)?this['_attributeLabels']['get'](_0x41b96c):_0x41b96c)['join'](',\x20');_0x45c296['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2dd04f)});}return _0x45c296;}['_handleCustomCallbackDescription'](_0x2bddfd){for(const _0x82281f of this['_customCallbacks']){const _0x3f28c4=_0x82281f(_0x2bddfd);if(_0x3f28c4&&'type'in _0x3f28c4)return _0x3f28c4;}}['_handleAttributeSuggestionDescription'](_0x22ce0b,_0x424da2){const _0x4fdf16=_0x424da2['data'],_0x36403a=void 0x0===_0x4fdf16['newValue']?'removeFormat':'addFormat';_0x22ce0b['push']({'type':_0x36403a,'key':_0x4fdf16['key']});}['_handleRenameSuggestionDescription'](_0x506379,_0x567083){_0x506379['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x567083['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x393d37,_0x1f2849,_0x19a8f3){if(this['_addDescriptionItems'](_0x393d37,_0x1f2849),_0x19a8f3&&_0x19a8f3['getFirstRange']()&&!_0x1f2849['getFirstRange']()['end']['isEqual'](_0x19a8f3['getFirstRange']()['start'])){const _0x170f7b=_0x393d37[_0x393d37['length']-0x1],_0x43a6f0='insertion'==_0x1f2849['type']?'add':'remove';_0x170f7b&&'text'==_0x170f7b['type']&&(_0x170f7b[_0x43a6f0]+='\x0a');}}}class V extends _0x28108f{['afterInit'](){const _0x1924b3=this['editor'],_0x2acd62=_0x1924b3['plugins']['get']('TrackChangesEditing');_0x1924b3['commands']['get']('showAIAssistant')&&_0x2acd62['enableCommand']('showAIAssistant');}}class U extends _0x28108f{['afterInit'](){const _0x2c63bf=this['editor'],_0x5329b7=_0x2c63bf['locale'];if(!_0x2c63bf['plugins']['has']('AlignmentEditing'))return;const _0x15400a=_0x2c63bf['plugins']['get']('TrackChangesEditing');_0x15400a['enableDefaultAttributesIntegration']('alignment'),_0x15400a['registerBlockAttribute']('alignment'),_0x15400a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5329b7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x480c4c=this['editor'],_0x3755af=_0x480c4c['locale'];_0x480c4c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c456d=>{if('formatBlock'!=_0x5c456d['type'])return;const {data:_0x352d0f}=_0x5c456d;if(_0x352d0f&&'alignment'==_0x352d0f['commandName']){const _0x503e6f=_0x352d0f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3755af,'*Format:*\x20%0',function(_0x28ef88){switch(_0x28ef88){case'left':return o(_0x3755af,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3755af,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3755af,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3755af,'FORMAT_JUSTIFY_TEXT');}}(_0x503e6f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x28108f{['afterInit'](){const _0x438067=this['editor'],_0xa2094e=_0x438067['plugins']['get']('TrackChangesEditing'),_0x21ce0c=_0x438067['locale'];for(const _0x57e5b9 of ti){if(!_0x438067['plugins']['has'](_0x57e5b9))continue;const _0x2afc74=_0x57e5b9['slice'](0x0,-0x7)['toLowerCase'](),_0x775af7='FORMAT_'+_0x2afc74['toUpperCase']();_0xa2094e['enableDefaultAttributesIntegration'](_0x2afc74),_0xa2094e['registerInlineAttribute'](_0x2afc74),_0xa2094e['descriptionFactory']['registerAttributeLabel'](_0x2afc74,o(_0x21ce0c,_0x775af7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a93b7=this['editor'],_0x28426a=_0x2a93b7['locale'],_0x34751=_0x2a93b7['plugins']['get']('TrackChangesEditing');function _0x10635d(_0x14f660,_0x51156a){_0x34751['descriptionFactory']['registerDescriptionCallback'](_0x3b85d0=>{if('formatInline'!=_0x3b85d0['type'])return;const {data:_0x2198a0}=_0x3b85d0;return _0x2198a0&&_0x2198a0['commandName']===_0x14f660?_0x2198a0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28426a,'*Format:*\x20%0',_0x51156a)}:{'type':'format','content':o(_0x28426a,'*Remove\x20format:*\x20%0',_0x51156a)}:void 0x0;});}_0x10635d('bold',o(_0x28426a,'FORMAT_BOLD')),_0x10635d('italic',o(_0x28426a,'FORMAT_ITALIC')),_0x10635d('underline',o(_0x28426a,'FORMAT_UNDERLINE')),_0x10635d('code',o(_0x28426a,'FORMAT_CODE')),_0x10635d('strikethrough',o(_0x28426a,'FORMAT_STRIKETHROUGH')),_0x10635d('subscript',o(_0x28426a,'FORMAT_SUBSCRIPT')),_0x10635d('superscript',o(_0x28426a,'FORMAT_SUPERSCRIPT'));}}class F extends _0x28108f{['afterInit'](){const _0x56e577=this['editor'],_0x1256c1=_0x56e577['locale'];if(!_0x56e577['plugins']['has']('BlockQuoteEditing'))return;const _0x2f3be5=_0x56e577['plugins']['get']('TrackChangesEditing'),_0x44ef50=this['editor']['commands']['get']('blockQuote');_0x2f3be5['enableCommand']('blockQuote',(_0x6f1441,_0x28f324={})=>{const _0x404ec8=this['editor']['model']['document']['selection'],_0x1b600d=_0x28f324&&void 0x0!==_0x28f324['forceValue']?_0x28f324['forceValue']:!_0x44ef50['value'];let _0x56e595=[];if(_0x1b600d){const _0x1b3b29=Array['from'](_0x404ec8['getSelectedBlocks']())['filter'](_0x46e078=>oo(_0x46e078)||function(_0x384df4,_0x32eb5c){const _0x5b6943=_0x32eb5c['checkChild'](_0x384df4['parent'],'blockQuote'),_0x35091c=_0x32eb5c['checkChild'](['$root','blockQuote'],_0x384df4);return _0x5b6943&&_0x35091c;}(_0x46e078,this['editor']['model']['schema']));_0x56e595=to(_0x1b3b29,_0x56e577['model']);}else{const _0x65cb39=Array['from'](_0x404ec8['getSelectedBlocks']())['filter'](_0x1e0eb5=>oo(_0x1e0eb5));_0x56e595=to(_0x65cb39,_0x56e577['model']);}_0x56e577['model']['change'](()=>{for(const _0x3d08dd of _0x56e595)_0x2f3be5['markBlockFormat'](_0x3d08dd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1b600d}]});});}),_0x2f3be5['descriptionFactory']['registerDescriptionCallback'](_0x5bb731=>{const {data:_0x45052a}=_0x5bb731;if(_0x45052a&&'blockQuote'==_0x45052a['commandName']){const _0x4d08ad=o(_0x1256c1,'ELEMENT_BLOCK_QUOTE');return _0x45052a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1256c1,'*Set\x20format:*\x20%0',_0x4d08ad)}:{'type':'format','content':o(_0x1256c1,'*Remove\x20format:*\x20%0',_0x4d08ad)};}});}}function oo(_0x2b7e51){return'blockQuote'==_0x2b7e51['parent']['name'];}class L extends _0x28108f{['afterInit'](){const _0xf75b82=this['editor'];_0xf75b82['plugins']['has']('CaseChange')&&(_0xf75b82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xf75b82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xf75b82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x28108f{['afterInit'](){const _0x24deff=this['editor'];_0x24deff['commands']['get']('ckbox')&&_0x24deff['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x28108f{['afterInit'](){const _0x15c83a=this['editor'];if(!_0x15c83a['plugins']['has']('CodeBlock'))return;const _0x9da469=_0x15c83a['plugins']['get']('TrackChangesEditing'),_0x413a49=_0x15c83a['locale'],_0x29d832=_0x15c83a['config']['get']('codeBlock')['languages'],_0x43b0f3=_0x15c83a['commands']['get']('codeBlock');_0x9da469['enableCommand']('indentCodeBlock'),_0x9da469['enableCommand']('outdentCodeBlock'),_0x9da469['enableCommand']('codeBlock',(_0x474826,_0x3a549d={})=>{const _0xaf903b=_0x15c83a['model'],_0x20ae7f=_0x15c83a['model']['document']['selection'],_0x277fe2=_0x3a549d&&void 0x0!==_0x3a549d['forceValue']?_0x3a549d['forceValue']:!_0x43b0f3['value'];let _0x40da74;_0x3a549d['language']||(_0x3a549d['language']=_0x29d832[0x0]['language']),_0x40da74=_0x277fe2?Array['from'](_0x20ae7f['getSelectedBlocks']())['filter'](_0x1c8a2a=>eo(_0x1c8a2a)||function(_0x351f2e,_0x48fc7d){if(_0x351f2e['is']('rootElement')||_0x48fc7d['isLimit'](_0x351f2e))return!0x1;return _0x48fc7d['checkChild'](_0x351f2e['parent'],'codeBlock');}(_0x1c8a2a,_0xaf903b['schema'])):Array['from'](_0x20ae7f['getSelectedBlocks']())['filter'](_0x33f0c3=>eo(_0x33f0c3));const _0x3d20b9=to(_0x40da74,_0xaf903b);_0xaf903b['change'](()=>{for(const _0x57aad8 of _0x3d20b9)_0x9da469['markBlockFormat'](_0x57aad8,{'commandName':'codeBlock','commandParams':[{..._0x3a549d,'forceValue':_0x277fe2}],'formatGroupId':'blockName'});});}),(_0x9da469['descriptionFactory']['registerElementLabel']('codeBlock',_0x52b16c=>o(_0x413a49,'ELEMENT_CODE_BLOCK',_0x52b16c)),_0x9da469['descriptionFactory']['registerDescriptionCallback'](_0x229ffa=>{if('formatBlock'!=_0x229ffa['type'])return;const _0x1f8373=_0x413a49['t'],{data:_0x2e1728}=_0x229ffa;if(!_0x2e1728||'codeBlock'!=_0x2e1728['commandName'])return;const _0x51fb83=_0x2e1728['commandParams'][0x0]['language'],_0x2a9a42=_0x1f8373(_0x29d832['find'](_0xedf437=>_0xedf437['language']===_0x51fb83)['label'])['toLowerCase']();return _0x2e1728['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x413a49,'*Set\x20format:*\x20%0',o(_0x413a49,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2a9a42+')')}:{'type':'format','content':o(_0x413a49,'*Remove\x20format:*\x20%0',o(_0x413a49,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4ab88f){return'codeBlock'==_0x4ab88f['name'];}class q extends _0x28108f{['afterInit'](){const _0x29a520=this['editor'];if(!_0x29a520['plugins']['has']('CommentsEditing'))return;_0x29a520['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x303342,_0x34838d,_0xf50360){const _0x18160c=[];for(const _0x194938 of _0x34838d['getItems']())_0x194938['hasAttribute'](_0x303342)&&_0x18160c['push'](_0xf50360['createRangeOn'](_0x194938));return _0x18160c;}function _e(_0x38d826,_0x35b964,{showActiveMarker:_0x4fbf6d=!0x0}={}){const _0x54a14b=_0x38d826['plugins']['get']('TrackChangesEditing');return(_0x359cd0,_0x17b059,_0x4e998f)=>{if(!_0x4e998f['consumable']['test'](_0x17b059['markerRange'],_0x359cd0['name']))return;const _0x5a79e6=_0x17b059['markerRange']['getWalker'](),_0x459d07=_0x17b059['markerRange']['start'],_0x16204f=_0x38d826['model']['schema'];let _0x4b5d53=null,_0x5d8e5a=null,_0x2a95f1=!0x1,_0x1972fb=!0x1;for(const _0x117c34 of _0x5a79e6){const _0x21e39e=_0x117c34['item'];_0x2a95f1=_0x2a95f1||_0x16204f['isContent'](_0x21e39e);const _0x5a6996=_0x4e998f['mapper']['toViewElement'](_0x21e39e);if(_0x5a6996&&_0x5a6996['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x117c34['type']&&(_0x16204f['isBlock'](_0x21e39e)&&!_0x16204f['isLimit'](_0x21e39e)&&(_0x21e39e['nextSibling']||_0x459d07['isAtEnd']?_0x4b5d53&&_0x4b5d53['parent']==_0x21e39e||(_0x4b5d53=_0x21e39e,_0x5c1745(_0x117c34['previousPosition']),_0x1972fb=!0x0):_0x5d8e5a=_0x5d8e5a||_0x117c34['previousPosition']));}function _0x5c1745(_0x10846c){const {authorId:_0x44fc43}=_0x54a14b['_splitMarkerName'](_0x17b059['markerName']),_0x4db450=_0x4e998f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35b964,'data-author-id':_0x44fc43}),_0x3dad35=_0x4e998f['mapper']['toViewPosition'](_0x10846c);_0x4fbf6d&&_0x54a14b['activeMarkers']['includes'](_0x17b059['markerName'])&&_0x4e998f['writer']['addClass']('ck-suggestion-marker--active',_0x4db450),_0x4e998f['writer']['insert'](_0x3dad35,_0x4db450),_0x4e998f['mapper']['bindElementToMarker'](_0x4db450,_0x17b059['markerName']);}_0x2a95f1||_0x1972fb||!_0x5d8e5a||_0x5c1745(_0x5d8e5a);};}class z extends _0x28108f{static get['requires'](){return[_0x3782ff];}['init'](){const _0x45dd11=this['editor'],_0x3e61ff=_0x45dd11['plugins']['get']('TrackChangesEditing');_0x3e61ff['enableCommand']('delete');const _0x662775=_0x45dd11['commands']['get']('deleteForward');_0x3e61ff['enableCommand']('deleteForward',(_0x26aaae,_0x589c84={})=>{const _0x4a82e5=_0x45dd11['model']['createSelection'](_0x45dd11['model']['document']['selection']);_0x4a82e5['isCollapsed']&&_0x45dd11['model']['modifySelection'](_0x4a82e5,{'direction':'forward','unit':_0x589c84['unit']});const _0x4b2194=_0x4a82e5['getFirstRange'](),_0x30ef7b=_0x29d231['fromRange'](_0x4b2194);let _0x42964f;_0x26aaae(_0x589c84),_0x42964f='$graveyard'==_0x30ef7b['root']['rootName']?_0x45dd11['model']['createRange'](_0x4b2194['start']):_0x45dd11['model']['createRange'](_0x30ef7b['start'],_0x30ef7b['end']),_0x30ef7b['detach'](),_0x45dd11['model']['enqueueChange'](_0x662775['buffer']['batch'],_0xfcd6fb=>{_0x662775['buffer']['lock'](),_0xfcd6fb['setSelection'](_0xfcd6fb['createRange'](_0x42964f['end'])),_0x662775['buffer']['unlock']();});}),_0x45dd11['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x45dd11,'merge'),{'priority':'high'}),_0x45dd11['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4cdde9,_0x49e858,_0x54bda8)=>{_0x54bda8['options']['showSuggestionHighlights']&&_e(_0x45dd11,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4cdde9,_0x49e858,_0x54bda8);},{'priority':'high'}),_0x45dd11['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x30d025,_0x21df32,_0xcf5f3a)=>{const _0x963b3a=_0xcf5f3a['mapper']['markerNameToElements'](_0x21df32['markerName']);if(_0x963b3a){for(const _0x2cbf2f of _0x963b3a)_0x2cbf2f['is']('uiElement')&&(_0xcf5f3a['mapper']['unbindElementFromMarkerName'](_0x2cbf2f,_0x21df32['markerName']),_0xcf5f3a['writer']['remove'](_0x2cbf2f));}},{'priority':'high'});}}class K extends _0x28108f{['afterInit'](){const _0x306126=this['editor'];if(!_0x306126['plugins']['has']('ListEditing'))return;const _0x2a2f7d=_0x306126['locale'],_0x4c74ba=_0x306126['plugins']['get']('TrackChangesEditing'),_0x48200b=_0x306126['plugins']['has']('TodoListEditing'),_0x4cb1a6=!!_0x306126['config']['get']('list.multiBlock');function _0x3346f6(_0x29fe31){return{'type':'format','content':''+o(_0x2a2f7d,'*Set\x20format:*\x20%0',_0x29fe31)};}function _0x2c7def(_0x28b97d){return{'type':'format','content':''+o(_0x2a2f7d,'*Remove\x20format:*\x20%0',_0x28b97d)};}_0x4c74ba['enableDefaultAttributesIntegration']('numberedList'),_0x4c74ba['enableDefaultAttributesIntegration']('bulletedList'),_0x4c74ba['enableDefaultAttributesIntegration']('customNumberedList'),_0x4c74ba['enableDefaultAttributesIntegration']('customBulletedList'),_0x4c74ba['enableDefaultAttributesIntegration']('indentList'),_0x4c74ba['enableDefaultAttributesIntegration']('outdentList'),_0x4c74ba['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4c74ba['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4c74ba['registerBlockAttribute']('listItemId'),_0x4c74ba['registerBlockAttribute']('listType'),_0x4c74ba['registerBlockAttribute']('listIndent'),_0x4cb1a6&&(_0x4c74ba['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4c74ba['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x48200b&&(_0x4c74ba['enableDefaultAttributesIntegration']('todoList'),_0x4c74ba['enableDefaultAttributesIntegration']('checkTodoList'),_0x4c74ba['registerBlockAttribute']('todoListChecked'),_0x4c74ba['descriptionFactory']['registerDescriptionCallback'](_0x11ab3d=>{const {data:_0x476d1c}=_0x11ab3d;if(_0x476d1c&&'todoListChecked'==_0x476d1c['key'])return{'type':'format','content':_0x476d1c['newValue']?o(_0x2a2f7d,'*Check\x20item*'):o(_0x2a2f7d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ec5b8=>{if(_0x2ec5b8['batch']['isUndo'])return!0x1;let _0x29b428=!0x1;const _0x30443a=_0x4c74ba['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x204f23=>'todoListChecked'===_0x4c74ba['_getAttributeKey'](_0x204f23));for(const _0x30a79d of _0x30443a){'todo'!=_0x30a79d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4c74ba['_findSuggestions'](_0x30a79d['getFirstRange'](),'attribute')['find'](_0x50f502=>'listType'===_0x4c74ba['_getAttributeKey'](_0x50f502['suggestion']))||(_0x2ec5b8['removeMarker'](_0x30a79d['getFirstMarker']()),_0x29b428=!0x0));}return _0x29b428;})),_0x4c74ba['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2a2f7d,'FORMAT_INDENT'));const _0x14a6fc={'type':'format','content':''};_0x4c74ba['descriptionFactory']['registerDescriptionCallback'](_0x2e98a7=>{const {data:_0x2b9465}=_0x2e98a7;if(!_0x2b9465||'listType'!=_0x2b9465['key'])return;let _0x3c740a=_0x2e98a7['head'];for(;_0x3c740a;){if(_0x3c740a['data']&&(('listStyle'==_0x3c740a['data']['key']||'listMarkerStyle'==_0x3c740a['data']['key'])&&(_0x3c740a['data']['newValue']&&'default'!=_0x3c740a['data']['newValue']||'default'!=_0x3c740a['data']['oldValue']&&!_0x2b9465['newValue'])||!_0x4cb1a6&&_0x3c740a['data']['key']==m))return _0x14a6fc;_0x3c740a=_0x3c740a['next'];}if(null==_0x2b9465['newValue'])switch(_0x2b9465['oldValue']){case'bulleted':return _0x2c7def(o(_0x2a2f7d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c7def(o(_0x2a2f7d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c7def(o(_0x2a2f7d,'ELEMENT_TODO_LIST'));}switch(_0x2b9465['newValue']){case'bulleted':return _0x3346f6(o(_0x2a2f7d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3346f6(o(_0x2a2f7d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3346f6(o(_0x2a2f7d,'ELEMENT_TODO_LIST'));}}),_0x4c74ba['descriptionFactory']['registerDescriptionCallback'](_0x339e9c=>{const {data:_0x25b1ff}=_0x339e9c;if(_0x25b1ff&&'listIndent'==_0x25b1ff['key'])return null==_0x25b1ff['newValue']||null==_0x25b1ff['oldValue']&&0x0==_0x25b1ff['newValue']?_0x14a6fc:void 0x0;}),_0x4c74ba['descriptionFactory']['registerDescriptionCallback'](_0x578176=>{if('attribute'!=_0x578176['type'])return;const {data:_0x18bbaa}=_0x578176;if(!_0x18bbaa||'listItemId'!=_0x18bbaa['key'])return;const _0xf3ef65=Ee(_0x578176);return'newValue'==_0xf3ef65?{'type':'format','content':o(_0x2a2f7d,'*Merge:*\x20list\x20item')}:'oldValue'==_0xf3ef65?{'type':'format','content':o(_0x2a2f7d,'*Split:*\x20list\x20item')}:_0x14a6fc;}),_0x306126['model']['document']['registerPostFixer'](_0x325827=>this['listItemIdFixer'](_0x325827)),_0x306126['model']['document']['registerPostFixer'](_0xaf80dc=>this['noTrackChangesFixer'](_0xaf80dc)),_0x306126['model']['document']['on']('change:data',(_0x728a32,_0x460bba)=>{if(_0x460bba['isUndo']||!_0x460bba['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x400747){if(_0x400747['batch']['isUndo']||!_0x400747['batch']['isLocal'])return!0x1;let _0x2c7b38=!0x1;const _0x3ff0e6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xba8a01=>_0xba8a01['data']&&'listItemId'==_0xba8a01['data']['key'])['filter'](_0x270194=>_0x270194['data']['newValue']&&_0x270194['data']['oldValue']);for(const _0x4f2ae5 of _0x3ff0e6)Ee(_0x4f2ae5)||(_0x400747['removeMarker'](_0x4f2ae5['getFirstMarker']()),_0x2c7b38=!0x0);return _0x2c7b38;}['noTrackChangesFixer'](_0x59504d){if(_0x59504d['batch']['isUndo']||!_0x59504d['batch']['isLocal'])return!0x1;const _0x425e5e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x425e5e['trackChangesCommand']['value'])return!0x1;let _0x20be6e=!0x1;const _0x44ae5a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x16f1e7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x159d02=>'attribute'==_0x159d02['type'])['filter'](_0x3d6165=>_0x44ae5a['includes'](_0x3d6165['attributeKey']));if(0x0==_0x16f1e7['length'])return _0x20be6e;for(const _0x5bea10 of _0x16f1e7){const _0x429eb3=_0x425e5e['_findSuggestions'](_0x5bea10['range'],'attribute')['filter'](_0x445d54=>!_0x445d54['meta']['isNextTo'])['map'](_0x26e3f7=>_0x26e3f7['suggestion'])['filter'](_0x32ef8d=>{const _0x1f4715=_0x425e5e['_getAttributeKey'](_0x32ef8d);return _0x44ae5a['includes'](_0x1f4715);});if(_0x429eb3['length']){for(const _0x4c6190 of _0x429eb3)_0x59504d['removeMarker'](_0x4c6190['getFirstMarker']());_0x20be6e=!0x0;}}return _0x20be6e;}['assureChains'](){const _0x19957e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3db70b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4edc51;const _0x3ea6e8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3d3687=>{if(_0x3d3687['data']['oldRange']||!_0x3d3687['data']['newRange'])return null;if(!_0x3d3687['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x34f7fb}=_0x19957e['_splitMarkerName'](_0x3d3687['name']);if(!_0x19957e['hasSuggestion'](_0x34f7fb))return null;const _0x1ae17c=_0x19957e['getSuggestion'](_0x34f7fb);return _0x3db70b['includes'](_0x1ae17c['data']['key']);})['map'](_0x5753be=>{const {id:_0x4cca00}=_0x19957e['_splitMarkerName'](_0x5753be['name']),_0x569db6=_0x19957e['getSuggestion'](_0x4cca00);return _0x4edc51=_0x569db6['attributes']['groupId'],_0x569db6['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3ea6e8['size'])return;const _0x5c9371=_0x19957e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x497b74=>'attribute'==_0x497b74['type']&&_0x497b74['data']&&_0x3db70b['includes'](_0x497b74['data']['key'])&&_0x497b74['attributes']['groupId']!=_0x4edc51)['map'](_0x3383fc=>({'listItem':_0x3383fc['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3383fc['attributes']['groupId']})),_0x2b695a=new Set();for(const {groupId:_0x21b004,listItem:_0x5a1b63}of _0x5c9371)_0x3ea6e8['has'](_0x5a1b63)&&_0x2b695a['add'](_0x21b004);for(const _0x3e1405 of _0x19957e['getSuggestions']())_0x2b695a['has'](_0x3e1405['attributes']['groupId'])&&_0x3e1405['setAttribute']('groupId',_0x4edc51);}['_supportLegacySuggestions'](){const _0x3b4bab=this['editor'],_0x58749f=_0x3b4bab['locale'],_0x2bc8cb=_0x3b4bab['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2bc8cb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x21abf6,_0x4b61e9){const _0xd1c45e=[];for(let _0x25b183 of _0x21abf6)_0x25b183['start']['nodeAfter']===_0x25b183['end']['parent']&&(_0x25b183=_0x3b4bab['model']['createRange'](_0x3b4bab['model']['createPositionAt'](_0x25b183['start']['nodeAfter'],0x0))),_0xd1c45e['push'](_0x25b183);_0x3b4bab['model']['change'](_0x38b1cc=>{const _0x20e810=_0x3b4bab['model']['document']['selection'],_0x54c581=Array['from'](_0x20e810['getRanges']())['map'](_0x202f18=>_0x29d231['fromRange'](_0x202f18));_0x38b1cc['setSelection'](_0xd1c45e),_0x3b4bab['commands']['get'](_0x4b61e9['commandName'])['refresh'](),_0x4b61e9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3b4bab['execute'](_0x4b61e9['commandName'],..._0x4b61e9['commandParams']),_0x38b1cc['setSelection'](_0x54c581);for(const _0x327b03 of _0x54c581)_0x327b03['detach']();});}),_0x2bc8cb['descriptionFactory']['registerElementLabel'](function(_0x24de1f){const _0x4eb7b3=!_0x3b4bab['model']['schema']['isObject'](_0x24de1f),_0x1cdf36=_0x24de1f['previousSibling'],_0x4f8c3e=_0x24de1f['nextSibling'],_0x53a403=_0x24de1f['getAttribute']('listItemId'),_0xcd21c4=!_0x1cdf36||_0x1cdf36['getAttribute']('listItemId')!==_0x53a403,_0x21d1d5=!_0x4f8c3e||_0x4f8c3e['getAttribute']('listItemId')!==_0x53a403;return _0x4eb7b3&&Boolean(_0x53a403)&&_0xcd21c4&&_0x21d1d5;},_0x485265=>o(_0x58749f,'ELEMENT_LIST_ITEM',_0x485265));}['_registerLegacyDescription'](){const _0x26b346=this['editor'],_0x3bb93e=_0x26b346['locale'];function _0xca24e0(_0x5ee22a){const _0x199629=_0x26b346['commands']['get']('bulletedList')['value'],_0x2cac3e=_0x26b346['commands']['get']('numberedList')['value'];return'numberedList'===_0x5ee22a?_0x199629:_0x2cac3e;}_0x26b346['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3655a6){if('formatBlock'!=_0x3655a6['type'])return;const {data:_0x520a17}=_0x3655a6;if(!_0x520a17)return;let _0x276761,_0x34d083,_0x489a44,_0xa62b12;switch(_0x520a17['commandName']){case'bulletedList':_0x489a44=_0x520a17['commandParams'][0x0]['forceValue'],_0xa62b12=_0xca24e0(_0x520a17['commandName']),_0x276761=_0x489a44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xa62b12&&_0x26b346['config']['get']('list.multiBlock')||(_0x276761='*Change\x20to:*\x20%0'),_0x34d083={'type':'format','content':o(_0x3bb93e,_0x276761,o(_0x3bb93e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x489a44=_0x520a17['commandParams'][0x0]['forceValue'],_0xa62b12=_0xca24e0(_0x520a17['commandName']),_0x276761=_0x489a44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xa62b12&&_0x26b346['config']['get']('list.multiBlock')||(_0x276761='*Change\x20to:*\x20%0'),_0x34d083={'type':'format','content':o(_0x3bb93e,_0x276761,o(_0x3bb93e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x276761='*Indent:*\x20%0',_0x34d083={'type':'format','content':o(_0x3bb93e,_0x276761,o(_0x3bb93e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x276761=function(_0xb26235){const _0x96e4cb=_0xb26235['getFirstRange']();let _0x433d88=_0x96e4cb['start']['nodeAfter'];for(;_0x433d88&&_0x96e4cb['containsItem'](_0x433d88);){if(_0x433d88['getAttribute']('listIndent')>0x0)return!0x1;_0x433d88=_0x433d88['nextSibling'];}return!0x0;}(_0x3655a6)?o(_0x3bb93e,'*Format:*\x20remove\x20from\x20%0',o(_0x3bb93e,function(_0x523ad8){return'ELEMENT_'+_0x523ad8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3655a6))):o(_0x3bb93e,'*Outdent:*\x20%0',o(_0x3bb93e,'ELEMENT_LIST_ITEM')),_0x34d083={'type':'format','content':_0x276761};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x520a17['multipleBlocks']&&(_0x276761='*Merge:*\x20%0',_0x34d083={'type':'deletion','content':o(_0x3bb93e,_0x276761,o(_0x3bb93e,'ELEMENT_LIST_ITEM'))});}return _0x34d083;});}}function Ee(_0x584c9b){let _0x154574=_0x584c9b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x154574;){const _0x1934e8=_0x154574['getAttribute']('listItemId');if(!_0x1934e8)return!0x1;if(_0x1934e8==_0x584c9b['data']['newValue'])return'newValue';if(_0x1934e8==_0x584c9b['data']['oldValue'])return'oldValue';_0x154574=_0x154574['previousSibling'];}return!0x1;}class pe extends _0x28108f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x6cfe56=this['editor']['config']['get']('list.properties'),_0x1568b0=this['editor']['plugins']['get']('TrackChangesEditing');_0x6cfe56['styles']&&(_0x1568b0['enableDefaultAttributesIntegration']('listStyle'),_0x1568b0['registerBlockAttribute']('listStyle')),_0x6cfe56['reversed']&&(_0x1568b0['enableDefaultAttributesIntegration']('listReversed'),_0x1568b0['registerBlockAttribute']('listReversed')),_0x6cfe56['startIndex']&&(_0x1568b0['enableDefaultAttributesIntegration']('listStart'),_0x1568b0['registerBlockAttribute']('listStart'));const _0x1d1076={'type':'format','content':''};_0x1568b0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xd9b9ee=this['editor']['locale'];_0x1568b0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xd9b9ee,'FORMAT_LIST_REVERSED')),_0x1568b0['descriptionFactory']['registerDescriptionCallback'](_0x290835=>{const {data:_0x794d3d}=_0x290835;if(_0x794d3d&&'listReversed'==_0x794d3d['key'])return null==_0x794d3d['newValue']||0x0==_0x794d3d['newValue']&&null==_0x794d3d['oldValue']?_0x1d1076:void 0x0;}),_0x1568b0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xd9b9ee,'FORMAT_LIST_START')),_0x1568b0['descriptionFactory']['registerDescriptionCallback'](_0x44d9e4=>{const {data:_0xe03469}=_0x44d9e4;if(_0xe03469&&'listStart'==_0xe03469['key'])return null==_0xe03469['newValue']||0x1==_0xe03469['newValue']&&null==_0xe03469['oldValue']?_0x1d1076:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x59ef1d=>{if(_0x59ef1d['batch']['isUndo'])return!0x1;let _0x23a456=!0x1;const _0xd7e328=_0x1568b0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f1a3c=>{const _0x48e6c5=_0x1568b0['_getAttributeKey'](_0x4f1a3c);return'listStart'==_0x48e6c5||'listReversed'==_0x48e6c5;});for(const _0xc41dd3 of _0xd7e328){const _0xa7d64=_0xc41dd3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xa7d64||'customNumbered'==_0xa7d64)continue;_0x1568b0['_findSuggestions'](_0xc41dd3['getFirstRange'](),'attribute')['find'](_0x17b546=>'listType'==_0x1568b0['_getAttributeKey'](_0x17b546['suggestion']))||(_0x59ef1d['removeMarker'](_0xc41dd3['getFirstMarker']()),_0x23a456=!0x0);}return _0x23a456;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x268227){const _0xd0104a=this['editor']['locale'],{data:_0x2b6d90}=_0x268227,_0x933bef={'type':'format','content':''};if(!_0x2b6d90||'listStyle'!=_0x2b6d90['key'])return;if(!_0x2b6d90['oldValue'])return'default'==_0x2b6d90['newValue']?_0x933bef:{'type':'format','content':''+o(_0xd0104a,'*Set\x20format:*\x20%0',o(_0xd0104a,this['_getTranslationKeyForListStyle'](_0x2b6d90['newValue'])))};if(!_0x2b6d90['newValue']){if('default'==_0x2b6d90['oldValue'])return _0x933bef;let _0x249408=_0x268227['head'];for(;_0x249408;){if(_0x249408['data']&&'listType'==_0x249408['data']['key']&&_0x249408['data']['newValue'])return _0x933bef;_0x249408=_0x249408['next'];}return{'type':'format','content':''+o(_0xd0104a,'*Remove\x20format:*\x20%0',o(_0xd0104a,this['_getTranslationKeyForListStyle'](_0x2b6d90['oldValue'])))};}if('default'!=_0x2b6d90['newValue'])return{'type':'format','content':''+o(_0xd0104a,'*Set\x20format:*\x20%0',o(_0xd0104a,this['_getTranslationKeyForListStyle'](_0x2b6d90['newValue'])))};let _0x4462bf=_0x268227['head'];for(;_0x4462bf;){if(_0x4462bf['data']&&'listType'==_0x4462bf['data']['key']&&_0x4462bf['data']['newValue']&&_0x4462bf['data']['oldValue'])return _0x933bef;_0x4462bf=_0x4462bf['next'];}return{'type':'format','content':o(_0xd0104a,'*Set\x20format:*\x20%0',o(_0xd0104a,'ELEMENT_'+_0x268227['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x29a3ff=this['editor'],_0x42e1f5=_0x29a3ff['locale'];_0x29a3ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3111d0=>{if('formatBlock'!=_0x3111d0['type'])return;const {data:_0x3c9a32}=_0x3111d0;if(!_0x3c9a32)return;let _0x5e49b6,_0x3960cd;switch(_0x3c9a32['commandName']){case'listStyle':_0x5e49b6='*Change\x20to:*\x20%0',_0x3960cd={'type':'format','content':o(_0x42e1f5,_0x5e49b6,o(_0x42e1f5,this['_getTranslationKeyForListStyle'](_0x3c9a32['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5e49b6=_0x3c9a32['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3960cd={'type':'format','content':o(_0x42e1f5,_0x5e49b6)};break;case'listStart':_0x5e49b6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3960cd={'type':'format','content':o(_0x42e1f5,_0x5e49b6,_0x3c9a32['commandParams'][0x0]['startIndex'])};}return _0x3960cd;});}['_getTranslationKeyForListStyle'](_0x20d893){return'ELEMENT_'+function(_0x25be4a){if(ye['includes'](_0x25be4a))return'bulleted';if(Se['includes'](_0x25be4a))return'numbered';return null;}(_0x20d893)['toUpperCase']()+'_LIST_'+_0x20d893['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x28108f{static get['requires'](){return[_0x57b682];}['init'](){const _0x504509=this['editor'],_0x5015f7=_0x504509['plugins']['get']('TrackChangesEditing'),_0x3be9ae=_0x504509['commands']['get']('enter');_0x5015f7['enableCommand']('enter',()=>{_0x504509['model']['change'](_0x20bf35=>{const _0x55c16a=_0x504509['model']['document']['selection'],_0x40784c=_0x55c16a['getFirstPosition'](),_0x1110ad=_0x29d231['fromRange'](_0x55c16a['getFirstRange']());if(_0x3be9ae['enterBlock'](_0x20bf35)){const _0x562ed0=_0x504509['model']['createPositionAt'](_0x40784c['parent']['nextSibling'],0x0),_0x41b0c2=_0x20bf35['createRange'](_0x40784c,_0x562ed0);_0x5015f7['markInsertion'](_0x41b0c2);}else _0x20bf35['setSelection'](_0x20bf35['createRange'](_0x1110ad['end']));_0x1110ad['detach'](),_0x3be9ae['fire']('afterExecute',{'writer':_0x20bf35});});}),_0x504509['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x504509,'split'),{'priority':'high'}),_0x504509['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x632f25,_0x4538df,_0x2dff7e)=>{const _0x4e3ecd=_0x2dff7e['mapper']['markerNameToElements'](_0x4538df['markerName']);if(_0x4e3ecd){for(const _0x4d3d4e of _0x4e3ecd)_0x4d3d4e['hasClass']('ck-suggestion-marker-split')&&(_0x2dff7e['mapper']['unbindElementFromMarkerName'](_0x4d3d4e,_0x4538df['markerName']),_0x2dff7e['writer']['remove'](_0x4d3d4e));}},{'priority':'high'}),_0x504509['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x6a704f,_0x38816d,_0x4506b1)=>{_0x4506b1['options']['showSuggestionHighlights']&&_e(_0x504509,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x6a704f,_0x38816d,_0x4506b1);},{'priority':'high'});}}class X extends _0x28108f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2b85f9=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b85f9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2b85f9['enableCommand']('findNext'),_0x2b85f9['enableCommand']('findPrevious'),_0x2b85f9['enableCommand']('replace'),_0x2b85f9['enableCommand']('replaceAll');}['handleFindCommand'](_0x445c2b,_0x16f6a4,_0xed82f5={}){const _0x1d4d99=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x445c2b(_0x1c32d8=>{let _0x1df24d=('string'==typeof _0x16f6a4?_0x1d4d99['findByTextCallback'](_0x16f6a4,_0xed82f5):_0x16f6a4)(_0x1c32d8);Array['isArray'](_0x1df24d)&&(_0x1df24d={'results':_0x1df24d,'searchText':'string'==typeof _0x16f6a4?_0x16f6a4:''});const _0x3e50c0=_0x1df24d['results']['filter'](_0x21b610=>!0x1===this['_isInDeletionRange'](_0x21b610,_0x1c32d8['item']));return{..._0x1df24d,'results':_0x3e50c0};},_0xed82f5);}['_isInDeletionRange'](_0x337e8e,_0xf73063){const _0x989dcb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf73063,_0x337e8e['start']),this['editor']['model']['createPositionAt'](_0xf73063,_0x337e8e['end']));for(const _0x2da378 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x989dcb['getIntersection'](_0x2da378['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x28108f{['afterInit'](){const _0x3702f8=this['editor']['locale'],_0x2d9cae=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x22ca0d,commandName:_0xe778c0}of ro)this['editor']['plugins']['has'](_0x22ca0d)&&(_0x2d9cae['enableDefaultAttributesIntegration'](_0xe778c0),_0x2d9cae['registerInlineAttribute'](_0xe778c0));_0x2d9cae['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3702f8,'FORMAT_FONT_SIZE')),_0x2d9cae['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3702f8,'FORMAT_FONT_FAMILY')),_0x2d9cae['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3702f8,'FORMAT_FONT_COLOR')),_0x2d9cae['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3702f8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x317cff=this['editor'],_0x368485=_0x317cff['locale'];_0x317cff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x132d58=>{const _0xae8941=_0x368485['t'];if('formatInline'!=_0x132d58['type'])return;const {data:_0x4c6c46}=_0x132d58;if(null!=_0x4c6c46){if('fontSize'==_0x4c6c46['commandName']){const _0x201f20=_0x4c6c46['commandParams'][0x0]['value'];if(_0x201f20){const _0x3befdf=_0xae8941(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4aba64=>_0x4aba64['model']==_0x201f20)['title'])['toLowerCase']();return{'type':'format','content':o(_0x368485,'*Set\x20font\x20size:*\x20%0',_0x3befdf)};}return{'type':'format','content':o(_0x368485,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c6c46['commandName']){const _0x4900a5=_0x4c6c46['commandParams'][0x0]['value'];return _0x4900a5?{'type':'format','content':o(_0x368485,'*Set\x20font\x20family:*\x20%0',_0x4900a5)}:{'type':'format','content':o(_0x368485,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c6c46['commandName']){const _0x1d5ad7=_0x4c6c46['commandParams'][0x0]['value'];if(_0x1d5ad7){const _0x18601f=_0x9120f9(this['editor']['config']['get']('fontColor.colors'))['find'](_0x19a060=>_0x19a060['model']==_0x1d5ad7);let _0x49acf3=_0x1d5ad7,_0x14bac8='';return _0x18601f&&(_0x49acf3=_0x18601f['label'],_0x14bac8=_0xae8941(_0x49acf3)['toLowerCase']()),{'type':'format','content':o(_0x368485,'*Set\x20font\x20color:*\x20%0',_0x14bac8)['trim'](),'color':{'value':_0x1d5ad7,'title':_0x14bac8||_0x49acf3}};}return{'type':'format','content':o(_0x368485,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c6c46['commandName']){const _0x8d9dd8=_0x4c6c46['commandParams'][0x0]['value'];if(_0x8d9dd8){const _0x319f42=_0x9120f9(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1eadb4=>_0x1eadb4['model']==_0x8d9dd8);let _0x53d5e3=_0x8d9dd8,_0x51cd3f='';return _0x319f42&&(_0x53d5e3=_0x319f42['label'],_0x51cd3f=_0xae8941(_0x53d5e3)['toLowerCase']()),{'type':'format','content':o(_0x368485,'*Set\x20font\x20background\x20color:*\x20%0',_0x51cd3f)['trim'](),'color':{'value':_0x8d9dd8,'title':_0x51cd3f||_0x53d5e3}};}return{'type':'format','content':o(_0x368485,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x28108f{['afterInit'](){const _0x5310a7=this['editor'],_0x6954f1=_0x5310a7['plugins']['get']('TrackChangesEditing'),_0x6ca873=_0x5310a7['commands']['get']('copyFormat'),_0x2fd9a4=_0x5310a7['commands']['get']('pasteFormat');_0x6ca873&&_0x2fd9a4&&(_0x6954f1['enableDefaultAttributesIntegration']('pasteFormat'),_0x6954f1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1dd3d=this['editor'],_0x32bf87=_0x1dd3d['locale'];_0x1dd3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49affb=>{if('formatBlock'!=_0x49affb['type']&&'formatInline'!=_0x49affb['type'])return;const {data:_0x521646}=_0x49affb;if(_0x521646&&'pasteFormat'===_0x521646['commandName']){const _0x33c63c=[],_0x300b34=_0x521646['commandParams'][0x0];for(const [_0x246c0e,_0x4bc7ec]of Object['entries'](_0x300b34))_0x33c63c['push'](so(_0x1dd3d,_0x246c0e,_0x4bc7ec));return _0x33c63c['length']?{'type':'format','content':o(_0x32bf87,'*Set\x20format\x20to:*\x20%0',_0x33c63c['join'](',\x20'))}:{'type':'format','content':o(_0x32bf87,'*Remove\x20all\x20formatting*')};}});}}function so(_0x12bc6a,_0x263606,_0x3f65ad){const _0x2a14f1=_0x12bc6a['locale']['t'],_0xf451c3=_0x263606['split'](/(?=[A-Z])/)['join']('\x20'),_0x2daf50=_0x2a14f1(_0xf451c3['charAt'](0x0)['toUpperCase']()+_0xf451c3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3f65ad)return _0x2daf50;if('fontColor'===_0x263606||'fontBackgroundColor'===_0x263606){const _0x1efb03=_0x9120f9(_0x12bc6a['config']['get']('fontColor.colors'))['find'](_0x5737ba=>_0x5737ba['model']==_0x3f65ad);return _0x2daf50+'\x20('+(_0x1efb03?_0x2a14f1(_0x1efb03['label'])['toLowerCase']():_0x3f65ad)+')';}if('fontSize'===_0x263606&&isNaN(parseFloat(_0x3f65ad))){const _0x4cd034=_0x12bc6a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x12bc6a['config']['get']('fontSize.options'))['find'](_0x12fa3a=>_0x12fa3a['model']==_0x3f65ad);return _0x2daf50+'\x20('+(_0x4cd034?_0x2a14f1(_0x4cd034['title'])['toLowerCase']():_0x3f65ad)+')';}return _0x2daf50+'\x20('+_0x3f65ad+')';}class tt extends _0x28108f{['_headingOptions'];['afterInit'](){const _0x32e6a4=this['editor'];if(!_0x32e6a4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x32e6a4['config']['get']('heading.options');const _0x49ca3f=_0x32e6a4['locale'],_0x111d78=_0x32e6a4['plugins']['get']('TrackChangesEditing');_0x111d78['enableDefaultAttributesIntegration']('heading');for(const _0xdb5e08 of this['_headingOptions'])'paragraph'!=_0xdb5e08['model']&&_0x111d78['descriptionFactory']['registerElementLabel'](_0xdb5e08['model'],_0x20da6e=>{const _0x41abf1=this['_getHeadingLevel'](_0xdb5e08['model']);return null!==_0x41abf1?_0x4354f2(_0x20da6e,_0x41abf1):_0x345c7b(_0x20da6e,_0xdb5e08['title']);});function _0x4354f2(_0x5d7358,_0x49ae0f){return o(_0x49ca3f,'ELEMENT_HEADING',[_0x5d7358,_0x49ae0f]);}function _0x345c7b(_0x6ce211,_0x106ff5){return o(_0x49ca3f,'ELEMENT_HEADING_CUSTOM',[_0x6ce211,_0x106ff5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x375c47=this['editor'],_0x12a9cf=_0x375c47['locale'];function _0x2779d8(_0x13cceb,_0x75253f){return o(_0x12a9cf,'ELEMENT_HEADING_CUSTOM',[_0x13cceb,_0x75253f]);}_0x375c47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x574464=>{if('formatBlock'!=_0x574464['type'])return;const {data:_0x5196ac}=_0x574464;if(_0x5196ac&&'heading'==_0x5196ac['commandName']){const _0x542203=_0x5196ac['commandParams'][0x0]['value'],_0x1dfa50=this['_getHeadingLevel'](_0x542203);if(null!==_0x1dfa50)return{'type':'format','content':o(_0x12a9cf,'*Change\x20to:*\x20%0',(_0x2c3966=0x1,_0x1daad8=_0x1dfa50,o(_0x12a9cf,'ELEMENT_HEADING',[_0x2c3966,_0x1daad8])))};const _0xc8e3e0=this['_headingOptions']['find'](_0xbbe326=>_0xbbe326['model']===_0x542203)['title'];return{'type':'format','content':o(_0x12a9cf,'*Change\x20to:*\x20%0',_0x2779d8(0x1,_0xc8e3e0))};}var _0x2c3966,_0x1daad8;});}['_getHeadingLevel'](_0x190800){const _0x540ae0=_0x190800['match'](/^heading(\d+)/);if(_0x540ae0)return _0x540ae0[0x1];const _0x37101e=this['_headingOptions']?.['find'](_0x38ca28=>_0x38ca28['model']==_0x190800);if(_0x37101e&&_0x37101e['view']){const _0x43dfec=_0x37101e['view'],_0x49bbf5=(_0x43dfec['name']??_0x43dfec)['match'](/^h(\d+)/);if(_0x49bbf5)return _0x49bbf5[0x1];}return null;}}class et extends _0x28108f{['afterInit'](){const _0x2e4400=this['editor'];if(!_0x2e4400['plugins']['has']('HighlightEditing'))return;const _0x3d29e2=_0x2e4400['plugins']['get']('TrackChangesEditing'),_0x55e064=_0x2e4400['locale'];_0x3d29e2['enableDefaultAttributesIntegration']('highlight'),_0x3d29e2['registerInlineAttribute']('highlight'),_0x3d29e2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x55e064,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3263b2=this['editor'],_0x2e5806=_0x3263b2['locale'];_0x3263b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d0e4f=>{if('formatInline'!=_0x1d0e4f['type'])return;const {data:_0x37ce4a}=_0x1d0e4f;if(_0x37ce4a&&'highlight'==_0x37ce4a['commandName']){const _0x4f3ee8=_0x2e5806['t'],_0x38be19=_0x37ce4a['commandParams'][0x0]['value'];if(_0x38be19){const _0x43957=_0x3263b2['config']['get']('highlight.options')['find'](_0x121a11=>_0x121a11['model']==_0x38be19),_0x340b3e=_0x4f3ee8(_0x43957['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e5806,'*Set\x20highlight:*\x20%0',_0x340b3e),'color':{'value':_0x43957['color'],'title':_0x43957['title']}};}return{'type':'format','content':o(_0x2e5806,'*Remove\x20highlight*',o(_0x2e5806,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x28108f{['afterInit'](){const _0x5d3e7a=this['editor'];if(!_0x5d3e7a['plugins']['has']('HorizontalLineEditing'))return;_0x5d3e7a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4eb0e0=_0x5d3e7a['plugins']['get']('TrackChangesEditing'),_0x497bed=_0x5d3e7a['locale'];_0x4eb0e0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1ade10=>o(_0x497bed,'ELEMENT_HORIZONTAL_LINE',_0x1ade10)),_0x5d3e7a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x56e983,{writer:_0x952a39,options:_0x5c9a4d})=>{if(!_0x5c9a4d['showSuggestionHighlights'])return null;const _0x4757cc=_0x952a39['createContainerElement']('div'),_0x21a34b=_0x952a39['createEmptyElement']('hr');return _0x952a39['addClass']('ck-horizontal-line',_0x4757cc),_0x952a39['insert'](_0x952a39['createPositionAt'](_0x4757cc,0x0),_0x21a34b),_0x4757cc;},'converterPriority':'high'});}}class st extends _0x28108f{['afterInit'](){const _0x36d6e9=this['editor'];if(!_0x36d6e9['plugins']['has']('HtmlEmbed'))return;const _0x25735e=_0x36d6e9['plugins']['get']('TrackChangesEditing'),_0x812b3a=_0x36d6e9['locale'];_0x25735e['descriptionFactory']['registerElementLabel']('rawHtml',_0x7d6f4d=>o(_0x812b3a,'ELEMENT_HTML_EMBED',_0x7d6f4d)),_0x25735e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x25735e['registerBlockAttribute']('value'),_0x25735e['descriptionFactory']['registerDescriptionCallback'](_0x1040d3=>{if('attribute'!=_0x1040d3['type'])return;const {data:_0x57c762}=_0x1040d3;if(_0x57c762&&'value'==_0x57c762['key']&&_0x1040d3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5c2307=o(_0x812b3a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x812b3a,'*Change\x20%0\x20content*',_0x5c2307)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5307bc=this['editor'],_0x1d4a7f=_0x5307bc['locale'];_0x5307bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51a7dd=>{if('formatBlock'!=_0x51a7dd['type'])return;const {data:_0x58b657}=_0x51a7dd;if(_0x58b657&&'htmlEmbed'==_0x58b657['commandName']){const _0x1c0f0e=o(_0x1d4a7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d4a7f,'*Change\x20%0\x20content*',_0x1c0f0e)};}});}}class nt extends _0x28108f{['afterInit'](){const _0xbcb28b=this['editor'];if(!_0xbcb28b['plugins']['has']('ImageEditing'))return;const _0x435439=_0xbcb28b['plugins']['get']('TrackChangesEditing'),_0x24ea87=_0xbcb28b['plugins']['get']('ImageUtils'),_0x51216b=_0xbcb28b['locale'];_0x435439['enableCommand']('insertImage'),_0x435439['descriptionFactory']['registerElementLabel']('imageBlock',_0x3cddf3=>o(_0x51216b,'ELEMENT_IMAGE',_0x3cddf3)),_0x435439['descriptionFactory']['registerElementLabel']('imageInline',_0x353205=>o(_0x51216b,'ELEMENT_INLINE_IMAGE',_0x353205)),_0x435439['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x51216b,'ELEMENT_CAPTION')),_0xbcb28b['plugins']['has']('ImageUploadEditing')&&_0x435439['enableCommand']('uploadImage'),_0xbcb28b['plugins']['has']('ImageBlockEditing')&&_0xbcb28b['plugins']['has']('ImageInlineEditing')&&(_0x435439['enableCommand']('imageTypeInline',(_0xd0bda3,_0xcabbde)=>{const _0x2bc57f=_0x24ea87['getClosestSelectedImageElement'](_0xbcb28b['model']['document']['selection']);_0xbcb28b['model']['change'](()=>{_0x435439['markBlockFormat'](_0x2bc57f,{'commandName':'imageTypeInline','commandParams':[_0xcabbde]},[],'convertBlockImageToInline');});}),_0x435439['enableCommand']('imageTypeBlock',(_0x13b529,_0x49c2cc)=>{_0xbcb28b['model']['change'](_0x2836c8=>{let _0x5853e4=_0x24ea87['getClosestSelectedImageElement'](_0xbcb28b['model']['document']['selection']),_0x41af88=_0x2836c8['createRangeOn'](_0x5853e4);const _0x5ec0ae=_0x3feaf8['fromPosition'](_0x41af88['start'],'toPrevious'),_0x19f6f9=_0x3feaf8['fromPosition'](_0x41af88['end'],'toNext');_0x435439['forceDefaultExecution'](()=>_0x13b529(_0x49c2cc)),_0x5853e4=_0x24ea87['getClosestSelectedImageElement'](_0xbcb28b['model']['document']['selection']),_0x41af88=_0x2836c8['createRangeOn'](_0x5853e4);const _0xc0d74d=_0x2836c8['createRange'](_0x5ec0ae,_0x19f6f9);_0x5ec0ae['detach'](),_0x19f6f9['detach'](),_0x435439['markBlockFormat'](_0x5853e4,{'commandName':'imageTypeInline','commandParams':[_0x49c2cc]},[],'convertInlineImageToBlock'),_0xc0d74d['start']['isBefore'](_0x41af88['start'])&&_0x435439['markInsertion'](_0x2836c8['createRange'](_0xc0d74d['start'],_0x41af88['start']),'convertInlineImageToBlock'),_0x41af88['end']['isBefore'](_0xc0d74d['end'])&&_0x435439['markInsertion'](_0x2836c8['createRange'](_0x41af88['end'],_0xc0d74d['end']),'convertInlineImageToBlock');});}),_0x435439['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x435439['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x435439['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x435439['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x435439['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x435439['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2dd87f])=>{const _0x158025=_0x435439['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x43514d=_0x2dd87f['start'],_0x598bbd=_0x2dd87f['end'];const _0x503f41=_0xbcb28b['model']['schema']['getNearestSelectionRange'](_0x43514d,'backward'),_0x455e38=_0xbcb28b['model']['schema']['getNearestSelectionRange'](_0x598bbd,'forward');_0x503f41['isCollapsed']&&(_0x43514d=_0x503f41['start']),_0x455e38['isCollapsed']&&(_0x598bbd=_0x455e38['end']),_0x158025([_0xbcb28b['model']['createRange'](_0x43514d,_0x598bbd)]);}),_0x435439['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4df10f),_0x435439['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4df10f)),_0xbcb28b['plugins']['has']('ImageCaptionEditing')&&(_0x435439['enableCommand']('toggleImageCaption',(_0x46be45,_0x4636d1)=>{const _0xdcd381=_0xbcb28b['plugins']['get']('ImageCaptionUtils');let _0x30c563=_0x24ea87['getClosestSelectedImageElement'](_0xbcb28b['model']['document']['selection']),_0x57f2b3=_0xdcd381['getCaptionFromImageModelElement'](_0x30c563);_0xbcb28b['model']['change'](()=>{if(_0x57f2b3)return void _0x435439['markDeletion'](_0xbcb28b['model']['createRangeOn'](_0x57f2b3));const _0x19dc68=_0x24ea87['isBlockImage'](_0x30c563);_0x46be45(_0x4636d1),_0x30c563=_0x24ea87['getClosestSelectedImageElement'](_0xbcb28b['model']['document']['selection']),_0x57f2b3=_0xdcd381['getCaptionFromImageModelElement'](_0x30c563),_0x435439['markInsertion'](_0xbcb28b['model']['createRangeOn'](_0x57f2b3),_0x19dc68?null:'imageCaption');});}),_0x435439['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4df10f));const _0x4174ea=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41902c(_0x5ceb03,_0x180c71){const _0x5e5189=_0x4174ea['findIndex'](({type:_0x5aeebc,subType:_0x25b022})=>_0x5ceb03['type']==_0x5aeebc&&_0x5ceb03['subType']==_0x25b022),_0x37f550=_0x4174ea['findIndex'](({type:_0x3cf639,subType:_0xf5c1c4})=>_0x180c71['type']==_0x3cf639&&_0x180c71['subType']==_0xf5c1c4);if(_0x5e5189<0x0||_0x37f550<0x0)return!0x1;const _0x486abd=_0x5ceb03['getFirstRange'](),_0x420de6=_0x180c71['getFirstRange']();if((0x0==_0x5e5189||0x1==_0x5e5189)&&0x2==_0x37f550&&_0x486abd['isIntersecting'](_0x420de6))return!0x0;if(0x2==_0x5e5189&&0x3==_0x37f550){const _0x3c09ec=_0x435439['_findSuggestions'](_0x486abd,'insertion')['filter'](({suggestion:_0x37fe97,meta:_0x2e17cb})=>_0x2e17cb['isOwn']&&'convertInlineImageToBlock'==_0x37fe97['subType']);if(_0x3c09ec['length']>0x1&&_0x420de6['end']['isEqual'](_0x486abd['start']))return!0x0;if(0x1==_0x3c09ec['length']&&(_0x486abd['start']['isEqual'](_0x420de6['end'])||_0x486abd['end']['isEqual'](_0x420de6['start'])))return!0x0;}if(0x3==_0x5e5189&&0x3==_0x37f550&&_0x486abd['start']['isBefore'](_0x420de6['start'])){const _0x4d77ee=_0x486abd['end']['nodeAfter'],_0x64d61e=_0x420de6['start']['nodeBefore'];return _0x24ea87['isBlockImage'](_0x4d77ee)&&_0x4d77ee===_0x64d61e;}return!0x1;}function _0x4df10f(_0x2deecd,_0x4f70ac){return _0x41902c(_0x2deecd,_0x4f70ac)?[_0x2deecd,_0x4f70ac]:_0x41902c(_0x4f70ac,_0x2deecd)?[_0x4f70ac,_0x2deecd]:null;}_0xbcb28b['plugins']['has']('ImageResize')&&(_0x435439['enableDefaultAttributesIntegration']('resizeImage'),_0x435439['registerBlockAttribute']('resizedWidth'),_0x435439['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x51216b,'FORMAT_IMAGE_SIZE'))),_0xbcb28b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x435439['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x435439['registerBlockAttribute']('alt')),_0x435439['descriptionFactory']['registerDescriptionCallback'](_0x11ec43=>{if(!!_0x4174ea['find'](({type:_0x5a4dce,subType:_0x22d4c2})=>_0x11ec43['type']==_0x5a4dce&&_0x11ec43['subType']==_0x22d4c2))return _0x11ec43['previous']?{}:void 0x0;}),_0x435439['descriptionFactory']['registerDescriptionCallback'](_0x380b0e=>{if('insertion'==_0x380b0e['type']||'deletion'==_0x380b0e['type']){const _0x26b20b=_0x380b0e['getContainedElement']();if(_0x26b20b&&_0x26b20b['is']('element','caption'))return{'type':'insertion'==_0x380b0e['type']?'addObject':'removeObject','element':_0x26b20b,'quantity':0x1};}}),_0x435439['descriptionFactory']['registerDescriptionCallback'](_0x4e69fe=>'formatBlock'==_0x4e69fe['type']&&'convertInlineImageToBlock'==_0x4e69fe['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4e69fe['type']&&'convertBlockImageToInline'==_0x4e69fe['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x435439['descriptionFactory']['registerDescriptionCallback'](_0x24ac93=>{if('attribute'!=_0x24ac93['type'])return;const {data:_0x566368}=_0x24ac93;if(!_0x566368||'alt'!=_0x566368['key'])return;const _0x41f888=_0x566368['newValue'];return _0x41f888?{'type':'format','content':o(_0x51216b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x41f888+'\x22')}:{'type':'format','content':o(_0x51216b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19ed21=this['editor'],_0x5c7694=_0x19ed21['locale'];_0x19ed21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49184e=>{if('formatBlock'!=_0x49184e['type']&&'formatInline'!=_0x49184e['type'])return;const {data:_0x4333da}=_0x49184e;if(_0x4333da){if('imageTextAlternative'==_0x4333da['commandName']){const _0x1e9b28=_0x4333da['commandParams'][0x0]['newValue'];return _0x1e9b28?{'type':'format','content':o(_0x5c7694,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1e9b28+'\x22')}:{'type':'format','content':o(_0x5c7694,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4333da['commandName']){const _0x1ac18c=_0x4333da['commandParams'][0x0]['width'];return _0x1ac18c?{'type':'format','content':o(_0x5c7694,'*Set\x20image\x20width:*\x20%0',_0x1ac18c)}:{'type':'format','content':o(_0x5c7694,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x28108f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x25171f=this['editor']['locale'],_0x37fb3b=this['editor']['plugins']['get']('TrackChangesEditing');_0x37fb3b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x37fb3b['registerBlockAttribute']('src'),_0x37fb3b['descriptionFactory']['registerDescriptionCallback'](_0x17cb29=>{if('attribute'!=_0x17cb29['type'])return;const {data:_0x26ba7a}=_0x17cb29;return _0x26ba7a&&'src'==_0x26ba7a['key']?_0x26ba7a['newValue']&&_0x26ba7a['oldValue']?{'type':'format','content':o(_0x25171f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb64a85=this['editor']['plugins']['get']('TrackChangesEditing');_0xb64a85['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xb64a85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb64a85['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xb64a85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x887b1=this['editor'],_0x278988=_0x887b1['locale'];_0x887b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a146e=>{if('formatBlock'!=_0x1a146e['type']&&'formatInline'!=_0x1a146e['type'])return;const {data:_0x2ec390}=_0x1a146e;if(!_0x2ec390||'replaceImageSource'!=_0x2ec390['commandName'])return;return{'type':'format','content':o(_0x278988,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x28108f{['afterInit'](){const _0x524767=this['editor'];if(!_0x524767['plugins']['has']('ImageStyleEditing'))return;const _0x126eae=_0x524767['plugins']['get']('TrackChangesEditing'),_0x6d92bb=_0x524767['plugins']['get']('ImageUtils'),_0x383ca9={};_0x126eae['enableCommand']('imageStyle',(_0x204b0a,_0x19788c)=>{const _0x67c40a=_0x524767['plugins']['get']('Users')['me'],_0x49a403=_0x524767['commands']['get']('imageStyle');let _0x2c9a57=_0x6d92bb['getClosestSelectedImageElement'](_0x524767['model']['document']['selection']),_0x532758=_0x524767['model']['createRangeOn'](_0x2c9a57),_0x1bb1aa=_0x49a403['value'];if(_0x1bb1aa==_0x19788c['value'])return;const _0x2ed049={'commandName':'imageStyle','commandParams':[_0x19788c],'formatGroupId':_0x447718()};_0x524767['model']['change'](()=>{if(_0x126eae['getSuggestions']()['filter'](_0x13c97c=>_0x13c97c['isInContent']&&_0x67c40a==_0x13c97c['author']&&('formatBlock'==_0x13c97c['type']||'formatInline'==_0x13c97c['type'])&&('imageStylePreApply'==_0x13c97c['subType']||'imageStylePostApply'==_0x13c97c['subType'])&&_0x13c97c['getFirstRange']()['isEqual'](_0x532758))['forEach'](_0x4fafda=>_0x126eae['discardSuggestion'](_0x4fafda['head'])),_0x2c9a57=_0x6d92bb['getClosestSelectedImageElement'](_0x524767['model']['document']['selection']),_0x532758=_0x524767['model']['createRangeOn'](_0x2c9a57),_0x49a403['refresh'](),_0x524767['commands']['get']('imageTypeInline')['refresh'](),_0x524767['commands']['get']('imageTypeBlock')['refresh'](),_0x1bb1aa=_0x49a403['value'],_0x1bb1aa!=_0x19788c['value'])return _0x6d92bb['isInlineImage'](_0x2c9a57)&&_0x49a403['shouldConvertImageType'](_0x19788c['value'],_0x2c9a57)?(_0x204b0a({..._0x19788c,'setImageSizes':!0x1}),_0x2c9a57=_0x6d92bb['getClosestSelectedImageElement'](_0x524767['model']['document']['selection']),void _0x126eae['markBlockFormat'](_0x2c9a57,{..._0x2ed049,'commandReversedParams':[{'value':_0x1bb1aa||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x6d92bb['isBlockImage'](_0x2c9a57)?_0x126eae['markBlockFormat'](_0x2c9a57,_0x2ed049,[],'imageStylePostApply'):_0x126eae['markInlineFormat'](_0x532758,_0x2ed049,'imageStylePostApply'));});});for(const _0x3411d7 of _0x524767['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x383ca9[_0x3411d7['name']]=_0x3411d7['title']['toLowerCase']();_0x126eae['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x126eae['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x126eae['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x126eae['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2e0ea8])=>{_0x6d92bb['setImageNaturalSizeAttributes'](_0x2e0ea8['getContainedElement']());}),_0x126eae['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x37b57d,_0x794d95)=>{_0x126eae['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x37b57d,{'commandName':_0x794d95['commandName'],'commandParams':_0x794d95['commandReversedParams']});}),_0x126eae['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1b6655,_0x1ff7e6){if(_0x580847(_0x1b6655,_0x1ff7e6))return[_0x1b6655,_0x1ff7e6];if(_0x580847(_0x1ff7e6,_0x1b6655))return[_0x1ff7e6,_0x1b6655];return null;});const _0x5ee092=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x580847(_0x417113,_0x3c4280){const _0x1a3dc9=_0x5ee092['findIndex'](({type:_0x229917,subType:_0x1076f0})=>_0x417113['type']==_0x229917&&_0x417113['subType']==_0x1076f0),_0x4282cb=_0x5ee092['findIndex'](({type:_0x49dccd,subType:_0x32585a})=>_0x3c4280['type']==_0x49dccd&&_0x3c4280['subType']==_0x32585a);if(_0x1a3dc9<0x0||_0x4282cb<0x0)return!0x1;const _0x194394=_0x417113['getFirstRange'](),_0x43f86f=_0x3c4280['getFirstRange']();if((0x0==_0x1a3dc9||0x1==_0x1a3dc9)&&0x2==_0x4282cb&&_0x194394['isIntersecting'](_0x43f86f))return!0x0;if(0x2==_0x1a3dc9&&0x3==_0x4282cb){const _0x5cb1db=_0x126eae['_findSuggestions'](_0x194394,'insertion')['filter'](({suggestion:_0x529f47,meta:_0x5843af})=>_0x5843af['isOwn']&&'convertInlineImageToBlock'==_0x529f47['subType']);if(_0x5cb1db['length']>0x1&&_0x43f86f['end']['isEqual'](_0x194394['start']))return!0x0;if(0x1==_0x5cb1db['length']&&(_0x194394['start']['isEqual'](_0x43f86f['end'])||_0x194394['end']['isEqual'](_0x43f86f['start'])))return!0x0;}if(0x3==_0x1a3dc9&&0x3==_0x4282cb&&_0x194394['start']['isBefore'](_0x43f86f['start'])){const _0x21a555=_0x194394['end']['nodeAfter'],_0x115b6e=_0x43f86f['start']['nodeBefore'];return _0x6d92bb['isBlockImage'](_0x21a555)&&_0x21a555===_0x115b6e;}return!0x1;}_0x524767['model']['document']['registerPostFixer'](()=>{let _0x19da9c=!0x1;const _0x301caf=Array['from'](_0x524767['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x589313,data:_0x3a7563}of _0x301caf){const {group:_0x3239af,type:_0x27f98d,subType:_0xe7f44e,id:_0x4959a0}=_0x126eae['_splitMarkerName'](_0x589313);if('suggestion'==_0x3239af&&_0x126eae['hasSuggestion'](_0x4959a0)){if('formatBlock'==_0x27f98d&&('imageStylePreApply'==_0xe7f44e||'imageStylePostApply'==_0xe7f44e)){const _0x27a53d=_0x126eae['getSuggestion'](_0x4959a0);if(_0x3a7563['newRange']){const _0x4789df=_0x27a53d['getFirstRange']()['getContainedElement']();if(_0x6d92bb['isBlockImage'](_0x4789df))continue;_0x126eae['discardSuggestion'](_0x27a53d),_0x19da9c=!0x0;}}if('insertion'==_0x27f98d&&'imageCaption'==_0xe7f44e&&!_0x3a7563['newRange']){const _0x12398a=_0x126eae['getSuggestion'](_0x4959a0);_0x12398a['next']&&_0x12398a['next']['isInContent']&&(_0x126eae['discardSuggestion'](_0x12398a['next']),_0x19da9c=!0x0);}}}return _0x19da9c;}),this['_registerLegacyDescription'](_0x383ca9);}['_registerLegacyDescription'](_0x3ae8a4){const _0x452fb1=this['editor'],_0x45399b=_0x452fb1['locale'];_0x452fb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ec8a4=>{if('formatBlock'!=_0x3ec8a4['type']&&'formatInline'!=_0x3ec8a4['type'])return;const {data:_0x25bf51}=_0x3ec8a4;if(!_0x25bf51||'imageStyle'!=_0x25bf51['commandName'])return;const _0x437cbb=_0x25bf51['commandParams'][0x0]['value'];return _0x1b4260('side'===_0x437cbb?o(_0x45399b,'FORMAT_SIDE_IMAGE'):_0x3ae8a4[_0x437cbb]||_0x437cbb);function _0x1b4260(_0x2eded6){return{'type':'format','content':o(_0x45399b,'*Format:*\x20%0',_0x2eded6)};}});}}class at extends _0x28108f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3d6803){super(_0x3d6803),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x28633d=this['editor'],_0x7d183=_0x28633d['commands']['get']('importWord'),_0x407ebc=_0x28633d['commands']['get']('trackChanges');_0x7d183&&(_0x7d183['on']('execute',(_0x24827d,[,_0x3d5096])=>{this['_trackChangesValueDuringImport']=_0x407ebc['value'],_0x3d5096['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x7d183,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x7d183,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x407ebc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x28633d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x35175d,_0x4e55d1){const {suggestions:_0x2f18d3}=_0x4e55d1,_0x46041e=this['editor']['commands']['get']('trackChanges'),_0x2b793f=_0x46041e['value'];this['_trackChangesValueDuringImport']!==_0x2b793f&&(_0x46041e['execute'](),this['_trackChangesExecuted']=!0x0),_0x2f18d3&&_0x2f18d3['forEach'](({id:_0x1236fa,type:_0x3e82ec,author:_0x299385,created_at:_0x22f4cc})=>{const _0x1577f1={'id':_0x1236fa,'type':_0x3e82ec,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x299385,'createdAt':_0x22f4cc?new Date(_0x22f4cc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1577f1);});}}class ct extends _0x28108f{['afterInit'](){const _0x407e7f=this['editor'],_0x2e9f48=_0x407e7f['plugins']['get']('TrackChangesEditing');if(_0x407e7f['plugins']['has']('IndentEditing')&&(_0x2e9f48['enableCommand']('indent'),_0x2e9f48['enableCommand']('outdent')),_0x407e7f['plugins']['has']('IndentBlock')){for(const _0x49bfb4 of['indentBlock','outdentBlock'])_0x2e9f48['enableDefaultAttributesIntegration'](_0x49bfb4);}const _0xe662d6=_0x407e7f['locale'];_0x2e9f48['registerBlockAttribute']('blockIndent'),_0x2e9f48['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xe662d6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39b8e4=this['editor'],_0x2165c5=_0x39b8e4['locale'],_0x5a7a18=_0x39b8e4['plugins']['get']('TrackChangesEditing');_0x5a7a18['descriptionFactory']['registerDescriptionCallback'](_0x4ee7e6=>{if('formatBlock'!=_0x4ee7e6['type'])return;const {data:_0x94a439}=_0x4ee7e6;if(!_0x94a439)return;if('indentBlock'!=_0x94a439['commandName']&&'outdentBlock'!=_0x94a439['commandName'])return;const _0x4fb558=_0x4ee7e6['getItems']()[0x0],_0x2eb27d=_0x5a7a18['descriptionFactory']['getItemLabel'](_0x4fb558);return'indentBlock'==_0x94a439['commandName']?{'type':'format','content':o(_0x2165c5,'*Indent:*\x20%0',_0x2eb27d)}:'outdentBlock'==_0x94a439['commandName']?{'type':'format','content':o(_0x2165c5,'*Outdent:*\x20%0',_0x2eb27d)}:void 0x0;});}}class ut extends _0x28108f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x28108f{['afterInit'](){const _0x3cb16d=this['editor'];if(!_0x3cb16d['plugins']['has']('LinkEditing'))return;const _0x5510af=_0x3cb16d['plugins']['get']('TrackChangesEditing'),_0x2e5ccd=_0x3cb16d['commands']['get']('link');_0x5510af['enableDefaultAttributesIntegration']('link'),_0x5510af['enableDefaultAttributesIntegration']('unlink'),_0x5510af['registerInlineAttribute']('linkHref');for(const _0xe2b8f3 of _0x2e5ccd['manualDecorators'])_0x5510af['registerInlineAttribute'](_0xe2b8f3['id']),_0x5510af['descriptionFactory']['registerAttributeLabel'](_0xe2b8f3['id'],'link\x20('+_0xe2b8f3['label']['toLowerCase']()+')');_0x5510af['descriptionFactory']['registerDescriptionCallback'](_0xa3e6c6=>{if('attribute'!=_0xa3e6c6['type'])return;const {data:_0x3d1103}=_0xa3e6c6;if(!_0x3d1103||'linkHref'!=_0x3d1103['key'])return;const _0x32bf00=_0x3d1103['newValue'],_0x5799c9=_0x3cb16d['locale'];return{'type':'format','content':null==_0x32bf00?o(_0x5799c9,'*Remove\x20link*'):o(_0x5799c9,'*Set\x20link:*\x20%0','\x22'+_0x32bf00+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fdba9=this['editor'],_0x4bdeec=_0x4fdba9['locale'];_0x4fdba9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x327b87=>{if('formatInline'!=_0x327b87['type'])return;const {data:_0x2ab27d}=_0x327b87;if(_0x2ab27d){if('link'==_0x2ab27d['commandName']){const _0x5a4ebb=_0x2ab27d['commandParams'][0x0];return{'type':'format','content':o(_0x4bdeec,'*Set\x20link:*\x20%0','\x22'+_0x5a4ebb+'\x22')};}return'unlink'==_0x2ab27d['commandName']?{'type':'format','content':o(_0x4bdeec,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x28108f{['afterInit'](){const _0x254be2=this['editor'],_0x535507=_0x254be2['locale'];if(!_0x254be2['plugins']['has']('LegacyListEditing'))return;const _0x4a34d4=_0x254be2['plugins']['get']('TrackChangesEditing'),_0x5323c5=_0x254be2['plugins']['has']('LegacyTodoListEditing');function _0x35f53e(_0xc24397){return()=>{const _0x1adfd1=_0x254be2['model']['document']['selection'],_0x4a419a=_0x254be2['commands']['get'](_0xc24397);if(_0x4a419a['value'])return void _0x254be2['execute']('paragraph',{});const _0xf431bf=_0xc24397['slice'](0x0,-0x4),_0x4f88e5=function(_0x418e6e,_0x1b3115,_0x29b9f9){let _0x4171df=Array['from'](_0x418e6e)['filter'](_0x2bedb2=>function(_0x19cd3f,_0xe125ba){return _0xe125ba['checkChild'](_0x19cd3f['parent'],'listItem')&&!_0xe125ba['isObject'](_0x19cd3f);}(_0x2bedb2,_0x29b9f9));_0x4171df=_0x4171df['filter'](_0x25add8=>!_0x25add8['is']('element','listItem')||_0x25add8['getAttribute']('listType')!=_0x1b3115);const _0x3c27=new Set();for(const _0x34ffb3 of _0x4171df)_0x34ffb3['is']('element','listItem')?_0x3c27['add'](fe(_0x34ffb3)):_0x3c27['add'](_0x34ffb3);return Array['from'](_0x3c27);}(_0x1adfd1['getSelectedBlocks'](),_0xf431bf,_0x254be2['model']['schema']);_0x254be2['model']['change'](()=>{for(const _0x1f3fd0 of _0x4f88e5)_0x4a34d4['markBlockFormat'](_0x1f3fd0,{'commandName':_0xc24397,'commandParams':[{'forceValue':!_0x4a419a['value']}],'formatGroupId':'blockName'},ue(_0x1f3fd0));});};}function _0x26a9eb(_0x2718d6){return()=>{const _0x3df563=function(_0x334f1b){let _0x357377=Array['from'](_0x334f1b);const _0x2c6c8d=_0x357377['findIndex'](_0x10ea8d=>'listItem'!=_0x10ea8d['name']);return _0x2c6c8d>-0x1&&(_0x357377=_0x357377['slice'](0x0,_0x2c6c8d)),_0x357377;}(_0x254be2['model']['document']['selection']['getSelectedBlocks']()),_0x24dbba=_0x254be2['model']['createRange'](_0x254be2['model']['createPositionAt'](_0x3df563[0x0],'before'),_0x254be2['model']['createPositionAt'](_0x3df563[_0x3df563['length']-0x1],'end'));_0x254be2['model']['change'](()=>{_0x4a34d4['markBlockFormat'](_0x24dbba,{'commandName':_0x2718d6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x30365e){const _0x8ebea7=new Set();for(const _0x5d7337 of _0x30365e){let _0x2ba9d0=_0x5d7337['nextSibling'];for(;_0x2ba9d0&&_0x2ba9d0['getAttribute']('listIndent')>_0x5d7337['getAttribute']('listIndent');)_0x8ebea7['add'](_0x2ba9d0),_0x2ba9d0=_0x2ba9d0['nextSibling'];}return Array['from'](_0x8ebea7);}(_0x3df563));});};}_0x4a34d4['enableCommand']('numberedList',_0x35f53e('numberedList')),_0x4a34d4['enableCommand']('bulletedList',_0x35f53e('bulletedList')),_0x5323c5&&_0x4a34d4['enableCommand']('todoList',_0x35f53e('todoList')),_0x4a34d4['enableCommand']('indentList',_0x26a9eb('indentList')),_0x4a34d4['enableCommand']('outdentList',_0x26a9eb('outdentList')),_0x5323c5&&_0x4a34d4['enableCommand']('checkTodoList',()=>{const _0x398376=_0x254be2['commands']['get']('checkTodoList'),_0x236405=Array['from'](_0x398376['_selectedElements']);_0x236405['filter'](_0x28ee85=>_0x28ee85['getAttribute']('todoListChecked')!=_0x398376['value']),_0x254be2['model']['change'](()=>{for(const _0x238aaf of _0x236405)_0x4a34d4['markBlockFormat'](_0x238aaf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x398376['value']}]});});}),_0x4a34d4['descriptionFactory']['registerElementLabel']('listItem',_0x44e263=>o(_0x535507,'ELEMENT_LIST_ITEM',_0x44e263)),_0x4a34d4['descriptionFactory']['registerDescriptionCallback'](_0x2744df=>{if('formatBlock'!=_0x2744df['type']&&'formatInline'!=_0x2744df['type'])return;const {data:_0xf53f17}=_0x2744df;if(_0xf53f17){if('numberedList'==_0xf53f17['commandName']||'bulletedList'==_0xf53f17['commandName']||'todoList'==_0xf53f17['commandName'])switch(_0xf53f17['commandName']['replace']('List','')){case'bulleted':return _0xb2bdde(o(_0x535507,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb2bdde(o(_0x535507,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb2bdde(o(_0x535507,'ELEMENT_TODO_LIST'));}if('indentList'==_0xf53f17['commandName'])return{'type':'format','content':o(_0x535507,'*Indent:*\x20%0',o(_0x535507,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xf53f17['commandName'])return{'type':'format','content':o(_0x535507,'*Outdent:*\x20%0',o(_0x535507,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xf53f17['commandName'])return _0xf53f17['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x535507,'*Check\x20item*')}:{'type':'format','content':o(_0x535507,'*Uncheck\x20item*')};}function _0xb2bdde(_0x32d2d7){return{'type':'format','content':o(_0x535507,'*Change\x20to:*\x20%0',_0x32d2d7)};}});}}function fe(_0x464870){const _0x54e5f7=_0x464870['getAttribute']('listIndent');if(0x0==_0x54e5f7)return _0x464870;let _0x27f325=_0x464870;for(;_0x464870['previousSibling']&&_0x464870['previousSibling']['is']('element','listItem');){const _0x27a0a3=_0x464870['previousSibling']['getAttribute']('listIndent');if(_0x27a0a3==_0x54e5f7)_0x27f325=_0x464870['previousSibling'];else{if(_0x27a0a3<_0x54e5f7)break;}_0x464870=_0x464870['previousSibling'];}return _0x27f325;}function ue(_0x523698){const _0x5c3083=[];if(_0x523698['is']('element','listItem')&&_0x523698['getAttribute']('listIndent')>0x0){let _0x593505=_0x523698['nextSibling'];for(;_0x593505&&'listItem'==_0x593505['name']&&_0x593505['getAttribute']('listIndent')==_0x523698['getAttribute']('listIndent');)_0x5c3083['push'](_0x593505),_0x593505=_0x593505['nextSibling'];}return _0x5c3083;}class W extends _0x28108f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x37f00e=this['editor']['config']['get']('list.properties'),_0x211359=this['editor']['plugins']['get']('TrackChangesEditing');_0x37f00e['styles']&&_0x211359['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x37f00e['reversed']&&_0x211359['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x37f00e['startIndex']&&_0x211359['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x211359['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x21b7b6,_0x45a22e={}){const _0xc3742b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x481c25=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xc3742b['markMultiRangeBlockFormat'](_0x481c25,{'commandName':'listStyle','commandParams':[{'type':_0x45a22e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5e64df,_0x59b9c0={}){const _0x16e33d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11d88e=this['_getSuggestionBlocks'](_0x115e1d=>_0x115e1d['is']('element','listItem')&&'numbered'===_0x115e1d['getAttribute']('listType'));if(_0x11d88e['length']<0x1)return;const _0x2fc50b=_0x11d88e['map'](_0x3049fe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3049fe,'before'),this['editor']['model']['createPositionAt'](_0x3049fe,0x0)));this['editor']['model']['change'](()=>{_0x16e33d['markMultiRangeBlockFormat'](_0x2fc50b,{'commandName':'listReversed','commandParams':[{'reversed':_0x59b9c0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x35e013,_0x3b8de6={}){const _0x1167bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5281cc=this['_getSuggestionBlocks'](_0x131754=>_0x131754['is']('element','listItem')&&'numbered'===_0x131754['getAttribute']('listType'));if(_0x5281cc['length']<0x1)return;const _0x56c995=_0x5281cc['map'](_0x5102ba=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5102ba,'before'),this['editor']['model']['createPositionAt'](_0x5102ba,0x0)));this['editor']['model']['change'](()=>{_0x1167bc['markMultiRangeBlockFormat'](_0x56c995,{'commandName':'listStart','commandParams':[{'startIndex':_0x3b8de6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3644f5){if('formatBlock'!=_0x3644f5['type']&&'formatInline'!=_0x3644f5['type'])return;const _0x321916=this['editor']['locale'],{data:_0x5bdcfd}=_0x3644f5;if(!_0x5bdcfd)return;let _0x516d73,_0x229c6e;switch(_0x5bdcfd['commandName']){case'listStyle':_0x516d73='*Change\x20to:*\x20%0',_0x229c6e={'type':'format','content':o(_0x321916,_0x516d73,o(_0x321916,this['_getTranslationKeyForListStyle'](_0x5bdcfd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x516d73=_0x5bdcfd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x229c6e={'type':'format','content':o(_0x321916,_0x516d73)};break;case'listStart':_0x516d73='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x229c6e={'type':'format','content':o(_0x321916,_0x516d73,_0x5bdcfd['commandParams'][0x0]['startIndex'])};}return _0x229c6e;}['_getSuggestionBlocksForListStyle'](){const _0x54b178=this['editor']['plugins']['get']('LegacyListUtils');let _0x49abba=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x49abba[0x0]?.['is']('element','listItem')&&_0x49abba['unshift'](..._0x54b178['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x49abba[_0x49abba['length']-0x1]?.['is']('element','listItem')&&_0x49abba['push'](..._0x54b178['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x49abba=[...new Set(_0x49abba)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x49abba=_0x49abba['filter'](_0x23df15=>_0x23df15['is']('element','listItem'))),_0x49abba;}['_getSuggestionBlocks'](_0x561d7c){const _0x4ea2f6=this['editor']['plugins']['get']('LegacyListUtils');let _0x4e2494=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x561d7c)['map'](_0x340b29=>{const _0x164610=this['editor']['model']['createPositionAt'](_0x340b29,0x0);return[..._0x4ea2f6['getSiblingNodes'](_0x164610,'backward'),..._0x4ea2f6['getSiblingNodes'](_0x164610,'forward')];})['flat']();return _0x4e2494=[...new Set(_0x4e2494)],_0x4e2494;}['_getTranslationKeyForListStyle'](_0x37f47d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x37f47d)||'default')['toUpperCase']()+'_LIST_'+_0x37f47d['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x28108f{['afterInit'](){const _0x3fee9f=this['editor'];if(!_0x3fee9f['plugins']['has']('MediaEmbedEditing'))return;const _0x573123=_0x3fee9f['plugins']['get']('TrackChangesEditing'),_0x310c72=_0x3fee9f['locale'];_0x573123['enableCommand']('mediaEmbed'),_0x573123['descriptionFactory']['registerElementLabel']('media',_0x38e218=>o(_0x310c72,'ELEMENT_MEDIA',_0x38e218)),_0x3fee9f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d078c,{writer:_0x2d1681,options:_0x402dd4})=>{if(_0x402dd4['showSuggestionHighlights'])return _0x2d1681['createEmptyElement']('div');},'converterPriority':'high'}),_0x3fee9f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x172b95,_0x53b1cd,_0x4ac7e8)=>{_0x4ac7e8['options']['showSuggestionHighlights']&&_0x172b95['stop']();},{'priority':'high'});}}class mt extends _0x28108f{['afterInit'](){const _0x2e65aa=this['editor'];_0x2e65aa['plugins']['has']('MentionEditing')&&_0x2e65aa['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x28108f{['afterInit'](){const _0x12d39e=this['editor'];if(!_0x12d39e['plugins']['has']('MergeFieldsEditing'))return;_0x12d39e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x12d39e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2182ff=_0x12d39e['plugins']['get']('TrackChangesEditing'),_0x4618a6=_0x12d39e['locale'];_0x2182ff['descriptionFactory']['registerElementLabel']('mergeField',_0x2fadec=>o(_0x4618a6,'ELEMENT_MERGE_FIELD',_0x2fadec)),_0x2182ff['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5db9cd=>o(_0x4618a6,'ELEMENT_MERGE_FIELD',_0x5db9cd)),_0x2182ff['descriptionFactory']['registerDescriptionCallback'](_0x4e0cbf=>{if('insertion'!=_0x4e0cbf['type']&&'deletion'!=_0x4e0cbf['type'])return;const _0x5b3328=_0x4e0cbf['getContainedElement']();if(null==_0x5b3328)return;if(!_0x5b3328['is']('element','mergeField')&&!_0x5b3328['is']('element','mergeFieldBlock'))return;const _0x346a9d=_0x12d39e['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5b3328['getAttribute']('id'));return'insertion'==_0x4e0cbf['type']?{'type':'insertion','content':o(_0x4618a6,'*Insert:*\x20%0','\x22'+_0x346a9d+'\x22\x20'+o(_0x4618a6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4618a6,'*Remove:*\x20%0','\x22'+_0x346a9d+'\x22\x20'+o(_0x4618a6,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x28108f{['afterInit'](){const _0x488dc1=this['editor'],_0x4c96c0=_0x488dc1['plugins']['get']('TrackChangesEditing');_0x488dc1['plugins']['has']('MultiLevelList')&&(_0x4c96c0['enableDefaultAttributesIntegration']('multiLevelList'),_0x4c96c0['registerBlockAttribute']('listMarkerStyle'),_0x4c96c0['descriptionFactory']['registerDescriptionCallback'](_0x3b7bf1=>this['handleDescriptions'](_0x3b7bf1)));}['handleDescriptions'](_0x1477ea){const _0x18398e=this['editor']['locale'],{data:_0x2fae17}=_0x1477ea,_0x26801e={'type':'format','content':''};if(_0x2fae17&&'listMarkerStyle'==_0x2fae17['key']){if(!_0x2fae17['oldValue'])return{'type':'format','content':o(_0x18398e,'*Set\x20format:*\x20%0',o(_0x18398e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2fae17['newValue']+')'};if(!_0x2fae17['newValue']){let _0x4851bb=_0x1477ea['head'];for(;_0x4851bb;){if(_0x4851bb['data']&&'listType'==_0x4851bb['data']['key']&&_0x4851bb['data']['newValue'])return _0x26801e;_0x4851bb=_0x4851bb['next'];}return{'type':'format','content':o(_0x18398e,'*Remove\x20format:*\x20%0',o(_0x18398e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2fae17['oldValue']+')'};}}}}class kt extends _0x28108f{['afterInit'](){const _0x559db5=this['editor'];if(!_0x559db5['plugins']['has']('PageBreakEditing'))return;_0x559db5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4a1cc8=_0x559db5['plugins']['get']('TrackChangesEditing'),_0x21834e=_0x559db5['locale'];_0x4a1cc8['descriptionFactory']['registerElementLabel']('pageBreak',_0x310b4d=>o(_0x21834e,'ELEMENT_PAGE_BREAK',_0x310b4d));}}class bt extends _0x28108f{['afterInit'](){const _0x31947d=this['editor'];if(!_0x31947d['plugins']['has']('Paragraph'))return;const _0x5302fc=_0x31947d['locale'],_0x5729d1=_0x31947d['plugins']['get']('TrackChangesEditing');_0x5729d1['descriptionFactory']['registerElementLabel']('paragraph',_0x3f582d=>o(_0x5302fc,'ELEMENT_PARAGRAPH',_0x3f582d)),_0x5729d1['enableDefaultAttributesIntegration']('paragraph'),_0x5729d1['enableCommand']('insertParagraph'),_0x31947d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x31947d),{'priority':'highest'}),_0x31947d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x453eaa,_0x4c0796,_0x44da85)=>{_0x44da85['options']['showSuggestionHighlights']&&nr(_0x31947d,{'showActiveMarker':!0x1})(_0x453eaa,_0x4c0796,_0x44da85);},{'priority':'highest'});const _0x3aed5c=_0x5729d1['descriptionFactory'];_0x3aed5c['registerDescriptionCallback'](_0x2aeed2=>{if('insertion'!==_0x2aeed2['type'])return;const {start:_0x10f245,end:_0x5988cc}=_0x2aeed2['getFirstRange']();if(!_0x10f245['isTouching'](_0x5988cc)||!_0x10f245['nodeAfter'])return;const _0x1ebab8=_0x31947d['model']['schema'],_0x37b24b=_0x10f245['nodeAfter'];return _0x1ebab8['isBlock'](_0x37b24b)&&!_0x1ebab8['isLimit'](_0x37b24b)&&_0x1ebab8['checkChild'](_0x37b24b,'$text')?{'type':'insertion','content':o(_0x5302fc,'*Insert:*\x20%0',_0x3aed5c['getItemLabel'](_0x37b24b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37026b=this['editor'],_0x486ebe=_0x37026b['locale'];_0x37026b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed8b9=>{if('formatBlock'!=_0x3ed8b9['type'])return;const {data:_0x19d180}=_0x3ed8b9;return _0x19d180&&'paragraph'==_0x19d180['commandName']?{'type':'format','content':o(_0x486ebe,'*Change\x20to:*\x20%0',o(_0x486ebe,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1c4902,{showActiveMarker:_0x413165=!0x0}={}){return(_0x1b0593,_0x2f681c,_0x38d86f)=>{const _0x4854bd=_0x1c4902['plugins']['get']('TrackChangesEditing'),_0x32b0d4=_0x2f681c['markerRange']['start'],_0x440045=_0x2f681c['markerRange']['end'],_0x16b6fc=_0x1c4902['model']['schema'];if(!_0x32b0d4['isTouching'](_0x440045)||!_0x32b0d4['nodeAfter'])return;const _0x2b5d38=_0x32b0d4['nodeAfter'];if(_0x16b6fc['isBlock'](_0x2b5d38)&&!_0x16b6fc['isLimit'](_0x2b5d38)&&_0x16b6fc['checkChild'](_0x2b5d38,'$text')){if(!_0x38d86f['consumable']['consume'](_0x2f681c['markerRange'],_0x1b0593['name']))return;const {authorId:_0x555c1a}=_0x4854bd['_splitMarkerName'](_0x2f681c['markerName']),_0x88e155=_0x38d86f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x555c1a}),_0xfdd6=_0x38d86f['mapper']['toViewPosition'](_0x440045);_0x413165&&_0x4854bd['activeMarkers']['includes'](_0x2f681c['markerName'])&&_0x38d86f['writer']['addClass']('ck-suggestion-marker--active',_0x88e155),_0x38d86f['writer']['insert'](_0xfdd6,_0x88e155),_0x38d86f['mapper']['bindElementToMarker'](_0x88e155,_0x2f681c['markerName']);}};}class wt extends _0x28108f{['afterInit'](){const _0x4157d5=this['editor'];if(!_0x4157d5['plugins']['has']('RemoveFormatEditing'))return;_0x4157d5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fd227=this['editor'];_0x3fd227['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16451a=>{if('formatBlock'!=_0x16451a['type']&&'formatInline'!=_0x16451a['type'])return;const {data:_0x18d778}=_0x16451a;return _0x18d778&&'removeFormat'==_0x18d778['commandName']?{'type':'format','content':o(_0x3fd227['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x28108f{['afterInit'](){const _0x38ae9d=this['editor'];if(!_0x38ae9d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x396e40=_0x38ae9d['plugins']['get']('TrackChangesEditing');_0x396e40['enableCommand']('goToPreviousRestrictedEditingException'),_0x396e40['enableCommand']('goToNextRestrictedEditingException');const _0xfa85d0=_0x38ae9d['plugins']['get']('RestrictedEditingModeEditing');_0xfa85d0['enableCommand']('trackChanges'),_0xfa85d0['enableCommand']('acceptSuggestion'),_0xfa85d0['enableCommand']('discardSuggestion'),_0xfa85d0['enableCommand']('acceptAllSuggestions'),_0xfa85d0['enableCommand']('discardAllSuggestions'),_0xfa85d0['enableCommand']('acceptSelectedSuggestions'),_0xfa85d0['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x28108f{static get['requires'](){return[_0x13f44e];}['init'](){const _0x59952d=this['editor'],_0x50533f=_0x59952d['plugins']['get']('TrackChangesEditing');_0x50533f['enableCommand']('shiftEnter'),_0x59952d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x59952d),{'priority':'high'}),_0x59952d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x59952d),{'priority':'high'}),_0x59952d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x989c8a,_0x4720e5,_0x3376aa)=>{_0x3376aa['options']['showSuggestionHighlights']&&ge(_0x59952d,{'showActiveMarker':!0x1})(_0x989c8a,_0x4720e5,_0x3376aa);}),_0x50533f['descriptionFactory']['registerElementLabel']('softBreak',_0x2f474e=>o(_0x59952d['locale'],'ELEMENT_LINE_BREAK',_0x2f474e));}}function ge(_0x588c6e,{showActiveMarker:_0x1e4c0e=!0x0}={}){return(_0x64678,_0x38313d,_0x111bfa)=>{const _0x1a3801=_0x588c6e['plugins']['get']('TrackChangesEditing');if(!_0x111bfa['consumable']['test'](_0x38313d['markerRange'],_0x64678['name']))return;const _0x31d60f=_0x588c6e['model'];for(const _0x3c015a of _0x38313d['markerRange']['getItems']()){if(!_0x3c015a['is']('element','softBreak'))continue;const _0x15cc3f='deletion'==_0x38313d['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x39566f}=_0x1a3801['_splitMarkerName'](_0x38313d['markerName']),_0x4de190=_0x111bfa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15cc3f,'data-author-id':_0x39566f}),_0x162a9f=_0x111bfa['mapper']['toViewPosition'](_0x31d60f['createPositionBefore'](_0x3c015a));_0x1e4c0e&&_0x1a3801['activeMarkers']['includes'](_0x38313d['markerName'])&&_0x111bfa['writer']['addClass']('ck-suggestion-marker--active',_0x4de190),_0x111bfa['writer']['insert'](_0x162a9f,_0x4de190),_0x111bfa['mapper']['bindElementToMarker'](_0x4de190,_0x38313d['markerName']);}};}class St extends _0x28108f{['afterInit'](){const _0x570205=this['editor'],_0x690af=_0x570205['model'],_0x1ce595=_0x570205['locale'];if(!_0x570205['plugins']['has']('StandardEditingModeEditing'))return;const _0x40e8a6=_0x570205['plugins']['get']('TrackChangesEditing'),_0x2c6df6='restrictedEditingException',_0x28c8c0=_0x570205['commands']['get'](_0x2c6df6);_0x40e8a6['enableCommand'](_0x2c6df6,(_0x4b4fd8,_0x4aeacf={})=>{const _0x490e2c=_0x690af['document']['selection'];if(_0x490e2c['isCollapsed'])return void _0x4b4fd8(_0x4aeacf);const _0x4bc5bf=void 0x0!==_0x4aeacf['forceValue']?_0x4aeacf['forceValue']:!_0x28c8c0['value'];_0x690af['change'](()=>{const _0x459102=Array['from'](_0x490e2c['getRanges']());for(const _0x623934 of _0x459102){const _0x2ff65b=_0x4bc5bf?[_0x623934]:io(_0x2c6df6,_0x623934,_0x690af);for(const _0x5a606e of _0x2ff65b)_0x40e8a6['markInlineFormat'](_0x5a606e,{'commandName':_0x2c6df6,'commandParams':[{'forceValue':_0x4bc5bf}]});}});}),_0x40e8a6['descriptionFactory']['registerDescriptionCallback'](_0x1bc4ff=>{if('formatBlock'!=_0x1bc4ff['type']&&'formatInline'!=_0x1bc4ff['type'])return;const {data:_0x20e449}=_0x1bc4ff;return _0x20e449&&_0x20e449['commandName']==_0x2c6df6?_0x20e449['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ce595,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1ce595,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x28108f{['afterInit'](){const _0x1d7616=this['editor'];if(!_0x1d7616['plugins']['has']('Style')||!_0x1d7616['plugins']['has']('DataSchema'))return;const _0x42f37b=_0x1d7616['plugins']['get']('TrackChangesEditing'),_0x2981d8=_0x1d7616['locale'],_0x6d8176=_0x1d7616['config']['get']('style')||{},_0x57035d=_0x1d7616['plugins']['get']('GeneralHtmlSupport'),_0x11bc39=_0x1d7616['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1d7616['plugins']['get']('DataSchema'),_0x6d8176['definitions']);_0x42f37b['enableDefaultAttributesIntegration']('style');const _0x25e706=new Set();for(const _0x46d14c of _0x11bc39['block']){const _0x4158cc=_0x57035d['getGhsAttributeNameForElement'](_0x46d14c['element']);_0x25e706['add'](_0x4158cc);}const _0x49bbae=new Set();for(const _0x2f9af3 of _0x11bc39['inline']){const _0xfe052a=_0x57035d['getGhsAttributeNameForElement'](_0x2f9af3['element']);_0x49bbae['add'](_0xfe052a);for(const _0x39acc9 of _0x2f9af3['ghsAttributes'])_0x49bbae['add'](_0x39acc9);}for(const _0x1e2e08 of _0x25e706)_0x42f37b['registerBlockAttribute'](_0x1e2e08),_0x42f37b['descriptionFactory']['registerAttributeLabel'](_0x1e2e08,o(_0x2981d8,'FORMAT_STYLE'));for(const _0xf51550 of _0x49bbae)_0x42f37b['registerInlineAttribute'](_0xf51550),_0x42f37b['descriptionFactory']['registerAttributeLabel'](_0xf51550,o(_0x2981d8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54b121=this['editor'],_0x238bbd=_0x54b121['locale'];_0x54b121['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e7908=>{if('formatBlock'!=_0x2e7908['type']&&'formatInline'!=_0x2e7908['type'])return;const {data:_0x2a9d4c}=_0x2e7908;return _0x2a9d4c&&'style'===_0x2a9d4c['commandName']?_0x2a9d4c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x238bbd,'*Set\x20format:*\x20%0',_0x2a9d4c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x238bbd,'*Remove\x20format:*\x20%0',_0x2a9d4c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x28108f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xf5ac68){super(_0xf5ac68),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xa41f47=this['editor'],_0x58813e=_0xa41f47['model']['document']['selection'];if(!_0xa41f47['plugins']['has']('TableEditing'))return;const _0x343a36=_0xa41f47['locale'],_0x4e18f1=_0xa41f47['plugins']['get']('TrackChangesEditing'),_0x4d924a=_0xa41f47['plugins']['get']('TableUtils');_0x4e18f1['descriptionFactory']['registerElementLabel']('table',_0x111df6=>o(_0x343a36,'ELEMENT_TABLE',_0x111df6)),this['_setupColumnsRowsFixing'](),_0x4e18f1['enableCommand']('insertTable'),_0x4e18f1['enableCommand']('selectTableRow'),_0x4e18f1['enableCommand']('selectTableColumn');for(const _0x2ea913 of['insertTableRowAbove','insertTableRowBelow']){const _0x38752b=_0xa41f47['commands']['get'](_0x2ea913);_0x4e18f1['enableCommand'](_0x2ea913,_0x5a0a5e=>{_0xa41f47['model']['change'](_0xd330b1=>{_0x5a0a5e();const _0x1e5121='above'===_0x38752b['order'],_0x52f471=_0x4d924a['getSelectionAffectedTableCells'](_0x58813e),_0x1bd313=_0x4d924a['getRowIndexes'](_0x52f471),_0x3418d0=_0x1e5121?_0x1bd313['first']-0x1:_0x1bd313['last']+0x1,_0xaa812a=_0x52f471[0x0]['findAncestor']('table'),_0x17bcb4=_0x4d924a['createTableWalker'](_0xaa812a,{'startRow':_0x3418d0,'endRow':_0x3418d0}),_0x4d669b=Array['from'](_0x17bcb4)['map'](_0x39900a=>_0xd330b1['createRangeOn'](_0x39900a['cell']));_0x4e18f1['markMultiRangeInsertion'](_0x4d669b,'tableRow');});});}for(const _0x1bd7e2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x160a36=_0xa41f47['commands']['get'](_0x1bd7e2);_0x4e18f1['enableCommand'](_0x1bd7e2,_0x14ecf9=>{_0xa41f47['model']['change'](_0x4aa84a=>{_0x14ecf9();const _0x3ccdd7='left'===_0x160a36['order'],_0x355b97=_0x4d924a['getSelectionAffectedTableCells'](_0x58813e),_0x32cf23=_0x4d924a['getColumnIndexes'](_0x355b97),_0xaf9f9a=_0x3ccdd7?_0x32cf23['first']-0x1:_0x32cf23['last']+0x1,_0x2767b4=_0x355b97[0x0]['findAncestor']('table'),_0x1c96d3=_0x4d924a['createTableWalker'](_0x2767b4,{'startRow':0x0,'column':_0xaf9f9a,'includeAllSlots':!0x1}),_0x300906=Array['from'](_0x1c96d3)['map'](_0x15880e=>_0x4aa84a['createRangeOn'](_0x15880e['cell']));_0x4e18f1['markMultiRangeInsertion'](_0x300906,'tableColumn');});});}for(const _0x2730ce of['removeTableRow','removeTableColumn']){const _0x7fcbcc=_0x2730ce['substr'](0xb),_0x188d2f=_0x7fcbcc['toLowerCase'](),_0x131e27=_0x188d2f['substr'](0x0,0x3)+'span',_0x1f1951='table'+_0x7fcbcc,_0x49478='min'+_0x7fcbcc,_0x3ffd8d='max'+_0x7fcbcc;_0x4e18f1['enableCommand'](_0x2730ce,()=>{_0xa41f47['model']['change'](_0x630d6c=>{const _0x3e68e6=_0x4d924a['getSelectionAffectedTableCells'](_0x58813e),_0x291a38=_0x3e68e6[0x0]['findAncestor']('table');let _0x1886cb;if('removeTableRow'==_0x2730ce){const _0x3c1251=_0x4d924a['getRowIndexes'](_0x3e68e6);_0x1886cb={'startRow':_0x3c1251['first'],'endRow':_0x3c1251['last'],'includeAllSlots':!0x0};}else{const _0x2ed8e4=_0x4d924a['getColumnIndexes'](_0x3e68e6);_0x1886cb={'startColumn':_0x2ed8e4['first'],'endColumn':_0x2ed8e4['last'],'includeAllSlots':!0x0};}const _0x22f637=_0x4d924a['createTableWalker'](_0x291a38,_0x1886cb),_0x17764c=Array['from'](_0x22f637)['map'](({cell:_0x7f210c})=>_0x7f210c),_0x42c7a9=be(_0x17764c['filter'](_0x1ef4e8=>_0x1ef4e8['hasAttribute'](_0x131e27))),_0xa5c0d8=be(_0x17764c['filter'](_0x8b5c55=>!_0x8b5c55['hasAttribute'](_0x131e27)))['map'](_0x2bfa4f=>_0x630d6c['createRangeOn'](_0x2bfa4f)),_0x21a23f=_0x4e18f1['markMultiRangeDeletion'](_0xa5c0d8,_0x1f1951);if(_0x21a23f&&('tableRow'==_0x21a23f['subType']||'tableColumn'==_0x21a23f['subType'])){const _0x2742eb=this['_getSuggestionCoords'](_0x21a23f);for(const _0x587d6e of _0x42c7a9){const _0x231595=_0x630d6c['createRangeOn'](_0x587d6e),_0x5c2d21=_0x4d924a['getCellLocation'](_0x587d6e),_0x20b5bb=_0x587d6e['getAttribute'](_0x131e27)-0x1,_0x433d3d=_0x2742eb[_0x49478],_0x3eb696=_0x2742eb[_0x3ffd8d];_0x433d3d<=_0x5c2d21[_0x188d2f]&&_0x5c2d21[_0x188d2f]+_0x20b5bb<=_0x3eb696&&_0x21a23f['addRange'](_0x231595);}}});});}function _0x20aaac(_0x4f06a9){const _0x3f5f2c=Array['from'](_0x58813e['getRanges']())['map'](_0x3f9b00=>_0x29d231['fromRange'](_0x3f9b00));_0xa41f47['model']['change'](_0x28c7d9=>{const _0x3f8e2e=_0x28c7d9['batch'];_0x4f06a9=_0x4f06a9['filter'](_0x404f15=>'$graveyard'!=_0x404f15['root']['rootName']),_0x28c7d9['setSelection'](_0x4f06a9),_0xa41f47['commands']['get']('removeTableRow')['refresh'](),_0xa41f47['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xa41f47['model']['enqueueChange'](()=>{_0xa41f47['model']['enqueueChange'](_0x3f8e2e,_0x2d226a=>{const _0x1d9688=_0x3f5f2c['filter'](_0x901e15=>'$graveyard'!=_0x901e15['root']['rootName']);_0x1d9688['length']>0x0&&_0x2d226a['setSelection'](_0x1d9688);for(const _0x267d27 of _0x3f5f2c)_0x267d27['detach']();});});});}function _0x119961(_0x5d02bb){_0xa41f47['model']['change'](_0x5a2146=>{const _0x310636=Array['from'](_0x58813e['getRanges']())['map'](_0x180721=>_0x29d231['fromRange'](_0x180721)),_0x520843=[];for(const _0x238be8 of _0x5d02bb)for(const _0x831b9b of _0x238be8['getItems']({'shallow':!0x0}))_0x520843['push'](_0x831b9b);for(const _0x5960f6 of _0x520843)'$graveyard'!=_0x5960f6['root']['rootName']&&(_0x5a2146['setSelection'](_0x5a2146['createPositionAt'](_0x5960f6,0x0)),_0xa41f47['commands']['get']('removeTableColumn')['refresh'](),_0xa41f47['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xe2825e=_0x310636['filter'](_0x5f0e80=>'$graveyard'!=_0x5f0e80['root']['rootName']);_0xe2825e['length']>0x0&&_0x5a2146['setSelection'](_0xe2825e);for(const _0x22b441 of _0x310636)_0x22b441['detach']();});}function _0x2bdba3(_0x369e18,_0xdf7064){return _0xdf7064['every'](_0xfe4aed=>_0x369e18['some'](_0x3330a1=>_0x3330a1['end']['isEqual'](_0xfe4aed['start'])||_0xfe4aed['end']['isEqual'](_0x3330a1['start'])));}function _0x40535e(_0x15ff71,_0x15a2ab){return!_0x15ff71['some'](_0xa4e59f=>_0x15a2ab['some'](_0x163235=>_0xa4e59f['isIntersecting'](_0x163235)))&&_0x15ff71['some'](_0x51f3ab=>_0x15a2ab['some'](_0x537454=>_0x51f3ab['end']['isTouching'](_0x537454['start'])));}_0xa41f47['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54c142,_0x4d2376,_0x360fe2)=>{if(!_0x360fe2['options']['showSuggestionHighlights'])return;const _0x14c8e6=_0x4d2376['item'];if(!_0x14c8e6)return;const _0x1a7f31=_0x360fe2['mapper']['toViewElement'](_0x14c8e6);function _0x40d358(_0x53b194){return Array['isArray'](_0x53b194)?_0x53b194:[_0x53b194];}_0x1a7f31&&'tableCell'===_0x14c8e6['name']&&_0x2b3558(_0x1a7f31,_0x360fe2['writer'],(_0x902fc5,_0xc35037,_0x3985f0)=>_0x3985f0['addClass'](_0x40d358(_0xc35037['classes']),_0x902fc5),(_0x4a6ded,_0x29f43c,_0x1ce518)=>_0x1ce518['removeClass'](_0x40d358(_0x29f43c['classes']),_0x4a6ded));},{'priority':'highest'}),_0x4e18f1['descriptionFactory']['registerDescriptionCallback'](_0x2527a6=>{if('insertion'!=_0x2527a6['type']&&'deletion'!=_0x2527a6['type'])return;const _0x234ac8=_0x2527a6['getContainedElement']();if(null!=_0x234ac8&&_0x234ac8['is']('element','table')){if('insertion'==_0x2527a6['type']){const _0x59da9d=_0x2527a6['getItems']()['filter'](_0x4ff8ac=>_0x4ff8ac['is']('$textProxy'))['map'](_0x2ee612=>_0x2ee612['data']);if(_0x59da9d['length'])return{'type':'insertion','content':o(_0x343a36,'*Insert:*\x20%0',o(_0x343a36,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x59da9d['join']('\x20')+'\x22'))};}if('deletion'==_0x2527a6['type']){const _0x3da108=_0x2527a6['getItems']()['filter'](_0x3ff4d7=>_0x3ff4d7['is']('$textProxy'))['map'](_0x2e038a=>_0x2e038a['data']);if(_0x3da108['length'])return{'type':'deletion','content':o(_0x343a36,'*Remove:*\x20%0',o(_0x343a36,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3da108['join']('\x20')+'\x22'))};}}}),_0x4e18f1['descriptionFactory']['registerDescriptionCallback'](_0x4d52b4=>{if('tableRow'==_0x4d52b4['subType']){const _0x42547d=_0x4d52b4['getItems']()['filter'](_0x4f1e62=>_0x4f1e62['is']('$textProxy'))['map'](_0x3a5747=>_0x3a5747['data']),_0x3a4cc0=this['_getSuggestionCoords'](_0x4d52b4),_0x35731a=_0x3a4cc0['maxRow']-_0x3a4cc0['minRow']+0x1;if('insertion'==_0x4d52b4['type'])return _0x42547d['length']?{'type':'insertion','content':o(_0x343a36,'*Insert:*\x20%0',o(_0x343a36,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35731a,'\x22'+_0x42547d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x343a36,'*Insert:*\x20%0',o(_0x343a36,'ELEMENT_TABLE_ROW',_0x35731a))};if('deletion'==_0x4d52b4['type'])return _0x42547d['length']?{'type':'deletion','content':o(_0x343a36,'*Remove:*\x20%0',o(_0x343a36,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35731a,'\x22'+_0x42547d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x343a36,'*Remove:*\x20%0',o(_0x343a36,'ELEMENT_TABLE_ROW',_0x35731a))};}if('tableColumn'==_0x4d52b4['subType']){const _0x73760d=_0x4d52b4['getItems']()['filter'](_0x29701b=>_0x29701b['is']('$textProxy'))['map'](_0x25267e=>_0x25267e['data']),_0xa55dd6=this['_getSuggestionCoords'](_0x4d52b4),_0x151916=_0xa55dd6['maxColumn']-_0xa55dd6['minColumn']+0x1;if('insertion'==_0x4d52b4['type'])return _0x73760d['length']?{'type':'insertion','content':o(_0x343a36,'*Insert:*\x20%0',o(_0x343a36,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x151916,'\x22'+_0x73760d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x343a36,'*Insert:*\x20%0',o(_0x343a36,'ELEMENT_TABLE_COLUMN',_0x151916))};if('deletion'==_0x4d52b4['type'])return _0x73760d['length']?{'type':'deletion','content':o(_0x343a36,'*Remove:*\x20%0',o(_0x343a36,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x151916,'\x22'+_0x73760d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x343a36,'*Remove:*\x20%0',o(_0x343a36,'ELEMENT_TABLE_COLUMN',_0x151916))};}}),_0x4e18f1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x20aaac),_0x4e18f1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x20aaac),_0x4e18f1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x119961),_0x4e18f1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x119961),_0x4e18f1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2bdba3),_0x4e18f1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2bdba3),_0x4e18f1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x40535e),_0x4e18f1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x40535e);}['_acceptFormatSuggestionCallbackFactory'](){const _0xcb34e=this['editor'],_0x580014=_0xcb34e['model']['document']['selection'];return(_0x51fc72,_0x359822)=>{_0xcb34e['model']['change'](_0x31f2ba=>{const {commandName:_0x4e9bea,commandParams:_0x1cebdd}=_0x359822;let _0x4a1b77=_0x51fc72[0x0]['end']['nodeBefore'];_0x1cebdd&&_0x1cebdd[0x0]&&!0x1===_0x1cebdd[0x0]['forceValue']&&(_0x4a1b77=_0x51fc72[0x0]['start']['nodeAfter']);const _0x4fa9ee=_0x31f2ba['createRangeIn'](_0x4a1b77);if('$graveyard'==_0x4fa9ee['root']['rootName'])return;const _0x2d5de9=Array['from'](_0x580014['getRanges']())['map'](_0x508fc1=>_0x29d231['fromRange'](_0x508fc1));_0x31f2ba['setSelection'](_0x4fa9ee),_0xcb34e['commands']['get'](_0x4e9bea)['refresh'](),_0x1cebdd['push']({'forceDefaultExecution':!0x0}),_0xcb34e['execute'](_0x4e9bea,..._0x1cebdd);const _0x3f13a4=_0x2d5de9['filter'](_0x891831=>'$graveyard'!=_0x891831['root']['rootName']);_0x3f13a4['length']>0x0&&_0x31f2ba['setSelection'](_0x3f13a4);for(const _0x11789c of _0x2d5de9)_0x11789c['detach']();});};}['_getCoordsForCells'](_0x5a21ae){const _0x3391be=this['editor']['plugins']['get']('TableUtils');let _0x422b54=Number['MAX_SAFE_INTEGER'],_0x544610=Number['MIN_SAFE_INTEGER'],_0x5c36f9=Number['MAX_SAFE_INTEGER'],_0x6474d1=Number['MIN_SAFE_INTEGER'];for(const _0x15ced2 of _0x5a21ae){if('$graveyard'==_0x15ced2['root']['rootName'])continue;const {row:_0x57c273,column:_0x54995c}=_0x3391be['getCellLocation'](_0x15ced2),_0x8de709=_0x15ced2['hasAttribute']('rowspan')?_0x15ced2['getAttribute']('rowspan')-0x1:0x0,_0x42bf2b=_0x15ced2['hasAttribute']('colspan')?_0x15ced2['getAttribute']('colspan')-0x1:0x0;_0x422b54=_0x57c273<_0x422b54?_0x57c273:_0x422b54,_0x544610=_0x57c273+_0x8de709>_0x544610?_0x57c273+_0x8de709:_0x544610,_0x5c36f9=_0x54995c<_0x5c36f9?_0x54995c:_0x5c36f9,_0x6474d1=_0x54995c+_0x42bf2b>_0x6474d1?_0x54995c+_0x42bf2b:_0x6474d1;}return{'minRow':_0x422b54,'maxRow':_0x544610,'minColumn':_0x5c36f9,'maxColumn':_0x6474d1};}['_setupColumnsRowsFixing'](){const _0x5265bb=this['editor'],_0x11f36d=_0x5265bb['plugins']['get']('TrackChangesEditing'),_0x4db925=_0x5265bb['plugins']['get']('TableUtils');_0x5265bb['model']['document']['on']('change:data',()=>{const _0x4a160a=Array['from'](_0x5265bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xba58e2,data:_0x26cf05}of _0x4a160a){const {group:_0x2d5099,id:_0x4ae896,subType:_0x2837e7}=_0x11f36d['_splitMarkerName'](_0xba58e2);if('suggestion'!=_0x2d5099)continue;if(null!=_0x26cf05['oldRange'])continue;const _0x57ee61=_0x11f36d['getSuggestion'](_0x4ae896);this['_tablePostFixingSubtypes']['includes'](_0x2837e7)&&this['_tableSuggestions']['add'](_0x57ee61);}},{'priority':'low'});const _0x4f7417=(_0xce0736,_0x3ccef6)=>{let _0x4fa58c=!0x1;const _0x425d97=_0x3ccef6['createRangeOn'](_0xce0736),_0x22361c=_0xce0736['findAncestor']('table'),_0x35c636=_0x4db925['getCellLocation'](_0xce0736);for(const _0x5c4864 of this['_tableSuggestions']){const _0x355d84=_0x5c4864['subType'],_0x1fd6ac=_0x355d84['startsWith']('tablePaste'),_0x3e748b=_0x355d84['substr'](_0x1fd6ac?0xa:0x5),_0x18a04e=_0x3e748b['toLowerCase'](),_0x273fdf=_0x18a04e['substr'](0x0,0x3)+'span',_0x2476ac='min'+_0x3e748b,_0x231a18='max'+_0x3e748b;if(!_0x5c4864['isInContent'])continue;if(_0x22361c!=_0x5c4864['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5c4864['isIntersectingWithRange'](_0x425d97))continue;const _0x597ed1=_0xce0736['hasAttribute'](_0x273fdf)?_0xce0736['getAttribute'](_0x273fdf)-0x1:0x0,_0x170482=this['_getSuggestionCoords'](_0x5c4864),_0x1d720a=_0x170482[_0x2476ac],_0x4dafc5=_0x170482[_0x231a18];_0x1d720a<=_0x35c636[_0x18a04e]&&_0x35c636[_0x18a04e]+_0x597ed1<=_0x4dafc5&&(_0x5c4864['addRange'](_0x425d97),_0x4fa58c=!0x0);}return _0x4fa58c;};_0x5265bb['model']['document']['registerPostFixer'](_0x872ba2=>{let _0xd34896=!0x1;for(const _0x578337 of _0x5265bb['model']['document']['differ']['getChanges']())if('insert'==_0x578337['type']){if('tableRow'==_0x578337['name']){for(const _0x3b838f of _0x578337['position']['nodeAfter']['getChildren']())_0xd34896=_0xd34896||_0x4f7417(_0x3b838f,_0x872ba2);}else'tableCell'==_0x578337['name']&&(_0xd34896=_0xd34896||_0x4f7417(_0x578337['position']['nodeAfter'],_0x872ba2));}return _0xd34896;});}['_getSuggestionCoords'](_0x5d71af){return this['_getCoordsForCells'](_0x5d71af['getRanges']()['map'](_0xafdf3d=>_0xafdf3d['start']['nodeAfter']));}}function be(_0x5e5613){return Array['from'](new Set(_0x5e5613)['values']());}class vt extends _0x28108f{static get['requires'](){return[It];}['afterInit'](){const _0x2de964=this['editor'],_0x4cbe8e=_0x2de964['model']['document']['selection'],_0x4e9131=_0x2de964['locale'];if(!_0x2de964['plugins']['has']('TableEditing'))return;const _0x5e3fb1=_0x2de964['plugins']['get']('TrackChangesEditing'),_0x290348=_0x2de964['plugins']['get']('TableUtils'),_0x20b2ca=_0x2de964['plugins']['get'](It);_0x20b2ca['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5e3fb1['enableCommand']('mergeTableCells',()=>{const _0x1ee043=_0x290348['getSelectionAffectedTableCells'](_0x2de964['model']['document']['selection']);_0x2de964['model']['change'](()=>{_0x5e3fb1['markMultiRangeBlockFormat'](_0x1ee043,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2de964['commands']['get']('mergeTableCells')['on']('execute',(_0x5e6057,_0x21cea3)=>{_0x2de964['commands']['get']('trackChanges')['value']&&(_0x21cea3['length']>0x0&&_0x21cea3[_0x21cea3['length']-0x1]&&_0x21cea3[_0x21cea3['length']-0x1]['forceDefaultExecution']||_0x5e3fb1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5e6057['stop']());},{'priority':'highest'});for(const _0x2e098e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2d0e48=_0x2de964['commands']['get'](_0x2e098e);_0x5e3fb1['enableCommand'](_0x2e098e,()=>{const _0x453b64=_0x2de964['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x56a129=>_0x56a129['is']('element','tableCell')),_0x285462=_0x2d0e48['value'];_0x2de964['model']['change'](()=>{_0x5e3fb1['markMultiRangeBlockFormat']([_0x453b64,_0x285462],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x470c5d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3e9727=_0x2de964['commands']['get'](_0x470c5d);_0x5e3fb1['enableCommand'](_0x470c5d,()=>{const _0x15b666=_0x290348['getSelectionAffectedTableCells'](_0x2de964['model']['document']['selection'])[0x0],_0x280042=_0x15b666['findAncestor']('table'),{column:_0x44d9e2,row:_0x37957d}=_0x290348['getCellLocation'](_0x15b666);let _0x5da4a6=[];if('horizontally'==_0x3e9727['direction']){const _0x52971f=_0x290348['createTableWalker'](_0x280042,{'startRow':_0x37957d,'endRow':_0x37957d,'includeAllSlots':!0x0});_0x5da4a6=Array['from'](_0x52971f)['map'](_0x4f7343=>_0x4f7343['cell']);}else{const _0x5598c6=_0x290348['createTableWalker'](_0x280042,{'column':_0x44d9e2,'includeAllSlots':!0x0});_0x5da4a6=Array['from'](_0x5598c6)['map'](_0x4d41c0=>_0x4d41c0['cell']);}_0x2de964['model']['change'](_0x57b60e=>{_0x5e3fb1['markBlockFormat'](_0x57b60e['createRangeOn'](_0x15b666),{'commandName':_0x470c5d,'commandParams':[]},_0x5da4a6,_0x470c5d);});});}_0x5e3fb1['descriptionFactory']['registerDescriptionCallback'](_0x2c8ed4=>{if('formatBlock'!=_0x2c8ed4['type']&&'formatInline'!=_0x2c8ed4['type'])return;const {data:_0x512ada}=_0x2c8ed4;return _0x512ada&&'mergeTableCells'==_0x512ada['commandName']?{'type':'format','content':o(_0x4e9131,'*Merge\x20cells*')}:void 0x0;}),_0x5e3fb1['descriptionFactory']['registerDescriptionCallback'](_0x3957a7=>{if('formatBlock'!=_0x3957a7['type']&&'formatInline'!=_0x3957a7['type'])return;const {data:_0x72e937}=_0x3957a7;return _0x72e937?'splitTableCellVertically'==_0x72e937['commandName']?{'type':'format','content':o(_0x4e9131,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x72e937['commandName']?{'type':'format','content':o(_0x4e9131,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xe87e3c=_0x20b2ca['_acceptFormatSuggestionCallbackFactory']();for(const _0x4ed643 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5e3fb1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ed643,'accept',_0xe87e3c);for(const _0x5e2bbc of['splitTableCellVertically','splitTableCellHorizontally'])_0x5e3fb1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e2bbc,'accept',_0xe87e3c);_0x5e3fb1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1fb54f=>{_0x2de964['model']['change'](_0xe5571e=>{const _0x2e48f5=Array['from'](_0x4cbe8e['getRanges']())['map'](_0x3352e2=>_0x29d231['fromRange'](_0x3352e2));_0xe5571e['setSelection'](_0x1fb54f),_0x2de964['commands']['get']('mergeTableCells')['refresh'](),_0x2de964['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3dd25e=_0x2e48f5['filter'](_0x593e75=>'$graveyard'!=_0x593e75['root']['rootName']);_0x3dd25e['length']>0x0&&_0xe5571e['setSelection'](_0x3dd25e);for(const _0x22eadc of _0x2e48f5)_0x22eadc['detach']();});});for(const _0x42d8f2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xdfaefd=_0x2de964['commands']['get'](_0x42d8f2);_0xdfaefd['on']('set:isEnabled',(_0x1056d2,_0x44cafe,_0x463b05)=>{if(_0x463b05){const _0x2cf640=_0x2de964['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x54d9a7=>_0x54d9a7['is']('element','tableCell'));this['_areMergableCells'](_0xdfaefd['value'],_0x2cf640)||(_0x1056d2['return']=!0x1,_0x1056d2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x351b73=this['editor']['commands']['get']('mergeTableCells'),_0x580c89=this['editor']['plugins']['get']('TableUtils');if(!_0x351b73['isEnabled'])return!0x1;const _0x430085=_0x580c89['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3b3482 of _0x430085)for(const _0x5a0064 of _0x430085)if(_0x3b3482!=_0x5a0064&&!this['_areMergableCells'](_0x3b3482,_0x5a0064))return!0x1;return!0x0;}['_areMergableCells'](_0x50ec79,_0x286fea){const _0x21c46a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d13c2=this['editor']['model']['createRangeOn'](_0x50ec79),_0x2ff567=this['editor']['model']['createRangeOn'](_0x286fea),_0x24b1b3=new Set(),_0x36f0f6=new Set();for(const _0x4d9b71 of _0x21c46a['getSuggestions']())if(('insertion'==_0x4d9b71['type']||'deletion'==_0x4d9b71['type']||'mergeTableCells'==_0x4d9b71['subType'])&&_0x4d9b71['isInContent']){for(const _0x3d6354 of _0x4d9b71['getRanges']())_0x3d6354['containsRange'](_0x4d13c2,!0x0)&&_0x24b1b3['add'](_0x4d9b71['type']+':'+_0x4d9b71['author']['id']),_0x3d6354['containsRange'](_0x2ff567,!0x0)&&_0x36f0f6['add'](_0x4d9b71['type']+':'+_0x4d9b71['author']['id']);}if(_0x24b1b3['size']!=_0x36f0f6['size'])return!0x1;for(const _0x49160f of _0x24b1b3)if(!_0x36f0f6['has'](_0x49160f))return!0x1;return!0x0;}}class Ct extends _0x28108f{static get['requires'](){return[It];}['afterInit'](){const _0x5dfda2=this['editor'];if(!_0x5dfda2['plugins']['has']('TableEditing'))return;const _0x1efabb=_0x5dfda2['locale'],_0x86560=_0x5dfda2['plugins']['get']('TrackChangesEditing');_0x86560['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x86560['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x86560['registerBlockAttribute']('headingRows'),_0x86560['registerBlockAttribute']('headingColumns'),_0x86560['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1efabb,'FORMAT_HEADER_ROW')),_0x86560['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1efabb,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e14c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bc4cf=this['editor']['plugins']['get']('TableUtils'),_0x246b6a=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0xa13c42({showActiveMarker:_0x49c20d=!0x0,setDataAttribute:_0x3db91d=!0x0}={}){return(_0x2fd5ff,_0x108c1c,_0x535ab4)=>{const {type:_0x19bd48,id:_0x46e1fe}=_0x4e14c1['_splitMarkerName'](_0x108c1c['markerName']),_0x3c4790=_0x4e14c1['getSuggestion'](_0x46e1fe),_0x49dace=_0x3c4790['data'];if('formatBlock'!=_0x3c4790['type']||!_0x49dace||'setTableColumnHeader'!=_0x49dace['commandName'])return;if(_0x108c1c['item'])return void _0x2fd5ff['stop']();if(!_0x535ab4['consumable']['consume'](_0x108c1c['markerRange'],_0x2fd5ff['name']))return;const _0x4689bb=_0x108c1c['markerRange']['start']['nodeAfter'],_0x53419f=_0x108c1c['markerRange']['end']['nodeBefore'],_0x990dea=_0x4689bb['parent']['parent'],{column:_0x3face4}=_0x3bc4cf['getCellLocation'](_0x4689bb),{column:_0x146e7f}=_0x3bc4cf['getCellLocation'](_0x53419f);for(let _0xbc4916=_0x3face4;_0xbc4916<=_0x146e7f;_0xbc4916++){const _0x2f67e5=_0x3bc4cf['createTableWalker'](_0x990dea,{'column':_0xbc4916,'includeAllSlots':!0x1});for(const _0x11d7d9 of _0x2f67e5){const _0x2df16d=_0x11d7d9['cell'],_0x5b100a=_0x535ab4['mapper']['toViewElement'](_0x2df16d);_0x535ab4['writer']['addClass']('ck-suggestion-marker-'+_0x19bd48,_0x5b100a),_0x3db91d&&_0x535ab4['writer']['setAttribute']('data-suggestion',_0x46e1fe,_0x5b100a),_0x535ab4['mapper']['bindElementToMarker'](_0x5b100a,_0x108c1c['markerName']),_0x49c20d&&(_0x4e14c1['activeMarkers']['includes'](_0x108c1c['markerName'])?_0x535ab4['writer']['addClass']('ck-suggestion-marker--active',_0x5b100a):_0x535ab4['writer']['removeClass']('ck-suggestion-marker--active',_0x5b100a));}}};}_0x4e14c1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x246b6a),_0x4e14c1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x246b6a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xa13c42(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3e5e67,_0x54335b,_0x22b2cb)=>{_0x22b2cb['options']['showSuggestionHighlights']&&_0xa13c42({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3e5e67,_0x54335b,_0x22b2cb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1090c2,_0xded6c4,_0x3ef62f)=>{const {type:_0x92be46,id:_0x39bc48}=_0x4e14c1['_splitMarkerName'](_0xded6c4['markerName']),_0x566c0a=_0x4e14c1['getSuggestion'](_0x39bc48),_0x167e76=_0x566c0a['data'];if('formatBlock'!=_0x566c0a['type']||!_0x167e76||'setTableColumnHeader'!=_0x167e76['commandName'])return;const _0x45c5b3=_0x3ef62f['mapper']['markerNameToElements'](_0xded6c4['markerName']);if(_0x45c5b3){for(const _0x5f0563 of _0x45c5b3)_0x3ef62f['writer']['removeClass']('ck-suggestion-marker-'+_0x92be46,_0x5f0563),_0x3ef62f['writer']['removeClass']('ck-suggestion-marker--active',_0x5f0563),_0x3ef62f['writer']['removeAttribute']('data-suggestion',_0x5f0563),_0x3ef62f['mapper']['unbindElementFromMarkerName'](_0x5f0563,_0xded6c4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x296ea5=this['editor'],_0x4e473e=_0x296ea5['locale'];function _0x5c20c1(_0x275a90){return{'type':'format','content':o(_0x4e473e,'*Format:*\x20%0',_0x275a90)};}_0x296ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26e454=>{if('formatBlock'!=_0x26e454['type'])return;const {data:_0x1d5bc0}=_0x26e454;if(_0x1d5bc0){if('setTableRowHeader'==_0x1d5bc0['commandName']){const _0x30451b=_0x1d5bc0['commandParams'][0x0]['forceValue'];return _0x5c20c1(o(_0x4e473e,_0x30451b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1d5bc0['commandName']){const _0x45fc8b=_0x1d5bc0['commandParams'][0x0]['forceValue'];return _0x5c20c1(o(_0x4e473e,_0x45fc8b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x2e8b76=>[_0x2e8b76,null]));class _t extends _0x28108f{static get['requires'](){return[It];}['afterInit'](){const _0x3decfd=this['editor'];if(!_0x3decfd['plugins']['has']('TableClipboard'))return;const _0x1a53eb=_0x3decfd['plugins']['get']('TrackChangesEditing'),_0x4b9c7e=_0x3decfd['plugins']['get']('TableUtils'),_0x2f42e2=_0x3decfd['plugins']['get'](It),_0x42fbdd=_0x3decfd['plugins']['get']('TableClipboard');_0x2f42e2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3decfd['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3decfd['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xc121a9=null;_0x3decfd['model']['on']('insertContent',(_0x4380f5,_0x580fbd)=>{const [_0x53f586,_0x5c5de0]=_0x580fbd,_0x388668=_0x580fbd[_0x580fbd['length']-0x1];_0x388668&&_0x388668['forceDefaultExecution']||_0x1a53eb['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4580e9,_0x32ba91,_0x345b2c,_0x3dc262,_0x5ab54a){if(_0x32ba91&&!_0x32ba91['is']('documentSelection'))return!0x1;const _0x284e90=_0x5ab54a['getTableIfOnlyTableInContent'](_0x4580e9,_0x345b2c);if(!_0x284e90||!Re(_0x284e90,void 0x0,_0x3dc262))return!0x1;const _0x189ec9=_0x3dc262['getSelectionAffectedTableCells'](_0x345b2c['document']['selection']);if(!_0x189ec9['length'])return!0x1;const _0x25e8c1=_0x189ec9[0x0]['findAncestor']('table'),_0x5466c4=_0x3dc262['getRowIndexes'](_0x189ec9),_0x35a4c3=_0x3dc262['getColumnIndexes'](_0x189ec9),_0x258ab1={'startRow':_0x5466c4['first'],'endRow':_0x5466c4['last'],'startColumn':_0x35a4c3['first'],'endColumn':_0x35a4c3['last']};return 0x1==_0x189ec9['length']&&(_0x258ab1['endRow']+=_0x3dc262['getRows'](_0x284e90)-0x1,_0x258ab1['endColumn']+=_0x3dc262['getColumns'](_0x284e90)-0x1),Re(_0x25e8c1,_0x258ab1,_0x3dc262);}(_0x53f586,_0x5c5de0,_0x3decfd['model'],_0x4b9c7e,_0x42fbdd)&&(_0x4380f5['stop'](),_0xc121a9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3decfd['model']['change'](()=>{_0x3decfd['model']['insertContent'](_0x580fbd[0x0],_0x580fbd[0x1],_0x580fbd[0x2],{'forceDefaultExecution':!0x0});const _0x26e19d=_0x447718(),{rowInsertionRanges:_0x1d736f,columnInsertionRanges:_0x3117d9,insertionRanges:_0x381bee,deletionRanges:_0x5e2d42,cells:_0x3eb03c}=_0xc121a9;_0x1d736f['length']&&_0x1a53eb['markMultiRangeInsertion'](_0x1d736f,'tablePasteRow',{'tablePasteChainId':_0x26e19d}),_0x3117d9['length']&&_0x1a53eb['markMultiRangeInsertion'](_0x3117d9,'tablePasteColumn',{'tablePasteChainId':_0x26e19d}),_0x381bee['length']&&(_0x1a53eb['markMultiRangeInsertion'](_0x381bee,'tablePaste',{'tablePasteChainId':_0x26e19d,'skipNestingCheck':!0x0}),_0x381bee['forEach'](_0x569a2d=>_0x569a2d['detach']?.())),_0x5e2d42['length']&&(_0x1a53eb['markMultiRangeDeletion'](_0x5e2d42,'tablePaste',{'tablePasteChainId':_0x26e19d,'skipNestingCheck':!0x0}),_0x5e2d42['forEach'](_0x82c9a3=>_0x82c9a3['detach']?.()));const _0x7c84e9=_0x1a53eb['markMultiRangeBlockFormat'](_0x3eb03c['map'](({element:_0x2e2040})=>_0x2e2040),{'formatGroupId':_0x447718()},[],'tablePasteCell',{'tablePasteChainId':_0x26e19d});if(_0x7c84e9){const _0x183ac0=_0x7c84e9['getMarkers'](),_0x42c089=[];for(const {element:_0x48f0f1,attributes:_0x51af2a}of _0x3eb03c){if(!_0x51af2a)continue;const _0x22b5e7=_0x3decfd['model']['createRangeOn'](_0x48f0f1),_0x3a3820=_0x183ac0['find'](_0x66db11=>_0x66db11['getRange']()['isEqual'](_0x22b5e7));_0x3a3820&&_0x42c089['push']([_0x3a3820['name'],_0x51af2a]);}_0x42c089['length']&&_0x7c84e9['setAttribute']('markerAttributes',Object['fromEntries'](_0x42c089));}_0xc121a9=null;}));},{'priority':_0x2e92e4['high']+0xa}),_0x3decfd['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x519071,_0x498af6)=>{const [_0x375fcc,_0x5609f2,,_0x1cb92e]=_0x498af6;if(!_0xc121a9)return;_0x519071['stop']();const _0x2319b9=_0x375fcc['cell'],_0x3f7d6f=_0x5609f2,_0x1f84de=ke(_0x2319b9),_0x2496fb=ke(_0x3f7d6f);_0x519071['return']=_0x2319b9;let _0x1a88a8=null,_0x18f43a=null;if(_0x2496fb||_0x1f84de){if(_0x1f84de&&!_0x2496fb){_0x1cb92e['remove'](_0x2319b9['getChild'](0x0));for(const _0xbe64ec of Array['from'](_0x3f7d6f['getChildren']()))_0x1cb92e['insert'](_0xbe64ec,_0x2319b9,'end');const _0x329d98=_0xc121a9['rowInsertionIndexes']['includes'](_0x375fcc['row']),_0x529b61=_0xc121a9['columnInsertionIndexes']['includes'](_0x375fcc['column']);_0x329d98||_0x529b61||(_0x1a88a8=_0x29d231['fromRange'](_0x1cb92e['createRangeIn'](_0x2319b9)));}else _0x2496fb&&!_0x1f84de&&(_0x18f43a=_0x1cb92e['createRangeIn'](_0x2319b9));}else{const _0x41d2fc=_0x1cb92e['createElement']('tableCellSuggestion'),_0x3b487e=_0x1cb92e['createElement']('tableCellSuggestion');_0x1cb92e['wrap'](_0x1cb92e['createRangeIn'](_0x2319b9),_0x3b487e),_0x1cb92e['insert'](_0x41d2fc,_0x2319b9,0x0);for(const _0x34417f of Array['from'](_0x3f7d6f['getChildren']()))_0x1cb92e['insert'](_0x34417f,_0x41d2fc,'end');_0x1a88a8=_0x29d231['fromRange'](_0x1cb92e['createRangeOn'](_0x41d2fc)),_0x18f43a=_0x29d231['fromRange'](_0x1cb92e['createRangeOn'](_0x3b487e));}const _0x3ef51b=Array['from'](_0x3f7d6f['getAttributes']())['filter'](([_0x1d6586])=>Pe['includes'](_0x1d6586));_0xc121a9['cells']['push']({'element':_0x2319b9,'attributes':_0x3ef51b['length']?Object['fromEntries'](_0x3ef51b):null}),_0x1a88a8&&_0xc121a9['insertionRanges']['push'](_0x1a88a8),_0x18f43a&&_0xc121a9['deletionRanges']['push'](_0x18f43a);},{'priority':'high'}),_0x4b9c7e['on']('insertColumns',(_0x3678a3,_0x201aae)=>{const [_0x2e82d2,_0x45b82a={}]=_0x201aae;if(!_0xc121a9)return;const _0x2dac1d=_0x45b82a['at']||0x0,_0xd95818=_0x45b82a['columns']||0x1;_0xc121a9['columnInsertionIndexes']=new Array(_0xd95818)['fill'](_0x2dac1d)['map']((_0x29e0b6,_0x19e608)=>_0x29e0b6+_0x19e608);for(const {cell:_0x44825f}of _0x4b9c7e['createTableWalker'](_0x2e82d2,{'startColumn':_0x2dac1d,'endColumn':_0x2dac1d+_0xd95818-0x1}))_0xc121a9['columnInsertionRanges']['push'](_0x3decfd['model']['createRangeOn'](_0x44825f));},{'priority':'low'}),_0x4b9c7e['on']('insertRows',(_0x4df78b,_0x245a72)=>{const [_0x96f20f,_0x2bd018={}]=_0x245a72;if(!_0xc121a9)return;const _0x3ae7bc=_0x2bd018['at']||0x0,_0x2cf72e=_0x2bd018['rows']||0x1;_0xc121a9['rowInsertionIndexes']=new Array(_0x2cf72e)['fill'](_0x3ae7bc)['map']((_0x3bf08c,_0x42068a)=>_0x3bf08c+_0x42068a);for(const {cell:_0x35ce78}of _0x4b9c7e['createTableWalker'](_0x96f20f,{'startRow':_0x3ae7bc,'endRow':_0x3ae7bc+_0x2cf72e-0x1}))_0xc121a9['rowInsertionRanges']['push'](_0x3decfd['model']['createRangeOn'](_0x35ce78));},{'priority':'low'}),_0x1a53eb['descriptionFactory']['registerDescriptionCallback'](_0x4c6138=>{if(_0x4c6138['subType']&&_0x4c6138['subType']['startsWith']('tablePaste'))return _0x4c6138['previous']?{}:{'type':'insertion','content':o(_0x3decfd['locale'],'*Replace\x20table\x20cells*')};});const _0x452e2f=()=>!0x1;for(const _0x40cff3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1a53eb['_suggestionFactory']['registerCustomCallback']('insertion',_0x40cff3,'join',_0x452e2f),_0x1a53eb['_suggestionFactory']['registerCustomCallback']('deletion',_0x40cff3,'join',_0x452e2f),_0x1a53eb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40cff3,'join',_0x452e2f);_0x1a53eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x452e2f),_0x1a53eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x24a964,_0x1987dc,_0xfd86d1)=>{const _0x41b453=_0x24a964['map'](_0x14bb83=>_0x14bb83['getContainedElement']())['filter'](_0x28a9c2=>_0x28a9c2),_0x1074ac=new Map(_0x41b453['map'](_0x31098a=>[_0x31098a,null]));if(_0xc121a9){for(const {element:_0x11c9db,attributes:_0x22c390}of _0xc121a9['cells'])_0x22c390&&_0x1074ac['set'](_0x11c9db,_0x22c390);}else{if(_0xfd86d1&&_0xfd86d1['markerAttributes'])for(const [_0x31188b,_0x538443]of Object['entries'](_0xfd86d1['markerAttributes'])){const _0x4a1cd4=_0x3decfd['model']['markers']['get'](_0x31188b),_0x3c9bcb=_0x4a1cd4?_0x4a1cd4['getRange']()['getContainedElement']():null;_0x3c9bcb&&_0x1074ac['set'](_0x3c9bcb,_0x538443);}}_0x3decfd['model']['change'](_0x2bd2ed=>{for(const [_0x3459e1,_0x140d1d]of _0x1074ac)_0x2bd2ed['setAttributes']({...we,..._0x140d1d},_0x3459e1);});});const _0xd79f77=(_0x553915,_0x204aef)=>{_0x1a53eb['_suggestionFactory']['registerCustomCallback'](_0x553915,'tablePaste',_0x204aef,(_0x12a019,_0x3c2bbc,_0x1b1460)=>{_0x3decfd['model']['change'](_0x2131bd=>{const _0x143ff3=[];for(const _0xfc3d89 of _0x12a019){const _0x97f2ec=_0xfc3d89['start']['nodeAfter'];_0x97f2ec['is']('element','tableCellSuggestion')&&_0x143ff3['push'](_0x97f2ec);}_0x1a53eb['_suggestionFactory']['getSuggestionCallback'](_0x553915,null,_0x204aef)(_0x12a019,_0x3c2bbc,_0x1b1460);for(const _0x5b7eea of _0x143ff3)'$graveyard'!=_0x5b7eea['root']['rootName']&&_0x2131bd['unwrap'](_0x5b7eea);});});};_0xd79f77('insertion','accept'),_0xd79f77('insertion','discard'),_0xd79f77('deletion','accept'),_0xd79f77('deletion','discard'),_0x1a53eb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x541c13=>{const _0x21a8c1=_0x541c13['map'](_0x4606f6=>_0x4606f6['getContainedElement']()),_0xe33a51=_0x21a8c1[0x0]['findAncestor']('table'),{minRow:_0xc5592d,maxRow:_0x4f8b45}=_0x2f42e2['_getCoordsForCells'](_0x21a8c1);_0x4b9c7e['removeRows'](_0xe33a51,{'at':_0xc5592d,'rows':_0x4f8b45-_0xc5592d+0x1});}),_0x1a53eb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xd18309=>{const _0x1a52d5=_0xd18309['map'](_0x348813=>_0x348813['getContainedElement']()),_0x18fe21=_0x1a52d5[0x0]['findAncestor']('table'),{minColumn:_0x48df0b,maxColumn:_0x2abd10}=_0x2f42e2['_getCoordsForCells'](_0x1a52d5);_0x4b9c7e['removeColumns'](_0x18fe21,{'at':_0x48df0b,'columns':_0x2abd10-_0x48df0b+0x1});});const _0x3d76a6=(_0x5c6546,_0x1e67f4)=>{if(!_0x1e67f4['subType']||!_0x1e67f4['subType']['startsWith']('tablePaste'))return;const _0x212840=_0x1e67f4['attributes']['tablePasteChainId'],_0x31e007=_0x1a53eb['getSuggestions']()['filter'](_0x40acd6=>_0x40acd6['isInContent']&&_0x40acd6['attributes']&&_0x40acd6['attributes']['tablePasteChainId']==_0x212840);_0x31e007['length']&&_0x1e67f4['getAllAdjacentSuggestions']()['length']!=_0x31e007['length']&&_0x31e007['reduce']((_0x4f0e0d,_0x402243)=>(_0x4f0e0d['next']=_0x402243,_0x402243['previous']=_0x4f0e0d,_0x402243));};function _0x177c9c(_0x54eac4,_0x5ce849=!0x0){const {id:_0x3ad08c,authorId:_0x58980e}=_0x1a53eb['_splitMarkerName'](_0x54eac4['markerName']),_0x1a37f0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x23b0e1=_0x1a53eb['activeMarkers']['includes'](_0x54eac4['markerName']);return _0x23b0e1&&_0x1a37f0['push']('ck-suggestion-marker--active'),{'classes':_0x1a37f0,'attributes':{'data-suggestion':_0x3ad08c,'data-author-id':_0x58980e},'priority':_0x23b0e1&&_0x5ce849?0xbc2:0xbb8};}_0x1a53eb['on']('suggestionLoaded',_0x3d76a6,{'priority':'high'}),_0x1a53eb['on']('suggestionUnloaded',_0x3d76a6,{'priority':'high'}),_0x3decfd['model']['document']['registerPostFixer'](()=>{let _0x4b1ba8=!0x1;const _0x4677a5=Array['from'](_0x3decfd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ce754,data:_0x41d601}of _0x4677a5){const {group:_0x2d5366,type:_0x16f44a,id:_0x29aca7}=_0x1a53eb['_splitMarkerName'](_0x5ce754);if('suggestion'!=_0x2d5366||'deletion'!=_0x16f44a||_0x41d601['oldRange'])continue;if(!_0x1a53eb['hasSuggestion'](_0x29aca7))continue;const _0x38726f=_0x1a53eb['getSuggestion'](_0x29aca7)['getRanges'](),_0x552abd=_0x3decfd['plugins']['get']('Users')['me'];for(const _0x1f3ea0 of _0x1a53eb['getSuggestions']()){if(!_0x1f3ea0['isInContent']||_0x1f3ea0['author']!=_0x552abd)continue;if('formatBlock'!=_0x1f3ea0['type']||'tablePasteCell'!=_0x1f3ea0['subType'])continue;if(_0x1f3ea0['getRanges']()['every'](_0x5f0733=>_0x38726f['some'](_0x1d1442=>_0x1d1442['containsRange'](_0x5f0733,!0x0)))){for(const _0x36c6a4 of _0x1f3ea0['getAllAdjacentSuggestions']())_0x36c6a4['isInContent']&&(_0x36c6a4['discard'](),_0x4b1ba8=!0x0);}}}return _0x4b1ba8;}),_0x3decfd['model']['document']['registerPostFixer'](_0x59c1cb=>{const _0x199b11=_0x3decfd['commands']['get']('redo');if(!_0x199b11||!_0x199b11['_createdBatches']['has'](_0x59c1cb['batch']))return!0x1;let _0x47eb5b=!0x1;const _0x2e5da9=_0x3decfd['plugins']['get']('Users')['me'],_0x55c6b2=_0x3decfd['model']['document']['differ']['getChanges'](),_0x567daf=Array['from'](_0x3decfd['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4dd599,data:_0x1f6216})=>{const {group:_0x110edd,subType:_0x158a60,authorId:_0x310f29}=_0x1a53eb['_splitMarkerName'](_0x4dd599);return'suggestion'==_0x110edd&&'tablePaste'==_0x158a60&&_0x310f29==_0x2e5da9['id']&&!_0x1f6216['oldRange'];});for(const _0x4e20b4 of _0x55c6b2){if('insert'!=_0x4e20b4['type']||'tableCellSuggestion'!=_0x4e20b4['name']||0x1!=_0x4e20b4['length'])continue;const _0x439801=_0x59c1cb['createRange'](_0x4e20b4['position'],_0x4e20b4['position']['getShiftedBy'](0x1));if(!_0x567daf['find'](({data:_0x11c37b})=>_0x11c37b['newRange']['isEqual'](_0x439801))){for(const {name:_0x1c4f4e,data:_0x310130}of _0x567daf)if(_0x439801['containsRange'](_0x310130['newRange'])){_0x59c1cb['updateMarker'](_0x1c4f4e,{'range':_0x439801}),_0x47eb5b=!0x0;break;}}}return _0x47eb5b;}),_0x3decfd['model']['document']['registerPostFixer'](_0x3f633c=>{let _0x5c5d0c=!0x1;const _0x28eae1=_0x3decfd['plugins']['get']('Users')['me'],_0x411521=_0x1a53eb['getSuggestions']()['filter'](_0x540b40=>_0x540b40['isInContent']&&_0x540b40['author']==_0x28eae1),_0x7d7bd9=new Set(),_0x2e2ab6=new Set();for(const _0x231270 of _0x411521)if('tablePaste'==_0x231270['subType'])for(const _0x1263e6 of _0x231270['getMarkers']()){const _0x5bd0b8=_0x1263e6['getRange']()['getContainedElement']();if(_0x5bd0b8){if(_0x5bd0b8['is']('element','tableCellSuggestion')&&ke(_0x5bd0b8)){_0x231270['removeMarker'](_0x1263e6['name']),_0x7d7bd9['add'](_0x5bd0b8),_0x5c5d0c=!0x0;const _0x4cc0a9=_0x5bd0b8['nextSibling'],_0x488673=_0x5bd0b8['previousSibling'],_0x284517=_0x4cc0a9&&_0x4cc0a9['is']('element','tableCellSuggestion'),_0x478776=_0x488673&&_0x488673['is']('element','tableCellSuggestion');_0x284517&&!_0x7d7bd9['has'](_0x4cc0a9)&&_0x2e2ab6['add'](_0x4cc0a9),_0x478776&&!_0x7d7bd9['has'](_0x488673)&&_0x2e2ab6['add'](_0x488673);}else _0x5bd0b8['is']('element','paragraph')&&_0x5bd0b8['isEmpty']&&(_0x231270['removeMarker'](_0x1263e6['name']),_0x5c5d0c=!0x0);}}else{if('tablePasteCell'==_0x231270['subType']){if(!_0x231270['attributes']||!_0x231270['attributes']['tablePasteChainId'])continue;const _0x5bd695=_0x231270['attributes']['markerAttributes'];if(_0x5bd695&&Object['keys'](_0x5bd695)['length'])continue;const _0x2b7735=_0x231270['attributes']['tablePasteChainId'];let _0xd9a3d0=!0x0,_0x280e73=!0x0;for(const _0x571e7c of _0x411521)if(_0x571e7c['subType']&&_0x571e7c['subType']['startsWith']('tablePaste')){if(!_0x571e7c['attributes']['tablePasteChainId']){_0x280e73=!0x1;break;}if(_0x571e7c['id']!=_0x231270['id']&&_0x571e7c['attributes']['tablePasteChainId']==_0x2b7735){_0xd9a3d0=!0x1;break;}}_0x280e73&&_0xd9a3d0&&(_0x231270['removeMarkers'](),_0x5c5d0c=!0x0);}}for(const _0x44c3a2 of _0x7d7bd9)_0x3f633c['remove'](_0x44c3a2);for(const _0x47226e of _0x2e2ab6)_0x3f633c['unwrap'](_0x47226e);return _0x5c5d0c;}),_0x3decfd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x157abf=>_0x177c9c(_0x157abf),'converterPriority':'high'}),_0x3decfd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x528715,_0x4d1a6a)=>_0x4d1a6a['options']['showSuggestionHighlights']?_0x177c9c(_0x528715,!0x1):null,'converterPriority':'high'});const _0x5ee58=_0x3decfd['editing']['view'];this['listenTo'](_0x5ee58['document'],'clipboardOutput',(_0x911a87,_0x32a3f6)=>{const _0x2de830=[];for(const _0x22b785 of _0x5ee58['createRangeIn'](_0x32a3f6['content'])['getItems']())_0x22b785['is']('element','suggestion-td')&&_0x2de830['push'](_0x22b785);_0x5ee58['change'](_0x418566=>{for(const _0x4635e2 of _0x2de830)_0x418566['move'](_0x418566['createRangeIn'](_0x4635e2),_0x418566['createPositionBefore'](_0x4635e2)),_0x418566['remove'](_0x4635e2);});});}}function ke(_0x155e91){if(_0x155e91['isEmpty'])return!0x0;const _0x3cb8e0=_0x155e91['getChild'](0x0);return _0x3cb8e0['is']('element','paragraph')&&_0x3cb8e0['isEmpty'];}function Re(_0x33ff74,_0x5dc930={},_0x31e382){for(const {isAnchor:_0x1718f0,cellHeight:_0x3493ce,cellWidth:_0x535b41}of _0x31e382['createTableWalker'](_0x33ff74,{'includeAllSlots':!0x0,..._0x5dc930}))if(!_0x1718f0||0x1!=_0x3493ce||0x1!=_0x535b41)return!0x1;return!0x0;}class Nt extends _0x28108f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5f4594=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f4594['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5f4594['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5f4594['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f4594['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5f4594['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5f4594['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f96b3,_0x59b186){const _0x5ececb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44837a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x53ec75=_0x59b186['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3d4283=_0x44837a['getColumnGroupElement'](_0x53ec75);let _0xc3e6ca=_0x3d4283?_0x44837a['getTableColumnsWidths'](_0x3d4283):null,_0x21e2d5=_0x53ec75['getAttribute']('tableWidth')||null;const _0x252397=_0x59b186['tableWidth']||_0x21e2d5,_0xb7464=_0x59b186['columnWidths']||_0xc3e6ca,_0x410187=this['editor']['plugins']['get']('Users')['me'];for(const _0x461ceb of _0x5ececb['getSuggestions']()){const _0x33f8fa=_0x461ceb['getContainedElement']();if('resizeTable'===_0x461ceb['subType']&&_0x33f8fa===_0x53ec75){_0x461ceb['author']!==_0x410187&&_0x461ceb['discard']();const _0x7978b8=_0x461ceb['data']['commandParams'];_0x21e2d5=_0x7978b8[0x0]['tableWidth'],_0xc3e6ca=_0x7978b8[0x0]['columnWidths'];break;}}_0x2f96b3({'table':_0x53ec75,'tableWidth':_0x252397,'columnWidths':_0xb7464}),_0x5ececb['markBlockFormat'](_0x53ec75,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x21e2d5,'columnWidths':_0xc3e6ca}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x437afe){if('formatBlock'!=_0x437afe['type']&&'formatInline'!=_0x437afe['type'])return;const {data:_0x2898ac}=_0x437afe;if(_0x2898ac&&'resizeTable'===_0x2898ac['formatGroupId']){const _0x2e9beb='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2e9beb)};}}}class Dt extends _0x28108f{['afterInit'](){const _0x2c79d7=this['editor'];_0x2c79d7['plugins']['has']('Template')&&_0x2c79d7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x28108f{['afterInit'](){const _0x376114=this['editor'];if(!_0x376114['commands']['get']('insertTableOfContents'))return;_0x376114['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x416aaf=_0x376114['plugins']['get']('TrackChangesEditing'),_0xd17848=_0x376114['locale'];_0x416aaf['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5b8a01=>o(_0xd17848,'ELEMENT_TABLE_OF_CONTENTS',_0x5b8a01));}}class $t extends _0x28108f{['afterInit'](){const _0x49fb2c=this['editor'];if(!_0x49fb2c['plugins']['has']('Title'))return;const _0xc4f2ae=_0x49fb2c['plugins']['get']('TrackChangesEditing');_0xc4f2ae['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x49fb2c['locale'],'ELEMENT_TITLE')),_0x49fb2c['model']['document']['registerPostFixer'](_0x10f77b=>{let _0x13cd50=!0x1;const _0x48efc0=Array['from'](_0x49fb2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2feb41,data:_0x1ff0f7}of _0x48efc0){const {group:_0x242f0d}=_0xc4f2ae['_splitMarkerName'](_0x2feb41);if('suggestion'!==_0x242f0d||!_0x1ff0f7['newRange'])continue;const _0x5d7de0=_0x1ff0f7['newRange'],_0x32b893=_0x5d7de0['end']['nodeBefore'];if(!_0x32b893||!_0x32b893['is']('element','title-content'))continue;if(!_0x5d7de0['start']['isTouching'](_0x5d7de0['end']))continue;const _0x125b4c=_0x49fb2c['model']['schema']['getNearestSelectionRange'](_0x5d7de0['end'],'forward');if(_0x125b4c&&_0x125b4c['isCollapsed']){const _0x171aec=_0x10f77b['createRange'](_0x5d7de0['start'],_0x125b4c['start']);_0x171aec['isEqual'](_0x5d7de0)||(_0x10f77b['updateMarker'](_0x2feb41,{'range':_0x171aec}),_0x13cd50=!0x0);}_0x13cd50||(_0x10f77b['removeMarker'](_0x2feb41),_0x13cd50=!0x0);}return _0x13cd50;});}}class Bt extends _0x28108f{['afterInit'](){const _0x216252=this['editor'],_0x52b7af=_0x216252['plugins']['get']('TrackChangesEditing');_0x216252['plugins']['has']('UndoEditing')&&(_0x52b7af['enableCommand']('undo'),_0x52b7af['enableCommand']('redo'));}}class xt extends _0x28108f{static get['requires'](){return[It];}['afterInit'](){const _0x4306ea=this['editor'];if(!_0x4306ea['plugins']['has']('TableCaptionEditing'))return;_0x4306ea['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x28108f{['tableProperties'];['tableCellProperties'];constructor(_0xf081e1){super(_0xf081e1),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 _0x34250f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5445fb of this['tableProperties'])_0x34250f['enableCommand'](_0x5445fb,(_0x7eadd4,_0xcc0321)=>{const _0x8526bf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5445fb,[_0x8526bf],this['tableProperties'],'tableProperties',_0x7eadd4,_0xcc0321);});_0x34250f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x34250f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34250f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x182149,_0xc3f46b)=>this['handleDiscardAction'](this['tableProperties'],_0x182149,_0xc3f46b)),_0x34250f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xf4b1b1 of this['tableCellProperties'])_0x34250f['enableCommand'](_0xf4b1b1,(_0x59a885,_0x4e7a68)=>{const _0x1ba7f2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xf4b1b1,_0x1ba7f2,this['tableCellProperties'],'tableCellProperties',_0x59a885,_0x4e7a68);});_0x34250f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x34250f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34250f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x6a795b,_0x1753ac)=>this['handleDiscardAction'](this['tableCellProperties'],_0x6a795b,_0x1753ac)),_0x34250f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x34250f['descriptionFactory']['registerDescriptionCallback'](_0x185af3=>this['handleSuggestionDescription'](_0x185af3));}['_handlePropertyChange'](_0x3165b0,_0x1aceb1,_0x5259cd,_0x18ad66,_0x3e7e7a,_0x3fc1a6){const _0x32add8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3fc1a6['batch'],()=>{for(const _0x5b76c4 of _0x1aceb1){if(this['_getSuggestion'](_0x5b76c4,_0x18ad66))_0x3e7e7a(_0x3fc1a6);else{const _0x547fad={};for(const _0x15f5bf of _0x5259cd){const _0x50fd0c=_0x5b76c4['getAttribute'](_0x15f5bf);void 0x0!==_0x50fd0c&&(_0x547fad[_0x15f5bf]=_0x50fd0c);}_0x3e7e7a(_0x3fc1a6),_0x32add8['markBlockFormat'](_0x5b76c4,{'commandParams':[_0x547fad]},[],_0x18ad66);}}});}['handleDiscardAction'](_0x187e15,_0x312c94,_0xc3fe7b){const _0x42852c=_0x312c94[0x0]['start']['nodeAfter'],_0x312f26=_0xc3fe7b['commandParams'][0x0];this['editor']['model']['change'](_0x1f6b15=>{for(const _0xc8e5d4 of _0x187e15)void 0x0!==_0x312f26[_0xc8e5d4]?_0x1f6b15['setAttribute'](_0xc8e5d4,_0x312f26[_0xc8e5d4],_0x42852c):_0x1f6b15['removeAttribute'](_0xc8e5d4,_0x42852c);});}['handleSuggestionDescription'](_0x13a133){if(_0x13a133['data'])switch(_0x13a133['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'](_0x2daabc,_0x242423){const _0x3b85fd=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x31fbb3 of _0x3b85fd['getSuggestions']({'skipNotAttached':!0x0})){const _0x24d326=_0x31fbb3['getContainedElement']();if(_0x31fbb3['subType']===_0x242423&&_0x24d326===_0x2daabc)return _0x31fbb3;}return null;}}const m='$elementName';class p extends _0x28108f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x9fa097,_0xd26df6,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x528d01){function _0x2f9a6a(_0x21779a){return _0x21779a['map'](_0x444c60=>String['fromCharCode'](_0x444c60))['join']('');}super(_0x528d01),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xbe7f48,_0xcaf882,_0x45e432,_0x3a9aa3)=>{this['_model']['change'](()=>{for(const _0x41f8c8 of[..._0x3a9aa3,..._0x45e432])this['_model']['markers']['has'](_0x41f8c8)&&_0x528d01['editing']['reconvertMarker'](_0x41f8c8);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x528d01['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(),_0x528d01['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x528d01['config']['get']('trackChanges.trackFormatChanges'),_0x528d01['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x528d01['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x528d01,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2f9a6a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2f9a6a([0x34,0x30,0x34,0x38,0x32,0x30,0x30,0x34]);}['init'](){const _0x49d294=this['editor'],_0x20047b=(_0x5d5dcf,_0x3d88cc)=>{if('attribute'!=_0x5d5dcf)return'ck-suggestion-marker-'+_0x5d5dcf;const _0x311e68=_0x3d88cc['split']('|')[0x0];return this['_isBlockAttribute'](_0x311e68)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x49d294['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1ca790=>{const {id:_0x14bde8,authorId:_0x5edb34,type:_0x16c5cd,subType:_0x4bc988}=this['_splitMarkerName'](_0x1ca790['markerName']),_0x5edc75=['ck-suggestion-marker',_0x20047b(_0x16c5cd,_0x4bc988)];let _0x29a42e=0xbb8;return this['activeMarkers']['includes'](_0x1ca790['markerName'])&&(_0x5edc75['push']('ck-suggestion-marker--active'),_0x29a42e=0xbc2),'deletion'==_0x16c5cd&&(_0x29a42e+=0x5),{'classes':_0x5edc75,'attributes':{'data-suggestion':_0x14bde8,'data-author-id':_0x5edb34},'priority':_0x29a42e};}}),_0x49d294['conversion']['for']('dataDowncast')['add'](_0x2c1649=>{_0x2c1649['on']('addMarker:suggestion',(_0x25deb9,_0x53cfe1,_0x43d424)=>{if(!_0x43d424['options']['showSuggestionHighlights'])return;const _0xf48346=_0x53cfe1['item'];if(!_0xf48346)return;const _0x14e74f=_0x43d424['mapper']['toViewElement'](_0xf48346);_0x49d294['model']['schema']['isObject'](_0xf48346)&&_0x14e74f&&!_0x14e74f['getCustomProperty']('widget')&&_0x14e74f['is']('containerElement')&&_0x519625(_0x14e74f,_0x43d424['writer']);},{'priority':'high'});}),_0x49d294['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2b9ec7,_0x345a56)=>{if(!_0x345a56['options']['showSuggestionHighlights'])return null;const {type:_0x22b815,subType:_0x2d32e3}=this['_splitMarkerName'](_0x2b9ec7['markerName']);return{'classes':['ck-suggestion-marker',_0x20047b(_0x22b815,_0x2d32e3)],'priority':0xbb8};}});const _0x27a0ad=({showActiveMarkers:_0x46f86b=!0x0,isAttributeSuggestion:_0x1c9e10=!0x1}={})=>(_0x2114cc,_0x2cd98a,_0x3492d8)=>{if(!_0x2cd98a['item'])return;const {id:_0x430740,authorId:_0x21b1af}=this['_splitMarkerName'](_0x2cd98a['markerName']);if(_0x1c9e10){const _0x4f1230=this['_suggestions']['get'](_0x430740),_0x8cb282=this['_getAttributeKey'](_0x4f1230);if(!this['_isBlockAttribute'](_0x8cb282))return;}if(_0x2cd98a['item']['is']('selection'))return void _0x3492d8['consumable']['consume'](_0x2cd98a['item'],_0x2114cc['name']);const _0x5666d5=_0x3492d8['mapper']['toViewElement'](_0x2cd98a['item']);if(_0x2cd98a['item']['is']('element')&&_0x49d294['model']['schema']['isBlock'](_0x2cd98a['item'])&&!_0x5666d5['getCustomProperty']('addHighlight')){_0x3492d8['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5666d5),_0x3492d8['writer']['setAttribute']('data-suggestion',_0x430740,_0x5666d5),_0x3492d8['writer']['setAttribute']('data-author-id',_0x21b1af,_0x5666d5),_0x3492d8['mapper']['bindElementToMarker'](_0x5666d5,_0x2cd98a['markerName']),_0x46f86b&&(this['activeMarkers']['includes'](_0x2cd98a['markerName'])?_0x3492d8['writer']['addClass']('ck-suggestion-marker--active',_0x5666d5):_0x3492d8['writer']['removeClass']('ck-suggestion-marker--active',_0x5666d5));for(const _0x147e21 of _0x49d294['model']['createRangeIn'](_0x2cd98a['item'])['getItems']())_0x3492d8['consumable']['consume'](_0x147e21,_0x2114cc['name']);_0x3492d8['consumable']['consume'](_0x2cd98a['item'],_0x2114cc['name']);}};_0x49d294['conversion']['for']('dataDowncast')['add'](_0x5a5d1f=>{_0x5a5d1f['on']('addMarker:suggestion:formatBlock',(_0x2eef43,_0x26286f,_0x5eb7b1)=>{_0x5eb7b1['options']['showSuggestionHighlights']&&_0x27a0ad({'showActiveMarkers':!0x1})(_0x2eef43,_0x26286f,_0x5eb7b1);},{'priority':'highest'});}),_0x49d294['conversion']['for']('dataDowncast')['add'](_0x482f65=>{_0x482f65['on']('addMarker:suggestion:attribute',(_0x754ccd,_0x141fb5,_0x556ce3)=>{_0x556ce3['options']['showSuggestionHighlights']&&_0x27a0ad({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x754ccd,_0x141fb5,_0x556ce3);},{'priority':'highest'});}),_0x49d294['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x383439,_0x215d7f)=>_0x215d7f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x383439['substr'](0xb)}}),_0x49d294['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5ef0f5,{writer:_0x357b9c})=>{let _0x515f31='suggestion:'+_0x5ef0f5['getAttribute']('suggestion-type')+':'+_0x5ef0f5['getAttribute']('id');return _0x5ef0f5['getAttribute']('marker-count')&&(_0x515f31+=':'+_0x5ef0f5['getAttribute']('marker-count')),_0x357b9c['createElement']('$marker',{'data-name':_0x515f31});}}),_0x49d294['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x49d294['conversion']['for']('editingDowncast')['add'](_0x224b33=>{_0x224b33['on']('addMarker:suggestion:formatBlock',_0x27a0ad(),{'priority':'high'});}),_0x49d294['conversion']['for']('editingDowncast')['add'](_0x3b4281=>{_0x3b4281['on']('addMarker:suggestion:attribute',_0x27a0ad({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x49d294['conversion']['for']('editingDowncast')['add'](_0x5cd8d0=>{_0x5cd8d0['on']('removeMarker:suggestion:formatBlock',(_0x71d488,_0x4078eb,_0x20e3f8)=>{const _0x22409b=_0x20e3f8['mapper']['markerNameToElements'](_0x4078eb['markerName']);if(_0x22409b){for(const _0xdbdc9c of _0x22409b)_0xdbdc9c['getCustomProperty']('addHighlight')||(_0x20e3f8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xdbdc9c),_0x20e3f8['writer']['removeAttribute']('data-suggestion',_0xdbdc9c),_0x20e3f8['writer']['removeAttribute']('data-author-id',_0xdbdc9c),_0x20e3f8['mapper']['unbindElementFromMarkerName'](_0xdbdc9c,_0x4078eb['markerName']));}},{'priority':'high'});}),_0x49d294['conversion']['for']('editingDowncast')['add'](_0x4a6415=>{_0x4a6415['on']('removeMarker:suggestion:attribute',(_0x475933,_0x288d42,_0x3a1072)=>{const _0x2bd576=_0x3a1072['mapper']['markerNameToElements'](_0x288d42['markerName']);if(!_0x2bd576)return;const {id:_0xaeb30c}=this['_splitMarkerName'](_0x288d42['markerName']),_0x5d7a42=this['_suggestions']['get'](_0xaeb30c),_0x5a4520=this['_getAttributeKey'](_0x5d7a42);if(this['_isBlockAttribute'](_0x5a4520)){for(const _0x9289c4 of _0x2bd576)_0x9289c4['getCustomProperty']('addHighlight')||(_0x3a1072['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9289c4),_0x3a1072['writer']['removeAttribute']('data-suggestion',_0x9289c4),_0x3a1072['writer']['removeAttribute']('data-author-id',_0x9289c4),_0x3a1072['mapper']['unbindElementFromMarkerName'](_0x9289c4,_0x288d42['markerName']));}},{'priority':'high'});}),_0x49d294['model']['document']['registerPostFixer'](_0x33e545=>{let _0x64c353=!0x1;const _0x41e844=Array['from'](_0x49d294['model']['document']['differ']['getChangedMarkers']()),_0x509680=new Set();for(const {name:_0x10f843,data:_0x46b6b9}of _0x41e844){const {group:_0x16dade,type:_0x2f74ff,subType:_0x51d8c9,id:_0x4f4a91}=this['_splitMarkerName'](_0x10f843);if('suggestion'!==_0x16dade)continue;const _0x496e7a=this['_suggestions']['get'](_0x4f4a91);if(null!=_0x46b6b9['newRange']){'formatInline'==_0x2f74ff&&(_0x64c353=_0x64c353||Ut(_0x46b6b9['newRange'],_0x10f843,_0x33e545,_0x49d294['model']['schema']));const _0x91aecb='attribute'==_0x2f74ff&&this['_isBlockAttribute'](_0x51d8c9['split']('|')[0x0]);if(_0x46b6b9['newRange']['isCollapsed']||'$graveyard'==_0x46b6b9['newRange']['root']['rootName']||'formatBlock'==_0x2f74ff&&!Ft(_0x46b6b9['newRange'])||_0x91aecb&&!Ft(_0x46b6b9['newRange'])||'deletion'==_0x2f74ff&&!(!Vt(_0x32dad9=_0x46b6b9['newRange'])&&!function(_0x2818e7){return _0x2818e7['start']['parent']==_0x2818e7['end']['nodeBefore']&&_0x2818e7['start']['isAtEnd'];}(_0x32dad9)))_0x33e545['removeMarker'](_0x10f843),_0x64c353=!0x0;else{if(!_0x496e7a||!_0x496e7a['isInContent'])continue;if(_0x46b6b9['newRange']&&_0x46b6b9['oldRange']&&_0x46b6b9['newRange']['isEqual'](_0x46b6b9['oldRange']))continue;_0x509680['add'](_0x496e7a);}}}var _0x32dad9;return _0x509680['size']>0x0&&(_0x64c353=!!this['_joinWithAdjacentSuggestions'](_0x509680)||_0x64c353),_0x64c353;}),_0x49d294['model']['document']['registerPostFixer'](_0x163b39=>{let _0x38aa25=!0x1;for(const _0xca1071 of _0x49d294['model']['document']['differ']['getChanges']())if('insert'==_0xca1071['type'])for(const _0x1ae1f9 of this['_suggestions']['values']()){if(_0x1ae1f9['isMultiRange']||!_0x1ae1f9['isInContent'])continue;const _0x106e3b='formatBlock'==_0x1ae1f9['type'],_0x3f4302=this['_getAttributeKey'](_0x1ae1f9),_0x781dac=_0x3f4302&&this['_isBlockAttribute'](_0x3f4302);if(!_0x106e3b&&!_0x781dac)continue;const _0x39541f=_0x1ae1f9['getFirstRange']();if(_0x39541f['start']['parent']!=_0x39541f['end']['parent']&&!_0x39541f['end']['isAtEnd']){const _0x203311=_0x49d294['model']['createPositionAt'](_0x39541f['start']['nodeAfter'],'end'),_0x5e8b81=_0x49d294['model']['createRange'](_0x39541f['start'],_0x203311);_0x163b39['updateMarker'](_0x1ae1f9['getFirstMarker'](),{'range':_0x5e8b81}),_0x38aa25=!0x0;}}return _0x38aa25;}),_0x49d294['model']['document']['registerPostFixer'](_0x49465e=>this['_processAttributeChanges'](_0x49465e)),_0x49d294['model']['document']['registerPostFixer'](_0x72de48=>!_0x72de48['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x72de48)),_0x49d294['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x49d294['model']['document']['on']('change:data',(_0x30013a,_0x3dc69b)=>{if(!_0x3dc69b['isLocal']||_0x3dc69b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2edb31=_0x49d294['model']['document']['differ']['getChanges']();if(0x0==_0x2edb31['length'])return;const _0x3219d0=[],_0x217e6a=_0x2edb31['filter'](_0x519036=>'attribute'==_0x519036['type']),_0x2678ed=_0x2edb31['filter'](_0x4bbe50=>'insert'==_0x4bbe50['type']&&'$text'!=_0x4bbe50['name']);for(const _0x2c5704 of _0x217e6a)this['_isRegisteredAttribute'](_0x2c5704['attributeKey'])&&_0x3219d0['push']({'key':_0x2c5704['attributeKey'],'newValue':_0x2c5704['attributeNewValue'],'oldValue':_0x2c5704['attributeOldValue'],'range':Pt(_0x2c5704['range'],_0x49d294['model'])});for(const _0x4cf3ef of _0x2678ed){if('rename'!=_0x4cf3ef['action']&&'refresh'!=_0x4cf3ef['action'])continue;const _0x583ec4=Lt(_0x4cf3ef['position']['nodeAfter'],_0x49d294['model']),_0x13bafb=_0x4cf3ef['before'];'rename'==_0x4cf3ef['action']&&_0x3219d0['push']({'key':m,'newValue':_0x4cf3ef['name'],'oldValue':_0x13bafb['name'],'range':_0x583ec4});for(const [_0x1be803,_0x14d0ca]of _0x13bafb['attributes']){if(!this['_isRegisteredAttribute'](_0x1be803))continue;const _0x5c7513=_0x4cf3ef['attributes']['get'](_0x1be803);_0x14d0ca!==_0x5c7513&&_0x3219d0['push']({'key':_0x1be803,'newValue':_0x5c7513,'oldValue':_0x14d0ca,'range':_0x583ec4});}for(const [_0x3fb6f4,_0x16e829]of _0x4cf3ef['attributes'])this['_isRegisteredAttribute'](_0x3fb6f4)&&(_0x13bafb['attributes']['has'](_0x3fb6f4)||_0x3219d0['push']({'key':_0x3fb6f4,'newValue':_0x16e829,'oldValue':null,'range':_0x583ec4}));}0x0!=_0x3219d0['length']&&_0x49d294['model']['enqueueChange'](_0x3dc69b,_0x4d853d=>{const _0x4377f2=_0x447718();for(const {range:_0x3c3150,key:_0xc78e16,oldValue:_0x50a280,newValue:_0x4f19bc}of _0x3219d0)this['markAttributeChange'](_0x3c3150,_0xc78e16,_0x50a280,_0x4f19bc,{'groupId':_0x4377f2});this['_reduceExistingSuggestions'](_0x4d853d,_0x3219d0);});},{'priority':'lowest'}),_0x49d294['model']['markers']['on']('update:suggestion',(_0x11b031,_0x40e359,_0x469fea)=>{if(null==_0x469fea){const {id:_0xaa5cf1}=this['_splitMarkerName'](_0x40e359['name']),_0x34024f=this['_suggestions']['get'](_0xaa5cf1);_0x34024f&&_0x34024f['addMarkerName'](_0x40e359['name']);}}),_0x49d294['model']['document']['on']('change:data',()=>{const _0x513d0c=Array['from'](_0x49d294['model']['document']['differ']['getChangedMarkers']())['filter'](_0x293c56=>'suggestion'===this['_splitMarkerName'](_0x293c56['name'])['group']);if(0x0===_0x513d0c['length'])return;_0x513d0c['sort']((_0x3a4803,_0xd3397e)=>{const _0x5b2b19=_0x3a4803['data']['oldRange'],_0x1b4905=_0xd3397e['data']['oldRange'];return null===_0x5b2b19&&null===_0x1b4905?0x0:null===_0x5b2b19&&null!==_0x1b4905?-0x1:null!==_0x5b2b19&&null===_0x1b4905?0x1:_0x5b2b19['start']['isBefore'](_0x1b4905['start'])?-0x1:0x1;});const _0x2d66df=new Set(),_0x8182cb=new Set();for(const {name:_0x2460bd,data:_0x2cbfc3}of _0x513d0c){const {id:_0x52abe1}=this['_splitMarkerName'](_0x2460bd);if(null===_0x2cbfc3['oldRange']){const _0x26c762=this['_handleNewSuggestionMarker'](_0x2460bd);_0x8182cb['add'](_0x26c762);}else{const _0x4ad355=this['_suggestions']['get'](_0x52abe1);null!==_0x2cbfc3['newRange']||_0x4ad355['isInContent']?(_0x2d66df['add'](_0x4ad355['head']),_0x8182cb['add'](_0x4ad355)):this['_removeSuggestion'](_0x4ad355);}}_0x8182cb['size']>0x0&&this['_refreshSuggestionsChain'](_0x8182cb);for(const _0x165618 of _0x2d66df)this['fire']('suggestionChanged',_0x165618);}),_0x49d294['model']['on']('applyOperation',(_0x3addf6,_0x2e5ab)=>{const _0x4637b4=_0x2e5ab[0x0];if(!this['_suggestions']['size'])return;if(!_0x4637b4['isDocumentOperation'])return;if(_0x4637b4['batch']['isUndo']||!_0x4637b4['batch']['isLocal'])return;let _0x28c400,_0x11e655;switch(_0x4637b4['type']){case'insert':_0x28c400=_0x49d294['model']['createPositionAt'](_0x4637b4['position']),_0x11e655=_0x28c400['getShiftedBy'](_0x4637b4['howMany']);break;case'split':_0x28c400=_0x49d294['model']['createPositionAt'](_0x4637b4['splitPosition']),_0x11e655=_0x49d294['model']['createPositionAt'](_0x4637b4['moveTargetPosition']);break;case'move':_0x28c400=_0x49d294['model']['createPositionAt'](_0x4637b4['targetPosition']),_0x11e655=_0x28c400['getShiftedBy'](_0x4637b4['howMany']);break;default:return;}const _0x113566=_0x49d294['model']['createRange'](_0x28c400,_0x11e655);_0x49d294['model']['change'](()=>{for(const {suggestion:_0x14c327,meta:_0x555071}of this['_findSuggestions'](_0x113566)){if(_0x14c327['isMultiRange'])continue;if('formatInline'==_0x14c327['type'])continue;const _0xcc677d=this['_getAttributeKey'](_0x14c327);if(_0xcc677d&&this['_isBlockAttribute'](_0xcc677d)&&'split'!=_0x4637b4['type'])continue;const _0x5909b7=_0x14c327['data']&&_0x14c327['data']['multipleBlocks'];('formatBlock'!=_0x14c327['type']||'split'==_0x4637b4['type']&&!_0x5909b7)&&(_0x555071['containsRangeInObject']||'insertion'==_0x14c327['type']&&_0x555071['isOwn']||_0x14c327['getFirstRange']()['containsRange'](_0x113566)&&this['_breakSuggestionMarker'](_0x14c327,_0x28c400,_0x11e655));}});},{'priority':'lowest'}),_0x49d294['model']['on']('deleteContent',(_0x22e3b8,_0xdfdb80)=>{const _0x35cfb7=_0xdfdb80[0x0],_0x59a288=_0xdfdb80[0x1];if(_0x59a288&&_0x59a288['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x35cfb7['isCollapsed'])return;const _0x4b1e4c=_0x49d294['model']['schema'],{start:_0xa7ddf9,end:_0x576939}=_0x35cfb7['getFirstRange'](),_0x40f50a=_0xa7ddf9['nodeAfter']&&_0x4b1e4c['isLimit'](_0xa7ddf9['nodeAfter'])?null:_0x4b1e4c['getNearestSelectionRange'](_0xa7ddf9,'forward'),_0x47db0a=_0x576939['nodeBefore']&&_0x4b1e4c['isLimit'](_0x576939['nodeBefore'])?null:_0x4b1e4c['getNearestSelectionRange'](_0x576939,'backward'),_0x2070df=_0x49d294['model']['createRange'](_0x40f50a?_0x40f50a['start']:_0xa7ddf9,_0x47db0a?_0x47db0a['end']:_0x576939);_0x49d294['model']['change'](_0x941f5f=>{this['markDeletion'](_0x2070df);const _0x2bdca1=_0x49d294['model']['schema']['getNearestSelectionRange'](_0x2070df['start']);_0x35cfb7['is']('documentSelection')?_0x941f5f['setSelection'](_0x2bdca1):_0x35cfb7['setTo'](_0x2bdca1);}),_0x22e3b8['stop']();},{'priority':_0x2e92e4['normal']+0xa}),_0x49d294['model']['on']('insertContent',(_0x598c0d,_0x2e72fc)=>{const _0x26a3ce=_0x2e72fc[_0x2e72fc['length']-0x1];_0x26a3ce&&_0x26a3ce['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x49d294['model']['change'](()=>{let _0x47dff8=_0x49d294['model']['insertContent'](_0x2e72fc[0x0],_0x2e72fc[0x1],_0x2e72fc[0x2],{'forceDefaultExecution':!0x0});if(!_0x47dff8)return;_0x598c0d['return']=_0x47dff8['clone']();const _0x36ac01=_0x47dff8['end']['nodeBefore'],_0x54775b=_0x49d294['model']['schema'];_0x36ac01&&_0x54775b['isBlock'](_0x36ac01)&&!_0x54775b['isObject'](_0x36ac01)&&(_0x47dff8=_0x49d294['model']['createRange'](_0x47dff8['start'],_0x49d294['model']['createPositionAt'](_0x36ac01,'end'))),this['markInsertion'](_0x47dff8);}),_0x598c0d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4dc17d=new x(_0x49d294,this['_suggestions']);_0x49d294['commands']['add']('acceptSuggestion',_0x4dc17d),this['enableCommand']('acceptSuggestion');const _0x3e8171=new R(_0x49d294,this['_suggestions']);_0x49d294['commands']['add']('discardSuggestion',_0x3e8171),this['enableCommand']('discardSuggestion'),_0x49d294['commands']['add']('acceptAllSuggestions',new E(_0x49d294,_0x4dc17d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x49d294['commands']['add']('discardAllSuggestions',new E(_0x49d294,_0x3e8171,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x49d294['commands']['add']('acceptSelectedSuggestions',new O(_0x49d294,_0x4dc17d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x49d294['commands']['add']('discardSelectedSuggestions',new O(_0x49d294,_0x3e8171,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x13e399=_0x49d294['plugins']['get']('CommentsRepository');this['listenTo'](_0x13e399,'addComment',(_0x4d484d,{threadId:_0x29c916})=>{const _0x1a83f9=this['_suggestions']['get'](_0x29c916);_0x1a83f9&&_0x1a83f9['commentThread']&&0x1===_0x1a83f9['commentThread']['length']&&this['_updateSuggestionData'](_0x29c916,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x13e399,'removeComment',(_0x1ec158,{threadId:_0x58fe34})=>{const _0x4b7086=this['_suggestions']['get'](_0x58fe34);_0x4b7086&&_0x4b7086['commentThread']&&!_0x4b7086['commentThread']['length']&&this['_updateSuggestionData'](_0x58fe34,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x406b83){if(this['_adapter'])throw new _0x3ace68('track-changes-adapter-already-set',this);this['_adapter']=_0x406b83;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xa47580=!0x1,toJSON:_0x12b1b1=!0x1}={}){const _0x1f2127=[];for(const _0x1ca892 of this['_suggestions']['values']())_0xa47580&&!_0x1ca892['isInContent']||_0x1f2127['push'](_0x1ca892);return _0x12b1b1?_0x1f2127['map'](_0x52e7d8=>_0x52e7d8['toJSON']()):_0x1f2127;}['getSuggestion'](_0x20fcf6){const _0x216499=this['_suggestions']['get'](_0x20fcf6);if(!_0x216499)throw new _0x3ace68('track-changes-suggestion-not-found',this);return _0x216499;}['hasSuggestion'](_0x3910d4){return this['_suggestions']['has'](_0x3910d4);}['addSuggestionData'](_0x3ec7af){const {authorId:_0x23a522,id:_0x349f04,attributes:_0x424c0c}=_0x3ec7af,[_0xac6f9b,_0xc53ec8]=_0x3ec7af['type']['split'](':'),_0x561813=this['_suggestions']['get'](_0x349f04)||this['_createSuggestion'](_0xac6f9b,_0xc53ec8,_0x349f04,_0x23a522,_0x424c0c);if(this['_addThreadToSuggestion'](_0x561813),this['_checkSuggestionCorrectness'](_0x561813,_0xac6f9b,_0xc53ec8||null,_0x23a522),_0x561813['createdAt']=_0x3ec7af['createdAt'],_0x561813['_isDataLoaded']=!0x0,_0x424c0c&&_0x424c0c['@external']){const _0x24eb3e=_0x424c0c['@external'],_0x110799=this['_getExternalAuthor'](_0x24eb3e['authorName']);_0x561813['authoredAt']=_0x24eb3e['createdAt'],_0x561813['author']=_0x110799,_0x561813['isExternal']=!0x0;}else _0x561813['authoredAt']=_0x3ec7af['createdAt'];switch(_0x3ec7af['data']&&(_0x561813['data']=_0x3ec7af['data']),_0x3ec7af['attributes']&&(_0x561813['attributes']=_0x3ec7af['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x561813['_saved']=!0x0),this['_suggestionState']['get'](_0x561813)){case'notReady':this['_suggestionState']['set'](_0x561813,'dataReady');break;case'markerReady':_0x561813['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x561813])),this['_refreshSuggestionsChain'](new Set([_0x561813])),this['_suggestionState']['set'](_0x561813,'ready'),this['fire']('suggestionLoaded',_0x561813)):this['_suggestionState']['set'](_0x561813,'removed');}return _0x561813;}['acceptSuggestion'](_0x4925d8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2886b3 of _0x4925d8['getAllAdjacentSuggestions']())_0x2886b3['accept']();});});}['discardSuggestion'](_0x279c9d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2d3604 of _0x279c9d['getAllAdjacentSuggestions']())_0x2d3604['discard']();});});}['enableCommand'](_0x4479f3,_0x237d0e){const _0x1efef3=this['editor']['commands']['get'](_0x4479f3);if(!_0x1efef3)throw new _0x3ace68('track-changes-command-not-found',this,{'commandName':_0x4479f3});if(this['_enabledCommands']['has'](_0x1efef3))throw new _0x3ace68('track-changes-enable-command-twice',this,{'commandName':_0x4479f3});this['_enabledCommands']['add'](_0x1efef3),_0x237d0e&&_0x1efef3['on']('execute',(_0x1a73f1,_0x9f12ec)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x9f12ec['length']>0x0&&_0x9f12ec[_0x9f12ec['length']-0x1]&&_0x9f12ec[_0x9f12ec['length']-0x1]['forceDefaultExecution']?_0x9f12ec['pop']():(_0x1a73f1['return']=_0x237d0e((..._0x4407b0)=>_0x1efef3['execute'](..._0x4407b0,{'forceDefaultExecution':!0x0}),..._0x9f12ec),_0x1a73f1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x22347b){let _0x6c2524,_0x3f3d16;const _0x599beb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x6c2524=_0x22347b();}catch(_0x5bb40b){_0x3f3d16=_0x5bb40b;}return _0x599beb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3f3d16&&_0x3ace68['rethrowUnexpectedError'](_0x3f3d16,this),_0x6c2524;}['markInsertion'](_0x4e38ed,_0x57c5d0=null,_0x2e9d97={}){if(_0x4e38ed['isCollapsed'])return null;const _0x2f9f89=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1e3ecc,meta:_0x30978a}of this['_findSuggestions'](_0x4e38ed,'insertion'))if(_0x30978a['isOwn']){if(!_0x30978a['isNextTo']){if(_0x30978a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1e3ecc,_0x2e9d97))continue;return _0x1e3ecc;}if(qt(_0x1e3ecc,_0x2e9d97))return _0x1e3ecc;this['_breakSuggestionMarker'](_0x1e3ecc,_0x4e38ed['start'],_0x4e38ed['end']);break;}if(_0x57c5d0==_0x1e3ecc['subType']&&qt(_0x1e3ecc,_0x2e9d97)){const _0x4b88e7=_0x1e3ecc['getFirstRange']();return _0x4b88e7['start']['isEqual'](_0x4e38ed['end'])?this['_setSuggestionRange'](_0x1e3ecc,this['_model']['createRange'](_0x4e38ed['start'],_0x4b88e7['end'])):this['_setSuggestionRange'](_0x1e3ecc,this['_model']['createRange'](_0x4b88e7['start'],_0x4e38ed['end'])),_0x1e3ecc;}}const _0x12dacb=_0x447718(),_0x325e79=_0x2f9f89['id'],_0x5c564e=_0x57c5d0?'insertion:'+_0x57c5d0:'insertion',_0xeec00e=this['_setSuggestionData']({'id':_0x12dacb,'type':_0x5c564e,'createdAt':new Date(),'authorId':_0x325e79,'attributes':_0x2e9d97});return this['_addSuggestionMarker'](_0x5c564e,_0x12dacb,_0x325e79,_0x4e38ed),_0xeec00e;}['markMultiRangeInsertion'](_0x388ff4,_0x36e68b='multi',_0x173ec6={}){const _0x108444=this['editor']['plugins']['get']('Users')['me'],_0x1f88d1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x36e68b,'join');for(const _0x36cdca of this['getSuggestions']())if(_0x36cdca['author']['id']==_0x108444['id']&&'insertion'==_0x36cdca['type']&&_0x36cdca['subType']==_0x36e68b&&qt(_0x36cdca,_0x173ec6)&&(_0x1f88d1(_0x36cdca['getRanges'](),_0x388ff4)||_0x1f88d1(_0x388ff4,_0x36cdca['getRanges']()))){for(const _0x369aa1 of _0x388ff4)_0x36cdca['addRange'](_0x369aa1);return _0x36cdca;}for(const {suggestion:_0x31d1ec,meta:_0x5aa1b8}of this['_findSuggestions'](_0x388ff4,'insertion')){if(!_0x5aa1b8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5aa1b8['containsRangeInObject'])continue;if(!qt(_0x31d1ec,_0x173ec6))continue;let _0x55930a=!0x0;for(const _0x4d49d4 of _0x31d1ec['getRanges']())for(const _0x34f8b3 of _0x388ff4)if(!_0x4d49d4['containsRange'](_0x34f8b3)){_0x55930a=!0x1;break;}if(_0x55930a)return _0x31d1ec;}const _0x4d9a59=_0x447718(),_0x2b470f=_0x108444['id'],_0x27834c='insertion:'+_0x36e68b,_0x1b9fcb=this['_setSuggestionData']({'id':_0x4d9a59,'type':_0x27834c,'createdAt':new Date(),'authorId':_0x2b470f,'attributes':_0x173ec6});for(const _0x183b05 of _0x388ff4)this['_addSuggestionMarker'](_0x27834c,_0x4d9a59,_0x2b470f,_0x183b05,u['getMultiRangeId']());return _0x1b9fcb;}['markInlineFormat'](_0x3d7e57,_0x433beb,_0x1ce751=null,_0x38e562={}){if(_0x1ce751=_0x1ce751||Gt(_0x433beb),_0x3d7e57['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x524062=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1ce751,'accept');return this['forceDefaultExecution'](()=>_0x524062([_0x3d7e57],_0x433beb,_0x38e562)),null;}const _0x5bdd67=this['editor']['plugins']['get']('Users')['me'],_0x259c38=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x536244,meta:_0x341251}of this['_findSuggestions'](_0x3d7e57,'insertion'))_0x341251['isOwn']&&!_0x341251['isInsideObject']&&_0x259c38['push'](..._0x536244['getRanges']());}const _0x267bec=function(_0x30d0bd,_0x36f5ee){const _0x2ec8fb=[];for(const _0x4b0b34 of _0x36f5ee){const _0x32ca9e=_0x30d0bd['getIntersection'](_0x4b0b34);_0x32ca9e&&_0x2ec8fb['push'](_0x32ca9e);}return _0x2ec8fb;}(_0x3d7e57,_0x259c38),_0x204341=function(_0x3d156e,_0x147667){const _0x4cedd7=[_0x3d156e];for(const _0x35be86 of _0x147667){let _0x270c35=0x0;for(;_0x270c35<_0x4cedd7['length'];){const _0x28d04c=_0x4cedd7[_0x270c35]['getDifference'](_0x35be86);_0x4cedd7['splice'](_0x270c35,0x1,..._0x28d04c),_0x270c35+=_0x28d04c['length'];}}return _0x4cedd7;}(_0x3d7e57,_0x259c38);_0x267bec['length']&&this['_model']['change'](()=>{for(const _0x1c1009 of _0x267bec){const _0x537256=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1ce751,'accept');this['forceDefaultExecution'](()=>_0x537256([_0x1c1009],_0x433beb,_0x38e562));}});for(const _0x21c29d of _0x204341){let _0x30d6f5=null,_0x238a20=_0x21c29d['start'],_0x3127d0=_0x21c29d['end'];for(const {suggestion:_0xaffd56,meta:_0xbba5e8}of this['_findSuggestions'](_0x21c29d,'formatInline')){if(!_0xbba5e8['isOwn'])continue;if(_0xaffd56['subType']!=_0x1ce751)continue;if(!qt(_0xaffd56,_0x38e562))continue;const _0x561481=_0xaffd56['getFirstRange']();if(_0x561481['containsRange'](_0x21c29d,!0x0))return null;_0x238a20=_0x238a20['isBefore'](_0x561481['start'])?_0x238a20:_0x561481['start'],_0x3127d0=_0x3127d0['isAfter'](_0x561481['end'])?_0x3127d0:_0x561481['end'],_0x30d6f5?_0x561481['start']['isBefore'](_0x30d6f5['getFirstRange']()['start'])?(_0x30d6f5['removeMarkers'](),_0x30d6f5=_0xaffd56):_0xaffd56['removeMarkers']():_0x30d6f5=_0xaffd56;}const _0x2d53be=this['_model']['createRange'](_0x238a20,_0x3127d0);if(_0x30d6f5)this['_setSuggestionRange'](_0x30d6f5,_0x2d53be);else{const _0x4698eb=_0x447718(),_0x51c3d9=_0x5bdd67['id'];this['_setSuggestionData']({'id':_0x4698eb,'type':'formatInline:'+_0x1ce751,'data':_0x433beb,'createdAt':new Date(),'authorId':_0x51c3d9,'attributes':_0x38e562}),this['_addSuggestionMarker']('formatInline:'+_0x1ce751,_0x4698eb,_0x51c3d9,_0x2d53be);}}return null;}['markBlockFormat'](_0x10bbb9,_0x122110,_0x391978=[],_0x3b6fad=null,_0x24adff={}){_0x122110['formatGroupId']||(_0x122110['formatGroupId']=_0x122110['commandName']),_0x122110['multipleBlocks']=_0x10bbb9['is']('range'),_0x3b6fad=_0x3b6fad||Gt(_0x122110);const _0x15bf20=_0x391978['map'](_0x2e103f=>Lt(_0x2e103f,this['_model'])),_0x40f7c1=_0x10bbb9['is']('range')?_0x10bbb9:Lt(_0x10bbb9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2aa4bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b6fad,'accept');return this['forceDefaultExecution'](()=>_0x2aa4bb([_0x40f7c1],_0x122110,_0x24adff)),null;}_0x15bf20['push'](_0x40f7c1);let _0x351f1a=!0x0;for(const _0x504e67 of _0x15bf20)if(!this['_rangeIsInLocalUserInsertion'](_0x504e67)){_0x351f1a=!0x1;break;}if(_0x351f1a&&'always'!==this['_trackFormatChanges']){const _0x1cefcc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b6fad,'accept');return this['forceDefaultExecution'](()=>_0x1cefcc([_0x40f7c1],_0x122110,_0x24adff)),null;}let _0x2f0e3c=null,_0x92d8eb=_0x40f7c1['start'],_0x5baba9=_0x40f7c1['end'];for(const {suggestion:_0x42079e,meta:_0x2e78bb}of this['_findSuggestions'](_0x40f7c1,'formatBlock')){if(!_0x2e78bb['isOwn'])continue;if(_0x2e78bb['isNextTo']||_0x2e78bb['containsRangeInObject']||_0x2e78bb['isInsideObject'])continue;if(_0x42079e['data']['formatGroupId']!=_0x122110['formatGroupId'])continue;if(!qt(_0x42079e,_0x24adff))continue;const _0x41b3c6=_0x42079e['getFirstRange']();if(_0x42079e['subType']==_0x3b6fad){if(_0x41b3c6['containsRange'](_0x40f7c1,!0x0))return null;_0x92d8eb=_0x92d8eb['isBefore'](_0x41b3c6['start'])?_0x92d8eb:_0x41b3c6['start'],_0x5baba9=_0x5baba9['isAfter'](_0x41b3c6['end'])?_0x5baba9:_0x41b3c6['end'],_0x2f0e3c?_0x41b3c6['start']['isBefore'](_0x2f0e3c['getFirstRange']()['start'])?(_0x2f0e3c['removeMarkers'](),_0x2f0e3c=_0x42079e):_0x42079e['removeMarkers']():_0x2f0e3c=_0x42079e;}else{const _0x2dd881=_0x40f7c1['getIntersection'](_0x41b3c6);this['_cutOutSuggestionMarker'](_0x42079e,_0x2dd881);}}const _0x106a2f=this['editor']['plugins']['get']('Users')['me'],_0x2dcf86=_0x447718(),_0x2de28e=_0x106a2f['id'];if(_0x2f0e3c)return this['_setSuggestionRange'](_0x2f0e3c,this['_model']['createRange'](_0x92d8eb,_0x5baba9)),_0x2f0e3c;{const _0x883a17=this['_setSuggestionData']({'id':_0x2dcf86,'type':'formatBlock:'+_0x3b6fad,'data':_0x122110,'createdAt':new Date(),'authorId':_0x2de28e,'attributes':_0x24adff});return this['_addSuggestionMarker']('formatBlock:'+_0x3b6fad,_0x2dcf86,_0x2de28e,this['_model']['createRange'](_0x92d8eb,_0x5baba9)),_0x883a17;}}['markMultiRangeBlockFormat'](_0x394b0b,_0x31df26,_0x3feda6=[],_0x5a659a=null,_0x36eeb2={}){_0x31df26['formatGroupId']||(_0x31df26['formatGroupId']=_0x31df26['commandName']);const _0x2900b4=_0x394b0b[0x0];_0x31df26['multipleBlocks']=_0x2900b4['is']('range'),_0x5a659a=_0x5a659a||Gt(_0x31df26);const _0x30500f=_0x3feda6['map'](_0x3c0bd8=>Lt(_0x3c0bd8,this['_model'])),_0x2de2ee=_0x2900b4['is']('range')?_0x394b0b:_0x394b0b['map'](_0xde42bd=>Lt(_0xde42bd,this['_model']));if('never'===this['_trackFormatChanges']){const _0xb7f15a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a659a,'accept');return this['forceDefaultExecution'](()=>_0xb7f15a(_0x2de2ee,_0x31df26,_0x36eeb2)),null;}_0x30500f['push'](..._0x2de2ee);let _0x1deb3e=!0x0;for(const _0x39f67d of _0x30500f)if(!this['_rangeIsInLocalUserInsertion'](_0x39f67d)){_0x1deb3e=!0x1;break;}if(_0x1deb3e&&'always'!==this['_trackFormatChanges']){const _0x2a1153=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a659a,'accept');return this['forceDefaultExecution'](()=>_0x2a1153(_0x2de2ee,_0x31df26,_0x36eeb2)),null;}const _0x367850=this['editor']['plugins']['get']('Users')['me'];for(const _0x23a6e4 of this['getSuggestions']()){if(_0x23a6e4['author']['id']!=_0x367850['id'])continue;if('formatBlock'!=_0x23a6e4['type']||_0x23a6e4['data']['formatGroupId']!=_0x31df26['formatGroupId'])continue;if(!qt(_0x23a6e4,_0x36eeb2))continue;const _0x1d89c5=_0x23a6e4['subType']==_0x5a659a;for(let _0x61f372=0x0;_0x61f372<_0x2de2ee['length'];_0x61f372++){const _0x3564cb=_0x2de2ee[_0x61f372];for(const _0x468d3b of _0x23a6e4['getMarkers']()){const _0x230002=_0x468d3b['getRange']();if(_0x3564cb['isEqual'](_0x230002)){_0x1d89c5?(_0x2de2ee['splice'](_0x61f372,0x1),_0x61f372--):_0x23a6e4['removeMarker'](_0x468d3b['name']);break;}}}}if(0x0==_0x2de2ee['length'])return null;const _0x535f1b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a659a,'join');for(const _0x5e7487 of this['getSuggestions']())if(_0x5e7487['author']['id']==_0x367850['id']&&'formatBlock'==_0x5e7487['type']&&_0x5e7487['data']['formatGroupId']==_0x31df26['formatGroupId']&&_0x5e7487['subType']==_0x5a659a&&qt(_0x5e7487,_0x36eeb2)&&(_0x535f1b(_0x5e7487['getRanges'](),_0x2de2ee)||_0x535f1b(_0x2de2ee,_0x5e7487['getRanges']()))){for(const _0xe12444 of _0x2de2ee)_0x5e7487['addRange'](_0xe12444);return _0x5e7487;}const _0x49626d=_0x447718(),_0x36a33b=_0x367850['id'],_0xafad21='formatBlock:'+_0x5a659a,_0x1a639d=this['_setSuggestionData']({'id':_0x49626d,'type':_0xafad21,'data':_0x31df26,'createdAt':new Date(),'authorId':_0x36a33b,'attributes':_0x36eeb2});for(const _0x18c10c of _0x2de2ee)this['_addSuggestionMarker'](_0xafad21,_0x49626d,_0x36a33b,_0x18c10c,u['getMultiRangeId']());return _0x1a639d;}['markDeletion'](_0x3b64f8,_0x38aade=null,_0xad4b40={}){if(_0x3b64f8['isCollapsed'])return null;const _0x459e9b=this['editor']['plugins']['get']('Users')['me'],_0x526ea2=new _0x29d231(_0x3b64f8['start'],_0x3b64f8['end']);for(const {suggestion:_0x4deddc,meta:_0x33edf4}of this['_findSuggestions'](_0x526ea2,'insertion'))if(_0x33edf4['isOwn']&&!_0x33edf4['isNextTo']){if(_0x4deddc['isMultiRange']){const _0x194eea=_0x4deddc['getRanges']()['filter'](_0x158bb8=>'$graveyard'!=_0x158bb8['root']['rootName']);_0x194eea['every'](_0x31e9dd=>_0x526ea2['containsRange'](_0x31e9dd,!0x0))&&_0x4deddc['discard']();if(_0x194eea['some'](_0x426dab=>_0x426dab['containsRange'](_0x526ea2,!0x0))){const _0x5b4acc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38aade,'accept');return this['forceDefaultExecution'](()=>_0x5b4acc([_0x526ea2],null,_0xad4b40)),null;}}else{const _0x253405=_0x526ea2['getIntersection'](_0x4deddc['getFirstRange']());null!==_0x253405&&_0x4deddc['_onDiscard']([_0x253405],null,_0xad4b40);}}if(_0x526ea2['detach'](),_0x526ea2['isCollapsed']||'$graveyard'==_0x526ea2['root']['rootName'])return null;let _0x20c854=null,_0x1ebf8e=_0x526ea2['start'],_0x2167eb=_0x526ea2['end'];const _0x28de52=this['_findSuggestions'](_0x526ea2,'deletion');for(const {suggestion:_0x24a768,meta:_0x415ef0}of _0x28de52){const _0x17c11f=this['_model']['createRange'](_0x1ebf8e,_0x2167eb);if(_0x415ef0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x415ef0['containsRangeInObject']&&!_0x415ef0['isInsideObject'])){if(_0x24a768['isMultiRange']){if(!qt(_0x24a768,_0xad4b40))continue;let _0x23399d=!0x0;for(const _0x137a5e of _0x24a768['getRanges']()){if(_0x137a5e['containsRange'](_0x17c11f,!0x0))return _0x24a768;_0x17c11f['containsRange'](_0x137a5e)||(_0x23399d=!0x1);}_0x23399d&&_0x24a768['discard']();}else{const _0x1f0d6f=_0x24a768['getFirstRange']();if(_0x1f0d6f['containsRange'](_0x17c11f,!0x0))return _0x24a768;if(!qt(_0x24a768,_0xad4b40)){_0x17c11f['containsRange'](_0x1f0d6f)?_0x24a768['removeMarkers']():_0x1f0d6f['containsPosition'](_0x1ebf8e)?_0x1ebf8e=_0x1f0d6f['end']:_0x1f0d6f['containsPosition'](_0x2167eb)&&(_0x2167eb=_0x1f0d6f['start']);continue;}_0x1ebf8e=_0x1ebf8e['isBefore'](_0x1f0d6f['start'])?_0x1ebf8e:_0x1f0d6f['start'],_0x2167eb=_0x2167eb['isAfter'](_0x1f0d6f['end'])?_0x2167eb:_0x1f0d6f['end'],_0xad4b40=Object['assign']({},_0x24a768['attributes']),_0x20c854?_0x1f0d6f['start']['isBefore'](_0x20c854['getFirstRange']()['start'])?(_0x20c854['removeMarkers'](),_0x20c854=_0x24a768):_0x24a768['removeMarkers']():_0x20c854=_0x24a768;}}}if(_0x20c854)return this['_setSuggestionRange'](_0x20c854,this['_model']['createRange'](_0x1ebf8e,_0x2167eb)),_0x20c854;{const _0x485d38=_0x447718(),_0x2270ae=this['_model']['createRange'](_0x1ebf8e,_0x2167eb),_0x2f7621=_0x459e9b['id'],_0x44c64b=_0x38aade?'deletion:'+_0x38aade:'deletion',_0x25122c=this['_setSuggestionData']({'id':_0x485d38,'type':_0x44c64b,'createdAt':new Date(),'authorId':_0x2f7621,'attributes':_0xad4b40});return this['_addSuggestionMarker'](_0x44c64b,_0x485d38,_0x2f7621,_0x2270ae),_0x25122c;}}['markMultiRangeDeletion'](_0x219745,_0x48e927='multi',_0x4bf759={}){const _0x1ae8ca=this['editor']['plugins']['get']('Users')['me'],_0x30201c=_0x219745['map'](_0x39f4b7=>new _0x29d231(_0x39f4b7['start'],_0x39f4b7['end'])),_0x17386e=new Set();for(const {suggestion:_0x24e580,meta:_0x363033}of this['_findSuggestions'](_0x30201c,'insertion'))_0x363033['isOwn']&&!_0x363033['isNextTo']&&_0x17386e['add'](_0x24e580);for(const _0x79110d of _0x17386e)if(_0x79110d['isMultiRange']){const _0x1b4229=_0x79110d['getRanges']();(!_0x79110d['attributes']||!_0x79110d['attributes']['skipNestingCheck'])&&(_0x1b4229['every'](_0x107e21=>_0x30201c['some'](_0x15a2a3=>_0x15a2a3['containsRange'](_0x107e21,!0x0)))&&_0x79110d['discard']());if(_0x30201c['every'](_0x3292a0=>_0x1b4229['some'](_0x34e48e=>_0x34e48e['containsRange'](_0x3292a0,!0x0)))){const _0x4b37bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48e927,'accept');return this['forceDefaultExecution'](()=>_0x4b37bc(_0x219745,null,_0x4bf759)),null;}}else{const _0xcc3524=_0x79110d['getFirstRange']();_0x30201c['some'](_0x2cfd2d=>_0x2cfd2d['containsRange'](_0xcc3524,!0x0))&&_0x79110d['discard']();if(_0x30201c['every'](_0x51da0f=>_0xcc3524['containsRange'](_0x51da0f,!0x0))){const _0xf239d3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48e927,'accept');return this['forceDefaultExecution'](()=>_0xf239d3(_0x30201c,null,_0x4bf759)),null;}}const _0x13d33c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48e927,'join');let _0x1a202f=null;for(const _0x5070b0 of this['getSuggestions']())if(_0x5070b0['author']['id']==_0x1ae8ca['id']&&_0x5070b0['isInContent']&&'deletion'==_0x5070b0['type']&&_0x5070b0['subType']==_0x48e927&&qt(_0x5070b0,_0x4bf759)&&(_0x13d33c(_0x5070b0['getRanges'](),_0x30201c)||_0x13d33c(_0x30201c,_0x5070b0['getRanges']()))){if(_0x1a202f){if(_0x5070b0['commentThread']&&_0x5070b0['commentThread']['length'])continue;for(const _0x52b733 of _0x5070b0['getRanges']())_0x1a202f['isIntersectingWithRange'](_0x52b733)||_0x1a202f['addRange'](_0x52b733);_0x5070b0['removeMarkers']();}else{_0x1a202f=_0x5070b0;for(const _0x1fe7c1 of _0x30201c)_0x5070b0['isIntersectingWithRange'](_0x1fe7c1)||_0x5070b0['addRange'](_0x1fe7c1);}}if(_0x1a202f)return _0x1a202f;_0x17386e['clear']();for(const {suggestion:_0x44a0c1,meta:_0x424cdc}of this['_findSuggestions'](_0x30201c,'deletion'))_0x424cdc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x424cdc['containsRangeInObject']&&!_0x424cdc['isInsideObject'])&&qt(_0x44a0c1,_0x4bf759)&&_0x17386e['add'](_0x44a0c1);for(const _0x511e18 of _0x17386e){const _0x53d429=_0x511e18['getRanges']();if(!_0x4bf759||!_0x4bf759['skipNestingCheck']){if(_0x30201c['every'](_0x44aa69=>_0x53d429['some'](_0x37a55c=>_0x37a55c['containsRange'](_0x44aa69,!0x0))))return _0x511e18;}(!_0x511e18['attributes']||!_0x511e18['attributes']['skipNestingCheck'])&&(_0x53d429['every'](_0x22459d=>_0x30201c['some'](_0x162bfb=>_0x162bfb['containsRange'](_0x22459d,!0x0)))&&_0x511e18['discard']());}const _0x812120=_0x447718(),_0x30ced8=_0x1ae8ca['id'],_0x28dac7='deletion:'+_0x48e927,_0x338fac=this['_setSuggestionData']({'id':_0x812120,'type':_0x28dac7,'createdAt':new Date(),'authorId':_0x30ced8,'attributes':_0x4bf759});for(const _0x2f9a85 of _0x30201c)_0x2f9a85['detach'](),_0x2f9a85['isCollapsed']||'$graveyard'==_0x2f9a85['root']['rootName']||this['_addSuggestionMarker'](_0x28dac7,_0x812120,_0x30ced8,_0x2f9a85,u['getMultiRangeId']());return _0x338fac;}['markAttributeChange'](_0xf903df,_0x20afd4,_0x421be8,_0x1b0abd,_0x462ef3){if(_0xf903df['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x285fb7=this['editor']['plugins']['get']('Users')['me']['id'],_0x306918=Array['from'](this['_suggestions']['values']())['filter'](_0x257cd5=>'attribute'==_0x257cd5['type']&&_0x257cd5['data']['key']==_0x20afd4&&_0x257cd5['isIntersectingWithRange'](_0xf903df));if('default'===this['_trackFormatChanges']){const _0x57b944=this['_findSuggestions'](_0xf903df,'insertion')['filter'](({meta:_0x5edde1})=>_0x5edde1['isOwn']&&!_0x5edde1['isInsideObject']&&!_0x5edde1['isNextTo'])['map'](({suggestion:_0x1a308b})=>_0x1a308b);_0x306918['unshift'](..._0x57b944);}const _0x19bfa6=new Map([[_0xf903df,_0x421be8]]);for(const _0x3ffe4f of _0x306918){const _0x5565f6='attribute'==_0x3ffe4f['type']?_0x3ffe4f['data']['oldValue']:void 0x0,_0x3b46dc=_0x3ffe4f['getFirstRange'](),_0x27af53=Array['from'](_0x19bfa6['keys']())['find'](_0x50ed9f=>_0x50ed9f['isIntersecting'](_0x3b46dc));if(!_0x27af53)continue;const _0x11d76c=_0x27af53['getDifference'](_0x3b46dc);this['_isBlockAttribute'](_0x20afd4)&&'insertion'==_0x3ffe4f['type']&&0x0!=_0x11d76c['length']||(_0x19bfa6['delete'](_0x27af53),_0x11d76c['forEach'](_0x3ab77c=>{_0x19bfa6['set'](_0x3ab77c,_0x421be8);}),'insertion'!=_0x3ffe4f['type']&&_0x5565f6!=_0x1b0abd&&_0x19bfa6['set'](_0x27af53['getIntersection'](_0x3b46dc),_0x5565f6));}const _0x203203=[];for(const [_0x2b5ba9,_0x27b691]of _0x19bfa6){const _0x5ea62a=_0x447718(),_0x31783f={'key':_0x20afd4,'oldValue':_0x27b691,'newValue':_0x1b0abd};_0x20afd4['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':_0x20afd4});const _0x16ee5d=('attribute:'+(_0x20afd4+'|'+Gt({'newValue':_0x1b0abd})))['substring'](0x0,0x3c),_0x5ade96=this['_setSuggestionData']({'id':_0x5ea62a,'type':_0x16ee5d,'data':_0x31783f,'createdAt':new Date(),'authorId':_0x285fb7,'attributes':_0x462ef3});_0x203203['push'](_0x5ade96),this['_addSuggestionMarker'](_0x16ee5d,_0x5ea62a,_0x285fb7,_0x2b5ba9);}return _0x203203;}['enableDefaultAttributesIntegration'](_0x275562){this['enableCommand'](_0x275562,(_0x47123d,..._0xaae36b)=>{this['_recordAttributeChanges'](()=>{_0x47123d(..._0xaae36b);});});}['registerBlockAttribute'](_0x57363b){this['_blockAttributeKeys']['add'](_0x57363b);}['registerInlineAttribute'](_0x3110da){this['_inlineAttributeKeys']['add'](_0x3110da);}['_getAttributeKey'](_0x2e3a08){return'attribute'==_0x2e3a08['type']?_0x2e3a08['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x12af0d,_0xd90e5a){const _0x44eb42=_0x12af0d['getFirstMarker']();this['_model']['change'](_0x9238db=>{_0x9238db['updateMarker'](_0x44eb42,{'range':_0xd90e5a});});}['_addThreadToSuggestion'](_0x3645b9){const _0x191b5a=_0x3645b9['id'],_0x56375a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x191b5a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x56375a,'threadId':_0x191b5a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e60e3=this['_commentsRepository']['getCommentThread'](_0x191b5a);_0x1e60e3['unbind']('isRemovable'),_0x1e60e3['isRemovable']=!0x1,_0x3645b9['commentThread']=_0x1e60e3;}['_checkSuggestionCorrectness'](_0x58be45,_0x3af945,_0x1fbfeb,_0x32b74b){if(_0x58be45['type']!=_0x3af945||_0x58be45['subType']!=_0x1fbfeb||_0x58be45['creator']['id']!=_0x32b74b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ace68('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4832e4,_0x5a159a){const _0x275eaa=_0x4832e4['getFirstRange']();if(_0x5a159a['isEqual'](_0x275eaa))_0x4832e4['removeMarkers']();else{if(_0x275eaa['containsRange'](_0x5a159a)){const _0x1fa786=this['_model']['createPositionAt'](_0x5a159a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4832e4,this['_model']['createRange'](_0x275eaa['start'],_0x1fa786));const _0x106c0d=_0x447718(),_0x13b13d=_0x4832e4['creator']['id'],_0x55b470=_0x4832e4['type']+':'+_0x4832e4['subType'];this['_setSuggestionData']({'id':_0x106c0d,'type':_0x55b470,'createdAt':new Date(),'authorId':_0x13b13d,'data':_0x4832e4['data'],'attributes':_0x4832e4['attributes']});const _0x1305d2=this['_model']['createPositionAt'](_0x5a159a['end']['parent'],'after'),_0x4628ad=this['_model']['createRange'](_0x1305d2,_0x275eaa['end']);this['_addSuggestionMarker'](_0x55b470,_0x106c0d,_0x13b13d,_0x4628ad);}else{if(_0x275eaa['containsPosition'](_0x5a159a['start'])){const _0x268ce0=this['_model']['createPositionAt'](_0x5a159a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4832e4,this['_model']['createRange'](_0x275eaa['start'],_0x268ce0));}else{const _0x2d041a=this['_model']['createPositionAt'](_0x5a159a['end']['parent'],'after');this['_setSuggestionRange'](_0x4832e4,this['_model']['createRange'](_0x2d041a,_0x275eaa['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x139976){for(const {suggestion:_0x5a43b5,meta:_0x4cbe58}of this['_findSuggestions'](_0x139976,'insertion')){if(!_0x4cbe58['isOwn'])continue;const _0x42afad=_0x5a43b5['getRanges']();for(const _0x160963 of _0x42afad)if(!_0x139976['getDifference'](_0x160963)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x53aa58){const _0x46f179=this['editor']['plugins']['get']('Users')['getUser'](_0x53aa58);if(!_0x46f179)throw new _0x3ace68('track-changes-user-not-found',this);return _0x46f179;}['_getExternalAuthor'](_0x461bee){const _0x2bad0d=this['editor']['plugins']['get']('Users'),_0x343c5f=_0x17a5f5('external:'+_0x461bee),_0x3cf3a3=_0x2bad0d['getUser'](_0x343c5f);return _0x3cf3a3||_0x2bad0d['addUser']({'id':_0x343c5f,'name':_0x461bee});}['_createSuggestion'](_0x9aac1d,_0x4c5c2e,_0x5b843b,_0x53d83d,_0x3a5248){const _0x4fe4bb=this['_getAuthorFromId'](_0x53d83d),_0x4cac80=this['_suggestionFactory']['buildSuggestion'](_0x9aac1d,_0x4c5c2e,_0x5b843b,_0x4fe4bb,_0x3a5248,_0x2cf568=>{this['_updateSuggestionData'](_0x5b843b,{'attributes':_0x2cf568});const _0x3c60ae=this['getSuggestion'](_0x5b843b);this['_joinWithAdjacentSuggestions'](new Set([_0x3c60ae])),this['_refreshSuggestionsChain'](new Set([_0x3c60ae]));});return this['listenTo'](_0x4cac80,'accept',()=>{this['_updateSuggestionData'](_0x5b843b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4cac80,'discard',()=>{this['_updateSuggestionData'](_0x5b843b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b843b,_0x4cac80),this['_suggestionState']['set'](_0x4cac80,'notReady'),_0x4cac80;}['_splitMarkerName'](_0x2ce346){const _0x232844=_0x2ce346['split'](':');return{'group':_0x232844[0x0],'type':_0x232844[0x1],'subType':_0x232844['length']>=0x5?_0x232844[0x2]:null,'id':_0x232844['length']<0x5?_0x232844[0x2]:_0x232844[0x3],'authorId':_0x232844['length']<0x5?_0x232844[0x3]:_0x232844[0x4],'markerCount':0x6==_0x232844['length']?_0x232844[0x5]:null};}['_breakSuggestionMarker'](_0x360ee2,_0x2f53c4,_0x233329){const _0x45dec3=_0x360ee2['getFirstRange'](),_0x14bac3=_0x45dec3['start'],_0x510309=_0x45dec3['end'];this['_setSuggestionRange'](_0x360ee2,this['_model']['createRange'](_0x14bac3,_0x2f53c4));const _0x497b1b=_0x447718(),_0x540c79=_0x360ee2['creator']['id'],_0x11b6c2=_0x360ee2['type']+(_0x360ee2['subType']?':'+_0x360ee2['subType']:'');this['_setSuggestionData']({'id':_0x497b1b,'type':_0x11b6c2,'createdAt':new Date(),'authorId':_0x540c79,'originalSuggestionId':_0x360ee2['id'],'attributes':_0x360ee2['attributes'],'data':_0x360ee2['data']});const _0x3f4892=this['_getAttributeKey'](_0x360ee2);('formatBlock'==_0x360ee2['type']||_0x3f4892&&this['_isBlockAttribute'](_0x3f4892))&&(_0x233329=this['_model']['createPositionBefore'](_0x233329['parent'])),this['_addSuggestionMarker'](_0x11b6c2,_0x497b1b,_0x540c79,this['_model']['createRange'](_0x233329,_0x510309));}['_findSuggestions'](_0x16690e,_0x5aaab9=null){const _0x3f33ce=[],_0x4dce79=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x16690e)||(_0x16690e=[_0x16690e]);for(const _0x4b3200 of this['getSuggestions']()){if(!_0x4b3200['isInContent'])continue;if(_0x5aaab9&&_0x4b3200['type']!=_0x5aaab9)continue;let _0x595321=!0x1;for(const _0x333ec2 of _0x4b3200['getRanges']()){for(const _0x27fe63 of _0x16690e){const _0x16a4ea=_0x27fe63['start']['isEqual'](_0x333ec2['end'])||_0x27fe63['end']['isEqual'](_0x333ec2['start']);if(_0x16a4ea||_0x27fe63['getIntersection'](_0x333ec2)){const _0x2fdef2=_0x27fe63['containsRange'](_0x333ec2)&&Ot(this['_model']['schema'],_0x333ec2['start'],_0x27fe63),_0x9c9ed0=_0x333ec2['containsRange'](_0x27fe63)&&Ot(this['_model']['schema'],_0x27fe63['start'],_0x333ec2);_0x3f33ce['push']({'suggestion':_0x4b3200,'meta':{'isOwn':_0x4dce79==_0x4b3200['author'],'isNextTo':_0x16a4ea,'isInsideObject':_0x2fdef2,'containsRangeInObject':_0x9c9ed0}}),_0x595321=!0x0;break;}}if(_0x595321)break;}}return _0x3f33ce;}['_addSuggestionMarker'](_0x13107c,_0x33e7b2,_0x231587,_0x5ebc8e,_0xfa1857){this['_model']['change'](_0x4691ba=>{let _0x25f0e3='suggestion:'+_0x13107c+':'+_0x33e7b2+':'+_0x231587;_0xfa1857&&(_0x25f0e3=_0x25f0e3+':'+_0xfa1857),_0x4691ba['addMarker'](_0x25f0e3,{'range':_0x5ebc8e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5bd5aa){const _0x26b21e=_0x5bd5aa['previous'],_0x304d80=_0x5bd5aa['next'];_0x5bd5aa['previous']=null,_0x5bd5aa['next']=null,null!=_0x26b21e&&_0x26b21e['next']==_0x5bd5aa&&(_0x26b21e['next']=_0x304d80),null!=_0x304d80&&_0x304d80['previous']==_0x5bd5aa&&(_0x304d80['previous']=_0x26b21e),'ready'==this['_suggestionState']['get'](_0x5bd5aa)&&(this['_suggestionState']['set'](_0x5bd5aa,'removed'),this['fire']('suggestionUnloaded',_0x5bd5aa,_0x26b21e,_0x304d80));}['_setSuggestionData'](_0x1ea548){const _0x1a34fd=_0x1ea548['id'],_0x34a37e=this['addSuggestionData'](_0x1ea548);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x50f9ac=this['editor']['plugins']['get']('PendingActions'),_0x112081=_0x34a37e['hasComments'],_0x181167=_0x34a37e['subType']?_0x34a37e['type']+':'+_0x34a37e['subType']:_0x34a37e['type'],_0x3a50d2=this['editor']['locale'],_0x329b56=_0x50f9ac['add'](o(_0x3a50d2,'PENDING_ACTION_SUGGESTION')),_0x3364ef={'id':_0x1a34fd,'type':_0x181167,'hasComments':_0x112081,'data':_0x1ea548['data']||null,'originalSuggestionId':_0x1ea548['originalSuggestionId']||null,'attributes':_0x34a37e['attributes']};this['_adapter']['addSuggestion'](_0x3364ef)['then'](_0x11b30c=>{_0x34a37e['_saved']=!0x0,_0x50f9ac['remove'](_0x329b56),_0x11b30c&&_0x11b30c['createdAt']&&(this['_suggestions']['get'](_0x1a34fd)['createdAt']=_0x11b30c['createdAt']);})['catch'](_0x475067=>{throw _0x294284('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x34a37e['discard']();}),_0x34a37e['stopListening'](),this['_suggestions']['delete'](_0x34a37e['id']),this['_suggestionState']['delete'](_0x34a37e),_0x475067;});}return _0x34a37e;}['_isBlockAttribute'](_0x34b7c8){return this['_blockAttributeKeys']['has'](_0x34b7c8);}['_updateSuggestionData'](_0x4891d7,_0x3cc403){const _0xd19bd5=this['editor']['plugins']['get']('PendingActions'),_0xdb93b0=this['getSuggestion'](_0x4891d7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xdb93b0['_saved']){const _0x354403=_0xd19bd5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4891d7,_0x3cc403)['then'](()=>{_0xd19bd5['remove'](_0x354403);});}else _0xdb93b0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4891d7,_0x3cc403);});}}['_getSuggestionData'](_0x56ffc5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3ace68('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x56ffc5);}['_handleNewSuggestionMarker'](_0x465702){const {id:_0x33af27,type:_0x5a108,subType:_0x1d59c8,authorId:_0x42aa58}=this['_splitMarkerName'](_0x465702),_0x6d0844=this['_suggestions']['get'](_0x33af27)||this['_createSuggestion'](_0x5a108,_0x1d59c8,_0x33af27,_0x42aa58,{});switch(this['_checkSuggestionCorrectness'](_0x6d0844,_0x5a108,_0x1d59c8,_0x42aa58),this['_suggestionState']['get'](_0x6d0844)){case'notReady':this['_getSuggestionData'](_0x33af27)['then'](_0x5aa23b=>{let _0x5bb74a=Promise['resolve']();_0x5aa23b['hasComments']&&(_0x5bb74a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x33af27})),_0x5bb74a['then'](()=>{this['addSuggestionData'](_0x5aa23b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x6d0844,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x33af27,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x6d0844,'ready'),this['fire']('suggestionLoaded',_0x6d0844);break;case'ready':this['fire']('suggestionChanged',_0x6d0844);}return _0x6d0844['addMarkerName'](_0x465702),_0x6d0844;}['_refreshSuggestionsChain'](_0x5a3861){const _0x1fbd96=Array['from'](_0x5a3861),_0x1668c4=_0x1fbd96['filter'](_0x37cc38=>'attribute'==_0x37cc38['type']);this['_refreshAttributeSuggestionsChain'](_0x1668c4);const _0x5c0100=_0x1fbd96['filter'](_0x4c0a2c=>!_0x4c0a2c['isMultiRange']&&'attribute'!=_0x4c0a2c['type']),_0x5920dd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x599dd5=>!_0x599dd5['isMultiRange']&&'attribute'!=_0x599dd5['type']),_0x43e63c=_0x5920dd['filter'](_0x13d63d=>!_0x5a3861['has'](_0x13d63d)),_0x321599=new Map(_0x5920dd['map'](_0xe8e542=>[_0xe8e542,this['_suggestionFactory']['getSuggestionCallback'](_0xe8e542['type'],_0xe8e542['subType'],'chain')])),_0x395af7=new Map(_0x5920dd['map'](_0x589667=>[_0x589667,_0x589667['getFirstRange']()])),_0x2d3090=new Set(),_0xccafb7=new Set();for(let _0x8826d4=0x0;_0x8826d4<_0x5c0100['length'];_0x8826d4++)_0x1b5558(_0x5c0100[_0x8826d4],_0x5c0100,_0x8826d4+0x1);for(let _0x403522=0x0;_0x403522<_0x5c0100['length'];_0x403522++)_0x1b5558(_0x5c0100[_0x403522],_0x43e63c,0x0);const _0x3ea812=new Set();for(let _0x2bbffd=0x0;_0x2bbffd<_0x5c0100['length'];_0x2bbffd++){const _0x2cc8b7=_0x5c0100[_0x2bbffd];!_0xccafb7['has'](_0x2cc8b7)&&_0x2cc8b7['previous']&&(_0x3ea812['add'](_0x2cc8b7['previous']),_0x2cc8b7['previous']['next']===_0x2cc8b7&&(_0x2cc8b7['previous']['next']=null),_0x2cc8b7['previous']=null),!_0x2d3090['has'](_0x2cc8b7)&&_0x2cc8b7['next']&&(_0x3ea812['add'](_0x2cc8b7['next']),_0x2cc8b7['next']['previous']===_0x2cc8b7&&(_0x2cc8b7['next']['previous']=null),_0x2cc8b7['next']=null);}function _0x1b5558(_0x3d27bb,_0x82ab83,_0x162cdb){for(let _0x1e66c8=_0x162cdb;_0x1e66c8<_0x82ab83['length'];_0x1e66c8++){const _0x233dd8=_0x5e059e(_0x3d27bb,_0x82ab83[_0x1e66c8]);_0x233dd8&&(_0x233dd8[0x0]['next']=_0x233dd8[0x1],_0x233dd8[0x1]['previous']=_0x233dd8[0x0],_0x2d3090['add'](_0x233dd8[0x0]),_0xccafb7['add'](_0x233dd8[0x1]));}}function _0x5e059e(_0x3cc2fe,_0x11c870){if(_0x3cc2fe['author']['id']!==_0x11c870['author']['id'])return null;const _0xa637e5=_0x321599['get'](_0x3cc2fe)(_0x3cc2fe,_0x11c870,_0x395af7['get'](_0x3cc2fe),_0x395af7['get'](_0x11c870));if(!_0xa637e5)return null;return _0x321599['get'](_0x11c870)(_0x3cc2fe,_0x11c870,_0x395af7['get'](_0x3cc2fe),_0x395af7['get'](_0x11c870))?_0xa637e5[0x1]['commentThread']&&_0xa637e5[0x1]['commentThread']['length']?null:_0xa637e5:null;}_0x3ea812['size']&&this['_refreshSuggestionsChain'](_0x3ea812);}['_refreshAttributeSuggestionsChain'](_0x399f1d){if(0x0==_0x399f1d['length'])return;const _0x2f59b5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x134e4c=>'attribute'==_0x134e4c['type']&&_0x134e4c['_isDataLoaded']),_0x4f9ca2=[],_0x3c47be=new Map();for(const _0x458811 of _0x2f59b5){const _0x432f5e=_0x17a5f5(_0x458811['attributes']);_0x3c47be['has'](_0x432f5e)||(_0x3c47be['set'](_0x432f5e,_0x4f9ca2['length']),_0x4f9ca2['push']([]));const _0x5d339a=_0x3c47be['get'](_0x432f5e);_0x4f9ca2[_0x5d339a]['push'](_0x458811);}!(function(){_0x4f9ca2['sort']((_0x34d78d,_0x5db989)=>{const _0x17e540=_0x34d78d[0x0]['createdAt'],_0x9cb02=_0x5db989[0x0]['createdAt'];return _0x17e540==_0x9cb02?_0x34d78d[0x0]['attributes']['groupId']<_0x5db989[0x0]['attributes']['groupId']?-0x1:0x1:_0x17e540<_0x9cb02?-0x1:0x1;});for(const _0xaafdcf of _0x4f9ca2)_0xaafdcf['sort']((_0xff253e,_0x32ece5)=>_0xff253e['id']<_0x32ece5['id']?-0x1:0x1);}());for(let _0x1bb88e=0x0;_0x1bb88e<_0x4f9ca2['length'];_0x1bb88e++){if(0x0==_0x4f9ca2[_0x1bb88e]['length'])continue;const _0x51e642=[];for(let _0xddaddd=_0x1bb88e+0x1;_0xddaddd<_0x4f9ca2['length'];_0xddaddd++)0x0!=_0x4f9ca2[_0xddaddd]['length']&&_0x365cbd(_0x4f9ca2[_0x1bb88e],_0x4f9ca2[_0xddaddd])&&_0x51e642['push'](_0xddaddd);for(const _0x4c873d of _0x51e642)_0x4f9ca2[_0x1bb88e]=_0x4f9ca2[_0x1bb88e]['concat'](_0x4f9ca2[_0x4c873d]),_0x4f9ca2[_0x4c873d]=[];}for(const _0x20a9fd of _0x4f9ca2)for(let _0x13884f=0x0;_0x13884f<_0x20a9fd['length'];_0x13884f++){const _0x16a700=_0x20a9fd[_0x13884f+0x1]||null;_0x20a9fd[_0x13884f]['next']!==_0x16a700&&(_0x20a9fd[_0x13884f]['next']=_0x16a700);}for(const _0x5d9501 of _0x4f9ca2)for(let _0x11eade=0x0;_0x11eade<_0x5d9501['length'];_0x11eade++){const _0x9d1e62=_0x5d9501[_0x11eade-0x1]||null;_0x5d9501[_0x11eade]['previous']!==_0x9d1e62&&(_0x5d9501[_0x11eade]['previous']=_0x9d1e62);}function _0x365cbd(_0x282da4,_0x94d022){if(_0x282da4[0x0]['attributes']['groupId']!==_0x94d022[0x0]['attributes']['groupId']&&_0x282da4[0x0]['author']!==_0x94d022[0x0]['author'])return!0x1;if(!function(_0x38d1cd,_0x33adba){if(!_0x38d1cd['hasComments']&&!_0x33adba['hasComments'])return!0x0;if(_0x38d1cd['hasComments']&&_0x33adba['hasComments'])return!0x1;if(_0x38d1cd['hasComments']&&_0x33adba['createdAt']<_0x38d1cd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x33adba['hasComments']&&_0x38d1cd['createdAt']<_0x33adba['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x282da4[0x0],_0x94d022[0x0]))return!0x1;const _0x3a43a9=Tt(_0x282da4[0x0]['attributes'],'groupId'),_0x1cca9f=Tt(_0x94d022[0x0]['attributes'],'groupId');if(!_0x536f58(_0x3a43a9,_0x1cca9f))return!0x1;return!!_0x282da4['every'](_0x5ebb8d=>_0x94d022['some'](_0x27d2ea=>_0x5ebb8d['getFirstRange']()['isEqual'](_0x27d2ea['getFirstRange']())))&&_0x94d022['every'](_0x22021e=>_0x282da4['some'](_0x423bf2=>_0x22021e['getFirstRange']()['isEqual'](_0x423bf2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x382bdc){const _0xa3b9cd=Array['from'](_0x382bdc),_0x479285=this['getSuggestions']({'skipNotAttached':!0x0}),_0x189411=_0x479285['filter'](_0x187d90=>!_0x382bdc['has'](_0x187d90)),_0x4cf420=new Map(_0xa3b9cd['map'](_0x4af6b6=>[_0x4af6b6,this['_suggestionFactory']['getSuggestionCallback'](_0x4af6b6['type'],_0x4af6b6['subType'],'join')])),_0x5191c7=new Map(_0x479285['map'](_0x1b100c=>[_0x1b100c,_0x1b100c['getRanges']()]));for(let _0x340da3=0x0;_0x340da3<_0xa3b9cd['length'];_0x340da3++){if(_0x546316(this,_0xa3b9cd[_0x340da3],_0xa3b9cd,_0x340da3+0x1))return!0x0;}for(let _0x53f41a=0x0;_0x53f41a<_0xa3b9cd['length'];_0x53f41a++){if(_0x546316(this,_0xa3b9cd[_0x53f41a],_0x189411,0x0))return!0x0;}return!0x1;function _0x546316(_0x2cf89b,_0xd1d00c,_0x107e4d,_0x16e878){for(let _0x1e4f6a=_0x16e878;_0x1e4f6a<_0x107e4d['length'];_0x1e4f6a++){const _0x4148c8=_0x107e4d[_0x1e4f6a];if(_0x4148c8['type']!==_0xd1d00c['type']||_0x4148c8['author']['id']!==_0xd1d00c['author']['id']||_0x4148c8['subType']!==_0xd1d00c['subType'])continue;if(!Jt(_0xd1d00c,_0x4148c8))continue;if('attribute'==_0xd1d00c['type']&&_0xd1d00c['data']['oldValue']!=_0x4148c8['data']['oldValue'])continue;if('attribute'==_0xd1d00c['type']&&_0x2cf89b['_isBlockAttribute'](_0xd1d00c['data']['key']))continue;if('formatBlock'==_0xd1d00c['type']){const _0xb41106=_0x2cf89b['editor']['model'],_0x3c49e5=_0xd1d00c['getContainedElement']();if(_0x3c49e5&&(_0xb41106['schema']['isObject'](_0x3c49e5)||_0xb41106['schema']['isLimit'](_0x3c49e5)))continue;}const _0x3951d1=_0x4cf420['get'](_0xd1d00c),_0x269dac=_0x5191c7['get'](_0xd1d00c),_0x5e3d90=_0x5191c7['get'](_0x4148c8),_0x1705ad=_0xd1d00c['commentThread']&&_0xd1d00c['commentThread']['length'],_0x5df09f=_0x4148c8['commentThread']&&_0x4148c8['commentThread']['length'];if(!_0x1705ad&&_0x3951d1(_0x5e3d90,_0x269dac))return _0x2cf89b['_joinSuggestions'](_0x4148c8,_0xd1d00c),_0x5191c7['delete'](_0xd1d00c),!0x0;if(!_0x5df09f&&_0x3951d1(_0x269dac,_0x5e3d90))return _0x2cf89b['_joinSuggestions'](_0xd1d00c,_0x4148c8),_0x5191c7['delete'](_0x4148c8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x897f0e,_0x3cbb77){if(_0x897f0e['isMultiRange']){for(const _0x38491a of _0x3cbb77['getRanges']())_0x897f0e['addRange'](_0x38491a);}else{const _0x381377=_0x3cbb77['getFirstRange']()['end'];this['_setSuggestionRange'](_0x897f0e,this['_model']['createRange'](_0x897f0e['getFirstRange']()['start'],_0x381377));}_0x3cbb77['removeMarkers']();}['_getMarkerAnnouncementText'](_0x15a039,_0x546389,_0x2eea0c){const _0x2d31a9=_0x15a039['startsWith']('format')||_0x15a039['startsWith']('attribute')?'FORMATTING':_0x15a039['toUpperCase']();return o(this['editor']['locale'],_0x546389+'_'+_0x2d31a9+'_SUGGESTION_ANNOUNCEMENT',_0x2eea0c);}['_initAriaMarkerChangeAnnouncements'](){const _0x4eae4e=this['editor'];if(!_0x4eae4e['ui'])return;const {ariaLiveAnnouncer:_0x3bce17}=_0x4eae4e['ui'];_0x3a0c6f(this['_model'],({left:_0x32ac4a,entered:_0x5b9908})=>{for(const _0x1fc4b2 of _0x32ac4a){const {group:_0x2fe3d5,type:_0x599113}=this['_splitMarkerName'](_0x1fc4b2['name']);if('suggestion'===_0x2fe3d5){_0x3bce17['announce'](this['_getMarkerAnnouncementText'](_0x599113,'LEAVE'));break;}}for(const _0x3e2d4f of _0x5b9908){const {group:_0x2d8858,type:_0x21f5b6}=this['_splitMarkerName'](_0x3e2d4f['name']);if('suggestion'===_0x2d8858){_0x3bce17['announce'](this['_getMarkerAnnouncementText'](_0x21f5b6,'ENTER',_0x1d2559(_0xbd3f15)));break;}}});}['_processAttributeChanges'](_0x316669){if(this['_recordAttributeSuggestions'])return!0x1;const _0x41e0ce=this['editor'],_0x41a74d=_0x41e0ce['model']['document']['differ']['getChanges']();if(0x0==_0x41a74d['length'])return!0x1;const _0x3a1d23=[],_0x21ade2=_0x41a74d['filter'](_0x1383d8=>'attribute'==_0x1383d8['type']),_0x38a1c4=_0x41a74d['filter'](_0x1e84cf=>'insert'==_0x1e84cf['type']&&'$text'!=_0x1e84cf['name']),_0x31411e=_0x41a74d['filter'](_0x1fe5a2=>'remove'==_0x1fe5a2['type']&&'$text'!=_0x1fe5a2['name']);for(const _0x3a1be5 of _0x21ade2)_0x3a1d23['push']({'key':_0x3a1be5['attributeKey'],'newValue':_0x3a1be5['attributeNewValue'],'oldValue':_0x3a1be5['attributeOldValue'],'range':Pt(_0x3a1be5['range'],_0x41e0ce['model'])});for(const _0x2ab16f of _0x38a1c4){const _0x1f8330=_0x31411e['find'](_0x13c3e6=>_0x13c3e6['position']['isEqual'](_0x2ab16f['position']));_0x1f8330&&_0x3a1d23['push']({'key':m,'newValue':_0x2ab16f['name'],'oldValue':_0x1f8330['name'],'range':_0x41e0ce['model']['createRangeOn'](_0x2ab16f['position']['nodeAfter'])});}return 0x0!=_0x3a1d23['length']&&this['_reduceExistingSuggestions'](_0x316669,_0x3a1d23);}['_processAttributeSuggestions'](_0x15fd8e){let _0x39b314=!0x1;const _0x4098af=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xc830b0=>_0xc830b0['data']['newRange']&&_0xc830b0['name']['startsWith']('suggestion:attribute:'));for(const _0x36e446 of _0x4098af){const {subType:_0x1b28d8,id:_0x1a748e}=this['_splitMarkerName'](_0x36e446['name']),_0x3e7c8c=_0x1b28d8['split']('|')[0x0];for(const _0x1779eb of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1779eb['id']!=_0x1a748e&&'attribute'==_0x1779eb['type']&&_0x1779eb['data']&&_0x1779eb['data']['key']==_0x3e7c8c&&_0x1779eb['getFirstRange']()['isIntersecting'](_0x36e446['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1779eb,_0x36e446['data']['newRange'],_0x15fd8e),_0x39b314=!0x0);}return _0x39b314;}['_recordAttributeChanges'](_0x5b1f2e){this['_recordAttributeSuggestions']=!0x0,_0x5b1f2e();}['_isRegisteredAttribute'](_0x2b50a5){const _0x4eab46=this['_isBlockAttribute'](_0x2b50a5),_0x2e4a63=this['_inlineAttributeKeys']['has'](_0x2b50a5);return _0x4eab46||_0x2e4a63;}['_reduceExistingSuggestions'](_0x5dd71e,_0x240172){if(0x0==_0x240172['length'])return!0x1;let _0x4bccbf=!0x1;for(const _0xd93315 of _0x240172){const _0x22f1fe=this['_findSuggestions'](_0xd93315['range'],'attribute')['filter'](_0x30e729=>!_0x30e729['meta']['isNextTo'])['map'](_0x42f720=>_0x42f720['suggestion']),_0x3bcfbf=_0x17a5f5({'newValue':_0xd93315['newValue']});_0x22f1fe['filter'](_0x50d65a=>{const [_0x5de4e5,_0x541add]=_0x50d65a['subType']['split']('|');return _0x5de4e5==_0xd93315['key']&&_0x541add!=_0x3bcfbf;})['forEach'](_0x476c9f=>{this['_reduceSuggestionAttributeRange'](_0x476c9f,_0xd93315['range'],_0x5dd71e),_0x4bccbf=!0x0;});}return _0x4bccbf;}['_reduceSuggestionAttributeRange'](_0x42cc96,_0x54a881,_0x1953e5){const _0x1f2d09=_0x42cc96['getFirstRange']()['getDifference'](_0x54a881);0x0!==_0x1f2d09['length']?0x1!==_0x1f2d09['length']?this['_breakSuggestionMarker'](_0x42cc96,_0x54a881['start'],_0x54a881['end']):this['_setSuggestionRange'](_0x42cc96,_0x1f2d09[0x0]):_0x1953e5['removeMarker'](_0x42cc96['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x21fdd2){this['_editor']=_0x21fdd2,this['_model']=_0x21fdd2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4f3267,_0x11b71b,_0x19848e,_0x22c83d,_0x3a6032,_0x21109b){return new u(this['_model'],{'type':_0x4f3267,'subType':_0x11b71b,'id':_0x19848e,'author':_0x22c83d,'creator':_0x22c83d,'attributes':_0x3a6032,'onAttributesChange':_0x21109b,'onAccept':(..._0x4ba145)=>this['getSuggestionCallback'](_0x4f3267,_0x11b71b,'accept')(..._0x4ba145),'onDiscard':(..._0x26a781)=>this['getSuggestionCallback'](_0x4f3267,_0x11b71b,'discard')(..._0x26a781)});}['registerCustomCallback'](_0x1e80f2,_0x59e3c7,_0x240432,_0x47346e){const _0x5cf35d=_0x1e80f2+':'+_0x59e3c7+':'+_0x240432;this['_customCallbacks']['set'](_0x5cf35d,_0x47346e);}['getSuggestionCallback'](_0x465c13,_0x35a044,_0x1bfb96){const _0x286e10=_0x465c13+':'+_0x35a044+':'+_0x1bfb96;return this['_customCallbacks']['get'](_0x286e10)||this['_defaultCallbacks']['get'](_0x465c13+':'+_0x1bfb96);}['_registerDefaultCallbacks'](){const _0x138549=()=>!0x1,_0x1d8bc5=_0x384f80=>{_0x384f80['sort']((_0x50d35e,_0x2d8c01)=>_0x50d35e['start']['isBefore'](_0x2d8c01['start'])?0x1:-0x1),this['_model']['change'](_0x5e3737=>{for(const _0x432f9b of _0x384f80){let _0x17a981;_0x17a981=_0x432f9b['end']['isAtEnd']&&_0x432f9b['end']['parent']==_0x432f9b['start']['nodeAfter']?_0x5e3737['createSelection'](_0x432f9b['start']['nodeAfter'],'on'):_0x5e3737['createSelection'](_0x432f9b),this['_model']['deleteContent'](_0x17a981,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c553c=(_0x53c8f3,_0x2835fb)=>{_0x2835fb&&this['_model']['change'](_0x551fb7=>{const {commandName:_0x238521,commandParams:_0x254c2a=[]}=_0x2835fb,_0x49ec44=_0x53c8f3['map'](_0x5c0c92=>(Vt(_0x5c0c92)&&(_0x5c0c92=this['_model']['createRange'](_0x5c0c92['end'])),_0x5c0c92))['filter'](_0x3c972d=>'$graveyard'!==_0x3c972d['root']['rootName']);if(_0x49ec44['length']<0x1)return;const _0x392fb4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5454dd=>_0x29d231['fromRange'](_0x5454dd));_0x551fb7['setSelection'](_0x49ec44);for(const _0x159d2b of this['_editor']['commands']['commands']())_0x159d2b['refresh']();_0x254c2a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x238521,..._0x254c2a);const _0x2eedb7=_0x392fb4['filter'](_0x224a24=>'$graveyard'!=_0x224a24['root']['rootName']);_0x2eedb7['length']>0x0&&_0x551fb7['setSelection'](_0x2eedb7);for(const _0x49e287 of _0x392fb4)_0x49e287['detach']();});},_0x3d555d=(_0x31b2fb,_0x59d7df)=>0x1==_0x31b2fb['length']&&0x1==_0x59d7df['length']&&_0x31b2fb[0x0]['end']['isEqual'](_0x59d7df[0x0]['start']),_0x335592=(_0x442ea4,_0x16a73e,_0x3ba316,_0xd5b203)=>Ht(_0x442ea4,_0x16a73e,_0x3ba316,_0xd5b203,this['_model'])?[_0x442ea4,_0x16a73e]:Ht(_0x16a73e,_0x442ea4,_0xd5b203,_0x3ba316,this['_model'])?[_0x16a73e,_0x442ea4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x138549),this['_defaultCallbacks']['set']('insertion:discard',_0x1d8bc5),this['_defaultCallbacks']['set']('insertion:join',_0x3d555d),this['_defaultCallbacks']['set']('insertion:chain',_0x335592),this['_defaultCallbacks']['set']('deletion:accept',_0x1d8bc5),this['_defaultCallbacks']['set']('deletion:discard',_0x138549),this['_defaultCallbacks']['set']('deletion:join',_0x3d555d),this['_defaultCallbacks']['set']('deletion:chain',_0x335592),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c553c),this['_defaultCallbacks']['set']('formatInline:discard',_0x138549),this['_defaultCallbacks']['set']('formatInline:join',_0x3d555d),this['_defaultCallbacks']['set']('formatInline:chain',_0x138549),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c553c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x138549),this['_defaultCallbacks']['set']('formatBlock:join',_0x3d555d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x138549),this['_defaultCallbacks']['set']('attribute:accept',_0x138549),this['_defaultCallbacks']['set']('attribute:discard',(_0x32b3d0,_0x40cc0e)=>{if(!_0x40cc0e)return;const _0x3e8a2c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1a4713=>{if(_0x40cc0e['key']==m)for(const _0x9f2b42 of _0x32b3d0){const _0x3a2992=_0x9f2b42['start']['nodeAfter'],_0x4ff58f=_0x40cc0e['oldValue'];_0x1a4713['rename'](_0x3a2992,_0x4ff58f);}else{if(_0x3e8a2c['_isBlockAttribute'](_0x40cc0e['key'])){for(const _0x4b06a5 of _0x32b3d0)void 0x0!==_0x40cc0e['oldValue']?_0x1a4713['setAttribute'](_0x40cc0e['key'],_0x40cc0e['oldValue'],_0x4b06a5['start']['nodeAfter']):_0x1a4713['removeAttribute'](_0x40cc0e['key'],_0x4b06a5['start']['nodeAfter']);}else{for(const _0x376e7c of _0x32b3d0)_0x40cc0e['oldValue']?_0x1a4713['setAttribute'](_0x40cc0e['key'],_0x40cc0e['oldValue'],_0x376e7c):_0x1a4713['removeAttribute'](_0x40cc0e['key'],_0x376e7c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3d555d);}}function Ot(_0x62ea72,_0x4f43a8,_0x2f7cb4){for(const _0x4fe3f1 of _0x4f43a8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4fe3f1['root']==_0x4fe3f1)return!0x1;if(!_0x2f7cb4['containsItem'](_0x4fe3f1))return!0x1;if(_0x62ea72['isObject'](_0x4fe3f1)||_0x62ea72['isLimit'](_0x4fe3f1))return!0x0;}return!0x1;}function Vt(_0x5d751c){return _0x5d751c['end']['parent']==_0x5d751c['start']['nodeAfter']&&_0x5d751c['end']['isAtStart'];}function Ut(_0x4ba43b,_0x80ec50,_0x237aea,_0x2e1a9e){const _0x1a763e=_0x3ae8c3=>!_0x3ae8c3['item']['is']('$textProxy')&&!_0x2e1a9e['isObject'](_0x3ae8c3['item']),_0x92792=_0x4ba43b['start']['getLastMatchingPosition'](_0x1a763e),_0x361ba4=_0x4ba43b['end']['getLastMatchingPosition'](_0x1a763e,{'direction':'backward'});return(!_0x4ba43b['start']['isEqual'](_0x92792)||!_0x4ba43b['end']['isEqual'](_0x361ba4))&&(_0x92792['isBefore'](_0x361ba4)?_0x237aea['updateMarker'](_0x80ec50,{'range':_0x237aea['createRange'](_0x92792,_0x361ba4)}):_0x237aea['removeMarker'](_0x80ec50),!0x0);}function Gt(_0x5f566c){return _0x17a5f5(_0x5f566c);}function Ft(_0x4405b5){const _0x2bdb06=_0x4405b5['start']['nodeAfter'];return _0x2bdb06&&_0x2bdb06['is']('element');}function Pt(_0x11c166,_0x165700){return null==_0x11c166['end']['nodeBefore']&&_0x11c166['end']['parent']==_0x11c166['start']['nodeAfter']?Lt(_0x11c166['start']['nodeAfter'],_0x165700):_0x11c166;}function Lt(_0x171d71,_0x5be655){const _0x421301=_0x5be655['schema']['isObject'](_0x171d71)||_0x5be655['schema']['isSelectable'](_0x171d71);return _0x5be655['createRange'](_0x5be655['createPositionAt'](_0x171d71,'before'),_0x421301?_0x5be655['createPositionAfter'](_0x171d71):_0x5be655['createPositionAt'](_0x171d71,'end'));}function Ht(_0x44aa2b,_0x50716f,_0x4c2df1,_0x442e3e,_0x388f1a){if(_0x44aa2b['next'])return!0x1;if(!Jt(_0x44aa2b,_0x50716f))return!0x1;if(_0x4c2df1['end']['isEqual'](_0x442e3e['start']))return!0x0;if(_0x44aa2b['type']!=_0x50716f['type'])return!0x1;if(!_0x4c2df1['end']['isTouching'](_0x442e3e['start']))return!0x1;const _0xc60f0c=_0x388f1a['createRange'](_0x4c2df1['end'],_0x442e3e['start'])['getWalker']();for(const _0x1b6093 of _0xc60f0c)if(['elementStart','elementEnd']['includes'](_0x1b6093['type'])&&_0x388f1a['schema']['isLimit'](_0x1b6093['item']))return!0x1;return!0x0;}function Jt(_0x93d01e,_0x31f815){if(!_0x93d01e['_isDataLoaded']||!_0x31f815['_isDataLoaded'])return!0x1;const _0x458f0b=new Set(Object['keys'](_0x93d01e['attributes'])),_0x9a400e=new Set(Object['keys'](_0x31f815['attributes']));if(_0x458f0b['delete']('groupId'),_0x9a400e['delete']('groupId'),0x0==_0x458f0b['size']&&0x0==_0x9a400e['size'])return!0x0;if(_0x458f0b['size']!=_0x9a400e['size'])return!0x1;const _0x5b0ab6={..._0x93d01e['attributes']},_0x41ab26={..._0x31f815['attributes']};return delete _0x5b0ab6['groupId'],delete _0x41ab26['groupId'],JSON['stringify'](_0x5b0ab6)==JSON['stringify'](_0x41ab26);}function qt(_0x25776d,_0xe73604){const _0xeefd39=zt(_0x25776d['attributes']),_0x38c920=zt(_0xe73604);if(!_0x25776d['_isDataLoaded'])return!0x1;for(const _0x4c905d of Object['keys'](_0x38c920))if(!_0x536f58(_0xeefd39[_0x4c905d],_0x38c920[_0x4c905d]))return!0x1;return!0x0;}function zt(_0x151b46){const _0x95dc1f=Object['assign']({},_0x151b46);return delete _0x95dc1f['skipNestingCheck'],delete _0x95dc1f['tablePasteChainId'],_0x95dc1f;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1be9a8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x25ed3d,_0x45589f,_0x5ed18d,_0x4fb4f5){super(),this['model']=_0x45589f,this['view']=_0x5ed18d,this['commentThreadController']=_0x4fb4f5,this['_editor']=_0x25ed3d,this['_acceptCommand']=_0x25ed3d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x25ed3d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x25f0cc,_0x37a8a4)=>_0x25f0cc||_0x37a8a4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x87379f=>_0x87379f&&this['_editor']['model']['canEditAt'](_0x45589f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5b32ea=>_0x5b32ea&&this['_editor']['model']['canEditAt'](_0x45589f['getRanges']())),this['_pendingAction']=null,_0x5ed18d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5ed18d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5ed18d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5ed18d,'change:isDirty',()=>{_0x5ed18d['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 _0x4a14f0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4a14f0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1f65e4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4a7fd4,_0xaa553a,_0x4cdd9b,_0x1dc23c){super(_0x4a7fd4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1a46d0(_0x4a7fd4,o(_0x4a7fd4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xaa553a['authoredAt']),this['bind']('authoredAt')['to'](_0xaa553a),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0xaa553a,'authoredAt',this,'descriptionParts',(_0x30a1fc,_0x543637,_0x5b418a)=>{const _0x407cec=_0x5b418a['map'](_0x4f1981=>ls(_0x4f1981['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x30a1fc-0x1,_0xaa553a['author']['name'],_0x543637?_0x1dc23c['formatDateTime'](_0x543637):'',new DOMParser()['parseFromString'](_0x407cec,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4d558a(),this['focusTracker']=new _0x332d8a(),this['keystrokes']=new _0x2d4190(),this['focusCycler']=new _0x1d28da({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4997ca=>_0x4997ca['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xaa553a,this['_localUser']=_0x4cdd9b,this['_config']=_0x1dc23c,_0x1dc23c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x48e648(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x32030e}=this['_config'];this['commentsListView']=new _0x32030e(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',_0x2d287d=>_0x2d287d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2ff4f8,_0x2c1a9f)=>_0x2ff4f8||!!_0x2c1a9f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x44d00c}=this['_config'],_0x395548=new _0x44d00c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x43ed76=_0x395548['commentInputView'];return _0x395548['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x43ed76,'value',(_0x5596d3,_0x1dda6f,_0x52f9fa)=>!!_0x52f9fa||_0x5596d3&&!_0x1dda6f),_0x43ed76['on']('submit',(_0x4e0cae,_0x587595)=>{this['fire']('addComment',_0x587595),_0x43ed76['editor']['setData']('');}),_0x43ed76['on']('cancel',()=>this['focus']()),_0x43ed76['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x395548;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3d616,_0xb48b5e,_0x16d32a,_0x19b1f2){super(_0x3d616,_0xb48b5e,_0x16d32a,_0x19b1f2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3aa330=>_0x3aa330&&_0x3aa330[0x0]?_0x3aa330[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4b54a6,_0x2b382f)=>{let _0x5aedf0='';for(const _0x25a4a9 of _0x4b54a6)_0x5aedf0+='<p>'+ls(_0x25a4a9['content'],_0x25a4a9['color'])+'</p>';return _0x2b382f?_0x5aedf0:_0x4983ec(_0x5aedf0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x19b1f2['SuggestionView'](_0x3d616,_0xb48b5e,{'formatDateTime':_0x19b1f2['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2ed514=this['bindTemplate'],_0x564f25=[this['suggestionView']];return this['commentsListView']&&_0x564f25['push'](this['commentsListView']),this['commentThreadInputView']&&_0x564f25['push'](this['commentThreadInputView']),_0x564f25['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2ed514['if']('isActive','ck-suggestion-wrapper--active'),_0x2ed514['to']('type',_0x329654=>'ck-suggestion-'+_0x329654),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2ed514['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x564f25};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x1f65e4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x207a1e,_0x2277e4,_0x373c92){super(_0x207a1e),this['_model']=_0x2277e4,this['_config']=_0x373c92,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2277e4),this['acceptButton']=this['_createButton'](o(_0x207a1e,'Accept\x20suggestion'),_0x271188['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x207a1e,'Discard\x20suggestion'),_0x271188['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x52a01a(_0x207a1e,_0x2277e4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4d558a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x332d8a(),this['keystrokes']=new _0x2d4190(),this['focusCycler']=new _0x1d28da({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x440eb6=>_0x440eb6['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1f408d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1f408d['innerHTML']=this['description'],this['on']('change:description',(_0x13bae7,_0x2746c0,_0xe1663f)=>{_0x1f408d['innerHTML']=_0xe1663f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x22677b=this['bindTemplate'],_0x36eb9a=[{'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':_0x22677b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x22677b['to']('authoredAt',_0x6c9eed=>this['_config']['formatDateTime'](_0x6c9eed))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x36eb9a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x36eb9a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x15adb3,_0x17a7cc,_0xeb451d,_0x244adc,_0xdc2c15){const _0x1b215c=new _0x30b48a(this['locale']);return _0x1b215c['set']({'label':_0x15adb3,'icon':_0x17a7cc,'tooltip':!0x0,'tooltipPosition':_0xdc2c15}),_0x1b215c['extendTemplate']({'attributes':{'class':_0xeb451d}}),_0x1b215c['on']('execute',()=>{this['fire'](_0x244adc,this['_model']['id']);}),_0x1b215c;}['_setupKeyboardNavigation'](){const _0x5a21aa=this['element'];this['keystrokes']['listenTo'](_0x5a21aa);for(const _0x11bade of this['focusables'])this['focusTracker']['add'](_0x11bade['element']),this['keystrokes']['listenTo'](_0x11bade['element']);this['keystrokes']['set']('enter',(_0x3216c1,_0x1b022e)=>{_0x5a21aa===_0x3216c1['target']&&(this['focusCycler']['focusFirst'](),_0x1b022e());}),this['keystrokes']['set']('esc',(_0x49278d,_0x3c7884)=>{_0x5a21aa!==_0x49278d['target']&&(this['focus'](),_0x3c7884());});}}var he='<!--\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\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x28108f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x9fa097,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4b0d01){super(_0x4b0d01),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x19d02a=this['editor']['config'];_0x19d02a['define']('trackChanges.SuggestionThreadView',re),_0x19d02a['define']('trackChanges.SuggestionView',ce),_0x19d02a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x19d02a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x10b2a5,_0x48966c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf71e7f,_0x193161]of this['_handleControllerBuffer']){const _0x49daab=this['_suggestionToController']['has'](_0xf71e7f);_0x49daab||_0x193161?_0x49daab&&_0x193161&&this['_destroyController'](_0xf71e7f):this['_initializeController'](_0xf71e7f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x10b2a5,_0x48966c);}['init'](){const _0x1ff6a9=this['editor'],_0x740bf=_0x1ff6a9['plugins']['get']('TrackChangesEditing'),_0x3c09b3=_0x1ff6a9['plugins']['get']('Annotations'),_0x580ed3=_0x1ff6a9['plugins']['get']('EditorAnnotations'),_0x1aeea8=_0x1ff6a9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x580ed3['addSourceCollector'](()=>{const _0x165da1=[];for(const [_0x553644,_0xa5f94]of Array['from'](this['_suggestionToController'])){const _0x34f199=_0x553644['getAllAdjacentSuggestions'](),_0x30fd45=[];for(const _0x45450c of _0x34f199){if(!_0x45450c['isInContent'])continue;if(_0x45450c['isMultiRange']){_0x30fd45['push'](..._0x45450c['getRanges']());continue;}const _0x1c57da=_0x45450c['getFirstRange']();if(_0x30fd45['length']>0x0){const _0x33fa9e=_0x30fd45[0x0]['getJoined'](_0x1c57da);if(_0x33fa9e){_0x30fd45[0x0]=_0x33fa9e;continue;}}_0x30fd45['push'](_0x1c57da);}_0x165da1['push']([_0xa5f94['view'],_0x30fd45]);}return _0x165da1;}),this['listenTo'](_0x740bf,'suggestionLoaded',(_0x2130fc,_0x4b64db)=>{this['listenTo'](_0x4b64db,'change:previous',(_0xf6e285,_0xc202fa,_0x515673,_0x47eee1)=>{_0x4b64db['isInContent']&&(null==_0x515673?(this['_updateController'](_0x47eee1['head']),this['_handleSuggestionControllerDelayed'](_0x4b64db,!0x1)):(this['_updateController'](_0x515673['head']),null==_0x47eee1&&this['_handleSuggestionControllerDelayed'](_0x4b64db,!0x0)));}),null!==_0x4b64db['previous']?this['_updateController'](_0x4b64db['head']):this['_handleSuggestionControllerDelayed'](_0x4b64db,!0x1);}),this['listenTo'](_0x740bf,'suggestionUnloaded',(_0x2731e0,_0x3829b7,_0x148a55)=>{this['stopListening'](_0x3829b7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3829b7),this['_suggestionToController']['has'](_0x3829b7)&&this['_destroyController'](_0x3829b7),_0x148a55&&this['_updateController'](_0x148a55['head']);}),this['listenTo'](_0x740bf,'suggestionChanged',(_0x5cedc4,_0xb17313)=>{this['_updateController'](_0xb17313);}),this['listenTo'](_0x3c09b3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1aeea8,'addComment',(_0x2f28ed,{threadId:_0x574fd9,isFromAdapter:_0x1734ad})=>{if(_0x1734ad||!_0x740bf['hasSuggestion'](_0x574fd9))return;const _0x26a609=_0x740bf['getSuggestion'](_0x574fd9);this['_suggestionToController']['get'](_0x26a609)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x259644=this['editor']['plugins']['get']('Annotations'),_0x416283=this['editor']['plugins']['get']('TrackChangesEditing'),_0x132d9a=Array['from'](_0x259644['activeAnnotations'],_0x3de1f7=>_0x3de1f7['innerView'])['filter'](_0x2514c4=>this['_viewToController']['has'](_0x2514c4)),_0x42eeba=[];for(const _0xeed7a6 of _0x132d9a){const _0x48dd8b=this['_viewToController']['get'](_0xeed7a6)['model']['getAllAdjacentSuggestions']();_0x42eeba['push'](..._0x48dd8b['reduce']((_0x245d20,_0x80c749)=>[..._0x245d20,..._0x80c749['getMarkerNames']()],[]));}_0x416283['activeMarkers']=_0x42eeba;}['_addUIComponentsToFactory'](){const _0xf1286e=this['editor'],_0x28389d=_0xf1286e['locale'],_0x5889d8=o(_0x28389d,'Track\x20changes'),_0x1506d3=new Wt([{'type':'switchbutton','model':new _0x340e2a({'withText':!0x0,'isToggleable':!0x0,'label':_0x5889d8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x340e2a({'withText':!0x0,'label':o(_0x28389d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x340e2a({'withText':!0x0,'label':o(_0x28389d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x340e2a({'withText':!0x0,'label':o(_0x28389d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x340e2a({'withText':!0x0,'label':o(_0x28389d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4ffbf5 of _0x1506d3)if(me(_0x4ffbf5)){const _0x2f1e82=_0xf1286e['commands']['get'](_0x4ffbf5['model']['commandName']);_0x4ffbf5['model']['bind']('isOn','isEnabled')['to'](_0x2f1e82,'value','isEnabled');}_0xf1286e['ui']['componentFactory']['add']('trackChanges',_0x17f253=>this['_createToolbarButton'](_0x17f253,_0x1506d3,_0x5889d8)),_0xf1286e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x6708ff=>this['_createMenuBarMenu'](_0x6708ff,_0x1506d3,_0x5889d8));}['_createToolbarButton'](_0x298b1f,_0x1f9736,_0x383a84){const _0x271496=Qt(_0x298b1f,_0xa7f4a4),_0x2cbd0f=this['editor']['commands']['get']('trackChanges');_0x271496['buttonView']['set']({'tooltip':_0x383a84,'label':_0x383a84,'icon':he}),_0x271496['buttonView']['bind']('isOn')['to'](_0x2cbd0f,'value'),_0x271496['buttonView']['on']('execute',()=>{_0x2cbd0f['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x271496,_0x1f9736,{'role':'menu'});const _0x5d3f63=[];for(const _0x1013b2 of _0x1f9736)me(_0x1013b2)&&_0x5d3f63['push'](this['editor']['commands']['get'](_0x1013b2['model']['commandName']));const _0x231c43=_0x271496['buttonView'];return _0x231c43['actionView']['unbind']('isEnabled'),_0x231c43['arrowView']['unbind']('isEnabled'),_0x231c43['actionView']['bind']('isEnabled')['to'](_0x2cbd0f,'isEnabled'),_0x231c43['arrowView']['bind']('isEnabled')['toMany'](_0x5d3f63,'isEnabled',(..._0x51aa44)=>_0x51aa44['some'](_0x4d1580=>_0x4d1580)),_0x271496['on']('execute',_0x583e3c=>{this['editor']['execute'](_0x583e3c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x271496;}['_createMenuBarMenu'](_0x580321,_0x1c001e,_0x1c4e35){const _0x5d2f45=new Yt(_0x580321),_0x14f4a3=this['editor']['commands']['get']('trackChanges');_0x5d2f45['buttonView']['set']({'label':_0x1c4e35,'icon':he});const _0x1e0d8f=new Zt(_0x580321);for(const _0x443e7d of _0x1c001e){if('separator'==_0x443e7d['type']){_0x1e0d8f['items']['add'](new Xt(_0x580321));continue;}const _0x3825cb=new te(_0x580321,_0x5d2f45),_0x1f5b11=new _0x1567d1(_0x580321),_0x4b0580=_0x443e7d['model'];_0x1f5b11['bind'](...Object['keys'](_0x4b0580))['to'](_0x4b0580),_0x1f5b11['delegate']('execute')['to'](_0x5d2f45),_0x1f5b11['on']('execute',()=>{this['editor']['execute'](_0x4b0580['commandName']),this['editor']['editing']['view']['focus']();}),_0x3825cb['children']['add'](_0x1f5b11),_0x1e0d8f['items']['add'](_0x3825cb);}return _0x5d2f45['bind']('isEnabled')['to'](_0x14f4a3,'isEnabled'),_0x5d2f45['panelView']['children']['add'](_0x1e0d8f),_0x5d2f45;}['_initializeController'](_0x20842d){const _0x3b75c5=this['editor'],_0xba7244=_0x3b75c5['config'],_0x418843=_0x3b75c5['plugins']['get']('Annotations'),_0x215410=_0x3b75c5['plugins']['get']('CommentsRepository'),_0x18d25d=_0x3b75c5['plugins']['get']('EditorAnnotations'),_0x58d9ab=_0x3b75c5['plugins']['get'](_0x9fa097)['me'],_0x49d9fb=_0xba7244['get']('trackChanges')['SuggestionThreadView'],_0x12cb6a=_0xba7244['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x34b22d,CommentThreadInputView:_0x222ded}=_0x3b75c5['plugins']['get']('CommentsUI');let _0x44a8cd,_0x418a01,_0x61df2c;this['_annotationViews']['has'](_0x20842d['id'])?(_0x418a01=this['_annotationViews']['get'](_0x20842d['id']),_0x44a8cd=_0x418a01['mainView']):(_0x44a8cd=new _0x49d9fb(_0x3b75c5['locale'],_0x20842d,_0x58d9ab,{'disableComments':this['_disableComments'],'editorConfig':_0xba7244['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xba7244['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xba7244['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xba7244['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x16c5e0(_0xba7244['get']('locale')),'CommentView':_0xba7244['get']('comments')['CommentView'],'CommentsListView':_0x34b22d,'CommentThreadInputView':_0x222ded,'SuggestionView':_0x12cb6a}),_0x44a8cd['suggestionView']['acceptButton']['on']('execute',()=>{_0x3b75c5['editing']['view']['focus']();}),_0x44a8cd['suggestionView']['discardButton']['on']('execute',()=>{_0x3b75c5['editing']['view']['focus']();}),_0x418a01=_0x418843['createAnnotationView'](this['editor']['locale'],_0x44a8cd),_0x418a01['bind']('isDirty')['to'](_0x44a8cd,'isDirty'),_0x418a01['bind']('length')['to'](_0x44a8cd),_0x418a01['bind']('type')['to'](_0x44a8cd,'type',_0x2dc306=>'suggestion-'+_0x2dc306),_0x44a8cd['on']('escape',()=>{_0x61df2c['fire']('escape');}),this['_annotationViews']['set'](_0x20842d['id'],_0x418a01));const _0x320545=_0x215410['createCommentThreadController'](_0x20842d['commentThread'],_0x44a8cd),_0x4db36a=new ae(_0x3b75c5,_0x20842d,_0x44a8cd,_0x320545),_0x4625c2=_0x20842d['getAllAdjacentSuggestions']()['filter'](_0x3554fd=>_0x3554fd['isInContent']);_0x44a8cd['descriptionParts']=_0x3b75c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4625c2),this['_suggestionToController']['set'](_0x20842d,_0x4db36a),this['_viewToController']['set'](_0x44a8cd,_0x4db36a),_0x61df2c=_0x418843['createAnnotation']({'view':_0x418a01,'target':()=>{const _0x3a74fa=[],_0x1fda82=_0x20842d['getAllAdjacentSuggestions']()['filter'](_0x22fc99=>_0x22fc99['isInContent']);for(const _0x30b253 of _0x1fda82)_0x3a74fa['push'](..._0x30b253['getMarkers']());return _0x418819(_0x3b75c5['editing'],_0x3a74fa);},'type':()=>'suggestion-'+_0x4db36a['view']['type']}),_0x215410['_bindAnnotationToEditors'](_0x44a8cd,_0x61df2c),_0x418843['add'](_0x61df2c),_0x18d25d['registerAnnotation'](_0x61df2c);}['_destroyController'](_0xb73c5a){const _0x4ea420=this['editor']['plugins']['get']('CommentsRepository'),_0x6dc8d3=this['editor']['plugins']['get']('Annotations'),_0x588a54=this['_suggestionToController']['get'](_0xb73c5a),_0x3c3491=_0x588a54['view'],_0x69d766=_0x6dc8d3['getByInnerView'](_0x3c3491);_0x4ea420['_unbindEditors'](_0x3c3491),_0x69d766&&_0x6dc8d3['remove'](_0x69d766),this['_suggestionToController']['delete'](_0xb73c5a),this['_viewToController']['delete'](_0x3c3491),_0x588a54['destroy']();}['_updateController'](_0x442ca6){if(!_0x442ca6['isInContent']||!this['_suggestionToController']['has'](_0x442ca6))return;const _0x4b4faf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fabbf=this['_suggestionToController']['get'](_0x442ca6),_0xdf14a8=_0x442ca6['getAllAdjacentSuggestions']();_0x4fabbf['view']['descriptionParts']=_0x4b4faf['descriptionFactory']['getDescriptions'](_0xdf14a8);}['destroy'](){for(const _0x37960c of this['_suggestionToController']['keys']())this['_destroyController'](_0x37960c);for(const _0x2da164 of this['_annotationViews']['values']())_0x2da164['mainView']['destroy']();super['destroy']();}}function me(_0x14675c){return'model'in _0x14675c;}class k extends _0x28108f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x26a36b){this['editor']['plugins']['get'](p)['adapter']=_0x26a36b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x18c152){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x18c152);}['getSuggestions']({skipNotAttached:_0x2c5684=!0x1,toJSON:_0x587c97=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2c5684,'toJSON':_0x587c97});}['getSuggestion'](_0x43c072){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x43c072);}}const T=['Pagination'];class P extends _0x28108f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3ad7df=this['editor'];if(_0x3ad7df['config']['define']('trackChangesData.editorCreator',_0x1cfc2a=>{const _0x2c6f86=_0x3ad7df['model']['document']['getRootNames']()['reduce']((_0x316b02,_0x12c4b9)=>(_0x316b02[_0x12c4b9]='',_0x316b02),{});return _0x3ad7df['constructor']['create'](_0x2c6f86,_0x1cfc2a);}),'function'!=typeof _0x3ad7df['config']['get']('trackChangesData')['editorCreator'])throw new _0x3ace68('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x31d27){return N(this['editor'],!0x0,_0x31d27);}['getDataWithDiscardedSuggestions'](_0x5cd06c){return N(this['editor'],!0x1,_0x5cd06c);}}class D extends _0x28108f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x105e83){super(_0x105e83),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(_0x177491){return void 0x0!==_0x177491['getRootsAttributes'];}async function N(_0x4ee008,_0x119e8c,_0x221f3e){const _0x397f6d=_0x36a3ea(_0x4ee008,T);_0x397f6d['plugins']['push'](p,D),_0x397f6d['rootsAttributes']=v(_0x4ee008)?_0x4ee008['getRootsAttributes']():void 0x0;const _0x5d4078=document['createDocumentFragment'](),_0xf0e290=_0x4ee008['config']['get']('trackChangesData')['editorCreator'],_0x29e48b=await _0xf0e290(_0x397f6d,()=>function(_0xced865){const _0x3f431f=document['createElement']('div');return _0xced865['appendChild'](_0x3f431f),_0x3f431f;}(_0x5d4078));!function(_0x48d644,_0x7b71be){const _0x4a836a=_0x48d644['model']['document']['getRootNames']()['reduce']((_0x2e2945,_0x221fb4)=>(_0x2e2945[_0x221fb4]=_0x48d644['data']['get']({'rootName':_0x221fb4}),_0x2e2945),{}),_0x1b454a=_0x48d644['plugins']['get']('Users')['users']['map'](_0x2d04a1=>({'id':_0x2d04a1['id'],'name':_0x2d04a1['name']})),_0x3dad2d=_0x48d644['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x44ceae=_0x48d644['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x528b5f=_0x7b71be['plugins']['get']('Users'),_0x182d9f=_0x7b71be['plugins']['get']('TrackChangesEditing'),_0x236c5c=_0x7b71be['plugins']['get']('CommentsRepository');for(const _0xc53fd0 of _0x236c5c['getCommentThreads']())_0xc53fd0['remove']();for(const _0x1aa393 of _0x1b454a)_0x528b5f['getUser'](_0x1aa393['id'])||_0x528b5f['addUser'](_0x1aa393);_0x528b5f['me']||_0x528b5f['useAnonymousUser']();for(const _0x479777 of _0x44ceae)_0x236c5c['addCommentThread'](_0x479777);for(const _0x590327 of _0x3dad2d)_0x182d9f['addSuggestionData'](_0x590327);_0x7b71be['data']['set'](_0x4a836a);}(_0x4ee008,_0x29e48b),_0x29e48b['execute'](_0x119e8c?'acceptAllSuggestions':'discardAllSuggestions');const _0x37e67e=v(_0x29e48b)?_0x29e48b['getFullData'](_0x221f3e):_0x29e48b['data']['get'](_0x221f3e);return await _0x29e48b['destroy'](),_0x37e67e;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x16a7c5,PendingActions as _0x3ee6d8,icons as _0x48ebf8}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x10de5d,ObservableMixin as _0x4b403b,uid as _0x4e75e2,insertToPriorityArray as _0x127edf,priorities as _0x4c737c,logWarning as _0x159e26,getEnvKeystrokeText as _0x4cf70a,FocusTracker as _0x5b8a56,KeystrokeHandler as _0x13f017,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3400f2,View as _0x3a83e5,ViewCollection as _0xc2acd1,FocusCycler as _0x3ef78f,ViewModel as _0x514a09,createDropdown as Qt,SplitButtonView as _0x2df87e,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x1f4ca2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x290cf2,hashObject as _0x14345e,surroundingMarkersDetector as _0x5b1683,FOCUS_ANNOTATION_KEYSTROKE as _0x3b3bd8,AriaDescriptionView as _0x3ce382,setupThreadKeyboardNavigation as _0x1005ee,trimHtml as _0x344275,UserView as _0x2868ed,LateFocusButtonView as _0x20cb63,getDateTimeFormatter as _0x486eeb,getAllMarkersDomElementsSorted as _0x37a144,sanitizeEditorConfig as _0x297ba6}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x16a09f,LiveRange as _0x2fdf13,LivePosition as _0x149914}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x27bc0e,toWidget as _0x17940c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x36fc58,set as _0x54d5d1,isEqual as _0x5a2ed5,unset as _0x5c2aae,omit as Tt}from'lodash-es';import{Delete as _0x23348a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3d021d,ShiftEnter as _0x4fb1ea}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x301123,_0x442ff6){super(_0x301123),this['_enabledCommands']=_0x442ff6,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 _0x3dd734 of this['editor']['commands']['commands']())_0x3dd734['affectsData']&&!this['_enabledCommands']['has'](_0x3dd734)&&_0x3dd734['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x39f2ea of this['editor']['commands']['commands']())_0x39f2ea['affectsData']&&!this['_enabledCommands']['has'](_0x39f2ea)&&_0x39f2ea['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x18430c,_0x535e37){super(_0x18430c),this['_suggestions']=_0x535e37,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3761c6){const _0x5525fa=this['_suggestions']['get'](_0x3761c6);if(!_0x5525fa)throw new _0x10de5d('track-changes-accept-suggestion-not-found',this);const _0x228eb1=_0x5525fa['getRanges']();this['editor']['model']['canEditAt'](_0x228eb1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5525fa);}}class R extends ts{['_suggestions'];constructor(_0x5fc25f,_0x7c40af){super(_0x5fc25f),this['_suggestions']=_0x7c40af,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd72c35){const _0x37cad8=this['_suggestions']['get'](_0xd72c35);if(!_0x37cad8)throw new _0x10de5d('track-changes-discard-suggestion-not-found',this);const _0x57ec09=_0x37cad8['getRanges']();this['editor']['model']['canEditAt'](_0x57ec09)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x37cad8);}}function ls(_0x3d2333,_0x3adf71){let _0x4578a4='';return _0x4578a4+=_0x3d2333['split']('*')['map']((_0x48dff9,_0x2f579e)=>_0x2f579e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x48dff9)+'</span>':nn(_0x48dff9))['join'](''),_0x3adf71&&(_0x4578a4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3adf71['value']+'\x22\x20title=\x22'+_0x3adf71['title']+'\x22></span>'),_0x4578a4;}function nn(_0x2d64a0){const _0x9f8c58=document['createElement']('span');return _0x9f8c58['innerText']=_0x2d64a0,_0x9f8c58['innerHTML'];}function ss(_0x3dbd43){return _0x3dbd43['sort']((_0x84068b,_0x2916d3)=>'deletion'==_0x84068b['type']&&'deletion'!=_0x2916d3['type']?-0x1:'deletion'!=_0x84068b['type']&&'deletion'==_0x2916d3['type']?0x1:0x0);}function to(_0xf8d374,_0x13d71a){let _0x201b38,_0x27d571=0x0;const _0x2636ca=[],_0x16c0b5=_0x13d71a['schema'];for(;_0x27d571<_0xf8d374['length'];){const _0x5ee510=_0xf8d374[_0x27d571],_0x53d33d=_0xf8d374[_0x27d571+0x1];_0x201b38||(_0x201b38=_0x13d71a['createPositionBefore'](_0x5ee510)),on(_0x13d71a,_0x5ee510,_0x53d33d)||(_0x2636ca['push'](_0x13d71a['createRange'](_0x201b38,_0x16c0b5['isObject'](_0x5ee510)?_0x13d71a['createPositionAfter'](_0x5ee510):_0x13d71a['createPositionAt'](_0x5ee510,'end'))),_0x201b38=null),_0x27d571++;}return _0x2636ca;}function on(_0x33b7b4,_0x1cc70e,_0x3a1801){if(!_0x3a1801)return!0x1;const _0x5734c7=_0x33b7b4['createPositionAfter'](_0x1cc70e),_0x338567=_0x33b7b4['createPositionBefore'](_0x3a1801);return _0x5734c7['isTouching'](_0x338567);}function rs(_0x5151d3,_0x32eb23,_0x27a075){for(;_0x27a075['length'];){const _0x5340fa=_0x27a075['splice'](0x0,0x64);_0x5151d3['change'](()=>{for(const _0x58b21e of _0x5340fa)_0x58b21e['isInContent']&&_0x32eb23['execute'](_0x58b21e['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x50de29,_0xdc3577,_0x13cea0){super(_0x50de29),this['_command']=_0xdc3577,this['_suggestions']=_0x13cea0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2abe37=Array['from'](this['_suggestions']['values']())['some'](_0x1d8984=>_0x1d8984['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2abe37;}['execute'](){const _0x1b1fd2=ss(Array['from'](this['_suggestions']['values']()));for(const _0x406a4f of _0x1b1fd2){const _0x9259e0=_0x406a4f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9259e0))return;}rs(this['editor']['model'],this['_command'],_0x1b1fd2);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x577fab,_0x30404d,_0x106cae){super(_0x577fab),this['_command']=_0x30404d,this['_suggestions']=_0x106cae,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x41da71=this['editor']['model']['document']['selection'],_0x11e14a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x17ab4f,_0x3462ee){const _0x4d7fb6=Array['from'](_0x17ab4f['getRanges']()),_0x5849f8=new Set();for(const _0x26ca9e of _0x3462ee)if(_0x26ca9e['isInContent']){for(const _0x16b711 of _0x4d7fb6)for(const _0x280090 of _0x26ca9e['getRanges']())(_0x16b711['isIntersecting'](_0x280090)||_0x17ab4f['isCollapsed']&&!_0x26ca9e['isMultiRange']&&_0x26ca9e['next']&&_0x280090['end']['isTouching'](_0x16b711['start']))&&_0x5849f8['add'](_0x26ca9e);}return _0x5849f8;}(_0x41da71,_0x11e14a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x10962f=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1aebed of _0x10962f){const _0x83d130=_0x1aebed['getRanges']();if(!this['editor']['model']['canEditAt'](_0x83d130))return;}rs(this['editor']['model'],this['_command'],_0x10962f);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4b403b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2fe18a,_0x37d3ab){super(),this['id']=_0x37d3ab['id'],this['type']=_0x37d3ab['type'],this['subType']=_0x37d3ab['subType']||null,this['author']=_0x37d3ab['author'],this['creator']=_0x37d3ab['creator']||_0x37d3ab['author'],this['isExternal']=Boolean(_0x37d3ab['attributes']&&_0x37d3ab['attributes']['@external']),this['data']=null,this['_model']=_0x2fe18a,this['_onAccept']=_0x37d3ab['onAccept'],this['_onDiscard']=_0x37d3ab['onDiscard'],this['_onAttributesChange']=_0x37d3ab['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x37d3ab['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 _0x3bc24b=this;for(;_0x3bc24b['previous'];)_0x3bc24b=_0x3bc24b['previous'];return _0x3bc24b;}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'](_0x59e14d){this['_markerNames']['add'](_0x59e14d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5299c1=>this['_model']['markers']['get'](_0x5299c1))['filter'](_0x170ecc=>_0x170ecc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x6ec953=>{for(const _0x485b42 of this['getMarkers']())_0x6ec953['removeMarker'](_0x485b42);}),this['_markerNames']['clear']();}['removeMarker'](_0x46f57b){this['_model']['change'](_0x47b81d=>{_0x47b81d['removeMarker'](_0x46f57b);}),this['_markerNames']['delete'](_0x46f57b);}['addRange'](_0x27a7a8){const _0x2b4202='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2b4202),this['_model']['change'](_0x21a915=>{_0x21a915['addMarker'](_0x2b4202,{'range':_0x27a7a8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4fad27){for(const _0x356da4 of this['getRanges']())if(_0x356da4['isIntersecting'](_0x4fad27))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x353791=>_0x353791['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x42e482,_0x5064ee)=>[..._0x42e482,..._0x5064ee['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3b1124=this['getRanges']();if(0x1!=_0x3b1124['length'])return null;const _0x216622=_0x3b1124[0x0],_0x5c955e=_0x216622['start']['nodeAfter'],_0x456a58=_0x216622['end']['nodeBefore'];return _0x5c955e instanceof _0x16a09f?_0x5c955e!=_0x456a58?null:_0x5c955e: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 _0x531885=[];let _0x581ed5=this['head'];for(;_0x581ed5;)_0x531885['push'](_0x581ed5),_0x581ed5=_0x581ed5['next'];return _0x531885;}['setAttribute'](_0x223c91,_0x488658){const _0x382239=_0x36fc58(this['attributes']);_0x54d5d1(_0x382239,_0x223c91,_0x488658),_0x5a2ed5(_0x382239,this['attributes'])||(this['attributes']=_0x382239,this['_onAttributesChange'](_0x382239));}['removeAttribute'](_0x5ae061){const _0x578cce=_0x36fc58(this['attributes']);_0x5c2aae(_0x578cce,_0x5ae061),_0x5a2ed5(_0x578cce,this['attributes'])||(this['attributes']=_0x578cce,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 _0x4e75e2()['substr'](0x1,0x5);}}function o(_0x397ed2,_0x5f4ad7,_0x166cb4){const t=_0x397ed2['t'];switch(_0x5f4ad7){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',_0x166cb4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x166cb4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x166cb4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x166cb4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x166cb4);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',_0x166cb4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x166cb4);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',_0x166cb4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x166cb4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x166cb4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x166cb4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x166cb4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x166cb4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x166cb4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x166cb4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x166cb4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x166cb4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x166cb4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x166cb4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x166cb4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x166cb4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x166cb4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x166cb4);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'},_0x166cb4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x166cb4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x166cb4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x166cb4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x166cb4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x166cb4);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'},_0x166cb4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x166cb4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x166cb4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x166cb4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x166cb4);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'},_0x166cb4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x166cb4);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'},_0x166cb4);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'},_0x166cb4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x166cb4);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'},_0x166cb4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x166cb4);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'},_0x166cb4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x166cb4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x166cb4);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x166cb4);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'},_0x166cb4);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'},_0x166cb4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x166cb4);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x166cb4);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x166cb4);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x166cb4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5f4ad7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x641de4,_0x256e59){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x641de4,this['_locale']=_0x256e59;}['getDescriptions'](_0x54fea6){const _0x187947=[],_0x5ffd4a=new Set(),_0x17f104=new Set();for(let _0x25e416=0x0;_0x25e416<_0x54fea6['length'];_0x25e416++){const _0x1d8b99=_0x54fea6[_0x25e416];if(!_0x1d8b99['isInContent'])continue;const _0x1e0100=this['_handleCustomCallbackDescription'](_0x1d8b99);if(_0x1e0100){if(null!=_0x1d8b99['subType']){if(_0x5ffd4a['has'](_0x1d8b99['subType']))continue;_0x5ffd4a['add'](_0x1d8b99['subType']);}_0x187947['push'](_0x1e0100);}else{if('attribute'!=_0x1d8b99['type'])'insertion'!=_0x1d8b99['type']&&'deletion'!=_0x1d8b99['type']||this['_handleInsertRemoveSuggestionDescription'](_0x187947,_0x1d8b99,_0x54fea6[_0x25e416+0x1]);else{const _0x1d1c0f=_0x1d8b99['data']['key'];if(_0x17f104['has'](_0x1d1c0f))continue;_0x17f104['add'](_0x1d8b99['data']['key']),_0x1d1c0f==m?this['_handleRenameSuggestionDescription'](_0x187947,_0x1d8b99):this['_handleAttributeSuggestionDescription'](_0x187947,_0x1d8b99);}}}return this['_resolveDescriptionItems'](_0x187947);}['registerDescriptionCallback'](_0x231a63){this['_customCallbacks']['push'](_0x231a63);}['registerElementLabel'](_0x1e1c15,_0xd7f172,_0x41116c=_0x4c737c['normal']){'function'==typeof _0x1e1c15?_0x127edf(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1e1c15,'label':_0xd7f172,'priority':_0x41116c}):this['_itemLabels']['set'](_0x1e1c15,_0xd7f172);}['registerAttributeLabel'](_0x1eb528,_0x2f5a8f){this['_attributeLabels']['set'](_0x1eb528,_0x2f5a8f);}['getItemLabel'](_0x6df871,_0x148587=0x1){let _0x52c14a;for(const _0x4130ae of this['_itemLabelsCallbacks'])if(_0x4130ae['matchingCallback'](_0x6df871)){_0x52c14a=_0x4130ae['label'];break;}return _0x52c14a||(_0x52c14a=this['_itemLabels']['get'](_0x6df871['name'])),_0x52c14a?_0x52c14a(_0x148587):0x1!==_0x148587?_0x148587+'\x20'+_0x6df871['name']+'s':''+_0x6df871['name'];}['_addDescriptionItems'](_0x58b08b,_0x2f3ebf){const _0x151af6=_0x2f3ebf['getFirstRange']()['getWalker'](),_0x4fbf68='insertion'==_0x2f3ebf['type']?'add':'remove';for(const _0x270272 of _0x151af6){const _0x341bed=_0x270272['item'],_0x2b1528=_0x58b08b[_0x58b08b['length']-0x1];if(_0x341bed['is']('$textProxy'))_0x2b1528&&_0x2b1528['type']['indexOf']('Container')>-0x1&&_0x58b08b['pop'](),_0x2b1528&&'text'==_0x2b1528['type']?_0x2b1528[_0x4fbf68]+=_0x341bed['data']:_0x58b08b['push']({'type':'text','add':'add'==_0x4fbf68?_0x341bed['data']:'','remove':'remove'==_0x4fbf68?_0x341bed['data']:''});else{if(this['_schema']['isObject'](_0x341bed)){const _0x41f15e=_0x341bed;if(_0x2b1528&&_0x2b1528['type']['indexOf']('Container')>-0x1&&_0x58b08b['pop'](),'elementEnd'==_0x270272['type'])continue;_0x2b1528&&_0x2b1528['type']==_0x4fbf68+'Object'&&_0x2b1528['element']['name']==_0x41f15e['name']?_0x2b1528['quantity']++:_0x58b08b['push']({'type':_0x4fbf68+'Object','element':_0x41f15e,'quantity':0x1}),_0x151af6['skip'](_0x1001d0=>!('elementEnd'==_0x1001d0['type']&&_0x1001d0['item']==_0x341bed));}else{if(this['_schema']['checkChild'](_0x341bed,'$text')||_0x341bed['is']('element','softBreak')){const _0x4c2cf4=_0x341bed;if('add'==_0x4fbf68&&'elementStart'==_0x270272['type']||'remove'==_0x4fbf68&&'elementEnd'==_0x270272['type'])continue;if(_0x2b1528&&-0x1==_0x2b1528['type']['indexOf']('Container')){'text'==_0x2b1528['type']&&(_0x2b1528[_0x4fbf68]+='\x0a');continue;}let _0x3ca419;if(_0x3ca419='add'==_0x4fbf68?_0x4c2cf4['nextSibling']&&!this['_schema']['isObject'](_0x4c2cf4['nextSibling'])?_0x4c2cf4['nextSibling']:null:_0x4c2cf4['previousSibling']&&!this['_schema']['isObject'](_0x4c2cf4['previousSibling'])?_0x4c2cf4['previousSibling']:null,_0x4c2cf4['isEmpty']||_0x3ca419&&_0x3ca419['isEmpty']){const _0x4161fd=_0x3ca419&&_0x3ca419['isEmpty']?_0x3ca419:_0x4c2cf4;_0x2b1528&&_0x2b1528['type']==_0x4fbf68+'EmptyContainer'&&_0x2b1528['element']['name']==_0x4161fd['name']?_0x2b1528['quantity']++:_0x58b08b['push']({'type':_0x4fbf68+'EmptyContainer','element':_0x4161fd,'quantity':0x1});}else _0x58b08b['push']({'type':_0x4fbf68+'Container','element':_0x4c2cf4});}}}}}['_resolveDescriptionItems'](_0x46fa5a){const _0x303d99=this['_locale'],_0x3f0f23=[],_0x49c4dc=[],_0x284f69=[];for(const _0x233881 of _0x46fa5a)switch(_0x233881['type']){case'text':if(_0x233881['add']=_0x233881['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x233881['remove']=_0x233881['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x233881['add']&&''!=_0x233881['remove']){_0x3f0f23['push']({'type':'replace','content':o(_0x303d99,'REPLACE_TEXT',['\x22'+_0x233881['remove']+'\x22','\x22'+_0x233881['add']+'\x22'])});continue;}if(null!=_0x233881['add']['match'](/^ +$/)){_0x3f0f23['push']({'type':'insertion','content':o(_0x303d99,'*Insert:*\x20%0',o(_0x303d99,'ELEMENT_SPACE',_0x233881['add']['length']))});continue;}if(null!=_0x233881['remove']['match'](/^ +$/)){_0x3f0f23['push']({'type':'deletion','content':o(_0x303d99,'*Remove:*\x20%0',o(_0x303d99,'ELEMENT_SPACE',_0x233881['remove']['length']))});continue;}if(''!=_0x233881['add']){_0x3f0f23['push']({'type':'insertion','content':o(_0x303d99,'*Insert:*\x20%0','\x22'+_0x233881['add']+'\x22')});continue;}_0x3f0f23['push']({'type':'deletion','content':o(_0x303d99,'*Remove:*\x20%0','\x22'+_0x233881['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3f0f23['push']({'type':'insertion','content':o(_0x303d99,'*Insert:*\x20%0',this['getItemLabel'](_0x233881['element'],_0x233881['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3f0f23['push']({'type':'deletion','content':o(_0x303d99,'*Remove:*\x20%0',this['getItemLabel'](_0x233881['element'],_0x233881['quantity']))});continue;case'addContainer':_0x3f0f23['push']({'type':'insertion','content':o(_0x303d99,'*Split:*\x20%0',this['getItemLabel'](_0x233881['element'],_0x233881['quantity']))});continue;case'removeContainer':_0x3f0f23['push']({'type':'deletion','content':o(_0x303d99,'*Merge:*\x20%0',this['getItemLabel'](_0x233881['element'],_0x233881['quantity']))});continue;case'addFormat':_0x49c4dc['push'](_0x233881['key']);continue;case'removeFormat':_0x284f69['push'](_0x233881['key']);continue;default:_0x3f0f23['push'](_0x233881);}if(_0x49c4dc['length']){const _0x320966=_0x49c4dc['map'](_0xb56d54=>this['_attributeLabels']['has'](_0xb56d54)?this['_attributeLabels']['get'](_0xb56d54):_0xb56d54)['join'](',\x20');_0x3f0f23['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x320966)});}if(_0x284f69['length']){const _0x3945e5=_0x284f69['map'](_0x1ed73=>this['_attributeLabels']['has'](_0x1ed73)?this['_attributeLabels']['get'](_0x1ed73):_0x1ed73)['join'](',\x20');_0x3f0f23['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3945e5)});}return _0x3f0f23;}['_handleCustomCallbackDescription'](_0xae86c6){for(const _0x6a7b04 of this['_customCallbacks']){const _0x2ffdd5=_0x6a7b04(_0xae86c6);if(_0x2ffdd5&&'type'in _0x2ffdd5)return _0x2ffdd5;}}['_handleAttributeSuggestionDescription'](_0x303553,_0x330c4b){const _0x92e438=_0x330c4b['data'],_0x3a858a=void 0x0===_0x92e438['newValue']?'removeFormat':'addFormat';_0x303553['push']({'type':_0x3a858a,'key':_0x92e438['key']});}['_handleRenameSuggestionDescription'](_0xbcc818,_0x451946){_0xbcc818['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x451946['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x58cffe,_0x1bad43,_0x35b740){if(this['_addDescriptionItems'](_0x58cffe,_0x1bad43),_0x35b740&&_0x35b740['getFirstRange']()&&!_0x1bad43['getFirstRange']()['end']['isEqual'](_0x35b740['getFirstRange']()['start'])){const _0x77c293=_0x58cffe[_0x58cffe['length']-0x1],_0x235e0c='insertion'==_0x1bad43['type']?'add':'remove';_0x77c293&&'text'==_0x77c293['type']&&(_0x77c293[_0x235e0c]+='\x0a');}}}class V extends _0x16a7c5{['afterInit'](){const _0x5a7ef9=this['editor'],_0x5c040c=_0x5a7ef9['plugins']['get']('TrackChangesEditing');_0x5a7ef9['commands']['get']('showAIAssistant')&&_0x5c040c['enableCommand']('showAIAssistant');}}class U extends _0x16a7c5{['afterInit'](){const _0x290b5f=this['editor'],_0x336db7=_0x290b5f['locale'];if(!_0x290b5f['plugins']['has']('AlignmentEditing'))return;const _0x23b5ce=_0x290b5f['plugins']['get']('TrackChangesEditing');_0x23b5ce['enableDefaultAttributesIntegration']('alignment'),_0x23b5ce['registerBlockAttribute']('alignment'),_0x23b5ce['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x336db7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x374d4e=this['editor'],_0x4e6bbd=_0x374d4e['locale'];_0x374d4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x541c31=>{if('formatBlock'!=_0x541c31['type'])return;const {data:_0x27238c}=_0x541c31;if(_0x27238c&&'alignment'==_0x27238c['commandName']){const _0xdf297e=_0x27238c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e6bbd,'*Format:*\x20%0',function(_0x50ed2a){switch(_0x50ed2a){case'left':return o(_0x4e6bbd,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e6bbd,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e6bbd,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e6bbd,'FORMAT_JUSTIFY_TEXT');}}(_0xdf297e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x16a7c5{['afterInit'](){const _0x3c743b=this['editor'],_0x3ce01e=_0x3c743b['plugins']['get']('TrackChangesEditing'),_0x395bdf=_0x3c743b['locale'];for(const _0xefad02 of ti){if(!_0x3c743b['plugins']['has'](_0xefad02))continue;const _0x3ca0f6=_0xefad02['slice'](0x0,-0x7)['toLowerCase'](),_0x237311='FORMAT_'+_0x3ca0f6['toUpperCase']();_0x3ce01e['enableDefaultAttributesIntegration'](_0x3ca0f6),_0x3ce01e['registerInlineAttribute'](_0x3ca0f6),_0x3ce01e['descriptionFactory']['registerAttributeLabel'](_0x3ca0f6,o(_0x395bdf,_0x237311));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x207333=this['editor'],_0x4aa286=_0x207333['locale'],_0x456c5d=_0x207333['plugins']['get']('TrackChangesEditing');function _0xd36969(_0x20657a,_0x5cbd79){_0x456c5d['descriptionFactory']['registerDescriptionCallback'](_0x3634c4=>{if('formatInline'!=_0x3634c4['type'])return;const {data:_0x3faa6b}=_0x3634c4;return _0x3faa6b&&_0x3faa6b['commandName']===_0x20657a?_0x3faa6b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4aa286,'*Format:*\x20%0',_0x5cbd79)}:{'type':'format','content':o(_0x4aa286,'*Remove\x20format:*\x20%0',_0x5cbd79)}:void 0x0;});}_0xd36969('bold',o(_0x4aa286,'FORMAT_BOLD')),_0xd36969('italic',o(_0x4aa286,'FORMAT_ITALIC')),_0xd36969('underline',o(_0x4aa286,'FORMAT_UNDERLINE')),_0xd36969('code',o(_0x4aa286,'FORMAT_CODE')),_0xd36969('strikethrough',o(_0x4aa286,'FORMAT_STRIKETHROUGH')),_0xd36969('subscript',o(_0x4aa286,'FORMAT_SUBSCRIPT')),_0xd36969('superscript',o(_0x4aa286,'FORMAT_SUPERSCRIPT'));}}class F extends _0x16a7c5{['afterInit'](){const _0x396bbe=this['editor'],_0x483ff9=_0x396bbe['locale'];if(!_0x396bbe['plugins']['has']('BlockQuoteEditing'))return;const _0x1c9e51=_0x396bbe['plugins']['get']('TrackChangesEditing'),_0x2848df=this['editor']['commands']['get']('blockQuote');_0x1c9e51['enableCommand']('blockQuote',(_0x32b3a0,_0x2d86ab={})=>{const _0x1dad55=this['editor']['model']['document']['selection'],_0x38f055=_0x2d86ab&&void 0x0!==_0x2d86ab['forceValue']?_0x2d86ab['forceValue']:!_0x2848df['value'];let _0x5c0570=[];if(_0x38f055){const _0x80390a=Array['from'](_0x1dad55['getSelectedBlocks']())['filter'](_0x306e41=>oo(_0x306e41)||function(_0xd2015c,_0x1dba38){const _0x3dbdd6=_0x1dba38['checkChild'](_0xd2015c['parent'],'blockQuote'),_0x375460=_0x1dba38['checkChild'](['$root','blockQuote'],_0xd2015c);return _0x3dbdd6&&_0x375460;}(_0x306e41,this['editor']['model']['schema']));_0x5c0570=to(_0x80390a,_0x396bbe['model']);}else{const _0x51bbaa=Array['from'](_0x1dad55['getSelectedBlocks']())['filter'](_0x4a649c=>oo(_0x4a649c));_0x5c0570=to(_0x51bbaa,_0x396bbe['model']);}_0x396bbe['model']['change'](()=>{for(const _0xdcff5e of _0x5c0570)_0x1c9e51['markBlockFormat'](_0xdcff5e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x38f055}]});});}),_0x1c9e51['descriptionFactory']['registerDescriptionCallback'](_0x395d9e=>{const {data:_0x24ca40}=_0x395d9e;if(_0x24ca40&&'blockQuote'==_0x24ca40['commandName']){const _0x27a558=o(_0x483ff9,'ELEMENT_BLOCK_QUOTE');return _0x24ca40['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x483ff9,'*Set\x20format:*\x20%0',_0x27a558)}:{'type':'format','content':o(_0x483ff9,'*Remove\x20format:*\x20%0',_0x27a558)};}});}}function oo(_0x32e59f){return'blockQuote'==_0x32e59f['parent']['name'];}class L extends _0x16a7c5{['afterInit'](){const _0xcd2483=this['editor'];_0xcd2483['plugins']['has']('CaseChange')&&(_0xcd2483['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xcd2483['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xcd2483['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x16a7c5{['afterInit'](){const _0xd3e224=this['editor'];_0xd3e224['commands']['get']('ckbox')&&_0xd3e224['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x16a7c5{['afterInit'](){const _0x2ec679=this['editor'];if(!_0x2ec679['plugins']['has']('CodeBlock'))return;const _0x372444=_0x2ec679['plugins']['get']('TrackChangesEditing'),_0x376950=_0x2ec679['locale'],_0x16794b=_0x2ec679['config']['get']('codeBlock')['languages'],_0x39fbff=_0x2ec679['commands']['get']('codeBlock');_0x372444['enableCommand']('indentCodeBlock'),_0x372444['enableCommand']('outdentCodeBlock'),_0x372444['enableCommand']('codeBlock',(_0x643433,_0x345c58={})=>{const _0x1bb3a2=_0x2ec679['model'],_0x4ad9f7=_0x2ec679['model']['document']['selection'],_0x43024e=_0x345c58&&void 0x0!==_0x345c58['forceValue']?_0x345c58['forceValue']:!_0x39fbff['value'];let _0x167551;_0x345c58['language']||(_0x345c58['language']=_0x16794b[0x0]['language']),_0x167551=_0x43024e?Array['from'](_0x4ad9f7['getSelectedBlocks']())['filter'](_0x32eb1b=>eo(_0x32eb1b)||function(_0x4db971,_0x4d7cfc){if(_0x4db971['is']('rootElement')||_0x4d7cfc['isLimit'](_0x4db971))return!0x1;return _0x4d7cfc['checkChild'](_0x4db971['parent'],'codeBlock');}(_0x32eb1b,_0x1bb3a2['schema'])):Array['from'](_0x4ad9f7['getSelectedBlocks']())['filter'](_0x3f4927=>eo(_0x3f4927));const _0x499e7a=to(_0x167551,_0x1bb3a2);_0x1bb3a2['change'](()=>{for(const _0xb1d33d of _0x499e7a)_0x372444['markBlockFormat'](_0xb1d33d,{'commandName':'codeBlock','commandParams':[{..._0x345c58,'forceValue':_0x43024e}],'formatGroupId':'blockName'});});}),(_0x372444['descriptionFactory']['registerElementLabel']('codeBlock',_0x5144ec=>o(_0x376950,'ELEMENT_CODE_BLOCK',_0x5144ec)),_0x372444['descriptionFactory']['registerDescriptionCallback'](_0xd9f0ba=>{if('formatBlock'!=_0xd9f0ba['type'])return;const _0x58cf79=_0x376950['t'],{data:_0x27b0fb}=_0xd9f0ba;if(!_0x27b0fb||'codeBlock'!=_0x27b0fb['commandName'])return;const _0x2db765=_0x27b0fb['commandParams'][0x0]['language'],_0x3ef695=_0x58cf79(_0x16794b['find'](_0x3c915=>_0x3c915['language']===_0x2db765)['label'])['toLowerCase']();return _0x27b0fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x376950,'*Set\x20format:*\x20%0',o(_0x376950,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3ef695+')')}:{'type':'format','content':o(_0x376950,'*Remove\x20format:*\x20%0',o(_0x376950,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x153364){return'codeBlock'==_0x153364['name'];}class q extends _0x16a7c5{['afterInit'](){const _0x4324aa=this['editor'];if(!_0x4324aa['plugins']['has']('CommentsEditing'))return;_0x4324aa['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x54c1e2,_0x24972a,_0x55359e){const _0x28d9b8=[];for(const _0x300fbf of _0x24972a['getItems']())_0x300fbf['hasAttribute'](_0x54c1e2)&&_0x28d9b8['push'](_0x55359e['createRangeOn'](_0x300fbf));return _0x28d9b8;}function _e(_0x460bf7,_0x27cb43,{showActiveMarker:_0x45156f=!0x0}={}){const _0x5065ba=_0x460bf7['plugins']['get']('TrackChangesEditing');return(_0x1eb330,_0x152594,_0xb73340)=>{if(!_0xb73340['consumable']['test'](_0x152594['markerRange'],_0x1eb330['name']))return;const _0x549524=_0x152594['markerRange']['getWalker'](),_0x1a0fa6=_0x152594['markerRange']['start'],_0x489d9e=_0x460bf7['model']['schema'];let _0x55d2a6=null,_0x3a0554=null,_0x43f7e4=!0x1,_0x566ee1=!0x1;for(const _0x139a43 of _0x549524){const _0x30777b=_0x139a43['item'];_0x43f7e4=_0x43f7e4||_0x489d9e['isContent'](_0x30777b);const _0x2b0584=_0xb73340['mapper']['toViewElement'](_0x30777b);if(_0x2b0584&&_0x2b0584['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x139a43['type']&&(_0x489d9e['isBlock'](_0x30777b)&&!_0x489d9e['isLimit'](_0x30777b)&&(_0x30777b['nextSibling']||_0x1a0fa6['isAtEnd']?_0x55d2a6&&_0x55d2a6['parent']==_0x30777b||(_0x55d2a6=_0x30777b,_0x88e6e5(_0x139a43['previousPosition']),_0x566ee1=!0x0):_0x3a0554=_0x3a0554||_0x139a43['previousPosition']));}function _0x88e6e5(_0x592571){const {authorId:_0x32f47f}=_0x5065ba['_splitMarkerName'](_0x152594['markerName']),_0x1b7f5d=_0xb73340['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x27cb43,'data-author-id':_0x32f47f}),_0x4517b6=_0xb73340['mapper']['toViewPosition'](_0x592571);_0x45156f&&_0x5065ba['activeMarkers']['includes'](_0x152594['markerName'])&&_0xb73340['writer']['addClass']('ck-suggestion-marker--active',_0x1b7f5d),_0xb73340['writer']['insert'](_0x4517b6,_0x1b7f5d),_0xb73340['mapper']['bindElementToMarker'](_0x1b7f5d,_0x152594['markerName']);}_0x43f7e4||_0x566ee1||!_0x3a0554||_0x88e6e5(_0x3a0554);};}class z extends _0x16a7c5{static get['requires'](){return[_0x23348a];}['init'](){const _0x2642ad=this['editor'],_0x59aab6=_0x2642ad['plugins']['get']('TrackChangesEditing');_0x59aab6['enableCommand']('delete');const _0x499239=_0x2642ad['commands']['get']('deleteForward');_0x59aab6['enableCommand']('deleteForward',(_0xee7397,_0x59103b={})=>{const _0xb6091d=_0x2642ad['model']['createSelection'](_0x2642ad['model']['document']['selection']);_0xb6091d['isCollapsed']&&_0x2642ad['model']['modifySelection'](_0xb6091d,{'direction':'forward','unit':_0x59103b['unit']});const _0x42d679=_0xb6091d['getFirstRange'](),_0x26e4d2=_0x2fdf13['fromRange'](_0x42d679);let _0x561549;_0xee7397(_0x59103b),_0x561549='$graveyard'==_0x26e4d2['root']['rootName']?_0x2642ad['model']['createRange'](_0x42d679['start']):_0x2642ad['model']['createRange'](_0x26e4d2['start'],_0x26e4d2['end']),_0x26e4d2['detach'](),_0x2642ad['model']['enqueueChange'](_0x499239['buffer']['batch'],_0x375626=>{_0x499239['buffer']['lock'](),_0x375626['setSelection'](_0x375626['createRange'](_0x561549['end'])),_0x499239['buffer']['unlock']();});}),_0x2642ad['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2642ad,'merge'),{'priority':'high'}),_0x2642ad['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x21d4fa,_0xf4a81d,_0x1e7eda)=>{_0x1e7eda['options']['showSuggestionHighlights']&&_e(_0x2642ad,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x21d4fa,_0xf4a81d,_0x1e7eda);},{'priority':'high'}),_0x2642ad['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4938f8,_0x2a3492,_0x2f64e2)=>{const _0x2d7495=_0x2f64e2['mapper']['markerNameToElements'](_0x2a3492['markerName']);if(_0x2d7495){for(const _0x548f2d of _0x2d7495)_0x548f2d['is']('uiElement')&&(_0x2f64e2['mapper']['unbindElementFromMarkerName'](_0x548f2d,_0x2a3492['markerName']),_0x2f64e2['writer']['remove'](_0x548f2d));}},{'priority':'high'});}}class K extends _0x16a7c5{['afterInit'](){const _0x2ab5a7=this['editor'];if(!_0x2ab5a7['plugins']['has']('ListEditing'))return;const _0x3a3505=_0x2ab5a7['locale'],_0x3a1df0=_0x2ab5a7['plugins']['get']('TrackChangesEditing'),_0x1a7cfc=_0x2ab5a7['plugins']['has']('TodoListEditing'),_0xceafe6=!!_0x2ab5a7['config']['get']('list.multiBlock');function _0x371140(_0x19eaf2){return{'type':'format','content':''+o(_0x3a3505,'*Set\x20format:*\x20%0',_0x19eaf2)};}function _0x4deec8(_0x16ed3b){return{'type':'format','content':''+o(_0x3a3505,'*Remove\x20format:*\x20%0',_0x16ed3b)};}_0x3a1df0['enableDefaultAttributesIntegration']('numberedList'),_0x3a1df0['enableDefaultAttributesIntegration']('bulletedList'),_0x3a1df0['enableDefaultAttributesIntegration']('customNumberedList'),_0x3a1df0['enableDefaultAttributesIntegration']('customBulletedList'),_0x3a1df0['enableDefaultAttributesIntegration']('indentList'),_0x3a1df0['enableDefaultAttributesIntegration']('outdentList'),_0x3a1df0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3a1df0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3a1df0['registerBlockAttribute']('listItemId'),_0x3a1df0['registerBlockAttribute']('listType'),_0x3a1df0['registerBlockAttribute']('listIndent'),_0xceafe6&&(_0x3a1df0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3a1df0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1a7cfc&&(_0x3a1df0['enableDefaultAttributesIntegration']('todoList'),_0x3a1df0['enableDefaultAttributesIntegration']('checkTodoList'),_0x3a1df0['registerBlockAttribute']('todoListChecked'),_0x3a1df0['descriptionFactory']['registerDescriptionCallback'](_0x471cc1=>{const {data:_0x187e32}=_0x471cc1;if(_0x187e32&&'todoListChecked'==_0x187e32['key'])return{'type':'format','content':_0x187e32['newValue']?o(_0x3a3505,'*Check\x20item*'):o(_0x3a3505,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ba96c=>{if(_0x2ba96c['batch']['isUndo'])return!0x1;let _0x533253=!0x1;const _0x5913d6=_0x3a1df0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x553d8c=>'todoListChecked'===_0x3a1df0['_getAttributeKey'](_0x553d8c));for(const _0x53c527 of _0x5913d6){'todo'!=_0x53c527['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3a1df0['_findSuggestions'](_0x53c527['getFirstRange'](),'attribute')['find'](_0x5b282f=>'listType'===_0x3a1df0['_getAttributeKey'](_0x5b282f['suggestion']))||(_0x2ba96c['removeMarker'](_0x53c527['getFirstMarker']()),_0x533253=!0x0));}return _0x533253;})),_0x3a1df0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3a3505,'FORMAT_INDENT'));const _0x53facc={'type':'format','content':''};_0x3a1df0['descriptionFactory']['registerDescriptionCallback'](_0x45ab04=>{const {data:_0x49ca1e}=_0x45ab04;if(!_0x49ca1e||'listType'!=_0x49ca1e['key'])return;let _0x5340a3=_0x45ab04['head'];for(;_0x5340a3;){if(_0x5340a3['data']&&(('listStyle'==_0x5340a3['data']['key']||'listMarkerStyle'==_0x5340a3['data']['key'])&&(_0x5340a3['data']['newValue']&&'default'!=_0x5340a3['data']['newValue']||'default'!=_0x5340a3['data']['oldValue']&&!_0x49ca1e['newValue'])||!_0xceafe6&&_0x5340a3['data']['key']==m))return _0x53facc;_0x5340a3=_0x5340a3['next'];}if(null==_0x49ca1e['newValue'])switch(_0x49ca1e['oldValue']){case'bulleted':return _0x4deec8(o(_0x3a3505,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4deec8(o(_0x3a3505,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4deec8(o(_0x3a3505,'ELEMENT_TODO_LIST'));}switch(_0x49ca1e['newValue']){case'bulleted':return _0x371140(o(_0x3a3505,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x371140(o(_0x3a3505,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x371140(o(_0x3a3505,'ELEMENT_TODO_LIST'));}}),_0x3a1df0['descriptionFactory']['registerDescriptionCallback'](_0x361ee0=>{const {data:_0x1c841e}=_0x361ee0;if(_0x1c841e&&'listIndent'==_0x1c841e['key'])return null==_0x1c841e['newValue']||null==_0x1c841e['oldValue']&&0x0==_0x1c841e['newValue']?_0x53facc:void 0x0;}),_0x3a1df0['descriptionFactory']['registerDescriptionCallback'](_0x44c92e=>{if('attribute'!=_0x44c92e['type'])return;const {data:_0x3b536f}=_0x44c92e;if(!_0x3b536f||'listItemId'!=_0x3b536f['key'])return;const _0x1bf77e=Ee(_0x44c92e);return'newValue'==_0x1bf77e?{'type':'format','content':o(_0x3a3505,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1bf77e?{'type':'format','content':o(_0x3a3505,'*Split:*\x20list\x20item')}:_0x53facc;}),_0x2ab5a7['model']['document']['registerPostFixer'](_0x200eac=>this['listItemIdFixer'](_0x200eac)),_0x2ab5a7['model']['document']['registerPostFixer'](_0x47ba54=>this['noTrackChangesFixer'](_0x47ba54)),_0x2ab5a7['model']['document']['on']('change:data',(_0x3bae8d,_0xeac8f1)=>{if(_0xeac8f1['isUndo']||!_0xeac8f1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1bf9cc){if(_0x1bf9cc['batch']['isUndo']||!_0x1bf9cc['batch']['isLocal'])return!0x1;let _0x18be76=!0x1;const _0x31f837=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ada56=>_0x2ada56['data']&&'listItemId'==_0x2ada56['data']['key'])['filter'](_0x1f5a58=>_0x1f5a58['data']['newValue']&&_0x1f5a58['data']['oldValue']);for(const _0x2a212e of _0x31f837)Ee(_0x2a212e)||(_0x1bf9cc['removeMarker'](_0x2a212e['getFirstMarker']()),_0x18be76=!0x0);return _0x18be76;}['noTrackChangesFixer'](_0x165c69){if(_0x165c69['batch']['isUndo']||!_0x165c69['batch']['isLocal'])return!0x1;const _0x2adb2f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2adb2f['trackChangesCommand']['value'])return!0x1;let _0x4cf490=!0x1;const _0x47f62f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x480fca=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x29c1bf=>'attribute'==_0x29c1bf['type'])['filter'](_0xe41423=>_0x47f62f['includes'](_0xe41423['attributeKey']));if(0x0==_0x480fca['length'])return _0x4cf490;for(const _0x892318 of _0x480fca){const _0x114aea=_0x2adb2f['_findSuggestions'](_0x892318['range'],'attribute')['filter'](_0x54afa7=>!_0x54afa7['meta']['isNextTo'])['map'](_0x731aaa=>_0x731aaa['suggestion'])['filter'](_0x26e109=>{const _0x5c06f9=_0x2adb2f['_getAttributeKey'](_0x26e109);return _0x47f62f['includes'](_0x5c06f9);});if(_0x114aea['length']){for(const _0x55ab0d of _0x114aea)_0x165c69['removeMarker'](_0x55ab0d['getFirstMarker']());_0x4cf490=!0x0;}}return _0x4cf490;}['assureChains'](){const _0x2ee18c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fd3d3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x149d10;const _0x38f9d2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e5f20=>{if(_0x5e5f20['data']['oldRange']||!_0x5e5f20['data']['newRange'])return null;if(!_0x5e5f20['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3db613}=_0x2ee18c['_splitMarkerName'](_0x5e5f20['name']);if(!_0x2ee18c['hasSuggestion'](_0x3db613))return null;const _0x15c242=_0x2ee18c['getSuggestion'](_0x3db613);return _0x4fd3d3['includes'](_0x15c242['data']['key']);})['map'](_0x1d4f2e=>{const {id:_0x1cfbbb}=_0x2ee18c['_splitMarkerName'](_0x1d4f2e['name']),_0x14f667=_0x2ee18c['getSuggestion'](_0x1cfbbb);return _0x149d10=_0x14f667['attributes']['groupId'],_0x14f667['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x38f9d2['size'])return;const _0x3a613f=_0x2ee18c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54da61=>'attribute'==_0x54da61['type']&&_0x54da61['data']&&_0x4fd3d3['includes'](_0x54da61['data']['key'])&&_0x54da61['attributes']['groupId']!=_0x149d10)['map'](_0x2990a2=>({'listItem':_0x2990a2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2990a2['attributes']['groupId']})),_0x258b94=new Set();for(const {groupId:_0x1f57b1,listItem:_0x35e8af}of _0x3a613f)_0x38f9d2['has'](_0x35e8af)&&_0x258b94['add'](_0x1f57b1);for(const _0x12d5de of _0x2ee18c['getSuggestions']())_0x258b94['has'](_0x12d5de['attributes']['groupId'])&&_0x12d5de['setAttribute']('groupId',_0x149d10);}['_supportLegacySuggestions'](){const _0x284d44=this['editor'],_0x37e153=_0x284d44['locale'],_0x1d29e8=_0x284d44['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1d29e8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x50647d,_0x5e28c2){const _0x3c8489=[];for(let _0x182ca2 of _0x50647d)_0x182ca2['start']['nodeAfter']===_0x182ca2['end']['parent']&&(_0x182ca2=_0x284d44['model']['createRange'](_0x284d44['model']['createPositionAt'](_0x182ca2['start']['nodeAfter'],0x0))),_0x3c8489['push'](_0x182ca2);_0x284d44['model']['change'](_0x252855=>{const _0x3f4730=_0x284d44['model']['document']['selection'],_0x4a0d8c=Array['from'](_0x3f4730['getRanges']())['map'](_0x2aa3c8=>_0x2fdf13['fromRange'](_0x2aa3c8));_0x252855['setSelection'](_0x3c8489),_0x284d44['commands']['get'](_0x5e28c2['commandName'])['refresh'](),_0x5e28c2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x284d44['execute'](_0x5e28c2['commandName'],..._0x5e28c2['commandParams']),_0x252855['setSelection'](_0x4a0d8c);for(const _0xd20c0a of _0x4a0d8c)_0xd20c0a['detach']();});}),_0x1d29e8['descriptionFactory']['registerElementLabel'](function(_0x1fcf91){const _0x5d5b6e=!_0x284d44['model']['schema']['isObject'](_0x1fcf91),_0x51dc4d=_0x1fcf91['previousSibling'],_0x755701=_0x1fcf91['nextSibling'],_0x452ba1=_0x1fcf91['getAttribute']('listItemId'),_0x28888a=!_0x51dc4d||_0x51dc4d['getAttribute']('listItemId')!==_0x452ba1,_0x44d03e=!_0x755701||_0x755701['getAttribute']('listItemId')!==_0x452ba1;return _0x5d5b6e&&Boolean(_0x452ba1)&&_0x28888a&&_0x44d03e;},_0x45c347=>o(_0x37e153,'ELEMENT_LIST_ITEM',_0x45c347));}['_registerLegacyDescription'](){const _0x1043bb=this['editor'],_0x1909ea=_0x1043bb['locale'];function _0x1b475f(_0x2b4d0e){const _0x1de0c2=_0x1043bb['commands']['get']('bulletedList')['value'],_0x42dc52=_0x1043bb['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b4d0e?_0x1de0c2:_0x42dc52;}_0x1043bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4cd0cc){if('formatBlock'!=_0x4cd0cc['type'])return;const {data:_0x4dc0ea}=_0x4cd0cc;if(!_0x4dc0ea)return;let _0x300612,_0x285442,_0x3c8b0b,_0x215dcd;switch(_0x4dc0ea['commandName']){case'bulletedList':_0x3c8b0b=_0x4dc0ea['commandParams'][0x0]['forceValue'],_0x215dcd=_0x1b475f(_0x4dc0ea['commandName']),_0x300612=_0x3c8b0b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x215dcd&&_0x1043bb['config']['get']('list.multiBlock')||(_0x300612='*Change\x20to:*\x20%0'),_0x285442={'type':'format','content':o(_0x1909ea,_0x300612,o(_0x1909ea,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3c8b0b=_0x4dc0ea['commandParams'][0x0]['forceValue'],_0x215dcd=_0x1b475f(_0x4dc0ea['commandName']),_0x300612=_0x3c8b0b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x215dcd&&_0x1043bb['config']['get']('list.multiBlock')||(_0x300612='*Change\x20to:*\x20%0'),_0x285442={'type':'format','content':o(_0x1909ea,_0x300612,o(_0x1909ea,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x300612='*Indent:*\x20%0',_0x285442={'type':'format','content':o(_0x1909ea,_0x300612,o(_0x1909ea,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x300612=function(_0x1d3403){const _0xceaa80=_0x1d3403['getFirstRange']();let _0x404896=_0xceaa80['start']['nodeAfter'];for(;_0x404896&&_0xceaa80['containsItem'](_0x404896);){if(_0x404896['getAttribute']('listIndent')>0x0)return!0x1;_0x404896=_0x404896['nextSibling'];}return!0x0;}(_0x4cd0cc)?o(_0x1909ea,'*Format:*\x20remove\x20from\x20%0',o(_0x1909ea,function(_0x385f3b){return'ELEMENT_'+_0x385f3b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4cd0cc))):o(_0x1909ea,'*Outdent:*\x20%0',o(_0x1909ea,'ELEMENT_LIST_ITEM')),_0x285442={'type':'format','content':_0x300612};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4dc0ea['multipleBlocks']&&(_0x300612='*Merge:*\x20%0',_0x285442={'type':'deletion','content':o(_0x1909ea,_0x300612,o(_0x1909ea,'ELEMENT_LIST_ITEM'))});}return _0x285442;});}}function Ee(_0x27240c){let _0x439165=_0x27240c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x439165;){const _0x2e9958=_0x439165['getAttribute']('listItemId');if(!_0x2e9958)return!0x1;if(_0x2e9958==_0x27240c['data']['newValue'])return'newValue';if(_0x2e9958==_0x27240c['data']['oldValue'])return'oldValue';_0x439165=_0x439165['previousSibling'];}return!0x1;}class pe extends _0x16a7c5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3d1609=this['editor']['config']['get']('list.properties'),_0x2cd6aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d1609['styles']&&(_0x2cd6aa['enableDefaultAttributesIntegration']('listStyle'),_0x2cd6aa['registerBlockAttribute']('listStyle')),_0x3d1609['reversed']&&(_0x2cd6aa['enableDefaultAttributesIntegration']('listReversed'),_0x2cd6aa['registerBlockAttribute']('listReversed')),_0x3d1609['startIndex']&&(_0x2cd6aa['enableDefaultAttributesIntegration']('listStart'),_0x2cd6aa['registerBlockAttribute']('listStart'));const _0x103290={'type':'format','content':''};_0x2cd6aa['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x28f168=this['editor']['locale'];_0x2cd6aa['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x28f168,'FORMAT_LIST_REVERSED')),_0x2cd6aa['descriptionFactory']['registerDescriptionCallback'](_0x1bd395=>{const {data:_0x39b08f}=_0x1bd395;if(_0x39b08f&&'listReversed'==_0x39b08f['key'])return null==_0x39b08f['newValue']||0x0==_0x39b08f['newValue']&&null==_0x39b08f['oldValue']?_0x103290:void 0x0;}),_0x2cd6aa['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x28f168,'FORMAT_LIST_START')),_0x2cd6aa['descriptionFactory']['registerDescriptionCallback'](_0x50df77=>{const {data:_0x45a032}=_0x50df77;if(_0x45a032&&'listStart'==_0x45a032['key'])return null==_0x45a032['newValue']||0x1==_0x45a032['newValue']&&null==_0x45a032['oldValue']?_0x103290:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x47ef17=>{if(_0x47ef17['batch']['isUndo'])return!0x1;let _0xf4b5fd=!0x1;const _0x582c7b=_0x2cd6aa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x162eca=>{const _0x59cbbc=_0x2cd6aa['_getAttributeKey'](_0x162eca);return'listStart'==_0x59cbbc||'listReversed'==_0x59cbbc;});for(const _0x183abb of _0x582c7b){const _0xac29b4=_0x183abb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xac29b4||'customNumbered'==_0xac29b4)continue;_0x2cd6aa['_findSuggestions'](_0x183abb['getFirstRange'](),'attribute')['find'](_0x16cefa=>'listType'==_0x2cd6aa['_getAttributeKey'](_0x16cefa['suggestion']))||(_0x47ef17['removeMarker'](_0x183abb['getFirstMarker']()),_0xf4b5fd=!0x0);}return _0xf4b5fd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4e5e4c){const _0x212ce1=this['editor']['locale'],{data:_0x47283d}=_0x4e5e4c,_0x3554aa={'type':'format','content':''};if(!_0x47283d||'listStyle'!=_0x47283d['key'])return;if(!_0x47283d['oldValue'])return'default'==_0x47283d['newValue']?_0x3554aa:{'type':'format','content':''+o(_0x212ce1,'*Set\x20format:*\x20%0',o(_0x212ce1,this['_getTranslationKeyForListStyle'](_0x47283d['newValue'])))};if(!_0x47283d['newValue']){if('default'==_0x47283d['oldValue'])return _0x3554aa;let _0x3878c9=_0x4e5e4c['head'];for(;_0x3878c9;){if(_0x3878c9['data']&&'listType'==_0x3878c9['data']['key']&&_0x3878c9['data']['newValue'])return _0x3554aa;_0x3878c9=_0x3878c9['next'];}return{'type':'format','content':''+o(_0x212ce1,'*Remove\x20format:*\x20%0',o(_0x212ce1,this['_getTranslationKeyForListStyle'](_0x47283d['oldValue'])))};}if('default'!=_0x47283d['newValue'])return{'type':'format','content':''+o(_0x212ce1,'*Set\x20format:*\x20%0',o(_0x212ce1,this['_getTranslationKeyForListStyle'](_0x47283d['newValue'])))};let _0x133fb0=_0x4e5e4c['head'];for(;_0x133fb0;){if(_0x133fb0['data']&&'listType'==_0x133fb0['data']['key']&&_0x133fb0['data']['newValue']&&_0x133fb0['data']['oldValue'])return _0x3554aa;_0x133fb0=_0x133fb0['next'];}return{'type':'format','content':o(_0x212ce1,'*Set\x20format:*\x20%0',o(_0x212ce1,'ELEMENT_'+_0x4e5e4c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x442e12=this['editor'],_0x5d032f=_0x442e12['locale'];_0x442e12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f82e5=>{if('formatBlock'!=_0x3f82e5['type'])return;const {data:_0x3fdfd4}=_0x3f82e5;if(!_0x3fdfd4)return;let _0x4290d2,_0x304ee8;switch(_0x3fdfd4['commandName']){case'listStyle':_0x4290d2='*Change\x20to:*\x20%0',_0x304ee8={'type':'format','content':o(_0x5d032f,_0x4290d2,o(_0x5d032f,this['_getTranslationKeyForListStyle'](_0x3fdfd4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4290d2=_0x3fdfd4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x304ee8={'type':'format','content':o(_0x5d032f,_0x4290d2)};break;case'listStart':_0x4290d2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x304ee8={'type':'format','content':o(_0x5d032f,_0x4290d2,_0x3fdfd4['commandParams'][0x0]['startIndex'])};}return _0x304ee8;});}['_getTranslationKeyForListStyle'](_0x54f79a){return'ELEMENT_'+function(_0x19e3ff){if(ye['includes'](_0x19e3ff))return'bulleted';if(Se['includes'](_0x19e3ff))return'numbered';return null;}(_0x54f79a)['toUpperCase']()+'_LIST_'+_0x54f79a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x16a7c5{static get['requires'](){return[_0x3d021d];}['init'](){const _0x2a99f2=this['editor'],_0x1971b1=_0x2a99f2['plugins']['get']('TrackChangesEditing'),_0x24c8a8=_0x2a99f2['commands']['get']('enter');_0x1971b1['enableCommand']('enter',()=>{_0x2a99f2['model']['change'](_0x2d79a5=>{const _0x530ae1=_0x2a99f2['model']['document']['selection'],_0x5cc6e5=_0x530ae1['getFirstPosition'](),_0x2b5789=_0x2fdf13['fromRange'](_0x530ae1['getFirstRange']());if(_0x24c8a8['enterBlock'](_0x2d79a5)){const _0x4e9ac7=_0x2a99f2['model']['createPositionAt'](_0x5cc6e5['parent']['nextSibling'],0x0),_0x7d926c=_0x2d79a5['createRange'](_0x5cc6e5,_0x4e9ac7);_0x1971b1['markInsertion'](_0x7d926c);}else _0x2d79a5['setSelection'](_0x2d79a5['createRange'](_0x2b5789['end']));_0x2b5789['detach'](),_0x24c8a8['fire']('afterExecute',{'writer':_0x2d79a5});});}),_0x2a99f2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2a99f2,'split'),{'priority':'high'}),_0x2a99f2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x708658,_0x597dfc,_0x3e558f)=>{const _0x55a7f5=_0x3e558f['mapper']['markerNameToElements'](_0x597dfc['markerName']);if(_0x55a7f5){for(const _0x11c0de of _0x55a7f5)_0x11c0de['hasClass']('ck-suggestion-marker-split')&&(_0x3e558f['mapper']['unbindElementFromMarkerName'](_0x11c0de,_0x597dfc['markerName']),_0x3e558f['writer']['remove'](_0x11c0de));}},{'priority':'high'}),_0x2a99f2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1007d4,_0x519ece,_0x16030f)=>{_0x16030f['options']['showSuggestionHighlights']&&_e(_0x2a99f2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1007d4,_0x519ece,_0x16030f);},{'priority':'high'});}}class X extends _0x16a7c5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5a3f27=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a3f27['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5a3f27['enableCommand']('findNext'),_0x5a3f27['enableCommand']('findPrevious'),_0x5a3f27['enableCommand']('replace'),_0x5a3f27['enableCommand']('replaceAll');}['handleFindCommand'](_0x5412e7,_0x62bbfe,_0x11988a={}){const _0xe264bb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5412e7(_0x440a48=>{let _0x5e06b4=('string'==typeof _0x62bbfe?_0xe264bb['findByTextCallback'](_0x62bbfe,_0x11988a):_0x62bbfe)(_0x440a48);Array['isArray'](_0x5e06b4)&&(_0x5e06b4={'results':_0x5e06b4,'searchText':'string'==typeof _0x62bbfe?_0x62bbfe:''});const _0x2ea64d=_0x5e06b4['results']['filter'](_0x77902a=>!0x1===this['_isInDeletionRange'](_0x77902a,_0x440a48['item']));return{..._0x5e06b4,'results':_0x2ea64d};},_0x11988a);}['_isInDeletionRange'](_0x1eb3a3,_0x161aeb){const _0x3f7157=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x161aeb,_0x1eb3a3['start']),this['editor']['model']['createPositionAt'](_0x161aeb,_0x1eb3a3['end']));for(const _0x484998 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3f7157['getIntersection'](_0x484998['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x16a7c5{['afterInit'](){const _0x5bcd15=this['editor']['locale'],_0x578614=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5e5fdb,commandName:_0x5f3deb}of ro)this['editor']['plugins']['has'](_0x5e5fdb)&&(_0x578614['enableDefaultAttributesIntegration'](_0x5f3deb),_0x578614['registerInlineAttribute'](_0x5f3deb));_0x578614['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5bcd15,'FORMAT_FONT_SIZE')),_0x578614['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5bcd15,'FORMAT_FONT_FAMILY')),_0x578614['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5bcd15,'FORMAT_FONT_COLOR')),_0x578614['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5bcd15,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c8b0d=this['editor'],_0x21875b=_0x2c8b0d['locale'];_0x2c8b0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x260ed3=>{const _0x2df1bc=_0x21875b['t'];if('formatInline'!=_0x260ed3['type'])return;const {data:_0x304206}=_0x260ed3;if(null!=_0x304206){if('fontSize'==_0x304206['commandName']){const _0x37a29e=_0x304206['commandParams'][0x0]['value'];if(_0x37a29e){const _0x1744fe=_0x2df1bc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x84b1ca=>_0x84b1ca['model']==_0x37a29e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x21875b,'*Set\x20font\x20size:*\x20%0',_0x1744fe)};}return{'type':'format','content':o(_0x21875b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x304206['commandName']){const _0xc581db=_0x304206['commandParams'][0x0]['value'];return _0xc581db?{'type':'format','content':o(_0x21875b,'*Set\x20font\x20family:*\x20%0',_0xc581db)}:{'type':'format','content':o(_0x21875b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x304206['commandName']){const _0x3ff212=_0x304206['commandParams'][0x0]['value'];if(_0x3ff212){const _0x5719a7=_0x3400f2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x353262=>_0x353262['model']==_0x3ff212);let _0x404bd0=_0x3ff212,_0x14626a='';return _0x5719a7&&(_0x404bd0=_0x5719a7['label'],_0x14626a=_0x2df1bc(_0x404bd0)['toLowerCase']()),{'type':'format','content':o(_0x21875b,'*Set\x20font\x20color:*\x20%0',_0x14626a)['trim'](),'color':{'value':_0x3ff212,'title':_0x14626a||_0x404bd0}};}return{'type':'format','content':o(_0x21875b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x304206['commandName']){const _0x213cdb=_0x304206['commandParams'][0x0]['value'];if(_0x213cdb){const _0x24b4e4=_0x3400f2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x189109=>_0x189109['model']==_0x213cdb);let _0x2694b6=_0x213cdb,_0x2062bb='';return _0x24b4e4&&(_0x2694b6=_0x24b4e4['label'],_0x2062bb=_0x2df1bc(_0x2694b6)['toLowerCase']()),{'type':'format','content':o(_0x21875b,'*Set\x20font\x20background\x20color:*\x20%0',_0x2062bb)['trim'](),'color':{'value':_0x213cdb,'title':_0x2062bb||_0x2694b6}};}return{'type':'format','content':o(_0x21875b,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x16a7c5{['afterInit'](){const _0x5af2cb=this['editor'],_0x8e37ac=_0x5af2cb['plugins']['get']('TrackChangesEditing'),_0x431d24=_0x5af2cb['commands']['get']('copyFormat'),_0x80a14a=_0x5af2cb['commands']['get']('pasteFormat');_0x431d24&&_0x80a14a&&(_0x8e37ac['enableDefaultAttributesIntegration']('pasteFormat'),_0x8e37ac['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2a9c16=this['editor'],_0xbdbb78=_0x2a9c16['locale'];_0x2a9c16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4986d5=>{if('formatBlock'!=_0x4986d5['type']&&'formatInline'!=_0x4986d5['type'])return;const {data:_0x53cac2}=_0x4986d5;if(_0x53cac2&&'pasteFormat'===_0x53cac2['commandName']){const _0x520ac0=[],_0x2bd3bc=_0x53cac2['commandParams'][0x0];for(const [_0x468e60,_0xbc5848]of Object['entries'](_0x2bd3bc))_0x520ac0['push'](so(_0x2a9c16,_0x468e60,_0xbc5848));return _0x520ac0['length']?{'type':'format','content':o(_0xbdbb78,'*Set\x20format\x20to:*\x20%0',_0x520ac0['join'](',\x20'))}:{'type':'format','content':o(_0xbdbb78,'*Remove\x20all\x20formatting*')};}});}}function so(_0x52fbfc,_0x48c9ea,_0x5eff04){const _0x22b5a8=_0x52fbfc['locale']['t'],_0x352b66=_0x48c9ea['split'](/(?=[A-Z])/)['join']('\x20'),_0x3123a1=_0x22b5a8(_0x352b66['charAt'](0x0)['toUpperCase']()+_0x352b66['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5eff04)return _0x3123a1;if('fontColor'===_0x48c9ea||'fontBackgroundColor'===_0x48c9ea){const _0x1a9cbc=_0x3400f2(_0x52fbfc['config']['get']('fontColor.colors'))['find'](_0x54c466=>_0x54c466['model']==_0x5eff04);return _0x3123a1+'\x20('+(_0x1a9cbc?_0x22b5a8(_0x1a9cbc['label'])['toLowerCase']():_0x5eff04)+')';}if('fontSize'===_0x48c9ea&&isNaN(parseFloat(_0x5eff04))){const _0x43eedc=_0x52fbfc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x52fbfc['config']['get']('fontSize.options'))['find'](_0xd636ef=>_0xd636ef['model']==_0x5eff04);return _0x3123a1+'\x20('+(_0x43eedc?_0x22b5a8(_0x43eedc['title'])['toLowerCase']():_0x5eff04)+')';}return _0x3123a1+'\x20('+_0x5eff04+')';}class tt extends _0x16a7c5{['_headingOptions'];['afterInit'](){const _0x273ea7=this['editor'];if(!_0x273ea7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x273ea7['config']['get']('heading.options');const _0x32fed0=_0x273ea7['locale'],_0x2d7a9a=_0x273ea7['plugins']['get']('TrackChangesEditing');_0x2d7a9a['enableDefaultAttributesIntegration']('heading');for(const _0x432564 of this['_headingOptions'])'paragraph'!=_0x432564['model']&&_0x2d7a9a['descriptionFactory']['registerElementLabel'](_0x432564['model'],_0x389e4e=>{const _0x80e9be=this['_getHeadingLevel'](_0x432564['model']);return null!==_0x80e9be?_0x2d1260(_0x389e4e,_0x80e9be):_0x472a74(_0x389e4e,_0x432564['title']);});function _0x2d1260(_0x59267c,_0x5653c6){return o(_0x32fed0,'ELEMENT_HEADING',[_0x59267c,_0x5653c6]);}function _0x472a74(_0x4590c6,_0x454e27){return o(_0x32fed0,'ELEMENT_HEADING_CUSTOM',[_0x4590c6,_0x454e27]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54a427=this['editor'],_0x3c35ae=_0x54a427['locale'];function _0x2a259a(_0x120f1a,_0x4954e7){return o(_0x3c35ae,'ELEMENT_HEADING_CUSTOM',[_0x120f1a,_0x4954e7]);}_0x54a427['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38f085=>{if('formatBlock'!=_0x38f085['type'])return;const {data:_0xb5251a}=_0x38f085;if(_0xb5251a&&'heading'==_0xb5251a['commandName']){const _0x304e91=_0xb5251a['commandParams'][0x0]['value'],_0x40c6ba=this['_getHeadingLevel'](_0x304e91);if(null!==_0x40c6ba)return{'type':'format','content':o(_0x3c35ae,'*Change\x20to:*\x20%0',(_0x4444a9=0x1,_0x27813d=_0x40c6ba,o(_0x3c35ae,'ELEMENT_HEADING',[_0x4444a9,_0x27813d])))};const _0x3ed67c=this['_headingOptions']['find'](_0x42465c=>_0x42465c['model']===_0x304e91)['title'];return{'type':'format','content':o(_0x3c35ae,'*Change\x20to:*\x20%0',_0x2a259a(0x1,_0x3ed67c))};}var _0x4444a9,_0x27813d;});}['_getHeadingLevel'](_0x25d6c6){const _0x430466=_0x25d6c6['match'](/^heading(\d+)/);if(_0x430466)return _0x430466[0x1];const _0x221908=this['_headingOptions']?.['find'](_0x208efa=>_0x208efa['model']==_0x25d6c6);if(_0x221908&&_0x221908['view']){const _0x1caf54=_0x221908['view'],_0x2a125f=(_0x1caf54['name']??_0x1caf54)['match'](/^h(\d+)/);if(_0x2a125f)return _0x2a125f[0x1];}return null;}}class et extends _0x16a7c5{['afterInit'](){const _0x44f623=this['editor'];if(!_0x44f623['plugins']['has']('HighlightEditing'))return;const _0x344845=_0x44f623['plugins']['get']('TrackChangesEditing'),_0x52e481=_0x44f623['locale'];_0x344845['enableDefaultAttributesIntegration']('highlight'),_0x344845['registerInlineAttribute']('highlight'),_0x344845['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x52e481,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ff99e=this['editor'],_0x226f88=_0x2ff99e['locale'];_0x2ff99e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aa668=>{if('formatInline'!=_0x2aa668['type'])return;const {data:_0xbdfbd4}=_0x2aa668;if(_0xbdfbd4&&'highlight'==_0xbdfbd4['commandName']){const _0x2362ff=_0x226f88['t'],_0x1594c6=_0xbdfbd4['commandParams'][0x0]['value'];if(_0x1594c6){const _0x27e7d3=_0x2ff99e['config']['get']('highlight.options')['find'](_0x35688a=>_0x35688a['model']==_0x1594c6),_0x588a8e=_0x2362ff(_0x27e7d3['title'])['toLowerCase']();return{'type':'format','content':o(_0x226f88,'*Set\x20highlight:*\x20%0',_0x588a8e),'color':{'value':_0x27e7d3['color'],'title':_0x27e7d3['title']}};}return{'type':'format','content':o(_0x226f88,'*Remove\x20highlight*',o(_0x226f88,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x16a7c5{['afterInit'](){const _0x1c7f63=this['editor'];if(!_0x1c7f63['plugins']['has']('HorizontalLineEditing'))return;_0x1c7f63['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x8d11f8=_0x1c7f63['plugins']['get']('TrackChangesEditing'),_0x477e31=_0x1c7f63['locale'];_0x8d11f8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x137c57=>o(_0x477e31,'ELEMENT_HORIZONTAL_LINE',_0x137c57)),_0x1c7f63['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x59a048,{writer:_0x32ea27,options:_0x5bfe7f})=>{if(!_0x5bfe7f['showSuggestionHighlights'])return null;const _0x1ae602=_0x32ea27['createContainerElement']('div'),_0x2cfc24=_0x32ea27['createEmptyElement']('hr');return _0x32ea27['addClass']('ck-horizontal-line',_0x1ae602),_0x32ea27['insert'](_0x32ea27['createPositionAt'](_0x1ae602,0x0),_0x2cfc24),_0x1ae602;},'converterPriority':'high'});}}class st extends _0x16a7c5{['afterInit'](){const _0x2c838d=this['editor'];if(!_0x2c838d['plugins']['has']('HtmlEmbed'))return;const _0x358228=_0x2c838d['plugins']['get']('TrackChangesEditing'),_0x5ae74b=_0x2c838d['locale'];_0x358228['descriptionFactory']['registerElementLabel']('rawHtml',_0x22f037=>o(_0x5ae74b,'ELEMENT_HTML_EMBED',_0x22f037)),_0x358228['enableDefaultAttributesIntegration']('htmlEmbed'),_0x358228['registerBlockAttribute']('value'),_0x358228['descriptionFactory']['registerDescriptionCallback'](_0x1771cd=>{if('attribute'!=_0x1771cd['type'])return;const {data:_0x2e3dd0}=_0x1771cd;if(_0x2e3dd0&&'value'==_0x2e3dd0['key']&&_0x1771cd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5d4d37=o(_0x5ae74b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5ae74b,'*Change\x20%0\x20content*',_0x5d4d37)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x361bf8=this['editor'],_0x3d4c9d=_0x361bf8['locale'];_0x361bf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d976a=>{if('formatBlock'!=_0x5d976a['type'])return;const {data:_0x1c72b5}=_0x5d976a;if(_0x1c72b5&&'htmlEmbed'==_0x1c72b5['commandName']){const _0x68a369=o(_0x3d4c9d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3d4c9d,'*Change\x20%0\x20content*',_0x68a369)};}});}}class nt extends _0x16a7c5{['afterInit'](){const _0x410a87=this['editor'];if(!_0x410a87['plugins']['has']('ImageEditing'))return;const _0x103fd9=_0x410a87['plugins']['get']('TrackChangesEditing'),_0x1ce422=_0x410a87['plugins']['get']('ImageUtils'),_0x12cdaf=_0x410a87['locale'];_0x103fd9['enableCommand']('insertImage'),_0x103fd9['descriptionFactory']['registerElementLabel']('imageBlock',_0x34c0cf=>o(_0x12cdaf,'ELEMENT_IMAGE',_0x34c0cf)),_0x103fd9['descriptionFactory']['registerElementLabel']('imageInline',_0x23e0ba=>o(_0x12cdaf,'ELEMENT_INLINE_IMAGE',_0x23e0ba)),_0x103fd9['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x12cdaf,'ELEMENT_CAPTION')),_0x410a87['plugins']['has']('ImageUploadEditing')&&_0x103fd9['enableCommand']('uploadImage'),_0x410a87['plugins']['has']('ImageBlockEditing')&&_0x410a87['plugins']['has']('ImageInlineEditing')&&(_0x103fd9['enableCommand']('imageTypeInline',(_0x40b30d,_0x5f4fa3)=>{const _0x5e7e53=_0x1ce422['getClosestSelectedImageElement'](_0x410a87['model']['document']['selection']);_0x410a87['model']['change'](()=>{_0x103fd9['markBlockFormat'](_0x5e7e53,{'commandName':'imageTypeInline','commandParams':[_0x5f4fa3]},[],'convertBlockImageToInline');});}),_0x103fd9['enableCommand']('imageTypeBlock',(_0xeed852,_0x193cc1)=>{_0x410a87['model']['change'](_0x135966=>{let _0xcb08e1=_0x1ce422['getClosestSelectedImageElement'](_0x410a87['model']['document']['selection']),_0x32277b=_0x135966['createRangeOn'](_0xcb08e1);const _0x75fd08=_0x149914['fromPosition'](_0x32277b['start'],'toPrevious'),_0x2829ab=_0x149914['fromPosition'](_0x32277b['end'],'toNext');_0x103fd9['forceDefaultExecution'](()=>_0xeed852(_0x193cc1)),_0xcb08e1=_0x1ce422['getClosestSelectedImageElement'](_0x410a87['model']['document']['selection']),_0x32277b=_0x135966['createRangeOn'](_0xcb08e1);const _0x6c87bc=_0x135966['createRange'](_0x75fd08,_0x2829ab);_0x75fd08['detach'](),_0x2829ab['detach'](),_0x103fd9['markBlockFormat'](_0xcb08e1,{'commandName':'imageTypeInline','commandParams':[_0x193cc1]},[],'convertInlineImageToBlock'),_0x6c87bc['start']['isBefore'](_0x32277b['start'])&&_0x103fd9['markInsertion'](_0x135966['createRange'](_0x6c87bc['start'],_0x32277b['start']),'convertInlineImageToBlock'),_0x32277b['end']['isBefore'](_0x6c87bc['end'])&&_0x103fd9['markInsertion'](_0x135966['createRange'](_0x32277b['end'],_0x6c87bc['end']),'convertInlineImageToBlock');});}),_0x103fd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x103fd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x103fd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x103fd9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x103fd9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x103fd9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x7ff024])=>{const _0x42411e=_0x103fd9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1c97fb=_0x7ff024['start'],_0x9fccca=_0x7ff024['end'];const _0x5118ea=_0x410a87['model']['schema']['getNearestSelectionRange'](_0x1c97fb,'backward'),_0x5b6b22=_0x410a87['model']['schema']['getNearestSelectionRange'](_0x9fccca,'forward');_0x5118ea['isCollapsed']&&(_0x1c97fb=_0x5118ea['start']),_0x5b6b22['isCollapsed']&&(_0x9fccca=_0x5b6b22['end']),_0x42411e([_0x410a87['model']['createRange'](_0x1c97fb,_0x9fccca)]);}),_0x103fd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5e7b7a),_0x103fd9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5e7b7a)),_0x410a87['plugins']['has']('ImageCaptionEditing')&&(_0x103fd9['enableCommand']('toggleImageCaption',(_0x8403ed,_0x5ed56d)=>{const _0x5e8623=_0x410a87['plugins']['get']('ImageCaptionUtils');let _0x79c400=_0x1ce422['getClosestSelectedImageElement'](_0x410a87['model']['document']['selection']),_0x378987=_0x5e8623['getCaptionFromImageModelElement'](_0x79c400);_0x410a87['model']['change'](()=>{if(_0x378987)return void _0x103fd9['markDeletion'](_0x410a87['model']['createRangeOn'](_0x378987));const _0x45f6ac=_0x1ce422['isBlockImage'](_0x79c400);_0x8403ed(_0x5ed56d),_0x79c400=_0x1ce422['getClosestSelectedImageElement'](_0x410a87['model']['document']['selection']),_0x378987=_0x5e8623['getCaptionFromImageModelElement'](_0x79c400),_0x103fd9['markInsertion'](_0x410a87['model']['createRangeOn'](_0x378987),_0x45f6ac?null:'imageCaption');});}),_0x103fd9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5e7b7a));const _0x377f86=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xe45daa(_0x2014d3,_0x472bd2){const _0x5e53d5=_0x377f86['findIndex'](({type:_0x180c75,subType:_0x50886})=>_0x2014d3['type']==_0x180c75&&_0x2014d3['subType']==_0x50886),_0xe31cd9=_0x377f86['findIndex'](({type:_0xbdc5d2,subType:_0x2892bb})=>_0x472bd2['type']==_0xbdc5d2&&_0x472bd2['subType']==_0x2892bb);if(_0x5e53d5<0x0||_0xe31cd9<0x0)return!0x1;const _0x105f63=_0x2014d3['getFirstRange'](),_0x4fce34=_0x472bd2['getFirstRange']();if((0x0==_0x5e53d5||0x1==_0x5e53d5)&&0x2==_0xe31cd9&&_0x105f63['isIntersecting'](_0x4fce34))return!0x0;if(0x2==_0x5e53d5&&0x3==_0xe31cd9){const _0x26809b=_0x103fd9['_findSuggestions'](_0x105f63,'insertion')['filter'](({suggestion:_0x5ced9c,meta:_0x4d1bfc})=>_0x4d1bfc['isOwn']&&'convertInlineImageToBlock'==_0x5ced9c['subType']);if(_0x26809b['length']>0x1&&_0x4fce34['end']['isEqual'](_0x105f63['start']))return!0x0;if(0x1==_0x26809b['length']&&(_0x105f63['start']['isEqual'](_0x4fce34['end'])||_0x105f63['end']['isEqual'](_0x4fce34['start'])))return!0x0;}if(0x3==_0x5e53d5&&0x3==_0xe31cd9&&_0x105f63['start']['isBefore'](_0x4fce34['start'])){const _0x42f836=_0x105f63['end']['nodeAfter'],_0x24e945=_0x4fce34['start']['nodeBefore'];return _0x1ce422['isBlockImage'](_0x42f836)&&_0x42f836===_0x24e945;}return!0x1;}function _0x5e7b7a(_0x45fe08,_0x2c44c9){return _0xe45daa(_0x45fe08,_0x2c44c9)?[_0x45fe08,_0x2c44c9]:_0xe45daa(_0x2c44c9,_0x45fe08)?[_0x2c44c9,_0x45fe08]:null;}_0x410a87['plugins']['has']('ImageResize')&&(_0x103fd9['enableDefaultAttributesIntegration']('resizeImage'),_0x103fd9['registerBlockAttribute']('resizedWidth'),_0x103fd9['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x12cdaf,'FORMAT_IMAGE_SIZE'))),_0x410a87['plugins']['has']('ImageTextAlternativeEditing')&&(_0x103fd9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x103fd9['registerBlockAttribute']('alt')),_0x103fd9['descriptionFactory']['registerDescriptionCallback'](_0xe9ef27=>{if(!!_0x377f86['find'](({type:_0x4f36e0,subType:_0x3a6d32})=>_0xe9ef27['type']==_0x4f36e0&&_0xe9ef27['subType']==_0x3a6d32))return _0xe9ef27['previous']?{}:void 0x0;}),_0x103fd9['descriptionFactory']['registerDescriptionCallback'](_0x3f2818=>{if('insertion'==_0x3f2818['type']||'deletion'==_0x3f2818['type']){const _0x377fc1=_0x3f2818['getContainedElement']();if(_0x377fc1&&_0x377fc1['is']('element','caption'))return{'type':'insertion'==_0x3f2818['type']?'addObject':'removeObject','element':_0x377fc1,'quantity':0x1};}}),_0x103fd9['descriptionFactory']['registerDescriptionCallback'](_0x4d283b=>'formatBlock'==_0x4d283b['type']&&'convertInlineImageToBlock'==_0x4d283b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4d283b['type']&&'convertBlockImageToInline'==_0x4d283b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x103fd9['descriptionFactory']['registerDescriptionCallback'](_0x4d21c8=>{if('attribute'!=_0x4d21c8['type'])return;const {data:_0x2d53c9}=_0x4d21c8;if(!_0x2d53c9||'alt'!=_0x2d53c9['key'])return;const _0x799f5d=_0x2d53c9['newValue'];return _0x799f5d?{'type':'format','content':o(_0x12cdaf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x799f5d+'\x22')}:{'type':'format','content':o(_0x12cdaf,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38efed=this['editor'],_0x4557db=_0x38efed['locale'];_0x38efed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a639=>{if('formatBlock'!=_0x47a639['type']&&'formatInline'!=_0x47a639['type'])return;const {data:_0x5dc22f}=_0x47a639;if(_0x5dc22f){if('imageTextAlternative'==_0x5dc22f['commandName']){const _0x592db6=_0x5dc22f['commandParams'][0x0]['newValue'];return _0x592db6?{'type':'format','content':o(_0x4557db,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x592db6+'\x22')}:{'type':'format','content':o(_0x4557db,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5dc22f['commandName']){const _0x572473=_0x5dc22f['commandParams'][0x0]['width'];return _0x572473?{'type':'format','content':o(_0x4557db,'*Set\x20image\x20width:*\x20%0',_0x572473)}:{'type':'format','content':o(_0x4557db,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x16a7c5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xbd64d1=this['editor']['locale'],_0x10cde4=this['editor']['plugins']['get']('TrackChangesEditing');_0x10cde4['enableDefaultAttributesIntegration']('replaceImageSource'),_0x10cde4['registerBlockAttribute']('src'),_0x10cde4['descriptionFactory']['registerDescriptionCallback'](_0x281f7a=>{if('attribute'!=_0x281f7a['type'])return;const {data:_0x248100}=_0x281f7a;return _0x248100&&'src'==_0x248100['key']?_0x248100['newValue']&&_0x248100['oldValue']?{'type':'format','content':o(_0xbd64d1,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8346d8=this['editor']['plugins']['get']('TrackChangesEditing');_0x8346d8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x8346d8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8346d8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x8346d8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d7cc7=this['editor'],_0x3e707=_0x2d7cc7['locale'];_0x2d7cc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1319e3=>{if('formatBlock'!=_0x1319e3['type']&&'formatInline'!=_0x1319e3['type'])return;const {data:_0x39c7f2}=_0x1319e3;if(!_0x39c7f2||'replaceImageSource'!=_0x39c7f2['commandName'])return;return{'type':'format','content':o(_0x3e707,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x16a7c5{['afterInit'](){const _0x12ff35=this['editor'];if(!_0x12ff35['plugins']['has']('ImageStyleEditing'))return;const _0x39b7b1=_0x12ff35['plugins']['get']('TrackChangesEditing'),_0x12b6fa=_0x12ff35['plugins']['get']('ImageUtils'),_0x135581={};_0x39b7b1['enableCommand']('imageStyle',(_0x5120cd,_0x35e2e8)=>{const _0x519934=_0x12ff35['plugins']['get']('Users')['me'],_0x399459=_0x12ff35['commands']['get']('imageStyle');let _0x1037a4=_0x12b6fa['getClosestSelectedImageElement'](_0x12ff35['model']['document']['selection']),_0x46afa3=_0x12ff35['model']['createRangeOn'](_0x1037a4),_0x58a4f5=_0x399459['value'];if(_0x58a4f5==_0x35e2e8['value'])return;const _0x520798={'commandName':'imageStyle','commandParams':[_0x35e2e8],'formatGroupId':_0x4e75e2()};_0x12ff35['model']['change'](()=>{if(_0x39b7b1['getSuggestions']()['filter'](_0x206dbb=>_0x206dbb['isInContent']&&_0x519934==_0x206dbb['author']&&('formatBlock'==_0x206dbb['type']||'formatInline'==_0x206dbb['type'])&&('imageStylePreApply'==_0x206dbb['subType']||'imageStylePostApply'==_0x206dbb['subType'])&&_0x206dbb['getFirstRange']()['isEqual'](_0x46afa3))['forEach'](_0x288d38=>_0x39b7b1['discardSuggestion'](_0x288d38['head'])),_0x1037a4=_0x12b6fa['getClosestSelectedImageElement'](_0x12ff35['model']['document']['selection']),_0x46afa3=_0x12ff35['model']['createRangeOn'](_0x1037a4),_0x399459['refresh'](),_0x12ff35['commands']['get']('imageTypeInline')['refresh'](),_0x12ff35['commands']['get']('imageTypeBlock')['refresh'](),_0x58a4f5=_0x399459['value'],_0x58a4f5!=_0x35e2e8['value'])return _0x12b6fa['isInlineImage'](_0x1037a4)&&_0x399459['shouldConvertImageType'](_0x35e2e8['value'],_0x1037a4)?(_0x5120cd({..._0x35e2e8,'setImageSizes':!0x1}),_0x1037a4=_0x12b6fa['getClosestSelectedImageElement'](_0x12ff35['model']['document']['selection']),void _0x39b7b1['markBlockFormat'](_0x1037a4,{..._0x520798,'commandReversedParams':[{'value':_0x58a4f5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x12b6fa['isBlockImage'](_0x1037a4)?_0x39b7b1['markBlockFormat'](_0x1037a4,_0x520798,[],'imageStylePostApply'):_0x39b7b1['markInlineFormat'](_0x46afa3,_0x520798,'imageStylePostApply'));});});for(const _0x5f2884 of _0x12ff35['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x135581[_0x5f2884['name']]=_0x5f2884['title']['toLowerCase']();_0x39b7b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x39b7b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x39b7b1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x39b7b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x124343])=>{_0x12b6fa['setImageNaturalSizeAttributes'](_0x124343['getContainedElement']());}),_0x39b7b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5c51e5,_0xb6c7e7)=>{_0x39b7b1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5c51e5,{'commandName':_0xb6c7e7['commandName'],'commandParams':_0xb6c7e7['commandReversedParams']});}),_0x39b7b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2a244d,_0x581354){if(_0x10de79(_0x2a244d,_0x581354))return[_0x2a244d,_0x581354];if(_0x10de79(_0x581354,_0x2a244d))return[_0x581354,_0x2a244d];return null;});const _0xc37c37=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x10de79(_0x5646c4,_0x58fdd0){const _0x5cc895=_0xc37c37['findIndex'](({type:_0x9eddda,subType:_0x24a0f3})=>_0x5646c4['type']==_0x9eddda&&_0x5646c4['subType']==_0x24a0f3),_0x6a25d7=_0xc37c37['findIndex'](({type:_0x39bceb,subType:_0x3a2dfd})=>_0x58fdd0['type']==_0x39bceb&&_0x58fdd0['subType']==_0x3a2dfd);if(_0x5cc895<0x0||_0x6a25d7<0x0)return!0x1;const _0x2755a9=_0x5646c4['getFirstRange'](),_0x2f83ab=_0x58fdd0['getFirstRange']();if((0x0==_0x5cc895||0x1==_0x5cc895)&&0x2==_0x6a25d7&&_0x2755a9['isIntersecting'](_0x2f83ab))return!0x0;if(0x2==_0x5cc895&&0x3==_0x6a25d7){const _0x4c4d04=_0x39b7b1['_findSuggestions'](_0x2755a9,'insertion')['filter'](({suggestion:_0x1bfa3f,meta:_0x59d994})=>_0x59d994['isOwn']&&'convertInlineImageToBlock'==_0x1bfa3f['subType']);if(_0x4c4d04['length']>0x1&&_0x2f83ab['end']['isEqual'](_0x2755a9['start']))return!0x0;if(0x1==_0x4c4d04['length']&&(_0x2755a9['start']['isEqual'](_0x2f83ab['end'])||_0x2755a9['end']['isEqual'](_0x2f83ab['start'])))return!0x0;}if(0x3==_0x5cc895&&0x3==_0x6a25d7&&_0x2755a9['start']['isBefore'](_0x2f83ab['start'])){const _0x262ddd=_0x2755a9['end']['nodeAfter'],_0x745fb1=_0x2f83ab['start']['nodeBefore'];return _0x12b6fa['isBlockImage'](_0x262ddd)&&_0x262ddd===_0x745fb1;}return!0x1;}_0x12ff35['model']['document']['registerPostFixer'](()=>{let _0x403aca=!0x1;const _0x721596=Array['from'](_0x12ff35['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31b7c3,data:_0x37a436}of _0x721596){const {group:_0x55d37c,type:_0x26f203,subType:_0x36ae77,id:_0x822ba2}=_0x39b7b1['_splitMarkerName'](_0x31b7c3);if('suggestion'==_0x55d37c&&_0x39b7b1['hasSuggestion'](_0x822ba2)){if('formatBlock'==_0x26f203&&('imageStylePreApply'==_0x36ae77||'imageStylePostApply'==_0x36ae77)){const _0x19c1e7=_0x39b7b1['getSuggestion'](_0x822ba2);if(_0x37a436['newRange']){const _0x15b9c4=_0x19c1e7['getFirstRange']()['getContainedElement']();if(_0x12b6fa['isBlockImage'](_0x15b9c4))continue;_0x39b7b1['discardSuggestion'](_0x19c1e7),_0x403aca=!0x0;}}if('insertion'==_0x26f203&&'imageCaption'==_0x36ae77&&!_0x37a436['newRange']){const _0x26ac61=_0x39b7b1['getSuggestion'](_0x822ba2);_0x26ac61['next']&&_0x26ac61['next']['isInContent']&&(_0x39b7b1['discardSuggestion'](_0x26ac61['next']),_0x403aca=!0x0);}}}return _0x403aca;}),this['_registerLegacyDescription'](_0x135581);}['_registerLegacyDescription'](_0x23073b){const _0x4990ac=this['editor'],_0x445d8e=_0x4990ac['locale'];_0x4990ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b942f=>{if('formatBlock'!=_0x1b942f['type']&&'formatInline'!=_0x1b942f['type'])return;const {data:_0x45668}=_0x1b942f;if(!_0x45668||'imageStyle'!=_0x45668['commandName'])return;const _0x12b551=_0x45668['commandParams'][0x0]['value'];return _0x5a99a3('side'===_0x12b551?o(_0x445d8e,'FORMAT_SIDE_IMAGE'):_0x23073b[_0x12b551]||_0x12b551);function _0x5a99a3(_0x366fd0){return{'type':'format','content':o(_0x445d8e,'*Format:*\x20%0',_0x366fd0)};}});}}class at extends _0x16a7c5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x224216){super(_0x224216),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x22a087=this['editor'],_0x198159=_0x22a087['commands']['get']('importWord'),_0x262848=_0x22a087['commands']['get']('trackChanges');_0x198159&&(_0x198159['on']('execute',(_0x2ba287,[,_0x4816be])=>{this['_trackChangesValueDuringImport']=_0x262848['value'],_0x4816be['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x198159,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x198159,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x262848['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x22a087['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x22b20a,_0x3972b6){const {suggestions:_0x28de5c}=_0x3972b6,_0x147f24=this['editor']['commands']['get']('trackChanges'),_0x10f7bd=_0x147f24['value'];this['_trackChangesValueDuringImport']!==_0x10f7bd&&(_0x147f24['execute'](),this['_trackChangesExecuted']=!0x0),_0x28de5c&&_0x28de5c['forEach'](({id:_0x424f96,type:_0x135d7e,author:_0x427314,created_at:_0x332784})=>{const _0x3bc349={'id':_0x424f96,'type':_0x135d7e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x427314,'createdAt':_0x332784?new Date(_0x332784):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3bc349);});}}class ct extends _0x16a7c5{['afterInit'](){const _0xf21a2b=this['editor'],_0x49cd32=_0xf21a2b['plugins']['get']('TrackChangesEditing');if(_0xf21a2b['plugins']['has']('IndentEditing')&&(_0x49cd32['enableCommand']('indent'),_0x49cd32['enableCommand']('outdent')),_0xf21a2b['plugins']['has']('IndentBlock')){for(const _0x544710 of['indentBlock','outdentBlock'])_0x49cd32['enableDefaultAttributesIntegration'](_0x544710);}const _0x3849f3=_0xf21a2b['locale'];_0x49cd32['registerBlockAttribute']('blockIndent'),_0x49cd32['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3849f3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4172a3=this['editor'],_0x2d900f=_0x4172a3['locale'],_0x4203a4=_0x4172a3['plugins']['get']('TrackChangesEditing');_0x4203a4['descriptionFactory']['registerDescriptionCallback'](_0x3db0e5=>{if('formatBlock'!=_0x3db0e5['type'])return;const {data:_0x59d371}=_0x3db0e5;if(!_0x59d371)return;if('indentBlock'!=_0x59d371['commandName']&&'outdentBlock'!=_0x59d371['commandName'])return;const _0xbf5afc=_0x3db0e5['getItems']()[0x0],_0xbff407=_0x4203a4['descriptionFactory']['getItemLabel'](_0xbf5afc);return'indentBlock'==_0x59d371['commandName']?{'type':'format','content':o(_0x2d900f,'*Indent:*\x20%0',_0xbff407)}:'outdentBlock'==_0x59d371['commandName']?{'type':'format','content':o(_0x2d900f,'*Outdent:*\x20%0',_0xbff407)}:void 0x0;});}}class ut extends _0x16a7c5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x16a7c5{['afterInit'](){const _0x646353=this['editor'];if(!_0x646353['plugins']['has']('LinkEditing'))return;const _0x1a32a1=_0x646353['plugins']['get']('TrackChangesEditing'),_0x1ebe44=_0x646353['commands']['get']('link');_0x1a32a1['enableDefaultAttributesIntegration']('link'),_0x1a32a1['enableDefaultAttributesIntegration']('unlink'),_0x1a32a1['registerInlineAttribute']('linkHref');for(const _0x58e6c9 of _0x1ebe44['manualDecorators'])_0x1a32a1['registerInlineAttribute'](_0x58e6c9['id']),_0x1a32a1['descriptionFactory']['registerAttributeLabel'](_0x58e6c9['id'],'link\x20('+_0x58e6c9['label']['toLowerCase']()+')');_0x1a32a1['descriptionFactory']['registerDescriptionCallback'](_0x4e0e38=>{if('attribute'!=_0x4e0e38['type'])return;const {data:_0x4dd035}=_0x4e0e38;if(!_0x4dd035||'linkHref'!=_0x4dd035['key'])return;const _0x1f6d9d=_0x4dd035['newValue'],_0x29d4dd=_0x646353['locale'];return{'type':'format','content':null==_0x1f6d9d?o(_0x29d4dd,'*Remove\x20link*'):o(_0x29d4dd,'*Set\x20link:*\x20%0','\x22'+_0x1f6d9d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x182d4d=this['editor'],_0x2e7349=_0x182d4d['locale'];_0x182d4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cc624=>{if('formatInline'!=_0x3cc624['type'])return;const {data:_0x1f3743}=_0x3cc624;if(_0x1f3743){if('link'==_0x1f3743['commandName']){const _0x507a94=_0x1f3743['commandParams'][0x0];return{'type':'format','content':o(_0x2e7349,'*Set\x20link:*\x20%0','\x22'+_0x507a94+'\x22')};}return'unlink'==_0x1f3743['commandName']?{'type':'format','content':o(_0x2e7349,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x16a7c5{['afterInit'](){const _0x5a13c5=this['editor'],_0x20be65=_0x5a13c5['locale'];if(!_0x5a13c5['plugins']['has']('LegacyListEditing'))return;const _0x1dd387=_0x5a13c5['plugins']['get']('TrackChangesEditing'),_0x3d789a=_0x5a13c5['plugins']['has']('LegacyTodoListEditing');function _0x3aed79(_0x24f404){return()=>{const _0x54edd7=_0x5a13c5['model']['document']['selection'],_0x4354dc=_0x5a13c5['commands']['get'](_0x24f404);if(_0x4354dc['value'])return void _0x5a13c5['execute']('paragraph',{});const _0x340e24=_0x24f404['slice'](0x0,-0x4),_0x71769d=function(_0x3c0744,_0x4dd927,_0x1d4c3f){let _0x415622=Array['from'](_0x3c0744)['filter'](_0x4496db=>function(_0x59562b,_0x4141ca){return _0x4141ca['checkChild'](_0x59562b['parent'],'listItem')&&!_0x4141ca['isObject'](_0x59562b);}(_0x4496db,_0x1d4c3f));_0x415622=_0x415622['filter'](_0x2f1188=>!_0x2f1188['is']('element','listItem')||_0x2f1188['getAttribute']('listType')!=_0x4dd927);const _0x2ef7fa=new Set();for(const _0x45cd1d of _0x415622)_0x45cd1d['is']('element','listItem')?_0x2ef7fa['add'](fe(_0x45cd1d)):_0x2ef7fa['add'](_0x45cd1d);return Array['from'](_0x2ef7fa);}(_0x54edd7['getSelectedBlocks'](),_0x340e24,_0x5a13c5['model']['schema']);_0x5a13c5['model']['change'](()=>{for(const _0x512f9e of _0x71769d)_0x1dd387['markBlockFormat'](_0x512f9e,{'commandName':_0x24f404,'commandParams':[{'forceValue':!_0x4354dc['value']}],'formatGroupId':'blockName'},ue(_0x512f9e));});};}function _0x4becc1(_0x234fe8){return()=>{const _0x4431af=function(_0x886c85){let _0x451fe3=Array['from'](_0x886c85);const _0xcdfe53=_0x451fe3['findIndex'](_0x3d3f2c=>'listItem'!=_0x3d3f2c['name']);return _0xcdfe53>-0x1&&(_0x451fe3=_0x451fe3['slice'](0x0,_0xcdfe53)),_0x451fe3;}(_0x5a13c5['model']['document']['selection']['getSelectedBlocks']()),_0x1eb382=_0x5a13c5['model']['createRange'](_0x5a13c5['model']['createPositionAt'](_0x4431af[0x0],'before'),_0x5a13c5['model']['createPositionAt'](_0x4431af[_0x4431af['length']-0x1],'end'));_0x5a13c5['model']['change'](()=>{_0x1dd387['markBlockFormat'](_0x1eb382,{'commandName':_0x234fe8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x219461){const _0x202ec7=new Set();for(const _0x1e997f of _0x219461){let _0x453387=_0x1e997f['nextSibling'];for(;_0x453387&&_0x453387['getAttribute']('listIndent')>_0x1e997f['getAttribute']('listIndent');)_0x202ec7['add'](_0x453387),_0x453387=_0x453387['nextSibling'];}return Array['from'](_0x202ec7);}(_0x4431af));});};}_0x1dd387['enableCommand']('numberedList',_0x3aed79('numberedList')),_0x1dd387['enableCommand']('bulletedList',_0x3aed79('bulletedList')),_0x3d789a&&_0x1dd387['enableCommand']('todoList',_0x3aed79('todoList')),_0x1dd387['enableCommand']('indentList',_0x4becc1('indentList')),_0x1dd387['enableCommand']('outdentList',_0x4becc1('outdentList')),_0x3d789a&&_0x1dd387['enableCommand']('checkTodoList',()=>{const _0x138953=_0x5a13c5['commands']['get']('checkTodoList'),_0x1eee16=Array['from'](_0x138953['_selectedElements']);_0x1eee16['filter'](_0x175d0f=>_0x175d0f['getAttribute']('todoListChecked')!=_0x138953['value']),_0x5a13c5['model']['change'](()=>{for(const _0x59c06c of _0x1eee16)_0x1dd387['markBlockFormat'](_0x59c06c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x138953['value']}]});});}),_0x1dd387['descriptionFactory']['registerElementLabel']('listItem',_0x541e4a=>o(_0x20be65,'ELEMENT_LIST_ITEM',_0x541e4a)),_0x1dd387['descriptionFactory']['registerDescriptionCallback'](_0x2f7417=>{if('formatBlock'!=_0x2f7417['type']&&'formatInline'!=_0x2f7417['type'])return;const {data:_0x388fdd}=_0x2f7417;if(_0x388fdd){if('numberedList'==_0x388fdd['commandName']||'bulletedList'==_0x388fdd['commandName']||'todoList'==_0x388fdd['commandName'])switch(_0x388fdd['commandName']['replace']('List','')){case'bulleted':return _0x404746(o(_0x20be65,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x404746(o(_0x20be65,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x404746(o(_0x20be65,'ELEMENT_TODO_LIST'));}if('indentList'==_0x388fdd['commandName'])return{'type':'format','content':o(_0x20be65,'*Indent:*\x20%0',o(_0x20be65,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x388fdd['commandName'])return{'type':'format','content':o(_0x20be65,'*Outdent:*\x20%0',o(_0x20be65,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x388fdd['commandName'])return _0x388fdd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20be65,'*Check\x20item*')}:{'type':'format','content':o(_0x20be65,'*Uncheck\x20item*')};}function _0x404746(_0x3e3ab6){return{'type':'format','content':o(_0x20be65,'*Change\x20to:*\x20%0',_0x3e3ab6)};}});}}function fe(_0x11cbc1){const _0x5878b2=_0x11cbc1['getAttribute']('listIndent');if(0x0==_0x5878b2)return _0x11cbc1;let _0x40244b=_0x11cbc1;for(;_0x11cbc1['previousSibling']&&_0x11cbc1['previousSibling']['is']('element','listItem');){const _0x2009a0=_0x11cbc1['previousSibling']['getAttribute']('listIndent');if(_0x2009a0==_0x5878b2)_0x40244b=_0x11cbc1['previousSibling'];else{if(_0x2009a0<_0x5878b2)break;}_0x11cbc1=_0x11cbc1['previousSibling'];}return _0x40244b;}function ue(_0x2f0c30){const _0x49228e=[];if(_0x2f0c30['is']('element','listItem')&&_0x2f0c30['getAttribute']('listIndent')>0x0){let _0x577f13=_0x2f0c30['nextSibling'];for(;_0x577f13&&'listItem'==_0x577f13['name']&&_0x577f13['getAttribute']('listIndent')==_0x2f0c30['getAttribute']('listIndent');)_0x49228e['push'](_0x577f13),_0x577f13=_0x577f13['nextSibling'];}return _0x49228e;}class W extends _0x16a7c5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5a264a=this['editor']['config']['get']('list.properties'),_0x3b0dea=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a264a['styles']&&_0x3b0dea['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5a264a['reversed']&&_0x3b0dea['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5a264a['startIndex']&&_0x3b0dea['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3b0dea['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x197302,_0x1e0bc8={}){const _0x18fc3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43508f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x18fc3d['markMultiRangeBlockFormat'](_0x43508f,{'commandName':'listStyle','commandParams':[{'type':_0x1e0bc8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x11a389,_0x3e5810={}){const _0x1c43d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49b6fb=this['_getSuggestionBlocks'](_0x4cfb32=>_0x4cfb32['is']('element','listItem')&&'numbered'===_0x4cfb32['getAttribute']('listType'));if(_0x49b6fb['length']<0x1)return;const _0x17a5de=_0x49b6fb['map'](_0x3e0cae=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e0cae,'before'),this['editor']['model']['createPositionAt'](_0x3e0cae,0x0)));this['editor']['model']['change'](()=>{_0x1c43d0['markMultiRangeBlockFormat'](_0x17a5de,{'commandName':'listReversed','commandParams':[{'reversed':_0x3e5810['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x318d76,_0x4fa423={}){const _0x556694=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10d1d4=this['_getSuggestionBlocks'](_0x43f353=>_0x43f353['is']('element','listItem')&&'numbered'===_0x43f353['getAttribute']('listType'));if(_0x10d1d4['length']<0x1)return;const _0x2da36e=_0x10d1d4['map'](_0x5b46cb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b46cb,'before'),this['editor']['model']['createPositionAt'](_0x5b46cb,0x0)));this['editor']['model']['change'](()=>{_0x556694['markMultiRangeBlockFormat'](_0x2da36e,{'commandName':'listStart','commandParams':[{'startIndex':_0x4fa423['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2d2c4b){if('formatBlock'!=_0x2d2c4b['type']&&'formatInline'!=_0x2d2c4b['type'])return;const _0x5daa6a=this['editor']['locale'],{data:_0x6503da}=_0x2d2c4b;if(!_0x6503da)return;let _0x10e51f,_0x336e3a;switch(_0x6503da['commandName']){case'listStyle':_0x10e51f='*Change\x20to:*\x20%0',_0x336e3a={'type':'format','content':o(_0x5daa6a,_0x10e51f,o(_0x5daa6a,this['_getTranslationKeyForListStyle'](_0x6503da['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10e51f=_0x6503da['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x336e3a={'type':'format','content':o(_0x5daa6a,_0x10e51f)};break;case'listStart':_0x10e51f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x336e3a={'type':'format','content':o(_0x5daa6a,_0x10e51f,_0x6503da['commandParams'][0x0]['startIndex'])};}return _0x336e3a;}['_getSuggestionBlocksForListStyle'](){const _0x517336=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b9312=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5b9312[0x0]?.['is']('element','listItem')&&_0x5b9312['unshift'](..._0x517336['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5b9312[_0x5b9312['length']-0x1]?.['is']('element','listItem')&&_0x5b9312['push'](..._0x517336['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5b9312=[...new Set(_0x5b9312)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5b9312=_0x5b9312['filter'](_0x5de1f4=>_0x5de1f4['is']('element','listItem'))),_0x5b9312;}['_getSuggestionBlocks'](_0x48601a){const _0x9e7419=this['editor']['plugins']['get']('LegacyListUtils');let _0xbee50a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x48601a)['map'](_0x547787=>{const _0x2b93de=this['editor']['model']['createPositionAt'](_0x547787,0x0);return[..._0x9e7419['getSiblingNodes'](_0x2b93de,'backward'),..._0x9e7419['getSiblingNodes'](_0x2b93de,'forward')];})['flat']();return _0xbee50a=[...new Set(_0xbee50a)],_0xbee50a;}['_getTranslationKeyForListStyle'](_0x1448b9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1448b9)||'default')['toUpperCase']()+'_LIST_'+_0x1448b9['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x16a7c5{['afterInit'](){const _0x1de651=this['editor'];if(!_0x1de651['plugins']['has']('MediaEmbedEditing'))return;const _0x9534a6=_0x1de651['plugins']['get']('TrackChangesEditing'),_0x38f65c=_0x1de651['locale'];_0x9534a6['enableCommand']('mediaEmbed'),_0x9534a6['descriptionFactory']['registerElementLabel']('media',_0x21091e=>o(_0x38f65c,'ELEMENT_MEDIA',_0x21091e)),_0x1de651['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x49e880,{writer:_0x3cfc23,options:_0x257d3a})=>{if(_0x257d3a['showSuggestionHighlights'])return _0x3cfc23['createEmptyElement']('div');},'converterPriority':'high'}),_0x1de651['data']['downcastDispatcher']['on']('attribute:url:media',(_0x14361,_0x40b895,_0x305b68)=>{_0x305b68['options']['showSuggestionHighlights']&&_0x14361['stop']();},{'priority':'high'});}}class mt extends _0x16a7c5{['afterInit'](){const _0x417a20=this['editor'];_0x417a20['plugins']['has']('MentionEditing')&&_0x417a20['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x16a7c5{['afterInit'](){const _0x5c88d4=this['editor'];if(!_0x5c88d4['plugins']['has']('MergeFieldsEditing'))return;_0x5c88d4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5c88d4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x3e06a6=_0x5c88d4['plugins']['get']('TrackChangesEditing'),_0x1b4908=_0x5c88d4['locale'];_0x3e06a6['descriptionFactory']['registerElementLabel']('mergeField',_0x5e7174=>o(_0x1b4908,'ELEMENT_MERGE_FIELD',_0x5e7174)),_0x3e06a6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x9861e6=>o(_0x1b4908,'ELEMENT_MERGE_FIELD',_0x9861e6)),_0x3e06a6['descriptionFactory']['registerDescriptionCallback'](_0x20e0bb=>{if('insertion'!=_0x20e0bb['type']&&'deletion'!=_0x20e0bb['type'])return;const _0x4ac86e=_0x20e0bb['getContainedElement']();if(null==_0x4ac86e)return;if(!_0x4ac86e['is']('element','mergeField')&&!_0x4ac86e['is']('element','mergeFieldBlock'))return;const _0x3e8761=_0x5c88d4['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4ac86e['getAttribute']('id'));return'insertion'==_0x20e0bb['type']?{'type':'insertion','content':o(_0x1b4908,'*Insert:*\x20%0','\x22'+_0x3e8761+'\x22\x20'+o(_0x1b4908,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1b4908,'*Remove:*\x20%0','\x22'+_0x3e8761+'\x22\x20'+o(_0x1b4908,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x16a7c5{['afterInit'](){const _0x574ad5=this['editor'],_0xc01562=_0x574ad5['plugins']['get']('TrackChangesEditing');_0x574ad5['plugins']['has']('MultiLevelList')&&(_0xc01562['enableDefaultAttributesIntegration']('multiLevelList'),_0xc01562['registerBlockAttribute']('listMarkerStyle'),_0xc01562['descriptionFactory']['registerDescriptionCallback'](_0x3f9c40=>this['handleDescriptions'](_0x3f9c40)));}['handleDescriptions'](_0x596d13){const _0x16f6f4=this['editor']['locale'],{data:_0x41ec5b}=_0x596d13,_0x264165={'type':'format','content':''};if(_0x41ec5b&&'listMarkerStyle'==_0x41ec5b['key']){if(!_0x41ec5b['oldValue'])return{'type':'format','content':o(_0x16f6f4,'*Set\x20format:*\x20%0',o(_0x16f6f4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x41ec5b['newValue']+')'};if(!_0x41ec5b['newValue']){let _0x46b934=_0x596d13['head'];for(;_0x46b934;){if(_0x46b934['data']&&'listType'==_0x46b934['data']['key']&&_0x46b934['data']['newValue'])return _0x264165;_0x46b934=_0x46b934['next'];}return{'type':'format','content':o(_0x16f6f4,'*Remove\x20format:*\x20%0',o(_0x16f6f4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x41ec5b['oldValue']+')'};}}}}class kt extends _0x16a7c5{['afterInit'](){const _0x28c062=this['editor'];if(!_0x28c062['plugins']['has']('PageBreakEditing'))return;_0x28c062['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xab5cde=_0x28c062['plugins']['get']('TrackChangesEditing'),_0x510a6d=_0x28c062['locale'];_0xab5cde['descriptionFactory']['registerElementLabel']('pageBreak',_0x1014e8=>o(_0x510a6d,'ELEMENT_PAGE_BREAK',_0x1014e8));}}class bt extends _0x16a7c5{['afterInit'](){const _0x42402a=this['editor'];if(!_0x42402a['plugins']['has']('Paragraph'))return;const _0x4044f0=_0x42402a['locale'],_0x3121c4=_0x42402a['plugins']['get']('TrackChangesEditing');_0x3121c4['descriptionFactory']['registerElementLabel']('paragraph',_0x7df207=>o(_0x4044f0,'ELEMENT_PARAGRAPH',_0x7df207)),_0x3121c4['enableDefaultAttributesIntegration']('paragraph'),_0x3121c4['enableCommand']('insertParagraph'),_0x42402a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x42402a),{'priority':'highest'}),_0x42402a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x18f9a4,_0x3fc025,_0x5be109)=>{_0x5be109['options']['showSuggestionHighlights']&&nr(_0x42402a,{'showActiveMarker':!0x1})(_0x18f9a4,_0x3fc025,_0x5be109);},{'priority':'highest'});const _0x49c4da=_0x3121c4['descriptionFactory'];_0x49c4da['registerDescriptionCallback'](_0x3b831a=>{if('insertion'!==_0x3b831a['type'])return;const {start:_0x4fdfa1,end:_0x8b2537}=_0x3b831a['getFirstRange']();if(!_0x4fdfa1['isTouching'](_0x8b2537)||!_0x4fdfa1['nodeAfter'])return;const _0x2c6016=_0x42402a['model']['schema'],_0x4ffafc=_0x4fdfa1['nodeAfter'];return _0x2c6016['isBlock'](_0x4ffafc)&&!_0x2c6016['isLimit'](_0x4ffafc)&&_0x2c6016['checkChild'](_0x4ffafc,'$text')?{'type':'insertion','content':o(_0x4044f0,'*Insert:*\x20%0',_0x49c4da['getItemLabel'](_0x4ffafc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ea59c=this['editor'],_0x34e1e1=_0x4ea59c['locale'];_0x4ea59c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b515d=>{if('formatBlock'!=_0x4b515d['type'])return;const {data:_0xde1159}=_0x4b515d;return _0xde1159&&'paragraph'==_0xde1159['commandName']?{'type':'format','content':o(_0x34e1e1,'*Change\x20to:*\x20%0',o(_0x34e1e1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3317be,{showActiveMarker:_0x15a0f2=!0x0}={}){return(_0x55bb4c,_0x26f9b1,_0x5d94ee)=>{const _0x2ba590=_0x3317be['plugins']['get']('TrackChangesEditing'),_0x54ec8e=_0x26f9b1['markerRange']['start'],_0x2db56c=_0x26f9b1['markerRange']['end'],_0x155d1f=_0x3317be['model']['schema'];if(!_0x54ec8e['isTouching'](_0x2db56c)||!_0x54ec8e['nodeAfter'])return;const _0x26f78f=_0x54ec8e['nodeAfter'];if(_0x155d1f['isBlock'](_0x26f78f)&&!_0x155d1f['isLimit'](_0x26f78f)&&_0x155d1f['checkChild'](_0x26f78f,'$text')){if(!_0x5d94ee['consumable']['consume'](_0x26f9b1['markerRange'],_0x55bb4c['name']))return;const {authorId:_0x4d6560}=_0x2ba590['_splitMarkerName'](_0x26f9b1['markerName']),_0x1de518=_0x5d94ee['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4d6560}),_0x2691e2=_0x5d94ee['mapper']['toViewPosition'](_0x2db56c);_0x15a0f2&&_0x2ba590['activeMarkers']['includes'](_0x26f9b1['markerName'])&&_0x5d94ee['writer']['addClass']('ck-suggestion-marker--active',_0x1de518),_0x5d94ee['writer']['insert'](_0x2691e2,_0x1de518),_0x5d94ee['mapper']['bindElementToMarker'](_0x1de518,_0x26f9b1['markerName']);}};}class wt extends _0x16a7c5{['afterInit'](){const _0x5a5180=this['editor'];if(!_0x5a5180['plugins']['has']('RemoveFormatEditing'))return;_0x5a5180['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c8e90=this['editor'];_0x4c8e90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d254e=>{if('formatBlock'!=_0x1d254e['type']&&'formatInline'!=_0x1d254e['type'])return;const {data:_0x56e737}=_0x1d254e;return _0x56e737&&'removeFormat'==_0x56e737['commandName']?{'type':'format','content':o(_0x4c8e90['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x16a7c5{['afterInit'](){const _0x28fa03=this['editor'];if(!_0x28fa03['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3dcf3a=_0x28fa03['plugins']['get']('TrackChangesEditing');_0x3dcf3a['enableCommand']('goToPreviousRestrictedEditingException'),_0x3dcf3a['enableCommand']('goToNextRestrictedEditingException');const _0x2f849d=_0x28fa03['plugins']['get']('RestrictedEditingModeEditing');_0x2f849d['enableCommand']('trackChanges'),_0x2f849d['enableCommand']('acceptSuggestion'),_0x2f849d['enableCommand']('discardSuggestion'),_0x2f849d['enableCommand']('acceptAllSuggestions'),_0x2f849d['enableCommand']('discardAllSuggestions'),_0x2f849d['enableCommand']('acceptSelectedSuggestions'),_0x2f849d['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x16a7c5{static get['requires'](){return[_0x4fb1ea];}['init'](){const _0x353f8a=this['editor'],_0x36c13b=_0x353f8a['plugins']['get']('TrackChangesEditing');_0x36c13b['enableCommand']('shiftEnter'),_0x353f8a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x353f8a),{'priority':'high'}),_0x353f8a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x353f8a),{'priority':'high'}),_0x353f8a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ee264,_0x2ce4e1,_0x566aaa)=>{_0x566aaa['options']['showSuggestionHighlights']&&ge(_0x353f8a,{'showActiveMarker':!0x1})(_0x5ee264,_0x2ce4e1,_0x566aaa);}),_0x36c13b['descriptionFactory']['registerElementLabel']('softBreak',_0x243765=>o(_0x353f8a['locale'],'ELEMENT_LINE_BREAK',_0x243765));}}function ge(_0x588e38,{showActiveMarker:_0x100fde=!0x0}={}){return(_0x1e840e,_0x1a9741,_0x2e3581)=>{const _0x320a2f=_0x588e38['plugins']['get']('TrackChangesEditing');if(!_0x2e3581['consumable']['test'](_0x1a9741['markerRange'],_0x1e840e['name']))return;const _0x3b128b=_0x588e38['model'];for(const _0x487d69 of _0x1a9741['markerRange']['getItems']()){if(!_0x487d69['is']('element','softBreak'))continue;const _0x3c5fa1='deletion'==_0x1a9741['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1a15ba}=_0x320a2f['_splitMarkerName'](_0x1a9741['markerName']),_0x1ad8b1=_0x2e3581['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c5fa1,'data-author-id':_0x1a15ba}),_0x56a298=_0x2e3581['mapper']['toViewPosition'](_0x3b128b['createPositionBefore'](_0x487d69));_0x100fde&&_0x320a2f['activeMarkers']['includes'](_0x1a9741['markerName'])&&_0x2e3581['writer']['addClass']('ck-suggestion-marker--active',_0x1ad8b1),_0x2e3581['writer']['insert'](_0x56a298,_0x1ad8b1),_0x2e3581['mapper']['bindElementToMarker'](_0x1ad8b1,_0x1a9741['markerName']);}};}class St extends _0x16a7c5{['afterInit'](){const _0x3b2b68=this['editor'],_0x5ac64a=_0x3b2b68['model'],_0x2a4639=_0x3b2b68['locale'];if(!_0x3b2b68['plugins']['has']('StandardEditingModeEditing'))return;const _0x2475ce=_0x3b2b68['plugins']['get']('TrackChangesEditing'),_0xdf4137='restrictedEditingException',_0x1a8517=_0x3b2b68['commands']['get'](_0xdf4137);_0x2475ce['enableCommand'](_0xdf4137,(_0x3a58e5,_0x1db7a5={})=>{const _0x4e59d4=_0x5ac64a['document']['selection'];if(_0x4e59d4['isCollapsed'])return void _0x3a58e5(_0x1db7a5);const _0x41cd6c=void 0x0!==_0x1db7a5['forceValue']?_0x1db7a5['forceValue']:!_0x1a8517['value'];_0x5ac64a['change'](()=>{const _0x55da8d=Array['from'](_0x4e59d4['getRanges']());for(const _0x5dd6bf of _0x55da8d){const _0xa9206=_0x41cd6c?[_0x5dd6bf]:io(_0xdf4137,_0x5dd6bf,_0x5ac64a);for(const _0x4f1a7a of _0xa9206)_0x2475ce['markInlineFormat'](_0x4f1a7a,{'commandName':_0xdf4137,'commandParams':[{'forceValue':_0x41cd6c}]});}});}),_0x2475ce['descriptionFactory']['registerDescriptionCallback'](_0x552b89=>{if('formatBlock'!=_0x552b89['type']&&'formatInline'!=_0x552b89['type'])return;const {data:_0x2d58d3}=_0x552b89;return _0x2d58d3&&_0x2d58d3['commandName']==_0xdf4137?_0x2d58d3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a4639,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2a4639,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x16a7c5{['afterInit'](){const _0x5543c6=this['editor'];if(!_0x5543c6['plugins']['has']('Style')||!_0x5543c6['plugins']['has']('DataSchema'))return;const _0x3485d4=_0x5543c6['plugins']['get']('TrackChangesEditing'),_0x4abe57=_0x5543c6['locale'],_0x30e732=_0x5543c6['config']['get']('style')||{},_0x23898b=_0x5543c6['plugins']['get']('GeneralHtmlSupport'),_0x39f21e=_0x5543c6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5543c6['plugins']['get']('DataSchema'),_0x30e732['definitions']);_0x3485d4['enableDefaultAttributesIntegration']('style');const _0x4d8df1=new Set();for(const _0x214130 of _0x39f21e['block']){const _0x885a18=_0x23898b['getGhsAttributeNameForElement'](_0x214130['element']);_0x4d8df1['add'](_0x885a18);}const _0x4cc732=new Set();for(const _0x24fe0a of _0x39f21e['inline']){const _0xd6c650=_0x23898b['getGhsAttributeNameForElement'](_0x24fe0a['element']);_0x4cc732['add'](_0xd6c650);for(const _0x5bd75b of _0x24fe0a['ghsAttributes'])_0x4cc732['add'](_0x5bd75b);}for(const _0x5767a5 of _0x4d8df1)_0x3485d4['registerBlockAttribute'](_0x5767a5),_0x3485d4['descriptionFactory']['registerAttributeLabel'](_0x5767a5,o(_0x4abe57,'FORMAT_STYLE'));for(const _0x3cb507 of _0x4cc732)_0x3485d4['registerInlineAttribute'](_0x3cb507),_0x3485d4['descriptionFactory']['registerAttributeLabel'](_0x3cb507,o(_0x4abe57,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x452b3a=this['editor'],_0x44d7fb=_0x452b3a['locale'];_0x452b3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cdcca=>{if('formatBlock'!=_0x4cdcca['type']&&'formatInline'!=_0x4cdcca['type'])return;const {data:_0x41de83}=_0x4cdcca;return _0x41de83&&'style'===_0x41de83['commandName']?_0x41de83['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44d7fb,'*Set\x20format:*\x20%0',_0x41de83['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x44d7fb,'*Remove\x20format:*\x20%0',_0x41de83['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x16a7c5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5b9f60){super(_0x5b9f60),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5b3549=this['editor'],_0x554503=_0x5b3549['model']['document']['selection'];if(!_0x5b3549['plugins']['has']('TableEditing'))return;const _0xe4f372=_0x5b3549['locale'],_0x51f2ea=_0x5b3549['plugins']['get']('TrackChangesEditing'),_0x5011ed=_0x5b3549['plugins']['get']('TableUtils');_0x51f2ea['descriptionFactory']['registerElementLabel']('table',_0xc6a3ef=>o(_0xe4f372,'ELEMENT_TABLE',_0xc6a3ef)),this['_setupColumnsRowsFixing'](),_0x51f2ea['enableCommand']('insertTable'),_0x51f2ea['enableCommand']('selectTableRow'),_0x51f2ea['enableCommand']('selectTableColumn');for(const _0x2d5d21 of['insertTableRowAbove','insertTableRowBelow']){const _0x3c306f=_0x5b3549['commands']['get'](_0x2d5d21);_0x51f2ea['enableCommand'](_0x2d5d21,_0x26f718=>{_0x5b3549['model']['change'](_0x9a58f3=>{_0x26f718();const _0x1855d5='above'===_0x3c306f['order'],_0x46f4ec=_0x5011ed['getSelectionAffectedTableCells'](_0x554503),_0x5f34fd=_0x5011ed['getRowIndexes'](_0x46f4ec),_0x445440=_0x1855d5?_0x5f34fd['first']-0x1:_0x5f34fd['last']+0x1,_0x36a224=_0x46f4ec[0x0]['findAncestor']('table'),_0x5e124b=_0x5011ed['createTableWalker'](_0x36a224,{'startRow':_0x445440,'endRow':_0x445440}),_0x7ec151=Array['from'](_0x5e124b)['map'](_0x2244a8=>_0x9a58f3['createRangeOn'](_0x2244a8['cell']));_0x51f2ea['markMultiRangeInsertion'](_0x7ec151,'tableRow');});});}for(const _0x273175 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4a8440=_0x5b3549['commands']['get'](_0x273175);_0x51f2ea['enableCommand'](_0x273175,_0x246c91=>{_0x5b3549['model']['change'](_0x2f7413=>{_0x246c91();const _0x26d101='left'===_0x4a8440['order'],_0x22e13d=_0x5011ed['getSelectionAffectedTableCells'](_0x554503),_0x28fa99=_0x5011ed['getColumnIndexes'](_0x22e13d),_0x527665=_0x26d101?_0x28fa99['first']-0x1:_0x28fa99['last']+0x1,_0x41602e=_0x22e13d[0x0]['findAncestor']('table'),_0x47672f=_0x5011ed['createTableWalker'](_0x41602e,{'startRow':0x0,'column':_0x527665,'includeAllSlots':!0x1}),_0x566d63=Array['from'](_0x47672f)['map'](_0x664631=>_0x2f7413['createRangeOn'](_0x664631['cell']));_0x51f2ea['markMultiRangeInsertion'](_0x566d63,'tableColumn');});});}for(const _0x362178 of['removeTableRow','removeTableColumn']){const _0x4efc4a=_0x362178['substr'](0xb),_0x3b0f9a=_0x4efc4a['toLowerCase'](),_0x2d5f42=_0x3b0f9a['substr'](0x0,0x3)+'span',_0x576a44='table'+_0x4efc4a,_0x534dd5='min'+_0x4efc4a,_0x1279d1='max'+_0x4efc4a;_0x51f2ea['enableCommand'](_0x362178,()=>{_0x5b3549['model']['change'](_0x4bf9a6=>{const _0x2be9db=_0x5011ed['getSelectionAffectedTableCells'](_0x554503),_0x44f9ee=_0x2be9db[0x0]['findAncestor']('table');let _0x3a4a63;if('removeTableRow'==_0x362178){const _0x18a935=_0x5011ed['getRowIndexes'](_0x2be9db);_0x3a4a63={'startRow':_0x18a935['first'],'endRow':_0x18a935['last'],'includeAllSlots':!0x0};}else{const _0x3c8f09=_0x5011ed['getColumnIndexes'](_0x2be9db);_0x3a4a63={'startColumn':_0x3c8f09['first'],'endColumn':_0x3c8f09['last'],'includeAllSlots':!0x0};}const _0x20e592=_0x5011ed['createTableWalker'](_0x44f9ee,_0x3a4a63),_0x42b6d8=Array['from'](_0x20e592)['map'](({cell:_0x51bfc8})=>_0x51bfc8),_0x1062e0=be(_0x42b6d8['filter'](_0x224d40=>_0x224d40['hasAttribute'](_0x2d5f42))),_0x3bf417=be(_0x42b6d8['filter'](_0x1a68ab=>!_0x1a68ab['hasAttribute'](_0x2d5f42)))['map'](_0x4b8d4c=>_0x4bf9a6['createRangeOn'](_0x4b8d4c)),_0x1f6423=_0x51f2ea['markMultiRangeDeletion'](_0x3bf417,_0x576a44);if(_0x1f6423&&('tableRow'==_0x1f6423['subType']||'tableColumn'==_0x1f6423['subType'])){const _0x3cc710=this['_getSuggestionCoords'](_0x1f6423);for(const _0xe4493f of _0x1062e0){const _0xe927bf=_0x4bf9a6['createRangeOn'](_0xe4493f),_0x469142=_0x5011ed['getCellLocation'](_0xe4493f),_0x192247=_0xe4493f['getAttribute'](_0x2d5f42)-0x1,_0x5f151d=_0x3cc710[_0x534dd5],_0x40429d=_0x3cc710[_0x1279d1];_0x5f151d<=_0x469142[_0x3b0f9a]&&_0x469142[_0x3b0f9a]+_0x192247<=_0x40429d&&_0x1f6423['addRange'](_0xe927bf);}}});});}function _0x11fe02(_0x3ee02c){const _0x141187=Array['from'](_0x554503['getRanges']())['map'](_0x36457b=>_0x2fdf13['fromRange'](_0x36457b));_0x5b3549['model']['change'](_0x27ba3d=>{const _0x1f5e62=_0x27ba3d['batch'];_0x3ee02c=_0x3ee02c['filter'](_0x339641=>'$graveyard'!=_0x339641['root']['rootName']),_0x27ba3d['setSelection'](_0x3ee02c),_0x5b3549['commands']['get']('removeTableRow')['refresh'](),_0x5b3549['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5b3549['model']['enqueueChange'](()=>{_0x5b3549['model']['enqueueChange'](_0x1f5e62,_0x5aac40=>{const _0x188b1d=_0x141187['filter'](_0x189363=>'$graveyard'!=_0x189363['root']['rootName']);_0x188b1d['length']>0x0&&_0x5aac40['setSelection'](_0x188b1d);for(const _0x58d845 of _0x141187)_0x58d845['detach']();});});});}function _0x229bf4(_0x4c9d32){_0x5b3549['model']['change'](_0x238c04=>{const _0x4e7a84=Array['from'](_0x554503['getRanges']())['map'](_0x1efc37=>_0x2fdf13['fromRange'](_0x1efc37)),_0x2648b1=[];for(const _0x3189bb of _0x4c9d32)for(const _0x36e754 of _0x3189bb['getItems']({'shallow':!0x0}))_0x2648b1['push'](_0x36e754);for(const _0x5ead85 of _0x2648b1)'$graveyard'!=_0x5ead85['root']['rootName']&&(_0x238c04['setSelection'](_0x238c04['createPositionAt'](_0x5ead85,0x0)),_0x5b3549['commands']['get']('removeTableColumn')['refresh'](),_0x5b3549['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x32e220=_0x4e7a84['filter'](_0x333ad0=>'$graveyard'!=_0x333ad0['root']['rootName']);_0x32e220['length']>0x0&&_0x238c04['setSelection'](_0x32e220);for(const _0x3ccd92 of _0x4e7a84)_0x3ccd92['detach']();});}function _0x1e8a4d(_0x9d24ef,_0x4a92b4){return _0x4a92b4['every'](_0x54e5b1=>_0x9d24ef['some'](_0x32f9dc=>_0x32f9dc['end']['isEqual'](_0x54e5b1['start'])||_0x54e5b1['end']['isEqual'](_0x32f9dc['start'])));}function _0x1a9b4c(_0x29e490,_0x19b670){return!_0x29e490['some'](_0xdb0da9=>_0x19b670['some'](_0x1685bc=>_0xdb0da9['isIntersecting'](_0x1685bc)))&&_0x29e490['some'](_0x4c2d49=>_0x19b670['some'](_0x3ec4b7=>_0x4c2d49['end']['isTouching'](_0x3ec4b7['start'])));}_0x5b3549['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2cf0fd,_0x361921,_0x56ef21)=>{if(!_0x56ef21['options']['showSuggestionHighlights'])return;const _0x341806=_0x361921['item'];if(!_0x341806)return;const _0x335454=_0x56ef21['mapper']['toViewElement'](_0x341806);function _0x25c222(_0xee90ea){return Array['isArray'](_0xee90ea)?_0xee90ea:[_0xee90ea];}_0x335454&&'tableCell'===_0x341806['name']&&_0x27bc0e(_0x335454,_0x56ef21['writer'],(_0x52e2c3,_0x2c5ce3,_0x395a75)=>_0x395a75['addClass'](_0x25c222(_0x2c5ce3['classes']),_0x52e2c3),(_0x1e4acb,_0x382476,_0x3d9f33)=>_0x3d9f33['removeClass'](_0x25c222(_0x382476['classes']),_0x1e4acb));},{'priority':'highest'}),_0x51f2ea['descriptionFactory']['registerDescriptionCallback'](_0x39d1a8=>{if('insertion'!=_0x39d1a8['type']&&'deletion'!=_0x39d1a8['type'])return;const _0x1f0e0a=_0x39d1a8['getContainedElement']();if(null!=_0x1f0e0a&&_0x1f0e0a['is']('element','table')){if('insertion'==_0x39d1a8['type']){const _0xebc659=_0x39d1a8['getItems']()['filter'](_0x2b4a09=>_0x2b4a09['is']('$textProxy'))['map'](_0xe6f684=>_0xe6f684['data']);if(_0xebc659['length'])return{'type':'insertion','content':o(_0xe4f372,'*Insert:*\x20%0',o(_0xe4f372,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xebc659['join']('\x20')+'\x22'))};}if('deletion'==_0x39d1a8['type']){const _0x41a084=_0x39d1a8['getItems']()['filter'](_0x282327=>_0x282327['is']('$textProxy'))['map'](_0x521c10=>_0x521c10['data']);if(_0x41a084['length'])return{'type':'deletion','content':o(_0xe4f372,'*Remove:*\x20%0',o(_0xe4f372,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x41a084['join']('\x20')+'\x22'))};}}}),_0x51f2ea['descriptionFactory']['registerDescriptionCallback'](_0x2f38ac=>{if('tableRow'==_0x2f38ac['subType']){const _0x58e215=_0x2f38ac['getItems']()['filter'](_0x4989d9=>_0x4989d9['is']('$textProxy'))['map'](_0x471676=>_0x471676['data']),_0x179cd1=this['_getSuggestionCoords'](_0x2f38ac),_0xfaa919=_0x179cd1['maxRow']-_0x179cd1['minRow']+0x1;if('insertion'==_0x2f38ac['type'])return _0x58e215['length']?{'type':'insertion','content':o(_0xe4f372,'*Insert:*\x20%0',o(_0xe4f372,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xfaa919,'\x22'+_0x58e215['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xe4f372,'*Insert:*\x20%0',o(_0xe4f372,'ELEMENT_TABLE_ROW',_0xfaa919))};if('deletion'==_0x2f38ac['type'])return _0x58e215['length']?{'type':'deletion','content':o(_0xe4f372,'*Remove:*\x20%0',o(_0xe4f372,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xfaa919,'\x22'+_0x58e215['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xe4f372,'*Remove:*\x20%0',o(_0xe4f372,'ELEMENT_TABLE_ROW',_0xfaa919))};}if('tableColumn'==_0x2f38ac['subType']){const _0x16ba1c=_0x2f38ac['getItems']()['filter'](_0x31347d=>_0x31347d['is']('$textProxy'))['map'](_0x17af63=>_0x17af63['data']),_0x377e51=this['_getSuggestionCoords'](_0x2f38ac),_0x3abb03=_0x377e51['maxColumn']-_0x377e51['minColumn']+0x1;if('insertion'==_0x2f38ac['type'])return _0x16ba1c['length']?{'type':'insertion','content':o(_0xe4f372,'*Insert:*\x20%0',o(_0xe4f372,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3abb03,'\x22'+_0x16ba1c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xe4f372,'*Insert:*\x20%0',o(_0xe4f372,'ELEMENT_TABLE_COLUMN',_0x3abb03))};if('deletion'==_0x2f38ac['type'])return _0x16ba1c['length']?{'type':'deletion','content':o(_0xe4f372,'*Remove:*\x20%0',o(_0xe4f372,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3abb03,'\x22'+_0x16ba1c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xe4f372,'*Remove:*\x20%0',o(_0xe4f372,'ELEMENT_TABLE_COLUMN',_0x3abb03))};}}),_0x51f2ea['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x11fe02),_0x51f2ea['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x11fe02),_0x51f2ea['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x229bf4),_0x51f2ea['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x229bf4),_0x51f2ea['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1e8a4d),_0x51f2ea['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1e8a4d),_0x51f2ea['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1a9b4c),_0x51f2ea['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1a9b4c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x554ae3=this['editor'],_0x10ed3a=_0x554ae3['model']['document']['selection'];return(_0x33388d,_0x29117a)=>{_0x554ae3['model']['change'](_0x2979f9=>{const {commandName:_0x32492b,commandParams:_0x4b068a}=_0x29117a;let _0x3f4110=_0x33388d[0x0]['end']['nodeBefore'];_0x4b068a&&_0x4b068a[0x0]&&!0x1===_0x4b068a[0x0]['forceValue']&&(_0x3f4110=_0x33388d[0x0]['start']['nodeAfter']);const _0x2491d4=_0x2979f9['createRangeIn'](_0x3f4110);if('$graveyard'==_0x2491d4['root']['rootName'])return;const _0x303eeb=Array['from'](_0x10ed3a['getRanges']())['map'](_0x106ae1=>_0x2fdf13['fromRange'](_0x106ae1));_0x2979f9['setSelection'](_0x2491d4),_0x554ae3['commands']['get'](_0x32492b)['refresh'](),_0x4b068a['push']({'forceDefaultExecution':!0x0}),_0x554ae3['execute'](_0x32492b,..._0x4b068a);const _0x139d41=_0x303eeb['filter'](_0xa90b53=>'$graveyard'!=_0xa90b53['root']['rootName']);_0x139d41['length']>0x0&&_0x2979f9['setSelection'](_0x139d41);for(const _0x6e0761 of _0x303eeb)_0x6e0761['detach']();});};}['_getCoordsForCells'](_0x538c5c){const _0x35d9c5=this['editor']['plugins']['get']('TableUtils');let _0x119497=Number['MAX_SAFE_INTEGER'],_0x1fdca5=Number['MIN_SAFE_INTEGER'],_0x9329c2=Number['MAX_SAFE_INTEGER'],_0x53bb6f=Number['MIN_SAFE_INTEGER'];for(const _0x10ec3b of _0x538c5c){if('$graveyard'==_0x10ec3b['root']['rootName'])continue;const {row:_0x302a1f,column:_0x43fa0b}=_0x35d9c5['getCellLocation'](_0x10ec3b),_0x284dbf=_0x10ec3b['hasAttribute']('rowspan')?_0x10ec3b['getAttribute']('rowspan')-0x1:0x0,_0x5e19af=_0x10ec3b['hasAttribute']('colspan')?_0x10ec3b['getAttribute']('colspan')-0x1:0x0;_0x119497=_0x302a1f<_0x119497?_0x302a1f:_0x119497,_0x1fdca5=_0x302a1f+_0x284dbf>_0x1fdca5?_0x302a1f+_0x284dbf:_0x1fdca5,_0x9329c2=_0x43fa0b<_0x9329c2?_0x43fa0b:_0x9329c2,_0x53bb6f=_0x43fa0b+_0x5e19af>_0x53bb6f?_0x43fa0b+_0x5e19af:_0x53bb6f;}return{'minRow':_0x119497,'maxRow':_0x1fdca5,'minColumn':_0x9329c2,'maxColumn':_0x53bb6f};}['_setupColumnsRowsFixing'](){const _0x4eb98c=this['editor'],_0x3a2645=_0x4eb98c['plugins']['get']('TrackChangesEditing'),_0x3d293c=_0x4eb98c['plugins']['get']('TableUtils');_0x4eb98c['model']['document']['on']('change:data',()=>{const _0x1126e0=Array['from'](_0x4eb98c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3abf59,data:_0x435521}of _0x1126e0){const {group:_0x4d4f61,id:_0x1f9697,subType:_0x3e3673}=_0x3a2645['_splitMarkerName'](_0x3abf59);if('suggestion'!=_0x4d4f61)continue;if(null!=_0x435521['oldRange'])continue;const _0x41fe60=_0x3a2645['getSuggestion'](_0x1f9697);this['_tablePostFixingSubtypes']['includes'](_0x3e3673)&&this['_tableSuggestions']['add'](_0x41fe60);}},{'priority':'low'});const _0x15b411=(_0x3d243a,_0x40004d)=>{let _0x5ae55a=!0x1;const _0x55d6a4=_0x40004d['createRangeOn'](_0x3d243a),_0x8146b1=_0x3d243a['findAncestor']('table'),_0x18d38d=_0x3d293c['getCellLocation'](_0x3d243a);for(const _0x14d2b9 of this['_tableSuggestions']){const _0x5cf795=_0x14d2b9['subType'],_0x5a95f0=_0x5cf795['startsWith']('tablePaste'),_0x485093=_0x5cf795['substr'](_0x5a95f0?0xa:0x5),_0x37262b=_0x485093['toLowerCase'](),_0x19f233=_0x37262b['substr'](0x0,0x3)+'span',_0x5d5423='min'+_0x485093,_0x19c194='max'+_0x485093;if(!_0x14d2b9['isInContent'])continue;if(_0x8146b1!=_0x14d2b9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x14d2b9['isIntersectingWithRange'](_0x55d6a4))continue;const _0x598690=_0x3d243a['hasAttribute'](_0x19f233)?_0x3d243a['getAttribute'](_0x19f233)-0x1:0x0,_0xf0be22=this['_getSuggestionCoords'](_0x14d2b9),_0x2279e6=_0xf0be22[_0x5d5423],_0x5aeb0a=_0xf0be22[_0x19c194];_0x2279e6<=_0x18d38d[_0x37262b]&&_0x18d38d[_0x37262b]+_0x598690<=_0x5aeb0a&&(_0x14d2b9['addRange'](_0x55d6a4),_0x5ae55a=!0x0);}return _0x5ae55a;};_0x4eb98c['model']['document']['registerPostFixer'](_0x2f4f62=>{let _0x55965d=!0x1;for(const _0x17ef15 of _0x4eb98c['model']['document']['differ']['getChanges']())if('insert'==_0x17ef15['type']){if('tableRow'==_0x17ef15['name']){for(const _0x19de5b of _0x17ef15['position']['nodeAfter']['getChildren']())_0x55965d=_0x55965d||_0x15b411(_0x19de5b,_0x2f4f62);}else'tableCell'==_0x17ef15['name']&&(_0x55965d=_0x55965d||_0x15b411(_0x17ef15['position']['nodeAfter'],_0x2f4f62));}return _0x55965d;});}['_getSuggestionCoords'](_0x4d6ce4){return this['_getCoordsForCells'](_0x4d6ce4['getRanges']()['map'](_0x36ad23=>_0x36ad23['start']['nodeAfter']));}}function be(_0x22ddf4){return Array['from'](new Set(_0x22ddf4)['values']());}class vt extends _0x16a7c5{static get['requires'](){return[It];}['afterInit'](){const _0x15e4fb=this['editor'],_0x5992ed=_0x15e4fb['model']['document']['selection'],_0x575815=_0x15e4fb['locale'];if(!_0x15e4fb['plugins']['has']('TableEditing'))return;const _0x154381=_0x15e4fb['plugins']['get']('TrackChangesEditing'),_0x1d469e=_0x15e4fb['plugins']['get']('TableUtils'),_0x14f02b=_0x15e4fb['plugins']['get'](It);_0x14f02b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x154381['enableCommand']('mergeTableCells',()=>{const _0x5d5842=_0x1d469e['getSelectionAffectedTableCells'](_0x15e4fb['model']['document']['selection']);_0x15e4fb['model']['change'](()=>{_0x154381['markMultiRangeBlockFormat'](_0x5d5842,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x15e4fb['commands']['get']('mergeTableCells')['on']('execute',(_0x2fb3c4,_0xaa829)=>{_0x15e4fb['commands']['get']('trackChanges')['value']&&(_0xaa829['length']>0x0&&_0xaa829[_0xaa829['length']-0x1]&&_0xaa829[_0xaa829['length']-0x1]['forceDefaultExecution']||_0x154381['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2fb3c4['stop']());},{'priority':'highest'});for(const _0x477fa0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x12f2ea=_0x15e4fb['commands']['get'](_0x477fa0);_0x154381['enableCommand'](_0x477fa0,()=>{const _0x5d6796=_0x15e4fb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2cbfa5=>_0x2cbfa5['is']('element','tableCell')),_0x4dd479=_0x12f2ea['value'];_0x15e4fb['model']['change'](()=>{_0x154381['markMultiRangeBlockFormat']([_0x5d6796,_0x4dd479],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1378f0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x512906=_0x15e4fb['commands']['get'](_0x1378f0);_0x154381['enableCommand'](_0x1378f0,()=>{const _0xd5cfa3=_0x1d469e['getSelectionAffectedTableCells'](_0x15e4fb['model']['document']['selection'])[0x0],_0x4bd64c=_0xd5cfa3['findAncestor']('table'),{column:_0x2b5ff3,row:_0x44f587}=_0x1d469e['getCellLocation'](_0xd5cfa3);let _0x36a1d1=[];if('horizontally'==_0x512906['direction']){const _0x2e2a8a=_0x1d469e['createTableWalker'](_0x4bd64c,{'startRow':_0x44f587,'endRow':_0x44f587,'includeAllSlots':!0x0});_0x36a1d1=Array['from'](_0x2e2a8a)['map'](_0x23f218=>_0x23f218['cell']);}else{const _0x321687=_0x1d469e['createTableWalker'](_0x4bd64c,{'column':_0x2b5ff3,'includeAllSlots':!0x0});_0x36a1d1=Array['from'](_0x321687)['map'](_0x36cbaf=>_0x36cbaf['cell']);}_0x15e4fb['model']['change'](_0x4380b6=>{_0x154381['markBlockFormat'](_0x4380b6['createRangeOn'](_0xd5cfa3),{'commandName':_0x1378f0,'commandParams':[]},_0x36a1d1,_0x1378f0);});});}_0x154381['descriptionFactory']['registerDescriptionCallback'](_0x590531=>{if('formatBlock'!=_0x590531['type']&&'formatInline'!=_0x590531['type'])return;const {data:_0x307fc3}=_0x590531;return _0x307fc3&&'mergeTableCells'==_0x307fc3['commandName']?{'type':'format','content':o(_0x575815,'*Merge\x20cells*')}:void 0x0;}),_0x154381['descriptionFactory']['registerDescriptionCallback'](_0x73aed3=>{if('formatBlock'!=_0x73aed3['type']&&'formatInline'!=_0x73aed3['type'])return;const {data:_0x3a46e8}=_0x73aed3;return _0x3a46e8?'splitTableCellVertically'==_0x3a46e8['commandName']?{'type':'format','content':o(_0x575815,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3a46e8['commandName']?{'type':'format','content':o(_0x575815,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1a8988=_0x14f02b['_acceptFormatSuggestionCallbackFactory']();for(const _0x44512c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x154381['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44512c,'accept',_0x1a8988);for(const _0x494480 of['splitTableCellVertically','splitTableCellHorizontally'])_0x154381['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x494480,'accept',_0x1a8988);_0x154381['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x500146=>{_0x15e4fb['model']['change'](_0x1e5d84=>{const _0xcc3556=Array['from'](_0x5992ed['getRanges']())['map'](_0xd5b439=>_0x2fdf13['fromRange'](_0xd5b439));_0x1e5d84['setSelection'](_0x500146),_0x15e4fb['commands']['get']('mergeTableCells')['refresh'](),_0x15e4fb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x50cfe1=_0xcc3556['filter'](_0x830652=>'$graveyard'!=_0x830652['root']['rootName']);_0x50cfe1['length']>0x0&&_0x1e5d84['setSelection'](_0x50cfe1);for(const _0xd864fc of _0xcc3556)_0xd864fc['detach']();});});for(const _0xfc20d1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2e3126=_0x15e4fb['commands']['get'](_0xfc20d1);_0x2e3126['on']('set:isEnabled',(_0x3e41af,_0x337421,_0x2a74f3)=>{if(_0x2a74f3){const _0x5b7523=_0x15e4fb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25c92e=>_0x25c92e['is']('element','tableCell'));this['_areMergableCells'](_0x2e3126['value'],_0x5b7523)||(_0x3e41af['return']=!0x1,_0x3e41af['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1e293e=this['editor']['commands']['get']('mergeTableCells'),_0x50a185=this['editor']['plugins']['get']('TableUtils');if(!_0x1e293e['isEnabled'])return!0x1;const _0x198502=_0x50a185['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x312fc6 of _0x198502)for(const _0x1604d6 of _0x198502)if(_0x312fc6!=_0x1604d6&&!this['_areMergableCells'](_0x312fc6,_0x1604d6))return!0x1;return!0x0;}['_areMergableCells'](_0xcf3f15,_0x3488e1){const _0x3f1649=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e75fe=this['editor']['model']['createRangeOn'](_0xcf3f15),_0xe64d3c=this['editor']['model']['createRangeOn'](_0x3488e1),_0x1096e4=new Set(),_0x30bcff=new Set();for(const _0x46b998 of _0x3f1649['getSuggestions']())if(('insertion'==_0x46b998['type']||'deletion'==_0x46b998['type']||'mergeTableCells'==_0x46b998['subType'])&&_0x46b998['isInContent']){for(const _0x6e637f of _0x46b998['getRanges']())_0x6e637f['containsRange'](_0x1e75fe,!0x0)&&_0x1096e4['add'](_0x46b998['type']+':'+_0x46b998['author']['id']),_0x6e637f['containsRange'](_0xe64d3c,!0x0)&&_0x30bcff['add'](_0x46b998['type']+':'+_0x46b998['author']['id']);}if(_0x1096e4['size']!=_0x30bcff['size'])return!0x1;for(const _0x51e716 of _0x1096e4)if(!_0x30bcff['has'](_0x51e716))return!0x1;return!0x0;}}class Ct extends _0x16a7c5{static get['requires'](){return[It];}['afterInit'](){const _0x260903=this['editor'];if(!_0x260903['plugins']['has']('TableEditing'))return;const _0x8a93a8=_0x260903['locale'],_0x3836db=_0x260903['plugins']['get']('TrackChangesEditing');_0x3836db['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3836db['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3836db['registerBlockAttribute']('headingRows'),_0x3836db['registerBlockAttribute']('headingColumns'),_0x3836db['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x8a93a8,'FORMAT_HEADER_ROW')),_0x3836db['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x8a93a8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x16db71=this['editor']['plugins']['get']('TrackChangesEditing'),_0x286b19=this['editor']['plugins']['get']('TableUtils'),_0x5aea9d=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x38c8f1({showActiveMarker:_0x1cef11=!0x0,setDataAttribute:_0x2364f8=!0x0}={}){return(_0x13cd7c,_0x5a651b,_0x5b2fc4)=>{const {type:_0x4a804b,id:_0x122b12}=_0x16db71['_splitMarkerName'](_0x5a651b['markerName']),_0x4b5b25=_0x16db71['getSuggestion'](_0x122b12),_0x1eade6=_0x4b5b25['data'];if('formatBlock'!=_0x4b5b25['type']||!_0x1eade6||'setTableColumnHeader'!=_0x1eade6['commandName'])return;if(_0x5a651b['item'])return void _0x13cd7c['stop']();if(!_0x5b2fc4['consumable']['consume'](_0x5a651b['markerRange'],_0x13cd7c['name']))return;const _0x2500d3=_0x5a651b['markerRange']['start']['nodeAfter'],_0x51005b=_0x5a651b['markerRange']['end']['nodeBefore'],_0x57b738=_0x2500d3['parent']['parent'],{column:_0x23d868}=_0x286b19['getCellLocation'](_0x2500d3),{column:_0x1401c2}=_0x286b19['getCellLocation'](_0x51005b);for(let _0x4f27b6=_0x23d868;_0x4f27b6<=_0x1401c2;_0x4f27b6++){const _0x534ed7=_0x286b19['createTableWalker'](_0x57b738,{'column':_0x4f27b6,'includeAllSlots':!0x1});for(const _0x20438b of _0x534ed7){const _0x31c651=_0x20438b['cell'],_0x2cbc66=_0x5b2fc4['mapper']['toViewElement'](_0x31c651);_0x5b2fc4['writer']['addClass']('ck-suggestion-marker-'+_0x4a804b,_0x2cbc66),_0x2364f8&&_0x5b2fc4['writer']['setAttribute']('data-suggestion',_0x122b12,_0x2cbc66),_0x5b2fc4['mapper']['bindElementToMarker'](_0x2cbc66,_0x5a651b['markerName']),_0x1cef11&&(_0x16db71['activeMarkers']['includes'](_0x5a651b['markerName'])?_0x5b2fc4['writer']['addClass']('ck-suggestion-marker--active',_0x2cbc66):_0x5b2fc4['writer']['removeClass']('ck-suggestion-marker--active',_0x2cbc66));}}};}_0x16db71['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5aea9d),_0x16db71['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5aea9d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38c8f1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x363ef7,_0x5d20f6,_0x3b7465)=>{_0x3b7465['options']['showSuggestionHighlights']&&_0x38c8f1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x363ef7,_0x5d20f6,_0x3b7465);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x23d095,_0x44c742,_0x3d9d20)=>{const {type:_0x579fad,id:_0x23a03a}=_0x16db71['_splitMarkerName'](_0x44c742['markerName']),_0x4b02bf=_0x16db71['getSuggestion'](_0x23a03a),_0x55f818=_0x4b02bf['data'];if('formatBlock'!=_0x4b02bf['type']||!_0x55f818||'setTableColumnHeader'!=_0x55f818['commandName'])return;const _0x1d3bb6=_0x3d9d20['mapper']['markerNameToElements'](_0x44c742['markerName']);if(_0x1d3bb6){for(const _0x50401b of _0x1d3bb6)_0x3d9d20['writer']['removeClass']('ck-suggestion-marker-'+_0x579fad,_0x50401b),_0x3d9d20['writer']['removeClass']('ck-suggestion-marker--active',_0x50401b),_0x3d9d20['writer']['removeAttribute']('data-suggestion',_0x50401b),_0x3d9d20['mapper']['unbindElementFromMarkerName'](_0x50401b,_0x44c742['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4412ab=this['editor'],_0x1c60c7=_0x4412ab['locale'];function _0x4037b5(_0x11c99f){return{'type':'format','content':o(_0x1c60c7,'*Format:*\x20%0',_0x11c99f)};}_0x4412ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x114159=>{if('formatBlock'!=_0x114159['type'])return;const {data:_0x43b0dc}=_0x114159;if(_0x43b0dc){if('setTableRowHeader'==_0x43b0dc['commandName']){const _0x292bc4=_0x43b0dc['commandParams'][0x0]['forceValue'];return _0x4037b5(o(_0x1c60c7,_0x292bc4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x43b0dc['commandName']){const _0x27cbb7=_0x43b0dc['commandParams'][0x0]['forceValue'];return _0x4037b5(o(_0x1c60c7,_0x27cbb7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x5d0887=>[_0x5d0887,null]));class _t extends _0x16a7c5{static get['requires'](){return[It];}['afterInit'](){const _0x422e9a=this['editor'];if(!_0x422e9a['plugins']['has']('TableClipboard'))return;const _0x2971a2=_0x422e9a['plugins']['get']('TrackChangesEditing'),_0x392e4a=_0x422e9a['plugins']['get']('TableUtils'),_0x32bb73=_0x422e9a['plugins']['get'](It),_0x4d43c5=_0x422e9a['plugins']['get']('TableClipboard');_0x32bb73['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x422e9a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x422e9a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1a7f42=null;_0x422e9a['model']['on']('insertContent',(_0x32edd2,_0x3cc7c9)=>{const [_0x4044c4,_0x5d8172]=_0x3cc7c9,_0x236038=_0x3cc7c9[_0x3cc7c9['length']-0x1];_0x236038&&_0x236038['forceDefaultExecution']||_0x2971a2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2974fb,_0x3b24b3,_0x1be325,_0x423466,_0x3f1353){if(_0x3b24b3&&!_0x3b24b3['is']('documentSelection'))return!0x1;const _0x22c8c1=_0x3f1353['getTableIfOnlyTableInContent'](_0x2974fb,_0x1be325);if(!_0x22c8c1||!Re(_0x22c8c1,void 0x0,_0x423466))return!0x1;const _0x2db3ae=_0x423466['getSelectionAffectedTableCells'](_0x1be325['document']['selection']);if(!_0x2db3ae['length'])return!0x1;const _0x319ebd=_0x2db3ae[0x0]['findAncestor']('table'),_0x171374=_0x423466['getRowIndexes'](_0x2db3ae),_0x3b090d=_0x423466['getColumnIndexes'](_0x2db3ae),_0x2d2998={'startRow':_0x171374['first'],'endRow':_0x171374['last'],'startColumn':_0x3b090d['first'],'endColumn':_0x3b090d['last']};return 0x1==_0x2db3ae['length']&&(_0x2d2998['endRow']+=_0x423466['getRows'](_0x22c8c1)-0x1,_0x2d2998['endColumn']+=_0x423466['getColumns'](_0x22c8c1)-0x1),Re(_0x319ebd,_0x2d2998,_0x423466);}(_0x4044c4,_0x5d8172,_0x422e9a['model'],_0x392e4a,_0x4d43c5)&&(_0x32edd2['stop'](),_0x1a7f42={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x422e9a['model']['change'](()=>{_0x422e9a['model']['insertContent'](_0x3cc7c9[0x0],_0x3cc7c9[0x1],_0x3cc7c9[0x2],{'forceDefaultExecution':!0x0});const _0x21c6ac=_0x4e75e2(),{rowInsertionRanges:_0x31ffff,columnInsertionRanges:_0x38c1ef,insertionRanges:_0x138461,deletionRanges:_0x4c2394,cells:_0x3da9b6}=_0x1a7f42;_0x31ffff['length']&&_0x2971a2['markMultiRangeInsertion'](_0x31ffff,'tablePasteRow',{'tablePasteChainId':_0x21c6ac}),_0x38c1ef['length']&&_0x2971a2['markMultiRangeInsertion'](_0x38c1ef,'tablePasteColumn',{'tablePasteChainId':_0x21c6ac}),_0x138461['length']&&(_0x2971a2['markMultiRangeInsertion'](_0x138461,'tablePaste',{'tablePasteChainId':_0x21c6ac,'skipNestingCheck':!0x0}),_0x138461['forEach'](_0x47000=>_0x47000['detach']?.())),_0x4c2394['length']&&(_0x2971a2['markMultiRangeDeletion'](_0x4c2394,'tablePaste',{'tablePasteChainId':_0x21c6ac,'skipNestingCheck':!0x0}),_0x4c2394['forEach'](_0x3de2e3=>_0x3de2e3['detach']?.()));const _0x4aa8eb=_0x2971a2['markMultiRangeBlockFormat'](_0x3da9b6['map'](({element:_0x4e7706})=>_0x4e7706),{'formatGroupId':_0x4e75e2()},[],'tablePasteCell',{'tablePasteChainId':_0x21c6ac});if(_0x4aa8eb){const _0x28fd3c=_0x4aa8eb['getMarkers'](),_0x34e045=[];for(const {element:_0xa9ad51,attributes:_0x508f36}of _0x3da9b6){if(!_0x508f36)continue;const _0x43dd37=_0x422e9a['model']['createRangeOn'](_0xa9ad51),_0x1696c0=_0x28fd3c['find'](_0x441766=>_0x441766['getRange']()['isEqual'](_0x43dd37));_0x1696c0&&_0x34e045['push']([_0x1696c0['name'],_0x508f36]);}_0x34e045['length']&&_0x4aa8eb['setAttribute']('markerAttributes',Object['fromEntries'](_0x34e045));}_0x1a7f42=null;}));},{'priority':_0x4c737c['high']+0xa}),_0x422e9a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x9a933f,_0xdf317b)=>{const [_0x4fed56,_0x440ba2,,_0x151d05]=_0xdf317b;if(!_0x1a7f42)return;_0x9a933f['stop']();const _0x3b6835=_0x4fed56['cell'],_0x44ca14=_0x440ba2,_0x1aa532=ke(_0x3b6835),_0x52947e=ke(_0x44ca14);_0x9a933f['return']=_0x3b6835;let _0x3cfb9c=null,_0x19bec7=null;if(_0x52947e||_0x1aa532){if(_0x1aa532&&!_0x52947e){_0x151d05['remove'](_0x3b6835['getChild'](0x0));for(const _0x8f693e of Array['from'](_0x44ca14['getChildren']()))_0x151d05['insert'](_0x8f693e,_0x3b6835,'end');const _0x25dd64=_0x1a7f42['rowInsertionIndexes']['includes'](_0x4fed56['row']),_0x569251=_0x1a7f42['columnInsertionIndexes']['includes'](_0x4fed56['column']);_0x25dd64||_0x569251||(_0x3cfb9c=_0x2fdf13['fromRange'](_0x151d05['createRangeIn'](_0x3b6835)));}else _0x52947e&&!_0x1aa532&&(_0x19bec7=_0x151d05['createRangeIn'](_0x3b6835));}else{const _0x30fe1e=_0x151d05['createElement']('tableCellSuggestion'),_0x3803dd=_0x151d05['createElement']('tableCellSuggestion');_0x151d05['wrap'](_0x151d05['createRangeIn'](_0x3b6835),_0x3803dd),_0x151d05['insert'](_0x30fe1e,_0x3b6835,0x0);for(const _0x2f53bf of Array['from'](_0x44ca14['getChildren']()))_0x151d05['insert'](_0x2f53bf,_0x30fe1e,'end');_0x3cfb9c=_0x2fdf13['fromRange'](_0x151d05['createRangeOn'](_0x30fe1e)),_0x19bec7=_0x2fdf13['fromRange'](_0x151d05['createRangeOn'](_0x3803dd));}const _0x848105=Array['from'](_0x44ca14['getAttributes']())['filter'](([_0x1f4549])=>Pe['includes'](_0x1f4549));_0x1a7f42['cells']['push']({'element':_0x3b6835,'attributes':_0x848105['length']?Object['fromEntries'](_0x848105):null}),_0x3cfb9c&&_0x1a7f42['insertionRanges']['push'](_0x3cfb9c),_0x19bec7&&_0x1a7f42['deletionRanges']['push'](_0x19bec7);},{'priority':'high'}),_0x392e4a['on']('insertColumns',(_0x4751be,_0x10e8b4)=>{const [_0x104428,_0x12588b={}]=_0x10e8b4;if(!_0x1a7f42)return;const _0x26a133=_0x12588b['at']||0x0,_0x179ff8=_0x12588b['columns']||0x1;_0x1a7f42['columnInsertionIndexes']=new Array(_0x179ff8)['fill'](_0x26a133)['map']((_0xd536b7,_0x513f2c)=>_0xd536b7+_0x513f2c);for(const {cell:_0x362145}of _0x392e4a['createTableWalker'](_0x104428,{'startColumn':_0x26a133,'endColumn':_0x26a133+_0x179ff8-0x1}))_0x1a7f42['columnInsertionRanges']['push'](_0x422e9a['model']['createRangeOn'](_0x362145));},{'priority':'low'}),_0x392e4a['on']('insertRows',(_0x3c4fa5,_0x1d2372)=>{const [_0x72f471,_0x2c88bd={}]=_0x1d2372;if(!_0x1a7f42)return;const _0xe3fb2=_0x2c88bd['at']||0x0,_0x5b44ca=_0x2c88bd['rows']||0x1;_0x1a7f42['rowInsertionIndexes']=new Array(_0x5b44ca)['fill'](_0xe3fb2)['map']((_0xddb146,_0x34c6a4)=>_0xddb146+_0x34c6a4);for(const {cell:_0x4c43bd}of _0x392e4a['createTableWalker'](_0x72f471,{'startRow':_0xe3fb2,'endRow':_0xe3fb2+_0x5b44ca-0x1}))_0x1a7f42['rowInsertionRanges']['push'](_0x422e9a['model']['createRangeOn'](_0x4c43bd));},{'priority':'low'}),_0x2971a2['descriptionFactory']['registerDescriptionCallback'](_0x1eb9cc=>{if(_0x1eb9cc['subType']&&_0x1eb9cc['subType']['startsWith']('tablePaste'))return _0x1eb9cc['previous']?{}:{'type':'insertion','content':o(_0x422e9a['locale'],'*Replace\x20table\x20cells*')};});const _0x3525be=()=>!0x1;for(const _0x126740 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2971a2['_suggestionFactory']['registerCustomCallback']('insertion',_0x126740,'join',_0x3525be),_0x2971a2['_suggestionFactory']['registerCustomCallback']('deletion',_0x126740,'join',_0x3525be),_0x2971a2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x126740,'join',_0x3525be);_0x2971a2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3525be),_0x2971a2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x50d632,_0x2f2ecc,_0x2a69bd)=>{const _0x46e416=_0x50d632['map'](_0x10233d=>_0x10233d['getContainedElement']())['filter'](_0x19a50c=>_0x19a50c),_0x1926ec=new Map(_0x46e416['map'](_0x388922=>[_0x388922,null]));if(_0x1a7f42){for(const {element:_0x55f18d,attributes:_0x2a3397}of _0x1a7f42['cells'])_0x2a3397&&_0x1926ec['set'](_0x55f18d,_0x2a3397);}else{if(_0x2a69bd&&_0x2a69bd['markerAttributes'])for(const [_0x382e91,_0x5c63d1]of Object['entries'](_0x2a69bd['markerAttributes'])){const _0x172de6=_0x422e9a['model']['markers']['get'](_0x382e91),_0x4f6d74=_0x172de6?_0x172de6['getRange']()['getContainedElement']():null;_0x4f6d74&&_0x1926ec['set'](_0x4f6d74,_0x5c63d1);}}_0x422e9a['model']['change'](_0x50e501=>{for(const [_0x388068,_0x34da74]of _0x1926ec)_0x50e501['setAttributes']({...we,..._0x34da74},_0x388068);});});const _0x2bdb22=(_0x3e879a,_0x5693fc)=>{_0x2971a2['_suggestionFactory']['registerCustomCallback'](_0x3e879a,'tablePaste',_0x5693fc,(_0x23ea0a,_0x21e4ec,_0x10e94b)=>{_0x422e9a['model']['change'](_0x5b7c67=>{const _0x5ef0e8=[];for(const _0x4222b1 of _0x23ea0a){const _0x2743c9=_0x4222b1['start']['nodeAfter'];_0x2743c9['is']('element','tableCellSuggestion')&&_0x5ef0e8['push'](_0x2743c9);}_0x2971a2['_suggestionFactory']['getSuggestionCallback'](_0x3e879a,null,_0x5693fc)(_0x23ea0a,_0x21e4ec,_0x10e94b);for(const _0x455484 of _0x5ef0e8)'$graveyard'!=_0x455484['root']['rootName']&&_0x5b7c67['unwrap'](_0x455484);});});};_0x2bdb22('insertion','accept'),_0x2bdb22('insertion','discard'),_0x2bdb22('deletion','accept'),_0x2bdb22('deletion','discard'),_0x2971a2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x57ad6d=>{const _0x3545aa=_0x57ad6d['map'](_0x4ee603=>_0x4ee603['getContainedElement']()),_0x5a2d4f=_0x3545aa[0x0]['findAncestor']('table'),{minRow:_0x3d3fa2,maxRow:_0x1c083f}=_0x32bb73['_getCoordsForCells'](_0x3545aa);_0x392e4a['removeRows'](_0x5a2d4f,{'at':_0x3d3fa2,'rows':_0x1c083f-_0x3d3fa2+0x1});}),_0x2971a2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1e0ce6=>{const _0x40e15c=_0x1e0ce6['map'](_0x12c036=>_0x12c036['getContainedElement']()),_0x59a594=_0x40e15c[0x0]['findAncestor']('table'),{minColumn:_0x225b89,maxColumn:_0xc22f1a}=_0x32bb73['_getCoordsForCells'](_0x40e15c);_0x392e4a['removeColumns'](_0x59a594,{'at':_0x225b89,'columns':_0xc22f1a-_0x225b89+0x1});});const _0x396dd9=(_0x4de22a,_0x1e41a7)=>{if(!_0x1e41a7['subType']||!_0x1e41a7['subType']['startsWith']('tablePaste'))return;const _0x1f70d8=_0x1e41a7['attributes']['tablePasteChainId'],_0x28119e=_0x2971a2['getSuggestions']()['filter'](_0x3b7ba5=>_0x3b7ba5['isInContent']&&_0x3b7ba5['attributes']&&_0x3b7ba5['attributes']['tablePasteChainId']==_0x1f70d8);_0x28119e['length']&&_0x1e41a7['getAllAdjacentSuggestions']()['length']!=_0x28119e['length']&&_0x28119e['reduce']((_0x2444da,_0x54e6f6)=>(_0x2444da['next']=_0x54e6f6,_0x54e6f6['previous']=_0x2444da,_0x54e6f6));};function _0xa49f5d(_0x30a7b8,_0x47d79f=!0x0){const {id:_0x4ed490,authorId:_0x502415}=_0x2971a2['_splitMarkerName'](_0x30a7b8['markerName']),_0x1e9871=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x42dc9c=_0x2971a2['activeMarkers']['includes'](_0x30a7b8['markerName']);return _0x42dc9c&&_0x1e9871['push']('ck-suggestion-marker--active'),{'classes':_0x1e9871,'attributes':{'data-suggestion':_0x4ed490,'data-author-id':_0x502415},'priority':_0x42dc9c&&_0x47d79f?0xbc2:0xbb8};}_0x2971a2['on']('suggestionLoaded',_0x396dd9,{'priority':'high'}),_0x2971a2['on']('suggestionUnloaded',_0x396dd9,{'priority':'high'}),_0x422e9a['model']['document']['registerPostFixer'](()=>{let _0x14e33d=!0x1;const _0x101765=Array['from'](_0x422e9a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c666c,data:_0x58da6f}of _0x101765){const {group:_0x2ce22c,type:_0x564ca1,id:_0x5bb540}=_0x2971a2['_splitMarkerName'](_0x1c666c);if('suggestion'!=_0x2ce22c||'deletion'!=_0x564ca1||_0x58da6f['oldRange'])continue;if(!_0x2971a2['hasSuggestion'](_0x5bb540))continue;const _0x393a25=_0x2971a2['getSuggestion'](_0x5bb540)['getRanges'](),_0x192fa9=_0x422e9a['plugins']['get']('Users')['me'];for(const _0x59eacf of _0x2971a2['getSuggestions']()){if(!_0x59eacf['isInContent']||_0x59eacf['author']!=_0x192fa9)continue;if('formatBlock'!=_0x59eacf['type']||'tablePasteCell'!=_0x59eacf['subType'])continue;if(_0x59eacf['getRanges']()['every'](_0x1a3524=>_0x393a25['some'](_0x3eb556=>_0x3eb556['containsRange'](_0x1a3524,!0x0)))){for(const _0x321e77 of _0x59eacf['getAllAdjacentSuggestions']())_0x321e77['isInContent']&&(_0x321e77['discard'](),_0x14e33d=!0x0);}}}return _0x14e33d;}),_0x422e9a['model']['document']['registerPostFixer'](_0xc2dc23=>{const _0x38e9a8=_0x422e9a['commands']['get']('redo');if(!_0x38e9a8||!_0x38e9a8['_createdBatches']['has'](_0xc2dc23['batch']))return!0x1;let _0x2a62af=!0x1;const _0x435ac8=_0x422e9a['plugins']['get']('Users')['me'],_0x532a69=_0x422e9a['model']['document']['differ']['getChanges'](),_0x167f17=Array['from'](_0x422e9a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x29c1d5,data:_0xc565df})=>{const {group:_0x8e2c8b,subType:_0x1b60d4,authorId:_0x47a995}=_0x2971a2['_splitMarkerName'](_0x29c1d5);return'suggestion'==_0x8e2c8b&&'tablePaste'==_0x1b60d4&&_0x47a995==_0x435ac8['id']&&!_0xc565df['oldRange'];});for(const _0xa4fcfd of _0x532a69){if('insert'!=_0xa4fcfd['type']||'tableCellSuggestion'!=_0xa4fcfd['name']||0x1!=_0xa4fcfd['length'])continue;const _0x57ea1d=_0xc2dc23['createRange'](_0xa4fcfd['position'],_0xa4fcfd['position']['getShiftedBy'](0x1));if(!_0x167f17['find'](({data:_0x1c278f})=>_0x1c278f['newRange']['isEqual'](_0x57ea1d))){for(const {name:_0xbb1ab7,data:_0x6620c2}of _0x167f17)if(_0x57ea1d['containsRange'](_0x6620c2['newRange'])){_0xc2dc23['updateMarker'](_0xbb1ab7,{'range':_0x57ea1d}),_0x2a62af=!0x0;break;}}}return _0x2a62af;}),_0x422e9a['model']['document']['registerPostFixer'](_0xa59774=>{let _0x1fd725=!0x1;const _0x444a5e=_0x422e9a['plugins']['get']('Users')['me'],_0x443e6c=_0x2971a2['getSuggestions']()['filter'](_0x3ec2ca=>_0x3ec2ca['isInContent']&&_0x3ec2ca['author']==_0x444a5e),_0x2abc0d=new Set(),_0x9220a5=new Set();for(const _0x1fbcdd of _0x443e6c)if('tablePaste'==_0x1fbcdd['subType'])for(const _0x2cc8b8 of _0x1fbcdd['getMarkers']()){const _0x234aa4=_0x2cc8b8['getRange']()['getContainedElement']();if(_0x234aa4){if(_0x234aa4['is']('element','tableCellSuggestion')&&ke(_0x234aa4)){_0x1fbcdd['removeMarker'](_0x2cc8b8['name']),_0x2abc0d['add'](_0x234aa4),_0x1fd725=!0x0;const _0xd4993c=_0x234aa4['nextSibling'],_0x33d6dd=_0x234aa4['previousSibling'],_0x1f521d=_0xd4993c&&_0xd4993c['is']('element','tableCellSuggestion'),_0x3b40df=_0x33d6dd&&_0x33d6dd['is']('element','tableCellSuggestion');_0x1f521d&&!_0x2abc0d['has'](_0xd4993c)&&_0x9220a5['add'](_0xd4993c),_0x3b40df&&!_0x2abc0d['has'](_0x33d6dd)&&_0x9220a5['add'](_0x33d6dd);}else _0x234aa4['is']('element','paragraph')&&_0x234aa4['isEmpty']&&(_0x1fbcdd['removeMarker'](_0x2cc8b8['name']),_0x1fd725=!0x0);}}else{if('tablePasteCell'==_0x1fbcdd['subType']){if(!_0x1fbcdd['attributes']||!_0x1fbcdd['attributes']['tablePasteChainId'])continue;const _0x62dda3=_0x1fbcdd['attributes']['markerAttributes'];if(_0x62dda3&&Object['keys'](_0x62dda3)['length'])continue;const _0x53028c=_0x1fbcdd['attributes']['tablePasteChainId'];let _0x4fa684=!0x0,_0x869396=!0x0;for(const _0x4e5249 of _0x443e6c)if(_0x4e5249['subType']&&_0x4e5249['subType']['startsWith']('tablePaste')){if(!_0x4e5249['attributes']['tablePasteChainId']){_0x869396=!0x1;break;}if(_0x4e5249['id']!=_0x1fbcdd['id']&&_0x4e5249['attributes']['tablePasteChainId']==_0x53028c){_0x4fa684=!0x1;break;}}_0x869396&&_0x4fa684&&(_0x1fbcdd['removeMarkers'](),_0x1fd725=!0x0);}}for(const _0x15354d of _0x2abc0d)_0xa59774['remove'](_0x15354d);for(const _0x5dc2c9 of _0x9220a5)_0xa59774['unwrap'](_0x5dc2c9);return _0x1fd725;}),_0x422e9a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x103f26=>_0xa49f5d(_0x103f26),'converterPriority':'high'}),_0x422e9a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x32c04d,_0x1f9998)=>_0x1f9998['options']['showSuggestionHighlights']?_0xa49f5d(_0x32c04d,!0x1):null,'converterPriority':'high'});const _0x2c10c8=_0x422e9a['editing']['view'];this['listenTo'](_0x2c10c8['document'],'clipboardOutput',(_0x47d5b3,_0x36505e)=>{const _0x15ed0d=[];for(const _0x84eca2 of _0x2c10c8['createRangeIn'](_0x36505e['content'])['getItems']())_0x84eca2['is']('element','suggestion-td')&&_0x15ed0d['push'](_0x84eca2);_0x2c10c8['change'](_0x803cba=>{for(const _0xa5bd3b of _0x15ed0d)_0x803cba['move'](_0x803cba['createRangeIn'](_0xa5bd3b),_0x803cba['createPositionBefore'](_0xa5bd3b)),_0x803cba['remove'](_0xa5bd3b);});});}}function ke(_0x484dc8){if(_0x484dc8['isEmpty'])return!0x0;const _0x51a8f9=_0x484dc8['getChild'](0x0);return _0x51a8f9['is']('element','paragraph')&&_0x51a8f9['isEmpty'];}function Re(_0x309697,_0xbaee31={},_0x1a372e){for(const {isAnchor:_0x2b17d4,cellHeight:_0x3259d2,cellWidth:_0x545634}of _0x1a372e['createTableWalker'](_0x309697,{'includeAllSlots':!0x0,..._0xbaee31}))if(!_0x2b17d4||0x1!=_0x3259d2||0x1!=_0x545634)return!0x1;return!0x0;}class Nt extends _0x16a7c5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4d3c25=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d3c25['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4d3c25['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4d3c25['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d3c25['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4d3c25['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4d3c25['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5890fd,_0x13f68a){const _0x56985b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26e9ac=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3655b7=_0x13f68a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x230257=_0x26e9ac['getColumnGroupElement'](_0x3655b7);let _0x3cf27b=_0x230257?_0x26e9ac['getTableColumnsWidths'](_0x230257):null,_0x39e0a2=_0x3655b7['getAttribute']('tableWidth')||null;const _0x38142b=_0x13f68a['tableWidth']||_0x39e0a2,_0x4a909c=_0x13f68a['columnWidths']||_0x3cf27b,_0x463b8e=this['editor']['plugins']['get']('Users')['me'];for(const _0x386061 of _0x56985b['getSuggestions']()){const _0x3b6ba7=_0x386061['getContainedElement']();if('resizeTable'===_0x386061['subType']&&_0x3b6ba7===_0x3655b7){_0x386061['author']!==_0x463b8e&&_0x386061['discard']();const _0x52d841=_0x386061['data']['commandParams'];_0x39e0a2=_0x52d841[0x0]['tableWidth'],_0x3cf27b=_0x52d841[0x0]['columnWidths'];break;}}_0x5890fd({'table':_0x3655b7,'tableWidth':_0x38142b,'columnWidths':_0x4a909c}),_0x56985b['markBlockFormat'](_0x3655b7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x39e0a2,'columnWidths':_0x3cf27b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e31af){if('formatBlock'!=_0x5e31af['type']&&'formatInline'!=_0x5e31af['type'])return;const {data:_0x3821a8}=_0x5e31af;if(_0x3821a8&&'resizeTable'===_0x3821a8['formatGroupId']){const _0x2a01f7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2a01f7)};}}}class Dt extends _0x16a7c5{['afterInit'](){const _0x2c7e16=this['editor'];_0x2c7e16['plugins']['has']('Template')&&_0x2c7e16['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x16a7c5{['afterInit'](){const _0x90191e=this['editor'];if(!_0x90191e['commands']['get']('insertTableOfContents'))return;_0x90191e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x181cf1=_0x90191e['plugins']['get']('TrackChangesEditing'),_0xb55622=_0x90191e['locale'];_0x181cf1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x66a61f=>o(_0xb55622,'ELEMENT_TABLE_OF_CONTENTS',_0x66a61f));}}class $t extends _0x16a7c5{['afterInit'](){const _0x4cd92b=this['editor'];if(!_0x4cd92b['plugins']['has']('Title'))return;const _0xd73bb1=_0x4cd92b['plugins']['get']('TrackChangesEditing');_0xd73bb1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4cd92b['locale'],'ELEMENT_TITLE')),_0x4cd92b['model']['document']['registerPostFixer'](_0x498ab7=>{let _0x24348a=!0x1;const _0x27cd1a=Array['from'](_0x4cd92b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x414cb3,data:_0x20a426}of _0x27cd1a){const {group:_0x18c29d}=_0xd73bb1['_splitMarkerName'](_0x414cb3);if('suggestion'!==_0x18c29d||!_0x20a426['newRange'])continue;const _0x57b419=_0x20a426['newRange'],_0x52a461=_0x57b419['end']['nodeBefore'];if(!_0x52a461||!_0x52a461['is']('element','title-content'))continue;if(!_0x57b419['start']['isTouching'](_0x57b419['end']))continue;const _0x5c74d2=_0x4cd92b['model']['schema']['getNearestSelectionRange'](_0x57b419['end'],'forward');if(_0x5c74d2&&_0x5c74d2['isCollapsed']){const _0x3c994c=_0x498ab7['createRange'](_0x57b419['start'],_0x5c74d2['start']);_0x3c994c['isEqual'](_0x57b419)||(_0x498ab7['updateMarker'](_0x414cb3,{'range':_0x3c994c}),_0x24348a=!0x0);}_0x24348a||(_0x498ab7['removeMarker'](_0x414cb3),_0x24348a=!0x0);}return _0x24348a;});}}class Bt extends _0x16a7c5{['afterInit'](){const _0x471393=this['editor'],_0x5aa51f=_0x471393['plugins']['get']('TrackChangesEditing');_0x471393['plugins']['has']('UndoEditing')&&(_0x5aa51f['enableCommand']('undo'),_0x5aa51f['enableCommand']('redo'));}}class xt extends _0x16a7c5{static get['requires'](){return[It];}['afterInit'](){const _0x22a1f8=this['editor'];if(!_0x22a1f8['plugins']['has']('TableCaptionEditing'))return;_0x22a1f8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x16a7c5{['tableProperties'];['tableCellProperties'];constructor(_0x307167){super(_0x307167),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 _0x3854f0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x49dc4d of this['tableProperties'])_0x3854f0['enableCommand'](_0x49dc4d,(_0x3c0fdf,_0x419713)=>{const _0x14db24=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x49dc4d,[_0x14db24],this['tableProperties'],'tableProperties',_0x3c0fdf,_0x419713);});_0x3854f0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3854f0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3854f0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1067be,_0x4c70c9)=>this['handleDiscardAction'](this['tableProperties'],_0x1067be,_0x4c70c9)),_0x3854f0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12c010 of this['tableCellProperties'])_0x3854f0['enableCommand'](_0x12c010,(_0x3db305,_0x5897c2)=>{const _0x4fad0a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12c010,_0x4fad0a,this['tableCellProperties'],'tableCellProperties',_0x3db305,_0x5897c2);});_0x3854f0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3854f0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3854f0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x45170d,_0x44cb1c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x45170d,_0x44cb1c)),_0x3854f0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3854f0['descriptionFactory']['registerDescriptionCallback'](_0x1afc48=>this['handleSuggestionDescription'](_0x1afc48));}['_handlePropertyChange'](_0x33d995,_0x4430de,_0x2bec32,_0x437aeb,_0x101a16,_0x347e6a){const _0x202ec4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x347e6a['batch'],()=>{for(const _0x789658 of _0x4430de){if(this['_getSuggestion'](_0x789658,_0x437aeb))_0x101a16(_0x347e6a);else{const _0x17220a={};for(const _0x5d07af of _0x2bec32){const _0x12d6e9=_0x789658['getAttribute'](_0x5d07af);void 0x0!==_0x12d6e9&&(_0x17220a[_0x5d07af]=_0x12d6e9);}_0x101a16(_0x347e6a),_0x202ec4['markBlockFormat'](_0x789658,{'commandParams':[_0x17220a]},[],_0x437aeb);}}});}['handleDiscardAction'](_0xf38113,_0x4d0357,_0x1b4f7d){const _0x403a7b=_0x4d0357[0x0]['start']['nodeAfter'],_0x383b59=_0x1b4f7d['commandParams'][0x0];this['editor']['model']['change'](_0x432fb2=>{for(const _0x54f68c of _0xf38113)void 0x0!==_0x383b59[_0x54f68c]?_0x432fb2['setAttribute'](_0x54f68c,_0x383b59[_0x54f68c],_0x403a7b):_0x432fb2['removeAttribute'](_0x54f68c,_0x403a7b);});}['handleSuggestionDescription'](_0x40f01e){if(_0x40f01e['data'])switch(_0x40f01e['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'](_0x34c735,_0xcdca09){const _0x16bd3e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x14a6cd of _0x16bd3e['getSuggestions']({'skipNotAttached':!0x0})){const _0x417db2=_0x14a6cd['getContainedElement']();if(_0x14a6cd['subType']===_0xcdca09&&_0x417db2===_0x34c735)return _0x14a6cd;}return null;}}const m='$elementName';class p extends _0x16a7c5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x290cf2,_0x3ee6d8,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x4de723){function _0x20699f(_0x309822){return _0x309822['map'](_0x4a0086=>String['fromCharCode'](_0x4a0086))['join']('');}super(_0x4de723),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4b3d9e,_0x4a5e6e,_0x19795a,_0x3d8e94)=>{this['_model']['change'](()=>{for(const _0x1bcf9e of[..._0x3d8e94,..._0x19795a])this['_model']['markers']['has'](_0x1bcf9e)&&_0x4de723['editing']['reconvertMarker'](_0x1bcf9e);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4de723['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(),_0x4de723['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4de723['config']['get']('trackChanges.trackFormatChanges'),_0x4de723['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4de723['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4de723,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x20699f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x20699f([0x34,0x30,0x34,0x38,0x32,0x30,0x30,0x34]);}['init'](){const _0x3e2031=this['editor'],_0x30e2ef=(_0xaadd43,_0x21ddd0)=>{if('attribute'!=_0xaadd43)return'ck-suggestion-marker-'+_0xaadd43;const _0x396d48=_0x21ddd0['split']('|')[0x0];return this['_isBlockAttribute'](_0x396d48)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3e2031['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2d3aa4=>{const {id:_0x34ed09,authorId:_0x684a87,type:_0x5b8e26,subType:_0x2fc318}=this['_splitMarkerName'](_0x2d3aa4['markerName']),_0xb28ee5=['ck-suggestion-marker',_0x30e2ef(_0x5b8e26,_0x2fc318)];let _0x2e6f31=0xbb8;return this['activeMarkers']['includes'](_0x2d3aa4['markerName'])&&(_0xb28ee5['push']('ck-suggestion-marker--active'),_0x2e6f31=0xbc2),'deletion'==_0x5b8e26&&(_0x2e6f31+=0x5),{'classes':_0xb28ee5,'attributes':{'data-suggestion':_0x34ed09,'data-author-id':_0x684a87},'priority':_0x2e6f31};}}),_0x3e2031['conversion']['for']('dataDowncast')['add'](_0x395556=>{_0x395556['on']('addMarker:suggestion',(_0x29e565,_0x5a6d26,_0x16be74)=>{if(!_0x16be74['options']['showSuggestionHighlights'])return;const _0x9cb7=_0x5a6d26['item'];if(!_0x9cb7)return;const _0x57c979=_0x16be74['mapper']['toViewElement'](_0x9cb7);_0x3e2031['model']['schema']['isObject'](_0x9cb7)&&_0x57c979&&!_0x57c979['getCustomProperty']('widget')&&_0x57c979['is']('containerElement')&&_0x17940c(_0x57c979,_0x16be74['writer']);},{'priority':'high'});}),_0x3e2031['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x17f08a,_0x4ba55d)=>{if(!_0x4ba55d['options']['showSuggestionHighlights'])return null;const {type:_0x3cd72c,subType:_0x4bd75a}=this['_splitMarkerName'](_0x17f08a['markerName']);return{'classes':['ck-suggestion-marker',_0x30e2ef(_0x3cd72c,_0x4bd75a)],'priority':0xbb8};}});const _0x4a90c8=({showActiveMarkers:_0x4e7c8f=!0x0,isAttributeSuggestion:_0x274b2d=!0x1}={})=>(_0x4a90f3,_0x13eae9,_0x386a9c)=>{if(!_0x13eae9['item'])return;const {id:_0x1eb15c,authorId:_0x17cd94}=this['_splitMarkerName'](_0x13eae9['markerName']);if(_0x274b2d){const _0x44b295=this['_suggestions']['get'](_0x1eb15c),_0x522374=this['_getAttributeKey'](_0x44b295);if(!this['_isBlockAttribute'](_0x522374))return;}if(_0x13eae9['item']['is']('selection'))return void _0x386a9c['consumable']['consume'](_0x13eae9['item'],_0x4a90f3['name']);const _0x211732=_0x386a9c['mapper']['toViewElement'](_0x13eae9['item']);if(_0x13eae9['item']['is']('element')&&_0x3e2031['model']['schema']['isBlock'](_0x13eae9['item'])&&!_0x211732['getCustomProperty']('addHighlight')){_0x386a9c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x211732),_0x386a9c['writer']['setAttribute']('data-suggestion',_0x1eb15c,_0x211732),_0x386a9c['writer']['setAttribute']('data-author-id',_0x17cd94,_0x211732),_0x386a9c['mapper']['bindElementToMarker'](_0x211732,_0x13eae9['markerName']),_0x4e7c8f&&(this['activeMarkers']['includes'](_0x13eae9['markerName'])?_0x386a9c['writer']['addClass']('ck-suggestion-marker--active',_0x211732):_0x386a9c['writer']['removeClass']('ck-suggestion-marker--active',_0x211732));for(const _0x3cf175 of _0x3e2031['model']['createRangeIn'](_0x13eae9['item'])['getItems']())_0x386a9c['consumable']['consume'](_0x3cf175,_0x4a90f3['name']);_0x386a9c['consumable']['consume'](_0x13eae9['item'],_0x4a90f3['name']);}};_0x3e2031['conversion']['for']('dataDowncast')['add'](_0x200a7d=>{_0x200a7d['on']('addMarker:suggestion:formatBlock',(_0x4efe33,_0x1f9316,_0x445d9c)=>{_0x445d9c['options']['showSuggestionHighlights']&&_0x4a90c8({'showActiveMarkers':!0x1})(_0x4efe33,_0x1f9316,_0x445d9c);},{'priority':'highest'});}),_0x3e2031['conversion']['for']('dataDowncast')['add'](_0x144298=>{_0x144298['on']('addMarker:suggestion:attribute',(_0x6e09d8,_0x27dc8d,_0x427ed8)=>{_0x427ed8['options']['showSuggestionHighlights']&&_0x4a90c8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x6e09d8,_0x27dc8d,_0x427ed8);},{'priority':'highest'});}),_0x3e2031['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x30a671,_0x26f3f7)=>_0x26f3f7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x30a671['substr'](0xb)}}),_0x3e2031['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2a9e8d,{writer:_0x43c1d8})=>{let _0xb5fbdc='suggestion:'+_0x2a9e8d['getAttribute']('suggestion-type')+':'+_0x2a9e8d['getAttribute']('id');return _0x2a9e8d['getAttribute']('marker-count')&&(_0xb5fbdc+=':'+_0x2a9e8d['getAttribute']('marker-count')),_0x43c1d8['createElement']('$marker',{'data-name':_0xb5fbdc});}}),_0x3e2031['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3e2031['conversion']['for']('editingDowncast')['add'](_0x5da6f4=>{_0x5da6f4['on']('addMarker:suggestion:formatBlock',_0x4a90c8(),{'priority':'high'});}),_0x3e2031['conversion']['for']('editingDowncast')['add'](_0x5e8fe2=>{_0x5e8fe2['on']('addMarker:suggestion:attribute',_0x4a90c8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3e2031['conversion']['for']('editingDowncast')['add'](_0x53dd81=>{_0x53dd81['on']('removeMarker:suggestion:formatBlock',(_0x2c1048,_0x303d6f,_0x498e7e)=>{const _0x13f583=_0x498e7e['mapper']['markerNameToElements'](_0x303d6f['markerName']);if(_0x13f583){for(const _0x1c059d of _0x13f583)_0x1c059d['getCustomProperty']('addHighlight')||(_0x498e7e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c059d),_0x498e7e['writer']['removeAttribute']('data-suggestion',_0x1c059d),_0x498e7e['writer']['removeAttribute']('data-author-id',_0x1c059d),_0x498e7e['mapper']['unbindElementFromMarkerName'](_0x1c059d,_0x303d6f['markerName']));}},{'priority':'high'});}),_0x3e2031['conversion']['for']('editingDowncast')['add'](_0x213f41=>{_0x213f41['on']('removeMarker:suggestion:attribute',(_0xb99e66,_0x59e32a,_0x59486b)=>{const _0x51a8df=_0x59486b['mapper']['markerNameToElements'](_0x59e32a['markerName']);if(!_0x51a8df)return;const {id:_0x2941db}=this['_splitMarkerName'](_0x59e32a['markerName']),_0x3eccf6=this['_suggestions']['get'](_0x2941db),_0x4398f5=this['_getAttributeKey'](_0x3eccf6);if(this['_isBlockAttribute'](_0x4398f5)){for(const _0x519183 of _0x51a8df)_0x519183['getCustomProperty']('addHighlight')||(_0x59486b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x519183),_0x59486b['writer']['removeAttribute']('data-suggestion',_0x519183),_0x59486b['writer']['removeAttribute']('data-author-id',_0x519183),_0x59486b['mapper']['unbindElementFromMarkerName'](_0x519183,_0x59e32a['markerName']));}},{'priority':'high'});}),_0x3e2031['model']['document']['registerPostFixer'](_0x4d2c09=>{let _0xbecf54=!0x1;const _0x3b615f=Array['from'](_0x3e2031['model']['document']['differ']['getChangedMarkers']()),_0x1b2182=new Set();for(const {name:_0x2b6062,data:_0x2fe586}of _0x3b615f){const {group:_0x1e0451,type:_0x1f9f7c,subType:_0xdcf4e0,id:_0x2a204f}=this['_splitMarkerName'](_0x2b6062);if('suggestion'!==_0x1e0451)continue;const _0x5dab=this['_suggestions']['get'](_0x2a204f);if(null!=_0x2fe586['newRange']){'formatInline'==_0x1f9f7c&&(_0xbecf54=_0xbecf54||Ut(_0x2fe586['newRange'],_0x2b6062,_0x4d2c09,_0x3e2031['model']['schema']));const _0x776343='attribute'==_0x1f9f7c&&this['_isBlockAttribute'](_0xdcf4e0['split']('|')[0x0]);if(_0x2fe586['newRange']['isCollapsed']||'$graveyard'==_0x2fe586['newRange']['root']['rootName']||'formatBlock'==_0x1f9f7c&&!Ft(_0x2fe586['newRange'])||_0x776343&&!Ft(_0x2fe586['newRange'])||'deletion'==_0x1f9f7c&&!(!Vt(_0x5a00bb=_0x2fe586['newRange'])&&!function(_0x445f03){return _0x445f03['start']['parent']==_0x445f03['end']['nodeBefore']&&_0x445f03['start']['isAtEnd'];}(_0x5a00bb)))_0x4d2c09['removeMarker'](_0x2b6062),_0xbecf54=!0x0;else{if(!_0x5dab||!_0x5dab['isInContent'])continue;if(_0x2fe586['newRange']&&_0x2fe586['oldRange']&&_0x2fe586['newRange']['isEqual'](_0x2fe586['oldRange']))continue;_0x1b2182['add'](_0x5dab);}}}var _0x5a00bb;return _0x1b2182['size']>0x0&&(_0xbecf54=!!this['_joinWithAdjacentSuggestions'](_0x1b2182)||_0xbecf54),_0xbecf54;}),_0x3e2031['model']['document']['registerPostFixer'](_0x48b821=>{let _0x2709af=!0x1;for(const _0x14dcbc of _0x3e2031['model']['document']['differ']['getChanges']())if('insert'==_0x14dcbc['type'])for(const _0x50ccf3 of this['_suggestions']['values']()){if(_0x50ccf3['isMultiRange']||!_0x50ccf3['isInContent'])continue;const _0x1c2ee7='formatBlock'==_0x50ccf3['type'],_0x1209a2=this['_getAttributeKey'](_0x50ccf3),_0x5f74bc=_0x1209a2&&this['_isBlockAttribute'](_0x1209a2);if(!_0x1c2ee7&&!_0x5f74bc)continue;const _0x21375a=_0x50ccf3['getFirstRange']();if(_0x21375a['start']['parent']!=_0x21375a['end']['parent']&&!_0x21375a['end']['isAtEnd']){const _0x579d71=_0x3e2031['model']['createPositionAt'](_0x21375a['start']['nodeAfter'],'end'),_0x3eaebe=_0x3e2031['model']['createRange'](_0x21375a['start'],_0x579d71);_0x48b821['updateMarker'](_0x50ccf3['getFirstMarker'](),{'range':_0x3eaebe}),_0x2709af=!0x0;}}return _0x2709af;}),_0x3e2031['model']['document']['registerPostFixer'](_0x2b7ff2=>this['_processAttributeChanges'](_0x2b7ff2)),_0x3e2031['model']['document']['registerPostFixer'](_0x24e0fe=>!_0x24e0fe['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x24e0fe)),_0x3e2031['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3e2031['model']['document']['on']('change:data',(_0x3162f5,_0x5b0556)=>{if(!_0x5b0556['isLocal']||_0x5b0556['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f7103=_0x3e2031['model']['document']['differ']['getChanges']();if(0x0==_0x3f7103['length'])return;const _0x15ba31=[],_0x45cbba=_0x3f7103['filter'](_0x4c60f6=>'attribute'==_0x4c60f6['type']),_0x29f073=_0x3f7103['filter'](_0x54ba78=>'insert'==_0x54ba78['type']&&'$text'!=_0x54ba78['name']);for(const _0x5ded89 of _0x45cbba)this['_isRegisteredAttribute'](_0x5ded89['attributeKey'])&&_0x15ba31['push']({'key':_0x5ded89['attributeKey'],'newValue':_0x5ded89['attributeNewValue'],'oldValue':_0x5ded89['attributeOldValue'],'range':Pt(_0x5ded89['range'],_0x3e2031['model'])});for(const _0x598485 of _0x29f073){if('rename'!=_0x598485['action']&&'refresh'!=_0x598485['action'])continue;const _0x2fd01d=Lt(_0x598485['position']['nodeAfter'],_0x3e2031['model']),_0x4744d0=_0x598485['before'];'rename'==_0x598485['action']&&_0x15ba31['push']({'key':m,'newValue':_0x598485['name'],'oldValue':_0x4744d0['name'],'range':_0x2fd01d});for(const [_0x1cd7d7,_0x47d574]of _0x4744d0['attributes']){if(!this['_isRegisteredAttribute'](_0x1cd7d7))continue;const _0xcbbcd5=_0x598485['attributes']['get'](_0x1cd7d7);_0x47d574!==_0xcbbcd5&&_0x15ba31['push']({'key':_0x1cd7d7,'newValue':_0xcbbcd5,'oldValue':_0x47d574,'range':_0x2fd01d});}for(const [_0x5096b4,_0x33c8e7]of _0x598485['attributes'])this['_isRegisteredAttribute'](_0x5096b4)&&(_0x4744d0['attributes']['has'](_0x5096b4)||_0x15ba31['push']({'key':_0x5096b4,'newValue':_0x33c8e7,'oldValue':null,'range':_0x2fd01d}));}0x0!=_0x15ba31['length']&&_0x3e2031['model']['enqueueChange'](_0x5b0556,_0x1c8b54=>{const _0x535a50=_0x4e75e2();for(const {range:_0x491ec8,key:_0x159910,oldValue:_0x59efb5,newValue:_0xef90ae}of _0x15ba31)this['markAttributeChange'](_0x491ec8,_0x159910,_0x59efb5,_0xef90ae,{'groupId':_0x535a50});this['_reduceExistingSuggestions'](_0x1c8b54,_0x15ba31);});},{'priority':'lowest'}),_0x3e2031['model']['markers']['on']('update:suggestion',(_0x3aed04,_0x5d5b86,_0x1618d1)=>{if(null==_0x1618d1){const {id:_0x40dfe5}=this['_splitMarkerName'](_0x5d5b86['name']),_0x46f236=this['_suggestions']['get'](_0x40dfe5);_0x46f236&&_0x46f236['addMarkerName'](_0x5d5b86['name']);}}),_0x3e2031['model']['document']['on']('change:data',()=>{const _0x51f98c=Array['from'](_0x3e2031['model']['document']['differ']['getChangedMarkers']())['filter'](_0x26ac02=>'suggestion'===this['_splitMarkerName'](_0x26ac02['name'])['group']);if(0x0===_0x51f98c['length'])return;_0x51f98c['sort']((_0x2fc293,_0x26b4e3)=>{const _0x3d0e8e=_0x2fc293['data']['oldRange'],_0x1da01d=_0x26b4e3['data']['oldRange'];return null===_0x3d0e8e&&null===_0x1da01d?0x0:null===_0x3d0e8e&&null!==_0x1da01d?-0x1:null!==_0x3d0e8e&&null===_0x1da01d?0x1:_0x3d0e8e['start']['isBefore'](_0x1da01d['start'])?-0x1:0x1;});const _0x5e9497=new Set(),_0x5e02a5=new Set();for(const {name:_0x4c0c9c,data:_0x238230}of _0x51f98c){const {id:_0x48c953}=this['_splitMarkerName'](_0x4c0c9c);if(null===_0x238230['oldRange']){const _0xa45910=this['_handleNewSuggestionMarker'](_0x4c0c9c);_0x5e02a5['add'](_0xa45910);}else{const _0x8ccf7=this['_suggestions']['get'](_0x48c953);null!==_0x238230['newRange']||_0x8ccf7['isInContent']?(_0x5e9497['add'](_0x8ccf7['head']),_0x5e02a5['add'](_0x8ccf7)):this['_removeSuggestion'](_0x8ccf7);}}_0x5e02a5['size']>0x0&&this['_refreshSuggestionsChain'](_0x5e02a5);for(const _0x23f50e of _0x5e9497)this['fire']('suggestionChanged',_0x23f50e);}),_0x3e2031['model']['on']('applyOperation',(_0x406149,_0x35492e)=>{const _0x2a7918=_0x35492e[0x0];if(!this['_suggestions']['size'])return;if(!_0x2a7918['isDocumentOperation'])return;if(_0x2a7918['batch']['isUndo']||!_0x2a7918['batch']['isLocal'])return;let _0x497b5f,_0x2e6e31;switch(_0x2a7918['type']){case'insert':_0x497b5f=_0x3e2031['model']['createPositionAt'](_0x2a7918['position']),_0x2e6e31=_0x497b5f['getShiftedBy'](_0x2a7918['howMany']);break;case'split':_0x497b5f=_0x3e2031['model']['createPositionAt'](_0x2a7918['splitPosition']),_0x2e6e31=_0x3e2031['model']['createPositionAt'](_0x2a7918['moveTargetPosition']);break;case'move':_0x497b5f=_0x3e2031['model']['createPositionAt'](_0x2a7918['targetPosition']),_0x2e6e31=_0x497b5f['getShiftedBy'](_0x2a7918['howMany']);break;default:return;}const _0x13a657=_0x3e2031['model']['createRange'](_0x497b5f,_0x2e6e31);_0x3e2031['model']['change'](()=>{for(const {suggestion:_0x400858,meta:_0x47da7b}of this['_findSuggestions'](_0x13a657)){if(_0x400858['isMultiRange'])continue;if('formatInline'==_0x400858['type'])continue;const _0x3bc330=this['_getAttributeKey'](_0x400858);if(_0x3bc330&&this['_isBlockAttribute'](_0x3bc330)&&'split'!=_0x2a7918['type'])continue;const _0x3aa1ad=_0x400858['data']&&_0x400858['data']['multipleBlocks'];('formatBlock'!=_0x400858['type']||'split'==_0x2a7918['type']&&!_0x3aa1ad)&&(_0x47da7b['containsRangeInObject']||'insertion'==_0x400858['type']&&_0x47da7b['isOwn']||_0x400858['getFirstRange']()['containsRange'](_0x13a657)&&this['_breakSuggestionMarker'](_0x400858,_0x497b5f,_0x2e6e31));}});},{'priority':'lowest'}),_0x3e2031['model']['on']('deleteContent',(_0x4d719d,_0x4d47bf)=>{const _0x26e473=_0x4d47bf[0x0],_0x4b500d=_0x4d47bf[0x1];if(_0x4b500d&&_0x4b500d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x26e473['isCollapsed'])return;const _0x27afa9=_0x3e2031['model']['schema'],{start:_0x1084cd,end:_0x244d46}=_0x26e473['getFirstRange'](),_0x3a47b8=_0x1084cd['nodeAfter']&&_0x27afa9['isLimit'](_0x1084cd['nodeAfter'])?null:_0x27afa9['getNearestSelectionRange'](_0x1084cd,'forward'),_0x532901=_0x244d46['nodeBefore']&&_0x27afa9['isLimit'](_0x244d46['nodeBefore'])?null:_0x27afa9['getNearestSelectionRange'](_0x244d46,'backward'),_0xe46b1=_0x3e2031['model']['createRange'](_0x3a47b8?_0x3a47b8['start']:_0x1084cd,_0x532901?_0x532901['end']:_0x244d46);_0x3e2031['model']['change'](_0x541ff7=>{this['markDeletion'](_0xe46b1);const _0x2f1278=_0x3e2031['model']['schema']['getNearestSelectionRange'](_0xe46b1['start']);_0x26e473['is']('documentSelection')?_0x541ff7['setSelection'](_0x2f1278):_0x26e473['setTo'](_0x2f1278);}),_0x4d719d['stop']();},{'priority':_0x4c737c['normal']+0xa}),_0x3e2031['model']['on']('insertContent',(_0x4dc119,_0xa39b55)=>{const _0x4a2a9b=_0xa39b55[_0xa39b55['length']-0x1];_0x4a2a9b&&_0x4a2a9b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3e2031['model']['change'](()=>{let _0x290a05=_0x3e2031['model']['insertContent'](_0xa39b55[0x0],_0xa39b55[0x1],_0xa39b55[0x2],{'forceDefaultExecution':!0x0});if(!_0x290a05)return;_0x4dc119['return']=_0x290a05['clone']();const _0x3bef2a=_0x290a05['end']['nodeBefore'],_0x5ca50e=_0x3e2031['model']['schema'];_0x3bef2a&&_0x5ca50e['isBlock'](_0x3bef2a)&&!_0x5ca50e['isObject'](_0x3bef2a)&&(_0x290a05=_0x3e2031['model']['createRange'](_0x290a05['start'],_0x3e2031['model']['createPositionAt'](_0x3bef2a,'end'))),this['markInsertion'](_0x290a05);}),_0x4dc119['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4ee7df=new x(_0x3e2031,this['_suggestions']);_0x3e2031['commands']['add']('acceptSuggestion',_0x4ee7df),this['enableCommand']('acceptSuggestion');const _0x2aa2f2=new R(_0x3e2031,this['_suggestions']);_0x3e2031['commands']['add']('discardSuggestion',_0x2aa2f2),this['enableCommand']('discardSuggestion'),_0x3e2031['commands']['add']('acceptAllSuggestions',new E(_0x3e2031,_0x4ee7df,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3e2031['commands']['add']('discardAllSuggestions',new E(_0x3e2031,_0x2aa2f2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3e2031['commands']['add']('acceptSelectedSuggestions',new O(_0x3e2031,_0x4ee7df,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3e2031['commands']['add']('discardSelectedSuggestions',new O(_0x3e2031,_0x2aa2f2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x202b5d=_0x3e2031['plugins']['get']('CommentsRepository');this['listenTo'](_0x202b5d,'addComment',(_0x43f181,{threadId:_0x312cb9})=>{const _0x1bfb2c=this['_suggestions']['get'](_0x312cb9);_0x1bfb2c&&_0x1bfb2c['commentThread']&&0x1===_0x1bfb2c['commentThread']['length']&&this['_updateSuggestionData'](_0x312cb9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x202b5d,'removeComment',(_0x2a8183,{threadId:_0x283f55})=>{const _0x730716=this['_suggestions']['get'](_0x283f55);_0x730716&&_0x730716['commentThread']&&!_0x730716['commentThread']['length']&&this['_updateSuggestionData'](_0x283f55,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x30ad5f){if(this['_adapter'])throw new _0x10de5d('track-changes-adapter-already-set',this);this['_adapter']=_0x30ad5f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1e03ed=!0x1,toJSON:_0x1a6067=!0x1}={}){const _0x533f81=[];for(const _0x42f21a of this['_suggestions']['values']())_0x1e03ed&&!_0x42f21a['isInContent']||_0x533f81['push'](_0x42f21a);return _0x1a6067?_0x533f81['map'](_0x1d4fbb=>_0x1d4fbb['toJSON']()):_0x533f81;}['getSuggestion'](_0x599932){const _0x2eb614=this['_suggestions']['get'](_0x599932);if(!_0x2eb614)throw new _0x10de5d('track-changes-suggestion-not-found',this);return _0x2eb614;}['hasSuggestion'](_0x410442){return this['_suggestions']['has'](_0x410442);}['addSuggestionData'](_0x2accb9){const {authorId:_0x206ed9,id:_0x9f1543,attributes:_0x403b58}=_0x2accb9,[_0xdfbffe,_0x2ea023]=_0x2accb9['type']['split'](':'),_0xbe0190=this['_suggestions']['get'](_0x9f1543)||this['_createSuggestion'](_0xdfbffe,_0x2ea023,_0x9f1543,_0x206ed9,_0x403b58);if(this['_addThreadToSuggestion'](_0xbe0190),this['_checkSuggestionCorrectness'](_0xbe0190,_0xdfbffe,_0x2ea023||null,_0x206ed9),_0xbe0190['createdAt']=_0x2accb9['createdAt'],_0xbe0190['_isDataLoaded']=!0x0,_0x403b58&&_0x403b58['@external']){const _0x220734=_0x403b58['@external'],_0x5d679e=this['_getExternalAuthor'](_0x220734['authorName']);_0xbe0190['authoredAt']=_0x220734['createdAt'],_0xbe0190['author']=_0x5d679e,_0xbe0190['isExternal']=!0x0;}else _0xbe0190['authoredAt']=_0x2accb9['createdAt'];switch(_0x2accb9['data']&&(_0xbe0190['data']=_0x2accb9['data']),_0x2accb9['attributes']&&(_0xbe0190['attributes']=_0x2accb9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xbe0190['_saved']=!0x0),this['_suggestionState']['get'](_0xbe0190)){case'notReady':this['_suggestionState']['set'](_0xbe0190,'dataReady');break;case'markerReady':_0xbe0190['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xbe0190])),this['_refreshSuggestionsChain'](new Set([_0xbe0190])),this['_suggestionState']['set'](_0xbe0190,'ready'),this['fire']('suggestionLoaded',_0xbe0190)):this['_suggestionState']['set'](_0xbe0190,'removed');}return _0xbe0190;}['acceptSuggestion'](_0x2a874e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1f4880 of _0x2a874e['getAllAdjacentSuggestions']())_0x1f4880['accept']();});});}['discardSuggestion'](_0x84b71d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5685cd of _0x84b71d['getAllAdjacentSuggestions']())_0x5685cd['discard']();});});}['enableCommand'](_0x3e62cc,_0x244fbe){const _0x2852cf=this['editor']['commands']['get'](_0x3e62cc);if(!_0x2852cf)throw new _0x10de5d('track-changes-command-not-found',this,{'commandName':_0x3e62cc});if(this['_enabledCommands']['has'](_0x2852cf))throw new _0x10de5d('track-changes-enable-command-twice',this,{'commandName':_0x3e62cc});this['_enabledCommands']['add'](_0x2852cf),_0x244fbe&&_0x2852cf['on']('execute',(_0x3f6840,_0x1ef455)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1ef455['length']>0x0&&_0x1ef455[_0x1ef455['length']-0x1]&&_0x1ef455[_0x1ef455['length']-0x1]['forceDefaultExecution']?_0x1ef455['pop']():(_0x3f6840['return']=_0x244fbe((..._0x27c748)=>_0x2852cf['execute'](..._0x27c748,{'forceDefaultExecution':!0x0}),..._0x1ef455),_0x3f6840['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x48dc78){let _0x193b2f,_0xcbc249;const _0x802bd4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x193b2f=_0x48dc78();}catch(_0x56dcb9){_0xcbc249=_0x56dcb9;}return _0x802bd4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xcbc249&&_0x10de5d['rethrowUnexpectedError'](_0xcbc249,this),_0x193b2f;}['markInsertion'](_0x5125f6,_0x133bfd=null,_0x3dbc0e={}){if(_0x5125f6['isCollapsed'])return null;const _0x598ca5=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1aef8e,meta:_0x1a96cd}of this['_findSuggestions'](_0x5125f6,'insertion'))if(_0x1a96cd['isOwn']){if(!_0x1a96cd['isNextTo']){if(_0x1a96cd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1aef8e,_0x3dbc0e))continue;return _0x1aef8e;}if(qt(_0x1aef8e,_0x3dbc0e))return _0x1aef8e;this['_breakSuggestionMarker'](_0x1aef8e,_0x5125f6['start'],_0x5125f6['end']);break;}if(_0x133bfd==_0x1aef8e['subType']&&qt(_0x1aef8e,_0x3dbc0e)){const _0x4a855d=_0x1aef8e['getFirstRange']();return _0x4a855d['start']['isEqual'](_0x5125f6['end'])?this['_setSuggestionRange'](_0x1aef8e,this['_model']['createRange'](_0x5125f6['start'],_0x4a855d['end'])):this['_setSuggestionRange'](_0x1aef8e,this['_model']['createRange'](_0x4a855d['start'],_0x5125f6['end'])),_0x1aef8e;}}const _0x24660a=_0x4e75e2(),_0x21a9e6=_0x598ca5['id'],_0x3a3db7=_0x133bfd?'insertion:'+_0x133bfd:'insertion',_0x2d6058=this['_setSuggestionData']({'id':_0x24660a,'type':_0x3a3db7,'createdAt':new Date(),'authorId':_0x21a9e6,'attributes':_0x3dbc0e});return this['_addSuggestionMarker'](_0x3a3db7,_0x24660a,_0x21a9e6,_0x5125f6),_0x2d6058;}['markMultiRangeInsertion'](_0x261dd4,_0x3d74ba='multi',_0x1ebf4a={}){const _0x109575=this['editor']['plugins']['get']('Users')['me'],_0x5c84f7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3d74ba,'join');for(const _0x2c099a of this['getSuggestions']())if(_0x2c099a['author']['id']==_0x109575['id']&&'insertion'==_0x2c099a['type']&&_0x2c099a['subType']==_0x3d74ba&&qt(_0x2c099a,_0x1ebf4a)&&(_0x5c84f7(_0x2c099a['getRanges'](),_0x261dd4)||_0x5c84f7(_0x261dd4,_0x2c099a['getRanges']()))){for(const _0x50e2db of _0x261dd4)_0x2c099a['addRange'](_0x50e2db);return _0x2c099a;}for(const {suggestion:_0x564b07,meta:_0x1f422e}of this['_findSuggestions'](_0x261dd4,'insertion')){if(!_0x1f422e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1f422e['containsRangeInObject'])continue;if(!qt(_0x564b07,_0x1ebf4a))continue;let _0x68c4a7=!0x0;for(const _0x515d39 of _0x564b07['getRanges']())for(const _0x318a8f of _0x261dd4)if(!_0x515d39['containsRange'](_0x318a8f)){_0x68c4a7=!0x1;break;}if(_0x68c4a7)return _0x564b07;}const _0x3c9266=_0x4e75e2(),_0xc64e81=_0x109575['id'],_0x218bc7='insertion:'+_0x3d74ba,_0x9de298=this['_setSuggestionData']({'id':_0x3c9266,'type':_0x218bc7,'createdAt':new Date(),'authorId':_0xc64e81,'attributes':_0x1ebf4a});for(const _0x3b4d66 of _0x261dd4)this['_addSuggestionMarker'](_0x218bc7,_0x3c9266,_0xc64e81,_0x3b4d66,u['getMultiRangeId']());return _0x9de298;}['markInlineFormat'](_0x3598e0,_0x2fc7de,_0x423af0=null,_0x5d0c6e={}){if(_0x423af0=_0x423af0||Gt(_0x2fc7de),_0x3598e0['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x44bf85=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x423af0,'accept');return this['forceDefaultExecution'](()=>_0x44bf85([_0x3598e0],_0x2fc7de,_0x5d0c6e)),null;}const _0x1e7b9e=this['editor']['plugins']['get']('Users')['me'],_0x59a4a6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xf19b90,meta:_0x51c1a2}of this['_findSuggestions'](_0x3598e0,'insertion'))_0x51c1a2['isOwn']&&!_0x51c1a2['isInsideObject']&&_0x59a4a6['push'](..._0xf19b90['getRanges']());}const _0x26b0b6=function(_0x2619d5,_0x3dc7aa){const _0x1acc37=[];for(const _0x24150e of _0x3dc7aa){const _0xadf484=_0x2619d5['getIntersection'](_0x24150e);_0xadf484&&_0x1acc37['push'](_0xadf484);}return _0x1acc37;}(_0x3598e0,_0x59a4a6),_0x4f262c=function(_0x4dd6b9,_0x5eca28){const _0x11848f=[_0x4dd6b9];for(const _0x259136 of _0x5eca28){let _0x9c8540=0x0;for(;_0x9c8540<_0x11848f['length'];){const _0x58f513=_0x11848f[_0x9c8540]['getDifference'](_0x259136);_0x11848f['splice'](_0x9c8540,0x1,..._0x58f513),_0x9c8540+=_0x58f513['length'];}}return _0x11848f;}(_0x3598e0,_0x59a4a6);_0x26b0b6['length']&&this['_model']['change'](()=>{for(const _0x18de8b of _0x26b0b6){const _0x32eabb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x423af0,'accept');this['forceDefaultExecution'](()=>_0x32eabb([_0x18de8b],_0x2fc7de,_0x5d0c6e));}});for(const _0x2c92a4 of _0x4f262c){let _0x3192b2=null,_0x4d25a5=_0x2c92a4['start'],_0x37dec4=_0x2c92a4['end'];for(const {suggestion:_0x5c5976,meta:_0x2acd86}of this['_findSuggestions'](_0x2c92a4,'formatInline')){if(!_0x2acd86['isOwn'])continue;if(_0x5c5976['subType']!=_0x423af0)continue;if(!qt(_0x5c5976,_0x5d0c6e))continue;const _0x540547=_0x5c5976['getFirstRange']();if(_0x540547['containsRange'](_0x2c92a4,!0x0))return null;_0x4d25a5=_0x4d25a5['isBefore'](_0x540547['start'])?_0x4d25a5:_0x540547['start'],_0x37dec4=_0x37dec4['isAfter'](_0x540547['end'])?_0x37dec4:_0x540547['end'],_0x3192b2?_0x540547['start']['isBefore'](_0x3192b2['getFirstRange']()['start'])?(_0x3192b2['removeMarkers'](),_0x3192b2=_0x5c5976):_0x5c5976['removeMarkers']():_0x3192b2=_0x5c5976;}const _0x499989=this['_model']['createRange'](_0x4d25a5,_0x37dec4);if(_0x3192b2)this['_setSuggestionRange'](_0x3192b2,_0x499989);else{const _0x50cc20=_0x4e75e2(),_0x4eb5e2=_0x1e7b9e['id'];this['_setSuggestionData']({'id':_0x50cc20,'type':'formatInline:'+_0x423af0,'data':_0x2fc7de,'createdAt':new Date(),'authorId':_0x4eb5e2,'attributes':_0x5d0c6e}),this['_addSuggestionMarker']('formatInline:'+_0x423af0,_0x50cc20,_0x4eb5e2,_0x499989);}}return null;}['markBlockFormat'](_0x49fd7f,_0x31068f,_0x36d757=[],_0x19bf0a=null,_0xff7c7f={}){_0x31068f['formatGroupId']||(_0x31068f['formatGroupId']=_0x31068f['commandName']),_0x31068f['multipleBlocks']=_0x49fd7f['is']('range'),_0x19bf0a=_0x19bf0a||Gt(_0x31068f);const _0xc907f4=_0x36d757['map'](_0x3f23ef=>Lt(_0x3f23ef,this['_model'])),_0x3ffe0c=_0x49fd7f['is']('range')?_0x49fd7f:Lt(_0x49fd7f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5a40fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19bf0a,'accept');return this['forceDefaultExecution'](()=>_0x5a40fa([_0x3ffe0c],_0x31068f,_0xff7c7f)),null;}_0xc907f4['push'](_0x3ffe0c);let _0x3a3245=!0x0;for(const _0x1fbe14 of _0xc907f4)if(!this['_rangeIsInLocalUserInsertion'](_0x1fbe14)){_0x3a3245=!0x1;break;}if(_0x3a3245&&'always'!==this['_trackFormatChanges']){const _0x78a085=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19bf0a,'accept');return this['forceDefaultExecution'](()=>_0x78a085([_0x3ffe0c],_0x31068f,_0xff7c7f)),null;}let _0x8d44fc=null,_0x34c518=_0x3ffe0c['start'],_0x5e7fef=_0x3ffe0c['end'];for(const {suggestion:_0x542d42,meta:_0x22b755}of this['_findSuggestions'](_0x3ffe0c,'formatBlock')){if(!_0x22b755['isOwn'])continue;if(_0x22b755['isNextTo']||_0x22b755['containsRangeInObject']||_0x22b755['isInsideObject'])continue;if(_0x542d42['data']['formatGroupId']!=_0x31068f['formatGroupId'])continue;if(!qt(_0x542d42,_0xff7c7f))continue;const _0x1d8928=_0x542d42['getFirstRange']();if(_0x542d42['subType']==_0x19bf0a){if(_0x1d8928['containsRange'](_0x3ffe0c,!0x0))return null;_0x34c518=_0x34c518['isBefore'](_0x1d8928['start'])?_0x34c518:_0x1d8928['start'],_0x5e7fef=_0x5e7fef['isAfter'](_0x1d8928['end'])?_0x5e7fef:_0x1d8928['end'],_0x8d44fc?_0x1d8928['start']['isBefore'](_0x8d44fc['getFirstRange']()['start'])?(_0x8d44fc['removeMarkers'](),_0x8d44fc=_0x542d42):_0x542d42['removeMarkers']():_0x8d44fc=_0x542d42;}else{const _0x16cded=_0x3ffe0c['getIntersection'](_0x1d8928);this['_cutOutSuggestionMarker'](_0x542d42,_0x16cded);}}const _0xed9e51=this['editor']['plugins']['get']('Users')['me'],_0x3a9cff=_0x4e75e2(),_0x4e9428=_0xed9e51['id'];if(_0x8d44fc)return this['_setSuggestionRange'](_0x8d44fc,this['_model']['createRange'](_0x34c518,_0x5e7fef)),_0x8d44fc;{const _0x3a495e=this['_setSuggestionData']({'id':_0x3a9cff,'type':'formatBlock:'+_0x19bf0a,'data':_0x31068f,'createdAt':new Date(),'authorId':_0x4e9428,'attributes':_0xff7c7f});return this['_addSuggestionMarker']('formatBlock:'+_0x19bf0a,_0x3a9cff,_0x4e9428,this['_model']['createRange'](_0x34c518,_0x5e7fef)),_0x3a495e;}}['markMultiRangeBlockFormat'](_0xbcc0b4,_0x4a28a1,_0x5a1b62=[],_0x578a81=null,_0x2ddf32={}){_0x4a28a1['formatGroupId']||(_0x4a28a1['formatGroupId']=_0x4a28a1['commandName']);const _0x587e7e=_0xbcc0b4[0x0];_0x4a28a1['multipleBlocks']=_0x587e7e['is']('range'),_0x578a81=_0x578a81||Gt(_0x4a28a1);const _0x3c522d=_0x5a1b62['map'](_0x5caa63=>Lt(_0x5caa63,this['_model'])),_0xe85757=_0x587e7e['is']('range')?_0xbcc0b4:_0xbcc0b4['map'](_0x46ce9a=>Lt(_0x46ce9a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2d16b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x578a81,'accept');return this['forceDefaultExecution'](()=>_0x2d16b5(_0xe85757,_0x4a28a1,_0x2ddf32)),null;}_0x3c522d['push'](..._0xe85757);let _0xaf4419=!0x0;for(const _0xacfa37 of _0x3c522d)if(!this['_rangeIsInLocalUserInsertion'](_0xacfa37)){_0xaf4419=!0x1;break;}if(_0xaf4419&&'always'!==this['_trackFormatChanges']){const _0x2eac1b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x578a81,'accept');return this['forceDefaultExecution'](()=>_0x2eac1b(_0xe85757,_0x4a28a1,_0x2ddf32)),null;}const _0x5d5b56=this['editor']['plugins']['get']('Users')['me'];for(const _0x3c9a41 of this['getSuggestions']()){if(_0x3c9a41['author']['id']!=_0x5d5b56['id'])continue;if('formatBlock'!=_0x3c9a41['type']||_0x3c9a41['data']['formatGroupId']!=_0x4a28a1['formatGroupId'])continue;if(!qt(_0x3c9a41,_0x2ddf32))continue;const _0x15bcce=_0x3c9a41['subType']==_0x578a81;for(let _0x34fc7c=0x0;_0x34fc7c<_0xe85757['length'];_0x34fc7c++){const _0x3c31ce=_0xe85757[_0x34fc7c];for(const _0x46fbb2 of _0x3c9a41['getMarkers']()){const _0x54c8b4=_0x46fbb2['getRange']();if(_0x3c31ce['isEqual'](_0x54c8b4)){_0x15bcce?(_0xe85757['splice'](_0x34fc7c,0x1),_0x34fc7c--):_0x3c9a41['removeMarker'](_0x46fbb2['name']);break;}}}}if(0x0==_0xe85757['length'])return null;const _0x46a179=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x578a81,'join');for(const _0xf27b59 of this['getSuggestions']())if(_0xf27b59['author']['id']==_0x5d5b56['id']&&'formatBlock'==_0xf27b59['type']&&_0xf27b59['data']['formatGroupId']==_0x4a28a1['formatGroupId']&&_0xf27b59['subType']==_0x578a81&&qt(_0xf27b59,_0x2ddf32)&&(_0x46a179(_0xf27b59['getRanges'](),_0xe85757)||_0x46a179(_0xe85757,_0xf27b59['getRanges']()))){for(const _0x1b0e7c of _0xe85757)_0xf27b59['addRange'](_0x1b0e7c);return _0xf27b59;}const _0x319bb6=_0x4e75e2(),_0x2d9543=_0x5d5b56['id'],_0x30c31f='formatBlock:'+_0x578a81,_0x490359=this['_setSuggestionData']({'id':_0x319bb6,'type':_0x30c31f,'data':_0x4a28a1,'createdAt':new Date(),'authorId':_0x2d9543,'attributes':_0x2ddf32});for(const _0x188354 of _0xe85757)this['_addSuggestionMarker'](_0x30c31f,_0x319bb6,_0x2d9543,_0x188354,u['getMultiRangeId']());return _0x490359;}['markDeletion'](_0x319320,_0x387b4a=null,_0x5e9dbf={}){if(_0x319320['isCollapsed'])return null;const _0x1c6af9=this['editor']['plugins']['get']('Users')['me'],_0x548f3a=new _0x2fdf13(_0x319320['start'],_0x319320['end']);for(const {suggestion:_0x43cb43,meta:_0xc0920f}of this['_findSuggestions'](_0x548f3a,'insertion'))if(_0xc0920f['isOwn']&&!_0xc0920f['isNextTo']){if(_0x43cb43['isMultiRange']){const _0xfe7674=_0x43cb43['getRanges']()['filter'](_0x4d8d1c=>'$graveyard'!=_0x4d8d1c['root']['rootName']);_0xfe7674['every'](_0x25fa41=>_0x548f3a['containsRange'](_0x25fa41,!0x0))&&_0x43cb43['discard']();if(_0xfe7674['some'](_0x52810c=>_0x52810c['containsRange'](_0x548f3a,!0x0))){const _0x58b0ee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x387b4a,'accept');return this['forceDefaultExecution'](()=>_0x58b0ee([_0x548f3a],null,_0x5e9dbf)),null;}}else{const _0x3cddf4=_0x548f3a['getIntersection'](_0x43cb43['getFirstRange']());null!==_0x3cddf4&&_0x43cb43['_onDiscard']([_0x3cddf4],null,_0x5e9dbf);}}if(_0x548f3a['detach'](),_0x548f3a['isCollapsed']||'$graveyard'==_0x548f3a['root']['rootName'])return null;let _0x5c4dc4=null,_0x1b19bc=_0x548f3a['start'],_0x60bc88=_0x548f3a['end'];const _0x4f0ba6=this['_findSuggestions'](_0x548f3a,'deletion');for(const {suggestion:_0x15869c,meta:_0x506560}of _0x4f0ba6){const _0x159f18=this['_model']['createRange'](_0x1b19bc,_0x60bc88);if(_0x506560['isOwn']&&(this['_mergeNestedSuggestions']||!_0x506560['containsRangeInObject']&&!_0x506560['isInsideObject'])){if(_0x15869c['isMultiRange']){if(!qt(_0x15869c,_0x5e9dbf))continue;let _0xb0c255=!0x0;for(const _0x52a0f3 of _0x15869c['getRanges']()){if(_0x52a0f3['containsRange'](_0x159f18,!0x0))return _0x15869c;_0x159f18['containsRange'](_0x52a0f3)||(_0xb0c255=!0x1);}_0xb0c255&&_0x15869c['discard']();}else{const _0x4db20e=_0x15869c['getFirstRange']();if(_0x4db20e['containsRange'](_0x159f18,!0x0))return _0x15869c;if(!qt(_0x15869c,_0x5e9dbf)){_0x159f18['containsRange'](_0x4db20e)?_0x15869c['removeMarkers']():_0x4db20e['containsPosition'](_0x1b19bc)?_0x1b19bc=_0x4db20e['end']:_0x4db20e['containsPosition'](_0x60bc88)&&(_0x60bc88=_0x4db20e['start']);continue;}_0x1b19bc=_0x1b19bc['isBefore'](_0x4db20e['start'])?_0x1b19bc:_0x4db20e['start'],_0x60bc88=_0x60bc88['isAfter'](_0x4db20e['end'])?_0x60bc88:_0x4db20e['end'],_0x5e9dbf=Object['assign']({},_0x15869c['attributes']),_0x5c4dc4?_0x4db20e['start']['isBefore'](_0x5c4dc4['getFirstRange']()['start'])?(_0x5c4dc4['removeMarkers'](),_0x5c4dc4=_0x15869c):_0x15869c['removeMarkers']():_0x5c4dc4=_0x15869c;}}}if(_0x5c4dc4)return this['_setSuggestionRange'](_0x5c4dc4,this['_model']['createRange'](_0x1b19bc,_0x60bc88)),_0x5c4dc4;{const _0x3892b9=_0x4e75e2(),_0xf30bf1=this['_model']['createRange'](_0x1b19bc,_0x60bc88),_0x4fe43a=_0x1c6af9['id'],_0xb76bf6=_0x387b4a?'deletion:'+_0x387b4a:'deletion',_0x3ba37d=this['_setSuggestionData']({'id':_0x3892b9,'type':_0xb76bf6,'createdAt':new Date(),'authorId':_0x4fe43a,'attributes':_0x5e9dbf});return this['_addSuggestionMarker'](_0xb76bf6,_0x3892b9,_0x4fe43a,_0xf30bf1),_0x3ba37d;}}['markMultiRangeDeletion'](_0x156a76,_0x5b487e='multi',_0xe66e7a={}){const _0x347465=this['editor']['plugins']['get']('Users')['me'],_0x5b03a2=_0x156a76['map'](_0x4ca596=>new _0x2fdf13(_0x4ca596['start'],_0x4ca596['end'])),_0x118195=new Set();for(const {suggestion:_0x2fd3e7,meta:_0x1db098}of this['_findSuggestions'](_0x5b03a2,'insertion'))_0x1db098['isOwn']&&!_0x1db098['isNextTo']&&_0x118195['add'](_0x2fd3e7);for(const _0x432c9a of _0x118195)if(_0x432c9a['isMultiRange']){const _0x2c50d7=_0x432c9a['getRanges']();(!_0x432c9a['attributes']||!_0x432c9a['attributes']['skipNestingCheck'])&&(_0x2c50d7['every'](_0x336d8d=>_0x5b03a2['some'](_0x23bfd9=>_0x23bfd9['containsRange'](_0x336d8d,!0x0)))&&_0x432c9a['discard']());if(_0x5b03a2['every'](_0x4d2bea=>_0x2c50d7['some'](_0x3daa5b=>_0x3daa5b['containsRange'](_0x4d2bea,!0x0)))){const _0x16195f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b487e,'accept');return this['forceDefaultExecution'](()=>_0x16195f(_0x156a76,null,_0xe66e7a)),null;}}else{const _0x708d82=_0x432c9a['getFirstRange']();_0x5b03a2['some'](_0x123744=>_0x123744['containsRange'](_0x708d82,!0x0))&&_0x432c9a['discard']();if(_0x5b03a2['every'](_0x42489e=>_0x708d82['containsRange'](_0x42489e,!0x0))){const _0x45a4b9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b487e,'accept');return this['forceDefaultExecution'](()=>_0x45a4b9(_0x5b03a2,null,_0xe66e7a)),null;}}const _0x341773=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b487e,'join');let _0x4015cb=null;for(const _0x2a188e of this['getSuggestions']())if(_0x2a188e['author']['id']==_0x347465['id']&&_0x2a188e['isInContent']&&'deletion'==_0x2a188e['type']&&_0x2a188e['subType']==_0x5b487e&&qt(_0x2a188e,_0xe66e7a)&&(_0x341773(_0x2a188e['getRanges'](),_0x5b03a2)||_0x341773(_0x5b03a2,_0x2a188e['getRanges']()))){if(_0x4015cb){if(_0x2a188e['commentThread']&&_0x2a188e['commentThread']['length'])continue;for(const _0x25fce1 of _0x2a188e['getRanges']())_0x4015cb['isIntersectingWithRange'](_0x25fce1)||_0x4015cb['addRange'](_0x25fce1);_0x2a188e['removeMarkers']();}else{_0x4015cb=_0x2a188e;for(const _0x4c9f37 of _0x5b03a2)_0x2a188e['isIntersectingWithRange'](_0x4c9f37)||_0x2a188e['addRange'](_0x4c9f37);}}if(_0x4015cb)return _0x4015cb;_0x118195['clear']();for(const {suggestion:_0x48f952,meta:_0x33ae48}of this['_findSuggestions'](_0x5b03a2,'deletion'))_0x33ae48['isOwn']&&(this['_mergeNestedSuggestions']||!_0x33ae48['containsRangeInObject']&&!_0x33ae48['isInsideObject'])&&qt(_0x48f952,_0xe66e7a)&&_0x118195['add'](_0x48f952);for(const _0x5d56b3 of _0x118195){const _0x4b9a9e=_0x5d56b3['getRanges']();if(!_0xe66e7a||!_0xe66e7a['skipNestingCheck']){if(_0x5b03a2['every'](_0x3deac7=>_0x4b9a9e['some'](_0x593831=>_0x593831['containsRange'](_0x3deac7,!0x0))))return _0x5d56b3;}(!_0x5d56b3['attributes']||!_0x5d56b3['attributes']['skipNestingCheck'])&&(_0x4b9a9e['every'](_0x3041dc=>_0x5b03a2['some'](_0x409c8b=>_0x409c8b['containsRange'](_0x3041dc,!0x0)))&&_0x5d56b3['discard']());}const _0x5b0e08=_0x4e75e2(),_0x133c49=_0x347465['id'],_0x48f051='deletion:'+_0x5b487e,_0x598d84=this['_setSuggestionData']({'id':_0x5b0e08,'type':_0x48f051,'createdAt':new Date(),'authorId':_0x133c49,'attributes':_0xe66e7a});for(const _0xbd4aa8 of _0x5b03a2)_0xbd4aa8['detach'](),_0xbd4aa8['isCollapsed']||'$graveyard'==_0xbd4aa8['root']['rootName']||this['_addSuggestionMarker'](_0x48f051,_0x5b0e08,_0x133c49,_0xbd4aa8,u['getMultiRangeId']());return _0x598d84;}['markAttributeChange'](_0x2fb47f,_0x1bc7d0,_0xc506e1,_0x2c4c03,_0x2f3770){if(_0x2fb47f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x331471=this['editor']['plugins']['get']('Users')['me']['id'],_0x5f1ca3=Array['from'](this['_suggestions']['values']())['filter'](_0x23473a=>'attribute'==_0x23473a['type']&&_0x23473a['data']['key']==_0x1bc7d0&&_0x23473a['isIntersectingWithRange'](_0x2fb47f));if('default'===this['_trackFormatChanges']){const _0x2112e5=this['_findSuggestions'](_0x2fb47f,'insertion')['filter'](({meta:_0x343449})=>_0x343449['isOwn']&&!_0x343449['isInsideObject']&&!_0x343449['isNextTo'])['map'](({suggestion:_0x4eab4a})=>_0x4eab4a);_0x5f1ca3['unshift'](..._0x2112e5);}const _0x49d5e9=new Map([[_0x2fb47f,_0xc506e1]]);for(const _0x37ebad of _0x5f1ca3){const _0x5e74da='attribute'==_0x37ebad['type']?_0x37ebad['data']['oldValue']:void 0x0,_0x10a219=_0x37ebad['getFirstRange'](),_0xc3332=Array['from'](_0x49d5e9['keys']())['find'](_0xef304e=>_0xef304e['isIntersecting'](_0x10a219));if(!_0xc3332)continue;const _0x4bbc04=_0xc3332['getDifference'](_0x10a219);this['_isBlockAttribute'](_0x1bc7d0)&&'insertion'==_0x37ebad['type']&&0x0!=_0x4bbc04['length']||(_0x49d5e9['delete'](_0xc3332),_0x4bbc04['forEach'](_0x2b61ea=>{_0x49d5e9['set'](_0x2b61ea,_0xc506e1);}),'insertion'!=_0x37ebad['type']&&_0x5e74da!=_0x2c4c03&&_0x49d5e9['set'](_0xc3332['getIntersection'](_0x10a219),_0x5e74da));}const _0x51c3e0=[];for(const [_0x264ee8,_0x546d29]of _0x49d5e9){const _0x6d5f2=_0x4e75e2(),_0x281382={'key':_0x1bc7d0,'oldValue':_0x546d29,'newValue':_0x2c4c03};_0x1bc7d0['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':_0x1bc7d0});const _0x4ef56d=('attribute:'+(_0x1bc7d0+'|'+Gt({'newValue':_0x2c4c03})))['substring'](0x0,0x3c),_0x3a556e=this['_setSuggestionData']({'id':_0x6d5f2,'type':_0x4ef56d,'data':_0x281382,'createdAt':new Date(),'authorId':_0x331471,'attributes':_0x2f3770});_0x51c3e0['push'](_0x3a556e),this['_addSuggestionMarker'](_0x4ef56d,_0x6d5f2,_0x331471,_0x264ee8);}return _0x51c3e0;}['enableDefaultAttributesIntegration'](_0x4cce15){this['enableCommand'](_0x4cce15,(_0x309dee,..._0x46e8ed)=>{this['_recordAttributeChanges'](()=>{_0x309dee(..._0x46e8ed);});});}['registerBlockAttribute'](_0x6d3892){this['_blockAttributeKeys']['add'](_0x6d3892);}['registerInlineAttribute'](_0x5aed0f){this['_inlineAttributeKeys']['add'](_0x5aed0f);}['_getAttributeKey'](_0x11d6cb){return'attribute'==_0x11d6cb['type']?_0x11d6cb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x43850f,_0x5c0ad8){const _0x472ec8=_0x43850f['getFirstMarker']();this['_model']['change'](_0x4001ba=>{_0x4001ba['updateMarker'](_0x472ec8,{'range':_0x5c0ad8});});}['_addThreadToSuggestion'](_0xb1dd2c){const _0x21a1fe=_0xb1dd2c['id'],_0x3ba9e4=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x21a1fe)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ba9e4,'threadId':_0x21a1fe,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2fe0df=this['_commentsRepository']['getCommentThread'](_0x21a1fe);_0x2fe0df['unbind']('isRemovable'),_0x2fe0df['isRemovable']=!0x1,_0xb1dd2c['commentThread']=_0x2fe0df;}['_checkSuggestionCorrectness'](_0x1a55b4,_0x28a53f,_0x5c92a1,_0x220d2e){if(_0x1a55b4['type']!=_0x28a53f||_0x1a55b4['subType']!=_0x5c92a1||_0x1a55b4['creator']['id']!=_0x220d2e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x10de5d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3f9c86,_0x510179){const _0x2bee59=_0x3f9c86['getFirstRange']();if(_0x510179['isEqual'](_0x2bee59))_0x3f9c86['removeMarkers']();else{if(_0x2bee59['containsRange'](_0x510179)){const _0x4da850=this['_model']['createPositionAt'](_0x510179['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f9c86,this['_model']['createRange'](_0x2bee59['start'],_0x4da850));const _0x2f68db=_0x4e75e2(),_0x1ca1d9=_0x3f9c86['creator']['id'],_0x23373e=_0x3f9c86['type']+':'+_0x3f9c86['subType'];this['_setSuggestionData']({'id':_0x2f68db,'type':_0x23373e,'createdAt':new Date(),'authorId':_0x1ca1d9,'data':_0x3f9c86['data'],'attributes':_0x3f9c86['attributes']});const _0x2e507b=this['_model']['createPositionAt'](_0x510179['end']['parent'],'after'),_0x47c06a=this['_model']['createRange'](_0x2e507b,_0x2bee59['end']);this['_addSuggestionMarker'](_0x23373e,_0x2f68db,_0x1ca1d9,_0x47c06a);}else{if(_0x2bee59['containsPosition'](_0x510179['start'])){const _0x33e317=this['_model']['createPositionAt'](_0x510179['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f9c86,this['_model']['createRange'](_0x2bee59['start'],_0x33e317));}else{const _0x3ede48=this['_model']['createPositionAt'](_0x510179['end']['parent'],'after');this['_setSuggestionRange'](_0x3f9c86,this['_model']['createRange'](_0x3ede48,_0x2bee59['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x215739){for(const {suggestion:_0x5cfd62,meta:_0x1c05bb}of this['_findSuggestions'](_0x215739,'insertion')){if(!_0x1c05bb['isOwn'])continue;const _0x4e8f4c=_0x5cfd62['getRanges']();for(const _0x294fc0 of _0x4e8f4c)if(!_0x215739['getDifference'](_0x294fc0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x47a747){const _0x31ba37=this['editor']['plugins']['get']('Users')['getUser'](_0x47a747);if(!_0x31ba37)throw new _0x10de5d('track-changes-user-not-found',this);return _0x31ba37;}['_getExternalAuthor'](_0x39b45a){const _0x2f0068=this['editor']['plugins']['get']('Users'),_0x2edaaf=_0x14345e('external:'+_0x39b45a),_0x4e7540=_0x2f0068['getUser'](_0x2edaaf);return _0x4e7540||_0x2f0068['addUser']({'id':_0x2edaaf,'name':_0x39b45a});}['_createSuggestion'](_0x30fe36,_0x4a8acc,_0xdb5345,_0x521672,_0x54ef4f){const _0x560e81=this['_getAuthorFromId'](_0x521672),_0x1e3983=this['_suggestionFactory']['buildSuggestion'](_0x30fe36,_0x4a8acc,_0xdb5345,_0x560e81,_0x54ef4f,_0x272eb3=>{this['_updateSuggestionData'](_0xdb5345,{'attributes':_0x272eb3});const _0x30db47=this['getSuggestion'](_0xdb5345);this['_joinWithAdjacentSuggestions'](new Set([_0x30db47])),this['_refreshSuggestionsChain'](new Set([_0x30db47]));});return this['listenTo'](_0x1e3983,'accept',()=>{this['_updateSuggestionData'](_0xdb5345,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1e3983,'discard',()=>{this['_updateSuggestionData'](_0xdb5345,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xdb5345,_0x1e3983),this['_suggestionState']['set'](_0x1e3983,'notReady'),_0x1e3983;}['_splitMarkerName'](_0x1fb459){const _0x4aa19e=_0x1fb459['split'](':');return{'group':_0x4aa19e[0x0],'type':_0x4aa19e[0x1],'subType':_0x4aa19e['length']>=0x5?_0x4aa19e[0x2]:null,'id':_0x4aa19e['length']<0x5?_0x4aa19e[0x2]:_0x4aa19e[0x3],'authorId':_0x4aa19e['length']<0x5?_0x4aa19e[0x3]:_0x4aa19e[0x4],'markerCount':0x6==_0x4aa19e['length']?_0x4aa19e[0x5]:null};}['_breakSuggestionMarker'](_0x397bff,_0x45d771,_0x315993){const _0x34a6af=_0x397bff['getFirstRange'](),_0x1e31ab=_0x34a6af['start'],_0x23bf45=_0x34a6af['end'];this['_setSuggestionRange'](_0x397bff,this['_model']['createRange'](_0x1e31ab,_0x45d771));const _0x5f34b4=_0x4e75e2(),_0x28a3e3=_0x397bff['creator']['id'],_0x1d9642=_0x397bff['type']+(_0x397bff['subType']?':'+_0x397bff['subType']:'');this['_setSuggestionData']({'id':_0x5f34b4,'type':_0x1d9642,'createdAt':new Date(),'authorId':_0x28a3e3,'originalSuggestionId':_0x397bff['id'],'attributes':_0x397bff['attributes'],'data':_0x397bff['data']});const _0x332fcf=this['_getAttributeKey'](_0x397bff);('formatBlock'==_0x397bff['type']||_0x332fcf&&this['_isBlockAttribute'](_0x332fcf))&&(_0x315993=this['_model']['createPositionBefore'](_0x315993['parent'])),this['_addSuggestionMarker'](_0x1d9642,_0x5f34b4,_0x28a3e3,this['_model']['createRange'](_0x315993,_0x23bf45));}['_findSuggestions'](_0x29fd70,_0x16fad3=null){const _0x2b868b=[],_0x3bd098=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x29fd70)||(_0x29fd70=[_0x29fd70]);for(const _0x52d264 of this['getSuggestions']()){if(!_0x52d264['isInContent'])continue;if(_0x16fad3&&_0x52d264['type']!=_0x16fad3)continue;let _0x533574=!0x1;for(const _0x21e312 of _0x52d264['getRanges']()){for(const _0x411790 of _0x29fd70){const _0x575a74=_0x411790['start']['isEqual'](_0x21e312['end'])||_0x411790['end']['isEqual'](_0x21e312['start']);if(_0x575a74||_0x411790['getIntersection'](_0x21e312)){const _0x4e4963=_0x411790['containsRange'](_0x21e312)&&Ot(this['_model']['schema'],_0x21e312['start'],_0x411790),_0x3c155b=_0x21e312['containsRange'](_0x411790)&&Ot(this['_model']['schema'],_0x411790['start'],_0x21e312);_0x2b868b['push']({'suggestion':_0x52d264,'meta':{'isOwn':_0x3bd098==_0x52d264['author'],'isNextTo':_0x575a74,'isInsideObject':_0x4e4963,'containsRangeInObject':_0x3c155b}}),_0x533574=!0x0;break;}}if(_0x533574)break;}}return _0x2b868b;}['_addSuggestionMarker'](_0x2f21da,_0x27885d,_0x4679cb,_0x3020b5,_0x15b876){this['_model']['change'](_0x58797f=>{let _0x1d28bc='suggestion:'+_0x2f21da+':'+_0x27885d+':'+_0x4679cb;_0x15b876&&(_0x1d28bc=_0x1d28bc+':'+_0x15b876),_0x58797f['addMarker'](_0x1d28bc,{'range':_0x3020b5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x116f1b){const _0x5cd2de=_0x116f1b['previous'],_0x978d12=_0x116f1b['next'];_0x116f1b['previous']=null,_0x116f1b['next']=null,null!=_0x5cd2de&&_0x5cd2de['next']==_0x116f1b&&(_0x5cd2de['next']=_0x978d12),null!=_0x978d12&&_0x978d12['previous']==_0x116f1b&&(_0x978d12['previous']=_0x5cd2de),'ready'==this['_suggestionState']['get'](_0x116f1b)&&(this['_suggestionState']['set'](_0x116f1b,'removed'),this['fire']('suggestionUnloaded',_0x116f1b,_0x5cd2de,_0x978d12));}['_setSuggestionData'](_0x3b15c4){const _0x1a05ba=_0x3b15c4['id'],_0x305dd1=this['addSuggestionData'](_0x3b15c4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3d0461=this['editor']['plugins']['get']('PendingActions'),_0x32e708=_0x305dd1['hasComments'],_0x22a28e=_0x305dd1['subType']?_0x305dd1['type']+':'+_0x305dd1['subType']:_0x305dd1['type'],_0x4db6b1=this['editor']['locale'],_0x21d291=_0x3d0461['add'](o(_0x4db6b1,'PENDING_ACTION_SUGGESTION')),_0x422e91={'id':_0x1a05ba,'type':_0x22a28e,'hasComments':_0x32e708,'data':_0x3b15c4['data']||null,'originalSuggestionId':_0x3b15c4['originalSuggestionId']||null,'attributes':_0x305dd1['attributes']};this['_adapter']['addSuggestion'](_0x422e91)['then'](_0x1df87c=>{_0x305dd1['_saved']=!0x0,_0x3d0461['remove'](_0x21d291),_0x1df87c&&_0x1df87c['createdAt']&&(this['_suggestions']['get'](_0x1a05ba)['createdAt']=_0x1df87c['createdAt']);})['catch'](_0x4fea03=>{throw _0x159e26('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x305dd1['discard']();}),_0x305dd1['stopListening'](),this['_suggestions']['delete'](_0x305dd1['id']),this['_suggestionState']['delete'](_0x305dd1),_0x4fea03;});}return _0x305dd1;}['_isBlockAttribute'](_0x5e0917){return this['_blockAttributeKeys']['has'](_0x5e0917);}['_updateSuggestionData'](_0x7e35ca,_0x1d53c4){const _0x174139=this['editor']['plugins']['get']('PendingActions'),_0x260949=this['getSuggestion'](_0x7e35ca);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x260949['_saved']){const _0x476bf8=_0x174139['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x7e35ca,_0x1d53c4)['then'](()=>{_0x174139['remove'](_0x476bf8);});}else _0x260949['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x7e35ca,_0x1d53c4);});}}['_getSuggestionData'](_0xe2eb45){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x10de5d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xe2eb45);}['_handleNewSuggestionMarker'](_0x1a10b0){const {id:_0x4d41f4,type:_0x164c0a,subType:_0x12f1a4,authorId:_0x2cb14f}=this['_splitMarkerName'](_0x1a10b0),_0x38d1b1=this['_suggestions']['get'](_0x4d41f4)||this['_createSuggestion'](_0x164c0a,_0x12f1a4,_0x4d41f4,_0x2cb14f,{});switch(this['_checkSuggestionCorrectness'](_0x38d1b1,_0x164c0a,_0x12f1a4,_0x2cb14f),this['_suggestionState']['get'](_0x38d1b1)){case'notReady':this['_getSuggestionData'](_0x4d41f4)['then'](_0x544e97=>{let _0x5d862e=Promise['resolve']();_0x544e97['hasComments']&&(_0x5d862e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4d41f4})),_0x5d862e['then'](()=>{this['addSuggestionData'](_0x544e97)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x38d1b1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4d41f4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x38d1b1,'ready'),this['fire']('suggestionLoaded',_0x38d1b1);break;case'ready':this['fire']('suggestionChanged',_0x38d1b1);}return _0x38d1b1['addMarkerName'](_0x1a10b0),_0x38d1b1;}['_refreshSuggestionsChain'](_0x18fe1b){const _0x3bb4db=Array['from'](_0x18fe1b),_0xc6878b=_0x3bb4db['filter'](_0x7f03d8=>'attribute'==_0x7f03d8['type']);this['_refreshAttributeSuggestionsChain'](_0xc6878b);const _0x25c214=_0x3bb4db['filter'](_0x2f1f27=>!_0x2f1f27['isMultiRange']&&'attribute'!=_0x2f1f27['type']),_0x2e9c9a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50e2da=>!_0x50e2da['isMultiRange']&&'attribute'!=_0x50e2da['type']),_0x2e8524=_0x2e9c9a['filter'](_0x9a8cd4=>!_0x18fe1b['has'](_0x9a8cd4)),_0x469e4=new Map(_0x2e9c9a['map'](_0x3391b5=>[_0x3391b5,this['_suggestionFactory']['getSuggestionCallback'](_0x3391b5['type'],_0x3391b5['subType'],'chain')])),_0x4fb2b1=new Map(_0x2e9c9a['map'](_0x58488c=>[_0x58488c,_0x58488c['getFirstRange']()])),_0x1f39e7=new Set(),_0x52de58=new Set();for(let _0x4467cb=0x0;_0x4467cb<_0x25c214['length'];_0x4467cb++)_0x1833bd(_0x25c214[_0x4467cb],_0x25c214,_0x4467cb+0x1);for(let _0x2b51a4=0x0;_0x2b51a4<_0x25c214['length'];_0x2b51a4++)_0x1833bd(_0x25c214[_0x2b51a4],_0x2e8524,0x0);const _0x441612=new Set();for(let _0x3cc744=0x0;_0x3cc744<_0x25c214['length'];_0x3cc744++){const _0x42f8b6=_0x25c214[_0x3cc744];!_0x52de58['has'](_0x42f8b6)&&_0x42f8b6['previous']&&(_0x441612['add'](_0x42f8b6['previous']),_0x42f8b6['previous']['next']===_0x42f8b6&&(_0x42f8b6['previous']['next']=null),_0x42f8b6['previous']=null),!_0x1f39e7['has'](_0x42f8b6)&&_0x42f8b6['next']&&(_0x441612['add'](_0x42f8b6['next']),_0x42f8b6['next']['previous']===_0x42f8b6&&(_0x42f8b6['next']['previous']=null),_0x42f8b6['next']=null);}function _0x1833bd(_0x358a65,_0x1bfc8e,_0x128c12){for(let _0x378c87=_0x128c12;_0x378c87<_0x1bfc8e['length'];_0x378c87++){const _0x4e56f4=_0x2e83b4(_0x358a65,_0x1bfc8e[_0x378c87]);_0x4e56f4&&(_0x4e56f4[0x0]['next']=_0x4e56f4[0x1],_0x4e56f4[0x1]['previous']=_0x4e56f4[0x0],_0x1f39e7['add'](_0x4e56f4[0x0]),_0x52de58['add'](_0x4e56f4[0x1]));}}function _0x2e83b4(_0x1f56fb,_0x295eee){if(_0x1f56fb['author']['id']!==_0x295eee['author']['id'])return null;const _0x3028c8=_0x469e4['get'](_0x1f56fb)(_0x1f56fb,_0x295eee,_0x4fb2b1['get'](_0x1f56fb),_0x4fb2b1['get'](_0x295eee));if(!_0x3028c8)return null;return _0x469e4['get'](_0x295eee)(_0x1f56fb,_0x295eee,_0x4fb2b1['get'](_0x1f56fb),_0x4fb2b1['get'](_0x295eee))?_0x3028c8[0x1]['commentThread']&&_0x3028c8[0x1]['commentThread']['length']?null:_0x3028c8:null;}_0x441612['size']&&this['_refreshSuggestionsChain'](_0x441612);}['_refreshAttributeSuggestionsChain'](_0x50f702){if(0x0==_0x50f702['length'])return;const _0x573f43=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f178f=>'attribute'==_0x4f178f['type']&&_0x4f178f['_isDataLoaded']),_0x3e98c8=[],_0x510500=new Map();for(const _0x160922 of _0x573f43){const _0x6a19f8=_0x14345e(_0x160922['attributes']);_0x510500['has'](_0x6a19f8)||(_0x510500['set'](_0x6a19f8,_0x3e98c8['length']),_0x3e98c8['push']([]));const _0x52fc00=_0x510500['get'](_0x6a19f8);_0x3e98c8[_0x52fc00]['push'](_0x160922);}!(function(){_0x3e98c8['sort']((_0x635ba0,_0x9534fa)=>{const _0x3b4f66=_0x635ba0[0x0]['createdAt'],_0x54e652=_0x9534fa[0x0]['createdAt'];return _0x3b4f66==_0x54e652?_0x635ba0[0x0]['attributes']['groupId']<_0x9534fa[0x0]['attributes']['groupId']?-0x1:0x1:_0x3b4f66<_0x54e652?-0x1:0x1;});for(const _0x5af18e of _0x3e98c8)_0x5af18e['sort']((_0x2b5b94,_0x47bb13)=>_0x2b5b94['id']<_0x47bb13['id']?-0x1:0x1);}());for(let _0x5d6cd7=0x0;_0x5d6cd7<_0x3e98c8['length'];_0x5d6cd7++){if(0x0==_0x3e98c8[_0x5d6cd7]['length'])continue;const _0x396465=[];for(let _0x455af9=_0x5d6cd7+0x1;_0x455af9<_0x3e98c8['length'];_0x455af9++)0x0!=_0x3e98c8[_0x455af9]['length']&&_0x596ec9(_0x3e98c8[_0x5d6cd7],_0x3e98c8[_0x455af9])&&_0x396465['push'](_0x455af9);for(const _0x15cde0 of _0x396465)_0x3e98c8[_0x5d6cd7]=_0x3e98c8[_0x5d6cd7]['concat'](_0x3e98c8[_0x15cde0]),_0x3e98c8[_0x15cde0]=[];}for(const _0x2b860b of _0x3e98c8)for(let _0x2be089=0x0;_0x2be089<_0x2b860b['length'];_0x2be089++){const _0x2bf41c=_0x2b860b[_0x2be089+0x1]||null;_0x2b860b[_0x2be089]['next']!==_0x2bf41c&&(_0x2b860b[_0x2be089]['next']=_0x2bf41c);}for(const _0x312d31 of _0x3e98c8)for(let _0x1ee7a8=0x0;_0x1ee7a8<_0x312d31['length'];_0x1ee7a8++){const _0x210c5e=_0x312d31[_0x1ee7a8-0x1]||null;_0x312d31[_0x1ee7a8]['previous']!==_0x210c5e&&(_0x312d31[_0x1ee7a8]['previous']=_0x210c5e);}function _0x596ec9(_0x9427a0,_0x3b073e){if(_0x9427a0[0x0]['attributes']['groupId']!==_0x3b073e[0x0]['attributes']['groupId']&&_0x9427a0[0x0]['author']!==_0x3b073e[0x0]['author'])return!0x1;if(!function(_0x4dcc7b,_0x397d28){if(!_0x4dcc7b['hasComments']&&!_0x397d28['hasComments'])return!0x0;if(_0x4dcc7b['hasComments']&&_0x397d28['hasComments'])return!0x1;if(_0x4dcc7b['hasComments']&&_0x397d28['createdAt']<_0x4dcc7b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x397d28['hasComments']&&_0x4dcc7b['createdAt']<_0x397d28['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x9427a0[0x0],_0x3b073e[0x0]))return!0x1;const _0x17945d=Tt(_0x9427a0[0x0]['attributes'],'groupId'),_0x4e44c4=Tt(_0x3b073e[0x0]['attributes'],'groupId');if(!_0x5a2ed5(_0x17945d,_0x4e44c4))return!0x1;return!!_0x9427a0['every'](_0x266771=>_0x3b073e['some'](_0x4ce0ba=>_0x266771['getFirstRange']()['isEqual'](_0x4ce0ba['getFirstRange']())))&&_0x3b073e['every'](_0x2658d7=>_0x9427a0['some'](_0x5489a4=>_0x2658d7['getFirstRange']()['isEqual'](_0x5489a4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x60d656){const _0x253fb9=Array['from'](_0x60d656),_0x5ad02b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2ccdc0=_0x5ad02b['filter'](_0x3b15e2=>!_0x60d656['has'](_0x3b15e2)),_0x1e62d3=new Map(_0x253fb9['map'](_0x2a1311=>[_0x2a1311,this['_suggestionFactory']['getSuggestionCallback'](_0x2a1311['type'],_0x2a1311['subType'],'join')])),_0x665f45=new Map(_0x5ad02b['map'](_0x5c9cb0=>[_0x5c9cb0,_0x5c9cb0['getRanges']()]));for(let _0x266b7c=0x0;_0x266b7c<_0x253fb9['length'];_0x266b7c++){if(_0x20d288(this,_0x253fb9[_0x266b7c],_0x253fb9,_0x266b7c+0x1))return!0x0;}for(let _0x1feba1=0x0;_0x1feba1<_0x253fb9['length'];_0x1feba1++){if(_0x20d288(this,_0x253fb9[_0x1feba1],_0x2ccdc0,0x0))return!0x0;}return!0x1;function _0x20d288(_0x2a324e,_0x5c5d13,_0xff013c,_0x549b15){for(let _0x22ff53=_0x549b15;_0x22ff53<_0xff013c['length'];_0x22ff53++){const _0x196e99=_0xff013c[_0x22ff53];if(_0x196e99['type']!==_0x5c5d13['type']||_0x196e99['author']['id']!==_0x5c5d13['author']['id']||_0x196e99['subType']!==_0x5c5d13['subType'])continue;if(!Jt(_0x5c5d13,_0x196e99))continue;if('attribute'==_0x5c5d13['type']&&_0x5c5d13['data']['oldValue']!=_0x196e99['data']['oldValue'])continue;if('attribute'==_0x5c5d13['type']&&_0x2a324e['_isBlockAttribute'](_0x5c5d13['data']['key']))continue;if('formatBlock'==_0x5c5d13['type']){const _0x53c7c7=_0x2a324e['editor']['model'],_0x41d7c2=_0x5c5d13['getContainedElement']();if(_0x41d7c2&&(_0x53c7c7['schema']['isObject'](_0x41d7c2)||_0x53c7c7['schema']['isLimit'](_0x41d7c2)))continue;}const _0x34be1c=_0x1e62d3['get'](_0x5c5d13),_0x545c5a=_0x665f45['get'](_0x5c5d13),_0x1af046=_0x665f45['get'](_0x196e99),_0x10555a=_0x5c5d13['commentThread']&&_0x5c5d13['commentThread']['length'],_0x17d315=_0x196e99['commentThread']&&_0x196e99['commentThread']['length'];if(!_0x10555a&&_0x34be1c(_0x1af046,_0x545c5a))return _0x2a324e['_joinSuggestions'](_0x196e99,_0x5c5d13),_0x665f45['delete'](_0x5c5d13),!0x0;if(!_0x17d315&&_0x34be1c(_0x545c5a,_0x1af046))return _0x2a324e['_joinSuggestions'](_0x5c5d13,_0x196e99),_0x665f45['delete'](_0x196e99),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4fd800,_0x16bb66){if(_0x4fd800['isMultiRange']){for(const _0x1046f8 of _0x16bb66['getRanges']())_0x4fd800['addRange'](_0x1046f8);}else{const _0x4f210b=_0x16bb66['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4fd800,this['_model']['createRange'](_0x4fd800['getFirstRange']()['start'],_0x4f210b));}_0x16bb66['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4722bf,_0x3b6a27,_0x61fe40){const _0x2acc05=_0x4722bf['startsWith']('format')||_0x4722bf['startsWith']('attribute')?'FORMATTING':_0x4722bf['toUpperCase']();return o(this['editor']['locale'],_0x3b6a27+'_'+_0x2acc05+'_SUGGESTION_ANNOUNCEMENT',_0x61fe40);}['_initAriaMarkerChangeAnnouncements'](){const _0x3a65a3=this['editor'];if(!_0x3a65a3['ui'])return;const {ariaLiveAnnouncer:_0x12013d}=_0x3a65a3['ui'];_0x5b1683(this['_model'],({left:_0x446005,entered:_0x2a2500})=>{for(const _0x5c5294 of _0x446005){const {group:_0x32c73b,type:_0xc4af8b}=this['_splitMarkerName'](_0x5c5294['name']);if('suggestion'===_0x32c73b){_0x12013d['announce'](this['_getMarkerAnnouncementText'](_0xc4af8b,'LEAVE'));break;}}for(const _0x17022e of _0x2a2500){const {group:_0x5bf92b,type:_0x315a25}=this['_splitMarkerName'](_0x17022e['name']);if('suggestion'===_0x5bf92b){_0x12013d['announce'](this['_getMarkerAnnouncementText'](_0x315a25,'ENTER',_0x4cf70a(_0x3b3bd8)));break;}}});}['_processAttributeChanges'](_0x410254){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1a1ec2=this['editor'],_0xd11569=_0x1a1ec2['model']['document']['differ']['getChanges']();if(0x0==_0xd11569['length'])return!0x1;const _0xc6dd9f=[],_0x43c596=_0xd11569['filter'](_0x4bb575=>'attribute'==_0x4bb575['type']),_0x3f6306=_0xd11569['filter'](_0x2cb67d=>'insert'==_0x2cb67d['type']&&'$text'!=_0x2cb67d['name']),_0x5eed5b=_0xd11569['filter'](_0x44f5c9=>'remove'==_0x44f5c9['type']&&'$text'!=_0x44f5c9['name']);for(const _0xb48c9c of _0x43c596)_0xc6dd9f['push']({'key':_0xb48c9c['attributeKey'],'newValue':_0xb48c9c['attributeNewValue'],'oldValue':_0xb48c9c['attributeOldValue'],'range':Pt(_0xb48c9c['range'],_0x1a1ec2['model'])});for(const _0x116cd9 of _0x3f6306){const _0x3d9fbe=_0x5eed5b['find'](_0xf6548=>_0xf6548['position']['isEqual'](_0x116cd9['position']));_0x3d9fbe&&_0xc6dd9f['push']({'key':m,'newValue':_0x116cd9['name'],'oldValue':_0x3d9fbe['name'],'range':_0x1a1ec2['model']['createRangeOn'](_0x116cd9['position']['nodeAfter'])});}return 0x0!=_0xc6dd9f['length']&&this['_reduceExistingSuggestions'](_0x410254,_0xc6dd9f);}['_processAttributeSuggestions'](_0x28e633){let _0x16f139=!0x1;const _0x476340=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x45c6ab=>_0x45c6ab['data']['newRange']&&_0x45c6ab['name']['startsWith']('suggestion:attribute:'));for(const _0x20ad31 of _0x476340){const {subType:_0x1e5be4,id:_0x2cf2bb}=this['_splitMarkerName'](_0x20ad31['name']),_0xe222b0=_0x1e5be4['split']('|')[0x0];for(const _0x6bc6d7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x6bc6d7['id']!=_0x2cf2bb&&'attribute'==_0x6bc6d7['type']&&_0x6bc6d7['data']&&_0x6bc6d7['data']['key']==_0xe222b0&&_0x6bc6d7['getFirstRange']()['isIntersecting'](_0x20ad31['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x6bc6d7,_0x20ad31['data']['newRange'],_0x28e633),_0x16f139=!0x0);}return _0x16f139;}['_recordAttributeChanges'](_0x1565d5){this['_recordAttributeSuggestions']=!0x0,_0x1565d5();}['_isRegisteredAttribute'](_0x78c4d7){const _0x154f66=this['_isBlockAttribute'](_0x78c4d7),_0x41e6d2=this['_inlineAttributeKeys']['has'](_0x78c4d7);return _0x154f66||_0x41e6d2;}['_reduceExistingSuggestions'](_0x24d4d7,_0x3d95cc){if(0x0==_0x3d95cc['length'])return!0x1;let _0x5dafaa=!0x1;for(const _0x4c54ee of _0x3d95cc){const _0x101957=this['_findSuggestions'](_0x4c54ee['range'],'attribute')['filter'](_0x34b4c0=>!_0x34b4c0['meta']['isNextTo'])['map'](_0x451046=>_0x451046['suggestion']),_0x13b558=_0x14345e({'newValue':_0x4c54ee['newValue']});_0x101957['filter'](_0x5b0968=>{const [_0xb4c91,_0x48d582]=_0x5b0968['subType']['split']('|');return _0xb4c91==_0x4c54ee['key']&&_0x48d582!=_0x13b558;})['forEach'](_0x5d5136=>{this['_reduceSuggestionAttributeRange'](_0x5d5136,_0x4c54ee['range'],_0x24d4d7),_0x5dafaa=!0x0;});}return _0x5dafaa;}['_reduceSuggestionAttributeRange'](_0x29b2a6,_0x2ac82c,_0x3ac1da){const _0x1caa0a=_0x29b2a6['getFirstRange']()['getDifference'](_0x2ac82c);0x0!==_0x1caa0a['length']?0x1!==_0x1caa0a['length']?this['_breakSuggestionMarker'](_0x29b2a6,_0x2ac82c['start'],_0x2ac82c['end']):this['_setSuggestionRange'](_0x29b2a6,_0x1caa0a[0x0]):_0x3ac1da['removeMarker'](_0x29b2a6['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4ca1a3){this['_editor']=_0x4ca1a3,this['_model']=_0x4ca1a3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4b28ac,_0x3c5967,_0x5486e9,_0xe437f0,_0x4138f1,_0x2ec0e1){return new u(this['_model'],{'type':_0x4b28ac,'subType':_0x3c5967,'id':_0x5486e9,'author':_0xe437f0,'creator':_0xe437f0,'attributes':_0x4138f1,'onAttributesChange':_0x2ec0e1,'onAccept':(..._0x57516f)=>this['getSuggestionCallback'](_0x4b28ac,_0x3c5967,'accept')(..._0x57516f),'onDiscard':(..._0x5e1ec6)=>this['getSuggestionCallback'](_0x4b28ac,_0x3c5967,'discard')(..._0x5e1ec6)});}['registerCustomCallback'](_0x19ba72,_0x1d87cc,_0x308909,_0x51548b){const _0x22780a=_0x19ba72+':'+_0x1d87cc+':'+_0x308909;this['_customCallbacks']['set'](_0x22780a,_0x51548b);}['getSuggestionCallback'](_0x30b5ed,_0x472131,_0x455a6a){const _0x6e1c7f=_0x30b5ed+':'+_0x472131+':'+_0x455a6a;return this['_customCallbacks']['get'](_0x6e1c7f)||this['_defaultCallbacks']['get'](_0x30b5ed+':'+_0x455a6a);}['_registerDefaultCallbacks'](){const _0x4012e5=()=>!0x1,_0x6bd6cd=_0x2b752b=>{_0x2b752b['sort']((_0x36d2ce,_0xd6d0f)=>_0x36d2ce['start']['isBefore'](_0xd6d0f['start'])?0x1:-0x1),this['_model']['change'](_0x210cb0=>{for(const _0x13f881 of _0x2b752b){let _0x5e306b;_0x5e306b=_0x13f881['end']['isAtEnd']&&_0x13f881['end']['parent']==_0x13f881['start']['nodeAfter']?_0x210cb0['createSelection'](_0x13f881['start']['nodeAfter'],'on'):_0x210cb0['createSelection'](_0x13f881),this['_model']['deleteContent'](_0x5e306b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x169d82=(_0x430ea8,_0x2dae59)=>{_0x2dae59&&this['_model']['change'](_0xd21dc2=>{const {commandName:_0x24aa45,commandParams:_0x324356=[]}=_0x2dae59,_0x25d882=_0x430ea8['map'](_0x1dfb33=>(Vt(_0x1dfb33)&&(_0x1dfb33=this['_model']['createRange'](_0x1dfb33['end'])),_0x1dfb33))['filter'](_0x3108b7=>'$graveyard'!==_0x3108b7['root']['rootName']);if(_0x25d882['length']<0x1)return;const _0x282850=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x8ef529=>_0x2fdf13['fromRange'](_0x8ef529));_0xd21dc2['setSelection'](_0x25d882);for(const _0x359e06 of this['_editor']['commands']['commands']())_0x359e06['refresh']();_0x324356['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x24aa45,..._0x324356);const _0x27b7de=_0x282850['filter'](_0x326011=>'$graveyard'!=_0x326011['root']['rootName']);_0x27b7de['length']>0x0&&_0xd21dc2['setSelection'](_0x27b7de);for(const _0x17731c of _0x282850)_0x17731c['detach']();});},_0x32a4cb=(_0x4e9073,_0x396bdc)=>0x1==_0x4e9073['length']&&0x1==_0x396bdc['length']&&_0x4e9073[0x0]['end']['isEqual'](_0x396bdc[0x0]['start']),_0x1a0767=(_0x5067ab,_0x4fec55,_0x5dd566,_0x30f684)=>Ht(_0x5067ab,_0x4fec55,_0x5dd566,_0x30f684,this['_model'])?[_0x5067ab,_0x4fec55]:Ht(_0x4fec55,_0x5067ab,_0x30f684,_0x5dd566,this['_model'])?[_0x4fec55,_0x5067ab]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4012e5),this['_defaultCallbacks']['set']('insertion:discard',_0x6bd6cd),this['_defaultCallbacks']['set']('insertion:join',_0x32a4cb),this['_defaultCallbacks']['set']('insertion:chain',_0x1a0767),this['_defaultCallbacks']['set']('deletion:accept',_0x6bd6cd),this['_defaultCallbacks']['set']('deletion:discard',_0x4012e5),this['_defaultCallbacks']['set']('deletion:join',_0x32a4cb),this['_defaultCallbacks']['set']('deletion:chain',_0x1a0767),this['_defaultCallbacks']['set']('formatInline:accept',_0x169d82),this['_defaultCallbacks']['set']('formatInline:discard',_0x4012e5),this['_defaultCallbacks']['set']('formatInline:join',_0x32a4cb),this['_defaultCallbacks']['set']('formatInline:chain',_0x4012e5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x169d82),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4012e5),this['_defaultCallbacks']['set']('formatBlock:join',_0x32a4cb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4012e5),this['_defaultCallbacks']['set']('attribute:accept',_0x4012e5),this['_defaultCallbacks']['set']('attribute:discard',(_0x5061c7,_0x18fd38)=>{if(!_0x18fd38)return;const _0x151962=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1fc42e=>{if(_0x18fd38['key']==m)for(const _0xc2d0a0 of _0x5061c7){const _0x1d5236=_0xc2d0a0['start']['nodeAfter'],_0x553be0=_0x18fd38['oldValue'];_0x1fc42e['rename'](_0x1d5236,_0x553be0);}else{if(_0x151962['_isBlockAttribute'](_0x18fd38['key'])){for(const _0x140f55 of _0x5061c7)void 0x0!==_0x18fd38['oldValue']?_0x1fc42e['setAttribute'](_0x18fd38['key'],_0x18fd38['oldValue'],_0x140f55['start']['nodeAfter']):_0x1fc42e['removeAttribute'](_0x18fd38['key'],_0x140f55['start']['nodeAfter']);}else{for(const _0x1136aa of _0x5061c7)_0x18fd38['oldValue']?_0x1fc42e['setAttribute'](_0x18fd38['key'],_0x18fd38['oldValue'],_0x1136aa):_0x1fc42e['removeAttribute'](_0x18fd38['key'],_0x1136aa);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x32a4cb);}}function Ot(_0x2a006c,_0x49de24,_0x321699){for(const _0x2d59f7 of _0x49de24['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2d59f7['root']==_0x2d59f7)return!0x1;if(!_0x321699['containsItem'](_0x2d59f7))return!0x1;if(_0x2a006c['isObject'](_0x2d59f7)||_0x2a006c['isLimit'](_0x2d59f7))return!0x0;}return!0x1;}function Vt(_0xa66685){return _0xa66685['end']['parent']==_0xa66685['start']['nodeAfter']&&_0xa66685['end']['isAtStart'];}function Ut(_0x4f502f,_0x16e868,_0x3206c7,_0x3d36ff){const _0x2dc7d9=_0xf440ea=>!_0xf440ea['item']['is']('$textProxy')&&!_0x3d36ff['isObject'](_0xf440ea['item']),_0x149115=_0x4f502f['start']['getLastMatchingPosition'](_0x2dc7d9),_0x3d29e6=_0x4f502f['end']['getLastMatchingPosition'](_0x2dc7d9,{'direction':'backward'});return(!_0x4f502f['start']['isEqual'](_0x149115)||!_0x4f502f['end']['isEqual'](_0x3d29e6))&&(_0x149115['isBefore'](_0x3d29e6)?_0x3206c7['updateMarker'](_0x16e868,{'range':_0x3206c7['createRange'](_0x149115,_0x3d29e6)}):_0x3206c7['removeMarker'](_0x16e868),!0x0);}function Gt(_0x2ac1ad){return _0x14345e(_0x2ac1ad);}function Ft(_0x2e33bc){const _0xe79977=_0x2e33bc['start']['nodeAfter'];return _0xe79977&&_0xe79977['is']('element');}function Pt(_0xb27d6c,_0xaff19a){return null==_0xb27d6c['end']['nodeBefore']&&_0xb27d6c['end']['parent']==_0xb27d6c['start']['nodeAfter']?Lt(_0xb27d6c['start']['nodeAfter'],_0xaff19a):_0xb27d6c;}function Lt(_0xdf86cf,_0x5edbab){const _0x53ea9a=_0x5edbab['schema']['isObject'](_0xdf86cf)||_0x5edbab['schema']['isSelectable'](_0xdf86cf);return _0x5edbab['createRange'](_0x5edbab['createPositionAt'](_0xdf86cf,'before'),_0x53ea9a?_0x5edbab['createPositionAfter'](_0xdf86cf):_0x5edbab['createPositionAt'](_0xdf86cf,'end'));}function Ht(_0x41ba69,_0x4cf2a5,_0x27c6ca,_0x13b6e2,_0x47e211){if(_0x41ba69['next'])return!0x1;if(!Jt(_0x41ba69,_0x4cf2a5))return!0x1;if(_0x27c6ca['end']['isEqual'](_0x13b6e2['start']))return!0x0;if(_0x41ba69['type']!=_0x4cf2a5['type'])return!0x1;if(!_0x27c6ca['end']['isTouching'](_0x13b6e2['start']))return!0x1;const _0x335421=_0x47e211['createRange'](_0x27c6ca['end'],_0x13b6e2['start'])['getWalker']();for(const _0x2c9631 of _0x335421)if(['elementStart','elementEnd']['includes'](_0x2c9631['type'])&&_0x47e211['schema']['isLimit'](_0x2c9631['item']))return!0x1;return!0x0;}function Jt(_0x3e8267,_0x3ff355){if(!_0x3e8267['_isDataLoaded']||!_0x3ff355['_isDataLoaded'])return!0x1;const _0x2fcddf=new Set(Object['keys'](_0x3e8267['attributes'])),_0x10ce6e=new Set(Object['keys'](_0x3ff355['attributes']));if(_0x2fcddf['delete']('groupId'),_0x10ce6e['delete']('groupId'),0x0==_0x2fcddf['size']&&0x0==_0x10ce6e['size'])return!0x0;if(_0x2fcddf['size']!=_0x10ce6e['size'])return!0x1;const _0x24a943={..._0x3e8267['attributes']},_0x38bbec={..._0x3ff355['attributes']};return delete _0x24a943['groupId'],delete _0x38bbec['groupId'],JSON['stringify'](_0x24a943)==JSON['stringify'](_0x38bbec);}function qt(_0x2042cb,_0x4933bb){const _0x30973c=zt(_0x2042cb['attributes']),_0x9461b7=zt(_0x4933bb);if(!_0x2042cb['_isDataLoaded'])return!0x1;for(const _0x4e8c60 of Object['keys'](_0x9461b7))if(!_0x5a2ed5(_0x30973c[_0x4e8c60],_0x9461b7[_0x4e8c60]))return!0x1;return!0x0;}function zt(_0x266144){const _0x5dd5b0=Object['assign']({},_0x266144);return delete _0x5dd5b0['skipNestingCheck'],delete _0x5dd5b0['tablePasteChainId'],_0x5dd5b0;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4b403b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x15a62b,_0x16671c,_0x57021e,_0x4fb508){super(),this['model']=_0x16671c,this['view']=_0x57021e,this['commentThreadController']=_0x4fb508,this['_editor']=_0x15a62b,this['_acceptCommand']=_0x15a62b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x15a62b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x267fbe,_0x51259b)=>_0x267fbe||_0x51259b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x472fd7=>_0x472fd7&&this['_editor']['model']['canEditAt'](_0x16671c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x38e1a3=>_0x38e1a3&&this['_editor']['model']['canEditAt'](_0x16671c['getRanges']())),this['_pendingAction']=null,_0x57021e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x57021e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x57021e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x57021e,'change:isDirty',()=>{_0x57021e['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 _0x7f1fd4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x7f1fd4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3a83e5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x271d30,_0x34c617,_0x541c8e,_0x31c86c){super(_0x271d30),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3ce382(_0x271d30,o(_0x271d30,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x34c617['authoredAt']),this['bind']('authoredAt')['to'](_0x34c617),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x34c617,'authoredAt',this,'descriptionParts',(_0x468457,_0x2b70d4,_0x1bfea4)=>{const _0x473e8b=_0x1bfea4['map'](_0x4bee2e=>ls(_0x4bee2e['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x468457-0x1,_0x34c617['author']['name'],_0x2b70d4?_0x31c86c['formatDateTime'](_0x2b70d4):'',new DOMParser()['parseFromString'](_0x473e8b,'text/html')['body']['textContent']]);}),this['focusables']=new _0xc2acd1(),this['focusTracker']=new _0x5b8a56(),this['keystrokes']=new _0x13f017(),this['focusCycler']=new _0x3ef78f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xd83a22=>_0xd83a22['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x34c617,this['_localUser']=_0x541c8e,this['_config']=_0x31c86c,_0x31c86c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1005ee(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x456d8b}=this['_config'];this['commentsListView']=new _0x456d8b(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',_0x597208=>_0x597208+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x106196,_0x7502aa)=>_0x106196||!!_0x7502aa);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3b9d15}=this['_config'],_0x4c7a4b=new _0x3b9d15(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4bcaf9=_0x4c7a4b['commentInputView'];return _0x4c7a4b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4bcaf9,'value',(_0x2b8830,_0x3b3000,_0x3d5936)=>!!_0x3d5936||_0x2b8830&&!_0x3b3000),_0x4bcaf9['on']('submit',(_0x15116d,_0x13a3df)=>{this['fire']('addComment',_0x13a3df),_0x4bcaf9['editor']['setData']('');}),_0x4bcaf9['on']('cancel',()=>this['focus']()),_0x4bcaf9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4c7a4b;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3b8790,_0x47af2c,_0x2a205c,_0x2d4f6e){super(_0x3b8790,_0x47af2c,_0x2a205c,_0x2d4f6e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x47b049=>_0x47b049&&_0x47b049[0x0]?_0x47b049[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1765e8,_0x22d7a2)=>{let _0x815294='';for(const _0x2cac20 of _0x1765e8)_0x815294+='<p>'+ls(_0x2cac20['content'],_0x2cac20['color'])+'</p>';return _0x22d7a2?_0x815294:_0x344275(_0x815294,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d4f6e['SuggestionView'](_0x3b8790,_0x47af2c,{'formatDateTime':_0x2d4f6e['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x45c822=this['bindTemplate'],_0x1d70ac=[this['suggestionView']];return this['commentsListView']&&_0x1d70ac['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1d70ac['push'](this['commentThreadInputView']),_0x1d70ac['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x45c822['if']('isActive','ck-suggestion-wrapper--active'),_0x45c822['to']('type',_0xb33d43=>'ck-suggestion-'+_0xb33d43),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x45c822['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1d70ac};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x3a83e5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x435adc,_0x42446e,_0xf7fb1c){super(_0x435adc),this['_model']=_0x42446e,this['_config']=_0xf7fb1c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x42446e),this['acceptButton']=this['_createButton'](o(_0x435adc,'Accept\x20suggestion'),_0x48ebf8['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x435adc,'Discard\x20suggestion'),_0x48ebf8['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2868ed(_0x435adc,_0x42446e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xc2acd1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5b8a56(),this['keystrokes']=new _0x13f017(),this['focusCycler']=new _0x3ef78f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2c912c=>_0x2c912c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3aa98e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3aa98e['innerHTML']=this['description'],this['on']('change:description',(_0x32322f,_0x340d87,_0x599d54)=>{_0x3aa98e['innerHTML']=_0x599d54;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2a71f1=this['bindTemplate'],_0x46e1d6=[{'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':_0x2a71f1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a71f1['to']('authoredAt',_0x3eb6e9=>this['_config']['formatDateTime'](_0x3eb6e9))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x46e1d6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x46e1d6}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x10962e,_0x3fdac1,_0x4ed77a,_0x3bcd95,_0x450250){const _0xf9fbe0=new _0x20cb63(this['locale']);return _0xf9fbe0['set']({'label':_0x10962e,'icon':_0x3fdac1,'tooltip':!0x0,'tooltipPosition':_0x450250}),_0xf9fbe0['extendTemplate']({'attributes':{'class':_0x4ed77a}}),_0xf9fbe0['on']('execute',()=>{this['fire'](_0x3bcd95,this['_model']['id']);}),_0xf9fbe0;}['_setupKeyboardNavigation'](){const _0x358ece=this['element'];this['keystrokes']['listenTo'](_0x358ece);for(const _0x94e54 of this['focusables'])this['focusTracker']['add'](_0x94e54['element']),this['keystrokes']['listenTo'](_0x94e54['element']);this['keystrokes']['set']('enter',(_0xc80d35,_0x13510d)=>{_0x358ece===_0xc80d35['target']&&(this['focusCycler']['focusFirst'](),_0x13510d());}),this['keystrokes']['set']('esc',(_0x58c921,_0x32d2e7)=>{_0x358ece!==_0x58c921['target']&&(this['focus'](),_0x32d2e7());});}}var he='<!--\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\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x16a7c5{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x290cf2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x57ba47){super(_0x57ba47),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3023ec=this['editor']['config'];_0x3023ec['define']('trackChanges.SuggestionThreadView',re),_0x3023ec['define']('trackChanges.SuggestionView',ce),_0x3023ec['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3023ec['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x54a806,_0x29f3e8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5cc541,_0x1c436f]of this['_handleControllerBuffer']){const _0x2bb964=this['_suggestionToController']['has'](_0x5cc541);_0x2bb964||_0x1c436f?_0x2bb964&&_0x1c436f&&this['_destroyController'](_0x5cc541):this['_initializeController'](_0x5cc541);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x54a806,_0x29f3e8);}['init'](){const _0x42442f=this['editor'],_0x2ff516=_0x42442f['plugins']['get']('TrackChangesEditing'),_0x38d7bf=_0x42442f['plugins']['get']('Annotations'),_0xd12b79=_0x42442f['plugins']['get']('EditorAnnotations'),_0x53a03b=_0x42442f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xd12b79['addSourceCollector'](()=>{const _0x2440fe=[];for(const [_0x446254,_0x22d4b8]of Array['from'](this['_suggestionToController'])){const _0x468658=_0x446254['getAllAdjacentSuggestions'](),_0xf8f9e2=[];for(const _0x1106ba of _0x468658){if(!_0x1106ba['isInContent'])continue;if(_0x1106ba['isMultiRange']){_0xf8f9e2['push'](..._0x1106ba['getRanges']());continue;}const _0x4a205f=_0x1106ba['getFirstRange']();if(_0xf8f9e2['length']>0x0){const _0x4cba8e=_0xf8f9e2[0x0]['getJoined'](_0x4a205f);if(_0x4cba8e){_0xf8f9e2[0x0]=_0x4cba8e;continue;}}_0xf8f9e2['push'](_0x4a205f);}_0x2440fe['push']([_0x22d4b8['view'],_0xf8f9e2]);}return _0x2440fe;}),this['listenTo'](_0x2ff516,'suggestionLoaded',(_0x1c3bb2,_0x17f527)=>{this['listenTo'](_0x17f527,'change:previous',(_0x1fc565,_0x1c912b,_0x2a3ad9,_0x23381a)=>{_0x17f527['isInContent']&&(null==_0x2a3ad9?(this['_updateController'](_0x23381a['head']),this['_handleSuggestionControllerDelayed'](_0x17f527,!0x1)):(this['_updateController'](_0x2a3ad9['head']),null==_0x23381a&&this['_handleSuggestionControllerDelayed'](_0x17f527,!0x0)));}),null!==_0x17f527['previous']?this['_updateController'](_0x17f527['head']):this['_handleSuggestionControllerDelayed'](_0x17f527,!0x1);}),this['listenTo'](_0x2ff516,'suggestionUnloaded',(_0x54cc21,_0x2b8786,_0xcd5e4)=>{this['stopListening'](_0x2b8786,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b8786),this['_suggestionToController']['has'](_0x2b8786)&&this['_destroyController'](_0x2b8786),_0xcd5e4&&this['_updateController'](_0xcd5e4['head']);}),this['listenTo'](_0x2ff516,'suggestionChanged',(_0x15de95,_0x40565b)=>{this['_updateController'](_0x40565b);}),this['listenTo'](_0x38d7bf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x53a03b,'addComment',(_0x2dc250,{threadId:_0x4d7b55,isFromAdapter:_0x143a63})=>{if(_0x143a63||!_0x2ff516['hasSuggestion'](_0x4d7b55))return;const _0x4116aa=_0x2ff516['getSuggestion'](_0x4d7b55);this['_suggestionToController']['get'](_0x4116aa)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4caeca=this['editor']['plugins']['get']('Annotations'),_0x319bc7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cbb02=Array['from'](_0x4caeca['activeAnnotations'],_0x479fab=>_0x479fab['innerView'])['filter'](_0x423844=>this['_viewToController']['has'](_0x423844)),_0x1dc3be=[];for(const _0xe63092 of _0x5cbb02){const _0x2dedc1=this['_viewToController']['get'](_0xe63092)['model']['getAllAdjacentSuggestions']();_0x1dc3be['push'](..._0x2dedc1['reduce']((_0x106344,_0x2f0225)=>[..._0x106344,..._0x2f0225['getMarkerNames']()],[]));}_0x319bc7['activeMarkers']=_0x1dc3be;}['_addUIComponentsToFactory'](){const _0x3d080a=this['editor'],_0x2be217=_0x3d080a['locale'],_0x561332=o(_0x2be217,'Track\x20changes'),_0x3f7e62=new Wt([{'type':'switchbutton','model':new _0x514a09({'withText':!0x0,'isToggleable':!0x0,'label':_0x561332,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x514a09({'withText':!0x0,'label':o(_0x2be217,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x514a09({'withText':!0x0,'label':o(_0x2be217,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x514a09({'withText':!0x0,'label':o(_0x2be217,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x514a09({'withText':!0x0,'label':o(_0x2be217,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x10db01 of _0x3f7e62)if(me(_0x10db01)){const _0x12bc96=_0x3d080a['commands']['get'](_0x10db01['model']['commandName']);_0x10db01['model']['bind']('isOn','isEnabled')['to'](_0x12bc96,'value','isEnabled');}_0x3d080a['ui']['componentFactory']['add']('trackChanges',_0x1306d6=>this['_createToolbarButton'](_0x1306d6,_0x3f7e62,_0x561332)),_0x3d080a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3f2719=>this['_createMenuBarMenu'](_0x3f2719,_0x3f7e62,_0x561332));}['_createToolbarButton'](_0x2690d6,_0x492e24,_0x4c5231){const _0x4c6c32=Qt(_0x2690d6,_0x2df87e),_0x1e345a=this['editor']['commands']['get']('trackChanges');_0x4c6c32['buttonView']['set']({'tooltip':_0x4c5231,'label':_0x4c5231,'icon':he}),_0x4c6c32['buttonView']['bind']('isOn')['to'](_0x1e345a,'value'),_0x4c6c32['buttonView']['on']('execute',()=>{_0x1e345a['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x4c6c32,_0x492e24,{'role':'menu'});const _0x5c1b6c=[];for(const _0x1bb327 of _0x492e24)me(_0x1bb327)&&_0x5c1b6c['push'](this['editor']['commands']['get'](_0x1bb327['model']['commandName']));const _0x4c6421=_0x4c6c32['buttonView'];return _0x4c6421['actionView']['unbind']('isEnabled'),_0x4c6421['arrowView']['unbind']('isEnabled'),_0x4c6421['actionView']['bind']('isEnabled')['to'](_0x1e345a,'isEnabled'),_0x4c6421['arrowView']['bind']('isEnabled')['toMany'](_0x5c1b6c,'isEnabled',(..._0x1294c2)=>_0x1294c2['some'](_0x21f775=>_0x21f775)),_0x4c6c32['on']('execute',_0x3f6d4e=>{this['editor']['execute'](_0x3f6d4e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4c6c32;}['_createMenuBarMenu'](_0x5a2ffb,_0x29a156,_0xddc19){const _0x307177=new Yt(_0x5a2ffb),_0x4841ad=this['editor']['commands']['get']('trackChanges');_0x307177['buttonView']['set']({'label':_0xddc19,'icon':he});const _0x3b8a5e=new Zt(_0x5a2ffb);for(const _0x1f9c5a of _0x29a156){if('separator'==_0x1f9c5a['type']){_0x3b8a5e['items']['add'](new Xt(_0x5a2ffb));continue;}const _0xa9a30b=new te(_0x5a2ffb,_0x307177),_0x16a9bd=new _0x1f4ca2(_0x5a2ffb),_0x4c8232=_0x1f9c5a['model'];_0x16a9bd['bind'](...Object['keys'](_0x4c8232))['to'](_0x4c8232),_0x16a9bd['delegate']('execute')['to'](_0x307177),_0x16a9bd['on']('execute',()=>{this['editor']['execute'](_0x4c8232['commandName']),this['editor']['editing']['view']['focus']();}),_0xa9a30b['children']['add'](_0x16a9bd),_0x3b8a5e['items']['add'](_0xa9a30b);}return _0x307177['bind']('isEnabled')['to'](_0x4841ad,'isEnabled'),_0x307177['panelView']['children']['add'](_0x3b8a5e),_0x307177;}['_initializeController'](_0x409075){const _0x22c7ec=this['editor'],_0x1de0bc=_0x22c7ec['config'],_0x488dd1=_0x22c7ec['plugins']['get']('Annotations'),_0x236803=_0x22c7ec['plugins']['get']('CommentsRepository'),_0x22cb5e=_0x22c7ec['plugins']['get']('EditorAnnotations'),_0x2d70f4=_0x22c7ec['plugins']['get'](_0x290cf2)['me'],_0x337604=_0x1de0bc['get']('trackChanges')['SuggestionThreadView'],_0x1143f2=_0x1de0bc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x31ca49,CommentThreadInputView:_0x57b60a}=_0x22c7ec['plugins']['get']('CommentsUI');let _0x114104,_0x3eb816,_0x4f487a;this['_annotationViews']['has'](_0x409075['id'])?(_0x3eb816=this['_annotationViews']['get'](_0x409075['id']),_0x114104=_0x3eb816['mainView']):(_0x114104=new _0x337604(_0x22c7ec['locale'],_0x409075,_0x2d70f4,{'disableComments':this['_disableComments'],'editorConfig':_0x1de0bc['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1de0bc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1de0bc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1de0bc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x486eeb(_0x1de0bc['get']('locale')),'CommentView':_0x1de0bc['get']('comments')['CommentView'],'CommentsListView':_0x31ca49,'CommentThreadInputView':_0x57b60a,'SuggestionView':_0x1143f2}),_0x114104['suggestionView']['acceptButton']['on']('execute',()=>{_0x22c7ec['editing']['view']['focus']();}),_0x114104['suggestionView']['discardButton']['on']('execute',()=>{_0x22c7ec['editing']['view']['focus']();}),_0x3eb816=_0x488dd1['createAnnotationView'](this['editor']['locale'],_0x114104),_0x3eb816['bind']('isDirty')['to'](_0x114104,'isDirty'),_0x3eb816['bind']('length')['to'](_0x114104),_0x3eb816['bind']('type')['to'](_0x114104,'type',_0x334e0f=>'suggestion-'+_0x334e0f),_0x114104['on']('escape',()=>{_0x4f487a['fire']('escape');}),this['_annotationViews']['set'](_0x409075['id'],_0x3eb816));const _0x1ffb41=_0x236803['createCommentThreadController'](_0x409075['commentThread'],_0x114104),_0x3c963c=new ae(_0x22c7ec,_0x409075,_0x114104,_0x1ffb41),_0x3a21fc=_0x409075['getAllAdjacentSuggestions']()['filter'](_0x4fab65=>_0x4fab65['isInContent']);_0x114104['descriptionParts']=_0x22c7ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3a21fc),this['_suggestionToController']['set'](_0x409075,_0x3c963c),this['_viewToController']['set'](_0x114104,_0x3c963c),_0x4f487a=_0x488dd1['createAnnotation']({'view':_0x3eb816,'target':()=>{const _0x1906bb=[],_0x1487f8=_0x409075['getAllAdjacentSuggestions']()['filter'](_0x7f7a11=>_0x7f7a11['isInContent']);for(const _0xfc11e1 of _0x1487f8)_0x1906bb['push'](..._0xfc11e1['getMarkers']());return _0x37a144(_0x22c7ec['editing'],_0x1906bb);},'type':()=>'suggestion-'+_0x3c963c['view']['type']}),_0x236803['_bindAnnotationToEditors'](_0x114104,_0x4f487a),_0x488dd1['add'](_0x4f487a),_0x22cb5e['registerAnnotation'](_0x4f487a);}['_destroyController'](_0x55821c){const _0x303788=this['editor']['plugins']['get']('CommentsRepository'),_0xdb9576=this['editor']['plugins']['get']('Annotations'),_0x3ae3ec=this['_suggestionToController']['get'](_0x55821c),_0x143c06=_0x3ae3ec['view'],_0x59fb23=_0xdb9576['getByInnerView'](_0x143c06);_0x303788['_unbindEditors'](_0x143c06),_0x59fb23&&_0xdb9576['remove'](_0x59fb23),this['_suggestionToController']['delete'](_0x55821c),this['_viewToController']['delete'](_0x143c06),_0x3ae3ec['destroy']();}['_updateController'](_0x64dee5){if(!_0x64dee5['isInContent']||!this['_suggestionToController']['has'](_0x64dee5))return;const _0x3b2322=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e1868=this['_suggestionToController']['get'](_0x64dee5),_0x1f09fb=_0x64dee5['getAllAdjacentSuggestions']();_0x2e1868['view']['descriptionParts']=_0x3b2322['descriptionFactory']['getDescriptions'](_0x1f09fb);}['destroy'](){for(const _0x9a5706 of this['_suggestionToController']['keys']())this['_destroyController'](_0x9a5706);for(const _0xfa3404 of this['_annotationViews']['values']())_0xfa3404['mainView']['destroy']();super['destroy']();}}function me(_0x286cc2){return'model'in _0x286cc2;}class k extends _0x16a7c5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x181c36){this['editor']['plugins']['get'](p)['adapter']=_0x181c36;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3de69c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3de69c);}['getSuggestions']({skipNotAttached:_0x5f348d=!0x1,toJSON:_0x3c93be=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5f348d,'toJSON':_0x3c93be});}['getSuggestion'](_0x2afbd3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2afbd3);}}const T=['Pagination'];class P extends _0x16a7c5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x539d36=this['editor'];if(_0x539d36['config']['define']('trackChangesData.editorCreator',_0x27b798=>{const _0x419827=_0x539d36['model']['document']['getRootNames']()['reduce']((_0x271414,_0x1fdf98)=>(_0x271414[_0x1fdf98]='',_0x271414),{});return _0x539d36['constructor']['create'](_0x419827,_0x27b798);}),'function'!=typeof _0x539d36['config']['get']('trackChangesData')['editorCreator'])throw new _0x10de5d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3fbe18){return N(this['editor'],!0x0,_0x3fbe18);}['getDataWithDiscardedSuggestions'](_0x2c52b1){return N(this['editor'],!0x1,_0x2c52b1);}}class D extends _0x16a7c5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0xd064ac){super(_0xd064ac),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(_0x2f86dc){return void 0x0!==_0x2f86dc['getRootsAttributes'];}async function N(_0x25f54d,_0x3e6974,_0x2f6332){const _0x5a456f=_0x297ba6(_0x25f54d,T);_0x5a456f['plugins']['push'](p,D),_0x5a456f['rootsAttributes']=v(_0x25f54d)?_0x25f54d['getRootsAttributes']():void 0x0;const _0x262c73=document['createDocumentFragment'](),_0x26fab7=_0x25f54d['config']['get']('trackChangesData')['editorCreator'],_0x23c171=await _0x26fab7(_0x5a456f,()=>function(_0x54769d){const _0x536c30=document['createElement']('div');return _0x54769d['appendChild'](_0x536c30),_0x536c30;}(_0x262c73));!function(_0x16854e,_0x1c2a33){const _0x466c0e=_0x16854e['model']['document']['getRootNames']()['reduce']((_0x2b8865,_0x4217ca)=>(_0x2b8865[_0x4217ca]=_0x16854e['data']['get']({'rootName':_0x4217ca}),_0x2b8865),{}),_0xa35eb4=_0x16854e['plugins']['get']('Users')['users']['map'](_0x24723d=>({'id':_0x24723d['id'],'name':_0x24723d['name']})),_0x4ab2b3=_0x16854e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34b7c6=_0x16854e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x272413=_0x1c2a33['plugins']['get']('Users'),_0x504e60=_0x1c2a33['plugins']['get']('TrackChangesEditing'),_0x19f056=_0x1c2a33['plugins']['get']('CommentsRepository');for(const _0x2c8c0b of _0x19f056['getCommentThreads']())_0x2c8c0b['remove']();for(const _0x57786e of _0xa35eb4)_0x272413['getUser'](_0x57786e['id'])||_0x272413['addUser'](_0x57786e);_0x272413['me']||_0x272413['useAnonymousUser']();for(const _0x455f29 of _0x34b7c6)_0x19f056['addCommentThread'](_0x455f29);for(const _0x4ae651 of _0x4ab2b3)_0x504e60['addSuggestionData'](_0x4ae651);_0x1c2a33['data']['set'](_0x466c0e);}(_0x25f54d,_0x23c171),_0x23c171['execute'](_0x3e6974?'acceptAllSuggestions':'discardAllSuggestions');const _0x2743b4=v(_0x23c171)?_0x23c171['getFullData'](_0x2f6332):_0x23c171['data']['get'](_0x2f6332);return await _0x23c171['destroy'](),_0x2743b4;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|