@ckeditor/ckeditor5-track-changes 42.0.0-alpha.2 → 42.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x31877e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x27737,_0x4a2c41){super(),this['id']=_0x4a2c41['id'],this['type']=_0x4a2c41['type'],this['subType']=_0x4a2c41['subType']||null,this['author']=_0x4a2c41['author'],this['creator']=_0x4a2c41['creator']||_0x4a2c41['author'],this['isExternal']=Boolean(_0x4a2c41['attributes']&&_0x4a2c41['attributes']['@external']),this['data']=null,this['_model']=_0x27737,this['_onAccept']=_0x4a2c41['onAccept'],this['_onDiscard']=_0x4a2c41['onDiscard'],this['_onAttributesChange']=_0x4a2c41['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4a2c41['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 _0xdbb1b6=this;for(;_0xdbb1b6['previous'];)_0xdbb1b6=_0xdbb1b6['previous'];return _0xdbb1b6;}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'](_0x112a48){this['_markerNames']['add'](_0x112a48);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x379f01=>this['_model']['markers']['get'](_0x379f01))['filter'](_0x1258e3=>_0x1258e3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x278024=>{for(const _0x534ff9 of this['getMarkers']())_0x278024['removeMarker'](_0x534ff9);}),this['_markerNames']['clear']();}['removeMarker'](_0x362e12){this['_model']['change'](_0x265dc1=>{_0x265dc1['removeMarker'](_0x362e12);}),this['_markerNames']['delete'](_0x362e12);}['addRange'](_0x1ce865){const _0x5ee40e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5ee40e),this['_model']['change'](_0x369402=>{_0x369402['addMarker'](_0x5ee40e,{'range':_0x1ce865,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x401e3c){for(const _0x5e6b15 of this['getRanges']())if(_0x5e6b15['isIntersecting'](_0x401e3c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x91d576=>_0x91d576['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x11181e,_0x122003)=>[..._0x11181e,..._0x122003['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x400814=this['getRanges']();if(0x1!=_0x400814['length'])return null;const _0x65dd6a=_0x400814[0x0],_0x4a4a74=_0x65dd6a['start']['nodeAfter'],_0x53df54=_0x65dd6a['end']['nodeBefore'];return _0x4a4a74 instanceof _0x52dca0?_0x4a4a74!=_0x53df54?null:_0x4a4a74: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 _0x35ed59=[];let _0x57a772=this['head'];for(;_0x57a772;)_0x35ed59['push'](_0x57a772),_0x57a772=_0x57a772['next'];return _0x35ed59;}['setAttribute'](_0x123c49,_0x197a34){const _0x3f7451=_0x3ec606(this['attributes']);_0x1dca95(_0x3f7451,_0x123c49,_0x197a34),_0x387080(_0x3f7451,this['attributes'])||(this['attributes']=_0x3f7451,this['_onAttributesChange'](_0x3f7451));}['removeAttribute'](_0x3baea2){const _0x7ab9f9=_0x3ec606(this['attributes']);_0x31cf11(_0x7ab9f9,_0x3baea2),_0x387080(_0x7ab9f9,this['attributes'])||(this['attributes']=_0x7ab9f9,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 _0x2fdaf0()['substr'](0x1,0x5);}}function o(_0x196b6a,_0x363856,_0x29f361){const t=_0x196b6a['t'];switch(_0x363856){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',_0x29f361);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x29f361);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x29f361);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x29f361);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x29f361);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',_0x29f361);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x29f361);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',_0x29f361);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x29f361);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x29f361);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x29f361);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x29f361);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x29f361);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x29f361);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x29f361);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x29f361);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x29f361);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x29f361);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x29f361);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x29f361);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x29f361);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x29f361);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x29f361);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'},_0x29f361);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x29f361);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x29f361);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x29f361);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x29f361);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x29f361);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'},_0x29f361);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x29f361);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x29f361);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x29f361);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x29f361);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'},_0x29f361);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x29f361);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'},_0x29f361);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'},_0x29f361);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x29f361);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'},_0x29f361);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x29f361);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'},_0x29f361);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x29f361);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x29f361);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x29f361);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'},_0x29f361);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x363856;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3e148c,_0x3564e2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3e148c,this['_locale']=_0x3564e2;}['getDescriptions'](_0x2d03b6){const _0x2d8c89=[],_0x557964=new Set(),_0x2c8e6e=new Set();for(let _0x1c45a0=0x0;_0x1c45a0<_0x2d03b6['length'];_0x1c45a0++){const _0x35e26e=_0x2d03b6[_0x1c45a0];if(!_0x35e26e['isInContent'])continue;const _0x532714=this['_handleCustomCallbackDescription'](_0x35e26e);if(_0x532714){if(null!=_0x35e26e['subType']){if(_0x557964['has'](_0x35e26e['subType']))continue;_0x557964['add'](_0x35e26e['subType']);}_0x2d8c89['push'](_0x532714);}else{if('attribute'!=_0x35e26e['type'])'insertion'!=_0x35e26e['type']&&'deletion'!=_0x35e26e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2d8c89,_0x35e26e,_0x2d03b6[_0x1c45a0+0x1]);else{const _0x22a3e1=_0x35e26e['data']['key'];if(_0x2c8e6e['has'](_0x22a3e1))continue;_0x2c8e6e['add'](_0x35e26e['data']['key']),_0x22a3e1==m?this['_handleRenameSuggestionDescription'](_0x2d8c89,_0x35e26e):this['_handleAttributeSuggestionDescription'](_0x2d8c89,_0x35e26e);}}}return this['_resolveDescriptionItems'](_0x2d8c89);}['registerDescriptionCallback'](_0x43e32d){this['_customCallbacks']['push'](_0x43e32d);}['registerElementLabel'](_0x3ade4c,_0x11ca78,_0x29e5da=_0x56b08f['normal']){'function'==typeof _0x3ade4c?_0x6cd4aa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3ade4c,'label':_0x11ca78,'priority':_0x29e5da}):this['_itemLabels']['set'](_0x3ade4c,_0x11ca78);}['registerAttributeLabel'](_0x2a5c85,_0x2ad798){this['_attributeLabels']['set'](_0x2a5c85,_0x2ad798);}['getItemLabel'](_0x201fa4,_0xb63e84=0x1){let _0x2b6bb6;for(const _0x16ff76 of this['_itemLabelsCallbacks'])if(_0x16ff76['matchingCallback'](_0x201fa4)){_0x2b6bb6=_0x16ff76['label'];break;}return _0x2b6bb6||(_0x2b6bb6=this['_itemLabels']['get'](_0x201fa4['name'])),_0x2b6bb6?_0x2b6bb6(_0xb63e84):0x1!==_0xb63e84?_0xb63e84+'\x20'+_0x201fa4['name']+'s':''+_0x201fa4['name'];}['_addDescriptionItems'](_0x147dfe,_0x5d39a0){const _0x2804f4=_0x5d39a0['getFirstRange']()['getWalker'](),_0x42b1fd='insertion'==_0x5d39a0['type']?'add':'remove';for(const _0x54076c of _0x2804f4){const _0xccf90d=_0x54076c['item'],_0x5e0bd7=_0x147dfe[_0x147dfe['length']-0x1];if(_0xccf90d['is']('$textProxy'))_0x5e0bd7&&_0x5e0bd7['type']['indexOf']('Container')>-0x1&&_0x147dfe['pop'](),_0x5e0bd7&&'text'==_0x5e0bd7['type']?_0x5e0bd7[_0x42b1fd]+=_0xccf90d['data']:_0x147dfe['push']({'type':'text','add':'add'==_0x42b1fd?_0xccf90d['data']:'','remove':'remove'==_0x42b1fd?_0xccf90d['data']:''});else{if(this['_schema']['isObject'](_0xccf90d)){const _0x41d801=_0xccf90d;if(_0x5e0bd7&&_0x5e0bd7['type']['indexOf']('Container')>-0x1&&_0x147dfe['pop'](),'elementEnd'==_0x54076c['type'])continue;_0x5e0bd7&&_0x5e0bd7['type']==_0x42b1fd+'Object'&&_0x5e0bd7['element']['name']==_0x41d801['name']?_0x5e0bd7['quantity']++:_0x147dfe['push']({'type':_0x42b1fd+'Object','element':_0x41d801,'quantity':0x1}),_0x2804f4['skip'](_0x26ae55=>!('elementEnd'==_0x26ae55['type']&&_0x26ae55['item']==_0xccf90d));}else{if(this['_schema']['checkChild'](_0xccf90d,'$text')||_0xccf90d['is']('element','softBreak')){const _0x1e8862=_0xccf90d;if('add'==_0x42b1fd&&'elementStart'==_0x54076c['type']||'remove'==_0x42b1fd&&'elementEnd'==_0x54076c['type'])continue;if(_0x5e0bd7&&-0x1==_0x5e0bd7['type']['indexOf']('Container')){'text'==_0x5e0bd7['type']&&(_0x5e0bd7[_0x42b1fd]+='\x0a');continue;}let _0x4d0419;if(_0x4d0419='add'==_0x42b1fd?_0x1e8862['nextSibling']&&!this['_schema']['isObject'](_0x1e8862['nextSibling'])?_0x1e8862['nextSibling']:null:_0x1e8862['previousSibling']&&!this['_schema']['isObject'](_0x1e8862['previousSibling'])?_0x1e8862['previousSibling']:null,_0x1e8862['isEmpty']||_0x4d0419&&_0x4d0419['isEmpty']){const _0x4c89d1=_0x4d0419&&_0x4d0419['isEmpty']?_0x4d0419:_0x1e8862;_0x5e0bd7&&_0x5e0bd7['type']==_0x42b1fd+'EmptyContainer'&&_0x5e0bd7['element']['name']==_0x4c89d1['name']?_0x5e0bd7['quantity']++:_0x147dfe['push']({'type':_0x42b1fd+'EmptyContainer','element':_0x4c89d1,'quantity':0x1});}else _0x147dfe['push']({'type':_0x42b1fd+'Container','element':_0x1e8862});}}}}}['_resolveDescriptionItems'](_0x39cae2){const _0x34e15c=this['_locale'],_0x1ab8bb=[],_0x2b5c64=[],_0x14750a=[];for(const _0x112f2f of _0x39cae2)switch(_0x112f2f['type']){case'text':if(_0x112f2f['add']=_0x112f2f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x112f2f['remove']=_0x112f2f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x112f2f['add']&&''!=_0x112f2f['remove']){_0x1ab8bb['push']({'type':'replace','content':o(_0x34e15c,'REPLACE_TEXT',['\x22'+_0x112f2f['remove']+'\x22','\x22'+_0x112f2f['add']+'\x22'])});continue;}if(null!=_0x112f2f['add']['match'](/^ +$/)){_0x1ab8bb['push']({'type':'insertion','content':o(_0x34e15c,'*Insert:*\x20%0',o(_0x34e15c,'ELEMENT_SPACE',_0x112f2f['add']['length']))});continue;}if(null!=_0x112f2f['remove']['match'](/^ +$/)){_0x1ab8bb['push']({'type':'deletion','content':o(_0x34e15c,'*Remove:*\x20%0',o(_0x34e15c,'ELEMENT_SPACE',_0x112f2f['remove']['length']))});continue;}if(''!=_0x112f2f['add']){_0x1ab8bb['push']({'type':'insertion','content':o(_0x34e15c,'*Insert:*\x20%0','\x22'+_0x112f2f['add']+'\x22')});continue;}_0x1ab8bb['push']({'type':'deletion','content':o(_0x34e15c,'*Remove:*\x20%0','\x22'+_0x112f2f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1ab8bb['push']({'type':'insertion','content':o(_0x34e15c,'*Insert:*\x20%0',this['getItemLabel'](_0x112f2f['element'],_0x112f2f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1ab8bb['push']({'type':'deletion','content':o(_0x34e15c,'*Remove:*\x20%0',this['getItemLabel'](_0x112f2f['element'],_0x112f2f['quantity']))});continue;case'addContainer':_0x1ab8bb['push']({'type':'insertion','content':o(_0x34e15c,'*Split:*\x20%0',this['getItemLabel'](_0x112f2f['element'],_0x112f2f['quantity']))});continue;case'removeContainer':_0x1ab8bb['push']({'type':'deletion','content':o(_0x34e15c,'*Merge:*\x20%0',this['getItemLabel'](_0x112f2f['element'],_0x112f2f['quantity']))});continue;case'addFormat':_0x2b5c64['push'](_0x112f2f['key']);continue;case'removeFormat':_0x14750a['push'](_0x112f2f['key']);continue;default:_0x1ab8bb['push'](_0x112f2f);}if(_0x2b5c64['length']){const _0x166eee=_0x2b5c64['map'](_0x39b544=>this['_attributeLabels']['has'](_0x39b544)?this['_attributeLabels']['get'](_0x39b544):_0x39b544)['join'](',\x20');_0x1ab8bb['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x166eee)});}if(_0x14750a['length']){const _0x594f21=_0x14750a['map'](_0x491a4f=>this['_attributeLabels']['has'](_0x491a4f)?this['_attributeLabels']['get'](_0x491a4f):_0x491a4f)['join'](',\x20');_0x1ab8bb['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x594f21)});}return _0x1ab8bb;}['_handleCustomCallbackDescription'](_0x41eaea){for(const _0x500896 of this['_customCallbacks']){const _0x51c977=_0x500896(_0x41eaea);if(_0x51c977&&'type'in _0x51c977)return _0x51c977;}}['_handleAttributeSuggestionDescription'](_0x311a4e,_0x3eb47c){const _0x2dea38=_0x3eb47c['data'],_0x3bc278=void 0x0===_0x2dea38['newValue']?'removeFormat':'addFormat';_0x311a4e['push']({'type':_0x3bc278,'key':_0x2dea38['key']});}['_handleRenameSuggestionDescription'](_0x42cc95,_0x586739){_0x42cc95['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x586739['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x58f9bc,_0x4d989d,_0x20995b){if(this['_addDescriptionItems'](_0x58f9bc,_0x4d989d),_0x20995b&&_0x20995b['getFirstRange']()&&!_0x4d989d['getFirstRange']()['end']['isEqual'](_0x20995b['getFirstRange']()['start'])){const _0x7a88fe=_0x58f9bc[_0x58f9bc['length']-0x1],_0x371302='insertion'==_0x4d989d['type']?'add':'remove';_0x7a88fe&&'text'==_0x7a88fe['type']&&(_0x7a88fe[_0x371302]+='\x0a');}}}class E extends _0x2abede{['afterInit'](){const _0x561c2d=this['editor'],_0x4535ec=_0x561c2d['plugins']['get']('TrackChangesEditing');_0x561c2d['commands']['get']('showAIAssistant')&&_0x4535ec['enableCommand']('showAIAssistant');}}class V extends _0x2abede{['afterInit'](){const _0x99ee53=this['editor'],_0x476425=_0x99ee53['locale'];if(!_0x99ee53['plugins']['has']('AlignmentEditing'))return;const _0x4360ad=_0x99ee53['plugins']['get']('TrackChangesEditing');_0x4360ad['enableDefaultAttributesIntegration']('alignment'),_0x4360ad['registerBlockAttribute']('alignment'),_0x4360ad['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x476425,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fe581=this['editor'],_0x571016=_0x4fe581['locale'];_0x4fe581['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26e5fc=>{if('formatBlock'!=_0x26e5fc['type'])return;const {data:_0x1db200}=_0x26e5fc;if(_0x1db200&&'alignment'==_0x1db200['commandName']){const _0x2ea990=_0x1db200['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x571016,'*Format:*\x20%0',function(_0x43fc90){switch(_0x43fc90){case'left':return o(_0x571016,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x571016,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x571016,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x571016,'FORMAT_JUSTIFY_TEXT');}}(_0x2ea990))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x2abede{['afterInit'](){const _0x300fc9=this['editor'],_0x5339eb=_0x300fc9['plugins']['get']('TrackChangesEditing'),_0x123bb0=_0x300fc9['locale'];for(const _0x3ce843 of ti){if(!_0x300fc9['plugins']['has'](_0x3ce843))continue;const _0x5b0167=_0x3ce843['slice'](0x0,-0x7)['toLowerCase'](),_0x11c91b='FORMAT_'+_0x5b0167['toUpperCase']();_0x5339eb['enableDefaultAttributesIntegration'](_0x5b0167),_0x5339eb['registerInlineAttribute'](_0x5b0167),_0x5339eb['descriptionFactory']['registerAttributeLabel'](_0x5b0167,o(_0x123bb0,_0x11c91b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d65ea=this['editor'],_0x7a8109=_0x2d65ea['locale'],_0x4576d3=_0x2d65ea['plugins']['get']('TrackChangesEditing');function _0x2dd4ba(_0x5b7229,_0x266d7b){_0x4576d3['descriptionFactory']['registerDescriptionCallback'](_0x290df7=>{if('formatInline'!=_0x290df7['type'])return;const {data:_0x20bef2}=_0x290df7;return _0x20bef2&&_0x20bef2['commandName']===_0x5b7229?_0x20bef2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7a8109,'*Format:*\x20%0',_0x266d7b)}:{'type':'format','content':o(_0x7a8109,'*Remove\x20format:*\x20%0',_0x266d7b)}:void 0x0;});}_0x2dd4ba('bold',o(_0x7a8109,'FORMAT_BOLD')),_0x2dd4ba('italic',o(_0x7a8109,'FORMAT_ITALIC')),_0x2dd4ba('underline',o(_0x7a8109,'FORMAT_UNDERLINE')),_0x2dd4ba('code',o(_0x7a8109,'FORMAT_CODE')),_0x2dd4ba('strikethrough',o(_0x7a8109,'FORMAT_STRIKETHROUGH')),_0x2dd4ba('subscript',o(_0x7a8109,'FORMAT_SUBSCRIPT')),_0x2dd4ba('superscript',o(_0x7a8109,'FORMAT_SUPERSCRIPT'));}}class O extends _0x2abede{['afterInit'](){const _0x1d62fc=this['editor'],_0x3ead77=_0x1d62fc['locale'];if(!_0x1d62fc['plugins']['has']('BlockQuoteEditing'))return;const _0x49d39f=_0x1d62fc['plugins']['get']('TrackChangesEditing'),_0xf2652e=this['editor']['commands']['get']('blockQuote');_0x49d39f['enableCommand']('blockQuote',(_0x5bc5c4,_0x873e89={})=>{const _0x328ac8=this['editor']['model']['document']['selection'],_0x22d662=_0x873e89&&void 0x0!==_0x873e89['forceValue']?_0x873e89['forceValue']:!_0xf2652e['value'];let _0x4eb9ec=[];if(_0x22d662){const _0x84e7c5=Array['from'](_0x328ac8['getSelectedBlocks']())['filter'](_0x336fd0=>oo(_0x336fd0)||function(_0x2e687a,_0x1ee5d1){const _0x38482b=_0x1ee5d1['checkChild'](_0x2e687a['parent'],'blockQuote'),_0x898691=_0x1ee5d1['checkChild'](['$root','blockQuote'],_0x2e687a);return _0x38482b&&_0x898691;}(_0x336fd0,this['editor']['model']['schema']));_0x4eb9ec=to(_0x84e7c5,_0x1d62fc['model']);}else{const _0x18d34e=Array['from'](_0x328ac8['getSelectedBlocks']())['filter'](_0x43db02=>oo(_0x43db02));_0x4eb9ec=to(_0x18d34e,_0x1d62fc['model']);}_0x1d62fc['model']['change'](()=>{for(const _0x191e56 of _0x4eb9ec)_0x49d39f['markBlockFormat'](_0x191e56,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x22d662}]});});}),_0x49d39f['descriptionFactory']['registerDescriptionCallback'](_0x30be02=>{const {data:_0x568a86}=_0x30be02;if(_0x568a86&&'blockQuote'==_0x568a86['commandName']){const _0x28bbaa=o(_0x3ead77,'ELEMENT_BLOCK_QUOTE');return _0x568a86['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ead77,'*Set\x20format:*\x20%0',_0x28bbaa)}:{'type':'format','content':o(_0x3ead77,'*Remove\x20format:*\x20%0',_0x28bbaa)};}});}}function oo(_0x17fe7b){return'blockQuote'==_0x17fe7b['parent']['name'];}class G extends _0x2abede{['afterInit'](){const _0x5f0356=this['editor'];_0x5f0356['plugins']['has']('CaseChange')&&(_0x5f0356['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5f0356['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5f0356['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x2abede{['afterInit'](){const _0x291cbe=this['editor'];_0x291cbe['commands']['get']('ckbox')&&_0x291cbe['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2abede{['afterInit'](){const _0x209d05=this['editor'];if(!_0x209d05['plugins']['has']('CodeBlock'))return;const _0xc006ed=_0x209d05['plugins']['get']('TrackChangesEditing'),_0x23cdb8=_0x209d05['locale'],_0x41331a=_0x209d05['config']['get']('codeBlock')['languages'],_0x460370=_0x209d05['commands']['get']('codeBlock');_0xc006ed['enableCommand']('indentCodeBlock'),_0xc006ed['enableCommand']('outdentCodeBlock'),_0xc006ed['enableCommand']('codeBlock',(_0x223db2,_0xb80ef6={})=>{const _0x12f7f2=_0x209d05['model'],_0x5ac5d1=_0x209d05['model']['document']['selection'],_0x16d75c=_0xb80ef6&&void 0x0!==_0xb80ef6['forceValue']?_0xb80ef6['forceValue']:!_0x460370['value'];let _0x569bf9;_0xb80ef6['language']||(_0xb80ef6['language']=_0x41331a[0x0]['language']),_0x569bf9=_0x16d75c?Array['from'](_0x5ac5d1['getSelectedBlocks']())['filter'](_0x4b192e=>eo(_0x4b192e)||function(_0x39b4f2,_0x5b7b04){if(_0x39b4f2['is']('rootElement')||_0x5b7b04['isLimit'](_0x39b4f2))return!0x1;return _0x5b7b04['checkChild'](_0x39b4f2['parent'],'codeBlock');}(_0x4b192e,_0x12f7f2['schema'])):Array['from'](_0x5ac5d1['getSelectedBlocks']())['filter'](_0x234011=>eo(_0x234011));const _0x18b06c=to(_0x569bf9,_0x12f7f2);_0x12f7f2['change'](()=>{for(const _0x29e0b2 of _0x18b06c)_0xc006ed['markBlockFormat'](_0x29e0b2,{'commandName':'codeBlock','commandParams':[{..._0xb80ef6,'forceValue':_0x16d75c}],'formatGroupId':'blockName'});});}),(_0xc006ed['descriptionFactory']['registerElementLabel']('codeBlock',_0x48094c=>o(_0x23cdb8,'ELEMENT_CODE_BLOCK',_0x48094c)),_0xc006ed['descriptionFactory']['registerDescriptionCallback'](_0x474f62=>{if('formatBlock'!=_0x474f62['type'])return;const _0x24a757=_0x23cdb8['t'],{data:_0x3225eb}=_0x474f62;if(!_0x3225eb||'codeBlock'!=_0x3225eb['commandName'])return;const _0x237fec=_0x3225eb['commandParams'][0x0]['language'],_0x161411=_0x24a757(_0x41331a['find'](_0x1c639e=>_0x1c639e['language']===_0x237fec)['label'])['toLowerCase']();return _0x3225eb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23cdb8,'*Set\x20format:*\x20%0',o(_0x23cdb8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x161411+')')}:{'type':'format','content':o(_0x23cdb8,'*Remove\x20format:*\x20%0',o(_0x23cdb8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4f78ac){return'codeBlock'==_0x4f78ac['name'];}class H extends _0x2abede{['afterInit'](){const _0x31077e=this['editor'];if(!_0x31077e['plugins']['has']('CommentsEditing'))return;_0x31077e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x48055d,_0x350aee,_0x246a38){const _0x202a37=[];for(const _0x5d5248 of _0x350aee['getItems']())_0x5d5248['hasAttribute'](_0x48055d)&&_0x202a37['push'](_0x246a38['createRangeOn'](_0x5d5248));return _0x202a37;}function _e(_0x51d437,_0x30c62f,{showActiveMarker:_0x1bdc7f=!0x0}={}){const _0x143ced=_0x51d437['plugins']['get']('TrackChangesEditing');return(_0x580f2e,_0x130950,_0x153d13)=>{if(!_0x153d13['consumable']['test'](_0x130950['markerRange'],_0x580f2e['name']))return;const _0x569684=_0x130950['markerRange']['getWalker'](),_0x22f981=_0x130950['markerRange']['start'],_0x49443c=_0x51d437['model']['schema'];let _0x102137=null,_0x2d61f8=null,_0x36bde7=!0x1,_0x5b97dc=!0x1;for(const _0x10e8ff of _0x569684){const _0x20d9dc=_0x10e8ff['item'];_0x36bde7=_0x36bde7||_0x49443c['isContent'](_0x20d9dc);const _0x34ae66=_0x153d13['mapper']['toViewElement'](_0x20d9dc);if(_0x34ae66&&_0x34ae66['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10e8ff['type']&&(_0x49443c['isBlock'](_0x20d9dc)&&!_0x49443c['isLimit'](_0x20d9dc)&&(_0x20d9dc['nextSibling']||_0x22f981['isAtEnd']?_0x102137&&_0x102137['parent']==_0x20d9dc||(_0x102137=_0x20d9dc,_0x54e56e(_0x10e8ff['previousPosition']),_0x5b97dc=!0x0):_0x2d61f8=_0x2d61f8||_0x10e8ff['previousPosition']));}function _0x54e56e(_0x51a5d3){const _0x248b48=_0x153d13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30c62f}),_0x446638=_0x153d13['mapper']['toViewPosition'](_0x51a5d3);_0x1bdc7f&&_0x143ced['activeMarkers']['includes'](_0x130950['markerName'])&&_0x153d13['writer']['addClass']('ck-suggestion-marker--active',_0x248b48),_0x153d13['writer']['insert'](_0x446638,_0x248b48),_0x153d13['mapper']['bindElementToMarker'](_0x248b48,_0x130950['markerName']);}_0x36bde7||_0x5b97dc||!_0x2d61f8||_0x54e56e(_0x2d61f8);};}class q extends _0x2abede{static get['requires'](){return[_0x1ff07c];}['init'](){const _0x5bcf2e=this['editor'],_0x4fdeda=_0x5bcf2e['plugins']['get']('TrackChangesEditing');_0x4fdeda['enableCommand']('delete');const _0x27c395=_0x5bcf2e['commands']['get']('deleteForward');_0x4fdeda['enableCommand']('deleteForward',(_0x48683c,_0x2afca8={})=>{const _0x546115=_0x5bcf2e['model']['createSelection'](_0x5bcf2e['model']['document']['selection']);_0x546115['isCollapsed']&&_0x5bcf2e['model']['modifySelection'](_0x546115,{'direction':'forward','unit':_0x2afca8['unit']});const _0x227d6=_0x546115['getFirstRange'](),_0x5ead36=_0x270875['fromRange'](_0x227d6);let _0x2724b7;_0x48683c(_0x2afca8),_0x2724b7='$graveyard'==_0x5ead36['root']['rootName']?_0x5bcf2e['model']['createRange'](_0x227d6['start']):_0x5bcf2e['model']['createRange'](_0x5ead36['start'],_0x5ead36['end']),_0x5ead36['detach'](),_0x5bcf2e['model']['enqueueChange'](_0x27c395['buffer']['batch'],_0x5864bd=>{_0x27c395['buffer']['lock'](),_0x5864bd['setSelection'](_0x5864bd['createRange'](_0x2724b7['end'])),_0x27c395['buffer']['unlock']();});}),_0x5bcf2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5bcf2e,'merge'),{'priority':'high'}),_0x5bcf2e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x43039a,_0x4e6d81,_0x47e901)=>{_0x47e901['options']['showSuggestionHighlights']&&_e(_0x5bcf2e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x43039a,_0x4e6d81,_0x47e901);},{'priority':'high'}),_0x5bcf2e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1384f7,_0x12f6a1,_0x33476f)=>{const _0x3afe40=_0x33476f['mapper']['markerNameToElements'](_0x12f6a1['markerName']);if(_0x3afe40){for(const _0x209440 of _0x3afe40)_0x209440['is']('uiElement')&&(_0x33476f['mapper']['unbindElementFromMarkerName'](_0x209440,_0x12f6a1['markerName']),_0x33476f['writer']['remove'](_0x209440));}},{'priority':'high'});}}class z extends _0x2abede{['afterInit'](){const _0x512b61=this['editor'];if(!_0x512b61['plugins']['has']('ListEditing'))return;const _0x4348dc=_0x512b61['locale'],_0xdfeb02=_0x512b61['plugins']['get']('TrackChangesEditing'),_0x132c13=_0x512b61['plugins']['has']('TodoListEditing'),_0x26f167=!!_0x512b61['config']['get']('list.multiBlock');function _0x47212f(_0x8ec133){return{'type':'format','content':''+o(_0x4348dc,'*Set\x20format:*\x20%0',_0x8ec133)};}function _0x5163aa(_0x1209f9){return{'type':'format','content':''+o(_0x4348dc,'*Remove\x20format:*\x20%0',_0x1209f9)};}_0xdfeb02['enableDefaultAttributesIntegration']('numberedList'),_0xdfeb02['enableDefaultAttributesIntegration']('bulletedList'),_0xdfeb02['enableDefaultAttributesIntegration']('customNumberedList'),_0xdfeb02['enableDefaultAttributesIntegration']('customBulletedList'),_0xdfeb02['enableDefaultAttributesIntegration']('indentList'),_0xdfeb02['enableDefaultAttributesIntegration']('outdentList'),_0xdfeb02['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xdfeb02['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xdfeb02['registerBlockAttribute']('listItemId'),_0xdfeb02['registerBlockAttribute']('listType'),_0xdfeb02['registerBlockAttribute']('listIndent'),_0x26f167&&(_0xdfeb02['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xdfeb02['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x132c13&&(_0xdfeb02['enableDefaultAttributesIntegration']('todoList'),_0xdfeb02['enableDefaultAttributesIntegration']('checkTodoList'),_0xdfeb02['registerBlockAttribute']('todoListChecked'),_0xdfeb02['descriptionFactory']['registerDescriptionCallback'](_0xd272a4=>{const {data:_0x64f77e}=_0xd272a4;if(_0x64f77e&&'todoListChecked'==_0x64f77e['key'])return{'type':'format','content':_0x64f77e['newValue']?o(_0x4348dc,'*Check\x20item*'):o(_0x4348dc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x444332=>{if(_0x444332['batch']['isUndo'])return!0x1;let _0x12ecbd=!0x1;const _0x4d03ce=_0xdfeb02['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x126996=>'todoListChecked'===_0xdfeb02['_getAttributeKey'](_0x126996));for(const _0x18030f of _0x4d03ce){'todo'!=_0x18030f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xdfeb02['_findSuggestions'](_0x18030f['getFirstRange'](),'attribute')['find'](_0x1d4757=>'listType'===_0xdfeb02['_getAttributeKey'](_0x1d4757['suggestion']))||(_0x444332['removeMarker'](_0x18030f['getFirstMarker']()),_0x12ecbd=!0x0));}return _0x12ecbd;})),_0xdfeb02['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4348dc,'FORMAT_INDENT'));const _0x5a1081={'type':'format','content':''};_0xdfeb02['descriptionFactory']['registerDescriptionCallback'](_0x3e4446=>{const {data:_0x4b9232}=_0x3e4446;if(!_0x4b9232||'listType'!=_0x4b9232['key'])return;let _0x29ea14=_0x3e4446['head'];for(;_0x29ea14;){if(_0x29ea14['data']&&(('listStyle'==_0x29ea14['data']['key']||'listMarkerStyle'==_0x29ea14['data']['key'])&&(_0x29ea14['data']['newValue']&&'default'!=_0x29ea14['data']['newValue']||'default'!=_0x29ea14['data']['oldValue']&&!_0x4b9232['newValue'])||!_0x26f167&&_0x29ea14['data']['key']==m))return _0x5a1081;_0x29ea14=_0x29ea14['next'];}if(null==_0x4b9232['newValue'])switch(_0x4b9232['oldValue']){case'bulleted':return _0x5163aa(o(_0x4348dc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5163aa(o(_0x4348dc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5163aa(o(_0x4348dc,'ELEMENT_TODO_LIST'));}switch(_0x4b9232['newValue']){case'bulleted':return _0x47212f(o(_0x4348dc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47212f(o(_0x4348dc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47212f(o(_0x4348dc,'ELEMENT_TODO_LIST'));}}),_0xdfeb02['descriptionFactory']['registerDescriptionCallback'](_0x4d1867=>{const {data:_0x4593e6}=_0x4d1867;if(_0x4593e6&&'listIndent'==_0x4593e6['key'])return null==_0x4593e6['newValue']||null==_0x4593e6['oldValue']&&0x0==_0x4593e6['newValue']?_0x5a1081:void 0x0;}),_0xdfeb02['descriptionFactory']['registerDescriptionCallback'](_0x3900d9=>{if('attribute'!=_0x3900d9['type'])return;const {data:_0x4cb830}=_0x3900d9;if(!_0x4cb830||'listItemId'!=_0x4cb830['key'])return;const _0x5e9298=le(_0x3900d9);return'newValue'==_0x5e9298?{'type':'format','content':o(_0x4348dc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5e9298?{'type':'format','content':o(_0x4348dc,'*Split:*\x20list\x20item')}:_0x5a1081;}),_0x512b61['model']['document']['registerPostFixer'](_0x11e226=>this['listItemIdFixer'](_0x11e226)),_0x512b61['model']['document']['registerPostFixer'](_0x25a877=>this['noTrackChangesFixer'](_0x25a877)),_0x512b61['model']['document']['registerPostFixer'](_0x6a1bc=>this['assureChains'](_0x6a1bc)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x434888){if(_0x434888['batch']['isUndo']||!_0x434888['batch']['isLocal'])return!0x1;let _0x5ad747=!0x1;const _0x4bf6ac=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x593d40=>_0x593d40['data']&&'listItemId'==_0x593d40['data']['key'])['filter'](_0x1c9a81=>_0x1c9a81['data']['newValue']&&_0x1c9a81['data']['oldValue']);for(const _0x3754bc of _0x4bf6ac)le(_0x3754bc)||(_0x434888['removeMarker'](_0x3754bc['getFirstMarker']()),_0x5ad747=!0x0);return _0x5ad747;}['noTrackChangesFixer'](_0x3ed454){if(_0x3ed454['batch']['isUndo']||!_0x3ed454['batch']['isLocal'])return!0x1;const _0x3fa6ef=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3fa6ef['trackChangesCommand']['value'])return!0x1;let _0x194348=!0x1;const _0x42c336=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5a42b5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1e9819=>'attribute'==_0x1e9819['type'])['filter'](_0x32918b=>_0x42c336['includes'](_0x32918b['attributeKey']));if(0x0==_0x5a42b5['length'])return _0x194348;for(const _0x4eece1 of _0x5a42b5){const _0x3954fd=_0x3fa6ef['_findSuggestions'](_0x4eece1['range'],'attribute')['filter'](_0x1b807c=>!_0x1b807c['meta']['isNextTo'])['map'](_0x4c98ca=>_0x4c98ca['suggestion'])['filter'](_0x6659ea=>{const _0x594586=_0x3fa6ef['_getAttributeKey'](_0x6659ea);return _0x42c336['includes'](_0x594586);});if(_0x3954fd['length']){for(const _0x53a5cc of _0x3954fd)_0x3ed454['removeMarker'](_0x53a5cc['getFirstMarker']());_0x194348=!0x0;}}return _0x194348;}['assureChains'](_0x2df7fc){if(_0x2df7fc['batch']['isUndo']||!_0x2df7fc['batch']['isLocal'])return!0x1;const _0x35f3b1=this['editor']['plugins']['get']('TrackChangesEditing');let _0x370331=!0x1;const _0xd7e1ae=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x3f5bfe of _0x35f3b1['getSuggestions']({'skipNotAttached':!0x0})){const _0x11c53c=_0x35f3b1['_findSuggestions'](_0x3f5bfe['getFirstRange'](),'attribute')['map'](_0x5b8524=>_0x5b8524['suggestion'])['filter'](_0x54ebe3=>_0x54ebe3['data']&&_0xd7e1ae['includes'](_0x54ebe3['data']['key']));if(!_0x11c53c['length'])continue;const _0x198fe4=_0x11c53c[0x0]['head']['attributes']['groupId'];if(!_0x11c53c['every'](_0x3f6d39=>_0x3f6d39['attributes']['groupId']===_0x198fe4)){for(const _0x168f8d of _0x11c53c)_0x18e0b9(_0x168f8d,_0x198fe4)&&(_0x370331=!0x0);}}return _0x370331;function _0x266ef2(_0x326bb8,_0x59c33f){for(const _0xbaacf4 of _0x35f3b1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4624c5=>'attribute'==_0x4624c5['type']&&_0x4624c5['attributes']['groupId']==_0x326bb8))_0xbaacf4['setAttribute']('groupId',_0x59c33f);}function _0x18e0b9(_0x1582eb,_0x116c34){let _0x2ab04e=_0x1582eb['head'],_0x163f9d=!0x1;for(;_0x2ab04e;)_0x2ab04e['attributes']['groupId']!=_0x116c34&&(_0x266ef2(_0x2ab04e['attributes']['groupId'],_0x116c34),_0x2ab04e['setAttribute']('groupId',_0x116c34),_0x163f9d=!0x0),_0x2ab04e=_0x2ab04e['next'];return _0x163f9d;}}['_supportLegacySuggestions'](){const _0x34ae9d=this['editor'],_0x371557=_0x34ae9d['locale'],_0x3b0555=_0x34ae9d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b0555['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5070cf,_0x1b7c72){const _0x3ba402=[];for(let _0x5ad020 of _0x5070cf)_0x5ad020['start']['nodeAfter']===_0x5ad020['end']['parent']&&(_0x5ad020=_0x34ae9d['model']['createRange'](_0x34ae9d['model']['createPositionAt'](_0x5ad020['start']['nodeAfter'],0x0))),_0x3ba402['push'](_0x5ad020);_0x34ae9d['model']['change'](_0x5a74e3=>{const _0x476aba=_0x34ae9d['model']['document']['selection'],_0x49f1ac=Array['from'](_0x476aba['getRanges']())['map'](_0x123578=>_0x270875['fromRange'](_0x123578));_0x5a74e3['setSelection'](_0x3ba402),_0x34ae9d['commands']['get'](_0x1b7c72['commandName'])['refresh'](),_0x1b7c72['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x34ae9d['execute'](_0x1b7c72['commandName'],..._0x1b7c72['commandParams']),_0x5a74e3['setSelection'](_0x49f1ac);for(const _0x3ed4e3 of _0x49f1ac)_0x3ed4e3['detach']();});}),_0x3b0555['descriptionFactory']['registerElementLabel'](function(_0x26ddd1){const _0x164711=!_0x34ae9d['model']['schema']['isObject'](_0x26ddd1),_0x38275d=_0x26ddd1['previousSibling'],_0x170146=_0x26ddd1['nextSibling'],_0x3fc8c2=_0x26ddd1['getAttribute']('listItemId'),_0x18db4a=!_0x38275d||_0x38275d['getAttribute']('listItemId')!==_0x3fc8c2,_0x58cddc=!_0x170146||_0x170146['getAttribute']('listItemId')!==_0x3fc8c2;return _0x164711&&Boolean(_0x3fc8c2)&&_0x18db4a&&_0x58cddc;},_0x37446a=>o(_0x371557,'ELEMENT_LIST_ITEM',_0x37446a));}['_registerLegacyDescription'](){const _0x30c723=this['editor'],_0x3271d0=_0x30c723['locale'];function _0x1e47fa(_0x3debb3){const _0x12f7a6=_0x30c723['commands']['get']('bulletedList')['value'],_0x139f5e=_0x30c723['commands']['get']('numberedList')['value'];return'numberedList'===_0x3debb3?_0x12f7a6:_0x139f5e;}_0x30c723['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1aa0a6){if('formatBlock'!=_0x1aa0a6['type'])return;const {data:_0xcdefa5}=_0x1aa0a6;if(!_0xcdefa5)return;let _0x5647e4,_0x359821,_0x31989e,_0x4ce98b;switch(_0xcdefa5['commandName']){case'bulletedList':_0x31989e=_0xcdefa5['commandParams'][0x0]['forceValue'],_0x4ce98b=_0x1e47fa(_0xcdefa5['commandName']),_0x5647e4=_0x31989e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ce98b&&_0x30c723['config']['get']('list.multiBlock')||(_0x5647e4='*Change\x20to:*\x20%0'),_0x359821={'type':'format','content':o(_0x3271d0,_0x5647e4,o(_0x3271d0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x31989e=_0xcdefa5['commandParams'][0x0]['forceValue'],_0x4ce98b=_0x1e47fa(_0xcdefa5['commandName']),_0x5647e4=_0x31989e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ce98b&&_0x30c723['config']['get']('list.multiBlock')||(_0x5647e4='*Change\x20to:*\x20%0'),_0x359821={'type':'format','content':o(_0x3271d0,_0x5647e4,o(_0x3271d0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5647e4='*Indent:*\x20%0',_0x359821={'type':'format','content':o(_0x3271d0,_0x5647e4,o(_0x3271d0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5647e4=function(_0x3ff396){const _0x2b3008=_0x3ff396['getFirstRange']();let _0x1a4756=_0x2b3008['start']['nodeAfter'];for(;_0x1a4756&&_0x2b3008['containsItem'](_0x1a4756);){if(_0x1a4756['getAttribute']('listIndent')>0x0)return!0x1;_0x1a4756=_0x1a4756['nextSibling'];}return!0x0;}(_0x1aa0a6)?o(_0x3271d0,'*Format:*\x20remove\x20from\x20%0',o(_0x3271d0,function(_0xd3015b){return'ELEMENT_'+_0xd3015b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1aa0a6))):o(_0x3271d0,'*Outdent:*\x20%0',o(_0x3271d0,'ELEMENT_LIST_ITEM')),_0x359821={'type':'format','content':_0x5647e4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xcdefa5['multipleBlocks']&&(_0x5647e4='*Merge:*\x20%0',_0x359821={'type':'deletion','content':o(_0x3271d0,_0x5647e4,o(_0x3271d0,'ELEMENT_LIST_ITEM'))});}return _0x359821;});}}function le(_0x98b199){let _0x3ea1ff=_0x98b199['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3ea1ff;){const _0x4f82e1=_0x3ea1ff['getAttribute']('listItemId');if(!_0x4f82e1)return!0x1;if(_0x4f82e1==_0x98b199['data']['newValue'])return'newValue';if(_0x4f82e1==_0x98b199['data']['oldValue'])return'oldValue';_0x3ea1ff=_0x3ea1ff['previousSibling'];}return!0x1;}class ue extends _0x2abede{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x28ea7a=this['editor']['config']['get']('list.properties'),_0x55d2eb=this['editor']['plugins']['get']('TrackChangesEditing');_0x28ea7a['styles']&&(_0x55d2eb['enableDefaultAttributesIntegration']('listStyle'),_0x55d2eb['registerBlockAttribute']('listStyle')),_0x28ea7a['reversed']&&(_0x55d2eb['enableDefaultAttributesIntegration']('listReversed'),_0x55d2eb['registerBlockAttribute']('listReversed')),_0x28ea7a['startIndex']&&(_0x55d2eb['enableDefaultAttributesIntegration']('listStart'),_0x55d2eb['registerBlockAttribute']('listStart'));const _0x5f17c1={'type':'format','content':''};_0x55d2eb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xe6640b=this['editor']['locale'];_0x55d2eb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xe6640b,'FORMAT_LIST_REVERSED')),_0x55d2eb['descriptionFactory']['registerDescriptionCallback'](_0xe312cd=>{const {data:_0x13072c}=_0xe312cd;if(_0x13072c&&'listReversed'==_0x13072c['key'])return null==_0x13072c['newValue']||0x0==_0x13072c['newValue']&&null==_0x13072c['oldValue']?_0x5f17c1:void 0x0;}),_0x55d2eb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xe6640b,'FORMAT_LIST_START')),_0x55d2eb['descriptionFactory']['registerDescriptionCallback'](_0x1aae28=>{const {data:_0x5a0c4b}=_0x1aae28;if(_0x5a0c4b&&'listStart'==_0x5a0c4b['key'])return null==_0x5a0c4b['newValue']||0x1==_0x5a0c4b['newValue']&&null==_0x5a0c4b['oldValue']?_0x5f17c1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x31c6b6=>{if(_0x31c6b6['batch']['isUndo'])return!0x1;let _0x3aa06a=!0x1;const _0x1a0b61=_0x55d2eb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21af45=>{const _0x5ef318=_0x55d2eb['_getAttributeKey'](_0x21af45);return'listStart'==_0x5ef318||'listReversed'==_0x5ef318;});for(const _0x232fc3 of _0x1a0b61){const _0x1e286f=_0x232fc3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1e286f||'customNumbered'==_0x1e286f)continue;_0x55d2eb['_findSuggestions'](_0x232fc3['getFirstRange'](),'attribute')['find'](_0x128332=>'listType'==_0x55d2eb['_getAttributeKey'](_0x128332['suggestion']))||(_0x31c6b6['removeMarker'](_0x232fc3['getFirstMarker']()),_0x3aa06a=!0x0);}return _0x3aa06a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4f5a78){const _0x505c3e=this['editor']['locale'],{data:_0x14e3e1}=_0x4f5a78,_0x4af914={'type':'format','content':''};if(!_0x14e3e1||'listStyle'!=_0x14e3e1['key'])return;if(!_0x14e3e1['oldValue'])return'default'==_0x14e3e1['newValue']?_0x4af914:{'type':'format','content':''+o(_0x505c3e,'*Set\x20format:*\x20%0',o(_0x505c3e,this['_getTranslationKeyForListStyle'](_0x14e3e1['newValue'])))};if(!_0x14e3e1['newValue']){if('default'==_0x14e3e1['oldValue'])return _0x4af914;let _0x4637d9=_0x4f5a78['head'];for(;_0x4637d9;){if(_0x4637d9['data']&&'listType'==_0x4637d9['data']['key']&&_0x4637d9['data']['newValue'])return _0x4af914;_0x4637d9=_0x4637d9['next'];}return{'type':'format','content':''+o(_0x505c3e,'*Remove\x20format:*\x20%0',o(_0x505c3e,this['_getTranslationKeyForListStyle'](_0x14e3e1['oldValue'])))};}if('default'!=_0x14e3e1['newValue'])return{'type':'format','content':''+o(_0x505c3e,'*Set\x20format:*\x20%0',o(_0x505c3e,this['_getTranslationKeyForListStyle'](_0x14e3e1['newValue'])))};let _0xf10a21=_0x4f5a78['head'];for(;_0xf10a21;){if(_0xf10a21['data']&&'listType'==_0xf10a21['data']['key']&&_0xf10a21['data']['newValue']&&_0xf10a21['data']['oldValue'])return _0x4af914;_0xf10a21=_0xf10a21['next'];}return{'type':'format','content':o(_0x505c3e,'*Set\x20format:*\x20%0',o(_0x505c3e,'ELEMENT_'+_0x4f5a78['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1eb26d=this['editor'],_0x28935e=_0x1eb26d['locale'];_0x1eb26d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a27dc=>{if('formatBlock'!=_0x2a27dc['type'])return;const {data:_0x3d787e}=_0x2a27dc;if(!_0x3d787e)return;let _0x5847a2,_0x3484a9;switch(_0x3d787e['commandName']){case'listStyle':_0x5847a2='*Change\x20to:*\x20%0',_0x3484a9={'type':'format','content':o(_0x28935e,_0x5847a2,o(_0x28935e,this['_getTranslationKeyForListStyle'](_0x3d787e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5847a2=_0x3d787e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3484a9={'type':'format','content':o(_0x28935e,_0x5847a2)};break;case'listStart':_0x5847a2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3484a9={'type':'format','content':o(_0x28935e,_0x5847a2,_0x3d787e['commandParams'][0x0]['startIndex'])};}return _0x3484a9;});}['_getTranslationKeyForListStyle'](_0x441d99){return'ELEMENT_'+function(_0xb5f204){if(pe['includes'](_0xb5f204))return'bulleted';if(ye['includes'](_0xb5f204))return'numbered';return null;}(_0x441d99)['toUpperCase']()+'_LIST_'+_0x441d99['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x2abede{static get['requires'](){return[_0x35ffc2];}['init'](){const _0x2859eb=this['editor'],_0x2aabfe=_0x2859eb['plugins']['get']('TrackChangesEditing'),_0x497122=_0x2859eb['commands']['get']('enter');_0x2aabfe['enableCommand']('enter',()=>{_0x2859eb['model']['change'](_0x409682=>{const _0x595e61=_0x2859eb['model']['document']['selection'],_0x2088b0=_0x595e61['getFirstPosition'](),_0x41c19e=_0x270875['fromRange'](_0x595e61['getFirstRange']());if(_0x497122['enterBlock'](_0x409682)){const _0x3a4fd9=_0x2859eb['model']['createPositionAt'](_0x2088b0['parent']['nextSibling'],0x0),_0x5044fa=_0x409682['createRange'](_0x2088b0,_0x3a4fd9);_0x2aabfe['markInsertion'](_0x5044fa);}else _0x409682['setSelection'](_0x409682['createRange'](_0x41c19e['end']));_0x41c19e['detach'](),_0x497122['fire']('afterExecute',{'writer':_0x409682});});}),_0x2859eb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2859eb,'split'),{'priority':'high'}),_0x2859eb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x542469,_0x3b3c99,_0x2338d6)=>{const _0x381975=_0x2338d6['mapper']['markerNameToElements'](_0x3b3c99['markerName']);if(_0x381975){for(const _0x3a2024 of _0x381975)_0x3a2024['hasClass']('ck-suggestion-marker-split')&&(_0x2338d6['mapper']['unbindElementFromMarkerName'](_0x3a2024,_0x3b3c99['markerName']),_0x2338d6['writer']['remove'](_0x3a2024));}},{'priority':'high'}),_0x2859eb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x568362,_0x45a8b1,_0x25e070)=>{_0x25e070['options']['showSuggestionHighlights']&&_e(_0x2859eb,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x568362,_0x45a8b1,_0x25e070);},{'priority':'high'});}}class J extends _0x2abede{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5bbbdd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bbbdd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5bbbdd['enableCommand']('findNext'),_0x5bbbdd['enableCommand']('findPrevious'),_0x5bbbdd['enableCommand']('replace'),_0x5bbbdd['enableCommand']('replaceAll');}['handleFindCommand'](_0x3dd40b,_0x3a4524,_0xdcb4b2={}){const _0x48d84b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3dd40b(_0x4c6222=>('string'==typeof _0x3a4524?_0x48d84b['findByTextCallback'](_0x3a4524,_0xdcb4b2):_0x3a4524)(_0x4c6222)['filter'](_0x26f53d=>!0x1===this['_isInDeletionRange'](_0x26f53d,_0x4c6222['item'])),_0xdcb4b2);}['_isInDeletionRange'](_0x18a780,_0x55c433){const _0x3170a3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x55c433,_0x18a780['start']),this['editor']['model']['createPositionAt'](_0x55c433,_0x18a780['end']));for(const _0x59f8f2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3170a3['getIntersection'](_0x59f8f2['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x2abede{['afterInit'](){const _0x119008=this['editor']['locale'],_0x2ad5b2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x7f9fe2,commandName:_0x4322dd}of ro)this['editor']['plugins']['has'](_0x7f9fe2)&&(_0x2ad5b2['enableDefaultAttributesIntegration'](_0x4322dd),_0x2ad5b2['registerInlineAttribute'](_0x4322dd));_0x119008['t'],_0x2ad5b2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x119008,'FORMAT_FONT_SIZE')),_0x2ad5b2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x119008,'FORMAT_FONT_FAMILY')),_0x2ad5b2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x119008,'FORMAT_FONT_COLOR')),_0x2ad5b2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x119008,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22e0c1=this['editor'],_0x35bcb9=_0x22e0c1['locale'];_0x22e0c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b00a1=>{const _0x27741d=_0x35bcb9['t'];if('formatInline'!=_0x3b00a1['type'])return;const {data:_0x1de4f9}=_0x3b00a1;if(null!=_0x1de4f9){if('fontSize'==_0x1de4f9['commandName']){const _0x5bbb8f=_0x1de4f9['commandParams'][0x0]['value'];if(_0x5bbb8f){const _0x2a9bd8=_0x27741d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x545a29=>_0x545a29['model']==_0x5bbb8f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x35bcb9,'*Set\x20font\x20size:*\x20%0',_0x2a9bd8)};}return{'type':'format','content':o(_0x35bcb9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1de4f9['commandName']){const _0x2b505e=_0x1de4f9['commandParams'][0x0]['value'];return _0x2b505e?{'type':'format','content':o(_0x35bcb9,'*Set\x20font\x20family:*\x20%0',_0x2b505e)}:{'type':'format','content':o(_0x35bcb9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1de4f9['commandName']){const _0x18642a=_0x1de4f9['commandParams'][0x0]['value'];if(_0x18642a){const _0x462380=_0x43c552(this['editor']['config']['get']('fontColor.colors'))['find'](_0x56610f=>_0x56610f['model']==_0x18642a);let _0x3331c5=_0x18642a,_0x25ca37='';return _0x462380&&(_0x3331c5=_0x462380['label'],_0x25ca37=_0x27741d(_0x3331c5)['toLowerCase']()),{'type':'format','content':o(_0x35bcb9,'*Set\x20font\x20color:*\x20%0',_0x25ca37)['trim'](),'color':{'value':_0x18642a,'title':_0x25ca37||_0x3331c5}};}return{'type':'format','content':o(_0x35bcb9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1de4f9['commandName']){const _0x4ecbce=_0x1de4f9['commandParams'][0x0]['value'];if(_0x4ecbce){const _0x1b8237=_0x43c552(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x34dda2=>_0x34dda2['model']==_0x4ecbce);let _0x22f1cc=_0x4ecbce,_0x36278a='';return _0x1b8237&&(_0x22f1cc=_0x1b8237['label'],_0x36278a=_0x27741d(_0x22f1cc)['toLowerCase']()),{'type':'format','content':o(_0x35bcb9,'*Set\x20font\x20background\x20color:*\x20%0',_0x36278a)['trim'](),'color':{'value':_0x4ecbce,'title':_0x36278a||_0x22f1cc}};}return{'type':'format','content':o(_0x35bcb9,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x2abede{['afterInit'](){const _0x76f463=this['editor'],_0x26d156=_0x76f463['plugins']['get']('TrackChangesEditing'),_0x21397a=_0x76f463['commands']['get']('copyFormat'),_0x3bee09=_0x76f463['commands']['get']('pasteFormat');_0x21397a&&_0x3bee09&&(_0x26d156['enableDefaultAttributesIntegration']('pasteFormat'),_0x26d156['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18d0e0=this['editor'],_0x557c38=_0x18d0e0['locale'];_0x18d0e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0e11=>{if('formatBlock'!=_0x5e0e11['type']&&'formatInline'!=_0x5e0e11['type'])return;const {data:_0x41450d}=_0x5e0e11;if(_0x41450d&&'pasteFormat'===_0x41450d['commandName']){const _0x146ae7=[],_0x3e66bc=_0x41450d['commandParams'][0x0];for(const [_0x29d334,_0x14728a]of Object['entries'](_0x3e66bc))_0x146ae7['push'](so(_0x18d0e0,_0x29d334,_0x14728a));return _0x146ae7['length']?{'type':'format','content':o(_0x557c38,'*Set\x20format\x20to:*\x20%0',_0x146ae7['join'](',\x20'))}:{'type':'format','content':o(_0x557c38,'*Remove\x20all\x20formatting*')};}});}}function so(_0x23665d,_0x15db78,_0x3c0abd){const _0x3114b0=_0x23665d['locale']['t'],_0x9bd3db=_0x15db78['split'](/(?=[A-Z])/)['join']('\x20'),_0x37e5a9=_0x3114b0(_0x9bd3db['charAt'](0x0)['toUpperCase']()+_0x9bd3db['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3c0abd)return _0x37e5a9;if('fontColor'===_0x15db78||'fontBackgroundColor'===_0x15db78){const _0x2ff271=_0x43c552(_0x23665d['config']['get']('fontColor.colors'))['find'](_0x5c4bda=>_0x5c4bda['model']==_0x3c0abd);return _0x37e5a9+'\x20('+(_0x2ff271?_0x3114b0(_0x2ff271['label'])['toLowerCase']():_0x3c0abd)+')';}if('fontSize'===_0x15db78&&isNaN(parseFloat(_0x3c0abd))){const _0x1248fa=_0x23665d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x23665d['config']['get']('fontSize.options'))['find'](_0x451824=>_0x451824['model']==_0x3c0abd);return _0x37e5a9+'\x20('+(_0x1248fa?_0x3114b0(_0x1248fa['title'])['toLowerCase']():_0x3c0abd)+')';}return _0x37e5a9+'\x20('+_0x3c0abd+')';}class Y extends _0x2abede{['_headingOptions'];['afterInit'](){const _0x2670ce=this['editor'];if(!_0x2670ce['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2670ce['config']['get']('heading.options');const _0x36bed2=_0x2670ce['locale'],_0x39f98e=_0x2670ce['plugins']['get']('TrackChangesEditing');_0x39f98e['enableDefaultAttributesIntegration']('heading');for(const _0x5bc1be of this['_headingOptions'])'paragraph'!=_0x5bc1be['model']&&_0x39f98e['descriptionFactory']['registerElementLabel'](_0x5bc1be['model'],_0xea68dd=>{const _0x106213=this['_getHeadingLevel'](_0x5bc1be['model']);return null!==_0x106213?_0xcaa366(_0xea68dd,_0x106213):_0x8e50e9(_0xea68dd,_0x5bc1be['title']);});function _0xcaa366(_0x6ec2d6,_0x587ca7){return o(_0x36bed2,'ELEMENT_HEADING',[_0x6ec2d6,_0x587ca7]);}function _0x8e50e9(_0x15aab5,_0x5ae12f){return o(_0x36bed2,'ELEMENT_HEADING_CUSTOM',[_0x15aab5,_0x5ae12f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e1ca4=this['editor'],_0x59aff7=_0x5e1ca4['locale'];function _0x100094(_0x5eba97,_0x53f692){return o(_0x59aff7,'ELEMENT_HEADING_CUSTOM',[_0x5eba97,_0x53f692]);}_0x5e1ca4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57537a=>{if('formatBlock'!=_0x57537a['type'])return;const {data:_0x25add2}=_0x57537a;if(_0x25add2&&'heading'==_0x25add2['commandName']){const _0x38c7e9=_0x25add2['commandParams'][0x0]['value'],_0x505d25=this['_getHeadingLevel'](_0x38c7e9);if(null!==_0x505d25)return{'type':'format','content':o(_0x59aff7,'*Change\x20to:*\x20%0',(_0xa288ea=0x1,_0x21068c=_0x505d25,o(_0x59aff7,'ELEMENT_HEADING',[_0xa288ea,_0x21068c])))};const _0xd90cc0=this['_headingOptions']['find'](_0x34b83b=>_0x34b83b['model']===_0x38c7e9)['title'];return{'type':'format','content':o(_0x59aff7,'*Change\x20to:*\x20%0',_0x100094(0x1,_0xd90cc0))};}var _0xa288ea,_0x21068c;});}['_getHeadingLevel'](_0x1b9e49){const _0x533af6=_0x1b9e49['match'](/^heading(\d+)/);if(_0x533af6)return _0x533af6[0x1];const _0x3d24bf=this['_headingOptions']?.['find'](_0x3d8b87=>_0x3d8b87['model']==_0x1b9e49);if(_0x3d24bf&&_0x3d24bf['view']){const _0x3b8645=_0x3d24bf['view'],_0x45b509=(_0x3b8645['name']??_0x3b8645)['match'](/^h(\d+)/);if(_0x45b509)return _0x45b509[0x1];}return null;}}class Z extends _0x2abede{['afterInit'](){const _0x14490c=this['editor'];if(!_0x14490c['plugins']['has']('HighlightEditing'))return;const _0x3204bf=_0x14490c['plugins']['get']('TrackChangesEditing'),_0x3901e8=_0x14490c['locale'];_0x3204bf['enableDefaultAttributesIntegration']('highlight'),_0x3204bf['registerInlineAttribute']('highlight'),_0x3204bf['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3901e8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f2561=this['editor'],_0x1e0411=_0x5f2561['locale'];_0x5f2561['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3edc38=>{if('formatInline'!=_0x3edc38['type'])return;const {data:_0x5146a5}=_0x3edc38;if(_0x5146a5&&'highlight'==_0x5146a5['commandName']){const _0x1cd990=_0x1e0411['t'],_0x3f01b9=_0x5146a5['commandParams'][0x0]['value'];if(_0x3f01b9){const _0x10c0c3=_0x5f2561['config']['get']('highlight.options')['find'](_0x3ebdaa=>_0x3ebdaa['model']==_0x3f01b9),_0x40d210=_0x1cd990(_0x10c0c3['title'])['toLowerCase']();return{'type':'format','content':o(_0x1e0411,'*Set\x20highlight:*\x20%0',_0x40d210),'color':{'value':_0x10c0c3['color'],'title':_0x10c0c3['title']}};}return{'type':'format','content':o(_0x1e0411,'*Remove\x20highlight*',o(_0x1e0411,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x2abede{['afterInit'](){const _0x34b766=this['editor'];if(!_0x34b766['plugins']['has']('HorizontalLineEditing'))return;_0x34b766['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3017f4=_0x34b766['plugins']['get']('TrackChangesEditing'),_0x474332=_0x34b766['locale'];_0x3017f4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x439af7=>o(_0x474332,'ELEMENT_HORIZONTAL_LINE',_0x439af7)),_0x34b766['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x47489d,{writer:_0x4f1461,options:_0x11ba00})=>{if(!_0x11ba00['showSuggestionHighlights'])return null;const _0x51f16f=_0x4f1461['createContainerElement']('div'),_0x2519b2=_0x4f1461['createEmptyElement']('hr');return _0x4f1461['addClass']('ck-horizontal-line',_0x51f16f),_0x4f1461['insert'](_0x4f1461['createPositionAt'](_0x51f16f,0x0),_0x2519b2),_0x51f16f;},'converterPriority':'high'});}}class et extends _0x2abede{['afterInit'](){const _0xc5cec7=this['editor'];if(!_0xc5cec7['plugins']['has']('HtmlEmbed'))return;const _0x261b72=_0xc5cec7['plugins']['get']('TrackChangesEditing'),_0x5c61ee=_0xc5cec7['locale'];_0x261b72['descriptionFactory']['registerElementLabel']('rawHtml',_0x15dce9=>o(_0x5c61ee,'ELEMENT_HTML_EMBED',_0x15dce9)),_0x261b72['enableDefaultAttributesIntegration']('htmlEmbed'),_0x261b72['registerBlockAttribute']('value'),_0x261b72['descriptionFactory']['registerDescriptionCallback'](_0x5d94a8=>{if('attribute'!=_0x5d94a8['type'])return;const {data:_0x5053ce}=_0x5d94a8;if(_0x5053ce&&'value'==_0x5053ce['key']&&_0x5d94a8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x58308f=o(_0x5c61ee,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5c61ee,'*Change\x20%0\x20content*',_0x58308f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57f6ff=this['editor'],_0x588616=_0x57f6ff['locale'];_0x57f6ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d41f4=>{if('formatBlock'!=_0x2d41f4['type'])return;const {data:_0x231ab2}=_0x2d41f4;if(_0x231ab2&&'htmlEmbed'==_0x231ab2['commandName']){const _0x1fc0d4=o(_0x588616,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x588616,'*Change\x20%0\x20content*',_0x1fc0d4)};}});}}class it extends _0x2abede{['afterInit'](){const _0x8f8479=this['editor'];if(!_0x8f8479['plugins']['has']('ImageEditing'))return;const _0x6b3b39=_0x8f8479['plugins']['get']('TrackChangesEditing'),_0x8a5bcb=_0x8f8479['plugins']['get']('ImageUtils'),_0x5ded14=_0x8f8479['locale'];_0x6b3b39['enableCommand']('insertImage'),_0x6b3b39['descriptionFactory']['registerElementLabel']('imageBlock',_0x20fce9=>o(_0x5ded14,'ELEMENT_IMAGE',_0x20fce9)),_0x6b3b39['descriptionFactory']['registerElementLabel']('imageInline',_0x4b0065=>o(_0x5ded14,'ELEMENT_INLINE_IMAGE',_0x4b0065)),_0x6b3b39['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5ded14,'ELEMENT_CAPTION')),_0x8f8479['plugins']['has']('ImageUploadEditing')&&_0x6b3b39['enableCommand']('uploadImage'),_0x8f8479['plugins']['has']('ImageBlockEditing')&&_0x8f8479['plugins']['has']('ImageInlineEditing')&&(_0x6b3b39['enableCommand']('imageTypeInline',(_0x3d6a90,_0x4cad2a)=>{const _0x5971eb=_0x8a5bcb['getClosestSelectedImageElement'](_0x8f8479['model']['document']['selection']);_0x8f8479['model']['change'](()=>{_0x6b3b39['markBlockFormat'](_0x5971eb,{'commandName':'imageTypeInline','commandParams':[_0x4cad2a]},[],'convertBlockImageToInline');});}),_0x6b3b39['enableCommand']('imageTypeBlock',(_0x12bbfb,_0x2225fa)=>{_0x8f8479['model']['change'](_0x2625c4=>{let _0x25dec7=_0x8a5bcb['getClosestSelectedImageElement'](_0x8f8479['model']['document']['selection']),_0x4a14d5=_0x2625c4['createRangeOn'](_0x25dec7);const _0x5cd2c3=_0x527661['fromPosition'](_0x4a14d5['start'],'toPrevious'),_0x10b2d8=_0x527661['fromPosition'](_0x4a14d5['end'],'toNext');_0x6b3b39['forceDefaultExecution'](()=>_0x12bbfb(_0x2225fa)),_0x25dec7=_0x8a5bcb['getClosestSelectedImageElement'](_0x8f8479['model']['document']['selection']),_0x4a14d5=_0x2625c4['createRangeOn'](_0x25dec7);const _0x1aa859=_0x2625c4['createRange'](_0x5cd2c3,_0x10b2d8);_0x5cd2c3['detach'](),_0x10b2d8['detach'](),_0x6b3b39['markBlockFormat'](_0x25dec7,{'commandName':'imageTypeInline','commandParams':[_0x2225fa]},[],'convertInlineImageToBlock'),_0x1aa859['start']['isBefore'](_0x4a14d5['start'])&&_0x6b3b39['markInsertion'](_0x2625c4['createRange'](_0x1aa859['start'],_0x4a14d5['start']),'convertInlineImageToBlock'),_0x4a14d5['end']['isBefore'](_0x1aa859['end'])&&_0x6b3b39['markInsertion'](_0x2625c4['createRange'](_0x4a14d5['end'],_0x1aa859['end']),'convertInlineImageToBlock');});}),_0x6b3b39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x6b3b39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x6b3b39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x6b3b39['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x6b3b39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x6b3b39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x12d996])=>{const _0x187c7b=_0x6b3b39['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x329c39=_0x12d996['start'],_0x13bf41=_0x12d996['end'];const _0xd581c2=_0x8f8479['model']['schema']['getNearestSelectionRange'](_0x329c39,'backward'),_0x1a6aac=_0x8f8479['model']['schema']['getNearestSelectionRange'](_0x13bf41,'forward');_0xd581c2['isCollapsed']&&(_0x329c39=_0xd581c2['start']),_0x1a6aac['isCollapsed']&&(_0x13bf41=_0x1a6aac['end']),_0x187c7b([_0x8f8479['model']['createRange'](_0x329c39,_0x13bf41)]);}),_0x6b3b39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x433558),_0x6b3b39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x433558)),_0x8f8479['plugins']['has']('ImageCaptionEditing')&&(_0x6b3b39['enableCommand']('toggleImageCaption',(_0x2c1c77,_0x12864b)=>{const _0xe5ce12=_0x8f8479['plugins']['get']('ImageCaptionUtils');let _0x41aaac=_0x8a5bcb['getClosestSelectedImageElement'](_0x8f8479['model']['document']['selection']),_0x516039=_0xe5ce12['getCaptionFromImageModelElement'](_0x41aaac);_0x8f8479['model']['change'](()=>{if(_0x516039)return void _0x6b3b39['markDeletion'](_0x8f8479['model']['createRangeOn'](_0x516039));const _0x4b9e62=_0x8a5bcb['isBlockImage'](_0x41aaac);_0x2c1c77(_0x12864b),_0x41aaac=_0x8a5bcb['getClosestSelectedImageElement'](_0x8f8479['model']['document']['selection']),_0x516039=_0xe5ce12['getCaptionFromImageModelElement'](_0x41aaac),_0x6b3b39['markInsertion'](_0x8f8479['model']['createRangeOn'](_0x516039),_0x4b9e62?null:'imageCaption');});}),_0x6b3b39['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x433558));const _0x23a0a8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x15eeb6(_0x2391fe,_0xb4cbb6){const _0x530647=_0x23a0a8['findIndex'](({type:_0x3efefe,subType:_0x158832})=>_0x2391fe['type']==_0x3efefe&&_0x2391fe['subType']==_0x158832),_0x448415=_0x23a0a8['findIndex'](({type:_0x195305,subType:_0x10b31b})=>_0xb4cbb6['type']==_0x195305&&_0xb4cbb6['subType']==_0x10b31b);if(_0x530647<0x0||_0x448415<0x0)return!0x1;const _0x42721b=_0x2391fe['getFirstRange'](),_0x367bac=_0xb4cbb6['getFirstRange']();if((0x0==_0x530647||0x1==_0x530647)&&0x2==_0x448415&&_0x42721b['isIntersecting'](_0x367bac))return!0x0;if(0x2==_0x530647&&0x3==_0x448415){const _0x51f2db=_0x6b3b39['_findSuggestions'](_0x42721b,'insertion')['filter'](({suggestion:_0x1b56d9,meta:_0x32c583})=>_0x32c583['isOwn']&&'convertInlineImageToBlock'==_0x1b56d9['subType']);if(_0x51f2db['length']>0x1&&_0x367bac['end']['isEqual'](_0x42721b['start']))return!0x0;if(0x1==_0x51f2db['length']&&(_0x42721b['start']['isEqual'](_0x367bac['end'])||_0x42721b['end']['isEqual'](_0x367bac['start'])))return!0x0;}if(0x3==_0x530647&&0x3==_0x448415&&_0x42721b['start']['isBefore'](_0x367bac['start'])){const _0x23a492=_0x42721b['end']['nodeAfter'],_0xe3328=_0x367bac['start']['nodeBefore'];return _0x8a5bcb['isBlockImage'](_0x23a492)&&_0x23a492===_0xe3328;}return!0x1;}function _0x433558(_0x1c23c2,_0x55f37b){return _0x15eeb6(_0x1c23c2,_0x55f37b)?[_0x1c23c2,_0x55f37b]:_0x15eeb6(_0x55f37b,_0x1c23c2)?[_0x55f37b,_0x1c23c2]:null;}_0x8f8479['plugins']['has']('ImageResize')&&(_0x6b3b39['enableDefaultAttributesIntegration']('resizeImage'),_0x6b3b39['registerBlockAttribute']('resizedWidth'),_0x6b3b39['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5ded14,'FORMAT_IMAGE_SIZE'))),_0x8f8479['plugins']['has']('ImageTextAlternativeEditing')&&(_0x6b3b39['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x6b3b39['registerBlockAttribute']('alt')),_0x6b3b39['descriptionFactory']['registerDescriptionCallback'](_0x365264=>{if(!!_0x23a0a8['find'](({type:_0x3c4a70,subType:_0xd616e4})=>_0x365264['type']==_0x3c4a70&&_0x365264['subType']==_0xd616e4))return _0x365264['previous']?{}:void 0x0;}),_0x6b3b39['descriptionFactory']['registerDescriptionCallback'](_0x4e1671=>{if('insertion'==_0x4e1671['type']||'deletion'==_0x4e1671['type']){const _0x572349=_0x4e1671['getContainedElement']();if(_0x572349&&_0x572349['is']('element','caption'))return{'type':'insertion'==_0x4e1671['type']?'addObject':'removeObject','element':_0x572349,'quantity':0x1};}}),_0x6b3b39['descriptionFactory']['registerDescriptionCallback'](_0xdb62aa=>'formatBlock'==_0xdb62aa['type']&&'convertInlineImageToBlock'==_0xdb62aa['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xdb62aa['type']&&'convertBlockImageToInline'==_0xdb62aa['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x6b3b39['descriptionFactory']['registerDescriptionCallback'](_0x51b621=>{if('attribute'!=_0x51b621['type'])return;const {data:_0x4936e9}=_0x51b621;if(!_0x4936e9||'alt'!=_0x4936e9['key'])return;const _0x41d2a1=_0x4936e9['newValue'];return _0x41d2a1?{'type':'format','content':o(_0x5ded14,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x41d2a1+'\x22')}:{'type':'format','content':o(_0x5ded14,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ec922=this['editor'],_0xa5aa76=_0x1ec922['locale'];_0x1ec922['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xacba7b=>{if('formatBlock'!=_0xacba7b['type']&&'formatInline'!=_0xacba7b['type'])return;const {data:_0x2f9620}=_0xacba7b;if(_0x2f9620){if('imageTextAlternative'==_0x2f9620['commandName']){const _0x1827e0=_0x2f9620['commandParams'][0x0]['newValue'];return _0x1827e0?{'type':'format','content':o(_0xa5aa76,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1827e0+'\x22')}:{'type':'format','content':o(_0xa5aa76,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2f9620['commandName']){const _0x37437e=_0x2f9620['commandParams'][0x0]['width'];return _0x37437e?{'type':'format','content':o(_0xa5aa76,'*Set\x20image\x20width:*\x20%0',_0x37437e)}:{'type':'format','content':o(_0xa5aa76,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2abede{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4b8fbe=this['editor']['locale'],_0x3b6760=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b6760['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3b6760['registerBlockAttribute']('src'),_0x3b6760['descriptionFactory']['registerDescriptionCallback'](_0x10c0f2=>{if('attribute'!=_0x10c0f2['type'])return;const {data:_0x41b462}=_0x10c0f2;return _0x41b462&&'src'==_0x41b462['key']?_0x41b462['newValue']&&_0x41b462['oldValue']?{'type':'format','content':o(_0x4b8fbe,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x458c2c=this['editor']['plugins']['get']('TrackChangesEditing');_0x458c2c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x458c2c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x458c2c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x458c2c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309f35=this['editor'],_0x6ae079=_0x309f35['locale'];_0x309f35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b9a81=>{if('formatBlock'!=_0x2b9a81['type']&&'formatInline'!=_0x2b9a81['type'])return;const {data:_0xaa225f}=_0x2b9a81;if(!_0xaa225f||'replaceImageSource'!=_0xaa225f['commandName'])return;return{'type':'format','content':o(_0x6ae079,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x2abede{['afterInit'](){const _0x3ecda1=this['editor'];if(!_0x3ecda1['plugins']['has']('ImageStyleEditing'))return;const _0x4077db=_0x3ecda1['plugins']['get']('TrackChangesEditing'),_0x5d7172=_0x3ecda1['plugins']['get']('ImageUtils'),_0x31bc9b={};_0x4077db['enableCommand']('imageStyle',(_0x58e744,_0x55e2fd)=>{const _0x3a8521=_0x3ecda1['plugins']['get']('Users')['me'],_0x4449f0=_0x3ecda1['commands']['get']('imageStyle');let _0xcdef12=_0x5d7172['getClosestSelectedImageElement'](_0x3ecda1['model']['document']['selection']),_0x584bfb=_0x3ecda1['model']['createRangeOn'](_0xcdef12),_0x1d8995=_0x4449f0['value'];if(_0x1d8995==_0x55e2fd['value'])return;const _0x41d209={'commandName':'imageStyle','commandParams':[_0x55e2fd],'formatGroupId':_0x2fdaf0()};_0x3ecda1['model']['change'](()=>{if(_0x4077db['getSuggestions']()['filter'](_0x7082c0=>_0x7082c0['isInContent']&&_0x3a8521==_0x7082c0['author']&&('formatBlock'==_0x7082c0['type']||'formatInline'==_0x7082c0['type'])&&('imageStylePreApply'==_0x7082c0['subType']||'imageStylePostApply'==_0x7082c0['subType'])&&_0x7082c0['getFirstRange']()['isEqual'](_0x584bfb))['forEach'](_0x34845d=>_0x4077db['discardSuggestion'](_0x34845d['head'])),_0xcdef12=_0x5d7172['getClosestSelectedImageElement'](_0x3ecda1['model']['document']['selection']),_0x584bfb=_0x3ecda1['model']['createRangeOn'](_0xcdef12),_0x4449f0['refresh'](),_0x3ecda1['commands']['get']('imageTypeInline')['refresh'](),_0x3ecda1['commands']['get']('imageTypeBlock')['refresh'](),_0x1d8995=_0x4449f0['value'],_0x1d8995!=_0x55e2fd['value'])return _0x5d7172['isInlineImage'](_0xcdef12)&&_0x4449f0['shouldConvertImageType'](_0x55e2fd['value'],_0xcdef12)?(_0x58e744({..._0x55e2fd,'setImageSizes':!0x1}),_0xcdef12=_0x5d7172['getClosestSelectedImageElement'](_0x3ecda1['model']['document']['selection']),void _0x4077db['markBlockFormat'](_0xcdef12,{..._0x41d209,'commandReversedParams':[{'value':_0x1d8995||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5d7172['isBlockImage'](_0xcdef12)?_0x4077db['markBlockFormat'](_0xcdef12,_0x41d209,[],'imageStylePostApply'):_0x4077db['markInlineFormat'](_0x584bfb,_0x41d209,'imageStylePostApply'));});});for(const _0xef8821 of _0x3ecda1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x31bc9b[_0xef8821['name']]=_0xef8821['title']['toLowerCase']();_0x4077db['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4077db['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4077db['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4077db['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xf79054])=>{_0x5d7172['setImageNaturalSizeAttributes'](_0xf79054['getContainedElement']());}),_0x4077db['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c94cd,_0x1934e3)=>{_0x4077db['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c94cd,{'commandName':_0x1934e3['commandName'],'commandParams':_0x1934e3['commandReversedParams']});}),_0x4077db['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x43de99,_0xda4dd0){if(_0x535331(_0x43de99,_0xda4dd0))return[_0x43de99,_0xda4dd0];if(_0x535331(_0xda4dd0,_0x43de99))return[_0xda4dd0,_0x43de99];return null;});const _0x48c936=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x535331(_0xc53a63,_0x20c741){const _0x43a8ec=_0x48c936['findIndex'](({type:_0x2a8ce8,subType:_0x265752})=>_0xc53a63['type']==_0x2a8ce8&&_0xc53a63['subType']==_0x265752),_0xb0c3d1=_0x48c936['findIndex'](({type:_0x4d44eb,subType:_0x53f3c3})=>_0x20c741['type']==_0x4d44eb&&_0x20c741['subType']==_0x53f3c3);if(_0x43a8ec<0x0||_0xb0c3d1<0x0)return!0x1;const _0x53c18d=_0xc53a63['getFirstRange'](),_0x51d625=_0x20c741['getFirstRange']();if((0x0==_0x43a8ec||0x1==_0x43a8ec)&&0x2==_0xb0c3d1&&_0x53c18d['isIntersecting'](_0x51d625))return!0x0;if(0x2==_0x43a8ec&&0x3==_0xb0c3d1){const _0x189cf2=_0x4077db['_findSuggestions'](_0x53c18d,'insertion')['filter'](({suggestion:_0x1280a7,meta:_0xc3cdd})=>_0xc3cdd['isOwn']&&'convertInlineImageToBlock'==_0x1280a7['subType']);if(_0x189cf2['length']>0x1&&_0x51d625['end']['isEqual'](_0x53c18d['start']))return!0x0;if(0x1==_0x189cf2['length']&&(_0x53c18d['start']['isEqual'](_0x51d625['end'])||_0x53c18d['end']['isEqual'](_0x51d625['start'])))return!0x0;}if(0x3==_0x43a8ec&&0x3==_0xb0c3d1&&_0x53c18d['start']['isBefore'](_0x51d625['start'])){const _0x35247e=_0x53c18d['end']['nodeAfter'],_0x113ea4=_0x51d625['start']['nodeBefore'];return _0x5d7172['isBlockImage'](_0x35247e)&&_0x35247e===_0x113ea4;}return!0x1;}_0x3ecda1['model']['document']['registerPostFixer'](()=>{let _0xf7a592=!0x1;const _0x1b5fd2=Array['from'](_0x3ecda1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58dc04,data:_0x4ed469}of _0x1b5fd2){const {group:_0x2428f0,type:_0x367968,subType:_0x417225,id:_0x589b73}=_0x4077db['_splitMarkerName'](_0x58dc04);if('suggestion'==_0x2428f0&&_0x4077db['hasSuggestion'](_0x589b73)){if('formatBlock'==_0x367968&&('imageStylePreApply'==_0x417225||'imageStylePostApply'==_0x417225)){const _0x361df6=_0x4077db['getSuggestion'](_0x589b73);if(_0x4ed469['newRange']){const _0x217a10=_0x361df6['getFirstRange']()['getContainedElement']();if(_0x5d7172['isBlockImage'](_0x217a10))continue;_0x4077db['discardSuggestion'](_0x361df6),_0xf7a592=!0x0;}}if('insertion'==_0x367968&&'imageCaption'==_0x417225&&!_0x4ed469['newRange']){const _0x1ffd00=_0x4077db['getSuggestion'](_0x589b73);_0x1ffd00['next']&&_0x1ffd00['next']['isInContent']&&(_0x4077db['discardSuggestion'](_0x1ffd00['next']),_0xf7a592=!0x0);}}}return _0xf7a592;}),this['_registerLegacyDescription'](_0x31bc9b);}['_registerLegacyDescription'](_0xd8e56c){const _0x2a54ff=this['editor'],_0x30a67e=_0x2a54ff['locale'];_0x2a54ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24a648=>{if('formatBlock'!=_0x24a648['type']&&'formatInline'!=_0x24a648['type'])return;const {data:_0x15292a}=_0x24a648;if(!_0x15292a||'imageStyle'!=_0x15292a['commandName'])return;const _0xb3f9f5=_0x15292a['commandParams'][0x0]['value'];return _0x3ec978('side'===_0xb3f9f5?o(_0x30a67e,'FORMAT_SIDE_IMAGE'):_0xd8e56c[_0xb3f9f5]||_0xb3f9f5);function _0x3ec978(_0x3e51aa){return{'type':'format','content':o(_0x30a67e,'*Format:*\x20%0',_0x3e51aa)};}});}}class ot extends _0x2abede{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x31fe9c){super(_0x31fe9c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xa18136=this['editor'],_0x2f3fce=_0xa18136['commands']['get']('importWord'),_0x4c1d68=_0xa18136['commands']['get']('trackChanges');_0x2f3fce&&(_0x2f3fce['on']('execute',(_0x4ba725,[,_0x394360])=>{this['_trackChangesValueDuringImport']=_0x4c1d68['value'],_0x394360['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2f3fce,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2f3fce,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4c1d68['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xa18136['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x55d92a,_0x54374f){const {suggestions:_0x16dcdb}=_0x54374f,_0x320149=this['editor']['commands']['get']('trackChanges'),_0x2c485a=_0x320149['value'];this['_trackChangesValueDuringImport']!==_0x2c485a&&(_0x320149['execute'](),this['_trackChangesExecuted']=!0x0),_0x16dcdb&&_0x16dcdb['forEach'](({id:_0x3c5f31,type:_0x42e8a7,author:_0x524f08,created_at:_0x1b3fcf})=>{const _0x1d35b2={'id':_0x3c5f31,'type':_0x42e8a7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x524f08,'createdAt':_0x1b3fcf?new Date(_0x1b3fcf):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1d35b2);});}}class rt extends _0x2abede{['afterInit'](){const _0x3bf49a=this['editor'],_0x201260=_0x3bf49a['plugins']['get']('TrackChangesEditing');if(_0x3bf49a['plugins']['has']('IndentEditing')&&(_0x201260['enableCommand']('indent'),_0x201260['enableCommand']('outdent')),_0x3bf49a['plugins']['has']('IndentBlock')){for(const _0x497611 of['indentBlock','outdentBlock'])_0x201260['enableDefaultAttributesIntegration'](_0x497611);}const _0x3cd4a9=_0x3bf49a['locale'];_0x201260['registerBlockAttribute']('blockIndent'),_0x201260['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3cd4a9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d07a1=this['editor'],_0x46cbcb=_0x4d07a1['locale'],_0x432cb8=_0x4d07a1['plugins']['get']('TrackChangesEditing');_0x432cb8['descriptionFactory']['registerDescriptionCallback'](_0x82fa1f=>{if('formatBlock'!=_0x82fa1f['type'])return;const {data:_0x572bb7}=_0x82fa1f;if(!_0x572bb7)return;if('indentBlock'!=_0x572bb7['commandName']&&'outdentBlock'!=_0x572bb7['commandName'])return;const _0x23dbee=_0x82fa1f['getItems']()[0x0],_0x42d5d5=_0x432cb8['descriptionFactory']['getItemLabel'](_0x23dbee);return'indentBlock'==_0x572bb7['commandName']?{'type':'format','content':o(_0x46cbcb,'*Indent:*\x20%0',_0x42d5d5)}:'outdentBlock'==_0x572bb7['commandName']?{'type':'format','content':o(_0x46cbcb,'*Outdent:*\x20%0',_0x42d5d5)}:void 0x0;});}}class at extends _0x2abede{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x2abede{['afterInit'](){const _0x5492d9=this['editor'];if(!_0x5492d9['plugins']['has']('LinkEditing'))return;const _0x2b1c43=_0x5492d9['plugins']['get']('TrackChangesEditing'),_0x3e01c9=_0x5492d9['commands']['get']('link');_0x2b1c43['enableDefaultAttributesIntegration']('link'),_0x2b1c43['enableDefaultAttributesIntegration']('unlink'),_0x2b1c43['registerInlineAttribute']('linkHref');for(const _0x4231a6 of _0x3e01c9['manualDecorators'])_0x2b1c43['registerInlineAttribute'](_0x4231a6['id']),_0x2b1c43['descriptionFactory']['registerAttributeLabel'](_0x4231a6['id'],'link\x20('+_0x4231a6['label']['toLowerCase']()+')');_0x2b1c43['descriptionFactory']['registerDescriptionCallback'](_0x14ad3e=>{if('attribute'!=_0x14ad3e['type'])return;const {data:_0xca0c65}=_0x14ad3e;if(!_0xca0c65||'linkHref'!=_0xca0c65['key'])return;const _0x5bdb0f=_0xca0c65['newValue'],_0x291f01=_0x5492d9['locale'];return{'type':'format','content':null==_0x5bdb0f?o(_0x291f01,'*Remove\x20link*'):o(_0x291f01,'*Set\x20link:*\x20%0','\x22'+_0x5bdb0f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x60290c=this['editor'],_0x2712e5=_0x60290c['locale'];_0x60290c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x278b22=>{if('formatInline'!=_0x278b22['type'])return;const {data:_0x3f8923}=_0x278b22;if(_0x3f8923){if('link'==_0x3f8923['commandName']){const _0x194d65=_0x3f8923['commandParams'][0x0];return{'type':'format','content':o(_0x2712e5,'*Set\x20link:*\x20%0','\x22'+_0x194d65+'\x22')};}return'unlink'==_0x3f8923['commandName']?{'type':'format','content':o(_0x2712e5,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x2abede{['afterInit'](){const _0x4807ca=this['editor'],_0x59e6ce=_0x4807ca['locale'];if(!_0x4807ca['plugins']['has']('LegacyListEditing'))return;const _0x1ffaea=_0x4807ca['plugins']['get']('TrackChangesEditing'),_0x23448f=_0x4807ca['plugins']['has']('LegacyTodoListEditing');function _0x33301d(_0x28679f){return()=>{const _0x159439=_0x4807ca['model']['document']['selection'],_0x11b26f=_0x4807ca['commands']['get'](_0x28679f);if(_0x11b26f['value'])return void _0x4807ca['execute']('paragraph',{});const _0x363a6a=_0x28679f['slice'](0x0,-0x4),_0x4f0324=function(_0x1cb4d2,_0x251e7b,_0x117434){let _0x541e95=Array['from'](_0x1cb4d2)['filter'](_0x9d06ee=>function(_0x3d7fcd,_0x2cfb14){return _0x2cfb14['checkChild'](_0x3d7fcd['parent'],'listItem')&&!_0x2cfb14['isObject'](_0x3d7fcd);}(_0x9d06ee,_0x117434));_0x541e95=_0x541e95['filter'](_0x4c4d89=>!_0x4c4d89['is']('element','listItem')||_0x4c4d89['getAttribute']('listType')!=_0x251e7b);const _0x2745c9=new Set();for(const _0x15bbc9 of _0x541e95)_0x15bbc9['is']('element','listItem')?_0x2745c9['add'](me(_0x15bbc9)):_0x2745c9['add'](_0x15bbc9);return Array['from'](_0x2745c9);}(_0x159439['getSelectedBlocks'](),_0x363a6a,_0x4807ca['model']['schema']);_0x4807ca['model']['change'](()=>{for(const _0x495e22 of _0x4f0324)_0x1ffaea['markBlockFormat'](_0x495e22,{'commandName':_0x28679f,'commandParams':[{'forceValue':!_0x11b26f['value']}],'formatGroupId':'blockName'},fe(_0x495e22));});};}function _0x4d73a6(_0x1c2eb9){return()=>{const _0x1bb866=function(_0x19a877){let _0x583eb0=Array['from'](_0x19a877);const _0x3942ba=_0x583eb0['findIndex'](_0x18c71a=>'listItem'!=_0x18c71a['name']);return _0x3942ba>-0x1&&(_0x583eb0=_0x583eb0['slice'](0x0,_0x3942ba)),_0x583eb0;}(_0x4807ca['model']['document']['selection']['getSelectedBlocks']()),_0x2a0814=_0x4807ca['model']['createRange'](_0x4807ca['model']['createPositionAt'](_0x1bb866[0x0],'before'),_0x4807ca['model']['createPositionAt'](_0x1bb866[_0x1bb866['length']-0x1],'end'));_0x4807ca['model']['change'](()=>{_0x1ffaea['markBlockFormat'](_0x2a0814,{'commandName':_0x1c2eb9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x383dcf){const _0x49c736=new Set();for(const _0x155634 of _0x383dcf){let _0x2cd211=_0x155634['nextSibling'];for(;_0x2cd211&&_0x2cd211['getAttribute']('listIndent')>_0x155634['getAttribute']('listIndent');)_0x49c736['add'](_0x2cd211),_0x2cd211=_0x2cd211['nextSibling'];}return Array['from'](_0x49c736);}(_0x1bb866));});};}_0x1ffaea['enableCommand']('numberedList',_0x33301d('numberedList')),_0x1ffaea['enableCommand']('bulletedList',_0x33301d('bulletedList')),_0x23448f&&_0x1ffaea['enableCommand']('todoList',_0x33301d('todoList')),_0x1ffaea['enableCommand']('indentList',_0x4d73a6('indentList')),_0x1ffaea['enableCommand']('outdentList',_0x4d73a6('outdentList')),_0x23448f&&_0x1ffaea['enableCommand']('checkTodoList',()=>{const _0x181c8d=_0x4807ca['commands']['get']('checkTodoList'),_0x161483=Array['from'](_0x181c8d['_selectedElements']);_0x161483['filter'](_0x57305d=>_0x57305d['getAttribute']('todoListChecked')!=_0x181c8d['value']),_0x4807ca['model']['change'](()=>{for(const _0x37ac2e of _0x161483)_0x1ffaea['markBlockFormat'](_0x37ac2e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x181c8d['value']}]});});}),_0x1ffaea['descriptionFactory']['registerElementLabel']('listItem',_0x28d22d=>o(_0x59e6ce,'ELEMENT_LIST_ITEM',_0x28d22d)),_0x1ffaea['descriptionFactory']['registerDescriptionCallback'](_0x1b0db3=>{if('formatBlock'!=_0x1b0db3['type']&&'formatInline'!=_0x1b0db3['type'])return;const {data:_0x3619a6}=_0x1b0db3;if(_0x3619a6){if('numberedList'==_0x3619a6['commandName']||'bulletedList'==_0x3619a6['commandName']||'todoList'==_0x3619a6['commandName'])switch(_0x3619a6['commandName']['replace']('List','')){case'bulleted':return _0x540b50(o(_0x59e6ce,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x540b50(o(_0x59e6ce,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x540b50(o(_0x59e6ce,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3619a6['commandName'])return{'type':'format','content':o(_0x59e6ce,'*Indent:*\x20%0',o(_0x59e6ce,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3619a6['commandName'])return{'type':'format','content':o(_0x59e6ce,'*Outdent:*\x20%0',o(_0x59e6ce,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3619a6['commandName'])return _0x3619a6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59e6ce,'*Check\x20item*')}:{'type':'format','content':o(_0x59e6ce,'*Uncheck\x20item*')};}function _0x540b50(_0x19ffd9){return{'type':'format','content':o(_0x59e6ce,'*Change\x20to:*\x20%0',_0x19ffd9)};}});}}function me(_0x5890ec){const _0x3f12ab=_0x5890ec['getAttribute']('listIndent');if(0x0==_0x3f12ab)return _0x5890ec;let _0x4bd448=_0x5890ec;for(;_0x5890ec['previousSibling']&&_0x5890ec['previousSibling']['is']('element','listItem');){const _0x58eef8=_0x5890ec['previousSibling']['getAttribute']('listIndent');if(_0x58eef8==_0x3f12ab)_0x4bd448=_0x5890ec['previousSibling'];else{if(_0x58eef8<_0x3f12ab)break;}_0x5890ec=_0x5890ec['previousSibling'];}return _0x4bd448;}function fe(_0x3eda6f){const _0x255837=[];if(_0x3eda6f['is']('element','listItem')&&_0x3eda6f['getAttribute']('listIndent')>0x0){let _0x1e8423=_0x3eda6f['nextSibling'];for(;_0x1e8423&&'listItem'==_0x1e8423['name']&&_0x1e8423['getAttribute']('listIndent')==_0x3eda6f['getAttribute']('listIndent');)_0x255837['push'](_0x1e8423),_0x1e8423=_0x1e8423['nextSibling'];}return _0x255837;}class K extends _0x2abede{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2808cd=this['editor']['config']['get']('list.properties'),_0x1fde67=this['editor']['plugins']['get']('TrackChangesEditing');_0x2808cd['styles']&&_0x1fde67['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2808cd['reversed']&&_0x1fde67['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2808cd['startIndex']&&_0x1fde67['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1fde67['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x356e89,_0x53fd4c={}){const _0x2ad7d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41de88=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2ad7d3['markMultiRangeBlockFormat'](_0x41de88,{'commandName':'listStyle','commandParams':[{'type':_0x53fd4c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x506965,_0x1dfe1f={}){const _0x347cfd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x368628=this['_getSuggestionBlocks'](_0x4d8c82=>_0x4d8c82['is']('element','listItem')&&'numbered'===_0x4d8c82['getAttribute']('listType'));if(_0x368628['length']<0x1)return;const _0x38d2ea=_0x368628['map'](_0x59d561=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59d561,'before'),this['editor']['model']['createPositionAt'](_0x59d561,0x0)));this['editor']['model']['change'](()=>{_0x347cfd['markMultiRangeBlockFormat'](_0x38d2ea,{'commandName':'listReversed','commandParams':[{'reversed':_0x1dfe1f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4002c1,_0x3f643d={}){const _0x5d4f6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24720f=this['_getSuggestionBlocks'](_0x37bb08=>_0x37bb08['is']('element','listItem')&&'numbered'===_0x37bb08['getAttribute']('listType'));if(_0x24720f['length']<0x1)return;const _0x4399fe=_0x24720f['map'](_0x1a5a29=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a5a29,'before'),this['editor']['model']['createPositionAt'](_0x1a5a29,0x0)));this['editor']['model']['change'](()=>{_0x5d4f6e['markMultiRangeBlockFormat'](_0x4399fe,{'commandName':'listStart','commandParams':[{'startIndex':_0x3f643d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1e0e51){if('formatBlock'!=_0x1e0e51['type']&&'formatInline'!=_0x1e0e51['type'])return;const _0x22a040=this['editor']['locale'],{data:_0x2406f9}=_0x1e0e51;if(!_0x2406f9)return;let _0x5dc590,_0x4c2125;switch(_0x2406f9['commandName']){case'listStyle':_0x5dc590='*Change\x20to:*\x20%0',_0x4c2125={'type':'format','content':o(_0x22a040,_0x5dc590,o(_0x22a040,this['_getTranslationKeyForListStyle'](_0x2406f9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5dc590=_0x2406f9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c2125={'type':'format','content':o(_0x22a040,_0x5dc590)};break;case'listStart':_0x5dc590='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c2125={'type':'format','content':o(_0x22a040,_0x5dc590,_0x2406f9['commandParams'][0x0]['startIndex'])};}return _0x4c2125;}['_getSuggestionBlocksForListStyle'](){const _0x287814=this['editor']['plugins']['get']('LegacyListUtils');let _0x175281=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x175281[0x0]?.['is']('element','listItem')&&_0x175281['unshift'](..._0x287814['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x175281[_0x175281['length']-0x1]?.['is']('element','listItem')&&_0x175281['push'](..._0x287814['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x175281=[...new Set(_0x175281)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x175281=_0x175281['filter'](_0x487864=>_0x487864['is']('element','listItem'))),_0x175281;}['_getSuggestionBlocks'](_0x581f3d){const _0x2f1793=this['editor']['plugins']['get']('LegacyListUtils');let _0x1fc267=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x581f3d)['map'](_0x2c3648=>{const _0xa07f77=this['editor']['model']['createPositionAt'](_0x2c3648,0x0);return[..._0x2f1793['getSiblingNodes'](_0xa07f77,'backward'),..._0x2f1793['getSiblingNodes'](_0xa07f77,'forward')];})['flat']();return _0x1fc267=[...new Set(_0x1fc267)],_0x1fc267;}['_getTranslationKeyForListStyle'](_0x737f4f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x737f4f)||'default')['toUpperCase']()+'_LIST_'+_0x737f4f['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x2abede{['afterInit'](){const _0x2d2d06=this['editor'];if(!_0x2d2d06['plugins']['has']('MediaEmbedEditing'))return;const _0x2f822b=_0x2d2d06['plugins']['get']('TrackChangesEditing'),_0x50f714=_0x2d2d06['locale'];_0x2f822b['enableCommand']('mediaEmbed'),_0x2f822b['descriptionFactory']['registerElementLabel']('media',_0x1a8044=>o(_0x50f714,'ELEMENT_MEDIA',_0x1a8044)),_0x2d2d06['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xbfb6a2,{writer:_0x1cbaa8,options:_0x4d90a0})=>{if(_0x4d90a0['showSuggestionHighlights'])return _0x1cbaa8['createEmptyElement']('div');},'converterPriority':'high'}),_0x2d2d06['data']['downcastDispatcher']['on']('attribute:url:media',(_0xcf9794,_0x89e6be,_0x4e0c96)=>{_0x4e0c96['options']['showSuggestionHighlights']&&_0xcf9794['stop']();},{'priority':'high'});}}class gt extends _0x2abede{['afterInit'](){const _0x4c0fb7=this['editor'];_0x4c0fb7['plugins']['has']('MentionEditing')&&_0x4c0fb7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x2abede{['afterInit'](){const _0x3b07ab=this['editor'],_0x2bb9ce=_0x3b07ab['plugins']['get']('TrackChangesEditing');_0x3b07ab['plugins']['has']('MultiLevelList')&&(_0x2bb9ce['enableDefaultAttributesIntegration']('multiLevelList'),_0x2bb9ce['registerBlockAttribute']('listMarkerStyle'),_0x2bb9ce['descriptionFactory']['registerDescriptionCallback'](_0x25149c=>this['handleDescriptions'](_0x25149c)));}['handleDescriptions'](_0x27702c){const _0x14ee12=this['editor']['locale'],{data:_0x66bec5}=_0x27702c,_0x514706={'type':'format','content':''};if(_0x66bec5&&'listMarkerStyle'==_0x66bec5['key']){if(!_0x66bec5['oldValue'])return{'type':'format','content':o(_0x14ee12,'*Set\x20format:*\x20%0',o(_0x14ee12,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x66bec5['newValue']+')'};if(!_0x66bec5['newValue']){let _0x9b04f5=_0x27702c['head'];for(;_0x9b04f5;){if(_0x9b04f5['data']&&'listType'==_0x9b04f5['data']['key']&&_0x9b04f5['data']['newValue'])return _0x514706;_0x9b04f5=_0x9b04f5['next'];}return{'type':'format','content':o(_0x14ee12,'*Remove\x20format:*\x20%0',o(_0x14ee12,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x66bec5['oldValue']+')'};}}}}class mt extends _0x2abede{['afterInit'](){const _0x53666a=this['editor'];if(!_0x53666a['plugins']['has']('PageBreakEditing'))return;_0x53666a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x37cd37=_0x53666a['plugins']['get']('TrackChangesEditing'),_0x594205=_0x53666a['locale'];_0x37cd37['descriptionFactory']['registerElementLabel']('pageBreak',_0x26efee=>o(_0x594205,'ELEMENT_PAGE_BREAK',_0x26efee));}}class dt extends _0x2abede{['afterInit'](){const _0x2d7f3c=this['editor'];if(!_0x2d7f3c['plugins']['has']('Paragraph'))return;const _0x3b0f79=_0x2d7f3c['locale'],_0x1c32d2=_0x2d7f3c['plugins']['get']('TrackChangesEditing');_0x1c32d2['descriptionFactory']['registerElementLabel']('paragraph',_0x3fbdee=>o(_0x3b0f79,'ELEMENT_PARAGRAPH',_0x3fbdee)),_0x1c32d2['enableDefaultAttributesIntegration']('paragraph'),_0x1c32d2['enableCommand']('insertParagraph'),_0x2d7f3c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2d7f3c),{'priority':'highest'}),_0x2d7f3c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x366553,_0x12b1f5,_0x1b05e6)=>{_0x1b05e6['options']['showSuggestionHighlights']&&nr(_0x2d7f3c,{'showActiveMarker':!0x1})(_0x366553,_0x12b1f5,_0x1b05e6);},{'priority':'highest'});const _0x46eb2c=_0x1c32d2['descriptionFactory'];_0x46eb2c['registerDescriptionCallback'](_0x557973=>{if('insertion'!==_0x557973['type'])return;const {start:_0x51bc96,end:_0x231e90}=_0x557973['getFirstRange']();if(!_0x51bc96['isTouching'](_0x231e90)||!_0x51bc96['nodeAfter'])return;const _0xd8b138=_0x2d7f3c['model']['schema'],_0x398d2c=_0x51bc96['nodeAfter'];return _0xd8b138['isBlock'](_0x398d2c)&&!_0xd8b138['isLimit'](_0x398d2c)&&_0xd8b138['checkChild'](_0x398d2c,'$text')?{'type':'insertion','content':o(_0x3b0f79,'*Insert:*\x20%0',_0x46eb2c['getItemLabel'](_0x398d2c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c2e82=this['editor'],_0x3d9a15=_0x5c2e82['locale'];_0x5c2e82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x512c6f=>{if('formatBlock'!=_0x512c6f['type'])return;const {data:_0x193d4c}=_0x512c6f;return _0x193d4c&&'paragraph'==_0x193d4c['commandName']?{'type':'format','content':o(_0x3d9a15,'*Change\x20to:*\x20%0',o(_0x3d9a15,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x47887d,{showActiveMarker:_0x2e9326=!0x0}={}){return(_0x10b773,_0x3a46a4,_0x55cc36)=>{const _0xef8eea=_0x47887d['plugins']['get']('TrackChangesEditing'),_0x498fea=_0x3a46a4['markerRange']['start'],_0x56bf3e=_0x3a46a4['markerRange']['end'],_0x1d78cf=_0x47887d['model']['schema'];if(!_0x498fea['isTouching'](_0x56bf3e)||!_0x498fea['nodeAfter'])return;const _0x5550cd=_0x498fea['nodeAfter'];if(_0x1d78cf['isBlock'](_0x5550cd)&&!_0x1d78cf['isLimit'](_0x5550cd)&&_0x1d78cf['checkChild'](_0x5550cd,'$text')){if(!_0x55cc36['consumable']['consume'](_0x3a46a4['markerRange'],_0x10b773['name']))return;const _0x5f0cc9=_0x55cc36['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5802bc=_0x55cc36['mapper']['toViewPosition'](_0x56bf3e);_0x2e9326&&_0xef8eea['activeMarkers']['includes'](_0x3a46a4['markerName'])&&_0x55cc36['writer']['addClass']('ck-suggestion-marker--active',_0x5f0cc9),_0x55cc36['writer']['insert'](_0x5802bc,_0x5f0cc9),_0x55cc36['mapper']['bindElementToMarker'](_0x5f0cc9,_0x3a46a4['markerName']);}};}class pt extends _0x2abede{['afterInit'](){const _0x4945e6=this['editor'];if(!_0x4945e6['plugins']['has']('RemoveFormatEditing'))return;_0x4945e6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53bd32=this['editor'];_0x53bd32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39de85=>{if('formatBlock'!=_0x39de85['type']&&'formatInline'!=_0x39de85['type'])return;const {data:_0x9a0922}=_0x39de85;return _0x9a0922&&'removeFormat'==_0x9a0922['commandName']?{'type':'format','content':o(_0x53bd32['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x2abede{['afterInit'](){const _0x20da28=this['editor'];if(!_0x20da28['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5731e8=_0x20da28['plugins']['get']('TrackChangesEditing');_0x5731e8['enableCommand']('goToPreviousRestrictedEditingException'),_0x5731e8['enableCommand']('goToNextRestrictedEditingException');const _0x28983e=_0x20da28['plugins']['get']('RestrictedEditingModeEditing');_0x28983e['enableCommand']('trackChanges'),_0x28983e['enableCommand']('acceptSuggestion'),_0x28983e['enableCommand']('discardSuggestion'),_0x28983e['enableCommand']('acceptAllSuggestions'),_0x28983e['enableCommand']('discardAllSuggestions'),_0x28983e['enableCommand']('acceptSelectedSuggestions'),_0x28983e['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x2abede{static get['requires'](){return[_0x365168];}['init'](){const _0x5f425e=this['editor'],_0x1e022b=_0x5f425e['plugins']['get']('TrackChangesEditing');_0x1e022b['enableCommand']('shiftEnter'),_0x5f425e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5f425e),{'priority':'high'}),_0x5f425e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5f425e),{'priority':'high'}),_0x5f425e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x56e64d,_0xa7b735,_0x20aefa)=>{_0x20aefa['options']['showSuggestionHighlights']&&de(_0x5f425e,{'showActiveMarker':!0x1})(_0x56e64d,_0xa7b735,_0x20aefa);}),_0x1e022b['descriptionFactory']['registerElementLabel']('softBreak',_0x638911=>o(_0x5f425e['locale'],'ELEMENT_LINE_BREAK',_0x638911));}}function de(_0xca941b,{showActiveMarker:_0x4fa7b6=!0x0}={}){return(_0x30792d,_0x1d65d1,_0xf65cf2)=>{const _0x2c879c=_0xca941b['plugins']['get']('TrackChangesEditing');if(!_0xf65cf2['consumable']['test'](_0x1d65d1['markerRange'],_0x30792d['name']))return;const _0x5c14d8=_0xca941b['model'];for(const _0x5111ae of _0x1d65d1['markerRange']['getItems']()){if(!_0x5111ae['is']('element','softBreak'))continue;const _0x382dfa='deletion'==_0x1d65d1['markerName']['split'](':')[0x1]?'merge':'split',_0xc8c230=_0xf65cf2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x382dfa}),_0x3e3f37=_0xf65cf2['mapper']['toViewPosition'](_0x5c14d8['createPositionBefore'](_0x5111ae));_0x4fa7b6&&_0x2c879c['activeMarkers']['includes'](_0x1d65d1['markerName'])&&_0xf65cf2['writer']['addClass']('ck-suggestion-marker--active',_0xc8c230),_0xf65cf2['writer']['insert'](_0x3e3f37,_0xc8c230),_0xf65cf2['mapper']['bindElementToMarker'](_0xc8c230,_0x1d65d1['markerName']);}};}class wt extends _0x2abede{['afterInit'](){const _0x2d2616=this['editor'],_0x5c7a27=_0x2d2616['model'],_0x42eb01=_0x2d2616['locale'];if(!_0x2d2616['plugins']['has']('StandardEditingModeEditing'))return;const _0x4dc224=_0x2d2616['plugins']['get']('TrackChangesEditing'),_0x431302='restrictedEditingException',_0x33b890=_0x2d2616['commands']['get'](_0x431302);_0x4dc224['enableCommand'](_0x431302,(_0x4e5c7a,_0x4e1a5e={})=>{const _0x4e3a1d=_0x5c7a27['document']['selection'];if(_0x4e3a1d['isCollapsed'])return void _0x4e5c7a(_0x4e1a5e);const _0x1a042a=void 0x0!==_0x4e1a5e['forceValue']?_0x4e1a5e['forceValue']:!_0x33b890['value'];_0x5c7a27['change'](()=>{const _0x43e4d1=Array['from'](_0x4e3a1d['getRanges']());for(const _0x432875 of _0x43e4d1){const _0x168629=_0x1a042a?[_0x432875]:io(_0x431302,_0x432875,_0x5c7a27);for(const _0x55c271 of _0x168629)_0x4dc224['markInlineFormat'](_0x55c271,{'commandName':_0x431302,'commandParams':[{'forceValue':_0x1a042a}]});}});}),_0x4dc224['descriptionFactory']['registerDescriptionCallback'](_0x4fe239=>{if('formatBlock'!=_0x4fe239['type']&&'formatInline'!=_0x4fe239['type'])return;const {data:_0x2496f6}=_0x4fe239;return _0x2496f6&&_0x2496f6['commandName']==_0x431302?_0x2496f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42eb01,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x42eb01,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x2abede{['afterInit'](){const _0x4e6785=this['editor'];if(!_0x4e6785['plugins']['has']('Style')||!_0x4e6785['plugins']['has']('DataSchema'))return;const _0x34917a=_0x4e6785['plugins']['get']('TrackChangesEditing'),_0x140a2f=_0x4e6785['locale'],_0x1207ed=_0x4e6785['config']['get']('style')||{},_0x21e85b=_0x4e6785['plugins']['get']('GeneralHtmlSupport'),_0x1144df=_0x4e6785['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4e6785['plugins']['get']('DataSchema'),_0x1207ed['definitions']);_0x34917a['enableDefaultAttributesIntegration']('style');const _0x4cbbc4=new Set();for(const _0x1f39c3 of _0x1144df['block']){const _0x5c06b8=_0x21e85b['getGhsAttributeNameForElement'](_0x1f39c3['element']);_0x4cbbc4['add'](_0x5c06b8);}const _0x1730ee=new Set();for(const _0x249209 of _0x1144df['inline']){const _0x5536a1=_0x21e85b['getGhsAttributeNameForElement'](_0x249209['element']);_0x1730ee['add'](_0x5536a1);for(const _0x4ef2ba of _0x249209['ghsAttributes'])_0x1730ee['add'](_0x4ef2ba);}for(const _0x17bf15 of _0x4cbbc4)_0x34917a['registerBlockAttribute'](_0x17bf15),_0x34917a['descriptionFactory']['registerAttributeLabel'](_0x17bf15,o(_0x140a2f,'FORMAT_STYLE'));for(const _0xa01cab of _0x1730ee)_0x34917a['registerInlineAttribute'](_0xa01cab),_0x34917a['descriptionFactory']['registerAttributeLabel'](_0xa01cab,o(_0x140a2f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c3a43=this['editor'],_0x45fe46=_0x1c3a43['locale'];_0x1c3a43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e6b2=>{if('formatBlock'!=_0x5e6b2['type']&&'formatInline'!=_0x5e6b2['type'])return;const {data:_0xa2d939}=_0x5e6b2;return _0xa2d939&&'style'===_0xa2d939['commandName']?_0xa2d939['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45fe46,'*Set\x20format:*\x20%0',_0xa2d939['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x45fe46,'*Remove\x20format:*\x20%0',_0xa2d939['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x2abede{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x202d4d){super(_0x202d4d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2b8b97=this['editor'],_0x28a4f3=_0x2b8b97['model']['document']['selection'];if(!_0x2b8b97['plugins']['has']('TableEditing'))return;const _0x3992d5=_0x2b8b97['locale'],_0x51b2b3=_0x2b8b97['plugins']['get']('TrackChangesEditing'),_0x3f427f=_0x2b8b97['plugins']['get']('TableUtils');_0x51b2b3['descriptionFactory']['registerElementLabel']('table',_0x797bbf=>o(_0x3992d5,'ELEMENT_TABLE',_0x797bbf)),this['_setupColumnsRowsFixing'](),_0x51b2b3['enableCommand']('insertTable'),_0x51b2b3['enableCommand']('selectTableRow'),_0x51b2b3['enableCommand']('selectTableColumn');for(const _0x58a158 of['insertTableRowAbove','insertTableRowBelow']){const _0x4aa073=_0x2b8b97['commands']['get'](_0x58a158);_0x51b2b3['enableCommand'](_0x58a158,_0x2943f1=>{_0x2b8b97['model']['change'](_0x2497cf=>{_0x2943f1();const _0x5b037f='above'===_0x4aa073['order'],_0x22bcc2=_0x3f427f['getSelectionAffectedTableCells'](_0x28a4f3),_0x20f3c6=_0x3f427f['getRowIndexes'](_0x22bcc2),_0x55131c=_0x5b037f?_0x20f3c6['first']-0x1:_0x20f3c6['last']+0x1,_0x4f5ba9=_0x22bcc2[0x0]['findAncestor']('table'),_0x51ae74=_0x3f427f['createTableWalker'](_0x4f5ba9,{'startRow':_0x55131c,'endRow':_0x55131c}),_0x1b16b1=Array['from'](_0x51ae74)['map'](_0x4632b8=>_0x2497cf['createRangeOn'](_0x4632b8['cell']));_0x51b2b3['markMultiRangeInsertion'](_0x1b16b1,'tableRow');});});}for(const _0x1f61cb of['insertTableColumnLeft','insertTableColumnRight']){const _0x35f171=_0x2b8b97['commands']['get'](_0x1f61cb);_0x51b2b3['enableCommand'](_0x1f61cb,_0x18aa69=>{_0x2b8b97['model']['change'](_0x25926c=>{_0x18aa69();const _0x188a55='left'===_0x35f171['order'],_0x45dd88=_0x3f427f['getSelectionAffectedTableCells'](_0x28a4f3),_0x5e5269=_0x3f427f['getColumnIndexes'](_0x45dd88),_0x146c0a=_0x188a55?_0x5e5269['first']-0x1:_0x5e5269['last']+0x1,_0x5a17c0=_0x45dd88[0x0]['findAncestor']('table'),_0x56ec14=_0x3f427f['createTableWalker'](_0x5a17c0,{'startRow':0x0,'column':_0x146c0a,'includeAllSlots':!0x1}),_0x54a2b5=Array['from'](_0x56ec14)['map'](_0x374c9e=>_0x25926c['createRangeOn'](_0x374c9e['cell']));_0x51b2b3['markMultiRangeInsertion'](_0x54a2b5,'tableColumn');});});}for(const _0x3a50b7 of['removeTableRow','removeTableColumn']){const _0x2e5b00=_0x3a50b7['substr'](0xb),_0x252bf0=_0x2e5b00['toLowerCase'](),_0x2e3ea0=_0x252bf0['substr'](0x0,0x3)+'span',_0x541e67='table'+_0x2e5b00,_0x48166f='min'+_0x2e5b00,_0x2c322a='max'+_0x2e5b00;_0x51b2b3['enableCommand'](_0x3a50b7,()=>{_0x2b8b97['model']['change'](_0x3895bf=>{const _0x190905=_0x3f427f['getSelectionAffectedTableCells'](_0x28a4f3),_0xc31e1d=_0x190905[0x0]['findAncestor']('table');let _0x424d7e;if('removeTableRow'==_0x3a50b7){const _0x3af105=_0x3f427f['getRowIndexes'](_0x190905);_0x424d7e={'startRow':_0x3af105['first'],'endRow':_0x3af105['last'],'includeAllSlots':!0x0};}else{const _0x29c63f=_0x3f427f['getColumnIndexes'](_0x190905);_0x424d7e={'startColumn':_0x29c63f['first'],'endColumn':_0x29c63f['last'],'includeAllSlots':!0x0};}const _0x1cd014=_0x3f427f['createTableWalker'](_0xc31e1d,_0x424d7e),_0x5db6dd=Array['from'](_0x1cd014)['map'](({cell:_0x4197a7})=>_0x4197a7),_0x16bef1=Ee(_0x5db6dd['filter'](_0x39f998=>_0x39f998['hasAttribute'](_0x2e3ea0))),_0x5918c4=Ee(_0x5db6dd['filter'](_0x2b5e92=>!_0x2b5e92['hasAttribute'](_0x2e3ea0)))['map'](_0xd4a479=>_0x3895bf['createRangeOn'](_0xd4a479)),_0x5b490c=_0x51b2b3['markMultiRangeDeletion'](_0x5918c4,_0x541e67);if(_0x5b490c&&('tableRow'==_0x5b490c['subType']||'tableColumn'==_0x5b490c['subType'])){const _0x22deda=this['_getSuggestionCoords'](_0x5b490c);for(const _0x5429b2 of _0x16bef1){const _0x18af6a=_0x3895bf['createRangeOn'](_0x5429b2),_0x2341f3=_0x3f427f['getCellLocation'](_0x5429b2),_0x384d80=_0x5429b2['getAttribute'](_0x2e3ea0)-0x1,_0x1d9525=_0x22deda[_0x48166f],_0x2cb0ec=_0x22deda[_0x2c322a];_0x1d9525<=_0x2341f3[_0x252bf0]&&_0x2341f3[_0x252bf0]+_0x384d80<=_0x2cb0ec&&_0x5b490c['addRange'](_0x18af6a);}}});});}function _0x5a1189(_0x4887cb){const _0x3f326a=Array['from'](_0x28a4f3['getRanges']())['map'](_0x48bd6a=>_0x270875['fromRange'](_0x48bd6a));_0x2b8b97['model']['change'](_0x5c45e7=>{const _0x556ba4=_0x5c45e7['batch'];_0x4887cb=_0x4887cb['filter'](_0x25de87=>'$graveyard'!=_0x25de87['root']['rootName']),_0x5c45e7['setSelection'](_0x4887cb),_0x2b8b97['commands']['get']('removeTableRow')['refresh'](),_0x2b8b97['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2b8b97['model']['enqueueChange'](()=>{_0x2b8b97['model']['enqueueChange'](_0x556ba4,_0x590318=>{const _0x552ce9=_0x3f326a['filter'](_0x40d55b=>'$graveyard'!=_0x40d55b['root']['rootName']);_0x552ce9['length']>0x0&&_0x590318['setSelection'](_0x552ce9);for(const _0x488884 of _0x3f326a)_0x488884['detach']();});});});}function _0xbd240(_0x8c630d){_0x2b8b97['model']['change'](_0x1efa54=>{const _0x4d272c=Array['from'](_0x28a4f3['getRanges']())['map'](_0x39ba39=>_0x270875['fromRange'](_0x39ba39)),_0x284932=[];for(const _0x48cfdb of _0x8c630d)for(const _0xb921eb of _0x48cfdb['getItems']({'shallow':!0x0}))_0x284932['push'](_0xb921eb);for(const _0x12b86f of _0x284932)'$graveyard'!=_0x12b86f['root']['rootName']&&(_0x1efa54['setSelection'](_0x1efa54['createPositionAt'](_0x12b86f,0x0)),_0x2b8b97['commands']['get']('removeTableColumn')['refresh'](),_0x2b8b97['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1e12d4=_0x4d272c['filter'](_0x13a994=>'$graveyard'!=_0x13a994['root']['rootName']);_0x1e12d4['length']>0x0&&_0x1efa54['setSelection'](_0x1e12d4);for(const _0x40f84b of _0x4d272c)_0x40f84b['detach']();});}function _0x5218cb(_0x3a6687,_0x1be32e){return _0x1be32e['every'](_0x397400=>_0x3a6687['some'](_0x441eaa=>_0x441eaa['end']['isEqual'](_0x397400['start'])||_0x397400['end']['isEqual'](_0x441eaa['start'])));}function _0x5a5601(_0x4f4b2f,_0x81928c){return!_0x4f4b2f['some'](_0x32ca74=>_0x81928c['some'](_0x5ac26c=>_0x32ca74['isIntersecting'](_0x5ac26c)))&&_0x4f4b2f['some'](_0x240df0=>_0x81928c['some'](_0x2985e7=>_0x240df0['end']['isTouching'](_0x2985e7['start'])));}_0x2b8b97['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe52952,_0x38f5d1,_0x31e542)=>{if(!_0x31e542['options']['showSuggestionHighlights'])return;const _0x42b560=_0x38f5d1['item'];if(!_0x42b560)return;const _0x16d41e=_0x31e542['mapper']['toViewElement'](_0x42b560);function _0x2784c9(_0x79da86){return Array['isArray'](_0x79da86)?_0x79da86:[_0x79da86];}_0x16d41e&&'tableCell'===_0x42b560['name']&&_0x59cb79(_0x16d41e,_0x31e542['writer'],(_0x3a81e6,_0x7ebe,_0x1dde23)=>_0x1dde23['addClass'](_0x2784c9(_0x7ebe['classes']),_0x3a81e6),(_0x169683,_0xafbc8,_0x37d536)=>_0x37d536['removeClass'](_0x2784c9(_0xafbc8['classes']),_0x169683));},{'priority':'highest'}),_0x51b2b3['descriptionFactory']['registerDescriptionCallback'](_0xdf2297=>{if('insertion'!=_0xdf2297['type']&&'deletion'!=_0xdf2297['type'])return;const _0x144c6d=_0xdf2297['getContainedElement']();if(null!=_0x144c6d&&_0x144c6d['is']('element','table')){if('insertion'==_0xdf2297['type']){const _0x3ebe53=_0xdf2297['getItems']()['filter'](_0x17c006=>_0x17c006['is']('$textProxy'))['map'](_0x328ab3=>_0x328ab3['data']);if(_0x3ebe53['length'])return{'type':'insertion','content':o(_0x3992d5,'*Insert:*\x20%0',o(_0x3992d5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ebe53['join']('\x20')+'\x22'))};}if('deletion'==_0xdf2297['type']){const _0x3d4da3=_0xdf2297['getItems']()['filter'](_0x44eef5=>_0x44eef5['is']('$textProxy'))['map'](_0x5aa505=>_0x5aa505['data']);if(_0x3d4da3['length'])return{'type':'deletion','content':o(_0x3992d5,'*Remove:*\x20%0',o(_0x3992d5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3d4da3['join']('\x20')+'\x22'))};}}}),_0x51b2b3['descriptionFactory']['registerDescriptionCallback'](_0x3386a6=>{if('tableRow'==_0x3386a6['subType']){const _0x3fc433=_0x3386a6['getItems']()['filter'](_0x1fc09b=>_0x1fc09b['is']('$textProxy'))['map'](_0x41c8e3=>_0x41c8e3['data']),_0x486d16=this['_getSuggestionCoords'](_0x3386a6),_0x1c438f=_0x486d16['maxRow']-_0x486d16['minRow']+0x1;if('insertion'==_0x3386a6['type'])return _0x3fc433['length']?{'type':'insertion','content':o(_0x3992d5,'*Insert:*\x20%0',o(_0x3992d5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c438f,'\x22'+_0x3fc433['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3992d5,'*Insert:*\x20%0',o(_0x3992d5,'ELEMENT_TABLE_ROW',_0x1c438f))};if('deletion'==_0x3386a6['type'])return _0x3fc433['length']?{'type':'deletion','content':o(_0x3992d5,'*Remove:*\x20%0',o(_0x3992d5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c438f,'\x22'+_0x3fc433['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3992d5,'*Remove:*\x20%0',o(_0x3992d5,'ELEMENT_TABLE_ROW',_0x1c438f))};}if('tableColumn'==_0x3386a6['subType']){const _0x449079=_0x3386a6['getItems']()['filter'](_0x555c5d=>_0x555c5d['is']('$textProxy'))['map'](_0x18bc6b=>_0x18bc6b['data']),_0x21a98d=this['_getSuggestionCoords'](_0x3386a6),_0xb39153=_0x21a98d['maxColumn']-_0x21a98d['minColumn']+0x1;if('insertion'==_0x3386a6['type'])return _0x449079['length']?{'type':'insertion','content':o(_0x3992d5,'*Insert:*\x20%0',o(_0x3992d5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xb39153,'\x22'+_0x449079['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3992d5,'*Insert:*\x20%0',o(_0x3992d5,'ELEMENT_TABLE_COLUMN',_0xb39153))};if('deletion'==_0x3386a6['type'])return _0x449079['length']?{'type':'deletion','content':o(_0x3992d5,'*Remove:*\x20%0',o(_0x3992d5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xb39153,'\x22'+_0x449079['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3992d5,'*Remove:*\x20%0',o(_0x3992d5,'ELEMENT_TABLE_COLUMN',_0xb39153))};}}),_0x51b2b3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5a1189),_0x51b2b3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5a1189),_0x51b2b3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xbd240),_0x51b2b3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xbd240),_0x51b2b3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5218cb),_0x51b2b3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5218cb),_0x51b2b3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5a5601),_0x51b2b3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5a5601);}['_acceptFormatSuggestionCallbackFactory'](){const _0x30a87d=this['editor'],_0x5042f6=_0x30a87d['model']['document']['selection'];return(_0x3f2227,_0x2eae07)=>{_0x30a87d['model']['change'](_0x2b15fa=>{const {commandName:_0x4303cc,commandParams:_0x1cb8a5}=_0x2eae07;let _0x22ce8b=_0x3f2227[0x0]['end']['nodeBefore'];_0x1cb8a5&&_0x1cb8a5[0x0]&&!0x1===_0x1cb8a5[0x0]['forceValue']&&(_0x22ce8b=_0x3f2227[0x0]['start']['nodeAfter']);const _0x21dcdb=_0x2b15fa['createRangeIn'](_0x22ce8b);if('$graveyard'==_0x21dcdb['root']['rootName'])return;const _0x5b6bc4=Array['from'](_0x5042f6['getRanges']())['map'](_0x52242b=>_0x270875['fromRange'](_0x52242b));_0x2b15fa['setSelection'](_0x21dcdb),_0x30a87d['commands']['get'](_0x4303cc)['refresh'](),_0x1cb8a5['push']({'forceDefaultExecution':!0x0}),_0x30a87d['execute'](_0x4303cc,..._0x1cb8a5);const _0x4bae65=_0x5b6bc4['filter'](_0x38070f=>'$graveyard'!=_0x38070f['root']['rootName']);_0x4bae65['length']>0x0&&_0x2b15fa['setSelection'](_0x4bae65);for(const _0x5abdb7 of _0x5b6bc4)_0x5abdb7['detach']();});};}['_getCoordsForCells'](_0x24edb3){const _0x6da3b7=this['editor']['plugins']['get']('TableUtils');let _0x29f751=Number['MAX_SAFE_INTEGER'],_0x19d489=Number['MIN_SAFE_INTEGER'],_0x477e22=Number['MAX_SAFE_INTEGER'],_0x38992b=Number['MIN_SAFE_INTEGER'];for(const _0x4263e9 of _0x24edb3){if('$graveyard'==_0x4263e9['root']['rootName'])continue;const {row:_0x3e186b,column:_0x3c8042}=_0x6da3b7['getCellLocation'](_0x4263e9),_0x4aa36a=_0x4263e9['hasAttribute']('rowspan')?_0x4263e9['getAttribute']('rowspan')-0x1:0x0,_0x264666=_0x4263e9['hasAttribute']('colspan')?_0x4263e9['getAttribute']('colspan')-0x1:0x0;_0x29f751=_0x3e186b<_0x29f751?_0x3e186b:_0x29f751,_0x19d489=_0x3e186b+_0x4aa36a>_0x19d489?_0x3e186b+_0x4aa36a:_0x19d489,_0x477e22=_0x3c8042<_0x477e22?_0x3c8042:_0x477e22,_0x38992b=_0x3c8042+_0x264666>_0x38992b?_0x3c8042+_0x264666:_0x38992b;}return{'minRow':_0x29f751,'maxRow':_0x19d489,'minColumn':_0x477e22,'maxColumn':_0x38992b};}['_setupColumnsRowsFixing'](){const _0x13b555=this['editor'],_0x36c37b=_0x13b555['plugins']['get']('TrackChangesEditing'),_0x438b46=_0x13b555['plugins']['get']('TableUtils');_0x13b555['model']['document']['on']('change:data',()=>{const _0x1c91fb=Array['from'](_0x13b555['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2287fe,data:_0x42664a}of _0x1c91fb){const {group:_0x1e41b1,id:_0x4154ff,subType:_0x37f9a6}=_0x36c37b['_splitMarkerName'](_0x2287fe);if('suggestion'!=_0x1e41b1)continue;if(null!=_0x42664a['oldRange'])continue;const _0x44022d=_0x36c37b['getSuggestion'](_0x4154ff);this['_tablePostFixingSubtypes']['includes'](_0x37f9a6)&&this['_tableSuggestions']['add'](_0x44022d);}},{'priority':'low'});const _0x265ee9=(_0x1e2f21,_0x20796b)=>{let _0x51d1ab=!0x1;const _0x2f71f4=_0x20796b['createRangeOn'](_0x1e2f21),_0x22e62a=_0x1e2f21['findAncestor']('table'),_0x45e1f4=_0x438b46['getCellLocation'](_0x1e2f21);for(const _0x4d7f24 of this['_tableSuggestions']){const _0x26ac48=_0x4d7f24['subType'],_0x5bd257=_0x26ac48['startsWith']('tablePaste'),_0x47727f=_0x26ac48['substr'](_0x5bd257?0xa:0x5),_0x4e0cde=_0x47727f['toLowerCase'](),_0x5ab4d4=_0x4e0cde['substr'](0x0,0x3)+'span',_0x17c715='min'+_0x47727f,_0x165fb5='max'+_0x47727f;if(!_0x4d7f24['isInContent'])continue;if(_0x22e62a!=_0x4d7f24['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4d7f24['isIntersectingWithRange'](_0x2f71f4))continue;const _0x49503b=_0x1e2f21['hasAttribute'](_0x5ab4d4)?_0x1e2f21['getAttribute'](_0x5ab4d4)-0x1:0x0,_0x514ce7=this['_getSuggestionCoords'](_0x4d7f24),_0x5959e3=_0x514ce7[_0x17c715],_0x516c3c=_0x514ce7[_0x165fb5];_0x5959e3<=_0x45e1f4[_0x4e0cde]&&_0x45e1f4[_0x4e0cde]+_0x49503b<=_0x516c3c&&(_0x4d7f24['addRange'](_0x2f71f4),_0x51d1ab=!0x0);}return _0x51d1ab;};_0x13b555['model']['document']['registerPostFixer'](_0x2551e4=>{let _0x176dc6=!0x1;for(const _0x5d7766 of _0x13b555['model']['document']['differ']['getChanges']())if('insert'==_0x5d7766['type']){if('tableRow'==_0x5d7766['name']){for(const _0x3adc10 of _0x5d7766['position']['nodeAfter']['getChildren']())_0x176dc6=_0x176dc6||_0x265ee9(_0x3adc10,_0x2551e4);}else'tableCell'==_0x5d7766['name']&&(_0x176dc6=_0x176dc6||_0x265ee9(_0x5d7766['position']['nodeAfter'],_0x2551e4));}return _0x176dc6;});}['_getSuggestionCoords'](_0x28f267){return this['_getCoordsForCells'](_0x28f267['getRanges']()['map'](_0x536bfe=>_0x536bfe['start']['nodeAfter']));}}function Ee(_0x2e0599){return Array['from'](new Set(_0x2e0599)['values']());}class St extends _0x2abede{static get['requires'](){return[jt];}['afterInit'](){const _0x37241e=this['editor'],_0x59c847=_0x37241e['model']['document']['selection'],_0x411e5e=_0x37241e['locale'];if(!_0x37241e['plugins']['has']('TableEditing'))return;const _0x939811=_0x37241e['plugins']['get']('TrackChangesEditing'),_0x476b88=_0x37241e['plugins']['get']('TableUtils'),_0xc2f1d7=_0x37241e['plugins']['get'](jt);_0xc2f1d7['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x939811['enableCommand']('mergeTableCells',()=>{const _0x1f9190=_0x476b88['getSelectionAffectedTableCells'](_0x37241e['model']['document']['selection']);_0x37241e['model']['change'](()=>{_0x939811['markMultiRangeBlockFormat'](_0x1f9190,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x37241e['commands']['get']('mergeTableCells')['on']('execute',(_0x5496a4,_0x143818)=>{_0x37241e['commands']['get']('trackChanges')['value']&&(_0x143818['length']>0x0&&_0x143818[_0x143818['length']-0x1]&&_0x143818[_0x143818['length']-0x1]['forceDefaultExecution']||_0x939811['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5496a4['stop']());},{'priority':'highest'});for(const _0x2b7cc2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x363210=_0x37241e['commands']['get'](_0x2b7cc2);_0x939811['enableCommand'](_0x2b7cc2,()=>{const _0x9618ca=_0x37241e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x318dcc=>_0x318dcc['is']('element','tableCell')),_0x515e7e=_0x363210['value'];_0x37241e['model']['change'](()=>{_0x939811['markMultiRangeBlockFormat']([_0x9618ca,_0x515e7e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x367d5e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x497a63=_0x37241e['commands']['get'](_0x367d5e);_0x939811['enableCommand'](_0x367d5e,()=>{const _0x3092bb=_0x476b88['getSelectionAffectedTableCells'](_0x37241e['model']['document']['selection'])[0x0],_0x102a30=_0x3092bb['findAncestor']('table'),{column:_0x507c29,row:_0x212b2b}=_0x476b88['getCellLocation'](_0x3092bb);let _0x183523=[];if('horizontally'==_0x497a63['direction']){const _0x110a2a=_0x476b88['createTableWalker'](_0x102a30,{'startRow':_0x212b2b,'endRow':_0x212b2b,'includeAllSlots':!0x0});_0x183523=Array['from'](_0x110a2a)['map'](_0x57b515=>_0x57b515['cell']);}else{const _0x396091=_0x476b88['createTableWalker'](_0x102a30,{'column':_0x507c29,'includeAllSlots':!0x0});_0x183523=Array['from'](_0x396091)['map'](_0x14b145=>_0x14b145['cell']);}_0x37241e['model']['change'](_0x4816f0=>{_0x939811['markBlockFormat'](_0x4816f0['createRangeOn'](_0x3092bb),{'commandName':_0x367d5e,'commandParams':[]},_0x183523,_0x367d5e);});});}_0x939811['descriptionFactory']['registerDescriptionCallback'](_0x597dc2=>{if('formatBlock'!=_0x597dc2['type']&&'formatInline'!=_0x597dc2['type'])return;const {data:_0x3c15da}=_0x597dc2;return _0x3c15da&&'mergeTableCells'==_0x3c15da['commandName']?{'type':'format','content':o(_0x411e5e,'*Merge\x20cells*')}:void 0x0;}),_0x939811['descriptionFactory']['registerDescriptionCallback'](_0x507348=>{if('formatBlock'!=_0x507348['type']&&'formatInline'!=_0x507348['type'])return;const {data:_0x383f75}=_0x507348;return _0x383f75?'splitTableCellVertically'==_0x383f75['commandName']?{'type':'format','content':o(_0x411e5e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x383f75['commandName']?{'type':'format','content':o(_0x411e5e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x397702=_0xc2f1d7['_acceptFormatSuggestionCallbackFactory']();for(const _0x1fe272 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x939811['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fe272,'accept',_0x397702);for(const _0xe1afcc of['splitTableCellVertically','splitTableCellHorizontally'])_0x939811['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe1afcc,'accept',_0x397702);_0x939811['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3e4ec5=>{_0x37241e['model']['change'](_0x46c944=>{const _0x9b31b5=Array['from'](_0x59c847['getRanges']())['map'](_0x103625=>_0x270875['fromRange'](_0x103625));_0x46c944['setSelection'](_0x3e4ec5),_0x37241e['commands']['get']('mergeTableCells')['refresh'](),_0x37241e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1de1b5=_0x9b31b5['filter'](_0x3f52d8=>'$graveyard'!=_0x3f52d8['root']['rootName']);_0x1de1b5['length']>0x0&&_0x46c944['setSelection'](_0x1de1b5);for(const _0x1fb3eb of _0x9b31b5)_0x1fb3eb['detach']();});});for(const _0x8ceb25 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4ac5c7=_0x37241e['commands']['get'](_0x8ceb25);_0x4ac5c7['on']('set:isEnabled',(_0x4c6eb2,_0x1da668,_0x3f2af2)=>{if(_0x3f2af2){const _0x1f98dd=_0x37241e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x280269=>_0x280269['is']('element','tableCell'));this['_areMergableCells'](_0x4ac5c7['value'],_0x1f98dd)||(_0x4c6eb2['return']=!0x1,_0x4c6eb2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1ff1ce=this['editor']['commands']['get']('mergeTableCells'),_0x40dd26=this['editor']['plugins']['get']('TableUtils');if(!_0x1ff1ce['isEnabled'])return!0x1;const _0x436cd8=_0x40dd26['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x208471 of _0x436cd8)for(const _0x2b3232 of _0x436cd8)if(_0x208471!=_0x2b3232&&!this['_areMergableCells'](_0x208471,_0x2b3232))return!0x1;return!0x0;}['_areMergableCells'](_0x729c27,_0x522a6e){const _0x42bb5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcce736=this['editor']['model']['createRangeOn'](_0x729c27),_0x5c4c32=this['editor']['model']['createRangeOn'](_0x522a6e),_0x39e23a=new Set(),_0x5ba0fa=new Set();for(const _0x1b34fb of _0x42bb5a['getSuggestions']())if(('insertion'==_0x1b34fb['type']||'deletion'==_0x1b34fb['type']||'mergeTableCells'==_0x1b34fb['subType'])&&_0x1b34fb['isInContent']){for(const _0x5da364 of _0x1b34fb['getRanges']())_0x5da364['containsRange'](_0xcce736,!0x0)&&_0x39e23a['add'](_0x1b34fb['type']+':'+_0x1b34fb['author']['id']),_0x5da364['containsRange'](_0x5c4c32,!0x0)&&_0x5ba0fa['add'](_0x1b34fb['type']+':'+_0x1b34fb['author']['id']);}if(_0x39e23a['size']!=_0x5ba0fa['size'])return!0x1;for(const _0xaf24d1 of _0x39e23a)if(!_0x5ba0fa['has'](_0xaf24d1))return!0x1;return!0x0;}}class At extends _0x2abede{static get['requires'](){return[jt];}['afterInit'](){const _0x36e504=this['editor'];if(!_0x36e504['plugins']['has']('TableEditing'))return;const _0x2298f4=_0x36e504['locale'],_0x5e5b18=_0x36e504['plugins']['get']('TrackChangesEditing');_0x5e5b18['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e5b18['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e5b18['registerBlockAttribute']('headingRows'),_0x5e5b18['registerBlockAttribute']('headingColumns'),_0x5e5b18['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2298f4,'FORMAT_HEADER_ROW')),_0x5e5b18['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2298f4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe6c41c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39b985=this['editor']['plugins']['get']('TableUtils'),_0x3f5491=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0xd7cd1e({showActiveMarker:_0x32e525=!0x0,setDataAttribute:_0x2e5f95=!0x0}={}){return(_0x35e8f5,_0x2e603d,_0x2d7f09)=>{const {type:_0x1fff47,id:_0x387658}=_0xe6c41c['_splitMarkerName'](_0x2e603d['markerName']),_0x56f4ef=_0xe6c41c['getSuggestion'](_0x387658),_0x3fc057=_0x56f4ef['data'];if('formatBlock'!=_0x56f4ef['type']||!_0x3fc057||'setTableColumnHeader'!=_0x3fc057['commandName'])return;if(_0x2e603d['item'])return void _0x35e8f5['stop']();if(!_0x2d7f09['consumable']['consume'](_0x2e603d['markerRange'],_0x35e8f5['name']))return;const _0x45613d=_0x2e603d['markerRange']['start']['nodeAfter'],_0x3a7792=_0x2e603d['markerRange']['end']['nodeBefore'],_0x17de8f=_0x45613d['parent']['parent'],{column:_0x1c6959}=_0x39b985['getCellLocation'](_0x45613d),{column:_0x44df94}=_0x39b985['getCellLocation'](_0x3a7792);for(let _0x150a4e=_0x1c6959;_0x150a4e<=_0x44df94;_0x150a4e++){const _0x3618d4=_0x39b985['createTableWalker'](_0x17de8f,{'column':_0x150a4e,'includeAllSlots':!0x1});for(const _0x8c3586 of _0x3618d4){const _0x2c695d=_0x8c3586['cell'],_0x397727=_0x2d7f09['mapper']['toViewElement'](_0x2c695d);_0x2d7f09['writer']['addClass']('ck-suggestion-marker-'+_0x1fff47,_0x397727),_0x2e5f95&&_0x2d7f09['writer']['setAttribute']('data-suggestion',_0x387658,_0x397727),_0x2d7f09['mapper']['bindElementToMarker'](_0x397727,_0x2e603d['markerName']),_0x32e525&&(_0xe6c41c['activeMarkers']['includes'](_0x2e603d['markerName'])?_0x2d7f09['writer']['addClass']('ck-suggestion-marker--active',_0x397727):_0x2d7f09['writer']['removeClass']('ck-suggestion-marker--active',_0x397727));}}};}_0xe6c41c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3f5491),_0xe6c41c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3f5491),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xd7cd1e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d415d,_0x246cad,_0x1e4e83)=>{_0x1e4e83['options']['showSuggestionHighlights']&&_0xd7cd1e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2d415d,_0x246cad,_0x1e4e83);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x122392,_0x280923,_0x46070b)=>{const {type:_0x4c3631,id:_0x370627}=_0xe6c41c['_splitMarkerName'](_0x280923['markerName']),_0x2439c0=_0xe6c41c['getSuggestion'](_0x370627),_0x501379=_0x2439c0['data'];if('formatBlock'!=_0x2439c0['type']||!_0x501379||'setTableColumnHeader'!=_0x501379['commandName'])return;const _0x14ff59=_0x46070b['mapper']['markerNameToElements'](_0x280923['markerName']);if(_0x14ff59){for(const _0x17891d of _0x14ff59)_0x46070b['writer']['removeClass']('ck-suggestion-marker-'+_0x4c3631,_0x17891d),_0x46070b['writer']['removeClass']('ck-suggestion-marker--active',_0x17891d),_0x46070b['writer']['removeAttribute']('data-suggestion',_0x17891d),_0x46070b['mapper']['unbindElementFromMarkerName'](_0x17891d,_0x280923['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3313f5=this['editor'],_0x7bb161=_0x3313f5['locale'];function _0x5c5834(_0x19ffa0){return{'type':'format','content':o(_0x7bb161,'*Format:*\x20%0',_0x19ffa0)};}_0x3313f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43c8b5=>{if('formatBlock'!=_0x43c8b5['type'])return;const {data:_0x1fa3da}=_0x43c8b5;if(_0x1fa3da){if('setTableRowHeader'==_0x1fa3da['commandName']){const _0x3b9a80=_0x1fa3da['commandParams'][0x0]['forceValue'];return _0x5c5834(o(_0x7bb161,_0x3b9a80?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1fa3da['commandName']){const _0x176287=_0x1fa3da['commandParams'][0x0]['forceValue'];return _0x5c5834(o(_0x7bb161,_0x176287?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0xb1d941=>[_0xb1d941,null]));class It extends _0x2abede{static get['requires'](){return[jt];}['afterInit'](){const _0x212cb2=this['editor'];if(!_0x212cb2['plugins']['has']('TableClipboard'))return;const _0x4a90fe=_0x212cb2['plugins']['get']('TrackChangesEditing'),_0x2ac918=_0x212cb2['plugins']['get']('TableUtils'),_0x7581da=_0x212cb2['plugins']['get'](jt),_0x30a2c7=_0x212cb2['plugins']['get']('TableClipboard');_0x7581da['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x212cb2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x212cb2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe40c46=null;_0x212cb2['model']['on']('insertContent',(_0x3435cf,_0x74b0b0)=>{const [_0x4ec6b1,_0x510d92]=_0x74b0b0,_0x21475c=_0x74b0b0[_0x74b0b0['length']-0x1];_0x21475c&&_0x21475c['forceDefaultExecution']||_0x4a90fe['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x452efc,_0x4bcdcd,_0x130bd5,_0x3961c5,_0x1eed5f){if(_0x4bcdcd&&!_0x4bcdcd['is']('documentSelection'))return!0x1;const _0x5a926b=_0x1eed5f['getTableIfOnlyTableInContent'](_0x452efc,_0x130bd5);if(!_0x5a926b||!he(_0x5a926b,void 0x0,_0x3961c5))return!0x1;const _0x778306=_0x3961c5['getSelectionAffectedTableCells'](_0x130bd5['document']['selection']);if(!_0x778306['length'])return!0x1;const _0x3e114a=_0x778306[0x0]['findAncestor']('table'),_0x10f2e2=_0x3961c5['getRowIndexes'](_0x778306),_0x1dc4df=_0x3961c5['getColumnIndexes'](_0x778306),_0x16acb2={'startRow':_0x10f2e2['first'],'endRow':_0x10f2e2['last'],'startColumn':_0x1dc4df['first'],'endColumn':_0x1dc4df['last']};return 0x1==_0x778306['length']&&(_0x16acb2['endRow']+=_0x3961c5['getRows'](_0x5a926b)-0x1,_0x16acb2['endColumn']+=_0x3961c5['getColumns'](_0x5a926b)-0x1),he(_0x3e114a,_0x16acb2,_0x3961c5);}(_0x4ec6b1,_0x510d92,_0x212cb2['model'],_0x2ac918,_0x30a2c7)&&(_0x3435cf['stop'](),_0xe40c46={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x212cb2['model']['change'](()=>{_0x212cb2['model']['insertContent'](_0x74b0b0[0x0],_0x74b0b0[0x1],_0x74b0b0[0x2],{'forceDefaultExecution':!0x0});const _0x38b08b=_0x2fdaf0(),{rowInsertionRanges:_0x384fce,columnInsertionRanges:_0x276415,insertionRanges:_0x1fadf4,deletionRanges:_0x803b04,cells:_0x53ae56}=_0xe40c46;_0x384fce['length']&&_0x4a90fe['markMultiRangeInsertion'](_0x384fce,'tablePasteRow',{'tablePasteChainId':_0x38b08b}),_0x276415['length']&&_0x4a90fe['markMultiRangeInsertion'](_0x276415,'tablePasteColumn',{'tablePasteChainId':_0x38b08b}),_0x1fadf4['length']&&(_0x4a90fe['markMultiRangeInsertion'](_0x1fadf4,'tablePaste',{'tablePasteChainId':_0x38b08b,'skipNestingCheck':!0x0}),_0x1fadf4['forEach'](_0x56f843=>_0x56f843['detach']?.())),_0x803b04['length']&&(_0x4a90fe['markMultiRangeDeletion'](_0x803b04,'tablePaste',{'tablePasteChainId':_0x38b08b,'skipNestingCheck':!0x0}),_0x803b04['forEach'](_0x6bb63c=>_0x6bb63c['detach']?.()));const _0x303b9e=_0x4a90fe['markMultiRangeBlockFormat'](_0x53ae56['map'](({element:_0x4a7345})=>_0x4a7345),{'formatGroupId':_0x2fdaf0()},[],'tablePasteCell',{'tablePasteChainId':_0x38b08b});if(_0x303b9e){const _0x2df93e=_0x303b9e['getMarkers'](),_0x1321e6=[];for(const {element:_0x546d15,attributes:_0x31dcba}of _0x53ae56){if(!_0x31dcba)continue;const _0x5b3496=_0x212cb2['model']['createRangeOn'](_0x546d15),_0x1d8823=_0x2df93e['find'](_0xee245f=>_0xee245f['getRange']()['isEqual'](_0x5b3496));_0x1d8823&&_0x1321e6['push']([_0x1d8823['name'],_0x31dcba]);}_0x1321e6['length']&&_0x303b9e['setAttribute']('markerAttributes',Object['fromEntries'](_0x1321e6));}_0xe40c46=null;}));},{'priority':_0x56b08f['high']+0xa}),_0x212cb2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x226fa9,_0x1b265b)=>{const [_0x533a83,_0x239801,,_0xe95d18]=_0x1b265b;if(!_0xe40c46)return;_0x226fa9['stop']();const _0x4cf1c2=_0x533a83['cell'],_0x2d7e4c=_0x239801,_0x50312d=Pe(_0x4cf1c2),_0xbc3984=Pe(_0x2d7e4c);_0x226fa9['return']=_0x4cf1c2;let _0x32b92e=null,_0x9c7bf2=null;if(_0xbc3984||_0x50312d){if(_0x50312d&&!_0xbc3984){_0xe95d18['remove'](_0x4cf1c2['getChild'](0x0));for(const _0x3f1722 of Array['from'](_0x2d7e4c['getChildren']()))_0xe95d18['insert'](_0x3f1722,_0x4cf1c2,'end');const _0x1c9d94=_0xe40c46['rowInsertionIndexes']['includes'](_0x533a83['row']),_0x3d011d=_0xe40c46['columnInsertionIndexes']['includes'](_0x533a83['column']);_0x1c9d94||_0x3d011d||(_0x32b92e=_0x270875['fromRange'](_0xe95d18['createRangeIn'](_0x4cf1c2)));}else _0xbc3984&&!_0x50312d&&(_0x9c7bf2=_0xe95d18['createRangeIn'](_0x4cf1c2));}else{const _0x1d3083=_0xe95d18['createElement']('tableCellSuggestion'),_0xeed1c0=_0xe95d18['createElement']('tableCellSuggestion');_0xe95d18['wrap'](_0xe95d18['createRangeIn'](_0x4cf1c2),_0xeed1c0),_0xe95d18['insert'](_0x1d3083,_0x4cf1c2,0x0);for(const _0x13a4c2 of Array['from'](_0x2d7e4c['getChildren']()))_0xe95d18['insert'](_0x13a4c2,_0x1d3083,'end');_0x32b92e=_0x270875['fromRange'](_0xe95d18['createRangeOn'](_0x1d3083)),_0x9c7bf2=_0x270875['fromRange'](_0xe95d18['createRangeOn'](_0xeed1c0));}const _0x49a896=Array['from'](_0x2d7e4c['getAttributes']())['filter'](([_0x2e28d4])=>ge['includes'](_0x2e28d4));_0xe40c46['cells']['push']({'element':_0x4cf1c2,'attributes':_0x49a896['length']?Object['fromEntries'](_0x49a896):null}),_0x32b92e&&_0xe40c46['insertionRanges']['push'](_0x32b92e),_0x9c7bf2&&_0xe40c46['deletionRanges']['push'](_0x9c7bf2);},{'priority':'high'}),_0x2ac918['on']('insertColumns',(_0x2139c2,_0x175886)=>{const [_0xd7bb55,_0x58ca53={}]=_0x175886;if(!_0xe40c46)return;const _0x224e96=_0x58ca53['at']||0x0,_0x53768e=_0x58ca53['columns']||0x1;_0xe40c46['columnInsertionIndexes']=new Array(_0x53768e)['fill'](_0x224e96)['map']((_0x3a0062,_0x30f71e)=>_0x3a0062+_0x30f71e);for(const {cell:_0x52b025}of _0x2ac918['createTableWalker'](_0xd7bb55,{'startColumn':_0x224e96,'endColumn':_0x224e96+_0x53768e-0x1}))_0xe40c46['columnInsertionRanges']['push'](_0x212cb2['model']['createRangeOn'](_0x52b025));},{'priority':'low'}),_0x2ac918['on']('insertRows',(_0x5b0c94,_0x1edea5)=>{const [_0x11060c,_0x1cbb8f={}]=_0x1edea5;if(!_0xe40c46)return;const _0xff874e=_0x1cbb8f['at']||0x0,_0x2bd05c=_0x1cbb8f['rows']||0x1;_0xe40c46['rowInsertionIndexes']=new Array(_0x2bd05c)['fill'](_0xff874e)['map']((_0x2356f7,_0x46e168)=>_0x2356f7+_0x46e168);for(const {cell:_0x261af8}of _0x2ac918['createTableWalker'](_0x11060c,{'startRow':_0xff874e,'endRow':_0xff874e+_0x2bd05c-0x1}))_0xe40c46['rowInsertionRanges']['push'](_0x212cb2['model']['createRangeOn'](_0x261af8));},{'priority':'low'}),_0x4a90fe['descriptionFactory']['registerDescriptionCallback'](_0x5965d9=>{if(_0x5965d9['subType']&&_0x5965d9['subType']['startsWith']('tablePaste'))return _0x5965d9['previous']?{}:{'type':'insertion','content':o(_0x212cb2['locale'],'*Replace\x20table\x20cells*')};});const _0x527607=()=>!0x1;for(const _0x509e31 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4a90fe['_suggestionFactory']['registerCustomCallback']('insertion',_0x509e31,'join',_0x527607),_0x4a90fe['_suggestionFactory']['registerCustomCallback']('deletion',_0x509e31,'join',_0x527607),_0x4a90fe['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x509e31,'join',_0x527607);_0x4a90fe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x527607),_0x4a90fe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x140fce,_0x3ac954,_0x160e5e)=>{const _0x45965a=_0x140fce['map'](_0xecb49f=>_0xecb49f['getContainedElement']())['filter'](_0x330e08=>_0x330e08),_0x2c603b=new Map(_0x45965a['map'](_0xe2d66a=>[_0xe2d66a,null]));if(_0xe40c46){for(const {element:_0x58805f,attributes:_0x42491d}of _0xe40c46['cells'])_0x42491d&&_0x2c603b['set'](_0x58805f,_0x42491d);}else{if(_0x160e5e&&_0x160e5e['markerAttributes'])for(const [_0x3eaf1a,_0x13f244]of Object['entries'](_0x160e5e['markerAttributes'])){const _0x27414e=_0x212cb2['model']['markers']['get'](_0x3eaf1a),_0x41b0b2=_0x27414e?_0x27414e['getRange']()['getContainedElement']():null;_0x41b0b2&&_0x2c603b['set'](_0x41b0b2,_0x13f244);}}_0x212cb2['model']['change'](_0x46cd53=>{for(const [_0x37d68d,_0x43f93e]of _0x2c603b)_0x46cd53['setAttributes']({...Ce,..._0x43f93e},_0x37d68d);});});const _0x2ab23e=(_0x3b87e7,_0x312515)=>{_0x4a90fe['_suggestionFactory']['registerCustomCallback'](_0x3b87e7,'tablePaste',_0x312515,(_0x339a86,_0x4ab799,_0x31bec4)=>{_0x212cb2['model']['change'](_0x13d698=>{const _0x4dcd7a=[];for(const _0xd5eb81 of _0x339a86){const _0x2c544a=_0xd5eb81['start']['nodeAfter'];_0x2c544a['is']('element','tableCellSuggestion')&&_0x4dcd7a['push'](_0x2c544a);}_0x4a90fe['_suggestionFactory']['getSuggestionCallback'](_0x3b87e7,null,_0x312515)(_0x339a86,_0x4ab799,_0x31bec4);for(const _0x395b8b of _0x4dcd7a)'$graveyard'!=_0x395b8b['root']['rootName']&&_0x13d698['unwrap'](_0x395b8b);});});};_0x2ab23e('insertion','accept'),_0x2ab23e('insertion','discard'),_0x2ab23e('deletion','accept'),_0x2ab23e('deletion','discard'),_0x4a90fe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x13f2f5=>{const _0x19846=_0x13f2f5['map'](_0x466be8=>_0x466be8['getContainedElement']()),_0x176936=_0x19846[0x0]['findAncestor']('table'),{minRow:_0x43eedb,maxRow:_0x3806a4}=_0x7581da['_getCoordsForCells'](_0x19846);_0x2ac918['removeRows'](_0x176936,{'at':_0x43eedb,'rows':_0x3806a4-_0x43eedb+0x1});}),_0x4a90fe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x224ccb=>{const _0x582969=_0x224ccb['map'](_0x2a1d75=>_0x2a1d75['getContainedElement']()),_0x2f06b6=_0x582969[0x0]['findAncestor']('table'),{minColumn:_0x133a8d,maxColumn:_0x474c8d}=_0x7581da['_getCoordsForCells'](_0x582969);_0x2ac918['removeColumns'](_0x2f06b6,{'at':_0x133a8d,'columns':_0x474c8d-_0x133a8d+0x1});});const _0x3265ca=(_0x55b593,_0x59448d)=>{if(!_0x59448d['subType']||!_0x59448d['subType']['startsWith']('tablePaste'))return;const _0x5364bf=_0x59448d['attributes']['tablePasteChainId'],_0x3eed93=_0x4a90fe['getSuggestions']()['filter'](_0x357019=>_0x357019['isInContent']&&_0x357019['attributes']&&_0x357019['attributes']['tablePasteChainId']==_0x5364bf);_0x3eed93['length']&&_0x59448d['getAllAdjacentSuggestions']()['length']!=_0x3eed93['length']&&_0x3eed93['reduce']((_0x3b6396,_0x412c0d)=>(_0x3b6396['next']=_0x412c0d,_0x412c0d['previous']=_0x3b6396,_0x412c0d));};function _0x40aa80(_0x5d0d18,_0x30647f=!0x0){const {id:_0x1e8be5}=_0x4a90fe['_splitMarkerName'](_0x5d0d18['markerName']),_0x113cc5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x43679d=_0x4a90fe['activeMarkers']['includes'](_0x5d0d18['markerName']);return _0x43679d&&_0x113cc5['push']('ck-suggestion-marker--active'),{'classes':_0x113cc5,'attributes':{'data-suggestion':_0x1e8be5},'priority':_0x43679d&&_0x30647f?0xbc2:0xbb8};}_0x4a90fe['on']('suggestionLoaded',_0x3265ca,{'priority':'high'}),_0x4a90fe['on']('suggestionUnloaded',_0x3265ca,{'priority':'high'}),_0x212cb2['model']['document']['registerPostFixer'](()=>{let _0x3c3d12=!0x1;const _0x1825e7=Array['from'](_0x212cb2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b2d4b,data:_0x19e9c8}of _0x1825e7){const {group:_0x4dbd71,type:_0x5294cd,id:_0x21ecde}=_0x4a90fe['_splitMarkerName'](_0x2b2d4b);if('suggestion'!=_0x4dbd71||'deletion'!=_0x5294cd||_0x19e9c8['oldRange'])continue;if(!_0x4a90fe['hasSuggestion'](_0x21ecde))continue;const _0x7aae4c=_0x4a90fe['getSuggestion'](_0x21ecde)['getRanges'](),_0x521156=_0x212cb2['plugins']['get']('Users')['me'];for(const _0x2d6f8d of _0x4a90fe['getSuggestions']()){if(!_0x2d6f8d['isInContent']||_0x2d6f8d['author']!=_0x521156)continue;if('formatBlock'!=_0x2d6f8d['type']||'tablePasteCell'!=_0x2d6f8d['subType'])continue;if(_0x2d6f8d['getRanges']()['every'](_0x368251=>_0x7aae4c['some'](_0x458ace=>_0x458ace['containsRange'](_0x368251,!0x0)))){for(const _0x19e698 of _0x2d6f8d['getAllAdjacentSuggestions']())_0x19e698['isInContent']&&(_0x19e698['discard'](),_0x3c3d12=!0x0);}}}return _0x3c3d12;}),_0x212cb2['model']['document']['registerPostFixer'](_0x358ff6=>{const _0x41986b=_0x212cb2['commands']['get']('redo');if(!_0x41986b||!_0x41986b['_createdBatches']['has'](_0x358ff6['batch']))return!0x1;let _0x379324=!0x1;const _0x1fa73c=_0x212cb2['plugins']['get']('Users')['me'],_0x17ca33=_0x212cb2['model']['document']['differ']['getChanges'](),_0x109199=Array['from'](_0x212cb2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1c9351,data:_0x1501f0})=>{const {group:_0xc0682a,subType:_0x1c451c,authorId:_0xd90d77}=_0x4a90fe['_splitMarkerName'](_0x1c9351);return'suggestion'==_0xc0682a&&'tablePaste'==_0x1c451c&&_0xd90d77==_0x1fa73c['id']&&!_0x1501f0['oldRange'];});for(const _0x32f4f6 of _0x17ca33){if('insert'!=_0x32f4f6['type']||'tableCellSuggestion'!=_0x32f4f6['name']||0x1!=_0x32f4f6['length'])continue;const _0x141fbf=_0x358ff6['createRange'](_0x32f4f6['position'],_0x32f4f6['position']['getShiftedBy'](0x1));if(!_0x109199['find'](({data:_0x252ce5})=>_0x252ce5['newRange']['isEqual'](_0x141fbf))){for(const {name:_0x516255,data:_0x472210}of _0x109199)if(_0x141fbf['containsRange'](_0x472210['newRange'])){_0x358ff6['updateMarker'](_0x516255,{'range':_0x141fbf}),_0x379324=!0x0;break;}}}return _0x379324;}),_0x212cb2['model']['document']['registerPostFixer'](_0x224c06=>{let _0x5f0c98=!0x1;const _0x14537a=_0x212cb2['plugins']['get']('Users')['me'],_0x4fb392=_0x4a90fe['getSuggestions']()['filter'](_0x4a4a6c=>_0x4a4a6c['isInContent']&&_0x4a4a6c['author']==_0x14537a),_0x5dfc6f=new Set(),_0x3e659d=new Set();for(const _0x59b009 of _0x4fb392)if('tablePaste'==_0x59b009['subType'])for(const _0x2637c of _0x59b009['getMarkers']()){const _0x1f6fc0=_0x2637c['getRange']()['getContainedElement']();if(_0x1f6fc0){if(_0x1f6fc0['is']('element','tableCellSuggestion')&&Pe(_0x1f6fc0)){_0x59b009['removeMarker'](_0x2637c['name']),_0x5dfc6f['add'](_0x1f6fc0),_0x5f0c98=!0x0;const _0xc78740=_0x1f6fc0['nextSibling'],_0x4e9233=_0x1f6fc0['previousSibling'],_0x5655b2=_0xc78740&&_0xc78740['is']('element','tableCellSuggestion'),_0x4fb1f6=_0x4e9233&&_0x4e9233['is']('element','tableCellSuggestion');_0x5655b2&&!_0x5dfc6f['has'](_0xc78740)&&_0x3e659d['add'](_0xc78740),_0x4fb1f6&&!_0x5dfc6f['has'](_0x4e9233)&&_0x3e659d['add'](_0x4e9233);}else _0x1f6fc0['is']('element','paragraph')&&_0x1f6fc0['isEmpty']&&(_0x59b009['removeMarker'](_0x2637c['name']),_0x5f0c98=!0x0);}}else{if('tablePasteCell'==_0x59b009['subType']){if(!_0x59b009['attributes']||!_0x59b009['attributes']['tablePasteChainId'])continue;const _0x2761fd=_0x59b009['attributes']['markerAttributes'];if(_0x2761fd&&Object['keys'](_0x2761fd)['length'])continue;const _0x404a9e=_0x59b009['attributes']['tablePasteChainId'];let _0x4a4fb9=!0x0,_0x1cfdda=!0x0;for(const _0x27e42f of _0x4fb392)if(_0x27e42f['subType']&&_0x27e42f['subType']['startsWith']('tablePaste')){if(!_0x27e42f['attributes']['tablePasteChainId']){_0x1cfdda=!0x1;break;}if(_0x27e42f['id']!=_0x59b009['id']&&_0x27e42f['attributes']['tablePasteChainId']==_0x404a9e){_0x4a4fb9=!0x1;break;}}_0x1cfdda&&_0x4a4fb9&&(_0x59b009['removeMarkers'](),_0x5f0c98=!0x0);}}for(const _0x10cbfe of _0x5dfc6f)_0x224c06['remove'](_0x10cbfe);for(const _0x2a0764 of _0x3e659d)_0x224c06['unwrap'](_0x2a0764);return _0x5f0c98;}),_0x212cb2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x16f336,_0x200c13)=>_0x40aa80(_0x16f336),'converterPriority':'high'}),_0x212cb2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x212ba4,_0x361f1a)=>_0x361f1a['options']['showSuggestionHighlights']?_0x40aa80(_0x212ba4,!0x1):null,'converterPriority':'high'});const _0x5db2da=_0x212cb2['editing']['view'];this['listenTo'](_0x5db2da['document'],'clipboardOutput',(_0x3b879b,_0x5be685)=>{const _0x8495a0=[];for(const _0x3ce603 of _0x5db2da['createRangeIn'](_0x5be685['content'])['getItems']())_0x3ce603['is']('element','suggestion-td')&&_0x8495a0['push'](_0x3ce603);_0x5db2da['change'](_0x5c9d02=>{for(const _0x2cd127 of _0x8495a0)_0x5c9d02['move'](_0x5c9d02['createRangeIn'](_0x2cd127),_0x5c9d02['createPositionBefore'](_0x2cd127)),_0x5c9d02['remove'](_0x2cd127);});});}}function Pe(_0x4c77f6){if(_0x4c77f6['isEmpty'])return!0x0;const _0x4fb8e8=_0x4c77f6['getChild'](0x0);return _0x4fb8e8['is']('element','paragraph')&&_0x4fb8e8['isEmpty'];}function he(_0x445d56,_0xbcd18e={},_0xcd8422){for(const {isAnchor:_0x2a10a3,cellHeight:_0x532d65,cellWidth:_0x38157e}of _0xcd8422['createTableWalker'](_0x445d56,{'includeAllSlots':!0x0,..._0xbcd18e}))if(!_0x2a10a3||0x1!=_0x532d65||0x1!=_0x38157e)return!0x1;return!0x0;}class vt extends _0x2abede{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x33100c=this['editor']['plugins']['get']('TrackChangesEditing');_0x33100c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x33100c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x33100c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33100c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x33100c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x33100c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f68d8,_0x36e907){const _0x3f54a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x249510=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x265dca=_0x36e907['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xbe2e7f=_0x249510['getColumnGroupElement'](_0x265dca);let _0x3d2dba=_0xbe2e7f?_0x249510['getTableColumnsWidths'](_0xbe2e7f):null,_0x31faf3=_0x265dca['getAttribute']('tableWidth')||null;const _0x5d824d=_0x36e907['tableWidth']||_0x31faf3,_0x34f568=_0x36e907['columnWidths']||_0x3d2dba,_0x454d80=this['editor']['plugins']['get']('Users')['me'];for(const _0x4ae635 of _0x3f54a8['getSuggestions']()){const _0xd572a1=_0x4ae635['getContainedElement']();if('resizeTable'===_0x4ae635['subType']&&_0xd572a1===_0x265dca){_0x4ae635['author']!==_0x454d80&&_0x4ae635['discard']();const _0x32c577=_0x4ae635['data']['commandParams'];_0x31faf3=_0x32c577[0x0]['tableWidth'],_0x3d2dba=_0x32c577[0x0]['columnWidths'];break;}}_0x2f68d8({'table':_0x265dca,'tableWidth':_0x5d824d,'columnWidths':_0x34f568}),_0x3f54a8['markBlockFormat'](_0x265dca,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x31faf3,'columnWidths':_0x3d2dba}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x224372){if('formatBlock'!=_0x224372['type']&&'formatInline'!=_0x224372['type'])return;const {data:_0x2ef9bb}=_0x224372;if(_0x2ef9bb&&'resizeTable'===_0x2ef9bb['formatGroupId']){const _0x3a6309='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3a6309)};}}}class Ct extends _0x2abede{['afterInit'](){const _0x13cc9f=this['editor'];_0x13cc9f['plugins']['has']('Template')&&_0x13cc9f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x2abede{['afterInit'](){const _0x27e2db=this['editor'];if(!_0x27e2db['commands']['get']('insertTableOfContents'))return;_0x27e2db['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x18435b=_0x27e2db['plugins']['get']('TrackChangesEditing'),_0x3f9317=_0x27e2db['locale'];_0x18435b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4da7d7=>o(_0x3f9317,'ELEMENT_TABLE_OF_CONTENTS',_0x4da7d7));}}class Dt extends _0x2abede{['afterInit'](){const _0x1df747=this['editor'];if(!_0x1df747['plugins']['has']('Title'))return;const _0x2da004=_0x1df747['plugins']['get']('TrackChangesEditing');_0x2da004['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1df747['locale'],'ELEMENT_TITLE')),_0x1df747['model']['document']['registerPostFixer'](_0x127c75=>{let _0x5eccf4=!0x1;const _0x25a094=Array['from'](_0x1df747['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e7f57,data:_0x4875ba}of _0x25a094){const {group:_0x5b748a}=_0x2da004['_splitMarkerName'](_0x1e7f57);if('suggestion'!==_0x5b748a||!_0x4875ba['newRange'])continue;const _0x573596=_0x4875ba['newRange'],_0x432fbc=_0x573596['end']['nodeBefore'];if(!_0x432fbc||!_0x432fbc['is']('element','title-content'))continue;if(!_0x573596['start']['isTouching'](_0x573596['end']))continue;const _0x34fd90=_0x1df747['model']['schema']['getNearestSelectionRange'](_0x573596['end'],'forward');if(_0x34fd90&&_0x34fd90['isCollapsed']){const _0x3fe4cc=_0x127c75['createRange'](_0x573596['start'],_0x34fd90['start']);_0x3fe4cc['isEqual'](_0x573596)||(_0x127c75['updateMarker'](_0x1e7f57,{'range':_0x3fe4cc}),_0x5eccf4=!0x0);}_0x5eccf4||(_0x127c75['removeMarker'](_0x1e7f57),_0x5eccf4=!0x0);}return _0x5eccf4;});}}class Nt extends _0x2abede{['afterInit'](){const _0x20a49c=this['editor'],_0x3e18a6=_0x20a49c['plugins']['get']('TrackChangesEditing');_0x20a49c['plugins']['has']('UndoEditing')&&(_0x3e18a6['enableCommand']('undo'),_0x3e18a6['enableCommand']('redo'));}}class Mt extends _0x2abede{static get['requires'](){return[jt];}['afterInit'](){const _0x2357de=this['editor'];if(!_0x2357de['plugins']['has']('TableCaptionEditing'))return;_0x2357de['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x2abede{['tableProperties'];['tableCellProperties'];constructor(_0x52725d){super(_0x52725d),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 _0xdb62a1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2faea8 of this['tableProperties'])_0xdb62a1['enableCommand'](_0x2faea8,(_0x4398ee,_0x3a8b35)=>{const _0x4b5db0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2faea8,[_0x4b5db0],this['tableProperties'],'tableProperties',_0x4398ee,_0x3a8b35);});_0xdb62a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xdb62a1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xdb62a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2d5335,_0x1e19e7)=>this['handleDiscardAction'](this['tableProperties'],_0x2d5335,_0x1e19e7)),_0xdb62a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x171bf0 of this['tableCellProperties'])_0xdb62a1['enableCommand'](_0x171bf0,(_0x54ef80,_0x235b57)=>{const _0x2f9643=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x171bf0,_0x2f9643,this['tableCellProperties'],'tableCellProperties',_0x54ef80,_0x235b57);});_0xdb62a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xdb62a1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xdb62a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2349c5,_0x5be9a2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2349c5,_0x5be9a2)),_0xdb62a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xdb62a1['descriptionFactory']['registerDescriptionCallback'](_0xbe43a8=>this['handleSuggestionDescription'](_0xbe43a8));}['_handlePropertyChange'](_0x4a5f59,_0x266343,_0x1c8ae0,_0x51085a,_0x62a8d4,_0x50c806){const _0x35c104=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x50c806['batch'],()=>{for(const _0x23506e of _0x266343){if(this['_getSuggestion'](_0x23506e,_0x51085a))_0x62a8d4(_0x50c806);else{const _0x47c058={};for(const _0x4f76f0 of _0x1c8ae0){const _0x2cbf99=_0x23506e['getAttribute'](_0x4f76f0);void 0x0!==_0x2cbf99&&(_0x47c058[_0x4f76f0]=_0x2cbf99);}_0x62a8d4(_0x50c806),_0x35c104['markBlockFormat'](_0x23506e,{'commandParams':[_0x47c058]},[],_0x51085a);}}});}['handleDiscardAction'](_0x1efbe8,_0x1f0e01,_0x3eca55){const _0x44ac6a=_0x1f0e01[0x0]['start']['nodeAfter'],_0xf94d8d=_0x3eca55['commandParams'][0x0];this['editor']['model']['change'](_0x219623=>{for(const _0x4d2f85 of _0x1efbe8)void 0x0!==_0xf94d8d[_0x4d2f85]?_0x219623['setAttribute'](_0x4d2f85,_0xf94d8d[_0x4d2f85],_0x44ac6a):_0x219623['removeAttribute'](_0x4d2f85,_0x44ac6a);});}['handleSuggestionDescription'](_0x2a8b84){if(_0x2a8b84['data'])switch(_0x2a8b84['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'](_0x4d4a3e,_0x3e0283){const _0x135117=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2e0310 of _0x135117['getSuggestions']({'skipNotAttached':!0x0})){const _0x2ea615=_0x2e0310['getContainedElement']();if(_0x2e0310['subType']===_0x3e0283&&_0x2ea615===_0x4d4a3e)return _0x2e0310;}return null;}}const m='$elementName';class p extends _0x2abede{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x24669a,_0x17088b,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x589de2){function _0x27e829(_0x1d4cef){return _0x1d4cef['map'](_0x19164f=>String['fromCharCode'](_0x19164f))['join']('');}super(_0x589de2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3cd1f8,_0x56d61b,_0x5c9a4a,_0xc1c7a6)=>{this['_model']['change'](()=>{for(const _0x3c7c9a of[..._0xc1c7a6,..._0x5c9a4a])this['_model']['markers']['has'](_0x3c7c9a)&&_0x589de2['editing']['reconvertMarker'](_0x3c7c9a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x589de2['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(),_0x589de2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x589de2['config']['get']('trackChanges.trackFormatChanges'),_0x589de2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x589de2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x589de2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x27e829([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x27e829([0x34,0x30,0x34,0x38,0x31,0x32,0x31,0x34]);}['init'](){const _0xe5ab03=this['editor'],_0x55a7ef=(_0x94e130,_0x412c8a)=>{if('attribute'!=_0x94e130)return'ck-suggestion-marker-'+_0x94e130;const _0x4f9f9c=_0x412c8a['split']('|')[0x0];return this['_isBlockAttribute'](_0x4f9f9c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xe5ab03['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x35f164=>{const {id:_0x357b1a,type:_0x6974fa,subType:_0x290023}=this['_splitMarkerName'](_0x35f164['markerName']),_0x19ccaa=['ck-suggestion-marker',_0x55a7ef(_0x6974fa,_0x290023)];let _0x239225=0xbb8;return this['activeMarkers']['includes'](_0x35f164['markerName'])&&(_0x19ccaa['push']('ck-suggestion-marker--active'),_0x239225=0xbc2),'deletion'==_0x6974fa&&(_0x239225+=0x5),{'classes':_0x19ccaa,'attributes':{'data-suggestion':_0x357b1a},'priority':_0x239225};}}),_0xe5ab03['conversion']['for']('dataDowncast')['add'](_0x1f2bff=>{_0x1f2bff['on']('addMarker:suggestion',(_0x265227,_0x595f3c,_0x471398)=>{if(!_0x471398['options']['showSuggestionHighlights'])return;const _0x437a45=_0x595f3c['item'];if(!_0x437a45)return;const _0x544fb3=_0x471398['mapper']['toViewElement'](_0x437a45);_0xe5ab03['model']['schema']['isObject'](_0x437a45)&&_0x544fb3&&!_0x544fb3['getCustomProperty']('widget')&&_0x544fb3['is']('containerElement')&&_0x5ca809(_0x544fb3,_0x471398['writer']);},{'priority':'high'});}),_0xe5ab03['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x467287,_0x47b948)=>{if(!_0x47b948['options']['showSuggestionHighlights'])return null;const {type:_0x1ae205,subType:_0x403ee0}=this['_splitMarkerName'](_0x467287['markerName']);return{'classes':['ck-suggestion-marker',_0x55a7ef(_0x1ae205,_0x403ee0)],'priority':0xbb8};}});const _0x1f0dfc=({showActiveMarkers:_0x1e4b1f=!0x0,isAttributeSuggestion:_0x28d305=!0x1}={})=>(_0x58a4c4,_0x1c6c26,_0x2a4f3a)=>{if(!_0x1c6c26['item'])return;const {id:_0x12404c}=this['_splitMarkerName'](_0x1c6c26['markerName']);if(_0x28d305){const _0x2ef305=this['_suggestions']['get'](_0x12404c),_0x24f439=this['_getAttributeKey'](_0x2ef305);if(!this['_isBlockAttribute'](_0x24f439))return;}if(_0x1c6c26['item']['is']('selection'))return void _0x2a4f3a['consumable']['consume'](_0x1c6c26['item'],_0x58a4c4['name']);const _0x21f963=_0x2a4f3a['mapper']['toViewElement'](_0x1c6c26['item']);if(_0x1c6c26['item']['is']('element')&&_0xe5ab03['model']['schema']['isBlock'](_0x1c6c26['item'])&&!_0x21f963['getCustomProperty']('addHighlight')){_0x2a4f3a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x21f963),_0x2a4f3a['writer']['setAttribute']('data-suggestion',_0x12404c,_0x21f963),_0x2a4f3a['mapper']['bindElementToMarker'](_0x21f963,_0x1c6c26['markerName']),_0x1e4b1f&&(this['activeMarkers']['includes'](_0x1c6c26['markerName'])?_0x2a4f3a['writer']['addClass']('ck-suggestion-marker--active',_0x21f963):_0x2a4f3a['writer']['removeClass']('ck-suggestion-marker--active',_0x21f963));for(const _0x5e466a of _0xe5ab03['model']['createRangeIn'](_0x1c6c26['item'])['getItems']())_0x2a4f3a['consumable']['consume'](_0x5e466a,_0x58a4c4['name']);_0x2a4f3a['consumable']['consume'](_0x1c6c26['item'],_0x58a4c4['name']);}};_0xe5ab03['conversion']['for']('dataDowncast')['add'](_0x54d436=>{_0x54d436['on']('addMarker:suggestion:formatBlock',(_0x39cbcf,_0x142779,_0x4ec345)=>{_0x4ec345['options']['showSuggestionHighlights']&&_0x1f0dfc({'showActiveMarkers':!0x1})(_0x39cbcf,_0x142779,_0x4ec345);},{'priority':'highest'});}),_0xe5ab03['conversion']['for']('dataDowncast')['add'](_0x30c303=>{_0x30c303['on']('addMarker:suggestion:attribute',(_0x18a6c4,_0x56c692,_0x38f504)=>{_0x38f504['options']['showSuggestionHighlights']&&_0x1f0dfc({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x18a6c4,_0x56c692,_0x38f504);},{'priority':'highest'});}),_0xe5ab03['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5725fb,_0x139ddc)=>_0x139ddc['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5725fb['substr'](0xb)}}),_0xe5ab03['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1426ae,{writer:_0x2d0ed4})=>{let _0x3d6c77='suggestion:'+_0x1426ae['getAttribute']('suggestion-type')+':'+_0x1426ae['getAttribute']('id');return _0x1426ae['getAttribute']('marker-count')&&(_0x3d6c77+=':'+_0x1426ae['getAttribute']('marker-count')),_0x2d0ed4['createElement']('$marker',{'data-name':_0x3d6c77});}}),_0xe5ab03['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xe5ab03['conversion']['for']('editingDowncast')['add'](_0x507c86=>{_0x507c86['on']('addMarker:suggestion:formatBlock',_0x1f0dfc(),{'priority':'high'});}),_0xe5ab03['conversion']['for']('editingDowncast')['add'](_0x444410=>{_0x444410['on']('addMarker:suggestion:attribute',_0x1f0dfc({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xe5ab03['conversion']['for']('editingDowncast')['add'](_0x431c5d=>{_0x431c5d['on']('removeMarker:suggestion:formatBlock',(_0x48c8e3,_0xf4e52f,_0x45d907)=>{const _0x1b4942=_0x45d907['mapper']['markerNameToElements'](_0xf4e52f['markerName']);if(_0x1b4942){for(const _0x1a1310 of _0x1b4942)_0x1a1310['getCustomProperty']('addHighlight')||(_0x45d907['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a1310),_0x45d907['writer']['removeAttribute']('data-suggestion',_0x1a1310),_0x45d907['mapper']['unbindElementFromMarkerName'](_0x1a1310,_0xf4e52f['markerName']));}},{'priority':'high'});}),_0xe5ab03['conversion']['for']('editingDowncast')['add'](_0x457c42=>{_0x457c42['on']('removeMarker:suggestion:attribute',(_0xf602ea,_0x34e9e0,_0x3831bc)=>{const _0x1b1ca9=_0x3831bc['mapper']['markerNameToElements'](_0x34e9e0['markerName']);if(!_0x1b1ca9)return;const {id:_0x451062}=this['_splitMarkerName'](_0x34e9e0['markerName']),_0x344a30=this['_suggestions']['get'](_0x451062),_0x3ed07c=this['_getAttributeKey'](_0x344a30);if(this['_isBlockAttribute'](_0x3ed07c)){for(const _0x56a0d9 of _0x1b1ca9)_0x56a0d9['getCustomProperty']('addHighlight')||(_0x3831bc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x56a0d9),_0x3831bc['writer']['removeAttribute']('data-suggestion',_0x56a0d9),_0x3831bc['mapper']['unbindElementFromMarkerName'](_0x56a0d9,_0x34e9e0['markerName']));}},{'priority':'high'});}),_0xe5ab03['model']['document']['registerPostFixer'](_0x22b275=>{let _0x2f92ac=!0x1;const _0xb0552=Array['from'](_0xe5ab03['model']['document']['differ']['getChangedMarkers']()),_0x18137d=new Set();for(const {name:_0x195afa,data:_0x44350f}of _0xb0552){const {group:_0x558062,type:_0x18da8a,subType:_0xe7a75c,id:_0x5750b7}=this['_splitMarkerName'](_0x195afa);if('suggestion'!==_0x558062)continue;const _0x7abdae=this['_suggestions']['get'](_0x5750b7);if(null!=_0x44350f['newRange']){'formatInline'==_0x18da8a&&(_0x2f92ac=_0x2f92ac||Et(_0x44350f['newRange'],_0x195afa,_0x22b275,_0xe5ab03['model']['schema']));const _0x488e35='attribute'==_0x18da8a&&this['_isBlockAttribute'](_0xe7a75c['split']('|')[0x0]);if(_0x44350f['newRange']['isCollapsed']||'$graveyard'==_0x44350f['newRange']['root']['rootName']||'formatBlock'==_0x18da8a&&!Ut(_0x44350f['newRange'])||_0x488e35&&!Ut(_0x44350f['newRange'])||'deletion'==_0x18da8a&&!(!Tt(_0x2e5c89=_0x44350f['newRange'])&&!function(_0x3e601b){return _0x3e601b['start']['parent']==_0x3e601b['end']['nodeBefore']&&_0x3e601b['start']['isAtEnd'];}(_0x2e5c89)))_0x22b275['removeMarker'](_0x195afa),_0x2f92ac=!0x0;else{if(!_0x7abdae||!_0x7abdae['isInContent'])continue;_0x18137d['add'](_0x7abdae);}}}var _0x2e5c89;return _0x18137d['size']>0x0&&(_0x2f92ac=!!this['_joinWithAdjacentSuggestions'](_0x18137d)||_0x2f92ac),_0x2f92ac;}),_0xe5ab03['model']['document']['registerPostFixer'](_0x358198=>{let _0x5c9bf8=!0x1;for(const _0x3d643a of _0xe5ab03['model']['document']['differ']['getChanges']())if('insert'==_0x3d643a['type'])for(const _0x4f1218 of this['_suggestions']['values']()){if(_0x4f1218['isMultiRange']||!_0x4f1218['isInContent'])continue;const _0x1b43c2='formatBlock'==_0x4f1218['type'],_0x5d2e4c=this['_getAttributeKey'](_0x4f1218),_0x557112=_0x5d2e4c&&this['_isBlockAttribute'](_0x5d2e4c);if(!_0x1b43c2&&!_0x557112)continue;const _0x3dc76c=_0x4f1218['getFirstRange']();if(_0x3dc76c['start']['parent']!=_0x3dc76c['end']['parent']&&!_0x3dc76c['end']['isAtEnd']){const _0x18e371=_0xe5ab03['model']['createPositionAt'](_0x3dc76c['start']['nodeAfter'],'end'),_0x3a5831=_0xe5ab03['model']['createRange'](_0x3dc76c['start'],_0x18e371);_0x358198['updateMarker'](_0x4f1218['getFirstMarker'](),{'range':_0x3a5831}),_0x5c9bf8=!0x0;}}return _0x5c9bf8;}),_0xe5ab03['model']['document']['registerPostFixer'](_0x286947=>this['_processAttributeChanges'](_0x286947)),_0xe5ab03['model']['document']['registerPostFixer'](_0x6391e2=>!_0x6391e2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x6391e2)),_0xe5ab03['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xe5ab03['model']['document']['on']('change:data',(_0x42a832,_0x4b71bb)=>{if(!_0x4b71bb['isLocal']||_0x4b71bb['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x323026=_0xe5ab03['model']['document']['differ']['getChanges']();if(0x0==_0x323026['length'])return;const _0x1f2286=[],_0x4db24a=_0x323026['filter'](_0xefdaa5=>'attribute'==_0xefdaa5['type']),_0x3e87ec=_0x323026['filter'](_0x22915b=>'insert'==_0x22915b['type']&&'$text'!=_0x22915b['name']);for(const _0x1e0cae of _0x4db24a)this['_isRegisteredAttribute'](_0x1e0cae['attributeKey'])&&_0x1f2286['push']({'key':_0x1e0cae['attributeKey'],'newValue':_0x1e0cae['attributeNewValue'],'oldValue':_0x1e0cae['attributeOldValue'],'range':Ot(_0x1e0cae['range'],_0xe5ab03['model'])});for(const _0xd8cfe5 of _0x3e87ec){if('rename'!=_0xd8cfe5['action']&&'refresh'!=_0xd8cfe5['action'])continue;const _0x448f92=Gt(_0xd8cfe5['position']['nodeAfter'],_0xe5ab03['model']),_0x816f32=_0xd8cfe5['before'];'rename'==_0xd8cfe5['action']&&_0x1f2286['push']({'key':m,'newValue':_0xd8cfe5['name'],'oldValue':_0x816f32['name'],'range':_0x448f92});for(const [_0x2e60c9,_0x4d3efc]of _0x816f32['attributes']){if(!this['_isRegisteredAttribute'](_0x2e60c9))continue;const _0x252553=_0xd8cfe5['attributes']['get'](_0x2e60c9);_0x4d3efc!==_0x252553&&_0x1f2286['push']({'key':_0x2e60c9,'newValue':_0x252553,'oldValue':_0x4d3efc,'range':_0x448f92});}for(const [_0x19b19a,_0x6f564e]of _0xd8cfe5['attributes'])this['_isRegisteredAttribute'](_0x19b19a)&&(_0x816f32['attributes']['has'](_0x19b19a)||_0x1f2286['push']({'key':_0x19b19a,'newValue':_0x6f564e,'oldValue':null,'range':_0x448f92}));}0x0!=_0x1f2286['length']&&_0xe5ab03['model']['enqueueChange'](_0x4b71bb,_0x207c01=>{const _0x2ead9d=_0x2fdaf0();for(const {range:_0x445e32,key:_0x5efd2c,oldValue:_0x341d4f,newValue:_0x2c65c7}of _0x1f2286)this['markAttributeChange'](_0x445e32,_0x5efd2c,_0x341d4f,_0x2c65c7,{'groupId':_0x2ead9d});this['_reduceExistingSuggestions'](_0x207c01,_0x1f2286);});},{'priority':'lowest'}),_0xe5ab03['model']['markers']['on']('update:suggestion',(_0x3a54cc,_0x4ca97b,_0xb5a38f)=>{if(null==_0xb5a38f){const {id:_0x5cfeb9}=this['_splitMarkerName'](_0x4ca97b['name']),_0x522451=this['_suggestions']['get'](_0x5cfeb9);_0x522451&&_0x522451['addMarkerName'](_0x4ca97b['name']);}}),_0xe5ab03['model']['document']['on']('change:data',()=>{const _0x51fcd3=Array['from'](_0xe5ab03['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5a6e56=>'suggestion'===this['_splitMarkerName'](_0x5a6e56['name'])['group']);if(0x0===_0x51fcd3['length'])return;_0x51fcd3['sort']((_0x4e4b49,_0x44cb96)=>{const _0x48620f=_0x4e4b49['data']['oldRange'],_0x5943e7=_0x44cb96['data']['oldRange'];return null===_0x48620f&&null===_0x5943e7?0x0:null===_0x48620f&&null!==_0x5943e7?-0x1:null!==_0x48620f&&null===_0x5943e7?0x1:_0x48620f['start']['isBefore'](_0x5943e7['start'])?-0x1:0x1;});const _0x169d07=new Set(),_0x300317=new Set();for(const {name:_0x238b8b,data:_0x29c1c9}of _0x51fcd3){const {id:_0x2cc393}=this['_splitMarkerName'](_0x238b8b);if(null===_0x29c1c9['oldRange']){const _0x507cf2=this['_handleNewSuggestionMarker'](_0x238b8b);_0x300317['add'](_0x507cf2);}else{const _0x297e89=this['_suggestions']['get'](_0x2cc393);null!==_0x29c1c9['newRange']||_0x297e89['isInContent']?(_0x169d07['add'](_0x297e89['head']),_0x300317['add'](_0x297e89)):this['_removeSuggestion'](_0x297e89);}}_0x300317['size']>0x0&&this['_refreshSuggestionsChain'](_0x300317);for(const _0x529224 of _0x169d07)this['fire']('suggestionChanged',_0x529224);}),_0xe5ab03['model']['on']('applyOperation',(_0x557903,_0x37c77f)=>{const _0x17ee25=_0x37c77f[0x0];if(!this['_suggestions']['size'])return;if(!_0x17ee25['isDocumentOperation'])return;if(_0x17ee25['batch']['isUndo']||!_0x17ee25['batch']['isLocal'])return;let _0x24c2fa,_0x3f0906;switch(_0x17ee25['type']){case'insert':_0x24c2fa=_0xe5ab03['model']['createPositionAt'](_0x17ee25['position']),_0x3f0906=_0x24c2fa['getShiftedBy'](_0x17ee25['howMany']);break;case'split':_0x24c2fa=_0xe5ab03['model']['createPositionAt'](_0x17ee25['splitPosition']),_0x3f0906=_0xe5ab03['model']['createPositionAt'](_0x17ee25['moveTargetPosition']);break;case'move':_0x24c2fa=_0xe5ab03['model']['createPositionAt'](_0x17ee25['targetPosition']),_0x3f0906=_0x24c2fa['getShiftedBy'](_0x17ee25['howMany']);break;default:return;}const _0x484029=_0xe5ab03['model']['createRange'](_0x24c2fa,_0x3f0906);_0xe5ab03['model']['change'](()=>{for(const {suggestion:_0x5e3c27,meta:_0x410d34}of this['_findSuggestions'](_0x484029)){if(_0x5e3c27['isMultiRange'])continue;if('formatInline'==_0x5e3c27['type'])continue;const _0x4d16b0=this['_getAttributeKey'](_0x5e3c27);if(_0x4d16b0&&this['_isBlockAttribute'](_0x4d16b0)&&'split'!=_0x17ee25['type'])continue;const _0x2e9486=_0x5e3c27['data']&&_0x5e3c27['data']['multipleBlocks'];('formatBlock'!=_0x5e3c27['type']||'split'==_0x17ee25['type']&&!_0x2e9486)&&(_0x410d34['containsRangeInObject']||'insertion'==_0x5e3c27['type']&&_0x410d34['isOwn']||_0x5e3c27['getFirstRange']()['containsRange'](_0x484029)&&this['_breakSuggestionMarker'](_0x5e3c27,_0x24c2fa,_0x3f0906));}});},{'priority':'lowest'}),_0xe5ab03['model']['on']('deleteContent',(_0x3c9912,_0x10fdeb)=>{const _0x2f0718=_0x10fdeb[0x0],_0x11c3a6=_0x10fdeb[0x1];if(_0x11c3a6&&_0x11c3a6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2f0718['isCollapsed'])return;const _0x58564c=_0xe5ab03['model']['schema'],{start:_0x2da2e6,end:_0x5d793b}=_0x2f0718['getFirstRange'](),_0x233521=_0x2da2e6['nodeAfter']&&_0x58564c['isLimit'](_0x2da2e6['nodeAfter'])?null:_0x58564c['getNearestSelectionRange'](_0x2da2e6,'forward'),_0x4557a7=_0x5d793b['nodeBefore']&&_0x58564c['isLimit'](_0x5d793b['nodeBefore'])?null:_0x58564c['getNearestSelectionRange'](_0x5d793b,'backward'),_0x47ac0c=_0xe5ab03['model']['createRange'](_0x233521?_0x233521['start']:_0x2da2e6,_0x4557a7?_0x4557a7['end']:_0x5d793b);_0xe5ab03['model']['change'](_0x556372=>{this['markDeletion'](_0x47ac0c);const _0x29572e=_0xe5ab03['model']['schema']['getNearestSelectionRange'](_0x47ac0c['start']);_0x2f0718['is']('documentSelection')?_0x556372['setSelection'](_0x29572e):_0x2f0718['setTo'](_0x29572e);}),_0x3c9912['stop']();},{'priority':_0x56b08f['normal']+0xa}),_0xe5ab03['model']['on']('insertContent',(_0x9dfee4,_0x1fd537)=>{const _0x51f8ea=_0x1fd537[_0x1fd537['length']-0x1];_0x51f8ea&&_0x51f8ea['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xe5ab03['model']['change'](()=>{let _0x28b616=_0xe5ab03['model']['insertContent'](_0x1fd537[0x0],_0x1fd537[0x1],_0x1fd537[0x2],{'forceDefaultExecution':!0x0});if(!_0x28b616)return;_0x9dfee4['return']=_0x28b616['clone']();const _0x492328=_0x28b616['end']['nodeBefore'],_0x1081fb=_0xe5ab03['model']['schema'];_0x492328&&_0x1081fb['isBlock'](_0x492328)&&!_0x1081fb['isObject'](_0x492328)&&(_0x28b616=_0xe5ab03['model']['createRange'](_0x28b616['start'],_0xe5ab03['model']['createPositionAt'](_0x492328,'end'))),this['markInsertion'](_0x28b616);}),_0x9dfee4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3fc965=new $(_0xe5ab03,this['_suggestions']);_0xe5ab03['commands']['add']('acceptSuggestion',_0x3fc965),this['enableCommand']('acceptSuggestion');const _0x26856e=new B(_0xe5ab03,this['_suggestions']);_0xe5ab03['commands']['add']('discardSuggestion',_0x26856e),this['enableCommand']('discardSuggestion'),_0xe5ab03['commands']['add']('acceptAllSuggestions',new x(_0xe5ab03,_0x3fc965,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xe5ab03['commands']['add']('discardAllSuggestions',new x(_0xe5ab03,_0x26856e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xe5ab03['commands']['add']('acceptSelectedSuggestions',new R(_0xe5ab03,_0x3fc965,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xe5ab03['commands']['add']('discardSelectedSuggestions',new R(_0xe5ab03,_0x26856e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xa342cd=_0xe5ab03['plugins']['get']('CommentsRepository');this['listenTo'](_0xa342cd,'addComment',(_0x397f8b,{threadId:_0x347cde})=>{const _0x32f8e8=this['_suggestions']['get'](_0x347cde);_0x32f8e8&&_0x32f8e8['commentThread']&&0x1===_0x32f8e8['commentThread']['length']&&this['_updateSuggestionData'](_0x347cde,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xa342cd,'removeComment',(_0x32e64c,{threadId:_0x5afaca})=>{const _0x3628b0=this['_suggestions']['get'](_0x5afaca);_0x3628b0&&_0x3628b0['commentThread']&&!_0x3628b0['commentThread']['length']&&this['_updateSuggestionData'](_0x5afaca,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4c5a53){if(this['_adapter'])throw new _0x5e8795('track-changes-adapter-already-set',this);this['_adapter']=_0x4c5a53;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x33fca2=!0x1,toJSON:_0x44f80c=!0x1}={}){const _0x144012=[];for(const _0x306c02 of this['_suggestions']['values']())_0x33fca2&&!_0x306c02['isInContent']||_0x144012['push'](_0x306c02);return _0x44f80c?_0x144012['map'](_0x23dcae=>_0x23dcae['toJSON']()):_0x144012;}['getSuggestion'](_0x2b6489){const _0x30fb81=this['_suggestions']['get'](_0x2b6489);if(!_0x30fb81)throw new _0x5e8795('track-changes-suggestion-not-found',this);return _0x30fb81;}['hasSuggestion'](_0x5dc9fb){return this['_suggestions']['has'](_0x5dc9fb);}['addSuggestionData'](_0x2eefc5){const {authorId:_0x533536,id:_0x2deee7,attributes:_0x37fcb1}=_0x2eefc5,[_0x59f8eb,_0x53a15a]=_0x2eefc5['type']['split'](':'),_0x2e9908=this['_suggestions']['get'](_0x2deee7)||this['_createSuggestion'](_0x59f8eb,_0x53a15a,_0x2deee7,_0x533536,_0x37fcb1);if(this['_addThreadToSuggestion'](_0x2e9908),this['_checkSuggestionCorrectness'](_0x2e9908,_0x59f8eb,_0x53a15a||null,_0x533536),_0x2e9908['createdAt']=_0x2eefc5['createdAt'],_0x2e9908['_isDataLoaded']=!0x0,_0x37fcb1&&_0x37fcb1['@external']){const _0x430f8e=_0x37fcb1['@external'],_0xf5ef67=this['_getExternalAuthor'](_0x430f8e['authorName']);_0x2e9908['authoredAt']=_0x430f8e['createdAt'],_0x2e9908['author']=_0xf5ef67,_0x2e9908['isExternal']=!0x0;}else _0x2e9908['authoredAt']=_0x2eefc5['createdAt'];switch(_0x2eefc5['data']&&(_0x2e9908['data']=_0x2eefc5['data']),_0x2eefc5['attributes']&&(_0x2e9908['attributes']=_0x2eefc5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2e9908['_saved']=!0x0),this['_suggestionState']['get'](_0x2e9908)){case'notReady':this['_suggestionState']['set'](_0x2e9908,'dataReady');break;case'markerReady':_0x2e9908['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2e9908])),this['_refreshSuggestionsChain'](new Set([_0x2e9908])),this['_suggestionState']['set'](_0x2e9908,'ready'),this['fire']('suggestionLoaded',_0x2e9908)):this['_suggestionState']['set'](_0x2e9908,'removed');}return _0x2e9908;}['acceptSuggestion'](_0x15e753){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x515f04 of _0x15e753['getAllAdjacentSuggestions']())_0x515f04['accept']();});});}['discardSuggestion'](_0x57c17d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x372090 of _0x57c17d['getAllAdjacentSuggestions']())_0x372090['discard']();});});}['enableCommand'](_0x4034ba,_0x24e266){const _0x3ccbfe=this['editor']['commands']['get'](_0x4034ba);if(!_0x3ccbfe)throw new _0x5e8795('track-changes-command-not-found',this,{'commandName':_0x4034ba});if(this['_enabledCommands']['has'](_0x3ccbfe))throw new _0x5e8795('track-changes-enable-command-twice',this,{'commandName':_0x4034ba});this['_enabledCommands']['add'](_0x3ccbfe),_0x24e266&&_0x3ccbfe['on']('execute',(_0x2a9a76,_0x23a1f7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x23a1f7['length']>0x0&&_0x23a1f7[_0x23a1f7['length']-0x1]&&_0x23a1f7[_0x23a1f7['length']-0x1]['forceDefaultExecution']?_0x23a1f7['pop']():(_0x2a9a76['return']=_0x24e266((..._0x131c8d)=>_0x3ccbfe['execute'](..._0x131c8d,{'forceDefaultExecution':!0x0}),..._0x23a1f7),_0x2a9a76['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4ad15a){let _0x451d29,_0x18ce4a;const _0x19ab60=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x451d29=_0x4ad15a();}catch(_0x144bb3){_0x18ce4a=_0x144bb3;}return _0x19ab60||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x18ce4a&&_0x5e8795['rethrowUnexpectedError'](_0x18ce4a,this),_0x451d29;}['markInsertion'](_0x3e9528,_0xe9f27e=null,_0x198599={}){if(_0x3e9528['isCollapsed'])return null;const _0xe3bb6a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2fd27a,meta:_0x2bd5c3}of this['_findSuggestions'](_0x3e9528,'insertion'))if(_0x2bd5c3['isOwn']){if(!_0x2bd5c3['isNextTo']){if(_0x2bd5c3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2fd27a,_0x198599))continue;return _0x2fd27a;}if(Lt(_0x2fd27a,_0x198599))return _0x2fd27a;this['_breakSuggestionMarker'](_0x2fd27a,_0x3e9528['start'],_0x3e9528['end']);break;}if(_0xe9f27e==_0x2fd27a['subType']&&Lt(_0x2fd27a,_0x198599)){const _0x4e392c=_0x2fd27a['getFirstRange']();return _0x4e392c['start']['isEqual'](_0x3e9528['end'])?this['_setSuggestionRange'](_0x2fd27a,this['_model']['createRange'](_0x3e9528['start'],_0x4e392c['end'])):this['_setSuggestionRange'](_0x2fd27a,this['_model']['createRange'](_0x4e392c['start'],_0x3e9528['end'])),_0x2fd27a;}}const _0x3379ab=_0x2fdaf0(),_0x39c35d=_0xe3bb6a['id'],_0x4547f3=_0xe9f27e?'insertion:'+_0xe9f27e:'insertion',_0xdd67df=this['_setSuggestionData']({'id':_0x3379ab,'type':_0x4547f3,'createdAt':new Date(),'authorId':_0x39c35d,'attributes':_0x198599});return this['_addSuggestionMarker'](_0x4547f3,_0x3379ab,_0x39c35d,_0x3e9528),_0xdd67df;}['markMultiRangeInsertion'](_0x23287a,_0x479e39='multi',_0x58097a={}){const _0x32713=this['editor']['plugins']['get']('Users')['me'],_0x1fa0c3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x479e39,'join');for(const _0x1d7266 of this['getSuggestions']())if(_0x1d7266['author']['id']==_0x32713['id']&&'insertion'==_0x1d7266['type']&&_0x1d7266['subType']==_0x479e39&&Lt(_0x1d7266,_0x58097a)&&(_0x1fa0c3(_0x1d7266['getRanges'](),_0x23287a)||_0x1fa0c3(_0x23287a,_0x1d7266['getRanges']()))){for(const _0x4f5b4e of _0x23287a)_0x1d7266['addRange'](_0x4f5b4e);return _0x1d7266;}for(const {suggestion:_0x79b81c,meta:_0x4bc0b0}of this['_findSuggestions'](_0x23287a,'insertion')){if(!_0x4bc0b0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4bc0b0['containsRangeInObject'])continue;if(!Lt(_0x79b81c,_0x58097a))continue;let _0x5a7289=!0x0;for(const _0xe12060 of _0x79b81c['getRanges']())for(const _0x488f61 of _0x23287a)if(!_0xe12060['containsRange'](_0x488f61)){_0x5a7289=!0x1;break;}if(_0x5a7289)return _0x79b81c;}const _0x5272a3=_0x2fdaf0(),_0x149540=_0x32713['id'],_0x55e3bd='insertion:'+_0x479e39,_0x4fe04d=this['_setSuggestionData']({'id':_0x5272a3,'type':_0x55e3bd,'createdAt':new Date(),'authorId':_0x149540,'attributes':_0x58097a});for(const _0x37ac98 of _0x23287a)this['_addSuggestionMarker'](_0x55e3bd,_0x5272a3,_0x149540,_0x37ac98,u['getMultiRangeId']());return _0x4fe04d;}['markInlineFormat'](_0x18f5dc,_0x5915ec,_0x5ef52e=null,_0x4487d8={}){if(_0x5ef52e=_0x5ef52e||Vt(_0x5915ec),_0x18f5dc['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x7a748b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5ef52e,'accept');return this['forceDefaultExecution'](()=>_0x7a748b([_0x18f5dc],_0x5915ec,_0x4487d8)),null;}const _0xe884cb=this['editor']['plugins']['get']('Users')['me'],_0x4dac38=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2f6066,meta:_0x3343d5}of this['_findSuggestions'](_0x18f5dc,'insertion'))_0x3343d5['isOwn']&&!_0x3343d5['isInsideObject']&&_0x4dac38['push'](..._0x2f6066['getRanges']());}const _0x512bf8=function(_0x598e9c,_0xa9346d){const _0x854410=[];for(const _0x1993ac of _0xa9346d){const _0xc84181=_0x598e9c['getIntersection'](_0x1993ac);_0xc84181&&_0x854410['push'](_0xc84181);}return _0x854410;}(_0x18f5dc,_0x4dac38),_0x11b871=function(_0xf8ff65,_0x4832c6){const _0x2bf564=[_0xf8ff65];for(const _0x597e0a of _0x4832c6){let _0x15f7d7=0x0;for(;_0x15f7d7<_0x2bf564['length'];){const _0x2f4270=_0x2bf564[_0x15f7d7]['getDifference'](_0x597e0a);_0x2bf564['splice'](_0x15f7d7,0x1,..._0x2f4270),_0x15f7d7+=_0x2f4270['length'];}}return _0x2bf564;}(_0x18f5dc,_0x4dac38);_0x512bf8['length']&&this['_model']['change'](()=>{for(const _0x296da1 of _0x512bf8){const _0x17ff58=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5ef52e,'accept');this['forceDefaultExecution'](()=>_0x17ff58([_0x296da1],_0x5915ec,_0x4487d8));}});for(const _0x30510f of _0x11b871){let _0x1f702b=null,_0x54cb3b=_0x30510f['start'],_0x5ef2de=_0x30510f['end'];for(const {suggestion:_0x2dfc30,meta:_0x36f6c6}of this['_findSuggestions'](_0x30510f,'formatInline')){if(!_0x36f6c6['isOwn'])continue;if(_0x2dfc30['subType']!=_0x5ef52e)continue;if(!Lt(_0x2dfc30,_0x4487d8))continue;const _0x2b94a2=_0x2dfc30['getFirstRange']();if(_0x2b94a2['containsRange'](_0x30510f,!0x0))return null;_0x54cb3b=_0x54cb3b['isBefore'](_0x2b94a2['start'])?_0x54cb3b:_0x2b94a2['start'],_0x5ef2de=_0x5ef2de['isAfter'](_0x2b94a2['end'])?_0x5ef2de:_0x2b94a2['end'],_0x1f702b?_0x2b94a2['start']['isBefore'](_0x1f702b['getFirstRange']()['start'])?(_0x1f702b['removeMarkers'](),_0x1f702b=_0x2dfc30):_0x2dfc30['removeMarkers']():_0x1f702b=_0x2dfc30;}const _0xee08d6=this['_model']['createRange'](_0x54cb3b,_0x5ef2de);if(_0x1f702b)this['_setSuggestionRange'](_0x1f702b,_0xee08d6);else{const _0x1dea0b=_0x2fdaf0(),_0x2c8e85=_0xe884cb['id'];this['_setSuggestionData']({'id':_0x1dea0b,'type':'formatInline:'+_0x5ef52e,'data':_0x5915ec,'createdAt':new Date(),'authorId':_0x2c8e85,'attributes':_0x4487d8}),this['_addSuggestionMarker']('formatInline:'+_0x5ef52e,_0x1dea0b,_0x2c8e85,_0xee08d6);}}return null;}['markBlockFormat'](_0x2388ec,_0x1ef450,_0x48c7cd=[],_0x13289a=null,_0x5c75f2={}){_0x1ef450['formatGroupId']||(_0x1ef450['formatGroupId']=_0x1ef450['commandName']),_0x1ef450['multipleBlocks']=_0x2388ec['is']('range'),_0x13289a=_0x13289a||Vt(_0x1ef450);const _0x3b5e2e=_0x48c7cd['map'](_0x7e7f46=>Gt(_0x7e7f46,this['_model'])),_0x47326a=_0x2388ec['is']('range')?_0x2388ec:Gt(_0x2388ec,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4cce26=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13289a,'accept');return this['forceDefaultExecution'](()=>_0x4cce26([_0x47326a],_0x1ef450,_0x5c75f2)),null;}_0x3b5e2e['push'](_0x47326a);let _0xe7942c=!0x0;for(const _0x1dccbb of _0x3b5e2e)if(!this['_rangeIsInLocalUserInsertion'](_0x1dccbb)){_0xe7942c=!0x1;break;}if(_0xe7942c&&'always'!==this['_trackFormatChanges']){const _0x321d87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13289a,'accept');return this['forceDefaultExecution'](()=>_0x321d87([_0x47326a],_0x1ef450,_0x5c75f2)),null;}let _0x41519e=null,_0x857733=_0x47326a['start'],_0x3dcbb6=_0x47326a['end'];for(const {suggestion:_0x26ec8a,meta:_0x4530f0}of this['_findSuggestions'](_0x47326a,'formatBlock')){if(!_0x4530f0['isOwn'])continue;if(_0x4530f0['isNextTo']||_0x4530f0['containsRangeInObject']||_0x4530f0['isInsideObject'])continue;if(_0x26ec8a['data']['formatGroupId']!=_0x1ef450['formatGroupId'])continue;if(!Lt(_0x26ec8a,_0x5c75f2))continue;const _0x10d409=_0x26ec8a['getFirstRange']();if(_0x26ec8a['subType']==_0x13289a){if(_0x10d409['containsRange'](_0x47326a,!0x0))return null;_0x857733=_0x857733['isBefore'](_0x10d409['start'])?_0x857733:_0x10d409['start'],_0x3dcbb6=_0x3dcbb6['isAfter'](_0x10d409['end'])?_0x3dcbb6:_0x10d409['end'],_0x41519e?_0x10d409['start']['isBefore'](_0x41519e['getFirstRange']()['start'])?(_0x41519e['removeMarkers'](),_0x41519e=_0x26ec8a):_0x26ec8a['removeMarkers']():_0x41519e=_0x26ec8a;}else{const _0x4d7a4f=_0x47326a['getIntersection'](_0x10d409);this['_cutOutSuggestionMarker'](_0x26ec8a,_0x4d7a4f);}}const _0x101c7a=this['editor']['plugins']['get']('Users')['me'],_0x3869e4=_0x2fdaf0(),_0x206520=_0x101c7a['id'];if(_0x41519e)return this['_setSuggestionRange'](_0x41519e,this['_model']['createRange'](_0x857733,_0x3dcbb6)),_0x41519e;{const _0xea6b18=this['_setSuggestionData']({'id':_0x3869e4,'type':'formatBlock:'+_0x13289a,'data':_0x1ef450,'createdAt':new Date(),'authorId':_0x206520,'attributes':_0x5c75f2});return this['_addSuggestionMarker']('formatBlock:'+_0x13289a,_0x3869e4,_0x206520,this['_model']['createRange'](_0x857733,_0x3dcbb6)),_0xea6b18;}}['markMultiRangeBlockFormat'](_0x5025fd,_0x3bb7f9,_0x26f7f1=[],_0x1695f2=null,_0x5b68aa={}){_0x3bb7f9['formatGroupId']||(_0x3bb7f9['formatGroupId']=_0x3bb7f9['commandName']);const _0x47419a=_0x5025fd[0x0];_0x3bb7f9['multipleBlocks']=_0x47419a['is']('range'),_0x1695f2=_0x1695f2||Vt(_0x3bb7f9);const _0x127b3d=_0x26f7f1['map'](_0x5bd07e=>Gt(_0x5bd07e,this['_model'])),_0x277a23=_0x47419a['is']('range')?_0x5025fd:_0x5025fd['map'](_0xd0b14b=>Gt(_0xd0b14b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1a3da6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1695f2,'accept');return this['forceDefaultExecution'](()=>_0x1a3da6(_0x277a23,_0x3bb7f9,_0x5b68aa)),null;}_0x127b3d['push'](..._0x277a23);let _0x4a267f=!0x0;for(const _0x5c4fa3 of _0x127b3d)if(!this['_rangeIsInLocalUserInsertion'](_0x5c4fa3)){_0x4a267f=!0x1;break;}if(_0x4a267f&&'always'!==this['_trackFormatChanges']){const _0x29f037=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1695f2,'accept');return this['forceDefaultExecution'](()=>_0x29f037(_0x277a23,_0x3bb7f9,_0x5b68aa)),null;}const _0x3212aa=this['editor']['plugins']['get']('Users')['me'];for(const _0x19e3df of this['getSuggestions']()){if(_0x19e3df['author']['id']!=_0x3212aa['id'])continue;if('formatBlock'!=_0x19e3df['type']||_0x19e3df['data']['formatGroupId']!=_0x3bb7f9['formatGroupId'])continue;if(!Lt(_0x19e3df,_0x5b68aa))continue;const _0x381d38=_0x19e3df['subType']==_0x1695f2;for(let _0x54ee67=0x0;_0x54ee67<_0x277a23['length'];_0x54ee67++){const _0x21f57c=_0x277a23[_0x54ee67];for(const _0x2d83ea of _0x19e3df['getMarkers']()){const _0x3ad2b9=_0x2d83ea['getRange']();if(_0x21f57c['isEqual'](_0x3ad2b9)){_0x381d38?(_0x277a23['splice'](_0x54ee67,0x1),_0x54ee67--):_0x19e3df['removeMarker'](_0x2d83ea['name']);break;}}}}if(0x0==_0x277a23['length'])return null;const _0x5f6dbe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1695f2,'join');for(const _0x3f7249 of this['getSuggestions']())if(_0x3f7249['author']['id']==_0x3212aa['id']&&'formatBlock'==_0x3f7249['type']&&_0x3f7249['data']['formatGroupId']==_0x3bb7f9['formatGroupId']&&_0x3f7249['subType']==_0x1695f2&&Lt(_0x3f7249,_0x5b68aa)&&(_0x5f6dbe(_0x3f7249['getRanges'](),_0x277a23)||_0x5f6dbe(_0x277a23,_0x3f7249['getRanges']()))){for(const _0x56210d of _0x277a23)_0x3f7249['addRange'](_0x56210d);return _0x3f7249;}const _0x386608=_0x2fdaf0(),_0x58dc33=_0x3212aa['id'],_0x16f075='formatBlock:'+_0x1695f2,_0x1a0f39=this['_setSuggestionData']({'id':_0x386608,'type':_0x16f075,'data':_0x3bb7f9,'createdAt':new Date(),'authorId':_0x58dc33,'attributes':_0x5b68aa});for(const _0x47f699 of _0x277a23)this['_addSuggestionMarker'](_0x16f075,_0x386608,_0x58dc33,_0x47f699,u['getMultiRangeId']());return _0x1a0f39;}['markDeletion'](_0x2be9d4,_0x2aa6f4=null,_0xd7c6fb={}){if(_0x2be9d4['isCollapsed'])return null;const _0x284418=this['editor']['plugins']['get']('Users')['me'],_0xc70010=new _0x270875(_0x2be9d4['start'],_0x2be9d4['end']);for(const {suggestion:_0x2d4ee0,meta:_0x3b77ae}of this['_findSuggestions'](_0xc70010,'insertion'))if(_0x3b77ae['isOwn']&&!_0x3b77ae['isNextTo']){if(_0x2d4ee0['isMultiRange']){const _0x511932=_0x2d4ee0['getRanges']()['filter'](_0x447121=>'$graveyard'!=_0x447121['root']['rootName']);_0x511932['every'](_0x140fc6=>_0xc70010['containsRange'](_0x140fc6,!0x0))&&_0x2d4ee0['discard']();if(_0x511932['some'](_0xbb18b1=>_0xbb18b1['containsRange'](_0xc70010,!0x0))){const _0x553314=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2aa6f4,'accept');return this['forceDefaultExecution'](()=>_0x553314([_0xc70010],null,_0xd7c6fb)),null;}}else{const _0x16b466=_0xc70010['getIntersection'](_0x2d4ee0['getFirstRange']());null!==_0x16b466&&_0x2d4ee0['_onDiscard']([_0x16b466],null,_0xd7c6fb);}}if(_0xc70010['detach'](),_0xc70010['isCollapsed']||'$graveyard'==_0xc70010['root']['rootName'])return null;let _0x104d7b=null,_0x42c906=_0xc70010['start'],_0x4c7c85=_0xc70010['end'];const _0x414fc6=this['_findSuggestions'](_0xc70010,'deletion');for(const {suggestion:_0x11e1b2,meta:_0x1d1e4c}of _0x414fc6){const _0x20d103=this['_model']['createRange'](_0x42c906,_0x4c7c85);if(_0x1d1e4c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d1e4c['containsRangeInObject']&&!_0x1d1e4c['isInsideObject'])){if(_0x11e1b2['isMultiRange']){if(!Lt(_0x11e1b2,_0xd7c6fb))continue;let _0x18197e=!0x0;for(const _0x1844e6 of _0x11e1b2['getRanges']()){if(_0x1844e6['containsRange'](_0x20d103,!0x0))return _0x11e1b2;_0x20d103['containsRange'](_0x1844e6)||(_0x18197e=!0x1);}_0x18197e&&_0x11e1b2['discard']();}else{const _0x14de36=_0x11e1b2['getFirstRange']();if(_0x14de36['containsRange'](_0x20d103,!0x0))return _0x11e1b2;if(!Lt(_0x11e1b2,_0xd7c6fb)){_0x20d103['containsRange'](_0x14de36)?_0x11e1b2['removeMarkers']():_0x14de36['containsPosition'](_0x42c906)?_0x42c906=_0x14de36['end']:_0x14de36['containsPosition'](_0x4c7c85)&&(_0x4c7c85=_0x14de36['start']);continue;}_0x42c906=_0x42c906['isBefore'](_0x14de36['start'])?_0x42c906:_0x14de36['start'],_0x4c7c85=_0x4c7c85['isAfter'](_0x14de36['end'])?_0x4c7c85:_0x14de36['end'],_0xd7c6fb=Object['assign']({},_0x11e1b2['attributes']),_0x104d7b?_0x14de36['start']['isBefore'](_0x104d7b['getFirstRange']()['start'])?(_0x104d7b['removeMarkers'](),_0x104d7b=_0x11e1b2):_0x11e1b2['removeMarkers']():_0x104d7b=_0x11e1b2;}}}if(_0x104d7b)return this['_setSuggestionRange'](_0x104d7b,this['_model']['createRange'](_0x42c906,_0x4c7c85)),_0x104d7b;{const _0xf3d003=_0x2fdaf0(),_0x4dc306=this['_model']['createRange'](_0x42c906,_0x4c7c85),_0x1be417=_0x284418['id'],_0x479701=_0x2aa6f4?'deletion:'+_0x2aa6f4:'deletion',_0x4796c0=this['_setSuggestionData']({'id':_0xf3d003,'type':_0x479701,'createdAt':new Date(),'authorId':_0x1be417,'attributes':_0xd7c6fb});return this['_addSuggestionMarker'](_0x479701,_0xf3d003,_0x1be417,_0x4dc306),_0x4796c0;}}['markMultiRangeDeletion'](_0x2ea8a1,_0x25d724='multi',_0x488df0={}){const _0x59b7b0=this['editor']['plugins']['get']('Users')['me'],_0x16d9b3=_0x2ea8a1['map'](_0x421cb0=>new _0x270875(_0x421cb0['start'],_0x421cb0['end'])),_0x57a9ba=new Set();for(const {suggestion:_0x266b8a,meta:_0x5bbb27}of this['_findSuggestions'](_0x16d9b3,'insertion'))_0x5bbb27['isOwn']&&!_0x5bbb27['isNextTo']&&_0x57a9ba['add'](_0x266b8a);for(const _0x1ee11e of _0x57a9ba)if(_0x1ee11e['isMultiRange']){const _0x5af466=_0x1ee11e['getRanges']();(!_0x1ee11e['attributes']||!_0x1ee11e['attributes']['skipNestingCheck'])&&(_0x5af466['every'](_0x5a4b7e=>_0x16d9b3['some'](_0x136082=>_0x136082['containsRange'](_0x5a4b7e,!0x0)))&&_0x1ee11e['discard']());if(_0x16d9b3['every'](_0xdee1dc=>_0x5af466['some'](_0x3ea0b0=>_0x3ea0b0['containsRange'](_0xdee1dc,!0x0)))){const _0x399cbb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25d724,'accept');return this['forceDefaultExecution'](()=>_0x399cbb(_0x2ea8a1,null,_0x488df0)),null;}}else{const _0x595064=_0x1ee11e['getFirstRange']();_0x16d9b3['some'](_0x10bc89=>_0x10bc89['containsRange'](_0x595064,!0x0))&&_0x1ee11e['discard']();if(_0x16d9b3['every'](_0x14d5cc=>_0x595064['containsRange'](_0x14d5cc,!0x0))){const _0x4aad15=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25d724,'accept');return this['forceDefaultExecution'](()=>_0x4aad15(_0x16d9b3,null,_0x488df0)),null;}}const _0x1e1400=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25d724,'join');let _0x2bda75=null;for(const _0x9d8e64 of this['getSuggestions']())if(_0x9d8e64['author']['id']==_0x59b7b0['id']&&_0x9d8e64['isInContent']&&'deletion'==_0x9d8e64['type']&&_0x9d8e64['subType']==_0x25d724&&Lt(_0x9d8e64,_0x488df0)&&(_0x1e1400(_0x9d8e64['getRanges'](),_0x16d9b3)||_0x1e1400(_0x16d9b3,_0x9d8e64['getRanges']()))){if(_0x2bda75){if(_0x9d8e64['commentThread']&&_0x9d8e64['commentThread']['length'])continue;for(const _0xf26065 of _0x9d8e64['getRanges']())_0x2bda75['isIntersectingWithRange'](_0xf26065)||_0x2bda75['addRange'](_0xf26065);_0x9d8e64['removeMarkers']();}else{_0x2bda75=_0x9d8e64;for(const _0x21c346 of _0x16d9b3)_0x9d8e64['isIntersectingWithRange'](_0x21c346)||_0x9d8e64['addRange'](_0x21c346);}}if(_0x2bda75)return _0x2bda75;_0x57a9ba['clear']();for(const {suggestion:_0x56224d,meta:_0x5eb952}of this['_findSuggestions'](_0x16d9b3,'deletion'))_0x5eb952['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5eb952['containsRangeInObject']&&!_0x5eb952['isInsideObject'])&&Lt(_0x56224d,_0x488df0)&&_0x57a9ba['add'](_0x56224d);for(const _0x11ec03 of _0x57a9ba){const _0x1655d1=_0x11ec03['getRanges']();if(!_0x488df0||!_0x488df0['skipNestingCheck']){if(_0x16d9b3['every'](_0x2223a0=>_0x1655d1['some'](_0x17b435=>_0x17b435['containsRange'](_0x2223a0,!0x0))))return _0x11ec03;}(!_0x11ec03['attributes']||!_0x11ec03['attributes']['skipNestingCheck'])&&(_0x1655d1['every'](_0x1a6ede=>_0x16d9b3['some'](_0x5d38e1=>_0x5d38e1['containsRange'](_0x1a6ede,!0x0)))&&_0x11ec03['discard']());}const _0x1390e9=_0x2fdaf0(),_0xc63cbd=_0x59b7b0['id'],_0x26126e='deletion:'+_0x25d724,_0x3a911f=this['_setSuggestionData']({'id':_0x1390e9,'type':_0x26126e,'createdAt':new Date(),'authorId':_0xc63cbd,'attributes':_0x488df0});for(const _0x88f7b8 of _0x16d9b3)_0x88f7b8['detach'](),_0x88f7b8['isCollapsed']||'$graveyard'==_0x88f7b8['root']['rootName']||this['_addSuggestionMarker'](_0x26126e,_0x1390e9,_0xc63cbd,_0x88f7b8,u['getMultiRangeId']());return _0x3a911f;}['markAttributeChange'](_0x498cc8,_0x5e2dc7,_0x18cb0e,_0x5de8f1,_0x2d1684){if(_0x498cc8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5ca93a=this['editor']['plugins']['get']('Users')['me']['id'],_0x22a691=Array['from'](this['_suggestions']['values']())['filter'](_0x4ffa54=>'attribute'==_0x4ffa54['type']&&_0x4ffa54['data']['key']==_0x5e2dc7&&_0x4ffa54['isIntersectingWithRange'](_0x498cc8));if('default'===this['_trackFormatChanges']){const _0x7b7f31=this['_findSuggestions'](_0x498cc8,'insertion')['filter'](({meta:_0x523e2a})=>_0x523e2a['isOwn']&&!_0x523e2a['isInsideObject']&&!_0x523e2a['isNextTo'])['map'](({suggestion:_0x1495b7})=>_0x1495b7);_0x22a691['unshift'](..._0x7b7f31);}const _0x59334b=new Map([[_0x498cc8,_0x18cb0e]]);for(const _0x130240 of _0x22a691){const _0x464510='attribute'==_0x130240['type']?_0x130240['data']['oldValue']:void 0x0,_0x5a4da3=_0x130240['getFirstRange'](),_0x262f66=Array['from'](_0x59334b['keys']())['find'](_0x5ca382=>_0x5ca382['isIntersecting'](_0x5a4da3));if(!_0x262f66)continue;const _0x475e10=_0x262f66['getDifference'](_0x5a4da3);this['_isBlockAttribute'](_0x5e2dc7)&&'insertion'==_0x130240['type']&&0x0!=_0x475e10['length']||(_0x59334b['delete'](_0x262f66),_0x475e10['forEach'](_0x4a2dc2=>{_0x59334b['set'](_0x4a2dc2,_0x18cb0e);}),'insertion'!=_0x130240['type']&&_0x464510!=_0x5de8f1&&_0x59334b['set'](_0x262f66['getIntersection'](_0x5a4da3),_0x464510));}const _0x4c3a35=[];for(const [_0x5dbc4d,_0x32fa09]of _0x59334b){const _0x5dc452=_0x2fdaf0(),_0x1db0ba={'key':_0x5e2dc7,'oldValue':_0x32fa09,'newValue':_0x5de8f1};_0x5e2dc7['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':_0x5e2dc7});const _0xd35f25=('attribute:'+(_0x5e2dc7+'|'+Vt({'newValue':_0x5de8f1})))['substring'](0x0,0x3c),_0x271fe6=this['_setSuggestionData']({'id':_0x5dc452,'type':_0xd35f25,'data':_0x1db0ba,'createdAt':new Date(),'authorId':_0x5ca93a,'attributes':_0x2d1684});_0x4c3a35['push'](_0x271fe6),this['_addSuggestionMarker'](_0xd35f25,_0x5dc452,_0x5ca93a,_0x5dbc4d);}return _0x4c3a35;}['enableDefaultAttributesIntegration'](_0x1a31fc){this['enableCommand'](_0x1a31fc,(_0x5a458a,..._0x163be4)=>{this['_recordAttributeChanges'](()=>{_0x5a458a(..._0x163be4);});});}['registerBlockAttribute'](_0x460176){this['_blockAttributeKeys']['add'](_0x460176);}['registerInlineAttribute'](_0x23ec49){this['_inlineAttributeKeys']['add'](_0x23ec49);}['_getAttributeKey'](_0x497aef){return'attribute'==_0x497aef['type']?_0x497aef['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xbdea5d,_0x78d910){const _0x52ae8d=_0xbdea5d['getFirstMarker']();this['_model']['change'](_0x5089cf=>{_0x5089cf['updateMarker'](_0x52ae8d,{'range':_0x78d910});});}['_addThreadToSuggestion'](_0x3d4843){const _0x525deb=_0x3d4843['id'],_0x152083=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x525deb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x152083,'threadId':_0x525deb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x39e94e=this['_commentsRepository']['getCommentThread'](_0x525deb);_0x39e94e['unbind']('isRemovable'),_0x39e94e['isRemovable']=!0x1,_0x3d4843['commentThread']=_0x39e94e;}['_checkSuggestionCorrectness'](_0x35c2fb,_0x107136,_0x497787,_0x48ff1c){if(_0x35c2fb['type']!=_0x107136||_0x35c2fb['subType']!=_0x497787||_0x35c2fb['creator']['id']!=_0x48ff1c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5e8795('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x274ee4,_0x198e8d){const _0x44c164=_0x274ee4['getFirstRange']();if(_0x198e8d['isEqual'](_0x44c164))_0x274ee4['removeMarkers']();else{if(_0x44c164['containsRange'](_0x198e8d)){const _0x411754=this['_model']['createPositionAt'](_0x198e8d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x274ee4,this['_model']['createRange'](_0x44c164['start'],_0x411754));const _0x6cd32a=_0x2fdaf0(),_0x2434c8=_0x274ee4['creator']['id'],_0x5e6219=_0x274ee4['type']+':'+_0x274ee4['subType'];this['_setSuggestionData']({'id':_0x6cd32a,'type':_0x5e6219,'createdAt':new Date(),'authorId':_0x2434c8,'data':_0x274ee4['data'],'attributes':_0x274ee4['attributes']});const _0x1964de=this['_model']['createPositionAt'](_0x198e8d['end']['parent'],'after'),_0x2583a9=this['_model']['createRange'](_0x1964de,_0x44c164['end']);this['_addSuggestionMarker'](_0x5e6219,_0x6cd32a,_0x2434c8,_0x2583a9);}else{if(_0x44c164['containsPosition'](_0x198e8d['start'])){const _0x467d17=this['_model']['createPositionAt'](_0x198e8d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x274ee4,this['_model']['createRange'](_0x44c164['start'],_0x467d17));}else{const _0x2328d6=this['_model']['createPositionAt'](_0x198e8d['end']['parent'],'after');this['_setSuggestionRange'](_0x274ee4,this['_model']['createRange'](_0x2328d6,_0x44c164['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1b59c3){for(const {suggestion:_0x1dad9e,meta:_0xbfe0f2}of this['_findSuggestions'](_0x1b59c3,'insertion')){if(!_0xbfe0f2['isOwn'])continue;const _0x18d69a=_0x1dad9e['getRanges']();for(const _0x1c29ea of _0x18d69a)if(!_0x1b59c3['getDifference'](_0x1c29ea)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2ec8b8){const _0x43e177=this['editor']['plugins']['get']('Users')['getUser'](_0x2ec8b8);if(!_0x43e177)throw new _0x5e8795('track-changes-user-not-found',this);return _0x43e177;}['_getExternalAuthor'](_0x1631a0){const _0x4f6d42=this['editor']['plugins']['get']('Users'),_0x41ce76=_0x2950be('external:'+_0x1631a0),_0xbb0d37=_0x4f6d42['getUser'](_0x41ce76);return _0xbb0d37||_0x4f6d42['addUser']({'id':_0x41ce76,'name':_0x1631a0});}['_createSuggestion'](_0x1fe008,_0xe4bd1a,_0x2f57d7,_0x269bbd,_0x55b466){const _0x22306a=this['_getAuthorFromId'](_0x269bbd),_0x411a1f=this['_suggestionFactory']['buildSuggestion'](_0x1fe008,_0xe4bd1a,_0x2f57d7,_0x22306a,_0x55b466,_0x30c76c=>{this['_updateSuggestionData'](_0x2f57d7,{'attributes':_0x30c76c});const _0x47d2d7=this['getSuggestion'](_0x2f57d7);this['_joinWithAdjacentSuggestions'](new Set([_0x47d2d7])),this['_refreshSuggestionsChain'](new Set([_0x47d2d7]));});return this['listenTo'](_0x411a1f,'accept',()=>{this['_updateSuggestionData'](_0x2f57d7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x411a1f,'discard',()=>{this['_updateSuggestionData'](_0x2f57d7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f57d7,_0x411a1f),this['_suggestionState']['set'](_0x411a1f,'notReady'),_0x411a1f;}['_splitMarkerName'](_0x4e2aa9){const _0x73a395=_0x4e2aa9['split'](':');return{'group':_0x73a395[0x0],'type':_0x73a395[0x1],'subType':_0x73a395['length']>=0x5?_0x73a395[0x2]:null,'id':_0x73a395['length']<0x5?_0x73a395[0x2]:_0x73a395[0x3],'authorId':_0x73a395['length']<0x5?_0x73a395[0x3]:_0x73a395[0x4],'markerCount':0x6==_0x73a395['length']?_0x73a395[0x5]:null};}['_breakSuggestionMarker'](_0x5b7c7d,_0xb00e5a,_0x577d0e){const _0x3a08d9=_0x5b7c7d['getFirstRange'](),_0x1d6984=_0x3a08d9['start'],_0x2e6e76=_0x3a08d9['end'];this['_setSuggestionRange'](_0x5b7c7d,this['_model']['createRange'](_0x1d6984,_0xb00e5a));const _0x14eb19=_0x2fdaf0(),_0x22e16e=_0x5b7c7d['creator']['id'],_0x3dc088=_0x5b7c7d['type']+(_0x5b7c7d['subType']?':'+_0x5b7c7d['subType']:'');this['_setSuggestionData']({'id':_0x14eb19,'type':_0x3dc088,'createdAt':new Date(),'authorId':_0x22e16e,'originalSuggestionId':_0x5b7c7d['id'],'attributes':_0x5b7c7d['attributes'],'data':_0x5b7c7d['data']});const _0x3a66f0=this['_getAttributeKey'](_0x5b7c7d);('formatBlock'==_0x5b7c7d['type']||_0x3a66f0&&this['_isBlockAttribute'](_0x3a66f0))&&(_0x577d0e=this['_model']['createPositionBefore'](_0x577d0e['parent'])),this['_addSuggestionMarker'](_0x3dc088,_0x14eb19,_0x22e16e,this['_model']['createRange'](_0x577d0e,_0x2e6e76));}['_findSuggestions'](_0x25d493,_0x9931=null){const _0x1fddf2=[],_0x1c2e71=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x25d493)||(_0x25d493=[_0x25d493]);for(const _0x23213b of this['getSuggestions']()){if(!_0x23213b['isInContent'])continue;if(_0x9931&&_0x23213b['type']!=_0x9931)continue;let _0x22ccc4=!0x1;for(const _0x2b705a of _0x23213b['getRanges']()){for(const _0x3b16d1 of _0x25d493){const _0x3bef38=_0x3b16d1['start']['isEqual'](_0x2b705a['end'])||_0x3b16d1['end']['isEqual'](_0x2b705a['start']);if(_0x3bef38||_0x3b16d1['getIntersection'](_0x2b705a)){const _0x444f09=_0x3b16d1['containsRange'](_0x2b705a)&&Rt(this['_model']['schema'],_0x2b705a['start'],_0x3b16d1),_0x192477=_0x2b705a['containsRange'](_0x3b16d1)&&Rt(this['_model']['schema'],_0x3b16d1['start'],_0x2b705a);_0x1fddf2['push']({'suggestion':_0x23213b,'meta':{'isOwn':_0x1c2e71==_0x23213b['author'],'isNextTo':_0x3bef38,'isInsideObject':_0x444f09,'containsRangeInObject':_0x192477}}),_0x22ccc4=!0x0;break;}}if(_0x22ccc4)break;}}return _0x1fddf2;}['_addSuggestionMarker'](_0x52a67c,_0x4a84c6,_0x2cc24c,_0x2d6d95,_0xa1039){this['_model']['change'](_0x4ea84c=>{let _0x3d94ff='suggestion:'+_0x52a67c+':'+_0x4a84c6+':'+_0x2cc24c;_0xa1039&&(_0x3d94ff=_0x3d94ff+':'+_0xa1039),_0x4ea84c['addMarker'](_0x3d94ff,{'range':_0x2d6d95,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x10481c){const _0x4e2375=_0x10481c['previous'],_0x4c0e0e=_0x10481c['next'];_0x10481c['previous']=null,_0x10481c['next']=null,null!=_0x4e2375&&_0x4e2375['next']==_0x10481c&&(_0x4e2375['next']=_0x4c0e0e),null!=_0x4c0e0e&&_0x4c0e0e['previous']==_0x10481c&&(_0x4c0e0e['previous']=_0x4e2375),'ready'==this['_suggestionState']['get'](_0x10481c)&&(this['_suggestionState']['set'](_0x10481c,'removed'),this['fire']('suggestionUnloaded',_0x10481c,_0x4e2375,_0x4c0e0e));}['_setSuggestionData'](_0x499b58){const _0x4c2f71=_0x499b58['id'],_0x380444=this['addSuggestionData'](_0x499b58);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5b9ae7=this['editor']['plugins']['get']('PendingActions'),_0x335193=_0x380444['hasComments'],_0x498ddd=_0x380444['subType']?_0x380444['type']+':'+_0x380444['subType']:_0x380444['type'],_0x21b79c=this['editor']['locale'],_0x40391c=_0x5b9ae7['add'](o(_0x21b79c,'PENDING_ACTION_SUGGESTION')),_0x38a5a7={'id':_0x4c2f71,'type':_0x498ddd,'hasComments':_0x335193,'data':_0x499b58['data']||null,'originalSuggestionId':_0x499b58['originalSuggestionId']||null,'attributes':_0x380444['attributes']};this['_adapter']['addSuggestion'](_0x38a5a7)['then'](_0x1b2d55=>{_0x380444['_saved']=!0x0,_0x5b9ae7['remove'](_0x40391c),_0x1b2d55&&_0x1b2d55['createdAt']&&(this['_suggestions']['get'](_0x4c2f71)['createdAt']=_0x1b2d55['createdAt']);})['catch'](_0x490f2e=>{throw _0x5e3bbf('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x380444['discard']();}),_0x380444['stopListening'](),this['_suggestions']['delete'](_0x380444['id']),this['_suggestionState']['delete'](_0x380444),_0x490f2e;});}return _0x380444;}['_isBlockAttribute'](_0x457549){return this['_blockAttributeKeys']['has'](_0x457549);}['_updateSuggestionData'](_0x1b0e5b,_0x5aadaf){const _0x516fc4=this['editor']['plugins']['get']('PendingActions'),_0x579924=this['getSuggestion'](_0x1b0e5b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x579924['_saved']){const _0x3949ab=_0x516fc4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1b0e5b,_0x5aadaf)['then'](()=>{_0x516fc4['remove'](_0x3949ab);});}else _0x579924['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1b0e5b,_0x5aadaf);});}}['_getSuggestionData'](_0x13ee3a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5e8795('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x13ee3a);}['_handleNewSuggestionMarker'](_0x3fa662){const {id:_0xac54dd,type:_0x2407cd,subType:_0x5c1480,authorId:_0x49210c}=this['_splitMarkerName'](_0x3fa662),_0x27504f=this['_suggestions']['get'](_0xac54dd)||this['_createSuggestion'](_0x2407cd,_0x5c1480,_0xac54dd,_0x49210c,{});switch(this['_checkSuggestionCorrectness'](_0x27504f,_0x2407cd,_0x5c1480,_0x49210c),this['_suggestionState']['get'](_0x27504f)){case'notReady':this['_getSuggestionData'](_0xac54dd)['then'](_0x1e0f01=>{let _0x1d2611=Promise['resolve']();_0x1e0f01['hasComments']&&(_0x1d2611=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xac54dd})),_0x1d2611['then'](()=>{this['addSuggestionData'](_0x1e0f01)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x27504f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xac54dd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x27504f,'ready'),this['fire']('suggestionLoaded',_0x27504f);break;case'ready':this['fire']('suggestionChanged',_0x27504f);}return _0x27504f['addMarkerName'](_0x3fa662),_0x27504f;}['_refreshSuggestionsChain'](_0x51e7c1){const _0x252e34=Array['from'](_0x51e7c1),_0x508733=_0x252e34['filter'](_0x58af5a=>'attribute'==_0x58af5a['type']);this['_refreshAttributeSuggestionsChain'](_0x508733);const _0x51a87c=_0x252e34['filter'](_0x5be69d=>!_0x5be69d['isMultiRange']&&'attribute'!=_0x5be69d['type']),_0xd1dfb8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a561c=>!_0x3a561c['isMultiRange']&&'attribute'!=_0x3a561c['type']),_0x2578d6=_0xd1dfb8['filter'](_0x4ec063=>!_0x51e7c1['has'](_0x4ec063)),_0x59462a=new Map(_0xd1dfb8['map'](_0x2eb699=>[_0x2eb699,this['_suggestionFactory']['getSuggestionCallback'](_0x2eb699['type'],_0x2eb699['subType'],'chain')])),_0x880d53=new Map(_0xd1dfb8['map'](_0x207514=>[_0x207514,_0x207514['getFirstRange']()])),_0x371e5b=new Set(),_0x261bdd=new Set();for(let _0x11edf8=0x0;_0x11edf8<_0x51a87c['length'];_0x11edf8++)_0x55ffef(_0x51a87c[_0x11edf8],_0x51a87c,_0x11edf8+0x1);for(let _0x108596=0x0;_0x108596<_0x51a87c['length'];_0x108596++)_0x55ffef(_0x51a87c[_0x108596],_0x2578d6,0x0);const _0x41f160=new Set();for(let _0x5bb1e9=0x0;_0x5bb1e9<_0x51a87c['length'];_0x5bb1e9++){const _0x4b8094=_0x51a87c[_0x5bb1e9];!_0x261bdd['has'](_0x4b8094)&&_0x4b8094['previous']&&(_0x41f160['add'](_0x4b8094['previous']),_0x4b8094['previous']['next']===_0x4b8094&&(_0x4b8094['previous']['next']=null),_0x4b8094['previous']=null),!_0x371e5b['has'](_0x4b8094)&&_0x4b8094['next']&&(_0x41f160['add'](_0x4b8094['next']),_0x4b8094['next']['previous']===_0x4b8094&&(_0x4b8094['next']['previous']=null),_0x4b8094['next']=null);}function _0x55ffef(_0x39fd92,_0x4fba75,_0x2c8a7b){for(let _0x3fe682=_0x2c8a7b;_0x3fe682<_0x4fba75['length'];_0x3fe682++){const _0x279b92=_0x2b5186(_0x39fd92,_0x4fba75[_0x3fe682]);_0x279b92&&(_0x279b92[0x0]['next']=_0x279b92[0x1],_0x279b92[0x1]['previous']=_0x279b92[0x0],_0x371e5b['add'](_0x279b92[0x0]),_0x261bdd['add'](_0x279b92[0x1]));}}function _0x2b5186(_0x1291e9,_0x44753a){if(_0x1291e9['author']['id']!==_0x44753a['author']['id'])return null;const _0x25b901=_0x59462a['get'](_0x1291e9)(_0x1291e9,_0x44753a,_0x880d53['get'](_0x1291e9),_0x880d53['get'](_0x44753a));if(!_0x25b901)return null;return _0x59462a['get'](_0x44753a)(_0x1291e9,_0x44753a,_0x880d53['get'](_0x1291e9),_0x880d53['get'](_0x44753a))?_0x25b901[0x1]['commentThread']&&_0x25b901[0x1]['commentThread']['length']?null:_0x25b901:null;}_0x41f160['size']&&this['_refreshSuggestionsChain'](_0x41f160);}['_refreshAttributeSuggestionsChain'](_0x46aaa0){if(0x0==_0x46aaa0['length'])return;const _0x515de=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49ba74=>'attribute'==_0x49ba74['type']&&_0x49ba74['_isDataLoaded']),_0x280c16=[],_0x38fd14=new Map();for(const _0x4f6dcc of _0x515de){const _0x2a789d=_0x2950be(_0x4f6dcc['attributes']);_0x38fd14['has'](_0x2a789d)||(_0x38fd14['set'](_0x2a789d,_0x280c16['length']),_0x280c16['push']([]));const _0x1846e5=_0x38fd14['get'](_0x2a789d);_0x280c16[_0x1846e5]['push'](_0x4f6dcc);}!(function(){_0x280c16['sort']((_0x10b493,_0x1d20d6)=>{const _0x1ac7ce=_0x10b493[0x0]['createdAt'],_0xee963=_0x1d20d6[0x0]['createdAt'];return _0x1ac7ce==_0xee963?_0x10b493[0x0]['attributes']['groupId']<_0x1d20d6[0x0]['attributes']['groupId']?-0x1:0x1:_0x1ac7ce<_0xee963?-0x1:0x1;});for(const _0x1d3e1a of _0x280c16)_0x1d3e1a['sort']((_0x35b13a,_0x55d0e0)=>_0x35b13a['id']<_0x55d0e0['id']?-0x1:0x1);}());for(let _0x1eab48=0x0;_0x1eab48<_0x280c16['length'];_0x1eab48++){if(0x0==_0x280c16[_0x1eab48]['length'])continue;const _0x296d07=[];for(let _0x22e0c4=_0x1eab48+0x1;_0x22e0c4<_0x280c16['length'];_0x22e0c4++)0x0!=_0x280c16[_0x22e0c4]['length']&&_0x145f49(_0x280c16[_0x1eab48],_0x280c16[_0x22e0c4])&&_0x296d07['push'](_0x22e0c4);for(const _0x441eba of _0x296d07)_0x280c16[_0x1eab48]=_0x280c16[_0x1eab48]['concat'](_0x280c16[_0x441eba]),_0x280c16[_0x441eba]=[];}for(const _0x139675 of _0x280c16)for(let _0x4f884f=0x0;_0x4f884f<_0x139675['length'];_0x4f884f++)_0x139675[_0x4f884f]['next']=_0x139675[_0x4f884f+0x1]||null;for(const _0x4109bc of _0x280c16)for(let _0x1f38fb=0x0;_0x1f38fb<_0x4109bc['length'];_0x1f38fb++)_0x4109bc[_0x1f38fb]['previous']=_0x4109bc[_0x1f38fb-0x1]||null;function _0x145f49(_0x57221f,_0x368cab){if(_0x57221f[0x0]['attributes']['groupId']!==_0x368cab[0x0]['attributes']['groupId']&&_0x57221f[0x0]['author']!==_0x368cab[0x0]['author'])return!0x1;if(!function(_0x582911,_0x1668a4){if(!_0x582911['hasComments']&&!_0x1668a4['hasComments'])return!0x0;if(_0x582911['hasComments']&&_0x1668a4['hasComments'])return!0x1;if(_0x582911['hasComments']&&_0x1668a4['createdAt']<_0x582911['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1668a4['hasComments']&&_0x582911['createdAt']<_0x1668a4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x57221f[0x0],_0x368cab[0x0]))return!0x1;const _0x35d620=Bt(_0x57221f[0x0]['attributes'],'groupId'),_0x1fd616=Bt(_0x368cab[0x0]['attributes'],'groupId');if(!_0x387080(_0x35d620,_0x1fd616))return!0x1;return!!_0x57221f['every'](_0x5df167=>_0x368cab['some'](_0x1cf42b=>_0x5df167['getFirstRange']()['isEqual'](_0x1cf42b['getFirstRange']())))&&_0x368cab['every'](_0x39f3b5=>_0x57221f['some'](_0x7de8bd=>_0x39f3b5['getFirstRange']()['isEqual'](_0x7de8bd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5696ee){const _0x4abd65=Array['from'](_0x5696ee),_0x5af5e9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x34b11b=_0x5af5e9['filter'](_0x2d7ab4=>!_0x5696ee['has'](_0x2d7ab4)),_0x33ed3a=new Map(_0x4abd65['map'](_0x57df11=>[_0x57df11,this['_suggestionFactory']['getSuggestionCallback'](_0x57df11['type'],_0x57df11['subType'],'join')])),_0x2f8bab=new Map(_0x5af5e9['map'](_0x68174=>[_0x68174,_0x68174['getRanges']()]));for(let _0x3b24d1=0x0;_0x3b24d1<_0x4abd65['length'];_0x3b24d1++){if(_0x5105ac(this,_0x4abd65[_0x3b24d1],_0x4abd65,_0x3b24d1+0x1))return!0x0;}for(let _0x3a02c9=0x0;_0x3a02c9<_0x4abd65['length'];_0x3a02c9++){if(_0x5105ac(this,_0x4abd65[_0x3a02c9],_0x34b11b,0x0))return!0x0;}return!0x1;function _0x5105ac(_0x5ebede,_0x916a24,_0x255ca7,_0x1c1be1){for(let _0x4c6953=_0x1c1be1;_0x4c6953<_0x255ca7['length'];_0x4c6953++){const _0x54e30e=_0x255ca7[_0x4c6953];if(_0x54e30e['type']!==_0x916a24['type']||_0x54e30e['author']['id']!==_0x916a24['author']['id']||_0x54e30e['subType']!==_0x916a24['subType'])continue;if(!Pt(_0x916a24,_0x54e30e,['groupId']))continue;if('attribute'==_0x916a24['type']&&_0x916a24['data']['oldValue']!=_0x54e30e['data']['oldValue'])continue;if('attribute'==_0x916a24['type']&&_0x5ebede['_isBlockAttribute'](_0x916a24['data']['key']))continue;if('formatBlock'==_0x916a24['type']){const _0x29432f=_0x5ebede['editor']['model'],_0x269e58=_0x916a24['getContainedElement']();if(_0x269e58&&(_0x29432f['schema']['isObject'](_0x269e58)||_0x29432f['schema']['isLimit'](_0x269e58)))continue;}const _0x4a43bb=_0x33ed3a['get'](_0x916a24),_0x213c38=_0x2f8bab['get'](_0x916a24),_0x20a0b6=_0x2f8bab['get'](_0x54e30e),_0x751dd8=_0x916a24['commentThread']&&_0x916a24['commentThread']['length'],_0x1af36b=_0x54e30e['commentThread']&&_0x54e30e['commentThread']['length'];if(!_0x751dd8&&_0x4a43bb(_0x20a0b6,_0x213c38))return _0x5ebede['_joinSuggestions'](_0x54e30e,_0x916a24),_0x2f8bab['delete'](_0x916a24),!0x0;if(!_0x1af36b&&_0x4a43bb(_0x213c38,_0x20a0b6))return _0x5ebede['_joinSuggestions'](_0x916a24,_0x54e30e),_0x2f8bab['delete'](_0x54e30e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d1549,_0x29d01e){if(_0x5d1549['isMultiRange']){for(const _0x2bec2b of _0x29d01e['getRanges']())_0x5d1549['addRange'](_0x2bec2b);}else{const _0x56b2c3=_0x29d01e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d1549,this['_model']['createRange'](_0x5d1549['getFirstRange']()['start'],_0x56b2c3));}_0x29d01e['removeMarkers']();}['_getMarkerAnnouncementText'](_0xba8b28,_0x2058b5){const _0x3d1d20=_0xba8b28['startsWith']('format')||_0xba8b28['startsWith']('attribute')?'FORMATTING':_0xba8b28['toUpperCase']();return o(this['editor']['locale'],_0x2058b5+'_'+_0x3d1d20+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x443279=this['editor'];if(!_0x443279['ui'])return;const {ariaLiveAnnouncer:_0x52dc4b}=_0x443279['ui'];_0x5b233c(this['_model'],({left:_0x8862f6,entered:_0x465304})=>{for(const _0x51c8e4 of _0x8862f6){const {group:_0x565d54,type:_0x30f367}=this['_splitMarkerName'](_0x51c8e4['name']);if('suggestion'===_0x565d54){_0x52dc4b['announce'](this['_getMarkerAnnouncementText'](_0x30f367,'LEAVE'));break;}}for(const _0x23b58d of _0x465304){const {group:_0x233eac,type:_0x145c83}=this['_splitMarkerName'](_0x23b58d['name']);if('suggestion'===_0x233eac){_0x52dc4b['announce'](this['_getMarkerAnnouncementText'](_0x145c83,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1205b0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x41bdaa=this['editor'],_0x4fe691=_0x41bdaa['model']['document']['differ']['getChanges']();if(0x0==_0x4fe691['length'])return!0x1;const _0x367d16=[],_0x5c339e=_0x4fe691['filter'](_0x35fb42=>'attribute'==_0x35fb42['type']),_0xaf4c17=_0x4fe691['filter'](_0x388372=>'insert'==_0x388372['type']&&'$text'!=_0x388372['name']),_0x189e65=_0x4fe691['filter'](_0xd41b3c=>'remove'==_0xd41b3c['type']&&'$text'!=_0xd41b3c['name']);for(const _0x21ab68 of _0x5c339e)_0x367d16['push']({'key':_0x21ab68['attributeKey'],'newValue':_0x21ab68['attributeNewValue'],'oldValue':_0x21ab68['attributeOldValue'],'range':Ot(_0x21ab68['range'],_0x41bdaa['model'])});for(const _0x45e6a2 of _0xaf4c17){const _0x1ca15d=_0x189e65['find'](_0x1c68c3=>_0x1c68c3['position']['isEqual'](_0x45e6a2['position']));_0x1ca15d&&_0x367d16['push']({'key':m,'newValue':_0x45e6a2['name'],'oldValue':_0x1ca15d['name'],'range':_0x41bdaa['model']['createRangeOn'](_0x45e6a2['position']['nodeAfter'])});}return 0x0!=_0x367d16['length']&&this['_reduceExistingSuggestions'](_0x1205b0,_0x367d16);}['_processAttributeSuggestions'](_0x1aba9f){let _0x30fd2e=!0x1;const _0x2fde51=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26a31c=>_0x26a31c['data']['newRange']&&_0x26a31c['name']['startsWith']('suggestion:attribute:'));for(const _0x4ca63e of _0x2fde51){const {subType:_0x545cc5,id:_0x5945ba}=this['_splitMarkerName'](_0x4ca63e['name']),_0x19d55=_0x545cc5['split']('|')[0x0];for(const _0x18a6b6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x18a6b6['id']!=_0x5945ba&&'attribute'==_0x18a6b6['type']&&_0x18a6b6['data']&&_0x18a6b6['data']['key']==_0x19d55&&_0x18a6b6['getFirstRange']()['isIntersecting'](_0x4ca63e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x18a6b6,_0x4ca63e['data']['newRange'],_0x1aba9f),_0x30fd2e=!0x0);}return _0x30fd2e;}['_recordAttributeChanges'](_0x1a54b3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1a54b3();}['_isRegisteredAttribute'](_0x43683d){const _0x353c6e=this['_isBlockAttribute'](_0x43683d),_0x4d25c8=this['_inlineAttributeKeys']['has'](_0x43683d);return _0x353c6e||_0x4d25c8;}['_reduceExistingSuggestions'](_0x55bdff,_0x2cf2fd){if(0x0==_0x2cf2fd['length'])return!0x1;let _0x5307d3=!0x1;for(const _0x36b1fd of _0x2cf2fd){const _0x414f53=this['_findSuggestions'](_0x36b1fd['range'],'attribute')['filter'](_0xd976f8=>!_0xd976f8['meta']['isNextTo'])['map'](_0x59ec08=>_0x59ec08['suggestion']),_0x130b1e=_0x2950be({'newValue':_0x36b1fd['newValue']});_0x414f53['filter'](_0x46c90c=>{const [_0x47608a,_0x31275d]=_0x46c90c['subType']['split']('|');return _0x47608a==_0x36b1fd['key']&&_0x31275d!=_0x130b1e;})['forEach'](_0x520e22=>{this['_reduceSuggestionAttributeRange'](_0x520e22,_0x36b1fd['range'],_0x55bdff),_0x5307d3=!0x0;});}return _0x5307d3;}['_reduceSuggestionAttributeRange'](_0x56133f,_0x97a7da,_0x2fb414){const _0x13f677=_0x56133f['getFirstRange']()['getDifference'](_0x97a7da);0x0!==_0x13f677['length']?0x1!==_0x13f677['length']?this['_breakSuggestionMarker'](_0x56133f,_0x97a7da['start'],_0x97a7da['end']):this['_setSuggestionRange'](_0x56133f,_0x13f677[0x0]):_0x2fb414['removeMarker'](_0x56133f['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x48dd6b){this['_editor']=_0x48dd6b,this['_model']=_0x48dd6b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xcb289e,_0x46a983,_0x218c43,_0x16b5b3,_0x2beb85,_0x5b9eef){return new u(this['_model'],{'type':_0xcb289e,'subType':_0x46a983,'id':_0x218c43,'author':_0x16b5b3,'creator':_0x16b5b3,'attributes':_0x2beb85,'onAttributesChange':_0x5b9eef,'onAccept':(..._0xc9b05f)=>this['getSuggestionCallback'](_0xcb289e,_0x46a983,'accept')(..._0xc9b05f),'onDiscard':(..._0x201d8e)=>this['getSuggestionCallback'](_0xcb289e,_0x46a983,'discard')(..._0x201d8e)});}['registerCustomCallback'](_0x46d38e,_0x3359ca,_0x126ccf,_0x3019c3){const _0x5bca34=_0x46d38e+':'+_0x3359ca+':'+_0x126ccf;this['_customCallbacks']['set'](_0x5bca34,_0x3019c3);}['getSuggestionCallback'](_0x59d459,_0x5899e1,_0xb97e59){const _0x271703=_0x59d459+':'+_0x5899e1+':'+_0xb97e59;return this['_customCallbacks']['get'](_0x271703)||this['_defaultCallbacks']['get'](_0x59d459+':'+_0xb97e59);}['_registerDefaultCallbacks'](){const _0x7de8f8=()=>!0x1,_0x66a2c9=_0x40c525=>{_0x40c525['sort']((_0x2e3817,_0x2582e5)=>_0x2e3817['start']['isBefore'](_0x2582e5['start'])?0x1:-0x1),this['_model']['change'](_0x11644c=>{for(const _0x4115a2 of _0x40c525){let _0x1a7f16;_0x1a7f16=_0x4115a2['end']['isAtEnd']&&_0x4115a2['end']['parent']==_0x4115a2['start']['nodeAfter']?_0x11644c['createSelection'](_0x4115a2['start']['nodeAfter'],'on'):_0x11644c['createSelection'](_0x4115a2),this['_model']['deleteContent'](_0x1a7f16,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2b65e9=(_0x33ad02,_0x977553)=>{_0x977553&&this['_model']['change'](_0x4ae31b=>{const {commandName:_0x3f1855,commandParams:_0x5a94b6=[]}=_0x977553,_0x1dc187=_0x33ad02['map'](_0x283d49=>(Tt(_0x283d49)&&(_0x283d49=this['_model']['createRange'](_0x283d49['end'])),_0x283d49))['filter'](_0x34dab5=>'$graveyard'!==_0x34dab5['root']['rootName']);if(_0x1dc187['length']<0x1)return;const _0x304a98=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc38f03=>_0x270875['fromRange'](_0xc38f03));_0x4ae31b['setSelection'](_0x1dc187);for(const _0x1be3f9 of this['_editor']['commands']['commands']())_0x1be3f9['refresh']();_0x5a94b6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3f1855,..._0x5a94b6);const _0x4df557=_0x304a98['filter'](_0x1b5796=>'$graveyard'!=_0x1b5796['root']['rootName']);_0x4df557['length']>0x0&&_0x4ae31b['setSelection'](_0x4df557);for(const _0x188703 of _0x304a98)_0x188703['detach']();});},_0x580541=(_0x3daffd,_0x5d422d)=>0x1==_0x3daffd['length']&&0x1==_0x5d422d['length']&&_0x3daffd[0x0]['end']['isEqual'](_0x5d422d[0x0]['start']),_0x35b1e1=(_0x4c8c32,_0x8aad53,_0x14b17c,_0x4df8f1)=>Ft(_0x4c8c32,_0x8aad53,_0x14b17c,_0x4df8f1,this['_model'])?[_0x4c8c32,_0x8aad53]:Ft(_0x8aad53,_0x4c8c32,_0x4df8f1,_0x14b17c,this['_model'])?[_0x8aad53,_0x4c8c32]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x7de8f8),this['_defaultCallbacks']['set']('insertion:discard',_0x66a2c9),this['_defaultCallbacks']['set']('insertion:join',_0x580541),this['_defaultCallbacks']['set']('insertion:chain',_0x35b1e1),this['_defaultCallbacks']['set']('deletion:accept',_0x66a2c9),this['_defaultCallbacks']['set']('deletion:discard',_0x7de8f8),this['_defaultCallbacks']['set']('deletion:join',_0x580541),this['_defaultCallbacks']['set']('deletion:chain',_0x35b1e1),this['_defaultCallbacks']['set']('formatInline:accept',_0x2b65e9),this['_defaultCallbacks']['set']('formatInline:discard',_0x7de8f8),this['_defaultCallbacks']['set']('formatInline:join',_0x580541),this['_defaultCallbacks']['set']('formatInline:chain',_0x7de8f8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2b65e9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x7de8f8),this['_defaultCallbacks']['set']('formatBlock:join',_0x580541),this['_defaultCallbacks']['set']('formatBlock:chain',_0x7de8f8),this['_defaultCallbacks']['set']('attribute:accept',_0x7de8f8),this['_defaultCallbacks']['set']('attribute:discard',(_0x2ad974,_0x1c995c)=>{if(!_0x1c995c)return;const _0x21c86b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1c78a7=>{if(_0x1c995c['key']==m)for(const _0x3f9b83 of _0x2ad974){const _0x1d5858=_0x3f9b83['start']['nodeAfter'],_0x59cfda=_0x1c995c['oldValue'];_0x1c78a7['rename'](_0x1d5858,_0x59cfda);}else{if(_0x21c86b['_isBlockAttribute'](_0x1c995c['key'])){for(const _0x4cbcb6 of _0x2ad974)void 0x0!==_0x1c995c['oldValue']?_0x1c78a7['setAttribute'](_0x1c995c['key'],_0x1c995c['oldValue'],_0x4cbcb6['start']['nodeAfter']):_0x1c78a7['removeAttribute'](_0x1c995c['key'],_0x4cbcb6['start']['nodeAfter']);}else{for(const _0x12b125 of _0x2ad974)_0x1c995c['oldValue']?_0x1c78a7['setAttribute'](_0x1c995c['key'],_0x1c995c['oldValue'],_0x12b125):_0x1c78a7['removeAttribute'](_0x1c995c['key'],_0x12b125);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x580541);}}function Rt(_0x4fc6da,_0x2ac816,_0x5d0976){for(const _0x5587d7 of _0x2ac816['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5587d7['root']==_0x5587d7)return!0x1;if(!_0x5d0976['containsItem'](_0x5587d7))return!0x1;if(_0x4fc6da['isObject'](_0x5587d7)||_0x4fc6da['isLimit'](_0x5587d7))return!0x0;}return!0x1;}function Tt(_0x191932){return _0x191932['end']['parent']==_0x191932['start']['nodeAfter']&&_0x191932['end']['isAtStart'];}function Et(_0x400f43,_0x5bd261,_0x615078,_0x11f043){const _0x4c45ed=_0x238345=>!_0x238345['item']['is']('$textProxy')&&!_0x11f043['isObject'](_0x238345['item']),_0x43d5d0=_0x400f43['start']['getLastMatchingPosition'](_0x4c45ed),_0x157be6=_0x400f43['end']['getLastMatchingPosition'](_0x4c45ed,{'direction':'backward'});return(!_0x400f43['start']['isEqual'](_0x43d5d0)||!_0x400f43['end']['isEqual'](_0x157be6))&&(_0x43d5d0['isBefore'](_0x157be6)?_0x615078['updateMarker'](_0x5bd261,{'range':_0x615078['createRange'](_0x43d5d0,_0x157be6)}):_0x615078['removeMarker'](_0x5bd261),!0x0);}function Vt(_0x1be410){return _0x2950be(_0x1be410);}function Ut(_0x14ce42){const _0x4c6637=_0x14ce42['start']['nodeAfter'];return _0x4c6637&&_0x4c6637['is']('element');}function Ot(_0x2e136f,_0x22edc8){return null==_0x2e136f['end']['nodeBefore']&&_0x2e136f['end']['parent']==_0x2e136f['start']['nodeAfter']?Gt(_0x2e136f['start']['nodeAfter'],_0x22edc8):_0x2e136f;}function Gt(_0x30717d,_0x1e54bd){const _0xd05231=_0x1e54bd['schema']['isObject'](_0x30717d)||_0x1e54bd['schema']['isSelectable'](_0x30717d);return _0x1e54bd['createRange'](_0x1e54bd['createPositionAt'](_0x30717d,'before'),_0xd05231?_0x1e54bd['createPositionAfter'](_0x30717d):_0x1e54bd['createPositionAt'](_0x30717d,'end'));}function Ft(_0x36d213,_0x1d7820,_0x578988,_0x3fd5b3,_0x125d23){if(!Pt(_0x36d213,_0x1d7820))return!0x1;if(_0x578988['end']['isEqual'](_0x3fd5b3['start']))return!0x0;if(_0x36d213['type']!=_0x1d7820['type'])return!0x1;if(!_0x578988['end']['isTouching'](_0x3fd5b3['start']))return!0x1;const _0x437f8e=_0x125d23['createRange'](_0x578988['end'],_0x3fd5b3['start'])['getWalker']();for(const _0x10c5d9 of _0x437f8e)if(['elementStart','elementEnd']['includes'](_0x10c5d9['type'])&&_0x125d23['schema']['isLimit'](_0x10c5d9['item']))return!0x1;return!0x0;}function Pt(_0xe757d0,_0x1fe07a,_0x4411d5=[]){return!(!_0xe757d0['_isDataLoaded']||!_0x1fe07a['_isDataLoaded'])&&_0x387080(Bt(_0xe757d0['attributes'],_0x4411d5),Bt(_0x1fe07a['attributes'],_0x4411d5));}function Lt(_0x83031b,_0x5dc7a6){const _0x5518ef=Ht(_0x83031b['attributes']),_0x4facd8=Ht(_0x5dc7a6);if(!_0x83031b['_isDataLoaded'])return!0x1;for(const _0x1140c of Object['keys'](_0x4facd8))if(!_0x387080(_0x5518ef[_0x1140c],_0x4facd8[_0x1140c]))return!0x1;return!0x0;}function Ht(_0x1a06fe){const _0x3dcfac=Object['assign']({},_0x1a06fe);return delete _0x3dcfac['skipNestingCheck'],delete _0x3dcfac['tablePasteChainId'],_0x3dcfac;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x31877e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3d6687,_0x17dc94,_0x4843d2,_0x430d2f){super(),this['model']=_0x17dc94,this['view']=_0x4843d2,this['commentThreadController']=_0x430d2f,this['_editor']=_0x3d6687,this['_acceptCommand']=_0x3d6687['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3d6687['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1b12aa,_0x251ae7)=>_0x1b12aa||_0x251ae7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xadae2=>_0xadae2&&this['_editor']['model']['canEditAt'](_0x17dc94['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x13fdfc=>_0x13fdfc&&this['_editor']['model']['canEditAt'](_0x17dc94['getRanges']())),this['_pendingAction']=null,_0x4843d2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4843d2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4843d2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4843d2,'change:isDirty',()=>{_0x4843d2['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 _0x1ed02c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1ed02c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5c3b0f{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x43e594,_0x115222,_0x4d5246,_0x31f1c8){super(_0x43e594),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x115222['authoredAt']),this['bind']('authoredAt')['to'](_0x115222),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x115222,this['_localUser']=_0x4d5246,this['_config']=_0x31f1c8,_0x31f1c8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3e82dd}=this['_config'];this['commentsListView']=new _0x3e82dd(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',_0x44d8b5=>_0x44d8b5+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x73e9bd,_0xaeffad)=>_0x73e9bd||!!_0xaeffad);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xf8f78d}=this['_config'],_0x4e1e89=new _0xf8f78d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3eab1d=_0x4e1e89['commentInputView'];return _0x4e1e89['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3eab1d,'value',(_0x5068f1,_0x2d5525,_0x555178)=>!!_0x555178||_0x5068f1&&!_0x2d5525),_0x3eab1d['on']('submit',(_0x491d89,_0x48db21)=>{this['fire']('addComment',_0x48db21),_0x3eab1d['editor']['setData']('');}),_0x3eab1d['on']('cancel',()=>this['focus']()),_0x3eab1d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4e1e89;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x4b5931,_0x4a54eb,_0x3d0203,_0x44abfd){super(_0x4b5931,_0x4a54eb,_0x3d0203,_0x44abfd),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5130fb=>_0x5130fb&&_0x5130fb[0x0]?_0x5130fb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x16b5e7,_0x3d11ae)=>{let _0x12bb3b='';for(const _0x10f608 of _0x16b5e7)_0x12bb3b+='<p>'+ds(_0x10f608['content'],_0x10f608['color'])+'</p>';return _0x3d11ae?_0x12bb3b:_0x3ec38f(_0x12bb3b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4b5931,'Accept\x20suggestion'),_0x2dc97d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4b5931,'Discard\x20suggestion'),_0x2dc97d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x454158(_0x4b5931,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1c94cd=this['bindTemplate'],_0x39660f=[{'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':_0x1c94cd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1c94cd['to']('authoredAt',_0x279be1=>this['_config']['formatDateTime'](_0x279be1))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x39660f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x42a56c={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1c94cd['if']('isActive','ck-suggestion-wrapper--active'),_0x1c94cd['to']('type',_0x23d54a=>'ck-suggestion-'+_0x23d54a),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x39660f}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x42a56c['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x42a56c;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x3c7e1f,_0x25bac9,_0x497651)=>{this['_descriptionElement']['innerHTML']=_0x497651;});}['_createButton'](_0x2b48bd,_0x45bb40,_0x385527,_0xde2630,_0x31f6d2){const _0x423ccb=new _0x2bc078(this['locale']);return _0x423ccb['set']({'label':_0x2b48bd,'icon':_0x45bb40,'tooltip':!0x0,'tooltipPosition':_0x31f6d2}),_0x423ccb['extendTemplate']({'attributes':{'class':_0x385527}}),_0x423ccb['on']('execute',()=>{this['fire'](_0xde2630,this['_model']['id']);}),_0x423ccb;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x371163,_0x2ee745){let _0x5bbfbd='';return _0x5bbfbd+=_0x371163['split']('*')['map']((_0x241e4d,_0x36b7ad)=>_0x36b7ad%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x241e4d)+'</span>':us(_0x241e4d))['join'](''),_0x2ee745&&(_0x5bbfbd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2ee745['value']+'\x22\x20title=\x22'+_0x2ee745['title']+'\x22></span>'),_0x5bbfbd;}function us(_0xc1041a){const _0x361c81=document['createElement']('span');return _0x361c81['innerText']=_0xc1041a,_0x361c81['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x2abede{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x24669a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x21ce39){super(_0x21ce39),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5022df=this['editor']['config'];_0x5022df['define']('trackChanges.SuggestionThreadView',ne),_0x5022df['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5022df['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xa761ce,_0x3e5e34){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xe36bf3,_0x206354]of this['_handleControllerBuffer']){const _0x52e20d=this['_suggestionToController']['has'](_0xe36bf3);_0x52e20d||_0x206354?_0x52e20d&&_0x206354&&this['_destroyController'](_0xe36bf3):this['_initializeController'](_0xe36bf3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xa761ce,_0x3e5e34);}['init'](){const _0x5e4426=this['editor'],_0x5422ad=_0x5e4426['plugins']['get']('TrackChangesEditing'),_0x2f62fd=_0x5e4426['plugins']['get']('Annotations'),_0x251124=_0x5e4426['plugins']['get']('EditorAnnotations'),_0x2e888b=_0x5e4426['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x251124['addSourceCollector'](()=>{const _0x39bbda=[];for(const [_0x46d9ae,_0x23f618]of Array['from'](this['_suggestionToController'])){const _0x52e2b9=_0x46d9ae['getAllAdjacentSuggestions'](),_0x372084=[];for(const _0x43dfa0 of _0x52e2b9){if(!_0x43dfa0['isInContent'])continue;if(_0x43dfa0['isMultiRange']){_0x372084['push'](..._0x43dfa0['getRanges']());continue;}const _0x3621c0=_0x43dfa0['getFirstRange']();if(_0x372084['length']>0x0){const _0x3a2597=_0x372084[0x0]['getJoined'](_0x3621c0);if(_0x3a2597){_0x372084[0x0]=_0x3a2597;continue;}}_0x372084['push'](_0x3621c0);}_0x39bbda['push']([_0x23f618['view'],_0x372084]);}return _0x39bbda;}),this['listenTo'](_0x5422ad,'suggestionLoaded',(_0x3f5096,_0x5451c9)=>{this['listenTo'](_0x5451c9,'change:previous',(_0x293854,_0x2dbe6c,_0x55199d,_0xe7d868)=>{_0x5451c9['isInContent']&&(null==_0x55199d?(this['_updateController'](_0xe7d868['head']),this['_handleSuggestionControllerDelayed'](_0x5451c9,!0x1)):(this['_updateController'](_0x55199d['head']),null==_0xe7d868&&this['_handleSuggestionControllerDelayed'](_0x5451c9,!0x0)));}),null!==_0x5451c9['previous']?this['_updateController'](_0x5451c9['head']):this['_handleSuggestionControllerDelayed'](_0x5451c9,!0x1);}),this['listenTo'](_0x5422ad,'suggestionUnloaded',(_0x12cbf2,_0x286f94,_0x250d4f)=>{this['stopListening'](_0x286f94,'change:previous'),this['_handleControllerBuffer']['delete'](_0x286f94),this['_suggestionToController']['has'](_0x286f94)&&this['_destroyController'](_0x286f94),_0x250d4f&&this['_updateController'](_0x250d4f['head']);}),this['listenTo'](_0x5422ad,'suggestionChanged',(_0x36e5b2,_0x214fcd)=>{this['_updateController'](_0x214fcd);}),this['listenTo'](_0x2f62fd,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e888b,'addComment',(_0xdfed96,{threadId:_0x25a616,isFromAdapter:_0xbe8176})=>{if(_0xbe8176||!_0x5422ad['hasSuggestion'](_0x25a616))return;const _0x15e017=_0x5422ad['getSuggestion'](_0x25a616);this['_suggestionToController']['get'](_0x15e017)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4cc87d=this['editor']['plugins']['get']('Annotations'),_0x2ff22a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7df99b=Array['from'](_0x4cc87d['activeAnnotations'],_0x2eda2c=>_0x2eda2c['innerView'])['filter'](_0x36d351=>this['_viewToController']['has'](_0x36d351)),_0x270f96=[];for(const _0x28be2b of _0x7df99b){const _0x4f14c6=this['_viewToController']['get'](_0x28be2b)['model']['getAllAdjacentSuggestions']();_0x270f96['push'](..._0x4f14c6['reduce']((_0x2c9213,_0x556eff)=>[..._0x2c9213,..._0x556eff['getMarkerNames']()],[]));}_0x2ff22a['activeMarkers']=_0x270f96;}['_addUIComponentsToFactory'](){const _0xa9bea4=this['editor'],_0x5a020e=_0xa9bea4['locale'],_0xbff74=o(_0x5a020e,'Track\x20changes'),_0x12ce60=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0xbff74,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5a020e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5a020e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5a020e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5a020e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x24f1ca of _0x12ce60)if(ae(_0x24f1ca)){const _0x40a881=_0xa9bea4['commands']['get'](_0x24f1ca['model']['commandName']);_0x24f1ca['model']['bind']('isOn','isEnabled')['to'](_0x40a881,'value','isEnabled');}_0xa9bea4['ui']['componentFactory']['add']('trackChanges',_0x472fe1=>this['_createToolbarButton'](_0x472fe1,_0x12ce60,_0xbff74)),_0xa9bea4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1b1d1d=>this['_createMenuBarMenu'](_0x1b1d1d,_0x12ce60,_0xbff74));}['_createToolbarButton'](_0x3e385b,_0x25f950,_0x3737bf){const _0x2b37dd=zt(_0x3e385b,Zt),_0x4d2368=this['editor']['commands']['get']('trackChanges');_0x2b37dd['buttonView']['set']({'tooltip':_0x3737bf,'label':_0x3737bf,'icon':ie}),_0x2b37dd['buttonView']['bind']('isOn')['to'](_0x4d2368,'value'),_0x2b37dd['buttonView']['on']('execute',()=>{_0x4d2368['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2b37dd,_0x25f950,{'role':'menu'});const _0x173be5=[];for(const _0x407270 of _0x25f950)ae(_0x407270)&&_0x173be5['push'](this['editor']['commands']['get'](_0x407270['model']['commandName']));const _0x18c2d7=_0x2b37dd['buttonView'];return _0x18c2d7['actionView']['unbind']('isEnabled'),_0x18c2d7['arrowView']['unbind']('isEnabled'),_0x18c2d7['actionView']['bind']('isEnabled')['to'](_0x4d2368,'isEnabled'),_0x18c2d7['arrowView']['bind']('isEnabled')['toMany'](_0x173be5,'isEnabled',(..._0x8de328)=>_0x8de328['some'](_0xc38838=>_0xc38838)),_0x2b37dd['on']('execute',_0x22e7d8=>{this['editor']['execute'](_0x22e7d8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b37dd;}['_createMenuBarMenu'](_0x502f5c,_0xc97d6,_0x46ef19){const _0x15a36d=new Kt(_0x502f5c),_0x22d733=this['editor']['commands']['get']('trackChanges');_0x15a36d['buttonView']['set']({'label':_0x46ef19,'icon':ie});const _0x4f7257=new Qt(_0x502f5c);for(const _0x17e61b of _0xc97d6){if('separator'==_0x17e61b['type']){_0x4f7257['items']['add'](new Jt(_0x502f5c));continue;}const _0x31c50d=new Xt(_0x502f5c,_0x15a36d),_0x3d6bd3=new Yt(_0x502f5c),_0xbfab56=_0x17e61b['model'];_0x3d6bd3['bind'](...Object['keys'](_0xbfab56))['to'](_0xbfab56),_0x3d6bd3['delegate']('execute')['to'](_0x15a36d),_0x3d6bd3['on']('execute',()=>{this['editor']['execute'](_0xbfab56['commandName']),this['editor']['editing']['view']['focus']();}),_0x31c50d['children']['add'](_0x3d6bd3),_0x4f7257['items']['add'](_0x31c50d);}return _0x15a36d['bind']('isEnabled')['to'](_0x22d733,'isEnabled'),_0x15a36d['panelView']['children']['add'](_0x4f7257),_0x15a36d;}['_initializeController'](_0x41077f){const _0x7c493c=this['editor'],_0x189adc=_0x7c493c['config'],_0x30869c=_0x7c493c['plugins']['get']('Annotations'),_0x1976d2=_0x7c493c['plugins']['get']('CommentsRepository'),_0x4cd26=_0x7c493c['plugins']['get']('EditorAnnotations'),_0x40a9fa=_0x7c493c['plugins']['get'](_0x24669a)['me'],_0x2482c5=_0x189adc['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x46ceaa,CommentThreadInputView:_0x447b32}=_0x7c493c['plugins']['get']('CommentsUI');let _0x49b891,_0x144edb;this['_annotationViews']['has'](_0x41077f['id'])?(_0x144edb=this['_annotationViews']['get'](_0x41077f['id']),_0x49b891=_0x144edb['mainView']):(_0x49b891=new _0x2482c5(_0x7c493c['locale'],_0x41077f,_0x40a9fa,{'disableComments':this['_disableComments'],'editorConfig':_0x189adc['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x189adc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x189adc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x189adc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5022d4(_0x189adc['get']('locale')),'CommentView':_0x189adc['get']('comments')['CommentView'],'CommentsListView':_0x46ceaa,'CommentThreadInputView':_0x447b32}),_0x49b891['acceptButton']['on']('execute',()=>{_0x7c493c['editing']['view']['focus']();}),_0x49b891['discardButton']['on']('execute',()=>{_0x7c493c['editing']['view']['focus']();}),_0x144edb=_0x30869c['createAnnotationView'](this['editor']['locale'],_0x49b891),_0x144edb['bind']('isDirty')['to'](_0x49b891,'isDirty'),_0x144edb['bind']('length')['to'](_0x49b891),_0x144edb['bind']('type')['to'](_0x49b891,'type',_0x2d6f51=>'suggestion-'+_0x2d6f51),this['_annotationViews']['set'](_0x41077f['id'],_0x144edb));const _0x4435e2=_0x1976d2['createCommentThreadController'](_0x41077f['commentThread'],_0x49b891),_0x3c1ffd=new oe(_0x7c493c,_0x41077f,_0x49b891,_0x4435e2),_0x16b877=_0x41077f['getAllAdjacentSuggestions']()['filter'](_0x4f2a30=>_0x4f2a30['isInContent']);_0x49b891['descriptionParts']=_0x7c493c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16b877),this['_suggestionToController']['set'](_0x41077f,_0x3c1ffd),this['_viewToController']['set'](_0x49b891,_0x3c1ffd);const _0x23a326=_0x30869c['createAnnotation']({'view':_0x144edb,'target':()=>{const _0x4c9888=[],_0xf0719e=_0x41077f['getAllAdjacentSuggestions']()['filter'](_0x184654=>_0x184654['isInContent']);for(const _0x338d50 of _0xf0719e)_0x4c9888['push'](..._0x338d50['getMarkers']());return _0x8aa956(_0x7c493c['editing'],_0x4c9888);},'type':()=>'suggestion-'+_0x3c1ffd['view']['type']});_0x1976d2['_bindAnnotationToEditors'](_0x49b891,_0x23a326),_0x30869c['add'](_0x23a326),_0x4cd26['registerAnnotation'](_0x23a326);}['_destroyController'](_0x463f32){const _0x4a9bc8=this['editor']['plugins']['get']('CommentsRepository'),_0xea6495=this['editor']['plugins']['get']('Annotations'),_0x3950c5=this['_suggestionToController']['get'](_0x463f32),_0x53aefd=_0x3950c5['view'],_0x1f4309=_0xea6495['getByInnerView'](_0x53aefd);_0x4a9bc8['_unbindEditors'](_0x53aefd),_0x1f4309&&_0xea6495['remove'](_0x1f4309),this['_suggestionToController']['delete'](_0x463f32),this['_viewToController']['delete'](_0x53aefd),_0x3950c5['destroy']();}['_updateController'](_0xba31c7){if(!_0xba31c7['isInContent']||!this['_suggestionToController']['has'](_0xba31c7))return;const _0x4a8c65=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59f235=this['_suggestionToController']['get'](_0xba31c7),_0xaf6234=_0xba31c7['getAllAdjacentSuggestions']();_0x59f235['view']['descriptionParts']=_0x4a8c65['descriptionFactory']['getDescriptions'](_0xaf6234);}['destroy'](){for(const _0x8fd989 of this['_suggestionToController']['keys']())this['_destroyController'](_0x8fd989);for(const _0x5ab330 of this['_annotationViews']['values']())_0x5ab330['mainView']['destroy']();super['destroy']();}}function ae(_0xc06b4c){return'model'in _0xc06b4c;}class k extends _0x2abede{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x33c2a4){this['editor']['plugins']['get'](p)['adapter']=_0x33c2a4;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5103db){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5103db);}['getSuggestions']({skipNotAttached:_0x39a273=!0x1,toJSON:_0x476304=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x39a273,'toJSON':_0x476304});}['getSuggestion'](_0x7fcc5c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x7fcc5c);}}const T=['Pagination'];class P extends _0x2abede{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x400695=this['editor'];if(_0x400695['config']['define']('trackChangesData.editorCreator',_0x593c5e=>{const _0x45e432=_0x400695['model']['document']['getRootNames']()['reduce']((_0x5437bb,_0x103ae4)=>(_0x5437bb[_0x103ae4]='',_0x5437bb),{});return _0x400695['constructor']['create'](_0x45e432,_0x593c5e);}),'function'!=typeof _0x400695['config']['get']('trackChangesData')['editorCreator'])throw new _0x5e8795('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x43c101){return N(this['editor'],!0x0,_0x43c101);}['getDataWithDiscardedSuggestions'](_0x18d661){return N(this['editor'],!0x1,_0x18d661);}}class D extends _0x2abede{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x44ce24){super(_0x44ce24),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(_0x142a55){return void 0x0!==_0x142a55['getRootsAttributes'];}async function N(_0x1b5b89,_0x4dcfca,_0x570534){const _0x375820=_0x6f25b8(_0x1b5b89,T);_0x375820['plugins']['push'](p,D),_0x375820['rootsAttributes']=v(_0x1b5b89)?_0x1b5b89['getRootsAttributes']():void 0x0;const _0x36b670=document['createDocumentFragment'](),_0x2d3e1b=_0x1b5b89['config']['get']('trackChangesData')['editorCreator'],_0x3ba1eb=await _0x2d3e1b(_0x375820,()=>function(_0x585c87){const _0x37dc5d=document['createElement']('div');return _0x585c87['appendChild'](_0x37dc5d),_0x37dc5d;}(_0x36b670));!function(_0x5f1a00,_0x4af0ea){const _0x42dd53=_0x5f1a00['model']['document']['getRootNames']()['reduce']((_0x4e74bd,_0x690bf2)=>(_0x4e74bd[_0x690bf2]=_0x5f1a00['data']['get']({'rootName':_0x690bf2}),_0x4e74bd),{}),_0xd847cc=_0x5f1a00['plugins']['get']('Users')['users']['map'](_0x4391db=>({'id':_0x4391db['id'],'name':_0x4391db['name']})),_0x24f87e=_0x5f1a00['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x569e2c=_0x5f1a00['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45a94f=_0x4af0ea['plugins']['get']('Users'),_0x1fa182=_0x4af0ea['plugins']['get']('TrackChangesEditing'),_0xb1d1ba=_0x4af0ea['plugins']['get']('CommentsRepository');for(const _0x15f228 of _0xd847cc)_0x45a94f['getUser'](_0x15f228['id'])||_0x45a94f['addUser'](_0x15f228);_0x45a94f['me']||_0x45a94f['useAnonymousUser']();for(const _0x46b4ea of _0x569e2c)_0xb1d1ba['addCommentThread'](_0x46b4ea);for(const _0x4d57d1 of _0x24f87e)_0x1fa182['addSuggestionData'](_0x4d57d1);_0x4af0ea['data']['set'](_0x42dd53);}(_0x1b5b89,_0x3ba1eb),_0x3ba1eb['execute'](_0x4dcfca?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e9723=v(_0x3ba1eb)?_0x3ba1eb['getFullData'](_0x570534):_0x3ba1eb['data']['get'](_0x570534);return await _0x3ba1eb['destroy'](),_0x1e9723;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x52cd9d,PendingActions as _0x296178,icons as _0x238c1b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x368f48,ObservableMixin as _0x58e1c3,uid as _0x3792e7,insertToPriorityArray as _0x459c05,priorities as _0x1e1756,logWarning as _0xb90762,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5f153d,View as _0xe59a68,ButtonView as _0x435cf8,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5187f3,hashObject as _0x451b92,surroundingMarkersDetector as _0x31d5e2,trimHtml as _0x311db1,UserView as _0x3b7106,getDateTimeFormatter as _0x3e1822,getAllMarkersDomElementsSorted as _0x37d1f1,sanitizeEditorConfig as _0x540b79}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1c0325,LiveRange as _0x39eeea,LivePosition as _0x498ffa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x409113,toWidget as _0xef749a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x598dd3,set as _0x4c3a69,isEqual as _0x2de290,unset as _0x5876b5,omit as Bt}from'lodash-es';import{Delete as _0x33cc80,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5bb9a9,ShiftEnter as _0x2f0715}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x1ff5a2,_0x33f31c){super(_0x1ff5a2),this['_enabledCommands']=_0x33f31c,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 _0x677475 of this['editor']['commands']['commands']())_0x677475['affectsData']&&!this['_enabledCommands']['has'](_0x677475)&&_0x677475['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xf7bb87 of this['editor']['commands']['commands']())_0xf7bb87['affectsData']&&!this['_enabledCommands']['has'](_0xf7bb87)&&_0xf7bb87['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x59af50,_0x315f34){super(_0x59af50),this['_suggestions']=_0x315f34,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x20f8b4){const _0x9ad9f8=this['_suggestions']['get'](_0x20f8b4);if(!_0x9ad9f8)throw new _0x368f48('track-changes-accept-suggestion-not-found',this);const _0x6b27df=_0x9ad9f8['getRanges']();this['editor']['model']['canEditAt'](_0x6b27df)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x9ad9f8);}}class B extends ts{['_suggestions'];constructor(_0x2fd309,_0x574e47){super(_0x2fd309),this['_suggestions']=_0x574e47,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4d715f){const _0x2aef72=this['_suggestions']['get'](_0x4d715f);if(!_0x2aef72)throw new _0x368f48('track-changes-discard-suggestion-not-found',this);const _0x54a406=_0x2aef72['getRanges']();this['editor']['model']['canEditAt'](_0x54a406)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2aef72);}}function ss(_0x51087d){return _0x51087d['sort']((_0x47e1ca,_0x4700a0)=>'deletion'==_0x47e1ca['type']&&'deletion'!=_0x4700a0['type']?-0x1:'deletion'!=_0x47e1ca['type']&&'deletion'==_0x4700a0['type']?0x1:0x0);}function to(_0x44f6b2,_0x379e23){let _0x2a910b,_0x1c2dc2=0x0;const _0x1cc96b=[],_0x5ea628=_0x379e23['schema'];for(;_0x1c2dc2<_0x44f6b2['length'];){const _0x5e3096=_0x44f6b2[_0x1c2dc2],_0x4f3e90=_0x44f6b2[_0x1c2dc2+0x1];_0x2a910b||(_0x2a910b=_0x379e23['createPositionBefore'](_0x5e3096)),co(_0x379e23,_0x5e3096,_0x4f3e90)||(_0x1cc96b['push'](_0x379e23['createRange'](_0x2a910b,_0x5ea628['isObject'](_0x5e3096)?_0x379e23['createPositionAfter'](_0x5e3096):_0x379e23['createPositionAt'](_0x5e3096,'end'))),_0x2a910b=null),_0x1c2dc2++;}return _0x1cc96b;}function co(_0x5d70f4,_0x24edb7,_0x44a2c5){if(!_0x44a2c5)return!0x1;const _0x46669d=_0x5d70f4['createPositionAfter'](_0x24edb7),_0x5ed0d3=_0x5d70f4['createPositionBefore'](_0x44a2c5);return _0x46669d['isTouching'](_0x5ed0d3);}function rs(_0x40332f,_0x4293ba,_0x3508c4){for(;_0x3508c4['length'];){const _0x4801ea=_0x3508c4['splice'](0x0,0x64);_0x40332f['change'](()=>{for(const _0x1334e7 of _0x4801ea)_0x1334e7['isInContent']&&_0x4293ba['execute'](_0x1334e7['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x1616c1,_0x1ecab5,_0xfa1266){super(_0x1616c1),this['_command']=_0x1ecab5,this['_suggestions']=_0xfa1266,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x112ed8=Array['from'](this['_suggestions']['values']())['some'](_0x3bbc84=>_0x3bbc84['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x112ed8;}['execute'](){const _0x349232=ss(Array['from'](this['_suggestions']['values']()));for(const _0x44ea9a of _0x349232){const _0x169075=_0x44ea9a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x169075))return;}rs(this['editor']['model'],this['_command'],_0x349232);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x167125,_0x8d6db9,_0x245edc){super(_0x167125),this['_command']=_0x8d6db9,this['_suggestions']=_0x245edc,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4f3c66=this['editor']['model']['document']['selection'],_0x1daba4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x505a9b,_0x3163f5){const _0x242bd5=Array['from'](_0x505a9b['getRanges']()),_0x45926b=new Set();for(const _0x108950 of _0x3163f5)if(_0x108950['isInContent']){for(const _0x4e2808 of _0x242bd5)for(const _0x2b3caa of _0x108950['getRanges']())(_0x4e2808['isIntersecting'](_0x2b3caa)||_0x505a9b['isCollapsed']&&!_0x108950['isMultiRange']&&_0x108950['next']&&_0x2b3caa['end']['isTouching'](_0x4e2808['start']))&&_0x45926b['add'](_0x108950);}return _0x45926b;}(_0x4f3c66,_0x1daba4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x42654c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4f6c2c of _0x42654c){const _0xb5ce61=_0x4f6c2c['getRanges']();if(!this['editor']['model']['canEditAt'](_0xb5ce61))return;}rs(this['editor']['model'],this['_command'],_0x42654c);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x58e1c3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1687a3,_0x3c07a3){super(),this['id']=_0x3c07a3['id'],this['type']=_0x3c07a3['type'],this['subType']=_0x3c07a3['subType']||null,this['author']=_0x3c07a3['author'],this['creator']=_0x3c07a3['creator']||_0x3c07a3['author'],this['isExternal']=Boolean(_0x3c07a3['attributes']&&_0x3c07a3['attributes']['@external']),this['data']=null,this['_model']=_0x1687a3,this['_onAccept']=_0x3c07a3['onAccept'],this['_onDiscard']=_0x3c07a3['onDiscard'],this['_onAttributesChange']=_0x3c07a3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3c07a3['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 _0x219925=this;for(;_0x219925['previous'];)_0x219925=_0x219925['previous'];return _0x219925;}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'](_0x197e98){this['_markerNames']['add'](_0x197e98);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xacfcfb=>this['_model']['markers']['get'](_0xacfcfb))['filter'](_0x3a3258=>_0x3a3258);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2cc902=>{for(const _0x189788 of this['getMarkers']())_0x2cc902['removeMarker'](_0x189788);}),this['_markerNames']['clear']();}['removeMarker'](_0x4ee1d9){this['_model']['change'](_0x46933d=>{_0x46933d['removeMarker'](_0x4ee1d9);}),this['_markerNames']['delete'](_0x4ee1d9);}['addRange'](_0x8ac72){const _0x1e349a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1e349a),this['_model']['change'](_0xda7559=>{_0xda7559['addMarker'](_0x1e349a,{'range':_0x8ac72,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2b7d28){for(const _0x43ea28 of this['getRanges']())if(_0x43ea28['isIntersecting'](_0x2b7d28))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x534f9d=>_0x534f9d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x582d4f,_0x37fb0a)=>[..._0x582d4f,..._0x37fb0a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x30ed80=this['getRanges']();if(0x1!=_0x30ed80['length'])return null;const _0x47593f=_0x30ed80[0x0],_0x2fbf68=_0x47593f['start']['nodeAfter'],_0x566a9b=_0x47593f['end']['nodeBefore'];return _0x2fbf68 instanceof _0x1c0325?_0x2fbf68!=_0x566a9b?null:_0x2fbf68: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 _0x5d9f91=[];let _0x69ee1f=this['head'];for(;_0x69ee1f;)_0x5d9f91['push'](_0x69ee1f),_0x69ee1f=_0x69ee1f['next'];return _0x5d9f91;}['setAttribute'](_0x40e418,_0x12c436){const _0xb2dbd6=_0x598dd3(this['attributes']);_0x4c3a69(_0xb2dbd6,_0x40e418,_0x12c436),_0x2de290(_0xb2dbd6,this['attributes'])||(this['attributes']=_0xb2dbd6,this['_onAttributesChange'](_0xb2dbd6));}['removeAttribute'](_0x1b2c05){const _0x485291=_0x598dd3(this['attributes']);_0x5876b5(_0x485291,_0x1b2c05),_0x2de290(_0x485291,this['attributes'])||(this['attributes']=_0x485291,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 _0x3792e7()['substr'](0x1,0x5);}}function o(_0x2cfda0,_0x4c0d05,_0x4b3559){const t=_0x2cfda0['t'];switch(_0x4c0d05){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',_0x4b3559);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b3559);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b3559);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b3559);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b3559);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',_0x4b3559);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b3559);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',_0x4b3559);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b3559);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b3559);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b3559);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b3559);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b3559);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b3559);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b3559);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b3559);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b3559);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b3559);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b3559);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b3559);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b3559);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b3559);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b3559);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'},_0x4b3559);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b3559);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b3559);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b3559);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b3559);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b3559);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'},_0x4b3559);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b3559);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b3559);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b3559);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b3559);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'},_0x4b3559);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b3559);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'},_0x4b3559);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'},_0x4b3559);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b3559);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'},_0x4b3559);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b3559);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'},_0x4b3559);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b3559);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b3559);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b3559);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'},_0x4b3559);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x4c0d05;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x499d84,_0x116314){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x499d84,this['_locale']=_0x116314;}['getDescriptions'](_0x24d06d){const _0x4388f6=[],_0x3feab3=new Set(),_0x5643bd=new Set();for(let _0x230fa4=0x0;_0x230fa4<_0x24d06d['length'];_0x230fa4++){const _0xf5de43=_0x24d06d[_0x230fa4];if(!_0xf5de43['isInContent'])continue;const _0x1bd3a3=this['_handleCustomCallbackDescription'](_0xf5de43);if(_0x1bd3a3){if(null!=_0xf5de43['subType']){if(_0x3feab3['has'](_0xf5de43['subType']))continue;_0x3feab3['add'](_0xf5de43['subType']);}_0x4388f6['push'](_0x1bd3a3);}else{if('attribute'!=_0xf5de43['type'])'insertion'!=_0xf5de43['type']&&'deletion'!=_0xf5de43['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4388f6,_0xf5de43,_0x24d06d[_0x230fa4+0x1]);else{const _0x5cd7c3=_0xf5de43['data']['key'];if(_0x5643bd['has'](_0x5cd7c3))continue;_0x5643bd['add'](_0xf5de43['data']['key']),_0x5cd7c3==m?this['_handleRenameSuggestionDescription'](_0x4388f6,_0xf5de43):this['_handleAttributeSuggestionDescription'](_0x4388f6,_0xf5de43);}}}return this['_resolveDescriptionItems'](_0x4388f6);}['registerDescriptionCallback'](_0x398771){this['_customCallbacks']['push'](_0x398771);}['registerElementLabel'](_0x4f9a98,_0x18bd97,_0x2fe5f4=_0x1e1756['normal']){'function'==typeof _0x4f9a98?_0x459c05(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4f9a98,'label':_0x18bd97,'priority':_0x2fe5f4}):this['_itemLabels']['set'](_0x4f9a98,_0x18bd97);}['registerAttributeLabel'](_0x16dbb7,_0x17349e){this['_attributeLabels']['set'](_0x16dbb7,_0x17349e);}['getItemLabel'](_0xce9c2d,_0x45b2ce=0x1){let _0x1e86f1;for(const _0x2c7fbe of this['_itemLabelsCallbacks'])if(_0x2c7fbe['matchingCallback'](_0xce9c2d)){_0x1e86f1=_0x2c7fbe['label'];break;}return _0x1e86f1||(_0x1e86f1=this['_itemLabels']['get'](_0xce9c2d['name'])),_0x1e86f1?_0x1e86f1(_0x45b2ce):0x1!==_0x45b2ce?_0x45b2ce+'\x20'+_0xce9c2d['name']+'s':''+_0xce9c2d['name'];}['_addDescriptionItems'](_0x5c5890,_0x6062d6){const _0x19a719=_0x6062d6['getFirstRange']()['getWalker'](),_0x135e52='insertion'==_0x6062d6['type']?'add':'remove';for(const _0x3e3ec1 of _0x19a719){const _0x1973e9=_0x3e3ec1['item'],_0x1eab35=_0x5c5890[_0x5c5890['length']-0x1];if(_0x1973e9['is']('$textProxy'))_0x1eab35&&_0x1eab35['type']['indexOf']('Container')>-0x1&&_0x5c5890['pop'](),_0x1eab35&&'text'==_0x1eab35['type']?_0x1eab35[_0x135e52]+=_0x1973e9['data']:_0x5c5890['push']({'type':'text','add':'add'==_0x135e52?_0x1973e9['data']:'','remove':'remove'==_0x135e52?_0x1973e9['data']:''});else{if(this['_schema']['isObject'](_0x1973e9)){const _0x5535ae=_0x1973e9;if(_0x1eab35&&_0x1eab35['type']['indexOf']('Container')>-0x1&&_0x5c5890['pop'](),'elementEnd'==_0x3e3ec1['type'])continue;_0x1eab35&&_0x1eab35['type']==_0x135e52+'Object'&&_0x1eab35['element']['name']==_0x5535ae['name']?_0x1eab35['quantity']++:_0x5c5890['push']({'type':_0x135e52+'Object','element':_0x5535ae,'quantity':0x1}),_0x19a719['skip'](_0x5f53e7=>!('elementEnd'==_0x5f53e7['type']&&_0x5f53e7['item']==_0x1973e9));}else{if(this['_schema']['checkChild'](_0x1973e9,'$text')||_0x1973e9['is']('element','softBreak')){const _0x255cf9=_0x1973e9;if('add'==_0x135e52&&'elementStart'==_0x3e3ec1['type']||'remove'==_0x135e52&&'elementEnd'==_0x3e3ec1['type'])continue;if(_0x1eab35&&-0x1==_0x1eab35['type']['indexOf']('Container')){'text'==_0x1eab35['type']&&(_0x1eab35[_0x135e52]+='\x0a');continue;}let _0x48b91d;if(_0x48b91d='add'==_0x135e52?_0x255cf9['nextSibling']&&!this['_schema']['isObject'](_0x255cf9['nextSibling'])?_0x255cf9['nextSibling']:null:_0x255cf9['previousSibling']&&!this['_schema']['isObject'](_0x255cf9['previousSibling'])?_0x255cf9['previousSibling']:null,_0x255cf9['isEmpty']||_0x48b91d&&_0x48b91d['isEmpty']){const _0x2718c4=_0x48b91d&&_0x48b91d['isEmpty']?_0x48b91d:_0x255cf9;_0x1eab35&&_0x1eab35['type']==_0x135e52+'EmptyContainer'&&_0x1eab35['element']['name']==_0x2718c4['name']?_0x1eab35['quantity']++:_0x5c5890['push']({'type':_0x135e52+'EmptyContainer','element':_0x2718c4,'quantity':0x1});}else _0x5c5890['push']({'type':_0x135e52+'Container','element':_0x255cf9});}}}}}['_resolveDescriptionItems'](_0x4380ee){const _0x49fb73=this['_locale'],_0x59a616=[],_0x486163=[],_0x35ae84=[];for(const _0x311460 of _0x4380ee)switch(_0x311460['type']){case'text':if(_0x311460['add']=_0x311460['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x311460['remove']=_0x311460['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x311460['add']&&''!=_0x311460['remove']){_0x59a616['push']({'type':'replace','content':o(_0x49fb73,'REPLACE_TEXT',['\x22'+_0x311460['remove']+'\x22','\x22'+_0x311460['add']+'\x22'])});continue;}if(null!=_0x311460['add']['match'](/^ +$/)){_0x59a616['push']({'type':'insertion','content':o(_0x49fb73,'*Insert:*\x20%0',o(_0x49fb73,'ELEMENT_SPACE',_0x311460['add']['length']))});continue;}if(null!=_0x311460['remove']['match'](/^ +$/)){_0x59a616['push']({'type':'deletion','content':o(_0x49fb73,'*Remove:*\x20%0',o(_0x49fb73,'ELEMENT_SPACE',_0x311460['remove']['length']))});continue;}if(''!=_0x311460['add']){_0x59a616['push']({'type':'insertion','content':o(_0x49fb73,'*Insert:*\x20%0','\x22'+_0x311460['add']+'\x22')});continue;}_0x59a616['push']({'type':'deletion','content':o(_0x49fb73,'*Remove:*\x20%0','\x22'+_0x311460['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x59a616['push']({'type':'insertion','content':o(_0x49fb73,'*Insert:*\x20%0',this['getItemLabel'](_0x311460['element'],_0x311460['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x59a616['push']({'type':'deletion','content':o(_0x49fb73,'*Remove:*\x20%0',this['getItemLabel'](_0x311460['element'],_0x311460['quantity']))});continue;case'addContainer':_0x59a616['push']({'type':'insertion','content':o(_0x49fb73,'*Split:*\x20%0',this['getItemLabel'](_0x311460['element'],_0x311460['quantity']))});continue;case'removeContainer':_0x59a616['push']({'type':'deletion','content':o(_0x49fb73,'*Merge:*\x20%0',this['getItemLabel'](_0x311460['element'],_0x311460['quantity']))});continue;case'addFormat':_0x486163['push'](_0x311460['key']);continue;case'removeFormat':_0x35ae84['push'](_0x311460['key']);continue;default:_0x59a616['push'](_0x311460);}if(_0x486163['length']){const _0x1a2c81=_0x486163['map'](_0x5db7a8=>this['_attributeLabels']['has'](_0x5db7a8)?this['_attributeLabels']['get'](_0x5db7a8):_0x5db7a8)['join'](',\x20');_0x59a616['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1a2c81)});}if(_0x35ae84['length']){const _0x347100=_0x35ae84['map'](_0x4a298d=>this['_attributeLabels']['has'](_0x4a298d)?this['_attributeLabels']['get'](_0x4a298d):_0x4a298d)['join'](',\x20');_0x59a616['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x347100)});}return _0x59a616;}['_handleCustomCallbackDescription'](_0x443678){for(const _0x321823 of this['_customCallbacks']){const _0x589ec8=_0x321823(_0x443678);if(_0x589ec8&&'type'in _0x589ec8)return _0x589ec8;}}['_handleAttributeSuggestionDescription'](_0x5b015e,_0x1fb815){const _0x1c8d8e=_0x1fb815['data'],_0x83ed31=void 0x0===_0x1c8d8e['newValue']?'removeFormat':'addFormat';_0x5b015e['push']({'type':_0x83ed31,'key':_0x1c8d8e['key']});}['_handleRenameSuggestionDescription'](_0x1ca0f0,_0x13022e){_0x1ca0f0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x13022e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x10e83b,_0x8c0929,_0x5d6b4d){if(this['_addDescriptionItems'](_0x10e83b,_0x8c0929),_0x5d6b4d&&_0x5d6b4d['getFirstRange']()&&!_0x8c0929['getFirstRange']()['end']['isEqual'](_0x5d6b4d['getFirstRange']()['start'])){const _0x2c52da=_0x10e83b[_0x10e83b['length']-0x1],_0x59acaa='insertion'==_0x8c0929['type']?'add':'remove';_0x2c52da&&'text'==_0x2c52da['type']&&(_0x2c52da[_0x59acaa]+='\x0a');}}}class E extends _0x52cd9d{['afterInit'](){const _0x30c866=this['editor'],_0x58de82=_0x30c866['plugins']['get']('TrackChangesEditing');_0x30c866['commands']['get']('showAIAssistant')&&_0x58de82['enableCommand']('showAIAssistant');}}class V extends _0x52cd9d{['afterInit'](){const _0x151ebc=this['editor'],_0x19affc=_0x151ebc['locale'];if(!_0x151ebc['plugins']['has']('AlignmentEditing'))return;const _0x30ffd3=_0x151ebc['plugins']['get']('TrackChangesEditing');_0x30ffd3['enableDefaultAttributesIntegration']('alignment'),_0x30ffd3['registerBlockAttribute']('alignment'),_0x30ffd3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x19affc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49d1ba=this['editor'],_0x3315e3=_0x49d1ba['locale'];_0x49d1ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x561e11=>{if('formatBlock'!=_0x561e11['type'])return;const {data:_0x3fc722}=_0x561e11;if(_0x3fc722&&'alignment'==_0x3fc722['commandName']){const _0x22f706=_0x3fc722['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3315e3,'*Format:*\x20%0',function(_0x3593ec){switch(_0x3593ec){case'left':return o(_0x3315e3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3315e3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3315e3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3315e3,'FORMAT_JUSTIFY_TEXT');}}(_0x22f706))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x52cd9d{['afterInit'](){const _0x3439ea=this['editor'],_0x38a3d0=_0x3439ea['plugins']['get']('TrackChangesEditing'),_0xae7c93=_0x3439ea['locale'];for(const _0x4d6842 of ti){if(!_0x3439ea['plugins']['has'](_0x4d6842))continue;const _0x2756cd=_0x4d6842['slice'](0x0,-0x7)['toLowerCase'](),_0x5c15f7='FORMAT_'+_0x2756cd['toUpperCase']();_0x38a3d0['enableDefaultAttributesIntegration'](_0x2756cd),_0x38a3d0['registerInlineAttribute'](_0x2756cd),_0x38a3d0['descriptionFactory']['registerAttributeLabel'](_0x2756cd,o(_0xae7c93,_0x5c15f7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28a847=this['editor'],_0x2411a7=_0x28a847['locale'],_0x2868ee=_0x28a847['plugins']['get']('TrackChangesEditing');function _0x5c7cae(_0xd238bc,_0x4295a2){_0x2868ee['descriptionFactory']['registerDescriptionCallback'](_0x42c307=>{if('formatInline'!=_0x42c307['type'])return;const {data:_0x1800b4}=_0x42c307;return _0x1800b4&&_0x1800b4['commandName']===_0xd238bc?_0x1800b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2411a7,'*Format:*\x20%0',_0x4295a2)}:{'type':'format','content':o(_0x2411a7,'*Remove\x20format:*\x20%0',_0x4295a2)}:void 0x0;});}_0x5c7cae('bold',o(_0x2411a7,'FORMAT_BOLD')),_0x5c7cae('italic',o(_0x2411a7,'FORMAT_ITALIC')),_0x5c7cae('underline',o(_0x2411a7,'FORMAT_UNDERLINE')),_0x5c7cae('code',o(_0x2411a7,'FORMAT_CODE')),_0x5c7cae('strikethrough',o(_0x2411a7,'FORMAT_STRIKETHROUGH')),_0x5c7cae('subscript',o(_0x2411a7,'FORMAT_SUBSCRIPT')),_0x5c7cae('superscript',o(_0x2411a7,'FORMAT_SUPERSCRIPT'));}}class O extends _0x52cd9d{['afterInit'](){const _0x23246a=this['editor'],_0x254842=_0x23246a['locale'];if(!_0x23246a['plugins']['has']('BlockQuoteEditing'))return;const _0x53af64=_0x23246a['plugins']['get']('TrackChangesEditing'),_0x9e408a=this['editor']['commands']['get']('blockQuote');_0x53af64['enableCommand']('blockQuote',(_0x1e76ea,_0xf1a3fb={})=>{const _0x35ca31=this['editor']['model']['document']['selection'],_0x20da47=_0xf1a3fb&&void 0x0!==_0xf1a3fb['forceValue']?_0xf1a3fb['forceValue']:!_0x9e408a['value'];let _0x511f21=[];if(_0x20da47){const _0x594dc8=Array['from'](_0x35ca31['getSelectedBlocks']())['filter'](_0x3572fc=>oo(_0x3572fc)||function(_0x36daa4,_0x213120){const _0x122669=_0x213120['checkChild'](_0x36daa4['parent'],'blockQuote'),_0x508de1=_0x213120['checkChild'](['$root','blockQuote'],_0x36daa4);return _0x122669&&_0x508de1;}(_0x3572fc,this['editor']['model']['schema']));_0x511f21=to(_0x594dc8,_0x23246a['model']);}else{const _0x1b276c=Array['from'](_0x35ca31['getSelectedBlocks']())['filter'](_0x545ebf=>oo(_0x545ebf));_0x511f21=to(_0x1b276c,_0x23246a['model']);}_0x23246a['model']['change'](()=>{for(const _0xc5b513 of _0x511f21)_0x53af64['markBlockFormat'](_0xc5b513,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x20da47}]});});}),_0x53af64['descriptionFactory']['registerDescriptionCallback'](_0x2aed1a=>{const {data:_0xd01b2f}=_0x2aed1a;if(_0xd01b2f&&'blockQuote'==_0xd01b2f['commandName']){const _0x480909=o(_0x254842,'ELEMENT_BLOCK_QUOTE');return _0xd01b2f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x254842,'*Set\x20format:*\x20%0',_0x480909)}:{'type':'format','content':o(_0x254842,'*Remove\x20format:*\x20%0',_0x480909)};}});}}function oo(_0x36e722){return'blockQuote'==_0x36e722['parent']['name'];}class G extends _0x52cd9d{['afterInit'](){const _0x272558=this['editor'];_0x272558['plugins']['has']('CaseChange')&&(_0x272558['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x272558['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x272558['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x52cd9d{['afterInit'](){const _0x29ec73=this['editor'];_0x29ec73['commands']['get']('ckbox')&&_0x29ec73['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x52cd9d{['afterInit'](){const _0x37ebc8=this['editor'];if(!_0x37ebc8['plugins']['has']('CodeBlock'))return;const _0x284da9=_0x37ebc8['plugins']['get']('TrackChangesEditing'),_0x45e7a6=_0x37ebc8['locale'],_0x1131d2=_0x37ebc8['config']['get']('codeBlock')['languages'],_0x27ac41=_0x37ebc8['commands']['get']('codeBlock');_0x284da9['enableCommand']('indentCodeBlock'),_0x284da9['enableCommand']('outdentCodeBlock'),_0x284da9['enableCommand']('codeBlock',(_0x114466,_0x4f7159={})=>{const _0x3f7e59=_0x37ebc8['model'],_0x394a56=_0x37ebc8['model']['document']['selection'],_0x564af7=_0x4f7159&&void 0x0!==_0x4f7159['forceValue']?_0x4f7159['forceValue']:!_0x27ac41['value'];let _0x1448a1;_0x4f7159['language']||(_0x4f7159['language']=_0x1131d2[0x0]['language']),_0x1448a1=_0x564af7?Array['from'](_0x394a56['getSelectedBlocks']())['filter'](_0x2fd1e7=>eo(_0x2fd1e7)||function(_0x2b3415,_0x25a51e){if(_0x2b3415['is']('rootElement')||_0x25a51e['isLimit'](_0x2b3415))return!0x1;return _0x25a51e['checkChild'](_0x2b3415['parent'],'codeBlock');}(_0x2fd1e7,_0x3f7e59['schema'])):Array['from'](_0x394a56['getSelectedBlocks']())['filter'](_0x4131c5=>eo(_0x4131c5));const _0x50cd02=to(_0x1448a1,_0x3f7e59);_0x3f7e59['change'](()=>{for(const _0x2f52cc of _0x50cd02)_0x284da9['markBlockFormat'](_0x2f52cc,{'commandName':'codeBlock','commandParams':[{..._0x4f7159,'forceValue':_0x564af7}],'formatGroupId':'blockName'});});}),(_0x284da9['descriptionFactory']['registerElementLabel']('codeBlock',_0x4aef0f=>o(_0x45e7a6,'ELEMENT_CODE_BLOCK',_0x4aef0f)),_0x284da9['descriptionFactory']['registerDescriptionCallback'](_0x34f11f=>{if('formatBlock'!=_0x34f11f['type'])return;const _0x423cbe=_0x45e7a6['t'],{data:_0x1ad783}=_0x34f11f;if(!_0x1ad783||'codeBlock'!=_0x1ad783['commandName'])return;const _0x2de3cd=_0x1ad783['commandParams'][0x0]['language'],_0x491cc7=_0x423cbe(_0x1131d2['find'](_0x45963a=>_0x45963a['language']===_0x2de3cd)['label'])['toLowerCase']();return _0x1ad783['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45e7a6,'*Set\x20format:*\x20%0',o(_0x45e7a6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x491cc7+')')}:{'type':'format','content':o(_0x45e7a6,'*Remove\x20format:*\x20%0',o(_0x45e7a6,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x14efc4){return'codeBlock'==_0x14efc4['name'];}class H extends _0x52cd9d{['afterInit'](){const _0x3e8972=this['editor'];if(!_0x3e8972['plugins']['has']('CommentsEditing'))return;_0x3e8972['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x37d95b,_0x2e5fed,_0x47db26){const _0x4c6c10=[];for(const _0x312783 of _0x2e5fed['getItems']())_0x312783['hasAttribute'](_0x37d95b)&&_0x4c6c10['push'](_0x47db26['createRangeOn'](_0x312783));return _0x4c6c10;}function _e(_0x12abed,_0x2b146a,{showActiveMarker:_0x181dd5=!0x0}={}){const _0x44b6b5=_0x12abed['plugins']['get']('TrackChangesEditing');return(_0x5c55d1,_0x1a6001,_0x404c37)=>{if(!_0x404c37['consumable']['test'](_0x1a6001['markerRange'],_0x5c55d1['name']))return;const _0x335bfe=_0x1a6001['markerRange']['getWalker'](),_0x1e18fb=_0x1a6001['markerRange']['start'],_0x2a5441=_0x12abed['model']['schema'];let _0x4ad97b=null,_0x567663=null,_0x23954b=!0x1,_0x26811d=!0x1;for(const _0x4a4779 of _0x335bfe){const _0x19b7e3=_0x4a4779['item'];_0x23954b=_0x23954b||_0x2a5441['isContent'](_0x19b7e3);const _0x1f525d=_0x404c37['mapper']['toViewElement'](_0x19b7e3);if(_0x1f525d&&_0x1f525d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a4779['type']&&(_0x2a5441['isBlock'](_0x19b7e3)&&!_0x2a5441['isLimit'](_0x19b7e3)&&(_0x19b7e3['nextSibling']||_0x1e18fb['isAtEnd']?_0x4ad97b&&_0x4ad97b['parent']==_0x19b7e3||(_0x4ad97b=_0x19b7e3,_0x3b0e2f(_0x4a4779['previousPosition']),_0x26811d=!0x0):_0x567663=_0x567663||_0x4a4779['previousPosition']));}function _0x3b0e2f(_0x4a74ce){const _0x5542e7=_0x404c37['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b146a}),_0x367f25=_0x404c37['mapper']['toViewPosition'](_0x4a74ce);_0x181dd5&&_0x44b6b5['activeMarkers']['includes'](_0x1a6001['markerName'])&&_0x404c37['writer']['addClass']('ck-suggestion-marker--active',_0x5542e7),_0x404c37['writer']['insert'](_0x367f25,_0x5542e7),_0x404c37['mapper']['bindElementToMarker'](_0x5542e7,_0x1a6001['markerName']);}_0x23954b||_0x26811d||!_0x567663||_0x3b0e2f(_0x567663);};}class q extends _0x52cd9d{static get['requires'](){return[_0x33cc80];}['init'](){const _0x54dda1=this['editor'],_0x32b3d9=_0x54dda1['plugins']['get']('TrackChangesEditing');_0x32b3d9['enableCommand']('delete');const _0x412f32=_0x54dda1['commands']['get']('deleteForward');_0x32b3d9['enableCommand']('deleteForward',(_0x4de403,_0x2a6ca2={})=>{const _0x577c83=_0x54dda1['model']['createSelection'](_0x54dda1['model']['document']['selection']);_0x577c83['isCollapsed']&&_0x54dda1['model']['modifySelection'](_0x577c83,{'direction':'forward','unit':_0x2a6ca2['unit']});const _0x10dcad=_0x577c83['getFirstRange'](),_0x5aab11=_0x39eeea['fromRange'](_0x10dcad);let _0x3eef59;_0x4de403(_0x2a6ca2),_0x3eef59='$graveyard'==_0x5aab11['root']['rootName']?_0x54dda1['model']['createRange'](_0x10dcad['start']):_0x54dda1['model']['createRange'](_0x5aab11['start'],_0x5aab11['end']),_0x5aab11['detach'](),_0x54dda1['model']['enqueueChange'](_0x412f32['buffer']['batch'],_0x84ad47=>{_0x412f32['buffer']['lock'](),_0x84ad47['setSelection'](_0x84ad47['createRange'](_0x3eef59['end'])),_0x412f32['buffer']['unlock']();});}),_0x54dda1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x54dda1,'merge'),{'priority':'high'}),_0x54dda1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3b2491,_0x5e2da7,_0x2fc592)=>{_0x2fc592['options']['showSuggestionHighlights']&&_e(_0x54dda1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3b2491,_0x5e2da7,_0x2fc592);},{'priority':'high'}),_0x54dda1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4b40e5,_0x47ef5d,_0x54bfca)=>{const _0x469a0b=_0x54bfca['mapper']['markerNameToElements'](_0x47ef5d['markerName']);if(_0x469a0b){for(const _0x21310d of _0x469a0b)_0x21310d['is']('uiElement')&&(_0x54bfca['mapper']['unbindElementFromMarkerName'](_0x21310d,_0x47ef5d['markerName']),_0x54bfca['writer']['remove'](_0x21310d));}},{'priority':'high'});}}class z extends _0x52cd9d{['afterInit'](){const _0xf51b75=this['editor'];if(!_0xf51b75['plugins']['has']('ListEditing'))return;const _0x52a5d2=_0xf51b75['locale'],_0x2800a6=_0xf51b75['plugins']['get']('TrackChangesEditing'),_0x52894a=_0xf51b75['plugins']['has']('TodoListEditing'),_0x4dd86c=!!_0xf51b75['config']['get']('list.multiBlock');function _0x8c9380(_0x4a1645){return{'type':'format','content':''+o(_0x52a5d2,'*Set\x20format:*\x20%0',_0x4a1645)};}function _0x1cabe7(_0x1c818c){return{'type':'format','content':''+o(_0x52a5d2,'*Remove\x20format:*\x20%0',_0x1c818c)};}_0x2800a6['enableDefaultAttributesIntegration']('numberedList'),_0x2800a6['enableDefaultAttributesIntegration']('bulletedList'),_0x2800a6['enableDefaultAttributesIntegration']('customNumberedList'),_0x2800a6['enableDefaultAttributesIntegration']('customBulletedList'),_0x2800a6['enableDefaultAttributesIntegration']('indentList'),_0x2800a6['enableDefaultAttributesIntegration']('outdentList'),_0x2800a6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2800a6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2800a6['registerBlockAttribute']('listItemId'),_0x2800a6['registerBlockAttribute']('listType'),_0x2800a6['registerBlockAttribute']('listIndent'),_0x4dd86c&&(_0x2800a6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2800a6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x52894a&&(_0x2800a6['enableDefaultAttributesIntegration']('todoList'),_0x2800a6['enableDefaultAttributesIntegration']('checkTodoList'),_0x2800a6['registerBlockAttribute']('todoListChecked'),_0x2800a6['descriptionFactory']['registerDescriptionCallback'](_0x22d2d8=>{const {data:_0x2a0426}=_0x22d2d8;if(_0x2a0426&&'todoListChecked'==_0x2a0426['key'])return{'type':'format','content':_0x2a0426['newValue']?o(_0x52a5d2,'*Check\x20item*'):o(_0x52a5d2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4591e8=>{if(_0x4591e8['batch']['isUndo'])return!0x1;let _0xefbc0a=!0x1;const _0x4ff6c1=_0x2800a6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3078ce=>'todoListChecked'===_0x2800a6['_getAttributeKey'](_0x3078ce));for(const _0x2412af of _0x4ff6c1){'todo'!=_0x2412af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2800a6['_findSuggestions'](_0x2412af['getFirstRange'](),'attribute')['find'](_0x3361ef=>'listType'===_0x2800a6['_getAttributeKey'](_0x3361ef['suggestion']))||(_0x4591e8['removeMarker'](_0x2412af['getFirstMarker']()),_0xefbc0a=!0x0));}return _0xefbc0a;})),_0x2800a6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x52a5d2,'FORMAT_INDENT'));const _0x42da99={'type':'format','content':''};_0x2800a6['descriptionFactory']['registerDescriptionCallback'](_0x52725f=>{const {data:_0x5982b5}=_0x52725f;if(!_0x5982b5||'listType'!=_0x5982b5['key'])return;let _0x58f094=_0x52725f['head'];for(;_0x58f094;){if(_0x58f094['data']&&(('listStyle'==_0x58f094['data']['key']||'listMarkerStyle'==_0x58f094['data']['key'])&&(_0x58f094['data']['newValue']&&'default'!=_0x58f094['data']['newValue']||'default'!=_0x58f094['data']['oldValue']&&!_0x5982b5['newValue'])||!_0x4dd86c&&_0x58f094['data']['key']==m))return _0x42da99;_0x58f094=_0x58f094['next'];}if(null==_0x5982b5['newValue'])switch(_0x5982b5['oldValue']){case'bulleted':return _0x1cabe7(o(_0x52a5d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cabe7(o(_0x52a5d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cabe7(o(_0x52a5d2,'ELEMENT_TODO_LIST'));}switch(_0x5982b5['newValue']){case'bulleted':return _0x8c9380(o(_0x52a5d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8c9380(o(_0x52a5d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8c9380(o(_0x52a5d2,'ELEMENT_TODO_LIST'));}}),_0x2800a6['descriptionFactory']['registerDescriptionCallback'](_0x2a8f15=>{const {data:_0xb8b516}=_0x2a8f15;if(_0xb8b516&&'listIndent'==_0xb8b516['key'])return null==_0xb8b516['newValue']||null==_0xb8b516['oldValue']&&0x0==_0xb8b516['newValue']?_0x42da99:void 0x0;}),_0x2800a6['descriptionFactory']['registerDescriptionCallback'](_0x266567=>{if('attribute'!=_0x266567['type'])return;const {data:_0x1168ad}=_0x266567;if(!_0x1168ad||'listItemId'!=_0x1168ad['key'])return;const _0x1cac6f=le(_0x266567);return'newValue'==_0x1cac6f?{'type':'format','content':o(_0x52a5d2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1cac6f?{'type':'format','content':o(_0x52a5d2,'*Split:*\x20list\x20item')}:_0x42da99;}),_0xf51b75['model']['document']['registerPostFixer'](_0x13bd46=>this['listItemIdFixer'](_0x13bd46)),_0xf51b75['model']['document']['registerPostFixer'](_0xce78ef=>this['noTrackChangesFixer'](_0xce78ef)),_0xf51b75['model']['document']['registerPostFixer'](_0x19f41c=>this['assureChains'](_0x19f41c)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2e17f9){if(_0x2e17f9['batch']['isUndo']||!_0x2e17f9['batch']['isLocal'])return!0x1;let _0x845768=!0x1;const _0x525b3e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x101277=>_0x101277['data']&&'listItemId'==_0x101277['data']['key'])['filter'](_0x4dac2b=>_0x4dac2b['data']['newValue']&&_0x4dac2b['data']['oldValue']);for(const _0x1bc7ca of _0x525b3e)le(_0x1bc7ca)||(_0x2e17f9['removeMarker'](_0x1bc7ca['getFirstMarker']()),_0x845768=!0x0);return _0x845768;}['noTrackChangesFixer'](_0x266fa6){if(_0x266fa6['batch']['isUndo']||!_0x266fa6['batch']['isLocal'])return!0x1;const _0x431095=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x431095['trackChangesCommand']['value'])return!0x1;let _0x596dd5=!0x1;const _0x16621e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x468ecf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4ccb37=>'attribute'==_0x4ccb37['type'])['filter'](_0xe0a189=>_0x16621e['includes'](_0xe0a189['attributeKey']));if(0x0==_0x468ecf['length'])return _0x596dd5;for(const _0x55546b of _0x468ecf){const _0x20ae11=_0x431095['_findSuggestions'](_0x55546b['range'],'attribute')['filter'](_0x5ba506=>!_0x5ba506['meta']['isNextTo'])['map'](_0x1c1dcc=>_0x1c1dcc['suggestion'])['filter'](_0x18a153=>{const _0x80d56e=_0x431095['_getAttributeKey'](_0x18a153);return _0x16621e['includes'](_0x80d56e);});if(_0x20ae11['length']){for(const _0x17df96 of _0x20ae11)_0x266fa6['removeMarker'](_0x17df96['getFirstMarker']());_0x596dd5=!0x0;}}return _0x596dd5;}['assureChains'](_0x5e054a){if(_0x5e054a['batch']['isUndo']||!_0x5e054a['batch']['isLocal'])return!0x1;const _0x5669e2=this['editor']['plugins']['get']('TrackChangesEditing');let _0xff8aef=!0x1;const _0x5bbf76=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1c430d of _0x5669e2['getSuggestions']({'skipNotAttached':!0x0})){const _0x4b476f=_0x5669e2['_findSuggestions'](_0x1c430d['getFirstRange'](),'attribute')['map'](_0x632f7d=>_0x632f7d['suggestion'])['filter'](_0x880860=>_0x880860['data']&&_0x5bbf76['includes'](_0x880860['data']['key']));if(!_0x4b476f['length'])continue;const _0x1733ee=_0x4b476f[0x0]['head']['attributes']['groupId'];if(!_0x4b476f['every'](_0x979481=>_0x979481['attributes']['groupId']===_0x1733ee)){for(const _0x46c30b of _0x4b476f)_0x17fde6(_0x46c30b,_0x1733ee)&&(_0xff8aef=!0x0);}}return _0xff8aef;function _0x152daa(_0x216752,_0x265ef0){for(const _0x4a7326 of _0x5669e2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x234d09=>'attribute'==_0x234d09['type']&&_0x234d09['attributes']['groupId']==_0x216752))_0x4a7326['setAttribute']('groupId',_0x265ef0);}function _0x17fde6(_0x5ea379,_0x2188d3){let _0xf574de=_0x5ea379['head'],_0x3497fc=!0x1;for(;_0xf574de;)_0xf574de['attributes']['groupId']!=_0x2188d3&&(_0x152daa(_0xf574de['attributes']['groupId'],_0x2188d3),_0xf574de['setAttribute']('groupId',_0x2188d3),_0x3497fc=!0x0),_0xf574de=_0xf574de['next'];return _0x3497fc;}}['_supportLegacySuggestions'](){const _0x5af2fe=this['editor'],_0x5076a1=_0x5af2fe['locale'],_0x47874c=_0x5af2fe['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x47874c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5a2908,_0x406dea){const _0x49aaf7=[];for(let _0x286b89 of _0x5a2908)_0x286b89['start']['nodeAfter']===_0x286b89['end']['parent']&&(_0x286b89=_0x5af2fe['model']['createRange'](_0x5af2fe['model']['createPositionAt'](_0x286b89['start']['nodeAfter'],0x0))),_0x49aaf7['push'](_0x286b89);_0x5af2fe['model']['change'](_0x5246d8=>{const _0x5623a7=_0x5af2fe['model']['document']['selection'],_0x46e782=Array['from'](_0x5623a7['getRanges']())['map'](_0x490e2a=>_0x39eeea['fromRange'](_0x490e2a));_0x5246d8['setSelection'](_0x49aaf7),_0x5af2fe['commands']['get'](_0x406dea['commandName'])['refresh'](),_0x406dea['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5af2fe['execute'](_0x406dea['commandName'],..._0x406dea['commandParams']),_0x5246d8['setSelection'](_0x46e782);for(const _0xdaf317 of _0x46e782)_0xdaf317['detach']();});}),_0x47874c['descriptionFactory']['registerElementLabel'](function(_0x1cde98){const _0x11f1cc=!_0x5af2fe['model']['schema']['isObject'](_0x1cde98),_0x6a4a8c=_0x1cde98['previousSibling'],_0x1c73b9=_0x1cde98['nextSibling'],_0x61a208=_0x1cde98['getAttribute']('listItemId'),_0x116554=!_0x6a4a8c||_0x6a4a8c['getAttribute']('listItemId')!==_0x61a208,_0x3a5a24=!_0x1c73b9||_0x1c73b9['getAttribute']('listItemId')!==_0x61a208;return _0x11f1cc&&Boolean(_0x61a208)&&_0x116554&&_0x3a5a24;},_0x3fc4f2=>o(_0x5076a1,'ELEMENT_LIST_ITEM',_0x3fc4f2));}['_registerLegacyDescription'](){const _0x4baecf=this['editor'],_0x2ec82a=_0x4baecf['locale'];function _0x31598e(_0x53a47e){const _0xf03d76=_0x4baecf['commands']['get']('bulletedList')['value'],_0x177265=_0x4baecf['commands']['get']('numberedList')['value'];return'numberedList'===_0x53a47e?_0xf03d76:_0x177265;}_0x4baecf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x34e550){if('formatBlock'!=_0x34e550['type'])return;const {data:_0x21f62e}=_0x34e550;if(!_0x21f62e)return;let _0x2577b3,_0x53ba41,_0x5628b,_0x3f29fc;switch(_0x21f62e['commandName']){case'bulletedList':_0x5628b=_0x21f62e['commandParams'][0x0]['forceValue'],_0x3f29fc=_0x31598e(_0x21f62e['commandName']),_0x2577b3=_0x5628b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f29fc&&_0x4baecf['config']['get']('list.multiBlock')||(_0x2577b3='*Change\x20to:*\x20%0'),_0x53ba41={'type':'format','content':o(_0x2ec82a,_0x2577b3,o(_0x2ec82a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5628b=_0x21f62e['commandParams'][0x0]['forceValue'],_0x3f29fc=_0x31598e(_0x21f62e['commandName']),_0x2577b3=_0x5628b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f29fc&&_0x4baecf['config']['get']('list.multiBlock')||(_0x2577b3='*Change\x20to:*\x20%0'),_0x53ba41={'type':'format','content':o(_0x2ec82a,_0x2577b3,o(_0x2ec82a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2577b3='*Indent:*\x20%0',_0x53ba41={'type':'format','content':o(_0x2ec82a,_0x2577b3,o(_0x2ec82a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2577b3=function(_0x3031d6){const _0x51f245=_0x3031d6['getFirstRange']();let _0x2901c0=_0x51f245['start']['nodeAfter'];for(;_0x2901c0&&_0x51f245['containsItem'](_0x2901c0);){if(_0x2901c0['getAttribute']('listIndent')>0x0)return!0x1;_0x2901c0=_0x2901c0['nextSibling'];}return!0x0;}(_0x34e550)?o(_0x2ec82a,'*Format:*\x20remove\x20from\x20%0',o(_0x2ec82a,function(_0x3259c8){return'ELEMENT_'+_0x3259c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x34e550))):o(_0x2ec82a,'*Outdent:*\x20%0',o(_0x2ec82a,'ELEMENT_LIST_ITEM')),_0x53ba41={'type':'format','content':_0x2577b3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x21f62e['multipleBlocks']&&(_0x2577b3='*Merge:*\x20%0',_0x53ba41={'type':'deletion','content':o(_0x2ec82a,_0x2577b3,o(_0x2ec82a,'ELEMENT_LIST_ITEM'))});}return _0x53ba41;});}}function le(_0x4d3c88){let _0x5cd52b=_0x4d3c88['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5cd52b;){const _0xa49852=_0x5cd52b['getAttribute']('listItemId');if(!_0xa49852)return!0x1;if(_0xa49852==_0x4d3c88['data']['newValue'])return'newValue';if(_0xa49852==_0x4d3c88['data']['oldValue'])return'oldValue';_0x5cd52b=_0x5cd52b['previousSibling'];}return!0x1;}class ue extends _0x52cd9d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4a4a69=this['editor']['config']['get']('list.properties'),_0x3c1663=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a4a69['styles']&&(_0x3c1663['enableDefaultAttributesIntegration']('listStyle'),_0x3c1663['registerBlockAttribute']('listStyle')),_0x4a4a69['reversed']&&(_0x3c1663['enableDefaultAttributesIntegration']('listReversed'),_0x3c1663['registerBlockAttribute']('listReversed')),_0x4a4a69['startIndex']&&(_0x3c1663['enableDefaultAttributesIntegration']('listStart'),_0x3c1663['registerBlockAttribute']('listStart'));const _0x6c0e40={'type':'format','content':''};_0x3c1663['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5aebc4=this['editor']['locale'];_0x3c1663['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5aebc4,'FORMAT_LIST_REVERSED')),_0x3c1663['descriptionFactory']['registerDescriptionCallback'](_0x37127d=>{const {data:_0x1fe3af}=_0x37127d;if(_0x1fe3af&&'listReversed'==_0x1fe3af['key'])return null==_0x1fe3af['newValue']||0x0==_0x1fe3af['newValue']&&null==_0x1fe3af['oldValue']?_0x6c0e40:void 0x0;}),_0x3c1663['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5aebc4,'FORMAT_LIST_START')),_0x3c1663['descriptionFactory']['registerDescriptionCallback'](_0x4347b3=>{const {data:_0x40a8f3}=_0x4347b3;if(_0x40a8f3&&'listStart'==_0x40a8f3['key'])return null==_0x40a8f3['newValue']||0x1==_0x40a8f3['newValue']&&null==_0x40a8f3['oldValue']?_0x6c0e40:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x471184=>{if(_0x471184['batch']['isUndo'])return!0x1;let _0x85dd59=!0x1;const _0x5d048a=_0x3c1663['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x514295=>{const _0x1010d6=_0x3c1663['_getAttributeKey'](_0x514295);return'listStart'==_0x1010d6||'listReversed'==_0x1010d6;});for(const _0x291b30 of _0x5d048a){const _0x3a07f4=_0x291b30['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3a07f4||'customNumbered'==_0x3a07f4)continue;_0x3c1663['_findSuggestions'](_0x291b30['getFirstRange'](),'attribute')['find'](_0x5b08d3=>'listType'==_0x3c1663['_getAttributeKey'](_0x5b08d3['suggestion']))||(_0x471184['removeMarker'](_0x291b30['getFirstMarker']()),_0x85dd59=!0x0);}return _0x85dd59;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x8096c0){const _0x1899d0=this['editor']['locale'],{data:_0x378132}=_0x8096c0,_0x14f500={'type':'format','content':''};if(!_0x378132||'listStyle'!=_0x378132['key'])return;if(!_0x378132['oldValue'])return'default'==_0x378132['newValue']?_0x14f500:{'type':'format','content':''+o(_0x1899d0,'*Set\x20format:*\x20%0',o(_0x1899d0,this['_getTranslationKeyForListStyle'](_0x378132['newValue'])))};if(!_0x378132['newValue']){if('default'==_0x378132['oldValue'])return _0x14f500;let _0x4c7da0=_0x8096c0['head'];for(;_0x4c7da0;){if(_0x4c7da0['data']&&'listType'==_0x4c7da0['data']['key']&&_0x4c7da0['data']['newValue'])return _0x14f500;_0x4c7da0=_0x4c7da0['next'];}return{'type':'format','content':''+o(_0x1899d0,'*Remove\x20format:*\x20%0',o(_0x1899d0,this['_getTranslationKeyForListStyle'](_0x378132['oldValue'])))};}if('default'!=_0x378132['newValue'])return{'type':'format','content':''+o(_0x1899d0,'*Set\x20format:*\x20%0',o(_0x1899d0,this['_getTranslationKeyForListStyle'](_0x378132['newValue'])))};let _0xa29375=_0x8096c0['head'];for(;_0xa29375;){if(_0xa29375['data']&&'listType'==_0xa29375['data']['key']&&_0xa29375['data']['newValue']&&_0xa29375['data']['oldValue'])return _0x14f500;_0xa29375=_0xa29375['next'];}return{'type':'format','content':o(_0x1899d0,'*Set\x20format:*\x20%0',o(_0x1899d0,'ELEMENT_'+_0x8096c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x15c891=this['editor'],_0x393147=_0x15c891['locale'];_0x15c891['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36a596=>{if('formatBlock'!=_0x36a596['type'])return;const {data:_0x2c02fc}=_0x36a596;if(!_0x2c02fc)return;let _0x10e761,_0x34b909;switch(_0x2c02fc['commandName']){case'listStyle':_0x10e761='*Change\x20to:*\x20%0',_0x34b909={'type':'format','content':o(_0x393147,_0x10e761,o(_0x393147,this['_getTranslationKeyForListStyle'](_0x2c02fc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10e761=_0x2c02fc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x34b909={'type':'format','content':o(_0x393147,_0x10e761)};break;case'listStart':_0x10e761='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x34b909={'type':'format','content':o(_0x393147,_0x10e761,_0x2c02fc['commandParams'][0x0]['startIndex'])};}return _0x34b909;});}['_getTranslationKeyForListStyle'](_0x1fc49e){return'ELEMENT_'+function(_0x362ad5){if(pe['includes'](_0x362ad5))return'bulleted';if(ye['includes'](_0x362ad5))return'numbered';return null;}(_0x1fc49e)['toUpperCase']()+'_LIST_'+_0x1fc49e['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x52cd9d{static get['requires'](){return[_0x5bb9a9];}['init'](){const _0x1d4fc5=this['editor'],_0x175fa1=_0x1d4fc5['plugins']['get']('TrackChangesEditing'),_0x175835=_0x1d4fc5['commands']['get']('enter');_0x175fa1['enableCommand']('enter',()=>{_0x1d4fc5['model']['change'](_0x41638a=>{const _0x1ddfe2=_0x1d4fc5['model']['document']['selection'],_0x2db6ba=_0x1ddfe2['getFirstPosition'](),_0x39ab84=_0x39eeea['fromRange'](_0x1ddfe2['getFirstRange']());if(_0x175835['enterBlock'](_0x41638a)){const _0x52792e=_0x1d4fc5['model']['createPositionAt'](_0x2db6ba['parent']['nextSibling'],0x0),_0x369324=_0x41638a['createRange'](_0x2db6ba,_0x52792e);_0x175fa1['markInsertion'](_0x369324);}else _0x41638a['setSelection'](_0x41638a['createRange'](_0x39ab84['end']));_0x39ab84['detach'](),_0x175835['fire']('afterExecute',{'writer':_0x41638a});});}),_0x1d4fc5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1d4fc5,'split'),{'priority':'high'}),_0x1d4fc5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x39ab23,_0x21e75f,_0x119682)=>{const _0x32d5a9=_0x119682['mapper']['markerNameToElements'](_0x21e75f['markerName']);if(_0x32d5a9){for(const _0xdabf96 of _0x32d5a9)_0xdabf96['hasClass']('ck-suggestion-marker-split')&&(_0x119682['mapper']['unbindElementFromMarkerName'](_0xdabf96,_0x21e75f['markerName']),_0x119682['writer']['remove'](_0xdabf96));}},{'priority':'high'}),_0x1d4fc5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xef0eeb,_0x205913,_0x3c61ec)=>{_0x3c61ec['options']['showSuggestionHighlights']&&_e(_0x1d4fc5,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xef0eeb,_0x205913,_0x3c61ec);},{'priority':'high'});}}class J extends _0x52cd9d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x32be41=this['editor']['plugins']['get']('TrackChangesEditing');_0x32be41['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x32be41['enableCommand']('findNext'),_0x32be41['enableCommand']('findPrevious'),_0x32be41['enableCommand']('replace'),_0x32be41['enableCommand']('replaceAll');}['handleFindCommand'](_0xc54232,_0x18fbf8,_0x82c25e={}){const _0x10eaa2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xc54232(_0x593cd2=>('string'==typeof _0x18fbf8?_0x10eaa2['findByTextCallback'](_0x18fbf8,_0x82c25e):_0x18fbf8)(_0x593cd2)['filter'](_0xbc33da=>!0x1===this['_isInDeletionRange'](_0xbc33da,_0x593cd2['item'])),_0x82c25e);}['_isInDeletionRange'](_0x352ad8,_0x31853c){const _0x237123=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31853c,_0x352ad8['start']),this['editor']['model']['createPositionAt'](_0x31853c,_0x352ad8['end']));for(const _0x17a135 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x237123['getIntersection'](_0x17a135['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x52cd9d{['afterInit'](){const _0x20c86b=this['editor']['locale'],_0x408199=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x32d3f6,commandName:_0x32e998}of ro)this['editor']['plugins']['has'](_0x32d3f6)&&(_0x408199['enableDefaultAttributesIntegration'](_0x32e998),_0x408199['registerInlineAttribute'](_0x32e998));_0x20c86b['t'],_0x408199['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x20c86b,'FORMAT_FONT_SIZE')),_0x408199['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x20c86b,'FORMAT_FONT_FAMILY')),_0x408199['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x20c86b,'FORMAT_FONT_COLOR')),_0x408199['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x20c86b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b7744=this['editor'],_0xe7e1eb=_0x1b7744['locale'];_0x1b7744['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e7d02=>{const _0x17db3c=_0xe7e1eb['t'];if('formatInline'!=_0x5e7d02['type'])return;const {data:_0x5c785c}=_0x5e7d02;if(null!=_0x5c785c){if('fontSize'==_0x5c785c['commandName']){const _0x56e295=_0x5c785c['commandParams'][0x0]['value'];if(_0x56e295){const _0x54c33f=_0x17db3c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x40965b=>_0x40965b['model']==_0x56e295)['title'])['toLowerCase']();return{'type':'format','content':o(_0xe7e1eb,'*Set\x20font\x20size:*\x20%0',_0x54c33f)};}return{'type':'format','content':o(_0xe7e1eb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5c785c['commandName']){const _0x5baadf=_0x5c785c['commandParams'][0x0]['value'];return _0x5baadf?{'type':'format','content':o(_0xe7e1eb,'*Set\x20font\x20family:*\x20%0',_0x5baadf)}:{'type':'format','content':o(_0xe7e1eb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5c785c['commandName']){const _0x661d8d=_0x5c785c['commandParams'][0x0]['value'];if(_0x661d8d){const _0x30629b=_0x5f153d(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa32e19=>_0xa32e19['model']==_0x661d8d);let _0x39bb18=_0x661d8d,_0x3d684d='';return _0x30629b&&(_0x39bb18=_0x30629b['label'],_0x3d684d=_0x17db3c(_0x39bb18)['toLowerCase']()),{'type':'format','content':o(_0xe7e1eb,'*Set\x20font\x20color:*\x20%0',_0x3d684d)['trim'](),'color':{'value':_0x661d8d,'title':_0x3d684d||_0x39bb18}};}return{'type':'format','content':o(_0xe7e1eb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5c785c['commandName']){const _0x240517=_0x5c785c['commandParams'][0x0]['value'];if(_0x240517){const _0x1f2785=_0x5f153d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1c972d=>_0x1c972d['model']==_0x240517);let _0x4e65a9=_0x240517,_0x1fe61f='';return _0x1f2785&&(_0x4e65a9=_0x1f2785['label'],_0x1fe61f=_0x17db3c(_0x4e65a9)['toLowerCase']()),{'type':'format','content':o(_0xe7e1eb,'*Set\x20font\x20background\x20color:*\x20%0',_0x1fe61f)['trim'](),'color':{'value':_0x240517,'title':_0x1fe61f||_0x4e65a9}};}return{'type':'format','content':o(_0xe7e1eb,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x52cd9d{['afterInit'](){const _0x280854=this['editor'],_0x17b418=_0x280854['plugins']['get']('TrackChangesEditing'),_0x27db5c=_0x280854['commands']['get']('copyFormat'),_0x3b6d7f=_0x280854['commands']['get']('pasteFormat');_0x27db5c&&_0x3b6d7f&&(_0x17b418['enableDefaultAttributesIntegration']('pasteFormat'),_0x17b418['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3559de=this['editor'],_0x212089=_0x3559de['locale'];_0x3559de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12f3ff=>{if('formatBlock'!=_0x12f3ff['type']&&'formatInline'!=_0x12f3ff['type'])return;const {data:_0x50ff06}=_0x12f3ff;if(_0x50ff06&&'pasteFormat'===_0x50ff06['commandName']){const _0x4fa3bf=[],_0x277316=_0x50ff06['commandParams'][0x0];for(const [_0x3f57c1,_0x43a109]of Object['entries'](_0x277316))_0x4fa3bf['push'](so(_0x3559de,_0x3f57c1,_0x43a109));return _0x4fa3bf['length']?{'type':'format','content':o(_0x212089,'*Set\x20format\x20to:*\x20%0',_0x4fa3bf['join'](',\x20'))}:{'type':'format','content':o(_0x212089,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2550c0,_0x3d4b03,_0x5e255c){const _0x5567c9=_0x2550c0['locale']['t'],_0xcc3b37=_0x3d4b03['split'](/(?=[A-Z])/)['join']('\x20'),_0x597bd2=_0x5567c9(_0xcc3b37['charAt'](0x0)['toUpperCase']()+_0xcc3b37['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5e255c)return _0x597bd2;if('fontColor'===_0x3d4b03||'fontBackgroundColor'===_0x3d4b03){const _0x3f28a4=_0x5f153d(_0x2550c0['config']['get']('fontColor.colors'))['find'](_0x193443=>_0x193443['model']==_0x5e255c);return _0x597bd2+'\x20('+(_0x3f28a4?_0x5567c9(_0x3f28a4['label'])['toLowerCase']():_0x5e255c)+')';}if('fontSize'===_0x3d4b03&&isNaN(parseFloat(_0x5e255c))){const _0x52447e=_0x2550c0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2550c0['config']['get']('fontSize.options'))['find'](_0xbdf94=>_0xbdf94['model']==_0x5e255c);return _0x597bd2+'\x20('+(_0x52447e?_0x5567c9(_0x52447e['title'])['toLowerCase']():_0x5e255c)+')';}return _0x597bd2+'\x20('+_0x5e255c+')';}class Y extends _0x52cd9d{['_headingOptions'];['afterInit'](){const _0x4cc8ed=this['editor'];if(!_0x4cc8ed['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4cc8ed['config']['get']('heading.options');const _0x9d3d95=_0x4cc8ed['locale'],_0x5b3b06=_0x4cc8ed['plugins']['get']('TrackChangesEditing');_0x5b3b06['enableDefaultAttributesIntegration']('heading');for(const _0x44719a of this['_headingOptions'])'paragraph'!=_0x44719a['model']&&_0x5b3b06['descriptionFactory']['registerElementLabel'](_0x44719a['model'],_0x46332f=>{const _0x3475e7=this['_getHeadingLevel'](_0x44719a['model']);return null!==_0x3475e7?_0x5b941b(_0x46332f,_0x3475e7):_0x23efa5(_0x46332f,_0x44719a['title']);});function _0x5b941b(_0x480a08,_0x36964c){return o(_0x9d3d95,'ELEMENT_HEADING',[_0x480a08,_0x36964c]);}function _0x23efa5(_0x13a63a,_0x5e7118){return o(_0x9d3d95,'ELEMENT_HEADING_CUSTOM',[_0x13a63a,_0x5e7118]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bb185=this['editor'],_0x23067e=_0x1bb185['locale'];function _0x166e14(_0x45238a,_0x3d8e9e){return o(_0x23067e,'ELEMENT_HEADING_CUSTOM',[_0x45238a,_0x3d8e9e]);}_0x1bb185['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8a1bb2=>{if('formatBlock'!=_0x8a1bb2['type'])return;const {data:_0x2e560c}=_0x8a1bb2;if(_0x2e560c&&'heading'==_0x2e560c['commandName']){const _0x50dcf9=_0x2e560c['commandParams'][0x0]['value'],_0xf9ac6c=this['_getHeadingLevel'](_0x50dcf9);if(null!==_0xf9ac6c)return{'type':'format','content':o(_0x23067e,'*Change\x20to:*\x20%0',(_0x3f257d=0x1,_0x15cb78=_0xf9ac6c,o(_0x23067e,'ELEMENT_HEADING',[_0x3f257d,_0x15cb78])))};const _0x509919=this['_headingOptions']['find'](_0xb34e94=>_0xb34e94['model']===_0x50dcf9)['title'];return{'type':'format','content':o(_0x23067e,'*Change\x20to:*\x20%0',_0x166e14(0x1,_0x509919))};}var _0x3f257d,_0x15cb78;});}['_getHeadingLevel'](_0x347eac){const _0x274642=_0x347eac['match'](/^heading(\d+)/);if(_0x274642)return _0x274642[0x1];const _0x4ab971=this['_headingOptions']?.['find'](_0x168968=>_0x168968['model']==_0x347eac);if(_0x4ab971&&_0x4ab971['view']){const _0x25b1d6=_0x4ab971['view'],_0x1b0569=(_0x25b1d6['name']??_0x25b1d6)['match'](/^h(\d+)/);if(_0x1b0569)return _0x1b0569[0x1];}return null;}}class Z extends _0x52cd9d{['afterInit'](){const _0x2d1f0c=this['editor'];if(!_0x2d1f0c['plugins']['has']('HighlightEditing'))return;const _0x210915=_0x2d1f0c['plugins']['get']('TrackChangesEditing'),_0x48df07=_0x2d1f0c['locale'];_0x210915['enableDefaultAttributesIntegration']('highlight'),_0x210915['registerInlineAttribute']('highlight'),_0x210915['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x48df07,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x236498=this['editor'],_0x385677=_0x236498['locale'];_0x236498['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x261447=>{if('formatInline'!=_0x261447['type'])return;const {data:_0xc9039a}=_0x261447;if(_0xc9039a&&'highlight'==_0xc9039a['commandName']){const _0x9b80ca=_0x385677['t'],_0x769f45=_0xc9039a['commandParams'][0x0]['value'];if(_0x769f45){const _0xdd79=_0x236498['config']['get']('highlight.options')['find'](_0x50bbf5=>_0x50bbf5['model']==_0x769f45),_0x5d2953=_0x9b80ca(_0xdd79['title'])['toLowerCase']();return{'type':'format','content':o(_0x385677,'*Set\x20highlight:*\x20%0',_0x5d2953),'color':{'value':_0xdd79['color'],'title':_0xdd79['title']}};}return{'type':'format','content':o(_0x385677,'*Remove\x20highlight*',o(_0x385677,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x52cd9d{['afterInit'](){const _0x53f47d=this['editor'];if(!_0x53f47d['plugins']['has']('HorizontalLineEditing'))return;_0x53f47d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xca775b=_0x53f47d['plugins']['get']('TrackChangesEditing'),_0x3ca50e=_0x53f47d['locale'];_0xca775b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x471e48=>o(_0x3ca50e,'ELEMENT_HORIZONTAL_LINE',_0x471e48)),_0x53f47d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4131b7,{writer:_0x432a94,options:_0x57009e})=>{if(!_0x57009e['showSuggestionHighlights'])return null;const _0x4129c5=_0x432a94['createContainerElement']('div'),_0x9dc5e1=_0x432a94['createEmptyElement']('hr');return _0x432a94['addClass']('ck-horizontal-line',_0x4129c5),_0x432a94['insert'](_0x432a94['createPositionAt'](_0x4129c5,0x0),_0x9dc5e1),_0x4129c5;},'converterPriority':'high'});}}class et extends _0x52cd9d{['afterInit'](){const _0x5d5533=this['editor'];if(!_0x5d5533['plugins']['has']('HtmlEmbed'))return;const _0x4fdf32=_0x5d5533['plugins']['get']('TrackChangesEditing'),_0x3ce76f=_0x5d5533['locale'];_0x4fdf32['descriptionFactory']['registerElementLabel']('rawHtml',_0x3966ee=>o(_0x3ce76f,'ELEMENT_HTML_EMBED',_0x3966ee)),_0x4fdf32['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4fdf32['registerBlockAttribute']('value'),_0x4fdf32['descriptionFactory']['registerDescriptionCallback'](_0x399b2d=>{if('attribute'!=_0x399b2d['type'])return;const {data:_0x56bc52}=_0x399b2d;if(_0x56bc52&&'value'==_0x56bc52['key']&&_0x399b2d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x31f825=o(_0x3ce76f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3ce76f,'*Change\x20%0\x20content*',_0x31f825)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2935eb=this['editor'],_0x160595=_0x2935eb['locale'];_0x2935eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17453=>{if('formatBlock'!=_0x17453['type'])return;const {data:_0x38130b}=_0x17453;if(_0x38130b&&'htmlEmbed'==_0x38130b['commandName']){const _0x104b93=o(_0x160595,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x160595,'*Change\x20%0\x20content*',_0x104b93)};}});}}class it extends _0x52cd9d{['afterInit'](){const _0x322a11=this['editor'];if(!_0x322a11['plugins']['has']('ImageEditing'))return;const _0xb32879=_0x322a11['plugins']['get']('TrackChangesEditing'),_0x1a0eaa=_0x322a11['plugins']['get']('ImageUtils'),_0x29a036=_0x322a11['locale'];_0xb32879['enableCommand']('insertImage'),_0xb32879['descriptionFactory']['registerElementLabel']('imageBlock',_0x42fafe=>o(_0x29a036,'ELEMENT_IMAGE',_0x42fafe)),_0xb32879['descriptionFactory']['registerElementLabel']('imageInline',_0x54bdbc=>o(_0x29a036,'ELEMENT_INLINE_IMAGE',_0x54bdbc)),_0xb32879['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x29a036,'ELEMENT_CAPTION')),_0x322a11['plugins']['has']('ImageUploadEditing')&&_0xb32879['enableCommand']('uploadImage'),_0x322a11['plugins']['has']('ImageBlockEditing')&&_0x322a11['plugins']['has']('ImageInlineEditing')&&(_0xb32879['enableCommand']('imageTypeInline',(_0x25d6ad,_0x4311d1)=>{const _0x4ad803=_0x1a0eaa['getClosestSelectedImageElement'](_0x322a11['model']['document']['selection']);_0x322a11['model']['change'](()=>{_0xb32879['markBlockFormat'](_0x4ad803,{'commandName':'imageTypeInline','commandParams':[_0x4311d1]},[],'convertBlockImageToInline');});}),_0xb32879['enableCommand']('imageTypeBlock',(_0x2aff11,_0x294ddd)=>{_0x322a11['model']['change'](_0x941c19=>{let _0x2d136d=_0x1a0eaa['getClosestSelectedImageElement'](_0x322a11['model']['document']['selection']),_0x5e0c4f=_0x941c19['createRangeOn'](_0x2d136d);const _0x4dc65f=_0x498ffa['fromPosition'](_0x5e0c4f['start'],'toPrevious'),_0x27ec62=_0x498ffa['fromPosition'](_0x5e0c4f['end'],'toNext');_0xb32879['forceDefaultExecution'](()=>_0x2aff11(_0x294ddd)),_0x2d136d=_0x1a0eaa['getClosestSelectedImageElement'](_0x322a11['model']['document']['selection']),_0x5e0c4f=_0x941c19['createRangeOn'](_0x2d136d);const _0x15e33c=_0x941c19['createRange'](_0x4dc65f,_0x27ec62);_0x4dc65f['detach'](),_0x27ec62['detach'](),_0xb32879['markBlockFormat'](_0x2d136d,{'commandName':'imageTypeInline','commandParams':[_0x294ddd]},[],'convertInlineImageToBlock'),_0x15e33c['start']['isBefore'](_0x5e0c4f['start'])&&_0xb32879['markInsertion'](_0x941c19['createRange'](_0x15e33c['start'],_0x5e0c4f['start']),'convertInlineImageToBlock'),_0x5e0c4f['end']['isBefore'](_0x15e33c['end'])&&_0xb32879['markInsertion'](_0x941c19['createRange'](_0x5e0c4f['end'],_0x15e33c['end']),'convertInlineImageToBlock');});}),_0xb32879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb32879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb32879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb32879['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb32879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb32879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x256bf9])=>{const _0x23cd83=_0xb32879['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x389b85=_0x256bf9['start'],_0x1d8567=_0x256bf9['end'];const _0x43fca9=_0x322a11['model']['schema']['getNearestSelectionRange'](_0x389b85,'backward'),_0x134e22=_0x322a11['model']['schema']['getNearestSelectionRange'](_0x1d8567,'forward');_0x43fca9['isCollapsed']&&(_0x389b85=_0x43fca9['start']),_0x134e22['isCollapsed']&&(_0x1d8567=_0x134e22['end']),_0x23cd83([_0x322a11['model']['createRange'](_0x389b85,_0x1d8567)]);}),_0xb32879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x502db5),_0xb32879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x502db5)),_0x322a11['plugins']['has']('ImageCaptionEditing')&&(_0xb32879['enableCommand']('toggleImageCaption',(_0x4ceac3,_0x5a9e5a)=>{const _0x4232f1=_0x322a11['plugins']['get']('ImageCaptionUtils');let _0x56e578=_0x1a0eaa['getClosestSelectedImageElement'](_0x322a11['model']['document']['selection']),_0x195bcd=_0x4232f1['getCaptionFromImageModelElement'](_0x56e578);_0x322a11['model']['change'](()=>{if(_0x195bcd)return void _0xb32879['markDeletion'](_0x322a11['model']['createRangeOn'](_0x195bcd));const _0x564d89=_0x1a0eaa['isBlockImage'](_0x56e578);_0x4ceac3(_0x5a9e5a),_0x56e578=_0x1a0eaa['getClosestSelectedImageElement'](_0x322a11['model']['document']['selection']),_0x195bcd=_0x4232f1['getCaptionFromImageModelElement'](_0x56e578),_0xb32879['markInsertion'](_0x322a11['model']['createRangeOn'](_0x195bcd),_0x564d89?null:'imageCaption');});}),_0xb32879['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x502db5));const _0x3665e3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36005e(_0x553936,_0x49a6ff){const _0x5eb8dd=_0x3665e3['findIndex'](({type:_0x8983b9,subType:_0x10f879})=>_0x553936['type']==_0x8983b9&&_0x553936['subType']==_0x10f879),_0x402438=_0x3665e3['findIndex'](({type:_0x2d1539,subType:_0x508d16})=>_0x49a6ff['type']==_0x2d1539&&_0x49a6ff['subType']==_0x508d16);if(_0x5eb8dd<0x0||_0x402438<0x0)return!0x1;const _0x282516=_0x553936['getFirstRange'](),_0x294369=_0x49a6ff['getFirstRange']();if((0x0==_0x5eb8dd||0x1==_0x5eb8dd)&&0x2==_0x402438&&_0x282516['isIntersecting'](_0x294369))return!0x0;if(0x2==_0x5eb8dd&&0x3==_0x402438){const _0x131052=_0xb32879['_findSuggestions'](_0x282516,'insertion')['filter'](({suggestion:_0x4c40c5,meta:_0xf0cfe3})=>_0xf0cfe3['isOwn']&&'convertInlineImageToBlock'==_0x4c40c5['subType']);if(_0x131052['length']>0x1&&_0x294369['end']['isEqual'](_0x282516['start']))return!0x0;if(0x1==_0x131052['length']&&(_0x282516['start']['isEqual'](_0x294369['end'])||_0x282516['end']['isEqual'](_0x294369['start'])))return!0x0;}if(0x3==_0x5eb8dd&&0x3==_0x402438&&_0x282516['start']['isBefore'](_0x294369['start'])){const _0x18e865=_0x282516['end']['nodeAfter'],_0x39c4e3=_0x294369['start']['nodeBefore'];return _0x1a0eaa['isBlockImage'](_0x18e865)&&_0x18e865===_0x39c4e3;}return!0x1;}function _0x502db5(_0x180754,_0x2b3aa5){return _0x36005e(_0x180754,_0x2b3aa5)?[_0x180754,_0x2b3aa5]:_0x36005e(_0x2b3aa5,_0x180754)?[_0x2b3aa5,_0x180754]:null;}_0x322a11['plugins']['has']('ImageResize')&&(_0xb32879['enableDefaultAttributesIntegration']('resizeImage'),_0xb32879['registerBlockAttribute']('resizedWidth'),_0xb32879['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x29a036,'FORMAT_IMAGE_SIZE'))),_0x322a11['plugins']['has']('ImageTextAlternativeEditing')&&(_0xb32879['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xb32879['registerBlockAttribute']('alt')),_0xb32879['descriptionFactory']['registerDescriptionCallback'](_0x447d4e=>{if(!!_0x3665e3['find'](({type:_0x1aa956,subType:_0x9ea202})=>_0x447d4e['type']==_0x1aa956&&_0x447d4e['subType']==_0x9ea202))return _0x447d4e['previous']?{}:void 0x0;}),_0xb32879['descriptionFactory']['registerDescriptionCallback'](_0x1fc454=>{if('insertion'==_0x1fc454['type']||'deletion'==_0x1fc454['type']){const _0x1ccddc=_0x1fc454['getContainedElement']();if(_0x1ccddc&&_0x1ccddc['is']('element','caption'))return{'type':'insertion'==_0x1fc454['type']?'addObject':'removeObject','element':_0x1ccddc,'quantity':0x1};}}),_0xb32879['descriptionFactory']['registerDescriptionCallback'](_0xabc464=>'formatBlock'==_0xabc464['type']&&'convertInlineImageToBlock'==_0xabc464['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xabc464['type']&&'convertBlockImageToInline'==_0xabc464['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb32879['descriptionFactory']['registerDescriptionCallback'](_0x117142=>{if('attribute'!=_0x117142['type'])return;const {data:_0x59852c}=_0x117142;if(!_0x59852c||'alt'!=_0x59852c['key'])return;const _0x10d50b=_0x59852c['newValue'];return _0x10d50b?{'type':'format','content':o(_0x29a036,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x10d50b+'\x22')}:{'type':'format','content':o(_0x29a036,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24cfac=this['editor'],_0x400682=_0x24cfac['locale'];_0x24cfac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5038c4=>{if('formatBlock'!=_0x5038c4['type']&&'formatInline'!=_0x5038c4['type'])return;const {data:_0x34c3ad}=_0x5038c4;if(_0x34c3ad){if('imageTextAlternative'==_0x34c3ad['commandName']){const _0xc8d4d8=_0x34c3ad['commandParams'][0x0]['newValue'];return _0xc8d4d8?{'type':'format','content':o(_0x400682,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xc8d4d8+'\x22')}:{'type':'format','content':o(_0x400682,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x34c3ad['commandName']){const _0x982a75=_0x34c3ad['commandParams'][0x0]['width'];return _0x982a75?{'type':'format','content':o(_0x400682,'*Set\x20image\x20width:*\x20%0',_0x982a75)}:{'type':'format','content':o(_0x400682,'*Reset\x20image\x20width*')};}}});}}class st extends _0x52cd9d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x577a11=this['editor']['locale'],_0x31198a=this['editor']['plugins']['get']('TrackChangesEditing');_0x31198a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x31198a['registerBlockAttribute']('src'),_0x31198a['descriptionFactory']['registerDescriptionCallback'](_0x5e535d=>{if('attribute'!=_0x5e535d['type'])return;const {data:_0x315614}=_0x5e535d;return _0x315614&&'src'==_0x315614['key']?_0x315614['newValue']&&_0x315614['oldValue']?{'type':'format','content':o(_0x577a11,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5225cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x5225cf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5225cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5225cf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5225cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b12a3=this['editor'],_0x2bf550=_0x1b12a3['locale'];_0x1b12a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xce0459=>{if('formatBlock'!=_0xce0459['type']&&'formatInline'!=_0xce0459['type'])return;const {data:_0x4f2751}=_0xce0459;if(!_0x4f2751||'replaceImageSource'!=_0x4f2751['commandName'])return;return{'type':'format','content':o(_0x2bf550,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x52cd9d{['afterInit'](){const _0x9bbaaa=this['editor'];if(!_0x9bbaaa['plugins']['has']('ImageStyleEditing'))return;const _0x127863=_0x9bbaaa['plugins']['get']('TrackChangesEditing'),_0x1b66eb=_0x9bbaaa['plugins']['get']('ImageUtils'),_0x111e5c={};_0x127863['enableCommand']('imageStyle',(_0x43d2fe,_0x4815a8)=>{const _0x349d89=_0x9bbaaa['plugins']['get']('Users')['me'],_0x42c33f=_0x9bbaaa['commands']['get']('imageStyle');let _0x1ffd72=_0x1b66eb['getClosestSelectedImageElement'](_0x9bbaaa['model']['document']['selection']),_0x3b0638=_0x9bbaaa['model']['createRangeOn'](_0x1ffd72),_0x48e344=_0x42c33f['value'];if(_0x48e344==_0x4815a8['value'])return;const _0x54c0b3={'commandName':'imageStyle','commandParams':[_0x4815a8],'formatGroupId':_0x3792e7()};_0x9bbaaa['model']['change'](()=>{if(_0x127863['getSuggestions']()['filter'](_0x238406=>_0x238406['isInContent']&&_0x349d89==_0x238406['author']&&('formatBlock'==_0x238406['type']||'formatInline'==_0x238406['type'])&&('imageStylePreApply'==_0x238406['subType']||'imageStylePostApply'==_0x238406['subType'])&&_0x238406['getFirstRange']()['isEqual'](_0x3b0638))['forEach'](_0x599fe2=>_0x127863['discardSuggestion'](_0x599fe2['head'])),_0x1ffd72=_0x1b66eb['getClosestSelectedImageElement'](_0x9bbaaa['model']['document']['selection']),_0x3b0638=_0x9bbaaa['model']['createRangeOn'](_0x1ffd72),_0x42c33f['refresh'](),_0x9bbaaa['commands']['get']('imageTypeInline')['refresh'](),_0x9bbaaa['commands']['get']('imageTypeBlock')['refresh'](),_0x48e344=_0x42c33f['value'],_0x48e344!=_0x4815a8['value'])return _0x1b66eb['isInlineImage'](_0x1ffd72)&&_0x42c33f['shouldConvertImageType'](_0x4815a8['value'],_0x1ffd72)?(_0x43d2fe({..._0x4815a8,'setImageSizes':!0x1}),_0x1ffd72=_0x1b66eb['getClosestSelectedImageElement'](_0x9bbaaa['model']['document']['selection']),void _0x127863['markBlockFormat'](_0x1ffd72,{..._0x54c0b3,'commandReversedParams':[{'value':_0x48e344||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1b66eb['isBlockImage'](_0x1ffd72)?_0x127863['markBlockFormat'](_0x1ffd72,_0x54c0b3,[],'imageStylePostApply'):_0x127863['markInlineFormat'](_0x3b0638,_0x54c0b3,'imageStylePostApply'));});});for(const _0xe389bd of _0x9bbaaa['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x111e5c[_0xe389bd['name']]=_0xe389bd['title']['toLowerCase']();_0x127863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x127863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x127863['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x127863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x206127])=>{_0x1b66eb['setImageNaturalSizeAttributes'](_0x206127['getContainedElement']());}),_0x127863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x6e347,_0xb48029)=>{_0x127863['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x6e347,{'commandName':_0xb48029['commandName'],'commandParams':_0xb48029['commandReversedParams']});}),_0x127863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x38b868,_0x14fd0f){if(_0x89b5ba(_0x38b868,_0x14fd0f))return[_0x38b868,_0x14fd0f];if(_0x89b5ba(_0x14fd0f,_0x38b868))return[_0x14fd0f,_0x38b868];return null;});const _0x31de15=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x89b5ba(_0x3cdb4a,_0x39aadd){const _0x26be1c=_0x31de15['findIndex'](({type:_0x575c00,subType:_0x267940})=>_0x3cdb4a['type']==_0x575c00&&_0x3cdb4a['subType']==_0x267940),_0x1c3348=_0x31de15['findIndex'](({type:_0x352507,subType:_0x5cfe69})=>_0x39aadd['type']==_0x352507&&_0x39aadd['subType']==_0x5cfe69);if(_0x26be1c<0x0||_0x1c3348<0x0)return!0x1;const _0x15bf42=_0x3cdb4a['getFirstRange'](),_0x2dcbab=_0x39aadd['getFirstRange']();if((0x0==_0x26be1c||0x1==_0x26be1c)&&0x2==_0x1c3348&&_0x15bf42['isIntersecting'](_0x2dcbab))return!0x0;if(0x2==_0x26be1c&&0x3==_0x1c3348){const _0x3f07fb=_0x127863['_findSuggestions'](_0x15bf42,'insertion')['filter'](({suggestion:_0x24d2d3,meta:_0x5d4eb4})=>_0x5d4eb4['isOwn']&&'convertInlineImageToBlock'==_0x24d2d3['subType']);if(_0x3f07fb['length']>0x1&&_0x2dcbab['end']['isEqual'](_0x15bf42['start']))return!0x0;if(0x1==_0x3f07fb['length']&&(_0x15bf42['start']['isEqual'](_0x2dcbab['end'])||_0x15bf42['end']['isEqual'](_0x2dcbab['start'])))return!0x0;}if(0x3==_0x26be1c&&0x3==_0x1c3348&&_0x15bf42['start']['isBefore'](_0x2dcbab['start'])){const _0x7e9348=_0x15bf42['end']['nodeAfter'],_0x78c089=_0x2dcbab['start']['nodeBefore'];return _0x1b66eb['isBlockImage'](_0x7e9348)&&_0x7e9348===_0x78c089;}return!0x1;}_0x9bbaaa['model']['document']['registerPostFixer'](()=>{let _0x9f4444=!0x1;const _0x586d91=Array['from'](_0x9bbaaa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b3217,data:_0x4ec229}of _0x586d91){const {group:_0xae4600,type:_0x528d8c,subType:_0x1a76dd,id:_0x3cdc85}=_0x127863['_splitMarkerName'](_0x1b3217);if('suggestion'==_0xae4600&&_0x127863['hasSuggestion'](_0x3cdc85)){if('formatBlock'==_0x528d8c&&('imageStylePreApply'==_0x1a76dd||'imageStylePostApply'==_0x1a76dd)){const _0x39c68a=_0x127863['getSuggestion'](_0x3cdc85);if(_0x4ec229['newRange']){const _0x10e8c8=_0x39c68a['getFirstRange']()['getContainedElement']();if(_0x1b66eb['isBlockImage'](_0x10e8c8))continue;_0x127863['discardSuggestion'](_0x39c68a),_0x9f4444=!0x0;}}if('insertion'==_0x528d8c&&'imageCaption'==_0x1a76dd&&!_0x4ec229['newRange']){const _0x490c2f=_0x127863['getSuggestion'](_0x3cdc85);_0x490c2f['next']&&_0x490c2f['next']['isInContent']&&(_0x127863['discardSuggestion'](_0x490c2f['next']),_0x9f4444=!0x0);}}}return _0x9f4444;}),this['_registerLegacyDescription'](_0x111e5c);}['_registerLegacyDescription'](_0x4ae962){const _0x31a458=this['editor'],_0x575027=_0x31a458['locale'];_0x31a458['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39f377=>{if('formatBlock'!=_0x39f377['type']&&'formatInline'!=_0x39f377['type'])return;const {data:_0x13bb21}=_0x39f377;if(!_0x13bb21||'imageStyle'!=_0x13bb21['commandName'])return;const _0x418aa3=_0x13bb21['commandParams'][0x0]['value'];return _0x116b9d('side'===_0x418aa3?o(_0x575027,'FORMAT_SIDE_IMAGE'):_0x4ae962[_0x418aa3]||_0x418aa3);function _0x116b9d(_0x41bc32){return{'type':'format','content':o(_0x575027,'*Format:*\x20%0',_0x41bc32)};}});}}class ot extends _0x52cd9d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4c8dc3){super(_0x4c8dc3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x526bc5=this['editor'],_0x299fee=_0x526bc5['commands']['get']('importWord'),_0x21184a=_0x526bc5['commands']['get']('trackChanges');_0x299fee&&(_0x299fee['on']('execute',(_0x3541bd,[,_0x3a576f])=>{this['_trackChangesValueDuringImport']=_0x21184a['value'],_0x3a576f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x299fee,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x299fee,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x21184a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x526bc5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1cf288,_0x34823a){const {suggestions:_0x5d1b86}=_0x34823a,_0x398e7c=this['editor']['commands']['get']('trackChanges'),_0x4c9f1f=_0x398e7c['value'];this['_trackChangesValueDuringImport']!==_0x4c9f1f&&(_0x398e7c['execute'](),this['_trackChangesExecuted']=!0x0),_0x5d1b86&&_0x5d1b86['forEach'](({id:_0x2839e1,type:_0x1e4906,author:_0x4eef6e,created_at:_0x196777})=>{const _0x31b194={'id':_0x2839e1,'type':_0x1e4906,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4eef6e,'createdAt':_0x196777?new Date(_0x196777):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x31b194);});}}class rt extends _0x52cd9d{['afterInit'](){const _0x55fd41=this['editor'],_0x796acf=_0x55fd41['plugins']['get']('TrackChangesEditing');if(_0x55fd41['plugins']['has']('IndentEditing')&&(_0x796acf['enableCommand']('indent'),_0x796acf['enableCommand']('outdent')),_0x55fd41['plugins']['has']('IndentBlock')){for(const _0x65aae5 of['indentBlock','outdentBlock'])_0x796acf['enableDefaultAttributesIntegration'](_0x65aae5);}const _0x178909=_0x55fd41['locale'];_0x796acf['registerBlockAttribute']('blockIndent'),_0x796acf['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x178909,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5026b3=this['editor'],_0x40ec0b=_0x5026b3['locale'],_0x4a2328=_0x5026b3['plugins']['get']('TrackChangesEditing');_0x4a2328['descriptionFactory']['registerDescriptionCallback'](_0x4549e2=>{if('formatBlock'!=_0x4549e2['type'])return;const {data:_0x4aa333}=_0x4549e2;if(!_0x4aa333)return;if('indentBlock'!=_0x4aa333['commandName']&&'outdentBlock'!=_0x4aa333['commandName'])return;const _0x2db829=_0x4549e2['getItems']()[0x0],_0xb71b0b=_0x4a2328['descriptionFactory']['getItemLabel'](_0x2db829);return'indentBlock'==_0x4aa333['commandName']?{'type':'format','content':o(_0x40ec0b,'*Indent:*\x20%0',_0xb71b0b)}:'outdentBlock'==_0x4aa333['commandName']?{'type':'format','content':o(_0x40ec0b,'*Outdent:*\x20%0',_0xb71b0b)}:void 0x0;});}}class at extends _0x52cd9d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x52cd9d{['afterInit'](){const _0x30c052=this['editor'];if(!_0x30c052['plugins']['has']('LinkEditing'))return;const _0x2d293f=_0x30c052['plugins']['get']('TrackChangesEditing'),_0x19dea6=_0x30c052['commands']['get']('link');_0x2d293f['enableDefaultAttributesIntegration']('link'),_0x2d293f['enableDefaultAttributesIntegration']('unlink'),_0x2d293f['registerInlineAttribute']('linkHref');for(const _0x557be2 of _0x19dea6['manualDecorators'])_0x2d293f['registerInlineAttribute'](_0x557be2['id']),_0x2d293f['descriptionFactory']['registerAttributeLabel'](_0x557be2['id'],'link\x20('+_0x557be2['label']['toLowerCase']()+')');_0x2d293f['descriptionFactory']['registerDescriptionCallback'](_0x56bbd6=>{if('attribute'!=_0x56bbd6['type'])return;const {data:_0x2af41d}=_0x56bbd6;if(!_0x2af41d||'linkHref'!=_0x2af41d['key'])return;const _0xb479a0=_0x2af41d['newValue'],_0x27ed7f=_0x30c052['locale'];return{'type':'format','content':null==_0xb479a0?o(_0x27ed7f,'*Remove\x20link*'):o(_0x27ed7f,'*Set\x20link:*\x20%0','\x22'+_0xb479a0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d9d27=this['editor'],_0x11d223=_0x2d9d27['locale'];_0x2d9d27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38fde5=>{if('formatInline'!=_0x38fde5['type'])return;const {data:_0x4e7ae1}=_0x38fde5;if(_0x4e7ae1){if('link'==_0x4e7ae1['commandName']){const _0x209352=_0x4e7ae1['commandParams'][0x0];return{'type':'format','content':o(_0x11d223,'*Set\x20link:*\x20%0','\x22'+_0x209352+'\x22')};}return'unlink'==_0x4e7ae1['commandName']?{'type':'format','content':o(_0x11d223,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x52cd9d{['afterInit'](){const _0x2e4d3d=this['editor'],_0x47ef90=_0x2e4d3d['locale'];if(!_0x2e4d3d['plugins']['has']('LegacyListEditing'))return;const _0x574f50=_0x2e4d3d['plugins']['get']('TrackChangesEditing'),_0x3c3604=_0x2e4d3d['plugins']['has']('LegacyTodoListEditing');function _0x3f78ab(_0x30e4fc){return()=>{const _0x53fdb1=_0x2e4d3d['model']['document']['selection'],_0x2758c0=_0x2e4d3d['commands']['get'](_0x30e4fc);if(_0x2758c0['value'])return void _0x2e4d3d['execute']('paragraph',{});const _0x4d0606=_0x30e4fc['slice'](0x0,-0x4),_0x529114=function(_0x1e87b3,_0x196d42,_0x1a5b4d){let _0x464349=Array['from'](_0x1e87b3)['filter'](_0x2e1494=>function(_0x44531c,_0x545396){return _0x545396['checkChild'](_0x44531c['parent'],'listItem')&&!_0x545396['isObject'](_0x44531c);}(_0x2e1494,_0x1a5b4d));_0x464349=_0x464349['filter'](_0x3c4bae=>!_0x3c4bae['is']('element','listItem')||_0x3c4bae['getAttribute']('listType')!=_0x196d42);const _0x398ab3=new Set();for(const _0x286d0d of _0x464349)_0x286d0d['is']('element','listItem')?_0x398ab3['add'](me(_0x286d0d)):_0x398ab3['add'](_0x286d0d);return Array['from'](_0x398ab3);}(_0x53fdb1['getSelectedBlocks'](),_0x4d0606,_0x2e4d3d['model']['schema']);_0x2e4d3d['model']['change'](()=>{for(const _0x368120 of _0x529114)_0x574f50['markBlockFormat'](_0x368120,{'commandName':_0x30e4fc,'commandParams':[{'forceValue':!_0x2758c0['value']}],'formatGroupId':'blockName'},fe(_0x368120));});};}function _0xef549e(_0x142061){return()=>{const _0xd57e64=function(_0x486dac){let _0x3a0aaf=Array['from'](_0x486dac);const _0x5160ff=_0x3a0aaf['findIndex'](_0x10e151=>'listItem'!=_0x10e151['name']);return _0x5160ff>-0x1&&(_0x3a0aaf=_0x3a0aaf['slice'](0x0,_0x5160ff)),_0x3a0aaf;}(_0x2e4d3d['model']['document']['selection']['getSelectedBlocks']()),_0x132aad=_0x2e4d3d['model']['createRange'](_0x2e4d3d['model']['createPositionAt'](_0xd57e64[0x0],'before'),_0x2e4d3d['model']['createPositionAt'](_0xd57e64[_0xd57e64['length']-0x1],'end'));_0x2e4d3d['model']['change'](()=>{_0x574f50['markBlockFormat'](_0x132aad,{'commandName':_0x142061,'commandParams':[],'formatGroupId':'listIndent'},function(_0x38998c){const _0xcf5f80=new Set();for(const _0x5d0801 of _0x38998c){let _0x230cb8=_0x5d0801['nextSibling'];for(;_0x230cb8&&_0x230cb8['getAttribute']('listIndent')>_0x5d0801['getAttribute']('listIndent');)_0xcf5f80['add'](_0x230cb8),_0x230cb8=_0x230cb8['nextSibling'];}return Array['from'](_0xcf5f80);}(_0xd57e64));});};}_0x574f50['enableCommand']('numberedList',_0x3f78ab('numberedList')),_0x574f50['enableCommand']('bulletedList',_0x3f78ab('bulletedList')),_0x3c3604&&_0x574f50['enableCommand']('todoList',_0x3f78ab('todoList')),_0x574f50['enableCommand']('indentList',_0xef549e('indentList')),_0x574f50['enableCommand']('outdentList',_0xef549e('outdentList')),_0x3c3604&&_0x574f50['enableCommand']('checkTodoList',()=>{const _0x15a2cd=_0x2e4d3d['commands']['get']('checkTodoList'),_0x4594d4=Array['from'](_0x15a2cd['_selectedElements']);_0x4594d4['filter'](_0x271874=>_0x271874['getAttribute']('todoListChecked')!=_0x15a2cd['value']),_0x2e4d3d['model']['change'](()=>{for(const _0x436597 of _0x4594d4)_0x574f50['markBlockFormat'](_0x436597,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x15a2cd['value']}]});});}),_0x574f50['descriptionFactory']['registerElementLabel']('listItem',_0x9ba1e7=>o(_0x47ef90,'ELEMENT_LIST_ITEM',_0x9ba1e7)),_0x574f50['descriptionFactory']['registerDescriptionCallback'](_0xd6f1e3=>{if('formatBlock'!=_0xd6f1e3['type']&&'formatInline'!=_0xd6f1e3['type'])return;const {data:_0x566291}=_0xd6f1e3;if(_0x566291){if('numberedList'==_0x566291['commandName']||'bulletedList'==_0x566291['commandName']||'todoList'==_0x566291['commandName'])switch(_0x566291['commandName']['replace']('List','')){case'bulleted':return _0x960ff2(o(_0x47ef90,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x960ff2(o(_0x47ef90,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x960ff2(o(_0x47ef90,'ELEMENT_TODO_LIST'));}if('indentList'==_0x566291['commandName'])return{'type':'format','content':o(_0x47ef90,'*Indent:*\x20%0',o(_0x47ef90,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x566291['commandName'])return{'type':'format','content':o(_0x47ef90,'*Outdent:*\x20%0',o(_0x47ef90,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x566291['commandName'])return _0x566291['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47ef90,'*Check\x20item*')}:{'type':'format','content':o(_0x47ef90,'*Uncheck\x20item*')};}function _0x960ff2(_0x5d700a){return{'type':'format','content':o(_0x47ef90,'*Change\x20to:*\x20%0',_0x5d700a)};}});}}function me(_0x303cc2){const _0x26ec27=_0x303cc2['getAttribute']('listIndent');if(0x0==_0x26ec27)return _0x303cc2;let _0xf32d4c=_0x303cc2;for(;_0x303cc2['previousSibling']&&_0x303cc2['previousSibling']['is']('element','listItem');){const _0x487cd7=_0x303cc2['previousSibling']['getAttribute']('listIndent');if(_0x487cd7==_0x26ec27)_0xf32d4c=_0x303cc2['previousSibling'];else{if(_0x487cd7<_0x26ec27)break;}_0x303cc2=_0x303cc2['previousSibling'];}return _0xf32d4c;}function fe(_0x50ce85){const _0x5c6072=[];if(_0x50ce85['is']('element','listItem')&&_0x50ce85['getAttribute']('listIndent')>0x0){let _0x41e651=_0x50ce85['nextSibling'];for(;_0x41e651&&'listItem'==_0x41e651['name']&&_0x41e651['getAttribute']('listIndent')==_0x50ce85['getAttribute']('listIndent');)_0x5c6072['push'](_0x41e651),_0x41e651=_0x41e651['nextSibling'];}return _0x5c6072;}class K extends _0x52cd9d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x22b4fb=this['editor']['config']['get']('list.properties'),_0x1fb55f=this['editor']['plugins']['get']('TrackChangesEditing');_0x22b4fb['styles']&&_0x1fb55f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x22b4fb['reversed']&&_0x1fb55f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x22b4fb['startIndex']&&_0x1fb55f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1fb55f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2d9790,_0x283af5={}){const _0x510aaf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fbdc6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x510aaf['markMultiRangeBlockFormat'](_0x2fbdc6,{'commandName':'listStyle','commandParams':[{'type':_0x283af5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xa4d4fc,_0x214bb5={}){const _0x855884=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10f12f=this['_getSuggestionBlocks'](_0x4c8a3a=>_0x4c8a3a['is']('element','listItem')&&'numbered'===_0x4c8a3a['getAttribute']('listType'));if(_0x10f12f['length']<0x1)return;const _0x4a8e97=_0x10f12f['map'](_0x2ea4b6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ea4b6,'before'),this['editor']['model']['createPositionAt'](_0x2ea4b6,0x0)));this['editor']['model']['change'](()=>{_0x855884['markMultiRangeBlockFormat'](_0x4a8e97,{'commandName':'listReversed','commandParams':[{'reversed':_0x214bb5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5b00a7,_0x122edd={}){const _0x46348a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x558150=this['_getSuggestionBlocks'](_0x299c4d=>_0x299c4d['is']('element','listItem')&&'numbered'===_0x299c4d['getAttribute']('listType'));if(_0x558150['length']<0x1)return;const _0x1eda3d=_0x558150['map'](_0x6e10f2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6e10f2,'before'),this['editor']['model']['createPositionAt'](_0x6e10f2,0x0)));this['editor']['model']['change'](()=>{_0x46348a['markMultiRangeBlockFormat'](_0x1eda3d,{'commandName':'listStart','commandParams':[{'startIndex':_0x122edd['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1c7cc1){if('formatBlock'!=_0x1c7cc1['type']&&'formatInline'!=_0x1c7cc1['type'])return;const _0x5cd864=this['editor']['locale'],{data:_0x31b525}=_0x1c7cc1;if(!_0x31b525)return;let _0x4e2e7d,_0x21c720;switch(_0x31b525['commandName']){case'listStyle':_0x4e2e7d='*Change\x20to:*\x20%0',_0x21c720={'type':'format','content':o(_0x5cd864,_0x4e2e7d,o(_0x5cd864,this['_getTranslationKeyForListStyle'](_0x31b525['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e2e7d=_0x31b525['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x21c720={'type':'format','content':o(_0x5cd864,_0x4e2e7d)};break;case'listStart':_0x4e2e7d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21c720={'type':'format','content':o(_0x5cd864,_0x4e2e7d,_0x31b525['commandParams'][0x0]['startIndex'])};}return _0x21c720;}['_getSuggestionBlocksForListStyle'](){const _0x43452a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2283ad=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2283ad[0x0]?.['is']('element','listItem')&&_0x2283ad['unshift'](..._0x43452a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2283ad[_0x2283ad['length']-0x1]?.['is']('element','listItem')&&_0x2283ad['push'](..._0x43452a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2283ad=[...new Set(_0x2283ad)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2283ad=_0x2283ad['filter'](_0x5edf29=>_0x5edf29['is']('element','listItem'))),_0x2283ad;}['_getSuggestionBlocks'](_0x2e3aea){const _0x26cec5=this['editor']['plugins']['get']('LegacyListUtils');let _0x369dc1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2e3aea)['map'](_0x483818=>{const _0x122a92=this['editor']['model']['createPositionAt'](_0x483818,0x0);return[..._0x26cec5['getSiblingNodes'](_0x122a92,'backward'),..._0x26cec5['getSiblingNodes'](_0x122a92,'forward')];})['flat']();return _0x369dc1=[...new Set(_0x369dc1)],_0x369dc1;}['_getTranslationKeyForListStyle'](_0x21cf24){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x21cf24)||'default')['toUpperCase']()+'_LIST_'+_0x21cf24['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x52cd9d{['afterInit'](){const _0x366dcc=this['editor'];if(!_0x366dcc['plugins']['has']('MediaEmbedEditing'))return;const _0x3873ba=_0x366dcc['plugins']['get']('TrackChangesEditing'),_0x4dae02=_0x366dcc['locale'];_0x3873ba['enableCommand']('mediaEmbed'),_0x3873ba['descriptionFactory']['registerElementLabel']('media',_0x3155f2=>o(_0x4dae02,'ELEMENT_MEDIA',_0x3155f2)),_0x366dcc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x44c0b1,{writer:_0x4b0cc5,options:_0x2613ce})=>{if(_0x2613ce['showSuggestionHighlights'])return _0x4b0cc5['createEmptyElement']('div');},'converterPriority':'high'}),_0x366dcc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2f9f6a,_0x5bf81a,_0x4fd705)=>{_0x4fd705['options']['showSuggestionHighlights']&&_0x2f9f6a['stop']();},{'priority':'high'});}}class gt extends _0x52cd9d{['afterInit'](){const _0x166b9c=this['editor'];_0x166b9c['plugins']['has']('MentionEditing')&&_0x166b9c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x52cd9d{['afterInit'](){const _0x2e9eb5=this['editor'],_0x479e70=_0x2e9eb5['plugins']['get']('TrackChangesEditing');_0x2e9eb5['plugins']['has']('MultiLevelList')&&(_0x479e70['enableDefaultAttributesIntegration']('multiLevelList'),_0x479e70['registerBlockAttribute']('listMarkerStyle'),_0x479e70['descriptionFactory']['registerDescriptionCallback'](_0x36f521=>this['handleDescriptions'](_0x36f521)));}['handleDescriptions'](_0x3c19a5){const _0x2a5f5d=this['editor']['locale'],{data:_0x5532a6}=_0x3c19a5,_0x5cdbe8={'type':'format','content':''};if(_0x5532a6&&'listMarkerStyle'==_0x5532a6['key']){if(!_0x5532a6['oldValue'])return{'type':'format','content':o(_0x2a5f5d,'*Set\x20format:*\x20%0',o(_0x2a5f5d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5532a6['newValue']+')'};if(!_0x5532a6['newValue']){let _0x416c1f=_0x3c19a5['head'];for(;_0x416c1f;){if(_0x416c1f['data']&&'listType'==_0x416c1f['data']['key']&&_0x416c1f['data']['newValue'])return _0x5cdbe8;_0x416c1f=_0x416c1f['next'];}return{'type':'format','content':o(_0x2a5f5d,'*Remove\x20format:*\x20%0',o(_0x2a5f5d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5532a6['oldValue']+')'};}}}}class mt extends _0x52cd9d{['afterInit'](){const _0x173250=this['editor'];if(!_0x173250['plugins']['has']('PageBreakEditing'))return;_0x173250['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x36b858=_0x173250['plugins']['get']('TrackChangesEditing'),_0x3feac1=_0x173250['locale'];_0x36b858['descriptionFactory']['registerElementLabel']('pageBreak',_0x257812=>o(_0x3feac1,'ELEMENT_PAGE_BREAK',_0x257812));}}class dt extends _0x52cd9d{['afterInit'](){const _0x476d27=this['editor'];if(!_0x476d27['plugins']['has']('Paragraph'))return;const _0x800e37=_0x476d27['locale'],_0x1903f0=_0x476d27['plugins']['get']('TrackChangesEditing');_0x1903f0['descriptionFactory']['registerElementLabel']('paragraph',_0x61cd7a=>o(_0x800e37,'ELEMENT_PARAGRAPH',_0x61cd7a)),_0x1903f0['enableDefaultAttributesIntegration']('paragraph'),_0x1903f0['enableCommand']('insertParagraph'),_0x476d27['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x476d27),{'priority':'highest'}),_0x476d27['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x32e539,_0x1ad520,_0x120178)=>{_0x120178['options']['showSuggestionHighlights']&&nr(_0x476d27,{'showActiveMarker':!0x1})(_0x32e539,_0x1ad520,_0x120178);},{'priority':'highest'});const _0x1220cf=_0x1903f0['descriptionFactory'];_0x1220cf['registerDescriptionCallback'](_0x2a9107=>{if('insertion'!==_0x2a9107['type'])return;const {start:_0x1c85bf,end:_0x7f0ef2}=_0x2a9107['getFirstRange']();if(!_0x1c85bf['isTouching'](_0x7f0ef2)||!_0x1c85bf['nodeAfter'])return;const _0x855766=_0x476d27['model']['schema'],_0x6f2ba3=_0x1c85bf['nodeAfter'];return _0x855766['isBlock'](_0x6f2ba3)&&!_0x855766['isLimit'](_0x6f2ba3)&&_0x855766['checkChild'](_0x6f2ba3,'$text')?{'type':'insertion','content':o(_0x800e37,'*Insert:*\x20%0',_0x1220cf['getItemLabel'](_0x6f2ba3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d4d55=this['editor'],_0x2ca0a2=_0x5d4d55['locale'];_0x5d4d55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7b4c34=>{if('formatBlock'!=_0x7b4c34['type'])return;const {data:_0x2a624c}=_0x7b4c34;return _0x2a624c&&'paragraph'==_0x2a624c['commandName']?{'type':'format','content':o(_0x2ca0a2,'*Change\x20to:*\x20%0',o(_0x2ca0a2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x35e5ad,{showActiveMarker:_0x270252=!0x0}={}){return(_0x2410da,_0xd83814,_0x272b30)=>{const _0x42de3e=_0x35e5ad['plugins']['get']('TrackChangesEditing'),_0x5202e3=_0xd83814['markerRange']['start'],_0x3774c4=_0xd83814['markerRange']['end'],_0x4da5a7=_0x35e5ad['model']['schema'];if(!_0x5202e3['isTouching'](_0x3774c4)||!_0x5202e3['nodeAfter'])return;const _0x45b427=_0x5202e3['nodeAfter'];if(_0x4da5a7['isBlock'](_0x45b427)&&!_0x4da5a7['isLimit'](_0x45b427)&&_0x4da5a7['checkChild'](_0x45b427,'$text')){if(!_0x272b30['consumable']['consume'](_0xd83814['markerRange'],_0x2410da['name']))return;const _0x558a66=_0x272b30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x352978=_0x272b30['mapper']['toViewPosition'](_0x3774c4);_0x270252&&_0x42de3e['activeMarkers']['includes'](_0xd83814['markerName'])&&_0x272b30['writer']['addClass']('ck-suggestion-marker--active',_0x558a66),_0x272b30['writer']['insert'](_0x352978,_0x558a66),_0x272b30['mapper']['bindElementToMarker'](_0x558a66,_0xd83814['markerName']);}};}class pt extends _0x52cd9d{['afterInit'](){const _0x5397a2=this['editor'];if(!_0x5397a2['plugins']['has']('RemoveFormatEditing'))return;_0x5397a2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26c9bd=this['editor'];_0x26c9bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x536170=>{if('formatBlock'!=_0x536170['type']&&'formatInline'!=_0x536170['type'])return;const {data:_0x1ea3cb}=_0x536170;return _0x1ea3cb&&'removeFormat'==_0x1ea3cb['commandName']?{'type':'format','content':o(_0x26c9bd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x52cd9d{['afterInit'](){const _0xa2827a=this['editor'];if(!_0xa2827a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x310660=_0xa2827a['plugins']['get']('TrackChangesEditing');_0x310660['enableCommand']('goToPreviousRestrictedEditingException'),_0x310660['enableCommand']('goToNextRestrictedEditingException');const _0x396503=_0xa2827a['plugins']['get']('RestrictedEditingModeEditing');_0x396503['enableCommand']('trackChanges'),_0x396503['enableCommand']('acceptSuggestion'),_0x396503['enableCommand']('discardSuggestion'),_0x396503['enableCommand']('acceptAllSuggestions'),_0x396503['enableCommand']('discardAllSuggestions'),_0x396503['enableCommand']('acceptSelectedSuggestions'),_0x396503['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x52cd9d{static get['requires'](){return[_0x2f0715];}['init'](){const _0x1e12d6=this['editor'],_0x48c296=_0x1e12d6['plugins']['get']('TrackChangesEditing');_0x48c296['enableCommand']('shiftEnter'),_0x1e12d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1e12d6),{'priority':'high'}),_0x1e12d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1e12d6),{'priority':'high'}),_0x1e12d6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13dd72,_0x3b5544,_0x29de95)=>{_0x29de95['options']['showSuggestionHighlights']&&de(_0x1e12d6,{'showActiveMarker':!0x1})(_0x13dd72,_0x3b5544,_0x29de95);}),_0x48c296['descriptionFactory']['registerElementLabel']('softBreak',_0x48e01e=>o(_0x1e12d6['locale'],'ELEMENT_LINE_BREAK',_0x48e01e));}}function de(_0x4f334e,{showActiveMarker:_0x52034c=!0x0}={}){return(_0x1417c2,_0x1e32eb,_0x4bd7a5)=>{const _0x53cdfe=_0x4f334e['plugins']['get']('TrackChangesEditing');if(!_0x4bd7a5['consumable']['test'](_0x1e32eb['markerRange'],_0x1417c2['name']))return;const _0x4e68a8=_0x4f334e['model'];for(const _0x98d52c of _0x1e32eb['markerRange']['getItems']()){if(!_0x98d52c['is']('element','softBreak'))continue;const _0x38cfdc='deletion'==_0x1e32eb['markerName']['split'](':')[0x1]?'merge':'split',_0x59a41a=_0x4bd7a5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38cfdc}),_0xe293f5=_0x4bd7a5['mapper']['toViewPosition'](_0x4e68a8['createPositionBefore'](_0x98d52c));_0x52034c&&_0x53cdfe['activeMarkers']['includes'](_0x1e32eb['markerName'])&&_0x4bd7a5['writer']['addClass']('ck-suggestion-marker--active',_0x59a41a),_0x4bd7a5['writer']['insert'](_0xe293f5,_0x59a41a),_0x4bd7a5['mapper']['bindElementToMarker'](_0x59a41a,_0x1e32eb['markerName']);}};}class wt extends _0x52cd9d{['afterInit'](){const _0x4cc997=this['editor'],_0x1f976b=_0x4cc997['model'],_0x21bea1=_0x4cc997['locale'];if(!_0x4cc997['plugins']['has']('StandardEditingModeEditing'))return;const _0x48f0c5=_0x4cc997['plugins']['get']('TrackChangesEditing'),_0x3bbc0b='restrictedEditingException',_0x179d3d=_0x4cc997['commands']['get'](_0x3bbc0b);_0x48f0c5['enableCommand'](_0x3bbc0b,(_0x347ad2,_0x1f0db4={})=>{const _0x14ea7e=_0x1f976b['document']['selection'];if(_0x14ea7e['isCollapsed'])return void _0x347ad2(_0x1f0db4);const _0x36957e=void 0x0!==_0x1f0db4['forceValue']?_0x1f0db4['forceValue']:!_0x179d3d['value'];_0x1f976b['change'](()=>{const _0x2d1ce4=Array['from'](_0x14ea7e['getRanges']());for(const _0x33af88 of _0x2d1ce4){const _0x5f2cb6=_0x36957e?[_0x33af88]:io(_0x3bbc0b,_0x33af88,_0x1f976b);for(const _0x3759d1 of _0x5f2cb6)_0x48f0c5['markInlineFormat'](_0x3759d1,{'commandName':_0x3bbc0b,'commandParams':[{'forceValue':_0x36957e}]});}});}),_0x48f0c5['descriptionFactory']['registerDescriptionCallback'](_0x935825=>{if('formatBlock'!=_0x935825['type']&&'formatInline'!=_0x935825['type'])return;const {data:_0x1e200d}=_0x935825;return _0x1e200d&&_0x1e200d['commandName']==_0x3bbc0b?_0x1e200d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x21bea1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x21bea1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x52cd9d{['afterInit'](){const _0x12f0cf=this['editor'];if(!_0x12f0cf['plugins']['has']('Style')||!_0x12f0cf['plugins']['has']('DataSchema'))return;const _0x433285=_0x12f0cf['plugins']['get']('TrackChangesEditing'),_0x53f6e7=_0x12f0cf['locale'],_0x312a9a=_0x12f0cf['config']['get']('style')||{},_0x159f9e=_0x12f0cf['plugins']['get']('GeneralHtmlSupport'),_0x497cbf=_0x12f0cf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x12f0cf['plugins']['get']('DataSchema'),_0x312a9a['definitions']);_0x433285['enableDefaultAttributesIntegration']('style');const _0x383bb3=new Set();for(const _0x7b5712 of _0x497cbf['block']){const _0x14f397=_0x159f9e['getGhsAttributeNameForElement'](_0x7b5712['element']);_0x383bb3['add'](_0x14f397);}const _0x44c76d=new Set();for(const _0x410f20 of _0x497cbf['inline']){const _0x2ee29f=_0x159f9e['getGhsAttributeNameForElement'](_0x410f20['element']);_0x44c76d['add'](_0x2ee29f);for(const _0x62a49d of _0x410f20['ghsAttributes'])_0x44c76d['add'](_0x62a49d);}for(const _0x5cc617 of _0x383bb3)_0x433285['registerBlockAttribute'](_0x5cc617),_0x433285['descriptionFactory']['registerAttributeLabel'](_0x5cc617,o(_0x53f6e7,'FORMAT_STYLE'));for(const _0x4cf783 of _0x44c76d)_0x433285['registerInlineAttribute'](_0x4cf783),_0x433285['descriptionFactory']['registerAttributeLabel'](_0x4cf783,o(_0x53f6e7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34157e=this['editor'],_0x3c4025=_0x34157e['locale'];_0x34157e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13c25b=>{if('formatBlock'!=_0x13c25b['type']&&'formatInline'!=_0x13c25b['type'])return;const {data:_0x11417d}=_0x13c25b;return _0x11417d&&'style'===_0x11417d['commandName']?_0x11417d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c4025,'*Set\x20format:*\x20%0',_0x11417d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3c4025,'*Remove\x20format:*\x20%0',_0x11417d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x52cd9d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x186d3d){super(_0x186d3d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4650c8=this['editor'],_0x200692=_0x4650c8['model']['document']['selection'];if(!_0x4650c8['plugins']['has']('TableEditing'))return;const _0x5aafb6=_0x4650c8['locale'],_0x302319=_0x4650c8['plugins']['get']('TrackChangesEditing'),_0x66603a=_0x4650c8['plugins']['get']('TableUtils');_0x302319['descriptionFactory']['registerElementLabel']('table',_0x555249=>o(_0x5aafb6,'ELEMENT_TABLE',_0x555249)),this['_setupColumnsRowsFixing'](),_0x302319['enableCommand']('insertTable'),_0x302319['enableCommand']('selectTableRow'),_0x302319['enableCommand']('selectTableColumn');for(const _0x460ad1 of['insertTableRowAbove','insertTableRowBelow']){const _0x45baf4=_0x4650c8['commands']['get'](_0x460ad1);_0x302319['enableCommand'](_0x460ad1,_0x2acef2=>{_0x4650c8['model']['change'](_0x141736=>{_0x2acef2();const _0x324d45='above'===_0x45baf4['order'],_0x2f1e94=_0x66603a['getSelectionAffectedTableCells'](_0x200692),_0x359363=_0x66603a['getRowIndexes'](_0x2f1e94),_0x2ae03f=_0x324d45?_0x359363['first']-0x1:_0x359363['last']+0x1,_0x5a2393=_0x2f1e94[0x0]['findAncestor']('table'),_0x3046d1=_0x66603a['createTableWalker'](_0x5a2393,{'startRow':_0x2ae03f,'endRow':_0x2ae03f}),_0x789517=Array['from'](_0x3046d1)['map'](_0xb4f78b=>_0x141736['createRangeOn'](_0xb4f78b['cell']));_0x302319['markMultiRangeInsertion'](_0x789517,'tableRow');});});}for(const _0x41e1cd of['insertTableColumnLeft','insertTableColumnRight']){const _0x2965d8=_0x4650c8['commands']['get'](_0x41e1cd);_0x302319['enableCommand'](_0x41e1cd,_0x217791=>{_0x4650c8['model']['change'](_0x1bfbe3=>{_0x217791();const _0x1230fb='left'===_0x2965d8['order'],_0x1b7344=_0x66603a['getSelectionAffectedTableCells'](_0x200692),_0x570bfb=_0x66603a['getColumnIndexes'](_0x1b7344),_0x2f10d8=_0x1230fb?_0x570bfb['first']-0x1:_0x570bfb['last']+0x1,_0x2780de=_0x1b7344[0x0]['findAncestor']('table'),_0x3e7b3b=_0x66603a['createTableWalker'](_0x2780de,{'startRow':0x0,'column':_0x2f10d8,'includeAllSlots':!0x1}),_0x3a31ce=Array['from'](_0x3e7b3b)['map'](_0x4111a0=>_0x1bfbe3['createRangeOn'](_0x4111a0['cell']));_0x302319['markMultiRangeInsertion'](_0x3a31ce,'tableColumn');});});}for(const _0x258456 of['removeTableRow','removeTableColumn']){const _0x412154=_0x258456['substr'](0xb),_0x381afb=_0x412154['toLowerCase'](),_0x1c0b51=_0x381afb['substr'](0x0,0x3)+'span',_0x332da4='table'+_0x412154,_0x5192e1='min'+_0x412154,_0x3f81a2='max'+_0x412154;_0x302319['enableCommand'](_0x258456,()=>{_0x4650c8['model']['change'](_0x4a32e1=>{const _0x3c7c58=_0x66603a['getSelectionAffectedTableCells'](_0x200692),_0x4f966d=_0x3c7c58[0x0]['findAncestor']('table');let _0x307080;if('removeTableRow'==_0x258456){const _0x131de8=_0x66603a['getRowIndexes'](_0x3c7c58);_0x307080={'startRow':_0x131de8['first'],'endRow':_0x131de8['last'],'includeAllSlots':!0x0};}else{const _0x3814b1=_0x66603a['getColumnIndexes'](_0x3c7c58);_0x307080={'startColumn':_0x3814b1['first'],'endColumn':_0x3814b1['last'],'includeAllSlots':!0x0};}const _0x58f41e=_0x66603a['createTableWalker'](_0x4f966d,_0x307080),_0x583e94=Array['from'](_0x58f41e)['map'](({cell:_0x64cd27})=>_0x64cd27),_0xf0fac6=Ee(_0x583e94['filter'](_0x183a5d=>_0x183a5d['hasAttribute'](_0x1c0b51))),_0x1baa4f=Ee(_0x583e94['filter'](_0x6885cb=>!_0x6885cb['hasAttribute'](_0x1c0b51)))['map'](_0x37504a=>_0x4a32e1['createRangeOn'](_0x37504a)),_0x541c71=_0x302319['markMultiRangeDeletion'](_0x1baa4f,_0x332da4);if(_0x541c71&&('tableRow'==_0x541c71['subType']||'tableColumn'==_0x541c71['subType'])){const _0x170371=this['_getSuggestionCoords'](_0x541c71);for(const _0x44ed9a of _0xf0fac6){const _0x4a9322=_0x4a32e1['createRangeOn'](_0x44ed9a),_0x299f48=_0x66603a['getCellLocation'](_0x44ed9a),_0x10a306=_0x44ed9a['getAttribute'](_0x1c0b51)-0x1,_0x280ce0=_0x170371[_0x5192e1],_0x38132b=_0x170371[_0x3f81a2];_0x280ce0<=_0x299f48[_0x381afb]&&_0x299f48[_0x381afb]+_0x10a306<=_0x38132b&&_0x541c71['addRange'](_0x4a9322);}}});});}function _0x530c76(_0x534d44){const _0x5f5851=Array['from'](_0x200692['getRanges']())['map'](_0x2ca556=>_0x39eeea['fromRange'](_0x2ca556));_0x4650c8['model']['change'](_0x19d360=>{const _0x3a5422=_0x19d360['batch'];_0x534d44=_0x534d44['filter'](_0x2ad892=>'$graveyard'!=_0x2ad892['root']['rootName']),_0x19d360['setSelection'](_0x534d44),_0x4650c8['commands']['get']('removeTableRow')['refresh'](),_0x4650c8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4650c8['model']['enqueueChange'](()=>{_0x4650c8['model']['enqueueChange'](_0x3a5422,_0x361b1f=>{const _0x4f1ac0=_0x5f5851['filter'](_0x47f815=>'$graveyard'!=_0x47f815['root']['rootName']);_0x4f1ac0['length']>0x0&&_0x361b1f['setSelection'](_0x4f1ac0);for(const _0x54a73f of _0x5f5851)_0x54a73f['detach']();});});});}function _0x5df503(_0x11b512){_0x4650c8['model']['change'](_0x3ea576=>{const _0x432ea4=Array['from'](_0x200692['getRanges']())['map'](_0x5b194d=>_0x39eeea['fromRange'](_0x5b194d)),_0xeaa177=[];for(const _0x2306d9 of _0x11b512)for(const _0x31c0c3 of _0x2306d9['getItems']({'shallow':!0x0}))_0xeaa177['push'](_0x31c0c3);for(const _0x35aa2e of _0xeaa177)'$graveyard'!=_0x35aa2e['root']['rootName']&&(_0x3ea576['setSelection'](_0x3ea576['createPositionAt'](_0x35aa2e,0x0)),_0x4650c8['commands']['get']('removeTableColumn')['refresh'](),_0x4650c8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2c38e0=_0x432ea4['filter'](_0x298878=>'$graveyard'!=_0x298878['root']['rootName']);_0x2c38e0['length']>0x0&&_0x3ea576['setSelection'](_0x2c38e0);for(const _0x488f22 of _0x432ea4)_0x488f22['detach']();});}function _0x220ebd(_0x346069,_0x399217){return _0x399217['every'](_0xb62399=>_0x346069['some'](_0x4b6602=>_0x4b6602['end']['isEqual'](_0xb62399['start'])||_0xb62399['end']['isEqual'](_0x4b6602['start'])));}function _0x4dae5f(_0x11496f,_0x31df22){return!_0x11496f['some'](_0x581a3a=>_0x31df22['some'](_0x2a0603=>_0x581a3a['isIntersecting'](_0x2a0603)))&&_0x11496f['some'](_0x4d18d2=>_0x31df22['some'](_0x4ea53b=>_0x4d18d2['end']['isTouching'](_0x4ea53b['start'])));}_0x4650c8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13e8f8,_0x3d29d5,_0x5c7c5f)=>{if(!_0x5c7c5f['options']['showSuggestionHighlights'])return;const _0x231680=_0x3d29d5['item'];if(!_0x231680)return;const _0x250444=_0x5c7c5f['mapper']['toViewElement'](_0x231680);function _0x4097af(_0x512b1e){return Array['isArray'](_0x512b1e)?_0x512b1e:[_0x512b1e];}_0x250444&&'tableCell'===_0x231680['name']&&_0x409113(_0x250444,_0x5c7c5f['writer'],(_0xc7d153,_0x1071b7,_0x182b50)=>_0x182b50['addClass'](_0x4097af(_0x1071b7['classes']),_0xc7d153),(_0x41924f,_0x3cdcd5,_0x3fe8e6)=>_0x3fe8e6['removeClass'](_0x4097af(_0x3cdcd5['classes']),_0x41924f));},{'priority':'highest'}),_0x302319['descriptionFactory']['registerDescriptionCallback'](_0x43d91e=>{if('insertion'!=_0x43d91e['type']&&'deletion'!=_0x43d91e['type'])return;const _0x28561a=_0x43d91e['getContainedElement']();if(null!=_0x28561a&&_0x28561a['is']('element','table')){if('insertion'==_0x43d91e['type']){const _0x528c35=_0x43d91e['getItems']()['filter'](_0x41de4d=>_0x41de4d['is']('$textProxy'))['map'](_0x261b5e=>_0x261b5e['data']);if(_0x528c35['length'])return{'type':'insertion','content':o(_0x5aafb6,'*Insert:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x528c35['join']('\x20')+'\x22'))};}if('deletion'==_0x43d91e['type']){const _0x4f59ab=_0x43d91e['getItems']()['filter'](_0x2826cd=>_0x2826cd['is']('$textProxy'))['map'](_0x53e199=>_0x53e199['data']);if(_0x4f59ab['length'])return{'type':'deletion','content':o(_0x5aafb6,'*Remove:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f59ab['join']('\x20')+'\x22'))};}}}),_0x302319['descriptionFactory']['registerDescriptionCallback'](_0x2b3160=>{if('tableRow'==_0x2b3160['subType']){const _0x18eae6=_0x2b3160['getItems']()['filter'](_0x455736=>_0x455736['is']('$textProxy'))['map'](_0x3f16df=>_0x3f16df['data']),_0x217072=this['_getSuggestionCoords'](_0x2b3160),_0x5cf8c7=_0x217072['maxRow']-_0x217072['minRow']+0x1;if('insertion'==_0x2b3160['type'])return _0x18eae6['length']?{'type':'insertion','content':o(_0x5aafb6,'*Insert:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cf8c7,'\x22'+_0x18eae6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5aafb6,'*Insert:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_ROW',_0x5cf8c7))};if('deletion'==_0x2b3160['type'])return _0x18eae6['length']?{'type':'deletion','content':o(_0x5aafb6,'*Remove:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cf8c7,'\x22'+_0x18eae6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5aafb6,'*Remove:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_ROW',_0x5cf8c7))};}if('tableColumn'==_0x2b3160['subType']){const _0x256680=_0x2b3160['getItems']()['filter'](_0x74fd1e=>_0x74fd1e['is']('$textProxy'))['map'](_0x299e58=>_0x299e58['data']),_0x49d9ca=this['_getSuggestionCoords'](_0x2b3160),_0x5c6678=_0x49d9ca['maxColumn']-_0x49d9ca['minColumn']+0x1;if('insertion'==_0x2b3160['type'])return _0x256680['length']?{'type':'insertion','content':o(_0x5aafb6,'*Insert:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c6678,'\x22'+_0x256680['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5aafb6,'*Insert:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_COLUMN',_0x5c6678))};if('deletion'==_0x2b3160['type'])return _0x256680['length']?{'type':'deletion','content':o(_0x5aafb6,'*Remove:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c6678,'\x22'+_0x256680['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5aafb6,'*Remove:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_COLUMN',_0x5c6678))};}}),_0x302319['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x530c76),_0x302319['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x530c76),_0x302319['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5df503),_0x302319['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5df503),_0x302319['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x220ebd),_0x302319['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x220ebd),_0x302319['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4dae5f),_0x302319['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4dae5f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2d40e0=this['editor'],_0x2cfc77=_0x2d40e0['model']['document']['selection'];return(_0x3fc9a9,_0x3fc1d0)=>{_0x2d40e0['model']['change'](_0x2e0971=>{const {commandName:_0xcdd7cf,commandParams:_0x8adee6}=_0x3fc1d0;let _0x30276b=_0x3fc9a9[0x0]['end']['nodeBefore'];_0x8adee6&&_0x8adee6[0x0]&&!0x1===_0x8adee6[0x0]['forceValue']&&(_0x30276b=_0x3fc9a9[0x0]['start']['nodeAfter']);const _0x52b4bd=_0x2e0971['createRangeIn'](_0x30276b);if('$graveyard'==_0x52b4bd['root']['rootName'])return;const _0x343b20=Array['from'](_0x2cfc77['getRanges']())['map'](_0x315f3b=>_0x39eeea['fromRange'](_0x315f3b));_0x2e0971['setSelection'](_0x52b4bd),_0x2d40e0['commands']['get'](_0xcdd7cf)['refresh'](),_0x8adee6['push']({'forceDefaultExecution':!0x0}),_0x2d40e0['execute'](_0xcdd7cf,..._0x8adee6);const _0x3311b1=_0x343b20['filter'](_0x3f71df=>'$graveyard'!=_0x3f71df['root']['rootName']);_0x3311b1['length']>0x0&&_0x2e0971['setSelection'](_0x3311b1);for(const _0x544fef of _0x343b20)_0x544fef['detach']();});};}['_getCoordsForCells'](_0x5d810f){const _0x42be18=this['editor']['plugins']['get']('TableUtils');let _0x19b8dd=Number['MAX_SAFE_INTEGER'],_0x1d9fcc=Number['MIN_SAFE_INTEGER'],_0x531791=Number['MAX_SAFE_INTEGER'],_0x3c2716=Number['MIN_SAFE_INTEGER'];for(const _0x48cb51 of _0x5d810f){if('$graveyard'==_0x48cb51['root']['rootName'])continue;const {row:_0x41af46,column:_0x4f115b}=_0x42be18['getCellLocation'](_0x48cb51),_0x21d04f=_0x48cb51['hasAttribute']('rowspan')?_0x48cb51['getAttribute']('rowspan')-0x1:0x0,_0x200bd3=_0x48cb51['hasAttribute']('colspan')?_0x48cb51['getAttribute']('colspan')-0x1:0x0;_0x19b8dd=_0x41af46<_0x19b8dd?_0x41af46:_0x19b8dd,_0x1d9fcc=_0x41af46+_0x21d04f>_0x1d9fcc?_0x41af46+_0x21d04f:_0x1d9fcc,_0x531791=_0x4f115b<_0x531791?_0x4f115b:_0x531791,_0x3c2716=_0x4f115b+_0x200bd3>_0x3c2716?_0x4f115b+_0x200bd3:_0x3c2716;}return{'minRow':_0x19b8dd,'maxRow':_0x1d9fcc,'minColumn':_0x531791,'maxColumn':_0x3c2716};}['_setupColumnsRowsFixing'](){const _0x173552=this['editor'],_0x1150e8=_0x173552['plugins']['get']('TrackChangesEditing'),_0x5eb797=_0x173552['plugins']['get']('TableUtils');_0x173552['model']['document']['on']('change:data',()=>{const _0x10512a=Array['from'](_0x173552['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5836fc,data:_0x21310c}of _0x10512a){const {group:_0xfb8282,id:_0x4c36a5,subType:_0x4a5022}=_0x1150e8['_splitMarkerName'](_0x5836fc);if('suggestion'!=_0xfb8282)continue;if(null!=_0x21310c['oldRange'])continue;const _0xb5b684=_0x1150e8['getSuggestion'](_0x4c36a5);this['_tablePostFixingSubtypes']['includes'](_0x4a5022)&&this['_tableSuggestions']['add'](_0xb5b684);}},{'priority':'low'});const _0x1e9275=(_0x47d0bf,_0x114a71)=>{let _0x4532aa=!0x1;const _0x482397=_0x114a71['createRangeOn'](_0x47d0bf),_0x1cf224=_0x47d0bf['findAncestor']('table'),_0x3d0fa4=_0x5eb797['getCellLocation'](_0x47d0bf);for(const _0x4a2453 of this['_tableSuggestions']){const _0x8a6f99=_0x4a2453['subType'],_0x23b560=_0x8a6f99['startsWith']('tablePaste'),_0x43f892=_0x8a6f99['substr'](_0x23b560?0xa:0x5),_0x1e7104=_0x43f892['toLowerCase'](),_0x194809=_0x1e7104['substr'](0x0,0x3)+'span',_0x2f80ad='min'+_0x43f892,_0x4d37bf='max'+_0x43f892;if(!_0x4a2453['isInContent'])continue;if(_0x1cf224!=_0x4a2453['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4a2453['isIntersectingWithRange'](_0x482397))continue;const _0x415be1=_0x47d0bf['hasAttribute'](_0x194809)?_0x47d0bf['getAttribute'](_0x194809)-0x1:0x0,_0x38e956=this['_getSuggestionCoords'](_0x4a2453),_0x287141=_0x38e956[_0x2f80ad],_0x4366e5=_0x38e956[_0x4d37bf];_0x287141<=_0x3d0fa4[_0x1e7104]&&_0x3d0fa4[_0x1e7104]+_0x415be1<=_0x4366e5&&(_0x4a2453['addRange'](_0x482397),_0x4532aa=!0x0);}return _0x4532aa;};_0x173552['model']['document']['registerPostFixer'](_0xa7c811=>{let _0x3b74bc=!0x1;for(const _0x4ca190 of _0x173552['model']['document']['differ']['getChanges']())if('insert'==_0x4ca190['type']){if('tableRow'==_0x4ca190['name']){for(const _0x2c6db3 of _0x4ca190['position']['nodeAfter']['getChildren']())_0x3b74bc=_0x3b74bc||_0x1e9275(_0x2c6db3,_0xa7c811);}else'tableCell'==_0x4ca190['name']&&(_0x3b74bc=_0x3b74bc||_0x1e9275(_0x4ca190['position']['nodeAfter'],_0xa7c811));}return _0x3b74bc;});}['_getSuggestionCoords'](_0x49a264){return this['_getCoordsForCells'](_0x49a264['getRanges']()['map'](_0x2fa32b=>_0x2fa32b['start']['nodeAfter']));}}function Ee(_0x184d97){return Array['from'](new Set(_0x184d97)['values']());}class St extends _0x52cd9d{static get['requires'](){return[jt];}['afterInit'](){const _0x29b68e=this['editor'],_0x34981a=_0x29b68e['model']['document']['selection'],_0x54aa16=_0x29b68e['locale'];if(!_0x29b68e['plugins']['has']('TableEditing'))return;const _0x10ac1a=_0x29b68e['plugins']['get']('TrackChangesEditing'),_0x3aefa4=_0x29b68e['plugins']['get']('TableUtils'),_0x50bfec=_0x29b68e['plugins']['get'](jt);_0x50bfec['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x10ac1a['enableCommand']('mergeTableCells',()=>{const _0x4a7f86=_0x3aefa4['getSelectionAffectedTableCells'](_0x29b68e['model']['document']['selection']);_0x29b68e['model']['change'](()=>{_0x10ac1a['markMultiRangeBlockFormat'](_0x4a7f86,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x29b68e['commands']['get']('mergeTableCells')['on']('execute',(_0x238c66,_0x22da65)=>{_0x29b68e['commands']['get']('trackChanges')['value']&&(_0x22da65['length']>0x0&&_0x22da65[_0x22da65['length']-0x1]&&_0x22da65[_0x22da65['length']-0x1]['forceDefaultExecution']||_0x10ac1a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x238c66['stop']());},{'priority':'highest'});for(const _0x3654f7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x53e0ce=_0x29b68e['commands']['get'](_0x3654f7);_0x10ac1a['enableCommand'](_0x3654f7,()=>{const _0x388fe8=_0x29b68e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1b3727=>_0x1b3727['is']('element','tableCell')),_0x2f93df=_0x53e0ce['value'];_0x29b68e['model']['change'](()=>{_0x10ac1a['markMultiRangeBlockFormat']([_0x388fe8,_0x2f93df],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x43bbbd of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5aa404=_0x29b68e['commands']['get'](_0x43bbbd);_0x10ac1a['enableCommand'](_0x43bbbd,()=>{const _0x17c5e9=_0x3aefa4['getSelectionAffectedTableCells'](_0x29b68e['model']['document']['selection'])[0x0],_0x14e852=_0x17c5e9['findAncestor']('table'),{column:_0x414705,row:_0x2b7597}=_0x3aefa4['getCellLocation'](_0x17c5e9);let _0x3239bd=[];if('horizontally'==_0x5aa404['direction']){const _0x106335=_0x3aefa4['createTableWalker'](_0x14e852,{'startRow':_0x2b7597,'endRow':_0x2b7597,'includeAllSlots':!0x0});_0x3239bd=Array['from'](_0x106335)['map'](_0x547f2d=>_0x547f2d['cell']);}else{const _0x2127ca=_0x3aefa4['createTableWalker'](_0x14e852,{'column':_0x414705,'includeAllSlots':!0x0});_0x3239bd=Array['from'](_0x2127ca)['map'](_0x41b746=>_0x41b746['cell']);}_0x29b68e['model']['change'](_0x528d11=>{_0x10ac1a['markBlockFormat'](_0x528d11['createRangeOn'](_0x17c5e9),{'commandName':_0x43bbbd,'commandParams':[]},_0x3239bd,_0x43bbbd);});});}_0x10ac1a['descriptionFactory']['registerDescriptionCallback'](_0x5e4da7=>{if('formatBlock'!=_0x5e4da7['type']&&'formatInline'!=_0x5e4da7['type'])return;const {data:_0x4bdd58}=_0x5e4da7;return _0x4bdd58&&'mergeTableCells'==_0x4bdd58['commandName']?{'type':'format','content':o(_0x54aa16,'*Merge\x20cells*')}:void 0x0;}),_0x10ac1a['descriptionFactory']['registerDescriptionCallback'](_0x2b007d=>{if('formatBlock'!=_0x2b007d['type']&&'formatInline'!=_0x2b007d['type'])return;const {data:_0x457391}=_0x2b007d;return _0x457391?'splitTableCellVertically'==_0x457391['commandName']?{'type':'format','content':o(_0x54aa16,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x457391['commandName']?{'type':'format','content':o(_0x54aa16,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x45bbfa=_0x50bfec['_acceptFormatSuggestionCallbackFactory']();for(const _0x418486 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x10ac1a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x418486,'accept',_0x45bbfa);for(const _0x42dad5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x10ac1a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42dad5,'accept',_0x45bbfa);_0x10ac1a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3a6ddb=>{_0x29b68e['model']['change'](_0x409ad1=>{const _0x3e0937=Array['from'](_0x34981a['getRanges']())['map'](_0x2eb040=>_0x39eeea['fromRange'](_0x2eb040));_0x409ad1['setSelection'](_0x3a6ddb),_0x29b68e['commands']['get']('mergeTableCells')['refresh'](),_0x29b68e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x429973=_0x3e0937['filter'](_0xea4320=>'$graveyard'!=_0xea4320['root']['rootName']);_0x429973['length']>0x0&&_0x409ad1['setSelection'](_0x429973);for(const _0x1ca1f8 of _0x3e0937)_0x1ca1f8['detach']();});});for(const _0x19f767 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x480bb8=_0x29b68e['commands']['get'](_0x19f767);_0x480bb8['on']('set:isEnabled',(_0x1225e6,_0x23dc28,_0x4ec924)=>{if(_0x4ec924){const _0xa41321=_0x29b68e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1410a7=>_0x1410a7['is']('element','tableCell'));this['_areMergableCells'](_0x480bb8['value'],_0xa41321)||(_0x1225e6['return']=!0x1,_0x1225e6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x35b430=this['editor']['commands']['get']('mergeTableCells'),_0x47e154=this['editor']['plugins']['get']('TableUtils');if(!_0x35b430['isEnabled'])return!0x1;const _0x44a2ce=_0x47e154['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x376aeb of _0x44a2ce)for(const _0x5d7e6a of _0x44a2ce)if(_0x376aeb!=_0x5d7e6a&&!this['_areMergableCells'](_0x376aeb,_0x5d7e6a))return!0x1;return!0x0;}['_areMergableCells'](_0x3bd80e,_0x2c9682){const _0x19682c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25e8db=this['editor']['model']['createRangeOn'](_0x3bd80e),_0x4f1f35=this['editor']['model']['createRangeOn'](_0x2c9682),_0x58201c=new Set(),_0x27324f=new Set();for(const _0x3abf75 of _0x19682c['getSuggestions']())if(('insertion'==_0x3abf75['type']||'deletion'==_0x3abf75['type']||'mergeTableCells'==_0x3abf75['subType'])&&_0x3abf75['isInContent']){for(const _0x1a55ef of _0x3abf75['getRanges']())_0x1a55ef['containsRange'](_0x25e8db,!0x0)&&_0x58201c['add'](_0x3abf75['type']+':'+_0x3abf75['author']['id']),_0x1a55ef['containsRange'](_0x4f1f35,!0x0)&&_0x27324f['add'](_0x3abf75['type']+':'+_0x3abf75['author']['id']);}if(_0x58201c['size']!=_0x27324f['size'])return!0x1;for(const _0x2025c6 of _0x58201c)if(!_0x27324f['has'](_0x2025c6))return!0x1;return!0x0;}}class At extends _0x52cd9d{static get['requires'](){return[jt];}['afterInit'](){const _0x572cfd=this['editor'];if(!_0x572cfd['plugins']['has']('TableEditing'))return;const _0x4872d1=_0x572cfd['locale'],_0x168719=_0x572cfd['plugins']['get']('TrackChangesEditing');_0x168719['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x168719['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x168719['registerBlockAttribute']('headingRows'),_0x168719['registerBlockAttribute']('headingColumns'),_0x168719['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4872d1,'FORMAT_HEADER_ROW')),_0x168719['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4872d1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x349846=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1290cc=this['editor']['plugins']['get']('TableUtils'),_0xe059ab=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5ec532({showActiveMarker:_0x5cace8=!0x0,setDataAttribute:_0xdea9e8=!0x0}={}){return(_0x2e883e,_0x54cbaf,_0xa7e0af)=>{const {type:_0x2f7973,id:_0x338d16}=_0x349846['_splitMarkerName'](_0x54cbaf['markerName']),_0x3f8282=_0x349846['getSuggestion'](_0x338d16),_0x17e359=_0x3f8282['data'];if('formatBlock'!=_0x3f8282['type']||!_0x17e359||'setTableColumnHeader'!=_0x17e359['commandName'])return;if(_0x54cbaf['item'])return void _0x2e883e['stop']();if(!_0xa7e0af['consumable']['consume'](_0x54cbaf['markerRange'],_0x2e883e['name']))return;const _0x587329=_0x54cbaf['markerRange']['start']['nodeAfter'],_0x561df9=_0x54cbaf['markerRange']['end']['nodeBefore'],_0x473390=_0x587329['parent']['parent'],{column:_0x5b8848}=_0x1290cc['getCellLocation'](_0x587329),{column:_0x28f4a8}=_0x1290cc['getCellLocation'](_0x561df9);for(let _0x3c3b6e=_0x5b8848;_0x3c3b6e<=_0x28f4a8;_0x3c3b6e++){const _0x24ff64=_0x1290cc['createTableWalker'](_0x473390,{'column':_0x3c3b6e,'includeAllSlots':!0x1});for(const _0x38ea5a of _0x24ff64){const _0x3bc5dc=_0x38ea5a['cell'],_0x30f59e=_0xa7e0af['mapper']['toViewElement'](_0x3bc5dc);_0xa7e0af['writer']['addClass']('ck-suggestion-marker-'+_0x2f7973,_0x30f59e),_0xdea9e8&&_0xa7e0af['writer']['setAttribute']('data-suggestion',_0x338d16,_0x30f59e),_0xa7e0af['mapper']['bindElementToMarker'](_0x30f59e,_0x54cbaf['markerName']),_0x5cace8&&(_0x349846['activeMarkers']['includes'](_0x54cbaf['markerName'])?_0xa7e0af['writer']['addClass']('ck-suggestion-marker--active',_0x30f59e):_0xa7e0af['writer']['removeClass']('ck-suggestion-marker--active',_0x30f59e));}}};}_0x349846['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xe059ab),_0x349846['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xe059ab),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5ec532(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x328353,_0x29a7a6,_0x54e17c)=>{_0x54e17c['options']['showSuggestionHighlights']&&_0x5ec532({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x328353,_0x29a7a6,_0x54e17c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x19649a,_0x253e42,_0x195113)=>{const {type:_0x32a601,id:_0x340b5e}=_0x349846['_splitMarkerName'](_0x253e42['markerName']),_0x2001ad=_0x349846['getSuggestion'](_0x340b5e),_0x3ab991=_0x2001ad['data'];if('formatBlock'!=_0x2001ad['type']||!_0x3ab991||'setTableColumnHeader'!=_0x3ab991['commandName'])return;const _0x46aab5=_0x195113['mapper']['markerNameToElements'](_0x253e42['markerName']);if(_0x46aab5){for(const _0x1f57ff of _0x46aab5)_0x195113['writer']['removeClass']('ck-suggestion-marker-'+_0x32a601,_0x1f57ff),_0x195113['writer']['removeClass']('ck-suggestion-marker--active',_0x1f57ff),_0x195113['writer']['removeAttribute']('data-suggestion',_0x1f57ff),_0x195113['mapper']['unbindElementFromMarkerName'](_0x1f57ff,_0x253e42['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27f390=this['editor'],_0x6fa2d7=_0x27f390['locale'];function _0x38f534(_0x20b73b){return{'type':'format','content':o(_0x6fa2d7,'*Format:*\x20%0',_0x20b73b)};}_0x27f390['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x842c99=>{if('formatBlock'!=_0x842c99['type'])return;const {data:_0x2f6cb7}=_0x842c99;if(_0x2f6cb7){if('setTableRowHeader'==_0x2f6cb7['commandName']){const _0xd709f9=_0x2f6cb7['commandParams'][0x0]['forceValue'];return _0x38f534(o(_0x6fa2d7,_0xd709f9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2f6cb7['commandName']){const _0x4df73=_0x2f6cb7['commandParams'][0x0]['forceValue'];return _0x38f534(o(_0x6fa2d7,_0x4df73?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x329350=>[_0x329350,null]));class It extends _0x52cd9d{static get['requires'](){return[jt];}['afterInit'](){const _0x1200d6=this['editor'];if(!_0x1200d6['plugins']['has']('TableClipboard'))return;const _0x28b682=_0x1200d6['plugins']['get']('TrackChangesEditing'),_0x2f9da7=_0x1200d6['plugins']['get']('TableUtils'),_0x392e9f=_0x1200d6['plugins']['get'](jt),_0x1290be=_0x1200d6['plugins']['get']('TableClipboard');_0x392e9f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1200d6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1200d6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x577cf7=null;_0x1200d6['model']['on']('insertContent',(_0x26188b,_0x35d115)=>{const [_0x5654c3,_0x56945d]=_0x35d115,_0x35aa92=_0x35d115[_0x35d115['length']-0x1];_0x35aa92&&_0x35aa92['forceDefaultExecution']||_0x28b682['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x59a30d,_0x490284,_0x599b1d,_0x399d65,_0x414c11){if(_0x490284&&!_0x490284['is']('documentSelection'))return!0x1;const _0x311ae3=_0x414c11['getTableIfOnlyTableInContent'](_0x59a30d,_0x599b1d);if(!_0x311ae3||!he(_0x311ae3,void 0x0,_0x399d65))return!0x1;const _0x5f3b2d=_0x399d65['getSelectionAffectedTableCells'](_0x599b1d['document']['selection']);if(!_0x5f3b2d['length'])return!0x1;const _0x5e28f3=_0x5f3b2d[0x0]['findAncestor']('table'),_0x3ee1c2=_0x399d65['getRowIndexes'](_0x5f3b2d),_0x34b758=_0x399d65['getColumnIndexes'](_0x5f3b2d),_0x5bf9d3={'startRow':_0x3ee1c2['first'],'endRow':_0x3ee1c2['last'],'startColumn':_0x34b758['first'],'endColumn':_0x34b758['last']};return 0x1==_0x5f3b2d['length']&&(_0x5bf9d3['endRow']+=_0x399d65['getRows'](_0x311ae3)-0x1,_0x5bf9d3['endColumn']+=_0x399d65['getColumns'](_0x311ae3)-0x1),he(_0x5e28f3,_0x5bf9d3,_0x399d65);}(_0x5654c3,_0x56945d,_0x1200d6['model'],_0x2f9da7,_0x1290be)&&(_0x26188b['stop'](),_0x577cf7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1200d6['model']['change'](()=>{_0x1200d6['model']['insertContent'](_0x35d115[0x0],_0x35d115[0x1],_0x35d115[0x2],{'forceDefaultExecution':!0x0});const _0x53ebc8=_0x3792e7(),{rowInsertionRanges:_0x1679ba,columnInsertionRanges:_0x3efd1f,insertionRanges:_0x22d18c,deletionRanges:_0x3c70bf,cells:_0x52943c}=_0x577cf7;_0x1679ba['length']&&_0x28b682['markMultiRangeInsertion'](_0x1679ba,'tablePasteRow',{'tablePasteChainId':_0x53ebc8}),_0x3efd1f['length']&&_0x28b682['markMultiRangeInsertion'](_0x3efd1f,'tablePasteColumn',{'tablePasteChainId':_0x53ebc8}),_0x22d18c['length']&&(_0x28b682['markMultiRangeInsertion'](_0x22d18c,'tablePaste',{'tablePasteChainId':_0x53ebc8,'skipNestingCheck':!0x0}),_0x22d18c['forEach'](_0x3ba0f2=>_0x3ba0f2['detach']?.())),_0x3c70bf['length']&&(_0x28b682['markMultiRangeDeletion'](_0x3c70bf,'tablePaste',{'tablePasteChainId':_0x53ebc8,'skipNestingCheck':!0x0}),_0x3c70bf['forEach'](_0x1367e6=>_0x1367e6['detach']?.()));const _0x696d93=_0x28b682['markMultiRangeBlockFormat'](_0x52943c['map'](({element:_0x2ebc90})=>_0x2ebc90),{'formatGroupId':_0x3792e7()},[],'tablePasteCell',{'tablePasteChainId':_0x53ebc8});if(_0x696d93){const _0x2ffcd0=_0x696d93['getMarkers'](),_0x28f65a=[];for(const {element:_0xe300c9,attributes:_0x58e802}of _0x52943c){if(!_0x58e802)continue;const _0x18d692=_0x1200d6['model']['createRangeOn'](_0xe300c9),_0x104ea0=_0x2ffcd0['find'](_0x264445=>_0x264445['getRange']()['isEqual'](_0x18d692));_0x104ea0&&_0x28f65a['push']([_0x104ea0['name'],_0x58e802]);}_0x28f65a['length']&&_0x696d93['setAttribute']('markerAttributes',Object['fromEntries'](_0x28f65a));}_0x577cf7=null;}));},{'priority':_0x1e1756['high']+0xa}),_0x1200d6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3dae86,_0x5a06be)=>{const [_0x47d608,_0x357546,,_0x369cf4]=_0x5a06be;if(!_0x577cf7)return;_0x3dae86['stop']();const _0xaf8b58=_0x47d608['cell'],_0x17a339=_0x357546,_0x2a1ba1=Pe(_0xaf8b58),_0x4351de=Pe(_0x17a339);_0x3dae86['return']=_0xaf8b58;let _0x180fd3=null,_0x23288e=null;if(_0x4351de||_0x2a1ba1){if(_0x2a1ba1&&!_0x4351de){_0x369cf4['remove'](_0xaf8b58['getChild'](0x0));for(const _0x291349 of Array['from'](_0x17a339['getChildren']()))_0x369cf4['insert'](_0x291349,_0xaf8b58,'end');const _0x2aed14=_0x577cf7['rowInsertionIndexes']['includes'](_0x47d608['row']),_0x39f7ee=_0x577cf7['columnInsertionIndexes']['includes'](_0x47d608['column']);_0x2aed14||_0x39f7ee||(_0x180fd3=_0x39eeea['fromRange'](_0x369cf4['createRangeIn'](_0xaf8b58)));}else _0x4351de&&!_0x2a1ba1&&(_0x23288e=_0x369cf4['createRangeIn'](_0xaf8b58));}else{const _0x31329b=_0x369cf4['createElement']('tableCellSuggestion'),_0x5e7260=_0x369cf4['createElement']('tableCellSuggestion');_0x369cf4['wrap'](_0x369cf4['createRangeIn'](_0xaf8b58),_0x5e7260),_0x369cf4['insert'](_0x31329b,_0xaf8b58,0x0);for(const _0x112f6b of Array['from'](_0x17a339['getChildren']()))_0x369cf4['insert'](_0x112f6b,_0x31329b,'end');_0x180fd3=_0x39eeea['fromRange'](_0x369cf4['createRangeOn'](_0x31329b)),_0x23288e=_0x39eeea['fromRange'](_0x369cf4['createRangeOn'](_0x5e7260));}const _0x55a8c7=Array['from'](_0x17a339['getAttributes']())['filter'](([_0x2f64d3])=>ge['includes'](_0x2f64d3));_0x577cf7['cells']['push']({'element':_0xaf8b58,'attributes':_0x55a8c7['length']?Object['fromEntries'](_0x55a8c7):null}),_0x180fd3&&_0x577cf7['insertionRanges']['push'](_0x180fd3),_0x23288e&&_0x577cf7['deletionRanges']['push'](_0x23288e);},{'priority':'high'}),_0x2f9da7['on']('insertColumns',(_0x431a32,_0x1157ae)=>{const [_0x1fd385,_0x392e06={}]=_0x1157ae;if(!_0x577cf7)return;const _0x4e38bd=_0x392e06['at']||0x0,_0x26b4d9=_0x392e06['columns']||0x1;_0x577cf7['columnInsertionIndexes']=new Array(_0x26b4d9)['fill'](_0x4e38bd)['map']((_0x5ba5dc,_0x20d22e)=>_0x5ba5dc+_0x20d22e);for(const {cell:_0x477039}of _0x2f9da7['createTableWalker'](_0x1fd385,{'startColumn':_0x4e38bd,'endColumn':_0x4e38bd+_0x26b4d9-0x1}))_0x577cf7['columnInsertionRanges']['push'](_0x1200d6['model']['createRangeOn'](_0x477039));},{'priority':'low'}),_0x2f9da7['on']('insertRows',(_0x3ff07d,_0x2c2532)=>{const [_0x1f624c,_0x33bc4f={}]=_0x2c2532;if(!_0x577cf7)return;const _0x5a9fde=_0x33bc4f['at']||0x0,_0x46c977=_0x33bc4f['rows']||0x1;_0x577cf7['rowInsertionIndexes']=new Array(_0x46c977)['fill'](_0x5a9fde)['map']((_0x40bc54,_0x5c9425)=>_0x40bc54+_0x5c9425);for(const {cell:_0x103ec7}of _0x2f9da7['createTableWalker'](_0x1f624c,{'startRow':_0x5a9fde,'endRow':_0x5a9fde+_0x46c977-0x1}))_0x577cf7['rowInsertionRanges']['push'](_0x1200d6['model']['createRangeOn'](_0x103ec7));},{'priority':'low'}),_0x28b682['descriptionFactory']['registerDescriptionCallback'](_0xf99a13=>{if(_0xf99a13['subType']&&_0xf99a13['subType']['startsWith']('tablePaste'))return _0xf99a13['previous']?{}:{'type':'insertion','content':o(_0x1200d6['locale'],'*Replace\x20table\x20cells*')};});const _0x315d1c=()=>!0x1;for(const _0x14c671 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x28b682['_suggestionFactory']['registerCustomCallback']('insertion',_0x14c671,'join',_0x315d1c),_0x28b682['_suggestionFactory']['registerCustomCallback']('deletion',_0x14c671,'join',_0x315d1c),_0x28b682['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14c671,'join',_0x315d1c);_0x28b682['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x315d1c),_0x28b682['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1631cc,_0x144749,_0x5663da)=>{const _0x3957ae=_0x1631cc['map'](_0x484e17=>_0x484e17['getContainedElement']())['filter'](_0x5a7d7b=>_0x5a7d7b),_0x33cd1d=new Map(_0x3957ae['map'](_0x4f8b31=>[_0x4f8b31,null]));if(_0x577cf7){for(const {element:_0x161fd0,attributes:_0xe79f64}of _0x577cf7['cells'])_0xe79f64&&_0x33cd1d['set'](_0x161fd0,_0xe79f64);}else{if(_0x5663da&&_0x5663da['markerAttributes'])for(const [_0x32c317,_0xf50d3d]of Object['entries'](_0x5663da['markerAttributes'])){const _0x229b8f=_0x1200d6['model']['markers']['get'](_0x32c317),_0x40059c=_0x229b8f?_0x229b8f['getRange']()['getContainedElement']():null;_0x40059c&&_0x33cd1d['set'](_0x40059c,_0xf50d3d);}}_0x1200d6['model']['change'](_0xd5eb41=>{for(const [_0x1af547,_0x1f254a]of _0x33cd1d)_0xd5eb41['setAttributes']({...Ce,..._0x1f254a},_0x1af547);});});const _0x5c9d43=(_0x36e5fc,_0x24c7c2)=>{_0x28b682['_suggestionFactory']['registerCustomCallback'](_0x36e5fc,'tablePaste',_0x24c7c2,(_0x304e3e,_0x18803a,_0x989084)=>{_0x1200d6['model']['change'](_0x80010f=>{const _0x541c8a=[];for(const _0x103eee of _0x304e3e){const _0x136b75=_0x103eee['start']['nodeAfter'];_0x136b75['is']('element','tableCellSuggestion')&&_0x541c8a['push'](_0x136b75);}_0x28b682['_suggestionFactory']['getSuggestionCallback'](_0x36e5fc,null,_0x24c7c2)(_0x304e3e,_0x18803a,_0x989084);for(const _0x18e655 of _0x541c8a)'$graveyard'!=_0x18e655['root']['rootName']&&_0x80010f['unwrap'](_0x18e655);});});};_0x5c9d43('insertion','accept'),_0x5c9d43('insertion','discard'),_0x5c9d43('deletion','accept'),_0x5c9d43('deletion','discard'),_0x28b682['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x25fb4c=>{const _0x578ebe=_0x25fb4c['map'](_0x53d9b1=>_0x53d9b1['getContainedElement']()),_0x32970d=_0x578ebe[0x0]['findAncestor']('table'),{minRow:_0x587449,maxRow:_0x139383}=_0x392e9f['_getCoordsForCells'](_0x578ebe);_0x2f9da7['removeRows'](_0x32970d,{'at':_0x587449,'rows':_0x139383-_0x587449+0x1});}),_0x28b682['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x482546=>{const _0x116b77=_0x482546['map'](_0x1c0064=>_0x1c0064['getContainedElement']()),_0x45775c=_0x116b77[0x0]['findAncestor']('table'),{minColumn:_0x2ba01d,maxColumn:_0x5297fd}=_0x392e9f['_getCoordsForCells'](_0x116b77);_0x2f9da7['removeColumns'](_0x45775c,{'at':_0x2ba01d,'columns':_0x5297fd-_0x2ba01d+0x1});});const _0x3d2fdf=(_0x4b45de,_0x1c35c4)=>{if(!_0x1c35c4['subType']||!_0x1c35c4['subType']['startsWith']('tablePaste'))return;const _0x1c3250=_0x1c35c4['attributes']['tablePasteChainId'],_0x460f73=_0x28b682['getSuggestions']()['filter'](_0x84c19c=>_0x84c19c['isInContent']&&_0x84c19c['attributes']&&_0x84c19c['attributes']['tablePasteChainId']==_0x1c3250);_0x460f73['length']&&_0x1c35c4['getAllAdjacentSuggestions']()['length']!=_0x460f73['length']&&_0x460f73['reduce']((_0x3ddebe,_0xcb3c05)=>(_0x3ddebe['next']=_0xcb3c05,_0xcb3c05['previous']=_0x3ddebe,_0xcb3c05));};function _0x493e24(_0x41b17e,_0x48e798=!0x0){const {id:_0x565b10}=_0x28b682['_splitMarkerName'](_0x41b17e['markerName']),_0x4cb337=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5cb2e3=_0x28b682['activeMarkers']['includes'](_0x41b17e['markerName']);return _0x5cb2e3&&_0x4cb337['push']('ck-suggestion-marker--active'),{'classes':_0x4cb337,'attributes':{'data-suggestion':_0x565b10},'priority':_0x5cb2e3&&_0x48e798?0xbc2:0xbb8};}_0x28b682['on']('suggestionLoaded',_0x3d2fdf,{'priority':'high'}),_0x28b682['on']('suggestionUnloaded',_0x3d2fdf,{'priority':'high'}),_0x1200d6['model']['document']['registerPostFixer'](()=>{let _0x8bcfa2=!0x1;const _0x35273b=Array['from'](_0x1200d6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2996c1,data:_0x2f7142}of _0x35273b){const {group:_0x5af281,type:_0x31cd75,id:_0x16be6d}=_0x28b682['_splitMarkerName'](_0x2996c1);if('suggestion'!=_0x5af281||'deletion'!=_0x31cd75||_0x2f7142['oldRange'])continue;if(!_0x28b682['hasSuggestion'](_0x16be6d))continue;const _0x4d0b77=_0x28b682['getSuggestion'](_0x16be6d)['getRanges'](),_0xf8cded=_0x1200d6['plugins']['get']('Users')['me'];for(const _0x53990f of _0x28b682['getSuggestions']()){if(!_0x53990f['isInContent']||_0x53990f['author']!=_0xf8cded)continue;if('formatBlock'!=_0x53990f['type']||'tablePasteCell'!=_0x53990f['subType'])continue;if(_0x53990f['getRanges']()['every'](_0x6941b5=>_0x4d0b77['some'](_0x1d198e=>_0x1d198e['containsRange'](_0x6941b5,!0x0)))){for(const _0x588098 of _0x53990f['getAllAdjacentSuggestions']())_0x588098['isInContent']&&(_0x588098['discard'](),_0x8bcfa2=!0x0);}}}return _0x8bcfa2;}),_0x1200d6['model']['document']['registerPostFixer'](_0x57080b=>{const _0x5b056c=_0x1200d6['commands']['get']('redo');if(!_0x5b056c||!_0x5b056c['_createdBatches']['has'](_0x57080b['batch']))return!0x1;let _0x3f3e4a=!0x1;const _0x3819db=_0x1200d6['plugins']['get']('Users')['me'],_0x167a5f=_0x1200d6['model']['document']['differ']['getChanges'](),_0x11e3a3=Array['from'](_0x1200d6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x46190b,data:_0x2d2863})=>{const {group:_0x626cfd,subType:_0x3bee32,authorId:_0xac0438}=_0x28b682['_splitMarkerName'](_0x46190b);return'suggestion'==_0x626cfd&&'tablePaste'==_0x3bee32&&_0xac0438==_0x3819db['id']&&!_0x2d2863['oldRange'];});for(const _0x194875 of _0x167a5f){if('insert'!=_0x194875['type']||'tableCellSuggestion'!=_0x194875['name']||0x1!=_0x194875['length'])continue;const _0x5bcbc4=_0x57080b['createRange'](_0x194875['position'],_0x194875['position']['getShiftedBy'](0x1));if(!_0x11e3a3['find'](({data:_0x1e0f73})=>_0x1e0f73['newRange']['isEqual'](_0x5bcbc4))){for(const {name:_0x26985f,data:_0x5d79fb}of _0x11e3a3)if(_0x5bcbc4['containsRange'](_0x5d79fb['newRange'])){_0x57080b['updateMarker'](_0x26985f,{'range':_0x5bcbc4}),_0x3f3e4a=!0x0;break;}}}return _0x3f3e4a;}),_0x1200d6['model']['document']['registerPostFixer'](_0x3f51fa=>{let _0x2151fb=!0x1;const _0x3990f9=_0x1200d6['plugins']['get']('Users')['me'],_0x2f8628=_0x28b682['getSuggestions']()['filter'](_0x2f96d5=>_0x2f96d5['isInContent']&&_0x2f96d5['author']==_0x3990f9),_0x4c6e66=new Set(),_0x3226f5=new Set();for(const _0x503d66 of _0x2f8628)if('tablePaste'==_0x503d66['subType'])for(const _0x5c592b of _0x503d66['getMarkers']()){const _0x5d29db=_0x5c592b['getRange']()['getContainedElement']();if(_0x5d29db){if(_0x5d29db['is']('element','tableCellSuggestion')&&Pe(_0x5d29db)){_0x503d66['removeMarker'](_0x5c592b['name']),_0x4c6e66['add'](_0x5d29db),_0x2151fb=!0x0;const _0x73b839=_0x5d29db['nextSibling'],_0x253043=_0x5d29db['previousSibling'],_0x144e4f=_0x73b839&&_0x73b839['is']('element','tableCellSuggestion'),_0x5330d8=_0x253043&&_0x253043['is']('element','tableCellSuggestion');_0x144e4f&&!_0x4c6e66['has'](_0x73b839)&&_0x3226f5['add'](_0x73b839),_0x5330d8&&!_0x4c6e66['has'](_0x253043)&&_0x3226f5['add'](_0x253043);}else _0x5d29db['is']('element','paragraph')&&_0x5d29db['isEmpty']&&(_0x503d66['removeMarker'](_0x5c592b['name']),_0x2151fb=!0x0);}}else{if('tablePasteCell'==_0x503d66['subType']){if(!_0x503d66['attributes']||!_0x503d66['attributes']['tablePasteChainId'])continue;const _0x51da31=_0x503d66['attributes']['markerAttributes'];if(_0x51da31&&Object['keys'](_0x51da31)['length'])continue;const _0x4513bc=_0x503d66['attributes']['tablePasteChainId'];let _0x3a2f08=!0x0,_0x488682=!0x0;for(const _0x340c6b of _0x2f8628)if(_0x340c6b['subType']&&_0x340c6b['subType']['startsWith']('tablePaste')){if(!_0x340c6b['attributes']['tablePasteChainId']){_0x488682=!0x1;break;}if(_0x340c6b['id']!=_0x503d66['id']&&_0x340c6b['attributes']['tablePasteChainId']==_0x4513bc){_0x3a2f08=!0x1;break;}}_0x488682&&_0x3a2f08&&(_0x503d66['removeMarkers'](),_0x2151fb=!0x0);}}for(const _0x35d619 of _0x4c6e66)_0x3f51fa['remove'](_0x35d619);for(const _0x18c880 of _0x3226f5)_0x3f51fa['unwrap'](_0x18c880);return _0x2151fb;}),_0x1200d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1d546f,_0x2332a2)=>_0x493e24(_0x1d546f),'converterPriority':'high'}),_0x1200d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4a6aa6,_0x51ce5e)=>_0x51ce5e['options']['showSuggestionHighlights']?_0x493e24(_0x4a6aa6,!0x1):null,'converterPriority':'high'});const _0x473123=_0x1200d6['editing']['view'];this['listenTo'](_0x473123['document'],'clipboardOutput',(_0x119769,_0x197d9b)=>{const _0x12e81e=[];for(const _0x1dee04 of _0x473123['createRangeIn'](_0x197d9b['content'])['getItems']())_0x1dee04['is']('element','suggestion-td')&&_0x12e81e['push'](_0x1dee04);_0x473123['change'](_0x44168c=>{for(const _0x3b616f of _0x12e81e)_0x44168c['move'](_0x44168c['createRangeIn'](_0x3b616f),_0x44168c['createPositionBefore'](_0x3b616f)),_0x44168c['remove'](_0x3b616f);});});}}function Pe(_0x211576){if(_0x211576['isEmpty'])return!0x0;const _0x4e1534=_0x211576['getChild'](0x0);return _0x4e1534['is']('element','paragraph')&&_0x4e1534['isEmpty'];}function he(_0x4b7af8,_0x38facb={},_0x5c620b){for(const {isAnchor:_0x1ffd12,cellHeight:_0x4e73e9,cellWidth:_0x33ac0a}of _0x5c620b['createTableWalker'](_0x4b7af8,{'includeAllSlots':!0x0,..._0x38facb}))if(!_0x1ffd12||0x1!=_0x4e73e9||0x1!=_0x33ac0a)return!0x1;return!0x0;}class vt extends _0x52cd9d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x409346=this['editor']['plugins']['get']('TrackChangesEditing');_0x409346['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x409346['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x409346['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x409346['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x409346['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x409346['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4f10f9,_0x3a6abf){const _0x5c7db4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d0a76=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xc1ac0c=_0x3a6abf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4014d5=_0x5d0a76['getColumnGroupElement'](_0xc1ac0c);let _0x368085=_0x4014d5?_0x5d0a76['getTableColumnsWidths'](_0x4014d5):null,_0x22113c=_0xc1ac0c['getAttribute']('tableWidth')||null;const _0x393c13=_0x3a6abf['tableWidth']||_0x22113c,_0x289667=_0x3a6abf['columnWidths']||_0x368085,_0x5faf36=this['editor']['plugins']['get']('Users')['me'];for(const _0x326f84 of _0x5c7db4['getSuggestions']()){const _0x1a14bb=_0x326f84['getContainedElement']();if('resizeTable'===_0x326f84['subType']&&_0x1a14bb===_0xc1ac0c){_0x326f84['author']!==_0x5faf36&&_0x326f84['discard']();const _0x102b47=_0x326f84['data']['commandParams'];_0x22113c=_0x102b47[0x0]['tableWidth'],_0x368085=_0x102b47[0x0]['columnWidths'];break;}}_0x4f10f9({'table':_0xc1ac0c,'tableWidth':_0x393c13,'columnWidths':_0x289667}),_0x5c7db4['markBlockFormat'](_0xc1ac0c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x22113c,'columnWidths':_0x368085}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x9daa18){if('formatBlock'!=_0x9daa18['type']&&'formatInline'!=_0x9daa18['type'])return;const {data:_0x881d1}=_0x9daa18;if(_0x881d1&&'resizeTable'===_0x881d1['formatGroupId']){const _0x3a86b9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3a86b9)};}}}class Ct extends _0x52cd9d{['afterInit'](){const _0x142520=this['editor'];_0x142520['plugins']['has']('Template')&&_0x142520['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x52cd9d{['afterInit'](){const _0x585a82=this['editor'];if(!_0x585a82['commands']['get']('insertTableOfContents'))return;_0x585a82['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1a767d=_0x585a82['plugins']['get']('TrackChangesEditing'),_0x5ae05b=_0x585a82['locale'];_0x1a767d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1c891b=>o(_0x5ae05b,'ELEMENT_TABLE_OF_CONTENTS',_0x1c891b));}}class Dt extends _0x52cd9d{['afterInit'](){const _0x3ec88b=this['editor'];if(!_0x3ec88b['plugins']['has']('Title'))return;const _0x227b93=_0x3ec88b['plugins']['get']('TrackChangesEditing');_0x227b93['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3ec88b['locale'],'ELEMENT_TITLE')),_0x3ec88b['model']['document']['registerPostFixer'](_0x2b36a0=>{let _0x1291d2=!0x1;const _0x3021da=Array['from'](_0x3ec88b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dfa2f,data:_0x57457b}of _0x3021da){const {group:_0x4eb6ea}=_0x227b93['_splitMarkerName'](_0x1dfa2f);if('suggestion'!==_0x4eb6ea||!_0x57457b['newRange'])continue;const _0xc6687e=_0x57457b['newRange'],_0x58224a=_0xc6687e['end']['nodeBefore'];if(!_0x58224a||!_0x58224a['is']('element','title-content'))continue;if(!_0xc6687e['start']['isTouching'](_0xc6687e['end']))continue;const _0x5e91de=_0x3ec88b['model']['schema']['getNearestSelectionRange'](_0xc6687e['end'],'forward');if(_0x5e91de&&_0x5e91de['isCollapsed']){const _0x3b7771=_0x2b36a0['createRange'](_0xc6687e['start'],_0x5e91de['start']);_0x3b7771['isEqual'](_0xc6687e)||(_0x2b36a0['updateMarker'](_0x1dfa2f,{'range':_0x3b7771}),_0x1291d2=!0x0);}_0x1291d2||(_0x2b36a0['removeMarker'](_0x1dfa2f),_0x1291d2=!0x0);}return _0x1291d2;});}}class Nt extends _0x52cd9d{['afterInit'](){const _0x1286fa=this['editor'],_0x5473f9=_0x1286fa['plugins']['get']('TrackChangesEditing');_0x1286fa['plugins']['has']('UndoEditing')&&(_0x5473f9['enableCommand']('undo'),_0x5473f9['enableCommand']('redo'));}}class Mt extends _0x52cd9d{static get['requires'](){return[jt];}['afterInit'](){const _0x4b5226=this['editor'];if(!_0x4b5226['plugins']['has']('TableCaptionEditing'))return;_0x4b5226['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x52cd9d{['tableProperties'];['tableCellProperties'];constructor(_0x32b6c6){super(_0x32b6c6),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 _0x410964=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5bea8a of this['tableProperties'])_0x410964['enableCommand'](_0x5bea8a,(_0x3328bf,_0x1f34e2)=>{const _0x13b5cb=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5bea8a,[_0x13b5cb],this['tableProperties'],'tableProperties',_0x3328bf,_0x1f34e2);});_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x410964['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x210655,_0x569a24)=>this['handleDiscardAction'](this['tableProperties'],_0x210655,_0x569a24)),_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4831c4 of this['tableCellProperties'])_0x410964['enableCommand'](_0x4831c4,(_0x8b587f,_0x22bfe7)=>{const _0x1a2b1c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4831c4,_0x1a2b1c,this['tableCellProperties'],'tableCellProperties',_0x8b587f,_0x22bfe7);});_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x410964['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4116fa,_0x3bbee7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4116fa,_0x3bbee7)),_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x410964['descriptionFactory']['registerDescriptionCallback'](_0xb817e5=>this['handleSuggestionDescription'](_0xb817e5));}['_handlePropertyChange'](_0x390ff7,_0x1335fd,_0x1193d2,_0x3890f4,_0x19f968,_0x288d21){const _0x4560a7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x288d21['batch'],()=>{for(const _0x1fec52 of _0x1335fd){if(this['_getSuggestion'](_0x1fec52,_0x3890f4))_0x19f968(_0x288d21);else{const _0x5c0623={};for(const _0x541c01 of _0x1193d2){const _0x3550f5=_0x1fec52['getAttribute'](_0x541c01);void 0x0!==_0x3550f5&&(_0x5c0623[_0x541c01]=_0x3550f5);}_0x19f968(_0x288d21),_0x4560a7['markBlockFormat'](_0x1fec52,{'commandParams':[_0x5c0623]},[],_0x3890f4);}}});}['handleDiscardAction'](_0xd599bb,_0x13ba1b,_0x59f812){const _0x265a2c=_0x13ba1b[0x0]['start']['nodeAfter'],_0xb868a9=_0x59f812['commandParams'][0x0];this['editor']['model']['change'](_0x3a925d=>{for(const _0x3aad53 of _0xd599bb)void 0x0!==_0xb868a9[_0x3aad53]?_0x3a925d['setAttribute'](_0x3aad53,_0xb868a9[_0x3aad53],_0x265a2c):_0x3a925d['removeAttribute'](_0x3aad53,_0x265a2c);});}['handleSuggestionDescription'](_0x14e6aa){if(_0x14e6aa['data'])switch(_0x14e6aa['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'](_0xcdab5,_0x1e597d){const _0x159055=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5b74f6 of _0x159055['getSuggestions']({'skipNotAttached':!0x0})){const _0x392a9b=_0x5b74f6['getContainedElement']();if(_0x5b74f6['subType']===_0x1e597d&&_0x392a9b===_0xcdab5)return _0x5b74f6;}return null;}}const m='$elementName';class p extends _0x52cd9d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5187f3,_0x296178,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1b0d1f){function _0xab6578(_0xfa01b){return _0xfa01b['map'](_0xc8b2b7=>String['fromCharCode'](_0xc8b2b7))['join']('');}super(_0x1b0d1f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x55bf8a,_0x262eaa,_0x10a06d,_0x46bc19)=>{this['_model']['change'](()=>{for(const _0x160dfc of[..._0x46bc19,..._0x10a06d])this['_model']['markers']['has'](_0x160dfc)&&_0x1b0d1f['editing']['reconvertMarker'](_0x160dfc);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1b0d1f['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(),_0x1b0d1f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1b0d1f['config']['get']('trackChanges.trackFormatChanges'),_0x1b0d1f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1b0d1f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1b0d1f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xab6578([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xab6578([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x36]);}['init'](){const _0x13db13=this['editor'],_0x2fb441=(_0x4b1371,_0x2d40e8)=>{if('attribute'!=_0x4b1371)return'ck-suggestion-marker-'+_0x4b1371;const _0x34b391=_0x2d40e8['split']('|')[0x0];return this['_isBlockAttribute'](_0x34b391)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x13db13['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x51b596=>{const {id:_0x551b56,type:_0x1e2d9e,subType:_0xcda5a7}=this['_splitMarkerName'](_0x51b596['markerName']),_0x273960=['ck-suggestion-marker',_0x2fb441(_0x1e2d9e,_0xcda5a7)];let _0x3f4e97=0xbb8;return this['activeMarkers']['includes'](_0x51b596['markerName'])&&(_0x273960['push']('ck-suggestion-marker--active'),_0x3f4e97=0xbc2),'deletion'==_0x1e2d9e&&(_0x3f4e97+=0x5),{'classes':_0x273960,'attributes':{'data-suggestion':_0x551b56},'priority':_0x3f4e97};}}),_0x13db13['conversion']['for']('dataDowncast')['add'](_0x5e5ed7=>{_0x5e5ed7['on']('addMarker:suggestion',(_0x3cba4f,_0x2d7ab8,_0x51ef37)=>{if(!_0x51ef37['options']['showSuggestionHighlights'])return;const _0x259660=_0x2d7ab8['item'];if(!_0x259660)return;const _0x52638f=_0x51ef37['mapper']['toViewElement'](_0x259660);_0x13db13['model']['schema']['isObject'](_0x259660)&&_0x52638f&&!_0x52638f['getCustomProperty']('widget')&&_0x52638f['is']('containerElement')&&_0xef749a(_0x52638f,_0x51ef37['writer']);},{'priority':'high'});}),_0x13db13['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x220e22,_0x13230f)=>{if(!_0x13230f['options']['showSuggestionHighlights'])return null;const {type:_0x5ba143,subType:_0x553ea4}=this['_splitMarkerName'](_0x220e22['markerName']);return{'classes':['ck-suggestion-marker',_0x2fb441(_0x5ba143,_0x553ea4)],'priority':0xbb8};}});const _0x167497=({showActiveMarkers:_0x3fb9e0=!0x0,isAttributeSuggestion:_0x26bfac=!0x1}={})=>(_0x39e8a5,_0x1ac063,_0x49aadb)=>{if(!_0x1ac063['item'])return;const {id:_0x51481d}=this['_splitMarkerName'](_0x1ac063['markerName']);if(_0x26bfac){const _0x916782=this['_suggestions']['get'](_0x51481d),_0x2f04b7=this['_getAttributeKey'](_0x916782);if(!this['_isBlockAttribute'](_0x2f04b7))return;}if(_0x1ac063['item']['is']('selection'))return void _0x49aadb['consumable']['consume'](_0x1ac063['item'],_0x39e8a5['name']);const _0x1f899d=_0x49aadb['mapper']['toViewElement'](_0x1ac063['item']);if(_0x1ac063['item']['is']('element')&&_0x13db13['model']['schema']['isBlock'](_0x1ac063['item'])&&!_0x1f899d['getCustomProperty']('addHighlight')){_0x49aadb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1f899d),_0x49aadb['writer']['setAttribute']('data-suggestion',_0x51481d,_0x1f899d),_0x49aadb['mapper']['bindElementToMarker'](_0x1f899d,_0x1ac063['markerName']),_0x3fb9e0&&(this['activeMarkers']['includes'](_0x1ac063['markerName'])?_0x49aadb['writer']['addClass']('ck-suggestion-marker--active',_0x1f899d):_0x49aadb['writer']['removeClass']('ck-suggestion-marker--active',_0x1f899d));for(const _0x68f516 of _0x13db13['model']['createRangeIn'](_0x1ac063['item'])['getItems']())_0x49aadb['consumable']['consume'](_0x68f516,_0x39e8a5['name']);_0x49aadb['consumable']['consume'](_0x1ac063['item'],_0x39e8a5['name']);}};_0x13db13['conversion']['for']('dataDowncast')['add'](_0x414afa=>{_0x414afa['on']('addMarker:suggestion:formatBlock',(_0x1f4c21,_0x54373a,_0x27a2e5)=>{_0x27a2e5['options']['showSuggestionHighlights']&&_0x167497({'showActiveMarkers':!0x1})(_0x1f4c21,_0x54373a,_0x27a2e5);},{'priority':'highest'});}),_0x13db13['conversion']['for']('dataDowncast')['add'](_0x2fa9f9=>{_0x2fa9f9['on']('addMarker:suggestion:attribute',(_0x2f9548,_0x888358,_0x1ac106)=>{_0x1ac106['options']['showSuggestionHighlights']&&_0x167497({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2f9548,_0x888358,_0x1ac106);},{'priority':'highest'});}),_0x13db13['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xf2bff5,_0x535c23)=>_0x535c23['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xf2bff5['substr'](0xb)}}),_0x13db13['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18490d,{writer:_0x2f45c9})=>{let _0x1f6bb1='suggestion:'+_0x18490d['getAttribute']('suggestion-type')+':'+_0x18490d['getAttribute']('id');return _0x18490d['getAttribute']('marker-count')&&(_0x1f6bb1+=':'+_0x18490d['getAttribute']('marker-count')),_0x2f45c9['createElement']('$marker',{'data-name':_0x1f6bb1});}}),_0x13db13['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x13db13['conversion']['for']('editingDowncast')['add'](_0x1d6f3b=>{_0x1d6f3b['on']('addMarker:suggestion:formatBlock',_0x167497(),{'priority':'high'});}),_0x13db13['conversion']['for']('editingDowncast')['add'](_0x10dda3=>{_0x10dda3['on']('addMarker:suggestion:attribute',_0x167497({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x13db13['conversion']['for']('editingDowncast')['add'](_0x5b1005=>{_0x5b1005['on']('removeMarker:suggestion:formatBlock',(_0x3dc80f,_0x15f839,_0x275439)=>{const _0x50ef4b=_0x275439['mapper']['markerNameToElements'](_0x15f839['markerName']);if(_0x50ef4b){for(const _0x45bf7d of _0x50ef4b)_0x45bf7d['getCustomProperty']('addHighlight')||(_0x275439['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45bf7d),_0x275439['writer']['removeAttribute']('data-suggestion',_0x45bf7d),_0x275439['mapper']['unbindElementFromMarkerName'](_0x45bf7d,_0x15f839['markerName']));}},{'priority':'high'});}),_0x13db13['conversion']['for']('editingDowncast')['add'](_0x330f92=>{_0x330f92['on']('removeMarker:suggestion:attribute',(_0x3ddde4,_0x2d28ee,_0x366af2)=>{const _0x4e2046=_0x366af2['mapper']['markerNameToElements'](_0x2d28ee['markerName']);if(!_0x4e2046)return;const {id:_0x191932}=this['_splitMarkerName'](_0x2d28ee['markerName']),_0x2ba2a7=this['_suggestions']['get'](_0x191932),_0xf8ab4b=this['_getAttributeKey'](_0x2ba2a7);if(this['_isBlockAttribute'](_0xf8ab4b)){for(const _0x49a13f of _0x4e2046)_0x49a13f['getCustomProperty']('addHighlight')||(_0x366af2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x49a13f),_0x366af2['writer']['removeAttribute']('data-suggestion',_0x49a13f),_0x366af2['mapper']['unbindElementFromMarkerName'](_0x49a13f,_0x2d28ee['markerName']));}},{'priority':'high'});}),_0x13db13['model']['document']['registerPostFixer'](_0xbac30d=>{let _0x126c78=!0x1;const _0x33d546=Array['from'](_0x13db13['model']['document']['differ']['getChangedMarkers']()),_0x5c2b20=new Set();for(const {name:_0xbed088,data:_0x33a36b}of _0x33d546){const {group:_0x49cfb0,type:_0x44fa5a,subType:_0x4bf7f6,id:_0xd2e3f8}=this['_splitMarkerName'](_0xbed088);if('suggestion'!==_0x49cfb0)continue;const _0x266ffd=this['_suggestions']['get'](_0xd2e3f8);if(null!=_0x33a36b['newRange']){'formatInline'==_0x44fa5a&&(_0x126c78=_0x126c78||Et(_0x33a36b['newRange'],_0xbed088,_0xbac30d,_0x13db13['model']['schema']));const _0x537176='attribute'==_0x44fa5a&&this['_isBlockAttribute'](_0x4bf7f6['split']('|')[0x0]);if(_0x33a36b['newRange']['isCollapsed']||'$graveyard'==_0x33a36b['newRange']['root']['rootName']||'formatBlock'==_0x44fa5a&&!Ut(_0x33a36b['newRange'])||_0x537176&&!Ut(_0x33a36b['newRange'])||'deletion'==_0x44fa5a&&!(!Tt(_0x5ae551=_0x33a36b['newRange'])&&!function(_0x45bc59){return _0x45bc59['start']['parent']==_0x45bc59['end']['nodeBefore']&&_0x45bc59['start']['isAtEnd'];}(_0x5ae551)))_0xbac30d['removeMarker'](_0xbed088),_0x126c78=!0x0;else{if(!_0x266ffd||!_0x266ffd['isInContent'])continue;_0x5c2b20['add'](_0x266ffd);}}}var _0x5ae551;return _0x5c2b20['size']>0x0&&(_0x126c78=!!this['_joinWithAdjacentSuggestions'](_0x5c2b20)||_0x126c78),_0x126c78;}),_0x13db13['model']['document']['registerPostFixer'](_0x7e0854=>{let _0x1bf524=!0x1;for(const _0x5c75df of _0x13db13['model']['document']['differ']['getChanges']())if('insert'==_0x5c75df['type'])for(const _0x49d0e9 of this['_suggestions']['values']()){if(_0x49d0e9['isMultiRange']||!_0x49d0e9['isInContent'])continue;const _0xc3c68e='formatBlock'==_0x49d0e9['type'],_0x660750=this['_getAttributeKey'](_0x49d0e9),_0x352c82=_0x660750&&this['_isBlockAttribute'](_0x660750);if(!_0xc3c68e&&!_0x352c82)continue;const _0x22c8ed=_0x49d0e9['getFirstRange']();if(_0x22c8ed['start']['parent']!=_0x22c8ed['end']['parent']&&!_0x22c8ed['end']['isAtEnd']){const _0xc10a4b=_0x13db13['model']['createPositionAt'](_0x22c8ed['start']['nodeAfter'],'end'),_0x501a15=_0x13db13['model']['createRange'](_0x22c8ed['start'],_0xc10a4b);_0x7e0854['updateMarker'](_0x49d0e9['getFirstMarker'](),{'range':_0x501a15}),_0x1bf524=!0x0;}}return _0x1bf524;}),_0x13db13['model']['document']['registerPostFixer'](_0x102309=>this['_processAttributeChanges'](_0x102309)),_0x13db13['model']['document']['registerPostFixer'](_0x276005=>!_0x276005['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x276005)),_0x13db13['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x13db13['model']['document']['on']('change:data',(_0x2d4471,_0x3e41fd)=>{if(!_0x3e41fd['isLocal']||_0x3e41fd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5b15a9=_0x13db13['model']['document']['differ']['getChanges']();if(0x0==_0x5b15a9['length'])return;const _0x281592=[],_0x23e162=_0x5b15a9['filter'](_0x3ec0a0=>'attribute'==_0x3ec0a0['type']),_0x37f49a=_0x5b15a9['filter'](_0x292078=>'insert'==_0x292078['type']&&'$text'!=_0x292078['name']);for(const _0x5a7819 of _0x23e162)this['_isRegisteredAttribute'](_0x5a7819['attributeKey'])&&_0x281592['push']({'key':_0x5a7819['attributeKey'],'newValue':_0x5a7819['attributeNewValue'],'oldValue':_0x5a7819['attributeOldValue'],'range':Ot(_0x5a7819['range'],_0x13db13['model'])});for(const _0x9132a5 of _0x37f49a){if('rename'!=_0x9132a5['action']&&'refresh'!=_0x9132a5['action'])continue;const _0x17beec=Gt(_0x9132a5['position']['nodeAfter'],_0x13db13['model']),_0xb26f94=_0x9132a5['before'];'rename'==_0x9132a5['action']&&_0x281592['push']({'key':m,'newValue':_0x9132a5['name'],'oldValue':_0xb26f94['name'],'range':_0x17beec});for(const [_0x404dda,_0x399adc]of _0xb26f94['attributes']){if(!this['_isRegisteredAttribute'](_0x404dda))continue;const _0x912d6c=_0x9132a5['attributes']['get'](_0x404dda);_0x399adc!==_0x912d6c&&_0x281592['push']({'key':_0x404dda,'newValue':_0x912d6c,'oldValue':_0x399adc,'range':_0x17beec});}for(const [_0x27a20f,_0x18108d]of _0x9132a5['attributes'])this['_isRegisteredAttribute'](_0x27a20f)&&(_0xb26f94['attributes']['has'](_0x27a20f)||_0x281592['push']({'key':_0x27a20f,'newValue':_0x18108d,'oldValue':null,'range':_0x17beec}));}0x0!=_0x281592['length']&&_0x13db13['model']['enqueueChange'](_0x3e41fd,_0x3d3354=>{const _0x4309a4=_0x3792e7();for(const {range:_0x4a4913,key:_0x26a6ce,oldValue:_0x2e2834,newValue:_0x3f8770}of _0x281592)this['markAttributeChange'](_0x4a4913,_0x26a6ce,_0x2e2834,_0x3f8770,{'groupId':_0x4309a4});this['_reduceExistingSuggestions'](_0x3d3354,_0x281592);});},{'priority':'lowest'}),_0x13db13['model']['markers']['on']('update:suggestion',(_0x567216,_0x427cc9,_0x33122b)=>{if(null==_0x33122b){const {id:_0x23fd56}=this['_splitMarkerName'](_0x427cc9['name']),_0x26f665=this['_suggestions']['get'](_0x23fd56);_0x26f665&&_0x26f665['addMarkerName'](_0x427cc9['name']);}}),_0x13db13['model']['document']['on']('change:data',()=>{const _0x40d4a1=Array['from'](_0x13db13['model']['document']['differ']['getChangedMarkers']())['filter'](_0x39e340=>'suggestion'===this['_splitMarkerName'](_0x39e340['name'])['group']);if(0x0===_0x40d4a1['length'])return;_0x40d4a1['sort']((_0x342843,_0x2374fe)=>{const _0x229ff9=_0x342843['data']['oldRange'],_0x118cfc=_0x2374fe['data']['oldRange'];return null===_0x229ff9&&null===_0x118cfc?0x0:null===_0x229ff9&&null!==_0x118cfc?-0x1:null!==_0x229ff9&&null===_0x118cfc?0x1:_0x229ff9['start']['isBefore'](_0x118cfc['start'])?-0x1:0x1;});const _0x25a6ad=new Set(),_0x5dfd99=new Set();for(const {name:_0x16186c,data:_0x108a43}of _0x40d4a1){const {id:_0x22c9b9}=this['_splitMarkerName'](_0x16186c);if(null===_0x108a43['oldRange']){const _0x5ed4bf=this['_handleNewSuggestionMarker'](_0x16186c);_0x5dfd99['add'](_0x5ed4bf);}else{const _0x40b4d0=this['_suggestions']['get'](_0x22c9b9);null!==_0x108a43['newRange']||_0x40b4d0['isInContent']?(_0x25a6ad['add'](_0x40b4d0['head']),_0x5dfd99['add'](_0x40b4d0)):this['_removeSuggestion'](_0x40b4d0);}}_0x5dfd99['size']>0x0&&this['_refreshSuggestionsChain'](_0x5dfd99);for(const _0x1c228b of _0x25a6ad)this['fire']('suggestionChanged',_0x1c228b);}),_0x13db13['model']['on']('applyOperation',(_0x85af58,_0x145c0d)=>{const _0x3ef4e2=_0x145c0d[0x0];if(!this['_suggestions']['size'])return;if(!_0x3ef4e2['isDocumentOperation'])return;if(_0x3ef4e2['batch']['isUndo']||!_0x3ef4e2['batch']['isLocal'])return;let _0x63965b,_0x543ca4;switch(_0x3ef4e2['type']){case'insert':_0x63965b=_0x13db13['model']['createPositionAt'](_0x3ef4e2['position']),_0x543ca4=_0x63965b['getShiftedBy'](_0x3ef4e2['howMany']);break;case'split':_0x63965b=_0x13db13['model']['createPositionAt'](_0x3ef4e2['splitPosition']),_0x543ca4=_0x13db13['model']['createPositionAt'](_0x3ef4e2['moveTargetPosition']);break;case'move':_0x63965b=_0x13db13['model']['createPositionAt'](_0x3ef4e2['targetPosition']),_0x543ca4=_0x63965b['getShiftedBy'](_0x3ef4e2['howMany']);break;default:return;}const _0x249478=_0x13db13['model']['createRange'](_0x63965b,_0x543ca4);_0x13db13['model']['change'](()=>{for(const {suggestion:_0x2587ff,meta:_0x48cc92}of this['_findSuggestions'](_0x249478)){if(_0x2587ff['isMultiRange'])continue;if('formatInline'==_0x2587ff['type'])continue;const _0x1a58bc=this['_getAttributeKey'](_0x2587ff);if(_0x1a58bc&&this['_isBlockAttribute'](_0x1a58bc)&&'split'!=_0x3ef4e2['type'])continue;const _0x264363=_0x2587ff['data']&&_0x2587ff['data']['multipleBlocks'];('formatBlock'!=_0x2587ff['type']||'split'==_0x3ef4e2['type']&&!_0x264363)&&(_0x48cc92['containsRangeInObject']||'insertion'==_0x2587ff['type']&&_0x48cc92['isOwn']||_0x2587ff['getFirstRange']()['containsRange'](_0x249478)&&this['_breakSuggestionMarker'](_0x2587ff,_0x63965b,_0x543ca4));}});},{'priority':'lowest'}),_0x13db13['model']['on']('deleteContent',(_0x33a3e4,_0xcef1ad)=>{const _0x359765=_0xcef1ad[0x0],_0xe5a812=_0xcef1ad[0x1];if(_0xe5a812&&_0xe5a812['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x359765['isCollapsed'])return;const _0x3911bc=_0x13db13['model']['schema'],{start:_0x5ca640,end:_0x21dc5a}=_0x359765['getFirstRange'](),_0x367d95=_0x5ca640['nodeAfter']&&_0x3911bc['isLimit'](_0x5ca640['nodeAfter'])?null:_0x3911bc['getNearestSelectionRange'](_0x5ca640,'forward'),_0x4708d8=_0x21dc5a['nodeBefore']&&_0x3911bc['isLimit'](_0x21dc5a['nodeBefore'])?null:_0x3911bc['getNearestSelectionRange'](_0x21dc5a,'backward'),_0x3822f8=_0x13db13['model']['createRange'](_0x367d95?_0x367d95['start']:_0x5ca640,_0x4708d8?_0x4708d8['end']:_0x21dc5a);_0x13db13['model']['change'](_0x264f89=>{this['markDeletion'](_0x3822f8);const _0x3d3b26=_0x13db13['model']['schema']['getNearestSelectionRange'](_0x3822f8['start']);_0x359765['is']('documentSelection')?_0x264f89['setSelection'](_0x3d3b26):_0x359765['setTo'](_0x3d3b26);}),_0x33a3e4['stop']();},{'priority':_0x1e1756['normal']+0xa}),_0x13db13['model']['on']('insertContent',(_0xcdeb6c,_0x1b9d01)=>{const _0x4288c5=_0x1b9d01[_0x1b9d01['length']-0x1];_0x4288c5&&_0x4288c5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x13db13['model']['change'](()=>{let _0x4572ad=_0x13db13['model']['insertContent'](_0x1b9d01[0x0],_0x1b9d01[0x1],_0x1b9d01[0x2],{'forceDefaultExecution':!0x0});if(!_0x4572ad)return;_0xcdeb6c['return']=_0x4572ad['clone']();const _0x199cd7=_0x4572ad['end']['nodeBefore'],_0x39dd76=_0x13db13['model']['schema'];_0x199cd7&&_0x39dd76['isBlock'](_0x199cd7)&&!_0x39dd76['isObject'](_0x199cd7)&&(_0x4572ad=_0x13db13['model']['createRange'](_0x4572ad['start'],_0x13db13['model']['createPositionAt'](_0x199cd7,'end'))),this['markInsertion'](_0x4572ad);}),_0xcdeb6c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4f3e5e=new $(_0x13db13,this['_suggestions']);_0x13db13['commands']['add']('acceptSuggestion',_0x4f3e5e),this['enableCommand']('acceptSuggestion');const _0x19f3fa=new B(_0x13db13,this['_suggestions']);_0x13db13['commands']['add']('discardSuggestion',_0x19f3fa),this['enableCommand']('discardSuggestion'),_0x13db13['commands']['add']('acceptAllSuggestions',new x(_0x13db13,_0x4f3e5e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x13db13['commands']['add']('discardAllSuggestions',new x(_0x13db13,_0x19f3fa,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x13db13['commands']['add']('acceptSelectedSuggestions',new R(_0x13db13,_0x4f3e5e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x13db13['commands']['add']('discardSelectedSuggestions',new R(_0x13db13,_0x19f3fa,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1dc2fa=_0x13db13['plugins']['get']('CommentsRepository');this['listenTo'](_0x1dc2fa,'addComment',(_0x51913d,{threadId:_0x48abc1})=>{const _0x5903b2=this['_suggestions']['get'](_0x48abc1);_0x5903b2&&_0x5903b2['commentThread']&&0x1===_0x5903b2['commentThread']['length']&&this['_updateSuggestionData'](_0x48abc1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1dc2fa,'removeComment',(_0x5c7414,{threadId:_0x98dc31})=>{const _0x3d459b=this['_suggestions']['get'](_0x98dc31);_0x3d459b&&_0x3d459b['commentThread']&&!_0x3d459b['commentThread']['length']&&this['_updateSuggestionData'](_0x98dc31,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2556ef){if(this['_adapter'])throw new _0x368f48('track-changes-adapter-already-set',this);this['_adapter']=_0x2556ef;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x36007c=!0x1,toJSON:_0x4da222=!0x1}={}){const _0x8ff957=[];for(const _0xa62323 of this['_suggestions']['values']())_0x36007c&&!_0xa62323['isInContent']||_0x8ff957['push'](_0xa62323);return _0x4da222?_0x8ff957['map'](_0xef0f46=>_0xef0f46['toJSON']()):_0x8ff957;}['getSuggestion'](_0x1298c4){const _0x4d1bd8=this['_suggestions']['get'](_0x1298c4);if(!_0x4d1bd8)throw new _0x368f48('track-changes-suggestion-not-found',this);return _0x4d1bd8;}['hasSuggestion'](_0x7762e8){return this['_suggestions']['has'](_0x7762e8);}['addSuggestionData'](_0x3a9dfc){const {authorId:_0x5b54d4,id:_0x1ed0af,attributes:_0x43eacb}=_0x3a9dfc,[_0x56e740,_0x42bd06]=_0x3a9dfc['type']['split'](':'),_0x3ce940=this['_suggestions']['get'](_0x1ed0af)||this['_createSuggestion'](_0x56e740,_0x42bd06,_0x1ed0af,_0x5b54d4,_0x43eacb);if(this['_addThreadToSuggestion'](_0x3ce940),this['_checkSuggestionCorrectness'](_0x3ce940,_0x56e740,_0x42bd06||null,_0x5b54d4),_0x3ce940['createdAt']=_0x3a9dfc['createdAt'],_0x3ce940['_isDataLoaded']=!0x0,_0x43eacb&&_0x43eacb['@external']){const _0x26acc5=_0x43eacb['@external'],_0x19fae4=this['_getExternalAuthor'](_0x26acc5['authorName']);_0x3ce940['authoredAt']=_0x26acc5['createdAt'],_0x3ce940['author']=_0x19fae4,_0x3ce940['isExternal']=!0x0;}else _0x3ce940['authoredAt']=_0x3a9dfc['createdAt'];switch(_0x3a9dfc['data']&&(_0x3ce940['data']=_0x3a9dfc['data']),_0x3a9dfc['attributes']&&(_0x3ce940['attributes']=_0x3a9dfc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3ce940['_saved']=!0x0),this['_suggestionState']['get'](_0x3ce940)){case'notReady':this['_suggestionState']['set'](_0x3ce940,'dataReady');break;case'markerReady':_0x3ce940['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3ce940])),this['_refreshSuggestionsChain'](new Set([_0x3ce940])),this['_suggestionState']['set'](_0x3ce940,'ready'),this['fire']('suggestionLoaded',_0x3ce940)):this['_suggestionState']['set'](_0x3ce940,'removed');}return _0x3ce940;}['acceptSuggestion'](_0x48353b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x565105 of _0x48353b['getAllAdjacentSuggestions']())_0x565105['accept']();});});}['discardSuggestion'](_0x4cf51e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5bc130 of _0x4cf51e['getAllAdjacentSuggestions']())_0x5bc130['discard']();});});}['enableCommand'](_0x412972,_0x2a6625){const _0x5a0f8e=this['editor']['commands']['get'](_0x412972);if(!_0x5a0f8e)throw new _0x368f48('track-changes-command-not-found',this,{'commandName':_0x412972});if(this['_enabledCommands']['has'](_0x5a0f8e))throw new _0x368f48('track-changes-enable-command-twice',this,{'commandName':_0x412972});this['_enabledCommands']['add'](_0x5a0f8e),_0x2a6625&&_0x5a0f8e['on']('execute',(_0x2f1108,_0x3e0b28)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3e0b28['length']>0x0&&_0x3e0b28[_0x3e0b28['length']-0x1]&&_0x3e0b28[_0x3e0b28['length']-0x1]['forceDefaultExecution']?_0x3e0b28['pop']():(_0x2f1108['return']=_0x2a6625((..._0x52dbf3)=>_0x5a0f8e['execute'](..._0x52dbf3,{'forceDefaultExecution':!0x0}),..._0x3e0b28),_0x2f1108['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x312cb5){let _0x5773a1,_0x2efb36;const _0x3d0ee7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5773a1=_0x312cb5();}catch(_0x378a67){_0x2efb36=_0x378a67;}return _0x3d0ee7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2efb36&&_0x368f48['rethrowUnexpectedError'](_0x2efb36,this),_0x5773a1;}['markInsertion'](_0x2f1a15,_0x23e200=null,_0x85ac55={}){if(_0x2f1a15['isCollapsed'])return null;const _0x440d23=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2fde82,meta:_0x2f9de9}of this['_findSuggestions'](_0x2f1a15,'insertion'))if(_0x2f9de9['isOwn']){if(!_0x2f9de9['isNextTo']){if(_0x2f9de9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2fde82,_0x85ac55))continue;return _0x2fde82;}if(Lt(_0x2fde82,_0x85ac55))return _0x2fde82;this['_breakSuggestionMarker'](_0x2fde82,_0x2f1a15['start'],_0x2f1a15['end']);break;}if(_0x23e200==_0x2fde82['subType']&&Lt(_0x2fde82,_0x85ac55)){const _0x3450fe=_0x2fde82['getFirstRange']();return _0x3450fe['start']['isEqual'](_0x2f1a15['end'])?this['_setSuggestionRange'](_0x2fde82,this['_model']['createRange'](_0x2f1a15['start'],_0x3450fe['end'])):this['_setSuggestionRange'](_0x2fde82,this['_model']['createRange'](_0x3450fe['start'],_0x2f1a15['end'])),_0x2fde82;}}const _0x522c9c=_0x3792e7(),_0xb8ad63=_0x440d23['id'],_0xe3dc77=_0x23e200?'insertion:'+_0x23e200:'insertion',_0x2c443d=this['_setSuggestionData']({'id':_0x522c9c,'type':_0xe3dc77,'createdAt':new Date(),'authorId':_0xb8ad63,'attributes':_0x85ac55});return this['_addSuggestionMarker'](_0xe3dc77,_0x522c9c,_0xb8ad63,_0x2f1a15),_0x2c443d;}['markMultiRangeInsertion'](_0x410a6,_0x1903e5='multi',_0x7068e9={}){const _0x28b35d=this['editor']['plugins']['get']('Users')['me'],_0xe2a01b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1903e5,'join');for(const _0x5b760a of this['getSuggestions']())if(_0x5b760a['author']['id']==_0x28b35d['id']&&'insertion'==_0x5b760a['type']&&_0x5b760a['subType']==_0x1903e5&&Lt(_0x5b760a,_0x7068e9)&&(_0xe2a01b(_0x5b760a['getRanges'](),_0x410a6)||_0xe2a01b(_0x410a6,_0x5b760a['getRanges']()))){for(const _0x4e8d01 of _0x410a6)_0x5b760a['addRange'](_0x4e8d01);return _0x5b760a;}for(const {suggestion:_0x28eceb,meta:_0x220bed}of this['_findSuggestions'](_0x410a6,'insertion')){if(!_0x220bed['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x220bed['containsRangeInObject'])continue;if(!Lt(_0x28eceb,_0x7068e9))continue;let _0x155a4d=!0x0;for(const _0x3b3dc7 of _0x28eceb['getRanges']())for(const _0x51f25e of _0x410a6)if(!_0x3b3dc7['containsRange'](_0x51f25e)){_0x155a4d=!0x1;break;}if(_0x155a4d)return _0x28eceb;}const _0x440612=_0x3792e7(),_0x4816f8=_0x28b35d['id'],_0x4674ae='insertion:'+_0x1903e5,_0xdd2404=this['_setSuggestionData']({'id':_0x440612,'type':_0x4674ae,'createdAt':new Date(),'authorId':_0x4816f8,'attributes':_0x7068e9});for(const _0x2c31c4 of _0x410a6)this['_addSuggestionMarker'](_0x4674ae,_0x440612,_0x4816f8,_0x2c31c4,u['getMultiRangeId']());return _0xdd2404;}['markInlineFormat'](_0x4ba217,_0xe098b5,_0x5cd2f1=null,_0x23113d={}){if(_0x5cd2f1=_0x5cd2f1||Vt(_0xe098b5),_0x4ba217['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x217167=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5cd2f1,'accept');return this['forceDefaultExecution'](()=>_0x217167([_0x4ba217],_0xe098b5,_0x23113d)),null;}const _0x1f1edf=this['editor']['plugins']['get']('Users')['me'],_0x356c18=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e9a05,meta:_0x2ec940}of this['_findSuggestions'](_0x4ba217,'insertion'))_0x2ec940['isOwn']&&!_0x2ec940['isInsideObject']&&_0x356c18['push'](..._0x1e9a05['getRanges']());}const _0x150898=function(_0x552e89,_0x25e10b){const _0x10a865=[];for(const _0x95b80d of _0x25e10b){const _0x1ac900=_0x552e89['getIntersection'](_0x95b80d);_0x1ac900&&_0x10a865['push'](_0x1ac900);}return _0x10a865;}(_0x4ba217,_0x356c18),_0x1cad89=function(_0x2f61f2,_0x396ee5){const _0x6ddf70=[_0x2f61f2];for(const _0x27d8d7 of _0x396ee5){let _0x3f0cfd=0x0;for(;_0x3f0cfd<_0x6ddf70['length'];){const _0xb66178=_0x6ddf70[_0x3f0cfd]['getDifference'](_0x27d8d7);_0x6ddf70['splice'](_0x3f0cfd,0x1,..._0xb66178),_0x3f0cfd+=_0xb66178['length'];}}return _0x6ddf70;}(_0x4ba217,_0x356c18);_0x150898['length']&&this['_model']['change'](()=>{for(const _0x105bda of _0x150898){const _0x34b3e4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5cd2f1,'accept');this['forceDefaultExecution'](()=>_0x34b3e4([_0x105bda],_0xe098b5,_0x23113d));}});for(const _0x290257 of _0x1cad89){let _0x55d67d=null,_0x291b5d=_0x290257['start'],_0x5040c6=_0x290257['end'];for(const {suggestion:_0x3ca52b,meta:_0x16a5f9}of this['_findSuggestions'](_0x290257,'formatInline')){if(!_0x16a5f9['isOwn'])continue;if(_0x3ca52b['subType']!=_0x5cd2f1)continue;if(!Lt(_0x3ca52b,_0x23113d))continue;const _0xfff158=_0x3ca52b['getFirstRange']();if(_0xfff158['containsRange'](_0x290257,!0x0))return null;_0x291b5d=_0x291b5d['isBefore'](_0xfff158['start'])?_0x291b5d:_0xfff158['start'],_0x5040c6=_0x5040c6['isAfter'](_0xfff158['end'])?_0x5040c6:_0xfff158['end'],_0x55d67d?_0xfff158['start']['isBefore'](_0x55d67d['getFirstRange']()['start'])?(_0x55d67d['removeMarkers'](),_0x55d67d=_0x3ca52b):_0x3ca52b['removeMarkers']():_0x55d67d=_0x3ca52b;}const _0x4dfbba=this['_model']['createRange'](_0x291b5d,_0x5040c6);if(_0x55d67d)this['_setSuggestionRange'](_0x55d67d,_0x4dfbba);else{const _0x427d9e=_0x3792e7(),_0x4711c2=_0x1f1edf['id'];this['_setSuggestionData']({'id':_0x427d9e,'type':'formatInline:'+_0x5cd2f1,'data':_0xe098b5,'createdAt':new Date(),'authorId':_0x4711c2,'attributes':_0x23113d}),this['_addSuggestionMarker']('formatInline:'+_0x5cd2f1,_0x427d9e,_0x4711c2,_0x4dfbba);}}return null;}['markBlockFormat'](_0x5d2282,_0x146c06,_0x198a7c=[],_0x547bb8=null,_0x4c319c={}){_0x146c06['formatGroupId']||(_0x146c06['formatGroupId']=_0x146c06['commandName']),_0x146c06['multipleBlocks']=_0x5d2282['is']('range'),_0x547bb8=_0x547bb8||Vt(_0x146c06);const _0x3b55f4=_0x198a7c['map'](_0x13a732=>Gt(_0x13a732,this['_model'])),_0x48630b=_0x5d2282['is']('range')?_0x5d2282:Gt(_0x5d2282,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3acb76=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x547bb8,'accept');return this['forceDefaultExecution'](()=>_0x3acb76([_0x48630b],_0x146c06,_0x4c319c)),null;}_0x3b55f4['push'](_0x48630b);let _0xec7bd3=!0x0;for(const _0xcc44ac of _0x3b55f4)if(!this['_rangeIsInLocalUserInsertion'](_0xcc44ac)){_0xec7bd3=!0x1;break;}if(_0xec7bd3&&'always'!==this['_trackFormatChanges']){const _0x5e077d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x547bb8,'accept');return this['forceDefaultExecution'](()=>_0x5e077d([_0x48630b],_0x146c06,_0x4c319c)),null;}let _0x25bffd=null,_0x21cb2e=_0x48630b['start'],_0x41a947=_0x48630b['end'];for(const {suggestion:_0x370ade,meta:_0x2cd34e}of this['_findSuggestions'](_0x48630b,'formatBlock')){if(!_0x2cd34e['isOwn'])continue;if(_0x2cd34e['isNextTo']||_0x2cd34e['containsRangeInObject']||_0x2cd34e['isInsideObject'])continue;if(_0x370ade['data']['formatGroupId']!=_0x146c06['formatGroupId'])continue;if(!Lt(_0x370ade,_0x4c319c))continue;const _0x21e159=_0x370ade['getFirstRange']();if(_0x370ade['subType']==_0x547bb8){if(_0x21e159['containsRange'](_0x48630b,!0x0))return null;_0x21cb2e=_0x21cb2e['isBefore'](_0x21e159['start'])?_0x21cb2e:_0x21e159['start'],_0x41a947=_0x41a947['isAfter'](_0x21e159['end'])?_0x41a947:_0x21e159['end'],_0x25bffd?_0x21e159['start']['isBefore'](_0x25bffd['getFirstRange']()['start'])?(_0x25bffd['removeMarkers'](),_0x25bffd=_0x370ade):_0x370ade['removeMarkers']():_0x25bffd=_0x370ade;}else{const _0x2d0fcb=_0x48630b['getIntersection'](_0x21e159);this['_cutOutSuggestionMarker'](_0x370ade,_0x2d0fcb);}}const _0x38cb0c=this['editor']['plugins']['get']('Users')['me'],_0x145956=_0x3792e7(),_0x3bbdb4=_0x38cb0c['id'];if(_0x25bffd)return this['_setSuggestionRange'](_0x25bffd,this['_model']['createRange'](_0x21cb2e,_0x41a947)),_0x25bffd;{const _0x23d089=this['_setSuggestionData']({'id':_0x145956,'type':'formatBlock:'+_0x547bb8,'data':_0x146c06,'createdAt':new Date(),'authorId':_0x3bbdb4,'attributes':_0x4c319c});return this['_addSuggestionMarker']('formatBlock:'+_0x547bb8,_0x145956,_0x3bbdb4,this['_model']['createRange'](_0x21cb2e,_0x41a947)),_0x23d089;}}['markMultiRangeBlockFormat'](_0x428a6f,_0x56ed9e,_0x21a1c4=[],_0x868c5b=null,_0x24064b={}){_0x56ed9e['formatGroupId']||(_0x56ed9e['formatGroupId']=_0x56ed9e['commandName']);const _0x400d25=_0x428a6f[0x0];_0x56ed9e['multipleBlocks']=_0x400d25['is']('range'),_0x868c5b=_0x868c5b||Vt(_0x56ed9e);const _0x47c46d=_0x21a1c4['map'](_0x17f5dc=>Gt(_0x17f5dc,this['_model'])),_0x16d329=_0x400d25['is']('range')?_0x428a6f:_0x428a6f['map'](_0x269d6a=>Gt(_0x269d6a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x42fac3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x868c5b,'accept');return this['forceDefaultExecution'](()=>_0x42fac3(_0x16d329,_0x56ed9e,_0x24064b)),null;}_0x47c46d['push'](..._0x16d329);let _0x30f6f3=!0x0;for(const _0xc8d57f of _0x47c46d)if(!this['_rangeIsInLocalUserInsertion'](_0xc8d57f)){_0x30f6f3=!0x1;break;}if(_0x30f6f3&&'always'!==this['_trackFormatChanges']){const _0x445195=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x868c5b,'accept');return this['forceDefaultExecution'](()=>_0x445195(_0x16d329,_0x56ed9e,_0x24064b)),null;}const _0x1f66eb=this['editor']['plugins']['get']('Users')['me'];for(const _0x3bfa44 of this['getSuggestions']()){if(_0x3bfa44['author']['id']!=_0x1f66eb['id'])continue;if('formatBlock'!=_0x3bfa44['type']||_0x3bfa44['data']['formatGroupId']!=_0x56ed9e['formatGroupId'])continue;if(!Lt(_0x3bfa44,_0x24064b))continue;const _0x5a7f61=_0x3bfa44['subType']==_0x868c5b;for(let _0x37d86e=0x0;_0x37d86e<_0x16d329['length'];_0x37d86e++){const _0x1d88a4=_0x16d329[_0x37d86e];for(const _0x4ddfb0 of _0x3bfa44['getMarkers']()){const _0x8e30ff=_0x4ddfb0['getRange']();if(_0x1d88a4['isEqual'](_0x8e30ff)){_0x5a7f61?(_0x16d329['splice'](_0x37d86e,0x1),_0x37d86e--):_0x3bfa44['removeMarker'](_0x4ddfb0['name']);break;}}}}if(0x0==_0x16d329['length'])return null;const _0x122ae6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x868c5b,'join');for(const _0x4a394d of this['getSuggestions']())if(_0x4a394d['author']['id']==_0x1f66eb['id']&&'formatBlock'==_0x4a394d['type']&&_0x4a394d['data']['formatGroupId']==_0x56ed9e['formatGroupId']&&_0x4a394d['subType']==_0x868c5b&&Lt(_0x4a394d,_0x24064b)&&(_0x122ae6(_0x4a394d['getRanges'](),_0x16d329)||_0x122ae6(_0x16d329,_0x4a394d['getRanges']()))){for(const _0x3b1ea4 of _0x16d329)_0x4a394d['addRange'](_0x3b1ea4);return _0x4a394d;}const _0x226b44=_0x3792e7(),_0x2ad601=_0x1f66eb['id'],_0x4e5992='formatBlock:'+_0x868c5b,_0x3e8e30=this['_setSuggestionData']({'id':_0x226b44,'type':_0x4e5992,'data':_0x56ed9e,'createdAt':new Date(),'authorId':_0x2ad601,'attributes':_0x24064b});for(const _0x235bf9 of _0x16d329)this['_addSuggestionMarker'](_0x4e5992,_0x226b44,_0x2ad601,_0x235bf9,u['getMultiRangeId']());return _0x3e8e30;}['markDeletion'](_0x487b6b,_0x3e3f11=null,_0x5bd521={}){if(_0x487b6b['isCollapsed'])return null;const _0x302793=this['editor']['plugins']['get']('Users')['me'],_0x41c82d=new _0x39eeea(_0x487b6b['start'],_0x487b6b['end']);for(const {suggestion:_0x94c68a,meta:_0x429fec}of this['_findSuggestions'](_0x41c82d,'insertion'))if(_0x429fec['isOwn']&&!_0x429fec['isNextTo']){if(_0x94c68a['isMultiRange']){const _0x38affb=_0x94c68a['getRanges']()['filter'](_0x4c3cd6=>'$graveyard'!=_0x4c3cd6['root']['rootName']);_0x38affb['every'](_0x8a7d90=>_0x41c82d['containsRange'](_0x8a7d90,!0x0))&&_0x94c68a['discard']();if(_0x38affb['some'](_0x1ed129=>_0x1ed129['containsRange'](_0x41c82d,!0x0))){const _0x4323cd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e3f11,'accept');return this['forceDefaultExecution'](()=>_0x4323cd([_0x41c82d],null,_0x5bd521)),null;}}else{const _0x4d3b12=_0x41c82d['getIntersection'](_0x94c68a['getFirstRange']());null!==_0x4d3b12&&_0x94c68a['_onDiscard']([_0x4d3b12],null,_0x5bd521);}}if(_0x41c82d['detach'](),_0x41c82d['isCollapsed']||'$graveyard'==_0x41c82d['root']['rootName'])return null;let _0xee391b=null,_0x59a9c8=_0x41c82d['start'],_0xc3e97d=_0x41c82d['end'];const _0x5e84b6=this['_findSuggestions'](_0x41c82d,'deletion');for(const {suggestion:_0x4e8c7a,meta:_0x5deb51}of _0x5e84b6){const _0x4bd6d1=this['_model']['createRange'](_0x59a9c8,_0xc3e97d);if(_0x5deb51['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5deb51['containsRangeInObject']&&!_0x5deb51['isInsideObject'])){if(_0x4e8c7a['isMultiRange']){if(!Lt(_0x4e8c7a,_0x5bd521))continue;let _0x5785ec=!0x0;for(const _0xec45c7 of _0x4e8c7a['getRanges']()){if(_0xec45c7['containsRange'](_0x4bd6d1,!0x0))return _0x4e8c7a;_0x4bd6d1['containsRange'](_0xec45c7)||(_0x5785ec=!0x1);}_0x5785ec&&_0x4e8c7a['discard']();}else{const _0x206aa3=_0x4e8c7a['getFirstRange']();if(_0x206aa3['containsRange'](_0x4bd6d1,!0x0))return _0x4e8c7a;if(!Lt(_0x4e8c7a,_0x5bd521)){_0x4bd6d1['containsRange'](_0x206aa3)?_0x4e8c7a['removeMarkers']():_0x206aa3['containsPosition'](_0x59a9c8)?_0x59a9c8=_0x206aa3['end']:_0x206aa3['containsPosition'](_0xc3e97d)&&(_0xc3e97d=_0x206aa3['start']);continue;}_0x59a9c8=_0x59a9c8['isBefore'](_0x206aa3['start'])?_0x59a9c8:_0x206aa3['start'],_0xc3e97d=_0xc3e97d['isAfter'](_0x206aa3['end'])?_0xc3e97d:_0x206aa3['end'],_0x5bd521=Object['assign']({},_0x4e8c7a['attributes']),_0xee391b?_0x206aa3['start']['isBefore'](_0xee391b['getFirstRange']()['start'])?(_0xee391b['removeMarkers'](),_0xee391b=_0x4e8c7a):_0x4e8c7a['removeMarkers']():_0xee391b=_0x4e8c7a;}}}if(_0xee391b)return this['_setSuggestionRange'](_0xee391b,this['_model']['createRange'](_0x59a9c8,_0xc3e97d)),_0xee391b;{const _0x58a153=_0x3792e7(),_0x1f78a1=this['_model']['createRange'](_0x59a9c8,_0xc3e97d),_0x1ae693=_0x302793['id'],_0x27158f=_0x3e3f11?'deletion:'+_0x3e3f11:'deletion',_0x189312=this['_setSuggestionData']({'id':_0x58a153,'type':_0x27158f,'createdAt':new Date(),'authorId':_0x1ae693,'attributes':_0x5bd521});return this['_addSuggestionMarker'](_0x27158f,_0x58a153,_0x1ae693,_0x1f78a1),_0x189312;}}['markMultiRangeDeletion'](_0x398bc9,_0x2905fe='multi',_0x4a5cc7={}){const _0xba9661=this['editor']['plugins']['get']('Users')['me'],_0xf3335c=_0x398bc9['map'](_0x30d508=>new _0x39eeea(_0x30d508['start'],_0x30d508['end'])),_0x300c43=new Set();for(const {suggestion:_0xfac134,meta:_0x46707d}of this['_findSuggestions'](_0xf3335c,'insertion'))_0x46707d['isOwn']&&!_0x46707d['isNextTo']&&_0x300c43['add'](_0xfac134);for(const _0x98b8fd of _0x300c43)if(_0x98b8fd['isMultiRange']){const _0x2a63c6=_0x98b8fd['getRanges']();(!_0x98b8fd['attributes']||!_0x98b8fd['attributes']['skipNestingCheck'])&&(_0x2a63c6['every'](_0xa81eec=>_0xf3335c['some'](_0x4eeef7=>_0x4eeef7['containsRange'](_0xa81eec,!0x0)))&&_0x98b8fd['discard']());if(_0xf3335c['every'](_0xbc39b1=>_0x2a63c6['some'](_0x5c487f=>_0x5c487f['containsRange'](_0xbc39b1,!0x0)))){const _0x44c4ad=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2905fe,'accept');return this['forceDefaultExecution'](()=>_0x44c4ad(_0x398bc9,null,_0x4a5cc7)),null;}}else{const _0x3c707d=_0x98b8fd['getFirstRange']();_0xf3335c['some'](_0x53e718=>_0x53e718['containsRange'](_0x3c707d,!0x0))&&_0x98b8fd['discard']();if(_0xf3335c['every'](_0x443f65=>_0x3c707d['containsRange'](_0x443f65,!0x0))){const _0x4ab055=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2905fe,'accept');return this['forceDefaultExecution'](()=>_0x4ab055(_0xf3335c,null,_0x4a5cc7)),null;}}const _0x3acd5f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2905fe,'join');let _0x3613dc=null;for(const _0x114af1 of this['getSuggestions']())if(_0x114af1['author']['id']==_0xba9661['id']&&_0x114af1['isInContent']&&'deletion'==_0x114af1['type']&&_0x114af1['subType']==_0x2905fe&&Lt(_0x114af1,_0x4a5cc7)&&(_0x3acd5f(_0x114af1['getRanges'](),_0xf3335c)||_0x3acd5f(_0xf3335c,_0x114af1['getRanges']()))){if(_0x3613dc){if(_0x114af1['commentThread']&&_0x114af1['commentThread']['length'])continue;for(const _0x1877e2 of _0x114af1['getRanges']())_0x3613dc['isIntersectingWithRange'](_0x1877e2)||_0x3613dc['addRange'](_0x1877e2);_0x114af1['removeMarkers']();}else{_0x3613dc=_0x114af1;for(const _0xe8498c of _0xf3335c)_0x114af1['isIntersectingWithRange'](_0xe8498c)||_0x114af1['addRange'](_0xe8498c);}}if(_0x3613dc)return _0x3613dc;_0x300c43['clear']();for(const {suggestion:_0x150ec7,meta:_0x100463}of this['_findSuggestions'](_0xf3335c,'deletion'))_0x100463['isOwn']&&(this['_mergeNestedSuggestions']||!_0x100463['containsRangeInObject']&&!_0x100463['isInsideObject'])&&Lt(_0x150ec7,_0x4a5cc7)&&_0x300c43['add'](_0x150ec7);for(const _0x54550f of _0x300c43){const _0x107d08=_0x54550f['getRanges']();if(!_0x4a5cc7||!_0x4a5cc7['skipNestingCheck']){if(_0xf3335c['every'](_0x27c371=>_0x107d08['some'](_0x4c181f=>_0x4c181f['containsRange'](_0x27c371,!0x0))))return _0x54550f;}(!_0x54550f['attributes']||!_0x54550f['attributes']['skipNestingCheck'])&&(_0x107d08['every'](_0x58308b=>_0xf3335c['some'](_0xd37ba3=>_0xd37ba3['containsRange'](_0x58308b,!0x0)))&&_0x54550f['discard']());}const _0x14bc62=_0x3792e7(),_0x2cebfc=_0xba9661['id'],_0x46de97='deletion:'+_0x2905fe,_0x1d2189=this['_setSuggestionData']({'id':_0x14bc62,'type':_0x46de97,'createdAt':new Date(),'authorId':_0x2cebfc,'attributes':_0x4a5cc7});for(const _0x5b4b03 of _0xf3335c)_0x5b4b03['detach'](),_0x5b4b03['isCollapsed']||'$graveyard'==_0x5b4b03['root']['rootName']||this['_addSuggestionMarker'](_0x46de97,_0x14bc62,_0x2cebfc,_0x5b4b03,u['getMultiRangeId']());return _0x1d2189;}['markAttributeChange'](_0x348b5c,_0x5b450b,_0x166ded,_0x1757ae,_0x14dfef){if(_0x348b5c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x392f49=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c4a86=Array['from'](this['_suggestions']['values']())['filter'](_0x4e80f7=>'attribute'==_0x4e80f7['type']&&_0x4e80f7['data']['key']==_0x5b450b&&_0x4e80f7['isIntersectingWithRange'](_0x348b5c));if('default'===this['_trackFormatChanges']){const _0x36f7d0=this['_findSuggestions'](_0x348b5c,'insertion')['filter'](({meta:_0xf59606})=>_0xf59606['isOwn']&&!_0xf59606['isInsideObject']&&!_0xf59606['isNextTo'])['map'](({suggestion:_0x3f2517})=>_0x3f2517);_0x5c4a86['unshift'](..._0x36f7d0);}const _0x1986ce=new Map([[_0x348b5c,_0x166ded]]);for(const _0x2f1255 of _0x5c4a86){const _0x3bed79='attribute'==_0x2f1255['type']?_0x2f1255['data']['oldValue']:void 0x0,_0x456d9a=_0x2f1255['getFirstRange'](),_0x3530e1=Array['from'](_0x1986ce['keys']())['find'](_0x4c46ff=>_0x4c46ff['isIntersecting'](_0x456d9a));if(!_0x3530e1)continue;const _0x59c066=_0x3530e1['getDifference'](_0x456d9a);this['_isBlockAttribute'](_0x5b450b)&&'insertion'==_0x2f1255['type']&&0x0!=_0x59c066['length']||(_0x1986ce['delete'](_0x3530e1),_0x59c066['forEach'](_0x426517=>{_0x1986ce['set'](_0x426517,_0x166ded);}),'insertion'!=_0x2f1255['type']&&_0x3bed79!=_0x1757ae&&_0x1986ce['set'](_0x3530e1['getIntersection'](_0x456d9a),_0x3bed79));}const _0x5642b1=[];for(const [_0x13ed63,_0x376d9e]of _0x1986ce){const _0x13ca29=_0x3792e7(),_0x1e01dd={'key':_0x5b450b,'oldValue':_0x376d9e,'newValue':_0x1757ae};_0x5b450b['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':_0x5b450b});const _0x17d69f=('attribute:'+(_0x5b450b+'|'+Vt({'newValue':_0x1757ae})))['substring'](0x0,0x3c),_0xf2b204=this['_setSuggestionData']({'id':_0x13ca29,'type':_0x17d69f,'data':_0x1e01dd,'createdAt':new Date(),'authorId':_0x392f49,'attributes':_0x14dfef});_0x5642b1['push'](_0xf2b204),this['_addSuggestionMarker'](_0x17d69f,_0x13ca29,_0x392f49,_0x13ed63);}return _0x5642b1;}['enableDefaultAttributesIntegration'](_0x1a46e9){this['enableCommand'](_0x1a46e9,(_0x5e62a4,..._0xf1118b)=>{this['_recordAttributeChanges'](()=>{_0x5e62a4(..._0xf1118b);});});}['registerBlockAttribute'](_0x5f5783){this['_blockAttributeKeys']['add'](_0x5f5783);}['registerInlineAttribute'](_0x1b5403){this['_inlineAttributeKeys']['add'](_0x1b5403);}['_getAttributeKey'](_0x1b460b){return'attribute'==_0x1b460b['type']?_0x1b460b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3157d0,_0x2986ab){const _0x44fde9=_0x3157d0['getFirstMarker']();this['_model']['change'](_0x5640e3=>{_0x5640e3['updateMarker'](_0x44fde9,{'range':_0x2986ab});});}['_addThreadToSuggestion'](_0x135f02){const _0x4d1c28=_0x135f02['id'],_0x11bf63=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4d1c28)||this['_commentsRepository']['addCommentThread']({'channelId':_0x11bf63,'threadId':_0x4d1c28,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b402a=this['_commentsRepository']['getCommentThread'](_0x4d1c28);_0x2b402a['unbind']('isRemovable'),_0x2b402a['isRemovable']=!0x1,_0x135f02['commentThread']=_0x2b402a;}['_checkSuggestionCorrectness'](_0x425f95,_0x12c9a8,_0x365c80,_0x32becd){if(_0x425f95['type']!=_0x12c9a8||_0x425f95['subType']!=_0x365c80||_0x425f95['creator']['id']!=_0x32becd)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x368f48('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1d19f3,_0x3a03f0){const _0x5c6326=_0x1d19f3['getFirstRange']();if(_0x3a03f0['isEqual'](_0x5c6326))_0x1d19f3['removeMarkers']();else{if(_0x5c6326['containsRange'](_0x3a03f0)){const _0x5d87b2=this['_model']['createPositionAt'](_0x3a03f0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1d19f3,this['_model']['createRange'](_0x5c6326['start'],_0x5d87b2));const _0x15a81d=_0x3792e7(),_0x27e0b4=_0x1d19f3['creator']['id'],_0x35cf2c=_0x1d19f3['type']+':'+_0x1d19f3['subType'];this['_setSuggestionData']({'id':_0x15a81d,'type':_0x35cf2c,'createdAt':new Date(),'authorId':_0x27e0b4,'data':_0x1d19f3['data'],'attributes':_0x1d19f3['attributes']});const _0x1bce78=this['_model']['createPositionAt'](_0x3a03f0['end']['parent'],'after'),_0x2835cd=this['_model']['createRange'](_0x1bce78,_0x5c6326['end']);this['_addSuggestionMarker'](_0x35cf2c,_0x15a81d,_0x27e0b4,_0x2835cd);}else{if(_0x5c6326['containsPosition'](_0x3a03f0['start'])){const _0x4c7266=this['_model']['createPositionAt'](_0x3a03f0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1d19f3,this['_model']['createRange'](_0x5c6326['start'],_0x4c7266));}else{const _0x5be084=this['_model']['createPositionAt'](_0x3a03f0['end']['parent'],'after');this['_setSuggestionRange'](_0x1d19f3,this['_model']['createRange'](_0x5be084,_0x5c6326['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x6e8b32){for(const {suggestion:_0xb9fda9,meta:_0x39396a}of this['_findSuggestions'](_0x6e8b32,'insertion')){if(!_0x39396a['isOwn'])continue;const _0x10f2b2=_0xb9fda9['getRanges']();for(const _0x1a2edf of _0x10f2b2)if(!_0x6e8b32['getDifference'](_0x1a2edf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4879a7){const _0x2af914=this['editor']['plugins']['get']('Users')['getUser'](_0x4879a7);if(!_0x2af914)throw new _0x368f48('track-changes-user-not-found',this);return _0x2af914;}['_getExternalAuthor'](_0x51cd9f){const _0x24e159=this['editor']['plugins']['get']('Users'),_0x26dfb3=_0x451b92('external:'+_0x51cd9f),_0x2af933=_0x24e159['getUser'](_0x26dfb3);return _0x2af933||_0x24e159['addUser']({'id':_0x26dfb3,'name':_0x51cd9f});}['_createSuggestion'](_0x59e1bb,_0x30b4b0,_0x648542,_0x4e0289,_0x25c5f4){const _0x291142=this['_getAuthorFromId'](_0x4e0289),_0x1c5f28=this['_suggestionFactory']['buildSuggestion'](_0x59e1bb,_0x30b4b0,_0x648542,_0x291142,_0x25c5f4,_0x1b06a3=>{this['_updateSuggestionData'](_0x648542,{'attributes':_0x1b06a3});const _0x4152c0=this['getSuggestion'](_0x648542);this['_joinWithAdjacentSuggestions'](new Set([_0x4152c0])),this['_refreshSuggestionsChain'](new Set([_0x4152c0]));});return this['listenTo'](_0x1c5f28,'accept',()=>{this['_updateSuggestionData'](_0x648542,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c5f28,'discard',()=>{this['_updateSuggestionData'](_0x648542,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x648542,_0x1c5f28),this['_suggestionState']['set'](_0x1c5f28,'notReady'),_0x1c5f28;}['_splitMarkerName'](_0x3bb117){const _0x35768f=_0x3bb117['split'](':');return{'group':_0x35768f[0x0],'type':_0x35768f[0x1],'subType':_0x35768f['length']>=0x5?_0x35768f[0x2]:null,'id':_0x35768f['length']<0x5?_0x35768f[0x2]:_0x35768f[0x3],'authorId':_0x35768f['length']<0x5?_0x35768f[0x3]:_0x35768f[0x4],'markerCount':0x6==_0x35768f['length']?_0x35768f[0x5]:null};}['_breakSuggestionMarker'](_0x4ac7f0,_0x5592f6,_0x29742f){const _0x5558a1=_0x4ac7f0['getFirstRange'](),_0x3a6427=_0x5558a1['start'],_0x4aa91d=_0x5558a1['end'];this['_setSuggestionRange'](_0x4ac7f0,this['_model']['createRange'](_0x3a6427,_0x5592f6));const _0x40affe=_0x3792e7(),_0x2de4ad=_0x4ac7f0['creator']['id'],_0x2be50c=_0x4ac7f0['type']+(_0x4ac7f0['subType']?':'+_0x4ac7f0['subType']:'');this['_setSuggestionData']({'id':_0x40affe,'type':_0x2be50c,'createdAt':new Date(),'authorId':_0x2de4ad,'originalSuggestionId':_0x4ac7f0['id'],'attributes':_0x4ac7f0['attributes'],'data':_0x4ac7f0['data']});const _0x220bcd=this['_getAttributeKey'](_0x4ac7f0);('formatBlock'==_0x4ac7f0['type']||_0x220bcd&&this['_isBlockAttribute'](_0x220bcd))&&(_0x29742f=this['_model']['createPositionBefore'](_0x29742f['parent'])),this['_addSuggestionMarker'](_0x2be50c,_0x40affe,_0x2de4ad,this['_model']['createRange'](_0x29742f,_0x4aa91d));}['_findSuggestions'](_0x3eae59,_0x2f6e38=null){const _0x2e3834=[],_0x1829d2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3eae59)||(_0x3eae59=[_0x3eae59]);for(const _0x147a6a of this['getSuggestions']()){if(!_0x147a6a['isInContent'])continue;if(_0x2f6e38&&_0x147a6a['type']!=_0x2f6e38)continue;let _0x491f56=!0x1;for(const _0x19afff of _0x147a6a['getRanges']()){for(const _0x1e6c0d of _0x3eae59){const _0x253a05=_0x1e6c0d['start']['isEqual'](_0x19afff['end'])||_0x1e6c0d['end']['isEqual'](_0x19afff['start']);if(_0x253a05||_0x1e6c0d['getIntersection'](_0x19afff)){const _0x40afb6=_0x1e6c0d['containsRange'](_0x19afff)&&Rt(this['_model']['schema'],_0x19afff['start'],_0x1e6c0d),_0x411ef0=_0x19afff['containsRange'](_0x1e6c0d)&&Rt(this['_model']['schema'],_0x1e6c0d['start'],_0x19afff);_0x2e3834['push']({'suggestion':_0x147a6a,'meta':{'isOwn':_0x1829d2==_0x147a6a['author'],'isNextTo':_0x253a05,'isInsideObject':_0x40afb6,'containsRangeInObject':_0x411ef0}}),_0x491f56=!0x0;break;}}if(_0x491f56)break;}}return _0x2e3834;}['_addSuggestionMarker'](_0x42f44b,_0x471d1c,_0x360ab7,_0x5a731a,_0x103bf7){this['_model']['change'](_0x578798=>{let _0x568147='suggestion:'+_0x42f44b+':'+_0x471d1c+':'+_0x360ab7;_0x103bf7&&(_0x568147=_0x568147+':'+_0x103bf7),_0x578798['addMarker'](_0x568147,{'range':_0x5a731a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x188775){const _0x12ac91=_0x188775['previous'],_0x16568c=_0x188775['next'];_0x188775['previous']=null,_0x188775['next']=null,null!=_0x12ac91&&_0x12ac91['next']==_0x188775&&(_0x12ac91['next']=_0x16568c),null!=_0x16568c&&_0x16568c['previous']==_0x188775&&(_0x16568c['previous']=_0x12ac91),'ready'==this['_suggestionState']['get'](_0x188775)&&(this['_suggestionState']['set'](_0x188775,'removed'),this['fire']('suggestionUnloaded',_0x188775,_0x12ac91,_0x16568c));}['_setSuggestionData'](_0x57171f){const _0x463801=_0x57171f['id'],_0x15756a=this['addSuggestionData'](_0x57171f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xc9be8e=this['editor']['plugins']['get']('PendingActions'),_0x469aa3=_0x15756a['hasComments'],_0x2e1082=_0x15756a['subType']?_0x15756a['type']+':'+_0x15756a['subType']:_0x15756a['type'],_0x319d1e=this['editor']['locale'],_0x4d3886=_0xc9be8e['add'](o(_0x319d1e,'PENDING_ACTION_SUGGESTION')),_0x5d9385={'id':_0x463801,'type':_0x2e1082,'hasComments':_0x469aa3,'data':_0x57171f['data']||null,'originalSuggestionId':_0x57171f['originalSuggestionId']||null,'attributes':_0x15756a['attributes']};this['_adapter']['addSuggestion'](_0x5d9385)['then'](_0x4cb427=>{_0x15756a['_saved']=!0x0,_0xc9be8e['remove'](_0x4d3886),_0x4cb427&&_0x4cb427['createdAt']&&(this['_suggestions']['get'](_0x463801)['createdAt']=_0x4cb427['createdAt']);})['catch'](_0x246217=>{throw _0xb90762('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x15756a['discard']();}),_0x15756a['stopListening'](),this['_suggestions']['delete'](_0x15756a['id']),this['_suggestionState']['delete'](_0x15756a),_0x246217;});}return _0x15756a;}['_isBlockAttribute'](_0x3f609b){return this['_blockAttributeKeys']['has'](_0x3f609b);}['_updateSuggestionData'](_0x252e7c,_0x54d9e4){const _0x351c03=this['editor']['plugins']['get']('PendingActions'),_0x23eb5b=this['getSuggestion'](_0x252e7c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x23eb5b['_saved']){const _0x2db0dd=_0x351c03['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x252e7c,_0x54d9e4)['then'](()=>{_0x351c03['remove'](_0x2db0dd);});}else _0x23eb5b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x252e7c,_0x54d9e4);});}}['_getSuggestionData'](_0x16d1c9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x368f48('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x16d1c9);}['_handleNewSuggestionMarker'](_0x19cb42){const {id:_0x42b587,type:_0x16f1d2,subType:_0xa3f4fe,authorId:_0x2f8400}=this['_splitMarkerName'](_0x19cb42),_0x470e0c=this['_suggestions']['get'](_0x42b587)||this['_createSuggestion'](_0x16f1d2,_0xa3f4fe,_0x42b587,_0x2f8400,{});switch(this['_checkSuggestionCorrectness'](_0x470e0c,_0x16f1d2,_0xa3f4fe,_0x2f8400),this['_suggestionState']['get'](_0x470e0c)){case'notReady':this['_getSuggestionData'](_0x42b587)['then'](_0x5096b6=>{let _0x593cb3=Promise['resolve']();_0x5096b6['hasComments']&&(_0x593cb3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x42b587})),_0x593cb3['then'](()=>{this['addSuggestionData'](_0x5096b6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x470e0c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x42b587,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x470e0c,'ready'),this['fire']('suggestionLoaded',_0x470e0c);break;case'ready':this['fire']('suggestionChanged',_0x470e0c);}return _0x470e0c['addMarkerName'](_0x19cb42),_0x470e0c;}['_refreshSuggestionsChain'](_0x3fca59){const _0x2db96a=Array['from'](_0x3fca59),_0x490025=_0x2db96a['filter'](_0x2c8e5a=>'attribute'==_0x2c8e5a['type']);this['_refreshAttributeSuggestionsChain'](_0x490025);const _0x27fec6=_0x2db96a['filter'](_0x3b1aa4=>!_0x3b1aa4['isMultiRange']&&'attribute'!=_0x3b1aa4['type']),_0x1abe2a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30feba=>!_0x30feba['isMultiRange']&&'attribute'!=_0x30feba['type']),_0x482480=_0x1abe2a['filter'](_0x3ade40=>!_0x3fca59['has'](_0x3ade40)),_0x58fc42=new Map(_0x1abe2a['map'](_0x3da23a=>[_0x3da23a,this['_suggestionFactory']['getSuggestionCallback'](_0x3da23a['type'],_0x3da23a['subType'],'chain')])),_0x519824=new Map(_0x1abe2a['map'](_0x29ffed=>[_0x29ffed,_0x29ffed['getFirstRange']()])),_0x150cd0=new Set(),_0x6c9d3f=new Set();for(let _0x2e8c08=0x0;_0x2e8c08<_0x27fec6['length'];_0x2e8c08++)_0x15ac26(_0x27fec6[_0x2e8c08],_0x27fec6,_0x2e8c08+0x1);for(let _0x1bbf44=0x0;_0x1bbf44<_0x27fec6['length'];_0x1bbf44++)_0x15ac26(_0x27fec6[_0x1bbf44],_0x482480,0x0);const _0xd1cdb=new Set();for(let _0x2e9072=0x0;_0x2e9072<_0x27fec6['length'];_0x2e9072++){const _0x550c52=_0x27fec6[_0x2e9072];!_0x6c9d3f['has'](_0x550c52)&&_0x550c52['previous']&&(_0xd1cdb['add'](_0x550c52['previous']),_0x550c52['previous']['next']===_0x550c52&&(_0x550c52['previous']['next']=null),_0x550c52['previous']=null),!_0x150cd0['has'](_0x550c52)&&_0x550c52['next']&&(_0xd1cdb['add'](_0x550c52['next']),_0x550c52['next']['previous']===_0x550c52&&(_0x550c52['next']['previous']=null),_0x550c52['next']=null);}function _0x15ac26(_0x1413e7,_0x66061b,_0x320519){for(let _0xe71cb9=_0x320519;_0xe71cb9<_0x66061b['length'];_0xe71cb9++){const _0x1d9ab8=_0x391e6d(_0x1413e7,_0x66061b[_0xe71cb9]);_0x1d9ab8&&(_0x1d9ab8[0x0]['next']=_0x1d9ab8[0x1],_0x1d9ab8[0x1]['previous']=_0x1d9ab8[0x0],_0x150cd0['add'](_0x1d9ab8[0x0]),_0x6c9d3f['add'](_0x1d9ab8[0x1]));}}function _0x391e6d(_0x45de05,_0x5b6eb0){if(_0x45de05['author']['id']!==_0x5b6eb0['author']['id'])return null;const _0x5965de=_0x58fc42['get'](_0x45de05)(_0x45de05,_0x5b6eb0,_0x519824['get'](_0x45de05),_0x519824['get'](_0x5b6eb0));if(!_0x5965de)return null;return _0x58fc42['get'](_0x5b6eb0)(_0x45de05,_0x5b6eb0,_0x519824['get'](_0x45de05),_0x519824['get'](_0x5b6eb0))?_0x5965de[0x1]['commentThread']&&_0x5965de[0x1]['commentThread']['length']?null:_0x5965de:null;}_0xd1cdb['size']&&this['_refreshSuggestionsChain'](_0xd1cdb);}['_refreshAttributeSuggestionsChain'](_0x2b52f3){if(0x0==_0x2b52f3['length'])return;const _0x198cff=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x138f4c=>'attribute'==_0x138f4c['type']&&_0x138f4c['_isDataLoaded']),_0x5ba89f=[],_0x21e4f9=new Map();for(const _0x4004f1 of _0x198cff){const _0x2fbb94=_0x451b92(_0x4004f1['attributes']);_0x21e4f9['has'](_0x2fbb94)||(_0x21e4f9['set'](_0x2fbb94,_0x5ba89f['length']),_0x5ba89f['push']([]));const _0x2eb9d2=_0x21e4f9['get'](_0x2fbb94);_0x5ba89f[_0x2eb9d2]['push'](_0x4004f1);}!(function(){_0x5ba89f['sort']((_0x3245d6,_0xa9d724)=>{const _0x1325af=_0x3245d6[0x0]['createdAt'],_0x273deb=_0xa9d724[0x0]['createdAt'];return _0x1325af==_0x273deb?_0x3245d6[0x0]['attributes']['groupId']<_0xa9d724[0x0]['attributes']['groupId']?-0x1:0x1:_0x1325af<_0x273deb?-0x1:0x1;});for(const _0x532d4d of _0x5ba89f)_0x532d4d['sort']((_0x450e2c,_0x20c36a)=>_0x450e2c['id']<_0x20c36a['id']?-0x1:0x1);}());for(let _0x211a53=0x0;_0x211a53<_0x5ba89f['length'];_0x211a53++){if(0x0==_0x5ba89f[_0x211a53]['length'])continue;const _0x2c7bab=[];for(let _0x4f3cbd=_0x211a53+0x1;_0x4f3cbd<_0x5ba89f['length'];_0x4f3cbd++)0x0!=_0x5ba89f[_0x4f3cbd]['length']&&_0x3b0717(_0x5ba89f[_0x211a53],_0x5ba89f[_0x4f3cbd])&&_0x2c7bab['push'](_0x4f3cbd);for(const _0x1ba105 of _0x2c7bab)_0x5ba89f[_0x211a53]=_0x5ba89f[_0x211a53]['concat'](_0x5ba89f[_0x1ba105]),_0x5ba89f[_0x1ba105]=[];}for(const _0x25e067 of _0x5ba89f)for(let _0x18a8f6=0x0;_0x18a8f6<_0x25e067['length'];_0x18a8f6++)_0x25e067[_0x18a8f6]['next']=_0x25e067[_0x18a8f6+0x1]||null;for(const _0x2ce70b of _0x5ba89f)for(let _0x1d9a23=0x0;_0x1d9a23<_0x2ce70b['length'];_0x1d9a23++)_0x2ce70b[_0x1d9a23]['previous']=_0x2ce70b[_0x1d9a23-0x1]||null;function _0x3b0717(_0x209f1f,_0x22e60f){if(_0x209f1f[0x0]['attributes']['groupId']!==_0x22e60f[0x0]['attributes']['groupId']&&_0x209f1f[0x0]['author']!==_0x22e60f[0x0]['author'])return!0x1;if(!function(_0x2acaef,_0x57a091){if(!_0x2acaef['hasComments']&&!_0x57a091['hasComments'])return!0x0;if(_0x2acaef['hasComments']&&_0x57a091['hasComments'])return!0x1;if(_0x2acaef['hasComments']&&_0x57a091['createdAt']<_0x2acaef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x57a091['hasComments']&&_0x2acaef['createdAt']<_0x57a091['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x209f1f[0x0],_0x22e60f[0x0]))return!0x1;const _0xf6a9c0=Bt(_0x209f1f[0x0]['attributes'],'groupId'),_0x5bc7ef=Bt(_0x22e60f[0x0]['attributes'],'groupId');if(!_0x2de290(_0xf6a9c0,_0x5bc7ef))return!0x1;return!!_0x209f1f['every'](_0x26471a=>_0x22e60f['some'](_0x17cb87=>_0x26471a['getFirstRange']()['isEqual'](_0x17cb87['getFirstRange']())))&&_0x22e60f['every'](_0x20b710=>_0x209f1f['some'](_0x438568=>_0x20b710['getFirstRange']()['isEqual'](_0x438568['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x211423){const _0x504771=Array['from'](_0x211423),_0x2eb3bc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x8493c4=_0x2eb3bc['filter'](_0x2c70a2=>!_0x211423['has'](_0x2c70a2)),_0x55d670=new Map(_0x504771['map'](_0x3ba4c3=>[_0x3ba4c3,this['_suggestionFactory']['getSuggestionCallback'](_0x3ba4c3['type'],_0x3ba4c3['subType'],'join')])),_0x12b9c1=new Map(_0x2eb3bc['map'](_0x486cbc=>[_0x486cbc,_0x486cbc['getRanges']()]));for(let _0x1bdc10=0x0;_0x1bdc10<_0x504771['length'];_0x1bdc10++){if(_0x2fa805(this,_0x504771[_0x1bdc10],_0x504771,_0x1bdc10+0x1))return!0x0;}for(let _0x4c98a1=0x0;_0x4c98a1<_0x504771['length'];_0x4c98a1++){if(_0x2fa805(this,_0x504771[_0x4c98a1],_0x8493c4,0x0))return!0x0;}return!0x1;function _0x2fa805(_0x3aa10b,_0x11d001,_0x3984ba,_0x53c49c){for(let _0x3f044f=_0x53c49c;_0x3f044f<_0x3984ba['length'];_0x3f044f++){const _0x41c7f1=_0x3984ba[_0x3f044f];if(_0x41c7f1['type']!==_0x11d001['type']||_0x41c7f1['author']['id']!==_0x11d001['author']['id']||_0x41c7f1['subType']!==_0x11d001['subType'])continue;if(!Pt(_0x11d001,_0x41c7f1,['groupId']))continue;if('attribute'==_0x11d001['type']&&_0x11d001['data']['oldValue']!=_0x41c7f1['data']['oldValue'])continue;if('attribute'==_0x11d001['type']&&_0x3aa10b['_isBlockAttribute'](_0x11d001['data']['key']))continue;if('formatBlock'==_0x11d001['type']){const _0x5d2fa3=_0x3aa10b['editor']['model'],_0x3b2fe8=_0x11d001['getContainedElement']();if(_0x3b2fe8&&(_0x5d2fa3['schema']['isObject'](_0x3b2fe8)||_0x5d2fa3['schema']['isLimit'](_0x3b2fe8)))continue;}const _0x161ecf=_0x55d670['get'](_0x11d001),_0x4ce4f7=_0x12b9c1['get'](_0x11d001),_0xf10fbe=_0x12b9c1['get'](_0x41c7f1),_0x578160=_0x11d001['commentThread']&&_0x11d001['commentThread']['length'],_0x494ab3=_0x41c7f1['commentThread']&&_0x41c7f1['commentThread']['length'];if(!_0x578160&&_0x161ecf(_0xf10fbe,_0x4ce4f7))return _0x3aa10b['_joinSuggestions'](_0x41c7f1,_0x11d001),_0x12b9c1['delete'](_0x11d001),!0x0;if(!_0x494ab3&&_0x161ecf(_0x4ce4f7,_0xf10fbe))return _0x3aa10b['_joinSuggestions'](_0x11d001,_0x41c7f1),_0x12b9c1['delete'](_0x41c7f1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2e91bc,_0x51f9fb){if(_0x2e91bc['isMultiRange']){for(const _0x2aa121 of _0x51f9fb['getRanges']())_0x2e91bc['addRange'](_0x2aa121);}else{const _0x5a4691=_0x51f9fb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2e91bc,this['_model']['createRange'](_0x2e91bc['getFirstRange']()['start'],_0x5a4691));}_0x51f9fb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4f27bf,_0x2c9648){const _0x1d6ccd=_0x4f27bf['startsWith']('format')||_0x4f27bf['startsWith']('attribute')?'FORMATTING':_0x4f27bf['toUpperCase']();return o(this['editor']['locale'],_0x2c9648+'_'+_0x1d6ccd+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5eedba=this['editor'];if(!_0x5eedba['ui'])return;const {ariaLiveAnnouncer:_0x46492c}=_0x5eedba['ui'];_0x31d5e2(this['_model'],({left:_0x4cbcf6,entered:_0x4f50ad})=>{for(const _0x3400a of _0x4cbcf6){const {group:_0x584fb6,type:_0x4976ad}=this['_splitMarkerName'](_0x3400a['name']);if('suggestion'===_0x584fb6){_0x46492c['announce'](this['_getMarkerAnnouncementText'](_0x4976ad,'LEAVE'));break;}}for(const _0x8ca338 of _0x4f50ad){const {group:_0x4ba7a3,type:_0x18cb0b}=this['_splitMarkerName'](_0x8ca338['name']);if('suggestion'===_0x4ba7a3){_0x46492c['announce'](this['_getMarkerAnnouncementText'](_0x18cb0b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x306997){if(this['_recordAttributeSuggestions'])return!0x1;const _0x48c718=this['editor'],_0x1845bb=_0x48c718['model']['document']['differ']['getChanges']();if(0x0==_0x1845bb['length'])return!0x1;const _0x972914=[],_0x201314=_0x1845bb['filter'](_0x3cddab=>'attribute'==_0x3cddab['type']),_0x30d373=_0x1845bb['filter'](_0x4cdd1a=>'insert'==_0x4cdd1a['type']&&'$text'!=_0x4cdd1a['name']),_0x1e19f6=_0x1845bb['filter'](_0x3d425b=>'remove'==_0x3d425b['type']&&'$text'!=_0x3d425b['name']);for(const _0x25b980 of _0x201314)_0x972914['push']({'key':_0x25b980['attributeKey'],'newValue':_0x25b980['attributeNewValue'],'oldValue':_0x25b980['attributeOldValue'],'range':Ot(_0x25b980['range'],_0x48c718['model'])});for(const _0x25623e of _0x30d373){const _0x1f2254=_0x1e19f6['find'](_0x2c3424=>_0x2c3424['position']['isEqual'](_0x25623e['position']));_0x1f2254&&_0x972914['push']({'key':m,'newValue':_0x25623e['name'],'oldValue':_0x1f2254['name'],'range':_0x48c718['model']['createRangeOn'](_0x25623e['position']['nodeAfter'])});}return 0x0!=_0x972914['length']&&this['_reduceExistingSuggestions'](_0x306997,_0x972914);}['_processAttributeSuggestions'](_0x57ff9e){let _0x21c0f4=!0x1;const _0x517c06=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59f909=>_0x59f909['data']['newRange']&&_0x59f909['name']['startsWith']('suggestion:attribute:'));for(const _0x2e4127 of _0x517c06){const {subType:_0x74c27b,id:_0x9ea2b5}=this['_splitMarkerName'](_0x2e4127['name']),_0x3fb8ba=_0x74c27b['split']('|')[0x0];for(const _0x45a669 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x45a669['id']!=_0x9ea2b5&&'attribute'==_0x45a669['type']&&_0x45a669['data']&&_0x45a669['data']['key']==_0x3fb8ba&&_0x45a669['getFirstRange']()['isIntersecting'](_0x2e4127['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x45a669,_0x2e4127['data']['newRange'],_0x57ff9e),_0x21c0f4=!0x0);}return _0x21c0f4;}['_recordAttributeChanges'](_0x4a4d5b){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4a4d5b();}['_isRegisteredAttribute'](_0x58c78c){const _0x587dc5=this['_isBlockAttribute'](_0x58c78c),_0x2a89ae=this['_inlineAttributeKeys']['has'](_0x58c78c);return _0x587dc5||_0x2a89ae;}['_reduceExistingSuggestions'](_0x471d62,_0x265713){if(0x0==_0x265713['length'])return!0x1;let _0x213f11=!0x1;for(const _0x5afb2e of _0x265713){const _0x15e53f=this['_findSuggestions'](_0x5afb2e['range'],'attribute')['filter'](_0xd99a89=>!_0xd99a89['meta']['isNextTo'])['map'](_0x5180c6=>_0x5180c6['suggestion']),_0x32e522=_0x451b92({'newValue':_0x5afb2e['newValue']});_0x15e53f['filter'](_0xcd09ac=>{const [_0x315e96,_0x48acaf]=_0xcd09ac['subType']['split']('|');return _0x315e96==_0x5afb2e['key']&&_0x48acaf!=_0x32e522;})['forEach'](_0x41eb40=>{this['_reduceSuggestionAttributeRange'](_0x41eb40,_0x5afb2e['range'],_0x471d62),_0x213f11=!0x0;});}return _0x213f11;}['_reduceSuggestionAttributeRange'](_0x4746ac,_0x230687,_0x299556){const _0x4d90ec=_0x4746ac['getFirstRange']()['getDifference'](_0x230687);0x0!==_0x4d90ec['length']?0x1!==_0x4d90ec['length']?this['_breakSuggestionMarker'](_0x4746ac,_0x230687['start'],_0x230687['end']):this['_setSuggestionRange'](_0x4746ac,_0x4d90ec[0x0]):_0x299556['removeMarker'](_0x4746ac['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3e5148){this['_editor']=_0x3e5148,this['_model']=_0x3e5148['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x44818b,_0xe4369c,_0x5ec87a,_0x25f3fe,_0x37bda9,_0x432550){return new u(this['_model'],{'type':_0x44818b,'subType':_0xe4369c,'id':_0x5ec87a,'author':_0x25f3fe,'creator':_0x25f3fe,'attributes':_0x37bda9,'onAttributesChange':_0x432550,'onAccept':(..._0x141383)=>this['getSuggestionCallback'](_0x44818b,_0xe4369c,'accept')(..._0x141383),'onDiscard':(..._0x227c8a)=>this['getSuggestionCallback'](_0x44818b,_0xe4369c,'discard')(..._0x227c8a)});}['registerCustomCallback'](_0x4e8311,_0x2862f8,_0x1fde9d,_0x1a601a){const _0x241871=_0x4e8311+':'+_0x2862f8+':'+_0x1fde9d;this['_customCallbacks']['set'](_0x241871,_0x1a601a);}['getSuggestionCallback'](_0x4e17b3,_0x1b4697,_0x412bc6){const _0x3a5df9=_0x4e17b3+':'+_0x1b4697+':'+_0x412bc6;return this['_customCallbacks']['get'](_0x3a5df9)||this['_defaultCallbacks']['get'](_0x4e17b3+':'+_0x412bc6);}['_registerDefaultCallbacks'](){const _0x132043=()=>!0x1,_0x91ea9e=_0x58c31f=>{_0x58c31f['sort']((_0x238bc9,_0x2a9309)=>_0x238bc9['start']['isBefore'](_0x2a9309['start'])?0x1:-0x1),this['_model']['change'](_0x441a11=>{for(const _0x1eb015 of _0x58c31f){let _0x4b734e;_0x4b734e=_0x1eb015['end']['isAtEnd']&&_0x1eb015['end']['parent']==_0x1eb015['start']['nodeAfter']?_0x441a11['createSelection'](_0x1eb015['start']['nodeAfter'],'on'):_0x441a11['createSelection'](_0x1eb015),this['_model']['deleteContent'](_0x4b734e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3f84b2=(_0x2372f3,_0x145b90)=>{_0x145b90&&this['_model']['change'](_0x5cd25f=>{const {commandName:_0x1c9d4d,commandParams:_0x4b25ac=[]}=_0x145b90,_0x3a8465=_0x2372f3['map'](_0x1769d3=>(Tt(_0x1769d3)&&(_0x1769d3=this['_model']['createRange'](_0x1769d3['end'])),_0x1769d3))['filter'](_0x3bfa20=>'$graveyard'!==_0x3bfa20['root']['rootName']);if(_0x3a8465['length']<0x1)return;const _0x462898=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34c316=>_0x39eeea['fromRange'](_0x34c316));_0x5cd25f['setSelection'](_0x3a8465);for(const _0x18255e of this['_editor']['commands']['commands']())_0x18255e['refresh']();_0x4b25ac['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c9d4d,..._0x4b25ac);const _0x12a7e3=_0x462898['filter'](_0x12c980=>'$graveyard'!=_0x12c980['root']['rootName']);_0x12a7e3['length']>0x0&&_0x5cd25f['setSelection'](_0x12a7e3);for(const _0x5a64bf of _0x462898)_0x5a64bf['detach']();});},_0x4ff058=(_0x39116b,_0x445319)=>0x1==_0x39116b['length']&&0x1==_0x445319['length']&&_0x39116b[0x0]['end']['isEqual'](_0x445319[0x0]['start']),_0x1cc46b=(_0x284064,_0x4a093a,_0x536f97,_0x1e8f56)=>Ft(_0x284064,_0x4a093a,_0x536f97,_0x1e8f56,this['_model'])?[_0x284064,_0x4a093a]:Ft(_0x4a093a,_0x284064,_0x1e8f56,_0x536f97,this['_model'])?[_0x4a093a,_0x284064]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x132043),this['_defaultCallbacks']['set']('insertion:discard',_0x91ea9e),this['_defaultCallbacks']['set']('insertion:join',_0x4ff058),this['_defaultCallbacks']['set']('insertion:chain',_0x1cc46b),this['_defaultCallbacks']['set']('deletion:accept',_0x91ea9e),this['_defaultCallbacks']['set']('deletion:discard',_0x132043),this['_defaultCallbacks']['set']('deletion:join',_0x4ff058),this['_defaultCallbacks']['set']('deletion:chain',_0x1cc46b),this['_defaultCallbacks']['set']('formatInline:accept',_0x3f84b2),this['_defaultCallbacks']['set']('formatInline:discard',_0x132043),this['_defaultCallbacks']['set']('formatInline:join',_0x4ff058),this['_defaultCallbacks']['set']('formatInline:chain',_0x132043),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3f84b2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x132043),this['_defaultCallbacks']['set']('formatBlock:join',_0x4ff058),this['_defaultCallbacks']['set']('formatBlock:chain',_0x132043),this['_defaultCallbacks']['set']('attribute:accept',_0x132043),this['_defaultCallbacks']['set']('attribute:discard',(_0x37e20f,_0x369f61)=>{if(!_0x369f61)return;const _0xb23f96=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1cce3c=>{if(_0x369f61['key']==m)for(const _0x5223ab of _0x37e20f){const _0x466be8=_0x5223ab['start']['nodeAfter'],_0x223de0=_0x369f61['oldValue'];_0x1cce3c['rename'](_0x466be8,_0x223de0);}else{if(_0xb23f96['_isBlockAttribute'](_0x369f61['key'])){for(const _0x2481ed of _0x37e20f)void 0x0!==_0x369f61['oldValue']?_0x1cce3c['setAttribute'](_0x369f61['key'],_0x369f61['oldValue'],_0x2481ed['start']['nodeAfter']):_0x1cce3c['removeAttribute'](_0x369f61['key'],_0x2481ed['start']['nodeAfter']);}else{for(const _0xa01f2e of _0x37e20f)_0x369f61['oldValue']?_0x1cce3c['setAttribute'](_0x369f61['key'],_0x369f61['oldValue'],_0xa01f2e):_0x1cce3c['removeAttribute'](_0x369f61['key'],_0xa01f2e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4ff058);}}function Rt(_0x1d4c1c,_0x4e66d8,_0x12b906){for(const _0xd34cfe of _0x4e66d8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xd34cfe['root']==_0xd34cfe)return!0x1;if(!_0x12b906['containsItem'](_0xd34cfe))return!0x1;if(_0x1d4c1c['isObject'](_0xd34cfe)||_0x1d4c1c['isLimit'](_0xd34cfe))return!0x0;}return!0x1;}function Tt(_0x2051cf){return _0x2051cf['end']['parent']==_0x2051cf['start']['nodeAfter']&&_0x2051cf['end']['isAtStart'];}function Et(_0x1c488e,_0x1ad4de,_0xff128f,_0xc3656b){const _0xb22717=_0x880de2=>!_0x880de2['item']['is']('$textProxy')&&!_0xc3656b['isObject'](_0x880de2['item']),_0x33cb92=_0x1c488e['start']['getLastMatchingPosition'](_0xb22717),_0x40e381=_0x1c488e['end']['getLastMatchingPosition'](_0xb22717,{'direction':'backward'});return(!_0x1c488e['start']['isEqual'](_0x33cb92)||!_0x1c488e['end']['isEqual'](_0x40e381))&&(_0x33cb92['isBefore'](_0x40e381)?_0xff128f['updateMarker'](_0x1ad4de,{'range':_0xff128f['createRange'](_0x33cb92,_0x40e381)}):_0xff128f['removeMarker'](_0x1ad4de),!0x0);}function Vt(_0x226d1d){return _0x451b92(_0x226d1d);}function Ut(_0x30a21d){const _0x3ae9e6=_0x30a21d['start']['nodeAfter'];return _0x3ae9e6&&_0x3ae9e6['is']('element');}function Ot(_0x57de14,_0x38b43f){return null==_0x57de14['end']['nodeBefore']&&_0x57de14['end']['parent']==_0x57de14['start']['nodeAfter']?Gt(_0x57de14['start']['nodeAfter'],_0x38b43f):_0x57de14;}function Gt(_0x3b4558,_0x495216){const _0x429bfe=_0x495216['schema']['isObject'](_0x3b4558)||_0x495216['schema']['isSelectable'](_0x3b4558);return _0x495216['createRange'](_0x495216['createPositionAt'](_0x3b4558,'before'),_0x429bfe?_0x495216['createPositionAfter'](_0x3b4558):_0x495216['createPositionAt'](_0x3b4558,'end'));}function Ft(_0x2eed8b,_0x5ae7b7,_0x41e578,_0x633b7d,_0x168a3c){if(!Pt(_0x2eed8b,_0x5ae7b7))return!0x1;if(_0x41e578['end']['isEqual'](_0x633b7d['start']))return!0x0;if(_0x2eed8b['type']!=_0x5ae7b7['type'])return!0x1;if(!_0x41e578['end']['isTouching'](_0x633b7d['start']))return!0x1;const _0x4ad399=_0x168a3c['createRange'](_0x41e578['end'],_0x633b7d['start'])['getWalker']();for(const _0x2ac085 of _0x4ad399)if(['elementStart','elementEnd']['includes'](_0x2ac085['type'])&&_0x168a3c['schema']['isLimit'](_0x2ac085['item']))return!0x1;return!0x0;}function Pt(_0x4bb472,_0xdada8c,_0x30f298=[]){return!(!_0x4bb472['_isDataLoaded']||!_0xdada8c['_isDataLoaded'])&&_0x2de290(Bt(_0x4bb472['attributes'],_0x30f298),Bt(_0xdada8c['attributes'],_0x30f298));}function Lt(_0x56e933,_0x368943){const _0x2fd884=Ht(_0x56e933['attributes']),_0x29dd4a=Ht(_0x368943);if(!_0x56e933['_isDataLoaded'])return!0x1;for(const _0x42fdd3 of Object['keys'](_0x29dd4a))if(!_0x2de290(_0x2fd884[_0x42fdd3],_0x29dd4a[_0x42fdd3]))return!0x1;return!0x0;}function Ht(_0x1cb335){const _0x19192f=Object['assign']({},_0x1cb335);return delete _0x19192f['skipNestingCheck'],delete _0x19192f['tablePasteChainId'],_0x19192f;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x58e1c3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4c9dc3,_0x20ec56,_0x55966d,_0x36f218){super(),this['model']=_0x20ec56,this['view']=_0x55966d,this['commentThreadController']=_0x36f218,this['_editor']=_0x4c9dc3,this['_acceptCommand']=_0x4c9dc3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4c9dc3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2de589,_0x1fe75d)=>_0x2de589||_0x1fe75d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3abc6c=>_0x3abc6c&&this['_editor']['model']['canEditAt'](_0x20ec56['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x6e06cb=>_0x6e06cb&&this['_editor']['model']['canEditAt'](_0x20ec56['getRanges']())),this['_pendingAction']=null,_0x55966d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x55966d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x55966d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x55966d,'change:isDirty',()=>{_0x55966d['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 _0x5108bb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5108bb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xe59a68{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x30d2ca,_0x35cfd2,_0x4b1a1f,_0x4fc502){super(_0x30d2ca),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x35cfd2['authoredAt']),this['bind']('authoredAt')['to'](_0x35cfd2),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x35cfd2,this['_localUser']=_0x4b1a1f,this['_config']=_0x4fc502,_0x4fc502['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x459abc}=this['_config'];this['commentsListView']=new _0x459abc(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',_0x35074e=>_0x35074e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x36aeec,_0x2b85f7)=>_0x36aeec||!!_0x2b85f7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5a28f2}=this['_config'],_0x4d73f3=new _0x5a28f2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x21a31b=_0x4d73f3['commentInputView'];return _0x4d73f3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x21a31b,'value',(_0x44698b,_0x54c650,_0x54ab18)=>!!_0x54ab18||_0x44698b&&!_0x54c650),_0x21a31b['on']('submit',(_0x45f90e,_0x41a519)=>{this['fire']('addComment',_0x41a519),_0x21a31b['editor']['setData']('');}),_0x21a31b['on']('cancel',()=>this['focus']()),_0x21a31b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4d73f3;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5a9f97,_0x4cc560,_0x15a0a8,_0x521291){super(_0x5a9f97,_0x4cc560,_0x15a0a8,_0x521291),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x488e0d=>_0x488e0d&&_0x488e0d[0x0]?_0x488e0d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2ca80d,_0x348f26)=>{let _0x542afd='';for(const _0x260ba9 of _0x2ca80d)_0x542afd+='<p>'+ds(_0x260ba9['content'],_0x260ba9['color'])+'</p>';return _0x348f26?_0x542afd:_0x311db1(_0x542afd,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5a9f97,'Accept\x20suggestion'),_0x238c1b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5a9f97,'Discard\x20suggestion'),_0x238c1b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3b7106(_0x5a9f97,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x25288b=this['bindTemplate'],_0x23800c=[{'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':_0x25288b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x25288b['to']('authoredAt',_0x4f5ed2=>this['_config']['formatDateTime'](_0x4f5ed2))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x23800c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x536190={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x25288b['if']('isActive','ck-suggestion-wrapper--active'),_0x25288b['to']('type',_0x44132b=>'ck-suggestion-'+_0x44132b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x23800c}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x536190['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x536190;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x15323a,_0x6a4bb7,_0x35802c)=>{this['_descriptionElement']['innerHTML']=_0x35802c;});}['_createButton'](_0x53ad00,_0x3800bd,_0x18c12d,_0x50ca3d,_0x659614){const _0x4caf09=new _0x435cf8(this['locale']);return _0x4caf09['set']({'label':_0x53ad00,'icon':_0x3800bd,'tooltip':!0x0,'tooltipPosition':_0x659614}),_0x4caf09['extendTemplate']({'attributes':{'class':_0x18c12d}}),_0x4caf09['on']('execute',()=>{this['fire'](_0x50ca3d,this['_model']['id']);}),_0x4caf09;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x11c0f1,_0x520327){let _0x565ade='';return _0x565ade+=_0x11c0f1['split']('*')['map']((_0xfe028e,_0xc2c4a0)=>_0xc2c4a0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xfe028e)+'</span>':us(_0xfe028e))['join'](''),_0x520327&&(_0x565ade+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x520327['value']+'\x22\x20title=\x22'+_0x520327['title']+'\x22></span>'),_0x565ade;}function us(_0x405797){const _0x3e7d56=document['createElement']('span');return _0x3e7d56['innerText']=_0x405797,_0x3e7d56['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x52cd9d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5187f3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x570e96){super(_0x570e96),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x46017e=this['editor']['config'];_0x46017e['define']('trackChanges.SuggestionThreadView',ne),_0x46017e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x46017e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5d241e,_0x1c7afd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5dfd9c,_0x5d8cde]of this['_handleControllerBuffer']){const _0x2b2310=this['_suggestionToController']['has'](_0x5dfd9c);_0x2b2310||_0x5d8cde?_0x2b2310&&_0x5d8cde&&this['_destroyController'](_0x5dfd9c):this['_initializeController'](_0x5dfd9c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5d241e,_0x1c7afd);}['init'](){const _0x30cad8=this['editor'],_0x4ed992=_0x30cad8['plugins']['get']('TrackChangesEditing'),_0x20d8fc=_0x30cad8['plugins']['get']('Annotations'),_0x1b8d31=_0x30cad8['plugins']['get']('EditorAnnotations'),_0x2ce5a6=_0x30cad8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1b8d31['addSourceCollector'](()=>{const _0x1a1221=[];for(const [_0x5334cd,_0xb30961]of Array['from'](this['_suggestionToController'])){const _0x512f00=_0x5334cd['getAllAdjacentSuggestions'](),_0x183048=[];for(const _0x1f287a of _0x512f00){if(!_0x1f287a['isInContent'])continue;if(_0x1f287a['isMultiRange']){_0x183048['push'](..._0x1f287a['getRanges']());continue;}const _0xfcce38=_0x1f287a['getFirstRange']();if(_0x183048['length']>0x0){const _0x42146a=_0x183048[0x0]['getJoined'](_0xfcce38);if(_0x42146a){_0x183048[0x0]=_0x42146a;continue;}}_0x183048['push'](_0xfcce38);}_0x1a1221['push']([_0xb30961['view'],_0x183048]);}return _0x1a1221;}),this['listenTo'](_0x4ed992,'suggestionLoaded',(_0x1b9623,_0x2a6eb0)=>{this['listenTo'](_0x2a6eb0,'change:previous',(_0x4e97a5,_0x5c20f1,_0x3070c4,_0x35a09b)=>{_0x2a6eb0['isInContent']&&(null==_0x3070c4?(this['_updateController'](_0x35a09b['head']),this['_handleSuggestionControllerDelayed'](_0x2a6eb0,!0x1)):(this['_updateController'](_0x3070c4['head']),null==_0x35a09b&&this['_handleSuggestionControllerDelayed'](_0x2a6eb0,!0x0)));}),null!==_0x2a6eb0['previous']?this['_updateController'](_0x2a6eb0['head']):this['_handleSuggestionControllerDelayed'](_0x2a6eb0,!0x1);}),this['listenTo'](_0x4ed992,'suggestionUnloaded',(_0xea7d78,_0x42d665,_0x348857)=>{this['stopListening'](_0x42d665,'change:previous'),this['_handleControllerBuffer']['delete'](_0x42d665),this['_suggestionToController']['has'](_0x42d665)&&this['_destroyController'](_0x42d665),_0x348857&&this['_updateController'](_0x348857['head']);}),this['listenTo'](_0x4ed992,'suggestionChanged',(_0x161bb3,_0x449e4e)=>{this['_updateController'](_0x449e4e);}),this['listenTo'](_0x20d8fc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2ce5a6,'addComment',(_0x33b0a9,{threadId:_0x3ba6b8,isFromAdapter:_0x402ccb})=>{if(_0x402ccb||!_0x4ed992['hasSuggestion'](_0x3ba6b8))return;const _0x1c51b2=_0x4ed992['getSuggestion'](_0x3ba6b8);this['_suggestionToController']['get'](_0x1c51b2)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3cb7cc=this['editor']['plugins']['get']('Annotations'),_0x13211b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ca1ca=Array['from'](_0x3cb7cc['activeAnnotations'],_0x1ebae6=>_0x1ebae6['innerView'])['filter'](_0x2a5a3a=>this['_viewToController']['has'](_0x2a5a3a)),_0x46237a=[];for(const _0x29b43e of _0x1ca1ca){const _0x184648=this['_viewToController']['get'](_0x29b43e)['model']['getAllAdjacentSuggestions']();_0x46237a['push'](..._0x184648['reduce']((_0x306570,_0x5664ae)=>[..._0x306570,..._0x5664ae['getMarkerNames']()],[]));}_0x13211b['activeMarkers']=_0x46237a;}['_addUIComponentsToFactory'](){const _0x16e26c=this['editor'],_0x591316=_0x16e26c['locale'],_0x109f9a=o(_0x591316,'Track\x20changes'),_0x2aec99=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x109f9a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x591316,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x591316,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x591316,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x591316,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x22fb0b of _0x2aec99)if(ae(_0x22fb0b)){const _0x58c5bb=_0x16e26c['commands']['get'](_0x22fb0b['model']['commandName']);_0x22fb0b['model']['bind']('isOn','isEnabled')['to'](_0x58c5bb,'value','isEnabled');}_0x16e26c['ui']['componentFactory']['add']('trackChanges',_0x25d3b0=>this['_createToolbarButton'](_0x25d3b0,_0x2aec99,_0x109f9a)),_0x16e26c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x183fb6=>this['_createMenuBarMenu'](_0x183fb6,_0x2aec99,_0x109f9a));}['_createToolbarButton'](_0x1494cb,_0x5d6e79,_0x1db9bf){const _0x19a5e2=zt(_0x1494cb,Zt),_0x2aef10=this['editor']['commands']['get']('trackChanges');_0x19a5e2['buttonView']['set']({'tooltip':_0x1db9bf,'label':_0x1db9bf,'icon':ie}),_0x19a5e2['buttonView']['bind']('isOn')['to'](_0x2aef10,'value'),_0x19a5e2['buttonView']['on']('execute',()=>{_0x2aef10['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x19a5e2,_0x5d6e79,{'role':'menu'});const _0x4b3561=[];for(const _0x47d0d3 of _0x5d6e79)ae(_0x47d0d3)&&_0x4b3561['push'](this['editor']['commands']['get'](_0x47d0d3['model']['commandName']));const _0x11db4a=_0x19a5e2['buttonView'];return _0x11db4a['actionView']['unbind']('isEnabled'),_0x11db4a['arrowView']['unbind']('isEnabled'),_0x11db4a['actionView']['bind']('isEnabled')['to'](_0x2aef10,'isEnabled'),_0x11db4a['arrowView']['bind']('isEnabled')['toMany'](_0x4b3561,'isEnabled',(..._0x171d43)=>_0x171d43['some'](_0xf68375=>_0xf68375)),_0x19a5e2['on']('execute',_0x3e5960=>{this['editor']['execute'](_0x3e5960['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x19a5e2;}['_createMenuBarMenu'](_0x27bb06,_0x2c0ea8,_0x2d6d11){const _0x5d33e5=new Kt(_0x27bb06),_0x4c70db=this['editor']['commands']['get']('trackChanges');_0x5d33e5['buttonView']['set']({'label':_0x2d6d11,'icon':ie});const _0x30537c=new Qt(_0x27bb06);for(const _0x5b12c8 of _0x2c0ea8){if('separator'==_0x5b12c8['type']){_0x30537c['items']['add'](new Jt(_0x27bb06));continue;}const _0x30f5b5=new Xt(_0x27bb06,_0x5d33e5),_0x44f7b8=new Yt(_0x27bb06),_0xf09aeb=_0x5b12c8['model'];_0x44f7b8['bind'](...Object['keys'](_0xf09aeb))['to'](_0xf09aeb),_0x44f7b8['delegate']('execute')['to'](_0x5d33e5),_0x44f7b8['on']('execute',()=>{this['editor']['execute'](_0xf09aeb['commandName']),this['editor']['editing']['view']['focus']();}),_0x30f5b5['children']['add'](_0x44f7b8),_0x30537c['items']['add'](_0x30f5b5);}return _0x5d33e5['bind']('isEnabled')['to'](_0x4c70db,'isEnabled'),_0x5d33e5['panelView']['children']['add'](_0x30537c),_0x5d33e5;}['_initializeController'](_0x3bd12c){const _0x65efc9=this['editor'],_0x21175d=_0x65efc9['config'],_0x1ae456=_0x65efc9['plugins']['get']('Annotations'),_0x456b17=_0x65efc9['plugins']['get']('CommentsRepository'),_0x864747=_0x65efc9['plugins']['get']('EditorAnnotations'),_0x100506=_0x65efc9['plugins']['get'](_0x5187f3)['me'],_0x5c6b64=_0x21175d['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3163d2,CommentThreadInputView:_0x4e810b}=_0x65efc9['plugins']['get']('CommentsUI');let _0x3d5eb5,_0x48822;this['_annotationViews']['has'](_0x3bd12c['id'])?(_0x48822=this['_annotationViews']['get'](_0x3bd12c['id']),_0x3d5eb5=_0x48822['mainView']):(_0x3d5eb5=new _0x5c6b64(_0x65efc9['locale'],_0x3bd12c,_0x100506,{'disableComments':this['_disableComments'],'editorConfig':_0x21175d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x21175d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x21175d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x21175d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3e1822(_0x21175d['get']('locale')),'CommentView':_0x21175d['get']('comments')['CommentView'],'CommentsListView':_0x3163d2,'CommentThreadInputView':_0x4e810b}),_0x3d5eb5['acceptButton']['on']('execute',()=>{_0x65efc9['editing']['view']['focus']();}),_0x3d5eb5['discardButton']['on']('execute',()=>{_0x65efc9['editing']['view']['focus']();}),_0x48822=_0x1ae456['createAnnotationView'](this['editor']['locale'],_0x3d5eb5),_0x48822['bind']('isDirty')['to'](_0x3d5eb5,'isDirty'),_0x48822['bind']('length')['to'](_0x3d5eb5),_0x48822['bind']('type')['to'](_0x3d5eb5,'type',_0xc1dfd3=>'suggestion-'+_0xc1dfd3),this['_annotationViews']['set'](_0x3bd12c['id'],_0x48822));const _0x1ec07a=_0x456b17['createCommentThreadController'](_0x3bd12c['commentThread'],_0x3d5eb5),_0x3d7d11=new oe(_0x65efc9,_0x3bd12c,_0x3d5eb5,_0x1ec07a),_0x88758=_0x3bd12c['getAllAdjacentSuggestions']()['filter'](_0x19ab6d=>_0x19ab6d['isInContent']);_0x3d5eb5['descriptionParts']=_0x65efc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x88758),this['_suggestionToController']['set'](_0x3bd12c,_0x3d7d11),this['_viewToController']['set'](_0x3d5eb5,_0x3d7d11);const _0x2ba9b4=_0x1ae456['createAnnotation']({'view':_0x48822,'target':()=>{const _0x3120be=[],_0xfbeef3=_0x3bd12c['getAllAdjacentSuggestions']()['filter'](_0x30f82a=>_0x30f82a['isInContent']);for(const _0x51248c of _0xfbeef3)_0x3120be['push'](..._0x51248c['getMarkers']());return _0x37d1f1(_0x65efc9['editing'],_0x3120be);},'type':()=>'suggestion-'+_0x3d7d11['view']['type']});_0x456b17['_bindAnnotationToEditors'](_0x3d5eb5,_0x2ba9b4),_0x1ae456['add'](_0x2ba9b4),_0x864747['registerAnnotation'](_0x2ba9b4);}['_destroyController'](_0x16bfc7){const _0x50c4f4=this['editor']['plugins']['get']('CommentsRepository'),_0x57ce19=this['editor']['plugins']['get']('Annotations'),_0x25cfcb=this['_suggestionToController']['get'](_0x16bfc7),_0x13aaaf=_0x25cfcb['view'],_0x2e4751=_0x57ce19['getByInnerView'](_0x13aaaf);_0x50c4f4['_unbindEditors'](_0x13aaaf),_0x2e4751&&_0x57ce19['remove'](_0x2e4751),this['_suggestionToController']['delete'](_0x16bfc7),this['_viewToController']['delete'](_0x13aaaf),_0x25cfcb['destroy']();}['_updateController'](_0x1b48d1){if(!_0x1b48d1['isInContent']||!this['_suggestionToController']['has'](_0x1b48d1))return;const _0x4c0878=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4461ce=this['_suggestionToController']['get'](_0x1b48d1),_0x4fb142=_0x1b48d1['getAllAdjacentSuggestions']();_0x4461ce['view']['descriptionParts']=_0x4c0878['descriptionFactory']['getDescriptions'](_0x4fb142);}['destroy'](){for(const _0x312d8a of this['_suggestionToController']['keys']())this['_destroyController'](_0x312d8a);for(const _0x49f2b5 of this['_annotationViews']['values']())_0x49f2b5['mainView']['destroy']();super['destroy']();}}function ae(_0x48497e){return'model'in _0x48497e;}class k extends _0x52cd9d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x548b04){this['editor']['plugins']['get'](p)['adapter']=_0x548b04;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x376b2e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x376b2e);}['getSuggestions']({skipNotAttached:_0x2569da=!0x1,toJSON:_0x88b8d2=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2569da,'toJSON':_0x88b8d2});}['getSuggestion'](_0x56a4a0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x56a4a0);}}const T=['Pagination'];class P extends _0x52cd9d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xbcbf2b=this['editor'];if(_0xbcbf2b['config']['define']('trackChangesData.editorCreator',_0x2da038=>{const _0x2db86e=_0xbcbf2b['model']['document']['getRootNames']()['reduce']((_0x101229,_0x418b6c)=>(_0x101229[_0x418b6c]='',_0x101229),{});return _0xbcbf2b['constructor']['create'](_0x2db86e,_0x2da038);}),'function'!=typeof _0xbcbf2b['config']['get']('trackChangesData')['editorCreator'])throw new _0x368f48('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28a9c6){return N(this['editor'],!0x0,_0x28a9c6);}['getDataWithDiscardedSuggestions'](_0x38dcb2){return N(this['editor'],!0x1,_0x38dcb2);}}class D extends _0x52cd9d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x405228){super(_0x405228),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(_0x259779){return void 0x0!==_0x259779['getRootsAttributes'];}async function N(_0x45e816,_0x49df83,_0x255576){const _0x220c72=_0x540b79(_0x45e816,T);_0x220c72['plugins']['push'](p,D),_0x220c72['rootsAttributes']=v(_0x45e816)?_0x45e816['getRootsAttributes']():void 0x0;const _0x5b360a=document['createDocumentFragment'](),_0xe75d7f=_0x45e816['config']['get']('trackChangesData')['editorCreator'],_0x3b178b=await _0xe75d7f(_0x220c72,()=>function(_0x209640){const _0x5cd79e=document['createElement']('div');return _0x209640['appendChild'](_0x5cd79e),_0x5cd79e;}(_0x5b360a));!function(_0x6e5be,_0x170bce){const _0x5cfdb8=_0x6e5be['model']['document']['getRootNames']()['reduce']((_0xce8542,_0x8a4310)=>(_0xce8542[_0x8a4310]=_0x6e5be['data']['get']({'rootName':_0x8a4310}),_0xce8542),{}),_0x455a94=_0x6e5be['plugins']['get']('Users')['users']['map'](_0x5a3119=>({'id':_0x5a3119['id'],'name':_0x5a3119['name']})),_0x214003=_0x6e5be['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c75a9=_0x6e5be['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1de49e=_0x170bce['plugins']['get']('Users'),_0x2a2d80=_0x170bce['plugins']['get']('TrackChangesEditing'),_0x5833de=_0x170bce['plugins']['get']('CommentsRepository');for(const _0x314b38 of _0x455a94)_0x1de49e['getUser'](_0x314b38['id'])||_0x1de49e['addUser'](_0x314b38);_0x1de49e['me']||_0x1de49e['useAnonymousUser']();for(const _0x4947bd of _0x5c75a9)_0x5833de['addCommentThread'](_0x4947bd);for(const _0x1fca9c of _0x214003)_0x2a2d80['addSuggestionData'](_0x1fca9c);_0x170bce['data']['set'](_0x5cfdb8);}(_0x45e816,_0x3b178b),_0x3b178b['execute'](_0x49df83?'acceptAllSuggestions':'discardAllSuggestions');const _0x4c60b4=v(_0x3b178b)?_0x3b178b['getFullData'](_0x255576):_0x3b178b['data']['get'](_0x255576);return await _0x3b178b['destroy'](),_0x4c60b4;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|