@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241017.0 → 0.0.0-nightly-20241019.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +10 -10
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x32a2fb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xf011f1,_0x5e26f1){super(),this['id']=_0x5e26f1['id'],this['type']=_0x5e26f1['type'],this['subType']=_0x5e26f1['subType']||null,this['author']=_0x5e26f1['author'],this['creator']=_0x5e26f1['creator']||_0x5e26f1['author'],this['isExternal']=Boolean(_0x5e26f1['attributes']&&_0x5e26f1['attributes']['@external']),this['data']=null,this['_model']=_0xf011f1,this['_onAccept']=_0x5e26f1['onAccept'],this['_onDiscard']=_0x5e26f1['onDiscard'],this['_onAttributesChange']=_0x5e26f1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5e26f1['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 _0x5069a7=this;for(;_0x5069a7['previous'];)_0x5069a7=_0x5069a7['previous'];return _0x5069a7;}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'](_0x970a9b){this['_markerNames']['add'](_0x970a9b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4cef03=>this['_model']['markers']['get'](_0x4cef03))['filter'](_0x401e48=>_0x401e48);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x409c30=>{for(const _0x49cbb3 of this['getMarkers']())_0x409c30['removeMarker'](_0x49cbb3);}),this['_markerNames']['clear']();}['removeMarker'](_0x6026a3){this['_model']['change'](_0x7eb35c=>{_0x7eb35c['removeMarker'](_0x6026a3);}),this['_markerNames']['delete'](_0x6026a3);}['addRange'](_0xeeed7e){const _0x2e8614='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2e8614),this['_model']['change'](_0x10af74=>{_0x10af74['addMarker'](_0x2e8614,{'range':_0xeeed7e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x162acd){for(const _0x401acb of this['getRanges']())if(_0x401acb['isIntersecting'](_0x162acd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3da7d3=>_0x3da7d3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4e3d9a,_0x49e7ff)=>[..._0x4e3d9a,..._0x49e7ff['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x528800=this['getRanges']();if(0x1!=_0x528800['length'])return null;const _0x281cc4=_0x528800[0x0],_0x3d13b6=_0x281cc4['start']['nodeAfter'],_0x3a548c=_0x281cc4['end']['nodeBefore'];return _0x3d13b6 instanceof _0x4d7fae?_0x3d13b6!=_0x3a548c?null:_0x3d13b6: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 _0x3b1c90=[];let _0x1b91e6=this['head'];for(;_0x1b91e6;)_0x3b1c90['push'](_0x1b91e6),_0x1b91e6=_0x1b91e6['next'];return _0x3b1c90;}['setAttribute'](_0x1391be,_0x54bc8c){const _0x29205f=_0x3e838d(this['attributes']);_0x2f5010(_0x29205f,_0x1391be,_0x54bc8c),_0x4a7dae(_0x29205f,this['attributes'])||(this['attributes']=_0x29205f,this['_onAttributesChange'](_0x29205f));}['removeAttribute'](_0x3bef53){const _0xe5625d=_0x3e838d(this['attributes']);_0x11ef72(_0xe5625d,_0x3bef53),_0x4a7dae(_0xe5625d,this['attributes'])||(this['attributes']=_0xe5625d,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 _0x44c9df()['substr'](0x1,0x5);}}function o(_0x310233,_0x547506,_0x2daf63){const t=_0x310233['t'];switch(_0x547506){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',_0x2daf63);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2daf63);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2daf63);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2daf63);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2daf63);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',_0x2daf63);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2daf63);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',_0x2daf63);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2daf63);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2daf63);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2daf63);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2daf63);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2daf63);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2daf63);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2daf63);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2daf63);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2daf63);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2daf63);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2daf63);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2daf63);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2daf63);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2daf63);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2daf63);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'},_0x2daf63);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2daf63);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2daf63);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2daf63);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2daf63);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2daf63);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'},_0x2daf63);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2daf63);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2daf63);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2daf63);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2daf63);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'},_0x2daf63);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2daf63);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'},_0x2daf63);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'},_0x2daf63);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2daf63);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'},_0x2daf63);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2daf63);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'},_0x2daf63);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2daf63);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2daf63);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x2daf63);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'},_0x2daf63);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'},_0x2daf63);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2daf63);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x2daf63);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x2daf63);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x2daf63);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x547506;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2591c0,_0x315823){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2591c0,this['_locale']=_0x315823;}['getDescriptions'](_0x1fcbaa){const _0x3073b6=[],_0x32c096=new Set(),_0x562cf9=new Set();for(let _0xc90a0e=0x0;_0xc90a0e<_0x1fcbaa['length'];_0xc90a0e++){const _0x132138=_0x1fcbaa[_0xc90a0e];if(!_0x132138['isInContent'])continue;const _0x489b76=this['_handleCustomCallbackDescription'](_0x132138);if(_0x489b76){if(null!=_0x132138['subType']){if(_0x32c096['has'](_0x132138['subType']))continue;_0x32c096['add'](_0x132138['subType']);}_0x3073b6['push'](_0x489b76);}else{if('attribute'!=_0x132138['type'])'insertion'!=_0x132138['type']&&'deletion'!=_0x132138['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3073b6,_0x132138,_0x1fcbaa[_0xc90a0e+0x1]);else{const _0x5b688b=_0x132138['data']['key'];if(_0x562cf9['has'](_0x5b688b))continue;_0x562cf9['add'](_0x132138['data']['key']),_0x5b688b==m?this['_handleRenameSuggestionDescription'](_0x3073b6,_0x132138):this['_handleAttributeSuggestionDescription'](_0x3073b6,_0x132138);}}}return this['_resolveDescriptionItems'](_0x3073b6);}['registerDescriptionCallback'](_0x5a7b4e){this['_customCallbacks']['push'](_0x5a7b4e);}['registerElementLabel'](_0x4e323e,_0x55a758,_0x1a422f=_0x399907['normal']){'function'==typeof _0x4e323e?_0x11ff89(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4e323e,'label':_0x55a758,'priority':_0x1a422f}):this['_itemLabels']['set'](_0x4e323e,_0x55a758);}['registerAttributeLabel'](_0x58d9eb,_0x52faac){this['_attributeLabels']['set'](_0x58d9eb,_0x52faac);}['getItemLabel'](_0x534abd,_0x502e35=0x1){let _0x8fcff7;for(const _0x44df02 of this['_itemLabelsCallbacks'])if(_0x44df02['matchingCallback'](_0x534abd)){_0x8fcff7=_0x44df02['label'];break;}return _0x8fcff7||(_0x8fcff7=this['_itemLabels']['get'](_0x534abd['name'])),_0x8fcff7?_0x8fcff7(_0x502e35):0x1!==_0x502e35?_0x502e35+'\x20'+_0x534abd['name']+'s':''+_0x534abd['name'];}['_addDescriptionItems'](_0x265c62,_0x2c2bed){const _0x27580e=_0x2c2bed['getFirstRange']()['getWalker'](),_0x2e662b='insertion'==_0x2c2bed['type']?'add':'remove';for(const _0x38073e of _0x27580e){const _0x4dc256=_0x38073e['item'],_0x4f1ad5=_0x265c62[_0x265c62['length']-0x1];if(_0x4dc256['is']('$textProxy'))_0x4f1ad5&&_0x4f1ad5['type']['indexOf']('Container')>-0x1&&_0x265c62['pop'](),_0x4f1ad5&&'text'==_0x4f1ad5['type']?_0x4f1ad5[_0x2e662b]+=_0x4dc256['data']:_0x265c62['push']({'type':'text','add':'add'==_0x2e662b?_0x4dc256['data']:'','remove':'remove'==_0x2e662b?_0x4dc256['data']:''});else{if(this['_schema']['isObject'](_0x4dc256)){const _0x1bce4d=_0x4dc256;if(_0x4f1ad5&&_0x4f1ad5['type']['indexOf']('Container')>-0x1&&_0x265c62['pop'](),'elementEnd'==_0x38073e['type'])continue;_0x4f1ad5&&_0x4f1ad5['type']==_0x2e662b+'Object'&&_0x4f1ad5['element']['name']==_0x1bce4d['name']?_0x4f1ad5['quantity']++:_0x265c62['push']({'type':_0x2e662b+'Object','element':_0x1bce4d,'quantity':0x1}),_0x27580e['skip'](_0x472383=>!('elementEnd'==_0x472383['type']&&_0x472383['item']==_0x4dc256));}else{if(this['_schema']['checkChild'](_0x4dc256,'$text')||_0x4dc256['is']('element','softBreak')){const _0x22f90a=_0x4dc256;if('add'==_0x2e662b&&'elementStart'==_0x38073e['type']||'remove'==_0x2e662b&&'elementEnd'==_0x38073e['type'])continue;if(_0x4f1ad5&&-0x1==_0x4f1ad5['type']['indexOf']('Container')){'text'==_0x4f1ad5['type']&&(_0x4f1ad5[_0x2e662b]+='\x0a');continue;}let _0xde7cef;if(_0xde7cef='add'==_0x2e662b?_0x22f90a['nextSibling']&&!this['_schema']['isObject'](_0x22f90a['nextSibling'])?_0x22f90a['nextSibling']:null:_0x22f90a['previousSibling']&&!this['_schema']['isObject'](_0x22f90a['previousSibling'])?_0x22f90a['previousSibling']:null,_0x22f90a['isEmpty']||_0xde7cef&&_0xde7cef['isEmpty']){const _0x31c73f=_0xde7cef&&_0xde7cef['isEmpty']?_0xde7cef:_0x22f90a;_0x4f1ad5&&_0x4f1ad5['type']==_0x2e662b+'EmptyContainer'&&_0x4f1ad5['element']['name']==_0x31c73f['name']?_0x4f1ad5['quantity']++:_0x265c62['push']({'type':_0x2e662b+'EmptyContainer','element':_0x31c73f,'quantity':0x1});}else _0x265c62['push']({'type':_0x2e662b+'Container','element':_0x22f90a});}}}}}['_resolveDescriptionItems'](_0x3aee7a){const _0x1e4d91=this['_locale'],_0x1d41b2=[],_0x375e5f=[],_0x300289=[];for(const _0x4f335d of _0x3aee7a)switch(_0x4f335d['type']){case'text':if(_0x4f335d['add']=_0x4f335d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f335d['remove']=_0x4f335d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f335d['add']&&''!=_0x4f335d['remove']){_0x1d41b2['push']({'type':'replace','content':o(_0x1e4d91,'REPLACE_TEXT',['\x22'+_0x4f335d['remove']+'\x22','\x22'+_0x4f335d['add']+'\x22'])});continue;}if(null!=_0x4f335d['add']['match'](/^ +$/)){_0x1d41b2['push']({'type':'insertion','content':o(_0x1e4d91,'*Insert:*\x20%0',o(_0x1e4d91,'ELEMENT_SPACE',_0x4f335d['add']['length']))});continue;}if(null!=_0x4f335d['remove']['match'](/^ +$/)){_0x1d41b2['push']({'type':'deletion','content':o(_0x1e4d91,'*Remove:*\x20%0',o(_0x1e4d91,'ELEMENT_SPACE',_0x4f335d['remove']['length']))});continue;}if(''!=_0x4f335d['add']){_0x1d41b2['push']({'type':'insertion','content':o(_0x1e4d91,'*Insert:*\x20%0','\x22'+_0x4f335d['add']+'\x22')});continue;}_0x1d41b2['push']({'type':'deletion','content':o(_0x1e4d91,'*Remove:*\x20%0','\x22'+_0x4f335d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1d41b2['push']({'type':'insertion','content':o(_0x1e4d91,'*Insert:*\x20%0',this['getItemLabel'](_0x4f335d['element'],_0x4f335d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1d41b2['push']({'type':'deletion','content':o(_0x1e4d91,'*Remove:*\x20%0',this['getItemLabel'](_0x4f335d['element'],_0x4f335d['quantity']))});continue;case'addContainer':_0x1d41b2['push']({'type':'insertion','content':o(_0x1e4d91,'*Split:*\x20%0',this['getItemLabel'](_0x4f335d['element'],_0x4f335d['quantity']))});continue;case'removeContainer':_0x1d41b2['push']({'type':'deletion','content':o(_0x1e4d91,'*Merge:*\x20%0',this['getItemLabel'](_0x4f335d['element'],_0x4f335d['quantity']))});continue;case'addFormat':_0x375e5f['push'](_0x4f335d['key']);continue;case'removeFormat':_0x300289['push'](_0x4f335d['key']);continue;default:_0x1d41b2['push'](_0x4f335d);}if(_0x375e5f['length']){const _0x28531d=_0x375e5f['map'](_0x46f1cc=>this['_attributeLabels']['has'](_0x46f1cc)?this['_attributeLabels']['get'](_0x46f1cc):_0x46f1cc)['join'](',\x20');_0x1d41b2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x28531d)});}if(_0x300289['length']){const _0x4ac844=_0x300289['map'](_0x4ccf6a=>this['_attributeLabels']['has'](_0x4ccf6a)?this['_attributeLabels']['get'](_0x4ccf6a):_0x4ccf6a)['join'](',\x20');_0x1d41b2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4ac844)});}return _0x1d41b2;}['_handleCustomCallbackDescription'](_0x246d58){for(const _0x5af0d2 of this['_customCallbacks']){const _0x4c0885=_0x5af0d2(_0x246d58);if(_0x4c0885&&'type'in _0x4c0885)return _0x4c0885;}}['_handleAttributeSuggestionDescription'](_0x311fb3,_0x57bafe){const _0x469baf=_0x57bafe['data'],_0x39acaf=void 0x0===_0x469baf['newValue']?'removeFormat':'addFormat';_0x311fb3['push']({'type':_0x39acaf,'key':_0x469baf['key']});}['_handleRenameSuggestionDescription'](_0x433ca2,_0x550895){_0x433ca2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x550895['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x267f63,_0x5449dc,_0x7473fc){if(this['_addDescriptionItems'](_0x267f63,_0x5449dc),_0x7473fc&&_0x7473fc['getFirstRange']()&&!_0x5449dc['getFirstRange']()['end']['isEqual'](_0x7473fc['getFirstRange']()['start'])){const _0x3ea686=_0x267f63[_0x267f63['length']-0x1],_0x5a3aac='insertion'==_0x5449dc['type']?'add':'remove';_0x3ea686&&'text'==_0x3ea686['type']&&(_0x3ea686[_0x5a3aac]+='\x0a');}}}class V extends _0xbd4bc4{['afterInit'](){const _0x1b3834=this['editor'],_0xba9e39=_0x1b3834['plugins']['get']('TrackChangesEditing');_0x1b3834['commands']['get']('showAIAssistant')&&_0xba9e39['enableCommand']('showAIAssistant');}}class U extends _0xbd4bc4{['afterInit'](){const _0x451482=this['editor'],_0x9beacb=_0x451482['locale'];if(!_0x451482['plugins']['has']('AlignmentEditing'))return;const _0x32c4c1=_0x451482['plugins']['get']('TrackChangesEditing');_0x32c4c1['enableDefaultAttributesIntegration']('alignment'),_0x32c4c1['registerBlockAttribute']('alignment'),_0x32c4c1['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x9beacb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40208a=this['editor'],_0x1a87f5=_0x40208a['locale'];_0x40208a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x444a4a=>{if('formatBlock'!=_0x444a4a['type'])return;const {data:_0x3a2478}=_0x444a4a;if(_0x3a2478&&'alignment'==_0x3a2478['commandName']){const _0x1505d2=_0x3a2478['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1a87f5,'*Format:*\x20%0',function(_0x200744){switch(_0x200744){case'left':return o(_0x1a87f5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1a87f5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1a87f5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1a87f5,'FORMAT_JUSTIFY_TEXT');}}(_0x1505d2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xbd4bc4{['afterInit'](){const _0x1e221d=this['editor'],_0x4d637d=_0x1e221d['plugins']['get']('TrackChangesEditing'),_0x31458f=_0x1e221d['locale'];for(const _0x5454ac of ti){if(!_0x1e221d['plugins']['has'](_0x5454ac))continue;const _0x27bb08=_0x5454ac['slice'](0x0,-0x7)['toLowerCase'](),_0x705a3f='FORMAT_'+_0x27bb08['toUpperCase']();_0x4d637d['enableDefaultAttributesIntegration'](_0x27bb08),_0x4d637d['registerInlineAttribute'](_0x27bb08),_0x4d637d['descriptionFactory']['registerAttributeLabel'](_0x27bb08,o(_0x31458f,_0x705a3f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe89b94=this['editor'],_0x413048=_0xe89b94['locale'],_0x296931=_0xe89b94['plugins']['get']('TrackChangesEditing');function _0x5ed156(_0x43702c,_0x11bc0f){_0x296931['descriptionFactory']['registerDescriptionCallback'](_0x412162=>{if('formatInline'!=_0x412162['type'])return;const {data:_0x3bc42d}=_0x412162;return _0x3bc42d&&_0x3bc42d['commandName']===_0x43702c?_0x3bc42d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x413048,'*Format:*\x20%0',_0x11bc0f)}:{'type':'format','content':o(_0x413048,'*Remove\x20format:*\x20%0',_0x11bc0f)}:void 0x0;});}_0x5ed156('bold',o(_0x413048,'FORMAT_BOLD')),_0x5ed156('italic',o(_0x413048,'FORMAT_ITALIC')),_0x5ed156('underline',o(_0x413048,'FORMAT_UNDERLINE')),_0x5ed156('code',o(_0x413048,'FORMAT_CODE')),_0x5ed156('strikethrough',o(_0x413048,'FORMAT_STRIKETHROUGH')),_0x5ed156('subscript',o(_0x413048,'FORMAT_SUBSCRIPT')),_0x5ed156('superscript',o(_0x413048,'FORMAT_SUPERSCRIPT'));}}class F extends _0xbd4bc4{['afterInit'](){const _0x54a697=this['editor'],_0x538112=_0x54a697['locale'];if(!_0x54a697['plugins']['has']('BlockQuoteEditing'))return;const _0x48da08=_0x54a697['plugins']['get']('TrackChangesEditing'),_0xf36f60=this['editor']['commands']['get']('blockQuote');_0x48da08['enableCommand']('blockQuote',(_0x6b28b2,_0x157ced={})=>{const _0x137fd3=this['editor']['model']['document']['selection'],_0x13ad64=_0x157ced&&void 0x0!==_0x157ced['forceValue']?_0x157ced['forceValue']:!_0xf36f60['value'];let _0x5c8f62=[];if(_0x13ad64){const _0x300f23=Array['from'](_0x137fd3['getSelectedBlocks']())['filter'](_0x4d8e50=>oo(_0x4d8e50)||function(_0x26f871,_0xe17a76){const _0x4a8213=_0xe17a76['checkChild'](_0x26f871['parent'],'blockQuote'),_0x324469=_0xe17a76['checkChild'](['$root','blockQuote'],_0x26f871);return _0x4a8213&&_0x324469;}(_0x4d8e50,this['editor']['model']['schema']));_0x5c8f62=to(_0x300f23,_0x54a697['model']);}else{const _0x41c21a=Array['from'](_0x137fd3['getSelectedBlocks']())['filter'](_0x271949=>oo(_0x271949));_0x5c8f62=to(_0x41c21a,_0x54a697['model']);}_0x54a697['model']['change'](()=>{for(const _0x4aca49 of _0x5c8f62)_0x48da08['markBlockFormat'](_0x4aca49,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x13ad64}]});});}),_0x48da08['descriptionFactory']['registerDescriptionCallback'](_0x170ae7=>{const {data:_0x2844b3}=_0x170ae7;if(_0x2844b3&&'blockQuote'==_0x2844b3['commandName']){const _0x3e68c8=o(_0x538112,'ELEMENT_BLOCK_QUOTE');return _0x2844b3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x538112,'*Set\x20format:*\x20%0',_0x3e68c8)}:{'type':'format','content':o(_0x538112,'*Remove\x20format:*\x20%0',_0x3e68c8)};}});}}function oo(_0x2bf21a){return'blockQuote'==_0x2bf21a['parent']['name'];}class L extends _0xbd4bc4{['afterInit'](){const _0xdf33dd=this['editor'];_0xdf33dd['plugins']['has']('CaseChange')&&(_0xdf33dd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xdf33dd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xdf33dd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xbd4bc4{['afterInit'](){const _0x5f418d=this['editor'];_0x5f418d['commands']['get']('ckbox')&&_0x5f418d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0xbd4bc4{['afterInit'](){const _0x3fb082=this['editor'];if(!_0x3fb082['plugins']['has']('CodeBlock'))return;const _0x1792fe=_0x3fb082['plugins']['get']('TrackChangesEditing'),_0x542573=_0x3fb082['locale'],_0xfc18d7=_0x3fb082['config']['get']('codeBlock')['languages'],_0x368a0a=_0x3fb082['commands']['get']('codeBlock');_0x1792fe['enableCommand']('indentCodeBlock'),_0x1792fe['enableCommand']('outdentCodeBlock'),_0x1792fe['enableCommand']('codeBlock',(_0x50f75b,_0x2c127a={})=>{const _0x52b8e6=_0x3fb082['model'],_0x613ac7=_0x3fb082['model']['document']['selection'],_0x4ed766=_0x2c127a&&void 0x0!==_0x2c127a['forceValue']?_0x2c127a['forceValue']:!_0x368a0a['value'];let _0x68fe50;_0x2c127a['language']||(_0x2c127a['language']=_0xfc18d7[0x0]['language']),_0x68fe50=_0x4ed766?Array['from'](_0x613ac7['getSelectedBlocks']())['filter'](_0x245721=>eo(_0x245721)||function(_0x2f4e10,_0x3aecf3){if(_0x2f4e10['is']('rootElement')||_0x3aecf3['isLimit'](_0x2f4e10))return!0x1;return _0x3aecf3['checkChild'](_0x2f4e10['parent'],'codeBlock');}(_0x245721,_0x52b8e6['schema'])):Array['from'](_0x613ac7['getSelectedBlocks']())['filter'](_0x1209da=>eo(_0x1209da));const _0x455f68=to(_0x68fe50,_0x52b8e6);_0x52b8e6['change'](()=>{for(const _0x50d417 of _0x455f68)_0x1792fe['markBlockFormat'](_0x50d417,{'commandName':'codeBlock','commandParams':[{..._0x2c127a,'forceValue':_0x4ed766}],'formatGroupId':'blockName'});});}),(_0x1792fe['descriptionFactory']['registerElementLabel']('codeBlock',_0x18a810=>o(_0x542573,'ELEMENT_CODE_BLOCK',_0x18a810)),_0x1792fe['descriptionFactory']['registerDescriptionCallback'](_0x5362bf=>{if('formatBlock'!=_0x5362bf['type'])return;const _0x41b73f=_0x542573['t'],{data:_0x39aacb}=_0x5362bf;if(!_0x39aacb||'codeBlock'!=_0x39aacb['commandName'])return;const _0xa58033=_0x39aacb['commandParams'][0x0]['language'],_0x2c0c22=_0x41b73f(_0xfc18d7['find'](_0x53a832=>_0x53a832['language']===_0xa58033)['label'])['toLowerCase']();return _0x39aacb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x542573,'*Set\x20format:*\x20%0',o(_0x542573,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2c0c22+')')}:{'type':'format','content':o(_0x542573,'*Remove\x20format:*\x20%0',o(_0x542573,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x559066){return'codeBlock'==_0x559066['name'];}class q extends _0xbd4bc4{['afterInit'](){const _0x5efc04=this['editor'];if(!_0x5efc04['plugins']['has']('CommentsEditing'))return;_0x5efc04['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2b3a88,_0xfbb20,_0x9a2126){const _0x4cee48=[];for(const _0x13a841 of _0xfbb20['getItems']())_0x13a841['hasAttribute'](_0x2b3a88)&&_0x4cee48['push'](_0x9a2126['createRangeOn'](_0x13a841));return _0x4cee48;}function _e(_0x5b30de,_0x45f815,{showActiveMarker:_0x3331c2=!0x0}={}){const _0x2fa0da=_0x5b30de['plugins']['get']('TrackChangesEditing');return(_0x15853f,_0x1ce13f,_0x4e3aea)=>{if(!_0x4e3aea['consumable']['test'](_0x1ce13f['markerRange'],_0x15853f['name']))return;const _0x137fc4=_0x1ce13f['markerRange']['getWalker'](),_0x1f39fd=_0x1ce13f['markerRange']['start'],_0x4aea0f=_0x5b30de['model']['schema'];let _0x5969e8=null,_0x3f391d=null,_0x3c1591=!0x1,_0x431c9c=!0x1;for(const _0x337ead of _0x137fc4){const _0x376038=_0x337ead['item'];_0x3c1591=_0x3c1591||_0x4aea0f['isContent'](_0x376038);const _0x33e8b9=_0x4e3aea['mapper']['toViewElement'](_0x376038);if(_0x33e8b9&&_0x33e8b9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x337ead['type']&&(_0x4aea0f['isBlock'](_0x376038)&&!_0x4aea0f['isLimit'](_0x376038)&&(_0x376038['nextSibling']||_0x1f39fd['isAtEnd']?_0x5969e8&&_0x5969e8['parent']==_0x376038||(_0x5969e8=_0x376038,_0x7c41b0(_0x337ead['previousPosition']),_0x431c9c=!0x0):_0x3f391d=_0x3f391d||_0x337ead['previousPosition']));}function _0x7c41b0(_0xa5ea11){const {authorId:_0x59bc68}=_0x2fa0da['_splitMarkerName'](_0x1ce13f['markerName']),_0x5367c8=_0x4e3aea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45f815,'data-author-id':_0x59bc68}),_0x3dd3a8=_0x4e3aea['mapper']['toViewPosition'](_0xa5ea11);_0x3331c2&&_0x2fa0da['activeMarkers']['includes'](_0x1ce13f['markerName'])&&_0x4e3aea['writer']['addClass']('ck-suggestion-marker--active',_0x5367c8),_0x4e3aea['writer']['insert'](_0x3dd3a8,_0x5367c8),_0x4e3aea['mapper']['bindElementToMarker'](_0x5367c8,_0x1ce13f['markerName']);}_0x3c1591||_0x431c9c||!_0x3f391d||_0x7c41b0(_0x3f391d);};}class z extends _0xbd4bc4{static get['requires'](){return[_0xfdf3e8];}['init'](){const _0x49c758=this['editor'],_0x596950=_0x49c758['plugins']['get']('TrackChangesEditing');_0x596950['enableCommand']('delete');const _0xef6a7=_0x49c758['commands']['get']('deleteForward');_0x596950['enableCommand']('deleteForward',(_0x4c499b,_0x254aa8={})=>{const _0x32a2ba=_0x49c758['model']['createSelection'](_0x49c758['model']['document']['selection']);_0x32a2ba['isCollapsed']&&_0x49c758['model']['modifySelection'](_0x32a2ba,{'direction':'forward','unit':_0x254aa8['unit']});const _0x1c691f=_0x32a2ba['getFirstRange'](),_0x34a93e=_0x4d6067['fromRange'](_0x1c691f);let _0x4b6a40;_0x4c499b(_0x254aa8),_0x4b6a40='$graveyard'==_0x34a93e['root']['rootName']?_0x49c758['model']['createRange'](_0x1c691f['start']):_0x49c758['model']['createRange'](_0x34a93e['start'],_0x34a93e['end']),_0x34a93e['detach'](),_0x49c758['model']['enqueueChange'](_0xef6a7['buffer']['batch'],_0x516746=>{_0xef6a7['buffer']['lock'](),_0x516746['setSelection'](_0x516746['createRange'](_0x4b6a40['end'])),_0xef6a7['buffer']['unlock']();});}),_0x49c758['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x49c758,'merge'),{'priority':'high'}),_0x49c758['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3d8098,_0x5611b1,_0x18eea2)=>{_0x18eea2['options']['showSuggestionHighlights']&&_e(_0x49c758,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3d8098,_0x5611b1,_0x18eea2);},{'priority':'high'}),_0x49c758['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4730fd,_0x889fe6,_0x14dbf0)=>{const _0x7ef889=_0x14dbf0['mapper']['markerNameToElements'](_0x889fe6['markerName']);if(_0x7ef889){for(const _0x3dcd9d of _0x7ef889)_0x3dcd9d['is']('uiElement')&&(_0x14dbf0['mapper']['unbindElementFromMarkerName'](_0x3dcd9d,_0x889fe6['markerName']),_0x14dbf0['writer']['remove'](_0x3dcd9d));}},{'priority':'high'});}}class K extends _0xbd4bc4{['afterInit'](){const _0x46e937=this['editor'];if(!_0x46e937['plugins']['has']('ListEditing'))return;const _0x4224a5=_0x46e937['locale'],_0x1e1ca9=_0x46e937['plugins']['get']('TrackChangesEditing'),_0x30b65f=_0x46e937['plugins']['has']('TodoListEditing'),_0x5675eb=!!_0x46e937['config']['get']('list.multiBlock');function _0x51d6bc(_0x535b4e){return{'type':'format','content':''+o(_0x4224a5,'*Set\x20format:*\x20%0',_0x535b4e)};}function _0xfdaef8(_0x3be5da){return{'type':'format','content':''+o(_0x4224a5,'*Remove\x20format:*\x20%0',_0x3be5da)};}_0x1e1ca9['enableDefaultAttributesIntegration']('numberedList'),_0x1e1ca9['enableDefaultAttributesIntegration']('bulletedList'),_0x1e1ca9['enableDefaultAttributesIntegration']('customNumberedList'),_0x1e1ca9['enableDefaultAttributesIntegration']('customBulletedList'),_0x1e1ca9['enableDefaultAttributesIntegration']('indentList'),_0x1e1ca9['enableDefaultAttributesIntegration']('outdentList'),_0x1e1ca9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1e1ca9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1e1ca9['registerBlockAttribute']('listItemId'),_0x1e1ca9['registerBlockAttribute']('listType'),_0x1e1ca9['registerBlockAttribute']('listIndent'),_0x5675eb&&(_0x1e1ca9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1e1ca9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x30b65f&&(_0x1e1ca9['enableDefaultAttributesIntegration']('todoList'),_0x1e1ca9['enableDefaultAttributesIntegration']('checkTodoList'),_0x1e1ca9['registerBlockAttribute']('todoListChecked'),_0x1e1ca9['descriptionFactory']['registerDescriptionCallback'](_0x9236a5=>{const {data:_0x58fd18}=_0x9236a5;if(_0x58fd18&&'todoListChecked'==_0x58fd18['key'])return{'type':'format','content':_0x58fd18['newValue']?o(_0x4224a5,'*Check\x20item*'):o(_0x4224a5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1330b1=>{if(_0x1330b1['batch']['isUndo'])return!0x1;let _0x14417d=!0x1;const _0x377eb4=_0x1e1ca9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7cdfe6=>'todoListChecked'===_0x1e1ca9['_getAttributeKey'](_0x7cdfe6));for(const _0x397abb of _0x377eb4){'todo'!=_0x397abb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1e1ca9['_findSuggestions'](_0x397abb['getFirstRange'](),'attribute')['find'](_0x17adec=>'listType'===_0x1e1ca9['_getAttributeKey'](_0x17adec['suggestion']))||(_0x1330b1['removeMarker'](_0x397abb['getFirstMarker']()),_0x14417d=!0x0));}return _0x14417d;})),_0x1e1ca9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4224a5,'FORMAT_INDENT'));const _0x520e7b={'type':'format','content':''};_0x1e1ca9['descriptionFactory']['registerDescriptionCallback'](_0x10d3d2=>{const {data:_0x193459}=_0x10d3d2;if(!_0x193459||'listType'!=_0x193459['key'])return;let _0x535e71=_0x10d3d2['head'];for(;_0x535e71;){if(_0x535e71['data']&&(('listStyle'==_0x535e71['data']['key']||'listMarkerStyle'==_0x535e71['data']['key'])&&(_0x535e71['data']['newValue']&&'default'!=_0x535e71['data']['newValue']||'default'!=_0x535e71['data']['oldValue']&&!_0x193459['newValue'])||!_0x5675eb&&_0x535e71['data']['key']==m))return _0x520e7b;_0x535e71=_0x535e71['next'];}if(null==_0x193459['newValue'])switch(_0x193459['oldValue']){case'bulleted':return _0xfdaef8(o(_0x4224a5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfdaef8(o(_0x4224a5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfdaef8(o(_0x4224a5,'ELEMENT_TODO_LIST'));}switch(_0x193459['newValue']){case'bulleted':return _0x51d6bc(o(_0x4224a5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51d6bc(o(_0x4224a5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51d6bc(o(_0x4224a5,'ELEMENT_TODO_LIST'));}}),_0x1e1ca9['descriptionFactory']['registerDescriptionCallback'](_0x531ddd=>{const {data:_0x3d4fbd}=_0x531ddd;if(_0x3d4fbd&&'listIndent'==_0x3d4fbd['key'])return null==_0x3d4fbd['newValue']||null==_0x3d4fbd['oldValue']&&0x0==_0x3d4fbd['newValue']?_0x520e7b:void 0x0;}),_0x1e1ca9['descriptionFactory']['registerDescriptionCallback'](_0x1516b8=>{if('attribute'!=_0x1516b8['type'])return;const {data:_0x383545}=_0x1516b8;if(!_0x383545||'listItemId'!=_0x383545['key'])return;const _0x5b6bf9=Ee(_0x1516b8);return'newValue'==_0x5b6bf9?{'type':'format','content':o(_0x4224a5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5b6bf9?{'type':'format','content':o(_0x4224a5,'*Split:*\x20list\x20item')}:_0x520e7b;}),_0x46e937['model']['document']['registerPostFixer'](_0x12cf92=>this['listItemIdFixer'](_0x12cf92)),_0x46e937['model']['document']['registerPostFixer'](_0x28fe09=>this['noTrackChangesFixer'](_0x28fe09)),_0x46e937['model']['document']['on']('change:data',(_0x4e03de,_0x2e8d0e)=>{if(_0x2e8d0e['isUndo']||!_0x2e8d0e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x7aa231){if(_0x7aa231['batch']['isUndo']||!_0x7aa231['batch']['isLocal'])return!0x1;let _0x21e2be=!0x1;const _0x1fe1fa=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47c31a=>_0x47c31a['data']&&'listItemId'==_0x47c31a['data']['key'])['filter'](_0x114a53=>_0x114a53['data']['newValue']&&_0x114a53['data']['oldValue']);for(const _0x24fe33 of _0x1fe1fa)Ee(_0x24fe33)||(_0x7aa231['removeMarker'](_0x24fe33['getFirstMarker']()),_0x21e2be=!0x0);return _0x21e2be;}['noTrackChangesFixer'](_0xf48629){if(_0xf48629['batch']['isUndo']||!_0xf48629['batch']['isLocal'])return!0x1;const _0x34ef6a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x34ef6a['trackChangesCommand']['value'])return!0x1;let _0x4c1a2d=!0x1;const _0x5bd2f8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x33dc00=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2fc49a=>'attribute'==_0x2fc49a['type'])['filter'](_0x12c858=>_0x5bd2f8['includes'](_0x12c858['attributeKey']));if(0x0==_0x33dc00['length'])return _0x4c1a2d;for(const _0x35e460 of _0x33dc00){const _0x366654=_0x34ef6a['_findSuggestions'](_0x35e460['range'],'attribute')['filter'](_0x5073e1=>!_0x5073e1['meta']['isNextTo'])['map'](_0x11ee1e=>_0x11ee1e['suggestion'])['filter'](_0x2bfeb8=>{const _0x2f8ffb=_0x34ef6a['_getAttributeKey'](_0x2bfeb8);return _0x5bd2f8['includes'](_0x2f8ffb);});if(_0x366654['length']){for(const _0x46ef3f of _0x366654)_0xf48629['removeMarker'](_0x46ef3f['getFirstMarker']());_0x4c1a2d=!0x0;}}return _0x4c1a2d;}['assureChains'](){const _0x24dc05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x134a6d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x446ce7;const _0x412666=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a5302=>{if(_0x3a5302['data']['oldRange']||!_0x3a5302['data']['newRange'])return null;if(!_0x3a5302['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x22048b}=_0x24dc05['_splitMarkerName'](_0x3a5302['name']);if(!_0x24dc05['hasSuggestion'](_0x22048b))return null;const _0x691d6b=_0x24dc05['getSuggestion'](_0x22048b);return _0x134a6d['includes'](_0x691d6b['data']['key']);})['map'](_0x94e2af=>{const {id:_0x2e7813}=_0x24dc05['_splitMarkerName'](_0x94e2af['name']),_0x34eba7=_0x24dc05['getSuggestion'](_0x2e7813);return _0x446ce7=_0x34eba7['attributes']['groupId'],_0x34eba7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x412666['size'])return;const _0x15e0e6=_0x24dc05['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46909f=>'attribute'==_0x46909f['type']&&_0x46909f['data']&&_0x134a6d['includes'](_0x46909f['data']['key'])&&_0x46909f['attributes']['groupId']!=_0x446ce7)['map'](_0x12fbb3=>({'listItem':_0x12fbb3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x12fbb3['attributes']['groupId']})),_0x14fee9=new Set();for(const {groupId:_0x175177,listItem:_0x4f61c0}of _0x15e0e6)_0x412666['has'](_0x4f61c0)&&_0x14fee9['add'](_0x175177);for(const _0x8228df of _0x24dc05['getSuggestions']())_0x14fee9['has'](_0x8228df['attributes']['groupId'])&&_0x8228df['setAttribute']('groupId',_0x446ce7);}['_supportLegacySuggestions'](){const _0x24656f=this['editor'],_0x4adad6=_0x24656f['locale'],_0x1409ad=_0x24656f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1409ad['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x38c4e5,_0x49e95f){const _0x4df79a=[];for(let _0xc141c3 of _0x38c4e5)_0xc141c3['start']['nodeAfter']===_0xc141c3['end']['parent']&&(_0xc141c3=_0x24656f['model']['createRange'](_0x24656f['model']['createPositionAt'](_0xc141c3['start']['nodeAfter'],0x0))),_0x4df79a['push'](_0xc141c3);_0x24656f['model']['change'](_0x101855=>{const _0x2e64f1=_0x24656f['model']['document']['selection'],_0x228d44=Array['from'](_0x2e64f1['getRanges']())['map'](_0x46f0c7=>_0x4d6067['fromRange'](_0x46f0c7));_0x101855['setSelection'](_0x4df79a),_0x24656f['commands']['get'](_0x49e95f['commandName'])['refresh'](),_0x49e95f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x24656f['execute'](_0x49e95f['commandName'],..._0x49e95f['commandParams']),_0x101855['setSelection'](_0x228d44);for(const _0x2526d7 of _0x228d44)_0x2526d7['detach']();});}),_0x1409ad['descriptionFactory']['registerElementLabel'](function(_0x5979cd){const _0x4c78cb=!_0x24656f['model']['schema']['isObject'](_0x5979cd),_0x4632f0=_0x5979cd['previousSibling'],_0x45c354=_0x5979cd['nextSibling'],_0x40da80=_0x5979cd['getAttribute']('listItemId'),_0x261d39=!_0x4632f0||_0x4632f0['getAttribute']('listItemId')!==_0x40da80,_0x2727e5=!_0x45c354||_0x45c354['getAttribute']('listItemId')!==_0x40da80;return _0x4c78cb&&Boolean(_0x40da80)&&_0x261d39&&_0x2727e5;},_0xbc4118=>o(_0x4adad6,'ELEMENT_LIST_ITEM',_0xbc4118));}['_registerLegacyDescription'](){const _0x31ee8d=this['editor'],_0x377c46=_0x31ee8d['locale'];function _0x22002e(_0x2bc269){const _0x32a134=_0x31ee8d['commands']['get']('bulletedList')['value'],_0x51cb3d=_0x31ee8d['commands']['get']('numberedList')['value'];return'numberedList'===_0x2bc269?_0x32a134:_0x51cb3d;}_0x31ee8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4f30c9){if('formatBlock'!=_0x4f30c9['type'])return;const {data:_0x3cfd74}=_0x4f30c9;if(!_0x3cfd74)return;let _0x48d6bd,_0xb4a022,_0x277d30,_0xdb7b5c;switch(_0x3cfd74['commandName']){case'bulletedList':_0x277d30=_0x3cfd74['commandParams'][0x0]['forceValue'],_0xdb7b5c=_0x22002e(_0x3cfd74['commandName']),_0x48d6bd=_0x277d30?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xdb7b5c&&_0x31ee8d['config']['get']('list.multiBlock')||(_0x48d6bd='*Change\x20to:*\x20%0'),_0xb4a022={'type':'format','content':o(_0x377c46,_0x48d6bd,o(_0x377c46,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x277d30=_0x3cfd74['commandParams'][0x0]['forceValue'],_0xdb7b5c=_0x22002e(_0x3cfd74['commandName']),_0x48d6bd=_0x277d30?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xdb7b5c&&_0x31ee8d['config']['get']('list.multiBlock')||(_0x48d6bd='*Change\x20to:*\x20%0'),_0xb4a022={'type':'format','content':o(_0x377c46,_0x48d6bd,o(_0x377c46,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x48d6bd='*Indent:*\x20%0',_0xb4a022={'type':'format','content':o(_0x377c46,_0x48d6bd,o(_0x377c46,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x48d6bd=function(_0x1e7c6d){const _0x41b5d9=_0x1e7c6d['getFirstRange']();let _0x332629=_0x41b5d9['start']['nodeAfter'];for(;_0x332629&&_0x41b5d9['containsItem'](_0x332629);){if(_0x332629['getAttribute']('listIndent')>0x0)return!0x1;_0x332629=_0x332629['nextSibling'];}return!0x0;}(_0x4f30c9)?o(_0x377c46,'*Format:*\x20remove\x20from\x20%0',o(_0x377c46,function(_0x2390dc){return'ELEMENT_'+_0x2390dc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4f30c9))):o(_0x377c46,'*Outdent:*\x20%0',o(_0x377c46,'ELEMENT_LIST_ITEM')),_0xb4a022={'type':'format','content':_0x48d6bd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3cfd74['multipleBlocks']&&(_0x48d6bd='*Merge:*\x20%0',_0xb4a022={'type':'deletion','content':o(_0x377c46,_0x48d6bd,o(_0x377c46,'ELEMENT_LIST_ITEM'))});}return _0xb4a022;});}}function Ee(_0x4e1be7){let _0x50bdb2=_0x4e1be7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x50bdb2;){const _0x23d888=_0x50bdb2['getAttribute']('listItemId');if(!_0x23d888)return!0x1;if(_0x23d888==_0x4e1be7['data']['newValue'])return'newValue';if(_0x23d888==_0x4e1be7['data']['oldValue'])return'oldValue';_0x50bdb2=_0x50bdb2['previousSibling'];}return!0x1;}class pe extends _0xbd4bc4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x17a1d4=this['editor']['config']['get']('list.properties'),_0x3e3904=this['editor']['plugins']['get']('TrackChangesEditing');_0x17a1d4['styles']&&(_0x3e3904['enableDefaultAttributesIntegration']('listStyle'),_0x3e3904['registerBlockAttribute']('listStyle')),_0x17a1d4['reversed']&&(_0x3e3904['enableDefaultAttributesIntegration']('listReversed'),_0x3e3904['registerBlockAttribute']('listReversed')),_0x17a1d4['startIndex']&&(_0x3e3904['enableDefaultAttributesIntegration']('listStart'),_0x3e3904['registerBlockAttribute']('listStart'));const _0x3c1ed7={'type':'format','content':''};_0x3e3904['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x511d86=this['editor']['locale'];_0x3e3904['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x511d86,'FORMAT_LIST_REVERSED')),_0x3e3904['descriptionFactory']['registerDescriptionCallback'](_0x47826b=>{const {data:_0x39050c}=_0x47826b;if(_0x39050c&&'listReversed'==_0x39050c['key'])return null==_0x39050c['newValue']||0x0==_0x39050c['newValue']&&null==_0x39050c['oldValue']?_0x3c1ed7:void 0x0;}),_0x3e3904['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x511d86,'FORMAT_LIST_START')),_0x3e3904['descriptionFactory']['registerDescriptionCallback'](_0x1b3f88=>{const {data:_0x51beea}=_0x1b3f88;if(_0x51beea&&'listStart'==_0x51beea['key'])return null==_0x51beea['newValue']||0x1==_0x51beea['newValue']&&null==_0x51beea['oldValue']?_0x3c1ed7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1b0733=>{if(_0x1b0733['batch']['isUndo'])return!0x1;let _0x958a02=!0x1;const _0x15c576=_0x3e3904['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1452a2=>{const _0x1a046f=_0x3e3904['_getAttributeKey'](_0x1452a2);return'listStart'==_0x1a046f||'listReversed'==_0x1a046f;});for(const _0x134bdf of _0x15c576){const _0x14e0f3=_0x134bdf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x14e0f3||'customNumbered'==_0x14e0f3)continue;_0x3e3904['_findSuggestions'](_0x134bdf['getFirstRange'](),'attribute')['find'](_0x2f4be9=>'listType'==_0x3e3904['_getAttributeKey'](_0x2f4be9['suggestion']))||(_0x1b0733['removeMarker'](_0x134bdf['getFirstMarker']()),_0x958a02=!0x0);}return _0x958a02;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1a17e7){const _0x5b70d0=this['editor']['locale'],{data:_0x1f1b4c}=_0x1a17e7,_0x26f25a={'type':'format','content':''};if(!_0x1f1b4c||'listStyle'!=_0x1f1b4c['key'])return;if(!_0x1f1b4c['oldValue'])return'default'==_0x1f1b4c['newValue']?_0x26f25a:{'type':'format','content':''+o(_0x5b70d0,'*Set\x20format:*\x20%0',o(_0x5b70d0,this['_getTranslationKeyForListStyle'](_0x1f1b4c['newValue'])))};if(!_0x1f1b4c['newValue']){if('default'==_0x1f1b4c['oldValue'])return _0x26f25a;let _0x40dbaa=_0x1a17e7['head'];for(;_0x40dbaa;){if(_0x40dbaa['data']&&'listType'==_0x40dbaa['data']['key']&&_0x40dbaa['data']['newValue'])return _0x26f25a;_0x40dbaa=_0x40dbaa['next'];}return{'type':'format','content':''+o(_0x5b70d0,'*Remove\x20format:*\x20%0',o(_0x5b70d0,this['_getTranslationKeyForListStyle'](_0x1f1b4c['oldValue'])))};}if('default'!=_0x1f1b4c['newValue'])return{'type':'format','content':''+o(_0x5b70d0,'*Set\x20format:*\x20%0',o(_0x5b70d0,this['_getTranslationKeyForListStyle'](_0x1f1b4c['newValue'])))};let _0xdd921f=_0x1a17e7['head'];for(;_0xdd921f;){if(_0xdd921f['data']&&'listType'==_0xdd921f['data']['key']&&_0xdd921f['data']['newValue']&&_0xdd921f['data']['oldValue'])return _0x26f25a;_0xdd921f=_0xdd921f['next'];}return{'type':'format','content':o(_0x5b70d0,'*Set\x20format:*\x20%0',o(_0x5b70d0,'ELEMENT_'+_0x1a17e7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2d4a51=this['editor'],_0x3c0156=_0x2d4a51['locale'];_0x2d4a51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b8340=>{if('formatBlock'!=_0x5b8340['type'])return;const {data:_0x5e7db0}=_0x5b8340;if(!_0x5e7db0)return;let _0x579be3,_0x18e04f;switch(_0x5e7db0['commandName']){case'listStyle':_0x579be3='*Change\x20to:*\x20%0',_0x18e04f={'type':'format','content':o(_0x3c0156,_0x579be3,o(_0x3c0156,this['_getTranslationKeyForListStyle'](_0x5e7db0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x579be3=_0x5e7db0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18e04f={'type':'format','content':o(_0x3c0156,_0x579be3)};break;case'listStart':_0x579be3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18e04f={'type':'format','content':o(_0x3c0156,_0x579be3,_0x5e7db0['commandParams'][0x0]['startIndex'])};}return _0x18e04f;});}['_getTranslationKeyForListStyle'](_0x2082df){return'ELEMENT_'+function(_0x3a659a){if(ye['includes'](_0x3a659a))return'bulleted';if(Se['includes'](_0x3a659a))return'numbered';return null;}(_0x2082df)['toUpperCase']()+'_LIST_'+_0x2082df['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0xbd4bc4{static get['requires'](){return[_0x8e49f7];}['init'](){const _0x178136=this['editor'],_0x587ff7=_0x178136['plugins']['get']('TrackChangesEditing'),_0x48384c=_0x178136['commands']['get']('enter');_0x587ff7['enableCommand']('enter',()=>{_0x178136['model']['change'](_0x38391c=>{const _0x28bb8b=_0x178136['model']['document']['selection'],_0x530298=_0x28bb8b['getFirstPosition'](),_0x569dac=_0x4d6067['fromRange'](_0x28bb8b['getFirstRange']());if(_0x48384c['enterBlock'](_0x38391c)){const _0x2439cd=_0x178136['model']['createPositionAt'](_0x530298['parent']['nextSibling'],0x0),_0xe57918=_0x38391c['createRange'](_0x530298,_0x2439cd);_0x587ff7['markInsertion'](_0xe57918);}else _0x38391c['setSelection'](_0x38391c['createRange'](_0x569dac['end']));_0x569dac['detach'](),_0x48384c['fire']('afterExecute',{'writer':_0x38391c});});}),_0x178136['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x178136,'split'),{'priority':'high'}),_0x178136['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2cc932,_0x1da6bc,_0xb4a55b)=>{const _0x29b33b=_0xb4a55b['mapper']['markerNameToElements'](_0x1da6bc['markerName']);if(_0x29b33b){for(const _0x3a2b0a of _0x29b33b)_0x3a2b0a['hasClass']('ck-suggestion-marker-split')&&(_0xb4a55b['mapper']['unbindElementFromMarkerName'](_0x3a2b0a,_0x1da6bc['markerName']),_0xb4a55b['writer']['remove'](_0x3a2b0a));}},{'priority':'high'}),_0x178136['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34994f,_0x1e02a4,_0x54ef55)=>{_0x54ef55['options']['showSuggestionHighlights']&&_e(_0x178136,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x34994f,_0x1e02a4,_0x54ef55);},{'priority':'high'});}}class X extends _0xbd4bc4{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x59d1c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x59d1c4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x59d1c4['enableCommand']('findNext'),_0x59d1c4['enableCommand']('findPrevious'),_0x59d1c4['enableCommand']('replace'),_0x59d1c4['enableCommand']('replaceAll');}['handleFindCommand'](_0x59f122,_0x3179fe,_0xd61dcd={}){const _0x12f80b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x59f122(_0x453ea5=>{let _0xf8716f=('string'==typeof _0x3179fe?_0x12f80b['findByTextCallback'](_0x3179fe,_0xd61dcd):_0x3179fe)(_0x453ea5);Array['isArray'](_0xf8716f)&&(_0xf8716f={'results':_0xf8716f,'searchText':'string'==typeof _0x3179fe?_0x3179fe:''});const _0x398340=_0xf8716f['results']['filter'](_0x1ec5ae=>!0x1===this['_isInDeletionRange'](_0x1ec5ae,_0x453ea5['item']));return{..._0xf8716f,'results':_0x398340};},_0xd61dcd);}['_isInDeletionRange'](_0x38fae8,_0x3ea288){const _0x2ff9cb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ea288,_0x38fae8['start']),this['editor']['model']['createPositionAt'](_0x3ea288,_0x38fae8['end']));for(const _0x188522 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2ff9cb['getIntersection'](_0x188522['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0xbd4bc4{['afterInit'](){const _0x2ee677=this['editor']['locale'],_0x1aeb8a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4b4b61,commandName:_0x40e792}of ro)this['editor']['plugins']['has'](_0x4b4b61)&&(_0x1aeb8a['enableDefaultAttributesIntegration'](_0x40e792),_0x1aeb8a['registerInlineAttribute'](_0x40e792));_0x1aeb8a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2ee677,'FORMAT_FONT_SIZE')),_0x1aeb8a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2ee677,'FORMAT_FONT_FAMILY')),_0x1aeb8a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2ee677,'FORMAT_FONT_COLOR')),_0x1aeb8a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2ee677,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c226=this['editor'],_0x1ded34=_0x51c226['locale'];_0x51c226['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bdd8e=>{const _0x5272db=_0x1ded34['t'];if('formatInline'!=_0x2bdd8e['type'])return;const {data:_0xedf365}=_0x2bdd8e;if(null!=_0xedf365){if('fontSize'==_0xedf365['commandName']){const _0x39eb73=_0xedf365['commandParams'][0x0]['value'];if(_0x39eb73){const _0x574346=_0x5272db(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x403433=>_0x403433['model']==_0x39eb73)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ded34,'*Set\x20font\x20size:*\x20%0',_0x574346)};}return{'type':'format','content':o(_0x1ded34,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xedf365['commandName']){const _0xea39e0=_0xedf365['commandParams'][0x0]['value'];return _0xea39e0?{'type':'format','content':o(_0x1ded34,'*Set\x20font\x20family:*\x20%0',_0xea39e0)}:{'type':'format','content':o(_0x1ded34,'*Reset\x20font\x20family*')};}if('fontColor'==_0xedf365['commandName']){const _0xd3ce69=_0xedf365['commandParams'][0x0]['value'];if(_0xd3ce69){const _0x54eab5=_0x49fbac(this['editor']['config']['get']('fontColor.colors'))['find'](_0x48fadb=>_0x48fadb['model']==_0xd3ce69);let _0x80b36=_0xd3ce69,_0x77a177='';return _0x54eab5&&(_0x80b36=_0x54eab5['label'],_0x77a177=_0x5272db(_0x80b36)['toLowerCase']()),{'type':'format','content':o(_0x1ded34,'*Set\x20font\x20color:*\x20%0',_0x77a177)['trim'](),'color':{'value':_0xd3ce69,'title':_0x77a177||_0x80b36}};}return{'type':'format','content':o(_0x1ded34,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xedf365['commandName']){const _0x163bea=_0xedf365['commandParams'][0x0]['value'];if(_0x163bea){const _0x3c085f=_0x49fbac(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5a647a=>_0x5a647a['model']==_0x163bea);let _0xbcc9e9=_0x163bea,_0xa3b699='';return _0x3c085f&&(_0xbcc9e9=_0x3c085f['label'],_0xa3b699=_0x5272db(_0xbcc9e9)['toLowerCase']()),{'type':'format','content':o(_0x1ded34,'*Set\x20font\x20background\x20color:*\x20%0',_0xa3b699)['trim'](),'color':{'value':_0x163bea,'title':_0xa3b699||_0xbcc9e9}};}return{'type':'format','content':o(_0x1ded34,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0xbd4bc4{['afterInit'](){const _0x48d33f=this['editor'],_0x45a4f9=_0x48d33f['plugins']['get']('TrackChangesEditing'),_0x59c9da=_0x48d33f['commands']['get']('copyFormat'),_0x3f3172=_0x48d33f['commands']['get']('pasteFormat');_0x59c9da&&_0x3f3172&&(_0x45a4f9['enableDefaultAttributesIntegration']('pasteFormat'),_0x45a4f9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x49ef8e=this['editor'],_0x18b693=_0x49ef8e['locale'];_0x49ef8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281dc8=>{if('formatBlock'!=_0x281dc8['type']&&'formatInline'!=_0x281dc8['type'])return;const {data:_0x344efe}=_0x281dc8;if(_0x344efe&&'pasteFormat'===_0x344efe['commandName']){const _0x19ba03=[],_0x3d02a2=_0x344efe['commandParams'][0x0];for(const [_0x2d0acc,_0x36e731]of Object['entries'](_0x3d02a2))_0x19ba03['push'](so(_0x49ef8e,_0x2d0acc,_0x36e731));return _0x19ba03['length']?{'type':'format','content':o(_0x18b693,'*Set\x20format\x20to:*\x20%0',_0x19ba03['join'](',\x20'))}:{'type':'format','content':o(_0x18b693,'*Remove\x20all\x20formatting*')};}});}}function so(_0x18b4ad,_0x45add2,_0x9053e8){const _0xc1aae9=_0x18b4ad['locale']['t'],_0x16e943=_0x45add2['split'](/(?=[A-Z])/)['join']('\x20'),_0x1d0364=_0xc1aae9(_0x16e943['charAt'](0x0)['toUpperCase']()+_0x16e943['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x9053e8)return _0x1d0364;if('fontColor'===_0x45add2||'fontBackgroundColor'===_0x45add2){const _0x38dae3=_0x49fbac(_0x18b4ad['config']['get']('fontColor.colors'))['find'](_0x1f0b4b=>_0x1f0b4b['model']==_0x9053e8);return _0x1d0364+'\x20('+(_0x38dae3?_0xc1aae9(_0x38dae3['label'])['toLowerCase']():_0x9053e8)+')';}if('fontSize'===_0x45add2&&isNaN(parseFloat(_0x9053e8))){const _0x4942df=_0x18b4ad['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x18b4ad['config']['get']('fontSize.options'))['find'](_0x5b004b=>_0x5b004b['model']==_0x9053e8);return _0x1d0364+'\x20('+(_0x4942df?_0xc1aae9(_0x4942df['title'])['toLowerCase']():_0x9053e8)+')';}return _0x1d0364+'\x20('+_0x9053e8+')';}class tt extends _0xbd4bc4{['_headingOptions'];['afterInit'](){const _0x3f5cc8=this['editor'];if(!_0x3f5cc8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3f5cc8['config']['get']('heading.options');const _0x2ebb6f=_0x3f5cc8['locale'],_0x389754=_0x3f5cc8['plugins']['get']('TrackChangesEditing');_0x389754['enableDefaultAttributesIntegration']('heading');for(const _0x6bf052 of this['_headingOptions'])'paragraph'!=_0x6bf052['model']&&_0x389754['descriptionFactory']['registerElementLabel'](_0x6bf052['model'],_0x32337d=>{const _0x22593d=this['_getHeadingLevel'](_0x6bf052['model']);return null!==_0x22593d?_0x546869(_0x32337d,_0x22593d):_0x451d75(_0x32337d,_0x6bf052['title']);});function _0x546869(_0x284c00,_0x3e271c){return o(_0x2ebb6f,'ELEMENT_HEADING',[_0x284c00,_0x3e271c]);}function _0x451d75(_0x571983,_0x3e317c){return o(_0x2ebb6f,'ELEMENT_HEADING_CUSTOM',[_0x571983,_0x3e317c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58250e=this['editor'],_0x1a99fa=_0x58250e['locale'];function _0x26fb06(_0x18910f,_0xbfb3ab){return o(_0x1a99fa,'ELEMENT_HEADING_CUSTOM',[_0x18910f,_0xbfb3ab]);}_0x58250e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3efe46=>{if('formatBlock'!=_0x3efe46['type'])return;const {data:_0x58b053}=_0x3efe46;if(_0x58b053&&'heading'==_0x58b053['commandName']){const _0x389814=_0x58b053['commandParams'][0x0]['value'],_0x229250=this['_getHeadingLevel'](_0x389814);if(null!==_0x229250)return{'type':'format','content':o(_0x1a99fa,'*Change\x20to:*\x20%0',(_0x2d60f3=0x1,_0x1a67c3=_0x229250,o(_0x1a99fa,'ELEMENT_HEADING',[_0x2d60f3,_0x1a67c3])))};const _0x386fe7=this['_headingOptions']['find'](_0xf048a7=>_0xf048a7['model']===_0x389814)['title'];return{'type':'format','content':o(_0x1a99fa,'*Change\x20to:*\x20%0',_0x26fb06(0x1,_0x386fe7))};}var _0x2d60f3,_0x1a67c3;});}['_getHeadingLevel'](_0x3290de){const _0xb1c260=_0x3290de['match'](/^heading(\d+)/);if(_0xb1c260)return _0xb1c260[0x1];const _0x5790ce=this['_headingOptions']?.['find'](_0x48846e=>_0x48846e['model']==_0x3290de);if(_0x5790ce&&_0x5790ce['view']){const _0x29cc1c=_0x5790ce['view'],_0x56042f=(_0x29cc1c['name']??_0x29cc1c)['match'](/^h(\d+)/);if(_0x56042f)return _0x56042f[0x1];}return null;}}class et extends _0xbd4bc4{['afterInit'](){const _0x3c845e=this['editor'];if(!_0x3c845e['plugins']['has']('HighlightEditing'))return;const _0x20326f=_0x3c845e['plugins']['get']('TrackChangesEditing'),_0x56df51=_0x3c845e['locale'];_0x20326f['enableDefaultAttributesIntegration']('highlight'),_0x20326f['registerInlineAttribute']('highlight'),_0x20326f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x56df51,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a6b9d=this['editor'],_0x31faf2=_0x4a6b9d['locale'];_0x4a6b9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e5670=>{if('formatInline'!=_0x1e5670['type'])return;const {data:_0x404f2e}=_0x1e5670;if(_0x404f2e&&'highlight'==_0x404f2e['commandName']){const _0x33aee3=_0x31faf2['t'],_0x4e4336=_0x404f2e['commandParams'][0x0]['value'];if(_0x4e4336){const _0x24b84c=_0x4a6b9d['config']['get']('highlight.options')['find'](_0x4bc40b=>_0x4bc40b['model']==_0x4e4336),_0x53085c=_0x33aee3(_0x24b84c['title'])['toLowerCase']();return{'type':'format','content':o(_0x31faf2,'*Set\x20highlight:*\x20%0',_0x53085c),'color':{'value':_0x24b84c['color'],'title':_0x24b84c['title']}};}return{'type':'format','content':o(_0x31faf2,'*Remove\x20highlight*',o(_0x31faf2,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xbd4bc4{['afterInit'](){const _0x46249d=this['editor'];if(!_0x46249d['plugins']['has']('HorizontalLineEditing'))return;_0x46249d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3bf0ec=_0x46249d['plugins']['get']('TrackChangesEditing'),_0x4df438=_0x46249d['locale'];_0x3bf0ec['descriptionFactory']['registerElementLabel']('horizontalLine',_0x377ed1=>o(_0x4df438,'ELEMENT_HORIZONTAL_LINE',_0x377ed1)),_0x46249d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x713d23,{writer:_0x4d40e7,options:_0x4ce3ce})=>{if(!_0x4ce3ce['showSuggestionHighlights'])return null;const _0x41a462=_0x4d40e7['createContainerElement']('div'),_0xd50b57=_0x4d40e7['createEmptyElement']('hr');return _0x4d40e7['addClass']('ck-horizontal-line',_0x41a462),_0x4d40e7['insert'](_0x4d40e7['createPositionAt'](_0x41a462,0x0),_0xd50b57),_0x41a462;},'converterPriority':'high'});}}class st extends _0xbd4bc4{['afterInit'](){const _0xa2d4f3=this['editor'];if(!_0xa2d4f3['plugins']['has']('HtmlEmbed'))return;const _0x277a1c=_0xa2d4f3['plugins']['get']('TrackChangesEditing'),_0x27b63d=_0xa2d4f3['locale'];_0x277a1c['descriptionFactory']['registerElementLabel']('rawHtml',_0x24a194=>o(_0x27b63d,'ELEMENT_HTML_EMBED',_0x24a194)),_0x277a1c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x277a1c['registerBlockAttribute']('value'),_0x277a1c['descriptionFactory']['registerDescriptionCallback'](_0x45def9=>{if('attribute'!=_0x45def9['type'])return;const {data:_0x66fca3}=_0x45def9;if(_0x66fca3&&'value'==_0x66fca3['key']&&_0x45def9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4fffa5=o(_0x27b63d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x27b63d,'*Change\x20%0\x20content*',_0x4fffa5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a4199=this['editor'],_0xe304a2=_0x1a4199['locale'];_0x1a4199['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x675abe=>{if('formatBlock'!=_0x675abe['type'])return;const {data:_0xea720}=_0x675abe;if(_0xea720&&'htmlEmbed'==_0xea720['commandName']){const _0x3ed965=o(_0xe304a2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xe304a2,'*Change\x20%0\x20content*',_0x3ed965)};}});}}class nt extends _0xbd4bc4{['afterInit'](){const _0x5566ff=this['editor'];if(!_0x5566ff['plugins']['has']('ImageEditing'))return;const _0x599c4b=_0x5566ff['plugins']['get']('TrackChangesEditing'),_0x9f49b7=_0x5566ff['plugins']['get']('ImageUtils'),_0x41daa4=_0x5566ff['locale'];_0x599c4b['enableCommand']('insertImage'),_0x599c4b['descriptionFactory']['registerElementLabel']('imageBlock',_0x1b40a6=>o(_0x41daa4,'ELEMENT_IMAGE',_0x1b40a6)),_0x599c4b['descriptionFactory']['registerElementLabel']('imageInline',_0x4267ec=>o(_0x41daa4,'ELEMENT_INLINE_IMAGE',_0x4267ec)),_0x599c4b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x41daa4,'ELEMENT_CAPTION')),_0x5566ff['plugins']['has']('ImageUploadEditing')&&_0x599c4b['enableCommand']('uploadImage'),_0x5566ff['plugins']['has']('ImageBlockEditing')&&_0x5566ff['plugins']['has']('ImageInlineEditing')&&(_0x599c4b['enableCommand']('imageTypeInline',(_0x208c9e,_0x508fc3)=>{const _0xf39f6b=_0x9f49b7['getClosestSelectedImageElement'](_0x5566ff['model']['document']['selection']);_0x5566ff['model']['change'](()=>{_0x599c4b['markBlockFormat'](_0xf39f6b,{'commandName':'imageTypeInline','commandParams':[_0x508fc3]},[],'convertBlockImageToInline');});}),_0x599c4b['enableCommand']('imageTypeBlock',(_0x372a14,_0x2a94a6)=>{_0x5566ff['model']['change'](_0x538caa=>{let _0x46122f=_0x9f49b7['getClosestSelectedImageElement'](_0x5566ff['model']['document']['selection']),_0x2dbfef=_0x538caa['createRangeOn'](_0x46122f);const _0xe9f91b=_0x145a1c['fromPosition'](_0x2dbfef['start'],'toPrevious'),_0x970a6e=_0x145a1c['fromPosition'](_0x2dbfef['end'],'toNext');_0x599c4b['forceDefaultExecution'](()=>_0x372a14(_0x2a94a6)),_0x46122f=_0x9f49b7['getClosestSelectedImageElement'](_0x5566ff['model']['document']['selection']),_0x2dbfef=_0x538caa['createRangeOn'](_0x46122f);const _0x1309d8=_0x538caa['createRange'](_0xe9f91b,_0x970a6e);_0xe9f91b['detach'](),_0x970a6e['detach'](),_0x599c4b['markBlockFormat'](_0x46122f,{'commandName':'imageTypeInline','commandParams':[_0x2a94a6]},[],'convertInlineImageToBlock'),_0x1309d8['start']['isBefore'](_0x2dbfef['start'])&&_0x599c4b['markInsertion'](_0x538caa['createRange'](_0x1309d8['start'],_0x2dbfef['start']),'convertInlineImageToBlock'),_0x2dbfef['end']['isBefore'](_0x1309d8['end'])&&_0x599c4b['markInsertion'](_0x538caa['createRange'](_0x2dbfef['end'],_0x1309d8['end']),'convertInlineImageToBlock');});}),_0x599c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x599c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x599c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x599c4b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x599c4b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x599c4b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x27d508])=>{const _0x72b00=_0x599c4b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x426273=_0x27d508['start'],_0x58c247=_0x27d508['end'];const _0x1b2a7a=_0x5566ff['model']['schema']['getNearestSelectionRange'](_0x426273,'backward'),_0x2ee565=_0x5566ff['model']['schema']['getNearestSelectionRange'](_0x58c247,'forward');_0x1b2a7a['isCollapsed']&&(_0x426273=_0x1b2a7a['start']),_0x2ee565['isCollapsed']&&(_0x58c247=_0x2ee565['end']),_0x72b00([_0x5566ff['model']['createRange'](_0x426273,_0x58c247)]);}),_0x599c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5bb067),_0x599c4b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5bb067)),_0x5566ff['plugins']['has']('ImageCaptionEditing')&&(_0x599c4b['enableCommand']('toggleImageCaption',(_0x3f0710,_0x543e2c)=>{const _0x424324=_0x5566ff['plugins']['get']('ImageCaptionUtils');let _0x155cb5=_0x9f49b7['getClosestSelectedImageElement'](_0x5566ff['model']['document']['selection']),_0x18837b=_0x424324['getCaptionFromImageModelElement'](_0x155cb5);_0x5566ff['model']['change'](()=>{if(_0x18837b)return void _0x599c4b['markDeletion'](_0x5566ff['model']['createRangeOn'](_0x18837b));const _0x3a9472=_0x9f49b7['isBlockImage'](_0x155cb5);_0x3f0710(_0x543e2c),_0x155cb5=_0x9f49b7['getClosestSelectedImageElement'](_0x5566ff['model']['document']['selection']),_0x18837b=_0x424324['getCaptionFromImageModelElement'](_0x155cb5),_0x599c4b['markInsertion'](_0x5566ff['model']['createRangeOn'](_0x18837b),_0x3a9472?null:'imageCaption');});}),_0x599c4b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5bb067));const _0x9c7c43=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4b7404(_0x33be5a,_0x3f41b3){const _0x205776=_0x9c7c43['findIndex'](({type:_0x4aa08c,subType:_0x42d82f})=>_0x33be5a['type']==_0x4aa08c&&_0x33be5a['subType']==_0x42d82f),_0x10b2c8=_0x9c7c43['findIndex'](({type:_0x411f07,subType:_0x5347de})=>_0x3f41b3['type']==_0x411f07&&_0x3f41b3['subType']==_0x5347de);if(_0x205776<0x0||_0x10b2c8<0x0)return!0x1;const _0x1085d0=_0x33be5a['getFirstRange'](),_0x257e32=_0x3f41b3['getFirstRange']();if((0x0==_0x205776||0x1==_0x205776)&&0x2==_0x10b2c8&&_0x1085d0['isIntersecting'](_0x257e32))return!0x0;if(0x2==_0x205776&&0x3==_0x10b2c8){const _0x3535e7=_0x599c4b['_findSuggestions'](_0x1085d0,'insertion')['filter'](({suggestion:_0x25abe2,meta:_0x2103ae})=>_0x2103ae['isOwn']&&'convertInlineImageToBlock'==_0x25abe2['subType']);if(_0x3535e7['length']>0x1&&_0x257e32['end']['isEqual'](_0x1085d0['start']))return!0x0;if(0x1==_0x3535e7['length']&&(_0x1085d0['start']['isEqual'](_0x257e32['end'])||_0x1085d0['end']['isEqual'](_0x257e32['start'])))return!0x0;}if(0x3==_0x205776&&0x3==_0x10b2c8&&_0x1085d0['start']['isBefore'](_0x257e32['start'])){const _0x58d730=_0x1085d0['end']['nodeAfter'],_0x50755f=_0x257e32['start']['nodeBefore'];return _0x9f49b7['isBlockImage'](_0x58d730)&&_0x58d730===_0x50755f;}return!0x1;}function _0x5bb067(_0x41ca9b,_0x3c41e3){return _0x4b7404(_0x41ca9b,_0x3c41e3)?[_0x41ca9b,_0x3c41e3]:_0x4b7404(_0x3c41e3,_0x41ca9b)?[_0x3c41e3,_0x41ca9b]:null;}_0x5566ff['plugins']['has']('ImageResize')&&(_0x599c4b['enableDefaultAttributesIntegration']('resizeImage'),_0x599c4b['registerBlockAttribute']('resizedWidth'),_0x599c4b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x41daa4,'FORMAT_IMAGE_SIZE'))),_0x5566ff['plugins']['has']('ImageTextAlternativeEditing')&&(_0x599c4b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x599c4b['registerBlockAttribute']('alt')),_0x599c4b['descriptionFactory']['registerDescriptionCallback'](_0x5d4c7b=>{if(!!_0x9c7c43['find'](({type:_0x2ac301,subType:_0x56a92b})=>_0x5d4c7b['type']==_0x2ac301&&_0x5d4c7b['subType']==_0x56a92b))return _0x5d4c7b['previous']?{}:void 0x0;}),_0x599c4b['descriptionFactory']['registerDescriptionCallback'](_0x2a7570=>{if('insertion'==_0x2a7570['type']||'deletion'==_0x2a7570['type']){const _0xaeeb27=_0x2a7570['getContainedElement']();if(_0xaeeb27&&_0xaeeb27['is']('element','caption'))return{'type':'insertion'==_0x2a7570['type']?'addObject':'removeObject','element':_0xaeeb27,'quantity':0x1};}}),_0x599c4b['descriptionFactory']['registerDescriptionCallback'](_0x4cac47=>'formatBlock'==_0x4cac47['type']&&'convertInlineImageToBlock'==_0x4cac47['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4cac47['type']&&'convertBlockImageToInline'==_0x4cac47['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x599c4b['descriptionFactory']['registerDescriptionCallback'](_0x42da76=>{if('attribute'!=_0x42da76['type'])return;const {data:_0x445c22}=_0x42da76;if(!_0x445c22||'alt'!=_0x445c22['key'])return;const _0x478451=_0x445c22['newValue'];return _0x478451?{'type':'format','content':o(_0x41daa4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x478451+'\x22')}:{'type':'format','content':o(_0x41daa4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49ea11=this['editor'],_0x50c8db=_0x49ea11['locale'];_0x49ea11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c5644=>{if('formatBlock'!=_0x3c5644['type']&&'formatInline'!=_0x3c5644['type'])return;const {data:_0x51159a}=_0x3c5644;if(_0x51159a){if('imageTextAlternative'==_0x51159a['commandName']){const _0x513471=_0x51159a['commandParams'][0x0]['newValue'];return _0x513471?{'type':'format','content':o(_0x50c8db,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x513471+'\x22')}:{'type':'format','content':o(_0x50c8db,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x51159a['commandName']){const _0x4ef0da=_0x51159a['commandParams'][0x0]['width'];return _0x4ef0da?{'type':'format','content':o(_0x50c8db,'*Set\x20image\x20width:*\x20%0',_0x4ef0da)}:{'type':'format','content':o(_0x50c8db,'*Reset\x20image\x20width*')};}}});}}class ot extends _0xbd4bc4{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x29ef3b=this['editor']['locale'],_0xe950a8=this['editor']['plugins']['get']('TrackChangesEditing');_0xe950a8['enableDefaultAttributesIntegration']('replaceImageSource'),_0xe950a8['registerBlockAttribute']('src'),_0xe950a8['descriptionFactory']['registerDescriptionCallback'](_0x22489a=>{if('attribute'!=_0x22489a['type'])return;const {data:_0x437480}=_0x22489a;return _0x437480&&'src'==_0x437480['key']?_0x437480['newValue']&&_0x437480['oldValue']?{'type':'format','content':o(_0x29ef3b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x532a96=this['editor']['plugins']['get']('TrackChangesEditing');_0x532a96['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x532a96['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x532a96['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x532a96['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd17dc=this['editor'],_0x44978e=_0xd17dc['locale'];_0xd17dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12844a=>{if('formatBlock'!=_0x12844a['type']&&'formatInline'!=_0x12844a['type'])return;const {data:_0x321331}=_0x12844a;if(!_0x321331||'replaceImageSource'!=_0x321331['commandName'])return;return{'type':'format','content':o(_0x44978e,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0xbd4bc4{['afterInit'](){const _0x43d636=this['editor'];if(!_0x43d636['plugins']['has']('ImageStyleEditing'))return;const _0x2bc043=_0x43d636['plugins']['get']('TrackChangesEditing'),_0x2d225a=_0x43d636['plugins']['get']('ImageUtils'),_0x53db1e={};_0x2bc043['enableCommand']('imageStyle',(_0x34bdef,_0x1c9c39)=>{const _0x2ad454=_0x43d636['plugins']['get']('Users')['me'],_0xb774d6=_0x43d636['commands']['get']('imageStyle');let _0x2abde7=_0x2d225a['getClosestSelectedImageElement'](_0x43d636['model']['document']['selection']),_0x3063fb=_0x43d636['model']['createRangeOn'](_0x2abde7),_0x341213=_0xb774d6['value'];if(_0x341213==_0x1c9c39['value'])return;const _0x3a246e={'commandName':'imageStyle','commandParams':[_0x1c9c39],'formatGroupId':_0x44c9df()};_0x43d636['model']['change'](()=>{if(_0x2bc043['getSuggestions']()['filter'](_0x4c4976=>_0x4c4976['isInContent']&&_0x2ad454==_0x4c4976['author']&&('formatBlock'==_0x4c4976['type']||'formatInline'==_0x4c4976['type'])&&('imageStylePreApply'==_0x4c4976['subType']||'imageStylePostApply'==_0x4c4976['subType'])&&_0x4c4976['getFirstRange']()['isEqual'](_0x3063fb))['forEach'](_0x3a0cdc=>_0x2bc043['discardSuggestion'](_0x3a0cdc['head'])),_0x2abde7=_0x2d225a['getClosestSelectedImageElement'](_0x43d636['model']['document']['selection']),_0x3063fb=_0x43d636['model']['createRangeOn'](_0x2abde7),_0xb774d6['refresh'](),_0x43d636['commands']['get']('imageTypeInline')['refresh'](),_0x43d636['commands']['get']('imageTypeBlock')['refresh'](),_0x341213=_0xb774d6['value'],_0x341213!=_0x1c9c39['value'])return _0x2d225a['isInlineImage'](_0x2abde7)&&_0xb774d6['shouldConvertImageType'](_0x1c9c39['value'],_0x2abde7)?(_0x34bdef({..._0x1c9c39,'setImageSizes':!0x1}),_0x2abde7=_0x2d225a['getClosestSelectedImageElement'](_0x43d636['model']['document']['selection']),void _0x2bc043['markBlockFormat'](_0x2abde7,{..._0x3a246e,'commandReversedParams':[{'value':_0x341213||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2d225a['isBlockImage'](_0x2abde7)?_0x2bc043['markBlockFormat'](_0x2abde7,_0x3a246e,[],'imageStylePostApply'):_0x2bc043['markInlineFormat'](_0x3063fb,_0x3a246e,'imageStylePostApply'));});});for(const _0x1e40e7 of _0x43d636['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x53db1e[_0x1e40e7['name']]=_0x1e40e7['title']['toLowerCase']();_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xd6a5e1])=>{_0x2d225a['setImageNaturalSizeAttributes'](_0xd6a5e1['getContainedElement']());}),_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d83b4,_0x5c8ac0)=>{_0x2bc043['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d83b4,{'commandName':_0x5c8ac0['commandName'],'commandParams':_0x5c8ac0['commandReversedParams']});}),_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3193d5,_0x223b22){if(_0x46a9d5(_0x3193d5,_0x223b22))return[_0x3193d5,_0x223b22];if(_0x46a9d5(_0x223b22,_0x3193d5))return[_0x223b22,_0x3193d5];return null;});const _0x9f8ff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46a9d5(_0x17fa49,_0x65daab){const _0x48c863=_0x9f8ff['findIndex'](({type:_0xd061fa,subType:_0x29e32c})=>_0x17fa49['type']==_0xd061fa&&_0x17fa49['subType']==_0x29e32c),_0x56ba91=_0x9f8ff['findIndex'](({type:_0x5ca6c0,subType:_0x53a82c})=>_0x65daab['type']==_0x5ca6c0&&_0x65daab['subType']==_0x53a82c);if(_0x48c863<0x0||_0x56ba91<0x0)return!0x1;const _0xea5c16=_0x17fa49['getFirstRange'](),_0x5a59aa=_0x65daab['getFirstRange']();if((0x0==_0x48c863||0x1==_0x48c863)&&0x2==_0x56ba91&&_0xea5c16['isIntersecting'](_0x5a59aa))return!0x0;if(0x2==_0x48c863&&0x3==_0x56ba91){const _0x5bdc90=_0x2bc043['_findSuggestions'](_0xea5c16,'insertion')['filter'](({suggestion:_0x123f49,meta:_0x2e7d7a})=>_0x2e7d7a['isOwn']&&'convertInlineImageToBlock'==_0x123f49['subType']);if(_0x5bdc90['length']>0x1&&_0x5a59aa['end']['isEqual'](_0xea5c16['start']))return!0x0;if(0x1==_0x5bdc90['length']&&(_0xea5c16['start']['isEqual'](_0x5a59aa['end'])||_0xea5c16['end']['isEqual'](_0x5a59aa['start'])))return!0x0;}if(0x3==_0x48c863&&0x3==_0x56ba91&&_0xea5c16['start']['isBefore'](_0x5a59aa['start'])){const _0x21365=_0xea5c16['end']['nodeAfter'],_0x3bdec0=_0x5a59aa['start']['nodeBefore'];return _0x2d225a['isBlockImage'](_0x21365)&&_0x21365===_0x3bdec0;}return!0x1;}_0x43d636['model']['document']['registerPostFixer'](()=>{let _0x2fbe29=!0x1;const _0x3d0850=Array['from'](_0x43d636['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x524ca9,data:_0x3a7894}of _0x3d0850){const {group:_0xd4d60a,type:_0x26c5d6,subType:_0x11214c,id:_0x476d03}=_0x2bc043['_splitMarkerName'](_0x524ca9);if('suggestion'==_0xd4d60a&&_0x2bc043['hasSuggestion'](_0x476d03)){if('formatBlock'==_0x26c5d6&&('imageStylePreApply'==_0x11214c||'imageStylePostApply'==_0x11214c)){const _0x15ca36=_0x2bc043['getSuggestion'](_0x476d03);if(_0x3a7894['newRange']){const _0x1fc58e=_0x15ca36['getFirstRange']()['getContainedElement']();if(_0x2d225a['isBlockImage'](_0x1fc58e))continue;_0x2bc043['discardSuggestion'](_0x15ca36),_0x2fbe29=!0x0;}}if('insertion'==_0x26c5d6&&'imageCaption'==_0x11214c&&!_0x3a7894['newRange']){const _0xb47a3e=_0x2bc043['getSuggestion'](_0x476d03);_0xb47a3e['next']&&_0xb47a3e['next']['isInContent']&&(_0x2bc043['discardSuggestion'](_0xb47a3e['next']),_0x2fbe29=!0x0);}}}return _0x2fbe29;}),this['_registerLegacyDescription'](_0x53db1e);}['_registerLegacyDescription'](_0x9b3e90){const _0x293482=this['editor'],_0x49ae52=_0x293482['locale'];_0x293482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28eb75=>{if('formatBlock'!=_0x28eb75['type']&&'formatInline'!=_0x28eb75['type'])return;const {data:_0x2053f8}=_0x28eb75;if(!_0x2053f8||'imageStyle'!=_0x2053f8['commandName'])return;const _0x7ff416=_0x2053f8['commandParams'][0x0]['value'];return _0x34a713('side'===_0x7ff416?o(_0x49ae52,'FORMAT_SIDE_IMAGE'):_0x9b3e90[_0x7ff416]||_0x7ff416);function _0x34a713(_0x23096e){return{'type':'format','content':o(_0x49ae52,'*Format:*\x20%0',_0x23096e)};}});}}class at extends _0xbd4bc4{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xed9327){super(_0xed9327),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5036fa=this['editor'],_0x4586ed=_0x5036fa['commands']['get']('importWord'),_0x49a4c9=_0x5036fa['commands']['get']('trackChanges');_0x4586ed&&(_0x4586ed['on']('execute',(_0x440bf7,[,_0x2f5bbc])=>{this['_trackChangesValueDuringImport']=_0x49a4c9['value'],_0x2f5bbc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4586ed,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4586ed,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x49a4c9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5036fa['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x19fdaa,_0x402cd4){const {suggestions:_0x3ad309}=_0x402cd4,_0x274884=this['editor']['commands']['get']('trackChanges'),_0x483b9a=_0x274884['value'];this['_trackChangesValueDuringImport']!==_0x483b9a&&(_0x274884['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ad309&&_0x3ad309['forEach'](({id:_0x301f7c,type:_0x5c3827,author:_0x38966d,created_at:_0x2cf41c})=>{const _0x22f7dd={'id':_0x301f7c,'type':_0x5c3827,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x38966d,'createdAt':_0x2cf41c?new Date(_0x2cf41c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x22f7dd);});}}class ct extends _0xbd4bc4{['afterInit'](){const _0x5654fe=this['editor'],_0x458dd7=_0x5654fe['plugins']['get']('TrackChangesEditing');if(_0x5654fe['plugins']['has']('IndentEditing')&&(_0x458dd7['enableCommand']('indent'),_0x458dd7['enableCommand']('outdent')),_0x5654fe['plugins']['has']('IndentBlock')){for(const _0x123ccd of['indentBlock','outdentBlock'])_0x458dd7['enableDefaultAttributesIntegration'](_0x123ccd);}const _0x233d4c=_0x5654fe['locale'];_0x458dd7['registerBlockAttribute']('blockIndent'),_0x458dd7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x233d4c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3961ae=this['editor'],_0x2d50ff=_0x3961ae['locale'],_0xfc4727=_0x3961ae['plugins']['get']('TrackChangesEditing');_0xfc4727['descriptionFactory']['registerDescriptionCallback'](_0x1441d9=>{if('formatBlock'!=_0x1441d9['type'])return;const {data:_0x348541}=_0x1441d9;if(!_0x348541)return;if('indentBlock'!=_0x348541['commandName']&&'outdentBlock'!=_0x348541['commandName'])return;const _0x44a6b5=_0x1441d9['getItems']()[0x0],_0x55806e=_0xfc4727['descriptionFactory']['getItemLabel'](_0x44a6b5);return'indentBlock'==_0x348541['commandName']?{'type':'format','content':o(_0x2d50ff,'*Indent:*\x20%0',_0x55806e)}:'outdentBlock'==_0x348541['commandName']?{'type':'format','content':o(_0x2d50ff,'*Outdent:*\x20%0',_0x55806e)}:void 0x0;});}}class ut extends _0xbd4bc4{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0xbd4bc4{['afterInit'](){const _0x33e3e5=this['editor'];if(!_0x33e3e5['plugins']['has']('LinkEditing'))return;const _0x35de48=_0x33e3e5['plugins']['get']('TrackChangesEditing'),_0x593e4e=_0x33e3e5['commands']['get']('link');_0x35de48['enableDefaultAttributesIntegration']('link'),_0x35de48['enableDefaultAttributesIntegration']('unlink'),_0x35de48['registerInlineAttribute']('linkHref');for(const _0x5ecb14 of _0x593e4e['manualDecorators'])_0x35de48['registerInlineAttribute'](_0x5ecb14['id']),_0x35de48['descriptionFactory']['registerAttributeLabel'](_0x5ecb14['id'],'link\x20('+_0x5ecb14['label']['toLowerCase']()+')');_0x35de48['descriptionFactory']['registerDescriptionCallback'](_0xd4a9df=>{if('attribute'!=_0xd4a9df['type'])return;const {data:_0x7b53bc}=_0xd4a9df;if(!_0x7b53bc||'linkHref'!=_0x7b53bc['key'])return;const _0xe3a621=_0x7b53bc['newValue'],_0x264891=_0x33e3e5['locale'];return{'type':'format','content':null==_0xe3a621?o(_0x264891,'*Remove\x20link*'):o(_0x264891,'*Set\x20link:*\x20%0','\x22'+_0xe3a621+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fcefa=this['editor'],_0x3955a7=_0x1fcefa['locale'];_0x1fcefa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12c6ed=>{if('formatInline'!=_0x12c6ed['type'])return;const {data:_0x260998}=_0x12c6ed;if(_0x260998){if('link'==_0x260998['commandName']){const _0x4050f6=_0x260998['commandParams'][0x0];return{'type':'format','content':o(_0x3955a7,'*Set\x20link:*\x20%0','\x22'+_0x4050f6+'\x22')};}return'unlink'==_0x260998['commandName']?{'type':'format','content':o(_0x3955a7,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xbd4bc4{['afterInit'](){const _0x19fee0=this['editor'],_0x41fc5d=_0x19fee0['locale'];if(!_0x19fee0['plugins']['has']('LegacyListEditing'))return;const _0x3fe742=_0x19fee0['plugins']['get']('TrackChangesEditing'),_0x3b83a0=_0x19fee0['plugins']['has']('LegacyTodoListEditing');function _0x1da9ec(_0xb5f3d2){return()=>{const _0x5965ff=_0x19fee0['model']['document']['selection'],_0x18f90f=_0x19fee0['commands']['get'](_0xb5f3d2);if(_0x18f90f['value'])return void _0x19fee0['execute']('paragraph',{});const _0x29618f=_0xb5f3d2['slice'](0x0,-0x4),_0x4a17d4=function(_0x20fad0,_0x230202,_0x18a1f8){let _0x55800f=Array['from'](_0x20fad0)['filter'](_0x49d156=>function(_0x5bb857,_0x1f913d){return _0x1f913d['checkChild'](_0x5bb857['parent'],'listItem')&&!_0x1f913d['isObject'](_0x5bb857);}(_0x49d156,_0x18a1f8));_0x55800f=_0x55800f['filter'](_0x448a9b=>!_0x448a9b['is']('element','listItem')||_0x448a9b['getAttribute']('listType')!=_0x230202);const _0x5f18e5=new Set();for(const _0x1d2610 of _0x55800f)_0x1d2610['is']('element','listItem')?_0x5f18e5['add'](fe(_0x1d2610)):_0x5f18e5['add'](_0x1d2610);return Array['from'](_0x5f18e5);}(_0x5965ff['getSelectedBlocks'](),_0x29618f,_0x19fee0['model']['schema']);_0x19fee0['model']['change'](()=>{for(const _0x4b778e of _0x4a17d4)_0x3fe742['markBlockFormat'](_0x4b778e,{'commandName':_0xb5f3d2,'commandParams':[{'forceValue':!_0x18f90f['value']}],'formatGroupId':'blockName'},ue(_0x4b778e));});};}function _0x5c92af(_0x1ccf26){return()=>{const _0x386ebe=function(_0x1075cb){let _0x19e038=Array['from'](_0x1075cb);const _0x43cc35=_0x19e038['findIndex'](_0x4f9726=>'listItem'!=_0x4f9726['name']);return _0x43cc35>-0x1&&(_0x19e038=_0x19e038['slice'](0x0,_0x43cc35)),_0x19e038;}(_0x19fee0['model']['document']['selection']['getSelectedBlocks']()),_0x17c762=_0x19fee0['model']['createRange'](_0x19fee0['model']['createPositionAt'](_0x386ebe[0x0],'before'),_0x19fee0['model']['createPositionAt'](_0x386ebe[_0x386ebe['length']-0x1],'end'));_0x19fee0['model']['change'](()=>{_0x3fe742['markBlockFormat'](_0x17c762,{'commandName':_0x1ccf26,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1ca4a6){const _0x1d5580=new Set();for(const _0x344ef0 of _0x1ca4a6){let _0x515042=_0x344ef0['nextSibling'];for(;_0x515042&&_0x515042['getAttribute']('listIndent')>_0x344ef0['getAttribute']('listIndent');)_0x1d5580['add'](_0x515042),_0x515042=_0x515042['nextSibling'];}return Array['from'](_0x1d5580);}(_0x386ebe));});};}_0x3fe742['enableCommand']('numberedList',_0x1da9ec('numberedList')),_0x3fe742['enableCommand']('bulletedList',_0x1da9ec('bulletedList')),_0x3b83a0&&_0x3fe742['enableCommand']('todoList',_0x1da9ec('todoList')),_0x3fe742['enableCommand']('indentList',_0x5c92af('indentList')),_0x3fe742['enableCommand']('outdentList',_0x5c92af('outdentList')),_0x3b83a0&&_0x3fe742['enableCommand']('checkTodoList',()=>{const _0x3a57f6=_0x19fee0['commands']['get']('checkTodoList'),_0x497a46=Array['from'](_0x3a57f6['_selectedElements']);_0x497a46['filter'](_0x4f0b52=>_0x4f0b52['getAttribute']('todoListChecked')!=_0x3a57f6['value']),_0x19fee0['model']['change'](()=>{for(const _0x37097a of _0x497a46)_0x3fe742['markBlockFormat'](_0x37097a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3a57f6['value']}]});});}),_0x3fe742['descriptionFactory']['registerElementLabel']('listItem',_0xfc68ad=>o(_0x41fc5d,'ELEMENT_LIST_ITEM',_0xfc68ad)),_0x3fe742['descriptionFactory']['registerDescriptionCallback'](_0x528567=>{if('formatBlock'!=_0x528567['type']&&'formatInline'!=_0x528567['type'])return;const {data:_0x40a6ae}=_0x528567;if(_0x40a6ae){if('numberedList'==_0x40a6ae['commandName']||'bulletedList'==_0x40a6ae['commandName']||'todoList'==_0x40a6ae['commandName'])switch(_0x40a6ae['commandName']['replace']('List','')){case'bulleted':return _0x587b01(o(_0x41fc5d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x587b01(o(_0x41fc5d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x587b01(o(_0x41fc5d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x40a6ae['commandName'])return{'type':'format','content':o(_0x41fc5d,'*Indent:*\x20%0',o(_0x41fc5d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x40a6ae['commandName'])return{'type':'format','content':o(_0x41fc5d,'*Outdent:*\x20%0',o(_0x41fc5d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x40a6ae['commandName'])return _0x40a6ae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41fc5d,'*Check\x20item*')}:{'type':'format','content':o(_0x41fc5d,'*Uncheck\x20item*')};}function _0x587b01(_0x108e72){return{'type':'format','content':o(_0x41fc5d,'*Change\x20to:*\x20%0',_0x108e72)};}});}}function fe(_0x27e0f5){const _0x2e6d98=_0x27e0f5['getAttribute']('listIndent');if(0x0==_0x2e6d98)return _0x27e0f5;let _0x3c37a8=_0x27e0f5;for(;_0x27e0f5['previousSibling']&&_0x27e0f5['previousSibling']['is']('element','listItem');){const _0x5ce853=_0x27e0f5['previousSibling']['getAttribute']('listIndent');if(_0x5ce853==_0x2e6d98)_0x3c37a8=_0x27e0f5['previousSibling'];else{if(_0x5ce853<_0x2e6d98)break;}_0x27e0f5=_0x27e0f5['previousSibling'];}return _0x3c37a8;}function ue(_0x307f66){const _0x1bc338=[];if(_0x307f66['is']('element','listItem')&&_0x307f66['getAttribute']('listIndent')>0x0){let _0x265b10=_0x307f66['nextSibling'];for(;_0x265b10&&'listItem'==_0x265b10['name']&&_0x265b10['getAttribute']('listIndent')==_0x307f66['getAttribute']('listIndent');)_0x1bc338['push'](_0x265b10),_0x265b10=_0x265b10['nextSibling'];}return _0x1bc338;}class W extends _0xbd4bc4{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5a99f7=this['editor']['config']['get']('list.properties'),_0x2e2e58=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a99f7['styles']&&_0x2e2e58['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5a99f7['reversed']&&_0x2e2e58['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5a99f7['startIndex']&&_0x2e2e58['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2e2e58['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5ad190,_0x45a2c9={}){const _0x1278fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41266c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1278fd['markMultiRangeBlockFormat'](_0x41266c,{'commandName':'listStyle','commandParams':[{'type':_0x45a2c9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3ca052,_0x33aabb={}){const _0x515edb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa11862=this['_getSuggestionBlocks'](_0x1b65a7=>_0x1b65a7['is']('element','listItem')&&'numbered'===_0x1b65a7['getAttribute']('listType'));if(_0xa11862['length']<0x1)return;const _0x178fa2=_0xa11862['map'](_0x1f66f6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f66f6,'before'),this['editor']['model']['createPositionAt'](_0x1f66f6,0x0)));this['editor']['model']['change'](()=>{_0x515edb['markMultiRangeBlockFormat'](_0x178fa2,{'commandName':'listReversed','commandParams':[{'reversed':_0x33aabb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x75ea48,_0x1a7215={}){const _0x238fcb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fbe67=this['_getSuggestionBlocks'](_0x4f6fac=>_0x4f6fac['is']('element','listItem')&&'numbered'===_0x4f6fac['getAttribute']('listType'));if(_0x1fbe67['length']<0x1)return;const _0x2755cb=_0x1fbe67['map'](_0x4fd591=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4fd591,'before'),this['editor']['model']['createPositionAt'](_0x4fd591,0x0)));this['editor']['model']['change'](()=>{_0x238fcb['markMultiRangeBlockFormat'](_0x2755cb,{'commandName':'listStart','commandParams':[{'startIndex':_0x1a7215['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3008b5){if('formatBlock'!=_0x3008b5['type']&&'formatInline'!=_0x3008b5['type'])return;const _0x57ec1a=this['editor']['locale'],{data:_0xb93302}=_0x3008b5;if(!_0xb93302)return;let _0x24e6eb,_0x2b9c31;switch(_0xb93302['commandName']){case'listStyle':_0x24e6eb='*Change\x20to:*\x20%0',_0x2b9c31={'type':'format','content':o(_0x57ec1a,_0x24e6eb,o(_0x57ec1a,this['_getTranslationKeyForListStyle'](_0xb93302['commandParams'][0x0]['type'])))};break;case'listReversed':_0x24e6eb=_0xb93302['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b9c31={'type':'format','content':o(_0x57ec1a,_0x24e6eb)};break;case'listStart':_0x24e6eb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b9c31={'type':'format','content':o(_0x57ec1a,_0x24e6eb,_0xb93302['commandParams'][0x0]['startIndex'])};}return _0x2b9c31;}['_getSuggestionBlocksForListStyle'](){const _0x20de00=this['editor']['plugins']['get']('LegacyListUtils');let _0x103b0c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x103b0c[0x0]?.['is']('element','listItem')&&_0x103b0c['unshift'](..._0x20de00['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x103b0c[_0x103b0c['length']-0x1]?.['is']('element','listItem')&&_0x103b0c['push'](..._0x20de00['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x103b0c=[...new Set(_0x103b0c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x103b0c=_0x103b0c['filter'](_0x482e33=>_0x482e33['is']('element','listItem'))),_0x103b0c;}['_getSuggestionBlocks'](_0x1be9ff){const _0x59be9b=this['editor']['plugins']['get']('LegacyListUtils');let _0x1710aa=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1be9ff)['map'](_0x22e1e3=>{const _0x4c4610=this['editor']['model']['createPositionAt'](_0x22e1e3,0x0);return[..._0x59be9b['getSiblingNodes'](_0x4c4610,'backward'),..._0x59be9b['getSiblingNodes'](_0x4c4610,'forward')];})['flat']();return _0x1710aa=[...new Set(_0x1710aa)],_0x1710aa;}['_getTranslationKeyForListStyle'](_0x4bcd9f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4bcd9f)||'default')['toUpperCase']()+'_LIST_'+_0x4bcd9f['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0xbd4bc4{['afterInit'](){const _0x2402b8=this['editor'];if(!_0x2402b8['plugins']['has']('MediaEmbedEditing'))return;const _0x1af22e=_0x2402b8['plugins']['get']('TrackChangesEditing'),_0x1f631d=_0x2402b8['locale'];_0x1af22e['enableCommand']('mediaEmbed'),_0x1af22e['descriptionFactory']['registerElementLabel']('media',_0x212f32=>o(_0x1f631d,'ELEMENT_MEDIA',_0x212f32)),_0x2402b8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x13865a,{writer:_0x102fb3,options:_0xa78d40})=>{if(_0xa78d40['showSuggestionHighlights'])return _0x102fb3['createEmptyElement']('div');},'converterPriority':'high'}),_0x2402b8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5ce164,_0x4641a4,_0x1356c4)=>{_0x1356c4['options']['showSuggestionHighlights']&&_0x5ce164['stop']();},{'priority':'high'});}}class mt extends _0xbd4bc4{['afterInit'](){const _0x1f1064=this['editor'];_0x1f1064['plugins']['has']('MentionEditing')&&_0x1f1064['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xbd4bc4{['afterInit'](){const _0x462751=this['editor'];if(!_0x462751['plugins']['has']('MergeFieldsEditing'))return;_0x462751['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x462751['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x37d50f=_0x462751['plugins']['get']('TrackChangesEditing'),_0x12f533=_0x462751['locale'];_0x37d50f['descriptionFactory']['registerElementLabel']('mergeField',_0x482310=>o(_0x12f533,'ELEMENT_MERGE_FIELD',_0x482310)),_0x37d50f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1b7675=>o(_0x12f533,'ELEMENT_MERGE_FIELD',_0x1b7675)),_0x37d50f['descriptionFactory']['registerDescriptionCallback'](_0x25eefa=>{if('insertion'!=_0x25eefa['type']&&'deletion'!=_0x25eefa['type'])return;const _0x5a0a8b=_0x25eefa['getContainedElement']();if(null==_0x5a0a8b)return;if(!_0x5a0a8b['is']('element','mergeField')&&!_0x5a0a8b['is']('element','mergeFieldBlock'))return;const _0x309440=_0x462751['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5a0a8b['getAttribute']('id'));return'insertion'==_0x25eefa['type']?{'type':'insertion','content':o(_0x12f533,'*Insert:*\x20%0','\x22'+_0x309440+'\x22\x20'+o(_0x12f533,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x12f533,'*Remove:*\x20%0','\x22'+_0x309440+'\x22\x20'+o(_0x12f533,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0xbd4bc4{['afterInit'](){const _0x433c32=this['editor'],_0x1b1e51=_0x433c32['plugins']['get']('TrackChangesEditing');_0x433c32['plugins']['has']('MultiLevelList')&&(_0x1b1e51['enableDefaultAttributesIntegration']('multiLevelList'),_0x1b1e51['registerBlockAttribute']('listMarkerStyle'),_0x1b1e51['descriptionFactory']['registerDescriptionCallback'](_0x3605be=>this['handleDescriptions'](_0x3605be)));}['handleDescriptions'](_0x14770f){const _0x3f9734=this['editor']['locale'],{data:_0x273b9a}=_0x14770f,_0x35ff76={'type':'format','content':''};if(_0x273b9a&&'listMarkerStyle'==_0x273b9a['key']){if(!_0x273b9a['oldValue'])return{'type':'format','content':o(_0x3f9734,'*Set\x20format:*\x20%0',o(_0x3f9734,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x273b9a['newValue']+')'};if(!_0x273b9a['newValue']){let _0x575318=_0x14770f['head'];for(;_0x575318;){if(_0x575318['data']&&'listType'==_0x575318['data']['key']&&_0x575318['data']['newValue'])return _0x35ff76;_0x575318=_0x575318['next'];}return{'type':'format','content':o(_0x3f9734,'*Remove\x20format:*\x20%0',o(_0x3f9734,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x273b9a['oldValue']+')'};}}}}class kt extends _0xbd4bc4{['afterInit'](){const _0x58c08f=this['editor'];if(!_0x58c08f['plugins']['has']('PageBreakEditing'))return;_0x58c08f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1980f8=_0x58c08f['plugins']['get']('TrackChangesEditing'),_0x13145d=_0x58c08f['locale'];_0x1980f8['descriptionFactory']['registerElementLabel']('pageBreak',_0x3c1f5a=>o(_0x13145d,'ELEMENT_PAGE_BREAK',_0x3c1f5a));}}class bt extends _0xbd4bc4{['afterInit'](){const _0x2e9bed=this['editor'];if(!_0x2e9bed['plugins']['has']('Paragraph'))return;const _0x5b764f=_0x2e9bed['locale'],_0x131ba8=_0x2e9bed['plugins']['get']('TrackChangesEditing');_0x131ba8['descriptionFactory']['registerElementLabel']('paragraph',_0x497313=>o(_0x5b764f,'ELEMENT_PARAGRAPH',_0x497313)),_0x131ba8['enableDefaultAttributesIntegration']('paragraph'),_0x131ba8['enableCommand']('insertParagraph'),_0x2e9bed['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2e9bed),{'priority':'highest'}),_0x2e9bed['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e7482,_0x27cfb4,_0x309f62)=>{_0x309f62['options']['showSuggestionHighlights']&&nr(_0x2e9bed,{'showActiveMarker':!0x1})(_0x2e7482,_0x27cfb4,_0x309f62);},{'priority':'highest'});const _0x49bb25=_0x131ba8['descriptionFactory'];_0x49bb25['registerDescriptionCallback'](_0x2dd293=>{if('insertion'!==_0x2dd293['type'])return;const {start:_0x4d4197,end:_0x2df73a}=_0x2dd293['getFirstRange']();if(!_0x4d4197['isTouching'](_0x2df73a)||!_0x4d4197['nodeAfter'])return;const _0xca65d7=_0x2e9bed['model']['schema'],_0x4d71d3=_0x4d4197['nodeAfter'];return _0xca65d7['isBlock'](_0x4d71d3)&&!_0xca65d7['isLimit'](_0x4d71d3)&&_0xca65d7['checkChild'](_0x4d71d3,'$text')?{'type':'insertion','content':o(_0x5b764f,'*Insert:*\x20%0',_0x49bb25['getItemLabel'](_0x4d71d3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a4160=this['editor'],_0x4cfa0e=_0x3a4160['locale'];_0x3a4160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4718b2=>{if('formatBlock'!=_0x4718b2['type'])return;const {data:_0xda4dd6}=_0x4718b2;return _0xda4dd6&&'paragraph'==_0xda4dd6['commandName']?{'type':'format','content':o(_0x4cfa0e,'*Change\x20to:*\x20%0',o(_0x4cfa0e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x38e13a,{showActiveMarker:_0x91bd64=!0x0}={}){return(_0xa10834,_0x306900,_0x2e0443)=>{const _0x237c48=_0x38e13a['plugins']['get']('TrackChangesEditing'),_0x211e6e=_0x306900['markerRange']['start'],_0x1e48db=_0x306900['markerRange']['end'],_0xa6d2a4=_0x38e13a['model']['schema'];if(!_0x211e6e['isTouching'](_0x1e48db)||!_0x211e6e['nodeAfter'])return;const _0x2589c6=_0x211e6e['nodeAfter'];if(_0xa6d2a4['isBlock'](_0x2589c6)&&!_0xa6d2a4['isLimit'](_0x2589c6)&&_0xa6d2a4['checkChild'](_0x2589c6,'$text')){if(!_0x2e0443['consumable']['consume'](_0x306900['markerRange'],_0xa10834['name']))return;const {authorId:_0x501d1f}=_0x237c48['_splitMarkerName'](_0x306900['markerName']),_0x20bb9a=_0x2e0443['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x501d1f}),_0x4682ad=_0x2e0443['mapper']['toViewPosition'](_0x1e48db);_0x91bd64&&_0x237c48['activeMarkers']['includes'](_0x306900['markerName'])&&_0x2e0443['writer']['addClass']('ck-suggestion-marker--active',_0x20bb9a),_0x2e0443['writer']['insert'](_0x4682ad,_0x20bb9a),_0x2e0443['mapper']['bindElementToMarker'](_0x20bb9a,_0x306900['markerName']);}};}class wt extends _0xbd4bc4{['afterInit'](){const _0x425075=this['editor'];if(!_0x425075['plugins']['has']('RemoveFormatEditing'))return;_0x425075['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e62cb=this['editor'];_0x3e62cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9a62fd=>{if('formatBlock'!=_0x9a62fd['type']&&'formatInline'!=_0x9a62fd['type'])return;const {data:_0x2e11b4}=_0x9a62fd;return _0x2e11b4&&'removeFormat'==_0x2e11b4['commandName']?{'type':'format','content':o(_0x3e62cb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xbd4bc4{['afterInit'](){const _0x208db7=this['editor'];if(!_0x208db7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x39c34d=_0x208db7['plugins']['get']('TrackChangesEditing');_0x39c34d['enableCommand']('goToPreviousRestrictedEditingException'),_0x39c34d['enableCommand']('goToNextRestrictedEditingException');const _0x460493=_0x208db7['plugins']['get']('RestrictedEditingModeEditing');_0x460493['enableCommand']('trackChanges'),_0x460493['enableCommand']('acceptSuggestion'),_0x460493['enableCommand']('discardSuggestion'),_0x460493['enableCommand']('acceptAllSuggestions'),_0x460493['enableCommand']('discardAllSuggestions'),_0x460493['enableCommand']('acceptSelectedSuggestions'),_0x460493['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xbd4bc4{static get['requires'](){return[_0x4fc3e9];}['init'](){const _0x4e3a7c=this['editor'],_0x5f588e=_0x4e3a7c['plugins']['get']('TrackChangesEditing');_0x5f588e['enableCommand']('shiftEnter'),_0x4e3a7c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x4e3a7c),{'priority':'high'}),_0x4e3a7c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x4e3a7c),{'priority':'high'}),_0x4e3a7c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d075b,_0x5bf798,_0x15083a)=>{_0x15083a['options']['showSuggestionHighlights']&&ge(_0x4e3a7c,{'showActiveMarker':!0x1})(_0x3d075b,_0x5bf798,_0x15083a);}),_0x5f588e['descriptionFactory']['registerElementLabel']('softBreak',_0x41974a=>o(_0x4e3a7c['locale'],'ELEMENT_LINE_BREAK',_0x41974a));}}function ge(_0x2551b0,{showActiveMarker:_0x4693d9=!0x0}={}){return(_0x10e879,_0x5cbae7,_0x253e6e)=>{const _0xc35326=_0x2551b0['plugins']['get']('TrackChangesEditing');if(!_0x253e6e['consumable']['test'](_0x5cbae7['markerRange'],_0x10e879['name']))return;const _0x18d51f=_0x2551b0['model'];for(const _0x27f947 of _0x5cbae7['markerRange']['getItems']()){if(!_0x27f947['is']('element','softBreak'))continue;const _0x2e901d='deletion'==_0x5cbae7['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4b0210}=_0xc35326['_splitMarkerName'](_0x5cbae7['markerName']),_0x53570a=_0x253e6e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e901d,'data-author-id':_0x4b0210}),_0x4a83e0=_0x253e6e['mapper']['toViewPosition'](_0x18d51f['createPositionBefore'](_0x27f947));_0x4693d9&&_0xc35326['activeMarkers']['includes'](_0x5cbae7['markerName'])&&_0x253e6e['writer']['addClass']('ck-suggestion-marker--active',_0x53570a),_0x253e6e['writer']['insert'](_0x4a83e0,_0x53570a),_0x253e6e['mapper']['bindElementToMarker'](_0x53570a,_0x5cbae7['markerName']);}};}class St extends _0xbd4bc4{['afterInit'](){const _0x4c4c8e=this['editor'],_0x47e65b=_0x4c4c8e['model'],_0x25d7c4=_0x4c4c8e['locale'];if(!_0x4c4c8e['plugins']['has']('StandardEditingModeEditing'))return;const _0x31b68f=_0x4c4c8e['plugins']['get']('TrackChangesEditing'),_0x2a8225='restrictedEditingException',_0x50819d=_0x4c4c8e['commands']['get'](_0x2a8225);_0x31b68f['enableCommand'](_0x2a8225,(_0x369aba,_0xc11984={})=>{const _0x20bb02=_0x47e65b['document']['selection'];if(_0x20bb02['isCollapsed'])return void _0x369aba(_0xc11984);const _0x2ccb66=void 0x0!==_0xc11984['forceValue']?_0xc11984['forceValue']:!_0x50819d['value'];_0x47e65b['change'](()=>{const _0x5e7e57=Array['from'](_0x20bb02['getRanges']());for(const _0x277364 of _0x5e7e57){const _0x5c5605=_0x2ccb66?[_0x277364]:io(_0x2a8225,_0x277364,_0x47e65b);for(const _0x559702 of _0x5c5605)_0x31b68f['markInlineFormat'](_0x559702,{'commandName':_0x2a8225,'commandParams':[{'forceValue':_0x2ccb66}]});}});}),_0x31b68f['descriptionFactory']['registerDescriptionCallback'](_0x33186a=>{if('formatBlock'!=_0x33186a['type']&&'formatInline'!=_0x33186a['type'])return;const {data:_0x28773d}=_0x33186a;return _0x28773d&&_0x28773d['commandName']==_0x2a8225?_0x28773d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25d7c4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x25d7c4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0xbd4bc4{['afterInit'](){const _0x2a30c2=this['editor'];if(!_0x2a30c2['plugins']['has']('Style')||!_0x2a30c2['plugins']['has']('DataSchema'))return;const _0x384141=_0x2a30c2['plugins']['get']('TrackChangesEditing'),_0x37a1e2=_0x2a30c2['locale'],_0x2e732c=_0x2a30c2['config']['get']('style')||{},_0x4a996c=_0x2a30c2['plugins']['get']('GeneralHtmlSupport'),_0x2dd3b2=_0x2a30c2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2a30c2['plugins']['get']('DataSchema'),_0x2e732c['definitions']);_0x384141['enableDefaultAttributesIntegration']('style');const _0x1aca3a=new Set();for(const _0x35be40 of _0x2dd3b2['block']){const _0x5c4131=_0x4a996c['getGhsAttributeNameForElement'](_0x35be40['element']);_0x1aca3a['add'](_0x5c4131);}const _0x40b7b5=new Set();for(const _0x5b235a of _0x2dd3b2['inline']){const _0x42f48b=_0x4a996c['getGhsAttributeNameForElement'](_0x5b235a['element']);_0x40b7b5['add'](_0x42f48b);for(const _0x4ae00d of _0x5b235a['ghsAttributes'])_0x40b7b5['add'](_0x4ae00d);}for(const _0x20410c of _0x1aca3a)_0x384141['registerBlockAttribute'](_0x20410c),_0x384141['descriptionFactory']['registerAttributeLabel'](_0x20410c,o(_0x37a1e2,'FORMAT_STYLE'));for(const _0x44f602 of _0x40b7b5)_0x384141['registerInlineAttribute'](_0x44f602),_0x384141['descriptionFactory']['registerAttributeLabel'](_0x44f602,o(_0x37a1e2,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30865f=this['editor'],_0x16a762=_0x30865f['locale'];_0x30865f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45f6e8=>{if('formatBlock'!=_0x45f6e8['type']&&'formatInline'!=_0x45f6e8['type'])return;const {data:_0x30e125}=_0x45f6e8;return _0x30e125&&'style'===_0x30e125['commandName']?_0x30e125['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16a762,'*Set\x20format:*\x20%0',_0x30e125['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x16a762,'*Remove\x20format:*\x20%0',_0x30e125['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0xbd4bc4{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x215ca8){super(_0x215ca8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xbe175e=this['editor'],_0x4c7a00=_0xbe175e['model']['document']['selection'];if(!_0xbe175e['plugins']['has']('TableEditing'))return;const _0x244402=_0xbe175e['locale'],_0x31f88d=_0xbe175e['plugins']['get']('TrackChangesEditing'),_0x118edc=_0xbe175e['plugins']['get']('TableUtils');_0x31f88d['descriptionFactory']['registerElementLabel']('table',_0xb6ba95=>o(_0x244402,'ELEMENT_TABLE',_0xb6ba95)),this['_setupColumnsRowsFixing'](),_0x31f88d['enableCommand']('insertTable'),_0x31f88d['enableCommand']('selectTableRow'),_0x31f88d['enableCommand']('selectTableColumn');for(const _0x2c613d of['insertTableRowAbove','insertTableRowBelow']){const _0x386490=_0xbe175e['commands']['get'](_0x2c613d);_0x31f88d['enableCommand'](_0x2c613d,_0x5b7137=>{_0xbe175e['model']['change'](_0x25cbe5=>{_0x5b7137();const _0x1dcbf0='above'===_0x386490['order'],_0x2c77fd=_0x118edc['getSelectionAffectedTableCells'](_0x4c7a00),_0x5d7a8a=_0x118edc['getRowIndexes'](_0x2c77fd),_0x5df9af=_0x1dcbf0?_0x5d7a8a['first']-0x1:_0x5d7a8a['last']+0x1,_0x1d2ed2=_0x2c77fd[0x0]['findAncestor']('table'),_0x2046cd=_0x118edc['createTableWalker'](_0x1d2ed2,{'startRow':_0x5df9af,'endRow':_0x5df9af}),_0x4dd27c=Array['from'](_0x2046cd)['map'](_0x40c73d=>_0x25cbe5['createRangeOn'](_0x40c73d['cell']));_0x31f88d['markMultiRangeInsertion'](_0x4dd27c,'tableRow');});});}for(const _0x47db0b of['insertTableColumnLeft','insertTableColumnRight']){const _0x10e5ff=_0xbe175e['commands']['get'](_0x47db0b);_0x31f88d['enableCommand'](_0x47db0b,_0x585c22=>{_0xbe175e['model']['change'](_0x107345=>{_0x585c22();const _0x29f667='left'===_0x10e5ff['order'],_0x219d4e=_0x118edc['getSelectionAffectedTableCells'](_0x4c7a00),_0x1b9907=_0x118edc['getColumnIndexes'](_0x219d4e),_0x34df0d=_0x29f667?_0x1b9907['first']-0x1:_0x1b9907['last']+0x1,_0x472db3=_0x219d4e[0x0]['findAncestor']('table'),_0xdb324a=_0x118edc['createTableWalker'](_0x472db3,{'startRow':0x0,'column':_0x34df0d,'includeAllSlots':!0x1}),_0x84909c=Array['from'](_0xdb324a)['map'](_0x57c251=>_0x107345['createRangeOn'](_0x57c251['cell']));_0x31f88d['markMultiRangeInsertion'](_0x84909c,'tableColumn');});});}for(const _0x478df1 of['removeTableRow','removeTableColumn']){const _0x24b199=_0x478df1['substr'](0xb),_0x1e4199=_0x24b199['toLowerCase'](),_0x4838c4=_0x1e4199['substr'](0x0,0x3)+'span',_0x582460='table'+_0x24b199,_0x381bad='min'+_0x24b199,_0x1d244e='max'+_0x24b199;_0x31f88d['enableCommand'](_0x478df1,()=>{_0xbe175e['model']['change'](_0x2ac452=>{const _0x35e677=_0x118edc['getSelectionAffectedTableCells'](_0x4c7a00),_0x45c00a=_0x35e677[0x0]['findAncestor']('table');let _0x168711;if('removeTableRow'==_0x478df1){const _0x35148c=_0x118edc['getRowIndexes'](_0x35e677);_0x168711={'startRow':_0x35148c['first'],'endRow':_0x35148c['last'],'includeAllSlots':!0x0};}else{const _0x6ab42c=_0x118edc['getColumnIndexes'](_0x35e677);_0x168711={'startColumn':_0x6ab42c['first'],'endColumn':_0x6ab42c['last'],'includeAllSlots':!0x0};}const _0xb76a20=_0x118edc['createTableWalker'](_0x45c00a,_0x168711),_0x4e4b6a=Array['from'](_0xb76a20)['map'](({cell:_0x4865ad})=>_0x4865ad),_0x16f0be=be(_0x4e4b6a['filter'](_0x5baac8=>_0x5baac8['hasAttribute'](_0x4838c4))),_0x1f60d5=be(_0x4e4b6a['filter'](_0x478aaf=>!_0x478aaf['hasAttribute'](_0x4838c4)))['map'](_0x25d635=>_0x2ac452['createRangeOn'](_0x25d635)),_0x4d4ba5=_0x31f88d['markMultiRangeDeletion'](_0x1f60d5,_0x582460);if(_0x4d4ba5&&('tableRow'==_0x4d4ba5['subType']||'tableColumn'==_0x4d4ba5['subType'])){const _0x1a1517=this['_getSuggestionCoords'](_0x4d4ba5);for(const _0x507005 of _0x16f0be){const _0x216850=_0x2ac452['createRangeOn'](_0x507005),_0x519d1c=_0x118edc['getCellLocation'](_0x507005),_0x1ef678=_0x507005['getAttribute'](_0x4838c4)-0x1,_0x5b626f=_0x1a1517[_0x381bad],_0x56d061=_0x1a1517[_0x1d244e];_0x5b626f<=_0x519d1c[_0x1e4199]&&_0x519d1c[_0x1e4199]+_0x1ef678<=_0x56d061&&_0x4d4ba5['addRange'](_0x216850);}}});});}function _0x4d53eb(_0x17ae27){const _0xfa68fc=Array['from'](_0x4c7a00['getRanges']())['map'](_0x2eba26=>_0x4d6067['fromRange'](_0x2eba26));_0xbe175e['model']['change'](_0x3d0531=>{const _0x4f445f=_0x3d0531['batch'];_0x17ae27=_0x17ae27['filter'](_0x576d57=>'$graveyard'!=_0x576d57['root']['rootName']),_0x3d0531['setSelection'](_0x17ae27),_0xbe175e['commands']['get']('removeTableRow')['refresh'](),_0xbe175e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xbe175e['model']['enqueueChange'](()=>{_0xbe175e['model']['enqueueChange'](_0x4f445f,_0x473464=>{const _0x3e307a=_0xfa68fc['filter'](_0x1e0106=>'$graveyard'!=_0x1e0106['root']['rootName']);_0x3e307a['length']>0x0&&_0x473464['setSelection'](_0x3e307a);for(const _0x528f6c of _0xfa68fc)_0x528f6c['detach']();});});});}function _0x106b34(_0x45126e){_0xbe175e['model']['change'](_0x362a72=>{const _0x1923be=Array['from'](_0x4c7a00['getRanges']())['map'](_0x1e94ef=>_0x4d6067['fromRange'](_0x1e94ef)),_0x9fb39c=[];for(const _0x56f2db of _0x45126e)for(const _0x3244f6 of _0x56f2db['getItems']({'shallow':!0x0}))_0x9fb39c['push'](_0x3244f6);for(const _0x38c71c of _0x9fb39c)'$graveyard'!=_0x38c71c['root']['rootName']&&(_0x362a72['setSelection'](_0x362a72['createPositionAt'](_0x38c71c,0x0)),_0xbe175e['commands']['get']('removeTableColumn')['refresh'](),_0xbe175e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x46ef22=_0x1923be['filter'](_0x53bd4c=>'$graveyard'!=_0x53bd4c['root']['rootName']);_0x46ef22['length']>0x0&&_0x362a72['setSelection'](_0x46ef22);for(const _0x4cb4c3 of _0x1923be)_0x4cb4c3['detach']();});}function _0x188878(_0x23e2ab,_0x4758c9){return _0x4758c9['every'](_0x1fc7e7=>_0x23e2ab['some'](_0x3f6727=>_0x3f6727['end']['isEqual'](_0x1fc7e7['start'])||_0x1fc7e7['end']['isEqual'](_0x3f6727['start'])));}function _0x332ec1(_0x212e70,_0x37b5f8){return!_0x212e70['some'](_0xa3c8f3=>_0x37b5f8['some'](_0x87f314=>_0xa3c8f3['isIntersecting'](_0x87f314)))&&_0x212e70['some'](_0xa5721=>_0x37b5f8['some'](_0x2138ee=>_0xa5721['end']['isTouching'](_0x2138ee['start'])));}_0xbe175e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xbca6b8,_0x22920b,_0x47a384)=>{if(!_0x47a384['options']['showSuggestionHighlights'])return;const _0x4e8c23=_0x22920b['item'];if(!_0x4e8c23)return;const _0x5b8bc4=_0x47a384['mapper']['toViewElement'](_0x4e8c23);function _0x3ccdab(_0x572d68){return Array['isArray'](_0x572d68)?_0x572d68:[_0x572d68];}_0x5b8bc4&&'tableCell'===_0x4e8c23['name']&&_0x1ebd5c(_0x5b8bc4,_0x47a384['writer'],(_0x398864,_0x2eefad,_0x13702a)=>_0x13702a['addClass'](_0x3ccdab(_0x2eefad['classes']),_0x398864),(_0x5b1fdd,_0x2a5885,_0x3c4cad)=>_0x3c4cad['removeClass'](_0x3ccdab(_0x2a5885['classes']),_0x5b1fdd));},{'priority':'highest'}),_0x31f88d['descriptionFactory']['registerDescriptionCallback'](_0x57c245=>{if('insertion'!=_0x57c245['type']&&'deletion'!=_0x57c245['type'])return;const _0x8a2740=_0x57c245['getContainedElement']();if(null!=_0x8a2740&&_0x8a2740['is']('element','table')){if('insertion'==_0x57c245['type']){const _0x12f191=_0x57c245['getItems']()['filter'](_0x365d98=>_0x365d98['is']('$textProxy'))['map'](_0xc41199=>_0xc41199['data']);if(_0x12f191['length'])return{'type':'insertion','content':o(_0x244402,'*Insert:*\x20%0',o(_0x244402,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12f191['join']('\x20')+'\x22'))};}if('deletion'==_0x57c245['type']){const _0x375aa4=_0x57c245['getItems']()['filter'](_0x2d5bd2=>_0x2d5bd2['is']('$textProxy'))['map'](_0xaed032=>_0xaed032['data']);if(_0x375aa4['length'])return{'type':'deletion','content':o(_0x244402,'*Remove:*\x20%0',o(_0x244402,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x375aa4['join']('\x20')+'\x22'))};}}}),_0x31f88d['descriptionFactory']['registerDescriptionCallback'](_0x4fee17=>{if('tableRow'==_0x4fee17['subType']){const _0x226458=_0x4fee17['getItems']()['filter'](_0xb14e8c=>_0xb14e8c['is']('$textProxy'))['map'](_0x5355a1=>_0x5355a1['data']),_0x4adfbf=this['_getSuggestionCoords'](_0x4fee17),_0x86a9ad=_0x4adfbf['maxRow']-_0x4adfbf['minRow']+0x1;if('insertion'==_0x4fee17['type'])return _0x226458['length']?{'type':'insertion','content':o(_0x244402,'*Insert:*\x20%0',o(_0x244402,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x86a9ad,'\x22'+_0x226458['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x244402,'*Insert:*\x20%0',o(_0x244402,'ELEMENT_TABLE_ROW',_0x86a9ad))};if('deletion'==_0x4fee17['type'])return _0x226458['length']?{'type':'deletion','content':o(_0x244402,'*Remove:*\x20%0',o(_0x244402,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x86a9ad,'\x22'+_0x226458['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x244402,'*Remove:*\x20%0',o(_0x244402,'ELEMENT_TABLE_ROW',_0x86a9ad))};}if('tableColumn'==_0x4fee17['subType']){const _0x22c32f=_0x4fee17['getItems']()['filter'](_0x5c6b54=>_0x5c6b54['is']('$textProxy'))['map'](_0x5684e9=>_0x5684e9['data']),_0x579208=this['_getSuggestionCoords'](_0x4fee17),_0x5b5f82=_0x579208['maxColumn']-_0x579208['minColumn']+0x1;if('insertion'==_0x4fee17['type'])return _0x22c32f['length']?{'type':'insertion','content':o(_0x244402,'*Insert:*\x20%0',o(_0x244402,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5b5f82,'\x22'+_0x22c32f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x244402,'*Insert:*\x20%0',o(_0x244402,'ELEMENT_TABLE_COLUMN',_0x5b5f82))};if('deletion'==_0x4fee17['type'])return _0x22c32f['length']?{'type':'deletion','content':o(_0x244402,'*Remove:*\x20%0',o(_0x244402,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5b5f82,'\x22'+_0x22c32f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x244402,'*Remove:*\x20%0',o(_0x244402,'ELEMENT_TABLE_COLUMN',_0x5b5f82))};}}),_0x31f88d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4d53eb),_0x31f88d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4d53eb),_0x31f88d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x106b34),_0x31f88d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x106b34),_0x31f88d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x188878),_0x31f88d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x188878),_0x31f88d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x332ec1),_0x31f88d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x332ec1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x510a11=this['editor'],_0x17f338=_0x510a11['model']['document']['selection'];return(_0x4e411e,_0x4d253b)=>{_0x510a11['model']['change'](_0x3b80a0=>{const {commandName:_0x1f41c8,commandParams:_0x326c5d}=_0x4d253b;let _0x39444a=_0x4e411e[0x0]['end']['nodeBefore'];_0x326c5d&&_0x326c5d[0x0]&&!0x1===_0x326c5d[0x0]['forceValue']&&(_0x39444a=_0x4e411e[0x0]['start']['nodeAfter']);const _0x5d8078=_0x3b80a0['createRangeIn'](_0x39444a);if('$graveyard'==_0x5d8078['root']['rootName'])return;const _0x3fc011=Array['from'](_0x17f338['getRanges']())['map'](_0x32d39f=>_0x4d6067['fromRange'](_0x32d39f));_0x3b80a0['setSelection'](_0x5d8078),_0x510a11['commands']['get'](_0x1f41c8)['refresh'](),_0x326c5d['push']({'forceDefaultExecution':!0x0}),_0x510a11['execute'](_0x1f41c8,..._0x326c5d);const _0x98414=_0x3fc011['filter'](_0x4694b9=>'$graveyard'!=_0x4694b9['root']['rootName']);_0x98414['length']>0x0&&_0x3b80a0['setSelection'](_0x98414);for(const _0x1a2283 of _0x3fc011)_0x1a2283['detach']();});};}['_getCoordsForCells'](_0x1192ff){const _0x82a274=this['editor']['plugins']['get']('TableUtils');let _0x46dfd5=Number['MAX_SAFE_INTEGER'],_0xb6f72c=Number['MIN_SAFE_INTEGER'],_0x4c8bbf=Number['MAX_SAFE_INTEGER'],_0x1c0364=Number['MIN_SAFE_INTEGER'];for(const _0x1cbfd6 of _0x1192ff){if('$graveyard'==_0x1cbfd6['root']['rootName'])continue;const {row:_0x1efd6f,column:_0x1e3c2f}=_0x82a274['getCellLocation'](_0x1cbfd6),_0x526b34=_0x1cbfd6['hasAttribute']('rowspan')?_0x1cbfd6['getAttribute']('rowspan')-0x1:0x0,_0x4c2857=_0x1cbfd6['hasAttribute']('colspan')?_0x1cbfd6['getAttribute']('colspan')-0x1:0x0;_0x46dfd5=_0x1efd6f<_0x46dfd5?_0x1efd6f:_0x46dfd5,_0xb6f72c=_0x1efd6f+_0x526b34>_0xb6f72c?_0x1efd6f+_0x526b34:_0xb6f72c,_0x4c8bbf=_0x1e3c2f<_0x4c8bbf?_0x1e3c2f:_0x4c8bbf,_0x1c0364=_0x1e3c2f+_0x4c2857>_0x1c0364?_0x1e3c2f+_0x4c2857:_0x1c0364;}return{'minRow':_0x46dfd5,'maxRow':_0xb6f72c,'minColumn':_0x4c8bbf,'maxColumn':_0x1c0364};}['_setupColumnsRowsFixing'](){const _0x4e34cc=this['editor'],_0x29694d=_0x4e34cc['plugins']['get']('TrackChangesEditing'),_0x5f434c=_0x4e34cc['plugins']['get']('TableUtils');_0x4e34cc['model']['document']['on']('change:data',()=>{const _0x13a6e0=Array['from'](_0x4e34cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c79fb,data:_0x180b06}of _0x13a6e0){const {group:_0x5597e5,id:_0x38e68e,subType:_0x3aea46}=_0x29694d['_splitMarkerName'](_0x5c79fb);if('suggestion'!=_0x5597e5)continue;if(null!=_0x180b06['oldRange'])continue;const _0x4d4a2e=_0x29694d['getSuggestion'](_0x38e68e);this['_tablePostFixingSubtypes']['includes'](_0x3aea46)&&this['_tableSuggestions']['add'](_0x4d4a2e);}},{'priority':'low'});const _0x288b72=(_0x4130a1,_0x174832)=>{let _0x2c7b8a=!0x1;const _0x170c3e=_0x174832['createRangeOn'](_0x4130a1),_0x35a229=_0x4130a1['findAncestor']('table'),_0x281bdf=_0x5f434c['getCellLocation'](_0x4130a1);for(const _0x1f93c8 of this['_tableSuggestions']){const _0x516fd3=_0x1f93c8['subType'],_0x242185=_0x516fd3['startsWith']('tablePaste'),_0xcea901=_0x516fd3['substr'](_0x242185?0xa:0x5),_0x55ddc8=_0xcea901['toLowerCase'](),_0x55dfc7=_0x55ddc8['substr'](0x0,0x3)+'span',_0xcb4ad8='min'+_0xcea901,_0xedabe6='max'+_0xcea901;if(!_0x1f93c8['isInContent'])continue;if(_0x35a229!=_0x1f93c8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1f93c8['isIntersectingWithRange'](_0x170c3e))continue;const _0xf21185=_0x4130a1['hasAttribute'](_0x55dfc7)?_0x4130a1['getAttribute'](_0x55dfc7)-0x1:0x0,_0x4a2bfc=this['_getSuggestionCoords'](_0x1f93c8),_0xae1a9d=_0x4a2bfc[_0xcb4ad8],_0x5b83fa=_0x4a2bfc[_0xedabe6];_0xae1a9d<=_0x281bdf[_0x55ddc8]&&_0x281bdf[_0x55ddc8]+_0xf21185<=_0x5b83fa&&(_0x1f93c8['addRange'](_0x170c3e),_0x2c7b8a=!0x0);}return _0x2c7b8a;};_0x4e34cc['model']['document']['registerPostFixer'](_0x147379=>{let _0x30aa6b=!0x1;for(const _0x401d0f of _0x4e34cc['model']['document']['differ']['getChanges']())if('insert'==_0x401d0f['type']){if('tableRow'==_0x401d0f['name']){for(const _0x1536a3 of _0x401d0f['position']['nodeAfter']['getChildren']())_0x30aa6b=_0x30aa6b||_0x288b72(_0x1536a3,_0x147379);}else'tableCell'==_0x401d0f['name']&&(_0x30aa6b=_0x30aa6b||_0x288b72(_0x401d0f['position']['nodeAfter'],_0x147379));}return _0x30aa6b;});}['_getSuggestionCoords'](_0x176cf6){return this['_getCoordsForCells'](_0x176cf6['getRanges']()['map'](_0x3980d2=>_0x3980d2['start']['nodeAfter']));}}function be(_0x4d7f00){return Array['from'](new Set(_0x4d7f00)['values']());}class vt extends _0xbd4bc4{static get['requires'](){return[It];}['afterInit'](){const _0x3310ce=this['editor'],_0x1af7de=_0x3310ce['model']['document']['selection'],_0x431b41=_0x3310ce['locale'];if(!_0x3310ce['plugins']['has']('TableEditing'))return;const _0x192539=_0x3310ce['plugins']['get']('TrackChangesEditing'),_0x181f6d=_0x3310ce['plugins']['get']('TableUtils'),_0x352f09=_0x3310ce['plugins']['get'](It);_0x352f09['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x192539['enableCommand']('mergeTableCells',()=>{const _0x4daeff=_0x181f6d['getSelectionAffectedTableCells'](_0x3310ce['model']['document']['selection']);_0x3310ce['model']['change'](()=>{_0x192539['markMultiRangeBlockFormat'](_0x4daeff,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3310ce['commands']['get']('mergeTableCells')['on']('execute',(_0x7b6baf,_0x1ae1a7)=>{_0x3310ce['commands']['get']('trackChanges')['value']&&(_0x1ae1a7['length']>0x0&&_0x1ae1a7[_0x1ae1a7['length']-0x1]&&_0x1ae1a7[_0x1ae1a7['length']-0x1]['forceDefaultExecution']||_0x192539['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x7b6baf['stop']());},{'priority':'highest'});for(const _0xff61e3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xaecab=_0x3310ce['commands']['get'](_0xff61e3);_0x192539['enableCommand'](_0xff61e3,()=>{const _0x296af0=_0x3310ce['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd1c3a2=>_0xd1c3a2['is']('element','tableCell')),_0x38e29a=_0xaecab['value'];_0x3310ce['model']['change'](()=>{_0x192539['markMultiRangeBlockFormat']([_0x296af0,_0x38e29a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x300ec8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2f852e=_0x3310ce['commands']['get'](_0x300ec8);_0x192539['enableCommand'](_0x300ec8,()=>{const _0x124f6b=_0x181f6d['getSelectionAffectedTableCells'](_0x3310ce['model']['document']['selection'])[0x0],_0x208b81=_0x124f6b['findAncestor']('table'),{column:_0x264ea4,row:_0x5db335}=_0x181f6d['getCellLocation'](_0x124f6b);let _0x3ca911=[];if('horizontally'==_0x2f852e['direction']){const _0x4756cf=_0x181f6d['createTableWalker'](_0x208b81,{'startRow':_0x5db335,'endRow':_0x5db335,'includeAllSlots':!0x0});_0x3ca911=Array['from'](_0x4756cf)['map'](_0x224095=>_0x224095['cell']);}else{const _0x40d335=_0x181f6d['createTableWalker'](_0x208b81,{'column':_0x264ea4,'includeAllSlots':!0x0});_0x3ca911=Array['from'](_0x40d335)['map'](_0x4b420e=>_0x4b420e['cell']);}_0x3310ce['model']['change'](_0x12e10f=>{_0x192539['markBlockFormat'](_0x12e10f['createRangeOn'](_0x124f6b),{'commandName':_0x300ec8,'commandParams':[]},_0x3ca911,_0x300ec8);});});}_0x192539['descriptionFactory']['registerDescriptionCallback'](_0x1c112e=>{if('formatBlock'!=_0x1c112e['type']&&'formatInline'!=_0x1c112e['type'])return;const {data:_0x4a71c0}=_0x1c112e;return _0x4a71c0&&'mergeTableCells'==_0x4a71c0['commandName']?{'type':'format','content':o(_0x431b41,'*Merge\x20cells*')}:void 0x0;}),_0x192539['descriptionFactory']['registerDescriptionCallback'](_0x252e1a=>{if('formatBlock'!=_0x252e1a['type']&&'formatInline'!=_0x252e1a['type'])return;const {data:_0x3a2f23}=_0x252e1a;return _0x3a2f23?'splitTableCellVertically'==_0x3a2f23['commandName']?{'type':'format','content':o(_0x431b41,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3a2f23['commandName']?{'type':'format','content':o(_0x431b41,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4408dc=_0x352f09['_acceptFormatSuggestionCallbackFactory']();for(const _0x318a78 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x192539['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x318a78,'accept',_0x4408dc);for(const _0xa21968 of['splitTableCellVertically','splitTableCellHorizontally'])_0x192539['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa21968,'accept',_0x4408dc);_0x192539['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3ae7cb=>{_0x3310ce['model']['change'](_0x261b1a=>{const _0x35e882=Array['from'](_0x1af7de['getRanges']())['map'](_0x3a2969=>_0x4d6067['fromRange'](_0x3a2969));_0x261b1a['setSelection'](_0x3ae7cb),_0x3310ce['commands']['get']('mergeTableCells')['refresh'](),_0x3310ce['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1ac220=_0x35e882['filter'](_0x458bc2=>'$graveyard'!=_0x458bc2['root']['rootName']);_0x1ac220['length']>0x0&&_0x261b1a['setSelection'](_0x1ac220);for(const _0x34c16c of _0x35e882)_0x34c16c['detach']();});});for(const _0x1328c1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5632dc=_0x3310ce['commands']['get'](_0x1328c1);_0x5632dc['on']('set:isEnabled',(_0x353045,_0x2751e4,_0x59e568)=>{if(_0x59e568){const _0x1f3c07=_0x3310ce['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x420332=>_0x420332['is']('element','tableCell'));this['_areMergableCells'](_0x5632dc['value'],_0x1f3c07)||(_0x353045['return']=!0x1,_0x353045['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x696187=this['editor']['commands']['get']('mergeTableCells'),_0x28d350=this['editor']['plugins']['get']('TableUtils');if(!_0x696187['isEnabled'])return!0x1;const _0x4cb9e6=_0x28d350['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x494eb of _0x4cb9e6)for(const _0x2e60eb of _0x4cb9e6)if(_0x494eb!=_0x2e60eb&&!this['_areMergableCells'](_0x494eb,_0x2e60eb))return!0x1;return!0x0;}['_areMergableCells'](_0x37df36,_0x36c12d){const _0x1c1079=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e0d66=this['editor']['model']['createRangeOn'](_0x37df36),_0x12e17d=this['editor']['model']['createRangeOn'](_0x36c12d),_0x12b6cb=new Set(),_0x3046bd=new Set();for(const _0x54d90a of _0x1c1079['getSuggestions']())if(('insertion'==_0x54d90a['type']||'deletion'==_0x54d90a['type']||'mergeTableCells'==_0x54d90a['subType'])&&_0x54d90a['isInContent']){for(const _0x11f0df of _0x54d90a['getRanges']())_0x11f0df['containsRange'](_0x4e0d66,!0x0)&&_0x12b6cb['add'](_0x54d90a['type']+':'+_0x54d90a['author']['id']),_0x11f0df['containsRange'](_0x12e17d,!0x0)&&_0x3046bd['add'](_0x54d90a['type']+':'+_0x54d90a['author']['id']);}if(_0x12b6cb['size']!=_0x3046bd['size'])return!0x1;for(const _0x1c3d9f of _0x12b6cb)if(!_0x3046bd['has'](_0x1c3d9f))return!0x1;return!0x0;}}class Ct extends _0xbd4bc4{static get['requires'](){return[It];}['afterInit'](){const _0x2dbc9f=this['editor'];if(!_0x2dbc9f['plugins']['has']('TableEditing'))return;const _0x4aae6a=_0x2dbc9f['locale'],_0x506afb=_0x2dbc9f['plugins']['get']('TrackChangesEditing');_0x506afb['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x506afb['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x506afb['registerBlockAttribute']('headingRows'),_0x506afb['registerBlockAttribute']('headingColumns'),_0x506afb['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4aae6a,'FORMAT_HEADER_ROW')),_0x506afb['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4aae6a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b1fb9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30eb64=this['editor']['plugins']['get']('TableUtils'),_0x4acd62=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2ad2f7({showActiveMarker:_0x227cb1=!0x0,setDataAttribute:_0x4bd69a=!0x0}={}){return(_0x562745,_0x4d8211,_0x5878d8)=>{const {type:_0xcb5c5b,id:_0x56bdd6}=_0x2b1fb9['_splitMarkerName'](_0x4d8211['markerName']),_0x54b8cd=_0x2b1fb9['getSuggestion'](_0x56bdd6),_0x58ae76=_0x54b8cd['data'];if('formatBlock'!=_0x54b8cd['type']||!_0x58ae76||'setTableColumnHeader'!=_0x58ae76['commandName'])return;if(_0x4d8211['item'])return void _0x562745['stop']();if(!_0x5878d8['consumable']['consume'](_0x4d8211['markerRange'],_0x562745['name']))return;const _0x3c3deb=_0x4d8211['markerRange']['start']['nodeAfter'],_0x36f1ca=_0x4d8211['markerRange']['end']['nodeBefore'],_0x4addba=_0x3c3deb['parent']['parent'],{column:_0x4ae5e5}=_0x30eb64['getCellLocation'](_0x3c3deb),{column:_0x10939d}=_0x30eb64['getCellLocation'](_0x36f1ca);for(let _0x2ac6f7=_0x4ae5e5;_0x2ac6f7<=_0x10939d;_0x2ac6f7++){const _0x24152c=_0x30eb64['createTableWalker'](_0x4addba,{'column':_0x2ac6f7,'includeAllSlots':!0x1});for(const _0x14dc65 of _0x24152c){const _0x20f8a5=_0x14dc65['cell'],_0x3d7e5e=_0x5878d8['mapper']['toViewElement'](_0x20f8a5);_0x5878d8['writer']['addClass']('ck-suggestion-marker-'+_0xcb5c5b,_0x3d7e5e),_0x4bd69a&&_0x5878d8['writer']['setAttribute']('data-suggestion',_0x56bdd6,_0x3d7e5e),_0x5878d8['mapper']['bindElementToMarker'](_0x3d7e5e,_0x4d8211['markerName']),_0x227cb1&&(_0x2b1fb9['activeMarkers']['includes'](_0x4d8211['markerName'])?_0x5878d8['writer']['addClass']('ck-suggestion-marker--active',_0x3d7e5e):_0x5878d8['writer']['removeClass']('ck-suggestion-marker--active',_0x3d7e5e));}}};}_0x2b1fb9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4acd62),_0x2b1fb9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4acd62),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ad2f7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5f1dea,_0x2d7f24,_0x4abc89)=>{_0x4abc89['options']['showSuggestionHighlights']&&_0x2ad2f7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5f1dea,_0x2d7f24,_0x4abc89);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5569f5,_0x441114,_0x3862e4)=>{const {type:_0x52abb7,id:_0x22482e}=_0x2b1fb9['_splitMarkerName'](_0x441114['markerName']),_0x115bef=_0x2b1fb9['getSuggestion'](_0x22482e),_0x4bef53=_0x115bef['data'];if('formatBlock'!=_0x115bef['type']||!_0x4bef53||'setTableColumnHeader'!=_0x4bef53['commandName'])return;const _0x463b13=_0x3862e4['mapper']['markerNameToElements'](_0x441114['markerName']);if(_0x463b13){for(const _0x387ba0 of _0x463b13)_0x3862e4['writer']['removeClass']('ck-suggestion-marker-'+_0x52abb7,_0x387ba0),_0x3862e4['writer']['removeClass']('ck-suggestion-marker--active',_0x387ba0),_0x3862e4['writer']['removeAttribute']('data-suggestion',_0x387ba0),_0x3862e4['mapper']['unbindElementFromMarkerName'](_0x387ba0,_0x441114['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x501e4a=this['editor'],_0x7805dc=_0x501e4a['locale'];function _0x57cdfe(_0x708daa){return{'type':'format','content':o(_0x7805dc,'*Format:*\x20%0',_0x708daa)};}_0x501e4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12040e=>{if('formatBlock'!=_0x12040e['type'])return;const {data:_0x5f3717}=_0x12040e;if(_0x5f3717){if('setTableRowHeader'==_0x5f3717['commandName']){const _0xe8c36a=_0x5f3717['commandParams'][0x0]['forceValue'];return _0x57cdfe(o(_0x7805dc,_0xe8c36a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5f3717['commandName']){const _0x78e67d=_0x5f3717['commandParams'][0x0]['forceValue'];return _0x57cdfe(o(_0x7805dc,_0x78e67d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x21d137=>[_0x21d137,null]));class _t extends _0xbd4bc4{static get['requires'](){return[It];}['afterInit'](){const _0x1709d7=this['editor'];if(!_0x1709d7['plugins']['has']('TableClipboard'))return;const _0x3da021=_0x1709d7['plugins']['get']('TrackChangesEditing'),_0x5577a1=_0x1709d7['plugins']['get']('TableUtils'),_0x86365d=_0x1709d7['plugins']['get'](It),_0x4760c7=_0x1709d7['plugins']['get']('TableClipboard');_0x86365d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1709d7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1709d7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5124a7=null;_0x1709d7['model']['on']('insertContent',(_0xf88e06,_0x28db64)=>{const [_0x423404,_0xe4c871]=_0x28db64,_0x55287c=_0x28db64[_0x28db64['length']-0x1];_0x55287c&&_0x55287c['forceDefaultExecution']||_0x3da021['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xfbc5d5,_0x3a1c1e,_0x141787,_0x4c5053,_0xe85f5a){if(_0x3a1c1e&&!_0x3a1c1e['is']('documentSelection'))return!0x1;const _0x581abd=_0xe85f5a['getTableIfOnlyTableInContent'](_0xfbc5d5,_0x141787);if(!_0x581abd||!Re(_0x581abd,void 0x0,_0x4c5053))return!0x1;const _0x204fed=_0x4c5053['getSelectionAffectedTableCells'](_0x141787['document']['selection']);if(!_0x204fed['length'])return!0x1;const _0x29e54f=_0x204fed[0x0]['findAncestor']('table'),_0x373394=_0x4c5053['getRowIndexes'](_0x204fed),_0x399bd3=_0x4c5053['getColumnIndexes'](_0x204fed),_0x1f812a={'startRow':_0x373394['first'],'endRow':_0x373394['last'],'startColumn':_0x399bd3['first'],'endColumn':_0x399bd3['last']};return 0x1==_0x204fed['length']&&(_0x1f812a['endRow']+=_0x4c5053['getRows'](_0x581abd)-0x1,_0x1f812a['endColumn']+=_0x4c5053['getColumns'](_0x581abd)-0x1),Re(_0x29e54f,_0x1f812a,_0x4c5053);}(_0x423404,_0xe4c871,_0x1709d7['model'],_0x5577a1,_0x4760c7)&&(_0xf88e06['stop'](),_0x5124a7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1709d7['model']['change'](()=>{_0x1709d7['model']['insertContent'](_0x28db64[0x0],_0x28db64[0x1],_0x28db64[0x2],{'forceDefaultExecution':!0x0});const _0x50c7b4=_0x44c9df(),{rowInsertionRanges:_0x1f4c56,columnInsertionRanges:_0x29b31c,insertionRanges:_0x376e40,deletionRanges:_0x590f66,cells:_0x5c0a1c}=_0x5124a7;_0x1f4c56['length']&&_0x3da021['markMultiRangeInsertion'](_0x1f4c56,'tablePasteRow',{'tablePasteChainId':_0x50c7b4}),_0x29b31c['length']&&_0x3da021['markMultiRangeInsertion'](_0x29b31c,'tablePasteColumn',{'tablePasteChainId':_0x50c7b4}),_0x376e40['length']&&(_0x3da021['markMultiRangeInsertion'](_0x376e40,'tablePaste',{'tablePasteChainId':_0x50c7b4,'skipNestingCheck':!0x0}),_0x376e40['forEach'](_0x430a7a=>_0x430a7a['detach']?.())),_0x590f66['length']&&(_0x3da021['markMultiRangeDeletion'](_0x590f66,'tablePaste',{'tablePasteChainId':_0x50c7b4,'skipNestingCheck':!0x0}),_0x590f66['forEach'](_0x512ec4=>_0x512ec4['detach']?.()));const _0x4aee82=_0x3da021['markMultiRangeBlockFormat'](_0x5c0a1c['map'](({element:_0x46d043})=>_0x46d043),{'formatGroupId':_0x44c9df()},[],'tablePasteCell',{'tablePasteChainId':_0x50c7b4});if(_0x4aee82){const _0x580964=_0x4aee82['getMarkers'](),_0x2dfe8b=[];for(const {element:_0x1f3115,attributes:_0x1786d8}of _0x5c0a1c){if(!_0x1786d8)continue;const _0x48b151=_0x1709d7['model']['createRangeOn'](_0x1f3115),_0x54c201=_0x580964['find'](_0x3d0914=>_0x3d0914['getRange']()['isEqual'](_0x48b151));_0x54c201&&_0x2dfe8b['push']([_0x54c201['name'],_0x1786d8]);}_0x2dfe8b['length']&&_0x4aee82['setAttribute']('markerAttributes',Object['fromEntries'](_0x2dfe8b));}_0x5124a7=null;}));},{'priority':_0x399907['high']+0xa}),_0x1709d7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xf4db03,_0x1c8137)=>{const [_0x58e190,_0x5de0cf,,_0x35ac9c]=_0x1c8137;if(!_0x5124a7)return;_0xf4db03['stop']();const _0x54ed3c=_0x58e190['cell'],_0x3df7d9=_0x5de0cf,_0x6bd3e2=ke(_0x54ed3c),_0x40baeb=ke(_0x3df7d9);_0xf4db03['return']=_0x54ed3c;let _0x2e1fab=null,_0x26b26b=null;if(_0x40baeb||_0x6bd3e2){if(_0x6bd3e2&&!_0x40baeb){_0x35ac9c['remove'](_0x54ed3c['getChild'](0x0));for(const _0x385e84 of Array['from'](_0x3df7d9['getChildren']()))_0x35ac9c['insert'](_0x385e84,_0x54ed3c,'end');const _0x52b97e=_0x5124a7['rowInsertionIndexes']['includes'](_0x58e190['row']),_0x38db9e=_0x5124a7['columnInsertionIndexes']['includes'](_0x58e190['column']);_0x52b97e||_0x38db9e||(_0x2e1fab=_0x4d6067['fromRange'](_0x35ac9c['createRangeIn'](_0x54ed3c)));}else _0x40baeb&&!_0x6bd3e2&&(_0x26b26b=_0x35ac9c['createRangeIn'](_0x54ed3c));}else{const _0x11f99b=_0x35ac9c['createElement']('tableCellSuggestion'),_0x31d0f0=_0x35ac9c['createElement']('tableCellSuggestion');_0x35ac9c['wrap'](_0x35ac9c['createRangeIn'](_0x54ed3c),_0x31d0f0),_0x35ac9c['insert'](_0x11f99b,_0x54ed3c,0x0);for(const _0x311eb0 of Array['from'](_0x3df7d9['getChildren']()))_0x35ac9c['insert'](_0x311eb0,_0x11f99b,'end');_0x2e1fab=_0x4d6067['fromRange'](_0x35ac9c['createRangeOn'](_0x11f99b)),_0x26b26b=_0x4d6067['fromRange'](_0x35ac9c['createRangeOn'](_0x31d0f0));}const _0x5cabb6=Array['from'](_0x3df7d9['getAttributes']())['filter'](([_0x3fc1f0])=>Pe['includes'](_0x3fc1f0));_0x5124a7['cells']['push']({'element':_0x54ed3c,'attributes':_0x5cabb6['length']?Object['fromEntries'](_0x5cabb6):null}),_0x2e1fab&&_0x5124a7['insertionRanges']['push'](_0x2e1fab),_0x26b26b&&_0x5124a7['deletionRanges']['push'](_0x26b26b);},{'priority':'high'}),_0x5577a1['on']('insertColumns',(_0x5d790c,_0x3fb9f8)=>{const [_0x2f8e70,_0x485fb5={}]=_0x3fb9f8;if(!_0x5124a7)return;const _0x3557e6=_0x485fb5['at']||0x0,_0x4fdcc1=_0x485fb5['columns']||0x1;_0x5124a7['columnInsertionIndexes']=new Array(_0x4fdcc1)['fill'](_0x3557e6)['map']((_0x17a3c1,_0x4f5418)=>_0x17a3c1+_0x4f5418);for(const {cell:_0x556fc9}of _0x5577a1['createTableWalker'](_0x2f8e70,{'startColumn':_0x3557e6,'endColumn':_0x3557e6+_0x4fdcc1-0x1}))_0x5124a7['columnInsertionRanges']['push'](_0x1709d7['model']['createRangeOn'](_0x556fc9));},{'priority':'low'}),_0x5577a1['on']('insertRows',(_0x308ffd,_0x53e6db)=>{const [_0x4aee58,_0x147109={}]=_0x53e6db;if(!_0x5124a7)return;const _0x54d0a5=_0x147109['at']||0x0,_0x589c85=_0x147109['rows']||0x1;_0x5124a7['rowInsertionIndexes']=new Array(_0x589c85)['fill'](_0x54d0a5)['map']((_0x4b0217,_0x248172)=>_0x4b0217+_0x248172);for(const {cell:_0x879121}of _0x5577a1['createTableWalker'](_0x4aee58,{'startRow':_0x54d0a5,'endRow':_0x54d0a5+_0x589c85-0x1}))_0x5124a7['rowInsertionRanges']['push'](_0x1709d7['model']['createRangeOn'](_0x879121));},{'priority':'low'}),_0x3da021['descriptionFactory']['registerDescriptionCallback'](_0x5df6dc=>{if(_0x5df6dc['subType']&&_0x5df6dc['subType']['startsWith']('tablePaste'))return _0x5df6dc['previous']?{}:{'type':'insertion','content':o(_0x1709d7['locale'],'*Replace\x20table\x20cells*')};});const _0x517cef=()=>!0x1;for(const _0x906cea of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3da021['_suggestionFactory']['registerCustomCallback']('insertion',_0x906cea,'join',_0x517cef),_0x3da021['_suggestionFactory']['registerCustomCallback']('deletion',_0x906cea,'join',_0x517cef),_0x3da021['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x906cea,'join',_0x517cef);_0x3da021['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x517cef),_0x3da021['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4192c0,_0x532981,_0x3ea3cc)=>{const _0x5b211c=_0x4192c0['map'](_0x15693a=>_0x15693a['getContainedElement']())['filter'](_0x849025=>_0x849025),_0x40f0fc=new Map(_0x5b211c['map'](_0x5646eb=>[_0x5646eb,null]));if(_0x5124a7){for(const {element:_0x1704d9,attributes:_0x13bd62}of _0x5124a7['cells'])_0x13bd62&&_0x40f0fc['set'](_0x1704d9,_0x13bd62);}else{if(_0x3ea3cc&&_0x3ea3cc['markerAttributes'])for(const [_0x37a135,_0x1ae6ab]of Object['entries'](_0x3ea3cc['markerAttributes'])){const _0x25cb56=_0x1709d7['model']['markers']['get'](_0x37a135),_0x27a626=_0x25cb56?_0x25cb56['getRange']()['getContainedElement']():null;_0x27a626&&_0x40f0fc['set'](_0x27a626,_0x1ae6ab);}}_0x1709d7['model']['change'](_0x52ba54=>{for(const [_0x156cb9,_0x1b7a18]of _0x40f0fc)_0x52ba54['setAttributes']({...we,..._0x1b7a18},_0x156cb9);});});const _0x5b7df0=(_0x34dd0c,_0x5587d6)=>{_0x3da021['_suggestionFactory']['registerCustomCallback'](_0x34dd0c,'tablePaste',_0x5587d6,(_0x5175be,_0x39e2bf,_0x30ea21)=>{_0x1709d7['model']['change'](_0x5c45ca=>{const _0x15470f=[];for(const _0x410cca of _0x5175be){const _0x9d6751=_0x410cca['start']['nodeAfter'];_0x9d6751['is']('element','tableCellSuggestion')&&_0x15470f['push'](_0x9d6751);}_0x3da021['_suggestionFactory']['getSuggestionCallback'](_0x34dd0c,null,_0x5587d6)(_0x5175be,_0x39e2bf,_0x30ea21);for(const _0x3f21a9 of _0x15470f)'$graveyard'!=_0x3f21a9['root']['rootName']&&_0x5c45ca['unwrap'](_0x3f21a9);});});};_0x5b7df0('insertion','accept'),_0x5b7df0('insertion','discard'),_0x5b7df0('deletion','accept'),_0x5b7df0('deletion','discard'),_0x3da021['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xb42b19=>{const _0x554fe6=_0xb42b19['map'](_0x8cbf5c=>_0x8cbf5c['getContainedElement']()),_0x2b9f3f=_0x554fe6[0x0]['findAncestor']('table'),{minRow:_0x2dac14,maxRow:_0x3584da}=_0x86365d['_getCoordsForCells'](_0x554fe6);_0x5577a1['removeRows'](_0x2b9f3f,{'at':_0x2dac14,'rows':_0x3584da-_0x2dac14+0x1});}),_0x3da021['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x561fc4=>{const _0xe42d80=_0x561fc4['map'](_0x5eec90=>_0x5eec90['getContainedElement']()),_0x2012eb=_0xe42d80[0x0]['findAncestor']('table'),{minColumn:_0x27e852,maxColumn:_0x330d9e}=_0x86365d['_getCoordsForCells'](_0xe42d80);_0x5577a1['removeColumns'](_0x2012eb,{'at':_0x27e852,'columns':_0x330d9e-_0x27e852+0x1});});const _0x3928db=(_0x4d0ba0,_0x2f1ca8)=>{if(!_0x2f1ca8['subType']||!_0x2f1ca8['subType']['startsWith']('tablePaste'))return;const _0x1c1d8a=_0x2f1ca8['attributes']['tablePasteChainId'],_0x249a2c=_0x3da021['getSuggestions']()['filter'](_0x447440=>_0x447440['isInContent']&&_0x447440['attributes']&&_0x447440['attributes']['tablePasteChainId']==_0x1c1d8a);_0x249a2c['length']&&_0x2f1ca8['getAllAdjacentSuggestions']()['length']!=_0x249a2c['length']&&_0x249a2c['reduce']((_0x399ac3,_0x3d44c9)=>(_0x399ac3['next']=_0x3d44c9,_0x3d44c9['previous']=_0x399ac3,_0x3d44c9));};function _0x154f76(_0x562de1,_0x33f759=!0x0){const {id:_0x3ce860,authorId:_0x53d49e}=_0x3da021['_splitMarkerName'](_0x562de1['markerName']),_0x5176c3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4dd06b=_0x3da021['activeMarkers']['includes'](_0x562de1['markerName']);return _0x4dd06b&&_0x5176c3['push']('ck-suggestion-marker--active'),{'classes':_0x5176c3,'attributes':{'data-suggestion':_0x3ce860,'data-author-id':_0x53d49e},'priority':_0x4dd06b&&_0x33f759?0xbc2:0xbb8};}_0x3da021['on']('suggestionLoaded',_0x3928db,{'priority':'high'}),_0x3da021['on']('suggestionUnloaded',_0x3928db,{'priority':'high'}),_0x1709d7['model']['document']['registerPostFixer'](()=>{let _0x4e6767=!0x1;const _0x577746=Array['from'](_0x1709d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2743a4,data:_0x393d49}of _0x577746){const {group:_0x497386,type:_0x3ad456,id:_0x4dfe0c}=_0x3da021['_splitMarkerName'](_0x2743a4);if('suggestion'!=_0x497386||'deletion'!=_0x3ad456||_0x393d49['oldRange'])continue;if(!_0x3da021['hasSuggestion'](_0x4dfe0c))continue;const _0x1e7a8b=_0x3da021['getSuggestion'](_0x4dfe0c)['getRanges'](),_0x4ef7e3=_0x1709d7['plugins']['get']('Users')['me'];for(const _0x56cd4d of _0x3da021['getSuggestions']()){if(!_0x56cd4d['isInContent']||_0x56cd4d['author']!=_0x4ef7e3)continue;if('formatBlock'!=_0x56cd4d['type']||'tablePasteCell'!=_0x56cd4d['subType'])continue;if(_0x56cd4d['getRanges']()['every'](_0x3cff95=>_0x1e7a8b['some'](_0xf017cd=>_0xf017cd['containsRange'](_0x3cff95,!0x0)))){for(const _0xd2bd of _0x56cd4d['getAllAdjacentSuggestions']())_0xd2bd['isInContent']&&(_0xd2bd['discard'](),_0x4e6767=!0x0);}}}return _0x4e6767;}),_0x1709d7['model']['document']['registerPostFixer'](_0x3ee3ba=>{const _0x126144=_0x1709d7['commands']['get']('redo');if(!_0x126144||!_0x126144['_createdBatches']['has'](_0x3ee3ba['batch']))return!0x1;let _0x55d54a=!0x1;const _0x2d5f5f=_0x1709d7['plugins']['get']('Users')['me'],_0x2aba22=_0x1709d7['model']['document']['differ']['getChanges'](),_0x3b8ec7=Array['from'](_0x1709d7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5cf407,data:_0x50b334})=>{const {group:_0x4aab92,subType:_0xe495a8,authorId:_0xb80b82}=_0x3da021['_splitMarkerName'](_0x5cf407);return'suggestion'==_0x4aab92&&'tablePaste'==_0xe495a8&&_0xb80b82==_0x2d5f5f['id']&&!_0x50b334['oldRange'];});for(const _0x254c6f of _0x2aba22){if('insert'!=_0x254c6f['type']||'tableCellSuggestion'!=_0x254c6f['name']||0x1!=_0x254c6f['length'])continue;const _0x454db2=_0x3ee3ba['createRange'](_0x254c6f['position'],_0x254c6f['position']['getShiftedBy'](0x1));if(!_0x3b8ec7['find'](({data:_0x3f2495})=>_0x3f2495['newRange']['isEqual'](_0x454db2))){for(const {name:_0x518579,data:_0x5694a0}of _0x3b8ec7)if(_0x454db2['containsRange'](_0x5694a0['newRange'])){_0x3ee3ba['updateMarker'](_0x518579,{'range':_0x454db2}),_0x55d54a=!0x0;break;}}}return _0x55d54a;}),_0x1709d7['model']['document']['registerPostFixer'](_0x327e0b=>{let _0x300ba7=!0x1;const _0x57d43b=_0x1709d7['plugins']['get']('Users')['me'],_0x3fa589=_0x3da021['getSuggestions']()['filter'](_0xa28364=>_0xa28364['isInContent']&&_0xa28364['author']==_0x57d43b),_0x57604e=new Set(),_0x295def=new Set();for(const _0xa4d81a of _0x3fa589)if('tablePaste'==_0xa4d81a['subType'])for(const _0x2b64b5 of _0xa4d81a['getMarkers']()){const _0x2ee183=_0x2b64b5['getRange']()['getContainedElement']();if(_0x2ee183){if(_0x2ee183['is']('element','tableCellSuggestion')&&ke(_0x2ee183)){_0xa4d81a['removeMarker'](_0x2b64b5['name']),_0x57604e['add'](_0x2ee183),_0x300ba7=!0x0;const _0x1a09f3=_0x2ee183['nextSibling'],_0x251b85=_0x2ee183['previousSibling'],_0x2956bc=_0x1a09f3&&_0x1a09f3['is']('element','tableCellSuggestion'),_0xefef0a=_0x251b85&&_0x251b85['is']('element','tableCellSuggestion');_0x2956bc&&!_0x57604e['has'](_0x1a09f3)&&_0x295def['add'](_0x1a09f3),_0xefef0a&&!_0x57604e['has'](_0x251b85)&&_0x295def['add'](_0x251b85);}else _0x2ee183['is']('element','paragraph')&&_0x2ee183['isEmpty']&&(_0xa4d81a['removeMarker'](_0x2b64b5['name']),_0x300ba7=!0x0);}}else{if('tablePasteCell'==_0xa4d81a['subType']){if(!_0xa4d81a['attributes']||!_0xa4d81a['attributes']['tablePasteChainId'])continue;const _0x413973=_0xa4d81a['attributes']['markerAttributes'];if(_0x413973&&Object['keys'](_0x413973)['length'])continue;const _0x2982bc=_0xa4d81a['attributes']['tablePasteChainId'];let _0xc1efc=!0x0,_0x342ac4=!0x0;for(const _0x1e3bf2 of _0x3fa589)if(_0x1e3bf2['subType']&&_0x1e3bf2['subType']['startsWith']('tablePaste')){if(!_0x1e3bf2['attributes']['tablePasteChainId']){_0x342ac4=!0x1;break;}if(_0x1e3bf2['id']!=_0xa4d81a['id']&&_0x1e3bf2['attributes']['tablePasteChainId']==_0x2982bc){_0xc1efc=!0x1;break;}}_0x342ac4&&_0xc1efc&&(_0xa4d81a['removeMarkers'](),_0x300ba7=!0x0);}}for(const _0x5e3fef of _0x57604e)_0x327e0b['remove'](_0x5e3fef);for(const _0x225adc of _0x295def)_0x327e0b['unwrap'](_0x225adc);return _0x300ba7;}),_0x1709d7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x7340a7=>_0x154f76(_0x7340a7),'converterPriority':'high'}),_0x1709d7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x40dfb8,_0x26e0f1)=>_0x26e0f1['options']['showSuggestionHighlights']?_0x154f76(_0x40dfb8,!0x1):null,'converterPriority':'high'});const _0x1c492a=_0x1709d7['editing']['view'];this['listenTo'](_0x1c492a['document'],'clipboardOutput',(_0x43ed68,_0x3ba0cb)=>{const _0x5d58b1=[];for(const _0x11c599 of _0x1c492a['createRangeIn'](_0x3ba0cb['content'])['getItems']())_0x11c599['is']('element','suggestion-td')&&_0x5d58b1['push'](_0x11c599);_0x1c492a['change'](_0x3da7aa=>{for(const _0x13ec9a of _0x5d58b1)_0x3da7aa['move'](_0x3da7aa['createRangeIn'](_0x13ec9a),_0x3da7aa['createPositionBefore'](_0x13ec9a)),_0x3da7aa['remove'](_0x13ec9a);});});}}function ke(_0x5df67a){if(_0x5df67a['isEmpty'])return!0x0;const _0x1cf084=_0x5df67a['getChild'](0x0);return _0x1cf084['is']('element','paragraph')&&_0x1cf084['isEmpty'];}function Re(_0x3714cf,_0x187afb={},_0x412ed8){for(const {isAnchor:_0x12b7ef,cellHeight:_0x20c411,cellWidth:_0x4aa810}of _0x412ed8['createTableWalker'](_0x3714cf,{'includeAllSlots':!0x0,..._0x187afb}))if(!_0x12b7ef||0x1!=_0x20c411||0x1!=_0x4aa810)return!0x1;return!0x0;}class Nt extends _0xbd4bc4{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x926528=this['editor']['plugins']['get']('TrackChangesEditing');_0x926528['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x926528['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x926528['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x926528['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x926528['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x926528['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xb6ea3,_0xa016ff){const _0x5165b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51184f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x36fb26=_0xa016ff['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x24afa5=_0x51184f['getColumnGroupElement'](_0x36fb26);let _0x5ad884=_0x24afa5?_0x51184f['getTableColumnsWidths'](_0x24afa5):null,_0x124616=_0x36fb26['getAttribute']('tableWidth')||null;const _0x2baaa5=_0xa016ff['tableWidth']||_0x124616,_0x518d41=_0xa016ff['columnWidths']||_0x5ad884,_0x2ebcdb=this['editor']['plugins']['get']('Users')['me'];for(const _0x4ac5b2 of _0x5165b1['getSuggestions']()){const _0x2c50e8=_0x4ac5b2['getContainedElement']();if('resizeTable'===_0x4ac5b2['subType']&&_0x2c50e8===_0x36fb26){_0x4ac5b2['author']!==_0x2ebcdb&&_0x4ac5b2['discard']();const _0x163da2=_0x4ac5b2['data']['commandParams'];_0x124616=_0x163da2[0x0]['tableWidth'],_0x5ad884=_0x163da2[0x0]['columnWidths'];break;}}_0xb6ea3({'table':_0x36fb26,'tableWidth':_0x2baaa5,'columnWidths':_0x518d41}),_0x5165b1['markBlockFormat'](_0x36fb26,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x124616,'columnWidths':_0x5ad884}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x47ccc7){if('formatBlock'!=_0x47ccc7['type']&&'formatInline'!=_0x47ccc7['type'])return;const {data:_0x342f9d}=_0x47ccc7;if(_0x342f9d&&'resizeTable'===_0x342f9d['formatGroupId']){const _0x21460a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x21460a)};}}}class Dt extends _0xbd4bc4{['afterInit'](){const _0x499851=this['editor'];_0x499851['plugins']['has']('Template')&&_0x499851['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xbd4bc4{['afterInit'](){const _0x1fcda5=this['editor'];if(!_0x1fcda5['commands']['get']('insertTableOfContents'))return;_0x1fcda5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x522a20=_0x1fcda5['plugins']['get']('TrackChangesEditing'),_0x1c2d21=_0x1fcda5['locale'];_0x522a20['descriptionFactory']['registerElementLabel']('tableOfContents',_0x20b3cb=>o(_0x1c2d21,'ELEMENT_TABLE_OF_CONTENTS',_0x20b3cb));}}class $t extends _0xbd4bc4{['afterInit'](){const _0xc74c5f=this['editor'];if(!_0xc74c5f['plugins']['has']('Title'))return;const _0xa121bf=_0xc74c5f['plugins']['get']('TrackChangesEditing');_0xa121bf['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xc74c5f['locale'],'ELEMENT_TITLE')),_0xc74c5f['model']['document']['registerPostFixer'](_0x154d94=>{let _0x3bf76a=!0x1;const _0x457bad=Array['from'](_0xc74c5f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x228170,data:_0x1493bc}of _0x457bad){const {group:_0x125196}=_0xa121bf['_splitMarkerName'](_0x228170);if('suggestion'!==_0x125196||!_0x1493bc['newRange'])continue;const _0x14c201=_0x1493bc['newRange'],_0x18d140=_0x14c201['end']['nodeBefore'];if(!_0x18d140||!_0x18d140['is']('element','title-content'))continue;if(!_0x14c201['start']['isTouching'](_0x14c201['end']))continue;const _0x3db5ef=_0xc74c5f['model']['schema']['getNearestSelectionRange'](_0x14c201['end'],'forward');if(_0x3db5ef&&_0x3db5ef['isCollapsed']){const _0x301085=_0x154d94['createRange'](_0x14c201['start'],_0x3db5ef['start']);_0x301085['isEqual'](_0x14c201)||(_0x154d94['updateMarker'](_0x228170,{'range':_0x301085}),_0x3bf76a=!0x0);}_0x3bf76a||(_0x154d94['removeMarker'](_0x228170),_0x3bf76a=!0x0);}return _0x3bf76a;});}}class Bt extends _0xbd4bc4{['afterInit'](){const _0x249270=this['editor'],_0x13532c=_0x249270['plugins']['get']('TrackChangesEditing');_0x249270['plugins']['has']('UndoEditing')&&(_0x13532c['enableCommand']('undo'),_0x13532c['enableCommand']('redo'));}}class xt extends _0xbd4bc4{static get['requires'](){return[It];}['afterInit'](){const _0x37251b=this['editor'];if(!_0x37251b['plugins']['has']('TableCaptionEditing'))return;_0x37251b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0xbd4bc4{['tableProperties'];['tableCellProperties'];constructor(_0x2100b3){super(_0x2100b3),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2ae829=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xff6ff8 of this['tableProperties'])_0x2ae829['enableCommand'](_0xff6ff8,(_0x3aa653,_0x56ee48)=>{const _0x2d323b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xff6ff8,[_0x2d323b],this['tableProperties'],'tableProperties',_0x3aa653,_0x56ee48);});_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2ae829['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x288b17,_0x4babee)=>this['handleDiscardAction'](this['tableProperties'],_0x288b17,_0x4babee)),_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12566b of this['tableCellProperties'])_0x2ae829['enableCommand'](_0x12566b,(_0x53cf87,_0x3003a4)=>{const _0x534e9d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12566b,_0x534e9d,this['tableCellProperties'],'tableCellProperties',_0x53cf87,_0x3003a4);});_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2ae829['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x45e207,_0x3f6164)=>this['handleDiscardAction'](this['tableCellProperties'],_0x45e207,_0x3f6164)),_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2ae829['descriptionFactory']['registerDescriptionCallback'](_0x404045=>this['handleSuggestionDescription'](_0x404045));}['_handlePropertyChange'](_0x32a0e5,_0x1ef3ac,_0x4e6741,_0x3b6f36,_0x15929b,_0x31c891){const _0x4f2bdd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x31c891['batch'],()=>{for(const _0x415f40 of _0x1ef3ac){if(this['_getSuggestion'](_0x415f40,_0x3b6f36))_0x15929b(_0x31c891);else{const _0x146c3b={};for(const _0x4f9f27 of _0x4e6741){const _0x5c90fb=_0x415f40['getAttribute'](_0x4f9f27);void 0x0!==_0x5c90fb&&(_0x146c3b[_0x4f9f27]=_0x5c90fb);}_0x15929b(_0x31c891),_0x4f2bdd['markBlockFormat'](_0x415f40,{'commandParams':[_0x146c3b]},[],_0x3b6f36);}}});}['handleDiscardAction'](_0x209500,_0xe6c1af,_0x29ccdc){const _0xcac13c=_0xe6c1af[0x0]['start']['nodeAfter'],_0x334906=_0x29ccdc['commandParams'][0x0];this['editor']['model']['change'](_0x2de65e=>{for(const _0x5243d7 of _0x209500)void 0x0!==_0x334906[_0x5243d7]?_0x2de65e['setAttribute'](_0x5243d7,_0x334906[_0x5243d7],_0xcac13c):_0x2de65e['removeAttribute'](_0x5243d7,_0xcac13c);});}['handleSuggestionDescription'](_0x27ac9f){if(_0x27ac9f['data'])switch(_0x27ac9f['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'](_0x4c92ae,_0x1a7027){const _0x186bce=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xae6564 of _0x186bce['getSuggestions']({'skipNotAttached':!0x0})){const _0x58d1da=_0xae6564['getContainedElement']();if(_0xae6564['subType']===_0x1a7027&&_0x58d1da===_0x4c92ae)return _0xae6564;}return null;}}const m='$elementName';class p extends _0xbd4bc4{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x890f8f,_0x57122b,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4447e7){function _0x5656d7(_0xb83f02){return _0xb83f02['map'](_0x493a24=>String['fromCharCode'](_0x493a24))['join']('');}super(_0x4447e7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x296dd3,_0x219ae5,_0x4ec2fb,_0xab98f3)=>{this['_model']['change'](()=>{for(const _0x3971a0 of[..._0xab98f3,..._0x4ec2fb])this['_model']['markers']['has'](_0x3971a0)&&_0x4447e7['editing']['reconvertMarker'](_0x3971a0);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4447e7['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(),_0x4447e7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4447e7['config']['get']('trackChanges.trackFormatChanges'),_0x4447e7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4447e7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4447e7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5656d7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5656d7([0x34,0x30,0x34,0x38,0x32,0x30,0x33,0x34]);}['init'](){const _0x568cfd=this['editor'],_0x4dac76=(_0x3082a1,_0x41c84b)=>{if('attribute'!=_0x3082a1)return'ck-suggestion-marker-'+_0x3082a1;const _0x51daef=_0x41c84b['split']('|')[0x0];return this['_isBlockAttribute'](_0x51daef)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x568cfd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2c044f=>{const {id:_0x3148e7,authorId:_0x2cb3d3,type:_0x37137d,subType:_0x508996}=this['_splitMarkerName'](_0x2c044f['markerName']),_0x5aa8de=['ck-suggestion-marker',_0x4dac76(_0x37137d,_0x508996)];let _0x33492a=0xbb8;return this['activeMarkers']['includes'](_0x2c044f['markerName'])&&(_0x5aa8de['push']('ck-suggestion-marker--active'),_0x33492a=0xbc2),'deletion'==_0x37137d&&(_0x33492a+=0x5),{'classes':_0x5aa8de,'attributes':{'data-suggestion':_0x3148e7,'data-author-id':_0x2cb3d3},'priority':_0x33492a};}}),_0x568cfd['conversion']['for']('dataDowncast')['add'](_0x40d471=>{_0x40d471['on']('addMarker:suggestion',(_0x3feda9,_0x1e419b,_0x3562d7)=>{if(!_0x3562d7['options']['showSuggestionHighlights'])return;const _0x56fc66=_0x1e419b['item'];if(!_0x56fc66)return;const _0x57331d=_0x3562d7['mapper']['toViewElement'](_0x56fc66);_0x568cfd['model']['schema']['isObject'](_0x56fc66)&&_0x57331d&&!_0x57331d['getCustomProperty']('widget')&&_0x57331d['is']('containerElement')&&_0x506ded(_0x57331d,_0x3562d7['writer']);},{'priority':'high'});}),_0x568cfd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x33a2a8,_0x53ce25)=>{if(!_0x53ce25['options']['showSuggestionHighlights'])return null;const {type:_0x57dd22,subType:_0x4a07d9}=this['_splitMarkerName'](_0x33a2a8['markerName']);return{'classes':['ck-suggestion-marker',_0x4dac76(_0x57dd22,_0x4a07d9)],'priority':0xbb8};}});const _0x5f055b=({showActiveMarkers:_0x52a513=!0x0,isAttributeSuggestion:_0x406400=!0x1}={})=>(_0x2adb44,_0x1416a4,_0x2314b7)=>{if(!_0x1416a4['item'])return;const {id:_0x3b1544,authorId:_0x364fa6}=this['_splitMarkerName'](_0x1416a4['markerName']);if(_0x406400){const _0x50a61a=this['_suggestions']['get'](_0x3b1544),_0x375225=this['_getAttributeKey'](_0x50a61a);if(!this['_isBlockAttribute'](_0x375225))return;}if(_0x1416a4['item']['is']('selection'))return void _0x2314b7['consumable']['consume'](_0x1416a4['item'],_0x2adb44['name']);const _0x1693f7=_0x2314b7['mapper']['toViewElement'](_0x1416a4['item']);if(_0x1416a4['item']['is']('element')&&_0x568cfd['model']['schema']['isBlock'](_0x1416a4['item'])&&!_0x1693f7['getCustomProperty']('addHighlight')){_0x2314b7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1693f7),_0x2314b7['writer']['setAttribute']('data-suggestion',_0x3b1544,_0x1693f7),_0x2314b7['writer']['setAttribute']('data-author-id',_0x364fa6,_0x1693f7),_0x2314b7['mapper']['bindElementToMarker'](_0x1693f7,_0x1416a4['markerName']),_0x52a513&&(this['activeMarkers']['includes'](_0x1416a4['markerName'])?_0x2314b7['writer']['addClass']('ck-suggestion-marker--active',_0x1693f7):_0x2314b7['writer']['removeClass']('ck-suggestion-marker--active',_0x1693f7));for(const _0x45ad9e of _0x568cfd['model']['createRangeIn'](_0x1416a4['item'])['getItems']())_0x2314b7['consumable']['consume'](_0x45ad9e,_0x2adb44['name']);_0x2314b7['consumable']['consume'](_0x1416a4['item'],_0x2adb44['name']);}};_0x568cfd['conversion']['for']('dataDowncast')['add'](_0x1fa2ae=>{_0x1fa2ae['on']('addMarker:suggestion:formatBlock',(_0x1c038a,_0x209d7a,_0x386a3d)=>{_0x386a3d['options']['showSuggestionHighlights']&&_0x5f055b({'showActiveMarkers':!0x1})(_0x1c038a,_0x209d7a,_0x386a3d);},{'priority':'highest'});}),_0x568cfd['conversion']['for']('dataDowncast')['add'](_0x357f2c=>{_0x357f2c['on']('addMarker:suggestion:attribute',(_0x12bbd3,_0x35c9a3,_0x1f0c3f)=>{_0x1f0c3f['options']['showSuggestionHighlights']&&_0x5f055b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x12bbd3,_0x35c9a3,_0x1f0c3f);},{'priority':'highest'});}),_0x568cfd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2fc072,_0x514d06)=>_0x514d06['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2fc072['substr'](0xb)}}),_0x568cfd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a3049,{writer:_0x36cf9d})=>{let _0x3d5752='suggestion:'+_0x4a3049['getAttribute']('suggestion-type')+':'+_0x4a3049['getAttribute']('id');return _0x4a3049['getAttribute']('marker-count')&&(_0x3d5752+=':'+_0x4a3049['getAttribute']('marker-count')),_0x36cf9d['createElement']('$marker',{'data-name':_0x3d5752});}}),_0x568cfd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x568cfd['conversion']['for']('editingDowncast')['add'](_0x5d1aa9=>{_0x5d1aa9['on']('addMarker:suggestion:formatBlock',_0x5f055b(),{'priority':'high'});}),_0x568cfd['conversion']['for']('editingDowncast')['add'](_0x3f7c60=>{_0x3f7c60['on']('addMarker:suggestion:attribute',_0x5f055b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x568cfd['conversion']['for']('editingDowncast')['add'](_0x536bc9=>{_0x536bc9['on']('removeMarker:suggestion:formatBlock',(_0x5479cd,_0x5b801c,_0x230208)=>{const _0x29ee19=_0x230208['mapper']['markerNameToElements'](_0x5b801c['markerName']);if(_0x29ee19){for(const _0x4fc37 of _0x29ee19)_0x4fc37['getCustomProperty']('addHighlight')||(_0x230208['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4fc37),_0x230208['writer']['removeAttribute']('data-suggestion',_0x4fc37),_0x230208['writer']['removeAttribute']('data-author-id',_0x4fc37),_0x230208['mapper']['unbindElementFromMarkerName'](_0x4fc37,_0x5b801c['markerName']));}},{'priority':'high'});}),_0x568cfd['conversion']['for']('editingDowncast')['add'](_0x1b35cb=>{_0x1b35cb['on']('removeMarker:suggestion:attribute',(_0x4d18bb,_0x2649bb,_0x494d80)=>{const _0x358a15=_0x494d80['mapper']['markerNameToElements'](_0x2649bb['markerName']);if(!_0x358a15)return;const {id:_0x20c944}=this['_splitMarkerName'](_0x2649bb['markerName']),_0x4c7a93=this['_suggestions']['get'](_0x20c944),_0x21fd54=this['_getAttributeKey'](_0x4c7a93);if(this['_isBlockAttribute'](_0x21fd54)){for(const _0x2da9a6 of _0x358a15)_0x2da9a6['getCustomProperty']('addHighlight')||(_0x494d80['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2da9a6),_0x494d80['writer']['removeAttribute']('data-suggestion',_0x2da9a6),_0x494d80['writer']['removeAttribute']('data-author-id',_0x2da9a6),_0x494d80['mapper']['unbindElementFromMarkerName'](_0x2da9a6,_0x2649bb['markerName']));}},{'priority':'high'});}),_0x568cfd['model']['document']['registerPostFixer'](_0x1b7bd2=>{let _0x4e2b6d=!0x1;const _0x9ed2de=Array['from'](_0x568cfd['model']['document']['differ']['getChangedMarkers']()),_0x3efea4=new Set();for(const {name:_0xe7e884,data:_0x5e9c83}of _0x9ed2de){const {group:_0x5b6ec9,type:_0x36e924,subType:_0x45d583,id:_0x4c2fbb}=this['_splitMarkerName'](_0xe7e884);if('suggestion'!==_0x5b6ec9)continue;const _0x14cb84=this['_suggestions']['get'](_0x4c2fbb);if(null!=_0x5e9c83['newRange']){'formatInline'==_0x36e924&&(_0x4e2b6d=_0x4e2b6d||Ut(_0x5e9c83['newRange'],_0xe7e884,_0x1b7bd2,_0x568cfd['model']['schema']));const _0x35a73f='attribute'==_0x36e924&&this['_isBlockAttribute'](_0x45d583['split']('|')[0x0]);if(_0x5e9c83['newRange']['isCollapsed']||'$graveyard'==_0x5e9c83['newRange']['root']['rootName']||'formatBlock'==_0x36e924&&!Gt(_0x5e9c83['newRange'])||_0x35a73f&&!Gt(_0x5e9c83['newRange'])||'deletion'==_0x36e924&&!(!Vt(_0x917d4b=_0x5e9c83['newRange'])&&!function(_0x30915f){return _0x30915f['start']['parent']==_0x30915f['end']['nodeBefore']&&_0x30915f['start']['isAtEnd'];}(_0x917d4b)))_0x1b7bd2['removeMarker'](_0xe7e884),_0x4e2b6d=!0x0;else{if(!_0x14cb84||!_0x14cb84['isInContent'])continue;if(_0x5e9c83['newRange']&&_0x5e9c83['oldRange']&&_0x5e9c83['newRange']['isEqual'](_0x5e9c83['oldRange']))continue;_0x3efea4['add'](_0x14cb84);}}}var _0x917d4b;return _0x3efea4['size']>0x0&&(_0x4e2b6d=!!this['_joinWithAdjacentSuggestions'](_0x3efea4)||_0x4e2b6d),_0x4e2b6d;}),_0x568cfd['model']['document']['registerPostFixer'](_0x42e0c2=>{let _0x350771=!0x1;for(const _0x4bcd18 of _0x568cfd['model']['document']['differ']['getChanges']())if('insert'==_0x4bcd18['type'])for(const _0xa35976 of this['_suggestions']['values']()){if(_0xa35976['isMultiRange']||!_0xa35976['isInContent'])continue;const _0x3d39b8='formatBlock'==_0xa35976['type'],_0x3f80f0=this['_getAttributeKey'](_0xa35976),_0x189c78=_0x3f80f0&&this['_isBlockAttribute'](_0x3f80f0);if(!_0x3d39b8&&!_0x189c78)continue;const _0x3e9bff=_0xa35976['getFirstRange']();if(_0x3e9bff['start']['parent']!=_0x3e9bff['end']['parent']&&!_0x3e9bff['end']['isAtEnd']){const _0x466a3a=_0x568cfd['model']['createPositionAt'](_0x3e9bff['start']['nodeAfter'],'end'),_0x17ad61=_0x568cfd['model']['createRange'](_0x3e9bff['start'],_0x466a3a);_0x42e0c2['updateMarker'](_0xa35976['getFirstMarker'](),{'range':_0x17ad61}),_0x350771=!0x0;}}return _0x350771;}),_0x568cfd['model']['document']['registerPostFixer'](_0x5bf909=>this['_processAttributeChanges'](_0x5bf909)),_0x568cfd['model']['document']['registerPostFixer'](_0x2adaaa=>!_0x2adaaa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2adaaa)),_0x568cfd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x568cfd['model']['document']['on']('change:data',(_0x5a244c,_0x3da8a4)=>{if(!_0x3da8a4['isLocal']||_0x3da8a4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b13b1=_0x568cfd['model']['document']['differ']['getChanges']();if(0x0==_0x4b13b1['length'])return;const _0x57724c=[],_0x372ec6=_0x4b13b1['filter'](_0x3b91de=>'attribute'==_0x3b91de['type']),_0x54396b=_0x4b13b1['filter'](_0x191241=>'insert'==_0x191241['type']&&'$text'!=_0x191241['name']);for(const _0x2e1454 of _0x372ec6)this['_isRegisteredAttribute'](_0x2e1454['attributeKey'])&&_0x57724c['push']({'key':_0x2e1454['attributeKey'],'newValue':_0x2e1454['attributeNewValue'],'oldValue':_0x2e1454['attributeOldValue'],'range':Ft(_0x2e1454['range'],_0x568cfd['model'])});for(const _0x21f121 of _0x54396b){if('rename'!=_0x21f121['action']&&'refresh'!=_0x21f121['action'])continue;const _0x13265e=Lt(_0x21f121['position']['nodeAfter'],_0x568cfd['model']),_0x3453bb=_0x21f121['before'];'rename'==_0x21f121['action']&&_0x57724c['push']({'key':m,'newValue':_0x21f121['name'],'oldValue':_0x3453bb['name'],'range':_0x13265e});for(const [_0x31e31a,_0x11754b]of _0x3453bb['attributes']){if(!this['_isRegisteredAttribute'](_0x31e31a))continue;const _0x582658=_0x21f121['attributes']['get'](_0x31e31a);_0x11754b!==_0x582658&&_0x57724c['push']({'key':_0x31e31a,'newValue':_0x582658,'oldValue':_0x11754b,'range':_0x13265e});}for(const [_0x130155,_0x5b46e3]of _0x21f121['attributes'])this['_isRegisteredAttribute'](_0x130155)&&(_0x3453bb['attributes']['has'](_0x130155)||_0x57724c['push']({'key':_0x130155,'newValue':_0x5b46e3,'oldValue':null,'range':_0x13265e}));}0x0!=_0x57724c['length']&&_0x568cfd['model']['enqueueChange'](_0x3da8a4,_0x4f3ccb=>{const _0x1048cd=_0x44c9df();for(const {range:_0xd47ce,key:_0x1511ab,oldValue:_0x68fb90,newValue:_0x242890}of _0x57724c)this['markAttributeChange'](_0xd47ce,_0x1511ab,_0x68fb90,_0x242890,{'groupId':_0x1048cd});this['_reduceExistingSuggestions'](_0x4f3ccb,_0x57724c);});},{'priority':'lowest'}),_0x568cfd['model']['markers']['on']('update:suggestion',(_0x463b62,_0x36de71,_0x358185)=>{if(null==_0x358185){const {id:_0x55b9c7}=this['_splitMarkerName'](_0x36de71['name']),_0x15ccf7=this['_suggestions']['get'](_0x55b9c7);_0x15ccf7&&_0x15ccf7['addMarkerName'](_0x36de71['name']);}}),_0x568cfd['model']['document']['on']('change:data',()=>{const _0x632a0d=Array['from'](_0x568cfd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c5797=>'suggestion'===this['_splitMarkerName'](_0x1c5797['name'])['group']);if(0x0===_0x632a0d['length'])return;_0x632a0d['sort']((_0x3fa02c,_0x45ec4a)=>{const _0x74bba9=_0x3fa02c['data']['oldRange'],_0x5c3bab=_0x45ec4a['data']['oldRange'];return null===_0x74bba9&&null===_0x5c3bab?0x0:null===_0x74bba9&&null!==_0x5c3bab?-0x1:null!==_0x74bba9&&null===_0x5c3bab?0x1:_0x74bba9['start']['isBefore'](_0x5c3bab['start'])?-0x1:0x1;});const _0x1998ae=new Set(),_0x56cf5b=new Set();for(const {name:_0xb7c92c,data:_0x463175}of _0x632a0d){const {id:_0x52a0b4}=this['_splitMarkerName'](_0xb7c92c);if(null===_0x463175['oldRange']){const _0x73897e=this['_handleNewSuggestionMarker'](_0xb7c92c);_0x56cf5b['add'](_0x73897e);}else{const _0x4928e8=this['_suggestions']['get'](_0x52a0b4);null!==_0x463175['newRange']||_0x4928e8['isInContent']?(_0x1998ae['add'](_0x4928e8['head']),_0x56cf5b['add'](_0x4928e8)):this['_removeSuggestion'](_0x4928e8);}}_0x56cf5b['size']>0x0&&this['_refreshSuggestionsChain'](_0x56cf5b);for(const _0xcccaa9 of _0x1998ae)this['fire']('suggestionChanged',_0xcccaa9);}),_0x568cfd['model']['on']('applyOperation',(_0x3cbe00,_0x294aa6)=>{const _0x2b18cb=_0x294aa6[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b18cb['isDocumentOperation'])return;if(_0x2b18cb['batch']['isUndo']||!_0x2b18cb['batch']['isLocal'])return;let _0x538935,_0x18fb97;switch(_0x2b18cb['type']){case'insert':_0x538935=_0x568cfd['model']['createPositionAt'](_0x2b18cb['position']),_0x18fb97=_0x538935['getShiftedBy'](_0x2b18cb['howMany']);break;case'split':_0x538935=_0x568cfd['model']['createPositionAt'](_0x2b18cb['splitPosition']),_0x18fb97=_0x568cfd['model']['createPositionAt'](_0x2b18cb['moveTargetPosition']);break;case'move':_0x538935=_0x568cfd['model']['createPositionAt'](_0x2b18cb['targetPosition']),_0x18fb97=_0x538935['getShiftedBy'](_0x2b18cb['howMany']);break;default:return;}const _0x5d7383=_0x568cfd['model']['createRange'](_0x538935,_0x18fb97);_0x568cfd['model']['change'](()=>{for(const {suggestion:_0x491fe5,meta:_0x297560}of this['_findSuggestions'](_0x5d7383)){if(_0x491fe5['isMultiRange'])continue;if('formatInline'==_0x491fe5['type'])continue;const _0xf9f64c=this['_getAttributeKey'](_0x491fe5);if(_0xf9f64c&&this['_isBlockAttribute'](_0xf9f64c)&&'split'!=_0x2b18cb['type'])continue;const _0x4c2598=_0x491fe5['data']&&_0x491fe5['data']['multipleBlocks'];('formatBlock'!=_0x491fe5['type']||'split'==_0x2b18cb['type']&&!_0x4c2598)&&(_0x297560['containsRangeInObject']||'insertion'==_0x491fe5['type']&&_0x297560['isOwn']||_0x491fe5['getFirstRange']()['containsRange'](_0x5d7383)&&this['_breakSuggestionMarker'](_0x491fe5,_0x538935,_0x18fb97));}});},{'priority':'lowest'}),_0x568cfd['model']['on']('deleteContent',(_0x2e2227,_0x1c12ab)=>{const _0xaeee33=_0x1c12ab[0x0],_0x6e901=_0x1c12ab[0x1];if(_0x6e901&&_0x6e901['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xaeee33['isCollapsed'])return;const _0x398bf1=_0x568cfd['model']['schema'],{start:_0xd0a0e7,end:_0xcced2}=_0xaeee33['getFirstRange'](),_0x441ba7=_0xd0a0e7['nodeAfter']&&_0x398bf1['isLimit'](_0xd0a0e7['nodeAfter'])?null:_0x398bf1['getNearestSelectionRange'](_0xd0a0e7,'forward'),_0xee0044=_0xcced2['nodeBefore']&&_0x398bf1['isLimit'](_0xcced2['nodeBefore'])?null:_0x398bf1['getNearestSelectionRange'](_0xcced2,'backward'),_0x1e90cb=_0x568cfd['model']['createRange'](_0x441ba7?_0x441ba7['start']:_0xd0a0e7,_0xee0044?_0xee0044['end']:_0xcced2);_0x568cfd['model']['change'](_0x310c2b=>{this['markDeletion'](_0x1e90cb);const _0x38f62f=_0x568cfd['model']['schema']['getNearestSelectionRange'](_0x1e90cb['start']);_0xaeee33['is']('documentSelection')?_0x310c2b['setSelection'](_0x38f62f):_0xaeee33['setTo'](_0x38f62f);}),_0x2e2227['stop']();},{'priority':_0x399907['normal']+0xa}),_0x568cfd['model']['on']('insertContent',(_0x49df89,_0x20d18d)=>{const _0x567d54=_0x20d18d[_0x20d18d['length']-0x1];_0x567d54&&_0x567d54['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x568cfd['model']['change'](()=>{let _0x33c5d4=_0x568cfd['model']['insertContent'](_0x20d18d[0x0],_0x20d18d[0x1],_0x20d18d[0x2],{'forceDefaultExecution':!0x0});if(!_0x33c5d4)return;_0x49df89['return']=_0x33c5d4['clone']();const _0x58bbda=_0x33c5d4['end']['nodeBefore'],_0x587c16=_0x568cfd['model']['schema'];_0x58bbda&&_0x587c16['isBlock'](_0x58bbda)&&!_0x587c16['isObject'](_0x58bbda)&&(_0x33c5d4=_0x568cfd['model']['createRange'](_0x33c5d4['start'],_0x568cfd['model']['createPositionAt'](_0x58bbda,'end'))),this['markInsertion'](_0x33c5d4);}),_0x49df89['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x528c0b=new x(_0x568cfd,this['_suggestions']);_0x568cfd['commands']['add']('acceptSuggestion',_0x528c0b),this['enableCommand']('acceptSuggestion');const _0x4cf0a4=new O(_0x568cfd,this['_suggestions']);_0x568cfd['commands']['add']('discardSuggestion',_0x4cf0a4),this['enableCommand']('discardSuggestion'),_0x568cfd['commands']['add']('acceptAllSuggestions',new R(_0x568cfd,_0x528c0b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x568cfd['commands']['add']('discardAllSuggestions',new R(_0x568cfd,_0x4cf0a4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x568cfd['commands']['add']('acceptSelectedSuggestions',new E(_0x568cfd,_0x528c0b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x568cfd['commands']['add']('discardSelectedSuggestions',new E(_0x568cfd,_0x4cf0a4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xbbd043=_0x568cfd['plugins']['get']('CommentsRepository');this['listenTo'](_0xbbd043,'addComment',(_0x194b3c,{threadId:_0x27ff15})=>{const _0x1623c0=this['_suggestions']['get'](_0x27ff15);_0x1623c0&&_0x1623c0['commentThread']&&0x1===_0x1623c0['commentThread']['length']&&this['_updateSuggestionData'](_0x27ff15,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xbbd043,'removeComment',(_0x46fc97,{threadId:_0xafb207})=>{const _0x3f4619=this['_suggestions']['get'](_0xafb207);_0x3f4619&&_0x3f4619['commentThread']&&!_0x3f4619['commentThread']['length']&&this['_updateSuggestionData'](_0xafb207,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4f4be3){if(this['_adapter'])throw new _0x50a6b3('track-changes-adapter-already-set',this);this['_adapter']=_0x4f4be3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x47bec5=!0x1,toJSON:_0x3bdf17=!0x1}={}){const _0x34dff6=[];for(const _0x2c3e06 of this['_suggestions']['values']())_0x47bec5&&!_0x2c3e06['isInContent']||_0x34dff6['push'](_0x2c3e06);return _0x3bdf17?_0x34dff6['map'](_0x42020c=>_0x42020c['toJSON']()):_0x34dff6;}['getSuggestion'](_0x34aab3){const _0x3fc222=this['_suggestions']['get'](_0x34aab3);if(!_0x3fc222)throw new _0x50a6b3('track-changes-suggestion-not-found',this);return _0x3fc222;}['hasSuggestion'](_0x3e2856){return this['_suggestions']['has'](_0x3e2856);}['addSuggestionData'](_0x3c306b){const {authorId:_0x9fb1a1,id:_0x2d8482,attributes:_0x3df999}=_0x3c306b,[_0x173d90,_0x2b3904]=_0x3c306b['type']['split'](':'),_0x440f0e=this['_suggestions']['get'](_0x2d8482)||this['_createSuggestion'](_0x173d90,_0x2b3904,_0x2d8482,_0x9fb1a1,_0x3df999);if(this['_addThreadToSuggestion'](_0x440f0e),this['_checkSuggestionCorrectness'](_0x440f0e,_0x173d90,_0x2b3904||null,_0x9fb1a1),_0x440f0e['createdAt']=_0x3c306b['createdAt'],_0x440f0e['_isDataLoaded']=!0x0,_0x3df999&&_0x3df999['@external']){const _0x204647=_0x3df999['@external'],_0x1801ad=this['_getExternalAuthor'](_0x204647['authorName']);_0x440f0e['authoredAt']=_0x204647['createdAt'],_0x440f0e['author']=_0x1801ad,_0x440f0e['isExternal']=!0x0;}else _0x440f0e['authoredAt']=_0x3c306b['createdAt'];switch(_0x3c306b['data']&&(_0x440f0e['data']=_0x3c306b['data']),_0x3c306b['attributes']&&(_0x440f0e['attributes']=_0x3c306b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x440f0e['_saved']=!0x0),this['_suggestionState']['get'](_0x440f0e)){case'notReady':this['_suggestionState']['set'](_0x440f0e,'dataReady');break;case'markerReady':_0x440f0e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x440f0e])),this['_refreshSuggestionsChain'](new Set([_0x440f0e])),this['_suggestionState']['set'](_0x440f0e,'ready'),this['fire']('suggestionLoaded',_0x440f0e)):this['_suggestionState']['set'](_0x440f0e,'removed');}return _0x440f0e;}['acceptSuggestion'](_0x521176){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35b662 of _0x521176['getAllAdjacentSuggestions']())_0x35b662['accept']();});});}['discardSuggestion'](_0x11b5a8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2b49b3 of _0x11b5a8['getAllAdjacentSuggestions']())_0x2b49b3['discard']();});});}['enableCommand'](_0x566942,_0x5e8acc){const _0xabb623=this['editor']['commands']['get'](_0x566942);if(!_0xabb623)throw new _0x50a6b3('track-changes-command-not-found',this,{'commandName':_0x566942});if(this['_enabledCommands']['has'](_0xabb623))throw new _0x50a6b3('track-changes-enable-command-twice',this,{'commandName':_0x566942});this['_enabledCommands']['add'](_0xabb623),_0x5e8acc&&_0xabb623['on']('execute',(_0x37a5c0,_0x5e79ef)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e79ef['length']>0x0&&_0x5e79ef[_0x5e79ef['length']-0x1]&&_0x5e79ef[_0x5e79ef['length']-0x1]['forceDefaultExecution']?_0x5e79ef['pop']():(_0x37a5c0['return']=_0x5e8acc((..._0x22d7ba)=>_0xabb623['execute'](..._0x22d7ba,{'forceDefaultExecution':!0x0}),..._0x5e79ef),_0x37a5c0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xb14370){let _0x103c66,_0x11b760;const _0xfd4189=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x103c66=_0xb14370();}catch(_0x9217d6){_0x11b760=_0x9217d6;}return _0xfd4189||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x11b760&&_0x50a6b3['rethrowUnexpectedError'](_0x11b760,this),_0x103c66;}['markInsertion'](_0x3d8de7,_0xc70946=null,_0x481839={}){if(_0x3d8de7['isCollapsed'])return null;const _0x43684e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x190b4b,meta:_0x5a8d78}of this['_findSuggestions'](_0x3d8de7,'insertion'))if(_0x5a8d78['isOwn']){if(!_0x5a8d78['isNextTo']){if(_0x5a8d78['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x190b4b,_0x481839))continue;return _0x190b4b;}if(qt(_0x190b4b,_0x481839))return _0x190b4b;this['_breakSuggestionMarker'](_0x190b4b,_0x3d8de7['start'],_0x3d8de7['end']);break;}if(_0xc70946==_0x190b4b['subType']&&qt(_0x190b4b,_0x481839)){const _0x1a635e=_0x190b4b['getFirstRange']();return _0x1a635e['start']['isEqual'](_0x3d8de7['end'])?this['_setSuggestionRange'](_0x190b4b,this['_model']['createRange'](_0x3d8de7['start'],_0x1a635e['end'])):this['_setSuggestionRange'](_0x190b4b,this['_model']['createRange'](_0x1a635e['start'],_0x3d8de7['end'])),_0x190b4b;}}const _0x18eccc=_0x44c9df(),_0x30f08b=_0x43684e['id'],_0x29fc76=_0xc70946?'insertion:'+_0xc70946:'insertion',_0x552a27=this['_setSuggestionData']({'id':_0x18eccc,'type':_0x29fc76,'createdAt':new Date(),'authorId':_0x30f08b,'attributes':_0x481839});return this['_addSuggestionMarker'](_0x29fc76,_0x18eccc,_0x30f08b,_0x3d8de7),_0x552a27;}['markMultiRangeInsertion'](_0x3416d4,_0x2ceec7='multi',_0x2e3f64={}){const _0x5d979a=this['editor']['plugins']['get']('Users')['me'],_0x479c51=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2ceec7,'join');for(const _0x1b3563 of this['getSuggestions']())if(_0x1b3563['author']['id']==_0x5d979a['id']&&'insertion'==_0x1b3563['type']&&_0x1b3563['subType']==_0x2ceec7&&qt(_0x1b3563,_0x2e3f64)&&(_0x479c51(_0x1b3563['getRanges'](),_0x3416d4)||_0x479c51(_0x3416d4,_0x1b3563['getRanges']()))){for(const _0x3a97e3 of _0x3416d4)_0x1b3563['addRange'](_0x3a97e3);return _0x1b3563;}for(const {suggestion:_0x4ef3b8,meta:_0x5ebad1}of this['_findSuggestions'](_0x3416d4,'insertion')){if(!_0x5ebad1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5ebad1['containsRangeInObject'])continue;if(!qt(_0x4ef3b8,_0x2e3f64))continue;let _0x1063be=!0x0;for(const _0x25ab01 of _0x4ef3b8['getRanges']())for(const _0x15e95f of _0x3416d4)if(!_0x25ab01['containsRange'](_0x15e95f)){_0x1063be=!0x1;break;}if(_0x1063be)return _0x4ef3b8;}const _0x432f21=_0x44c9df(),_0x3a6a56=_0x5d979a['id'],_0x4ce78f='insertion:'+_0x2ceec7,_0x6f30ac=this['_setSuggestionData']({'id':_0x432f21,'type':_0x4ce78f,'createdAt':new Date(),'authorId':_0x3a6a56,'attributes':_0x2e3f64});for(const _0x46a63d of _0x3416d4)this['_addSuggestionMarker'](_0x4ce78f,_0x432f21,_0x3a6a56,_0x46a63d,u['getMultiRangeId']());return _0x6f30ac;}['markInlineFormat'](_0x3bafaf,_0x10e972,_0x1e1bca=null,_0x451bfe={}){if(_0x1e1bca=_0x1e1bca||Pt(_0x10e972),_0x3bafaf['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1c33fc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1e1bca,'accept');return this['forceDefaultExecution'](()=>_0x1c33fc([_0x3bafaf],_0x10e972,_0x451bfe)),null;}const _0x37d5fd=this['editor']['plugins']['get']('Users')['me'],_0x2cd5f1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x508289,meta:_0x1dcd72}of this['_findSuggestions'](_0x3bafaf,'insertion'))_0x1dcd72['isOwn']&&!_0x1dcd72['isInsideObject']&&_0x2cd5f1['push'](..._0x508289['getRanges']());}const _0x262ebd=function(_0x2fbb7d,_0x4a1274){const _0x5b162f=[];for(const _0x198ed2 of _0x4a1274){const _0x264f78=_0x2fbb7d['getIntersection'](_0x198ed2);_0x264f78&&_0x5b162f['push'](_0x264f78);}return _0x5b162f;}(_0x3bafaf,_0x2cd5f1),_0x37f53e=function(_0xe9c0f,_0x16a3e2){const _0x458d67=[_0xe9c0f];for(const _0x2cf7dd of _0x16a3e2){let _0x1311c5=0x0;for(;_0x1311c5<_0x458d67['length'];){const _0x3a9808=_0x458d67[_0x1311c5]['getDifference'](_0x2cf7dd);_0x458d67['splice'](_0x1311c5,0x1,..._0x3a9808),_0x1311c5+=_0x3a9808['length'];}}return _0x458d67;}(_0x3bafaf,_0x2cd5f1);_0x262ebd['length']&&this['_model']['change'](()=>{for(const _0x1999df of _0x262ebd){const _0x5b7e52=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1e1bca,'accept');this['forceDefaultExecution'](()=>_0x5b7e52([_0x1999df],_0x10e972,_0x451bfe));}});for(const _0x5049d2 of _0x37f53e){let _0x16c7c6=null,_0x1b4863=_0x5049d2['start'],_0x584fbd=_0x5049d2['end'];for(const {suggestion:_0x19b2f7,meta:_0x39aff0}of this['_findSuggestions'](_0x5049d2,'formatInline')){if(!_0x39aff0['isOwn'])continue;if(_0x19b2f7['subType']!=_0x1e1bca)continue;if(!qt(_0x19b2f7,_0x451bfe))continue;const _0x1f5547=_0x19b2f7['getFirstRange']();if(_0x1f5547['containsRange'](_0x5049d2,!0x0))return null;_0x1b4863=_0x1b4863['isBefore'](_0x1f5547['start'])?_0x1b4863:_0x1f5547['start'],_0x584fbd=_0x584fbd['isAfter'](_0x1f5547['end'])?_0x584fbd:_0x1f5547['end'],_0x16c7c6?_0x1f5547['start']['isBefore'](_0x16c7c6['getFirstRange']()['start'])?(_0x16c7c6['removeMarkers'](),_0x16c7c6=_0x19b2f7):_0x19b2f7['removeMarkers']():_0x16c7c6=_0x19b2f7;}const _0x7e9188=this['_model']['createRange'](_0x1b4863,_0x584fbd);if(_0x16c7c6)this['_setSuggestionRange'](_0x16c7c6,_0x7e9188);else{const _0x50afa4=_0x44c9df(),_0x4a6588=_0x37d5fd['id'];this['_setSuggestionData']({'id':_0x50afa4,'type':'formatInline:'+_0x1e1bca,'data':_0x10e972,'createdAt':new Date(),'authorId':_0x4a6588,'attributes':_0x451bfe}),this['_addSuggestionMarker']('formatInline:'+_0x1e1bca,_0x50afa4,_0x4a6588,_0x7e9188);}}return null;}['markBlockFormat'](_0x2c2047,_0x6538eb,_0xd24b7c=[],_0xb5babd=null,_0xadf073={}){_0x6538eb['formatGroupId']||(_0x6538eb['formatGroupId']=_0x6538eb['commandName']),_0x6538eb['multipleBlocks']=_0x2c2047['is']('range'),_0xb5babd=_0xb5babd||Pt(_0x6538eb);const _0x3f5d71=_0xd24b7c['map'](_0x147122=>Lt(_0x147122,this['_model'])),_0x263064=_0x2c2047['is']('range')?_0x2c2047:Lt(_0x2c2047,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d10c5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb5babd,'accept');return this['forceDefaultExecution'](()=>_0x3d10c5([_0x263064],_0x6538eb,_0xadf073)),null;}_0x3f5d71['push'](_0x263064);let _0x1caf11=!0x0;for(const _0x21422f of _0x3f5d71)if(!this['_rangeIsInLocalUserInsertion'](_0x21422f)){_0x1caf11=!0x1;break;}if(_0x1caf11&&'always'!==this['_trackFormatChanges']){const _0x8de2b0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb5babd,'accept');return this['forceDefaultExecution'](()=>_0x8de2b0([_0x263064],_0x6538eb,_0xadf073)),null;}let _0xbaf2c9=null,_0x435a52=_0x263064['start'],_0x19ef67=_0x263064['end'];for(const {suggestion:_0xfbb984,meta:_0x269582}of this['_findSuggestions'](_0x263064,'formatBlock')){if(!_0x269582['isOwn'])continue;if(_0x269582['isNextTo']||_0x269582['containsRangeInObject']||_0x269582['isInsideObject'])continue;if(_0xfbb984['data']['formatGroupId']!=_0x6538eb['formatGroupId'])continue;if(!qt(_0xfbb984,_0xadf073))continue;const _0x337cfa=_0xfbb984['getFirstRange']();if(_0xfbb984['subType']==_0xb5babd){if(_0x337cfa['containsRange'](_0x263064,!0x0))return null;_0x435a52=_0x435a52['isBefore'](_0x337cfa['start'])?_0x435a52:_0x337cfa['start'],_0x19ef67=_0x19ef67['isAfter'](_0x337cfa['end'])?_0x19ef67:_0x337cfa['end'],_0xbaf2c9?_0x337cfa['start']['isBefore'](_0xbaf2c9['getFirstRange']()['start'])?(_0xbaf2c9['removeMarkers'](),_0xbaf2c9=_0xfbb984):_0xfbb984['removeMarkers']():_0xbaf2c9=_0xfbb984;}else{const _0x2dbf0e=_0x263064['getIntersection'](_0x337cfa);this['_cutOutSuggestionMarker'](_0xfbb984,_0x2dbf0e);}}const _0x277e1e=this['editor']['plugins']['get']('Users')['me'],_0x56ac05=_0x44c9df(),_0x57361a=_0x277e1e['id'];if(_0xbaf2c9)return this['_setSuggestionRange'](_0xbaf2c9,this['_model']['createRange'](_0x435a52,_0x19ef67)),_0xbaf2c9;{const _0x5742b9=this['_setSuggestionData']({'id':_0x56ac05,'type':'formatBlock:'+_0xb5babd,'data':_0x6538eb,'createdAt':new Date(),'authorId':_0x57361a,'attributes':_0xadf073});return this['_addSuggestionMarker']('formatBlock:'+_0xb5babd,_0x56ac05,_0x57361a,this['_model']['createRange'](_0x435a52,_0x19ef67)),_0x5742b9;}}['markMultiRangeBlockFormat'](_0x5e1015,_0x2ec86f,_0x51b82f=[],_0x20b2e7=null,_0x4d5e08={}){_0x2ec86f['formatGroupId']||(_0x2ec86f['formatGroupId']=_0x2ec86f['commandName']);const _0x4ae004=_0x5e1015[0x0];_0x2ec86f['multipleBlocks']=_0x4ae004['is']('range'),_0x20b2e7=_0x20b2e7||Pt(_0x2ec86f);const _0x244aa1=_0x51b82f['map'](_0x4c4f94=>Lt(_0x4c4f94,this['_model'])),_0x4ff17c=_0x4ae004['is']('range')?_0x5e1015:_0x5e1015['map'](_0x44da76=>Lt(_0x44da76,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1053c6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20b2e7,'accept');return this['forceDefaultExecution'](()=>_0x1053c6(_0x4ff17c,_0x2ec86f,_0x4d5e08)),null;}_0x244aa1['push'](..._0x4ff17c);let _0x56db00=!0x0;for(const _0x450455 of _0x244aa1)if(!this['_rangeIsInLocalUserInsertion'](_0x450455)){_0x56db00=!0x1;break;}if(_0x56db00&&'always'!==this['_trackFormatChanges']){const _0x12ecee=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20b2e7,'accept');return this['forceDefaultExecution'](()=>_0x12ecee(_0x4ff17c,_0x2ec86f,_0x4d5e08)),null;}const _0x359fa5=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c5ed5 of this['getSuggestions']()){if(_0x5c5ed5['author']['id']!=_0x359fa5['id'])continue;if('formatBlock'!=_0x5c5ed5['type']||_0x5c5ed5['data']['formatGroupId']!=_0x2ec86f['formatGroupId'])continue;if(!qt(_0x5c5ed5,_0x4d5e08))continue;const _0x23d090=_0x5c5ed5['subType']==_0x20b2e7;for(let _0x421f6=0x0;_0x421f6<_0x4ff17c['length'];_0x421f6++){const _0x588071=_0x4ff17c[_0x421f6];for(const _0x1f323f of _0x5c5ed5['getMarkers']()){const _0x1c7e49=_0x1f323f['getRange']();if(_0x588071['isEqual'](_0x1c7e49)){_0x23d090?(_0x4ff17c['splice'](_0x421f6,0x1),_0x421f6--):_0x5c5ed5['removeMarker'](_0x1f323f['name']);break;}}}}if(0x0==_0x4ff17c['length'])return null;const _0x3ffb2e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20b2e7,'join');for(const _0x15cb97 of this['getSuggestions']())if(_0x15cb97['author']['id']==_0x359fa5['id']&&'formatBlock'==_0x15cb97['type']&&_0x15cb97['data']['formatGroupId']==_0x2ec86f['formatGroupId']&&_0x15cb97['subType']==_0x20b2e7&&qt(_0x15cb97,_0x4d5e08)&&(_0x3ffb2e(_0x15cb97['getRanges'](),_0x4ff17c)||_0x3ffb2e(_0x4ff17c,_0x15cb97['getRanges']()))){for(const _0x2f4297 of _0x4ff17c)_0x15cb97['addRange'](_0x2f4297);return _0x15cb97;}const _0x7aa34e=_0x44c9df(),_0xb6ab4=_0x359fa5['id'],_0x575ff='formatBlock:'+_0x20b2e7,_0x412d96=this['_setSuggestionData']({'id':_0x7aa34e,'type':_0x575ff,'data':_0x2ec86f,'createdAt':new Date(),'authorId':_0xb6ab4,'attributes':_0x4d5e08});for(const _0x3fa110 of _0x4ff17c)this['_addSuggestionMarker'](_0x575ff,_0x7aa34e,_0xb6ab4,_0x3fa110,u['getMultiRangeId']());return _0x412d96;}['markDeletion'](_0x1a73a6,_0x2d34b8=null,_0x8eb34c={}){if(_0x1a73a6['isCollapsed'])return null;const _0x303ab1=this['editor']['plugins']['get']('Users')['me'],_0x30b634=new _0x4d6067(_0x1a73a6['start'],_0x1a73a6['end']);for(const {suggestion:_0x691418,meta:_0xd7d4bc}of this['_findSuggestions'](_0x30b634,'insertion'))if(_0xd7d4bc['isOwn']&&!_0xd7d4bc['isNextTo']){if(_0x691418['isMultiRange']){const _0x3150e0=_0x691418['getRanges']()['filter'](_0x5175e7=>'$graveyard'!=_0x5175e7['root']['rootName']);_0x3150e0['every'](_0x2fb5c9=>_0x30b634['containsRange'](_0x2fb5c9,!0x0))&&_0x691418['discard']();if(_0x3150e0['some'](_0x4deb14=>_0x4deb14['containsRange'](_0x30b634,!0x0))){const _0xddfa2f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d34b8,'accept');return this['forceDefaultExecution'](()=>_0xddfa2f([_0x30b634],null,_0x8eb34c)),null;}}else{const _0x1b8b6c=_0x30b634['getIntersection'](_0x691418['getFirstRange']());null!==_0x1b8b6c&&_0x691418['_onDiscard']([_0x1b8b6c],null,_0x8eb34c);}}if(_0x30b634['detach'](),_0x30b634['isCollapsed']||'$graveyard'==_0x30b634['root']['rootName'])return null;let _0x52857b=null,_0x1ce921=_0x30b634['start'],_0xa3a036=_0x30b634['end'];const _0x4cdd2b=this['_findSuggestions'](_0x30b634,'deletion');for(const {suggestion:_0x3b80e0,meta:_0x273cec}of _0x4cdd2b){const _0x243234=this['_model']['createRange'](_0x1ce921,_0xa3a036);if(_0x273cec['isOwn']&&(this['_mergeNestedSuggestions']||!_0x273cec['containsRangeInObject']&&!_0x273cec['isInsideObject'])){if(_0x3b80e0['isMultiRange']){if(!qt(_0x3b80e0,_0x8eb34c))continue;let _0x69c9f8=!0x0;for(const _0x4e1abd of _0x3b80e0['getRanges']()){if(_0x4e1abd['containsRange'](_0x243234,!0x0))return _0x3b80e0;_0x243234['containsRange'](_0x4e1abd)||(_0x69c9f8=!0x1);}_0x69c9f8&&_0x3b80e0['discard']();}else{const _0x4d5e0c=_0x3b80e0['getFirstRange']();if(_0x4d5e0c['containsRange'](_0x243234,!0x0))return _0x3b80e0;if(!qt(_0x3b80e0,_0x8eb34c)){_0x243234['containsRange'](_0x4d5e0c)?_0x3b80e0['removeMarkers']():_0x4d5e0c['containsPosition'](_0x1ce921)?_0x1ce921=_0x4d5e0c['end']:_0x4d5e0c['containsPosition'](_0xa3a036)&&(_0xa3a036=_0x4d5e0c['start']);continue;}_0x1ce921=_0x1ce921['isBefore'](_0x4d5e0c['start'])?_0x1ce921:_0x4d5e0c['start'],_0xa3a036=_0xa3a036['isAfter'](_0x4d5e0c['end'])?_0xa3a036:_0x4d5e0c['end'],_0x8eb34c=Object['assign']({},_0x3b80e0['attributes']),_0x52857b?_0x4d5e0c['start']['isBefore'](_0x52857b['getFirstRange']()['start'])?(_0x52857b['removeMarkers'](),_0x52857b=_0x3b80e0):_0x3b80e0['removeMarkers']():_0x52857b=_0x3b80e0;}}}if(_0x52857b)return this['_setSuggestionRange'](_0x52857b,this['_model']['createRange'](_0x1ce921,_0xa3a036)),_0x52857b;{const _0x3360c0=_0x44c9df(),_0x10c0f8=this['_model']['createRange'](_0x1ce921,_0xa3a036),_0x5de130=_0x303ab1['id'],_0x2b7d56=_0x2d34b8?'deletion:'+_0x2d34b8:'deletion',_0x1d7bca=this['_setSuggestionData']({'id':_0x3360c0,'type':_0x2b7d56,'createdAt':new Date(),'authorId':_0x5de130,'attributes':_0x8eb34c});return this['_addSuggestionMarker'](_0x2b7d56,_0x3360c0,_0x5de130,_0x10c0f8),_0x1d7bca;}}['markMultiRangeDeletion'](_0xe609c2,_0x31b8f1='multi',_0x3c4616={}){const _0x2caa18=this['editor']['plugins']['get']('Users')['me'],_0x4b3cdd=_0xe609c2['map'](_0xc711ac=>new _0x4d6067(_0xc711ac['start'],_0xc711ac['end'])),_0x4726ef=new Set();for(const {suggestion:_0x273d40,meta:_0x449f8d}of this['_findSuggestions'](_0x4b3cdd,'insertion'))_0x449f8d['isOwn']&&!_0x449f8d['isNextTo']&&_0x4726ef['add'](_0x273d40);for(const _0x101898 of _0x4726ef)if(_0x101898['isMultiRange']){const _0x5e2dfb=_0x101898['getRanges']();(!_0x101898['attributes']||!_0x101898['attributes']['skipNestingCheck'])&&(_0x5e2dfb['every'](_0x451a09=>_0x4b3cdd['some'](_0x5e3a2f=>_0x5e3a2f['containsRange'](_0x451a09,!0x0)))&&_0x101898['discard']());if(_0x4b3cdd['every'](_0x461365=>_0x5e2dfb['some'](_0x45c867=>_0x45c867['containsRange'](_0x461365,!0x0)))){const _0x5efa6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31b8f1,'accept');return this['forceDefaultExecution'](()=>_0x5efa6b(_0xe609c2,null,_0x3c4616)),null;}}else{const _0x29788c=_0x101898['getFirstRange']();_0x4b3cdd['some'](_0x5ae5be=>_0x5ae5be['containsRange'](_0x29788c,!0x0))&&_0x101898['discard']();if(_0x4b3cdd['every'](_0x468d6d=>_0x29788c['containsRange'](_0x468d6d,!0x0))){const _0x4c4ee8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31b8f1,'accept');return this['forceDefaultExecution'](()=>_0x4c4ee8(_0x4b3cdd,null,_0x3c4616)),null;}}const _0x381ff6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31b8f1,'join');let _0x43df55=null;for(const _0x24d5e8 of this['getSuggestions']())if(_0x24d5e8['author']['id']==_0x2caa18['id']&&_0x24d5e8['isInContent']&&'deletion'==_0x24d5e8['type']&&_0x24d5e8['subType']==_0x31b8f1&&qt(_0x24d5e8,_0x3c4616)&&(_0x381ff6(_0x24d5e8['getRanges'](),_0x4b3cdd)||_0x381ff6(_0x4b3cdd,_0x24d5e8['getRanges']()))){if(_0x43df55){if(_0x24d5e8['commentThread']&&_0x24d5e8['commentThread']['length'])continue;for(const _0x3c5e62 of _0x24d5e8['getRanges']())_0x43df55['isIntersectingWithRange'](_0x3c5e62)||_0x43df55['addRange'](_0x3c5e62);_0x24d5e8['removeMarkers']();}else{_0x43df55=_0x24d5e8;for(const _0x361749 of _0x4b3cdd)_0x24d5e8['isIntersectingWithRange'](_0x361749)||_0x24d5e8['addRange'](_0x361749);}}if(_0x43df55)return _0x43df55;_0x4726ef['clear']();for(const {suggestion:_0x5193f9,meta:_0xd99ff0}of this['_findSuggestions'](_0x4b3cdd,'deletion'))_0xd99ff0['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd99ff0['containsRangeInObject']&&!_0xd99ff0['isInsideObject'])&&qt(_0x5193f9,_0x3c4616)&&_0x4726ef['add'](_0x5193f9);for(const _0x460e8b of _0x4726ef){const _0xc7ee2e=_0x460e8b['getRanges']();if(!_0x3c4616||!_0x3c4616['skipNestingCheck']){if(_0x4b3cdd['every'](_0x3bfde5=>_0xc7ee2e['some'](_0x5c38f8=>_0x5c38f8['containsRange'](_0x3bfde5,!0x0))))return _0x460e8b;}(!_0x460e8b['attributes']||!_0x460e8b['attributes']['skipNestingCheck'])&&(_0xc7ee2e['every'](_0x35ae21=>_0x4b3cdd['some'](_0x5cb48f=>_0x5cb48f['containsRange'](_0x35ae21,!0x0)))&&_0x460e8b['discard']());}const _0x1e4c15=_0x44c9df(),_0x40a613=_0x2caa18['id'],_0x359eab='deletion:'+_0x31b8f1,_0x5a13df=this['_setSuggestionData']({'id':_0x1e4c15,'type':_0x359eab,'createdAt':new Date(),'authorId':_0x40a613,'attributes':_0x3c4616});for(const _0x1eed10 of _0x4b3cdd)_0x1eed10['detach'](),_0x1eed10['isCollapsed']||'$graveyard'==_0x1eed10['root']['rootName']||this['_addSuggestionMarker'](_0x359eab,_0x1e4c15,_0x40a613,_0x1eed10,u['getMultiRangeId']());return _0x5a13df;}['markAttributeChange'](_0x2b5990,_0x3bfe11,_0xa937c4,_0x3ecd64,_0x26cf3c){if(_0x2b5990['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x509a03=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d951c=Array['from'](this['_suggestions']['values']())['filter'](_0x68e2a8=>'attribute'==_0x68e2a8['type']&&_0x68e2a8['data']['key']==_0x3bfe11&&_0x68e2a8['isIntersectingWithRange'](_0x2b5990));if('default'===this['_trackFormatChanges']){const _0x36693b=this['_findSuggestions'](_0x2b5990,'insertion')['filter'](({meta:_0x4f80cd})=>_0x4f80cd['isOwn']&&!_0x4f80cd['isInsideObject']&&!_0x4f80cd['isNextTo'])['map'](({suggestion:_0x44ea65})=>_0x44ea65);_0x2d951c['unshift'](..._0x36693b);}const _0x30c778=new Map([[_0x2b5990,_0xa937c4]]);for(const _0xca259 of _0x2d951c){const _0xfe8dd9='attribute'==_0xca259['type']?_0xca259['data']['oldValue']:void 0x0,_0x9c1e54=_0xca259['getFirstRange'](),_0x2dfaaf=Array['from'](_0x30c778['keys']())['find'](_0x408e85=>_0x408e85['isIntersecting'](_0x9c1e54));if(!_0x2dfaaf)continue;const _0x4a72a8=_0x2dfaaf['getDifference'](_0x9c1e54);this['_isBlockAttribute'](_0x3bfe11)&&'insertion'==_0xca259['type']&&0x0!=_0x4a72a8['length']||(_0x30c778['delete'](_0x2dfaaf),_0x4a72a8['forEach'](_0x217f3a=>{_0x30c778['set'](_0x217f3a,_0xa937c4);}),'insertion'!=_0xca259['type']&&_0xfe8dd9!=_0x3ecd64&&_0x30c778['set'](_0x2dfaaf['getIntersection'](_0x9c1e54),_0xfe8dd9));}const _0x3c787a=[];for(const [_0x13b63c,_0x257a7f]of _0x30c778){const _0x34d5a7=_0x44c9df(),_0x5b101b={'key':_0x3bfe11,'oldValue':_0x257a7f,'newValue':_0x3ecd64};_0x3bfe11['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':_0x3bfe11});const _0x26ea4a=('attribute:'+(_0x3bfe11+'|'+Pt({'newValue':_0x3ecd64})))['substring'](0x0,0x3c),_0x14b2ac=this['_setSuggestionData']({'id':_0x34d5a7,'type':_0x26ea4a,'data':_0x5b101b,'createdAt':new Date(),'authorId':_0x509a03,'attributes':_0x26cf3c});_0x3c787a['push'](_0x14b2ac),this['_addSuggestionMarker'](_0x26ea4a,_0x34d5a7,_0x509a03,_0x13b63c);}return _0x3c787a;}['enableDefaultAttributesIntegration'](_0x2338ce){this['enableCommand'](_0x2338ce,(_0x512e18,..._0x21158f)=>{this['_recordAttributeChanges'](()=>{_0x512e18(..._0x21158f);});});}['registerBlockAttribute'](_0x22a2f4){this['_blockAttributeKeys']['add'](_0x22a2f4);}['registerInlineAttribute'](_0xb59e0b){this['_inlineAttributeKeys']['add'](_0xb59e0b);}['_getAttributeKey'](_0x3c4649){return'attribute'==_0x3c4649['type']?_0x3c4649['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1a9572,_0xd1f17c){const _0x11995a=_0x1a9572['getFirstMarker']();this['_model']['change'](_0x1297b2=>{_0x1297b2['updateMarker'](_0x11995a,{'range':_0xd1f17c});});}['_addThreadToSuggestion'](_0x2f0cda){const _0x228354=_0x2f0cda['id'],_0x286117=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x228354)||this['_commentsRepository']['addCommentThread']({'channelId':_0x286117,'threadId':_0x228354,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x32bb44=this['_commentsRepository']['getCommentThread'](_0x228354);_0x32bb44['unbind']('isRemovable'),_0x32bb44['isRemovable']=!0x1,_0x2f0cda['commentThread']=_0x32bb44;}['_checkSuggestionCorrectness'](_0x5edebb,_0x55b160,_0x9c0a3e,_0x3d7953){if(_0x5edebb['type']!=_0x55b160||_0x5edebb['subType']!=_0x9c0a3e||_0x5edebb['creator']['id']!=_0x3d7953)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x50a6b3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x477f6e,_0x234ab9){const _0x2fe6ab=_0x477f6e['getFirstRange']();if(_0x234ab9['isEqual'](_0x2fe6ab))_0x477f6e['removeMarkers']();else{if(_0x2fe6ab['containsRange'](_0x234ab9)){const _0x5464cb=this['_model']['createPositionAt'](_0x234ab9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x477f6e,this['_model']['createRange'](_0x2fe6ab['start'],_0x5464cb));const _0x46ba37=_0x44c9df(),_0x157430=_0x477f6e['creator']['id'],_0x2c73d4=_0x477f6e['type']+':'+_0x477f6e['subType'];this['_setSuggestionData']({'id':_0x46ba37,'type':_0x2c73d4,'createdAt':new Date(),'authorId':_0x157430,'data':_0x477f6e['data'],'attributes':_0x477f6e['attributes']});const _0x4cffc9=this['_model']['createPositionAt'](_0x234ab9['end']['parent'],'after'),_0x12d171=this['_model']['createRange'](_0x4cffc9,_0x2fe6ab['end']);this['_addSuggestionMarker'](_0x2c73d4,_0x46ba37,_0x157430,_0x12d171);}else{if(_0x2fe6ab['containsPosition'](_0x234ab9['start'])){const _0x5c1dfa=this['_model']['createPositionAt'](_0x234ab9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x477f6e,this['_model']['createRange'](_0x2fe6ab['start'],_0x5c1dfa));}else{const _0x49ede6=this['_model']['createPositionAt'](_0x234ab9['end']['parent'],'after');this['_setSuggestionRange'](_0x477f6e,this['_model']['createRange'](_0x49ede6,_0x2fe6ab['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe885a2){for(const {suggestion:_0x5790f6,meta:_0x522807}of this['_findSuggestions'](_0xe885a2,'insertion')){if(!_0x522807['isOwn'])continue;const _0x57a432=_0x5790f6['getRanges']();for(const _0x54270c of _0x57a432)if(!_0xe885a2['getDifference'](_0x54270c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x42628a){const _0x3899d7=this['editor']['plugins']['get']('Users')['getUser'](_0x42628a);if(!_0x3899d7)throw new _0x50a6b3('track-changes-user-not-found',this);return _0x3899d7;}['_getExternalAuthor'](_0x8b647c){const _0x375c76=this['editor']['plugins']['get']('Users'),_0x2b36dc=_0x11f16b('external:'+_0x8b647c),_0x3c5da7=_0x375c76['getUser'](_0x2b36dc);return _0x3c5da7||_0x375c76['addUser']({'id':_0x2b36dc,'name':_0x8b647c});}['_createSuggestion'](_0x32fb49,_0x49a68a,_0x53abb9,_0xdc32ea,_0x493fa8){const _0x2708f2=this['_getAuthorFromId'](_0xdc32ea),_0x3797ea=this['_suggestionFactory']['buildSuggestion'](_0x32fb49,_0x49a68a,_0x53abb9,_0x2708f2,_0x493fa8,_0x11e7fb=>{this['_updateSuggestionData'](_0x53abb9,{'attributes':_0x11e7fb});const _0x3e155a=this['getSuggestion'](_0x53abb9);this['_joinWithAdjacentSuggestions'](new Set([_0x3e155a])),this['_refreshSuggestionsChain'](new Set([_0x3e155a]));});return this['listenTo'](_0x3797ea,'accept',()=>{this['_updateSuggestionData'](_0x53abb9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3797ea,'discard',()=>{this['_updateSuggestionData'](_0x53abb9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x53abb9,_0x3797ea),this['_suggestionState']['set'](_0x3797ea,'notReady'),_0x3797ea;}['_splitMarkerName'](_0x47bf80){const _0x47c6a2=_0x47bf80['split'](':');return{'group':_0x47c6a2[0x0],'type':_0x47c6a2[0x1],'subType':_0x47c6a2['length']>=0x5?_0x47c6a2[0x2]:null,'id':_0x47c6a2['length']<0x5?_0x47c6a2[0x2]:_0x47c6a2[0x3],'authorId':_0x47c6a2['length']<0x5?_0x47c6a2[0x3]:_0x47c6a2[0x4],'markerCount':0x6==_0x47c6a2['length']?_0x47c6a2[0x5]:null};}['_breakSuggestionMarker'](_0x16c55a,_0x86d5b6,_0x59c82c){const _0x104c4c=_0x16c55a['getFirstRange'](),_0x24c587=_0x104c4c['start'],_0x176bfe=_0x104c4c['end'];this['_setSuggestionRange'](_0x16c55a,this['_model']['createRange'](_0x24c587,_0x86d5b6));const _0x297b95=_0x44c9df(),_0x4501ca=_0x16c55a['creator']['id'],_0x3bec28=_0x16c55a['type']+(_0x16c55a['subType']?':'+_0x16c55a['subType']:'');this['_setSuggestionData']({'id':_0x297b95,'type':_0x3bec28,'createdAt':new Date(),'authorId':_0x4501ca,'originalSuggestionId':_0x16c55a['id'],'attributes':_0x16c55a['attributes'],'data':_0x16c55a['data']});const _0x33fda0=this['_getAttributeKey'](_0x16c55a);('formatBlock'==_0x16c55a['type']||_0x33fda0&&this['_isBlockAttribute'](_0x33fda0))&&(_0x59c82c=this['_model']['createPositionBefore'](_0x59c82c['parent'])),this['_addSuggestionMarker'](_0x3bec28,_0x297b95,_0x4501ca,this['_model']['createRange'](_0x59c82c,_0x176bfe));}['_findSuggestions'](_0x3f3342,_0x5b54b6=null){const _0x309b7e=[],_0x3412c0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3f3342)||(_0x3f3342=[_0x3f3342]);for(const _0x31a7cd of this['getSuggestions']()){if(!_0x31a7cd['isInContent'])continue;if(_0x5b54b6&&_0x31a7cd['type']!=_0x5b54b6)continue;let _0x14fccf=!0x1;for(const _0x3849a1 of _0x31a7cd['getRanges']()){for(const _0x179c56 of _0x3f3342){const _0x2cff17=_0x179c56['start']['isEqual'](_0x3849a1['end'])||_0x179c56['end']['isEqual'](_0x3849a1['start']);if(_0x2cff17||_0x179c56['getIntersection'](_0x3849a1)){const _0x183028=_0x179c56['containsRange'](_0x3849a1)&&Et(this['_model']['schema'],_0x3849a1['start'],_0x179c56),_0x21961a=_0x3849a1['containsRange'](_0x179c56)&&Et(this['_model']['schema'],_0x179c56['start'],_0x3849a1);_0x309b7e['push']({'suggestion':_0x31a7cd,'meta':{'isOwn':_0x3412c0==_0x31a7cd['author'],'isNextTo':_0x2cff17,'isInsideObject':_0x183028,'containsRangeInObject':_0x21961a}}),_0x14fccf=!0x0;break;}}if(_0x14fccf)break;}}return _0x309b7e;}['_addSuggestionMarker'](_0x21c942,_0x245bd9,_0x35ee05,_0x3856b3,_0x355621){this['_model']['change'](_0x14847b=>{let _0x2f7e76='suggestion:'+_0x21c942+':'+_0x245bd9+':'+_0x35ee05;_0x355621&&(_0x2f7e76=_0x2f7e76+':'+_0x355621),_0x14847b['addMarker'](_0x2f7e76,{'range':_0x3856b3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2a10b9){const _0x58e0b4=_0x2a10b9['previous'],_0x24a49f=_0x2a10b9['next'];_0x2a10b9['previous']=null,_0x2a10b9['next']=null,null!=_0x58e0b4&&_0x58e0b4['next']==_0x2a10b9&&(_0x58e0b4['next']=_0x24a49f),null!=_0x24a49f&&_0x24a49f['previous']==_0x2a10b9&&(_0x24a49f['previous']=_0x58e0b4),'ready'==this['_suggestionState']['get'](_0x2a10b9)&&(this['_suggestionState']['set'](_0x2a10b9,'removed'),this['fire']('suggestionUnloaded',_0x2a10b9,_0x58e0b4,_0x24a49f));}['_setSuggestionData'](_0x533949){const _0x528db5=_0x533949['id'],_0x530020=this['addSuggestionData'](_0x533949);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xf91bf3=this['editor']['plugins']['get']('PendingActions'),_0xdbfbc6=_0x530020['hasComments'],_0x218cac=_0x530020['subType']?_0x530020['type']+':'+_0x530020['subType']:_0x530020['type'],_0x4f83c0=this['editor']['locale'],_0x3307a9=_0xf91bf3['add'](o(_0x4f83c0,'PENDING_ACTION_SUGGESTION')),_0x393a73={'id':_0x528db5,'type':_0x218cac,'hasComments':_0xdbfbc6,'data':_0x533949['data']||null,'originalSuggestionId':_0x533949['originalSuggestionId']||null,'attributes':_0x530020['attributes']};this['_adapter']['addSuggestion'](_0x393a73)['then'](_0x21be2c=>{_0x530020['_saved']=!0x0,_0xf91bf3['remove'](_0x3307a9),_0x21be2c&&_0x21be2c['createdAt']&&(this['_suggestions']['get'](_0x528db5)['createdAt']=_0x21be2c['createdAt']);})['catch'](_0x2d8d01=>{throw _0x24bf61('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x530020['discard']();}),_0x530020['stopListening'](),this['_suggestions']['delete'](_0x530020['id']),this['_suggestionState']['delete'](_0x530020),_0x2d8d01;});}return _0x530020;}['_isBlockAttribute'](_0x1994e0){return this['_blockAttributeKeys']['has'](_0x1994e0);}['_updateSuggestionData'](_0x49922e,_0xef2fb5){const _0x4ea9eb=this['editor']['plugins']['get']('PendingActions'),_0x4761b3=this['getSuggestion'](_0x49922e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4761b3['_saved']){const _0x326597=_0x4ea9eb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x49922e,_0xef2fb5)['then'](()=>{_0x4ea9eb['remove'](_0x326597);});}else _0x4761b3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x49922e,_0xef2fb5);});}}['_getSuggestionData'](_0x84a1f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x50a6b3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x84a1f);}['_handleNewSuggestionMarker'](_0x5b8ef4){const {id:_0x205e26,type:_0x5469a7,subType:_0x19767f,authorId:_0x24d1d7}=this['_splitMarkerName'](_0x5b8ef4),_0x42bb90=this['_suggestions']['get'](_0x205e26)||this['_createSuggestion'](_0x5469a7,_0x19767f,_0x205e26,_0x24d1d7,{});switch(this['_checkSuggestionCorrectness'](_0x42bb90,_0x5469a7,_0x19767f,_0x24d1d7),this['_suggestionState']['get'](_0x42bb90)){case'notReady':this['_getSuggestionData'](_0x205e26)['then'](_0x314f14=>{let _0x3c4c51=Promise['resolve']();_0x314f14['hasComments']&&(_0x3c4c51=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x205e26})),_0x3c4c51['then'](()=>{this['addSuggestionData'](_0x314f14)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x42bb90,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x205e26,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x42bb90,'ready'),this['fire']('suggestionLoaded',_0x42bb90);break;case'ready':this['fire']('suggestionChanged',_0x42bb90);}return _0x42bb90['addMarkerName'](_0x5b8ef4),_0x42bb90;}['_refreshSuggestionsChain'](_0x12980f){const _0x486902=Array['from'](_0x12980f),_0x6a86dd=_0x486902['filter'](_0xe6e2af=>'attribute'==_0xe6e2af['type']);this['_refreshAttributeSuggestionsChain'](_0x6a86dd);const _0x2e3c75=_0x486902['filter'](_0x130466=>!_0x130466['isMultiRange']&&'attribute'!=_0x130466['type']),_0x5430b6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51bfbf=>!_0x51bfbf['isMultiRange']&&'attribute'!=_0x51bfbf['type']),_0x4e0a0d=_0x5430b6['filter'](_0x32053a=>!_0x12980f['has'](_0x32053a)),_0x3aaf9b=new Map(_0x5430b6['map'](_0x1498c8=>[_0x1498c8,this['_suggestionFactory']['getSuggestionCallback'](_0x1498c8['type'],_0x1498c8['subType'],'chain')])),_0x1d0df6=new Map(_0x5430b6['map'](_0x35b7e0=>[_0x35b7e0,_0x35b7e0['getFirstRange']()])),_0x534bc9=new Set(),_0x5902b5=new Set();for(let _0x441931=0x0;_0x441931<_0x2e3c75['length'];_0x441931++)_0x277bca(_0x2e3c75[_0x441931],_0x2e3c75,_0x441931+0x1);for(let _0x1e27ca=0x0;_0x1e27ca<_0x2e3c75['length'];_0x1e27ca++)_0x277bca(_0x2e3c75[_0x1e27ca],_0x4e0a0d,0x0);const _0x231788=new Set();for(let _0x45fb1a=0x0;_0x45fb1a<_0x2e3c75['length'];_0x45fb1a++){const _0x1dee54=_0x2e3c75[_0x45fb1a];!_0x5902b5['has'](_0x1dee54)&&_0x1dee54['previous']&&(_0x231788['add'](_0x1dee54['previous']),_0x1dee54['previous']['next']===_0x1dee54&&(_0x1dee54['previous']['next']=null),_0x1dee54['previous']=null),!_0x534bc9['has'](_0x1dee54)&&_0x1dee54['next']&&(_0x231788['add'](_0x1dee54['next']),_0x1dee54['next']['previous']===_0x1dee54&&(_0x1dee54['next']['previous']=null),_0x1dee54['next']=null);}function _0x277bca(_0x4c2ab8,_0xf5b270,_0xa012da){for(let _0x556b9f=_0xa012da;_0x556b9f<_0xf5b270['length'];_0x556b9f++){const _0x9419aa=_0x2e20c7(_0x4c2ab8,_0xf5b270[_0x556b9f]);_0x9419aa&&(_0x9419aa[0x0]['next']=_0x9419aa[0x1],_0x9419aa[0x1]['previous']=_0x9419aa[0x0],_0x534bc9['add'](_0x9419aa[0x0]),_0x5902b5['add'](_0x9419aa[0x1]));}}function _0x2e20c7(_0x411728,_0x4ed064){if(_0x411728['author']['id']!==_0x4ed064['author']['id'])return null;const _0x39342a=_0x3aaf9b['get'](_0x411728)(_0x411728,_0x4ed064,_0x1d0df6['get'](_0x411728),_0x1d0df6['get'](_0x4ed064));if(!_0x39342a)return null;return _0x3aaf9b['get'](_0x4ed064)(_0x411728,_0x4ed064,_0x1d0df6['get'](_0x411728),_0x1d0df6['get'](_0x4ed064))?_0x39342a[0x1]['commentThread']&&_0x39342a[0x1]['commentThread']['length']?null:_0x39342a:null;}_0x231788['size']&&this['_refreshSuggestionsChain'](_0x231788);}['_refreshAttributeSuggestionsChain'](_0x458379){if(0x0==_0x458379['length'])return;const _0x5b5ccc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f5201=>'attribute'==_0x4f5201['type']&&_0x4f5201['_isDataLoaded']),_0x47cb00=[],_0x2e9727=new Map();for(const _0x4265bf of _0x5b5ccc){const _0x2e50c6=_0x11f16b(_0x4265bf['attributes']);_0x2e9727['has'](_0x2e50c6)||(_0x2e9727['set'](_0x2e50c6,_0x47cb00['length']),_0x47cb00['push']([]));const _0x1798e8=_0x2e9727['get'](_0x2e50c6);_0x47cb00[_0x1798e8]['push'](_0x4265bf);}!(function(){_0x47cb00['sort']((_0x3766ed,_0x1aa93e)=>{const _0x3721d6=_0x3766ed[0x0]['createdAt'],_0x41b98a=_0x1aa93e[0x0]['createdAt'];return _0x3721d6==_0x41b98a?_0x3766ed[0x0]['attributes']['groupId']<_0x1aa93e[0x0]['attributes']['groupId']?-0x1:0x1:_0x3721d6<_0x41b98a?-0x1:0x1;});for(const _0x9c3bf9 of _0x47cb00)_0x9c3bf9['sort']((_0x181013,_0x1c71aa)=>_0x181013['id']<_0x1c71aa['id']?-0x1:0x1);}());for(let _0x16b1c0=0x0;_0x16b1c0<_0x47cb00['length'];_0x16b1c0++){if(0x0==_0x47cb00[_0x16b1c0]['length'])continue;const _0x3797dc=[];for(let _0x27a240=_0x16b1c0+0x1;_0x27a240<_0x47cb00['length'];_0x27a240++)0x0!=_0x47cb00[_0x27a240]['length']&&_0x2c44bd(_0x47cb00[_0x16b1c0],_0x47cb00[_0x27a240])&&_0x3797dc['push'](_0x27a240);for(const _0x2fa410 of _0x3797dc)_0x47cb00[_0x16b1c0]=_0x47cb00[_0x16b1c0]['concat'](_0x47cb00[_0x2fa410]),_0x47cb00[_0x2fa410]=[];}for(const _0x5f3db0 of _0x47cb00)for(let _0x1b6a2b=0x0;_0x1b6a2b<_0x5f3db0['length'];_0x1b6a2b++){const _0xb5590b=_0x5f3db0[_0x1b6a2b+0x1]||null;_0x5f3db0[_0x1b6a2b]['next']!==_0xb5590b&&(_0x5f3db0[_0x1b6a2b]['next']=_0xb5590b);}for(const _0x3477ea of _0x47cb00)for(let _0x54505a=0x0;_0x54505a<_0x3477ea['length'];_0x54505a++){const _0x231540=_0x3477ea[_0x54505a-0x1]||null;_0x3477ea[_0x54505a]['previous']!==_0x231540&&(_0x3477ea[_0x54505a]['previous']=_0x231540);}function _0x2c44bd(_0x2dbdd8,_0x445007){if(_0x2dbdd8[0x0]['attributes']['groupId']!==_0x445007[0x0]['attributes']['groupId']&&_0x2dbdd8[0x0]['author']!==_0x445007[0x0]['author'])return!0x1;if(!function(_0x44a510,_0x31cd5b){if(!_0x44a510['hasComments']&&!_0x31cd5b['hasComments'])return!0x0;if(_0x44a510['hasComments']&&_0x31cd5b['hasComments'])return!0x1;if(_0x44a510['hasComments']&&_0x31cd5b['createdAt']<_0x44a510['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x31cd5b['hasComments']&&_0x44a510['createdAt']<_0x31cd5b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2dbdd8[0x0],_0x445007[0x0]))return!0x1;const _0x4c2b25=Rt(_0x2dbdd8[0x0]['attributes'],'groupId'),_0x4cd381=Rt(_0x445007[0x0]['attributes'],'groupId');if(!_0x4a7dae(_0x4c2b25,_0x4cd381))return!0x1;return!!_0x2dbdd8['every'](_0xb0db0f=>_0x445007['some'](_0x2d9d95=>_0xb0db0f['getFirstRange']()['isEqual'](_0x2d9d95['getFirstRange']())))&&_0x445007['every'](_0x561499=>_0x2dbdd8['some'](_0x5f0efc=>_0x561499['getFirstRange']()['isEqual'](_0x5f0efc['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d424b){const _0x48e850=Array['from'](_0x4d424b),_0x4eb48e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x79ea95=_0x4eb48e['filter'](_0x332101=>!_0x4d424b['has'](_0x332101)),_0x46063c=new Map(_0x48e850['map'](_0x251d04=>[_0x251d04,this['_suggestionFactory']['getSuggestionCallback'](_0x251d04['type'],_0x251d04['subType'],'join')])),_0x43614c=new Map(_0x4eb48e['map'](_0x503959=>[_0x503959,_0x503959['getRanges']()]));for(let _0x969f9d=0x0;_0x969f9d<_0x48e850['length'];_0x969f9d++){if(_0xe7529f(this,_0x48e850[_0x969f9d],_0x48e850,_0x969f9d+0x1))return!0x0;}for(let _0x4614ca=0x0;_0x4614ca<_0x48e850['length'];_0x4614ca++){if(_0xe7529f(this,_0x48e850[_0x4614ca],_0x79ea95,0x0))return!0x0;}return!0x1;function _0xe7529f(_0x85cf97,_0x533181,_0x4c1c6f,_0x3e414e){for(let _0xac54b8=_0x3e414e;_0xac54b8<_0x4c1c6f['length'];_0xac54b8++){const _0x2dc9b8=_0x4c1c6f[_0xac54b8];if(_0x2dc9b8['type']!==_0x533181['type']||_0x2dc9b8['author']['id']!==_0x533181['author']['id']||_0x2dc9b8['subType']!==_0x533181['subType'])continue;if(!Jt(_0x533181,_0x2dc9b8))continue;if('attribute'==_0x533181['type']&&_0x533181['data']['oldValue']!=_0x2dc9b8['data']['oldValue'])continue;if('attribute'==_0x533181['type']&&_0x85cf97['_isBlockAttribute'](_0x533181['data']['key']))continue;if('formatBlock'==_0x533181['type']){const _0xd0022b=_0x85cf97['editor']['model'],_0x33f33c=_0x533181['getContainedElement']();if(_0x33f33c&&(_0xd0022b['schema']['isObject'](_0x33f33c)||_0xd0022b['schema']['isLimit'](_0x33f33c)))continue;}const _0x26d86d=_0x46063c['get'](_0x533181),_0x24303e=_0x43614c['get'](_0x533181),_0x3cdbd3=_0x43614c['get'](_0x2dc9b8),_0x869fbb=_0x533181['commentThread']&&_0x533181['commentThread']['length'],_0x357afa=_0x2dc9b8['commentThread']&&_0x2dc9b8['commentThread']['length'];if(!_0x869fbb&&_0x26d86d(_0x3cdbd3,_0x24303e))return _0x85cf97['_joinSuggestions'](_0x2dc9b8,_0x533181),_0x43614c['delete'](_0x533181),!0x0;if(!_0x357afa&&_0x26d86d(_0x24303e,_0x3cdbd3))return _0x85cf97['_joinSuggestions'](_0x533181,_0x2dc9b8),_0x43614c['delete'](_0x2dc9b8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x28966d,_0x2f83b7){if(_0x28966d['isMultiRange']){for(const _0x5df778 of _0x2f83b7['getRanges']())_0x28966d['addRange'](_0x5df778);}else{const _0x5efeed=_0x2f83b7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x28966d,this['_model']['createRange'](_0x28966d['getFirstRange']()['start'],_0x5efeed));}_0x2f83b7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x59c730,_0x31ce1f,_0x293804){const _0x22cf0a=_0x59c730['startsWith']('format')||_0x59c730['startsWith']('attribute')?'FORMATTING':_0x59c730['toUpperCase']();return o(this['editor']['locale'],_0x31ce1f+'_'+_0x22cf0a+'_SUGGESTION_ANNOUNCEMENT',_0x293804);}['_initAriaMarkerChangeAnnouncements'](){const _0x3e40e5=this['editor'];if(!_0x3e40e5['ui'])return;const {ariaLiveAnnouncer:_0x3f9f69}=_0x3e40e5['ui'];_0x458010(this['_model'],({left:_0x3886c1,entered:_0x11eace})=>{for(const _0x5875ac of _0x3886c1){const {group:_0x27350d,type:_0x1eaa40}=this['_splitMarkerName'](_0x5875ac['name']);if('suggestion'===_0x27350d){_0x3f9f69['announce'](this['_getMarkerAnnouncementText'](_0x1eaa40,'LEAVE'));break;}}for(const _0x4900c6 of _0x11eace){const {group:_0x420314,type:_0xe25ee2}=this['_splitMarkerName'](_0x4900c6['name']);if('suggestion'===_0x420314){_0x3f9f69['announce'](this['_getMarkerAnnouncementText'](_0xe25ee2,'ENTER',_0x2b7abb(_0x1dd87)));break;}}});}['_processAttributeChanges'](_0x537d2c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2b2272=this['editor'],_0x6a0b0b=_0x2b2272['model']['document']['differ']['getChanges']();if(0x0==_0x6a0b0b['length'])return!0x1;const _0x1aaf9c=[],_0x2e7ed2=_0x6a0b0b['filter'](_0x280706=>'attribute'==_0x280706['type']),_0x13843e=_0x6a0b0b['filter'](_0x1b5f2c=>'insert'==_0x1b5f2c['type']&&'$text'!=_0x1b5f2c['name']),_0xfe7fc4=_0x6a0b0b['filter'](_0xe7edeb=>'remove'==_0xe7edeb['type']&&'$text'!=_0xe7edeb['name']);for(const _0x341eb2 of _0x2e7ed2)_0x1aaf9c['push']({'key':_0x341eb2['attributeKey'],'newValue':_0x341eb2['attributeNewValue'],'oldValue':_0x341eb2['attributeOldValue'],'range':Ft(_0x341eb2['range'],_0x2b2272['model'])});for(const _0x5db46c of _0x13843e){const _0x1869ff=_0xfe7fc4['find'](_0x40d88e=>_0x40d88e['position']['isEqual'](_0x5db46c['position']));_0x1869ff&&_0x1aaf9c['push']({'key':m,'newValue':_0x5db46c['name'],'oldValue':_0x1869ff['name'],'range':_0x2b2272['model']['createRangeOn'](_0x5db46c['position']['nodeAfter'])});}return 0x0!=_0x1aaf9c['length']&&this['_reduceExistingSuggestions'](_0x537d2c,_0x1aaf9c);}['_processAttributeSuggestions'](_0x2b7b4c){let _0x8ad197=!0x1;const _0x115c77=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3af7ec=>_0x3af7ec['data']['newRange']&&_0x3af7ec['name']['startsWith']('suggestion:attribute:'));for(const _0x1ca6c6 of _0x115c77){const {subType:_0x1c55a0,id:_0x35e6f7}=this['_splitMarkerName'](_0x1ca6c6['name']),_0x2643fd=_0x1c55a0['split']('|')[0x0];for(const _0x53125e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x53125e['id']!=_0x35e6f7&&'attribute'==_0x53125e['type']&&_0x53125e['data']&&_0x53125e['data']['key']==_0x2643fd&&_0x53125e['getFirstRange']()['isIntersecting'](_0x1ca6c6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x53125e,_0x1ca6c6['data']['newRange'],_0x2b7b4c),_0x8ad197=!0x0);}return _0x8ad197;}['_recordAttributeChanges'](_0x1391d7){this['_recordAttributeSuggestions']=!0x0,_0x1391d7();}['_isRegisteredAttribute'](_0x15b144){const _0x468b07=this['_isBlockAttribute'](_0x15b144),_0x580d23=this['_inlineAttributeKeys']['has'](_0x15b144);return _0x468b07||_0x580d23;}['_reduceExistingSuggestions'](_0x5d62bc,_0x1181b3){if(0x0==_0x1181b3['length'])return!0x1;let _0x37a0a6=!0x1;for(const _0x5c1919 of _0x1181b3){const _0x28c069=this['_findSuggestions'](_0x5c1919['range'],'attribute')['filter'](_0x5ce7e1=>!_0x5ce7e1['meta']['isNextTo'])['map'](_0x5cf962=>_0x5cf962['suggestion']),_0x526f9b=_0x11f16b({'newValue':_0x5c1919['newValue']});_0x28c069['filter'](_0x3d8bf4=>{const [_0x34bbdd,_0x4cad65]=_0x3d8bf4['subType']['split']('|');return _0x34bbdd==_0x5c1919['key']&&_0x4cad65!=_0x526f9b;})['forEach'](_0x22cd89=>{this['_reduceSuggestionAttributeRange'](_0x22cd89,_0x5c1919['range'],_0x5d62bc),_0x37a0a6=!0x0;});}return _0x37a0a6;}['_reduceSuggestionAttributeRange'](_0x19af8a,_0x3b1d21,_0x4e3b46){const _0x522166=_0x19af8a['getFirstRange']()['getDifference'](_0x3b1d21);0x0!==_0x522166['length']?0x1!==_0x522166['length']?this['_breakSuggestionMarker'](_0x19af8a,_0x3b1d21['start'],_0x3b1d21['end']):this['_setSuggestionRange'](_0x19af8a,_0x522166[0x0]):_0x4e3b46['removeMarker'](_0x19af8a['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x46324b){this['_editor']=_0x46324b,this['_model']=_0x46324b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4ab166,_0x3354e2,_0x57a550,_0x5b6bf3,_0x41d085,_0x25ee1a){return new u(this['_model'],{'type':_0x4ab166,'subType':_0x3354e2,'id':_0x57a550,'author':_0x5b6bf3,'creator':_0x5b6bf3,'attributes':_0x41d085,'onAttributesChange':_0x25ee1a,'onAccept':(..._0x57fedd)=>this['getSuggestionCallback'](_0x4ab166,_0x3354e2,'accept')(..._0x57fedd),'onDiscard':(..._0x5441ec)=>this['getSuggestionCallback'](_0x4ab166,_0x3354e2,'discard')(..._0x5441ec)});}['registerCustomCallback'](_0xa1144e,_0x329134,_0x579fd3,_0x296fdb){const _0x2c02ed=_0xa1144e+':'+_0x329134+':'+_0x579fd3;this['_customCallbacks']['set'](_0x2c02ed,_0x296fdb);}['getSuggestionCallback'](_0x31ffa9,_0x2facf0,_0x5b989f){const _0x5b67dd=_0x31ffa9+':'+_0x2facf0+':'+_0x5b989f;return this['_customCallbacks']['get'](_0x5b67dd)||this['_defaultCallbacks']['get'](_0x31ffa9+':'+_0x5b989f);}['_registerDefaultCallbacks'](){const _0x3e9521=()=>!0x1,_0x15127c=_0x443ddc=>{_0x443ddc['sort']((_0x1b7a0c,_0x24541e)=>_0x1b7a0c['start']['isBefore'](_0x24541e['start'])?0x1:-0x1),this['_model']['change'](_0x8f5762=>{for(const _0x1963b4 of _0x443ddc){let _0x673ddd;_0x673ddd=_0x1963b4['end']['isAtEnd']&&_0x1963b4['end']['parent']==_0x1963b4['start']['nodeAfter']?_0x8f5762['createSelection'](_0x1963b4['start']['nodeAfter'],'on'):_0x8f5762['createSelection'](_0x1963b4),this['_model']['deleteContent'](_0x673ddd,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x15c97c=(_0x125a1e,_0x4da40d)=>{_0x4da40d&&this['_model']['change'](_0x23275c=>{const {commandName:_0x3c7208,commandParams:_0x237e5a=[]}=_0x4da40d,_0x3cf9ae=_0x125a1e['map'](_0x3ca813=>(Vt(_0x3ca813)&&(_0x3ca813=this['_model']['createRange'](_0x3ca813['end'])),_0x3ca813))['filter'](_0x49e1b2=>'$graveyard'!==_0x49e1b2['root']['rootName']);if(_0x3cf9ae['length']<0x1)return;const _0x2ec6dc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x185c30=>_0x4d6067['fromRange'](_0x185c30));_0x23275c['setSelection'](_0x3cf9ae);for(const _0x2b41b8 of this['_editor']['commands']['commands']())_0x2b41b8['refresh']();_0x237e5a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3c7208,..._0x237e5a);const _0x14b282=_0x2ec6dc['filter'](_0x4d826f=>'$graveyard'!=_0x4d826f['root']['rootName']);_0x14b282['length']>0x0&&_0x23275c['setSelection'](_0x14b282);for(const _0x4a7c59 of _0x2ec6dc)_0x4a7c59['detach']();});},_0x44efa3=(_0xe94494,_0x358525)=>0x1==_0xe94494['length']&&0x1==_0x358525['length']&&_0xe94494[0x0]['end']['isEqual'](_0x358525[0x0]['start']),_0x120853=(_0xce2873,_0xde89d7,_0x36cf9c,_0x51509b)=>Ht(_0xce2873,_0xde89d7,_0x36cf9c,_0x51509b,this['_model'])?[_0xce2873,_0xde89d7]:Ht(_0xde89d7,_0xce2873,_0x51509b,_0x36cf9c,this['_model'])?[_0xde89d7,_0xce2873]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3e9521),this['_defaultCallbacks']['set']('insertion:discard',_0x15127c),this['_defaultCallbacks']['set']('insertion:join',_0x44efa3),this['_defaultCallbacks']['set']('insertion:chain',_0x120853),this['_defaultCallbacks']['set']('deletion:accept',_0x15127c),this['_defaultCallbacks']['set']('deletion:discard',_0x3e9521),this['_defaultCallbacks']['set']('deletion:join',_0x44efa3),this['_defaultCallbacks']['set']('deletion:chain',_0x120853),this['_defaultCallbacks']['set']('formatInline:accept',_0x15c97c),this['_defaultCallbacks']['set']('formatInline:discard',_0x3e9521),this['_defaultCallbacks']['set']('formatInline:join',_0x44efa3),this['_defaultCallbacks']['set']('formatInline:chain',_0x3e9521),this['_defaultCallbacks']['set']('formatBlock:accept',_0x15c97c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3e9521),this['_defaultCallbacks']['set']('formatBlock:join',_0x44efa3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3e9521),this['_defaultCallbacks']['set']('attribute:accept',_0x3e9521),this['_defaultCallbacks']['set']('attribute:discard',(_0xacef9d,_0x573d61)=>{if(!_0x573d61)return;const _0x59beee=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x490a18=>{if(_0x573d61['key']==m)for(const _0x3337be of _0xacef9d){const _0x511e7e=_0x3337be['start']['nodeAfter'],_0x392254=_0x573d61['oldValue'];_0x490a18['rename'](_0x511e7e,_0x392254);}else{if(_0x59beee['_isBlockAttribute'](_0x573d61['key'])){for(const _0x2b7b9d of _0xacef9d)void 0x0!==_0x573d61['oldValue']?_0x490a18['setAttribute'](_0x573d61['key'],_0x573d61['oldValue'],_0x2b7b9d['start']['nodeAfter']):_0x490a18['removeAttribute'](_0x573d61['key'],_0x2b7b9d['start']['nodeAfter']);}else{for(const _0x27d222 of _0xacef9d)_0x573d61['oldValue']?_0x490a18['setAttribute'](_0x573d61['key'],_0x573d61['oldValue'],_0x27d222):_0x490a18['removeAttribute'](_0x573d61['key'],_0x27d222);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x44efa3);}}function Et(_0x47ed22,_0x259e67,_0x57b67b){for(const _0x59804f of _0x259e67['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59804f['root']==_0x59804f)return!0x1;if(!_0x57b67b['containsItem'](_0x59804f))return!0x1;if(_0x47ed22['isObject'](_0x59804f)||_0x47ed22['isLimit'](_0x59804f))return!0x0;}return!0x1;}function Vt(_0x4406e6){return _0x4406e6['end']['parent']==_0x4406e6['start']['nodeAfter']&&_0x4406e6['end']['isAtStart'];}function Ut(_0x65410d,_0xf8c739,_0x36b11f,_0x24d001){const _0x1445bc=_0x59ea17=>!_0x59ea17['item']['is']('$textProxy')&&!_0x24d001['isObject'](_0x59ea17['item']),_0x176181=_0x65410d['start']['getLastMatchingPosition'](_0x1445bc),_0x4da07a=_0x65410d['end']['getLastMatchingPosition'](_0x1445bc,{'direction':'backward'});return(!_0x65410d['start']['isEqual'](_0x176181)||!_0x65410d['end']['isEqual'](_0x4da07a))&&(_0x176181['isBefore'](_0x4da07a)?_0x36b11f['updateMarker'](_0xf8c739,{'range':_0x36b11f['createRange'](_0x176181,_0x4da07a)}):_0x36b11f['removeMarker'](_0xf8c739),!0x0);}function Pt(_0x438025){return _0x11f16b(_0x438025);}function Gt(_0x5ce23a){const _0x49e8b9=_0x5ce23a['start']['nodeAfter'];return _0x49e8b9&&_0x49e8b9['is']('element');}function Ft(_0x21f543,_0xd6cf00){return null==_0x21f543['end']['nodeBefore']&&_0x21f543['end']['parent']==_0x21f543['start']['nodeAfter']?Lt(_0x21f543['start']['nodeAfter'],_0xd6cf00):_0x21f543;}function Lt(_0x5b0bbb,_0x1f268a){const _0x2dcf79=_0x1f268a['schema']['isObject'](_0x5b0bbb)||_0x1f268a['schema']['isSelectable'](_0x5b0bbb);return _0x1f268a['createRange'](_0x1f268a['createPositionAt'](_0x5b0bbb,'before'),_0x2dcf79?_0x1f268a['createPositionAfter'](_0x5b0bbb):_0x1f268a['createPositionAt'](_0x5b0bbb,'end'));}function Ht(_0x1f443e,_0x17ed8e,_0xa51b6c,_0x1d0ab6,_0x42303b){if(_0x1f443e['next'])return!0x1;if(!Jt(_0x1f443e,_0x17ed8e))return!0x1;if(_0xa51b6c['end']['isEqual'](_0x1d0ab6['start']))return!0x0;if(_0x1f443e['type']!=_0x17ed8e['type'])return!0x1;if(!_0xa51b6c['end']['isTouching'](_0x1d0ab6['start']))return!0x1;const _0x4366b1=_0x42303b['createRange'](_0xa51b6c['end'],_0x1d0ab6['start'])['getWalker']();for(const _0x12511f of _0x4366b1)if(['elementStart','elementEnd']['includes'](_0x12511f['type'])&&_0x42303b['schema']['isLimit'](_0x12511f['item']))return!0x1;return!0x0;}function Jt(_0x505717,_0x4b57a7){if(!_0x505717['_isDataLoaded']||!_0x4b57a7['_isDataLoaded'])return!0x1;const _0x4d0d28=new Set(Object['keys'](_0x505717['attributes'])),_0x1a579e=new Set(Object['keys'](_0x4b57a7['attributes']));if(_0x4d0d28['delete']('groupId'),_0x1a579e['delete']('groupId'),0x0==_0x4d0d28['size']&&0x0==_0x1a579e['size'])return!0x0;if(_0x4d0d28['size']!=_0x1a579e['size'])return!0x1;const _0x40a9b7={..._0x505717['attributes']},_0x4e6930={..._0x4b57a7['attributes']};return delete _0x40a9b7['groupId'],delete _0x4e6930['groupId'],JSON['stringify'](_0x40a9b7)==JSON['stringify'](_0x4e6930);}function qt(_0x4260ec,_0x451295){const _0x296a4f=zt(_0x4260ec['attributes']),_0x10f625=zt(_0x451295);if(!_0x4260ec['_isDataLoaded'])return!0x1;for(const _0x3f087a of Object['keys'](_0x10f625))if(!_0x4a7dae(_0x296a4f[_0x3f087a],_0x10f625[_0x3f087a]))return!0x1;return!0x0;}function zt(_0x462693){const _0x3b79e3=Object['assign']({},_0x462693);return delete _0x3b79e3['skipNestingCheck'],delete _0x3b79e3['tablePasteChainId'],_0x3b79e3;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x32a2fb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x154ea9,_0x2da807,_0xc6254d,_0x4c9a56){super(),this['model']=_0x2da807,this['view']=_0xc6254d,this['commentThreadController']=_0x4c9a56,this['_editor']=_0x154ea9,this['_acceptCommand']=_0x154ea9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x154ea9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1872f6,_0x447f57)=>_0x1872f6||_0x447f57),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1d8636=>_0x1d8636&&this['_editor']['model']['canEditAt'](_0x2da807['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x353eda=>_0x353eda&&this['_editor']['model']['canEditAt'](_0x2da807['getRanges']())),this['_pendingAction']=null,_0xc6254d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xc6254d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xc6254d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xc6254d,'change:isDirty',()=>{_0xc6254d['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 _0x216e23=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x216e23);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x533ec6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x40bed0,_0x120c45,_0x23236b,_0x39a05e){super(_0x40bed0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2fdbdb(_0x40bed0,o(_0x40bed0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x120c45['authoredAt']),this['bind']('authoredAt')['to'](_0x120c45),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x120c45,'authoredAt',this,'descriptionParts',(_0x1c0e5b,_0x189719,_0x50eae6)=>{const _0x8bdca9=_0x50eae6['map'](_0x5661f8=>ls(_0x5661f8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1c0e5b-0x1,_0x120c45['author']['name'],_0x189719?_0x39a05e['formatDateTime'](_0x189719):'',new DOMParser()['parseFromString'](_0x8bdca9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3c4029(),this['focusTracker']=new _0x34e3bb(),this['keystrokes']=new _0x83a12f(),this['focusCycler']=new _0x263ff5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c2b98=>_0x3c2b98['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x120c45,this['_localUser']=_0x23236b,this['_config']=_0x39a05e,_0x39a05e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5d1c33(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xefdb19}=this['_config'];this['commentsListView']=new _0xefdb19(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',_0x355cc3=>_0x355cc3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x304d20,_0x3098b5)=>_0x304d20||!!_0x3098b5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xc5d6db}=this['_config'],_0x2b0c14=new _0xc5d6db(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x314303=_0x2b0c14['commentInputView'];return _0x2b0c14['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x314303,'value',(_0x35eeb0,_0x84cbf1,_0x5e041c)=>!!_0x5e041c||_0x35eeb0&&!_0x84cbf1),_0x314303['on']('submit',(_0x5714d9,_0x46542d)=>{this['fire']('addComment',_0x46542d),_0x314303['editor']['setData']('');}),_0x314303['on']('cancel',()=>this['focus']()),_0x314303['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2b0c14;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x98c5be,_0x48b193,_0x8bf33a,_0x4f7312){super(_0x98c5be,_0x48b193,_0x8bf33a,_0x4f7312),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x160dda=>_0x160dda&&_0x160dda[0x0]?_0x160dda[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x10e390,_0x19c73c)=>{let _0x46e892='';for(const _0x409f81 of _0x10e390)_0x46e892+='<p>'+ls(_0x409f81['content'],_0x409f81['color'])+'</p>';return _0x19c73c?_0x46e892:_0x84f398(_0x46e892,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4f7312['SuggestionView'](_0x98c5be,_0x48b193,{'formatDateTime':_0x4f7312['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4534c8=this['bindTemplate'],_0x1d9a09=[this['suggestionView']];return this['commentsListView']&&_0x1d9a09['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1d9a09['push'](this['commentThreadInputView']),_0x1d9a09['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4534c8['if']('isActive','ck-suggestion-wrapper--active'),_0x4534c8['to']('type',_0x27d84b=>'ck-suggestion-'+_0x27d84b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4534c8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1d9a09};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x533ec6{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4bcab6,_0x663f7f,_0x241239){super(_0x4bcab6),this['_model']=_0x663f7f,this['_config']=_0x241239,this['set']('description',''),this['bind']('authoredAt')['to'](_0x663f7f),this['acceptButton']=this['_createButton'](o(_0x4bcab6,'Accept\x20suggestion'),_0x40c46c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4bcab6,'Discard\x20suggestion'),_0x40c46c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4c20db(_0x4bcab6,_0x663f7f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3c4029([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x34e3bb(),this['keystrokes']=new _0x83a12f(),this['focusCycler']=new _0x263ff5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2619ba=>_0x2619ba['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4c5377=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4c5377['innerHTML']=this['description'],this['on']('change:description',(_0x482128,_0x1b4dac,_0x420d30)=>{_0x4c5377['innerHTML']=_0x420d30;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x20dbcb=this['bindTemplate'],_0x269965=[{'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':_0x20dbcb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x20dbcb['to']('authoredAt',_0x6aad8c=>this['_config']['formatDateTime'](_0x6aad8c))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x269965['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x269965}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x354950,_0x226437,_0x57a237,_0x2fdd72,_0x59b8b1){const _0x27d0ed=new _0x154232(this['locale']);return _0x27d0ed['set']({'label':_0x354950,'icon':_0x226437,'tooltip':!0x0,'tooltipPosition':_0x59b8b1}),_0x27d0ed['extendTemplate']({'attributes':{'class':_0x57a237}}),_0x27d0ed['on']('execute',()=>{this['fire'](_0x2fdd72,this['_model']['id']);}),_0x27d0ed;}['_setupKeyboardNavigation'](){const _0x3f0321=this['element'];this['keystrokes']['listenTo'](_0x3f0321);for(const _0x292fca of this['focusables'])this['focusTracker']['add'](_0x292fca['element']),this['keystrokes']['listenTo'](_0x292fca['element']);this['keystrokes']['set']('enter',(_0x4db251,_0x39bb82)=>{_0x3f0321===_0x4db251['target']&&(this['focusCycler']['focusFirst'](),_0x39bb82());}),this['keystrokes']['set']('esc',(_0x3c415a,_0xa5fb5c)=>{_0x3f0321!==_0x3c415a['target']&&(this['focus'](),_0xa5fb5c());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0xbd4bc4{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x890f8f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x446472){super(_0x446472),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40ba84=this['editor']['config'];_0x40ba84['define']('trackChanges.SuggestionThreadView',re),_0x40ba84['define']('trackChanges.SuggestionView',ce),_0x40ba84['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40ba84['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x41b54a,_0x3bf2f2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x907d73,_0x18fd5c]of this['_handleControllerBuffer']){const _0x403371=this['_suggestionToController']['has'](_0x907d73);_0x403371||_0x18fd5c?_0x403371&&_0x18fd5c&&this['_destroyController'](_0x907d73):this['_initializeController'](_0x907d73);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x41b54a,_0x3bf2f2);}['init'](){const _0x4971ea=this['editor'],_0x534af6=_0x4971ea['plugins']['get']('TrackChangesEditing'),_0x51ebb1=_0x4971ea['plugins']['get']('Annotations'),_0x289910=_0x4971ea['plugins']['get']('EditorAnnotations'),_0x136fd9=_0x4971ea['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x289910['addSourceCollector'](()=>{const _0x1995ee=[];for(const [_0x44a2fd,_0x2c7bdb]of Array['from'](this['_suggestionToController'])){const _0x127073=_0x44a2fd['getAllAdjacentSuggestions'](),_0x4e621e=[];for(const _0x42c223 of _0x127073){if(!_0x42c223['isInContent'])continue;if(_0x42c223['isMultiRange']){_0x4e621e['push'](..._0x42c223['getRanges']());continue;}const _0x3585a4=_0x42c223['getFirstRange']();if(_0x4e621e['length']>0x0){const _0x3bbd17=_0x4e621e[0x0]['getJoined'](_0x3585a4);if(_0x3bbd17){_0x4e621e[0x0]=_0x3bbd17;continue;}}_0x4e621e['push'](_0x3585a4);}_0x1995ee['push']([_0x2c7bdb['view'],_0x4e621e]);}return _0x1995ee;}),this['listenTo'](_0x534af6,'suggestionLoaded',(_0x59a564,_0x44f97c)=>{this['listenTo'](_0x44f97c,'change:previous',(_0x47f76c,_0x5023b5,_0x353484,_0x5c94ee)=>{_0x44f97c['isInContent']&&(null==_0x353484?(this['_updateController'](_0x5c94ee['head']),this['_handleSuggestionControllerDelayed'](_0x44f97c,!0x1)):(this['_updateController'](_0x353484['head']),null==_0x5c94ee&&this['_handleSuggestionControllerDelayed'](_0x44f97c,!0x0)));}),null!==_0x44f97c['previous']?this['_updateController'](_0x44f97c['head']):this['_handleSuggestionControllerDelayed'](_0x44f97c,!0x1);}),this['listenTo'](_0x534af6,'suggestionUnloaded',(_0x1bc840,_0x294b60,_0x2116ff)=>{this['stopListening'](_0x294b60,'change:previous'),this['_handleControllerBuffer']['delete'](_0x294b60),this['_suggestionToController']['has'](_0x294b60)&&this['_destroyController'](_0x294b60),_0x2116ff&&this['_updateController'](_0x2116ff['head']);}),this['listenTo'](_0x534af6,'suggestionChanged',(_0x395531,_0x3da6d9)=>{this['_updateController'](_0x3da6d9);}),this['listenTo'](_0x51ebb1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x136fd9,'addComment',(_0x20a1c9,{threadId:_0x155fd1,isFromAdapter:_0x349956})=>{if(_0x349956||!_0x534af6['hasSuggestion'](_0x155fd1))return;const _0x829fa9=_0x534af6['getSuggestion'](_0x155fd1);this['_suggestionToController']['get'](_0x829fa9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x24d177=this['editor']['plugins']['get']('Annotations'),_0x232e44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x106cd0=Array['from'](_0x24d177['activeAnnotations'],_0x48e7e2=>_0x48e7e2['innerView'])['filter'](_0x4b85f7=>this['_viewToController']['has'](_0x4b85f7)),_0x1d6127=[];for(const _0x358f9b of _0x106cd0){const _0x3f2a72=this['_viewToController']['get'](_0x358f9b)['model']['getAllAdjacentSuggestions']();_0x1d6127['push'](..._0x3f2a72['reduce']((_0x17fbd2,_0x295fb3)=>[..._0x17fbd2,..._0x295fb3['getMarkerNames']()],[]));}_0x232e44['activeMarkers']=_0x1d6127;}['_addUIComponentsToFactory'](){const _0x589160=this['editor'],_0x138214=_0x589160['locale'],_0x5449ce=o(_0x138214,'Track\x20changes'),_0x511dd2=new Wt([{'type':'switchbutton','model':new _0x4725ce({'withText':!0x0,'isToggleable':!0x0,'label':_0x5449ce,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4725ce({'withText':!0x0,'label':o(_0x138214,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4725ce({'withText':!0x0,'label':o(_0x138214,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4725ce({'withText':!0x0,'label':o(_0x138214,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4725ce({'withText':!0x0,'label':o(_0x138214,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3681c6 of _0x511dd2)if(me(_0x3681c6)){const _0x2243a1=_0x589160['commands']['get'](_0x3681c6['model']['commandName']);_0x3681c6['model']['bind']('isOn','isEnabled')['to'](_0x2243a1,'value','isEnabled');}_0x589160['ui']['componentFactory']['add']('trackChanges',_0x527f2c=>this['_createToolbarButton'](_0x527f2c,_0x511dd2,_0x5449ce)),_0x589160['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3decfc=>this['_createMenuBarMenu'](_0x3decfc,_0x511dd2,_0x5449ce));}['_createToolbarButton'](_0x197e93,_0x12120f,_0x32b702){const _0x1c3fb9=Qt(_0x197e93,_0x591713),_0x36bcc2=this['editor']['commands']['get']('trackChanges');_0x1c3fb9['buttonView']['set']({'tooltip':_0x32b702,'label':_0x32b702,'icon':he}),_0x1c3fb9['buttonView']['bind']('isOn')['to'](_0x36bcc2,'value'),_0x1c3fb9['buttonView']['on']('execute',()=>{_0x36bcc2['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x1c3fb9,_0x12120f,{'role':'menu'});const _0x4554d6=[];for(const _0x1f1621 of _0x12120f)me(_0x1f1621)&&_0x4554d6['push'](this['editor']['commands']['get'](_0x1f1621['model']['commandName']));const _0x496c7e=_0x1c3fb9['buttonView'];return _0x496c7e['actionView']['unbind']('isEnabled'),_0x496c7e['arrowView']['unbind']('isEnabled'),_0x496c7e['actionView']['bind']('isEnabled')['to'](_0x36bcc2,'isEnabled'),_0x496c7e['arrowView']['bind']('isEnabled')['toMany'](_0x4554d6,'isEnabled',(..._0xb74119)=>_0xb74119['some'](_0x114b15=>_0x114b15)),_0x1c3fb9['on']('execute',_0x14d644=>{this['editor']['execute'](_0x14d644['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1c3fb9;}['_createMenuBarMenu'](_0x1a6365,_0x1e17b2,_0x32ddf0){const _0x39e69f=new Yt(_0x1a6365),_0x1310d2=this['editor']['commands']['get']('trackChanges');_0x39e69f['buttonView']['set']({'label':_0x32ddf0,'icon':he});const _0x1f4ac7=new Zt(_0x1a6365);for(const _0x4160cc of _0x1e17b2){if('separator'==_0x4160cc['type']){_0x1f4ac7['items']['add'](new Xt(_0x1a6365));continue;}const _0x14df7e=new te(_0x1a6365,_0x39e69f),_0x48d3b5=new _0x40b566(_0x1a6365),_0x334584=_0x4160cc['model'];_0x48d3b5['bind'](...Object['keys'](_0x334584))['to'](_0x334584),_0x48d3b5['delegate']('execute')['to'](_0x39e69f),_0x48d3b5['on']('execute',()=>{this['editor']['execute'](_0x334584['commandName']),this['editor']['editing']['view']['focus']();}),_0x14df7e['children']['add'](_0x48d3b5),_0x1f4ac7['items']['add'](_0x14df7e);}return _0x39e69f['bind']('isEnabled')['to'](_0x1310d2,'isEnabled'),_0x39e69f['panelView']['children']['add'](_0x1f4ac7),_0x39e69f;}['_initializeController'](_0x48eb18){const _0x27cdf9=this['editor'],_0x444267=_0x27cdf9['config'],_0x3aedb4=_0x27cdf9['plugins']['get']('Annotations'),_0x245909=_0x27cdf9['plugins']['get']('CommentsRepository'),_0x1f0ed6=_0x27cdf9['plugins']['get']('EditorAnnotations'),_0x4348fd=_0x27cdf9['plugins']['get'](_0x890f8f)['me'],_0x48f0b3=_0x444267['get']('trackChanges')['SuggestionThreadView'],_0x2997bd=_0x444267['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x519b58,CommentThreadInputView:_0x44cff0}=_0x27cdf9['plugins']['get']('CommentsUI');let _0x4a85f7,_0x464fd9,_0x30297d;this['_annotationViews']['has'](_0x48eb18['id'])?(_0x464fd9=this['_annotationViews']['get'](_0x48eb18['id']),_0x4a85f7=_0x464fd9['mainView']):(_0x4a85f7=new _0x48f0b3(_0x27cdf9['locale'],_0x48eb18,_0x4348fd,{'disableComments':this['_disableComments'],'editorConfig':_0x444267['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x444267['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x444267['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x444267['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x79ac35(_0x444267['get']('locale')),'CommentView':_0x444267['get']('comments')['CommentView'],'CommentsListView':_0x519b58,'CommentThreadInputView':_0x44cff0,'SuggestionView':_0x2997bd}),_0x4a85f7['suggestionView']['acceptButton']['on']('execute',()=>{_0x27cdf9['editing']['view']['focus']();}),_0x4a85f7['suggestionView']['discardButton']['on']('execute',()=>{_0x27cdf9['editing']['view']['focus']();}),_0x464fd9=_0x3aedb4['createAnnotationView'](this['editor']['locale'],_0x4a85f7),_0x464fd9['bind']('isDirty')['to'](_0x4a85f7,'isDirty'),_0x464fd9['bind']('length')['to'](_0x4a85f7),_0x464fd9['bind']('type')['to'](_0x4a85f7,'type',_0x589bd4=>'suggestion-'+_0x589bd4),_0x4a85f7['on']('escape',()=>{_0x30297d['fire']('escape');}),this['_annotationViews']['set'](_0x48eb18['id'],_0x464fd9));const _0x569c7d=_0x245909['createCommentThreadController'](_0x48eb18['commentThread'],_0x4a85f7),_0x4ff5c8=new ae(_0x27cdf9,_0x48eb18,_0x4a85f7,_0x569c7d),_0x4d44cf=_0x48eb18['getAllAdjacentSuggestions']()['filter'](_0x42afc1=>_0x42afc1['isInContent']);_0x4a85f7['descriptionParts']=_0x27cdf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4d44cf),this['_suggestionToController']['set'](_0x48eb18,_0x4ff5c8),this['_viewToController']['set'](_0x4a85f7,_0x4ff5c8),_0x30297d=_0x3aedb4['createAnnotation']({'view':_0x464fd9,'target':()=>{const _0x33f353=[],_0x38447e=_0x48eb18['getAllAdjacentSuggestions']()['filter'](_0x5526cd=>_0x5526cd['isInContent']);for(const _0x16ec7d of _0x38447e)_0x33f353['push'](..._0x16ec7d['getMarkers']());return _0x567fd8(_0x27cdf9['editing'],_0x33f353);},'type':()=>'suggestion-'+_0x4ff5c8['view']['type']}),_0x245909['_bindAnnotationToEditors'](_0x4a85f7,_0x30297d),_0x3aedb4['add'](_0x30297d),_0x1f0ed6['registerAnnotation'](_0x30297d);}['_destroyController'](_0x1d49c6){const _0x417ab5=this['editor']['plugins']['get']('CommentsRepository'),_0x1ab98c=this['editor']['plugins']['get']('Annotations'),_0x281b00=this['_suggestionToController']['get'](_0x1d49c6),_0xf99efb=_0x281b00['view'],_0x1888a7=_0x1ab98c['getByInnerView'](_0xf99efb);_0x417ab5['_unbindEditors'](_0xf99efb),_0x1888a7&&_0x1ab98c['remove'](_0x1888a7),this['_suggestionToController']['delete'](_0x1d49c6),this['_viewToController']['delete'](_0xf99efb),_0x281b00['destroy']();}['_updateController'](_0x2cbf83){if(!_0x2cbf83['isInContent']||!this['_suggestionToController']['has'](_0x2cbf83))return;const _0x3ed42f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a2f33=this['_suggestionToController']['get'](_0x2cbf83),_0x1e5a7a=_0x2cbf83['getAllAdjacentSuggestions']();_0x5a2f33['view']['descriptionParts']=_0x3ed42f['descriptionFactory']['getDescriptions'](_0x1e5a7a);}['destroy'](){for(const _0x3f6bb0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3f6bb0);for(const _0x3c2037 of this['_annotationViews']['values']())_0x3c2037['mainView']['destroy']();super['destroy']();}}function me(_0xbf8770){return'model'in _0xbf8770;}class k extends _0xbd4bc4{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x471a76){this['editor']['plugins']['get'](p)['adapter']=_0x471a76;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d3fdc){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d3fdc);}['getSuggestions']({skipNotAttached:_0xa474d5=!0x1,toJSON:_0x353e2b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xa474d5,'toJSON':_0x353e2b});}['getSuggestion'](_0x267cfa){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x267cfa);}}const w=['Pagination'];class T extends _0xbd4bc4{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x162106=this['editor'];if(_0x162106['config']['define']('trackChangesData.editorCreator',_0x5be0a3=>{const _0x115323=_0x162106['model']['document']['getRootNames']()['reduce']((_0x3bf902,_0x86944c)=>(_0x3bf902[_0x86944c]='',_0x3bf902),{});return _0x162106['constructor']['create'](_0x115323,_0x5be0a3);}),'function'!=typeof _0x162106['config']['get']('trackChangesData')['editorCreator'])throw new _0x50a6b3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5599b9){return N(this['editor'],!0x0,_0x5599b9);}['getDataWithDiscardedSuggestions'](_0x4ac5b0){return N(this['editor'],!0x1,_0x4ac5b0);}}class D extends _0xbd4bc4{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x477bad){super(_0x477bad),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(_0x24c5d9){return void 0x0!==_0x24c5d9['getRootsAttributes'];}async function N(_0x2a77b3,_0x115829,_0x2b6d2e){const _0x232559=_0x58f336(_0x2a77b3,w);_0x232559['plugins']['push'](p,D),_0x232559['rootsAttributes']=v(_0x2a77b3)?_0x2a77b3['getRootsAttributes']():void 0x0;const _0x184d35=document['createDocumentFragment'](),_0x2802dd=_0x2a77b3['config']['get']('trackChangesData')['editorCreator'],_0x422caf=await _0x2802dd(_0x232559,()=>function(_0x583509){const _0x365bef=document['createElement']('div');return _0x583509['appendChild'](_0x365bef),_0x365bef;}(_0x184d35));!function(_0x19398f,_0x15998c){const _0x58947c=_0x19398f['model']['document']['getRootNames']()['reduce']((_0x37eace,_0x182c94)=>(_0x37eace[_0x182c94]=_0x19398f['data']['get']({'rootName':_0x182c94}),_0x37eace),{}),_0x522b15=_0x19398f['plugins']['get']('Users')['users']['map'](_0x27de3c=>({'id':_0x27de3c['id'],'name':_0x27de3c['name']})),_0x5c3845=_0x19398f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x991f3e=_0x19398f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf29443=_0x15998c['plugins']['get']('Users'),_0x17dc49=_0x15998c['plugins']['get']('TrackChangesEditing'),_0x3dc1eb=_0x15998c['plugins']['get']('CommentsRepository');for(const _0x33bc74 of _0x3dc1eb['getCommentThreads']())_0x33bc74['remove']();for(const _0x1e1031 of _0x522b15)_0xf29443['getUser'](_0x1e1031['id'])||_0xf29443['addUser'](_0x1e1031);_0xf29443['me']||_0xf29443['useAnonymousUser']();for(const _0xf56747 of _0x991f3e)_0x3dc1eb['addCommentThread'](_0xf56747);for(const _0xa1da1c of _0x5c3845)_0x17dc49['addSuggestionData'](_0xa1da1c);_0x15998c['data']['set'](_0x58947c);}(_0x2a77b3,_0x422caf),_0x422caf['execute'](_0x115829?'acceptAllSuggestions':'discardAllSuggestions');const _0x34216a=v(_0x422caf)?_0x422caf['getFullData'](_0x2b6d2e):_0x422caf['data']['get'](_0x2b6d2e);return await _0x422caf['destroy'](),_0x34216a;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x9c8a48,PendingActions as _0x5cd259,icons as _0x3b3428}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x34c45c,ObservableMixin as _0x349c89,uid as _0x5b34d0,insertToPriorityArray as _0x4312dc,priorities as _0x19cb17,logWarning as _0x135957,getEnvKeystrokeText as _0x53d907,FocusTracker as _0x47ecc2,KeystrokeHandler as _0x3f770e,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4d4ea0,View as _0x44480a,ViewCollection as _0x1863a4,FocusCycler as _0x363e2d,ViewModel as _0xc70a69,createDropdown as Qt,SplitButtonView as _0x57a754,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x59867e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4a537f,hashObject as _0xf585eb,surroundingMarkersDetector as _0x8f0d73,FOCUS_ANNOTATION_KEYSTROKE as _0xf70cef,AriaDescriptionView as _0xc9898d,setupThreadKeyboardNavigation as _0x68ba8b,trimHtml as _0x5e68f4,UserView as _0x4d3f9c,LateFocusButtonView as _0x162c45,getDateTimeFormatter as _0x12305d,getAllMarkersDomElementsSorted as _0x3508bd,sanitizeEditorConfig as _0x89c5b9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3d9d9f,LiveRange as _0x7a70a6,LivePosition as _0x58588f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x36d78c,toWidget as _0x43d8d3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x18ab1,set as _0x4fe76f,isEqual as _0x24b8a4,unset as _0x3653b6,omit as Rt}from'lodash-es';import{Delete as _0x29f30d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x29afc3,ShiftEnter as _0x23ed5e}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x995671,_0x59931a){super(_0x995671),this['_enabledCommands']=_0x59931a,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 _0x1c612b of this['editor']['commands']['commands']())_0x1c612b['affectsData']&&!this['_enabledCommands']['has'](_0x1c612b)&&_0x1c612b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5dc1aa of this['editor']['commands']['commands']())_0x5dc1aa['affectsData']&&!this['_enabledCommands']['has'](_0x5dc1aa)&&_0x5dc1aa['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x1aedc6,_0x122e8f){super(_0x1aedc6),this['_suggestions']=_0x122e8f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x33ab3e){const _0x59b27c=this['_suggestions']['get'](_0x33ab3e);if(!_0x59b27c)throw new _0x34c45c('track-changes-accept-suggestion-not-found',this);const _0xae1f48=_0x59b27c['getRanges']();this['editor']['model']['canEditAt'](_0xae1f48)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x59b27c);}}class O extends ts{['_suggestions'];constructor(_0x514c51,_0x3156fe){super(_0x514c51),this['_suggestions']=_0x3156fe,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x345243){const _0xa62900=this['_suggestions']['get'](_0x345243);if(!_0xa62900)throw new _0x34c45c('track-changes-discard-suggestion-not-found',this);const _0xfb2e26=_0xa62900['getRanges']();this['editor']['model']['canEditAt'](_0xfb2e26)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xa62900);}}function ls(_0x4787ac,_0x467c49){let _0x40ad79='';return _0x40ad79+=_0x4787ac['split']('*')['map']((_0x434952,_0x531201)=>_0x531201%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x434952)+'</span>':nn(_0x434952))['join'](''),_0x467c49&&(_0x40ad79+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x467c49['value']+'\x22\x20title=\x22'+_0x467c49['title']+'\x22></span>'),_0x40ad79;}function nn(_0x127909){const _0x43f2d4=document['createElement']('span');return _0x43f2d4['innerText']=_0x127909,_0x43f2d4['innerHTML'];}function ss(_0x2560d9){return _0x2560d9['sort']((_0x18002f,_0x56b2bf)=>'deletion'==_0x18002f['type']&&'deletion'!=_0x56b2bf['type']?-0x1:'deletion'!=_0x18002f['type']&&'deletion'==_0x56b2bf['type']?0x1:0x0);}function to(_0x2ab3a4,_0x169f20){let _0x4bb530,_0xb41192=0x0;const _0x255ff0=[],_0x5fd9b1=_0x169f20['schema'];for(;_0xb41192<_0x2ab3a4['length'];){const _0xb2fd11=_0x2ab3a4[_0xb41192],_0x37c18f=_0x2ab3a4[_0xb41192+0x1];_0x4bb530||(_0x4bb530=_0x169f20['createPositionBefore'](_0xb2fd11)),on(_0x169f20,_0xb2fd11,_0x37c18f)||(_0x255ff0['push'](_0x169f20['createRange'](_0x4bb530,_0x5fd9b1['isObject'](_0xb2fd11)?_0x169f20['createPositionAfter'](_0xb2fd11):_0x169f20['createPositionAt'](_0xb2fd11,'end'))),_0x4bb530=null),_0xb41192++;}return _0x255ff0;}function on(_0x1f98b4,_0x323515,_0xde40ff){if(!_0xde40ff)return!0x1;const _0x763d27=_0x1f98b4['createPositionAfter'](_0x323515),_0x3b0522=_0x1f98b4['createPositionBefore'](_0xde40ff);return _0x763d27['isTouching'](_0x3b0522);}function rs(_0x216b0b,_0x2308b8,_0x23bbbe){for(;_0x23bbbe['length'];){const _0x3824e5=_0x23bbbe['splice'](0x0,0x64);_0x216b0b['change'](()=>{for(const _0x4c3491 of _0x3824e5)_0x4c3491['isInContent']&&_0x2308b8['execute'](_0x4c3491['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x5a7b7,_0x4ec259,_0x368292){super(_0x5a7b7),this['_command']=_0x4ec259,this['_suggestions']=_0x368292,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x232c1f=Array['from'](this['_suggestions']['values']())['some'](_0x577d7d=>_0x577d7d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x232c1f;}['execute'](){const _0x532864=ss(Array['from'](this['_suggestions']['values']()));for(const _0x45806c of _0x532864){const _0x40fb78=_0x45806c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x40fb78))return;}rs(this['editor']['model'],this['_command'],_0x532864);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x48e1fe,_0x2bd3b1,_0x1196e2){super(_0x48e1fe),this['_command']=_0x2bd3b1,this['_suggestions']=_0x1196e2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x524136=this['editor']['model']['document']['selection'],_0x65b031=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xbb63ce,_0x5b2a3e){const _0x40e0a1=Array['from'](_0xbb63ce['getRanges']()),_0x788ae0=new Set();for(const _0x21a7d3 of _0x5b2a3e)if(_0x21a7d3['isInContent']){for(const _0x38972d of _0x40e0a1)for(const _0x19a714 of _0x21a7d3['getRanges']())(_0x38972d['isIntersecting'](_0x19a714)||_0xbb63ce['isCollapsed']&&!_0x21a7d3['isMultiRange']&&_0x21a7d3['next']&&_0x19a714['end']['isTouching'](_0x38972d['start']))&&_0x788ae0['add'](_0x21a7d3);}return _0x788ae0;}(_0x524136,_0x65b031),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4272ba=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1c7afc of _0x4272ba){const _0x478713=_0x1c7afc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x478713))return;}rs(this['editor']['model'],this['_command'],_0x4272ba);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x349c89(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4db4e5,_0x424fa9){super(),this['id']=_0x424fa9['id'],this['type']=_0x424fa9['type'],this['subType']=_0x424fa9['subType']||null,this['author']=_0x424fa9['author'],this['creator']=_0x424fa9['creator']||_0x424fa9['author'],this['isExternal']=Boolean(_0x424fa9['attributes']&&_0x424fa9['attributes']['@external']),this['data']=null,this['_model']=_0x4db4e5,this['_onAccept']=_0x424fa9['onAccept'],this['_onDiscard']=_0x424fa9['onDiscard'],this['_onAttributesChange']=_0x424fa9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x424fa9['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 _0x364081=this;for(;_0x364081['previous'];)_0x364081=_0x364081['previous'];return _0x364081;}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'](_0x41f0e0){this['_markerNames']['add'](_0x41f0e0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1b4f73=>this['_model']['markers']['get'](_0x1b4f73))['filter'](_0x2e5ada=>_0x2e5ada);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x7aca6c=>{for(const _0x98eb1b of this['getMarkers']())_0x7aca6c['removeMarker'](_0x98eb1b);}),this['_markerNames']['clear']();}['removeMarker'](_0x1a0284){this['_model']['change'](_0x23585a=>{_0x23585a['removeMarker'](_0x1a0284);}),this['_markerNames']['delete'](_0x1a0284);}['addRange'](_0x3b7cfe){const _0x2f888a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2f888a),this['_model']['change'](_0x56fd7d=>{_0x56fd7d['addMarker'](_0x2f888a,{'range':_0x3b7cfe,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x29df8a){for(const _0x340e63 of this['getRanges']())if(_0x340e63['isIntersecting'](_0x29df8a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2841de=>_0x2841de['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x596df5,_0x2cfe8b)=>[..._0x596df5,..._0x2cfe8b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5506e3=this['getRanges']();if(0x1!=_0x5506e3['length'])return null;const _0x88b16e=_0x5506e3[0x0],_0x4a5f75=_0x88b16e['start']['nodeAfter'],_0x3fa121=_0x88b16e['end']['nodeBefore'];return _0x4a5f75 instanceof _0x3d9d9f?_0x4a5f75!=_0x3fa121?null:_0x4a5f75: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 _0xd0f10e=[];let _0x1b3a2b=this['head'];for(;_0x1b3a2b;)_0xd0f10e['push'](_0x1b3a2b),_0x1b3a2b=_0x1b3a2b['next'];return _0xd0f10e;}['setAttribute'](_0x502bae,_0xa7b82f){const _0x13cac9=_0x18ab1(this['attributes']);_0x4fe76f(_0x13cac9,_0x502bae,_0xa7b82f),_0x24b8a4(_0x13cac9,this['attributes'])||(this['attributes']=_0x13cac9,this['_onAttributesChange'](_0x13cac9));}['removeAttribute'](_0x202927){const _0x27193c=_0x18ab1(this['attributes']);_0x3653b6(_0x27193c,_0x202927),_0x24b8a4(_0x27193c,this['attributes'])||(this['attributes']=_0x27193c,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 _0x5b34d0()['substr'](0x1,0x5);}}function o(_0x43987e,_0x34860c,_0x13bc7c){const t=_0x43987e['t'];switch(_0x34860c){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',_0x13bc7c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x13bc7c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x13bc7c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x13bc7c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x13bc7c);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',_0x13bc7c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x13bc7c);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',_0x13bc7c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x13bc7c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x13bc7c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x13bc7c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x13bc7c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x13bc7c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x13bc7c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x13bc7c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x13bc7c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x13bc7c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x13bc7c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x13bc7c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x13bc7c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x13bc7c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x13bc7c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x13bc7c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x13bc7c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x13bc7c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x13bc7c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x13bc7c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x13bc7c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x13bc7c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x13bc7c);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'},_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x13bc7c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x13bc7c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x13bc7c);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'},_0x13bc7c);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'},_0x13bc7c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x13bc7c);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x13bc7c);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x13bc7c);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x13bc7c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x34860c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2d9552,_0x36097d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2d9552,this['_locale']=_0x36097d;}['getDescriptions'](_0x7f691){const _0x4181cd=[],_0x57cb36=new Set(),_0x5741b9=new Set();for(let _0xab70c6=0x0;_0xab70c6<_0x7f691['length'];_0xab70c6++){const _0x5e175a=_0x7f691[_0xab70c6];if(!_0x5e175a['isInContent'])continue;const _0x5d3117=this['_handleCustomCallbackDescription'](_0x5e175a);if(_0x5d3117){if(null!=_0x5e175a['subType']){if(_0x57cb36['has'](_0x5e175a['subType']))continue;_0x57cb36['add'](_0x5e175a['subType']);}_0x4181cd['push'](_0x5d3117);}else{if('attribute'!=_0x5e175a['type'])'insertion'!=_0x5e175a['type']&&'deletion'!=_0x5e175a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4181cd,_0x5e175a,_0x7f691[_0xab70c6+0x1]);else{const _0x9e6257=_0x5e175a['data']['key'];if(_0x5741b9['has'](_0x9e6257))continue;_0x5741b9['add'](_0x5e175a['data']['key']),_0x9e6257==m?this['_handleRenameSuggestionDescription'](_0x4181cd,_0x5e175a):this['_handleAttributeSuggestionDescription'](_0x4181cd,_0x5e175a);}}}return this['_resolveDescriptionItems'](_0x4181cd);}['registerDescriptionCallback'](_0x4a4e15){this['_customCallbacks']['push'](_0x4a4e15);}['registerElementLabel'](_0x14f5e8,_0xe82146,_0x5376c9=_0x19cb17['normal']){'function'==typeof _0x14f5e8?_0x4312dc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x14f5e8,'label':_0xe82146,'priority':_0x5376c9}):this['_itemLabels']['set'](_0x14f5e8,_0xe82146);}['registerAttributeLabel'](_0x3431db,_0x29b49b){this['_attributeLabels']['set'](_0x3431db,_0x29b49b);}['getItemLabel'](_0x5ae353,_0x37c650=0x1){let _0x126ef5;for(const _0x1c5841 of this['_itemLabelsCallbacks'])if(_0x1c5841['matchingCallback'](_0x5ae353)){_0x126ef5=_0x1c5841['label'];break;}return _0x126ef5||(_0x126ef5=this['_itemLabels']['get'](_0x5ae353['name'])),_0x126ef5?_0x126ef5(_0x37c650):0x1!==_0x37c650?_0x37c650+'\x20'+_0x5ae353['name']+'s':''+_0x5ae353['name'];}['_addDescriptionItems'](_0x54575e,_0x319796){const _0x524e60=_0x319796['getFirstRange']()['getWalker'](),_0x54ed0b='insertion'==_0x319796['type']?'add':'remove';for(const _0x5ca1a5 of _0x524e60){const _0x30b1f8=_0x5ca1a5['item'],_0x14b6e5=_0x54575e[_0x54575e['length']-0x1];if(_0x30b1f8['is']('$textProxy'))_0x14b6e5&&_0x14b6e5['type']['indexOf']('Container')>-0x1&&_0x54575e['pop'](),_0x14b6e5&&'text'==_0x14b6e5['type']?_0x14b6e5[_0x54ed0b]+=_0x30b1f8['data']:_0x54575e['push']({'type':'text','add':'add'==_0x54ed0b?_0x30b1f8['data']:'','remove':'remove'==_0x54ed0b?_0x30b1f8['data']:''});else{if(this['_schema']['isObject'](_0x30b1f8)){const _0x1e8a03=_0x30b1f8;if(_0x14b6e5&&_0x14b6e5['type']['indexOf']('Container')>-0x1&&_0x54575e['pop'](),'elementEnd'==_0x5ca1a5['type'])continue;_0x14b6e5&&_0x14b6e5['type']==_0x54ed0b+'Object'&&_0x14b6e5['element']['name']==_0x1e8a03['name']?_0x14b6e5['quantity']++:_0x54575e['push']({'type':_0x54ed0b+'Object','element':_0x1e8a03,'quantity':0x1}),_0x524e60['skip'](_0x69dbba=>!('elementEnd'==_0x69dbba['type']&&_0x69dbba['item']==_0x30b1f8));}else{if(this['_schema']['checkChild'](_0x30b1f8,'$text')||_0x30b1f8['is']('element','softBreak')){const _0x33345b=_0x30b1f8;if('add'==_0x54ed0b&&'elementStart'==_0x5ca1a5['type']||'remove'==_0x54ed0b&&'elementEnd'==_0x5ca1a5['type'])continue;if(_0x14b6e5&&-0x1==_0x14b6e5['type']['indexOf']('Container')){'text'==_0x14b6e5['type']&&(_0x14b6e5[_0x54ed0b]+='\x0a');continue;}let _0x29fdf1;if(_0x29fdf1='add'==_0x54ed0b?_0x33345b['nextSibling']&&!this['_schema']['isObject'](_0x33345b['nextSibling'])?_0x33345b['nextSibling']:null:_0x33345b['previousSibling']&&!this['_schema']['isObject'](_0x33345b['previousSibling'])?_0x33345b['previousSibling']:null,_0x33345b['isEmpty']||_0x29fdf1&&_0x29fdf1['isEmpty']){const _0x361039=_0x29fdf1&&_0x29fdf1['isEmpty']?_0x29fdf1:_0x33345b;_0x14b6e5&&_0x14b6e5['type']==_0x54ed0b+'EmptyContainer'&&_0x14b6e5['element']['name']==_0x361039['name']?_0x14b6e5['quantity']++:_0x54575e['push']({'type':_0x54ed0b+'EmptyContainer','element':_0x361039,'quantity':0x1});}else _0x54575e['push']({'type':_0x54ed0b+'Container','element':_0x33345b});}}}}}['_resolveDescriptionItems'](_0x525a47){const _0x435e89=this['_locale'],_0x214f14=[],_0x4d63af=[],_0x25bed0=[];for(const _0x43506d of _0x525a47)switch(_0x43506d['type']){case'text':if(_0x43506d['add']=_0x43506d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x43506d['remove']=_0x43506d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x43506d['add']&&''!=_0x43506d['remove']){_0x214f14['push']({'type':'replace','content':o(_0x435e89,'REPLACE_TEXT',['\x22'+_0x43506d['remove']+'\x22','\x22'+_0x43506d['add']+'\x22'])});continue;}if(null!=_0x43506d['add']['match'](/^ +$/)){_0x214f14['push']({'type':'insertion','content':o(_0x435e89,'*Insert:*\x20%0',o(_0x435e89,'ELEMENT_SPACE',_0x43506d['add']['length']))});continue;}if(null!=_0x43506d['remove']['match'](/^ +$/)){_0x214f14['push']({'type':'deletion','content':o(_0x435e89,'*Remove:*\x20%0',o(_0x435e89,'ELEMENT_SPACE',_0x43506d['remove']['length']))});continue;}if(''!=_0x43506d['add']){_0x214f14['push']({'type':'insertion','content':o(_0x435e89,'*Insert:*\x20%0','\x22'+_0x43506d['add']+'\x22')});continue;}_0x214f14['push']({'type':'deletion','content':o(_0x435e89,'*Remove:*\x20%0','\x22'+_0x43506d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x214f14['push']({'type':'insertion','content':o(_0x435e89,'*Insert:*\x20%0',this['getItemLabel'](_0x43506d['element'],_0x43506d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x214f14['push']({'type':'deletion','content':o(_0x435e89,'*Remove:*\x20%0',this['getItemLabel'](_0x43506d['element'],_0x43506d['quantity']))});continue;case'addContainer':_0x214f14['push']({'type':'insertion','content':o(_0x435e89,'*Split:*\x20%0',this['getItemLabel'](_0x43506d['element'],_0x43506d['quantity']))});continue;case'removeContainer':_0x214f14['push']({'type':'deletion','content':o(_0x435e89,'*Merge:*\x20%0',this['getItemLabel'](_0x43506d['element'],_0x43506d['quantity']))});continue;case'addFormat':_0x4d63af['push'](_0x43506d['key']);continue;case'removeFormat':_0x25bed0['push'](_0x43506d['key']);continue;default:_0x214f14['push'](_0x43506d);}if(_0x4d63af['length']){const _0x30e667=_0x4d63af['map'](_0x3bc2bd=>this['_attributeLabels']['has'](_0x3bc2bd)?this['_attributeLabels']['get'](_0x3bc2bd):_0x3bc2bd)['join'](',\x20');_0x214f14['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x30e667)});}if(_0x25bed0['length']){const _0x5a7049=_0x25bed0['map'](_0x133e3f=>this['_attributeLabels']['has'](_0x133e3f)?this['_attributeLabels']['get'](_0x133e3f):_0x133e3f)['join'](',\x20');_0x214f14['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5a7049)});}return _0x214f14;}['_handleCustomCallbackDescription'](_0x48eb2d){for(const _0x3f398d of this['_customCallbacks']){const _0x58d2af=_0x3f398d(_0x48eb2d);if(_0x58d2af&&'type'in _0x58d2af)return _0x58d2af;}}['_handleAttributeSuggestionDescription'](_0x527cd5,_0x582784){const _0xaf4ff3=_0x582784['data'],_0x36fe8f=void 0x0===_0xaf4ff3['newValue']?'removeFormat':'addFormat';_0x527cd5['push']({'type':_0x36fe8f,'key':_0xaf4ff3['key']});}['_handleRenameSuggestionDescription'](_0x5b4772,_0x354684){_0x5b4772['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x354684['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xec2f0d,_0x56826c,_0x3ae70d){if(this['_addDescriptionItems'](_0xec2f0d,_0x56826c),_0x3ae70d&&_0x3ae70d['getFirstRange']()&&!_0x56826c['getFirstRange']()['end']['isEqual'](_0x3ae70d['getFirstRange']()['start'])){const _0x1b2ce2=_0xec2f0d[_0xec2f0d['length']-0x1],_0x3aedf7='insertion'==_0x56826c['type']?'add':'remove';_0x1b2ce2&&'text'==_0x1b2ce2['type']&&(_0x1b2ce2[_0x3aedf7]+='\x0a');}}}class V extends _0x9c8a48{['afterInit'](){const _0x2aea4f=this['editor'],_0x39762f=_0x2aea4f['plugins']['get']('TrackChangesEditing');_0x2aea4f['commands']['get']('showAIAssistant')&&_0x39762f['enableCommand']('showAIAssistant');}}class U extends _0x9c8a48{['afterInit'](){const _0x421d41=this['editor'],_0x5c496e=_0x421d41['locale'];if(!_0x421d41['plugins']['has']('AlignmentEditing'))return;const _0xfd308f=_0x421d41['plugins']['get']('TrackChangesEditing');_0xfd308f['enableDefaultAttributesIntegration']('alignment'),_0xfd308f['registerBlockAttribute']('alignment'),_0xfd308f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5c496e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18c7aa=this['editor'],_0x283c40=_0x18c7aa['locale'];_0x18c7aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d2910=>{if('formatBlock'!=_0x2d2910['type'])return;const {data:_0x335766}=_0x2d2910;if(_0x335766&&'alignment'==_0x335766['commandName']){const _0x137f0a=_0x335766['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x283c40,'*Format:*\x20%0',function(_0x89c46d){switch(_0x89c46d){case'left':return o(_0x283c40,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x283c40,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x283c40,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x283c40,'FORMAT_JUSTIFY_TEXT');}}(_0x137f0a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x9c8a48{['afterInit'](){const _0x2ec929=this['editor'],_0x1899f2=_0x2ec929['plugins']['get']('TrackChangesEditing'),_0x12b943=_0x2ec929['locale'];for(const _0x384ddd of ti){if(!_0x2ec929['plugins']['has'](_0x384ddd))continue;const _0x27922a=_0x384ddd['slice'](0x0,-0x7)['toLowerCase'](),_0x48ce36='FORMAT_'+_0x27922a['toUpperCase']();_0x1899f2['enableDefaultAttributesIntegration'](_0x27922a),_0x1899f2['registerInlineAttribute'](_0x27922a),_0x1899f2['descriptionFactory']['registerAttributeLabel'](_0x27922a,o(_0x12b943,_0x48ce36));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22853e=this['editor'],_0x45f92c=_0x22853e['locale'],_0x71261f=_0x22853e['plugins']['get']('TrackChangesEditing');function _0x310886(_0x2df28a,_0x42c9b9){_0x71261f['descriptionFactory']['registerDescriptionCallback'](_0x3c5f87=>{if('formatInline'!=_0x3c5f87['type'])return;const {data:_0x58905d}=_0x3c5f87;return _0x58905d&&_0x58905d['commandName']===_0x2df28a?_0x58905d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45f92c,'*Format:*\x20%0',_0x42c9b9)}:{'type':'format','content':o(_0x45f92c,'*Remove\x20format:*\x20%0',_0x42c9b9)}:void 0x0;});}_0x310886('bold',o(_0x45f92c,'FORMAT_BOLD')),_0x310886('italic',o(_0x45f92c,'FORMAT_ITALIC')),_0x310886('underline',o(_0x45f92c,'FORMAT_UNDERLINE')),_0x310886('code',o(_0x45f92c,'FORMAT_CODE')),_0x310886('strikethrough',o(_0x45f92c,'FORMAT_STRIKETHROUGH')),_0x310886('subscript',o(_0x45f92c,'FORMAT_SUBSCRIPT')),_0x310886('superscript',o(_0x45f92c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x9c8a48{['afterInit'](){const _0x5019f7=this['editor'],_0x193ce6=_0x5019f7['locale'];if(!_0x5019f7['plugins']['has']('BlockQuoteEditing'))return;const _0x52d4a9=_0x5019f7['plugins']['get']('TrackChangesEditing'),_0x5c546e=this['editor']['commands']['get']('blockQuote');_0x52d4a9['enableCommand']('blockQuote',(_0xce2b6a,_0x23db18={})=>{const _0x274ea5=this['editor']['model']['document']['selection'],_0x4c2e0e=_0x23db18&&void 0x0!==_0x23db18['forceValue']?_0x23db18['forceValue']:!_0x5c546e['value'];let _0x49232a=[];if(_0x4c2e0e){const _0x4108f8=Array['from'](_0x274ea5['getSelectedBlocks']())['filter'](_0xc613d9=>oo(_0xc613d9)||function(_0x28c155,_0x28f725){const _0x2950a1=_0x28f725['checkChild'](_0x28c155['parent'],'blockQuote'),_0x98dcf8=_0x28f725['checkChild'](['$root','blockQuote'],_0x28c155);return _0x2950a1&&_0x98dcf8;}(_0xc613d9,this['editor']['model']['schema']));_0x49232a=to(_0x4108f8,_0x5019f7['model']);}else{const _0x49d3b0=Array['from'](_0x274ea5['getSelectedBlocks']())['filter'](_0x3b1299=>oo(_0x3b1299));_0x49232a=to(_0x49d3b0,_0x5019f7['model']);}_0x5019f7['model']['change'](()=>{for(const _0x2498c1 of _0x49232a)_0x52d4a9['markBlockFormat'](_0x2498c1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c2e0e}]});});}),_0x52d4a9['descriptionFactory']['registerDescriptionCallback'](_0x5daa8f=>{const {data:_0x307eef}=_0x5daa8f;if(_0x307eef&&'blockQuote'==_0x307eef['commandName']){const _0x416224=o(_0x193ce6,'ELEMENT_BLOCK_QUOTE');return _0x307eef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x193ce6,'*Set\x20format:*\x20%0',_0x416224)}:{'type':'format','content':o(_0x193ce6,'*Remove\x20format:*\x20%0',_0x416224)};}});}}function oo(_0x31d97a){return'blockQuote'==_0x31d97a['parent']['name'];}class L extends _0x9c8a48{['afterInit'](){const _0x4788f3=this['editor'];_0x4788f3['plugins']['has']('CaseChange')&&(_0x4788f3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4788f3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4788f3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x9c8a48{['afterInit'](){const _0x2415da=this['editor'];_0x2415da['commands']['get']('ckbox')&&_0x2415da['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x9c8a48{['afterInit'](){const _0x3bdc62=this['editor'];if(!_0x3bdc62['plugins']['has']('CodeBlock'))return;const _0x20b231=_0x3bdc62['plugins']['get']('TrackChangesEditing'),_0x2d3c34=_0x3bdc62['locale'],_0x4ba499=_0x3bdc62['config']['get']('codeBlock')['languages'],_0x4522f5=_0x3bdc62['commands']['get']('codeBlock');_0x20b231['enableCommand']('indentCodeBlock'),_0x20b231['enableCommand']('outdentCodeBlock'),_0x20b231['enableCommand']('codeBlock',(_0x27852d,_0x1457ab={})=>{const _0x1f7c77=_0x3bdc62['model'],_0x4e653a=_0x3bdc62['model']['document']['selection'],_0x563fbe=_0x1457ab&&void 0x0!==_0x1457ab['forceValue']?_0x1457ab['forceValue']:!_0x4522f5['value'];let _0x2f68ae;_0x1457ab['language']||(_0x1457ab['language']=_0x4ba499[0x0]['language']),_0x2f68ae=_0x563fbe?Array['from'](_0x4e653a['getSelectedBlocks']())['filter'](_0x30cbf4=>eo(_0x30cbf4)||function(_0x32e89b,_0x4cc5cf){if(_0x32e89b['is']('rootElement')||_0x4cc5cf['isLimit'](_0x32e89b))return!0x1;return _0x4cc5cf['checkChild'](_0x32e89b['parent'],'codeBlock');}(_0x30cbf4,_0x1f7c77['schema'])):Array['from'](_0x4e653a['getSelectedBlocks']())['filter'](_0x233ee5=>eo(_0x233ee5));const _0x4b36d0=to(_0x2f68ae,_0x1f7c77);_0x1f7c77['change'](()=>{for(const _0x385c35 of _0x4b36d0)_0x20b231['markBlockFormat'](_0x385c35,{'commandName':'codeBlock','commandParams':[{..._0x1457ab,'forceValue':_0x563fbe}],'formatGroupId':'blockName'});});}),(_0x20b231['descriptionFactory']['registerElementLabel']('codeBlock',_0x597b3a=>o(_0x2d3c34,'ELEMENT_CODE_BLOCK',_0x597b3a)),_0x20b231['descriptionFactory']['registerDescriptionCallback'](_0x2a8420=>{if('formatBlock'!=_0x2a8420['type'])return;const _0x10d0c0=_0x2d3c34['t'],{data:_0x5d88cc}=_0x2a8420;if(!_0x5d88cc||'codeBlock'!=_0x5d88cc['commandName'])return;const _0x479688=_0x5d88cc['commandParams'][0x0]['language'],_0xf05011=_0x10d0c0(_0x4ba499['find'](_0x33f728=>_0x33f728['language']===_0x479688)['label'])['toLowerCase']();return _0x5d88cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d3c34,'*Set\x20format:*\x20%0',o(_0x2d3c34,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xf05011+')')}:{'type':'format','content':o(_0x2d3c34,'*Remove\x20format:*\x20%0',o(_0x2d3c34,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x45b449){return'codeBlock'==_0x45b449['name'];}class q extends _0x9c8a48{['afterInit'](){const _0x5dd01e=this['editor'];if(!_0x5dd01e['plugins']['has']('CommentsEditing'))return;_0x5dd01e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x482d01,_0x45b279,_0x13f716){const _0x99e72b=[];for(const _0x17370e of _0x45b279['getItems']())_0x17370e['hasAttribute'](_0x482d01)&&_0x99e72b['push'](_0x13f716['createRangeOn'](_0x17370e));return _0x99e72b;}function _e(_0x5173da,_0x1c713c,{showActiveMarker:_0x8c2bf6=!0x0}={}){const _0xb7b63f=_0x5173da['plugins']['get']('TrackChangesEditing');return(_0x40366e,_0x334724,_0x31a470)=>{if(!_0x31a470['consumable']['test'](_0x334724['markerRange'],_0x40366e['name']))return;const _0x53200b=_0x334724['markerRange']['getWalker'](),_0xb8f5d3=_0x334724['markerRange']['start'],_0x1a6eed=_0x5173da['model']['schema'];let _0x546616=null,_0x530dda=null,_0x335698=!0x1,_0x3a43a2=!0x1;for(const _0x4b882b of _0x53200b){const _0x3ccc01=_0x4b882b['item'];_0x335698=_0x335698||_0x1a6eed['isContent'](_0x3ccc01);const _0x1f6b9a=_0x31a470['mapper']['toViewElement'](_0x3ccc01);if(_0x1f6b9a&&_0x1f6b9a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b882b['type']&&(_0x1a6eed['isBlock'](_0x3ccc01)&&!_0x1a6eed['isLimit'](_0x3ccc01)&&(_0x3ccc01['nextSibling']||_0xb8f5d3['isAtEnd']?_0x546616&&_0x546616['parent']==_0x3ccc01||(_0x546616=_0x3ccc01,_0x59760d(_0x4b882b['previousPosition']),_0x3a43a2=!0x0):_0x530dda=_0x530dda||_0x4b882b['previousPosition']));}function _0x59760d(_0x42355c){const {authorId:_0x2d0941}=_0xb7b63f['_splitMarkerName'](_0x334724['markerName']),_0x58800a=_0x31a470['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c713c,'data-author-id':_0x2d0941}),_0x39459c=_0x31a470['mapper']['toViewPosition'](_0x42355c);_0x8c2bf6&&_0xb7b63f['activeMarkers']['includes'](_0x334724['markerName'])&&_0x31a470['writer']['addClass']('ck-suggestion-marker--active',_0x58800a),_0x31a470['writer']['insert'](_0x39459c,_0x58800a),_0x31a470['mapper']['bindElementToMarker'](_0x58800a,_0x334724['markerName']);}_0x335698||_0x3a43a2||!_0x530dda||_0x59760d(_0x530dda);};}class z extends _0x9c8a48{static get['requires'](){return[_0x29f30d];}['init'](){const _0x1d98ff=this['editor'],_0x591d13=_0x1d98ff['plugins']['get']('TrackChangesEditing');_0x591d13['enableCommand']('delete');const _0x59a152=_0x1d98ff['commands']['get']('deleteForward');_0x591d13['enableCommand']('deleteForward',(_0x168527,_0x18c5b9={})=>{const _0x540a63=_0x1d98ff['model']['createSelection'](_0x1d98ff['model']['document']['selection']);_0x540a63['isCollapsed']&&_0x1d98ff['model']['modifySelection'](_0x540a63,{'direction':'forward','unit':_0x18c5b9['unit']});const _0x333f98=_0x540a63['getFirstRange'](),_0x3b93b5=_0x7a70a6['fromRange'](_0x333f98);let _0x5d72e4;_0x168527(_0x18c5b9),_0x5d72e4='$graveyard'==_0x3b93b5['root']['rootName']?_0x1d98ff['model']['createRange'](_0x333f98['start']):_0x1d98ff['model']['createRange'](_0x3b93b5['start'],_0x3b93b5['end']),_0x3b93b5['detach'](),_0x1d98ff['model']['enqueueChange'](_0x59a152['buffer']['batch'],_0x2ceffe=>{_0x59a152['buffer']['lock'](),_0x2ceffe['setSelection'](_0x2ceffe['createRange'](_0x5d72e4['end'])),_0x59a152['buffer']['unlock']();});}),_0x1d98ff['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1d98ff,'merge'),{'priority':'high'}),_0x1d98ff['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x11ade8,_0x53cfe6,_0x245afa)=>{_0x245afa['options']['showSuggestionHighlights']&&_e(_0x1d98ff,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x11ade8,_0x53cfe6,_0x245afa);},{'priority':'high'}),_0x1d98ff['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4d15e6,_0x44cc2d,_0x15c4e8)=>{const _0x2fc47b=_0x15c4e8['mapper']['markerNameToElements'](_0x44cc2d['markerName']);if(_0x2fc47b){for(const _0x991a1 of _0x2fc47b)_0x991a1['is']('uiElement')&&(_0x15c4e8['mapper']['unbindElementFromMarkerName'](_0x991a1,_0x44cc2d['markerName']),_0x15c4e8['writer']['remove'](_0x991a1));}},{'priority':'high'});}}class K extends _0x9c8a48{['afterInit'](){const _0x32e194=this['editor'];if(!_0x32e194['plugins']['has']('ListEditing'))return;const _0xd63ddd=_0x32e194['locale'],_0xd2e16e=_0x32e194['plugins']['get']('TrackChangesEditing'),_0x1a1840=_0x32e194['plugins']['has']('TodoListEditing'),_0x404e77=!!_0x32e194['config']['get']('list.multiBlock');function _0x30574f(_0x23b0ad){return{'type':'format','content':''+o(_0xd63ddd,'*Set\x20format:*\x20%0',_0x23b0ad)};}function _0x14ccdf(_0x512ed8){return{'type':'format','content':''+o(_0xd63ddd,'*Remove\x20format:*\x20%0',_0x512ed8)};}_0xd2e16e['enableDefaultAttributesIntegration']('numberedList'),_0xd2e16e['enableDefaultAttributesIntegration']('bulletedList'),_0xd2e16e['enableDefaultAttributesIntegration']('customNumberedList'),_0xd2e16e['enableDefaultAttributesIntegration']('customBulletedList'),_0xd2e16e['enableDefaultAttributesIntegration']('indentList'),_0xd2e16e['enableDefaultAttributesIntegration']('outdentList'),_0xd2e16e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xd2e16e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xd2e16e['registerBlockAttribute']('listItemId'),_0xd2e16e['registerBlockAttribute']('listType'),_0xd2e16e['registerBlockAttribute']('listIndent'),_0x404e77&&(_0xd2e16e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xd2e16e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1a1840&&(_0xd2e16e['enableDefaultAttributesIntegration']('todoList'),_0xd2e16e['enableDefaultAttributesIntegration']('checkTodoList'),_0xd2e16e['registerBlockAttribute']('todoListChecked'),_0xd2e16e['descriptionFactory']['registerDescriptionCallback'](_0x544670=>{const {data:_0x3ddfcf}=_0x544670;if(_0x3ddfcf&&'todoListChecked'==_0x3ddfcf['key'])return{'type':'format','content':_0x3ddfcf['newValue']?o(_0xd63ddd,'*Check\x20item*'):o(_0xd63ddd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x7da278=>{if(_0x7da278['batch']['isUndo'])return!0x1;let _0x1e6fd1=!0x1;const _0x1fb978=_0xd2e16e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d7c9d=>'todoListChecked'===_0xd2e16e['_getAttributeKey'](_0x3d7c9d));for(const _0x252748 of _0x1fb978){'todo'!=_0x252748['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xd2e16e['_findSuggestions'](_0x252748['getFirstRange'](),'attribute')['find'](_0x385f9d=>'listType'===_0xd2e16e['_getAttributeKey'](_0x385f9d['suggestion']))||(_0x7da278['removeMarker'](_0x252748['getFirstMarker']()),_0x1e6fd1=!0x0));}return _0x1e6fd1;})),_0xd2e16e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xd63ddd,'FORMAT_INDENT'));const _0x37973e={'type':'format','content':''};_0xd2e16e['descriptionFactory']['registerDescriptionCallback'](_0x49bef9=>{const {data:_0x55d1fb}=_0x49bef9;if(!_0x55d1fb||'listType'!=_0x55d1fb['key'])return;let _0x19d42f=_0x49bef9['head'];for(;_0x19d42f;){if(_0x19d42f['data']&&(('listStyle'==_0x19d42f['data']['key']||'listMarkerStyle'==_0x19d42f['data']['key'])&&(_0x19d42f['data']['newValue']&&'default'!=_0x19d42f['data']['newValue']||'default'!=_0x19d42f['data']['oldValue']&&!_0x55d1fb['newValue'])||!_0x404e77&&_0x19d42f['data']['key']==m))return _0x37973e;_0x19d42f=_0x19d42f['next'];}if(null==_0x55d1fb['newValue'])switch(_0x55d1fb['oldValue']){case'bulleted':return _0x14ccdf(o(_0xd63ddd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14ccdf(o(_0xd63ddd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14ccdf(o(_0xd63ddd,'ELEMENT_TODO_LIST'));}switch(_0x55d1fb['newValue']){case'bulleted':return _0x30574f(o(_0xd63ddd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30574f(o(_0xd63ddd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30574f(o(_0xd63ddd,'ELEMENT_TODO_LIST'));}}),_0xd2e16e['descriptionFactory']['registerDescriptionCallback'](_0x527b21=>{const {data:_0x4f946a}=_0x527b21;if(_0x4f946a&&'listIndent'==_0x4f946a['key'])return null==_0x4f946a['newValue']||null==_0x4f946a['oldValue']&&0x0==_0x4f946a['newValue']?_0x37973e:void 0x0;}),_0xd2e16e['descriptionFactory']['registerDescriptionCallback'](_0x373344=>{if('attribute'!=_0x373344['type'])return;const {data:_0x535655}=_0x373344;if(!_0x535655||'listItemId'!=_0x535655['key'])return;const _0x1829fb=Ee(_0x373344);return'newValue'==_0x1829fb?{'type':'format','content':o(_0xd63ddd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1829fb?{'type':'format','content':o(_0xd63ddd,'*Split:*\x20list\x20item')}:_0x37973e;}),_0x32e194['model']['document']['registerPostFixer'](_0x1c9ae1=>this['listItemIdFixer'](_0x1c9ae1)),_0x32e194['model']['document']['registerPostFixer'](_0x3c5716=>this['noTrackChangesFixer'](_0x3c5716)),_0x32e194['model']['document']['on']('change:data',(_0x47cd5b,_0x33c004)=>{if(_0x33c004['isUndo']||!_0x33c004['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2e783d){if(_0x2e783d['batch']['isUndo']||!_0x2e783d['batch']['isLocal'])return!0x1;let _0xe0d358=!0x1;const _0x434531=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7ac5d1=>_0x7ac5d1['data']&&'listItemId'==_0x7ac5d1['data']['key'])['filter'](_0x1fcab8=>_0x1fcab8['data']['newValue']&&_0x1fcab8['data']['oldValue']);for(const _0x4d2f6f of _0x434531)Ee(_0x4d2f6f)||(_0x2e783d['removeMarker'](_0x4d2f6f['getFirstMarker']()),_0xe0d358=!0x0);return _0xe0d358;}['noTrackChangesFixer'](_0x4a9dc9){if(_0x4a9dc9['batch']['isUndo']||!_0x4a9dc9['batch']['isLocal'])return!0x1;const _0x10f008=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x10f008['trackChangesCommand']['value'])return!0x1;let _0xdfff63=!0x1;const _0x49c9d6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x33977b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x106880=>'attribute'==_0x106880['type'])['filter'](_0x25fc9d=>_0x49c9d6['includes'](_0x25fc9d['attributeKey']));if(0x0==_0x33977b['length'])return _0xdfff63;for(const _0x126ddc of _0x33977b){const _0x32ed50=_0x10f008['_findSuggestions'](_0x126ddc['range'],'attribute')['filter'](_0x469a24=>!_0x469a24['meta']['isNextTo'])['map'](_0x502aeb=>_0x502aeb['suggestion'])['filter'](_0x5824c2=>{const _0x20ea61=_0x10f008['_getAttributeKey'](_0x5824c2);return _0x49c9d6['includes'](_0x20ea61);});if(_0x32ed50['length']){for(const _0x428861 of _0x32ed50)_0x4a9dc9['removeMarker'](_0x428861['getFirstMarker']());_0xdfff63=!0x0;}}return _0xdfff63;}['assureChains'](){const _0x50f4de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32468e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x19eb13;const _0x4036b9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x91f778=>{if(_0x91f778['data']['oldRange']||!_0x91f778['data']['newRange'])return null;if(!_0x91f778['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x449ed4}=_0x50f4de['_splitMarkerName'](_0x91f778['name']);if(!_0x50f4de['hasSuggestion'](_0x449ed4))return null;const _0x46baa8=_0x50f4de['getSuggestion'](_0x449ed4);return _0x32468e['includes'](_0x46baa8['data']['key']);})['map'](_0x587ea1=>{const {id:_0x4eda69}=_0x50f4de['_splitMarkerName'](_0x587ea1['name']),_0x8567e8=_0x50f4de['getSuggestion'](_0x4eda69);return _0x19eb13=_0x8567e8['attributes']['groupId'],_0x8567e8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4036b9['size'])return;const _0x2ad2a2=_0x50f4de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46d417=>'attribute'==_0x46d417['type']&&_0x46d417['data']&&_0x32468e['includes'](_0x46d417['data']['key'])&&_0x46d417['attributes']['groupId']!=_0x19eb13)['map'](_0x220a77=>({'listItem':_0x220a77['getFirstRange']()['start']['nodeAfter'],'groupId':_0x220a77['attributes']['groupId']})),_0x541471=new Set();for(const {groupId:_0x56b4cd,listItem:_0x4c3138}of _0x2ad2a2)_0x4036b9['has'](_0x4c3138)&&_0x541471['add'](_0x56b4cd);for(const _0x46bd17 of _0x50f4de['getSuggestions']())_0x541471['has'](_0x46bd17['attributes']['groupId'])&&_0x46bd17['setAttribute']('groupId',_0x19eb13);}['_supportLegacySuggestions'](){const _0xd2a0a9=this['editor'],_0x454fc5=_0xd2a0a9['locale'],_0x1068ee=_0xd2a0a9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1068ee['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x966e47,_0xb79a19){const _0x11c979=[];for(let _0x28f3ae of _0x966e47)_0x28f3ae['start']['nodeAfter']===_0x28f3ae['end']['parent']&&(_0x28f3ae=_0xd2a0a9['model']['createRange'](_0xd2a0a9['model']['createPositionAt'](_0x28f3ae['start']['nodeAfter'],0x0))),_0x11c979['push'](_0x28f3ae);_0xd2a0a9['model']['change'](_0x1071c2=>{const _0x30de74=_0xd2a0a9['model']['document']['selection'],_0x10b309=Array['from'](_0x30de74['getRanges']())['map'](_0x5e821e=>_0x7a70a6['fromRange'](_0x5e821e));_0x1071c2['setSelection'](_0x11c979),_0xd2a0a9['commands']['get'](_0xb79a19['commandName'])['refresh'](),_0xb79a19['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xd2a0a9['execute'](_0xb79a19['commandName'],..._0xb79a19['commandParams']),_0x1071c2['setSelection'](_0x10b309);for(const _0x17a8bf of _0x10b309)_0x17a8bf['detach']();});}),_0x1068ee['descriptionFactory']['registerElementLabel'](function(_0x419046){const _0x464bf7=!_0xd2a0a9['model']['schema']['isObject'](_0x419046),_0x2e60cf=_0x419046['previousSibling'],_0x29c178=_0x419046['nextSibling'],_0x422e83=_0x419046['getAttribute']('listItemId'),_0x41f5a1=!_0x2e60cf||_0x2e60cf['getAttribute']('listItemId')!==_0x422e83,_0x186c9c=!_0x29c178||_0x29c178['getAttribute']('listItemId')!==_0x422e83;return _0x464bf7&&Boolean(_0x422e83)&&_0x41f5a1&&_0x186c9c;},_0x50a395=>o(_0x454fc5,'ELEMENT_LIST_ITEM',_0x50a395));}['_registerLegacyDescription'](){const _0x58b827=this['editor'],_0x33b7b6=_0x58b827['locale'];function _0x553b70(_0x19df0f){const _0x3dcc55=_0x58b827['commands']['get']('bulletedList')['value'],_0x29d3d1=_0x58b827['commands']['get']('numberedList')['value'];return'numberedList'===_0x19df0f?_0x3dcc55:_0x29d3d1;}_0x58b827['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x47e02d){if('formatBlock'!=_0x47e02d['type'])return;const {data:_0x2cfe22}=_0x47e02d;if(!_0x2cfe22)return;let _0xe9b1db,_0x5b7a10,_0x503ff9,_0x32ac32;switch(_0x2cfe22['commandName']){case'bulletedList':_0x503ff9=_0x2cfe22['commandParams'][0x0]['forceValue'],_0x32ac32=_0x553b70(_0x2cfe22['commandName']),_0xe9b1db=_0x503ff9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32ac32&&_0x58b827['config']['get']('list.multiBlock')||(_0xe9b1db='*Change\x20to:*\x20%0'),_0x5b7a10={'type':'format','content':o(_0x33b7b6,_0xe9b1db,o(_0x33b7b6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x503ff9=_0x2cfe22['commandParams'][0x0]['forceValue'],_0x32ac32=_0x553b70(_0x2cfe22['commandName']),_0xe9b1db=_0x503ff9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32ac32&&_0x58b827['config']['get']('list.multiBlock')||(_0xe9b1db='*Change\x20to:*\x20%0'),_0x5b7a10={'type':'format','content':o(_0x33b7b6,_0xe9b1db,o(_0x33b7b6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xe9b1db='*Indent:*\x20%0',_0x5b7a10={'type':'format','content':o(_0x33b7b6,_0xe9b1db,o(_0x33b7b6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xe9b1db=function(_0x2ae71b){const _0x39f98b=_0x2ae71b['getFirstRange']();let _0x31f096=_0x39f98b['start']['nodeAfter'];for(;_0x31f096&&_0x39f98b['containsItem'](_0x31f096);){if(_0x31f096['getAttribute']('listIndent')>0x0)return!0x1;_0x31f096=_0x31f096['nextSibling'];}return!0x0;}(_0x47e02d)?o(_0x33b7b6,'*Format:*\x20remove\x20from\x20%0',o(_0x33b7b6,function(_0x38587d){return'ELEMENT_'+_0x38587d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x47e02d))):o(_0x33b7b6,'*Outdent:*\x20%0',o(_0x33b7b6,'ELEMENT_LIST_ITEM')),_0x5b7a10={'type':'format','content':_0xe9b1db};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2cfe22['multipleBlocks']&&(_0xe9b1db='*Merge:*\x20%0',_0x5b7a10={'type':'deletion','content':o(_0x33b7b6,_0xe9b1db,o(_0x33b7b6,'ELEMENT_LIST_ITEM'))});}return _0x5b7a10;});}}function Ee(_0x65364d){let _0x40b272=_0x65364d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x40b272;){const _0x279424=_0x40b272['getAttribute']('listItemId');if(!_0x279424)return!0x1;if(_0x279424==_0x65364d['data']['newValue'])return'newValue';if(_0x279424==_0x65364d['data']['oldValue'])return'oldValue';_0x40b272=_0x40b272['previousSibling'];}return!0x1;}class pe extends _0x9c8a48{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x120882=this['editor']['config']['get']('list.properties'),_0x39b353=this['editor']['plugins']['get']('TrackChangesEditing');_0x120882['styles']&&(_0x39b353['enableDefaultAttributesIntegration']('listStyle'),_0x39b353['registerBlockAttribute']('listStyle')),_0x120882['reversed']&&(_0x39b353['enableDefaultAttributesIntegration']('listReversed'),_0x39b353['registerBlockAttribute']('listReversed')),_0x120882['startIndex']&&(_0x39b353['enableDefaultAttributesIntegration']('listStart'),_0x39b353['registerBlockAttribute']('listStart'));const _0x43fc98={'type':'format','content':''};_0x39b353['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b115f=this['editor']['locale'];_0x39b353['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2b115f,'FORMAT_LIST_REVERSED')),_0x39b353['descriptionFactory']['registerDescriptionCallback'](_0x3d1fde=>{const {data:_0x1c2c45}=_0x3d1fde;if(_0x1c2c45&&'listReversed'==_0x1c2c45['key'])return null==_0x1c2c45['newValue']||0x0==_0x1c2c45['newValue']&&null==_0x1c2c45['oldValue']?_0x43fc98:void 0x0;}),_0x39b353['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2b115f,'FORMAT_LIST_START')),_0x39b353['descriptionFactory']['registerDescriptionCallback'](_0x5c19db=>{const {data:_0x5a5d59}=_0x5c19db;if(_0x5a5d59&&'listStart'==_0x5a5d59['key'])return null==_0x5a5d59['newValue']||0x1==_0x5a5d59['newValue']&&null==_0x5a5d59['oldValue']?_0x43fc98:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x19f932=>{if(_0x19f932['batch']['isUndo'])return!0x1;let _0x2868b6=!0x1;const _0xb317d0=_0x39b353['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fe9d4=>{const _0x37e3bc=_0x39b353['_getAttributeKey'](_0x1fe9d4);return'listStart'==_0x37e3bc||'listReversed'==_0x37e3bc;});for(const _0x414754 of _0xb317d0){const _0x1f9891=_0x414754['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1f9891||'customNumbered'==_0x1f9891)continue;_0x39b353['_findSuggestions'](_0x414754['getFirstRange'](),'attribute')['find'](_0x3e2fab=>'listType'==_0x39b353['_getAttributeKey'](_0x3e2fab['suggestion']))||(_0x19f932['removeMarker'](_0x414754['getFirstMarker']()),_0x2868b6=!0x0);}return _0x2868b6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x518a50){const _0x271562=this['editor']['locale'],{data:_0x7102b5}=_0x518a50,_0x1b803b={'type':'format','content':''};if(!_0x7102b5||'listStyle'!=_0x7102b5['key'])return;if(!_0x7102b5['oldValue'])return'default'==_0x7102b5['newValue']?_0x1b803b:{'type':'format','content':''+o(_0x271562,'*Set\x20format:*\x20%0',o(_0x271562,this['_getTranslationKeyForListStyle'](_0x7102b5['newValue'])))};if(!_0x7102b5['newValue']){if('default'==_0x7102b5['oldValue'])return _0x1b803b;let _0x2ca6b4=_0x518a50['head'];for(;_0x2ca6b4;){if(_0x2ca6b4['data']&&'listType'==_0x2ca6b4['data']['key']&&_0x2ca6b4['data']['newValue'])return _0x1b803b;_0x2ca6b4=_0x2ca6b4['next'];}return{'type':'format','content':''+o(_0x271562,'*Remove\x20format:*\x20%0',o(_0x271562,this['_getTranslationKeyForListStyle'](_0x7102b5['oldValue'])))};}if('default'!=_0x7102b5['newValue'])return{'type':'format','content':''+o(_0x271562,'*Set\x20format:*\x20%0',o(_0x271562,this['_getTranslationKeyForListStyle'](_0x7102b5['newValue'])))};let _0x4ee76f=_0x518a50['head'];for(;_0x4ee76f;){if(_0x4ee76f['data']&&'listType'==_0x4ee76f['data']['key']&&_0x4ee76f['data']['newValue']&&_0x4ee76f['data']['oldValue'])return _0x1b803b;_0x4ee76f=_0x4ee76f['next'];}return{'type':'format','content':o(_0x271562,'*Set\x20format:*\x20%0',o(_0x271562,'ELEMENT_'+_0x518a50['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x289bd0=this['editor'],_0x53e733=_0x289bd0['locale'];_0x289bd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd36f7=>{if('formatBlock'!=_0xd36f7['type'])return;const {data:_0x5cb2c8}=_0xd36f7;if(!_0x5cb2c8)return;let _0x351380,_0x39a7d7;switch(_0x5cb2c8['commandName']){case'listStyle':_0x351380='*Change\x20to:*\x20%0',_0x39a7d7={'type':'format','content':o(_0x53e733,_0x351380,o(_0x53e733,this['_getTranslationKeyForListStyle'](_0x5cb2c8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x351380=_0x5cb2c8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x39a7d7={'type':'format','content':o(_0x53e733,_0x351380)};break;case'listStart':_0x351380='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x39a7d7={'type':'format','content':o(_0x53e733,_0x351380,_0x5cb2c8['commandParams'][0x0]['startIndex'])};}return _0x39a7d7;});}['_getTranslationKeyForListStyle'](_0x5e82e5){return'ELEMENT_'+function(_0x13ed74){if(ye['includes'](_0x13ed74))return'bulleted';if(Se['includes'](_0x13ed74))return'numbered';return null;}(_0x5e82e5)['toUpperCase']()+'_LIST_'+_0x5e82e5['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x9c8a48{static get['requires'](){return[_0x29afc3];}['init'](){const _0xd295c0=this['editor'],_0x4b505c=_0xd295c0['plugins']['get']('TrackChangesEditing'),_0x2c4984=_0xd295c0['commands']['get']('enter');_0x4b505c['enableCommand']('enter',()=>{_0xd295c0['model']['change'](_0x215921=>{const _0x3b911c=_0xd295c0['model']['document']['selection'],_0x2c1c43=_0x3b911c['getFirstPosition'](),_0x15832b=_0x7a70a6['fromRange'](_0x3b911c['getFirstRange']());if(_0x2c4984['enterBlock'](_0x215921)){const _0x4a51b9=_0xd295c0['model']['createPositionAt'](_0x2c1c43['parent']['nextSibling'],0x0),_0x10a0be=_0x215921['createRange'](_0x2c1c43,_0x4a51b9);_0x4b505c['markInsertion'](_0x10a0be);}else _0x215921['setSelection'](_0x215921['createRange'](_0x15832b['end']));_0x15832b['detach'](),_0x2c4984['fire']('afterExecute',{'writer':_0x215921});});}),_0xd295c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xd295c0,'split'),{'priority':'high'}),_0xd295c0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x164550,_0x3aa604,_0x1a0ce6)=>{const _0x17ca98=_0x1a0ce6['mapper']['markerNameToElements'](_0x3aa604['markerName']);if(_0x17ca98){for(const _0x2517f1 of _0x17ca98)_0x2517f1['hasClass']('ck-suggestion-marker-split')&&(_0x1a0ce6['mapper']['unbindElementFromMarkerName'](_0x2517f1,_0x3aa604['markerName']),_0x1a0ce6['writer']['remove'](_0x2517f1));}},{'priority':'high'}),_0xd295c0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34ca94,_0xaa13ea,_0x4de6f5)=>{_0x4de6f5['options']['showSuggestionHighlights']&&_e(_0xd295c0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x34ca94,_0xaa13ea,_0x4de6f5);},{'priority':'high'});}}class X extends _0x9c8a48{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3ce4e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ce4e4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3ce4e4['enableCommand']('findNext'),_0x3ce4e4['enableCommand']('findPrevious'),_0x3ce4e4['enableCommand']('replace'),_0x3ce4e4['enableCommand']('replaceAll');}['handleFindCommand'](_0x3b3268,_0x41f4d8,_0x2dc2ff={}){const _0x160259=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3b3268(_0x2e1544=>{let _0x439320=('string'==typeof _0x41f4d8?_0x160259['findByTextCallback'](_0x41f4d8,_0x2dc2ff):_0x41f4d8)(_0x2e1544);Array['isArray'](_0x439320)&&(_0x439320={'results':_0x439320,'searchText':'string'==typeof _0x41f4d8?_0x41f4d8:''});const _0x486cf6=_0x439320['results']['filter'](_0x2ef0a1=>!0x1===this['_isInDeletionRange'](_0x2ef0a1,_0x2e1544['item']));return{..._0x439320,'results':_0x486cf6};},_0x2dc2ff);}['_isInDeletionRange'](_0x55ae82,_0x5dd2ef){const _0x130307=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5dd2ef,_0x55ae82['start']),this['editor']['model']['createPositionAt'](_0x5dd2ef,_0x55ae82['end']));for(const _0xc810a6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x130307['getIntersection'](_0xc810a6['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x9c8a48{['afterInit'](){const _0x249be9=this['editor']['locale'],_0x53ca90=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5ba870,commandName:_0x354ad0}of ro)this['editor']['plugins']['has'](_0x5ba870)&&(_0x53ca90['enableDefaultAttributesIntegration'](_0x354ad0),_0x53ca90['registerInlineAttribute'](_0x354ad0));_0x53ca90['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x249be9,'FORMAT_FONT_SIZE')),_0x53ca90['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x249be9,'FORMAT_FONT_FAMILY')),_0x53ca90['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x249be9,'FORMAT_FONT_COLOR')),_0x53ca90['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x249be9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57bbfe=this['editor'],_0x31de3a=_0x57bbfe['locale'];_0x57bbfe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x70f108=>{const _0x2bb62e=_0x31de3a['t'];if('formatInline'!=_0x70f108['type'])return;const {data:_0x2d6160}=_0x70f108;if(null!=_0x2d6160){if('fontSize'==_0x2d6160['commandName']){const _0x1c9f63=_0x2d6160['commandParams'][0x0]['value'];if(_0x1c9f63){const _0x498d62=_0x2bb62e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x37a97a=>_0x37a97a['model']==_0x1c9f63)['title'])['toLowerCase']();return{'type':'format','content':o(_0x31de3a,'*Set\x20font\x20size:*\x20%0',_0x498d62)};}return{'type':'format','content':o(_0x31de3a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2d6160['commandName']){const _0x5a09dd=_0x2d6160['commandParams'][0x0]['value'];return _0x5a09dd?{'type':'format','content':o(_0x31de3a,'*Set\x20font\x20family:*\x20%0',_0x5a09dd)}:{'type':'format','content':o(_0x31de3a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2d6160['commandName']){const _0x26f67c=_0x2d6160['commandParams'][0x0]['value'];if(_0x26f67c){const _0x354b59=_0x4d4ea0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x33b853=>_0x33b853['model']==_0x26f67c);let _0x57bcd8=_0x26f67c,_0x40b29f='';return _0x354b59&&(_0x57bcd8=_0x354b59['label'],_0x40b29f=_0x2bb62e(_0x57bcd8)['toLowerCase']()),{'type':'format','content':o(_0x31de3a,'*Set\x20font\x20color:*\x20%0',_0x40b29f)['trim'](),'color':{'value':_0x26f67c,'title':_0x40b29f||_0x57bcd8}};}return{'type':'format','content':o(_0x31de3a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2d6160['commandName']){const _0x2a68ee=_0x2d6160['commandParams'][0x0]['value'];if(_0x2a68ee){const _0x3b4f28=_0x4d4ea0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1f791a=>_0x1f791a['model']==_0x2a68ee);let _0x761269=_0x2a68ee,_0x5c77d2='';return _0x3b4f28&&(_0x761269=_0x3b4f28['label'],_0x5c77d2=_0x2bb62e(_0x761269)['toLowerCase']()),{'type':'format','content':o(_0x31de3a,'*Set\x20font\x20background\x20color:*\x20%0',_0x5c77d2)['trim'](),'color':{'value':_0x2a68ee,'title':_0x5c77d2||_0x761269}};}return{'type':'format','content':o(_0x31de3a,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x9c8a48{['afterInit'](){const _0x1f5e34=this['editor'],_0x33b055=_0x1f5e34['plugins']['get']('TrackChangesEditing'),_0x2c44e1=_0x1f5e34['commands']['get']('copyFormat'),_0x561594=_0x1f5e34['commands']['get']('pasteFormat');_0x2c44e1&&_0x561594&&(_0x33b055['enableDefaultAttributesIntegration']('pasteFormat'),_0x33b055['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x120931=this['editor'],_0x156828=_0x120931['locale'];_0x120931['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x334f65=>{if('formatBlock'!=_0x334f65['type']&&'formatInline'!=_0x334f65['type'])return;const {data:_0x4962ae}=_0x334f65;if(_0x4962ae&&'pasteFormat'===_0x4962ae['commandName']){const _0x6a0fc3=[],_0x383445=_0x4962ae['commandParams'][0x0];for(const [_0x1103af,_0x3dc3f4]of Object['entries'](_0x383445))_0x6a0fc3['push'](so(_0x120931,_0x1103af,_0x3dc3f4));return _0x6a0fc3['length']?{'type':'format','content':o(_0x156828,'*Set\x20format\x20to:*\x20%0',_0x6a0fc3['join'](',\x20'))}:{'type':'format','content':o(_0x156828,'*Remove\x20all\x20formatting*')};}});}}function so(_0x410723,_0x463acc,_0x40ba4c){const _0x36b5b1=_0x410723['locale']['t'],_0x518179=_0x463acc['split'](/(?=[A-Z])/)['join']('\x20'),_0x328f1f=_0x36b5b1(_0x518179['charAt'](0x0)['toUpperCase']()+_0x518179['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x40ba4c)return _0x328f1f;if('fontColor'===_0x463acc||'fontBackgroundColor'===_0x463acc){const _0x102871=_0x4d4ea0(_0x410723['config']['get']('fontColor.colors'))['find'](_0x96803c=>_0x96803c['model']==_0x40ba4c);return _0x328f1f+'\x20('+(_0x102871?_0x36b5b1(_0x102871['label'])['toLowerCase']():_0x40ba4c)+')';}if('fontSize'===_0x463acc&&isNaN(parseFloat(_0x40ba4c))){const _0x500e01=_0x410723['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x410723['config']['get']('fontSize.options'))['find'](_0x4ab979=>_0x4ab979['model']==_0x40ba4c);return _0x328f1f+'\x20('+(_0x500e01?_0x36b5b1(_0x500e01['title'])['toLowerCase']():_0x40ba4c)+')';}return _0x328f1f+'\x20('+_0x40ba4c+')';}class tt extends _0x9c8a48{['_headingOptions'];['afterInit'](){const _0x1922f5=this['editor'];if(!_0x1922f5['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1922f5['config']['get']('heading.options');const _0x23af17=_0x1922f5['locale'],_0x543da7=_0x1922f5['plugins']['get']('TrackChangesEditing');_0x543da7['enableDefaultAttributesIntegration']('heading');for(const _0x50c3d1 of this['_headingOptions'])'paragraph'!=_0x50c3d1['model']&&_0x543da7['descriptionFactory']['registerElementLabel'](_0x50c3d1['model'],_0x1fe0b8=>{const _0x48b2b6=this['_getHeadingLevel'](_0x50c3d1['model']);return null!==_0x48b2b6?_0x18ac1f(_0x1fe0b8,_0x48b2b6):_0x5bb92d(_0x1fe0b8,_0x50c3d1['title']);});function _0x18ac1f(_0x98749,_0x4640e3){return o(_0x23af17,'ELEMENT_HEADING',[_0x98749,_0x4640e3]);}function _0x5bb92d(_0x4cd35d,_0x1823b5){return o(_0x23af17,'ELEMENT_HEADING_CUSTOM',[_0x4cd35d,_0x1823b5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20ac5d=this['editor'],_0x5f56ba=_0x20ac5d['locale'];function _0x427578(_0x5c9752,_0x2cc94c){return o(_0x5f56ba,'ELEMENT_HEADING_CUSTOM',[_0x5c9752,_0x2cc94c]);}_0x20ac5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bf65a=>{if('formatBlock'!=_0x2bf65a['type'])return;const {data:_0x2dd829}=_0x2bf65a;if(_0x2dd829&&'heading'==_0x2dd829['commandName']){const _0x33834c=_0x2dd829['commandParams'][0x0]['value'],_0x310ec0=this['_getHeadingLevel'](_0x33834c);if(null!==_0x310ec0)return{'type':'format','content':o(_0x5f56ba,'*Change\x20to:*\x20%0',(_0x21e6bb=0x1,_0x96886=_0x310ec0,o(_0x5f56ba,'ELEMENT_HEADING',[_0x21e6bb,_0x96886])))};const _0x3bd52b=this['_headingOptions']['find'](_0x2974aa=>_0x2974aa['model']===_0x33834c)['title'];return{'type':'format','content':o(_0x5f56ba,'*Change\x20to:*\x20%0',_0x427578(0x1,_0x3bd52b))};}var _0x21e6bb,_0x96886;});}['_getHeadingLevel'](_0x1376f6){const _0x5013dd=_0x1376f6['match'](/^heading(\d+)/);if(_0x5013dd)return _0x5013dd[0x1];const _0x26353c=this['_headingOptions']?.['find'](_0x26afb4=>_0x26afb4['model']==_0x1376f6);if(_0x26353c&&_0x26353c['view']){const _0x1ef1cd=_0x26353c['view'],_0x26bbb9=(_0x1ef1cd['name']??_0x1ef1cd)['match'](/^h(\d+)/);if(_0x26bbb9)return _0x26bbb9[0x1];}return null;}}class et extends _0x9c8a48{['afterInit'](){const _0x4d4147=this['editor'];if(!_0x4d4147['plugins']['has']('HighlightEditing'))return;const _0x30ac8f=_0x4d4147['plugins']['get']('TrackChangesEditing'),_0x28cf46=_0x4d4147['locale'];_0x30ac8f['enableDefaultAttributesIntegration']('highlight'),_0x30ac8f['registerInlineAttribute']('highlight'),_0x30ac8f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x28cf46,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e28ef=this['editor'],_0x302b2b=_0x4e28ef['locale'];_0x4e28ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15a5e4=>{if('formatInline'!=_0x15a5e4['type'])return;const {data:_0x4b00f5}=_0x15a5e4;if(_0x4b00f5&&'highlight'==_0x4b00f5['commandName']){const _0x12fba3=_0x302b2b['t'],_0x45e638=_0x4b00f5['commandParams'][0x0]['value'];if(_0x45e638){const _0xfeec6c=_0x4e28ef['config']['get']('highlight.options')['find'](_0x154393=>_0x154393['model']==_0x45e638),_0x532481=_0x12fba3(_0xfeec6c['title'])['toLowerCase']();return{'type':'format','content':o(_0x302b2b,'*Set\x20highlight:*\x20%0',_0x532481),'color':{'value':_0xfeec6c['color'],'title':_0xfeec6c['title']}};}return{'type':'format','content':o(_0x302b2b,'*Remove\x20highlight*',o(_0x302b2b,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x9c8a48{['afterInit'](){const _0x5f46ba=this['editor'];if(!_0x5f46ba['plugins']['has']('HorizontalLineEditing'))return;_0x5f46ba['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a234f=_0x5f46ba['plugins']['get']('TrackChangesEditing'),_0x3467fe=_0x5f46ba['locale'];_0x4a234f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x51e879=>o(_0x3467fe,'ELEMENT_HORIZONTAL_LINE',_0x51e879)),_0x5f46ba['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1552fe,{writer:_0x23cc9c,options:_0x161dbd})=>{if(!_0x161dbd['showSuggestionHighlights'])return null;const _0x37a23e=_0x23cc9c['createContainerElement']('div'),_0x3941b7=_0x23cc9c['createEmptyElement']('hr');return _0x23cc9c['addClass']('ck-horizontal-line',_0x37a23e),_0x23cc9c['insert'](_0x23cc9c['createPositionAt'](_0x37a23e,0x0),_0x3941b7),_0x37a23e;},'converterPriority':'high'});}}class st extends _0x9c8a48{['afterInit'](){const _0x5a17a5=this['editor'];if(!_0x5a17a5['plugins']['has']('HtmlEmbed'))return;const _0x3e2df6=_0x5a17a5['plugins']['get']('TrackChangesEditing'),_0xf3dd22=_0x5a17a5['locale'];_0x3e2df6['descriptionFactory']['registerElementLabel']('rawHtml',_0x1a2a43=>o(_0xf3dd22,'ELEMENT_HTML_EMBED',_0x1a2a43)),_0x3e2df6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3e2df6['registerBlockAttribute']('value'),_0x3e2df6['descriptionFactory']['registerDescriptionCallback'](_0x4f38ad=>{if('attribute'!=_0x4f38ad['type'])return;const {data:_0x2cf0f3}=_0x4f38ad;if(_0x2cf0f3&&'value'==_0x2cf0f3['key']&&_0x4f38ad['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5ae702=o(_0xf3dd22,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf3dd22,'*Change\x20%0\x20content*',_0x5ae702)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33bfc4=this['editor'],_0x29b4c5=_0x33bfc4['locale'];_0x33bfc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x557d3a=>{if('formatBlock'!=_0x557d3a['type'])return;const {data:_0x45ba3a}=_0x557d3a;if(_0x45ba3a&&'htmlEmbed'==_0x45ba3a['commandName']){const _0x1297ee=o(_0x29b4c5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x29b4c5,'*Change\x20%0\x20content*',_0x1297ee)};}});}}class nt extends _0x9c8a48{['afterInit'](){const _0x110a6d=this['editor'];if(!_0x110a6d['plugins']['has']('ImageEditing'))return;const _0x1ee78f=_0x110a6d['plugins']['get']('TrackChangesEditing'),_0x2e6326=_0x110a6d['plugins']['get']('ImageUtils'),_0x3abd1a=_0x110a6d['locale'];_0x1ee78f['enableCommand']('insertImage'),_0x1ee78f['descriptionFactory']['registerElementLabel']('imageBlock',_0x5aab86=>o(_0x3abd1a,'ELEMENT_IMAGE',_0x5aab86)),_0x1ee78f['descriptionFactory']['registerElementLabel']('imageInline',_0x5ac74d=>o(_0x3abd1a,'ELEMENT_INLINE_IMAGE',_0x5ac74d)),_0x1ee78f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3abd1a,'ELEMENT_CAPTION')),_0x110a6d['plugins']['has']('ImageUploadEditing')&&_0x1ee78f['enableCommand']('uploadImage'),_0x110a6d['plugins']['has']('ImageBlockEditing')&&_0x110a6d['plugins']['has']('ImageInlineEditing')&&(_0x1ee78f['enableCommand']('imageTypeInline',(_0x55eed6,_0x174b17)=>{const _0x1aada2=_0x2e6326['getClosestSelectedImageElement'](_0x110a6d['model']['document']['selection']);_0x110a6d['model']['change'](()=>{_0x1ee78f['markBlockFormat'](_0x1aada2,{'commandName':'imageTypeInline','commandParams':[_0x174b17]},[],'convertBlockImageToInline');});}),_0x1ee78f['enableCommand']('imageTypeBlock',(_0x48e37f,_0x4e84c9)=>{_0x110a6d['model']['change'](_0x224ab7=>{let _0x519a61=_0x2e6326['getClosestSelectedImageElement'](_0x110a6d['model']['document']['selection']),_0x50f931=_0x224ab7['createRangeOn'](_0x519a61);const _0x141fa7=_0x58588f['fromPosition'](_0x50f931['start'],'toPrevious'),_0x48eef5=_0x58588f['fromPosition'](_0x50f931['end'],'toNext');_0x1ee78f['forceDefaultExecution'](()=>_0x48e37f(_0x4e84c9)),_0x519a61=_0x2e6326['getClosestSelectedImageElement'](_0x110a6d['model']['document']['selection']),_0x50f931=_0x224ab7['createRangeOn'](_0x519a61);const _0x228624=_0x224ab7['createRange'](_0x141fa7,_0x48eef5);_0x141fa7['detach'](),_0x48eef5['detach'](),_0x1ee78f['markBlockFormat'](_0x519a61,{'commandName':'imageTypeInline','commandParams':[_0x4e84c9]},[],'convertInlineImageToBlock'),_0x228624['start']['isBefore'](_0x50f931['start'])&&_0x1ee78f['markInsertion'](_0x224ab7['createRange'](_0x228624['start'],_0x50f931['start']),'convertInlineImageToBlock'),_0x50f931['end']['isBefore'](_0x228624['end'])&&_0x1ee78f['markInsertion'](_0x224ab7['createRange'](_0x50f931['end'],_0x228624['end']),'convertInlineImageToBlock');});}),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1ee78f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5428ad])=>{const _0x5c5dbc=_0x1ee78f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x38b0e5=_0x5428ad['start'],_0xcea03f=_0x5428ad['end'];const _0x250632=_0x110a6d['model']['schema']['getNearestSelectionRange'](_0x38b0e5,'backward'),_0x38fe73=_0x110a6d['model']['schema']['getNearestSelectionRange'](_0xcea03f,'forward');_0x250632['isCollapsed']&&(_0x38b0e5=_0x250632['start']),_0x38fe73['isCollapsed']&&(_0xcea03f=_0x38fe73['end']),_0x5c5dbc([_0x110a6d['model']['createRange'](_0x38b0e5,_0xcea03f)]);}),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3ec1a1),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3ec1a1)),_0x110a6d['plugins']['has']('ImageCaptionEditing')&&(_0x1ee78f['enableCommand']('toggleImageCaption',(_0x569e7e,_0x1e8861)=>{const _0x5f5a10=_0x110a6d['plugins']['get']('ImageCaptionUtils');let _0x2779c=_0x2e6326['getClosestSelectedImageElement'](_0x110a6d['model']['document']['selection']),_0x2cbbe3=_0x5f5a10['getCaptionFromImageModelElement'](_0x2779c);_0x110a6d['model']['change'](()=>{if(_0x2cbbe3)return void _0x1ee78f['markDeletion'](_0x110a6d['model']['createRangeOn'](_0x2cbbe3));const _0x484844=_0x2e6326['isBlockImage'](_0x2779c);_0x569e7e(_0x1e8861),_0x2779c=_0x2e6326['getClosestSelectedImageElement'](_0x110a6d['model']['document']['selection']),_0x2cbbe3=_0x5f5a10['getCaptionFromImageModelElement'](_0x2779c),_0x1ee78f['markInsertion'](_0x110a6d['model']['createRangeOn'](_0x2cbbe3),_0x484844?null:'imageCaption');});}),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3ec1a1));const _0x58d53f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3f5fa5(_0x1d560b,_0x55651d){const _0x2d270f=_0x58d53f['findIndex'](({type:_0x34be41,subType:_0x32398e})=>_0x1d560b['type']==_0x34be41&&_0x1d560b['subType']==_0x32398e),_0x2e56af=_0x58d53f['findIndex'](({type:_0x168aac,subType:_0x16ef86})=>_0x55651d['type']==_0x168aac&&_0x55651d['subType']==_0x16ef86);if(_0x2d270f<0x0||_0x2e56af<0x0)return!0x1;const _0x33bf44=_0x1d560b['getFirstRange'](),_0x2aae9e=_0x55651d['getFirstRange']();if((0x0==_0x2d270f||0x1==_0x2d270f)&&0x2==_0x2e56af&&_0x33bf44['isIntersecting'](_0x2aae9e))return!0x0;if(0x2==_0x2d270f&&0x3==_0x2e56af){const _0xf69acb=_0x1ee78f['_findSuggestions'](_0x33bf44,'insertion')['filter'](({suggestion:_0x59af69,meta:_0xb96bb3})=>_0xb96bb3['isOwn']&&'convertInlineImageToBlock'==_0x59af69['subType']);if(_0xf69acb['length']>0x1&&_0x2aae9e['end']['isEqual'](_0x33bf44['start']))return!0x0;if(0x1==_0xf69acb['length']&&(_0x33bf44['start']['isEqual'](_0x2aae9e['end'])||_0x33bf44['end']['isEqual'](_0x2aae9e['start'])))return!0x0;}if(0x3==_0x2d270f&&0x3==_0x2e56af&&_0x33bf44['start']['isBefore'](_0x2aae9e['start'])){const _0x5b2127=_0x33bf44['end']['nodeAfter'],_0x3478fe=_0x2aae9e['start']['nodeBefore'];return _0x2e6326['isBlockImage'](_0x5b2127)&&_0x5b2127===_0x3478fe;}return!0x1;}function _0x3ec1a1(_0x536eb7,_0x1ae8d8){return _0x3f5fa5(_0x536eb7,_0x1ae8d8)?[_0x536eb7,_0x1ae8d8]:_0x3f5fa5(_0x1ae8d8,_0x536eb7)?[_0x1ae8d8,_0x536eb7]:null;}_0x110a6d['plugins']['has']('ImageResize')&&(_0x1ee78f['enableDefaultAttributesIntegration']('resizeImage'),_0x1ee78f['registerBlockAttribute']('resizedWidth'),_0x1ee78f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3abd1a,'FORMAT_IMAGE_SIZE'))),_0x110a6d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1ee78f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1ee78f['registerBlockAttribute']('alt')),_0x1ee78f['descriptionFactory']['registerDescriptionCallback'](_0x13b9d9=>{if(!!_0x58d53f['find'](({type:_0x21f328,subType:_0x329157})=>_0x13b9d9['type']==_0x21f328&&_0x13b9d9['subType']==_0x329157))return _0x13b9d9['previous']?{}:void 0x0;}),_0x1ee78f['descriptionFactory']['registerDescriptionCallback'](_0x3cb9b9=>{if('insertion'==_0x3cb9b9['type']||'deletion'==_0x3cb9b9['type']){const _0x475628=_0x3cb9b9['getContainedElement']();if(_0x475628&&_0x475628['is']('element','caption'))return{'type':'insertion'==_0x3cb9b9['type']?'addObject':'removeObject','element':_0x475628,'quantity':0x1};}}),_0x1ee78f['descriptionFactory']['registerDescriptionCallback'](_0x1c71a5=>'formatBlock'==_0x1c71a5['type']&&'convertInlineImageToBlock'==_0x1c71a5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1c71a5['type']&&'convertBlockImageToInline'==_0x1c71a5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1ee78f['descriptionFactory']['registerDescriptionCallback'](_0x3390b3=>{if('attribute'!=_0x3390b3['type'])return;const {data:_0x87e29}=_0x3390b3;if(!_0x87e29||'alt'!=_0x87e29['key'])return;const _0x217d5f=_0x87e29['newValue'];return _0x217d5f?{'type':'format','content':o(_0x3abd1a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x217d5f+'\x22')}:{'type':'format','content':o(_0x3abd1a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x255999=this['editor'],_0x5ec173=_0x255999['locale'];_0x255999['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7af706=>{if('formatBlock'!=_0x7af706['type']&&'formatInline'!=_0x7af706['type'])return;const {data:_0x567257}=_0x7af706;if(_0x567257){if('imageTextAlternative'==_0x567257['commandName']){const _0xce1f08=_0x567257['commandParams'][0x0]['newValue'];return _0xce1f08?{'type':'format','content':o(_0x5ec173,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xce1f08+'\x22')}:{'type':'format','content':o(_0x5ec173,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x567257['commandName']){const _0x8bf349=_0x567257['commandParams'][0x0]['width'];return _0x8bf349?{'type':'format','content':o(_0x5ec173,'*Set\x20image\x20width:*\x20%0',_0x8bf349)}:{'type':'format','content':o(_0x5ec173,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x9c8a48{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x311a87=this['editor']['locale'],_0x191497=this['editor']['plugins']['get']('TrackChangesEditing');_0x191497['enableDefaultAttributesIntegration']('replaceImageSource'),_0x191497['registerBlockAttribute']('src'),_0x191497['descriptionFactory']['registerDescriptionCallback'](_0x231384=>{if('attribute'!=_0x231384['type'])return;const {data:_0xbfb22e}=_0x231384;return _0xbfb22e&&'src'==_0xbfb22e['key']?_0xbfb22e['newValue']&&_0xbfb22e['oldValue']?{'type':'format','content':o(_0x311a87,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x40a3ae=this['editor']['plugins']['get']('TrackChangesEditing');_0x40a3ae['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x40a3ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40a3ae['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x40a3ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x283fee=this['editor'],_0xf6b5ec=_0x283fee['locale'];_0x283fee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x119c9b=>{if('formatBlock'!=_0x119c9b['type']&&'formatInline'!=_0x119c9b['type'])return;const {data:_0x5b2fb1}=_0x119c9b;if(!_0x5b2fb1||'replaceImageSource'!=_0x5b2fb1['commandName'])return;return{'type':'format','content':o(_0xf6b5ec,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x9c8a48{['afterInit'](){const _0x11b634=this['editor'];if(!_0x11b634['plugins']['has']('ImageStyleEditing'))return;const _0x21894a=_0x11b634['plugins']['get']('TrackChangesEditing'),_0x42430a=_0x11b634['plugins']['get']('ImageUtils'),_0x476b06={};_0x21894a['enableCommand']('imageStyle',(_0x131e04,_0xef647d)=>{const _0x2244fa=_0x11b634['plugins']['get']('Users')['me'],_0x1f485b=_0x11b634['commands']['get']('imageStyle');let _0x1a1109=_0x42430a['getClosestSelectedImageElement'](_0x11b634['model']['document']['selection']),_0x124cb8=_0x11b634['model']['createRangeOn'](_0x1a1109),_0x513e6b=_0x1f485b['value'];if(_0x513e6b==_0xef647d['value'])return;const _0x25c394={'commandName':'imageStyle','commandParams':[_0xef647d],'formatGroupId':_0x5b34d0()};_0x11b634['model']['change'](()=>{if(_0x21894a['getSuggestions']()['filter'](_0x559fea=>_0x559fea['isInContent']&&_0x2244fa==_0x559fea['author']&&('formatBlock'==_0x559fea['type']||'formatInline'==_0x559fea['type'])&&('imageStylePreApply'==_0x559fea['subType']||'imageStylePostApply'==_0x559fea['subType'])&&_0x559fea['getFirstRange']()['isEqual'](_0x124cb8))['forEach'](_0x1a42bb=>_0x21894a['discardSuggestion'](_0x1a42bb['head'])),_0x1a1109=_0x42430a['getClosestSelectedImageElement'](_0x11b634['model']['document']['selection']),_0x124cb8=_0x11b634['model']['createRangeOn'](_0x1a1109),_0x1f485b['refresh'](),_0x11b634['commands']['get']('imageTypeInline')['refresh'](),_0x11b634['commands']['get']('imageTypeBlock')['refresh'](),_0x513e6b=_0x1f485b['value'],_0x513e6b!=_0xef647d['value'])return _0x42430a['isInlineImage'](_0x1a1109)&&_0x1f485b['shouldConvertImageType'](_0xef647d['value'],_0x1a1109)?(_0x131e04({..._0xef647d,'setImageSizes':!0x1}),_0x1a1109=_0x42430a['getClosestSelectedImageElement'](_0x11b634['model']['document']['selection']),void _0x21894a['markBlockFormat'](_0x1a1109,{..._0x25c394,'commandReversedParams':[{'value':_0x513e6b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x42430a['isBlockImage'](_0x1a1109)?_0x21894a['markBlockFormat'](_0x1a1109,_0x25c394,[],'imageStylePostApply'):_0x21894a['markInlineFormat'](_0x124cb8,_0x25c394,'imageStylePostApply'));});});for(const _0x2059a3 of _0x11b634['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x476b06[_0x2059a3['name']]=_0x2059a3['title']['toLowerCase']();_0x21894a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x21894a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x21894a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x21894a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x35b569])=>{_0x42430a['setImageNaturalSizeAttributes'](_0x35b569['getContainedElement']());}),_0x21894a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x58a912,_0x2605d2)=>{_0x21894a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x58a912,{'commandName':_0x2605d2['commandName'],'commandParams':_0x2605d2['commandReversedParams']});}),_0x21894a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x38412b,_0x479490){if(_0x558e2e(_0x38412b,_0x479490))return[_0x38412b,_0x479490];if(_0x558e2e(_0x479490,_0x38412b))return[_0x479490,_0x38412b];return null;});const _0x412bc1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x558e2e(_0x249f81,_0x4de2fc){const _0x3041b5=_0x412bc1['findIndex'](({type:_0x1a08af,subType:_0x31eb3c})=>_0x249f81['type']==_0x1a08af&&_0x249f81['subType']==_0x31eb3c),_0x98f341=_0x412bc1['findIndex'](({type:_0xabfc91,subType:_0x33f113})=>_0x4de2fc['type']==_0xabfc91&&_0x4de2fc['subType']==_0x33f113);if(_0x3041b5<0x0||_0x98f341<0x0)return!0x1;const _0x2f97db=_0x249f81['getFirstRange'](),_0x6e06f8=_0x4de2fc['getFirstRange']();if((0x0==_0x3041b5||0x1==_0x3041b5)&&0x2==_0x98f341&&_0x2f97db['isIntersecting'](_0x6e06f8))return!0x0;if(0x2==_0x3041b5&&0x3==_0x98f341){const _0x12f37e=_0x21894a['_findSuggestions'](_0x2f97db,'insertion')['filter'](({suggestion:_0x3a3f11,meta:_0x348fef})=>_0x348fef['isOwn']&&'convertInlineImageToBlock'==_0x3a3f11['subType']);if(_0x12f37e['length']>0x1&&_0x6e06f8['end']['isEqual'](_0x2f97db['start']))return!0x0;if(0x1==_0x12f37e['length']&&(_0x2f97db['start']['isEqual'](_0x6e06f8['end'])||_0x2f97db['end']['isEqual'](_0x6e06f8['start'])))return!0x0;}if(0x3==_0x3041b5&&0x3==_0x98f341&&_0x2f97db['start']['isBefore'](_0x6e06f8['start'])){const _0x4e5612=_0x2f97db['end']['nodeAfter'],_0xb93885=_0x6e06f8['start']['nodeBefore'];return _0x42430a['isBlockImage'](_0x4e5612)&&_0x4e5612===_0xb93885;}return!0x1;}_0x11b634['model']['document']['registerPostFixer'](()=>{let _0x551cef=!0x1;const _0x5b29de=Array['from'](_0x11b634['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3060ce,data:_0x47e126}of _0x5b29de){const {group:_0x51ea37,type:_0x37aebc,subType:_0x14e241,id:_0x1cf0d6}=_0x21894a['_splitMarkerName'](_0x3060ce);if('suggestion'==_0x51ea37&&_0x21894a['hasSuggestion'](_0x1cf0d6)){if('formatBlock'==_0x37aebc&&('imageStylePreApply'==_0x14e241||'imageStylePostApply'==_0x14e241)){const _0x53107d=_0x21894a['getSuggestion'](_0x1cf0d6);if(_0x47e126['newRange']){const _0x459a65=_0x53107d['getFirstRange']()['getContainedElement']();if(_0x42430a['isBlockImage'](_0x459a65))continue;_0x21894a['discardSuggestion'](_0x53107d),_0x551cef=!0x0;}}if('insertion'==_0x37aebc&&'imageCaption'==_0x14e241&&!_0x47e126['newRange']){const _0x27fea3=_0x21894a['getSuggestion'](_0x1cf0d6);_0x27fea3['next']&&_0x27fea3['next']['isInContent']&&(_0x21894a['discardSuggestion'](_0x27fea3['next']),_0x551cef=!0x0);}}}return _0x551cef;}),this['_registerLegacyDescription'](_0x476b06);}['_registerLegacyDescription'](_0x2ef02c){const _0x24d799=this['editor'],_0x72d107=_0x24d799['locale'];_0x24d799['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c199d=>{if('formatBlock'!=_0x2c199d['type']&&'formatInline'!=_0x2c199d['type'])return;const {data:_0x460280}=_0x2c199d;if(!_0x460280||'imageStyle'!=_0x460280['commandName'])return;const _0x2fc7c8=_0x460280['commandParams'][0x0]['value'];return _0x3cf7e7('side'===_0x2fc7c8?o(_0x72d107,'FORMAT_SIDE_IMAGE'):_0x2ef02c[_0x2fc7c8]||_0x2fc7c8);function _0x3cf7e7(_0x2e9473){return{'type':'format','content':o(_0x72d107,'*Format:*\x20%0',_0x2e9473)};}});}}class at extends _0x9c8a48{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x48e15c){super(_0x48e15c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5477ab=this['editor'],_0x14d2fb=_0x5477ab['commands']['get']('importWord'),_0xc6ad5b=_0x5477ab['commands']['get']('trackChanges');_0x14d2fb&&(_0x14d2fb['on']('execute',(_0x535e21,[,_0x2a6ec4])=>{this['_trackChangesValueDuringImport']=_0xc6ad5b['value'],_0x2a6ec4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x14d2fb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x14d2fb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xc6ad5b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5477ab['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4eefbf,_0x53caec){const {suggestions:_0x49e9e2}=_0x53caec,_0x2631ab=this['editor']['commands']['get']('trackChanges'),_0x1205b7=_0x2631ab['value'];this['_trackChangesValueDuringImport']!==_0x1205b7&&(_0x2631ab['execute'](),this['_trackChangesExecuted']=!0x0),_0x49e9e2&&_0x49e9e2['forEach'](({id:_0xa7f421,type:_0x3c055d,author:_0x3f9877,created_at:_0x2041ff})=>{const _0x1be71b={'id':_0xa7f421,'type':_0x3c055d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3f9877,'createdAt':_0x2041ff?new Date(_0x2041ff):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1be71b);});}}class ct extends _0x9c8a48{['afterInit'](){const _0x1d8489=this['editor'],_0x1dfb7c=_0x1d8489['plugins']['get']('TrackChangesEditing');if(_0x1d8489['plugins']['has']('IndentEditing')&&(_0x1dfb7c['enableCommand']('indent'),_0x1dfb7c['enableCommand']('outdent')),_0x1d8489['plugins']['has']('IndentBlock')){for(const _0xf74e4b of['indentBlock','outdentBlock'])_0x1dfb7c['enableDefaultAttributesIntegration'](_0xf74e4b);}const _0x4e2382=_0x1d8489['locale'];_0x1dfb7c['registerBlockAttribute']('blockIndent'),_0x1dfb7c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4e2382,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15edc6=this['editor'],_0x1295f2=_0x15edc6['locale'],_0x55829e=_0x15edc6['plugins']['get']('TrackChangesEditing');_0x55829e['descriptionFactory']['registerDescriptionCallback'](_0x2013f0=>{if('formatBlock'!=_0x2013f0['type'])return;const {data:_0x205b8a}=_0x2013f0;if(!_0x205b8a)return;if('indentBlock'!=_0x205b8a['commandName']&&'outdentBlock'!=_0x205b8a['commandName'])return;const _0x44840e=_0x2013f0['getItems']()[0x0],_0x1153d1=_0x55829e['descriptionFactory']['getItemLabel'](_0x44840e);return'indentBlock'==_0x205b8a['commandName']?{'type':'format','content':o(_0x1295f2,'*Indent:*\x20%0',_0x1153d1)}:'outdentBlock'==_0x205b8a['commandName']?{'type':'format','content':o(_0x1295f2,'*Outdent:*\x20%0',_0x1153d1)}:void 0x0;});}}class ut extends _0x9c8a48{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x9c8a48{['afterInit'](){const _0x377c14=this['editor'];if(!_0x377c14['plugins']['has']('LinkEditing'))return;const _0x231cb4=_0x377c14['plugins']['get']('TrackChangesEditing'),_0x474ffb=_0x377c14['commands']['get']('link');_0x231cb4['enableDefaultAttributesIntegration']('link'),_0x231cb4['enableDefaultAttributesIntegration']('unlink'),_0x231cb4['registerInlineAttribute']('linkHref');for(const _0x1a8f5b of _0x474ffb['manualDecorators'])_0x231cb4['registerInlineAttribute'](_0x1a8f5b['id']),_0x231cb4['descriptionFactory']['registerAttributeLabel'](_0x1a8f5b['id'],'link\x20('+_0x1a8f5b['label']['toLowerCase']()+')');_0x231cb4['descriptionFactory']['registerDescriptionCallback'](_0x308b45=>{if('attribute'!=_0x308b45['type'])return;const {data:_0x441ecc}=_0x308b45;if(!_0x441ecc||'linkHref'!=_0x441ecc['key'])return;const _0x47cab3=_0x441ecc['newValue'],_0x577962=_0x377c14['locale'];return{'type':'format','content':null==_0x47cab3?o(_0x577962,'*Remove\x20link*'):o(_0x577962,'*Set\x20link:*\x20%0','\x22'+_0x47cab3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x287a83=this['editor'],_0x43faa2=_0x287a83['locale'];_0x287a83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e7449=>{if('formatInline'!=_0x3e7449['type'])return;const {data:_0x23ec37}=_0x3e7449;if(_0x23ec37){if('link'==_0x23ec37['commandName']){const _0xf601f=_0x23ec37['commandParams'][0x0];return{'type':'format','content':o(_0x43faa2,'*Set\x20link:*\x20%0','\x22'+_0xf601f+'\x22')};}return'unlink'==_0x23ec37['commandName']?{'type':'format','content':o(_0x43faa2,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x9c8a48{['afterInit'](){const _0x47ad0d=this['editor'],_0x25a273=_0x47ad0d['locale'];if(!_0x47ad0d['plugins']['has']('LegacyListEditing'))return;const _0x897fa1=_0x47ad0d['plugins']['get']('TrackChangesEditing'),_0x31bedb=_0x47ad0d['plugins']['has']('LegacyTodoListEditing');function _0x58bd11(_0x429c10){return()=>{const _0x132688=_0x47ad0d['model']['document']['selection'],_0x3c89fe=_0x47ad0d['commands']['get'](_0x429c10);if(_0x3c89fe['value'])return void _0x47ad0d['execute']('paragraph',{});const _0xf06e21=_0x429c10['slice'](0x0,-0x4),_0x2440ee=function(_0x955ae7,_0x25c021,_0x115c81){let _0x568175=Array['from'](_0x955ae7)['filter'](_0x1b9e2e=>function(_0x357e3d,_0x5e719b){return _0x5e719b['checkChild'](_0x357e3d['parent'],'listItem')&&!_0x5e719b['isObject'](_0x357e3d);}(_0x1b9e2e,_0x115c81));_0x568175=_0x568175['filter'](_0x20ed3d=>!_0x20ed3d['is']('element','listItem')||_0x20ed3d['getAttribute']('listType')!=_0x25c021);const _0x547385=new Set();for(const _0x5a5810 of _0x568175)_0x5a5810['is']('element','listItem')?_0x547385['add'](fe(_0x5a5810)):_0x547385['add'](_0x5a5810);return Array['from'](_0x547385);}(_0x132688['getSelectedBlocks'](),_0xf06e21,_0x47ad0d['model']['schema']);_0x47ad0d['model']['change'](()=>{for(const _0x41a759 of _0x2440ee)_0x897fa1['markBlockFormat'](_0x41a759,{'commandName':_0x429c10,'commandParams':[{'forceValue':!_0x3c89fe['value']}],'formatGroupId':'blockName'},ue(_0x41a759));});};}function _0x36fae1(_0x1a6678){return()=>{const _0x2c9c99=function(_0x378c1b){let _0x2b18db=Array['from'](_0x378c1b);const _0x5cad70=_0x2b18db['findIndex'](_0x3e844c=>'listItem'!=_0x3e844c['name']);return _0x5cad70>-0x1&&(_0x2b18db=_0x2b18db['slice'](0x0,_0x5cad70)),_0x2b18db;}(_0x47ad0d['model']['document']['selection']['getSelectedBlocks']()),_0x1cb228=_0x47ad0d['model']['createRange'](_0x47ad0d['model']['createPositionAt'](_0x2c9c99[0x0],'before'),_0x47ad0d['model']['createPositionAt'](_0x2c9c99[_0x2c9c99['length']-0x1],'end'));_0x47ad0d['model']['change'](()=>{_0x897fa1['markBlockFormat'](_0x1cb228,{'commandName':_0x1a6678,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3a21d6){const _0x5ad4ee=new Set();for(const _0x12ed1c of _0x3a21d6){let _0x1b6caf=_0x12ed1c['nextSibling'];for(;_0x1b6caf&&_0x1b6caf['getAttribute']('listIndent')>_0x12ed1c['getAttribute']('listIndent');)_0x5ad4ee['add'](_0x1b6caf),_0x1b6caf=_0x1b6caf['nextSibling'];}return Array['from'](_0x5ad4ee);}(_0x2c9c99));});};}_0x897fa1['enableCommand']('numberedList',_0x58bd11('numberedList')),_0x897fa1['enableCommand']('bulletedList',_0x58bd11('bulletedList')),_0x31bedb&&_0x897fa1['enableCommand']('todoList',_0x58bd11('todoList')),_0x897fa1['enableCommand']('indentList',_0x36fae1('indentList')),_0x897fa1['enableCommand']('outdentList',_0x36fae1('outdentList')),_0x31bedb&&_0x897fa1['enableCommand']('checkTodoList',()=>{const _0x263f6a=_0x47ad0d['commands']['get']('checkTodoList'),_0x3f66c9=Array['from'](_0x263f6a['_selectedElements']);_0x3f66c9['filter'](_0x4be98a=>_0x4be98a['getAttribute']('todoListChecked')!=_0x263f6a['value']),_0x47ad0d['model']['change'](()=>{for(const _0x501d28 of _0x3f66c9)_0x897fa1['markBlockFormat'](_0x501d28,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x263f6a['value']}]});});}),_0x897fa1['descriptionFactory']['registerElementLabel']('listItem',_0x271c6b=>o(_0x25a273,'ELEMENT_LIST_ITEM',_0x271c6b)),_0x897fa1['descriptionFactory']['registerDescriptionCallback'](_0x5b945e=>{if('formatBlock'!=_0x5b945e['type']&&'formatInline'!=_0x5b945e['type'])return;const {data:_0x4194e2}=_0x5b945e;if(_0x4194e2){if('numberedList'==_0x4194e2['commandName']||'bulletedList'==_0x4194e2['commandName']||'todoList'==_0x4194e2['commandName'])switch(_0x4194e2['commandName']['replace']('List','')){case'bulleted':return _0x4dd7b3(o(_0x25a273,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4dd7b3(o(_0x25a273,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4dd7b3(o(_0x25a273,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4194e2['commandName'])return{'type':'format','content':o(_0x25a273,'*Indent:*\x20%0',o(_0x25a273,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4194e2['commandName'])return{'type':'format','content':o(_0x25a273,'*Outdent:*\x20%0',o(_0x25a273,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4194e2['commandName'])return _0x4194e2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25a273,'*Check\x20item*')}:{'type':'format','content':o(_0x25a273,'*Uncheck\x20item*')};}function _0x4dd7b3(_0x52e73e){return{'type':'format','content':o(_0x25a273,'*Change\x20to:*\x20%0',_0x52e73e)};}});}}function fe(_0x113118){const _0xad0b6d=_0x113118['getAttribute']('listIndent');if(0x0==_0xad0b6d)return _0x113118;let _0x48dc9f=_0x113118;for(;_0x113118['previousSibling']&&_0x113118['previousSibling']['is']('element','listItem');){const _0x55fa62=_0x113118['previousSibling']['getAttribute']('listIndent');if(_0x55fa62==_0xad0b6d)_0x48dc9f=_0x113118['previousSibling'];else{if(_0x55fa62<_0xad0b6d)break;}_0x113118=_0x113118['previousSibling'];}return _0x48dc9f;}function ue(_0xfb678b){const _0x4342f8=[];if(_0xfb678b['is']('element','listItem')&&_0xfb678b['getAttribute']('listIndent')>0x0){let _0x2e91b0=_0xfb678b['nextSibling'];for(;_0x2e91b0&&'listItem'==_0x2e91b0['name']&&_0x2e91b0['getAttribute']('listIndent')==_0xfb678b['getAttribute']('listIndent');)_0x4342f8['push'](_0x2e91b0),_0x2e91b0=_0x2e91b0['nextSibling'];}return _0x4342f8;}class W extends _0x9c8a48{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2035c8=this['editor']['config']['get']('list.properties'),_0x2c4a7a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2035c8['styles']&&_0x2c4a7a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2035c8['reversed']&&_0x2c4a7a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2035c8['startIndex']&&_0x2c4a7a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2c4a7a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x10ddcd,_0x16695f={}){const _0x1a58ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21d3de=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1a58ea['markMultiRangeBlockFormat'](_0x21d3de,{'commandName':'listStyle','commandParams':[{'type':_0x16695f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x327e2a,_0x541eb6={}){const _0x15cbde=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cc71c=this['_getSuggestionBlocks'](_0x2c9eeb=>_0x2c9eeb['is']('element','listItem')&&'numbered'===_0x2c9eeb['getAttribute']('listType'));if(_0x2cc71c['length']<0x1)return;const _0x48d8e5=_0x2cc71c['map'](_0x1d5bf2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d5bf2,'before'),this['editor']['model']['createPositionAt'](_0x1d5bf2,0x0)));this['editor']['model']['change'](()=>{_0x15cbde['markMultiRangeBlockFormat'](_0x48d8e5,{'commandName':'listReversed','commandParams':[{'reversed':_0x541eb6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x59f96d,_0x2ae166={}){const _0x2bd117=this['editor']['plugins']['get']('TrackChangesEditing'),_0x561ce5=this['_getSuggestionBlocks'](_0xdf4c48=>_0xdf4c48['is']('element','listItem')&&'numbered'===_0xdf4c48['getAttribute']('listType'));if(_0x561ce5['length']<0x1)return;const _0x4f9d3e=_0x561ce5['map'](_0x4417fc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4417fc,'before'),this['editor']['model']['createPositionAt'](_0x4417fc,0x0)));this['editor']['model']['change'](()=>{_0x2bd117['markMultiRangeBlockFormat'](_0x4f9d3e,{'commandName':'listStart','commandParams':[{'startIndex':_0x2ae166['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4faf53){if('formatBlock'!=_0x4faf53['type']&&'formatInline'!=_0x4faf53['type'])return;const _0x203d5a=this['editor']['locale'],{data:_0x1d891b}=_0x4faf53;if(!_0x1d891b)return;let _0x594369,_0xc4272;switch(_0x1d891b['commandName']){case'listStyle':_0x594369='*Change\x20to:*\x20%0',_0xc4272={'type':'format','content':o(_0x203d5a,_0x594369,o(_0x203d5a,this['_getTranslationKeyForListStyle'](_0x1d891b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x594369=_0x1d891b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xc4272={'type':'format','content':o(_0x203d5a,_0x594369)};break;case'listStart':_0x594369='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xc4272={'type':'format','content':o(_0x203d5a,_0x594369,_0x1d891b['commandParams'][0x0]['startIndex'])};}return _0xc4272;}['_getSuggestionBlocksForListStyle'](){const _0x24ff44=this['editor']['plugins']['get']('LegacyListUtils');let _0x43465b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x43465b[0x0]?.['is']('element','listItem')&&_0x43465b['unshift'](..._0x24ff44['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x43465b[_0x43465b['length']-0x1]?.['is']('element','listItem')&&_0x43465b['push'](..._0x24ff44['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x43465b=[...new Set(_0x43465b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x43465b=_0x43465b['filter'](_0x2ac1a0=>_0x2ac1a0['is']('element','listItem'))),_0x43465b;}['_getSuggestionBlocks'](_0x3271af){const _0x393fb1=this['editor']['plugins']['get']('LegacyListUtils');let _0x418871=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3271af)['map'](_0x209f36=>{const _0x42056b=this['editor']['model']['createPositionAt'](_0x209f36,0x0);return[..._0x393fb1['getSiblingNodes'](_0x42056b,'backward'),..._0x393fb1['getSiblingNodes'](_0x42056b,'forward')];})['flat']();return _0x418871=[...new Set(_0x418871)],_0x418871;}['_getTranslationKeyForListStyle'](_0x4c6184){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c6184)||'default')['toUpperCase']()+'_LIST_'+_0x4c6184['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x9c8a48{['afterInit'](){const _0x18d26a=this['editor'];if(!_0x18d26a['plugins']['has']('MediaEmbedEditing'))return;const _0x18b3cb=_0x18d26a['plugins']['get']('TrackChangesEditing'),_0x50a788=_0x18d26a['locale'];_0x18b3cb['enableCommand']('mediaEmbed'),_0x18b3cb['descriptionFactory']['registerElementLabel']('media',_0x3f9219=>o(_0x50a788,'ELEMENT_MEDIA',_0x3f9219)),_0x18d26a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d704f,{writer:_0x3a34d0,options:_0x33e428})=>{if(_0x33e428['showSuggestionHighlights'])return _0x3a34d0['createEmptyElement']('div');},'converterPriority':'high'}),_0x18d26a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4875c9,_0x11aa9e,_0x872e5c)=>{_0x872e5c['options']['showSuggestionHighlights']&&_0x4875c9['stop']();},{'priority':'high'});}}class mt extends _0x9c8a48{['afterInit'](){const _0x1142a0=this['editor'];_0x1142a0['plugins']['has']('MentionEditing')&&_0x1142a0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x9c8a48{['afterInit'](){const _0xfbbf29=this['editor'];if(!_0xfbbf29['plugins']['has']('MergeFieldsEditing'))return;_0xfbbf29['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0xfbbf29['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x5acb93=_0xfbbf29['plugins']['get']('TrackChangesEditing'),_0x13b49f=_0xfbbf29['locale'];_0x5acb93['descriptionFactory']['registerElementLabel']('mergeField',_0x1492c6=>o(_0x13b49f,'ELEMENT_MERGE_FIELD',_0x1492c6)),_0x5acb93['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x36f90f=>o(_0x13b49f,'ELEMENT_MERGE_FIELD',_0x36f90f)),_0x5acb93['descriptionFactory']['registerDescriptionCallback'](_0x3a9fc6=>{if('insertion'!=_0x3a9fc6['type']&&'deletion'!=_0x3a9fc6['type'])return;const _0x4b6bfc=_0x3a9fc6['getContainedElement']();if(null==_0x4b6bfc)return;if(!_0x4b6bfc['is']('element','mergeField')&&!_0x4b6bfc['is']('element','mergeFieldBlock'))return;const _0xb08eb7=_0xfbbf29['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4b6bfc['getAttribute']('id'));return'insertion'==_0x3a9fc6['type']?{'type':'insertion','content':o(_0x13b49f,'*Insert:*\x20%0','\x22'+_0xb08eb7+'\x22\x20'+o(_0x13b49f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x13b49f,'*Remove:*\x20%0','\x22'+_0xb08eb7+'\x22\x20'+o(_0x13b49f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x9c8a48{['afterInit'](){const _0x5a92dd=this['editor'],_0x593ccb=_0x5a92dd['plugins']['get']('TrackChangesEditing');_0x5a92dd['plugins']['has']('MultiLevelList')&&(_0x593ccb['enableDefaultAttributesIntegration']('multiLevelList'),_0x593ccb['registerBlockAttribute']('listMarkerStyle'),_0x593ccb['descriptionFactory']['registerDescriptionCallback'](_0x397e43=>this['handleDescriptions'](_0x397e43)));}['handleDescriptions'](_0x2d5cfc){const _0x123b65=this['editor']['locale'],{data:_0xdf490a}=_0x2d5cfc,_0x4dd79e={'type':'format','content':''};if(_0xdf490a&&'listMarkerStyle'==_0xdf490a['key']){if(!_0xdf490a['oldValue'])return{'type':'format','content':o(_0x123b65,'*Set\x20format:*\x20%0',o(_0x123b65,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xdf490a['newValue']+')'};if(!_0xdf490a['newValue']){let _0x3a56f4=_0x2d5cfc['head'];for(;_0x3a56f4;){if(_0x3a56f4['data']&&'listType'==_0x3a56f4['data']['key']&&_0x3a56f4['data']['newValue'])return _0x4dd79e;_0x3a56f4=_0x3a56f4['next'];}return{'type':'format','content':o(_0x123b65,'*Remove\x20format:*\x20%0',o(_0x123b65,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xdf490a['oldValue']+')'};}}}}class kt extends _0x9c8a48{['afterInit'](){const _0x1c45eb=this['editor'];if(!_0x1c45eb['plugins']['has']('PageBreakEditing'))return;_0x1c45eb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x196eda=_0x1c45eb['plugins']['get']('TrackChangesEditing'),_0x4cac49=_0x1c45eb['locale'];_0x196eda['descriptionFactory']['registerElementLabel']('pageBreak',_0x189b45=>o(_0x4cac49,'ELEMENT_PAGE_BREAK',_0x189b45));}}class bt extends _0x9c8a48{['afterInit'](){const _0x1602e2=this['editor'];if(!_0x1602e2['plugins']['has']('Paragraph'))return;const _0x3ce4b8=_0x1602e2['locale'],_0x128c13=_0x1602e2['plugins']['get']('TrackChangesEditing');_0x128c13['descriptionFactory']['registerElementLabel']('paragraph',_0x4002b2=>o(_0x3ce4b8,'ELEMENT_PARAGRAPH',_0x4002b2)),_0x128c13['enableDefaultAttributesIntegration']('paragraph'),_0x128c13['enableCommand']('insertParagraph'),_0x1602e2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1602e2),{'priority':'highest'}),_0x1602e2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4c9c2c,_0x578c03,_0x3fd045)=>{_0x3fd045['options']['showSuggestionHighlights']&&nr(_0x1602e2,{'showActiveMarker':!0x1})(_0x4c9c2c,_0x578c03,_0x3fd045);},{'priority':'highest'});const _0x1cdba6=_0x128c13['descriptionFactory'];_0x1cdba6['registerDescriptionCallback'](_0x41a081=>{if('insertion'!==_0x41a081['type'])return;const {start:_0x42b04c,end:_0x2921a9}=_0x41a081['getFirstRange']();if(!_0x42b04c['isTouching'](_0x2921a9)||!_0x42b04c['nodeAfter'])return;const _0x40f0e4=_0x1602e2['model']['schema'],_0x37a89e=_0x42b04c['nodeAfter'];return _0x40f0e4['isBlock'](_0x37a89e)&&!_0x40f0e4['isLimit'](_0x37a89e)&&_0x40f0e4['checkChild'](_0x37a89e,'$text')?{'type':'insertion','content':o(_0x3ce4b8,'*Insert:*\x20%0',_0x1cdba6['getItemLabel'](_0x37a89e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x404e88=this['editor'],_0x238c9c=_0x404e88['locale'];_0x404e88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1af8f8=>{if('formatBlock'!=_0x1af8f8['type'])return;const {data:_0x17e424}=_0x1af8f8;return _0x17e424&&'paragraph'==_0x17e424['commandName']?{'type':'format','content':o(_0x238c9c,'*Change\x20to:*\x20%0',o(_0x238c9c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2edec8,{showActiveMarker:_0x197afc=!0x0}={}){return(_0xd10647,_0x34694b,_0x2032fb)=>{const _0x2e8f7a=_0x2edec8['plugins']['get']('TrackChangesEditing'),_0x2ac965=_0x34694b['markerRange']['start'],_0x327ba4=_0x34694b['markerRange']['end'],_0x4f164a=_0x2edec8['model']['schema'];if(!_0x2ac965['isTouching'](_0x327ba4)||!_0x2ac965['nodeAfter'])return;const _0xb519ed=_0x2ac965['nodeAfter'];if(_0x4f164a['isBlock'](_0xb519ed)&&!_0x4f164a['isLimit'](_0xb519ed)&&_0x4f164a['checkChild'](_0xb519ed,'$text')){if(!_0x2032fb['consumable']['consume'](_0x34694b['markerRange'],_0xd10647['name']))return;const {authorId:_0x3a21d7}=_0x2e8f7a['_splitMarkerName'](_0x34694b['markerName']),_0x54f8b7=_0x2032fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3a21d7}),_0x448336=_0x2032fb['mapper']['toViewPosition'](_0x327ba4);_0x197afc&&_0x2e8f7a['activeMarkers']['includes'](_0x34694b['markerName'])&&_0x2032fb['writer']['addClass']('ck-suggestion-marker--active',_0x54f8b7),_0x2032fb['writer']['insert'](_0x448336,_0x54f8b7),_0x2032fb['mapper']['bindElementToMarker'](_0x54f8b7,_0x34694b['markerName']);}};}class wt extends _0x9c8a48{['afterInit'](){const _0x4a77d6=this['editor'];if(!_0x4a77d6['plugins']['has']('RemoveFormatEditing'))return;_0x4a77d6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x135f5d=this['editor'];_0x135f5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33e4c6=>{if('formatBlock'!=_0x33e4c6['type']&&'formatInline'!=_0x33e4c6['type'])return;const {data:_0x437fe0}=_0x33e4c6;return _0x437fe0&&'removeFormat'==_0x437fe0['commandName']?{'type':'format','content':o(_0x135f5d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x9c8a48{['afterInit'](){const _0x30d98c=this['editor'];if(!_0x30d98c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3d4982=_0x30d98c['plugins']['get']('TrackChangesEditing');_0x3d4982['enableCommand']('goToPreviousRestrictedEditingException'),_0x3d4982['enableCommand']('goToNextRestrictedEditingException');const _0x2d55f6=_0x30d98c['plugins']['get']('RestrictedEditingModeEditing');_0x2d55f6['enableCommand']('trackChanges'),_0x2d55f6['enableCommand']('acceptSuggestion'),_0x2d55f6['enableCommand']('discardSuggestion'),_0x2d55f6['enableCommand']('acceptAllSuggestions'),_0x2d55f6['enableCommand']('discardAllSuggestions'),_0x2d55f6['enableCommand']('acceptSelectedSuggestions'),_0x2d55f6['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x9c8a48{static get['requires'](){return[_0x23ed5e];}['init'](){const _0x4ace9f=this['editor'],_0x24d877=_0x4ace9f['plugins']['get']('TrackChangesEditing');_0x24d877['enableCommand']('shiftEnter'),_0x4ace9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x4ace9f),{'priority':'high'}),_0x4ace9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x4ace9f),{'priority':'high'}),_0x4ace9f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x585d48,_0x562e45,_0x530915)=>{_0x530915['options']['showSuggestionHighlights']&&ge(_0x4ace9f,{'showActiveMarker':!0x1})(_0x585d48,_0x562e45,_0x530915);}),_0x24d877['descriptionFactory']['registerElementLabel']('softBreak',_0x3fe324=>o(_0x4ace9f['locale'],'ELEMENT_LINE_BREAK',_0x3fe324));}}function ge(_0x155f63,{showActiveMarker:_0x38ab6a=!0x0}={}){return(_0x20d7ac,_0x378c8c,_0x5ad064)=>{const _0x21f0f8=_0x155f63['plugins']['get']('TrackChangesEditing');if(!_0x5ad064['consumable']['test'](_0x378c8c['markerRange'],_0x20d7ac['name']))return;const _0x11700e=_0x155f63['model'];for(const _0x302a06 of _0x378c8c['markerRange']['getItems']()){if(!_0x302a06['is']('element','softBreak'))continue;const _0x1409fc='deletion'==_0x378c8c['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x529341}=_0x21f0f8['_splitMarkerName'](_0x378c8c['markerName']),_0xc54d66=_0x5ad064['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1409fc,'data-author-id':_0x529341}),_0x1334d2=_0x5ad064['mapper']['toViewPosition'](_0x11700e['createPositionBefore'](_0x302a06));_0x38ab6a&&_0x21f0f8['activeMarkers']['includes'](_0x378c8c['markerName'])&&_0x5ad064['writer']['addClass']('ck-suggestion-marker--active',_0xc54d66),_0x5ad064['writer']['insert'](_0x1334d2,_0xc54d66),_0x5ad064['mapper']['bindElementToMarker'](_0xc54d66,_0x378c8c['markerName']);}};}class St extends _0x9c8a48{['afterInit'](){const _0x718d4e=this['editor'],_0x58f91b=_0x718d4e['model'],_0x55d4a6=_0x718d4e['locale'];if(!_0x718d4e['plugins']['has']('StandardEditingModeEditing'))return;const _0x10008c=_0x718d4e['plugins']['get']('TrackChangesEditing'),_0x4a9848='restrictedEditingException',_0x476640=_0x718d4e['commands']['get'](_0x4a9848);_0x10008c['enableCommand'](_0x4a9848,(_0x2ead51,_0xd51b14={})=>{const _0x1e80bf=_0x58f91b['document']['selection'];if(_0x1e80bf['isCollapsed'])return void _0x2ead51(_0xd51b14);const _0x26c05c=void 0x0!==_0xd51b14['forceValue']?_0xd51b14['forceValue']:!_0x476640['value'];_0x58f91b['change'](()=>{const _0x27989e=Array['from'](_0x1e80bf['getRanges']());for(const _0x36ab1b of _0x27989e){const _0x225388=_0x26c05c?[_0x36ab1b]:io(_0x4a9848,_0x36ab1b,_0x58f91b);for(const _0x3e827e of _0x225388)_0x10008c['markInlineFormat'](_0x3e827e,{'commandName':_0x4a9848,'commandParams':[{'forceValue':_0x26c05c}]});}});}),_0x10008c['descriptionFactory']['registerDescriptionCallback'](_0x51e261=>{if('formatBlock'!=_0x51e261['type']&&'formatInline'!=_0x51e261['type'])return;const {data:_0x2e4f0c}=_0x51e261;return _0x2e4f0c&&_0x2e4f0c['commandName']==_0x4a9848?_0x2e4f0c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55d4a6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x55d4a6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x9c8a48{['afterInit'](){const _0x4ec493=this['editor'];if(!_0x4ec493['plugins']['has']('Style')||!_0x4ec493['plugins']['has']('DataSchema'))return;const _0x1e8875=_0x4ec493['plugins']['get']('TrackChangesEditing'),_0x251d60=_0x4ec493['locale'],_0xb88429=_0x4ec493['config']['get']('style')||{},_0x2a144c=_0x4ec493['plugins']['get']('GeneralHtmlSupport'),_0x3f9c30=_0x4ec493['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4ec493['plugins']['get']('DataSchema'),_0xb88429['definitions']);_0x1e8875['enableDefaultAttributesIntegration']('style');const _0x23fc59=new Set();for(const _0xc60e78 of _0x3f9c30['block']){const _0x54df8c=_0x2a144c['getGhsAttributeNameForElement'](_0xc60e78['element']);_0x23fc59['add'](_0x54df8c);}const _0x7d01fd=new Set();for(const _0x12983d of _0x3f9c30['inline']){const _0x3e97f5=_0x2a144c['getGhsAttributeNameForElement'](_0x12983d['element']);_0x7d01fd['add'](_0x3e97f5);for(const _0x76bbf5 of _0x12983d['ghsAttributes'])_0x7d01fd['add'](_0x76bbf5);}for(const _0x41662a of _0x23fc59)_0x1e8875['registerBlockAttribute'](_0x41662a),_0x1e8875['descriptionFactory']['registerAttributeLabel'](_0x41662a,o(_0x251d60,'FORMAT_STYLE'));for(const _0x4a7278 of _0x7d01fd)_0x1e8875['registerInlineAttribute'](_0x4a7278),_0x1e8875['descriptionFactory']['registerAttributeLabel'](_0x4a7278,o(_0x251d60,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34d000=this['editor'],_0x29f40d=_0x34d000['locale'];_0x34d000['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x296177=>{if('formatBlock'!=_0x296177['type']&&'formatInline'!=_0x296177['type'])return;const {data:_0x4284f8}=_0x296177;return _0x4284f8&&'style'===_0x4284f8['commandName']?_0x4284f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29f40d,'*Set\x20format:*\x20%0',_0x4284f8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x29f40d,'*Remove\x20format:*\x20%0',_0x4284f8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x9c8a48{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x14c08f){super(_0x14c08f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x440873=this['editor'],_0x4693ce=_0x440873['model']['document']['selection'];if(!_0x440873['plugins']['has']('TableEditing'))return;const _0x2df353=_0x440873['locale'],_0xa5b87a=_0x440873['plugins']['get']('TrackChangesEditing'),_0x47376d=_0x440873['plugins']['get']('TableUtils');_0xa5b87a['descriptionFactory']['registerElementLabel']('table',_0x3b2238=>o(_0x2df353,'ELEMENT_TABLE',_0x3b2238)),this['_setupColumnsRowsFixing'](),_0xa5b87a['enableCommand']('insertTable'),_0xa5b87a['enableCommand']('selectTableRow'),_0xa5b87a['enableCommand']('selectTableColumn');for(const _0x518546 of['insertTableRowAbove','insertTableRowBelow']){const _0x5640ee=_0x440873['commands']['get'](_0x518546);_0xa5b87a['enableCommand'](_0x518546,_0x5dfa48=>{_0x440873['model']['change'](_0x312b7=>{_0x5dfa48();const _0x2fee53='above'===_0x5640ee['order'],_0x515a62=_0x47376d['getSelectionAffectedTableCells'](_0x4693ce),_0x5f39dd=_0x47376d['getRowIndexes'](_0x515a62),_0x466574=_0x2fee53?_0x5f39dd['first']-0x1:_0x5f39dd['last']+0x1,_0x2bb7c6=_0x515a62[0x0]['findAncestor']('table'),_0x426660=_0x47376d['createTableWalker'](_0x2bb7c6,{'startRow':_0x466574,'endRow':_0x466574}),_0x32b095=Array['from'](_0x426660)['map'](_0x3f6e00=>_0x312b7['createRangeOn'](_0x3f6e00['cell']));_0xa5b87a['markMultiRangeInsertion'](_0x32b095,'tableRow');});});}for(const _0x1df8c4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5dbbc7=_0x440873['commands']['get'](_0x1df8c4);_0xa5b87a['enableCommand'](_0x1df8c4,_0xe1b759=>{_0x440873['model']['change'](_0x217bb1=>{_0xe1b759();const _0xa737f2='left'===_0x5dbbc7['order'],_0x49ac06=_0x47376d['getSelectionAffectedTableCells'](_0x4693ce),_0x4b84cc=_0x47376d['getColumnIndexes'](_0x49ac06),_0x76968b=_0xa737f2?_0x4b84cc['first']-0x1:_0x4b84cc['last']+0x1,_0x3acea6=_0x49ac06[0x0]['findAncestor']('table'),_0x5835a5=_0x47376d['createTableWalker'](_0x3acea6,{'startRow':0x0,'column':_0x76968b,'includeAllSlots':!0x1}),_0x57b268=Array['from'](_0x5835a5)['map'](_0x4242f0=>_0x217bb1['createRangeOn'](_0x4242f0['cell']));_0xa5b87a['markMultiRangeInsertion'](_0x57b268,'tableColumn');});});}for(const _0x12a537 of['removeTableRow','removeTableColumn']){const _0x3ff9f5=_0x12a537['substr'](0xb),_0x526a71=_0x3ff9f5['toLowerCase'](),_0xf0150e=_0x526a71['substr'](0x0,0x3)+'span',_0x1b0c06='table'+_0x3ff9f5,_0x509fb6='min'+_0x3ff9f5,_0x3ec729='max'+_0x3ff9f5;_0xa5b87a['enableCommand'](_0x12a537,()=>{_0x440873['model']['change'](_0x510b14=>{const _0x325eca=_0x47376d['getSelectionAffectedTableCells'](_0x4693ce),_0x151b92=_0x325eca[0x0]['findAncestor']('table');let _0x70ef23;if('removeTableRow'==_0x12a537){const _0x4da5bb=_0x47376d['getRowIndexes'](_0x325eca);_0x70ef23={'startRow':_0x4da5bb['first'],'endRow':_0x4da5bb['last'],'includeAllSlots':!0x0};}else{const _0x111f77=_0x47376d['getColumnIndexes'](_0x325eca);_0x70ef23={'startColumn':_0x111f77['first'],'endColumn':_0x111f77['last'],'includeAllSlots':!0x0};}const _0x39ee22=_0x47376d['createTableWalker'](_0x151b92,_0x70ef23),_0x22f137=Array['from'](_0x39ee22)['map'](({cell:_0x39135b})=>_0x39135b),_0x13ec07=be(_0x22f137['filter'](_0x507585=>_0x507585['hasAttribute'](_0xf0150e))),_0xc01579=be(_0x22f137['filter'](_0x527cc5=>!_0x527cc5['hasAttribute'](_0xf0150e)))['map'](_0x281064=>_0x510b14['createRangeOn'](_0x281064)),_0x2f7107=_0xa5b87a['markMultiRangeDeletion'](_0xc01579,_0x1b0c06);if(_0x2f7107&&('tableRow'==_0x2f7107['subType']||'tableColumn'==_0x2f7107['subType'])){const _0x550ebf=this['_getSuggestionCoords'](_0x2f7107);for(const _0x2b4899 of _0x13ec07){const _0x4f7be3=_0x510b14['createRangeOn'](_0x2b4899),_0xbb1443=_0x47376d['getCellLocation'](_0x2b4899),_0x5248cc=_0x2b4899['getAttribute'](_0xf0150e)-0x1,_0x1abe2a=_0x550ebf[_0x509fb6],_0x3d057a=_0x550ebf[_0x3ec729];_0x1abe2a<=_0xbb1443[_0x526a71]&&_0xbb1443[_0x526a71]+_0x5248cc<=_0x3d057a&&_0x2f7107['addRange'](_0x4f7be3);}}});});}function _0x2f6a06(_0x54dc73){const _0x183ea9=Array['from'](_0x4693ce['getRanges']())['map'](_0x4f9d61=>_0x7a70a6['fromRange'](_0x4f9d61));_0x440873['model']['change'](_0x573a79=>{const _0x3123f2=_0x573a79['batch'];_0x54dc73=_0x54dc73['filter'](_0x4bb8c8=>'$graveyard'!=_0x4bb8c8['root']['rootName']),_0x573a79['setSelection'](_0x54dc73),_0x440873['commands']['get']('removeTableRow')['refresh'](),_0x440873['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x440873['model']['enqueueChange'](()=>{_0x440873['model']['enqueueChange'](_0x3123f2,_0x23b2b1=>{const _0x4e8e26=_0x183ea9['filter'](_0x555956=>'$graveyard'!=_0x555956['root']['rootName']);_0x4e8e26['length']>0x0&&_0x23b2b1['setSelection'](_0x4e8e26);for(const _0x3287e0 of _0x183ea9)_0x3287e0['detach']();});});});}function _0x5edd3a(_0x907ea){_0x440873['model']['change'](_0x55f5cd=>{const _0x2826ff=Array['from'](_0x4693ce['getRanges']())['map'](_0x51a7b2=>_0x7a70a6['fromRange'](_0x51a7b2)),_0x47d3b5=[];for(const _0x3f6b21 of _0x907ea)for(const _0x2a02de of _0x3f6b21['getItems']({'shallow':!0x0}))_0x47d3b5['push'](_0x2a02de);for(const _0x675e16 of _0x47d3b5)'$graveyard'!=_0x675e16['root']['rootName']&&(_0x55f5cd['setSelection'](_0x55f5cd['createPositionAt'](_0x675e16,0x0)),_0x440873['commands']['get']('removeTableColumn')['refresh'](),_0x440873['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x33b6a4=_0x2826ff['filter'](_0x4dac72=>'$graveyard'!=_0x4dac72['root']['rootName']);_0x33b6a4['length']>0x0&&_0x55f5cd['setSelection'](_0x33b6a4);for(const _0x2c25e7 of _0x2826ff)_0x2c25e7['detach']();});}function _0x4ee6c3(_0xc2fe67,_0x4d81f1){return _0x4d81f1['every'](_0xb6f0fd=>_0xc2fe67['some'](_0xd0d78e=>_0xd0d78e['end']['isEqual'](_0xb6f0fd['start'])||_0xb6f0fd['end']['isEqual'](_0xd0d78e['start'])));}function _0x47d08f(_0x2b4991,_0x7ab9c4){return!_0x2b4991['some'](_0x33b582=>_0x7ab9c4['some'](_0x56319b=>_0x33b582['isIntersecting'](_0x56319b)))&&_0x2b4991['some'](_0x154626=>_0x7ab9c4['some'](_0x20b36f=>_0x154626['end']['isTouching'](_0x20b36f['start'])));}_0x440873['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7ad04f,_0x1b2d91,_0x496b9c)=>{if(!_0x496b9c['options']['showSuggestionHighlights'])return;const _0x4d373a=_0x1b2d91['item'];if(!_0x4d373a)return;const _0xf03d39=_0x496b9c['mapper']['toViewElement'](_0x4d373a);function _0x1be8c4(_0x45fea5){return Array['isArray'](_0x45fea5)?_0x45fea5:[_0x45fea5];}_0xf03d39&&'tableCell'===_0x4d373a['name']&&_0x36d78c(_0xf03d39,_0x496b9c['writer'],(_0x343920,_0xc273f1,_0x17e1ae)=>_0x17e1ae['addClass'](_0x1be8c4(_0xc273f1['classes']),_0x343920),(_0x21fcd5,_0x58620e,_0x3e5bb9)=>_0x3e5bb9['removeClass'](_0x1be8c4(_0x58620e['classes']),_0x21fcd5));},{'priority':'highest'}),_0xa5b87a['descriptionFactory']['registerDescriptionCallback'](_0x3470c6=>{if('insertion'!=_0x3470c6['type']&&'deletion'!=_0x3470c6['type'])return;const _0x3423ea=_0x3470c6['getContainedElement']();if(null!=_0x3423ea&&_0x3423ea['is']('element','table')){if('insertion'==_0x3470c6['type']){const _0x5cd52e=_0x3470c6['getItems']()['filter'](_0x23e91f=>_0x23e91f['is']('$textProxy'))['map'](_0x3eb1f3=>_0x3eb1f3['data']);if(_0x5cd52e['length'])return{'type':'insertion','content':o(_0x2df353,'*Insert:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5cd52e['join']('\x20')+'\x22'))};}if('deletion'==_0x3470c6['type']){const _0x9bf19d=_0x3470c6['getItems']()['filter'](_0x40984b=>_0x40984b['is']('$textProxy'))['map'](_0x444058=>_0x444058['data']);if(_0x9bf19d['length'])return{'type':'deletion','content':o(_0x2df353,'*Remove:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9bf19d['join']('\x20')+'\x22'))};}}}),_0xa5b87a['descriptionFactory']['registerDescriptionCallback'](_0x2cf835=>{if('tableRow'==_0x2cf835['subType']){const _0x5c49a1=_0x2cf835['getItems']()['filter'](_0x1ff550=>_0x1ff550['is']('$textProxy'))['map'](_0x480299=>_0x480299['data']),_0xe6dd5b=this['_getSuggestionCoords'](_0x2cf835),_0xd7225d=_0xe6dd5b['maxRow']-_0xe6dd5b['minRow']+0x1;if('insertion'==_0x2cf835['type'])return _0x5c49a1['length']?{'type':'insertion','content':o(_0x2df353,'*Insert:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd7225d,'\x22'+_0x5c49a1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2df353,'*Insert:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_ROW',_0xd7225d))};if('deletion'==_0x2cf835['type'])return _0x5c49a1['length']?{'type':'deletion','content':o(_0x2df353,'*Remove:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd7225d,'\x22'+_0x5c49a1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2df353,'*Remove:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_ROW',_0xd7225d))};}if('tableColumn'==_0x2cf835['subType']){const _0x15096d=_0x2cf835['getItems']()['filter'](_0x561664=>_0x561664['is']('$textProxy'))['map'](_0x57e719=>_0x57e719['data']),_0x15d0ba=this['_getSuggestionCoords'](_0x2cf835),_0x3f86a8=_0x15d0ba['maxColumn']-_0x15d0ba['minColumn']+0x1;if('insertion'==_0x2cf835['type'])return _0x15096d['length']?{'type':'insertion','content':o(_0x2df353,'*Insert:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3f86a8,'\x22'+_0x15096d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2df353,'*Insert:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_COLUMN',_0x3f86a8))};if('deletion'==_0x2cf835['type'])return _0x15096d['length']?{'type':'deletion','content':o(_0x2df353,'*Remove:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3f86a8,'\x22'+_0x15096d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2df353,'*Remove:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_COLUMN',_0x3f86a8))};}}),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2f6a06),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2f6a06),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5edd3a),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5edd3a),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ee6c3),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ee6c3),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x47d08f),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x47d08f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1d4c7d=this['editor'],_0x4e0c18=_0x1d4c7d['model']['document']['selection'];return(_0x2409c6,_0x31133b)=>{_0x1d4c7d['model']['change'](_0xd82f84=>{const {commandName:_0x15b226,commandParams:_0x26d4d7}=_0x31133b;let _0xd267fb=_0x2409c6[0x0]['end']['nodeBefore'];_0x26d4d7&&_0x26d4d7[0x0]&&!0x1===_0x26d4d7[0x0]['forceValue']&&(_0xd267fb=_0x2409c6[0x0]['start']['nodeAfter']);const _0x508250=_0xd82f84['createRangeIn'](_0xd267fb);if('$graveyard'==_0x508250['root']['rootName'])return;const _0xbb22d3=Array['from'](_0x4e0c18['getRanges']())['map'](_0x133bde=>_0x7a70a6['fromRange'](_0x133bde));_0xd82f84['setSelection'](_0x508250),_0x1d4c7d['commands']['get'](_0x15b226)['refresh'](),_0x26d4d7['push']({'forceDefaultExecution':!0x0}),_0x1d4c7d['execute'](_0x15b226,..._0x26d4d7);const _0x310502=_0xbb22d3['filter'](_0x3e4042=>'$graveyard'!=_0x3e4042['root']['rootName']);_0x310502['length']>0x0&&_0xd82f84['setSelection'](_0x310502);for(const _0x478fcf of _0xbb22d3)_0x478fcf['detach']();});};}['_getCoordsForCells'](_0x41d37b){const _0x1c4073=this['editor']['plugins']['get']('TableUtils');let _0x15a018=Number['MAX_SAFE_INTEGER'],_0x487d85=Number['MIN_SAFE_INTEGER'],_0x13a5cd=Number['MAX_SAFE_INTEGER'],_0x1269dd=Number['MIN_SAFE_INTEGER'];for(const _0x51ac67 of _0x41d37b){if('$graveyard'==_0x51ac67['root']['rootName'])continue;const {row:_0x275717,column:_0x1f6af0}=_0x1c4073['getCellLocation'](_0x51ac67),_0x49e63e=_0x51ac67['hasAttribute']('rowspan')?_0x51ac67['getAttribute']('rowspan')-0x1:0x0,_0x5eef7c=_0x51ac67['hasAttribute']('colspan')?_0x51ac67['getAttribute']('colspan')-0x1:0x0;_0x15a018=_0x275717<_0x15a018?_0x275717:_0x15a018,_0x487d85=_0x275717+_0x49e63e>_0x487d85?_0x275717+_0x49e63e:_0x487d85,_0x13a5cd=_0x1f6af0<_0x13a5cd?_0x1f6af0:_0x13a5cd,_0x1269dd=_0x1f6af0+_0x5eef7c>_0x1269dd?_0x1f6af0+_0x5eef7c:_0x1269dd;}return{'minRow':_0x15a018,'maxRow':_0x487d85,'minColumn':_0x13a5cd,'maxColumn':_0x1269dd};}['_setupColumnsRowsFixing'](){const _0x54a243=this['editor'],_0x999449=_0x54a243['plugins']['get']('TrackChangesEditing'),_0x864ef0=_0x54a243['plugins']['get']('TableUtils');_0x54a243['model']['document']['on']('change:data',()=>{const _0x2cfb9b=Array['from'](_0x54a243['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x598e1f,data:_0x5425a3}of _0x2cfb9b){const {group:_0x503140,id:_0x237fcf,subType:_0x42e10b}=_0x999449['_splitMarkerName'](_0x598e1f);if('suggestion'!=_0x503140)continue;if(null!=_0x5425a3['oldRange'])continue;const _0x13a8c8=_0x999449['getSuggestion'](_0x237fcf);this['_tablePostFixingSubtypes']['includes'](_0x42e10b)&&this['_tableSuggestions']['add'](_0x13a8c8);}},{'priority':'low'});const _0x276bd2=(_0xe604e8,_0x299631)=>{let _0x20da2d=!0x1;const _0x1d9077=_0x299631['createRangeOn'](_0xe604e8),_0x48e44b=_0xe604e8['findAncestor']('table'),_0xc4340f=_0x864ef0['getCellLocation'](_0xe604e8);for(const _0xcc21bc of this['_tableSuggestions']){const _0x41e589=_0xcc21bc['subType'],_0x3ea7e1=_0x41e589['startsWith']('tablePaste'),_0x20aed7=_0x41e589['substr'](_0x3ea7e1?0xa:0x5),_0x3a14b3=_0x20aed7['toLowerCase'](),_0x38d8b6=_0x3a14b3['substr'](0x0,0x3)+'span',_0x57cc88='min'+_0x20aed7,_0x33447a='max'+_0x20aed7;if(!_0xcc21bc['isInContent'])continue;if(_0x48e44b!=_0xcc21bc['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xcc21bc['isIntersectingWithRange'](_0x1d9077))continue;const _0xefe01f=_0xe604e8['hasAttribute'](_0x38d8b6)?_0xe604e8['getAttribute'](_0x38d8b6)-0x1:0x0,_0x5cbfef=this['_getSuggestionCoords'](_0xcc21bc),_0x86f658=_0x5cbfef[_0x57cc88],_0x1ea44f=_0x5cbfef[_0x33447a];_0x86f658<=_0xc4340f[_0x3a14b3]&&_0xc4340f[_0x3a14b3]+_0xefe01f<=_0x1ea44f&&(_0xcc21bc['addRange'](_0x1d9077),_0x20da2d=!0x0);}return _0x20da2d;};_0x54a243['model']['document']['registerPostFixer'](_0x267ab8=>{let _0x192f78=!0x1;for(const _0x466888 of _0x54a243['model']['document']['differ']['getChanges']())if('insert'==_0x466888['type']){if('tableRow'==_0x466888['name']){for(const _0x22f835 of _0x466888['position']['nodeAfter']['getChildren']())_0x192f78=_0x192f78||_0x276bd2(_0x22f835,_0x267ab8);}else'tableCell'==_0x466888['name']&&(_0x192f78=_0x192f78||_0x276bd2(_0x466888['position']['nodeAfter'],_0x267ab8));}return _0x192f78;});}['_getSuggestionCoords'](_0x365963){return this['_getCoordsForCells'](_0x365963['getRanges']()['map'](_0x29f34d=>_0x29f34d['start']['nodeAfter']));}}function be(_0xde2c3f){return Array['from'](new Set(_0xde2c3f)['values']());}class vt extends _0x9c8a48{static get['requires'](){return[It];}['afterInit'](){const _0x272f50=this['editor'],_0x4918d7=_0x272f50['model']['document']['selection'],_0x50147b=_0x272f50['locale'];if(!_0x272f50['plugins']['has']('TableEditing'))return;const _0x13e220=_0x272f50['plugins']['get']('TrackChangesEditing'),_0x4b5c24=_0x272f50['plugins']['get']('TableUtils'),_0x3e8f50=_0x272f50['plugins']['get'](It);_0x3e8f50['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x13e220['enableCommand']('mergeTableCells',()=>{const _0x486fe8=_0x4b5c24['getSelectionAffectedTableCells'](_0x272f50['model']['document']['selection']);_0x272f50['model']['change'](()=>{_0x13e220['markMultiRangeBlockFormat'](_0x486fe8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x272f50['commands']['get']('mergeTableCells')['on']('execute',(_0x167f28,_0x2eb012)=>{_0x272f50['commands']['get']('trackChanges')['value']&&(_0x2eb012['length']>0x0&&_0x2eb012[_0x2eb012['length']-0x1]&&_0x2eb012[_0x2eb012['length']-0x1]['forceDefaultExecution']||_0x13e220['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x167f28['stop']());},{'priority':'highest'});for(const _0x5a8b0d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3841e6=_0x272f50['commands']['get'](_0x5a8b0d);_0x13e220['enableCommand'](_0x5a8b0d,()=>{const _0x3d4113=_0x272f50['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x492372=>_0x492372['is']('element','tableCell')),_0x26ed5d=_0x3841e6['value'];_0x272f50['model']['change'](()=>{_0x13e220['markMultiRangeBlockFormat']([_0x3d4113,_0x26ed5d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x38d2ad of['splitTableCellVertically','splitTableCellHorizontally']){const _0xe37f45=_0x272f50['commands']['get'](_0x38d2ad);_0x13e220['enableCommand'](_0x38d2ad,()=>{const _0x28a0c8=_0x4b5c24['getSelectionAffectedTableCells'](_0x272f50['model']['document']['selection'])[0x0],_0x804ee1=_0x28a0c8['findAncestor']('table'),{column:_0x3f99fd,row:_0x1908ae}=_0x4b5c24['getCellLocation'](_0x28a0c8);let _0x4dcdca=[];if('horizontally'==_0xe37f45['direction']){const _0x1899a1=_0x4b5c24['createTableWalker'](_0x804ee1,{'startRow':_0x1908ae,'endRow':_0x1908ae,'includeAllSlots':!0x0});_0x4dcdca=Array['from'](_0x1899a1)['map'](_0x2f97dc=>_0x2f97dc['cell']);}else{const _0x1bb22e=_0x4b5c24['createTableWalker'](_0x804ee1,{'column':_0x3f99fd,'includeAllSlots':!0x0});_0x4dcdca=Array['from'](_0x1bb22e)['map'](_0x13ea01=>_0x13ea01['cell']);}_0x272f50['model']['change'](_0x52b83f=>{_0x13e220['markBlockFormat'](_0x52b83f['createRangeOn'](_0x28a0c8),{'commandName':_0x38d2ad,'commandParams':[]},_0x4dcdca,_0x38d2ad);});});}_0x13e220['descriptionFactory']['registerDescriptionCallback'](_0x51d812=>{if('formatBlock'!=_0x51d812['type']&&'formatInline'!=_0x51d812['type'])return;const {data:_0x3e2f74}=_0x51d812;return _0x3e2f74&&'mergeTableCells'==_0x3e2f74['commandName']?{'type':'format','content':o(_0x50147b,'*Merge\x20cells*')}:void 0x0;}),_0x13e220['descriptionFactory']['registerDescriptionCallback'](_0x519689=>{if('formatBlock'!=_0x519689['type']&&'formatInline'!=_0x519689['type'])return;const {data:_0x2a497f}=_0x519689;return _0x2a497f?'splitTableCellVertically'==_0x2a497f['commandName']?{'type':'format','content':o(_0x50147b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a497f['commandName']?{'type':'format','content':o(_0x50147b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x303334=_0x3e8f50['_acceptFormatSuggestionCallbackFactory']();for(const _0x372607 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x13e220['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x372607,'accept',_0x303334);for(const _0x2f1806 of['splitTableCellVertically','splitTableCellHorizontally'])_0x13e220['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f1806,'accept',_0x303334);_0x13e220['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3a7145=>{_0x272f50['model']['change'](_0x55f337=>{const _0x46b3b9=Array['from'](_0x4918d7['getRanges']())['map'](_0x2a5913=>_0x7a70a6['fromRange'](_0x2a5913));_0x55f337['setSelection'](_0x3a7145),_0x272f50['commands']['get']('mergeTableCells')['refresh'](),_0x272f50['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x370b1a=_0x46b3b9['filter'](_0xcbc646=>'$graveyard'!=_0xcbc646['root']['rootName']);_0x370b1a['length']>0x0&&_0x55f337['setSelection'](_0x370b1a);for(const _0x4be06f of _0x46b3b9)_0x4be06f['detach']();});});for(const _0x28b79c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x577c14=_0x272f50['commands']['get'](_0x28b79c);_0x577c14['on']('set:isEnabled',(_0xa74217,_0x112a5f,_0x3d255f)=>{if(_0x3d255f){const _0x234288=_0x272f50['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x146f28=>_0x146f28['is']('element','tableCell'));this['_areMergableCells'](_0x577c14['value'],_0x234288)||(_0xa74217['return']=!0x1,_0xa74217['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf85246=this['editor']['commands']['get']('mergeTableCells'),_0x327a61=this['editor']['plugins']['get']('TableUtils');if(!_0xf85246['isEnabled'])return!0x1;const _0x35e8ba=_0x327a61['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5364a5 of _0x35e8ba)for(const _0x2fc19c of _0x35e8ba)if(_0x5364a5!=_0x2fc19c&&!this['_areMergableCells'](_0x5364a5,_0x2fc19c))return!0x1;return!0x0;}['_areMergableCells'](_0x1c7f5c,_0x3b8e43){const _0x10c1af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b051a=this['editor']['model']['createRangeOn'](_0x1c7f5c),_0x2ba0b5=this['editor']['model']['createRangeOn'](_0x3b8e43),_0x438d94=new Set(),_0x4eead4=new Set();for(const _0x234d78 of _0x10c1af['getSuggestions']())if(('insertion'==_0x234d78['type']||'deletion'==_0x234d78['type']||'mergeTableCells'==_0x234d78['subType'])&&_0x234d78['isInContent']){for(const _0x1564db of _0x234d78['getRanges']())_0x1564db['containsRange'](_0x3b051a,!0x0)&&_0x438d94['add'](_0x234d78['type']+':'+_0x234d78['author']['id']),_0x1564db['containsRange'](_0x2ba0b5,!0x0)&&_0x4eead4['add'](_0x234d78['type']+':'+_0x234d78['author']['id']);}if(_0x438d94['size']!=_0x4eead4['size'])return!0x1;for(const _0x4ac932 of _0x438d94)if(!_0x4eead4['has'](_0x4ac932))return!0x1;return!0x0;}}class Ct extends _0x9c8a48{static get['requires'](){return[It];}['afterInit'](){const _0x52a00d=this['editor'];if(!_0x52a00d['plugins']['has']('TableEditing'))return;const _0x202265=_0x52a00d['locale'],_0xd53356=_0x52a00d['plugins']['get']('TrackChangesEditing');_0xd53356['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xd53356['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xd53356['registerBlockAttribute']('headingRows'),_0xd53356['registerBlockAttribute']('headingColumns'),_0xd53356['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x202265,'FORMAT_HEADER_ROW')),_0xd53356['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x202265,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x28506f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcaac79=this['editor']['plugins']['get']('TableUtils'),_0x39fc55=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x56e3f5({showActiveMarker:_0x473773=!0x0,setDataAttribute:_0x219dc5=!0x0}={}){return(_0x152e81,_0x59028a,_0x2daeb1)=>{const {type:_0x2d8cd0,id:_0x26875e}=_0x28506f['_splitMarkerName'](_0x59028a['markerName']),_0x348458=_0x28506f['getSuggestion'](_0x26875e),_0x1bc087=_0x348458['data'];if('formatBlock'!=_0x348458['type']||!_0x1bc087||'setTableColumnHeader'!=_0x1bc087['commandName'])return;if(_0x59028a['item'])return void _0x152e81['stop']();if(!_0x2daeb1['consumable']['consume'](_0x59028a['markerRange'],_0x152e81['name']))return;const _0x724ad2=_0x59028a['markerRange']['start']['nodeAfter'],_0x42e6cf=_0x59028a['markerRange']['end']['nodeBefore'],_0x18bbba=_0x724ad2['parent']['parent'],{column:_0x3b1fde}=_0xcaac79['getCellLocation'](_0x724ad2),{column:_0x2fe58d}=_0xcaac79['getCellLocation'](_0x42e6cf);for(let _0x1776a7=_0x3b1fde;_0x1776a7<=_0x2fe58d;_0x1776a7++){const _0x283618=_0xcaac79['createTableWalker'](_0x18bbba,{'column':_0x1776a7,'includeAllSlots':!0x1});for(const _0x4c3ab9 of _0x283618){const _0x19464f=_0x4c3ab9['cell'],_0x3951ba=_0x2daeb1['mapper']['toViewElement'](_0x19464f);_0x2daeb1['writer']['addClass']('ck-suggestion-marker-'+_0x2d8cd0,_0x3951ba),_0x219dc5&&_0x2daeb1['writer']['setAttribute']('data-suggestion',_0x26875e,_0x3951ba),_0x2daeb1['mapper']['bindElementToMarker'](_0x3951ba,_0x59028a['markerName']),_0x473773&&(_0x28506f['activeMarkers']['includes'](_0x59028a['markerName'])?_0x2daeb1['writer']['addClass']('ck-suggestion-marker--active',_0x3951ba):_0x2daeb1['writer']['removeClass']('ck-suggestion-marker--active',_0x3951ba));}}};}_0x28506f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x39fc55),_0x28506f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x39fc55),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x56e3f5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34a9f1,_0x2d37cb,_0x149cbe)=>{_0x149cbe['options']['showSuggestionHighlights']&&_0x56e3f5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34a9f1,_0x2d37cb,_0x149cbe);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x407dbe,_0x5a0daf,_0x20c79c)=>{const {type:_0x4614f9,id:_0x1dfc66}=_0x28506f['_splitMarkerName'](_0x5a0daf['markerName']),_0x17649d=_0x28506f['getSuggestion'](_0x1dfc66),_0x20434a=_0x17649d['data'];if('formatBlock'!=_0x17649d['type']||!_0x20434a||'setTableColumnHeader'!=_0x20434a['commandName'])return;const _0x2f3f44=_0x20c79c['mapper']['markerNameToElements'](_0x5a0daf['markerName']);if(_0x2f3f44){for(const _0x523e2e of _0x2f3f44)_0x20c79c['writer']['removeClass']('ck-suggestion-marker-'+_0x4614f9,_0x523e2e),_0x20c79c['writer']['removeClass']('ck-suggestion-marker--active',_0x523e2e),_0x20c79c['writer']['removeAttribute']('data-suggestion',_0x523e2e),_0x20c79c['mapper']['unbindElementFromMarkerName'](_0x523e2e,_0x5a0daf['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x382b29=this['editor'],_0x3dc9b9=_0x382b29['locale'];function _0x1cc73f(_0x42d781){return{'type':'format','content':o(_0x3dc9b9,'*Format:*\x20%0',_0x42d781)};}_0x382b29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x326033=>{if('formatBlock'!=_0x326033['type'])return;const {data:_0x392277}=_0x326033;if(_0x392277){if('setTableRowHeader'==_0x392277['commandName']){const _0x50da19=_0x392277['commandParams'][0x0]['forceValue'];return _0x1cc73f(o(_0x3dc9b9,_0x50da19?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x392277['commandName']){const _0x23f260=_0x392277['commandParams'][0x0]['forceValue'];return _0x1cc73f(o(_0x3dc9b9,_0x23f260?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0xd5f515=>[_0xd5f515,null]));class _t extends _0x9c8a48{static get['requires'](){return[It];}['afterInit'](){const _0x3568cc=this['editor'];if(!_0x3568cc['plugins']['has']('TableClipboard'))return;const _0x18974b=_0x3568cc['plugins']['get']('TrackChangesEditing'),_0x5c5e94=_0x3568cc['plugins']['get']('TableUtils'),_0x5efefa=_0x3568cc['plugins']['get'](It),_0x954ff2=_0x3568cc['plugins']['get']('TableClipboard');_0x5efefa['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3568cc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3568cc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x503e15=null;_0x3568cc['model']['on']('insertContent',(_0x3d8edd,_0x2e07d1)=>{const [_0x74c6cf,_0x22e71c]=_0x2e07d1,_0xae73fd=_0x2e07d1[_0x2e07d1['length']-0x1];_0xae73fd&&_0xae73fd['forceDefaultExecution']||_0x18974b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2077c5,_0x4dfbcf,_0x8d62d3,_0x28f014,_0x256681){if(_0x4dfbcf&&!_0x4dfbcf['is']('documentSelection'))return!0x1;const _0x5432b0=_0x256681['getTableIfOnlyTableInContent'](_0x2077c5,_0x8d62d3);if(!_0x5432b0||!Re(_0x5432b0,void 0x0,_0x28f014))return!0x1;const _0x216ff4=_0x28f014['getSelectionAffectedTableCells'](_0x8d62d3['document']['selection']);if(!_0x216ff4['length'])return!0x1;const _0x14c44e=_0x216ff4[0x0]['findAncestor']('table'),_0x543d19=_0x28f014['getRowIndexes'](_0x216ff4),_0x4669bd=_0x28f014['getColumnIndexes'](_0x216ff4),_0x59ac64={'startRow':_0x543d19['first'],'endRow':_0x543d19['last'],'startColumn':_0x4669bd['first'],'endColumn':_0x4669bd['last']};return 0x1==_0x216ff4['length']&&(_0x59ac64['endRow']+=_0x28f014['getRows'](_0x5432b0)-0x1,_0x59ac64['endColumn']+=_0x28f014['getColumns'](_0x5432b0)-0x1),Re(_0x14c44e,_0x59ac64,_0x28f014);}(_0x74c6cf,_0x22e71c,_0x3568cc['model'],_0x5c5e94,_0x954ff2)&&(_0x3d8edd['stop'](),_0x503e15={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3568cc['model']['change'](()=>{_0x3568cc['model']['insertContent'](_0x2e07d1[0x0],_0x2e07d1[0x1],_0x2e07d1[0x2],{'forceDefaultExecution':!0x0});const _0x2fa455=_0x5b34d0(),{rowInsertionRanges:_0x377473,columnInsertionRanges:_0x5ea430,insertionRanges:_0x55677b,deletionRanges:_0x34907a,cells:_0x49578a}=_0x503e15;_0x377473['length']&&_0x18974b['markMultiRangeInsertion'](_0x377473,'tablePasteRow',{'tablePasteChainId':_0x2fa455}),_0x5ea430['length']&&_0x18974b['markMultiRangeInsertion'](_0x5ea430,'tablePasteColumn',{'tablePasteChainId':_0x2fa455}),_0x55677b['length']&&(_0x18974b['markMultiRangeInsertion'](_0x55677b,'tablePaste',{'tablePasteChainId':_0x2fa455,'skipNestingCheck':!0x0}),_0x55677b['forEach'](_0x139814=>_0x139814['detach']?.())),_0x34907a['length']&&(_0x18974b['markMultiRangeDeletion'](_0x34907a,'tablePaste',{'tablePasteChainId':_0x2fa455,'skipNestingCheck':!0x0}),_0x34907a['forEach'](_0x4b6c72=>_0x4b6c72['detach']?.()));const _0x55289f=_0x18974b['markMultiRangeBlockFormat'](_0x49578a['map'](({element:_0x42c230})=>_0x42c230),{'formatGroupId':_0x5b34d0()},[],'tablePasteCell',{'tablePasteChainId':_0x2fa455});if(_0x55289f){const _0xfab400=_0x55289f['getMarkers'](),_0x16460f=[];for(const {element:_0x38d58a,attributes:_0x232a77}of _0x49578a){if(!_0x232a77)continue;const _0x3d377b=_0x3568cc['model']['createRangeOn'](_0x38d58a),_0x8c9fba=_0xfab400['find'](_0x2fe6f2=>_0x2fe6f2['getRange']()['isEqual'](_0x3d377b));_0x8c9fba&&_0x16460f['push']([_0x8c9fba['name'],_0x232a77]);}_0x16460f['length']&&_0x55289f['setAttribute']('markerAttributes',Object['fromEntries'](_0x16460f));}_0x503e15=null;}));},{'priority':_0x19cb17['high']+0xa}),_0x3568cc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x234b5a,_0x5e7c75)=>{const [_0x5c74a5,_0x22cf90,,_0x22f602]=_0x5e7c75;if(!_0x503e15)return;_0x234b5a['stop']();const _0x576aa1=_0x5c74a5['cell'],_0x172027=_0x22cf90,_0x3ad13b=ke(_0x576aa1),_0x6826c9=ke(_0x172027);_0x234b5a['return']=_0x576aa1;let _0x2588b0=null,_0xbf25b3=null;if(_0x6826c9||_0x3ad13b){if(_0x3ad13b&&!_0x6826c9){_0x22f602['remove'](_0x576aa1['getChild'](0x0));for(const _0x18066b of Array['from'](_0x172027['getChildren']()))_0x22f602['insert'](_0x18066b,_0x576aa1,'end');const _0x4cc8c6=_0x503e15['rowInsertionIndexes']['includes'](_0x5c74a5['row']),_0x49086d=_0x503e15['columnInsertionIndexes']['includes'](_0x5c74a5['column']);_0x4cc8c6||_0x49086d||(_0x2588b0=_0x7a70a6['fromRange'](_0x22f602['createRangeIn'](_0x576aa1)));}else _0x6826c9&&!_0x3ad13b&&(_0xbf25b3=_0x22f602['createRangeIn'](_0x576aa1));}else{const _0x1c1358=_0x22f602['createElement']('tableCellSuggestion'),_0x20fc0f=_0x22f602['createElement']('tableCellSuggestion');_0x22f602['wrap'](_0x22f602['createRangeIn'](_0x576aa1),_0x20fc0f),_0x22f602['insert'](_0x1c1358,_0x576aa1,0x0);for(const _0x113f6c of Array['from'](_0x172027['getChildren']()))_0x22f602['insert'](_0x113f6c,_0x1c1358,'end');_0x2588b0=_0x7a70a6['fromRange'](_0x22f602['createRangeOn'](_0x1c1358)),_0xbf25b3=_0x7a70a6['fromRange'](_0x22f602['createRangeOn'](_0x20fc0f));}const _0x4c72ce=Array['from'](_0x172027['getAttributes']())['filter'](([_0x3634d2])=>Pe['includes'](_0x3634d2));_0x503e15['cells']['push']({'element':_0x576aa1,'attributes':_0x4c72ce['length']?Object['fromEntries'](_0x4c72ce):null}),_0x2588b0&&_0x503e15['insertionRanges']['push'](_0x2588b0),_0xbf25b3&&_0x503e15['deletionRanges']['push'](_0xbf25b3);},{'priority':'high'}),_0x5c5e94['on']('insertColumns',(_0x44efb5,_0x302dbf)=>{const [_0x3323d1,_0x199828={}]=_0x302dbf;if(!_0x503e15)return;const _0x51cc91=_0x199828['at']||0x0,_0x57a0ce=_0x199828['columns']||0x1;_0x503e15['columnInsertionIndexes']=new Array(_0x57a0ce)['fill'](_0x51cc91)['map']((_0x3637b1,_0x5ef92e)=>_0x3637b1+_0x5ef92e);for(const {cell:_0x5788b5}of _0x5c5e94['createTableWalker'](_0x3323d1,{'startColumn':_0x51cc91,'endColumn':_0x51cc91+_0x57a0ce-0x1}))_0x503e15['columnInsertionRanges']['push'](_0x3568cc['model']['createRangeOn'](_0x5788b5));},{'priority':'low'}),_0x5c5e94['on']('insertRows',(_0x22cc44,_0xcf1cb7)=>{const [_0x4f666c,_0x570bc2={}]=_0xcf1cb7;if(!_0x503e15)return;const _0x3b717e=_0x570bc2['at']||0x0,_0x343e96=_0x570bc2['rows']||0x1;_0x503e15['rowInsertionIndexes']=new Array(_0x343e96)['fill'](_0x3b717e)['map']((_0xae36d8,_0x490be1)=>_0xae36d8+_0x490be1);for(const {cell:_0x1faa84}of _0x5c5e94['createTableWalker'](_0x4f666c,{'startRow':_0x3b717e,'endRow':_0x3b717e+_0x343e96-0x1}))_0x503e15['rowInsertionRanges']['push'](_0x3568cc['model']['createRangeOn'](_0x1faa84));},{'priority':'low'}),_0x18974b['descriptionFactory']['registerDescriptionCallback'](_0x13cad4=>{if(_0x13cad4['subType']&&_0x13cad4['subType']['startsWith']('tablePaste'))return _0x13cad4['previous']?{}:{'type':'insertion','content':o(_0x3568cc['locale'],'*Replace\x20table\x20cells*')};});const _0x3f3541=()=>!0x1;for(const _0x366bc7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x18974b['_suggestionFactory']['registerCustomCallback']('insertion',_0x366bc7,'join',_0x3f3541),_0x18974b['_suggestionFactory']['registerCustomCallback']('deletion',_0x366bc7,'join',_0x3f3541),_0x18974b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x366bc7,'join',_0x3f3541);_0x18974b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3f3541),_0x18974b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x184191,_0x26568b,_0x23a2e0)=>{const _0x53e9e8=_0x184191['map'](_0x2a3316=>_0x2a3316['getContainedElement']())['filter'](_0x5a28c6=>_0x5a28c6),_0x202b1a=new Map(_0x53e9e8['map'](_0x575448=>[_0x575448,null]));if(_0x503e15){for(const {element:_0x5d13ed,attributes:_0x269a5c}of _0x503e15['cells'])_0x269a5c&&_0x202b1a['set'](_0x5d13ed,_0x269a5c);}else{if(_0x23a2e0&&_0x23a2e0['markerAttributes'])for(const [_0x57def0,_0x4a0e22]of Object['entries'](_0x23a2e0['markerAttributes'])){const _0x186e5b=_0x3568cc['model']['markers']['get'](_0x57def0),_0x15fda1=_0x186e5b?_0x186e5b['getRange']()['getContainedElement']():null;_0x15fda1&&_0x202b1a['set'](_0x15fda1,_0x4a0e22);}}_0x3568cc['model']['change'](_0x1e5551=>{for(const [_0x48a9d2,_0x330d5b]of _0x202b1a)_0x1e5551['setAttributes']({...we,..._0x330d5b},_0x48a9d2);});});const _0x28b14c=(_0x1df508,_0x55fccb)=>{_0x18974b['_suggestionFactory']['registerCustomCallback'](_0x1df508,'tablePaste',_0x55fccb,(_0x3f0459,_0x408bc2,_0x12f5f9)=>{_0x3568cc['model']['change'](_0xa5c271=>{const _0x39d726=[];for(const _0x83c27d of _0x3f0459){const _0x210439=_0x83c27d['start']['nodeAfter'];_0x210439['is']('element','tableCellSuggestion')&&_0x39d726['push'](_0x210439);}_0x18974b['_suggestionFactory']['getSuggestionCallback'](_0x1df508,null,_0x55fccb)(_0x3f0459,_0x408bc2,_0x12f5f9);for(const _0x322f32 of _0x39d726)'$graveyard'!=_0x322f32['root']['rootName']&&_0xa5c271['unwrap'](_0x322f32);});});};_0x28b14c('insertion','accept'),_0x28b14c('insertion','discard'),_0x28b14c('deletion','accept'),_0x28b14c('deletion','discard'),_0x18974b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1323fe=>{const _0x28c4b1=_0x1323fe['map'](_0x28fd81=>_0x28fd81['getContainedElement']()),_0x16504c=_0x28c4b1[0x0]['findAncestor']('table'),{minRow:_0x2879ce,maxRow:_0x5e64d5}=_0x5efefa['_getCoordsForCells'](_0x28c4b1);_0x5c5e94['removeRows'](_0x16504c,{'at':_0x2879ce,'rows':_0x5e64d5-_0x2879ce+0x1});}),_0x18974b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1179e4=>{const _0xfbe193=_0x1179e4['map'](_0x4d6608=>_0x4d6608['getContainedElement']()),_0x2de128=_0xfbe193[0x0]['findAncestor']('table'),{minColumn:_0x79cf51,maxColumn:_0x3a8d8a}=_0x5efefa['_getCoordsForCells'](_0xfbe193);_0x5c5e94['removeColumns'](_0x2de128,{'at':_0x79cf51,'columns':_0x3a8d8a-_0x79cf51+0x1});});const _0x28344c=(_0x55645c,_0x4450d6)=>{if(!_0x4450d6['subType']||!_0x4450d6['subType']['startsWith']('tablePaste'))return;const _0x4aeef5=_0x4450d6['attributes']['tablePasteChainId'],_0x442e59=_0x18974b['getSuggestions']()['filter'](_0x522330=>_0x522330['isInContent']&&_0x522330['attributes']&&_0x522330['attributes']['tablePasteChainId']==_0x4aeef5);_0x442e59['length']&&_0x4450d6['getAllAdjacentSuggestions']()['length']!=_0x442e59['length']&&_0x442e59['reduce']((_0x559f90,_0x4a1003)=>(_0x559f90['next']=_0x4a1003,_0x4a1003['previous']=_0x559f90,_0x4a1003));};function _0x2785ad(_0x12695a,_0x1755c7=!0x0){const {id:_0x5c7454,authorId:_0x252461}=_0x18974b['_splitMarkerName'](_0x12695a['markerName']),_0x3ec402=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x10b0f9=_0x18974b['activeMarkers']['includes'](_0x12695a['markerName']);return _0x10b0f9&&_0x3ec402['push']('ck-suggestion-marker--active'),{'classes':_0x3ec402,'attributes':{'data-suggestion':_0x5c7454,'data-author-id':_0x252461},'priority':_0x10b0f9&&_0x1755c7?0xbc2:0xbb8};}_0x18974b['on']('suggestionLoaded',_0x28344c,{'priority':'high'}),_0x18974b['on']('suggestionUnloaded',_0x28344c,{'priority':'high'}),_0x3568cc['model']['document']['registerPostFixer'](()=>{let _0x4dc4c0=!0x1;const _0x56cc84=Array['from'](_0x3568cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10cd7c,data:_0x56c16c}of _0x56cc84){const {group:_0x44bda5,type:_0x15d486,id:_0x3ed93e}=_0x18974b['_splitMarkerName'](_0x10cd7c);if('suggestion'!=_0x44bda5||'deletion'!=_0x15d486||_0x56c16c['oldRange'])continue;if(!_0x18974b['hasSuggestion'](_0x3ed93e))continue;const _0x38e112=_0x18974b['getSuggestion'](_0x3ed93e)['getRanges'](),_0x50fe41=_0x3568cc['plugins']['get']('Users')['me'];for(const _0x37c7c0 of _0x18974b['getSuggestions']()){if(!_0x37c7c0['isInContent']||_0x37c7c0['author']!=_0x50fe41)continue;if('formatBlock'!=_0x37c7c0['type']||'tablePasteCell'!=_0x37c7c0['subType'])continue;if(_0x37c7c0['getRanges']()['every'](_0x4077c=>_0x38e112['some'](_0x17f84a=>_0x17f84a['containsRange'](_0x4077c,!0x0)))){for(const _0x5084ba of _0x37c7c0['getAllAdjacentSuggestions']())_0x5084ba['isInContent']&&(_0x5084ba['discard'](),_0x4dc4c0=!0x0);}}}return _0x4dc4c0;}),_0x3568cc['model']['document']['registerPostFixer'](_0x32758e=>{const _0xca3ef8=_0x3568cc['commands']['get']('redo');if(!_0xca3ef8||!_0xca3ef8['_createdBatches']['has'](_0x32758e['batch']))return!0x1;let _0x46702e=!0x1;const _0x20e7f2=_0x3568cc['plugins']['get']('Users')['me'],_0x2d3482=_0x3568cc['model']['document']['differ']['getChanges'](),_0x5a0236=Array['from'](_0x3568cc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x217e4c,data:_0x26d964})=>{const {group:_0x4f98bc,subType:_0x8d5395,authorId:_0x1650b6}=_0x18974b['_splitMarkerName'](_0x217e4c);return'suggestion'==_0x4f98bc&&'tablePaste'==_0x8d5395&&_0x1650b6==_0x20e7f2['id']&&!_0x26d964['oldRange'];});for(const _0x193352 of _0x2d3482){if('insert'!=_0x193352['type']||'tableCellSuggestion'!=_0x193352['name']||0x1!=_0x193352['length'])continue;const _0x5d4bb4=_0x32758e['createRange'](_0x193352['position'],_0x193352['position']['getShiftedBy'](0x1));if(!_0x5a0236['find'](({data:_0x2ddf70})=>_0x2ddf70['newRange']['isEqual'](_0x5d4bb4))){for(const {name:_0x1f1f76,data:_0x477d57}of _0x5a0236)if(_0x5d4bb4['containsRange'](_0x477d57['newRange'])){_0x32758e['updateMarker'](_0x1f1f76,{'range':_0x5d4bb4}),_0x46702e=!0x0;break;}}}return _0x46702e;}),_0x3568cc['model']['document']['registerPostFixer'](_0x24c3c4=>{let _0x3ccecf=!0x1;const _0x4f4189=_0x3568cc['plugins']['get']('Users')['me'],_0x36bb49=_0x18974b['getSuggestions']()['filter'](_0x576719=>_0x576719['isInContent']&&_0x576719['author']==_0x4f4189),_0x330ea9=new Set(),_0x3f6412=new Set();for(const _0x37f384 of _0x36bb49)if('tablePaste'==_0x37f384['subType'])for(const _0x5b2376 of _0x37f384['getMarkers']()){const _0x3e3f00=_0x5b2376['getRange']()['getContainedElement']();if(_0x3e3f00){if(_0x3e3f00['is']('element','tableCellSuggestion')&&ke(_0x3e3f00)){_0x37f384['removeMarker'](_0x5b2376['name']),_0x330ea9['add'](_0x3e3f00),_0x3ccecf=!0x0;const _0x55953e=_0x3e3f00['nextSibling'],_0x315614=_0x3e3f00['previousSibling'],_0x506391=_0x55953e&&_0x55953e['is']('element','tableCellSuggestion'),_0x1f7c38=_0x315614&&_0x315614['is']('element','tableCellSuggestion');_0x506391&&!_0x330ea9['has'](_0x55953e)&&_0x3f6412['add'](_0x55953e),_0x1f7c38&&!_0x330ea9['has'](_0x315614)&&_0x3f6412['add'](_0x315614);}else _0x3e3f00['is']('element','paragraph')&&_0x3e3f00['isEmpty']&&(_0x37f384['removeMarker'](_0x5b2376['name']),_0x3ccecf=!0x0);}}else{if('tablePasteCell'==_0x37f384['subType']){if(!_0x37f384['attributes']||!_0x37f384['attributes']['tablePasteChainId'])continue;const _0x497735=_0x37f384['attributes']['markerAttributes'];if(_0x497735&&Object['keys'](_0x497735)['length'])continue;const _0x5cf760=_0x37f384['attributes']['tablePasteChainId'];let _0x18e325=!0x0,_0x2764a5=!0x0;for(const _0xaba784 of _0x36bb49)if(_0xaba784['subType']&&_0xaba784['subType']['startsWith']('tablePaste')){if(!_0xaba784['attributes']['tablePasteChainId']){_0x2764a5=!0x1;break;}if(_0xaba784['id']!=_0x37f384['id']&&_0xaba784['attributes']['tablePasteChainId']==_0x5cf760){_0x18e325=!0x1;break;}}_0x2764a5&&_0x18e325&&(_0x37f384['removeMarkers'](),_0x3ccecf=!0x0);}}for(const _0x531fec of _0x330ea9)_0x24c3c4['remove'](_0x531fec);for(const _0xe71f2c of _0x3f6412)_0x24c3c4['unwrap'](_0xe71f2c);return _0x3ccecf;}),_0x3568cc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1bdb4c=>_0x2785ad(_0x1bdb4c),'converterPriority':'high'}),_0x3568cc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5cd9ee,_0x50eac7)=>_0x50eac7['options']['showSuggestionHighlights']?_0x2785ad(_0x5cd9ee,!0x1):null,'converterPriority':'high'});const _0x265418=_0x3568cc['editing']['view'];this['listenTo'](_0x265418['document'],'clipboardOutput',(_0x2ca5c9,_0x4052fa)=>{const _0x5f4e00=[];for(const _0x5f55a1 of _0x265418['createRangeIn'](_0x4052fa['content'])['getItems']())_0x5f55a1['is']('element','suggestion-td')&&_0x5f4e00['push'](_0x5f55a1);_0x265418['change'](_0x534ee8=>{for(const _0x49a44b of _0x5f4e00)_0x534ee8['move'](_0x534ee8['createRangeIn'](_0x49a44b),_0x534ee8['createPositionBefore'](_0x49a44b)),_0x534ee8['remove'](_0x49a44b);});});}}function ke(_0x1e45aa){if(_0x1e45aa['isEmpty'])return!0x0;const _0x5ca13a=_0x1e45aa['getChild'](0x0);return _0x5ca13a['is']('element','paragraph')&&_0x5ca13a['isEmpty'];}function Re(_0x5b713f,_0x40810b={},_0x530aaa){for(const {isAnchor:_0x12d4d5,cellHeight:_0x2159ba,cellWidth:_0x23c026}of _0x530aaa['createTableWalker'](_0x5b713f,{'includeAllSlots':!0x0,..._0x40810b}))if(!_0x12d4d5||0x1!=_0x2159ba||0x1!=_0x23c026)return!0x1;return!0x0;}class Nt extends _0x9c8a48{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x154b9a=this['editor']['plugins']['get']('TrackChangesEditing');_0x154b9a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x154b9a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x154b9a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x154b9a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x154b9a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x154b9a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x52aa6a,_0x3dddcc){const _0xfd6cd8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35bc2d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3a6fb3=_0x3dddcc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2e6200=_0x35bc2d['getColumnGroupElement'](_0x3a6fb3);let _0x57ca40=_0x2e6200?_0x35bc2d['getTableColumnsWidths'](_0x2e6200):null,_0x45684f=_0x3a6fb3['getAttribute']('tableWidth')||null;const _0x447425=_0x3dddcc['tableWidth']||_0x45684f,_0x46f7d6=_0x3dddcc['columnWidths']||_0x57ca40,_0x16b0d8=this['editor']['plugins']['get']('Users')['me'];for(const _0x36fca9 of _0xfd6cd8['getSuggestions']()){const _0x30d8f0=_0x36fca9['getContainedElement']();if('resizeTable'===_0x36fca9['subType']&&_0x30d8f0===_0x3a6fb3){_0x36fca9['author']!==_0x16b0d8&&_0x36fca9['discard']();const _0x5c4fa2=_0x36fca9['data']['commandParams'];_0x45684f=_0x5c4fa2[0x0]['tableWidth'],_0x57ca40=_0x5c4fa2[0x0]['columnWidths'];break;}}_0x52aa6a({'table':_0x3a6fb3,'tableWidth':_0x447425,'columnWidths':_0x46f7d6}),_0xfd6cd8['markBlockFormat'](_0x3a6fb3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x45684f,'columnWidths':_0x57ca40}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x251aa2){if('formatBlock'!=_0x251aa2['type']&&'formatInline'!=_0x251aa2['type'])return;const {data:_0x981ea2}=_0x251aa2;if(_0x981ea2&&'resizeTable'===_0x981ea2['formatGroupId']){const _0x44c14a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x44c14a)};}}}class Dt extends _0x9c8a48{['afterInit'](){const _0x592b2b=this['editor'];_0x592b2b['plugins']['has']('Template')&&_0x592b2b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x9c8a48{['afterInit'](){const _0x1f8ada=this['editor'];if(!_0x1f8ada['commands']['get']('insertTableOfContents'))return;_0x1f8ada['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x55c042=_0x1f8ada['plugins']['get']('TrackChangesEditing'),_0x3a9c76=_0x1f8ada['locale'];_0x55c042['descriptionFactory']['registerElementLabel']('tableOfContents',_0x52ca6c=>o(_0x3a9c76,'ELEMENT_TABLE_OF_CONTENTS',_0x52ca6c));}}class $t extends _0x9c8a48{['afterInit'](){const _0x1628b9=this['editor'];if(!_0x1628b9['plugins']['has']('Title'))return;const _0x4bed9a=_0x1628b9['plugins']['get']('TrackChangesEditing');_0x4bed9a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1628b9['locale'],'ELEMENT_TITLE')),_0x1628b9['model']['document']['registerPostFixer'](_0x1a5c73=>{let _0x3ffdfa=!0x1;const _0x42bc5b=Array['from'](_0x1628b9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xddccc9,data:_0x382686}of _0x42bc5b){const {group:_0x113011}=_0x4bed9a['_splitMarkerName'](_0xddccc9);if('suggestion'!==_0x113011||!_0x382686['newRange'])continue;const _0x4a9dfc=_0x382686['newRange'],_0x9305a7=_0x4a9dfc['end']['nodeBefore'];if(!_0x9305a7||!_0x9305a7['is']('element','title-content'))continue;if(!_0x4a9dfc['start']['isTouching'](_0x4a9dfc['end']))continue;const _0xa0ee9c=_0x1628b9['model']['schema']['getNearestSelectionRange'](_0x4a9dfc['end'],'forward');if(_0xa0ee9c&&_0xa0ee9c['isCollapsed']){const _0x5c0ff1=_0x1a5c73['createRange'](_0x4a9dfc['start'],_0xa0ee9c['start']);_0x5c0ff1['isEqual'](_0x4a9dfc)||(_0x1a5c73['updateMarker'](_0xddccc9,{'range':_0x5c0ff1}),_0x3ffdfa=!0x0);}_0x3ffdfa||(_0x1a5c73['removeMarker'](_0xddccc9),_0x3ffdfa=!0x0);}return _0x3ffdfa;});}}class Bt extends _0x9c8a48{['afterInit'](){const _0x54c331=this['editor'],_0x3dc0d4=_0x54c331['plugins']['get']('TrackChangesEditing');_0x54c331['plugins']['has']('UndoEditing')&&(_0x3dc0d4['enableCommand']('undo'),_0x3dc0d4['enableCommand']('redo'));}}class xt extends _0x9c8a48{static get['requires'](){return[It];}['afterInit'](){const _0x240e13=this['editor'];if(!_0x240e13['plugins']['has']('TableCaptionEditing'))return;_0x240e13['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x9c8a48{['tableProperties'];['tableCellProperties'];constructor(_0x4303d2){super(_0x4303d2),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x15330a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2559ff of this['tableProperties'])_0x15330a['enableCommand'](_0x2559ff,(_0x1641b3,_0x3f6527)=>{const _0x1beb66=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2559ff,[_0x1beb66],this['tableProperties'],'tableProperties',_0x1641b3,_0x3f6527);});_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x15330a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x564dd5,_0x494339)=>this['handleDiscardAction'](this['tableProperties'],_0x564dd5,_0x494339)),_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4c5b84 of this['tableCellProperties'])_0x15330a['enableCommand'](_0x4c5b84,(_0x4966c0,_0x38d543)=>{const _0x3938cf=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4c5b84,_0x3938cf,this['tableCellProperties'],'tableCellProperties',_0x4966c0,_0x38d543);});_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x15330a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1ef1de,_0xf61823)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1ef1de,_0xf61823)),_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x15330a['descriptionFactory']['registerDescriptionCallback'](_0x37fc44=>this['handleSuggestionDescription'](_0x37fc44));}['_handlePropertyChange'](_0x53111e,_0x2f51eb,_0x342412,_0xa78535,_0x5f0394,_0xe9a0b9){const _0x37e9f7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xe9a0b9['batch'],()=>{for(const _0xb69f70 of _0x2f51eb){if(this['_getSuggestion'](_0xb69f70,_0xa78535))_0x5f0394(_0xe9a0b9);else{const _0x402bcd={};for(const _0x4b38e5 of _0x342412){const _0x2a9e83=_0xb69f70['getAttribute'](_0x4b38e5);void 0x0!==_0x2a9e83&&(_0x402bcd[_0x4b38e5]=_0x2a9e83);}_0x5f0394(_0xe9a0b9),_0x37e9f7['markBlockFormat'](_0xb69f70,{'commandParams':[_0x402bcd]},[],_0xa78535);}}});}['handleDiscardAction'](_0x270590,_0x4be426,_0x3fd82f){const _0xa98ab0=_0x4be426[0x0]['start']['nodeAfter'],_0x3d458b=_0x3fd82f['commandParams'][0x0];this['editor']['model']['change'](_0x25add7=>{for(const _0x168e0d of _0x270590)void 0x0!==_0x3d458b[_0x168e0d]?_0x25add7['setAttribute'](_0x168e0d,_0x3d458b[_0x168e0d],_0xa98ab0):_0x25add7['removeAttribute'](_0x168e0d,_0xa98ab0);});}['handleSuggestionDescription'](_0x589da3){if(_0x589da3['data'])switch(_0x589da3['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'](_0x5e3d84,_0xd9b7e9){const _0x20453b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x162d13 of _0x20453b['getSuggestions']({'skipNotAttached':!0x0})){const _0x20a784=_0x162d13['getContainedElement']();if(_0x162d13['subType']===_0xd9b7e9&&_0x20a784===_0x5e3d84)return _0x162d13;}return null;}}const m='$elementName';class p extends _0x9c8a48{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4a537f,_0x5cd259,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d548c){function _0x4423b0(_0x9fb29){return _0x9fb29['map'](_0x1dc8c7=>String['fromCharCode'](_0x1dc8c7))['join']('');}super(_0x4d548c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3db633,_0x216dd9,_0x57f0b9,_0x48e206)=>{this['_model']['change'](()=>{for(const _0x2aca6b of[..._0x48e206,..._0x57f0b9])this['_model']['markers']['has'](_0x2aca6b)&&_0x4d548c['editing']['reconvertMarker'](_0x2aca6b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4d548c['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(),_0x4d548c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4d548c['config']['get']('trackChanges.trackFormatChanges'),_0x4d548c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4d548c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4d548c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4423b0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4423b0([0x34,0x30,0x34,0x38,0x32,0x30,0x33,0x38]);}['init'](){const _0x30ceeb=this['editor'],_0x301e21=(_0x54e62f,_0x5be253)=>{if('attribute'!=_0x54e62f)return'ck-suggestion-marker-'+_0x54e62f;const _0x241fe7=_0x5be253['split']('|')[0x0];return this['_isBlockAttribute'](_0x241fe7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x30ceeb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x46098f=>{const {id:_0x4a6ee9,authorId:_0x56e165,type:_0x44cb4a,subType:_0x53899c}=this['_splitMarkerName'](_0x46098f['markerName']),_0x2324c4=['ck-suggestion-marker',_0x301e21(_0x44cb4a,_0x53899c)];let _0x54e23e=0xbb8;return this['activeMarkers']['includes'](_0x46098f['markerName'])&&(_0x2324c4['push']('ck-suggestion-marker--active'),_0x54e23e=0xbc2),'deletion'==_0x44cb4a&&(_0x54e23e+=0x5),{'classes':_0x2324c4,'attributes':{'data-suggestion':_0x4a6ee9,'data-author-id':_0x56e165},'priority':_0x54e23e};}}),_0x30ceeb['conversion']['for']('dataDowncast')['add'](_0x542a94=>{_0x542a94['on']('addMarker:suggestion',(_0x12921a,_0x133a1c,_0x1e5311)=>{if(!_0x1e5311['options']['showSuggestionHighlights'])return;const _0x286729=_0x133a1c['item'];if(!_0x286729)return;const _0x1a4286=_0x1e5311['mapper']['toViewElement'](_0x286729);_0x30ceeb['model']['schema']['isObject'](_0x286729)&&_0x1a4286&&!_0x1a4286['getCustomProperty']('widget')&&_0x1a4286['is']('containerElement')&&_0x43d8d3(_0x1a4286,_0x1e5311['writer']);},{'priority':'high'});}),_0x30ceeb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5ca99c,_0x1f46d2)=>{if(!_0x1f46d2['options']['showSuggestionHighlights'])return null;const {type:_0x53b2b8,subType:_0x2e2f8a}=this['_splitMarkerName'](_0x5ca99c['markerName']);return{'classes':['ck-suggestion-marker',_0x301e21(_0x53b2b8,_0x2e2f8a)],'priority':0xbb8};}});const _0x49070a=({showActiveMarkers:_0x4776e0=!0x0,isAttributeSuggestion:_0x4b0b2b=!0x1}={})=>(_0x34642a,_0x26abe1,_0x32e5b0)=>{if(!_0x26abe1['item'])return;const {id:_0x17e91b,authorId:_0x5c35cf}=this['_splitMarkerName'](_0x26abe1['markerName']);if(_0x4b0b2b){const _0x171872=this['_suggestions']['get'](_0x17e91b),_0x302857=this['_getAttributeKey'](_0x171872);if(!this['_isBlockAttribute'](_0x302857))return;}if(_0x26abe1['item']['is']('selection'))return void _0x32e5b0['consumable']['consume'](_0x26abe1['item'],_0x34642a['name']);const _0x219da5=_0x32e5b0['mapper']['toViewElement'](_0x26abe1['item']);if(_0x26abe1['item']['is']('element')&&_0x30ceeb['model']['schema']['isBlock'](_0x26abe1['item'])&&!_0x219da5['getCustomProperty']('addHighlight')){_0x32e5b0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x219da5),_0x32e5b0['writer']['setAttribute']('data-suggestion',_0x17e91b,_0x219da5),_0x32e5b0['writer']['setAttribute']('data-author-id',_0x5c35cf,_0x219da5),_0x32e5b0['mapper']['bindElementToMarker'](_0x219da5,_0x26abe1['markerName']),_0x4776e0&&(this['activeMarkers']['includes'](_0x26abe1['markerName'])?_0x32e5b0['writer']['addClass']('ck-suggestion-marker--active',_0x219da5):_0x32e5b0['writer']['removeClass']('ck-suggestion-marker--active',_0x219da5));for(const _0x9a4cec of _0x30ceeb['model']['createRangeIn'](_0x26abe1['item'])['getItems']())_0x32e5b0['consumable']['consume'](_0x9a4cec,_0x34642a['name']);_0x32e5b0['consumable']['consume'](_0x26abe1['item'],_0x34642a['name']);}};_0x30ceeb['conversion']['for']('dataDowncast')['add'](_0x5c071a=>{_0x5c071a['on']('addMarker:suggestion:formatBlock',(_0x37bcd2,_0xe8c661,_0x4421d6)=>{_0x4421d6['options']['showSuggestionHighlights']&&_0x49070a({'showActiveMarkers':!0x1})(_0x37bcd2,_0xe8c661,_0x4421d6);},{'priority':'highest'});}),_0x30ceeb['conversion']['for']('dataDowncast')['add'](_0x13efee=>{_0x13efee['on']('addMarker:suggestion:attribute',(_0x477951,_0x142697,_0x51013c)=>{_0x51013c['options']['showSuggestionHighlights']&&_0x49070a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x477951,_0x142697,_0x51013c);},{'priority':'highest'});}),_0x30ceeb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4a40fc,_0x4461ff)=>_0x4461ff['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4a40fc['substr'](0xb)}}),_0x30ceeb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x104a97,{writer:_0x3b4d8f})=>{let _0x2d918a='suggestion:'+_0x104a97['getAttribute']('suggestion-type')+':'+_0x104a97['getAttribute']('id');return _0x104a97['getAttribute']('marker-count')&&(_0x2d918a+=':'+_0x104a97['getAttribute']('marker-count')),_0x3b4d8f['createElement']('$marker',{'data-name':_0x2d918a});}}),_0x30ceeb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x30ceeb['conversion']['for']('editingDowncast')['add'](_0x3832f9=>{_0x3832f9['on']('addMarker:suggestion:formatBlock',_0x49070a(),{'priority':'high'});}),_0x30ceeb['conversion']['for']('editingDowncast')['add'](_0x12520b=>{_0x12520b['on']('addMarker:suggestion:attribute',_0x49070a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x30ceeb['conversion']['for']('editingDowncast')['add'](_0x339960=>{_0x339960['on']('removeMarker:suggestion:formatBlock',(_0x277a18,_0xa50122,_0x499421)=>{const _0x7e99da=_0x499421['mapper']['markerNameToElements'](_0xa50122['markerName']);if(_0x7e99da){for(const _0x32128b of _0x7e99da)_0x32128b['getCustomProperty']('addHighlight')||(_0x499421['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x32128b),_0x499421['writer']['removeAttribute']('data-suggestion',_0x32128b),_0x499421['writer']['removeAttribute']('data-author-id',_0x32128b),_0x499421['mapper']['unbindElementFromMarkerName'](_0x32128b,_0xa50122['markerName']));}},{'priority':'high'});}),_0x30ceeb['conversion']['for']('editingDowncast')['add'](_0x409ff0=>{_0x409ff0['on']('removeMarker:suggestion:attribute',(_0x25c268,_0x2484f4,_0x24680)=>{const _0xd73eac=_0x24680['mapper']['markerNameToElements'](_0x2484f4['markerName']);if(!_0xd73eac)return;const {id:_0x5ef76f}=this['_splitMarkerName'](_0x2484f4['markerName']),_0xc6c0ed=this['_suggestions']['get'](_0x5ef76f),_0x41742a=this['_getAttributeKey'](_0xc6c0ed);if(this['_isBlockAttribute'](_0x41742a)){for(const _0x33ee5e of _0xd73eac)_0x33ee5e['getCustomProperty']('addHighlight')||(_0x24680['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x33ee5e),_0x24680['writer']['removeAttribute']('data-suggestion',_0x33ee5e),_0x24680['writer']['removeAttribute']('data-author-id',_0x33ee5e),_0x24680['mapper']['unbindElementFromMarkerName'](_0x33ee5e,_0x2484f4['markerName']));}},{'priority':'high'});}),_0x30ceeb['model']['document']['registerPostFixer'](_0x39d88a=>{let _0x52f238=!0x1;const _0x22a3c7=Array['from'](_0x30ceeb['model']['document']['differ']['getChangedMarkers']()),_0x26da69=new Set();for(const {name:_0x4e0026,data:_0x144920}of _0x22a3c7){const {group:_0x339239,type:_0x49e46c,subType:_0x155bdd,id:_0x9fafb9}=this['_splitMarkerName'](_0x4e0026);if('suggestion'!==_0x339239)continue;const _0x38ca1a=this['_suggestions']['get'](_0x9fafb9);if(null!=_0x144920['newRange']){'formatInline'==_0x49e46c&&(_0x52f238=_0x52f238||Ut(_0x144920['newRange'],_0x4e0026,_0x39d88a,_0x30ceeb['model']['schema']));const _0x5aee36='attribute'==_0x49e46c&&this['_isBlockAttribute'](_0x155bdd['split']('|')[0x0]);if(_0x144920['newRange']['isCollapsed']||'$graveyard'==_0x144920['newRange']['root']['rootName']||'formatBlock'==_0x49e46c&&!Gt(_0x144920['newRange'])||_0x5aee36&&!Gt(_0x144920['newRange'])||'deletion'==_0x49e46c&&!(!Vt(_0x3c0a89=_0x144920['newRange'])&&!function(_0x4c0db5){return _0x4c0db5['start']['parent']==_0x4c0db5['end']['nodeBefore']&&_0x4c0db5['start']['isAtEnd'];}(_0x3c0a89)))_0x39d88a['removeMarker'](_0x4e0026),_0x52f238=!0x0;else{if(!_0x38ca1a||!_0x38ca1a['isInContent'])continue;if(_0x144920['newRange']&&_0x144920['oldRange']&&_0x144920['newRange']['isEqual'](_0x144920['oldRange']))continue;_0x26da69['add'](_0x38ca1a);}}}var _0x3c0a89;return _0x26da69['size']>0x0&&(_0x52f238=!!this['_joinWithAdjacentSuggestions'](_0x26da69)||_0x52f238),_0x52f238;}),_0x30ceeb['model']['document']['registerPostFixer'](_0x4157c0=>{let _0x54bb70=!0x1;for(const _0x5afa9c of _0x30ceeb['model']['document']['differ']['getChanges']())if('insert'==_0x5afa9c['type'])for(const _0x459c15 of this['_suggestions']['values']()){if(_0x459c15['isMultiRange']||!_0x459c15['isInContent'])continue;const _0x50e5da='formatBlock'==_0x459c15['type'],_0xd04888=this['_getAttributeKey'](_0x459c15),_0x217c37=_0xd04888&&this['_isBlockAttribute'](_0xd04888);if(!_0x50e5da&&!_0x217c37)continue;const _0x1791a1=_0x459c15['getFirstRange']();if(_0x1791a1['start']['parent']!=_0x1791a1['end']['parent']&&!_0x1791a1['end']['isAtEnd']){const _0xe68ff7=_0x30ceeb['model']['createPositionAt'](_0x1791a1['start']['nodeAfter'],'end'),_0xdd1524=_0x30ceeb['model']['createRange'](_0x1791a1['start'],_0xe68ff7);_0x4157c0['updateMarker'](_0x459c15['getFirstMarker'](),{'range':_0xdd1524}),_0x54bb70=!0x0;}}return _0x54bb70;}),_0x30ceeb['model']['document']['registerPostFixer'](_0x290036=>this['_processAttributeChanges'](_0x290036)),_0x30ceeb['model']['document']['registerPostFixer'](_0x2037ca=>!_0x2037ca['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2037ca)),_0x30ceeb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x30ceeb['model']['document']['on']('change:data',(_0x5f172d,_0x1f7103)=>{if(!_0x1f7103['isLocal']||_0x1f7103['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x289cff=_0x30ceeb['model']['document']['differ']['getChanges']();if(0x0==_0x289cff['length'])return;const _0x34c254=[],_0x280c45=_0x289cff['filter'](_0xd23957=>'attribute'==_0xd23957['type']),_0x43d21b=_0x289cff['filter'](_0x59bc8c=>'insert'==_0x59bc8c['type']&&'$text'!=_0x59bc8c['name']);for(const _0xf20fdb of _0x280c45)this['_isRegisteredAttribute'](_0xf20fdb['attributeKey'])&&_0x34c254['push']({'key':_0xf20fdb['attributeKey'],'newValue':_0xf20fdb['attributeNewValue'],'oldValue':_0xf20fdb['attributeOldValue'],'range':Ft(_0xf20fdb['range'],_0x30ceeb['model'])});for(const _0x49f308 of _0x43d21b){if('rename'!=_0x49f308['action']&&'refresh'!=_0x49f308['action'])continue;const _0x527918=Lt(_0x49f308['position']['nodeAfter'],_0x30ceeb['model']),_0x96628f=_0x49f308['before'];'rename'==_0x49f308['action']&&_0x34c254['push']({'key':m,'newValue':_0x49f308['name'],'oldValue':_0x96628f['name'],'range':_0x527918});for(const [_0x356786,_0x4cc2dc]of _0x96628f['attributes']){if(!this['_isRegisteredAttribute'](_0x356786))continue;const _0x2af854=_0x49f308['attributes']['get'](_0x356786);_0x4cc2dc!==_0x2af854&&_0x34c254['push']({'key':_0x356786,'newValue':_0x2af854,'oldValue':_0x4cc2dc,'range':_0x527918});}for(const [_0x1623c5,_0x4c608b]of _0x49f308['attributes'])this['_isRegisteredAttribute'](_0x1623c5)&&(_0x96628f['attributes']['has'](_0x1623c5)||_0x34c254['push']({'key':_0x1623c5,'newValue':_0x4c608b,'oldValue':null,'range':_0x527918}));}0x0!=_0x34c254['length']&&_0x30ceeb['model']['enqueueChange'](_0x1f7103,_0x3671fb=>{const _0x42550d=_0x5b34d0();for(const {range:_0x40b9e1,key:_0xb4c31c,oldValue:_0x48c35d,newValue:_0x544549}of _0x34c254)this['markAttributeChange'](_0x40b9e1,_0xb4c31c,_0x48c35d,_0x544549,{'groupId':_0x42550d});this['_reduceExistingSuggestions'](_0x3671fb,_0x34c254);});},{'priority':'lowest'}),_0x30ceeb['model']['markers']['on']('update:suggestion',(_0x3539dc,_0xa51ca1,_0x5841f7)=>{if(null==_0x5841f7){const {id:_0x228cc9}=this['_splitMarkerName'](_0xa51ca1['name']),_0x32f45d=this['_suggestions']['get'](_0x228cc9);_0x32f45d&&_0x32f45d['addMarkerName'](_0xa51ca1['name']);}}),_0x30ceeb['model']['document']['on']('change:data',()=>{const _0x50e0f6=Array['from'](_0x30ceeb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x336b10=>'suggestion'===this['_splitMarkerName'](_0x336b10['name'])['group']);if(0x0===_0x50e0f6['length'])return;_0x50e0f6['sort']((_0x3b8931,_0x10279f)=>{const _0x2e58ad=_0x3b8931['data']['oldRange'],_0x97951d=_0x10279f['data']['oldRange'];return null===_0x2e58ad&&null===_0x97951d?0x0:null===_0x2e58ad&&null!==_0x97951d?-0x1:null!==_0x2e58ad&&null===_0x97951d?0x1:_0x2e58ad['start']['isBefore'](_0x97951d['start'])?-0x1:0x1;});const _0x123321=new Set(),_0x14a7bc=new Set();for(const {name:_0x5bc394,data:_0x30f53f}of _0x50e0f6){const {id:_0x481376}=this['_splitMarkerName'](_0x5bc394);if(null===_0x30f53f['oldRange']){const _0x2948fb=this['_handleNewSuggestionMarker'](_0x5bc394);_0x14a7bc['add'](_0x2948fb);}else{const _0x51cbae=this['_suggestions']['get'](_0x481376);null!==_0x30f53f['newRange']||_0x51cbae['isInContent']?(_0x123321['add'](_0x51cbae['head']),_0x14a7bc['add'](_0x51cbae)):this['_removeSuggestion'](_0x51cbae);}}_0x14a7bc['size']>0x0&&this['_refreshSuggestionsChain'](_0x14a7bc);for(const _0x3e7ba1 of _0x123321)this['fire']('suggestionChanged',_0x3e7ba1);}),_0x30ceeb['model']['on']('applyOperation',(_0x49c88f,_0x16d2c5)=>{const _0x7f563d=_0x16d2c5[0x0];if(!this['_suggestions']['size'])return;if(!_0x7f563d['isDocumentOperation'])return;if(_0x7f563d['batch']['isUndo']||!_0x7f563d['batch']['isLocal'])return;let _0x423687,_0x3651be;switch(_0x7f563d['type']){case'insert':_0x423687=_0x30ceeb['model']['createPositionAt'](_0x7f563d['position']),_0x3651be=_0x423687['getShiftedBy'](_0x7f563d['howMany']);break;case'split':_0x423687=_0x30ceeb['model']['createPositionAt'](_0x7f563d['splitPosition']),_0x3651be=_0x30ceeb['model']['createPositionAt'](_0x7f563d['moveTargetPosition']);break;case'move':_0x423687=_0x30ceeb['model']['createPositionAt'](_0x7f563d['targetPosition']),_0x3651be=_0x423687['getShiftedBy'](_0x7f563d['howMany']);break;default:return;}const _0x1d8875=_0x30ceeb['model']['createRange'](_0x423687,_0x3651be);_0x30ceeb['model']['change'](()=>{for(const {suggestion:_0x4c9516,meta:_0x4d2dd6}of this['_findSuggestions'](_0x1d8875)){if(_0x4c9516['isMultiRange'])continue;if('formatInline'==_0x4c9516['type'])continue;const _0x4ec75f=this['_getAttributeKey'](_0x4c9516);if(_0x4ec75f&&this['_isBlockAttribute'](_0x4ec75f)&&'split'!=_0x7f563d['type'])continue;const _0x100ca3=_0x4c9516['data']&&_0x4c9516['data']['multipleBlocks'];('formatBlock'!=_0x4c9516['type']||'split'==_0x7f563d['type']&&!_0x100ca3)&&(_0x4d2dd6['containsRangeInObject']||'insertion'==_0x4c9516['type']&&_0x4d2dd6['isOwn']||_0x4c9516['getFirstRange']()['containsRange'](_0x1d8875)&&this['_breakSuggestionMarker'](_0x4c9516,_0x423687,_0x3651be));}});},{'priority':'lowest'}),_0x30ceeb['model']['on']('deleteContent',(_0x30f725,_0xc893cc)=>{const _0x487eb3=_0xc893cc[0x0],_0x3f03ec=_0xc893cc[0x1];if(_0x3f03ec&&_0x3f03ec['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x487eb3['isCollapsed'])return;const _0x5a0d8c=_0x30ceeb['model']['schema'],{start:_0x487bb3,end:_0x4d0acb}=_0x487eb3['getFirstRange'](),_0x58a143=_0x487bb3['nodeAfter']&&_0x5a0d8c['isLimit'](_0x487bb3['nodeAfter'])?null:_0x5a0d8c['getNearestSelectionRange'](_0x487bb3,'forward'),_0x1162d4=_0x4d0acb['nodeBefore']&&_0x5a0d8c['isLimit'](_0x4d0acb['nodeBefore'])?null:_0x5a0d8c['getNearestSelectionRange'](_0x4d0acb,'backward'),_0x54fdf3=_0x30ceeb['model']['createRange'](_0x58a143?_0x58a143['start']:_0x487bb3,_0x1162d4?_0x1162d4['end']:_0x4d0acb);_0x30ceeb['model']['change'](_0x370ffd=>{this['markDeletion'](_0x54fdf3);const _0x3dbdef=_0x30ceeb['model']['schema']['getNearestSelectionRange'](_0x54fdf3['start']);_0x487eb3['is']('documentSelection')?_0x370ffd['setSelection'](_0x3dbdef):_0x487eb3['setTo'](_0x3dbdef);}),_0x30f725['stop']();},{'priority':_0x19cb17['normal']+0xa}),_0x30ceeb['model']['on']('insertContent',(_0x6d756f,_0x1be14b)=>{const _0x1d27f9=_0x1be14b[_0x1be14b['length']-0x1];_0x1d27f9&&_0x1d27f9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x30ceeb['model']['change'](()=>{let _0x2725f6=_0x30ceeb['model']['insertContent'](_0x1be14b[0x0],_0x1be14b[0x1],_0x1be14b[0x2],{'forceDefaultExecution':!0x0});if(!_0x2725f6)return;_0x6d756f['return']=_0x2725f6['clone']();const _0x489ce8=_0x2725f6['end']['nodeBefore'],_0x4c1acf=_0x30ceeb['model']['schema'];_0x489ce8&&_0x4c1acf['isBlock'](_0x489ce8)&&!_0x4c1acf['isObject'](_0x489ce8)&&(_0x2725f6=_0x30ceeb['model']['createRange'](_0x2725f6['start'],_0x30ceeb['model']['createPositionAt'](_0x489ce8,'end'))),this['markInsertion'](_0x2725f6);}),_0x6d756f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3444af=new x(_0x30ceeb,this['_suggestions']);_0x30ceeb['commands']['add']('acceptSuggestion',_0x3444af),this['enableCommand']('acceptSuggestion');const _0x62f1bd=new O(_0x30ceeb,this['_suggestions']);_0x30ceeb['commands']['add']('discardSuggestion',_0x62f1bd),this['enableCommand']('discardSuggestion'),_0x30ceeb['commands']['add']('acceptAllSuggestions',new R(_0x30ceeb,_0x3444af,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x30ceeb['commands']['add']('discardAllSuggestions',new R(_0x30ceeb,_0x62f1bd,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x30ceeb['commands']['add']('acceptSelectedSuggestions',new E(_0x30ceeb,_0x3444af,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x30ceeb['commands']['add']('discardSelectedSuggestions',new E(_0x30ceeb,_0x62f1bd,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3429e7=_0x30ceeb['plugins']['get']('CommentsRepository');this['listenTo'](_0x3429e7,'addComment',(_0x393e49,{threadId:_0x403148})=>{const _0x4339bc=this['_suggestions']['get'](_0x403148);_0x4339bc&&_0x4339bc['commentThread']&&0x1===_0x4339bc['commentThread']['length']&&this['_updateSuggestionData'](_0x403148,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3429e7,'removeComment',(_0x1ccb1a,{threadId:_0x4e67d8})=>{const _0xa7912f=this['_suggestions']['get'](_0x4e67d8);_0xa7912f&&_0xa7912f['commentThread']&&!_0xa7912f['commentThread']['length']&&this['_updateSuggestionData'](_0x4e67d8,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x34f25e){if(this['_adapter'])throw new _0x34c45c('track-changes-adapter-already-set',this);this['_adapter']=_0x34f25e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x256e40=!0x1,toJSON:_0x157554=!0x1}={}){const _0x94d987=[];for(const _0x19d07f of this['_suggestions']['values']())_0x256e40&&!_0x19d07f['isInContent']||_0x94d987['push'](_0x19d07f);return _0x157554?_0x94d987['map'](_0x5d7364=>_0x5d7364['toJSON']()):_0x94d987;}['getSuggestion'](_0x2914c9){const _0x347571=this['_suggestions']['get'](_0x2914c9);if(!_0x347571)throw new _0x34c45c('track-changes-suggestion-not-found',this);return _0x347571;}['hasSuggestion'](_0x459918){return this['_suggestions']['has'](_0x459918);}['addSuggestionData'](_0x590f77){const {authorId:_0x1b6975,id:_0x111fb1,attributes:_0x18d18d}=_0x590f77,[_0x5af671,_0x558348]=_0x590f77['type']['split'](':'),_0x17d212=this['_suggestions']['get'](_0x111fb1)||this['_createSuggestion'](_0x5af671,_0x558348,_0x111fb1,_0x1b6975,_0x18d18d);if(this['_addThreadToSuggestion'](_0x17d212),this['_checkSuggestionCorrectness'](_0x17d212,_0x5af671,_0x558348||null,_0x1b6975),_0x17d212['createdAt']=_0x590f77['createdAt'],_0x17d212['_isDataLoaded']=!0x0,_0x18d18d&&_0x18d18d['@external']){const _0x29cc77=_0x18d18d['@external'],_0x5e2912=this['_getExternalAuthor'](_0x29cc77['authorName']);_0x17d212['authoredAt']=_0x29cc77['createdAt'],_0x17d212['author']=_0x5e2912,_0x17d212['isExternal']=!0x0;}else _0x17d212['authoredAt']=_0x590f77['createdAt'];switch(_0x590f77['data']&&(_0x17d212['data']=_0x590f77['data']),_0x590f77['attributes']&&(_0x17d212['attributes']=_0x590f77['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x17d212['_saved']=!0x0),this['_suggestionState']['get'](_0x17d212)){case'notReady':this['_suggestionState']['set'](_0x17d212,'dataReady');break;case'markerReady':_0x17d212['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x17d212])),this['_refreshSuggestionsChain'](new Set([_0x17d212])),this['_suggestionState']['set'](_0x17d212,'ready'),this['fire']('suggestionLoaded',_0x17d212)):this['_suggestionState']['set'](_0x17d212,'removed');}return _0x17d212;}['acceptSuggestion'](_0x46630d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x290306 of _0x46630d['getAllAdjacentSuggestions']())_0x290306['accept']();});});}['discardSuggestion'](_0x5d6f3b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x77f1b3 of _0x5d6f3b['getAllAdjacentSuggestions']())_0x77f1b3['discard']();});});}['enableCommand'](_0x28fa0c,_0x1f1240){const _0x3dfa81=this['editor']['commands']['get'](_0x28fa0c);if(!_0x3dfa81)throw new _0x34c45c('track-changes-command-not-found',this,{'commandName':_0x28fa0c});if(this['_enabledCommands']['has'](_0x3dfa81))throw new _0x34c45c('track-changes-enable-command-twice',this,{'commandName':_0x28fa0c});this['_enabledCommands']['add'](_0x3dfa81),_0x1f1240&&_0x3dfa81['on']('execute',(_0xaf26b8,_0x383767)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x383767['length']>0x0&&_0x383767[_0x383767['length']-0x1]&&_0x383767[_0x383767['length']-0x1]['forceDefaultExecution']?_0x383767['pop']():(_0xaf26b8['return']=_0x1f1240((..._0x5e6038)=>_0x3dfa81['execute'](..._0x5e6038,{'forceDefaultExecution':!0x0}),..._0x383767),_0xaf26b8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2a74bc){let _0x303b5a,_0x7d4c70;const _0x329ca8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x303b5a=_0x2a74bc();}catch(_0x9de587){_0x7d4c70=_0x9de587;}return _0x329ca8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x7d4c70&&_0x34c45c['rethrowUnexpectedError'](_0x7d4c70,this),_0x303b5a;}['markInsertion'](_0xc3fee3,_0x563a45=null,_0x1d3004={}){if(_0xc3fee3['isCollapsed'])return null;const _0xceb195=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1acba3,meta:_0x5cb8ef}of this['_findSuggestions'](_0xc3fee3,'insertion'))if(_0x5cb8ef['isOwn']){if(!_0x5cb8ef['isNextTo']){if(_0x5cb8ef['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1acba3,_0x1d3004))continue;return _0x1acba3;}if(qt(_0x1acba3,_0x1d3004))return _0x1acba3;this['_breakSuggestionMarker'](_0x1acba3,_0xc3fee3['start'],_0xc3fee3['end']);break;}if(_0x563a45==_0x1acba3['subType']&&qt(_0x1acba3,_0x1d3004)){const _0x22061a=_0x1acba3['getFirstRange']();return _0x22061a['start']['isEqual'](_0xc3fee3['end'])?this['_setSuggestionRange'](_0x1acba3,this['_model']['createRange'](_0xc3fee3['start'],_0x22061a['end'])):this['_setSuggestionRange'](_0x1acba3,this['_model']['createRange'](_0x22061a['start'],_0xc3fee3['end'])),_0x1acba3;}}const _0x415cdf=_0x5b34d0(),_0x18b7af=_0xceb195['id'],_0x26ae1a=_0x563a45?'insertion:'+_0x563a45:'insertion',_0x43e3d0=this['_setSuggestionData']({'id':_0x415cdf,'type':_0x26ae1a,'createdAt':new Date(),'authorId':_0x18b7af,'attributes':_0x1d3004});return this['_addSuggestionMarker'](_0x26ae1a,_0x415cdf,_0x18b7af,_0xc3fee3),_0x43e3d0;}['markMultiRangeInsertion'](_0x5ccc94,_0x5066e6='multi',_0x4dd472={}){const _0x1f08ee=this['editor']['plugins']['get']('Users')['me'],_0x30be7b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5066e6,'join');for(const _0x1f8c1b of this['getSuggestions']())if(_0x1f8c1b['author']['id']==_0x1f08ee['id']&&'insertion'==_0x1f8c1b['type']&&_0x1f8c1b['subType']==_0x5066e6&&qt(_0x1f8c1b,_0x4dd472)&&(_0x30be7b(_0x1f8c1b['getRanges'](),_0x5ccc94)||_0x30be7b(_0x5ccc94,_0x1f8c1b['getRanges']()))){for(const _0x1be441 of _0x5ccc94)_0x1f8c1b['addRange'](_0x1be441);return _0x1f8c1b;}for(const {suggestion:_0x7c7999,meta:_0x2c596a}of this['_findSuggestions'](_0x5ccc94,'insertion')){if(!_0x2c596a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2c596a['containsRangeInObject'])continue;if(!qt(_0x7c7999,_0x4dd472))continue;let _0x1f1653=!0x0;for(const _0x3d9b98 of _0x7c7999['getRanges']())for(const _0x4e0fc0 of _0x5ccc94)if(!_0x3d9b98['containsRange'](_0x4e0fc0)){_0x1f1653=!0x1;break;}if(_0x1f1653)return _0x7c7999;}const _0x222fbd=_0x5b34d0(),_0x4bf52d=_0x1f08ee['id'],_0x5e31a7='insertion:'+_0x5066e6,_0x51b600=this['_setSuggestionData']({'id':_0x222fbd,'type':_0x5e31a7,'createdAt':new Date(),'authorId':_0x4bf52d,'attributes':_0x4dd472});for(const _0x5083fb of _0x5ccc94)this['_addSuggestionMarker'](_0x5e31a7,_0x222fbd,_0x4bf52d,_0x5083fb,u['getMultiRangeId']());return _0x51b600;}['markInlineFormat'](_0x49b615,_0x356f9a,_0x44213c=null,_0x5e8a00={}){if(_0x44213c=_0x44213c||Pt(_0x356f9a),_0x49b615['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x449729=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44213c,'accept');return this['forceDefaultExecution'](()=>_0x449729([_0x49b615],_0x356f9a,_0x5e8a00)),null;}const _0x2bc5ff=this['editor']['plugins']['get']('Users')['me'],_0x4f1ea7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e78be,meta:_0x1c54b8}of this['_findSuggestions'](_0x49b615,'insertion'))_0x1c54b8['isOwn']&&!_0x1c54b8['isInsideObject']&&_0x4f1ea7['push'](..._0x1e78be['getRanges']());}const _0x3af2d0=function(_0x18c61c,_0x275948){const _0x1c4f7b=[];for(const _0x5f4380 of _0x275948){const _0x52feca=_0x18c61c['getIntersection'](_0x5f4380);_0x52feca&&_0x1c4f7b['push'](_0x52feca);}return _0x1c4f7b;}(_0x49b615,_0x4f1ea7),_0x1ec69a=function(_0x14a29d,_0x2049c1){const _0x501da4=[_0x14a29d];for(const _0x56fa7f of _0x2049c1){let _0x42163a=0x0;for(;_0x42163a<_0x501da4['length'];){const _0x386723=_0x501da4[_0x42163a]['getDifference'](_0x56fa7f);_0x501da4['splice'](_0x42163a,0x1,..._0x386723),_0x42163a+=_0x386723['length'];}}return _0x501da4;}(_0x49b615,_0x4f1ea7);_0x3af2d0['length']&&this['_model']['change'](()=>{for(const _0x4f63aa of _0x3af2d0){const _0x452949=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44213c,'accept');this['forceDefaultExecution'](()=>_0x452949([_0x4f63aa],_0x356f9a,_0x5e8a00));}});for(const _0x37dc64 of _0x1ec69a){let _0x8eb98c=null,_0x1bd2a4=_0x37dc64['start'],_0x3c9c68=_0x37dc64['end'];for(const {suggestion:_0x42cad8,meta:_0x5391f5}of this['_findSuggestions'](_0x37dc64,'formatInline')){if(!_0x5391f5['isOwn'])continue;if(_0x42cad8['subType']!=_0x44213c)continue;if(!qt(_0x42cad8,_0x5e8a00))continue;const _0x469958=_0x42cad8['getFirstRange']();if(_0x469958['containsRange'](_0x37dc64,!0x0))return null;_0x1bd2a4=_0x1bd2a4['isBefore'](_0x469958['start'])?_0x1bd2a4:_0x469958['start'],_0x3c9c68=_0x3c9c68['isAfter'](_0x469958['end'])?_0x3c9c68:_0x469958['end'],_0x8eb98c?_0x469958['start']['isBefore'](_0x8eb98c['getFirstRange']()['start'])?(_0x8eb98c['removeMarkers'](),_0x8eb98c=_0x42cad8):_0x42cad8['removeMarkers']():_0x8eb98c=_0x42cad8;}const _0x1764c0=this['_model']['createRange'](_0x1bd2a4,_0x3c9c68);if(_0x8eb98c)this['_setSuggestionRange'](_0x8eb98c,_0x1764c0);else{const _0x2c3f25=_0x5b34d0(),_0x4835a7=_0x2bc5ff['id'];this['_setSuggestionData']({'id':_0x2c3f25,'type':'formatInline:'+_0x44213c,'data':_0x356f9a,'createdAt':new Date(),'authorId':_0x4835a7,'attributes':_0x5e8a00}),this['_addSuggestionMarker']('formatInline:'+_0x44213c,_0x2c3f25,_0x4835a7,_0x1764c0);}}return null;}['markBlockFormat'](_0x4afb7e,_0xdd674a,_0x43ff2d=[],_0x35b6d2=null,_0x36559c={}){_0xdd674a['formatGroupId']||(_0xdd674a['formatGroupId']=_0xdd674a['commandName']),_0xdd674a['multipleBlocks']=_0x4afb7e['is']('range'),_0x35b6d2=_0x35b6d2||Pt(_0xdd674a);const _0x1e351f=_0x43ff2d['map'](_0x38cf49=>Lt(_0x38cf49,this['_model'])),_0x592969=_0x4afb7e['is']('range')?_0x4afb7e:Lt(_0x4afb7e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2f3111=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35b6d2,'accept');return this['forceDefaultExecution'](()=>_0x2f3111([_0x592969],_0xdd674a,_0x36559c)),null;}_0x1e351f['push'](_0x592969);let _0x6ddea6=!0x0;for(const _0x3ed5af of _0x1e351f)if(!this['_rangeIsInLocalUserInsertion'](_0x3ed5af)){_0x6ddea6=!0x1;break;}if(_0x6ddea6&&'always'!==this['_trackFormatChanges']){const _0x466dc6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35b6d2,'accept');return this['forceDefaultExecution'](()=>_0x466dc6([_0x592969],_0xdd674a,_0x36559c)),null;}let _0x49a03e=null,_0x1d0046=_0x592969['start'],_0x36ddcc=_0x592969['end'];for(const {suggestion:_0x49cf6d,meta:_0xeeef0c}of this['_findSuggestions'](_0x592969,'formatBlock')){if(!_0xeeef0c['isOwn'])continue;if(_0xeeef0c['isNextTo']||_0xeeef0c['containsRangeInObject']||_0xeeef0c['isInsideObject'])continue;if(_0x49cf6d['data']['formatGroupId']!=_0xdd674a['formatGroupId'])continue;if(!qt(_0x49cf6d,_0x36559c))continue;const _0xfb0f45=_0x49cf6d['getFirstRange']();if(_0x49cf6d['subType']==_0x35b6d2){if(_0xfb0f45['containsRange'](_0x592969,!0x0))return null;_0x1d0046=_0x1d0046['isBefore'](_0xfb0f45['start'])?_0x1d0046:_0xfb0f45['start'],_0x36ddcc=_0x36ddcc['isAfter'](_0xfb0f45['end'])?_0x36ddcc:_0xfb0f45['end'],_0x49a03e?_0xfb0f45['start']['isBefore'](_0x49a03e['getFirstRange']()['start'])?(_0x49a03e['removeMarkers'](),_0x49a03e=_0x49cf6d):_0x49cf6d['removeMarkers']():_0x49a03e=_0x49cf6d;}else{const _0x4e93ad=_0x592969['getIntersection'](_0xfb0f45);this['_cutOutSuggestionMarker'](_0x49cf6d,_0x4e93ad);}}const _0x2cb4f2=this['editor']['plugins']['get']('Users')['me'],_0x3fd62a=_0x5b34d0(),_0x28ba44=_0x2cb4f2['id'];if(_0x49a03e)return this['_setSuggestionRange'](_0x49a03e,this['_model']['createRange'](_0x1d0046,_0x36ddcc)),_0x49a03e;{const _0x40c5c6=this['_setSuggestionData']({'id':_0x3fd62a,'type':'formatBlock:'+_0x35b6d2,'data':_0xdd674a,'createdAt':new Date(),'authorId':_0x28ba44,'attributes':_0x36559c});return this['_addSuggestionMarker']('formatBlock:'+_0x35b6d2,_0x3fd62a,_0x28ba44,this['_model']['createRange'](_0x1d0046,_0x36ddcc)),_0x40c5c6;}}['markMultiRangeBlockFormat'](_0x40c996,_0x334411,_0x1b4a79=[],_0x468b16=null,_0x3eb967={}){_0x334411['formatGroupId']||(_0x334411['formatGroupId']=_0x334411['commandName']);const _0x50da1f=_0x40c996[0x0];_0x334411['multipleBlocks']=_0x50da1f['is']('range'),_0x468b16=_0x468b16||Pt(_0x334411);const _0x727757=_0x1b4a79['map'](_0xea1b17=>Lt(_0xea1b17,this['_model'])),_0x3df9b1=_0x50da1f['is']('range')?_0x40c996:_0x40c996['map'](_0x2cbe6f=>Lt(_0x2cbe6f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4cb6ab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x468b16,'accept');return this['forceDefaultExecution'](()=>_0x4cb6ab(_0x3df9b1,_0x334411,_0x3eb967)),null;}_0x727757['push'](..._0x3df9b1);let _0x1c6f66=!0x0;for(const _0x273391 of _0x727757)if(!this['_rangeIsInLocalUserInsertion'](_0x273391)){_0x1c6f66=!0x1;break;}if(_0x1c6f66&&'always'!==this['_trackFormatChanges']){const _0x5ccbb7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x468b16,'accept');return this['forceDefaultExecution'](()=>_0x5ccbb7(_0x3df9b1,_0x334411,_0x3eb967)),null;}const _0x46fba3=this['editor']['plugins']['get']('Users')['me'];for(const _0x59a91c of this['getSuggestions']()){if(_0x59a91c['author']['id']!=_0x46fba3['id'])continue;if('formatBlock'!=_0x59a91c['type']||_0x59a91c['data']['formatGroupId']!=_0x334411['formatGroupId'])continue;if(!qt(_0x59a91c,_0x3eb967))continue;const _0x27d80c=_0x59a91c['subType']==_0x468b16;for(let _0x45cb0f=0x0;_0x45cb0f<_0x3df9b1['length'];_0x45cb0f++){const _0x1ca8e7=_0x3df9b1[_0x45cb0f];for(const _0xa8a3b4 of _0x59a91c['getMarkers']()){const _0x1b1b9f=_0xa8a3b4['getRange']();if(_0x1ca8e7['isEqual'](_0x1b1b9f)){_0x27d80c?(_0x3df9b1['splice'](_0x45cb0f,0x1),_0x45cb0f--):_0x59a91c['removeMarker'](_0xa8a3b4['name']);break;}}}}if(0x0==_0x3df9b1['length'])return null;const _0x5f13fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x468b16,'join');for(const _0x123500 of this['getSuggestions']())if(_0x123500['author']['id']==_0x46fba3['id']&&'formatBlock'==_0x123500['type']&&_0x123500['data']['formatGroupId']==_0x334411['formatGroupId']&&_0x123500['subType']==_0x468b16&&qt(_0x123500,_0x3eb967)&&(_0x5f13fe(_0x123500['getRanges'](),_0x3df9b1)||_0x5f13fe(_0x3df9b1,_0x123500['getRanges']()))){for(const _0x1ae65b of _0x3df9b1)_0x123500['addRange'](_0x1ae65b);return _0x123500;}const _0x35c9d9=_0x5b34d0(),_0x4d1c16=_0x46fba3['id'],_0x268f87='formatBlock:'+_0x468b16,_0x2b5002=this['_setSuggestionData']({'id':_0x35c9d9,'type':_0x268f87,'data':_0x334411,'createdAt':new Date(),'authorId':_0x4d1c16,'attributes':_0x3eb967});for(const _0x564215 of _0x3df9b1)this['_addSuggestionMarker'](_0x268f87,_0x35c9d9,_0x4d1c16,_0x564215,u['getMultiRangeId']());return _0x2b5002;}['markDeletion'](_0x26d9ea,_0x1d3b53=null,_0x25cb29={}){if(_0x26d9ea['isCollapsed'])return null;const _0x536beb=this['editor']['plugins']['get']('Users')['me'],_0x239ebd=new _0x7a70a6(_0x26d9ea['start'],_0x26d9ea['end']);for(const {suggestion:_0x25ac66,meta:_0x139dc3}of this['_findSuggestions'](_0x239ebd,'insertion'))if(_0x139dc3['isOwn']&&!_0x139dc3['isNextTo']){if(_0x25ac66['isMultiRange']){const _0x6b46ea=_0x25ac66['getRanges']()['filter'](_0x4516cd=>'$graveyard'!=_0x4516cd['root']['rootName']);_0x6b46ea['every'](_0x2c57a3=>_0x239ebd['containsRange'](_0x2c57a3,!0x0))&&_0x25ac66['discard']();if(_0x6b46ea['some'](_0x526565=>_0x526565['containsRange'](_0x239ebd,!0x0))){const _0x2c6350=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d3b53,'accept');return this['forceDefaultExecution'](()=>_0x2c6350([_0x239ebd],null,_0x25cb29)),null;}}else{const _0x4acf32=_0x239ebd['getIntersection'](_0x25ac66['getFirstRange']());null!==_0x4acf32&&_0x25ac66['_onDiscard']([_0x4acf32],null,_0x25cb29);}}if(_0x239ebd['detach'](),_0x239ebd['isCollapsed']||'$graveyard'==_0x239ebd['root']['rootName'])return null;let _0x22f421=null,_0x1a428b=_0x239ebd['start'],_0x282b41=_0x239ebd['end'];const _0x333c64=this['_findSuggestions'](_0x239ebd,'deletion');for(const {suggestion:_0xd219c5,meta:_0x11dd16}of _0x333c64){const _0x524269=this['_model']['createRange'](_0x1a428b,_0x282b41);if(_0x11dd16['isOwn']&&(this['_mergeNestedSuggestions']||!_0x11dd16['containsRangeInObject']&&!_0x11dd16['isInsideObject'])){if(_0xd219c5['isMultiRange']){if(!qt(_0xd219c5,_0x25cb29))continue;let _0x4265b1=!0x0;for(const _0x5241cc of _0xd219c5['getRanges']()){if(_0x5241cc['containsRange'](_0x524269,!0x0))return _0xd219c5;_0x524269['containsRange'](_0x5241cc)||(_0x4265b1=!0x1);}_0x4265b1&&_0xd219c5['discard']();}else{const _0x804c48=_0xd219c5['getFirstRange']();if(_0x804c48['containsRange'](_0x524269,!0x0))return _0xd219c5;if(!qt(_0xd219c5,_0x25cb29)){_0x524269['containsRange'](_0x804c48)?_0xd219c5['removeMarkers']():_0x804c48['containsPosition'](_0x1a428b)?_0x1a428b=_0x804c48['end']:_0x804c48['containsPosition'](_0x282b41)&&(_0x282b41=_0x804c48['start']);continue;}_0x1a428b=_0x1a428b['isBefore'](_0x804c48['start'])?_0x1a428b:_0x804c48['start'],_0x282b41=_0x282b41['isAfter'](_0x804c48['end'])?_0x282b41:_0x804c48['end'],_0x25cb29=Object['assign']({},_0xd219c5['attributes']),_0x22f421?_0x804c48['start']['isBefore'](_0x22f421['getFirstRange']()['start'])?(_0x22f421['removeMarkers'](),_0x22f421=_0xd219c5):_0xd219c5['removeMarkers']():_0x22f421=_0xd219c5;}}}if(_0x22f421)return this['_setSuggestionRange'](_0x22f421,this['_model']['createRange'](_0x1a428b,_0x282b41)),_0x22f421;{const _0xcac973=_0x5b34d0(),_0x6ff856=this['_model']['createRange'](_0x1a428b,_0x282b41),_0x364712=_0x536beb['id'],_0xe8049a=_0x1d3b53?'deletion:'+_0x1d3b53:'deletion',_0x3528fd=this['_setSuggestionData']({'id':_0xcac973,'type':_0xe8049a,'createdAt':new Date(),'authorId':_0x364712,'attributes':_0x25cb29});return this['_addSuggestionMarker'](_0xe8049a,_0xcac973,_0x364712,_0x6ff856),_0x3528fd;}}['markMultiRangeDeletion'](_0x2116e6,_0x4918fa='multi',_0x52aa87={}){const _0x26b3ec=this['editor']['plugins']['get']('Users')['me'],_0x406230=_0x2116e6['map'](_0x12b638=>new _0x7a70a6(_0x12b638['start'],_0x12b638['end'])),_0x1dd0a4=new Set();for(const {suggestion:_0x3fa840,meta:_0x131079}of this['_findSuggestions'](_0x406230,'insertion'))_0x131079['isOwn']&&!_0x131079['isNextTo']&&_0x1dd0a4['add'](_0x3fa840);for(const _0x5abb64 of _0x1dd0a4)if(_0x5abb64['isMultiRange']){const _0x5126ca=_0x5abb64['getRanges']();(!_0x5abb64['attributes']||!_0x5abb64['attributes']['skipNestingCheck'])&&(_0x5126ca['every'](_0x28b0d3=>_0x406230['some'](_0x4639fc=>_0x4639fc['containsRange'](_0x28b0d3,!0x0)))&&_0x5abb64['discard']());if(_0x406230['every'](_0x1da80b=>_0x5126ca['some'](_0x4297b8=>_0x4297b8['containsRange'](_0x1da80b,!0x0)))){const _0x4e1f27=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4918fa,'accept');return this['forceDefaultExecution'](()=>_0x4e1f27(_0x2116e6,null,_0x52aa87)),null;}}else{const _0x3d58c5=_0x5abb64['getFirstRange']();_0x406230['some'](_0x317141=>_0x317141['containsRange'](_0x3d58c5,!0x0))&&_0x5abb64['discard']();if(_0x406230['every'](_0x28531e=>_0x3d58c5['containsRange'](_0x28531e,!0x0))){const _0x5f2748=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4918fa,'accept');return this['forceDefaultExecution'](()=>_0x5f2748(_0x406230,null,_0x52aa87)),null;}}const _0x5789a2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4918fa,'join');let _0x366dd3=null;for(const _0x44ac8c of this['getSuggestions']())if(_0x44ac8c['author']['id']==_0x26b3ec['id']&&_0x44ac8c['isInContent']&&'deletion'==_0x44ac8c['type']&&_0x44ac8c['subType']==_0x4918fa&&qt(_0x44ac8c,_0x52aa87)&&(_0x5789a2(_0x44ac8c['getRanges'](),_0x406230)||_0x5789a2(_0x406230,_0x44ac8c['getRanges']()))){if(_0x366dd3){if(_0x44ac8c['commentThread']&&_0x44ac8c['commentThread']['length'])continue;for(const _0x345653 of _0x44ac8c['getRanges']())_0x366dd3['isIntersectingWithRange'](_0x345653)||_0x366dd3['addRange'](_0x345653);_0x44ac8c['removeMarkers']();}else{_0x366dd3=_0x44ac8c;for(const _0x386cd0 of _0x406230)_0x44ac8c['isIntersectingWithRange'](_0x386cd0)||_0x44ac8c['addRange'](_0x386cd0);}}if(_0x366dd3)return _0x366dd3;_0x1dd0a4['clear']();for(const {suggestion:_0x10f280,meta:_0xa7e82}of this['_findSuggestions'](_0x406230,'deletion'))_0xa7e82['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa7e82['containsRangeInObject']&&!_0xa7e82['isInsideObject'])&&qt(_0x10f280,_0x52aa87)&&_0x1dd0a4['add'](_0x10f280);for(const _0x296550 of _0x1dd0a4){const _0x5989b9=_0x296550['getRanges']();if(!_0x52aa87||!_0x52aa87['skipNestingCheck']){if(_0x406230['every'](_0x1bb1a0=>_0x5989b9['some'](_0x16f385=>_0x16f385['containsRange'](_0x1bb1a0,!0x0))))return _0x296550;}(!_0x296550['attributes']||!_0x296550['attributes']['skipNestingCheck'])&&(_0x5989b9['every'](_0xc29f2=>_0x406230['some'](_0x4cc87d=>_0x4cc87d['containsRange'](_0xc29f2,!0x0)))&&_0x296550['discard']());}const _0x327ce4=_0x5b34d0(),_0x415d08=_0x26b3ec['id'],_0x49a79e='deletion:'+_0x4918fa,_0x300767=this['_setSuggestionData']({'id':_0x327ce4,'type':_0x49a79e,'createdAt':new Date(),'authorId':_0x415d08,'attributes':_0x52aa87});for(const _0x35c824 of _0x406230)_0x35c824['detach'](),_0x35c824['isCollapsed']||'$graveyard'==_0x35c824['root']['rootName']||this['_addSuggestionMarker'](_0x49a79e,_0x327ce4,_0x415d08,_0x35c824,u['getMultiRangeId']());return _0x300767;}['markAttributeChange'](_0x300635,_0xe50357,_0x50c694,_0x1e9669,_0x1a0305){if(_0x300635['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x517f13=this['editor']['plugins']['get']('Users')['me']['id'],_0x30b81d=Array['from'](this['_suggestions']['values']())['filter'](_0x53846e=>'attribute'==_0x53846e['type']&&_0x53846e['data']['key']==_0xe50357&&_0x53846e['isIntersectingWithRange'](_0x300635));if('default'===this['_trackFormatChanges']){const _0x593466=this['_findSuggestions'](_0x300635,'insertion')['filter'](({meta:_0x2f3020})=>_0x2f3020['isOwn']&&!_0x2f3020['isInsideObject']&&!_0x2f3020['isNextTo'])['map'](({suggestion:_0x2b46ca})=>_0x2b46ca);_0x30b81d['unshift'](..._0x593466);}const _0x1029f3=new Map([[_0x300635,_0x50c694]]);for(const _0x40c5d1 of _0x30b81d){const _0x2e4823='attribute'==_0x40c5d1['type']?_0x40c5d1['data']['oldValue']:void 0x0,_0x591a14=_0x40c5d1['getFirstRange'](),_0x4f11c0=Array['from'](_0x1029f3['keys']())['find'](_0x454342=>_0x454342['isIntersecting'](_0x591a14));if(!_0x4f11c0)continue;const _0x2b4445=_0x4f11c0['getDifference'](_0x591a14);this['_isBlockAttribute'](_0xe50357)&&'insertion'==_0x40c5d1['type']&&0x0!=_0x2b4445['length']||(_0x1029f3['delete'](_0x4f11c0),_0x2b4445['forEach'](_0x382e0e=>{_0x1029f3['set'](_0x382e0e,_0x50c694);}),'insertion'!=_0x40c5d1['type']&&_0x2e4823!=_0x1e9669&&_0x1029f3['set'](_0x4f11c0['getIntersection'](_0x591a14),_0x2e4823));}const _0x260f3f=[];for(const [_0x4a78a2,_0x38b5d0]of _0x1029f3){const _0xc8ff2a=_0x5b34d0(),_0x237098={'key':_0xe50357,'oldValue':_0x38b5d0,'newValue':_0x1e9669};_0xe50357['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':_0xe50357});const _0x17be5f=('attribute:'+(_0xe50357+'|'+Pt({'newValue':_0x1e9669})))['substring'](0x0,0x3c),_0x216d03=this['_setSuggestionData']({'id':_0xc8ff2a,'type':_0x17be5f,'data':_0x237098,'createdAt':new Date(),'authorId':_0x517f13,'attributes':_0x1a0305});_0x260f3f['push'](_0x216d03),this['_addSuggestionMarker'](_0x17be5f,_0xc8ff2a,_0x517f13,_0x4a78a2);}return _0x260f3f;}['enableDefaultAttributesIntegration'](_0x4c639){this['enableCommand'](_0x4c639,(_0x2938f3,..._0x148d38)=>{this['_recordAttributeChanges'](()=>{_0x2938f3(..._0x148d38);});});}['registerBlockAttribute'](_0x9dcea8){this['_blockAttributeKeys']['add'](_0x9dcea8);}['registerInlineAttribute'](_0x655fa6){this['_inlineAttributeKeys']['add'](_0x655fa6);}['_getAttributeKey'](_0xbc492){return'attribute'==_0xbc492['type']?_0xbc492['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x305abe,_0x3295cb){const _0xacb019=_0x305abe['getFirstMarker']();this['_model']['change'](_0x39aef3=>{_0x39aef3['updateMarker'](_0xacb019,{'range':_0x3295cb});});}['_addThreadToSuggestion'](_0x14731e){const _0x395a92=_0x14731e['id'],_0x154223=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x395a92)||this['_commentsRepository']['addCommentThread']({'channelId':_0x154223,'threadId':_0x395a92,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4966f3=this['_commentsRepository']['getCommentThread'](_0x395a92);_0x4966f3['unbind']('isRemovable'),_0x4966f3['isRemovable']=!0x1,_0x14731e['commentThread']=_0x4966f3;}['_checkSuggestionCorrectness'](_0x46f504,_0x19fdfd,_0x25b3f3,_0x400914){if(_0x46f504['type']!=_0x19fdfd||_0x46f504['subType']!=_0x25b3f3||_0x46f504['creator']['id']!=_0x400914)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x34c45c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x349692,_0x4397d7){const _0x34fc26=_0x349692['getFirstRange']();if(_0x4397d7['isEqual'](_0x34fc26))_0x349692['removeMarkers']();else{if(_0x34fc26['containsRange'](_0x4397d7)){const _0x7d10ad=this['_model']['createPositionAt'](_0x4397d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x349692,this['_model']['createRange'](_0x34fc26['start'],_0x7d10ad));const _0x3347cf=_0x5b34d0(),_0x3b237a=_0x349692['creator']['id'],_0x4035c1=_0x349692['type']+':'+_0x349692['subType'];this['_setSuggestionData']({'id':_0x3347cf,'type':_0x4035c1,'createdAt':new Date(),'authorId':_0x3b237a,'data':_0x349692['data'],'attributes':_0x349692['attributes']});const _0x1afe74=this['_model']['createPositionAt'](_0x4397d7['end']['parent'],'after'),_0x256975=this['_model']['createRange'](_0x1afe74,_0x34fc26['end']);this['_addSuggestionMarker'](_0x4035c1,_0x3347cf,_0x3b237a,_0x256975);}else{if(_0x34fc26['containsPosition'](_0x4397d7['start'])){const _0x7ba97b=this['_model']['createPositionAt'](_0x4397d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x349692,this['_model']['createRange'](_0x34fc26['start'],_0x7ba97b));}else{const _0x21b325=this['_model']['createPositionAt'](_0x4397d7['end']['parent'],'after');this['_setSuggestionRange'](_0x349692,this['_model']['createRange'](_0x21b325,_0x34fc26['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x38c560){for(const {suggestion:_0x74b8fd,meta:_0x19a681}of this['_findSuggestions'](_0x38c560,'insertion')){if(!_0x19a681['isOwn'])continue;const _0x534ee1=_0x74b8fd['getRanges']();for(const _0x27f2a9 of _0x534ee1)if(!_0x38c560['getDifference'](_0x27f2a9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2e2e4c){const _0x2aaada=this['editor']['plugins']['get']('Users')['getUser'](_0x2e2e4c);if(!_0x2aaada)throw new _0x34c45c('track-changes-user-not-found',this);return _0x2aaada;}['_getExternalAuthor'](_0x4d3019){const _0x33d150=this['editor']['plugins']['get']('Users'),_0x3e9a6c=_0xf585eb('external:'+_0x4d3019),_0x48ef2d=_0x33d150['getUser'](_0x3e9a6c);return _0x48ef2d||_0x33d150['addUser']({'id':_0x3e9a6c,'name':_0x4d3019});}['_createSuggestion'](_0x565fbb,_0x48ec5e,_0x50d330,_0x3ce8cf,_0x2c9850){const _0x2e0a84=this['_getAuthorFromId'](_0x3ce8cf),_0x466e49=this['_suggestionFactory']['buildSuggestion'](_0x565fbb,_0x48ec5e,_0x50d330,_0x2e0a84,_0x2c9850,_0x4ddb88=>{this['_updateSuggestionData'](_0x50d330,{'attributes':_0x4ddb88});const _0x4af51a=this['getSuggestion'](_0x50d330);this['_joinWithAdjacentSuggestions'](new Set([_0x4af51a])),this['_refreshSuggestionsChain'](new Set([_0x4af51a]));});return this['listenTo'](_0x466e49,'accept',()=>{this['_updateSuggestionData'](_0x50d330,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x466e49,'discard',()=>{this['_updateSuggestionData'](_0x50d330,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x50d330,_0x466e49),this['_suggestionState']['set'](_0x466e49,'notReady'),_0x466e49;}['_splitMarkerName'](_0xf28d3e){const _0x20305b=_0xf28d3e['split'](':');return{'group':_0x20305b[0x0],'type':_0x20305b[0x1],'subType':_0x20305b['length']>=0x5?_0x20305b[0x2]:null,'id':_0x20305b['length']<0x5?_0x20305b[0x2]:_0x20305b[0x3],'authorId':_0x20305b['length']<0x5?_0x20305b[0x3]:_0x20305b[0x4],'markerCount':0x6==_0x20305b['length']?_0x20305b[0x5]:null};}['_breakSuggestionMarker'](_0x169aa8,_0x52133b,_0x24df1b){const _0x217e28=_0x169aa8['getFirstRange'](),_0x53c193=_0x217e28['start'],_0x58b86e=_0x217e28['end'];this['_setSuggestionRange'](_0x169aa8,this['_model']['createRange'](_0x53c193,_0x52133b));const _0x589778=_0x5b34d0(),_0x587907=_0x169aa8['creator']['id'],_0x2def45=_0x169aa8['type']+(_0x169aa8['subType']?':'+_0x169aa8['subType']:'');this['_setSuggestionData']({'id':_0x589778,'type':_0x2def45,'createdAt':new Date(),'authorId':_0x587907,'originalSuggestionId':_0x169aa8['id'],'attributes':_0x169aa8['attributes'],'data':_0x169aa8['data']});const _0x3e141a=this['_getAttributeKey'](_0x169aa8);('formatBlock'==_0x169aa8['type']||_0x3e141a&&this['_isBlockAttribute'](_0x3e141a))&&(_0x24df1b=this['_model']['createPositionBefore'](_0x24df1b['parent'])),this['_addSuggestionMarker'](_0x2def45,_0x589778,_0x587907,this['_model']['createRange'](_0x24df1b,_0x58b86e));}['_findSuggestions'](_0x191474,_0x1a1f05=null){const _0xab296e=[],_0x4426c7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x191474)||(_0x191474=[_0x191474]);for(const _0x17bfaf of this['getSuggestions']()){if(!_0x17bfaf['isInContent'])continue;if(_0x1a1f05&&_0x17bfaf['type']!=_0x1a1f05)continue;let _0x38bf82=!0x1;for(const _0x1287c7 of _0x17bfaf['getRanges']()){for(const _0x577cb9 of _0x191474){const _0x34d806=_0x577cb9['start']['isEqual'](_0x1287c7['end'])||_0x577cb9['end']['isEqual'](_0x1287c7['start']);if(_0x34d806||_0x577cb9['getIntersection'](_0x1287c7)){const _0x2a811a=_0x577cb9['containsRange'](_0x1287c7)&&Et(this['_model']['schema'],_0x1287c7['start'],_0x577cb9),_0x12eab0=_0x1287c7['containsRange'](_0x577cb9)&&Et(this['_model']['schema'],_0x577cb9['start'],_0x1287c7);_0xab296e['push']({'suggestion':_0x17bfaf,'meta':{'isOwn':_0x4426c7==_0x17bfaf['author'],'isNextTo':_0x34d806,'isInsideObject':_0x2a811a,'containsRangeInObject':_0x12eab0}}),_0x38bf82=!0x0;break;}}if(_0x38bf82)break;}}return _0xab296e;}['_addSuggestionMarker'](_0x1fa99b,_0xe2ee94,_0x369f07,_0x268d23,_0x358e5e){this['_model']['change'](_0x276a6e=>{let _0x225b32='suggestion:'+_0x1fa99b+':'+_0xe2ee94+':'+_0x369f07;_0x358e5e&&(_0x225b32=_0x225b32+':'+_0x358e5e),_0x276a6e['addMarker'](_0x225b32,{'range':_0x268d23,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x518b97){const _0x3e732b=_0x518b97['previous'],_0x1df3dc=_0x518b97['next'];_0x518b97['previous']=null,_0x518b97['next']=null,null!=_0x3e732b&&_0x3e732b['next']==_0x518b97&&(_0x3e732b['next']=_0x1df3dc),null!=_0x1df3dc&&_0x1df3dc['previous']==_0x518b97&&(_0x1df3dc['previous']=_0x3e732b),'ready'==this['_suggestionState']['get'](_0x518b97)&&(this['_suggestionState']['set'](_0x518b97,'removed'),this['fire']('suggestionUnloaded',_0x518b97,_0x3e732b,_0x1df3dc));}['_setSuggestionData'](_0x13eb63){const _0x433962=_0x13eb63['id'],_0x3f34d4=this['addSuggestionData'](_0x13eb63);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4ca2a6=this['editor']['plugins']['get']('PendingActions'),_0x383fb5=_0x3f34d4['hasComments'],_0x317a5a=_0x3f34d4['subType']?_0x3f34d4['type']+':'+_0x3f34d4['subType']:_0x3f34d4['type'],_0xdf60fb=this['editor']['locale'],_0x25c498=_0x4ca2a6['add'](o(_0xdf60fb,'PENDING_ACTION_SUGGESTION')),_0x5e23db={'id':_0x433962,'type':_0x317a5a,'hasComments':_0x383fb5,'data':_0x13eb63['data']||null,'originalSuggestionId':_0x13eb63['originalSuggestionId']||null,'attributes':_0x3f34d4['attributes']};this['_adapter']['addSuggestion'](_0x5e23db)['then'](_0x4ea74f=>{_0x3f34d4['_saved']=!0x0,_0x4ca2a6['remove'](_0x25c498),_0x4ea74f&&_0x4ea74f['createdAt']&&(this['_suggestions']['get'](_0x433962)['createdAt']=_0x4ea74f['createdAt']);})['catch'](_0x54f462=>{throw _0x135957('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3f34d4['discard']();}),_0x3f34d4['stopListening'](),this['_suggestions']['delete'](_0x3f34d4['id']),this['_suggestionState']['delete'](_0x3f34d4),_0x54f462;});}return _0x3f34d4;}['_isBlockAttribute'](_0x162ac7){return this['_blockAttributeKeys']['has'](_0x162ac7);}['_updateSuggestionData'](_0x4ee7f3,_0x5552ff){const _0x1ae737=this['editor']['plugins']['get']('PendingActions'),_0x439cae=this['getSuggestion'](_0x4ee7f3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x439cae['_saved']){const _0x1986d4=_0x1ae737['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4ee7f3,_0x5552ff)['then'](()=>{_0x1ae737['remove'](_0x1986d4);});}else _0x439cae['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4ee7f3,_0x5552ff);});}}['_getSuggestionData'](_0x144e22){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x34c45c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x144e22);}['_handleNewSuggestionMarker'](_0x511d00){const {id:_0x1c81f6,type:_0x8f4173,subType:_0x18cfd1,authorId:_0x415dfc}=this['_splitMarkerName'](_0x511d00),_0x2c201e=this['_suggestions']['get'](_0x1c81f6)||this['_createSuggestion'](_0x8f4173,_0x18cfd1,_0x1c81f6,_0x415dfc,{});switch(this['_checkSuggestionCorrectness'](_0x2c201e,_0x8f4173,_0x18cfd1,_0x415dfc),this['_suggestionState']['get'](_0x2c201e)){case'notReady':this['_getSuggestionData'](_0x1c81f6)['then'](_0xf7c47f=>{let _0x561053=Promise['resolve']();_0xf7c47f['hasComments']&&(_0x561053=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1c81f6})),_0x561053['then'](()=>{this['addSuggestionData'](_0xf7c47f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c201e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1c81f6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c201e,'ready'),this['fire']('suggestionLoaded',_0x2c201e);break;case'ready':this['fire']('suggestionChanged',_0x2c201e);}return _0x2c201e['addMarkerName'](_0x511d00),_0x2c201e;}['_refreshSuggestionsChain'](_0x1d7454){const _0x3ad848=Array['from'](_0x1d7454),_0x299979=_0x3ad848['filter'](_0x14e7f8=>'attribute'==_0x14e7f8['type']);this['_refreshAttributeSuggestionsChain'](_0x299979);const _0x5ad997=_0x3ad848['filter'](_0x97e8af=>!_0x97e8af['isMultiRange']&&'attribute'!=_0x97e8af['type']),_0x352bf3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f20c7=>!_0x1f20c7['isMultiRange']&&'attribute'!=_0x1f20c7['type']),_0xdd7ad4=_0x352bf3['filter'](_0x48be76=>!_0x1d7454['has'](_0x48be76)),_0x3be856=new Map(_0x352bf3['map'](_0x1a01e1=>[_0x1a01e1,this['_suggestionFactory']['getSuggestionCallback'](_0x1a01e1['type'],_0x1a01e1['subType'],'chain')])),_0x40279d=new Map(_0x352bf3['map'](_0x324bb8=>[_0x324bb8,_0x324bb8['getFirstRange']()])),_0x5099f2=new Set(),_0x104b3a=new Set();for(let _0x48c5b9=0x0;_0x48c5b9<_0x5ad997['length'];_0x48c5b9++)_0x1a8d3e(_0x5ad997[_0x48c5b9],_0x5ad997,_0x48c5b9+0x1);for(let _0x4560c9=0x0;_0x4560c9<_0x5ad997['length'];_0x4560c9++)_0x1a8d3e(_0x5ad997[_0x4560c9],_0xdd7ad4,0x0);const _0x92664=new Set();for(let _0x3ba412=0x0;_0x3ba412<_0x5ad997['length'];_0x3ba412++){const _0xd076b2=_0x5ad997[_0x3ba412];!_0x104b3a['has'](_0xd076b2)&&_0xd076b2['previous']&&(_0x92664['add'](_0xd076b2['previous']),_0xd076b2['previous']['next']===_0xd076b2&&(_0xd076b2['previous']['next']=null),_0xd076b2['previous']=null),!_0x5099f2['has'](_0xd076b2)&&_0xd076b2['next']&&(_0x92664['add'](_0xd076b2['next']),_0xd076b2['next']['previous']===_0xd076b2&&(_0xd076b2['next']['previous']=null),_0xd076b2['next']=null);}function _0x1a8d3e(_0x302e46,_0xbef619,_0x3b5a75){for(let _0x37e250=_0x3b5a75;_0x37e250<_0xbef619['length'];_0x37e250++){const _0x2dcafd=_0x3a2f36(_0x302e46,_0xbef619[_0x37e250]);_0x2dcafd&&(_0x2dcafd[0x0]['next']=_0x2dcafd[0x1],_0x2dcafd[0x1]['previous']=_0x2dcafd[0x0],_0x5099f2['add'](_0x2dcafd[0x0]),_0x104b3a['add'](_0x2dcafd[0x1]));}}function _0x3a2f36(_0x284309,_0x50cdfa){if(_0x284309['author']['id']!==_0x50cdfa['author']['id'])return null;const _0x3f8299=_0x3be856['get'](_0x284309)(_0x284309,_0x50cdfa,_0x40279d['get'](_0x284309),_0x40279d['get'](_0x50cdfa));if(!_0x3f8299)return null;return _0x3be856['get'](_0x50cdfa)(_0x284309,_0x50cdfa,_0x40279d['get'](_0x284309),_0x40279d['get'](_0x50cdfa))?_0x3f8299[0x1]['commentThread']&&_0x3f8299[0x1]['commentThread']['length']?null:_0x3f8299:null;}_0x92664['size']&&this['_refreshSuggestionsChain'](_0x92664);}['_refreshAttributeSuggestionsChain'](_0x361ae5){if(0x0==_0x361ae5['length'])return;const _0x10fc1e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xff3b55=>'attribute'==_0xff3b55['type']&&_0xff3b55['_isDataLoaded']),_0x7341ce=[],_0x53e740=new Map();for(const _0x308cad of _0x10fc1e){const _0x1f3d88=_0xf585eb(_0x308cad['attributes']);_0x53e740['has'](_0x1f3d88)||(_0x53e740['set'](_0x1f3d88,_0x7341ce['length']),_0x7341ce['push']([]));const _0x53334b=_0x53e740['get'](_0x1f3d88);_0x7341ce[_0x53334b]['push'](_0x308cad);}!(function(){_0x7341ce['sort']((_0x229b9f,_0x52fe56)=>{const _0x15c822=_0x229b9f[0x0]['createdAt'],_0xbf88e9=_0x52fe56[0x0]['createdAt'];return _0x15c822==_0xbf88e9?_0x229b9f[0x0]['attributes']['groupId']<_0x52fe56[0x0]['attributes']['groupId']?-0x1:0x1:_0x15c822<_0xbf88e9?-0x1:0x1;});for(const _0x1415af of _0x7341ce)_0x1415af['sort']((_0x440fb7,_0x4b612a)=>_0x440fb7['id']<_0x4b612a['id']?-0x1:0x1);}());for(let _0x25ddc4=0x0;_0x25ddc4<_0x7341ce['length'];_0x25ddc4++){if(0x0==_0x7341ce[_0x25ddc4]['length'])continue;const _0x44f986=[];for(let _0xbfabcd=_0x25ddc4+0x1;_0xbfabcd<_0x7341ce['length'];_0xbfabcd++)0x0!=_0x7341ce[_0xbfabcd]['length']&&_0x119215(_0x7341ce[_0x25ddc4],_0x7341ce[_0xbfabcd])&&_0x44f986['push'](_0xbfabcd);for(const _0x25a388 of _0x44f986)_0x7341ce[_0x25ddc4]=_0x7341ce[_0x25ddc4]['concat'](_0x7341ce[_0x25a388]),_0x7341ce[_0x25a388]=[];}for(const _0x3dede0 of _0x7341ce)for(let _0x4132bc=0x0;_0x4132bc<_0x3dede0['length'];_0x4132bc++){const _0x12e8b0=_0x3dede0[_0x4132bc+0x1]||null;_0x3dede0[_0x4132bc]['next']!==_0x12e8b0&&(_0x3dede0[_0x4132bc]['next']=_0x12e8b0);}for(const _0x48eee9 of _0x7341ce)for(let _0x5ac511=0x0;_0x5ac511<_0x48eee9['length'];_0x5ac511++){const _0x4590fa=_0x48eee9[_0x5ac511-0x1]||null;_0x48eee9[_0x5ac511]['previous']!==_0x4590fa&&(_0x48eee9[_0x5ac511]['previous']=_0x4590fa);}function _0x119215(_0x586768,_0x361c40){if(_0x586768[0x0]['attributes']['groupId']!==_0x361c40[0x0]['attributes']['groupId']&&_0x586768[0x0]['author']!==_0x361c40[0x0]['author'])return!0x1;if(!function(_0xb178ab,_0x45d745){if(!_0xb178ab['hasComments']&&!_0x45d745['hasComments'])return!0x0;if(_0xb178ab['hasComments']&&_0x45d745['hasComments'])return!0x1;if(_0xb178ab['hasComments']&&_0x45d745['createdAt']<_0xb178ab['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x45d745['hasComments']&&_0xb178ab['createdAt']<_0x45d745['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x586768[0x0],_0x361c40[0x0]))return!0x1;const _0x37c85e=Rt(_0x586768[0x0]['attributes'],'groupId'),_0x539df9=Rt(_0x361c40[0x0]['attributes'],'groupId');if(!_0x24b8a4(_0x37c85e,_0x539df9))return!0x1;return!!_0x586768['every'](_0x1dce05=>_0x361c40['some'](_0x510bf4=>_0x1dce05['getFirstRange']()['isEqual'](_0x510bf4['getFirstRange']())))&&_0x361c40['every'](_0x2b42f5=>_0x586768['some'](_0xfee2ab=>_0x2b42f5['getFirstRange']()['isEqual'](_0xfee2ab['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x581c43){const _0x527d19=Array['from'](_0x581c43),_0x41b4cd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5d6de3=_0x41b4cd['filter'](_0x5d2489=>!_0x581c43['has'](_0x5d2489)),_0x43b80d=new Map(_0x527d19['map'](_0x5d269a=>[_0x5d269a,this['_suggestionFactory']['getSuggestionCallback'](_0x5d269a['type'],_0x5d269a['subType'],'join')])),_0x1f0641=new Map(_0x41b4cd['map'](_0x1c4467=>[_0x1c4467,_0x1c4467['getRanges']()]));for(let _0x141038=0x0;_0x141038<_0x527d19['length'];_0x141038++){if(_0x3bbfa8(this,_0x527d19[_0x141038],_0x527d19,_0x141038+0x1))return!0x0;}for(let _0x3d78d0=0x0;_0x3d78d0<_0x527d19['length'];_0x3d78d0++){if(_0x3bbfa8(this,_0x527d19[_0x3d78d0],_0x5d6de3,0x0))return!0x0;}return!0x1;function _0x3bbfa8(_0x1b8f38,_0xb705,_0x2801fe,_0x57521d){for(let _0xabbadb=_0x57521d;_0xabbadb<_0x2801fe['length'];_0xabbadb++){const _0x285096=_0x2801fe[_0xabbadb];if(_0x285096['type']!==_0xb705['type']||_0x285096['author']['id']!==_0xb705['author']['id']||_0x285096['subType']!==_0xb705['subType'])continue;if(!Jt(_0xb705,_0x285096))continue;if('attribute'==_0xb705['type']&&_0xb705['data']['oldValue']!=_0x285096['data']['oldValue'])continue;if('attribute'==_0xb705['type']&&_0x1b8f38['_isBlockAttribute'](_0xb705['data']['key']))continue;if('formatBlock'==_0xb705['type']){const _0x2c6a2b=_0x1b8f38['editor']['model'],_0x2e51cc=_0xb705['getContainedElement']();if(_0x2e51cc&&(_0x2c6a2b['schema']['isObject'](_0x2e51cc)||_0x2c6a2b['schema']['isLimit'](_0x2e51cc)))continue;}const _0x321b9b=_0x43b80d['get'](_0xb705),_0xe96e1f=_0x1f0641['get'](_0xb705),_0x371fa1=_0x1f0641['get'](_0x285096),_0x3ec47b=_0xb705['commentThread']&&_0xb705['commentThread']['length'],_0x1740d1=_0x285096['commentThread']&&_0x285096['commentThread']['length'];if(!_0x3ec47b&&_0x321b9b(_0x371fa1,_0xe96e1f))return _0x1b8f38['_joinSuggestions'](_0x285096,_0xb705),_0x1f0641['delete'](_0xb705),!0x0;if(!_0x1740d1&&_0x321b9b(_0xe96e1f,_0x371fa1))return _0x1b8f38['_joinSuggestions'](_0xb705,_0x285096),_0x1f0641['delete'](_0x285096),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8dbca5,_0xf0467d){if(_0x8dbca5['isMultiRange']){for(const _0x251661 of _0xf0467d['getRanges']())_0x8dbca5['addRange'](_0x251661);}else{const _0x312dba=_0xf0467d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8dbca5,this['_model']['createRange'](_0x8dbca5['getFirstRange']()['start'],_0x312dba));}_0xf0467d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3fa6d6,_0x4d5e4f,_0x90e8d9){const _0x3cdee4=_0x3fa6d6['startsWith']('format')||_0x3fa6d6['startsWith']('attribute')?'FORMATTING':_0x3fa6d6['toUpperCase']();return o(this['editor']['locale'],_0x4d5e4f+'_'+_0x3cdee4+'_SUGGESTION_ANNOUNCEMENT',_0x90e8d9);}['_initAriaMarkerChangeAnnouncements'](){const _0x53d8c7=this['editor'];if(!_0x53d8c7['ui'])return;const {ariaLiveAnnouncer:_0x424eba}=_0x53d8c7['ui'];_0x8f0d73(this['_model'],({left:_0x2f1c34,entered:_0x159773})=>{for(const _0x2060a9 of _0x2f1c34){const {group:_0x2862a8,type:_0x417878}=this['_splitMarkerName'](_0x2060a9['name']);if('suggestion'===_0x2862a8){_0x424eba['announce'](this['_getMarkerAnnouncementText'](_0x417878,'LEAVE'));break;}}for(const _0x26b566 of _0x159773){const {group:_0x1a68ba,type:_0x2215a0}=this['_splitMarkerName'](_0x26b566['name']);if('suggestion'===_0x1a68ba){_0x424eba['announce'](this['_getMarkerAnnouncementText'](_0x2215a0,'ENTER',_0x53d907(_0xf70cef)));break;}}});}['_processAttributeChanges'](_0x1d7a29){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4c0f15=this['editor'],_0x4a9e00=_0x4c0f15['model']['document']['differ']['getChanges']();if(0x0==_0x4a9e00['length'])return!0x1;const _0xcd31c=[],_0x4385fa=_0x4a9e00['filter'](_0x440fc1=>'attribute'==_0x440fc1['type']),_0x2f74e4=_0x4a9e00['filter'](_0x152d9e=>'insert'==_0x152d9e['type']&&'$text'!=_0x152d9e['name']),_0x88df5d=_0x4a9e00['filter'](_0x37549b=>'remove'==_0x37549b['type']&&'$text'!=_0x37549b['name']);for(const _0x55acbd of _0x4385fa)_0xcd31c['push']({'key':_0x55acbd['attributeKey'],'newValue':_0x55acbd['attributeNewValue'],'oldValue':_0x55acbd['attributeOldValue'],'range':Ft(_0x55acbd['range'],_0x4c0f15['model'])});for(const _0x1263e7 of _0x2f74e4){const _0x11ad0f=_0x88df5d['find'](_0x5876a0=>_0x5876a0['position']['isEqual'](_0x1263e7['position']));_0x11ad0f&&_0xcd31c['push']({'key':m,'newValue':_0x1263e7['name'],'oldValue':_0x11ad0f['name'],'range':_0x4c0f15['model']['createRangeOn'](_0x1263e7['position']['nodeAfter'])});}return 0x0!=_0xcd31c['length']&&this['_reduceExistingSuggestions'](_0x1d7a29,_0xcd31c);}['_processAttributeSuggestions'](_0x5b4e41){let _0x25ec97=!0x1;const _0x249f3b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x584296=>_0x584296['data']['newRange']&&_0x584296['name']['startsWith']('suggestion:attribute:'));for(const _0x10ef5e of _0x249f3b){const {subType:_0x31195d,id:_0x2a9091}=this['_splitMarkerName'](_0x10ef5e['name']),_0x23b6bc=_0x31195d['split']('|')[0x0];for(const _0x538635 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x538635['id']!=_0x2a9091&&'attribute'==_0x538635['type']&&_0x538635['data']&&_0x538635['data']['key']==_0x23b6bc&&_0x538635['getFirstRange']()['isIntersecting'](_0x10ef5e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x538635,_0x10ef5e['data']['newRange'],_0x5b4e41),_0x25ec97=!0x0);}return _0x25ec97;}['_recordAttributeChanges'](_0x7d6311){this['_recordAttributeSuggestions']=!0x0,_0x7d6311();}['_isRegisteredAttribute'](_0x21503e){const _0x5d19da=this['_isBlockAttribute'](_0x21503e),_0x34d72f=this['_inlineAttributeKeys']['has'](_0x21503e);return _0x5d19da||_0x34d72f;}['_reduceExistingSuggestions'](_0x1552f0,_0x152c9e){if(0x0==_0x152c9e['length'])return!0x1;let _0x2e569f=!0x1;for(const _0x34dd9d of _0x152c9e){const _0x4a1e6e=this['_findSuggestions'](_0x34dd9d['range'],'attribute')['filter'](_0x54fbcf=>!_0x54fbcf['meta']['isNextTo'])['map'](_0x4740fb=>_0x4740fb['suggestion']),_0x12711f=_0xf585eb({'newValue':_0x34dd9d['newValue']});_0x4a1e6e['filter'](_0x1ef12d=>{const [_0x410de9,_0x4ded99]=_0x1ef12d['subType']['split']('|');return _0x410de9==_0x34dd9d['key']&&_0x4ded99!=_0x12711f;})['forEach'](_0xd68627=>{this['_reduceSuggestionAttributeRange'](_0xd68627,_0x34dd9d['range'],_0x1552f0),_0x2e569f=!0x0;});}return _0x2e569f;}['_reduceSuggestionAttributeRange'](_0x16b381,_0x30527c,_0x7c68a3){const _0x5b7787=_0x16b381['getFirstRange']()['getDifference'](_0x30527c);0x0!==_0x5b7787['length']?0x1!==_0x5b7787['length']?this['_breakSuggestionMarker'](_0x16b381,_0x30527c['start'],_0x30527c['end']):this['_setSuggestionRange'](_0x16b381,_0x5b7787[0x0]):_0x7c68a3['removeMarker'](_0x16b381['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5e9a7a){this['_editor']=_0x5e9a7a,this['_model']=_0x5e9a7a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1e031d,_0x519b53,_0x268284,_0x41dd37,_0x10c076,_0x5ccab7){return new u(this['_model'],{'type':_0x1e031d,'subType':_0x519b53,'id':_0x268284,'author':_0x41dd37,'creator':_0x41dd37,'attributes':_0x10c076,'onAttributesChange':_0x5ccab7,'onAccept':(..._0x26936c)=>this['getSuggestionCallback'](_0x1e031d,_0x519b53,'accept')(..._0x26936c),'onDiscard':(..._0x2e091a)=>this['getSuggestionCallback'](_0x1e031d,_0x519b53,'discard')(..._0x2e091a)});}['registerCustomCallback'](_0xf720b5,_0x59b6b3,_0x50c996,_0x131c32){const _0x24bb9a=_0xf720b5+':'+_0x59b6b3+':'+_0x50c996;this['_customCallbacks']['set'](_0x24bb9a,_0x131c32);}['getSuggestionCallback'](_0x547d52,_0x278d21,_0x43b4d8){const _0x17eee6=_0x547d52+':'+_0x278d21+':'+_0x43b4d8;return this['_customCallbacks']['get'](_0x17eee6)||this['_defaultCallbacks']['get'](_0x547d52+':'+_0x43b4d8);}['_registerDefaultCallbacks'](){const _0x545d8a=()=>!0x1,_0x131ffb=_0x5a1c4c=>{_0x5a1c4c['sort']((_0x59ca88,_0xa9be74)=>_0x59ca88['start']['isBefore'](_0xa9be74['start'])?0x1:-0x1),this['_model']['change'](_0x239254=>{for(const _0x5b10d7 of _0x5a1c4c){let _0x1d9f72;_0x1d9f72=_0x5b10d7['end']['isAtEnd']&&_0x5b10d7['end']['parent']==_0x5b10d7['start']['nodeAfter']?_0x239254['createSelection'](_0x5b10d7['start']['nodeAfter'],'on'):_0x239254['createSelection'](_0x5b10d7),this['_model']['deleteContent'](_0x1d9f72,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x21cf75=(_0x13a0bb,_0x28e011)=>{_0x28e011&&this['_model']['change'](_0x49ce4f=>{const {commandName:_0x42e248,commandParams:_0x1317e7=[]}=_0x28e011,_0x2304d0=_0x13a0bb['map'](_0x3019f4=>(Vt(_0x3019f4)&&(_0x3019f4=this['_model']['createRange'](_0x3019f4['end'])),_0x3019f4))['filter'](_0x466a20=>'$graveyard'!==_0x466a20['root']['rootName']);if(_0x2304d0['length']<0x1)return;const _0x12f7b6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x148667=>_0x7a70a6['fromRange'](_0x148667));_0x49ce4f['setSelection'](_0x2304d0);for(const _0x505ccd of this['_editor']['commands']['commands']())_0x505ccd['refresh']();_0x1317e7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x42e248,..._0x1317e7);const _0x312628=_0x12f7b6['filter'](_0x2ea42e=>'$graveyard'!=_0x2ea42e['root']['rootName']);_0x312628['length']>0x0&&_0x49ce4f['setSelection'](_0x312628);for(const _0x552518 of _0x12f7b6)_0x552518['detach']();});},_0x3ec0e5=(_0x5f4695,_0x5b1283)=>0x1==_0x5f4695['length']&&0x1==_0x5b1283['length']&&_0x5f4695[0x0]['end']['isEqual'](_0x5b1283[0x0]['start']),_0xa67a1e=(_0x2f8e46,_0x510077,_0x29a8c7,_0x25a76f)=>Ht(_0x2f8e46,_0x510077,_0x29a8c7,_0x25a76f,this['_model'])?[_0x2f8e46,_0x510077]:Ht(_0x510077,_0x2f8e46,_0x25a76f,_0x29a8c7,this['_model'])?[_0x510077,_0x2f8e46]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x545d8a),this['_defaultCallbacks']['set']('insertion:discard',_0x131ffb),this['_defaultCallbacks']['set']('insertion:join',_0x3ec0e5),this['_defaultCallbacks']['set']('insertion:chain',_0xa67a1e),this['_defaultCallbacks']['set']('deletion:accept',_0x131ffb),this['_defaultCallbacks']['set']('deletion:discard',_0x545d8a),this['_defaultCallbacks']['set']('deletion:join',_0x3ec0e5),this['_defaultCallbacks']['set']('deletion:chain',_0xa67a1e),this['_defaultCallbacks']['set']('formatInline:accept',_0x21cf75),this['_defaultCallbacks']['set']('formatInline:discard',_0x545d8a),this['_defaultCallbacks']['set']('formatInline:join',_0x3ec0e5),this['_defaultCallbacks']['set']('formatInline:chain',_0x545d8a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x21cf75),this['_defaultCallbacks']['set']('formatBlock:discard',_0x545d8a),this['_defaultCallbacks']['set']('formatBlock:join',_0x3ec0e5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x545d8a),this['_defaultCallbacks']['set']('attribute:accept',_0x545d8a),this['_defaultCallbacks']['set']('attribute:discard',(_0xdb5c9d,_0x3cdf37)=>{if(!_0x3cdf37)return;const _0x122737=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x42d39b=>{if(_0x3cdf37['key']==m)for(const _0x1aad9d of _0xdb5c9d){const _0x5c7ba9=_0x1aad9d['start']['nodeAfter'],_0x3247f5=_0x3cdf37['oldValue'];_0x42d39b['rename'](_0x5c7ba9,_0x3247f5);}else{if(_0x122737['_isBlockAttribute'](_0x3cdf37['key'])){for(const _0x2ad5a0 of _0xdb5c9d)void 0x0!==_0x3cdf37['oldValue']?_0x42d39b['setAttribute'](_0x3cdf37['key'],_0x3cdf37['oldValue'],_0x2ad5a0['start']['nodeAfter']):_0x42d39b['removeAttribute'](_0x3cdf37['key'],_0x2ad5a0['start']['nodeAfter']);}else{for(const _0xea14e8 of _0xdb5c9d)_0x3cdf37['oldValue']?_0x42d39b['setAttribute'](_0x3cdf37['key'],_0x3cdf37['oldValue'],_0xea14e8):_0x42d39b['removeAttribute'](_0x3cdf37['key'],_0xea14e8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3ec0e5);}}function Et(_0xaf0360,_0x41a61f,_0x4e7ffd){for(const _0x248918 of _0x41a61f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x248918['root']==_0x248918)return!0x1;if(!_0x4e7ffd['containsItem'](_0x248918))return!0x1;if(_0xaf0360['isObject'](_0x248918)||_0xaf0360['isLimit'](_0x248918))return!0x0;}return!0x1;}function Vt(_0x2f0447){return _0x2f0447['end']['parent']==_0x2f0447['start']['nodeAfter']&&_0x2f0447['end']['isAtStart'];}function Ut(_0xdfd9dd,_0x5a8c39,_0x36604b,_0x3ed459){const _0x2e96d7=_0x337051=>!_0x337051['item']['is']('$textProxy')&&!_0x3ed459['isObject'](_0x337051['item']),_0x273869=_0xdfd9dd['start']['getLastMatchingPosition'](_0x2e96d7),_0x1bca76=_0xdfd9dd['end']['getLastMatchingPosition'](_0x2e96d7,{'direction':'backward'});return(!_0xdfd9dd['start']['isEqual'](_0x273869)||!_0xdfd9dd['end']['isEqual'](_0x1bca76))&&(_0x273869['isBefore'](_0x1bca76)?_0x36604b['updateMarker'](_0x5a8c39,{'range':_0x36604b['createRange'](_0x273869,_0x1bca76)}):_0x36604b['removeMarker'](_0x5a8c39),!0x0);}function Pt(_0x98ccd9){return _0xf585eb(_0x98ccd9);}function Gt(_0x46d8a6){const _0x5a78e7=_0x46d8a6['start']['nodeAfter'];return _0x5a78e7&&_0x5a78e7['is']('element');}function Ft(_0x5f070d,_0xae47f8){return null==_0x5f070d['end']['nodeBefore']&&_0x5f070d['end']['parent']==_0x5f070d['start']['nodeAfter']?Lt(_0x5f070d['start']['nodeAfter'],_0xae47f8):_0x5f070d;}function Lt(_0x266839,_0x3d00){const _0xb5bcc4=_0x3d00['schema']['isObject'](_0x266839)||_0x3d00['schema']['isSelectable'](_0x266839);return _0x3d00['createRange'](_0x3d00['createPositionAt'](_0x266839,'before'),_0xb5bcc4?_0x3d00['createPositionAfter'](_0x266839):_0x3d00['createPositionAt'](_0x266839,'end'));}function Ht(_0x1f7a83,_0x1cc699,_0x5029ab,_0x35127c,_0x5ca8f5){if(_0x1f7a83['next'])return!0x1;if(!Jt(_0x1f7a83,_0x1cc699))return!0x1;if(_0x5029ab['end']['isEqual'](_0x35127c['start']))return!0x0;if(_0x1f7a83['type']!=_0x1cc699['type'])return!0x1;if(!_0x5029ab['end']['isTouching'](_0x35127c['start']))return!0x1;const _0x52cf41=_0x5ca8f5['createRange'](_0x5029ab['end'],_0x35127c['start'])['getWalker']();for(const _0x178df4 of _0x52cf41)if(['elementStart','elementEnd']['includes'](_0x178df4['type'])&&_0x5ca8f5['schema']['isLimit'](_0x178df4['item']))return!0x1;return!0x0;}function Jt(_0x3a1236,_0x4d4a21){if(!_0x3a1236['_isDataLoaded']||!_0x4d4a21['_isDataLoaded'])return!0x1;const _0x253a48=new Set(Object['keys'](_0x3a1236['attributes'])),_0x1787fb=new Set(Object['keys'](_0x4d4a21['attributes']));if(_0x253a48['delete']('groupId'),_0x1787fb['delete']('groupId'),0x0==_0x253a48['size']&&0x0==_0x1787fb['size'])return!0x0;if(_0x253a48['size']!=_0x1787fb['size'])return!0x1;const _0x49f813={..._0x3a1236['attributes']},_0x2af8a3={..._0x4d4a21['attributes']};return delete _0x49f813['groupId'],delete _0x2af8a3['groupId'],JSON['stringify'](_0x49f813)==JSON['stringify'](_0x2af8a3);}function qt(_0x428503,_0x362687){const _0x156135=zt(_0x428503['attributes']),_0x5c8315=zt(_0x362687);if(!_0x428503['_isDataLoaded'])return!0x1;for(const _0x45bab2 of Object['keys'](_0x5c8315))if(!_0x24b8a4(_0x156135[_0x45bab2],_0x5c8315[_0x45bab2]))return!0x1;return!0x0;}function zt(_0x87bd93){const _0x203d6a=Object['assign']({},_0x87bd93);return delete _0x203d6a['skipNestingCheck'],delete _0x203d6a['tablePasteChainId'],_0x203d6a;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x349c89(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4932fe,_0x1bc26e,_0x1cef94,_0x40bd88){super(),this['model']=_0x1bc26e,this['view']=_0x1cef94,this['commentThreadController']=_0x40bd88,this['_editor']=_0x4932fe,this['_acceptCommand']=_0x4932fe['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4932fe['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x340113,_0x1facec)=>_0x340113||_0x1facec),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x395461=>_0x395461&&this['_editor']['model']['canEditAt'](_0x1bc26e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x8b7917=>_0x8b7917&&this['_editor']['model']['canEditAt'](_0x1bc26e['getRanges']())),this['_pendingAction']=null,_0x1cef94['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1cef94,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1cef94,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1cef94,'change:isDirty',()=>{_0x1cef94['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 _0x31d5b5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x31d5b5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x44480a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3045b2,_0x972ad7,_0x2bb1d2,_0x2b0f03){super(_0x3045b2),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xc9898d(_0x3045b2,o(_0x3045b2,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x972ad7['authoredAt']),this['bind']('authoredAt')['to'](_0x972ad7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x972ad7,'authoredAt',this,'descriptionParts',(_0x55910e,_0x19e9e8,_0xcfda8d)=>{const _0x1cdef6=_0xcfda8d['map'](_0x36227c=>ls(_0x36227c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x55910e-0x1,_0x972ad7['author']['name'],_0x19e9e8?_0x2b0f03['formatDateTime'](_0x19e9e8):'',new DOMParser()['parseFromString'](_0x1cdef6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1863a4(),this['focusTracker']=new _0x47ecc2(),this['keystrokes']=new _0x3f770e(),this['focusCycler']=new _0x363e2d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4af566=>_0x4af566['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x972ad7,this['_localUser']=_0x2bb1d2,this['_config']=_0x2b0f03,_0x2b0f03['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x68ba8b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x223a78}=this['_config'];this['commentsListView']=new _0x223a78(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',_0x7bd1b8=>_0x7bd1b8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x21b9cd,_0xdd8b4c)=>_0x21b9cd||!!_0xdd8b4c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x318053}=this['_config'],_0x3801c8=new _0x318053(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2bc0eb=_0x3801c8['commentInputView'];return _0x3801c8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2bc0eb,'value',(_0x44a5d7,_0x483118,_0x5da32a)=>!!_0x5da32a||_0x44a5d7&&!_0x483118),_0x2bc0eb['on']('submit',(_0x1bf211,_0x1806af)=>{this['fire']('addComment',_0x1806af),_0x2bc0eb['editor']['setData']('');}),_0x2bc0eb['on']('cancel',()=>this['focus']()),_0x2bc0eb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3801c8;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x53defc,_0x1acdf6,_0x17e9b8,_0x5010aa){super(_0x53defc,_0x1acdf6,_0x17e9b8,_0x5010aa),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5bb14a=>_0x5bb14a&&_0x5bb14a[0x0]?_0x5bb14a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x51c1b7,_0x415905)=>{let _0x16e1b7='';for(const _0x54c6b4 of _0x51c1b7)_0x16e1b7+='<p>'+ls(_0x54c6b4['content'],_0x54c6b4['color'])+'</p>';return _0x415905?_0x16e1b7:_0x5e68f4(_0x16e1b7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5010aa['SuggestionView'](_0x53defc,_0x1acdf6,{'formatDateTime':_0x5010aa['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5225fe=this['bindTemplate'],_0x263bdf=[this['suggestionView']];return this['commentsListView']&&_0x263bdf['push'](this['commentsListView']),this['commentThreadInputView']&&_0x263bdf['push'](this['commentThreadInputView']),_0x263bdf['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5225fe['if']('isActive','ck-suggestion-wrapper--active'),_0x5225fe['to']('type',_0x564417=>'ck-suggestion-'+_0x564417),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x5225fe['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x263bdf};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x44480a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2e305b,_0x41bcec,_0x417f3f){super(_0x2e305b),this['_model']=_0x41bcec,this['_config']=_0x417f3f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x41bcec),this['acceptButton']=this['_createButton'](o(_0x2e305b,'Accept\x20suggestion'),_0x3b3428['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2e305b,'Discard\x20suggestion'),_0x3b3428['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4d3f9c(_0x2e305b,_0x41bcec['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1863a4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x47ecc2(),this['keystrokes']=new _0x3f770e(),this['focusCycler']=new _0x363e2d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x243e56=>_0x243e56['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1d0e38=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1d0e38['innerHTML']=this['description'],this['on']('change:description',(_0x148e72,_0x348d5b,_0x4ef5ec)=>{_0x1d0e38['innerHTML']=_0x4ef5ec;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x56a37e=this['bindTemplate'],_0x1bc069=[{'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':_0x56a37e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x56a37e['to']('authoredAt',_0x39283e=>this['_config']['formatDateTime'](_0x39283e))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x1bc069['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x1bc069}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1a5c60,_0x49e372,_0x329b0f,_0x2aa460,_0x35d721){const _0x4fed44=new _0x162c45(this['locale']);return _0x4fed44['set']({'label':_0x1a5c60,'icon':_0x49e372,'tooltip':!0x0,'tooltipPosition':_0x35d721}),_0x4fed44['extendTemplate']({'attributes':{'class':_0x329b0f}}),_0x4fed44['on']('execute',()=>{this['fire'](_0x2aa460,this['_model']['id']);}),_0x4fed44;}['_setupKeyboardNavigation'](){const _0x5d99b5=this['element'];this['keystrokes']['listenTo'](_0x5d99b5);for(const _0x56acbe of this['focusables'])this['focusTracker']['add'](_0x56acbe['element']),this['keystrokes']['listenTo'](_0x56acbe['element']);this['keystrokes']['set']('enter',(_0x1100a7,_0x3c6fa3)=>{_0x5d99b5===_0x1100a7['target']&&(this['focusCycler']['focusFirst'](),_0x3c6fa3());}),this['keystrokes']['set']('esc',(_0x466a90,_0x11d352)=>{_0x5d99b5!==_0x466a90['target']&&(this['focus'](),_0x11d352());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x9c8a48{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4a537f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5133ee){super(_0x5133ee),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1a899a=this['editor']['config'];_0x1a899a['define']('trackChanges.SuggestionThreadView',re),_0x1a899a['define']('trackChanges.SuggestionView',ce),_0x1a899a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1a899a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1791e2,_0x49af47){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5d1b15,_0x3a3447]of this['_handleControllerBuffer']){const _0x5699ac=this['_suggestionToController']['has'](_0x5d1b15);_0x5699ac||_0x3a3447?_0x5699ac&&_0x3a3447&&this['_destroyController'](_0x5d1b15):this['_initializeController'](_0x5d1b15);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1791e2,_0x49af47);}['init'](){const _0x27d42b=this['editor'],_0x96a9fc=_0x27d42b['plugins']['get']('TrackChangesEditing'),_0x46e182=_0x27d42b['plugins']['get']('Annotations'),_0x59ba17=_0x27d42b['plugins']['get']('EditorAnnotations'),_0x390948=_0x27d42b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x59ba17['addSourceCollector'](()=>{const _0x39a6c9=[];for(const [_0x55e9ae,_0x58f958]of Array['from'](this['_suggestionToController'])){const _0x10ebb0=_0x55e9ae['getAllAdjacentSuggestions'](),_0xdf9357=[];for(const _0x315159 of _0x10ebb0){if(!_0x315159['isInContent'])continue;if(_0x315159['isMultiRange']){_0xdf9357['push'](..._0x315159['getRanges']());continue;}const _0x283bd8=_0x315159['getFirstRange']();if(_0xdf9357['length']>0x0){const _0x457684=_0xdf9357[0x0]['getJoined'](_0x283bd8);if(_0x457684){_0xdf9357[0x0]=_0x457684;continue;}}_0xdf9357['push'](_0x283bd8);}_0x39a6c9['push']([_0x58f958['view'],_0xdf9357]);}return _0x39a6c9;}),this['listenTo'](_0x96a9fc,'suggestionLoaded',(_0x41ad96,_0xbe06fc)=>{this['listenTo'](_0xbe06fc,'change:previous',(_0x2b97ba,_0x36c37c,_0x511966,_0x310771)=>{_0xbe06fc['isInContent']&&(null==_0x511966?(this['_updateController'](_0x310771['head']),this['_handleSuggestionControllerDelayed'](_0xbe06fc,!0x1)):(this['_updateController'](_0x511966['head']),null==_0x310771&&this['_handleSuggestionControllerDelayed'](_0xbe06fc,!0x0)));}),null!==_0xbe06fc['previous']?this['_updateController'](_0xbe06fc['head']):this['_handleSuggestionControllerDelayed'](_0xbe06fc,!0x1);}),this['listenTo'](_0x96a9fc,'suggestionUnloaded',(_0x2a6405,_0x1ef49a,_0x5baabb)=>{this['stopListening'](_0x1ef49a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1ef49a),this['_suggestionToController']['has'](_0x1ef49a)&&this['_destroyController'](_0x1ef49a),_0x5baabb&&this['_updateController'](_0x5baabb['head']);}),this['listenTo'](_0x96a9fc,'suggestionChanged',(_0x44e2b0,_0x362c8b)=>{this['_updateController'](_0x362c8b);}),this['listenTo'](_0x46e182,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x390948,'addComment',(_0x36b61b,{threadId:_0x335c9d,isFromAdapter:_0x80bfea})=>{if(_0x80bfea||!_0x96a9fc['hasSuggestion'](_0x335c9d))return;const _0x36e5be=_0x96a9fc['getSuggestion'](_0x335c9d);this['_suggestionToController']['get'](_0x36e5be)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2fa1e0=this['editor']['plugins']['get']('Annotations'),_0x434d3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x370417=Array['from'](_0x2fa1e0['activeAnnotations'],_0x47d424=>_0x47d424['innerView'])['filter'](_0x1100f4=>this['_viewToController']['has'](_0x1100f4)),_0x193f14=[];for(const _0x55d322 of _0x370417){const _0x3d9949=this['_viewToController']['get'](_0x55d322)['model']['getAllAdjacentSuggestions']();_0x193f14['push'](..._0x3d9949['reduce']((_0x562bf3,_0x1be72b)=>[..._0x562bf3,..._0x1be72b['getMarkerNames']()],[]));}_0x434d3d['activeMarkers']=_0x193f14;}['_addUIComponentsToFactory'](){const _0x5eee98=this['editor'],_0x1f3766=_0x5eee98['locale'],_0x563166=o(_0x1f3766,'Track\x20changes'),_0x97528a=new Wt([{'type':'switchbutton','model':new _0xc70a69({'withText':!0x0,'isToggleable':!0x0,'label':_0x563166,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xc70a69({'withText':!0x0,'label':o(_0x1f3766,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc70a69({'withText':!0x0,'label':o(_0x1f3766,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc70a69({'withText':!0x0,'label':o(_0x1f3766,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc70a69({'withText':!0x0,'label':o(_0x1f3766,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x15f9f9 of _0x97528a)if(me(_0x15f9f9)){const _0x5add78=_0x5eee98['commands']['get'](_0x15f9f9['model']['commandName']);_0x15f9f9['model']['bind']('isOn','isEnabled')['to'](_0x5add78,'value','isEnabled');}_0x5eee98['ui']['componentFactory']['add']('trackChanges',_0x223ac2=>this['_createToolbarButton'](_0x223ac2,_0x97528a,_0x563166)),_0x5eee98['ui']['componentFactory']['add']('menuBar:trackChanges',_0x566c4a=>this['_createMenuBarMenu'](_0x566c4a,_0x97528a,_0x563166));}['_createToolbarButton'](_0x4a8ee4,_0x493893,_0xb0a543){const _0x289d53=Qt(_0x4a8ee4,_0x57a754),_0x114aa7=this['editor']['commands']['get']('trackChanges');_0x289d53['buttonView']['set']({'tooltip':_0xb0a543,'label':_0xb0a543,'icon':he}),_0x289d53['buttonView']['bind']('isOn')['to'](_0x114aa7,'value'),_0x289d53['buttonView']['on']('execute',()=>{_0x114aa7['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x289d53,_0x493893,{'role':'menu'});const _0x421b7e=[];for(const _0x560d76 of _0x493893)me(_0x560d76)&&_0x421b7e['push'](this['editor']['commands']['get'](_0x560d76['model']['commandName']));const _0x58e47c=_0x289d53['buttonView'];return _0x58e47c['actionView']['unbind']('isEnabled'),_0x58e47c['arrowView']['unbind']('isEnabled'),_0x58e47c['actionView']['bind']('isEnabled')['to'](_0x114aa7,'isEnabled'),_0x58e47c['arrowView']['bind']('isEnabled')['toMany'](_0x421b7e,'isEnabled',(..._0x16502e)=>_0x16502e['some'](_0x5abcee=>_0x5abcee)),_0x289d53['on']('execute',_0x143cca=>{this['editor']['execute'](_0x143cca['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x289d53;}['_createMenuBarMenu'](_0x56d7d7,_0xa78200,_0x55aae6){const _0x2ffc07=new Yt(_0x56d7d7),_0x294fed=this['editor']['commands']['get']('trackChanges');_0x2ffc07['buttonView']['set']({'label':_0x55aae6,'icon':he});const _0x3adc8c=new Zt(_0x56d7d7);for(const _0x3b8292 of _0xa78200){if('separator'==_0x3b8292['type']){_0x3adc8c['items']['add'](new Xt(_0x56d7d7));continue;}const _0x849237=new te(_0x56d7d7,_0x2ffc07),_0x590f2b=new _0x59867e(_0x56d7d7),_0x4e1c62=_0x3b8292['model'];_0x590f2b['bind'](...Object['keys'](_0x4e1c62))['to'](_0x4e1c62),_0x590f2b['delegate']('execute')['to'](_0x2ffc07),_0x590f2b['on']('execute',()=>{this['editor']['execute'](_0x4e1c62['commandName']),this['editor']['editing']['view']['focus']();}),_0x849237['children']['add'](_0x590f2b),_0x3adc8c['items']['add'](_0x849237);}return _0x2ffc07['bind']('isEnabled')['to'](_0x294fed,'isEnabled'),_0x2ffc07['panelView']['children']['add'](_0x3adc8c),_0x2ffc07;}['_initializeController'](_0x556f2c){const _0x2e5ced=this['editor'],_0x4e654a=_0x2e5ced['config'],_0x1afb36=_0x2e5ced['plugins']['get']('Annotations'),_0x26572b=_0x2e5ced['plugins']['get']('CommentsRepository'),_0x39a582=_0x2e5ced['plugins']['get']('EditorAnnotations'),_0x3c9233=_0x2e5ced['plugins']['get'](_0x4a537f)['me'],_0x2bdfa9=_0x4e654a['get']('trackChanges')['SuggestionThreadView'],_0x54800c=_0x4e654a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xf36e8a,CommentThreadInputView:_0x3cb25c}=_0x2e5ced['plugins']['get']('CommentsUI');let _0x26f286,_0x411d5c,_0x22ebaa;this['_annotationViews']['has'](_0x556f2c['id'])?(_0x411d5c=this['_annotationViews']['get'](_0x556f2c['id']),_0x26f286=_0x411d5c['mainView']):(_0x26f286=new _0x2bdfa9(_0x2e5ced['locale'],_0x556f2c,_0x3c9233,{'disableComments':this['_disableComments'],'editorConfig':_0x4e654a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4e654a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4e654a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4e654a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x12305d(_0x4e654a['get']('locale')),'CommentView':_0x4e654a['get']('comments')['CommentView'],'CommentsListView':_0xf36e8a,'CommentThreadInputView':_0x3cb25c,'SuggestionView':_0x54800c}),_0x26f286['suggestionView']['acceptButton']['on']('execute',()=>{_0x2e5ced['editing']['view']['focus']();}),_0x26f286['suggestionView']['discardButton']['on']('execute',()=>{_0x2e5ced['editing']['view']['focus']();}),_0x411d5c=_0x1afb36['createAnnotationView'](this['editor']['locale'],_0x26f286),_0x411d5c['bind']('isDirty')['to'](_0x26f286,'isDirty'),_0x411d5c['bind']('length')['to'](_0x26f286),_0x411d5c['bind']('type')['to'](_0x26f286,'type',_0x389030=>'suggestion-'+_0x389030),_0x26f286['on']('escape',()=>{_0x22ebaa['fire']('escape');}),this['_annotationViews']['set'](_0x556f2c['id'],_0x411d5c));const _0x632c26=_0x26572b['createCommentThreadController'](_0x556f2c['commentThread'],_0x26f286),_0x325f13=new ae(_0x2e5ced,_0x556f2c,_0x26f286,_0x632c26),_0x4831c2=_0x556f2c['getAllAdjacentSuggestions']()['filter'](_0x267d77=>_0x267d77['isInContent']);_0x26f286['descriptionParts']=_0x2e5ced['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4831c2),this['_suggestionToController']['set'](_0x556f2c,_0x325f13),this['_viewToController']['set'](_0x26f286,_0x325f13),_0x22ebaa=_0x1afb36['createAnnotation']({'view':_0x411d5c,'target':()=>{const _0x580172=[],_0x1a6470=_0x556f2c['getAllAdjacentSuggestions']()['filter'](_0x2e0fa5=>_0x2e0fa5['isInContent']);for(const _0x50289d of _0x1a6470)_0x580172['push'](..._0x50289d['getMarkers']());return _0x3508bd(_0x2e5ced['editing'],_0x580172);},'type':()=>'suggestion-'+_0x325f13['view']['type']}),_0x26572b['_bindAnnotationToEditors'](_0x26f286,_0x22ebaa),_0x1afb36['add'](_0x22ebaa),_0x39a582['registerAnnotation'](_0x22ebaa);}['_destroyController'](_0x309f30){const _0x257d2f=this['editor']['plugins']['get']('CommentsRepository'),_0x93bf0c=this['editor']['plugins']['get']('Annotations'),_0x356fa2=this['_suggestionToController']['get'](_0x309f30),_0x486e09=_0x356fa2['view'],_0x5bcf4f=_0x93bf0c['getByInnerView'](_0x486e09);_0x257d2f['_unbindEditors'](_0x486e09),_0x5bcf4f&&_0x93bf0c['remove'](_0x5bcf4f),this['_suggestionToController']['delete'](_0x309f30),this['_viewToController']['delete'](_0x486e09),_0x356fa2['destroy']();}['_updateController'](_0x3bd50e){if(!_0x3bd50e['isInContent']||!this['_suggestionToController']['has'](_0x3bd50e))return;const _0x2f97a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17fe22=this['_suggestionToController']['get'](_0x3bd50e),_0x62664d=_0x3bd50e['getAllAdjacentSuggestions']();_0x17fe22['view']['descriptionParts']=_0x2f97a8['descriptionFactory']['getDescriptions'](_0x62664d);}['destroy'](){for(const _0x52aa2a of this['_suggestionToController']['keys']())this['_destroyController'](_0x52aa2a);for(const _0x4e26f5 of this['_annotationViews']['values']())_0x4e26f5['mainView']['destroy']();super['destroy']();}}function me(_0x132b87){return'model'in _0x132b87;}class k extends _0x9c8a48{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5a530f){this['editor']['plugins']['get'](p)['adapter']=_0x5a530f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x476dc5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x476dc5);}['getSuggestions']({skipNotAttached:_0x48dca1=!0x1,toJSON:_0x52e732=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x48dca1,'toJSON':_0x52e732});}['getSuggestion'](_0x2b0fd1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2b0fd1);}}const w=['Pagination'];class T extends _0x9c8a48{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x52f841=this['editor'];if(_0x52f841['config']['define']('trackChangesData.editorCreator',_0x51d547=>{const _0x554342=_0x52f841['model']['document']['getRootNames']()['reduce']((_0x374d90,_0x7229f3)=>(_0x374d90[_0x7229f3]='',_0x374d90),{});return _0x52f841['constructor']['create'](_0x554342,_0x51d547);}),'function'!=typeof _0x52f841['config']['get']('trackChangesData')['editorCreator'])throw new _0x34c45c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x8500e5){return N(this['editor'],!0x0,_0x8500e5);}['getDataWithDiscardedSuggestions'](_0xed57d2){return N(this['editor'],!0x1,_0xed57d2);}}class D extends _0x9c8a48{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x119e15){super(_0x119e15),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(_0x5d538f){return void 0x0!==_0x5d538f['getRootsAttributes'];}async function N(_0x156cdc,_0x32498a,_0x3bfa8c){const _0x575734=_0x89c5b9(_0x156cdc,w);_0x575734['plugins']['push'](p,D),_0x575734['rootsAttributes']=v(_0x156cdc)?_0x156cdc['getRootsAttributes']():void 0x0;const _0xc99433=document['createDocumentFragment'](),_0x383315=_0x156cdc['config']['get']('trackChangesData')['editorCreator'],_0xbbd638=await _0x383315(_0x575734,()=>function(_0x5ae246){const _0x3171f9=document['createElement']('div');return _0x5ae246['appendChild'](_0x3171f9),_0x3171f9;}(_0xc99433));!function(_0x316a65,_0xe4c595){const _0xe1f3e7=_0x316a65['model']['document']['getRootNames']()['reduce']((_0xf28507,_0x245d34)=>(_0xf28507[_0x245d34]=_0x316a65['data']['get']({'rootName':_0x245d34}),_0xf28507),{}),_0x13a223=_0x316a65['plugins']['get']('Users')['users']['map'](_0x1282a7=>({'id':_0x1282a7['id'],'name':_0x1282a7['name']})),_0x690dbd=_0x316a65['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x573a08=_0x316a65['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33e0ec=_0xe4c595['plugins']['get']('Users'),_0x41c160=_0xe4c595['plugins']['get']('TrackChangesEditing'),_0x2303d5=_0xe4c595['plugins']['get']('CommentsRepository');for(const _0x4395f7 of _0x2303d5['getCommentThreads']())_0x4395f7['remove']();for(const _0x2d9bb6 of _0x13a223)_0x33e0ec['getUser'](_0x2d9bb6['id'])||_0x33e0ec['addUser'](_0x2d9bb6);_0x33e0ec['me']||_0x33e0ec['useAnonymousUser']();for(const _0x3b9787 of _0x573a08)_0x2303d5['addCommentThread'](_0x3b9787);for(const _0xb3cd1b of _0x690dbd)_0x41c160['addSuggestionData'](_0xb3cd1b);_0xe4c595['data']['set'](_0xe1f3e7);}(_0x156cdc,_0xbbd638),_0xbbd638['execute'](_0x32498a?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e8f67=v(_0xbbd638)?_0xbbd638['getFullData'](_0x3bfa8c):_0xbbd638['data']['get'](_0x3bfa8c);return await _0xbbd638['destroy'](),_0x5e8f67;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|