@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240926.0 → 0.0.0-nightly-20240928.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
|
-
_0x3b24e8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2ba41f,_0x19566b){super(),this['id']=_0x19566b['id'],this['type']=_0x19566b['type'],this['subType']=_0x19566b['subType']||null,this['author']=_0x19566b['author'],this['creator']=_0x19566b['creator']||_0x19566b['author'],this['isExternal']=Boolean(_0x19566b['attributes']&&_0x19566b['attributes']['@external']),this['data']=null,this['_model']=_0x2ba41f,this['_onAccept']=_0x19566b['onAccept'],this['_onDiscard']=_0x19566b['onDiscard'],this['_onAttributesChange']=_0x19566b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x19566b['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 _0x534e71=this;for(;_0x534e71['previous'];)_0x534e71=_0x534e71['previous'];return _0x534e71;}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'](_0x1829ad){this['_markerNames']['add'](_0x1829ad);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x599f98=>this['_model']['markers']['get'](_0x599f98))['filter'](_0xcca39a=>_0xcca39a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x39b5ae=>{for(const _0x5c338c of this['getMarkers']())_0x39b5ae['removeMarker'](_0x5c338c);}),this['_markerNames']['clear']();}['removeMarker'](_0x5bb653){this['_model']['change'](_0x11ba1b=>{_0x11ba1b['removeMarker'](_0x5bb653);}),this['_markerNames']['delete'](_0x5bb653);}['addRange'](_0xf61d38){const _0x231fa1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x231fa1),this['_model']['change'](_0x1ae840=>{_0x1ae840['addMarker'](_0x231fa1,{'range':_0xf61d38,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x58ca0a){for(const _0x26840b of this['getRanges']())if(_0x26840b['isIntersecting'](_0x58ca0a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x530258=>_0x530258['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x45fccc,_0x5c9802)=>[..._0x45fccc,..._0x5c9802['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3b7776=this['getRanges']();if(0x1!=_0x3b7776['length'])return null;const _0x409915=_0x3b7776[0x0],_0x346137=_0x409915['start']['nodeAfter'],_0x59bdfd=_0x409915['end']['nodeBefore'];return _0x346137 instanceof _0x3e2670?_0x346137!=_0x59bdfd?null:_0x346137: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 _0x2bc5dc=[];let _0x1d1a56=this['head'];for(;_0x1d1a56;)_0x2bc5dc['push'](_0x1d1a56),_0x1d1a56=_0x1d1a56['next'];return _0x2bc5dc;}['setAttribute'](_0x496ac8,_0x376406){const _0x544a28=_0x24cda6(this['attributes']);_0x199dc2(_0x544a28,_0x496ac8,_0x376406),_0x599b4c(_0x544a28,this['attributes'])||(this['attributes']=_0x544a28,this['_onAttributesChange'](_0x544a28));}['removeAttribute'](_0x41e4bc){const _0x983322=_0x24cda6(this['attributes']);_0x189f21(_0x983322,_0x41e4bc),_0x599b4c(_0x983322,this['attributes'])||(this['attributes']=_0x983322,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 _0xd600d8()['substr'](0x1,0x5);}}function o(_0x28c715,_0x5dc6a0,_0x3a3e81){const t=_0x28c715['t'];switch(_0x5dc6a0){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',_0x3a3e81);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3a3e81);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3a3e81);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3a3e81);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3a3e81);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',_0x3a3e81);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3a3e81);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',_0x3a3e81);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3a3e81);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3a3e81);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3a3e81);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3a3e81);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3a3e81);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3a3e81);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3a3e81);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3a3e81);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3a3e81);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3a3e81);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3a3e81);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3a3e81);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3a3e81);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3a3e81);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3a3e81);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'},_0x3a3e81);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3a3e81);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3a3e81);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3a3e81);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3a3e81);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3a3e81);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'},_0x3a3e81);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3a3e81);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3a3e81);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3a3e81);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3a3e81);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'},_0x3a3e81);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3a3e81);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'},_0x3a3e81);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'},_0x3a3e81);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3a3e81);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'},_0x3a3e81);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3a3e81);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'},_0x3a3e81);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3a3e81);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3a3e81);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'},_0x3a3e81);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'},_0x3a3e81);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'},_0x3a3e81);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3a3e81);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'},_0x3a3e81);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'},_0x3a3e81);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'},_0x3a3e81);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5dc6a0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x488b17,_0x29bdf9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x488b17,this['_locale']=_0x29bdf9;}['getDescriptions'](_0xecef9f){const _0x514f1e=[],_0x342a84=new Set(),_0x525b76=new Set();for(let _0x1dab74=0x0;_0x1dab74<_0xecef9f['length'];_0x1dab74++){const _0x15af55=_0xecef9f[_0x1dab74];if(!_0x15af55['isInContent'])continue;const _0x58b7b9=this['_handleCustomCallbackDescription'](_0x15af55);if(_0x58b7b9){if(null!=_0x15af55['subType']){if(_0x342a84['has'](_0x15af55['subType']))continue;_0x342a84['add'](_0x15af55['subType']);}_0x514f1e['push'](_0x58b7b9);}else{if('attribute'!=_0x15af55['type'])'insertion'!=_0x15af55['type']&&'deletion'!=_0x15af55['type']||this['_handleInsertRemoveSuggestionDescription'](_0x514f1e,_0x15af55,_0xecef9f[_0x1dab74+0x1]);else{const _0x21aaf6=_0x15af55['data']['key'];if(_0x525b76['has'](_0x21aaf6))continue;_0x525b76['add'](_0x15af55['data']['key']),_0x21aaf6==m?this['_handleRenameSuggestionDescription'](_0x514f1e,_0x15af55):this['_handleAttributeSuggestionDescription'](_0x514f1e,_0x15af55);}}}return this['_resolveDescriptionItems'](_0x514f1e);}['registerDescriptionCallback'](_0x864243){this['_customCallbacks']['push'](_0x864243);}['registerElementLabel'](_0x332fa1,_0xfd7e86,_0x1ff923=_0x3c5031['normal']){'function'==typeof _0x332fa1?_0x3f2cce(this['_itemLabelsCallbacks'],{'matchingCallback':_0x332fa1,'label':_0xfd7e86,'priority':_0x1ff923}):this['_itemLabels']['set'](_0x332fa1,_0xfd7e86);}['registerAttributeLabel'](_0x4e1dde,_0xaaf1f2){this['_attributeLabels']['set'](_0x4e1dde,_0xaaf1f2);}['getItemLabel'](_0x41e325,_0x1dde3a=0x1){let _0x29e1ef;for(const _0x3ff682 of this['_itemLabelsCallbacks'])if(_0x3ff682['matchingCallback'](_0x41e325)){_0x29e1ef=_0x3ff682['label'];break;}return _0x29e1ef||(_0x29e1ef=this['_itemLabels']['get'](_0x41e325['name'])),_0x29e1ef?_0x29e1ef(_0x1dde3a):0x1!==_0x1dde3a?_0x1dde3a+'\x20'+_0x41e325['name']+'s':''+_0x41e325['name'];}['_addDescriptionItems'](_0x323e1a,_0x1e93d7){const _0x5827b6=_0x1e93d7['getFirstRange']()['getWalker'](),_0x56213c='insertion'==_0x1e93d7['type']?'add':'remove';for(const _0x11d53a of _0x5827b6){const _0xe79745=_0x11d53a['item'],_0x2a1cf2=_0x323e1a[_0x323e1a['length']-0x1];if(_0xe79745['is']('$textProxy'))_0x2a1cf2&&_0x2a1cf2['type']['indexOf']('Container')>-0x1&&_0x323e1a['pop'](),_0x2a1cf2&&'text'==_0x2a1cf2['type']?_0x2a1cf2[_0x56213c]+=_0xe79745['data']:_0x323e1a['push']({'type':'text','add':'add'==_0x56213c?_0xe79745['data']:'','remove':'remove'==_0x56213c?_0xe79745['data']:''});else{if(this['_schema']['isObject'](_0xe79745)){const _0x10f48c=_0xe79745;if(_0x2a1cf2&&_0x2a1cf2['type']['indexOf']('Container')>-0x1&&_0x323e1a['pop'](),'elementEnd'==_0x11d53a['type'])continue;_0x2a1cf2&&_0x2a1cf2['type']==_0x56213c+'Object'&&_0x2a1cf2['element']['name']==_0x10f48c['name']?_0x2a1cf2['quantity']++:_0x323e1a['push']({'type':_0x56213c+'Object','element':_0x10f48c,'quantity':0x1}),_0x5827b6['skip'](_0x41a982=>!('elementEnd'==_0x41a982['type']&&_0x41a982['item']==_0xe79745));}else{if(this['_schema']['checkChild'](_0xe79745,'$text')||_0xe79745['is']('element','softBreak')){const _0x43110f=_0xe79745;if('add'==_0x56213c&&'elementStart'==_0x11d53a['type']||'remove'==_0x56213c&&'elementEnd'==_0x11d53a['type'])continue;if(_0x2a1cf2&&-0x1==_0x2a1cf2['type']['indexOf']('Container')){'text'==_0x2a1cf2['type']&&(_0x2a1cf2[_0x56213c]+='\x0a');continue;}let _0x54aa94;if(_0x54aa94='add'==_0x56213c?_0x43110f['nextSibling']&&!this['_schema']['isObject'](_0x43110f['nextSibling'])?_0x43110f['nextSibling']:null:_0x43110f['previousSibling']&&!this['_schema']['isObject'](_0x43110f['previousSibling'])?_0x43110f['previousSibling']:null,_0x43110f['isEmpty']||_0x54aa94&&_0x54aa94['isEmpty']){const _0x2b5946=_0x54aa94&&_0x54aa94['isEmpty']?_0x54aa94:_0x43110f;_0x2a1cf2&&_0x2a1cf2['type']==_0x56213c+'EmptyContainer'&&_0x2a1cf2['element']['name']==_0x2b5946['name']?_0x2a1cf2['quantity']++:_0x323e1a['push']({'type':_0x56213c+'EmptyContainer','element':_0x2b5946,'quantity':0x1});}else _0x323e1a['push']({'type':_0x56213c+'Container','element':_0x43110f});}}}}}['_resolveDescriptionItems'](_0x1d484b){const _0x22febe=this['_locale'],_0x44b78b=[],_0x2374b9=[],_0x417245=[];for(const _0x2e26c4 of _0x1d484b)switch(_0x2e26c4['type']){case'text':if(_0x2e26c4['add']=_0x2e26c4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2e26c4['remove']=_0x2e26c4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2e26c4['add']&&''!=_0x2e26c4['remove']){_0x44b78b['push']({'type':'replace','content':o(_0x22febe,'REPLACE_TEXT',['\x22'+_0x2e26c4['remove']+'\x22','\x22'+_0x2e26c4['add']+'\x22'])});continue;}if(null!=_0x2e26c4['add']['match'](/^ +$/)){_0x44b78b['push']({'type':'insertion','content':o(_0x22febe,'*Insert:*\x20%0',o(_0x22febe,'ELEMENT_SPACE',_0x2e26c4['add']['length']))});continue;}if(null!=_0x2e26c4['remove']['match'](/^ +$/)){_0x44b78b['push']({'type':'deletion','content':o(_0x22febe,'*Remove:*\x20%0',o(_0x22febe,'ELEMENT_SPACE',_0x2e26c4['remove']['length']))});continue;}if(''!=_0x2e26c4['add']){_0x44b78b['push']({'type':'insertion','content':o(_0x22febe,'*Insert:*\x20%0','\x22'+_0x2e26c4['add']+'\x22')});continue;}_0x44b78b['push']({'type':'deletion','content':o(_0x22febe,'*Remove:*\x20%0','\x22'+_0x2e26c4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x44b78b['push']({'type':'insertion','content':o(_0x22febe,'*Insert:*\x20%0',this['getItemLabel'](_0x2e26c4['element'],_0x2e26c4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x44b78b['push']({'type':'deletion','content':o(_0x22febe,'*Remove:*\x20%0',this['getItemLabel'](_0x2e26c4['element'],_0x2e26c4['quantity']))});continue;case'addContainer':_0x44b78b['push']({'type':'insertion','content':o(_0x22febe,'*Split:*\x20%0',this['getItemLabel'](_0x2e26c4['element'],_0x2e26c4['quantity']))});continue;case'removeContainer':_0x44b78b['push']({'type':'deletion','content':o(_0x22febe,'*Merge:*\x20%0',this['getItemLabel'](_0x2e26c4['element'],_0x2e26c4['quantity']))});continue;case'addFormat':_0x2374b9['push'](_0x2e26c4['key']);continue;case'removeFormat':_0x417245['push'](_0x2e26c4['key']);continue;default:_0x44b78b['push'](_0x2e26c4);}if(_0x2374b9['length']){const _0x39fcc3=_0x2374b9['map'](_0x67df46=>this['_attributeLabels']['has'](_0x67df46)?this['_attributeLabels']['get'](_0x67df46):_0x67df46)['join'](',\x20');_0x44b78b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x39fcc3)});}if(_0x417245['length']){const _0xd0c0d2=_0x417245['map'](_0x37f579=>this['_attributeLabels']['has'](_0x37f579)?this['_attributeLabels']['get'](_0x37f579):_0x37f579)['join'](',\x20');_0x44b78b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xd0c0d2)});}return _0x44b78b;}['_handleCustomCallbackDescription'](_0x1473c9){for(const _0x4397b2 of this['_customCallbacks']){const _0x30e0de=_0x4397b2(_0x1473c9);if(_0x30e0de&&'type'in _0x30e0de)return _0x30e0de;}}['_handleAttributeSuggestionDescription'](_0x24c94a,_0x5af956){const _0x2b2652=_0x5af956['data'],_0x273cbc=void 0x0===_0x2b2652['newValue']?'removeFormat':'addFormat';_0x24c94a['push']({'type':_0x273cbc,'key':_0x2b2652['key']});}['_handleRenameSuggestionDescription'](_0x18fd0c,_0x4bb68f){_0x18fd0c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4bb68f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1c2390,_0x4f9e06,_0x425f10){if(this['_addDescriptionItems'](_0x1c2390,_0x4f9e06),_0x425f10&&_0x425f10['getFirstRange']()&&!_0x4f9e06['getFirstRange']()['end']['isEqual'](_0x425f10['getFirstRange']()['start'])){const _0x26f0ef=_0x1c2390[_0x1c2390['length']-0x1],_0x3d759f='insertion'==_0x4f9e06['type']?'add':'remove';_0x26f0ef&&'text'==_0x26f0ef['type']&&(_0x26f0ef[_0x3d759f]+='\x0a');}}}class V extends _0x3b500e{['afterInit'](){const _0x42cc4e=this['editor'],_0x2515d3=_0x42cc4e['plugins']['get']('TrackChangesEditing');_0x42cc4e['commands']['get']('showAIAssistant')&&_0x2515d3['enableCommand']('showAIAssistant');}}class U extends _0x3b500e{['afterInit'](){const _0x1b47e9=this['editor'],_0x1fbbe9=_0x1b47e9['locale'];if(!_0x1b47e9['plugins']['has']('AlignmentEditing'))return;const _0x1e8703=_0x1b47e9['plugins']['get']('TrackChangesEditing');_0x1e8703['enableDefaultAttributesIntegration']('alignment'),_0x1e8703['registerBlockAttribute']('alignment'),_0x1e8703['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1fbbe9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bc02a=this['editor'],_0x4b34ab=_0x3bc02a['locale'];_0x3bc02a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x302839=>{if('formatBlock'!=_0x302839['type'])return;const {data:_0x58f906}=_0x302839;if(_0x58f906&&'alignment'==_0x58f906['commandName']){const _0xaf847b=_0x58f906['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4b34ab,'*Format:*\x20%0',function(_0x38c1a7){switch(_0x38c1a7){case'left':return o(_0x4b34ab,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4b34ab,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4b34ab,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4b34ab,'FORMAT_JUSTIFY_TEXT');}}(_0xaf847b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3b500e{['afterInit'](){const _0x43b553=this['editor'],_0xd0ab6b=_0x43b553['plugins']['get']('TrackChangesEditing'),_0x3cb007=_0x43b553['locale'];for(const _0x24f203 of ti){if(!_0x43b553['plugins']['has'](_0x24f203))continue;const _0x314f9e=_0x24f203['slice'](0x0,-0x7)['toLowerCase'](),_0x5821c9='FORMAT_'+_0x314f9e['toUpperCase']();_0xd0ab6b['enableDefaultAttributesIntegration'](_0x314f9e),_0xd0ab6b['registerInlineAttribute'](_0x314f9e),_0xd0ab6b['descriptionFactory']['registerAttributeLabel'](_0x314f9e,o(_0x3cb007,_0x5821c9));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13b0c6=this['editor'],_0x38416c=_0x13b0c6['locale'],_0x21d59b=_0x13b0c6['plugins']['get']('TrackChangesEditing');function _0x313f35(_0x15a96c,_0x1b89c1){_0x21d59b['descriptionFactory']['registerDescriptionCallback'](_0x54e9b3=>{if('formatInline'!=_0x54e9b3['type'])return;const {data:_0x193f10}=_0x54e9b3;return _0x193f10&&_0x193f10['commandName']===_0x15a96c?_0x193f10['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38416c,'*Format:*\x20%0',_0x1b89c1)}:{'type':'format','content':o(_0x38416c,'*Remove\x20format:*\x20%0',_0x1b89c1)}:void 0x0;});}_0x313f35('bold',o(_0x38416c,'FORMAT_BOLD')),_0x313f35('italic',o(_0x38416c,'FORMAT_ITALIC')),_0x313f35('underline',o(_0x38416c,'FORMAT_UNDERLINE')),_0x313f35('code',o(_0x38416c,'FORMAT_CODE')),_0x313f35('strikethrough',o(_0x38416c,'FORMAT_STRIKETHROUGH')),_0x313f35('subscript',o(_0x38416c,'FORMAT_SUBSCRIPT')),_0x313f35('superscript',o(_0x38416c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3b500e{['afterInit'](){const _0x53a62d=this['editor'],_0x4d1a62=_0x53a62d['locale'];if(!_0x53a62d['plugins']['has']('BlockQuoteEditing'))return;const _0x47fa51=_0x53a62d['plugins']['get']('TrackChangesEditing'),_0x561789=this['editor']['commands']['get']('blockQuote');_0x47fa51['enableCommand']('blockQuote',(_0x41031e,_0x19c9b7={})=>{const _0x171eb7=this['editor']['model']['document']['selection'],_0x26e02a=_0x19c9b7&&void 0x0!==_0x19c9b7['forceValue']?_0x19c9b7['forceValue']:!_0x561789['value'];let _0xbc6003=[];if(_0x26e02a){const _0x78c7dc=Array['from'](_0x171eb7['getSelectedBlocks']())['filter'](_0xb7e098=>oo(_0xb7e098)||function(_0x157ae6,_0x5ed9ca){const _0x2c3b86=_0x5ed9ca['checkChild'](_0x157ae6['parent'],'blockQuote'),_0x5011b0=_0x5ed9ca['checkChild'](['$root','blockQuote'],_0x157ae6);return _0x2c3b86&&_0x5011b0;}(_0xb7e098,this['editor']['model']['schema']));_0xbc6003=to(_0x78c7dc,_0x53a62d['model']);}else{const _0x3ae4bc=Array['from'](_0x171eb7['getSelectedBlocks']())['filter'](_0x4c95fe=>oo(_0x4c95fe));_0xbc6003=to(_0x3ae4bc,_0x53a62d['model']);}_0x53a62d['model']['change'](()=>{for(const _0x4f8fb3 of _0xbc6003)_0x47fa51['markBlockFormat'](_0x4f8fb3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x26e02a}]});});}),_0x47fa51['descriptionFactory']['registerDescriptionCallback'](_0x548346=>{const {data:_0x1832bd}=_0x548346;if(_0x1832bd&&'blockQuote'==_0x1832bd['commandName']){const _0x4d6849=o(_0x4d1a62,'ELEMENT_BLOCK_QUOTE');return _0x1832bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d1a62,'*Set\x20format:*\x20%0',_0x4d6849)}:{'type':'format','content':o(_0x4d1a62,'*Remove\x20format:*\x20%0',_0x4d6849)};}});}}function oo(_0x1c3e50){return'blockQuote'==_0x1c3e50['parent']['name'];}class L extends _0x3b500e{['afterInit'](){const _0x3f1506=this['editor'];_0x3f1506['plugins']['has']('CaseChange')&&(_0x3f1506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f1506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f1506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3b500e{['afterInit'](){const _0x2c57ed=this['editor'];_0x2c57ed['commands']['get']('ckbox')&&_0x2c57ed['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3b500e{['afterInit'](){const _0x105a7b=this['editor'];if(!_0x105a7b['plugins']['has']('CodeBlock'))return;const _0x11a130=_0x105a7b['plugins']['get']('TrackChangesEditing'),_0x5f0154=_0x105a7b['locale'],_0x49469f=_0x105a7b['config']['get']('codeBlock')['languages'],_0x525907=_0x105a7b['commands']['get']('codeBlock');_0x11a130['enableCommand']('indentCodeBlock'),_0x11a130['enableCommand']('outdentCodeBlock'),_0x11a130['enableCommand']('codeBlock',(_0x586a60,_0x1d7169={})=>{const _0x10095d=_0x105a7b['model'],_0x10e554=_0x105a7b['model']['document']['selection'],_0x2862c8=_0x1d7169&&void 0x0!==_0x1d7169['forceValue']?_0x1d7169['forceValue']:!_0x525907['value'];let _0x36fbfc;_0x1d7169['language']||(_0x1d7169['language']=_0x49469f[0x0]['language']),_0x36fbfc=_0x2862c8?Array['from'](_0x10e554['getSelectedBlocks']())['filter'](_0xc98079=>eo(_0xc98079)||function(_0x29811d,_0x22cbde){if(_0x29811d['is']('rootElement')||_0x22cbde['isLimit'](_0x29811d))return!0x1;return _0x22cbde['checkChild'](_0x29811d['parent'],'codeBlock');}(_0xc98079,_0x10095d['schema'])):Array['from'](_0x10e554['getSelectedBlocks']())['filter'](_0x582940=>eo(_0x582940));const _0x3626cb=to(_0x36fbfc,_0x10095d);_0x10095d['change'](()=>{for(const _0x3b6f2f of _0x3626cb)_0x11a130['markBlockFormat'](_0x3b6f2f,{'commandName':'codeBlock','commandParams':[{..._0x1d7169,'forceValue':_0x2862c8}],'formatGroupId':'blockName'});});}),(_0x11a130['descriptionFactory']['registerElementLabel']('codeBlock',_0x4462bd=>o(_0x5f0154,'ELEMENT_CODE_BLOCK',_0x4462bd)),_0x11a130['descriptionFactory']['registerDescriptionCallback'](_0x2ec21c=>{if('formatBlock'!=_0x2ec21c['type'])return;const _0x4b4caa=_0x5f0154['t'],{data:_0x3ddcff}=_0x2ec21c;if(!_0x3ddcff||'codeBlock'!=_0x3ddcff['commandName'])return;const _0x2cb3a7=_0x3ddcff['commandParams'][0x0]['language'],_0x4f7dd7=_0x4b4caa(_0x49469f['find'](_0x26f7b2=>_0x26f7b2['language']===_0x2cb3a7)['label'])['toLowerCase']();return _0x3ddcff['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f0154,'*Set\x20format:*\x20%0',o(_0x5f0154,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4f7dd7+')')}:{'type':'format','content':o(_0x5f0154,'*Remove\x20format:*\x20%0',o(_0x5f0154,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xd44824){return'codeBlock'==_0xd44824['name'];}class q extends _0x3b500e{['afterInit'](){const _0x47976e=this['editor'];if(!_0x47976e['plugins']['has']('CommentsEditing'))return;_0x47976e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2ef1b6,_0x55121e,_0x24389a){const _0x4e5dab=[];for(const _0x5139ed of _0x55121e['getItems']())_0x5139ed['hasAttribute'](_0x2ef1b6)&&_0x4e5dab['push'](_0x24389a['createRangeOn'](_0x5139ed));return _0x4e5dab;}function _e(_0x2b9a8d,_0xe0016d,{showActiveMarker:_0x42f4c0=!0x0}={}){const _0x2fe5a1=_0x2b9a8d['plugins']['get']('TrackChangesEditing');return(_0x4e7916,_0x4aaded,_0x5e6c8c)=>{if(!_0x5e6c8c['consumable']['test'](_0x4aaded['markerRange'],_0x4e7916['name']))return;const _0x2fc952=_0x4aaded['markerRange']['getWalker'](),_0x45b251=_0x4aaded['markerRange']['start'],_0x501bf4=_0x2b9a8d['model']['schema'];let _0x3e4d13=null,_0x351671=null,_0x2a042a=!0x1,_0x716ab0=!0x1;for(const _0x27487c of _0x2fc952){const _0x2cef83=_0x27487c['item'];_0x2a042a=_0x2a042a||_0x501bf4['isContent'](_0x2cef83);const _0x59502b=_0x5e6c8c['mapper']['toViewElement'](_0x2cef83);if(_0x59502b&&_0x59502b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x27487c['type']&&(_0x501bf4['isBlock'](_0x2cef83)&&!_0x501bf4['isLimit'](_0x2cef83)&&(_0x2cef83['nextSibling']||_0x45b251['isAtEnd']?_0x3e4d13&&_0x3e4d13['parent']==_0x2cef83||(_0x3e4d13=_0x2cef83,_0x12ca7f(_0x27487c['previousPosition']),_0x716ab0=!0x0):_0x351671=_0x351671||_0x27487c['previousPosition']));}function _0x12ca7f(_0x5e908e){const {authorId:_0x8618dd}=_0x2fe5a1['_splitMarkerName'](_0x4aaded['markerName']),_0x4c5720=_0x5e6c8c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe0016d,'data-author-id':_0x8618dd}),_0x1547d9=_0x5e6c8c['mapper']['toViewPosition'](_0x5e908e);_0x42f4c0&&_0x2fe5a1['activeMarkers']['includes'](_0x4aaded['markerName'])&&_0x5e6c8c['writer']['addClass']('ck-suggestion-marker--active',_0x4c5720),_0x5e6c8c['writer']['insert'](_0x1547d9,_0x4c5720),_0x5e6c8c['mapper']['bindElementToMarker'](_0x4c5720,_0x4aaded['markerName']);}_0x2a042a||_0x716ab0||!_0x351671||_0x12ca7f(_0x351671);};}class z extends _0x3b500e{static get['requires'](){return[_0x2ceeab];}['init'](){const _0x4318e4=this['editor'],_0x2338cb=_0x4318e4['plugins']['get']('TrackChangesEditing');_0x2338cb['enableCommand']('delete');const _0x4cd40e=_0x4318e4['commands']['get']('deleteForward');_0x2338cb['enableCommand']('deleteForward',(_0x5a7cfc,_0x4dbc11={})=>{const _0x36ab7f=_0x4318e4['model']['createSelection'](_0x4318e4['model']['document']['selection']);_0x36ab7f['isCollapsed']&&_0x4318e4['model']['modifySelection'](_0x36ab7f,{'direction':'forward','unit':_0x4dbc11['unit']});const _0x444932=_0x36ab7f['getFirstRange'](),_0x53c8cc=_0x5e2088['fromRange'](_0x444932);let _0x531afe;_0x5a7cfc(_0x4dbc11),_0x531afe='$graveyard'==_0x53c8cc['root']['rootName']?_0x4318e4['model']['createRange'](_0x444932['start']):_0x4318e4['model']['createRange'](_0x53c8cc['start'],_0x53c8cc['end']),_0x53c8cc['detach'](),_0x4318e4['model']['enqueueChange'](_0x4cd40e['buffer']['batch'],_0x5876eb=>{_0x4cd40e['buffer']['lock'](),_0x5876eb['setSelection'](_0x5876eb['createRange'](_0x531afe['end'])),_0x4cd40e['buffer']['unlock']();});}),_0x4318e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4318e4,'merge'),{'priority':'high'}),_0x4318e4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x216e7d,_0xd89ac9,_0x2ceae9)=>{_0x2ceae9['options']['showSuggestionHighlights']&&_e(_0x4318e4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x216e7d,_0xd89ac9,_0x2ceae9);},{'priority':'high'}),_0x4318e4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5b4b7f,_0xbd138a,_0x15a34a)=>{const _0x2d101f=_0x15a34a['mapper']['markerNameToElements'](_0xbd138a['markerName']);if(_0x2d101f){for(const _0x494484 of _0x2d101f)_0x494484['is']('uiElement')&&(_0x15a34a['mapper']['unbindElementFromMarkerName'](_0x494484,_0xbd138a['markerName']),_0x15a34a['writer']['remove'](_0x494484));}},{'priority':'high'});}}class K extends _0x3b500e{['afterInit'](){const _0x216b6f=this['editor'];if(!_0x216b6f['plugins']['has']('ListEditing'))return;const _0x58516c=_0x216b6f['locale'],_0x22b153=_0x216b6f['plugins']['get']('TrackChangesEditing'),_0x39360f=_0x216b6f['plugins']['has']('TodoListEditing'),_0x2166ca=!!_0x216b6f['config']['get']('list.multiBlock');function _0x450f82(_0x342403){return{'type':'format','content':''+o(_0x58516c,'*Set\x20format:*\x20%0',_0x342403)};}function _0x2c4991(_0x11c47d){return{'type':'format','content':''+o(_0x58516c,'*Remove\x20format:*\x20%0',_0x11c47d)};}_0x22b153['enableDefaultAttributesIntegration']('numberedList'),_0x22b153['enableDefaultAttributesIntegration']('bulletedList'),_0x22b153['enableDefaultAttributesIntegration']('customNumberedList'),_0x22b153['enableDefaultAttributesIntegration']('customBulletedList'),_0x22b153['enableDefaultAttributesIntegration']('indentList'),_0x22b153['enableDefaultAttributesIntegration']('outdentList'),_0x22b153['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x22b153['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x22b153['registerBlockAttribute']('listItemId'),_0x22b153['registerBlockAttribute']('listType'),_0x22b153['registerBlockAttribute']('listIndent'),_0x2166ca&&(_0x22b153['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x22b153['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x39360f&&(_0x22b153['enableDefaultAttributesIntegration']('todoList'),_0x22b153['enableDefaultAttributesIntegration']('checkTodoList'),_0x22b153['registerBlockAttribute']('todoListChecked'),_0x22b153['descriptionFactory']['registerDescriptionCallback'](_0x1b54db=>{const {data:_0x3bf310}=_0x1b54db;if(_0x3bf310&&'todoListChecked'==_0x3bf310['key'])return{'type':'format','content':_0x3bf310['newValue']?o(_0x58516c,'*Check\x20item*'):o(_0x58516c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2af7ad=>{if(_0x2af7ad['batch']['isUndo'])return!0x1;let _0x35159a=!0x1;const _0x367456=_0x22b153['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24c7a1=>'todoListChecked'===_0x22b153['_getAttributeKey'](_0x24c7a1));for(const _0x3495f6 of _0x367456){'todo'!=_0x3495f6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x22b153['_findSuggestions'](_0x3495f6['getFirstRange'](),'attribute')['find'](_0x3ad4a0=>'listType'===_0x22b153['_getAttributeKey'](_0x3ad4a0['suggestion']))||(_0x2af7ad['removeMarker'](_0x3495f6['getFirstMarker']()),_0x35159a=!0x0));}return _0x35159a;})),_0x22b153['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x58516c,'FORMAT_INDENT'));const _0x2ba181={'type':'format','content':''};_0x22b153['descriptionFactory']['registerDescriptionCallback'](_0xb510e8=>{const {data:_0x36b953}=_0xb510e8;if(!_0x36b953||'listType'!=_0x36b953['key'])return;let _0x1c3f98=_0xb510e8['head'];for(;_0x1c3f98;){if(_0x1c3f98['data']&&(('listStyle'==_0x1c3f98['data']['key']||'listMarkerStyle'==_0x1c3f98['data']['key'])&&(_0x1c3f98['data']['newValue']&&'default'!=_0x1c3f98['data']['newValue']||'default'!=_0x1c3f98['data']['oldValue']&&!_0x36b953['newValue'])||!_0x2166ca&&_0x1c3f98['data']['key']==m))return _0x2ba181;_0x1c3f98=_0x1c3f98['next'];}if(null==_0x36b953['newValue'])switch(_0x36b953['oldValue']){case'bulleted':return _0x2c4991(o(_0x58516c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c4991(o(_0x58516c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c4991(o(_0x58516c,'ELEMENT_TODO_LIST'));}switch(_0x36b953['newValue']){case'bulleted':return _0x450f82(o(_0x58516c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x450f82(o(_0x58516c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x450f82(o(_0x58516c,'ELEMENT_TODO_LIST'));}}),_0x22b153['descriptionFactory']['registerDescriptionCallback'](_0x4d263e=>{const {data:_0x2b34ad}=_0x4d263e;if(_0x2b34ad&&'listIndent'==_0x2b34ad['key'])return null==_0x2b34ad['newValue']||null==_0x2b34ad['oldValue']&&0x0==_0x2b34ad['newValue']?_0x2ba181:void 0x0;}),_0x22b153['descriptionFactory']['registerDescriptionCallback'](_0x2385ef=>{if('attribute'!=_0x2385ef['type'])return;const {data:_0x14b3e9}=_0x2385ef;if(!_0x14b3e9||'listItemId'!=_0x14b3e9['key'])return;const _0x1e1a5d=Ee(_0x2385ef);return'newValue'==_0x1e1a5d?{'type':'format','content':o(_0x58516c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1e1a5d?{'type':'format','content':o(_0x58516c,'*Split:*\x20list\x20item')}:_0x2ba181;}),_0x216b6f['model']['document']['registerPostFixer'](_0x6fcdf9=>this['listItemIdFixer'](_0x6fcdf9)),_0x216b6f['model']['document']['registerPostFixer'](_0x439dc8=>this['noTrackChangesFixer'](_0x439dc8)),_0x216b6f['model']['document']['on']('change:data',(_0x49534a,_0x30fa17)=>{if(_0x30fa17['isUndo']||!_0x30fa17['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5a54e1){if(_0x5a54e1['batch']['isUndo']||!_0x5a54e1['batch']['isLocal'])return!0x1;let _0x14b8ed=!0x1;const _0x37feab=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eb133=>_0x2eb133['data']&&'listItemId'==_0x2eb133['data']['key'])['filter'](_0x4c3d23=>_0x4c3d23['data']['newValue']&&_0x4c3d23['data']['oldValue']);for(const _0x2c14b2 of _0x37feab)Ee(_0x2c14b2)||(_0x5a54e1['removeMarker'](_0x2c14b2['getFirstMarker']()),_0x14b8ed=!0x0);return _0x14b8ed;}['noTrackChangesFixer'](_0x5183a1){if(_0x5183a1['batch']['isUndo']||!_0x5183a1['batch']['isLocal'])return!0x1;const _0x4ccfd6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4ccfd6['trackChangesCommand']['value'])return!0x1;let _0xb93375=!0x1;const _0x2d1a3e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x13aaac=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5c0c6d=>'attribute'==_0x5c0c6d['type'])['filter'](_0x279fa4=>_0x2d1a3e['includes'](_0x279fa4['attributeKey']));if(0x0==_0x13aaac['length'])return _0xb93375;for(const _0xdcfaa of _0x13aaac){const _0x140034=_0x4ccfd6['_findSuggestions'](_0xdcfaa['range'],'attribute')['filter'](_0x1f9046=>!_0x1f9046['meta']['isNextTo'])['map'](_0x3f04f6=>_0x3f04f6['suggestion'])['filter'](_0x250225=>{const _0x8d9172=_0x4ccfd6['_getAttributeKey'](_0x250225);return _0x2d1a3e['includes'](_0x8d9172);});if(_0x140034['length']){for(const _0x25918d of _0x140034)_0x5183a1['removeMarker'](_0x25918d['getFirstMarker']());_0xb93375=!0x0;}}return _0xb93375;}['assureChains'](){const _0x5d3339=this['editor']['plugins']['get']('TrackChangesEditing'),_0xee2ab5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1f8632;const _0x5969f9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xb7fbf2=>{if(_0xb7fbf2['data']['oldRange']||!_0xb7fbf2['data']['newRange'])return null;if(!_0xb7fbf2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xc0041b}=_0x5d3339['_splitMarkerName'](_0xb7fbf2['name']);if(!_0x5d3339['hasSuggestion'](_0xc0041b))return null;const _0x3cff53=_0x5d3339['getSuggestion'](_0xc0041b);return _0xee2ab5['includes'](_0x3cff53['data']['key']);})['map'](_0x562bc9=>{const {id:_0x41c3a1}=_0x5d3339['_splitMarkerName'](_0x562bc9['name']),_0x395244=_0x5d3339['getSuggestion'](_0x41c3a1);return _0x1f8632=_0x395244['attributes']['groupId'],_0x395244['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5969f9['size'])return;const _0x22cbd1=_0x5d3339['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13ec4e=>'attribute'==_0x13ec4e['type']&&_0x13ec4e['data']&&_0xee2ab5['includes'](_0x13ec4e['data']['key'])&&_0x13ec4e['attributes']['groupId']!=_0x1f8632)['map'](_0x12edf6=>({'listItem':_0x12edf6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x12edf6['attributes']['groupId']})),_0x1d737b=new Set();for(const {groupId:_0x1d95b2,listItem:_0x43595a}of _0x22cbd1)_0x5969f9['has'](_0x43595a)&&_0x1d737b['add'](_0x1d95b2);for(const _0x14accf of _0x5d3339['getSuggestions']())_0x1d737b['has'](_0x14accf['attributes']['groupId'])&&_0x14accf['setAttribute']('groupId',_0x1f8632);}['_supportLegacySuggestions'](){const _0x516075=this['editor'],_0x46d475=_0x516075['locale'],_0x2ae068=_0x516075['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2ae068['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x41cd8e,_0x2d680e){const _0x379586=[];for(let _0x1f83bc of _0x41cd8e)_0x1f83bc['start']['nodeAfter']===_0x1f83bc['end']['parent']&&(_0x1f83bc=_0x516075['model']['createRange'](_0x516075['model']['createPositionAt'](_0x1f83bc['start']['nodeAfter'],0x0))),_0x379586['push'](_0x1f83bc);_0x516075['model']['change'](_0x30f72e=>{const _0x3840f3=_0x516075['model']['document']['selection'],_0x43bfed=Array['from'](_0x3840f3['getRanges']())['map'](_0x1bca31=>_0x5e2088['fromRange'](_0x1bca31));_0x30f72e['setSelection'](_0x379586),_0x516075['commands']['get'](_0x2d680e['commandName'])['refresh'](),_0x2d680e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x516075['execute'](_0x2d680e['commandName'],..._0x2d680e['commandParams']),_0x30f72e['setSelection'](_0x43bfed);for(const _0x572a82 of _0x43bfed)_0x572a82['detach']();});}),_0x2ae068['descriptionFactory']['registerElementLabel'](function(_0x4cfea0){const _0x246726=!_0x516075['model']['schema']['isObject'](_0x4cfea0),_0x40556d=_0x4cfea0['previousSibling'],_0x1b5fc2=_0x4cfea0['nextSibling'],_0xcb5690=_0x4cfea0['getAttribute']('listItemId'),_0x5d36d1=!_0x40556d||_0x40556d['getAttribute']('listItemId')!==_0xcb5690,_0x3d77c1=!_0x1b5fc2||_0x1b5fc2['getAttribute']('listItemId')!==_0xcb5690;return _0x246726&&Boolean(_0xcb5690)&&_0x5d36d1&&_0x3d77c1;},_0x23d3c3=>o(_0x46d475,'ELEMENT_LIST_ITEM',_0x23d3c3));}['_registerLegacyDescription'](){const _0x4fb51d=this['editor'],_0x210468=_0x4fb51d['locale'];function _0x2cfd03(_0xe7ccc1){const _0x3663d9=_0x4fb51d['commands']['get']('bulletedList')['value'],_0x346ed0=_0x4fb51d['commands']['get']('numberedList')['value'];return'numberedList'===_0xe7ccc1?_0x3663d9:_0x346ed0;}_0x4fb51d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x11792f){if('formatBlock'!=_0x11792f['type'])return;const {data:_0x56b998}=_0x11792f;if(!_0x56b998)return;let _0x3ec9c9,_0x415e9c,_0x315875,_0x17a96f;switch(_0x56b998['commandName']){case'bulletedList':_0x315875=_0x56b998['commandParams'][0x0]['forceValue'],_0x17a96f=_0x2cfd03(_0x56b998['commandName']),_0x3ec9c9=_0x315875?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x17a96f&&_0x4fb51d['config']['get']('list.multiBlock')||(_0x3ec9c9='*Change\x20to:*\x20%0'),_0x415e9c={'type':'format','content':o(_0x210468,_0x3ec9c9,o(_0x210468,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x315875=_0x56b998['commandParams'][0x0]['forceValue'],_0x17a96f=_0x2cfd03(_0x56b998['commandName']),_0x3ec9c9=_0x315875?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x17a96f&&_0x4fb51d['config']['get']('list.multiBlock')||(_0x3ec9c9='*Change\x20to:*\x20%0'),_0x415e9c={'type':'format','content':o(_0x210468,_0x3ec9c9,o(_0x210468,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3ec9c9='*Indent:*\x20%0',_0x415e9c={'type':'format','content':o(_0x210468,_0x3ec9c9,o(_0x210468,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3ec9c9=function(_0x35a8b5){const _0x524004=_0x35a8b5['getFirstRange']();let _0x24fb1b=_0x524004['start']['nodeAfter'];for(;_0x24fb1b&&_0x524004['containsItem'](_0x24fb1b);){if(_0x24fb1b['getAttribute']('listIndent')>0x0)return!0x1;_0x24fb1b=_0x24fb1b['nextSibling'];}return!0x0;}(_0x11792f)?o(_0x210468,'*Format:*\x20remove\x20from\x20%0',o(_0x210468,function(_0x17584d){return'ELEMENT_'+_0x17584d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x11792f))):o(_0x210468,'*Outdent:*\x20%0',o(_0x210468,'ELEMENT_LIST_ITEM')),_0x415e9c={'type':'format','content':_0x3ec9c9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x56b998['multipleBlocks']&&(_0x3ec9c9='*Merge:*\x20%0',_0x415e9c={'type':'deletion','content':o(_0x210468,_0x3ec9c9,o(_0x210468,'ELEMENT_LIST_ITEM'))});}return _0x415e9c;});}}function Ee(_0x9ba46c){let _0x15e5a4=_0x9ba46c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x15e5a4;){const _0x261c07=_0x15e5a4['getAttribute']('listItemId');if(!_0x261c07)return!0x1;if(_0x261c07==_0x9ba46c['data']['newValue'])return'newValue';if(_0x261c07==_0x9ba46c['data']['oldValue'])return'oldValue';_0x15e5a4=_0x15e5a4['previousSibling'];}return!0x1;}class pe extends _0x3b500e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4e9e6d=this['editor']['config']['get']('list.properties'),_0x208097=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e9e6d['styles']&&(_0x208097['enableDefaultAttributesIntegration']('listStyle'),_0x208097['registerBlockAttribute']('listStyle')),_0x4e9e6d['reversed']&&(_0x208097['enableDefaultAttributesIntegration']('listReversed'),_0x208097['registerBlockAttribute']('listReversed')),_0x4e9e6d['startIndex']&&(_0x208097['enableDefaultAttributesIntegration']('listStart'),_0x208097['registerBlockAttribute']('listStart'));const _0x312e78={'type':'format','content':''};_0x208097['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xb6b5ac=this['editor']['locale'];_0x208097['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xb6b5ac,'FORMAT_LIST_REVERSED')),_0x208097['descriptionFactory']['registerDescriptionCallback'](_0x4ed0f0=>{const {data:_0x36a355}=_0x4ed0f0;if(_0x36a355&&'listReversed'==_0x36a355['key'])return null==_0x36a355['newValue']||0x0==_0x36a355['newValue']&&null==_0x36a355['oldValue']?_0x312e78:void 0x0;}),_0x208097['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xb6b5ac,'FORMAT_LIST_START')),_0x208097['descriptionFactory']['registerDescriptionCallback'](_0x2f39ba=>{const {data:_0x21407c}=_0x2f39ba;if(_0x21407c&&'listStart'==_0x21407c['key'])return null==_0x21407c['newValue']||0x1==_0x21407c['newValue']&&null==_0x21407c['oldValue']?_0x312e78:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4ac235=>{if(_0x4ac235['batch']['isUndo'])return!0x1;let _0x50ce30=!0x1;const _0x3cf277=_0x208097['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bd9d5=>{const _0x1662f8=_0x208097['_getAttributeKey'](_0x4bd9d5);return'listStart'==_0x1662f8||'listReversed'==_0x1662f8;});for(const _0x46380e of _0x3cf277){const _0x4132cb=_0x46380e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4132cb||'customNumbered'==_0x4132cb)continue;_0x208097['_findSuggestions'](_0x46380e['getFirstRange'](),'attribute')['find'](_0x442886=>'listType'==_0x208097['_getAttributeKey'](_0x442886['suggestion']))||(_0x4ac235['removeMarker'](_0x46380e['getFirstMarker']()),_0x50ce30=!0x0);}return _0x50ce30;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x312f74){const _0x53d2fa=this['editor']['locale'],{data:_0x3c1c3a}=_0x312f74,_0x1cdf20={'type':'format','content':''};if(!_0x3c1c3a||'listStyle'!=_0x3c1c3a['key'])return;if(!_0x3c1c3a['oldValue'])return'default'==_0x3c1c3a['newValue']?_0x1cdf20:{'type':'format','content':''+o(_0x53d2fa,'*Set\x20format:*\x20%0',o(_0x53d2fa,this['_getTranslationKeyForListStyle'](_0x3c1c3a['newValue'])))};if(!_0x3c1c3a['newValue']){if('default'==_0x3c1c3a['oldValue'])return _0x1cdf20;let _0x3b431b=_0x312f74['head'];for(;_0x3b431b;){if(_0x3b431b['data']&&'listType'==_0x3b431b['data']['key']&&_0x3b431b['data']['newValue'])return _0x1cdf20;_0x3b431b=_0x3b431b['next'];}return{'type':'format','content':''+o(_0x53d2fa,'*Remove\x20format:*\x20%0',o(_0x53d2fa,this['_getTranslationKeyForListStyle'](_0x3c1c3a['oldValue'])))};}if('default'!=_0x3c1c3a['newValue'])return{'type':'format','content':''+o(_0x53d2fa,'*Set\x20format:*\x20%0',o(_0x53d2fa,this['_getTranslationKeyForListStyle'](_0x3c1c3a['newValue'])))};let _0x4d0c7a=_0x312f74['head'];for(;_0x4d0c7a;){if(_0x4d0c7a['data']&&'listType'==_0x4d0c7a['data']['key']&&_0x4d0c7a['data']['newValue']&&_0x4d0c7a['data']['oldValue'])return _0x1cdf20;_0x4d0c7a=_0x4d0c7a['next'];}return{'type':'format','content':o(_0x53d2fa,'*Set\x20format:*\x20%0',o(_0x53d2fa,'ELEMENT_'+_0x312f74['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x43f576=this['editor'],_0x5d8dbb=_0x43f576['locale'];_0x43f576['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2d255=>{if('formatBlock'!=_0xd2d255['type'])return;const {data:_0x21cb42}=_0xd2d255;if(!_0x21cb42)return;let _0x4ca6e2,_0x1b4891;switch(_0x21cb42['commandName']){case'listStyle':_0x4ca6e2='*Change\x20to:*\x20%0',_0x1b4891={'type':'format','content':o(_0x5d8dbb,_0x4ca6e2,o(_0x5d8dbb,this['_getTranslationKeyForListStyle'](_0x21cb42['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ca6e2=_0x21cb42['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b4891={'type':'format','content':o(_0x5d8dbb,_0x4ca6e2)};break;case'listStart':_0x4ca6e2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b4891={'type':'format','content':o(_0x5d8dbb,_0x4ca6e2,_0x21cb42['commandParams'][0x0]['startIndex'])};}return _0x1b4891;});}['_getTranslationKeyForListStyle'](_0x48b758){return'ELEMENT_'+function(_0x3afcb0){if(ye['includes'](_0x3afcb0))return'bulleted';if(Se['includes'](_0x3afcb0))return'numbered';return null;}(_0x48b758)['toUpperCase']()+'_LIST_'+_0x48b758['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3b500e{static get['requires'](){return[_0x160161];}['init'](){const _0x588b1c=this['editor'],_0x1305e6=_0x588b1c['plugins']['get']('TrackChangesEditing'),_0x2daf26=_0x588b1c['commands']['get']('enter');_0x1305e6['enableCommand']('enter',()=>{_0x588b1c['model']['change'](_0x41a97a=>{const _0x530be4=_0x588b1c['model']['document']['selection'],_0x26efb5=_0x530be4['getFirstPosition'](),_0x15ffc6=_0x5e2088['fromRange'](_0x530be4['getFirstRange']());if(_0x2daf26['enterBlock'](_0x41a97a)){const _0x2ff6db=_0x588b1c['model']['createPositionAt'](_0x26efb5['parent']['nextSibling'],0x0),_0x2d6c54=_0x41a97a['createRange'](_0x26efb5,_0x2ff6db);_0x1305e6['markInsertion'](_0x2d6c54);}else _0x41a97a['setSelection'](_0x41a97a['createRange'](_0x15ffc6['end']));_0x15ffc6['detach'](),_0x2daf26['fire']('afterExecute',{'writer':_0x41a97a});});}),_0x588b1c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x588b1c,'split'),{'priority':'high'}),_0x588b1c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x20b142,_0x419ca6,_0x1abaa7)=>{const _0x416171=_0x1abaa7['mapper']['markerNameToElements'](_0x419ca6['markerName']);if(_0x416171){for(const _0x151ff8 of _0x416171)_0x151ff8['hasClass']('ck-suggestion-marker-split')&&(_0x1abaa7['mapper']['unbindElementFromMarkerName'](_0x151ff8,_0x419ca6['markerName']),_0x1abaa7['writer']['remove'](_0x151ff8));}},{'priority':'high'}),_0x588b1c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36bc1f,_0x2e7e16,_0x2241e0)=>{_0x2241e0['options']['showSuggestionHighlights']&&_e(_0x588b1c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x36bc1f,_0x2e7e16,_0x2241e0);},{'priority':'high'});}}class X extends _0x3b500e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2b83bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b83bd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2b83bd['enableCommand']('findNext'),_0x2b83bd['enableCommand']('findPrevious'),_0x2b83bd['enableCommand']('replace'),_0x2b83bd['enableCommand']('replaceAll');}['handleFindCommand'](_0x180dea,_0x3d5cd2,_0x49a60c={}){const _0x407c36=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x180dea(_0x3167d2=>{let _0x1c5641=('string'==typeof _0x3d5cd2?_0x407c36['findByTextCallback'](_0x3d5cd2,_0x49a60c):_0x3d5cd2)(_0x3167d2);Array['isArray'](_0x1c5641)&&(_0x1c5641={'results':_0x1c5641,'searchText':'string'==typeof _0x3d5cd2?_0x3d5cd2:''});const _0x18c035=_0x1c5641['results']['filter'](_0x2e90a8=>!0x1===this['_isInDeletionRange'](_0x2e90a8,_0x3167d2['item']));return{..._0x1c5641,'results':_0x18c035};},_0x49a60c);}['_isInDeletionRange'](_0x5d5929,_0x2a09cf){const _0x4b7a20=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a09cf,_0x5d5929['start']),this['editor']['model']['createPositionAt'](_0x2a09cf,_0x5d5929['end']));for(const _0x42089d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4b7a20['getIntersection'](_0x42089d['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 _0x3b500e{['afterInit'](){const _0x2ae8ca=this['editor']['locale'],_0x23d079=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xfb5826,commandName:_0x180ffb}of ro)this['editor']['plugins']['has'](_0xfb5826)&&(_0x23d079['enableDefaultAttributesIntegration'](_0x180ffb),_0x23d079['registerInlineAttribute'](_0x180ffb));_0x23d079['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2ae8ca,'FORMAT_FONT_SIZE')),_0x23d079['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2ae8ca,'FORMAT_FONT_FAMILY')),_0x23d079['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2ae8ca,'FORMAT_FONT_COLOR')),_0x23d079['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2ae8ca,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dc789=this['editor'],_0x2d3389=_0x3dc789['locale'];_0x3dc789['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5758cd=>{const _0x5b1aca=_0x2d3389['t'];if('formatInline'!=_0x5758cd['type'])return;const {data:_0x4e05df}=_0x5758cd;if(null!=_0x4e05df){if('fontSize'==_0x4e05df['commandName']){const _0x5dc884=_0x4e05df['commandParams'][0x0]['value'];if(_0x5dc884){const _0x15909a=_0x5b1aca(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2ea46a=>_0x2ea46a['model']==_0x5dc884)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2d3389,'*Set\x20font\x20size:*\x20%0',_0x15909a)};}return{'type':'format','content':o(_0x2d3389,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4e05df['commandName']){const _0x5c3121=_0x4e05df['commandParams'][0x0]['value'];return _0x5c3121?{'type':'format','content':o(_0x2d3389,'*Set\x20font\x20family:*\x20%0',_0x5c3121)}:{'type':'format','content':o(_0x2d3389,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4e05df['commandName']){const _0x53304a=_0x4e05df['commandParams'][0x0]['value'];if(_0x53304a){const _0x300b60=_0x48e3fc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x53cf80=>_0x53cf80['model']==_0x53304a);let _0x5a0c22=_0x53304a,_0x11bffe='';return _0x300b60&&(_0x5a0c22=_0x300b60['label'],_0x11bffe=_0x5b1aca(_0x5a0c22)['toLowerCase']()),{'type':'format','content':o(_0x2d3389,'*Set\x20font\x20color:*\x20%0',_0x11bffe)['trim'](),'color':{'value':_0x53304a,'title':_0x11bffe||_0x5a0c22}};}return{'type':'format','content':o(_0x2d3389,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4e05df['commandName']){const _0x5bbc8e=_0x4e05df['commandParams'][0x0]['value'];if(_0x5bbc8e){const _0x25c698=_0x48e3fc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x42a28f=>_0x42a28f['model']==_0x5bbc8e);let _0x43a245=_0x5bbc8e,_0x33380e='';return _0x25c698&&(_0x43a245=_0x25c698['label'],_0x33380e=_0x5b1aca(_0x43a245)['toLowerCase']()),{'type':'format','content':o(_0x2d3389,'*Set\x20font\x20background\x20color:*\x20%0',_0x33380e)['trim'](),'color':{'value':_0x5bbc8e,'title':_0x33380e||_0x43a245}};}return{'type':'format','content':o(_0x2d3389,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3b500e{['afterInit'](){const _0x2f963d=this['editor'],_0x15a581=_0x2f963d['plugins']['get']('TrackChangesEditing'),_0x457572=_0x2f963d['commands']['get']('copyFormat'),_0x120841=_0x2f963d['commands']['get']('pasteFormat');_0x457572&&_0x120841&&(_0x15a581['enableDefaultAttributesIntegration']('pasteFormat'),_0x15a581['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3b25fb=this['editor'],_0xb7ea5b=_0x3b25fb['locale'];_0x3b25fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15db6e=>{if('formatBlock'!=_0x15db6e['type']&&'formatInline'!=_0x15db6e['type'])return;const {data:_0x401264}=_0x15db6e;if(_0x401264&&'pasteFormat'===_0x401264['commandName']){const _0x428e34=[],_0x433411=_0x401264['commandParams'][0x0];for(const [_0x5227c4,_0x3d77cf]of Object['entries'](_0x433411))_0x428e34['push'](so(_0x3b25fb,_0x5227c4,_0x3d77cf));return _0x428e34['length']?{'type':'format','content':o(_0xb7ea5b,'*Set\x20format\x20to:*\x20%0',_0x428e34['join'](',\x20'))}:{'type':'format','content':o(_0xb7ea5b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x10a705,_0xbb96a,_0x3cc7ff){const _0x2f55d4=_0x10a705['locale']['t'],_0x2595c3=_0xbb96a['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c3457=_0x2f55d4(_0x2595c3['charAt'](0x0)['toUpperCase']()+_0x2595c3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3cc7ff)return _0x3c3457;if('fontColor'===_0xbb96a||'fontBackgroundColor'===_0xbb96a){const _0x279ac5=_0x48e3fc(_0x10a705['config']['get']('fontColor.colors'))['find'](_0x1f00b9=>_0x1f00b9['model']==_0x3cc7ff);return _0x3c3457+'\x20('+(_0x279ac5?_0x2f55d4(_0x279ac5['label'])['toLowerCase']():_0x3cc7ff)+')';}if('fontSize'===_0xbb96a&&isNaN(parseFloat(_0x3cc7ff))){const _0xfd47aa=_0x10a705['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x10a705['config']['get']('fontSize.options'))['find'](_0x3c73f3=>_0x3c73f3['model']==_0x3cc7ff);return _0x3c3457+'\x20('+(_0xfd47aa?_0x2f55d4(_0xfd47aa['title'])['toLowerCase']():_0x3cc7ff)+')';}return _0x3c3457+'\x20('+_0x3cc7ff+')';}class tt extends _0x3b500e{['_headingOptions'];['afterInit'](){const _0x324b3f=this['editor'];if(!_0x324b3f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x324b3f['config']['get']('heading.options');const _0x579984=_0x324b3f['locale'],_0x2151e5=_0x324b3f['plugins']['get']('TrackChangesEditing');_0x2151e5['enableDefaultAttributesIntegration']('heading');for(const _0x3af757 of this['_headingOptions'])'paragraph'!=_0x3af757['model']&&_0x2151e5['descriptionFactory']['registerElementLabel'](_0x3af757['model'],_0x363639=>{const _0x593a5e=this['_getHeadingLevel'](_0x3af757['model']);return null!==_0x593a5e?_0x1ba538(_0x363639,_0x593a5e):_0x5e29a0(_0x363639,_0x3af757['title']);});function _0x1ba538(_0x103a64,_0x59b62d){return o(_0x579984,'ELEMENT_HEADING',[_0x103a64,_0x59b62d]);}function _0x5e29a0(_0xa599d,_0x3c850d){return o(_0x579984,'ELEMENT_HEADING_CUSTOM',[_0xa599d,_0x3c850d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b2de2=this['editor'],_0x5cf57d=_0x5b2de2['locale'];function _0x4e5a47(_0x2dab6b,_0x20deb0){return o(_0x5cf57d,'ELEMENT_HEADING_CUSTOM',[_0x2dab6b,_0x20deb0]);}_0x5b2de2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6e8d5a=>{if('formatBlock'!=_0x6e8d5a['type'])return;const {data:_0x1a418d}=_0x6e8d5a;if(_0x1a418d&&'heading'==_0x1a418d['commandName']){const _0x34fdfd=_0x1a418d['commandParams'][0x0]['value'],_0x5af590=this['_getHeadingLevel'](_0x34fdfd);if(null!==_0x5af590)return{'type':'format','content':o(_0x5cf57d,'*Change\x20to:*\x20%0',(_0x320dd2=0x1,_0x4192e0=_0x5af590,o(_0x5cf57d,'ELEMENT_HEADING',[_0x320dd2,_0x4192e0])))};const _0x261483=this['_headingOptions']['find'](_0x24e4f7=>_0x24e4f7['model']===_0x34fdfd)['title'];return{'type':'format','content':o(_0x5cf57d,'*Change\x20to:*\x20%0',_0x4e5a47(0x1,_0x261483))};}var _0x320dd2,_0x4192e0;});}['_getHeadingLevel'](_0x1f7339){const _0x4d1c02=_0x1f7339['match'](/^heading(\d+)/);if(_0x4d1c02)return _0x4d1c02[0x1];const _0xf9f9fa=this['_headingOptions']?.['find'](_0x1e357f=>_0x1e357f['model']==_0x1f7339);if(_0xf9f9fa&&_0xf9f9fa['view']){const _0x4ef66a=_0xf9f9fa['view'],_0x43657f=(_0x4ef66a['name']??_0x4ef66a)['match'](/^h(\d+)/);if(_0x43657f)return _0x43657f[0x1];}return null;}}class et extends _0x3b500e{['afterInit'](){const _0x42fd60=this['editor'];if(!_0x42fd60['plugins']['has']('HighlightEditing'))return;const _0x189e49=_0x42fd60['plugins']['get']('TrackChangesEditing'),_0x8558f2=_0x42fd60['locale'];_0x189e49['enableDefaultAttributesIntegration']('highlight'),_0x189e49['registerInlineAttribute']('highlight'),_0x189e49['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x8558f2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28eef8=this['editor'],_0x217e46=_0x28eef8['locale'];_0x28eef8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15c183=>{if('formatInline'!=_0x15c183['type'])return;const {data:_0x5eacfc}=_0x15c183;if(_0x5eacfc&&'highlight'==_0x5eacfc['commandName']){const _0x318600=_0x217e46['t'],_0x24003d=_0x5eacfc['commandParams'][0x0]['value'];if(_0x24003d){const _0x21e090=_0x28eef8['config']['get']('highlight.options')['find'](_0x543c17=>_0x543c17['model']==_0x24003d),_0x475a9f=_0x318600(_0x21e090['title'])['toLowerCase']();return{'type':'format','content':o(_0x217e46,'*Set\x20highlight:*\x20%0',_0x475a9f),'color':{'value':_0x21e090['color'],'title':_0x21e090['title']}};}return{'type':'format','content':o(_0x217e46,'*Remove\x20highlight*',o(_0x217e46,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3b500e{['afterInit'](){const _0x3a23bd=this['editor'];if(!_0x3a23bd['plugins']['has']('HorizontalLineEditing'))return;_0x3a23bd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x13e7ef=_0x3a23bd['plugins']['get']('TrackChangesEditing'),_0x26a8b3=_0x3a23bd['locale'];_0x13e7ef['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1a1b71=>o(_0x26a8b3,'ELEMENT_HORIZONTAL_LINE',_0x1a1b71)),_0x3a23bd['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x53c83f,{writer:_0x44406b,options:_0x43e0a5})=>{if(!_0x43e0a5['showSuggestionHighlights'])return null;const _0x90ab6d=_0x44406b['createContainerElement']('div'),_0x38734c=_0x44406b['createEmptyElement']('hr');return _0x44406b['addClass']('ck-horizontal-line',_0x90ab6d),_0x44406b['insert'](_0x44406b['createPositionAt'](_0x90ab6d,0x0),_0x38734c),_0x90ab6d;},'converterPriority':'high'});}}class st extends _0x3b500e{['afterInit'](){const _0x5c5db2=this['editor'];if(!_0x5c5db2['plugins']['has']('HtmlEmbed'))return;const _0x129bf4=_0x5c5db2['plugins']['get']('TrackChangesEditing'),_0x5623c2=_0x5c5db2['locale'];_0x129bf4['descriptionFactory']['registerElementLabel']('rawHtml',_0x5cd97d=>o(_0x5623c2,'ELEMENT_HTML_EMBED',_0x5cd97d)),_0x129bf4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x129bf4['registerBlockAttribute']('value'),_0x129bf4['descriptionFactory']['registerDescriptionCallback'](_0x370a30=>{if('attribute'!=_0x370a30['type'])return;const {data:_0x2b519f}=_0x370a30;if(_0x2b519f&&'value'==_0x2b519f['key']&&_0x370a30['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x266353=o(_0x5623c2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5623c2,'*Change\x20%0\x20content*',_0x266353)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf909=this['editor'],_0x10e11f=_0x3cf909['locale'];_0x3cf909['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16137b=>{if('formatBlock'!=_0x16137b['type'])return;const {data:_0x567b49}=_0x16137b;if(_0x567b49&&'htmlEmbed'==_0x567b49['commandName']){const _0x33ca47=o(_0x10e11f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x10e11f,'*Change\x20%0\x20content*',_0x33ca47)};}});}}class nt extends _0x3b500e{['afterInit'](){const _0x3449e5=this['editor'];if(!_0x3449e5['plugins']['has']('ImageEditing'))return;const _0x48e26d=_0x3449e5['plugins']['get']('TrackChangesEditing'),_0x502bc5=_0x3449e5['plugins']['get']('ImageUtils'),_0x4b718c=_0x3449e5['locale'];_0x48e26d['enableCommand']('insertImage'),_0x48e26d['descriptionFactory']['registerElementLabel']('imageBlock',_0x125606=>o(_0x4b718c,'ELEMENT_IMAGE',_0x125606)),_0x48e26d['descriptionFactory']['registerElementLabel']('imageInline',_0x2449f4=>o(_0x4b718c,'ELEMENT_INLINE_IMAGE',_0x2449f4)),_0x48e26d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4b718c,'ELEMENT_CAPTION')),_0x3449e5['plugins']['has']('ImageUploadEditing')&&_0x48e26d['enableCommand']('uploadImage'),_0x3449e5['plugins']['has']('ImageBlockEditing')&&_0x3449e5['plugins']['has']('ImageInlineEditing')&&(_0x48e26d['enableCommand']('imageTypeInline',(_0x9ae580,_0x182ceb)=>{const _0x2cf4c0=_0x502bc5['getClosestSelectedImageElement'](_0x3449e5['model']['document']['selection']);_0x3449e5['model']['change'](()=>{_0x48e26d['markBlockFormat'](_0x2cf4c0,{'commandName':'imageTypeInline','commandParams':[_0x182ceb]},[],'convertBlockImageToInline');});}),_0x48e26d['enableCommand']('imageTypeBlock',(_0x24f464,_0x5cb4dd)=>{_0x3449e5['model']['change'](_0x23ea66=>{let _0x507673=_0x502bc5['getClosestSelectedImageElement'](_0x3449e5['model']['document']['selection']),_0x5f01b0=_0x23ea66['createRangeOn'](_0x507673);const _0x2f3375=_0x106a9e['fromPosition'](_0x5f01b0['start'],'toPrevious'),_0x480afe=_0x106a9e['fromPosition'](_0x5f01b0['end'],'toNext');_0x48e26d['forceDefaultExecution'](()=>_0x24f464(_0x5cb4dd)),_0x507673=_0x502bc5['getClosestSelectedImageElement'](_0x3449e5['model']['document']['selection']),_0x5f01b0=_0x23ea66['createRangeOn'](_0x507673);const _0x5c09ca=_0x23ea66['createRange'](_0x2f3375,_0x480afe);_0x2f3375['detach'](),_0x480afe['detach'](),_0x48e26d['markBlockFormat'](_0x507673,{'commandName':'imageTypeInline','commandParams':[_0x5cb4dd]},[],'convertInlineImageToBlock'),_0x5c09ca['start']['isBefore'](_0x5f01b0['start'])&&_0x48e26d['markInsertion'](_0x23ea66['createRange'](_0x5c09ca['start'],_0x5f01b0['start']),'convertInlineImageToBlock'),_0x5f01b0['end']['isBefore'](_0x5c09ca['end'])&&_0x48e26d['markInsertion'](_0x23ea66['createRange'](_0x5f01b0['end'],_0x5c09ca['end']),'convertInlineImageToBlock');});}),_0x48e26d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48e26d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48e26d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48e26d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48e26d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48e26d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x35b872])=>{const _0x8f58cb=_0x48e26d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x16e90b=_0x35b872['start'],_0x3220ef=_0x35b872['end'];const _0x1eddd8=_0x3449e5['model']['schema']['getNearestSelectionRange'](_0x16e90b,'backward'),_0x37594e=_0x3449e5['model']['schema']['getNearestSelectionRange'](_0x3220ef,'forward');_0x1eddd8['isCollapsed']&&(_0x16e90b=_0x1eddd8['start']),_0x37594e['isCollapsed']&&(_0x3220ef=_0x37594e['end']),_0x8f58cb([_0x3449e5['model']['createRange'](_0x16e90b,_0x3220ef)]);}),_0x48e26d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb68cd5),_0x48e26d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb68cd5)),_0x3449e5['plugins']['has']('ImageCaptionEditing')&&(_0x48e26d['enableCommand']('toggleImageCaption',(_0xd8115b,_0x3164e9)=>{const _0x34e297=_0x3449e5['plugins']['get']('ImageCaptionUtils');let _0x265b92=_0x502bc5['getClosestSelectedImageElement'](_0x3449e5['model']['document']['selection']),_0x42033f=_0x34e297['getCaptionFromImageModelElement'](_0x265b92);_0x3449e5['model']['change'](()=>{if(_0x42033f)return void _0x48e26d['markDeletion'](_0x3449e5['model']['createRangeOn'](_0x42033f));const _0x18defb=_0x502bc5['isBlockImage'](_0x265b92);_0xd8115b(_0x3164e9),_0x265b92=_0x502bc5['getClosestSelectedImageElement'](_0x3449e5['model']['document']['selection']),_0x42033f=_0x34e297['getCaptionFromImageModelElement'](_0x265b92),_0x48e26d['markInsertion'](_0x3449e5['model']['createRangeOn'](_0x42033f),_0x18defb?null:'imageCaption');});}),_0x48e26d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb68cd5));const _0x1ee803=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbf607b(_0x4e5483,_0x42579c){const _0x33a269=_0x1ee803['findIndex'](({type:_0x4996bf,subType:_0x152ca8})=>_0x4e5483['type']==_0x4996bf&&_0x4e5483['subType']==_0x152ca8),_0x464ebb=_0x1ee803['findIndex'](({type:_0x177331,subType:_0x53a16c})=>_0x42579c['type']==_0x177331&&_0x42579c['subType']==_0x53a16c);if(_0x33a269<0x0||_0x464ebb<0x0)return!0x1;const _0x36375b=_0x4e5483['getFirstRange'](),_0x3c89b3=_0x42579c['getFirstRange']();if((0x0==_0x33a269||0x1==_0x33a269)&&0x2==_0x464ebb&&_0x36375b['isIntersecting'](_0x3c89b3))return!0x0;if(0x2==_0x33a269&&0x3==_0x464ebb){const _0x3c76d0=_0x48e26d['_findSuggestions'](_0x36375b,'insertion')['filter'](({suggestion:_0xd8a9b4,meta:_0x4c1d3c})=>_0x4c1d3c['isOwn']&&'convertInlineImageToBlock'==_0xd8a9b4['subType']);if(_0x3c76d0['length']>0x1&&_0x3c89b3['end']['isEqual'](_0x36375b['start']))return!0x0;if(0x1==_0x3c76d0['length']&&(_0x36375b['start']['isEqual'](_0x3c89b3['end'])||_0x36375b['end']['isEqual'](_0x3c89b3['start'])))return!0x0;}if(0x3==_0x33a269&&0x3==_0x464ebb&&_0x36375b['start']['isBefore'](_0x3c89b3['start'])){const _0x43a8d5=_0x36375b['end']['nodeAfter'],_0x1f0564=_0x3c89b3['start']['nodeBefore'];return _0x502bc5['isBlockImage'](_0x43a8d5)&&_0x43a8d5===_0x1f0564;}return!0x1;}function _0xb68cd5(_0xfd61cb,_0x342c81){return _0xbf607b(_0xfd61cb,_0x342c81)?[_0xfd61cb,_0x342c81]:_0xbf607b(_0x342c81,_0xfd61cb)?[_0x342c81,_0xfd61cb]:null;}_0x3449e5['plugins']['has']('ImageResize')&&(_0x48e26d['enableDefaultAttributesIntegration']('resizeImage'),_0x48e26d['registerBlockAttribute']('resizedWidth'),_0x48e26d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4b718c,'FORMAT_IMAGE_SIZE'))),_0x3449e5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x48e26d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x48e26d['registerBlockAttribute']('alt')),_0x48e26d['descriptionFactory']['registerDescriptionCallback'](_0x50492d=>{if(!!_0x1ee803['find'](({type:_0x5536b6,subType:_0x37dc08})=>_0x50492d['type']==_0x5536b6&&_0x50492d['subType']==_0x37dc08))return _0x50492d['previous']?{}:void 0x0;}),_0x48e26d['descriptionFactory']['registerDescriptionCallback'](_0x252b21=>{if('insertion'==_0x252b21['type']||'deletion'==_0x252b21['type']){const _0xe6c09f=_0x252b21['getContainedElement']();if(_0xe6c09f&&_0xe6c09f['is']('element','caption'))return{'type':'insertion'==_0x252b21['type']?'addObject':'removeObject','element':_0xe6c09f,'quantity':0x1};}}),_0x48e26d['descriptionFactory']['registerDescriptionCallback'](_0x536862=>'formatBlock'==_0x536862['type']&&'convertInlineImageToBlock'==_0x536862['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x536862['type']&&'convertBlockImageToInline'==_0x536862['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48e26d['descriptionFactory']['registerDescriptionCallback'](_0x2ade3f=>{if('attribute'!=_0x2ade3f['type'])return;const {data:_0x14e20c}=_0x2ade3f;if(!_0x14e20c||'alt'!=_0x14e20c['key'])return;const _0x4cdf1f=_0x14e20c['newValue'];return _0x4cdf1f?{'type':'format','content':o(_0x4b718c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4cdf1f+'\x22')}:{'type':'format','content':o(_0x4b718c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d3903=this['editor'],_0xafa3ee=_0x4d3903['locale'];_0x4d3903['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f9407=>{if('formatBlock'!=_0x4f9407['type']&&'formatInline'!=_0x4f9407['type'])return;const {data:_0x1566ec}=_0x4f9407;if(_0x1566ec){if('imageTextAlternative'==_0x1566ec['commandName']){const _0x2f0f3c=_0x1566ec['commandParams'][0x0]['newValue'];return _0x2f0f3c?{'type':'format','content':o(_0xafa3ee,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f0f3c+'\x22')}:{'type':'format','content':o(_0xafa3ee,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1566ec['commandName']){const _0x29bd7f=_0x1566ec['commandParams'][0x0]['width'];return _0x29bd7f?{'type':'format','content':o(_0xafa3ee,'*Set\x20image\x20width:*\x20%0',_0x29bd7f)}:{'type':'format','content':o(_0xafa3ee,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3b500e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1a440e=this['editor']['locale'],_0x1f82bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f82bc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1f82bc['registerBlockAttribute']('src'),_0x1f82bc['descriptionFactory']['registerDescriptionCallback'](_0x4f6b13=>{if('attribute'!=_0x4f6b13['type'])return;const {data:_0x5091b1}=_0x4f6b13;return _0x5091b1&&'src'==_0x5091b1['key']?_0x5091b1['newValue']&&_0x5091b1['oldValue']?{'type':'format','content':o(_0x1a440e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45ee45=this['editor']['plugins']['get']('TrackChangesEditing');_0x45ee45['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x45ee45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45ee45['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x45ee45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14e72c=this['editor'],_0x22fe54=_0x14e72c['locale'];_0x14e72c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f03d1=>{if('formatBlock'!=_0x4f03d1['type']&&'formatInline'!=_0x4f03d1['type'])return;const {data:_0x19e4c1}=_0x4f03d1;if(!_0x19e4c1||'replaceImageSource'!=_0x19e4c1['commandName'])return;return{'type':'format','content':o(_0x22fe54,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3b500e{['afterInit'](){const _0x309a42=this['editor'];if(!_0x309a42['plugins']['has']('ImageStyleEditing'))return;const _0x114988=_0x309a42['plugins']['get']('TrackChangesEditing'),_0x587940=_0x309a42['plugins']['get']('ImageUtils'),_0x15ab81={};_0x114988['enableCommand']('imageStyle',(_0x4f907b,_0x41899a)=>{const _0x4a234a=_0x309a42['plugins']['get']('Users')['me'],_0x1fa09a=_0x309a42['commands']['get']('imageStyle');let _0x4282c5=_0x587940['getClosestSelectedImageElement'](_0x309a42['model']['document']['selection']),_0x55040d=_0x309a42['model']['createRangeOn'](_0x4282c5),_0x3540e8=_0x1fa09a['value'];if(_0x3540e8==_0x41899a['value'])return;const _0x341347={'commandName':'imageStyle','commandParams':[_0x41899a],'formatGroupId':_0xd600d8()};_0x309a42['model']['change'](()=>{if(_0x114988['getSuggestions']()['filter'](_0x2210cf=>_0x2210cf['isInContent']&&_0x4a234a==_0x2210cf['author']&&('formatBlock'==_0x2210cf['type']||'formatInline'==_0x2210cf['type'])&&('imageStylePreApply'==_0x2210cf['subType']||'imageStylePostApply'==_0x2210cf['subType'])&&_0x2210cf['getFirstRange']()['isEqual'](_0x55040d))['forEach'](_0x28a25=>_0x114988['discardSuggestion'](_0x28a25['head'])),_0x4282c5=_0x587940['getClosestSelectedImageElement'](_0x309a42['model']['document']['selection']),_0x55040d=_0x309a42['model']['createRangeOn'](_0x4282c5),_0x1fa09a['refresh'](),_0x309a42['commands']['get']('imageTypeInline')['refresh'](),_0x309a42['commands']['get']('imageTypeBlock')['refresh'](),_0x3540e8=_0x1fa09a['value'],_0x3540e8!=_0x41899a['value'])return _0x587940['isInlineImage'](_0x4282c5)&&_0x1fa09a['shouldConvertImageType'](_0x41899a['value'],_0x4282c5)?(_0x4f907b({..._0x41899a,'setImageSizes':!0x1}),_0x4282c5=_0x587940['getClosestSelectedImageElement'](_0x309a42['model']['document']['selection']),void _0x114988['markBlockFormat'](_0x4282c5,{..._0x341347,'commandReversedParams':[{'value':_0x3540e8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x587940['isBlockImage'](_0x4282c5)?_0x114988['markBlockFormat'](_0x4282c5,_0x341347,[],'imageStylePostApply'):_0x114988['markInlineFormat'](_0x55040d,_0x341347,'imageStylePostApply'));});});for(const _0x425687 of _0x309a42['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x15ab81[_0x425687['name']]=_0x425687['title']['toLowerCase']();_0x114988['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x114988['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x114988['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x114988['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x39c1e2])=>{_0x587940['setImageNaturalSizeAttributes'](_0x39c1e2['getContainedElement']());}),_0x114988['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xa200e3,_0x45916d)=>{_0x114988['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xa200e3,{'commandName':_0x45916d['commandName'],'commandParams':_0x45916d['commandReversedParams']});}),_0x114988['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1305ea,_0x426170){if(_0x5027a7(_0x1305ea,_0x426170))return[_0x1305ea,_0x426170];if(_0x5027a7(_0x426170,_0x1305ea))return[_0x426170,_0x1305ea];return null;});const _0x38f696=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5027a7(_0x2e5d1f,_0x1313e2){const _0x126fdb=_0x38f696['findIndex'](({type:_0x140c72,subType:_0x47e8d3})=>_0x2e5d1f['type']==_0x140c72&&_0x2e5d1f['subType']==_0x47e8d3),_0x42bdd0=_0x38f696['findIndex'](({type:_0x5bcf4e,subType:_0x3d19bb})=>_0x1313e2['type']==_0x5bcf4e&&_0x1313e2['subType']==_0x3d19bb);if(_0x126fdb<0x0||_0x42bdd0<0x0)return!0x1;const _0x179296=_0x2e5d1f['getFirstRange'](),_0x655bc9=_0x1313e2['getFirstRange']();if((0x0==_0x126fdb||0x1==_0x126fdb)&&0x2==_0x42bdd0&&_0x179296['isIntersecting'](_0x655bc9))return!0x0;if(0x2==_0x126fdb&&0x3==_0x42bdd0){const _0x51ac87=_0x114988['_findSuggestions'](_0x179296,'insertion')['filter'](({suggestion:_0x48b783,meta:_0x34a055})=>_0x34a055['isOwn']&&'convertInlineImageToBlock'==_0x48b783['subType']);if(_0x51ac87['length']>0x1&&_0x655bc9['end']['isEqual'](_0x179296['start']))return!0x0;if(0x1==_0x51ac87['length']&&(_0x179296['start']['isEqual'](_0x655bc9['end'])||_0x179296['end']['isEqual'](_0x655bc9['start'])))return!0x0;}if(0x3==_0x126fdb&&0x3==_0x42bdd0&&_0x179296['start']['isBefore'](_0x655bc9['start'])){const _0x148a4c=_0x179296['end']['nodeAfter'],_0x475717=_0x655bc9['start']['nodeBefore'];return _0x587940['isBlockImage'](_0x148a4c)&&_0x148a4c===_0x475717;}return!0x1;}_0x309a42['model']['document']['registerPostFixer'](()=>{let _0x3b46ef=!0x1;const _0x281552=Array['from'](_0x309a42['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x355d90,data:_0x2286d9}of _0x281552){const {group:_0x144ff1,type:_0x2d23c5,subType:_0x223969,id:_0x55ee40}=_0x114988['_splitMarkerName'](_0x355d90);if('suggestion'==_0x144ff1&&_0x114988['hasSuggestion'](_0x55ee40)){if('formatBlock'==_0x2d23c5&&('imageStylePreApply'==_0x223969||'imageStylePostApply'==_0x223969)){const _0x21da74=_0x114988['getSuggestion'](_0x55ee40);if(_0x2286d9['newRange']){const _0x4bde27=_0x21da74['getFirstRange']()['getContainedElement']();if(_0x587940['isBlockImage'](_0x4bde27))continue;_0x114988['discardSuggestion'](_0x21da74),_0x3b46ef=!0x0;}}if('insertion'==_0x2d23c5&&'imageCaption'==_0x223969&&!_0x2286d9['newRange']){const _0x107ceb=_0x114988['getSuggestion'](_0x55ee40);_0x107ceb['next']&&_0x107ceb['next']['isInContent']&&(_0x114988['discardSuggestion'](_0x107ceb['next']),_0x3b46ef=!0x0);}}}return _0x3b46ef;}),this['_registerLegacyDescription'](_0x15ab81);}['_registerLegacyDescription'](_0xc3854a){const _0x2f5daf=this['editor'],_0xb3f00e=_0x2f5daf['locale'];_0x2f5daf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x228126=>{if('formatBlock'!=_0x228126['type']&&'formatInline'!=_0x228126['type'])return;const {data:_0xdc4d1e}=_0x228126;if(!_0xdc4d1e||'imageStyle'!=_0xdc4d1e['commandName'])return;const _0x5b5bf8=_0xdc4d1e['commandParams'][0x0]['value'];return _0x49812c('side'===_0x5b5bf8?o(_0xb3f00e,'FORMAT_SIDE_IMAGE'):_0xc3854a[_0x5b5bf8]||_0x5b5bf8);function _0x49812c(_0x26a1e0){return{'type':'format','content':o(_0xb3f00e,'*Format:*\x20%0',_0x26a1e0)};}});}}class at extends _0x3b500e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x44848f){super(_0x44848f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xfaf788=this['editor'],_0x4f2545=_0xfaf788['commands']['get']('importWord'),_0x4f2cfa=_0xfaf788['commands']['get']('trackChanges');_0x4f2545&&(_0x4f2545['on']('execute',(_0x46bd0c,[,_0xb49af8])=>{this['_trackChangesValueDuringImport']=_0x4f2cfa['value'],_0xb49af8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f2545,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f2545,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4f2cfa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xfaf788['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4d2602,_0x1b3224){const {suggestions:_0x2959ff}=_0x1b3224,_0x18b8ff=this['editor']['commands']['get']('trackChanges'),_0x513bdd=_0x18b8ff['value'];this['_trackChangesValueDuringImport']!==_0x513bdd&&(_0x18b8ff['execute'](),this['_trackChangesExecuted']=!0x0),_0x2959ff&&_0x2959ff['forEach'](({id:_0x48bd6b,type:_0x5317ca,author:_0x2b5999,created_at:_0x4a2ce9})=>{const _0x100ebc={'id':_0x48bd6b,'type':_0x5317ca,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2b5999,'createdAt':_0x4a2ce9?new Date(_0x4a2ce9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x100ebc);});}}class ct extends _0x3b500e{['afterInit'](){const _0x10948d=this['editor'],_0x4cead1=_0x10948d['plugins']['get']('TrackChangesEditing');if(_0x10948d['plugins']['has']('IndentEditing')&&(_0x4cead1['enableCommand']('indent'),_0x4cead1['enableCommand']('outdent')),_0x10948d['plugins']['has']('IndentBlock')){for(const _0x414a6e of['indentBlock','outdentBlock'])_0x4cead1['enableDefaultAttributesIntegration'](_0x414a6e);}const _0xcd85de=_0x10948d['locale'];_0x4cead1['registerBlockAttribute']('blockIndent'),_0x4cead1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xcd85de,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13cdcd=this['editor'],_0x43a04a=_0x13cdcd['locale'],_0x9f6f0c=_0x13cdcd['plugins']['get']('TrackChangesEditing');_0x9f6f0c['descriptionFactory']['registerDescriptionCallback'](_0x224b3f=>{if('formatBlock'!=_0x224b3f['type'])return;const {data:_0x221ecf}=_0x224b3f;if(!_0x221ecf)return;if('indentBlock'!=_0x221ecf['commandName']&&'outdentBlock'!=_0x221ecf['commandName'])return;const _0x570029=_0x224b3f['getItems']()[0x0],_0x29a6f4=_0x9f6f0c['descriptionFactory']['getItemLabel'](_0x570029);return'indentBlock'==_0x221ecf['commandName']?{'type':'format','content':o(_0x43a04a,'*Indent:*\x20%0',_0x29a6f4)}:'outdentBlock'==_0x221ecf['commandName']?{'type':'format','content':o(_0x43a04a,'*Outdent:*\x20%0',_0x29a6f4)}:void 0x0;});}}class ut extends _0x3b500e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3b500e{['afterInit'](){const _0x2895fd=this['editor'];if(!_0x2895fd['plugins']['has']('LinkEditing'))return;const _0xfd09ef=_0x2895fd['plugins']['get']('TrackChangesEditing'),_0xae526f=_0x2895fd['commands']['get']('link');_0xfd09ef['enableDefaultAttributesIntegration']('link'),_0xfd09ef['enableDefaultAttributesIntegration']('unlink'),_0xfd09ef['registerInlineAttribute']('linkHref');for(const _0x1f6a12 of _0xae526f['manualDecorators'])_0xfd09ef['registerInlineAttribute'](_0x1f6a12['id']),_0xfd09ef['descriptionFactory']['registerAttributeLabel'](_0x1f6a12['id'],'link\x20('+_0x1f6a12['label']['toLowerCase']()+')');_0xfd09ef['descriptionFactory']['registerDescriptionCallback'](_0x4091de=>{if('attribute'!=_0x4091de['type'])return;const {data:_0x2ff5cd}=_0x4091de;if(!_0x2ff5cd||'linkHref'!=_0x2ff5cd['key'])return;const _0x4356a3=_0x2ff5cd['newValue'],_0x5a2377=_0x2895fd['locale'];return{'type':'format','content':null==_0x4356a3?o(_0x5a2377,'*Remove\x20link*'):o(_0x5a2377,'*Set\x20link:*\x20%0','\x22'+_0x4356a3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40b27b=this['editor'],_0x321f26=_0x40b27b['locale'];_0x40b27b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c02c3=>{if('formatInline'!=_0x4c02c3['type'])return;const {data:_0x23233f}=_0x4c02c3;if(_0x23233f){if('link'==_0x23233f['commandName']){const _0x420e06=_0x23233f['commandParams'][0x0];return{'type':'format','content':o(_0x321f26,'*Set\x20link:*\x20%0','\x22'+_0x420e06+'\x22')};}return'unlink'==_0x23233f['commandName']?{'type':'format','content':o(_0x321f26,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3b500e{['afterInit'](){const _0x318439=this['editor'],_0x3e1e8d=_0x318439['locale'];if(!_0x318439['plugins']['has']('LegacyListEditing'))return;const _0x440c65=_0x318439['plugins']['get']('TrackChangesEditing'),_0x10e93e=_0x318439['plugins']['has']('LegacyTodoListEditing');function _0x5d594c(_0xc9ea28){return()=>{const _0x5d02b7=_0x318439['model']['document']['selection'],_0x59944d=_0x318439['commands']['get'](_0xc9ea28);if(_0x59944d['value'])return void _0x318439['execute']('paragraph',{});const _0x5618de=_0xc9ea28['slice'](0x0,-0x4),_0x804be2=function(_0x499430,_0x6b0778,_0x45294d){let _0x216cad=Array['from'](_0x499430)['filter'](_0x524ded=>function(_0x3cb42d,_0x5733e5){return _0x5733e5['checkChild'](_0x3cb42d['parent'],'listItem')&&!_0x5733e5['isObject'](_0x3cb42d);}(_0x524ded,_0x45294d));_0x216cad=_0x216cad['filter'](_0xaeb4e5=>!_0xaeb4e5['is']('element','listItem')||_0xaeb4e5['getAttribute']('listType')!=_0x6b0778);const _0x46aa6b=new Set();for(const _0x1c9f7a of _0x216cad)_0x1c9f7a['is']('element','listItem')?_0x46aa6b['add'](fe(_0x1c9f7a)):_0x46aa6b['add'](_0x1c9f7a);return Array['from'](_0x46aa6b);}(_0x5d02b7['getSelectedBlocks'](),_0x5618de,_0x318439['model']['schema']);_0x318439['model']['change'](()=>{for(const _0x4f9de0 of _0x804be2)_0x440c65['markBlockFormat'](_0x4f9de0,{'commandName':_0xc9ea28,'commandParams':[{'forceValue':!_0x59944d['value']}],'formatGroupId':'blockName'},ue(_0x4f9de0));});};}function _0x3efffc(_0x48b257){return()=>{const _0x3c2e09=function(_0x26559e){let _0x26c077=Array['from'](_0x26559e);const _0x1cbb19=_0x26c077['findIndex'](_0x237869=>'listItem'!=_0x237869['name']);return _0x1cbb19>-0x1&&(_0x26c077=_0x26c077['slice'](0x0,_0x1cbb19)),_0x26c077;}(_0x318439['model']['document']['selection']['getSelectedBlocks']()),_0xed7eca=_0x318439['model']['createRange'](_0x318439['model']['createPositionAt'](_0x3c2e09[0x0],'before'),_0x318439['model']['createPositionAt'](_0x3c2e09[_0x3c2e09['length']-0x1],'end'));_0x318439['model']['change'](()=>{_0x440c65['markBlockFormat'](_0xed7eca,{'commandName':_0x48b257,'commandParams':[],'formatGroupId':'listIndent'},function(_0x367fa2){const _0x377a63=new Set();for(const _0x16a68d of _0x367fa2){let _0x327c17=_0x16a68d['nextSibling'];for(;_0x327c17&&_0x327c17['getAttribute']('listIndent')>_0x16a68d['getAttribute']('listIndent');)_0x377a63['add'](_0x327c17),_0x327c17=_0x327c17['nextSibling'];}return Array['from'](_0x377a63);}(_0x3c2e09));});};}_0x440c65['enableCommand']('numberedList',_0x5d594c('numberedList')),_0x440c65['enableCommand']('bulletedList',_0x5d594c('bulletedList')),_0x10e93e&&_0x440c65['enableCommand']('todoList',_0x5d594c('todoList')),_0x440c65['enableCommand']('indentList',_0x3efffc('indentList')),_0x440c65['enableCommand']('outdentList',_0x3efffc('outdentList')),_0x10e93e&&_0x440c65['enableCommand']('checkTodoList',()=>{const _0x5bdbd5=_0x318439['commands']['get']('checkTodoList'),_0x1ef80e=Array['from'](_0x5bdbd5['_selectedElements']);_0x1ef80e['filter'](_0xbb0fb7=>_0xbb0fb7['getAttribute']('todoListChecked')!=_0x5bdbd5['value']),_0x318439['model']['change'](()=>{for(const _0x10893c of _0x1ef80e)_0x440c65['markBlockFormat'](_0x10893c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5bdbd5['value']}]});});}),_0x440c65['descriptionFactory']['registerElementLabel']('listItem',_0x30bd1f=>o(_0x3e1e8d,'ELEMENT_LIST_ITEM',_0x30bd1f)),_0x440c65['descriptionFactory']['registerDescriptionCallback'](_0x53e04d=>{if('formatBlock'!=_0x53e04d['type']&&'formatInline'!=_0x53e04d['type'])return;const {data:_0x41d4f8}=_0x53e04d;if(_0x41d4f8){if('numberedList'==_0x41d4f8['commandName']||'bulletedList'==_0x41d4f8['commandName']||'todoList'==_0x41d4f8['commandName'])switch(_0x41d4f8['commandName']['replace']('List','')){case'bulleted':return _0x4f4702(o(_0x3e1e8d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f4702(o(_0x3e1e8d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f4702(o(_0x3e1e8d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x41d4f8['commandName'])return{'type':'format','content':o(_0x3e1e8d,'*Indent:*\x20%0',o(_0x3e1e8d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x41d4f8['commandName'])return{'type':'format','content':o(_0x3e1e8d,'*Outdent:*\x20%0',o(_0x3e1e8d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x41d4f8['commandName'])return _0x41d4f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e1e8d,'*Check\x20item*')}:{'type':'format','content':o(_0x3e1e8d,'*Uncheck\x20item*')};}function _0x4f4702(_0x1d4f2b){return{'type':'format','content':o(_0x3e1e8d,'*Change\x20to:*\x20%0',_0x1d4f2b)};}});}}function fe(_0x346550){const _0x16cdca=_0x346550['getAttribute']('listIndent');if(0x0==_0x16cdca)return _0x346550;let _0x56477c=_0x346550;for(;_0x346550['previousSibling']&&_0x346550['previousSibling']['is']('element','listItem');){const _0xa4451a=_0x346550['previousSibling']['getAttribute']('listIndent');if(_0xa4451a==_0x16cdca)_0x56477c=_0x346550['previousSibling'];else{if(_0xa4451a<_0x16cdca)break;}_0x346550=_0x346550['previousSibling'];}return _0x56477c;}function ue(_0x214627){const _0x3ed5c2=[];if(_0x214627['is']('element','listItem')&&_0x214627['getAttribute']('listIndent')>0x0){let _0x5206bb=_0x214627['nextSibling'];for(;_0x5206bb&&'listItem'==_0x5206bb['name']&&_0x5206bb['getAttribute']('listIndent')==_0x214627['getAttribute']('listIndent');)_0x3ed5c2['push'](_0x5206bb),_0x5206bb=_0x5206bb['nextSibling'];}return _0x3ed5c2;}class W extends _0x3b500e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1d0962=this['editor']['config']['get']('list.properties'),_0xa81fb3=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d0962['styles']&&_0xa81fb3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1d0962['reversed']&&_0xa81fb3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1d0962['startIndex']&&_0xa81fb3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa81fb3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4739d2,_0x2dc3ea={}){const _0x8234db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59ef18=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x8234db['markMultiRangeBlockFormat'](_0x59ef18,{'commandName':'listStyle','commandParams':[{'type':_0x2dc3ea['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xce0ba3,_0xeac1a7={}){const _0x3b1182=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2be12c=this['_getSuggestionBlocks'](_0xae132f=>_0xae132f['is']('element','listItem')&&'numbered'===_0xae132f['getAttribute']('listType'));if(_0x2be12c['length']<0x1)return;const _0x395bf5=_0x2be12c['map'](_0x267d5a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x267d5a,'before'),this['editor']['model']['createPositionAt'](_0x267d5a,0x0)));this['editor']['model']['change'](()=>{_0x3b1182['markMultiRangeBlockFormat'](_0x395bf5,{'commandName':'listReversed','commandParams':[{'reversed':_0xeac1a7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2cf1ff,_0x712319={}){const _0x5d2c2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1886b1=this['_getSuggestionBlocks'](_0x578ffe=>_0x578ffe['is']('element','listItem')&&'numbered'===_0x578ffe['getAttribute']('listType'));if(_0x1886b1['length']<0x1)return;const _0x12047f=_0x1886b1['map'](_0xde89e2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xde89e2,'before'),this['editor']['model']['createPositionAt'](_0xde89e2,0x0)));this['editor']['model']['change'](()=>{_0x5d2c2e['markMultiRangeBlockFormat'](_0x12047f,{'commandName':'listStart','commandParams':[{'startIndex':_0x712319['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3e8750){if('formatBlock'!=_0x3e8750['type']&&'formatInline'!=_0x3e8750['type'])return;const _0x35f405=this['editor']['locale'],{data:_0x3984ff}=_0x3e8750;if(!_0x3984ff)return;let _0x5688ba,_0x45c04d;switch(_0x3984ff['commandName']){case'listStyle':_0x5688ba='*Change\x20to:*\x20%0',_0x45c04d={'type':'format','content':o(_0x35f405,_0x5688ba,o(_0x35f405,this['_getTranslationKeyForListStyle'](_0x3984ff['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5688ba=_0x3984ff['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45c04d={'type':'format','content':o(_0x35f405,_0x5688ba)};break;case'listStart':_0x5688ba='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45c04d={'type':'format','content':o(_0x35f405,_0x5688ba,_0x3984ff['commandParams'][0x0]['startIndex'])};}return _0x45c04d;}['_getSuggestionBlocksForListStyle'](){const _0x17042b=this['editor']['plugins']['get']('LegacyListUtils');let _0x231943=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x231943[0x0]?.['is']('element','listItem')&&_0x231943['unshift'](..._0x17042b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x231943[_0x231943['length']-0x1]?.['is']('element','listItem')&&_0x231943['push'](..._0x17042b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x231943=[...new Set(_0x231943)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x231943=_0x231943['filter'](_0x18773e=>_0x18773e['is']('element','listItem'))),_0x231943;}['_getSuggestionBlocks'](_0xcb3f72){const _0x2c079d=this['editor']['plugins']['get']('LegacyListUtils');let _0x2eb7a4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xcb3f72)['map'](_0x3c6865=>{const _0x4177f5=this['editor']['model']['createPositionAt'](_0x3c6865,0x0);return[..._0x2c079d['getSiblingNodes'](_0x4177f5,'backward'),..._0x2c079d['getSiblingNodes'](_0x4177f5,'forward')];})['flat']();return _0x2eb7a4=[...new Set(_0x2eb7a4)],_0x2eb7a4;}['_getTranslationKeyForListStyle'](_0x3e5d48){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3e5d48)||'default')['toUpperCase']()+'_LIST_'+_0x3e5d48['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3b500e{['afterInit'](){const _0x48eaa1=this['editor'];if(!_0x48eaa1['plugins']['has']('MediaEmbedEditing'))return;const _0x3af355=_0x48eaa1['plugins']['get']('TrackChangesEditing'),_0x32406a=_0x48eaa1['locale'];_0x3af355['enableCommand']('mediaEmbed'),_0x3af355['descriptionFactory']['registerElementLabel']('media',_0x3a8966=>o(_0x32406a,'ELEMENT_MEDIA',_0x3a8966)),_0x48eaa1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x212a63,{writer:_0x4256f6,options:_0x495af7})=>{if(_0x495af7['showSuggestionHighlights'])return _0x4256f6['createEmptyElement']('div');},'converterPriority':'high'}),_0x48eaa1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4ba71,_0x56487c,_0x193429)=>{_0x193429['options']['showSuggestionHighlights']&&_0x4ba71['stop']();},{'priority':'high'});}}class mt extends _0x3b500e{['afterInit'](){const _0x20bd7c=this['editor'];_0x20bd7c['plugins']['has']('MentionEditing')&&_0x20bd7c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3b500e{['afterInit'](){const _0x592cb9=this['editor'];if(!_0x592cb9['plugins']['has']('MergeFieldsEditing'))return;_0x592cb9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x592cb9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1e7c92=_0x592cb9['plugins']['get']('TrackChangesEditing'),_0x4b469f=_0x592cb9['locale'];_0x1e7c92['descriptionFactory']['registerElementLabel']('mergeField',_0x491bbb=>o(_0x4b469f,'ELEMENT_MERGE_FIELD',_0x491bbb)),_0x1e7c92['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2ac424=>o(_0x4b469f,'ELEMENT_MERGE_FIELD',_0x2ac424)),_0x1e7c92['descriptionFactory']['registerDescriptionCallback'](_0x24beeb=>{if('insertion'!=_0x24beeb['type']&&'deletion'!=_0x24beeb['type'])return;const _0x155602=_0x24beeb['getContainedElement']();if(null==_0x155602)return;if(!_0x155602['is']('element','mergeField')&&!_0x155602['is']('element','mergeFieldBlock'))return;const _0x4ce355=_0x592cb9['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x155602['getAttribute']('id'));return'insertion'==_0x24beeb['type']?{'type':'insertion','content':o(_0x4b469f,'*Insert:*\x20%0','\x22'+_0x4ce355+'\x22\x20'+o(_0x4b469f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4b469f,'*Remove:*\x20%0','\x22'+_0x4ce355+'\x22\x20'+o(_0x4b469f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3b500e{['afterInit'](){const _0x1676a7=this['editor'],_0x5de872=_0x1676a7['plugins']['get']('TrackChangesEditing');_0x1676a7['plugins']['has']('MultiLevelList')&&(_0x5de872['enableDefaultAttributesIntegration']('multiLevelList'),_0x5de872['registerBlockAttribute']('listMarkerStyle'),_0x5de872['descriptionFactory']['registerDescriptionCallback'](_0x52adf4=>this['handleDescriptions'](_0x52adf4)));}['handleDescriptions'](_0x92d960){const _0x1e9f03=this['editor']['locale'],{data:_0x4920f2}=_0x92d960,_0x116cf8={'type':'format','content':''};if(_0x4920f2&&'listMarkerStyle'==_0x4920f2['key']){if(!_0x4920f2['oldValue'])return{'type':'format','content':o(_0x1e9f03,'*Set\x20format:*\x20%0',o(_0x1e9f03,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4920f2['newValue']+')'};if(!_0x4920f2['newValue']){let _0x2f8ad3=_0x92d960['head'];for(;_0x2f8ad3;){if(_0x2f8ad3['data']&&'listType'==_0x2f8ad3['data']['key']&&_0x2f8ad3['data']['newValue'])return _0x116cf8;_0x2f8ad3=_0x2f8ad3['next'];}return{'type':'format','content':o(_0x1e9f03,'*Remove\x20format:*\x20%0',o(_0x1e9f03,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4920f2['oldValue']+')'};}}}}class kt extends _0x3b500e{['afterInit'](){const _0x5e4da9=this['editor'];if(!_0x5e4da9['plugins']['has']('PageBreakEditing'))return;_0x5e4da9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x41eb8b=_0x5e4da9['plugins']['get']('TrackChangesEditing'),_0x5c9652=_0x5e4da9['locale'];_0x41eb8b['descriptionFactory']['registerElementLabel']('pageBreak',_0x1374ec=>o(_0x5c9652,'ELEMENT_PAGE_BREAK',_0x1374ec));}}class bt extends _0x3b500e{['afterInit'](){const _0x4a74eb=this['editor'];if(!_0x4a74eb['plugins']['has']('Paragraph'))return;const _0x229b65=_0x4a74eb['locale'],_0x3d4f33=_0x4a74eb['plugins']['get']('TrackChangesEditing');_0x3d4f33['descriptionFactory']['registerElementLabel']('paragraph',_0x5cd25b=>o(_0x229b65,'ELEMENT_PARAGRAPH',_0x5cd25b)),_0x3d4f33['enableDefaultAttributesIntegration']('paragraph'),_0x3d4f33['enableCommand']('insertParagraph'),_0x4a74eb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4a74eb),{'priority':'highest'}),_0x4a74eb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3cc730,_0x527797,_0x3b47c8)=>{_0x3b47c8['options']['showSuggestionHighlights']&&nr(_0x4a74eb,{'showActiveMarker':!0x1})(_0x3cc730,_0x527797,_0x3b47c8);},{'priority':'highest'});const _0x32e154=_0x3d4f33['descriptionFactory'];_0x32e154['registerDescriptionCallback'](_0x595ce5=>{if('insertion'!==_0x595ce5['type'])return;const {start:_0x45646a,end:_0x4d75b1}=_0x595ce5['getFirstRange']();if(!_0x45646a['isTouching'](_0x4d75b1)||!_0x45646a['nodeAfter'])return;const _0x59a5a3=_0x4a74eb['model']['schema'],_0x405a63=_0x45646a['nodeAfter'];return _0x59a5a3['isBlock'](_0x405a63)&&!_0x59a5a3['isLimit'](_0x405a63)&&_0x59a5a3['checkChild'](_0x405a63,'$text')?{'type':'insertion','content':o(_0x229b65,'*Insert:*\x20%0',_0x32e154['getItemLabel'](_0x405a63,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x151c34=this['editor'],_0x945a25=_0x151c34['locale'];_0x151c34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x598b71=>{if('formatBlock'!=_0x598b71['type'])return;const {data:_0x421bb}=_0x598b71;return _0x421bb&&'paragraph'==_0x421bb['commandName']?{'type':'format','content':o(_0x945a25,'*Change\x20to:*\x20%0',o(_0x945a25,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd6b8b5,{showActiveMarker:_0x3de0fd=!0x0}={}){return(_0x504acc,_0x2f8b3d,_0x10bb30)=>{const _0x53c438=_0xd6b8b5['plugins']['get']('TrackChangesEditing'),_0x28bec9=_0x2f8b3d['markerRange']['start'],_0x25c656=_0x2f8b3d['markerRange']['end'],_0x3b7edb=_0xd6b8b5['model']['schema'];if(!_0x28bec9['isTouching'](_0x25c656)||!_0x28bec9['nodeAfter'])return;const _0x3180de=_0x28bec9['nodeAfter'];if(_0x3b7edb['isBlock'](_0x3180de)&&!_0x3b7edb['isLimit'](_0x3180de)&&_0x3b7edb['checkChild'](_0x3180de,'$text')){if(!_0x10bb30['consumable']['consume'](_0x2f8b3d['markerRange'],_0x504acc['name']))return;const {authorId:_0x1e227a}=_0x53c438['_splitMarkerName'](_0x2f8b3d['markerName']),_0x2dba83=_0x10bb30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1e227a}),_0x8c60eb=_0x10bb30['mapper']['toViewPosition'](_0x25c656);_0x3de0fd&&_0x53c438['activeMarkers']['includes'](_0x2f8b3d['markerName'])&&_0x10bb30['writer']['addClass']('ck-suggestion-marker--active',_0x2dba83),_0x10bb30['writer']['insert'](_0x8c60eb,_0x2dba83),_0x10bb30['mapper']['bindElementToMarker'](_0x2dba83,_0x2f8b3d['markerName']);}};}class wt extends _0x3b500e{['afterInit'](){const _0x27b8e2=this['editor'];if(!_0x27b8e2['plugins']['has']('RemoveFormatEditing'))return;_0x27b8e2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32cad4=this['editor'];_0x32cad4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bdae7=>{if('formatBlock'!=_0x2bdae7['type']&&'formatInline'!=_0x2bdae7['type'])return;const {data:_0x5f22e8}=_0x2bdae7;return _0x5f22e8&&'removeFormat'==_0x5f22e8['commandName']?{'type':'format','content':o(_0x32cad4['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3b500e{['afterInit'](){const _0x56e718=this['editor'];if(!_0x56e718['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x174aeb=_0x56e718['plugins']['get']('TrackChangesEditing');_0x174aeb['enableCommand']('goToPreviousRestrictedEditingException'),_0x174aeb['enableCommand']('goToNextRestrictedEditingException');const _0x177275=_0x56e718['plugins']['get']('RestrictedEditingModeEditing');_0x177275['enableCommand']('trackChanges'),_0x177275['enableCommand']('acceptSuggestion'),_0x177275['enableCommand']('discardSuggestion'),_0x177275['enableCommand']('acceptAllSuggestions'),_0x177275['enableCommand']('discardAllSuggestions'),_0x177275['enableCommand']('acceptSelectedSuggestions'),_0x177275['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3b500e{static get['requires'](){return[_0x3492a8];}['init'](){const _0x37d963=this['editor'],_0x30b959=_0x37d963['plugins']['get']('TrackChangesEditing');_0x30b959['enableCommand']('shiftEnter'),_0x37d963['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x37d963),{'priority':'high'}),_0x37d963['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x37d963),{'priority':'high'}),_0x37d963['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52e10b,_0x24467b,_0x2b8d0e)=>{_0x2b8d0e['options']['showSuggestionHighlights']&&ge(_0x37d963,{'showActiveMarker':!0x1})(_0x52e10b,_0x24467b,_0x2b8d0e);}),_0x30b959['descriptionFactory']['registerElementLabel']('softBreak',_0x4837da=>o(_0x37d963['locale'],'ELEMENT_LINE_BREAK',_0x4837da));}}function ge(_0x3e15d8,{showActiveMarker:_0x4a1934=!0x0}={}){return(_0x13541a,_0xddf40b,_0xa1d7d9)=>{const _0xe66de4=_0x3e15d8['plugins']['get']('TrackChangesEditing');if(!_0xa1d7d9['consumable']['test'](_0xddf40b['markerRange'],_0x13541a['name']))return;const _0x7e03fb=_0x3e15d8['model'];for(const _0x95f41d of _0xddf40b['markerRange']['getItems']()){if(!_0x95f41d['is']('element','softBreak'))continue;const _0x1a3fa5='deletion'==_0xddf40b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2cc16b}=_0xe66de4['_splitMarkerName'](_0xddf40b['markerName']),_0x387f0f=_0xa1d7d9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a3fa5,'data-author-id':_0x2cc16b}),_0x1d6d5e=_0xa1d7d9['mapper']['toViewPosition'](_0x7e03fb['createPositionBefore'](_0x95f41d));_0x4a1934&&_0xe66de4['activeMarkers']['includes'](_0xddf40b['markerName'])&&_0xa1d7d9['writer']['addClass']('ck-suggestion-marker--active',_0x387f0f),_0xa1d7d9['writer']['insert'](_0x1d6d5e,_0x387f0f),_0xa1d7d9['mapper']['bindElementToMarker'](_0x387f0f,_0xddf40b['markerName']);}};}class St extends _0x3b500e{['afterInit'](){const _0x2b4ec3=this['editor'],_0x3bcfff=_0x2b4ec3['model'],_0x203b0b=_0x2b4ec3['locale'];if(!_0x2b4ec3['plugins']['has']('StandardEditingModeEditing'))return;const _0x1398b1=_0x2b4ec3['plugins']['get']('TrackChangesEditing'),_0x329aee='restrictedEditingException',_0x2a643d=_0x2b4ec3['commands']['get'](_0x329aee);_0x1398b1['enableCommand'](_0x329aee,(_0xcca97e,_0x4e626c={})=>{const _0x460c10=_0x3bcfff['document']['selection'];if(_0x460c10['isCollapsed'])return void _0xcca97e(_0x4e626c);const _0x4bff73=void 0x0!==_0x4e626c['forceValue']?_0x4e626c['forceValue']:!_0x2a643d['value'];_0x3bcfff['change'](()=>{const _0x4131c0=Array['from'](_0x460c10['getRanges']());for(const _0x2af158 of _0x4131c0){const _0x599374=_0x4bff73?[_0x2af158]:io(_0x329aee,_0x2af158,_0x3bcfff);for(const _0x10274c of _0x599374)_0x1398b1['markInlineFormat'](_0x10274c,{'commandName':_0x329aee,'commandParams':[{'forceValue':_0x4bff73}]});}});}),_0x1398b1['descriptionFactory']['registerDescriptionCallback'](_0x5e4459=>{if('formatBlock'!=_0x5e4459['type']&&'formatInline'!=_0x5e4459['type'])return;const {data:_0x268aba}=_0x5e4459;return _0x268aba&&_0x268aba['commandName']==_0x329aee?_0x268aba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x203b0b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x203b0b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3b500e{['afterInit'](){const _0x115f72=this['editor'];if(!_0x115f72['plugins']['has']('Style')||!_0x115f72['plugins']['has']('DataSchema'))return;const _0x34c537=_0x115f72['plugins']['get']('TrackChangesEditing'),_0x502335=_0x115f72['locale'],_0x1f8f38=_0x115f72['config']['get']('style')||{},_0x46f6ba=_0x115f72['plugins']['get']('GeneralHtmlSupport'),_0x8af00b=_0x115f72['plugins']['get']('StyleUtils')['normalizeConfig'](_0x115f72['plugins']['get']('DataSchema'),_0x1f8f38['definitions']);_0x34c537['enableDefaultAttributesIntegration']('style');const _0x1f4c1d=new Set();for(const _0x1cfcf8 of _0x8af00b['block']){const _0x2c0c66=_0x46f6ba['getGhsAttributeNameForElement'](_0x1cfcf8['element']);_0x1f4c1d['add'](_0x2c0c66);}const _0x538bb9=new Set();for(const _0x883395 of _0x8af00b['inline']){const _0x406d58=_0x46f6ba['getGhsAttributeNameForElement'](_0x883395['element']);_0x538bb9['add'](_0x406d58);for(const _0x10135a of _0x883395['ghsAttributes'])_0x538bb9['add'](_0x10135a);}for(const _0x3d42b8 of _0x1f4c1d)_0x34c537['registerBlockAttribute'](_0x3d42b8),_0x34c537['descriptionFactory']['registerAttributeLabel'](_0x3d42b8,o(_0x502335,'FORMAT_STYLE'));for(const _0x3d93a6 of _0x538bb9)_0x34c537['registerInlineAttribute'](_0x3d93a6),_0x34c537['descriptionFactory']['registerAttributeLabel'](_0x3d93a6,o(_0x502335,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d2192=this['editor'],_0xc74c96=_0x3d2192['locale'];_0x3d2192['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23de04=>{if('formatBlock'!=_0x23de04['type']&&'formatInline'!=_0x23de04['type'])return;const {data:_0x5d12da}=_0x23de04;return _0x5d12da&&'style'===_0x5d12da['commandName']?_0x5d12da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc74c96,'*Set\x20format:*\x20%0',_0x5d12da['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc74c96,'*Remove\x20format:*\x20%0',_0x5d12da['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3b500e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9c117a){super(_0x9c117a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1b7568=this['editor'],_0x1fd235=_0x1b7568['model']['document']['selection'];if(!_0x1b7568['plugins']['has']('TableEditing'))return;const _0x19612b=_0x1b7568['locale'],_0x160f82=_0x1b7568['plugins']['get']('TrackChangesEditing'),_0x503bc7=_0x1b7568['plugins']['get']('TableUtils');_0x160f82['descriptionFactory']['registerElementLabel']('table',_0x4263ea=>o(_0x19612b,'ELEMENT_TABLE',_0x4263ea)),this['_setupColumnsRowsFixing'](),_0x160f82['enableCommand']('insertTable'),_0x160f82['enableCommand']('selectTableRow'),_0x160f82['enableCommand']('selectTableColumn');for(const _0x3e054e of['insertTableRowAbove','insertTableRowBelow']){const _0x42020d=_0x1b7568['commands']['get'](_0x3e054e);_0x160f82['enableCommand'](_0x3e054e,_0x84ef5a=>{_0x1b7568['model']['change'](_0x38a019=>{_0x84ef5a();const _0x40b3b5='above'===_0x42020d['order'],_0x6ad381=_0x503bc7['getSelectionAffectedTableCells'](_0x1fd235),_0x263c6f=_0x503bc7['getRowIndexes'](_0x6ad381),_0x5d94a9=_0x40b3b5?_0x263c6f['first']-0x1:_0x263c6f['last']+0x1,_0x164229=_0x6ad381[0x0]['findAncestor']('table'),_0x592374=_0x503bc7['createTableWalker'](_0x164229,{'startRow':_0x5d94a9,'endRow':_0x5d94a9}),_0x402f15=Array['from'](_0x592374)['map'](_0x288460=>_0x38a019['createRangeOn'](_0x288460['cell']));_0x160f82['markMultiRangeInsertion'](_0x402f15,'tableRow');});});}for(const _0x38bf60 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4504ba=_0x1b7568['commands']['get'](_0x38bf60);_0x160f82['enableCommand'](_0x38bf60,_0x385876=>{_0x1b7568['model']['change'](_0x2332ec=>{_0x385876();const _0x54c608='left'===_0x4504ba['order'],_0x3d21cf=_0x503bc7['getSelectionAffectedTableCells'](_0x1fd235),_0x14b8ca=_0x503bc7['getColumnIndexes'](_0x3d21cf),_0x2d7abe=_0x54c608?_0x14b8ca['first']-0x1:_0x14b8ca['last']+0x1,_0x1561e1=_0x3d21cf[0x0]['findAncestor']('table'),_0x528e78=_0x503bc7['createTableWalker'](_0x1561e1,{'startRow':0x0,'column':_0x2d7abe,'includeAllSlots':!0x1}),_0x1bd3cc=Array['from'](_0x528e78)['map'](_0x5760d5=>_0x2332ec['createRangeOn'](_0x5760d5['cell']));_0x160f82['markMultiRangeInsertion'](_0x1bd3cc,'tableColumn');});});}for(const _0x450611 of['removeTableRow','removeTableColumn']){const _0x30f321=_0x450611['substr'](0xb),_0x378685=_0x30f321['toLowerCase'](),_0x34c458=_0x378685['substr'](0x0,0x3)+'span',_0x14b1d5='table'+_0x30f321,_0x2a905e='min'+_0x30f321,_0x3671fb='max'+_0x30f321;_0x160f82['enableCommand'](_0x450611,()=>{_0x1b7568['model']['change'](_0x50a761=>{const _0x44224c=_0x503bc7['getSelectionAffectedTableCells'](_0x1fd235),_0xbad830=_0x44224c[0x0]['findAncestor']('table');let _0xe5eb00;if('removeTableRow'==_0x450611){const _0x541543=_0x503bc7['getRowIndexes'](_0x44224c);_0xe5eb00={'startRow':_0x541543['first'],'endRow':_0x541543['last'],'includeAllSlots':!0x0};}else{const _0x56ad26=_0x503bc7['getColumnIndexes'](_0x44224c);_0xe5eb00={'startColumn':_0x56ad26['first'],'endColumn':_0x56ad26['last'],'includeAllSlots':!0x0};}const _0x54dcca=_0x503bc7['createTableWalker'](_0xbad830,_0xe5eb00),_0x3e184a=Array['from'](_0x54dcca)['map'](({cell:_0x40647f})=>_0x40647f),_0x5d8b3c=be(_0x3e184a['filter'](_0x1b2c73=>_0x1b2c73['hasAttribute'](_0x34c458))),_0x3f6045=be(_0x3e184a['filter'](_0x34c40d=>!_0x34c40d['hasAttribute'](_0x34c458)))['map'](_0x1a079c=>_0x50a761['createRangeOn'](_0x1a079c)),_0x3dfb77=_0x160f82['markMultiRangeDeletion'](_0x3f6045,_0x14b1d5);if(_0x3dfb77&&('tableRow'==_0x3dfb77['subType']||'tableColumn'==_0x3dfb77['subType'])){const _0x1e64be=this['_getSuggestionCoords'](_0x3dfb77);for(const _0x5167e2 of _0x5d8b3c){const _0x2f6e75=_0x50a761['createRangeOn'](_0x5167e2),_0x446ad2=_0x503bc7['getCellLocation'](_0x5167e2),_0x5db8f8=_0x5167e2['getAttribute'](_0x34c458)-0x1,_0x5b7865=_0x1e64be[_0x2a905e],_0x30744a=_0x1e64be[_0x3671fb];_0x5b7865<=_0x446ad2[_0x378685]&&_0x446ad2[_0x378685]+_0x5db8f8<=_0x30744a&&_0x3dfb77['addRange'](_0x2f6e75);}}});});}function _0x25d872(_0x53c7be){const _0x1e5894=Array['from'](_0x1fd235['getRanges']())['map'](_0x7a9d21=>_0x5e2088['fromRange'](_0x7a9d21));_0x1b7568['model']['change'](_0x27ebf9=>{const _0x24a973=_0x27ebf9['batch'];_0x53c7be=_0x53c7be['filter'](_0x400157=>'$graveyard'!=_0x400157['root']['rootName']),_0x27ebf9['setSelection'](_0x53c7be),_0x1b7568['commands']['get']('removeTableRow')['refresh'](),_0x1b7568['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1b7568['model']['enqueueChange'](()=>{_0x1b7568['model']['enqueueChange'](_0x24a973,_0x49ce5a=>{const _0x494646=_0x1e5894['filter'](_0x23029a=>'$graveyard'!=_0x23029a['root']['rootName']);_0x494646['length']>0x0&&_0x49ce5a['setSelection'](_0x494646);for(const _0x38abc0 of _0x1e5894)_0x38abc0['detach']();});});});}function _0x471bea(_0x111d73){_0x1b7568['model']['change'](_0x2d2690=>{const _0x17f6a7=Array['from'](_0x1fd235['getRanges']())['map'](_0x1871d7=>_0x5e2088['fromRange'](_0x1871d7)),_0x59f3ad=[];for(const _0x3a6867 of _0x111d73)for(const _0x276098 of _0x3a6867['getItems']({'shallow':!0x0}))_0x59f3ad['push'](_0x276098);for(const _0x4a5199 of _0x59f3ad)'$graveyard'!=_0x4a5199['root']['rootName']&&(_0x2d2690['setSelection'](_0x2d2690['createPositionAt'](_0x4a5199,0x0)),_0x1b7568['commands']['get']('removeTableColumn')['refresh'](),_0x1b7568['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1024d4=_0x17f6a7['filter'](_0xc028db=>'$graveyard'!=_0xc028db['root']['rootName']);_0x1024d4['length']>0x0&&_0x2d2690['setSelection'](_0x1024d4);for(const _0x5cc3c0 of _0x17f6a7)_0x5cc3c0['detach']();});}function _0x3d278f(_0x5f018d,_0x47bb32){return _0x47bb32['every'](_0x585101=>_0x5f018d['some'](_0x387050=>_0x387050['end']['isEqual'](_0x585101['start'])||_0x585101['end']['isEqual'](_0x387050['start'])));}function _0x51c97c(_0x125727,_0xb212df){return!_0x125727['some'](_0x2aaeaa=>_0xb212df['some'](_0x1f545e=>_0x2aaeaa['isIntersecting'](_0x1f545e)))&&_0x125727['some'](_0x340b93=>_0xb212df['some'](_0x2da628=>_0x340b93['end']['isTouching'](_0x2da628['start'])));}_0x1b7568['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3487f3,_0x4ca6b7,_0x17b1d0)=>{if(!_0x17b1d0['options']['showSuggestionHighlights'])return;const _0x301027=_0x4ca6b7['item'];if(!_0x301027)return;const _0x25c4fd=_0x17b1d0['mapper']['toViewElement'](_0x301027);function _0x20e82f(_0x17b9c5){return Array['isArray'](_0x17b9c5)?_0x17b9c5:[_0x17b9c5];}_0x25c4fd&&'tableCell'===_0x301027['name']&&_0x59e075(_0x25c4fd,_0x17b1d0['writer'],(_0x2eff82,_0x24528a,_0x4431e5)=>_0x4431e5['addClass'](_0x20e82f(_0x24528a['classes']),_0x2eff82),(_0x4914b6,_0x37e8fb,_0x3d0d53)=>_0x3d0d53['removeClass'](_0x20e82f(_0x37e8fb['classes']),_0x4914b6));},{'priority':'highest'}),_0x160f82['descriptionFactory']['registerDescriptionCallback'](_0x35ca71=>{if('insertion'!=_0x35ca71['type']&&'deletion'!=_0x35ca71['type'])return;const _0x231e50=_0x35ca71['getContainedElement']();if(null!=_0x231e50&&_0x231e50['is']('element','table')){if('insertion'==_0x35ca71['type']){const _0x2db2e4=_0x35ca71['getItems']()['filter'](_0x2d2762=>_0x2d2762['is']('$textProxy'))['map'](_0x57bec1=>_0x57bec1['data']);if(_0x2db2e4['length'])return{'type':'insertion','content':o(_0x19612b,'*Insert:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2db2e4['join']('\x20')+'\x22'))};}if('deletion'==_0x35ca71['type']){const _0x5bf5d4=_0x35ca71['getItems']()['filter'](_0x276a3e=>_0x276a3e['is']('$textProxy'))['map'](_0x18b92e=>_0x18b92e['data']);if(_0x5bf5d4['length'])return{'type':'deletion','content':o(_0x19612b,'*Remove:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5bf5d4['join']('\x20')+'\x22'))};}}}),_0x160f82['descriptionFactory']['registerDescriptionCallback'](_0x2b2f01=>{if('tableRow'==_0x2b2f01['subType']){const _0x718dc=_0x2b2f01['getItems']()['filter'](_0x107a4e=>_0x107a4e['is']('$textProxy'))['map'](_0x5026b0=>_0x5026b0['data']),_0x25f114=this['_getSuggestionCoords'](_0x2b2f01),_0x261359=_0x25f114['maxRow']-_0x25f114['minRow']+0x1;if('insertion'==_0x2b2f01['type'])return _0x718dc['length']?{'type':'insertion','content':o(_0x19612b,'*Insert:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x261359,'\x22'+_0x718dc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x19612b,'*Insert:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_ROW',_0x261359))};if('deletion'==_0x2b2f01['type'])return _0x718dc['length']?{'type':'deletion','content':o(_0x19612b,'*Remove:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x261359,'\x22'+_0x718dc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x19612b,'*Remove:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_ROW',_0x261359))};}if('tableColumn'==_0x2b2f01['subType']){const _0x271be0=_0x2b2f01['getItems']()['filter'](_0x5bbcc8=>_0x5bbcc8['is']('$textProxy'))['map'](_0x5d6653=>_0x5d6653['data']),_0x1d8b51=this['_getSuggestionCoords'](_0x2b2f01),_0x1a3a3b=_0x1d8b51['maxColumn']-_0x1d8b51['minColumn']+0x1;if('insertion'==_0x2b2f01['type'])return _0x271be0['length']?{'type':'insertion','content':o(_0x19612b,'*Insert:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a3a3b,'\x22'+_0x271be0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x19612b,'*Insert:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_COLUMN',_0x1a3a3b))};if('deletion'==_0x2b2f01['type'])return _0x271be0['length']?{'type':'deletion','content':o(_0x19612b,'*Remove:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a3a3b,'\x22'+_0x271be0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x19612b,'*Remove:*\x20%0',o(_0x19612b,'ELEMENT_TABLE_COLUMN',_0x1a3a3b))};}}),_0x160f82['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x25d872),_0x160f82['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x25d872),_0x160f82['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x471bea),_0x160f82['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x471bea),_0x160f82['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d278f),_0x160f82['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d278f),_0x160f82['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x51c97c),_0x160f82['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x51c97c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5b26a3=this['editor'],_0x1c79cd=_0x5b26a3['model']['document']['selection'];return(_0xf299d1,_0x5d6aa0)=>{_0x5b26a3['model']['change'](_0x404d4d=>{const {commandName:_0x1c1dbd,commandParams:_0x4feaad}=_0x5d6aa0;let _0x2d6219=_0xf299d1[0x0]['end']['nodeBefore'];_0x4feaad&&_0x4feaad[0x0]&&!0x1===_0x4feaad[0x0]['forceValue']&&(_0x2d6219=_0xf299d1[0x0]['start']['nodeAfter']);const _0xe62002=_0x404d4d['createRangeIn'](_0x2d6219);if('$graveyard'==_0xe62002['root']['rootName'])return;const _0x132952=Array['from'](_0x1c79cd['getRanges']())['map'](_0x1e178e=>_0x5e2088['fromRange'](_0x1e178e));_0x404d4d['setSelection'](_0xe62002),_0x5b26a3['commands']['get'](_0x1c1dbd)['refresh'](),_0x4feaad['push']({'forceDefaultExecution':!0x0}),_0x5b26a3['execute'](_0x1c1dbd,..._0x4feaad);const _0x39b927=_0x132952['filter'](_0x3fef4d=>'$graveyard'!=_0x3fef4d['root']['rootName']);_0x39b927['length']>0x0&&_0x404d4d['setSelection'](_0x39b927);for(const _0x5f2b9a of _0x132952)_0x5f2b9a['detach']();});};}['_getCoordsForCells'](_0x5b59d5){const _0x72a0ad=this['editor']['plugins']['get']('TableUtils');let _0x147459=Number['MAX_SAFE_INTEGER'],_0x5c41a0=Number['MIN_SAFE_INTEGER'],_0x1fbcb6=Number['MAX_SAFE_INTEGER'],_0x51d8d9=Number['MIN_SAFE_INTEGER'];for(const _0x6c63f7 of _0x5b59d5){if('$graveyard'==_0x6c63f7['root']['rootName'])continue;const {row:_0x4af337,column:_0x18d4c8}=_0x72a0ad['getCellLocation'](_0x6c63f7),_0x20c706=_0x6c63f7['hasAttribute']('rowspan')?_0x6c63f7['getAttribute']('rowspan')-0x1:0x0,_0x4674aa=_0x6c63f7['hasAttribute']('colspan')?_0x6c63f7['getAttribute']('colspan')-0x1:0x0;_0x147459=_0x4af337<_0x147459?_0x4af337:_0x147459,_0x5c41a0=_0x4af337+_0x20c706>_0x5c41a0?_0x4af337+_0x20c706:_0x5c41a0,_0x1fbcb6=_0x18d4c8<_0x1fbcb6?_0x18d4c8:_0x1fbcb6,_0x51d8d9=_0x18d4c8+_0x4674aa>_0x51d8d9?_0x18d4c8+_0x4674aa:_0x51d8d9;}return{'minRow':_0x147459,'maxRow':_0x5c41a0,'minColumn':_0x1fbcb6,'maxColumn':_0x51d8d9};}['_setupColumnsRowsFixing'](){const _0x52b7f1=this['editor'],_0x18f1c6=_0x52b7f1['plugins']['get']('TrackChangesEditing'),_0x212192=_0x52b7f1['plugins']['get']('TableUtils');_0x52b7f1['model']['document']['on']('change:data',()=>{const _0x1713f9=Array['from'](_0x52b7f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x143c96,data:_0x21bc41}of _0x1713f9){const {group:_0x1ff20a,id:_0x9c0ebd,subType:_0x2c91f1}=_0x18f1c6['_splitMarkerName'](_0x143c96);if('suggestion'!=_0x1ff20a)continue;if(null!=_0x21bc41['oldRange'])continue;const _0x40d073=_0x18f1c6['getSuggestion'](_0x9c0ebd);this['_tablePostFixingSubtypes']['includes'](_0x2c91f1)&&this['_tableSuggestions']['add'](_0x40d073);}},{'priority':'low'});const _0x129fe2=(_0x1cce2f,_0x230675)=>{let _0x353b67=!0x1;const _0x4d5788=_0x230675['createRangeOn'](_0x1cce2f),_0x44d6a7=_0x1cce2f['findAncestor']('table'),_0x201576=_0x212192['getCellLocation'](_0x1cce2f);for(const _0x2a2892 of this['_tableSuggestions']){const _0xd290b0=_0x2a2892['subType'],_0x24683d=_0xd290b0['startsWith']('tablePaste'),_0x569044=_0xd290b0['substr'](_0x24683d?0xa:0x5),_0x37d7a8=_0x569044['toLowerCase'](),_0x510949=_0x37d7a8['substr'](0x0,0x3)+'span',_0x4920d0='min'+_0x569044,_0x3d129c='max'+_0x569044;if(!_0x2a2892['isInContent'])continue;if(_0x44d6a7!=_0x2a2892['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2a2892['isIntersectingWithRange'](_0x4d5788))continue;const _0x252bc0=_0x1cce2f['hasAttribute'](_0x510949)?_0x1cce2f['getAttribute'](_0x510949)-0x1:0x0,_0x58130f=this['_getSuggestionCoords'](_0x2a2892),_0x63bff7=_0x58130f[_0x4920d0],_0x35cad1=_0x58130f[_0x3d129c];_0x63bff7<=_0x201576[_0x37d7a8]&&_0x201576[_0x37d7a8]+_0x252bc0<=_0x35cad1&&(_0x2a2892['addRange'](_0x4d5788),_0x353b67=!0x0);}return _0x353b67;};_0x52b7f1['model']['document']['registerPostFixer'](_0x550848=>{let _0x44a942=!0x1;for(const _0x2d7ec5 of _0x52b7f1['model']['document']['differ']['getChanges']())if('insert'==_0x2d7ec5['type']){if('tableRow'==_0x2d7ec5['name']){for(const _0x302124 of _0x2d7ec5['position']['nodeAfter']['getChildren']())_0x44a942=_0x44a942||_0x129fe2(_0x302124,_0x550848);}else'tableCell'==_0x2d7ec5['name']&&(_0x44a942=_0x44a942||_0x129fe2(_0x2d7ec5['position']['nodeAfter'],_0x550848));}return _0x44a942;});}['_getSuggestionCoords'](_0x41e243){return this['_getCoordsForCells'](_0x41e243['getRanges']()['map'](_0x4e5bdf=>_0x4e5bdf['start']['nodeAfter']));}}function be(_0x36dda8){return Array['from'](new Set(_0x36dda8)['values']());}class vt extends _0x3b500e{static get['requires'](){return[It];}['afterInit'](){const _0x48298d=this['editor'],_0x546f60=_0x48298d['model']['document']['selection'],_0x107903=_0x48298d['locale'];if(!_0x48298d['plugins']['has']('TableEditing'))return;const _0x4828d4=_0x48298d['plugins']['get']('TrackChangesEditing'),_0x4c9eff=_0x48298d['plugins']['get']('TableUtils'),_0xf04722=_0x48298d['plugins']['get'](It);_0xf04722['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4828d4['enableCommand']('mergeTableCells',()=>{const _0x2803e0=_0x4c9eff['getSelectionAffectedTableCells'](_0x48298d['model']['document']['selection']);_0x48298d['model']['change'](()=>{_0x4828d4['markMultiRangeBlockFormat'](_0x2803e0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x48298d['commands']['get']('mergeTableCells')['on']('execute',(_0x19de65,_0xb295c5)=>{_0x48298d['commands']['get']('trackChanges')['value']&&(_0xb295c5['length']>0x0&&_0xb295c5[_0xb295c5['length']-0x1]&&_0xb295c5[_0xb295c5['length']-0x1]['forceDefaultExecution']||_0x4828d4['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x19de65['stop']());},{'priority':'highest'});for(const _0x4d12bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x192bf3=_0x48298d['commands']['get'](_0x4d12bd);_0x4828d4['enableCommand'](_0x4d12bd,()=>{const _0x3a61df=_0x48298d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2f5fff=>_0x2f5fff['is']('element','tableCell')),_0x2e00a7=_0x192bf3['value'];_0x48298d['model']['change'](()=>{_0x4828d4['markMultiRangeBlockFormat']([_0x3a61df,_0x2e00a7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x50cade of['splitTableCellVertically','splitTableCellHorizontally']){const _0x561130=_0x48298d['commands']['get'](_0x50cade);_0x4828d4['enableCommand'](_0x50cade,()=>{const _0x4c8261=_0x4c9eff['getSelectionAffectedTableCells'](_0x48298d['model']['document']['selection'])[0x0],_0x52cfa6=_0x4c8261['findAncestor']('table'),{column:_0x49f633,row:_0x2c680c}=_0x4c9eff['getCellLocation'](_0x4c8261);let _0x22b54c=[];if('horizontally'==_0x561130['direction']){const _0x1833bc=_0x4c9eff['createTableWalker'](_0x52cfa6,{'startRow':_0x2c680c,'endRow':_0x2c680c,'includeAllSlots':!0x0});_0x22b54c=Array['from'](_0x1833bc)['map'](_0x1e6362=>_0x1e6362['cell']);}else{const _0x272db3=_0x4c9eff['createTableWalker'](_0x52cfa6,{'column':_0x49f633,'includeAllSlots':!0x0});_0x22b54c=Array['from'](_0x272db3)['map'](_0x592a4d=>_0x592a4d['cell']);}_0x48298d['model']['change'](_0x3eadb6=>{_0x4828d4['markBlockFormat'](_0x3eadb6['createRangeOn'](_0x4c8261),{'commandName':_0x50cade,'commandParams':[]},_0x22b54c,_0x50cade);});});}_0x4828d4['descriptionFactory']['registerDescriptionCallback'](_0x1e57d0=>{if('formatBlock'!=_0x1e57d0['type']&&'formatInline'!=_0x1e57d0['type'])return;const {data:_0xd5e9e7}=_0x1e57d0;return _0xd5e9e7&&'mergeTableCells'==_0xd5e9e7['commandName']?{'type':'format','content':o(_0x107903,'*Merge\x20cells*')}:void 0x0;}),_0x4828d4['descriptionFactory']['registerDescriptionCallback'](_0x37cfb9=>{if('formatBlock'!=_0x37cfb9['type']&&'formatInline'!=_0x37cfb9['type'])return;const {data:_0x4aad5b}=_0x37cfb9;return _0x4aad5b?'splitTableCellVertically'==_0x4aad5b['commandName']?{'type':'format','content':o(_0x107903,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4aad5b['commandName']?{'type':'format','content':o(_0x107903,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x42a10f=_0xf04722['_acceptFormatSuggestionCallbackFactory']();for(const _0x308acd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4828d4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x308acd,'accept',_0x42a10f);for(const _0x45a9d2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4828d4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45a9d2,'accept',_0x42a10f);_0x4828d4['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4134d5=>{_0x48298d['model']['change'](_0x12b458=>{const _0x158aa3=Array['from'](_0x546f60['getRanges']())['map'](_0xcbc9ef=>_0x5e2088['fromRange'](_0xcbc9ef));_0x12b458['setSelection'](_0x4134d5),_0x48298d['commands']['get']('mergeTableCells')['refresh'](),_0x48298d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xa317d6=_0x158aa3['filter'](_0x193da8=>'$graveyard'!=_0x193da8['root']['rootName']);_0xa317d6['length']>0x0&&_0x12b458['setSelection'](_0xa317d6);for(const _0x321a18 of _0x158aa3)_0x321a18['detach']();});});for(const _0x3b468a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a3f10=_0x48298d['commands']['get'](_0x3b468a);_0x2a3f10['on']('set:isEnabled',(_0x4bb799,_0x3074d6,_0xded75c)=>{if(_0xded75c){const _0x8c3efc=_0x48298d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d0f22=>_0x5d0f22['is']('element','tableCell'));this['_areMergableCells'](_0x2a3f10['value'],_0x8c3efc)||(_0x4bb799['return']=!0x1,_0x4bb799['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1bbcfd=this['editor']['commands']['get']('mergeTableCells'),_0x307513=this['editor']['plugins']['get']('TableUtils');if(!_0x1bbcfd['isEnabled'])return!0x1;const _0x36d590=_0x307513['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ac02e of _0x36d590)for(const _0x36aa4e of _0x36d590)if(_0x3ac02e!=_0x36aa4e&&!this['_areMergableCells'](_0x3ac02e,_0x36aa4e))return!0x1;return!0x0;}['_areMergableCells'](_0x64747d,_0x427fd1){const _0x58a380=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14104c=this['editor']['model']['createRangeOn'](_0x64747d),_0xc7b6ac=this['editor']['model']['createRangeOn'](_0x427fd1),_0x38c68d=new Set(),_0x10ab6b=new Set();for(const _0x4c8acf of _0x58a380['getSuggestions']())if(('insertion'==_0x4c8acf['type']||'deletion'==_0x4c8acf['type']||'mergeTableCells'==_0x4c8acf['subType'])&&_0x4c8acf['isInContent']){for(const _0x21c9ab of _0x4c8acf['getRanges']())_0x21c9ab['containsRange'](_0x14104c,!0x0)&&_0x38c68d['add'](_0x4c8acf['type']+':'+_0x4c8acf['author']['id']),_0x21c9ab['containsRange'](_0xc7b6ac,!0x0)&&_0x10ab6b['add'](_0x4c8acf['type']+':'+_0x4c8acf['author']['id']);}if(_0x38c68d['size']!=_0x10ab6b['size'])return!0x1;for(const _0x2b2971 of _0x38c68d)if(!_0x10ab6b['has'](_0x2b2971))return!0x1;return!0x0;}}class Ct extends _0x3b500e{static get['requires'](){return[It];}['afterInit'](){const _0x5c92a7=this['editor'];if(!_0x5c92a7['plugins']['has']('TableEditing'))return;const _0x462c43=_0x5c92a7['locale'],_0xc61618=_0x5c92a7['plugins']['get']('TrackChangesEditing');_0xc61618['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xc61618['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xc61618['registerBlockAttribute']('headingRows'),_0xc61618['registerBlockAttribute']('headingColumns'),_0xc61618['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x462c43,'FORMAT_HEADER_ROW')),_0xc61618['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x462c43,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x21430b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x64b21f=this['editor']['plugins']['get']('TableUtils'),_0x412341=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0xbbdc2d({showActiveMarker:_0x3de201=!0x0,setDataAttribute:_0xc5833e=!0x0}={}){return(_0x5b6c4f,_0x448d42,_0x37ecab)=>{const {type:_0x50c29c,id:_0x4d0f74}=_0x21430b['_splitMarkerName'](_0x448d42['markerName']),_0x148dc8=_0x21430b['getSuggestion'](_0x4d0f74),_0x390e27=_0x148dc8['data'];if('formatBlock'!=_0x148dc8['type']||!_0x390e27||'setTableColumnHeader'!=_0x390e27['commandName'])return;if(_0x448d42['item'])return void _0x5b6c4f['stop']();if(!_0x37ecab['consumable']['consume'](_0x448d42['markerRange'],_0x5b6c4f['name']))return;const _0x331498=_0x448d42['markerRange']['start']['nodeAfter'],_0x3f849a=_0x448d42['markerRange']['end']['nodeBefore'],_0x581235=_0x331498['parent']['parent'],{column:_0x127f8b}=_0x64b21f['getCellLocation'](_0x331498),{column:_0x32b60c}=_0x64b21f['getCellLocation'](_0x3f849a);for(let _0x558fe9=_0x127f8b;_0x558fe9<=_0x32b60c;_0x558fe9++){const _0x359b4e=_0x64b21f['createTableWalker'](_0x581235,{'column':_0x558fe9,'includeAllSlots':!0x1});for(const _0x22419b of _0x359b4e){const _0x1cdaf5=_0x22419b['cell'],_0x5b10f9=_0x37ecab['mapper']['toViewElement'](_0x1cdaf5);_0x37ecab['writer']['addClass']('ck-suggestion-marker-'+_0x50c29c,_0x5b10f9),_0xc5833e&&_0x37ecab['writer']['setAttribute']('data-suggestion',_0x4d0f74,_0x5b10f9),_0x37ecab['mapper']['bindElementToMarker'](_0x5b10f9,_0x448d42['markerName']),_0x3de201&&(_0x21430b['activeMarkers']['includes'](_0x448d42['markerName'])?_0x37ecab['writer']['addClass']('ck-suggestion-marker--active',_0x5b10f9):_0x37ecab['writer']['removeClass']('ck-suggestion-marker--active',_0x5b10f9));}}};}_0x21430b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x412341),_0x21430b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x412341),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xbbdc2d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29098b,_0x2e3159,_0x2743cc)=>{_0x2743cc['options']['showSuggestionHighlights']&&_0xbbdc2d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x29098b,_0x2e3159,_0x2743cc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4ce92f,_0x3b9c04,_0x4e605d)=>{const {type:_0x5440a7,id:_0x27db1f}=_0x21430b['_splitMarkerName'](_0x3b9c04['markerName']),_0x2af8b1=_0x21430b['getSuggestion'](_0x27db1f),_0x528353=_0x2af8b1['data'];if('formatBlock'!=_0x2af8b1['type']||!_0x528353||'setTableColumnHeader'!=_0x528353['commandName'])return;const _0x380a0c=_0x4e605d['mapper']['markerNameToElements'](_0x3b9c04['markerName']);if(_0x380a0c){for(const _0x1663de of _0x380a0c)_0x4e605d['writer']['removeClass']('ck-suggestion-marker-'+_0x5440a7,_0x1663de),_0x4e605d['writer']['removeClass']('ck-suggestion-marker--active',_0x1663de),_0x4e605d['writer']['removeAttribute']('data-suggestion',_0x1663de),_0x4e605d['mapper']['unbindElementFromMarkerName'](_0x1663de,_0x3b9c04['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fceb5=this['editor'],_0x547964=_0x3fceb5['locale'];function _0x40fa89(_0x10df1f){return{'type':'format','content':o(_0x547964,'*Format:*\x20%0',_0x10df1f)};}_0x3fceb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22abf7=>{if('formatBlock'!=_0x22abf7['type'])return;const {data:_0x10dda2}=_0x22abf7;if(_0x10dda2){if('setTableRowHeader'==_0x10dda2['commandName']){const _0x2d788e=_0x10dda2['commandParams'][0x0]['forceValue'];return _0x40fa89(o(_0x547964,_0x2d788e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x10dda2['commandName']){const _0x43be70=_0x10dda2['commandParams'][0x0]['forceValue'];return _0x40fa89(o(_0x547964,_0x43be70?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x121801=>[_0x121801,null]));class _t extends _0x3b500e{static get['requires'](){return[It];}['afterInit'](){const _0x1b673f=this['editor'];if(!_0x1b673f['plugins']['has']('TableClipboard'))return;const _0x40b123=_0x1b673f['plugins']['get']('TrackChangesEditing'),_0x103cd1=_0x1b673f['plugins']['get']('TableUtils'),_0x25e91d=_0x1b673f['plugins']['get'](It),_0x18a6ef=_0x1b673f['plugins']['get']('TableClipboard');_0x25e91d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1b673f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1b673f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5ccecb=null;_0x1b673f['model']['on']('insertContent',(_0x301c91,_0x1564fa)=>{const [_0x2fa531,_0xfe17d0]=_0x1564fa,_0x293591=_0x1564fa[_0x1564fa['length']-0x1];_0x293591&&_0x293591['forceDefaultExecution']||_0x40b123['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5d06b4,_0x3d8229,_0x175eca,_0x5a687d,_0x329874){if(_0x3d8229&&!_0x3d8229['is']('documentSelection'))return!0x1;const _0xdc0590=_0x329874['getTableIfOnlyTableInContent'](_0x5d06b4,_0x175eca);if(!_0xdc0590||!Re(_0xdc0590,void 0x0,_0x5a687d))return!0x1;const _0x3e337c=_0x5a687d['getSelectionAffectedTableCells'](_0x175eca['document']['selection']);if(!_0x3e337c['length'])return!0x1;const _0x297a7b=_0x3e337c[0x0]['findAncestor']('table'),_0x58565d=_0x5a687d['getRowIndexes'](_0x3e337c),_0x4d0d6b=_0x5a687d['getColumnIndexes'](_0x3e337c),_0x4a13ca={'startRow':_0x58565d['first'],'endRow':_0x58565d['last'],'startColumn':_0x4d0d6b['first'],'endColumn':_0x4d0d6b['last']};return 0x1==_0x3e337c['length']&&(_0x4a13ca['endRow']+=_0x5a687d['getRows'](_0xdc0590)-0x1,_0x4a13ca['endColumn']+=_0x5a687d['getColumns'](_0xdc0590)-0x1),Re(_0x297a7b,_0x4a13ca,_0x5a687d);}(_0x2fa531,_0xfe17d0,_0x1b673f['model'],_0x103cd1,_0x18a6ef)&&(_0x301c91['stop'](),_0x5ccecb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1b673f['model']['change'](()=>{_0x1b673f['model']['insertContent'](_0x1564fa[0x0],_0x1564fa[0x1],_0x1564fa[0x2],{'forceDefaultExecution':!0x0});const _0x204eae=_0xd600d8(),{rowInsertionRanges:_0x915adf,columnInsertionRanges:_0x3203d5,insertionRanges:_0x51c492,deletionRanges:_0x5e8e7d,cells:_0x5613c9}=_0x5ccecb;_0x915adf['length']&&_0x40b123['markMultiRangeInsertion'](_0x915adf,'tablePasteRow',{'tablePasteChainId':_0x204eae}),_0x3203d5['length']&&_0x40b123['markMultiRangeInsertion'](_0x3203d5,'tablePasteColumn',{'tablePasteChainId':_0x204eae}),_0x51c492['length']&&(_0x40b123['markMultiRangeInsertion'](_0x51c492,'tablePaste',{'tablePasteChainId':_0x204eae,'skipNestingCheck':!0x0}),_0x51c492['forEach'](_0x35bea4=>_0x35bea4['detach']?.())),_0x5e8e7d['length']&&(_0x40b123['markMultiRangeDeletion'](_0x5e8e7d,'tablePaste',{'tablePasteChainId':_0x204eae,'skipNestingCheck':!0x0}),_0x5e8e7d['forEach'](_0x5e6218=>_0x5e6218['detach']?.()));const _0x21d27e=_0x40b123['markMultiRangeBlockFormat'](_0x5613c9['map'](({element:_0x634666})=>_0x634666),{'formatGroupId':_0xd600d8()},[],'tablePasteCell',{'tablePasteChainId':_0x204eae});if(_0x21d27e){const _0x4ec7bc=_0x21d27e['getMarkers'](),_0x49ef87=[];for(const {element:_0x4109bc,attributes:_0x3f0713}of _0x5613c9){if(!_0x3f0713)continue;const _0x2e1d53=_0x1b673f['model']['createRangeOn'](_0x4109bc),_0x4388b6=_0x4ec7bc['find'](_0x7a1558=>_0x7a1558['getRange']()['isEqual'](_0x2e1d53));_0x4388b6&&_0x49ef87['push']([_0x4388b6['name'],_0x3f0713]);}_0x49ef87['length']&&_0x21d27e['setAttribute']('markerAttributes',Object['fromEntries'](_0x49ef87));}_0x5ccecb=null;}));},{'priority':_0x3c5031['high']+0xa}),_0x1b673f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2097e8,_0x422ca2)=>{const [_0x5653fc,_0x2c2845,,_0x4e9e61]=_0x422ca2;if(!_0x5ccecb)return;_0x2097e8['stop']();const _0x3de75f=_0x5653fc['cell'],_0x2cf260=_0x2c2845,_0xd04557=ke(_0x3de75f),_0x5034d7=ke(_0x2cf260);_0x2097e8['return']=_0x3de75f;let _0x5247dd=null,_0xf060ea=null;if(_0x5034d7||_0xd04557){if(_0xd04557&&!_0x5034d7){_0x4e9e61['remove'](_0x3de75f['getChild'](0x0));for(const _0x1d2c09 of Array['from'](_0x2cf260['getChildren']()))_0x4e9e61['insert'](_0x1d2c09,_0x3de75f,'end');const _0xe62505=_0x5ccecb['rowInsertionIndexes']['includes'](_0x5653fc['row']),_0x26f0c6=_0x5ccecb['columnInsertionIndexes']['includes'](_0x5653fc['column']);_0xe62505||_0x26f0c6||(_0x5247dd=_0x5e2088['fromRange'](_0x4e9e61['createRangeIn'](_0x3de75f)));}else _0x5034d7&&!_0xd04557&&(_0xf060ea=_0x4e9e61['createRangeIn'](_0x3de75f));}else{const _0x329b1e=_0x4e9e61['createElement']('tableCellSuggestion'),_0x32ecbc=_0x4e9e61['createElement']('tableCellSuggestion');_0x4e9e61['wrap'](_0x4e9e61['createRangeIn'](_0x3de75f),_0x32ecbc),_0x4e9e61['insert'](_0x329b1e,_0x3de75f,0x0);for(const _0x220604 of Array['from'](_0x2cf260['getChildren']()))_0x4e9e61['insert'](_0x220604,_0x329b1e,'end');_0x5247dd=_0x5e2088['fromRange'](_0x4e9e61['createRangeOn'](_0x329b1e)),_0xf060ea=_0x5e2088['fromRange'](_0x4e9e61['createRangeOn'](_0x32ecbc));}const _0x47ba0b=Array['from'](_0x2cf260['getAttributes']())['filter'](([_0x484da7])=>Pe['includes'](_0x484da7));_0x5ccecb['cells']['push']({'element':_0x3de75f,'attributes':_0x47ba0b['length']?Object['fromEntries'](_0x47ba0b):null}),_0x5247dd&&_0x5ccecb['insertionRanges']['push'](_0x5247dd),_0xf060ea&&_0x5ccecb['deletionRanges']['push'](_0xf060ea);},{'priority':'high'}),_0x103cd1['on']('insertColumns',(_0x14eade,_0x5c4cd8)=>{const [_0x12f37a,_0x221fb2={}]=_0x5c4cd8;if(!_0x5ccecb)return;const _0x1bbfcf=_0x221fb2['at']||0x0,_0xff7405=_0x221fb2['columns']||0x1;_0x5ccecb['columnInsertionIndexes']=new Array(_0xff7405)['fill'](_0x1bbfcf)['map']((_0x567cdf,_0x8970a0)=>_0x567cdf+_0x8970a0);for(const {cell:_0x4e5368}of _0x103cd1['createTableWalker'](_0x12f37a,{'startColumn':_0x1bbfcf,'endColumn':_0x1bbfcf+_0xff7405-0x1}))_0x5ccecb['columnInsertionRanges']['push'](_0x1b673f['model']['createRangeOn'](_0x4e5368));},{'priority':'low'}),_0x103cd1['on']('insertRows',(_0x1f93ea,_0x16c74d)=>{const [_0x57c69c,_0x42c6fe={}]=_0x16c74d;if(!_0x5ccecb)return;const _0x14e20f=_0x42c6fe['at']||0x0,_0xb103fc=_0x42c6fe['rows']||0x1;_0x5ccecb['rowInsertionIndexes']=new Array(_0xb103fc)['fill'](_0x14e20f)['map']((_0x448ce3,_0x5723fc)=>_0x448ce3+_0x5723fc);for(const {cell:_0x5a0ed4}of _0x103cd1['createTableWalker'](_0x57c69c,{'startRow':_0x14e20f,'endRow':_0x14e20f+_0xb103fc-0x1}))_0x5ccecb['rowInsertionRanges']['push'](_0x1b673f['model']['createRangeOn'](_0x5a0ed4));},{'priority':'low'}),_0x40b123['descriptionFactory']['registerDescriptionCallback'](_0x5cff03=>{if(_0x5cff03['subType']&&_0x5cff03['subType']['startsWith']('tablePaste'))return _0x5cff03['previous']?{}:{'type':'insertion','content':o(_0x1b673f['locale'],'*Replace\x20table\x20cells*')};});const _0xb96cb6=()=>!0x1;for(const _0x400ba8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x40b123['_suggestionFactory']['registerCustomCallback']('insertion',_0x400ba8,'join',_0xb96cb6),_0x40b123['_suggestionFactory']['registerCustomCallback']('deletion',_0x400ba8,'join',_0xb96cb6),_0x40b123['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x400ba8,'join',_0xb96cb6);_0x40b123['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xb96cb6),_0x40b123['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4d5cf5,_0x142b3f,_0x466500)=>{const _0x1dfd42=_0x4d5cf5['map'](_0x60ace8=>_0x60ace8['getContainedElement']())['filter'](_0x4f14a1=>_0x4f14a1),_0x24d7a9=new Map(_0x1dfd42['map'](_0x1aaae5=>[_0x1aaae5,null]));if(_0x5ccecb){for(const {element:_0xc108c1,attributes:_0x4aebac}of _0x5ccecb['cells'])_0x4aebac&&_0x24d7a9['set'](_0xc108c1,_0x4aebac);}else{if(_0x466500&&_0x466500['markerAttributes'])for(const [_0x32ce11,_0x1e07d6]of Object['entries'](_0x466500['markerAttributes'])){const _0x28c91c=_0x1b673f['model']['markers']['get'](_0x32ce11),_0x29617f=_0x28c91c?_0x28c91c['getRange']()['getContainedElement']():null;_0x29617f&&_0x24d7a9['set'](_0x29617f,_0x1e07d6);}}_0x1b673f['model']['change'](_0x529ea0=>{for(const [_0x3f4b59,_0x413e16]of _0x24d7a9)_0x529ea0['setAttributes']({...we,..._0x413e16},_0x3f4b59);});});const _0x3584ee=(_0x14f0f6,_0xcb8b5c)=>{_0x40b123['_suggestionFactory']['registerCustomCallback'](_0x14f0f6,'tablePaste',_0xcb8b5c,(_0x2fecf5,_0x5277b6,_0xd275a6)=>{_0x1b673f['model']['change'](_0xa7a65e=>{const _0x2fb779=[];for(const _0x33ddd3 of _0x2fecf5){const _0x513cef=_0x33ddd3['start']['nodeAfter'];_0x513cef['is']('element','tableCellSuggestion')&&_0x2fb779['push'](_0x513cef);}_0x40b123['_suggestionFactory']['getSuggestionCallback'](_0x14f0f6,null,_0xcb8b5c)(_0x2fecf5,_0x5277b6,_0xd275a6);for(const _0x35f22d of _0x2fb779)'$graveyard'!=_0x35f22d['root']['rootName']&&_0xa7a65e['unwrap'](_0x35f22d);});});};_0x3584ee('insertion','accept'),_0x3584ee('insertion','discard'),_0x3584ee('deletion','accept'),_0x3584ee('deletion','discard'),_0x40b123['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x575cd1=>{const _0x27ef6e=_0x575cd1['map'](_0x1e7e94=>_0x1e7e94['getContainedElement']()),_0x264ca5=_0x27ef6e[0x0]['findAncestor']('table'),{minRow:_0x206929,maxRow:_0x476e93}=_0x25e91d['_getCoordsForCells'](_0x27ef6e);_0x103cd1['removeRows'](_0x264ca5,{'at':_0x206929,'rows':_0x476e93-_0x206929+0x1});}),_0x40b123['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x10fae2=>{const _0x1c0e71=_0x10fae2['map'](_0x26c99e=>_0x26c99e['getContainedElement']()),_0x594528=_0x1c0e71[0x0]['findAncestor']('table'),{minColumn:_0x10cef3,maxColumn:_0x179370}=_0x25e91d['_getCoordsForCells'](_0x1c0e71);_0x103cd1['removeColumns'](_0x594528,{'at':_0x10cef3,'columns':_0x179370-_0x10cef3+0x1});});const _0x5c246b=(_0x593f04,_0x3fe583)=>{if(!_0x3fe583['subType']||!_0x3fe583['subType']['startsWith']('tablePaste'))return;const _0xf4ec49=_0x3fe583['attributes']['tablePasteChainId'],_0x39132e=_0x40b123['getSuggestions']()['filter'](_0xf159ab=>_0xf159ab['isInContent']&&_0xf159ab['attributes']&&_0xf159ab['attributes']['tablePasteChainId']==_0xf4ec49);_0x39132e['length']&&_0x3fe583['getAllAdjacentSuggestions']()['length']!=_0x39132e['length']&&_0x39132e['reduce']((_0x42c04f,_0xfe3fad)=>(_0x42c04f['next']=_0xfe3fad,_0xfe3fad['previous']=_0x42c04f,_0xfe3fad));};function _0x952758(_0x38bf8c,_0x24d328=!0x0){const {id:_0x5dce20,authorId:_0x96054c}=_0x40b123['_splitMarkerName'](_0x38bf8c['markerName']),_0x242ca8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3d1fdc=_0x40b123['activeMarkers']['includes'](_0x38bf8c['markerName']);return _0x3d1fdc&&_0x242ca8['push']('ck-suggestion-marker--active'),{'classes':_0x242ca8,'attributes':{'data-suggestion':_0x5dce20,'data-author-id':_0x96054c},'priority':_0x3d1fdc&&_0x24d328?0xbc2:0xbb8};}_0x40b123['on']('suggestionLoaded',_0x5c246b,{'priority':'high'}),_0x40b123['on']('suggestionUnloaded',_0x5c246b,{'priority':'high'}),_0x1b673f['model']['document']['registerPostFixer'](()=>{let _0x34f248=!0x1;const _0x290190=Array['from'](_0x1b673f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38c3e5,data:_0x243f9a}of _0x290190){const {group:_0x11ace4,type:_0x220c37,id:_0x32bd5c}=_0x40b123['_splitMarkerName'](_0x38c3e5);if('suggestion'!=_0x11ace4||'deletion'!=_0x220c37||_0x243f9a['oldRange'])continue;if(!_0x40b123['hasSuggestion'](_0x32bd5c))continue;const _0x3adfa1=_0x40b123['getSuggestion'](_0x32bd5c)['getRanges'](),_0x2aec9a=_0x1b673f['plugins']['get']('Users')['me'];for(const _0x59e0fd of _0x40b123['getSuggestions']()){if(!_0x59e0fd['isInContent']||_0x59e0fd['author']!=_0x2aec9a)continue;if('formatBlock'!=_0x59e0fd['type']||'tablePasteCell'!=_0x59e0fd['subType'])continue;if(_0x59e0fd['getRanges']()['every'](_0xe09469=>_0x3adfa1['some'](_0xd65fac=>_0xd65fac['containsRange'](_0xe09469,!0x0)))){for(const _0x2b98d3 of _0x59e0fd['getAllAdjacentSuggestions']())_0x2b98d3['isInContent']&&(_0x2b98d3['discard'](),_0x34f248=!0x0);}}}return _0x34f248;}),_0x1b673f['model']['document']['registerPostFixer'](_0x585d3d=>{const _0x514d51=_0x1b673f['commands']['get']('redo');if(!_0x514d51||!_0x514d51['_createdBatches']['has'](_0x585d3d['batch']))return!0x1;let _0x1d5836=!0x1;const _0x171d5e=_0x1b673f['plugins']['get']('Users')['me'],_0x5c4638=_0x1b673f['model']['document']['differ']['getChanges'](),_0x74b484=Array['from'](_0x1b673f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2d5d7b,data:_0x185fb3})=>{const {group:_0x692c03,subType:_0x1b622f,authorId:_0x2989ec}=_0x40b123['_splitMarkerName'](_0x2d5d7b);return'suggestion'==_0x692c03&&'tablePaste'==_0x1b622f&&_0x2989ec==_0x171d5e['id']&&!_0x185fb3['oldRange'];});for(const _0x1e40de of _0x5c4638){if('insert'!=_0x1e40de['type']||'tableCellSuggestion'!=_0x1e40de['name']||0x1!=_0x1e40de['length'])continue;const _0x57e068=_0x585d3d['createRange'](_0x1e40de['position'],_0x1e40de['position']['getShiftedBy'](0x1));if(!_0x74b484['find'](({data:_0x3ea67d})=>_0x3ea67d['newRange']['isEqual'](_0x57e068))){for(const {name:_0x44a243,data:_0x18cf62}of _0x74b484)if(_0x57e068['containsRange'](_0x18cf62['newRange'])){_0x585d3d['updateMarker'](_0x44a243,{'range':_0x57e068}),_0x1d5836=!0x0;break;}}}return _0x1d5836;}),_0x1b673f['model']['document']['registerPostFixer'](_0x3c29a9=>{let _0x11e4e7=!0x1;const _0x5cde3b=_0x1b673f['plugins']['get']('Users')['me'],_0x37f1da=_0x40b123['getSuggestions']()['filter'](_0x32dc59=>_0x32dc59['isInContent']&&_0x32dc59['author']==_0x5cde3b),_0x325a64=new Set(),_0x45556d=new Set();for(const _0x241d17 of _0x37f1da)if('tablePaste'==_0x241d17['subType'])for(const _0x31b1b3 of _0x241d17['getMarkers']()){const _0x4d2cd2=_0x31b1b3['getRange']()['getContainedElement']();if(_0x4d2cd2){if(_0x4d2cd2['is']('element','tableCellSuggestion')&&ke(_0x4d2cd2)){_0x241d17['removeMarker'](_0x31b1b3['name']),_0x325a64['add'](_0x4d2cd2),_0x11e4e7=!0x0;const _0x3eb1c5=_0x4d2cd2['nextSibling'],_0x1eca5e=_0x4d2cd2['previousSibling'],_0x281ffa=_0x3eb1c5&&_0x3eb1c5['is']('element','tableCellSuggestion'),_0x2224b0=_0x1eca5e&&_0x1eca5e['is']('element','tableCellSuggestion');_0x281ffa&&!_0x325a64['has'](_0x3eb1c5)&&_0x45556d['add'](_0x3eb1c5),_0x2224b0&&!_0x325a64['has'](_0x1eca5e)&&_0x45556d['add'](_0x1eca5e);}else _0x4d2cd2['is']('element','paragraph')&&_0x4d2cd2['isEmpty']&&(_0x241d17['removeMarker'](_0x31b1b3['name']),_0x11e4e7=!0x0);}}else{if('tablePasteCell'==_0x241d17['subType']){if(!_0x241d17['attributes']||!_0x241d17['attributes']['tablePasteChainId'])continue;const _0x4b32d2=_0x241d17['attributes']['markerAttributes'];if(_0x4b32d2&&Object['keys'](_0x4b32d2)['length'])continue;const _0x2fbbcf=_0x241d17['attributes']['tablePasteChainId'];let _0x2ec213=!0x0,_0x1995e2=!0x0;for(const _0x489aa1 of _0x37f1da)if(_0x489aa1['subType']&&_0x489aa1['subType']['startsWith']('tablePaste')){if(!_0x489aa1['attributes']['tablePasteChainId']){_0x1995e2=!0x1;break;}if(_0x489aa1['id']!=_0x241d17['id']&&_0x489aa1['attributes']['tablePasteChainId']==_0x2fbbcf){_0x2ec213=!0x1;break;}}_0x1995e2&&_0x2ec213&&(_0x241d17['removeMarkers'](),_0x11e4e7=!0x0);}}for(const _0x12f6ff of _0x325a64)_0x3c29a9['remove'](_0x12f6ff);for(const _0x1cdde4 of _0x45556d)_0x3c29a9['unwrap'](_0x1cdde4);return _0x11e4e7;}),_0x1b673f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x67a48c=>_0x952758(_0x67a48c),'converterPriority':'high'}),_0x1b673f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x450b28,_0x25bf16)=>_0x25bf16['options']['showSuggestionHighlights']?_0x952758(_0x450b28,!0x1):null,'converterPriority':'high'});const _0x165ad0=_0x1b673f['editing']['view'];this['listenTo'](_0x165ad0['document'],'clipboardOutput',(_0x4f2c0e,_0x40c078)=>{const _0x3eb353=[];for(const _0x229262 of _0x165ad0['createRangeIn'](_0x40c078['content'])['getItems']())_0x229262['is']('element','suggestion-td')&&_0x3eb353['push'](_0x229262);_0x165ad0['change'](_0x26f8cb=>{for(const _0x207de5 of _0x3eb353)_0x26f8cb['move'](_0x26f8cb['createRangeIn'](_0x207de5),_0x26f8cb['createPositionBefore'](_0x207de5)),_0x26f8cb['remove'](_0x207de5);});});}}function ke(_0x48967d){if(_0x48967d['isEmpty'])return!0x0;const _0x33385b=_0x48967d['getChild'](0x0);return _0x33385b['is']('element','paragraph')&&_0x33385b['isEmpty'];}function Re(_0x11e356,_0x186214={},_0x21eabb){for(const {isAnchor:_0x253824,cellHeight:_0x2e8552,cellWidth:_0x3358fd}of _0x21eabb['createTableWalker'](_0x11e356,{'includeAllSlots':!0x0,..._0x186214}))if(!_0x253824||0x1!=_0x2e8552||0x1!=_0x3358fd)return!0x1;return!0x0;}class Nt extends _0x3b500e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x27f8b4=this['editor']['plugins']['get']('TrackChangesEditing');_0x27f8b4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x27f8b4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x27f8b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27f8b4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x27f8b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x27f8b4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x12a355,_0x35608c){const _0x444563=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b8900=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x43956f=_0x35608c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7a4ea0=_0x1b8900['getColumnGroupElement'](_0x43956f);let _0x180cb0=_0x7a4ea0?_0x1b8900['getTableColumnsWidths'](_0x7a4ea0):null,_0x4a5d09=_0x43956f['getAttribute']('tableWidth')||null;const _0xd59ec2=_0x35608c['tableWidth']||_0x4a5d09,_0x3d5aa3=_0x35608c['columnWidths']||_0x180cb0,_0x395642=this['editor']['plugins']['get']('Users')['me'];for(const _0x244eda of _0x444563['getSuggestions']()){const _0x161576=_0x244eda['getContainedElement']();if('resizeTable'===_0x244eda['subType']&&_0x161576===_0x43956f){_0x244eda['author']!==_0x395642&&_0x244eda['discard']();const _0xe4177f=_0x244eda['data']['commandParams'];_0x4a5d09=_0xe4177f[0x0]['tableWidth'],_0x180cb0=_0xe4177f[0x0]['columnWidths'];break;}}_0x12a355({'table':_0x43956f,'tableWidth':_0xd59ec2,'columnWidths':_0x3d5aa3}),_0x444563['markBlockFormat'](_0x43956f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4a5d09,'columnWidths':_0x180cb0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xcccc2){if('formatBlock'!=_0xcccc2['type']&&'formatInline'!=_0xcccc2['type'])return;const {data:_0x27ca7b}=_0xcccc2;if(_0x27ca7b&&'resizeTable'===_0x27ca7b['formatGroupId']){const _0x5f26e='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5f26e)};}}}class Dt extends _0x3b500e{['afterInit'](){const _0x68d239=this['editor'];_0x68d239['plugins']['has']('Template')&&_0x68d239['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3b500e{['afterInit'](){const _0x2e3117=this['editor'];if(!_0x2e3117['commands']['get']('insertTableOfContents'))return;_0x2e3117['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x81b81b=_0x2e3117['plugins']['get']('TrackChangesEditing'),_0x4bee0f=_0x2e3117['locale'];_0x81b81b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4c9072=>o(_0x4bee0f,'ELEMENT_TABLE_OF_CONTENTS',_0x4c9072));}}class $t extends _0x3b500e{['afterInit'](){const _0x2a1fd2=this['editor'];if(!_0x2a1fd2['plugins']['has']('Title'))return;const _0x386398=_0x2a1fd2['plugins']['get']('TrackChangesEditing');_0x386398['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2a1fd2['locale'],'ELEMENT_TITLE')),_0x2a1fd2['model']['document']['registerPostFixer'](_0x587213=>{let _0x49adcb=!0x1;const _0x413e5e=Array['from'](_0x2a1fd2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e93b2,data:_0x30f4db}of _0x413e5e){const {group:_0x364130}=_0x386398['_splitMarkerName'](_0x5e93b2);if('suggestion'!==_0x364130||!_0x30f4db['newRange'])continue;const _0x42d732=_0x30f4db['newRange'],_0x15f338=_0x42d732['end']['nodeBefore'];if(!_0x15f338||!_0x15f338['is']('element','title-content'))continue;if(!_0x42d732['start']['isTouching'](_0x42d732['end']))continue;const _0x41d6e5=_0x2a1fd2['model']['schema']['getNearestSelectionRange'](_0x42d732['end'],'forward');if(_0x41d6e5&&_0x41d6e5['isCollapsed']){const _0x3fb85c=_0x587213['createRange'](_0x42d732['start'],_0x41d6e5['start']);_0x3fb85c['isEqual'](_0x42d732)||(_0x587213['updateMarker'](_0x5e93b2,{'range':_0x3fb85c}),_0x49adcb=!0x0);}_0x49adcb||(_0x587213['removeMarker'](_0x5e93b2),_0x49adcb=!0x0);}return _0x49adcb;});}}class Bt extends _0x3b500e{['afterInit'](){const _0x32c9d6=this['editor'],_0x3750a0=_0x32c9d6['plugins']['get']('TrackChangesEditing');_0x32c9d6['plugins']['has']('UndoEditing')&&(_0x3750a0['enableCommand']('undo'),_0x3750a0['enableCommand']('redo'));}}class xt extends _0x3b500e{static get['requires'](){return[It];}['afterInit'](){const _0x5648bb=this['editor'];if(!_0x5648bb['plugins']['has']('TableCaptionEditing'))return;_0x5648bb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x3b500e{['tableProperties'];['tableCellProperties'];constructor(_0x2e2b14){super(_0x2e2b14),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x892560=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3f80cd of this['tableProperties'])_0x892560['enableCommand'](_0x3f80cd,(_0x502f9c,_0x430485)=>{const _0x969220=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3f80cd,[_0x969220],this['tableProperties'],'tableProperties',_0x502f9c,_0x430485);});_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x892560['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x50f0bc,_0x4d152b)=>this['handleDiscardAction'](this['tableProperties'],_0x50f0bc,_0x4d152b)),_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2deb82 of this['tableCellProperties'])_0x892560['enableCommand'](_0x2deb82,(_0x597cb6,_0x4e743f)=>{const _0x57c4ea=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2deb82,_0x57c4ea,this['tableCellProperties'],'tableCellProperties',_0x597cb6,_0x4e743f);});_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x892560['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x28a0e5,_0x3210d3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x28a0e5,_0x3210d3)),_0x892560['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x892560['descriptionFactory']['registerDescriptionCallback'](_0x5e6167=>this['handleSuggestionDescription'](_0x5e6167));}['_handlePropertyChange'](_0x1ab4cd,_0x42757c,_0x4aa957,_0xe09f49,_0x3090ba,_0x380cdd){const _0x3ff1a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x380cdd['batch'],()=>{for(const _0x5ba1e6 of _0x42757c){if(this['_getSuggestion'](_0x5ba1e6,_0xe09f49))_0x3090ba(_0x380cdd);else{const _0x596842={};for(const _0x345767 of _0x4aa957){const _0x4460b1=_0x5ba1e6['getAttribute'](_0x345767);void 0x0!==_0x4460b1&&(_0x596842[_0x345767]=_0x4460b1);}_0x3090ba(_0x380cdd),_0x3ff1a2['markBlockFormat'](_0x5ba1e6,{'commandParams':[_0x596842]},[],_0xe09f49);}}});}['handleDiscardAction'](_0x1b1574,_0x15998a,_0x5053a5){const _0x2412a3=_0x15998a[0x0]['start']['nodeAfter'],_0x279678=_0x5053a5['commandParams'][0x0];this['editor']['model']['change'](_0x36ea35=>{for(const _0x1e5113 of _0x1b1574)void 0x0!==_0x279678[_0x1e5113]?_0x36ea35['setAttribute'](_0x1e5113,_0x279678[_0x1e5113],_0x2412a3):_0x36ea35['removeAttribute'](_0x1e5113,_0x2412a3);});}['handleSuggestionDescription'](_0x2d61fc){if(_0x2d61fc['data'])switch(_0x2d61fc['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'](_0x467dea,_0x2ed1eb){const _0x28dc1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3664b3 of _0x28dc1['getSuggestions']({'skipNotAttached':!0x0})){const _0x26a8d4=_0x3664b3['getContainedElement']();if(_0x3664b3['subType']===_0x2ed1eb&&_0x26a8d4===_0x467dea)return _0x3664b3;}return null;}}const m='$elementName';class p extends _0x3b500e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x35af3d,_0x44c7e8,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x46783a){function _0x4e7d3d(_0x5eb701){return _0x5eb701['map'](_0x55a9ad=>String['fromCharCode'](_0x55a9ad))['join']('');}super(_0x46783a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5a474d,_0x257ffd,_0x5a47da,_0x150b6b)=>{this['_model']['change'](()=>{for(const _0xa35050 of[..._0x150b6b,..._0x5a47da])this['_model']['markers']['has'](_0xa35050)&&_0x46783a['editing']['reconvertMarker'](_0xa35050);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x46783a['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(),_0x46783a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x46783a['config']['get']('trackChanges.trackFormatChanges'),_0x46783a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x46783a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x46783a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4e7d3d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4e7d3d([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x32]);}['init'](){const _0x23d9ec=this['editor'],_0x2b8101=(_0x11ad08,_0x4d9eca)=>{if('attribute'!=_0x11ad08)return'ck-suggestion-marker-'+_0x11ad08;const _0x3bf745=_0x4d9eca['split']('|')[0x0];return this['_isBlockAttribute'](_0x3bf745)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23d9ec['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5a63b3=>{const {id:_0x49bb84,authorId:_0x3032da,type:_0x504df3,subType:_0x53bbe5}=this['_splitMarkerName'](_0x5a63b3['markerName']),_0x160fbd=['ck-suggestion-marker',_0x2b8101(_0x504df3,_0x53bbe5)];let _0x3c0a9b=0xbb8;return this['activeMarkers']['includes'](_0x5a63b3['markerName'])&&(_0x160fbd['push']('ck-suggestion-marker--active'),_0x3c0a9b=0xbc2),'deletion'==_0x504df3&&(_0x3c0a9b+=0x5),{'classes':_0x160fbd,'attributes':{'data-suggestion':_0x49bb84,'data-author-id':_0x3032da},'priority':_0x3c0a9b};}}),_0x23d9ec['conversion']['for']('dataDowncast')['add'](_0x596330=>{_0x596330['on']('addMarker:suggestion',(_0x89a7fd,_0x3e6548,_0x45b180)=>{if(!_0x45b180['options']['showSuggestionHighlights'])return;const _0x5e38be=_0x3e6548['item'];if(!_0x5e38be)return;const _0x31b8b4=_0x45b180['mapper']['toViewElement'](_0x5e38be);_0x23d9ec['model']['schema']['isObject'](_0x5e38be)&&_0x31b8b4&&!_0x31b8b4['getCustomProperty']('widget')&&_0x31b8b4['is']('containerElement')&&_0xd0a2a2(_0x31b8b4,_0x45b180['writer']);},{'priority':'high'});}),_0x23d9ec['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x6fcae,_0x21697c)=>{if(!_0x21697c['options']['showSuggestionHighlights'])return null;const {type:_0x4efce9,subType:_0x1a3105}=this['_splitMarkerName'](_0x6fcae['markerName']);return{'classes':['ck-suggestion-marker',_0x2b8101(_0x4efce9,_0x1a3105)],'priority':0xbb8};}});const _0x46bdaa=({showActiveMarkers:_0x3e5b00=!0x0,isAttributeSuggestion:_0x550ef3=!0x1}={})=>(_0x151459,_0x847ffa,_0x17dae8)=>{if(!_0x847ffa['item'])return;const {id:_0x228e4c,authorId:_0x2aad0a}=this['_splitMarkerName'](_0x847ffa['markerName']);if(_0x550ef3){const _0x116178=this['_suggestions']['get'](_0x228e4c),_0x50b448=this['_getAttributeKey'](_0x116178);if(!this['_isBlockAttribute'](_0x50b448))return;}if(_0x847ffa['item']['is']('selection'))return void _0x17dae8['consumable']['consume'](_0x847ffa['item'],_0x151459['name']);const _0x2f3cc5=_0x17dae8['mapper']['toViewElement'](_0x847ffa['item']);if(_0x847ffa['item']['is']('element')&&_0x23d9ec['model']['schema']['isBlock'](_0x847ffa['item'])&&!_0x2f3cc5['getCustomProperty']('addHighlight')){_0x17dae8['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2f3cc5),_0x17dae8['writer']['setAttribute']('data-suggestion',_0x228e4c,_0x2f3cc5),_0x17dae8['writer']['setAttribute']('data-author-id',_0x2aad0a,_0x2f3cc5),_0x17dae8['mapper']['bindElementToMarker'](_0x2f3cc5,_0x847ffa['markerName']),_0x3e5b00&&(this['activeMarkers']['includes'](_0x847ffa['markerName'])?_0x17dae8['writer']['addClass']('ck-suggestion-marker--active',_0x2f3cc5):_0x17dae8['writer']['removeClass']('ck-suggestion-marker--active',_0x2f3cc5));for(const _0x11d976 of _0x23d9ec['model']['createRangeIn'](_0x847ffa['item'])['getItems']())_0x17dae8['consumable']['consume'](_0x11d976,_0x151459['name']);_0x17dae8['consumable']['consume'](_0x847ffa['item'],_0x151459['name']);}};_0x23d9ec['conversion']['for']('dataDowncast')['add'](_0x36e8a3=>{_0x36e8a3['on']('addMarker:suggestion:formatBlock',(_0x27f4cc,_0x3ac3f9,_0x40e871)=>{_0x40e871['options']['showSuggestionHighlights']&&_0x46bdaa({'showActiveMarkers':!0x1})(_0x27f4cc,_0x3ac3f9,_0x40e871);},{'priority':'highest'});}),_0x23d9ec['conversion']['for']('dataDowncast')['add'](_0x1d9ed0=>{_0x1d9ed0['on']('addMarker:suggestion:attribute',(_0x39eaa6,_0x1e5955,_0x3e0495)=>{_0x3e0495['options']['showSuggestionHighlights']&&_0x46bdaa({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x39eaa6,_0x1e5955,_0x3e0495);},{'priority':'highest'});}),_0x23d9ec['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x44f736,_0x1b4de8)=>_0x1b4de8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x44f736['substr'](0xb)}}),_0x23d9ec['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2c6cc1,{writer:_0x50312e})=>{let _0x52ba25='suggestion:'+_0x2c6cc1['getAttribute']('suggestion-type')+':'+_0x2c6cc1['getAttribute']('id');return _0x2c6cc1['getAttribute']('marker-count')&&(_0x52ba25+=':'+_0x2c6cc1['getAttribute']('marker-count')),_0x50312e['createElement']('$marker',{'data-name':_0x52ba25});}}),_0x23d9ec['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23d9ec['conversion']['for']('editingDowncast')['add'](_0xecad69=>{_0xecad69['on']('addMarker:suggestion:formatBlock',_0x46bdaa(),{'priority':'high'});}),_0x23d9ec['conversion']['for']('editingDowncast')['add'](_0x5a2f36=>{_0x5a2f36['on']('addMarker:suggestion:attribute',_0x46bdaa({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23d9ec['conversion']['for']('editingDowncast')['add'](_0x47bf74=>{_0x47bf74['on']('removeMarker:suggestion:formatBlock',(_0x29d51c,_0x102653,_0x28a537)=>{const _0x591190=_0x28a537['mapper']['markerNameToElements'](_0x102653['markerName']);if(_0x591190){for(const _0x1a0252 of _0x591190)_0x1a0252['getCustomProperty']('addHighlight')||(_0x28a537['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a0252),_0x28a537['writer']['removeAttribute']('data-suggestion',_0x1a0252),_0x28a537['writer']['removeAttribute']('data-author-id',_0x1a0252),_0x28a537['mapper']['unbindElementFromMarkerName'](_0x1a0252,_0x102653['markerName']));}},{'priority':'high'});}),_0x23d9ec['conversion']['for']('editingDowncast')['add'](_0x9520ac=>{_0x9520ac['on']('removeMarker:suggestion:attribute',(_0x5dfc42,_0x2791c2,_0x1542db)=>{const _0x10b5c3=_0x1542db['mapper']['markerNameToElements'](_0x2791c2['markerName']);if(!_0x10b5c3)return;const {id:_0x4fec94}=this['_splitMarkerName'](_0x2791c2['markerName']),_0x37fdf3=this['_suggestions']['get'](_0x4fec94),_0x3b523c=this['_getAttributeKey'](_0x37fdf3);if(this['_isBlockAttribute'](_0x3b523c)){for(const _0x4f1d0f of _0x10b5c3)_0x4f1d0f['getCustomProperty']('addHighlight')||(_0x1542db['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4f1d0f),_0x1542db['writer']['removeAttribute']('data-suggestion',_0x4f1d0f),_0x1542db['writer']['removeAttribute']('data-author-id',_0x4f1d0f),_0x1542db['mapper']['unbindElementFromMarkerName'](_0x4f1d0f,_0x2791c2['markerName']));}},{'priority':'high'});}),_0x23d9ec['model']['document']['registerPostFixer'](_0x1e7432=>{let _0x44a2e1=!0x1;const _0x3154c7=Array['from'](_0x23d9ec['model']['document']['differ']['getChangedMarkers']()),_0xfb85d9=new Set();for(const {name:_0xecfad1,data:_0x30499c}of _0x3154c7){const {group:_0x52b3b5,type:_0x2400b7,subType:_0x11c65e,id:_0x2446e2}=this['_splitMarkerName'](_0xecfad1);if('suggestion'!==_0x52b3b5)continue;const _0x190742=this['_suggestions']['get'](_0x2446e2);if(null!=_0x30499c['newRange']){'formatInline'==_0x2400b7&&(_0x44a2e1=_0x44a2e1||Ut(_0x30499c['newRange'],_0xecfad1,_0x1e7432,_0x23d9ec['model']['schema']));const _0x5b9221='attribute'==_0x2400b7&&this['_isBlockAttribute'](_0x11c65e['split']('|')[0x0]);if(_0x30499c['newRange']['isCollapsed']||'$graveyard'==_0x30499c['newRange']['root']['rootName']||'formatBlock'==_0x2400b7&&!Ft(_0x30499c['newRange'])||_0x5b9221&&!Ft(_0x30499c['newRange'])||'deletion'==_0x2400b7&&!(!Vt(_0x673592=_0x30499c['newRange'])&&!function(_0x19933c){return _0x19933c['start']['parent']==_0x19933c['end']['nodeBefore']&&_0x19933c['start']['isAtEnd'];}(_0x673592)))_0x1e7432['removeMarker'](_0xecfad1),_0x44a2e1=!0x0;else{if(!_0x190742||!_0x190742['isInContent'])continue;if(_0x30499c['newRange']&&_0x30499c['oldRange']&&_0x30499c['newRange']['isEqual'](_0x30499c['oldRange']))continue;_0xfb85d9['add'](_0x190742);}}}var _0x673592;return _0xfb85d9['size']>0x0&&(_0x44a2e1=!!this['_joinWithAdjacentSuggestions'](_0xfb85d9)||_0x44a2e1),_0x44a2e1;}),_0x23d9ec['model']['document']['registerPostFixer'](_0x924631=>{let _0x4f1003=!0x1;for(const _0x16bd9f of _0x23d9ec['model']['document']['differ']['getChanges']())if('insert'==_0x16bd9f['type'])for(const _0x7db583 of this['_suggestions']['values']()){if(_0x7db583['isMultiRange']||!_0x7db583['isInContent'])continue;const _0x2070fd='formatBlock'==_0x7db583['type'],_0xda0d85=this['_getAttributeKey'](_0x7db583),_0x5538a4=_0xda0d85&&this['_isBlockAttribute'](_0xda0d85);if(!_0x2070fd&&!_0x5538a4)continue;const _0x52b241=_0x7db583['getFirstRange']();if(_0x52b241['start']['parent']!=_0x52b241['end']['parent']&&!_0x52b241['end']['isAtEnd']){const _0x496cd1=_0x23d9ec['model']['createPositionAt'](_0x52b241['start']['nodeAfter'],'end'),_0x4edff4=_0x23d9ec['model']['createRange'](_0x52b241['start'],_0x496cd1);_0x924631['updateMarker'](_0x7db583['getFirstMarker'](),{'range':_0x4edff4}),_0x4f1003=!0x0;}}return _0x4f1003;}),_0x23d9ec['model']['document']['registerPostFixer'](_0x443919=>this['_processAttributeChanges'](_0x443919)),_0x23d9ec['model']['document']['registerPostFixer'](_0x146dac=>!_0x146dac['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x146dac)),_0x23d9ec['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23d9ec['model']['document']['on']('change:data',(_0x4205fd,_0x5f3063)=>{if(!_0x5f3063['isLocal']||_0x5f3063['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f6d75=_0x23d9ec['model']['document']['differ']['getChanges']();if(0x0==_0x1f6d75['length'])return;const _0xd870e3=[],_0x5c000b=_0x1f6d75['filter'](_0x468c45=>'attribute'==_0x468c45['type']),_0x3ded2a=_0x1f6d75['filter'](_0x4718ea=>'insert'==_0x4718ea['type']&&'$text'!=_0x4718ea['name']);for(const _0x3079c5 of _0x5c000b)this['_isRegisteredAttribute'](_0x3079c5['attributeKey'])&&_0xd870e3['push']({'key':_0x3079c5['attributeKey'],'newValue':_0x3079c5['attributeNewValue'],'oldValue':_0x3079c5['attributeOldValue'],'range':Pt(_0x3079c5['range'],_0x23d9ec['model'])});for(const _0x308565 of _0x3ded2a){if('rename'!=_0x308565['action']&&'refresh'!=_0x308565['action'])continue;const _0x1acca5=Lt(_0x308565['position']['nodeAfter'],_0x23d9ec['model']),_0xac2d3b=_0x308565['before'];'rename'==_0x308565['action']&&_0xd870e3['push']({'key':m,'newValue':_0x308565['name'],'oldValue':_0xac2d3b['name'],'range':_0x1acca5});for(const [_0x587eb4,_0x20d19d]of _0xac2d3b['attributes']){if(!this['_isRegisteredAttribute'](_0x587eb4))continue;const _0x5de186=_0x308565['attributes']['get'](_0x587eb4);_0x20d19d!==_0x5de186&&_0xd870e3['push']({'key':_0x587eb4,'newValue':_0x5de186,'oldValue':_0x20d19d,'range':_0x1acca5});}for(const [_0x3dda31,_0x61e797]of _0x308565['attributes'])this['_isRegisteredAttribute'](_0x3dda31)&&(_0xac2d3b['attributes']['has'](_0x3dda31)||_0xd870e3['push']({'key':_0x3dda31,'newValue':_0x61e797,'oldValue':null,'range':_0x1acca5}));}0x0!=_0xd870e3['length']&&_0x23d9ec['model']['enqueueChange'](_0x5f3063,_0x5625d0=>{const _0x45baa2=_0xd600d8();for(const {range:_0x4205d7,key:_0x5c4993,oldValue:_0x1fead3,newValue:_0x1bb912}of _0xd870e3)this['markAttributeChange'](_0x4205d7,_0x5c4993,_0x1fead3,_0x1bb912,{'groupId':_0x45baa2});this['_reduceExistingSuggestions'](_0x5625d0,_0xd870e3);});},{'priority':'lowest'}),_0x23d9ec['model']['markers']['on']('update:suggestion',(_0x28214e,_0x4e1b8d,_0x268896)=>{if(null==_0x268896){const {id:_0x173143}=this['_splitMarkerName'](_0x4e1b8d['name']),_0x35db56=this['_suggestions']['get'](_0x173143);_0x35db56&&_0x35db56['addMarkerName'](_0x4e1b8d['name']);}}),_0x23d9ec['model']['document']['on']('change:data',()=>{const _0x3bec88=Array['from'](_0x23d9ec['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5d3362=>'suggestion'===this['_splitMarkerName'](_0x5d3362['name'])['group']);if(0x0===_0x3bec88['length'])return;_0x3bec88['sort']((_0x189ea7,_0x19b305)=>{const _0xe04c2d=_0x189ea7['data']['oldRange'],_0x225db1=_0x19b305['data']['oldRange'];return null===_0xe04c2d&&null===_0x225db1?0x0:null===_0xe04c2d&&null!==_0x225db1?-0x1:null!==_0xe04c2d&&null===_0x225db1?0x1:_0xe04c2d['start']['isBefore'](_0x225db1['start'])?-0x1:0x1;});const _0x1350b3=new Set(),_0x3aec87=new Set();for(const {name:_0x21115b,data:_0xd2f864}of _0x3bec88){const {id:_0x26b31e}=this['_splitMarkerName'](_0x21115b);if(null===_0xd2f864['oldRange']){const _0x43695e=this['_handleNewSuggestionMarker'](_0x21115b);_0x3aec87['add'](_0x43695e);}else{const _0x5eb0e1=this['_suggestions']['get'](_0x26b31e);null!==_0xd2f864['newRange']||_0x5eb0e1['isInContent']?(_0x1350b3['add'](_0x5eb0e1['head']),_0x3aec87['add'](_0x5eb0e1)):this['_removeSuggestion'](_0x5eb0e1);}}_0x3aec87['size']>0x0&&this['_refreshSuggestionsChain'](_0x3aec87);for(const _0x3faf4a of _0x1350b3)this['fire']('suggestionChanged',_0x3faf4a);}),_0x23d9ec['model']['on']('applyOperation',(_0x4e0e87,_0x6bfd5a)=>{const _0x21fef8=_0x6bfd5a[0x0];if(!this['_suggestions']['size'])return;if(!_0x21fef8['isDocumentOperation'])return;if(_0x21fef8['batch']['isUndo']||!_0x21fef8['batch']['isLocal'])return;let _0x3c4912,_0x1a486d;switch(_0x21fef8['type']){case'insert':_0x3c4912=_0x23d9ec['model']['createPositionAt'](_0x21fef8['position']),_0x1a486d=_0x3c4912['getShiftedBy'](_0x21fef8['howMany']);break;case'split':_0x3c4912=_0x23d9ec['model']['createPositionAt'](_0x21fef8['splitPosition']),_0x1a486d=_0x23d9ec['model']['createPositionAt'](_0x21fef8['moveTargetPosition']);break;case'move':_0x3c4912=_0x23d9ec['model']['createPositionAt'](_0x21fef8['targetPosition']),_0x1a486d=_0x3c4912['getShiftedBy'](_0x21fef8['howMany']);break;default:return;}const _0x52f955=_0x23d9ec['model']['createRange'](_0x3c4912,_0x1a486d);_0x23d9ec['model']['change'](()=>{for(const {suggestion:_0xf82c28,meta:_0x38aef6}of this['_findSuggestions'](_0x52f955)){if(_0xf82c28['isMultiRange'])continue;if('formatInline'==_0xf82c28['type'])continue;const _0x3e91bb=this['_getAttributeKey'](_0xf82c28);if(_0x3e91bb&&this['_isBlockAttribute'](_0x3e91bb)&&'split'!=_0x21fef8['type'])continue;const _0x27a23a=_0xf82c28['data']&&_0xf82c28['data']['multipleBlocks'];('formatBlock'!=_0xf82c28['type']||'split'==_0x21fef8['type']&&!_0x27a23a)&&(_0x38aef6['containsRangeInObject']||'insertion'==_0xf82c28['type']&&_0x38aef6['isOwn']||_0xf82c28['getFirstRange']()['containsRange'](_0x52f955)&&this['_breakSuggestionMarker'](_0xf82c28,_0x3c4912,_0x1a486d));}});},{'priority':'lowest'}),_0x23d9ec['model']['on']('deleteContent',(_0x25f4e4,_0x233e16)=>{const _0x543adf=_0x233e16[0x0],_0x5e9e7d=_0x233e16[0x1];if(_0x5e9e7d&&_0x5e9e7d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x543adf['isCollapsed'])return;const _0x494f88=_0x23d9ec['model']['schema'],{start:_0x2414d5,end:_0x49fd2d}=_0x543adf['getFirstRange'](),_0x3023a1=_0x2414d5['nodeAfter']&&_0x494f88['isLimit'](_0x2414d5['nodeAfter'])?null:_0x494f88['getNearestSelectionRange'](_0x2414d5,'forward'),_0x14d3c4=_0x49fd2d['nodeBefore']&&_0x494f88['isLimit'](_0x49fd2d['nodeBefore'])?null:_0x494f88['getNearestSelectionRange'](_0x49fd2d,'backward'),_0x4a290a=_0x23d9ec['model']['createRange'](_0x3023a1?_0x3023a1['start']:_0x2414d5,_0x14d3c4?_0x14d3c4['end']:_0x49fd2d);_0x23d9ec['model']['change'](_0x4c1ad8=>{this['markDeletion'](_0x4a290a);const _0x49cfb5=_0x23d9ec['model']['schema']['getNearestSelectionRange'](_0x4a290a['start']);_0x543adf['is']('documentSelection')?_0x4c1ad8['setSelection'](_0x49cfb5):_0x543adf['setTo'](_0x49cfb5);}),_0x25f4e4['stop']();},{'priority':_0x3c5031['normal']+0xa}),_0x23d9ec['model']['on']('insertContent',(_0x501dc7,_0x2ecd17)=>{const _0x55dec7=_0x2ecd17[_0x2ecd17['length']-0x1];_0x55dec7&&_0x55dec7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23d9ec['model']['change'](()=>{let _0x36daff=_0x23d9ec['model']['insertContent'](_0x2ecd17[0x0],_0x2ecd17[0x1],_0x2ecd17[0x2],{'forceDefaultExecution':!0x0});if(!_0x36daff)return;_0x501dc7['return']=_0x36daff['clone']();const _0xa309c0=_0x36daff['end']['nodeBefore'],_0x219219=_0x23d9ec['model']['schema'];_0xa309c0&&_0x219219['isBlock'](_0xa309c0)&&!_0x219219['isObject'](_0xa309c0)&&(_0x36daff=_0x23d9ec['model']['createRange'](_0x36daff['start'],_0x23d9ec['model']['createPositionAt'](_0xa309c0,'end'))),this['markInsertion'](_0x36daff);}),_0x501dc7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x441230=new x(_0x23d9ec,this['_suggestions']);_0x23d9ec['commands']['add']('acceptSuggestion',_0x441230),this['enableCommand']('acceptSuggestion');const _0x594f60=new R(_0x23d9ec,this['_suggestions']);_0x23d9ec['commands']['add']('discardSuggestion',_0x594f60),this['enableCommand']('discardSuggestion'),_0x23d9ec['commands']['add']('acceptAllSuggestions',new E(_0x23d9ec,_0x441230,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23d9ec['commands']['add']('discardAllSuggestions',new E(_0x23d9ec,_0x594f60,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23d9ec['commands']['add']('acceptSelectedSuggestions',new O(_0x23d9ec,_0x441230,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23d9ec['commands']['add']('discardSelectedSuggestions',new O(_0x23d9ec,_0x594f60,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x321dfc=_0x23d9ec['plugins']['get']('CommentsRepository');this['listenTo'](_0x321dfc,'addComment',(_0x3ca12f,{threadId:_0x5cfb4f})=>{const _0x227732=this['_suggestions']['get'](_0x5cfb4f);_0x227732&&_0x227732['commentThread']&&0x1===_0x227732['commentThread']['length']&&this['_updateSuggestionData'](_0x5cfb4f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x321dfc,'removeComment',(_0x3a305d,{threadId:_0x55c106})=>{const _0x4ffc12=this['_suggestions']['get'](_0x55c106);_0x4ffc12&&_0x4ffc12['commentThread']&&!_0x4ffc12['commentThread']['length']&&this['_updateSuggestionData'](_0x55c106,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1093b1){if(this['_adapter'])throw new _0x211b8d('track-changes-adapter-already-set',this);this['_adapter']=_0x1093b1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3b18c3=!0x1,toJSON:_0x16e360=!0x1}={}){const _0xfed028=[];for(const _0x4542ff of this['_suggestions']['values']())_0x3b18c3&&!_0x4542ff['isInContent']||_0xfed028['push'](_0x4542ff);return _0x16e360?_0xfed028['map'](_0x3a615d=>_0x3a615d['toJSON']()):_0xfed028;}['getSuggestion'](_0x1c8a71){const _0x3ff3fb=this['_suggestions']['get'](_0x1c8a71);if(!_0x3ff3fb)throw new _0x211b8d('track-changes-suggestion-not-found',this);return _0x3ff3fb;}['hasSuggestion'](_0x2484ce){return this['_suggestions']['has'](_0x2484ce);}['addSuggestionData'](_0x5e0d76){const {authorId:_0x2ad2e5,id:_0xe24e84,attributes:_0x4670fd}=_0x5e0d76,[_0x2800d7,_0x4e2791]=_0x5e0d76['type']['split'](':'),_0x565216=this['_suggestions']['get'](_0xe24e84)||this['_createSuggestion'](_0x2800d7,_0x4e2791,_0xe24e84,_0x2ad2e5,_0x4670fd);if(this['_addThreadToSuggestion'](_0x565216),this['_checkSuggestionCorrectness'](_0x565216,_0x2800d7,_0x4e2791||null,_0x2ad2e5),_0x565216['createdAt']=_0x5e0d76['createdAt'],_0x565216['_isDataLoaded']=!0x0,_0x4670fd&&_0x4670fd['@external']){const _0xb269b9=_0x4670fd['@external'],_0x157352=this['_getExternalAuthor'](_0xb269b9['authorName']);_0x565216['authoredAt']=_0xb269b9['createdAt'],_0x565216['author']=_0x157352,_0x565216['isExternal']=!0x0;}else _0x565216['authoredAt']=_0x5e0d76['createdAt'];switch(_0x5e0d76['data']&&(_0x565216['data']=_0x5e0d76['data']),_0x5e0d76['attributes']&&(_0x565216['attributes']=_0x5e0d76['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x565216['_saved']=!0x0),this['_suggestionState']['get'](_0x565216)){case'notReady':this['_suggestionState']['set'](_0x565216,'dataReady');break;case'markerReady':_0x565216['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x565216])),this['_refreshSuggestionsChain'](new Set([_0x565216])),this['_suggestionState']['set'](_0x565216,'ready'),this['fire']('suggestionLoaded',_0x565216)):this['_suggestionState']['set'](_0x565216,'removed');}return _0x565216;}['acceptSuggestion'](_0x32cb5e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x64ecf3 of _0x32cb5e['getAllAdjacentSuggestions']())_0x64ecf3['accept']();});});}['discardSuggestion'](_0x2bfcbb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x392be0 of _0x2bfcbb['getAllAdjacentSuggestions']())_0x392be0['discard']();});});}['enableCommand'](_0x540ed0,_0x551b39){const _0x314fe4=this['editor']['commands']['get'](_0x540ed0);if(!_0x314fe4)throw new _0x211b8d('track-changes-command-not-found',this,{'commandName':_0x540ed0});if(this['_enabledCommands']['has'](_0x314fe4))throw new _0x211b8d('track-changes-enable-command-twice',this,{'commandName':_0x540ed0});this['_enabledCommands']['add'](_0x314fe4),_0x551b39&&_0x314fe4['on']('execute',(_0x31c6fb,_0x1ebb36)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1ebb36['length']>0x0&&_0x1ebb36[_0x1ebb36['length']-0x1]&&_0x1ebb36[_0x1ebb36['length']-0x1]['forceDefaultExecution']?_0x1ebb36['pop']():(_0x31c6fb['return']=_0x551b39((..._0x2c7bf3)=>_0x314fe4['execute'](..._0x2c7bf3,{'forceDefaultExecution':!0x0}),..._0x1ebb36),_0x31c6fb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x295c88){let _0x2cb031,_0x629876;const _0x5f29b1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2cb031=_0x295c88();}catch(_0x248557){_0x629876=_0x248557;}return _0x5f29b1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x629876&&_0x211b8d['rethrowUnexpectedError'](_0x629876,this),_0x2cb031;}['markInsertion'](_0x1ad220,_0x494ef3=null,_0x1b8122={}){if(_0x1ad220['isCollapsed'])return null;const _0x425ada=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x41b678,meta:_0x2db3da}of this['_findSuggestions'](_0x1ad220,'insertion'))if(_0x2db3da['isOwn']){if(!_0x2db3da['isNextTo']){if(_0x2db3da['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x41b678,_0x1b8122))continue;return _0x41b678;}if(qt(_0x41b678,_0x1b8122))return _0x41b678;this['_breakSuggestionMarker'](_0x41b678,_0x1ad220['start'],_0x1ad220['end']);break;}if(_0x494ef3==_0x41b678['subType']&&qt(_0x41b678,_0x1b8122)){const _0x124939=_0x41b678['getFirstRange']();return _0x124939['start']['isEqual'](_0x1ad220['end'])?this['_setSuggestionRange'](_0x41b678,this['_model']['createRange'](_0x1ad220['start'],_0x124939['end'])):this['_setSuggestionRange'](_0x41b678,this['_model']['createRange'](_0x124939['start'],_0x1ad220['end'])),_0x41b678;}}const _0x4edd58=_0xd600d8(),_0x25941e=_0x425ada['id'],_0x1ad5c2=_0x494ef3?'insertion:'+_0x494ef3:'insertion',_0x18876f=this['_setSuggestionData']({'id':_0x4edd58,'type':_0x1ad5c2,'createdAt':new Date(),'authorId':_0x25941e,'attributes':_0x1b8122});return this['_addSuggestionMarker'](_0x1ad5c2,_0x4edd58,_0x25941e,_0x1ad220),_0x18876f;}['markMultiRangeInsertion'](_0x16a328,_0x30c173='multi',_0x1fea17={}){const _0x1e2bb6=this['editor']['plugins']['get']('Users')['me'],_0x4f6d4b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x30c173,'join');for(const _0x5a2891 of this['getSuggestions']())if(_0x5a2891['author']['id']==_0x1e2bb6['id']&&'insertion'==_0x5a2891['type']&&_0x5a2891['subType']==_0x30c173&&qt(_0x5a2891,_0x1fea17)&&(_0x4f6d4b(_0x5a2891['getRanges'](),_0x16a328)||_0x4f6d4b(_0x16a328,_0x5a2891['getRanges']()))){for(const _0x1f4cc7 of _0x16a328)_0x5a2891['addRange'](_0x1f4cc7);return _0x5a2891;}for(const {suggestion:_0xfcb800,meta:_0x284444}of this['_findSuggestions'](_0x16a328,'insertion')){if(!_0x284444['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x284444['containsRangeInObject'])continue;if(!qt(_0xfcb800,_0x1fea17))continue;let _0x37a863=!0x0;for(const _0x15c7c1 of _0xfcb800['getRanges']())for(const _0x1177f7 of _0x16a328)if(!_0x15c7c1['containsRange'](_0x1177f7)){_0x37a863=!0x1;break;}if(_0x37a863)return _0xfcb800;}const _0x33f1df=_0xd600d8(),_0x572a34=_0x1e2bb6['id'],_0x38987d='insertion:'+_0x30c173,_0x24c4cf=this['_setSuggestionData']({'id':_0x33f1df,'type':_0x38987d,'createdAt':new Date(),'authorId':_0x572a34,'attributes':_0x1fea17});for(const _0x1d35cd of _0x16a328)this['_addSuggestionMarker'](_0x38987d,_0x33f1df,_0x572a34,_0x1d35cd,u['getMultiRangeId']());return _0x24c4cf;}['markInlineFormat'](_0x5e99be,_0x1dd00f,_0x7ab80e=null,_0x2811c4={}){if(_0x7ab80e=_0x7ab80e||Gt(_0x1dd00f),_0x5e99be['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x562831=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x7ab80e,'accept');return this['forceDefaultExecution'](()=>_0x562831([_0x5e99be],_0x1dd00f,_0x2811c4)),null;}const _0x52c9d1=this['editor']['plugins']['get']('Users')['me'],_0x2a2981=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x246e46,meta:_0x285c98}of this['_findSuggestions'](_0x5e99be,'insertion'))_0x285c98['isOwn']&&!_0x285c98['isInsideObject']&&_0x2a2981['push'](..._0x246e46['getRanges']());}const _0xc0f181=function(_0x32d2b6,_0x471a10){const _0x38e0bf=[];for(const _0x20265c of _0x471a10){const _0x5cb525=_0x32d2b6['getIntersection'](_0x20265c);_0x5cb525&&_0x38e0bf['push'](_0x5cb525);}return _0x38e0bf;}(_0x5e99be,_0x2a2981),_0x3de5d3=function(_0x1df964,_0x9d2ba4){const _0x4423cc=[_0x1df964];for(const _0x4e36ef of _0x9d2ba4){let _0x4bd595=0x0;for(;_0x4bd595<_0x4423cc['length'];){const _0x5b5b16=_0x4423cc[_0x4bd595]['getDifference'](_0x4e36ef);_0x4423cc['splice'](_0x4bd595,0x1,..._0x5b5b16),_0x4bd595+=_0x5b5b16['length'];}}return _0x4423cc;}(_0x5e99be,_0x2a2981);_0xc0f181['length']&&this['_model']['change'](()=>{for(const _0x1bd3ae of _0xc0f181){const _0x5dc417=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x7ab80e,'accept');this['forceDefaultExecution'](()=>_0x5dc417([_0x1bd3ae],_0x1dd00f,_0x2811c4));}});for(const _0x19f2a5 of _0x3de5d3){let _0x505bb1=null,_0x5ef469=_0x19f2a5['start'],_0x118656=_0x19f2a5['end'];for(const {suggestion:_0x38ab4b,meta:_0x37f347}of this['_findSuggestions'](_0x19f2a5,'formatInline')){if(!_0x37f347['isOwn'])continue;if(_0x38ab4b['subType']!=_0x7ab80e)continue;if(!qt(_0x38ab4b,_0x2811c4))continue;const _0x12058a=_0x38ab4b['getFirstRange']();if(_0x12058a['containsRange'](_0x19f2a5,!0x0))return null;_0x5ef469=_0x5ef469['isBefore'](_0x12058a['start'])?_0x5ef469:_0x12058a['start'],_0x118656=_0x118656['isAfter'](_0x12058a['end'])?_0x118656:_0x12058a['end'],_0x505bb1?_0x12058a['start']['isBefore'](_0x505bb1['getFirstRange']()['start'])?(_0x505bb1['removeMarkers'](),_0x505bb1=_0x38ab4b):_0x38ab4b['removeMarkers']():_0x505bb1=_0x38ab4b;}const _0x428735=this['_model']['createRange'](_0x5ef469,_0x118656);if(_0x505bb1)this['_setSuggestionRange'](_0x505bb1,_0x428735);else{const _0x24c572=_0xd600d8(),_0x423929=_0x52c9d1['id'];this['_setSuggestionData']({'id':_0x24c572,'type':'formatInline:'+_0x7ab80e,'data':_0x1dd00f,'createdAt':new Date(),'authorId':_0x423929,'attributes':_0x2811c4}),this['_addSuggestionMarker']('formatInline:'+_0x7ab80e,_0x24c572,_0x423929,_0x428735);}}return null;}['markBlockFormat'](_0x1a1f6c,_0x5f4efe,_0x3894ae=[],_0xb42bcf=null,_0x4e3139={}){_0x5f4efe['formatGroupId']||(_0x5f4efe['formatGroupId']=_0x5f4efe['commandName']),_0x5f4efe['multipleBlocks']=_0x1a1f6c['is']('range'),_0xb42bcf=_0xb42bcf||Gt(_0x5f4efe);const _0x224ac1=_0x3894ae['map'](_0x3cb867=>Lt(_0x3cb867,this['_model'])),_0x5ddb59=_0x1a1f6c['is']('range')?_0x1a1f6c:Lt(_0x1a1f6c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4eb800=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb42bcf,'accept');return this['forceDefaultExecution'](()=>_0x4eb800([_0x5ddb59],_0x5f4efe,_0x4e3139)),null;}_0x224ac1['push'](_0x5ddb59);let _0x83fe22=!0x0;for(const _0x393ccb of _0x224ac1)if(!this['_rangeIsInLocalUserInsertion'](_0x393ccb)){_0x83fe22=!0x1;break;}if(_0x83fe22&&'always'!==this['_trackFormatChanges']){const _0x18b3d1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb42bcf,'accept');return this['forceDefaultExecution'](()=>_0x18b3d1([_0x5ddb59],_0x5f4efe,_0x4e3139)),null;}let _0x343385=null,_0xb9c26f=_0x5ddb59['start'],_0x3cc5bc=_0x5ddb59['end'];for(const {suggestion:_0x2ad180,meta:_0x4da38d}of this['_findSuggestions'](_0x5ddb59,'formatBlock')){if(!_0x4da38d['isOwn'])continue;if(_0x4da38d['isNextTo']||_0x4da38d['containsRangeInObject']||_0x4da38d['isInsideObject'])continue;if(_0x2ad180['data']['formatGroupId']!=_0x5f4efe['formatGroupId'])continue;if(!qt(_0x2ad180,_0x4e3139))continue;const _0x541090=_0x2ad180['getFirstRange']();if(_0x2ad180['subType']==_0xb42bcf){if(_0x541090['containsRange'](_0x5ddb59,!0x0))return null;_0xb9c26f=_0xb9c26f['isBefore'](_0x541090['start'])?_0xb9c26f:_0x541090['start'],_0x3cc5bc=_0x3cc5bc['isAfter'](_0x541090['end'])?_0x3cc5bc:_0x541090['end'],_0x343385?_0x541090['start']['isBefore'](_0x343385['getFirstRange']()['start'])?(_0x343385['removeMarkers'](),_0x343385=_0x2ad180):_0x2ad180['removeMarkers']():_0x343385=_0x2ad180;}else{const _0x29c34e=_0x5ddb59['getIntersection'](_0x541090);this['_cutOutSuggestionMarker'](_0x2ad180,_0x29c34e);}}const _0x46af13=this['editor']['plugins']['get']('Users')['me'],_0x536121=_0xd600d8(),_0x2e884a=_0x46af13['id'];if(_0x343385)return this['_setSuggestionRange'](_0x343385,this['_model']['createRange'](_0xb9c26f,_0x3cc5bc)),_0x343385;{const _0x309316=this['_setSuggestionData']({'id':_0x536121,'type':'formatBlock:'+_0xb42bcf,'data':_0x5f4efe,'createdAt':new Date(),'authorId':_0x2e884a,'attributes':_0x4e3139});return this['_addSuggestionMarker']('formatBlock:'+_0xb42bcf,_0x536121,_0x2e884a,this['_model']['createRange'](_0xb9c26f,_0x3cc5bc)),_0x309316;}}['markMultiRangeBlockFormat'](_0x246e53,_0x375371,_0x2930fd=[],_0x56f8f9=null,_0x28604f={}){_0x375371['formatGroupId']||(_0x375371['formatGroupId']=_0x375371['commandName']);const _0x3b1870=_0x246e53[0x0];_0x375371['multipleBlocks']=_0x3b1870['is']('range'),_0x56f8f9=_0x56f8f9||Gt(_0x375371);const _0x1bab44=_0x2930fd['map'](_0x3cd25a=>Lt(_0x3cd25a,this['_model'])),_0x5353bd=_0x3b1870['is']('range')?_0x246e53:_0x246e53['map'](_0x168888=>Lt(_0x168888,this['_model']));if('never'===this['_trackFormatChanges']){const _0xa5d46d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56f8f9,'accept');return this['forceDefaultExecution'](()=>_0xa5d46d(_0x5353bd,_0x375371,_0x28604f)),null;}_0x1bab44['push'](..._0x5353bd);let _0x12e922=!0x0;for(const _0x635b30 of _0x1bab44)if(!this['_rangeIsInLocalUserInsertion'](_0x635b30)){_0x12e922=!0x1;break;}if(_0x12e922&&'always'!==this['_trackFormatChanges']){const _0x25fb05=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56f8f9,'accept');return this['forceDefaultExecution'](()=>_0x25fb05(_0x5353bd,_0x375371,_0x28604f)),null;}const _0x42a4b=this['editor']['plugins']['get']('Users')['me'];for(const _0x561760 of this['getSuggestions']()){if(_0x561760['author']['id']!=_0x42a4b['id'])continue;if('formatBlock'!=_0x561760['type']||_0x561760['data']['formatGroupId']!=_0x375371['formatGroupId'])continue;if(!qt(_0x561760,_0x28604f))continue;const _0x1b64c4=_0x561760['subType']==_0x56f8f9;for(let _0x121da9=0x0;_0x121da9<_0x5353bd['length'];_0x121da9++){const _0x50885b=_0x5353bd[_0x121da9];for(const _0x5ba7cb of _0x561760['getMarkers']()){const _0x1a647e=_0x5ba7cb['getRange']();if(_0x50885b['isEqual'](_0x1a647e)){_0x1b64c4?(_0x5353bd['splice'](_0x121da9,0x1),_0x121da9--):_0x561760['removeMarker'](_0x5ba7cb['name']);break;}}}}if(0x0==_0x5353bd['length'])return null;const _0xeb3c87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56f8f9,'join');for(const _0x581568 of this['getSuggestions']())if(_0x581568['author']['id']==_0x42a4b['id']&&'formatBlock'==_0x581568['type']&&_0x581568['data']['formatGroupId']==_0x375371['formatGroupId']&&_0x581568['subType']==_0x56f8f9&&qt(_0x581568,_0x28604f)&&(_0xeb3c87(_0x581568['getRanges'](),_0x5353bd)||_0xeb3c87(_0x5353bd,_0x581568['getRanges']()))){for(const _0x58963f of _0x5353bd)_0x581568['addRange'](_0x58963f);return _0x581568;}const _0x254905=_0xd600d8(),_0x4b6cdd=_0x42a4b['id'],_0x2ad003='formatBlock:'+_0x56f8f9,_0x3e9116=this['_setSuggestionData']({'id':_0x254905,'type':_0x2ad003,'data':_0x375371,'createdAt':new Date(),'authorId':_0x4b6cdd,'attributes':_0x28604f});for(const _0x236539 of _0x5353bd)this['_addSuggestionMarker'](_0x2ad003,_0x254905,_0x4b6cdd,_0x236539,u['getMultiRangeId']());return _0x3e9116;}['markDeletion'](_0x41ca0d,_0x5956e5=null,_0x161e12={}){if(_0x41ca0d['isCollapsed'])return null;const _0x5db7e0=this['editor']['plugins']['get']('Users')['me'],_0x104f5a=new _0x5e2088(_0x41ca0d['start'],_0x41ca0d['end']);for(const {suggestion:_0x4f50e8,meta:_0x31a143}of this['_findSuggestions'](_0x104f5a,'insertion'))if(_0x31a143['isOwn']&&!_0x31a143['isNextTo']){if(_0x4f50e8['isMultiRange']){const _0x405ab2=_0x4f50e8['getRanges']()['filter'](_0x3e3dc0=>'$graveyard'!=_0x3e3dc0['root']['rootName']);_0x405ab2['every'](_0x14b477=>_0x104f5a['containsRange'](_0x14b477,!0x0))&&_0x4f50e8['discard']();if(_0x405ab2['some'](_0xe068f7=>_0xe068f7['containsRange'](_0x104f5a,!0x0))){const _0x1a7246=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5956e5,'accept');return this['forceDefaultExecution'](()=>_0x1a7246([_0x104f5a],null,_0x161e12)),null;}}else{const _0x4589ee=_0x104f5a['getIntersection'](_0x4f50e8['getFirstRange']());null!==_0x4589ee&&_0x4f50e8['_onDiscard']([_0x4589ee],null,_0x161e12);}}if(_0x104f5a['detach'](),_0x104f5a['isCollapsed']||'$graveyard'==_0x104f5a['root']['rootName'])return null;let _0x5aa9bc=null,_0x35afa2=_0x104f5a['start'],_0x15eec2=_0x104f5a['end'];const _0x3c965d=this['_findSuggestions'](_0x104f5a,'deletion');for(const {suggestion:_0x1af2ec,meta:_0x349c7e}of _0x3c965d){const _0xcdae7e=this['_model']['createRange'](_0x35afa2,_0x15eec2);if(_0x349c7e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x349c7e['containsRangeInObject']&&!_0x349c7e['isInsideObject'])){if(_0x1af2ec['isMultiRange']){if(!qt(_0x1af2ec,_0x161e12))continue;let _0x4cb720=!0x0;for(const _0x5f838f of _0x1af2ec['getRanges']()){if(_0x5f838f['containsRange'](_0xcdae7e,!0x0))return _0x1af2ec;_0xcdae7e['containsRange'](_0x5f838f)||(_0x4cb720=!0x1);}_0x4cb720&&_0x1af2ec['discard']();}else{const _0x90319a=_0x1af2ec['getFirstRange']();if(_0x90319a['containsRange'](_0xcdae7e,!0x0))return _0x1af2ec;if(!qt(_0x1af2ec,_0x161e12)){_0xcdae7e['containsRange'](_0x90319a)?_0x1af2ec['removeMarkers']():_0x90319a['containsPosition'](_0x35afa2)?_0x35afa2=_0x90319a['end']:_0x90319a['containsPosition'](_0x15eec2)&&(_0x15eec2=_0x90319a['start']);continue;}_0x35afa2=_0x35afa2['isBefore'](_0x90319a['start'])?_0x35afa2:_0x90319a['start'],_0x15eec2=_0x15eec2['isAfter'](_0x90319a['end'])?_0x15eec2:_0x90319a['end'],_0x161e12=Object['assign']({},_0x1af2ec['attributes']),_0x5aa9bc?_0x90319a['start']['isBefore'](_0x5aa9bc['getFirstRange']()['start'])?(_0x5aa9bc['removeMarkers'](),_0x5aa9bc=_0x1af2ec):_0x1af2ec['removeMarkers']():_0x5aa9bc=_0x1af2ec;}}}if(_0x5aa9bc)return this['_setSuggestionRange'](_0x5aa9bc,this['_model']['createRange'](_0x35afa2,_0x15eec2)),_0x5aa9bc;{const _0x5c8082=_0xd600d8(),_0x9ac733=this['_model']['createRange'](_0x35afa2,_0x15eec2),_0x20ac99=_0x5db7e0['id'],_0x29061f=_0x5956e5?'deletion:'+_0x5956e5:'deletion',_0x42bc91=this['_setSuggestionData']({'id':_0x5c8082,'type':_0x29061f,'createdAt':new Date(),'authorId':_0x20ac99,'attributes':_0x161e12});return this['_addSuggestionMarker'](_0x29061f,_0x5c8082,_0x20ac99,_0x9ac733),_0x42bc91;}}['markMultiRangeDeletion'](_0x1164a7,_0x5dd78f='multi',_0x111a89={}){const _0x461d74=this['editor']['plugins']['get']('Users')['me'],_0x389a1b=_0x1164a7['map'](_0x5cbf31=>new _0x5e2088(_0x5cbf31['start'],_0x5cbf31['end'])),_0x4871b0=new Set();for(const {suggestion:_0x43ea1d,meta:_0x111526}of this['_findSuggestions'](_0x389a1b,'insertion'))_0x111526['isOwn']&&!_0x111526['isNextTo']&&_0x4871b0['add'](_0x43ea1d);for(const _0x41a79e of _0x4871b0)if(_0x41a79e['isMultiRange']){const _0x53487f=_0x41a79e['getRanges']();(!_0x41a79e['attributes']||!_0x41a79e['attributes']['skipNestingCheck'])&&(_0x53487f['every'](_0x7e1a8b=>_0x389a1b['some'](_0x4943d9=>_0x4943d9['containsRange'](_0x7e1a8b,!0x0)))&&_0x41a79e['discard']());if(_0x389a1b['every'](_0x109a71=>_0x53487f['some'](_0x563789=>_0x563789['containsRange'](_0x109a71,!0x0)))){const _0x31db00=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dd78f,'accept');return this['forceDefaultExecution'](()=>_0x31db00(_0x1164a7,null,_0x111a89)),null;}}else{const _0x525233=_0x41a79e['getFirstRange']();_0x389a1b['some'](_0x15b476=>_0x15b476['containsRange'](_0x525233,!0x0))&&_0x41a79e['discard']();if(_0x389a1b['every'](_0xbc6b0c=>_0x525233['containsRange'](_0xbc6b0c,!0x0))){const _0x34fd6a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dd78f,'accept');return this['forceDefaultExecution'](()=>_0x34fd6a(_0x389a1b,null,_0x111a89)),null;}}const _0x1f258e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dd78f,'join');let _0x1e9aa0=null;for(const _0x235028 of this['getSuggestions']())if(_0x235028['author']['id']==_0x461d74['id']&&_0x235028['isInContent']&&'deletion'==_0x235028['type']&&_0x235028['subType']==_0x5dd78f&&qt(_0x235028,_0x111a89)&&(_0x1f258e(_0x235028['getRanges'](),_0x389a1b)||_0x1f258e(_0x389a1b,_0x235028['getRanges']()))){if(_0x1e9aa0){if(_0x235028['commentThread']&&_0x235028['commentThread']['length'])continue;for(const _0x1e5d09 of _0x235028['getRanges']())_0x1e9aa0['isIntersectingWithRange'](_0x1e5d09)||_0x1e9aa0['addRange'](_0x1e5d09);_0x235028['removeMarkers']();}else{_0x1e9aa0=_0x235028;for(const _0x19b4de of _0x389a1b)_0x235028['isIntersectingWithRange'](_0x19b4de)||_0x235028['addRange'](_0x19b4de);}}if(_0x1e9aa0)return _0x1e9aa0;_0x4871b0['clear']();for(const {suggestion:_0x1a7910,meta:_0x4709ba}of this['_findSuggestions'](_0x389a1b,'deletion'))_0x4709ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4709ba['containsRangeInObject']&&!_0x4709ba['isInsideObject'])&&qt(_0x1a7910,_0x111a89)&&_0x4871b0['add'](_0x1a7910);for(const _0x1971be of _0x4871b0){const _0x32ab83=_0x1971be['getRanges']();if(!_0x111a89||!_0x111a89['skipNestingCheck']){if(_0x389a1b['every'](_0x254346=>_0x32ab83['some'](_0x4b240c=>_0x4b240c['containsRange'](_0x254346,!0x0))))return _0x1971be;}(!_0x1971be['attributes']||!_0x1971be['attributes']['skipNestingCheck'])&&(_0x32ab83['every'](_0x1a4b35=>_0x389a1b['some'](_0x55c8e5=>_0x55c8e5['containsRange'](_0x1a4b35,!0x0)))&&_0x1971be['discard']());}const _0x475e95=_0xd600d8(),_0xfb2801=_0x461d74['id'],_0xceac30='deletion:'+_0x5dd78f,_0x26f1ae=this['_setSuggestionData']({'id':_0x475e95,'type':_0xceac30,'createdAt':new Date(),'authorId':_0xfb2801,'attributes':_0x111a89});for(const _0x4a2b6c of _0x389a1b)_0x4a2b6c['detach'](),_0x4a2b6c['isCollapsed']||'$graveyard'==_0x4a2b6c['root']['rootName']||this['_addSuggestionMarker'](_0xceac30,_0x475e95,_0xfb2801,_0x4a2b6c,u['getMultiRangeId']());return _0x26f1ae;}['markAttributeChange'](_0x10b682,_0x842792,_0x32e542,_0x526d71,_0x3c9c94){if(_0x10b682['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3df614=this['editor']['plugins']['get']('Users')['me']['id'],_0x312d9c=Array['from'](this['_suggestions']['values']())['filter'](_0x396f0f=>'attribute'==_0x396f0f['type']&&_0x396f0f['data']['key']==_0x842792&&_0x396f0f['isIntersectingWithRange'](_0x10b682));if('default'===this['_trackFormatChanges']){const _0x11968a=this['_findSuggestions'](_0x10b682,'insertion')['filter'](({meta:_0x32c490})=>_0x32c490['isOwn']&&!_0x32c490['isInsideObject']&&!_0x32c490['isNextTo'])['map'](({suggestion:_0x596477})=>_0x596477);_0x312d9c['unshift'](..._0x11968a);}const _0x142ddf=new Map([[_0x10b682,_0x32e542]]);for(const _0x3a5e9d of _0x312d9c){const _0x438b17='attribute'==_0x3a5e9d['type']?_0x3a5e9d['data']['oldValue']:void 0x0,_0x7d2dd4=_0x3a5e9d['getFirstRange'](),_0x10b5be=Array['from'](_0x142ddf['keys']())['find'](_0x11f649=>_0x11f649['isIntersecting'](_0x7d2dd4));if(!_0x10b5be)continue;const _0x181340=_0x10b5be['getDifference'](_0x7d2dd4);this['_isBlockAttribute'](_0x842792)&&'insertion'==_0x3a5e9d['type']&&0x0!=_0x181340['length']||(_0x142ddf['delete'](_0x10b5be),_0x181340['forEach'](_0x3dc8a8=>{_0x142ddf['set'](_0x3dc8a8,_0x32e542);}),'insertion'!=_0x3a5e9d['type']&&_0x438b17!=_0x526d71&&_0x142ddf['set'](_0x10b5be['getIntersection'](_0x7d2dd4),_0x438b17));}const _0x34ba04=[];for(const [_0x5c9be5,_0x2489dd]of _0x142ddf){const _0xd122ad=_0xd600d8(),_0x9b3b29={'key':_0x842792,'oldValue':_0x2489dd,'newValue':_0x526d71};_0x842792['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':_0x842792});const _0x584134=('attribute:'+(_0x842792+'|'+Gt({'newValue':_0x526d71})))['substring'](0x0,0x3c),_0x582c24=this['_setSuggestionData']({'id':_0xd122ad,'type':_0x584134,'data':_0x9b3b29,'createdAt':new Date(),'authorId':_0x3df614,'attributes':_0x3c9c94});_0x34ba04['push'](_0x582c24),this['_addSuggestionMarker'](_0x584134,_0xd122ad,_0x3df614,_0x5c9be5);}return _0x34ba04;}['enableDefaultAttributesIntegration'](_0x41fdf7){this['enableCommand'](_0x41fdf7,(_0x4bfc72,..._0x26cd92)=>{this['_recordAttributeChanges'](()=>{_0x4bfc72(..._0x26cd92);});});}['registerBlockAttribute'](_0x22dd6b){this['_blockAttributeKeys']['add'](_0x22dd6b);}['registerInlineAttribute'](_0x3ed41f){this['_inlineAttributeKeys']['add'](_0x3ed41f);}['_getAttributeKey'](_0x29dea1){return'attribute'==_0x29dea1['type']?_0x29dea1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x335c1f,_0x289fd8){const _0x9bc58b=_0x335c1f['getFirstMarker']();this['_model']['change'](_0x24386d=>{_0x24386d['updateMarker'](_0x9bc58b,{'range':_0x289fd8});});}['_addThreadToSuggestion'](_0x5dc453){const _0x520015=_0x5dc453['id'],_0x182b4a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x520015)||this['_commentsRepository']['addCommentThread']({'channelId':_0x182b4a,'threadId':_0x520015,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5c3c5f=this['_commentsRepository']['getCommentThread'](_0x520015);_0x5c3c5f['unbind']('isRemovable'),_0x5c3c5f['isRemovable']=!0x1,_0x5dc453['commentThread']=_0x5c3c5f;}['_checkSuggestionCorrectness'](_0x912153,_0x42ea80,_0x1c96db,_0x3b15ff){if(_0x912153['type']!=_0x42ea80||_0x912153['subType']!=_0x1c96db||_0x912153['creator']['id']!=_0x3b15ff)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x211b8d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x109958,_0x12e763){const _0x1f3eda=_0x109958['getFirstRange']();if(_0x12e763['isEqual'](_0x1f3eda))_0x109958['removeMarkers']();else{if(_0x1f3eda['containsRange'](_0x12e763)){const _0x2c7197=this['_model']['createPositionAt'](_0x12e763['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x109958,this['_model']['createRange'](_0x1f3eda['start'],_0x2c7197));const _0x58a369=_0xd600d8(),_0x388167=_0x109958['creator']['id'],_0xb72c7a=_0x109958['type']+':'+_0x109958['subType'];this['_setSuggestionData']({'id':_0x58a369,'type':_0xb72c7a,'createdAt':new Date(),'authorId':_0x388167,'data':_0x109958['data'],'attributes':_0x109958['attributes']});const _0x5cb431=this['_model']['createPositionAt'](_0x12e763['end']['parent'],'after'),_0x31cb44=this['_model']['createRange'](_0x5cb431,_0x1f3eda['end']);this['_addSuggestionMarker'](_0xb72c7a,_0x58a369,_0x388167,_0x31cb44);}else{if(_0x1f3eda['containsPosition'](_0x12e763['start'])){const _0x467d05=this['_model']['createPositionAt'](_0x12e763['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x109958,this['_model']['createRange'](_0x1f3eda['start'],_0x467d05));}else{const _0xb7206e=this['_model']['createPositionAt'](_0x12e763['end']['parent'],'after');this['_setSuggestionRange'](_0x109958,this['_model']['createRange'](_0xb7206e,_0x1f3eda['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4ebd24){for(const {suggestion:_0x1e5322,meta:_0x59dd25}of this['_findSuggestions'](_0x4ebd24,'insertion')){if(!_0x59dd25['isOwn'])continue;const _0x716c28=_0x1e5322['getRanges']();for(const _0x52f3c5 of _0x716c28)if(!_0x4ebd24['getDifference'](_0x52f3c5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2d85b4){const _0x27973a=this['editor']['plugins']['get']('Users')['getUser'](_0x2d85b4);if(!_0x27973a)throw new _0x211b8d('track-changes-user-not-found',this);return _0x27973a;}['_getExternalAuthor'](_0x1a3ed3){const _0x62c52e=this['editor']['plugins']['get']('Users'),_0x4df3c8=_0x3c88ec('external:'+_0x1a3ed3),_0x2f9851=_0x62c52e['getUser'](_0x4df3c8);return _0x2f9851||_0x62c52e['addUser']({'id':_0x4df3c8,'name':_0x1a3ed3});}['_createSuggestion'](_0x12af93,_0x330f19,_0x545e3e,_0xf432bb,_0x389efc){const _0x303d60=this['_getAuthorFromId'](_0xf432bb),_0x3cdc1b=this['_suggestionFactory']['buildSuggestion'](_0x12af93,_0x330f19,_0x545e3e,_0x303d60,_0x389efc,_0x2a41a5=>{this['_updateSuggestionData'](_0x545e3e,{'attributes':_0x2a41a5});const _0x55551b=this['getSuggestion'](_0x545e3e);this['_joinWithAdjacentSuggestions'](new Set([_0x55551b])),this['_refreshSuggestionsChain'](new Set([_0x55551b]));});return this['listenTo'](_0x3cdc1b,'accept',()=>{this['_updateSuggestionData'](_0x545e3e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3cdc1b,'discard',()=>{this['_updateSuggestionData'](_0x545e3e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x545e3e,_0x3cdc1b),this['_suggestionState']['set'](_0x3cdc1b,'notReady'),_0x3cdc1b;}['_splitMarkerName'](_0x223d3f){const _0x4a7e7c=_0x223d3f['split'](':');return{'group':_0x4a7e7c[0x0],'type':_0x4a7e7c[0x1],'subType':_0x4a7e7c['length']>=0x5?_0x4a7e7c[0x2]:null,'id':_0x4a7e7c['length']<0x5?_0x4a7e7c[0x2]:_0x4a7e7c[0x3],'authorId':_0x4a7e7c['length']<0x5?_0x4a7e7c[0x3]:_0x4a7e7c[0x4],'markerCount':0x6==_0x4a7e7c['length']?_0x4a7e7c[0x5]:null};}['_breakSuggestionMarker'](_0xf2734f,_0x434b8e,_0x162973){const _0x289767=_0xf2734f['getFirstRange'](),_0x2d55a0=_0x289767['start'],_0x45ff7e=_0x289767['end'];this['_setSuggestionRange'](_0xf2734f,this['_model']['createRange'](_0x2d55a0,_0x434b8e));const _0x30e83a=_0xd600d8(),_0x429317=_0xf2734f['creator']['id'],_0x43584b=_0xf2734f['type']+(_0xf2734f['subType']?':'+_0xf2734f['subType']:'');this['_setSuggestionData']({'id':_0x30e83a,'type':_0x43584b,'createdAt':new Date(),'authorId':_0x429317,'originalSuggestionId':_0xf2734f['id'],'attributes':_0xf2734f['attributes'],'data':_0xf2734f['data']});const _0x3c9ac0=this['_getAttributeKey'](_0xf2734f);('formatBlock'==_0xf2734f['type']||_0x3c9ac0&&this['_isBlockAttribute'](_0x3c9ac0))&&(_0x162973=this['_model']['createPositionBefore'](_0x162973['parent'])),this['_addSuggestionMarker'](_0x43584b,_0x30e83a,_0x429317,this['_model']['createRange'](_0x162973,_0x45ff7e));}['_findSuggestions'](_0x5a7089,_0x4294e1=null){const _0x2f01e6=[],_0x315718=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a7089)||(_0x5a7089=[_0x5a7089]);for(const _0x13d947 of this['getSuggestions']()){if(!_0x13d947['isInContent'])continue;if(_0x4294e1&&_0x13d947['type']!=_0x4294e1)continue;let _0x5b3dd5=!0x1;for(const _0x19b73b of _0x13d947['getRanges']()){for(const _0x1ea99e of _0x5a7089){const _0x1c568b=_0x1ea99e['start']['isEqual'](_0x19b73b['end'])||_0x1ea99e['end']['isEqual'](_0x19b73b['start']);if(_0x1c568b||_0x1ea99e['getIntersection'](_0x19b73b)){const _0x4ceb22=_0x1ea99e['containsRange'](_0x19b73b)&&Ot(this['_model']['schema'],_0x19b73b['start'],_0x1ea99e),_0x2a343b=_0x19b73b['containsRange'](_0x1ea99e)&&Ot(this['_model']['schema'],_0x1ea99e['start'],_0x19b73b);_0x2f01e6['push']({'suggestion':_0x13d947,'meta':{'isOwn':_0x315718==_0x13d947['author'],'isNextTo':_0x1c568b,'isInsideObject':_0x4ceb22,'containsRangeInObject':_0x2a343b}}),_0x5b3dd5=!0x0;break;}}if(_0x5b3dd5)break;}}return _0x2f01e6;}['_addSuggestionMarker'](_0x4099e8,_0x58bda8,_0x124d3d,_0x3913ce,_0x58856e){this['_model']['change'](_0x5e0c65=>{let _0x322a7f='suggestion:'+_0x4099e8+':'+_0x58bda8+':'+_0x124d3d;_0x58856e&&(_0x322a7f=_0x322a7f+':'+_0x58856e),_0x5e0c65['addMarker'](_0x322a7f,{'range':_0x3913ce,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x90af82){const _0x258345=_0x90af82['previous'],_0x5a09ea=_0x90af82['next'];_0x90af82['previous']=null,_0x90af82['next']=null,null!=_0x258345&&_0x258345['next']==_0x90af82&&(_0x258345['next']=_0x5a09ea),null!=_0x5a09ea&&_0x5a09ea['previous']==_0x90af82&&(_0x5a09ea['previous']=_0x258345),'ready'==this['_suggestionState']['get'](_0x90af82)&&(this['_suggestionState']['set'](_0x90af82,'removed'),this['fire']('suggestionUnloaded',_0x90af82,_0x258345,_0x5a09ea));}['_setSuggestionData'](_0x249c97){const _0x4bc6a0=_0x249c97['id'],_0x3271f4=this['addSuggestionData'](_0x249c97);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3a22a8=this['editor']['plugins']['get']('PendingActions'),_0x4f2b46=_0x3271f4['hasComments'],_0xf26ef9=_0x3271f4['subType']?_0x3271f4['type']+':'+_0x3271f4['subType']:_0x3271f4['type'],_0x10025f=this['editor']['locale'],_0x597306=_0x3a22a8['add'](o(_0x10025f,'PENDING_ACTION_SUGGESTION')),_0x14917b={'id':_0x4bc6a0,'type':_0xf26ef9,'hasComments':_0x4f2b46,'data':_0x249c97['data']||null,'originalSuggestionId':_0x249c97['originalSuggestionId']||null,'attributes':_0x3271f4['attributes']};this['_adapter']['addSuggestion'](_0x14917b)['then'](_0x227f93=>{_0x3271f4['_saved']=!0x0,_0x3a22a8['remove'](_0x597306),_0x227f93&&_0x227f93['createdAt']&&(this['_suggestions']['get'](_0x4bc6a0)['createdAt']=_0x227f93['createdAt']);})['catch'](_0xe3baca=>{throw _0x561d8c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3271f4['discard']();}),_0x3271f4['stopListening'](),this['_suggestions']['delete'](_0x3271f4['id']),this['_suggestionState']['delete'](_0x3271f4),_0xe3baca;});}return _0x3271f4;}['_isBlockAttribute'](_0x2e9633){return this['_blockAttributeKeys']['has'](_0x2e9633);}['_updateSuggestionData'](_0x27fd5e,_0xe5eed6){const _0x12c0b3=this['editor']['plugins']['get']('PendingActions'),_0x233626=this['getSuggestion'](_0x27fd5e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x233626['_saved']){const _0x1b2954=_0x12c0b3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x27fd5e,_0xe5eed6)['then'](()=>{_0x12c0b3['remove'](_0x1b2954);});}else _0x233626['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x27fd5e,_0xe5eed6);});}}['_getSuggestionData'](_0x21643c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x211b8d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x21643c);}['_handleNewSuggestionMarker'](_0x3ec6a3){const {id:_0x38790c,type:_0x1cf81d,subType:_0x2fba3e,authorId:_0x3e02e6}=this['_splitMarkerName'](_0x3ec6a3),_0x4be767=this['_suggestions']['get'](_0x38790c)||this['_createSuggestion'](_0x1cf81d,_0x2fba3e,_0x38790c,_0x3e02e6,{});switch(this['_checkSuggestionCorrectness'](_0x4be767,_0x1cf81d,_0x2fba3e,_0x3e02e6),this['_suggestionState']['get'](_0x4be767)){case'notReady':this['_getSuggestionData'](_0x38790c)['then'](_0x1ae0e1=>{let _0x22b299=Promise['resolve']();_0x1ae0e1['hasComments']&&(_0x22b299=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x38790c})),_0x22b299['then'](()=>{this['addSuggestionData'](_0x1ae0e1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4be767,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x38790c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4be767,'ready'),this['fire']('suggestionLoaded',_0x4be767);break;case'ready':this['fire']('suggestionChanged',_0x4be767);}return _0x4be767['addMarkerName'](_0x3ec6a3),_0x4be767;}['_refreshSuggestionsChain'](_0x592815){const _0x38808d=Array['from'](_0x592815),_0x483629=_0x38808d['filter'](_0x2652e7=>'attribute'==_0x2652e7['type']);this['_refreshAttributeSuggestionsChain'](_0x483629);const _0x1de6c5=_0x38808d['filter'](_0x23893b=>!_0x23893b['isMultiRange']&&'attribute'!=_0x23893b['type']),_0x5ccedd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43ae2b=>!_0x43ae2b['isMultiRange']&&'attribute'!=_0x43ae2b['type']),_0x4e6c51=_0x5ccedd['filter'](_0x3e0be7=>!_0x592815['has'](_0x3e0be7)),_0x2fa0ed=new Map(_0x5ccedd['map'](_0x51402f=>[_0x51402f,this['_suggestionFactory']['getSuggestionCallback'](_0x51402f['type'],_0x51402f['subType'],'chain')])),_0x1261e6=new Map(_0x5ccedd['map'](_0x3aaea7=>[_0x3aaea7,_0x3aaea7['getFirstRange']()])),_0x464246=new Set(),_0x4dfc98=new Set();for(let _0x5b2261=0x0;_0x5b2261<_0x1de6c5['length'];_0x5b2261++)_0x477c61(_0x1de6c5[_0x5b2261],_0x1de6c5,_0x5b2261+0x1);for(let _0x41a127=0x0;_0x41a127<_0x1de6c5['length'];_0x41a127++)_0x477c61(_0x1de6c5[_0x41a127],_0x4e6c51,0x0);const _0x51bba4=new Set();for(let _0x2df335=0x0;_0x2df335<_0x1de6c5['length'];_0x2df335++){const _0x3123f4=_0x1de6c5[_0x2df335];!_0x4dfc98['has'](_0x3123f4)&&_0x3123f4['previous']&&(_0x51bba4['add'](_0x3123f4['previous']),_0x3123f4['previous']['next']===_0x3123f4&&(_0x3123f4['previous']['next']=null),_0x3123f4['previous']=null),!_0x464246['has'](_0x3123f4)&&_0x3123f4['next']&&(_0x51bba4['add'](_0x3123f4['next']),_0x3123f4['next']['previous']===_0x3123f4&&(_0x3123f4['next']['previous']=null),_0x3123f4['next']=null);}function _0x477c61(_0x34c044,_0x3a0e7c,_0x3babc2){for(let _0x45bf77=_0x3babc2;_0x45bf77<_0x3a0e7c['length'];_0x45bf77++){const _0x142a0b=_0x68894b(_0x34c044,_0x3a0e7c[_0x45bf77]);_0x142a0b&&(_0x142a0b[0x0]['next']=_0x142a0b[0x1],_0x142a0b[0x1]['previous']=_0x142a0b[0x0],_0x464246['add'](_0x142a0b[0x0]),_0x4dfc98['add'](_0x142a0b[0x1]));}}function _0x68894b(_0x11d0e3,_0x14292e){if(_0x11d0e3['author']['id']!==_0x14292e['author']['id'])return null;const _0x957579=_0x2fa0ed['get'](_0x11d0e3)(_0x11d0e3,_0x14292e,_0x1261e6['get'](_0x11d0e3),_0x1261e6['get'](_0x14292e));if(!_0x957579)return null;return _0x2fa0ed['get'](_0x14292e)(_0x11d0e3,_0x14292e,_0x1261e6['get'](_0x11d0e3),_0x1261e6['get'](_0x14292e))?_0x957579[0x1]['commentThread']&&_0x957579[0x1]['commentThread']['length']?null:_0x957579:null;}_0x51bba4['size']&&this['_refreshSuggestionsChain'](_0x51bba4);}['_refreshAttributeSuggestionsChain'](_0x3ecaa7){if(0x0==_0x3ecaa7['length'])return;const _0x31fc71=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c2404=>'attribute'==_0x2c2404['type']&&_0x2c2404['_isDataLoaded']),_0x5e37b5=[],_0x34b641=new Map();for(const _0x20d053 of _0x31fc71){const _0x2b6840=_0x3c88ec(_0x20d053['attributes']);_0x34b641['has'](_0x2b6840)||(_0x34b641['set'](_0x2b6840,_0x5e37b5['length']),_0x5e37b5['push']([]));const _0x580933=_0x34b641['get'](_0x2b6840);_0x5e37b5[_0x580933]['push'](_0x20d053);}!(function(){_0x5e37b5['sort']((_0x291b31,_0x3aa5ab)=>{const _0x2b148f=_0x291b31[0x0]['createdAt'],_0x281871=_0x3aa5ab[0x0]['createdAt'];return _0x2b148f==_0x281871?_0x291b31[0x0]['attributes']['groupId']<_0x3aa5ab[0x0]['attributes']['groupId']?-0x1:0x1:_0x2b148f<_0x281871?-0x1:0x1;});for(const _0x16226b of _0x5e37b5)_0x16226b['sort']((_0x5c7093,_0x473aed)=>_0x5c7093['id']<_0x473aed['id']?-0x1:0x1);}());for(let _0x549d3a=0x0;_0x549d3a<_0x5e37b5['length'];_0x549d3a++){if(0x0==_0x5e37b5[_0x549d3a]['length'])continue;const _0x51af2b=[];for(let _0x440bef=_0x549d3a+0x1;_0x440bef<_0x5e37b5['length'];_0x440bef++)0x0!=_0x5e37b5[_0x440bef]['length']&&_0x1b5206(_0x5e37b5[_0x549d3a],_0x5e37b5[_0x440bef])&&_0x51af2b['push'](_0x440bef);for(const _0x1f7faa of _0x51af2b)_0x5e37b5[_0x549d3a]=_0x5e37b5[_0x549d3a]['concat'](_0x5e37b5[_0x1f7faa]),_0x5e37b5[_0x1f7faa]=[];}for(const _0x3511f5 of _0x5e37b5)for(let _0x77e2a6=0x0;_0x77e2a6<_0x3511f5['length'];_0x77e2a6++){const _0x51a7bb=_0x3511f5[_0x77e2a6+0x1]||null;_0x3511f5[_0x77e2a6]['next']!==_0x51a7bb&&(_0x3511f5[_0x77e2a6]['next']=_0x51a7bb);}for(const _0x16d6be of _0x5e37b5)for(let _0x5db8e9=0x0;_0x5db8e9<_0x16d6be['length'];_0x5db8e9++){const _0x45f01c=_0x16d6be[_0x5db8e9-0x1]||null;_0x16d6be[_0x5db8e9]['previous']!==_0x45f01c&&(_0x16d6be[_0x5db8e9]['previous']=_0x45f01c);}function _0x1b5206(_0x8e3da,_0x4c0eec){if(_0x8e3da[0x0]['attributes']['groupId']!==_0x4c0eec[0x0]['attributes']['groupId']&&_0x8e3da[0x0]['author']!==_0x4c0eec[0x0]['author'])return!0x1;if(!function(_0x31063f,_0x333550){if(!_0x31063f['hasComments']&&!_0x333550['hasComments'])return!0x0;if(_0x31063f['hasComments']&&_0x333550['hasComments'])return!0x1;if(_0x31063f['hasComments']&&_0x333550['createdAt']<_0x31063f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x333550['hasComments']&&_0x31063f['createdAt']<_0x333550['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x8e3da[0x0],_0x4c0eec[0x0]))return!0x1;const _0x362bf6=Tt(_0x8e3da[0x0]['attributes'],'groupId'),_0x3ef5ba=Tt(_0x4c0eec[0x0]['attributes'],'groupId');if(!_0x599b4c(_0x362bf6,_0x3ef5ba))return!0x1;return!!_0x8e3da['every'](_0x1167d0=>_0x4c0eec['some'](_0x339f95=>_0x1167d0['getFirstRange']()['isEqual'](_0x339f95['getFirstRange']())))&&_0x4c0eec['every'](_0x585982=>_0x8e3da['some'](_0x2e4860=>_0x585982['getFirstRange']()['isEqual'](_0x2e4860['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2e063b){const _0x37b743=Array['from'](_0x2e063b),_0x4e3634=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5c1f00=_0x4e3634['filter'](_0xfbf6a4=>!_0x2e063b['has'](_0xfbf6a4)),_0xeb30c=new Map(_0x37b743['map'](_0xbd775e=>[_0xbd775e,this['_suggestionFactory']['getSuggestionCallback'](_0xbd775e['type'],_0xbd775e['subType'],'join')])),_0x16c7d1=new Map(_0x4e3634['map'](_0x34f349=>[_0x34f349,_0x34f349['getRanges']()]));for(let _0xc7be4d=0x0;_0xc7be4d<_0x37b743['length'];_0xc7be4d++){if(_0x33fde5(this,_0x37b743[_0xc7be4d],_0x37b743,_0xc7be4d+0x1))return!0x0;}for(let _0x39984a=0x0;_0x39984a<_0x37b743['length'];_0x39984a++){if(_0x33fde5(this,_0x37b743[_0x39984a],_0x5c1f00,0x0))return!0x0;}return!0x1;function _0x33fde5(_0x17a2e6,_0x16f887,_0x312d20,_0x3b328c){for(let _0x3cfac7=_0x3b328c;_0x3cfac7<_0x312d20['length'];_0x3cfac7++){const _0x24a7c8=_0x312d20[_0x3cfac7];if(_0x24a7c8['type']!==_0x16f887['type']||_0x24a7c8['author']['id']!==_0x16f887['author']['id']||_0x24a7c8['subType']!==_0x16f887['subType'])continue;if(!Jt(_0x16f887,_0x24a7c8))continue;if('attribute'==_0x16f887['type']&&_0x16f887['data']['oldValue']!=_0x24a7c8['data']['oldValue'])continue;if('attribute'==_0x16f887['type']&&_0x17a2e6['_isBlockAttribute'](_0x16f887['data']['key']))continue;if('formatBlock'==_0x16f887['type']){const _0x2f530b=_0x17a2e6['editor']['model'],_0x56a1e5=_0x16f887['getContainedElement']();if(_0x56a1e5&&(_0x2f530b['schema']['isObject'](_0x56a1e5)||_0x2f530b['schema']['isLimit'](_0x56a1e5)))continue;}const _0xe2c7d9=_0xeb30c['get'](_0x16f887),_0x42ccfe=_0x16c7d1['get'](_0x16f887),_0x1f960e=_0x16c7d1['get'](_0x24a7c8),_0x4d990e=_0x16f887['commentThread']&&_0x16f887['commentThread']['length'],_0x17089f=_0x24a7c8['commentThread']&&_0x24a7c8['commentThread']['length'];if(!_0x4d990e&&_0xe2c7d9(_0x1f960e,_0x42ccfe))return _0x17a2e6['_joinSuggestions'](_0x24a7c8,_0x16f887),_0x16c7d1['delete'](_0x16f887),!0x0;if(!_0x17089f&&_0xe2c7d9(_0x42ccfe,_0x1f960e))return _0x17a2e6['_joinSuggestions'](_0x16f887,_0x24a7c8),_0x16c7d1['delete'](_0x24a7c8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c24f4,_0x5bf39f){if(_0x2c24f4['isMultiRange']){for(const _0x4b79da of _0x5bf39f['getRanges']())_0x2c24f4['addRange'](_0x4b79da);}else{const _0x54af96=_0x5bf39f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c24f4,this['_model']['createRange'](_0x2c24f4['getFirstRange']()['start'],_0x54af96));}_0x5bf39f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4aaba7,_0x3d3652,_0x1584c6){const _0x4f8bc7=_0x4aaba7['startsWith']('format')||_0x4aaba7['startsWith']('attribute')?'FORMATTING':_0x4aaba7['toUpperCase']();return o(this['editor']['locale'],_0x3d3652+'_'+_0x4f8bc7+'_SUGGESTION_ANNOUNCEMENT',_0x1584c6);}['_initAriaMarkerChangeAnnouncements'](){const _0x2e9394=this['editor'];if(!_0x2e9394['ui'])return;const {ariaLiveAnnouncer:_0x4160af}=_0x2e9394['ui'];_0x5abc58(this['_model'],({left:_0x53e042,entered:_0x3d9a95})=>{for(const _0x294d60 of _0x53e042){const {group:_0x590c1a,type:_0x53076a}=this['_splitMarkerName'](_0x294d60['name']);if('suggestion'===_0x590c1a){_0x4160af['announce'](this['_getMarkerAnnouncementText'](_0x53076a,'LEAVE'));break;}}for(const _0x235e81 of _0x3d9a95){const {group:_0x17c4f7,type:_0x535c0f}=this['_splitMarkerName'](_0x235e81['name']);if('suggestion'===_0x17c4f7){_0x4160af['announce'](this['_getMarkerAnnouncementText'](_0x535c0f,'ENTER',_0x51ffb5(_0x2c24fb)));break;}}});}['_processAttributeChanges'](_0x5a562e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4aed47=this['editor'],_0x40877e=_0x4aed47['model']['document']['differ']['getChanges']();if(0x0==_0x40877e['length'])return!0x1;const _0x44f4cd=[],_0x4f9f9a=_0x40877e['filter'](_0x308e1a=>'attribute'==_0x308e1a['type']),_0x5896e4=_0x40877e['filter'](_0xd228e=>'insert'==_0xd228e['type']&&'$text'!=_0xd228e['name']),_0x3bd3b6=_0x40877e['filter'](_0xa44326=>'remove'==_0xa44326['type']&&'$text'!=_0xa44326['name']);for(const _0x51236a of _0x4f9f9a)_0x44f4cd['push']({'key':_0x51236a['attributeKey'],'newValue':_0x51236a['attributeNewValue'],'oldValue':_0x51236a['attributeOldValue'],'range':Pt(_0x51236a['range'],_0x4aed47['model'])});for(const _0x3a5c8e of _0x5896e4){const _0x3704b5=_0x3bd3b6['find'](_0x54fec4=>_0x54fec4['position']['isEqual'](_0x3a5c8e['position']));_0x3704b5&&_0x44f4cd['push']({'key':m,'newValue':_0x3a5c8e['name'],'oldValue':_0x3704b5['name'],'range':_0x4aed47['model']['createRangeOn'](_0x3a5c8e['position']['nodeAfter'])});}return 0x0!=_0x44f4cd['length']&&this['_reduceExistingSuggestions'](_0x5a562e,_0x44f4cd);}['_processAttributeSuggestions'](_0x23ac47){let _0x268e85=!0x1;const _0x2534db=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3840af=>_0x3840af['data']['newRange']&&_0x3840af['name']['startsWith']('suggestion:attribute:'));for(const _0x35db78 of _0x2534db){const {subType:_0x8afd95,id:_0x4fc289}=this['_splitMarkerName'](_0x35db78['name']),_0x321019=_0x8afd95['split']('|')[0x0];for(const _0x25e18c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x25e18c['id']!=_0x4fc289&&'attribute'==_0x25e18c['type']&&_0x25e18c['data']&&_0x25e18c['data']['key']==_0x321019&&_0x25e18c['getFirstRange']()['isIntersecting'](_0x35db78['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x25e18c,_0x35db78['data']['newRange'],_0x23ac47),_0x268e85=!0x0);}return _0x268e85;}['_recordAttributeChanges'](_0x255285){this['_recordAttributeSuggestions']=!0x0,_0x255285();}['_isRegisteredAttribute'](_0x42050b){const _0x34f2d6=this['_isBlockAttribute'](_0x42050b),_0x42045c=this['_inlineAttributeKeys']['has'](_0x42050b);return _0x34f2d6||_0x42045c;}['_reduceExistingSuggestions'](_0x3ebf05,_0x6f5f7){if(0x0==_0x6f5f7['length'])return!0x1;let _0x2985ec=!0x1;for(const _0x1f35fb of _0x6f5f7){const _0x5a30c2=this['_findSuggestions'](_0x1f35fb['range'],'attribute')['filter'](_0xcd01a4=>!_0xcd01a4['meta']['isNextTo'])['map'](_0x425cbe=>_0x425cbe['suggestion']),_0xa21c00=_0x3c88ec({'newValue':_0x1f35fb['newValue']});_0x5a30c2['filter'](_0xa7ff20=>{const [_0x4d2eb9,_0x20d95b]=_0xa7ff20['subType']['split']('|');return _0x4d2eb9==_0x1f35fb['key']&&_0x20d95b!=_0xa21c00;})['forEach'](_0x1e52cb=>{this['_reduceSuggestionAttributeRange'](_0x1e52cb,_0x1f35fb['range'],_0x3ebf05),_0x2985ec=!0x0;});}return _0x2985ec;}['_reduceSuggestionAttributeRange'](_0x1ceee2,_0x596023,_0x54301a){const _0x5000eb=_0x1ceee2['getFirstRange']()['getDifference'](_0x596023);0x0!==_0x5000eb['length']?0x1!==_0x5000eb['length']?this['_breakSuggestionMarker'](_0x1ceee2,_0x596023['start'],_0x596023['end']):this['_setSuggestionRange'](_0x1ceee2,_0x5000eb[0x0]):_0x54301a['removeMarker'](_0x1ceee2['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x546002){this['_editor']=_0x546002,this['_model']=_0x546002['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5e1313,_0x4cca15,_0x1e79af,_0x1d287f,_0x2be239,_0x1a4714){return new u(this['_model'],{'type':_0x5e1313,'subType':_0x4cca15,'id':_0x1e79af,'author':_0x1d287f,'creator':_0x1d287f,'attributes':_0x2be239,'onAttributesChange':_0x1a4714,'onAccept':(..._0x18af2e)=>this['getSuggestionCallback'](_0x5e1313,_0x4cca15,'accept')(..._0x18af2e),'onDiscard':(..._0x56cb2e)=>this['getSuggestionCallback'](_0x5e1313,_0x4cca15,'discard')(..._0x56cb2e)});}['registerCustomCallback'](_0x40332c,_0x498784,_0x34ae62,_0x18d044){const _0x2bd565=_0x40332c+':'+_0x498784+':'+_0x34ae62;this['_customCallbacks']['set'](_0x2bd565,_0x18d044);}['getSuggestionCallback'](_0x2d2c83,_0x4dc5d3,_0x542f18){const _0x3d2505=_0x2d2c83+':'+_0x4dc5d3+':'+_0x542f18;return this['_customCallbacks']['get'](_0x3d2505)||this['_defaultCallbacks']['get'](_0x2d2c83+':'+_0x542f18);}['_registerDefaultCallbacks'](){const _0x190ac8=()=>!0x1,_0x5c3257=_0x13b41e=>{_0x13b41e['sort']((_0x1034d9,_0x14e756)=>_0x1034d9['start']['isBefore'](_0x14e756['start'])?0x1:-0x1),this['_model']['change'](_0x282b63=>{for(const _0x565a4e of _0x13b41e){let _0x183711;_0x183711=_0x565a4e['end']['isAtEnd']&&_0x565a4e['end']['parent']==_0x565a4e['start']['nodeAfter']?_0x282b63['createSelection'](_0x565a4e['start']['nodeAfter'],'on'):_0x282b63['createSelection'](_0x565a4e),this['_model']['deleteContent'](_0x183711,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5be99a=(_0x4df814,_0x5b197b)=>{_0x5b197b&&this['_model']['change'](_0x3a880e=>{const {commandName:_0x35e029,commandParams:_0x276345=[]}=_0x5b197b,_0x36c15c=_0x4df814['map'](_0x587915=>(Vt(_0x587915)&&(_0x587915=this['_model']['createRange'](_0x587915['end'])),_0x587915))['filter'](_0x174cd7=>'$graveyard'!==_0x174cd7['root']['rootName']);if(_0x36c15c['length']<0x1)return;const _0x84d138=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x72e077=>_0x5e2088['fromRange'](_0x72e077));_0x3a880e['setSelection'](_0x36c15c);for(const _0x308bf1 of this['_editor']['commands']['commands']())_0x308bf1['refresh']();_0x276345['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x35e029,..._0x276345);const _0x1f4eec=_0x84d138['filter'](_0x1ff8d9=>'$graveyard'!=_0x1ff8d9['root']['rootName']);_0x1f4eec['length']>0x0&&_0x3a880e['setSelection'](_0x1f4eec);for(const _0x51a3fa of _0x84d138)_0x51a3fa['detach']();});},_0x4c1e16=(_0x1e6299,_0x228400)=>0x1==_0x1e6299['length']&&0x1==_0x228400['length']&&_0x1e6299[0x0]['end']['isEqual'](_0x228400[0x0]['start']),_0x10384e=(_0x1960bb,_0x3f669f,_0x5e8546,_0x20600e)=>Ht(_0x1960bb,_0x3f669f,_0x5e8546,_0x20600e,this['_model'])?[_0x1960bb,_0x3f669f]:Ht(_0x3f669f,_0x1960bb,_0x20600e,_0x5e8546,this['_model'])?[_0x3f669f,_0x1960bb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x190ac8),this['_defaultCallbacks']['set']('insertion:discard',_0x5c3257),this['_defaultCallbacks']['set']('insertion:join',_0x4c1e16),this['_defaultCallbacks']['set']('insertion:chain',_0x10384e),this['_defaultCallbacks']['set']('deletion:accept',_0x5c3257),this['_defaultCallbacks']['set']('deletion:discard',_0x190ac8),this['_defaultCallbacks']['set']('deletion:join',_0x4c1e16),this['_defaultCallbacks']['set']('deletion:chain',_0x10384e),this['_defaultCallbacks']['set']('formatInline:accept',_0x5be99a),this['_defaultCallbacks']['set']('formatInline:discard',_0x190ac8),this['_defaultCallbacks']['set']('formatInline:join',_0x4c1e16),this['_defaultCallbacks']['set']('formatInline:chain',_0x190ac8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5be99a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x190ac8),this['_defaultCallbacks']['set']('formatBlock:join',_0x4c1e16),this['_defaultCallbacks']['set']('formatBlock:chain',_0x190ac8),this['_defaultCallbacks']['set']('attribute:accept',_0x190ac8),this['_defaultCallbacks']['set']('attribute:discard',(_0x2b3396,_0x4d5f55)=>{if(!_0x4d5f55)return;const _0x5851bc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3f1c5f=>{if(_0x4d5f55['key']==m)for(const _0x1a3361 of _0x2b3396){const _0x4dd54d=_0x1a3361['start']['nodeAfter'],_0x275661=_0x4d5f55['oldValue'];_0x3f1c5f['rename'](_0x4dd54d,_0x275661);}else{if(_0x5851bc['_isBlockAttribute'](_0x4d5f55['key'])){for(const _0x62b73f of _0x2b3396)void 0x0!==_0x4d5f55['oldValue']?_0x3f1c5f['setAttribute'](_0x4d5f55['key'],_0x4d5f55['oldValue'],_0x62b73f['start']['nodeAfter']):_0x3f1c5f['removeAttribute'](_0x4d5f55['key'],_0x62b73f['start']['nodeAfter']);}else{for(const _0x2e30f7 of _0x2b3396)_0x4d5f55['oldValue']?_0x3f1c5f['setAttribute'](_0x4d5f55['key'],_0x4d5f55['oldValue'],_0x2e30f7):_0x3f1c5f['removeAttribute'](_0x4d5f55['key'],_0x2e30f7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4c1e16);}}function Ot(_0x90c348,_0x5c6ccf,_0x47083b){for(const _0x28330b of _0x5c6ccf['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28330b['root']==_0x28330b)return!0x1;if(!_0x47083b['containsItem'](_0x28330b))return!0x1;if(_0x90c348['isObject'](_0x28330b)||_0x90c348['isLimit'](_0x28330b))return!0x0;}return!0x1;}function Vt(_0x46786f){return _0x46786f['end']['parent']==_0x46786f['start']['nodeAfter']&&_0x46786f['end']['isAtStart'];}function Ut(_0x5ae181,_0x34f0cc,_0x249ebc,_0x4b94c0){const _0x134602=_0x558f35=>!_0x558f35['item']['is']('$textProxy')&&!_0x4b94c0['isObject'](_0x558f35['item']),_0x2d1e2d=_0x5ae181['start']['getLastMatchingPosition'](_0x134602),_0x4cfe74=_0x5ae181['end']['getLastMatchingPosition'](_0x134602,{'direction':'backward'});return(!_0x5ae181['start']['isEqual'](_0x2d1e2d)||!_0x5ae181['end']['isEqual'](_0x4cfe74))&&(_0x2d1e2d['isBefore'](_0x4cfe74)?_0x249ebc['updateMarker'](_0x34f0cc,{'range':_0x249ebc['createRange'](_0x2d1e2d,_0x4cfe74)}):_0x249ebc['removeMarker'](_0x34f0cc),!0x0);}function Gt(_0x3f4853){return _0x3c88ec(_0x3f4853);}function Ft(_0x158327){const _0x51e1e2=_0x158327['start']['nodeAfter'];return _0x51e1e2&&_0x51e1e2['is']('element');}function Pt(_0x17cfad,_0x4a9f56){return null==_0x17cfad['end']['nodeBefore']&&_0x17cfad['end']['parent']==_0x17cfad['start']['nodeAfter']?Lt(_0x17cfad['start']['nodeAfter'],_0x4a9f56):_0x17cfad;}function Lt(_0x4140d6,_0x2c36fa){const _0x5e7baf=_0x2c36fa['schema']['isObject'](_0x4140d6)||_0x2c36fa['schema']['isSelectable'](_0x4140d6);return _0x2c36fa['createRange'](_0x2c36fa['createPositionAt'](_0x4140d6,'before'),_0x5e7baf?_0x2c36fa['createPositionAfter'](_0x4140d6):_0x2c36fa['createPositionAt'](_0x4140d6,'end'));}function Ht(_0xd1b159,_0x138af0,_0x164613,_0x470580,_0x531c83){if(_0xd1b159['next'])return!0x1;if(!Jt(_0xd1b159,_0x138af0))return!0x1;if(_0x164613['end']['isEqual'](_0x470580['start']))return!0x0;if(_0xd1b159['type']!=_0x138af0['type'])return!0x1;if(!_0x164613['end']['isTouching'](_0x470580['start']))return!0x1;const _0x36ae4f=_0x531c83['createRange'](_0x164613['end'],_0x470580['start'])['getWalker']();for(const _0x973cf2 of _0x36ae4f)if(['elementStart','elementEnd']['includes'](_0x973cf2['type'])&&_0x531c83['schema']['isLimit'](_0x973cf2['item']))return!0x1;return!0x0;}function Jt(_0x585188,_0x52b09a){if(!_0x585188['_isDataLoaded']||!_0x52b09a['_isDataLoaded'])return!0x1;const _0x45beb9=new Set(Object['keys'](_0x585188['attributes'])),_0x440dd3=new Set(Object['keys'](_0x52b09a['attributes']));if(_0x45beb9['delete']('groupId'),_0x440dd3['delete']('groupId'),0x0==_0x45beb9['size']&&0x0==_0x440dd3['size'])return!0x0;if(_0x45beb9['size']!=_0x440dd3['size'])return!0x1;const _0x5a8ae8={..._0x585188['attributes']},_0x3ccb13={..._0x52b09a['attributes']};return delete _0x5a8ae8['groupId'],delete _0x3ccb13['groupId'],JSON['stringify'](_0x5a8ae8)==JSON['stringify'](_0x3ccb13);}function qt(_0x69ed13,_0x38b3a4){const _0x5a0282=zt(_0x69ed13['attributes']),_0x3370b1=zt(_0x38b3a4);if(!_0x69ed13['_isDataLoaded'])return!0x1;for(const _0x387a31 of Object['keys'](_0x3370b1))if(!_0x599b4c(_0x5a0282[_0x387a31],_0x3370b1[_0x387a31]))return!0x1;return!0x0;}function zt(_0x474c61){const _0x28af21=Object['assign']({},_0x474c61);return delete _0x28af21['skipNestingCheck'],delete _0x28af21['tablePasteChainId'],_0x28af21;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3b24e8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x192a2d,_0x1db4d2,_0x573881,_0x59f4c9){super(),this['model']=_0x1db4d2,this['view']=_0x573881,this['commentThreadController']=_0x59f4c9,this['_editor']=_0x192a2d,this['_acceptCommand']=_0x192a2d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x192a2d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2164f4,_0x3d9df4)=>_0x2164f4||_0x3d9df4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3e0077=>_0x3e0077&&this['_editor']['model']['canEditAt'](_0x1db4d2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x41cf8a=>_0x41cf8a&&this['_editor']['model']['canEditAt'](_0x1db4d2['getRanges']())),this['_pendingAction']=null,_0x573881['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x573881,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x573881,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x573881,'change:isDirty',()=>{_0x573881['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 _0x238d7a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x238d7a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x193ba2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2a0cc3,_0x5d2ba8,_0x404881,_0x1d185c){super(_0x2a0cc3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x577152(_0x2a0cc3,o(_0x2a0cc3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d2ba8['authoredAt']),this['bind']('authoredAt')['to'](_0x5d2ba8),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',_0x5d2ba8,'authoredAt',this,'descriptionParts',(_0x56a306,_0x1b6442,_0x3de07d)=>{const _0x534a6b=_0x3de07d['map'](_0x30e980=>ls(_0x30e980['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x56a306-0x1,_0x5d2ba8['author']['name'],_0x1b6442?_0x1d185c['formatDateTime'](_0x1b6442):'',new DOMParser()['parseFromString'](_0x534a6b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x173d6d(),this['focusTracker']=new _0x369830(),this['keystrokes']=new _0x3d06ef(),this['focusCycler']=new _0x517967({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x118efe=>_0x118efe['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d2ba8,this['_localUser']=_0x404881,this['_config']=_0x1d185c,_0x1d185c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4aae6d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x245658}=this['_config'];this['commentsListView']=new _0x245658(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',_0x1d7ef2=>_0x1d7ef2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x44a660,_0x57d123)=>_0x44a660||!!_0x57d123);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2a51bc}=this['_config'],_0x573952=new _0x2a51bc(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x196ade=_0x573952['commentInputView'];return _0x573952['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x196ade,'value',(_0x56820c,_0x3bb88e,_0x2194fd)=>!!_0x2194fd||_0x56820c&&!_0x3bb88e),_0x196ade['on']('submit',(_0x595149,_0x49eedb)=>{this['fire']('addComment',_0x49eedb),_0x196ade['editor']['setData']('');}),_0x196ade['on']('cancel',()=>this['focus']()),_0x196ade['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x573952;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3fd129,_0x20bd1d,_0x32e838,_0x6119e){super(_0x3fd129,_0x20bd1d,_0x32e838,_0x6119e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x17ba8f=>_0x17ba8f&&_0x17ba8f[0x0]?_0x17ba8f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x409df5,_0x2dfbbb)=>{let _0x406f92='';for(const _0x2e3c1d of _0x409df5)_0x406f92+='<p>'+ls(_0x2e3c1d['content'],_0x2e3c1d['color'])+'</p>';return _0x2dfbbb?_0x406f92:_0x59e3e6(_0x406f92,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x6119e['SuggestionView'](_0x3fd129,_0x20bd1d,{'formatDateTime':_0x6119e['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 _0x46c0=this['bindTemplate'],_0x4cfcb1=[this['suggestionView']];return this['commentsListView']&&_0x4cfcb1['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4cfcb1['push'](this['commentThreadInputView']),_0x4cfcb1['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x46c0['if']('isActive','ck-suggestion-wrapper--active'),_0x46c0['to']('type',_0x1b909d=>'ck-suggestion-'+_0x1b909d),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':_0x46c0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4cfcb1};}['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 _0x193ba2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5adbcd,_0xe014d0,_0x14d960){super(_0x5adbcd),this['_model']=_0xe014d0,this['_config']=_0x14d960,this['set']('description',''),this['bind']('authoredAt')['to'](_0xe014d0),this['acceptButton']=this['_createButton'](o(_0x5adbcd,'Accept\x20suggestion'),_0x16fa2c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5adbcd,'Discard\x20suggestion'),_0x16fa2c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a5ca3(_0x5adbcd,_0xe014d0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x173d6d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x369830(),this['keystrokes']=new _0x3d06ef(),this['focusCycler']=new _0x517967({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x42b774=>_0x42b774['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x9076d6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x9076d6['innerHTML']=this['description'],this['on']('change:description',(_0x2aabb6,_0x3b3808,_0x18209d)=>{_0x9076d6['innerHTML']=_0x18209d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x209aba=this['bindTemplate'],_0x2e79a1=[{'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':_0x209aba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x209aba['to']('authoredAt',_0x206ac6=>this['_config']['formatDateTime'](_0x206ac6))}]}]},{'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']&&_0x2e79a1['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':_0x2e79a1}]};}['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'](_0x335393,_0x114a93,_0x41051f,_0x1f1949,_0x56ec2b){const _0x497c79=new _0x428c53(this['locale']);return _0x497c79['set']({'label':_0x335393,'icon':_0x114a93,'tooltip':!0x0,'tooltipPosition':_0x56ec2b}),_0x497c79['extendTemplate']({'attributes':{'class':_0x41051f}}),_0x497c79['on']('execute',()=>{this['fire'](_0x1f1949,this['_model']['id']);}),_0x497c79;}['_setupKeyboardNavigation'](){const _0x1973ae=this['element'];this['keystrokes']['listenTo'](_0x1973ae);for(const _0x2688b1 of this['focusables'])this['focusTracker']['add'](_0x2688b1['element']),this['keystrokes']['listenTo'](_0x2688b1['element']);this['keystrokes']['set']('enter',(_0x4c5952,_0x5015f1)=>{_0x1973ae===_0x4c5952['target']&&(this['focusCycler']['focusFirst'](),_0x5015f1());}),this['keystrokes']['set']('esc',(_0x6605c3,_0x2f6968)=>{_0x1973ae!==_0x6605c3['target']&&(this['focus'](),_0x2f6968());});}}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 _0x3b500e{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x35af3d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x35e6a8){super(_0x35e6a8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c6416=this['editor']['config'];_0x3c6416['define']('trackChanges.SuggestionThreadView',re),_0x3c6416['define']('trackChanges.SuggestionView',ce),_0x3c6416['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c6416['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2b5312,_0x43fa5e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4630e3,_0x3264b2]of this['_handleControllerBuffer']){const _0x3d530f=this['_suggestionToController']['has'](_0x4630e3);_0x3d530f||_0x3264b2?_0x3d530f&&_0x3264b2&&this['_destroyController'](_0x4630e3):this['_initializeController'](_0x4630e3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2b5312,_0x43fa5e);}['init'](){const _0x4734c2=this['editor'],_0x314768=_0x4734c2['plugins']['get']('TrackChangesEditing'),_0x21c6a7=_0x4734c2['plugins']['get']('Annotations'),_0x4519ff=_0x4734c2['plugins']['get']('EditorAnnotations'),_0x53f090=_0x4734c2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4519ff['addSourceCollector'](()=>{const _0x22c060=[];for(const [_0x13bec4,_0x424831]of Array['from'](this['_suggestionToController'])){const _0x10e0cf=_0x13bec4['getAllAdjacentSuggestions'](),_0x237d6a=[];for(const _0x2a433b of _0x10e0cf){if(!_0x2a433b['isInContent'])continue;if(_0x2a433b['isMultiRange']){_0x237d6a['push'](..._0x2a433b['getRanges']());continue;}const _0x434f54=_0x2a433b['getFirstRange']();if(_0x237d6a['length']>0x0){const _0xe4b17=_0x237d6a[0x0]['getJoined'](_0x434f54);if(_0xe4b17){_0x237d6a[0x0]=_0xe4b17;continue;}}_0x237d6a['push'](_0x434f54);}_0x22c060['push']([_0x424831['view'],_0x237d6a]);}return _0x22c060;}),this['listenTo'](_0x314768,'suggestionLoaded',(_0x92e328,_0x5db73f)=>{this['listenTo'](_0x5db73f,'change:previous',(_0x129f34,_0x52c017,_0x332e3c,_0x49c202)=>{_0x5db73f['isInContent']&&(null==_0x332e3c?(this['_updateController'](_0x49c202['head']),this['_handleSuggestionControllerDelayed'](_0x5db73f,!0x1)):(this['_updateController'](_0x332e3c['head']),null==_0x49c202&&this['_handleSuggestionControllerDelayed'](_0x5db73f,!0x0)));}),null!==_0x5db73f['previous']?this['_updateController'](_0x5db73f['head']):this['_handleSuggestionControllerDelayed'](_0x5db73f,!0x1);}),this['listenTo'](_0x314768,'suggestionUnloaded',(_0x367780,_0x2a2ca1,_0x224aee)=>{this['stopListening'](_0x2a2ca1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2a2ca1),this['_suggestionToController']['has'](_0x2a2ca1)&&this['_destroyController'](_0x2a2ca1),_0x224aee&&this['_updateController'](_0x224aee['head']);}),this['listenTo'](_0x314768,'suggestionChanged',(_0x451d06,_0x171022)=>{this['_updateController'](_0x171022);}),this['listenTo'](_0x21c6a7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x53f090,'addComment',(_0x315170,{threadId:_0xe62702,isFromAdapter:_0x317546})=>{if(_0x317546||!_0x314768['hasSuggestion'](_0xe62702))return;const _0x464064=_0x314768['getSuggestion'](_0xe62702);this['_suggestionToController']['get'](_0x464064)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4dca54=this['editor']['plugins']['get']('Annotations'),_0x419679=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25d846=Array['from'](_0x4dca54['activeAnnotations'],_0x2f2727=>_0x2f2727['innerView'])['filter'](_0x184974=>this['_viewToController']['has'](_0x184974)),_0xe1f226=[];for(const _0x74750f of _0x25d846){const _0x4cb045=this['_viewToController']['get'](_0x74750f)['model']['getAllAdjacentSuggestions']();_0xe1f226['push'](..._0x4cb045['reduce']((_0x4aae14,_0x528175)=>[..._0x4aae14,..._0x528175['getMarkerNames']()],[]));}_0x419679['activeMarkers']=_0xe1f226;}['_addUIComponentsToFactory'](){const _0x490767=this['editor'],_0x126dca=_0x490767['locale'],_0x23eba8=o(_0x126dca,'Track\x20changes'),_0x579f44=new Wt([{'type':'switchbutton','model':new _0x15d12e({'withText':!0x0,'isToggleable':!0x0,'label':_0x23eba8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x15d12e({'withText':!0x0,'label':o(_0x126dca,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15d12e({'withText':!0x0,'label':o(_0x126dca,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15d12e({'withText':!0x0,'label':o(_0x126dca,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15d12e({'withText':!0x0,'label':o(_0x126dca,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x290a4a of _0x579f44)if(me(_0x290a4a)){const _0x27cd96=_0x490767['commands']['get'](_0x290a4a['model']['commandName']);_0x290a4a['model']['bind']('isOn','isEnabled')['to'](_0x27cd96,'value','isEnabled');}_0x490767['ui']['componentFactory']['add']('trackChanges',_0x11218f=>this['_createToolbarButton'](_0x11218f,_0x579f44,_0x23eba8)),_0x490767['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4fcc17=>this['_createMenuBarMenu'](_0x4fcc17,_0x579f44,_0x23eba8));}['_createToolbarButton'](_0x355110,_0x3ab55f,_0x296713){const _0x49b622=Qt(_0x355110,_0x2d7119),_0x5716d2=this['editor']['commands']['get']('trackChanges');_0x49b622['buttonView']['set']({'tooltip':_0x296713,'label':_0x296713,'icon':he}),_0x49b622['buttonView']['bind']('isOn')['to'](_0x5716d2,'value'),_0x49b622['buttonView']['on']('execute',()=>{_0x5716d2['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x49b622,_0x3ab55f,{'role':'menu'});const _0x592a88=[];for(const _0x5c4249 of _0x3ab55f)me(_0x5c4249)&&_0x592a88['push'](this['editor']['commands']['get'](_0x5c4249['model']['commandName']));const _0x1e5306=_0x49b622['buttonView'];return _0x1e5306['actionView']['unbind']('isEnabled'),_0x1e5306['arrowView']['unbind']('isEnabled'),_0x1e5306['actionView']['bind']('isEnabled')['to'](_0x5716d2,'isEnabled'),_0x1e5306['arrowView']['bind']('isEnabled')['toMany'](_0x592a88,'isEnabled',(..._0x454632)=>_0x454632['some'](_0x1f56e3=>_0x1f56e3)),_0x49b622['on']('execute',_0x5c3b48=>{this['editor']['execute'](_0x5c3b48['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x49b622;}['_createMenuBarMenu'](_0x4e3103,_0x332064,_0x3c08f2){const _0x11a433=new Yt(_0x4e3103),_0x242c53=this['editor']['commands']['get']('trackChanges');_0x11a433['buttonView']['set']({'label':_0x3c08f2,'icon':he});const _0x4d246f=new Zt(_0x4e3103);for(const _0x5bd787 of _0x332064){if('separator'==_0x5bd787['type']){_0x4d246f['items']['add'](new Xt(_0x4e3103));continue;}const _0x16e1c8=new te(_0x4e3103,_0x11a433),_0x372359=new _0x44f3fc(_0x4e3103),_0x44abeb=_0x5bd787['model'];_0x372359['bind'](...Object['keys'](_0x44abeb))['to'](_0x44abeb),_0x372359['delegate']('execute')['to'](_0x11a433),_0x372359['on']('execute',()=>{this['editor']['execute'](_0x44abeb['commandName']),this['editor']['editing']['view']['focus']();}),_0x16e1c8['children']['add'](_0x372359),_0x4d246f['items']['add'](_0x16e1c8);}return _0x11a433['bind']('isEnabled')['to'](_0x242c53,'isEnabled'),_0x11a433['panelView']['children']['add'](_0x4d246f),_0x11a433;}['_initializeController'](_0x3bd45e){const _0x1c7398=this['editor'],_0xb472e8=_0x1c7398['config'],_0x46a14e=_0x1c7398['plugins']['get']('Annotations'),_0x1cf33c=_0x1c7398['plugins']['get']('CommentsRepository'),_0x2493b3=_0x1c7398['plugins']['get']('EditorAnnotations'),_0x14c8b4=_0x1c7398['plugins']['get'](_0x35af3d)['me'],_0x54931f=_0xb472e8['get']('trackChanges')['SuggestionThreadView'],_0x3fccc9=_0xb472e8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x45a036,CommentThreadInputView:_0x43883e}=_0x1c7398['plugins']['get']('CommentsUI');let _0x10d21c,_0x50cc61,_0x24b21f;this['_annotationViews']['has'](_0x3bd45e['id'])?(_0x50cc61=this['_annotationViews']['get'](_0x3bd45e['id']),_0x10d21c=_0x50cc61['mainView']):(_0x10d21c=new _0x54931f(_0x1c7398['locale'],_0x3bd45e,_0x14c8b4,{'disableComments':this['_disableComments'],'editorConfig':_0xb472e8['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xb472e8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xb472e8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xb472e8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4d619e(_0xb472e8['get']('locale')),'CommentView':_0xb472e8['get']('comments')['CommentView'],'CommentsListView':_0x45a036,'CommentThreadInputView':_0x43883e,'SuggestionView':_0x3fccc9}),_0x10d21c['suggestionView']['acceptButton']['on']('execute',()=>{_0x1c7398['editing']['view']['focus']();}),_0x10d21c['suggestionView']['discardButton']['on']('execute',()=>{_0x1c7398['editing']['view']['focus']();}),_0x50cc61=_0x46a14e['createAnnotationView'](this['editor']['locale'],_0x10d21c),_0x50cc61['bind']('isDirty')['to'](_0x10d21c,'isDirty'),_0x50cc61['bind']('length')['to'](_0x10d21c),_0x50cc61['bind']('type')['to'](_0x10d21c,'type',_0x3608fc=>'suggestion-'+_0x3608fc),_0x10d21c['on']('escape',()=>{_0x24b21f['fire']('escape');}),this['_annotationViews']['set'](_0x3bd45e['id'],_0x50cc61));const _0x3965ad=_0x1cf33c['createCommentThreadController'](_0x3bd45e['commentThread'],_0x10d21c),_0x482631=new ae(_0x1c7398,_0x3bd45e,_0x10d21c,_0x3965ad),_0xfdbfcd=_0x3bd45e['getAllAdjacentSuggestions']()['filter'](_0x45271c=>_0x45271c['isInContent']);_0x10d21c['descriptionParts']=_0x1c7398['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xfdbfcd),this['_suggestionToController']['set'](_0x3bd45e,_0x482631),this['_viewToController']['set'](_0x10d21c,_0x482631),_0x24b21f=_0x46a14e['createAnnotation']({'view':_0x50cc61,'target':()=>{const _0x2b51ac=[],_0x227afa=_0x3bd45e['getAllAdjacentSuggestions']()['filter'](_0x18b753=>_0x18b753['isInContent']);for(const _0x5ea112 of _0x227afa)_0x2b51ac['push'](..._0x5ea112['getMarkers']());return _0x29c9c0(_0x1c7398['editing'],_0x2b51ac);},'type':()=>'suggestion-'+_0x482631['view']['type']}),_0x1cf33c['_bindAnnotationToEditors'](_0x10d21c,_0x24b21f),_0x46a14e['add'](_0x24b21f),_0x2493b3['registerAnnotation'](_0x24b21f);}['_destroyController'](_0x40af11){const _0x2a1498=this['editor']['plugins']['get']('CommentsRepository'),_0x52c90b=this['editor']['plugins']['get']('Annotations'),_0x474558=this['_suggestionToController']['get'](_0x40af11),_0x4fe984=_0x474558['view'],_0x5928a9=_0x52c90b['getByInnerView'](_0x4fe984);_0x2a1498['_unbindEditors'](_0x4fe984),_0x5928a9&&_0x52c90b['remove'](_0x5928a9),this['_suggestionToController']['delete'](_0x40af11),this['_viewToController']['delete'](_0x4fe984),_0x474558['destroy']();}['_updateController'](_0x66ff71){if(!_0x66ff71['isInContent']||!this['_suggestionToController']['has'](_0x66ff71))return;const _0xbd872e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x365f7c=this['_suggestionToController']['get'](_0x66ff71),_0x1c299e=_0x66ff71['getAllAdjacentSuggestions']();_0x365f7c['view']['descriptionParts']=_0xbd872e['descriptionFactory']['getDescriptions'](_0x1c299e);}['destroy'](){for(const _0x52ef41 of this['_suggestionToController']['keys']())this['_destroyController'](_0x52ef41);for(const _0x3ee6b0 of this['_annotationViews']['values']())_0x3ee6b0['mainView']['destroy']();super['destroy']();}}function me(_0x21ca44){return'model'in _0x21ca44;}class k extends _0x3b500e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4ed386){this['editor']['plugins']['get'](p)['adapter']=_0x4ed386;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x404b05){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x404b05);}['getSuggestions']({skipNotAttached:_0x5410fa=!0x1,toJSON:_0x4488da=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5410fa,'toJSON':_0x4488da});}['getSuggestion'](_0x5e8d14){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5e8d14);}}const T=['Pagination'];class P extends _0x3b500e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x20641b=this['editor'];if(_0x20641b['config']['define']('trackChangesData.editorCreator',_0x3b71e1=>{const _0x16ced3=_0x20641b['model']['document']['getRootNames']()['reduce']((_0x46152e,_0x4f2c12)=>(_0x46152e[_0x4f2c12]='',_0x46152e),{});return _0x20641b['constructor']['create'](_0x16ced3,_0x3b71e1);}),'function'!=typeof _0x20641b['config']['get']('trackChangesData')['editorCreator'])throw new _0x211b8d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x44b507){return N(this['editor'],!0x0,_0x44b507);}['getDataWithDiscardedSuggestions'](_0x2b2b5b){return N(this['editor'],!0x1,_0x2b2b5b);}}class D extends _0x3b500e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2e7e3b){super(_0x2e7e3b),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(_0x232104){return void 0x0!==_0x232104['getRootsAttributes'];}async function N(_0x13f829,_0x2663d1,_0x2dff08){const _0xd95e0c=_0x540ad8(_0x13f829,T);_0xd95e0c['plugins']['push'](p,D),_0xd95e0c['rootsAttributes']=v(_0x13f829)?_0x13f829['getRootsAttributes']():void 0x0;const _0x384a4f=document['createDocumentFragment'](),_0x48009f=_0x13f829['config']['get']('trackChangesData')['editorCreator'],_0x3ef14d=await _0x48009f(_0xd95e0c,()=>function(_0x1a23ba){const _0x5298ef=document['createElement']('div');return _0x1a23ba['appendChild'](_0x5298ef),_0x5298ef;}(_0x384a4f));!function(_0x2a584b,_0x2a638e){const _0xe0b12=_0x2a584b['model']['document']['getRootNames']()['reduce']((_0x42c107,_0x2c67bb)=>(_0x42c107[_0x2c67bb]=_0x2a584b['data']['get']({'rootName':_0x2c67bb}),_0x42c107),{}),_0x11b643=_0x2a584b['plugins']['get']('Users')['users']['map'](_0x49f765=>({'id':_0x49f765['id'],'name':_0x49f765['name']})),_0x48840b=_0x2a584b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xbc96e3=_0x2a584b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x492bdb=_0x2a638e['plugins']['get']('Users'),_0x13b213=_0x2a638e['plugins']['get']('TrackChangesEditing'),_0x262491=_0x2a638e['plugins']['get']('CommentsRepository');for(const _0x41c014 of _0x262491['getCommentThreads']())_0x41c014['remove']();for(const _0x152c0d of _0x11b643)_0x492bdb['getUser'](_0x152c0d['id'])||_0x492bdb['addUser'](_0x152c0d);_0x492bdb['me']||_0x492bdb['useAnonymousUser']();for(const _0x479b75 of _0xbc96e3)_0x262491['addCommentThread'](_0x479b75);for(const _0x2ed0eb of _0x48840b)_0x13b213['addSuggestionData'](_0x2ed0eb);_0x2a638e['data']['set'](_0xe0b12);}(_0x13f829,_0x3ef14d),_0x3ef14d['execute'](_0x2663d1?'acceptAllSuggestions':'discardAllSuggestions');const _0x2909c1=v(_0x3ef14d)?_0x3ef14d['getFullData'](_0x2dff08):_0x3ef14d['data']['get'](_0x2dff08);return await _0x3ef14d['destroy'](),_0x2909c1;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x560a22,PendingActions as _0x1cc518,icons as _0x1ad65}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3f354f,ObservableMixin as _0x1335aa,uid as _0x524896,insertToPriorityArray as _0x12da3b,priorities as _0x2388dd,logWarning as _0x4f9a07,getEnvKeystrokeText as _0x55084c,FocusTracker as _0x2560dd,KeystrokeHandler as _0x8fdec2,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x396fff,View as _0x28d1c0,ViewCollection as _0x23a5d0,FocusCycler as _0x3f6783,ViewModel as _0x3a1cb3,createDropdown as Qt,SplitButtonView as _0x435717,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x392ac2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4e07e7,hashObject as _0xc116ba,surroundingMarkersDetector as _0x36625a,FOCUS_ANNOTATION_KEYSTROKE as _0x21c962,AriaDescriptionView as _0x545462,setupThreadKeyboardNavigation as _0x4484a6,trimHtml as _0x52eb5a,UserView as _0x445161,LateFocusButtonView as _0x54c9ce,getDateTimeFormatter as _0x49f843,getAllMarkersDomElementsSorted as _0x1ea284,sanitizeEditorConfig as _0x118e78}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x25d9c4,LiveRange as _0x4f29af,LivePosition as _0xe9cfce}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xb17fce,toWidget as _0x670c8b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x11c145,set as _0x4d58b2,isEqual as _0x3b426a,unset as _0x3ca033,omit as Tt}from'lodash-es';import{Delete as _0x599bf2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xde2d51,ShiftEnter as _0x127bb0}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x5ef1be,_0x2c45bb){super(_0x5ef1be),this['_enabledCommands']=_0x2c45bb,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 _0x202de1 of this['editor']['commands']['commands']())_0x202de1['affectsData']&&!this['_enabledCommands']['has'](_0x202de1)&&_0x202de1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3d0709 of this['editor']['commands']['commands']())_0x3d0709['affectsData']&&!this['_enabledCommands']['has'](_0x3d0709)&&_0x3d0709['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x740e09,_0x221bfd){super(_0x740e09),this['_suggestions']=_0x221bfd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x11b9cf){const _0x30b3fb=this['_suggestions']['get'](_0x11b9cf);if(!_0x30b3fb)throw new _0x3f354f('track-changes-accept-suggestion-not-found',this);const _0x2dc52d=_0x30b3fb['getRanges']();this['editor']['model']['canEditAt'](_0x2dc52d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x30b3fb);}}class R extends ts{['_suggestions'];constructor(_0x374643,_0x4d6d2e){super(_0x374643),this['_suggestions']=_0x4d6d2e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x19f3e5){const _0x4a4d07=this['_suggestions']['get'](_0x19f3e5);if(!_0x4a4d07)throw new _0x3f354f('track-changes-discard-suggestion-not-found',this);const _0x2a90e8=_0x4a4d07['getRanges']();this['editor']['model']['canEditAt'](_0x2a90e8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4a4d07);}}function ls(_0x253ef8,_0x35189b){let _0x30b719='';return _0x30b719+=_0x253ef8['split']('*')['map']((_0x46e932,_0x4340b8)=>_0x4340b8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x46e932)+'</span>':nn(_0x46e932))['join'](''),_0x35189b&&(_0x30b719+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x35189b['value']+'\x22\x20title=\x22'+_0x35189b['title']+'\x22></span>'),_0x30b719;}function nn(_0x1ccb27){const _0x5b2f51=document['createElement']('span');return _0x5b2f51['innerText']=_0x1ccb27,_0x5b2f51['innerHTML'];}function ss(_0x47210b){return _0x47210b['sort']((_0x1c0962,_0x56ffcf)=>'deletion'==_0x1c0962['type']&&'deletion'!=_0x56ffcf['type']?-0x1:'deletion'!=_0x1c0962['type']&&'deletion'==_0x56ffcf['type']?0x1:0x0);}function to(_0xf965db,_0x444a2a){let _0x6ff77e,_0xad294e=0x0;const _0x550963=[],_0x323625=_0x444a2a['schema'];for(;_0xad294e<_0xf965db['length'];){const _0x43f5f4=_0xf965db[_0xad294e],_0x36dedf=_0xf965db[_0xad294e+0x1];_0x6ff77e||(_0x6ff77e=_0x444a2a['createPositionBefore'](_0x43f5f4)),on(_0x444a2a,_0x43f5f4,_0x36dedf)||(_0x550963['push'](_0x444a2a['createRange'](_0x6ff77e,_0x323625['isObject'](_0x43f5f4)?_0x444a2a['createPositionAfter'](_0x43f5f4):_0x444a2a['createPositionAt'](_0x43f5f4,'end'))),_0x6ff77e=null),_0xad294e++;}return _0x550963;}function on(_0x52e76e,_0x289426,_0x39217f){if(!_0x39217f)return!0x1;const _0x5ce50d=_0x52e76e['createPositionAfter'](_0x289426),_0x2f9265=_0x52e76e['createPositionBefore'](_0x39217f);return _0x5ce50d['isTouching'](_0x2f9265);}function rs(_0x26990d,_0x3b6767,_0x582823){for(;_0x582823['length'];){const _0xd7c2b8=_0x582823['splice'](0x0,0x64);_0x26990d['change'](()=>{for(const _0x214874 of _0xd7c2b8)_0x214874['isInContent']&&_0x3b6767['execute'](_0x214874['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x2e709a,_0x48a4ed,_0x1f6114){super(_0x2e709a),this['_command']=_0x48a4ed,this['_suggestions']=_0x1f6114,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x566033=Array['from'](this['_suggestions']['values']())['some'](_0x6d394e=>_0x6d394e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x566033;}['execute'](){const _0x25c25a=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4d197e of _0x25c25a){const _0x3ebfe1=_0x4d197e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3ebfe1))return;}rs(this['editor']['model'],this['_command'],_0x25c25a);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4c1a92,_0x1c8be8,_0x7c292a){super(_0x4c1a92),this['_command']=_0x1c8be8,this['_suggestions']=_0x7c292a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x38a5ee=this['editor']['model']['document']['selection'],_0x128e15=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1c9d91,_0x3c17d5){const _0x429dfb=Array['from'](_0x1c9d91['getRanges']()),_0xfa44a7=new Set();for(const _0x5da1ae of _0x3c17d5)if(_0x5da1ae['isInContent']){for(const _0x3bcd43 of _0x429dfb)for(const _0x469774 of _0x5da1ae['getRanges']())(_0x3bcd43['isIntersecting'](_0x469774)||_0x1c9d91['isCollapsed']&&!_0x5da1ae['isMultiRange']&&_0x5da1ae['next']&&_0x469774['end']['isTouching'](_0x3bcd43['start']))&&_0xfa44a7['add'](_0x5da1ae);}return _0xfa44a7;}(_0x38a5ee,_0x128e15),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x192b15=ss(Array['from'](this['_selectedSuggestions']));for(const _0x173d74 of _0x192b15){const _0x5ddbad=_0x173d74['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5ddbad))return;}rs(this['editor']['model'],this['_command'],_0x192b15);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1335aa(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3582b7,_0x474282){super(),this['id']=_0x474282['id'],this['type']=_0x474282['type'],this['subType']=_0x474282['subType']||null,this['author']=_0x474282['author'],this['creator']=_0x474282['creator']||_0x474282['author'],this['isExternal']=Boolean(_0x474282['attributes']&&_0x474282['attributes']['@external']),this['data']=null,this['_model']=_0x3582b7,this['_onAccept']=_0x474282['onAccept'],this['_onDiscard']=_0x474282['onDiscard'],this['_onAttributesChange']=_0x474282['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x474282['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 _0x3976bd=this;for(;_0x3976bd['previous'];)_0x3976bd=_0x3976bd['previous'];return _0x3976bd;}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'](_0x20e000){this['_markerNames']['add'](_0x20e000);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x52df42=>this['_model']['markers']['get'](_0x52df42))['filter'](_0x2d7fb5=>_0x2d7fb5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5e86fc=>{for(const _0x1a731a of this['getMarkers']())_0x5e86fc['removeMarker'](_0x1a731a);}),this['_markerNames']['clear']();}['removeMarker'](_0x256d21){this['_model']['change'](_0x5e1459=>{_0x5e1459['removeMarker'](_0x256d21);}),this['_markerNames']['delete'](_0x256d21);}['addRange'](_0x5cd0bc){const _0x3f2676='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3f2676),this['_model']['change'](_0x6a37dd=>{_0x6a37dd['addMarker'](_0x3f2676,{'range':_0x5cd0bc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1c9507){for(const _0x57d23c of this['getRanges']())if(_0x57d23c['isIntersecting'](_0x1c9507))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x22b284=>_0x22b284['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x519bec,_0x2c5b0e)=>[..._0x519bec,..._0x2c5b0e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x28fa4c=this['getRanges']();if(0x1!=_0x28fa4c['length'])return null;const _0x44de3f=_0x28fa4c[0x0],_0x1ad3f3=_0x44de3f['start']['nodeAfter'],_0x251a9b=_0x44de3f['end']['nodeBefore'];return _0x1ad3f3 instanceof _0x25d9c4?_0x1ad3f3!=_0x251a9b?null:_0x1ad3f3: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 _0x30ada0=[];let _0x537370=this['head'];for(;_0x537370;)_0x30ada0['push'](_0x537370),_0x537370=_0x537370['next'];return _0x30ada0;}['setAttribute'](_0x273982,_0x72f105){const _0x4f1d9b=_0x11c145(this['attributes']);_0x4d58b2(_0x4f1d9b,_0x273982,_0x72f105),_0x3b426a(_0x4f1d9b,this['attributes'])||(this['attributes']=_0x4f1d9b,this['_onAttributesChange'](_0x4f1d9b));}['removeAttribute'](_0x1a66a1){const _0x9631ab=_0x11c145(this['attributes']);_0x3ca033(_0x9631ab,_0x1a66a1),_0x3b426a(_0x9631ab,this['attributes'])||(this['attributes']=_0x9631ab,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 _0x524896()['substr'](0x1,0x5);}}function o(_0x380ca2,_0x10c2da,_0x2bd45a){const t=_0x380ca2['t'];switch(_0x10c2da){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',_0x2bd45a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2bd45a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2bd45a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2bd45a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2bd45a);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',_0x2bd45a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2bd45a);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',_0x2bd45a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2bd45a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2bd45a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2bd45a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2bd45a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2bd45a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2bd45a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2bd45a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2bd45a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2bd45a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2bd45a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2bd45a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2bd45a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2bd45a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2bd45a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2bd45a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2bd45a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2bd45a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2bd45a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2bd45a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2bd45a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2bd45a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2bd45a);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'},_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2bd45a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2bd45a);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'},_0x2bd45a);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'},_0x2bd45a);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'},_0x2bd45a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2bd45a);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'},_0x2bd45a);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'},_0x2bd45a);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'},_0x2bd45a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x10c2da;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5edee5,_0x4df298){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5edee5,this['_locale']=_0x4df298;}['getDescriptions'](_0x56be91){const _0x1b00d9=[],_0x161d55=new Set(),_0x58e9a6=new Set();for(let _0x25db4b=0x0;_0x25db4b<_0x56be91['length'];_0x25db4b++){const _0x128bf8=_0x56be91[_0x25db4b];if(!_0x128bf8['isInContent'])continue;const _0x44b5d4=this['_handleCustomCallbackDescription'](_0x128bf8);if(_0x44b5d4){if(null!=_0x128bf8['subType']){if(_0x161d55['has'](_0x128bf8['subType']))continue;_0x161d55['add'](_0x128bf8['subType']);}_0x1b00d9['push'](_0x44b5d4);}else{if('attribute'!=_0x128bf8['type'])'insertion'!=_0x128bf8['type']&&'deletion'!=_0x128bf8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1b00d9,_0x128bf8,_0x56be91[_0x25db4b+0x1]);else{const _0x2a1d27=_0x128bf8['data']['key'];if(_0x58e9a6['has'](_0x2a1d27))continue;_0x58e9a6['add'](_0x128bf8['data']['key']),_0x2a1d27==m?this['_handleRenameSuggestionDescription'](_0x1b00d9,_0x128bf8):this['_handleAttributeSuggestionDescription'](_0x1b00d9,_0x128bf8);}}}return this['_resolveDescriptionItems'](_0x1b00d9);}['registerDescriptionCallback'](_0x7b4c8d){this['_customCallbacks']['push'](_0x7b4c8d);}['registerElementLabel'](_0x65ca16,_0x28200d,_0x1c5a6e=_0x2388dd['normal']){'function'==typeof _0x65ca16?_0x12da3b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x65ca16,'label':_0x28200d,'priority':_0x1c5a6e}):this['_itemLabels']['set'](_0x65ca16,_0x28200d);}['registerAttributeLabel'](_0x1ec45e,_0x3f5639){this['_attributeLabels']['set'](_0x1ec45e,_0x3f5639);}['getItemLabel'](_0x12336b,_0x5dcc53=0x1){let _0x58d5ff;for(const _0x219d6f of this['_itemLabelsCallbacks'])if(_0x219d6f['matchingCallback'](_0x12336b)){_0x58d5ff=_0x219d6f['label'];break;}return _0x58d5ff||(_0x58d5ff=this['_itemLabels']['get'](_0x12336b['name'])),_0x58d5ff?_0x58d5ff(_0x5dcc53):0x1!==_0x5dcc53?_0x5dcc53+'\x20'+_0x12336b['name']+'s':''+_0x12336b['name'];}['_addDescriptionItems'](_0xca318b,_0x2973d6){const _0x1be5da=_0x2973d6['getFirstRange']()['getWalker'](),_0x542723='insertion'==_0x2973d6['type']?'add':'remove';for(const _0xa74a21 of _0x1be5da){const _0x2bad70=_0xa74a21['item'],_0x16347e=_0xca318b[_0xca318b['length']-0x1];if(_0x2bad70['is']('$textProxy'))_0x16347e&&_0x16347e['type']['indexOf']('Container')>-0x1&&_0xca318b['pop'](),_0x16347e&&'text'==_0x16347e['type']?_0x16347e[_0x542723]+=_0x2bad70['data']:_0xca318b['push']({'type':'text','add':'add'==_0x542723?_0x2bad70['data']:'','remove':'remove'==_0x542723?_0x2bad70['data']:''});else{if(this['_schema']['isObject'](_0x2bad70)){const _0x349917=_0x2bad70;if(_0x16347e&&_0x16347e['type']['indexOf']('Container')>-0x1&&_0xca318b['pop'](),'elementEnd'==_0xa74a21['type'])continue;_0x16347e&&_0x16347e['type']==_0x542723+'Object'&&_0x16347e['element']['name']==_0x349917['name']?_0x16347e['quantity']++:_0xca318b['push']({'type':_0x542723+'Object','element':_0x349917,'quantity':0x1}),_0x1be5da['skip'](_0x265f2f=>!('elementEnd'==_0x265f2f['type']&&_0x265f2f['item']==_0x2bad70));}else{if(this['_schema']['checkChild'](_0x2bad70,'$text')||_0x2bad70['is']('element','softBreak')){const _0x4c25a5=_0x2bad70;if('add'==_0x542723&&'elementStart'==_0xa74a21['type']||'remove'==_0x542723&&'elementEnd'==_0xa74a21['type'])continue;if(_0x16347e&&-0x1==_0x16347e['type']['indexOf']('Container')){'text'==_0x16347e['type']&&(_0x16347e[_0x542723]+='\x0a');continue;}let _0x10abb0;if(_0x10abb0='add'==_0x542723?_0x4c25a5['nextSibling']&&!this['_schema']['isObject'](_0x4c25a5['nextSibling'])?_0x4c25a5['nextSibling']:null:_0x4c25a5['previousSibling']&&!this['_schema']['isObject'](_0x4c25a5['previousSibling'])?_0x4c25a5['previousSibling']:null,_0x4c25a5['isEmpty']||_0x10abb0&&_0x10abb0['isEmpty']){const _0x586de3=_0x10abb0&&_0x10abb0['isEmpty']?_0x10abb0:_0x4c25a5;_0x16347e&&_0x16347e['type']==_0x542723+'EmptyContainer'&&_0x16347e['element']['name']==_0x586de3['name']?_0x16347e['quantity']++:_0xca318b['push']({'type':_0x542723+'EmptyContainer','element':_0x586de3,'quantity':0x1});}else _0xca318b['push']({'type':_0x542723+'Container','element':_0x4c25a5});}}}}}['_resolveDescriptionItems'](_0x5105b6){const _0x2df1a6=this['_locale'],_0x29bc84=[],_0x4c78dd=[],_0x21de0b=[];for(const _0x298e4f of _0x5105b6)switch(_0x298e4f['type']){case'text':if(_0x298e4f['add']=_0x298e4f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x298e4f['remove']=_0x298e4f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x298e4f['add']&&''!=_0x298e4f['remove']){_0x29bc84['push']({'type':'replace','content':o(_0x2df1a6,'REPLACE_TEXT',['\x22'+_0x298e4f['remove']+'\x22','\x22'+_0x298e4f['add']+'\x22'])});continue;}if(null!=_0x298e4f['add']['match'](/^ +$/)){_0x29bc84['push']({'type':'insertion','content':o(_0x2df1a6,'*Insert:*\x20%0',o(_0x2df1a6,'ELEMENT_SPACE',_0x298e4f['add']['length']))});continue;}if(null!=_0x298e4f['remove']['match'](/^ +$/)){_0x29bc84['push']({'type':'deletion','content':o(_0x2df1a6,'*Remove:*\x20%0',o(_0x2df1a6,'ELEMENT_SPACE',_0x298e4f['remove']['length']))});continue;}if(''!=_0x298e4f['add']){_0x29bc84['push']({'type':'insertion','content':o(_0x2df1a6,'*Insert:*\x20%0','\x22'+_0x298e4f['add']+'\x22')});continue;}_0x29bc84['push']({'type':'deletion','content':o(_0x2df1a6,'*Remove:*\x20%0','\x22'+_0x298e4f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x29bc84['push']({'type':'insertion','content':o(_0x2df1a6,'*Insert:*\x20%0',this['getItemLabel'](_0x298e4f['element'],_0x298e4f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x29bc84['push']({'type':'deletion','content':o(_0x2df1a6,'*Remove:*\x20%0',this['getItemLabel'](_0x298e4f['element'],_0x298e4f['quantity']))});continue;case'addContainer':_0x29bc84['push']({'type':'insertion','content':o(_0x2df1a6,'*Split:*\x20%0',this['getItemLabel'](_0x298e4f['element'],_0x298e4f['quantity']))});continue;case'removeContainer':_0x29bc84['push']({'type':'deletion','content':o(_0x2df1a6,'*Merge:*\x20%0',this['getItemLabel'](_0x298e4f['element'],_0x298e4f['quantity']))});continue;case'addFormat':_0x4c78dd['push'](_0x298e4f['key']);continue;case'removeFormat':_0x21de0b['push'](_0x298e4f['key']);continue;default:_0x29bc84['push'](_0x298e4f);}if(_0x4c78dd['length']){const _0x466e82=_0x4c78dd['map'](_0x1afff2=>this['_attributeLabels']['has'](_0x1afff2)?this['_attributeLabels']['get'](_0x1afff2):_0x1afff2)['join'](',\x20');_0x29bc84['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x466e82)});}if(_0x21de0b['length']){const _0x603c15=_0x21de0b['map'](_0x536f71=>this['_attributeLabels']['has'](_0x536f71)?this['_attributeLabels']['get'](_0x536f71):_0x536f71)['join'](',\x20');_0x29bc84['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x603c15)});}return _0x29bc84;}['_handleCustomCallbackDescription'](_0x523745){for(const _0x447019 of this['_customCallbacks']){const _0x4b4954=_0x447019(_0x523745);if(_0x4b4954&&'type'in _0x4b4954)return _0x4b4954;}}['_handleAttributeSuggestionDescription'](_0x110a68,_0xad4f5){const _0xea16b4=_0xad4f5['data'],_0x18eb8d=void 0x0===_0xea16b4['newValue']?'removeFormat':'addFormat';_0x110a68['push']({'type':_0x18eb8d,'key':_0xea16b4['key']});}['_handleRenameSuggestionDescription'](_0x511e01,_0x2b1a5f){_0x511e01['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2b1a5f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5ec6d3,_0x1b2cc8,_0x91cfba){if(this['_addDescriptionItems'](_0x5ec6d3,_0x1b2cc8),_0x91cfba&&_0x91cfba['getFirstRange']()&&!_0x1b2cc8['getFirstRange']()['end']['isEqual'](_0x91cfba['getFirstRange']()['start'])){const _0x316702=_0x5ec6d3[_0x5ec6d3['length']-0x1],_0x1a2cd0='insertion'==_0x1b2cc8['type']?'add':'remove';_0x316702&&'text'==_0x316702['type']&&(_0x316702[_0x1a2cd0]+='\x0a');}}}class V extends _0x560a22{['afterInit'](){const _0x59faf9=this['editor'],_0x2fd8f5=_0x59faf9['plugins']['get']('TrackChangesEditing');_0x59faf9['commands']['get']('showAIAssistant')&&_0x2fd8f5['enableCommand']('showAIAssistant');}}class U extends _0x560a22{['afterInit'](){const _0xe83e97=this['editor'],_0x4f44a1=_0xe83e97['locale'];if(!_0xe83e97['plugins']['has']('AlignmentEditing'))return;const _0x55b014=_0xe83e97['plugins']['get']('TrackChangesEditing');_0x55b014['enableDefaultAttributesIntegration']('alignment'),_0x55b014['registerBlockAttribute']('alignment'),_0x55b014['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4f44a1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18ba67=this['editor'],_0x27152d=_0x18ba67['locale'];_0x18ba67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c37b4=>{if('formatBlock'!=_0x5c37b4['type'])return;const {data:_0x103b80}=_0x5c37b4;if(_0x103b80&&'alignment'==_0x103b80['commandName']){const _0x322351=_0x103b80['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x27152d,'*Format:*\x20%0',function(_0x45caf7){switch(_0x45caf7){case'left':return o(_0x27152d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x27152d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x27152d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x27152d,'FORMAT_JUSTIFY_TEXT');}}(_0x322351))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x560a22{['afterInit'](){const _0x1f527e=this['editor'],_0x416ad1=_0x1f527e['plugins']['get']('TrackChangesEditing'),_0x41501b=_0x1f527e['locale'];for(const _0x174ae5 of ti){if(!_0x1f527e['plugins']['has'](_0x174ae5))continue;const _0x1d9f51=_0x174ae5['slice'](0x0,-0x7)['toLowerCase'](),_0x729bb3='FORMAT_'+_0x1d9f51['toUpperCase']();_0x416ad1['enableDefaultAttributesIntegration'](_0x1d9f51),_0x416ad1['registerInlineAttribute'](_0x1d9f51),_0x416ad1['descriptionFactory']['registerAttributeLabel'](_0x1d9f51,o(_0x41501b,_0x729bb3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c486b=this['editor'],_0x3484d3=_0x2c486b['locale'],_0x5c385b=_0x2c486b['plugins']['get']('TrackChangesEditing');function _0x5ef643(_0x3565f3,_0x5e9dc){_0x5c385b['descriptionFactory']['registerDescriptionCallback'](_0x115494=>{if('formatInline'!=_0x115494['type'])return;const {data:_0x57d87c}=_0x115494;return _0x57d87c&&_0x57d87c['commandName']===_0x3565f3?_0x57d87c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3484d3,'*Format:*\x20%0',_0x5e9dc)}:{'type':'format','content':o(_0x3484d3,'*Remove\x20format:*\x20%0',_0x5e9dc)}:void 0x0;});}_0x5ef643('bold',o(_0x3484d3,'FORMAT_BOLD')),_0x5ef643('italic',o(_0x3484d3,'FORMAT_ITALIC')),_0x5ef643('underline',o(_0x3484d3,'FORMAT_UNDERLINE')),_0x5ef643('code',o(_0x3484d3,'FORMAT_CODE')),_0x5ef643('strikethrough',o(_0x3484d3,'FORMAT_STRIKETHROUGH')),_0x5ef643('subscript',o(_0x3484d3,'FORMAT_SUBSCRIPT')),_0x5ef643('superscript',o(_0x3484d3,'FORMAT_SUPERSCRIPT'));}}class F extends _0x560a22{['afterInit'](){const _0x5cb781=this['editor'],_0x240b7e=_0x5cb781['locale'];if(!_0x5cb781['plugins']['has']('BlockQuoteEditing'))return;const _0x46f5b9=_0x5cb781['plugins']['get']('TrackChangesEditing'),_0x13a4e7=this['editor']['commands']['get']('blockQuote');_0x46f5b9['enableCommand']('blockQuote',(_0x353090,_0x4cfe31={})=>{const _0x42dacc=this['editor']['model']['document']['selection'],_0x1f1df0=_0x4cfe31&&void 0x0!==_0x4cfe31['forceValue']?_0x4cfe31['forceValue']:!_0x13a4e7['value'];let _0xfa53d=[];if(_0x1f1df0){const _0x4402ed=Array['from'](_0x42dacc['getSelectedBlocks']())['filter'](_0x3b1745=>oo(_0x3b1745)||function(_0x18e93a,_0x5e1625){const _0x1ae514=_0x5e1625['checkChild'](_0x18e93a['parent'],'blockQuote'),_0x13798d=_0x5e1625['checkChild'](['$root','blockQuote'],_0x18e93a);return _0x1ae514&&_0x13798d;}(_0x3b1745,this['editor']['model']['schema']));_0xfa53d=to(_0x4402ed,_0x5cb781['model']);}else{const _0x380c14=Array['from'](_0x42dacc['getSelectedBlocks']())['filter'](_0x356422=>oo(_0x356422));_0xfa53d=to(_0x380c14,_0x5cb781['model']);}_0x5cb781['model']['change'](()=>{for(const _0x28342e of _0xfa53d)_0x46f5b9['markBlockFormat'](_0x28342e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1f1df0}]});});}),_0x46f5b9['descriptionFactory']['registerDescriptionCallback'](_0x33527b=>{const {data:_0x3bb7de}=_0x33527b;if(_0x3bb7de&&'blockQuote'==_0x3bb7de['commandName']){const _0x4bd329=o(_0x240b7e,'ELEMENT_BLOCK_QUOTE');return _0x3bb7de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x240b7e,'*Set\x20format:*\x20%0',_0x4bd329)}:{'type':'format','content':o(_0x240b7e,'*Remove\x20format:*\x20%0',_0x4bd329)};}});}}function oo(_0x2ede2c){return'blockQuote'==_0x2ede2c['parent']['name'];}class L extends _0x560a22{['afterInit'](){const _0x482062=this['editor'];_0x482062['plugins']['has']('CaseChange')&&(_0x482062['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x482062['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x482062['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x560a22{['afterInit'](){const _0x3fcdfb=this['editor'];_0x3fcdfb['commands']['get']('ckbox')&&_0x3fcdfb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x560a22{['afterInit'](){const _0x273aa7=this['editor'];if(!_0x273aa7['plugins']['has']('CodeBlock'))return;const _0x34add7=_0x273aa7['plugins']['get']('TrackChangesEditing'),_0x38fdc3=_0x273aa7['locale'],_0x15ad21=_0x273aa7['config']['get']('codeBlock')['languages'],_0x4d8664=_0x273aa7['commands']['get']('codeBlock');_0x34add7['enableCommand']('indentCodeBlock'),_0x34add7['enableCommand']('outdentCodeBlock'),_0x34add7['enableCommand']('codeBlock',(_0xfa9abd,_0x46c5f0={})=>{const _0x2727f0=_0x273aa7['model'],_0xb1be8f=_0x273aa7['model']['document']['selection'],_0x3e593d=_0x46c5f0&&void 0x0!==_0x46c5f0['forceValue']?_0x46c5f0['forceValue']:!_0x4d8664['value'];let _0x488066;_0x46c5f0['language']||(_0x46c5f0['language']=_0x15ad21[0x0]['language']),_0x488066=_0x3e593d?Array['from'](_0xb1be8f['getSelectedBlocks']())['filter'](_0x34e6d8=>eo(_0x34e6d8)||function(_0x553254,_0x316f39){if(_0x553254['is']('rootElement')||_0x316f39['isLimit'](_0x553254))return!0x1;return _0x316f39['checkChild'](_0x553254['parent'],'codeBlock');}(_0x34e6d8,_0x2727f0['schema'])):Array['from'](_0xb1be8f['getSelectedBlocks']())['filter'](_0x47defa=>eo(_0x47defa));const _0x394674=to(_0x488066,_0x2727f0);_0x2727f0['change'](()=>{for(const _0x1fd2ee of _0x394674)_0x34add7['markBlockFormat'](_0x1fd2ee,{'commandName':'codeBlock','commandParams':[{..._0x46c5f0,'forceValue':_0x3e593d}],'formatGroupId':'blockName'});});}),(_0x34add7['descriptionFactory']['registerElementLabel']('codeBlock',_0x2f658a=>o(_0x38fdc3,'ELEMENT_CODE_BLOCK',_0x2f658a)),_0x34add7['descriptionFactory']['registerDescriptionCallback'](_0x5a25de=>{if('formatBlock'!=_0x5a25de['type'])return;const _0x2ed79d=_0x38fdc3['t'],{data:_0x306e04}=_0x5a25de;if(!_0x306e04||'codeBlock'!=_0x306e04['commandName'])return;const _0x190b9c=_0x306e04['commandParams'][0x0]['language'],_0x52d642=_0x2ed79d(_0x15ad21['find'](_0x32b66b=>_0x32b66b['language']===_0x190b9c)['label'])['toLowerCase']();return _0x306e04['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38fdc3,'*Set\x20format:*\x20%0',o(_0x38fdc3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52d642+')')}:{'type':'format','content':o(_0x38fdc3,'*Remove\x20format:*\x20%0',o(_0x38fdc3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2f1042){return'codeBlock'==_0x2f1042['name'];}class q extends _0x560a22{['afterInit'](){const _0x4256ac=this['editor'];if(!_0x4256ac['plugins']['has']('CommentsEditing'))return;_0x4256ac['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5de53b,_0xc09819,_0x20d249){const _0x2c2c88=[];for(const _0x3c89f0 of _0xc09819['getItems']())_0x3c89f0['hasAttribute'](_0x5de53b)&&_0x2c2c88['push'](_0x20d249['createRangeOn'](_0x3c89f0));return _0x2c2c88;}function _e(_0x368da9,_0x218141,{showActiveMarker:_0x2c5b88=!0x0}={}){const _0x413cb4=_0x368da9['plugins']['get']('TrackChangesEditing');return(_0x2171f8,_0x468ad7,_0x34d735)=>{if(!_0x34d735['consumable']['test'](_0x468ad7['markerRange'],_0x2171f8['name']))return;const _0x3fcebd=_0x468ad7['markerRange']['getWalker'](),_0x377a67=_0x468ad7['markerRange']['start'],_0x19dd4c=_0x368da9['model']['schema'];let _0x2830a7=null,_0x3676df=null,_0x593f42=!0x1,_0x499448=!0x1;for(const _0x323def of _0x3fcebd){const _0x5ed619=_0x323def['item'];_0x593f42=_0x593f42||_0x19dd4c['isContent'](_0x5ed619);const _0x187244=_0x34d735['mapper']['toViewElement'](_0x5ed619);if(_0x187244&&_0x187244['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x323def['type']&&(_0x19dd4c['isBlock'](_0x5ed619)&&!_0x19dd4c['isLimit'](_0x5ed619)&&(_0x5ed619['nextSibling']||_0x377a67['isAtEnd']?_0x2830a7&&_0x2830a7['parent']==_0x5ed619||(_0x2830a7=_0x5ed619,_0x337e20(_0x323def['previousPosition']),_0x499448=!0x0):_0x3676df=_0x3676df||_0x323def['previousPosition']));}function _0x337e20(_0x367292){const {authorId:_0x524d6b}=_0x413cb4['_splitMarkerName'](_0x468ad7['markerName']),_0x4a932e=_0x34d735['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x218141,'data-author-id':_0x524d6b}),_0x3f28fc=_0x34d735['mapper']['toViewPosition'](_0x367292);_0x2c5b88&&_0x413cb4['activeMarkers']['includes'](_0x468ad7['markerName'])&&_0x34d735['writer']['addClass']('ck-suggestion-marker--active',_0x4a932e),_0x34d735['writer']['insert'](_0x3f28fc,_0x4a932e),_0x34d735['mapper']['bindElementToMarker'](_0x4a932e,_0x468ad7['markerName']);}_0x593f42||_0x499448||!_0x3676df||_0x337e20(_0x3676df);};}class z extends _0x560a22{static get['requires'](){return[_0x599bf2];}['init'](){const _0x5463d3=this['editor'],_0x409efe=_0x5463d3['plugins']['get']('TrackChangesEditing');_0x409efe['enableCommand']('delete');const _0x5f1731=_0x5463d3['commands']['get']('deleteForward');_0x409efe['enableCommand']('deleteForward',(_0x364fcd,_0x2b2e3e={})=>{const _0x441612=_0x5463d3['model']['createSelection'](_0x5463d3['model']['document']['selection']);_0x441612['isCollapsed']&&_0x5463d3['model']['modifySelection'](_0x441612,{'direction':'forward','unit':_0x2b2e3e['unit']});const _0x2baa23=_0x441612['getFirstRange'](),_0x11b104=_0x4f29af['fromRange'](_0x2baa23);let _0x117e40;_0x364fcd(_0x2b2e3e),_0x117e40='$graveyard'==_0x11b104['root']['rootName']?_0x5463d3['model']['createRange'](_0x2baa23['start']):_0x5463d3['model']['createRange'](_0x11b104['start'],_0x11b104['end']),_0x11b104['detach'](),_0x5463d3['model']['enqueueChange'](_0x5f1731['buffer']['batch'],_0x197f1c=>{_0x5f1731['buffer']['lock'](),_0x197f1c['setSelection'](_0x197f1c['createRange'](_0x117e40['end'])),_0x5f1731['buffer']['unlock']();});}),_0x5463d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5463d3,'merge'),{'priority':'high'}),_0x5463d3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x46fb2b,_0x48b875,_0x352168)=>{_0x352168['options']['showSuggestionHighlights']&&_e(_0x5463d3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x46fb2b,_0x48b875,_0x352168);},{'priority':'high'}),_0x5463d3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x29a185,_0x1effa1,_0x402441)=>{const _0xad9b82=_0x402441['mapper']['markerNameToElements'](_0x1effa1['markerName']);if(_0xad9b82){for(const _0x10fe6f of _0xad9b82)_0x10fe6f['is']('uiElement')&&(_0x402441['mapper']['unbindElementFromMarkerName'](_0x10fe6f,_0x1effa1['markerName']),_0x402441['writer']['remove'](_0x10fe6f));}},{'priority':'high'});}}class K extends _0x560a22{['afterInit'](){const _0xab5008=this['editor'];if(!_0xab5008['plugins']['has']('ListEditing'))return;const _0x21b111=_0xab5008['locale'],_0x48a764=_0xab5008['plugins']['get']('TrackChangesEditing'),_0x1d001a=_0xab5008['plugins']['has']('TodoListEditing'),_0x2be6ab=!!_0xab5008['config']['get']('list.multiBlock');function _0x589fba(_0x465bc5){return{'type':'format','content':''+o(_0x21b111,'*Set\x20format:*\x20%0',_0x465bc5)};}function _0x4ec51d(_0x49baf7){return{'type':'format','content':''+o(_0x21b111,'*Remove\x20format:*\x20%0',_0x49baf7)};}_0x48a764['enableDefaultAttributesIntegration']('numberedList'),_0x48a764['enableDefaultAttributesIntegration']('bulletedList'),_0x48a764['enableDefaultAttributesIntegration']('customNumberedList'),_0x48a764['enableDefaultAttributesIntegration']('customBulletedList'),_0x48a764['enableDefaultAttributesIntegration']('indentList'),_0x48a764['enableDefaultAttributesIntegration']('outdentList'),_0x48a764['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x48a764['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x48a764['registerBlockAttribute']('listItemId'),_0x48a764['registerBlockAttribute']('listType'),_0x48a764['registerBlockAttribute']('listIndent'),_0x2be6ab&&(_0x48a764['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x48a764['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1d001a&&(_0x48a764['enableDefaultAttributesIntegration']('todoList'),_0x48a764['enableDefaultAttributesIntegration']('checkTodoList'),_0x48a764['registerBlockAttribute']('todoListChecked'),_0x48a764['descriptionFactory']['registerDescriptionCallback'](_0x25062b=>{const {data:_0x44b8f2}=_0x25062b;if(_0x44b8f2&&'todoListChecked'==_0x44b8f2['key'])return{'type':'format','content':_0x44b8f2['newValue']?o(_0x21b111,'*Check\x20item*'):o(_0x21b111,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x159f65=>{if(_0x159f65['batch']['isUndo'])return!0x1;let _0xe4a2f3=!0x1;const _0x2990a9=_0x48a764['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1eda0a=>'todoListChecked'===_0x48a764['_getAttributeKey'](_0x1eda0a));for(const _0x55a6b9 of _0x2990a9){'todo'!=_0x55a6b9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x48a764['_findSuggestions'](_0x55a6b9['getFirstRange'](),'attribute')['find'](_0x134770=>'listType'===_0x48a764['_getAttributeKey'](_0x134770['suggestion']))||(_0x159f65['removeMarker'](_0x55a6b9['getFirstMarker']()),_0xe4a2f3=!0x0));}return _0xe4a2f3;})),_0x48a764['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x21b111,'FORMAT_INDENT'));const _0x560cb1={'type':'format','content':''};_0x48a764['descriptionFactory']['registerDescriptionCallback'](_0x2108ee=>{const {data:_0x4911b0}=_0x2108ee;if(!_0x4911b0||'listType'!=_0x4911b0['key'])return;let _0x47ffe2=_0x2108ee['head'];for(;_0x47ffe2;){if(_0x47ffe2['data']&&(('listStyle'==_0x47ffe2['data']['key']||'listMarkerStyle'==_0x47ffe2['data']['key'])&&(_0x47ffe2['data']['newValue']&&'default'!=_0x47ffe2['data']['newValue']||'default'!=_0x47ffe2['data']['oldValue']&&!_0x4911b0['newValue'])||!_0x2be6ab&&_0x47ffe2['data']['key']==m))return _0x560cb1;_0x47ffe2=_0x47ffe2['next'];}if(null==_0x4911b0['newValue'])switch(_0x4911b0['oldValue']){case'bulleted':return _0x4ec51d(o(_0x21b111,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ec51d(o(_0x21b111,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ec51d(o(_0x21b111,'ELEMENT_TODO_LIST'));}switch(_0x4911b0['newValue']){case'bulleted':return _0x589fba(o(_0x21b111,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x589fba(o(_0x21b111,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x589fba(o(_0x21b111,'ELEMENT_TODO_LIST'));}}),_0x48a764['descriptionFactory']['registerDescriptionCallback'](_0x59485c=>{const {data:_0x232ad2}=_0x59485c;if(_0x232ad2&&'listIndent'==_0x232ad2['key'])return null==_0x232ad2['newValue']||null==_0x232ad2['oldValue']&&0x0==_0x232ad2['newValue']?_0x560cb1:void 0x0;}),_0x48a764['descriptionFactory']['registerDescriptionCallback'](_0xdb5252=>{if('attribute'!=_0xdb5252['type'])return;const {data:_0x5a0961}=_0xdb5252;if(!_0x5a0961||'listItemId'!=_0x5a0961['key'])return;const _0x45295c=Ee(_0xdb5252);return'newValue'==_0x45295c?{'type':'format','content':o(_0x21b111,'*Merge:*\x20list\x20item')}:'oldValue'==_0x45295c?{'type':'format','content':o(_0x21b111,'*Split:*\x20list\x20item')}:_0x560cb1;}),_0xab5008['model']['document']['registerPostFixer'](_0x230559=>this['listItemIdFixer'](_0x230559)),_0xab5008['model']['document']['registerPostFixer'](_0x19d65e=>this['noTrackChangesFixer'](_0x19d65e)),_0xab5008['model']['document']['on']('change:data',(_0x1d2ee7,_0x433ac3)=>{if(_0x433ac3['isUndo']||!_0x433ac3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x148b2b){if(_0x148b2b['batch']['isUndo']||!_0x148b2b['batch']['isLocal'])return!0x1;let _0x47b775=!0x1;const _0x58519c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43a9dd=>_0x43a9dd['data']&&'listItemId'==_0x43a9dd['data']['key'])['filter'](_0xea3532=>_0xea3532['data']['newValue']&&_0xea3532['data']['oldValue']);for(const _0x33703b of _0x58519c)Ee(_0x33703b)||(_0x148b2b['removeMarker'](_0x33703b['getFirstMarker']()),_0x47b775=!0x0);return _0x47b775;}['noTrackChangesFixer'](_0x2b353a){if(_0x2b353a['batch']['isUndo']||!_0x2b353a['batch']['isLocal'])return!0x1;const _0x4253f2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4253f2['trackChangesCommand']['value'])return!0x1;let _0x515012=!0x1;const _0xe27b73=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xd07c6c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2875f8=>'attribute'==_0x2875f8['type'])['filter'](_0x2c7c40=>_0xe27b73['includes'](_0x2c7c40['attributeKey']));if(0x0==_0xd07c6c['length'])return _0x515012;for(const _0x4142c6 of _0xd07c6c){const _0x36807c=_0x4253f2['_findSuggestions'](_0x4142c6['range'],'attribute')['filter'](_0xbdc954=>!_0xbdc954['meta']['isNextTo'])['map'](_0x559ad5=>_0x559ad5['suggestion'])['filter'](_0x1d69e9=>{const _0x28c461=_0x4253f2['_getAttributeKey'](_0x1d69e9);return _0xe27b73['includes'](_0x28c461);});if(_0x36807c['length']){for(const _0x24b03b of _0x36807c)_0x2b353a['removeMarker'](_0x24b03b['getFirstMarker']());_0x515012=!0x0;}}return _0x515012;}['assureChains'](){const _0x4ccf48=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fab06=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1f5bf0;const _0x4816d5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x578fcd=>{if(_0x578fcd['data']['oldRange']||!_0x578fcd['data']['newRange'])return null;if(!_0x578fcd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x18bbce}=_0x4ccf48['_splitMarkerName'](_0x578fcd['name']);if(!_0x4ccf48['hasSuggestion'](_0x18bbce))return null;const _0x5bc3e1=_0x4ccf48['getSuggestion'](_0x18bbce);return _0x1fab06['includes'](_0x5bc3e1['data']['key']);})['map'](_0xc3530e=>{const {id:_0x5a7d45}=_0x4ccf48['_splitMarkerName'](_0xc3530e['name']),_0x3dffe7=_0x4ccf48['getSuggestion'](_0x5a7d45);return _0x1f5bf0=_0x3dffe7['attributes']['groupId'],_0x3dffe7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4816d5['size'])return;const _0x479769=_0x4ccf48['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x560d2d=>'attribute'==_0x560d2d['type']&&_0x560d2d['data']&&_0x1fab06['includes'](_0x560d2d['data']['key'])&&_0x560d2d['attributes']['groupId']!=_0x1f5bf0)['map'](_0x102da2=>({'listItem':_0x102da2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x102da2['attributes']['groupId']})),_0x4ad9b7=new Set();for(const {groupId:_0x399d9d,listItem:_0x17aa01}of _0x479769)_0x4816d5['has'](_0x17aa01)&&_0x4ad9b7['add'](_0x399d9d);for(const _0x47fb60 of _0x4ccf48['getSuggestions']())_0x4ad9b7['has'](_0x47fb60['attributes']['groupId'])&&_0x47fb60['setAttribute']('groupId',_0x1f5bf0);}['_supportLegacySuggestions'](){const _0x2699df=this['editor'],_0xfe7e6f=_0x2699df['locale'],_0xbf433c=_0x2699df['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xbf433c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xe8b514,_0x2c49da){const _0x287273=[];for(let _0x2b45b9 of _0xe8b514)_0x2b45b9['start']['nodeAfter']===_0x2b45b9['end']['parent']&&(_0x2b45b9=_0x2699df['model']['createRange'](_0x2699df['model']['createPositionAt'](_0x2b45b9['start']['nodeAfter'],0x0))),_0x287273['push'](_0x2b45b9);_0x2699df['model']['change'](_0x55e205=>{const _0x4905cf=_0x2699df['model']['document']['selection'],_0x3ec4cc=Array['from'](_0x4905cf['getRanges']())['map'](_0x331dc1=>_0x4f29af['fromRange'](_0x331dc1));_0x55e205['setSelection'](_0x287273),_0x2699df['commands']['get'](_0x2c49da['commandName'])['refresh'](),_0x2c49da['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2699df['execute'](_0x2c49da['commandName'],..._0x2c49da['commandParams']),_0x55e205['setSelection'](_0x3ec4cc);for(const _0x4c87fb of _0x3ec4cc)_0x4c87fb['detach']();});}),_0xbf433c['descriptionFactory']['registerElementLabel'](function(_0x29997e){const _0xf5cc4e=!_0x2699df['model']['schema']['isObject'](_0x29997e),_0x18f531=_0x29997e['previousSibling'],_0x4294f4=_0x29997e['nextSibling'],_0x52ceec=_0x29997e['getAttribute']('listItemId'),_0x35cfe2=!_0x18f531||_0x18f531['getAttribute']('listItemId')!==_0x52ceec,_0x1bb198=!_0x4294f4||_0x4294f4['getAttribute']('listItemId')!==_0x52ceec;return _0xf5cc4e&&Boolean(_0x52ceec)&&_0x35cfe2&&_0x1bb198;},_0x31f434=>o(_0xfe7e6f,'ELEMENT_LIST_ITEM',_0x31f434));}['_registerLegacyDescription'](){const _0x32d2da=this['editor'],_0x3a246d=_0x32d2da['locale'];function _0x350731(_0x2f35f2){const _0x33dc3e=_0x32d2da['commands']['get']('bulletedList')['value'],_0x7a5864=_0x32d2da['commands']['get']('numberedList')['value'];return'numberedList'===_0x2f35f2?_0x33dc3e:_0x7a5864;}_0x32d2da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xbfed64){if('formatBlock'!=_0xbfed64['type'])return;const {data:_0x163b2e}=_0xbfed64;if(!_0x163b2e)return;let _0x557f70,_0xba5054,_0x247960,_0x1f8622;switch(_0x163b2e['commandName']){case'bulletedList':_0x247960=_0x163b2e['commandParams'][0x0]['forceValue'],_0x1f8622=_0x350731(_0x163b2e['commandName']),_0x557f70=_0x247960?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f8622&&_0x32d2da['config']['get']('list.multiBlock')||(_0x557f70='*Change\x20to:*\x20%0'),_0xba5054={'type':'format','content':o(_0x3a246d,_0x557f70,o(_0x3a246d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x247960=_0x163b2e['commandParams'][0x0]['forceValue'],_0x1f8622=_0x350731(_0x163b2e['commandName']),_0x557f70=_0x247960?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f8622&&_0x32d2da['config']['get']('list.multiBlock')||(_0x557f70='*Change\x20to:*\x20%0'),_0xba5054={'type':'format','content':o(_0x3a246d,_0x557f70,o(_0x3a246d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x557f70='*Indent:*\x20%0',_0xba5054={'type':'format','content':o(_0x3a246d,_0x557f70,o(_0x3a246d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x557f70=function(_0x42d8c5){const _0x540b1d=_0x42d8c5['getFirstRange']();let _0x15217b=_0x540b1d['start']['nodeAfter'];for(;_0x15217b&&_0x540b1d['containsItem'](_0x15217b);){if(_0x15217b['getAttribute']('listIndent')>0x0)return!0x1;_0x15217b=_0x15217b['nextSibling'];}return!0x0;}(_0xbfed64)?o(_0x3a246d,'*Format:*\x20remove\x20from\x20%0',o(_0x3a246d,function(_0x253e22){return'ELEMENT_'+_0x253e22['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xbfed64))):o(_0x3a246d,'*Outdent:*\x20%0',o(_0x3a246d,'ELEMENT_LIST_ITEM')),_0xba5054={'type':'format','content':_0x557f70};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x163b2e['multipleBlocks']&&(_0x557f70='*Merge:*\x20%0',_0xba5054={'type':'deletion','content':o(_0x3a246d,_0x557f70,o(_0x3a246d,'ELEMENT_LIST_ITEM'))});}return _0xba5054;});}}function Ee(_0x3e1b49){let _0xea56e5=_0x3e1b49['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xea56e5;){const _0x43560b=_0xea56e5['getAttribute']('listItemId');if(!_0x43560b)return!0x1;if(_0x43560b==_0x3e1b49['data']['newValue'])return'newValue';if(_0x43560b==_0x3e1b49['data']['oldValue'])return'oldValue';_0xea56e5=_0xea56e5['previousSibling'];}return!0x1;}class pe extends _0x560a22{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4af79d=this['editor']['config']['get']('list.properties'),_0x17f977=this['editor']['plugins']['get']('TrackChangesEditing');_0x4af79d['styles']&&(_0x17f977['enableDefaultAttributesIntegration']('listStyle'),_0x17f977['registerBlockAttribute']('listStyle')),_0x4af79d['reversed']&&(_0x17f977['enableDefaultAttributesIntegration']('listReversed'),_0x17f977['registerBlockAttribute']('listReversed')),_0x4af79d['startIndex']&&(_0x17f977['enableDefaultAttributesIntegration']('listStart'),_0x17f977['registerBlockAttribute']('listStart'));const _0x549025={'type':'format','content':''};_0x17f977['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2d8992=this['editor']['locale'];_0x17f977['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2d8992,'FORMAT_LIST_REVERSED')),_0x17f977['descriptionFactory']['registerDescriptionCallback'](_0x51850f=>{const {data:_0x3a7d81}=_0x51850f;if(_0x3a7d81&&'listReversed'==_0x3a7d81['key'])return null==_0x3a7d81['newValue']||0x0==_0x3a7d81['newValue']&&null==_0x3a7d81['oldValue']?_0x549025:void 0x0;}),_0x17f977['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2d8992,'FORMAT_LIST_START')),_0x17f977['descriptionFactory']['registerDescriptionCallback'](_0x2e5eb5=>{const {data:_0x164364}=_0x2e5eb5;if(_0x164364&&'listStart'==_0x164364['key'])return null==_0x164364['newValue']||0x1==_0x164364['newValue']&&null==_0x164364['oldValue']?_0x549025:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x420f6f=>{if(_0x420f6f['batch']['isUndo'])return!0x1;let _0x4455c3=!0x1;const _0x4051b2=_0x17f977['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eae2a=>{const _0x278c81=_0x17f977['_getAttributeKey'](_0x2eae2a);return'listStart'==_0x278c81||'listReversed'==_0x278c81;});for(const _0x218e87 of _0x4051b2){const _0x409aa7=_0x218e87['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x409aa7||'customNumbered'==_0x409aa7)continue;_0x17f977['_findSuggestions'](_0x218e87['getFirstRange'](),'attribute')['find'](_0x135f9a=>'listType'==_0x17f977['_getAttributeKey'](_0x135f9a['suggestion']))||(_0x420f6f['removeMarker'](_0x218e87['getFirstMarker']()),_0x4455c3=!0x0);}return _0x4455c3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5bc11c){const _0x21d09d=this['editor']['locale'],{data:_0x23b281}=_0x5bc11c,_0x1519c3={'type':'format','content':''};if(!_0x23b281||'listStyle'!=_0x23b281['key'])return;if(!_0x23b281['oldValue'])return'default'==_0x23b281['newValue']?_0x1519c3:{'type':'format','content':''+o(_0x21d09d,'*Set\x20format:*\x20%0',o(_0x21d09d,this['_getTranslationKeyForListStyle'](_0x23b281['newValue'])))};if(!_0x23b281['newValue']){if('default'==_0x23b281['oldValue'])return _0x1519c3;let _0x3e307c=_0x5bc11c['head'];for(;_0x3e307c;){if(_0x3e307c['data']&&'listType'==_0x3e307c['data']['key']&&_0x3e307c['data']['newValue'])return _0x1519c3;_0x3e307c=_0x3e307c['next'];}return{'type':'format','content':''+o(_0x21d09d,'*Remove\x20format:*\x20%0',o(_0x21d09d,this['_getTranslationKeyForListStyle'](_0x23b281['oldValue'])))};}if('default'!=_0x23b281['newValue'])return{'type':'format','content':''+o(_0x21d09d,'*Set\x20format:*\x20%0',o(_0x21d09d,this['_getTranslationKeyForListStyle'](_0x23b281['newValue'])))};let _0x1b808e=_0x5bc11c['head'];for(;_0x1b808e;){if(_0x1b808e['data']&&'listType'==_0x1b808e['data']['key']&&_0x1b808e['data']['newValue']&&_0x1b808e['data']['oldValue'])return _0x1519c3;_0x1b808e=_0x1b808e['next'];}return{'type':'format','content':o(_0x21d09d,'*Set\x20format:*\x20%0',o(_0x21d09d,'ELEMENT_'+_0x5bc11c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x352c9a=this['editor'],_0x2d7dfb=_0x352c9a['locale'];_0x352c9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eca83=>{if('formatBlock'!=_0x2eca83['type'])return;const {data:_0x5bc397}=_0x2eca83;if(!_0x5bc397)return;let _0x35a887,_0x3479e4;switch(_0x5bc397['commandName']){case'listStyle':_0x35a887='*Change\x20to:*\x20%0',_0x3479e4={'type':'format','content':o(_0x2d7dfb,_0x35a887,o(_0x2d7dfb,this['_getTranslationKeyForListStyle'](_0x5bc397['commandParams'][0x0]['type'])))};break;case'listReversed':_0x35a887=_0x5bc397['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3479e4={'type':'format','content':o(_0x2d7dfb,_0x35a887)};break;case'listStart':_0x35a887='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3479e4={'type':'format','content':o(_0x2d7dfb,_0x35a887,_0x5bc397['commandParams'][0x0]['startIndex'])};}return _0x3479e4;});}['_getTranslationKeyForListStyle'](_0x187abe){return'ELEMENT_'+function(_0x5b9ce5){if(ye['includes'](_0x5b9ce5))return'bulleted';if(Se['includes'](_0x5b9ce5))return'numbered';return null;}(_0x187abe)['toUpperCase']()+'_LIST_'+_0x187abe['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x560a22{static get['requires'](){return[_0xde2d51];}['init'](){const _0x1fef0b=this['editor'],_0x36c3cc=_0x1fef0b['plugins']['get']('TrackChangesEditing'),_0x4fd8d6=_0x1fef0b['commands']['get']('enter');_0x36c3cc['enableCommand']('enter',()=>{_0x1fef0b['model']['change'](_0x1f8102=>{const _0x3d835e=_0x1fef0b['model']['document']['selection'],_0x4c915e=_0x3d835e['getFirstPosition'](),_0x4558ec=_0x4f29af['fromRange'](_0x3d835e['getFirstRange']());if(_0x4fd8d6['enterBlock'](_0x1f8102)){const _0xeb5d65=_0x1fef0b['model']['createPositionAt'](_0x4c915e['parent']['nextSibling'],0x0),_0x16da49=_0x1f8102['createRange'](_0x4c915e,_0xeb5d65);_0x36c3cc['markInsertion'](_0x16da49);}else _0x1f8102['setSelection'](_0x1f8102['createRange'](_0x4558ec['end']));_0x4558ec['detach'](),_0x4fd8d6['fire']('afterExecute',{'writer':_0x1f8102});});}),_0x1fef0b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1fef0b,'split'),{'priority':'high'}),_0x1fef0b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5ec1e4,_0x846c34,_0x11bfbc)=>{const _0xa4dae4=_0x11bfbc['mapper']['markerNameToElements'](_0x846c34['markerName']);if(_0xa4dae4){for(const _0x190ad0 of _0xa4dae4)_0x190ad0['hasClass']('ck-suggestion-marker-split')&&(_0x11bfbc['mapper']['unbindElementFromMarkerName'](_0x190ad0,_0x846c34['markerName']),_0x11bfbc['writer']['remove'](_0x190ad0));}},{'priority':'high'}),_0x1fef0b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x53cb38,_0x1d5c1f,_0x184aee)=>{_0x184aee['options']['showSuggestionHighlights']&&_e(_0x1fef0b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x53cb38,_0x1d5c1f,_0x184aee);},{'priority':'high'});}}class X extends _0x560a22{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2f70bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f70bf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2f70bf['enableCommand']('findNext'),_0x2f70bf['enableCommand']('findPrevious'),_0x2f70bf['enableCommand']('replace'),_0x2f70bf['enableCommand']('replaceAll');}['handleFindCommand'](_0x160eb7,_0x54e94a,_0x51364e={}){const _0x3724c4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x160eb7(_0x37b754=>{let _0x318206=('string'==typeof _0x54e94a?_0x3724c4['findByTextCallback'](_0x54e94a,_0x51364e):_0x54e94a)(_0x37b754);Array['isArray'](_0x318206)&&(_0x318206={'results':_0x318206,'searchText':'string'==typeof _0x54e94a?_0x54e94a:''});const _0x386284=_0x318206['results']['filter'](_0x45b9ef=>!0x1===this['_isInDeletionRange'](_0x45b9ef,_0x37b754['item']));return{..._0x318206,'results':_0x386284};},_0x51364e);}['_isInDeletionRange'](_0x1d01c7,_0x568908){const _0x1c6617=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x568908,_0x1d01c7['start']),this['editor']['model']['createPositionAt'](_0x568908,_0x1d01c7['end']));for(const _0x27d1e8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1c6617['getIntersection'](_0x27d1e8['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 _0x560a22{['afterInit'](){const _0x4e9633=this['editor']['locale'],_0x2e1d22=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x353ff1,commandName:_0x580c65}of ro)this['editor']['plugins']['has'](_0x353ff1)&&(_0x2e1d22['enableDefaultAttributesIntegration'](_0x580c65),_0x2e1d22['registerInlineAttribute'](_0x580c65));_0x2e1d22['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4e9633,'FORMAT_FONT_SIZE')),_0x2e1d22['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4e9633,'FORMAT_FONT_FAMILY')),_0x2e1d22['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4e9633,'FORMAT_FONT_COLOR')),_0x2e1d22['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4e9633,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb846dd=this['editor'],_0x328f4a=_0xb846dd['locale'];_0xb846dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x168f81=>{const _0x4abb25=_0x328f4a['t'];if('formatInline'!=_0x168f81['type'])return;const {data:_0x32b0b1}=_0x168f81;if(null!=_0x32b0b1){if('fontSize'==_0x32b0b1['commandName']){const _0x5df829=_0x32b0b1['commandParams'][0x0]['value'];if(_0x5df829){const _0x2efb5a=_0x4abb25(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xece27e=>_0xece27e['model']==_0x5df829)['title'])['toLowerCase']();return{'type':'format','content':o(_0x328f4a,'*Set\x20font\x20size:*\x20%0',_0x2efb5a)};}return{'type':'format','content':o(_0x328f4a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x32b0b1['commandName']){const _0x2e29c2=_0x32b0b1['commandParams'][0x0]['value'];return _0x2e29c2?{'type':'format','content':o(_0x328f4a,'*Set\x20font\x20family:*\x20%0',_0x2e29c2)}:{'type':'format','content':o(_0x328f4a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x32b0b1['commandName']){const _0x147403=_0x32b0b1['commandParams'][0x0]['value'];if(_0x147403){const _0x842ebc=_0x396fff(this['editor']['config']['get']('fontColor.colors'))['find'](_0x205395=>_0x205395['model']==_0x147403);let _0x461498=_0x147403,_0x269d58='';return _0x842ebc&&(_0x461498=_0x842ebc['label'],_0x269d58=_0x4abb25(_0x461498)['toLowerCase']()),{'type':'format','content':o(_0x328f4a,'*Set\x20font\x20color:*\x20%0',_0x269d58)['trim'](),'color':{'value':_0x147403,'title':_0x269d58||_0x461498}};}return{'type':'format','content':o(_0x328f4a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x32b0b1['commandName']){const _0x440364=_0x32b0b1['commandParams'][0x0]['value'];if(_0x440364){const _0x57ef49=_0x396fff(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5837ca=>_0x5837ca['model']==_0x440364);let _0x21d54b=_0x440364,_0x16b781='';return _0x57ef49&&(_0x21d54b=_0x57ef49['label'],_0x16b781=_0x4abb25(_0x21d54b)['toLowerCase']()),{'type':'format','content':o(_0x328f4a,'*Set\x20font\x20background\x20color:*\x20%0',_0x16b781)['trim'](),'color':{'value':_0x440364,'title':_0x16b781||_0x21d54b}};}return{'type':'format','content':o(_0x328f4a,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x560a22{['afterInit'](){const _0x2902ac=this['editor'],_0x1457f5=_0x2902ac['plugins']['get']('TrackChangesEditing'),_0x4d64d7=_0x2902ac['commands']['get']('copyFormat'),_0x534508=_0x2902ac['commands']['get']('pasteFormat');_0x4d64d7&&_0x534508&&(_0x1457f5['enableDefaultAttributesIntegration']('pasteFormat'),_0x1457f5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x6ebd78=this['editor'],_0xed909d=_0x6ebd78['locale'];_0x6ebd78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14f72b=>{if('formatBlock'!=_0x14f72b['type']&&'formatInline'!=_0x14f72b['type'])return;const {data:_0x1acc79}=_0x14f72b;if(_0x1acc79&&'pasteFormat'===_0x1acc79['commandName']){const _0xde00b9=[],_0x1f3fc5=_0x1acc79['commandParams'][0x0];for(const [_0x56d195,_0x2c9cf8]of Object['entries'](_0x1f3fc5))_0xde00b9['push'](so(_0x6ebd78,_0x56d195,_0x2c9cf8));return _0xde00b9['length']?{'type':'format','content':o(_0xed909d,'*Set\x20format\x20to:*\x20%0',_0xde00b9['join'](',\x20'))}:{'type':'format','content':o(_0xed909d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2b930d,_0x2df990,_0x2ae807){const _0x2cf285=_0x2b930d['locale']['t'],_0x4b0460=_0x2df990['split'](/(?=[A-Z])/)['join']('\x20'),_0x298c74=_0x2cf285(_0x4b0460['charAt'](0x0)['toUpperCase']()+_0x4b0460['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2ae807)return _0x298c74;if('fontColor'===_0x2df990||'fontBackgroundColor'===_0x2df990){const _0x59cbd0=_0x396fff(_0x2b930d['config']['get']('fontColor.colors'))['find'](_0x448890=>_0x448890['model']==_0x2ae807);return _0x298c74+'\x20('+(_0x59cbd0?_0x2cf285(_0x59cbd0['label'])['toLowerCase']():_0x2ae807)+')';}if('fontSize'===_0x2df990&&isNaN(parseFloat(_0x2ae807))){const _0xc5d5b=_0x2b930d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2b930d['config']['get']('fontSize.options'))['find'](_0x1a3468=>_0x1a3468['model']==_0x2ae807);return _0x298c74+'\x20('+(_0xc5d5b?_0x2cf285(_0xc5d5b['title'])['toLowerCase']():_0x2ae807)+')';}return _0x298c74+'\x20('+_0x2ae807+')';}class tt extends _0x560a22{['_headingOptions'];['afterInit'](){const _0x442a4f=this['editor'];if(!_0x442a4f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x442a4f['config']['get']('heading.options');const _0x364603=_0x442a4f['locale'],_0x520945=_0x442a4f['plugins']['get']('TrackChangesEditing');_0x520945['enableDefaultAttributesIntegration']('heading');for(const _0x3d4179 of this['_headingOptions'])'paragraph'!=_0x3d4179['model']&&_0x520945['descriptionFactory']['registerElementLabel'](_0x3d4179['model'],_0x562e21=>{const _0x35c605=this['_getHeadingLevel'](_0x3d4179['model']);return null!==_0x35c605?_0x7f5d9d(_0x562e21,_0x35c605):_0x2da8c2(_0x562e21,_0x3d4179['title']);});function _0x7f5d9d(_0x3bd86d,_0x144601){return o(_0x364603,'ELEMENT_HEADING',[_0x3bd86d,_0x144601]);}function _0x2da8c2(_0x258dc9,_0x1162a2){return o(_0x364603,'ELEMENT_HEADING_CUSTOM',[_0x258dc9,_0x1162a2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf1065c=this['editor'],_0xb440ab=_0xf1065c['locale'];function _0x4f5692(_0x438ef7,_0x6624f3){return o(_0xb440ab,'ELEMENT_HEADING_CUSTOM',[_0x438ef7,_0x6624f3]);}_0xf1065c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42ff6d=>{if('formatBlock'!=_0x42ff6d['type'])return;const {data:_0x4db1e1}=_0x42ff6d;if(_0x4db1e1&&'heading'==_0x4db1e1['commandName']){const _0x571579=_0x4db1e1['commandParams'][0x0]['value'],_0x2d541f=this['_getHeadingLevel'](_0x571579);if(null!==_0x2d541f)return{'type':'format','content':o(_0xb440ab,'*Change\x20to:*\x20%0',(_0x49efbc=0x1,_0x582e36=_0x2d541f,o(_0xb440ab,'ELEMENT_HEADING',[_0x49efbc,_0x582e36])))};const _0x477fb3=this['_headingOptions']['find'](_0x37384e=>_0x37384e['model']===_0x571579)['title'];return{'type':'format','content':o(_0xb440ab,'*Change\x20to:*\x20%0',_0x4f5692(0x1,_0x477fb3))};}var _0x49efbc,_0x582e36;});}['_getHeadingLevel'](_0x298fcf){const _0x2ea4ef=_0x298fcf['match'](/^heading(\d+)/);if(_0x2ea4ef)return _0x2ea4ef[0x1];const _0x4ad4c0=this['_headingOptions']?.['find'](_0x8ffe43=>_0x8ffe43['model']==_0x298fcf);if(_0x4ad4c0&&_0x4ad4c0['view']){const _0x3fcedc=_0x4ad4c0['view'],_0x5b91dd=(_0x3fcedc['name']??_0x3fcedc)['match'](/^h(\d+)/);if(_0x5b91dd)return _0x5b91dd[0x1];}return null;}}class et extends _0x560a22{['afterInit'](){const _0x30ae9a=this['editor'];if(!_0x30ae9a['plugins']['has']('HighlightEditing'))return;const _0x3b4cb2=_0x30ae9a['plugins']['get']('TrackChangesEditing'),_0x230817=_0x30ae9a['locale'];_0x3b4cb2['enableDefaultAttributesIntegration']('highlight'),_0x3b4cb2['registerInlineAttribute']('highlight'),_0x3b4cb2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x230817,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37db17=this['editor'],_0x39ae36=_0x37db17['locale'];_0x37db17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x314bc3=>{if('formatInline'!=_0x314bc3['type'])return;const {data:_0x403286}=_0x314bc3;if(_0x403286&&'highlight'==_0x403286['commandName']){const _0xf4a41d=_0x39ae36['t'],_0x5757b0=_0x403286['commandParams'][0x0]['value'];if(_0x5757b0){const _0x4c96f1=_0x37db17['config']['get']('highlight.options')['find'](_0x57e9b6=>_0x57e9b6['model']==_0x5757b0),_0x1ee1f9=_0xf4a41d(_0x4c96f1['title'])['toLowerCase']();return{'type':'format','content':o(_0x39ae36,'*Set\x20highlight:*\x20%0',_0x1ee1f9),'color':{'value':_0x4c96f1['color'],'title':_0x4c96f1['title']}};}return{'type':'format','content':o(_0x39ae36,'*Remove\x20highlight*',o(_0x39ae36,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x560a22{['afterInit'](){const _0x44a2c1=this['editor'];if(!_0x44a2c1['plugins']['has']('HorizontalLineEditing'))return;_0x44a2c1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4ab092=_0x44a2c1['plugins']['get']('TrackChangesEditing'),_0x554b29=_0x44a2c1['locale'];_0x4ab092['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2f5dc4=>o(_0x554b29,'ELEMENT_HORIZONTAL_LINE',_0x2f5dc4)),_0x44a2c1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3562bd,{writer:_0x563064,options:_0x3134e2})=>{if(!_0x3134e2['showSuggestionHighlights'])return null;const _0x177671=_0x563064['createContainerElement']('div'),_0x52d081=_0x563064['createEmptyElement']('hr');return _0x563064['addClass']('ck-horizontal-line',_0x177671),_0x563064['insert'](_0x563064['createPositionAt'](_0x177671,0x0),_0x52d081),_0x177671;},'converterPriority':'high'});}}class st extends _0x560a22{['afterInit'](){const _0x48d4dd=this['editor'];if(!_0x48d4dd['plugins']['has']('HtmlEmbed'))return;const _0x2dec85=_0x48d4dd['plugins']['get']('TrackChangesEditing'),_0x2dc8c9=_0x48d4dd['locale'];_0x2dec85['descriptionFactory']['registerElementLabel']('rawHtml',_0x14fdc0=>o(_0x2dc8c9,'ELEMENT_HTML_EMBED',_0x14fdc0)),_0x2dec85['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2dec85['registerBlockAttribute']('value'),_0x2dec85['descriptionFactory']['registerDescriptionCallback'](_0x249d14=>{if('attribute'!=_0x249d14['type'])return;const {data:_0x2e150d}=_0x249d14;if(_0x2e150d&&'value'==_0x2e150d['key']&&_0x249d14['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x587172=o(_0x2dc8c9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2dc8c9,'*Change\x20%0\x20content*',_0x587172)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c9e44=this['editor'],_0x248e17=_0x1c9e44['locale'];_0x1c9e44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d73af=>{if('formatBlock'!=_0x2d73af['type'])return;const {data:_0x5640f7}=_0x2d73af;if(_0x5640f7&&'htmlEmbed'==_0x5640f7['commandName']){const _0x292ede=o(_0x248e17,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x248e17,'*Change\x20%0\x20content*',_0x292ede)};}});}}class nt extends _0x560a22{['afterInit'](){const _0xde5b86=this['editor'];if(!_0xde5b86['plugins']['has']('ImageEditing'))return;const _0x2d6fa9=_0xde5b86['plugins']['get']('TrackChangesEditing'),_0x199e53=_0xde5b86['plugins']['get']('ImageUtils'),_0x155bcd=_0xde5b86['locale'];_0x2d6fa9['enableCommand']('insertImage'),_0x2d6fa9['descriptionFactory']['registerElementLabel']('imageBlock',_0x18b844=>o(_0x155bcd,'ELEMENT_IMAGE',_0x18b844)),_0x2d6fa9['descriptionFactory']['registerElementLabel']('imageInline',_0x24a1e7=>o(_0x155bcd,'ELEMENT_INLINE_IMAGE',_0x24a1e7)),_0x2d6fa9['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x155bcd,'ELEMENT_CAPTION')),_0xde5b86['plugins']['has']('ImageUploadEditing')&&_0x2d6fa9['enableCommand']('uploadImage'),_0xde5b86['plugins']['has']('ImageBlockEditing')&&_0xde5b86['plugins']['has']('ImageInlineEditing')&&(_0x2d6fa9['enableCommand']('imageTypeInline',(_0x5af5a3,_0x165130)=>{const _0x54a006=_0x199e53['getClosestSelectedImageElement'](_0xde5b86['model']['document']['selection']);_0xde5b86['model']['change'](()=>{_0x2d6fa9['markBlockFormat'](_0x54a006,{'commandName':'imageTypeInline','commandParams':[_0x165130]},[],'convertBlockImageToInline');});}),_0x2d6fa9['enableCommand']('imageTypeBlock',(_0x270220,_0x1f7326)=>{_0xde5b86['model']['change'](_0x552a9a=>{let _0x35a59a=_0x199e53['getClosestSelectedImageElement'](_0xde5b86['model']['document']['selection']),_0x4728f1=_0x552a9a['createRangeOn'](_0x35a59a);const _0x377cc5=_0xe9cfce['fromPosition'](_0x4728f1['start'],'toPrevious'),_0x41d907=_0xe9cfce['fromPosition'](_0x4728f1['end'],'toNext');_0x2d6fa9['forceDefaultExecution'](()=>_0x270220(_0x1f7326)),_0x35a59a=_0x199e53['getClosestSelectedImageElement'](_0xde5b86['model']['document']['selection']),_0x4728f1=_0x552a9a['createRangeOn'](_0x35a59a);const _0x447b9e=_0x552a9a['createRange'](_0x377cc5,_0x41d907);_0x377cc5['detach'](),_0x41d907['detach'](),_0x2d6fa9['markBlockFormat'](_0x35a59a,{'commandName':'imageTypeInline','commandParams':[_0x1f7326]},[],'convertInlineImageToBlock'),_0x447b9e['start']['isBefore'](_0x4728f1['start'])&&_0x2d6fa9['markInsertion'](_0x552a9a['createRange'](_0x447b9e['start'],_0x4728f1['start']),'convertInlineImageToBlock'),_0x4728f1['end']['isBefore'](_0x447b9e['end'])&&_0x2d6fa9['markInsertion'](_0x552a9a['createRange'](_0x4728f1['end'],_0x447b9e['end']),'convertInlineImageToBlock');});}),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2d6fa9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x31937e])=>{const _0xfd00b9=_0x2d6fa9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x50c696=_0x31937e['start'],_0x470223=_0x31937e['end'];const _0x3a19dc=_0xde5b86['model']['schema']['getNearestSelectionRange'](_0x50c696,'backward'),_0x5169ea=_0xde5b86['model']['schema']['getNearestSelectionRange'](_0x470223,'forward');_0x3a19dc['isCollapsed']&&(_0x50c696=_0x3a19dc['start']),_0x5169ea['isCollapsed']&&(_0x470223=_0x5169ea['end']),_0xfd00b9([_0xde5b86['model']['createRange'](_0x50c696,_0x470223)]);}),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x352bd5),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x352bd5)),_0xde5b86['plugins']['has']('ImageCaptionEditing')&&(_0x2d6fa9['enableCommand']('toggleImageCaption',(_0x41038a,_0x2dbe3c)=>{const _0x8e0b61=_0xde5b86['plugins']['get']('ImageCaptionUtils');let _0x5e5cac=_0x199e53['getClosestSelectedImageElement'](_0xde5b86['model']['document']['selection']),_0x1e96a1=_0x8e0b61['getCaptionFromImageModelElement'](_0x5e5cac);_0xde5b86['model']['change'](()=>{if(_0x1e96a1)return void _0x2d6fa9['markDeletion'](_0xde5b86['model']['createRangeOn'](_0x1e96a1));const _0x20bd1b=_0x199e53['isBlockImage'](_0x5e5cac);_0x41038a(_0x2dbe3c),_0x5e5cac=_0x199e53['getClosestSelectedImageElement'](_0xde5b86['model']['document']['selection']),_0x1e96a1=_0x8e0b61['getCaptionFromImageModelElement'](_0x5e5cac),_0x2d6fa9['markInsertion'](_0xde5b86['model']['createRangeOn'](_0x1e96a1),_0x20bd1b?null:'imageCaption');});}),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x352bd5));const _0x9d73c6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x530737(_0x5d8a13,_0x2e75a0){const _0x1c0a6e=_0x9d73c6['findIndex'](({type:_0x2e0d05,subType:_0x4ab4f7})=>_0x5d8a13['type']==_0x2e0d05&&_0x5d8a13['subType']==_0x4ab4f7),_0x24e29a=_0x9d73c6['findIndex'](({type:_0x38781a,subType:_0x2ed6f8})=>_0x2e75a0['type']==_0x38781a&&_0x2e75a0['subType']==_0x2ed6f8);if(_0x1c0a6e<0x0||_0x24e29a<0x0)return!0x1;const _0x30490b=_0x5d8a13['getFirstRange'](),_0x39da48=_0x2e75a0['getFirstRange']();if((0x0==_0x1c0a6e||0x1==_0x1c0a6e)&&0x2==_0x24e29a&&_0x30490b['isIntersecting'](_0x39da48))return!0x0;if(0x2==_0x1c0a6e&&0x3==_0x24e29a){const _0x51f805=_0x2d6fa9['_findSuggestions'](_0x30490b,'insertion')['filter'](({suggestion:_0x39fdf0,meta:_0x3971dd})=>_0x3971dd['isOwn']&&'convertInlineImageToBlock'==_0x39fdf0['subType']);if(_0x51f805['length']>0x1&&_0x39da48['end']['isEqual'](_0x30490b['start']))return!0x0;if(0x1==_0x51f805['length']&&(_0x30490b['start']['isEqual'](_0x39da48['end'])||_0x30490b['end']['isEqual'](_0x39da48['start'])))return!0x0;}if(0x3==_0x1c0a6e&&0x3==_0x24e29a&&_0x30490b['start']['isBefore'](_0x39da48['start'])){const _0x5bde3a=_0x30490b['end']['nodeAfter'],_0x4bbc2c=_0x39da48['start']['nodeBefore'];return _0x199e53['isBlockImage'](_0x5bde3a)&&_0x5bde3a===_0x4bbc2c;}return!0x1;}function _0x352bd5(_0x231b19,_0x25ee44){return _0x530737(_0x231b19,_0x25ee44)?[_0x231b19,_0x25ee44]:_0x530737(_0x25ee44,_0x231b19)?[_0x25ee44,_0x231b19]:null;}_0xde5b86['plugins']['has']('ImageResize')&&(_0x2d6fa9['enableDefaultAttributesIntegration']('resizeImage'),_0x2d6fa9['registerBlockAttribute']('resizedWidth'),_0x2d6fa9['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x155bcd,'FORMAT_IMAGE_SIZE'))),_0xde5b86['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2d6fa9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2d6fa9['registerBlockAttribute']('alt')),_0x2d6fa9['descriptionFactory']['registerDescriptionCallback'](_0x4e58f7=>{if(!!_0x9d73c6['find'](({type:_0x4dffe0,subType:_0x5a035b})=>_0x4e58f7['type']==_0x4dffe0&&_0x4e58f7['subType']==_0x5a035b))return _0x4e58f7['previous']?{}:void 0x0;}),_0x2d6fa9['descriptionFactory']['registerDescriptionCallback'](_0x49bb88=>{if('insertion'==_0x49bb88['type']||'deletion'==_0x49bb88['type']){const _0x270dc2=_0x49bb88['getContainedElement']();if(_0x270dc2&&_0x270dc2['is']('element','caption'))return{'type':'insertion'==_0x49bb88['type']?'addObject':'removeObject','element':_0x270dc2,'quantity':0x1};}}),_0x2d6fa9['descriptionFactory']['registerDescriptionCallback'](_0x18d6b3=>'formatBlock'==_0x18d6b3['type']&&'convertInlineImageToBlock'==_0x18d6b3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18d6b3['type']&&'convertBlockImageToInline'==_0x18d6b3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2d6fa9['descriptionFactory']['registerDescriptionCallback'](_0x3010db=>{if('attribute'!=_0x3010db['type'])return;const {data:_0x4b9d24}=_0x3010db;if(!_0x4b9d24||'alt'!=_0x4b9d24['key'])return;const _0x4f000f=_0x4b9d24['newValue'];return _0x4f000f?{'type':'format','content':o(_0x155bcd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f000f+'\x22')}:{'type':'format','content':o(_0x155bcd,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x759d1d=this['editor'],_0x538308=_0x759d1d['locale'];_0x759d1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x78ec88=>{if('formatBlock'!=_0x78ec88['type']&&'formatInline'!=_0x78ec88['type'])return;const {data:_0x8dd99b}=_0x78ec88;if(_0x8dd99b){if('imageTextAlternative'==_0x8dd99b['commandName']){const _0x226c53=_0x8dd99b['commandParams'][0x0]['newValue'];return _0x226c53?{'type':'format','content':o(_0x538308,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x226c53+'\x22')}:{'type':'format','content':o(_0x538308,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x8dd99b['commandName']){const _0x3d9410=_0x8dd99b['commandParams'][0x0]['width'];return _0x3d9410?{'type':'format','content':o(_0x538308,'*Set\x20image\x20width:*\x20%0',_0x3d9410)}:{'type':'format','content':o(_0x538308,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x560a22{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4aaba7=this['editor']['locale'],_0x5ed728=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ed728['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5ed728['registerBlockAttribute']('src'),_0x5ed728['descriptionFactory']['registerDescriptionCallback'](_0x1d46bc=>{if('attribute'!=_0x1d46bc['type'])return;const {data:_0x24c9e9}=_0x1d46bc;return _0x24c9e9&&'src'==_0x24c9e9['key']?_0x24c9e9['newValue']&&_0x24c9e9['oldValue']?{'type':'format','content':o(_0x4aaba7,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x351b6d=this['editor']['plugins']['get']('TrackChangesEditing');_0x351b6d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x351b6d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x351b6d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x351b6d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22c0f5=this['editor'],_0xc9ab81=_0x22c0f5['locale'];_0x22c0f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fb040=>{if('formatBlock'!=_0x3fb040['type']&&'formatInline'!=_0x3fb040['type'])return;const {data:_0x56c5f4}=_0x3fb040;if(!_0x56c5f4||'replaceImageSource'!=_0x56c5f4['commandName'])return;return{'type':'format','content':o(_0xc9ab81,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x560a22{['afterInit'](){const _0x559a3a=this['editor'];if(!_0x559a3a['plugins']['has']('ImageStyleEditing'))return;const _0x52f2b1=_0x559a3a['plugins']['get']('TrackChangesEditing'),_0x48cebe=_0x559a3a['plugins']['get']('ImageUtils'),_0x327641={};_0x52f2b1['enableCommand']('imageStyle',(_0x46c2d4,_0x3d491b)=>{const _0x48a3f6=_0x559a3a['plugins']['get']('Users')['me'],_0x2c1002=_0x559a3a['commands']['get']('imageStyle');let _0x442976=_0x48cebe['getClosestSelectedImageElement'](_0x559a3a['model']['document']['selection']),_0x467ffc=_0x559a3a['model']['createRangeOn'](_0x442976),_0x266b4d=_0x2c1002['value'];if(_0x266b4d==_0x3d491b['value'])return;const _0x199f30={'commandName':'imageStyle','commandParams':[_0x3d491b],'formatGroupId':_0x524896()};_0x559a3a['model']['change'](()=>{if(_0x52f2b1['getSuggestions']()['filter'](_0x2ad81a=>_0x2ad81a['isInContent']&&_0x48a3f6==_0x2ad81a['author']&&('formatBlock'==_0x2ad81a['type']||'formatInline'==_0x2ad81a['type'])&&('imageStylePreApply'==_0x2ad81a['subType']||'imageStylePostApply'==_0x2ad81a['subType'])&&_0x2ad81a['getFirstRange']()['isEqual'](_0x467ffc))['forEach'](_0x213ac0=>_0x52f2b1['discardSuggestion'](_0x213ac0['head'])),_0x442976=_0x48cebe['getClosestSelectedImageElement'](_0x559a3a['model']['document']['selection']),_0x467ffc=_0x559a3a['model']['createRangeOn'](_0x442976),_0x2c1002['refresh'](),_0x559a3a['commands']['get']('imageTypeInline')['refresh'](),_0x559a3a['commands']['get']('imageTypeBlock')['refresh'](),_0x266b4d=_0x2c1002['value'],_0x266b4d!=_0x3d491b['value'])return _0x48cebe['isInlineImage'](_0x442976)&&_0x2c1002['shouldConvertImageType'](_0x3d491b['value'],_0x442976)?(_0x46c2d4({..._0x3d491b,'setImageSizes':!0x1}),_0x442976=_0x48cebe['getClosestSelectedImageElement'](_0x559a3a['model']['document']['selection']),void _0x52f2b1['markBlockFormat'](_0x442976,{..._0x199f30,'commandReversedParams':[{'value':_0x266b4d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x48cebe['isBlockImage'](_0x442976)?_0x52f2b1['markBlockFormat'](_0x442976,_0x199f30,[],'imageStylePostApply'):_0x52f2b1['markInlineFormat'](_0x467ffc,_0x199f30,'imageStylePostApply'));});});for(const _0x27e795 of _0x559a3a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x327641[_0x27e795['name']]=_0x27e795['title']['toLowerCase']();_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x385387])=>{_0x48cebe['setImageNaturalSizeAttributes'](_0x385387['getContainedElement']());}),_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x186fdc,_0x17a5d4)=>{_0x52f2b1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x186fdc,{'commandName':_0x17a5d4['commandName'],'commandParams':_0x17a5d4['commandReversedParams']});}),_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x191825,_0x3b76c5){if(_0x579d06(_0x191825,_0x3b76c5))return[_0x191825,_0x3b76c5];if(_0x579d06(_0x3b76c5,_0x191825))return[_0x3b76c5,_0x191825];return null;});const _0x4626bf=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x579d06(_0x2e0f79,_0x17a0f2){const _0x2b8ee8=_0x4626bf['findIndex'](({type:_0x1685dd,subType:_0x4df981})=>_0x2e0f79['type']==_0x1685dd&&_0x2e0f79['subType']==_0x4df981),_0xba513=_0x4626bf['findIndex'](({type:_0x346c0d,subType:_0x31c28a})=>_0x17a0f2['type']==_0x346c0d&&_0x17a0f2['subType']==_0x31c28a);if(_0x2b8ee8<0x0||_0xba513<0x0)return!0x1;const _0xbee78=_0x2e0f79['getFirstRange'](),_0x59bdfc=_0x17a0f2['getFirstRange']();if((0x0==_0x2b8ee8||0x1==_0x2b8ee8)&&0x2==_0xba513&&_0xbee78['isIntersecting'](_0x59bdfc))return!0x0;if(0x2==_0x2b8ee8&&0x3==_0xba513){const _0x2250a8=_0x52f2b1['_findSuggestions'](_0xbee78,'insertion')['filter'](({suggestion:_0x180953,meta:_0x18c1e0})=>_0x18c1e0['isOwn']&&'convertInlineImageToBlock'==_0x180953['subType']);if(_0x2250a8['length']>0x1&&_0x59bdfc['end']['isEqual'](_0xbee78['start']))return!0x0;if(0x1==_0x2250a8['length']&&(_0xbee78['start']['isEqual'](_0x59bdfc['end'])||_0xbee78['end']['isEqual'](_0x59bdfc['start'])))return!0x0;}if(0x3==_0x2b8ee8&&0x3==_0xba513&&_0xbee78['start']['isBefore'](_0x59bdfc['start'])){const _0x30f5b9=_0xbee78['end']['nodeAfter'],_0xdb82d8=_0x59bdfc['start']['nodeBefore'];return _0x48cebe['isBlockImage'](_0x30f5b9)&&_0x30f5b9===_0xdb82d8;}return!0x1;}_0x559a3a['model']['document']['registerPostFixer'](()=>{let _0x5d2c1d=!0x1;const _0x249389=Array['from'](_0x559a3a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x527c8b,data:_0x26f582}of _0x249389){const {group:_0x2fd528,type:_0x175e02,subType:_0x273c1e,id:_0x503531}=_0x52f2b1['_splitMarkerName'](_0x527c8b);if('suggestion'==_0x2fd528&&_0x52f2b1['hasSuggestion'](_0x503531)){if('formatBlock'==_0x175e02&&('imageStylePreApply'==_0x273c1e||'imageStylePostApply'==_0x273c1e)){const _0x162f4b=_0x52f2b1['getSuggestion'](_0x503531);if(_0x26f582['newRange']){const _0x1a4ea7=_0x162f4b['getFirstRange']()['getContainedElement']();if(_0x48cebe['isBlockImage'](_0x1a4ea7))continue;_0x52f2b1['discardSuggestion'](_0x162f4b),_0x5d2c1d=!0x0;}}if('insertion'==_0x175e02&&'imageCaption'==_0x273c1e&&!_0x26f582['newRange']){const _0x1793c3=_0x52f2b1['getSuggestion'](_0x503531);_0x1793c3['next']&&_0x1793c3['next']['isInContent']&&(_0x52f2b1['discardSuggestion'](_0x1793c3['next']),_0x5d2c1d=!0x0);}}}return _0x5d2c1d;}),this['_registerLegacyDescription'](_0x327641);}['_registerLegacyDescription'](_0x49c9b3){const _0x1f842e=this['editor'],_0x4e83b7=_0x1f842e['locale'];_0x1f842e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d8608=>{if('formatBlock'!=_0x2d8608['type']&&'formatInline'!=_0x2d8608['type'])return;const {data:_0x1014dc}=_0x2d8608;if(!_0x1014dc||'imageStyle'!=_0x1014dc['commandName'])return;const _0x186d4b=_0x1014dc['commandParams'][0x0]['value'];return _0x275dc6('side'===_0x186d4b?o(_0x4e83b7,'FORMAT_SIDE_IMAGE'):_0x49c9b3[_0x186d4b]||_0x186d4b);function _0x275dc6(_0x4ae6df){return{'type':'format','content':o(_0x4e83b7,'*Format:*\x20%0',_0x4ae6df)};}});}}class at extends _0x560a22{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4c94a4){super(_0x4c94a4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x584e5d=this['editor'],_0x30c043=_0x584e5d['commands']['get']('importWord'),_0x34611d=_0x584e5d['commands']['get']('trackChanges');_0x30c043&&(_0x30c043['on']('execute',(_0x4cc6b3,[,_0x59e139])=>{this['_trackChangesValueDuringImport']=_0x34611d['value'],_0x59e139['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x30c043,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x30c043,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x34611d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x584e5d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2e4ed4,_0x11adbf){const {suggestions:_0x351703}=_0x11adbf,_0x35cab7=this['editor']['commands']['get']('trackChanges'),_0x370273=_0x35cab7['value'];this['_trackChangesValueDuringImport']!==_0x370273&&(_0x35cab7['execute'](),this['_trackChangesExecuted']=!0x0),_0x351703&&_0x351703['forEach'](({id:_0x58573a,type:_0x3db0ff,author:_0x299440,created_at:_0x571b35})=>{const _0x22c01c={'id':_0x58573a,'type':_0x3db0ff,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x299440,'createdAt':_0x571b35?new Date(_0x571b35):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x22c01c);});}}class ct extends _0x560a22{['afterInit'](){const _0x2ccb94=this['editor'],_0x157d71=_0x2ccb94['plugins']['get']('TrackChangesEditing');if(_0x2ccb94['plugins']['has']('IndentEditing')&&(_0x157d71['enableCommand']('indent'),_0x157d71['enableCommand']('outdent')),_0x2ccb94['plugins']['has']('IndentBlock')){for(const _0x2603c5 of['indentBlock','outdentBlock'])_0x157d71['enableDefaultAttributesIntegration'](_0x2603c5);}const _0x38fa6d=_0x2ccb94['locale'];_0x157d71['registerBlockAttribute']('blockIndent'),_0x157d71['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x38fa6d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x591f9e=this['editor'],_0x400742=_0x591f9e['locale'],_0x29d12f=_0x591f9e['plugins']['get']('TrackChangesEditing');_0x29d12f['descriptionFactory']['registerDescriptionCallback'](_0x83dbe7=>{if('formatBlock'!=_0x83dbe7['type'])return;const {data:_0x957c21}=_0x83dbe7;if(!_0x957c21)return;if('indentBlock'!=_0x957c21['commandName']&&'outdentBlock'!=_0x957c21['commandName'])return;const _0x1b760f=_0x83dbe7['getItems']()[0x0],_0x2732ad=_0x29d12f['descriptionFactory']['getItemLabel'](_0x1b760f);return'indentBlock'==_0x957c21['commandName']?{'type':'format','content':o(_0x400742,'*Indent:*\x20%0',_0x2732ad)}:'outdentBlock'==_0x957c21['commandName']?{'type':'format','content':o(_0x400742,'*Outdent:*\x20%0',_0x2732ad)}:void 0x0;});}}class ut extends _0x560a22{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x560a22{['afterInit'](){const _0x891a14=this['editor'];if(!_0x891a14['plugins']['has']('LinkEditing'))return;const _0x4aa8ff=_0x891a14['plugins']['get']('TrackChangesEditing'),_0x10e07a=_0x891a14['commands']['get']('link');_0x4aa8ff['enableDefaultAttributesIntegration']('link'),_0x4aa8ff['enableDefaultAttributesIntegration']('unlink'),_0x4aa8ff['registerInlineAttribute']('linkHref');for(const _0xf278f3 of _0x10e07a['manualDecorators'])_0x4aa8ff['registerInlineAttribute'](_0xf278f3['id']),_0x4aa8ff['descriptionFactory']['registerAttributeLabel'](_0xf278f3['id'],'link\x20('+_0xf278f3['label']['toLowerCase']()+')');_0x4aa8ff['descriptionFactory']['registerDescriptionCallback'](_0x361bad=>{if('attribute'!=_0x361bad['type'])return;const {data:_0x4b8aed}=_0x361bad;if(!_0x4b8aed||'linkHref'!=_0x4b8aed['key'])return;const _0x1957df=_0x4b8aed['newValue'],_0xeb927=_0x891a14['locale'];return{'type':'format','content':null==_0x1957df?o(_0xeb927,'*Remove\x20link*'):o(_0xeb927,'*Set\x20link:*\x20%0','\x22'+_0x1957df+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7b0f78=this['editor'],_0x3cc65d=_0x7b0f78['locale'];_0x7b0f78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x498f11=>{if('formatInline'!=_0x498f11['type'])return;const {data:_0x32a2ce}=_0x498f11;if(_0x32a2ce){if('link'==_0x32a2ce['commandName']){const _0x2f8457=_0x32a2ce['commandParams'][0x0];return{'type':'format','content':o(_0x3cc65d,'*Set\x20link:*\x20%0','\x22'+_0x2f8457+'\x22')};}return'unlink'==_0x32a2ce['commandName']?{'type':'format','content':o(_0x3cc65d,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x560a22{['afterInit'](){const _0x280ed8=this['editor'],_0x228291=_0x280ed8['locale'];if(!_0x280ed8['plugins']['has']('LegacyListEditing'))return;const _0x13d9d1=_0x280ed8['plugins']['get']('TrackChangesEditing'),_0x1ef7ab=_0x280ed8['plugins']['has']('LegacyTodoListEditing');function _0x15d51f(_0x14273a){return()=>{const _0x4a7043=_0x280ed8['model']['document']['selection'],_0x142162=_0x280ed8['commands']['get'](_0x14273a);if(_0x142162['value'])return void _0x280ed8['execute']('paragraph',{});const _0x112a7b=_0x14273a['slice'](0x0,-0x4),_0x5a6f42=function(_0x2e868b,_0x39a9ad,_0x4c43a3){let _0x4e2b6e=Array['from'](_0x2e868b)['filter'](_0x390c1c=>function(_0x3b8fc9,_0x18e3c6){return _0x18e3c6['checkChild'](_0x3b8fc9['parent'],'listItem')&&!_0x18e3c6['isObject'](_0x3b8fc9);}(_0x390c1c,_0x4c43a3));_0x4e2b6e=_0x4e2b6e['filter'](_0x3226c3=>!_0x3226c3['is']('element','listItem')||_0x3226c3['getAttribute']('listType')!=_0x39a9ad);const _0xd07497=new Set();for(const _0x3c92eb of _0x4e2b6e)_0x3c92eb['is']('element','listItem')?_0xd07497['add'](fe(_0x3c92eb)):_0xd07497['add'](_0x3c92eb);return Array['from'](_0xd07497);}(_0x4a7043['getSelectedBlocks'](),_0x112a7b,_0x280ed8['model']['schema']);_0x280ed8['model']['change'](()=>{for(const _0x5290b0 of _0x5a6f42)_0x13d9d1['markBlockFormat'](_0x5290b0,{'commandName':_0x14273a,'commandParams':[{'forceValue':!_0x142162['value']}],'formatGroupId':'blockName'},ue(_0x5290b0));});};}function _0x23c503(_0x5a0d27){return()=>{const _0x2d5f8d=function(_0x7c400f){let _0x12dfaf=Array['from'](_0x7c400f);const _0x2c3fea=_0x12dfaf['findIndex'](_0x1d6069=>'listItem'!=_0x1d6069['name']);return _0x2c3fea>-0x1&&(_0x12dfaf=_0x12dfaf['slice'](0x0,_0x2c3fea)),_0x12dfaf;}(_0x280ed8['model']['document']['selection']['getSelectedBlocks']()),_0x3a411c=_0x280ed8['model']['createRange'](_0x280ed8['model']['createPositionAt'](_0x2d5f8d[0x0],'before'),_0x280ed8['model']['createPositionAt'](_0x2d5f8d[_0x2d5f8d['length']-0x1],'end'));_0x280ed8['model']['change'](()=>{_0x13d9d1['markBlockFormat'](_0x3a411c,{'commandName':_0x5a0d27,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4ffaad){const _0x445d0d=new Set();for(const _0x15042f of _0x4ffaad){let _0x3551d0=_0x15042f['nextSibling'];for(;_0x3551d0&&_0x3551d0['getAttribute']('listIndent')>_0x15042f['getAttribute']('listIndent');)_0x445d0d['add'](_0x3551d0),_0x3551d0=_0x3551d0['nextSibling'];}return Array['from'](_0x445d0d);}(_0x2d5f8d));});};}_0x13d9d1['enableCommand']('numberedList',_0x15d51f('numberedList')),_0x13d9d1['enableCommand']('bulletedList',_0x15d51f('bulletedList')),_0x1ef7ab&&_0x13d9d1['enableCommand']('todoList',_0x15d51f('todoList')),_0x13d9d1['enableCommand']('indentList',_0x23c503('indentList')),_0x13d9d1['enableCommand']('outdentList',_0x23c503('outdentList')),_0x1ef7ab&&_0x13d9d1['enableCommand']('checkTodoList',()=>{const _0x51aca2=_0x280ed8['commands']['get']('checkTodoList'),_0x2cb4b6=Array['from'](_0x51aca2['_selectedElements']);_0x2cb4b6['filter'](_0x549264=>_0x549264['getAttribute']('todoListChecked')!=_0x51aca2['value']),_0x280ed8['model']['change'](()=>{for(const _0x36e977 of _0x2cb4b6)_0x13d9d1['markBlockFormat'](_0x36e977,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x51aca2['value']}]});});}),_0x13d9d1['descriptionFactory']['registerElementLabel']('listItem',_0x40cbad=>o(_0x228291,'ELEMENT_LIST_ITEM',_0x40cbad)),_0x13d9d1['descriptionFactory']['registerDescriptionCallback'](_0x51a287=>{if('formatBlock'!=_0x51a287['type']&&'formatInline'!=_0x51a287['type'])return;const {data:_0x6ffe4c}=_0x51a287;if(_0x6ffe4c){if('numberedList'==_0x6ffe4c['commandName']||'bulletedList'==_0x6ffe4c['commandName']||'todoList'==_0x6ffe4c['commandName'])switch(_0x6ffe4c['commandName']['replace']('List','')){case'bulleted':return _0x1dbf7a(o(_0x228291,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1dbf7a(o(_0x228291,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1dbf7a(o(_0x228291,'ELEMENT_TODO_LIST'));}if('indentList'==_0x6ffe4c['commandName'])return{'type':'format','content':o(_0x228291,'*Indent:*\x20%0',o(_0x228291,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x6ffe4c['commandName'])return{'type':'format','content':o(_0x228291,'*Outdent:*\x20%0',o(_0x228291,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x6ffe4c['commandName'])return _0x6ffe4c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x228291,'*Check\x20item*')}:{'type':'format','content':o(_0x228291,'*Uncheck\x20item*')};}function _0x1dbf7a(_0x399869){return{'type':'format','content':o(_0x228291,'*Change\x20to:*\x20%0',_0x399869)};}});}}function fe(_0x2c3a9d){const _0x175911=_0x2c3a9d['getAttribute']('listIndent');if(0x0==_0x175911)return _0x2c3a9d;let _0x3370e8=_0x2c3a9d;for(;_0x2c3a9d['previousSibling']&&_0x2c3a9d['previousSibling']['is']('element','listItem');){const _0x3801eb=_0x2c3a9d['previousSibling']['getAttribute']('listIndent');if(_0x3801eb==_0x175911)_0x3370e8=_0x2c3a9d['previousSibling'];else{if(_0x3801eb<_0x175911)break;}_0x2c3a9d=_0x2c3a9d['previousSibling'];}return _0x3370e8;}function ue(_0x492c7){const _0x119fe5=[];if(_0x492c7['is']('element','listItem')&&_0x492c7['getAttribute']('listIndent')>0x0){let _0x13407f=_0x492c7['nextSibling'];for(;_0x13407f&&'listItem'==_0x13407f['name']&&_0x13407f['getAttribute']('listIndent')==_0x492c7['getAttribute']('listIndent');)_0x119fe5['push'](_0x13407f),_0x13407f=_0x13407f['nextSibling'];}return _0x119fe5;}class W extends _0x560a22{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x259a3a=this['editor']['config']['get']('list.properties'),_0x538954=this['editor']['plugins']['get']('TrackChangesEditing');_0x259a3a['styles']&&_0x538954['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x259a3a['reversed']&&_0x538954['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x259a3a['startIndex']&&_0x538954['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x538954['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3db2ba,_0x583078={}){const _0x3889c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11ff26=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3889c0['markMultiRangeBlockFormat'](_0x11ff26,{'commandName':'listStyle','commandParams':[{'type':_0x583078['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x940bb6,_0x24261e={}){const _0x585eef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41dda2=this['_getSuggestionBlocks'](_0x5cb638=>_0x5cb638['is']('element','listItem')&&'numbered'===_0x5cb638['getAttribute']('listType'));if(_0x41dda2['length']<0x1)return;const _0x28a476=_0x41dda2['map'](_0x2fdb5d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fdb5d,'before'),this['editor']['model']['createPositionAt'](_0x2fdb5d,0x0)));this['editor']['model']['change'](()=>{_0x585eef['markMultiRangeBlockFormat'](_0x28a476,{'commandName':'listReversed','commandParams':[{'reversed':_0x24261e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x444392,_0x589b66={}){const _0x48a06f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x74901a=this['_getSuggestionBlocks'](_0x44c8ae=>_0x44c8ae['is']('element','listItem')&&'numbered'===_0x44c8ae['getAttribute']('listType'));if(_0x74901a['length']<0x1)return;const _0x2c8105=_0x74901a['map'](_0x3163ce=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3163ce,'before'),this['editor']['model']['createPositionAt'](_0x3163ce,0x0)));this['editor']['model']['change'](()=>{_0x48a06f['markMultiRangeBlockFormat'](_0x2c8105,{'commandName':'listStart','commandParams':[{'startIndex':_0x589b66['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2b97ff){if('formatBlock'!=_0x2b97ff['type']&&'formatInline'!=_0x2b97ff['type'])return;const _0x2dad8d=this['editor']['locale'],{data:_0x3f7cc4}=_0x2b97ff;if(!_0x3f7cc4)return;let _0x21032c,_0x301518;switch(_0x3f7cc4['commandName']){case'listStyle':_0x21032c='*Change\x20to:*\x20%0',_0x301518={'type':'format','content':o(_0x2dad8d,_0x21032c,o(_0x2dad8d,this['_getTranslationKeyForListStyle'](_0x3f7cc4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21032c=_0x3f7cc4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x301518={'type':'format','content':o(_0x2dad8d,_0x21032c)};break;case'listStart':_0x21032c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x301518={'type':'format','content':o(_0x2dad8d,_0x21032c,_0x3f7cc4['commandParams'][0x0]['startIndex'])};}return _0x301518;}['_getSuggestionBlocksForListStyle'](){const _0x769d27=this['editor']['plugins']['get']('LegacyListUtils');let _0x17feed=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x17feed[0x0]?.['is']('element','listItem')&&_0x17feed['unshift'](..._0x769d27['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x17feed[_0x17feed['length']-0x1]?.['is']('element','listItem')&&_0x17feed['push'](..._0x769d27['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x17feed=[...new Set(_0x17feed)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x17feed=_0x17feed['filter'](_0x2b7ca1=>_0x2b7ca1['is']('element','listItem'))),_0x17feed;}['_getSuggestionBlocks'](_0x2a9fe6){const _0x166877=this['editor']['plugins']['get']('LegacyListUtils');let _0x53a57c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2a9fe6)['map'](_0x13bd96=>{const _0x1acac3=this['editor']['model']['createPositionAt'](_0x13bd96,0x0);return[..._0x166877['getSiblingNodes'](_0x1acac3,'backward'),..._0x166877['getSiblingNodes'](_0x1acac3,'forward')];})['flat']();return _0x53a57c=[...new Set(_0x53a57c)],_0x53a57c;}['_getTranslationKeyForListStyle'](_0x39fd9a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x39fd9a)||'default')['toUpperCase']()+'_LIST_'+_0x39fd9a['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x560a22{['afterInit'](){const _0x15d7d8=this['editor'];if(!_0x15d7d8['plugins']['has']('MediaEmbedEditing'))return;const _0x178602=_0x15d7d8['plugins']['get']('TrackChangesEditing'),_0x16bc6c=_0x15d7d8['locale'];_0x178602['enableCommand']('mediaEmbed'),_0x178602['descriptionFactory']['registerElementLabel']('media',_0x1e929d=>o(_0x16bc6c,'ELEMENT_MEDIA',_0x1e929d)),_0x15d7d8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x444dfd,{writer:_0x1f6566,options:_0x5c6b24})=>{if(_0x5c6b24['showSuggestionHighlights'])return _0x1f6566['createEmptyElement']('div');},'converterPriority':'high'}),_0x15d7d8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5299c4,_0x3c0fd6,_0x38de36)=>{_0x38de36['options']['showSuggestionHighlights']&&_0x5299c4['stop']();},{'priority':'high'});}}class mt extends _0x560a22{['afterInit'](){const _0x1bb14e=this['editor'];_0x1bb14e['plugins']['has']('MentionEditing')&&_0x1bb14e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x560a22{['afterInit'](){const _0x38730b=this['editor'];if(!_0x38730b['plugins']['has']('MergeFieldsEditing'))return;_0x38730b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x38730b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x22a9da=_0x38730b['plugins']['get']('TrackChangesEditing'),_0x3bc87b=_0x38730b['locale'];_0x22a9da['descriptionFactory']['registerElementLabel']('mergeField',_0x243002=>o(_0x3bc87b,'ELEMENT_MERGE_FIELD',_0x243002)),_0x22a9da['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x15b7d9=>o(_0x3bc87b,'ELEMENT_MERGE_FIELD',_0x15b7d9)),_0x22a9da['descriptionFactory']['registerDescriptionCallback'](_0x379a42=>{if('insertion'!=_0x379a42['type']&&'deletion'!=_0x379a42['type'])return;const _0x5501b8=_0x379a42['getContainedElement']();if(null==_0x5501b8)return;if(!_0x5501b8['is']('element','mergeField')&&!_0x5501b8['is']('element','mergeFieldBlock'))return;const _0x5f4077=_0x38730b['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5501b8['getAttribute']('id'));return'insertion'==_0x379a42['type']?{'type':'insertion','content':o(_0x3bc87b,'*Insert:*\x20%0','\x22'+_0x5f4077+'\x22\x20'+o(_0x3bc87b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3bc87b,'*Remove:*\x20%0','\x22'+_0x5f4077+'\x22\x20'+o(_0x3bc87b,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x560a22{['afterInit'](){const _0x5b7010=this['editor'],_0x108b5d=_0x5b7010['plugins']['get']('TrackChangesEditing');_0x5b7010['plugins']['has']('MultiLevelList')&&(_0x108b5d['enableDefaultAttributesIntegration']('multiLevelList'),_0x108b5d['registerBlockAttribute']('listMarkerStyle'),_0x108b5d['descriptionFactory']['registerDescriptionCallback'](_0x42ab50=>this['handleDescriptions'](_0x42ab50)));}['handleDescriptions'](_0x4501f5){const _0x2eb00d=this['editor']['locale'],{data:_0x5014a6}=_0x4501f5,_0x134b1d={'type':'format','content':''};if(_0x5014a6&&'listMarkerStyle'==_0x5014a6['key']){if(!_0x5014a6['oldValue'])return{'type':'format','content':o(_0x2eb00d,'*Set\x20format:*\x20%0',o(_0x2eb00d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5014a6['newValue']+')'};if(!_0x5014a6['newValue']){let _0x4f408a=_0x4501f5['head'];for(;_0x4f408a;){if(_0x4f408a['data']&&'listType'==_0x4f408a['data']['key']&&_0x4f408a['data']['newValue'])return _0x134b1d;_0x4f408a=_0x4f408a['next'];}return{'type':'format','content':o(_0x2eb00d,'*Remove\x20format:*\x20%0',o(_0x2eb00d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5014a6['oldValue']+')'};}}}}class kt extends _0x560a22{['afterInit'](){const _0x3515d9=this['editor'];if(!_0x3515d9['plugins']['has']('PageBreakEditing'))return;_0x3515d9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2c544a=_0x3515d9['plugins']['get']('TrackChangesEditing'),_0x5c4800=_0x3515d9['locale'];_0x2c544a['descriptionFactory']['registerElementLabel']('pageBreak',_0x44853c=>o(_0x5c4800,'ELEMENT_PAGE_BREAK',_0x44853c));}}class bt extends _0x560a22{['afterInit'](){const _0x1d1c86=this['editor'];if(!_0x1d1c86['plugins']['has']('Paragraph'))return;const _0x5e8c60=_0x1d1c86['locale'],_0x5d05dd=_0x1d1c86['plugins']['get']('TrackChangesEditing');_0x5d05dd['descriptionFactory']['registerElementLabel']('paragraph',_0x3bc92d=>o(_0x5e8c60,'ELEMENT_PARAGRAPH',_0x3bc92d)),_0x5d05dd['enableDefaultAttributesIntegration']('paragraph'),_0x5d05dd['enableCommand']('insertParagraph'),_0x1d1c86['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d1c86),{'priority':'highest'}),_0x1d1c86['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x246020,_0x886370,_0xb31a3)=>{_0xb31a3['options']['showSuggestionHighlights']&&nr(_0x1d1c86,{'showActiveMarker':!0x1})(_0x246020,_0x886370,_0xb31a3);},{'priority':'highest'});const _0x3d3e95=_0x5d05dd['descriptionFactory'];_0x3d3e95['registerDescriptionCallback'](_0x57caa5=>{if('insertion'!==_0x57caa5['type'])return;const {start:_0x4aa8cc,end:_0x166819}=_0x57caa5['getFirstRange']();if(!_0x4aa8cc['isTouching'](_0x166819)||!_0x4aa8cc['nodeAfter'])return;const _0x2505c1=_0x1d1c86['model']['schema'],_0x18cd3a=_0x4aa8cc['nodeAfter'];return _0x2505c1['isBlock'](_0x18cd3a)&&!_0x2505c1['isLimit'](_0x18cd3a)&&_0x2505c1['checkChild'](_0x18cd3a,'$text')?{'type':'insertion','content':o(_0x5e8c60,'*Insert:*\x20%0',_0x3d3e95['getItemLabel'](_0x18cd3a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17ffb8=this['editor'],_0x404ab6=_0x17ffb8['locale'];_0x17ffb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f06d2=>{if('formatBlock'!=_0x4f06d2['type'])return;const {data:_0x90ae11}=_0x4f06d2;return _0x90ae11&&'paragraph'==_0x90ae11['commandName']?{'type':'format','content':o(_0x404ab6,'*Change\x20to:*\x20%0',o(_0x404ab6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x462df3,{showActiveMarker:_0x53eb85=!0x0}={}){return(_0x4005fc,_0x28a863,_0x24ca68)=>{const _0x404f37=_0x462df3['plugins']['get']('TrackChangesEditing'),_0x6f3810=_0x28a863['markerRange']['start'],_0x36d965=_0x28a863['markerRange']['end'],_0x586de0=_0x462df3['model']['schema'];if(!_0x6f3810['isTouching'](_0x36d965)||!_0x6f3810['nodeAfter'])return;const _0x40ee46=_0x6f3810['nodeAfter'];if(_0x586de0['isBlock'](_0x40ee46)&&!_0x586de0['isLimit'](_0x40ee46)&&_0x586de0['checkChild'](_0x40ee46,'$text')){if(!_0x24ca68['consumable']['consume'](_0x28a863['markerRange'],_0x4005fc['name']))return;const {authorId:_0x4d3bd2}=_0x404f37['_splitMarkerName'](_0x28a863['markerName']),_0x13c00a=_0x24ca68['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4d3bd2}),_0x2bd0a9=_0x24ca68['mapper']['toViewPosition'](_0x36d965);_0x53eb85&&_0x404f37['activeMarkers']['includes'](_0x28a863['markerName'])&&_0x24ca68['writer']['addClass']('ck-suggestion-marker--active',_0x13c00a),_0x24ca68['writer']['insert'](_0x2bd0a9,_0x13c00a),_0x24ca68['mapper']['bindElementToMarker'](_0x13c00a,_0x28a863['markerName']);}};}class wt extends _0x560a22{['afterInit'](){const _0x4c309f=this['editor'];if(!_0x4c309f['plugins']['has']('RemoveFormatEditing'))return;_0x4c309f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b3d17=this['editor'];_0x4b3d17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1366da=>{if('formatBlock'!=_0x1366da['type']&&'formatInline'!=_0x1366da['type'])return;const {data:_0x3e5fa1}=_0x1366da;return _0x3e5fa1&&'removeFormat'==_0x3e5fa1['commandName']?{'type':'format','content':o(_0x4b3d17['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x560a22{['afterInit'](){const _0x1a87dd=this['editor'];if(!_0x1a87dd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5ac2e4=_0x1a87dd['plugins']['get']('TrackChangesEditing');_0x5ac2e4['enableCommand']('goToPreviousRestrictedEditingException'),_0x5ac2e4['enableCommand']('goToNextRestrictedEditingException');const _0x3697cc=_0x1a87dd['plugins']['get']('RestrictedEditingModeEditing');_0x3697cc['enableCommand']('trackChanges'),_0x3697cc['enableCommand']('acceptSuggestion'),_0x3697cc['enableCommand']('discardSuggestion'),_0x3697cc['enableCommand']('acceptAllSuggestions'),_0x3697cc['enableCommand']('discardAllSuggestions'),_0x3697cc['enableCommand']('acceptSelectedSuggestions'),_0x3697cc['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x560a22{static get['requires'](){return[_0x127bb0];}['init'](){const _0xda1bb6=this['editor'],_0x248c08=_0xda1bb6['plugins']['get']('TrackChangesEditing');_0x248c08['enableCommand']('shiftEnter'),_0xda1bb6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0xda1bb6),{'priority':'high'}),_0xda1bb6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0xda1bb6),{'priority':'high'}),_0xda1bb6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2971eb,_0x5c098e,_0x275a37)=>{_0x275a37['options']['showSuggestionHighlights']&&ge(_0xda1bb6,{'showActiveMarker':!0x1})(_0x2971eb,_0x5c098e,_0x275a37);}),_0x248c08['descriptionFactory']['registerElementLabel']('softBreak',_0x32e1c6=>o(_0xda1bb6['locale'],'ELEMENT_LINE_BREAK',_0x32e1c6));}}function ge(_0x15a3cc,{showActiveMarker:_0x82d0ca=!0x0}={}){return(_0x50dbf7,_0xc9c55f,_0x1cd55d)=>{const _0x1c2cfd=_0x15a3cc['plugins']['get']('TrackChangesEditing');if(!_0x1cd55d['consumable']['test'](_0xc9c55f['markerRange'],_0x50dbf7['name']))return;const _0x4a9bfd=_0x15a3cc['model'];for(const _0x2cd617 of _0xc9c55f['markerRange']['getItems']()){if(!_0x2cd617['is']('element','softBreak'))continue;const _0x38995a='deletion'==_0xc9c55f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x51a9f7}=_0x1c2cfd['_splitMarkerName'](_0xc9c55f['markerName']),_0x220ae7=_0x1cd55d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38995a,'data-author-id':_0x51a9f7}),_0x15d3b5=_0x1cd55d['mapper']['toViewPosition'](_0x4a9bfd['createPositionBefore'](_0x2cd617));_0x82d0ca&&_0x1c2cfd['activeMarkers']['includes'](_0xc9c55f['markerName'])&&_0x1cd55d['writer']['addClass']('ck-suggestion-marker--active',_0x220ae7),_0x1cd55d['writer']['insert'](_0x15d3b5,_0x220ae7),_0x1cd55d['mapper']['bindElementToMarker'](_0x220ae7,_0xc9c55f['markerName']);}};}class St extends _0x560a22{['afterInit'](){const _0x1bcda2=this['editor'],_0x2dcef4=_0x1bcda2['model'],_0x102a45=_0x1bcda2['locale'];if(!_0x1bcda2['plugins']['has']('StandardEditingModeEditing'))return;const _0x594750=_0x1bcda2['plugins']['get']('TrackChangesEditing'),_0x18cb4a='restrictedEditingException',_0x6647f2=_0x1bcda2['commands']['get'](_0x18cb4a);_0x594750['enableCommand'](_0x18cb4a,(_0x43b4d7,_0x19c660={})=>{const _0x47cc12=_0x2dcef4['document']['selection'];if(_0x47cc12['isCollapsed'])return void _0x43b4d7(_0x19c660);const _0x209f2d=void 0x0!==_0x19c660['forceValue']?_0x19c660['forceValue']:!_0x6647f2['value'];_0x2dcef4['change'](()=>{const _0x353baa=Array['from'](_0x47cc12['getRanges']());for(const _0x4f008e of _0x353baa){const _0x2922b1=_0x209f2d?[_0x4f008e]:io(_0x18cb4a,_0x4f008e,_0x2dcef4);for(const _0x46fcc1 of _0x2922b1)_0x594750['markInlineFormat'](_0x46fcc1,{'commandName':_0x18cb4a,'commandParams':[{'forceValue':_0x209f2d}]});}});}),_0x594750['descriptionFactory']['registerDescriptionCallback'](_0x207549=>{if('formatBlock'!=_0x207549['type']&&'formatInline'!=_0x207549['type'])return;const {data:_0x80a600}=_0x207549;return _0x80a600&&_0x80a600['commandName']==_0x18cb4a?_0x80a600['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x102a45,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x102a45,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x560a22{['afterInit'](){const _0x18c7b8=this['editor'];if(!_0x18c7b8['plugins']['has']('Style')||!_0x18c7b8['plugins']['has']('DataSchema'))return;const _0x39546a=_0x18c7b8['plugins']['get']('TrackChangesEditing'),_0x22149e=_0x18c7b8['locale'],_0x561666=_0x18c7b8['config']['get']('style')||{},_0x5daa10=_0x18c7b8['plugins']['get']('GeneralHtmlSupport'),_0x57ddd0=_0x18c7b8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x18c7b8['plugins']['get']('DataSchema'),_0x561666['definitions']);_0x39546a['enableDefaultAttributesIntegration']('style');const _0x5b73d3=new Set();for(const _0x258ef8 of _0x57ddd0['block']){const _0x1d52e4=_0x5daa10['getGhsAttributeNameForElement'](_0x258ef8['element']);_0x5b73d3['add'](_0x1d52e4);}const _0x49a56e=new Set();for(const _0x49f171 of _0x57ddd0['inline']){const _0x559f07=_0x5daa10['getGhsAttributeNameForElement'](_0x49f171['element']);_0x49a56e['add'](_0x559f07);for(const _0x498c15 of _0x49f171['ghsAttributes'])_0x49a56e['add'](_0x498c15);}for(const _0x3dd0d8 of _0x5b73d3)_0x39546a['registerBlockAttribute'](_0x3dd0d8),_0x39546a['descriptionFactory']['registerAttributeLabel'](_0x3dd0d8,o(_0x22149e,'FORMAT_STYLE'));for(const _0x11dc8b of _0x49a56e)_0x39546a['registerInlineAttribute'](_0x11dc8b),_0x39546a['descriptionFactory']['registerAttributeLabel'](_0x11dc8b,o(_0x22149e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x535b48=this['editor'],_0x4b309c=_0x535b48['locale'];_0x535b48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44abe5=>{if('formatBlock'!=_0x44abe5['type']&&'formatInline'!=_0x44abe5['type'])return;const {data:_0x715c05}=_0x44abe5;return _0x715c05&&'style'===_0x715c05['commandName']?_0x715c05['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b309c,'*Set\x20format:*\x20%0',_0x715c05['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4b309c,'*Remove\x20format:*\x20%0',_0x715c05['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x560a22{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x37386c){super(_0x37386c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x101cf0=this['editor'],_0x5985a8=_0x101cf0['model']['document']['selection'];if(!_0x101cf0['plugins']['has']('TableEditing'))return;const _0x1f2020=_0x101cf0['locale'],_0x295bbe=_0x101cf0['plugins']['get']('TrackChangesEditing'),_0x222670=_0x101cf0['plugins']['get']('TableUtils');_0x295bbe['descriptionFactory']['registerElementLabel']('table',_0x166716=>o(_0x1f2020,'ELEMENT_TABLE',_0x166716)),this['_setupColumnsRowsFixing'](),_0x295bbe['enableCommand']('insertTable'),_0x295bbe['enableCommand']('selectTableRow'),_0x295bbe['enableCommand']('selectTableColumn');for(const _0x2bbbef of['insertTableRowAbove','insertTableRowBelow']){const _0x1637f7=_0x101cf0['commands']['get'](_0x2bbbef);_0x295bbe['enableCommand'](_0x2bbbef,_0x566f5e=>{_0x101cf0['model']['change'](_0x52430e=>{_0x566f5e();const _0x2571fb='above'===_0x1637f7['order'],_0x562e0a=_0x222670['getSelectionAffectedTableCells'](_0x5985a8),_0x384d54=_0x222670['getRowIndexes'](_0x562e0a),_0xffd181=_0x2571fb?_0x384d54['first']-0x1:_0x384d54['last']+0x1,_0x161642=_0x562e0a[0x0]['findAncestor']('table'),_0x486e55=_0x222670['createTableWalker'](_0x161642,{'startRow':_0xffd181,'endRow':_0xffd181}),_0x4c17b0=Array['from'](_0x486e55)['map'](_0x2ecfd0=>_0x52430e['createRangeOn'](_0x2ecfd0['cell']));_0x295bbe['markMultiRangeInsertion'](_0x4c17b0,'tableRow');});});}for(const _0x5d70f6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x525469=_0x101cf0['commands']['get'](_0x5d70f6);_0x295bbe['enableCommand'](_0x5d70f6,_0x1497f0=>{_0x101cf0['model']['change'](_0x2b9ba0=>{_0x1497f0();const _0x1a0267='left'===_0x525469['order'],_0x283e72=_0x222670['getSelectionAffectedTableCells'](_0x5985a8),_0x2f2424=_0x222670['getColumnIndexes'](_0x283e72),_0x1eae0e=_0x1a0267?_0x2f2424['first']-0x1:_0x2f2424['last']+0x1,_0x1dbe6d=_0x283e72[0x0]['findAncestor']('table'),_0x2f0be7=_0x222670['createTableWalker'](_0x1dbe6d,{'startRow':0x0,'column':_0x1eae0e,'includeAllSlots':!0x1}),_0x1ebe8d=Array['from'](_0x2f0be7)['map'](_0x4fcc4d=>_0x2b9ba0['createRangeOn'](_0x4fcc4d['cell']));_0x295bbe['markMultiRangeInsertion'](_0x1ebe8d,'tableColumn');});});}for(const _0x38471c of['removeTableRow','removeTableColumn']){const _0x40df3b=_0x38471c['substr'](0xb),_0x4dc6c3=_0x40df3b['toLowerCase'](),_0x26a23a=_0x4dc6c3['substr'](0x0,0x3)+'span',_0xdde2ca='table'+_0x40df3b,_0x33bb5a='min'+_0x40df3b,_0x4e8c3f='max'+_0x40df3b;_0x295bbe['enableCommand'](_0x38471c,()=>{_0x101cf0['model']['change'](_0x2b3729=>{const _0x32a38a=_0x222670['getSelectionAffectedTableCells'](_0x5985a8),_0x30f01c=_0x32a38a[0x0]['findAncestor']('table');let _0xcde40f;if('removeTableRow'==_0x38471c){const _0x47198c=_0x222670['getRowIndexes'](_0x32a38a);_0xcde40f={'startRow':_0x47198c['first'],'endRow':_0x47198c['last'],'includeAllSlots':!0x0};}else{const _0x2f73ee=_0x222670['getColumnIndexes'](_0x32a38a);_0xcde40f={'startColumn':_0x2f73ee['first'],'endColumn':_0x2f73ee['last'],'includeAllSlots':!0x0};}const _0x5badd2=_0x222670['createTableWalker'](_0x30f01c,_0xcde40f),_0x5cc1d6=Array['from'](_0x5badd2)['map'](({cell:_0x2b3388})=>_0x2b3388),_0x186acb=be(_0x5cc1d6['filter'](_0x595823=>_0x595823['hasAttribute'](_0x26a23a))),_0x5c4633=be(_0x5cc1d6['filter'](_0x40083d=>!_0x40083d['hasAttribute'](_0x26a23a)))['map'](_0x5740f8=>_0x2b3729['createRangeOn'](_0x5740f8)),_0x3d97f4=_0x295bbe['markMultiRangeDeletion'](_0x5c4633,_0xdde2ca);if(_0x3d97f4&&('tableRow'==_0x3d97f4['subType']||'tableColumn'==_0x3d97f4['subType'])){const _0x22abe7=this['_getSuggestionCoords'](_0x3d97f4);for(const _0x26eb75 of _0x186acb){const _0x9747b3=_0x2b3729['createRangeOn'](_0x26eb75),_0xbd7026=_0x222670['getCellLocation'](_0x26eb75),_0x427cef=_0x26eb75['getAttribute'](_0x26a23a)-0x1,_0x1cd47f=_0x22abe7[_0x33bb5a],_0x301ac4=_0x22abe7[_0x4e8c3f];_0x1cd47f<=_0xbd7026[_0x4dc6c3]&&_0xbd7026[_0x4dc6c3]+_0x427cef<=_0x301ac4&&_0x3d97f4['addRange'](_0x9747b3);}}});});}function _0x1a6a89(_0x4bcb3f){const _0x3cb399=Array['from'](_0x5985a8['getRanges']())['map'](_0x4257cd=>_0x4f29af['fromRange'](_0x4257cd));_0x101cf0['model']['change'](_0x49d262=>{const _0x2dc27d=_0x49d262['batch'];_0x4bcb3f=_0x4bcb3f['filter'](_0x110788=>'$graveyard'!=_0x110788['root']['rootName']),_0x49d262['setSelection'](_0x4bcb3f),_0x101cf0['commands']['get']('removeTableRow')['refresh'](),_0x101cf0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x101cf0['model']['enqueueChange'](()=>{_0x101cf0['model']['enqueueChange'](_0x2dc27d,_0x1377a6=>{const _0x14c4d5=_0x3cb399['filter'](_0x45236b=>'$graveyard'!=_0x45236b['root']['rootName']);_0x14c4d5['length']>0x0&&_0x1377a6['setSelection'](_0x14c4d5);for(const _0x4da2a3 of _0x3cb399)_0x4da2a3['detach']();});});});}function _0x36b68(_0x243e11){_0x101cf0['model']['change'](_0x25e9bd=>{const _0x387148=Array['from'](_0x5985a8['getRanges']())['map'](_0x1d2eb9=>_0x4f29af['fromRange'](_0x1d2eb9)),_0x385f58=[];for(const _0x440581 of _0x243e11)for(const _0x1dd7ee of _0x440581['getItems']({'shallow':!0x0}))_0x385f58['push'](_0x1dd7ee);for(const _0x59887d of _0x385f58)'$graveyard'!=_0x59887d['root']['rootName']&&(_0x25e9bd['setSelection'](_0x25e9bd['createPositionAt'](_0x59887d,0x0)),_0x101cf0['commands']['get']('removeTableColumn')['refresh'](),_0x101cf0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x262f9e=_0x387148['filter'](_0x1f492e=>'$graveyard'!=_0x1f492e['root']['rootName']);_0x262f9e['length']>0x0&&_0x25e9bd['setSelection'](_0x262f9e);for(const _0x1b0273 of _0x387148)_0x1b0273['detach']();});}function _0x33e57e(_0x44fdb7,_0x590582){return _0x590582['every'](_0xb388c6=>_0x44fdb7['some'](_0x675af8=>_0x675af8['end']['isEqual'](_0xb388c6['start'])||_0xb388c6['end']['isEqual'](_0x675af8['start'])));}function _0x9c153e(_0x30ee2c,_0x53c9ff){return!_0x30ee2c['some'](_0x19e3a6=>_0x53c9ff['some'](_0x2e04e7=>_0x19e3a6['isIntersecting'](_0x2e04e7)))&&_0x30ee2c['some'](_0x43f0fe=>_0x53c9ff['some'](_0x1029ed=>_0x43f0fe['end']['isTouching'](_0x1029ed['start'])));}_0x101cf0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10d425,_0x52db72,_0xc4741)=>{if(!_0xc4741['options']['showSuggestionHighlights'])return;const _0x4bceb7=_0x52db72['item'];if(!_0x4bceb7)return;const _0xff7a70=_0xc4741['mapper']['toViewElement'](_0x4bceb7);function _0x594ce3(_0x4e3f41){return Array['isArray'](_0x4e3f41)?_0x4e3f41:[_0x4e3f41];}_0xff7a70&&'tableCell'===_0x4bceb7['name']&&_0xb17fce(_0xff7a70,_0xc4741['writer'],(_0x259a41,_0x47759a,_0x2c59c)=>_0x2c59c['addClass'](_0x594ce3(_0x47759a['classes']),_0x259a41),(_0x1c4893,_0xa9419e,_0x36c517)=>_0x36c517['removeClass'](_0x594ce3(_0xa9419e['classes']),_0x1c4893));},{'priority':'highest'}),_0x295bbe['descriptionFactory']['registerDescriptionCallback'](_0x278f62=>{if('insertion'!=_0x278f62['type']&&'deletion'!=_0x278f62['type'])return;const _0x511f1a=_0x278f62['getContainedElement']();if(null!=_0x511f1a&&_0x511f1a['is']('element','table')){if('insertion'==_0x278f62['type']){const _0x53f9e8=_0x278f62['getItems']()['filter'](_0x337d36=>_0x337d36['is']('$textProxy'))['map'](_0x1a0028=>_0x1a0028['data']);if(_0x53f9e8['length'])return{'type':'insertion','content':o(_0x1f2020,'*Insert:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x53f9e8['join']('\x20')+'\x22'))};}if('deletion'==_0x278f62['type']){const _0x50687f=_0x278f62['getItems']()['filter'](_0x17111a=>_0x17111a['is']('$textProxy'))['map'](_0x405ed3=>_0x405ed3['data']);if(_0x50687f['length'])return{'type':'deletion','content':o(_0x1f2020,'*Remove:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x50687f['join']('\x20')+'\x22'))};}}}),_0x295bbe['descriptionFactory']['registerDescriptionCallback'](_0x1f2b93=>{if('tableRow'==_0x1f2b93['subType']){const _0x13d0fb=_0x1f2b93['getItems']()['filter'](_0x35b3f9=>_0x35b3f9['is']('$textProxy'))['map'](_0x5bbdea=>_0x5bbdea['data']),_0x20e447=this['_getSuggestionCoords'](_0x1f2b93),_0x3a808e=_0x20e447['maxRow']-_0x20e447['minRow']+0x1;if('insertion'==_0x1f2b93['type'])return _0x13d0fb['length']?{'type':'insertion','content':o(_0x1f2020,'*Insert:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a808e,'\x22'+_0x13d0fb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f2020,'*Insert:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_ROW',_0x3a808e))};if('deletion'==_0x1f2b93['type'])return _0x13d0fb['length']?{'type':'deletion','content':o(_0x1f2020,'*Remove:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a808e,'\x22'+_0x13d0fb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f2020,'*Remove:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_ROW',_0x3a808e))};}if('tableColumn'==_0x1f2b93['subType']){const _0x2b28b4=_0x1f2b93['getItems']()['filter'](_0x3b8144=>_0x3b8144['is']('$textProxy'))['map'](_0x4ef3c3=>_0x4ef3c3['data']),_0x1aee16=this['_getSuggestionCoords'](_0x1f2b93),_0x3afd56=_0x1aee16['maxColumn']-_0x1aee16['minColumn']+0x1;if('insertion'==_0x1f2b93['type'])return _0x2b28b4['length']?{'type':'insertion','content':o(_0x1f2020,'*Insert:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3afd56,'\x22'+_0x2b28b4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f2020,'*Insert:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_COLUMN',_0x3afd56))};if('deletion'==_0x1f2b93['type'])return _0x2b28b4['length']?{'type':'deletion','content':o(_0x1f2020,'*Remove:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3afd56,'\x22'+_0x2b28b4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f2020,'*Remove:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_COLUMN',_0x3afd56))};}}),_0x295bbe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1a6a89),_0x295bbe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1a6a89),_0x295bbe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x36b68),_0x295bbe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x36b68),_0x295bbe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x33e57e),_0x295bbe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x33e57e),_0x295bbe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x9c153e),_0x295bbe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x9c153e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x154dd6=this['editor'],_0x318071=_0x154dd6['model']['document']['selection'];return(_0x3d92e8,_0x427e7c)=>{_0x154dd6['model']['change'](_0x2ef0ed=>{const {commandName:_0x537814,commandParams:_0x3bfbee}=_0x427e7c;let _0x563858=_0x3d92e8[0x0]['end']['nodeBefore'];_0x3bfbee&&_0x3bfbee[0x0]&&!0x1===_0x3bfbee[0x0]['forceValue']&&(_0x563858=_0x3d92e8[0x0]['start']['nodeAfter']);const _0x378978=_0x2ef0ed['createRangeIn'](_0x563858);if('$graveyard'==_0x378978['root']['rootName'])return;const _0x56dd94=Array['from'](_0x318071['getRanges']())['map'](_0x444719=>_0x4f29af['fromRange'](_0x444719));_0x2ef0ed['setSelection'](_0x378978),_0x154dd6['commands']['get'](_0x537814)['refresh'](),_0x3bfbee['push']({'forceDefaultExecution':!0x0}),_0x154dd6['execute'](_0x537814,..._0x3bfbee);const _0xd53673=_0x56dd94['filter'](_0x2c2164=>'$graveyard'!=_0x2c2164['root']['rootName']);_0xd53673['length']>0x0&&_0x2ef0ed['setSelection'](_0xd53673);for(const _0xbb2e0d of _0x56dd94)_0xbb2e0d['detach']();});};}['_getCoordsForCells'](_0x2afd3c){const _0xc3501d=this['editor']['plugins']['get']('TableUtils');let _0x52b0b6=Number['MAX_SAFE_INTEGER'],_0x1e669b=Number['MIN_SAFE_INTEGER'],_0x2890fa=Number['MAX_SAFE_INTEGER'],_0x3baffc=Number['MIN_SAFE_INTEGER'];for(const _0x521732 of _0x2afd3c){if('$graveyard'==_0x521732['root']['rootName'])continue;const {row:_0x343d0a,column:_0x144780}=_0xc3501d['getCellLocation'](_0x521732),_0x1d617d=_0x521732['hasAttribute']('rowspan')?_0x521732['getAttribute']('rowspan')-0x1:0x0,_0x1fbc3b=_0x521732['hasAttribute']('colspan')?_0x521732['getAttribute']('colspan')-0x1:0x0;_0x52b0b6=_0x343d0a<_0x52b0b6?_0x343d0a:_0x52b0b6,_0x1e669b=_0x343d0a+_0x1d617d>_0x1e669b?_0x343d0a+_0x1d617d:_0x1e669b,_0x2890fa=_0x144780<_0x2890fa?_0x144780:_0x2890fa,_0x3baffc=_0x144780+_0x1fbc3b>_0x3baffc?_0x144780+_0x1fbc3b:_0x3baffc;}return{'minRow':_0x52b0b6,'maxRow':_0x1e669b,'minColumn':_0x2890fa,'maxColumn':_0x3baffc};}['_setupColumnsRowsFixing'](){const _0x3239d7=this['editor'],_0x6b840d=_0x3239d7['plugins']['get']('TrackChangesEditing'),_0x40f305=_0x3239d7['plugins']['get']('TableUtils');_0x3239d7['model']['document']['on']('change:data',()=>{const _0x5eeea6=Array['from'](_0x3239d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25f5cc,data:_0x4ce03f}of _0x5eeea6){const {group:_0x17eeb5,id:_0x1220a5,subType:_0x3ecb15}=_0x6b840d['_splitMarkerName'](_0x25f5cc);if('suggestion'!=_0x17eeb5)continue;if(null!=_0x4ce03f['oldRange'])continue;const _0x23ff43=_0x6b840d['getSuggestion'](_0x1220a5);this['_tablePostFixingSubtypes']['includes'](_0x3ecb15)&&this['_tableSuggestions']['add'](_0x23ff43);}},{'priority':'low'});const _0x6fc57d=(_0x5b5d62,_0x23a62f)=>{let _0x54582b=!0x1;const _0x48ba67=_0x23a62f['createRangeOn'](_0x5b5d62),_0x311949=_0x5b5d62['findAncestor']('table'),_0x40a83f=_0x40f305['getCellLocation'](_0x5b5d62);for(const _0x2cf2fa of this['_tableSuggestions']){const _0x34342a=_0x2cf2fa['subType'],_0x360614=_0x34342a['startsWith']('tablePaste'),_0x1bbe6e=_0x34342a['substr'](_0x360614?0xa:0x5),_0x254f33=_0x1bbe6e['toLowerCase'](),_0x571ddd=_0x254f33['substr'](0x0,0x3)+'span',_0x58c5d3='min'+_0x1bbe6e,_0x583b9b='max'+_0x1bbe6e;if(!_0x2cf2fa['isInContent'])continue;if(_0x311949!=_0x2cf2fa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2cf2fa['isIntersectingWithRange'](_0x48ba67))continue;const _0x5b0572=_0x5b5d62['hasAttribute'](_0x571ddd)?_0x5b5d62['getAttribute'](_0x571ddd)-0x1:0x0,_0x48678c=this['_getSuggestionCoords'](_0x2cf2fa),_0x255cbd=_0x48678c[_0x58c5d3],_0x5364ee=_0x48678c[_0x583b9b];_0x255cbd<=_0x40a83f[_0x254f33]&&_0x40a83f[_0x254f33]+_0x5b0572<=_0x5364ee&&(_0x2cf2fa['addRange'](_0x48ba67),_0x54582b=!0x0);}return _0x54582b;};_0x3239d7['model']['document']['registerPostFixer'](_0x3b03bc=>{let _0xb57bc3=!0x1;for(const _0x4d074c of _0x3239d7['model']['document']['differ']['getChanges']())if('insert'==_0x4d074c['type']){if('tableRow'==_0x4d074c['name']){for(const _0x1574b0 of _0x4d074c['position']['nodeAfter']['getChildren']())_0xb57bc3=_0xb57bc3||_0x6fc57d(_0x1574b0,_0x3b03bc);}else'tableCell'==_0x4d074c['name']&&(_0xb57bc3=_0xb57bc3||_0x6fc57d(_0x4d074c['position']['nodeAfter'],_0x3b03bc));}return _0xb57bc3;});}['_getSuggestionCoords'](_0x4e4b73){return this['_getCoordsForCells'](_0x4e4b73['getRanges']()['map'](_0x87301f=>_0x87301f['start']['nodeAfter']));}}function be(_0x4e3ffb){return Array['from'](new Set(_0x4e3ffb)['values']());}class vt extends _0x560a22{static get['requires'](){return[It];}['afterInit'](){const _0x2d7571=this['editor'],_0x1fb92a=_0x2d7571['model']['document']['selection'],_0x3e48cc=_0x2d7571['locale'];if(!_0x2d7571['plugins']['has']('TableEditing'))return;const _0x17da5e=_0x2d7571['plugins']['get']('TrackChangesEditing'),_0x1a3b2c=_0x2d7571['plugins']['get']('TableUtils'),_0x5b2b58=_0x2d7571['plugins']['get'](It);_0x5b2b58['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x17da5e['enableCommand']('mergeTableCells',()=>{const _0x713ebf=_0x1a3b2c['getSelectionAffectedTableCells'](_0x2d7571['model']['document']['selection']);_0x2d7571['model']['change'](()=>{_0x17da5e['markMultiRangeBlockFormat'](_0x713ebf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d7571['commands']['get']('mergeTableCells')['on']('execute',(_0x43cb25,_0x4c62f2)=>{_0x2d7571['commands']['get']('trackChanges')['value']&&(_0x4c62f2['length']>0x0&&_0x4c62f2[_0x4c62f2['length']-0x1]&&_0x4c62f2[_0x4c62f2['length']-0x1]['forceDefaultExecution']||_0x17da5e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x43cb25['stop']());},{'priority':'highest'});for(const _0x5e8bb1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3bc803=_0x2d7571['commands']['get'](_0x5e8bb1);_0x17da5e['enableCommand'](_0x5e8bb1,()=>{const _0x39c073=_0x2d7571['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2cbe8b=>_0x2cbe8b['is']('element','tableCell')),_0xfdb216=_0x3bc803['value'];_0x2d7571['model']['change'](()=>{_0x17da5e['markMultiRangeBlockFormat']([_0x39c073,_0xfdb216],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x50dd42 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5ee513=_0x2d7571['commands']['get'](_0x50dd42);_0x17da5e['enableCommand'](_0x50dd42,()=>{const _0x4aa930=_0x1a3b2c['getSelectionAffectedTableCells'](_0x2d7571['model']['document']['selection'])[0x0],_0x5d7e06=_0x4aa930['findAncestor']('table'),{column:_0x5ba746,row:_0x5e1bfb}=_0x1a3b2c['getCellLocation'](_0x4aa930);let _0x239e0e=[];if('horizontally'==_0x5ee513['direction']){const _0x5390f9=_0x1a3b2c['createTableWalker'](_0x5d7e06,{'startRow':_0x5e1bfb,'endRow':_0x5e1bfb,'includeAllSlots':!0x0});_0x239e0e=Array['from'](_0x5390f9)['map'](_0x14c392=>_0x14c392['cell']);}else{const _0xbc0de8=_0x1a3b2c['createTableWalker'](_0x5d7e06,{'column':_0x5ba746,'includeAllSlots':!0x0});_0x239e0e=Array['from'](_0xbc0de8)['map'](_0x9a296a=>_0x9a296a['cell']);}_0x2d7571['model']['change'](_0x1fb8d2=>{_0x17da5e['markBlockFormat'](_0x1fb8d2['createRangeOn'](_0x4aa930),{'commandName':_0x50dd42,'commandParams':[]},_0x239e0e,_0x50dd42);});});}_0x17da5e['descriptionFactory']['registerDescriptionCallback'](_0x1024af=>{if('formatBlock'!=_0x1024af['type']&&'formatInline'!=_0x1024af['type'])return;const {data:_0x2a3f7e}=_0x1024af;return _0x2a3f7e&&'mergeTableCells'==_0x2a3f7e['commandName']?{'type':'format','content':o(_0x3e48cc,'*Merge\x20cells*')}:void 0x0;}),_0x17da5e['descriptionFactory']['registerDescriptionCallback'](_0xf0017d=>{if('formatBlock'!=_0xf0017d['type']&&'formatInline'!=_0xf0017d['type'])return;const {data:_0x5ce440}=_0xf0017d;return _0x5ce440?'splitTableCellVertically'==_0x5ce440['commandName']?{'type':'format','content':o(_0x3e48cc,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5ce440['commandName']?{'type':'format','content':o(_0x3e48cc,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x18bb3b=_0x5b2b58['_acceptFormatSuggestionCallbackFactory']();for(const _0x53cb5a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x17da5e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53cb5a,'accept',_0x18bb3b);for(const _0x40f59e of['splitTableCellVertically','splitTableCellHorizontally'])_0x17da5e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40f59e,'accept',_0x18bb3b);_0x17da5e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x22bfa0=>{_0x2d7571['model']['change'](_0x566e8a=>{const _0x48ddb2=Array['from'](_0x1fb92a['getRanges']())['map'](_0x3cc48e=>_0x4f29af['fromRange'](_0x3cc48e));_0x566e8a['setSelection'](_0x22bfa0),_0x2d7571['commands']['get']('mergeTableCells')['refresh'](),_0x2d7571['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x134632=_0x48ddb2['filter'](_0xba2ae8=>'$graveyard'!=_0xba2ae8['root']['rootName']);_0x134632['length']>0x0&&_0x566e8a['setSelection'](_0x134632);for(const _0x2415c7 of _0x48ddb2)_0x2415c7['detach']();});});for(const _0x5be041 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x381ea7=_0x2d7571['commands']['get'](_0x5be041);_0x381ea7['on']('set:isEnabled',(_0x27b4ec,_0x4e173a,_0x3ae139)=>{if(_0x3ae139){const _0x20721f=_0x2d7571['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48f288=>_0x48f288['is']('element','tableCell'));this['_areMergableCells'](_0x381ea7['value'],_0x20721f)||(_0x27b4ec['return']=!0x1,_0x27b4ec['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4889cc=this['editor']['commands']['get']('mergeTableCells'),_0x7f6474=this['editor']['plugins']['get']('TableUtils');if(!_0x4889cc['isEnabled'])return!0x1;const _0x36026e=_0x7f6474['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x54175e of _0x36026e)for(const _0x4d369c of _0x36026e)if(_0x54175e!=_0x4d369c&&!this['_areMergableCells'](_0x54175e,_0x4d369c))return!0x1;return!0x0;}['_areMergableCells'](_0x9f1ab1,_0x1df5c1){const _0x495d3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x301a1c=this['editor']['model']['createRangeOn'](_0x9f1ab1),_0x5d60f5=this['editor']['model']['createRangeOn'](_0x1df5c1),_0x548e28=new Set(),_0x431382=new Set();for(const _0x5a11d8 of _0x495d3b['getSuggestions']())if(('insertion'==_0x5a11d8['type']||'deletion'==_0x5a11d8['type']||'mergeTableCells'==_0x5a11d8['subType'])&&_0x5a11d8['isInContent']){for(const _0x9caf5 of _0x5a11d8['getRanges']())_0x9caf5['containsRange'](_0x301a1c,!0x0)&&_0x548e28['add'](_0x5a11d8['type']+':'+_0x5a11d8['author']['id']),_0x9caf5['containsRange'](_0x5d60f5,!0x0)&&_0x431382['add'](_0x5a11d8['type']+':'+_0x5a11d8['author']['id']);}if(_0x548e28['size']!=_0x431382['size'])return!0x1;for(const _0x2f2cfa of _0x548e28)if(!_0x431382['has'](_0x2f2cfa))return!0x1;return!0x0;}}class Ct extends _0x560a22{static get['requires'](){return[It];}['afterInit'](){const _0x99331=this['editor'];if(!_0x99331['plugins']['has']('TableEditing'))return;const _0x15325a=_0x99331['locale'],_0x23bf41=_0x99331['plugins']['get']('TrackChangesEditing');_0x23bf41['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x23bf41['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x23bf41['registerBlockAttribute']('headingRows'),_0x23bf41['registerBlockAttribute']('headingColumns'),_0x23bf41['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x15325a,'FORMAT_HEADER_ROW')),_0x23bf41['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x15325a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb9f754=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5548ef=this['editor']['plugins']['get']('TableUtils'),_0x31f668=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2a57dc({showActiveMarker:_0x49d967=!0x0,setDataAttribute:_0x1c1ec9=!0x0}={}){return(_0x400f81,_0x3e0ddd,_0x58037e)=>{const {type:_0x336346,id:_0x361a8e}=_0xb9f754['_splitMarkerName'](_0x3e0ddd['markerName']),_0x5be904=_0xb9f754['getSuggestion'](_0x361a8e),_0x36db9c=_0x5be904['data'];if('formatBlock'!=_0x5be904['type']||!_0x36db9c||'setTableColumnHeader'!=_0x36db9c['commandName'])return;if(_0x3e0ddd['item'])return void _0x400f81['stop']();if(!_0x58037e['consumable']['consume'](_0x3e0ddd['markerRange'],_0x400f81['name']))return;const _0x4c7af3=_0x3e0ddd['markerRange']['start']['nodeAfter'],_0x219505=_0x3e0ddd['markerRange']['end']['nodeBefore'],_0x249761=_0x4c7af3['parent']['parent'],{column:_0x562885}=_0x5548ef['getCellLocation'](_0x4c7af3),{column:_0x4f11ce}=_0x5548ef['getCellLocation'](_0x219505);for(let _0x420dbf=_0x562885;_0x420dbf<=_0x4f11ce;_0x420dbf++){const _0x2fc08b=_0x5548ef['createTableWalker'](_0x249761,{'column':_0x420dbf,'includeAllSlots':!0x1});for(const _0x497a88 of _0x2fc08b){const _0x867a36=_0x497a88['cell'],_0x31ef0a=_0x58037e['mapper']['toViewElement'](_0x867a36);_0x58037e['writer']['addClass']('ck-suggestion-marker-'+_0x336346,_0x31ef0a),_0x1c1ec9&&_0x58037e['writer']['setAttribute']('data-suggestion',_0x361a8e,_0x31ef0a),_0x58037e['mapper']['bindElementToMarker'](_0x31ef0a,_0x3e0ddd['markerName']),_0x49d967&&(_0xb9f754['activeMarkers']['includes'](_0x3e0ddd['markerName'])?_0x58037e['writer']['addClass']('ck-suggestion-marker--active',_0x31ef0a):_0x58037e['writer']['removeClass']('ck-suggestion-marker--active',_0x31ef0a));}}};}_0xb9f754['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x31f668),_0xb9f754['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x31f668),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2a57dc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e56b3,_0x25c039,_0x5f38ca)=>{_0x5f38ca['options']['showSuggestionHighlights']&&_0x2a57dc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4e56b3,_0x25c039,_0x5f38ca);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4d1120,_0x2fc0f7,_0x13a396)=>{const {type:_0x4a0513,id:_0x2cedad}=_0xb9f754['_splitMarkerName'](_0x2fc0f7['markerName']),_0x4d71a0=_0xb9f754['getSuggestion'](_0x2cedad),_0x1fe1ec=_0x4d71a0['data'];if('formatBlock'!=_0x4d71a0['type']||!_0x1fe1ec||'setTableColumnHeader'!=_0x1fe1ec['commandName'])return;const _0x5297a1=_0x13a396['mapper']['markerNameToElements'](_0x2fc0f7['markerName']);if(_0x5297a1){for(const _0x43a553 of _0x5297a1)_0x13a396['writer']['removeClass']('ck-suggestion-marker-'+_0x4a0513,_0x43a553),_0x13a396['writer']['removeClass']('ck-suggestion-marker--active',_0x43a553),_0x13a396['writer']['removeAttribute']('data-suggestion',_0x43a553),_0x13a396['mapper']['unbindElementFromMarkerName'](_0x43a553,_0x2fc0f7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11f352=this['editor'],_0x4daeca=_0x11f352['locale'];function _0x22ae62(_0x21b0fe){return{'type':'format','content':o(_0x4daeca,'*Format:*\x20%0',_0x21b0fe)};}_0x11f352['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31cde2=>{if('formatBlock'!=_0x31cde2['type'])return;const {data:_0x354930}=_0x31cde2;if(_0x354930){if('setTableRowHeader'==_0x354930['commandName']){const _0x1dbe1f=_0x354930['commandParams'][0x0]['forceValue'];return _0x22ae62(o(_0x4daeca,_0x1dbe1f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x354930['commandName']){const _0x4cfaa4=_0x354930['commandParams'][0x0]['forceValue'];return _0x22ae62(o(_0x4daeca,_0x4cfaa4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x12ac27=>[_0x12ac27,null]));class _t extends _0x560a22{static get['requires'](){return[It];}['afterInit'](){const _0x3896db=this['editor'];if(!_0x3896db['plugins']['has']('TableClipboard'))return;const _0x32d8f7=_0x3896db['plugins']['get']('TrackChangesEditing'),_0x8b762a=_0x3896db['plugins']['get']('TableUtils'),_0x51ed89=_0x3896db['plugins']['get'](It),_0x3c7916=_0x3896db['plugins']['get']('TableClipboard');_0x51ed89['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3896db['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3896db['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1c028c=null;_0x3896db['model']['on']('insertContent',(_0x9f2b00,_0xd8b5db)=>{const [_0x3fc841,_0x190303]=_0xd8b5db,_0x1f677b=_0xd8b5db[_0xd8b5db['length']-0x1];_0x1f677b&&_0x1f677b['forceDefaultExecution']||_0x32d8f7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x13bb0c,_0x5ee84c,_0x484ef0,_0x38bd5f,_0x339b70){if(_0x5ee84c&&!_0x5ee84c['is']('documentSelection'))return!0x1;const _0x19c335=_0x339b70['getTableIfOnlyTableInContent'](_0x13bb0c,_0x484ef0);if(!_0x19c335||!Re(_0x19c335,void 0x0,_0x38bd5f))return!0x1;const _0xefd0cc=_0x38bd5f['getSelectionAffectedTableCells'](_0x484ef0['document']['selection']);if(!_0xefd0cc['length'])return!0x1;const _0x4094ca=_0xefd0cc[0x0]['findAncestor']('table'),_0x1ce816=_0x38bd5f['getRowIndexes'](_0xefd0cc),_0x5c666e=_0x38bd5f['getColumnIndexes'](_0xefd0cc),_0x20bb1d={'startRow':_0x1ce816['first'],'endRow':_0x1ce816['last'],'startColumn':_0x5c666e['first'],'endColumn':_0x5c666e['last']};return 0x1==_0xefd0cc['length']&&(_0x20bb1d['endRow']+=_0x38bd5f['getRows'](_0x19c335)-0x1,_0x20bb1d['endColumn']+=_0x38bd5f['getColumns'](_0x19c335)-0x1),Re(_0x4094ca,_0x20bb1d,_0x38bd5f);}(_0x3fc841,_0x190303,_0x3896db['model'],_0x8b762a,_0x3c7916)&&(_0x9f2b00['stop'](),_0x1c028c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3896db['model']['change'](()=>{_0x3896db['model']['insertContent'](_0xd8b5db[0x0],_0xd8b5db[0x1],_0xd8b5db[0x2],{'forceDefaultExecution':!0x0});const _0x33db04=_0x524896(),{rowInsertionRanges:_0x3a080e,columnInsertionRanges:_0x284fab,insertionRanges:_0x4abbe6,deletionRanges:_0x5acdf8,cells:_0x4a267c}=_0x1c028c;_0x3a080e['length']&&_0x32d8f7['markMultiRangeInsertion'](_0x3a080e,'tablePasteRow',{'tablePasteChainId':_0x33db04}),_0x284fab['length']&&_0x32d8f7['markMultiRangeInsertion'](_0x284fab,'tablePasteColumn',{'tablePasteChainId':_0x33db04}),_0x4abbe6['length']&&(_0x32d8f7['markMultiRangeInsertion'](_0x4abbe6,'tablePaste',{'tablePasteChainId':_0x33db04,'skipNestingCheck':!0x0}),_0x4abbe6['forEach'](_0x4c0131=>_0x4c0131['detach']?.())),_0x5acdf8['length']&&(_0x32d8f7['markMultiRangeDeletion'](_0x5acdf8,'tablePaste',{'tablePasteChainId':_0x33db04,'skipNestingCheck':!0x0}),_0x5acdf8['forEach'](_0x3f42da=>_0x3f42da['detach']?.()));const _0x5e7ed2=_0x32d8f7['markMultiRangeBlockFormat'](_0x4a267c['map'](({element:_0x3e3359})=>_0x3e3359),{'formatGroupId':_0x524896()},[],'tablePasteCell',{'tablePasteChainId':_0x33db04});if(_0x5e7ed2){const _0x15676f=_0x5e7ed2['getMarkers'](),_0x242cfe=[];for(const {element:_0x3fa708,attributes:_0x394cac}of _0x4a267c){if(!_0x394cac)continue;const _0x50f070=_0x3896db['model']['createRangeOn'](_0x3fa708),_0x4164f3=_0x15676f['find'](_0xb1d8cd=>_0xb1d8cd['getRange']()['isEqual'](_0x50f070));_0x4164f3&&_0x242cfe['push']([_0x4164f3['name'],_0x394cac]);}_0x242cfe['length']&&_0x5e7ed2['setAttribute']('markerAttributes',Object['fromEntries'](_0x242cfe));}_0x1c028c=null;}));},{'priority':_0x2388dd['high']+0xa}),_0x3896db['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3f32e1,_0x5d33d8)=>{const [_0x5423aa,_0x24b63f,,_0x586e84]=_0x5d33d8;if(!_0x1c028c)return;_0x3f32e1['stop']();const _0x57e99e=_0x5423aa['cell'],_0x26a453=_0x24b63f,_0x2cee3e=ke(_0x57e99e),_0x13b806=ke(_0x26a453);_0x3f32e1['return']=_0x57e99e;let _0x5646d0=null,_0x1c7cb5=null;if(_0x13b806||_0x2cee3e){if(_0x2cee3e&&!_0x13b806){_0x586e84['remove'](_0x57e99e['getChild'](0x0));for(const _0x23229f of Array['from'](_0x26a453['getChildren']()))_0x586e84['insert'](_0x23229f,_0x57e99e,'end');const _0x426b0a=_0x1c028c['rowInsertionIndexes']['includes'](_0x5423aa['row']),_0x544586=_0x1c028c['columnInsertionIndexes']['includes'](_0x5423aa['column']);_0x426b0a||_0x544586||(_0x5646d0=_0x4f29af['fromRange'](_0x586e84['createRangeIn'](_0x57e99e)));}else _0x13b806&&!_0x2cee3e&&(_0x1c7cb5=_0x586e84['createRangeIn'](_0x57e99e));}else{const _0x1994b1=_0x586e84['createElement']('tableCellSuggestion'),_0xfcb45e=_0x586e84['createElement']('tableCellSuggestion');_0x586e84['wrap'](_0x586e84['createRangeIn'](_0x57e99e),_0xfcb45e),_0x586e84['insert'](_0x1994b1,_0x57e99e,0x0);for(const _0x1b88aa of Array['from'](_0x26a453['getChildren']()))_0x586e84['insert'](_0x1b88aa,_0x1994b1,'end');_0x5646d0=_0x4f29af['fromRange'](_0x586e84['createRangeOn'](_0x1994b1)),_0x1c7cb5=_0x4f29af['fromRange'](_0x586e84['createRangeOn'](_0xfcb45e));}const _0x21b182=Array['from'](_0x26a453['getAttributes']())['filter'](([_0x54e21d])=>Pe['includes'](_0x54e21d));_0x1c028c['cells']['push']({'element':_0x57e99e,'attributes':_0x21b182['length']?Object['fromEntries'](_0x21b182):null}),_0x5646d0&&_0x1c028c['insertionRanges']['push'](_0x5646d0),_0x1c7cb5&&_0x1c028c['deletionRanges']['push'](_0x1c7cb5);},{'priority':'high'}),_0x8b762a['on']('insertColumns',(_0x34f892,_0x58d35b)=>{const [_0x5ddf27,_0x12bef7={}]=_0x58d35b;if(!_0x1c028c)return;const _0x4b0d56=_0x12bef7['at']||0x0,_0x582fb9=_0x12bef7['columns']||0x1;_0x1c028c['columnInsertionIndexes']=new Array(_0x582fb9)['fill'](_0x4b0d56)['map']((_0x54dc09,_0x1bd260)=>_0x54dc09+_0x1bd260);for(const {cell:_0x482c8c}of _0x8b762a['createTableWalker'](_0x5ddf27,{'startColumn':_0x4b0d56,'endColumn':_0x4b0d56+_0x582fb9-0x1}))_0x1c028c['columnInsertionRanges']['push'](_0x3896db['model']['createRangeOn'](_0x482c8c));},{'priority':'low'}),_0x8b762a['on']('insertRows',(_0x303406,_0x1bbf2b)=>{const [_0x4b5e07,_0x434e1b={}]=_0x1bbf2b;if(!_0x1c028c)return;const _0x4dcca1=_0x434e1b['at']||0x0,_0x5cd96b=_0x434e1b['rows']||0x1;_0x1c028c['rowInsertionIndexes']=new Array(_0x5cd96b)['fill'](_0x4dcca1)['map']((_0x3f7264,_0x18e129)=>_0x3f7264+_0x18e129);for(const {cell:_0x4c6972}of _0x8b762a['createTableWalker'](_0x4b5e07,{'startRow':_0x4dcca1,'endRow':_0x4dcca1+_0x5cd96b-0x1}))_0x1c028c['rowInsertionRanges']['push'](_0x3896db['model']['createRangeOn'](_0x4c6972));},{'priority':'low'}),_0x32d8f7['descriptionFactory']['registerDescriptionCallback'](_0x5e1881=>{if(_0x5e1881['subType']&&_0x5e1881['subType']['startsWith']('tablePaste'))return _0x5e1881['previous']?{}:{'type':'insertion','content':o(_0x3896db['locale'],'*Replace\x20table\x20cells*')};});const _0x4bcaa6=()=>!0x1;for(const _0x5e58d1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x32d8f7['_suggestionFactory']['registerCustomCallback']('insertion',_0x5e58d1,'join',_0x4bcaa6),_0x32d8f7['_suggestionFactory']['registerCustomCallback']('deletion',_0x5e58d1,'join',_0x4bcaa6),_0x32d8f7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e58d1,'join',_0x4bcaa6);_0x32d8f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4bcaa6),_0x32d8f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xcac7d2,_0x4f2781,_0x1a12e7)=>{const _0x3468e2=_0xcac7d2['map'](_0x21d832=>_0x21d832['getContainedElement']())['filter'](_0x2bb1fa=>_0x2bb1fa),_0x50bedf=new Map(_0x3468e2['map'](_0x3c2db4=>[_0x3c2db4,null]));if(_0x1c028c){for(const {element:_0x419205,attributes:_0x46789b}of _0x1c028c['cells'])_0x46789b&&_0x50bedf['set'](_0x419205,_0x46789b);}else{if(_0x1a12e7&&_0x1a12e7['markerAttributes'])for(const [_0x4cbfd1,_0x443401]of Object['entries'](_0x1a12e7['markerAttributes'])){const _0x3aeaea=_0x3896db['model']['markers']['get'](_0x4cbfd1),_0x2cb436=_0x3aeaea?_0x3aeaea['getRange']()['getContainedElement']():null;_0x2cb436&&_0x50bedf['set'](_0x2cb436,_0x443401);}}_0x3896db['model']['change'](_0x3c0226=>{for(const [_0x156e2e,_0x126cd7]of _0x50bedf)_0x3c0226['setAttributes']({...we,..._0x126cd7},_0x156e2e);});});const _0x4b9362=(_0x31b1c4,_0x413dde)=>{_0x32d8f7['_suggestionFactory']['registerCustomCallback'](_0x31b1c4,'tablePaste',_0x413dde,(_0x5ea24,_0x1c9ca0,_0x427518)=>{_0x3896db['model']['change'](_0xd5695=>{const _0x34f16d=[];for(const _0x512491 of _0x5ea24){const _0x62bb4f=_0x512491['start']['nodeAfter'];_0x62bb4f['is']('element','tableCellSuggestion')&&_0x34f16d['push'](_0x62bb4f);}_0x32d8f7['_suggestionFactory']['getSuggestionCallback'](_0x31b1c4,null,_0x413dde)(_0x5ea24,_0x1c9ca0,_0x427518);for(const _0x2b22da of _0x34f16d)'$graveyard'!=_0x2b22da['root']['rootName']&&_0xd5695['unwrap'](_0x2b22da);});});};_0x4b9362('insertion','accept'),_0x4b9362('insertion','discard'),_0x4b9362('deletion','accept'),_0x4b9362('deletion','discard'),_0x32d8f7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e3998=>{const _0x9b5aca=_0x1e3998['map'](_0x5d660e=>_0x5d660e['getContainedElement']()),_0x5e0c86=_0x9b5aca[0x0]['findAncestor']('table'),{minRow:_0x2bfcc1,maxRow:_0x57dda5}=_0x51ed89['_getCoordsForCells'](_0x9b5aca);_0x8b762a['removeRows'](_0x5e0c86,{'at':_0x2bfcc1,'rows':_0x57dda5-_0x2bfcc1+0x1});}),_0x32d8f7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4191f5=>{const _0x1b5fad=_0x4191f5['map'](_0x4fd65d=>_0x4fd65d['getContainedElement']()),_0x180e4e=_0x1b5fad[0x0]['findAncestor']('table'),{minColumn:_0xb1f647,maxColumn:_0x4e5380}=_0x51ed89['_getCoordsForCells'](_0x1b5fad);_0x8b762a['removeColumns'](_0x180e4e,{'at':_0xb1f647,'columns':_0x4e5380-_0xb1f647+0x1});});const _0x28fe87=(_0x145171,_0x577707)=>{if(!_0x577707['subType']||!_0x577707['subType']['startsWith']('tablePaste'))return;const _0x42de50=_0x577707['attributes']['tablePasteChainId'],_0x3c2c68=_0x32d8f7['getSuggestions']()['filter'](_0x13b87e=>_0x13b87e['isInContent']&&_0x13b87e['attributes']&&_0x13b87e['attributes']['tablePasteChainId']==_0x42de50);_0x3c2c68['length']&&_0x577707['getAllAdjacentSuggestions']()['length']!=_0x3c2c68['length']&&_0x3c2c68['reduce']((_0x2b2ba0,_0x535f96)=>(_0x2b2ba0['next']=_0x535f96,_0x535f96['previous']=_0x2b2ba0,_0x535f96));};function _0x2a8bc5(_0x208a66,_0xc458fd=!0x0){const {id:_0x41fb91,authorId:_0x1d8d9c}=_0x32d8f7['_splitMarkerName'](_0x208a66['markerName']),_0x455dfa=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4e0c2f=_0x32d8f7['activeMarkers']['includes'](_0x208a66['markerName']);return _0x4e0c2f&&_0x455dfa['push']('ck-suggestion-marker--active'),{'classes':_0x455dfa,'attributes':{'data-suggestion':_0x41fb91,'data-author-id':_0x1d8d9c},'priority':_0x4e0c2f&&_0xc458fd?0xbc2:0xbb8};}_0x32d8f7['on']('suggestionLoaded',_0x28fe87,{'priority':'high'}),_0x32d8f7['on']('suggestionUnloaded',_0x28fe87,{'priority':'high'}),_0x3896db['model']['document']['registerPostFixer'](()=>{let _0x469bf5=!0x1;const _0x30bcb8=Array['from'](_0x3896db['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53f4ba,data:_0xcc0e8}of _0x30bcb8){const {group:_0x5c0ace,type:_0x54169c,id:_0x24fc9e}=_0x32d8f7['_splitMarkerName'](_0x53f4ba);if('suggestion'!=_0x5c0ace||'deletion'!=_0x54169c||_0xcc0e8['oldRange'])continue;if(!_0x32d8f7['hasSuggestion'](_0x24fc9e))continue;const _0x3859a5=_0x32d8f7['getSuggestion'](_0x24fc9e)['getRanges'](),_0x162f02=_0x3896db['plugins']['get']('Users')['me'];for(const _0xb1c35b of _0x32d8f7['getSuggestions']()){if(!_0xb1c35b['isInContent']||_0xb1c35b['author']!=_0x162f02)continue;if('formatBlock'!=_0xb1c35b['type']||'tablePasteCell'!=_0xb1c35b['subType'])continue;if(_0xb1c35b['getRanges']()['every'](_0x4a9ba5=>_0x3859a5['some'](_0x12630a=>_0x12630a['containsRange'](_0x4a9ba5,!0x0)))){for(const _0x53e204 of _0xb1c35b['getAllAdjacentSuggestions']())_0x53e204['isInContent']&&(_0x53e204['discard'](),_0x469bf5=!0x0);}}}return _0x469bf5;}),_0x3896db['model']['document']['registerPostFixer'](_0x52b3f6=>{const _0x4ae1b1=_0x3896db['commands']['get']('redo');if(!_0x4ae1b1||!_0x4ae1b1['_createdBatches']['has'](_0x52b3f6['batch']))return!0x1;let _0x217ef0=!0x1;const _0x3414e3=_0x3896db['plugins']['get']('Users')['me'],_0x1ccae4=_0x3896db['model']['document']['differ']['getChanges'](),_0x3cf817=Array['from'](_0x3896db['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1e8fcd,data:_0x248b89})=>{const {group:_0x188def,subType:_0x285868,authorId:_0x386314}=_0x32d8f7['_splitMarkerName'](_0x1e8fcd);return'suggestion'==_0x188def&&'tablePaste'==_0x285868&&_0x386314==_0x3414e3['id']&&!_0x248b89['oldRange'];});for(const _0x4048f4 of _0x1ccae4){if('insert'!=_0x4048f4['type']||'tableCellSuggestion'!=_0x4048f4['name']||0x1!=_0x4048f4['length'])continue;const _0x455365=_0x52b3f6['createRange'](_0x4048f4['position'],_0x4048f4['position']['getShiftedBy'](0x1));if(!_0x3cf817['find'](({data:_0x162f99})=>_0x162f99['newRange']['isEqual'](_0x455365))){for(const {name:_0x26511f,data:_0x1dbc15}of _0x3cf817)if(_0x455365['containsRange'](_0x1dbc15['newRange'])){_0x52b3f6['updateMarker'](_0x26511f,{'range':_0x455365}),_0x217ef0=!0x0;break;}}}return _0x217ef0;}),_0x3896db['model']['document']['registerPostFixer'](_0x5c9d5f=>{let _0x11cca0=!0x1;const _0x1c1c88=_0x3896db['plugins']['get']('Users')['me'],_0x1f4669=_0x32d8f7['getSuggestions']()['filter'](_0x225aac=>_0x225aac['isInContent']&&_0x225aac['author']==_0x1c1c88),_0x632f78=new Set(),_0x420d22=new Set();for(const _0x42a7d6 of _0x1f4669)if('tablePaste'==_0x42a7d6['subType'])for(const _0x223fe3 of _0x42a7d6['getMarkers']()){const _0x47d510=_0x223fe3['getRange']()['getContainedElement']();if(_0x47d510){if(_0x47d510['is']('element','tableCellSuggestion')&&ke(_0x47d510)){_0x42a7d6['removeMarker'](_0x223fe3['name']),_0x632f78['add'](_0x47d510),_0x11cca0=!0x0;const _0x5bad2d=_0x47d510['nextSibling'],_0x3287dc=_0x47d510['previousSibling'],_0x5bd6cd=_0x5bad2d&&_0x5bad2d['is']('element','tableCellSuggestion'),_0x596c66=_0x3287dc&&_0x3287dc['is']('element','tableCellSuggestion');_0x5bd6cd&&!_0x632f78['has'](_0x5bad2d)&&_0x420d22['add'](_0x5bad2d),_0x596c66&&!_0x632f78['has'](_0x3287dc)&&_0x420d22['add'](_0x3287dc);}else _0x47d510['is']('element','paragraph')&&_0x47d510['isEmpty']&&(_0x42a7d6['removeMarker'](_0x223fe3['name']),_0x11cca0=!0x0);}}else{if('tablePasteCell'==_0x42a7d6['subType']){if(!_0x42a7d6['attributes']||!_0x42a7d6['attributes']['tablePasteChainId'])continue;const _0x10006c=_0x42a7d6['attributes']['markerAttributes'];if(_0x10006c&&Object['keys'](_0x10006c)['length'])continue;const _0x2b4dda=_0x42a7d6['attributes']['tablePasteChainId'];let _0x51efe2=!0x0,_0x6a9490=!0x0;for(const _0x16bf63 of _0x1f4669)if(_0x16bf63['subType']&&_0x16bf63['subType']['startsWith']('tablePaste')){if(!_0x16bf63['attributes']['tablePasteChainId']){_0x6a9490=!0x1;break;}if(_0x16bf63['id']!=_0x42a7d6['id']&&_0x16bf63['attributes']['tablePasteChainId']==_0x2b4dda){_0x51efe2=!0x1;break;}}_0x6a9490&&_0x51efe2&&(_0x42a7d6['removeMarkers'](),_0x11cca0=!0x0);}}for(const _0x380dca of _0x632f78)_0x5c9d5f['remove'](_0x380dca);for(const _0x1c735d of _0x420d22)_0x5c9d5f['unwrap'](_0x1c735d);return _0x11cca0;}),_0x3896db['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x24c3f6=>_0x2a8bc5(_0x24c3f6),'converterPriority':'high'}),_0x3896db['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x488bb0,_0x3b9930)=>_0x3b9930['options']['showSuggestionHighlights']?_0x2a8bc5(_0x488bb0,!0x1):null,'converterPriority':'high'});const _0x37fa21=_0x3896db['editing']['view'];this['listenTo'](_0x37fa21['document'],'clipboardOutput',(_0x1e6813,_0x47e7e8)=>{const _0x27636f=[];for(const _0x11c077 of _0x37fa21['createRangeIn'](_0x47e7e8['content'])['getItems']())_0x11c077['is']('element','suggestion-td')&&_0x27636f['push'](_0x11c077);_0x37fa21['change'](_0x55ef22=>{for(const _0x4ea8d6 of _0x27636f)_0x55ef22['move'](_0x55ef22['createRangeIn'](_0x4ea8d6),_0x55ef22['createPositionBefore'](_0x4ea8d6)),_0x55ef22['remove'](_0x4ea8d6);});});}}function ke(_0x2198e4){if(_0x2198e4['isEmpty'])return!0x0;const _0x4855f8=_0x2198e4['getChild'](0x0);return _0x4855f8['is']('element','paragraph')&&_0x4855f8['isEmpty'];}function Re(_0x68fa8b,_0xf0acbb={},_0x115387){for(const {isAnchor:_0x386f1d,cellHeight:_0x2bd11d,cellWidth:_0x15f9f7}of _0x115387['createTableWalker'](_0x68fa8b,{'includeAllSlots':!0x0,..._0xf0acbb}))if(!_0x386f1d||0x1!=_0x2bd11d||0x1!=_0x15f9f7)return!0x1;return!0x0;}class Nt extends _0x560a22{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x33df6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x33df6f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x33df6f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x33df6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33df6f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x33df6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x33df6f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4eb0c3,_0x1a970c){const _0x110441=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e01ab=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8eb020=_0x1a970c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x51ecea=_0x2e01ab['getColumnGroupElement'](_0x8eb020);let _0x11c45f=_0x51ecea?_0x2e01ab['getTableColumnsWidths'](_0x51ecea):null,_0x2d4804=_0x8eb020['getAttribute']('tableWidth')||null;const _0x105888=_0x1a970c['tableWidth']||_0x2d4804,_0x487a43=_0x1a970c['columnWidths']||_0x11c45f,_0x1f4185=this['editor']['plugins']['get']('Users')['me'];for(const _0x27210e of _0x110441['getSuggestions']()){const _0x2c7748=_0x27210e['getContainedElement']();if('resizeTable'===_0x27210e['subType']&&_0x2c7748===_0x8eb020){_0x27210e['author']!==_0x1f4185&&_0x27210e['discard']();const _0x367434=_0x27210e['data']['commandParams'];_0x2d4804=_0x367434[0x0]['tableWidth'],_0x11c45f=_0x367434[0x0]['columnWidths'];break;}}_0x4eb0c3({'table':_0x8eb020,'tableWidth':_0x105888,'columnWidths':_0x487a43}),_0x110441['markBlockFormat'](_0x8eb020,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2d4804,'columnWidths':_0x11c45f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x17eb46){if('formatBlock'!=_0x17eb46['type']&&'formatInline'!=_0x17eb46['type'])return;const {data:_0x2cd51d}=_0x17eb46;if(_0x2cd51d&&'resizeTable'===_0x2cd51d['formatGroupId']){const _0x2a5585='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2a5585)};}}}class Dt extends _0x560a22{['afterInit'](){const _0x364f99=this['editor'];_0x364f99['plugins']['has']('Template')&&_0x364f99['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x560a22{['afterInit'](){const _0x413a85=this['editor'];if(!_0x413a85['commands']['get']('insertTableOfContents'))return;_0x413a85['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2e746b=_0x413a85['plugins']['get']('TrackChangesEditing'),_0x56e1b1=_0x413a85['locale'];_0x2e746b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4b9054=>o(_0x56e1b1,'ELEMENT_TABLE_OF_CONTENTS',_0x4b9054));}}class $t extends _0x560a22{['afterInit'](){const _0xd69f60=this['editor'];if(!_0xd69f60['plugins']['has']('Title'))return;const _0xae41af=_0xd69f60['plugins']['get']('TrackChangesEditing');_0xae41af['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xd69f60['locale'],'ELEMENT_TITLE')),_0xd69f60['model']['document']['registerPostFixer'](_0x4b49c7=>{let _0x4fb32a=!0x1;const _0x2f50e5=Array['from'](_0xd69f60['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c0eff,data:_0x191085}of _0x2f50e5){const {group:_0x541f63}=_0xae41af['_splitMarkerName'](_0x3c0eff);if('suggestion'!==_0x541f63||!_0x191085['newRange'])continue;const _0x5ab2d0=_0x191085['newRange'],_0xee6cbf=_0x5ab2d0['end']['nodeBefore'];if(!_0xee6cbf||!_0xee6cbf['is']('element','title-content'))continue;if(!_0x5ab2d0['start']['isTouching'](_0x5ab2d0['end']))continue;const _0x2d2187=_0xd69f60['model']['schema']['getNearestSelectionRange'](_0x5ab2d0['end'],'forward');if(_0x2d2187&&_0x2d2187['isCollapsed']){const _0x425775=_0x4b49c7['createRange'](_0x5ab2d0['start'],_0x2d2187['start']);_0x425775['isEqual'](_0x5ab2d0)||(_0x4b49c7['updateMarker'](_0x3c0eff,{'range':_0x425775}),_0x4fb32a=!0x0);}_0x4fb32a||(_0x4b49c7['removeMarker'](_0x3c0eff),_0x4fb32a=!0x0);}return _0x4fb32a;});}}class Bt extends _0x560a22{['afterInit'](){const _0x2455a1=this['editor'],_0xaa3c81=_0x2455a1['plugins']['get']('TrackChangesEditing');_0x2455a1['plugins']['has']('UndoEditing')&&(_0xaa3c81['enableCommand']('undo'),_0xaa3c81['enableCommand']('redo'));}}class xt extends _0x560a22{static get['requires'](){return[It];}['afterInit'](){const _0x456060=this['editor'];if(!_0x456060['plugins']['has']('TableCaptionEditing'))return;_0x456060['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x560a22{['tableProperties'];['tableCellProperties'];constructor(_0x3a5af6){super(_0x3a5af6),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x4ac4c6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1cd0b8 of this['tableProperties'])_0x4ac4c6['enableCommand'](_0x1cd0b8,(_0x2096ac,_0x46b07b)=>{const _0x163163=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1cd0b8,[_0x163163],this['tableProperties'],'tableProperties',_0x2096ac,_0x46b07b);});_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4ac4c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1ae191,_0xc4f114)=>this['handleDiscardAction'](this['tableProperties'],_0x1ae191,_0xc4f114)),_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2853be of this['tableCellProperties'])_0x4ac4c6['enableCommand'](_0x2853be,(_0x2963c8,_0x5b348f)=>{const _0x5004bd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2853be,_0x5004bd,this['tableCellProperties'],'tableCellProperties',_0x2963c8,_0x5b348f);});_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4ac4c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc1cb8f,_0x4b7ff8)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc1cb8f,_0x4b7ff8)),_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4ac4c6['descriptionFactory']['registerDescriptionCallback'](_0x20412c=>this['handleSuggestionDescription'](_0x20412c));}['_handlePropertyChange'](_0x41a6db,_0x33b4aa,_0xaa0c77,_0x1dbebf,_0x408f9a,_0x1dda5a){const _0x2bad75=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1dda5a['batch'],()=>{for(const _0x589e92 of _0x33b4aa){if(this['_getSuggestion'](_0x589e92,_0x1dbebf))_0x408f9a(_0x1dda5a);else{const _0x1fd09b={};for(const _0x191a00 of _0xaa0c77){const _0x371503=_0x589e92['getAttribute'](_0x191a00);void 0x0!==_0x371503&&(_0x1fd09b[_0x191a00]=_0x371503);}_0x408f9a(_0x1dda5a),_0x2bad75['markBlockFormat'](_0x589e92,{'commandParams':[_0x1fd09b]},[],_0x1dbebf);}}});}['handleDiscardAction'](_0x5bd8e5,_0x37f140,_0x55ba51){const _0x15eee7=_0x37f140[0x0]['start']['nodeAfter'],_0x30f0e6=_0x55ba51['commandParams'][0x0];this['editor']['model']['change'](_0x183d92=>{for(const _0x484243 of _0x5bd8e5)void 0x0!==_0x30f0e6[_0x484243]?_0x183d92['setAttribute'](_0x484243,_0x30f0e6[_0x484243],_0x15eee7):_0x183d92['removeAttribute'](_0x484243,_0x15eee7);});}['handleSuggestionDescription'](_0x267674){if(_0x267674['data'])switch(_0x267674['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'](_0x31308a,_0x1772bd){const _0x622eb6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ebf9e of _0x622eb6['getSuggestions']({'skipNotAttached':!0x0})){const _0x5c4cf8=_0x3ebf9e['getContainedElement']();if(_0x3ebf9e['subType']===_0x1772bd&&_0x5c4cf8===_0x31308a)return _0x3ebf9e;}return null;}}const m='$elementName';class p extends _0x560a22{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4e07e7,_0x1cc518,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3dca52){function _0x24d6c5(_0x37556c){return _0x37556c['map'](_0xff193c=>String['fromCharCode'](_0xff193c))['join']('');}super(_0x3dca52),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x349fe4,_0x2ff92c,_0x185aaa,_0x5a4f90)=>{this['_model']['change'](()=>{for(const _0x27116a of[..._0x5a4f90,..._0x185aaa])this['_model']['markers']['has'](_0x27116a)&&_0x3dca52['editing']['reconvertMarker'](_0x27116a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3dca52['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(),_0x3dca52['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3dca52['config']['get']('trackChanges.trackFormatChanges'),_0x3dca52['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3dca52['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3dca52,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x24d6c5([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x24d6c5([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x36]);}['init'](){const _0x1f26f6=this['editor'],_0x1ef6f8=(_0x3e296e,_0x180cc9)=>{if('attribute'!=_0x3e296e)return'ck-suggestion-marker-'+_0x3e296e;const _0x3c2ee5=_0x180cc9['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c2ee5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1f26f6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2d15d3=>{const {id:_0x1a8b9f,authorId:_0x7d2e9e,type:_0x44415c,subType:_0x16e268}=this['_splitMarkerName'](_0x2d15d3['markerName']),_0x263741=['ck-suggestion-marker',_0x1ef6f8(_0x44415c,_0x16e268)];let _0x3ba775=0xbb8;return this['activeMarkers']['includes'](_0x2d15d3['markerName'])&&(_0x263741['push']('ck-suggestion-marker--active'),_0x3ba775=0xbc2),'deletion'==_0x44415c&&(_0x3ba775+=0x5),{'classes':_0x263741,'attributes':{'data-suggestion':_0x1a8b9f,'data-author-id':_0x7d2e9e},'priority':_0x3ba775};}}),_0x1f26f6['conversion']['for']('dataDowncast')['add'](_0x9eb5a6=>{_0x9eb5a6['on']('addMarker:suggestion',(_0x31d152,_0x2d499e,_0x147755)=>{if(!_0x147755['options']['showSuggestionHighlights'])return;const _0x2c092a=_0x2d499e['item'];if(!_0x2c092a)return;const _0x5958eb=_0x147755['mapper']['toViewElement'](_0x2c092a);_0x1f26f6['model']['schema']['isObject'](_0x2c092a)&&_0x5958eb&&!_0x5958eb['getCustomProperty']('widget')&&_0x5958eb['is']('containerElement')&&_0x670c8b(_0x5958eb,_0x147755['writer']);},{'priority':'high'});}),_0x1f26f6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x33dbe5,_0x294693)=>{if(!_0x294693['options']['showSuggestionHighlights'])return null;const {type:_0x5e101e,subType:_0xb2fea}=this['_splitMarkerName'](_0x33dbe5['markerName']);return{'classes':['ck-suggestion-marker',_0x1ef6f8(_0x5e101e,_0xb2fea)],'priority':0xbb8};}});const _0xea2414=({showActiveMarkers:_0x109b16=!0x0,isAttributeSuggestion:_0x254191=!0x1}={})=>(_0x4c4742,_0x4b7db6,_0x17610d)=>{if(!_0x4b7db6['item'])return;const {id:_0x30b4ef,authorId:_0x4e0d58}=this['_splitMarkerName'](_0x4b7db6['markerName']);if(_0x254191){const _0x4019b8=this['_suggestions']['get'](_0x30b4ef),_0x216753=this['_getAttributeKey'](_0x4019b8);if(!this['_isBlockAttribute'](_0x216753))return;}if(_0x4b7db6['item']['is']('selection'))return void _0x17610d['consumable']['consume'](_0x4b7db6['item'],_0x4c4742['name']);const _0x45ea34=_0x17610d['mapper']['toViewElement'](_0x4b7db6['item']);if(_0x4b7db6['item']['is']('element')&&_0x1f26f6['model']['schema']['isBlock'](_0x4b7db6['item'])&&!_0x45ea34['getCustomProperty']('addHighlight')){_0x17610d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x45ea34),_0x17610d['writer']['setAttribute']('data-suggestion',_0x30b4ef,_0x45ea34),_0x17610d['writer']['setAttribute']('data-author-id',_0x4e0d58,_0x45ea34),_0x17610d['mapper']['bindElementToMarker'](_0x45ea34,_0x4b7db6['markerName']),_0x109b16&&(this['activeMarkers']['includes'](_0x4b7db6['markerName'])?_0x17610d['writer']['addClass']('ck-suggestion-marker--active',_0x45ea34):_0x17610d['writer']['removeClass']('ck-suggestion-marker--active',_0x45ea34));for(const _0x5150fe of _0x1f26f6['model']['createRangeIn'](_0x4b7db6['item'])['getItems']())_0x17610d['consumable']['consume'](_0x5150fe,_0x4c4742['name']);_0x17610d['consumable']['consume'](_0x4b7db6['item'],_0x4c4742['name']);}};_0x1f26f6['conversion']['for']('dataDowncast')['add'](_0x225c86=>{_0x225c86['on']('addMarker:suggestion:formatBlock',(_0x614766,_0x2b3a4d,_0x34fca2)=>{_0x34fca2['options']['showSuggestionHighlights']&&_0xea2414({'showActiveMarkers':!0x1})(_0x614766,_0x2b3a4d,_0x34fca2);},{'priority':'highest'});}),_0x1f26f6['conversion']['for']('dataDowncast')['add'](_0xab44fb=>{_0xab44fb['on']('addMarker:suggestion:attribute',(_0x38d5df,_0x562c8c,_0x482ba6)=>{_0x482ba6['options']['showSuggestionHighlights']&&_0xea2414({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x38d5df,_0x562c8c,_0x482ba6);},{'priority':'highest'});}),_0x1f26f6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3f2807,_0x59967b)=>_0x59967b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3f2807['substr'](0xb)}}),_0x1f26f6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x20559e,{writer:_0x275847})=>{let _0x38e03b='suggestion:'+_0x20559e['getAttribute']('suggestion-type')+':'+_0x20559e['getAttribute']('id');return _0x20559e['getAttribute']('marker-count')&&(_0x38e03b+=':'+_0x20559e['getAttribute']('marker-count')),_0x275847['createElement']('$marker',{'data-name':_0x38e03b});}}),_0x1f26f6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f26f6['conversion']['for']('editingDowncast')['add'](_0x567f76=>{_0x567f76['on']('addMarker:suggestion:formatBlock',_0xea2414(),{'priority':'high'});}),_0x1f26f6['conversion']['for']('editingDowncast')['add'](_0x5e430f=>{_0x5e430f['on']('addMarker:suggestion:attribute',_0xea2414({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1f26f6['conversion']['for']('editingDowncast')['add'](_0xc203a0=>{_0xc203a0['on']('removeMarker:suggestion:formatBlock',(_0x58c62b,_0x2c15ba,_0x3f9f0a)=>{const _0x1ca662=_0x3f9f0a['mapper']['markerNameToElements'](_0x2c15ba['markerName']);if(_0x1ca662){for(const _0x3ae14e of _0x1ca662)_0x3ae14e['getCustomProperty']('addHighlight')||(_0x3f9f0a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ae14e),_0x3f9f0a['writer']['removeAttribute']('data-suggestion',_0x3ae14e),_0x3f9f0a['writer']['removeAttribute']('data-author-id',_0x3ae14e),_0x3f9f0a['mapper']['unbindElementFromMarkerName'](_0x3ae14e,_0x2c15ba['markerName']));}},{'priority':'high'});}),_0x1f26f6['conversion']['for']('editingDowncast')['add'](_0x756e0c=>{_0x756e0c['on']('removeMarker:suggestion:attribute',(_0x3c2500,_0x2d05a3,_0xf715b5)=>{const _0x285215=_0xf715b5['mapper']['markerNameToElements'](_0x2d05a3['markerName']);if(!_0x285215)return;const {id:_0x2d5d81}=this['_splitMarkerName'](_0x2d05a3['markerName']),_0x75a466=this['_suggestions']['get'](_0x2d5d81),_0x2202a6=this['_getAttributeKey'](_0x75a466);if(this['_isBlockAttribute'](_0x2202a6)){for(const _0x579c7e of _0x285215)_0x579c7e['getCustomProperty']('addHighlight')||(_0xf715b5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x579c7e),_0xf715b5['writer']['removeAttribute']('data-suggestion',_0x579c7e),_0xf715b5['writer']['removeAttribute']('data-author-id',_0x579c7e),_0xf715b5['mapper']['unbindElementFromMarkerName'](_0x579c7e,_0x2d05a3['markerName']));}},{'priority':'high'});}),_0x1f26f6['model']['document']['registerPostFixer'](_0x6869ab=>{let _0x4273c4=!0x1;const _0x54c4b5=Array['from'](_0x1f26f6['model']['document']['differ']['getChangedMarkers']()),_0x540a36=new Set();for(const {name:_0x3b9328,data:_0xe1cb5}of _0x54c4b5){const {group:_0x28f77c,type:_0x2415b8,subType:_0x20a398,id:_0x317856}=this['_splitMarkerName'](_0x3b9328);if('suggestion'!==_0x28f77c)continue;const _0x232df3=this['_suggestions']['get'](_0x317856);if(null!=_0xe1cb5['newRange']){'formatInline'==_0x2415b8&&(_0x4273c4=_0x4273c4||Ut(_0xe1cb5['newRange'],_0x3b9328,_0x6869ab,_0x1f26f6['model']['schema']));const _0x4ff3e6='attribute'==_0x2415b8&&this['_isBlockAttribute'](_0x20a398['split']('|')[0x0]);if(_0xe1cb5['newRange']['isCollapsed']||'$graveyard'==_0xe1cb5['newRange']['root']['rootName']||'formatBlock'==_0x2415b8&&!Ft(_0xe1cb5['newRange'])||_0x4ff3e6&&!Ft(_0xe1cb5['newRange'])||'deletion'==_0x2415b8&&!(!Vt(_0x4a7168=_0xe1cb5['newRange'])&&!function(_0x331561){return _0x331561['start']['parent']==_0x331561['end']['nodeBefore']&&_0x331561['start']['isAtEnd'];}(_0x4a7168)))_0x6869ab['removeMarker'](_0x3b9328),_0x4273c4=!0x0;else{if(!_0x232df3||!_0x232df3['isInContent'])continue;if(_0xe1cb5['newRange']&&_0xe1cb5['oldRange']&&_0xe1cb5['newRange']['isEqual'](_0xe1cb5['oldRange']))continue;_0x540a36['add'](_0x232df3);}}}var _0x4a7168;return _0x540a36['size']>0x0&&(_0x4273c4=!!this['_joinWithAdjacentSuggestions'](_0x540a36)||_0x4273c4),_0x4273c4;}),_0x1f26f6['model']['document']['registerPostFixer'](_0x2f8b4e=>{let _0x2c5dbe=!0x1;for(const _0x39f356 of _0x1f26f6['model']['document']['differ']['getChanges']())if('insert'==_0x39f356['type'])for(const _0x4235a2 of this['_suggestions']['values']()){if(_0x4235a2['isMultiRange']||!_0x4235a2['isInContent'])continue;const _0x1b4198='formatBlock'==_0x4235a2['type'],_0x38d2a3=this['_getAttributeKey'](_0x4235a2),_0x3e35a7=_0x38d2a3&&this['_isBlockAttribute'](_0x38d2a3);if(!_0x1b4198&&!_0x3e35a7)continue;const _0x165a9c=_0x4235a2['getFirstRange']();if(_0x165a9c['start']['parent']!=_0x165a9c['end']['parent']&&!_0x165a9c['end']['isAtEnd']){const _0x5a6924=_0x1f26f6['model']['createPositionAt'](_0x165a9c['start']['nodeAfter'],'end'),_0x145a54=_0x1f26f6['model']['createRange'](_0x165a9c['start'],_0x5a6924);_0x2f8b4e['updateMarker'](_0x4235a2['getFirstMarker'](),{'range':_0x145a54}),_0x2c5dbe=!0x0;}}return _0x2c5dbe;}),_0x1f26f6['model']['document']['registerPostFixer'](_0x2de0e7=>this['_processAttributeChanges'](_0x2de0e7)),_0x1f26f6['model']['document']['registerPostFixer'](_0x4448fc=>!_0x4448fc['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4448fc)),_0x1f26f6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f26f6['model']['document']['on']('change:data',(_0x20f990,_0x4f1162)=>{if(!_0x4f1162['isLocal']||_0x4f1162['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3fe6c1=_0x1f26f6['model']['document']['differ']['getChanges']();if(0x0==_0x3fe6c1['length'])return;const _0x12b7e2=[],_0x666621=_0x3fe6c1['filter'](_0x5d977f=>'attribute'==_0x5d977f['type']),_0x45d8ed=_0x3fe6c1['filter'](_0x1f6b11=>'insert'==_0x1f6b11['type']&&'$text'!=_0x1f6b11['name']);for(const _0x470160 of _0x666621)this['_isRegisteredAttribute'](_0x470160['attributeKey'])&&_0x12b7e2['push']({'key':_0x470160['attributeKey'],'newValue':_0x470160['attributeNewValue'],'oldValue':_0x470160['attributeOldValue'],'range':Pt(_0x470160['range'],_0x1f26f6['model'])});for(const _0x2aa76a of _0x45d8ed){if('rename'!=_0x2aa76a['action']&&'refresh'!=_0x2aa76a['action'])continue;const _0xefa1f2=Lt(_0x2aa76a['position']['nodeAfter'],_0x1f26f6['model']),_0x52b66a=_0x2aa76a['before'];'rename'==_0x2aa76a['action']&&_0x12b7e2['push']({'key':m,'newValue':_0x2aa76a['name'],'oldValue':_0x52b66a['name'],'range':_0xefa1f2});for(const [_0x290958,_0x3c97f0]of _0x52b66a['attributes']){if(!this['_isRegisteredAttribute'](_0x290958))continue;const _0x2a09b3=_0x2aa76a['attributes']['get'](_0x290958);_0x3c97f0!==_0x2a09b3&&_0x12b7e2['push']({'key':_0x290958,'newValue':_0x2a09b3,'oldValue':_0x3c97f0,'range':_0xefa1f2});}for(const [_0x28d55f,_0x5b2ccf]of _0x2aa76a['attributes'])this['_isRegisteredAttribute'](_0x28d55f)&&(_0x52b66a['attributes']['has'](_0x28d55f)||_0x12b7e2['push']({'key':_0x28d55f,'newValue':_0x5b2ccf,'oldValue':null,'range':_0xefa1f2}));}0x0!=_0x12b7e2['length']&&_0x1f26f6['model']['enqueueChange'](_0x4f1162,_0x1ca7da=>{const _0x8b7b3d=_0x524896();for(const {range:_0x3b153c,key:_0x2ec889,oldValue:_0x4c5d3e,newValue:_0x1ae346}of _0x12b7e2)this['markAttributeChange'](_0x3b153c,_0x2ec889,_0x4c5d3e,_0x1ae346,{'groupId':_0x8b7b3d});this['_reduceExistingSuggestions'](_0x1ca7da,_0x12b7e2);});},{'priority':'lowest'}),_0x1f26f6['model']['markers']['on']('update:suggestion',(_0x1ec660,_0x408772,_0x39cb45)=>{if(null==_0x39cb45){const {id:_0x488a00}=this['_splitMarkerName'](_0x408772['name']),_0x339d14=this['_suggestions']['get'](_0x488a00);_0x339d14&&_0x339d14['addMarkerName'](_0x408772['name']);}}),_0x1f26f6['model']['document']['on']('change:data',()=>{const _0x3ec399=Array['from'](_0x1f26f6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1f558c=>'suggestion'===this['_splitMarkerName'](_0x1f558c['name'])['group']);if(0x0===_0x3ec399['length'])return;_0x3ec399['sort']((_0x4a05f5,_0x3fd5ed)=>{const _0x5d6353=_0x4a05f5['data']['oldRange'],_0x529515=_0x3fd5ed['data']['oldRange'];return null===_0x5d6353&&null===_0x529515?0x0:null===_0x5d6353&&null!==_0x529515?-0x1:null!==_0x5d6353&&null===_0x529515?0x1:_0x5d6353['start']['isBefore'](_0x529515['start'])?-0x1:0x1;});const _0x10636a=new Set(),_0x3ea8f5=new Set();for(const {name:_0x2ee40e,data:_0x1f0973}of _0x3ec399){const {id:_0x4f0997}=this['_splitMarkerName'](_0x2ee40e);if(null===_0x1f0973['oldRange']){const _0x2b1ac4=this['_handleNewSuggestionMarker'](_0x2ee40e);_0x3ea8f5['add'](_0x2b1ac4);}else{const _0x191dda=this['_suggestions']['get'](_0x4f0997);null!==_0x1f0973['newRange']||_0x191dda['isInContent']?(_0x10636a['add'](_0x191dda['head']),_0x3ea8f5['add'](_0x191dda)):this['_removeSuggestion'](_0x191dda);}}_0x3ea8f5['size']>0x0&&this['_refreshSuggestionsChain'](_0x3ea8f5);for(const _0x27fe69 of _0x10636a)this['fire']('suggestionChanged',_0x27fe69);}),_0x1f26f6['model']['on']('applyOperation',(_0x2391e5,_0x4c4b61)=>{const _0x5321e6=_0x4c4b61[0x0];if(!this['_suggestions']['size'])return;if(!_0x5321e6['isDocumentOperation'])return;if(_0x5321e6['batch']['isUndo']||!_0x5321e6['batch']['isLocal'])return;let _0x5378d8,_0x46b613;switch(_0x5321e6['type']){case'insert':_0x5378d8=_0x1f26f6['model']['createPositionAt'](_0x5321e6['position']),_0x46b613=_0x5378d8['getShiftedBy'](_0x5321e6['howMany']);break;case'split':_0x5378d8=_0x1f26f6['model']['createPositionAt'](_0x5321e6['splitPosition']),_0x46b613=_0x1f26f6['model']['createPositionAt'](_0x5321e6['moveTargetPosition']);break;case'move':_0x5378d8=_0x1f26f6['model']['createPositionAt'](_0x5321e6['targetPosition']),_0x46b613=_0x5378d8['getShiftedBy'](_0x5321e6['howMany']);break;default:return;}const _0x265070=_0x1f26f6['model']['createRange'](_0x5378d8,_0x46b613);_0x1f26f6['model']['change'](()=>{for(const {suggestion:_0x32e353,meta:_0x281552}of this['_findSuggestions'](_0x265070)){if(_0x32e353['isMultiRange'])continue;if('formatInline'==_0x32e353['type'])continue;const _0x58bb37=this['_getAttributeKey'](_0x32e353);if(_0x58bb37&&this['_isBlockAttribute'](_0x58bb37)&&'split'!=_0x5321e6['type'])continue;const _0x5d8f50=_0x32e353['data']&&_0x32e353['data']['multipleBlocks'];('formatBlock'!=_0x32e353['type']||'split'==_0x5321e6['type']&&!_0x5d8f50)&&(_0x281552['containsRangeInObject']||'insertion'==_0x32e353['type']&&_0x281552['isOwn']||_0x32e353['getFirstRange']()['containsRange'](_0x265070)&&this['_breakSuggestionMarker'](_0x32e353,_0x5378d8,_0x46b613));}});},{'priority':'lowest'}),_0x1f26f6['model']['on']('deleteContent',(_0xa9de8c,_0x2069ce)=>{const _0x1b498f=_0x2069ce[0x0],_0x524aaf=_0x2069ce[0x1];if(_0x524aaf&&_0x524aaf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1b498f['isCollapsed'])return;const _0x29e09c=_0x1f26f6['model']['schema'],{start:_0x42ff5b,end:_0x382488}=_0x1b498f['getFirstRange'](),_0x5ebfdc=_0x42ff5b['nodeAfter']&&_0x29e09c['isLimit'](_0x42ff5b['nodeAfter'])?null:_0x29e09c['getNearestSelectionRange'](_0x42ff5b,'forward'),_0x48d452=_0x382488['nodeBefore']&&_0x29e09c['isLimit'](_0x382488['nodeBefore'])?null:_0x29e09c['getNearestSelectionRange'](_0x382488,'backward'),_0xd6990f=_0x1f26f6['model']['createRange'](_0x5ebfdc?_0x5ebfdc['start']:_0x42ff5b,_0x48d452?_0x48d452['end']:_0x382488);_0x1f26f6['model']['change'](_0x2e27ff=>{this['markDeletion'](_0xd6990f);const _0x194b6d=_0x1f26f6['model']['schema']['getNearestSelectionRange'](_0xd6990f['start']);_0x1b498f['is']('documentSelection')?_0x2e27ff['setSelection'](_0x194b6d):_0x1b498f['setTo'](_0x194b6d);}),_0xa9de8c['stop']();},{'priority':_0x2388dd['normal']+0xa}),_0x1f26f6['model']['on']('insertContent',(_0x3bafc0,_0x3074f8)=>{const _0x703ccb=_0x3074f8[_0x3074f8['length']-0x1];_0x703ccb&&_0x703ccb['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f26f6['model']['change'](()=>{let _0x2bf9d2=_0x1f26f6['model']['insertContent'](_0x3074f8[0x0],_0x3074f8[0x1],_0x3074f8[0x2],{'forceDefaultExecution':!0x0});if(!_0x2bf9d2)return;_0x3bafc0['return']=_0x2bf9d2['clone']();const _0x5c2d57=_0x2bf9d2['end']['nodeBefore'],_0x247c02=_0x1f26f6['model']['schema'];_0x5c2d57&&_0x247c02['isBlock'](_0x5c2d57)&&!_0x247c02['isObject'](_0x5c2d57)&&(_0x2bf9d2=_0x1f26f6['model']['createRange'](_0x2bf9d2['start'],_0x1f26f6['model']['createPositionAt'](_0x5c2d57,'end'))),this['markInsertion'](_0x2bf9d2);}),_0x3bafc0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x55c73f=new x(_0x1f26f6,this['_suggestions']);_0x1f26f6['commands']['add']('acceptSuggestion',_0x55c73f),this['enableCommand']('acceptSuggestion');const _0x43a792=new R(_0x1f26f6,this['_suggestions']);_0x1f26f6['commands']['add']('discardSuggestion',_0x43a792),this['enableCommand']('discardSuggestion'),_0x1f26f6['commands']['add']('acceptAllSuggestions',new E(_0x1f26f6,_0x55c73f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f26f6['commands']['add']('discardAllSuggestions',new E(_0x1f26f6,_0x43a792,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f26f6['commands']['add']('acceptSelectedSuggestions',new O(_0x1f26f6,_0x55c73f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f26f6['commands']['add']('discardSelectedSuggestions',new O(_0x1f26f6,_0x43a792,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x544b2f=_0x1f26f6['plugins']['get']('CommentsRepository');this['listenTo'](_0x544b2f,'addComment',(_0x3d5b9d,{threadId:_0x3720e7})=>{const _0x10e9d3=this['_suggestions']['get'](_0x3720e7);_0x10e9d3&&_0x10e9d3['commentThread']&&0x1===_0x10e9d3['commentThread']['length']&&this['_updateSuggestionData'](_0x3720e7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x544b2f,'removeComment',(_0xe19b75,{threadId:_0x502c02})=>{const _0x119396=this['_suggestions']['get'](_0x502c02);_0x119396&&_0x119396['commentThread']&&!_0x119396['commentThread']['length']&&this['_updateSuggestionData'](_0x502c02,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x29800b){if(this['_adapter'])throw new _0x3f354f('track-changes-adapter-already-set',this);this['_adapter']=_0x29800b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x25dcd3=!0x1,toJSON:_0x3ec68c=!0x1}={}){const _0x182353=[];for(const _0x10f26c of this['_suggestions']['values']())_0x25dcd3&&!_0x10f26c['isInContent']||_0x182353['push'](_0x10f26c);return _0x3ec68c?_0x182353['map'](_0x3a92b1=>_0x3a92b1['toJSON']()):_0x182353;}['getSuggestion'](_0x41da31){const _0x1fe2dd=this['_suggestions']['get'](_0x41da31);if(!_0x1fe2dd)throw new _0x3f354f('track-changes-suggestion-not-found',this);return _0x1fe2dd;}['hasSuggestion'](_0xa73cf3){return this['_suggestions']['has'](_0xa73cf3);}['addSuggestionData'](_0x1c389f){const {authorId:_0x110118,id:_0x421f60,attributes:_0x3d9d37}=_0x1c389f,[_0x189098,_0x11dc49]=_0x1c389f['type']['split'](':'),_0x5b4188=this['_suggestions']['get'](_0x421f60)||this['_createSuggestion'](_0x189098,_0x11dc49,_0x421f60,_0x110118,_0x3d9d37);if(this['_addThreadToSuggestion'](_0x5b4188),this['_checkSuggestionCorrectness'](_0x5b4188,_0x189098,_0x11dc49||null,_0x110118),_0x5b4188['createdAt']=_0x1c389f['createdAt'],_0x5b4188['_isDataLoaded']=!0x0,_0x3d9d37&&_0x3d9d37['@external']){const _0x1dd0d5=_0x3d9d37['@external'],_0x48e023=this['_getExternalAuthor'](_0x1dd0d5['authorName']);_0x5b4188['authoredAt']=_0x1dd0d5['createdAt'],_0x5b4188['author']=_0x48e023,_0x5b4188['isExternal']=!0x0;}else _0x5b4188['authoredAt']=_0x1c389f['createdAt'];switch(_0x1c389f['data']&&(_0x5b4188['data']=_0x1c389f['data']),_0x1c389f['attributes']&&(_0x5b4188['attributes']=_0x1c389f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5b4188['_saved']=!0x0),this['_suggestionState']['get'](_0x5b4188)){case'notReady':this['_suggestionState']['set'](_0x5b4188,'dataReady');break;case'markerReady':_0x5b4188['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5b4188])),this['_refreshSuggestionsChain'](new Set([_0x5b4188])),this['_suggestionState']['set'](_0x5b4188,'ready'),this['fire']('suggestionLoaded',_0x5b4188)):this['_suggestionState']['set'](_0x5b4188,'removed');}return _0x5b4188;}['acceptSuggestion'](_0x157536){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x40b2b9 of _0x157536['getAllAdjacentSuggestions']())_0x40b2b9['accept']();});});}['discardSuggestion'](_0x3e41d6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55de07 of _0x3e41d6['getAllAdjacentSuggestions']())_0x55de07['discard']();});});}['enableCommand'](_0x254ffe,_0x4ab98a){const _0x1cee42=this['editor']['commands']['get'](_0x254ffe);if(!_0x1cee42)throw new _0x3f354f('track-changes-command-not-found',this,{'commandName':_0x254ffe});if(this['_enabledCommands']['has'](_0x1cee42))throw new _0x3f354f('track-changes-enable-command-twice',this,{'commandName':_0x254ffe});this['_enabledCommands']['add'](_0x1cee42),_0x4ab98a&&_0x1cee42['on']('execute',(_0x147464,_0x30ef24)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x30ef24['length']>0x0&&_0x30ef24[_0x30ef24['length']-0x1]&&_0x30ef24[_0x30ef24['length']-0x1]['forceDefaultExecution']?_0x30ef24['pop']():(_0x147464['return']=_0x4ab98a((..._0xb5a23c)=>_0x1cee42['execute'](..._0xb5a23c,{'forceDefaultExecution':!0x0}),..._0x30ef24),_0x147464['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3fab8a){let _0x5b71b3,_0x526375;const _0x2147e6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5b71b3=_0x3fab8a();}catch(_0x158bc7){_0x526375=_0x158bc7;}return _0x2147e6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x526375&&_0x3f354f['rethrowUnexpectedError'](_0x526375,this),_0x5b71b3;}['markInsertion'](_0x3e65f2,_0x65595=null,_0x15437b={}){if(_0x3e65f2['isCollapsed'])return null;const _0x1d4537=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xae4e52,meta:_0x443d5c}of this['_findSuggestions'](_0x3e65f2,'insertion'))if(_0x443d5c['isOwn']){if(!_0x443d5c['isNextTo']){if(_0x443d5c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0xae4e52,_0x15437b))continue;return _0xae4e52;}if(qt(_0xae4e52,_0x15437b))return _0xae4e52;this['_breakSuggestionMarker'](_0xae4e52,_0x3e65f2['start'],_0x3e65f2['end']);break;}if(_0x65595==_0xae4e52['subType']&&qt(_0xae4e52,_0x15437b)){const _0x3e2fb6=_0xae4e52['getFirstRange']();return _0x3e2fb6['start']['isEqual'](_0x3e65f2['end'])?this['_setSuggestionRange'](_0xae4e52,this['_model']['createRange'](_0x3e65f2['start'],_0x3e2fb6['end'])):this['_setSuggestionRange'](_0xae4e52,this['_model']['createRange'](_0x3e2fb6['start'],_0x3e65f2['end'])),_0xae4e52;}}const _0x3d1fad=_0x524896(),_0x4a8b33=_0x1d4537['id'],_0x4dd48c=_0x65595?'insertion:'+_0x65595:'insertion',_0x535a07=this['_setSuggestionData']({'id':_0x3d1fad,'type':_0x4dd48c,'createdAt':new Date(),'authorId':_0x4a8b33,'attributes':_0x15437b});return this['_addSuggestionMarker'](_0x4dd48c,_0x3d1fad,_0x4a8b33,_0x3e65f2),_0x535a07;}['markMultiRangeInsertion'](_0x22dc51,_0x28b394='multi',_0x9cc9fb={}){const _0xaeebd=this['editor']['plugins']['get']('Users')['me'],_0xee4ba7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x28b394,'join');for(const _0x566199 of this['getSuggestions']())if(_0x566199['author']['id']==_0xaeebd['id']&&'insertion'==_0x566199['type']&&_0x566199['subType']==_0x28b394&&qt(_0x566199,_0x9cc9fb)&&(_0xee4ba7(_0x566199['getRanges'](),_0x22dc51)||_0xee4ba7(_0x22dc51,_0x566199['getRanges']()))){for(const _0x117093 of _0x22dc51)_0x566199['addRange'](_0x117093);return _0x566199;}for(const {suggestion:_0xc5954d,meta:_0x10b42a}of this['_findSuggestions'](_0x22dc51,'insertion')){if(!_0x10b42a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x10b42a['containsRangeInObject'])continue;if(!qt(_0xc5954d,_0x9cc9fb))continue;let _0x223055=!0x0;for(const _0xd9a6c6 of _0xc5954d['getRanges']())for(const _0x235539 of _0x22dc51)if(!_0xd9a6c6['containsRange'](_0x235539)){_0x223055=!0x1;break;}if(_0x223055)return _0xc5954d;}const _0x324d24=_0x524896(),_0x22c91a=_0xaeebd['id'],_0x2b0538='insertion:'+_0x28b394,_0x30d113=this['_setSuggestionData']({'id':_0x324d24,'type':_0x2b0538,'createdAt':new Date(),'authorId':_0x22c91a,'attributes':_0x9cc9fb});for(const _0x5e1688 of _0x22dc51)this['_addSuggestionMarker'](_0x2b0538,_0x324d24,_0x22c91a,_0x5e1688,u['getMultiRangeId']());return _0x30d113;}['markInlineFormat'](_0x1daff9,_0x7aa0fe,_0x11f6d8=null,_0x16d397={}){if(_0x11f6d8=_0x11f6d8||Gt(_0x7aa0fe),_0x1daff9['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2efbb0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11f6d8,'accept');return this['forceDefaultExecution'](()=>_0x2efbb0([_0x1daff9],_0x7aa0fe,_0x16d397)),null;}const _0x5ed1cf=this['editor']['plugins']['get']('Users')['me'],_0x83e03e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x442aee,meta:_0x1496ac}of this['_findSuggestions'](_0x1daff9,'insertion'))_0x1496ac['isOwn']&&!_0x1496ac['isInsideObject']&&_0x83e03e['push'](..._0x442aee['getRanges']());}const _0x5209d9=function(_0x85729b,_0xc5452b){const _0x1d0d1f=[];for(const _0x2ae996 of _0xc5452b){const _0x49fe1b=_0x85729b['getIntersection'](_0x2ae996);_0x49fe1b&&_0x1d0d1f['push'](_0x49fe1b);}return _0x1d0d1f;}(_0x1daff9,_0x83e03e),_0x4d9eb2=function(_0x45748d,_0x505101){const _0x1a439a=[_0x45748d];for(const _0x4ee58c of _0x505101){let _0x1e6af4=0x0;for(;_0x1e6af4<_0x1a439a['length'];){const _0x339b76=_0x1a439a[_0x1e6af4]['getDifference'](_0x4ee58c);_0x1a439a['splice'](_0x1e6af4,0x1,..._0x339b76),_0x1e6af4+=_0x339b76['length'];}}return _0x1a439a;}(_0x1daff9,_0x83e03e);_0x5209d9['length']&&this['_model']['change'](()=>{for(const _0x276a85 of _0x5209d9){const _0x236593=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11f6d8,'accept');this['forceDefaultExecution'](()=>_0x236593([_0x276a85],_0x7aa0fe,_0x16d397));}});for(const _0x174e98 of _0x4d9eb2){let _0x4ee39f=null,_0x1576b9=_0x174e98['start'],_0x5da1cf=_0x174e98['end'];for(const {suggestion:_0x1ad363,meta:_0x59e657}of this['_findSuggestions'](_0x174e98,'formatInline')){if(!_0x59e657['isOwn'])continue;if(_0x1ad363['subType']!=_0x11f6d8)continue;if(!qt(_0x1ad363,_0x16d397))continue;const _0x1365dc=_0x1ad363['getFirstRange']();if(_0x1365dc['containsRange'](_0x174e98,!0x0))return null;_0x1576b9=_0x1576b9['isBefore'](_0x1365dc['start'])?_0x1576b9:_0x1365dc['start'],_0x5da1cf=_0x5da1cf['isAfter'](_0x1365dc['end'])?_0x5da1cf:_0x1365dc['end'],_0x4ee39f?_0x1365dc['start']['isBefore'](_0x4ee39f['getFirstRange']()['start'])?(_0x4ee39f['removeMarkers'](),_0x4ee39f=_0x1ad363):_0x1ad363['removeMarkers']():_0x4ee39f=_0x1ad363;}const _0x314c1e=this['_model']['createRange'](_0x1576b9,_0x5da1cf);if(_0x4ee39f)this['_setSuggestionRange'](_0x4ee39f,_0x314c1e);else{const _0x2eb5aa=_0x524896(),_0x1c0833=_0x5ed1cf['id'];this['_setSuggestionData']({'id':_0x2eb5aa,'type':'formatInline:'+_0x11f6d8,'data':_0x7aa0fe,'createdAt':new Date(),'authorId':_0x1c0833,'attributes':_0x16d397}),this['_addSuggestionMarker']('formatInline:'+_0x11f6d8,_0x2eb5aa,_0x1c0833,_0x314c1e);}}return null;}['markBlockFormat'](_0x5ee864,_0x20063f,_0x3b35a0=[],_0x413e3d=null,_0x22345d={}){_0x20063f['formatGroupId']||(_0x20063f['formatGroupId']=_0x20063f['commandName']),_0x20063f['multipleBlocks']=_0x5ee864['is']('range'),_0x413e3d=_0x413e3d||Gt(_0x20063f);const _0x4db999=_0x3b35a0['map'](_0x477c4a=>Lt(_0x477c4a,this['_model'])),_0x5bf274=_0x5ee864['is']('range')?_0x5ee864:Lt(_0x5ee864,this['_model']);if('never'===this['_trackFormatChanges']){const _0x41ff85=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x413e3d,'accept');return this['forceDefaultExecution'](()=>_0x41ff85([_0x5bf274],_0x20063f,_0x22345d)),null;}_0x4db999['push'](_0x5bf274);let _0x44d5ad=!0x0;for(const _0x3d58b5 of _0x4db999)if(!this['_rangeIsInLocalUserInsertion'](_0x3d58b5)){_0x44d5ad=!0x1;break;}if(_0x44d5ad&&'always'!==this['_trackFormatChanges']){const _0x487d0d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x413e3d,'accept');return this['forceDefaultExecution'](()=>_0x487d0d([_0x5bf274],_0x20063f,_0x22345d)),null;}let _0x3737d6=null,_0x5171a6=_0x5bf274['start'],_0x4d5965=_0x5bf274['end'];for(const {suggestion:_0x5638c3,meta:_0x151ae8}of this['_findSuggestions'](_0x5bf274,'formatBlock')){if(!_0x151ae8['isOwn'])continue;if(_0x151ae8['isNextTo']||_0x151ae8['containsRangeInObject']||_0x151ae8['isInsideObject'])continue;if(_0x5638c3['data']['formatGroupId']!=_0x20063f['formatGroupId'])continue;if(!qt(_0x5638c3,_0x22345d))continue;const _0x831087=_0x5638c3['getFirstRange']();if(_0x5638c3['subType']==_0x413e3d){if(_0x831087['containsRange'](_0x5bf274,!0x0))return null;_0x5171a6=_0x5171a6['isBefore'](_0x831087['start'])?_0x5171a6:_0x831087['start'],_0x4d5965=_0x4d5965['isAfter'](_0x831087['end'])?_0x4d5965:_0x831087['end'],_0x3737d6?_0x831087['start']['isBefore'](_0x3737d6['getFirstRange']()['start'])?(_0x3737d6['removeMarkers'](),_0x3737d6=_0x5638c3):_0x5638c3['removeMarkers']():_0x3737d6=_0x5638c3;}else{const _0x67de22=_0x5bf274['getIntersection'](_0x831087);this['_cutOutSuggestionMarker'](_0x5638c3,_0x67de22);}}const _0x39695e=this['editor']['plugins']['get']('Users')['me'],_0xf88612=_0x524896(),_0x13e996=_0x39695e['id'];if(_0x3737d6)return this['_setSuggestionRange'](_0x3737d6,this['_model']['createRange'](_0x5171a6,_0x4d5965)),_0x3737d6;{const _0x8b292e=this['_setSuggestionData']({'id':_0xf88612,'type':'formatBlock:'+_0x413e3d,'data':_0x20063f,'createdAt':new Date(),'authorId':_0x13e996,'attributes':_0x22345d});return this['_addSuggestionMarker']('formatBlock:'+_0x413e3d,_0xf88612,_0x13e996,this['_model']['createRange'](_0x5171a6,_0x4d5965)),_0x8b292e;}}['markMultiRangeBlockFormat'](_0x39b7d9,_0x321682,_0x58912f=[],_0x4d8514=null,_0x45a1c5={}){_0x321682['formatGroupId']||(_0x321682['formatGroupId']=_0x321682['commandName']);const _0x4036c5=_0x39b7d9[0x0];_0x321682['multipleBlocks']=_0x4036c5['is']('range'),_0x4d8514=_0x4d8514||Gt(_0x321682);const _0x17ad69=_0x58912f['map'](_0x5d2dba=>Lt(_0x5d2dba,this['_model'])),_0x475acd=_0x4036c5['is']('range')?_0x39b7d9:_0x39b7d9['map'](_0x5bc271=>Lt(_0x5bc271,this['_model']));if('never'===this['_trackFormatChanges']){const _0x434103=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d8514,'accept');return this['forceDefaultExecution'](()=>_0x434103(_0x475acd,_0x321682,_0x45a1c5)),null;}_0x17ad69['push'](..._0x475acd);let _0x2c3925=!0x0;for(const _0x766e14 of _0x17ad69)if(!this['_rangeIsInLocalUserInsertion'](_0x766e14)){_0x2c3925=!0x1;break;}if(_0x2c3925&&'always'!==this['_trackFormatChanges']){const _0x4b6e48=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d8514,'accept');return this['forceDefaultExecution'](()=>_0x4b6e48(_0x475acd,_0x321682,_0x45a1c5)),null;}const _0x1dc5d7=this['editor']['plugins']['get']('Users')['me'];for(const _0x46e4cc of this['getSuggestions']()){if(_0x46e4cc['author']['id']!=_0x1dc5d7['id'])continue;if('formatBlock'!=_0x46e4cc['type']||_0x46e4cc['data']['formatGroupId']!=_0x321682['formatGroupId'])continue;if(!qt(_0x46e4cc,_0x45a1c5))continue;const _0x1feb2a=_0x46e4cc['subType']==_0x4d8514;for(let _0x3d117d=0x0;_0x3d117d<_0x475acd['length'];_0x3d117d++){const _0x32c8a9=_0x475acd[_0x3d117d];for(const _0xdfade5 of _0x46e4cc['getMarkers']()){const _0x32f474=_0xdfade5['getRange']();if(_0x32c8a9['isEqual'](_0x32f474)){_0x1feb2a?(_0x475acd['splice'](_0x3d117d,0x1),_0x3d117d--):_0x46e4cc['removeMarker'](_0xdfade5['name']);break;}}}}if(0x0==_0x475acd['length'])return null;const _0x5a4e04=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d8514,'join');for(const _0x5a7b2c of this['getSuggestions']())if(_0x5a7b2c['author']['id']==_0x1dc5d7['id']&&'formatBlock'==_0x5a7b2c['type']&&_0x5a7b2c['data']['formatGroupId']==_0x321682['formatGroupId']&&_0x5a7b2c['subType']==_0x4d8514&&qt(_0x5a7b2c,_0x45a1c5)&&(_0x5a4e04(_0x5a7b2c['getRanges'](),_0x475acd)||_0x5a4e04(_0x475acd,_0x5a7b2c['getRanges']()))){for(const _0x2b64c8 of _0x475acd)_0x5a7b2c['addRange'](_0x2b64c8);return _0x5a7b2c;}const _0x51bd7c=_0x524896(),_0x4046e6=_0x1dc5d7['id'],_0x3b564d='formatBlock:'+_0x4d8514,_0x23ee8a=this['_setSuggestionData']({'id':_0x51bd7c,'type':_0x3b564d,'data':_0x321682,'createdAt':new Date(),'authorId':_0x4046e6,'attributes':_0x45a1c5});for(const _0x55eaa3 of _0x475acd)this['_addSuggestionMarker'](_0x3b564d,_0x51bd7c,_0x4046e6,_0x55eaa3,u['getMultiRangeId']());return _0x23ee8a;}['markDeletion'](_0x3640ce,_0x4d6505=null,_0x1ad11b={}){if(_0x3640ce['isCollapsed'])return null;const _0x4b5f45=this['editor']['plugins']['get']('Users')['me'],_0x28664b=new _0x4f29af(_0x3640ce['start'],_0x3640ce['end']);for(const {suggestion:_0x4de37a,meta:_0xdec3d3}of this['_findSuggestions'](_0x28664b,'insertion'))if(_0xdec3d3['isOwn']&&!_0xdec3d3['isNextTo']){if(_0x4de37a['isMultiRange']){const _0x3166b2=_0x4de37a['getRanges']()['filter'](_0x1f38d4=>'$graveyard'!=_0x1f38d4['root']['rootName']);_0x3166b2['every'](_0x3fe2b1=>_0x28664b['containsRange'](_0x3fe2b1,!0x0))&&_0x4de37a['discard']();if(_0x3166b2['some'](_0x3ad9c5=>_0x3ad9c5['containsRange'](_0x28664b,!0x0))){const _0x308116=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d6505,'accept');return this['forceDefaultExecution'](()=>_0x308116([_0x28664b],null,_0x1ad11b)),null;}}else{const _0xc80b5=_0x28664b['getIntersection'](_0x4de37a['getFirstRange']());null!==_0xc80b5&&_0x4de37a['_onDiscard']([_0xc80b5],null,_0x1ad11b);}}if(_0x28664b['detach'](),_0x28664b['isCollapsed']||'$graveyard'==_0x28664b['root']['rootName'])return null;let _0x3a1faf=null,_0x4e6caf=_0x28664b['start'],_0x58f786=_0x28664b['end'];const _0x2eeb83=this['_findSuggestions'](_0x28664b,'deletion');for(const {suggestion:_0x23abb2,meta:_0x357736}of _0x2eeb83){const _0x27e79a=this['_model']['createRange'](_0x4e6caf,_0x58f786);if(_0x357736['isOwn']&&(this['_mergeNestedSuggestions']||!_0x357736['containsRangeInObject']&&!_0x357736['isInsideObject'])){if(_0x23abb2['isMultiRange']){if(!qt(_0x23abb2,_0x1ad11b))continue;let _0x14b4a0=!0x0;for(const _0x16296c of _0x23abb2['getRanges']()){if(_0x16296c['containsRange'](_0x27e79a,!0x0))return _0x23abb2;_0x27e79a['containsRange'](_0x16296c)||(_0x14b4a0=!0x1);}_0x14b4a0&&_0x23abb2['discard']();}else{const _0x33da7d=_0x23abb2['getFirstRange']();if(_0x33da7d['containsRange'](_0x27e79a,!0x0))return _0x23abb2;if(!qt(_0x23abb2,_0x1ad11b)){_0x27e79a['containsRange'](_0x33da7d)?_0x23abb2['removeMarkers']():_0x33da7d['containsPosition'](_0x4e6caf)?_0x4e6caf=_0x33da7d['end']:_0x33da7d['containsPosition'](_0x58f786)&&(_0x58f786=_0x33da7d['start']);continue;}_0x4e6caf=_0x4e6caf['isBefore'](_0x33da7d['start'])?_0x4e6caf:_0x33da7d['start'],_0x58f786=_0x58f786['isAfter'](_0x33da7d['end'])?_0x58f786:_0x33da7d['end'],_0x1ad11b=Object['assign']({},_0x23abb2['attributes']),_0x3a1faf?_0x33da7d['start']['isBefore'](_0x3a1faf['getFirstRange']()['start'])?(_0x3a1faf['removeMarkers'](),_0x3a1faf=_0x23abb2):_0x23abb2['removeMarkers']():_0x3a1faf=_0x23abb2;}}}if(_0x3a1faf)return this['_setSuggestionRange'](_0x3a1faf,this['_model']['createRange'](_0x4e6caf,_0x58f786)),_0x3a1faf;{const _0x149715=_0x524896(),_0x4f18b4=this['_model']['createRange'](_0x4e6caf,_0x58f786),_0x1a1940=_0x4b5f45['id'],_0x426bec=_0x4d6505?'deletion:'+_0x4d6505:'deletion',_0x53802a=this['_setSuggestionData']({'id':_0x149715,'type':_0x426bec,'createdAt':new Date(),'authorId':_0x1a1940,'attributes':_0x1ad11b});return this['_addSuggestionMarker'](_0x426bec,_0x149715,_0x1a1940,_0x4f18b4),_0x53802a;}}['markMultiRangeDeletion'](_0x468413,_0xf0f9df='multi',_0x45d62e={}){const _0x5456e5=this['editor']['plugins']['get']('Users')['me'],_0x62db58=_0x468413['map'](_0x51e7e2=>new _0x4f29af(_0x51e7e2['start'],_0x51e7e2['end'])),_0x36551e=new Set();for(const {suggestion:_0x5744c7,meta:_0x324746}of this['_findSuggestions'](_0x62db58,'insertion'))_0x324746['isOwn']&&!_0x324746['isNextTo']&&_0x36551e['add'](_0x5744c7);for(const _0x3f7ed2 of _0x36551e)if(_0x3f7ed2['isMultiRange']){const _0x598587=_0x3f7ed2['getRanges']();(!_0x3f7ed2['attributes']||!_0x3f7ed2['attributes']['skipNestingCheck'])&&(_0x598587['every'](_0x1bb9bb=>_0x62db58['some'](_0x108268=>_0x108268['containsRange'](_0x1bb9bb,!0x0)))&&_0x3f7ed2['discard']());if(_0x62db58['every'](_0x5e6765=>_0x598587['some'](_0x1f8d17=>_0x1f8d17['containsRange'](_0x5e6765,!0x0)))){const _0x2152d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf0f9df,'accept');return this['forceDefaultExecution'](()=>_0x2152d6(_0x468413,null,_0x45d62e)),null;}}else{const _0x50af55=_0x3f7ed2['getFirstRange']();_0x62db58['some'](_0x461b6f=>_0x461b6f['containsRange'](_0x50af55,!0x0))&&_0x3f7ed2['discard']();if(_0x62db58['every'](_0x50aa80=>_0x50af55['containsRange'](_0x50aa80,!0x0))){const _0x457129=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf0f9df,'accept');return this['forceDefaultExecution'](()=>_0x457129(_0x62db58,null,_0x45d62e)),null;}}const _0x5661cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf0f9df,'join');let _0x37c69b=null;for(const _0x42540a of this['getSuggestions']())if(_0x42540a['author']['id']==_0x5456e5['id']&&_0x42540a['isInContent']&&'deletion'==_0x42540a['type']&&_0x42540a['subType']==_0xf0f9df&&qt(_0x42540a,_0x45d62e)&&(_0x5661cf(_0x42540a['getRanges'](),_0x62db58)||_0x5661cf(_0x62db58,_0x42540a['getRanges']()))){if(_0x37c69b){if(_0x42540a['commentThread']&&_0x42540a['commentThread']['length'])continue;for(const _0x4c41f9 of _0x42540a['getRanges']())_0x37c69b['isIntersectingWithRange'](_0x4c41f9)||_0x37c69b['addRange'](_0x4c41f9);_0x42540a['removeMarkers']();}else{_0x37c69b=_0x42540a;for(const _0x47e2f8 of _0x62db58)_0x42540a['isIntersectingWithRange'](_0x47e2f8)||_0x42540a['addRange'](_0x47e2f8);}}if(_0x37c69b)return _0x37c69b;_0x36551e['clear']();for(const {suggestion:_0x325f7d,meta:_0x28c283}of this['_findSuggestions'](_0x62db58,'deletion'))_0x28c283['isOwn']&&(this['_mergeNestedSuggestions']||!_0x28c283['containsRangeInObject']&&!_0x28c283['isInsideObject'])&&qt(_0x325f7d,_0x45d62e)&&_0x36551e['add'](_0x325f7d);for(const _0x11bdf5 of _0x36551e){const _0x35ffd5=_0x11bdf5['getRanges']();if(!_0x45d62e||!_0x45d62e['skipNestingCheck']){if(_0x62db58['every'](_0x2752ff=>_0x35ffd5['some'](_0x1bc9e9=>_0x1bc9e9['containsRange'](_0x2752ff,!0x0))))return _0x11bdf5;}(!_0x11bdf5['attributes']||!_0x11bdf5['attributes']['skipNestingCheck'])&&(_0x35ffd5['every'](_0x3f823e=>_0x62db58['some'](_0x1beda2=>_0x1beda2['containsRange'](_0x3f823e,!0x0)))&&_0x11bdf5['discard']());}const _0x42e6db=_0x524896(),_0x3af9d9=_0x5456e5['id'],_0x5783a2='deletion:'+_0xf0f9df,_0x444ed5=this['_setSuggestionData']({'id':_0x42e6db,'type':_0x5783a2,'createdAt':new Date(),'authorId':_0x3af9d9,'attributes':_0x45d62e});for(const _0x33a91b of _0x62db58)_0x33a91b['detach'](),_0x33a91b['isCollapsed']||'$graveyard'==_0x33a91b['root']['rootName']||this['_addSuggestionMarker'](_0x5783a2,_0x42e6db,_0x3af9d9,_0x33a91b,u['getMultiRangeId']());return _0x444ed5;}['markAttributeChange'](_0x28bf89,_0x2435b8,_0x5286cc,_0x3b4c1e,_0x4b2491){if(_0x28bf89['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x156075=this['editor']['plugins']['get']('Users')['me']['id'],_0x3129b9=Array['from'](this['_suggestions']['values']())['filter'](_0x30329c=>'attribute'==_0x30329c['type']&&_0x30329c['data']['key']==_0x2435b8&&_0x30329c['isIntersectingWithRange'](_0x28bf89));if('default'===this['_trackFormatChanges']){const _0x3ea814=this['_findSuggestions'](_0x28bf89,'insertion')['filter'](({meta:_0x46210e})=>_0x46210e['isOwn']&&!_0x46210e['isInsideObject']&&!_0x46210e['isNextTo'])['map'](({suggestion:_0x5954db})=>_0x5954db);_0x3129b9['unshift'](..._0x3ea814);}const _0x11dd61=new Map([[_0x28bf89,_0x5286cc]]);for(const _0x14ec46 of _0x3129b9){const _0x4874f6='attribute'==_0x14ec46['type']?_0x14ec46['data']['oldValue']:void 0x0,_0x471f9f=_0x14ec46['getFirstRange'](),_0x25d023=Array['from'](_0x11dd61['keys']())['find'](_0x30e4c9=>_0x30e4c9['isIntersecting'](_0x471f9f));if(!_0x25d023)continue;const _0x419f47=_0x25d023['getDifference'](_0x471f9f);this['_isBlockAttribute'](_0x2435b8)&&'insertion'==_0x14ec46['type']&&0x0!=_0x419f47['length']||(_0x11dd61['delete'](_0x25d023),_0x419f47['forEach'](_0x57a2d5=>{_0x11dd61['set'](_0x57a2d5,_0x5286cc);}),'insertion'!=_0x14ec46['type']&&_0x4874f6!=_0x3b4c1e&&_0x11dd61['set'](_0x25d023['getIntersection'](_0x471f9f),_0x4874f6));}const _0x169fe1=[];for(const [_0x38ec6f,_0x216a03]of _0x11dd61){const _0x829275=_0x524896(),_0x47c444={'key':_0x2435b8,'oldValue':_0x216a03,'newValue':_0x3b4c1e};_0x2435b8['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':_0x2435b8});const _0x144419=('attribute:'+(_0x2435b8+'|'+Gt({'newValue':_0x3b4c1e})))['substring'](0x0,0x3c),_0x480b71=this['_setSuggestionData']({'id':_0x829275,'type':_0x144419,'data':_0x47c444,'createdAt':new Date(),'authorId':_0x156075,'attributes':_0x4b2491});_0x169fe1['push'](_0x480b71),this['_addSuggestionMarker'](_0x144419,_0x829275,_0x156075,_0x38ec6f);}return _0x169fe1;}['enableDefaultAttributesIntegration'](_0x18f525){this['enableCommand'](_0x18f525,(_0x554c13,..._0x430fa8)=>{this['_recordAttributeChanges'](()=>{_0x554c13(..._0x430fa8);});});}['registerBlockAttribute'](_0x19bffa){this['_blockAttributeKeys']['add'](_0x19bffa);}['registerInlineAttribute'](_0xae31a8){this['_inlineAttributeKeys']['add'](_0xae31a8);}['_getAttributeKey'](_0xc869b8){return'attribute'==_0xc869b8['type']?_0xc869b8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5d4cec,_0x127d57){const _0x2e7aa8=_0x5d4cec['getFirstMarker']();this['_model']['change'](_0x35f9d9=>{_0x35f9d9['updateMarker'](_0x2e7aa8,{'range':_0x127d57});});}['_addThreadToSuggestion'](_0x2d1511){const _0x353afd=_0x2d1511['id'],_0x421302=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x353afd)||this['_commentsRepository']['addCommentThread']({'channelId':_0x421302,'threadId':_0x353afd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4c0127=this['_commentsRepository']['getCommentThread'](_0x353afd);_0x4c0127['unbind']('isRemovable'),_0x4c0127['isRemovable']=!0x1,_0x2d1511['commentThread']=_0x4c0127;}['_checkSuggestionCorrectness'](_0x236d21,_0x512df1,_0x2e67c9,_0x8f2302){if(_0x236d21['type']!=_0x512df1||_0x236d21['subType']!=_0x2e67c9||_0x236d21['creator']['id']!=_0x8f2302)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3f354f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1f3b2e,_0x5142f0){const _0x29864b=_0x1f3b2e['getFirstRange']();if(_0x5142f0['isEqual'](_0x29864b))_0x1f3b2e['removeMarkers']();else{if(_0x29864b['containsRange'](_0x5142f0)){const _0x67cedc=this['_model']['createPositionAt'](_0x5142f0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f3b2e,this['_model']['createRange'](_0x29864b['start'],_0x67cedc));const _0x4a8fd=_0x524896(),_0x359629=_0x1f3b2e['creator']['id'],_0x45fc08=_0x1f3b2e['type']+':'+_0x1f3b2e['subType'];this['_setSuggestionData']({'id':_0x4a8fd,'type':_0x45fc08,'createdAt':new Date(),'authorId':_0x359629,'data':_0x1f3b2e['data'],'attributes':_0x1f3b2e['attributes']});const _0x4262bc=this['_model']['createPositionAt'](_0x5142f0['end']['parent'],'after'),_0x6bab7a=this['_model']['createRange'](_0x4262bc,_0x29864b['end']);this['_addSuggestionMarker'](_0x45fc08,_0x4a8fd,_0x359629,_0x6bab7a);}else{if(_0x29864b['containsPosition'](_0x5142f0['start'])){const _0x5962d8=this['_model']['createPositionAt'](_0x5142f0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f3b2e,this['_model']['createRange'](_0x29864b['start'],_0x5962d8));}else{const _0x587822=this['_model']['createPositionAt'](_0x5142f0['end']['parent'],'after');this['_setSuggestionRange'](_0x1f3b2e,this['_model']['createRange'](_0x587822,_0x29864b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x300dd9){for(const {suggestion:_0x5c8576,meta:_0x5673fd}of this['_findSuggestions'](_0x300dd9,'insertion')){if(!_0x5673fd['isOwn'])continue;const _0x36e885=_0x5c8576['getRanges']();for(const _0x3d0bff of _0x36e885)if(!_0x300dd9['getDifference'](_0x3d0bff)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x22485c){const _0xf535c=this['editor']['plugins']['get']('Users')['getUser'](_0x22485c);if(!_0xf535c)throw new _0x3f354f('track-changes-user-not-found',this);return _0xf535c;}['_getExternalAuthor'](_0x5cf0e9){const _0x356c18=this['editor']['plugins']['get']('Users'),_0x775d0d=_0xc116ba('external:'+_0x5cf0e9),_0x3d079a=_0x356c18['getUser'](_0x775d0d);return _0x3d079a||_0x356c18['addUser']({'id':_0x775d0d,'name':_0x5cf0e9});}['_createSuggestion'](_0x4b43ca,_0x4140b9,_0x27122c,_0x71e486,_0x3d6cdf){const _0x1f0c31=this['_getAuthorFromId'](_0x71e486),_0x2bb6a4=this['_suggestionFactory']['buildSuggestion'](_0x4b43ca,_0x4140b9,_0x27122c,_0x1f0c31,_0x3d6cdf,_0x5bba12=>{this['_updateSuggestionData'](_0x27122c,{'attributes':_0x5bba12});const _0x3c948d=this['getSuggestion'](_0x27122c);this['_joinWithAdjacentSuggestions'](new Set([_0x3c948d])),this['_refreshSuggestionsChain'](new Set([_0x3c948d]));});return this['listenTo'](_0x2bb6a4,'accept',()=>{this['_updateSuggestionData'](_0x27122c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2bb6a4,'discard',()=>{this['_updateSuggestionData'](_0x27122c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x27122c,_0x2bb6a4),this['_suggestionState']['set'](_0x2bb6a4,'notReady'),_0x2bb6a4;}['_splitMarkerName'](_0x369c9b){const _0x3ebb12=_0x369c9b['split'](':');return{'group':_0x3ebb12[0x0],'type':_0x3ebb12[0x1],'subType':_0x3ebb12['length']>=0x5?_0x3ebb12[0x2]:null,'id':_0x3ebb12['length']<0x5?_0x3ebb12[0x2]:_0x3ebb12[0x3],'authorId':_0x3ebb12['length']<0x5?_0x3ebb12[0x3]:_0x3ebb12[0x4],'markerCount':0x6==_0x3ebb12['length']?_0x3ebb12[0x5]:null};}['_breakSuggestionMarker'](_0xd3896a,_0x2ac97d,_0x2891d6){const _0x1bad71=_0xd3896a['getFirstRange'](),_0x124ce7=_0x1bad71['start'],_0x8f7c36=_0x1bad71['end'];this['_setSuggestionRange'](_0xd3896a,this['_model']['createRange'](_0x124ce7,_0x2ac97d));const _0x2b0b33=_0x524896(),_0x52f5e1=_0xd3896a['creator']['id'],_0x34e568=_0xd3896a['type']+(_0xd3896a['subType']?':'+_0xd3896a['subType']:'');this['_setSuggestionData']({'id':_0x2b0b33,'type':_0x34e568,'createdAt':new Date(),'authorId':_0x52f5e1,'originalSuggestionId':_0xd3896a['id'],'attributes':_0xd3896a['attributes'],'data':_0xd3896a['data']});const _0x5d08d0=this['_getAttributeKey'](_0xd3896a);('formatBlock'==_0xd3896a['type']||_0x5d08d0&&this['_isBlockAttribute'](_0x5d08d0))&&(_0x2891d6=this['_model']['createPositionBefore'](_0x2891d6['parent'])),this['_addSuggestionMarker'](_0x34e568,_0x2b0b33,_0x52f5e1,this['_model']['createRange'](_0x2891d6,_0x8f7c36));}['_findSuggestions'](_0x1a3650,_0x7317eb=null){const _0x44bde3=[],_0x1336ea=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1a3650)||(_0x1a3650=[_0x1a3650]);for(const _0x21cbb0 of this['getSuggestions']()){if(!_0x21cbb0['isInContent'])continue;if(_0x7317eb&&_0x21cbb0['type']!=_0x7317eb)continue;let _0x411062=!0x1;for(const _0x142e1a of _0x21cbb0['getRanges']()){for(const _0x393756 of _0x1a3650){const _0x1b3b6e=_0x393756['start']['isEqual'](_0x142e1a['end'])||_0x393756['end']['isEqual'](_0x142e1a['start']);if(_0x1b3b6e||_0x393756['getIntersection'](_0x142e1a)){const _0x37bf02=_0x393756['containsRange'](_0x142e1a)&&Ot(this['_model']['schema'],_0x142e1a['start'],_0x393756),_0x22fa24=_0x142e1a['containsRange'](_0x393756)&&Ot(this['_model']['schema'],_0x393756['start'],_0x142e1a);_0x44bde3['push']({'suggestion':_0x21cbb0,'meta':{'isOwn':_0x1336ea==_0x21cbb0['author'],'isNextTo':_0x1b3b6e,'isInsideObject':_0x37bf02,'containsRangeInObject':_0x22fa24}}),_0x411062=!0x0;break;}}if(_0x411062)break;}}return _0x44bde3;}['_addSuggestionMarker'](_0x1d3bbd,_0x276956,_0x40e0e6,_0x35f99b,_0x47b581){this['_model']['change'](_0x4ea24f=>{let _0x1af55a='suggestion:'+_0x1d3bbd+':'+_0x276956+':'+_0x40e0e6;_0x47b581&&(_0x1af55a=_0x1af55a+':'+_0x47b581),_0x4ea24f['addMarker'](_0x1af55a,{'range':_0x35f99b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ce9d3){const _0x33b190=_0x3ce9d3['previous'],_0x4d76b7=_0x3ce9d3['next'];_0x3ce9d3['previous']=null,_0x3ce9d3['next']=null,null!=_0x33b190&&_0x33b190['next']==_0x3ce9d3&&(_0x33b190['next']=_0x4d76b7),null!=_0x4d76b7&&_0x4d76b7['previous']==_0x3ce9d3&&(_0x4d76b7['previous']=_0x33b190),'ready'==this['_suggestionState']['get'](_0x3ce9d3)&&(this['_suggestionState']['set'](_0x3ce9d3,'removed'),this['fire']('suggestionUnloaded',_0x3ce9d3,_0x33b190,_0x4d76b7));}['_setSuggestionData'](_0x1fcd1e){const _0x509964=_0x1fcd1e['id'],_0x517715=this['addSuggestionData'](_0x1fcd1e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1b0345=this['editor']['plugins']['get']('PendingActions'),_0x3919a5=_0x517715['hasComments'],_0x1c408e=_0x517715['subType']?_0x517715['type']+':'+_0x517715['subType']:_0x517715['type'],_0x565c75=this['editor']['locale'],_0x548ef3=_0x1b0345['add'](o(_0x565c75,'PENDING_ACTION_SUGGESTION')),_0x630422={'id':_0x509964,'type':_0x1c408e,'hasComments':_0x3919a5,'data':_0x1fcd1e['data']||null,'originalSuggestionId':_0x1fcd1e['originalSuggestionId']||null,'attributes':_0x517715['attributes']};this['_adapter']['addSuggestion'](_0x630422)['then'](_0x5698f7=>{_0x517715['_saved']=!0x0,_0x1b0345['remove'](_0x548ef3),_0x5698f7&&_0x5698f7['createdAt']&&(this['_suggestions']['get'](_0x509964)['createdAt']=_0x5698f7['createdAt']);})['catch'](_0x39b1cb=>{throw _0x4f9a07('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x517715['discard']();}),_0x517715['stopListening'](),this['_suggestions']['delete'](_0x517715['id']),this['_suggestionState']['delete'](_0x517715),_0x39b1cb;});}return _0x517715;}['_isBlockAttribute'](_0x2ff0a1){return this['_blockAttributeKeys']['has'](_0x2ff0a1);}['_updateSuggestionData'](_0x110c61,_0x50e575){const _0x2b1351=this['editor']['plugins']['get']('PendingActions'),_0x32400d=this['getSuggestion'](_0x110c61);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x32400d['_saved']){const _0x48baca=_0x2b1351['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x110c61,_0x50e575)['then'](()=>{_0x2b1351['remove'](_0x48baca);});}else _0x32400d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x110c61,_0x50e575);});}}['_getSuggestionData'](_0x1a6c11){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3f354f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1a6c11);}['_handleNewSuggestionMarker'](_0x32146f){const {id:_0x5d1468,type:_0x370800,subType:_0x3c24a4,authorId:_0x3da5fc}=this['_splitMarkerName'](_0x32146f),_0x571802=this['_suggestions']['get'](_0x5d1468)||this['_createSuggestion'](_0x370800,_0x3c24a4,_0x5d1468,_0x3da5fc,{});switch(this['_checkSuggestionCorrectness'](_0x571802,_0x370800,_0x3c24a4,_0x3da5fc),this['_suggestionState']['get'](_0x571802)){case'notReady':this['_getSuggestionData'](_0x5d1468)['then'](_0x583372=>{let _0x51ce52=Promise['resolve']();_0x583372['hasComments']&&(_0x51ce52=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5d1468})),_0x51ce52['then'](()=>{this['addSuggestionData'](_0x583372)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x571802,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5d1468,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x571802,'ready'),this['fire']('suggestionLoaded',_0x571802);break;case'ready':this['fire']('suggestionChanged',_0x571802);}return _0x571802['addMarkerName'](_0x32146f),_0x571802;}['_refreshSuggestionsChain'](_0x105208){const _0xb69bc4=Array['from'](_0x105208),_0xd42137=_0xb69bc4['filter'](_0x5a463d=>'attribute'==_0x5a463d['type']);this['_refreshAttributeSuggestionsChain'](_0xd42137);const _0x576ef8=_0xb69bc4['filter'](_0x4faa0a=>!_0x4faa0a['isMultiRange']&&'attribute'!=_0x4faa0a['type']),_0x14614e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b9948=>!_0x5b9948['isMultiRange']&&'attribute'!=_0x5b9948['type']),_0x264321=_0x14614e['filter'](_0x518be2=>!_0x105208['has'](_0x518be2)),_0x16f6f9=new Map(_0x14614e['map'](_0x28fb1e=>[_0x28fb1e,this['_suggestionFactory']['getSuggestionCallback'](_0x28fb1e['type'],_0x28fb1e['subType'],'chain')])),_0x3a07d6=new Map(_0x14614e['map'](_0x576a5c=>[_0x576a5c,_0x576a5c['getFirstRange']()])),_0x467336=new Set(),_0x2bc6ff=new Set();for(let _0x5f3358=0x0;_0x5f3358<_0x576ef8['length'];_0x5f3358++)_0x45d46a(_0x576ef8[_0x5f3358],_0x576ef8,_0x5f3358+0x1);for(let _0x4ddfae=0x0;_0x4ddfae<_0x576ef8['length'];_0x4ddfae++)_0x45d46a(_0x576ef8[_0x4ddfae],_0x264321,0x0);const _0x24da36=new Set();for(let _0x19c71b=0x0;_0x19c71b<_0x576ef8['length'];_0x19c71b++){const _0xaf42bd=_0x576ef8[_0x19c71b];!_0x2bc6ff['has'](_0xaf42bd)&&_0xaf42bd['previous']&&(_0x24da36['add'](_0xaf42bd['previous']),_0xaf42bd['previous']['next']===_0xaf42bd&&(_0xaf42bd['previous']['next']=null),_0xaf42bd['previous']=null),!_0x467336['has'](_0xaf42bd)&&_0xaf42bd['next']&&(_0x24da36['add'](_0xaf42bd['next']),_0xaf42bd['next']['previous']===_0xaf42bd&&(_0xaf42bd['next']['previous']=null),_0xaf42bd['next']=null);}function _0x45d46a(_0x317f03,_0x38067e,_0x45863f){for(let _0xe3cc73=_0x45863f;_0xe3cc73<_0x38067e['length'];_0xe3cc73++){const _0x1d5b21=_0x2c98af(_0x317f03,_0x38067e[_0xe3cc73]);_0x1d5b21&&(_0x1d5b21[0x0]['next']=_0x1d5b21[0x1],_0x1d5b21[0x1]['previous']=_0x1d5b21[0x0],_0x467336['add'](_0x1d5b21[0x0]),_0x2bc6ff['add'](_0x1d5b21[0x1]));}}function _0x2c98af(_0x5bcbd8,_0x224149){if(_0x5bcbd8['author']['id']!==_0x224149['author']['id'])return null;const _0x33102c=_0x16f6f9['get'](_0x5bcbd8)(_0x5bcbd8,_0x224149,_0x3a07d6['get'](_0x5bcbd8),_0x3a07d6['get'](_0x224149));if(!_0x33102c)return null;return _0x16f6f9['get'](_0x224149)(_0x5bcbd8,_0x224149,_0x3a07d6['get'](_0x5bcbd8),_0x3a07d6['get'](_0x224149))?_0x33102c[0x1]['commentThread']&&_0x33102c[0x1]['commentThread']['length']?null:_0x33102c:null;}_0x24da36['size']&&this['_refreshSuggestionsChain'](_0x24da36);}['_refreshAttributeSuggestionsChain'](_0x3873e7){if(0x0==_0x3873e7['length'])return;const _0x5f459e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a9c56=>'attribute'==_0x1a9c56['type']&&_0x1a9c56['_isDataLoaded']),_0xf1d932=[],_0x28fec4=new Map();for(const _0x22ffc1 of _0x5f459e){const _0x47ab07=_0xc116ba(_0x22ffc1['attributes']);_0x28fec4['has'](_0x47ab07)||(_0x28fec4['set'](_0x47ab07,_0xf1d932['length']),_0xf1d932['push']([]));const _0x442c89=_0x28fec4['get'](_0x47ab07);_0xf1d932[_0x442c89]['push'](_0x22ffc1);}!(function(){_0xf1d932['sort']((_0x3824d4,_0x300fe2)=>{const _0x1c7d51=_0x3824d4[0x0]['createdAt'],_0x175db1=_0x300fe2[0x0]['createdAt'];return _0x1c7d51==_0x175db1?_0x3824d4[0x0]['attributes']['groupId']<_0x300fe2[0x0]['attributes']['groupId']?-0x1:0x1:_0x1c7d51<_0x175db1?-0x1:0x1;});for(const _0x12296d of _0xf1d932)_0x12296d['sort']((_0x1e77f7,_0x3021a0)=>_0x1e77f7['id']<_0x3021a0['id']?-0x1:0x1);}());for(let _0x5cfa39=0x0;_0x5cfa39<_0xf1d932['length'];_0x5cfa39++){if(0x0==_0xf1d932[_0x5cfa39]['length'])continue;const _0x4c40cf=[];for(let _0x399095=_0x5cfa39+0x1;_0x399095<_0xf1d932['length'];_0x399095++)0x0!=_0xf1d932[_0x399095]['length']&&_0x2de88f(_0xf1d932[_0x5cfa39],_0xf1d932[_0x399095])&&_0x4c40cf['push'](_0x399095);for(const _0x47e739 of _0x4c40cf)_0xf1d932[_0x5cfa39]=_0xf1d932[_0x5cfa39]['concat'](_0xf1d932[_0x47e739]),_0xf1d932[_0x47e739]=[];}for(const _0x2786ba of _0xf1d932)for(let _0x20afa3=0x0;_0x20afa3<_0x2786ba['length'];_0x20afa3++){const _0x4e3f91=_0x2786ba[_0x20afa3+0x1]||null;_0x2786ba[_0x20afa3]['next']!==_0x4e3f91&&(_0x2786ba[_0x20afa3]['next']=_0x4e3f91);}for(const _0x4c9995 of _0xf1d932)for(let _0x52ec16=0x0;_0x52ec16<_0x4c9995['length'];_0x52ec16++){const _0x1238a8=_0x4c9995[_0x52ec16-0x1]||null;_0x4c9995[_0x52ec16]['previous']!==_0x1238a8&&(_0x4c9995[_0x52ec16]['previous']=_0x1238a8);}function _0x2de88f(_0x187846,_0x426b81){if(_0x187846[0x0]['attributes']['groupId']!==_0x426b81[0x0]['attributes']['groupId']&&_0x187846[0x0]['author']!==_0x426b81[0x0]['author'])return!0x1;if(!function(_0x506cc8,_0xaa21c1){if(!_0x506cc8['hasComments']&&!_0xaa21c1['hasComments'])return!0x0;if(_0x506cc8['hasComments']&&_0xaa21c1['hasComments'])return!0x1;if(_0x506cc8['hasComments']&&_0xaa21c1['createdAt']<_0x506cc8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xaa21c1['hasComments']&&_0x506cc8['createdAt']<_0xaa21c1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x187846[0x0],_0x426b81[0x0]))return!0x1;const _0x2793db=Tt(_0x187846[0x0]['attributes'],'groupId'),_0x2cf110=Tt(_0x426b81[0x0]['attributes'],'groupId');if(!_0x3b426a(_0x2793db,_0x2cf110))return!0x1;return!!_0x187846['every'](_0xc0664a=>_0x426b81['some'](_0x501c1e=>_0xc0664a['getFirstRange']()['isEqual'](_0x501c1e['getFirstRange']())))&&_0x426b81['every'](_0xa0f187=>_0x187846['some'](_0x493754=>_0xa0f187['getFirstRange']()['isEqual'](_0x493754['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x591fe7){const _0x594215=Array['from'](_0x591fe7),_0x298ce9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1ba382=_0x298ce9['filter'](_0x167e58=>!_0x591fe7['has'](_0x167e58)),_0x343bde=new Map(_0x594215['map'](_0x44094e=>[_0x44094e,this['_suggestionFactory']['getSuggestionCallback'](_0x44094e['type'],_0x44094e['subType'],'join')])),_0x4d97f7=new Map(_0x298ce9['map'](_0x13c48a=>[_0x13c48a,_0x13c48a['getRanges']()]));for(let _0x4e9606=0x0;_0x4e9606<_0x594215['length'];_0x4e9606++){if(_0xe16eb(this,_0x594215[_0x4e9606],_0x594215,_0x4e9606+0x1))return!0x0;}for(let _0x372972=0x0;_0x372972<_0x594215['length'];_0x372972++){if(_0xe16eb(this,_0x594215[_0x372972],_0x1ba382,0x0))return!0x0;}return!0x1;function _0xe16eb(_0x2053af,_0x3e1a7b,_0x2b9bda,_0x212bbe){for(let _0x43165e=_0x212bbe;_0x43165e<_0x2b9bda['length'];_0x43165e++){const _0x6fdcf=_0x2b9bda[_0x43165e];if(_0x6fdcf['type']!==_0x3e1a7b['type']||_0x6fdcf['author']['id']!==_0x3e1a7b['author']['id']||_0x6fdcf['subType']!==_0x3e1a7b['subType'])continue;if(!Jt(_0x3e1a7b,_0x6fdcf))continue;if('attribute'==_0x3e1a7b['type']&&_0x3e1a7b['data']['oldValue']!=_0x6fdcf['data']['oldValue'])continue;if('attribute'==_0x3e1a7b['type']&&_0x2053af['_isBlockAttribute'](_0x3e1a7b['data']['key']))continue;if('formatBlock'==_0x3e1a7b['type']){const _0x5b5754=_0x2053af['editor']['model'],_0x42cdbd=_0x3e1a7b['getContainedElement']();if(_0x42cdbd&&(_0x5b5754['schema']['isObject'](_0x42cdbd)||_0x5b5754['schema']['isLimit'](_0x42cdbd)))continue;}const _0x509971=_0x343bde['get'](_0x3e1a7b),_0x37b22c=_0x4d97f7['get'](_0x3e1a7b),_0x5389f2=_0x4d97f7['get'](_0x6fdcf),_0x75e7ef=_0x3e1a7b['commentThread']&&_0x3e1a7b['commentThread']['length'],_0x183523=_0x6fdcf['commentThread']&&_0x6fdcf['commentThread']['length'];if(!_0x75e7ef&&_0x509971(_0x5389f2,_0x37b22c))return _0x2053af['_joinSuggestions'](_0x6fdcf,_0x3e1a7b),_0x4d97f7['delete'](_0x3e1a7b),!0x0;if(!_0x183523&&_0x509971(_0x37b22c,_0x5389f2))return _0x2053af['_joinSuggestions'](_0x3e1a7b,_0x6fdcf),_0x4d97f7['delete'](_0x6fdcf),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3db881,_0x35a0ea){if(_0x3db881['isMultiRange']){for(const _0xfceb95 of _0x35a0ea['getRanges']())_0x3db881['addRange'](_0xfceb95);}else{const _0x210bee=_0x35a0ea['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3db881,this['_model']['createRange'](_0x3db881['getFirstRange']()['start'],_0x210bee));}_0x35a0ea['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4fb747,_0x1297db,_0x3f62c1){const _0x4ad1e7=_0x4fb747['startsWith']('format')||_0x4fb747['startsWith']('attribute')?'FORMATTING':_0x4fb747['toUpperCase']();return o(this['editor']['locale'],_0x1297db+'_'+_0x4ad1e7+'_SUGGESTION_ANNOUNCEMENT',_0x3f62c1);}['_initAriaMarkerChangeAnnouncements'](){const _0x2043af=this['editor'];if(!_0x2043af['ui'])return;const {ariaLiveAnnouncer:_0x37fc57}=_0x2043af['ui'];_0x36625a(this['_model'],({left:_0xd2c1f2,entered:_0x17bd0c})=>{for(const _0xbf3fc8 of _0xd2c1f2){const {group:_0x2b0947,type:_0x2e113e}=this['_splitMarkerName'](_0xbf3fc8['name']);if('suggestion'===_0x2b0947){_0x37fc57['announce'](this['_getMarkerAnnouncementText'](_0x2e113e,'LEAVE'));break;}}for(const _0x5480ca of _0x17bd0c){const {group:_0x12d13b,type:_0x54c125}=this['_splitMarkerName'](_0x5480ca['name']);if('suggestion'===_0x12d13b){_0x37fc57['announce'](this['_getMarkerAnnouncementText'](_0x54c125,'ENTER',_0x55084c(_0x21c962)));break;}}});}['_processAttributeChanges'](_0xa26536){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5dd6f1=this['editor'],_0x136906=_0x5dd6f1['model']['document']['differ']['getChanges']();if(0x0==_0x136906['length'])return!0x1;const _0x123985=[],_0x2fbbc9=_0x136906['filter'](_0x39c579=>'attribute'==_0x39c579['type']),_0x478df4=_0x136906['filter'](_0x4c32f8=>'insert'==_0x4c32f8['type']&&'$text'!=_0x4c32f8['name']),_0x358eed=_0x136906['filter'](_0x5a0870=>'remove'==_0x5a0870['type']&&'$text'!=_0x5a0870['name']);for(const _0x54d012 of _0x2fbbc9)_0x123985['push']({'key':_0x54d012['attributeKey'],'newValue':_0x54d012['attributeNewValue'],'oldValue':_0x54d012['attributeOldValue'],'range':Pt(_0x54d012['range'],_0x5dd6f1['model'])});for(const _0x25dd9b of _0x478df4){const _0x458fd8=_0x358eed['find'](_0x54b374=>_0x54b374['position']['isEqual'](_0x25dd9b['position']));_0x458fd8&&_0x123985['push']({'key':m,'newValue':_0x25dd9b['name'],'oldValue':_0x458fd8['name'],'range':_0x5dd6f1['model']['createRangeOn'](_0x25dd9b['position']['nodeAfter'])});}return 0x0!=_0x123985['length']&&this['_reduceExistingSuggestions'](_0xa26536,_0x123985);}['_processAttributeSuggestions'](_0x45dc02){let _0x2d2728=!0x1;const _0x45702b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xf289eb=>_0xf289eb['data']['newRange']&&_0xf289eb['name']['startsWith']('suggestion:attribute:'));for(const _0x2a6133 of _0x45702b){const {subType:_0x1ba375,id:_0x95ec68}=this['_splitMarkerName'](_0x2a6133['name']),_0x3e51e3=_0x1ba375['split']('|')[0x0];for(const _0x25cee6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x25cee6['id']!=_0x95ec68&&'attribute'==_0x25cee6['type']&&_0x25cee6['data']&&_0x25cee6['data']['key']==_0x3e51e3&&_0x25cee6['getFirstRange']()['isIntersecting'](_0x2a6133['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x25cee6,_0x2a6133['data']['newRange'],_0x45dc02),_0x2d2728=!0x0);}return _0x2d2728;}['_recordAttributeChanges'](_0x10fa62){this['_recordAttributeSuggestions']=!0x0,_0x10fa62();}['_isRegisteredAttribute'](_0x41c7fd){const _0x440528=this['_isBlockAttribute'](_0x41c7fd),_0x3a3af6=this['_inlineAttributeKeys']['has'](_0x41c7fd);return _0x440528||_0x3a3af6;}['_reduceExistingSuggestions'](_0x14987d,_0x19c749){if(0x0==_0x19c749['length'])return!0x1;let _0x514f74=!0x1;for(const _0x34231c of _0x19c749){const _0x47199a=this['_findSuggestions'](_0x34231c['range'],'attribute')['filter'](_0x297117=>!_0x297117['meta']['isNextTo'])['map'](_0x3786c2=>_0x3786c2['suggestion']),_0x139759=_0xc116ba({'newValue':_0x34231c['newValue']});_0x47199a['filter'](_0x1e1788=>{const [_0xb6c9bf,_0x467a1c]=_0x1e1788['subType']['split']('|');return _0xb6c9bf==_0x34231c['key']&&_0x467a1c!=_0x139759;})['forEach'](_0xd7752a=>{this['_reduceSuggestionAttributeRange'](_0xd7752a,_0x34231c['range'],_0x14987d),_0x514f74=!0x0;});}return _0x514f74;}['_reduceSuggestionAttributeRange'](_0x69a042,_0x54b97a,_0x17039c){const _0xeae653=_0x69a042['getFirstRange']()['getDifference'](_0x54b97a);0x0!==_0xeae653['length']?0x1!==_0xeae653['length']?this['_breakSuggestionMarker'](_0x69a042,_0x54b97a['start'],_0x54b97a['end']):this['_setSuggestionRange'](_0x69a042,_0xeae653[0x0]):_0x17039c['removeMarker'](_0x69a042['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x286d44){this['_editor']=_0x286d44,this['_model']=_0x286d44['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x497400,_0x37fa6d,_0x40b304,_0x44c913,_0x2790d7,_0x253759){return new u(this['_model'],{'type':_0x497400,'subType':_0x37fa6d,'id':_0x40b304,'author':_0x44c913,'creator':_0x44c913,'attributes':_0x2790d7,'onAttributesChange':_0x253759,'onAccept':(..._0x562816)=>this['getSuggestionCallback'](_0x497400,_0x37fa6d,'accept')(..._0x562816),'onDiscard':(..._0x3c1f70)=>this['getSuggestionCallback'](_0x497400,_0x37fa6d,'discard')(..._0x3c1f70)});}['registerCustomCallback'](_0x1bca45,_0xab95e1,_0x13b537,_0x59519d){const _0x185e81=_0x1bca45+':'+_0xab95e1+':'+_0x13b537;this['_customCallbacks']['set'](_0x185e81,_0x59519d);}['getSuggestionCallback'](_0x387baa,_0x1fd2e5,_0x5b24a4){const _0x545516=_0x387baa+':'+_0x1fd2e5+':'+_0x5b24a4;return this['_customCallbacks']['get'](_0x545516)||this['_defaultCallbacks']['get'](_0x387baa+':'+_0x5b24a4);}['_registerDefaultCallbacks'](){const _0x5b841d=()=>!0x1,_0x5b8711=_0x3122f2=>{_0x3122f2['sort']((_0xc6a3c5,_0x303e55)=>_0xc6a3c5['start']['isBefore'](_0x303e55['start'])?0x1:-0x1),this['_model']['change'](_0x38ed91=>{for(const _0x597b5e of _0x3122f2){let _0x4afaa1;_0x4afaa1=_0x597b5e['end']['isAtEnd']&&_0x597b5e['end']['parent']==_0x597b5e['start']['nodeAfter']?_0x38ed91['createSelection'](_0x597b5e['start']['nodeAfter'],'on'):_0x38ed91['createSelection'](_0x597b5e),this['_model']['deleteContent'](_0x4afaa1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x149ca2=(_0x3f46ae,_0x13b7b2)=>{_0x13b7b2&&this['_model']['change'](_0x29e0f0=>{const {commandName:_0x12c283,commandParams:_0x1486d7=[]}=_0x13b7b2,_0x41caf6=_0x3f46ae['map'](_0x5b76cc=>(Vt(_0x5b76cc)&&(_0x5b76cc=this['_model']['createRange'](_0x5b76cc['end'])),_0x5b76cc))['filter'](_0x3c66ab=>'$graveyard'!==_0x3c66ab['root']['rootName']);if(_0x41caf6['length']<0x1)return;const _0x3a6d50=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x200477=>_0x4f29af['fromRange'](_0x200477));_0x29e0f0['setSelection'](_0x41caf6);for(const _0x2b48af of this['_editor']['commands']['commands']())_0x2b48af['refresh']();_0x1486d7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x12c283,..._0x1486d7);const _0x1e8c74=_0x3a6d50['filter'](_0x2dcc3f=>'$graveyard'!=_0x2dcc3f['root']['rootName']);_0x1e8c74['length']>0x0&&_0x29e0f0['setSelection'](_0x1e8c74);for(const _0x3884d0 of _0x3a6d50)_0x3884d0['detach']();});},_0x4dacf7=(_0x5934f9,_0x313e3b)=>0x1==_0x5934f9['length']&&0x1==_0x313e3b['length']&&_0x5934f9[0x0]['end']['isEqual'](_0x313e3b[0x0]['start']),_0x58c74e=(_0xeb1de9,_0x520fe7,_0x5350db,_0x1ce4ed)=>Ht(_0xeb1de9,_0x520fe7,_0x5350db,_0x1ce4ed,this['_model'])?[_0xeb1de9,_0x520fe7]:Ht(_0x520fe7,_0xeb1de9,_0x1ce4ed,_0x5350db,this['_model'])?[_0x520fe7,_0xeb1de9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5b841d),this['_defaultCallbacks']['set']('insertion:discard',_0x5b8711),this['_defaultCallbacks']['set']('insertion:join',_0x4dacf7),this['_defaultCallbacks']['set']('insertion:chain',_0x58c74e),this['_defaultCallbacks']['set']('deletion:accept',_0x5b8711),this['_defaultCallbacks']['set']('deletion:discard',_0x5b841d),this['_defaultCallbacks']['set']('deletion:join',_0x4dacf7),this['_defaultCallbacks']['set']('deletion:chain',_0x58c74e),this['_defaultCallbacks']['set']('formatInline:accept',_0x149ca2),this['_defaultCallbacks']['set']('formatInline:discard',_0x5b841d),this['_defaultCallbacks']['set']('formatInline:join',_0x4dacf7),this['_defaultCallbacks']['set']('formatInline:chain',_0x5b841d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x149ca2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5b841d),this['_defaultCallbacks']['set']('formatBlock:join',_0x4dacf7),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5b841d),this['_defaultCallbacks']['set']('attribute:accept',_0x5b841d),this['_defaultCallbacks']['set']('attribute:discard',(_0x20522f,_0x503d56)=>{if(!_0x503d56)return;const _0x43316d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1a63cc=>{if(_0x503d56['key']==m)for(const _0x32813f of _0x20522f){const _0x58b11a=_0x32813f['start']['nodeAfter'],_0x584cf7=_0x503d56['oldValue'];_0x1a63cc['rename'](_0x58b11a,_0x584cf7);}else{if(_0x43316d['_isBlockAttribute'](_0x503d56['key'])){for(const _0x25ff65 of _0x20522f)void 0x0!==_0x503d56['oldValue']?_0x1a63cc['setAttribute'](_0x503d56['key'],_0x503d56['oldValue'],_0x25ff65['start']['nodeAfter']):_0x1a63cc['removeAttribute'](_0x503d56['key'],_0x25ff65['start']['nodeAfter']);}else{for(const _0x48250b of _0x20522f)_0x503d56['oldValue']?_0x1a63cc['setAttribute'](_0x503d56['key'],_0x503d56['oldValue'],_0x48250b):_0x1a63cc['removeAttribute'](_0x503d56['key'],_0x48250b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4dacf7);}}function Ot(_0x47b757,_0x1f5f81,_0x44c997){for(const _0x4cc760 of _0x1f5f81['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4cc760['root']==_0x4cc760)return!0x1;if(!_0x44c997['containsItem'](_0x4cc760))return!0x1;if(_0x47b757['isObject'](_0x4cc760)||_0x47b757['isLimit'](_0x4cc760))return!0x0;}return!0x1;}function Vt(_0x4d20cc){return _0x4d20cc['end']['parent']==_0x4d20cc['start']['nodeAfter']&&_0x4d20cc['end']['isAtStart'];}function Ut(_0x5ebe8c,_0x3532f0,_0x29587d,_0x3e54a5){const _0x3e3cce=_0x4c7617=>!_0x4c7617['item']['is']('$textProxy')&&!_0x3e54a5['isObject'](_0x4c7617['item']),_0x4a4243=_0x5ebe8c['start']['getLastMatchingPosition'](_0x3e3cce),_0x5b6216=_0x5ebe8c['end']['getLastMatchingPosition'](_0x3e3cce,{'direction':'backward'});return(!_0x5ebe8c['start']['isEqual'](_0x4a4243)||!_0x5ebe8c['end']['isEqual'](_0x5b6216))&&(_0x4a4243['isBefore'](_0x5b6216)?_0x29587d['updateMarker'](_0x3532f0,{'range':_0x29587d['createRange'](_0x4a4243,_0x5b6216)}):_0x29587d['removeMarker'](_0x3532f0),!0x0);}function Gt(_0x9b5f3f){return _0xc116ba(_0x9b5f3f);}function Ft(_0x3302db){const _0x14c30c=_0x3302db['start']['nodeAfter'];return _0x14c30c&&_0x14c30c['is']('element');}function Pt(_0x1cb3ec,_0x485835){return null==_0x1cb3ec['end']['nodeBefore']&&_0x1cb3ec['end']['parent']==_0x1cb3ec['start']['nodeAfter']?Lt(_0x1cb3ec['start']['nodeAfter'],_0x485835):_0x1cb3ec;}function Lt(_0xc30c61,_0x10be74){const _0x5e6cb3=_0x10be74['schema']['isObject'](_0xc30c61)||_0x10be74['schema']['isSelectable'](_0xc30c61);return _0x10be74['createRange'](_0x10be74['createPositionAt'](_0xc30c61,'before'),_0x5e6cb3?_0x10be74['createPositionAfter'](_0xc30c61):_0x10be74['createPositionAt'](_0xc30c61,'end'));}function Ht(_0xc7ba74,_0x3f6dd7,_0x2f91e1,_0x37d8b7,_0x419bed){if(_0xc7ba74['next'])return!0x1;if(!Jt(_0xc7ba74,_0x3f6dd7))return!0x1;if(_0x2f91e1['end']['isEqual'](_0x37d8b7['start']))return!0x0;if(_0xc7ba74['type']!=_0x3f6dd7['type'])return!0x1;if(!_0x2f91e1['end']['isTouching'](_0x37d8b7['start']))return!0x1;const _0x56cab4=_0x419bed['createRange'](_0x2f91e1['end'],_0x37d8b7['start'])['getWalker']();for(const _0x195865 of _0x56cab4)if(['elementStart','elementEnd']['includes'](_0x195865['type'])&&_0x419bed['schema']['isLimit'](_0x195865['item']))return!0x1;return!0x0;}function Jt(_0x28432e,_0x4ce613){if(!_0x28432e['_isDataLoaded']||!_0x4ce613['_isDataLoaded'])return!0x1;const _0xeabe13=new Set(Object['keys'](_0x28432e['attributes'])),_0x128f09=new Set(Object['keys'](_0x4ce613['attributes']));if(_0xeabe13['delete']('groupId'),_0x128f09['delete']('groupId'),0x0==_0xeabe13['size']&&0x0==_0x128f09['size'])return!0x0;if(_0xeabe13['size']!=_0x128f09['size'])return!0x1;const _0x55f529={..._0x28432e['attributes']},_0x5a4a88={..._0x4ce613['attributes']};return delete _0x55f529['groupId'],delete _0x5a4a88['groupId'],JSON['stringify'](_0x55f529)==JSON['stringify'](_0x5a4a88);}function qt(_0x304f8c,_0x2b00ac){const _0x580fa9=zt(_0x304f8c['attributes']),_0xb5d809=zt(_0x2b00ac);if(!_0x304f8c['_isDataLoaded'])return!0x1;for(const _0x2c1dad of Object['keys'](_0xb5d809))if(!_0x3b426a(_0x580fa9[_0x2c1dad],_0xb5d809[_0x2c1dad]))return!0x1;return!0x0;}function zt(_0x5d8311){const _0x1fae49=Object['assign']({},_0x5d8311);return delete _0x1fae49['skipNestingCheck'],delete _0x1fae49['tablePasteChainId'],_0x1fae49;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1335aa(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x15b55d,_0x36026d,_0x22fe01,_0x83bdd7){super(),this['model']=_0x36026d,this['view']=_0x22fe01,this['commentThreadController']=_0x83bdd7,this['_editor']=_0x15b55d,this['_acceptCommand']=_0x15b55d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x15b55d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x39a07b,_0x16aca4)=>_0x39a07b||_0x16aca4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x32b083=>_0x32b083&&this['_editor']['model']['canEditAt'](_0x36026d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2237ec=>_0x2237ec&&this['_editor']['model']['canEditAt'](_0x36026d['getRanges']())),this['_pendingAction']=null,_0x22fe01['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x22fe01,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x22fe01,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x22fe01,'change:isDirty',()=>{_0x22fe01['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 _0x1c6f2f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1c6f2f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x28d1c0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x316eb5,_0x474b70,_0x22ab39,_0x5a38fa){super(_0x316eb5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x545462(_0x316eb5,o(_0x316eb5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x474b70['authoredAt']),this['bind']('authoredAt')['to'](_0x474b70),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',_0x474b70,'authoredAt',this,'descriptionParts',(_0x77cd07,_0x50318c,_0x136cc9)=>{const _0x1bd532=_0x136cc9['map'](_0xf4c061=>ls(_0xf4c061['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x77cd07-0x1,_0x474b70['author']['name'],_0x50318c?_0x5a38fa['formatDateTime'](_0x50318c):'',new DOMParser()['parseFromString'](_0x1bd532,'text/html')['body']['textContent']]);}),this['focusables']=new _0x23a5d0(),this['focusTracker']=new _0x2560dd(),this['keystrokes']=new _0x8fdec2(),this['focusCycler']=new _0x3f6783({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3edf07=>_0x3edf07['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x474b70,this['_localUser']=_0x22ab39,this['_config']=_0x5a38fa,_0x5a38fa['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4484a6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3b5878}=this['_config'];this['commentsListView']=new _0x3b5878(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',_0x3704a1=>_0x3704a1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x839246,_0x3892ec)=>_0x839246||!!_0x3892ec);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x38b1e6}=this['_config'],_0x32beef=new _0x38b1e6(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x571506=_0x32beef['commentInputView'];return _0x32beef['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x571506,'value',(_0x155d34,_0x364801,_0x34ceec)=>!!_0x34ceec||_0x155d34&&!_0x364801),_0x571506['on']('submit',(_0x1f49f1,_0x479960)=>{this['fire']('addComment',_0x479960),_0x571506['editor']['setData']('');}),_0x571506['on']('cancel',()=>this['focus']()),_0x571506['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x32beef;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3f7634,_0x1ad989,_0x5a4ffe,_0xa410d9){super(_0x3f7634,_0x1ad989,_0x5a4ffe,_0xa410d9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ce388=>_0x5ce388&&_0x5ce388[0x0]?_0x5ce388[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x10344d,_0x432302)=>{let _0x32d65d='';for(const _0x4c06db of _0x10344d)_0x32d65d+='<p>'+ls(_0x4c06db['content'],_0x4c06db['color'])+'</p>';return _0x432302?_0x32d65d:_0x52eb5a(_0x32d65d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xa410d9['SuggestionView'](_0x3f7634,_0x1ad989,{'formatDateTime':_0xa410d9['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 _0x334883=this['bindTemplate'],_0x44a758=[this['suggestionView']];return this['commentsListView']&&_0x44a758['push'](this['commentsListView']),this['commentThreadInputView']&&_0x44a758['push'](this['commentThreadInputView']),_0x44a758['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x334883['if']('isActive','ck-suggestion-wrapper--active'),_0x334883['to']('type',_0x3ac5c1=>'ck-suggestion-'+_0x3ac5c1),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':_0x334883['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x44a758};}['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 _0x28d1c0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x45b8e2,_0x5b70a8,_0x186fb1){super(_0x45b8e2),this['_model']=_0x5b70a8,this['_config']=_0x186fb1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5b70a8),this['acceptButton']=this['_createButton'](o(_0x45b8e2,'Accept\x20suggestion'),_0x1ad65['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x45b8e2,'Discard\x20suggestion'),_0x1ad65['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x445161(_0x45b8e2,_0x5b70a8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x23a5d0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2560dd(),this['keystrokes']=new _0x8fdec2(),this['focusCycler']=new _0x3f6783({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x55ef49=>_0x55ef49['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5cbdf5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5cbdf5['innerHTML']=this['description'],this['on']('change:description',(_0x48a41c,_0x2f0c74,_0x392812)=>{_0x5cbdf5['innerHTML']=_0x392812;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x141c3b=this['bindTemplate'],_0xd642f4=[{'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':_0x141c3b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x141c3b['to']('authoredAt',_0x5356bc=>this['_config']['formatDateTime'](_0x5356bc))}]}]},{'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']&&_0xd642f4['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':_0xd642f4}]};}['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'](_0x4a9678,_0x3388dc,_0x193237,_0x41feed,_0x4ab844){const _0x5c308d=new _0x54c9ce(this['locale']);return _0x5c308d['set']({'label':_0x4a9678,'icon':_0x3388dc,'tooltip':!0x0,'tooltipPosition':_0x4ab844}),_0x5c308d['extendTemplate']({'attributes':{'class':_0x193237}}),_0x5c308d['on']('execute',()=>{this['fire'](_0x41feed,this['_model']['id']);}),_0x5c308d;}['_setupKeyboardNavigation'](){const _0x489553=this['element'];this['keystrokes']['listenTo'](_0x489553);for(const _0x2f5e99 of this['focusables'])this['focusTracker']['add'](_0x2f5e99['element']),this['keystrokes']['listenTo'](_0x2f5e99['element']);this['keystrokes']['set']('enter',(_0x39d240,_0x26fd14)=>{_0x489553===_0x39d240['target']&&(this['focusCycler']['focusFirst'](),_0x26fd14());}),this['keystrokes']['set']('esc',(_0x2598d1,_0x2017fa)=>{_0x489553!==_0x2598d1['target']&&(this['focus'](),_0x2017fa());});}}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 _0x560a22{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4e07e7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x43caa4){super(_0x43caa4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x35693d=this['editor']['config'];_0x35693d['define']('trackChanges.SuggestionThreadView',re),_0x35693d['define']('trackChanges.SuggestionView',ce),_0x35693d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x35693d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4a8646,_0x2a2fe7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x552338,_0x5a3c10]of this['_handleControllerBuffer']){const _0xac6b25=this['_suggestionToController']['has'](_0x552338);_0xac6b25||_0x5a3c10?_0xac6b25&&_0x5a3c10&&this['_destroyController'](_0x552338):this['_initializeController'](_0x552338);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4a8646,_0x2a2fe7);}['init'](){const _0x7471d7=this['editor'],_0x5d827e=_0x7471d7['plugins']['get']('TrackChangesEditing'),_0x39059f=_0x7471d7['plugins']['get']('Annotations'),_0x415370=_0x7471d7['plugins']['get']('EditorAnnotations'),_0x5160eb=_0x7471d7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x415370['addSourceCollector'](()=>{const _0x28f7e1=[];for(const [_0x5759fc,_0x18449c]of Array['from'](this['_suggestionToController'])){const _0x610866=_0x5759fc['getAllAdjacentSuggestions'](),_0x2c483c=[];for(const _0xadb57b of _0x610866){if(!_0xadb57b['isInContent'])continue;if(_0xadb57b['isMultiRange']){_0x2c483c['push'](..._0xadb57b['getRanges']());continue;}const _0x19467b=_0xadb57b['getFirstRange']();if(_0x2c483c['length']>0x0){const _0xdc72a=_0x2c483c[0x0]['getJoined'](_0x19467b);if(_0xdc72a){_0x2c483c[0x0]=_0xdc72a;continue;}}_0x2c483c['push'](_0x19467b);}_0x28f7e1['push']([_0x18449c['view'],_0x2c483c]);}return _0x28f7e1;}),this['listenTo'](_0x5d827e,'suggestionLoaded',(_0x19096b,_0x363556)=>{this['listenTo'](_0x363556,'change:previous',(_0x468625,_0x487890,_0x385d51,_0x24fa95)=>{_0x363556['isInContent']&&(null==_0x385d51?(this['_updateController'](_0x24fa95['head']),this['_handleSuggestionControllerDelayed'](_0x363556,!0x1)):(this['_updateController'](_0x385d51['head']),null==_0x24fa95&&this['_handleSuggestionControllerDelayed'](_0x363556,!0x0)));}),null!==_0x363556['previous']?this['_updateController'](_0x363556['head']):this['_handleSuggestionControllerDelayed'](_0x363556,!0x1);}),this['listenTo'](_0x5d827e,'suggestionUnloaded',(_0xd50ddc,_0xc440f4,_0xc0652a)=>{this['stopListening'](_0xc440f4,'change:previous'),this['_handleControllerBuffer']['delete'](_0xc440f4),this['_suggestionToController']['has'](_0xc440f4)&&this['_destroyController'](_0xc440f4),_0xc0652a&&this['_updateController'](_0xc0652a['head']);}),this['listenTo'](_0x5d827e,'suggestionChanged',(_0x4d96c4,_0xaefe94)=>{this['_updateController'](_0xaefe94);}),this['listenTo'](_0x39059f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5160eb,'addComment',(_0x5bc902,{threadId:_0x769c71,isFromAdapter:_0x21556c})=>{if(_0x21556c||!_0x5d827e['hasSuggestion'](_0x769c71))return;const _0x5c523f=_0x5d827e['getSuggestion'](_0x769c71);this['_suggestionToController']['get'](_0x5c523f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4063ba=this['editor']['plugins']['get']('Annotations'),_0x44c05d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bd0d8=Array['from'](_0x4063ba['activeAnnotations'],_0x187316=>_0x187316['innerView'])['filter'](_0x4eb28e=>this['_viewToController']['has'](_0x4eb28e)),_0x521160=[];for(const _0x45aafd of _0x2bd0d8){const _0x16b143=this['_viewToController']['get'](_0x45aafd)['model']['getAllAdjacentSuggestions']();_0x521160['push'](..._0x16b143['reduce']((_0x15d9f2,_0xd297d6)=>[..._0x15d9f2,..._0xd297d6['getMarkerNames']()],[]));}_0x44c05d['activeMarkers']=_0x521160;}['_addUIComponentsToFactory'](){const _0x50a221=this['editor'],_0x24cfab=_0x50a221['locale'],_0x343106=o(_0x24cfab,'Track\x20changes'),_0x24e780=new Wt([{'type':'switchbutton','model':new _0x3a1cb3({'withText':!0x0,'isToggleable':!0x0,'label':_0x343106,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a1cb3({'withText':!0x0,'label':o(_0x24cfab,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a1cb3({'withText':!0x0,'label':o(_0x24cfab,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a1cb3({'withText':!0x0,'label':o(_0x24cfab,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a1cb3({'withText':!0x0,'label':o(_0x24cfab,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x12791a of _0x24e780)if(me(_0x12791a)){const _0x64e8c0=_0x50a221['commands']['get'](_0x12791a['model']['commandName']);_0x12791a['model']['bind']('isOn','isEnabled')['to'](_0x64e8c0,'value','isEnabled');}_0x50a221['ui']['componentFactory']['add']('trackChanges',_0x5b911d=>this['_createToolbarButton'](_0x5b911d,_0x24e780,_0x343106)),_0x50a221['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2a3bbd=>this['_createMenuBarMenu'](_0x2a3bbd,_0x24e780,_0x343106));}['_createToolbarButton'](_0x1ce35f,_0x4d4336,_0x2fe6a4){const _0x523b73=Qt(_0x1ce35f,_0x435717),_0x1745bd=this['editor']['commands']['get']('trackChanges');_0x523b73['buttonView']['set']({'tooltip':_0x2fe6a4,'label':_0x2fe6a4,'icon':he}),_0x523b73['buttonView']['bind']('isOn')['to'](_0x1745bd,'value'),_0x523b73['buttonView']['on']('execute',()=>{_0x1745bd['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x523b73,_0x4d4336,{'role':'menu'});const _0x2619ea=[];for(const _0x2aed6f of _0x4d4336)me(_0x2aed6f)&&_0x2619ea['push'](this['editor']['commands']['get'](_0x2aed6f['model']['commandName']));const _0xf203cd=_0x523b73['buttonView'];return _0xf203cd['actionView']['unbind']('isEnabled'),_0xf203cd['arrowView']['unbind']('isEnabled'),_0xf203cd['actionView']['bind']('isEnabled')['to'](_0x1745bd,'isEnabled'),_0xf203cd['arrowView']['bind']('isEnabled')['toMany'](_0x2619ea,'isEnabled',(..._0x5437e2)=>_0x5437e2['some'](_0x17ebbe=>_0x17ebbe)),_0x523b73['on']('execute',_0x325b9c=>{this['editor']['execute'](_0x325b9c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x523b73;}['_createMenuBarMenu'](_0x57439f,_0x3ad492,_0x12bcb2){const _0x3d3cd1=new Yt(_0x57439f),_0xaf92=this['editor']['commands']['get']('trackChanges');_0x3d3cd1['buttonView']['set']({'label':_0x12bcb2,'icon':he});const _0x537dae=new Zt(_0x57439f);for(const _0x361e8a of _0x3ad492){if('separator'==_0x361e8a['type']){_0x537dae['items']['add'](new Xt(_0x57439f));continue;}const _0x697e5b=new te(_0x57439f,_0x3d3cd1),_0x1fc037=new _0x392ac2(_0x57439f),_0x4a0d80=_0x361e8a['model'];_0x1fc037['bind'](...Object['keys'](_0x4a0d80))['to'](_0x4a0d80),_0x1fc037['delegate']('execute')['to'](_0x3d3cd1),_0x1fc037['on']('execute',()=>{this['editor']['execute'](_0x4a0d80['commandName']),this['editor']['editing']['view']['focus']();}),_0x697e5b['children']['add'](_0x1fc037),_0x537dae['items']['add'](_0x697e5b);}return _0x3d3cd1['bind']('isEnabled')['to'](_0xaf92,'isEnabled'),_0x3d3cd1['panelView']['children']['add'](_0x537dae),_0x3d3cd1;}['_initializeController'](_0xeb0275){const _0x3954ff=this['editor'],_0x5426f2=_0x3954ff['config'],_0x561838=_0x3954ff['plugins']['get']('Annotations'),_0x45459d=_0x3954ff['plugins']['get']('CommentsRepository'),_0x3aba23=_0x3954ff['plugins']['get']('EditorAnnotations'),_0x1e671a=_0x3954ff['plugins']['get'](_0x4e07e7)['me'],_0x32f9ff=_0x5426f2['get']('trackChanges')['SuggestionThreadView'],_0x215c3f=_0x5426f2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5ec9ea,CommentThreadInputView:_0x42d181}=_0x3954ff['plugins']['get']('CommentsUI');let _0x4d1d21,_0x392783,_0x597c96;this['_annotationViews']['has'](_0xeb0275['id'])?(_0x392783=this['_annotationViews']['get'](_0xeb0275['id']),_0x4d1d21=_0x392783['mainView']):(_0x4d1d21=new _0x32f9ff(_0x3954ff['locale'],_0xeb0275,_0x1e671a,{'disableComments':this['_disableComments'],'editorConfig':_0x5426f2['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5426f2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5426f2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5426f2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x49f843(_0x5426f2['get']('locale')),'CommentView':_0x5426f2['get']('comments')['CommentView'],'CommentsListView':_0x5ec9ea,'CommentThreadInputView':_0x42d181,'SuggestionView':_0x215c3f}),_0x4d1d21['suggestionView']['acceptButton']['on']('execute',()=>{_0x3954ff['editing']['view']['focus']();}),_0x4d1d21['suggestionView']['discardButton']['on']('execute',()=>{_0x3954ff['editing']['view']['focus']();}),_0x392783=_0x561838['createAnnotationView'](this['editor']['locale'],_0x4d1d21),_0x392783['bind']('isDirty')['to'](_0x4d1d21,'isDirty'),_0x392783['bind']('length')['to'](_0x4d1d21),_0x392783['bind']('type')['to'](_0x4d1d21,'type',_0x53b41b=>'suggestion-'+_0x53b41b),_0x4d1d21['on']('escape',()=>{_0x597c96['fire']('escape');}),this['_annotationViews']['set'](_0xeb0275['id'],_0x392783));const _0xdc7aba=_0x45459d['createCommentThreadController'](_0xeb0275['commentThread'],_0x4d1d21),_0x125855=new ae(_0x3954ff,_0xeb0275,_0x4d1d21,_0xdc7aba),_0x1eeffa=_0xeb0275['getAllAdjacentSuggestions']()['filter'](_0x29bbcf=>_0x29bbcf['isInContent']);_0x4d1d21['descriptionParts']=_0x3954ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1eeffa),this['_suggestionToController']['set'](_0xeb0275,_0x125855),this['_viewToController']['set'](_0x4d1d21,_0x125855),_0x597c96=_0x561838['createAnnotation']({'view':_0x392783,'target':()=>{const _0x1dc26b=[],_0x3f7d6f=_0xeb0275['getAllAdjacentSuggestions']()['filter'](_0x1533c1=>_0x1533c1['isInContent']);for(const _0x276d67 of _0x3f7d6f)_0x1dc26b['push'](..._0x276d67['getMarkers']());return _0x1ea284(_0x3954ff['editing'],_0x1dc26b);},'type':()=>'suggestion-'+_0x125855['view']['type']}),_0x45459d['_bindAnnotationToEditors'](_0x4d1d21,_0x597c96),_0x561838['add'](_0x597c96),_0x3aba23['registerAnnotation'](_0x597c96);}['_destroyController'](_0x5e3fc9){const _0x407851=this['editor']['plugins']['get']('CommentsRepository'),_0x1bcf70=this['editor']['plugins']['get']('Annotations'),_0x49cdaf=this['_suggestionToController']['get'](_0x5e3fc9),_0x5cc5a4=_0x49cdaf['view'],_0x151dc9=_0x1bcf70['getByInnerView'](_0x5cc5a4);_0x407851['_unbindEditors'](_0x5cc5a4),_0x151dc9&&_0x1bcf70['remove'](_0x151dc9),this['_suggestionToController']['delete'](_0x5e3fc9),this['_viewToController']['delete'](_0x5cc5a4),_0x49cdaf['destroy']();}['_updateController'](_0x3a875d){if(!_0x3a875d['isInContent']||!this['_suggestionToController']['has'](_0x3a875d))return;const _0x2659db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6413cc=this['_suggestionToController']['get'](_0x3a875d),_0x88ad3d=_0x3a875d['getAllAdjacentSuggestions']();_0x6413cc['view']['descriptionParts']=_0x2659db['descriptionFactory']['getDescriptions'](_0x88ad3d);}['destroy'](){for(const _0x15c8df of this['_suggestionToController']['keys']())this['_destroyController'](_0x15c8df);for(const _0x571ce7 of this['_annotationViews']['values']())_0x571ce7['mainView']['destroy']();super['destroy']();}}function me(_0x336f8d){return'model'in _0x336f8d;}class k extends _0x560a22{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x313f99){this['editor']['plugins']['get'](p)['adapter']=_0x313f99;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x146971){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x146971);}['getSuggestions']({skipNotAttached:_0x2decfe=!0x1,toJSON:_0x56d473=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2decfe,'toJSON':_0x56d473});}['getSuggestion'](_0x392caf){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x392caf);}}const T=['Pagination'];class P extends _0x560a22{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x9e6829=this['editor'];if(_0x9e6829['config']['define']('trackChangesData.editorCreator',_0x5f107b=>{const _0x2e278e=_0x9e6829['model']['document']['getRootNames']()['reduce']((_0x40b0e7,_0x545a1e)=>(_0x40b0e7[_0x545a1e]='',_0x40b0e7),{});return _0x9e6829['constructor']['create'](_0x2e278e,_0x5f107b);}),'function'!=typeof _0x9e6829['config']['get']('trackChangesData')['editorCreator'])throw new _0x3f354f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x57f3cf){return N(this['editor'],!0x0,_0x57f3cf);}['getDataWithDiscardedSuggestions'](_0x49e606){return N(this['editor'],!0x1,_0x49e606);}}class D extends _0x560a22{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x257241){super(_0x257241),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(_0x36c79f){return void 0x0!==_0x36c79f['getRootsAttributes'];}async function N(_0xccdbdf,_0x3dad3d,_0x20d768){const _0x576755=_0x118e78(_0xccdbdf,T);_0x576755['plugins']['push'](p,D),_0x576755['rootsAttributes']=v(_0xccdbdf)?_0xccdbdf['getRootsAttributes']():void 0x0;const _0xec38bc=document['createDocumentFragment'](),_0x44ce3e=_0xccdbdf['config']['get']('trackChangesData')['editorCreator'],_0x2a2296=await _0x44ce3e(_0x576755,()=>function(_0x2d5230){const _0x2845dd=document['createElement']('div');return _0x2d5230['appendChild'](_0x2845dd),_0x2845dd;}(_0xec38bc));!function(_0x154aa5,_0x16ad89){const _0x2170a0=_0x154aa5['model']['document']['getRootNames']()['reduce']((_0x4ef0d6,_0x27d8d2)=>(_0x4ef0d6[_0x27d8d2]=_0x154aa5['data']['get']({'rootName':_0x27d8d2}),_0x4ef0d6),{}),_0x3b5576=_0x154aa5['plugins']['get']('Users')['users']['map'](_0x28c144=>({'id':_0x28c144['id'],'name':_0x28c144['name']})),_0x2150e5=_0x154aa5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x9d26e5=_0x154aa5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x582b9e=_0x16ad89['plugins']['get']('Users'),_0x342ceb=_0x16ad89['plugins']['get']('TrackChangesEditing'),_0x4236c9=_0x16ad89['plugins']['get']('CommentsRepository');for(const _0x4db57f of _0x4236c9['getCommentThreads']())_0x4db57f['remove']();for(const _0x437863 of _0x3b5576)_0x582b9e['getUser'](_0x437863['id'])||_0x582b9e['addUser'](_0x437863);_0x582b9e['me']||_0x582b9e['useAnonymousUser']();for(const _0x4be7f9 of _0x9d26e5)_0x4236c9['addCommentThread'](_0x4be7f9);for(const _0x32502a of _0x2150e5)_0x342ceb['addSuggestionData'](_0x32502a);_0x16ad89['data']['set'](_0x2170a0);}(_0xccdbdf,_0x2a2296),_0x2a2296['execute'](_0x3dad3d?'acceptAllSuggestions':'discardAllSuggestions');const _0x2b8d1f=v(_0x2a2296)?_0x2a2296['getFullData'](_0x20d768):_0x2a2296['data']['get'](_0x20d768);return await _0x2a2296['destroy'](),_0x2b8d1f;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|