@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240814.0 → 0.0.0-nightly-20240815.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
|
-
_0x45e3bc(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x43153f,_0x55c53f){super(),this['id']=_0x55c53f['id'],this['type']=_0x55c53f['type'],this['subType']=_0x55c53f['subType']||null,this['author']=_0x55c53f['author'],this['creator']=_0x55c53f['creator']||_0x55c53f['author'],this['isExternal']=Boolean(_0x55c53f['attributes']&&_0x55c53f['attributes']['@external']),this['data']=null,this['_model']=_0x43153f,this['_onAccept']=_0x55c53f['onAccept'],this['_onDiscard']=_0x55c53f['onDiscard'],this['_onAttributesChange']=_0x55c53f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x55c53f['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 _0x32d6a0=this;for(;_0x32d6a0['previous'];)_0x32d6a0=_0x32d6a0['previous'];return _0x32d6a0;}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'](_0x347f16){this['_markerNames']['add'](_0x347f16);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x598525=>this['_model']['markers']['get'](_0x598525))['filter'](_0x1b5298=>_0x1b5298);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5b98d4=>{for(const _0x303cd7 of this['getMarkers']())_0x5b98d4['removeMarker'](_0x303cd7);}),this['_markerNames']['clear']();}['removeMarker'](_0xc83790){this['_model']['change'](_0x465f12=>{_0x465f12['removeMarker'](_0xc83790);}),this['_markerNames']['delete'](_0xc83790);}['addRange'](_0x51434f){const _0x4e6143='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4e6143),this['_model']['change'](_0x47c590=>{_0x47c590['addMarker'](_0x4e6143,{'range':_0x51434f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x48c33e){for(const _0x18b9f0 of this['getRanges']())if(_0x18b9f0['isIntersecting'](_0x48c33e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x583f11=>_0x583f11['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5bc8b7,_0x31d2c8)=>[..._0x5bc8b7,..._0x31d2c8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1c3379=this['getRanges']();if(0x1!=_0x1c3379['length'])return null;const _0x2531c1=_0x1c3379[0x0],_0x5e9c7f=_0x2531c1['start']['nodeAfter'],_0x7e394d=_0x2531c1['end']['nodeBefore'];return _0x5e9c7f instanceof _0x488369?_0x5e9c7f!=_0x7e394d?null:_0x5e9c7f: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 _0x25186a=[];let _0x34d892=this['head'];for(;_0x34d892;)_0x25186a['push'](_0x34d892),_0x34d892=_0x34d892['next'];return _0x25186a;}['setAttribute'](_0x599ed0,_0x246f01){const _0x1db914=_0x50192c(this['attributes']);_0x3be206(_0x1db914,_0x599ed0,_0x246f01),_0x1a8f0b(_0x1db914,this['attributes'])||(this['attributes']=_0x1db914,this['_onAttributesChange'](_0x1db914));}['removeAttribute'](_0x44923b){const _0x5c8011=_0x50192c(this['attributes']);_0x15b586(_0x5c8011,_0x44923b),_0x1a8f0b(_0x5c8011,this['attributes'])||(this['attributes']=_0x5c8011,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 _0x2a94db()['substr'](0x1,0x5);}}function o(_0x425ea9,_0x279042,_0x162c12){const t=_0x425ea9['t'];switch(_0x279042){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',_0x162c12);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x162c12);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x162c12);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x162c12);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x162c12);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',_0x162c12);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x162c12);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',_0x162c12);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x162c12);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x162c12);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x162c12);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x162c12);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x162c12);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x162c12);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x162c12);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x162c12);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x162c12);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x162c12);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x162c12);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x162c12);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x162c12);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x162c12);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x162c12);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'},_0x162c12);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x162c12);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x162c12);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x162c12);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x162c12);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x162c12);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'},_0x162c12);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x162c12);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x162c12);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x162c12);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x162c12);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'},_0x162c12);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x162c12);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'},_0x162c12);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'},_0x162c12);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x162c12);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'},_0x162c12);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x162c12);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'},_0x162c12);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x162c12);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x162c12);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'},_0x162c12);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'},_0x162c12);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'},_0x162c12);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x162c12);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'},_0x162c12);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'},_0x162c12);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'},_0x162c12);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x279042;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2b1ad8,_0x34c0be){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2b1ad8,this['_locale']=_0x34c0be;}['getDescriptions'](_0x2d80ef){const _0x16a7ac=[],_0xda1d55=new Set(),_0x5c0f8=new Set();for(let _0x53a047=0x0;_0x53a047<_0x2d80ef['length'];_0x53a047++){const _0x3ee165=_0x2d80ef[_0x53a047];if(!_0x3ee165['isInContent'])continue;const _0x4544f6=this['_handleCustomCallbackDescription'](_0x3ee165);if(_0x4544f6){if(null!=_0x3ee165['subType']){if(_0xda1d55['has'](_0x3ee165['subType']))continue;_0xda1d55['add'](_0x3ee165['subType']);}_0x16a7ac['push'](_0x4544f6);}else{if('attribute'!=_0x3ee165['type'])'insertion'!=_0x3ee165['type']&&'deletion'!=_0x3ee165['type']||this['_handleInsertRemoveSuggestionDescription'](_0x16a7ac,_0x3ee165,_0x2d80ef[_0x53a047+0x1]);else{const _0x42acb0=_0x3ee165['data']['key'];if(_0x5c0f8['has'](_0x42acb0))continue;_0x5c0f8['add'](_0x3ee165['data']['key']),_0x42acb0==m?this['_handleRenameSuggestionDescription'](_0x16a7ac,_0x3ee165):this['_handleAttributeSuggestionDescription'](_0x16a7ac,_0x3ee165);}}}return this['_resolveDescriptionItems'](_0x16a7ac);}['registerDescriptionCallback'](_0x34eb61){this['_customCallbacks']['push'](_0x34eb61);}['registerElementLabel'](_0x1da8e2,_0x82c0c6,_0x1c84b7=_0x4f84c1['normal']){'function'==typeof _0x1da8e2?_0x2a632d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1da8e2,'label':_0x82c0c6,'priority':_0x1c84b7}):this['_itemLabels']['set'](_0x1da8e2,_0x82c0c6);}['registerAttributeLabel'](_0x9c8c86,_0xb4dac8){this['_attributeLabels']['set'](_0x9c8c86,_0xb4dac8);}['getItemLabel'](_0x36c2be,_0x331810=0x1){let _0x30033b;for(const _0x13d4ad of this['_itemLabelsCallbacks'])if(_0x13d4ad['matchingCallback'](_0x36c2be)){_0x30033b=_0x13d4ad['label'];break;}return _0x30033b||(_0x30033b=this['_itemLabels']['get'](_0x36c2be['name'])),_0x30033b?_0x30033b(_0x331810):0x1!==_0x331810?_0x331810+'\x20'+_0x36c2be['name']+'s':''+_0x36c2be['name'];}['_addDescriptionItems'](_0x162f9b,_0x123a10){const _0x4dfcdc=_0x123a10['getFirstRange']()['getWalker'](),_0x40580c='insertion'==_0x123a10['type']?'add':'remove';for(const _0x2b3c54 of _0x4dfcdc){const _0x18e924=_0x2b3c54['item'],_0x5114f5=_0x162f9b[_0x162f9b['length']-0x1];if(_0x18e924['is']('$textProxy'))_0x5114f5&&_0x5114f5['type']['indexOf']('Container')>-0x1&&_0x162f9b['pop'](),_0x5114f5&&'text'==_0x5114f5['type']?_0x5114f5[_0x40580c]+=_0x18e924['data']:_0x162f9b['push']({'type':'text','add':'add'==_0x40580c?_0x18e924['data']:'','remove':'remove'==_0x40580c?_0x18e924['data']:''});else{if(this['_schema']['isObject'](_0x18e924)){const _0x455655=_0x18e924;if(_0x5114f5&&_0x5114f5['type']['indexOf']('Container')>-0x1&&_0x162f9b['pop'](),'elementEnd'==_0x2b3c54['type'])continue;_0x5114f5&&_0x5114f5['type']==_0x40580c+'Object'&&_0x5114f5['element']['name']==_0x455655['name']?_0x5114f5['quantity']++:_0x162f9b['push']({'type':_0x40580c+'Object','element':_0x455655,'quantity':0x1}),_0x4dfcdc['skip'](_0x5f4d5d=>!('elementEnd'==_0x5f4d5d['type']&&_0x5f4d5d['item']==_0x18e924));}else{if(this['_schema']['checkChild'](_0x18e924,'$text')||_0x18e924['is']('element','softBreak')){const _0x36d214=_0x18e924;if('add'==_0x40580c&&'elementStart'==_0x2b3c54['type']||'remove'==_0x40580c&&'elementEnd'==_0x2b3c54['type'])continue;if(_0x5114f5&&-0x1==_0x5114f5['type']['indexOf']('Container')){'text'==_0x5114f5['type']&&(_0x5114f5[_0x40580c]+='\x0a');continue;}let _0x1a4bcd;if(_0x1a4bcd='add'==_0x40580c?_0x36d214['nextSibling']&&!this['_schema']['isObject'](_0x36d214['nextSibling'])?_0x36d214['nextSibling']:null:_0x36d214['previousSibling']&&!this['_schema']['isObject'](_0x36d214['previousSibling'])?_0x36d214['previousSibling']:null,_0x36d214['isEmpty']||_0x1a4bcd&&_0x1a4bcd['isEmpty']){const _0x2244d5=_0x1a4bcd&&_0x1a4bcd['isEmpty']?_0x1a4bcd:_0x36d214;_0x5114f5&&_0x5114f5['type']==_0x40580c+'EmptyContainer'&&_0x5114f5['element']['name']==_0x2244d5['name']?_0x5114f5['quantity']++:_0x162f9b['push']({'type':_0x40580c+'EmptyContainer','element':_0x2244d5,'quantity':0x1});}else _0x162f9b['push']({'type':_0x40580c+'Container','element':_0x36d214});}}}}}['_resolveDescriptionItems'](_0x55f14e){const _0x64048f=this['_locale'],_0x2ec155=[],_0x1f941b=[],_0x388574=[];for(const _0x15b011 of _0x55f14e)switch(_0x15b011['type']){case'text':if(_0x15b011['add']=_0x15b011['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x15b011['remove']=_0x15b011['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x15b011['add']&&''!=_0x15b011['remove']){_0x2ec155['push']({'type':'replace','content':o(_0x64048f,'REPLACE_TEXT',['\x22'+_0x15b011['remove']+'\x22','\x22'+_0x15b011['add']+'\x22'])});continue;}if(null!=_0x15b011['add']['match'](/^ +$/)){_0x2ec155['push']({'type':'insertion','content':o(_0x64048f,'*Insert:*\x20%0',o(_0x64048f,'ELEMENT_SPACE',_0x15b011['add']['length']))});continue;}if(null!=_0x15b011['remove']['match'](/^ +$/)){_0x2ec155['push']({'type':'deletion','content':o(_0x64048f,'*Remove:*\x20%0',o(_0x64048f,'ELEMENT_SPACE',_0x15b011['remove']['length']))});continue;}if(''!=_0x15b011['add']){_0x2ec155['push']({'type':'insertion','content':o(_0x64048f,'*Insert:*\x20%0','\x22'+_0x15b011['add']+'\x22')});continue;}_0x2ec155['push']({'type':'deletion','content':o(_0x64048f,'*Remove:*\x20%0','\x22'+_0x15b011['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2ec155['push']({'type':'insertion','content':o(_0x64048f,'*Insert:*\x20%0',this['getItemLabel'](_0x15b011['element'],_0x15b011['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2ec155['push']({'type':'deletion','content':o(_0x64048f,'*Remove:*\x20%0',this['getItemLabel'](_0x15b011['element'],_0x15b011['quantity']))});continue;case'addContainer':_0x2ec155['push']({'type':'insertion','content':o(_0x64048f,'*Split:*\x20%0',this['getItemLabel'](_0x15b011['element'],_0x15b011['quantity']))});continue;case'removeContainer':_0x2ec155['push']({'type':'deletion','content':o(_0x64048f,'*Merge:*\x20%0',this['getItemLabel'](_0x15b011['element'],_0x15b011['quantity']))});continue;case'addFormat':_0x1f941b['push'](_0x15b011['key']);continue;case'removeFormat':_0x388574['push'](_0x15b011['key']);continue;default:_0x2ec155['push'](_0x15b011);}if(_0x1f941b['length']){const _0x1b5a9f=_0x1f941b['map'](_0x4d399b=>this['_attributeLabels']['has'](_0x4d399b)?this['_attributeLabels']['get'](_0x4d399b):_0x4d399b)['join'](',\x20');_0x2ec155['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1b5a9f)});}if(_0x388574['length']){const _0x4f1084=_0x388574['map'](_0x42af9f=>this['_attributeLabels']['has'](_0x42af9f)?this['_attributeLabels']['get'](_0x42af9f):_0x42af9f)['join'](',\x20');_0x2ec155['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4f1084)});}return _0x2ec155;}['_handleCustomCallbackDescription'](_0x1a0ada){for(const _0x4fa1b1 of this['_customCallbacks']){const _0x5f3b2f=_0x4fa1b1(_0x1a0ada);if(_0x5f3b2f&&'type'in _0x5f3b2f)return _0x5f3b2f;}}['_handleAttributeSuggestionDescription'](_0x38cdf6,_0x256e4a){const _0x3b7ce8=_0x256e4a['data'],_0xcd93ee=void 0x0===_0x3b7ce8['newValue']?'removeFormat':'addFormat';_0x38cdf6['push']({'type':_0xcd93ee,'key':_0x3b7ce8['key']});}['_handleRenameSuggestionDescription'](_0x321fcc,_0xfc8d7d){_0x321fcc['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xfc8d7d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1d453f,_0x26329a,_0x1a2e74){if(this['_addDescriptionItems'](_0x1d453f,_0x26329a),_0x1a2e74&&_0x1a2e74['getFirstRange']()&&!_0x26329a['getFirstRange']()['end']['isEqual'](_0x1a2e74['getFirstRange']()['start'])){const _0x1e6bd4=_0x1d453f[_0x1d453f['length']-0x1],_0x24f84e='insertion'==_0x26329a['type']?'add':'remove';_0x1e6bd4&&'text'==_0x1e6bd4['type']&&(_0x1e6bd4[_0x24f84e]+='\x0a');}}}class V extends _0x152a51{['afterInit'](){const _0xb2e17a=this['editor'],_0x31a76f=_0xb2e17a['plugins']['get']('TrackChangesEditing');_0xb2e17a['commands']['get']('showAIAssistant')&&_0x31a76f['enableCommand']('showAIAssistant');}}class U extends _0x152a51{['afterInit'](){const _0xb0b0b8=this['editor'],_0x24ff6e=_0xb0b0b8['locale'];if(!_0xb0b0b8['plugins']['has']('AlignmentEditing'))return;const _0x1250e6=_0xb0b0b8['plugins']['get']('TrackChangesEditing');_0x1250e6['enableDefaultAttributesIntegration']('alignment'),_0x1250e6['registerBlockAttribute']('alignment'),_0x1250e6['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x24ff6e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe28d07=this['editor'],_0x5296fd=_0xe28d07['locale'];_0xe28d07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x186107=>{if('formatBlock'!=_0x186107['type'])return;const {data:_0x5d0579}=_0x186107;if(_0x5d0579&&'alignment'==_0x5d0579['commandName']){const _0x4d096=_0x5d0579['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5296fd,'*Format:*\x20%0',function(_0x2a3ea5){switch(_0x2a3ea5){case'left':return o(_0x5296fd,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5296fd,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5296fd,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5296fd,'FORMAT_JUSTIFY_TEXT');}}(_0x4d096))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x152a51{['afterInit'](){const _0x5bb334=this['editor'],_0x1bcc98=_0x5bb334['plugins']['get']('TrackChangesEditing'),_0x3091cb=_0x5bb334['locale'];for(const _0x488fdc of ti){if(!_0x5bb334['plugins']['has'](_0x488fdc))continue;const _0x2aa821=_0x488fdc['slice'](0x0,-0x7)['toLowerCase'](),_0x44dc5f='FORMAT_'+_0x2aa821['toUpperCase']();_0x1bcc98['enableDefaultAttributesIntegration'](_0x2aa821),_0x1bcc98['registerInlineAttribute'](_0x2aa821),_0x1bcc98['descriptionFactory']['registerAttributeLabel'](_0x2aa821,o(_0x3091cb,_0x44dc5f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b5e34=this['editor'],_0x5617fa=_0x4b5e34['locale'],_0x392523=_0x4b5e34['plugins']['get']('TrackChangesEditing');function _0x7422b8(_0x2d81b4,_0x116edb){_0x392523['descriptionFactory']['registerDescriptionCallback'](_0x3405b8=>{if('formatInline'!=_0x3405b8['type'])return;const {data:_0x23292b}=_0x3405b8;return _0x23292b&&_0x23292b['commandName']===_0x2d81b4?_0x23292b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5617fa,'*Format:*\x20%0',_0x116edb)}:{'type':'format','content':o(_0x5617fa,'*Remove\x20format:*\x20%0',_0x116edb)}:void 0x0;});}_0x7422b8('bold',o(_0x5617fa,'FORMAT_BOLD')),_0x7422b8('italic',o(_0x5617fa,'FORMAT_ITALIC')),_0x7422b8('underline',o(_0x5617fa,'FORMAT_UNDERLINE')),_0x7422b8('code',o(_0x5617fa,'FORMAT_CODE')),_0x7422b8('strikethrough',o(_0x5617fa,'FORMAT_STRIKETHROUGH')),_0x7422b8('subscript',o(_0x5617fa,'FORMAT_SUBSCRIPT')),_0x7422b8('superscript',o(_0x5617fa,'FORMAT_SUPERSCRIPT'));}}class F extends _0x152a51{['afterInit'](){const _0x4b2d98=this['editor'],_0x399fff=_0x4b2d98['locale'];if(!_0x4b2d98['plugins']['has']('BlockQuoteEditing'))return;const _0xc127ed=_0x4b2d98['plugins']['get']('TrackChangesEditing'),_0x10431f=this['editor']['commands']['get']('blockQuote');_0xc127ed['enableCommand']('blockQuote',(_0x2df7a9,_0x3af413={})=>{const _0x340e24=this['editor']['model']['document']['selection'],_0x5e0eab=_0x3af413&&void 0x0!==_0x3af413['forceValue']?_0x3af413['forceValue']:!_0x10431f['value'];let _0x596e45=[];if(_0x5e0eab){const _0x235a2d=Array['from'](_0x340e24['getSelectedBlocks']())['filter'](_0x4df808=>oo(_0x4df808)||function(_0x136544,_0x24444f){const _0x34eae7=_0x24444f['checkChild'](_0x136544['parent'],'blockQuote'),_0xed87cb=_0x24444f['checkChild'](['$root','blockQuote'],_0x136544);return _0x34eae7&&_0xed87cb;}(_0x4df808,this['editor']['model']['schema']));_0x596e45=to(_0x235a2d,_0x4b2d98['model']);}else{const _0x5c0b6d=Array['from'](_0x340e24['getSelectedBlocks']())['filter'](_0x265fa7=>oo(_0x265fa7));_0x596e45=to(_0x5c0b6d,_0x4b2d98['model']);}_0x4b2d98['model']['change'](()=>{for(const _0x37e0ee of _0x596e45)_0xc127ed['markBlockFormat'](_0x37e0ee,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5e0eab}]});});}),_0xc127ed['descriptionFactory']['registerDescriptionCallback'](_0x3866df=>{const {data:_0x3bf0a3}=_0x3866df;if(_0x3bf0a3&&'blockQuote'==_0x3bf0a3['commandName']){const _0x45f5a0=o(_0x399fff,'ELEMENT_BLOCK_QUOTE');return _0x3bf0a3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x399fff,'*Set\x20format:*\x20%0',_0x45f5a0)}:{'type':'format','content':o(_0x399fff,'*Remove\x20format:*\x20%0',_0x45f5a0)};}});}}function oo(_0x9aaf35){return'blockQuote'==_0x9aaf35['parent']['name'];}class L extends _0x152a51{['afterInit'](){const _0x2cb99c=this['editor'];_0x2cb99c['plugins']['has']('CaseChange')&&(_0x2cb99c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2cb99c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2cb99c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x152a51{['afterInit'](){const _0x3bf6d2=this['editor'];_0x3bf6d2['commands']['get']('ckbox')&&_0x3bf6d2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x152a51{['afterInit'](){const _0xcb7ef5=this['editor'];if(!_0xcb7ef5['plugins']['has']('CodeBlock'))return;const _0x31a0ab=_0xcb7ef5['plugins']['get']('TrackChangesEditing'),_0x3a1675=_0xcb7ef5['locale'],_0x19862b=_0xcb7ef5['config']['get']('codeBlock')['languages'],_0x25e1e2=_0xcb7ef5['commands']['get']('codeBlock');_0x31a0ab['enableCommand']('indentCodeBlock'),_0x31a0ab['enableCommand']('outdentCodeBlock'),_0x31a0ab['enableCommand']('codeBlock',(_0x59f287,_0x53cab5={})=>{const _0x4f1cca=_0xcb7ef5['model'],_0x5a77a5=_0xcb7ef5['model']['document']['selection'],_0x279842=_0x53cab5&&void 0x0!==_0x53cab5['forceValue']?_0x53cab5['forceValue']:!_0x25e1e2['value'];let _0x396404;_0x53cab5['language']||(_0x53cab5['language']=_0x19862b[0x0]['language']),_0x396404=_0x279842?Array['from'](_0x5a77a5['getSelectedBlocks']())['filter'](_0x3360c1=>eo(_0x3360c1)||function(_0xfbeae3,_0x4a0d0b){if(_0xfbeae3['is']('rootElement')||_0x4a0d0b['isLimit'](_0xfbeae3))return!0x1;return _0x4a0d0b['checkChild'](_0xfbeae3['parent'],'codeBlock');}(_0x3360c1,_0x4f1cca['schema'])):Array['from'](_0x5a77a5['getSelectedBlocks']())['filter'](_0x4bcbe1=>eo(_0x4bcbe1));const _0x4e3bf3=to(_0x396404,_0x4f1cca);_0x4f1cca['change'](()=>{for(const _0x4845d6 of _0x4e3bf3)_0x31a0ab['markBlockFormat'](_0x4845d6,{'commandName':'codeBlock','commandParams':[{..._0x53cab5,'forceValue':_0x279842}],'formatGroupId':'blockName'});});}),(_0x31a0ab['descriptionFactory']['registerElementLabel']('codeBlock',_0x84e054=>o(_0x3a1675,'ELEMENT_CODE_BLOCK',_0x84e054)),_0x31a0ab['descriptionFactory']['registerDescriptionCallback'](_0x5b68cf=>{if('formatBlock'!=_0x5b68cf['type'])return;const _0x3734c8=_0x3a1675['t'],{data:_0x4f51a6}=_0x5b68cf;if(!_0x4f51a6||'codeBlock'!=_0x4f51a6['commandName'])return;const _0x5c61a9=_0x4f51a6['commandParams'][0x0]['language'],_0x30bb83=_0x3734c8(_0x19862b['find'](_0x18bb8c=>_0x18bb8c['language']===_0x5c61a9)['label'])['toLowerCase']();return _0x4f51a6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a1675,'*Set\x20format:*\x20%0',o(_0x3a1675,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x30bb83+')')}:{'type':'format','content':o(_0x3a1675,'*Remove\x20format:*\x20%0',o(_0x3a1675,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x589073){return'codeBlock'==_0x589073['name'];}class q extends _0x152a51{['afterInit'](){const _0x13b74c=this['editor'];if(!_0x13b74c['plugins']['has']('CommentsEditing'))return;_0x13b74c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x181d7b,_0x462ebf,_0x50bf07){const _0x44fab9=[];for(const _0x5e7c1f of _0x462ebf['getItems']())_0x5e7c1f['hasAttribute'](_0x181d7b)&&_0x44fab9['push'](_0x50bf07['createRangeOn'](_0x5e7c1f));return _0x44fab9;}function _e(_0x1034cb,_0x28a747,{showActiveMarker:_0x2614d6=!0x0}={}){const _0x5cf207=_0x1034cb['plugins']['get']('TrackChangesEditing');return(_0x1188ee,_0xd4692a,_0xbb0e7a)=>{if(!_0xbb0e7a['consumable']['test'](_0xd4692a['markerRange'],_0x1188ee['name']))return;const _0x4474c9=_0xd4692a['markerRange']['getWalker'](),_0x51ca25=_0xd4692a['markerRange']['start'],_0x530862=_0x1034cb['model']['schema'];let _0x370af3=null,_0x3b5713=null,_0x5bf8a3=!0x1,_0x2ecac8=!0x1;for(const _0x3b1dbb of _0x4474c9){const _0x35f9a4=_0x3b1dbb['item'];_0x5bf8a3=_0x5bf8a3||_0x530862['isContent'](_0x35f9a4);const _0x1ae822=_0xbb0e7a['mapper']['toViewElement'](_0x35f9a4);if(_0x1ae822&&_0x1ae822['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3b1dbb['type']&&(_0x530862['isBlock'](_0x35f9a4)&&!_0x530862['isLimit'](_0x35f9a4)&&(_0x35f9a4['nextSibling']||_0x51ca25['isAtEnd']?_0x370af3&&_0x370af3['parent']==_0x35f9a4||(_0x370af3=_0x35f9a4,_0x52b72c(_0x3b1dbb['previousPosition']),_0x2ecac8=!0x0):_0x3b5713=_0x3b5713||_0x3b1dbb['previousPosition']));}function _0x52b72c(_0x1337eb){const {authorId:_0x128004}=_0x5cf207['_splitMarkerName'](_0xd4692a['markerName']),_0x248864=_0xbb0e7a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x28a747,'data-author-id':_0x128004}),_0xa1bb5a=_0xbb0e7a['mapper']['toViewPosition'](_0x1337eb);_0x2614d6&&_0x5cf207['activeMarkers']['includes'](_0xd4692a['markerName'])&&_0xbb0e7a['writer']['addClass']('ck-suggestion-marker--active',_0x248864),_0xbb0e7a['writer']['insert'](_0xa1bb5a,_0x248864),_0xbb0e7a['mapper']['bindElementToMarker'](_0x248864,_0xd4692a['markerName']);}_0x5bf8a3||_0x2ecac8||!_0x3b5713||_0x52b72c(_0x3b5713);};}class z extends _0x152a51{static get['requires'](){return[_0x548f5c];}['init'](){const _0x5a211d=this['editor'],_0x58822d=_0x5a211d['plugins']['get']('TrackChangesEditing');_0x58822d['enableCommand']('delete');const _0x542bb0=_0x5a211d['commands']['get']('deleteForward');_0x58822d['enableCommand']('deleteForward',(_0x157400,_0x596642={})=>{const _0x31a664=_0x5a211d['model']['createSelection'](_0x5a211d['model']['document']['selection']);_0x31a664['isCollapsed']&&_0x5a211d['model']['modifySelection'](_0x31a664,{'direction':'forward','unit':_0x596642['unit']});const _0x1959be=_0x31a664['getFirstRange'](),_0x2341e6=_0x22bfde['fromRange'](_0x1959be);let _0x2bd924;_0x157400(_0x596642),_0x2bd924='$graveyard'==_0x2341e6['root']['rootName']?_0x5a211d['model']['createRange'](_0x1959be['start']):_0x5a211d['model']['createRange'](_0x2341e6['start'],_0x2341e6['end']),_0x2341e6['detach'](),_0x5a211d['model']['enqueueChange'](_0x542bb0['buffer']['batch'],_0x54b293=>{_0x542bb0['buffer']['lock'](),_0x54b293['setSelection'](_0x54b293['createRange'](_0x2bd924['end'])),_0x542bb0['buffer']['unlock']();});}),_0x5a211d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5a211d,'merge'),{'priority':'high'}),_0x5a211d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3b2400,_0x334a7c,_0x3e41d2)=>{_0x3e41d2['options']['showSuggestionHighlights']&&_e(_0x5a211d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3b2400,_0x334a7c,_0x3e41d2);},{'priority':'high'}),_0x5a211d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x15383f,_0x1d2826,_0x50b61d)=>{const _0xf7e8be=_0x50b61d['mapper']['markerNameToElements'](_0x1d2826['markerName']);if(_0xf7e8be){for(const _0x560b2d of _0xf7e8be)_0x560b2d['is']('uiElement')&&(_0x50b61d['mapper']['unbindElementFromMarkerName'](_0x560b2d,_0x1d2826['markerName']),_0x50b61d['writer']['remove'](_0x560b2d));}},{'priority':'high'});}}class K extends _0x152a51{['afterInit'](){const _0x4a3115=this['editor'];if(!_0x4a3115['plugins']['has']('ListEditing'))return;const _0x5878a1=_0x4a3115['locale'],_0x1da4d2=_0x4a3115['plugins']['get']('TrackChangesEditing'),_0x5ce822=_0x4a3115['plugins']['has']('TodoListEditing'),_0x40a70d=!!_0x4a3115['config']['get']('list.multiBlock');function _0x33214d(_0x2cc74c){return{'type':'format','content':''+o(_0x5878a1,'*Set\x20format:*\x20%0',_0x2cc74c)};}function _0x1bc120(_0x2a3d44){return{'type':'format','content':''+o(_0x5878a1,'*Remove\x20format:*\x20%0',_0x2a3d44)};}_0x1da4d2['enableDefaultAttributesIntegration']('numberedList'),_0x1da4d2['enableDefaultAttributesIntegration']('bulletedList'),_0x1da4d2['enableDefaultAttributesIntegration']('customNumberedList'),_0x1da4d2['enableDefaultAttributesIntegration']('customBulletedList'),_0x1da4d2['enableDefaultAttributesIntegration']('indentList'),_0x1da4d2['enableDefaultAttributesIntegration']('outdentList'),_0x1da4d2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1da4d2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1da4d2['registerBlockAttribute']('listItemId'),_0x1da4d2['registerBlockAttribute']('listType'),_0x1da4d2['registerBlockAttribute']('listIndent'),_0x40a70d&&(_0x1da4d2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1da4d2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5ce822&&(_0x1da4d2['enableDefaultAttributesIntegration']('todoList'),_0x1da4d2['enableDefaultAttributesIntegration']('checkTodoList'),_0x1da4d2['registerBlockAttribute']('todoListChecked'),_0x1da4d2['descriptionFactory']['registerDescriptionCallback'](_0x1f2dfd=>{const {data:_0x3632ef}=_0x1f2dfd;if(_0x3632ef&&'todoListChecked'==_0x3632ef['key'])return{'type':'format','content':_0x3632ef['newValue']?o(_0x5878a1,'*Check\x20item*'):o(_0x5878a1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x262c8b=>{if(_0x262c8b['batch']['isUndo'])return!0x1;let _0x3b66ab=!0x1;const _0x5ee74e=_0x1da4d2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c2ae4=>'todoListChecked'===_0x1da4d2['_getAttributeKey'](_0x4c2ae4));for(const _0x2ffaa6 of _0x5ee74e){'todo'!=_0x2ffaa6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1da4d2['_findSuggestions'](_0x2ffaa6['getFirstRange'](),'attribute')['find'](_0x2e394a=>'listType'===_0x1da4d2['_getAttributeKey'](_0x2e394a['suggestion']))||(_0x262c8b['removeMarker'](_0x2ffaa6['getFirstMarker']()),_0x3b66ab=!0x0));}return _0x3b66ab;})),_0x1da4d2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5878a1,'FORMAT_INDENT'));const _0x49ed37={'type':'format','content':''};_0x1da4d2['descriptionFactory']['registerDescriptionCallback'](_0x34fdf2=>{const {data:_0x1070e9}=_0x34fdf2;if(!_0x1070e9||'listType'!=_0x1070e9['key'])return;let _0x1e504e=_0x34fdf2['head'];for(;_0x1e504e;){if(_0x1e504e['data']&&(('listStyle'==_0x1e504e['data']['key']||'listMarkerStyle'==_0x1e504e['data']['key'])&&(_0x1e504e['data']['newValue']&&'default'!=_0x1e504e['data']['newValue']||'default'!=_0x1e504e['data']['oldValue']&&!_0x1070e9['newValue'])||!_0x40a70d&&_0x1e504e['data']['key']==m))return _0x49ed37;_0x1e504e=_0x1e504e['next'];}if(null==_0x1070e9['newValue'])switch(_0x1070e9['oldValue']){case'bulleted':return _0x1bc120(o(_0x5878a1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1bc120(o(_0x5878a1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1bc120(o(_0x5878a1,'ELEMENT_TODO_LIST'));}switch(_0x1070e9['newValue']){case'bulleted':return _0x33214d(o(_0x5878a1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33214d(o(_0x5878a1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33214d(o(_0x5878a1,'ELEMENT_TODO_LIST'));}}),_0x1da4d2['descriptionFactory']['registerDescriptionCallback'](_0x48deda=>{const {data:_0x486575}=_0x48deda;if(_0x486575&&'listIndent'==_0x486575['key'])return null==_0x486575['newValue']||null==_0x486575['oldValue']&&0x0==_0x486575['newValue']?_0x49ed37:void 0x0;}),_0x1da4d2['descriptionFactory']['registerDescriptionCallback'](_0x4570c4=>{if('attribute'!=_0x4570c4['type'])return;const {data:_0x3b5e27}=_0x4570c4;if(!_0x3b5e27||'listItemId'!=_0x3b5e27['key'])return;const _0x510f40=Ee(_0x4570c4);return'newValue'==_0x510f40?{'type':'format','content':o(_0x5878a1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x510f40?{'type':'format','content':o(_0x5878a1,'*Split:*\x20list\x20item')}:_0x49ed37;}),_0x4a3115['model']['document']['registerPostFixer'](_0x53a9b7=>this['listItemIdFixer'](_0x53a9b7)),_0x4a3115['model']['document']['registerPostFixer'](_0x37478a=>this['noTrackChangesFixer'](_0x37478a)),_0x4a3115['model']['document']['on']('change:data',(_0x1b1ac4,_0x50a732)=>{if(_0x50a732['isUndo']||!_0x50a732['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x50f090){if(_0x50f090['batch']['isUndo']||!_0x50f090['batch']['isLocal'])return!0x1;let _0xc0bc39=!0x1;const _0x37b26c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e3a50=>_0x3e3a50['data']&&'listItemId'==_0x3e3a50['data']['key'])['filter'](_0x4f87ff=>_0x4f87ff['data']['newValue']&&_0x4f87ff['data']['oldValue']);for(const _0x470f6c of _0x37b26c)Ee(_0x470f6c)||(_0x50f090['removeMarker'](_0x470f6c['getFirstMarker']()),_0xc0bc39=!0x0);return _0xc0bc39;}['noTrackChangesFixer'](_0xa3e787){if(_0xa3e787['batch']['isUndo']||!_0xa3e787['batch']['isLocal'])return!0x1;const _0x82846c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x82846c['trackChangesCommand']['value'])return!0x1;let _0x1eb643=!0x1;const _0x5324a2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x133cbc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1800bf=>'attribute'==_0x1800bf['type'])['filter'](_0x4a91a5=>_0x5324a2['includes'](_0x4a91a5['attributeKey']));if(0x0==_0x133cbc['length'])return _0x1eb643;for(const _0x5a408b of _0x133cbc){const _0x1c521d=_0x82846c['_findSuggestions'](_0x5a408b['range'],'attribute')['filter'](_0x57f002=>!_0x57f002['meta']['isNextTo'])['map'](_0x1cb1f6=>_0x1cb1f6['suggestion'])['filter'](_0x581750=>{const _0x1ba8d3=_0x82846c['_getAttributeKey'](_0x581750);return _0x5324a2['includes'](_0x1ba8d3);});if(_0x1c521d['length']){for(const _0x47143e of _0x1c521d)_0xa3e787['removeMarker'](_0x47143e['getFirstMarker']());_0x1eb643=!0x0;}}return _0x1eb643;}['assureChains'](){const _0x6fc558=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bfeb5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1effae;const _0x535c52=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x37e3e3=>{if(_0x37e3e3['data']['oldRange']||!_0x37e3e3['data']['newRange'])return null;if(!_0x37e3e3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x40d456}=_0x6fc558['_splitMarkerName'](_0x37e3e3['name']);if(!_0x6fc558['hasSuggestion'](_0x40d456))return null;const _0x576979=_0x6fc558['getSuggestion'](_0x40d456);return _0x2bfeb5['includes'](_0x576979['data']['key']);})['map'](_0x264dda=>{const {id:_0x1447c4}=_0x6fc558['_splitMarkerName'](_0x264dda['name']),_0x1d65f0=_0x6fc558['getSuggestion'](_0x1447c4);return _0x1effae=_0x1d65f0['attributes']['groupId'],_0x1d65f0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x535c52['size'])return;const _0x8a68d1=_0x6fc558['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc15ce5=>'attribute'==_0xc15ce5['type']&&_0xc15ce5['data']&&_0x2bfeb5['includes'](_0xc15ce5['data']['key'])&&_0xc15ce5['attributes']['groupId']!=_0x1effae)['map'](_0x271d07=>({'listItem':_0x271d07['getFirstRange']()['start']['nodeAfter'],'groupId':_0x271d07['attributes']['groupId']})),_0x85dbad=new Set();for(const {groupId:_0x48249b,listItem:_0x280336}of _0x8a68d1)_0x535c52['has'](_0x280336)&&_0x85dbad['add'](_0x48249b);for(const _0x1e36ad of _0x6fc558['getSuggestions']())_0x85dbad['has'](_0x1e36ad['attributes']['groupId'])&&_0x1e36ad['setAttribute']('groupId',_0x1effae);}['_supportLegacySuggestions'](){const _0x22f392=this['editor'],_0x4736a8=_0x22f392['locale'],_0x511450=_0x22f392['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x511450['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2de5f3,_0x1ec943){const _0x1a54e7=[];for(let _0xcce8 of _0x2de5f3)_0xcce8['start']['nodeAfter']===_0xcce8['end']['parent']&&(_0xcce8=_0x22f392['model']['createRange'](_0x22f392['model']['createPositionAt'](_0xcce8['start']['nodeAfter'],0x0))),_0x1a54e7['push'](_0xcce8);_0x22f392['model']['change'](_0x3ffa38=>{const _0xec210a=_0x22f392['model']['document']['selection'],_0x3e0abf=Array['from'](_0xec210a['getRanges']())['map'](_0x344b87=>_0x22bfde['fromRange'](_0x344b87));_0x3ffa38['setSelection'](_0x1a54e7),_0x22f392['commands']['get'](_0x1ec943['commandName'])['refresh'](),_0x1ec943['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x22f392['execute'](_0x1ec943['commandName'],..._0x1ec943['commandParams']),_0x3ffa38['setSelection'](_0x3e0abf);for(const _0x1afbf9 of _0x3e0abf)_0x1afbf9['detach']();});}),_0x511450['descriptionFactory']['registerElementLabel'](function(_0x17ff32){const _0x1836ba=!_0x22f392['model']['schema']['isObject'](_0x17ff32),_0x2d463a=_0x17ff32['previousSibling'],_0x896bd9=_0x17ff32['nextSibling'],_0x5000b9=_0x17ff32['getAttribute']('listItemId'),_0x5bb07e=!_0x2d463a||_0x2d463a['getAttribute']('listItemId')!==_0x5000b9,_0x4643a2=!_0x896bd9||_0x896bd9['getAttribute']('listItemId')!==_0x5000b9;return _0x1836ba&&Boolean(_0x5000b9)&&_0x5bb07e&&_0x4643a2;},_0x27015c=>o(_0x4736a8,'ELEMENT_LIST_ITEM',_0x27015c));}['_registerLegacyDescription'](){const _0x1ec75d=this['editor'],_0x3c2a55=_0x1ec75d['locale'];function _0x44a35c(_0x2880e0){const _0x1f3826=_0x1ec75d['commands']['get']('bulletedList')['value'],_0x32d12e=_0x1ec75d['commands']['get']('numberedList')['value'];return'numberedList'===_0x2880e0?_0x1f3826:_0x32d12e;}_0x1ec75d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5df700){if('formatBlock'!=_0x5df700['type'])return;const {data:_0x44cfc5}=_0x5df700;if(!_0x44cfc5)return;let _0x52c184,_0x1dd3f3,_0x4de861,_0x12a4ab;switch(_0x44cfc5['commandName']){case'bulletedList':_0x4de861=_0x44cfc5['commandParams'][0x0]['forceValue'],_0x12a4ab=_0x44a35c(_0x44cfc5['commandName']),_0x52c184=_0x4de861?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x12a4ab&&_0x1ec75d['config']['get']('list.multiBlock')||(_0x52c184='*Change\x20to:*\x20%0'),_0x1dd3f3={'type':'format','content':o(_0x3c2a55,_0x52c184,o(_0x3c2a55,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4de861=_0x44cfc5['commandParams'][0x0]['forceValue'],_0x12a4ab=_0x44a35c(_0x44cfc5['commandName']),_0x52c184=_0x4de861?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x12a4ab&&_0x1ec75d['config']['get']('list.multiBlock')||(_0x52c184='*Change\x20to:*\x20%0'),_0x1dd3f3={'type':'format','content':o(_0x3c2a55,_0x52c184,o(_0x3c2a55,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x52c184='*Indent:*\x20%0',_0x1dd3f3={'type':'format','content':o(_0x3c2a55,_0x52c184,o(_0x3c2a55,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x52c184=function(_0xb6c58a){const _0x2af38c=_0xb6c58a['getFirstRange']();let _0x41a18d=_0x2af38c['start']['nodeAfter'];for(;_0x41a18d&&_0x2af38c['containsItem'](_0x41a18d);){if(_0x41a18d['getAttribute']('listIndent')>0x0)return!0x1;_0x41a18d=_0x41a18d['nextSibling'];}return!0x0;}(_0x5df700)?o(_0x3c2a55,'*Format:*\x20remove\x20from\x20%0',o(_0x3c2a55,function(_0x5db5af){return'ELEMENT_'+_0x5db5af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5df700))):o(_0x3c2a55,'*Outdent:*\x20%0',o(_0x3c2a55,'ELEMENT_LIST_ITEM')),_0x1dd3f3={'type':'format','content':_0x52c184};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x44cfc5['multipleBlocks']&&(_0x52c184='*Merge:*\x20%0',_0x1dd3f3={'type':'deletion','content':o(_0x3c2a55,_0x52c184,o(_0x3c2a55,'ELEMENT_LIST_ITEM'))});}return _0x1dd3f3;});}}function Ee(_0x1a079e){let _0x2d024e=_0x1a079e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2d024e;){const _0x369180=_0x2d024e['getAttribute']('listItemId');if(!_0x369180)return!0x1;if(_0x369180==_0x1a079e['data']['newValue'])return'newValue';if(_0x369180==_0x1a079e['data']['oldValue'])return'oldValue';_0x2d024e=_0x2d024e['previousSibling'];}return!0x1;}class pe extends _0x152a51{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x24f2ee=this['editor']['config']['get']('list.properties'),_0xd37a17=this['editor']['plugins']['get']('TrackChangesEditing');_0x24f2ee['styles']&&(_0xd37a17['enableDefaultAttributesIntegration']('listStyle'),_0xd37a17['registerBlockAttribute']('listStyle')),_0x24f2ee['reversed']&&(_0xd37a17['enableDefaultAttributesIntegration']('listReversed'),_0xd37a17['registerBlockAttribute']('listReversed')),_0x24f2ee['startIndex']&&(_0xd37a17['enableDefaultAttributesIntegration']('listStart'),_0xd37a17['registerBlockAttribute']('listStart'));const _0x5a8376={'type':'format','content':''};_0xd37a17['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xbc097d=this['editor']['locale'];_0xd37a17['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xbc097d,'FORMAT_LIST_REVERSED')),_0xd37a17['descriptionFactory']['registerDescriptionCallback'](_0x29271f=>{const {data:_0x57186a}=_0x29271f;if(_0x57186a&&'listReversed'==_0x57186a['key'])return null==_0x57186a['newValue']||0x0==_0x57186a['newValue']&&null==_0x57186a['oldValue']?_0x5a8376:void 0x0;}),_0xd37a17['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xbc097d,'FORMAT_LIST_START')),_0xd37a17['descriptionFactory']['registerDescriptionCallback'](_0x5aaea8=>{const {data:_0x1ba1e9}=_0x5aaea8;if(_0x1ba1e9&&'listStart'==_0x1ba1e9['key'])return null==_0x1ba1e9['newValue']||0x1==_0x1ba1e9['newValue']&&null==_0x1ba1e9['oldValue']?_0x5a8376:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3e82b9=>{if(_0x3e82b9['batch']['isUndo'])return!0x1;let _0x35100a=!0x1;const _0x3ad0a9=_0xd37a17['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2dbb5f=>{const _0x521da8=_0xd37a17['_getAttributeKey'](_0x2dbb5f);return'listStart'==_0x521da8||'listReversed'==_0x521da8;});for(const _0x4c3bf2 of _0x3ad0a9){const _0x410ad1=_0x4c3bf2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x410ad1||'customNumbered'==_0x410ad1)continue;_0xd37a17['_findSuggestions'](_0x4c3bf2['getFirstRange'](),'attribute')['find'](_0x6ecf9a=>'listType'==_0xd37a17['_getAttributeKey'](_0x6ecf9a['suggestion']))||(_0x3e82b9['removeMarker'](_0x4c3bf2['getFirstMarker']()),_0x35100a=!0x0);}return _0x35100a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1f3b1f){const _0x498b4e=this['editor']['locale'],{data:_0x4c6f94}=_0x1f3b1f,_0x5f1401={'type':'format','content':''};if(!_0x4c6f94||'listStyle'!=_0x4c6f94['key'])return;if(!_0x4c6f94['oldValue'])return'default'==_0x4c6f94['newValue']?_0x5f1401:{'type':'format','content':''+o(_0x498b4e,'*Set\x20format:*\x20%0',o(_0x498b4e,this['_getTranslationKeyForListStyle'](_0x4c6f94['newValue'])))};if(!_0x4c6f94['newValue']){if('default'==_0x4c6f94['oldValue'])return _0x5f1401;let _0x52b38e=_0x1f3b1f['head'];for(;_0x52b38e;){if(_0x52b38e['data']&&'listType'==_0x52b38e['data']['key']&&_0x52b38e['data']['newValue'])return _0x5f1401;_0x52b38e=_0x52b38e['next'];}return{'type':'format','content':''+o(_0x498b4e,'*Remove\x20format:*\x20%0',o(_0x498b4e,this['_getTranslationKeyForListStyle'](_0x4c6f94['oldValue'])))};}if('default'!=_0x4c6f94['newValue'])return{'type':'format','content':''+o(_0x498b4e,'*Set\x20format:*\x20%0',o(_0x498b4e,this['_getTranslationKeyForListStyle'](_0x4c6f94['newValue'])))};let _0x5ee061=_0x1f3b1f['head'];for(;_0x5ee061;){if(_0x5ee061['data']&&'listType'==_0x5ee061['data']['key']&&_0x5ee061['data']['newValue']&&_0x5ee061['data']['oldValue'])return _0x5f1401;_0x5ee061=_0x5ee061['next'];}return{'type':'format','content':o(_0x498b4e,'*Set\x20format:*\x20%0',o(_0x498b4e,'ELEMENT_'+_0x1f3b1f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x13c304=this['editor'],_0x31968d=_0x13c304['locale'];_0x13c304['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x381c97=>{if('formatBlock'!=_0x381c97['type'])return;const {data:_0x5936db}=_0x381c97;if(!_0x5936db)return;let _0x36918b,_0x31e6b7;switch(_0x5936db['commandName']){case'listStyle':_0x36918b='*Change\x20to:*\x20%0',_0x31e6b7={'type':'format','content':o(_0x31968d,_0x36918b,o(_0x31968d,this['_getTranslationKeyForListStyle'](_0x5936db['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36918b=_0x5936db['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x31e6b7={'type':'format','content':o(_0x31968d,_0x36918b)};break;case'listStart':_0x36918b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x31e6b7={'type':'format','content':o(_0x31968d,_0x36918b,_0x5936db['commandParams'][0x0]['startIndex'])};}return _0x31e6b7;});}['_getTranslationKeyForListStyle'](_0x57773d){return'ELEMENT_'+function(_0x57c30b){if(ye['includes'](_0x57c30b))return'bulleted';if(Se['includes'](_0x57c30b))return'numbered';return null;}(_0x57773d)['toUpperCase']()+'_LIST_'+_0x57773d['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x152a51{static get['requires'](){return[_0x49bdc6];}['init'](){const _0x424dc2=this['editor'],_0x36893a=_0x424dc2['plugins']['get']('TrackChangesEditing'),_0x29a9b5=_0x424dc2['commands']['get']('enter');_0x36893a['enableCommand']('enter',()=>{_0x424dc2['model']['change'](_0xf5f8d=>{const _0x2bd078=_0x424dc2['model']['document']['selection'],_0xd37151=_0x2bd078['getFirstPosition'](),_0x3e8e65=_0x22bfde['fromRange'](_0x2bd078['getFirstRange']());if(_0x29a9b5['enterBlock'](_0xf5f8d)){const _0xf6e0f2=_0x424dc2['model']['createPositionAt'](_0xd37151['parent']['nextSibling'],0x0),_0x338672=_0xf5f8d['createRange'](_0xd37151,_0xf6e0f2);_0x36893a['markInsertion'](_0x338672);}else _0xf5f8d['setSelection'](_0xf5f8d['createRange'](_0x3e8e65['end']));_0x3e8e65['detach'](),_0x29a9b5['fire']('afterExecute',{'writer':_0xf5f8d});});}),_0x424dc2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x424dc2,'split'),{'priority':'high'}),_0x424dc2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x54f074,_0x40d5c4,_0x5484c9)=>{const _0x18da31=_0x5484c9['mapper']['markerNameToElements'](_0x40d5c4['markerName']);if(_0x18da31){for(const _0x419566 of _0x18da31)_0x419566['hasClass']('ck-suggestion-marker-split')&&(_0x5484c9['mapper']['unbindElementFromMarkerName'](_0x419566,_0x40d5c4['markerName']),_0x5484c9['writer']['remove'](_0x419566));}},{'priority':'high'}),_0x424dc2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x168211,_0x31a56c,_0x1075cc)=>{_0x1075cc['options']['showSuggestionHighlights']&&_e(_0x424dc2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x168211,_0x31a56c,_0x1075cc);},{'priority':'high'});}}class X extends _0x152a51{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1143b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1143b8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1143b8['enableCommand']('findNext'),_0x1143b8['enableCommand']('findPrevious'),_0x1143b8['enableCommand']('replace'),_0x1143b8['enableCommand']('replaceAll');}['handleFindCommand'](_0xa0f440,_0x267444,_0x5b1fcb={}){const _0xf165f2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa0f440(_0x209a84=>{let _0x18eac9=('string'==typeof _0x267444?_0xf165f2['findByTextCallback'](_0x267444,_0x5b1fcb):_0x267444)(_0x209a84);Array['isArray'](_0x18eac9)&&(_0x18eac9={'results':_0x18eac9,'searchText':'string'==typeof _0x267444?_0x267444:''});const _0x1d06cc=_0x18eac9['results']['filter'](_0x54a0b=>!0x1===this['_isInDeletionRange'](_0x54a0b,_0x209a84['item']));return{..._0x18eac9,'results':_0x1d06cc};},_0x5b1fcb);}['_isInDeletionRange'](_0x3a77a0,_0x137dbc){const _0x387b55=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x137dbc,_0x3a77a0['start']),this['editor']['model']['createPositionAt'](_0x137dbc,_0x3a77a0['end']));for(const _0x421080 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x387b55['getIntersection'](_0x421080['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 _0x152a51{['afterInit'](){const _0x11e4dc=this['editor']['locale'],_0x4750c7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x134b0a,commandName:_0x480a3b}of ro)this['editor']['plugins']['has'](_0x134b0a)&&(_0x4750c7['enableDefaultAttributesIntegration'](_0x480a3b),_0x4750c7['registerInlineAttribute'](_0x480a3b));_0x4750c7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11e4dc,'FORMAT_FONT_SIZE')),_0x4750c7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11e4dc,'FORMAT_FONT_FAMILY')),_0x4750c7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11e4dc,'FORMAT_FONT_COLOR')),_0x4750c7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11e4dc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xce11f1=this['editor'],_0x227a93=_0xce11f1['locale'];_0xce11f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173287=>{const _0x4202d1=_0x227a93['t'];if('formatInline'!=_0x173287['type'])return;const {data:_0x3b8c29}=_0x173287;if(null!=_0x3b8c29){if('fontSize'==_0x3b8c29['commandName']){const _0x12f0a2=_0x3b8c29['commandParams'][0x0]['value'];if(_0x12f0a2){const _0x4eaf08=_0x4202d1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x14ab4d=>_0x14ab4d['model']==_0x12f0a2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x227a93,'*Set\x20font\x20size:*\x20%0',_0x4eaf08)};}return{'type':'format','content':o(_0x227a93,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3b8c29['commandName']){const _0x254463=_0x3b8c29['commandParams'][0x0]['value'];return _0x254463?{'type':'format','content':o(_0x227a93,'*Set\x20font\x20family:*\x20%0',_0x254463)}:{'type':'format','content':o(_0x227a93,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3b8c29['commandName']){const _0x266b9f=_0x3b8c29['commandParams'][0x0]['value'];if(_0x266b9f){const _0x46bedd=_0x336a05(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a4ca9=>_0x4a4ca9['model']==_0x266b9f);let _0x352b7a=_0x266b9f,_0x26dfc8='';return _0x46bedd&&(_0x352b7a=_0x46bedd['label'],_0x26dfc8=_0x4202d1(_0x352b7a)['toLowerCase']()),{'type':'format','content':o(_0x227a93,'*Set\x20font\x20color:*\x20%0',_0x26dfc8)['trim'](),'color':{'value':_0x266b9f,'title':_0x26dfc8||_0x352b7a}};}return{'type':'format','content':o(_0x227a93,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3b8c29['commandName']){const _0x56d50f=_0x3b8c29['commandParams'][0x0]['value'];if(_0x56d50f){const _0x1a68ff=_0x336a05(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x211e1d=>_0x211e1d['model']==_0x56d50f);let _0x53e0d3=_0x56d50f,_0x42be2f='';return _0x1a68ff&&(_0x53e0d3=_0x1a68ff['label'],_0x42be2f=_0x4202d1(_0x53e0d3)['toLowerCase']()),{'type':'format','content':o(_0x227a93,'*Set\x20font\x20background\x20color:*\x20%0',_0x42be2f)['trim'](),'color':{'value':_0x56d50f,'title':_0x42be2f||_0x53e0d3}};}return{'type':'format','content':o(_0x227a93,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x152a51{['afterInit'](){const _0x1b2f2d=this['editor'],_0x2d1ee3=_0x1b2f2d['plugins']['get']('TrackChangesEditing'),_0x1ed9db=_0x1b2f2d['commands']['get']('copyFormat'),_0x41e89d=_0x1b2f2d['commands']['get']('pasteFormat');_0x1ed9db&&_0x41e89d&&(_0x2d1ee3['enableDefaultAttributesIntegration']('pasteFormat'),_0x2d1ee3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4a25d5=this['editor'],_0x11e462=_0x4a25d5['locale'];_0x4a25d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31e7bf=>{if('formatBlock'!=_0x31e7bf['type']&&'formatInline'!=_0x31e7bf['type'])return;const {data:_0x2d3585}=_0x31e7bf;if(_0x2d3585&&'pasteFormat'===_0x2d3585['commandName']){const _0x2c1812=[],_0x598f33=_0x2d3585['commandParams'][0x0];for(const [_0x1d7544,_0x1c3e57]of Object['entries'](_0x598f33))_0x2c1812['push'](so(_0x4a25d5,_0x1d7544,_0x1c3e57));return _0x2c1812['length']?{'type':'format','content':o(_0x11e462,'*Set\x20format\x20to:*\x20%0',_0x2c1812['join'](',\x20'))}:{'type':'format','content':o(_0x11e462,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1cd21f,_0x26c31f,_0x26d429){const _0xa0c0ce=_0x1cd21f['locale']['t'],_0x1844d3=_0x26c31f['split'](/(?=[A-Z])/)['join']('\x20'),_0x16f254=_0xa0c0ce(_0x1844d3['charAt'](0x0)['toUpperCase']()+_0x1844d3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x26d429)return _0x16f254;if('fontColor'===_0x26c31f||'fontBackgroundColor'===_0x26c31f){const _0x412fa9=_0x336a05(_0x1cd21f['config']['get']('fontColor.colors'))['find'](_0x340b28=>_0x340b28['model']==_0x26d429);return _0x16f254+'\x20('+(_0x412fa9?_0xa0c0ce(_0x412fa9['label'])['toLowerCase']():_0x26d429)+')';}if('fontSize'===_0x26c31f&&isNaN(parseFloat(_0x26d429))){const _0x1f4346=_0x1cd21f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1cd21f['config']['get']('fontSize.options'))['find'](_0x13df49=>_0x13df49['model']==_0x26d429);return _0x16f254+'\x20('+(_0x1f4346?_0xa0c0ce(_0x1f4346['title'])['toLowerCase']():_0x26d429)+')';}return _0x16f254+'\x20('+_0x26d429+')';}class tt extends _0x152a51{['_headingOptions'];['afterInit'](){const _0x233af3=this['editor'];if(!_0x233af3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x233af3['config']['get']('heading.options');const _0xaafe78=_0x233af3['locale'],_0x38ce89=_0x233af3['plugins']['get']('TrackChangesEditing');_0x38ce89['enableDefaultAttributesIntegration']('heading');for(const _0x535799 of this['_headingOptions'])'paragraph'!=_0x535799['model']&&_0x38ce89['descriptionFactory']['registerElementLabel'](_0x535799['model'],_0x26ff37=>{const _0x25d289=this['_getHeadingLevel'](_0x535799['model']);return null!==_0x25d289?_0x3257f8(_0x26ff37,_0x25d289):_0x4b7e25(_0x26ff37,_0x535799['title']);});function _0x3257f8(_0x453d06,_0x575bd8){return o(_0xaafe78,'ELEMENT_HEADING',[_0x453d06,_0x575bd8]);}function _0x4b7e25(_0x25f7f9,_0x3910fe){return o(_0xaafe78,'ELEMENT_HEADING_CUSTOM',[_0x25f7f9,_0x3910fe]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a2542=this['editor'],_0x367700=_0x4a2542['locale'];function _0x3405cd(_0x4fe353,_0x4000cc){return o(_0x367700,'ELEMENT_HEADING_CUSTOM',[_0x4fe353,_0x4000cc]);}_0x4a2542['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x415bc5=>{if('formatBlock'!=_0x415bc5['type'])return;const {data:_0x490eda}=_0x415bc5;if(_0x490eda&&'heading'==_0x490eda['commandName']){const _0x35f5bb=_0x490eda['commandParams'][0x0]['value'],_0x5cb2dd=this['_getHeadingLevel'](_0x35f5bb);if(null!==_0x5cb2dd)return{'type':'format','content':o(_0x367700,'*Change\x20to:*\x20%0',(_0x4a0f73=0x1,_0x47ea01=_0x5cb2dd,o(_0x367700,'ELEMENT_HEADING',[_0x4a0f73,_0x47ea01])))};const _0x24fd35=this['_headingOptions']['find'](_0x381a3d=>_0x381a3d['model']===_0x35f5bb)['title'];return{'type':'format','content':o(_0x367700,'*Change\x20to:*\x20%0',_0x3405cd(0x1,_0x24fd35))};}var _0x4a0f73,_0x47ea01;});}['_getHeadingLevel'](_0x2dc55b){const _0x43e721=_0x2dc55b['match'](/^heading(\d+)/);if(_0x43e721)return _0x43e721[0x1];const _0x27bb58=this['_headingOptions']?.['find'](_0xb59075=>_0xb59075['model']==_0x2dc55b);if(_0x27bb58&&_0x27bb58['view']){const _0x275d06=_0x27bb58['view'],_0x4a077d=(_0x275d06['name']??_0x275d06)['match'](/^h(\d+)/);if(_0x4a077d)return _0x4a077d[0x1];}return null;}}class et extends _0x152a51{['afterInit'](){const _0x49327d=this['editor'];if(!_0x49327d['plugins']['has']('HighlightEditing'))return;const _0x1001a7=_0x49327d['plugins']['get']('TrackChangesEditing'),_0x2d816f=_0x49327d['locale'];_0x1001a7['enableDefaultAttributesIntegration']('highlight'),_0x1001a7['registerInlineAttribute']('highlight'),_0x1001a7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2d816f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x130e9b=this['editor'],_0x1f4a73=_0x130e9b['locale'];_0x130e9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6f7103=>{if('formatInline'!=_0x6f7103['type'])return;const {data:_0x4900cb}=_0x6f7103;if(_0x4900cb&&'highlight'==_0x4900cb['commandName']){const _0xa75557=_0x1f4a73['t'],_0x53747d=_0x4900cb['commandParams'][0x0]['value'];if(_0x53747d){const _0x5c3f1c=_0x130e9b['config']['get']('highlight.options')['find'](_0x533e3a=>_0x533e3a['model']==_0x53747d),_0xcbd2ae=_0xa75557(_0x5c3f1c['title'])['toLowerCase']();return{'type':'format','content':o(_0x1f4a73,'*Set\x20highlight:*\x20%0',_0xcbd2ae),'color':{'value':_0x5c3f1c['color'],'title':_0x5c3f1c['title']}};}return{'type':'format','content':o(_0x1f4a73,'*Remove\x20highlight*',o(_0x1f4a73,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x152a51{['afterInit'](){const _0x3c6b80=this['editor'];if(!_0x3c6b80['plugins']['has']('HorizontalLineEditing'))return;_0x3c6b80['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3c96fb=_0x3c6b80['plugins']['get']('TrackChangesEditing'),_0x56549f=_0x3c6b80['locale'];_0x3c96fb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x20f0b3=>o(_0x56549f,'ELEMENT_HORIZONTAL_LINE',_0x20f0b3)),_0x3c6b80['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x338c21,{writer:_0x4821ea,options:_0x38c75e})=>{if(!_0x38c75e['showSuggestionHighlights'])return null;const _0xca0915=_0x4821ea['createContainerElement']('div'),_0x66d52f=_0x4821ea['createEmptyElement']('hr');return _0x4821ea['addClass']('ck-horizontal-line',_0xca0915),_0x4821ea['insert'](_0x4821ea['createPositionAt'](_0xca0915,0x0),_0x66d52f),_0xca0915;},'converterPriority':'high'});}}class st extends _0x152a51{['afterInit'](){const _0x172319=this['editor'];if(!_0x172319['plugins']['has']('HtmlEmbed'))return;const _0xeac273=_0x172319['plugins']['get']('TrackChangesEditing'),_0x3f043a=_0x172319['locale'];_0xeac273['descriptionFactory']['registerElementLabel']('rawHtml',_0x1148bb=>o(_0x3f043a,'ELEMENT_HTML_EMBED',_0x1148bb)),_0xeac273['enableDefaultAttributesIntegration']('htmlEmbed'),_0xeac273['registerBlockAttribute']('value'),_0xeac273['descriptionFactory']['registerDescriptionCallback'](_0x474b85=>{if('attribute'!=_0x474b85['type'])return;const {data:_0x24db58}=_0x474b85;if(_0x24db58&&'value'==_0x24db58['key']&&_0x474b85['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x332563=o(_0x3f043a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f043a,'*Change\x20%0\x20content*',_0x332563)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x552372=this['editor'],_0x8ec65b=_0x552372['locale'];_0x552372['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a0d3=>{if('formatBlock'!=_0x19a0d3['type'])return;const {data:_0x15f39b}=_0x19a0d3;if(_0x15f39b&&'htmlEmbed'==_0x15f39b['commandName']){const _0x21d4d4=o(_0x8ec65b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x8ec65b,'*Change\x20%0\x20content*',_0x21d4d4)};}});}}class nt extends _0x152a51{['afterInit'](){const _0xd33b3a=this['editor'];if(!_0xd33b3a['plugins']['has']('ImageEditing'))return;const _0x42d8cc=_0xd33b3a['plugins']['get']('TrackChangesEditing'),_0x59fd83=_0xd33b3a['plugins']['get']('ImageUtils'),_0xc99037=_0xd33b3a['locale'];_0x42d8cc['enableCommand']('insertImage'),_0x42d8cc['descriptionFactory']['registerElementLabel']('imageBlock',_0x561922=>o(_0xc99037,'ELEMENT_IMAGE',_0x561922)),_0x42d8cc['descriptionFactory']['registerElementLabel']('imageInline',_0x24444b=>o(_0xc99037,'ELEMENT_INLINE_IMAGE',_0x24444b)),_0x42d8cc['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xc99037,'ELEMENT_CAPTION')),_0xd33b3a['plugins']['has']('ImageUploadEditing')&&_0x42d8cc['enableCommand']('uploadImage'),_0xd33b3a['plugins']['has']('ImageBlockEditing')&&_0xd33b3a['plugins']['has']('ImageInlineEditing')&&(_0x42d8cc['enableCommand']('imageTypeInline',(_0x1bec57,_0x2946cc)=>{const _0x1ebe7f=_0x59fd83['getClosestSelectedImageElement'](_0xd33b3a['model']['document']['selection']);_0xd33b3a['model']['change'](()=>{_0x42d8cc['markBlockFormat'](_0x1ebe7f,{'commandName':'imageTypeInline','commandParams':[_0x2946cc]},[],'convertBlockImageToInline');});}),_0x42d8cc['enableCommand']('imageTypeBlock',(_0x551c39,_0x519059)=>{_0xd33b3a['model']['change'](_0x323629=>{let _0x29d38e=_0x59fd83['getClosestSelectedImageElement'](_0xd33b3a['model']['document']['selection']),_0xacd22f=_0x323629['createRangeOn'](_0x29d38e);const _0x51ae2f=_0x4c04c8['fromPosition'](_0xacd22f['start'],'toPrevious'),_0x5469ef=_0x4c04c8['fromPosition'](_0xacd22f['end'],'toNext');_0x42d8cc['forceDefaultExecution'](()=>_0x551c39(_0x519059)),_0x29d38e=_0x59fd83['getClosestSelectedImageElement'](_0xd33b3a['model']['document']['selection']),_0xacd22f=_0x323629['createRangeOn'](_0x29d38e);const _0x231db1=_0x323629['createRange'](_0x51ae2f,_0x5469ef);_0x51ae2f['detach'](),_0x5469ef['detach'](),_0x42d8cc['markBlockFormat'](_0x29d38e,{'commandName':'imageTypeInline','commandParams':[_0x519059]},[],'convertInlineImageToBlock'),_0x231db1['start']['isBefore'](_0xacd22f['start'])&&_0x42d8cc['markInsertion'](_0x323629['createRange'](_0x231db1['start'],_0xacd22f['start']),'convertInlineImageToBlock'),_0xacd22f['end']['isBefore'](_0x231db1['end'])&&_0x42d8cc['markInsertion'](_0x323629['createRange'](_0xacd22f['end'],_0x231db1['end']),'convertInlineImageToBlock');});}),_0x42d8cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x42d8cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x42d8cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x42d8cc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x42d8cc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x42d8cc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x300bb4])=>{const _0x5d38cf=_0x42d8cc['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x299cc8=_0x300bb4['start'],_0x45f797=_0x300bb4['end'];const _0x374738=_0xd33b3a['model']['schema']['getNearestSelectionRange'](_0x299cc8,'backward'),_0x1d58e8=_0xd33b3a['model']['schema']['getNearestSelectionRange'](_0x45f797,'forward');_0x374738['isCollapsed']&&(_0x299cc8=_0x374738['start']),_0x1d58e8['isCollapsed']&&(_0x45f797=_0x1d58e8['end']),_0x5d38cf([_0xd33b3a['model']['createRange'](_0x299cc8,_0x45f797)]);}),_0x42d8cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x33cf3c),_0x42d8cc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x33cf3c)),_0xd33b3a['plugins']['has']('ImageCaptionEditing')&&(_0x42d8cc['enableCommand']('toggleImageCaption',(_0x1ef7de,_0x419ec7)=>{const _0x4bb0dc=_0xd33b3a['plugins']['get']('ImageCaptionUtils');let _0x5f0c93=_0x59fd83['getClosestSelectedImageElement'](_0xd33b3a['model']['document']['selection']),_0x34aec2=_0x4bb0dc['getCaptionFromImageModelElement'](_0x5f0c93);_0xd33b3a['model']['change'](()=>{if(_0x34aec2)return void _0x42d8cc['markDeletion'](_0xd33b3a['model']['createRangeOn'](_0x34aec2));const _0x13e56b=_0x59fd83['isBlockImage'](_0x5f0c93);_0x1ef7de(_0x419ec7),_0x5f0c93=_0x59fd83['getClosestSelectedImageElement'](_0xd33b3a['model']['document']['selection']),_0x34aec2=_0x4bb0dc['getCaptionFromImageModelElement'](_0x5f0c93),_0x42d8cc['markInsertion'](_0xd33b3a['model']['createRangeOn'](_0x34aec2),_0x13e56b?null:'imageCaption');});}),_0x42d8cc['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x33cf3c));const _0x11bb39=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x8ead5b(_0x1b0112,_0x14e6e3){const _0x4820db=_0x11bb39['findIndex'](({type:_0x81ee8a,subType:_0x290daf})=>_0x1b0112['type']==_0x81ee8a&&_0x1b0112['subType']==_0x290daf),_0x21d91c=_0x11bb39['findIndex'](({type:_0x2ef27d,subType:_0x577443})=>_0x14e6e3['type']==_0x2ef27d&&_0x14e6e3['subType']==_0x577443);if(_0x4820db<0x0||_0x21d91c<0x0)return!0x1;const _0x1e751c=_0x1b0112['getFirstRange'](),_0x5cfaa7=_0x14e6e3['getFirstRange']();if((0x0==_0x4820db||0x1==_0x4820db)&&0x2==_0x21d91c&&_0x1e751c['isIntersecting'](_0x5cfaa7))return!0x0;if(0x2==_0x4820db&&0x3==_0x21d91c){const _0x55339a=_0x42d8cc['_findSuggestions'](_0x1e751c,'insertion')['filter'](({suggestion:_0x281b3c,meta:_0x5f2ef5})=>_0x5f2ef5['isOwn']&&'convertInlineImageToBlock'==_0x281b3c['subType']);if(_0x55339a['length']>0x1&&_0x5cfaa7['end']['isEqual'](_0x1e751c['start']))return!0x0;if(0x1==_0x55339a['length']&&(_0x1e751c['start']['isEqual'](_0x5cfaa7['end'])||_0x1e751c['end']['isEqual'](_0x5cfaa7['start'])))return!0x0;}if(0x3==_0x4820db&&0x3==_0x21d91c&&_0x1e751c['start']['isBefore'](_0x5cfaa7['start'])){const _0x52beb1=_0x1e751c['end']['nodeAfter'],_0x5db506=_0x5cfaa7['start']['nodeBefore'];return _0x59fd83['isBlockImage'](_0x52beb1)&&_0x52beb1===_0x5db506;}return!0x1;}function _0x33cf3c(_0x2dee0f,_0x55cdd3){return _0x8ead5b(_0x2dee0f,_0x55cdd3)?[_0x2dee0f,_0x55cdd3]:_0x8ead5b(_0x55cdd3,_0x2dee0f)?[_0x55cdd3,_0x2dee0f]:null;}_0xd33b3a['plugins']['has']('ImageResize')&&(_0x42d8cc['enableDefaultAttributesIntegration']('resizeImage'),_0x42d8cc['registerBlockAttribute']('resizedWidth'),_0x42d8cc['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xc99037,'FORMAT_IMAGE_SIZE'))),_0xd33b3a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x42d8cc['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x42d8cc['registerBlockAttribute']('alt')),_0x42d8cc['descriptionFactory']['registerDescriptionCallback'](_0x6884be=>{if(!!_0x11bb39['find'](({type:_0x4e78e3,subType:_0x46e58f})=>_0x6884be['type']==_0x4e78e3&&_0x6884be['subType']==_0x46e58f))return _0x6884be['previous']?{}:void 0x0;}),_0x42d8cc['descriptionFactory']['registerDescriptionCallback'](_0x3e17fe=>{if('insertion'==_0x3e17fe['type']||'deletion'==_0x3e17fe['type']){const _0x275cab=_0x3e17fe['getContainedElement']();if(_0x275cab&&_0x275cab['is']('element','caption'))return{'type':'insertion'==_0x3e17fe['type']?'addObject':'removeObject','element':_0x275cab,'quantity':0x1};}}),_0x42d8cc['descriptionFactory']['registerDescriptionCallback'](_0x3e89b9=>'formatBlock'==_0x3e89b9['type']&&'convertInlineImageToBlock'==_0x3e89b9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3e89b9['type']&&'convertBlockImageToInline'==_0x3e89b9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x42d8cc['descriptionFactory']['registerDescriptionCallback'](_0x4395d9=>{if('attribute'!=_0x4395d9['type'])return;const {data:_0x9f7a9a}=_0x4395d9;if(!_0x9f7a9a||'alt'!=_0x9f7a9a['key'])return;const _0x239508=_0x9f7a9a['newValue'];return _0x239508?{'type':'format','content':o(_0xc99037,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x239508+'\x22')}:{'type':'format','content':o(_0xc99037,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48b1d6=this['editor'],_0x5339af=_0x48b1d6['locale'];_0x48b1d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xce8b0=>{if('formatBlock'!=_0xce8b0['type']&&'formatInline'!=_0xce8b0['type'])return;const {data:_0x1956fd}=_0xce8b0;if(_0x1956fd){if('imageTextAlternative'==_0x1956fd['commandName']){const _0x340e74=_0x1956fd['commandParams'][0x0]['newValue'];return _0x340e74?{'type':'format','content':o(_0x5339af,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x340e74+'\x22')}:{'type':'format','content':o(_0x5339af,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1956fd['commandName']){const _0x59871c=_0x1956fd['commandParams'][0x0]['width'];return _0x59871c?{'type':'format','content':o(_0x5339af,'*Set\x20image\x20width:*\x20%0',_0x59871c)}:{'type':'format','content':o(_0x5339af,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x152a51{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x436dde=this['editor']['locale'],_0x5baf7b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5baf7b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5baf7b['registerBlockAttribute']('src'),_0x5baf7b['descriptionFactory']['registerDescriptionCallback'](_0x5d0d70=>{if('attribute'!=_0x5d0d70['type'])return;const {data:_0x24f436}=_0x5d0d70;return _0x24f436&&'src'==_0x24f436['key']?_0x24f436['newValue']&&_0x24f436['oldValue']?{'type':'format','content':o(_0x436dde,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x7d171b=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d171b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x7d171b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7d171b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x7d171b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1e8e=this['editor'],_0x427875=_0x1e1e8e['locale'];_0x1e1e8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b20a0=>{if('formatBlock'!=_0x1b20a0['type']&&'formatInline'!=_0x1b20a0['type'])return;const {data:_0x4314ef}=_0x1b20a0;if(!_0x4314ef||'replaceImageSource'!=_0x4314ef['commandName'])return;return{'type':'format','content':o(_0x427875,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x152a51{['afterInit'](){const _0x3758da=this['editor'];if(!_0x3758da['plugins']['has']('ImageStyleEditing'))return;const _0x2cc260=_0x3758da['plugins']['get']('TrackChangesEditing'),_0x58697b=_0x3758da['plugins']['get']('ImageUtils'),_0x59e8d4={};_0x2cc260['enableCommand']('imageStyle',(_0x179109,_0x3d1d9f)=>{const _0x320056=_0x3758da['plugins']['get']('Users')['me'],_0x1f414e=_0x3758da['commands']['get']('imageStyle');let _0x57527a=_0x58697b['getClosestSelectedImageElement'](_0x3758da['model']['document']['selection']),_0x272ecc=_0x3758da['model']['createRangeOn'](_0x57527a),_0x4edc5e=_0x1f414e['value'];if(_0x4edc5e==_0x3d1d9f['value'])return;const _0x15ac12={'commandName':'imageStyle','commandParams':[_0x3d1d9f],'formatGroupId':_0x2a94db()};_0x3758da['model']['change'](()=>{if(_0x2cc260['getSuggestions']()['filter'](_0x306a1b=>_0x306a1b['isInContent']&&_0x320056==_0x306a1b['author']&&('formatBlock'==_0x306a1b['type']||'formatInline'==_0x306a1b['type'])&&('imageStylePreApply'==_0x306a1b['subType']||'imageStylePostApply'==_0x306a1b['subType'])&&_0x306a1b['getFirstRange']()['isEqual'](_0x272ecc))['forEach'](_0x51ba21=>_0x2cc260['discardSuggestion'](_0x51ba21['head'])),_0x57527a=_0x58697b['getClosestSelectedImageElement'](_0x3758da['model']['document']['selection']),_0x272ecc=_0x3758da['model']['createRangeOn'](_0x57527a),_0x1f414e['refresh'](),_0x3758da['commands']['get']('imageTypeInline')['refresh'](),_0x3758da['commands']['get']('imageTypeBlock')['refresh'](),_0x4edc5e=_0x1f414e['value'],_0x4edc5e!=_0x3d1d9f['value'])return _0x58697b['isInlineImage'](_0x57527a)&&_0x1f414e['shouldConvertImageType'](_0x3d1d9f['value'],_0x57527a)?(_0x179109({..._0x3d1d9f,'setImageSizes':!0x1}),_0x57527a=_0x58697b['getClosestSelectedImageElement'](_0x3758da['model']['document']['selection']),void _0x2cc260['markBlockFormat'](_0x57527a,{..._0x15ac12,'commandReversedParams':[{'value':_0x4edc5e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x58697b['isBlockImage'](_0x57527a)?_0x2cc260['markBlockFormat'](_0x57527a,_0x15ac12,[],'imageStylePostApply'):_0x2cc260['markInlineFormat'](_0x272ecc,_0x15ac12,'imageStylePostApply'));});});for(const _0x532a4b of _0x3758da['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x59e8d4[_0x532a4b['name']]=_0x532a4b['title']['toLowerCase']();_0x2cc260['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2cc260['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2cc260['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2cc260['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x52efc8])=>{_0x58697b['setImageNaturalSizeAttributes'](_0x52efc8['getContainedElement']());}),_0x2cc260['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xb9cdd0,_0xfeabb5)=>{_0x2cc260['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xb9cdd0,{'commandName':_0xfeabb5['commandName'],'commandParams':_0xfeabb5['commandReversedParams']});}),_0x2cc260['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1333db,_0x3550a0){if(_0x2220c1(_0x1333db,_0x3550a0))return[_0x1333db,_0x3550a0];if(_0x2220c1(_0x3550a0,_0x1333db))return[_0x3550a0,_0x1333db];return null;});const _0x4a3740=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2220c1(_0x17e5cd,_0x4ec98a){const _0x3433d0=_0x4a3740['findIndex'](({type:_0x3a1d01,subType:_0x2c1ed6})=>_0x17e5cd['type']==_0x3a1d01&&_0x17e5cd['subType']==_0x2c1ed6),_0x3c5559=_0x4a3740['findIndex'](({type:_0x1da002,subType:_0x5905ed})=>_0x4ec98a['type']==_0x1da002&&_0x4ec98a['subType']==_0x5905ed);if(_0x3433d0<0x0||_0x3c5559<0x0)return!0x1;const _0xe42883=_0x17e5cd['getFirstRange'](),_0x589ef8=_0x4ec98a['getFirstRange']();if((0x0==_0x3433d0||0x1==_0x3433d0)&&0x2==_0x3c5559&&_0xe42883['isIntersecting'](_0x589ef8))return!0x0;if(0x2==_0x3433d0&&0x3==_0x3c5559){const _0x3ae03e=_0x2cc260['_findSuggestions'](_0xe42883,'insertion')['filter'](({suggestion:_0x21ed6d,meta:_0x409509})=>_0x409509['isOwn']&&'convertInlineImageToBlock'==_0x21ed6d['subType']);if(_0x3ae03e['length']>0x1&&_0x589ef8['end']['isEqual'](_0xe42883['start']))return!0x0;if(0x1==_0x3ae03e['length']&&(_0xe42883['start']['isEqual'](_0x589ef8['end'])||_0xe42883['end']['isEqual'](_0x589ef8['start'])))return!0x0;}if(0x3==_0x3433d0&&0x3==_0x3c5559&&_0xe42883['start']['isBefore'](_0x589ef8['start'])){const _0x549923=_0xe42883['end']['nodeAfter'],_0x4da768=_0x589ef8['start']['nodeBefore'];return _0x58697b['isBlockImage'](_0x549923)&&_0x549923===_0x4da768;}return!0x1;}_0x3758da['model']['document']['registerPostFixer'](()=>{let _0x2da322=!0x1;const _0x26be78=Array['from'](_0x3758da['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ec2ce,data:_0x5c4cec}of _0x26be78){const {group:_0x9ea75a,type:_0x5d6243,subType:_0x5a6145,id:_0x3ad869}=_0x2cc260['_splitMarkerName'](_0x3ec2ce);if('suggestion'==_0x9ea75a&&_0x2cc260['hasSuggestion'](_0x3ad869)){if('formatBlock'==_0x5d6243&&('imageStylePreApply'==_0x5a6145||'imageStylePostApply'==_0x5a6145)){const _0x5b4665=_0x2cc260['getSuggestion'](_0x3ad869);if(_0x5c4cec['newRange']){const _0x4c9efc=_0x5b4665['getFirstRange']()['getContainedElement']();if(_0x58697b['isBlockImage'](_0x4c9efc))continue;_0x2cc260['discardSuggestion'](_0x5b4665),_0x2da322=!0x0;}}if('insertion'==_0x5d6243&&'imageCaption'==_0x5a6145&&!_0x5c4cec['newRange']){const _0x3d4a31=_0x2cc260['getSuggestion'](_0x3ad869);_0x3d4a31['next']&&_0x3d4a31['next']['isInContent']&&(_0x2cc260['discardSuggestion'](_0x3d4a31['next']),_0x2da322=!0x0);}}}return _0x2da322;}),this['_registerLegacyDescription'](_0x59e8d4);}['_registerLegacyDescription'](_0x286401){const _0x2e78c4=this['editor'],_0x276179=_0x2e78c4['locale'];_0x2e78c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x303ac8=>{if('formatBlock'!=_0x303ac8['type']&&'formatInline'!=_0x303ac8['type'])return;const {data:_0x49d89d}=_0x303ac8;if(!_0x49d89d||'imageStyle'!=_0x49d89d['commandName'])return;const _0xc6e54f=_0x49d89d['commandParams'][0x0]['value'];return _0x2a47d0('side'===_0xc6e54f?o(_0x276179,'FORMAT_SIDE_IMAGE'):_0x286401[_0xc6e54f]||_0xc6e54f);function _0x2a47d0(_0x193343){return{'type':'format','content':o(_0x276179,'*Format:*\x20%0',_0x193343)};}});}}class at extends _0x152a51{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3dc364){super(_0x3dc364),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4ce27a=this['editor'],_0x5b1e49=_0x4ce27a['commands']['get']('importWord'),_0x1edbeb=_0x4ce27a['commands']['get']('trackChanges');_0x5b1e49&&(_0x5b1e49['on']('execute',(_0x4a67a5,[,_0x695ce7])=>{this['_trackChangesValueDuringImport']=_0x1edbeb['value'],_0x695ce7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b1e49,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b1e49,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1edbeb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4ce27a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x41ec2d,_0xa6d5f8){const {suggestions:_0x8c2b71}=_0xa6d5f8,_0x8fdbd8=this['editor']['commands']['get']('trackChanges'),_0x6c8b45=_0x8fdbd8['value'];this['_trackChangesValueDuringImport']!==_0x6c8b45&&(_0x8fdbd8['execute'](),this['_trackChangesExecuted']=!0x0),_0x8c2b71&&_0x8c2b71['forEach'](({id:_0x12ba61,type:_0x3e17f6,author:_0x5a86a6,created_at:_0x409f1e})=>{const _0x37d84c={'id':_0x12ba61,'type':_0x3e17f6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5a86a6,'createdAt':_0x409f1e?new Date(_0x409f1e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x37d84c);});}}class ct extends _0x152a51{['afterInit'](){const _0x41d4b5=this['editor'],_0x1950ea=_0x41d4b5['plugins']['get']('TrackChangesEditing');if(_0x41d4b5['plugins']['has']('IndentEditing')&&(_0x1950ea['enableCommand']('indent'),_0x1950ea['enableCommand']('outdent')),_0x41d4b5['plugins']['has']('IndentBlock')){for(const _0x55ed66 of['indentBlock','outdentBlock'])_0x1950ea['enableDefaultAttributesIntegration'](_0x55ed66);}const _0x36d8fa=_0x41d4b5['locale'];_0x1950ea['registerBlockAttribute']('blockIndent'),_0x1950ea['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x36d8fa,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf0469=this['editor'],_0x4d3d8c=_0xcf0469['locale'],_0x5534ec=_0xcf0469['plugins']['get']('TrackChangesEditing');_0x5534ec['descriptionFactory']['registerDescriptionCallback'](_0x88d08b=>{if('formatBlock'!=_0x88d08b['type'])return;const {data:_0x38519a}=_0x88d08b;if(!_0x38519a)return;if('indentBlock'!=_0x38519a['commandName']&&'outdentBlock'!=_0x38519a['commandName'])return;const _0x47d09f=_0x88d08b['getItems']()[0x0],_0x1c5cca=_0x5534ec['descriptionFactory']['getItemLabel'](_0x47d09f);return'indentBlock'==_0x38519a['commandName']?{'type':'format','content':o(_0x4d3d8c,'*Indent:*\x20%0',_0x1c5cca)}:'outdentBlock'==_0x38519a['commandName']?{'type':'format','content':o(_0x4d3d8c,'*Outdent:*\x20%0',_0x1c5cca)}:void 0x0;});}}class ut extends _0x152a51{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x152a51{['afterInit'](){const _0x315c9e=this['editor'];if(!_0x315c9e['plugins']['has']('LinkEditing'))return;const _0x30f33d=_0x315c9e['plugins']['get']('TrackChangesEditing'),_0x33a809=_0x315c9e['commands']['get']('link');_0x30f33d['enableDefaultAttributesIntegration']('link'),_0x30f33d['enableDefaultAttributesIntegration']('unlink'),_0x30f33d['registerInlineAttribute']('linkHref');for(const _0xcdd0f6 of _0x33a809['manualDecorators'])_0x30f33d['registerInlineAttribute'](_0xcdd0f6['id']),_0x30f33d['descriptionFactory']['registerAttributeLabel'](_0xcdd0f6['id'],'link\x20('+_0xcdd0f6['label']['toLowerCase']()+')');_0x30f33d['descriptionFactory']['registerDescriptionCallback'](_0x22c394=>{if('attribute'!=_0x22c394['type'])return;const {data:_0x1c5570}=_0x22c394;if(!_0x1c5570||'linkHref'!=_0x1c5570['key'])return;const _0x4c52c0=_0x1c5570['newValue'],_0x26c3d0=_0x315c9e['locale'];return{'type':'format','content':null==_0x4c52c0?o(_0x26c3d0,'*Remove\x20link*'):o(_0x26c3d0,'*Set\x20link:*\x20%0','\x22'+_0x4c52c0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x469b47=this['editor'],_0x219a33=_0x469b47['locale'];_0x469b47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55eaee=>{if('formatInline'!=_0x55eaee['type'])return;const {data:_0xec903b}=_0x55eaee;if(_0xec903b){if('link'==_0xec903b['commandName']){const _0xbd184c=_0xec903b['commandParams'][0x0];return{'type':'format','content':o(_0x219a33,'*Set\x20link:*\x20%0','\x22'+_0xbd184c+'\x22')};}return'unlink'==_0xec903b['commandName']?{'type':'format','content':o(_0x219a33,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x152a51{['afterInit'](){const _0x1fdd8f=this['editor'],_0x39aa95=_0x1fdd8f['locale'];if(!_0x1fdd8f['plugins']['has']('LegacyListEditing'))return;const _0x279e72=_0x1fdd8f['plugins']['get']('TrackChangesEditing'),_0x198eb8=_0x1fdd8f['plugins']['has']('LegacyTodoListEditing');function _0x27179a(_0x4100c5){return()=>{const _0x4e3af2=_0x1fdd8f['model']['document']['selection'],_0xd97b3b=_0x1fdd8f['commands']['get'](_0x4100c5);if(_0xd97b3b['value'])return void _0x1fdd8f['execute']('paragraph',{});const _0x593f59=_0x4100c5['slice'](0x0,-0x4),_0xa037d0=function(_0x2f1a97,_0x542f96,_0x5cf849){let _0x3a4ee8=Array['from'](_0x2f1a97)['filter'](_0x50624a=>function(_0x4e030a,_0x18b270){return _0x18b270['checkChild'](_0x4e030a['parent'],'listItem')&&!_0x18b270['isObject'](_0x4e030a);}(_0x50624a,_0x5cf849));_0x3a4ee8=_0x3a4ee8['filter'](_0x450b23=>!_0x450b23['is']('element','listItem')||_0x450b23['getAttribute']('listType')!=_0x542f96);const _0x22a20a=new Set();for(const _0x296dd2 of _0x3a4ee8)_0x296dd2['is']('element','listItem')?_0x22a20a['add'](fe(_0x296dd2)):_0x22a20a['add'](_0x296dd2);return Array['from'](_0x22a20a);}(_0x4e3af2['getSelectedBlocks'](),_0x593f59,_0x1fdd8f['model']['schema']);_0x1fdd8f['model']['change'](()=>{for(const _0x352ff9 of _0xa037d0)_0x279e72['markBlockFormat'](_0x352ff9,{'commandName':_0x4100c5,'commandParams':[{'forceValue':!_0xd97b3b['value']}],'formatGroupId':'blockName'},ue(_0x352ff9));});};}function _0x3f5865(_0xccb9ea){return()=>{const _0x386b06=function(_0x590fd7){let _0x16ddc8=Array['from'](_0x590fd7);const _0x56cb11=_0x16ddc8['findIndex'](_0x5efeb7=>'listItem'!=_0x5efeb7['name']);return _0x56cb11>-0x1&&(_0x16ddc8=_0x16ddc8['slice'](0x0,_0x56cb11)),_0x16ddc8;}(_0x1fdd8f['model']['document']['selection']['getSelectedBlocks']()),_0x59ca4a=_0x1fdd8f['model']['createRange'](_0x1fdd8f['model']['createPositionAt'](_0x386b06[0x0],'before'),_0x1fdd8f['model']['createPositionAt'](_0x386b06[_0x386b06['length']-0x1],'end'));_0x1fdd8f['model']['change'](()=>{_0x279e72['markBlockFormat'](_0x59ca4a,{'commandName':_0xccb9ea,'commandParams':[],'formatGroupId':'listIndent'},function(_0x380087){const _0x187a37=new Set();for(const _0x552338 of _0x380087){let _0x3edfc8=_0x552338['nextSibling'];for(;_0x3edfc8&&_0x3edfc8['getAttribute']('listIndent')>_0x552338['getAttribute']('listIndent');)_0x187a37['add'](_0x3edfc8),_0x3edfc8=_0x3edfc8['nextSibling'];}return Array['from'](_0x187a37);}(_0x386b06));});};}_0x279e72['enableCommand']('numberedList',_0x27179a('numberedList')),_0x279e72['enableCommand']('bulletedList',_0x27179a('bulletedList')),_0x198eb8&&_0x279e72['enableCommand']('todoList',_0x27179a('todoList')),_0x279e72['enableCommand']('indentList',_0x3f5865('indentList')),_0x279e72['enableCommand']('outdentList',_0x3f5865('outdentList')),_0x198eb8&&_0x279e72['enableCommand']('checkTodoList',()=>{const _0x34e8ac=_0x1fdd8f['commands']['get']('checkTodoList'),_0x14b902=Array['from'](_0x34e8ac['_selectedElements']);_0x14b902['filter'](_0x4130b0=>_0x4130b0['getAttribute']('todoListChecked')!=_0x34e8ac['value']),_0x1fdd8f['model']['change'](()=>{for(const _0x58816c of _0x14b902)_0x279e72['markBlockFormat'](_0x58816c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x34e8ac['value']}]});});}),_0x279e72['descriptionFactory']['registerElementLabel']('listItem',_0x27f987=>o(_0x39aa95,'ELEMENT_LIST_ITEM',_0x27f987)),_0x279e72['descriptionFactory']['registerDescriptionCallback'](_0x99ba8a=>{if('formatBlock'!=_0x99ba8a['type']&&'formatInline'!=_0x99ba8a['type'])return;const {data:_0x29d36b}=_0x99ba8a;if(_0x29d36b){if('numberedList'==_0x29d36b['commandName']||'bulletedList'==_0x29d36b['commandName']||'todoList'==_0x29d36b['commandName'])switch(_0x29d36b['commandName']['replace']('List','')){case'bulleted':return _0x3fe699(o(_0x39aa95,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3fe699(o(_0x39aa95,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3fe699(o(_0x39aa95,'ELEMENT_TODO_LIST'));}if('indentList'==_0x29d36b['commandName'])return{'type':'format','content':o(_0x39aa95,'*Indent:*\x20%0',o(_0x39aa95,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x29d36b['commandName'])return{'type':'format','content':o(_0x39aa95,'*Outdent:*\x20%0',o(_0x39aa95,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x29d36b['commandName'])return _0x29d36b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39aa95,'*Check\x20item*')}:{'type':'format','content':o(_0x39aa95,'*Uncheck\x20item*')};}function _0x3fe699(_0x2c5fb3){return{'type':'format','content':o(_0x39aa95,'*Change\x20to:*\x20%0',_0x2c5fb3)};}});}}function fe(_0x64812a){const _0x52c3ae=_0x64812a['getAttribute']('listIndent');if(0x0==_0x52c3ae)return _0x64812a;let _0x56c932=_0x64812a;for(;_0x64812a['previousSibling']&&_0x64812a['previousSibling']['is']('element','listItem');){const _0x3b8081=_0x64812a['previousSibling']['getAttribute']('listIndent');if(_0x3b8081==_0x52c3ae)_0x56c932=_0x64812a['previousSibling'];else{if(_0x3b8081<_0x52c3ae)break;}_0x64812a=_0x64812a['previousSibling'];}return _0x56c932;}function ue(_0xa2bcca){const _0x54fadc=[];if(_0xa2bcca['is']('element','listItem')&&_0xa2bcca['getAttribute']('listIndent')>0x0){let _0x1a3d40=_0xa2bcca['nextSibling'];for(;_0x1a3d40&&'listItem'==_0x1a3d40['name']&&_0x1a3d40['getAttribute']('listIndent')==_0xa2bcca['getAttribute']('listIndent');)_0x54fadc['push'](_0x1a3d40),_0x1a3d40=_0x1a3d40['nextSibling'];}return _0x54fadc;}class W extends _0x152a51{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1a7f78=this['editor']['config']['get']('list.properties'),_0x1152a6=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a7f78['styles']&&_0x1152a6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1a7f78['reversed']&&_0x1152a6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1a7f78['startIndex']&&_0x1152a6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1152a6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x35840d,_0x28d9ad={}){const _0x1355e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7efd22=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1355e0['markMultiRangeBlockFormat'](_0x7efd22,{'commandName':'listStyle','commandParams':[{'type':_0x28d9ad['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4b7845,_0x3d233e={}){const _0x4cce68=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b2ee2=this['_getSuggestionBlocks'](_0xd263c3=>_0xd263c3['is']('element','listItem')&&'numbered'===_0xd263c3['getAttribute']('listType'));if(_0x1b2ee2['length']<0x1)return;const _0x2d0acc=_0x1b2ee2['map'](_0x2d0e7e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d0e7e,'before'),this['editor']['model']['createPositionAt'](_0x2d0e7e,0x0)));this['editor']['model']['change'](()=>{_0x4cce68['markMultiRangeBlockFormat'](_0x2d0acc,{'commandName':'listReversed','commandParams':[{'reversed':_0x3d233e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1b503b,_0x55c968={}){const _0x2d51db=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd1adb9=this['_getSuggestionBlocks'](_0x5abef3=>_0x5abef3['is']('element','listItem')&&'numbered'===_0x5abef3['getAttribute']('listType'));if(_0xd1adb9['length']<0x1)return;const _0x400a00=_0xd1adb9['map'](_0x31a757=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31a757,'before'),this['editor']['model']['createPositionAt'](_0x31a757,0x0)));this['editor']['model']['change'](()=>{_0x2d51db['markMultiRangeBlockFormat'](_0x400a00,{'commandName':'listStart','commandParams':[{'startIndex':_0x55c968['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5e6a73){if('formatBlock'!=_0x5e6a73['type']&&'formatInline'!=_0x5e6a73['type'])return;const _0x4a294b=this['editor']['locale'],{data:_0x3145b3}=_0x5e6a73;if(!_0x3145b3)return;let _0x19569f,_0x1c9189;switch(_0x3145b3['commandName']){case'listStyle':_0x19569f='*Change\x20to:*\x20%0',_0x1c9189={'type':'format','content':o(_0x4a294b,_0x19569f,o(_0x4a294b,this['_getTranslationKeyForListStyle'](_0x3145b3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x19569f=_0x3145b3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c9189={'type':'format','content':o(_0x4a294b,_0x19569f)};break;case'listStart':_0x19569f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c9189={'type':'format','content':o(_0x4a294b,_0x19569f,_0x3145b3['commandParams'][0x0]['startIndex'])};}return _0x1c9189;}['_getSuggestionBlocksForListStyle'](){const _0x2294ff=this['editor']['plugins']['get']('LegacyListUtils');let _0xc3b1e6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xc3b1e6[0x0]?.['is']('element','listItem')&&_0xc3b1e6['unshift'](..._0x2294ff['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xc3b1e6[_0xc3b1e6['length']-0x1]?.['is']('element','listItem')&&_0xc3b1e6['push'](..._0x2294ff['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xc3b1e6=[...new Set(_0xc3b1e6)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xc3b1e6=_0xc3b1e6['filter'](_0x2f1c00=>_0x2f1c00['is']('element','listItem'))),_0xc3b1e6;}['_getSuggestionBlocks'](_0x520541){const _0x2e3437=this['editor']['plugins']['get']('LegacyListUtils');let _0xf7fe4d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x520541)['map'](_0x2f7d7e=>{const _0x135f6e=this['editor']['model']['createPositionAt'](_0x2f7d7e,0x0);return[..._0x2e3437['getSiblingNodes'](_0x135f6e,'backward'),..._0x2e3437['getSiblingNodes'](_0x135f6e,'forward')];})['flat']();return _0xf7fe4d=[...new Set(_0xf7fe4d)],_0xf7fe4d;}['_getTranslationKeyForListStyle'](_0x57fd38){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x57fd38)||'default')['toUpperCase']()+'_LIST_'+_0x57fd38['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x152a51{['afterInit'](){const _0x110c6c=this['editor'];if(!_0x110c6c['plugins']['has']('MediaEmbedEditing'))return;const _0x46c732=_0x110c6c['plugins']['get']('TrackChangesEditing'),_0x36b803=_0x110c6c['locale'];_0x46c732['enableCommand']('mediaEmbed'),_0x46c732['descriptionFactory']['registerElementLabel']('media',_0x45148f=>o(_0x36b803,'ELEMENT_MEDIA',_0x45148f)),_0x110c6c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x68957e,{writer:_0x1aa63e,options:_0xa4a43f})=>{if(_0xa4a43f['showSuggestionHighlights'])return _0x1aa63e['createEmptyElement']('div');},'converterPriority':'high'}),_0x110c6c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x26dd8c,_0xbc86af,_0x3f1c0f)=>{_0x3f1c0f['options']['showSuggestionHighlights']&&_0x26dd8c['stop']();},{'priority':'high'});}}class mt extends _0x152a51{['afterInit'](){const _0x53253a=this['editor'];_0x53253a['plugins']['has']('MentionEditing')&&_0x53253a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x152a51{['afterInit'](){const _0x50a608=this['editor'];if(!_0x50a608['commands']['get']('insertMergeField'))return;_0x50a608['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0xa8b4b3=_0x50a608['plugins']['get']('TrackChangesEditing'),_0x1d75c9=_0x50a608['locale'];_0xa8b4b3['descriptionFactory']['registerElementLabel']('mergeField',_0x48707c=>o(_0x1d75c9,'ELEMENT_MERGE_FIELD',_0x48707c)),_0xa8b4b3['descriptionFactory']['registerDescriptionCallback'](_0x573536=>{if('insertion'!=_0x573536['type']&&'deletion'!=_0x573536['type'])return;const _0x4c2d8b=_0x573536['getContainedElement']();if(null==_0x4c2d8b)return;if(!_0x4c2d8b['is']('element','mergeField'))return;const _0x103f43=_0x50a608['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4c2d8b['getAttribute']('id'));return'insertion'==_0x573536['type']?{'type':'insertion','content':o(_0x1d75c9,'*Insert:*\x20%0','\x22'+_0x103f43+'\x22\x20'+o(_0x1d75c9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1d75c9,'*Remove:*\x20%0','\x22'+_0x103f43+'\x22\x20'+o(_0x1d75c9,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x152a51{['afterInit'](){const _0x837589=this['editor'],_0x1ebd0e=_0x837589['plugins']['get']('TrackChangesEditing');_0x837589['plugins']['has']('MultiLevelList')&&(_0x1ebd0e['enableDefaultAttributesIntegration']('multiLevelList'),_0x1ebd0e['registerBlockAttribute']('listMarkerStyle'),_0x1ebd0e['descriptionFactory']['registerDescriptionCallback'](_0x1db115=>this['handleDescriptions'](_0x1db115)));}['handleDescriptions'](_0x431549){const _0xd1432d=this['editor']['locale'],{data:_0x390bdd}=_0x431549,_0x3064c7={'type':'format','content':''};if(_0x390bdd&&'listMarkerStyle'==_0x390bdd['key']){if(!_0x390bdd['oldValue'])return{'type':'format','content':o(_0xd1432d,'*Set\x20format:*\x20%0',o(_0xd1432d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x390bdd['newValue']+')'};if(!_0x390bdd['newValue']){let _0x243cb2=_0x431549['head'];for(;_0x243cb2;){if(_0x243cb2['data']&&'listType'==_0x243cb2['data']['key']&&_0x243cb2['data']['newValue'])return _0x3064c7;_0x243cb2=_0x243cb2['next'];}return{'type':'format','content':o(_0xd1432d,'*Remove\x20format:*\x20%0',o(_0xd1432d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x390bdd['oldValue']+')'};}}}}class kt extends _0x152a51{['afterInit'](){const _0x4ce8d9=this['editor'];if(!_0x4ce8d9['plugins']['has']('PageBreakEditing'))return;_0x4ce8d9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x41b7db=_0x4ce8d9['plugins']['get']('TrackChangesEditing'),_0x4c9566=_0x4ce8d9['locale'];_0x41b7db['descriptionFactory']['registerElementLabel']('pageBreak',_0x2fcc79=>o(_0x4c9566,'ELEMENT_PAGE_BREAK',_0x2fcc79));}}class bt extends _0x152a51{['afterInit'](){const _0x2e7814=this['editor'];if(!_0x2e7814['plugins']['has']('Paragraph'))return;const _0x59bcd2=_0x2e7814['locale'],_0x360c68=_0x2e7814['plugins']['get']('TrackChangesEditing');_0x360c68['descriptionFactory']['registerElementLabel']('paragraph',_0x4013f4=>o(_0x59bcd2,'ELEMENT_PARAGRAPH',_0x4013f4)),_0x360c68['enableDefaultAttributesIntegration']('paragraph'),_0x360c68['enableCommand']('insertParagraph'),_0x2e7814['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2e7814),{'priority':'highest'}),_0x2e7814['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e4327,_0x5db20c,_0x3fc9df)=>{_0x3fc9df['options']['showSuggestionHighlights']&&nr(_0x2e7814,{'showActiveMarker':!0x1})(_0x2e4327,_0x5db20c,_0x3fc9df);},{'priority':'highest'});const _0x56f3e5=_0x360c68['descriptionFactory'];_0x56f3e5['registerDescriptionCallback'](_0x40dc6e=>{if('insertion'!==_0x40dc6e['type'])return;const {start:_0x18d10c,end:_0xbca485}=_0x40dc6e['getFirstRange']();if(!_0x18d10c['isTouching'](_0xbca485)||!_0x18d10c['nodeAfter'])return;const _0x38cf35=_0x2e7814['model']['schema'],_0xa1a37e=_0x18d10c['nodeAfter'];return _0x38cf35['isBlock'](_0xa1a37e)&&!_0x38cf35['isLimit'](_0xa1a37e)&&_0x38cf35['checkChild'](_0xa1a37e,'$text')?{'type':'insertion','content':o(_0x59bcd2,'*Insert:*\x20%0',_0x56f3e5['getItemLabel'](_0xa1a37e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b1d12=this['editor'],_0x30c71c=_0x5b1d12['locale'];_0x5b1d12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f90e3=>{if('formatBlock'!=_0x4f90e3['type'])return;const {data:_0x3584b1}=_0x4f90e3;return _0x3584b1&&'paragraph'==_0x3584b1['commandName']?{'type':'format','content':o(_0x30c71c,'*Change\x20to:*\x20%0',o(_0x30c71c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x30654c,{showActiveMarker:_0x4a85a2=!0x0}={}){return(_0x25c678,_0x40ac07,_0x322cb6)=>{const _0x132e12=_0x30654c['plugins']['get']('TrackChangesEditing'),_0x2d982a=_0x40ac07['markerRange']['start'],_0x1d2b31=_0x40ac07['markerRange']['end'],_0x5df95a=_0x30654c['model']['schema'];if(!_0x2d982a['isTouching'](_0x1d2b31)||!_0x2d982a['nodeAfter'])return;const _0x41d6a3=_0x2d982a['nodeAfter'];if(_0x5df95a['isBlock'](_0x41d6a3)&&!_0x5df95a['isLimit'](_0x41d6a3)&&_0x5df95a['checkChild'](_0x41d6a3,'$text')){if(!_0x322cb6['consumable']['consume'](_0x40ac07['markerRange'],_0x25c678['name']))return;const {authorId:_0x992190}=_0x132e12['_splitMarkerName'](_0x40ac07['markerName']),_0x35ea55=_0x322cb6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x992190}),_0x4970eb=_0x322cb6['mapper']['toViewPosition'](_0x1d2b31);_0x4a85a2&&_0x132e12['activeMarkers']['includes'](_0x40ac07['markerName'])&&_0x322cb6['writer']['addClass']('ck-suggestion-marker--active',_0x35ea55),_0x322cb6['writer']['insert'](_0x4970eb,_0x35ea55),_0x322cb6['mapper']['bindElementToMarker'](_0x35ea55,_0x40ac07['markerName']);}};}class wt extends _0x152a51{['afterInit'](){const _0x46d78d=this['editor'];if(!_0x46d78d['plugins']['has']('RemoveFormatEditing'))return;_0x46d78d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2af594=this['editor'];_0x2af594['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd25f=>{if('formatBlock'!=_0x1dd25f['type']&&'formatInline'!=_0x1dd25f['type'])return;const {data:_0x3830bb}=_0x1dd25f;return _0x3830bb&&'removeFormat'==_0x3830bb['commandName']?{'type':'format','content':o(_0x2af594['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x152a51{['afterInit'](){const _0xe86c2c=this['editor'];if(!_0xe86c2c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3a9445=_0xe86c2c['plugins']['get']('TrackChangesEditing');_0x3a9445['enableCommand']('goToPreviousRestrictedEditingException'),_0x3a9445['enableCommand']('goToNextRestrictedEditingException');const _0x333caf=_0xe86c2c['plugins']['get']('RestrictedEditingModeEditing');_0x333caf['enableCommand']('trackChanges'),_0x333caf['enableCommand']('acceptSuggestion'),_0x333caf['enableCommand']('discardSuggestion'),_0x333caf['enableCommand']('acceptAllSuggestions'),_0x333caf['enableCommand']('discardAllSuggestions'),_0x333caf['enableCommand']('acceptSelectedSuggestions'),_0x333caf['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x152a51{static get['requires'](){return[_0x3af99e];}['init'](){const _0x43bcfe=this['editor'],_0x5d673d=_0x43bcfe['plugins']['get']('TrackChangesEditing');_0x5d673d['enableCommand']('shiftEnter'),_0x43bcfe['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x43bcfe),{'priority':'high'}),_0x43bcfe['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x43bcfe),{'priority':'high'}),_0x43bcfe['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x466c83,_0x15339d,_0x1528a0)=>{_0x1528a0['options']['showSuggestionHighlights']&&ge(_0x43bcfe,{'showActiveMarker':!0x1})(_0x466c83,_0x15339d,_0x1528a0);}),_0x5d673d['descriptionFactory']['registerElementLabel']('softBreak',_0x33fd3a=>o(_0x43bcfe['locale'],'ELEMENT_LINE_BREAK',_0x33fd3a));}}function ge(_0xc71108,{showActiveMarker:_0x4b91fd=!0x0}={}){return(_0xaa6a6,_0x2d4cac,_0x440154)=>{const _0x3a3aea=_0xc71108['plugins']['get']('TrackChangesEditing');if(!_0x440154['consumable']['test'](_0x2d4cac['markerRange'],_0xaa6a6['name']))return;const _0x9bac0e=_0xc71108['model'];for(const _0x3bc6a5 of _0x2d4cac['markerRange']['getItems']()){if(!_0x3bc6a5['is']('element','softBreak'))continue;const _0x19bb98='deletion'==_0x2d4cac['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x548557}=_0x3a3aea['_splitMarkerName'](_0x2d4cac['markerName']),_0x5d7fa6=_0x440154['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x19bb98,'data-author-id':_0x548557}),_0x14bb14=_0x440154['mapper']['toViewPosition'](_0x9bac0e['createPositionBefore'](_0x3bc6a5));_0x4b91fd&&_0x3a3aea['activeMarkers']['includes'](_0x2d4cac['markerName'])&&_0x440154['writer']['addClass']('ck-suggestion-marker--active',_0x5d7fa6),_0x440154['writer']['insert'](_0x14bb14,_0x5d7fa6),_0x440154['mapper']['bindElementToMarker'](_0x5d7fa6,_0x2d4cac['markerName']);}};}class St extends _0x152a51{['afterInit'](){const _0x4878bb=this['editor'],_0x58da26=_0x4878bb['model'],_0x34326d=_0x4878bb['locale'];if(!_0x4878bb['plugins']['has']('StandardEditingModeEditing'))return;const _0x371aa5=_0x4878bb['plugins']['get']('TrackChangesEditing'),_0x29994e='restrictedEditingException',_0x511893=_0x4878bb['commands']['get'](_0x29994e);_0x371aa5['enableCommand'](_0x29994e,(_0x5eb82b,_0x47e7b7={})=>{const _0x179c57=_0x58da26['document']['selection'];if(_0x179c57['isCollapsed'])return void _0x5eb82b(_0x47e7b7);const _0x18e846=void 0x0!==_0x47e7b7['forceValue']?_0x47e7b7['forceValue']:!_0x511893['value'];_0x58da26['change'](()=>{const _0x4abef4=Array['from'](_0x179c57['getRanges']());for(const _0x2a7b8d of _0x4abef4){const _0x4073fd=_0x18e846?[_0x2a7b8d]:io(_0x29994e,_0x2a7b8d,_0x58da26);for(const _0x2a3c1a of _0x4073fd)_0x371aa5['markInlineFormat'](_0x2a3c1a,{'commandName':_0x29994e,'commandParams':[{'forceValue':_0x18e846}]});}});}),_0x371aa5['descriptionFactory']['registerDescriptionCallback'](_0x10c2b7=>{if('formatBlock'!=_0x10c2b7['type']&&'formatInline'!=_0x10c2b7['type'])return;const {data:_0x7442ae}=_0x10c2b7;return _0x7442ae&&_0x7442ae['commandName']==_0x29994e?_0x7442ae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34326d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x34326d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x152a51{['afterInit'](){const _0x54cfcf=this['editor'];if(!_0x54cfcf['plugins']['has']('Style')||!_0x54cfcf['plugins']['has']('DataSchema'))return;const _0x563065=_0x54cfcf['plugins']['get']('TrackChangesEditing'),_0xbb8f3=_0x54cfcf['locale'],_0x11c0be=_0x54cfcf['config']['get']('style')||{},_0x214de5=_0x54cfcf['plugins']['get']('GeneralHtmlSupport'),_0x27779f=_0x54cfcf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x54cfcf['plugins']['get']('DataSchema'),_0x11c0be['definitions']);_0x563065['enableDefaultAttributesIntegration']('style');const _0x1f6a6f=new Set();for(const _0xeda9cf of _0x27779f['block']){const _0x3db4fb=_0x214de5['getGhsAttributeNameForElement'](_0xeda9cf['element']);_0x1f6a6f['add'](_0x3db4fb);}const _0x98c8ca=new Set();for(const _0xe43785 of _0x27779f['inline']){const _0x106784=_0x214de5['getGhsAttributeNameForElement'](_0xe43785['element']);_0x98c8ca['add'](_0x106784);for(const _0x1b4283 of _0xe43785['ghsAttributes'])_0x98c8ca['add'](_0x1b4283);}for(const _0x4907c4 of _0x1f6a6f)_0x563065['registerBlockAttribute'](_0x4907c4),_0x563065['descriptionFactory']['registerAttributeLabel'](_0x4907c4,o(_0xbb8f3,'FORMAT_STYLE'));for(const _0x58dc62 of _0x98c8ca)_0x563065['registerInlineAttribute'](_0x58dc62),_0x563065['descriptionFactory']['registerAttributeLabel'](_0x58dc62,o(_0xbb8f3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c6041=this['editor'],_0x79b2b5=_0x3c6041['locale'];_0x3c6041['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fcf3b=>{if('formatBlock'!=_0x4fcf3b['type']&&'formatInline'!=_0x4fcf3b['type'])return;const {data:_0x19e1f1}=_0x4fcf3b;return _0x19e1f1&&'style'===_0x19e1f1['commandName']?_0x19e1f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x79b2b5,'*Set\x20format:*\x20%0',_0x19e1f1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x79b2b5,'*Remove\x20format:*\x20%0',_0x19e1f1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x152a51{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1d3fac){super(_0x1d3fac),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x169c12=this['editor'],_0x1cd0b9=_0x169c12['model']['document']['selection'];if(!_0x169c12['plugins']['has']('TableEditing'))return;const _0x20ee43=_0x169c12['locale'],_0x192a8a=_0x169c12['plugins']['get']('TrackChangesEditing'),_0x21d2cb=_0x169c12['plugins']['get']('TableUtils');_0x192a8a['descriptionFactory']['registerElementLabel']('table',_0x3c04de=>o(_0x20ee43,'ELEMENT_TABLE',_0x3c04de)),this['_setupColumnsRowsFixing'](),_0x192a8a['enableCommand']('insertTable'),_0x192a8a['enableCommand']('selectTableRow'),_0x192a8a['enableCommand']('selectTableColumn');for(const _0x11218d of['insertTableRowAbove','insertTableRowBelow']){const _0x23dd77=_0x169c12['commands']['get'](_0x11218d);_0x192a8a['enableCommand'](_0x11218d,_0x2e2a2c=>{_0x169c12['model']['change'](_0x3f752d=>{_0x2e2a2c();const _0x15d93b='above'===_0x23dd77['order'],_0xcb3513=_0x21d2cb['getSelectionAffectedTableCells'](_0x1cd0b9),_0x51ed09=_0x21d2cb['getRowIndexes'](_0xcb3513),_0x1d11c1=_0x15d93b?_0x51ed09['first']-0x1:_0x51ed09['last']+0x1,_0x3e2ed4=_0xcb3513[0x0]['findAncestor']('table'),_0x2bb917=_0x21d2cb['createTableWalker'](_0x3e2ed4,{'startRow':_0x1d11c1,'endRow':_0x1d11c1}),_0x5a778f=Array['from'](_0x2bb917)['map'](_0x109bc3=>_0x3f752d['createRangeOn'](_0x109bc3['cell']));_0x192a8a['markMultiRangeInsertion'](_0x5a778f,'tableRow');});});}for(const _0x430b7b of['insertTableColumnLeft','insertTableColumnRight']){const _0x3cccce=_0x169c12['commands']['get'](_0x430b7b);_0x192a8a['enableCommand'](_0x430b7b,_0x37d813=>{_0x169c12['model']['change'](_0x3315a0=>{_0x37d813();const _0x2fd763='left'===_0x3cccce['order'],_0x44ef79=_0x21d2cb['getSelectionAffectedTableCells'](_0x1cd0b9),_0x462151=_0x21d2cb['getColumnIndexes'](_0x44ef79),_0x374ecf=_0x2fd763?_0x462151['first']-0x1:_0x462151['last']+0x1,_0x584d3b=_0x44ef79[0x0]['findAncestor']('table'),_0x14514a=_0x21d2cb['createTableWalker'](_0x584d3b,{'startRow':0x0,'column':_0x374ecf,'includeAllSlots':!0x1}),_0xbcffa2=Array['from'](_0x14514a)['map'](_0x374ee6=>_0x3315a0['createRangeOn'](_0x374ee6['cell']));_0x192a8a['markMultiRangeInsertion'](_0xbcffa2,'tableColumn');});});}for(const _0x4dfc1c of['removeTableRow','removeTableColumn']){const _0x1e3617=_0x4dfc1c['substr'](0xb),_0x28917c=_0x1e3617['toLowerCase'](),_0x6ca4e4=_0x28917c['substr'](0x0,0x3)+'span',_0x45f299='table'+_0x1e3617,_0x1e7370='min'+_0x1e3617,_0x933e68='max'+_0x1e3617;_0x192a8a['enableCommand'](_0x4dfc1c,()=>{_0x169c12['model']['change'](_0x3c1695=>{const _0x4c43b2=_0x21d2cb['getSelectionAffectedTableCells'](_0x1cd0b9),_0x2c2861=_0x4c43b2[0x0]['findAncestor']('table');let _0x5dda2f;if('removeTableRow'==_0x4dfc1c){const _0x2dbd11=_0x21d2cb['getRowIndexes'](_0x4c43b2);_0x5dda2f={'startRow':_0x2dbd11['first'],'endRow':_0x2dbd11['last'],'includeAllSlots':!0x0};}else{const _0x103fce=_0x21d2cb['getColumnIndexes'](_0x4c43b2);_0x5dda2f={'startColumn':_0x103fce['first'],'endColumn':_0x103fce['last'],'includeAllSlots':!0x0};}const _0x3c4d2e=_0x21d2cb['createTableWalker'](_0x2c2861,_0x5dda2f),_0xd74a2e=Array['from'](_0x3c4d2e)['map'](({cell:_0x56b651})=>_0x56b651),_0x1e1871=be(_0xd74a2e['filter'](_0x5023db=>_0x5023db['hasAttribute'](_0x6ca4e4))),_0x4edfa3=be(_0xd74a2e['filter'](_0x312af5=>!_0x312af5['hasAttribute'](_0x6ca4e4)))['map'](_0x2f32cd=>_0x3c1695['createRangeOn'](_0x2f32cd)),_0x9e457d=_0x192a8a['markMultiRangeDeletion'](_0x4edfa3,_0x45f299);if(_0x9e457d&&('tableRow'==_0x9e457d['subType']||'tableColumn'==_0x9e457d['subType'])){const _0x32c7f9=this['_getSuggestionCoords'](_0x9e457d);for(const _0x34973d of _0x1e1871){const _0x3d2ddf=_0x3c1695['createRangeOn'](_0x34973d),_0x1047a5=_0x21d2cb['getCellLocation'](_0x34973d),_0x301e6e=_0x34973d['getAttribute'](_0x6ca4e4)-0x1,_0x19382f=_0x32c7f9[_0x1e7370],_0x452a34=_0x32c7f9[_0x933e68];_0x19382f<=_0x1047a5[_0x28917c]&&_0x1047a5[_0x28917c]+_0x301e6e<=_0x452a34&&_0x9e457d['addRange'](_0x3d2ddf);}}});});}function _0xc8b18d(_0x3f5270){const _0x5907b6=Array['from'](_0x1cd0b9['getRanges']())['map'](_0xab6930=>_0x22bfde['fromRange'](_0xab6930));_0x169c12['model']['change'](_0x27e7ed=>{const _0xace425=_0x27e7ed['batch'];_0x3f5270=_0x3f5270['filter'](_0x271840=>'$graveyard'!=_0x271840['root']['rootName']),_0x27e7ed['setSelection'](_0x3f5270),_0x169c12['commands']['get']('removeTableRow')['refresh'](),_0x169c12['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x169c12['model']['enqueueChange'](()=>{_0x169c12['model']['enqueueChange'](_0xace425,_0x2ae740=>{const _0x345085=_0x5907b6['filter'](_0x3c84f6=>'$graveyard'!=_0x3c84f6['root']['rootName']);_0x345085['length']>0x0&&_0x2ae740['setSelection'](_0x345085);for(const _0x297860 of _0x5907b6)_0x297860['detach']();});});});}function _0x5aaea2(_0x54989c){_0x169c12['model']['change'](_0x72b40e=>{const _0x500f80=Array['from'](_0x1cd0b9['getRanges']())['map'](_0x4d30ca=>_0x22bfde['fromRange'](_0x4d30ca)),_0x4fe801=[];for(const _0x5200f1 of _0x54989c)for(const _0x259872 of _0x5200f1['getItems']({'shallow':!0x0}))_0x4fe801['push'](_0x259872);for(const _0x5633e8 of _0x4fe801)'$graveyard'!=_0x5633e8['root']['rootName']&&(_0x72b40e['setSelection'](_0x72b40e['createPositionAt'](_0x5633e8,0x0)),_0x169c12['commands']['get']('removeTableColumn')['refresh'](),_0x169c12['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1d2f75=_0x500f80['filter'](_0x4ef351=>'$graveyard'!=_0x4ef351['root']['rootName']);_0x1d2f75['length']>0x0&&_0x72b40e['setSelection'](_0x1d2f75);for(const _0x5d298d of _0x500f80)_0x5d298d['detach']();});}function _0x5b58c8(_0xe90bb8,_0x1cd1ae){return _0x1cd1ae['every'](_0x3fa033=>_0xe90bb8['some'](_0x3554cc=>_0x3554cc['end']['isEqual'](_0x3fa033['start'])||_0x3fa033['end']['isEqual'](_0x3554cc['start'])));}function _0x4ea575(_0x11fbae,_0x48e9c6){return!_0x11fbae['some'](_0x5624c1=>_0x48e9c6['some'](_0x56ed7c=>_0x5624c1['isIntersecting'](_0x56ed7c)))&&_0x11fbae['some'](_0x3a7307=>_0x48e9c6['some'](_0x352cb5=>_0x3a7307['end']['isTouching'](_0x352cb5['start'])));}_0x169c12['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34843d,_0x268a9f,_0x354baa)=>{if(!_0x354baa['options']['showSuggestionHighlights'])return;const _0x2f6382=_0x268a9f['item'];if(!_0x2f6382)return;const _0x45f13e=_0x354baa['mapper']['toViewElement'](_0x2f6382);function _0x2a35fd(_0x5559d6){return Array['isArray'](_0x5559d6)?_0x5559d6:[_0x5559d6];}_0x45f13e&&'tableCell'===_0x2f6382['name']&&_0x3b2cbe(_0x45f13e,_0x354baa['writer'],(_0x3d75e0,_0x251047,_0x4c844d)=>_0x4c844d['addClass'](_0x2a35fd(_0x251047['classes']),_0x3d75e0),(_0x2649f2,_0x440c86,_0x6d8276)=>_0x6d8276['removeClass'](_0x2a35fd(_0x440c86['classes']),_0x2649f2));},{'priority':'highest'}),_0x192a8a['descriptionFactory']['registerDescriptionCallback'](_0x4bdde5=>{if('insertion'!=_0x4bdde5['type']&&'deletion'!=_0x4bdde5['type'])return;const _0x316a1e=_0x4bdde5['getContainedElement']();if(null!=_0x316a1e&&_0x316a1e['is']('element','table')){if('insertion'==_0x4bdde5['type']){const _0x314a79=_0x4bdde5['getItems']()['filter'](_0x1fd322=>_0x1fd322['is']('$textProxy'))['map'](_0x57da5d=>_0x57da5d['data']);if(_0x314a79['length'])return{'type':'insertion','content':o(_0x20ee43,'*Insert:*\x20%0',o(_0x20ee43,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x314a79['join']('\x20')+'\x22'))};}if('deletion'==_0x4bdde5['type']){const _0x3c928e=_0x4bdde5['getItems']()['filter'](_0x106152=>_0x106152['is']('$textProxy'))['map'](_0x3e5512=>_0x3e5512['data']);if(_0x3c928e['length'])return{'type':'deletion','content':o(_0x20ee43,'*Remove:*\x20%0',o(_0x20ee43,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3c928e['join']('\x20')+'\x22'))};}}}),_0x192a8a['descriptionFactory']['registerDescriptionCallback'](_0xef0e4f=>{if('tableRow'==_0xef0e4f['subType']){const _0x1a9b04=_0xef0e4f['getItems']()['filter'](_0x4ed397=>_0x4ed397['is']('$textProxy'))['map'](_0x218993=>_0x218993['data']),_0x5ba102=this['_getSuggestionCoords'](_0xef0e4f),_0x160fae=_0x5ba102['maxRow']-_0x5ba102['minRow']+0x1;if('insertion'==_0xef0e4f['type'])return _0x1a9b04['length']?{'type':'insertion','content':o(_0x20ee43,'*Insert:*\x20%0',o(_0x20ee43,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x160fae,'\x22'+_0x1a9b04['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x20ee43,'*Insert:*\x20%0',o(_0x20ee43,'ELEMENT_TABLE_ROW',_0x160fae))};if('deletion'==_0xef0e4f['type'])return _0x1a9b04['length']?{'type':'deletion','content':o(_0x20ee43,'*Remove:*\x20%0',o(_0x20ee43,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x160fae,'\x22'+_0x1a9b04['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x20ee43,'*Remove:*\x20%0',o(_0x20ee43,'ELEMENT_TABLE_ROW',_0x160fae))};}if('tableColumn'==_0xef0e4f['subType']){const _0x37f331=_0xef0e4f['getItems']()['filter'](_0x447e5a=>_0x447e5a['is']('$textProxy'))['map'](_0x25a411=>_0x25a411['data']),_0x1fc33d=this['_getSuggestionCoords'](_0xef0e4f),_0x5f3885=_0x1fc33d['maxColumn']-_0x1fc33d['minColumn']+0x1;if('insertion'==_0xef0e4f['type'])return _0x37f331['length']?{'type':'insertion','content':o(_0x20ee43,'*Insert:*\x20%0',o(_0x20ee43,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f3885,'\x22'+_0x37f331['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x20ee43,'*Insert:*\x20%0',o(_0x20ee43,'ELEMENT_TABLE_COLUMN',_0x5f3885))};if('deletion'==_0xef0e4f['type'])return _0x37f331['length']?{'type':'deletion','content':o(_0x20ee43,'*Remove:*\x20%0',o(_0x20ee43,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f3885,'\x22'+_0x37f331['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x20ee43,'*Remove:*\x20%0',o(_0x20ee43,'ELEMENT_TABLE_COLUMN',_0x5f3885))};}}),_0x192a8a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xc8b18d),_0x192a8a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xc8b18d),_0x192a8a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5aaea2),_0x192a8a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5aaea2),_0x192a8a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5b58c8),_0x192a8a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5b58c8),_0x192a8a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4ea575),_0x192a8a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4ea575);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3fafd3=this['editor'],_0x4b75ab=_0x3fafd3['model']['document']['selection'];return(_0x1e08bb,_0x386372)=>{_0x3fafd3['model']['change'](_0x4ac2da=>{const {commandName:_0x5b7cf8,commandParams:_0x520347}=_0x386372;let _0x13cfe0=_0x1e08bb[0x0]['end']['nodeBefore'];_0x520347&&_0x520347[0x0]&&!0x1===_0x520347[0x0]['forceValue']&&(_0x13cfe0=_0x1e08bb[0x0]['start']['nodeAfter']);const _0x2970be=_0x4ac2da['createRangeIn'](_0x13cfe0);if('$graveyard'==_0x2970be['root']['rootName'])return;const _0x28b4bc=Array['from'](_0x4b75ab['getRanges']())['map'](_0x5cb140=>_0x22bfde['fromRange'](_0x5cb140));_0x4ac2da['setSelection'](_0x2970be),_0x3fafd3['commands']['get'](_0x5b7cf8)['refresh'](),_0x520347['push']({'forceDefaultExecution':!0x0}),_0x3fafd3['execute'](_0x5b7cf8,..._0x520347);const _0x506a4f=_0x28b4bc['filter'](_0x37cae7=>'$graveyard'!=_0x37cae7['root']['rootName']);_0x506a4f['length']>0x0&&_0x4ac2da['setSelection'](_0x506a4f);for(const _0x1234c9 of _0x28b4bc)_0x1234c9['detach']();});};}['_getCoordsForCells'](_0x425428){const _0x3add35=this['editor']['plugins']['get']('TableUtils');let _0x360377=Number['MAX_SAFE_INTEGER'],_0x5eeda0=Number['MIN_SAFE_INTEGER'],_0x4c174b=Number['MAX_SAFE_INTEGER'],_0x1fd185=Number['MIN_SAFE_INTEGER'];for(const _0x1d5dc8 of _0x425428){if('$graveyard'==_0x1d5dc8['root']['rootName'])continue;const {row:_0x24c460,column:_0x57c576}=_0x3add35['getCellLocation'](_0x1d5dc8),_0x46fa17=_0x1d5dc8['hasAttribute']('rowspan')?_0x1d5dc8['getAttribute']('rowspan')-0x1:0x0,_0x3c70b4=_0x1d5dc8['hasAttribute']('colspan')?_0x1d5dc8['getAttribute']('colspan')-0x1:0x0;_0x360377=_0x24c460<_0x360377?_0x24c460:_0x360377,_0x5eeda0=_0x24c460+_0x46fa17>_0x5eeda0?_0x24c460+_0x46fa17:_0x5eeda0,_0x4c174b=_0x57c576<_0x4c174b?_0x57c576:_0x4c174b,_0x1fd185=_0x57c576+_0x3c70b4>_0x1fd185?_0x57c576+_0x3c70b4:_0x1fd185;}return{'minRow':_0x360377,'maxRow':_0x5eeda0,'minColumn':_0x4c174b,'maxColumn':_0x1fd185};}['_setupColumnsRowsFixing'](){const _0x70216c=this['editor'],_0x490cc7=_0x70216c['plugins']['get']('TrackChangesEditing'),_0x45737a=_0x70216c['plugins']['get']('TableUtils');_0x70216c['model']['document']['on']('change:data',()=>{const _0x31caa2=Array['from'](_0x70216c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c42a5,data:_0x1f42fd}of _0x31caa2){const {group:_0x16c35e,id:_0x2bcd37,subType:_0x5c1b3b}=_0x490cc7['_splitMarkerName'](_0x4c42a5);if('suggestion'!=_0x16c35e)continue;if(null!=_0x1f42fd['oldRange'])continue;const _0x3623ba=_0x490cc7['getSuggestion'](_0x2bcd37);this['_tablePostFixingSubtypes']['includes'](_0x5c1b3b)&&this['_tableSuggestions']['add'](_0x3623ba);}},{'priority':'low'});const _0x23a991=(_0x3a71f0,_0x2bdc72)=>{let _0x47396c=!0x1;const _0x219cfa=_0x2bdc72['createRangeOn'](_0x3a71f0),_0x395854=_0x3a71f0['findAncestor']('table'),_0x6a855=_0x45737a['getCellLocation'](_0x3a71f0);for(const _0x13d62f of this['_tableSuggestions']){const _0x2e9d96=_0x13d62f['subType'],_0x559d84=_0x2e9d96['startsWith']('tablePaste'),_0x662aa1=_0x2e9d96['substr'](_0x559d84?0xa:0x5),_0x559cb2=_0x662aa1['toLowerCase'](),_0x45c324=_0x559cb2['substr'](0x0,0x3)+'span',_0x5ccfe2='min'+_0x662aa1,_0x5b977e='max'+_0x662aa1;if(!_0x13d62f['isInContent'])continue;if(_0x395854!=_0x13d62f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x13d62f['isIntersectingWithRange'](_0x219cfa))continue;const _0x47794c=_0x3a71f0['hasAttribute'](_0x45c324)?_0x3a71f0['getAttribute'](_0x45c324)-0x1:0x0,_0x2ae30d=this['_getSuggestionCoords'](_0x13d62f),_0x9b56f0=_0x2ae30d[_0x5ccfe2],_0x135f7b=_0x2ae30d[_0x5b977e];_0x9b56f0<=_0x6a855[_0x559cb2]&&_0x6a855[_0x559cb2]+_0x47794c<=_0x135f7b&&(_0x13d62f['addRange'](_0x219cfa),_0x47396c=!0x0);}return _0x47396c;};_0x70216c['model']['document']['registerPostFixer'](_0x482ac2=>{let _0x4f432e=!0x1;for(const _0x42687b of _0x70216c['model']['document']['differ']['getChanges']())if('insert'==_0x42687b['type']){if('tableRow'==_0x42687b['name']){for(const _0x42365c of _0x42687b['position']['nodeAfter']['getChildren']())_0x4f432e=_0x4f432e||_0x23a991(_0x42365c,_0x482ac2);}else'tableCell'==_0x42687b['name']&&(_0x4f432e=_0x4f432e||_0x23a991(_0x42687b['position']['nodeAfter'],_0x482ac2));}return _0x4f432e;});}['_getSuggestionCoords'](_0x370f33){return this['_getCoordsForCells'](_0x370f33['getRanges']()['map'](_0x27109d=>_0x27109d['start']['nodeAfter']));}}function be(_0x369858){return Array['from'](new Set(_0x369858)['values']());}class vt extends _0x152a51{static get['requires'](){return[It];}['afterInit'](){const _0x1a5b8e=this['editor'],_0x486187=_0x1a5b8e['model']['document']['selection'],_0x14dd5a=_0x1a5b8e['locale'];if(!_0x1a5b8e['plugins']['has']('TableEditing'))return;const _0x237cd6=_0x1a5b8e['plugins']['get']('TrackChangesEditing'),_0xb44db7=_0x1a5b8e['plugins']['get']('TableUtils'),_0x31e3c8=_0x1a5b8e['plugins']['get'](It);_0x31e3c8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x237cd6['enableCommand']('mergeTableCells',()=>{const _0x6201c7=_0xb44db7['getSelectionAffectedTableCells'](_0x1a5b8e['model']['document']['selection']);_0x1a5b8e['model']['change'](()=>{_0x237cd6['markMultiRangeBlockFormat'](_0x6201c7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1a5b8e['commands']['get']('mergeTableCells')['on']('execute',(_0x4344e3,_0x21fcda)=>{_0x1a5b8e['commands']['get']('trackChanges')['value']&&(_0x21fcda['length']>0x0&&_0x21fcda[_0x21fcda['length']-0x1]&&_0x21fcda[_0x21fcda['length']-0x1]['forceDefaultExecution']||_0x237cd6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4344e3['stop']());},{'priority':'highest'});for(const _0x398424 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x356da6=_0x1a5b8e['commands']['get'](_0x398424);_0x237cd6['enableCommand'](_0x398424,()=>{const _0x13d7cb=_0x1a5b8e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x253016=>_0x253016['is']('element','tableCell')),_0x66047c=_0x356da6['value'];_0x1a5b8e['model']['change'](()=>{_0x237cd6['markMultiRangeBlockFormat']([_0x13d7cb,_0x66047c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x313c95 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x52628d=_0x1a5b8e['commands']['get'](_0x313c95);_0x237cd6['enableCommand'](_0x313c95,()=>{const _0x3fff90=_0xb44db7['getSelectionAffectedTableCells'](_0x1a5b8e['model']['document']['selection'])[0x0],_0xd8b800=_0x3fff90['findAncestor']('table'),{column:_0x3fe854,row:_0x4953bc}=_0xb44db7['getCellLocation'](_0x3fff90);let _0x548b4d=[];if('horizontally'==_0x52628d['direction']){const _0x2bccd2=_0xb44db7['createTableWalker'](_0xd8b800,{'startRow':_0x4953bc,'endRow':_0x4953bc,'includeAllSlots':!0x0});_0x548b4d=Array['from'](_0x2bccd2)['map'](_0x46170d=>_0x46170d['cell']);}else{const _0x4d1a16=_0xb44db7['createTableWalker'](_0xd8b800,{'column':_0x3fe854,'includeAllSlots':!0x0});_0x548b4d=Array['from'](_0x4d1a16)['map'](_0x34c5b8=>_0x34c5b8['cell']);}_0x1a5b8e['model']['change'](_0x271273=>{_0x237cd6['markBlockFormat'](_0x271273['createRangeOn'](_0x3fff90),{'commandName':_0x313c95,'commandParams':[]},_0x548b4d,_0x313c95);});});}_0x237cd6['descriptionFactory']['registerDescriptionCallback'](_0x1655b7=>{if('formatBlock'!=_0x1655b7['type']&&'formatInline'!=_0x1655b7['type'])return;const {data:_0x16d8f7}=_0x1655b7;return _0x16d8f7&&'mergeTableCells'==_0x16d8f7['commandName']?{'type':'format','content':o(_0x14dd5a,'*Merge\x20cells*')}:void 0x0;}),_0x237cd6['descriptionFactory']['registerDescriptionCallback'](_0x505ce7=>{if('formatBlock'!=_0x505ce7['type']&&'formatInline'!=_0x505ce7['type'])return;const {data:_0x12ca90}=_0x505ce7;return _0x12ca90?'splitTableCellVertically'==_0x12ca90['commandName']?{'type':'format','content':o(_0x14dd5a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x12ca90['commandName']?{'type':'format','content':o(_0x14dd5a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2fae10=_0x31e3c8['_acceptFormatSuggestionCallbackFactory']();for(const _0x434d9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x237cd6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x434d9,'accept',_0x2fae10);for(const _0x6ef3d3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x237cd6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6ef3d3,'accept',_0x2fae10);_0x237cd6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x293a0c=>{_0x1a5b8e['model']['change'](_0x54f08=>{const _0x13be95=Array['from'](_0x486187['getRanges']())['map'](_0x2bd210=>_0x22bfde['fromRange'](_0x2bd210));_0x54f08['setSelection'](_0x293a0c),_0x1a5b8e['commands']['get']('mergeTableCells')['refresh'](),_0x1a5b8e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1aba53=_0x13be95['filter'](_0x3f215b=>'$graveyard'!=_0x3f215b['root']['rootName']);_0x1aba53['length']>0x0&&_0x54f08['setSelection'](_0x1aba53);for(const _0x8d73f6 of _0x13be95)_0x8d73f6['detach']();});});for(const _0x4b1901 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1bc2e7=_0x1a5b8e['commands']['get'](_0x4b1901);_0x1bc2e7['on']('set:isEnabled',(_0x5b31f8,_0x12e407,_0x459a2a)=>{if(_0x459a2a){const _0x29a3ce=_0x1a5b8e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dfd1d=>_0x4dfd1d['is']('element','tableCell'));this['_areMergableCells'](_0x1bc2e7['value'],_0x29a3ce)||(_0x5b31f8['return']=!0x1,_0x5b31f8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4f193b=this['editor']['commands']['get']('mergeTableCells'),_0x2599d3=this['editor']['plugins']['get']('TableUtils');if(!_0x4f193b['isEnabled'])return!0x1;const _0x1c278e=_0x2599d3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x57fae6 of _0x1c278e)for(const _0x1b2adc of _0x1c278e)if(_0x57fae6!=_0x1b2adc&&!this['_areMergableCells'](_0x57fae6,_0x1b2adc))return!0x1;return!0x0;}['_areMergableCells'](_0x5f1f3d,_0x2744b3){const _0x5189fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x186e6e=this['editor']['model']['createRangeOn'](_0x5f1f3d),_0x56ce55=this['editor']['model']['createRangeOn'](_0x2744b3),_0x271c2f=new Set(),_0x46d206=new Set();for(const _0xc39b94 of _0x5189fa['getSuggestions']())if(('insertion'==_0xc39b94['type']||'deletion'==_0xc39b94['type']||'mergeTableCells'==_0xc39b94['subType'])&&_0xc39b94['isInContent']){for(const _0x65488d of _0xc39b94['getRanges']())_0x65488d['containsRange'](_0x186e6e,!0x0)&&_0x271c2f['add'](_0xc39b94['type']+':'+_0xc39b94['author']['id']),_0x65488d['containsRange'](_0x56ce55,!0x0)&&_0x46d206['add'](_0xc39b94['type']+':'+_0xc39b94['author']['id']);}if(_0x271c2f['size']!=_0x46d206['size'])return!0x1;for(const _0x306342 of _0x271c2f)if(!_0x46d206['has'](_0x306342))return!0x1;return!0x0;}}class Ct extends _0x152a51{static get['requires'](){return[It];}['afterInit'](){const _0x2a161c=this['editor'];if(!_0x2a161c['plugins']['has']('TableEditing'))return;const _0x195396=_0x2a161c['locale'],_0x29d393=_0x2a161c['plugins']['get']('TrackChangesEditing');_0x29d393['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x29d393['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x29d393['registerBlockAttribute']('headingRows'),_0x29d393['registerBlockAttribute']('headingColumns'),_0x29d393['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x195396,'FORMAT_HEADER_ROW')),_0x29d393['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x195396,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xf21e7a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3979ea=this['editor']['plugins']['get']('TableUtils'),_0xe1a3f2=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x473fc5({showActiveMarker:_0x40c211=!0x0,setDataAttribute:_0x51aa12=!0x0}={}){return(_0x24d19d,_0x51e25e,_0x25387d)=>{const {type:_0x1ab7c4,id:_0x69e4c9}=_0xf21e7a['_splitMarkerName'](_0x51e25e['markerName']),_0x558359=_0xf21e7a['getSuggestion'](_0x69e4c9),_0x6f3b50=_0x558359['data'];if('formatBlock'!=_0x558359['type']||!_0x6f3b50||'setTableColumnHeader'!=_0x6f3b50['commandName'])return;if(_0x51e25e['item'])return void _0x24d19d['stop']();if(!_0x25387d['consumable']['consume'](_0x51e25e['markerRange'],_0x24d19d['name']))return;const _0x41b2e9=_0x51e25e['markerRange']['start']['nodeAfter'],_0x50152b=_0x51e25e['markerRange']['end']['nodeBefore'],_0x2ac97e=_0x41b2e9['parent']['parent'],{column:_0xbf7163}=_0x3979ea['getCellLocation'](_0x41b2e9),{column:_0x24cc00}=_0x3979ea['getCellLocation'](_0x50152b);for(let _0x54223c=_0xbf7163;_0x54223c<=_0x24cc00;_0x54223c++){const _0x46ac62=_0x3979ea['createTableWalker'](_0x2ac97e,{'column':_0x54223c,'includeAllSlots':!0x1});for(const _0x4a9d44 of _0x46ac62){const _0x347f4d=_0x4a9d44['cell'],_0x34e550=_0x25387d['mapper']['toViewElement'](_0x347f4d);_0x25387d['writer']['addClass']('ck-suggestion-marker-'+_0x1ab7c4,_0x34e550),_0x51aa12&&_0x25387d['writer']['setAttribute']('data-suggestion',_0x69e4c9,_0x34e550),_0x25387d['mapper']['bindElementToMarker'](_0x34e550,_0x51e25e['markerName']),_0x40c211&&(_0xf21e7a['activeMarkers']['includes'](_0x51e25e['markerName'])?_0x25387d['writer']['addClass']('ck-suggestion-marker--active',_0x34e550):_0x25387d['writer']['removeClass']('ck-suggestion-marker--active',_0x34e550));}}};}_0xf21e7a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xe1a3f2),_0xf21e7a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xe1a3f2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x473fc5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2fd996,_0x1f25ac,_0x54124d)=>{_0x54124d['options']['showSuggestionHighlights']&&_0x473fc5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2fd996,_0x1f25ac,_0x54124d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x50bd45,_0x8792d7,_0x29af13)=>{const {type:_0x4bc122,id:_0x196102}=_0xf21e7a['_splitMarkerName'](_0x8792d7['markerName']),_0x63a30b=_0xf21e7a['getSuggestion'](_0x196102),_0x17a2ff=_0x63a30b['data'];if('formatBlock'!=_0x63a30b['type']||!_0x17a2ff||'setTableColumnHeader'!=_0x17a2ff['commandName'])return;const _0xf316b7=_0x29af13['mapper']['markerNameToElements'](_0x8792d7['markerName']);if(_0xf316b7){for(const _0x20a8e3 of _0xf316b7)_0x29af13['writer']['removeClass']('ck-suggestion-marker-'+_0x4bc122,_0x20a8e3),_0x29af13['writer']['removeClass']('ck-suggestion-marker--active',_0x20a8e3),_0x29af13['writer']['removeAttribute']('data-suggestion',_0x20a8e3),_0x29af13['mapper']['unbindElementFromMarkerName'](_0x20a8e3,_0x8792d7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29fae1=this['editor'],_0x54570f=_0x29fae1['locale'];function _0x28b394(_0xded50f){return{'type':'format','content':o(_0x54570f,'*Format:*\x20%0',_0xded50f)};}_0x29fae1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20c2db=>{if('formatBlock'!=_0x20c2db['type'])return;const {data:_0x1d6715}=_0x20c2db;if(_0x1d6715){if('setTableRowHeader'==_0x1d6715['commandName']){const _0x2e0e30=_0x1d6715['commandParams'][0x0]['forceValue'];return _0x28b394(o(_0x54570f,_0x2e0e30?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1d6715['commandName']){const _0x240236=_0x1d6715['commandParams'][0x0]['forceValue'];return _0x28b394(o(_0x54570f,_0x240236?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x4b0939=>[_0x4b0939,null]));class _t extends _0x152a51{static get['requires'](){return[It];}['afterInit'](){const _0xb0f274=this['editor'];if(!_0xb0f274['plugins']['has']('TableClipboard'))return;const _0x4d2562=_0xb0f274['plugins']['get']('TrackChangesEditing'),_0x5c7284=_0xb0f274['plugins']['get']('TableUtils'),_0x143dab=_0xb0f274['plugins']['get'](It),_0x1f756e=_0xb0f274['plugins']['get']('TableClipboard');_0x143dab['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xb0f274['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xb0f274['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x22f421=null;_0xb0f274['model']['on']('insertContent',(_0x4bbde6,_0x3210ed)=>{const [_0x125404,_0x499cbd]=_0x3210ed,_0x523c22=_0x3210ed[_0x3210ed['length']-0x1];_0x523c22&&_0x523c22['forceDefaultExecution']||_0x4d2562['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5220dd,_0x48c541,_0x32d96c,_0x40d658,_0x2db1b1){if(_0x48c541&&!_0x48c541['is']('documentSelection'))return!0x1;const _0x966e50=_0x2db1b1['getTableIfOnlyTableInContent'](_0x5220dd,_0x32d96c);if(!_0x966e50||!Re(_0x966e50,void 0x0,_0x40d658))return!0x1;const _0x20f097=_0x40d658['getSelectionAffectedTableCells'](_0x32d96c['document']['selection']);if(!_0x20f097['length'])return!0x1;const _0x3625c0=_0x20f097[0x0]['findAncestor']('table'),_0x87f2e3=_0x40d658['getRowIndexes'](_0x20f097),_0x5adda0=_0x40d658['getColumnIndexes'](_0x20f097),_0x4bdd31={'startRow':_0x87f2e3['first'],'endRow':_0x87f2e3['last'],'startColumn':_0x5adda0['first'],'endColumn':_0x5adda0['last']};return 0x1==_0x20f097['length']&&(_0x4bdd31['endRow']+=_0x40d658['getRows'](_0x966e50)-0x1,_0x4bdd31['endColumn']+=_0x40d658['getColumns'](_0x966e50)-0x1),Re(_0x3625c0,_0x4bdd31,_0x40d658);}(_0x125404,_0x499cbd,_0xb0f274['model'],_0x5c7284,_0x1f756e)&&(_0x4bbde6['stop'](),_0x22f421={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb0f274['model']['change'](()=>{_0xb0f274['model']['insertContent'](_0x3210ed[0x0],_0x3210ed[0x1],_0x3210ed[0x2],{'forceDefaultExecution':!0x0});const _0x57d18c=_0x2a94db(),{rowInsertionRanges:_0x317212,columnInsertionRanges:_0x39206c,insertionRanges:_0x51308c,deletionRanges:_0x226cf7,cells:_0x4d70c0}=_0x22f421;_0x317212['length']&&_0x4d2562['markMultiRangeInsertion'](_0x317212,'tablePasteRow',{'tablePasteChainId':_0x57d18c}),_0x39206c['length']&&_0x4d2562['markMultiRangeInsertion'](_0x39206c,'tablePasteColumn',{'tablePasteChainId':_0x57d18c}),_0x51308c['length']&&(_0x4d2562['markMultiRangeInsertion'](_0x51308c,'tablePaste',{'tablePasteChainId':_0x57d18c,'skipNestingCheck':!0x0}),_0x51308c['forEach'](_0x4f1047=>_0x4f1047['detach']?.())),_0x226cf7['length']&&(_0x4d2562['markMultiRangeDeletion'](_0x226cf7,'tablePaste',{'tablePasteChainId':_0x57d18c,'skipNestingCheck':!0x0}),_0x226cf7['forEach'](_0xf74e7=>_0xf74e7['detach']?.()));const _0x3fc291=_0x4d2562['markMultiRangeBlockFormat'](_0x4d70c0['map'](({element:_0x4a2f3d})=>_0x4a2f3d),{'formatGroupId':_0x2a94db()},[],'tablePasteCell',{'tablePasteChainId':_0x57d18c});if(_0x3fc291){const _0x433562=_0x3fc291['getMarkers'](),_0x32d07a=[];for(const {element:_0x568572,attributes:_0x55eabc}of _0x4d70c0){if(!_0x55eabc)continue;const _0x2a65cd=_0xb0f274['model']['createRangeOn'](_0x568572),_0x1f1648=_0x433562['find'](_0x575654=>_0x575654['getRange']()['isEqual'](_0x2a65cd));_0x1f1648&&_0x32d07a['push']([_0x1f1648['name'],_0x55eabc]);}_0x32d07a['length']&&_0x3fc291['setAttribute']('markerAttributes',Object['fromEntries'](_0x32d07a));}_0x22f421=null;}));},{'priority':_0x4f84c1['high']+0xa}),_0xb0f274['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x408797,_0x118be0)=>{const [_0x5b1371,_0x59bebe,,_0x12b7e2]=_0x118be0;if(!_0x22f421)return;_0x408797['stop']();const _0x2df561=_0x5b1371['cell'],_0x35d75c=_0x59bebe,_0x280e6c=ke(_0x2df561),_0x3d76ef=ke(_0x35d75c);_0x408797['return']=_0x2df561;let _0x3db4c8=null,_0x43488f=null;if(_0x3d76ef||_0x280e6c){if(_0x280e6c&&!_0x3d76ef){_0x12b7e2['remove'](_0x2df561['getChild'](0x0));for(const _0x307acc of Array['from'](_0x35d75c['getChildren']()))_0x12b7e2['insert'](_0x307acc,_0x2df561,'end');const _0x344119=_0x22f421['rowInsertionIndexes']['includes'](_0x5b1371['row']),_0x5c300f=_0x22f421['columnInsertionIndexes']['includes'](_0x5b1371['column']);_0x344119||_0x5c300f||(_0x3db4c8=_0x22bfde['fromRange'](_0x12b7e2['createRangeIn'](_0x2df561)));}else _0x3d76ef&&!_0x280e6c&&(_0x43488f=_0x12b7e2['createRangeIn'](_0x2df561));}else{const _0x258b22=_0x12b7e2['createElement']('tableCellSuggestion'),_0x52c4d9=_0x12b7e2['createElement']('tableCellSuggestion');_0x12b7e2['wrap'](_0x12b7e2['createRangeIn'](_0x2df561),_0x52c4d9),_0x12b7e2['insert'](_0x258b22,_0x2df561,0x0);for(const _0xeac02a of Array['from'](_0x35d75c['getChildren']()))_0x12b7e2['insert'](_0xeac02a,_0x258b22,'end');_0x3db4c8=_0x22bfde['fromRange'](_0x12b7e2['createRangeOn'](_0x258b22)),_0x43488f=_0x22bfde['fromRange'](_0x12b7e2['createRangeOn'](_0x52c4d9));}const _0x39ae16=Array['from'](_0x35d75c['getAttributes']())['filter'](([_0x1f88a9])=>Pe['includes'](_0x1f88a9));_0x22f421['cells']['push']({'element':_0x2df561,'attributes':_0x39ae16['length']?Object['fromEntries'](_0x39ae16):null}),_0x3db4c8&&_0x22f421['insertionRanges']['push'](_0x3db4c8),_0x43488f&&_0x22f421['deletionRanges']['push'](_0x43488f);},{'priority':'high'}),_0x5c7284['on']('insertColumns',(_0x102e7a,_0x10660a)=>{const [_0x14dd2e,_0x301730={}]=_0x10660a;if(!_0x22f421)return;const _0x125f4b=_0x301730['at']||0x0,_0x5035f7=_0x301730['columns']||0x1;_0x22f421['columnInsertionIndexes']=new Array(_0x5035f7)['fill'](_0x125f4b)['map']((_0x5cfe01,_0x50140f)=>_0x5cfe01+_0x50140f);for(const {cell:_0x563903}of _0x5c7284['createTableWalker'](_0x14dd2e,{'startColumn':_0x125f4b,'endColumn':_0x125f4b+_0x5035f7-0x1}))_0x22f421['columnInsertionRanges']['push'](_0xb0f274['model']['createRangeOn'](_0x563903));},{'priority':'low'}),_0x5c7284['on']('insertRows',(_0x38a99a,_0x5a104e)=>{const [_0x5904fa,_0x621390={}]=_0x5a104e;if(!_0x22f421)return;const _0x4a7fbc=_0x621390['at']||0x0,_0x513f06=_0x621390['rows']||0x1;_0x22f421['rowInsertionIndexes']=new Array(_0x513f06)['fill'](_0x4a7fbc)['map']((_0x550fda,_0x2674cc)=>_0x550fda+_0x2674cc);for(const {cell:_0x66a3fb}of _0x5c7284['createTableWalker'](_0x5904fa,{'startRow':_0x4a7fbc,'endRow':_0x4a7fbc+_0x513f06-0x1}))_0x22f421['rowInsertionRanges']['push'](_0xb0f274['model']['createRangeOn'](_0x66a3fb));},{'priority':'low'}),_0x4d2562['descriptionFactory']['registerDescriptionCallback'](_0x179c07=>{if(_0x179c07['subType']&&_0x179c07['subType']['startsWith']('tablePaste'))return _0x179c07['previous']?{}:{'type':'insertion','content':o(_0xb0f274['locale'],'*Replace\x20table\x20cells*')};});const _0x208bcd=()=>!0x1;for(const _0x4bb8c9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4d2562['_suggestionFactory']['registerCustomCallback']('insertion',_0x4bb8c9,'join',_0x208bcd),_0x4d2562['_suggestionFactory']['registerCustomCallback']('deletion',_0x4bb8c9,'join',_0x208bcd),_0x4d2562['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bb8c9,'join',_0x208bcd);_0x4d2562['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x208bcd),_0x4d2562['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49e64b,_0x1ed5af,_0xec15af)=>{const _0x4d970d=_0x49e64b['map'](_0x33d6fe=>_0x33d6fe['getContainedElement']())['filter'](_0x3819db=>_0x3819db),_0x2954ac=new Map(_0x4d970d['map'](_0x12aa9e=>[_0x12aa9e,null]));if(_0x22f421){for(const {element:_0x20b601,attributes:_0x29b72f}of _0x22f421['cells'])_0x29b72f&&_0x2954ac['set'](_0x20b601,_0x29b72f);}else{if(_0xec15af&&_0xec15af['markerAttributes'])for(const [_0x5792b0,_0x60499f]of Object['entries'](_0xec15af['markerAttributes'])){const _0x28c91d=_0xb0f274['model']['markers']['get'](_0x5792b0),_0x4af9fd=_0x28c91d?_0x28c91d['getRange']()['getContainedElement']():null;_0x4af9fd&&_0x2954ac['set'](_0x4af9fd,_0x60499f);}}_0xb0f274['model']['change'](_0x2bdd29=>{for(const [_0x348ae4,_0x41fed6]of _0x2954ac)_0x2bdd29['setAttributes']({...we,..._0x41fed6},_0x348ae4);});});const _0x9b002c=(_0x556df5,_0x33c1c4)=>{_0x4d2562['_suggestionFactory']['registerCustomCallback'](_0x556df5,'tablePaste',_0x33c1c4,(_0x1fafac,_0x3aded7,_0x446002)=>{_0xb0f274['model']['change'](_0x42f519=>{const _0x19a973=[];for(const _0x5a79bf of _0x1fafac){const _0x58e183=_0x5a79bf['start']['nodeAfter'];_0x58e183['is']('element','tableCellSuggestion')&&_0x19a973['push'](_0x58e183);}_0x4d2562['_suggestionFactory']['getSuggestionCallback'](_0x556df5,null,_0x33c1c4)(_0x1fafac,_0x3aded7,_0x446002);for(const _0x39288a of _0x19a973)'$graveyard'!=_0x39288a['root']['rootName']&&_0x42f519['unwrap'](_0x39288a);});});};_0x9b002c('insertion','accept'),_0x9b002c('insertion','discard'),_0x9b002c('deletion','accept'),_0x9b002c('deletion','discard'),_0x4d2562['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3ca571=>{const _0x438b34=_0x3ca571['map'](_0x254a74=>_0x254a74['getContainedElement']()),_0x131678=_0x438b34[0x0]['findAncestor']('table'),{minRow:_0x5cdc54,maxRow:_0x53cd92}=_0x143dab['_getCoordsForCells'](_0x438b34);_0x5c7284['removeRows'](_0x131678,{'at':_0x5cdc54,'rows':_0x53cd92-_0x5cdc54+0x1});}),_0x4d2562['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x179747=>{const _0x32bbfa=_0x179747['map'](_0x7ab741=>_0x7ab741['getContainedElement']()),_0x2ad661=_0x32bbfa[0x0]['findAncestor']('table'),{minColumn:_0x2f870e,maxColumn:_0x305302}=_0x143dab['_getCoordsForCells'](_0x32bbfa);_0x5c7284['removeColumns'](_0x2ad661,{'at':_0x2f870e,'columns':_0x305302-_0x2f870e+0x1});});const _0x553ff0=(_0x322f63,_0x4d87a0)=>{if(!_0x4d87a0['subType']||!_0x4d87a0['subType']['startsWith']('tablePaste'))return;const _0x384a0d=_0x4d87a0['attributes']['tablePasteChainId'],_0x1fe97c=_0x4d2562['getSuggestions']()['filter'](_0x519b47=>_0x519b47['isInContent']&&_0x519b47['attributes']&&_0x519b47['attributes']['tablePasteChainId']==_0x384a0d);_0x1fe97c['length']&&_0x4d87a0['getAllAdjacentSuggestions']()['length']!=_0x1fe97c['length']&&_0x1fe97c['reduce']((_0x328a52,_0x12fdca)=>(_0x328a52['next']=_0x12fdca,_0x12fdca['previous']=_0x328a52,_0x12fdca));};function _0x3cc7cd(_0x7449d,_0x3ef995=!0x0){const {id:_0x2ed5b3,authorId:_0x2bb50b}=_0x4d2562['_splitMarkerName'](_0x7449d['markerName']),_0x293483=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x55f8c5=_0x4d2562['activeMarkers']['includes'](_0x7449d['markerName']);return _0x55f8c5&&_0x293483['push']('ck-suggestion-marker--active'),{'classes':_0x293483,'attributes':{'data-suggestion':_0x2ed5b3,'data-author-id':_0x2bb50b},'priority':_0x55f8c5&&_0x3ef995?0xbc2:0xbb8};}_0x4d2562['on']('suggestionLoaded',_0x553ff0,{'priority':'high'}),_0x4d2562['on']('suggestionUnloaded',_0x553ff0,{'priority':'high'}),_0xb0f274['model']['document']['registerPostFixer'](()=>{let _0x6ad744=!0x1;const _0x13eff9=Array['from'](_0xb0f274['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x381ec0,data:_0x53da15}of _0x13eff9){const {group:_0x5dd954,type:_0x30a4bd,id:_0x45c2a8}=_0x4d2562['_splitMarkerName'](_0x381ec0);if('suggestion'!=_0x5dd954||'deletion'!=_0x30a4bd||_0x53da15['oldRange'])continue;if(!_0x4d2562['hasSuggestion'](_0x45c2a8))continue;const _0x146674=_0x4d2562['getSuggestion'](_0x45c2a8)['getRanges'](),_0x8b4fa4=_0xb0f274['plugins']['get']('Users')['me'];for(const _0x5495f8 of _0x4d2562['getSuggestions']()){if(!_0x5495f8['isInContent']||_0x5495f8['author']!=_0x8b4fa4)continue;if('formatBlock'!=_0x5495f8['type']||'tablePasteCell'!=_0x5495f8['subType'])continue;if(_0x5495f8['getRanges']()['every'](_0x85d6c6=>_0x146674['some'](_0x29e76d=>_0x29e76d['containsRange'](_0x85d6c6,!0x0)))){for(const _0x1ade6e of _0x5495f8['getAllAdjacentSuggestions']())_0x1ade6e['isInContent']&&(_0x1ade6e['discard'](),_0x6ad744=!0x0);}}}return _0x6ad744;}),_0xb0f274['model']['document']['registerPostFixer'](_0x2324dc=>{const _0x4f1400=_0xb0f274['commands']['get']('redo');if(!_0x4f1400||!_0x4f1400['_createdBatches']['has'](_0x2324dc['batch']))return!0x1;let _0x5cd55e=!0x1;const _0x5d24a3=_0xb0f274['plugins']['get']('Users')['me'],_0x25f1de=_0xb0f274['model']['document']['differ']['getChanges'](),_0x2b7cc7=Array['from'](_0xb0f274['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x455937,data:_0x303a76})=>{const {group:_0x452f4f,subType:_0x24304e,authorId:_0x51251e}=_0x4d2562['_splitMarkerName'](_0x455937);return'suggestion'==_0x452f4f&&'tablePaste'==_0x24304e&&_0x51251e==_0x5d24a3['id']&&!_0x303a76['oldRange'];});for(const _0x41efdc of _0x25f1de){if('insert'!=_0x41efdc['type']||'tableCellSuggestion'!=_0x41efdc['name']||0x1!=_0x41efdc['length'])continue;const _0x11c778=_0x2324dc['createRange'](_0x41efdc['position'],_0x41efdc['position']['getShiftedBy'](0x1));if(!_0x2b7cc7['find'](({data:_0x13be67})=>_0x13be67['newRange']['isEqual'](_0x11c778))){for(const {name:_0x581ab8,data:_0x3b8ba8}of _0x2b7cc7)if(_0x11c778['containsRange'](_0x3b8ba8['newRange'])){_0x2324dc['updateMarker'](_0x581ab8,{'range':_0x11c778}),_0x5cd55e=!0x0;break;}}}return _0x5cd55e;}),_0xb0f274['model']['document']['registerPostFixer'](_0x3498e3=>{let _0x4a11a5=!0x1;const _0x439f51=_0xb0f274['plugins']['get']('Users')['me'],_0x28d2dd=_0x4d2562['getSuggestions']()['filter'](_0x3b2e7f=>_0x3b2e7f['isInContent']&&_0x3b2e7f['author']==_0x439f51),_0x4fa5f9=new Set(),_0x3d2846=new Set();for(const _0x23a665 of _0x28d2dd)if('tablePaste'==_0x23a665['subType'])for(const _0x34b9cb of _0x23a665['getMarkers']()){const _0x3673b4=_0x34b9cb['getRange']()['getContainedElement']();if(_0x3673b4){if(_0x3673b4['is']('element','tableCellSuggestion')&&ke(_0x3673b4)){_0x23a665['removeMarker'](_0x34b9cb['name']),_0x4fa5f9['add'](_0x3673b4),_0x4a11a5=!0x0;const _0x33d8b1=_0x3673b4['nextSibling'],_0x162ed9=_0x3673b4['previousSibling'],_0x18f6f4=_0x33d8b1&&_0x33d8b1['is']('element','tableCellSuggestion'),_0x591d12=_0x162ed9&&_0x162ed9['is']('element','tableCellSuggestion');_0x18f6f4&&!_0x4fa5f9['has'](_0x33d8b1)&&_0x3d2846['add'](_0x33d8b1),_0x591d12&&!_0x4fa5f9['has'](_0x162ed9)&&_0x3d2846['add'](_0x162ed9);}else _0x3673b4['is']('element','paragraph')&&_0x3673b4['isEmpty']&&(_0x23a665['removeMarker'](_0x34b9cb['name']),_0x4a11a5=!0x0);}}else{if('tablePasteCell'==_0x23a665['subType']){if(!_0x23a665['attributes']||!_0x23a665['attributes']['tablePasteChainId'])continue;const _0x218da0=_0x23a665['attributes']['markerAttributes'];if(_0x218da0&&Object['keys'](_0x218da0)['length'])continue;const _0x3eef25=_0x23a665['attributes']['tablePasteChainId'];let _0x172450=!0x0,_0x247c6f=!0x0;for(const _0x31d957 of _0x28d2dd)if(_0x31d957['subType']&&_0x31d957['subType']['startsWith']('tablePaste')){if(!_0x31d957['attributes']['tablePasteChainId']){_0x247c6f=!0x1;break;}if(_0x31d957['id']!=_0x23a665['id']&&_0x31d957['attributes']['tablePasteChainId']==_0x3eef25){_0x172450=!0x1;break;}}_0x247c6f&&_0x172450&&(_0x23a665['removeMarkers'](),_0x4a11a5=!0x0);}}for(const _0x49960a of _0x4fa5f9)_0x3498e3['remove'](_0x49960a);for(const _0xd11399 of _0x3d2846)_0x3498e3['unwrap'](_0xd11399);return _0x4a11a5;}),_0xb0f274['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2fcc50,_0x3fcb3a)=>_0x3cc7cd(_0x2fcc50),'converterPriority':'high'}),_0xb0f274['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1e202e,_0x237cb8)=>_0x237cb8['options']['showSuggestionHighlights']?_0x3cc7cd(_0x1e202e,!0x1):null,'converterPriority':'high'});const _0x945388=_0xb0f274['editing']['view'];this['listenTo'](_0x945388['document'],'clipboardOutput',(_0x4883e3,_0x399d57)=>{const _0x40aa5a=[];for(const _0x28c834 of _0x945388['createRangeIn'](_0x399d57['content'])['getItems']())_0x28c834['is']('element','suggestion-td')&&_0x40aa5a['push'](_0x28c834);_0x945388['change'](_0x570d5e=>{for(const _0x2d5e18 of _0x40aa5a)_0x570d5e['move'](_0x570d5e['createRangeIn'](_0x2d5e18),_0x570d5e['createPositionBefore'](_0x2d5e18)),_0x570d5e['remove'](_0x2d5e18);});});}}function ke(_0x1ee276){if(_0x1ee276['isEmpty'])return!0x0;const _0x1de0eb=_0x1ee276['getChild'](0x0);return _0x1de0eb['is']('element','paragraph')&&_0x1de0eb['isEmpty'];}function Re(_0x2ae879,_0x1276fa={},_0x4a70f1){for(const {isAnchor:_0x3059ae,cellHeight:_0x8ca939,cellWidth:_0x935dfc}of _0x4a70f1['createTableWalker'](_0x2ae879,{'includeAllSlots':!0x0,..._0x1276fa}))if(!_0x3059ae||0x1!=_0x8ca939||0x1!=_0x935dfc)return!0x1;return!0x0;}class Nt extends _0x152a51{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x514974=this['editor']['plugins']['get']('TrackChangesEditing');_0x514974['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x514974['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x514974['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x514974['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x514974['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x514974['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b9027,_0x5145e6){const _0x5723e6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47e5a0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x154ce7=_0x5145e6['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x381e16=_0x47e5a0['getColumnGroupElement'](_0x154ce7);let _0x2b51ea=_0x381e16?_0x47e5a0['getTableColumnsWidths'](_0x381e16):null,_0x14a932=_0x154ce7['getAttribute']('tableWidth')||null;const _0x5cdd98=_0x5145e6['tableWidth']||_0x14a932,_0x1efd3b=_0x5145e6['columnWidths']||_0x2b51ea,_0x52bf4c=this['editor']['plugins']['get']('Users')['me'];for(const _0x5d6f24 of _0x5723e6['getSuggestions']()){const _0xe3296a=_0x5d6f24['getContainedElement']();if('resizeTable'===_0x5d6f24['subType']&&_0xe3296a===_0x154ce7){_0x5d6f24['author']!==_0x52bf4c&&_0x5d6f24['discard']();const _0x3c4480=_0x5d6f24['data']['commandParams'];_0x14a932=_0x3c4480[0x0]['tableWidth'],_0x2b51ea=_0x3c4480[0x0]['columnWidths'];break;}}_0x4b9027({'table':_0x154ce7,'tableWidth':_0x5cdd98,'columnWidths':_0x1efd3b}),_0x5723e6['markBlockFormat'](_0x154ce7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x14a932,'columnWidths':_0x2b51ea}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x167630){if('formatBlock'!=_0x167630['type']&&'formatInline'!=_0x167630['type'])return;const {data:_0x713719}=_0x167630;if(_0x713719&&'resizeTable'===_0x713719['formatGroupId']){const _0x5e13e0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5e13e0)};}}}class Dt extends _0x152a51{['afterInit'](){const _0x5ecfe3=this['editor'];_0x5ecfe3['plugins']['has']('Template')&&_0x5ecfe3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x152a51{['afterInit'](){const _0x53870c=this['editor'];if(!_0x53870c['commands']['get']('insertTableOfContents'))return;_0x53870c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3c5e85=_0x53870c['plugins']['get']('TrackChangesEditing'),_0x53bc0a=_0x53870c['locale'];_0x3c5e85['descriptionFactory']['registerElementLabel']('tableOfContents',_0x404b94=>o(_0x53bc0a,'ELEMENT_TABLE_OF_CONTENTS',_0x404b94));}}class $t extends _0x152a51{['afterInit'](){const _0x10fde9=this['editor'];if(!_0x10fde9['plugins']['has']('Title'))return;const _0x1b8be5=_0x10fde9['plugins']['get']('TrackChangesEditing');_0x1b8be5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x10fde9['locale'],'ELEMENT_TITLE')),_0x10fde9['model']['document']['registerPostFixer'](_0x85071e=>{let _0x31866d=!0x1;const _0x37d905=Array['from'](_0x10fde9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5f47fb,data:_0xffed55}of _0x37d905){const {group:_0x5e74cb}=_0x1b8be5['_splitMarkerName'](_0x5f47fb);if('suggestion'!==_0x5e74cb||!_0xffed55['newRange'])continue;const _0x49a5e9=_0xffed55['newRange'],_0x330e92=_0x49a5e9['end']['nodeBefore'];if(!_0x330e92||!_0x330e92['is']('element','title-content'))continue;if(!_0x49a5e9['start']['isTouching'](_0x49a5e9['end']))continue;const _0x28c398=_0x10fde9['model']['schema']['getNearestSelectionRange'](_0x49a5e9['end'],'forward');if(_0x28c398&&_0x28c398['isCollapsed']){const _0x4ae8f9=_0x85071e['createRange'](_0x49a5e9['start'],_0x28c398['start']);_0x4ae8f9['isEqual'](_0x49a5e9)||(_0x85071e['updateMarker'](_0x5f47fb,{'range':_0x4ae8f9}),_0x31866d=!0x0);}_0x31866d||(_0x85071e['removeMarker'](_0x5f47fb),_0x31866d=!0x0);}return _0x31866d;});}}class Bt extends _0x152a51{['afterInit'](){const _0x1068bf=this['editor'],_0x47ec50=_0x1068bf['plugins']['get']('TrackChangesEditing');_0x1068bf['plugins']['has']('UndoEditing')&&(_0x47ec50['enableCommand']('undo'),_0x47ec50['enableCommand']('redo'));}}class xt extends _0x152a51{static get['requires'](){return[It];}['afterInit'](){const _0x41c600=this['editor'];if(!_0x41c600['plugins']['has']('TableCaptionEditing'))return;_0x41c600['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x152a51{['tableProperties'];['tableCellProperties'];constructor(_0x1a8b86){super(_0x1a8b86),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 _0xb29c91=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x50642c of this['tableProperties'])_0xb29c91['enableCommand'](_0x50642c,(_0x165465,_0x3fe2a7)=>{const _0x2f8f21=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x50642c,[_0x2f8f21],this['tableProperties'],'tableProperties',_0x165465,_0x3fe2a7);});_0xb29c91['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb29c91['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb29c91['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x184aaa,_0x193b36)=>this['handleDiscardAction'](this['tableProperties'],_0x184aaa,_0x193b36)),_0xb29c91['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2cf64f of this['tableCellProperties'])_0xb29c91['enableCommand'](_0x2cf64f,(_0xb7966a,_0x24d68b)=>{const _0x3c4b37=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2cf64f,_0x3c4b37,this['tableCellProperties'],'tableCellProperties',_0xb7966a,_0x24d68b);});_0xb29c91['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb29c91['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb29c91['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1b64fb,_0x272fa6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1b64fb,_0x272fa6)),_0xb29c91['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xb29c91['descriptionFactory']['registerDescriptionCallback'](_0x457393=>this['handleSuggestionDescription'](_0x457393));}['_handlePropertyChange'](_0x44b762,_0x7a7024,_0x448a21,_0x192581,_0x3e69c1,_0x596f25){const _0x3da2a6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x596f25['batch'],()=>{for(const _0x1f5786 of _0x7a7024){if(this['_getSuggestion'](_0x1f5786,_0x192581))_0x3e69c1(_0x596f25);else{const _0x42985f={};for(const _0x955066 of _0x448a21){const _0x510b13=_0x1f5786['getAttribute'](_0x955066);void 0x0!==_0x510b13&&(_0x42985f[_0x955066]=_0x510b13);}_0x3e69c1(_0x596f25),_0x3da2a6['markBlockFormat'](_0x1f5786,{'commandParams':[_0x42985f]},[],_0x192581);}}});}['handleDiscardAction'](_0xc29c1a,_0x24b970,_0x10f20d){const _0x3e9c15=_0x24b970[0x0]['start']['nodeAfter'],_0x5eaae8=_0x10f20d['commandParams'][0x0];this['editor']['model']['change'](_0x421f49=>{for(const _0x21979b of _0xc29c1a)void 0x0!==_0x5eaae8[_0x21979b]?_0x421f49['setAttribute'](_0x21979b,_0x5eaae8[_0x21979b],_0x3e9c15):_0x421f49['removeAttribute'](_0x21979b,_0x3e9c15);});}['handleSuggestionDescription'](_0x21a802){if(_0x21a802['data'])switch(_0x21a802['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'](_0x4d91af,_0x3cea06){const _0x1d39a5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5aed67 of _0x1d39a5['getSuggestions']({'skipNotAttached':!0x0})){const _0x218a13=_0x5aed67['getContainedElement']();if(_0x5aed67['subType']===_0x3cea06&&_0x218a13===_0x4d91af)return _0x5aed67;}return null;}}const m='$elementName';class p extends _0x152a51{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x450956,_0x9ee6e5,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(_0x5c3596){function _0x1d1f62(_0x3bbccf){return _0x3bbccf['map'](_0x3b118a=>String['fromCharCode'](_0x3b118a))['join']('');}super(_0x5c3596),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x260132,_0x3d2727,_0x18b0c6,_0x4cb12d)=>{this['_model']['change'](()=>{for(const _0x470663 of[..._0x4cb12d,..._0x18b0c6])this['_model']['markers']['has'](_0x470663)&&_0x5c3596['editing']['reconvertMarker'](_0x470663);});}),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']=_0x5c3596['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(),_0x5c3596['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c3596['config']['get']('trackChanges.trackFormatChanges'),_0x5c3596['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c3596['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5c3596,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1d1f62([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1d1f62([0x34,0x30,0x34,0x38,0x31,0x36,0x32,0x38]);}['init'](){const _0x251ac6=this['editor'],_0x3d223b=(_0xebe50a,_0x539e08)=>{if('attribute'!=_0xebe50a)return'ck-suggestion-marker-'+_0xebe50a;const _0x9ccf39=_0x539e08['split']('|')[0x0];return this['_isBlockAttribute'](_0x9ccf39)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x251ac6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4fad99=>{const {id:_0x113b0b,authorId:_0x1af2c7,type:_0x3c0031,subType:_0x4c158c}=this['_splitMarkerName'](_0x4fad99['markerName']),_0x2182dc=['ck-suggestion-marker',_0x3d223b(_0x3c0031,_0x4c158c)];let _0x9d2de4=0xbb8;return this['activeMarkers']['includes'](_0x4fad99['markerName'])&&(_0x2182dc['push']('ck-suggestion-marker--active'),_0x9d2de4=0xbc2),'deletion'==_0x3c0031&&(_0x9d2de4+=0x5),{'classes':_0x2182dc,'attributes':{'data-suggestion':_0x113b0b,'data-author-id':_0x1af2c7},'priority':_0x9d2de4};}}),_0x251ac6['conversion']['for']('dataDowncast')['add'](_0x55410c=>{_0x55410c['on']('addMarker:suggestion',(_0xe67d0d,_0xf4137f,_0x54d3cd)=>{if(!_0x54d3cd['options']['showSuggestionHighlights'])return;const _0x3ed3e2=_0xf4137f['item'];if(!_0x3ed3e2)return;const _0x5317fb=_0x54d3cd['mapper']['toViewElement'](_0x3ed3e2);_0x251ac6['model']['schema']['isObject'](_0x3ed3e2)&&_0x5317fb&&!_0x5317fb['getCustomProperty']('widget')&&_0x5317fb['is']('containerElement')&&_0x4f9703(_0x5317fb,_0x54d3cd['writer']);},{'priority':'high'});}),_0x251ac6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2b01e2,_0x5bb5ed)=>{if(!_0x5bb5ed['options']['showSuggestionHighlights'])return null;const {type:_0x584037,subType:_0x31fb0b}=this['_splitMarkerName'](_0x2b01e2['markerName']);return{'classes':['ck-suggestion-marker',_0x3d223b(_0x584037,_0x31fb0b)],'priority':0xbb8};}});const _0x57b52d=({showActiveMarkers:_0x381be4=!0x0,isAttributeSuggestion:_0x146c12=!0x1}={})=>(_0x2d9bc6,_0x2731cd,_0x171ef3)=>{if(!_0x2731cd['item'])return;const {id:_0x747f97,authorId:_0x345b10}=this['_splitMarkerName'](_0x2731cd['markerName']);if(_0x146c12){const _0x4fea77=this['_suggestions']['get'](_0x747f97),_0x311629=this['_getAttributeKey'](_0x4fea77);if(!this['_isBlockAttribute'](_0x311629))return;}if(_0x2731cd['item']['is']('selection'))return void _0x171ef3['consumable']['consume'](_0x2731cd['item'],_0x2d9bc6['name']);const _0x386060=_0x171ef3['mapper']['toViewElement'](_0x2731cd['item']);if(_0x2731cd['item']['is']('element')&&_0x251ac6['model']['schema']['isBlock'](_0x2731cd['item'])&&!_0x386060['getCustomProperty']('addHighlight')){_0x171ef3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x386060),_0x171ef3['writer']['setAttribute']('data-suggestion',_0x747f97,_0x386060),_0x171ef3['writer']['setAttribute']('data-author-id',_0x345b10,_0x386060),_0x171ef3['mapper']['bindElementToMarker'](_0x386060,_0x2731cd['markerName']),_0x381be4&&(this['activeMarkers']['includes'](_0x2731cd['markerName'])?_0x171ef3['writer']['addClass']('ck-suggestion-marker--active',_0x386060):_0x171ef3['writer']['removeClass']('ck-suggestion-marker--active',_0x386060));for(const _0xb0fd07 of _0x251ac6['model']['createRangeIn'](_0x2731cd['item'])['getItems']())_0x171ef3['consumable']['consume'](_0xb0fd07,_0x2d9bc6['name']);_0x171ef3['consumable']['consume'](_0x2731cd['item'],_0x2d9bc6['name']);}};_0x251ac6['conversion']['for']('dataDowncast')['add'](_0x426eed=>{_0x426eed['on']('addMarker:suggestion:formatBlock',(_0xe57405,_0x2e6e95,_0x325768)=>{_0x325768['options']['showSuggestionHighlights']&&_0x57b52d({'showActiveMarkers':!0x1})(_0xe57405,_0x2e6e95,_0x325768);},{'priority':'highest'});}),_0x251ac6['conversion']['for']('dataDowncast')['add'](_0x4fa5b8=>{_0x4fa5b8['on']('addMarker:suggestion:attribute',(_0x3ea36d,_0x5a72c9,_0x2321a5)=>{_0x2321a5['options']['showSuggestionHighlights']&&_0x57b52d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3ea36d,_0x5a72c9,_0x2321a5);},{'priority':'highest'});}),_0x251ac6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x507db8,_0x4199dd)=>_0x4199dd['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x507db8['substr'](0xb)}}),_0x251ac6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1177fa,{writer:_0x262c3b})=>{let _0x47d82f='suggestion:'+_0x1177fa['getAttribute']('suggestion-type')+':'+_0x1177fa['getAttribute']('id');return _0x1177fa['getAttribute']('marker-count')&&(_0x47d82f+=':'+_0x1177fa['getAttribute']('marker-count')),_0x262c3b['createElement']('$marker',{'data-name':_0x47d82f});}}),_0x251ac6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x251ac6['conversion']['for']('editingDowncast')['add'](_0xa208b3=>{_0xa208b3['on']('addMarker:suggestion:formatBlock',_0x57b52d(),{'priority':'high'});}),_0x251ac6['conversion']['for']('editingDowncast')['add'](_0x5aba51=>{_0x5aba51['on']('addMarker:suggestion:attribute',_0x57b52d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x251ac6['conversion']['for']('editingDowncast')['add'](_0x548565=>{_0x548565['on']('removeMarker:suggestion:formatBlock',(_0x16f194,_0x3aa922,_0x5074d5)=>{const _0x3a3b51=_0x5074d5['mapper']['markerNameToElements'](_0x3aa922['markerName']);if(_0x3a3b51){for(const _0x263c38 of _0x3a3b51)_0x263c38['getCustomProperty']('addHighlight')||(_0x5074d5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x263c38),_0x5074d5['writer']['removeAttribute']('data-suggestion',_0x263c38),_0x5074d5['writer']['removeAttribute']('data-author-id',_0x263c38),_0x5074d5['mapper']['unbindElementFromMarkerName'](_0x263c38,_0x3aa922['markerName']));}},{'priority':'high'});}),_0x251ac6['conversion']['for']('editingDowncast')['add'](_0x5570b6=>{_0x5570b6['on']('removeMarker:suggestion:attribute',(_0x4b29f9,_0x517d08,_0x53d146)=>{const _0x8441d2=_0x53d146['mapper']['markerNameToElements'](_0x517d08['markerName']);if(!_0x8441d2)return;const {id:_0x9ef7d4}=this['_splitMarkerName'](_0x517d08['markerName']),_0x39d75f=this['_suggestions']['get'](_0x9ef7d4),_0x57c1c1=this['_getAttributeKey'](_0x39d75f);if(this['_isBlockAttribute'](_0x57c1c1)){for(const _0x59ba34 of _0x8441d2)_0x59ba34['getCustomProperty']('addHighlight')||(_0x53d146['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59ba34),_0x53d146['writer']['removeAttribute']('data-suggestion',_0x59ba34),_0x53d146['writer']['removeAttribute']('data-author-id',_0x59ba34),_0x53d146['mapper']['unbindElementFromMarkerName'](_0x59ba34,_0x517d08['markerName']));}},{'priority':'high'});}),_0x251ac6['model']['document']['registerPostFixer'](_0x3347c7=>{let _0x40fb85=!0x1;const _0x3a93c2=Array['from'](_0x251ac6['model']['document']['differ']['getChangedMarkers']()),_0x24b9f6=new Set();for(const {name:_0x14e8c7,data:_0x2036b3}of _0x3a93c2){const {group:_0xc45dda,type:_0xbc5e3c,subType:_0x480561,id:_0x413be9}=this['_splitMarkerName'](_0x14e8c7);if('suggestion'!==_0xc45dda)continue;const _0x322094=this['_suggestions']['get'](_0x413be9);if(null!=_0x2036b3['newRange']){'formatInline'==_0xbc5e3c&&(_0x40fb85=_0x40fb85||Ut(_0x2036b3['newRange'],_0x14e8c7,_0x3347c7,_0x251ac6['model']['schema']));const _0x31d113='attribute'==_0xbc5e3c&&this['_isBlockAttribute'](_0x480561['split']('|')[0x0]);if(_0x2036b3['newRange']['isCollapsed']||'$graveyard'==_0x2036b3['newRange']['root']['rootName']||'formatBlock'==_0xbc5e3c&&!Ft(_0x2036b3['newRange'])||_0x31d113&&!Ft(_0x2036b3['newRange'])||'deletion'==_0xbc5e3c&&!(!Vt(_0x432eba=_0x2036b3['newRange'])&&!function(_0x259194){return _0x259194['start']['parent']==_0x259194['end']['nodeBefore']&&_0x259194['start']['isAtEnd'];}(_0x432eba)))_0x3347c7['removeMarker'](_0x14e8c7),_0x40fb85=!0x0;else{if(!_0x322094||!_0x322094['isInContent'])continue;if(_0x2036b3['newRange']&&_0x2036b3['oldRange']&&_0x2036b3['newRange']['isEqual'](_0x2036b3['oldRange']))continue;_0x24b9f6['add'](_0x322094);}}}var _0x432eba;return _0x24b9f6['size']>0x0&&(_0x40fb85=!!this['_joinWithAdjacentSuggestions'](_0x24b9f6)||_0x40fb85),_0x40fb85;}),_0x251ac6['model']['document']['registerPostFixer'](_0x581b9a=>{let _0x17a8bb=!0x1;for(const _0xea10cc of _0x251ac6['model']['document']['differ']['getChanges']())if('insert'==_0xea10cc['type'])for(const _0x2eb98b of this['_suggestions']['values']()){if(_0x2eb98b['isMultiRange']||!_0x2eb98b['isInContent'])continue;const _0x5450e7='formatBlock'==_0x2eb98b['type'],_0x4e0026=this['_getAttributeKey'](_0x2eb98b),_0x323db8=_0x4e0026&&this['_isBlockAttribute'](_0x4e0026);if(!_0x5450e7&&!_0x323db8)continue;const _0x44a21a=_0x2eb98b['getFirstRange']();if(_0x44a21a['start']['parent']!=_0x44a21a['end']['parent']&&!_0x44a21a['end']['isAtEnd']){const _0x4c3e97=_0x251ac6['model']['createPositionAt'](_0x44a21a['start']['nodeAfter'],'end'),_0x14c675=_0x251ac6['model']['createRange'](_0x44a21a['start'],_0x4c3e97);_0x581b9a['updateMarker'](_0x2eb98b['getFirstMarker'](),{'range':_0x14c675}),_0x17a8bb=!0x0;}}return _0x17a8bb;}),_0x251ac6['model']['document']['registerPostFixer'](_0x5aed6b=>this['_processAttributeChanges'](_0x5aed6b)),_0x251ac6['model']['document']['registerPostFixer'](_0x2951d5=>!_0x2951d5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2951d5)),_0x251ac6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x251ac6['model']['document']['on']('change:data',(_0xe42ec1,_0x426b4d)=>{if(!_0x426b4d['isLocal']||_0x426b4d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4e65e7=_0x251ac6['model']['document']['differ']['getChanges']();if(0x0==_0x4e65e7['length'])return;const _0x3e8637=[],_0x2448fc=_0x4e65e7['filter'](_0x45d70e=>'attribute'==_0x45d70e['type']),_0x3ae08b=_0x4e65e7['filter'](_0x1dce8c=>'insert'==_0x1dce8c['type']&&'$text'!=_0x1dce8c['name']);for(const _0x1b9cdd of _0x2448fc)this['_isRegisteredAttribute'](_0x1b9cdd['attributeKey'])&&_0x3e8637['push']({'key':_0x1b9cdd['attributeKey'],'newValue':_0x1b9cdd['attributeNewValue'],'oldValue':_0x1b9cdd['attributeOldValue'],'range':Pt(_0x1b9cdd['range'],_0x251ac6['model'])});for(const _0x1a3e4b of _0x3ae08b){if('rename'!=_0x1a3e4b['action']&&'refresh'!=_0x1a3e4b['action'])continue;const _0x59a984=Lt(_0x1a3e4b['position']['nodeAfter'],_0x251ac6['model']),_0x192caa=_0x1a3e4b['before'];'rename'==_0x1a3e4b['action']&&_0x3e8637['push']({'key':m,'newValue':_0x1a3e4b['name'],'oldValue':_0x192caa['name'],'range':_0x59a984});for(const [_0xf6946b,_0x26c6ac]of _0x192caa['attributes']){if(!this['_isRegisteredAttribute'](_0xf6946b))continue;const _0x4369cc=_0x1a3e4b['attributes']['get'](_0xf6946b);_0x26c6ac!==_0x4369cc&&_0x3e8637['push']({'key':_0xf6946b,'newValue':_0x4369cc,'oldValue':_0x26c6ac,'range':_0x59a984});}for(const [_0x15e8db,_0x119499]of _0x1a3e4b['attributes'])this['_isRegisteredAttribute'](_0x15e8db)&&(_0x192caa['attributes']['has'](_0x15e8db)||_0x3e8637['push']({'key':_0x15e8db,'newValue':_0x119499,'oldValue':null,'range':_0x59a984}));}0x0!=_0x3e8637['length']&&_0x251ac6['model']['enqueueChange'](_0x426b4d,_0x1c376b=>{const _0x328e31=_0x2a94db();for(const {range:_0x125fd2,key:_0x1225e6,oldValue:_0x4ae53e,newValue:_0x3efcbc}of _0x3e8637)this['markAttributeChange'](_0x125fd2,_0x1225e6,_0x4ae53e,_0x3efcbc,{'groupId':_0x328e31});this['_reduceExistingSuggestions'](_0x1c376b,_0x3e8637);});},{'priority':'lowest'}),_0x251ac6['model']['markers']['on']('update:suggestion',(_0x12005a,_0x4a6cb2,_0x169421)=>{if(null==_0x169421){const {id:_0x36eb23}=this['_splitMarkerName'](_0x4a6cb2['name']),_0x58b6eb=this['_suggestions']['get'](_0x36eb23);_0x58b6eb&&_0x58b6eb['addMarkerName'](_0x4a6cb2['name']);}}),_0x251ac6['model']['document']['on']('change:data',()=>{const _0x55d2a5=Array['from'](_0x251ac6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46115d=>'suggestion'===this['_splitMarkerName'](_0x46115d['name'])['group']);if(0x0===_0x55d2a5['length'])return;_0x55d2a5['sort']((_0x48e469,_0x3ca031)=>{const _0x4a0829=_0x48e469['data']['oldRange'],_0x48f3ff=_0x3ca031['data']['oldRange'];return null===_0x4a0829&&null===_0x48f3ff?0x0:null===_0x4a0829&&null!==_0x48f3ff?-0x1:null!==_0x4a0829&&null===_0x48f3ff?0x1:_0x4a0829['start']['isBefore'](_0x48f3ff['start'])?-0x1:0x1;});const _0x8cfd00=new Set(),_0x442d25=new Set();for(const {name:_0x1135cc,data:_0x4806e5}of _0x55d2a5){const {id:_0x5b89a7}=this['_splitMarkerName'](_0x1135cc);if(null===_0x4806e5['oldRange']){const _0x11b9e6=this['_handleNewSuggestionMarker'](_0x1135cc);_0x442d25['add'](_0x11b9e6);}else{const _0x394356=this['_suggestions']['get'](_0x5b89a7);null!==_0x4806e5['newRange']||_0x394356['isInContent']?(_0x8cfd00['add'](_0x394356['head']),_0x442d25['add'](_0x394356)):this['_removeSuggestion'](_0x394356);}}_0x442d25['size']>0x0&&this['_refreshSuggestionsChain'](_0x442d25);for(const _0x15e75a of _0x8cfd00)this['fire']('suggestionChanged',_0x15e75a);}),_0x251ac6['model']['on']('applyOperation',(_0x862721,_0x382f9e)=>{const _0x30213f=_0x382f9e[0x0];if(!this['_suggestions']['size'])return;if(!_0x30213f['isDocumentOperation'])return;if(_0x30213f['batch']['isUndo']||!_0x30213f['batch']['isLocal'])return;let _0x369ccb,_0x849d66;switch(_0x30213f['type']){case'insert':_0x369ccb=_0x251ac6['model']['createPositionAt'](_0x30213f['position']),_0x849d66=_0x369ccb['getShiftedBy'](_0x30213f['howMany']);break;case'split':_0x369ccb=_0x251ac6['model']['createPositionAt'](_0x30213f['splitPosition']),_0x849d66=_0x251ac6['model']['createPositionAt'](_0x30213f['moveTargetPosition']);break;case'move':_0x369ccb=_0x251ac6['model']['createPositionAt'](_0x30213f['targetPosition']),_0x849d66=_0x369ccb['getShiftedBy'](_0x30213f['howMany']);break;default:return;}const _0x55ea32=_0x251ac6['model']['createRange'](_0x369ccb,_0x849d66);_0x251ac6['model']['change'](()=>{for(const {suggestion:_0x60edfd,meta:_0x44033b}of this['_findSuggestions'](_0x55ea32)){if(_0x60edfd['isMultiRange'])continue;if('formatInline'==_0x60edfd['type'])continue;const _0x32f6dd=this['_getAttributeKey'](_0x60edfd);if(_0x32f6dd&&this['_isBlockAttribute'](_0x32f6dd)&&'split'!=_0x30213f['type'])continue;const _0x4c986c=_0x60edfd['data']&&_0x60edfd['data']['multipleBlocks'];('formatBlock'!=_0x60edfd['type']||'split'==_0x30213f['type']&&!_0x4c986c)&&(_0x44033b['containsRangeInObject']||'insertion'==_0x60edfd['type']&&_0x44033b['isOwn']||_0x60edfd['getFirstRange']()['containsRange'](_0x55ea32)&&this['_breakSuggestionMarker'](_0x60edfd,_0x369ccb,_0x849d66));}});},{'priority':'lowest'}),_0x251ac6['model']['on']('deleteContent',(_0xa7250,_0x252300)=>{const _0x35af6e=_0x252300[0x0],_0x1a2684=_0x252300[0x1];if(_0x1a2684&&_0x1a2684['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x35af6e['isCollapsed'])return;const _0x29767c=_0x251ac6['model']['schema'],{start:_0x183fd9,end:_0x4210d8}=_0x35af6e['getFirstRange'](),_0x1319b3=_0x183fd9['nodeAfter']&&_0x29767c['isLimit'](_0x183fd9['nodeAfter'])?null:_0x29767c['getNearestSelectionRange'](_0x183fd9,'forward'),_0x4b702e=_0x4210d8['nodeBefore']&&_0x29767c['isLimit'](_0x4210d8['nodeBefore'])?null:_0x29767c['getNearestSelectionRange'](_0x4210d8,'backward'),_0x376345=_0x251ac6['model']['createRange'](_0x1319b3?_0x1319b3['start']:_0x183fd9,_0x4b702e?_0x4b702e['end']:_0x4210d8);_0x251ac6['model']['change'](_0x229eb3=>{this['markDeletion'](_0x376345);const _0x4b345a=_0x251ac6['model']['schema']['getNearestSelectionRange'](_0x376345['start']);_0x35af6e['is']('documentSelection')?_0x229eb3['setSelection'](_0x4b345a):_0x35af6e['setTo'](_0x4b345a);}),_0xa7250['stop']();},{'priority':_0x4f84c1['normal']+0xa}),_0x251ac6['model']['on']('insertContent',(_0xf9bea4,_0x509c75)=>{const _0x359beb=_0x509c75[_0x509c75['length']-0x1];_0x359beb&&_0x359beb['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x251ac6['model']['change'](()=>{let _0x414923=_0x251ac6['model']['insertContent'](_0x509c75[0x0],_0x509c75[0x1],_0x509c75[0x2],{'forceDefaultExecution':!0x0});if(!_0x414923)return;_0xf9bea4['return']=_0x414923['clone']();const _0x124595=_0x414923['end']['nodeBefore'],_0x4e5700=_0x251ac6['model']['schema'];_0x124595&&_0x4e5700['isBlock'](_0x124595)&&!_0x4e5700['isObject'](_0x124595)&&(_0x414923=_0x251ac6['model']['createRange'](_0x414923['start'],_0x251ac6['model']['createPositionAt'](_0x124595,'end'))),this['markInsertion'](_0x414923);}),_0xf9bea4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x303992=new x(_0x251ac6,this['_suggestions']);_0x251ac6['commands']['add']('acceptSuggestion',_0x303992),this['enableCommand']('acceptSuggestion');const _0x53d14b=new R(_0x251ac6,this['_suggestions']);_0x251ac6['commands']['add']('discardSuggestion',_0x53d14b),this['enableCommand']('discardSuggestion'),_0x251ac6['commands']['add']('acceptAllSuggestions',new E(_0x251ac6,_0x303992,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x251ac6['commands']['add']('discardAllSuggestions',new E(_0x251ac6,_0x53d14b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x251ac6['commands']['add']('acceptSelectedSuggestions',new O(_0x251ac6,_0x303992,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x251ac6['commands']['add']('discardSelectedSuggestions',new O(_0x251ac6,_0x53d14b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5415fd=_0x251ac6['plugins']['get']('CommentsRepository');this['listenTo'](_0x5415fd,'addComment',(_0x266d92,{threadId:_0x22883d})=>{const _0x224efe=this['_suggestions']['get'](_0x22883d);_0x224efe&&_0x224efe['commentThread']&&0x1===_0x224efe['commentThread']['length']&&this['_updateSuggestionData'](_0x22883d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5415fd,'removeComment',(_0x25bd4c,{threadId:_0xfcf1f})=>{const _0x42e0b1=this['_suggestions']['get'](_0xfcf1f);_0x42e0b1&&_0x42e0b1['commentThread']&&!_0x42e0b1['commentThread']['length']&&this['_updateSuggestionData'](_0xfcf1f,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3ba269){if(this['_adapter'])throw new _0x5e7528('track-changes-adapter-already-set',this);this['_adapter']=_0x3ba269;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1f621b=!0x1,toJSON:_0x2cf2bf=!0x1}={}){const _0x57f312=[];for(const _0x40c8db of this['_suggestions']['values']())_0x1f621b&&!_0x40c8db['isInContent']||_0x57f312['push'](_0x40c8db);return _0x2cf2bf?_0x57f312['map'](_0x2f712f=>_0x2f712f['toJSON']()):_0x57f312;}['getSuggestion'](_0x58abb3){const _0x4f8171=this['_suggestions']['get'](_0x58abb3);if(!_0x4f8171)throw new _0x5e7528('track-changes-suggestion-not-found',this);return _0x4f8171;}['hasSuggestion'](_0x2ba069){return this['_suggestions']['has'](_0x2ba069);}['addSuggestionData'](_0x2f9925){const {authorId:_0x586b67,id:_0x5bd108,attributes:_0x5c1168}=_0x2f9925,[_0x22ad29,_0x4e0e2f]=_0x2f9925['type']['split'](':'),_0x9a0562=this['_suggestions']['get'](_0x5bd108)||this['_createSuggestion'](_0x22ad29,_0x4e0e2f,_0x5bd108,_0x586b67,_0x5c1168);if(this['_addThreadToSuggestion'](_0x9a0562),this['_checkSuggestionCorrectness'](_0x9a0562,_0x22ad29,_0x4e0e2f||null,_0x586b67),_0x9a0562['createdAt']=_0x2f9925['createdAt'],_0x9a0562['_isDataLoaded']=!0x0,_0x5c1168&&_0x5c1168['@external']){const _0x335821=_0x5c1168['@external'],_0x445cc4=this['_getExternalAuthor'](_0x335821['authorName']);_0x9a0562['authoredAt']=_0x335821['createdAt'],_0x9a0562['author']=_0x445cc4,_0x9a0562['isExternal']=!0x0;}else _0x9a0562['authoredAt']=_0x2f9925['createdAt'];switch(_0x2f9925['data']&&(_0x9a0562['data']=_0x2f9925['data']),_0x2f9925['attributes']&&(_0x9a0562['attributes']=_0x2f9925['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x9a0562['_saved']=!0x0),this['_suggestionState']['get'](_0x9a0562)){case'notReady':this['_suggestionState']['set'](_0x9a0562,'dataReady');break;case'markerReady':_0x9a0562['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x9a0562])),this['_refreshSuggestionsChain'](new Set([_0x9a0562])),this['_suggestionState']['set'](_0x9a0562,'ready'),this['fire']('suggestionLoaded',_0x9a0562)):this['_suggestionState']['set'](_0x9a0562,'removed');}return _0x9a0562;}['acceptSuggestion'](_0x337e5f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x369088 of _0x337e5f['getAllAdjacentSuggestions']())_0x369088['accept']();});});}['discardSuggestion'](_0x143fa0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x72b739 of _0x143fa0['getAllAdjacentSuggestions']())_0x72b739['discard']();});});}['enableCommand'](_0x2110b4,_0xfb92d5){const _0x55cf17=this['editor']['commands']['get'](_0x2110b4);if(!_0x55cf17)throw new _0x5e7528('track-changes-command-not-found',this,{'commandName':_0x2110b4});if(this['_enabledCommands']['has'](_0x55cf17))throw new _0x5e7528('track-changes-enable-command-twice',this,{'commandName':_0x2110b4});this['_enabledCommands']['add'](_0x55cf17),_0xfb92d5&&_0x55cf17['on']('execute',(_0x481545,_0x403f45)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x403f45['length']>0x0&&_0x403f45[_0x403f45['length']-0x1]&&_0x403f45[_0x403f45['length']-0x1]['forceDefaultExecution']?_0x403f45['pop']():(_0x481545['return']=_0xfb92d5((..._0x158e1c)=>_0x55cf17['execute'](..._0x158e1c,{'forceDefaultExecution':!0x0}),..._0x403f45),_0x481545['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3d6d4e){let _0x20940b,_0x1e2570;const _0x4cfe88=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x20940b=_0x3d6d4e();}catch(_0xaabc14){_0x1e2570=_0xaabc14;}return _0x4cfe88||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1e2570&&_0x5e7528['rethrowUnexpectedError'](_0x1e2570,this),_0x20940b;}['markInsertion'](_0x1c6a14,_0x5bc354=null,_0x3315f3={}){if(_0x1c6a14['isCollapsed'])return null;const _0x42b0e5=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xd5bf04,meta:_0x1ad522}of this['_findSuggestions'](_0x1c6a14,'insertion'))if(_0x1ad522['isOwn']){if(!_0x1ad522['isNextTo']){if(_0x1ad522['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0xd5bf04,_0x3315f3))continue;return _0xd5bf04;}if(qt(_0xd5bf04,_0x3315f3))return _0xd5bf04;this['_breakSuggestionMarker'](_0xd5bf04,_0x1c6a14['start'],_0x1c6a14['end']);break;}if(_0x5bc354==_0xd5bf04['subType']&&qt(_0xd5bf04,_0x3315f3)){const _0x25e04e=_0xd5bf04['getFirstRange']();return _0x25e04e['start']['isEqual'](_0x1c6a14['end'])?this['_setSuggestionRange'](_0xd5bf04,this['_model']['createRange'](_0x1c6a14['start'],_0x25e04e['end'])):this['_setSuggestionRange'](_0xd5bf04,this['_model']['createRange'](_0x25e04e['start'],_0x1c6a14['end'])),_0xd5bf04;}}const _0x51d743=_0x2a94db(),_0x25ae5e=_0x42b0e5['id'],_0x503960=_0x5bc354?'insertion:'+_0x5bc354:'insertion',_0x472005=this['_setSuggestionData']({'id':_0x51d743,'type':_0x503960,'createdAt':new Date(),'authorId':_0x25ae5e,'attributes':_0x3315f3});return this['_addSuggestionMarker'](_0x503960,_0x51d743,_0x25ae5e,_0x1c6a14),_0x472005;}['markMultiRangeInsertion'](_0x12dac3,_0x3fb764='multi',_0x448ab9={}){const _0x1cfdfb=this['editor']['plugins']['get']('Users')['me'],_0x6277a7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3fb764,'join');for(const _0x2a111e of this['getSuggestions']())if(_0x2a111e['author']['id']==_0x1cfdfb['id']&&'insertion'==_0x2a111e['type']&&_0x2a111e['subType']==_0x3fb764&&qt(_0x2a111e,_0x448ab9)&&(_0x6277a7(_0x2a111e['getRanges'](),_0x12dac3)||_0x6277a7(_0x12dac3,_0x2a111e['getRanges']()))){for(const _0x4f3c81 of _0x12dac3)_0x2a111e['addRange'](_0x4f3c81);return _0x2a111e;}for(const {suggestion:_0x572837,meta:_0x4144f6}of this['_findSuggestions'](_0x12dac3,'insertion')){if(!_0x4144f6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4144f6['containsRangeInObject'])continue;if(!qt(_0x572837,_0x448ab9))continue;let _0x21bcbe=!0x0;for(const _0x1f1070 of _0x572837['getRanges']())for(const _0x215b77 of _0x12dac3)if(!_0x1f1070['containsRange'](_0x215b77)){_0x21bcbe=!0x1;break;}if(_0x21bcbe)return _0x572837;}const _0x5a9d19=_0x2a94db(),_0x290ee2=_0x1cfdfb['id'],_0x1f95c8='insertion:'+_0x3fb764,_0x13cb0e=this['_setSuggestionData']({'id':_0x5a9d19,'type':_0x1f95c8,'createdAt':new Date(),'authorId':_0x290ee2,'attributes':_0x448ab9});for(const _0x5b37a5 of _0x12dac3)this['_addSuggestionMarker'](_0x1f95c8,_0x5a9d19,_0x290ee2,_0x5b37a5,u['getMultiRangeId']());return _0x13cb0e;}['markInlineFormat'](_0x57f445,_0x143d8d,_0x355483=null,_0x4ba1b9={}){if(_0x355483=_0x355483||Gt(_0x143d8d),_0x57f445['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x571b11=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x355483,'accept');return this['forceDefaultExecution'](()=>_0x571b11([_0x57f445],_0x143d8d,_0x4ba1b9)),null;}const _0x28d25d=this['editor']['plugins']['get']('Users')['me'],_0x54b346=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xb57367,meta:_0x21dc65}of this['_findSuggestions'](_0x57f445,'insertion'))_0x21dc65['isOwn']&&!_0x21dc65['isInsideObject']&&_0x54b346['push'](..._0xb57367['getRanges']());}const _0x5c8c56=function(_0x302fd6,_0x521535){const _0x3eeb7b=[];for(const _0x276a79 of _0x521535){const _0x101e91=_0x302fd6['getIntersection'](_0x276a79);_0x101e91&&_0x3eeb7b['push'](_0x101e91);}return _0x3eeb7b;}(_0x57f445,_0x54b346),_0x13e55d=function(_0x53f092,_0x252651){const _0x319be5=[_0x53f092];for(const _0x23519d of _0x252651){let _0x88b383=0x0;for(;_0x88b383<_0x319be5['length'];){const _0x3a1c9f=_0x319be5[_0x88b383]['getDifference'](_0x23519d);_0x319be5['splice'](_0x88b383,0x1,..._0x3a1c9f),_0x88b383+=_0x3a1c9f['length'];}}return _0x319be5;}(_0x57f445,_0x54b346);_0x5c8c56['length']&&this['_model']['change'](()=>{for(const _0x9aca7f of _0x5c8c56){const _0x5bf4ca=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x355483,'accept');this['forceDefaultExecution'](()=>_0x5bf4ca([_0x9aca7f],_0x143d8d,_0x4ba1b9));}});for(const _0x289465 of _0x13e55d){let _0x40a14a=null,_0x3f98f=_0x289465['start'],_0x114c43=_0x289465['end'];for(const {suggestion:_0x2de8a8,meta:_0x3ec0ed}of this['_findSuggestions'](_0x289465,'formatInline')){if(!_0x3ec0ed['isOwn'])continue;if(_0x2de8a8['subType']!=_0x355483)continue;if(!qt(_0x2de8a8,_0x4ba1b9))continue;const _0x53e692=_0x2de8a8['getFirstRange']();if(_0x53e692['containsRange'](_0x289465,!0x0))return null;_0x3f98f=_0x3f98f['isBefore'](_0x53e692['start'])?_0x3f98f:_0x53e692['start'],_0x114c43=_0x114c43['isAfter'](_0x53e692['end'])?_0x114c43:_0x53e692['end'],_0x40a14a?_0x53e692['start']['isBefore'](_0x40a14a['getFirstRange']()['start'])?(_0x40a14a['removeMarkers'](),_0x40a14a=_0x2de8a8):_0x2de8a8['removeMarkers']():_0x40a14a=_0x2de8a8;}const _0x4f8a75=this['_model']['createRange'](_0x3f98f,_0x114c43);if(_0x40a14a)this['_setSuggestionRange'](_0x40a14a,_0x4f8a75);else{const _0x27e590=_0x2a94db(),_0x2f2572=_0x28d25d['id'];this['_setSuggestionData']({'id':_0x27e590,'type':'formatInline:'+_0x355483,'data':_0x143d8d,'createdAt':new Date(),'authorId':_0x2f2572,'attributes':_0x4ba1b9}),this['_addSuggestionMarker']('formatInline:'+_0x355483,_0x27e590,_0x2f2572,_0x4f8a75);}}return null;}['markBlockFormat'](_0x2888bd,_0x3f8944,_0xad1ff=[],_0x2b8a79=null,_0x5a6345={}){_0x3f8944['formatGroupId']||(_0x3f8944['formatGroupId']=_0x3f8944['commandName']),_0x3f8944['multipleBlocks']=_0x2888bd['is']('range'),_0x2b8a79=_0x2b8a79||Gt(_0x3f8944);const _0xb4d1f1=_0xad1ff['map'](_0x28c89c=>Lt(_0x28c89c,this['_model'])),_0x2c7994=_0x2888bd['is']('range')?_0x2888bd:Lt(_0x2888bd,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1a562d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b8a79,'accept');return this['forceDefaultExecution'](()=>_0x1a562d([_0x2c7994],_0x3f8944,_0x5a6345)),null;}_0xb4d1f1['push'](_0x2c7994);let _0x3f8723=!0x0;for(const _0x4a317a of _0xb4d1f1)if(!this['_rangeIsInLocalUserInsertion'](_0x4a317a)){_0x3f8723=!0x1;break;}if(_0x3f8723&&'always'!==this['_trackFormatChanges']){const _0x253db7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b8a79,'accept');return this['forceDefaultExecution'](()=>_0x253db7([_0x2c7994],_0x3f8944,_0x5a6345)),null;}let _0x4e7f6d=null,_0x33fc4b=_0x2c7994['start'],_0xda4a12=_0x2c7994['end'];for(const {suggestion:_0x236240,meta:_0x44a7a1}of this['_findSuggestions'](_0x2c7994,'formatBlock')){if(!_0x44a7a1['isOwn'])continue;if(_0x44a7a1['isNextTo']||_0x44a7a1['containsRangeInObject']||_0x44a7a1['isInsideObject'])continue;if(_0x236240['data']['formatGroupId']!=_0x3f8944['formatGroupId'])continue;if(!qt(_0x236240,_0x5a6345))continue;const _0x2d041b=_0x236240['getFirstRange']();if(_0x236240['subType']==_0x2b8a79){if(_0x2d041b['containsRange'](_0x2c7994,!0x0))return null;_0x33fc4b=_0x33fc4b['isBefore'](_0x2d041b['start'])?_0x33fc4b:_0x2d041b['start'],_0xda4a12=_0xda4a12['isAfter'](_0x2d041b['end'])?_0xda4a12:_0x2d041b['end'],_0x4e7f6d?_0x2d041b['start']['isBefore'](_0x4e7f6d['getFirstRange']()['start'])?(_0x4e7f6d['removeMarkers'](),_0x4e7f6d=_0x236240):_0x236240['removeMarkers']():_0x4e7f6d=_0x236240;}else{const _0x594050=_0x2c7994['getIntersection'](_0x2d041b);this['_cutOutSuggestionMarker'](_0x236240,_0x594050);}}const _0x4001ca=this['editor']['plugins']['get']('Users')['me'],_0x319428=_0x2a94db(),_0x46a791=_0x4001ca['id'];if(_0x4e7f6d)return this['_setSuggestionRange'](_0x4e7f6d,this['_model']['createRange'](_0x33fc4b,_0xda4a12)),_0x4e7f6d;{const _0x1d2219=this['_setSuggestionData']({'id':_0x319428,'type':'formatBlock:'+_0x2b8a79,'data':_0x3f8944,'createdAt':new Date(),'authorId':_0x46a791,'attributes':_0x5a6345});return this['_addSuggestionMarker']('formatBlock:'+_0x2b8a79,_0x319428,_0x46a791,this['_model']['createRange'](_0x33fc4b,_0xda4a12)),_0x1d2219;}}['markMultiRangeBlockFormat'](_0x2276c8,_0x5da23a,_0x329b24=[],_0x3d6b1c=null,_0x2a3e19={}){_0x5da23a['formatGroupId']||(_0x5da23a['formatGroupId']=_0x5da23a['commandName']);const _0x3e8e48=_0x2276c8[0x0];_0x5da23a['multipleBlocks']=_0x3e8e48['is']('range'),_0x3d6b1c=_0x3d6b1c||Gt(_0x5da23a);const _0x558713=_0x329b24['map'](_0x37b606=>Lt(_0x37b606,this['_model'])),_0x1eb580=_0x3e8e48['is']('range')?_0x2276c8:_0x2276c8['map'](_0x2f5280=>Lt(_0x2f5280,this['_model']));if('never'===this['_trackFormatChanges']){const _0x14aaba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d6b1c,'accept');return this['forceDefaultExecution'](()=>_0x14aaba(_0x1eb580,_0x5da23a,_0x2a3e19)),null;}_0x558713['push'](..._0x1eb580);let _0x43e499=!0x0;for(const _0x161200 of _0x558713)if(!this['_rangeIsInLocalUserInsertion'](_0x161200)){_0x43e499=!0x1;break;}if(_0x43e499&&'always'!==this['_trackFormatChanges']){const _0x24c907=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d6b1c,'accept');return this['forceDefaultExecution'](()=>_0x24c907(_0x1eb580,_0x5da23a,_0x2a3e19)),null;}const _0x1213b2=this['editor']['plugins']['get']('Users')['me'];for(const _0x50fb5b of this['getSuggestions']()){if(_0x50fb5b['author']['id']!=_0x1213b2['id'])continue;if('formatBlock'!=_0x50fb5b['type']||_0x50fb5b['data']['formatGroupId']!=_0x5da23a['formatGroupId'])continue;if(!qt(_0x50fb5b,_0x2a3e19))continue;const _0x2a7a50=_0x50fb5b['subType']==_0x3d6b1c;for(let _0x2bebeb=0x0;_0x2bebeb<_0x1eb580['length'];_0x2bebeb++){const _0x39197c=_0x1eb580[_0x2bebeb];for(const _0x5e06f7 of _0x50fb5b['getMarkers']()){const _0x5abbbd=_0x5e06f7['getRange']();if(_0x39197c['isEqual'](_0x5abbbd)){_0x2a7a50?(_0x1eb580['splice'](_0x2bebeb,0x1),_0x2bebeb--):_0x50fb5b['removeMarker'](_0x5e06f7['name']);break;}}}}if(0x0==_0x1eb580['length'])return null;const _0x56ddd7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d6b1c,'join');for(const _0x371b79 of this['getSuggestions']())if(_0x371b79['author']['id']==_0x1213b2['id']&&'formatBlock'==_0x371b79['type']&&_0x371b79['data']['formatGroupId']==_0x5da23a['formatGroupId']&&_0x371b79['subType']==_0x3d6b1c&&qt(_0x371b79,_0x2a3e19)&&(_0x56ddd7(_0x371b79['getRanges'](),_0x1eb580)||_0x56ddd7(_0x1eb580,_0x371b79['getRanges']()))){for(const _0xa2d362 of _0x1eb580)_0x371b79['addRange'](_0xa2d362);return _0x371b79;}const _0x538049=_0x2a94db(),_0x449bf3=_0x1213b2['id'],_0x35cf2b='formatBlock:'+_0x3d6b1c,_0x1d701c=this['_setSuggestionData']({'id':_0x538049,'type':_0x35cf2b,'data':_0x5da23a,'createdAt':new Date(),'authorId':_0x449bf3,'attributes':_0x2a3e19});for(const _0x5e9ac8 of _0x1eb580)this['_addSuggestionMarker'](_0x35cf2b,_0x538049,_0x449bf3,_0x5e9ac8,u['getMultiRangeId']());return _0x1d701c;}['markDeletion'](_0x50eb13,_0x56ad14=null,_0x3a077f={}){if(_0x50eb13['isCollapsed'])return null;const _0x5bd247=this['editor']['plugins']['get']('Users')['me'],_0x1b316e=new _0x22bfde(_0x50eb13['start'],_0x50eb13['end']);for(const {suggestion:_0x1b197e,meta:_0xd01077}of this['_findSuggestions'](_0x1b316e,'insertion'))if(_0xd01077['isOwn']&&!_0xd01077['isNextTo']){if(_0x1b197e['isMultiRange']){const _0x288b57=_0x1b197e['getRanges']()['filter'](_0x2d9e97=>'$graveyard'!=_0x2d9e97['root']['rootName']);_0x288b57['every'](_0x1ec0b7=>_0x1b316e['containsRange'](_0x1ec0b7,!0x0))&&_0x1b197e['discard']();if(_0x288b57['some'](_0x21ab57=>_0x21ab57['containsRange'](_0x1b316e,!0x0))){const _0xbd7193=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x56ad14,'accept');return this['forceDefaultExecution'](()=>_0xbd7193([_0x1b316e],null,_0x3a077f)),null;}}else{const _0x1035d0=_0x1b316e['getIntersection'](_0x1b197e['getFirstRange']());null!==_0x1035d0&&_0x1b197e['_onDiscard']([_0x1035d0],null,_0x3a077f);}}if(_0x1b316e['detach'](),_0x1b316e['isCollapsed']||'$graveyard'==_0x1b316e['root']['rootName'])return null;let _0x407306=null,_0x29133a=_0x1b316e['start'],_0x11b250=_0x1b316e['end'];const _0x494148=this['_findSuggestions'](_0x1b316e,'deletion');for(const {suggestion:_0x4601f3,meta:_0x9ef528}of _0x494148){const _0x1a2865=this['_model']['createRange'](_0x29133a,_0x11b250);if(_0x9ef528['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9ef528['containsRangeInObject']&&!_0x9ef528['isInsideObject'])){if(_0x4601f3['isMultiRange']){if(!qt(_0x4601f3,_0x3a077f))continue;let _0x313491=!0x0;for(const _0x15e8ce of _0x4601f3['getRanges']()){if(_0x15e8ce['containsRange'](_0x1a2865,!0x0))return _0x4601f3;_0x1a2865['containsRange'](_0x15e8ce)||(_0x313491=!0x1);}_0x313491&&_0x4601f3['discard']();}else{const _0x4cb75f=_0x4601f3['getFirstRange']();if(_0x4cb75f['containsRange'](_0x1a2865,!0x0))return _0x4601f3;if(!qt(_0x4601f3,_0x3a077f)){_0x1a2865['containsRange'](_0x4cb75f)?_0x4601f3['removeMarkers']():_0x4cb75f['containsPosition'](_0x29133a)?_0x29133a=_0x4cb75f['end']:_0x4cb75f['containsPosition'](_0x11b250)&&(_0x11b250=_0x4cb75f['start']);continue;}_0x29133a=_0x29133a['isBefore'](_0x4cb75f['start'])?_0x29133a:_0x4cb75f['start'],_0x11b250=_0x11b250['isAfter'](_0x4cb75f['end'])?_0x11b250:_0x4cb75f['end'],_0x3a077f=Object['assign']({},_0x4601f3['attributes']),_0x407306?_0x4cb75f['start']['isBefore'](_0x407306['getFirstRange']()['start'])?(_0x407306['removeMarkers'](),_0x407306=_0x4601f3):_0x4601f3['removeMarkers']():_0x407306=_0x4601f3;}}}if(_0x407306)return this['_setSuggestionRange'](_0x407306,this['_model']['createRange'](_0x29133a,_0x11b250)),_0x407306;{const _0x11781f=_0x2a94db(),_0x1be6e4=this['_model']['createRange'](_0x29133a,_0x11b250),_0x3ea967=_0x5bd247['id'],_0x2b4354=_0x56ad14?'deletion:'+_0x56ad14:'deletion',_0x3b4c08=this['_setSuggestionData']({'id':_0x11781f,'type':_0x2b4354,'createdAt':new Date(),'authorId':_0x3ea967,'attributes':_0x3a077f});return this['_addSuggestionMarker'](_0x2b4354,_0x11781f,_0x3ea967,_0x1be6e4),_0x3b4c08;}}['markMultiRangeDeletion'](_0x205dc0,_0x43aa39='multi',_0x4fa562={}){const _0x2f3f1d=this['editor']['plugins']['get']('Users')['me'],_0x4628de=_0x205dc0['map'](_0x5771d3=>new _0x22bfde(_0x5771d3['start'],_0x5771d3['end'])),_0x20d34b=new Set();for(const {suggestion:_0x3a4227,meta:_0x4c8ecb}of this['_findSuggestions'](_0x4628de,'insertion'))_0x4c8ecb['isOwn']&&!_0x4c8ecb['isNextTo']&&_0x20d34b['add'](_0x3a4227);for(const _0x227d5d of _0x20d34b)if(_0x227d5d['isMultiRange']){const _0x373331=_0x227d5d['getRanges']();(!_0x227d5d['attributes']||!_0x227d5d['attributes']['skipNestingCheck'])&&(_0x373331['every'](_0x331857=>_0x4628de['some'](_0x1459ab=>_0x1459ab['containsRange'](_0x331857,!0x0)))&&_0x227d5d['discard']());if(_0x4628de['every'](_0x390556=>_0x373331['some'](_0x5a9b42=>_0x5a9b42['containsRange'](_0x390556,!0x0)))){const _0x3b513e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43aa39,'accept');return this['forceDefaultExecution'](()=>_0x3b513e(_0x205dc0,null,_0x4fa562)),null;}}else{const _0x258e29=_0x227d5d['getFirstRange']();_0x4628de['some'](_0x517258=>_0x517258['containsRange'](_0x258e29,!0x0))&&_0x227d5d['discard']();if(_0x4628de['every'](_0x1b5fae=>_0x258e29['containsRange'](_0x1b5fae,!0x0))){const _0x276dd9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43aa39,'accept');return this['forceDefaultExecution'](()=>_0x276dd9(_0x4628de,null,_0x4fa562)),null;}}const _0x3fd17e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43aa39,'join');let _0x484011=null;for(const _0x1f7c5b of this['getSuggestions']())if(_0x1f7c5b['author']['id']==_0x2f3f1d['id']&&_0x1f7c5b['isInContent']&&'deletion'==_0x1f7c5b['type']&&_0x1f7c5b['subType']==_0x43aa39&&qt(_0x1f7c5b,_0x4fa562)&&(_0x3fd17e(_0x1f7c5b['getRanges'](),_0x4628de)||_0x3fd17e(_0x4628de,_0x1f7c5b['getRanges']()))){if(_0x484011){if(_0x1f7c5b['commentThread']&&_0x1f7c5b['commentThread']['length'])continue;for(const _0x3e195a of _0x1f7c5b['getRanges']())_0x484011['isIntersectingWithRange'](_0x3e195a)||_0x484011['addRange'](_0x3e195a);_0x1f7c5b['removeMarkers']();}else{_0x484011=_0x1f7c5b;for(const _0x546c58 of _0x4628de)_0x1f7c5b['isIntersectingWithRange'](_0x546c58)||_0x1f7c5b['addRange'](_0x546c58);}}if(_0x484011)return _0x484011;_0x20d34b['clear']();for(const {suggestion:_0x351449,meta:_0x15751e}of this['_findSuggestions'](_0x4628de,'deletion'))_0x15751e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15751e['containsRangeInObject']&&!_0x15751e['isInsideObject'])&&qt(_0x351449,_0x4fa562)&&_0x20d34b['add'](_0x351449);for(const _0x27c4c5 of _0x20d34b){const _0x202eba=_0x27c4c5['getRanges']();if(!_0x4fa562||!_0x4fa562['skipNestingCheck']){if(_0x4628de['every'](_0x1038c0=>_0x202eba['some'](_0xdf29a5=>_0xdf29a5['containsRange'](_0x1038c0,!0x0))))return _0x27c4c5;}(!_0x27c4c5['attributes']||!_0x27c4c5['attributes']['skipNestingCheck'])&&(_0x202eba['every'](_0x160e58=>_0x4628de['some'](_0x42d8ba=>_0x42d8ba['containsRange'](_0x160e58,!0x0)))&&_0x27c4c5['discard']());}const _0xbe8f42=_0x2a94db(),_0x169bdb=_0x2f3f1d['id'],_0x22d974='deletion:'+_0x43aa39,_0x3e498c=this['_setSuggestionData']({'id':_0xbe8f42,'type':_0x22d974,'createdAt':new Date(),'authorId':_0x169bdb,'attributes':_0x4fa562});for(const _0x3d2cbe of _0x4628de)_0x3d2cbe['detach'](),_0x3d2cbe['isCollapsed']||'$graveyard'==_0x3d2cbe['root']['rootName']||this['_addSuggestionMarker'](_0x22d974,_0xbe8f42,_0x169bdb,_0x3d2cbe,u['getMultiRangeId']());return _0x3e498c;}['markAttributeChange'](_0x41c293,_0x48ac2d,_0xb26357,_0x5247e0,_0x29ef59){if(_0x41c293['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5ee2cc=this['editor']['plugins']['get']('Users')['me']['id'],_0x47f833=Array['from'](this['_suggestions']['values']())['filter'](_0x4ef51b=>'attribute'==_0x4ef51b['type']&&_0x4ef51b['data']['key']==_0x48ac2d&&_0x4ef51b['isIntersectingWithRange'](_0x41c293));if('default'===this['_trackFormatChanges']){const _0x50e608=this['_findSuggestions'](_0x41c293,'insertion')['filter'](({meta:_0x194109})=>_0x194109['isOwn']&&!_0x194109['isInsideObject']&&!_0x194109['isNextTo'])['map'](({suggestion:_0xd69d9b})=>_0xd69d9b);_0x47f833['unshift'](..._0x50e608);}const _0x4d1249=new Map([[_0x41c293,_0xb26357]]);for(const _0x1c310d of _0x47f833){const _0x27c723='attribute'==_0x1c310d['type']?_0x1c310d['data']['oldValue']:void 0x0,_0x2e4a1d=_0x1c310d['getFirstRange'](),_0x19a269=Array['from'](_0x4d1249['keys']())['find'](_0x2d226c=>_0x2d226c['isIntersecting'](_0x2e4a1d));if(!_0x19a269)continue;const _0x35fe9f=_0x19a269['getDifference'](_0x2e4a1d);this['_isBlockAttribute'](_0x48ac2d)&&'insertion'==_0x1c310d['type']&&0x0!=_0x35fe9f['length']||(_0x4d1249['delete'](_0x19a269),_0x35fe9f['forEach'](_0x2676ab=>{_0x4d1249['set'](_0x2676ab,_0xb26357);}),'insertion'!=_0x1c310d['type']&&_0x27c723!=_0x5247e0&&_0x4d1249['set'](_0x19a269['getIntersection'](_0x2e4a1d),_0x27c723));}const _0x20d4cc=[];for(const [_0x1192f7,_0x547147]of _0x4d1249){const _0x2cc39c=_0x2a94db(),_0x33fddf={'key':_0x48ac2d,'oldValue':_0x547147,'newValue':_0x5247e0};_0x48ac2d['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':_0x48ac2d});const _0x3317f1=('attribute:'+(_0x48ac2d+'|'+Gt({'newValue':_0x5247e0})))['substring'](0x0,0x3c),_0x598be9=this['_setSuggestionData']({'id':_0x2cc39c,'type':_0x3317f1,'data':_0x33fddf,'createdAt':new Date(),'authorId':_0x5ee2cc,'attributes':_0x29ef59});_0x20d4cc['push'](_0x598be9),this['_addSuggestionMarker'](_0x3317f1,_0x2cc39c,_0x5ee2cc,_0x1192f7);}return _0x20d4cc;}['enableDefaultAttributesIntegration'](_0x33aacd){this['enableCommand'](_0x33aacd,(_0x2d058e,..._0x169d44)=>{this['_recordAttributeChanges'](()=>{_0x2d058e(..._0x169d44);});});}['registerBlockAttribute'](_0x37a411){this['_blockAttributeKeys']['add'](_0x37a411);}['registerInlineAttribute'](_0x2fa62a){this['_inlineAttributeKeys']['add'](_0x2fa62a);}['_getAttributeKey'](_0x48cce4){return'attribute'==_0x48cce4['type']?_0x48cce4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3b12e8,_0x1d1126){const _0x19a310=_0x3b12e8['getFirstMarker']();this['_model']['change'](_0x2be9d2=>{_0x2be9d2['updateMarker'](_0x19a310,{'range':_0x1d1126});});}['_addThreadToSuggestion'](_0x2a04f2){const _0x39cb8d=_0x2a04f2['id'],_0x266709=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x39cb8d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x266709,'threadId':_0x39cb8d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x306fcb=this['_commentsRepository']['getCommentThread'](_0x39cb8d);_0x306fcb['unbind']('isRemovable'),_0x306fcb['isRemovable']=!0x1,_0x2a04f2['commentThread']=_0x306fcb;}['_checkSuggestionCorrectness'](_0x3e117d,_0x5d84a9,_0x1d4f5c,_0x3f0cc2){if(_0x3e117d['type']!=_0x5d84a9||_0x3e117d['subType']!=_0x1d4f5c||_0x3e117d['creator']['id']!=_0x3f0cc2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5e7528('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x28fcdb,_0x16af68){const _0x26f658=_0x28fcdb['getFirstRange']();if(_0x16af68['isEqual'](_0x26f658))_0x28fcdb['removeMarkers']();else{if(_0x26f658['containsRange'](_0x16af68)){const _0x10753e=this['_model']['createPositionAt'](_0x16af68['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28fcdb,this['_model']['createRange'](_0x26f658['start'],_0x10753e));const _0x46cde4=_0x2a94db(),_0x12565d=_0x28fcdb['creator']['id'],_0x21723c=_0x28fcdb['type']+':'+_0x28fcdb['subType'];this['_setSuggestionData']({'id':_0x46cde4,'type':_0x21723c,'createdAt':new Date(),'authorId':_0x12565d,'data':_0x28fcdb['data'],'attributes':_0x28fcdb['attributes']});const _0x301a34=this['_model']['createPositionAt'](_0x16af68['end']['parent'],'after'),_0x5f1339=this['_model']['createRange'](_0x301a34,_0x26f658['end']);this['_addSuggestionMarker'](_0x21723c,_0x46cde4,_0x12565d,_0x5f1339);}else{if(_0x26f658['containsPosition'](_0x16af68['start'])){const _0x10c2a1=this['_model']['createPositionAt'](_0x16af68['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28fcdb,this['_model']['createRange'](_0x26f658['start'],_0x10c2a1));}else{const _0x1a94a4=this['_model']['createPositionAt'](_0x16af68['end']['parent'],'after');this['_setSuggestionRange'](_0x28fcdb,this['_model']['createRange'](_0x1a94a4,_0x26f658['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x55c5aa){for(const {suggestion:_0x368b98,meta:_0x290e52}of this['_findSuggestions'](_0x55c5aa,'insertion')){if(!_0x290e52['isOwn'])continue;const _0x183658=_0x368b98['getRanges']();for(const _0x6c4a19 of _0x183658)if(!_0x55c5aa['getDifference'](_0x6c4a19)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x24b07a){const _0x29a2dc=this['editor']['plugins']['get']('Users')['getUser'](_0x24b07a);if(!_0x29a2dc)throw new _0x5e7528('track-changes-user-not-found',this);return _0x29a2dc;}['_getExternalAuthor'](_0x369146){const _0x4c680d=this['editor']['plugins']['get']('Users'),_0x31830d=_0x220468('external:'+_0x369146),_0x2c8d68=_0x4c680d['getUser'](_0x31830d);return _0x2c8d68||_0x4c680d['addUser']({'id':_0x31830d,'name':_0x369146});}['_createSuggestion'](_0x58871c,_0x2df620,_0x377f07,_0x55d893,_0x11b16e){const _0xbe8843=this['_getAuthorFromId'](_0x55d893),_0x5a4d36=this['_suggestionFactory']['buildSuggestion'](_0x58871c,_0x2df620,_0x377f07,_0xbe8843,_0x11b16e,_0x4d06b9=>{this['_updateSuggestionData'](_0x377f07,{'attributes':_0x4d06b9});const _0x231e75=this['getSuggestion'](_0x377f07);this['_joinWithAdjacentSuggestions'](new Set([_0x231e75])),this['_refreshSuggestionsChain'](new Set([_0x231e75]));});return this['listenTo'](_0x5a4d36,'accept',()=>{this['_updateSuggestionData'](_0x377f07,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5a4d36,'discard',()=>{this['_updateSuggestionData'](_0x377f07,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x377f07,_0x5a4d36),this['_suggestionState']['set'](_0x5a4d36,'notReady'),_0x5a4d36;}['_splitMarkerName'](_0x41879e){const _0x1fea4d=_0x41879e['split'](':');return{'group':_0x1fea4d[0x0],'type':_0x1fea4d[0x1],'subType':_0x1fea4d['length']>=0x5?_0x1fea4d[0x2]:null,'id':_0x1fea4d['length']<0x5?_0x1fea4d[0x2]:_0x1fea4d[0x3],'authorId':_0x1fea4d['length']<0x5?_0x1fea4d[0x3]:_0x1fea4d[0x4],'markerCount':0x6==_0x1fea4d['length']?_0x1fea4d[0x5]:null};}['_breakSuggestionMarker'](_0x5c4614,_0x22fa75,_0x362831){const _0x318f08=_0x5c4614['getFirstRange'](),_0x522378=_0x318f08['start'],_0x50bf7e=_0x318f08['end'];this['_setSuggestionRange'](_0x5c4614,this['_model']['createRange'](_0x522378,_0x22fa75));const _0x4ba409=_0x2a94db(),_0x58e2a7=_0x5c4614['creator']['id'],_0x52c099=_0x5c4614['type']+(_0x5c4614['subType']?':'+_0x5c4614['subType']:'');this['_setSuggestionData']({'id':_0x4ba409,'type':_0x52c099,'createdAt':new Date(),'authorId':_0x58e2a7,'originalSuggestionId':_0x5c4614['id'],'attributes':_0x5c4614['attributes'],'data':_0x5c4614['data']});const _0x3ea726=this['_getAttributeKey'](_0x5c4614);('formatBlock'==_0x5c4614['type']||_0x3ea726&&this['_isBlockAttribute'](_0x3ea726))&&(_0x362831=this['_model']['createPositionBefore'](_0x362831['parent'])),this['_addSuggestionMarker'](_0x52c099,_0x4ba409,_0x58e2a7,this['_model']['createRange'](_0x362831,_0x50bf7e));}['_findSuggestions'](_0x4d768e,_0x4b7112=null){const _0x21c568=[],_0x391a98=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4d768e)||(_0x4d768e=[_0x4d768e]);for(const _0x1ef355 of this['getSuggestions']()){if(!_0x1ef355['isInContent'])continue;if(_0x4b7112&&_0x1ef355['type']!=_0x4b7112)continue;let _0x43cd49=!0x1;for(const _0x36dcf2 of _0x1ef355['getRanges']()){for(const _0x9f470e of _0x4d768e){const _0x1c67fb=_0x9f470e['start']['isEqual'](_0x36dcf2['end'])||_0x9f470e['end']['isEqual'](_0x36dcf2['start']);if(_0x1c67fb||_0x9f470e['getIntersection'](_0x36dcf2)){const _0x22424f=_0x9f470e['containsRange'](_0x36dcf2)&&Ot(this['_model']['schema'],_0x36dcf2['start'],_0x9f470e),_0x52f8ca=_0x36dcf2['containsRange'](_0x9f470e)&&Ot(this['_model']['schema'],_0x9f470e['start'],_0x36dcf2);_0x21c568['push']({'suggestion':_0x1ef355,'meta':{'isOwn':_0x391a98==_0x1ef355['author'],'isNextTo':_0x1c67fb,'isInsideObject':_0x22424f,'containsRangeInObject':_0x52f8ca}}),_0x43cd49=!0x0;break;}}if(_0x43cd49)break;}}return _0x21c568;}['_addSuggestionMarker'](_0x41761c,_0x1f35e8,_0x58dd90,_0x227adc,_0x4254f1){this['_model']['change'](_0x1d2251=>{let _0x4fa9a6='suggestion:'+_0x41761c+':'+_0x1f35e8+':'+_0x58dd90;_0x4254f1&&(_0x4fa9a6=_0x4fa9a6+':'+_0x4254f1),_0x1d2251['addMarker'](_0x4fa9a6,{'range':_0x227adc,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x6665b3){const _0x2a21a9=_0x6665b3['previous'],_0x18566f=_0x6665b3['next'];_0x6665b3['previous']=null,_0x6665b3['next']=null,null!=_0x2a21a9&&_0x2a21a9['next']==_0x6665b3&&(_0x2a21a9['next']=_0x18566f),null!=_0x18566f&&_0x18566f['previous']==_0x6665b3&&(_0x18566f['previous']=_0x2a21a9),'ready'==this['_suggestionState']['get'](_0x6665b3)&&(this['_suggestionState']['set'](_0x6665b3,'removed'),this['fire']('suggestionUnloaded',_0x6665b3,_0x2a21a9,_0x18566f));}['_setSuggestionData'](_0x20ab28){const _0x423af9=_0x20ab28['id'],_0x3a71fb=this['addSuggestionData'](_0x20ab28);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4028ed=this['editor']['plugins']['get']('PendingActions'),_0x141d2f=_0x3a71fb['hasComments'],_0x27980d=_0x3a71fb['subType']?_0x3a71fb['type']+':'+_0x3a71fb['subType']:_0x3a71fb['type'],_0x694809=this['editor']['locale'],_0x294844=_0x4028ed['add'](o(_0x694809,'PENDING_ACTION_SUGGESTION')),_0x1cbe81={'id':_0x423af9,'type':_0x27980d,'hasComments':_0x141d2f,'data':_0x20ab28['data']||null,'originalSuggestionId':_0x20ab28['originalSuggestionId']||null,'attributes':_0x3a71fb['attributes']};this['_adapter']['addSuggestion'](_0x1cbe81)['then'](_0x34b2e0=>{_0x3a71fb['_saved']=!0x0,_0x4028ed['remove'](_0x294844),_0x34b2e0&&_0x34b2e0['createdAt']&&(this['_suggestions']['get'](_0x423af9)['createdAt']=_0x34b2e0['createdAt']);})['catch'](_0x41c51b=>{throw _0x2e9588('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3a71fb['discard']();}),_0x3a71fb['stopListening'](),this['_suggestions']['delete'](_0x3a71fb['id']),this['_suggestionState']['delete'](_0x3a71fb),_0x41c51b;});}return _0x3a71fb;}['_isBlockAttribute'](_0x87fed4){return this['_blockAttributeKeys']['has'](_0x87fed4);}['_updateSuggestionData'](_0x1044da,_0x3faf9e){const _0x5512d6=this['editor']['plugins']['get']('PendingActions'),_0x237c0e=this['getSuggestion'](_0x1044da);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x237c0e['_saved']){const _0x1015cc=_0x5512d6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1044da,_0x3faf9e)['then'](()=>{_0x5512d6['remove'](_0x1015cc);});}else _0x237c0e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1044da,_0x3faf9e);});}}['_getSuggestionData'](_0x21b48f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5e7528('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x21b48f);}['_handleNewSuggestionMarker'](_0x424238){const {id:_0x374bc0,type:_0xe25516,subType:_0x281c7b,authorId:_0x527f43}=this['_splitMarkerName'](_0x424238),_0x37f8f1=this['_suggestions']['get'](_0x374bc0)||this['_createSuggestion'](_0xe25516,_0x281c7b,_0x374bc0,_0x527f43,{});switch(this['_checkSuggestionCorrectness'](_0x37f8f1,_0xe25516,_0x281c7b,_0x527f43),this['_suggestionState']['get'](_0x37f8f1)){case'notReady':this['_getSuggestionData'](_0x374bc0)['then'](_0x191525=>{let _0x59a6b1=Promise['resolve']();_0x191525['hasComments']&&(_0x59a6b1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x374bc0})),_0x59a6b1['then'](()=>{this['addSuggestionData'](_0x191525)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x37f8f1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x374bc0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x37f8f1,'ready'),this['fire']('suggestionLoaded',_0x37f8f1);break;case'ready':this['fire']('suggestionChanged',_0x37f8f1);}return _0x37f8f1['addMarkerName'](_0x424238),_0x37f8f1;}['_refreshSuggestionsChain'](_0x56186c){const _0x21b356=Array['from'](_0x56186c),_0x3ae0da=_0x21b356['filter'](_0x21fd03=>'attribute'==_0x21fd03['type']);this['_refreshAttributeSuggestionsChain'](_0x3ae0da);const _0x1046d6=_0x21b356['filter'](_0x2b0699=>!_0x2b0699['isMultiRange']&&'attribute'!=_0x2b0699['type']),_0x3632df=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9793a5=>!_0x9793a5['isMultiRange']&&'attribute'!=_0x9793a5['type']),_0x14a41f=_0x3632df['filter'](_0x199ad3=>!_0x56186c['has'](_0x199ad3)),_0x313a4a=new Map(_0x3632df['map'](_0x35cb20=>[_0x35cb20,this['_suggestionFactory']['getSuggestionCallback'](_0x35cb20['type'],_0x35cb20['subType'],'chain')])),_0x3c9d0a=new Map(_0x3632df['map'](_0x10c0ad=>[_0x10c0ad,_0x10c0ad['getFirstRange']()])),_0x208a41=new Set(),_0x5741e4=new Set();for(let _0x538983=0x0;_0x538983<_0x1046d6['length'];_0x538983++)_0x3e6f1c(_0x1046d6[_0x538983],_0x1046d6,_0x538983+0x1);for(let _0x45c80f=0x0;_0x45c80f<_0x1046d6['length'];_0x45c80f++)_0x3e6f1c(_0x1046d6[_0x45c80f],_0x14a41f,0x0);const _0x147740=new Set();for(let _0x1c94fc=0x0;_0x1c94fc<_0x1046d6['length'];_0x1c94fc++){const _0xae3b9b=_0x1046d6[_0x1c94fc];!_0x5741e4['has'](_0xae3b9b)&&_0xae3b9b['previous']&&(_0x147740['add'](_0xae3b9b['previous']),_0xae3b9b['previous']['next']===_0xae3b9b&&(_0xae3b9b['previous']['next']=null),_0xae3b9b['previous']=null),!_0x208a41['has'](_0xae3b9b)&&_0xae3b9b['next']&&(_0x147740['add'](_0xae3b9b['next']),_0xae3b9b['next']['previous']===_0xae3b9b&&(_0xae3b9b['next']['previous']=null),_0xae3b9b['next']=null);}function _0x3e6f1c(_0x5b3da0,_0x18cc08,_0x365653){for(let _0x41e3ce=_0x365653;_0x41e3ce<_0x18cc08['length'];_0x41e3ce++){const _0x33c0c8=_0x7bde3e(_0x5b3da0,_0x18cc08[_0x41e3ce]);_0x33c0c8&&(_0x33c0c8[0x0]['next']=_0x33c0c8[0x1],_0x33c0c8[0x1]['previous']=_0x33c0c8[0x0],_0x208a41['add'](_0x33c0c8[0x0]),_0x5741e4['add'](_0x33c0c8[0x1]));}}function _0x7bde3e(_0xd43fd1,_0x31937a){if(_0xd43fd1['author']['id']!==_0x31937a['author']['id'])return null;const _0x4a71fc=_0x313a4a['get'](_0xd43fd1)(_0xd43fd1,_0x31937a,_0x3c9d0a['get'](_0xd43fd1),_0x3c9d0a['get'](_0x31937a));if(!_0x4a71fc)return null;return _0x313a4a['get'](_0x31937a)(_0xd43fd1,_0x31937a,_0x3c9d0a['get'](_0xd43fd1),_0x3c9d0a['get'](_0x31937a))?_0x4a71fc[0x1]['commentThread']&&_0x4a71fc[0x1]['commentThread']['length']?null:_0x4a71fc:null;}_0x147740['size']&&this['_refreshSuggestionsChain'](_0x147740);}['_refreshAttributeSuggestionsChain'](_0x145080){if(0x0==_0x145080['length'])return;const _0x20fa58=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b5adb=>'attribute'==_0x1b5adb['type']&&_0x1b5adb['_isDataLoaded']),_0x535c00=[],_0x505e3c=new Map();for(const _0x875101 of _0x20fa58){const _0x3f1d7e=_0x220468(_0x875101['attributes']);_0x505e3c['has'](_0x3f1d7e)||(_0x505e3c['set'](_0x3f1d7e,_0x535c00['length']),_0x535c00['push']([]));const _0x10fcd0=_0x505e3c['get'](_0x3f1d7e);_0x535c00[_0x10fcd0]['push'](_0x875101);}!(function(){_0x535c00['sort']((_0x1511b0,_0x3ca4e4)=>{const _0x2aba2b=_0x1511b0[0x0]['createdAt'],_0x36ed60=_0x3ca4e4[0x0]['createdAt'];return _0x2aba2b==_0x36ed60?_0x1511b0[0x0]['attributes']['groupId']<_0x3ca4e4[0x0]['attributes']['groupId']?-0x1:0x1:_0x2aba2b<_0x36ed60?-0x1:0x1;});for(const _0x288713 of _0x535c00)_0x288713['sort']((_0x533f1b,_0x458bdf)=>_0x533f1b['id']<_0x458bdf['id']?-0x1:0x1);}());for(let _0x3098e4=0x0;_0x3098e4<_0x535c00['length'];_0x3098e4++){if(0x0==_0x535c00[_0x3098e4]['length'])continue;const _0x2799cd=[];for(let _0x24b2a6=_0x3098e4+0x1;_0x24b2a6<_0x535c00['length'];_0x24b2a6++)0x0!=_0x535c00[_0x24b2a6]['length']&&_0x45fbd0(_0x535c00[_0x3098e4],_0x535c00[_0x24b2a6])&&_0x2799cd['push'](_0x24b2a6);for(const _0x3369f1 of _0x2799cd)_0x535c00[_0x3098e4]=_0x535c00[_0x3098e4]['concat'](_0x535c00[_0x3369f1]),_0x535c00[_0x3369f1]=[];}for(const _0x2114b7 of _0x535c00)for(let _0x2efdbe=0x0;_0x2efdbe<_0x2114b7['length'];_0x2efdbe++){const _0x5a4607=_0x2114b7[_0x2efdbe+0x1]||null;_0x2114b7[_0x2efdbe]['next']!==_0x5a4607&&(_0x2114b7[_0x2efdbe]['next']=_0x5a4607);}for(const _0x25c323 of _0x535c00)for(let _0x4ece2c=0x0;_0x4ece2c<_0x25c323['length'];_0x4ece2c++){const _0x1202ac=_0x25c323[_0x4ece2c-0x1]||null;_0x25c323[_0x4ece2c]['previous']!==_0x1202ac&&(_0x25c323[_0x4ece2c]['previous']=_0x1202ac);}function _0x45fbd0(_0x256d2a,_0x4dbd26){if(_0x256d2a[0x0]['attributes']['groupId']!==_0x4dbd26[0x0]['attributes']['groupId']&&_0x256d2a[0x0]['author']!==_0x4dbd26[0x0]['author'])return!0x1;if(!function(_0xf1c990,_0x4c1164){if(!_0xf1c990['hasComments']&&!_0x4c1164['hasComments'])return!0x0;if(_0xf1c990['hasComments']&&_0x4c1164['hasComments'])return!0x1;if(_0xf1c990['hasComments']&&_0x4c1164['createdAt']<_0xf1c990['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4c1164['hasComments']&&_0xf1c990['createdAt']<_0x4c1164['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x256d2a[0x0],_0x4dbd26[0x0]))return!0x1;const _0x41c565=Tt(_0x256d2a[0x0]['attributes'],'groupId'),_0x370778=Tt(_0x4dbd26[0x0]['attributes'],'groupId');if(!_0x1a8f0b(_0x41c565,_0x370778))return!0x1;return!!_0x256d2a['every'](_0x1fec1b=>_0x4dbd26['some'](_0x4b899e=>_0x1fec1b['getFirstRange']()['isEqual'](_0x4b899e['getFirstRange']())))&&_0x4dbd26['every'](_0x3458e1=>_0x256d2a['some'](_0x4299ca=>_0x3458e1['getFirstRange']()['isEqual'](_0x4299ca['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3ce709){const _0x4c029c=Array['from'](_0x3ce709),_0x12a090=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4e7da2=_0x12a090['filter'](_0x3934cf=>!_0x3ce709['has'](_0x3934cf)),_0x3f979d=new Map(_0x4c029c['map'](_0x30bdae=>[_0x30bdae,this['_suggestionFactory']['getSuggestionCallback'](_0x30bdae['type'],_0x30bdae['subType'],'join')])),_0x1f16b6=new Map(_0x12a090['map'](_0xdff858=>[_0xdff858,_0xdff858['getRanges']()]));for(let _0x14b4dd=0x0;_0x14b4dd<_0x4c029c['length'];_0x14b4dd++){if(_0x39bbbb(this,_0x4c029c[_0x14b4dd],_0x4c029c,_0x14b4dd+0x1))return!0x0;}for(let _0xbad598=0x0;_0xbad598<_0x4c029c['length'];_0xbad598++){if(_0x39bbbb(this,_0x4c029c[_0xbad598],_0x4e7da2,0x0))return!0x0;}return!0x1;function _0x39bbbb(_0x12785d,_0x507576,_0x5f1b76,_0x509c59){for(let _0xbeb1a5=_0x509c59;_0xbeb1a5<_0x5f1b76['length'];_0xbeb1a5++){const _0x16f249=_0x5f1b76[_0xbeb1a5];if(_0x16f249['type']!==_0x507576['type']||_0x16f249['author']['id']!==_0x507576['author']['id']||_0x16f249['subType']!==_0x507576['subType'])continue;if(!Jt(_0x507576,_0x16f249))continue;if('attribute'==_0x507576['type']&&_0x507576['data']['oldValue']!=_0x16f249['data']['oldValue'])continue;if('attribute'==_0x507576['type']&&_0x12785d['_isBlockAttribute'](_0x507576['data']['key']))continue;if('formatBlock'==_0x507576['type']){const _0x2da69f=_0x12785d['editor']['model'],_0x4ee8d2=_0x507576['getContainedElement']();if(_0x4ee8d2&&(_0x2da69f['schema']['isObject'](_0x4ee8d2)||_0x2da69f['schema']['isLimit'](_0x4ee8d2)))continue;}const _0x5bce66=_0x3f979d['get'](_0x507576),_0x3b988a=_0x1f16b6['get'](_0x507576),_0xd3fced=_0x1f16b6['get'](_0x16f249),_0x3bd56c=_0x507576['commentThread']&&_0x507576['commentThread']['length'],_0x5871eb=_0x16f249['commentThread']&&_0x16f249['commentThread']['length'];if(!_0x3bd56c&&_0x5bce66(_0xd3fced,_0x3b988a))return _0x12785d['_joinSuggestions'](_0x16f249,_0x507576),_0x1f16b6['delete'](_0x507576),!0x0;if(!_0x5871eb&&_0x5bce66(_0x3b988a,_0xd3fced))return _0x12785d['_joinSuggestions'](_0x507576,_0x16f249),_0x1f16b6['delete'](_0x16f249),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c9efa,_0x37d796){if(_0x5c9efa['isMultiRange']){for(const _0xf948a4 of _0x37d796['getRanges']())_0x5c9efa['addRange'](_0xf948a4);}else{const _0x15ab8b=_0x37d796['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c9efa,this['_model']['createRange'](_0x5c9efa['getFirstRange']()['start'],_0x15ab8b));}_0x37d796['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3611d8,_0x28d68a,_0x338c0c){const _0x238a00=_0x3611d8['startsWith']('format')||_0x3611d8['startsWith']('attribute')?'FORMATTING':_0x3611d8['toUpperCase']();return o(this['editor']['locale'],_0x28d68a+'_'+_0x238a00+'_SUGGESTION_ANNOUNCEMENT',_0x338c0c);}['_initAriaMarkerChangeAnnouncements'](){const _0x2261d7=this['editor'];if(!_0x2261d7['ui'])return;const {ariaLiveAnnouncer:_0x26d2a4}=_0x2261d7['ui'];_0x2879d7(this['_model'],({left:_0x35e84e,entered:_0x2da972})=>{for(const _0x52754e of _0x35e84e){const {group:_0x2e4bbc,type:_0x4708aa}=this['_splitMarkerName'](_0x52754e['name']);if('suggestion'===_0x2e4bbc){_0x26d2a4['announce'](this['_getMarkerAnnouncementText'](_0x4708aa,'LEAVE'));break;}}for(const _0xca669c of _0x2da972){const {group:_0x11c45e,type:_0x4a6111}=this['_splitMarkerName'](_0xca669c['name']);if('suggestion'===_0x11c45e){_0x26d2a4['announce'](this['_getMarkerAnnouncementText'](_0x4a6111,'ENTER',_0x52ac27(_0x99c520)));break;}}});}['_processAttributeChanges'](_0x1846bc){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2ff6df=this['editor'],_0x15a14c=_0x2ff6df['model']['document']['differ']['getChanges']();if(0x0==_0x15a14c['length'])return!0x1;const _0xbc10b4=[],_0x35dd0f=_0x15a14c['filter'](_0x5f5220=>'attribute'==_0x5f5220['type']),_0x40178b=_0x15a14c['filter'](_0x4d09e4=>'insert'==_0x4d09e4['type']&&'$text'!=_0x4d09e4['name']),_0x2ed7fe=_0x15a14c['filter'](_0x14a3f3=>'remove'==_0x14a3f3['type']&&'$text'!=_0x14a3f3['name']);for(const _0xe0fc76 of _0x35dd0f)_0xbc10b4['push']({'key':_0xe0fc76['attributeKey'],'newValue':_0xe0fc76['attributeNewValue'],'oldValue':_0xe0fc76['attributeOldValue'],'range':Pt(_0xe0fc76['range'],_0x2ff6df['model'])});for(const _0x488050 of _0x40178b){const _0x21df4c=_0x2ed7fe['find'](_0x53e3c0=>_0x53e3c0['position']['isEqual'](_0x488050['position']));_0x21df4c&&_0xbc10b4['push']({'key':m,'newValue':_0x488050['name'],'oldValue':_0x21df4c['name'],'range':_0x2ff6df['model']['createRangeOn'](_0x488050['position']['nodeAfter'])});}return 0x0!=_0xbc10b4['length']&&this['_reduceExistingSuggestions'](_0x1846bc,_0xbc10b4);}['_processAttributeSuggestions'](_0x7a21e4){let _0x457c3a=!0x1;const _0x4faaa3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x21c27d=>_0x21c27d['data']['newRange']&&_0x21c27d['name']['startsWith']('suggestion:attribute:'));for(const _0x363fea of _0x4faaa3){const {subType:_0x4f00f9,id:_0x59ff77}=this['_splitMarkerName'](_0x363fea['name']),_0x438fa9=_0x4f00f9['split']('|')[0x0];for(const _0x25f855 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x25f855['id']!=_0x59ff77&&'attribute'==_0x25f855['type']&&_0x25f855['data']&&_0x25f855['data']['key']==_0x438fa9&&_0x25f855['getFirstRange']()['isIntersecting'](_0x363fea['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x25f855,_0x363fea['data']['newRange'],_0x7a21e4),_0x457c3a=!0x0);}return _0x457c3a;}['_recordAttributeChanges'](_0x55cf40){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x55cf40();}['_isRegisteredAttribute'](_0x46d59b){const _0x4d9ca4=this['_isBlockAttribute'](_0x46d59b),_0x107b6d=this['_inlineAttributeKeys']['has'](_0x46d59b);return _0x4d9ca4||_0x107b6d;}['_reduceExistingSuggestions'](_0x5b5f04,_0x208667){if(0x0==_0x208667['length'])return!0x1;let _0x17584d=!0x1;for(const _0x32ba84 of _0x208667){const _0x7672e0=this['_findSuggestions'](_0x32ba84['range'],'attribute')['filter'](_0x477574=>!_0x477574['meta']['isNextTo'])['map'](_0x3ee677=>_0x3ee677['suggestion']),_0x313b54=_0x220468({'newValue':_0x32ba84['newValue']});_0x7672e0['filter'](_0x4a00e9=>{const [_0x46902c,_0x4213ab]=_0x4a00e9['subType']['split']('|');return _0x46902c==_0x32ba84['key']&&_0x4213ab!=_0x313b54;})['forEach'](_0x359fc0=>{this['_reduceSuggestionAttributeRange'](_0x359fc0,_0x32ba84['range'],_0x5b5f04),_0x17584d=!0x0;});}return _0x17584d;}['_reduceSuggestionAttributeRange'](_0x4ffa3e,_0x520444,_0x3bf4e0){const _0x191807=_0x4ffa3e['getFirstRange']()['getDifference'](_0x520444);0x0!==_0x191807['length']?0x1!==_0x191807['length']?this['_breakSuggestionMarker'](_0x4ffa3e,_0x520444['start'],_0x520444['end']):this['_setSuggestionRange'](_0x4ffa3e,_0x191807[0x0]):_0x3bf4e0['removeMarker'](_0x4ffa3e['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2c0855){this['_editor']=_0x2c0855,this['_model']=_0x2c0855['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3213bb,_0x41f3a1,_0x161b8f,_0x281bb3,_0xc76bc7,_0x58ccd0){return new u(this['_model'],{'type':_0x3213bb,'subType':_0x41f3a1,'id':_0x161b8f,'author':_0x281bb3,'creator':_0x281bb3,'attributes':_0xc76bc7,'onAttributesChange':_0x58ccd0,'onAccept':(..._0x4e9294)=>this['getSuggestionCallback'](_0x3213bb,_0x41f3a1,'accept')(..._0x4e9294),'onDiscard':(..._0x12a12f)=>this['getSuggestionCallback'](_0x3213bb,_0x41f3a1,'discard')(..._0x12a12f)});}['registerCustomCallback'](_0x2cc17f,_0x1d2117,_0x3bce3a,_0x52d0ae){const _0x3c223c=_0x2cc17f+':'+_0x1d2117+':'+_0x3bce3a;this['_customCallbacks']['set'](_0x3c223c,_0x52d0ae);}['getSuggestionCallback'](_0x31c907,_0x162693,_0x32d98a){const _0x4197fc=_0x31c907+':'+_0x162693+':'+_0x32d98a;return this['_customCallbacks']['get'](_0x4197fc)||this['_defaultCallbacks']['get'](_0x31c907+':'+_0x32d98a);}['_registerDefaultCallbacks'](){const _0xc7ecac=()=>!0x1,_0x369d56=_0x3a6430=>{_0x3a6430['sort']((_0x63e0c8,_0x55ac8c)=>_0x63e0c8['start']['isBefore'](_0x55ac8c['start'])?0x1:-0x1),this['_model']['change'](_0x5c1ae0=>{for(const _0x30613a of _0x3a6430){let _0x469d1f;_0x469d1f=_0x30613a['end']['isAtEnd']&&_0x30613a['end']['parent']==_0x30613a['start']['nodeAfter']?_0x5c1ae0['createSelection'](_0x30613a['start']['nodeAfter'],'on'):_0x5c1ae0['createSelection'](_0x30613a),this['_model']['deleteContent'](_0x469d1f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1c0e53=(_0x260b6d,_0x453273)=>{_0x453273&&this['_model']['change'](_0x477da5=>{const {commandName:_0x468832,commandParams:_0x3f5097=[]}=_0x453273,_0x4d7ce0=_0x260b6d['map'](_0x558a41=>(Vt(_0x558a41)&&(_0x558a41=this['_model']['createRange'](_0x558a41['end'])),_0x558a41))['filter'](_0x23fb05=>'$graveyard'!==_0x23fb05['root']['rootName']);if(_0x4d7ce0['length']<0x1)return;const _0x1e7cfd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x19a708=>_0x22bfde['fromRange'](_0x19a708));_0x477da5['setSelection'](_0x4d7ce0);for(const _0x4a96ac of this['_editor']['commands']['commands']())_0x4a96ac['refresh']();_0x3f5097['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x468832,..._0x3f5097);const _0x51bb63=_0x1e7cfd['filter'](_0x393317=>'$graveyard'!=_0x393317['root']['rootName']);_0x51bb63['length']>0x0&&_0x477da5['setSelection'](_0x51bb63);for(const _0x45e33c of _0x1e7cfd)_0x45e33c['detach']();});},_0x259991=(_0x53e2a7,_0x274067)=>0x1==_0x53e2a7['length']&&0x1==_0x274067['length']&&_0x53e2a7[0x0]['end']['isEqual'](_0x274067[0x0]['start']),_0x5122e2=(_0x4f2e37,_0x31c286,_0x642212,_0x2da3cb)=>Ht(_0x4f2e37,_0x31c286,_0x642212,_0x2da3cb,this['_model'])?[_0x4f2e37,_0x31c286]:Ht(_0x31c286,_0x4f2e37,_0x2da3cb,_0x642212,this['_model'])?[_0x31c286,_0x4f2e37]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xc7ecac),this['_defaultCallbacks']['set']('insertion:discard',_0x369d56),this['_defaultCallbacks']['set']('insertion:join',_0x259991),this['_defaultCallbacks']['set']('insertion:chain',_0x5122e2),this['_defaultCallbacks']['set']('deletion:accept',_0x369d56),this['_defaultCallbacks']['set']('deletion:discard',_0xc7ecac),this['_defaultCallbacks']['set']('deletion:join',_0x259991),this['_defaultCallbacks']['set']('deletion:chain',_0x5122e2),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c0e53),this['_defaultCallbacks']['set']('formatInline:discard',_0xc7ecac),this['_defaultCallbacks']['set']('formatInline:join',_0x259991),this['_defaultCallbacks']['set']('formatInline:chain',_0xc7ecac),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c0e53),this['_defaultCallbacks']['set']('formatBlock:discard',_0xc7ecac),this['_defaultCallbacks']['set']('formatBlock:join',_0x259991),this['_defaultCallbacks']['set']('formatBlock:chain',_0xc7ecac),this['_defaultCallbacks']['set']('attribute:accept',_0xc7ecac),this['_defaultCallbacks']['set']('attribute:discard',(_0x3b43bc,_0x514233)=>{if(!_0x514233)return;const _0x368a77=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xb7ab1d=>{if(_0x514233['key']==m)for(const _0x3d8ffd of _0x3b43bc){const _0x58aa7f=_0x3d8ffd['start']['nodeAfter'],_0x35a965=_0x514233['oldValue'];_0xb7ab1d['rename'](_0x58aa7f,_0x35a965);}else{if(_0x368a77['_isBlockAttribute'](_0x514233['key'])){for(const _0x46c36 of _0x3b43bc)void 0x0!==_0x514233['oldValue']?_0xb7ab1d['setAttribute'](_0x514233['key'],_0x514233['oldValue'],_0x46c36['start']['nodeAfter']):_0xb7ab1d['removeAttribute'](_0x514233['key'],_0x46c36['start']['nodeAfter']);}else{for(const _0x167c31 of _0x3b43bc)_0x514233['oldValue']?_0xb7ab1d['setAttribute'](_0x514233['key'],_0x514233['oldValue'],_0x167c31):_0xb7ab1d['removeAttribute'](_0x514233['key'],_0x167c31);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x259991);}}function Ot(_0x265a94,_0x36ec66,_0x18d908){for(const _0x151c96 of _0x36ec66['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x151c96['root']==_0x151c96)return!0x1;if(!_0x18d908['containsItem'](_0x151c96))return!0x1;if(_0x265a94['isObject'](_0x151c96)||_0x265a94['isLimit'](_0x151c96))return!0x0;}return!0x1;}function Vt(_0xba0141){return _0xba0141['end']['parent']==_0xba0141['start']['nodeAfter']&&_0xba0141['end']['isAtStart'];}function Ut(_0x1a424a,_0x4bc3fb,_0x2fd56e,_0x142aa2){const _0x3057e7=_0x331d2b=>!_0x331d2b['item']['is']('$textProxy')&&!_0x142aa2['isObject'](_0x331d2b['item']),_0x6d7486=_0x1a424a['start']['getLastMatchingPosition'](_0x3057e7),_0xf0c1bc=_0x1a424a['end']['getLastMatchingPosition'](_0x3057e7,{'direction':'backward'});return(!_0x1a424a['start']['isEqual'](_0x6d7486)||!_0x1a424a['end']['isEqual'](_0xf0c1bc))&&(_0x6d7486['isBefore'](_0xf0c1bc)?_0x2fd56e['updateMarker'](_0x4bc3fb,{'range':_0x2fd56e['createRange'](_0x6d7486,_0xf0c1bc)}):_0x2fd56e['removeMarker'](_0x4bc3fb),!0x0);}function Gt(_0x2f7ec7){return _0x220468(_0x2f7ec7);}function Ft(_0x11face){const _0x5319ac=_0x11face['start']['nodeAfter'];return _0x5319ac&&_0x5319ac['is']('element');}function Pt(_0x341725,_0x2fb2da){return null==_0x341725['end']['nodeBefore']&&_0x341725['end']['parent']==_0x341725['start']['nodeAfter']?Lt(_0x341725['start']['nodeAfter'],_0x2fb2da):_0x341725;}function Lt(_0x483395,_0x4fc0c6){const _0x4b5c03=_0x4fc0c6['schema']['isObject'](_0x483395)||_0x4fc0c6['schema']['isSelectable'](_0x483395);return _0x4fc0c6['createRange'](_0x4fc0c6['createPositionAt'](_0x483395,'before'),_0x4b5c03?_0x4fc0c6['createPositionAfter'](_0x483395):_0x4fc0c6['createPositionAt'](_0x483395,'end'));}function Ht(_0x1d676d,_0x36ad8b,_0x111acf,_0x1bed9a,_0xab5d52){if(_0x1d676d['next'])return!0x1;if(!Jt(_0x1d676d,_0x36ad8b))return!0x1;if(_0x111acf['end']['isEqual'](_0x1bed9a['start']))return!0x0;if(_0x1d676d['type']!=_0x36ad8b['type'])return!0x1;if(!_0x111acf['end']['isTouching'](_0x1bed9a['start']))return!0x1;const _0x7954b1=_0xab5d52['createRange'](_0x111acf['end'],_0x1bed9a['start'])['getWalker']();for(const _0x2979c4 of _0x7954b1)if(['elementStart','elementEnd']['includes'](_0x2979c4['type'])&&_0xab5d52['schema']['isLimit'](_0x2979c4['item']))return!0x1;return!0x0;}function Jt(_0x56a534,_0x175daf){if(!_0x56a534['_isDataLoaded']||!_0x175daf['_isDataLoaded'])return!0x1;const _0x4c5b4c=new Set(Object['keys'](_0x56a534['attributes'])),_0x236487=new Set(Object['keys'](_0x175daf['attributes']));if(_0x4c5b4c['delete']('groupId'),_0x236487['delete']('groupId'),0x0==_0x4c5b4c['size']&&0x0==_0x236487['size'])return!0x0;if(_0x4c5b4c['size']!=_0x236487['size'])return!0x1;const _0x248d55={..._0x56a534['attributes']},_0x5d8aea={..._0x175daf['attributes']};return delete _0x248d55['groupId'],delete _0x5d8aea['groupId'],JSON['stringify'](_0x248d55)==JSON['stringify'](_0x5d8aea);}function qt(_0x3d94ad,_0x371689){const _0x15534c=zt(_0x3d94ad['attributes']),_0x572aa5=zt(_0x371689);if(!_0x3d94ad['_isDataLoaded'])return!0x1;for(const _0x1cc36b of Object['keys'](_0x572aa5))if(!_0x1a8f0b(_0x15534c[_0x1cc36b],_0x572aa5[_0x1cc36b]))return!0x1;return!0x0;}function zt(_0x4c163c){const _0x57e89b=Object['assign']({},_0x4c163c);return delete _0x57e89b['skipNestingCheck'],delete _0x57e89b['tablePasteChainId'],_0x57e89b;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x45e3bc(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x19fd14,_0x4a8671,_0x3a98ef,_0x3a42da){super(),this['model']=_0x4a8671,this['view']=_0x3a98ef,this['commentThreadController']=_0x3a42da,this['_editor']=_0x19fd14,this['_acceptCommand']=_0x19fd14['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x19fd14['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2f5584,_0x13a077)=>_0x2f5584||_0x13a077),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5a263c=>_0x5a263c&&this['_editor']['model']['canEditAt'](_0x4a8671['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3e1079=>_0x3e1079&&this['_editor']['model']['canEditAt'](_0x4a8671['getRanges']())),this['_pendingAction']=null,_0x3a98ef['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3a98ef,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3a98ef,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3a98ef,'change:isDirty',()=>{_0x3a98ef['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 _0x287a54=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x287a54);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x91bd07{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x51352c,_0x5ecf80,_0x45a02e,_0x3fee19){super(_0x51352c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x469e57(_0x51352c,o(_0x51352c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5ecf80['authoredAt']),this['bind']('authoredAt')['to'](_0x5ecf80),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',_0x5ecf80,'authoredAt',this,'descriptionParts',(_0x404caf,_0x2e01b7,_0x2a879b)=>{const _0x3e95ae=_0x2a879b['map'](_0xaa89b5=>ls(_0xaa89b5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x404caf-0x1,_0x5ecf80['author']['name'],_0x2e01b7?_0x3fee19['formatDateTime'](_0x2e01b7):'',new DOMParser()['parseFromString'](_0x3e95ae,'text/html')['body']['textContent']]);}),this['focusables']=new _0x462b73(),this['focusTracker']=new _0x262146(),this['keystrokes']=new _0x979ae6(),this['focusCycler']=new _0x218192({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x48ad96=>_0x48ad96['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5ecf80,this['_localUser']=_0x45a02e,this['_config']=_0x3fee19,_0x3fee19['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x42b716(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2bcbf4}=this['_config'];this['commentsListView']=new _0x2bcbf4(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',_0x8f269=>_0x8f269+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2c76bb,_0x26bde4)=>_0x2c76bb||!!_0x26bde4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x19c88d}=this['_config'],_0x4ddd81=new _0x19c88d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x45d6f4=_0x4ddd81['commentInputView'];return _0x4ddd81['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x45d6f4,'value',(_0x5a5dab,_0x4835bf,_0x46392e)=>!!_0x46392e||_0x5a5dab&&!_0x4835bf),_0x45d6f4['on']('submit',(_0x2ceade,_0x50b108)=>{this['fire']('addComment',_0x50b108),_0x45d6f4['editor']['setData']('');}),_0x45d6f4['on']('cancel',()=>this['focus']()),_0x45d6f4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4ddd81;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x361fd7,_0x5e067e,_0x502bc,_0x31861f){super(_0x361fd7,_0x5e067e,_0x502bc,_0x31861f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x92959a=>_0x92959a&&_0x92959a[0x0]?_0x92959a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3614ab,_0x6541fa)=>{let _0x32940f='';for(const _0xba03ea of _0x3614ab)_0x32940f+='<p>'+ls(_0xba03ea['content'],_0xba03ea['color'])+'</p>';return _0x6541fa?_0x32940f:_0xcbd8e5(_0x32940f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x31861f['SuggestionView'](_0x361fd7,_0x5e067e,{'formatDateTime':_0x31861f['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 _0x346322=this['bindTemplate'],_0x39430a=[this['suggestionView']];return this['commentsListView']&&_0x39430a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x39430a['push'](this['commentThreadInputView']),_0x39430a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x346322['if']('isActive','ck-suggestion-wrapper--active'),_0x346322['to']('type',_0x592467=>'ck-suggestion-'+_0x592467),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':_0x346322['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x39430a};}['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 _0x91bd07{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1abe47,_0x794e63,_0x45f945){super(_0x1abe47),this['_model']=_0x794e63,this['_config']=_0x45f945,this['set']('description',''),this['bind']('authoredAt')['to'](_0x794e63),this['acceptButton']=this['_createButton'](o(_0x1abe47,'Accept\x20suggestion'),_0x35d0f5['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1abe47,'Discard\x20suggestion'),_0x35d0f5['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4936c1(_0x1abe47,_0x794e63['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x462b73([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x262146(),this['keystrokes']=new _0x979ae6(),this['focusCycler']=new _0x218192({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4bf614=>_0x4bf614['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x47094d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x47094d['innerHTML']=this['description'],this['on']('change:description',(_0x49b2dd,_0x5e5168,_0x1410e9)=>{_0x47094d['innerHTML']=_0x1410e9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x587ad6=this['bindTemplate'],_0x42f37e=[{'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':_0x587ad6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x587ad6['to']('authoredAt',_0x183249=>this['_config']['formatDateTime'](_0x183249))}]}]},{'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']&&_0x42f37e['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':_0x42f37e}]};}['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'](_0x123a85,_0x528e26,_0x8605f1,_0x1eb7ac,_0x31de41){const _0x53072a=new _0x58742f(this['locale']);return _0x53072a['set']({'label':_0x123a85,'icon':_0x528e26,'tooltip':!0x0,'tooltipPosition':_0x31de41}),_0x53072a['extendTemplate']({'attributes':{'class':_0x8605f1}}),_0x53072a['on']('execute',()=>{this['fire'](_0x1eb7ac,this['_model']['id']);}),_0x53072a;}['_setupKeyboardNavigation'](){const _0x3913f9=this['element'];this['keystrokes']['listenTo'](_0x3913f9);for(const _0x3cc300 of this['focusables'])this['focusTracker']['add'](_0x3cc300['element']),this['keystrokes']['listenTo'](_0x3cc300['element']);this['keystrokes']['set']('enter',(_0x327311,_0x3aaf74)=>{_0x3913f9===_0x327311['target']&&(this['focusCycler']['focusFirst'](),_0x3aaf74());}),this['keystrokes']['set']('esc',(_0x2eebf9,_0x3fd1a2)=>{_0x3913f9!==_0x2eebf9['target']&&(this['focus'](),_0x3fd1a2());});}}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 _0x152a51{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x450956,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5c1973){super(_0x5c1973),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x53ed2a=this['editor']['config'];_0x53ed2a['define']('trackChanges.SuggestionThreadView',re),_0x53ed2a['define']('trackChanges.SuggestionView',ce),_0x53ed2a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x53ed2a['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x1ee111,_0x5a7ab0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2d72f2,_0x4a6e53]of this['_handleControllerBuffer']){const _0x492744=this['_suggestionToController']['has'](_0x2d72f2);_0x492744||_0x4a6e53?_0x492744&&_0x4a6e53&&this['_destroyController'](_0x2d72f2):this['_initializeController'](_0x2d72f2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1ee111,_0x5a7ab0);}['init'](){const _0x5737c7=this['editor'],_0x5bd4cb=_0x5737c7['plugins']['get']('TrackChangesEditing'),_0x5663bb=_0x5737c7['plugins']['get']('Annotations'),_0x5f32b6=_0x5737c7['plugins']['get']('EditorAnnotations'),_0x87954e=_0x5737c7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5f32b6['addSourceCollector'](()=>{const _0xbd4306=[];for(const [_0x407ca4,_0x2cb713]of Array['from'](this['_suggestionToController'])){const _0x978fa8=_0x407ca4['getAllAdjacentSuggestions'](),_0x48e181=[];for(const _0xdf38a8 of _0x978fa8){if(!_0xdf38a8['isInContent'])continue;if(_0xdf38a8['isMultiRange']){_0x48e181['push'](..._0xdf38a8['getRanges']());continue;}const _0x20b6c7=_0xdf38a8['getFirstRange']();if(_0x48e181['length']>0x0){const _0x10029a=_0x48e181[0x0]['getJoined'](_0x20b6c7);if(_0x10029a){_0x48e181[0x0]=_0x10029a;continue;}}_0x48e181['push'](_0x20b6c7);}_0xbd4306['push']([_0x2cb713['view'],_0x48e181]);}return _0xbd4306;}),this['listenTo'](_0x5bd4cb,'suggestionLoaded',(_0x15f0ea,_0x5a85e5)=>{this['listenTo'](_0x5a85e5,'change:previous',(_0x43400c,_0x218632,_0x5dcb9d,_0x5eafc7)=>{_0x5a85e5['isInContent']&&(null==_0x5dcb9d?(this['_updateController'](_0x5eafc7['head']),this['_handleSuggestionControllerDelayed'](_0x5a85e5,!0x1)):(this['_updateController'](_0x5dcb9d['head']),null==_0x5eafc7&&this['_handleSuggestionControllerDelayed'](_0x5a85e5,!0x0)));}),null!==_0x5a85e5['previous']?this['_updateController'](_0x5a85e5['head']):this['_handleSuggestionControllerDelayed'](_0x5a85e5,!0x1);}),this['listenTo'](_0x5bd4cb,'suggestionUnloaded',(_0x244d7d,_0x11ec99,_0x41b820)=>{this['stopListening'](_0x11ec99,'change:previous'),this['_handleControllerBuffer']['delete'](_0x11ec99),this['_suggestionToController']['has'](_0x11ec99)&&this['_destroyController'](_0x11ec99),_0x41b820&&this['_updateController'](_0x41b820['head']);}),this['listenTo'](_0x5bd4cb,'suggestionChanged',(_0x2aadf1,_0x2d15f3)=>{this['_updateController'](_0x2d15f3);}),this['listenTo'](_0x5663bb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x87954e,'addComment',(_0x5f226c,{threadId:_0x4e920b,isFromAdapter:_0x8e250c})=>{if(_0x8e250c||!_0x5bd4cb['hasSuggestion'](_0x4e920b))return;const _0x3ab3a0=_0x5bd4cb['getSuggestion'](_0x4e920b);this['_suggestionToController']['get'](_0x3ab3a0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x13fd9b=this['editor']['plugins']['get']('Annotations'),_0x52dc5e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x172cad=Array['from'](_0x13fd9b['activeAnnotations'],_0x187417=>_0x187417['innerView'])['filter'](_0x237771=>this['_viewToController']['has'](_0x237771)),_0x592905=[];for(const _0x2bfd83 of _0x172cad){const _0x246be9=this['_viewToController']['get'](_0x2bfd83)['model']['getAllAdjacentSuggestions']();_0x592905['push'](..._0x246be9['reduce']((_0x2ee71d,_0x2eeba9)=>[..._0x2ee71d,..._0x2eeba9['getMarkerNames']()],[]));}_0x52dc5e['activeMarkers']=_0x592905;}['_addUIComponentsToFactory'](){const _0x10d77b=this['editor'],_0xb310f7=_0x10d77b['locale'],_0x366667=o(_0xb310f7,'Track\x20changes'),_0x40438e=new Wt([{'type':'switchbutton','model':new _0x387bfc({'withText':!0x0,'isToggleable':!0x0,'label':_0x366667,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x387bfc({'withText':!0x0,'label':o(_0xb310f7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x387bfc({'withText':!0x0,'label':o(_0xb310f7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x387bfc({'withText':!0x0,'label':o(_0xb310f7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x387bfc({'withText':!0x0,'label':o(_0xb310f7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x47d2cf of _0x40438e)if(me(_0x47d2cf)){const _0x90320c=_0x10d77b['commands']['get'](_0x47d2cf['model']['commandName']);_0x47d2cf['model']['bind']('isOn','isEnabled')['to'](_0x90320c,'value','isEnabled');}_0x10d77b['ui']['componentFactory']['add']('trackChanges',_0x2cfa5b=>this['_createToolbarButton'](_0x2cfa5b,_0x40438e,_0x366667)),_0x10d77b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x497380=>this['_createMenuBarMenu'](_0x497380,_0x40438e,_0x366667));}['_createToolbarButton'](_0x83ded5,_0x54daeb,_0x23e28b){const _0x159838=Qt(_0x83ded5,_0x31f8ff),_0x20a44a=this['editor']['commands']['get']('trackChanges');_0x159838['buttonView']['set']({'tooltip':_0x23e28b,'label':_0x23e28b,'icon':he}),_0x159838['buttonView']['bind']('isOn')['to'](_0x20a44a,'value'),_0x159838['buttonView']['on']('execute',()=>{_0x20a44a['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x159838,_0x54daeb,{'role':'menu'});const _0x241ca2=[];for(const _0x2abfe9 of _0x54daeb)me(_0x2abfe9)&&_0x241ca2['push'](this['editor']['commands']['get'](_0x2abfe9['model']['commandName']));const _0x2e6cd0=_0x159838['buttonView'];return _0x2e6cd0['actionView']['unbind']('isEnabled'),_0x2e6cd0['arrowView']['unbind']('isEnabled'),_0x2e6cd0['actionView']['bind']('isEnabled')['to'](_0x20a44a,'isEnabled'),_0x2e6cd0['arrowView']['bind']('isEnabled')['toMany'](_0x241ca2,'isEnabled',(..._0x1fc916)=>_0x1fc916['some'](_0x140018=>_0x140018)),_0x159838['on']('execute',_0x2ea0c8=>{this['editor']['execute'](_0x2ea0c8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x159838;}['_createMenuBarMenu'](_0x26ca23,_0x1e8e1d,_0x1fcfa0){const _0x18bd5d=new Yt(_0x26ca23),_0x41033e=this['editor']['commands']['get']('trackChanges');_0x18bd5d['buttonView']['set']({'label':_0x1fcfa0,'icon':he});const _0x4f3b90=new Zt(_0x26ca23);for(const _0x57b688 of _0x1e8e1d){if('separator'==_0x57b688['type']){_0x4f3b90['items']['add'](new Xt(_0x26ca23));continue;}const _0x397679=new te(_0x26ca23,_0x18bd5d),_0x1fa999=new _0x41af5b(_0x26ca23),_0x2a459b=_0x57b688['model'];_0x1fa999['bind'](...Object['keys'](_0x2a459b))['to'](_0x2a459b),_0x1fa999['delegate']('execute')['to'](_0x18bd5d),_0x1fa999['on']('execute',()=>{this['editor']['execute'](_0x2a459b['commandName']),this['editor']['editing']['view']['focus']();}),_0x397679['children']['add'](_0x1fa999),_0x4f3b90['items']['add'](_0x397679);}return _0x18bd5d['bind']('isEnabled')['to'](_0x41033e,'isEnabled'),_0x18bd5d['panelView']['children']['add'](_0x4f3b90),_0x18bd5d;}['_initializeController'](_0x310b24){const _0x5ba403=this['editor'],_0x12cb29=_0x5ba403['config'],_0x9b3bd7=_0x5ba403['plugins']['get']('Annotations'),_0x1ca994=_0x5ba403['plugins']['get']('CommentsRepository'),_0xf0b464=_0x5ba403['plugins']['get']('EditorAnnotations'),_0x5952ed=_0x5ba403['plugins']['get'](_0x450956)['me'],_0x2902bc=_0x12cb29['get']('trackChanges')['SuggestionThreadView'],_0xe1bd86=_0x12cb29['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3736d0,CommentThreadInputView:_0xd71a5b}=_0x5ba403['plugins']['get']('CommentsUI');let _0x25a5fb,_0x37ef9f;this['_annotationViews']['has'](_0x310b24['id'])?(_0x37ef9f=this['_annotationViews']['get'](_0x310b24['id']),_0x25a5fb=_0x37ef9f['mainView']):(_0x25a5fb=new _0x2902bc(_0x5ba403['locale'],_0x310b24,_0x5952ed,{'disableComments':this['_disableComments'],'editorConfig':_0x12cb29['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x12cb29['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12cb29['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12cb29['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x17fe7d(_0x12cb29['get']('locale')),'CommentView':_0x12cb29['get']('comments')['CommentView'],'CommentsListView':_0x3736d0,'CommentThreadInputView':_0xd71a5b,'SuggestionView':_0xe1bd86}),_0x25a5fb['suggestionView']['acceptButton']['on']('execute',()=>{_0x5ba403['editing']['view']['focus']();}),_0x25a5fb['suggestionView']['discardButton']['on']('execute',()=>{_0x5ba403['editing']['view']['focus']();}),_0x37ef9f=_0x9b3bd7['createAnnotationView'](this['editor']['locale'],_0x25a5fb),_0x37ef9f['bind']('isDirty')['to'](_0x25a5fb,'isDirty'),_0x37ef9f['bind']('length')['to'](_0x25a5fb),_0x37ef9f['bind']('type')['to'](_0x25a5fb,'type',_0x31821b=>'suggestion-'+_0x31821b),this['listenTo'](_0x25a5fb,'escape',()=>{_0x5ba403['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x310b24['id'],_0x37ef9f));const _0x3ddbd3=_0x1ca994['createCommentThreadController'](_0x310b24['commentThread'],_0x25a5fb),_0x100c86=new ae(_0x5ba403,_0x310b24,_0x25a5fb,_0x3ddbd3),_0xe60abe=_0x310b24['getAllAdjacentSuggestions']()['filter'](_0x51e80c=>_0x51e80c['isInContent']);_0x25a5fb['descriptionParts']=_0x5ba403['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xe60abe),this['_suggestionToController']['set'](_0x310b24,_0x100c86),this['_viewToController']['set'](_0x25a5fb,_0x100c86);const _0x39c549=_0x9b3bd7['createAnnotation']({'view':_0x37ef9f,'target':()=>{const _0x159698=[],_0x288041=_0x310b24['getAllAdjacentSuggestions']()['filter'](_0x1c16d5=>_0x1c16d5['isInContent']);for(const _0x22d6a6 of _0x288041)_0x159698['push'](..._0x22d6a6['getMarkers']());return _0x370cab(_0x5ba403['editing'],_0x159698);},'type':()=>'suggestion-'+_0x100c86['view']['type']});_0x1ca994['_bindAnnotationToEditors'](_0x25a5fb,_0x39c549),_0x9b3bd7['add'](_0x39c549),_0xf0b464['registerAnnotation'](_0x39c549);}['_destroyController'](_0x1a381d){const _0x558740=this['editor']['plugins']['get']('CommentsRepository'),_0x4555fe=this['editor']['plugins']['get']('Annotations'),_0x553aec=this['_suggestionToController']['get'](_0x1a381d),_0x35a38e=_0x553aec['view'],_0x1a1757=_0x4555fe['getByInnerView'](_0x35a38e);_0x558740['_unbindEditors'](_0x35a38e),_0x1a1757&&_0x4555fe['remove'](_0x1a1757),this['_suggestionToController']['delete'](_0x1a381d),this['_viewToController']['delete'](_0x35a38e),_0x553aec['destroy']();}['_updateController'](_0x2285f4){if(!_0x2285f4['isInContent']||!this['_suggestionToController']['has'](_0x2285f4))return;const _0x8ccd0c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x488662=this['_suggestionToController']['get'](_0x2285f4),_0x3106f9=_0x2285f4['getAllAdjacentSuggestions']();_0x488662['view']['descriptionParts']=_0x8ccd0c['descriptionFactory']['getDescriptions'](_0x3106f9);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x99c520,(_0x1ca8e7,_0x56f2c9)=>{const _0x3acb3c=this['editor']['plugins']['get'](k),_0x5ace01=this['editor']['plugins']['get'](p);if(!_0x5ace01['activeMarkers']['length'])return;const {id:_0x41d518}=_0x5ace01['_splitMarkerName'](_0x5ace01['activeMarkers'][0x0]),_0x127fe2=_0x3acb3c['getSuggestion'](_0x41d518);_0x127fe2&&(this['_suggestionToController']['get'](_0x127fe2)['view']['focus'](),_0x56f2c9());});}['destroy'](){for(const _0x159864 of this['_suggestionToController']['keys']())this['_destroyController'](_0x159864);for(const _0x107c10 of this['_annotationViews']['values']())_0x107c10['mainView']['destroy']();super['destroy']();}}function me(_0x2b0a4c){return'model'in _0x2b0a4c;}class k extends _0x152a51{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x17df39){this['editor']['plugins']['get'](p)['adapter']=_0x17df39;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x34fe46){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x34fe46);}['getSuggestions']({skipNotAttached:_0x1ae31a=!0x1,toJSON:_0x12478f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1ae31a,'toJSON':_0x12478f});}['getSuggestion'](_0x9d5f30){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x9d5f30);}}const T=['Pagination'];class P extends _0x152a51{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x558ade=this['editor'];if(_0x558ade['config']['define']('trackChangesData.editorCreator',_0x317d4f=>{const _0x3ef0b8=_0x558ade['model']['document']['getRootNames']()['reduce']((_0x392973,_0x1eabee)=>(_0x392973[_0x1eabee]='',_0x392973),{});return _0x558ade['constructor']['create'](_0x3ef0b8,_0x317d4f);}),'function'!=typeof _0x558ade['config']['get']('trackChangesData')['editorCreator'])throw new _0x5e7528('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xcf7a34){return N(this['editor'],!0x0,_0xcf7a34);}['getDataWithDiscardedSuggestions'](_0x2ea975){return N(this['editor'],!0x1,_0x2ea975);}}class D extends _0x152a51{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4df1a7){super(_0x4df1a7),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(_0x5ab854){return void 0x0!==_0x5ab854['getRootsAttributes'];}async function N(_0x369c78,_0xbd3b45,_0x47b143){const _0x45c270=_0x109332(_0x369c78,T);_0x45c270['plugins']['push'](p,D),_0x45c270['rootsAttributes']=v(_0x369c78)?_0x369c78['getRootsAttributes']():void 0x0;const _0xb5e223=document['createDocumentFragment'](),_0x5cee05=_0x369c78['config']['get']('trackChangesData')['editorCreator'],_0x47934f=await _0x5cee05(_0x45c270,()=>function(_0x14e1d1){const _0x283196=document['createElement']('div');return _0x14e1d1['appendChild'](_0x283196),_0x283196;}(_0xb5e223));!function(_0x869619,_0x491364){const _0x8d7601=_0x869619['model']['document']['getRootNames']()['reduce']((_0x4c2ac4,_0x4e5bb1)=>(_0x4c2ac4[_0x4e5bb1]=_0x869619['data']['get']({'rootName':_0x4e5bb1}),_0x4c2ac4),{}),_0x596a0e=_0x869619['plugins']['get']('Users')['users']['map'](_0x13b3ba=>({'id':_0x13b3ba['id'],'name':_0x13b3ba['name']})),_0x2e07a5=_0x869619['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1e85d1=_0x869619['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5493d6=_0x491364['plugins']['get']('Users'),_0xf328c0=_0x491364['plugins']['get']('TrackChangesEditing'),_0x2120a4=_0x491364['plugins']['get']('CommentsRepository');for(const _0x5acad0 of _0x2120a4['getCommentThreads']())_0x5acad0['remove']();for(const _0x17b9dd of _0x596a0e)_0x5493d6['getUser'](_0x17b9dd['id'])||_0x5493d6['addUser'](_0x17b9dd);_0x5493d6['me']||_0x5493d6['useAnonymousUser']();for(const _0x373e05 of _0x1e85d1)_0x2120a4['addCommentThread'](_0x373e05);for(const _0x11c81b of _0x2e07a5)_0xf328c0['addSuggestionData'](_0x11c81b);_0x491364['data']['set'](_0x8d7601);}(_0x369c78,_0x47934f),_0x47934f['execute'](_0xbd3b45?'acceptAllSuggestions':'discardAllSuggestions');const _0x1d3bc5=v(_0x47934f)?_0x47934f['getFullData'](_0x47b143):_0x47934f['data']['get'](_0x47b143);return await _0x47934f['destroy'](),_0x1d3bc5;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x48688f,PendingActions as _0x44b4d1,icons as _0x15441c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x592c71,ObservableMixin as _0x152174,uid as _0x2120b6,insertToPriorityArray as _0x21d775,priorities as _0xbff88b,logWarning as _0x250a6e,getEnvKeystrokeText as _0xbe6bf3,FocusTracker as _0x13657f,KeystrokeHandler as _0x4d474a,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x387c59,View as _0x34f964,ViewCollection as _0x2be8b6,FocusCycler as _0x360f96,ViewModel as _0xe8bb13,createDropdown as Qt,SplitButtonView as _0x11d1d7,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x4ddbbe}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x171a4a,hashObject as _0x39b023,surroundingMarkersDetector as _0x87cbf2,ENTER_THREAD_KEYSTROKE as _0x4b35c3,AriaDescriptionView as _0x230434,setupThreadKeyboardNavigation as _0x58c512,trimHtml as _0x806266,UserView as _0x5e692a,LateFocusButtonView as _0x464813,getDateTimeFormatter as _0x2caec9,getAllMarkersDomElementsSorted as _0x179daa,sanitizeEditorConfig as _0x4f8fe7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5738b4,LiveRange as _0x411321,LivePosition as _0x1473f7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x19f4da,toWidget as _0x3d3930}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x50f003,set as _0x201370,isEqual as _0x41747e,unset as _0x5b2e9b,omit as Tt}from'lodash-es';import{Delete as _0x4d1662,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x161099,ShiftEnter as _0x4b33e1}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x48edb1,_0x1c752f){super(_0x48edb1),this['_enabledCommands']=_0x1c752f,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 _0x346b6e of this['editor']['commands']['commands']())_0x346b6e['affectsData']&&!this['_enabledCommands']['has'](_0x346b6e)&&_0x346b6e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x219ad2 of this['editor']['commands']['commands']())_0x219ad2['affectsData']&&!this['_enabledCommands']['has'](_0x219ad2)&&_0x219ad2['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x8fefc5,_0x4947c3){super(_0x8fefc5),this['_suggestions']=_0x4947c3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5616e0){const _0xb28f21=this['_suggestions']['get'](_0x5616e0);if(!_0xb28f21)throw new _0x592c71('track-changes-accept-suggestion-not-found',this);const _0xe40458=_0xb28f21['getRanges']();this['editor']['model']['canEditAt'](_0xe40458)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xb28f21);}}class R extends ts{['_suggestions'];constructor(_0x4d8211,_0x28a00a){super(_0x4d8211),this['_suggestions']=_0x28a00a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x488757){const _0xee044e=this['_suggestions']['get'](_0x488757);if(!_0xee044e)throw new _0x592c71('track-changes-discard-suggestion-not-found',this);const _0x1d2b21=_0xee044e['getRanges']();this['editor']['model']['canEditAt'](_0x1d2b21)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xee044e);}}function ls(_0xca143d,_0x1fccc6){let _0x551d57='';return _0x551d57+=_0xca143d['split']('*')['map']((_0x210faa,_0x496915)=>_0x496915%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x210faa)+'</span>':nn(_0x210faa))['join'](''),_0x1fccc6&&(_0x551d57+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1fccc6['value']+'\x22\x20title=\x22'+_0x1fccc6['title']+'\x22></span>'),_0x551d57;}function nn(_0x2b8ef4){const _0x2289a9=document['createElement']('span');return _0x2289a9['innerText']=_0x2b8ef4,_0x2289a9['innerHTML'];}function ss(_0x26f41e){return _0x26f41e['sort']((_0x5fe573,_0x1a4cfa)=>'deletion'==_0x5fe573['type']&&'deletion'!=_0x1a4cfa['type']?-0x1:'deletion'!=_0x5fe573['type']&&'deletion'==_0x1a4cfa['type']?0x1:0x0);}function to(_0x3c4f79,_0x5f18a9){let _0x388753,_0x495fec=0x0;const _0x1b821a=[],_0x1f32ef=_0x5f18a9['schema'];for(;_0x495fec<_0x3c4f79['length'];){const _0x4cbb15=_0x3c4f79[_0x495fec],_0x1ff227=_0x3c4f79[_0x495fec+0x1];_0x388753||(_0x388753=_0x5f18a9['createPositionBefore'](_0x4cbb15)),on(_0x5f18a9,_0x4cbb15,_0x1ff227)||(_0x1b821a['push'](_0x5f18a9['createRange'](_0x388753,_0x1f32ef['isObject'](_0x4cbb15)?_0x5f18a9['createPositionAfter'](_0x4cbb15):_0x5f18a9['createPositionAt'](_0x4cbb15,'end'))),_0x388753=null),_0x495fec++;}return _0x1b821a;}function on(_0x53980b,_0xa60be7,_0x50d56f){if(!_0x50d56f)return!0x1;const _0x595fe9=_0x53980b['createPositionAfter'](_0xa60be7),_0x7a4ff9=_0x53980b['createPositionBefore'](_0x50d56f);return _0x595fe9['isTouching'](_0x7a4ff9);}function rs(_0x1c5aac,_0x316229,_0x4aaf67){for(;_0x4aaf67['length'];){const _0x357369=_0x4aaf67['splice'](0x0,0x64);_0x1c5aac['change'](()=>{for(const _0x349998 of _0x357369)_0x349998['isInContent']&&_0x316229['execute'](_0x349998['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x136c7f,_0x3a80b9,_0x5cbfc7){super(_0x136c7f),this['_command']=_0x3a80b9,this['_suggestions']=_0x5cbfc7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x334b16=Array['from'](this['_suggestions']['values']())['some'](_0x33d338=>_0x33d338['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x334b16;}['execute'](){const _0x82ee05=ss(Array['from'](this['_suggestions']['values']()));for(const _0x243969 of _0x82ee05){const _0x3619ce=_0x243969['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3619ce))return;}rs(this['editor']['model'],this['_command'],_0x82ee05);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x57a930,_0xfef047,_0x5ab191){super(_0x57a930),this['_command']=_0xfef047,this['_suggestions']=_0x5ab191,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x24c955=this['editor']['model']['document']['selection'],_0x5595dd=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x577ca7,_0x84b097){const _0x5d8da5=Array['from'](_0x577ca7['getRanges']()),_0x598bda=new Set();for(const _0xf28886 of _0x84b097)if(_0xf28886['isInContent']){for(const _0x4f4708 of _0x5d8da5)for(const _0x3fa18d of _0xf28886['getRanges']())(_0x4f4708['isIntersecting'](_0x3fa18d)||_0x577ca7['isCollapsed']&&!_0xf28886['isMultiRange']&&_0xf28886['next']&&_0x3fa18d['end']['isTouching'](_0x4f4708['start']))&&_0x598bda['add'](_0xf28886);}return _0x598bda;}(_0x24c955,_0x5595dd),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x411e6a=ss(Array['from'](this['_selectedSuggestions']));for(const _0xe692e8 of _0x411e6a){const _0x5c105d=_0xe692e8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c105d))return;}rs(this['editor']['model'],this['_command'],_0x411e6a);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x152174(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x518a9d,_0x3260ea){super(),this['id']=_0x3260ea['id'],this['type']=_0x3260ea['type'],this['subType']=_0x3260ea['subType']||null,this['author']=_0x3260ea['author'],this['creator']=_0x3260ea['creator']||_0x3260ea['author'],this['isExternal']=Boolean(_0x3260ea['attributes']&&_0x3260ea['attributes']['@external']),this['data']=null,this['_model']=_0x518a9d,this['_onAccept']=_0x3260ea['onAccept'],this['_onDiscard']=_0x3260ea['onDiscard'],this['_onAttributesChange']=_0x3260ea['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3260ea['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 _0x29b6e8=this;for(;_0x29b6e8['previous'];)_0x29b6e8=_0x29b6e8['previous'];return _0x29b6e8;}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'](_0x4ef851){this['_markerNames']['add'](_0x4ef851);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x25f28d=>this['_model']['markers']['get'](_0x25f28d))['filter'](_0x3611c3=>_0x3611c3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xd0c736=>{for(const _0x5a5089 of this['getMarkers']())_0xd0c736['removeMarker'](_0x5a5089);}),this['_markerNames']['clear']();}['removeMarker'](_0x448f4f){this['_model']['change'](_0x267e4e=>{_0x267e4e['removeMarker'](_0x448f4f);}),this['_markerNames']['delete'](_0x448f4f);}['addRange'](_0x233df1){const _0x3081b3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3081b3),this['_model']['change'](_0x9d239b=>{_0x9d239b['addMarker'](_0x3081b3,{'range':_0x233df1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xbd1c42){for(const _0x5a745f of this['getRanges']())if(_0x5a745f['isIntersecting'](_0xbd1c42))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5da437=>_0x5da437['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x333eb1,_0x4ad1d4)=>[..._0x333eb1,..._0x4ad1d4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x41855a=this['getRanges']();if(0x1!=_0x41855a['length'])return null;const _0x16d349=_0x41855a[0x0],_0x386a4a=_0x16d349['start']['nodeAfter'],_0xff74e1=_0x16d349['end']['nodeBefore'];return _0x386a4a instanceof _0x5738b4?_0x386a4a!=_0xff74e1?null:_0x386a4a: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 _0x448ae7=[];let _0xa5935d=this['head'];for(;_0xa5935d;)_0x448ae7['push'](_0xa5935d),_0xa5935d=_0xa5935d['next'];return _0x448ae7;}['setAttribute'](_0x8f344,_0x2b99b9){const _0x1c6f28=_0x50f003(this['attributes']);_0x201370(_0x1c6f28,_0x8f344,_0x2b99b9),_0x41747e(_0x1c6f28,this['attributes'])||(this['attributes']=_0x1c6f28,this['_onAttributesChange'](_0x1c6f28));}['removeAttribute'](_0x37a677){const _0xcf4cfc=_0x50f003(this['attributes']);_0x5b2e9b(_0xcf4cfc,_0x37a677),_0x41747e(_0xcf4cfc,this['attributes'])||(this['attributes']=_0xcf4cfc,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 _0x2120b6()['substr'](0x1,0x5);}}function o(_0x569e26,_0x45b493,_0x556c07){const t=_0x569e26['t'];switch(_0x45b493){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',_0x556c07);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x556c07);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x556c07);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x556c07);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x556c07);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',_0x556c07);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x556c07);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',_0x556c07);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x556c07);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x556c07);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x556c07);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x556c07);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x556c07);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x556c07);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x556c07);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x556c07);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x556c07);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x556c07);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x556c07);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x556c07);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x556c07);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x556c07);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x556c07);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'},_0x556c07);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x556c07);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x556c07);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x556c07);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x556c07);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x556c07);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'},_0x556c07);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x556c07);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x556c07);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x556c07);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x556c07);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'},_0x556c07);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x556c07);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'},_0x556c07);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'},_0x556c07);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x556c07);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'},_0x556c07);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x556c07);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'},_0x556c07);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x556c07);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x556c07);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'},_0x556c07);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'},_0x556c07);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'},_0x556c07);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x556c07);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'},_0x556c07);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'},_0x556c07);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'},_0x556c07);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x45b493;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x321305,_0x17cf06){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x321305,this['_locale']=_0x17cf06;}['getDescriptions'](_0x69d558){const _0xefcf70=[],_0x3c9be8=new Set(),_0x4dc294=new Set();for(let _0x92a3c3=0x0;_0x92a3c3<_0x69d558['length'];_0x92a3c3++){const _0x1db53e=_0x69d558[_0x92a3c3];if(!_0x1db53e['isInContent'])continue;const _0x28159f=this['_handleCustomCallbackDescription'](_0x1db53e);if(_0x28159f){if(null!=_0x1db53e['subType']){if(_0x3c9be8['has'](_0x1db53e['subType']))continue;_0x3c9be8['add'](_0x1db53e['subType']);}_0xefcf70['push'](_0x28159f);}else{if('attribute'!=_0x1db53e['type'])'insertion'!=_0x1db53e['type']&&'deletion'!=_0x1db53e['type']||this['_handleInsertRemoveSuggestionDescription'](_0xefcf70,_0x1db53e,_0x69d558[_0x92a3c3+0x1]);else{const _0x5c69a1=_0x1db53e['data']['key'];if(_0x4dc294['has'](_0x5c69a1))continue;_0x4dc294['add'](_0x1db53e['data']['key']),_0x5c69a1==m?this['_handleRenameSuggestionDescription'](_0xefcf70,_0x1db53e):this['_handleAttributeSuggestionDescription'](_0xefcf70,_0x1db53e);}}}return this['_resolveDescriptionItems'](_0xefcf70);}['registerDescriptionCallback'](_0x1019f1){this['_customCallbacks']['push'](_0x1019f1);}['registerElementLabel'](_0x23a7a6,_0x5b040e,_0x39cf43=_0xbff88b['normal']){'function'==typeof _0x23a7a6?_0x21d775(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23a7a6,'label':_0x5b040e,'priority':_0x39cf43}):this['_itemLabels']['set'](_0x23a7a6,_0x5b040e);}['registerAttributeLabel'](_0x43a226,_0xce9dc){this['_attributeLabels']['set'](_0x43a226,_0xce9dc);}['getItemLabel'](_0x4fd2cd,_0x52136c=0x1){let _0x494a6b;for(const _0x9aca9c of this['_itemLabelsCallbacks'])if(_0x9aca9c['matchingCallback'](_0x4fd2cd)){_0x494a6b=_0x9aca9c['label'];break;}return _0x494a6b||(_0x494a6b=this['_itemLabels']['get'](_0x4fd2cd['name'])),_0x494a6b?_0x494a6b(_0x52136c):0x1!==_0x52136c?_0x52136c+'\x20'+_0x4fd2cd['name']+'s':''+_0x4fd2cd['name'];}['_addDescriptionItems'](_0x49294d,_0x58df0b){const _0x591877=_0x58df0b['getFirstRange']()['getWalker'](),_0x27a860='insertion'==_0x58df0b['type']?'add':'remove';for(const _0x5d9931 of _0x591877){const _0x1508ba=_0x5d9931['item'],_0x1b67dc=_0x49294d[_0x49294d['length']-0x1];if(_0x1508ba['is']('$textProxy'))_0x1b67dc&&_0x1b67dc['type']['indexOf']('Container')>-0x1&&_0x49294d['pop'](),_0x1b67dc&&'text'==_0x1b67dc['type']?_0x1b67dc[_0x27a860]+=_0x1508ba['data']:_0x49294d['push']({'type':'text','add':'add'==_0x27a860?_0x1508ba['data']:'','remove':'remove'==_0x27a860?_0x1508ba['data']:''});else{if(this['_schema']['isObject'](_0x1508ba)){const _0x3e74b8=_0x1508ba;if(_0x1b67dc&&_0x1b67dc['type']['indexOf']('Container')>-0x1&&_0x49294d['pop'](),'elementEnd'==_0x5d9931['type'])continue;_0x1b67dc&&_0x1b67dc['type']==_0x27a860+'Object'&&_0x1b67dc['element']['name']==_0x3e74b8['name']?_0x1b67dc['quantity']++:_0x49294d['push']({'type':_0x27a860+'Object','element':_0x3e74b8,'quantity':0x1}),_0x591877['skip'](_0x48bac5=>!('elementEnd'==_0x48bac5['type']&&_0x48bac5['item']==_0x1508ba));}else{if(this['_schema']['checkChild'](_0x1508ba,'$text')||_0x1508ba['is']('element','softBreak')){const _0x34883a=_0x1508ba;if('add'==_0x27a860&&'elementStart'==_0x5d9931['type']||'remove'==_0x27a860&&'elementEnd'==_0x5d9931['type'])continue;if(_0x1b67dc&&-0x1==_0x1b67dc['type']['indexOf']('Container')){'text'==_0x1b67dc['type']&&(_0x1b67dc[_0x27a860]+='\x0a');continue;}let _0x4eb3df;if(_0x4eb3df='add'==_0x27a860?_0x34883a['nextSibling']&&!this['_schema']['isObject'](_0x34883a['nextSibling'])?_0x34883a['nextSibling']:null:_0x34883a['previousSibling']&&!this['_schema']['isObject'](_0x34883a['previousSibling'])?_0x34883a['previousSibling']:null,_0x34883a['isEmpty']||_0x4eb3df&&_0x4eb3df['isEmpty']){const _0x1550e7=_0x4eb3df&&_0x4eb3df['isEmpty']?_0x4eb3df:_0x34883a;_0x1b67dc&&_0x1b67dc['type']==_0x27a860+'EmptyContainer'&&_0x1b67dc['element']['name']==_0x1550e7['name']?_0x1b67dc['quantity']++:_0x49294d['push']({'type':_0x27a860+'EmptyContainer','element':_0x1550e7,'quantity':0x1});}else _0x49294d['push']({'type':_0x27a860+'Container','element':_0x34883a});}}}}}['_resolveDescriptionItems'](_0x47eb68){const _0x54d51f=this['_locale'],_0x4d9d08=[],_0x192cb9=[],_0x46cd8e=[];for(const _0x390641 of _0x47eb68)switch(_0x390641['type']){case'text':if(_0x390641['add']=_0x390641['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x390641['remove']=_0x390641['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x390641['add']&&''!=_0x390641['remove']){_0x4d9d08['push']({'type':'replace','content':o(_0x54d51f,'REPLACE_TEXT',['\x22'+_0x390641['remove']+'\x22','\x22'+_0x390641['add']+'\x22'])});continue;}if(null!=_0x390641['add']['match'](/^ +$/)){_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Insert:*\x20%0',o(_0x54d51f,'ELEMENT_SPACE',_0x390641['add']['length']))});continue;}if(null!=_0x390641['remove']['match'](/^ +$/)){_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Remove:*\x20%0',o(_0x54d51f,'ELEMENT_SPACE',_0x390641['remove']['length']))});continue;}if(''!=_0x390641['add']){_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Insert:*\x20%0','\x22'+_0x390641['add']+'\x22')});continue;}_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Remove:*\x20%0','\x22'+_0x390641['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Insert:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Remove:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'addContainer':_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Split:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'removeContainer':_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Merge:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'addFormat':_0x192cb9['push'](_0x390641['key']);continue;case'removeFormat':_0x46cd8e['push'](_0x390641['key']);continue;default:_0x4d9d08['push'](_0x390641);}if(_0x192cb9['length']){const _0x4cd77c=_0x192cb9['map'](_0xe56001=>this['_attributeLabels']['has'](_0xe56001)?this['_attributeLabels']['get'](_0xe56001):_0xe56001)['join'](',\x20');_0x4d9d08['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4cd77c)});}if(_0x46cd8e['length']){const _0x266703=_0x46cd8e['map'](_0x15249b=>this['_attributeLabels']['has'](_0x15249b)?this['_attributeLabels']['get'](_0x15249b):_0x15249b)['join'](',\x20');_0x4d9d08['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x266703)});}return _0x4d9d08;}['_handleCustomCallbackDescription'](_0xb06abe){for(const _0x2edc2e of this['_customCallbacks']){const _0x4df4ad=_0x2edc2e(_0xb06abe);if(_0x4df4ad&&'type'in _0x4df4ad)return _0x4df4ad;}}['_handleAttributeSuggestionDescription'](_0x34c963,_0x6ff5aa){const _0x3578c7=_0x6ff5aa['data'],_0x36a24d=void 0x0===_0x3578c7['newValue']?'removeFormat':'addFormat';_0x34c963['push']({'type':_0x36a24d,'key':_0x3578c7['key']});}['_handleRenameSuggestionDescription'](_0x8bf268,_0x578cdc){_0x8bf268['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x578cdc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x31b1e6,_0xbec4ec,_0x45349a){if(this['_addDescriptionItems'](_0x31b1e6,_0xbec4ec),_0x45349a&&_0x45349a['getFirstRange']()&&!_0xbec4ec['getFirstRange']()['end']['isEqual'](_0x45349a['getFirstRange']()['start'])){const _0x519013=_0x31b1e6[_0x31b1e6['length']-0x1],_0x4f9d59='insertion'==_0xbec4ec['type']?'add':'remove';_0x519013&&'text'==_0x519013['type']&&(_0x519013[_0x4f9d59]+='\x0a');}}}class V extends _0x48688f{['afterInit'](){const _0x2bca53=this['editor'],_0x2c58bd=_0x2bca53['plugins']['get']('TrackChangesEditing');_0x2bca53['commands']['get']('showAIAssistant')&&_0x2c58bd['enableCommand']('showAIAssistant');}}class U extends _0x48688f{['afterInit'](){const _0x579bc0=this['editor'],_0x5e19be=_0x579bc0['locale'];if(!_0x579bc0['plugins']['has']('AlignmentEditing'))return;const _0x3bdf7d=_0x579bc0['plugins']['get']('TrackChangesEditing');_0x3bdf7d['enableDefaultAttributesIntegration']('alignment'),_0x3bdf7d['registerBlockAttribute']('alignment'),_0x3bdf7d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5e19be,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba767=this['editor'],_0x116686=_0x1ba767['locale'];_0x1ba767['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c8c75=>{if('formatBlock'!=_0x2c8c75['type'])return;const {data:_0x22960d}=_0x2c8c75;if(_0x22960d&&'alignment'==_0x22960d['commandName']){const _0x370d77=_0x22960d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x116686,'*Format:*\x20%0',function(_0x50e74f){switch(_0x50e74f){case'left':return o(_0x116686,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x116686,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x116686,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x116686,'FORMAT_JUSTIFY_TEXT');}}(_0x370d77))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x48688f{['afterInit'](){const _0x1b20d7=this['editor'],_0x400b00=_0x1b20d7['plugins']['get']('TrackChangesEditing'),_0x355a5b=_0x1b20d7['locale'];for(const _0x2afb4c of ti){if(!_0x1b20d7['plugins']['has'](_0x2afb4c))continue;const _0x2a5316=_0x2afb4c['slice'](0x0,-0x7)['toLowerCase'](),_0x385995='FORMAT_'+_0x2a5316['toUpperCase']();_0x400b00['enableDefaultAttributesIntegration'](_0x2a5316),_0x400b00['registerInlineAttribute'](_0x2a5316),_0x400b00['descriptionFactory']['registerAttributeLabel'](_0x2a5316,o(_0x355a5b,_0x385995));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e9094=this['editor'],_0x32bd3e=_0x4e9094['locale'],_0x17d7ed=_0x4e9094['plugins']['get']('TrackChangesEditing');function _0x376b23(_0x39ddd7,_0x423107){_0x17d7ed['descriptionFactory']['registerDescriptionCallback'](_0x1aac02=>{if('formatInline'!=_0x1aac02['type'])return;const {data:_0x1f6e0d}=_0x1aac02;return _0x1f6e0d&&_0x1f6e0d['commandName']===_0x39ddd7?_0x1f6e0d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32bd3e,'*Format:*\x20%0',_0x423107)}:{'type':'format','content':o(_0x32bd3e,'*Remove\x20format:*\x20%0',_0x423107)}:void 0x0;});}_0x376b23('bold',o(_0x32bd3e,'FORMAT_BOLD')),_0x376b23('italic',o(_0x32bd3e,'FORMAT_ITALIC')),_0x376b23('underline',o(_0x32bd3e,'FORMAT_UNDERLINE')),_0x376b23('code',o(_0x32bd3e,'FORMAT_CODE')),_0x376b23('strikethrough',o(_0x32bd3e,'FORMAT_STRIKETHROUGH')),_0x376b23('subscript',o(_0x32bd3e,'FORMAT_SUBSCRIPT')),_0x376b23('superscript',o(_0x32bd3e,'FORMAT_SUPERSCRIPT'));}}class F extends _0x48688f{['afterInit'](){const _0xa4c79e=this['editor'],_0x5a9bbf=_0xa4c79e['locale'];if(!_0xa4c79e['plugins']['has']('BlockQuoteEditing'))return;const _0x4c1d81=_0xa4c79e['plugins']['get']('TrackChangesEditing'),_0x5f786c=this['editor']['commands']['get']('blockQuote');_0x4c1d81['enableCommand']('blockQuote',(_0x23a9bd,_0x57d8b1={})=>{const _0x367512=this['editor']['model']['document']['selection'],_0x577847=_0x57d8b1&&void 0x0!==_0x57d8b1['forceValue']?_0x57d8b1['forceValue']:!_0x5f786c['value'];let _0x10aee8=[];if(_0x577847){const _0x582bfb=Array['from'](_0x367512['getSelectedBlocks']())['filter'](_0x13df20=>oo(_0x13df20)||function(_0x17fa66,_0x41083b){const _0x3e893a=_0x41083b['checkChild'](_0x17fa66['parent'],'blockQuote'),_0x451992=_0x41083b['checkChild'](['$root','blockQuote'],_0x17fa66);return _0x3e893a&&_0x451992;}(_0x13df20,this['editor']['model']['schema']));_0x10aee8=to(_0x582bfb,_0xa4c79e['model']);}else{const _0x5b879d=Array['from'](_0x367512['getSelectedBlocks']())['filter'](_0x5524e9=>oo(_0x5524e9));_0x10aee8=to(_0x5b879d,_0xa4c79e['model']);}_0xa4c79e['model']['change'](()=>{for(const _0x284696 of _0x10aee8)_0x4c1d81['markBlockFormat'](_0x284696,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x577847}]});});}),_0x4c1d81['descriptionFactory']['registerDescriptionCallback'](_0xd50a46=>{const {data:_0x513de5}=_0xd50a46;if(_0x513de5&&'blockQuote'==_0x513de5['commandName']){const _0x531bae=o(_0x5a9bbf,'ELEMENT_BLOCK_QUOTE');return _0x513de5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a9bbf,'*Set\x20format:*\x20%0',_0x531bae)}:{'type':'format','content':o(_0x5a9bbf,'*Remove\x20format:*\x20%0',_0x531bae)};}});}}function oo(_0x27f223){return'blockQuote'==_0x27f223['parent']['name'];}class L extends _0x48688f{['afterInit'](){const _0x4cba02=this['editor'];_0x4cba02['plugins']['has']('CaseChange')&&(_0x4cba02['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4cba02['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4cba02['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x48688f{['afterInit'](){const _0x3db8e5=this['editor'];_0x3db8e5['commands']['get']('ckbox')&&_0x3db8e5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x48688f{['afterInit'](){const _0x1b8874=this['editor'];if(!_0x1b8874['plugins']['has']('CodeBlock'))return;const _0x285f88=_0x1b8874['plugins']['get']('TrackChangesEditing'),_0xb3fde8=_0x1b8874['locale'],_0x34a1c3=_0x1b8874['config']['get']('codeBlock')['languages'],_0x3a2acd=_0x1b8874['commands']['get']('codeBlock');_0x285f88['enableCommand']('indentCodeBlock'),_0x285f88['enableCommand']('outdentCodeBlock'),_0x285f88['enableCommand']('codeBlock',(_0x192305,_0x3c3b57={})=>{const _0x4c5e06=_0x1b8874['model'],_0x3c9f51=_0x1b8874['model']['document']['selection'],_0x52d197=_0x3c3b57&&void 0x0!==_0x3c3b57['forceValue']?_0x3c3b57['forceValue']:!_0x3a2acd['value'];let _0x132e7e;_0x3c3b57['language']||(_0x3c3b57['language']=_0x34a1c3[0x0]['language']),_0x132e7e=_0x52d197?Array['from'](_0x3c9f51['getSelectedBlocks']())['filter'](_0x1dc6f4=>eo(_0x1dc6f4)||function(_0x3860db,_0x5adb8a){if(_0x3860db['is']('rootElement')||_0x5adb8a['isLimit'](_0x3860db))return!0x1;return _0x5adb8a['checkChild'](_0x3860db['parent'],'codeBlock');}(_0x1dc6f4,_0x4c5e06['schema'])):Array['from'](_0x3c9f51['getSelectedBlocks']())['filter'](_0x2babdf=>eo(_0x2babdf));const _0x50a6ce=to(_0x132e7e,_0x4c5e06);_0x4c5e06['change'](()=>{for(const _0x86d37 of _0x50a6ce)_0x285f88['markBlockFormat'](_0x86d37,{'commandName':'codeBlock','commandParams':[{..._0x3c3b57,'forceValue':_0x52d197}],'formatGroupId':'blockName'});});}),(_0x285f88['descriptionFactory']['registerElementLabel']('codeBlock',_0x69bd10=>o(_0xb3fde8,'ELEMENT_CODE_BLOCK',_0x69bd10)),_0x285f88['descriptionFactory']['registerDescriptionCallback'](_0x2eb3f9=>{if('formatBlock'!=_0x2eb3f9['type'])return;const _0x482af6=_0xb3fde8['t'],{data:_0x2b3228}=_0x2eb3f9;if(!_0x2b3228||'codeBlock'!=_0x2b3228['commandName'])return;const _0x4690e5=_0x2b3228['commandParams'][0x0]['language'],_0x2fbb2b=_0x482af6(_0x34a1c3['find'](_0x4bae1b=>_0x4bae1b['language']===_0x4690e5)['label'])['toLowerCase']();return _0x2b3228['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb3fde8,'*Set\x20format:*\x20%0',o(_0xb3fde8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2fbb2b+')')}:{'type':'format','content':o(_0xb3fde8,'*Remove\x20format:*\x20%0',o(_0xb3fde8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4a0a6a){return'codeBlock'==_0x4a0a6a['name'];}class q extends _0x48688f{['afterInit'](){const _0x356eea=this['editor'];if(!_0x356eea['plugins']['has']('CommentsEditing'))return;_0x356eea['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x294f53,_0xee9b94,_0x37bd94){const _0x474d02=[];for(const _0x3ffcc6 of _0xee9b94['getItems']())_0x3ffcc6['hasAttribute'](_0x294f53)&&_0x474d02['push'](_0x37bd94['createRangeOn'](_0x3ffcc6));return _0x474d02;}function _e(_0xa03bf1,_0x142c8b,{showActiveMarker:_0x11a61e=!0x0}={}){const _0x44c064=_0xa03bf1['plugins']['get']('TrackChangesEditing');return(_0x36354c,_0x535297,_0x25e380)=>{if(!_0x25e380['consumable']['test'](_0x535297['markerRange'],_0x36354c['name']))return;const _0x521894=_0x535297['markerRange']['getWalker'](),_0x109060=_0x535297['markerRange']['start'],_0x503960=_0xa03bf1['model']['schema'];let _0x200721=null,_0x3dbf46=null,_0x7430d4=!0x1,_0x4dfcdb=!0x1;for(const _0x54f19a of _0x521894){const _0x315652=_0x54f19a['item'];_0x7430d4=_0x7430d4||_0x503960['isContent'](_0x315652);const _0x43e3e0=_0x25e380['mapper']['toViewElement'](_0x315652);if(_0x43e3e0&&_0x43e3e0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54f19a['type']&&(_0x503960['isBlock'](_0x315652)&&!_0x503960['isLimit'](_0x315652)&&(_0x315652['nextSibling']||_0x109060['isAtEnd']?_0x200721&&_0x200721['parent']==_0x315652||(_0x200721=_0x315652,_0x3b8b56(_0x54f19a['previousPosition']),_0x4dfcdb=!0x0):_0x3dbf46=_0x3dbf46||_0x54f19a['previousPosition']));}function _0x3b8b56(_0x105062){const {authorId:_0x23e06f}=_0x44c064['_splitMarkerName'](_0x535297['markerName']),_0x5f37cc=_0x25e380['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x142c8b,'data-author-id':_0x23e06f}),_0x23171d=_0x25e380['mapper']['toViewPosition'](_0x105062);_0x11a61e&&_0x44c064['activeMarkers']['includes'](_0x535297['markerName'])&&_0x25e380['writer']['addClass']('ck-suggestion-marker--active',_0x5f37cc),_0x25e380['writer']['insert'](_0x23171d,_0x5f37cc),_0x25e380['mapper']['bindElementToMarker'](_0x5f37cc,_0x535297['markerName']);}_0x7430d4||_0x4dfcdb||!_0x3dbf46||_0x3b8b56(_0x3dbf46);};}class z extends _0x48688f{static get['requires'](){return[_0x4d1662];}['init'](){const _0x4bb214=this['editor'],_0xace0ae=_0x4bb214['plugins']['get']('TrackChangesEditing');_0xace0ae['enableCommand']('delete');const _0x1c4a98=_0x4bb214['commands']['get']('deleteForward');_0xace0ae['enableCommand']('deleteForward',(_0x3f3abb,_0x46e5bf={})=>{const _0x592d8c=_0x4bb214['model']['createSelection'](_0x4bb214['model']['document']['selection']);_0x592d8c['isCollapsed']&&_0x4bb214['model']['modifySelection'](_0x592d8c,{'direction':'forward','unit':_0x46e5bf['unit']});const _0xdd2c64=_0x592d8c['getFirstRange'](),_0x1240f3=_0x411321['fromRange'](_0xdd2c64);let _0x974c42;_0x3f3abb(_0x46e5bf),_0x974c42='$graveyard'==_0x1240f3['root']['rootName']?_0x4bb214['model']['createRange'](_0xdd2c64['start']):_0x4bb214['model']['createRange'](_0x1240f3['start'],_0x1240f3['end']),_0x1240f3['detach'](),_0x4bb214['model']['enqueueChange'](_0x1c4a98['buffer']['batch'],_0x5b1f40=>{_0x1c4a98['buffer']['lock'](),_0x5b1f40['setSelection'](_0x5b1f40['createRange'](_0x974c42['end'])),_0x1c4a98['buffer']['unlock']();});}),_0x4bb214['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4bb214,'merge'),{'priority':'high'}),_0x4bb214['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3a4c4c,_0x6cc66f,_0x8e3206)=>{_0x8e3206['options']['showSuggestionHighlights']&&_e(_0x4bb214,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3a4c4c,_0x6cc66f,_0x8e3206);},{'priority':'high'}),_0x4bb214['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x48a194,_0x379cf5,_0x42acc4)=>{const _0x11ff41=_0x42acc4['mapper']['markerNameToElements'](_0x379cf5['markerName']);if(_0x11ff41){for(const _0x46e10f of _0x11ff41)_0x46e10f['is']('uiElement')&&(_0x42acc4['mapper']['unbindElementFromMarkerName'](_0x46e10f,_0x379cf5['markerName']),_0x42acc4['writer']['remove'](_0x46e10f));}},{'priority':'high'});}}class K extends _0x48688f{['afterInit'](){const _0x113559=this['editor'];if(!_0x113559['plugins']['has']('ListEditing'))return;const _0x1e9110=_0x113559['locale'],_0x5df889=_0x113559['plugins']['get']('TrackChangesEditing'),_0x2e45ec=_0x113559['plugins']['has']('TodoListEditing'),_0x37b22b=!!_0x113559['config']['get']('list.multiBlock');function _0x9b1e11(_0x2fe36f){return{'type':'format','content':''+o(_0x1e9110,'*Set\x20format:*\x20%0',_0x2fe36f)};}function _0x1587be(_0x5c2b9b){return{'type':'format','content':''+o(_0x1e9110,'*Remove\x20format:*\x20%0',_0x5c2b9b)};}_0x5df889['enableDefaultAttributesIntegration']('numberedList'),_0x5df889['enableDefaultAttributesIntegration']('bulletedList'),_0x5df889['enableDefaultAttributesIntegration']('customNumberedList'),_0x5df889['enableDefaultAttributesIntegration']('customBulletedList'),_0x5df889['enableDefaultAttributesIntegration']('indentList'),_0x5df889['enableDefaultAttributesIntegration']('outdentList'),_0x5df889['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5df889['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5df889['registerBlockAttribute']('listItemId'),_0x5df889['registerBlockAttribute']('listType'),_0x5df889['registerBlockAttribute']('listIndent'),_0x37b22b&&(_0x5df889['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5df889['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2e45ec&&(_0x5df889['enableDefaultAttributesIntegration']('todoList'),_0x5df889['enableDefaultAttributesIntegration']('checkTodoList'),_0x5df889['registerBlockAttribute']('todoListChecked'),_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x241d40=>{const {data:_0x307b8c}=_0x241d40;if(_0x307b8c&&'todoListChecked'==_0x307b8c['key'])return{'type':'format','content':_0x307b8c['newValue']?o(_0x1e9110,'*Check\x20item*'):o(_0x1e9110,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x13515d=>{if(_0x13515d['batch']['isUndo'])return!0x1;let _0x1898b6=!0x1;const _0x36f88c=_0x5df889['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12b920=>'todoListChecked'===_0x5df889['_getAttributeKey'](_0x12b920));for(const _0x5754e5 of _0x36f88c){'todo'!=_0x5754e5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5df889['_findSuggestions'](_0x5754e5['getFirstRange'](),'attribute')['find'](_0x37fc9a=>'listType'===_0x5df889['_getAttributeKey'](_0x37fc9a['suggestion']))||(_0x13515d['removeMarker'](_0x5754e5['getFirstMarker']()),_0x1898b6=!0x0));}return _0x1898b6;})),_0x5df889['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1e9110,'FORMAT_INDENT'));const _0x214dca={'type':'format','content':''};_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x2d080d=>{const {data:_0x51e291}=_0x2d080d;if(!_0x51e291||'listType'!=_0x51e291['key'])return;let _0x1e3070=_0x2d080d['head'];for(;_0x1e3070;){if(_0x1e3070['data']&&(('listStyle'==_0x1e3070['data']['key']||'listMarkerStyle'==_0x1e3070['data']['key'])&&(_0x1e3070['data']['newValue']&&'default'!=_0x1e3070['data']['newValue']||'default'!=_0x1e3070['data']['oldValue']&&!_0x51e291['newValue'])||!_0x37b22b&&_0x1e3070['data']['key']==m))return _0x214dca;_0x1e3070=_0x1e3070['next'];}if(null==_0x51e291['newValue'])switch(_0x51e291['oldValue']){case'bulleted':return _0x1587be(o(_0x1e9110,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1587be(o(_0x1e9110,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1587be(o(_0x1e9110,'ELEMENT_TODO_LIST'));}switch(_0x51e291['newValue']){case'bulleted':return _0x9b1e11(o(_0x1e9110,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9b1e11(o(_0x1e9110,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9b1e11(o(_0x1e9110,'ELEMENT_TODO_LIST'));}}),_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x6e293b=>{const {data:_0x165c32}=_0x6e293b;if(_0x165c32&&'listIndent'==_0x165c32['key'])return null==_0x165c32['newValue']||null==_0x165c32['oldValue']&&0x0==_0x165c32['newValue']?_0x214dca:void 0x0;}),_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x2679e4=>{if('attribute'!=_0x2679e4['type'])return;const {data:_0xc531b9}=_0x2679e4;if(!_0xc531b9||'listItemId'!=_0xc531b9['key'])return;const _0x571869=Ee(_0x2679e4);return'newValue'==_0x571869?{'type':'format','content':o(_0x1e9110,'*Merge:*\x20list\x20item')}:'oldValue'==_0x571869?{'type':'format','content':o(_0x1e9110,'*Split:*\x20list\x20item')}:_0x214dca;}),_0x113559['model']['document']['registerPostFixer'](_0x5a70dc=>this['listItemIdFixer'](_0x5a70dc)),_0x113559['model']['document']['registerPostFixer'](_0x2cc98c=>this['noTrackChangesFixer'](_0x2cc98c)),_0x113559['model']['document']['on']('change:data',(_0x389b5d,_0x133a0e)=>{if(_0x133a0e['isUndo']||!_0x133a0e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2a86b8){if(_0x2a86b8['batch']['isUndo']||!_0x2a86b8['batch']['isLocal'])return!0x1;let _0x4801a6=!0x1;const _0x823ebc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54f69c=>_0x54f69c['data']&&'listItemId'==_0x54f69c['data']['key'])['filter'](_0x177dfe=>_0x177dfe['data']['newValue']&&_0x177dfe['data']['oldValue']);for(const _0x45fd2c of _0x823ebc)Ee(_0x45fd2c)||(_0x2a86b8['removeMarker'](_0x45fd2c['getFirstMarker']()),_0x4801a6=!0x0);return _0x4801a6;}['noTrackChangesFixer'](_0x3ce4ec){if(_0x3ce4ec['batch']['isUndo']||!_0x3ce4ec['batch']['isLocal'])return!0x1;const _0x1bf277=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1bf277['trackChangesCommand']['value'])return!0x1;let _0x453dc8=!0x1;const _0xcc4bf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4c4262=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4b8a74=>'attribute'==_0x4b8a74['type'])['filter'](_0x20ad26=>_0xcc4bf['includes'](_0x20ad26['attributeKey']));if(0x0==_0x4c4262['length'])return _0x453dc8;for(const _0x40cc09 of _0x4c4262){const _0x38eee7=_0x1bf277['_findSuggestions'](_0x40cc09['range'],'attribute')['filter'](_0xd647d1=>!_0xd647d1['meta']['isNextTo'])['map'](_0x44a582=>_0x44a582['suggestion'])['filter'](_0x5653d6=>{const _0x2e5f4d=_0x1bf277['_getAttributeKey'](_0x5653d6);return _0xcc4bf['includes'](_0x2e5f4d);});if(_0x38eee7['length']){for(const _0x3e27ec of _0x38eee7)_0x3ce4ec['removeMarker'](_0x3e27ec['getFirstMarker']());_0x453dc8=!0x0;}}return _0x453dc8;}['assureChains'](){const _0x24793d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18aa7c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2769c1;const _0x240117=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2fce3c=>{if(_0x2fce3c['data']['oldRange']||!_0x2fce3c['data']['newRange'])return null;if(!_0x2fce3c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x506a15}=_0x24793d['_splitMarkerName'](_0x2fce3c['name']);if(!_0x24793d['hasSuggestion'](_0x506a15))return null;const _0x59c9d6=_0x24793d['getSuggestion'](_0x506a15);return _0x18aa7c['includes'](_0x59c9d6['data']['key']);})['map'](_0x458bc6=>{const {id:_0x254aac}=_0x24793d['_splitMarkerName'](_0x458bc6['name']),_0x2aec8e=_0x24793d['getSuggestion'](_0x254aac);return _0x2769c1=_0x2aec8e['attributes']['groupId'],_0x2aec8e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x240117['size'])return;const _0x50db0b=_0x24793d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b7eb0=>'attribute'==_0x3b7eb0['type']&&_0x3b7eb0['data']&&_0x18aa7c['includes'](_0x3b7eb0['data']['key'])&&_0x3b7eb0['attributes']['groupId']!=_0x2769c1)['map'](_0x3cb1f1=>({'listItem':_0x3cb1f1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3cb1f1['attributes']['groupId']})),_0x368c5f=new Set();for(const {groupId:_0x249bf2,listItem:_0x17875a}of _0x50db0b)_0x240117['has'](_0x17875a)&&_0x368c5f['add'](_0x249bf2);for(const _0x867148 of _0x24793d['getSuggestions']())_0x368c5f['has'](_0x867148['attributes']['groupId'])&&_0x867148['setAttribute']('groupId',_0x2769c1);}['_supportLegacySuggestions'](){const _0x52c19e=this['editor'],_0x1c0322=_0x52c19e['locale'],_0x2e9361=_0x52c19e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2e9361['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a5f39,_0x44786e){const _0x8f6d83=[];for(let _0x1d81e4 of _0x1a5f39)_0x1d81e4['start']['nodeAfter']===_0x1d81e4['end']['parent']&&(_0x1d81e4=_0x52c19e['model']['createRange'](_0x52c19e['model']['createPositionAt'](_0x1d81e4['start']['nodeAfter'],0x0))),_0x8f6d83['push'](_0x1d81e4);_0x52c19e['model']['change'](_0xcc85a5=>{const _0x205d3c=_0x52c19e['model']['document']['selection'],_0x2b98a0=Array['from'](_0x205d3c['getRanges']())['map'](_0x244e7a=>_0x411321['fromRange'](_0x244e7a));_0xcc85a5['setSelection'](_0x8f6d83),_0x52c19e['commands']['get'](_0x44786e['commandName'])['refresh'](),_0x44786e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x52c19e['execute'](_0x44786e['commandName'],..._0x44786e['commandParams']),_0xcc85a5['setSelection'](_0x2b98a0);for(const _0x45693d of _0x2b98a0)_0x45693d['detach']();});}),_0x2e9361['descriptionFactory']['registerElementLabel'](function(_0x2182ef){const _0x259d5e=!_0x52c19e['model']['schema']['isObject'](_0x2182ef),_0x2b58d5=_0x2182ef['previousSibling'],_0x3e03cb=_0x2182ef['nextSibling'],_0x396474=_0x2182ef['getAttribute']('listItemId'),_0x22f6ca=!_0x2b58d5||_0x2b58d5['getAttribute']('listItemId')!==_0x396474,_0x510ce0=!_0x3e03cb||_0x3e03cb['getAttribute']('listItemId')!==_0x396474;return _0x259d5e&&Boolean(_0x396474)&&_0x22f6ca&&_0x510ce0;},_0x3801d5=>o(_0x1c0322,'ELEMENT_LIST_ITEM',_0x3801d5));}['_registerLegacyDescription'](){const _0x88237c=this['editor'],_0x12bb6d=_0x88237c['locale'];function _0x450769(_0x568bbb){const _0x422dba=_0x88237c['commands']['get']('bulletedList')['value'],_0x1e10c8=_0x88237c['commands']['get']('numberedList')['value'];return'numberedList'===_0x568bbb?_0x422dba:_0x1e10c8;}_0x88237c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x72a553){if('formatBlock'!=_0x72a553['type'])return;const {data:_0x3617ec}=_0x72a553;if(!_0x3617ec)return;let _0x1671d2,_0x2935d3,_0x472d2c,_0x37f7b9;switch(_0x3617ec['commandName']){case'bulletedList':_0x472d2c=_0x3617ec['commandParams'][0x0]['forceValue'],_0x37f7b9=_0x450769(_0x3617ec['commandName']),_0x1671d2=_0x472d2c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37f7b9&&_0x88237c['config']['get']('list.multiBlock')||(_0x1671d2='*Change\x20to:*\x20%0'),_0x2935d3={'type':'format','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x472d2c=_0x3617ec['commandParams'][0x0]['forceValue'],_0x37f7b9=_0x450769(_0x3617ec['commandName']),_0x1671d2=_0x472d2c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37f7b9&&_0x88237c['config']['get']('list.multiBlock')||(_0x1671d2='*Change\x20to:*\x20%0'),_0x2935d3={'type':'format','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1671d2='*Indent:*\x20%0',_0x2935d3={'type':'format','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1671d2=function(_0x44f306){const _0x16c15f=_0x44f306['getFirstRange']();let _0x45f610=_0x16c15f['start']['nodeAfter'];for(;_0x45f610&&_0x16c15f['containsItem'](_0x45f610);){if(_0x45f610['getAttribute']('listIndent')>0x0)return!0x1;_0x45f610=_0x45f610['nextSibling'];}return!0x0;}(_0x72a553)?o(_0x12bb6d,'*Format:*\x20remove\x20from\x20%0',o(_0x12bb6d,function(_0x2f06a7){return'ELEMENT_'+_0x2f06a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x72a553))):o(_0x12bb6d,'*Outdent:*\x20%0',o(_0x12bb6d,'ELEMENT_LIST_ITEM')),_0x2935d3={'type':'format','content':_0x1671d2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3617ec['multipleBlocks']&&(_0x1671d2='*Merge:*\x20%0',_0x2935d3={'type':'deletion','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_LIST_ITEM'))});}return _0x2935d3;});}}function Ee(_0x147147){let _0x1f291f=_0x147147['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1f291f;){const _0x594f98=_0x1f291f['getAttribute']('listItemId');if(!_0x594f98)return!0x1;if(_0x594f98==_0x147147['data']['newValue'])return'newValue';if(_0x594f98==_0x147147['data']['oldValue'])return'oldValue';_0x1f291f=_0x1f291f['previousSibling'];}return!0x1;}class pe extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x25b7b8=this['editor']['config']['get']('list.properties'),_0x363077=this['editor']['plugins']['get']('TrackChangesEditing');_0x25b7b8['styles']&&(_0x363077['enableDefaultAttributesIntegration']('listStyle'),_0x363077['registerBlockAttribute']('listStyle')),_0x25b7b8['reversed']&&(_0x363077['enableDefaultAttributesIntegration']('listReversed'),_0x363077['registerBlockAttribute']('listReversed')),_0x25b7b8['startIndex']&&(_0x363077['enableDefaultAttributesIntegration']('listStart'),_0x363077['registerBlockAttribute']('listStart'));const _0x5c4363={'type':'format','content':''};_0x363077['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x466e7c=this['editor']['locale'];_0x363077['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x466e7c,'FORMAT_LIST_REVERSED')),_0x363077['descriptionFactory']['registerDescriptionCallback'](_0x366f82=>{const {data:_0x10ea44}=_0x366f82;if(_0x10ea44&&'listReversed'==_0x10ea44['key'])return null==_0x10ea44['newValue']||0x0==_0x10ea44['newValue']&&null==_0x10ea44['oldValue']?_0x5c4363:void 0x0;}),_0x363077['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x466e7c,'FORMAT_LIST_START')),_0x363077['descriptionFactory']['registerDescriptionCallback'](_0x183f7d=>{const {data:_0x347012}=_0x183f7d;if(_0x347012&&'listStart'==_0x347012['key'])return null==_0x347012['newValue']||0x1==_0x347012['newValue']&&null==_0x347012['oldValue']?_0x5c4363:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x22bc66=>{if(_0x22bc66['batch']['isUndo'])return!0x1;let _0x24e503=!0x1;const _0x472ec7=_0x363077['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b392d=>{const _0x230c72=_0x363077['_getAttributeKey'](_0x2b392d);return'listStart'==_0x230c72||'listReversed'==_0x230c72;});for(const _0xdc90c0 of _0x472ec7){const _0x8fb641=_0xdc90c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x8fb641||'customNumbered'==_0x8fb641)continue;_0x363077['_findSuggestions'](_0xdc90c0['getFirstRange'](),'attribute')['find'](_0x1a16e6=>'listType'==_0x363077['_getAttributeKey'](_0x1a16e6['suggestion']))||(_0x22bc66['removeMarker'](_0xdc90c0['getFirstMarker']()),_0x24e503=!0x0);}return _0x24e503;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1cf4b4){const _0x5d3603=this['editor']['locale'],{data:_0x1c40c6}=_0x1cf4b4,_0x56fe0e={'type':'format','content':''};if(!_0x1c40c6||'listStyle'!=_0x1c40c6['key'])return;if(!_0x1c40c6['oldValue'])return'default'==_0x1c40c6['newValue']?_0x56fe0e:{'type':'format','content':''+o(_0x5d3603,'*Set\x20format:*\x20%0',o(_0x5d3603,this['_getTranslationKeyForListStyle'](_0x1c40c6['newValue'])))};if(!_0x1c40c6['newValue']){if('default'==_0x1c40c6['oldValue'])return _0x56fe0e;let _0x2667c2=_0x1cf4b4['head'];for(;_0x2667c2;){if(_0x2667c2['data']&&'listType'==_0x2667c2['data']['key']&&_0x2667c2['data']['newValue'])return _0x56fe0e;_0x2667c2=_0x2667c2['next'];}return{'type':'format','content':''+o(_0x5d3603,'*Remove\x20format:*\x20%0',o(_0x5d3603,this['_getTranslationKeyForListStyle'](_0x1c40c6['oldValue'])))};}if('default'!=_0x1c40c6['newValue'])return{'type':'format','content':''+o(_0x5d3603,'*Set\x20format:*\x20%0',o(_0x5d3603,this['_getTranslationKeyForListStyle'](_0x1c40c6['newValue'])))};let _0x458e36=_0x1cf4b4['head'];for(;_0x458e36;){if(_0x458e36['data']&&'listType'==_0x458e36['data']['key']&&_0x458e36['data']['newValue']&&_0x458e36['data']['oldValue'])return _0x56fe0e;_0x458e36=_0x458e36['next'];}return{'type':'format','content':o(_0x5d3603,'*Set\x20format:*\x20%0',o(_0x5d3603,'ELEMENT_'+_0x1cf4b4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ea5ae=this['editor'],_0x9ed3bf=_0x2ea5ae['locale'];_0x2ea5ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36589d=>{if('formatBlock'!=_0x36589d['type'])return;const {data:_0xafbff1}=_0x36589d;if(!_0xafbff1)return;let _0x564ad7,_0x18c24c;switch(_0xafbff1['commandName']){case'listStyle':_0x564ad7='*Change\x20to:*\x20%0',_0x18c24c={'type':'format','content':o(_0x9ed3bf,_0x564ad7,o(_0x9ed3bf,this['_getTranslationKeyForListStyle'](_0xafbff1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x564ad7=_0xafbff1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18c24c={'type':'format','content':o(_0x9ed3bf,_0x564ad7)};break;case'listStart':_0x564ad7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18c24c={'type':'format','content':o(_0x9ed3bf,_0x564ad7,_0xafbff1['commandParams'][0x0]['startIndex'])};}return _0x18c24c;});}['_getTranslationKeyForListStyle'](_0x1adaff){return'ELEMENT_'+function(_0x17aa21){if(ye['includes'](_0x17aa21))return'bulleted';if(Se['includes'](_0x17aa21))return'numbered';return null;}(_0x1adaff)['toUpperCase']()+'_LIST_'+_0x1adaff['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x48688f{static get['requires'](){return[_0x161099];}['init'](){const _0x4eb4c5=this['editor'],_0x547d3d=_0x4eb4c5['plugins']['get']('TrackChangesEditing'),_0x400415=_0x4eb4c5['commands']['get']('enter');_0x547d3d['enableCommand']('enter',()=>{_0x4eb4c5['model']['change'](_0x1bda5b=>{const _0x28500b=_0x4eb4c5['model']['document']['selection'],_0x56c4ce=_0x28500b['getFirstPosition'](),_0x383e73=_0x411321['fromRange'](_0x28500b['getFirstRange']());if(_0x400415['enterBlock'](_0x1bda5b)){const _0x20a259=_0x4eb4c5['model']['createPositionAt'](_0x56c4ce['parent']['nextSibling'],0x0),_0x304837=_0x1bda5b['createRange'](_0x56c4ce,_0x20a259);_0x547d3d['markInsertion'](_0x304837);}else _0x1bda5b['setSelection'](_0x1bda5b['createRange'](_0x383e73['end']));_0x383e73['detach'](),_0x400415['fire']('afterExecute',{'writer':_0x1bda5b});});}),_0x4eb4c5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4eb4c5,'split'),{'priority':'high'}),_0x4eb4c5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x30ea6f,_0x3b074e,_0x417b97)=>{const _0x52f374=_0x417b97['mapper']['markerNameToElements'](_0x3b074e['markerName']);if(_0x52f374){for(const _0x371756 of _0x52f374)_0x371756['hasClass']('ck-suggestion-marker-split')&&(_0x417b97['mapper']['unbindElementFromMarkerName'](_0x371756,_0x3b074e['markerName']),_0x417b97['writer']['remove'](_0x371756));}},{'priority':'high'}),_0x4eb4c5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x56bbf7,_0x3a7ef4,_0x58875b)=>{_0x58875b['options']['showSuggestionHighlights']&&_e(_0x4eb4c5,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x56bbf7,_0x3a7ef4,_0x58875b);},{'priority':'high'});}}class X extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5044f0=this['editor']['plugins']['get']('TrackChangesEditing');_0x5044f0['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5044f0['enableCommand']('findNext'),_0x5044f0['enableCommand']('findPrevious'),_0x5044f0['enableCommand']('replace'),_0x5044f0['enableCommand']('replaceAll');}['handleFindCommand'](_0xf694f1,_0x3a4ff6,_0x30aa83={}){const _0x27b487=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xf694f1(_0x24d45d=>{let _0x4af41f=('string'==typeof _0x3a4ff6?_0x27b487['findByTextCallback'](_0x3a4ff6,_0x30aa83):_0x3a4ff6)(_0x24d45d);Array['isArray'](_0x4af41f)&&(_0x4af41f={'results':_0x4af41f,'searchText':'string'==typeof _0x3a4ff6?_0x3a4ff6:''});const _0x436c7b=_0x4af41f['results']['filter'](_0x91f996=>!0x1===this['_isInDeletionRange'](_0x91f996,_0x24d45d['item']));return{..._0x4af41f,'results':_0x436c7b};},_0x30aa83);}['_isInDeletionRange'](_0x5b773a,_0x5c6d58){const _0x4fd8b3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c6d58,_0x5b773a['start']),this['editor']['model']['createPositionAt'](_0x5c6d58,_0x5b773a['end']));for(const _0x245cee of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4fd8b3['getIntersection'](_0x245cee['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 _0x48688f{['afterInit'](){const _0x126b56=this['editor']['locale'],_0x133bdc=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x102fbf,commandName:_0x3df02a}of ro)this['editor']['plugins']['has'](_0x102fbf)&&(_0x133bdc['enableDefaultAttributesIntegration'](_0x3df02a),_0x133bdc['registerInlineAttribute'](_0x3df02a));_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x126b56,'FORMAT_FONT_SIZE')),_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x126b56,'FORMAT_FONT_FAMILY')),_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x126b56,'FORMAT_FONT_COLOR')),_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x126b56,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f6064=this['editor'],_0x33f918=_0x2f6064['locale'];_0x2f6064['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13c99f=>{const _0x491ba9=_0x33f918['t'];if('formatInline'!=_0x13c99f['type'])return;const {data:_0x93e274}=_0x13c99f;if(null!=_0x93e274){if('fontSize'==_0x93e274['commandName']){const _0x259650=_0x93e274['commandParams'][0x0]['value'];if(_0x259650){const _0x4488a7=_0x491ba9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x31f827=>_0x31f827['model']==_0x259650)['title'])['toLowerCase']();return{'type':'format','content':o(_0x33f918,'*Set\x20font\x20size:*\x20%0',_0x4488a7)};}return{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x93e274['commandName']){const _0x442428=_0x93e274['commandParams'][0x0]['value'];return _0x442428?{'type':'format','content':o(_0x33f918,'*Set\x20font\x20family:*\x20%0',_0x442428)}:{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20family*')};}if('fontColor'==_0x93e274['commandName']){const _0x19bce2=_0x93e274['commandParams'][0x0]['value'];if(_0x19bce2){const _0x3dd95d=_0x387c59(this['editor']['config']['get']('fontColor.colors'))['find'](_0x53110e=>_0x53110e['model']==_0x19bce2);let _0x2f931d=_0x19bce2,_0xfb66c8='';return _0x3dd95d&&(_0x2f931d=_0x3dd95d['label'],_0xfb66c8=_0x491ba9(_0x2f931d)['toLowerCase']()),{'type':'format','content':o(_0x33f918,'*Set\x20font\x20color:*\x20%0',_0xfb66c8)['trim'](),'color':{'value':_0x19bce2,'title':_0xfb66c8||_0x2f931d}};}return{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x93e274['commandName']){const _0xb46de9=_0x93e274['commandParams'][0x0]['value'];if(_0xb46de9){const _0x2a8de9=_0x387c59(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1c08f4=>_0x1c08f4['model']==_0xb46de9);let _0xce31cf=_0xb46de9,_0x56728f='';return _0x2a8de9&&(_0xce31cf=_0x2a8de9['label'],_0x56728f=_0x491ba9(_0xce31cf)['toLowerCase']()),{'type':'format','content':o(_0x33f918,'*Set\x20font\x20background\x20color:*\x20%0',_0x56728f)['trim'](),'color':{'value':_0xb46de9,'title':_0x56728f||_0xce31cf}};}return{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x48688f{['afterInit'](){const _0x240ab5=this['editor'],_0x4d431e=_0x240ab5['plugins']['get']('TrackChangesEditing'),_0x5040d4=_0x240ab5['commands']['get']('copyFormat'),_0x2acd14=_0x240ab5['commands']['get']('pasteFormat');_0x5040d4&&_0x2acd14&&(_0x4d431e['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d431e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2cc320=this['editor'],_0x3aeec0=_0x2cc320['locale'];_0x2cc320['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1975ad=>{if('formatBlock'!=_0x1975ad['type']&&'formatInline'!=_0x1975ad['type'])return;const {data:_0x7cc819}=_0x1975ad;if(_0x7cc819&&'pasteFormat'===_0x7cc819['commandName']){const _0x44b432=[],_0x143736=_0x7cc819['commandParams'][0x0];for(const [_0x2eab01,_0x326d7d]of Object['entries'](_0x143736))_0x44b432['push'](so(_0x2cc320,_0x2eab01,_0x326d7d));return _0x44b432['length']?{'type':'format','content':o(_0x3aeec0,'*Set\x20format\x20to:*\x20%0',_0x44b432['join'](',\x20'))}:{'type':'format','content':o(_0x3aeec0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x16e788,_0xbf6754,_0x4e88d8){const _0x2da339=_0x16e788['locale']['t'],_0x5663aa=_0xbf6754['split'](/(?=[A-Z])/)['join']('\x20'),_0x355c24=_0x2da339(_0x5663aa['charAt'](0x0)['toUpperCase']()+_0x5663aa['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4e88d8)return _0x355c24;if('fontColor'===_0xbf6754||'fontBackgroundColor'===_0xbf6754){const _0x4bc5d8=_0x387c59(_0x16e788['config']['get']('fontColor.colors'))['find'](_0x241472=>_0x241472['model']==_0x4e88d8);return _0x355c24+'\x20('+(_0x4bc5d8?_0x2da339(_0x4bc5d8['label'])['toLowerCase']():_0x4e88d8)+')';}if('fontSize'===_0xbf6754&&isNaN(parseFloat(_0x4e88d8))){const _0x3a7057=_0x16e788['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x16e788['config']['get']('fontSize.options'))['find'](_0x146bc0=>_0x146bc0['model']==_0x4e88d8);return _0x355c24+'\x20('+(_0x3a7057?_0x2da339(_0x3a7057['title'])['toLowerCase']():_0x4e88d8)+')';}return _0x355c24+'\x20('+_0x4e88d8+')';}class tt extends _0x48688f{['_headingOptions'];['afterInit'](){const _0x55ddb9=this['editor'];if(!_0x55ddb9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x55ddb9['config']['get']('heading.options');const _0x3858b5=_0x55ddb9['locale'],_0x54ddd7=_0x55ddb9['plugins']['get']('TrackChangesEditing');_0x54ddd7['enableDefaultAttributesIntegration']('heading');for(const _0x27b4c0 of this['_headingOptions'])'paragraph'!=_0x27b4c0['model']&&_0x54ddd7['descriptionFactory']['registerElementLabel'](_0x27b4c0['model'],_0x5d4561=>{const _0x33843b=this['_getHeadingLevel'](_0x27b4c0['model']);return null!==_0x33843b?_0xbab190(_0x5d4561,_0x33843b):_0x4f67f9(_0x5d4561,_0x27b4c0['title']);});function _0xbab190(_0x31366f,_0x4895ae){return o(_0x3858b5,'ELEMENT_HEADING',[_0x31366f,_0x4895ae]);}function _0x4f67f9(_0x387b6f,_0x2954b8){return o(_0x3858b5,'ELEMENT_HEADING_CUSTOM',[_0x387b6f,_0x2954b8]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25d521=this['editor'],_0x19279e=_0x25d521['locale'];function _0x3127c9(_0xa757f,_0x35e8a2){return o(_0x19279e,'ELEMENT_HEADING_CUSTOM',[_0xa757f,_0x35e8a2]);}_0x25d521['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37a0f1=>{if('formatBlock'!=_0x37a0f1['type'])return;const {data:_0xa249b2}=_0x37a0f1;if(_0xa249b2&&'heading'==_0xa249b2['commandName']){const _0x49755a=_0xa249b2['commandParams'][0x0]['value'],_0x44d400=this['_getHeadingLevel'](_0x49755a);if(null!==_0x44d400)return{'type':'format','content':o(_0x19279e,'*Change\x20to:*\x20%0',(_0x269fe5=0x1,_0x27bbe6=_0x44d400,o(_0x19279e,'ELEMENT_HEADING',[_0x269fe5,_0x27bbe6])))};const _0x9472da=this['_headingOptions']['find'](_0x8ce641=>_0x8ce641['model']===_0x49755a)['title'];return{'type':'format','content':o(_0x19279e,'*Change\x20to:*\x20%0',_0x3127c9(0x1,_0x9472da))};}var _0x269fe5,_0x27bbe6;});}['_getHeadingLevel'](_0x1c2611){const _0xc59e68=_0x1c2611['match'](/^heading(\d+)/);if(_0xc59e68)return _0xc59e68[0x1];const _0x22a6cd=this['_headingOptions']?.['find'](_0x4784f0=>_0x4784f0['model']==_0x1c2611);if(_0x22a6cd&&_0x22a6cd['view']){const _0x493f8e=_0x22a6cd['view'],_0x248c33=(_0x493f8e['name']??_0x493f8e)['match'](/^h(\d+)/);if(_0x248c33)return _0x248c33[0x1];}return null;}}class et extends _0x48688f{['afterInit'](){const _0xc1f702=this['editor'];if(!_0xc1f702['plugins']['has']('HighlightEditing'))return;const _0x2adcd4=_0xc1f702['plugins']['get']('TrackChangesEditing'),_0x55c14d=_0xc1f702['locale'];_0x2adcd4['enableDefaultAttributesIntegration']('highlight'),_0x2adcd4['registerInlineAttribute']('highlight'),_0x2adcd4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x55c14d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2955ea=this['editor'],_0x4d13de=_0x2955ea['locale'];_0x2955ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2593c3=>{if('formatInline'!=_0x2593c3['type'])return;const {data:_0x4f31f5}=_0x2593c3;if(_0x4f31f5&&'highlight'==_0x4f31f5['commandName']){const _0x136028=_0x4d13de['t'],_0x41fc44=_0x4f31f5['commandParams'][0x0]['value'];if(_0x41fc44){const _0x11de93=_0x2955ea['config']['get']('highlight.options')['find'](_0x24557c=>_0x24557c['model']==_0x41fc44),_0x3c73e8=_0x136028(_0x11de93['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d13de,'*Set\x20highlight:*\x20%0',_0x3c73e8),'color':{'value':_0x11de93['color'],'title':_0x11de93['title']}};}return{'type':'format','content':o(_0x4d13de,'*Remove\x20highlight*',o(_0x4d13de,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x48688f{['afterInit'](){const _0x36e344=this['editor'];if(!_0x36e344['plugins']['has']('HorizontalLineEditing'))return;_0x36e344['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3ab0a8=_0x36e344['plugins']['get']('TrackChangesEditing'),_0x4e4876=_0x36e344['locale'];_0x3ab0a8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5ea099=>o(_0x4e4876,'ELEMENT_HORIZONTAL_LINE',_0x5ea099)),_0x36e344['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x293f02,{writer:_0x882dcd,options:_0x317ef2})=>{if(!_0x317ef2['showSuggestionHighlights'])return null;const _0x4381b4=_0x882dcd['createContainerElement']('div'),_0x256029=_0x882dcd['createEmptyElement']('hr');return _0x882dcd['addClass']('ck-horizontal-line',_0x4381b4),_0x882dcd['insert'](_0x882dcd['createPositionAt'](_0x4381b4,0x0),_0x256029),_0x4381b4;},'converterPriority':'high'});}}class st extends _0x48688f{['afterInit'](){const _0x4b6ce7=this['editor'];if(!_0x4b6ce7['plugins']['has']('HtmlEmbed'))return;const _0xc87f9d=_0x4b6ce7['plugins']['get']('TrackChangesEditing'),_0x2f0664=_0x4b6ce7['locale'];_0xc87f9d['descriptionFactory']['registerElementLabel']('rawHtml',_0x283d89=>o(_0x2f0664,'ELEMENT_HTML_EMBED',_0x283d89)),_0xc87f9d['enableDefaultAttributesIntegration']('htmlEmbed'),_0xc87f9d['registerBlockAttribute']('value'),_0xc87f9d['descriptionFactory']['registerDescriptionCallback'](_0x4be4ee=>{if('attribute'!=_0x4be4ee['type'])return;const {data:_0x444a55}=_0x4be4ee;if(_0x444a55&&'value'==_0x444a55['key']&&_0x4be4ee['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4ae72f=o(_0x2f0664,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2f0664,'*Change\x20%0\x20content*',_0x4ae72f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe88e44=this['editor'],_0x366797=_0xe88e44['locale'];_0xe88e44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb5e62f=>{if('formatBlock'!=_0xb5e62f['type'])return;const {data:_0x2922e5}=_0xb5e62f;if(_0x2922e5&&'htmlEmbed'==_0x2922e5['commandName']){const _0x71621e=o(_0x366797,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x366797,'*Change\x20%0\x20content*',_0x71621e)};}});}}class nt extends _0x48688f{['afterInit'](){const _0x38e223=this['editor'];if(!_0x38e223['plugins']['has']('ImageEditing'))return;const _0x1b3a6b=_0x38e223['plugins']['get']('TrackChangesEditing'),_0x315516=_0x38e223['plugins']['get']('ImageUtils'),_0x263d34=_0x38e223['locale'];_0x1b3a6b['enableCommand']('insertImage'),_0x1b3a6b['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a3e63=>o(_0x263d34,'ELEMENT_IMAGE',_0x4a3e63)),_0x1b3a6b['descriptionFactory']['registerElementLabel']('imageInline',_0x143965=>o(_0x263d34,'ELEMENT_INLINE_IMAGE',_0x143965)),_0x1b3a6b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x263d34,'ELEMENT_CAPTION')),_0x38e223['plugins']['has']('ImageUploadEditing')&&_0x1b3a6b['enableCommand']('uploadImage'),_0x38e223['plugins']['has']('ImageBlockEditing')&&_0x38e223['plugins']['has']('ImageInlineEditing')&&(_0x1b3a6b['enableCommand']('imageTypeInline',(_0x9c5a72,_0x2fbd17)=>{const _0x274e01=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']);_0x38e223['model']['change'](()=>{_0x1b3a6b['markBlockFormat'](_0x274e01,{'commandName':'imageTypeInline','commandParams':[_0x2fbd17]},[],'convertBlockImageToInline');});}),_0x1b3a6b['enableCommand']('imageTypeBlock',(_0x55eb4a,_0x28e6dc)=>{_0x38e223['model']['change'](_0x3935ed=>{let _0x1df0e6=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x3b1db7=_0x3935ed['createRangeOn'](_0x1df0e6);const _0x396146=_0x1473f7['fromPosition'](_0x3b1db7['start'],'toPrevious'),_0x2e3146=_0x1473f7['fromPosition'](_0x3b1db7['end'],'toNext');_0x1b3a6b['forceDefaultExecution'](()=>_0x55eb4a(_0x28e6dc)),_0x1df0e6=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x3b1db7=_0x3935ed['createRangeOn'](_0x1df0e6);const _0x2e7250=_0x3935ed['createRange'](_0x396146,_0x2e3146);_0x396146['detach'](),_0x2e3146['detach'](),_0x1b3a6b['markBlockFormat'](_0x1df0e6,{'commandName':'imageTypeInline','commandParams':[_0x28e6dc]},[],'convertInlineImageToBlock'),_0x2e7250['start']['isBefore'](_0x3b1db7['start'])&&_0x1b3a6b['markInsertion'](_0x3935ed['createRange'](_0x2e7250['start'],_0x3b1db7['start']),'convertInlineImageToBlock'),_0x3b1db7['end']['isBefore'](_0x2e7250['end'])&&_0x1b3a6b['markInsertion'](_0x3935ed['createRange'](_0x3b1db7['end'],_0x2e7250['end']),'convertInlineImageToBlock');});}),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1b3a6b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3ba0ee])=>{const _0x2195c2=_0x1b3a6b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x27c201=_0x3ba0ee['start'],_0x45b7a2=_0x3ba0ee['end'];const _0x1746c0=_0x38e223['model']['schema']['getNearestSelectionRange'](_0x27c201,'backward'),_0x58019d=_0x38e223['model']['schema']['getNearestSelectionRange'](_0x45b7a2,'forward');_0x1746c0['isCollapsed']&&(_0x27c201=_0x1746c0['start']),_0x58019d['isCollapsed']&&(_0x45b7a2=_0x58019d['end']),_0x2195c2([_0x38e223['model']['createRange'](_0x27c201,_0x45b7a2)]);}),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1f2582),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1f2582)),_0x38e223['plugins']['has']('ImageCaptionEditing')&&(_0x1b3a6b['enableCommand']('toggleImageCaption',(_0x289783,_0x2d57c5)=>{const _0x4979ca=_0x38e223['plugins']['get']('ImageCaptionUtils');let _0x20f382=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x56765d=_0x4979ca['getCaptionFromImageModelElement'](_0x20f382);_0x38e223['model']['change'](()=>{if(_0x56765d)return void _0x1b3a6b['markDeletion'](_0x38e223['model']['createRangeOn'](_0x56765d));const _0x53168c=_0x315516['isBlockImage'](_0x20f382);_0x289783(_0x2d57c5),_0x20f382=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x56765d=_0x4979ca['getCaptionFromImageModelElement'](_0x20f382),_0x1b3a6b['markInsertion'](_0x38e223['model']['createRangeOn'](_0x56765d),_0x53168c?null:'imageCaption');});}),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1f2582));const _0x1876c1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x452f22(_0x4e0a50,_0x2d5e5f){const _0x535646=_0x1876c1['findIndex'](({type:_0x32752f,subType:_0x5c850e})=>_0x4e0a50['type']==_0x32752f&&_0x4e0a50['subType']==_0x5c850e),_0x39cf12=_0x1876c1['findIndex'](({type:_0xa5fa9d,subType:_0x346d4d})=>_0x2d5e5f['type']==_0xa5fa9d&&_0x2d5e5f['subType']==_0x346d4d);if(_0x535646<0x0||_0x39cf12<0x0)return!0x1;const _0xafd4e9=_0x4e0a50['getFirstRange'](),_0x18ef04=_0x2d5e5f['getFirstRange']();if((0x0==_0x535646||0x1==_0x535646)&&0x2==_0x39cf12&&_0xafd4e9['isIntersecting'](_0x18ef04))return!0x0;if(0x2==_0x535646&&0x3==_0x39cf12){const _0xbd6514=_0x1b3a6b['_findSuggestions'](_0xafd4e9,'insertion')['filter'](({suggestion:_0x244249,meta:_0x4e57db})=>_0x4e57db['isOwn']&&'convertInlineImageToBlock'==_0x244249['subType']);if(_0xbd6514['length']>0x1&&_0x18ef04['end']['isEqual'](_0xafd4e9['start']))return!0x0;if(0x1==_0xbd6514['length']&&(_0xafd4e9['start']['isEqual'](_0x18ef04['end'])||_0xafd4e9['end']['isEqual'](_0x18ef04['start'])))return!0x0;}if(0x3==_0x535646&&0x3==_0x39cf12&&_0xafd4e9['start']['isBefore'](_0x18ef04['start'])){const _0x5ae9c1=_0xafd4e9['end']['nodeAfter'],_0x59b631=_0x18ef04['start']['nodeBefore'];return _0x315516['isBlockImage'](_0x5ae9c1)&&_0x5ae9c1===_0x59b631;}return!0x1;}function _0x1f2582(_0x360c99,_0x2aaa66){return _0x452f22(_0x360c99,_0x2aaa66)?[_0x360c99,_0x2aaa66]:_0x452f22(_0x2aaa66,_0x360c99)?[_0x2aaa66,_0x360c99]:null;}_0x38e223['plugins']['has']('ImageResize')&&(_0x1b3a6b['enableDefaultAttributesIntegration']('resizeImage'),_0x1b3a6b['registerBlockAttribute']('resizedWidth'),_0x1b3a6b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x263d34,'FORMAT_IMAGE_SIZE'))),_0x38e223['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1b3a6b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1b3a6b['registerBlockAttribute']('alt')),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x5cd58a=>{if(!!_0x1876c1['find'](({type:_0x2c0845,subType:_0x4e63c0})=>_0x5cd58a['type']==_0x2c0845&&_0x5cd58a['subType']==_0x4e63c0))return _0x5cd58a['previous']?{}:void 0x0;}),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x231983=>{if('insertion'==_0x231983['type']||'deletion'==_0x231983['type']){const _0x31cc4f=_0x231983['getContainedElement']();if(_0x31cc4f&&_0x31cc4f['is']('element','caption'))return{'type':'insertion'==_0x231983['type']?'addObject':'removeObject','element':_0x31cc4f,'quantity':0x1};}}),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x2d15c4=>'formatBlock'==_0x2d15c4['type']&&'convertInlineImageToBlock'==_0x2d15c4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2d15c4['type']&&'convertBlockImageToInline'==_0x2d15c4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x27e791=>{if('attribute'!=_0x27e791['type'])return;const {data:_0x43afc4}=_0x27e791;if(!_0x43afc4||'alt'!=_0x43afc4['key'])return;const _0x5d7fd8=_0x43afc4['newValue'];return _0x5d7fd8?{'type':'format','content':o(_0x263d34,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d7fd8+'\x22')}:{'type':'format','content':o(_0x263d34,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22ee1d=this['editor'],_0x131e99=_0x22ee1d['locale'];_0x22ee1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492a39=>{if('formatBlock'!=_0x492a39['type']&&'formatInline'!=_0x492a39['type'])return;const {data:_0x3431bf}=_0x492a39;if(_0x3431bf){if('imageTextAlternative'==_0x3431bf['commandName']){const _0x8d5145=_0x3431bf['commandParams'][0x0]['newValue'];return _0x8d5145?{'type':'format','content':o(_0x131e99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x8d5145+'\x22')}:{'type':'format','content':o(_0x131e99,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3431bf['commandName']){const _0x5012bc=_0x3431bf['commandParams'][0x0]['width'];return _0x5012bc?{'type':'format','content':o(_0x131e99,'*Set\x20image\x20width:*\x20%0',_0x5012bc)}:{'type':'format','content':o(_0x131e99,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x38876f=this['editor']['locale'],_0xbe4dc6=this['editor']['plugins']['get']('TrackChangesEditing');_0xbe4dc6['enableDefaultAttributesIntegration']('replaceImageSource'),_0xbe4dc6['registerBlockAttribute']('src'),_0xbe4dc6['descriptionFactory']['registerDescriptionCallback'](_0x68ab4a=>{if('attribute'!=_0x68ab4a['type'])return;const {data:_0xcf3939}=_0x68ab4a;return _0xcf3939&&'src'==_0xcf3939['key']?_0xcf3939['newValue']&&_0xcf3939['oldValue']?{'type':'format','content':o(_0x38876f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f19e0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f19e0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f19e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f19e0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f19e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24452a=this['editor'],_0x385f53=_0x24452a['locale'];_0x24452a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a80b=>{if('formatBlock'!=_0x26a80b['type']&&'formatInline'!=_0x26a80b['type'])return;const {data:_0x1cd667}=_0x26a80b;if(!_0x1cd667||'replaceImageSource'!=_0x1cd667['commandName'])return;return{'type':'format','content':o(_0x385f53,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x48688f{['afterInit'](){const _0x139261=this['editor'];if(!_0x139261['plugins']['has']('ImageStyleEditing'))return;const _0x2bbe39=_0x139261['plugins']['get']('TrackChangesEditing'),_0x54210d=_0x139261['plugins']['get']('ImageUtils'),_0x269215={};_0x2bbe39['enableCommand']('imageStyle',(_0x3f5c07,_0x39e208)=>{const _0x2891c0=_0x139261['plugins']['get']('Users')['me'],_0x22ac25=_0x139261['commands']['get']('imageStyle');let _0x3475d1=_0x54210d['getClosestSelectedImageElement'](_0x139261['model']['document']['selection']),_0x19113d=_0x139261['model']['createRangeOn'](_0x3475d1),_0x242497=_0x22ac25['value'];if(_0x242497==_0x39e208['value'])return;const _0x501727={'commandName':'imageStyle','commandParams':[_0x39e208],'formatGroupId':_0x2120b6()};_0x139261['model']['change'](()=>{if(_0x2bbe39['getSuggestions']()['filter'](_0x24ded1=>_0x24ded1['isInContent']&&_0x2891c0==_0x24ded1['author']&&('formatBlock'==_0x24ded1['type']||'formatInline'==_0x24ded1['type'])&&('imageStylePreApply'==_0x24ded1['subType']||'imageStylePostApply'==_0x24ded1['subType'])&&_0x24ded1['getFirstRange']()['isEqual'](_0x19113d))['forEach'](_0x3e1e87=>_0x2bbe39['discardSuggestion'](_0x3e1e87['head'])),_0x3475d1=_0x54210d['getClosestSelectedImageElement'](_0x139261['model']['document']['selection']),_0x19113d=_0x139261['model']['createRangeOn'](_0x3475d1),_0x22ac25['refresh'](),_0x139261['commands']['get']('imageTypeInline')['refresh'](),_0x139261['commands']['get']('imageTypeBlock')['refresh'](),_0x242497=_0x22ac25['value'],_0x242497!=_0x39e208['value'])return _0x54210d['isInlineImage'](_0x3475d1)&&_0x22ac25['shouldConvertImageType'](_0x39e208['value'],_0x3475d1)?(_0x3f5c07({..._0x39e208,'setImageSizes':!0x1}),_0x3475d1=_0x54210d['getClosestSelectedImageElement'](_0x139261['model']['document']['selection']),void _0x2bbe39['markBlockFormat'](_0x3475d1,{..._0x501727,'commandReversedParams':[{'value':_0x242497||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x54210d['isBlockImage'](_0x3475d1)?_0x2bbe39['markBlockFormat'](_0x3475d1,_0x501727,[],'imageStylePostApply'):_0x2bbe39['markInlineFormat'](_0x19113d,_0x501727,'imageStylePostApply'));});});for(const _0x42f79e of _0x139261['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x269215[_0x42f79e['name']]=_0x42f79e['title']['toLowerCase']();_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x210094])=>{_0x54210d['setImageNaturalSizeAttributes'](_0x210094['getContainedElement']());}),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1c9593,_0x5d221a)=>{_0x2bbe39['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1c9593,{'commandName':_0x5d221a['commandName'],'commandParams':_0x5d221a['commandReversedParams']});}),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x292f03,_0x1eaeef){if(_0x9d3805(_0x292f03,_0x1eaeef))return[_0x292f03,_0x1eaeef];if(_0x9d3805(_0x1eaeef,_0x292f03))return[_0x1eaeef,_0x292f03];return null;});const _0x1dbbb7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x9d3805(_0x3e1630,_0x4986b1){const _0x485598=_0x1dbbb7['findIndex'](({type:_0x3a9aaa,subType:_0x3ca983})=>_0x3e1630['type']==_0x3a9aaa&&_0x3e1630['subType']==_0x3ca983),_0x2170df=_0x1dbbb7['findIndex'](({type:_0x202766,subType:_0x2b43ed})=>_0x4986b1['type']==_0x202766&&_0x4986b1['subType']==_0x2b43ed);if(_0x485598<0x0||_0x2170df<0x0)return!0x1;const _0x2a93f6=_0x3e1630['getFirstRange'](),_0x24efac=_0x4986b1['getFirstRange']();if((0x0==_0x485598||0x1==_0x485598)&&0x2==_0x2170df&&_0x2a93f6['isIntersecting'](_0x24efac))return!0x0;if(0x2==_0x485598&&0x3==_0x2170df){const _0xb47d8a=_0x2bbe39['_findSuggestions'](_0x2a93f6,'insertion')['filter'](({suggestion:_0x332595,meta:_0x3eff27})=>_0x3eff27['isOwn']&&'convertInlineImageToBlock'==_0x332595['subType']);if(_0xb47d8a['length']>0x1&&_0x24efac['end']['isEqual'](_0x2a93f6['start']))return!0x0;if(0x1==_0xb47d8a['length']&&(_0x2a93f6['start']['isEqual'](_0x24efac['end'])||_0x2a93f6['end']['isEqual'](_0x24efac['start'])))return!0x0;}if(0x3==_0x485598&&0x3==_0x2170df&&_0x2a93f6['start']['isBefore'](_0x24efac['start'])){const _0x1bd917=_0x2a93f6['end']['nodeAfter'],_0x4f114b=_0x24efac['start']['nodeBefore'];return _0x54210d['isBlockImage'](_0x1bd917)&&_0x1bd917===_0x4f114b;}return!0x1;}_0x139261['model']['document']['registerPostFixer'](()=>{let _0x44631c=!0x1;const _0x3004bb=Array['from'](_0x139261['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f7514,data:_0xd60985}of _0x3004bb){const {group:_0x30907d,type:_0x5c356e,subType:_0x96364b,id:_0x52e9dc}=_0x2bbe39['_splitMarkerName'](_0x1f7514);if('suggestion'==_0x30907d&&_0x2bbe39['hasSuggestion'](_0x52e9dc)){if('formatBlock'==_0x5c356e&&('imageStylePreApply'==_0x96364b||'imageStylePostApply'==_0x96364b)){const _0x1d109b=_0x2bbe39['getSuggestion'](_0x52e9dc);if(_0xd60985['newRange']){const _0x2b4caf=_0x1d109b['getFirstRange']()['getContainedElement']();if(_0x54210d['isBlockImage'](_0x2b4caf))continue;_0x2bbe39['discardSuggestion'](_0x1d109b),_0x44631c=!0x0;}}if('insertion'==_0x5c356e&&'imageCaption'==_0x96364b&&!_0xd60985['newRange']){const _0x15d9b6=_0x2bbe39['getSuggestion'](_0x52e9dc);_0x15d9b6['next']&&_0x15d9b6['next']['isInContent']&&(_0x2bbe39['discardSuggestion'](_0x15d9b6['next']),_0x44631c=!0x0);}}}return _0x44631c;}),this['_registerLegacyDescription'](_0x269215);}['_registerLegacyDescription'](_0x3d3517){const _0x37d35d=this['editor'],_0x244914=_0x37d35d['locale'];_0x37d35d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32a382=>{if('formatBlock'!=_0x32a382['type']&&'formatInline'!=_0x32a382['type'])return;const {data:_0x572019}=_0x32a382;if(!_0x572019||'imageStyle'!=_0x572019['commandName'])return;const _0x3377ab=_0x572019['commandParams'][0x0]['value'];return _0x2e9c17('side'===_0x3377ab?o(_0x244914,'FORMAT_SIDE_IMAGE'):_0x3d3517[_0x3377ab]||_0x3377ab);function _0x2e9c17(_0x9187aa){return{'type':'format','content':o(_0x244914,'*Format:*\x20%0',_0x9187aa)};}});}}class at extends _0x48688f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4a23c7){super(_0x4a23c7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5e884f=this['editor'],_0x21ada9=_0x5e884f['commands']['get']('importWord'),_0x4b3afd=_0x5e884f['commands']['get']('trackChanges');_0x21ada9&&(_0x21ada9['on']('execute',(_0xa84b0b,[,_0x252bb3])=>{this['_trackChangesValueDuringImport']=_0x4b3afd['value'],_0x252bb3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x21ada9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x21ada9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4b3afd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5e884f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5af11e,_0x1d0a1e){const {suggestions:_0x3bdbba}=_0x1d0a1e,_0x22eee6=this['editor']['commands']['get']('trackChanges'),_0x431a42=_0x22eee6['value'];this['_trackChangesValueDuringImport']!==_0x431a42&&(_0x22eee6['execute'](),this['_trackChangesExecuted']=!0x0),_0x3bdbba&&_0x3bdbba['forEach'](({id:_0x1b8b20,type:_0x145e18,author:_0x3ce4f2,created_at:_0xbe621c})=>{const _0x417301={'id':_0x1b8b20,'type':_0x145e18,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3ce4f2,'createdAt':_0xbe621c?new Date(_0xbe621c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x417301);});}}class ct extends _0x48688f{['afterInit'](){const _0x3c0637=this['editor'],_0x2d8da7=_0x3c0637['plugins']['get']('TrackChangesEditing');if(_0x3c0637['plugins']['has']('IndentEditing')&&(_0x2d8da7['enableCommand']('indent'),_0x2d8da7['enableCommand']('outdent')),_0x3c0637['plugins']['has']('IndentBlock')){for(const _0x13e6a4 of['indentBlock','outdentBlock'])_0x2d8da7['enableDefaultAttributesIntegration'](_0x13e6a4);}const _0x540636=_0x3c0637['locale'];_0x2d8da7['registerBlockAttribute']('blockIndent'),_0x2d8da7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x540636,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a198c=this['editor'],_0x518f61=_0x2a198c['locale'],_0x182a8b=_0x2a198c['plugins']['get']('TrackChangesEditing');_0x182a8b['descriptionFactory']['registerDescriptionCallback'](_0x191b08=>{if('formatBlock'!=_0x191b08['type'])return;const {data:_0x4ad976}=_0x191b08;if(!_0x4ad976)return;if('indentBlock'!=_0x4ad976['commandName']&&'outdentBlock'!=_0x4ad976['commandName'])return;const _0x38a8eb=_0x191b08['getItems']()[0x0],_0x30b584=_0x182a8b['descriptionFactory']['getItemLabel'](_0x38a8eb);return'indentBlock'==_0x4ad976['commandName']?{'type':'format','content':o(_0x518f61,'*Indent:*\x20%0',_0x30b584)}:'outdentBlock'==_0x4ad976['commandName']?{'type':'format','content':o(_0x518f61,'*Outdent:*\x20%0',_0x30b584)}:void 0x0;});}}class ut extends _0x48688f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x48688f{['afterInit'](){const _0x2ae116=this['editor'];if(!_0x2ae116['plugins']['has']('LinkEditing'))return;const _0x69f1ea=_0x2ae116['plugins']['get']('TrackChangesEditing'),_0x2a37d6=_0x2ae116['commands']['get']('link');_0x69f1ea['enableDefaultAttributesIntegration']('link'),_0x69f1ea['enableDefaultAttributesIntegration']('unlink'),_0x69f1ea['registerInlineAttribute']('linkHref');for(const _0x5437df of _0x2a37d6['manualDecorators'])_0x69f1ea['registerInlineAttribute'](_0x5437df['id']),_0x69f1ea['descriptionFactory']['registerAttributeLabel'](_0x5437df['id'],'link\x20('+_0x5437df['label']['toLowerCase']()+')');_0x69f1ea['descriptionFactory']['registerDescriptionCallback'](_0x2001df=>{if('attribute'!=_0x2001df['type'])return;const {data:_0x37606b}=_0x2001df;if(!_0x37606b||'linkHref'!=_0x37606b['key'])return;const _0xcf444c=_0x37606b['newValue'],_0x26e6f0=_0x2ae116['locale'];return{'type':'format','content':null==_0xcf444c?o(_0x26e6f0,'*Remove\x20link*'):o(_0x26e6f0,'*Set\x20link:*\x20%0','\x22'+_0xcf444c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b779b=this['editor'],_0x108bca=_0x2b779b['locale'];_0x2b779b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27bee7=>{if('formatInline'!=_0x27bee7['type'])return;const {data:_0x5793c9}=_0x27bee7;if(_0x5793c9){if('link'==_0x5793c9['commandName']){const _0x267a3d=_0x5793c9['commandParams'][0x0];return{'type':'format','content':o(_0x108bca,'*Set\x20link:*\x20%0','\x22'+_0x267a3d+'\x22')};}return'unlink'==_0x5793c9['commandName']?{'type':'format','content':o(_0x108bca,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x48688f{['afterInit'](){const _0x58a47b=this['editor'],_0x78bb99=_0x58a47b['locale'];if(!_0x58a47b['plugins']['has']('LegacyListEditing'))return;const _0x41a626=_0x58a47b['plugins']['get']('TrackChangesEditing'),_0x57755d=_0x58a47b['plugins']['has']('LegacyTodoListEditing');function _0x12caf5(_0x5451ea){return()=>{const _0x42b399=_0x58a47b['model']['document']['selection'],_0x364b8b=_0x58a47b['commands']['get'](_0x5451ea);if(_0x364b8b['value'])return void _0x58a47b['execute']('paragraph',{});const _0x2e6da1=_0x5451ea['slice'](0x0,-0x4),_0x1a7235=function(_0xd8d4a9,_0x516311,_0xab8dc5){let _0x308b41=Array['from'](_0xd8d4a9)['filter'](_0x213636=>function(_0x169d7f,_0x1c3356){return _0x1c3356['checkChild'](_0x169d7f['parent'],'listItem')&&!_0x1c3356['isObject'](_0x169d7f);}(_0x213636,_0xab8dc5));_0x308b41=_0x308b41['filter'](_0x4f7676=>!_0x4f7676['is']('element','listItem')||_0x4f7676['getAttribute']('listType')!=_0x516311);const _0x12a051=new Set();for(const _0x47b466 of _0x308b41)_0x47b466['is']('element','listItem')?_0x12a051['add'](fe(_0x47b466)):_0x12a051['add'](_0x47b466);return Array['from'](_0x12a051);}(_0x42b399['getSelectedBlocks'](),_0x2e6da1,_0x58a47b['model']['schema']);_0x58a47b['model']['change'](()=>{for(const _0x503b2e of _0x1a7235)_0x41a626['markBlockFormat'](_0x503b2e,{'commandName':_0x5451ea,'commandParams':[{'forceValue':!_0x364b8b['value']}],'formatGroupId':'blockName'},ue(_0x503b2e));});};}function _0x58df47(_0x43bd9f){return()=>{const _0x2a7ac9=function(_0x865f8e){let _0x159e7f=Array['from'](_0x865f8e);const _0x10ed19=_0x159e7f['findIndex'](_0x106a36=>'listItem'!=_0x106a36['name']);return _0x10ed19>-0x1&&(_0x159e7f=_0x159e7f['slice'](0x0,_0x10ed19)),_0x159e7f;}(_0x58a47b['model']['document']['selection']['getSelectedBlocks']()),_0x29bb50=_0x58a47b['model']['createRange'](_0x58a47b['model']['createPositionAt'](_0x2a7ac9[0x0],'before'),_0x58a47b['model']['createPositionAt'](_0x2a7ac9[_0x2a7ac9['length']-0x1],'end'));_0x58a47b['model']['change'](()=>{_0x41a626['markBlockFormat'](_0x29bb50,{'commandName':_0x43bd9f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x254b30){const _0xfd6e3d=new Set();for(const _0x52f83d of _0x254b30){let _0x1832cf=_0x52f83d['nextSibling'];for(;_0x1832cf&&_0x1832cf['getAttribute']('listIndent')>_0x52f83d['getAttribute']('listIndent');)_0xfd6e3d['add'](_0x1832cf),_0x1832cf=_0x1832cf['nextSibling'];}return Array['from'](_0xfd6e3d);}(_0x2a7ac9));});};}_0x41a626['enableCommand']('numberedList',_0x12caf5('numberedList')),_0x41a626['enableCommand']('bulletedList',_0x12caf5('bulletedList')),_0x57755d&&_0x41a626['enableCommand']('todoList',_0x12caf5('todoList')),_0x41a626['enableCommand']('indentList',_0x58df47('indentList')),_0x41a626['enableCommand']('outdentList',_0x58df47('outdentList')),_0x57755d&&_0x41a626['enableCommand']('checkTodoList',()=>{const _0x5a6bc3=_0x58a47b['commands']['get']('checkTodoList'),_0x19a3c2=Array['from'](_0x5a6bc3['_selectedElements']);_0x19a3c2['filter'](_0x16b527=>_0x16b527['getAttribute']('todoListChecked')!=_0x5a6bc3['value']),_0x58a47b['model']['change'](()=>{for(const _0x8dda3d of _0x19a3c2)_0x41a626['markBlockFormat'](_0x8dda3d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5a6bc3['value']}]});});}),_0x41a626['descriptionFactory']['registerElementLabel']('listItem',_0x44934f=>o(_0x78bb99,'ELEMENT_LIST_ITEM',_0x44934f)),_0x41a626['descriptionFactory']['registerDescriptionCallback'](_0x19fac2=>{if('formatBlock'!=_0x19fac2['type']&&'formatInline'!=_0x19fac2['type'])return;const {data:_0x1b2a8c}=_0x19fac2;if(_0x1b2a8c){if('numberedList'==_0x1b2a8c['commandName']||'bulletedList'==_0x1b2a8c['commandName']||'todoList'==_0x1b2a8c['commandName'])switch(_0x1b2a8c['commandName']['replace']('List','')){case'bulleted':return _0x4ef990(o(_0x78bb99,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ef990(o(_0x78bb99,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ef990(o(_0x78bb99,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1b2a8c['commandName'])return{'type':'format','content':o(_0x78bb99,'*Indent:*\x20%0',o(_0x78bb99,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1b2a8c['commandName'])return{'type':'format','content':o(_0x78bb99,'*Outdent:*\x20%0',o(_0x78bb99,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1b2a8c['commandName'])return _0x1b2a8c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x78bb99,'*Check\x20item*')}:{'type':'format','content':o(_0x78bb99,'*Uncheck\x20item*')};}function _0x4ef990(_0x54b58b){return{'type':'format','content':o(_0x78bb99,'*Change\x20to:*\x20%0',_0x54b58b)};}});}}function fe(_0x4ae6f1){const _0x528334=_0x4ae6f1['getAttribute']('listIndent');if(0x0==_0x528334)return _0x4ae6f1;let _0x253bce=_0x4ae6f1;for(;_0x4ae6f1['previousSibling']&&_0x4ae6f1['previousSibling']['is']('element','listItem');){const _0x4d5100=_0x4ae6f1['previousSibling']['getAttribute']('listIndent');if(_0x4d5100==_0x528334)_0x253bce=_0x4ae6f1['previousSibling'];else{if(_0x4d5100<_0x528334)break;}_0x4ae6f1=_0x4ae6f1['previousSibling'];}return _0x253bce;}function ue(_0x5dea2b){const _0x3fa65b=[];if(_0x5dea2b['is']('element','listItem')&&_0x5dea2b['getAttribute']('listIndent')>0x0){let _0x1d15bf=_0x5dea2b['nextSibling'];for(;_0x1d15bf&&'listItem'==_0x1d15bf['name']&&_0x1d15bf['getAttribute']('listIndent')==_0x5dea2b['getAttribute']('listIndent');)_0x3fa65b['push'](_0x1d15bf),_0x1d15bf=_0x1d15bf['nextSibling'];}return _0x3fa65b;}class W extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1e9b6e=this['editor']['config']['get']('list.properties'),_0xf1d3a6=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e9b6e['styles']&&_0xf1d3a6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1e9b6e['reversed']&&_0xf1d3a6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1e9b6e['startIndex']&&_0xf1d3a6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xf1d3a6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x546e5f,_0x57e7c0={}){const _0x37cf45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c3528=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x37cf45['markMultiRangeBlockFormat'](_0x4c3528,{'commandName':'listStyle','commandParams':[{'type':_0x57e7c0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4b64a1,_0x22cc84={}){const _0xd89488=this['editor']['plugins']['get']('TrackChangesEditing'),_0x177086=this['_getSuggestionBlocks'](_0x2fa743=>_0x2fa743['is']('element','listItem')&&'numbered'===_0x2fa743['getAttribute']('listType'));if(_0x177086['length']<0x1)return;const _0x5d98a2=_0x177086['map'](_0x40b4a4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40b4a4,'before'),this['editor']['model']['createPositionAt'](_0x40b4a4,0x0)));this['editor']['model']['change'](()=>{_0xd89488['markMultiRangeBlockFormat'](_0x5d98a2,{'commandName':'listReversed','commandParams':[{'reversed':_0x22cc84['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x27e03f,_0x401d74={}){const _0x1b41d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a3b69=this['_getSuggestionBlocks'](_0x42ac17=>_0x42ac17['is']('element','listItem')&&'numbered'===_0x42ac17['getAttribute']('listType'));if(_0x2a3b69['length']<0x1)return;const _0x5e1296=_0x2a3b69['map'](_0x45ecbe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x45ecbe,'before'),this['editor']['model']['createPositionAt'](_0x45ecbe,0x0)));this['editor']['model']['change'](()=>{_0x1b41d8['markMultiRangeBlockFormat'](_0x5e1296,{'commandName':'listStart','commandParams':[{'startIndex':_0x401d74['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x7e6d4a){if('formatBlock'!=_0x7e6d4a['type']&&'formatInline'!=_0x7e6d4a['type'])return;const _0x4a3a32=this['editor']['locale'],{data:_0xea1cd2}=_0x7e6d4a;if(!_0xea1cd2)return;let _0x18e110,_0x45b0a5;switch(_0xea1cd2['commandName']){case'listStyle':_0x18e110='*Change\x20to:*\x20%0',_0x45b0a5={'type':'format','content':o(_0x4a3a32,_0x18e110,o(_0x4a3a32,this['_getTranslationKeyForListStyle'](_0xea1cd2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18e110=_0xea1cd2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45b0a5={'type':'format','content':o(_0x4a3a32,_0x18e110)};break;case'listStart':_0x18e110='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45b0a5={'type':'format','content':o(_0x4a3a32,_0x18e110,_0xea1cd2['commandParams'][0x0]['startIndex'])};}return _0x45b0a5;}['_getSuggestionBlocksForListStyle'](){const _0x33094c=this['editor']['plugins']['get']('LegacyListUtils');let _0x431a11=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x431a11[0x0]?.['is']('element','listItem')&&_0x431a11['unshift'](..._0x33094c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x431a11[_0x431a11['length']-0x1]?.['is']('element','listItem')&&_0x431a11['push'](..._0x33094c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x431a11=[...new Set(_0x431a11)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x431a11=_0x431a11['filter'](_0x5eface=>_0x5eface['is']('element','listItem'))),_0x431a11;}['_getSuggestionBlocks'](_0x4e0285){const _0x4fceb9=this['editor']['plugins']['get']('LegacyListUtils');let _0x1cc6b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4e0285)['map'](_0xb1bf6d=>{const _0x1e7587=this['editor']['model']['createPositionAt'](_0xb1bf6d,0x0);return[..._0x4fceb9['getSiblingNodes'](_0x1e7587,'backward'),..._0x4fceb9['getSiblingNodes'](_0x1e7587,'forward')];})['flat']();return _0x1cc6b4=[...new Set(_0x1cc6b4)],_0x1cc6b4;}['_getTranslationKeyForListStyle'](_0x581719){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x581719)||'default')['toUpperCase']()+'_LIST_'+_0x581719['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x48688f{['afterInit'](){const _0x2dcdc7=this['editor'];if(!_0x2dcdc7['plugins']['has']('MediaEmbedEditing'))return;const _0x23225d=_0x2dcdc7['plugins']['get']('TrackChangesEditing'),_0x2df11f=_0x2dcdc7['locale'];_0x23225d['enableCommand']('mediaEmbed'),_0x23225d['descriptionFactory']['registerElementLabel']('media',_0x407319=>o(_0x2df11f,'ELEMENT_MEDIA',_0x407319)),_0x2dcdc7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xd29da0,{writer:_0xb30072,options:_0x3c9e29})=>{if(_0x3c9e29['showSuggestionHighlights'])return _0xb30072['createEmptyElement']('div');},'converterPriority':'high'}),_0x2dcdc7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x193154,_0x460812,_0x54fe9c)=>{_0x54fe9c['options']['showSuggestionHighlights']&&_0x193154['stop']();},{'priority':'high'});}}class mt extends _0x48688f{['afterInit'](){const _0x2cd0ce=this['editor'];_0x2cd0ce['plugins']['has']('MentionEditing')&&_0x2cd0ce['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x48688f{['afterInit'](){const _0x37a9e8=this['editor'];if(!_0x37a9e8['commands']['get']('insertMergeField'))return;_0x37a9e8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x28e645=_0x37a9e8['plugins']['get']('TrackChangesEditing'),_0x4a9c96=_0x37a9e8['locale'];_0x28e645['descriptionFactory']['registerElementLabel']('mergeField',_0x452c8e=>o(_0x4a9c96,'ELEMENT_MERGE_FIELD',_0x452c8e)),_0x28e645['descriptionFactory']['registerDescriptionCallback'](_0x295eb9=>{if('insertion'!=_0x295eb9['type']&&'deletion'!=_0x295eb9['type'])return;const _0x310011=_0x295eb9['getContainedElement']();if(null==_0x310011)return;if(!_0x310011['is']('element','mergeField'))return;const _0x403ab9=_0x37a9e8['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x310011['getAttribute']('id'));return'insertion'==_0x295eb9['type']?{'type':'insertion','content':o(_0x4a9c96,'*Insert:*\x20%0','\x22'+_0x403ab9+'\x22\x20'+o(_0x4a9c96,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4a9c96,'*Remove:*\x20%0','\x22'+_0x403ab9+'\x22\x20'+o(_0x4a9c96,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x48688f{['afterInit'](){const _0x5abb82=this['editor'],_0x50fe52=_0x5abb82['plugins']['get']('TrackChangesEditing');_0x5abb82['plugins']['has']('MultiLevelList')&&(_0x50fe52['enableDefaultAttributesIntegration']('multiLevelList'),_0x50fe52['registerBlockAttribute']('listMarkerStyle'),_0x50fe52['descriptionFactory']['registerDescriptionCallback'](_0x66d44=>this['handleDescriptions'](_0x66d44)));}['handleDescriptions'](_0x2ba1f5){const _0x5339cd=this['editor']['locale'],{data:_0x3fa58b}=_0x2ba1f5,_0x16ca3c={'type':'format','content':''};if(_0x3fa58b&&'listMarkerStyle'==_0x3fa58b['key']){if(!_0x3fa58b['oldValue'])return{'type':'format','content':o(_0x5339cd,'*Set\x20format:*\x20%0',o(_0x5339cd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa58b['newValue']+')'};if(!_0x3fa58b['newValue']){let _0x4583b3=_0x2ba1f5['head'];for(;_0x4583b3;){if(_0x4583b3['data']&&'listType'==_0x4583b3['data']['key']&&_0x4583b3['data']['newValue'])return _0x16ca3c;_0x4583b3=_0x4583b3['next'];}return{'type':'format','content':o(_0x5339cd,'*Remove\x20format:*\x20%0',o(_0x5339cd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa58b['oldValue']+')'};}}}}class kt extends _0x48688f{['afterInit'](){const _0x6f173d=this['editor'];if(!_0x6f173d['plugins']['has']('PageBreakEditing'))return;_0x6f173d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4113c8=_0x6f173d['plugins']['get']('TrackChangesEditing'),_0x42c4cf=_0x6f173d['locale'];_0x4113c8['descriptionFactory']['registerElementLabel']('pageBreak',_0x20dcff=>o(_0x42c4cf,'ELEMENT_PAGE_BREAK',_0x20dcff));}}class bt extends _0x48688f{['afterInit'](){const _0x5e3d32=this['editor'];if(!_0x5e3d32['plugins']['has']('Paragraph'))return;const _0x4134e1=_0x5e3d32['locale'],_0x13b9e9=_0x5e3d32['plugins']['get']('TrackChangesEditing');_0x13b9e9['descriptionFactory']['registerElementLabel']('paragraph',_0x3d48dc=>o(_0x4134e1,'ELEMENT_PARAGRAPH',_0x3d48dc)),_0x13b9e9['enableDefaultAttributesIntegration']('paragraph'),_0x13b9e9['enableCommand']('insertParagraph'),_0x5e3d32['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5e3d32),{'priority':'highest'}),_0x5e3d32['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4abfea,_0x3cd4a0,_0x21695c)=>{_0x21695c['options']['showSuggestionHighlights']&&nr(_0x5e3d32,{'showActiveMarker':!0x1})(_0x4abfea,_0x3cd4a0,_0x21695c);},{'priority':'highest'});const _0x375362=_0x13b9e9['descriptionFactory'];_0x375362['registerDescriptionCallback'](_0x312b9f=>{if('insertion'!==_0x312b9f['type'])return;const {start:_0xa351,end:_0x5227a3}=_0x312b9f['getFirstRange']();if(!_0xa351['isTouching'](_0x5227a3)||!_0xa351['nodeAfter'])return;const _0x29fc5c=_0x5e3d32['model']['schema'],_0x1c8775=_0xa351['nodeAfter'];return _0x29fc5c['isBlock'](_0x1c8775)&&!_0x29fc5c['isLimit'](_0x1c8775)&&_0x29fc5c['checkChild'](_0x1c8775,'$text')?{'type':'insertion','content':o(_0x4134e1,'*Insert:*\x20%0',_0x375362['getItemLabel'](_0x1c8775,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c4987=this['editor'],_0x158d06=_0x5c4987['locale'];_0x5c4987['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d7f0d=>{if('formatBlock'!=_0x1d7f0d['type'])return;const {data:_0x24a050}=_0x1d7f0d;return _0x24a050&&'paragraph'==_0x24a050['commandName']?{'type':'format','content':o(_0x158d06,'*Change\x20to:*\x20%0',o(_0x158d06,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x7a059c,{showActiveMarker:_0x237f0b=!0x0}={}){return(_0x1c8212,_0x31e2fd,_0x554d77)=>{const _0x4e4b0a=_0x7a059c['plugins']['get']('TrackChangesEditing'),_0x1bd20b=_0x31e2fd['markerRange']['start'],_0x5e3e42=_0x31e2fd['markerRange']['end'],_0x560870=_0x7a059c['model']['schema'];if(!_0x1bd20b['isTouching'](_0x5e3e42)||!_0x1bd20b['nodeAfter'])return;const _0x23cda9=_0x1bd20b['nodeAfter'];if(_0x560870['isBlock'](_0x23cda9)&&!_0x560870['isLimit'](_0x23cda9)&&_0x560870['checkChild'](_0x23cda9,'$text')){if(!_0x554d77['consumable']['consume'](_0x31e2fd['markerRange'],_0x1c8212['name']))return;const {authorId:_0x28fdca}=_0x4e4b0a['_splitMarkerName'](_0x31e2fd['markerName']),_0x106066=_0x554d77['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x28fdca}),_0x5e2e6f=_0x554d77['mapper']['toViewPosition'](_0x5e3e42);_0x237f0b&&_0x4e4b0a['activeMarkers']['includes'](_0x31e2fd['markerName'])&&_0x554d77['writer']['addClass']('ck-suggestion-marker--active',_0x106066),_0x554d77['writer']['insert'](_0x5e2e6f,_0x106066),_0x554d77['mapper']['bindElementToMarker'](_0x106066,_0x31e2fd['markerName']);}};}class wt extends _0x48688f{['afterInit'](){const _0x56e46c=this['editor'];if(!_0x56e46c['plugins']['has']('RemoveFormatEditing'))return;_0x56e46c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5698bb=this['editor'];_0x5698bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d75ba=>{if('formatBlock'!=_0x4d75ba['type']&&'formatInline'!=_0x4d75ba['type'])return;const {data:_0x117853}=_0x4d75ba;return _0x117853&&'removeFormat'==_0x117853['commandName']?{'type':'format','content':o(_0x5698bb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x48688f{['afterInit'](){const _0x2597e8=this['editor'];if(!_0x2597e8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x43dfbf=_0x2597e8['plugins']['get']('TrackChangesEditing');_0x43dfbf['enableCommand']('goToPreviousRestrictedEditingException'),_0x43dfbf['enableCommand']('goToNextRestrictedEditingException');const _0x4e422d=_0x2597e8['plugins']['get']('RestrictedEditingModeEditing');_0x4e422d['enableCommand']('trackChanges'),_0x4e422d['enableCommand']('acceptSuggestion'),_0x4e422d['enableCommand']('discardSuggestion'),_0x4e422d['enableCommand']('acceptAllSuggestions'),_0x4e422d['enableCommand']('discardAllSuggestions'),_0x4e422d['enableCommand']('acceptSelectedSuggestions'),_0x4e422d['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x48688f{static get['requires'](){return[_0x4b33e1];}['init'](){const _0x526426=this['editor'],_0x4f52d2=_0x526426['plugins']['get']('TrackChangesEditing');_0x4f52d2['enableCommand']('shiftEnter'),_0x526426['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x526426),{'priority':'high'}),_0x526426['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x526426),{'priority':'high'}),_0x526426['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d03d6,_0x57fecc,_0x325c98)=>{_0x325c98['options']['showSuggestionHighlights']&&ge(_0x526426,{'showActiveMarker':!0x1})(_0x2d03d6,_0x57fecc,_0x325c98);}),_0x4f52d2['descriptionFactory']['registerElementLabel']('softBreak',_0x557eae=>o(_0x526426['locale'],'ELEMENT_LINE_BREAK',_0x557eae));}}function ge(_0x3611fc,{showActiveMarker:_0x3bdf8b=!0x0}={}){return(_0x54c18e,_0x17635e,_0x23b4f9)=>{const _0x8eeee9=_0x3611fc['plugins']['get']('TrackChangesEditing');if(!_0x23b4f9['consumable']['test'](_0x17635e['markerRange'],_0x54c18e['name']))return;const _0x2b42ca=_0x3611fc['model'];for(const _0x74aabc of _0x17635e['markerRange']['getItems']()){if(!_0x74aabc['is']('element','softBreak'))continue;const _0x13fe8f='deletion'==_0x17635e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x459fd5}=_0x8eeee9['_splitMarkerName'](_0x17635e['markerName']),_0x1a48d9=_0x23b4f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13fe8f,'data-author-id':_0x459fd5}),_0x2764bd=_0x23b4f9['mapper']['toViewPosition'](_0x2b42ca['createPositionBefore'](_0x74aabc));_0x3bdf8b&&_0x8eeee9['activeMarkers']['includes'](_0x17635e['markerName'])&&_0x23b4f9['writer']['addClass']('ck-suggestion-marker--active',_0x1a48d9),_0x23b4f9['writer']['insert'](_0x2764bd,_0x1a48d9),_0x23b4f9['mapper']['bindElementToMarker'](_0x1a48d9,_0x17635e['markerName']);}};}class St extends _0x48688f{['afterInit'](){const _0x173b7d=this['editor'],_0x337437=_0x173b7d['model'],_0x444047=_0x173b7d['locale'];if(!_0x173b7d['plugins']['has']('StandardEditingModeEditing'))return;const _0x197111=_0x173b7d['plugins']['get']('TrackChangesEditing'),_0x57919a='restrictedEditingException',_0x4338c7=_0x173b7d['commands']['get'](_0x57919a);_0x197111['enableCommand'](_0x57919a,(_0x3d8650,_0x54a471={})=>{const _0x5ab58b=_0x337437['document']['selection'];if(_0x5ab58b['isCollapsed'])return void _0x3d8650(_0x54a471);const _0x120c46=void 0x0!==_0x54a471['forceValue']?_0x54a471['forceValue']:!_0x4338c7['value'];_0x337437['change'](()=>{const _0x1ecc32=Array['from'](_0x5ab58b['getRanges']());for(const _0x3ad4bd of _0x1ecc32){const _0x479240=_0x120c46?[_0x3ad4bd]:io(_0x57919a,_0x3ad4bd,_0x337437);for(const _0x599467 of _0x479240)_0x197111['markInlineFormat'](_0x599467,{'commandName':_0x57919a,'commandParams':[{'forceValue':_0x120c46}]});}});}),_0x197111['descriptionFactory']['registerDescriptionCallback'](_0x55609b=>{if('formatBlock'!=_0x55609b['type']&&'formatInline'!=_0x55609b['type'])return;const {data:_0x257dd7}=_0x55609b;return _0x257dd7&&_0x257dd7['commandName']==_0x57919a?_0x257dd7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x444047,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x444047,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x48688f{['afterInit'](){const _0x50aafc=this['editor'];if(!_0x50aafc['plugins']['has']('Style')||!_0x50aafc['plugins']['has']('DataSchema'))return;const _0x5d0012=_0x50aafc['plugins']['get']('TrackChangesEditing'),_0x4e1c9=_0x50aafc['locale'],_0x2c0ee9=_0x50aafc['config']['get']('style')||{},_0x135714=_0x50aafc['plugins']['get']('GeneralHtmlSupport'),_0x4a7985=_0x50aafc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x50aafc['plugins']['get']('DataSchema'),_0x2c0ee9['definitions']);_0x5d0012['enableDefaultAttributesIntegration']('style');const _0x52099b=new Set();for(const _0x12955f of _0x4a7985['block']){const _0x55c114=_0x135714['getGhsAttributeNameForElement'](_0x12955f['element']);_0x52099b['add'](_0x55c114);}const _0x31260f=new Set();for(const _0x208dbf of _0x4a7985['inline']){const _0xb44095=_0x135714['getGhsAttributeNameForElement'](_0x208dbf['element']);_0x31260f['add'](_0xb44095);for(const _0x5da631 of _0x208dbf['ghsAttributes'])_0x31260f['add'](_0x5da631);}for(const _0x500c78 of _0x52099b)_0x5d0012['registerBlockAttribute'](_0x500c78),_0x5d0012['descriptionFactory']['registerAttributeLabel'](_0x500c78,o(_0x4e1c9,'FORMAT_STYLE'));for(const _0x4968bc of _0x31260f)_0x5d0012['registerInlineAttribute'](_0x4968bc),_0x5d0012['descriptionFactory']['registerAttributeLabel'](_0x4968bc,o(_0x4e1c9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x550283=this['editor'],_0x3cc21a=_0x550283['locale'];_0x550283['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ddc0f=>{if('formatBlock'!=_0x1ddc0f['type']&&'formatInline'!=_0x1ddc0f['type'])return;const {data:_0x3955c5}=_0x1ddc0f;return _0x3955c5&&'style'===_0x3955c5['commandName']?_0x3955c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3cc21a,'*Set\x20format:*\x20%0',_0x3955c5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3cc21a,'*Remove\x20format:*\x20%0',_0x3955c5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x48688f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xbf4a2a){super(_0xbf4a2a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ddbdc=this['editor'],_0x3f03bd=_0x3ddbdc['model']['document']['selection'];if(!_0x3ddbdc['plugins']['has']('TableEditing'))return;const _0x3a0e71=_0x3ddbdc['locale'],_0x513ee2=_0x3ddbdc['plugins']['get']('TrackChangesEditing'),_0x3eda63=_0x3ddbdc['plugins']['get']('TableUtils');_0x513ee2['descriptionFactory']['registerElementLabel']('table',_0x4fd837=>o(_0x3a0e71,'ELEMENT_TABLE',_0x4fd837)),this['_setupColumnsRowsFixing'](),_0x513ee2['enableCommand']('insertTable'),_0x513ee2['enableCommand']('selectTableRow'),_0x513ee2['enableCommand']('selectTableColumn');for(const _0x3be0e5 of['insertTableRowAbove','insertTableRowBelow']){const _0x45c592=_0x3ddbdc['commands']['get'](_0x3be0e5);_0x513ee2['enableCommand'](_0x3be0e5,_0x1c08f2=>{_0x3ddbdc['model']['change'](_0x4a4fe5=>{_0x1c08f2();const _0x294de2='above'===_0x45c592['order'],_0x3b3a1a=_0x3eda63['getSelectionAffectedTableCells'](_0x3f03bd),_0x5b05a0=_0x3eda63['getRowIndexes'](_0x3b3a1a),_0x7859ee=_0x294de2?_0x5b05a0['first']-0x1:_0x5b05a0['last']+0x1,_0x2f050b=_0x3b3a1a[0x0]['findAncestor']('table'),_0x5c3d65=_0x3eda63['createTableWalker'](_0x2f050b,{'startRow':_0x7859ee,'endRow':_0x7859ee}),_0x3a2766=Array['from'](_0x5c3d65)['map'](_0x391a32=>_0x4a4fe5['createRangeOn'](_0x391a32['cell']));_0x513ee2['markMultiRangeInsertion'](_0x3a2766,'tableRow');});});}for(const _0x1c8d18 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4b7601=_0x3ddbdc['commands']['get'](_0x1c8d18);_0x513ee2['enableCommand'](_0x1c8d18,_0x3c7589=>{_0x3ddbdc['model']['change'](_0x2e36a9=>{_0x3c7589();const _0x3f31b7='left'===_0x4b7601['order'],_0x57448a=_0x3eda63['getSelectionAffectedTableCells'](_0x3f03bd),_0x1e1cdf=_0x3eda63['getColumnIndexes'](_0x57448a),_0x40e9f6=_0x3f31b7?_0x1e1cdf['first']-0x1:_0x1e1cdf['last']+0x1,_0x3c1f3f=_0x57448a[0x0]['findAncestor']('table'),_0x58887e=_0x3eda63['createTableWalker'](_0x3c1f3f,{'startRow':0x0,'column':_0x40e9f6,'includeAllSlots':!0x1}),_0x39c5f2=Array['from'](_0x58887e)['map'](_0x2e0d68=>_0x2e36a9['createRangeOn'](_0x2e0d68['cell']));_0x513ee2['markMultiRangeInsertion'](_0x39c5f2,'tableColumn');});});}for(const _0x1030d4 of['removeTableRow','removeTableColumn']){const _0x4605f9=_0x1030d4['substr'](0xb),_0x27c5f1=_0x4605f9['toLowerCase'](),_0x1c1c8=_0x27c5f1['substr'](0x0,0x3)+'span',_0x4d4c50='table'+_0x4605f9,_0x37d01c='min'+_0x4605f9,_0x3aa1c5='max'+_0x4605f9;_0x513ee2['enableCommand'](_0x1030d4,()=>{_0x3ddbdc['model']['change'](_0x16f8b3=>{const _0x64dcc2=_0x3eda63['getSelectionAffectedTableCells'](_0x3f03bd),_0x3cb8f4=_0x64dcc2[0x0]['findAncestor']('table');let _0x707050;if('removeTableRow'==_0x1030d4){const _0x73662=_0x3eda63['getRowIndexes'](_0x64dcc2);_0x707050={'startRow':_0x73662['first'],'endRow':_0x73662['last'],'includeAllSlots':!0x0};}else{const _0x10a8cc=_0x3eda63['getColumnIndexes'](_0x64dcc2);_0x707050={'startColumn':_0x10a8cc['first'],'endColumn':_0x10a8cc['last'],'includeAllSlots':!0x0};}const _0x537844=_0x3eda63['createTableWalker'](_0x3cb8f4,_0x707050),_0x2f348c=Array['from'](_0x537844)['map'](({cell:_0x160524})=>_0x160524),_0x4055f1=be(_0x2f348c['filter'](_0x15aa95=>_0x15aa95['hasAttribute'](_0x1c1c8))),_0x25f2b0=be(_0x2f348c['filter'](_0x6da0f0=>!_0x6da0f0['hasAttribute'](_0x1c1c8)))['map'](_0x19b448=>_0x16f8b3['createRangeOn'](_0x19b448)),_0x5145f7=_0x513ee2['markMultiRangeDeletion'](_0x25f2b0,_0x4d4c50);if(_0x5145f7&&('tableRow'==_0x5145f7['subType']||'tableColumn'==_0x5145f7['subType'])){const _0x278c02=this['_getSuggestionCoords'](_0x5145f7);for(const _0x72e080 of _0x4055f1){const _0x1928af=_0x16f8b3['createRangeOn'](_0x72e080),_0xb40c5c=_0x3eda63['getCellLocation'](_0x72e080),_0x1f6e60=_0x72e080['getAttribute'](_0x1c1c8)-0x1,_0x453916=_0x278c02[_0x37d01c],_0x403683=_0x278c02[_0x3aa1c5];_0x453916<=_0xb40c5c[_0x27c5f1]&&_0xb40c5c[_0x27c5f1]+_0x1f6e60<=_0x403683&&_0x5145f7['addRange'](_0x1928af);}}});});}function _0x151942(_0x682382){const _0x143b2c=Array['from'](_0x3f03bd['getRanges']())['map'](_0x598bd5=>_0x411321['fromRange'](_0x598bd5));_0x3ddbdc['model']['change'](_0x3612f8=>{const _0x5aef33=_0x3612f8['batch'];_0x682382=_0x682382['filter'](_0x30723a=>'$graveyard'!=_0x30723a['root']['rootName']),_0x3612f8['setSelection'](_0x682382),_0x3ddbdc['commands']['get']('removeTableRow')['refresh'](),_0x3ddbdc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ddbdc['model']['enqueueChange'](()=>{_0x3ddbdc['model']['enqueueChange'](_0x5aef33,_0x24f926=>{const _0x4c6eb4=_0x143b2c['filter'](_0x46b249=>'$graveyard'!=_0x46b249['root']['rootName']);_0x4c6eb4['length']>0x0&&_0x24f926['setSelection'](_0x4c6eb4);for(const _0x2d88f4 of _0x143b2c)_0x2d88f4['detach']();});});});}function _0x1b0482(_0x5b9fb4){_0x3ddbdc['model']['change'](_0x2c75ec=>{const _0x3dc6c9=Array['from'](_0x3f03bd['getRanges']())['map'](_0x2d7f3d=>_0x411321['fromRange'](_0x2d7f3d)),_0x2b36e=[];for(const _0x46cf53 of _0x5b9fb4)for(const _0x1c65cd of _0x46cf53['getItems']({'shallow':!0x0}))_0x2b36e['push'](_0x1c65cd);for(const _0x3700c9 of _0x2b36e)'$graveyard'!=_0x3700c9['root']['rootName']&&(_0x2c75ec['setSelection'](_0x2c75ec['createPositionAt'](_0x3700c9,0x0)),_0x3ddbdc['commands']['get']('removeTableColumn')['refresh'](),_0x3ddbdc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x23c305=_0x3dc6c9['filter'](_0x490af6=>'$graveyard'!=_0x490af6['root']['rootName']);_0x23c305['length']>0x0&&_0x2c75ec['setSelection'](_0x23c305);for(const _0x583974 of _0x3dc6c9)_0x583974['detach']();});}function _0x478e36(_0x3f10fe,_0x4bca52){return _0x4bca52['every'](_0x2ae5a4=>_0x3f10fe['some'](_0x36c273=>_0x36c273['end']['isEqual'](_0x2ae5a4['start'])||_0x2ae5a4['end']['isEqual'](_0x36c273['start'])));}function _0x54694e(_0x2d6bc2,_0x234f78){return!_0x2d6bc2['some'](_0x4cc5a8=>_0x234f78['some'](_0x187ade=>_0x4cc5a8['isIntersecting'](_0x187ade)))&&_0x2d6bc2['some'](_0x1363f6=>_0x234f78['some'](_0x49359c=>_0x1363f6['end']['isTouching'](_0x49359c['start'])));}_0x3ddbdc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc7ef30,_0x255451,_0x42d5ca)=>{if(!_0x42d5ca['options']['showSuggestionHighlights'])return;const _0x51b663=_0x255451['item'];if(!_0x51b663)return;const _0x8063b5=_0x42d5ca['mapper']['toViewElement'](_0x51b663);function _0x4ac915(_0x34e2aa){return Array['isArray'](_0x34e2aa)?_0x34e2aa:[_0x34e2aa];}_0x8063b5&&'tableCell'===_0x51b663['name']&&_0x19f4da(_0x8063b5,_0x42d5ca['writer'],(_0x2fcf95,_0x16f829,_0x53146c)=>_0x53146c['addClass'](_0x4ac915(_0x16f829['classes']),_0x2fcf95),(_0x469d18,_0x528719,_0x20d10b)=>_0x20d10b['removeClass'](_0x4ac915(_0x528719['classes']),_0x469d18));},{'priority':'highest'}),_0x513ee2['descriptionFactory']['registerDescriptionCallback'](_0x3df44e=>{if('insertion'!=_0x3df44e['type']&&'deletion'!=_0x3df44e['type'])return;const _0xe63e52=_0x3df44e['getContainedElement']();if(null!=_0xe63e52&&_0xe63e52['is']('element','table')){if('insertion'==_0x3df44e['type']){const _0x31be29=_0x3df44e['getItems']()['filter'](_0x338b88=>_0x338b88['is']('$textProxy'))['map'](_0x95bbd2=>_0x95bbd2['data']);if(_0x31be29['length'])return{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x31be29['join']('\x20')+'\x22'))};}if('deletion'==_0x3df44e['type']){const _0x5046f6=_0x3df44e['getItems']()['filter'](_0x38694d=>_0x38694d['is']('$textProxy'))['map'](_0x429387=>_0x429387['data']);if(_0x5046f6['length'])return{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5046f6['join']('\x20')+'\x22'))};}}}),_0x513ee2['descriptionFactory']['registerDescriptionCallback'](_0x303ac7=>{if('tableRow'==_0x303ac7['subType']){const _0x421814=_0x303ac7['getItems']()['filter'](_0x48078c=>_0x48078c['is']('$textProxy'))['map'](_0x2fee6b=>_0x2fee6b['data']),_0x2635af=this['_getSuggestionCoords'](_0x303ac7),_0x14a0dc=_0x2635af['maxRow']-_0x2635af['minRow']+0x1;if('insertion'==_0x303ac7['type'])return _0x421814['length']?{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14a0dc,'\x22'+_0x421814['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW',_0x14a0dc))};if('deletion'==_0x303ac7['type'])return _0x421814['length']?{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14a0dc,'\x22'+_0x421814['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW',_0x14a0dc))};}if('tableColumn'==_0x303ac7['subType']){const _0x490b75=_0x303ac7['getItems']()['filter'](_0x2d0ee6=>_0x2d0ee6['is']('$textProxy'))['map'](_0x1e8aee=>_0x1e8aee['data']),_0x231746=this['_getSuggestionCoords'](_0x303ac7),_0x1ae456=_0x231746['maxColumn']-_0x231746['minColumn']+0x1;if('insertion'==_0x303ac7['type'])return _0x490b75['length']?{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1ae456,'\x22'+_0x490b75['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN',_0x1ae456))};if('deletion'==_0x303ac7['type'])return _0x490b75['length']?{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1ae456,'\x22'+_0x490b75['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN',_0x1ae456))};}}),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x151942),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x151942),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1b0482),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1b0482),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x478e36),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x478e36),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x54694e),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x54694e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x155e4c=this['editor'],_0x19a889=_0x155e4c['model']['document']['selection'];return(_0x738110,_0x2fbe9c)=>{_0x155e4c['model']['change'](_0x2cd420=>{const {commandName:_0x4627e3,commandParams:_0x49b7bb}=_0x2fbe9c;let _0x5caa18=_0x738110[0x0]['end']['nodeBefore'];_0x49b7bb&&_0x49b7bb[0x0]&&!0x1===_0x49b7bb[0x0]['forceValue']&&(_0x5caa18=_0x738110[0x0]['start']['nodeAfter']);const _0x5a9153=_0x2cd420['createRangeIn'](_0x5caa18);if('$graveyard'==_0x5a9153['root']['rootName'])return;const _0x1ac75e=Array['from'](_0x19a889['getRanges']())['map'](_0x4f269e=>_0x411321['fromRange'](_0x4f269e));_0x2cd420['setSelection'](_0x5a9153),_0x155e4c['commands']['get'](_0x4627e3)['refresh'](),_0x49b7bb['push']({'forceDefaultExecution':!0x0}),_0x155e4c['execute'](_0x4627e3,..._0x49b7bb);const _0x20c495=_0x1ac75e['filter'](_0x4b07d2=>'$graveyard'!=_0x4b07d2['root']['rootName']);_0x20c495['length']>0x0&&_0x2cd420['setSelection'](_0x20c495);for(const _0x15c8c1 of _0x1ac75e)_0x15c8c1['detach']();});};}['_getCoordsForCells'](_0xf0b943){const _0xeb33d7=this['editor']['plugins']['get']('TableUtils');let _0x2773a2=Number['MAX_SAFE_INTEGER'],_0x194755=Number['MIN_SAFE_INTEGER'],_0x26c3ca=Number['MAX_SAFE_INTEGER'],_0x505783=Number['MIN_SAFE_INTEGER'];for(const _0x3af23c of _0xf0b943){if('$graveyard'==_0x3af23c['root']['rootName'])continue;const {row:_0x5e16a8,column:_0x29123e}=_0xeb33d7['getCellLocation'](_0x3af23c),_0x5eb6fe=_0x3af23c['hasAttribute']('rowspan')?_0x3af23c['getAttribute']('rowspan')-0x1:0x0,_0x3e349f=_0x3af23c['hasAttribute']('colspan')?_0x3af23c['getAttribute']('colspan')-0x1:0x0;_0x2773a2=_0x5e16a8<_0x2773a2?_0x5e16a8:_0x2773a2,_0x194755=_0x5e16a8+_0x5eb6fe>_0x194755?_0x5e16a8+_0x5eb6fe:_0x194755,_0x26c3ca=_0x29123e<_0x26c3ca?_0x29123e:_0x26c3ca,_0x505783=_0x29123e+_0x3e349f>_0x505783?_0x29123e+_0x3e349f:_0x505783;}return{'minRow':_0x2773a2,'maxRow':_0x194755,'minColumn':_0x26c3ca,'maxColumn':_0x505783};}['_setupColumnsRowsFixing'](){const _0x373bf2=this['editor'],_0x36d6d8=_0x373bf2['plugins']['get']('TrackChangesEditing'),_0xd104ae=_0x373bf2['plugins']['get']('TableUtils');_0x373bf2['model']['document']['on']('change:data',()=>{const _0x12c8a9=Array['from'](_0x373bf2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26a5f5,data:_0x2e39b3}of _0x12c8a9){const {group:_0x170411,id:_0x13113f,subType:_0x38336f}=_0x36d6d8['_splitMarkerName'](_0x26a5f5);if('suggestion'!=_0x170411)continue;if(null!=_0x2e39b3['oldRange'])continue;const _0x4bf27c=_0x36d6d8['getSuggestion'](_0x13113f);this['_tablePostFixingSubtypes']['includes'](_0x38336f)&&this['_tableSuggestions']['add'](_0x4bf27c);}},{'priority':'low'});const _0x2a52e9=(_0xb1a85d,_0x53a319)=>{let _0x466c63=!0x1;const _0x8f13e2=_0x53a319['createRangeOn'](_0xb1a85d),_0x140392=_0xb1a85d['findAncestor']('table'),_0x10458d=_0xd104ae['getCellLocation'](_0xb1a85d);for(const _0x5c7dae of this['_tableSuggestions']){const _0x426802=_0x5c7dae['subType'],_0x5814ca=_0x426802['startsWith']('tablePaste'),_0x3d0740=_0x426802['substr'](_0x5814ca?0xa:0x5),_0x2a188e=_0x3d0740['toLowerCase'](),_0x5d1d8e=_0x2a188e['substr'](0x0,0x3)+'span',_0x4e9e5c='min'+_0x3d0740,_0x1ede10='max'+_0x3d0740;if(!_0x5c7dae['isInContent'])continue;if(_0x140392!=_0x5c7dae['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5c7dae['isIntersectingWithRange'](_0x8f13e2))continue;const _0x363d92=_0xb1a85d['hasAttribute'](_0x5d1d8e)?_0xb1a85d['getAttribute'](_0x5d1d8e)-0x1:0x0,_0x351154=this['_getSuggestionCoords'](_0x5c7dae),_0x3a1b73=_0x351154[_0x4e9e5c],_0x3e2963=_0x351154[_0x1ede10];_0x3a1b73<=_0x10458d[_0x2a188e]&&_0x10458d[_0x2a188e]+_0x363d92<=_0x3e2963&&(_0x5c7dae['addRange'](_0x8f13e2),_0x466c63=!0x0);}return _0x466c63;};_0x373bf2['model']['document']['registerPostFixer'](_0x540d46=>{let _0x2fcc64=!0x1;for(const _0x3c5d40 of _0x373bf2['model']['document']['differ']['getChanges']())if('insert'==_0x3c5d40['type']){if('tableRow'==_0x3c5d40['name']){for(const _0x5d3f51 of _0x3c5d40['position']['nodeAfter']['getChildren']())_0x2fcc64=_0x2fcc64||_0x2a52e9(_0x5d3f51,_0x540d46);}else'tableCell'==_0x3c5d40['name']&&(_0x2fcc64=_0x2fcc64||_0x2a52e9(_0x3c5d40['position']['nodeAfter'],_0x540d46));}return _0x2fcc64;});}['_getSuggestionCoords'](_0x453e8f){return this['_getCoordsForCells'](_0x453e8f['getRanges']()['map'](_0x15a410=>_0x15a410['start']['nodeAfter']));}}function be(_0x476029){return Array['from'](new Set(_0x476029)['values']());}class vt extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0xbe170b=this['editor'],_0x533a91=_0xbe170b['model']['document']['selection'],_0x197db9=_0xbe170b['locale'];if(!_0xbe170b['plugins']['has']('TableEditing'))return;const _0x5ebe95=_0xbe170b['plugins']['get']('TrackChangesEditing'),_0x38eaba=_0xbe170b['plugins']['get']('TableUtils'),_0x80eb61=_0xbe170b['plugins']['get'](It);_0x80eb61['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5ebe95['enableCommand']('mergeTableCells',()=>{const _0x433464=_0x38eaba['getSelectionAffectedTableCells'](_0xbe170b['model']['document']['selection']);_0xbe170b['model']['change'](()=>{_0x5ebe95['markMultiRangeBlockFormat'](_0x433464,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xbe170b['commands']['get']('mergeTableCells')['on']('execute',(_0x3de166,_0x5ae2be)=>{_0xbe170b['commands']['get']('trackChanges')['value']&&(_0x5ae2be['length']>0x0&&_0x5ae2be[_0x5ae2be['length']-0x1]&&_0x5ae2be[_0x5ae2be['length']-0x1]['forceDefaultExecution']||_0x5ebe95['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3de166['stop']());},{'priority':'highest'});for(const _0x210317 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b7680=_0xbe170b['commands']['get'](_0x210317);_0x5ebe95['enableCommand'](_0x210317,()=>{const _0x40ef52=_0xbe170b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18b7e1=>_0x18b7e1['is']('element','tableCell')),_0x435604=_0x2b7680['value'];_0xbe170b['model']['change'](()=>{_0x5ebe95['markMultiRangeBlockFormat']([_0x40ef52,_0x435604],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x168cda of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4caaf0=_0xbe170b['commands']['get'](_0x168cda);_0x5ebe95['enableCommand'](_0x168cda,()=>{const _0x509d3b=_0x38eaba['getSelectionAffectedTableCells'](_0xbe170b['model']['document']['selection'])[0x0],_0x14c0f0=_0x509d3b['findAncestor']('table'),{column:_0x1ba94e,row:_0x4c313f}=_0x38eaba['getCellLocation'](_0x509d3b);let _0x38f810=[];if('horizontally'==_0x4caaf0['direction']){const _0x10fc8e=_0x38eaba['createTableWalker'](_0x14c0f0,{'startRow':_0x4c313f,'endRow':_0x4c313f,'includeAllSlots':!0x0});_0x38f810=Array['from'](_0x10fc8e)['map'](_0x4f3b5d=>_0x4f3b5d['cell']);}else{const _0x8f5a92=_0x38eaba['createTableWalker'](_0x14c0f0,{'column':_0x1ba94e,'includeAllSlots':!0x0});_0x38f810=Array['from'](_0x8f5a92)['map'](_0xba34ee=>_0xba34ee['cell']);}_0xbe170b['model']['change'](_0xefb207=>{_0x5ebe95['markBlockFormat'](_0xefb207['createRangeOn'](_0x509d3b),{'commandName':_0x168cda,'commandParams':[]},_0x38f810,_0x168cda);});});}_0x5ebe95['descriptionFactory']['registerDescriptionCallback'](_0x397c42=>{if('formatBlock'!=_0x397c42['type']&&'formatInline'!=_0x397c42['type'])return;const {data:_0x2f7f40}=_0x397c42;return _0x2f7f40&&'mergeTableCells'==_0x2f7f40['commandName']?{'type':'format','content':o(_0x197db9,'*Merge\x20cells*')}:void 0x0;}),_0x5ebe95['descriptionFactory']['registerDescriptionCallback'](_0x3d6b36=>{if('formatBlock'!=_0x3d6b36['type']&&'formatInline'!=_0x3d6b36['type'])return;const {data:_0x483be9}=_0x3d6b36;return _0x483be9?'splitTableCellVertically'==_0x483be9['commandName']?{'type':'format','content':o(_0x197db9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x483be9['commandName']?{'type':'format','content':o(_0x197db9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x243dc2=_0x80eb61['_acceptFormatSuggestionCallbackFactory']();for(const _0x215db4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5ebe95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x215db4,'accept',_0x243dc2);for(const _0x4bd163 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5ebe95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bd163,'accept',_0x243dc2);_0x5ebe95['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x360158=>{_0xbe170b['model']['change'](_0xb0e3ce=>{const _0x2b52dc=Array['from'](_0x533a91['getRanges']())['map'](_0x472c3c=>_0x411321['fromRange'](_0x472c3c));_0xb0e3ce['setSelection'](_0x360158),_0xbe170b['commands']['get']('mergeTableCells')['refresh'](),_0xbe170b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x549d40=_0x2b52dc['filter'](_0x2b23aa=>'$graveyard'!=_0x2b23aa['root']['rootName']);_0x549d40['length']>0x0&&_0xb0e3ce['setSelection'](_0x549d40);for(const _0x25e711 of _0x2b52dc)_0x25e711['detach']();});});for(const _0xd03df0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x54eafd=_0xbe170b['commands']['get'](_0xd03df0);_0x54eafd['on']('set:isEnabled',(_0x25e154,_0x2a4713,_0x579cd8)=>{if(_0x579cd8){const _0x2165ec=_0xbe170b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f042a=>_0x4f042a['is']('element','tableCell'));this['_areMergableCells'](_0x54eafd['value'],_0x2165ec)||(_0x25e154['return']=!0x1,_0x25e154['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x547df7=this['editor']['commands']['get']('mergeTableCells'),_0x2cdd87=this['editor']['plugins']['get']('TableUtils');if(!_0x547df7['isEnabled'])return!0x1;const _0x594e36=_0x2cdd87['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x239ccc of _0x594e36)for(const _0x5b758f of _0x594e36)if(_0x239ccc!=_0x5b758f&&!this['_areMergableCells'](_0x239ccc,_0x5b758f))return!0x1;return!0x0;}['_areMergableCells'](_0x31694f,_0x3c6f59){const _0x42d6b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f391a=this['editor']['model']['createRangeOn'](_0x31694f),_0x22355a=this['editor']['model']['createRangeOn'](_0x3c6f59),_0x3d4a0a=new Set(),_0x55821c=new Set();for(const _0x11cfdc of _0x42d6b0['getSuggestions']())if(('insertion'==_0x11cfdc['type']||'deletion'==_0x11cfdc['type']||'mergeTableCells'==_0x11cfdc['subType'])&&_0x11cfdc['isInContent']){for(const _0x1f505c of _0x11cfdc['getRanges']())_0x1f505c['containsRange'](_0x2f391a,!0x0)&&_0x3d4a0a['add'](_0x11cfdc['type']+':'+_0x11cfdc['author']['id']),_0x1f505c['containsRange'](_0x22355a,!0x0)&&_0x55821c['add'](_0x11cfdc['type']+':'+_0x11cfdc['author']['id']);}if(_0x3d4a0a['size']!=_0x55821c['size'])return!0x1;for(const _0x3b0a57 of _0x3d4a0a)if(!_0x55821c['has'](_0x3b0a57))return!0x1;return!0x0;}}class Ct extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0x11b289=this['editor'];if(!_0x11b289['plugins']['has']('TableEditing'))return;const _0x985bad=_0x11b289['locale'],_0x443384=_0x11b289['plugins']['get']('TrackChangesEditing');_0x443384['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x443384['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x443384['registerBlockAttribute']('headingRows'),_0x443384['registerBlockAttribute']('headingColumns'),_0x443384['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x985bad,'FORMAT_HEADER_ROW')),_0x443384['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x985bad,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x151c53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f58f2=this['editor']['plugins']['get']('TableUtils'),_0x271251=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x97bd66({showActiveMarker:_0x33c832=!0x0,setDataAttribute:_0x1515eb=!0x0}={}){return(_0x3b7af3,_0x4762eb,_0x330c51)=>{const {type:_0x23960c,id:_0x50528e}=_0x151c53['_splitMarkerName'](_0x4762eb['markerName']),_0x5792b2=_0x151c53['getSuggestion'](_0x50528e),_0x268d0d=_0x5792b2['data'];if('formatBlock'!=_0x5792b2['type']||!_0x268d0d||'setTableColumnHeader'!=_0x268d0d['commandName'])return;if(_0x4762eb['item'])return void _0x3b7af3['stop']();if(!_0x330c51['consumable']['consume'](_0x4762eb['markerRange'],_0x3b7af3['name']))return;const _0xf63197=_0x4762eb['markerRange']['start']['nodeAfter'],_0x463ae6=_0x4762eb['markerRange']['end']['nodeBefore'],_0x2c743a=_0xf63197['parent']['parent'],{column:_0x18f485}=_0x2f58f2['getCellLocation'](_0xf63197),{column:_0x301b04}=_0x2f58f2['getCellLocation'](_0x463ae6);for(let _0x5bee60=_0x18f485;_0x5bee60<=_0x301b04;_0x5bee60++){const _0x4c2b98=_0x2f58f2['createTableWalker'](_0x2c743a,{'column':_0x5bee60,'includeAllSlots':!0x1});for(const _0x1af546 of _0x4c2b98){const _0x4f15d6=_0x1af546['cell'],_0x449730=_0x330c51['mapper']['toViewElement'](_0x4f15d6);_0x330c51['writer']['addClass']('ck-suggestion-marker-'+_0x23960c,_0x449730),_0x1515eb&&_0x330c51['writer']['setAttribute']('data-suggestion',_0x50528e,_0x449730),_0x330c51['mapper']['bindElementToMarker'](_0x449730,_0x4762eb['markerName']),_0x33c832&&(_0x151c53['activeMarkers']['includes'](_0x4762eb['markerName'])?_0x330c51['writer']['addClass']('ck-suggestion-marker--active',_0x449730):_0x330c51['writer']['removeClass']('ck-suggestion-marker--active',_0x449730));}}};}_0x151c53['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x271251),_0x151c53['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x271251),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x97bd66(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34c431,_0x4248fb,_0x2403ed)=>{_0x2403ed['options']['showSuggestionHighlights']&&_0x97bd66({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34c431,_0x4248fb,_0x2403ed);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5d1715,_0x549166,_0x1312c0)=>{const {type:_0x33f031,id:_0x5c6589}=_0x151c53['_splitMarkerName'](_0x549166['markerName']),_0x100689=_0x151c53['getSuggestion'](_0x5c6589),_0x2ddf63=_0x100689['data'];if('formatBlock'!=_0x100689['type']||!_0x2ddf63||'setTableColumnHeader'!=_0x2ddf63['commandName'])return;const _0x5ee18c=_0x1312c0['mapper']['markerNameToElements'](_0x549166['markerName']);if(_0x5ee18c){for(const _0x20af3 of _0x5ee18c)_0x1312c0['writer']['removeClass']('ck-suggestion-marker-'+_0x33f031,_0x20af3),_0x1312c0['writer']['removeClass']('ck-suggestion-marker--active',_0x20af3),_0x1312c0['writer']['removeAttribute']('data-suggestion',_0x20af3),_0x1312c0['mapper']['unbindElementFromMarkerName'](_0x20af3,_0x549166['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142e72=this['editor'],_0x59cba7=_0x142e72['locale'];function _0x1fb849(_0x53b431){return{'type':'format','content':o(_0x59cba7,'*Format:*\x20%0',_0x53b431)};}_0x142e72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x594d44=>{if('formatBlock'!=_0x594d44['type'])return;const {data:_0x5c1edf}=_0x594d44;if(_0x5c1edf){if('setTableRowHeader'==_0x5c1edf['commandName']){const _0x291ba5=_0x5c1edf['commandParams'][0x0]['forceValue'];return _0x1fb849(o(_0x59cba7,_0x291ba5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5c1edf['commandName']){const _0x20b73a=_0x5c1edf['commandParams'][0x0]['forceValue'];return _0x1fb849(o(_0x59cba7,_0x20b73a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x2afb9c=>[_0x2afb9c,null]));class _t extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0xc6e687=this['editor'];if(!_0xc6e687['plugins']['has']('TableClipboard'))return;const _0x1f3606=_0xc6e687['plugins']['get']('TrackChangesEditing'),_0x46ba82=_0xc6e687['plugins']['get']('TableUtils'),_0x4c366e=_0xc6e687['plugins']['get'](It),_0x46492b=_0xc6e687['plugins']['get']('TableClipboard');_0x4c366e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xc6e687['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xc6e687['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2e269e=null;_0xc6e687['model']['on']('insertContent',(_0x18932f,_0x570f13)=>{const [_0x334012,_0x4a0bc0]=_0x570f13,_0x131a38=_0x570f13[_0x570f13['length']-0x1];_0x131a38&&_0x131a38['forceDefaultExecution']||_0x1f3606['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x108d96,_0x199914,_0x208386,_0x11c8ef,_0x478d4f){if(_0x199914&&!_0x199914['is']('documentSelection'))return!0x1;const _0x3fc778=_0x478d4f['getTableIfOnlyTableInContent'](_0x108d96,_0x208386);if(!_0x3fc778||!Re(_0x3fc778,void 0x0,_0x11c8ef))return!0x1;const _0x56578f=_0x11c8ef['getSelectionAffectedTableCells'](_0x208386['document']['selection']);if(!_0x56578f['length'])return!0x1;const _0x3a718d=_0x56578f[0x0]['findAncestor']('table'),_0x140c28=_0x11c8ef['getRowIndexes'](_0x56578f),_0x467ba=_0x11c8ef['getColumnIndexes'](_0x56578f),_0x2f1037={'startRow':_0x140c28['first'],'endRow':_0x140c28['last'],'startColumn':_0x467ba['first'],'endColumn':_0x467ba['last']};return 0x1==_0x56578f['length']&&(_0x2f1037['endRow']+=_0x11c8ef['getRows'](_0x3fc778)-0x1,_0x2f1037['endColumn']+=_0x11c8ef['getColumns'](_0x3fc778)-0x1),Re(_0x3a718d,_0x2f1037,_0x11c8ef);}(_0x334012,_0x4a0bc0,_0xc6e687['model'],_0x46ba82,_0x46492b)&&(_0x18932f['stop'](),_0x2e269e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xc6e687['model']['change'](()=>{_0xc6e687['model']['insertContent'](_0x570f13[0x0],_0x570f13[0x1],_0x570f13[0x2],{'forceDefaultExecution':!0x0});const _0x2fbaf2=_0x2120b6(),{rowInsertionRanges:_0x1b3229,columnInsertionRanges:_0x3ae0cd,insertionRanges:_0xc82026,deletionRanges:_0x14fd9a,cells:_0x2e4de7}=_0x2e269e;_0x1b3229['length']&&_0x1f3606['markMultiRangeInsertion'](_0x1b3229,'tablePasteRow',{'tablePasteChainId':_0x2fbaf2}),_0x3ae0cd['length']&&_0x1f3606['markMultiRangeInsertion'](_0x3ae0cd,'tablePasteColumn',{'tablePasteChainId':_0x2fbaf2}),_0xc82026['length']&&(_0x1f3606['markMultiRangeInsertion'](_0xc82026,'tablePaste',{'tablePasteChainId':_0x2fbaf2,'skipNestingCheck':!0x0}),_0xc82026['forEach'](_0x289381=>_0x289381['detach']?.())),_0x14fd9a['length']&&(_0x1f3606['markMultiRangeDeletion'](_0x14fd9a,'tablePaste',{'tablePasteChainId':_0x2fbaf2,'skipNestingCheck':!0x0}),_0x14fd9a['forEach'](_0x23b751=>_0x23b751['detach']?.()));const _0x29fae8=_0x1f3606['markMultiRangeBlockFormat'](_0x2e4de7['map'](({element:_0x3f8289})=>_0x3f8289),{'formatGroupId':_0x2120b6()},[],'tablePasteCell',{'tablePasteChainId':_0x2fbaf2});if(_0x29fae8){const _0x253579=_0x29fae8['getMarkers'](),_0x27d5be=[];for(const {element:_0xd5b655,attributes:_0x580d38}of _0x2e4de7){if(!_0x580d38)continue;const _0x5080e2=_0xc6e687['model']['createRangeOn'](_0xd5b655),_0x5115c8=_0x253579['find'](_0x42a72b=>_0x42a72b['getRange']()['isEqual'](_0x5080e2));_0x5115c8&&_0x27d5be['push']([_0x5115c8['name'],_0x580d38]);}_0x27d5be['length']&&_0x29fae8['setAttribute']('markerAttributes',Object['fromEntries'](_0x27d5be));}_0x2e269e=null;}));},{'priority':_0xbff88b['high']+0xa}),_0xc6e687['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x342906,_0x3ce470)=>{const [_0x2001a4,_0x21131e,,_0x4e468e]=_0x3ce470;if(!_0x2e269e)return;_0x342906['stop']();const _0x49e3ad=_0x2001a4['cell'],_0x2e21b8=_0x21131e,_0x5ba026=ke(_0x49e3ad),_0x49e6ff=ke(_0x2e21b8);_0x342906['return']=_0x49e3ad;let _0x4ef4f9=null,_0x535933=null;if(_0x49e6ff||_0x5ba026){if(_0x5ba026&&!_0x49e6ff){_0x4e468e['remove'](_0x49e3ad['getChild'](0x0));for(const _0x43bc41 of Array['from'](_0x2e21b8['getChildren']()))_0x4e468e['insert'](_0x43bc41,_0x49e3ad,'end');const _0x359319=_0x2e269e['rowInsertionIndexes']['includes'](_0x2001a4['row']),_0x5c1f11=_0x2e269e['columnInsertionIndexes']['includes'](_0x2001a4['column']);_0x359319||_0x5c1f11||(_0x4ef4f9=_0x411321['fromRange'](_0x4e468e['createRangeIn'](_0x49e3ad)));}else _0x49e6ff&&!_0x5ba026&&(_0x535933=_0x4e468e['createRangeIn'](_0x49e3ad));}else{const _0x3d9770=_0x4e468e['createElement']('tableCellSuggestion'),_0x174a05=_0x4e468e['createElement']('tableCellSuggestion');_0x4e468e['wrap'](_0x4e468e['createRangeIn'](_0x49e3ad),_0x174a05),_0x4e468e['insert'](_0x3d9770,_0x49e3ad,0x0);for(const _0x1d3fbb of Array['from'](_0x2e21b8['getChildren']()))_0x4e468e['insert'](_0x1d3fbb,_0x3d9770,'end');_0x4ef4f9=_0x411321['fromRange'](_0x4e468e['createRangeOn'](_0x3d9770)),_0x535933=_0x411321['fromRange'](_0x4e468e['createRangeOn'](_0x174a05));}const _0x4b01c3=Array['from'](_0x2e21b8['getAttributes']())['filter'](([_0x13aab0])=>Pe['includes'](_0x13aab0));_0x2e269e['cells']['push']({'element':_0x49e3ad,'attributes':_0x4b01c3['length']?Object['fromEntries'](_0x4b01c3):null}),_0x4ef4f9&&_0x2e269e['insertionRanges']['push'](_0x4ef4f9),_0x535933&&_0x2e269e['deletionRanges']['push'](_0x535933);},{'priority':'high'}),_0x46ba82['on']('insertColumns',(_0x260c3b,_0x5d71c5)=>{const [_0x1fe554,_0x4546db={}]=_0x5d71c5;if(!_0x2e269e)return;const _0x67cfd7=_0x4546db['at']||0x0,_0x4b374a=_0x4546db['columns']||0x1;_0x2e269e['columnInsertionIndexes']=new Array(_0x4b374a)['fill'](_0x67cfd7)['map']((_0x355d82,_0x241d88)=>_0x355d82+_0x241d88);for(const {cell:_0x1b12af}of _0x46ba82['createTableWalker'](_0x1fe554,{'startColumn':_0x67cfd7,'endColumn':_0x67cfd7+_0x4b374a-0x1}))_0x2e269e['columnInsertionRanges']['push'](_0xc6e687['model']['createRangeOn'](_0x1b12af));},{'priority':'low'}),_0x46ba82['on']('insertRows',(_0x2d5fec,_0x46cde5)=>{const [_0x5949e4,_0x199de5={}]=_0x46cde5;if(!_0x2e269e)return;const _0x579c05=_0x199de5['at']||0x0,_0x5ae574=_0x199de5['rows']||0x1;_0x2e269e['rowInsertionIndexes']=new Array(_0x5ae574)['fill'](_0x579c05)['map']((_0x5c0312,_0x274836)=>_0x5c0312+_0x274836);for(const {cell:_0x58b222}of _0x46ba82['createTableWalker'](_0x5949e4,{'startRow':_0x579c05,'endRow':_0x579c05+_0x5ae574-0x1}))_0x2e269e['rowInsertionRanges']['push'](_0xc6e687['model']['createRangeOn'](_0x58b222));},{'priority':'low'}),_0x1f3606['descriptionFactory']['registerDescriptionCallback'](_0x447ad1=>{if(_0x447ad1['subType']&&_0x447ad1['subType']['startsWith']('tablePaste'))return _0x447ad1['previous']?{}:{'type':'insertion','content':o(_0xc6e687['locale'],'*Replace\x20table\x20cells*')};});const _0x5d2145=()=>!0x1;for(const _0x68653a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1f3606['_suggestionFactory']['registerCustomCallback']('insertion',_0x68653a,'join',_0x5d2145),_0x1f3606['_suggestionFactory']['registerCustomCallback']('deletion',_0x68653a,'join',_0x5d2145),_0x1f3606['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x68653a,'join',_0x5d2145);_0x1f3606['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5d2145),_0x1f3606['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x504243,_0x498c73,_0xf8ba2b)=>{const _0x3dd1db=_0x504243['map'](_0x585df1=>_0x585df1['getContainedElement']())['filter'](_0x5c1442=>_0x5c1442),_0x5344de=new Map(_0x3dd1db['map'](_0x466fde=>[_0x466fde,null]));if(_0x2e269e){for(const {element:_0x2eb6a7,attributes:_0x1b3df2}of _0x2e269e['cells'])_0x1b3df2&&_0x5344de['set'](_0x2eb6a7,_0x1b3df2);}else{if(_0xf8ba2b&&_0xf8ba2b['markerAttributes'])for(const [_0x94fa5,_0x5dbded]of Object['entries'](_0xf8ba2b['markerAttributes'])){const _0x5d39bd=_0xc6e687['model']['markers']['get'](_0x94fa5),_0x4da94e=_0x5d39bd?_0x5d39bd['getRange']()['getContainedElement']():null;_0x4da94e&&_0x5344de['set'](_0x4da94e,_0x5dbded);}}_0xc6e687['model']['change'](_0x446b82=>{for(const [_0x4a446b,_0x1f0f7a]of _0x5344de)_0x446b82['setAttributes']({...we,..._0x1f0f7a},_0x4a446b);});});const _0x49be4b=(_0x3e28b6,_0x2e7faf)=>{_0x1f3606['_suggestionFactory']['registerCustomCallback'](_0x3e28b6,'tablePaste',_0x2e7faf,(_0x521492,_0x2dd0ed,_0x2b2a11)=>{_0xc6e687['model']['change'](_0x38ac34=>{const _0x47243a=[];for(const _0x202f48 of _0x521492){const _0x560d51=_0x202f48['start']['nodeAfter'];_0x560d51['is']('element','tableCellSuggestion')&&_0x47243a['push'](_0x560d51);}_0x1f3606['_suggestionFactory']['getSuggestionCallback'](_0x3e28b6,null,_0x2e7faf)(_0x521492,_0x2dd0ed,_0x2b2a11);for(const _0x3eda8d of _0x47243a)'$graveyard'!=_0x3eda8d['root']['rootName']&&_0x38ac34['unwrap'](_0x3eda8d);});});};_0x49be4b('insertion','accept'),_0x49be4b('insertion','discard'),_0x49be4b('deletion','accept'),_0x49be4b('deletion','discard'),_0x1f3606['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2fcd64=>{const _0x1588e6=_0x2fcd64['map'](_0x12a57e=>_0x12a57e['getContainedElement']()),_0x5dc0d4=_0x1588e6[0x0]['findAncestor']('table'),{minRow:_0x166fa9,maxRow:_0x57d9e8}=_0x4c366e['_getCoordsForCells'](_0x1588e6);_0x46ba82['removeRows'](_0x5dc0d4,{'at':_0x166fa9,'rows':_0x57d9e8-_0x166fa9+0x1});}),_0x1f3606['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3d2835=>{const _0xeef886=_0x3d2835['map'](_0x228005=>_0x228005['getContainedElement']()),_0x3c4f5d=_0xeef886[0x0]['findAncestor']('table'),{minColumn:_0x7ed176,maxColumn:_0x52214c}=_0x4c366e['_getCoordsForCells'](_0xeef886);_0x46ba82['removeColumns'](_0x3c4f5d,{'at':_0x7ed176,'columns':_0x52214c-_0x7ed176+0x1});});const _0x11752a=(_0x57d381,_0x51b08e)=>{if(!_0x51b08e['subType']||!_0x51b08e['subType']['startsWith']('tablePaste'))return;const _0x3651e0=_0x51b08e['attributes']['tablePasteChainId'],_0x322465=_0x1f3606['getSuggestions']()['filter'](_0x1451cc=>_0x1451cc['isInContent']&&_0x1451cc['attributes']&&_0x1451cc['attributes']['tablePasteChainId']==_0x3651e0);_0x322465['length']&&_0x51b08e['getAllAdjacentSuggestions']()['length']!=_0x322465['length']&&_0x322465['reduce']((_0x50f6b5,_0xbecd7b)=>(_0x50f6b5['next']=_0xbecd7b,_0xbecd7b['previous']=_0x50f6b5,_0xbecd7b));};function _0x9cf1b5(_0x2b609e,_0x20d1af=!0x0){const {id:_0x367d68,authorId:_0x23c425}=_0x1f3606['_splitMarkerName'](_0x2b609e['markerName']),_0x420309=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4ab0e2=_0x1f3606['activeMarkers']['includes'](_0x2b609e['markerName']);return _0x4ab0e2&&_0x420309['push']('ck-suggestion-marker--active'),{'classes':_0x420309,'attributes':{'data-suggestion':_0x367d68,'data-author-id':_0x23c425},'priority':_0x4ab0e2&&_0x20d1af?0xbc2:0xbb8};}_0x1f3606['on']('suggestionLoaded',_0x11752a,{'priority':'high'}),_0x1f3606['on']('suggestionUnloaded',_0x11752a,{'priority':'high'}),_0xc6e687['model']['document']['registerPostFixer'](()=>{let _0x38b40a=!0x1;const _0x33ee69=Array['from'](_0xc6e687['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26c9cf,data:_0x343f62}of _0x33ee69){const {group:_0x33bec9,type:_0x2035db,id:_0x399868}=_0x1f3606['_splitMarkerName'](_0x26c9cf);if('suggestion'!=_0x33bec9||'deletion'!=_0x2035db||_0x343f62['oldRange'])continue;if(!_0x1f3606['hasSuggestion'](_0x399868))continue;const _0x2d6f1f=_0x1f3606['getSuggestion'](_0x399868)['getRanges'](),_0x143879=_0xc6e687['plugins']['get']('Users')['me'];for(const _0x541caa of _0x1f3606['getSuggestions']()){if(!_0x541caa['isInContent']||_0x541caa['author']!=_0x143879)continue;if('formatBlock'!=_0x541caa['type']||'tablePasteCell'!=_0x541caa['subType'])continue;if(_0x541caa['getRanges']()['every'](_0x9d2fbc=>_0x2d6f1f['some'](_0x1675a7=>_0x1675a7['containsRange'](_0x9d2fbc,!0x0)))){for(const _0x497a69 of _0x541caa['getAllAdjacentSuggestions']())_0x497a69['isInContent']&&(_0x497a69['discard'](),_0x38b40a=!0x0);}}}return _0x38b40a;}),_0xc6e687['model']['document']['registerPostFixer'](_0x3d89af=>{const _0x35ad79=_0xc6e687['commands']['get']('redo');if(!_0x35ad79||!_0x35ad79['_createdBatches']['has'](_0x3d89af['batch']))return!0x1;let _0x2e239f=!0x1;const _0x5441e2=_0xc6e687['plugins']['get']('Users')['me'],_0x4e007d=_0xc6e687['model']['document']['differ']['getChanges'](),_0x1bd8eb=Array['from'](_0xc6e687['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d69c5,data:_0x4b7bba})=>{const {group:_0x31f736,subType:_0x102591,authorId:_0x4d57c5}=_0x1f3606['_splitMarkerName'](_0x3d69c5);return'suggestion'==_0x31f736&&'tablePaste'==_0x102591&&_0x4d57c5==_0x5441e2['id']&&!_0x4b7bba['oldRange'];});for(const _0x38df87 of _0x4e007d){if('insert'!=_0x38df87['type']||'tableCellSuggestion'!=_0x38df87['name']||0x1!=_0x38df87['length'])continue;const _0x533fad=_0x3d89af['createRange'](_0x38df87['position'],_0x38df87['position']['getShiftedBy'](0x1));if(!_0x1bd8eb['find'](({data:_0x1150b5})=>_0x1150b5['newRange']['isEqual'](_0x533fad))){for(const {name:_0x1db9c8,data:_0x4f509e}of _0x1bd8eb)if(_0x533fad['containsRange'](_0x4f509e['newRange'])){_0x3d89af['updateMarker'](_0x1db9c8,{'range':_0x533fad}),_0x2e239f=!0x0;break;}}}return _0x2e239f;}),_0xc6e687['model']['document']['registerPostFixer'](_0x86e595=>{let _0x27b80f=!0x1;const _0x51bec7=_0xc6e687['plugins']['get']('Users')['me'],_0x51f275=_0x1f3606['getSuggestions']()['filter'](_0x548a2f=>_0x548a2f['isInContent']&&_0x548a2f['author']==_0x51bec7),_0x2a696a=new Set(),_0xf3bf4=new Set();for(const _0x5b6757 of _0x51f275)if('tablePaste'==_0x5b6757['subType'])for(const _0x2b9ac1 of _0x5b6757['getMarkers']()){const _0x26d3bd=_0x2b9ac1['getRange']()['getContainedElement']();if(_0x26d3bd){if(_0x26d3bd['is']('element','tableCellSuggestion')&&ke(_0x26d3bd)){_0x5b6757['removeMarker'](_0x2b9ac1['name']),_0x2a696a['add'](_0x26d3bd),_0x27b80f=!0x0;const _0x18ee14=_0x26d3bd['nextSibling'],_0x4eb690=_0x26d3bd['previousSibling'],_0x4cee53=_0x18ee14&&_0x18ee14['is']('element','tableCellSuggestion'),_0x54095f=_0x4eb690&&_0x4eb690['is']('element','tableCellSuggestion');_0x4cee53&&!_0x2a696a['has'](_0x18ee14)&&_0xf3bf4['add'](_0x18ee14),_0x54095f&&!_0x2a696a['has'](_0x4eb690)&&_0xf3bf4['add'](_0x4eb690);}else _0x26d3bd['is']('element','paragraph')&&_0x26d3bd['isEmpty']&&(_0x5b6757['removeMarker'](_0x2b9ac1['name']),_0x27b80f=!0x0);}}else{if('tablePasteCell'==_0x5b6757['subType']){if(!_0x5b6757['attributes']||!_0x5b6757['attributes']['tablePasteChainId'])continue;const _0x5a13aa=_0x5b6757['attributes']['markerAttributes'];if(_0x5a13aa&&Object['keys'](_0x5a13aa)['length'])continue;const _0x3747c7=_0x5b6757['attributes']['tablePasteChainId'];let _0x5045ec=!0x0,_0x208d0e=!0x0;for(const _0x4234ac of _0x51f275)if(_0x4234ac['subType']&&_0x4234ac['subType']['startsWith']('tablePaste')){if(!_0x4234ac['attributes']['tablePasteChainId']){_0x208d0e=!0x1;break;}if(_0x4234ac['id']!=_0x5b6757['id']&&_0x4234ac['attributes']['tablePasteChainId']==_0x3747c7){_0x5045ec=!0x1;break;}}_0x208d0e&&_0x5045ec&&(_0x5b6757['removeMarkers'](),_0x27b80f=!0x0);}}for(const _0x5785d6 of _0x2a696a)_0x86e595['remove'](_0x5785d6);for(const _0xdf057e of _0xf3bf4)_0x86e595['unwrap'](_0xdf057e);return _0x27b80f;}),_0xc6e687['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x515453,_0x1e7735)=>_0x9cf1b5(_0x515453),'converterPriority':'high'}),_0xc6e687['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xb509b3,_0x1eed0f)=>_0x1eed0f['options']['showSuggestionHighlights']?_0x9cf1b5(_0xb509b3,!0x1):null,'converterPriority':'high'});const _0xc07147=_0xc6e687['editing']['view'];this['listenTo'](_0xc07147['document'],'clipboardOutput',(_0x18be91,_0x176cad)=>{const _0x1be573=[];for(const _0xb81051 of _0xc07147['createRangeIn'](_0x176cad['content'])['getItems']())_0xb81051['is']('element','suggestion-td')&&_0x1be573['push'](_0xb81051);_0xc07147['change'](_0x340ce5=>{for(const _0x44f3f6 of _0x1be573)_0x340ce5['move'](_0x340ce5['createRangeIn'](_0x44f3f6),_0x340ce5['createPositionBefore'](_0x44f3f6)),_0x340ce5['remove'](_0x44f3f6);});});}}function ke(_0x1f372f){if(_0x1f372f['isEmpty'])return!0x0;const _0x2fb746=_0x1f372f['getChild'](0x0);return _0x2fb746['is']('element','paragraph')&&_0x2fb746['isEmpty'];}function Re(_0x2cdc1b,_0x39651e={},_0x5826d1){for(const {isAnchor:_0x5063b9,cellHeight:_0x9b6545,cellWidth:_0x178b69}of _0x5826d1['createTableWalker'](_0x2cdc1b,{'includeAllSlots':!0x0,..._0x39651e}))if(!_0x5063b9||0x1!=_0x9b6545||0x1!=_0x178b69)return!0x1;return!0x0;}class Nt extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x49c72d=this['editor']['plugins']['get']('TrackChangesEditing');_0x49c72d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x49c72d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x49c72d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49c72d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x49c72d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x49c72d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x57fc39,_0x4e028d){const _0x4acaaa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cc404=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11895d=_0x4e028d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d1bda=_0x3cc404['getColumnGroupElement'](_0x11895d);let _0x1d9029=_0x4d1bda?_0x3cc404['getTableColumnsWidths'](_0x4d1bda):null,_0x553241=_0x11895d['getAttribute']('tableWidth')||null;const _0x9d295a=_0x4e028d['tableWidth']||_0x553241,_0x37d353=_0x4e028d['columnWidths']||_0x1d9029,_0x12d21f=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ab8be of _0x4acaaa['getSuggestions']()){const _0x14955d=_0x3ab8be['getContainedElement']();if('resizeTable'===_0x3ab8be['subType']&&_0x14955d===_0x11895d){_0x3ab8be['author']!==_0x12d21f&&_0x3ab8be['discard']();const _0x296df3=_0x3ab8be['data']['commandParams'];_0x553241=_0x296df3[0x0]['tableWidth'],_0x1d9029=_0x296df3[0x0]['columnWidths'];break;}}_0x57fc39({'table':_0x11895d,'tableWidth':_0x9d295a,'columnWidths':_0x37d353}),_0x4acaaa['markBlockFormat'](_0x11895d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x553241,'columnWidths':_0x1d9029}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x425aff){if('formatBlock'!=_0x425aff['type']&&'formatInline'!=_0x425aff['type'])return;const {data:_0x13c70b}=_0x425aff;if(_0x13c70b&&'resizeTable'===_0x13c70b['formatGroupId']){const _0x5d20a6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5d20a6)};}}}class Dt extends _0x48688f{['afterInit'](){const _0x212908=this['editor'];_0x212908['plugins']['has']('Template')&&_0x212908['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x48688f{['afterInit'](){const _0x2b5e88=this['editor'];if(!_0x2b5e88['commands']['get']('insertTableOfContents'))return;_0x2b5e88['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xd3d3d7=_0x2b5e88['plugins']['get']('TrackChangesEditing'),_0x849fcb=_0x2b5e88['locale'];_0xd3d3d7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14732a=>o(_0x849fcb,'ELEMENT_TABLE_OF_CONTENTS',_0x14732a));}}class $t extends _0x48688f{['afterInit'](){const _0x22c6ae=this['editor'];if(!_0x22c6ae['plugins']['has']('Title'))return;const _0x1c2224=_0x22c6ae['plugins']['get']('TrackChangesEditing');_0x1c2224['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x22c6ae['locale'],'ELEMENT_TITLE')),_0x22c6ae['model']['document']['registerPostFixer'](_0x41ae4f=>{let _0x3c3685=!0x1;const _0x29d98b=Array['from'](_0x22c6ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49e20b,data:_0xe82e4d}of _0x29d98b){const {group:_0x53371d}=_0x1c2224['_splitMarkerName'](_0x49e20b);if('suggestion'!==_0x53371d||!_0xe82e4d['newRange'])continue;const _0x3f388b=_0xe82e4d['newRange'],_0x449fe5=_0x3f388b['end']['nodeBefore'];if(!_0x449fe5||!_0x449fe5['is']('element','title-content'))continue;if(!_0x3f388b['start']['isTouching'](_0x3f388b['end']))continue;const _0x1522b5=_0x22c6ae['model']['schema']['getNearestSelectionRange'](_0x3f388b['end'],'forward');if(_0x1522b5&&_0x1522b5['isCollapsed']){const _0x335f3c=_0x41ae4f['createRange'](_0x3f388b['start'],_0x1522b5['start']);_0x335f3c['isEqual'](_0x3f388b)||(_0x41ae4f['updateMarker'](_0x49e20b,{'range':_0x335f3c}),_0x3c3685=!0x0);}_0x3c3685||(_0x41ae4f['removeMarker'](_0x49e20b),_0x3c3685=!0x0);}return _0x3c3685;});}}class Bt extends _0x48688f{['afterInit'](){const _0x45562e=this['editor'],_0x326cb1=_0x45562e['plugins']['get']('TrackChangesEditing');_0x45562e['plugins']['has']('UndoEditing')&&(_0x326cb1['enableCommand']('undo'),_0x326cb1['enableCommand']('redo'));}}class xt extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0x19d648=this['editor'];if(!_0x19d648['plugins']['has']('TableCaptionEditing'))return;_0x19d648['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x48688f{['tableProperties'];['tableCellProperties'];constructor(_0x52a0c5){super(_0x52a0c5),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 _0x3ee0a8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2fac7c of this['tableProperties'])_0x3ee0a8['enableCommand'](_0x2fac7c,(_0x39ba6d,_0x244d7d)=>{const _0x5d340d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2fac7c,[_0x5d340d],this['tableProperties'],'tableProperties',_0x39ba6d,_0x244d7d);});_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ee0a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2e8005,_0x17a764)=>this['handleDiscardAction'](this['tableProperties'],_0x2e8005,_0x17a764)),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3bfcb5 of this['tableCellProperties'])_0x3ee0a8['enableCommand'](_0x3bfcb5,(_0x2985e8,_0x28e662)=>{const _0x55b912=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3bfcb5,_0x55b912,this['tableCellProperties'],'tableCellProperties',_0x2985e8,_0x28e662);});_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ee0a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2cea48,_0x222226)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2cea48,_0x222226)),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3ee0a8['descriptionFactory']['registerDescriptionCallback'](_0x50457e=>this['handleSuggestionDescription'](_0x50457e));}['_handlePropertyChange'](_0xbbc19a,_0x3d4665,_0x5bb739,_0x264f7a,_0x3431a2,_0x3bc3b1){const _0x1767a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3bc3b1['batch'],()=>{for(const _0xfd3498 of _0x3d4665){if(this['_getSuggestion'](_0xfd3498,_0x264f7a))_0x3431a2(_0x3bc3b1);else{const _0x2a3031={};for(const _0xfb7ebd of _0x5bb739){const _0x52ad0a=_0xfd3498['getAttribute'](_0xfb7ebd);void 0x0!==_0x52ad0a&&(_0x2a3031[_0xfb7ebd]=_0x52ad0a);}_0x3431a2(_0x3bc3b1),_0x1767a2['markBlockFormat'](_0xfd3498,{'commandParams':[_0x2a3031]},[],_0x264f7a);}}});}['handleDiscardAction'](_0x2b2d83,_0x5c3344,_0x1604af){const _0x51565a=_0x5c3344[0x0]['start']['nodeAfter'],_0x37c427=_0x1604af['commandParams'][0x0];this['editor']['model']['change'](_0x57ef74=>{for(const _0x156b22 of _0x2b2d83)void 0x0!==_0x37c427[_0x156b22]?_0x57ef74['setAttribute'](_0x156b22,_0x37c427[_0x156b22],_0x51565a):_0x57ef74['removeAttribute'](_0x156b22,_0x51565a);});}['handleSuggestionDescription'](_0x472ef3){if(_0x472ef3['data'])switch(_0x472ef3['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'](_0x1a6afa,_0x24c7f9){const _0x539996=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x57d03b of _0x539996['getSuggestions']({'skipNotAttached':!0x0})){const _0x202944=_0x57d03b['getContainedElement']();if(_0x57d03b['subType']===_0x24c7f9&&_0x202944===_0x1a6afa)return _0x57d03b;}return null;}}const m='$elementName';class p extends _0x48688f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x171a4a,_0x44b4d1,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(_0x32c20b){function _0x489e3b(_0x413f5e){return _0x413f5e['map'](_0x499a11=>String['fromCharCode'](_0x499a11))['join']('');}super(_0x32c20b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1f749a,_0x50a232,_0x45eaf9,_0x55dd78)=>{this['_model']['change'](()=>{for(const _0x5c9376 of[..._0x55dd78,..._0x45eaf9])this['_model']['markers']['has'](_0x5c9376)&&_0x32c20b['editing']['reconvertMarker'](_0x5c9376);});}),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']=_0x32c20b['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(),_0x32c20b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x32c20b['config']['get']('trackChanges.trackFormatChanges'),_0x32c20b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x32c20b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x32c20b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x489e3b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x489e3b([0x34,0x30,0x34,0x38,0x31,0x36,0x33,0x30]);}['init'](){const _0x172b9f=this['editor'],_0x3ab9b2=(_0xa5097f,_0x8ee671)=>{if('attribute'!=_0xa5097f)return'ck-suggestion-marker-'+_0xa5097f;const _0xf09cb6=_0x8ee671['split']('|')[0x0];return this['_isBlockAttribute'](_0xf09cb6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x172b9f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x21b408=>{const {id:_0xd62585,authorId:_0x412cb7,type:_0x36d5d5,subType:_0x338044}=this['_splitMarkerName'](_0x21b408['markerName']),_0xc9772b=['ck-suggestion-marker',_0x3ab9b2(_0x36d5d5,_0x338044)];let _0x1bab33=0xbb8;return this['activeMarkers']['includes'](_0x21b408['markerName'])&&(_0xc9772b['push']('ck-suggestion-marker--active'),_0x1bab33=0xbc2),'deletion'==_0x36d5d5&&(_0x1bab33+=0x5),{'classes':_0xc9772b,'attributes':{'data-suggestion':_0xd62585,'data-author-id':_0x412cb7},'priority':_0x1bab33};}}),_0x172b9f['conversion']['for']('dataDowncast')['add'](_0x3bf8a7=>{_0x3bf8a7['on']('addMarker:suggestion',(_0x58a548,_0x1ed06f,_0x536358)=>{if(!_0x536358['options']['showSuggestionHighlights'])return;const _0x3d01d3=_0x1ed06f['item'];if(!_0x3d01d3)return;const _0x2a987a=_0x536358['mapper']['toViewElement'](_0x3d01d3);_0x172b9f['model']['schema']['isObject'](_0x3d01d3)&&_0x2a987a&&!_0x2a987a['getCustomProperty']('widget')&&_0x2a987a['is']('containerElement')&&_0x3d3930(_0x2a987a,_0x536358['writer']);},{'priority':'high'});}),_0x172b9f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5d5e62,_0x307bfb)=>{if(!_0x307bfb['options']['showSuggestionHighlights'])return null;const {type:_0x2df2b0,subType:_0xb7227e}=this['_splitMarkerName'](_0x5d5e62['markerName']);return{'classes':['ck-suggestion-marker',_0x3ab9b2(_0x2df2b0,_0xb7227e)],'priority':0xbb8};}});const _0x247339=({showActiveMarkers:_0x3b4353=!0x0,isAttributeSuggestion:_0x29f31f=!0x1}={})=>(_0x51813c,_0x2e8f47,_0x511949)=>{if(!_0x2e8f47['item'])return;const {id:_0x38d7b5,authorId:_0x35da92}=this['_splitMarkerName'](_0x2e8f47['markerName']);if(_0x29f31f){const _0x5c9556=this['_suggestions']['get'](_0x38d7b5),_0x407021=this['_getAttributeKey'](_0x5c9556);if(!this['_isBlockAttribute'](_0x407021))return;}if(_0x2e8f47['item']['is']('selection'))return void _0x511949['consumable']['consume'](_0x2e8f47['item'],_0x51813c['name']);const _0x25cd89=_0x511949['mapper']['toViewElement'](_0x2e8f47['item']);if(_0x2e8f47['item']['is']('element')&&_0x172b9f['model']['schema']['isBlock'](_0x2e8f47['item'])&&!_0x25cd89['getCustomProperty']('addHighlight')){_0x511949['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x25cd89),_0x511949['writer']['setAttribute']('data-suggestion',_0x38d7b5,_0x25cd89),_0x511949['writer']['setAttribute']('data-author-id',_0x35da92,_0x25cd89),_0x511949['mapper']['bindElementToMarker'](_0x25cd89,_0x2e8f47['markerName']),_0x3b4353&&(this['activeMarkers']['includes'](_0x2e8f47['markerName'])?_0x511949['writer']['addClass']('ck-suggestion-marker--active',_0x25cd89):_0x511949['writer']['removeClass']('ck-suggestion-marker--active',_0x25cd89));for(const _0x552cd6 of _0x172b9f['model']['createRangeIn'](_0x2e8f47['item'])['getItems']())_0x511949['consumable']['consume'](_0x552cd6,_0x51813c['name']);_0x511949['consumable']['consume'](_0x2e8f47['item'],_0x51813c['name']);}};_0x172b9f['conversion']['for']('dataDowncast')['add'](_0x247349=>{_0x247349['on']('addMarker:suggestion:formatBlock',(_0x58b884,_0x478c90,_0x333c9e)=>{_0x333c9e['options']['showSuggestionHighlights']&&_0x247339({'showActiveMarkers':!0x1})(_0x58b884,_0x478c90,_0x333c9e);},{'priority':'highest'});}),_0x172b9f['conversion']['for']('dataDowncast')['add'](_0x572ed4=>{_0x572ed4['on']('addMarker:suggestion:attribute',(_0x12dc82,_0x277fdf,_0x4cf9ff)=>{_0x4cf9ff['options']['showSuggestionHighlights']&&_0x247339({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x12dc82,_0x277fdf,_0x4cf9ff);},{'priority':'highest'});}),_0x172b9f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3ca87c,_0x1e2bb9)=>_0x1e2bb9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3ca87c['substr'](0xb)}}),_0x172b9f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3fbaa2,{writer:_0x389273})=>{let _0x5ab9aa='suggestion:'+_0x3fbaa2['getAttribute']('suggestion-type')+':'+_0x3fbaa2['getAttribute']('id');return _0x3fbaa2['getAttribute']('marker-count')&&(_0x5ab9aa+=':'+_0x3fbaa2['getAttribute']('marker-count')),_0x389273['createElement']('$marker',{'data-name':_0x5ab9aa});}}),_0x172b9f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0x37b352=>{_0x37b352['on']('addMarker:suggestion:formatBlock',_0x247339(),{'priority':'high'});}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0x2b2bfe=>{_0x2b2bfe['on']('addMarker:suggestion:attribute',_0x247339({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0x3919d3=>{_0x3919d3['on']('removeMarker:suggestion:formatBlock',(_0x3bc0d5,_0x468ccc,_0x53966f)=>{const _0x1d4d8c=_0x53966f['mapper']['markerNameToElements'](_0x468ccc['markerName']);if(_0x1d4d8c){for(const _0x2b92da of _0x1d4d8c)_0x2b92da['getCustomProperty']('addHighlight')||(_0x53966f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b92da),_0x53966f['writer']['removeAttribute']('data-suggestion',_0x2b92da),_0x53966f['writer']['removeAttribute']('data-author-id',_0x2b92da),_0x53966f['mapper']['unbindElementFromMarkerName'](_0x2b92da,_0x468ccc['markerName']));}},{'priority':'high'});}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0xcfee5b=>{_0xcfee5b['on']('removeMarker:suggestion:attribute',(_0x17d013,_0x51fe65,_0x68112f)=>{const _0x1d430f=_0x68112f['mapper']['markerNameToElements'](_0x51fe65['markerName']);if(!_0x1d430f)return;const {id:_0x37ace1}=this['_splitMarkerName'](_0x51fe65['markerName']),_0x587e48=this['_suggestions']['get'](_0x37ace1),_0x18e152=this['_getAttributeKey'](_0x587e48);if(this['_isBlockAttribute'](_0x18e152)){for(const _0x345de4 of _0x1d430f)_0x345de4['getCustomProperty']('addHighlight')||(_0x68112f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x345de4),_0x68112f['writer']['removeAttribute']('data-suggestion',_0x345de4),_0x68112f['writer']['removeAttribute']('data-author-id',_0x345de4),_0x68112f['mapper']['unbindElementFromMarkerName'](_0x345de4,_0x51fe65['markerName']));}},{'priority':'high'});}),_0x172b9f['model']['document']['registerPostFixer'](_0x327cbd=>{let _0x593af5=!0x1;const _0x5e2846=Array['from'](_0x172b9f['model']['document']['differ']['getChangedMarkers']()),_0x5951bc=new Set();for(const {name:_0xa7b5b9,data:_0x306329}of _0x5e2846){const {group:_0x53642a,type:_0x3ba118,subType:_0x547de1,id:_0x5afb12}=this['_splitMarkerName'](_0xa7b5b9);if('suggestion'!==_0x53642a)continue;const _0x55270c=this['_suggestions']['get'](_0x5afb12);if(null!=_0x306329['newRange']){'formatInline'==_0x3ba118&&(_0x593af5=_0x593af5||Ut(_0x306329['newRange'],_0xa7b5b9,_0x327cbd,_0x172b9f['model']['schema']));const _0x1bd612='attribute'==_0x3ba118&&this['_isBlockAttribute'](_0x547de1['split']('|')[0x0]);if(_0x306329['newRange']['isCollapsed']||'$graveyard'==_0x306329['newRange']['root']['rootName']||'formatBlock'==_0x3ba118&&!Ft(_0x306329['newRange'])||_0x1bd612&&!Ft(_0x306329['newRange'])||'deletion'==_0x3ba118&&!(!Vt(_0x2f067d=_0x306329['newRange'])&&!function(_0x45ea89){return _0x45ea89['start']['parent']==_0x45ea89['end']['nodeBefore']&&_0x45ea89['start']['isAtEnd'];}(_0x2f067d)))_0x327cbd['removeMarker'](_0xa7b5b9),_0x593af5=!0x0;else{if(!_0x55270c||!_0x55270c['isInContent'])continue;if(_0x306329['newRange']&&_0x306329['oldRange']&&_0x306329['newRange']['isEqual'](_0x306329['oldRange']))continue;_0x5951bc['add'](_0x55270c);}}}var _0x2f067d;return _0x5951bc['size']>0x0&&(_0x593af5=!!this['_joinWithAdjacentSuggestions'](_0x5951bc)||_0x593af5),_0x593af5;}),_0x172b9f['model']['document']['registerPostFixer'](_0x4c7e77=>{let _0x132c8a=!0x1;for(const _0x1710cb of _0x172b9f['model']['document']['differ']['getChanges']())if('insert'==_0x1710cb['type'])for(const _0x1a657d of this['_suggestions']['values']()){if(_0x1a657d['isMultiRange']||!_0x1a657d['isInContent'])continue;const _0x3fb4dc='formatBlock'==_0x1a657d['type'],_0x5cd776=this['_getAttributeKey'](_0x1a657d),_0x1a5244=_0x5cd776&&this['_isBlockAttribute'](_0x5cd776);if(!_0x3fb4dc&&!_0x1a5244)continue;const _0x12d099=_0x1a657d['getFirstRange']();if(_0x12d099['start']['parent']!=_0x12d099['end']['parent']&&!_0x12d099['end']['isAtEnd']){const _0x46ab79=_0x172b9f['model']['createPositionAt'](_0x12d099['start']['nodeAfter'],'end'),_0x491308=_0x172b9f['model']['createRange'](_0x12d099['start'],_0x46ab79);_0x4c7e77['updateMarker'](_0x1a657d['getFirstMarker'](),{'range':_0x491308}),_0x132c8a=!0x0;}}return _0x132c8a;}),_0x172b9f['model']['document']['registerPostFixer'](_0xaf4011=>this['_processAttributeChanges'](_0xaf4011)),_0x172b9f['model']['document']['registerPostFixer'](_0x3cc925=>!_0x3cc925['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3cc925)),_0x172b9f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x172b9f['model']['document']['on']('change:data',(_0x50c720,_0x36934f)=>{if(!_0x36934f['isLocal']||_0x36934f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x376e19=_0x172b9f['model']['document']['differ']['getChanges']();if(0x0==_0x376e19['length'])return;const _0x4a3140=[],_0x289332=_0x376e19['filter'](_0x281a64=>'attribute'==_0x281a64['type']),_0x2732fe=_0x376e19['filter'](_0x2bba70=>'insert'==_0x2bba70['type']&&'$text'!=_0x2bba70['name']);for(const _0x477a5c of _0x289332)this['_isRegisteredAttribute'](_0x477a5c['attributeKey'])&&_0x4a3140['push']({'key':_0x477a5c['attributeKey'],'newValue':_0x477a5c['attributeNewValue'],'oldValue':_0x477a5c['attributeOldValue'],'range':Pt(_0x477a5c['range'],_0x172b9f['model'])});for(const _0x27e6a9 of _0x2732fe){if('rename'!=_0x27e6a9['action']&&'refresh'!=_0x27e6a9['action'])continue;const _0x494a91=Lt(_0x27e6a9['position']['nodeAfter'],_0x172b9f['model']),_0x560401=_0x27e6a9['before'];'rename'==_0x27e6a9['action']&&_0x4a3140['push']({'key':m,'newValue':_0x27e6a9['name'],'oldValue':_0x560401['name'],'range':_0x494a91});for(const [_0x16a98e,_0xca10f9]of _0x560401['attributes']){if(!this['_isRegisteredAttribute'](_0x16a98e))continue;const _0xde795f=_0x27e6a9['attributes']['get'](_0x16a98e);_0xca10f9!==_0xde795f&&_0x4a3140['push']({'key':_0x16a98e,'newValue':_0xde795f,'oldValue':_0xca10f9,'range':_0x494a91});}for(const [_0x4acebc,_0x583247]of _0x27e6a9['attributes'])this['_isRegisteredAttribute'](_0x4acebc)&&(_0x560401['attributes']['has'](_0x4acebc)||_0x4a3140['push']({'key':_0x4acebc,'newValue':_0x583247,'oldValue':null,'range':_0x494a91}));}0x0!=_0x4a3140['length']&&_0x172b9f['model']['enqueueChange'](_0x36934f,_0x4cabe8=>{const _0x2c6cc0=_0x2120b6();for(const {range:_0x406273,key:_0x28ff52,oldValue:_0x25e583,newValue:_0x3704f0}of _0x4a3140)this['markAttributeChange'](_0x406273,_0x28ff52,_0x25e583,_0x3704f0,{'groupId':_0x2c6cc0});this['_reduceExistingSuggestions'](_0x4cabe8,_0x4a3140);});},{'priority':'lowest'}),_0x172b9f['model']['markers']['on']('update:suggestion',(_0x45c57d,_0x513414,_0x902846)=>{if(null==_0x902846){const {id:_0x2e7804}=this['_splitMarkerName'](_0x513414['name']),_0x3ef4c6=this['_suggestions']['get'](_0x2e7804);_0x3ef4c6&&_0x3ef4c6['addMarkerName'](_0x513414['name']);}}),_0x172b9f['model']['document']['on']('change:data',()=>{const _0x59d791=Array['from'](_0x172b9f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x55c007=>'suggestion'===this['_splitMarkerName'](_0x55c007['name'])['group']);if(0x0===_0x59d791['length'])return;_0x59d791['sort']((_0x2eb459,_0x1d0f2a)=>{const _0x5b8ae6=_0x2eb459['data']['oldRange'],_0x4cb55b=_0x1d0f2a['data']['oldRange'];return null===_0x5b8ae6&&null===_0x4cb55b?0x0:null===_0x5b8ae6&&null!==_0x4cb55b?-0x1:null!==_0x5b8ae6&&null===_0x4cb55b?0x1:_0x5b8ae6['start']['isBefore'](_0x4cb55b['start'])?-0x1:0x1;});const _0x11079e=new Set(),_0x2cd39d=new Set();for(const {name:_0x3cea7f,data:_0xda84f7}of _0x59d791){const {id:_0x599a7e}=this['_splitMarkerName'](_0x3cea7f);if(null===_0xda84f7['oldRange']){const _0x106775=this['_handleNewSuggestionMarker'](_0x3cea7f);_0x2cd39d['add'](_0x106775);}else{const _0x242f05=this['_suggestions']['get'](_0x599a7e);null!==_0xda84f7['newRange']||_0x242f05['isInContent']?(_0x11079e['add'](_0x242f05['head']),_0x2cd39d['add'](_0x242f05)):this['_removeSuggestion'](_0x242f05);}}_0x2cd39d['size']>0x0&&this['_refreshSuggestionsChain'](_0x2cd39d);for(const _0x335749 of _0x11079e)this['fire']('suggestionChanged',_0x335749);}),_0x172b9f['model']['on']('applyOperation',(_0x2672f6,_0x191fd2)=>{const _0x5d3b39=_0x191fd2[0x0];if(!this['_suggestions']['size'])return;if(!_0x5d3b39['isDocumentOperation'])return;if(_0x5d3b39['batch']['isUndo']||!_0x5d3b39['batch']['isLocal'])return;let _0x5141bf,_0x46c1f0;switch(_0x5d3b39['type']){case'insert':_0x5141bf=_0x172b9f['model']['createPositionAt'](_0x5d3b39['position']),_0x46c1f0=_0x5141bf['getShiftedBy'](_0x5d3b39['howMany']);break;case'split':_0x5141bf=_0x172b9f['model']['createPositionAt'](_0x5d3b39['splitPosition']),_0x46c1f0=_0x172b9f['model']['createPositionAt'](_0x5d3b39['moveTargetPosition']);break;case'move':_0x5141bf=_0x172b9f['model']['createPositionAt'](_0x5d3b39['targetPosition']),_0x46c1f0=_0x5141bf['getShiftedBy'](_0x5d3b39['howMany']);break;default:return;}const _0x3328b7=_0x172b9f['model']['createRange'](_0x5141bf,_0x46c1f0);_0x172b9f['model']['change'](()=>{for(const {suggestion:_0x515d12,meta:_0x459d18}of this['_findSuggestions'](_0x3328b7)){if(_0x515d12['isMultiRange'])continue;if('formatInline'==_0x515d12['type'])continue;const _0xbd0cb7=this['_getAttributeKey'](_0x515d12);if(_0xbd0cb7&&this['_isBlockAttribute'](_0xbd0cb7)&&'split'!=_0x5d3b39['type'])continue;const _0x3464ab=_0x515d12['data']&&_0x515d12['data']['multipleBlocks'];('formatBlock'!=_0x515d12['type']||'split'==_0x5d3b39['type']&&!_0x3464ab)&&(_0x459d18['containsRangeInObject']||'insertion'==_0x515d12['type']&&_0x459d18['isOwn']||_0x515d12['getFirstRange']()['containsRange'](_0x3328b7)&&this['_breakSuggestionMarker'](_0x515d12,_0x5141bf,_0x46c1f0));}});},{'priority':'lowest'}),_0x172b9f['model']['on']('deleteContent',(_0x1565da,_0x1882a2)=>{const _0x5b1080=_0x1882a2[0x0],_0xa99a22=_0x1882a2[0x1];if(_0xa99a22&&_0xa99a22['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5b1080['isCollapsed'])return;const _0x3e4407=_0x172b9f['model']['schema'],{start:_0xed0be2,end:_0x1ebd83}=_0x5b1080['getFirstRange'](),_0x169f59=_0xed0be2['nodeAfter']&&_0x3e4407['isLimit'](_0xed0be2['nodeAfter'])?null:_0x3e4407['getNearestSelectionRange'](_0xed0be2,'forward'),_0x5b51a2=_0x1ebd83['nodeBefore']&&_0x3e4407['isLimit'](_0x1ebd83['nodeBefore'])?null:_0x3e4407['getNearestSelectionRange'](_0x1ebd83,'backward'),_0x442223=_0x172b9f['model']['createRange'](_0x169f59?_0x169f59['start']:_0xed0be2,_0x5b51a2?_0x5b51a2['end']:_0x1ebd83);_0x172b9f['model']['change'](_0xf0f0f4=>{this['markDeletion'](_0x442223);const _0x167c0c=_0x172b9f['model']['schema']['getNearestSelectionRange'](_0x442223['start']);_0x5b1080['is']('documentSelection')?_0xf0f0f4['setSelection'](_0x167c0c):_0x5b1080['setTo'](_0x167c0c);}),_0x1565da['stop']();},{'priority':_0xbff88b['normal']+0xa}),_0x172b9f['model']['on']('insertContent',(_0x39927f,_0x15c96f)=>{const _0x178a3b=_0x15c96f[_0x15c96f['length']-0x1];_0x178a3b&&_0x178a3b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x172b9f['model']['change'](()=>{let _0x1a29b0=_0x172b9f['model']['insertContent'](_0x15c96f[0x0],_0x15c96f[0x1],_0x15c96f[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a29b0)return;_0x39927f['return']=_0x1a29b0['clone']();const _0x5e48cd=_0x1a29b0['end']['nodeBefore'],_0x203e2e=_0x172b9f['model']['schema'];_0x5e48cd&&_0x203e2e['isBlock'](_0x5e48cd)&&!_0x203e2e['isObject'](_0x5e48cd)&&(_0x1a29b0=_0x172b9f['model']['createRange'](_0x1a29b0['start'],_0x172b9f['model']['createPositionAt'](_0x5e48cd,'end'))),this['markInsertion'](_0x1a29b0);}),_0x39927f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xb3501c=new x(_0x172b9f,this['_suggestions']);_0x172b9f['commands']['add']('acceptSuggestion',_0xb3501c),this['enableCommand']('acceptSuggestion');const _0x2b0c53=new R(_0x172b9f,this['_suggestions']);_0x172b9f['commands']['add']('discardSuggestion',_0x2b0c53),this['enableCommand']('discardSuggestion'),_0x172b9f['commands']['add']('acceptAllSuggestions',new E(_0x172b9f,_0xb3501c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x172b9f['commands']['add']('discardAllSuggestions',new E(_0x172b9f,_0x2b0c53,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x172b9f['commands']['add']('acceptSelectedSuggestions',new O(_0x172b9f,_0xb3501c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x172b9f['commands']['add']('discardSelectedSuggestions',new O(_0x172b9f,_0x2b0c53,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1e9fb1=_0x172b9f['plugins']['get']('CommentsRepository');this['listenTo'](_0x1e9fb1,'addComment',(_0x4ae56b,{threadId:_0xe33035})=>{const _0x4de7a7=this['_suggestions']['get'](_0xe33035);_0x4de7a7&&_0x4de7a7['commentThread']&&0x1===_0x4de7a7['commentThread']['length']&&this['_updateSuggestionData'](_0xe33035,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1e9fb1,'removeComment',(_0x161bc0,{threadId:_0x6da820})=>{const _0x371195=this['_suggestions']['get'](_0x6da820);_0x371195&&_0x371195['commentThread']&&!_0x371195['commentThread']['length']&&this['_updateSuggestionData'](_0x6da820,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x370a99){if(this['_adapter'])throw new _0x592c71('track-changes-adapter-already-set',this);this['_adapter']=_0x370a99;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xfb7038=!0x1,toJSON:_0x18ea73=!0x1}={}){const _0x3c08ea=[];for(const _0x3ac8fb of this['_suggestions']['values']())_0xfb7038&&!_0x3ac8fb['isInContent']||_0x3c08ea['push'](_0x3ac8fb);return _0x18ea73?_0x3c08ea['map'](_0x487d20=>_0x487d20['toJSON']()):_0x3c08ea;}['getSuggestion'](_0x1924c4){const _0xa79362=this['_suggestions']['get'](_0x1924c4);if(!_0xa79362)throw new _0x592c71('track-changes-suggestion-not-found',this);return _0xa79362;}['hasSuggestion'](_0x48d57c){return this['_suggestions']['has'](_0x48d57c);}['addSuggestionData'](_0x28a41d){const {authorId:_0x5d6280,id:_0xb5518f,attributes:_0x94241f}=_0x28a41d,[_0x498abb,_0x4c47e6]=_0x28a41d['type']['split'](':'),_0xf0abc3=this['_suggestions']['get'](_0xb5518f)||this['_createSuggestion'](_0x498abb,_0x4c47e6,_0xb5518f,_0x5d6280,_0x94241f);if(this['_addThreadToSuggestion'](_0xf0abc3),this['_checkSuggestionCorrectness'](_0xf0abc3,_0x498abb,_0x4c47e6||null,_0x5d6280),_0xf0abc3['createdAt']=_0x28a41d['createdAt'],_0xf0abc3['_isDataLoaded']=!0x0,_0x94241f&&_0x94241f['@external']){const _0x407fa7=_0x94241f['@external'],_0x263519=this['_getExternalAuthor'](_0x407fa7['authorName']);_0xf0abc3['authoredAt']=_0x407fa7['createdAt'],_0xf0abc3['author']=_0x263519,_0xf0abc3['isExternal']=!0x0;}else _0xf0abc3['authoredAt']=_0x28a41d['createdAt'];switch(_0x28a41d['data']&&(_0xf0abc3['data']=_0x28a41d['data']),_0x28a41d['attributes']&&(_0xf0abc3['attributes']=_0x28a41d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf0abc3['_saved']=!0x0),this['_suggestionState']['get'](_0xf0abc3)){case'notReady':this['_suggestionState']['set'](_0xf0abc3,'dataReady');break;case'markerReady':_0xf0abc3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf0abc3])),this['_refreshSuggestionsChain'](new Set([_0xf0abc3])),this['_suggestionState']['set'](_0xf0abc3,'ready'),this['fire']('suggestionLoaded',_0xf0abc3)):this['_suggestionState']['set'](_0xf0abc3,'removed');}return _0xf0abc3;}['acceptSuggestion'](_0x565b0d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x78cd3a of _0x565b0d['getAllAdjacentSuggestions']())_0x78cd3a['accept']();});});}['discardSuggestion'](_0x4ef518){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x135e79 of _0x4ef518['getAllAdjacentSuggestions']())_0x135e79['discard']();});});}['enableCommand'](_0x2f23bf,_0x189779){const _0x4273d1=this['editor']['commands']['get'](_0x2f23bf);if(!_0x4273d1)throw new _0x592c71('track-changes-command-not-found',this,{'commandName':_0x2f23bf});if(this['_enabledCommands']['has'](_0x4273d1))throw new _0x592c71('track-changes-enable-command-twice',this,{'commandName':_0x2f23bf});this['_enabledCommands']['add'](_0x4273d1),_0x189779&&_0x4273d1['on']('execute',(_0x2f149c,_0x342dc7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x342dc7['length']>0x0&&_0x342dc7[_0x342dc7['length']-0x1]&&_0x342dc7[_0x342dc7['length']-0x1]['forceDefaultExecution']?_0x342dc7['pop']():(_0x2f149c['return']=_0x189779((..._0x318ef6)=>_0x4273d1['execute'](..._0x318ef6,{'forceDefaultExecution':!0x0}),..._0x342dc7),_0x2f149c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x428e19){let _0x2856ff,_0x51ab8f;const _0x4b1f9d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2856ff=_0x428e19();}catch(_0x586058){_0x51ab8f=_0x586058;}return _0x4b1f9d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x51ab8f&&_0x592c71['rethrowUnexpectedError'](_0x51ab8f,this),_0x2856ff;}['markInsertion'](_0x4fe162,_0x3954e4=null,_0x17a049={}){if(_0x4fe162['isCollapsed'])return null;const _0x48411b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x13cc7d,meta:_0x480a49}of this['_findSuggestions'](_0x4fe162,'insertion'))if(_0x480a49['isOwn']){if(!_0x480a49['isNextTo']){if(_0x480a49['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x13cc7d,_0x17a049))continue;return _0x13cc7d;}if(qt(_0x13cc7d,_0x17a049))return _0x13cc7d;this['_breakSuggestionMarker'](_0x13cc7d,_0x4fe162['start'],_0x4fe162['end']);break;}if(_0x3954e4==_0x13cc7d['subType']&&qt(_0x13cc7d,_0x17a049)){const _0x4bd9a6=_0x13cc7d['getFirstRange']();return _0x4bd9a6['start']['isEqual'](_0x4fe162['end'])?this['_setSuggestionRange'](_0x13cc7d,this['_model']['createRange'](_0x4fe162['start'],_0x4bd9a6['end'])):this['_setSuggestionRange'](_0x13cc7d,this['_model']['createRange'](_0x4bd9a6['start'],_0x4fe162['end'])),_0x13cc7d;}}const _0x17eefa=_0x2120b6(),_0x24a5b6=_0x48411b['id'],_0x5d7f6b=_0x3954e4?'insertion:'+_0x3954e4:'insertion',_0x22312a=this['_setSuggestionData']({'id':_0x17eefa,'type':_0x5d7f6b,'createdAt':new Date(),'authorId':_0x24a5b6,'attributes':_0x17a049});return this['_addSuggestionMarker'](_0x5d7f6b,_0x17eefa,_0x24a5b6,_0x4fe162),_0x22312a;}['markMultiRangeInsertion'](_0x707e30,_0x2f7c29='multi',_0x5c68b8={}){const _0x439c2a=this['editor']['plugins']['get']('Users')['me'],_0x38437b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f7c29,'join');for(const _0x19d095 of this['getSuggestions']())if(_0x19d095['author']['id']==_0x439c2a['id']&&'insertion'==_0x19d095['type']&&_0x19d095['subType']==_0x2f7c29&&qt(_0x19d095,_0x5c68b8)&&(_0x38437b(_0x19d095['getRanges'](),_0x707e30)||_0x38437b(_0x707e30,_0x19d095['getRanges']()))){for(const _0x45816a of _0x707e30)_0x19d095['addRange'](_0x45816a);return _0x19d095;}for(const {suggestion:_0x2a1c43,meta:_0x23ca16}of this['_findSuggestions'](_0x707e30,'insertion')){if(!_0x23ca16['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x23ca16['containsRangeInObject'])continue;if(!qt(_0x2a1c43,_0x5c68b8))continue;let _0x502f9b=!0x0;for(const _0x52176a of _0x2a1c43['getRanges']())for(const _0x5dd700 of _0x707e30)if(!_0x52176a['containsRange'](_0x5dd700)){_0x502f9b=!0x1;break;}if(_0x502f9b)return _0x2a1c43;}const _0xfca8c5=_0x2120b6(),_0x445688=_0x439c2a['id'],_0x35da30='insertion:'+_0x2f7c29,_0x1cea48=this['_setSuggestionData']({'id':_0xfca8c5,'type':_0x35da30,'createdAt':new Date(),'authorId':_0x445688,'attributes':_0x5c68b8});for(const _0x39d9c5 of _0x707e30)this['_addSuggestionMarker'](_0x35da30,_0xfca8c5,_0x445688,_0x39d9c5,u['getMultiRangeId']());return _0x1cea48;}['markInlineFormat'](_0x46115b,_0x1c2a2d,_0x2f50b7=null,_0x37c78a={}){if(_0x2f50b7=_0x2f50b7||Gt(_0x1c2a2d),_0x46115b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x144c7d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f50b7,'accept');return this['forceDefaultExecution'](()=>_0x144c7d([_0x46115b],_0x1c2a2d,_0x37c78a)),null;}const _0x1d5315=this['editor']['plugins']['get']('Users')['me'],_0x39d9c9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x28de1b,meta:_0x28592d}of this['_findSuggestions'](_0x46115b,'insertion'))_0x28592d['isOwn']&&!_0x28592d['isInsideObject']&&_0x39d9c9['push'](..._0x28de1b['getRanges']());}const _0x46f233=function(_0x286e32,_0x2bb001){const _0xe9a84d=[];for(const _0x313283 of _0x2bb001){const _0x336989=_0x286e32['getIntersection'](_0x313283);_0x336989&&_0xe9a84d['push'](_0x336989);}return _0xe9a84d;}(_0x46115b,_0x39d9c9),_0x1d7cdd=function(_0x4553ba,_0x341112){const _0x2d8e5c=[_0x4553ba];for(const _0x231dbe of _0x341112){let _0x20e233=0x0;for(;_0x20e233<_0x2d8e5c['length'];){const _0x56367f=_0x2d8e5c[_0x20e233]['getDifference'](_0x231dbe);_0x2d8e5c['splice'](_0x20e233,0x1,..._0x56367f),_0x20e233+=_0x56367f['length'];}}return _0x2d8e5c;}(_0x46115b,_0x39d9c9);_0x46f233['length']&&this['_model']['change'](()=>{for(const _0x15f8de of _0x46f233){const _0x3369be=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f50b7,'accept');this['forceDefaultExecution'](()=>_0x3369be([_0x15f8de],_0x1c2a2d,_0x37c78a));}});for(const _0x36fe5d of _0x1d7cdd){let _0x3cd9e7=null,_0x4c2d02=_0x36fe5d['start'],_0x501f26=_0x36fe5d['end'];for(const {suggestion:_0xd9875a,meta:_0x518fc9}of this['_findSuggestions'](_0x36fe5d,'formatInline')){if(!_0x518fc9['isOwn'])continue;if(_0xd9875a['subType']!=_0x2f50b7)continue;if(!qt(_0xd9875a,_0x37c78a))continue;const _0x431a12=_0xd9875a['getFirstRange']();if(_0x431a12['containsRange'](_0x36fe5d,!0x0))return null;_0x4c2d02=_0x4c2d02['isBefore'](_0x431a12['start'])?_0x4c2d02:_0x431a12['start'],_0x501f26=_0x501f26['isAfter'](_0x431a12['end'])?_0x501f26:_0x431a12['end'],_0x3cd9e7?_0x431a12['start']['isBefore'](_0x3cd9e7['getFirstRange']()['start'])?(_0x3cd9e7['removeMarkers'](),_0x3cd9e7=_0xd9875a):_0xd9875a['removeMarkers']():_0x3cd9e7=_0xd9875a;}const _0x87bc1a=this['_model']['createRange'](_0x4c2d02,_0x501f26);if(_0x3cd9e7)this['_setSuggestionRange'](_0x3cd9e7,_0x87bc1a);else{const _0x20cd17=_0x2120b6(),_0x2c944b=_0x1d5315['id'];this['_setSuggestionData']({'id':_0x20cd17,'type':'formatInline:'+_0x2f50b7,'data':_0x1c2a2d,'createdAt':new Date(),'authorId':_0x2c944b,'attributes':_0x37c78a}),this['_addSuggestionMarker']('formatInline:'+_0x2f50b7,_0x20cd17,_0x2c944b,_0x87bc1a);}}return null;}['markBlockFormat'](_0x32beb1,_0x3006e2,_0x25b99e=[],_0x534a31=null,_0x36a503={}){_0x3006e2['formatGroupId']||(_0x3006e2['formatGroupId']=_0x3006e2['commandName']),_0x3006e2['multipleBlocks']=_0x32beb1['is']('range'),_0x534a31=_0x534a31||Gt(_0x3006e2);const _0x823923=_0x25b99e['map'](_0x4caa48=>Lt(_0x4caa48,this['_model'])),_0x3b0137=_0x32beb1['is']('range')?_0x32beb1:Lt(_0x32beb1,this['_model']);if('never'===this['_trackFormatChanges']){const _0xec4af1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x534a31,'accept');return this['forceDefaultExecution'](()=>_0xec4af1([_0x3b0137],_0x3006e2,_0x36a503)),null;}_0x823923['push'](_0x3b0137);let _0x8a5d7c=!0x0;for(const _0x7255c0 of _0x823923)if(!this['_rangeIsInLocalUserInsertion'](_0x7255c0)){_0x8a5d7c=!0x1;break;}if(_0x8a5d7c&&'always'!==this['_trackFormatChanges']){const _0x3d2cbc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x534a31,'accept');return this['forceDefaultExecution'](()=>_0x3d2cbc([_0x3b0137],_0x3006e2,_0x36a503)),null;}let _0x3674a9=null,_0x5b426f=_0x3b0137['start'],_0x3c19a0=_0x3b0137['end'];for(const {suggestion:_0x221774,meta:_0x7c5218}of this['_findSuggestions'](_0x3b0137,'formatBlock')){if(!_0x7c5218['isOwn'])continue;if(_0x7c5218['isNextTo']||_0x7c5218['containsRangeInObject']||_0x7c5218['isInsideObject'])continue;if(_0x221774['data']['formatGroupId']!=_0x3006e2['formatGroupId'])continue;if(!qt(_0x221774,_0x36a503))continue;const _0x48fb4a=_0x221774['getFirstRange']();if(_0x221774['subType']==_0x534a31){if(_0x48fb4a['containsRange'](_0x3b0137,!0x0))return null;_0x5b426f=_0x5b426f['isBefore'](_0x48fb4a['start'])?_0x5b426f:_0x48fb4a['start'],_0x3c19a0=_0x3c19a0['isAfter'](_0x48fb4a['end'])?_0x3c19a0:_0x48fb4a['end'],_0x3674a9?_0x48fb4a['start']['isBefore'](_0x3674a9['getFirstRange']()['start'])?(_0x3674a9['removeMarkers'](),_0x3674a9=_0x221774):_0x221774['removeMarkers']():_0x3674a9=_0x221774;}else{const _0x1d3b8c=_0x3b0137['getIntersection'](_0x48fb4a);this['_cutOutSuggestionMarker'](_0x221774,_0x1d3b8c);}}const _0x40170f=this['editor']['plugins']['get']('Users')['me'],_0x3d5041=_0x2120b6(),_0x15699d=_0x40170f['id'];if(_0x3674a9)return this['_setSuggestionRange'](_0x3674a9,this['_model']['createRange'](_0x5b426f,_0x3c19a0)),_0x3674a9;{const _0x326225=this['_setSuggestionData']({'id':_0x3d5041,'type':'formatBlock:'+_0x534a31,'data':_0x3006e2,'createdAt':new Date(),'authorId':_0x15699d,'attributes':_0x36a503});return this['_addSuggestionMarker']('formatBlock:'+_0x534a31,_0x3d5041,_0x15699d,this['_model']['createRange'](_0x5b426f,_0x3c19a0)),_0x326225;}}['markMultiRangeBlockFormat'](_0x261760,_0x23d8bb,_0x12686f=[],_0x3cfedf=null,_0x3fab26={}){_0x23d8bb['formatGroupId']||(_0x23d8bb['formatGroupId']=_0x23d8bb['commandName']);const _0x516dac=_0x261760[0x0];_0x23d8bb['multipleBlocks']=_0x516dac['is']('range'),_0x3cfedf=_0x3cfedf||Gt(_0x23d8bb);const _0x59963f=_0x12686f['map'](_0x1d901e=>Lt(_0x1d901e,this['_model'])),_0x2e61d4=_0x516dac['is']('range')?_0x261760:_0x261760['map'](_0xb59edd=>Lt(_0xb59edd,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4b4144=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cfedf,'accept');return this['forceDefaultExecution'](()=>_0x4b4144(_0x2e61d4,_0x23d8bb,_0x3fab26)),null;}_0x59963f['push'](..._0x2e61d4);let _0x25e165=!0x0;for(const _0x4f1891 of _0x59963f)if(!this['_rangeIsInLocalUserInsertion'](_0x4f1891)){_0x25e165=!0x1;break;}if(_0x25e165&&'always'!==this['_trackFormatChanges']){const _0x59b653=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cfedf,'accept');return this['forceDefaultExecution'](()=>_0x59b653(_0x2e61d4,_0x23d8bb,_0x3fab26)),null;}const _0x12e846=this['editor']['plugins']['get']('Users')['me'];for(const _0x2baeaa of this['getSuggestions']()){if(_0x2baeaa['author']['id']!=_0x12e846['id'])continue;if('formatBlock'!=_0x2baeaa['type']||_0x2baeaa['data']['formatGroupId']!=_0x23d8bb['formatGroupId'])continue;if(!qt(_0x2baeaa,_0x3fab26))continue;const _0x54c94a=_0x2baeaa['subType']==_0x3cfedf;for(let _0x1b26ad=0x0;_0x1b26ad<_0x2e61d4['length'];_0x1b26ad++){const _0x11b721=_0x2e61d4[_0x1b26ad];for(const _0x2cc010 of _0x2baeaa['getMarkers']()){const _0x737d3=_0x2cc010['getRange']();if(_0x11b721['isEqual'](_0x737d3)){_0x54c94a?(_0x2e61d4['splice'](_0x1b26ad,0x1),_0x1b26ad--):_0x2baeaa['removeMarker'](_0x2cc010['name']);break;}}}}if(0x0==_0x2e61d4['length'])return null;const _0x5ef98e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cfedf,'join');for(const _0x34955b of this['getSuggestions']())if(_0x34955b['author']['id']==_0x12e846['id']&&'formatBlock'==_0x34955b['type']&&_0x34955b['data']['formatGroupId']==_0x23d8bb['formatGroupId']&&_0x34955b['subType']==_0x3cfedf&&qt(_0x34955b,_0x3fab26)&&(_0x5ef98e(_0x34955b['getRanges'](),_0x2e61d4)||_0x5ef98e(_0x2e61d4,_0x34955b['getRanges']()))){for(const _0x259949 of _0x2e61d4)_0x34955b['addRange'](_0x259949);return _0x34955b;}const _0x5d3bde=_0x2120b6(),_0x42c404=_0x12e846['id'],_0x6773b8='formatBlock:'+_0x3cfedf,_0x547e43=this['_setSuggestionData']({'id':_0x5d3bde,'type':_0x6773b8,'data':_0x23d8bb,'createdAt':new Date(),'authorId':_0x42c404,'attributes':_0x3fab26});for(const _0x1890b8 of _0x2e61d4)this['_addSuggestionMarker'](_0x6773b8,_0x5d3bde,_0x42c404,_0x1890b8,u['getMultiRangeId']());return _0x547e43;}['markDeletion'](_0x18b338,_0x5704c6=null,_0x5d7536={}){if(_0x18b338['isCollapsed'])return null;const _0x34c5f7=this['editor']['plugins']['get']('Users')['me'],_0x464cad=new _0x411321(_0x18b338['start'],_0x18b338['end']);for(const {suggestion:_0x28e3a6,meta:_0x129a5c}of this['_findSuggestions'](_0x464cad,'insertion'))if(_0x129a5c['isOwn']&&!_0x129a5c['isNextTo']){if(_0x28e3a6['isMultiRange']){const _0x501c40=_0x28e3a6['getRanges']()['filter'](_0x93a0a3=>'$graveyard'!=_0x93a0a3['root']['rootName']);_0x501c40['every'](_0x44fccb=>_0x464cad['containsRange'](_0x44fccb,!0x0))&&_0x28e3a6['discard']();if(_0x501c40['some'](_0x3cfb7c=>_0x3cfb7c['containsRange'](_0x464cad,!0x0))){const _0x54280e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5704c6,'accept');return this['forceDefaultExecution'](()=>_0x54280e([_0x464cad],null,_0x5d7536)),null;}}else{const _0x1e82b4=_0x464cad['getIntersection'](_0x28e3a6['getFirstRange']());null!==_0x1e82b4&&_0x28e3a6['_onDiscard']([_0x1e82b4],null,_0x5d7536);}}if(_0x464cad['detach'](),_0x464cad['isCollapsed']||'$graveyard'==_0x464cad['root']['rootName'])return null;let _0x3bd97f=null,_0x50635f=_0x464cad['start'],_0xb59fcf=_0x464cad['end'];const _0x37ae15=this['_findSuggestions'](_0x464cad,'deletion');for(const {suggestion:_0x91c75d,meta:_0x4cfab0}of _0x37ae15){const _0xac1796=this['_model']['createRange'](_0x50635f,_0xb59fcf);if(_0x4cfab0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4cfab0['containsRangeInObject']&&!_0x4cfab0['isInsideObject'])){if(_0x91c75d['isMultiRange']){if(!qt(_0x91c75d,_0x5d7536))continue;let _0x57308=!0x0;for(const _0x4e8e42 of _0x91c75d['getRanges']()){if(_0x4e8e42['containsRange'](_0xac1796,!0x0))return _0x91c75d;_0xac1796['containsRange'](_0x4e8e42)||(_0x57308=!0x1);}_0x57308&&_0x91c75d['discard']();}else{const _0x3f799f=_0x91c75d['getFirstRange']();if(_0x3f799f['containsRange'](_0xac1796,!0x0))return _0x91c75d;if(!qt(_0x91c75d,_0x5d7536)){_0xac1796['containsRange'](_0x3f799f)?_0x91c75d['removeMarkers']():_0x3f799f['containsPosition'](_0x50635f)?_0x50635f=_0x3f799f['end']:_0x3f799f['containsPosition'](_0xb59fcf)&&(_0xb59fcf=_0x3f799f['start']);continue;}_0x50635f=_0x50635f['isBefore'](_0x3f799f['start'])?_0x50635f:_0x3f799f['start'],_0xb59fcf=_0xb59fcf['isAfter'](_0x3f799f['end'])?_0xb59fcf:_0x3f799f['end'],_0x5d7536=Object['assign']({},_0x91c75d['attributes']),_0x3bd97f?_0x3f799f['start']['isBefore'](_0x3bd97f['getFirstRange']()['start'])?(_0x3bd97f['removeMarkers'](),_0x3bd97f=_0x91c75d):_0x91c75d['removeMarkers']():_0x3bd97f=_0x91c75d;}}}if(_0x3bd97f)return this['_setSuggestionRange'](_0x3bd97f,this['_model']['createRange'](_0x50635f,_0xb59fcf)),_0x3bd97f;{const _0x2477b4=_0x2120b6(),_0x31e305=this['_model']['createRange'](_0x50635f,_0xb59fcf),_0x5dce0e=_0x34c5f7['id'],_0x1e1a62=_0x5704c6?'deletion:'+_0x5704c6:'deletion',_0x564ab1=this['_setSuggestionData']({'id':_0x2477b4,'type':_0x1e1a62,'createdAt':new Date(),'authorId':_0x5dce0e,'attributes':_0x5d7536});return this['_addSuggestionMarker'](_0x1e1a62,_0x2477b4,_0x5dce0e,_0x31e305),_0x564ab1;}}['markMultiRangeDeletion'](_0x4b953a,_0x2f7a95='multi',_0x44e4dc={}){const _0x220806=this['editor']['plugins']['get']('Users')['me'],_0x5f50fd=_0x4b953a['map'](_0x1289fc=>new _0x411321(_0x1289fc['start'],_0x1289fc['end'])),_0x22bacb=new Set();for(const {suggestion:_0x2a3ea6,meta:_0x2054c4}of this['_findSuggestions'](_0x5f50fd,'insertion'))_0x2054c4['isOwn']&&!_0x2054c4['isNextTo']&&_0x22bacb['add'](_0x2a3ea6);for(const _0x576d15 of _0x22bacb)if(_0x576d15['isMultiRange']){const _0x32be5f=_0x576d15['getRanges']();(!_0x576d15['attributes']||!_0x576d15['attributes']['skipNestingCheck'])&&(_0x32be5f['every'](_0x4969d7=>_0x5f50fd['some'](_0x55fb6e=>_0x55fb6e['containsRange'](_0x4969d7,!0x0)))&&_0x576d15['discard']());if(_0x5f50fd['every'](_0x51e731=>_0x32be5f['some'](_0x23791f=>_0x23791f['containsRange'](_0x51e731,!0x0)))){const _0x1ab342=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f7a95,'accept');return this['forceDefaultExecution'](()=>_0x1ab342(_0x4b953a,null,_0x44e4dc)),null;}}else{const _0x4135ce=_0x576d15['getFirstRange']();_0x5f50fd['some'](_0x4667ed=>_0x4667ed['containsRange'](_0x4135ce,!0x0))&&_0x576d15['discard']();if(_0x5f50fd['every'](_0x3faf3c=>_0x4135ce['containsRange'](_0x3faf3c,!0x0))){const _0x54abfd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f7a95,'accept');return this['forceDefaultExecution'](()=>_0x54abfd(_0x5f50fd,null,_0x44e4dc)),null;}}const _0x4adec6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f7a95,'join');let _0x1774e7=null;for(const _0x3c6a55 of this['getSuggestions']())if(_0x3c6a55['author']['id']==_0x220806['id']&&_0x3c6a55['isInContent']&&'deletion'==_0x3c6a55['type']&&_0x3c6a55['subType']==_0x2f7a95&&qt(_0x3c6a55,_0x44e4dc)&&(_0x4adec6(_0x3c6a55['getRanges'](),_0x5f50fd)||_0x4adec6(_0x5f50fd,_0x3c6a55['getRanges']()))){if(_0x1774e7){if(_0x3c6a55['commentThread']&&_0x3c6a55['commentThread']['length'])continue;for(const _0x1e5bd4 of _0x3c6a55['getRanges']())_0x1774e7['isIntersectingWithRange'](_0x1e5bd4)||_0x1774e7['addRange'](_0x1e5bd4);_0x3c6a55['removeMarkers']();}else{_0x1774e7=_0x3c6a55;for(const _0x33b69e of _0x5f50fd)_0x3c6a55['isIntersectingWithRange'](_0x33b69e)||_0x3c6a55['addRange'](_0x33b69e);}}if(_0x1774e7)return _0x1774e7;_0x22bacb['clear']();for(const {suggestion:_0x288fd5,meta:_0xa1ce24}of this['_findSuggestions'](_0x5f50fd,'deletion'))_0xa1ce24['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa1ce24['containsRangeInObject']&&!_0xa1ce24['isInsideObject'])&&qt(_0x288fd5,_0x44e4dc)&&_0x22bacb['add'](_0x288fd5);for(const _0x4d4425 of _0x22bacb){const _0x47afb6=_0x4d4425['getRanges']();if(!_0x44e4dc||!_0x44e4dc['skipNestingCheck']){if(_0x5f50fd['every'](_0x5944c1=>_0x47afb6['some'](_0x45af5d=>_0x45af5d['containsRange'](_0x5944c1,!0x0))))return _0x4d4425;}(!_0x4d4425['attributes']||!_0x4d4425['attributes']['skipNestingCheck'])&&(_0x47afb6['every'](_0x18ca5c=>_0x5f50fd['some'](_0x530c94=>_0x530c94['containsRange'](_0x18ca5c,!0x0)))&&_0x4d4425['discard']());}const _0x2c1391=_0x2120b6(),_0x14f6b3=_0x220806['id'],_0x289763='deletion:'+_0x2f7a95,_0x13af14=this['_setSuggestionData']({'id':_0x2c1391,'type':_0x289763,'createdAt':new Date(),'authorId':_0x14f6b3,'attributes':_0x44e4dc});for(const _0xdc06cc of _0x5f50fd)_0xdc06cc['detach'](),_0xdc06cc['isCollapsed']||'$graveyard'==_0xdc06cc['root']['rootName']||this['_addSuggestionMarker'](_0x289763,_0x2c1391,_0x14f6b3,_0xdc06cc,u['getMultiRangeId']());return _0x13af14;}['markAttributeChange'](_0x11f34d,_0x785186,_0x2a5695,_0x2633ea,_0x8cf619){if(_0x11f34d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x17b8e5=this['editor']['plugins']['get']('Users')['me']['id'],_0x42b46d=Array['from'](this['_suggestions']['values']())['filter'](_0x5b2df8=>'attribute'==_0x5b2df8['type']&&_0x5b2df8['data']['key']==_0x785186&&_0x5b2df8['isIntersectingWithRange'](_0x11f34d));if('default'===this['_trackFormatChanges']){const _0x5673b9=this['_findSuggestions'](_0x11f34d,'insertion')['filter'](({meta:_0x110b29})=>_0x110b29['isOwn']&&!_0x110b29['isInsideObject']&&!_0x110b29['isNextTo'])['map'](({suggestion:_0x196a07})=>_0x196a07);_0x42b46d['unshift'](..._0x5673b9);}const _0x105b33=new Map([[_0x11f34d,_0x2a5695]]);for(const _0x147759 of _0x42b46d){const _0x5e9fe6='attribute'==_0x147759['type']?_0x147759['data']['oldValue']:void 0x0,_0x391698=_0x147759['getFirstRange'](),_0xe687c3=Array['from'](_0x105b33['keys']())['find'](_0x2ce3bc=>_0x2ce3bc['isIntersecting'](_0x391698));if(!_0xe687c3)continue;const _0x5905f5=_0xe687c3['getDifference'](_0x391698);this['_isBlockAttribute'](_0x785186)&&'insertion'==_0x147759['type']&&0x0!=_0x5905f5['length']||(_0x105b33['delete'](_0xe687c3),_0x5905f5['forEach'](_0x4f9ec8=>{_0x105b33['set'](_0x4f9ec8,_0x2a5695);}),'insertion'!=_0x147759['type']&&_0x5e9fe6!=_0x2633ea&&_0x105b33['set'](_0xe687c3['getIntersection'](_0x391698),_0x5e9fe6));}const _0x18776e=[];for(const [_0x1a38b7,_0x4ef695]of _0x105b33){const _0x255aab=_0x2120b6(),_0x241e41={'key':_0x785186,'oldValue':_0x4ef695,'newValue':_0x2633ea};_0x785186['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':_0x785186});const _0xc013f6=('attribute:'+(_0x785186+'|'+Gt({'newValue':_0x2633ea})))['substring'](0x0,0x3c),_0x1b0b95=this['_setSuggestionData']({'id':_0x255aab,'type':_0xc013f6,'data':_0x241e41,'createdAt':new Date(),'authorId':_0x17b8e5,'attributes':_0x8cf619});_0x18776e['push'](_0x1b0b95),this['_addSuggestionMarker'](_0xc013f6,_0x255aab,_0x17b8e5,_0x1a38b7);}return _0x18776e;}['enableDefaultAttributesIntegration'](_0x4cb764){this['enableCommand'](_0x4cb764,(_0x1fc32f,..._0x5cc102)=>{this['_recordAttributeChanges'](()=>{_0x1fc32f(..._0x5cc102);});});}['registerBlockAttribute'](_0x34519a){this['_blockAttributeKeys']['add'](_0x34519a);}['registerInlineAttribute'](_0x2159dd){this['_inlineAttributeKeys']['add'](_0x2159dd);}['_getAttributeKey'](_0x257cb9){return'attribute'==_0x257cb9['type']?_0x257cb9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x57b8e4,_0x2b0ed5){const _0xdbc1ad=_0x57b8e4['getFirstMarker']();this['_model']['change'](_0xc7b37a=>{_0xc7b37a['updateMarker'](_0xdbc1ad,{'range':_0x2b0ed5});});}['_addThreadToSuggestion'](_0x3af45b){const _0x198814=_0x3af45b['id'],_0xe1f133=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x198814)||this['_commentsRepository']['addCommentThread']({'channelId':_0xe1f133,'threadId':_0x198814,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e0d0e=this['_commentsRepository']['getCommentThread'](_0x198814);_0x4e0d0e['unbind']('isRemovable'),_0x4e0d0e['isRemovable']=!0x1,_0x3af45b['commentThread']=_0x4e0d0e;}['_checkSuggestionCorrectness'](_0x56d385,_0x240074,_0x548fd4,_0x5b702a){if(_0x56d385['type']!=_0x240074||_0x56d385['subType']!=_0x548fd4||_0x56d385['creator']['id']!=_0x5b702a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x592c71('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x352d13,_0x187c2c){const _0x5b75e4=_0x352d13['getFirstRange']();if(_0x187c2c['isEqual'](_0x5b75e4))_0x352d13['removeMarkers']();else{if(_0x5b75e4['containsRange'](_0x187c2c)){const _0x57e707=this['_model']['createPositionAt'](_0x187c2c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x352d13,this['_model']['createRange'](_0x5b75e4['start'],_0x57e707));const _0x1d029c=_0x2120b6(),_0x57b3d1=_0x352d13['creator']['id'],_0x39ffc5=_0x352d13['type']+':'+_0x352d13['subType'];this['_setSuggestionData']({'id':_0x1d029c,'type':_0x39ffc5,'createdAt':new Date(),'authorId':_0x57b3d1,'data':_0x352d13['data'],'attributes':_0x352d13['attributes']});const _0x929847=this['_model']['createPositionAt'](_0x187c2c['end']['parent'],'after'),_0x1d19e2=this['_model']['createRange'](_0x929847,_0x5b75e4['end']);this['_addSuggestionMarker'](_0x39ffc5,_0x1d029c,_0x57b3d1,_0x1d19e2);}else{if(_0x5b75e4['containsPosition'](_0x187c2c['start'])){const _0x36338e=this['_model']['createPositionAt'](_0x187c2c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x352d13,this['_model']['createRange'](_0x5b75e4['start'],_0x36338e));}else{const _0x2ef650=this['_model']['createPositionAt'](_0x187c2c['end']['parent'],'after');this['_setSuggestionRange'](_0x352d13,this['_model']['createRange'](_0x2ef650,_0x5b75e4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x94f82e){for(const {suggestion:_0x35ab91,meta:_0x4bff2c}of this['_findSuggestions'](_0x94f82e,'insertion')){if(!_0x4bff2c['isOwn'])continue;const _0x3dc1be=_0x35ab91['getRanges']();for(const _0x53b8d7 of _0x3dc1be)if(!_0x94f82e['getDifference'](_0x53b8d7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3a945b){const _0x515101=this['editor']['plugins']['get']('Users')['getUser'](_0x3a945b);if(!_0x515101)throw new _0x592c71('track-changes-user-not-found',this);return _0x515101;}['_getExternalAuthor'](_0x242697){const _0x4cadfb=this['editor']['plugins']['get']('Users'),_0x5b11f7=_0x39b023('external:'+_0x242697),_0x694e06=_0x4cadfb['getUser'](_0x5b11f7);return _0x694e06||_0x4cadfb['addUser']({'id':_0x5b11f7,'name':_0x242697});}['_createSuggestion'](_0x3d0c10,_0x150d9d,_0x269d76,_0x16560e,_0x5b9271){const _0x54d8ba=this['_getAuthorFromId'](_0x16560e),_0x3bcd39=this['_suggestionFactory']['buildSuggestion'](_0x3d0c10,_0x150d9d,_0x269d76,_0x54d8ba,_0x5b9271,_0x5d9c67=>{this['_updateSuggestionData'](_0x269d76,{'attributes':_0x5d9c67});const _0x4bcaab=this['getSuggestion'](_0x269d76);this['_joinWithAdjacentSuggestions'](new Set([_0x4bcaab])),this['_refreshSuggestionsChain'](new Set([_0x4bcaab]));});return this['listenTo'](_0x3bcd39,'accept',()=>{this['_updateSuggestionData'](_0x269d76,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3bcd39,'discard',()=>{this['_updateSuggestionData'](_0x269d76,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x269d76,_0x3bcd39),this['_suggestionState']['set'](_0x3bcd39,'notReady'),_0x3bcd39;}['_splitMarkerName'](_0x347965){const _0x559a0a=_0x347965['split'](':');return{'group':_0x559a0a[0x0],'type':_0x559a0a[0x1],'subType':_0x559a0a['length']>=0x5?_0x559a0a[0x2]:null,'id':_0x559a0a['length']<0x5?_0x559a0a[0x2]:_0x559a0a[0x3],'authorId':_0x559a0a['length']<0x5?_0x559a0a[0x3]:_0x559a0a[0x4],'markerCount':0x6==_0x559a0a['length']?_0x559a0a[0x5]:null};}['_breakSuggestionMarker'](_0xe3b0d2,_0x1df6ce,_0x3860cf){const _0x5454d7=_0xe3b0d2['getFirstRange'](),_0x4dd6a9=_0x5454d7['start'],_0x20ccac=_0x5454d7['end'];this['_setSuggestionRange'](_0xe3b0d2,this['_model']['createRange'](_0x4dd6a9,_0x1df6ce));const _0x53ca2f=_0x2120b6(),_0x57a6d7=_0xe3b0d2['creator']['id'],_0x38d079=_0xe3b0d2['type']+(_0xe3b0d2['subType']?':'+_0xe3b0d2['subType']:'');this['_setSuggestionData']({'id':_0x53ca2f,'type':_0x38d079,'createdAt':new Date(),'authorId':_0x57a6d7,'originalSuggestionId':_0xe3b0d2['id'],'attributes':_0xe3b0d2['attributes'],'data':_0xe3b0d2['data']});const _0x5e814d=this['_getAttributeKey'](_0xe3b0d2);('formatBlock'==_0xe3b0d2['type']||_0x5e814d&&this['_isBlockAttribute'](_0x5e814d))&&(_0x3860cf=this['_model']['createPositionBefore'](_0x3860cf['parent'])),this['_addSuggestionMarker'](_0x38d079,_0x53ca2f,_0x57a6d7,this['_model']['createRange'](_0x3860cf,_0x20ccac));}['_findSuggestions'](_0x50daf9,_0x5e7d4e=null){const _0x48e2c0=[],_0x52cd3a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x50daf9)||(_0x50daf9=[_0x50daf9]);for(const _0x5ee201 of this['getSuggestions']()){if(!_0x5ee201['isInContent'])continue;if(_0x5e7d4e&&_0x5ee201['type']!=_0x5e7d4e)continue;let _0x4fc414=!0x1;for(const _0x58aabd of _0x5ee201['getRanges']()){for(const _0x2ec2c9 of _0x50daf9){const _0x211d08=_0x2ec2c9['start']['isEqual'](_0x58aabd['end'])||_0x2ec2c9['end']['isEqual'](_0x58aabd['start']);if(_0x211d08||_0x2ec2c9['getIntersection'](_0x58aabd)){const _0x4bbee8=_0x2ec2c9['containsRange'](_0x58aabd)&&Ot(this['_model']['schema'],_0x58aabd['start'],_0x2ec2c9),_0x123d3f=_0x58aabd['containsRange'](_0x2ec2c9)&&Ot(this['_model']['schema'],_0x2ec2c9['start'],_0x58aabd);_0x48e2c0['push']({'suggestion':_0x5ee201,'meta':{'isOwn':_0x52cd3a==_0x5ee201['author'],'isNextTo':_0x211d08,'isInsideObject':_0x4bbee8,'containsRangeInObject':_0x123d3f}}),_0x4fc414=!0x0;break;}}if(_0x4fc414)break;}}return _0x48e2c0;}['_addSuggestionMarker'](_0x3a16fd,_0x15d34a,_0x4e22f7,_0x6d4d8d,_0x215da8){this['_model']['change'](_0x518cc0=>{let _0x101692='suggestion:'+_0x3a16fd+':'+_0x15d34a+':'+_0x4e22f7;_0x215da8&&(_0x101692=_0x101692+':'+_0x215da8),_0x518cc0['addMarker'](_0x101692,{'range':_0x6d4d8d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x28a2d7){const _0x3da5fa=_0x28a2d7['previous'],_0x211fa5=_0x28a2d7['next'];_0x28a2d7['previous']=null,_0x28a2d7['next']=null,null!=_0x3da5fa&&_0x3da5fa['next']==_0x28a2d7&&(_0x3da5fa['next']=_0x211fa5),null!=_0x211fa5&&_0x211fa5['previous']==_0x28a2d7&&(_0x211fa5['previous']=_0x3da5fa),'ready'==this['_suggestionState']['get'](_0x28a2d7)&&(this['_suggestionState']['set'](_0x28a2d7,'removed'),this['fire']('suggestionUnloaded',_0x28a2d7,_0x3da5fa,_0x211fa5));}['_setSuggestionData'](_0x46cabc){const _0x3061bc=_0x46cabc['id'],_0x183c65=this['addSuggestionData'](_0x46cabc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x155e19=this['editor']['plugins']['get']('PendingActions'),_0x33553e=_0x183c65['hasComments'],_0x3f4015=_0x183c65['subType']?_0x183c65['type']+':'+_0x183c65['subType']:_0x183c65['type'],_0x55363e=this['editor']['locale'],_0x16c921=_0x155e19['add'](o(_0x55363e,'PENDING_ACTION_SUGGESTION')),_0x57643e={'id':_0x3061bc,'type':_0x3f4015,'hasComments':_0x33553e,'data':_0x46cabc['data']||null,'originalSuggestionId':_0x46cabc['originalSuggestionId']||null,'attributes':_0x183c65['attributes']};this['_adapter']['addSuggestion'](_0x57643e)['then'](_0x24e0d5=>{_0x183c65['_saved']=!0x0,_0x155e19['remove'](_0x16c921),_0x24e0d5&&_0x24e0d5['createdAt']&&(this['_suggestions']['get'](_0x3061bc)['createdAt']=_0x24e0d5['createdAt']);})['catch'](_0x4134cc=>{throw _0x250a6e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x183c65['discard']();}),_0x183c65['stopListening'](),this['_suggestions']['delete'](_0x183c65['id']),this['_suggestionState']['delete'](_0x183c65),_0x4134cc;});}return _0x183c65;}['_isBlockAttribute'](_0x47c99a){return this['_blockAttributeKeys']['has'](_0x47c99a);}['_updateSuggestionData'](_0x33f2a5,_0x142c23){const _0xdde74d=this['editor']['plugins']['get']('PendingActions'),_0x110687=this['getSuggestion'](_0x33f2a5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x110687['_saved']){const _0x4487fd=_0xdde74d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x33f2a5,_0x142c23)['then'](()=>{_0xdde74d['remove'](_0x4487fd);});}else _0x110687['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x33f2a5,_0x142c23);});}}['_getSuggestionData'](_0x1b6e76){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x592c71('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1b6e76);}['_handleNewSuggestionMarker'](_0x386f6b){const {id:_0x53ceee,type:_0x2feba2,subType:_0x2f4adf,authorId:_0x399048}=this['_splitMarkerName'](_0x386f6b),_0x43e191=this['_suggestions']['get'](_0x53ceee)||this['_createSuggestion'](_0x2feba2,_0x2f4adf,_0x53ceee,_0x399048,{});switch(this['_checkSuggestionCorrectness'](_0x43e191,_0x2feba2,_0x2f4adf,_0x399048),this['_suggestionState']['get'](_0x43e191)){case'notReady':this['_getSuggestionData'](_0x53ceee)['then'](_0x55d882=>{let _0x2c5e4d=Promise['resolve']();_0x55d882['hasComments']&&(_0x2c5e4d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x53ceee})),_0x2c5e4d['then'](()=>{this['addSuggestionData'](_0x55d882)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x43e191,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x53ceee,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x43e191,'ready'),this['fire']('suggestionLoaded',_0x43e191);break;case'ready':this['fire']('suggestionChanged',_0x43e191);}return _0x43e191['addMarkerName'](_0x386f6b),_0x43e191;}['_refreshSuggestionsChain'](_0x5e2417){const _0x3efd56=Array['from'](_0x5e2417),_0x31a68e=_0x3efd56['filter'](_0x413841=>'attribute'==_0x413841['type']);this['_refreshAttributeSuggestionsChain'](_0x31a68e);const _0x82349c=_0x3efd56['filter'](_0x1ed406=>!_0x1ed406['isMultiRange']&&'attribute'!=_0x1ed406['type']),_0x5d0429=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17f6e2=>!_0x17f6e2['isMultiRange']&&'attribute'!=_0x17f6e2['type']),_0x50d36e=_0x5d0429['filter'](_0x1c4f29=>!_0x5e2417['has'](_0x1c4f29)),_0x2e3c0f=new Map(_0x5d0429['map'](_0x243722=>[_0x243722,this['_suggestionFactory']['getSuggestionCallback'](_0x243722['type'],_0x243722['subType'],'chain')])),_0x3e0a57=new Map(_0x5d0429['map'](_0x12f107=>[_0x12f107,_0x12f107['getFirstRange']()])),_0x147f24=new Set(),_0x2c2bd8=new Set();for(let _0xbded26=0x0;_0xbded26<_0x82349c['length'];_0xbded26++)_0x4e5012(_0x82349c[_0xbded26],_0x82349c,_0xbded26+0x1);for(let _0x5d4b9f=0x0;_0x5d4b9f<_0x82349c['length'];_0x5d4b9f++)_0x4e5012(_0x82349c[_0x5d4b9f],_0x50d36e,0x0);const _0x494132=new Set();for(let _0x31c6d7=0x0;_0x31c6d7<_0x82349c['length'];_0x31c6d7++){const _0x1dfb34=_0x82349c[_0x31c6d7];!_0x2c2bd8['has'](_0x1dfb34)&&_0x1dfb34['previous']&&(_0x494132['add'](_0x1dfb34['previous']),_0x1dfb34['previous']['next']===_0x1dfb34&&(_0x1dfb34['previous']['next']=null),_0x1dfb34['previous']=null),!_0x147f24['has'](_0x1dfb34)&&_0x1dfb34['next']&&(_0x494132['add'](_0x1dfb34['next']),_0x1dfb34['next']['previous']===_0x1dfb34&&(_0x1dfb34['next']['previous']=null),_0x1dfb34['next']=null);}function _0x4e5012(_0x2a9657,_0x3f1958,_0x11e289){for(let _0x5255a1=_0x11e289;_0x5255a1<_0x3f1958['length'];_0x5255a1++){const _0x2e1b64=_0x481413(_0x2a9657,_0x3f1958[_0x5255a1]);_0x2e1b64&&(_0x2e1b64[0x0]['next']=_0x2e1b64[0x1],_0x2e1b64[0x1]['previous']=_0x2e1b64[0x0],_0x147f24['add'](_0x2e1b64[0x0]),_0x2c2bd8['add'](_0x2e1b64[0x1]));}}function _0x481413(_0x4dfd6a,_0x3c2a33){if(_0x4dfd6a['author']['id']!==_0x3c2a33['author']['id'])return null;const _0x16c9e5=_0x2e3c0f['get'](_0x4dfd6a)(_0x4dfd6a,_0x3c2a33,_0x3e0a57['get'](_0x4dfd6a),_0x3e0a57['get'](_0x3c2a33));if(!_0x16c9e5)return null;return _0x2e3c0f['get'](_0x3c2a33)(_0x4dfd6a,_0x3c2a33,_0x3e0a57['get'](_0x4dfd6a),_0x3e0a57['get'](_0x3c2a33))?_0x16c9e5[0x1]['commentThread']&&_0x16c9e5[0x1]['commentThread']['length']?null:_0x16c9e5:null;}_0x494132['size']&&this['_refreshSuggestionsChain'](_0x494132);}['_refreshAttributeSuggestionsChain'](_0xfe1a18){if(0x0==_0xfe1a18['length'])return;const _0x3e34e9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15f4ee=>'attribute'==_0x15f4ee['type']&&_0x15f4ee['_isDataLoaded']),_0x15f665=[],_0x129307=new Map();for(const _0x529186 of _0x3e34e9){const _0x6a3a64=_0x39b023(_0x529186['attributes']);_0x129307['has'](_0x6a3a64)||(_0x129307['set'](_0x6a3a64,_0x15f665['length']),_0x15f665['push']([]));const _0x2064fa=_0x129307['get'](_0x6a3a64);_0x15f665[_0x2064fa]['push'](_0x529186);}!(function(){_0x15f665['sort']((_0x16bac5,_0x3059d1)=>{const _0xb47814=_0x16bac5[0x0]['createdAt'],_0x3b8277=_0x3059d1[0x0]['createdAt'];return _0xb47814==_0x3b8277?_0x16bac5[0x0]['attributes']['groupId']<_0x3059d1[0x0]['attributes']['groupId']?-0x1:0x1:_0xb47814<_0x3b8277?-0x1:0x1;});for(const _0x5e26a3 of _0x15f665)_0x5e26a3['sort']((_0x2d5edb,_0x11f6be)=>_0x2d5edb['id']<_0x11f6be['id']?-0x1:0x1);}());for(let _0x1894e3=0x0;_0x1894e3<_0x15f665['length'];_0x1894e3++){if(0x0==_0x15f665[_0x1894e3]['length'])continue;const _0x755022=[];for(let _0x16a22b=_0x1894e3+0x1;_0x16a22b<_0x15f665['length'];_0x16a22b++)0x0!=_0x15f665[_0x16a22b]['length']&&_0x183422(_0x15f665[_0x1894e3],_0x15f665[_0x16a22b])&&_0x755022['push'](_0x16a22b);for(const _0x42b4c0 of _0x755022)_0x15f665[_0x1894e3]=_0x15f665[_0x1894e3]['concat'](_0x15f665[_0x42b4c0]),_0x15f665[_0x42b4c0]=[];}for(const _0x22dc5e of _0x15f665)for(let _0x1e4b53=0x0;_0x1e4b53<_0x22dc5e['length'];_0x1e4b53++){const _0x233e5f=_0x22dc5e[_0x1e4b53+0x1]||null;_0x22dc5e[_0x1e4b53]['next']!==_0x233e5f&&(_0x22dc5e[_0x1e4b53]['next']=_0x233e5f);}for(const _0x51e2c3 of _0x15f665)for(let _0xd5805=0x0;_0xd5805<_0x51e2c3['length'];_0xd5805++){const _0x5f5dec=_0x51e2c3[_0xd5805-0x1]||null;_0x51e2c3[_0xd5805]['previous']!==_0x5f5dec&&(_0x51e2c3[_0xd5805]['previous']=_0x5f5dec);}function _0x183422(_0x3adb8b,_0x2f233a){if(_0x3adb8b[0x0]['attributes']['groupId']!==_0x2f233a[0x0]['attributes']['groupId']&&_0x3adb8b[0x0]['author']!==_0x2f233a[0x0]['author'])return!0x1;if(!function(_0x3a3361,_0x423d32){if(!_0x3a3361['hasComments']&&!_0x423d32['hasComments'])return!0x0;if(_0x3a3361['hasComments']&&_0x423d32['hasComments'])return!0x1;if(_0x3a3361['hasComments']&&_0x423d32['createdAt']<_0x3a3361['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x423d32['hasComments']&&_0x3a3361['createdAt']<_0x423d32['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3adb8b[0x0],_0x2f233a[0x0]))return!0x1;const _0x56b4bc=Tt(_0x3adb8b[0x0]['attributes'],'groupId'),_0x2269de=Tt(_0x2f233a[0x0]['attributes'],'groupId');if(!_0x41747e(_0x56b4bc,_0x2269de))return!0x1;return!!_0x3adb8b['every'](_0x5b321=>_0x2f233a['some'](_0x2d97b4=>_0x5b321['getFirstRange']()['isEqual'](_0x2d97b4['getFirstRange']())))&&_0x2f233a['every'](_0x37fb13=>_0x3adb8b['some'](_0x30b27f=>_0x37fb13['getFirstRange']()['isEqual'](_0x30b27f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1b7308){const _0x54d831=Array['from'](_0x1b7308),_0x515ef0=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4c29d9=_0x515ef0['filter'](_0x24b5d6=>!_0x1b7308['has'](_0x24b5d6)),_0xa160cb=new Map(_0x54d831['map'](_0x2be3a6=>[_0x2be3a6,this['_suggestionFactory']['getSuggestionCallback'](_0x2be3a6['type'],_0x2be3a6['subType'],'join')])),_0x4081ab=new Map(_0x515ef0['map'](_0x4b3134=>[_0x4b3134,_0x4b3134['getRanges']()]));for(let _0x42dbab=0x0;_0x42dbab<_0x54d831['length'];_0x42dbab++){if(_0x356fae(this,_0x54d831[_0x42dbab],_0x54d831,_0x42dbab+0x1))return!0x0;}for(let _0x32c71c=0x0;_0x32c71c<_0x54d831['length'];_0x32c71c++){if(_0x356fae(this,_0x54d831[_0x32c71c],_0x4c29d9,0x0))return!0x0;}return!0x1;function _0x356fae(_0x12f9a8,_0x37b924,_0x5a8218,_0x1ac00b){for(let _0x3b90c4=_0x1ac00b;_0x3b90c4<_0x5a8218['length'];_0x3b90c4++){const _0x29091f=_0x5a8218[_0x3b90c4];if(_0x29091f['type']!==_0x37b924['type']||_0x29091f['author']['id']!==_0x37b924['author']['id']||_0x29091f['subType']!==_0x37b924['subType'])continue;if(!Jt(_0x37b924,_0x29091f))continue;if('attribute'==_0x37b924['type']&&_0x37b924['data']['oldValue']!=_0x29091f['data']['oldValue'])continue;if('attribute'==_0x37b924['type']&&_0x12f9a8['_isBlockAttribute'](_0x37b924['data']['key']))continue;if('formatBlock'==_0x37b924['type']){const _0x4d64ca=_0x12f9a8['editor']['model'],_0x9eb9da=_0x37b924['getContainedElement']();if(_0x9eb9da&&(_0x4d64ca['schema']['isObject'](_0x9eb9da)||_0x4d64ca['schema']['isLimit'](_0x9eb9da)))continue;}const _0x5dbcda=_0xa160cb['get'](_0x37b924),_0x47453d=_0x4081ab['get'](_0x37b924),_0x173868=_0x4081ab['get'](_0x29091f),_0x387409=_0x37b924['commentThread']&&_0x37b924['commentThread']['length'],_0xaa2dd9=_0x29091f['commentThread']&&_0x29091f['commentThread']['length'];if(!_0x387409&&_0x5dbcda(_0x173868,_0x47453d))return _0x12f9a8['_joinSuggestions'](_0x29091f,_0x37b924),_0x4081ab['delete'](_0x37b924),!0x0;if(!_0xaa2dd9&&_0x5dbcda(_0x47453d,_0x173868))return _0x12f9a8['_joinSuggestions'](_0x37b924,_0x29091f),_0x4081ab['delete'](_0x29091f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f462f,_0x180113){if(_0x5f462f['isMultiRange']){for(const _0x5e511f of _0x180113['getRanges']())_0x5f462f['addRange'](_0x5e511f);}else{const _0x5c012f=_0x180113['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f462f,this['_model']['createRange'](_0x5f462f['getFirstRange']()['start'],_0x5c012f));}_0x180113['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c3cf5,_0x401490,_0x56108d){const _0x15f23d=_0x5c3cf5['startsWith']('format')||_0x5c3cf5['startsWith']('attribute')?'FORMATTING':_0x5c3cf5['toUpperCase']();return o(this['editor']['locale'],_0x401490+'_'+_0x15f23d+'_SUGGESTION_ANNOUNCEMENT',_0x56108d);}['_initAriaMarkerChangeAnnouncements'](){const _0x232e26=this['editor'];if(!_0x232e26['ui'])return;const {ariaLiveAnnouncer:_0x1dc38d}=_0x232e26['ui'];_0x87cbf2(this['_model'],({left:_0x17c58f,entered:_0x57b554})=>{for(const _0x47f397 of _0x17c58f){const {group:_0x56df8b,type:_0x4041d3}=this['_splitMarkerName'](_0x47f397['name']);if('suggestion'===_0x56df8b){_0x1dc38d['announce'](this['_getMarkerAnnouncementText'](_0x4041d3,'LEAVE'));break;}}for(const _0xd45019 of _0x57b554){const {group:_0x397589,type:_0x353524}=this['_splitMarkerName'](_0xd45019['name']);if('suggestion'===_0x397589){_0x1dc38d['announce'](this['_getMarkerAnnouncementText'](_0x353524,'ENTER',_0xbe6bf3(_0x4b35c3)));break;}}});}['_processAttributeChanges'](_0x2179bf){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2d5350=this['editor'],_0x1e168b=_0x2d5350['model']['document']['differ']['getChanges']();if(0x0==_0x1e168b['length'])return!0x1;const _0x45525f=[],_0x3d220f=_0x1e168b['filter'](_0xb7d5cf=>'attribute'==_0xb7d5cf['type']),_0xd38a97=_0x1e168b['filter'](_0x1d4a93=>'insert'==_0x1d4a93['type']&&'$text'!=_0x1d4a93['name']),_0x5257c2=_0x1e168b['filter'](_0xc1e130=>'remove'==_0xc1e130['type']&&'$text'!=_0xc1e130['name']);for(const _0x299e52 of _0x3d220f)_0x45525f['push']({'key':_0x299e52['attributeKey'],'newValue':_0x299e52['attributeNewValue'],'oldValue':_0x299e52['attributeOldValue'],'range':Pt(_0x299e52['range'],_0x2d5350['model'])});for(const _0x2bcdd7 of _0xd38a97){const _0x235dc7=_0x5257c2['find'](_0x47a0e6=>_0x47a0e6['position']['isEqual'](_0x2bcdd7['position']));_0x235dc7&&_0x45525f['push']({'key':m,'newValue':_0x2bcdd7['name'],'oldValue':_0x235dc7['name'],'range':_0x2d5350['model']['createRangeOn'](_0x2bcdd7['position']['nodeAfter'])});}return 0x0!=_0x45525f['length']&&this['_reduceExistingSuggestions'](_0x2179bf,_0x45525f);}['_processAttributeSuggestions'](_0x304fe6){let _0x1b9cef=!0x1;const _0x2bbb5e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4984c7=>_0x4984c7['data']['newRange']&&_0x4984c7['name']['startsWith']('suggestion:attribute:'));for(const _0x8fbfb9 of _0x2bbb5e){const {subType:_0x20c2c7,id:_0x45dca6}=this['_splitMarkerName'](_0x8fbfb9['name']),_0xedcc0=_0x20c2c7['split']('|')[0x0];for(const _0x1b1b51 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1b1b51['id']!=_0x45dca6&&'attribute'==_0x1b1b51['type']&&_0x1b1b51['data']&&_0x1b1b51['data']['key']==_0xedcc0&&_0x1b1b51['getFirstRange']()['isIntersecting'](_0x8fbfb9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1b1b51,_0x8fbfb9['data']['newRange'],_0x304fe6),_0x1b9cef=!0x0);}return _0x1b9cef;}['_recordAttributeChanges'](_0x47b073){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x47b073();}['_isRegisteredAttribute'](_0x3d937f){const _0x372188=this['_isBlockAttribute'](_0x3d937f),_0x5a67cd=this['_inlineAttributeKeys']['has'](_0x3d937f);return _0x372188||_0x5a67cd;}['_reduceExistingSuggestions'](_0x8be1bc,_0x7505d8){if(0x0==_0x7505d8['length'])return!0x1;let _0xfe407=!0x1;for(const _0x24a65a of _0x7505d8){const _0x5f4f12=this['_findSuggestions'](_0x24a65a['range'],'attribute')['filter'](_0x34d0a9=>!_0x34d0a9['meta']['isNextTo'])['map'](_0x5d2c85=>_0x5d2c85['suggestion']),_0x3f1063=_0x39b023({'newValue':_0x24a65a['newValue']});_0x5f4f12['filter'](_0x3ef3cc=>{const [_0x49a9f,_0x4074b6]=_0x3ef3cc['subType']['split']('|');return _0x49a9f==_0x24a65a['key']&&_0x4074b6!=_0x3f1063;})['forEach'](_0x18bc13=>{this['_reduceSuggestionAttributeRange'](_0x18bc13,_0x24a65a['range'],_0x8be1bc),_0xfe407=!0x0;});}return _0xfe407;}['_reduceSuggestionAttributeRange'](_0x32c2f9,_0x22aa51,_0x10e0c4){const _0xae3605=_0x32c2f9['getFirstRange']()['getDifference'](_0x22aa51);0x0!==_0xae3605['length']?0x1!==_0xae3605['length']?this['_breakSuggestionMarker'](_0x32c2f9,_0x22aa51['start'],_0x22aa51['end']):this['_setSuggestionRange'](_0x32c2f9,_0xae3605[0x0]):_0x10e0c4['removeMarker'](_0x32c2f9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1734e0){this['_editor']=_0x1734e0,this['_model']=_0x1734e0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1aa147,_0x19d857,_0x4f6b8f,_0x16a147,_0x23580d,_0x33a94c){return new u(this['_model'],{'type':_0x1aa147,'subType':_0x19d857,'id':_0x4f6b8f,'author':_0x16a147,'creator':_0x16a147,'attributes':_0x23580d,'onAttributesChange':_0x33a94c,'onAccept':(..._0x39c51e)=>this['getSuggestionCallback'](_0x1aa147,_0x19d857,'accept')(..._0x39c51e),'onDiscard':(..._0x372b95)=>this['getSuggestionCallback'](_0x1aa147,_0x19d857,'discard')(..._0x372b95)});}['registerCustomCallback'](_0x1cf612,_0x8f6d81,_0x5e3185,_0x5bc89f){const _0x2893d8=_0x1cf612+':'+_0x8f6d81+':'+_0x5e3185;this['_customCallbacks']['set'](_0x2893d8,_0x5bc89f);}['getSuggestionCallback'](_0x212a2c,_0x42bc3a,_0xe1c581){const _0x266b4d=_0x212a2c+':'+_0x42bc3a+':'+_0xe1c581;return this['_customCallbacks']['get'](_0x266b4d)||this['_defaultCallbacks']['get'](_0x212a2c+':'+_0xe1c581);}['_registerDefaultCallbacks'](){const _0x189a5a=()=>!0x1,_0x41a669=_0x3f3801=>{_0x3f3801['sort']((_0xee7b1d,_0x13b999)=>_0xee7b1d['start']['isBefore'](_0x13b999['start'])?0x1:-0x1),this['_model']['change'](_0x9d4163=>{for(const _0x3ffe0f of _0x3f3801){let _0x5d9285;_0x5d9285=_0x3ffe0f['end']['isAtEnd']&&_0x3ffe0f['end']['parent']==_0x3ffe0f['start']['nodeAfter']?_0x9d4163['createSelection'](_0x3ffe0f['start']['nodeAfter'],'on'):_0x9d4163['createSelection'](_0x3ffe0f),this['_model']['deleteContent'](_0x5d9285,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x32996c=(_0x1941cb,_0x2ad955)=>{_0x2ad955&&this['_model']['change'](_0x2632d2=>{const {commandName:_0x13aeaa,commandParams:_0x17e8a5=[]}=_0x2ad955,_0x586175=_0x1941cb['map'](_0x33821e=>(Vt(_0x33821e)&&(_0x33821e=this['_model']['createRange'](_0x33821e['end'])),_0x33821e))['filter'](_0x2cc210=>'$graveyard'!==_0x2cc210['root']['rootName']);if(_0x586175['length']<0x1)return;const _0x6504cc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x387ec4=>_0x411321['fromRange'](_0x387ec4));_0x2632d2['setSelection'](_0x586175);for(const _0x573f1a of this['_editor']['commands']['commands']())_0x573f1a['refresh']();_0x17e8a5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x13aeaa,..._0x17e8a5);const _0x19065d=_0x6504cc['filter'](_0x35b611=>'$graveyard'!=_0x35b611['root']['rootName']);_0x19065d['length']>0x0&&_0x2632d2['setSelection'](_0x19065d);for(const _0x797313 of _0x6504cc)_0x797313['detach']();});},_0x4e2f7f=(_0x34335e,_0x4b043b)=>0x1==_0x34335e['length']&&0x1==_0x4b043b['length']&&_0x34335e[0x0]['end']['isEqual'](_0x4b043b[0x0]['start']),_0x5040ad=(_0x56bb99,_0x23b04d,_0x459f0d,_0xf7a0ea)=>Ht(_0x56bb99,_0x23b04d,_0x459f0d,_0xf7a0ea,this['_model'])?[_0x56bb99,_0x23b04d]:Ht(_0x23b04d,_0x56bb99,_0xf7a0ea,_0x459f0d,this['_model'])?[_0x23b04d,_0x56bb99]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x189a5a),this['_defaultCallbacks']['set']('insertion:discard',_0x41a669),this['_defaultCallbacks']['set']('insertion:join',_0x4e2f7f),this['_defaultCallbacks']['set']('insertion:chain',_0x5040ad),this['_defaultCallbacks']['set']('deletion:accept',_0x41a669),this['_defaultCallbacks']['set']('deletion:discard',_0x189a5a),this['_defaultCallbacks']['set']('deletion:join',_0x4e2f7f),this['_defaultCallbacks']['set']('deletion:chain',_0x5040ad),this['_defaultCallbacks']['set']('formatInline:accept',_0x32996c),this['_defaultCallbacks']['set']('formatInline:discard',_0x189a5a),this['_defaultCallbacks']['set']('formatInline:join',_0x4e2f7f),this['_defaultCallbacks']['set']('formatInline:chain',_0x189a5a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x32996c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x189a5a),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e2f7f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x189a5a),this['_defaultCallbacks']['set']('attribute:accept',_0x189a5a),this['_defaultCallbacks']['set']('attribute:discard',(_0x386994,_0x54874b)=>{if(!_0x54874b)return;const _0x321fde=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x534dee=>{if(_0x54874b['key']==m)for(const _0xc2f84d of _0x386994){const _0xbbbef0=_0xc2f84d['start']['nodeAfter'],_0x2249a1=_0x54874b['oldValue'];_0x534dee['rename'](_0xbbbef0,_0x2249a1);}else{if(_0x321fde['_isBlockAttribute'](_0x54874b['key'])){for(const _0x520897 of _0x386994)void 0x0!==_0x54874b['oldValue']?_0x534dee['setAttribute'](_0x54874b['key'],_0x54874b['oldValue'],_0x520897['start']['nodeAfter']):_0x534dee['removeAttribute'](_0x54874b['key'],_0x520897['start']['nodeAfter']);}else{for(const _0x57d583 of _0x386994)_0x54874b['oldValue']?_0x534dee['setAttribute'](_0x54874b['key'],_0x54874b['oldValue'],_0x57d583):_0x534dee['removeAttribute'](_0x54874b['key'],_0x57d583);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e2f7f);}}function Ot(_0x291784,_0x24edf1,_0x323da0){for(const _0x14d762 of _0x24edf1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14d762['root']==_0x14d762)return!0x1;if(!_0x323da0['containsItem'](_0x14d762))return!0x1;if(_0x291784['isObject'](_0x14d762)||_0x291784['isLimit'](_0x14d762))return!0x0;}return!0x1;}function Vt(_0x3b9638){return _0x3b9638['end']['parent']==_0x3b9638['start']['nodeAfter']&&_0x3b9638['end']['isAtStart'];}function Ut(_0x39470d,_0x1a3a33,_0x4e5bce,_0x19a0ea){const _0x3fa9e9=_0x3582a3=>!_0x3582a3['item']['is']('$textProxy')&&!_0x19a0ea['isObject'](_0x3582a3['item']),_0x3bf9d2=_0x39470d['start']['getLastMatchingPosition'](_0x3fa9e9),_0x4144d3=_0x39470d['end']['getLastMatchingPosition'](_0x3fa9e9,{'direction':'backward'});return(!_0x39470d['start']['isEqual'](_0x3bf9d2)||!_0x39470d['end']['isEqual'](_0x4144d3))&&(_0x3bf9d2['isBefore'](_0x4144d3)?_0x4e5bce['updateMarker'](_0x1a3a33,{'range':_0x4e5bce['createRange'](_0x3bf9d2,_0x4144d3)}):_0x4e5bce['removeMarker'](_0x1a3a33),!0x0);}function Gt(_0x11f1a9){return _0x39b023(_0x11f1a9);}function Ft(_0x3489f8){const _0x2ec41f=_0x3489f8['start']['nodeAfter'];return _0x2ec41f&&_0x2ec41f['is']('element');}function Pt(_0x4f8d53,_0xceb57b){return null==_0x4f8d53['end']['nodeBefore']&&_0x4f8d53['end']['parent']==_0x4f8d53['start']['nodeAfter']?Lt(_0x4f8d53['start']['nodeAfter'],_0xceb57b):_0x4f8d53;}function Lt(_0x44ced5,_0x5ce613){const _0x27fe4e=_0x5ce613['schema']['isObject'](_0x44ced5)||_0x5ce613['schema']['isSelectable'](_0x44ced5);return _0x5ce613['createRange'](_0x5ce613['createPositionAt'](_0x44ced5,'before'),_0x27fe4e?_0x5ce613['createPositionAfter'](_0x44ced5):_0x5ce613['createPositionAt'](_0x44ced5,'end'));}function Ht(_0x385e3f,_0x2045f9,_0x479b81,_0x5cc04d,_0x13e1b7){if(_0x385e3f['next'])return!0x1;if(!Jt(_0x385e3f,_0x2045f9))return!0x1;if(_0x479b81['end']['isEqual'](_0x5cc04d['start']))return!0x0;if(_0x385e3f['type']!=_0x2045f9['type'])return!0x1;if(!_0x479b81['end']['isTouching'](_0x5cc04d['start']))return!0x1;const _0x5741dc=_0x13e1b7['createRange'](_0x479b81['end'],_0x5cc04d['start'])['getWalker']();for(const _0x4d2c8c of _0x5741dc)if(['elementStart','elementEnd']['includes'](_0x4d2c8c['type'])&&_0x13e1b7['schema']['isLimit'](_0x4d2c8c['item']))return!0x1;return!0x0;}function Jt(_0x4e2edf,_0x3dde28){if(!_0x4e2edf['_isDataLoaded']||!_0x3dde28['_isDataLoaded'])return!0x1;const _0x2e108c=new Set(Object['keys'](_0x4e2edf['attributes'])),_0x1c27c6=new Set(Object['keys'](_0x3dde28['attributes']));if(_0x2e108c['delete']('groupId'),_0x1c27c6['delete']('groupId'),0x0==_0x2e108c['size']&&0x0==_0x1c27c6['size'])return!0x0;if(_0x2e108c['size']!=_0x1c27c6['size'])return!0x1;const _0x2d2367={..._0x4e2edf['attributes']},_0x5c9fe7={..._0x3dde28['attributes']};return delete _0x2d2367['groupId'],delete _0x5c9fe7['groupId'],JSON['stringify'](_0x2d2367)==JSON['stringify'](_0x5c9fe7);}function qt(_0x36ef11,_0x2c6ba9){const _0x124266=zt(_0x36ef11['attributes']),_0x245dfe=zt(_0x2c6ba9);if(!_0x36ef11['_isDataLoaded'])return!0x1;for(const _0x4ae0fe of Object['keys'](_0x245dfe))if(!_0x41747e(_0x124266[_0x4ae0fe],_0x245dfe[_0x4ae0fe]))return!0x1;return!0x0;}function zt(_0x4965db){const _0x1ff26e=Object['assign']({},_0x4965db);return delete _0x1ff26e['skipNestingCheck'],delete _0x1ff26e['tablePasteChainId'],_0x1ff26e;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x152174(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ec5be,_0x2958ad,_0x1e8768,_0x40ed52){super(),this['model']=_0x2958ad,this['view']=_0x1e8768,this['commentThreadController']=_0x40ed52,this['_editor']=_0x5ec5be,this['_acceptCommand']=_0x5ec5be['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ec5be['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5972aa,_0xeee989)=>_0x5972aa||_0xeee989),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x236283=>_0x236283&&this['_editor']['model']['canEditAt'](_0x2958ad['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5955ce=>_0x5955ce&&this['_editor']['model']['canEditAt'](_0x2958ad['getRanges']())),this['_pendingAction']=null,_0x1e8768['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1e8768,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1e8768,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1e8768,'change:isDirty',()=>{_0x1e8768['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 _0x3d3156=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3d3156);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x34f964{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x330bfa,_0x279ef9,_0x49a90a,_0x33a560){super(_0x330bfa),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x230434(_0x330bfa,o(_0x330bfa,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x279ef9['authoredAt']),this['bind']('authoredAt')['to'](_0x279ef9),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',_0x279ef9,'authoredAt',this,'descriptionParts',(_0x9fd6f,_0x5c410b,_0x23a8dc)=>{const _0x40cf08=_0x23a8dc['map'](_0x4602dc=>ls(_0x4602dc['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x9fd6f-0x1,_0x279ef9['author']['name'],_0x5c410b?_0x33a560['formatDateTime'](_0x5c410b):'',new DOMParser()['parseFromString'](_0x40cf08,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2be8b6(),this['focusTracker']=new _0x13657f(),this['keystrokes']=new _0x4d474a(),this['focusCycler']=new _0x360f96({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x40c314=>_0x40c314['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x279ef9,this['_localUser']=_0x49a90a,this['_config']=_0x33a560,_0x33a560['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x58c512(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x247aec}=this['_config'];this['commentsListView']=new _0x247aec(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',_0x50d7e7=>_0x50d7e7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xf6876,_0x1ed979)=>_0xf6876||!!_0x1ed979);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x567718}=this['_config'],_0x44cf99=new _0x567718(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x28c8c5=_0x44cf99['commentInputView'];return _0x44cf99['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x28c8c5,'value',(_0x5b5c9f,_0x1260b4,_0x3a8986)=>!!_0x3a8986||_0x5b5c9f&&!_0x1260b4),_0x28c8c5['on']('submit',(_0x191091,_0x59510b)=>{this['fire']('addComment',_0x59510b),_0x28c8c5['editor']['setData']('');}),_0x28c8c5['on']('cancel',()=>this['focus']()),_0x28c8c5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x44cf99;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x71d17e,_0x379bf7,_0x30c006,_0x168015){super(_0x71d17e,_0x379bf7,_0x30c006,_0x168015),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3617e4=>_0x3617e4&&_0x3617e4[0x0]?_0x3617e4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4b8c6,_0x2bd989)=>{let _0x221ef7='';for(const _0x437703 of _0x4b8c6)_0x221ef7+='<p>'+ls(_0x437703['content'],_0x437703['color'])+'</p>';return _0x2bd989?_0x221ef7:_0x806266(_0x221ef7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x168015['SuggestionView'](_0x71d17e,_0x379bf7,{'formatDateTime':_0x168015['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 _0x583272=this['bindTemplate'],_0x3d8575=[this['suggestionView']];return this['commentsListView']&&_0x3d8575['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3d8575['push'](this['commentThreadInputView']),_0x3d8575['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x583272['if']('isActive','ck-suggestion-wrapper--active'),_0x583272['to']('type',_0x5cd8b9=>'ck-suggestion-'+_0x5cd8b9),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':_0x583272['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3d8575};}['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 _0x34f964{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2c0878,_0x37e443,_0x338f70){super(_0x2c0878),this['_model']=_0x37e443,this['_config']=_0x338f70,this['set']('description',''),this['bind']('authoredAt')['to'](_0x37e443),this['acceptButton']=this['_createButton'](o(_0x2c0878,'Accept\x20suggestion'),_0x15441c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2c0878,'Discard\x20suggestion'),_0x15441c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5e692a(_0x2c0878,_0x37e443['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2be8b6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x13657f(),this['keystrokes']=new _0x4d474a(),this['focusCycler']=new _0x360f96({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x312000=>_0x312000['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x25b7d1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x25b7d1['innerHTML']=this['description'],this['on']('change:description',(_0xc78e01,_0x2fc526,_0x48107a)=>{_0x25b7d1['innerHTML']=_0x48107a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x37f39a=this['bindTemplate'],_0x5e8e1a=[{'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':_0x37f39a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x37f39a['to']('authoredAt',_0x1db509=>this['_config']['formatDateTime'](_0x1db509))}]}]},{'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']&&_0x5e8e1a['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':_0x5e8e1a}]};}['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'](_0xbbdc2e,_0xedf8ff,_0x4d29cf,_0x942ef2,_0x1925a4){const _0x158a5d=new _0x464813(this['locale']);return _0x158a5d['set']({'label':_0xbbdc2e,'icon':_0xedf8ff,'tooltip':!0x0,'tooltipPosition':_0x1925a4}),_0x158a5d['extendTemplate']({'attributes':{'class':_0x4d29cf}}),_0x158a5d['on']('execute',()=>{this['fire'](_0x942ef2,this['_model']['id']);}),_0x158a5d;}['_setupKeyboardNavigation'](){const _0x314c37=this['element'];this['keystrokes']['listenTo'](_0x314c37);for(const _0x19f62f of this['focusables'])this['focusTracker']['add'](_0x19f62f['element']),this['keystrokes']['listenTo'](_0x19f62f['element']);this['keystrokes']['set']('enter',(_0x56f3e8,_0xecc51a)=>{_0x314c37===_0x56f3e8['target']&&(this['focusCycler']['focusFirst'](),_0xecc51a());}),this['keystrokes']['set']('esc',(_0x2aacfe,_0x29c5be)=>{_0x314c37!==_0x2aacfe['target']&&(this['focus'](),_0x29c5be());});}}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 _0x48688f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x171a4a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xe7482d){super(_0xe7482d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3101a8=this['editor']['config'];_0x3101a8['define']('trackChanges.SuggestionThreadView',re),_0x3101a8['define']('trackChanges.SuggestionView',ce),_0x3101a8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3101a8['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x3250fb,_0x29eb38){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x222bd7,_0x2b254b]of this['_handleControllerBuffer']){const _0x39a8b1=this['_suggestionToController']['has'](_0x222bd7);_0x39a8b1||_0x2b254b?_0x39a8b1&&_0x2b254b&&this['_destroyController'](_0x222bd7):this['_initializeController'](_0x222bd7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3250fb,_0x29eb38);}['init'](){const _0x14f2a5=this['editor'],_0x53a699=_0x14f2a5['plugins']['get']('TrackChangesEditing'),_0x38b58c=_0x14f2a5['plugins']['get']('Annotations'),_0x8f8d0e=_0x14f2a5['plugins']['get']('EditorAnnotations'),_0x29c4be=_0x14f2a5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x8f8d0e['addSourceCollector'](()=>{const _0x479bed=[];for(const [_0xef579a,_0x9b54c5]of Array['from'](this['_suggestionToController'])){const _0x33e710=_0xef579a['getAllAdjacentSuggestions'](),_0x5f31c7=[];for(const _0x4b2c37 of _0x33e710){if(!_0x4b2c37['isInContent'])continue;if(_0x4b2c37['isMultiRange']){_0x5f31c7['push'](..._0x4b2c37['getRanges']());continue;}const _0xba431d=_0x4b2c37['getFirstRange']();if(_0x5f31c7['length']>0x0){const _0x500269=_0x5f31c7[0x0]['getJoined'](_0xba431d);if(_0x500269){_0x5f31c7[0x0]=_0x500269;continue;}}_0x5f31c7['push'](_0xba431d);}_0x479bed['push']([_0x9b54c5['view'],_0x5f31c7]);}return _0x479bed;}),this['listenTo'](_0x53a699,'suggestionLoaded',(_0x42f50e,_0x24413a)=>{this['listenTo'](_0x24413a,'change:previous',(_0x64e8c4,_0x1faf8f,_0x2d25a7,_0x241df0)=>{_0x24413a['isInContent']&&(null==_0x2d25a7?(this['_updateController'](_0x241df0['head']),this['_handleSuggestionControllerDelayed'](_0x24413a,!0x1)):(this['_updateController'](_0x2d25a7['head']),null==_0x241df0&&this['_handleSuggestionControllerDelayed'](_0x24413a,!0x0)));}),null!==_0x24413a['previous']?this['_updateController'](_0x24413a['head']):this['_handleSuggestionControllerDelayed'](_0x24413a,!0x1);}),this['listenTo'](_0x53a699,'suggestionUnloaded',(_0x2adc3b,_0x32c39d,_0x42f590)=>{this['stopListening'](_0x32c39d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x32c39d),this['_suggestionToController']['has'](_0x32c39d)&&this['_destroyController'](_0x32c39d),_0x42f590&&this['_updateController'](_0x42f590['head']);}),this['listenTo'](_0x53a699,'suggestionChanged',(_0x2b4686,_0x5d9850)=>{this['_updateController'](_0x5d9850);}),this['listenTo'](_0x38b58c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x29c4be,'addComment',(_0x210959,{threadId:_0x2e0267,isFromAdapter:_0x36fca9})=>{if(_0x36fca9||!_0x53a699['hasSuggestion'](_0x2e0267))return;const _0x1bb146=_0x53a699['getSuggestion'](_0x2e0267);this['_suggestionToController']['get'](_0x1bb146)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x11e9df=this['editor']['plugins']['get']('Annotations'),_0x2a7295=this['editor']['plugins']['get']('TrackChangesEditing'),_0x103efd=Array['from'](_0x11e9df['activeAnnotations'],_0x4d62f2=>_0x4d62f2['innerView'])['filter'](_0x3992d2=>this['_viewToController']['has'](_0x3992d2)),_0x34b408=[];for(const _0x3c42ab of _0x103efd){const _0x500071=this['_viewToController']['get'](_0x3c42ab)['model']['getAllAdjacentSuggestions']();_0x34b408['push'](..._0x500071['reduce']((_0x1dfb13,_0x96103a)=>[..._0x1dfb13,..._0x96103a['getMarkerNames']()],[]));}_0x2a7295['activeMarkers']=_0x34b408;}['_addUIComponentsToFactory'](){const _0x292ccd=this['editor'],_0x20e137=_0x292ccd['locale'],_0x51764c=o(_0x20e137,'Track\x20changes'),_0x5adeff=new Wt([{'type':'switchbutton','model':new _0xe8bb13({'withText':!0x0,'isToggleable':!0x0,'label':_0x51764c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x47d99b of _0x5adeff)if(me(_0x47d99b)){const _0x1a7e6b=_0x292ccd['commands']['get'](_0x47d99b['model']['commandName']);_0x47d99b['model']['bind']('isOn','isEnabled')['to'](_0x1a7e6b,'value','isEnabled');}_0x292ccd['ui']['componentFactory']['add']('trackChanges',_0x43665b=>this['_createToolbarButton'](_0x43665b,_0x5adeff,_0x51764c)),_0x292ccd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x37ccc8=>this['_createMenuBarMenu'](_0x37ccc8,_0x5adeff,_0x51764c));}['_createToolbarButton'](_0x2c2070,_0x4898b5,_0x455292){const _0x3e4346=Qt(_0x2c2070,_0x11d1d7),_0x2974b3=this['editor']['commands']['get']('trackChanges');_0x3e4346['buttonView']['set']({'tooltip':_0x455292,'label':_0x455292,'icon':he}),_0x3e4346['buttonView']['bind']('isOn')['to'](_0x2974b3,'value'),_0x3e4346['buttonView']['on']('execute',()=>{_0x2974b3['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x3e4346,_0x4898b5,{'role':'menu'});const _0x37ca56=[];for(const _0x30f37a of _0x4898b5)me(_0x30f37a)&&_0x37ca56['push'](this['editor']['commands']['get'](_0x30f37a['model']['commandName']));const _0xac0bd5=_0x3e4346['buttonView'];return _0xac0bd5['actionView']['unbind']('isEnabled'),_0xac0bd5['arrowView']['unbind']('isEnabled'),_0xac0bd5['actionView']['bind']('isEnabled')['to'](_0x2974b3,'isEnabled'),_0xac0bd5['arrowView']['bind']('isEnabled')['toMany'](_0x37ca56,'isEnabled',(..._0x2b305d)=>_0x2b305d['some'](_0x28fee9=>_0x28fee9)),_0x3e4346['on']('execute',_0x22cfe0=>{this['editor']['execute'](_0x22cfe0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3e4346;}['_createMenuBarMenu'](_0x31fbf5,_0x336aab,_0x3ed5ab){const _0x59e5cf=new Yt(_0x31fbf5),_0xc371f6=this['editor']['commands']['get']('trackChanges');_0x59e5cf['buttonView']['set']({'label':_0x3ed5ab,'icon':he});const _0x34bb49=new Zt(_0x31fbf5);for(const _0x3d4d29 of _0x336aab){if('separator'==_0x3d4d29['type']){_0x34bb49['items']['add'](new Xt(_0x31fbf5));continue;}const _0x26963f=new te(_0x31fbf5,_0x59e5cf),_0x5a15ef=new _0x4ddbbe(_0x31fbf5),_0x414dc1=_0x3d4d29['model'];_0x5a15ef['bind'](...Object['keys'](_0x414dc1))['to'](_0x414dc1),_0x5a15ef['delegate']('execute')['to'](_0x59e5cf),_0x5a15ef['on']('execute',()=>{this['editor']['execute'](_0x414dc1['commandName']),this['editor']['editing']['view']['focus']();}),_0x26963f['children']['add'](_0x5a15ef),_0x34bb49['items']['add'](_0x26963f);}return _0x59e5cf['bind']('isEnabled')['to'](_0xc371f6,'isEnabled'),_0x59e5cf['panelView']['children']['add'](_0x34bb49),_0x59e5cf;}['_initializeController'](_0x2eb0c0){const _0x5256a4=this['editor'],_0xfa85c6=_0x5256a4['config'],_0x1ab0f1=_0x5256a4['plugins']['get']('Annotations'),_0x1e66f2=_0x5256a4['plugins']['get']('CommentsRepository'),_0x4ffaaf=_0x5256a4['plugins']['get']('EditorAnnotations'),_0x18c688=_0x5256a4['plugins']['get'](_0x171a4a)['me'],_0x4fdff0=_0xfa85c6['get']('trackChanges')['SuggestionThreadView'],_0x369c83=_0xfa85c6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4a830c,CommentThreadInputView:_0x4e0524}=_0x5256a4['plugins']['get']('CommentsUI');let _0x1f95af,_0xafb0be;this['_annotationViews']['has'](_0x2eb0c0['id'])?(_0xafb0be=this['_annotationViews']['get'](_0x2eb0c0['id']),_0x1f95af=_0xafb0be['mainView']):(_0x1f95af=new _0x4fdff0(_0x5256a4['locale'],_0x2eb0c0,_0x18c688,{'disableComments':this['_disableComments'],'editorConfig':_0xfa85c6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xfa85c6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xfa85c6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xfa85c6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2caec9(_0xfa85c6['get']('locale')),'CommentView':_0xfa85c6['get']('comments')['CommentView'],'CommentsListView':_0x4a830c,'CommentThreadInputView':_0x4e0524,'SuggestionView':_0x369c83}),_0x1f95af['suggestionView']['acceptButton']['on']('execute',()=>{_0x5256a4['editing']['view']['focus']();}),_0x1f95af['suggestionView']['discardButton']['on']('execute',()=>{_0x5256a4['editing']['view']['focus']();}),_0xafb0be=_0x1ab0f1['createAnnotationView'](this['editor']['locale'],_0x1f95af),_0xafb0be['bind']('isDirty')['to'](_0x1f95af,'isDirty'),_0xafb0be['bind']('length')['to'](_0x1f95af),_0xafb0be['bind']('type')['to'](_0x1f95af,'type',_0x135f7f=>'suggestion-'+_0x135f7f),this['listenTo'](_0x1f95af,'escape',()=>{_0x5256a4['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x2eb0c0['id'],_0xafb0be));const _0x5daede=_0x1e66f2['createCommentThreadController'](_0x2eb0c0['commentThread'],_0x1f95af),_0x429edc=new ae(_0x5256a4,_0x2eb0c0,_0x1f95af,_0x5daede),_0x20fd77=_0x2eb0c0['getAllAdjacentSuggestions']()['filter'](_0x2899ba=>_0x2899ba['isInContent']);_0x1f95af['descriptionParts']=_0x5256a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x20fd77),this['_suggestionToController']['set'](_0x2eb0c0,_0x429edc),this['_viewToController']['set'](_0x1f95af,_0x429edc);const _0x219174=_0x1ab0f1['createAnnotation']({'view':_0xafb0be,'target':()=>{const _0x1c53cf=[],_0x4b3ed8=_0x2eb0c0['getAllAdjacentSuggestions']()['filter'](_0x235f46=>_0x235f46['isInContent']);for(const _0x405e18 of _0x4b3ed8)_0x1c53cf['push'](..._0x405e18['getMarkers']());return _0x179daa(_0x5256a4['editing'],_0x1c53cf);},'type':()=>'suggestion-'+_0x429edc['view']['type']});_0x1e66f2['_bindAnnotationToEditors'](_0x1f95af,_0x219174),_0x1ab0f1['add'](_0x219174),_0x4ffaaf['registerAnnotation'](_0x219174);}['_destroyController'](_0x34053a){const _0x59ec79=this['editor']['plugins']['get']('CommentsRepository'),_0x3d5285=this['editor']['plugins']['get']('Annotations'),_0x5d0e02=this['_suggestionToController']['get'](_0x34053a),_0x2b8a13=_0x5d0e02['view'],_0x3c1958=_0x3d5285['getByInnerView'](_0x2b8a13);_0x59ec79['_unbindEditors'](_0x2b8a13),_0x3c1958&&_0x3d5285['remove'](_0x3c1958),this['_suggestionToController']['delete'](_0x34053a),this['_viewToController']['delete'](_0x2b8a13),_0x5d0e02['destroy']();}['_updateController'](_0x3efdb7){if(!_0x3efdb7['isInContent']||!this['_suggestionToController']['has'](_0x3efdb7))return;const _0x1a7855=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f7fc7=this['_suggestionToController']['get'](_0x3efdb7),_0x26aa1c=_0x3efdb7['getAllAdjacentSuggestions']();_0x1f7fc7['view']['descriptionParts']=_0x1a7855['descriptionFactory']['getDescriptions'](_0x26aa1c);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x4b35c3,(_0x3e661f,_0x40df7c)=>{const _0x5437c0=this['editor']['plugins']['get'](k),_0x3a0afa=this['editor']['plugins']['get'](p);if(!_0x3a0afa['activeMarkers']['length'])return;const {id:_0x2f7d72}=_0x3a0afa['_splitMarkerName'](_0x3a0afa['activeMarkers'][0x0]),_0x3d8800=_0x5437c0['getSuggestion'](_0x2f7d72);_0x3d8800&&(this['_suggestionToController']['get'](_0x3d8800)['view']['focus'](),_0x40df7c());});}['destroy'](){for(const _0x4998b5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4998b5);for(const _0x39bd97 of this['_annotationViews']['values']())_0x39bd97['mainView']['destroy']();super['destroy']();}}function me(_0x584c7a){return'model'in _0x584c7a;}class k extends _0x48688f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x47d516){this['editor']['plugins']['get'](p)['adapter']=_0x47d516;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3b5b34){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3b5b34);}['getSuggestions']({skipNotAttached:_0x47fcf2=!0x1,toJSON:_0x42cb92=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x47fcf2,'toJSON':_0x42cb92});}['getSuggestion'](_0x3a6bde){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3a6bde);}}const T=['Pagination'];class P extends _0x48688f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3985c1=this['editor'];if(_0x3985c1['config']['define']('trackChangesData.editorCreator',_0x2b2041=>{const _0x4918ff=_0x3985c1['model']['document']['getRootNames']()['reduce']((_0x4943ab,_0x16b9d3)=>(_0x4943ab[_0x16b9d3]='',_0x4943ab),{});return _0x3985c1['constructor']['create'](_0x4918ff,_0x2b2041);}),'function'!=typeof _0x3985c1['config']['get']('trackChangesData')['editorCreator'])throw new _0x592c71('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f8e47){return N(this['editor'],!0x0,_0x1f8e47);}['getDataWithDiscardedSuggestions'](_0x13fe62){return N(this['editor'],!0x1,_0x13fe62);}}class D extends _0x48688f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x46410c){super(_0x46410c),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(_0x1d321d){return void 0x0!==_0x1d321d['getRootsAttributes'];}async function N(_0x1cf6cd,_0x3b0947,_0x14b95d){const _0x32fa61=_0x4f8fe7(_0x1cf6cd,T);_0x32fa61['plugins']['push'](p,D),_0x32fa61['rootsAttributes']=v(_0x1cf6cd)?_0x1cf6cd['getRootsAttributes']():void 0x0;const _0x192d47=document['createDocumentFragment'](),_0x496999=_0x1cf6cd['config']['get']('trackChangesData')['editorCreator'],_0x3c832a=await _0x496999(_0x32fa61,()=>function(_0x3ba386){const _0x4182ec=document['createElement']('div');return _0x3ba386['appendChild'](_0x4182ec),_0x4182ec;}(_0x192d47));!function(_0x152e47,_0xd9ee09){const _0x3d2cf2=_0x152e47['model']['document']['getRootNames']()['reduce']((_0x33cc1d,_0x3ce60c)=>(_0x33cc1d[_0x3ce60c]=_0x152e47['data']['get']({'rootName':_0x3ce60c}),_0x33cc1d),{}),_0x2ce15e=_0x152e47['plugins']['get']('Users')['users']['map'](_0x867052=>({'id':_0x867052['id'],'name':_0x867052['name']})),_0x420fa1=_0x152e47['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2068ae=_0x152e47['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x40f3b6=_0xd9ee09['plugins']['get']('Users'),_0x46fcc6=_0xd9ee09['plugins']['get']('TrackChangesEditing'),_0x18a2b6=_0xd9ee09['plugins']['get']('CommentsRepository');for(const _0x2888c of _0x18a2b6['getCommentThreads']())_0x2888c['remove']();for(const _0x1f1d6b of _0x2ce15e)_0x40f3b6['getUser'](_0x1f1d6b['id'])||_0x40f3b6['addUser'](_0x1f1d6b);_0x40f3b6['me']||_0x40f3b6['useAnonymousUser']();for(const _0x338139 of _0x2068ae)_0x18a2b6['addCommentThread'](_0x338139);for(const _0x35e604 of _0x420fa1)_0x46fcc6['addSuggestionData'](_0x35e604);_0xd9ee09['data']['set'](_0x3d2cf2);}(_0x1cf6cd,_0x3c832a),_0x3c832a['execute'](_0x3b0947?'acceptAllSuggestions':'discardAllSuggestions');const _0x424b48=v(_0x3c832a)?_0x3c832a['getFullData'](_0x14b95d):_0x3c832a['data']['get'](_0x14b95d);return await _0x3c832a['destroy'](),_0x424b48;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|