@ckeditor/ckeditor5-track-changes 42.0.0-alpha.20 → 42.0.0-alpha.21

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/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x52cd9d,PendingActions as _0x296178,icons as _0x238c1b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x368f48,ObservableMixin as _0x58e1c3,uid as _0x3792e7,insertToPriorityArray as _0x459c05,priorities as _0x1e1756,logWarning as _0xb90762,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5f153d,View as _0xe59a68,ButtonView as _0x435cf8,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5187f3,hashObject as _0x451b92,surroundingMarkersDetector as _0x31d5e2,trimHtml as _0x311db1,UserView as _0x3b7106,getDateTimeFormatter as _0x3e1822,getAllMarkersDomElementsSorted as _0x37d1f1,sanitizeEditorConfig as _0x540b79}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1c0325,LiveRange as _0x39eeea,LivePosition as _0x498ffa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x409113,toWidget as _0xef749a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x598dd3,set as _0x4c3a69,isEqual as _0x2de290,unset as _0x5876b5,omit as Bt}from'lodash-es';import{Delete as _0x33cc80,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5bb9a9,ShiftEnter as _0x2f0715}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x1ff5a2,_0x33f31c){super(_0x1ff5a2),this['_enabledCommands']=_0x33f31c,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x677475 of this['editor']['commands']['commands']())_0x677475['affectsData']&&!this['_enabledCommands']['has'](_0x677475)&&_0x677475['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xf7bb87 of this['editor']['commands']['commands']())_0xf7bb87['affectsData']&&!this['_enabledCommands']['has'](_0xf7bb87)&&_0xf7bb87['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x59af50,_0x315f34){super(_0x59af50),this['_suggestions']=_0x315f34,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x20f8b4){const _0x9ad9f8=this['_suggestions']['get'](_0x20f8b4);if(!_0x9ad9f8)throw new _0x368f48('track-changes-accept-suggestion-not-found',this);const _0x6b27df=_0x9ad9f8['getRanges']();this['editor']['model']['canEditAt'](_0x6b27df)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x9ad9f8);}}class B extends ts{['_suggestions'];constructor(_0x2fd309,_0x574e47){super(_0x2fd309),this['_suggestions']=_0x574e47,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4d715f){const _0x2aef72=this['_suggestions']['get'](_0x4d715f);if(!_0x2aef72)throw new _0x368f48('track-changes-discard-suggestion-not-found',this);const _0x54a406=_0x2aef72['getRanges']();this['editor']['model']['canEditAt'](_0x54a406)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2aef72);}}function ss(_0x51087d){return _0x51087d['sort']((_0x47e1ca,_0x4700a0)=>'deletion'==_0x47e1ca['type']&&'deletion'!=_0x4700a0['type']?-0x1:'deletion'!=_0x47e1ca['type']&&'deletion'==_0x4700a0['type']?0x1:0x0);}function to(_0x44f6b2,_0x379e23){let _0x2a910b,_0x1c2dc2=0x0;const _0x1cc96b=[],_0x5ea628=_0x379e23['schema'];for(;_0x1c2dc2<_0x44f6b2['length'];){const _0x5e3096=_0x44f6b2[_0x1c2dc2],_0x4f3e90=_0x44f6b2[_0x1c2dc2+0x1];_0x2a910b||(_0x2a910b=_0x379e23['createPositionBefore'](_0x5e3096)),co(_0x379e23,_0x5e3096,_0x4f3e90)||(_0x1cc96b['push'](_0x379e23['createRange'](_0x2a910b,_0x5ea628['isObject'](_0x5e3096)?_0x379e23['createPositionAfter'](_0x5e3096):_0x379e23['createPositionAt'](_0x5e3096,'end'))),_0x2a910b=null),_0x1c2dc2++;}return _0x1cc96b;}function co(_0x5d70f4,_0x24edb7,_0x44a2c5){if(!_0x44a2c5)return!0x1;const _0x46669d=_0x5d70f4['createPositionAfter'](_0x24edb7),_0x5ed0d3=_0x5d70f4['createPositionBefore'](_0x44a2c5);return _0x46669d['isTouching'](_0x5ed0d3);}function rs(_0x40332f,_0x4293ba,_0x3508c4){for(;_0x3508c4['length'];){const _0x4801ea=_0x3508c4['splice'](0x0,0x64);_0x40332f['change'](()=>{for(const _0x1334e7 of _0x4801ea)_0x1334e7['isInContent']&&_0x4293ba['execute'](_0x1334e7['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x1616c1,_0x1ecab5,_0xfa1266){super(_0x1616c1),this['_command']=_0x1ecab5,this['_suggestions']=_0xfa1266,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x112ed8=Array['from'](this['_suggestions']['values']())['some'](_0x3bbc84=>_0x3bbc84['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x112ed8;}['execute'](){const _0x349232=ss(Array['from'](this['_suggestions']['values']()));for(const _0x44ea9a of _0x349232){const _0x169075=_0x44ea9a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x169075))return;}rs(this['editor']['model'],this['_command'],_0x349232);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x167125,_0x8d6db9,_0x245edc){super(_0x167125),this['_command']=_0x8d6db9,this['_suggestions']=_0x245edc,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4f3c66=this['editor']['model']['document']['selection'],_0x1daba4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x505a9b,_0x3163f5){const _0x242bd5=Array['from'](_0x505a9b['getRanges']()),_0x45926b=new Set();for(const _0x108950 of _0x3163f5)if(_0x108950['isInContent']){for(const _0x4e2808 of _0x242bd5)for(const _0x2b3caa of _0x108950['getRanges']())(_0x4e2808['isIntersecting'](_0x2b3caa)||_0x505a9b['isCollapsed']&&!_0x108950['isMultiRange']&&_0x108950['next']&&_0x2b3caa['end']['isTouching'](_0x4e2808['start']))&&_0x45926b['add'](_0x108950);}return _0x45926b;}(_0x4f3c66,_0x1daba4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x42654c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4f6c2c of _0x42654c){const _0xb5ce61=_0x4f6c2c['getRanges']();if(!this['editor']['model']['canEditAt'](_0xb5ce61))return;}rs(this['editor']['model'],this['_command'],_0x42654c);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x58e1c3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1687a3,_0x3c07a3){super(),this['id']=_0x3c07a3['id'],this['type']=_0x3c07a3['type'],this['subType']=_0x3c07a3['subType']||null,this['author']=_0x3c07a3['author'],this['creator']=_0x3c07a3['creator']||_0x3c07a3['author'],this['isExternal']=Boolean(_0x3c07a3['attributes']&&_0x3c07a3['attributes']['@external']),this['data']=null,this['_model']=_0x1687a3,this['_onAccept']=_0x3c07a3['onAccept'],this['_onDiscard']=_0x3c07a3['onDiscard'],this['_onAttributesChange']=_0x3c07a3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3c07a3['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x219925=this;for(;_0x219925['previous'];)_0x219925=_0x219925['previous'];return _0x219925;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x197e98){this['_markerNames']['add'](_0x197e98);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xacfcfb=>this['_model']['markers']['get'](_0xacfcfb))['filter'](_0x3a3258=>_0x3a3258);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2cc902=>{for(const _0x189788 of this['getMarkers']())_0x2cc902['removeMarker'](_0x189788);}),this['_markerNames']['clear']();}['removeMarker'](_0x4ee1d9){this['_model']['change'](_0x46933d=>{_0x46933d['removeMarker'](_0x4ee1d9);}),this['_markerNames']['delete'](_0x4ee1d9);}['addRange'](_0x8ac72){const _0x1e349a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1e349a),this['_model']['change'](_0xda7559=>{_0xda7559['addMarker'](_0x1e349a,{'range':_0x8ac72,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2b7d28){for(const _0x43ea28 of this['getRanges']())if(_0x43ea28['isIntersecting'](_0x2b7d28))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x534f9d=>_0x534f9d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x582d4f,_0x37fb0a)=>[..._0x582d4f,..._0x37fb0a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x30ed80=this['getRanges']();if(0x1!=_0x30ed80['length'])return null;const _0x47593f=_0x30ed80[0x0],_0x2fbf68=_0x47593f['start']['nodeAfter'],_0x566a9b=_0x47593f['end']['nodeBefore'];return _0x2fbf68 instanceof _0x1c0325?_0x2fbf68!=_0x566a9b?null:_0x2fbf68:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x5d9f91=[];let _0x69ee1f=this['head'];for(;_0x69ee1f;)_0x5d9f91['push'](_0x69ee1f),_0x69ee1f=_0x69ee1f['next'];return _0x5d9f91;}['setAttribute'](_0x40e418,_0x12c436){const _0xb2dbd6=_0x598dd3(this['attributes']);_0x4c3a69(_0xb2dbd6,_0x40e418,_0x12c436),_0x2de290(_0xb2dbd6,this['attributes'])||(this['attributes']=_0xb2dbd6,this['_onAttributesChange'](_0xb2dbd6));}['removeAttribute'](_0x1b2c05){const _0x485291=_0x598dd3(this['attributes']);_0x5876b5(_0x485291,_0x1b2c05),_0x2de290(_0x485291,this['attributes'])||(this['attributes']=_0x485291,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x3792e7()['substr'](0x1,0x5);}}function o(_0x2cfda0,_0x4c0d05,_0x4b3559){const t=_0x2cfda0['t'];switch(_0x4c0d05){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x4b3559);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b3559);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b3559);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b3559);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b3559);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x4b3559);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b3559);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b3559);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b3559);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b3559);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b3559);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b3559);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b3559);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b3559);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b3559);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b3559);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b3559);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b3559);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b3559);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b3559);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b3559);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b3559);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b3559);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x4b3559);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b3559);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b3559);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b3559);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b3559);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b3559);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x4b3559);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b3559);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b3559);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b3559);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b3559);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x4b3559);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b3559);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x4b3559);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4b3559);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b3559);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x4b3559);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b3559);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x4b3559);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b3559);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b3559);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b3559);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b3559);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x4c0d05;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x499d84,_0x116314){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x499d84,this['_locale']=_0x116314;}['getDescriptions'](_0x24d06d){const _0x4388f6=[],_0x3feab3=new Set(),_0x5643bd=new Set();for(let _0x230fa4=0x0;_0x230fa4<_0x24d06d['length'];_0x230fa4++){const _0xf5de43=_0x24d06d[_0x230fa4];if(!_0xf5de43['isInContent'])continue;const _0x1bd3a3=this['_handleCustomCallbackDescription'](_0xf5de43);if(_0x1bd3a3){if(null!=_0xf5de43['subType']){if(_0x3feab3['has'](_0xf5de43['subType']))continue;_0x3feab3['add'](_0xf5de43['subType']);}_0x4388f6['push'](_0x1bd3a3);}else{if('attribute'!=_0xf5de43['type'])'insertion'!=_0xf5de43['type']&&'deletion'!=_0xf5de43['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4388f6,_0xf5de43,_0x24d06d[_0x230fa4+0x1]);else{const _0x5cd7c3=_0xf5de43['data']['key'];if(_0x5643bd['has'](_0x5cd7c3))continue;_0x5643bd['add'](_0xf5de43['data']['key']),_0x5cd7c3==m?this['_handleRenameSuggestionDescription'](_0x4388f6,_0xf5de43):this['_handleAttributeSuggestionDescription'](_0x4388f6,_0xf5de43);}}}return this['_resolveDescriptionItems'](_0x4388f6);}['registerDescriptionCallback'](_0x398771){this['_customCallbacks']['push'](_0x398771);}['registerElementLabel'](_0x4f9a98,_0x18bd97,_0x2fe5f4=_0x1e1756['normal']){'function'==typeof _0x4f9a98?_0x459c05(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4f9a98,'label':_0x18bd97,'priority':_0x2fe5f4}):this['_itemLabels']['set'](_0x4f9a98,_0x18bd97);}['registerAttributeLabel'](_0x16dbb7,_0x17349e){this['_attributeLabels']['set'](_0x16dbb7,_0x17349e);}['getItemLabel'](_0xce9c2d,_0x45b2ce=0x1){let _0x1e86f1;for(const _0x2c7fbe of this['_itemLabelsCallbacks'])if(_0x2c7fbe['matchingCallback'](_0xce9c2d)){_0x1e86f1=_0x2c7fbe['label'];break;}return _0x1e86f1||(_0x1e86f1=this['_itemLabels']['get'](_0xce9c2d['name'])),_0x1e86f1?_0x1e86f1(_0x45b2ce):0x1!==_0x45b2ce?_0x45b2ce+'\x20'+_0xce9c2d['name']+'s':''+_0xce9c2d['name'];}['_addDescriptionItems'](_0x5c5890,_0x6062d6){const _0x19a719=_0x6062d6['getFirstRange']()['getWalker'](),_0x135e52='insertion'==_0x6062d6['type']?'add':'remove';for(const _0x3e3ec1 of _0x19a719){const _0x1973e9=_0x3e3ec1['item'],_0x1eab35=_0x5c5890[_0x5c5890['length']-0x1];if(_0x1973e9['is']('$textProxy'))_0x1eab35&&_0x1eab35['type']['indexOf']('Container')>-0x1&&_0x5c5890['pop'](),_0x1eab35&&'text'==_0x1eab35['type']?_0x1eab35[_0x135e52]+=_0x1973e9['data']:_0x5c5890['push']({'type':'text','add':'add'==_0x135e52?_0x1973e9['data']:'','remove':'remove'==_0x135e52?_0x1973e9['data']:''});else{if(this['_schema']['isObject'](_0x1973e9)){const _0x5535ae=_0x1973e9;if(_0x1eab35&&_0x1eab35['type']['indexOf']('Container')>-0x1&&_0x5c5890['pop'](),'elementEnd'==_0x3e3ec1['type'])continue;_0x1eab35&&_0x1eab35['type']==_0x135e52+'Object'&&_0x1eab35['element']['name']==_0x5535ae['name']?_0x1eab35['quantity']++:_0x5c5890['push']({'type':_0x135e52+'Object','element':_0x5535ae,'quantity':0x1}),_0x19a719['skip'](_0x5f53e7=>!('elementEnd'==_0x5f53e7['type']&&_0x5f53e7['item']==_0x1973e9));}else{if(this['_schema']['checkChild'](_0x1973e9,'$text')||_0x1973e9['is']('element','softBreak')){const _0x255cf9=_0x1973e9;if('add'==_0x135e52&&'elementStart'==_0x3e3ec1['type']||'remove'==_0x135e52&&'elementEnd'==_0x3e3ec1['type'])continue;if(_0x1eab35&&-0x1==_0x1eab35['type']['indexOf']('Container')){'text'==_0x1eab35['type']&&(_0x1eab35[_0x135e52]+='\x0a');continue;}let _0x48b91d;if(_0x48b91d='add'==_0x135e52?_0x255cf9['nextSibling']&&!this['_schema']['isObject'](_0x255cf9['nextSibling'])?_0x255cf9['nextSibling']:null:_0x255cf9['previousSibling']&&!this['_schema']['isObject'](_0x255cf9['previousSibling'])?_0x255cf9['previousSibling']:null,_0x255cf9['isEmpty']||_0x48b91d&&_0x48b91d['isEmpty']){const _0x2718c4=_0x48b91d&&_0x48b91d['isEmpty']?_0x48b91d:_0x255cf9;_0x1eab35&&_0x1eab35['type']==_0x135e52+'EmptyContainer'&&_0x1eab35['element']['name']==_0x2718c4['name']?_0x1eab35['quantity']++:_0x5c5890['push']({'type':_0x135e52+'EmptyContainer','element':_0x2718c4,'quantity':0x1});}else _0x5c5890['push']({'type':_0x135e52+'Container','element':_0x255cf9});}}}}}['_resolveDescriptionItems'](_0x4380ee){const _0x49fb73=this['_locale'],_0x59a616=[],_0x486163=[],_0x35ae84=[];for(const _0x311460 of _0x4380ee)switch(_0x311460['type']){case'text':if(_0x311460['add']=_0x311460['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x311460['remove']=_0x311460['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x311460['add']&&''!=_0x311460['remove']){_0x59a616['push']({'type':'replace','content':o(_0x49fb73,'REPLACE_TEXT',['\x22'+_0x311460['remove']+'\x22','\x22'+_0x311460['add']+'\x22'])});continue;}if(null!=_0x311460['add']['match'](/^ +$/)){_0x59a616['push']({'type':'insertion','content':o(_0x49fb73,'*Insert:*\x20%0',o(_0x49fb73,'ELEMENT_SPACE',_0x311460['add']['length']))});continue;}if(null!=_0x311460['remove']['match'](/^ +$/)){_0x59a616['push']({'type':'deletion','content':o(_0x49fb73,'*Remove:*\x20%0',o(_0x49fb73,'ELEMENT_SPACE',_0x311460['remove']['length']))});continue;}if(''!=_0x311460['add']){_0x59a616['push']({'type':'insertion','content':o(_0x49fb73,'*Insert:*\x20%0','\x22'+_0x311460['add']+'\x22')});continue;}_0x59a616['push']({'type':'deletion','content':o(_0x49fb73,'*Remove:*\x20%0','\x22'+_0x311460['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x59a616['push']({'type':'insertion','content':o(_0x49fb73,'*Insert:*\x20%0',this['getItemLabel'](_0x311460['element'],_0x311460['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x59a616['push']({'type':'deletion','content':o(_0x49fb73,'*Remove:*\x20%0',this['getItemLabel'](_0x311460['element'],_0x311460['quantity']))});continue;case'addContainer':_0x59a616['push']({'type':'insertion','content':o(_0x49fb73,'*Split:*\x20%0',this['getItemLabel'](_0x311460['element'],_0x311460['quantity']))});continue;case'removeContainer':_0x59a616['push']({'type':'deletion','content':o(_0x49fb73,'*Merge:*\x20%0',this['getItemLabel'](_0x311460['element'],_0x311460['quantity']))});continue;case'addFormat':_0x486163['push'](_0x311460['key']);continue;case'removeFormat':_0x35ae84['push'](_0x311460['key']);continue;default:_0x59a616['push'](_0x311460);}if(_0x486163['length']){const _0x1a2c81=_0x486163['map'](_0x5db7a8=>this['_attributeLabels']['has'](_0x5db7a8)?this['_attributeLabels']['get'](_0x5db7a8):_0x5db7a8)['join'](',\x20');_0x59a616['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1a2c81)});}if(_0x35ae84['length']){const _0x347100=_0x35ae84['map'](_0x4a298d=>this['_attributeLabels']['has'](_0x4a298d)?this['_attributeLabels']['get'](_0x4a298d):_0x4a298d)['join'](',\x20');_0x59a616['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x347100)});}return _0x59a616;}['_handleCustomCallbackDescription'](_0x443678){for(const _0x321823 of this['_customCallbacks']){const _0x589ec8=_0x321823(_0x443678);if(_0x589ec8&&'type'in _0x589ec8)return _0x589ec8;}}['_handleAttributeSuggestionDescription'](_0x5b015e,_0x1fb815){const _0x1c8d8e=_0x1fb815['data'],_0x83ed31=void 0x0===_0x1c8d8e['newValue']?'removeFormat':'addFormat';_0x5b015e['push']({'type':_0x83ed31,'key':_0x1c8d8e['key']});}['_handleRenameSuggestionDescription'](_0x1ca0f0,_0x13022e){_0x1ca0f0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x13022e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x10e83b,_0x8c0929,_0x5d6b4d){if(this['_addDescriptionItems'](_0x10e83b,_0x8c0929),_0x5d6b4d&&_0x5d6b4d['getFirstRange']()&&!_0x8c0929['getFirstRange']()['end']['isEqual'](_0x5d6b4d['getFirstRange']()['start'])){const _0x2c52da=_0x10e83b[_0x10e83b['length']-0x1],_0x59acaa='insertion'==_0x8c0929['type']?'add':'remove';_0x2c52da&&'text'==_0x2c52da['type']&&(_0x2c52da[_0x59acaa]+='\x0a');}}}class E extends _0x52cd9d{['afterInit'](){const _0x30c866=this['editor'],_0x58de82=_0x30c866['plugins']['get']('TrackChangesEditing');_0x30c866['commands']['get']('showAIAssistant')&&_0x58de82['enableCommand']('showAIAssistant');}}class V extends _0x52cd9d{['afterInit'](){const _0x151ebc=this['editor'],_0x19affc=_0x151ebc['locale'];if(!_0x151ebc['plugins']['has']('AlignmentEditing'))return;const _0x30ffd3=_0x151ebc['plugins']['get']('TrackChangesEditing');_0x30ffd3['enableDefaultAttributesIntegration']('alignment'),_0x30ffd3['registerBlockAttribute']('alignment'),_0x30ffd3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x19affc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49d1ba=this['editor'],_0x3315e3=_0x49d1ba['locale'];_0x49d1ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x561e11=>{if('formatBlock'!=_0x561e11['type'])return;const {data:_0x3fc722}=_0x561e11;if(_0x3fc722&&'alignment'==_0x3fc722['commandName']){const _0x22f706=_0x3fc722['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3315e3,'*Format:*\x20%0',function(_0x3593ec){switch(_0x3593ec){case'left':return o(_0x3315e3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3315e3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3315e3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3315e3,'FORMAT_JUSTIFY_TEXT');}}(_0x22f706))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x52cd9d{['afterInit'](){const _0x3439ea=this['editor'],_0x38a3d0=_0x3439ea['plugins']['get']('TrackChangesEditing'),_0xae7c93=_0x3439ea['locale'];for(const _0x4d6842 of ti){if(!_0x3439ea['plugins']['has'](_0x4d6842))continue;const _0x2756cd=_0x4d6842['slice'](0x0,-0x7)['toLowerCase'](),_0x5c15f7='FORMAT_'+_0x2756cd['toUpperCase']();_0x38a3d0['enableDefaultAttributesIntegration'](_0x2756cd),_0x38a3d0['registerInlineAttribute'](_0x2756cd),_0x38a3d0['descriptionFactory']['registerAttributeLabel'](_0x2756cd,o(_0xae7c93,_0x5c15f7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28a847=this['editor'],_0x2411a7=_0x28a847['locale'],_0x2868ee=_0x28a847['plugins']['get']('TrackChangesEditing');function _0x5c7cae(_0xd238bc,_0x4295a2){_0x2868ee['descriptionFactory']['registerDescriptionCallback'](_0x42c307=>{if('formatInline'!=_0x42c307['type'])return;const {data:_0x1800b4}=_0x42c307;return _0x1800b4&&_0x1800b4['commandName']===_0xd238bc?_0x1800b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2411a7,'*Format:*\x20%0',_0x4295a2)}:{'type':'format','content':o(_0x2411a7,'*Remove\x20format:*\x20%0',_0x4295a2)}:void 0x0;});}_0x5c7cae('bold',o(_0x2411a7,'FORMAT_BOLD')),_0x5c7cae('italic',o(_0x2411a7,'FORMAT_ITALIC')),_0x5c7cae('underline',o(_0x2411a7,'FORMAT_UNDERLINE')),_0x5c7cae('code',o(_0x2411a7,'FORMAT_CODE')),_0x5c7cae('strikethrough',o(_0x2411a7,'FORMAT_STRIKETHROUGH')),_0x5c7cae('subscript',o(_0x2411a7,'FORMAT_SUBSCRIPT')),_0x5c7cae('superscript',o(_0x2411a7,'FORMAT_SUPERSCRIPT'));}}class O extends _0x52cd9d{['afterInit'](){const _0x23246a=this['editor'],_0x254842=_0x23246a['locale'];if(!_0x23246a['plugins']['has']('BlockQuoteEditing'))return;const _0x53af64=_0x23246a['plugins']['get']('TrackChangesEditing'),_0x9e408a=this['editor']['commands']['get']('blockQuote');_0x53af64['enableCommand']('blockQuote',(_0x1e76ea,_0xf1a3fb={})=>{const _0x35ca31=this['editor']['model']['document']['selection'],_0x20da47=_0xf1a3fb&&void 0x0!==_0xf1a3fb['forceValue']?_0xf1a3fb['forceValue']:!_0x9e408a['value'];let _0x511f21=[];if(_0x20da47){const _0x594dc8=Array['from'](_0x35ca31['getSelectedBlocks']())['filter'](_0x3572fc=>oo(_0x3572fc)||function(_0x36daa4,_0x213120){const _0x122669=_0x213120['checkChild'](_0x36daa4['parent'],'blockQuote'),_0x508de1=_0x213120['checkChild'](['$root','blockQuote'],_0x36daa4);return _0x122669&&_0x508de1;}(_0x3572fc,this['editor']['model']['schema']));_0x511f21=to(_0x594dc8,_0x23246a['model']);}else{const _0x1b276c=Array['from'](_0x35ca31['getSelectedBlocks']())['filter'](_0x545ebf=>oo(_0x545ebf));_0x511f21=to(_0x1b276c,_0x23246a['model']);}_0x23246a['model']['change'](()=>{for(const _0xc5b513 of _0x511f21)_0x53af64['markBlockFormat'](_0xc5b513,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x20da47}]});});}),_0x53af64['descriptionFactory']['registerDescriptionCallback'](_0x2aed1a=>{const {data:_0xd01b2f}=_0x2aed1a;if(_0xd01b2f&&'blockQuote'==_0xd01b2f['commandName']){const _0x480909=o(_0x254842,'ELEMENT_BLOCK_QUOTE');return _0xd01b2f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x254842,'*Set\x20format:*\x20%0',_0x480909)}:{'type':'format','content':o(_0x254842,'*Remove\x20format:*\x20%0',_0x480909)};}});}}function oo(_0x36e722){return'blockQuote'==_0x36e722['parent']['name'];}class G extends _0x52cd9d{['afterInit'](){const _0x272558=this['editor'];_0x272558['plugins']['has']('CaseChange')&&(_0x272558['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x272558['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x272558['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x52cd9d{['afterInit'](){const _0x29ec73=this['editor'];_0x29ec73['commands']['get']('ckbox')&&_0x29ec73['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x52cd9d{['afterInit'](){const _0x37ebc8=this['editor'];if(!_0x37ebc8['plugins']['has']('CodeBlock'))return;const _0x284da9=_0x37ebc8['plugins']['get']('TrackChangesEditing'),_0x45e7a6=_0x37ebc8['locale'],_0x1131d2=_0x37ebc8['config']['get']('codeBlock')['languages'],_0x27ac41=_0x37ebc8['commands']['get']('codeBlock');_0x284da9['enableCommand']('indentCodeBlock'),_0x284da9['enableCommand']('outdentCodeBlock'),_0x284da9['enableCommand']('codeBlock',(_0x114466,_0x4f7159={})=>{const _0x3f7e59=_0x37ebc8['model'],_0x394a56=_0x37ebc8['model']['document']['selection'],_0x564af7=_0x4f7159&&void 0x0!==_0x4f7159['forceValue']?_0x4f7159['forceValue']:!_0x27ac41['value'];let _0x1448a1;_0x4f7159['language']||(_0x4f7159['language']=_0x1131d2[0x0]['language']),_0x1448a1=_0x564af7?Array['from'](_0x394a56['getSelectedBlocks']())['filter'](_0x2fd1e7=>eo(_0x2fd1e7)||function(_0x2b3415,_0x25a51e){if(_0x2b3415['is']('rootElement')||_0x25a51e['isLimit'](_0x2b3415))return!0x1;return _0x25a51e['checkChild'](_0x2b3415['parent'],'codeBlock');}(_0x2fd1e7,_0x3f7e59['schema'])):Array['from'](_0x394a56['getSelectedBlocks']())['filter'](_0x4131c5=>eo(_0x4131c5));const _0x50cd02=to(_0x1448a1,_0x3f7e59);_0x3f7e59['change'](()=>{for(const _0x2f52cc of _0x50cd02)_0x284da9['markBlockFormat'](_0x2f52cc,{'commandName':'codeBlock','commandParams':[{..._0x4f7159,'forceValue':_0x564af7}],'formatGroupId':'blockName'});});}),(_0x284da9['descriptionFactory']['registerElementLabel']('codeBlock',_0x4aef0f=>o(_0x45e7a6,'ELEMENT_CODE_BLOCK',_0x4aef0f)),_0x284da9['descriptionFactory']['registerDescriptionCallback'](_0x34f11f=>{if('formatBlock'!=_0x34f11f['type'])return;const _0x423cbe=_0x45e7a6['t'],{data:_0x1ad783}=_0x34f11f;if(!_0x1ad783||'codeBlock'!=_0x1ad783['commandName'])return;const _0x2de3cd=_0x1ad783['commandParams'][0x0]['language'],_0x491cc7=_0x423cbe(_0x1131d2['find'](_0x45963a=>_0x45963a['language']===_0x2de3cd)['label'])['toLowerCase']();return _0x1ad783['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45e7a6,'*Set\x20format:*\x20%0',o(_0x45e7a6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x491cc7+')')}:{'type':'format','content':o(_0x45e7a6,'*Remove\x20format:*\x20%0',o(_0x45e7a6,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x14efc4){return'codeBlock'==_0x14efc4['name'];}class H extends _0x52cd9d{['afterInit'](){const _0x3e8972=this['editor'];if(!_0x3e8972['plugins']['has']('CommentsEditing'))return;_0x3e8972['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x37d95b,_0x2e5fed,_0x47db26){const _0x4c6c10=[];for(const _0x312783 of _0x2e5fed['getItems']())_0x312783['hasAttribute'](_0x37d95b)&&_0x4c6c10['push'](_0x47db26['createRangeOn'](_0x312783));return _0x4c6c10;}function _e(_0x12abed,_0x2b146a,{showActiveMarker:_0x181dd5=!0x0}={}){const _0x44b6b5=_0x12abed['plugins']['get']('TrackChangesEditing');return(_0x5c55d1,_0x1a6001,_0x404c37)=>{if(!_0x404c37['consumable']['test'](_0x1a6001['markerRange'],_0x5c55d1['name']))return;const _0x335bfe=_0x1a6001['markerRange']['getWalker'](),_0x1e18fb=_0x1a6001['markerRange']['start'],_0x2a5441=_0x12abed['model']['schema'];let _0x4ad97b=null,_0x567663=null,_0x23954b=!0x1,_0x26811d=!0x1;for(const _0x4a4779 of _0x335bfe){const _0x19b7e3=_0x4a4779['item'];_0x23954b=_0x23954b||_0x2a5441['isContent'](_0x19b7e3);const _0x1f525d=_0x404c37['mapper']['toViewElement'](_0x19b7e3);if(_0x1f525d&&_0x1f525d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a4779['type']&&(_0x2a5441['isBlock'](_0x19b7e3)&&!_0x2a5441['isLimit'](_0x19b7e3)&&(_0x19b7e3['nextSibling']||_0x1e18fb['isAtEnd']?_0x4ad97b&&_0x4ad97b['parent']==_0x19b7e3||(_0x4ad97b=_0x19b7e3,_0x3b0e2f(_0x4a4779['previousPosition']),_0x26811d=!0x0):_0x567663=_0x567663||_0x4a4779['previousPosition']));}function _0x3b0e2f(_0x4a74ce){const _0x5542e7=_0x404c37['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b146a}),_0x367f25=_0x404c37['mapper']['toViewPosition'](_0x4a74ce);_0x181dd5&&_0x44b6b5['activeMarkers']['includes'](_0x1a6001['markerName'])&&_0x404c37['writer']['addClass']('ck-suggestion-marker--active',_0x5542e7),_0x404c37['writer']['insert'](_0x367f25,_0x5542e7),_0x404c37['mapper']['bindElementToMarker'](_0x5542e7,_0x1a6001['markerName']);}_0x23954b||_0x26811d||!_0x567663||_0x3b0e2f(_0x567663);};}class q extends _0x52cd9d{static get['requires'](){return[_0x33cc80];}['init'](){const _0x54dda1=this['editor'],_0x32b3d9=_0x54dda1['plugins']['get']('TrackChangesEditing');_0x32b3d9['enableCommand']('delete');const _0x412f32=_0x54dda1['commands']['get']('deleteForward');_0x32b3d9['enableCommand']('deleteForward',(_0x4de403,_0x2a6ca2={})=>{const _0x577c83=_0x54dda1['model']['createSelection'](_0x54dda1['model']['document']['selection']);_0x577c83['isCollapsed']&&_0x54dda1['model']['modifySelection'](_0x577c83,{'direction':'forward','unit':_0x2a6ca2['unit']});const _0x10dcad=_0x577c83['getFirstRange'](),_0x5aab11=_0x39eeea['fromRange'](_0x10dcad);let _0x3eef59;_0x4de403(_0x2a6ca2),_0x3eef59='$graveyard'==_0x5aab11['root']['rootName']?_0x54dda1['model']['createRange'](_0x10dcad['start']):_0x54dda1['model']['createRange'](_0x5aab11['start'],_0x5aab11['end']),_0x5aab11['detach'](),_0x54dda1['model']['enqueueChange'](_0x412f32['buffer']['batch'],_0x84ad47=>{_0x412f32['buffer']['lock'](),_0x84ad47['setSelection'](_0x84ad47['createRange'](_0x3eef59['end'])),_0x412f32['buffer']['unlock']();});}),_0x54dda1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x54dda1,'merge'),{'priority':'high'}),_0x54dda1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3b2491,_0x5e2da7,_0x2fc592)=>{_0x2fc592['options']['showSuggestionHighlights']&&_e(_0x54dda1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3b2491,_0x5e2da7,_0x2fc592);},{'priority':'high'}),_0x54dda1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4b40e5,_0x47ef5d,_0x54bfca)=>{const _0x469a0b=_0x54bfca['mapper']['markerNameToElements'](_0x47ef5d['markerName']);if(_0x469a0b){for(const _0x21310d of _0x469a0b)_0x21310d['is']('uiElement')&&(_0x54bfca['mapper']['unbindElementFromMarkerName'](_0x21310d,_0x47ef5d['markerName']),_0x54bfca['writer']['remove'](_0x21310d));}},{'priority':'high'});}}class z extends _0x52cd9d{['afterInit'](){const _0xf51b75=this['editor'];if(!_0xf51b75['plugins']['has']('ListEditing'))return;const _0x52a5d2=_0xf51b75['locale'],_0x2800a6=_0xf51b75['plugins']['get']('TrackChangesEditing'),_0x52894a=_0xf51b75['plugins']['has']('TodoListEditing'),_0x4dd86c=!!_0xf51b75['config']['get']('list.multiBlock');function _0x8c9380(_0x4a1645){return{'type':'format','content':''+o(_0x52a5d2,'*Set\x20format:*\x20%0',_0x4a1645)};}function _0x1cabe7(_0x1c818c){return{'type':'format','content':''+o(_0x52a5d2,'*Remove\x20format:*\x20%0',_0x1c818c)};}_0x2800a6['enableDefaultAttributesIntegration']('numberedList'),_0x2800a6['enableDefaultAttributesIntegration']('bulletedList'),_0x2800a6['enableDefaultAttributesIntegration']('customNumberedList'),_0x2800a6['enableDefaultAttributesIntegration']('customBulletedList'),_0x2800a6['enableDefaultAttributesIntegration']('indentList'),_0x2800a6['enableDefaultAttributesIntegration']('outdentList'),_0x2800a6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2800a6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2800a6['registerBlockAttribute']('listItemId'),_0x2800a6['registerBlockAttribute']('listType'),_0x2800a6['registerBlockAttribute']('listIndent'),_0x4dd86c&&(_0x2800a6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2800a6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x52894a&&(_0x2800a6['enableDefaultAttributesIntegration']('todoList'),_0x2800a6['enableDefaultAttributesIntegration']('checkTodoList'),_0x2800a6['registerBlockAttribute']('todoListChecked'),_0x2800a6['descriptionFactory']['registerDescriptionCallback'](_0x22d2d8=>{const {data:_0x2a0426}=_0x22d2d8;if(_0x2a0426&&'todoListChecked'==_0x2a0426['key'])return{'type':'format','content':_0x2a0426['newValue']?o(_0x52a5d2,'*Check\x20item*'):o(_0x52a5d2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4591e8=>{if(_0x4591e8['batch']['isUndo'])return!0x1;let _0xefbc0a=!0x1;const _0x4ff6c1=_0x2800a6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3078ce=>'todoListChecked'===_0x2800a6['_getAttributeKey'](_0x3078ce));for(const _0x2412af of _0x4ff6c1){'todo'!=_0x2412af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2800a6['_findSuggestions'](_0x2412af['getFirstRange'](),'attribute')['find'](_0x3361ef=>'listType'===_0x2800a6['_getAttributeKey'](_0x3361ef['suggestion']))||(_0x4591e8['removeMarker'](_0x2412af['getFirstMarker']()),_0xefbc0a=!0x0));}return _0xefbc0a;})),_0x2800a6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x52a5d2,'FORMAT_INDENT'));const _0x42da99={'type':'format','content':''};_0x2800a6['descriptionFactory']['registerDescriptionCallback'](_0x52725f=>{const {data:_0x5982b5}=_0x52725f;if(!_0x5982b5||'listType'!=_0x5982b5['key'])return;let _0x58f094=_0x52725f['head'];for(;_0x58f094;){if(_0x58f094['data']&&(('listStyle'==_0x58f094['data']['key']||'listMarkerStyle'==_0x58f094['data']['key'])&&(_0x58f094['data']['newValue']&&'default'!=_0x58f094['data']['newValue']||'default'!=_0x58f094['data']['oldValue']&&!_0x5982b5['newValue'])||!_0x4dd86c&&_0x58f094['data']['key']==m))return _0x42da99;_0x58f094=_0x58f094['next'];}if(null==_0x5982b5['newValue'])switch(_0x5982b5['oldValue']){case'bulleted':return _0x1cabe7(o(_0x52a5d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cabe7(o(_0x52a5d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cabe7(o(_0x52a5d2,'ELEMENT_TODO_LIST'));}switch(_0x5982b5['newValue']){case'bulleted':return _0x8c9380(o(_0x52a5d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8c9380(o(_0x52a5d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8c9380(o(_0x52a5d2,'ELEMENT_TODO_LIST'));}}),_0x2800a6['descriptionFactory']['registerDescriptionCallback'](_0x2a8f15=>{const {data:_0xb8b516}=_0x2a8f15;if(_0xb8b516&&'listIndent'==_0xb8b516['key'])return null==_0xb8b516['newValue']||null==_0xb8b516['oldValue']&&0x0==_0xb8b516['newValue']?_0x42da99:void 0x0;}),_0x2800a6['descriptionFactory']['registerDescriptionCallback'](_0x266567=>{if('attribute'!=_0x266567['type'])return;const {data:_0x1168ad}=_0x266567;if(!_0x1168ad||'listItemId'!=_0x1168ad['key'])return;const _0x1cac6f=le(_0x266567);return'newValue'==_0x1cac6f?{'type':'format','content':o(_0x52a5d2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1cac6f?{'type':'format','content':o(_0x52a5d2,'*Split:*\x20list\x20item')}:_0x42da99;}),_0xf51b75['model']['document']['registerPostFixer'](_0x13bd46=>this['listItemIdFixer'](_0x13bd46)),_0xf51b75['model']['document']['registerPostFixer'](_0xce78ef=>this['noTrackChangesFixer'](_0xce78ef)),_0xf51b75['model']['document']['registerPostFixer'](_0x19f41c=>this['assureChains'](_0x19f41c)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2e17f9){if(_0x2e17f9['batch']['isUndo']||!_0x2e17f9['batch']['isLocal'])return!0x1;let _0x845768=!0x1;const _0x525b3e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x101277=>_0x101277['data']&&'listItemId'==_0x101277['data']['key'])['filter'](_0x4dac2b=>_0x4dac2b['data']['newValue']&&_0x4dac2b['data']['oldValue']);for(const _0x1bc7ca of _0x525b3e)le(_0x1bc7ca)||(_0x2e17f9['removeMarker'](_0x1bc7ca['getFirstMarker']()),_0x845768=!0x0);return _0x845768;}['noTrackChangesFixer'](_0x266fa6){if(_0x266fa6['batch']['isUndo']||!_0x266fa6['batch']['isLocal'])return!0x1;const _0x431095=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x431095['trackChangesCommand']['value'])return!0x1;let _0x596dd5=!0x1;const _0x16621e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x468ecf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4ccb37=>'attribute'==_0x4ccb37['type'])['filter'](_0xe0a189=>_0x16621e['includes'](_0xe0a189['attributeKey']));if(0x0==_0x468ecf['length'])return _0x596dd5;for(const _0x55546b of _0x468ecf){const _0x20ae11=_0x431095['_findSuggestions'](_0x55546b['range'],'attribute')['filter'](_0x5ba506=>!_0x5ba506['meta']['isNextTo'])['map'](_0x1c1dcc=>_0x1c1dcc['suggestion'])['filter'](_0x18a153=>{const _0x80d56e=_0x431095['_getAttributeKey'](_0x18a153);return _0x16621e['includes'](_0x80d56e);});if(_0x20ae11['length']){for(const _0x17df96 of _0x20ae11)_0x266fa6['removeMarker'](_0x17df96['getFirstMarker']());_0x596dd5=!0x0;}}return _0x596dd5;}['assureChains'](_0x5e054a){if(_0x5e054a['batch']['isUndo']||!_0x5e054a['batch']['isLocal'])return!0x1;const _0x5669e2=this['editor']['plugins']['get']('TrackChangesEditing');let _0xff8aef=!0x1;const _0x5bbf76=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1c430d of _0x5669e2['getSuggestions']({'skipNotAttached':!0x0})){const _0x4b476f=_0x5669e2['_findSuggestions'](_0x1c430d['getFirstRange'](),'attribute')['map'](_0x632f7d=>_0x632f7d['suggestion'])['filter'](_0x880860=>_0x880860['data']&&_0x5bbf76['includes'](_0x880860['data']['key']));if(!_0x4b476f['length'])continue;const _0x1733ee=_0x4b476f[0x0]['head']['attributes']['groupId'];if(!_0x4b476f['every'](_0x979481=>_0x979481['attributes']['groupId']===_0x1733ee)){for(const _0x46c30b of _0x4b476f)_0x17fde6(_0x46c30b,_0x1733ee)&&(_0xff8aef=!0x0);}}return _0xff8aef;function _0x152daa(_0x216752,_0x265ef0){for(const _0x4a7326 of _0x5669e2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x234d09=>'attribute'==_0x234d09['type']&&_0x234d09['attributes']['groupId']==_0x216752))_0x4a7326['setAttribute']('groupId',_0x265ef0);}function _0x17fde6(_0x5ea379,_0x2188d3){let _0xf574de=_0x5ea379['head'],_0x3497fc=!0x1;for(;_0xf574de;)_0xf574de['attributes']['groupId']!=_0x2188d3&&(_0x152daa(_0xf574de['attributes']['groupId'],_0x2188d3),_0xf574de['setAttribute']('groupId',_0x2188d3),_0x3497fc=!0x0),_0xf574de=_0xf574de['next'];return _0x3497fc;}}['_supportLegacySuggestions'](){const _0x5af2fe=this['editor'],_0x5076a1=_0x5af2fe['locale'],_0x47874c=_0x5af2fe['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x47874c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5a2908,_0x406dea){const _0x49aaf7=[];for(let _0x286b89 of _0x5a2908)_0x286b89['start']['nodeAfter']===_0x286b89['end']['parent']&&(_0x286b89=_0x5af2fe['model']['createRange'](_0x5af2fe['model']['createPositionAt'](_0x286b89['start']['nodeAfter'],0x0))),_0x49aaf7['push'](_0x286b89);_0x5af2fe['model']['change'](_0x5246d8=>{const _0x5623a7=_0x5af2fe['model']['document']['selection'],_0x46e782=Array['from'](_0x5623a7['getRanges']())['map'](_0x490e2a=>_0x39eeea['fromRange'](_0x490e2a));_0x5246d8['setSelection'](_0x49aaf7),_0x5af2fe['commands']['get'](_0x406dea['commandName'])['refresh'](),_0x406dea['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5af2fe['execute'](_0x406dea['commandName'],..._0x406dea['commandParams']),_0x5246d8['setSelection'](_0x46e782);for(const _0xdaf317 of _0x46e782)_0xdaf317['detach']();});}),_0x47874c['descriptionFactory']['registerElementLabel'](function(_0x1cde98){const _0x11f1cc=!_0x5af2fe['model']['schema']['isObject'](_0x1cde98),_0x6a4a8c=_0x1cde98['previousSibling'],_0x1c73b9=_0x1cde98['nextSibling'],_0x61a208=_0x1cde98['getAttribute']('listItemId'),_0x116554=!_0x6a4a8c||_0x6a4a8c['getAttribute']('listItemId')!==_0x61a208,_0x3a5a24=!_0x1c73b9||_0x1c73b9['getAttribute']('listItemId')!==_0x61a208;return _0x11f1cc&&Boolean(_0x61a208)&&_0x116554&&_0x3a5a24;},_0x3fc4f2=>o(_0x5076a1,'ELEMENT_LIST_ITEM',_0x3fc4f2));}['_registerLegacyDescription'](){const _0x4baecf=this['editor'],_0x2ec82a=_0x4baecf['locale'];function _0x31598e(_0x53a47e){const _0xf03d76=_0x4baecf['commands']['get']('bulletedList')['value'],_0x177265=_0x4baecf['commands']['get']('numberedList')['value'];return'numberedList'===_0x53a47e?_0xf03d76:_0x177265;}_0x4baecf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x34e550){if('formatBlock'!=_0x34e550['type'])return;const {data:_0x21f62e}=_0x34e550;if(!_0x21f62e)return;let _0x2577b3,_0x53ba41,_0x5628b,_0x3f29fc;switch(_0x21f62e['commandName']){case'bulletedList':_0x5628b=_0x21f62e['commandParams'][0x0]['forceValue'],_0x3f29fc=_0x31598e(_0x21f62e['commandName']),_0x2577b3=_0x5628b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f29fc&&_0x4baecf['config']['get']('list.multiBlock')||(_0x2577b3='*Change\x20to:*\x20%0'),_0x53ba41={'type':'format','content':o(_0x2ec82a,_0x2577b3,o(_0x2ec82a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5628b=_0x21f62e['commandParams'][0x0]['forceValue'],_0x3f29fc=_0x31598e(_0x21f62e['commandName']),_0x2577b3=_0x5628b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f29fc&&_0x4baecf['config']['get']('list.multiBlock')||(_0x2577b3='*Change\x20to:*\x20%0'),_0x53ba41={'type':'format','content':o(_0x2ec82a,_0x2577b3,o(_0x2ec82a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2577b3='*Indent:*\x20%0',_0x53ba41={'type':'format','content':o(_0x2ec82a,_0x2577b3,o(_0x2ec82a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2577b3=function(_0x3031d6){const _0x51f245=_0x3031d6['getFirstRange']();let _0x2901c0=_0x51f245['start']['nodeAfter'];for(;_0x2901c0&&_0x51f245['containsItem'](_0x2901c0);){if(_0x2901c0['getAttribute']('listIndent')>0x0)return!0x1;_0x2901c0=_0x2901c0['nextSibling'];}return!0x0;}(_0x34e550)?o(_0x2ec82a,'*Format:*\x20remove\x20from\x20%0',o(_0x2ec82a,function(_0x3259c8){return'ELEMENT_'+_0x3259c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x34e550))):o(_0x2ec82a,'*Outdent:*\x20%0',o(_0x2ec82a,'ELEMENT_LIST_ITEM')),_0x53ba41={'type':'format','content':_0x2577b3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x21f62e['multipleBlocks']&&(_0x2577b3='*Merge:*\x20%0',_0x53ba41={'type':'deletion','content':o(_0x2ec82a,_0x2577b3,o(_0x2ec82a,'ELEMENT_LIST_ITEM'))});}return _0x53ba41;});}}function le(_0x4d3c88){let _0x5cd52b=_0x4d3c88['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5cd52b;){const _0xa49852=_0x5cd52b['getAttribute']('listItemId');if(!_0xa49852)return!0x1;if(_0xa49852==_0x4d3c88['data']['newValue'])return'newValue';if(_0xa49852==_0x4d3c88['data']['oldValue'])return'oldValue';_0x5cd52b=_0x5cd52b['previousSibling'];}return!0x1;}class ue extends _0x52cd9d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4a4a69=this['editor']['config']['get']('list.properties'),_0x3c1663=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a4a69['styles']&&(_0x3c1663['enableDefaultAttributesIntegration']('listStyle'),_0x3c1663['registerBlockAttribute']('listStyle')),_0x4a4a69['reversed']&&(_0x3c1663['enableDefaultAttributesIntegration']('listReversed'),_0x3c1663['registerBlockAttribute']('listReversed')),_0x4a4a69['startIndex']&&(_0x3c1663['enableDefaultAttributesIntegration']('listStart'),_0x3c1663['registerBlockAttribute']('listStart'));const _0x6c0e40={'type':'format','content':''};_0x3c1663['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5aebc4=this['editor']['locale'];_0x3c1663['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5aebc4,'FORMAT_LIST_REVERSED')),_0x3c1663['descriptionFactory']['registerDescriptionCallback'](_0x37127d=>{const {data:_0x1fe3af}=_0x37127d;if(_0x1fe3af&&'listReversed'==_0x1fe3af['key'])return null==_0x1fe3af['newValue']||0x0==_0x1fe3af['newValue']&&null==_0x1fe3af['oldValue']?_0x6c0e40:void 0x0;}),_0x3c1663['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5aebc4,'FORMAT_LIST_START')),_0x3c1663['descriptionFactory']['registerDescriptionCallback'](_0x4347b3=>{const {data:_0x40a8f3}=_0x4347b3;if(_0x40a8f3&&'listStart'==_0x40a8f3['key'])return null==_0x40a8f3['newValue']||0x1==_0x40a8f3['newValue']&&null==_0x40a8f3['oldValue']?_0x6c0e40:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x471184=>{if(_0x471184['batch']['isUndo'])return!0x1;let _0x85dd59=!0x1;const _0x5d048a=_0x3c1663['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x514295=>{const _0x1010d6=_0x3c1663['_getAttributeKey'](_0x514295);return'listStart'==_0x1010d6||'listReversed'==_0x1010d6;});for(const _0x291b30 of _0x5d048a){const _0x3a07f4=_0x291b30['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3a07f4||'customNumbered'==_0x3a07f4)continue;_0x3c1663['_findSuggestions'](_0x291b30['getFirstRange'](),'attribute')['find'](_0x5b08d3=>'listType'==_0x3c1663['_getAttributeKey'](_0x5b08d3['suggestion']))||(_0x471184['removeMarker'](_0x291b30['getFirstMarker']()),_0x85dd59=!0x0);}return _0x85dd59;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x8096c0){const _0x1899d0=this['editor']['locale'],{data:_0x378132}=_0x8096c0,_0x14f500={'type':'format','content':''};if(!_0x378132||'listStyle'!=_0x378132['key'])return;if(!_0x378132['oldValue'])return'default'==_0x378132['newValue']?_0x14f500:{'type':'format','content':''+o(_0x1899d0,'*Set\x20format:*\x20%0',o(_0x1899d0,this['_getTranslationKeyForListStyle'](_0x378132['newValue'])))};if(!_0x378132['newValue']){if('default'==_0x378132['oldValue'])return _0x14f500;let _0x4c7da0=_0x8096c0['head'];for(;_0x4c7da0;){if(_0x4c7da0['data']&&'listType'==_0x4c7da0['data']['key']&&_0x4c7da0['data']['newValue'])return _0x14f500;_0x4c7da0=_0x4c7da0['next'];}return{'type':'format','content':''+o(_0x1899d0,'*Remove\x20format:*\x20%0',o(_0x1899d0,this['_getTranslationKeyForListStyle'](_0x378132['oldValue'])))};}if('default'!=_0x378132['newValue'])return{'type':'format','content':''+o(_0x1899d0,'*Set\x20format:*\x20%0',o(_0x1899d0,this['_getTranslationKeyForListStyle'](_0x378132['newValue'])))};let _0xa29375=_0x8096c0['head'];for(;_0xa29375;){if(_0xa29375['data']&&'listType'==_0xa29375['data']['key']&&_0xa29375['data']['newValue']&&_0xa29375['data']['oldValue'])return _0x14f500;_0xa29375=_0xa29375['next'];}return{'type':'format','content':o(_0x1899d0,'*Set\x20format:*\x20%0',o(_0x1899d0,'ELEMENT_'+_0x8096c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x15c891=this['editor'],_0x393147=_0x15c891['locale'];_0x15c891['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36a596=>{if('formatBlock'!=_0x36a596['type'])return;const {data:_0x2c02fc}=_0x36a596;if(!_0x2c02fc)return;let _0x10e761,_0x34b909;switch(_0x2c02fc['commandName']){case'listStyle':_0x10e761='*Change\x20to:*\x20%0',_0x34b909={'type':'format','content':o(_0x393147,_0x10e761,o(_0x393147,this['_getTranslationKeyForListStyle'](_0x2c02fc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10e761=_0x2c02fc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x34b909={'type':'format','content':o(_0x393147,_0x10e761)};break;case'listStart':_0x10e761='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x34b909={'type':'format','content':o(_0x393147,_0x10e761,_0x2c02fc['commandParams'][0x0]['startIndex'])};}return _0x34b909;});}['_getTranslationKeyForListStyle'](_0x1fc49e){return'ELEMENT_'+function(_0x362ad5){if(pe['includes'](_0x362ad5))return'bulleted';if(ye['includes'](_0x362ad5))return'numbered';return null;}(_0x1fc49e)['toUpperCase']()+'_LIST_'+_0x1fc49e['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x52cd9d{static get['requires'](){return[_0x5bb9a9];}['init'](){const _0x1d4fc5=this['editor'],_0x175fa1=_0x1d4fc5['plugins']['get']('TrackChangesEditing'),_0x175835=_0x1d4fc5['commands']['get']('enter');_0x175fa1['enableCommand']('enter',()=>{_0x1d4fc5['model']['change'](_0x41638a=>{const _0x1ddfe2=_0x1d4fc5['model']['document']['selection'],_0x2db6ba=_0x1ddfe2['getFirstPosition'](),_0x39ab84=_0x39eeea['fromRange'](_0x1ddfe2['getFirstRange']());if(_0x175835['enterBlock'](_0x41638a)){const _0x52792e=_0x1d4fc5['model']['createPositionAt'](_0x2db6ba['parent']['nextSibling'],0x0),_0x369324=_0x41638a['createRange'](_0x2db6ba,_0x52792e);_0x175fa1['markInsertion'](_0x369324);}else _0x41638a['setSelection'](_0x41638a['createRange'](_0x39ab84['end']));_0x39ab84['detach'](),_0x175835['fire']('afterExecute',{'writer':_0x41638a});});}),_0x1d4fc5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1d4fc5,'split'),{'priority':'high'}),_0x1d4fc5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x39ab23,_0x21e75f,_0x119682)=>{const _0x32d5a9=_0x119682['mapper']['markerNameToElements'](_0x21e75f['markerName']);if(_0x32d5a9){for(const _0xdabf96 of _0x32d5a9)_0xdabf96['hasClass']('ck-suggestion-marker-split')&&(_0x119682['mapper']['unbindElementFromMarkerName'](_0xdabf96,_0x21e75f['markerName']),_0x119682['writer']['remove'](_0xdabf96));}},{'priority':'high'}),_0x1d4fc5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xef0eeb,_0x205913,_0x3c61ec)=>{_0x3c61ec['options']['showSuggestionHighlights']&&_e(_0x1d4fc5,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xef0eeb,_0x205913,_0x3c61ec);},{'priority':'high'});}}class J extends _0x52cd9d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x32be41=this['editor']['plugins']['get']('TrackChangesEditing');_0x32be41['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x32be41['enableCommand']('findNext'),_0x32be41['enableCommand']('findPrevious'),_0x32be41['enableCommand']('replace'),_0x32be41['enableCommand']('replaceAll');}['handleFindCommand'](_0xc54232,_0x18fbf8,_0x82c25e={}){const _0x10eaa2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xc54232(_0x593cd2=>('string'==typeof _0x18fbf8?_0x10eaa2['findByTextCallback'](_0x18fbf8,_0x82c25e):_0x18fbf8)(_0x593cd2)['filter'](_0xbc33da=>!0x1===this['_isInDeletionRange'](_0xbc33da,_0x593cd2['item'])),_0x82c25e);}['_isInDeletionRange'](_0x352ad8,_0x31853c){const _0x237123=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31853c,_0x352ad8['start']),this['editor']['model']['createPositionAt'](_0x31853c,_0x352ad8['end']));for(const _0x17a135 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x237123['getIntersection'](_0x17a135['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x52cd9d{['afterInit'](){const _0x20c86b=this['editor']['locale'],_0x408199=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x32d3f6,commandName:_0x32e998}of ro)this['editor']['plugins']['has'](_0x32d3f6)&&(_0x408199['enableDefaultAttributesIntegration'](_0x32e998),_0x408199['registerInlineAttribute'](_0x32e998));_0x20c86b['t'],_0x408199['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x20c86b,'FORMAT_FONT_SIZE')),_0x408199['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x20c86b,'FORMAT_FONT_FAMILY')),_0x408199['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x20c86b,'FORMAT_FONT_COLOR')),_0x408199['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x20c86b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b7744=this['editor'],_0xe7e1eb=_0x1b7744['locale'];_0x1b7744['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e7d02=>{const _0x17db3c=_0xe7e1eb['t'];if('formatInline'!=_0x5e7d02['type'])return;const {data:_0x5c785c}=_0x5e7d02;if(null!=_0x5c785c){if('fontSize'==_0x5c785c['commandName']){const _0x56e295=_0x5c785c['commandParams'][0x0]['value'];if(_0x56e295){const _0x54c33f=_0x17db3c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x40965b=>_0x40965b['model']==_0x56e295)['title'])['toLowerCase']();return{'type':'format','content':o(_0xe7e1eb,'*Set\x20font\x20size:*\x20%0',_0x54c33f)};}return{'type':'format','content':o(_0xe7e1eb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5c785c['commandName']){const _0x5baadf=_0x5c785c['commandParams'][0x0]['value'];return _0x5baadf?{'type':'format','content':o(_0xe7e1eb,'*Set\x20font\x20family:*\x20%0',_0x5baadf)}:{'type':'format','content':o(_0xe7e1eb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5c785c['commandName']){const _0x661d8d=_0x5c785c['commandParams'][0x0]['value'];if(_0x661d8d){const _0x30629b=_0x5f153d(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa32e19=>_0xa32e19['model']==_0x661d8d);let _0x39bb18=_0x661d8d,_0x3d684d='';return _0x30629b&&(_0x39bb18=_0x30629b['label'],_0x3d684d=_0x17db3c(_0x39bb18)['toLowerCase']()),{'type':'format','content':o(_0xe7e1eb,'*Set\x20font\x20color:*\x20%0',_0x3d684d)['trim'](),'color':{'value':_0x661d8d,'title':_0x3d684d||_0x39bb18}};}return{'type':'format','content':o(_0xe7e1eb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5c785c['commandName']){const _0x240517=_0x5c785c['commandParams'][0x0]['value'];if(_0x240517){const _0x1f2785=_0x5f153d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1c972d=>_0x1c972d['model']==_0x240517);let _0x4e65a9=_0x240517,_0x1fe61f='';return _0x1f2785&&(_0x4e65a9=_0x1f2785['label'],_0x1fe61f=_0x17db3c(_0x4e65a9)['toLowerCase']()),{'type':'format','content':o(_0xe7e1eb,'*Set\x20font\x20background\x20color:*\x20%0',_0x1fe61f)['trim'](),'color':{'value':_0x240517,'title':_0x1fe61f||_0x4e65a9}};}return{'type':'format','content':o(_0xe7e1eb,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x52cd9d{['afterInit'](){const _0x280854=this['editor'],_0x17b418=_0x280854['plugins']['get']('TrackChangesEditing'),_0x27db5c=_0x280854['commands']['get']('copyFormat'),_0x3b6d7f=_0x280854['commands']['get']('pasteFormat');_0x27db5c&&_0x3b6d7f&&(_0x17b418['enableDefaultAttributesIntegration']('pasteFormat'),_0x17b418['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3559de=this['editor'],_0x212089=_0x3559de['locale'];_0x3559de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12f3ff=>{if('formatBlock'!=_0x12f3ff['type']&&'formatInline'!=_0x12f3ff['type'])return;const {data:_0x50ff06}=_0x12f3ff;if(_0x50ff06&&'pasteFormat'===_0x50ff06['commandName']){const _0x4fa3bf=[],_0x277316=_0x50ff06['commandParams'][0x0];for(const [_0x3f57c1,_0x43a109]of Object['entries'](_0x277316))_0x4fa3bf['push'](so(_0x3559de,_0x3f57c1,_0x43a109));return _0x4fa3bf['length']?{'type':'format','content':o(_0x212089,'*Set\x20format\x20to:*\x20%0',_0x4fa3bf['join'](',\x20'))}:{'type':'format','content':o(_0x212089,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2550c0,_0x3d4b03,_0x5e255c){const _0x5567c9=_0x2550c0['locale']['t'],_0xcc3b37=_0x3d4b03['split'](/(?=[A-Z])/)['join']('\x20'),_0x597bd2=_0x5567c9(_0xcc3b37['charAt'](0x0)['toUpperCase']()+_0xcc3b37['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5e255c)return _0x597bd2;if('fontColor'===_0x3d4b03||'fontBackgroundColor'===_0x3d4b03){const _0x3f28a4=_0x5f153d(_0x2550c0['config']['get']('fontColor.colors'))['find'](_0x193443=>_0x193443['model']==_0x5e255c);return _0x597bd2+'\x20('+(_0x3f28a4?_0x5567c9(_0x3f28a4['label'])['toLowerCase']():_0x5e255c)+')';}if('fontSize'===_0x3d4b03&&isNaN(parseFloat(_0x5e255c))){const _0x52447e=_0x2550c0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2550c0['config']['get']('fontSize.options'))['find'](_0xbdf94=>_0xbdf94['model']==_0x5e255c);return _0x597bd2+'\x20('+(_0x52447e?_0x5567c9(_0x52447e['title'])['toLowerCase']():_0x5e255c)+')';}return _0x597bd2+'\x20('+_0x5e255c+')';}class Y extends _0x52cd9d{['_headingOptions'];['afterInit'](){const _0x4cc8ed=this['editor'];if(!_0x4cc8ed['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4cc8ed['config']['get']('heading.options');const _0x9d3d95=_0x4cc8ed['locale'],_0x5b3b06=_0x4cc8ed['plugins']['get']('TrackChangesEditing');_0x5b3b06['enableDefaultAttributesIntegration']('heading');for(const _0x44719a of this['_headingOptions'])'paragraph'!=_0x44719a['model']&&_0x5b3b06['descriptionFactory']['registerElementLabel'](_0x44719a['model'],_0x46332f=>{const _0x3475e7=this['_getHeadingLevel'](_0x44719a['model']);return null!==_0x3475e7?_0x5b941b(_0x46332f,_0x3475e7):_0x23efa5(_0x46332f,_0x44719a['title']);});function _0x5b941b(_0x480a08,_0x36964c){return o(_0x9d3d95,'ELEMENT_HEADING',[_0x480a08,_0x36964c]);}function _0x23efa5(_0x13a63a,_0x5e7118){return o(_0x9d3d95,'ELEMENT_HEADING_CUSTOM',[_0x13a63a,_0x5e7118]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bb185=this['editor'],_0x23067e=_0x1bb185['locale'];function _0x166e14(_0x45238a,_0x3d8e9e){return o(_0x23067e,'ELEMENT_HEADING_CUSTOM',[_0x45238a,_0x3d8e9e]);}_0x1bb185['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8a1bb2=>{if('formatBlock'!=_0x8a1bb2['type'])return;const {data:_0x2e560c}=_0x8a1bb2;if(_0x2e560c&&'heading'==_0x2e560c['commandName']){const _0x50dcf9=_0x2e560c['commandParams'][0x0]['value'],_0xf9ac6c=this['_getHeadingLevel'](_0x50dcf9);if(null!==_0xf9ac6c)return{'type':'format','content':o(_0x23067e,'*Change\x20to:*\x20%0',(_0x3f257d=0x1,_0x15cb78=_0xf9ac6c,o(_0x23067e,'ELEMENT_HEADING',[_0x3f257d,_0x15cb78])))};const _0x509919=this['_headingOptions']['find'](_0xb34e94=>_0xb34e94['model']===_0x50dcf9)['title'];return{'type':'format','content':o(_0x23067e,'*Change\x20to:*\x20%0',_0x166e14(0x1,_0x509919))};}var _0x3f257d,_0x15cb78;});}['_getHeadingLevel'](_0x347eac){const _0x274642=_0x347eac['match'](/^heading(\d+)/);if(_0x274642)return _0x274642[0x1];const _0x4ab971=this['_headingOptions']?.['find'](_0x168968=>_0x168968['model']==_0x347eac);if(_0x4ab971&&_0x4ab971['view']){const _0x25b1d6=_0x4ab971['view'],_0x1b0569=(_0x25b1d6['name']??_0x25b1d6)['match'](/^h(\d+)/);if(_0x1b0569)return _0x1b0569[0x1];}return null;}}class Z extends _0x52cd9d{['afterInit'](){const _0x2d1f0c=this['editor'];if(!_0x2d1f0c['plugins']['has']('HighlightEditing'))return;const _0x210915=_0x2d1f0c['plugins']['get']('TrackChangesEditing'),_0x48df07=_0x2d1f0c['locale'];_0x210915['enableDefaultAttributesIntegration']('highlight'),_0x210915['registerInlineAttribute']('highlight'),_0x210915['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x48df07,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x236498=this['editor'],_0x385677=_0x236498['locale'];_0x236498['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x261447=>{if('formatInline'!=_0x261447['type'])return;const {data:_0xc9039a}=_0x261447;if(_0xc9039a&&'highlight'==_0xc9039a['commandName']){const _0x9b80ca=_0x385677['t'],_0x769f45=_0xc9039a['commandParams'][0x0]['value'];if(_0x769f45){const _0xdd79=_0x236498['config']['get']('highlight.options')['find'](_0x50bbf5=>_0x50bbf5['model']==_0x769f45),_0x5d2953=_0x9b80ca(_0xdd79['title'])['toLowerCase']();return{'type':'format','content':o(_0x385677,'*Set\x20highlight:*\x20%0',_0x5d2953),'color':{'value':_0xdd79['color'],'title':_0xdd79['title']}};}return{'type':'format','content':o(_0x385677,'*Remove\x20highlight*',o(_0x385677,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x52cd9d{['afterInit'](){const _0x53f47d=this['editor'];if(!_0x53f47d['plugins']['has']('HorizontalLineEditing'))return;_0x53f47d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xca775b=_0x53f47d['plugins']['get']('TrackChangesEditing'),_0x3ca50e=_0x53f47d['locale'];_0xca775b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x471e48=>o(_0x3ca50e,'ELEMENT_HORIZONTAL_LINE',_0x471e48)),_0x53f47d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4131b7,{writer:_0x432a94,options:_0x57009e})=>{if(!_0x57009e['showSuggestionHighlights'])return null;const _0x4129c5=_0x432a94['createContainerElement']('div'),_0x9dc5e1=_0x432a94['createEmptyElement']('hr');return _0x432a94['addClass']('ck-horizontal-line',_0x4129c5),_0x432a94['insert'](_0x432a94['createPositionAt'](_0x4129c5,0x0),_0x9dc5e1),_0x4129c5;},'converterPriority':'high'});}}class et extends _0x52cd9d{['afterInit'](){const _0x5d5533=this['editor'];if(!_0x5d5533['plugins']['has']('HtmlEmbed'))return;const _0x4fdf32=_0x5d5533['plugins']['get']('TrackChangesEditing'),_0x3ce76f=_0x5d5533['locale'];_0x4fdf32['descriptionFactory']['registerElementLabel']('rawHtml',_0x3966ee=>o(_0x3ce76f,'ELEMENT_HTML_EMBED',_0x3966ee)),_0x4fdf32['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4fdf32['registerBlockAttribute']('value'),_0x4fdf32['descriptionFactory']['registerDescriptionCallback'](_0x399b2d=>{if('attribute'!=_0x399b2d['type'])return;const {data:_0x56bc52}=_0x399b2d;if(_0x56bc52&&'value'==_0x56bc52['key']&&_0x399b2d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x31f825=o(_0x3ce76f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3ce76f,'*Change\x20%0\x20content*',_0x31f825)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2935eb=this['editor'],_0x160595=_0x2935eb['locale'];_0x2935eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17453=>{if('formatBlock'!=_0x17453['type'])return;const {data:_0x38130b}=_0x17453;if(_0x38130b&&'htmlEmbed'==_0x38130b['commandName']){const _0x104b93=o(_0x160595,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x160595,'*Change\x20%0\x20content*',_0x104b93)};}});}}class it extends _0x52cd9d{['afterInit'](){const _0x322a11=this['editor'];if(!_0x322a11['plugins']['has']('ImageEditing'))return;const _0xb32879=_0x322a11['plugins']['get']('TrackChangesEditing'),_0x1a0eaa=_0x322a11['plugins']['get']('ImageUtils'),_0x29a036=_0x322a11['locale'];_0xb32879['enableCommand']('insertImage'),_0xb32879['descriptionFactory']['registerElementLabel']('imageBlock',_0x42fafe=>o(_0x29a036,'ELEMENT_IMAGE',_0x42fafe)),_0xb32879['descriptionFactory']['registerElementLabel']('imageInline',_0x54bdbc=>o(_0x29a036,'ELEMENT_INLINE_IMAGE',_0x54bdbc)),_0xb32879['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x29a036,'ELEMENT_CAPTION')),_0x322a11['plugins']['has']('ImageUploadEditing')&&_0xb32879['enableCommand']('uploadImage'),_0x322a11['plugins']['has']('ImageBlockEditing')&&_0x322a11['plugins']['has']('ImageInlineEditing')&&(_0xb32879['enableCommand']('imageTypeInline',(_0x25d6ad,_0x4311d1)=>{const _0x4ad803=_0x1a0eaa['getClosestSelectedImageElement'](_0x322a11['model']['document']['selection']);_0x322a11['model']['change'](()=>{_0xb32879['markBlockFormat'](_0x4ad803,{'commandName':'imageTypeInline','commandParams':[_0x4311d1]},[],'convertBlockImageToInline');});}),_0xb32879['enableCommand']('imageTypeBlock',(_0x2aff11,_0x294ddd)=>{_0x322a11['model']['change'](_0x941c19=>{let _0x2d136d=_0x1a0eaa['getClosestSelectedImageElement'](_0x322a11['model']['document']['selection']),_0x5e0c4f=_0x941c19['createRangeOn'](_0x2d136d);const _0x4dc65f=_0x498ffa['fromPosition'](_0x5e0c4f['start'],'toPrevious'),_0x27ec62=_0x498ffa['fromPosition'](_0x5e0c4f['end'],'toNext');_0xb32879['forceDefaultExecution'](()=>_0x2aff11(_0x294ddd)),_0x2d136d=_0x1a0eaa['getClosestSelectedImageElement'](_0x322a11['model']['document']['selection']),_0x5e0c4f=_0x941c19['createRangeOn'](_0x2d136d);const _0x15e33c=_0x941c19['createRange'](_0x4dc65f,_0x27ec62);_0x4dc65f['detach'](),_0x27ec62['detach'](),_0xb32879['markBlockFormat'](_0x2d136d,{'commandName':'imageTypeInline','commandParams':[_0x294ddd]},[],'convertInlineImageToBlock'),_0x15e33c['start']['isBefore'](_0x5e0c4f['start'])&&_0xb32879['markInsertion'](_0x941c19['createRange'](_0x15e33c['start'],_0x5e0c4f['start']),'convertInlineImageToBlock'),_0x5e0c4f['end']['isBefore'](_0x15e33c['end'])&&_0xb32879['markInsertion'](_0x941c19['createRange'](_0x5e0c4f['end'],_0x15e33c['end']),'convertInlineImageToBlock');});}),_0xb32879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb32879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb32879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb32879['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb32879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb32879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x256bf9])=>{const _0x23cd83=_0xb32879['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x389b85=_0x256bf9['start'],_0x1d8567=_0x256bf9['end'];const _0x43fca9=_0x322a11['model']['schema']['getNearestSelectionRange'](_0x389b85,'backward'),_0x134e22=_0x322a11['model']['schema']['getNearestSelectionRange'](_0x1d8567,'forward');_0x43fca9['isCollapsed']&&(_0x389b85=_0x43fca9['start']),_0x134e22['isCollapsed']&&(_0x1d8567=_0x134e22['end']),_0x23cd83([_0x322a11['model']['createRange'](_0x389b85,_0x1d8567)]);}),_0xb32879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x502db5),_0xb32879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x502db5)),_0x322a11['plugins']['has']('ImageCaptionEditing')&&(_0xb32879['enableCommand']('toggleImageCaption',(_0x4ceac3,_0x5a9e5a)=>{const _0x4232f1=_0x322a11['plugins']['get']('ImageCaptionUtils');let _0x56e578=_0x1a0eaa['getClosestSelectedImageElement'](_0x322a11['model']['document']['selection']),_0x195bcd=_0x4232f1['getCaptionFromImageModelElement'](_0x56e578);_0x322a11['model']['change'](()=>{if(_0x195bcd)return void _0xb32879['markDeletion'](_0x322a11['model']['createRangeOn'](_0x195bcd));const _0x564d89=_0x1a0eaa['isBlockImage'](_0x56e578);_0x4ceac3(_0x5a9e5a),_0x56e578=_0x1a0eaa['getClosestSelectedImageElement'](_0x322a11['model']['document']['selection']),_0x195bcd=_0x4232f1['getCaptionFromImageModelElement'](_0x56e578),_0xb32879['markInsertion'](_0x322a11['model']['createRangeOn'](_0x195bcd),_0x564d89?null:'imageCaption');});}),_0xb32879['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x502db5));const _0x3665e3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36005e(_0x553936,_0x49a6ff){const _0x5eb8dd=_0x3665e3['findIndex'](({type:_0x8983b9,subType:_0x10f879})=>_0x553936['type']==_0x8983b9&&_0x553936['subType']==_0x10f879),_0x402438=_0x3665e3['findIndex'](({type:_0x2d1539,subType:_0x508d16})=>_0x49a6ff['type']==_0x2d1539&&_0x49a6ff['subType']==_0x508d16);if(_0x5eb8dd<0x0||_0x402438<0x0)return!0x1;const _0x282516=_0x553936['getFirstRange'](),_0x294369=_0x49a6ff['getFirstRange']();if((0x0==_0x5eb8dd||0x1==_0x5eb8dd)&&0x2==_0x402438&&_0x282516['isIntersecting'](_0x294369))return!0x0;if(0x2==_0x5eb8dd&&0x3==_0x402438){const _0x131052=_0xb32879['_findSuggestions'](_0x282516,'insertion')['filter'](({suggestion:_0x4c40c5,meta:_0xf0cfe3})=>_0xf0cfe3['isOwn']&&'convertInlineImageToBlock'==_0x4c40c5['subType']);if(_0x131052['length']>0x1&&_0x294369['end']['isEqual'](_0x282516['start']))return!0x0;if(0x1==_0x131052['length']&&(_0x282516['start']['isEqual'](_0x294369['end'])||_0x282516['end']['isEqual'](_0x294369['start'])))return!0x0;}if(0x3==_0x5eb8dd&&0x3==_0x402438&&_0x282516['start']['isBefore'](_0x294369['start'])){const _0x18e865=_0x282516['end']['nodeAfter'],_0x39c4e3=_0x294369['start']['nodeBefore'];return _0x1a0eaa['isBlockImage'](_0x18e865)&&_0x18e865===_0x39c4e3;}return!0x1;}function _0x502db5(_0x180754,_0x2b3aa5){return _0x36005e(_0x180754,_0x2b3aa5)?[_0x180754,_0x2b3aa5]:_0x36005e(_0x2b3aa5,_0x180754)?[_0x2b3aa5,_0x180754]:null;}_0x322a11['plugins']['has']('ImageResize')&&(_0xb32879['enableDefaultAttributesIntegration']('resizeImage'),_0xb32879['registerBlockAttribute']('resizedWidth'),_0xb32879['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x29a036,'FORMAT_IMAGE_SIZE'))),_0x322a11['plugins']['has']('ImageTextAlternativeEditing')&&(_0xb32879['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xb32879['registerBlockAttribute']('alt')),_0xb32879['descriptionFactory']['registerDescriptionCallback'](_0x447d4e=>{if(!!_0x3665e3['find'](({type:_0x1aa956,subType:_0x9ea202})=>_0x447d4e['type']==_0x1aa956&&_0x447d4e['subType']==_0x9ea202))return _0x447d4e['previous']?{}:void 0x0;}),_0xb32879['descriptionFactory']['registerDescriptionCallback'](_0x1fc454=>{if('insertion'==_0x1fc454['type']||'deletion'==_0x1fc454['type']){const _0x1ccddc=_0x1fc454['getContainedElement']();if(_0x1ccddc&&_0x1ccddc['is']('element','caption'))return{'type':'insertion'==_0x1fc454['type']?'addObject':'removeObject','element':_0x1ccddc,'quantity':0x1};}}),_0xb32879['descriptionFactory']['registerDescriptionCallback'](_0xabc464=>'formatBlock'==_0xabc464['type']&&'convertInlineImageToBlock'==_0xabc464['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xabc464['type']&&'convertBlockImageToInline'==_0xabc464['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb32879['descriptionFactory']['registerDescriptionCallback'](_0x117142=>{if('attribute'!=_0x117142['type'])return;const {data:_0x59852c}=_0x117142;if(!_0x59852c||'alt'!=_0x59852c['key'])return;const _0x10d50b=_0x59852c['newValue'];return _0x10d50b?{'type':'format','content':o(_0x29a036,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x10d50b+'\x22')}:{'type':'format','content':o(_0x29a036,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24cfac=this['editor'],_0x400682=_0x24cfac['locale'];_0x24cfac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5038c4=>{if('formatBlock'!=_0x5038c4['type']&&'formatInline'!=_0x5038c4['type'])return;const {data:_0x34c3ad}=_0x5038c4;if(_0x34c3ad){if('imageTextAlternative'==_0x34c3ad['commandName']){const _0xc8d4d8=_0x34c3ad['commandParams'][0x0]['newValue'];return _0xc8d4d8?{'type':'format','content':o(_0x400682,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xc8d4d8+'\x22')}:{'type':'format','content':o(_0x400682,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x34c3ad['commandName']){const _0x982a75=_0x34c3ad['commandParams'][0x0]['width'];return _0x982a75?{'type':'format','content':o(_0x400682,'*Set\x20image\x20width:*\x20%0',_0x982a75)}:{'type':'format','content':o(_0x400682,'*Reset\x20image\x20width*')};}}});}}class st extends _0x52cd9d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x577a11=this['editor']['locale'],_0x31198a=this['editor']['plugins']['get']('TrackChangesEditing');_0x31198a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x31198a['registerBlockAttribute']('src'),_0x31198a['descriptionFactory']['registerDescriptionCallback'](_0x5e535d=>{if('attribute'!=_0x5e535d['type'])return;const {data:_0x315614}=_0x5e535d;return _0x315614&&'src'==_0x315614['key']?_0x315614['newValue']&&_0x315614['oldValue']?{'type':'format','content':o(_0x577a11,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5225cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x5225cf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5225cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5225cf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5225cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b12a3=this['editor'],_0x2bf550=_0x1b12a3['locale'];_0x1b12a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xce0459=>{if('formatBlock'!=_0xce0459['type']&&'formatInline'!=_0xce0459['type'])return;const {data:_0x4f2751}=_0xce0459;if(!_0x4f2751||'replaceImageSource'!=_0x4f2751['commandName'])return;return{'type':'format','content':o(_0x2bf550,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x52cd9d{['afterInit'](){const _0x9bbaaa=this['editor'];if(!_0x9bbaaa['plugins']['has']('ImageStyleEditing'))return;const _0x127863=_0x9bbaaa['plugins']['get']('TrackChangesEditing'),_0x1b66eb=_0x9bbaaa['plugins']['get']('ImageUtils'),_0x111e5c={};_0x127863['enableCommand']('imageStyle',(_0x43d2fe,_0x4815a8)=>{const _0x349d89=_0x9bbaaa['plugins']['get']('Users')['me'],_0x42c33f=_0x9bbaaa['commands']['get']('imageStyle');let _0x1ffd72=_0x1b66eb['getClosestSelectedImageElement'](_0x9bbaaa['model']['document']['selection']),_0x3b0638=_0x9bbaaa['model']['createRangeOn'](_0x1ffd72),_0x48e344=_0x42c33f['value'];if(_0x48e344==_0x4815a8['value'])return;const _0x54c0b3={'commandName':'imageStyle','commandParams':[_0x4815a8],'formatGroupId':_0x3792e7()};_0x9bbaaa['model']['change'](()=>{if(_0x127863['getSuggestions']()['filter'](_0x238406=>_0x238406['isInContent']&&_0x349d89==_0x238406['author']&&('formatBlock'==_0x238406['type']||'formatInline'==_0x238406['type'])&&('imageStylePreApply'==_0x238406['subType']||'imageStylePostApply'==_0x238406['subType'])&&_0x238406['getFirstRange']()['isEqual'](_0x3b0638))['forEach'](_0x599fe2=>_0x127863['discardSuggestion'](_0x599fe2['head'])),_0x1ffd72=_0x1b66eb['getClosestSelectedImageElement'](_0x9bbaaa['model']['document']['selection']),_0x3b0638=_0x9bbaaa['model']['createRangeOn'](_0x1ffd72),_0x42c33f['refresh'](),_0x9bbaaa['commands']['get']('imageTypeInline')['refresh'](),_0x9bbaaa['commands']['get']('imageTypeBlock')['refresh'](),_0x48e344=_0x42c33f['value'],_0x48e344!=_0x4815a8['value'])return _0x1b66eb['isInlineImage'](_0x1ffd72)&&_0x42c33f['shouldConvertImageType'](_0x4815a8['value'],_0x1ffd72)?(_0x43d2fe({..._0x4815a8,'setImageSizes':!0x1}),_0x1ffd72=_0x1b66eb['getClosestSelectedImageElement'](_0x9bbaaa['model']['document']['selection']),void _0x127863['markBlockFormat'](_0x1ffd72,{..._0x54c0b3,'commandReversedParams':[{'value':_0x48e344||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1b66eb['isBlockImage'](_0x1ffd72)?_0x127863['markBlockFormat'](_0x1ffd72,_0x54c0b3,[],'imageStylePostApply'):_0x127863['markInlineFormat'](_0x3b0638,_0x54c0b3,'imageStylePostApply'));});});for(const _0xe389bd of _0x9bbaaa['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x111e5c[_0xe389bd['name']]=_0xe389bd['title']['toLowerCase']();_0x127863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x127863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x127863['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x127863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x206127])=>{_0x1b66eb['setImageNaturalSizeAttributes'](_0x206127['getContainedElement']());}),_0x127863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x6e347,_0xb48029)=>{_0x127863['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x6e347,{'commandName':_0xb48029['commandName'],'commandParams':_0xb48029['commandReversedParams']});}),_0x127863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x38b868,_0x14fd0f){if(_0x89b5ba(_0x38b868,_0x14fd0f))return[_0x38b868,_0x14fd0f];if(_0x89b5ba(_0x14fd0f,_0x38b868))return[_0x14fd0f,_0x38b868];return null;});const _0x31de15=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x89b5ba(_0x3cdb4a,_0x39aadd){const _0x26be1c=_0x31de15['findIndex'](({type:_0x575c00,subType:_0x267940})=>_0x3cdb4a['type']==_0x575c00&&_0x3cdb4a['subType']==_0x267940),_0x1c3348=_0x31de15['findIndex'](({type:_0x352507,subType:_0x5cfe69})=>_0x39aadd['type']==_0x352507&&_0x39aadd['subType']==_0x5cfe69);if(_0x26be1c<0x0||_0x1c3348<0x0)return!0x1;const _0x15bf42=_0x3cdb4a['getFirstRange'](),_0x2dcbab=_0x39aadd['getFirstRange']();if((0x0==_0x26be1c||0x1==_0x26be1c)&&0x2==_0x1c3348&&_0x15bf42['isIntersecting'](_0x2dcbab))return!0x0;if(0x2==_0x26be1c&&0x3==_0x1c3348){const _0x3f07fb=_0x127863['_findSuggestions'](_0x15bf42,'insertion')['filter'](({suggestion:_0x24d2d3,meta:_0x5d4eb4})=>_0x5d4eb4['isOwn']&&'convertInlineImageToBlock'==_0x24d2d3['subType']);if(_0x3f07fb['length']>0x1&&_0x2dcbab['end']['isEqual'](_0x15bf42['start']))return!0x0;if(0x1==_0x3f07fb['length']&&(_0x15bf42['start']['isEqual'](_0x2dcbab['end'])||_0x15bf42['end']['isEqual'](_0x2dcbab['start'])))return!0x0;}if(0x3==_0x26be1c&&0x3==_0x1c3348&&_0x15bf42['start']['isBefore'](_0x2dcbab['start'])){const _0x7e9348=_0x15bf42['end']['nodeAfter'],_0x78c089=_0x2dcbab['start']['nodeBefore'];return _0x1b66eb['isBlockImage'](_0x7e9348)&&_0x7e9348===_0x78c089;}return!0x1;}_0x9bbaaa['model']['document']['registerPostFixer'](()=>{let _0x9f4444=!0x1;const _0x586d91=Array['from'](_0x9bbaaa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b3217,data:_0x4ec229}of _0x586d91){const {group:_0xae4600,type:_0x528d8c,subType:_0x1a76dd,id:_0x3cdc85}=_0x127863['_splitMarkerName'](_0x1b3217);if('suggestion'==_0xae4600&&_0x127863['hasSuggestion'](_0x3cdc85)){if('formatBlock'==_0x528d8c&&('imageStylePreApply'==_0x1a76dd||'imageStylePostApply'==_0x1a76dd)){const _0x39c68a=_0x127863['getSuggestion'](_0x3cdc85);if(_0x4ec229['newRange']){const _0x10e8c8=_0x39c68a['getFirstRange']()['getContainedElement']();if(_0x1b66eb['isBlockImage'](_0x10e8c8))continue;_0x127863['discardSuggestion'](_0x39c68a),_0x9f4444=!0x0;}}if('insertion'==_0x528d8c&&'imageCaption'==_0x1a76dd&&!_0x4ec229['newRange']){const _0x490c2f=_0x127863['getSuggestion'](_0x3cdc85);_0x490c2f['next']&&_0x490c2f['next']['isInContent']&&(_0x127863['discardSuggestion'](_0x490c2f['next']),_0x9f4444=!0x0);}}}return _0x9f4444;}),this['_registerLegacyDescription'](_0x111e5c);}['_registerLegacyDescription'](_0x4ae962){const _0x31a458=this['editor'],_0x575027=_0x31a458['locale'];_0x31a458['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39f377=>{if('formatBlock'!=_0x39f377['type']&&'formatInline'!=_0x39f377['type'])return;const {data:_0x13bb21}=_0x39f377;if(!_0x13bb21||'imageStyle'!=_0x13bb21['commandName'])return;const _0x418aa3=_0x13bb21['commandParams'][0x0]['value'];return _0x116b9d('side'===_0x418aa3?o(_0x575027,'FORMAT_SIDE_IMAGE'):_0x4ae962[_0x418aa3]||_0x418aa3);function _0x116b9d(_0x41bc32){return{'type':'format','content':o(_0x575027,'*Format:*\x20%0',_0x41bc32)};}});}}class ot extends _0x52cd9d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4c8dc3){super(_0x4c8dc3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x526bc5=this['editor'],_0x299fee=_0x526bc5['commands']['get']('importWord'),_0x21184a=_0x526bc5['commands']['get']('trackChanges');_0x299fee&&(_0x299fee['on']('execute',(_0x3541bd,[,_0x3a576f])=>{this['_trackChangesValueDuringImport']=_0x21184a['value'],_0x3a576f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x299fee,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x299fee,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x21184a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x526bc5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1cf288,_0x34823a){const {suggestions:_0x5d1b86}=_0x34823a,_0x398e7c=this['editor']['commands']['get']('trackChanges'),_0x4c9f1f=_0x398e7c['value'];this['_trackChangesValueDuringImport']!==_0x4c9f1f&&(_0x398e7c['execute'](),this['_trackChangesExecuted']=!0x0),_0x5d1b86&&_0x5d1b86['forEach'](({id:_0x2839e1,type:_0x1e4906,author:_0x4eef6e,created_at:_0x196777})=>{const _0x31b194={'id':_0x2839e1,'type':_0x1e4906,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4eef6e,'createdAt':_0x196777?new Date(_0x196777):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x31b194);});}}class rt extends _0x52cd9d{['afterInit'](){const _0x55fd41=this['editor'],_0x796acf=_0x55fd41['plugins']['get']('TrackChangesEditing');if(_0x55fd41['plugins']['has']('IndentEditing')&&(_0x796acf['enableCommand']('indent'),_0x796acf['enableCommand']('outdent')),_0x55fd41['plugins']['has']('IndentBlock')){for(const _0x65aae5 of['indentBlock','outdentBlock'])_0x796acf['enableDefaultAttributesIntegration'](_0x65aae5);}const _0x178909=_0x55fd41['locale'];_0x796acf['registerBlockAttribute']('blockIndent'),_0x796acf['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x178909,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5026b3=this['editor'],_0x40ec0b=_0x5026b3['locale'],_0x4a2328=_0x5026b3['plugins']['get']('TrackChangesEditing');_0x4a2328['descriptionFactory']['registerDescriptionCallback'](_0x4549e2=>{if('formatBlock'!=_0x4549e2['type'])return;const {data:_0x4aa333}=_0x4549e2;if(!_0x4aa333)return;if('indentBlock'!=_0x4aa333['commandName']&&'outdentBlock'!=_0x4aa333['commandName'])return;const _0x2db829=_0x4549e2['getItems']()[0x0],_0xb71b0b=_0x4a2328['descriptionFactory']['getItemLabel'](_0x2db829);return'indentBlock'==_0x4aa333['commandName']?{'type':'format','content':o(_0x40ec0b,'*Indent:*\x20%0',_0xb71b0b)}:'outdentBlock'==_0x4aa333['commandName']?{'type':'format','content':o(_0x40ec0b,'*Outdent:*\x20%0',_0xb71b0b)}:void 0x0;});}}class at extends _0x52cd9d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x52cd9d{['afterInit'](){const _0x30c052=this['editor'];if(!_0x30c052['plugins']['has']('LinkEditing'))return;const _0x2d293f=_0x30c052['plugins']['get']('TrackChangesEditing'),_0x19dea6=_0x30c052['commands']['get']('link');_0x2d293f['enableDefaultAttributesIntegration']('link'),_0x2d293f['enableDefaultAttributesIntegration']('unlink'),_0x2d293f['registerInlineAttribute']('linkHref');for(const _0x557be2 of _0x19dea6['manualDecorators'])_0x2d293f['registerInlineAttribute'](_0x557be2['id']),_0x2d293f['descriptionFactory']['registerAttributeLabel'](_0x557be2['id'],'link\x20('+_0x557be2['label']['toLowerCase']()+')');_0x2d293f['descriptionFactory']['registerDescriptionCallback'](_0x56bbd6=>{if('attribute'!=_0x56bbd6['type'])return;const {data:_0x2af41d}=_0x56bbd6;if(!_0x2af41d||'linkHref'!=_0x2af41d['key'])return;const _0xb479a0=_0x2af41d['newValue'],_0x27ed7f=_0x30c052['locale'];return{'type':'format','content':null==_0xb479a0?o(_0x27ed7f,'*Remove\x20link*'):o(_0x27ed7f,'*Set\x20link:*\x20%0','\x22'+_0xb479a0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d9d27=this['editor'],_0x11d223=_0x2d9d27['locale'];_0x2d9d27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38fde5=>{if('formatInline'!=_0x38fde5['type'])return;const {data:_0x4e7ae1}=_0x38fde5;if(_0x4e7ae1){if('link'==_0x4e7ae1['commandName']){const _0x209352=_0x4e7ae1['commandParams'][0x0];return{'type':'format','content':o(_0x11d223,'*Set\x20link:*\x20%0','\x22'+_0x209352+'\x22')};}return'unlink'==_0x4e7ae1['commandName']?{'type':'format','content':o(_0x11d223,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x52cd9d{['afterInit'](){const _0x2e4d3d=this['editor'],_0x47ef90=_0x2e4d3d['locale'];if(!_0x2e4d3d['plugins']['has']('LegacyListEditing'))return;const _0x574f50=_0x2e4d3d['plugins']['get']('TrackChangesEditing'),_0x3c3604=_0x2e4d3d['plugins']['has']('LegacyTodoListEditing');function _0x3f78ab(_0x30e4fc){return()=>{const _0x53fdb1=_0x2e4d3d['model']['document']['selection'],_0x2758c0=_0x2e4d3d['commands']['get'](_0x30e4fc);if(_0x2758c0['value'])return void _0x2e4d3d['execute']('paragraph',{});const _0x4d0606=_0x30e4fc['slice'](0x0,-0x4),_0x529114=function(_0x1e87b3,_0x196d42,_0x1a5b4d){let _0x464349=Array['from'](_0x1e87b3)['filter'](_0x2e1494=>function(_0x44531c,_0x545396){return _0x545396['checkChild'](_0x44531c['parent'],'listItem')&&!_0x545396['isObject'](_0x44531c);}(_0x2e1494,_0x1a5b4d));_0x464349=_0x464349['filter'](_0x3c4bae=>!_0x3c4bae['is']('element','listItem')||_0x3c4bae['getAttribute']('listType')!=_0x196d42);const _0x398ab3=new Set();for(const _0x286d0d of _0x464349)_0x286d0d['is']('element','listItem')?_0x398ab3['add'](me(_0x286d0d)):_0x398ab3['add'](_0x286d0d);return Array['from'](_0x398ab3);}(_0x53fdb1['getSelectedBlocks'](),_0x4d0606,_0x2e4d3d['model']['schema']);_0x2e4d3d['model']['change'](()=>{for(const _0x368120 of _0x529114)_0x574f50['markBlockFormat'](_0x368120,{'commandName':_0x30e4fc,'commandParams':[{'forceValue':!_0x2758c0['value']}],'formatGroupId':'blockName'},fe(_0x368120));});};}function _0xef549e(_0x142061){return()=>{const _0xd57e64=function(_0x486dac){let _0x3a0aaf=Array['from'](_0x486dac);const _0x5160ff=_0x3a0aaf['findIndex'](_0x10e151=>'listItem'!=_0x10e151['name']);return _0x5160ff>-0x1&&(_0x3a0aaf=_0x3a0aaf['slice'](0x0,_0x5160ff)),_0x3a0aaf;}(_0x2e4d3d['model']['document']['selection']['getSelectedBlocks']()),_0x132aad=_0x2e4d3d['model']['createRange'](_0x2e4d3d['model']['createPositionAt'](_0xd57e64[0x0],'before'),_0x2e4d3d['model']['createPositionAt'](_0xd57e64[_0xd57e64['length']-0x1],'end'));_0x2e4d3d['model']['change'](()=>{_0x574f50['markBlockFormat'](_0x132aad,{'commandName':_0x142061,'commandParams':[],'formatGroupId':'listIndent'},function(_0x38998c){const _0xcf5f80=new Set();for(const _0x5d0801 of _0x38998c){let _0x230cb8=_0x5d0801['nextSibling'];for(;_0x230cb8&&_0x230cb8['getAttribute']('listIndent')>_0x5d0801['getAttribute']('listIndent');)_0xcf5f80['add'](_0x230cb8),_0x230cb8=_0x230cb8['nextSibling'];}return Array['from'](_0xcf5f80);}(_0xd57e64));});};}_0x574f50['enableCommand']('numberedList',_0x3f78ab('numberedList')),_0x574f50['enableCommand']('bulletedList',_0x3f78ab('bulletedList')),_0x3c3604&&_0x574f50['enableCommand']('todoList',_0x3f78ab('todoList')),_0x574f50['enableCommand']('indentList',_0xef549e('indentList')),_0x574f50['enableCommand']('outdentList',_0xef549e('outdentList')),_0x3c3604&&_0x574f50['enableCommand']('checkTodoList',()=>{const _0x15a2cd=_0x2e4d3d['commands']['get']('checkTodoList'),_0x4594d4=Array['from'](_0x15a2cd['_selectedElements']);_0x4594d4['filter'](_0x271874=>_0x271874['getAttribute']('todoListChecked')!=_0x15a2cd['value']),_0x2e4d3d['model']['change'](()=>{for(const _0x436597 of _0x4594d4)_0x574f50['markBlockFormat'](_0x436597,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x15a2cd['value']}]});});}),_0x574f50['descriptionFactory']['registerElementLabel']('listItem',_0x9ba1e7=>o(_0x47ef90,'ELEMENT_LIST_ITEM',_0x9ba1e7)),_0x574f50['descriptionFactory']['registerDescriptionCallback'](_0xd6f1e3=>{if('formatBlock'!=_0xd6f1e3['type']&&'formatInline'!=_0xd6f1e3['type'])return;const {data:_0x566291}=_0xd6f1e3;if(_0x566291){if('numberedList'==_0x566291['commandName']||'bulletedList'==_0x566291['commandName']||'todoList'==_0x566291['commandName'])switch(_0x566291['commandName']['replace']('List','')){case'bulleted':return _0x960ff2(o(_0x47ef90,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x960ff2(o(_0x47ef90,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x960ff2(o(_0x47ef90,'ELEMENT_TODO_LIST'));}if('indentList'==_0x566291['commandName'])return{'type':'format','content':o(_0x47ef90,'*Indent:*\x20%0',o(_0x47ef90,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x566291['commandName'])return{'type':'format','content':o(_0x47ef90,'*Outdent:*\x20%0',o(_0x47ef90,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x566291['commandName'])return _0x566291['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47ef90,'*Check\x20item*')}:{'type':'format','content':o(_0x47ef90,'*Uncheck\x20item*')};}function _0x960ff2(_0x5d700a){return{'type':'format','content':o(_0x47ef90,'*Change\x20to:*\x20%0',_0x5d700a)};}});}}function me(_0x303cc2){const _0x26ec27=_0x303cc2['getAttribute']('listIndent');if(0x0==_0x26ec27)return _0x303cc2;let _0xf32d4c=_0x303cc2;for(;_0x303cc2['previousSibling']&&_0x303cc2['previousSibling']['is']('element','listItem');){const _0x487cd7=_0x303cc2['previousSibling']['getAttribute']('listIndent');if(_0x487cd7==_0x26ec27)_0xf32d4c=_0x303cc2['previousSibling'];else{if(_0x487cd7<_0x26ec27)break;}_0x303cc2=_0x303cc2['previousSibling'];}return _0xf32d4c;}function fe(_0x50ce85){const _0x5c6072=[];if(_0x50ce85['is']('element','listItem')&&_0x50ce85['getAttribute']('listIndent')>0x0){let _0x41e651=_0x50ce85['nextSibling'];for(;_0x41e651&&'listItem'==_0x41e651['name']&&_0x41e651['getAttribute']('listIndent')==_0x50ce85['getAttribute']('listIndent');)_0x5c6072['push'](_0x41e651),_0x41e651=_0x41e651['nextSibling'];}return _0x5c6072;}class K extends _0x52cd9d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x22b4fb=this['editor']['config']['get']('list.properties'),_0x1fb55f=this['editor']['plugins']['get']('TrackChangesEditing');_0x22b4fb['styles']&&_0x1fb55f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x22b4fb['reversed']&&_0x1fb55f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x22b4fb['startIndex']&&_0x1fb55f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1fb55f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2d9790,_0x283af5={}){const _0x510aaf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fbdc6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x510aaf['markMultiRangeBlockFormat'](_0x2fbdc6,{'commandName':'listStyle','commandParams':[{'type':_0x283af5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xa4d4fc,_0x214bb5={}){const _0x855884=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10f12f=this['_getSuggestionBlocks'](_0x4c8a3a=>_0x4c8a3a['is']('element','listItem')&&'numbered'===_0x4c8a3a['getAttribute']('listType'));if(_0x10f12f['length']<0x1)return;const _0x4a8e97=_0x10f12f['map'](_0x2ea4b6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ea4b6,'before'),this['editor']['model']['createPositionAt'](_0x2ea4b6,0x0)));this['editor']['model']['change'](()=>{_0x855884['markMultiRangeBlockFormat'](_0x4a8e97,{'commandName':'listReversed','commandParams':[{'reversed':_0x214bb5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5b00a7,_0x122edd={}){const _0x46348a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x558150=this['_getSuggestionBlocks'](_0x299c4d=>_0x299c4d['is']('element','listItem')&&'numbered'===_0x299c4d['getAttribute']('listType'));if(_0x558150['length']<0x1)return;const _0x1eda3d=_0x558150['map'](_0x6e10f2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6e10f2,'before'),this['editor']['model']['createPositionAt'](_0x6e10f2,0x0)));this['editor']['model']['change'](()=>{_0x46348a['markMultiRangeBlockFormat'](_0x1eda3d,{'commandName':'listStart','commandParams':[{'startIndex':_0x122edd['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1c7cc1){if('formatBlock'!=_0x1c7cc1['type']&&'formatInline'!=_0x1c7cc1['type'])return;const _0x5cd864=this['editor']['locale'],{data:_0x31b525}=_0x1c7cc1;if(!_0x31b525)return;let _0x4e2e7d,_0x21c720;switch(_0x31b525['commandName']){case'listStyle':_0x4e2e7d='*Change\x20to:*\x20%0',_0x21c720={'type':'format','content':o(_0x5cd864,_0x4e2e7d,o(_0x5cd864,this['_getTranslationKeyForListStyle'](_0x31b525['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e2e7d=_0x31b525['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x21c720={'type':'format','content':o(_0x5cd864,_0x4e2e7d)};break;case'listStart':_0x4e2e7d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21c720={'type':'format','content':o(_0x5cd864,_0x4e2e7d,_0x31b525['commandParams'][0x0]['startIndex'])};}return _0x21c720;}['_getSuggestionBlocksForListStyle'](){const _0x43452a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2283ad=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2283ad[0x0]?.['is']('element','listItem')&&_0x2283ad['unshift'](..._0x43452a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2283ad[_0x2283ad['length']-0x1]?.['is']('element','listItem')&&_0x2283ad['push'](..._0x43452a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2283ad=[...new Set(_0x2283ad)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2283ad=_0x2283ad['filter'](_0x5edf29=>_0x5edf29['is']('element','listItem'))),_0x2283ad;}['_getSuggestionBlocks'](_0x2e3aea){const _0x26cec5=this['editor']['plugins']['get']('LegacyListUtils');let _0x369dc1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2e3aea)['map'](_0x483818=>{const _0x122a92=this['editor']['model']['createPositionAt'](_0x483818,0x0);return[..._0x26cec5['getSiblingNodes'](_0x122a92,'backward'),..._0x26cec5['getSiblingNodes'](_0x122a92,'forward')];})['flat']();return _0x369dc1=[...new Set(_0x369dc1)],_0x369dc1;}['_getTranslationKeyForListStyle'](_0x21cf24){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x21cf24)||'default')['toUpperCase']()+'_LIST_'+_0x21cf24['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x52cd9d{['afterInit'](){const _0x366dcc=this['editor'];if(!_0x366dcc['plugins']['has']('MediaEmbedEditing'))return;const _0x3873ba=_0x366dcc['plugins']['get']('TrackChangesEditing'),_0x4dae02=_0x366dcc['locale'];_0x3873ba['enableCommand']('mediaEmbed'),_0x3873ba['descriptionFactory']['registerElementLabel']('media',_0x3155f2=>o(_0x4dae02,'ELEMENT_MEDIA',_0x3155f2)),_0x366dcc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x44c0b1,{writer:_0x4b0cc5,options:_0x2613ce})=>{if(_0x2613ce['showSuggestionHighlights'])return _0x4b0cc5['createEmptyElement']('div');},'converterPriority':'high'}),_0x366dcc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2f9f6a,_0x5bf81a,_0x4fd705)=>{_0x4fd705['options']['showSuggestionHighlights']&&_0x2f9f6a['stop']();},{'priority':'high'});}}class gt extends _0x52cd9d{['afterInit'](){const _0x166b9c=this['editor'];_0x166b9c['plugins']['has']('MentionEditing')&&_0x166b9c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x52cd9d{['afterInit'](){const _0x2e9eb5=this['editor'],_0x479e70=_0x2e9eb5['plugins']['get']('TrackChangesEditing');_0x2e9eb5['plugins']['has']('MultiLevelList')&&(_0x479e70['enableDefaultAttributesIntegration']('multiLevelList'),_0x479e70['registerBlockAttribute']('listMarkerStyle'),_0x479e70['descriptionFactory']['registerDescriptionCallback'](_0x36f521=>this['handleDescriptions'](_0x36f521)));}['handleDescriptions'](_0x3c19a5){const _0x2a5f5d=this['editor']['locale'],{data:_0x5532a6}=_0x3c19a5,_0x5cdbe8={'type':'format','content':''};if(_0x5532a6&&'listMarkerStyle'==_0x5532a6['key']){if(!_0x5532a6['oldValue'])return{'type':'format','content':o(_0x2a5f5d,'*Set\x20format:*\x20%0',o(_0x2a5f5d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5532a6['newValue']+')'};if(!_0x5532a6['newValue']){let _0x416c1f=_0x3c19a5['head'];for(;_0x416c1f;){if(_0x416c1f['data']&&'listType'==_0x416c1f['data']['key']&&_0x416c1f['data']['newValue'])return _0x5cdbe8;_0x416c1f=_0x416c1f['next'];}return{'type':'format','content':o(_0x2a5f5d,'*Remove\x20format:*\x20%0',o(_0x2a5f5d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5532a6['oldValue']+')'};}}}}class mt extends _0x52cd9d{['afterInit'](){const _0x173250=this['editor'];if(!_0x173250['plugins']['has']('PageBreakEditing'))return;_0x173250['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x36b858=_0x173250['plugins']['get']('TrackChangesEditing'),_0x3feac1=_0x173250['locale'];_0x36b858['descriptionFactory']['registerElementLabel']('pageBreak',_0x257812=>o(_0x3feac1,'ELEMENT_PAGE_BREAK',_0x257812));}}class dt extends _0x52cd9d{['afterInit'](){const _0x476d27=this['editor'];if(!_0x476d27['plugins']['has']('Paragraph'))return;const _0x800e37=_0x476d27['locale'],_0x1903f0=_0x476d27['plugins']['get']('TrackChangesEditing');_0x1903f0['descriptionFactory']['registerElementLabel']('paragraph',_0x61cd7a=>o(_0x800e37,'ELEMENT_PARAGRAPH',_0x61cd7a)),_0x1903f0['enableDefaultAttributesIntegration']('paragraph'),_0x1903f0['enableCommand']('insertParagraph'),_0x476d27['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x476d27),{'priority':'highest'}),_0x476d27['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x32e539,_0x1ad520,_0x120178)=>{_0x120178['options']['showSuggestionHighlights']&&nr(_0x476d27,{'showActiveMarker':!0x1})(_0x32e539,_0x1ad520,_0x120178);},{'priority':'highest'});const _0x1220cf=_0x1903f0['descriptionFactory'];_0x1220cf['registerDescriptionCallback'](_0x2a9107=>{if('insertion'!==_0x2a9107['type'])return;const {start:_0x1c85bf,end:_0x7f0ef2}=_0x2a9107['getFirstRange']();if(!_0x1c85bf['isTouching'](_0x7f0ef2)||!_0x1c85bf['nodeAfter'])return;const _0x855766=_0x476d27['model']['schema'],_0x6f2ba3=_0x1c85bf['nodeAfter'];return _0x855766['isBlock'](_0x6f2ba3)&&!_0x855766['isLimit'](_0x6f2ba3)&&_0x855766['checkChild'](_0x6f2ba3,'$text')?{'type':'insertion','content':o(_0x800e37,'*Insert:*\x20%0',_0x1220cf['getItemLabel'](_0x6f2ba3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d4d55=this['editor'],_0x2ca0a2=_0x5d4d55['locale'];_0x5d4d55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7b4c34=>{if('formatBlock'!=_0x7b4c34['type'])return;const {data:_0x2a624c}=_0x7b4c34;return _0x2a624c&&'paragraph'==_0x2a624c['commandName']?{'type':'format','content':o(_0x2ca0a2,'*Change\x20to:*\x20%0',o(_0x2ca0a2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x35e5ad,{showActiveMarker:_0x270252=!0x0}={}){return(_0x2410da,_0xd83814,_0x272b30)=>{const _0x42de3e=_0x35e5ad['plugins']['get']('TrackChangesEditing'),_0x5202e3=_0xd83814['markerRange']['start'],_0x3774c4=_0xd83814['markerRange']['end'],_0x4da5a7=_0x35e5ad['model']['schema'];if(!_0x5202e3['isTouching'](_0x3774c4)||!_0x5202e3['nodeAfter'])return;const _0x45b427=_0x5202e3['nodeAfter'];if(_0x4da5a7['isBlock'](_0x45b427)&&!_0x4da5a7['isLimit'](_0x45b427)&&_0x4da5a7['checkChild'](_0x45b427,'$text')){if(!_0x272b30['consumable']['consume'](_0xd83814['markerRange'],_0x2410da['name']))return;const _0x558a66=_0x272b30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x352978=_0x272b30['mapper']['toViewPosition'](_0x3774c4);_0x270252&&_0x42de3e['activeMarkers']['includes'](_0xd83814['markerName'])&&_0x272b30['writer']['addClass']('ck-suggestion-marker--active',_0x558a66),_0x272b30['writer']['insert'](_0x352978,_0x558a66),_0x272b30['mapper']['bindElementToMarker'](_0x558a66,_0xd83814['markerName']);}};}class pt extends _0x52cd9d{['afterInit'](){const _0x5397a2=this['editor'];if(!_0x5397a2['plugins']['has']('RemoveFormatEditing'))return;_0x5397a2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26c9bd=this['editor'];_0x26c9bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x536170=>{if('formatBlock'!=_0x536170['type']&&'formatInline'!=_0x536170['type'])return;const {data:_0x1ea3cb}=_0x536170;return _0x1ea3cb&&'removeFormat'==_0x1ea3cb['commandName']?{'type':'format','content':o(_0x26c9bd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x52cd9d{['afterInit'](){const _0xa2827a=this['editor'];if(!_0xa2827a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x310660=_0xa2827a['plugins']['get']('TrackChangesEditing');_0x310660['enableCommand']('goToPreviousRestrictedEditingException'),_0x310660['enableCommand']('goToNextRestrictedEditingException');const _0x396503=_0xa2827a['plugins']['get']('RestrictedEditingModeEditing');_0x396503['enableCommand']('trackChanges'),_0x396503['enableCommand']('acceptSuggestion'),_0x396503['enableCommand']('discardSuggestion'),_0x396503['enableCommand']('acceptAllSuggestions'),_0x396503['enableCommand']('discardAllSuggestions'),_0x396503['enableCommand']('acceptSelectedSuggestions'),_0x396503['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x52cd9d{static get['requires'](){return[_0x2f0715];}['init'](){const _0x1e12d6=this['editor'],_0x48c296=_0x1e12d6['plugins']['get']('TrackChangesEditing');_0x48c296['enableCommand']('shiftEnter'),_0x1e12d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1e12d6),{'priority':'high'}),_0x1e12d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1e12d6),{'priority':'high'}),_0x1e12d6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13dd72,_0x3b5544,_0x29de95)=>{_0x29de95['options']['showSuggestionHighlights']&&de(_0x1e12d6,{'showActiveMarker':!0x1})(_0x13dd72,_0x3b5544,_0x29de95);}),_0x48c296['descriptionFactory']['registerElementLabel']('softBreak',_0x48e01e=>o(_0x1e12d6['locale'],'ELEMENT_LINE_BREAK',_0x48e01e));}}function de(_0x4f334e,{showActiveMarker:_0x52034c=!0x0}={}){return(_0x1417c2,_0x1e32eb,_0x4bd7a5)=>{const _0x53cdfe=_0x4f334e['plugins']['get']('TrackChangesEditing');if(!_0x4bd7a5['consumable']['test'](_0x1e32eb['markerRange'],_0x1417c2['name']))return;const _0x4e68a8=_0x4f334e['model'];for(const _0x98d52c of _0x1e32eb['markerRange']['getItems']()){if(!_0x98d52c['is']('element','softBreak'))continue;const _0x38cfdc='deletion'==_0x1e32eb['markerName']['split'](':')[0x1]?'merge':'split',_0x59a41a=_0x4bd7a5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38cfdc}),_0xe293f5=_0x4bd7a5['mapper']['toViewPosition'](_0x4e68a8['createPositionBefore'](_0x98d52c));_0x52034c&&_0x53cdfe['activeMarkers']['includes'](_0x1e32eb['markerName'])&&_0x4bd7a5['writer']['addClass']('ck-suggestion-marker--active',_0x59a41a),_0x4bd7a5['writer']['insert'](_0xe293f5,_0x59a41a),_0x4bd7a5['mapper']['bindElementToMarker'](_0x59a41a,_0x1e32eb['markerName']);}};}class wt extends _0x52cd9d{['afterInit'](){const _0x4cc997=this['editor'],_0x1f976b=_0x4cc997['model'],_0x21bea1=_0x4cc997['locale'];if(!_0x4cc997['plugins']['has']('StandardEditingModeEditing'))return;const _0x48f0c5=_0x4cc997['plugins']['get']('TrackChangesEditing'),_0x3bbc0b='restrictedEditingException',_0x179d3d=_0x4cc997['commands']['get'](_0x3bbc0b);_0x48f0c5['enableCommand'](_0x3bbc0b,(_0x347ad2,_0x1f0db4={})=>{const _0x14ea7e=_0x1f976b['document']['selection'];if(_0x14ea7e['isCollapsed'])return void _0x347ad2(_0x1f0db4);const _0x36957e=void 0x0!==_0x1f0db4['forceValue']?_0x1f0db4['forceValue']:!_0x179d3d['value'];_0x1f976b['change'](()=>{const _0x2d1ce4=Array['from'](_0x14ea7e['getRanges']());for(const _0x33af88 of _0x2d1ce4){const _0x5f2cb6=_0x36957e?[_0x33af88]:io(_0x3bbc0b,_0x33af88,_0x1f976b);for(const _0x3759d1 of _0x5f2cb6)_0x48f0c5['markInlineFormat'](_0x3759d1,{'commandName':_0x3bbc0b,'commandParams':[{'forceValue':_0x36957e}]});}});}),_0x48f0c5['descriptionFactory']['registerDescriptionCallback'](_0x935825=>{if('formatBlock'!=_0x935825['type']&&'formatInline'!=_0x935825['type'])return;const {data:_0x1e200d}=_0x935825;return _0x1e200d&&_0x1e200d['commandName']==_0x3bbc0b?_0x1e200d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x21bea1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x21bea1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x52cd9d{['afterInit'](){const _0x12f0cf=this['editor'];if(!_0x12f0cf['plugins']['has']('Style')||!_0x12f0cf['plugins']['has']('DataSchema'))return;const _0x433285=_0x12f0cf['plugins']['get']('TrackChangesEditing'),_0x53f6e7=_0x12f0cf['locale'],_0x312a9a=_0x12f0cf['config']['get']('style')||{},_0x159f9e=_0x12f0cf['plugins']['get']('GeneralHtmlSupport'),_0x497cbf=_0x12f0cf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x12f0cf['plugins']['get']('DataSchema'),_0x312a9a['definitions']);_0x433285['enableDefaultAttributesIntegration']('style');const _0x383bb3=new Set();for(const _0x7b5712 of _0x497cbf['block']){const _0x14f397=_0x159f9e['getGhsAttributeNameForElement'](_0x7b5712['element']);_0x383bb3['add'](_0x14f397);}const _0x44c76d=new Set();for(const _0x410f20 of _0x497cbf['inline']){const _0x2ee29f=_0x159f9e['getGhsAttributeNameForElement'](_0x410f20['element']);_0x44c76d['add'](_0x2ee29f);for(const _0x62a49d of _0x410f20['ghsAttributes'])_0x44c76d['add'](_0x62a49d);}for(const _0x5cc617 of _0x383bb3)_0x433285['registerBlockAttribute'](_0x5cc617),_0x433285['descriptionFactory']['registerAttributeLabel'](_0x5cc617,o(_0x53f6e7,'FORMAT_STYLE'));for(const _0x4cf783 of _0x44c76d)_0x433285['registerInlineAttribute'](_0x4cf783),_0x433285['descriptionFactory']['registerAttributeLabel'](_0x4cf783,o(_0x53f6e7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34157e=this['editor'],_0x3c4025=_0x34157e['locale'];_0x34157e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13c25b=>{if('formatBlock'!=_0x13c25b['type']&&'formatInline'!=_0x13c25b['type'])return;const {data:_0x11417d}=_0x13c25b;return _0x11417d&&'style'===_0x11417d['commandName']?_0x11417d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c4025,'*Set\x20format:*\x20%0',_0x11417d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3c4025,'*Remove\x20format:*\x20%0',_0x11417d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x52cd9d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x186d3d){super(_0x186d3d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4650c8=this['editor'],_0x200692=_0x4650c8['model']['document']['selection'];if(!_0x4650c8['plugins']['has']('TableEditing'))return;const _0x5aafb6=_0x4650c8['locale'],_0x302319=_0x4650c8['plugins']['get']('TrackChangesEditing'),_0x66603a=_0x4650c8['plugins']['get']('TableUtils');_0x302319['descriptionFactory']['registerElementLabel']('table',_0x555249=>o(_0x5aafb6,'ELEMENT_TABLE',_0x555249)),this['_setupColumnsRowsFixing'](),_0x302319['enableCommand']('insertTable'),_0x302319['enableCommand']('selectTableRow'),_0x302319['enableCommand']('selectTableColumn');for(const _0x460ad1 of['insertTableRowAbove','insertTableRowBelow']){const _0x45baf4=_0x4650c8['commands']['get'](_0x460ad1);_0x302319['enableCommand'](_0x460ad1,_0x2acef2=>{_0x4650c8['model']['change'](_0x141736=>{_0x2acef2();const _0x324d45='above'===_0x45baf4['order'],_0x2f1e94=_0x66603a['getSelectionAffectedTableCells'](_0x200692),_0x359363=_0x66603a['getRowIndexes'](_0x2f1e94),_0x2ae03f=_0x324d45?_0x359363['first']-0x1:_0x359363['last']+0x1,_0x5a2393=_0x2f1e94[0x0]['findAncestor']('table'),_0x3046d1=_0x66603a['createTableWalker'](_0x5a2393,{'startRow':_0x2ae03f,'endRow':_0x2ae03f}),_0x789517=Array['from'](_0x3046d1)['map'](_0xb4f78b=>_0x141736['createRangeOn'](_0xb4f78b['cell']));_0x302319['markMultiRangeInsertion'](_0x789517,'tableRow');});});}for(const _0x41e1cd of['insertTableColumnLeft','insertTableColumnRight']){const _0x2965d8=_0x4650c8['commands']['get'](_0x41e1cd);_0x302319['enableCommand'](_0x41e1cd,_0x217791=>{_0x4650c8['model']['change'](_0x1bfbe3=>{_0x217791();const _0x1230fb='left'===_0x2965d8['order'],_0x1b7344=_0x66603a['getSelectionAffectedTableCells'](_0x200692),_0x570bfb=_0x66603a['getColumnIndexes'](_0x1b7344),_0x2f10d8=_0x1230fb?_0x570bfb['first']-0x1:_0x570bfb['last']+0x1,_0x2780de=_0x1b7344[0x0]['findAncestor']('table'),_0x3e7b3b=_0x66603a['createTableWalker'](_0x2780de,{'startRow':0x0,'column':_0x2f10d8,'includeAllSlots':!0x1}),_0x3a31ce=Array['from'](_0x3e7b3b)['map'](_0x4111a0=>_0x1bfbe3['createRangeOn'](_0x4111a0['cell']));_0x302319['markMultiRangeInsertion'](_0x3a31ce,'tableColumn');});});}for(const _0x258456 of['removeTableRow','removeTableColumn']){const _0x412154=_0x258456['substr'](0xb),_0x381afb=_0x412154['toLowerCase'](),_0x1c0b51=_0x381afb['substr'](0x0,0x3)+'span',_0x332da4='table'+_0x412154,_0x5192e1='min'+_0x412154,_0x3f81a2='max'+_0x412154;_0x302319['enableCommand'](_0x258456,()=>{_0x4650c8['model']['change'](_0x4a32e1=>{const _0x3c7c58=_0x66603a['getSelectionAffectedTableCells'](_0x200692),_0x4f966d=_0x3c7c58[0x0]['findAncestor']('table');let _0x307080;if('removeTableRow'==_0x258456){const _0x131de8=_0x66603a['getRowIndexes'](_0x3c7c58);_0x307080={'startRow':_0x131de8['first'],'endRow':_0x131de8['last'],'includeAllSlots':!0x0};}else{const _0x3814b1=_0x66603a['getColumnIndexes'](_0x3c7c58);_0x307080={'startColumn':_0x3814b1['first'],'endColumn':_0x3814b1['last'],'includeAllSlots':!0x0};}const _0x58f41e=_0x66603a['createTableWalker'](_0x4f966d,_0x307080),_0x583e94=Array['from'](_0x58f41e)['map'](({cell:_0x64cd27})=>_0x64cd27),_0xf0fac6=Ee(_0x583e94['filter'](_0x183a5d=>_0x183a5d['hasAttribute'](_0x1c0b51))),_0x1baa4f=Ee(_0x583e94['filter'](_0x6885cb=>!_0x6885cb['hasAttribute'](_0x1c0b51)))['map'](_0x37504a=>_0x4a32e1['createRangeOn'](_0x37504a)),_0x541c71=_0x302319['markMultiRangeDeletion'](_0x1baa4f,_0x332da4);if(_0x541c71&&('tableRow'==_0x541c71['subType']||'tableColumn'==_0x541c71['subType'])){const _0x170371=this['_getSuggestionCoords'](_0x541c71);for(const _0x44ed9a of _0xf0fac6){const _0x4a9322=_0x4a32e1['createRangeOn'](_0x44ed9a),_0x299f48=_0x66603a['getCellLocation'](_0x44ed9a),_0x10a306=_0x44ed9a['getAttribute'](_0x1c0b51)-0x1,_0x280ce0=_0x170371[_0x5192e1],_0x38132b=_0x170371[_0x3f81a2];_0x280ce0<=_0x299f48[_0x381afb]&&_0x299f48[_0x381afb]+_0x10a306<=_0x38132b&&_0x541c71['addRange'](_0x4a9322);}}});});}function _0x530c76(_0x534d44){const _0x5f5851=Array['from'](_0x200692['getRanges']())['map'](_0x2ca556=>_0x39eeea['fromRange'](_0x2ca556));_0x4650c8['model']['change'](_0x19d360=>{const _0x3a5422=_0x19d360['batch'];_0x534d44=_0x534d44['filter'](_0x2ad892=>'$graveyard'!=_0x2ad892['root']['rootName']),_0x19d360['setSelection'](_0x534d44),_0x4650c8['commands']['get']('removeTableRow')['refresh'](),_0x4650c8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4650c8['model']['enqueueChange'](()=>{_0x4650c8['model']['enqueueChange'](_0x3a5422,_0x361b1f=>{const _0x4f1ac0=_0x5f5851['filter'](_0x47f815=>'$graveyard'!=_0x47f815['root']['rootName']);_0x4f1ac0['length']>0x0&&_0x361b1f['setSelection'](_0x4f1ac0);for(const _0x54a73f of _0x5f5851)_0x54a73f['detach']();});});});}function _0x5df503(_0x11b512){_0x4650c8['model']['change'](_0x3ea576=>{const _0x432ea4=Array['from'](_0x200692['getRanges']())['map'](_0x5b194d=>_0x39eeea['fromRange'](_0x5b194d)),_0xeaa177=[];for(const _0x2306d9 of _0x11b512)for(const _0x31c0c3 of _0x2306d9['getItems']({'shallow':!0x0}))_0xeaa177['push'](_0x31c0c3);for(const _0x35aa2e of _0xeaa177)'$graveyard'!=_0x35aa2e['root']['rootName']&&(_0x3ea576['setSelection'](_0x3ea576['createPositionAt'](_0x35aa2e,0x0)),_0x4650c8['commands']['get']('removeTableColumn')['refresh'](),_0x4650c8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2c38e0=_0x432ea4['filter'](_0x298878=>'$graveyard'!=_0x298878['root']['rootName']);_0x2c38e0['length']>0x0&&_0x3ea576['setSelection'](_0x2c38e0);for(const _0x488f22 of _0x432ea4)_0x488f22['detach']();});}function _0x220ebd(_0x346069,_0x399217){return _0x399217['every'](_0xb62399=>_0x346069['some'](_0x4b6602=>_0x4b6602['end']['isEqual'](_0xb62399['start'])||_0xb62399['end']['isEqual'](_0x4b6602['start'])));}function _0x4dae5f(_0x11496f,_0x31df22){return!_0x11496f['some'](_0x581a3a=>_0x31df22['some'](_0x2a0603=>_0x581a3a['isIntersecting'](_0x2a0603)))&&_0x11496f['some'](_0x4d18d2=>_0x31df22['some'](_0x4ea53b=>_0x4d18d2['end']['isTouching'](_0x4ea53b['start'])));}_0x4650c8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13e8f8,_0x3d29d5,_0x5c7c5f)=>{if(!_0x5c7c5f['options']['showSuggestionHighlights'])return;const _0x231680=_0x3d29d5['item'];if(!_0x231680)return;const _0x250444=_0x5c7c5f['mapper']['toViewElement'](_0x231680);function _0x4097af(_0x512b1e){return Array['isArray'](_0x512b1e)?_0x512b1e:[_0x512b1e];}_0x250444&&'tableCell'===_0x231680['name']&&_0x409113(_0x250444,_0x5c7c5f['writer'],(_0xc7d153,_0x1071b7,_0x182b50)=>_0x182b50['addClass'](_0x4097af(_0x1071b7['classes']),_0xc7d153),(_0x41924f,_0x3cdcd5,_0x3fe8e6)=>_0x3fe8e6['removeClass'](_0x4097af(_0x3cdcd5['classes']),_0x41924f));},{'priority':'highest'}),_0x302319['descriptionFactory']['registerDescriptionCallback'](_0x43d91e=>{if('insertion'!=_0x43d91e['type']&&'deletion'!=_0x43d91e['type'])return;const _0x28561a=_0x43d91e['getContainedElement']();if(null!=_0x28561a&&_0x28561a['is']('element','table')){if('insertion'==_0x43d91e['type']){const _0x528c35=_0x43d91e['getItems']()['filter'](_0x41de4d=>_0x41de4d['is']('$textProxy'))['map'](_0x261b5e=>_0x261b5e['data']);if(_0x528c35['length'])return{'type':'insertion','content':o(_0x5aafb6,'*Insert:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x528c35['join']('\x20')+'\x22'))};}if('deletion'==_0x43d91e['type']){const _0x4f59ab=_0x43d91e['getItems']()['filter'](_0x2826cd=>_0x2826cd['is']('$textProxy'))['map'](_0x53e199=>_0x53e199['data']);if(_0x4f59ab['length'])return{'type':'deletion','content':o(_0x5aafb6,'*Remove:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f59ab['join']('\x20')+'\x22'))};}}}),_0x302319['descriptionFactory']['registerDescriptionCallback'](_0x2b3160=>{if('tableRow'==_0x2b3160['subType']){const _0x18eae6=_0x2b3160['getItems']()['filter'](_0x455736=>_0x455736['is']('$textProxy'))['map'](_0x3f16df=>_0x3f16df['data']),_0x217072=this['_getSuggestionCoords'](_0x2b3160),_0x5cf8c7=_0x217072['maxRow']-_0x217072['minRow']+0x1;if('insertion'==_0x2b3160['type'])return _0x18eae6['length']?{'type':'insertion','content':o(_0x5aafb6,'*Insert:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cf8c7,'\x22'+_0x18eae6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5aafb6,'*Insert:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_ROW',_0x5cf8c7))};if('deletion'==_0x2b3160['type'])return _0x18eae6['length']?{'type':'deletion','content':o(_0x5aafb6,'*Remove:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cf8c7,'\x22'+_0x18eae6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5aafb6,'*Remove:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_ROW',_0x5cf8c7))};}if('tableColumn'==_0x2b3160['subType']){const _0x256680=_0x2b3160['getItems']()['filter'](_0x74fd1e=>_0x74fd1e['is']('$textProxy'))['map'](_0x299e58=>_0x299e58['data']),_0x49d9ca=this['_getSuggestionCoords'](_0x2b3160),_0x5c6678=_0x49d9ca['maxColumn']-_0x49d9ca['minColumn']+0x1;if('insertion'==_0x2b3160['type'])return _0x256680['length']?{'type':'insertion','content':o(_0x5aafb6,'*Insert:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c6678,'\x22'+_0x256680['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5aafb6,'*Insert:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_COLUMN',_0x5c6678))};if('deletion'==_0x2b3160['type'])return _0x256680['length']?{'type':'deletion','content':o(_0x5aafb6,'*Remove:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c6678,'\x22'+_0x256680['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5aafb6,'*Remove:*\x20%0',o(_0x5aafb6,'ELEMENT_TABLE_COLUMN',_0x5c6678))};}}),_0x302319['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x530c76),_0x302319['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x530c76),_0x302319['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5df503),_0x302319['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5df503),_0x302319['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x220ebd),_0x302319['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x220ebd),_0x302319['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4dae5f),_0x302319['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4dae5f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2d40e0=this['editor'],_0x2cfc77=_0x2d40e0['model']['document']['selection'];return(_0x3fc9a9,_0x3fc1d0)=>{_0x2d40e0['model']['change'](_0x2e0971=>{const {commandName:_0xcdd7cf,commandParams:_0x8adee6}=_0x3fc1d0;let _0x30276b=_0x3fc9a9[0x0]['end']['nodeBefore'];_0x8adee6&&_0x8adee6[0x0]&&!0x1===_0x8adee6[0x0]['forceValue']&&(_0x30276b=_0x3fc9a9[0x0]['start']['nodeAfter']);const _0x52b4bd=_0x2e0971['createRangeIn'](_0x30276b);if('$graveyard'==_0x52b4bd['root']['rootName'])return;const _0x343b20=Array['from'](_0x2cfc77['getRanges']())['map'](_0x315f3b=>_0x39eeea['fromRange'](_0x315f3b));_0x2e0971['setSelection'](_0x52b4bd),_0x2d40e0['commands']['get'](_0xcdd7cf)['refresh'](),_0x8adee6['push']({'forceDefaultExecution':!0x0}),_0x2d40e0['execute'](_0xcdd7cf,..._0x8adee6);const _0x3311b1=_0x343b20['filter'](_0x3f71df=>'$graveyard'!=_0x3f71df['root']['rootName']);_0x3311b1['length']>0x0&&_0x2e0971['setSelection'](_0x3311b1);for(const _0x544fef of _0x343b20)_0x544fef['detach']();});};}['_getCoordsForCells'](_0x5d810f){const _0x42be18=this['editor']['plugins']['get']('TableUtils');let _0x19b8dd=Number['MAX_SAFE_INTEGER'],_0x1d9fcc=Number['MIN_SAFE_INTEGER'],_0x531791=Number['MAX_SAFE_INTEGER'],_0x3c2716=Number['MIN_SAFE_INTEGER'];for(const _0x48cb51 of _0x5d810f){if('$graveyard'==_0x48cb51['root']['rootName'])continue;const {row:_0x41af46,column:_0x4f115b}=_0x42be18['getCellLocation'](_0x48cb51),_0x21d04f=_0x48cb51['hasAttribute']('rowspan')?_0x48cb51['getAttribute']('rowspan')-0x1:0x0,_0x200bd3=_0x48cb51['hasAttribute']('colspan')?_0x48cb51['getAttribute']('colspan')-0x1:0x0;_0x19b8dd=_0x41af46<_0x19b8dd?_0x41af46:_0x19b8dd,_0x1d9fcc=_0x41af46+_0x21d04f>_0x1d9fcc?_0x41af46+_0x21d04f:_0x1d9fcc,_0x531791=_0x4f115b<_0x531791?_0x4f115b:_0x531791,_0x3c2716=_0x4f115b+_0x200bd3>_0x3c2716?_0x4f115b+_0x200bd3:_0x3c2716;}return{'minRow':_0x19b8dd,'maxRow':_0x1d9fcc,'minColumn':_0x531791,'maxColumn':_0x3c2716};}['_setupColumnsRowsFixing'](){const _0x173552=this['editor'],_0x1150e8=_0x173552['plugins']['get']('TrackChangesEditing'),_0x5eb797=_0x173552['plugins']['get']('TableUtils');_0x173552['model']['document']['on']('change:data',()=>{const _0x10512a=Array['from'](_0x173552['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5836fc,data:_0x21310c}of _0x10512a){const {group:_0xfb8282,id:_0x4c36a5,subType:_0x4a5022}=_0x1150e8['_splitMarkerName'](_0x5836fc);if('suggestion'!=_0xfb8282)continue;if(null!=_0x21310c['oldRange'])continue;const _0xb5b684=_0x1150e8['getSuggestion'](_0x4c36a5);this['_tablePostFixingSubtypes']['includes'](_0x4a5022)&&this['_tableSuggestions']['add'](_0xb5b684);}},{'priority':'low'});const _0x1e9275=(_0x47d0bf,_0x114a71)=>{let _0x4532aa=!0x1;const _0x482397=_0x114a71['createRangeOn'](_0x47d0bf),_0x1cf224=_0x47d0bf['findAncestor']('table'),_0x3d0fa4=_0x5eb797['getCellLocation'](_0x47d0bf);for(const _0x4a2453 of this['_tableSuggestions']){const _0x8a6f99=_0x4a2453['subType'],_0x23b560=_0x8a6f99['startsWith']('tablePaste'),_0x43f892=_0x8a6f99['substr'](_0x23b560?0xa:0x5),_0x1e7104=_0x43f892['toLowerCase'](),_0x194809=_0x1e7104['substr'](0x0,0x3)+'span',_0x2f80ad='min'+_0x43f892,_0x4d37bf='max'+_0x43f892;if(!_0x4a2453['isInContent'])continue;if(_0x1cf224!=_0x4a2453['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4a2453['isIntersectingWithRange'](_0x482397))continue;const _0x415be1=_0x47d0bf['hasAttribute'](_0x194809)?_0x47d0bf['getAttribute'](_0x194809)-0x1:0x0,_0x38e956=this['_getSuggestionCoords'](_0x4a2453),_0x287141=_0x38e956[_0x2f80ad],_0x4366e5=_0x38e956[_0x4d37bf];_0x287141<=_0x3d0fa4[_0x1e7104]&&_0x3d0fa4[_0x1e7104]+_0x415be1<=_0x4366e5&&(_0x4a2453['addRange'](_0x482397),_0x4532aa=!0x0);}return _0x4532aa;};_0x173552['model']['document']['registerPostFixer'](_0xa7c811=>{let _0x3b74bc=!0x1;for(const _0x4ca190 of _0x173552['model']['document']['differ']['getChanges']())if('insert'==_0x4ca190['type']){if('tableRow'==_0x4ca190['name']){for(const _0x2c6db3 of _0x4ca190['position']['nodeAfter']['getChildren']())_0x3b74bc=_0x3b74bc||_0x1e9275(_0x2c6db3,_0xa7c811);}else'tableCell'==_0x4ca190['name']&&(_0x3b74bc=_0x3b74bc||_0x1e9275(_0x4ca190['position']['nodeAfter'],_0xa7c811));}return _0x3b74bc;});}['_getSuggestionCoords'](_0x49a264){return this['_getCoordsForCells'](_0x49a264['getRanges']()['map'](_0x2fa32b=>_0x2fa32b['start']['nodeAfter']));}}function Ee(_0x184d97){return Array['from'](new Set(_0x184d97)['values']());}class St extends _0x52cd9d{static get['requires'](){return[jt];}['afterInit'](){const _0x29b68e=this['editor'],_0x34981a=_0x29b68e['model']['document']['selection'],_0x54aa16=_0x29b68e['locale'];if(!_0x29b68e['plugins']['has']('TableEditing'))return;const _0x10ac1a=_0x29b68e['plugins']['get']('TrackChangesEditing'),_0x3aefa4=_0x29b68e['plugins']['get']('TableUtils'),_0x50bfec=_0x29b68e['plugins']['get'](jt);_0x50bfec['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x10ac1a['enableCommand']('mergeTableCells',()=>{const _0x4a7f86=_0x3aefa4['getSelectionAffectedTableCells'](_0x29b68e['model']['document']['selection']);_0x29b68e['model']['change'](()=>{_0x10ac1a['markMultiRangeBlockFormat'](_0x4a7f86,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x29b68e['commands']['get']('mergeTableCells')['on']('execute',(_0x238c66,_0x22da65)=>{_0x29b68e['commands']['get']('trackChanges')['value']&&(_0x22da65['length']>0x0&&_0x22da65[_0x22da65['length']-0x1]&&_0x22da65[_0x22da65['length']-0x1]['forceDefaultExecution']||_0x10ac1a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x238c66['stop']());},{'priority':'highest'});for(const _0x3654f7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x53e0ce=_0x29b68e['commands']['get'](_0x3654f7);_0x10ac1a['enableCommand'](_0x3654f7,()=>{const _0x388fe8=_0x29b68e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1b3727=>_0x1b3727['is']('element','tableCell')),_0x2f93df=_0x53e0ce['value'];_0x29b68e['model']['change'](()=>{_0x10ac1a['markMultiRangeBlockFormat']([_0x388fe8,_0x2f93df],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x43bbbd of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5aa404=_0x29b68e['commands']['get'](_0x43bbbd);_0x10ac1a['enableCommand'](_0x43bbbd,()=>{const _0x17c5e9=_0x3aefa4['getSelectionAffectedTableCells'](_0x29b68e['model']['document']['selection'])[0x0],_0x14e852=_0x17c5e9['findAncestor']('table'),{column:_0x414705,row:_0x2b7597}=_0x3aefa4['getCellLocation'](_0x17c5e9);let _0x3239bd=[];if('horizontally'==_0x5aa404['direction']){const _0x106335=_0x3aefa4['createTableWalker'](_0x14e852,{'startRow':_0x2b7597,'endRow':_0x2b7597,'includeAllSlots':!0x0});_0x3239bd=Array['from'](_0x106335)['map'](_0x547f2d=>_0x547f2d['cell']);}else{const _0x2127ca=_0x3aefa4['createTableWalker'](_0x14e852,{'column':_0x414705,'includeAllSlots':!0x0});_0x3239bd=Array['from'](_0x2127ca)['map'](_0x41b746=>_0x41b746['cell']);}_0x29b68e['model']['change'](_0x528d11=>{_0x10ac1a['markBlockFormat'](_0x528d11['createRangeOn'](_0x17c5e9),{'commandName':_0x43bbbd,'commandParams':[]},_0x3239bd,_0x43bbbd);});});}_0x10ac1a['descriptionFactory']['registerDescriptionCallback'](_0x5e4da7=>{if('formatBlock'!=_0x5e4da7['type']&&'formatInline'!=_0x5e4da7['type'])return;const {data:_0x4bdd58}=_0x5e4da7;return _0x4bdd58&&'mergeTableCells'==_0x4bdd58['commandName']?{'type':'format','content':o(_0x54aa16,'*Merge\x20cells*')}:void 0x0;}),_0x10ac1a['descriptionFactory']['registerDescriptionCallback'](_0x2b007d=>{if('formatBlock'!=_0x2b007d['type']&&'formatInline'!=_0x2b007d['type'])return;const {data:_0x457391}=_0x2b007d;return _0x457391?'splitTableCellVertically'==_0x457391['commandName']?{'type':'format','content':o(_0x54aa16,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x457391['commandName']?{'type':'format','content':o(_0x54aa16,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x45bbfa=_0x50bfec['_acceptFormatSuggestionCallbackFactory']();for(const _0x418486 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x10ac1a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x418486,'accept',_0x45bbfa);for(const _0x42dad5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x10ac1a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42dad5,'accept',_0x45bbfa);_0x10ac1a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3a6ddb=>{_0x29b68e['model']['change'](_0x409ad1=>{const _0x3e0937=Array['from'](_0x34981a['getRanges']())['map'](_0x2eb040=>_0x39eeea['fromRange'](_0x2eb040));_0x409ad1['setSelection'](_0x3a6ddb),_0x29b68e['commands']['get']('mergeTableCells')['refresh'](),_0x29b68e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x429973=_0x3e0937['filter'](_0xea4320=>'$graveyard'!=_0xea4320['root']['rootName']);_0x429973['length']>0x0&&_0x409ad1['setSelection'](_0x429973);for(const _0x1ca1f8 of _0x3e0937)_0x1ca1f8['detach']();});});for(const _0x19f767 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x480bb8=_0x29b68e['commands']['get'](_0x19f767);_0x480bb8['on']('set:isEnabled',(_0x1225e6,_0x23dc28,_0x4ec924)=>{if(_0x4ec924){const _0xa41321=_0x29b68e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1410a7=>_0x1410a7['is']('element','tableCell'));this['_areMergableCells'](_0x480bb8['value'],_0xa41321)||(_0x1225e6['return']=!0x1,_0x1225e6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x35b430=this['editor']['commands']['get']('mergeTableCells'),_0x47e154=this['editor']['plugins']['get']('TableUtils');if(!_0x35b430['isEnabled'])return!0x1;const _0x44a2ce=_0x47e154['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x376aeb of _0x44a2ce)for(const _0x5d7e6a of _0x44a2ce)if(_0x376aeb!=_0x5d7e6a&&!this['_areMergableCells'](_0x376aeb,_0x5d7e6a))return!0x1;return!0x0;}['_areMergableCells'](_0x3bd80e,_0x2c9682){const _0x19682c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25e8db=this['editor']['model']['createRangeOn'](_0x3bd80e),_0x4f1f35=this['editor']['model']['createRangeOn'](_0x2c9682),_0x58201c=new Set(),_0x27324f=new Set();for(const _0x3abf75 of _0x19682c['getSuggestions']())if(('insertion'==_0x3abf75['type']||'deletion'==_0x3abf75['type']||'mergeTableCells'==_0x3abf75['subType'])&&_0x3abf75['isInContent']){for(const _0x1a55ef of _0x3abf75['getRanges']())_0x1a55ef['containsRange'](_0x25e8db,!0x0)&&_0x58201c['add'](_0x3abf75['type']+':'+_0x3abf75['author']['id']),_0x1a55ef['containsRange'](_0x4f1f35,!0x0)&&_0x27324f['add'](_0x3abf75['type']+':'+_0x3abf75['author']['id']);}if(_0x58201c['size']!=_0x27324f['size'])return!0x1;for(const _0x2025c6 of _0x58201c)if(!_0x27324f['has'](_0x2025c6))return!0x1;return!0x0;}}class At extends _0x52cd9d{static get['requires'](){return[jt];}['afterInit'](){const _0x572cfd=this['editor'];if(!_0x572cfd['plugins']['has']('TableEditing'))return;const _0x4872d1=_0x572cfd['locale'],_0x168719=_0x572cfd['plugins']['get']('TrackChangesEditing');_0x168719['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x168719['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x168719['registerBlockAttribute']('headingRows'),_0x168719['registerBlockAttribute']('headingColumns'),_0x168719['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4872d1,'FORMAT_HEADER_ROW')),_0x168719['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4872d1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x349846=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1290cc=this['editor']['plugins']['get']('TableUtils'),_0xe059ab=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5ec532({showActiveMarker:_0x5cace8=!0x0,setDataAttribute:_0xdea9e8=!0x0}={}){return(_0x2e883e,_0x54cbaf,_0xa7e0af)=>{const {type:_0x2f7973,id:_0x338d16}=_0x349846['_splitMarkerName'](_0x54cbaf['markerName']),_0x3f8282=_0x349846['getSuggestion'](_0x338d16),_0x17e359=_0x3f8282['data'];if('formatBlock'!=_0x3f8282['type']||!_0x17e359||'setTableColumnHeader'!=_0x17e359['commandName'])return;if(_0x54cbaf['item'])return void _0x2e883e['stop']();if(!_0xa7e0af['consumable']['consume'](_0x54cbaf['markerRange'],_0x2e883e['name']))return;const _0x587329=_0x54cbaf['markerRange']['start']['nodeAfter'],_0x561df9=_0x54cbaf['markerRange']['end']['nodeBefore'],_0x473390=_0x587329['parent']['parent'],{column:_0x5b8848}=_0x1290cc['getCellLocation'](_0x587329),{column:_0x28f4a8}=_0x1290cc['getCellLocation'](_0x561df9);for(let _0x3c3b6e=_0x5b8848;_0x3c3b6e<=_0x28f4a8;_0x3c3b6e++){const _0x24ff64=_0x1290cc['createTableWalker'](_0x473390,{'column':_0x3c3b6e,'includeAllSlots':!0x1});for(const _0x38ea5a of _0x24ff64){const _0x3bc5dc=_0x38ea5a['cell'],_0x30f59e=_0xa7e0af['mapper']['toViewElement'](_0x3bc5dc);_0xa7e0af['writer']['addClass']('ck-suggestion-marker-'+_0x2f7973,_0x30f59e),_0xdea9e8&&_0xa7e0af['writer']['setAttribute']('data-suggestion',_0x338d16,_0x30f59e),_0xa7e0af['mapper']['bindElementToMarker'](_0x30f59e,_0x54cbaf['markerName']),_0x5cace8&&(_0x349846['activeMarkers']['includes'](_0x54cbaf['markerName'])?_0xa7e0af['writer']['addClass']('ck-suggestion-marker--active',_0x30f59e):_0xa7e0af['writer']['removeClass']('ck-suggestion-marker--active',_0x30f59e));}}};}_0x349846['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xe059ab),_0x349846['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xe059ab),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5ec532(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x328353,_0x29a7a6,_0x54e17c)=>{_0x54e17c['options']['showSuggestionHighlights']&&_0x5ec532({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x328353,_0x29a7a6,_0x54e17c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x19649a,_0x253e42,_0x195113)=>{const {type:_0x32a601,id:_0x340b5e}=_0x349846['_splitMarkerName'](_0x253e42['markerName']),_0x2001ad=_0x349846['getSuggestion'](_0x340b5e),_0x3ab991=_0x2001ad['data'];if('formatBlock'!=_0x2001ad['type']||!_0x3ab991||'setTableColumnHeader'!=_0x3ab991['commandName'])return;const _0x46aab5=_0x195113['mapper']['markerNameToElements'](_0x253e42['markerName']);if(_0x46aab5){for(const _0x1f57ff of _0x46aab5)_0x195113['writer']['removeClass']('ck-suggestion-marker-'+_0x32a601,_0x1f57ff),_0x195113['writer']['removeClass']('ck-suggestion-marker--active',_0x1f57ff),_0x195113['writer']['removeAttribute']('data-suggestion',_0x1f57ff),_0x195113['mapper']['unbindElementFromMarkerName'](_0x1f57ff,_0x253e42['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27f390=this['editor'],_0x6fa2d7=_0x27f390['locale'];function _0x38f534(_0x20b73b){return{'type':'format','content':o(_0x6fa2d7,'*Format:*\x20%0',_0x20b73b)};}_0x27f390['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x842c99=>{if('formatBlock'!=_0x842c99['type'])return;const {data:_0x2f6cb7}=_0x842c99;if(_0x2f6cb7){if('setTableRowHeader'==_0x2f6cb7['commandName']){const _0xd709f9=_0x2f6cb7['commandParams'][0x0]['forceValue'];return _0x38f534(o(_0x6fa2d7,_0xd709f9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2f6cb7['commandName']){const _0x4df73=_0x2f6cb7['commandParams'][0x0]['forceValue'];return _0x38f534(o(_0x6fa2d7,_0x4df73?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x329350=>[_0x329350,null]));class It extends _0x52cd9d{static get['requires'](){return[jt];}['afterInit'](){const _0x1200d6=this['editor'];if(!_0x1200d6['plugins']['has']('TableClipboard'))return;const _0x28b682=_0x1200d6['plugins']['get']('TrackChangesEditing'),_0x2f9da7=_0x1200d6['plugins']['get']('TableUtils'),_0x392e9f=_0x1200d6['plugins']['get'](jt),_0x1290be=_0x1200d6['plugins']['get']('TableClipboard');_0x392e9f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1200d6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1200d6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x577cf7=null;_0x1200d6['model']['on']('insertContent',(_0x26188b,_0x35d115)=>{const [_0x5654c3,_0x56945d]=_0x35d115,_0x35aa92=_0x35d115[_0x35d115['length']-0x1];_0x35aa92&&_0x35aa92['forceDefaultExecution']||_0x28b682['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x59a30d,_0x490284,_0x599b1d,_0x399d65,_0x414c11){if(_0x490284&&!_0x490284['is']('documentSelection'))return!0x1;const _0x311ae3=_0x414c11['getTableIfOnlyTableInContent'](_0x59a30d,_0x599b1d);if(!_0x311ae3||!he(_0x311ae3,void 0x0,_0x399d65))return!0x1;const _0x5f3b2d=_0x399d65['getSelectionAffectedTableCells'](_0x599b1d['document']['selection']);if(!_0x5f3b2d['length'])return!0x1;const _0x5e28f3=_0x5f3b2d[0x0]['findAncestor']('table'),_0x3ee1c2=_0x399d65['getRowIndexes'](_0x5f3b2d),_0x34b758=_0x399d65['getColumnIndexes'](_0x5f3b2d),_0x5bf9d3={'startRow':_0x3ee1c2['first'],'endRow':_0x3ee1c2['last'],'startColumn':_0x34b758['first'],'endColumn':_0x34b758['last']};return 0x1==_0x5f3b2d['length']&&(_0x5bf9d3['endRow']+=_0x399d65['getRows'](_0x311ae3)-0x1,_0x5bf9d3['endColumn']+=_0x399d65['getColumns'](_0x311ae3)-0x1),he(_0x5e28f3,_0x5bf9d3,_0x399d65);}(_0x5654c3,_0x56945d,_0x1200d6['model'],_0x2f9da7,_0x1290be)&&(_0x26188b['stop'](),_0x577cf7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1200d6['model']['change'](()=>{_0x1200d6['model']['insertContent'](_0x35d115[0x0],_0x35d115[0x1],_0x35d115[0x2],{'forceDefaultExecution':!0x0});const _0x53ebc8=_0x3792e7(),{rowInsertionRanges:_0x1679ba,columnInsertionRanges:_0x3efd1f,insertionRanges:_0x22d18c,deletionRanges:_0x3c70bf,cells:_0x52943c}=_0x577cf7;_0x1679ba['length']&&_0x28b682['markMultiRangeInsertion'](_0x1679ba,'tablePasteRow',{'tablePasteChainId':_0x53ebc8}),_0x3efd1f['length']&&_0x28b682['markMultiRangeInsertion'](_0x3efd1f,'tablePasteColumn',{'tablePasteChainId':_0x53ebc8}),_0x22d18c['length']&&(_0x28b682['markMultiRangeInsertion'](_0x22d18c,'tablePaste',{'tablePasteChainId':_0x53ebc8,'skipNestingCheck':!0x0}),_0x22d18c['forEach'](_0x3ba0f2=>_0x3ba0f2['detach']?.())),_0x3c70bf['length']&&(_0x28b682['markMultiRangeDeletion'](_0x3c70bf,'tablePaste',{'tablePasteChainId':_0x53ebc8,'skipNestingCheck':!0x0}),_0x3c70bf['forEach'](_0x1367e6=>_0x1367e6['detach']?.()));const _0x696d93=_0x28b682['markMultiRangeBlockFormat'](_0x52943c['map'](({element:_0x2ebc90})=>_0x2ebc90),{'formatGroupId':_0x3792e7()},[],'tablePasteCell',{'tablePasteChainId':_0x53ebc8});if(_0x696d93){const _0x2ffcd0=_0x696d93['getMarkers'](),_0x28f65a=[];for(const {element:_0xe300c9,attributes:_0x58e802}of _0x52943c){if(!_0x58e802)continue;const _0x18d692=_0x1200d6['model']['createRangeOn'](_0xe300c9),_0x104ea0=_0x2ffcd0['find'](_0x264445=>_0x264445['getRange']()['isEqual'](_0x18d692));_0x104ea0&&_0x28f65a['push']([_0x104ea0['name'],_0x58e802]);}_0x28f65a['length']&&_0x696d93['setAttribute']('markerAttributes',Object['fromEntries'](_0x28f65a));}_0x577cf7=null;}));},{'priority':_0x1e1756['high']+0xa}),_0x1200d6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3dae86,_0x5a06be)=>{const [_0x47d608,_0x357546,,_0x369cf4]=_0x5a06be;if(!_0x577cf7)return;_0x3dae86['stop']();const _0xaf8b58=_0x47d608['cell'],_0x17a339=_0x357546,_0x2a1ba1=Pe(_0xaf8b58),_0x4351de=Pe(_0x17a339);_0x3dae86['return']=_0xaf8b58;let _0x180fd3=null,_0x23288e=null;if(_0x4351de||_0x2a1ba1){if(_0x2a1ba1&&!_0x4351de){_0x369cf4['remove'](_0xaf8b58['getChild'](0x0));for(const _0x291349 of Array['from'](_0x17a339['getChildren']()))_0x369cf4['insert'](_0x291349,_0xaf8b58,'end');const _0x2aed14=_0x577cf7['rowInsertionIndexes']['includes'](_0x47d608['row']),_0x39f7ee=_0x577cf7['columnInsertionIndexes']['includes'](_0x47d608['column']);_0x2aed14||_0x39f7ee||(_0x180fd3=_0x39eeea['fromRange'](_0x369cf4['createRangeIn'](_0xaf8b58)));}else _0x4351de&&!_0x2a1ba1&&(_0x23288e=_0x369cf4['createRangeIn'](_0xaf8b58));}else{const _0x31329b=_0x369cf4['createElement']('tableCellSuggestion'),_0x5e7260=_0x369cf4['createElement']('tableCellSuggestion');_0x369cf4['wrap'](_0x369cf4['createRangeIn'](_0xaf8b58),_0x5e7260),_0x369cf4['insert'](_0x31329b,_0xaf8b58,0x0);for(const _0x112f6b of Array['from'](_0x17a339['getChildren']()))_0x369cf4['insert'](_0x112f6b,_0x31329b,'end');_0x180fd3=_0x39eeea['fromRange'](_0x369cf4['createRangeOn'](_0x31329b)),_0x23288e=_0x39eeea['fromRange'](_0x369cf4['createRangeOn'](_0x5e7260));}const _0x55a8c7=Array['from'](_0x17a339['getAttributes']())['filter'](([_0x2f64d3])=>ge['includes'](_0x2f64d3));_0x577cf7['cells']['push']({'element':_0xaf8b58,'attributes':_0x55a8c7['length']?Object['fromEntries'](_0x55a8c7):null}),_0x180fd3&&_0x577cf7['insertionRanges']['push'](_0x180fd3),_0x23288e&&_0x577cf7['deletionRanges']['push'](_0x23288e);},{'priority':'high'}),_0x2f9da7['on']('insertColumns',(_0x431a32,_0x1157ae)=>{const [_0x1fd385,_0x392e06={}]=_0x1157ae;if(!_0x577cf7)return;const _0x4e38bd=_0x392e06['at']||0x0,_0x26b4d9=_0x392e06['columns']||0x1;_0x577cf7['columnInsertionIndexes']=new Array(_0x26b4d9)['fill'](_0x4e38bd)['map']((_0x5ba5dc,_0x20d22e)=>_0x5ba5dc+_0x20d22e);for(const {cell:_0x477039}of _0x2f9da7['createTableWalker'](_0x1fd385,{'startColumn':_0x4e38bd,'endColumn':_0x4e38bd+_0x26b4d9-0x1}))_0x577cf7['columnInsertionRanges']['push'](_0x1200d6['model']['createRangeOn'](_0x477039));},{'priority':'low'}),_0x2f9da7['on']('insertRows',(_0x3ff07d,_0x2c2532)=>{const [_0x1f624c,_0x33bc4f={}]=_0x2c2532;if(!_0x577cf7)return;const _0x5a9fde=_0x33bc4f['at']||0x0,_0x46c977=_0x33bc4f['rows']||0x1;_0x577cf7['rowInsertionIndexes']=new Array(_0x46c977)['fill'](_0x5a9fde)['map']((_0x40bc54,_0x5c9425)=>_0x40bc54+_0x5c9425);for(const {cell:_0x103ec7}of _0x2f9da7['createTableWalker'](_0x1f624c,{'startRow':_0x5a9fde,'endRow':_0x5a9fde+_0x46c977-0x1}))_0x577cf7['rowInsertionRanges']['push'](_0x1200d6['model']['createRangeOn'](_0x103ec7));},{'priority':'low'}),_0x28b682['descriptionFactory']['registerDescriptionCallback'](_0xf99a13=>{if(_0xf99a13['subType']&&_0xf99a13['subType']['startsWith']('tablePaste'))return _0xf99a13['previous']?{}:{'type':'insertion','content':o(_0x1200d6['locale'],'*Replace\x20table\x20cells*')};});const _0x315d1c=()=>!0x1;for(const _0x14c671 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x28b682['_suggestionFactory']['registerCustomCallback']('insertion',_0x14c671,'join',_0x315d1c),_0x28b682['_suggestionFactory']['registerCustomCallback']('deletion',_0x14c671,'join',_0x315d1c),_0x28b682['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14c671,'join',_0x315d1c);_0x28b682['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x315d1c),_0x28b682['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1631cc,_0x144749,_0x5663da)=>{const _0x3957ae=_0x1631cc['map'](_0x484e17=>_0x484e17['getContainedElement']())['filter'](_0x5a7d7b=>_0x5a7d7b),_0x33cd1d=new Map(_0x3957ae['map'](_0x4f8b31=>[_0x4f8b31,null]));if(_0x577cf7){for(const {element:_0x161fd0,attributes:_0xe79f64}of _0x577cf7['cells'])_0xe79f64&&_0x33cd1d['set'](_0x161fd0,_0xe79f64);}else{if(_0x5663da&&_0x5663da['markerAttributes'])for(const [_0x32c317,_0xf50d3d]of Object['entries'](_0x5663da['markerAttributes'])){const _0x229b8f=_0x1200d6['model']['markers']['get'](_0x32c317),_0x40059c=_0x229b8f?_0x229b8f['getRange']()['getContainedElement']():null;_0x40059c&&_0x33cd1d['set'](_0x40059c,_0xf50d3d);}}_0x1200d6['model']['change'](_0xd5eb41=>{for(const [_0x1af547,_0x1f254a]of _0x33cd1d)_0xd5eb41['setAttributes']({...Ce,..._0x1f254a},_0x1af547);});});const _0x5c9d43=(_0x36e5fc,_0x24c7c2)=>{_0x28b682['_suggestionFactory']['registerCustomCallback'](_0x36e5fc,'tablePaste',_0x24c7c2,(_0x304e3e,_0x18803a,_0x989084)=>{_0x1200d6['model']['change'](_0x80010f=>{const _0x541c8a=[];for(const _0x103eee of _0x304e3e){const _0x136b75=_0x103eee['start']['nodeAfter'];_0x136b75['is']('element','tableCellSuggestion')&&_0x541c8a['push'](_0x136b75);}_0x28b682['_suggestionFactory']['getSuggestionCallback'](_0x36e5fc,null,_0x24c7c2)(_0x304e3e,_0x18803a,_0x989084);for(const _0x18e655 of _0x541c8a)'$graveyard'!=_0x18e655['root']['rootName']&&_0x80010f['unwrap'](_0x18e655);});});};_0x5c9d43('insertion','accept'),_0x5c9d43('insertion','discard'),_0x5c9d43('deletion','accept'),_0x5c9d43('deletion','discard'),_0x28b682['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x25fb4c=>{const _0x578ebe=_0x25fb4c['map'](_0x53d9b1=>_0x53d9b1['getContainedElement']()),_0x32970d=_0x578ebe[0x0]['findAncestor']('table'),{minRow:_0x587449,maxRow:_0x139383}=_0x392e9f['_getCoordsForCells'](_0x578ebe);_0x2f9da7['removeRows'](_0x32970d,{'at':_0x587449,'rows':_0x139383-_0x587449+0x1});}),_0x28b682['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x482546=>{const _0x116b77=_0x482546['map'](_0x1c0064=>_0x1c0064['getContainedElement']()),_0x45775c=_0x116b77[0x0]['findAncestor']('table'),{minColumn:_0x2ba01d,maxColumn:_0x5297fd}=_0x392e9f['_getCoordsForCells'](_0x116b77);_0x2f9da7['removeColumns'](_0x45775c,{'at':_0x2ba01d,'columns':_0x5297fd-_0x2ba01d+0x1});});const _0x3d2fdf=(_0x4b45de,_0x1c35c4)=>{if(!_0x1c35c4['subType']||!_0x1c35c4['subType']['startsWith']('tablePaste'))return;const _0x1c3250=_0x1c35c4['attributes']['tablePasteChainId'],_0x460f73=_0x28b682['getSuggestions']()['filter'](_0x84c19c=>_0x84c19c['isInContent']&&_0x84c19c['attributes']&&_0x84c19c['attributes']['tablePasteChainId']==_0x1c3250);_0x460f73['length']&&_0x1c35c4['getAllAdjacentSuggestions']()['length']!=_0x460f73['length']&&_0x460f73['reduce']((_0x3ddebe,_0xcb3c05)=>(_0x3ddebe['next']=_0xcb3c05,_0xcb3c05['previous']=_0x3ddebe,_0xcb3c05));};function _0x493e24(_0x41b17e,_0x48e798=!0x0){const {id:_0x565b10}=_0x28b682['_splitMarkerName'](_0x41b17e['markerName']),_0x4cb337=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5cb2e3=_0x28b682['activeMarkers']['includes'](_0x41b17e['markerName']);return _0x5cb2e3&&_0x4cb337['push']('ck-suggestion-marker--active'),{'classes':_0x4cb337,'attributes':{'data-suggestion':_0x565b10},'priority':_0x5cb2e3&&_0x48e798?0xbc2:0xbb8};}_0x28b682['on']('suggestionLoaded',_0x3d2fdf,{'priority':'high'}),_0x28b682['on']('suggestionUnloaded',_0x3d2fdf,{'priority':'high'}),_0x1200d6['model']['document']['registerPostFixer'](()=>{let _0x8bcfa2=!0x1;const _0x35273b=Array['from'](_0x1200d6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2996c1,data:_0x2f7142}of _0x35273b){const {group:_0x5af281,type:_0x31cd75,id:_0x16be6d}=_0x28b682['_splitMarkerName'](_0x2996c1);if('suggestion'!=_0x5af281||'deletion'!=_0x31cd75||_0x2f7142['oldRange'])continue;if(!_0x28b682['hasSuggestion'](_0x16be6d))continue;const _0x4d0b77=_0x28b682['getSuggestion'](_0x16be6d)['getRanges'](),_0xf8cded=_0x1200d6['plugins']['get']('Users')['me'];for(const _0x53990f of _0x28b682['getSuggestions']()){if(!_0x53990f['isInContent']||_0x53990f['author']!=_0xf8cded)continue;if('formatBlock'!=_0x53990f['type']||'tablePasteCell'!=_0x53990f['subType'])continue;if(_0x53990f['getRanges']()['every'](_0x6941b5=>_0x4d0b77['some'](_0x1d198e=>_0x1d198e['containsRange'](_0x6941b5,!0x0)))){for(const _0x588098 of _0x53990f['getAllAdjacentSuggestions']())_0x588098['isInContent']&&(_0x588098['discard'](),_0x8bcfa2=!0x0);}}}return _0x8bcfa2;}),_0x1200d6['model']['document']['registerPostFixer'](_0x57080b=>{const _0x5b056c=_0x1200d6['commands']['get']('redo');if(!_0x5b056c||!_0x5b056c['_createdBatches']['has'](_0x57080b['batch']))return!0x1;let _0x3f3e4a=!0x1;const _0x3819db=_0x1200d6['plugins']['get']('Users')['me'],_0x167a5f=_0x1200d6['model']['document']['differ']['getChanges'](),_0x11e3a3=Array['from'](_0x1200d6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x46190b,data:_0x2d2863})=>{const {group:_0x626cfd,subType:_0x3bee32,authorId:_0xac0438}=_0x28b682['_splitMarkerName'](_0x46190b);return'suggestion'==_0x626cfd&&'tablePaste'==_0x3bee32&&_0xac0438==_0x3819db['id']&&!_0x2d2863['oldRange'];});for(const _0x194875 of _0x167a5f){if('insert'!=_0x194875['type']||'tableCellSuggestion'!=_0x194875['name']||0x1!=_0x194875['length'])continue;const _0x5bcbc4=_0x57080b['createRange'](_0x194875['position'],_0x194875['position']['getShiftedBy'](0x1));if(!_0x11e3a3['find'](({data:_0x1e0f73})=>_0x1e0f73['newRange']['isEqual'](_0x5bcbc4))){for(const {name:_0x26985f,data:_0x5d79fb}of _0x11e3a3)if(_0x5bcbc4['containsRange'](_0x5d79fb['newRange'])){_0x57080b['updateMarker'](_0x26985f,{'range':_0x5bcbc4}),_0x3f3e4a=!0x0;break;}}}return _0x3f3e4a;}),_0x1200d6['model']['document']['registerPostFixer'](_0x3f51fa=>{let _0x2151fb=!0x1;const _0x3990f9=_0x1200d6['plugins']['get']('Users')['me'],_0x2f8628=_0x28b682['getSuggestions']()['filter'](_0x2f96d5=>_0x2f96d5['isInContent']&&_0x2f96d5['author']==_0x3990f9),_0x4c6e66=new Set(),_0x3226f5=new Set();for(const _0x503d66 of _0x2f8628)if('tablePaste'==_0x503d66['subType'])for(const _0x5c592b of _0x503d66['getMarkers']()){const _0x5d29db=_0x5c592b['getRange']()['getContainedElement']();if(_0x5d29db){if(_0x5d29db['is']('element','tableCellSuggestion')&&Pe(_0x5d29db)){_0x503d66['removeMarker'](_0x5c592b['name']),_0x4c6e66['add'](_0x5d29db),_0x2151fb=!0x0;const _0x73b839=_0x5d29db['nextSibling'],_0x253043=_0x5d29db['previousSibling'],_0x144e4f=_0x73b839&&_0x73b839['is']('element','tableCellSuggestion'),_0x5330d8=_0x253043&&_0x253043['is']('element','tableCellSuggestion');_0x144e4f&&!_0x4c6e66['has'](_0x73b839)&&_0x3226f5['add'](_0x73b839),_0x5330d8&&!_0x4c6e66['has'](_0x253043)&&_0x3226f5['add'](_0x253043);}else _0x5d29db['is']('element','paragraph')&&_0x5d29db['isEmpty']&&(_0x503d66['removeMarker'](_0x5c592b['name']),_0x2151fb=!0x0);}}else{if('tablePasteCell'==_0x503d66['subType']){if(!_0x503d66['attributes']||!_0x503d66['attributes']['tablePasteChainId'])continue;const _0x51da31=_0x503d66['attributes']['markerAttributes'];if(_0x51da31&&Object['keys'](_0x51da31)['length'])continue;const _0x4513bc=_0x503d66['attributes']['tablePasteChainId'];let _0x3a2f08=!0x0,_0x488682=!0x0;for(const _0x340c6b of _0x2f8628)if(_0x340c6b['subType']&&_0x340c6b['subType']['startsWith']('tablePaste')){if(!_0x340c6b['attributes']['tablePasteChainId']){_0x488682=!0x1;break;}if(_0x340c6b['id']!=_0x503d66['id']&&_0x340c6b['attributes']['tablePasteChainId']==_0x4513bc){_0x3a2f08=!0x1;break;}}_0x488682&&_0x3a2f08&&(_0x503d66['removeMarkers'](),_0x2151fb=!0x0);}}for(const _0x35d619 of _0x4c6e66)_0x3f51fa['remove'](_0x35d619);for(const _0x18c880 of _0x3226f5)_0x3f51fa['unwrap'](_0x18c880);return _0x2151fb;}),_0x1200d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1d546f,_0x2332a2)=>_0x493e24(_0x1d546f),'converterPriority':'high'}),_0x1200d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4a6aa6,_0x51ce5e)=>_0x51ce5e['options']['showSuggestionHighlights']?_0x493e24(_0x4a6aa6,!0x1):null,'converterPriority':'high'});const _0x473123=_0x1200d6['editing']['view'];this['listenTo'](_0x473123['document'],'clipboardOutput',(_0x119769,_0x197d9b)=>{const _0x12e81e=[];for(const _0x1dee04 of _0x473123['createRangeIn'](_0x197d9b['content'])['getItems']())_0x1dee04['is']('element','suggestion-td')&&_0x12e81e['push'](_0x1dee04);_0x473123['change'](_0x44168c=>{for(const _0x3b616f of _0x12e81e)_0x44168c['move'](_0x44168c['createRangeIn'](_0x3b616f),_0x44168c['createPositionBefore'](_0x3b616f)),_0x44168c['remove'](_0x3b616f);});});}}function Pe(_0x211576){if(_0x211576['isEmpty'])return!0x0;const _0x4e1534=_0x211576['getChild'](0x0);return _0x4e1534['is']('element','paragraph')&&_0x4e1534['isEmpty'];}function he(_0x4b7af8,_0x38facb={},_0x5c620b){for(const {isAnchor:_0x1ffd12,cellHeight:_0x4e73e9,cellWidth:_0x33ac0a}of _0x5c620b['createTableWalker'](_0x4b7af8,{'includeAllSlots':!0x0,..._0x38facb}))if(!_0x1ffd12||0x1!=_0x4e73e9||0x1!=_0x33ac0a)return!0x1;return!0x0;}class vt extends _0x52cd9d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x409346=this['editor']['plugins']['get']('TrackChangesEditing');_0x409346['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x409346['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x409346['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x409346['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x409346['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x409346['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4f10f9,_0x3a6abf){const _0x5c7db4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d0a76=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xc1ac0c=_0x3a6abf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4014d5=_0x5d0a76['getColumnGroupElement'](_0xc1ac0c);let _0x368085=_0x4014d5?_0x5d0a76['getTableColumnsWidths'](_0x4014d5):null,_0x22113c=_0xc1ac0c['getAttribute']('tableWidth')||null;const _0x393c13=_0x3a6abf['tableWidth']||_0x22113c,_0x289667=_0x3a6abf['columnWidths']||_0x368085,_0x5faf36=this['editor']['plugins']['get']('Users')['me'];for(const _0x326f84 of _0x5c7db4['getSuggestions']()){const _0x1a14bb=_0x326f84['getContainedElement']();if('resizeTable'===_0x326f84['subType']&&_0x1a14bb===_0xc1ac0c){_0x326f84['author']!==_0x5faf36&&_0x326f84['discard']();const _0x102b47=_0x326f84['data']['commandParams'];_0x22113c=_0x102b47[0x0]['tableWidth'],_0x368085=_0x102b47[0x0]['columnWidths'];break;}}_0x4f10f9({'table':_0xc1ac0c,'tableWidth':_0x393c13,'columnWidths':_0x289667}),_0x5c7db4['markBlockFormat'](_0xc1ac0c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x22113c,'columnWidths':_0x368085}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x9daa18){if('formatBlock'!=_0x9daa18['type']&&'formatInline'!=_0x9daa18['type'])return;const {data:_0x881d1}=_0x9daa18;if(_0x881d1&&'resizeTable'===_0x881d1['formatGroupId']){const _0x3a86b9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3a86b9)};}}}class Ct extends _0x52cd9d{['afterInit'](){const _0x142520=this['editor'];_0x142520['plugins']['has']('Template')&&_0x142520['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x52cd9d{['afterInit'](){const _0x585a82=this['editor'];if(!_0x585a82['commands']['get']('insertTableOfContents'))return;_0x585a82['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1a767d=_0x585a82['plugins']['get']('TrackChangesEditing'),_0x5ae05b=_0x585a82['locale'];_0x1a767d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1c891b=>o(_0x5ae05b,'ELEMENT_TABLE_OF_CONTENTS',_0x1c891b));}}class Dt extends _0x52cd9d{['afterInit'](){const _0x3ec88b=this['editor'];if(!_0x3ec88b['plugins']['has']('Title'))return;const _0x227b93=_0x3ec88b['plugins']['get']('TrackChangesEditing');_0x227b93['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3ec88b['locale'],'ELEMENT_TITLE')),_0x3ec88b['model']['document']['registerPostFixer'](_0x2b36a0=>{let _0x1291d2=!0x1;const _0x3021da=Array['from'](_0x3ec88b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dfa2f,data:_0x57457b}of _0x3021da){const {group:_0x4eb6ea}=_0x227b93['_splitMarkerName'](_0x1dfa2f);if('suggestion'!==_0x4eb6ea||!_0x57457b['newRange'])continue;const _0xc6687e=_0x57457b['newRange'],_0x58224a=_0xc6687e['end']['nodeBefore'];if(!_0x58224a||!_0x58224a['is']('element','title-content'))continue;if(!_0xc6687e['start']['isTouching'](_0xc6687e['end']))continue;const _0x5e91de=_0x3ec88b['model']['schema']['getNearestSelectionRange'](_0xc6687e['end'],'forward');if(_0x5e91de&&_0x5e91de['isCollapsed']){const _0x3b7771=_0x2b36a0['createRange'](_0xc6687e['start'],_0x5e91de['start']);_0x3b7771['isEqual'](_0xc6687e)||(_0x2b36a0['updateMarker'](_0x1dfa2f,{'range':_0x3b7771}),_0x1291d2=!0x0);}_0x1291d2||(_0x2b36a0['removeMarker'](_0x1dfa2f),_0x1291d2=!0x0);}return _0x1291d2;});}}class Nt extends _0x52cd9d{['afterInit'](){const _0x1286fa=this['editor'],_0x5473f9=_0x1286fa['plugins']['get']('TrackChangesEditing');_0x1286fa['plugins']['has']('UndoEditing')&&(_0x5473f9['enableCommand']('undo'),_0x5473f9['enableCommand']('redo'));}}class Mt extends _0x52cd9d{static get['requires'](){return[jt];}['afterInit'](){const _0x4b5226=this['editor'];if(!_0x4b5226['plugins']['has']('TableCaptionEditing'))return;_0x4b5226['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x52cd9d{['tableProperties'];['tableCellProperties'];constructor(_0x32b6c6){super(_0x32b6c6),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x410964=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5bea8a of this['tableProperties'])_0x410964['enableCommand'](_0x5bea8a,(_0x3328bf,_0x1f34e2)=>{const _0x13b5cb=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5bea8a,[_0x13b5cb],this['tableProperties'],'tableProperties',_0x3328bf,_0x1f34e2);});_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x410964['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x210655,_0x569a24)=>this['handleDiscardAction'](this['tableProperties'],_0x210655,_0x569a24)),_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4831c4 of this['tableCellProperties'])_0x410964['enableCommand'](_0x4831c4,(_0x8b587f,_0x22bfe7)=>{const _0x1a2b1c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4831c4,_0x1a2b1c,this['tableCellProperties'],'tableCellProperties',_0x8b587f,_0x22bfe7);});_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x410964['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4116fa,_0x3bbee7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4116fa,_0x3bbee7)),_0x410964['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x410964['descriptionFactory']['registerDescriptionCallback'](_0xb817e5=>this['handleSuggestionDescription'](_0xb817e5));}['_handlePropertyChange'](_0x390ff7,_0x1335fd,_0x1193d2,_0x3890f4,_0x19f968,_0x288d21){const _0x4560a7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x288d21['batch'],()=>{for(const _0x1fec52 of _0x1335fd){if(this['_getSuggestion'](_0x1fec52,_0x3890f4))_0x19f968(_0x288d21);else{const _0x5c0623={};for(const _0x541c01 of _0x1193d2){const _0x3550f5=_0x1fec52['getAttribute'](_0x541c01);void 0x0!==_0x3550f5&&(_0x5c0623[_0x541c01]=_0x3550f5);}_0x19f968(_0x288d21),_0x4560a7['markBlockFormat'](_0x1fec52,{'commandParams':[_0x5c0623]},[],_0x3890f4);}}});}['handleDiscardAction'](_0xd599bb,_0x13ba1b,_0x59f812){const _0x265a2c=_0x13ba1b[0x0]['start']['nodeAfter'],_0xb868a9=_0x59f812['commandParams'][0x0];this['editor']['model']['change'](_0x3a925d=>{for(const _0x3aad53 of _0xd599bb)void 0x0!==_0xb868a9[_0x3aad53]?_0x3a925d['setAttribute'](_0x3aad53,_0xb868a9[_0x3aad53],_0x265a2c):_0x3a925d['removeAttribute'](_0x3aad53,_0x265a2c);});}['handleSuggestionDescription'](_0x14e6aa){if(_0x14e6aa['data'])switch(_0x14e6aa['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xcdab5,_0x1e597d){const _0x159055=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5b74f6 of _0x159055['getSuggestions']({'skipNotAttached':!0x0})){const _0x392a9b=_0x5b74f6['getContainedElement']();if(_0x5b74f6['subType']===_0x1e597d&&_0x392a9b===_0xcdab5)return _0x5b74f6;}return null;}}const m='$elementName';class p extends _0x52cd9d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5187f3,_0x296178,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1b0d1f){function _0xab6578(_0xfa01b){return _0xfa01b['map'](_0xc8b2b7=>String['fromCharCode'](_0xc8b2b7))['join']('');}super(_0x1b0d1f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x55bf8a,_0x262eaa,_0x10a06d,_0x46bc19)=>{this['_model']['change'](()=>{for(const _0x160dfc of[..._0x46bc19,..._0x10a06d])this['_model']['markers']['has'](_0x160dfc)&&_0x1b0d1f['editing']['reconvertMarker'](_0x160dfc);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1b0d1f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1b0d1f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1b0d1f['config']['get']('trackChanges.trackFormatChanges'),_0x1b0d1f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1b0d1f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1b0d1f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xab6578([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xab6578([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x36]);}['init'](){const _0x13db13=this['editor'],_0x2fb441=(_0x4b1371,_0x2d40e8)=>{if('attribute'!=_0x4b1371)return'ck-suggestion-marker-'+_0x4b1371;const _0x34b391=_0x2d40e8['split']('|')[0x0];return this['_isBlockAttribute'](_0x34b391)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x13db13['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x51b596=>{const {id:_0x551b56,type:_0x1e2d9e,subType:_0xcda5a7}=this['_splitMarkerName'](_0x51b596['markerName']),_0x273960=['ck-suggestion-marker',_0x2fb441(_0x1e2d9e,_0xcda5a7)];let _0x3f4e97=0xbb8;return this['activeMarkers']['includes'](_0x51b596['markerName'])&&(_0x273960['push']('ck-suggestion-marker--active'),_0x3f4e97=0xbc2),'deletion'==_0x1e2d9e&&(_0x3f4e97+=0x5),{'classes':_0x273960,'attributes':{'data-suggestion':_0x551b56},'priority':_0x3f4e97};}}),_0x13db13['conversion']['for']('dataDowncast')['add'](_0x5e5ed7=>{_0x5e5ed7['on']('addMarker:suggestion',(_0x3cba4f,_0x2d7ab8,_0x51ef37)=>{if(!_0x51ef37['options']['showSuggestionHighlights'])return;const _0x259660=_0x2d7ab8['item'];if(!_0x259660)return;const _0x52638f=_0x51ef37['mapper']['toViewElement'](_0x259660);_0x13db13['model']['schema']['isObject'](_0x259660)&&_0x52638f&&!_0x52638f['getCustomProperty']('widget')&&_0x52638f['is']('containerElement')&&_0xef749a(_0x52638f,_0x51ef37['writer']);},{'priority':'high'});}),_0x13db13['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x220e22,_0x13230f)=>{if(!_0x13230f['options']['showSuggestionHighlights'])return null;const {type:_0x5ba143,subType:_0x553ea4}=this['_splitMarkerName'](_0x220e22['markerName']);return{'classes':['ck-suggestion-marker',_0x2fb441(_0x5ba143,_0x553ea4)],'priority':0xbb8};}});const _0x167497=({showActiveMarkers:_0x3fb9e0=!0x0,isAttributeSuggestion:_0x26bfac=!0x1}={})=>(_0x39e8a5,_0x1ac063,_0x49aadb)=>{if(!_0x1ac063['item'])return;const {id:_0x51481d}=this['_splitMarkerName'](_0x1ac063['markerName']);if(_0x26bfac){const _0x916782=this['_suggestions']['get'](_0x51481d),_0x2f04b7=this['_getAttributeKey'](_0x916782);if(!this['_isBlockAttribute'](_0x2f04b7))return;}if(_0x1ac063['item']['is']('selection'))return void _0x49aadb['consumable']['consume'](_0x1ac063['item'],_0x39e8a5['name']);const _0x1f899d=_0x49aadb['mapper']['toViewElement'](_0x1ac063['item']);if(_0x1ac063['item']['is']('element')&&_0x13db13['model']['schema']['isBlock'](_0x1ac063['item'])&&!_0x1f899d['getCustomProperty']('addHighlight')){_0x49aadb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1f899d),_0x49aadb['writer']['setAttribute']('data-suggestion',_0x51481d,_0x1f899d),_0x49aadb['mapper']['bindElementToMarker'](_0x1f899d,_0x1ac063['markerName']),_0x3fb9e0&&(this['activeMarkers']['includes'](_0x1ac063['markerName'])?_0x49aadb['writer']['addClass']('ck-suggestion-marker--active',_0x1f899d):_0x49aadb['writer']['removeClass']('ck-suggestion-marker--active',_0x1f899d));for(const _0x68f516 of _0x13db13['model']['createRangeIn'](_0x1ac063['item'])['getItems']())_0x49aadb['consumable']['consume'](_0x68f516,_0x39e8a5['name']);_0x49aadb['consumable']['consume'](_0x1ac063['item'],_0x39e8a5['name']);}};_0x13db13['conversion']['for']('dataDowncast')['add'](_0x414afa=>{_0x414afa['on']('addMarker:suggestion:formatBlock',(_0x1f4c21,_0x54373a,_0x27a2e5)=>{_0x27a2e5['options']['showSuggestionHighlights']&&_0x167497({'showActiveMarkers':!0x1})(_0x1f4c21,_0x54373a,_0x27a2e5);},{'priority':'highest'});}),_0x13db13['conversion']['for']('dataDowncast')['add'](_0x2fa9f9=>{_0x2fa9f9['on']('addMarker:suggestion:attribute',(_0x2f9548,_0x888358,_0x1ac106)=>{_0x1ac106['options']['showSuggestionHighlights']&&_0x167497({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2f9548,_0x888358,_0x1ac106);},{'priority':'highest'});}),_0x13db13['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xf2bff5,_0x535c23)=>_0x535c23['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xf2bff5['substr'](0xb)}}),_0x13db13['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18490d,{writer:_0x2f45c9})=>{let _0x1f6bb1='suggestion:'+_0x18490d['getAttribute']('suggestion-type')+':'+_0x18490d['getAttribute']('id');return _0x18490d['getAttribute']('marker-count')&&(_0x1f6bb1+=':'+_0x18490d['getAttribute']('marker-count')),_0x2f45c9['createElement']('$marker',{'data-name':_0x1f6bb1});}}),_0x13db13['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x13db13['conversion']['for']('editingDowncast')['add'](_0x1d6f3b=>{_0x1d6f3b['on']('addMarker:suggestion:formatBlock',_0x167497(),{'priority':'high'});}),_0x13db13['conversion']['for']('editingDowncast')['add'](_0x10dda3=>{_0x10dda3['on']('addMarker:suggestion:attribute',_0x167497({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x13db13['conversion']['for']('editingDowncast')['add'](_0x5b1005=>{_0x5b1005['on']('removeMarker:suggestion:formatBlock',(_0x3dc80f,_0x15f839,_0x275439)=>{const _0x50ef4b=_0x275439['mapper']['markerNameToElements'](_0x15f839['markerName']);if(_0x50ef4b){for(const _0x45bf7d of _0x50ef4b)_0x45bf7d['getCustomProperty']('addHighlight')||(_0x275439['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45bf7d),_0x275439['writer']['removeAttribute']('data-suggestion',_0x45bf7d),_0x275439['mapper']['unbindElementFromMarkerName'](_0x45bf7d,_0x15f839['markerName']));}},{'priority':'high'});}),_0x13db13['conversion']['for']('editingDowncast')['add'](_0x330f92=>{_0x330f92['on']('removeMarker:suggestion:attribute',(_0x3ddde4,_0x2d28ee,_0x366af2)=>{const _0x4e2046=_0x366af2['mapper']['markerNameToElements'](_0x2d28ee['markerName']);if(!_0x4e2046)return;const {id:_0x191932}=this['_splitMarkerName'](_0x2d28ee['markerName']),_0x2ba2a7=this['_suggestions']['get'](_0x191932),_0xf8ab4b=this['_getAttributeKey'](_0x2ba2a7);if(this['_isBlockAttribute'](_0xf8ab4b)){for(const _0x49a13f of _0x4e2046)_0x49a13f['getCustomProperty']('addHighlight')||(_0x366af2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x49a13f),_0x366af2['writer']['removeAttribute']('data-suggestion',_0x49a13f),_0x366af2['mapper']['unbindElementFromMarkerName'](_0x49a13f,_0x2d28ee['markerName']));}},{'priority':'high'});}),_0x13db13['model']['document']['registerPostFixer'](_0xbac30d=>{let _0x126c78=!0x1;const _0x33d546=Array['from'](_0x13db13['model']['document']['differ']['getChangedMarkers']()),_0x5c2b20=new Set();for(const {name:_0xbed088,data:_0x33a36b}of _0x33d546){const {group:_0x49cfb0,type:_0x44fa5a,subType:_0x4bf7f6,id:_0xd2e3f8}=this['_splitMarkerName'](_0xbed088);if('suggestion'!==_0x49cfb0)continue;const _0x266ffd=this['_suggestions']['get'](_0xd2e3f8);if(null!=_0x33a36b['newRange']){'formatInline'==_0x44fa5a&&(_0x126c78=_0x126c78||Et(_0x33a36b['newRange'],_0xbed088,_0xbac30d,_0x13db13['model']['schema']));const _0x537176='attribute'==_0x44fa5a&&this['_isBlockAttribute'](_0x4bf7f6['split']('|')[0x0]);if(_0x33a36b['newRange']['isCollapsed']||'$graveyard'==_0x33a36b['newRange']['root']['rootName']||'formatBlock'==_0x44fa5a&&!Ut(_0x33a36b['newRange'])||_0x537176&&!Ut(_0x33a36b['newRange'])||'deletion'==_0x44fa5a&&!(!Tt(_0x5ae551=_0x33a36b['newRange'])&&!function(_0x45bc59){return _0x45bc59['start']['parent']==_0x45bc59['end']['nodeBefore']&&_0x45bc59['start']['isAtEnd'];}(_0x5ae551)))_0xbac30d['removeMarker'](_0xbed088),_0x126c78=!0x0;else{if(!_0x266ffd||!_0x266ffd['isInContent'])continue;_0x5c2b20['add'](_0x266ffd);}}}var _0x5ae551;return _0x5c2b20['size']>0x0&&(_0x126c78=!!this['_joinWithAdjacentSuggestions'](_0x5c2b20)||_0x126c78),_0x126c78;}),_0x13db13['model']['document']['registerPostFixer'](_0x7e0854=>{let _0x1bf524=!0x1;for(const _0x5c75df of _0x13db13['model']['document']['differ']['getChanges']())if('insert'==_0x5c75df['type'])for(const _0x49d0e9 of this['_suggestions']['values']()){if(_0x49d0e9['isMultiRange']||!_0x49d0e9['isInContent'])continue;const _0xc3c68e='formatBlock'==_0x49d0e9['type'],_0x660750=this['_getAttributeKey'](_0x49d0e9),_0x352c82=_0x660750&&this['_isBlockAttribute'](_0x660750);if(!_0xc3c68e&&!_0x352c82)continue;const _0x22c8ed=_0x49d0e9['getFirstRange']();if(_0x22c8ed['start']['parent']!=_0x22c8ed['end']['parent']&&!_0x22c8ed['end']['isAtEnd']){const _0xc10a4b=_0x13db13['model']['createPositionAt'](_0x22c8ed['start']['nodeAfter'],'end'),_0x501a15=_0x13db13['model']['createRange'](_0x22c8ed['start'],_0xc10a4b);_0x7e0854['updateMarker'](_0x49d0e9['getFirstMarker'](),{'range':_0x501a15}),_0x1bf524=!0x0;}}return _0x1bf524;}),_0x13db13['model']['document']['registerPostFixer'](_0x102309=>this['_processAttributeChanges'](_0x102309)),_0x13db13['model']['document']['registerPostFixer'](_0x276005=>!_0x276005['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x276005)),_0x13db13['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x13db13['model']['document']['on']('change:data',(_0x2d4471,_0x3e41fd)=>{if(!_0x3e41fd['isLocal']||_0x3e41fd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5b15a9=_0x13db13['model']['document']['differ']['getChanges']();if(0x0==_0x5b15a9['length'])return;const _0x281592=[],_0x23e162=_0x5b15a9['filter'](_0x3ec0a0=>'attribute'==_0x3ec0a0['type']),_0x37f49a=_0x5b15a9['filter'](_0x292078=>'insert'==_0x292078['type']&&'$text'!=_0x292078['name']);for(const _0x5a7819 of _0x23e162)this['_isRegisteredAttribute'](_0x5a7819['attributeKey'])&&_0x281592['push']({'key':_0x5a7819['attributeKey'],'newValue':_0x5a7819['attributeNewValue'],'oldValue':_0x5a7819['attributeOldValue'],'range':Ot(_0x5a7819['range'],_0x13db13['model'])});for(const _0x9132a5 of _0x37f49a){if('rename'!=_0x9132a5['action']&&'refresh'!=_0x9132a5['action'])continue;const _0x17beec=Gt(_0x9132a5['position']['nodeAfter'],_0x13db13['model']),_0xb26f94=_0x9132a5['before'];'rename'==_0x9132a5['action']&&_0x281592['push']({'key':m,'newValue':_0x9132a5['name'],'oldValue':_0xb26f94['name'],'range':_0x17beec});for(const [_0x404dda,_0x399adc]of _0xb26f94['attributes']){if(!this['_isRegisteredAttribute'](_0x404dda))continue;const _0x912d6c=_0x9132a5['attributes']['get'](_0x404dda);_0x399adc!==_0x912d6c&&_0x281592['push']({'key':_0x404dda,'newValue':_0x912d6c,'oldValue':_0x399adc,'range':_0x17beec});}for(const [_0x27a20f,_0x18108d]of _0x9132a5['attributes'])this['_isRegisteredAttribute'](_0x27a20f)&&(_0xb26f94['attributes']['has'](_0x27a20f)||_0x281592['push']({'key':_0x27a20f,'newValue':_0x18108d,'oldValue':null,'range':_0x17beec}));}0x0!=_0x281592['length']&&_0x13db13['model']['enqueueChange'](_0x3e41fd,_0x3d3354=>{const _0x4309a4=_0x3792e7();for(const {range:_0x4a4913,key:_0x26a6ce,oldValue:_0x2e2834,newValue:_0x3f8770}of _0x281592)this['markAttributeChange'](_0x4a4913,_0x26a6ce,_0x2e2834,_0x3f8770,{'groupId':_0x4309a4});this['_reduceExistingSuggestions'](_0x3d3354,_0x281592);});},{'priority':'lowest'}),_0x13db13['model']['markers']['on']('update:suggestion',(_0x567216,_0x427cc9,_0x33122b)=>{if(null==_0x33122b){const {id:_0x23fd56}=this['_splitMarkerName'](_0x427cc9['name']),_0x26f665=this['_suggestions']['get'](_0x23fd56);_0x26f665&&_0x26f665['addMarkerName'](_0x427cc9['name']);}}),_0x13db13['model']['document']['on']('change:data',()=>{const _0x40d4a1=Array['from'](_0x13db13['model']['document']['differ']['getChangedMarkers']())['filter'](_0x39e340=>'suggestion'===this['_splitMarkerName'](_0x39e340['name'])['group']);if(0x0===_0x40d4a1['length'])return;_0x40d4a1['sort']((_0x342843,_0x2374fe)=>{const _0x229ff9=_0x342843['data']['oldRange'],_0x118cfc=_0x2374fe['data']['oldRange'];return null===_0x229ff9&&null===_0x118cfc?0x0:null===_0x229ff9&&null!==_0x118cfc?-0x1:null!==_0x229ff9&&null===_0x118cfc?0x1:_0x229ff9['start']['isBefore'](_0x118cfc['start'])?-0x1:0x1;});const _0x25a6ad=new Set(),_0x5dfd99=new Set();for(const {name:_0x16186c,data:_0x108a43}of _0x40d4a1){const {id:_0x22c9b9}=this['_splitMarkerName'](_0x16186c);if(null===_0x108a43['oldRange']){const _0x5ed4bf=this['_handleNewSuggestionMarker'](_0x16186c);_0x5dfd99['add'](_0x5ed4bf);}else{const _0x40b4d0=this['_suggestions']['get'](_0x22c9b9);null!==_0x108a43['newRange']||_0x40b4d0['isInContent']?(_0x25a6ad['add'](_0x40b4d0['head']),_0x5dfd99['add'](_0x40b4d0)):this['_removeSuggestion'](_0x40b4d0);}}_0x5dfd99['size']>0x0&&this['_refreshSuggestionsChain'](_0x5dfd99);for(const _0x1c228b of _0x25a6ad)this['fire']('suggestionChanged',_0x1c228b);}),_0x13db13['model']['on']('applyOperation',(_0x85af58,_0x145c0d)=>{const _0x3ef4e2=_0x145c0d[0x0];if(!this['_suggestions']['size'])return;if(!_0x3ef4e2['isDocumentOperation'])return;if(_0x3ef4e2['batch']['isUndo']||!_0x3ef4e2['batch']['isLocal'])return;let _0x63965b,_0x543ca4;switch(_0x3ef4e2['type']){case'insert':_0x63965b=_0x13db13['model']['createPositionAt'](_0x3ef4e2['position']),_0x543ca4=_0x63965b['getShiftedBy'](_0x3ef4e2['howMany']);break;case'split':_0x63965b=_0x13db13['model']['createPositionAt'](_0x3ef4e2['splitPosition']),_0x543ca4=_0x13db13['model']['createPositionAt'](_0x3ef4e2['moveTargetPosition']);break;case'move':_0x63965b=_0x13db13['model']['createPositionAt'](_0x3ef4e2['targetPosition']),_0x543ca4=_0x63965b['getShiftedBy'](_0x3ef4e2['howMany']);break;default:return;}const _0x249478=_0x13db13['model']['createRange'](_0x63965b,_0x543ca4);_0x13db13['model']['change'](()=>{for(const {suggestion:_0x2587ff,meta:_0x48cc92}of this['_findSuggestions'](_0x249478)){if(_0x2587ff['isMultiRange'])continue;if('formatInline'==_0x2587ff['type'])continue;const _0x1a58bc=this['_getAttributeKey'](_0x2587ff);if(_0x1a58bc&&this['_isBlockAttribute'](_0x1a58bc)&&'split'!=_0x3ef4e2['type'])continue;const _0x264363=_0x2587ff['data']&&_0x2587ff['data']['multipleBlocks'];('formatBlock'!=_0x2587ff['type']||'split'==_0x3ef4e2['type']&&!_0x264363)&&(_0x48cc92['containsRangeInObject']||'insertion'==_0x2587ff['type']&&_0x48cc92['isOwn']||_0x2587ff['getFirstRange']()['containsRange'](_0x249478)&&this['_breakSuggestionMarker'](_0x2587ff,_0x63965b,_0x543ca4));}});},{'priority':'lowest'}),_0x13db13['model']['on']('deleteContent',(_0x33a3e4,_0xcef1ad)=>{const _0x359765=_0xcef1ad[0x0],_0xe5a812=_0xcef1ad[0x1];if(_0xe5a812&&_0xe5a812['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x359765['isCollapsed'])return;const _0x3911bc=_0x13db13['model']['schema'],{start:_0x5ca640,end:_0x21dc5a}=_0x359765['getFirstRange'](),_0x367d95=_0x5ca640['nodeAfter']&&_0x3911bc['isLimit'](_0x5ca640['nodeAfter'])?null:_0x3911bc['getNearestSelectionRange'](_0x5ca640,'forward'),_0x4708d8=_0x21dc5a['nodeBefore']&&_0x3911bc['isLimit'](_0x21dc5a['nodeBefore'])?null:_0x3911bc['getNearestSelectionRange'](_0x21dc5a,'backward'),_0x3822f8=_0x13db13['model']['createRange'](_0x367d95?_0x367d95['start']:_0x5ca640,_0x4708d8?_0x4708d8['end']:_0x21dc5a);_0x13db13['model']['change'](_0x264f89=>{this['markDeletion'](_0x3822f8);const _0x3d3b26=_0x13db13['model']['schema']['getNearestSelectionRange'](_0x3822f8['start']);_0x359765['is']('documentSelection')?_0x264f89['setSelection'](_0x3d3b26):_0x359765['setTo'](_0x3d3b26);}),_0x33a3e4['stop']();},{'priority':_0x1e1756['normal']+0xa}),_0x13db13['model']['on']('insertContent',(_0xcdeb6c,_0x1b9d01)=>{const _0x4288c5=_0x1b9d01[_0x1b9d01['length']-0x1];_0x4288c5&&_0x4288c5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x13db13['model']['change'](()=>{let _0x4572ad=_0x13db13['model']['insertContent'](_0x1b9d01[0x0],_0x1b9d01[0x1],_0x1b9d01[0x2],{'forceDefaultExecution':!0x0});if(!_0x4572ad)return;_0xcdeb6c['return']=_0x4572ad['clone']();const _0x199cd7=_0x4572ad['end']['nodeBefore'],_0x39dd76=_0x13db13['model']['schema'];_0x199cd7&&_0x39dd76['isBlock'](_0x199cd7)&&!_0x39dd76['isObject'](_0x199cd7)&&(_0x4572ad=_0x13db13['model']['createRange'](_0x4572ad['start'],_0x13db13['model']['createPositionAt'](_0x199cd7,'end'))),this['markInsertion'](_0x4572ad);}),_0xcdeb6c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4f3e5e=new $(_0x13db13,this['_suggestions']);_0x13db13['commands']['add']('acceptSuggestion',_0x4f3e5e),this['enableCommand']('acceptSuggestion');const _0x19f3fa=new B(_0x13db13,this['_suggestions']);_0x13db13['commands']['add']('discardSuggestion',_0x19f3fa),this['enableCommand']('discardSuggestion'),_0x13db13['commands']['add']('acceptAllSuggestions',new x(_0x13db13,_0x4f3e5e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x13db13['commands']['add']('discardAllSuggestions',new x(_0x13db13,_0x19f3fa,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x13db13['commands']['add']('acceptSelectedSuggestions',new R(_0x13db13,_0x4f3e5e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x13db13['commands']['add']('discardSelectedSuggestions',new R(_0x13db13,_0x19f3fa,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1dc2fa=_0x13db13['plugins']['get']('CommentsRepository');this['listenTo'](_0x1dc2fa,'addComment',(_0x51913d,{threadId:_0x48abc1})=>{const _0x5903b2=this['_suggestions']['get'](_0x48abc1);_0x5903b2&&_0x5903b2['commentThread']&&0x1===_0x5903b2['commentThread']['length']&&this['_updateSuggestionData'](_0x48abc1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1dc2fa,'removeComment',(_0x5c7414,{threadId:_0x98dc31})=>{const _0x3d459b=this['_suggestions']['get'](_0x98dc31);_0x3d459b&&_0x3d459b['commentThread']&&!_0x3d459b['commentThread']['length']&&this['_updateSuggestionData'](_0x98dc31,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2556ef){if(this['_adapter'])throw new _0x368f48('track-changes-adapter-already-set',this);this['_adapter']=_0x2556ef;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x36007c=!0x1,toJSON:_0x4da222=!0x1}={}){const _0x8ff957=[];for(const _0xa62323 of this['_suggestions']['values']())_0x36007c&&!_0xa62323['isInContent']||_0x8ff957['push'](_0xa62323);return _0x4da222?_0x8ff957['map'](_0xef0f46=>_0xef0f46['toJSON']()):_0x8ff957;}['getSuggestion'](_0x1298c4){const _0x4d1bd8=this['_suggestions']['get'](_0x1298c4);if(!_0x4d1bd8)throw new _0x368f48('track-changes-suggestion-not-found',this);return _0x4d1bd8;}['hasSuggestion'](_0x7762e8){return this['_suggestions']['has'](_0x7762e8);}['addSuggestionData'](_0x3a9dfc){const {authorId:_0x5b54d4,id:_0x1ed0af,attributes:_0x43eacb}=_0x3a9dfc,[_0x56e740,_0x42bd06]=_0x3a9dfc['type']['split'](':'),_0x3ce940=this['_suggestions']['get'](_0x1ed0af)||this['_createSuggestion'](_0x56e740,_0x42bd06,_0x1ed0af,_0x5b54d4,_0x43eacb);if(this['_addThreadToSuggestion'](_0x3ce940),this['_checkSuggestionCorrectness'](_0x3ce940,_0x56e740,_0x42bd06||null,_0x5b54d4),_0x3ce940['createdAt']=_0x3a9dfc['createdAt'],_0x3ce940['_isDataLoaded']=!0x0,_0x43eacb&&_0x43eacb['@external']){const _0x26acc5=_0x43eacb['@external'],_0x19fae4=this['_getExternalAuthor'](_0x26acc5['authorName']);_0x3ce940['authoredAt']=_0x26acc5['createdAt'],_0x3ce940['author']=_0x19fae4,_0x3ce940['isExternal']=!0x0;}else _0x3ce940['authoredAt']=_0x3a9dfc['createdAt'];switch(_0x3a9dfc['data']&&(_0x3ce940['data']=_0x3a9dfc['data']),_0x3a9dfc['attributes']&&(_0x3ce940['attributes']=_0x3a9dfc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3ce940['_saved']=!0x0),this['_suggestionState']['get'](_0x3ce940)){case'notReady':this['_suggestionState']['set'](_0x3ce940,'dataReady');break;case'markerReady':_0x3ce940['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3ce940])),this['_refreshSuggestionsChain'](new Set([_0x3ce940])),this['_suggestionState']['set'](_0x3ce940,'ready'),this['fire']('suggestionLoaded',_0x3ce940)):this['_suggestionState']['set'](_0x3ce940,'removed');}return _0x3ce940;}['acceptSuggestion'](_0x48353b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x565105 of _0x48353b['getAllAdjacentSuggestions']())_0x565105['accept']();});});}['discardSuggestion'](_0x4cf51e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5bc130 of _0x4cf51e['getAllAdjacentSuggestions']())_0x5bc130['discard']();});});}['enableCommand'](_0x412972,_0x2a6625){const _0x5a0f8e=this['editor']['commands']['get'](_0x412972);if(!_0x5a0f8e)throw new _0x368f48('track-changes-command-not-found',this,{'commandName':_0x412972});if(this['_enabledCommands']['has'](_0x5a0f8e))throw new _0x368f48('track-changes-enable-command-twice',this,{'commandName':_0x412972});this['_enabledCommands']['add'](_0x5a0f8e),_0x2a6625&&_0x5a0f8e['on']('execute',(_0x2f1108,_0x3e0b28)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3e0b28['length']>0x0&&_0x3e0b28[_0x3e0b28['length']-0x1]&&_0x3e0b28[_0x3e0b28['length']-0x1]['forceDefaultExecution']?_0x3e0b28['pop']():(_0x2f1108['return']=_0x2a6625((..._0x52dbf3)=>_0x5a0f8e['execute'](..._0x52dbf3,{'forceDefaultExecution':!0x0}),..._0x3e0b28),_0x2f1108['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x312cb5){let _0x5773a1,_0x2efb36;const _0x3d0ee7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5773a1=_0x312cb5();}catch(_0x378a67){_0x2efb36=_0x378a67;}return _0x3d0ee7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2efb36&&_0x368f48['rethrowUnexpectedError'](_0x2efb36,this),_0x5773a1;}['markInsertion'](_0x2f1a15,_0x23e200=null,_0x85ac55={}){if(_0x2f1a15['isCollapsed'])return null;const _0x440d23=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2fde82,meta:_0x2f9de9}of this['_findSuggestions'](_0x2f1a15,'insertion'))if(_0x2f9de9['isOwn']){if(!_0x2f9de9['isNextTo']){if(_0x2f9de9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2fde82,_0x85ac55))continue;return _0x2fde82;}if(Lt(_0x2fde82,_0x85ac55))return _0x2fde82;this['_breakSuggestionMarker'](_0x2fde82,_0x2f1a15['start'],_0x2f1a15['end']);break;}if(_0x23e200==_0x2fde82['subType']&&Lt(_0x2fde82,_0x85ac55)){const _0x3450fe=_0x2fde82['getFirstRange']();return _0x3450fe['start']['isEqual'](_0x2f1a15['end'])?this['_setSuggestionRange'](_0x2fde82,this['_model']['createRange'](_0x2f1a15['start'],_0x3450fe['end'])):this['_setSuggestionRange'](_0x2fde82,this['_model']['createRange'](_0x3450fe['start'],_0x2f1a15['end'])),_0x2fde82;}}const _0x522c9c=_0x3792e7(),_0xb8ad63=_0x440d23['id'],_0xe3dc77=_0x23e200?'insertion:'+_0x23e200:'insertion',_0x2c443d=this['_setSuggestionData']({'id':_0x522c9c,'type':_0xe3dc77,'createdAt':new Date(),'authorId':_0xb8ad63,'attributes':_0x85ac55});return this['_addSuggestionMarker'](_0xe3dc77,_0x522c9c,_0xb8ad63,_0x2f1a15),_0x2c443d;}['markMultiRangeInsertion'](_0x410a6,_0x1903e5='multi',_0x7068e9={}){const _0x28b35d=this['editor']['plugins']['get']('Users')['me'],_0xe2a01b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1903e5,'join');for(const _0x5b760a of this['getSuggestions']())if(_0x5b760a['author']['id']==_0x28b35d['id']&&'insertion'==_0x5b760a['type']&&_0x5b760a['subType']==_0x1903e5&&Lt(_0x5b760a,_0x7068e9)&&(_0xe2a01b(_0x5b760a['getRanges'](),_0x410a6)||_0xe2a01b(_0x410a6,_0x5b760a['getRanges']()))){for(const _0x4e8d01 of _0x410a6)_0x5b760a['addRange'](_0x4e8d01);return _0x5b760a;}for(const {suggestion:_0x28eceb,meta:_0x220bed}of this['_findSuggestions'](_0x410a6,'insertion')){if(!_0x220bed['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x220bed['containsRangeInObject'])continue;if(!Lt(_0x28eceb,_0x7068e9))continue;let _0x155a4d=!0x0;for(const _0x3b3dc7 of _0x28eceb['getRanges']())for(const _0x51f25e of _0x410a6)if(!_0x3b3dc7['containsRange'](_0x51f25e)){_0x155a4d=!0x1;break;}if(_0x155a4d)return _0x28eceb;}const _0x440612=_0x3792e7(),_0x4816f8=_0x28b35d['id'],_0x4674ae='insertion:'+_0x1903e5,_0xdd2404=this['_setSuggestionData']({'id':_0x440612,'type':_0x4674ae,'createdAt':new Date(),'authorId':_0x4816f8,'attributes':_0x7068e9});for(const _0x2c31c4 of _0x410a6)this['_addSuggestionMarker'](_0x4674ae,_0x440612,_0x4816f8,_0x2c31c4,u['getMultiRangeId']());return _0xdd2404;}['markInlineFormat'](_0x4ba217,_0xe098b5,_0x5cd2f1=null,_0x23113d={}){if(_0x5cd2f1=_0x5cd2f1||Vt(_0xe098b5),_0x4ba217['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x217167=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5cd2f1,'accept');return this['forceDefaultExecution'](()=>_0x217167([_0x4ba217],_0xe098b5,_0x23113d)),null;}const _0x1f1edf=this['editor']['plugins']['get']('Users')['me'],_0x356c18=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e9a05,meta:_0x2ec940}of this['_findSuggestions'](_0x4ba217,'insertion'))_0x2ec940['isOwn']&&!_0x2ec940['isInsideObject']&&_0x356c18['push'](..._0x1e9a05['getRanges']());}const _0x150898=function(_0x552e89,_0x25e10b){const _0x10a865=[];for(const _0x95b80d of _0x25e10b){const _0x1ac900=_0x552e89['getIntersection'](_0x95b80d);_0x1ac900&&_0x10a865['push'](_0x1ac900);}return _0x10a865;}(_0x4ba217,_0x356c18),_0x1cad89=function(_0x2f61f2,_0x396ee5){const _0x6ddf70=[_0x2f61f2];for(const _0x27d8d7 of _0x396ee5){let _0x3f0cfd=0x0;for(;_0x3f0cfd<_0x6ddf70['length'];){const _0xb66178=_0x6ddf70[_0x3f0cfd]['getDifference'](_0x27d8d7);_0x6ddf70['splice'](_0x3f0cfd,0x1,..._0xb66178),_0x3f0cfd+=_0xb66178['length'];}}return _0x6ddf70;}(_0x4ba217,_0x356c18);_0x150898['length']&&this['_model']['change'](()=>{for(const _0x105bda of _0x150898){const _0x34b3e4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5cd2f1,'accept');this['forceDefaultExecution'](()=>_0x34b3e4([_0x105bda],_0xe098b5,_0x23113d));}});for(const _0x290257 of _0x1cad89){let _0x55d67d=null,_0x291b5d=_0x290257['start'],_0x5040c6=_0x290257['end'];for(const {suggestion:_0x3ca52b,meta:_0x16a5f9}of this['_findSuggestions'](_0x290257,'formatInline')){if(!_0x16a5f9['isOwn'])continue;if(_0x3ca52b['subType']!=_0x5cd2f1)continue;if(!Lt(_0x3ca52b,_0x23113d))continue;const _0xfff158=_0x3ca52b['getFirstRange']();if(_0xfff158['containsRange'](_0x290257,!0x0))return null;_0x291b5d=_0x291b5d['isBefore'](_0xfff158['start'])?_0x291b5d:_0xfff158['start'],_0x5040c6=_0x5040c6['isAfter'](_0xfff158['end'])?_0x5040c6:_0xfff158['end'],_0x55d67d?_0xfff158['start']['isBefore'](_0x55d67d['getFirstRange']()['start'])?(_0x55d67d['removeMarkers'](),_0x55d67d=_0x3ca52b):_0x3ca52b['removeMarkers']():_0x55d67d=_0x3ca52b;}const _0x4dfbba=this['_model']['createRange'](_0x291b5d,_0x5040c6);if(_0x55d67d)this['_setSuggestionRange'](_0x55d67d,_0x4dfbba);else{const _0x427d9e=_0x3792e7(),_0x4711c2=_0x1f1edf['id'];this['_setSuggestionData']({'id':_0x427d9e,'type':'formatInline:'+_0x5cd2f1,'data':_0xe098b5,'createdAt':new Date(),'authorId':_0x4711c2,'attributes':_0x23113d}),this['_addSuggestionMarker']('formatInline:'+_0x5cd2f1,_0x427d9e,_0x4711c2,_0x4dfbba);}}return null;}['markBlockFormat'](_0x5d2282,_0x146c06,_0x198a7c=[],_0x547bb8=null,_0x4c319c={}){_0x146c06['formatGroupId']||(_0x146c06['formatGroupId']=_0x146c06['commandName']),_0x146c06['multipleBlocks']=_0x5d2282['is']('range'),_0x547bb8=_0x547bb8||Vt(_0x146c06);const _0x3b55f4=_0x198a7c['map'](_0x13a732=>Gt(_0x13a732,this['_model'])),_0x48630b=_0x5d2282['is']('range')?_0x5d2282:Gt(_0x5d2282,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3acb76=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x547bb8,'accept');return this['forceDefaultExecution'](()=>_0x3acb76([_0x48630b],_0x146c06,_0x4c319c)),null;}_0x3b55f4['push'](_0x48630b);let _0xec7bd3=!0x0;for(const _0xcc44ac of _0x3b55f4)if(!this['_rangeIsInLocalUserInsertion'](_0xcc44ac)){_0xec7bd3=!0x1;break;}if(_0xec7bd3&&'always'!==this['_trackFormatChanges']){const _0x5e077d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x547bb8,'accept');return this['forceDefaultExecution'](()=>_0x5e077d([_0x48630b],_0x146c06,_0x4c319c)),null;}let _0x25bffd=null,_0x21cb2e=_0x48630b['start'],_0x41a947=_0x48630b['end'];for(const {suggestion:_0x370ade,meta:_0x2cd34e}of this['_findSuggestions'](_0x48630b,'formatBlock')){if(!_0x2cd34e['isOwn'])continue;if(_0x2cd34e['isNextTo']||_0x2cd34e['containsRangeInObject']||_0x2cd34e['isInsideObject'])continue;if(_0x370ade['data']['formatGroupId']!=_0x146c06['formatGroupId'])continue;if(!Lt(_0x370ade,_0x4c319c))continue;const _0x21e159=_0x370ade['getFirstRange']();if(_0x370ade['subType']==_0x547bb8){if(_0x21e159['containsRange'](_0x48630b,!0x0))return null;_0x21cb2e=_0x21cb2e['isBefore'](_0x21e159['start'])?_0x21cb2e:_0x21e159['start'],_0x41a947=_0x41a947['isAfter'](_0x21e159['end'])?_0x41a947:_0x21e159['end'],_0x25bffd?_0x21e159['start']['isBefore'](_0x25bffd['getFirstRange']()['start'])?(_0x25bffd['removeMarkers'](),_0x25bffd=_0x370ade):_0x370ade['removeMarkers']():_0x25bffd=_0x370ade;}else{const _0x2d0fcb=_0x48630b['getIntersection'](_0x21e159);this['_cutOutSuggestionMarker'](_0x370ade,_0x2d0fcb);}}const _0x38cb0c=this['editor']['plugins']['get']('Users')['me'],_0x145956=_0x3792e7(),_0x3bbdb4=_0x38cb0c['id'];if(_0x25bffd)return this['_setSuggestionRange'](_0x25bffd,this['_model']['createRange'](_0x21cb2e,_0x41a947)),_0x25bffd;{const _0x23d089=this['_setSuggestionData']({'id':_0x145956,'type':'formatBlock:'+_0x547bb8,'data':_0x146c06,'createdAt':new Date(),'authorId':_0x3bbdb4,'attributes':_0x4c319c});return this['_addSuggestionMarker']('formatBlock:'+_0x547bb8,_0x145956,_0x3bbdb4,this['_model']['createRange'](_0x21cb2e,_0x41a947)),_0x23d089;}}['markMultiRangeBlockFormat'](_0x428a6f,_0x56ed9e,_0x21a1c4=[],_0x868c5b=null,_0x24064b={}){_0x56ed9e['formatGroupId']||(_0x56ed9e['formatGroupId']=_0x56ed9e['commandName']);const _0x400d25=_0x428a6f[0x0];_0x56ed9e['multipleBlocks']=_0x400d25['is']('range'),_0x868c5b=_0x868c5b||Vt(_0x56ed9e);const _0x47c46d=_0x21a1c4['map'](_0x17f5dc=>Gt(_0x17f5dc,this['_model'])),_0x16d329=_0x400d25['is']('range')?_0x428a6f:_0x428a6f['map'](_0x269d6a=>Gt(_0x269d6a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x42fac3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x868c5b,'accept');return this['forceDefaultExecution'](()=>_0x42fac3(_0x16d329,_0x56ed9e,_0x24064b)),null;}_0x47c46d['push'](..._0x16d329);let _0x30f6f3=!0x0;for(const _0xc8d57f of _0x47c46d)if(!this['_rangeIsInLocalUserInsertion'](_0xc8d57f)){_0x30f6f3=!0x1;break;}if(_0x30f6f3&&'always'!==this['_trackFormatChanges']){const _0x445195=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x868c5b,'accept');return this['forceDefaultExecution'](()=>_0x445195(_0x16d329,_0x56ed9e,_0x24064b)),null;}const _0x1f66eb=this['editor']['plugins']['get']('Users')['me'];for(const _0x3bfa44 of this['getSuggestions']()){if(_0x3bfa44['author']['id']!=_0x1f66eb['id'])continue;if('formatBlock'!=_0x3bfa44['type']||_0x3bfa44['data']['formatGroupId']!=_0x56ed9e['formatGroupId'])continue;if(!Lt(_0x3bfa44,_0x24064b))continue;const _0x5a7f61=_0x3bfa44['subType']==_0x868c5b;for(let _0x37d86e=0x0;_0x37d86e<_0x16d329['length'];_0x37d86e++){const _0x1d88a4=_0x16d329[_0x37d86e];for(const _0x4ddfb0 of _0x3bfa44['getMarkers']()){const _0x8e30ff=_0x4ddfb0['getRange']();if(_0x1d88a4['isEqual'](_0x8e30ff)){_0x5a7f61?(_0x16d329['splice'](_0x37d86e,0x1),_0x37d86e--):_0x3bfa44['removeMarker'](_0x4ddfb0['name']);break;}}}}if(0x0==_0x16d329['length'])return null;const _0x122ae6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x868c5b,'join');for(const _0x4a394d of this['getSuggestions']())if(_0x4a394d['author']['id']==_0x1f66eb['id']&&'formatBlock'==_0x4a394d['type']&&_0x4a394d['data']['formatGroupId']==_0x56ed9e['formatGroupId']&&_0x4a394d['subType']==_0x868c5b&&Lt(_0x4a394d,_0x24064b)&&(_0x122ae6(_0x4a394d['getRanges'](),_0x16d329)||_0x122ae6(_0x16d329,_0x4a394d['getRanges']()))){for(const _0x3b1ea4 of _0x16d329)_0x4a394d['addRange'](_0x3b1ea4);return _0x4a394d;}const _0x226b44=_0x3792e7(),_0x2ad601=_0x1f66eb['id'],_0x4e5992='formatBlock:'+_0x868c5b,_0x3e8e30=this['_setSuggestionData']({'id':_0x226b44,'type':_0x4e5992,'data':_0x56ed9e,'createdAt':new Date(),'authorId':_0x2ad601,'attributes':_0x24064b});for(const _0x235bf9 of _0x16d329)this['_addSuggestionMarker'](_0x4e5992,_0x226b44,_0x2ad601,_0x235bf9,u['getMultiRangeId']());return _0x3e8e30;}['markDeletion'](_0x487b6b,_0x3e3f11=null,_0x5bd521={}){if(_0x487b6b['isCollapsed'])return null;const _0x302793=this['editor']['plugins']['get']('Users')['me'],_0x41c82d=new _0x39eeea(_0x487b6b['start'],_0x487b6b['end']);for(const {suggestion:_0x94c68a,meta:_0x429fec}of this['_findSuggestions'](_0x41c82d,'insertion'))if(_0x429fec['isOwn']&&!_0x429fec['isNextTo']){if(_0x94c68a['isMultiRange']){const _0x38affb=_0x94c68a['getRanges']()['filter'](_0x4c3cd6=>'$graveyard'!=_0x4c3cd6['root']['rootName']);_0x38affb['every'](_0x8a7d90=>_0x41c82d['containsRange'](_0x8a7d90,!0x0))&&_0x94c68a['discard']();if(_0x38affb['some'](_0x1ed129=>_0x1ed129['containsRange'](_0x41c82d,!0x0))){const _0x4323cd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e3f11,'accept');return this['forceDefaultExecution'](()=>_0x4323cd([_0x41c82d],null,_0x5bd521)),null;}}else{const _0x4d3b12=_0x41c82d['getIntersection'](_0x94c68a['getFirstRange']());null!==_0x4d3b12&&_0x94c68a['_onDiscard']([_0x4d3b12],null,_0x5bd521);}}if(_0x41c82d['detach'](),_0x41c82d['isCollapsed']||'$graveyard'==_0x41c82d['root']['rootName'])return null;let _0xee391b=null,_0x59a9c8=_0x41c82d['start'],_0xc3e97d=_0x41c82d['end'];const _0x5e84b6=this['_findSuggestions'](_0x41c82d,'deletion');for(const {suggestion:_0x4e8c7a,meta:_0x5deb51}of _0x5e84b6){const _0x4bd6d1=this['_model']['createRange'](_0x59a9c8,_0xc3e97d);if(_0x5deb51['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5deb51['containsRangeInObject']&&!_0x5deb51['isInsideObject'])){if(_0x4e8c7a['isMultiRange']){if(!Lt(_0x4e8c7a,_0x5bd521))continue;let _0x5785ec=!0x0;for(const _0xec45c7 of _0x4e8c7a['getRanges']()){if(_0xec45c7['containsRange'](_0x4bd6d1,!0x0))return _0x4e8c7a;_0x4bd6d1['containsRange'](_0xec45c7)||(_0x5785ec=!0x1);}_0x5785ec&&_0x4e8c7a['discard']();}else{const _0x206aa3=_0x4e8c7a['getFirstRange']();if(_0x206aa3['containsRange'](_0x4bd6d1,!0x0))return _0x4e8c7a;if(!Lt(_0x4e8c7a,_0x5bd521)){_0x4bd6d1['containsRange'](_0x206aa3)?_0x4e8c7a['removeMarkers']():_0x206aa3['containsPosition'](_0x59a9c8)?_0x59a9c8=_0x206aa3['end']:_0x206aa3['containsPosition'](_0xc3e97d)&&(_0xc3e97d=_0x206aa3['start']);continue;}_0x59a9c8=_0x59a9c8['isBefore'](_0x206aa3['start'])?_0x59a9c8:_0x206aa3['start'],_0xc3e97d=_0xc3e97d['isAfter'](_0x206aa3['end'])?_0xc3e97d:_0x206aa3['end'],_0x5bd521=Object['assign']({},_0x4e8c7a['attributes']),_0xee391b?_0x206aa3['start']['isBefore'](_0xee391b['getFirstRange']()['start'])?(_0xee391b['removeMarkers'](),_0xee391b=_0x4e8c7a):_0x4e8c7a['removeMarkers']():_0xee391b=_0x4e8c7a;}}}if(_0xee391b)return this['_setSuggestionRange'](_0xee391b,this['_model']['createRange'](_0x59a9c8,_0xc3e97d)),_0xee391b;{const _0x58a153=_0x3792e7(),_0x1f78a1=this['_model']['createRange'](_0x59a9c8,_0xc3e97d),_0x1ae693=_0x302793['id'],_0x27158f=_0x3e3f11?'deletion:'+_0x3e3f11:'deletion',_0x189312=this['_setSuggestionData']({'id':_0x58a153,'type':_0x27158f,'createdAt':new Date(),'authorId':_0x1ae693,'attributes':_0x5bd521});return this['_addSuggestionMarker'](_0x27158f,_0x58a153,_0x1ae693,_0x1f78a1),_0x189312;}}['markMultiRangeDeletion'](_0x398bc9,_0x2905fe='multi',_0x4a5cc7={}){const _0xba9661=this['editor']['plugins']['get']('Users')['me'],_0xf3335c=_0x398bc9['map'](_0x30d508=>new _0x39eeea(_0x30d508['start'],_0x30d508['end'])),_0x300c43=new Set();for(const {suggestion:_0xfac134,meta:_0x46707d}of this['_findSuggestions'](_0xf3335c,'insertion'))_0x46707d['isOwn']&&!_0x46707d['isNextTo']&&_0x300c43['add'](_0xfac134);for(const _0x98b8fd of _0x300c43)if(_0x98b8fd['isMultiRange']){const _0x2a63c6=_0x98b8fd['getRanges']();(!_0x98b8fd['attributes']||!_0x98b8fd['attributes']['skipNestingCheck'])&&(_0x2a63c6['every'](_0xa81eec=>_0xf3335c['some'](_0x4eeef7=>_0x4eeef7['containsRange'](_0xa81eec,!0x0)))&&_0x98b8fd['discard']());if(_0xf3335c['every'](_0xbc39b1=>_0x2a63c6['some'](_0x5c487f=>_0x5c487f['containsRange'](_0xbc39b1,!0x0)))){const _0x44c4ad=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2905fe,'accept');return this['forceDefaultExecution'](()=>_0x44c4ad(_0x398bc9,null,_0x4a5cc7)),null;}}else{const _0x3c707d=_0x98b8fd['getFirstRange']();_0xf3335c['some'](_0x53e718=>_0x53e718['containsRange'](_0x3c707d,!0x0))&&_0x98b8fd['discard']();if(_0xf3335c['every'](_0x443f65=>_0x3c707d['containsRange'](_0x443f65,!0x0))){const _0x4ab055=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2905fe,'accept');return this['forceDefaultExecution'](()=>_0x4ab055(_0xf3335c,null,_0x4a5cc7)),null;}}const _0x3acd5f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2905fe,'join');let _0x3613dc=null;for(const _0x114af1 of this['getSuggestions']())if(_0x114af1['author']['id']==_0xba9661['id']&&_0x114af1['isInContent']&&'deletion'==_0x114af1['type']&&_0x114af1['subType']==_0x2905fe&&Lt(_0x114af1,_0x4a5cc7)&&(_0x3acd5f(_0x114af1['getRanges'](),_0xf3335c)||_0x3acd5f(_0xf3335c,_0x114af1['getRanges']()))){if(_0x3613dc){if(_0x114af1['commentThread']&&_0x114af1['commentThread']['length'])continue;for(const _0x1877e2 of _0x114af1['getRanges']())_0x3613dc['isIntersectingWithRange'](_0x1877e2)||_0x3613dc['addRange'](_0x1877e2);_0x114af1['removeMarkers']();}else{_0x3613dc=_0x114af1;for(const _0xe8498c of _0xf3335c)_0x114af1['isIntersectingWithRange'](_0xe8498c)||_0x114af1['addRange'](_0xe8498c);}}if(_0x3613dc)return _0x3613dc;_0x300c43['clear']();for(const {suggestion:_0x150ec7,meta:_0x100463}of this['_findSuggestions'](_0xf3335c,'deletion'))_0x100463['isOwn']&&(this['_mergeNestedSuggestions']||!_0x100463['containsRangeInObject']&&!_0x100463['isInsideObject'])&&Lt(_0x150ec7,_0x4a5cc7)&&_0x300c43['add'](_0x150ec7);for(const _0x54550f of _0x300c43){const _0x107d08=_0x54550f['getRanges']();if(!_0x4a5cc7||!_0x4a5cc7['skipNestingCheck']){if(_0xf3335c['every'](_0x27c371=>_0x107d08['some'](_0x4c181f=>_0x4c181f['containsRange'](_0x27c371,!0x0))))return _0x54550f;}(!_0x54550f['attributes']||!_0x54550f['attributes']['skipNestingCheck'])&&(_0x107d08['every'](_0x58308b=>_0xf3335c['some'](_0xd37ba3=>_0xd37ba3['containsRange'](_0x58308b,!0x0)))&&_0x54550f['discard']());}const _0x14bc62=_0x3792e7(),_0x2cebfc=_0xba9661['id'],_0x46de97='deletion:'+_0x2905fe,_0x1d2189=this['_setSuggestionData']({'id':_0x14bc62,'type':_0x46de97,'createdAt':new Date(),'authorId':_0x2cebfc,'attributes':_0x4a5cc7});for(const _0x5b4b03 of _0xf3335c)_0x5b4b03['detach'](),_0x5b4b03['isCollapsed']||'$graveyard'==_0x5b4b03['root']['rootName']||this['_addSuggestionMarker'](_0x46de97,_0x14bc62,_0x2cebfc,_0x5b4b03,u['getMultiRangeId']());return _0x1d2189;}['markAttributeChange'](_0x348b5c,_0x5b450b,_0x166ded,_0x1757ae,_0x14dfef){if(_0x348b5c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x392f49=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c4a86=Array['from'](this['_suggestions']['values']())['filter'](_0x4e80f7=>'attribute'==_0x4e80f7['type']&&_0x4e80f7['data']['key']==_0x5b450b&&_0x4e80f7['isIntersectingWithRange'](_0x348b5c));if('default'===this['_trackFormatChanges']){const _0x36f7d0=this['_findSuggestions'](_0x348b5c,'insertion')['filter'](({meta:_0xf59606})=>_0xf59606['isOwn']&&!_0xf59606['isInsideObject']&&!_0xf59606['isNextTo'])['map'](({suggestion:_0x3f2517})=>_0x3f2517);_0x5c4a86['unshift'](..._0x36f7d0);}const _0x1986ce=new Map([[_0x348b5c,_0x166ded]]);for(const _0x2f1255 of _0x5c4a86){const _0x3bed79='attribute'==_0x2f1255['type']?_0x2f1255['data']['oldValue']:void 0x0,_0x456d9a=_0x2f1255['getFirstRange'](),_0x3530e1=Array['from'](_0x1986ce['keys']())['find'](_0x4c46ff=>_0x4c46ff['isIntersecting'](_0x456d9a));if(!_0x3530e1)continue;const _0x59c066=_0x3530e1['getDifference'](_0x456d9a);this['_isBlockAttribute'](_0x5b450b)&&'insertion'==_0x2f1255['type']&&0x0!=_0x59c066['length']||(_0x1986ce['delete'](_0x3530e1),_0x59c066['forEach'](_0x426517=>{_0x1986ce['set'](_0x426517,_0x166ded);}),'insertion'!=_0x2f1255['type']&&_0x3bed79!=_0x1757ae&&_0x1986ce['set'](_0x3530e1['getIntersection'](_0x456d9a),_0x3bed79));}const _0x5642b1=[];for(const [_0x13ed63,_0x376d9e]of _0x1986ce){const _0x13ca29=_0x3792e7(),_0x1e01dd={'key':_0x5b450b,'oldValue':_0x376d9e,'newValue':_0x1757ae};_0x5b450b['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x5b450b});const _0x17d69f=('attribute:'+(_0x5b450b+'|'+Vt({'newValue':_0x1757ae})))['substring'](0x0,0x3c),_0xf2b204=this['_setSuggestionData']({'id':_0x13ca29,'type':_0x17d69f,'data':_0x1e01dd,'createdAt':new Date(),'authorId':_0x392f49,'attributes':_0x14dfef});_0x5642b1['push'](_0xf2b204),this['_addSuggestionMarker'](_0x17d69f,_0x13ca29,_0x392f49,_0x13ed63);}return _0x5642b1;}['enableDefaultAttributesIntegration'](_0x1a46e9){this['enableCommand'](_0x1a46e9,(_0x5e62a4,..._0xf1118b)=>{this['_recordAttributeChanges'](()=>{_0x5e62a4(..._0xf1118b);});});}['registerBlockAttribute'](_0x5f5783){this['_blockAttributeKeys']['add'](_0x5f5783);}['registerInlineAttribute'](_0x1b5403){this['_inlineAttributeKeys']['add'](_0x1b5403);}['_getAttributeKey'](_0x1b460b){return'attribute'==_0x1b460b['type']?_0x1b460b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3157d0,_0x2986ab){const _0x44fde9=_0x3157d0['getFirstMarker']();this['_model']['change'](_0x5640e3=>{_0x5640e3['updateMarker'](_0x44fde9,{'range':_0x2986ab});});}['_addThreadToSuggestion'](_0x135f02){const _0x4d1c28=_0x135f02['id'],_0x11bf63=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4d1c28)||this['_commentsRepository']['addCommentThread']({'channelId':_0x11bf63,'threadId':_0x4d1c28,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b402a=this['_commentsRepository']['getCommentThread'](_0x4d1c28);_0x2b402a['unbind']('isRemovable'),_0x2b402a['isRemovable']=!0x1,_0x135f02['commentThread']=_0x2b402a;}['_checkSuggestionCorrectness'](_0x425f95,_0x12c9a8,_0x365c80,_0x32becd){if(_0x425f95['type']!=_0x12c9a8||_0x425f95['subType']!=_0x365c80||_0x425f95['creator']['id']!=_0x32becd)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x368f48('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1d19f3,_0x3a03f0){const _0x5c6326=_0x1d19f3['getFirstRange']();if(_0x3a03f0['isEqual'](_0x5c6326))_0x1d19f3['removeMarkers']();else{if(_0x5c6326['containsRange'](_0x3a03f0)){const _0x5d87b2=this['_model']['createPositionAt'](_0x3a03f0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1d19f3,this['_model']['createRange'](_0x5c6326['start'],_0x5d87b2));const _0x15a81d=_0x3792e7(),_0x27e0b4=_0x1d19f3['creator']['id'],_0x35cf2c=_0x1d19f3['type']+':'+_0x1d19f3['subType'];this['_setSuggestionData']({'id':_0x15a81d,'type':_0x35cf2c,'createdAt':new Date(),'authorId':_0x27e0b4,'data':_0x1d19f3['data'],'attributes':_0x1d19f3['attributes']});const _0x1bce78=this['_model']['createPositionAt'](_0x3a03f0['end']['parent'],'after'),_0x2835cd=this['_model']['createRange'](_0x1bce78,_0x5c6326['end']);this['_addSuggestionMarker'](_0x35cf2c,_0x15a81d,_0x27e0b4,_0x2835cd);}else{if(_0x5c6326['containsPosition'](_0x3a03f0['start'])){const _0x4c7266=this['_model']['createPositionAt'](_0x3a03f0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1d19f3,this['_model']['createRange'](_0x5c6326['start'],_0x4c7266));}else{const _0x5be084=this['_model']['createPositionAt'](_0x3a03f0['end']['parent'],'after');this['_setSuggestionRange'](_0x1d19f3,this['_model']['createRange'](_0x5be084,_0x5c6326['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x6e8b32){for(const {suggestion:_0xb9fda9,meta:_0x39396a}of this['_findSuggestions'](_0x6e8b32,'insertion')){if(!_0x39396a['isOwn'])continue;const _0x10f2b2=_0xb9fda9['getRanges']();for(const _0x1a2edf of _0x10f2b2)if(!_0x6e8b32['getDifference'](_0x1a2edf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4879a7){const _0x2af914=this['editor']['plugins']['get']('Users')['getUser'](_0x4879a7);if(!_0x2af914)throw new _0x368f48('track-changes-user-not-found',this);return _0x2af914;}['_getExternalAuthor'](_0x51cd9f){const _0x24e159=this['editor']['plugins']['get']('Users'),_0x26dfb3=_0x451b92('external:'+_0x51cd9f),_0x2af933=_0x24e159['getUser'](_0x26dfb3);return _0x2af933||_0x24e159['addUser']({'id':_0x26dfb3,'name':_0x51cd9f});}['_createSuggestion'](_0x59e1bb,_0x30b4b0,_0x648542,_0x4e0289,_0x25c5f4){const _0x291142=this['_getAuthorFromId'](_0x4e0289),_0x1c5f28=this['_suggestionFactory']['buildSuggestion'](_0x59e1bb,_0x30b4b0,_0x648542,_0x291142,_0x25c5f4,_0x1b06a3=>{this['_updateSuggestionData'](_0x648542,{'attributes':_0x1b06a3});const _0x4152c0=this['getSuggestion'](_0x648542);this['_joinWithAdjacentSuggestions'](new Set([_0x4152c0])),this['_refreshSuggestionsChain'](new Set([_0x4152c0]));});return this['listenTo'](_0x1c5f28,'accept',()=>{this['_updateSuggestionData'](_0x648542,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c5f28,'discard',()=>{this['_updateSuggestionData'](_0x648542,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x648542,_0x1c5f28),this['_suggestionState']['set'](_0x1c5f28,'notReady'),_0x1c5f28;}['_splitMarkerName'](_0x3bb117){const _0x35768f=_0x3bb117['split'](':');return{'group':_0x35768f[0x0],'type':_0x35768f[0x1],'subType':_0x35768f['length']>=0x5?_0x35768f[0x2]:null,'id':_0x35768f['length']<0x5?_0x35768f[0x2]:_0x35768f[0x3],'authorId':_0x35768f['length']<0x5?_0x35768f[0x3]:_0x35768f[0x4],'markerCount':0x6==_0x35768f['length']?_0x35768f[0x5]:null};}['_breakSuggestionMarker'](_0x4ac7f0,_0x5592f6,_0x29742f){const _0x5558a1=_0x4ac7f0['getFirstRange'](),_0x3a6427=_0x5558a1['start'],_0x4aa91d=_0x5558a1['end'];this['_setSuggestionRange'](_0x4ac7f0,this['_model']['createRange'](_0x3a6427,_0x5592f6));const _0x40affe=_0x3792e7(),_0x2de4ad=_0x4ac7f0['creator']['id'],_0x2be50c=_0x4ac7f0['type']+(_0x4ac7f0['subType']?':'+_0x4ac7f0['subType']:'');this['_setSuggestionData']({'id':_0x40affe,'type':_0x2be50c,'createdAt':new Date(),'authorId':_0x2de4ad,'originalSuggestionId':_0x4ac7f0['id'],'attributes':_0x4ac7f0['attributes'],'data':_0x4ac7f0['data']});const _0x220bcd=this['_getAttributeKey'](_0x4ac7f0);('formatBlock'==_0x4ac7f0['type']||_0x220bcd&&this['_isBlockAttribute'](_0x220bcd))&&(_0x29742f=this['_model']['createPositionBefore'](_0x29742f['parent'])),this['_addSuggestionMarker'](_0x2be50c,_0x40affe,_0x2de4ad,this['_model']['createRange'](_0x29742f,_0x4aa91d));}['_findSuggestions'](_0x3eae59,_0x2f6e38=null){const _0x2e3834=[],_0x1829d2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3eae59)||(_0x3eae59=[_0x3eae59]);for(const _0x147a6a of this['getSuggestions']()){if(!_0x147a6a['isInContent'])continue;if(_0x2f6e38&&_0x147a6a['type']!=_0x2f6e38)continue;let _0x491f56=!0x1;for(const _0x19afff of _0x147a6a['getRanges']()){for(const _0x1e6c0d of _0x3eae59){const _0x253a05=_0x1e6c0d['start']['isEqual'](_0x19afff['end'])||_0x1e6c0d['end']['isEqual'](_0x19afff['start']);if(_0x253a05||_0x1e6c0d['getIntersection'](_0x19afff)){const _0x40afb6=_0x1e6c0d['containsRange'](_0x19afff)&&Rt(this['_model']['schema'],_0x19afff['start'],_0x1e6c0d),_0x411ef0=_0x19afff['containsRange'](_0x1e6c0d)&&Rt(this['_model']['schema'],_0x1e6c0d['start'],_0x19afff);_0x2e3834['push']({'suggestion':_0x147a6a,'meta':{'isOwn':_0x1829d2==_0x147a6a['author'],'isNextTo':_0x253a05,'isInsideObject':_0x40afb6,'containsRangeInObject':_0x411ef0}}),_0x491f56=!0x0;break;}}if(_0x491f56)break;}}return _0x2e3834;}['_addSuggestionMarker'](_0x42f44b,_0x471d1c,_0x360ab7,_0x5a731a,_0x103bf7){this['_model']['change'](_0x578798=>{let _0x568147='suggestion:'+_0x42f44b+':'+_0x471d1c+':'+_0x360ab7;_0x103bf7&&(_0x568147=_0x568147+':'+_0x103bf7),_0x578798['addMarker'](_0x568147,{'range':_0x5a731a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x188775){const _0x12ac91=_0x188775['previous'],_0x16568c=_0x188775['next'];_0x188775['previous']=null,_0x188775['next']=null,null!=_0x12ac91&&_0x12ac91['next']==_0x188775&&(_0x12ac91['next']=_0x16568c),null!=_0x16568c&&_0x16568c['previous']==_0x188775&&(_0x16568c['previous']=_0x12ac91),'ready'==this['_suggestionState']['get'](_0x188775)&&(this['_suggestionState']['set'](_0x188775,'removed'),this['fire']('suggestionUnloaded',_0x188775,_0x12ac91,_0x16568c));}['_setSuggestionData'](_0x57171f){const _0x463801=_0x57171f['id'],_0x15756a=this['addSuggestionData'](_0x57171f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xc9be8e=this['editor']['plugins']['get']('PendingActions'),_0x469aa3=_0x15756a['hasComments'],_0x2e1082=_0x15756a['subType']?_0x15756a['type']+':'+_0x15756a['subType']:_0x15756a['type'],_0x319d1e=this['editor']['locale'],_0x4d3886=_0xc9be8e['add'](o(_0x319d1e,'PENDING_ACTION_SUGGESTION')),_0x5d9385={'id':_0x463801,'type':_0x2e1082,'hasComments':_0x469aa3,'data':_0x57171f['data']||null,'originalSuggestionId':_0x57171f['originalSuggestionId']||null,'attributes':_0x15756a['attributes']};this['_adapter']['addSuggestion'](_0x5d9385)['then'](_0x4cb427=>{_0x15756a['_saved']=!0x0,_0xc9be8e['remove'](_0x4d3886),_0x4cb427&&_0x4cb427['createdAt']&&(this['_suggestions']['get'](_0x463801)['createdAt']=_0x4cb427['createdAt']);})['catch'](_0x246217=>{throw _0xb90762('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x15756a['discard']();}),_0x15756a['stopListening'](),this['_suggestions']['delete'](_0x15756a['id']),this['_suggestionState']['delete'](_0x15756a),_0x246217;});}return _0x15756a;}['_isBlockAttribute'](_0x3f609b){return this['_blockAttributeKeys']['has'](_0x3f609b);}['_updateSuggestionData'](_0x252e7c,_0x54d9e4){const _0x351c03=this['editor']['plugins']['get']('PendingActions'),_0x23eb5b=this['getSuggestion'](_0x252e7c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x23eb5b['_saved']){const _0x2db0dd=_0x351c03['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x252e7c,_0x54d9e4)['then'](()=>{_0x351c03['remove'](_0x2db0dd);});}else _0x23eb5b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x252e7c,_0x54d9e4);});}}['_getSuggestionData'](_0x16d1c9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x368f48('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x16d1c9);}['_handleNewSuggestionMarker'](_0x19cb42){const {id:_0x42b587,type:_0x16f1d2,subType:_0xa3f4fe,authorId:_0x2f8400}=this['_splitMarkerName'](_0x19cb42),_0x470e0c=this['_suggestions']['get'](_0x42b587)||this['_createSuggestion'](_0x16f1d2,_0xa3f4fe,_0x42b587,_0x2f8400,{});switch(this['_checkSuggestionCorrectness'](_0x470e0c,_0x16f1d2,_0xa3f4fe,_0x2f8400),this['_suggestionState']['get'](_0x470e0c)){case'notReady':this['_getSuggestionData'](_0x42b587)['then'](_0x5096b6=>{let _0x593cb3=Promise['resolve']();_0x5096b6['hasComments']&&(_0x593cb3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x42b587})),_0x593cb3['then'](()=>{this['addSuggestionData'](_0x5096b6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x470e0c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x42b587,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x470e0c,'ready'),this['fire']('suggestionLoaded',_0x470e0c);break;case'ready':this['fire']('suggestionChanged',_0x470e0c);}return _0x470e0c['addMarkerName'](_0x19cb42),_0x470e0c;}['_refreshSuggestionsChain'](_0x3fca59){const _0x2db96a=Array['from'](_0x3fca59),_0x490025=_0x2db96a['filter'](_0x2c8e5a=>'attribute'==_0x2c8e5a['type']);this['_refreshAttributeSuggestionsChain'](_0x490025);const _0x27fec6=_0x2db96a['filter'](_0x3b1aa4=>!_0x3b1aa4['isMultiRange']&&'attribute'!=_0x3b1aa4['type']),_0x1abe2a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30feba=>!_0x30feba['isMultiRange']&&'attribute'!=_0x30feba['type']),_0x482480=_0x1abe2a['filter'](_0x3ade40=>!_0x3fca59['has'](_0x3ade40)),_0x58fc42=new Map(_0x1abe2a['map'](_0x3da23a=>[_0x3da23a,this['_suggestionFactory']['getSuggestionCallback'](_0x3da23a['type'],_0x3da23a['subType'],'chain')])),_0x519824=new Map(_0x1abe2a['map'](_0x29ffed=>[_0x29ffed,_0x29ffed['getFirstRange']()])),_0x150cd0=new Set(),_0x6c9d3f=new Set();for(let _0x2e8c08=0x0;_0x2e8c08<_0x27fec6['length'];_0x2e8c08++)_0x15ac26(_0x27fec6[_0x2e8c08],_0x27fec6,_0x2e8c08+0x1);for(let _0x1bbf44=0x0;_0x1bbf44<_0x27fec6['length'];_0x1bbf44++)_0x15ac26(_0x27fec6[_0x1bbf44],_0x482480,0x0);const _0xd1cdb=new Set();for(let _0x2e9072=0x0;_0x2e9072<_0x27fec6['length'];_0x2e9072++){const _0x550c52=_0x27fec6[_0x2e9072];!_0x6c9d3f['has'](_0x550c52)&&_0x550c52['previous']&&(_0xd1cdb['add'](_0x550c52['previous']),_0x550c52['previous']['next']===_0x550c52&&(_0x550c52['previous']['next']=null),_0x550c52['previous']=null),!_0x150cd0['has'](_0x550c52)&&_0x550c52['next']&&(_0xd1cdb['add'](_0x550c52['next']),_0x550c52['next']['previous']===_0x550c52&&(_0x550c52['next']['previous']=null),_0x550c52['next']=null);}function _0x15ac26(_0x1413e7,_0x66061b,_0x320519){for(let _0xe71cb9=_0x320519;_0xe71cb9<_0x66061b['length'];_0xe71cb9++){const _0x1d9ab8=_0x391e6d(_0x1413e7,_0x66061b[_0xe71cb9]);_0x1d9ab8&&(_0x1d9ab8[0x0]['next']=_0x1d9ab8[0x1],_0x1d9ab8[0x1]['previous']=_0x1d9ab8[0x0],_0x150cd0['add'](_0x1d9ab8[0x0]),_0x6c9d3f['add'](_0x1d9ab8[0x1]));}}function _0x391e6d(_0x45de05,_0x5b6eb0){if(_0x45de05['author']['id']!==_0x5b6eb0['author']['id'])return null;const _0x5965de=_0x58fc42['get'](_0x45de05)(_0x45de05,_0x5b6eb0,_0x519824['get'](_0x45de05),_0x519824['get'](_0x5b6eb0));if(!_0x5965de)return null;return _0x58fc42['get'](_0x5b6eb0)(_0x45de05,_0x5b6eb0,_0x519824['get'](_0x45de05),_0x519824['get'](_0x5b6eb0))?_0x5965de[0x1]['commentThread']&&_0x5965de[0x1]['commentThread']['length']?null:_0x5965de:null;}_0xd1cdb['size']&&this['_refreshSuggestionsChain'](_0xd1cdb);}['_refreshAttributeSuggestionsChain'](_0x2b52f3){if(0x0==_0x2b52f3['length'])return;const _0x198cff=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x138f4c=>'attribute'==_0x138f4c['type']&&_0x138f4c['_isDataLoaded']),_0x5ba89f=[],_0x21e4f9=new Map();for(const _0x4004f1 of _0x198cff){const _0x2fbb94=_0x451b92(_0x4004f1['attributes']);_0x21e4f9['has'](_0x2fbb94)||(_0x21e4f9['set'](_0x2fbb94,_0x5ba89f['length']),_0x5ba89f['push']([]));const _0x2eb9d2=_0x21e4f9['get'](_0x2fbb94);_0x5ba89f[_0x2eb9d2]['push'](_0x4004f1);}!(function(){_0x5ba89f['sort']((_0x3245d6,_0xa9d724)=>{const _0x1325af=_0x3245d6[0x0]['createdAt'],_0x273deb=_0xa9d724[0x0]['createdAt'];return _0x1325af==_0x273deb?_0x3245d6[0x0]['attributes']['groupId']<_0xa9d724[0x0]['attributes']['groupId']?-0x1:0x1:_0x1325af<_0x273deb?-0x1:0x1;});for(const _0x532d4d of _0x5ba89f)_0x532d4d['sort']((_0x450e2c,_0x20c36a)=>_0x450e2c['id']<_0x20c36a['id']?-0x1:0x1);}());for(let _0x211a53=0x0;_0x211a53<_0x5ba89f['length'];_0x211a53++){if(0x0==_0x5ba89f[_0x211a53]['length'])continue;const _0x2c7bab=[];for(let _0x4f3cbd=_0x211a53+0x1;_0x4f3cbd<_0x5ba89f['length'];_0x4f3cbd++)0x0!=_0x5ba89f[_0x4f3cbd]['length']&&_0x3b0717(_0x5ba89f[_0x211a53],_0x5ba89f[_0x4f3cbd])&&_0x2c7bab['push'](_0x4f3cbd);for(const _0x1ba105 of _0x2c7bab)_0x5ba89f[_0x211a53]=_0x5ba89f[_0x211a53]['concat'](_0x5ba89f[_0x1ba105]),_0x5ba89f[_0x1ba105]=[];}for(const _0x25e067 of _0x5ba89f)for(let _0x18a8f6=0x0;_0x18a8f6<_0x25e067['length'];_0x18a8f6++)_0x25e067[_0x18a8f6]['next']=_0x25e067[_0x18a8f6+0x1]||null;for(const _0x2ce70b of _0x5ba89f)for(let _0x1d9a23=0x0;_0x1d9a23<_0x2ce70b['length'];_0x1d9a23++)_0x2ce70b[_0x1d9a23]['previous']=_0x2ce70b[_0x1d9a23-0x1]||null;function _0x3b0717(_0x209f1f,_0x22e60f){if(_0x209f1f[0x0]['attributes']['groupId']!==_0x22e60f[0x0]['attributes']['groupId']&&_0x209f1f[0x0]['author']!==_0x22e60f[0x0]['author'])return!0x1;if(!function(_0x2acaef,_0x57a091){if(!_0x2acaef['hasComments']&&!_0x57a091['hasComments'])return!0x0;if(_0x2acaef['hasComments']&&_0x57a091['hasComments'])return!0x1;if(_0x2acaef['hasComments']&&_0x57a091['createdAt']<_0x2acaef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x57a091['hasComments']&&_0x2acaef['createdAt']<_0x57a091['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x209f1f[0x0],_0x22e60f[0x0]))return!0x1;const _0xf6a9c0=Bt(_0x209f1f[0x0]['attributes'],'groupId'),_0x5bc7ef=Bt(_0x22e60f[0x0]['attributes'],'groupId');if(!_0x2de290(_0xf6a9c0,_0x5bc7ef))return!0x1;return!!_0x209f1f['every'](_0x26471a=>_0x22e60f['some'](_0x17cb87=>_0x26471a['getFirstRange']()['isEqual'](_0x17cb87['getFirstRange']())))&&_0x22e60f['every'](_0x20b710=>_0x209f1f['some'](_0x438568=>_0x20b710['getFirstRange']()['isEqual'](_0x438568['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x211423){const _0x504771=Array['from'](_0x211423),_0x2eb3bc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x8493c4=_0x2eb3bc['filter'](_0x2c70a2=>!_0x211423['has'](_0x2c70a2)),_0x55d670=new Map(_0x504771['map'](_0x3ba4c3=>[_0x3ba4c3,this['_suggestionFactory']['getSuggestionCallback'](_0x3ba4c3['type'],_0x3ba4c3['subType'],'join')])),_0x12b9c1=new Map(_0x2eb3bc['map'](_0x486cbc=>[_0x486cbc,_0x486cbc['getRanges']()]));for(let _0x1bdc10=0x0;_0x1bdc10<_0x504771['length'];_0x1bdc10++){if(_0x2fa805(this,_0x504771[_0x1bdc10],_0x504771,_0x1bdc10+0x1))return!0x0;}for(let _0x4c98a1=0x0;_0x4c98a1<_0x504771['length'];_0x4c98a1++){if(_0x2fa805(this,_0x504771[_0x4c98a1],_0x8493c4,0x0))return!0x0;}return!0x1;function _0x2fa805(_0x3aa10b,_0x11d001,_0x3984ba,_0x53c49c){for(let _0x3f044f=_0x53c49c;_0x3f044f<_0x3984ba['length'];_0x3f044f++){const _0x41c7f1=_0x3984ba[_0x3f044f];if(_0x41c7f1['type']!==_0x11d001['type']||_0x41c7f1['author']['id']!==_0x11d001['author']['id']||_0x41c7f1['subType']!==_0x11d001['subType'])continue;if(!Pt(_0x11d001,_0x41c7f1,['groupId']))continue;if('attribute'==_0x11d001['type']&&_0x11d001['data']['oldValue']!=_0x41c7f1['data']['oldValue'])continue;if('attribute'==_0x11d001['type']&&_0x3aa10b['_isBlockAttribute'](_0x11d001['data']['key']))continue;if('formatBlock'==_0x11d001['type']){const _0x5d2fa3=_0x3aa10b['editor']['model'],_0x3b2fe8=_0x11d001['getContainedElement']();if(_0x3b2fe8&&(_0x5d2fa3['schema']['isObject'](_0x3b2fe8)||_0x5d2fa3['schema']['isLimit'](_0x3b2fe8)))continue;}const _0x161ecf=_0x55d670['get'](_0x11d001),_0x4ce4f7=_0x12b9c1['get'](_0x11d001),_0xf10fbe=_0x12b9c1['get'](_0x41c7f1),_0x578160=_0x11d001['commentThread']&&_0x11d001['commentThread']['length'],_0x494ab3=_0x41c7f1['commentThread']&&_0x41c7f1['commentThread']['length'];if(!_0x578160&&_0x161ecf(_0xf10fbe,_0x4ce4f7))return _0x3aa10b['_joinSuggestions'](_0x41c7f1,_0x11d001),_0x12b9c1['delete'](_0x11d001),!0x0;if(!_0x494ab3&&_0x161ecf(_0x4ce4f7,_0xf10fbe))return _0x3aa10b['_joinSuggestions'](_0x11d001,_0x41c7f1),_0x12b9c1['delete'](_0x41c7f1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2e91bc,_0x51f9fb){if(_0x2e91bc['isMultiRange']){for(const _0x2aa121 of _0x51f9fb['getRanges']())_0x2e91bc['addRange'](_0x2aa121);}else{const _0x5a4691=_0x51f9fb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2e91bc,this['_model']['createRange'](_0x2e91bc['getFirstRange']()['start'],_0x5a4691));}_0x51f9fb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4f27bf,_0x2c9648){const _0x1d6ccd=_0x4f27bf['startsWith']('format')||_0x4f27bf['startsWith']('attribute')?'FORMATTING':_0x4f27bf['toUpperCase']();return o(this['editor']['locale'],_0x2c9648+'_'+_0x1d6ccd+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5eedba=this['editor'];if(!_0x5eedba['ui'])return;const {ariaLiveAnnouncer:_0x46492c}=_0x5eedba['ui'];_0x31d5e2(this['_model'],({left:_0x4cbcf6,entered:_0x4f50ad})=>{for(const _0x3400a of _0x4cbcf6){const {group:_0x584fb6,type:_0x4976ad}=this['_splitMarkerName'](_0x3400a['name']);if('suggestion'===_0x584fb6){_0x46492c['announce'](this['_getMarkerAnnouncementText'](_0x4976ad,'LEAVE'));break;}}for(const _0x8ca338 of _0x4f50ad){const {group:_0x4ba7a3,type:_0x18cb0b}=this['_splitMarkerName'](_0x8ca338['name']);if('suggestion'===_0x4ba7a3){_0x46492c['announce'](this['_getMarkerAnnouncementText'](_0x18cb0b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x306997){if(this['_recordAttributeSuggestions'])return!0x1;const _0x48c718=this['editor'],_0x1845bb=_0x48c718['model']['document']['differ']['getChanges']();if(0x0==_0x1845bb['length'])return!0x1;const _0x972914=[],_0x201314=_0x1845bb['filter'](_0x3cddab=>'attribute'==_0x3cddab['type']),_0x30d373=_0x1845bb['filter'](_0x4cdd1a=>'insert'==_0x4cdd1a['type']&&'$text'!=_0x4cdd1a['name']),_0x1e19f6=_0x1845bb['filter'](_0x3d425b=>'remove'==_0x3d425b['type']&&'$text'!=_0x3d425b['name']);for(const _0x25b980 of _0x201314)_0x972914['push']({'key':_0x25b980['attributeKey'],'newValue':_0x25b980['attributeNewValue'],'oldValue':_0x25b980['attributeOldValue'],'range':Ot(_0x25b980['range'],_0x48c718['model'])});for(const _0x25623e of _0x30d373){const _0x1f2254=_0x1e19f6['find'](_0x2c3424=>_0x2c3424['position']['isEqual'](_0x25623e['position']));_0x1f2254&&_0x972914['push']({'key':m,'newValue':_0x25623e['name'],'oldValue':_0x1f2254['name'],'range':_0x48c718['model']['createRangeOn'](_0x25623e['position']['nodeAfter'])});}return 0x0!=_0x972914['length']&&this['_reduceExistingSuggestions'](_0x306997,_0x972914);}['_processAttributeSuggestions'](_0x57ff9e){let _0x21c0f4=!0x1;const _0x517c06=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59f909=>_0x59f909['data']['newRange']&&_0x59f909['name']['startsWith']('suggestion:attribute:'));for(const _0x2e4127 of _0x517c06){const {subType:_0x74c27b,id:_0x9ea2b5}=this['_splitMarkerName'](_0x2e4127['name']),_0x3fb8ba=_0x74c27b['split']('|')[0x0];for(const _0x45a669 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x45a669['id']!=_0x9ea2b5&&'attribute'==_0x45a669['type']&&_0x45a669['data']&&_0x45a669['data']['key']==_0x3fb8ba&&_0x45a669['getFirstRange']()['isIntersecting'](_0x2e4127['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x45a669,_0x2e4127['data']['newRange'],_0x57ff9e),_0x21c0f4=!0x0);}return _0x21c0f4;}['_recordAttributeChanges'](_0x4a4d5b){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4a4d5b();}['_isRegisteredAttribute'](_0x58c78c){const _0x587dc5=this['_isBlockAttribute'](_0x58c78c),_0x2a89ae=this['_inlineAttributeKeys']['has'](_0x58c78c);return _0x587dc5||_0x2a89ae;}['_reduceExistingSuggestions'](_0x471d62,_0x265713){if(0x0==_0x265713['length'])return!0x1;let _0x213f11=!0x1;for(const _0x5afb2e of _0x265713){const _0x15e53f=this['_findSuggestions'](_0x5afb2e['range'],'attribute')['filter'](_0xd99a89=>!_0xd99a89['meta']['isNextTo'])['map'](_0x5180c6=>_0x5180c6['suggestion']),_0x32e522=_0x451b92({'newValue':_0x5afb2e['newValue']});_0x15e53f['filter'](_0xcd09ac=>{const [_0x315e96,_0x48acaf]=_0xcd09ac['subType']['split']('|');return _0x315e96==_0x5afb2e['key']&&_0x48acaf!=_0x32e522;})['forEach'](_0x41eb40=>{this['_reduceSuggestionAttributeRange'](_0x41eb40,_0x5afb2e['range'],_0x471d62),_0x213f11=!0x0;});}return _0x213f11;}['_reduceSuggestionAttributeRange'](_0x4746ac,_0x230687,_0x299556){const _0x4d90ec=_0x4746ac['getFirstRange']()['getDifference'](_0x230687);0x0!==_0x4d90ec['length']?0x1!==_0x4d90ec['length']?this['_breakSuggestionMarker'](_0x4746ac,_0x230687['start'],_0x230687['end']):this['_setSuggestionRange'](_0x4746ac,_0x4d90ec[0x0]):_0x299556['removeMarker'](_0x4746ac['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3e5148){this['_editor']=_0x3e5148,this['_model']=_0x3e5148['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x44818b,_0xe4369c,_0x5ec87a,_0x25f3fe,_0x37bda9,_0x432550){return new u(this['_model'],{'type':_0x44818b,'subType':_0xe4369c,'id':_0x5ec87a,'author':_0x25f3fe,'creator':_0x25f3fe,'attributes':_0x37bda9,'onAttributesChange':_0x432550,'onAccept':(..._0x141383)=>this['getSuggestionCallback'](_0x44818b,_0xe4369c,'accept')(..._0x141383),'onDiscard':(..._0x227c8a)=>this['getSuggestionCallback'](_0x44818b,_0xe4369c,'discard')(..._0x227c8a)});}['registerCustomCallback'](_0x4e8311,_0x2862f8,_0x1fde9d,_0x1a601a){const _0x241871=_0x4e8311+':'+_0x2862f8+':'+_0x1fde9d;this['_customCallbacks']['set'](_0x241871,_0x1a601a);}['getSuggestionCallback'](_0x4e17b3,_0x1b4697,_0x412bc6){const _0x3a5df9=_0x4e17b3+':'+_0x1b4697+':'+_0x412bc6;return this['_customCallbacks']['get'](_0x3a5df9)||this['_defaultCallbacks']['get'](_0x4e17b3+':'+_0x412bc6);}['_registerDefaultCallbacks'](){const _0x132043=()=>!0x1,_0x91ea9e=_0x58c31f=>{_0x58c31f['sort']((_0x238bc9,_0x2a9309)=>_0x238bc9['start']['isBefore'](_0x2a9309['start'])?0x1:-0x1),this['_model']['change'](_0x441a11=>{for(const _0x1eb015 of _0x58c31f){let _0x4b734e;_0x4b734e=_0x1eb015['end']['isAtEnd']&&_0x1eb015['end']['parent']==_0x1eb015['start']['nodeAfter']?_0x441a11['createSelection'](_0x1eb015['start']['nodeAfter'],'on'):_0x441a11['createSelection'](_0x1eb015),this['_model']['deleteContent'](_0x4b734e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3f84b2=(_0x2372f3,_0x145b90)=>{_0x145b90&&this['_model']['change'](_0x5cd25f=>{const {commandName:_0x1c9d4d,commandParams:_0x4b25ac=[]}=_0x145b90,_0x3a8465=_0x2372f3['map'](_0x1769d3=>(Tt(_0x1769d3)&&(_0x1769d3=this['_model']['createRange'](_0x1769d3['end'])),_0x1769d3))['filter'](_0x3bfa20=>'$graveyard'!==_0x3bfa20['root']['rootName']);if(_0x3a8465['length']<0x1)return;const _0x462898=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34c316=>_0x39eeea['fromRange'](_0x34c316));_0x5cd25f['setSelection'](_0x3a8465);for(const _0x18255e of this['_editor']['commands']['commands']())_0x18255e['refresh']();_0x4b25ac['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c9d4d,..._0x4b25ac);const _0x12a7e3=_0x462898['filter'](_0x12c980=>'$graveyard'!=_0x12c980['root']['rootName']);_0x12a7e3['length']>0x0&&_0x5cd25f['setSelection'](_0x12a7e3);for(const _0x5a64bf of _0x462898)_0x5a64bf['detach']();});},_0x4ff058=(_0x39116b,_0x445319)=>0x1==_0x39116b['length']&&0x1==_0x445319['length']&&_0x39116b[0x0]['end']['isEqual'](_0x445319[0x0]['start']),_0x1cc46b=(_0x284064,_0x4a093a,_0x536f97,_0x1e8f56)=>Ft(_0x284064,_0x4a093a,_0x536f97,_0x1e8f56,this['_model'])?[_0x284064,_0x4a093a]:Ft(_0x4a093a,_0x284064,_0x1e8f56,_0x536f97,this['_model'])?[_0x4a093a,_0x284064]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x132043),this['_defaultCallbacks']['set']('insertion:discard',_0x91ea9e),this['_defaultCallbacks']['set']('insertion:join',_0x4ff058),this['_defaultCallbacks']['set']('insertion:chain',_0x1cc46b),this['_defaultCallbacks']['set']('deletion:accept',_0x91ea9e),this['_defaultCallbacks']['set']('deletion:discard',_0x132043),this['_defaultCallbacks']['set']('deletion:join',_0x4ff058),this['_defaultCallbacks']['set']('deletion:chain',_0x1cc46b),this['_defaultCallbacks']['set']('formatInline:accept',_0x3f84b2),this['_defaultCallbacks']['set']('formatInline:discard',_0x132043),this['_defaultCallbacks']['set']('formatInline:join',_0x4ff058),this['_defaultCallbacks']['set']('formatInline:chain',_0x132043),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3f84b2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x132043),this['_defaultCallbacks']['set']('formatBlock:join',_0x4ff058),this['_defaultCallbacks']['set']('formatBlock:chain',_0x132043),this['_defaultCallbacks']['set']('attribute:accept',_0x132043),this['_defaultCallbacks']['set']('attribute:discard',(_0x37e20f,_0x369f61)=>{if(!_0x369f61)return;const _0xb23f96=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1cce3c=>{if(_0x369f61['key']==m)for(const _0x5223ab of _0x37e20f){const _0x466be8=_0x5223ab['start']['nodeAfter'],_0x223de0=_0x369f61['oldValue'];_0x1cce3c['rename'](_0x466be8,_0x223de0);}else{if(_0xb23f96['_isBlockAttribute'](_0x369f61['key'])){for(const _0x2481ed of _0x37e20f)void 0x0!==_0x369f61['oldValue']?_0x1cce3c['setAttribute'](_0x369f61['key'],_0x369f61['oldValue'],_0x2481ed['start']['nodeAfter']):_0x1cce3c['removeAttribute'](_0x369f61['key'],_0x2481ed['start']['nodeAfter']);}else{for(const _0xa01f2e of _0x37e20f)_0x369f61['oldValue']?_0x1cce3c['setAttribute'](_0x369f61['key'],_0x369f61['oldValue'],_0xa01f2e):_0x1cce3c['removeAttribute'](_0x369f61['key'],_0xa01f2e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4ff058);}}function Rt(_0x1d4c1c,_0x4e66d8,_0x12b906){for(const _0xd34cfe of _0x4e66d8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xd34cfe['root']==_0xd34cfe)return!0x1;if(!_0x12b906['containsItem'](_0xd34cfe))return!0x1;if(_0x1d4c1c['isObject'](_0xd34cfe)||_0x1d4c1c['isLimit'](_0xd34cfe))return!0x0;}return!0x1;}function Tt(_0x2051cf){return _0x2051cf['end']['parent']==_0x2051cf['start']['nodeAfter']&&_0x2051cf['end']['isAtStart'];}function Et(_0x1c488e,_0x1ad4de,_0xff128f,_0xc3656b){const _0xb22717=_0x880de2=>!_0x880de2['item']['is']('$textProxy')&&!_0xc3656b['isObject'](_0x880de2['item']),_0x33cb92=_0x1c488e['start']['getLastMatchingPosition'](_0xb22717),_0x40e381=_0x1c488e['end']['getLastMatchingPosition'](_0xb22717,{'direction':'backward'});return(!_0x1c488e['start']['isEqual'](_0x33cb92)||!_0x1c488e['end']['isEqual'](_0x40e381))&&(_0x33cb92['isBefore'](_0x40e381)?_0xff128f['updateMarker'](_0x1ad4de,{'range':_0xff128f['createRange'](_0x33cb92,_0x40e381)}):_0xff128f['removeMarker'](_0x1ad4de),!0x0);}function Vt(_0x226d1d){return _0x451b92(_0x226d1d);}function Ut(_0x30a21d){const _0x3ae9e6=_0x30a21d['start']['nodeAfter'];return _0x3ae9e6&&_0x3ae9e6['is']('element');}function Ot(_0x57de14,_0x38b43f){return null==_0x57de14['end']['nodeBefore']&&_0x57de14['end']['parent']==_0x57de14['start']['nodeAfter']?Gt(_0x57de14['start']['nodeAfter'],_0x38b43f):_0x57de14;}function Gt(_0x3b4558,_0x495216){const _0x429bfe=_0x495216['schema']['isObject'](_0x3b4558)||_0x495216['schema']['isSelectable'](_0x3b4558);return _0x495216['createRange'](_0x495216['createPositionAt'](_0x3b4558,'before'),_0x429bfe?_0x495216['createPositionAfter'](_0x3b4558):_0x495216['createPositionAt'](_0x3b4558,'end'));}function Ft(_0x2eed8b,_0x5ae7b7,_0x41e578,_0x633b7d,_0x168a3c){if(!Pt(_0x2eed8b,_0x5ae7b7))return!0x1;if(_0x41e578['end']['isEqual'](_0x633b7d['start']))return!0x0;if(_0x2eed8b['type']!=_0x5ae7b7['type'])return!0x1;if(!_0x41e578['end']['isTouching'](_0x633b7d['start']))return!0x1;const _0x4ad399=_0x168a3c['createRange'](_0x41e578['end'],_0x633b7d['start'])['getWalker']();for(const _0x2ac085 of _0x4ad399)if(['elementStart','elementEnd']['includes'](_0x2ac085['type'])&&_0x168a3c['schema']['isLimit'](_0x2ac085['item']))return!0x1;return!0x0;}function Pt(_0x4bb472,_0xdada8c,_0x30f298=[]){return!(!_0x4bb472['_isDataLoaded']||!_0xdada8c['_isDataLoaded'])&&_0x2de290(Bt(_0x4bb472['attributes'],_0x30f298),Bt(_0xdada8c['attributes'],_0x30f298));}function Lt(_0x56e933,_0x368943){const _0x2fd884=Ht(_0x56e933['attributes']),_0x29dd4a=Ht(_0x368943);if(!_0x56e933['_isDataLoaded'])return!0x1;for(const _0x42fdd3 of Object['keys'](_0x29dd4a))if(!_0x2de290(_0x2fd884[_0x42fdd3],_0x29dd4a[_0x42fdd3]))return!0x1;return!0x0;}function Ht(_0x1cb335){const _0x19192f=Object['assign']({},_0x1cb335);return delete _0x19192f['skipNestingCheck'],delete _0x19192f['tablePasteChainId'],_0x19192f;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x58e1c3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4c9dc3,_0x20ec56,_0x55966d,_0x36f218){super(),this['model']=_0x20ec56,this['view']=_0x55966d,this['commentThreadController']=_0x36f218,this['_editor']=_0x4c9dc3,this['_acceptCommand']=_0x4c9dc3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4c9dc3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2de589,_0x1fe75d)=>_0x2de589||_0x1fe75d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3abc6c=>_0x3abc6c&&this['_editor']['model']['canEditAt'](_0x20ec56['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x6e06cb=>_0x6e06cb&&this['_editor']['model']['canEditAt'](_0x20ec56['getRanges']())),this['_pendingAction']=null,_0x55966d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x55966d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x55966d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x55966d,'change:isDirty',()=>{_0x55966d['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x5108bb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5108bb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xe59a68{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x30d2ca,_0x35cfd2,_0x4b1a1f,_0x4fc502){super(_0x30d2ca),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x35cfd2['authoredAt']),this['bind']('authoredAt')['to'](_0x35cfd2),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x35cfd2,this['_localUser']=_0x4b1a1f,this['_config']=_0x4fc502,_0x4fc502['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x459abc}=this['_config'];this['commentsListView']=new _0x459abc(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x35074e=>_0x35074e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x36aeec,_0x2b85f7)=>_0x36aeec||!!_0x2b85f7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5a28f2}=this['_config'],_0x4d73f3=new _0x5a28f2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x21a31b=_0x4d73f3['commentInputView'];return _0x4d73f3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x21a31b,'value',(_0x44698b,_0x54c650,_0x54ab18)=>!!_0x54ab18||_0x44698b&&!_0x54c650),_0x21a31b['on']('submit',(_0x45f90e,_0x41a519)=>{this['fire']('addComment',_0x41a519),_0x21a31b['editor']['setData']('');}),_0x21a31b['on']('cancel',()=>this['focus']()),_0x21a31b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4d73f3;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5a9f97,_0x4cc560,_0x15a0a8,_0x521291){super(_0x5a9f97,_0x4cc560,_0x15a0a8,_0x521291),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x488e0d=>_0x488e0d&&_0x488e0d[0x0]?_0x488e0d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2ca80d,_0x348f26)=>{let _0x542afd='';for(const _0x260ba9 of _0x2ca80d)_0x542afd+='<p>'+ds(_0x260ba9['content'],_0x260ba9['color'])+'</p>';return _0x348f26?_0x542afd:_0x311db1(_0x542afd,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5a9f97,'Accept\x20suggestion'),_0x238c1b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5a9f97,'Discard\x20suggestion'),_0x238c1b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3b7106(_0x5a9f97,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x25288b=this['bindTemplate'],_0x23800c=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x25288b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x25288b['to']('authoredAt',_0x4f5ed2=>this['_config']['formatDateTime'](_0x4f5ed2))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x23800c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x536190={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x25288b['if']('isActive','ck-suggestion-wrapper--active'),_0x25288b['to']('type',_0x44132b=>'ck-suggestion-'+_0x44132b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x23800c}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x536190['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x536190;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x15323a,_0x6a4bb7,_0x35802c)=>{this['_descriptionElement']['innerHTML']=_0x35802c;});}['_createButton'](_0x53ad00,_0x3800bd,_0x18c12d,_0x50ca3d,_0x659614){const _0x4caf09=new _0x435cf8(this['locale']);return _0x4caf09['set']({'label':_0x53ad00,'icon':_0x3800bd,'tooltip':!0x0,'tooltipPosition':_0x659614}),_0x4caf09['extendTemplate']({'attributes':{'class':_0x18c12d}}),_0x4caf09['on']('execute',()=>{this['fire'](_0x50ca3d,this['_model']['id']);}),_0x4caf09;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x11c0f1,_0x520327){let _0x565ade='';return _0x565ade+=_0x11c0f1['split']('*')['map']((_0xfe028e,_0xc2c4a0)=>_0xc2c4a0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xfe028e)+'</span>':us(_0xfe028e))['join'](''),_0x520327&&(_0x565ade+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x520327['value']+'\x22\x20title=\x22'+_0x520327['title']+'\x22></span>'),_0x565ade;}function us(_0x405797){const _0x3e7d56=document['createElement']('span');return _0x3e7d56['innerText']=_0x405797,_0x3e7d56['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x52cd9d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5187f3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x570e96){super(_0x570e96),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x46017e=this['editor']['config'];_0x46017e['define']('trackChanges.SuggestionThreadView',ne),_0x46017e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x46017e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5d241e,_0x1c7afd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5dfd9c,_0x5d8cde]of this['_handleControllerBuffer']){const _0x2b2310=this['_suggestionToController']['has'](_0x5dfd9c);_0x2b2310||_0x5d8cde?_0x2b2310&&_0x5d8cde&&this['_destroyController'](_0x5dfd9c):this['_initializeController'](_0x5dfd9c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5d241e,_0x1c7afd);}['init'](){const _0x30cad8=this['editor'],_0x4ed992=_0x30cad8['plugins']['get']('TrackChangesEditing'),_0x20d8fc=_0x30cad8['plugins']['get']('Annotations'),_0x1b8d31=_0x30cad8['plugins']['get']('EditorAnnotations'),_0x2ce5a6=_0x30cad8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1b8d31['addSourceCollector'](()=>{const _0x1a1221=[];for(const [_0x5334cd,_0xb30961]of Array['from'](this['_suggestionToController'])){const _0x512f00=_0x5334cd['getAllAdjacentSuggestions'](),_0x183048=[];for(const _0x1f287a of _0x512f00){if(!_0x1f287a['isInContent'])continue;if(_0x1f287a['isMultiRange']){_0x183048['push'](..._0x1f287a['getRanges']());continue;}const _0xfcce38=_0x1f287a['getFirstRange']();if(_0x183048['length']>0x0){const _0x42146a=_0x183048[0x0]['getJoined'](_0xfcce38);if(_0x42146a){_0x183048[0x0]=_0x42146a;continue;}}_0x183048['push'](_0xfcce38);}_0x1a1221['push']([_0xb30961['view'],_0x183048]);}return _0x1a1221;}),this['listenTo'](_0x4ed992,'suggestionLoaded',(_0x1b9623,_0x2a6eb0)=>{this['listenTo'](_0x2a6eb0,'change:previous',(_0x4e97a5,_0x5c20f1,_0x3070c4,_0x35a09b)=>{_0x2a6eb0['isInContent']&&(null==_0x3070c4?(this['_updateController'](_0x35a09b['head']),this['_handleSuggestionControllerDelayed'](_0x2a6eb0,!0x1)):(this['_updateController'](_0x3070c4['head']),null==_0x35a09b&&this['_handleSuggestionControllerDelayed'](_0x2a6eb0,!0x0)));}),null!==_0x2a6eb0['previous']?this['_updateController'](_0x2a6eb0['head']):this['_handleSuggestionControllerDelayed'](_0x2a6eb0,!0x1);}),this['listenTo'](_0x4ed992,'suggestionUnloaded',(_0xea7d78,_0x42d665,_0x348857)=>{this['stopListening'](_0x42d665,'change:previous'),this['_handleControllerBuffer']['delete'](_0x42d665),this['_suggestionToController']['has'](_0x42d665)&&this['_destroyController'](_0x42d665),_0x348857&&this['_updateController'](_0x348857['head']);}),this['listenTo'](_0x4ed992,'suggestionChanged',(_0x161bb3,_0x449e4e)=>{this['_updateController'](_0x449e4e);}),this['listenTo'](_0x20d8fc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2ce5a6,'addComment',(_0x33b0a9,{threadId:_0x3ba6b8,isFromAdapter:_0x402ccb})=>{if(_0x402ccb||!_0x4ed992['hasSuggestion'](_0x3ba6b8))return;const _0x1c51b2=_0x4ed992['getSuggestion'](_0x3ba6b8);this['_suggestionToController']['get'](_0x1c51b2)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3cb7cc=this['editor']['plugins']['get']('Annotations'),_0x13211b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ca1ca=Array['from'](_0x3cb7cc['activeAnnotations'],_0x1ebae6=>_0x1ebae6['innerView'])['filter'](_0x2a5a3a=>this['_viewToController']['has'](_0x2a5a3a)),_0x46237a=[];for(const _0x29b43e of _0x1ca1ca){const _0x184648=this['_viewToController']['get'](_0x29b43e)['model']['getAllAdjacentSuggestions']();_0x46237a['push'](..._0x184648['reduce']((_0x306570,_0x5664ae)=>[..._0x306570,..._0x5664ae['getMarkerNames']()],[]));}_0x13211b['activeMarkers']=_0x46237a;}['_addUIComponentsToFactory'](){const _0x16e26c=this['editor'],_0x591316=_0x16e26c['locale'],_0x109f9a=o(_0x591316,'Track\x20changes'),_0x2aec99=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x109f9a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x591316,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x591316,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x591316,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x591316,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x22fb0b of _0x2aec99)if(ae(_0x22fb0b)){const _0x58c5bb=_0x16e26c['commands']['get'](_0x22fb0b['model']['commandName']);_0x22fb0b['model']['bind']('isOn','isEnabled')['to'](_0x58c5bb,'value','isEnabled');}_0x16e26c['ui']['componentFactory']['add']('trackChanges',_0x25d3b0=>this['_createToolbarButton'](_0x25d3b0,_0x2aec99,_0x109f9a)),_0x16e26c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x183fb6=>this['_createMenuBarMenu'](_0x183fb6,_0x2aec99,_0x109f9a));}['_createToolbarButton'](_0x1494cb,_0x5d6e79,_0x1db9bf){const _0x19a5e2=zt(_0x1494cb,Zt),_0x2aef10=this['editor']['commands']['get']('trackChanges');_0x19a5e2['buttonView']['set']({'tooltip':_0x1db9bf,'label':_0x1db9bf,'icon':ie}),_0x19a5e2['buttonView']['bind']('isOn')['to'](_0x2aef10,'value'),_0x19a5e2['buttonView']['on']('execute',()=>{_0x2aef10['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x19a5e2,_0x5d6e79,{'role':'menu'});const _0x4b3561=[];for(const _0x47d0d3 of _0x5d6e79)ae(_0x47d0d3)&&_0x4b3561['push'](this['editor']['commands']['get'](_0x47d0d3['model']['commandName']));const _0x11db4a=_0x19a5e2['buttonView'];return _0x11db4a['actionView']['unbind']('isEnabled'),_0x11db4a['arrowView']['unbind']('isEnabled'),_0x11db4a['actionView']['bind']('isEnabled')['to'](_0x2aef10,'isEnabled'),_0x11db4a['arrowView']['bind']('isEnabled')['toMany'](_0x4b3561,'isEnabled',(..._0x171d43)=>_0x171d43['some'](_0xf68375=>_0xf68375)),_0x19a5e2['on']('execute',_0x3e5960=>{this['editor']['execute'](_0x3e5960['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x19a5e2;}['_createMenuBarMenu'](_0x27bb06,_0x2c0ea8,_0x2d6d11){const _0x5d33e5=new Kt(_0x27bb06),_0x4c70db=this['editor']['commands']['get']('trackChanges');_0x5d33e5['buttonView']['set']({'label':_0x2d6d11,'icon':ie});const _0x30537c=new Qt(_0x27bb06);for(const _0x5b12c8 of _0x2c0ea8){if('separator'==_0x5b12c8['type']){_0x30537c['items']['add'](new Jt(_0x27bb06));continue;}const _0x30f5b5=new Xt(_0x27bb06,_0x5d33e5),_0x44f7b8=new Yt(_0x27bb06),_0xf09aeb=_0x5b12c8['model'];_0x44f7b8['bind'](...Object['keys'](_0xf09aeb))['to'](_0xf09aeb),_0x44f7b8['delegate']('execute')['to'](_0x5d33e5),_0x44f7b8['on']('execute',()=>{this['editor']['execute'](_0xf09aeb['commandName']),this['editor']['editing']['view']['focus']();}),_0x30f5b5['children']['add'](_0x44f7b8),_0x30537c['items']['add'](_0x30f5b5);}return _0x5d33e5['bind']('isEnabled')['to'](_0x4c70db,'isEnabled'),_0x5d33e5['panelView']['children']['add'](_0x30537c),_0x5d33e5;}['_initializeController'](_0x3bd12c){const _0x65efc9=this['editor'],_0x21175d=_0x65efc9['config'],_0x1ae456=_0x65efc9['plugins']['get']('Annotations'),_0x456b17=_0x65efc9['plugins']['get']('CommentsRepository'),_0x864747=_0x65efc9['plugins']['get']('EditorAnnotations'),_0x100506=_0x65efc9['plugins']['get'](_0x5187f3)['me'],_0x5c6b64=_0x21175d['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3163d2,CommentThreadInputView:_0x4e810b}=_0x65efc9['plugins']['get']('CommentsUI');let _0x3d5eb5,_0x48822;this['_annotationViews']['has'](_0x3bd12c['id'])?(_0x48822=this['_annotationViews']['get'](_0x3bd12c['id']),_0x3d5eb5=_0x48822['mainView']):(_0x3d5eb5=new _0x5c6b64(_0x65efc9['locale'],_0x3bd12c,_0x100506,{'disableComments':this['_disableComments'],'editorConfig':_0x21175d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x21175d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x21175d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x21175d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3e1822(_0x21175d['get']('locale')),'CommentView':_0x21175d['get']('comments')['CommentView'],'CommentsListView':_0x3163d2,'CommentThreadInputView':_0x4e810b}),_0x3d5eb5['acceptButton']['on']('execute',()=>{_0x65efc9['editing']['view']['focus']();}),_0x3d5eb5['discardButton']['on']('execute',()=>{_0x65efc9['editing']['view']['focus']();}),_0x48822=_0x1ae456['createAnnotationView'](this['editor']['locale'],_0x3d5eb5),_0x48822['bind']('isDirty')['to'](_0x3d5eb5,'isDirty'),_0x48822['bind']('length')['to'](_0x3d5eb5),_0x48822['bind']('type')['to'](_0x3d5eb5,'type',_0xc1dfd3=>'suggestion-'+_0xc1dfd3),this['_annotationViews']['set'](_0x3bd12c['id'],_0x48822));const _0x1ec07a=_0x456b17['createCommentThreadController'](_0x3bd12c['commentThread'],_0x3d5eb5),_0x3d7d11=new oe(_0x65efc9,_0x3bd12c,_0x3d5eb5,_0x1ec07a),_0x88758=_0x3bd12c['getAllAdjacentSuggestions']()['filter'](_0x19ab6d=>_0x19ab6d['isInContent']);_0x3d5eb5['descriptionParts']=_0x65efc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x88758),this['_suggestionToController']['set'](_0x3bd12c,_0x3d7d11),this['_viewToController']['set'](_0x3d5eb5,_0x3d7d11);const _0x2ba9b4=_0x1ae456['createAnnotation']({'view':_0x48822,'target':()=>{const _0x3120be=[],_0xfbeef3=_0x3bd12c['getAllAdjacentSuggestions']()['filter'](_0x30f82a=>_0x30f82a['isInContent']);for(const _0x51248c of _0xfbeef3)_0x3120be['push'](..._0x51248c['getMarkers']());return _0x37d1f1(_0x65efc9['editing'],_0x3120be);},'type':()=>'suggestion-'+_0x3d7d11['view']['type']});_0x456b17['_bindAnnotationToEditors'](_0x3d5eb5,_0x2ba9b4),_0x1ae456['add'](_0x2ba9b4),_0x864747['registerAnnotation'](_0x2ba9b4);}['_destroyController'](_0x16bfc7){const _0x50c4f4=this['editor']['plugins']['get']('CommentsRepository'),_0x57ce19=this['editor']['plugins']['get']('Annotations'),_0x25cfcb=this['_suggestionToController']['get'](_0x16bfc7),_0x13aaaf=_0x25cfcb['view'],_0x2e4751=_0x57ce19['getByInnerView'](_0x13aaaf);_0x50c4f4['_unbindEditors'](_0x13aaaf),_0x2e4751&&_0x57ce19['remove'](_0x2e4751),this['_suggestionToController']['delete'](_0x16bfc7),this['_viewToController']['delete'](_0x13aaaf),_0x25cfcb['destroy']();}['_updateController'](_0x1b48d1){if(!_0x1b48d1['isInContent']||!this['_suggestionToController']['has'](_0x1b48d1))return;const _0x4c0878=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4461ce=this['_suggestionToController']['get'](_0x1b48d1),_0x4fb142=_0x1b48d1['getAllAdjacentSuggestions']();_0x4461ce['view']['descriptionParts']=_0x4c0878['descriptionFactory']['getDescriptions'](_0x4fb142);}['destroy'](){for(const _0x312d8a of this['_suggestionToController']['keys']())this['_destroyController'](_0x312d8a);for(const _0x49f2b5 of this['_annotationViews']['values']())_0x49f2b5['mainView']['destroy']();super['destroy']();}}function ae(_0x48497e){return'model'in _0x48497e;}class k extends _0x52cd9d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x548b04){this['editor']['plugins']['get'](p)['adapter']=_0x548b04;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x376b2e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x376b2e);}['getSuggestions']({skipNotAttached:_0x2569da=!0x1,toJSON:_0x88b8d2=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2569da,'toJSON':_0x88b8d2});}['getSuggestion'](_0x56a4a0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x56a4a0);}}const T=['Pagination'];class P extends _0x52cd9d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xbcbf2b=this['editor'];if(_0xbcbf2b['config']['define']('trackChangesData.editorCreator',_0x2da038=>{const _0x2db86e=_0xbcbf2b['model']['document']['getRootNames']()['reduce']((_0x101229,_0x418b6c)=>(_0x101229[_0x418b6c]='',_0x101229),{});return _0xbcbf2b['constructor']['create'](_0x2db86e,_0x2da038);}),'function'!=typeof _0xbcbf2b['config']['get']('trackChangesData')['editorCreator'])throw new _0x368f48('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28a9c6){return N(this['editor'],!0x0,_0x28a9c6);}['getDataWithDiscardedSuggestions'](_0x38dcb2){return N(this['editor'],!0x1,_0x38dcb2);}}class D extends _0x52cd9d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x405228){super(_0x405228),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x259779){return void 0x0!==_0x259779['getRootsAttributes'];}async function N(_0x45e816,_0x49df83,_0x255576){const _0x220c72=_0x540b79(_0x45e816,T);_0x220c72['plugins']['push'](p,D),_0x220c72['rootsAttributes']=v(_0x45e816)?_0x45e816['getRootsAttributes']():void 0x0;const _0x5b360a=document['createDocumentFragment'](),_0xe75d7f=_0x45e816['config']['get']('trackChangesData')['editorCreator'],_0x3b178b=await _0xe75d7f(_0x220c72,()=>function(_0x209640){const _0x5cd79e=document['createElement']('div');return _0x209640['appendChild'](_0x5cd79e),_0x5cd79e;}(_0x5b360a));!function(_0x6e5be,_0x170bce){const _0x5cfdb8=_0x6e5be['model']['document']['getRootNames']()['reduce']((_0xce8542,_0x8a4310)=>(_0xce8542[_0x8a4310]=_0x6e5be['data']['get']({'rootName':_0x8a4310}),_0xce8542),{}),_0x455a94=_0x6e5be['plugins']['get']('Users')['users']['map'](_0x5a3119=>({'id':_0x5a3119['id'],'name':_0x5a3119['name']})),_0x214003=_0x6e5be['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c75a9=_0x6e5be['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1de49e=_0x170bce['plugins']['get']('Users'),_0x2a2d80=_0x170bce['plugins']['get']('TrackChangesEditing'),_0x5833de=_0x170bce['plugins']['get']('CommentsRepository');for(const _0x314b38 of _0x455a94)_0x1de49e['getUser'](_0x314b38['id'])||_0x1de49e['addUser'](_0x314b38);_0x1de49e['me']||_0x1de49e['useAnonymousUser']();for(const _0x4947bd of _0x5c75a9)_0x5833de['addCommentThread'](_0x4947bd);for(const _0x1fca9c of _0x214003)_0x2a2d80['addSuggestionData'](_0x1fca9c);_0x170bce['data']['set'](_0x5cfdb8);}(_0x45e816,_0x3b178b),_0x3b178b['execute'](_0x49df83?'acceptAllSuggestions':'discardAllSuggestions');const _0x4c60b4=v(_0x3b178b)?_0x3b178b['getFullData'](_0x255576):_0x3b178b['data']['get'](_0x255576);return await _0x3b178b['destroy'](),_0x4c60b4;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x165a31,PendingActions as _0x15766d,icons as _0x248ec0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1fea76,ObservableMixin as _0x59bc79,uid as _0x1a0dc4,insertToPriorityArray as _0x5b0ac0,priorities as _0x542e83,logWarning as _0x173674,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x218fe1,View as _0x14723b,ButtonView as _0x20a4b2,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2b6863,hashObject as _0x4588ef,surroundingMarkersDetector as _0x2bfce0,trimHtml as _0x320a0d,UserView as _0xc40ff7,getDateTimeFormatter as _0x4fd486,getAllMarkersDomElementsSorted as _0x13a72c,sanitizeEditorConfig as _0x307cca}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3a4001,LiveRange as _0x5d0450,LivePosition as _0x260d24}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4cacb9,toWidget as _0xecdb3b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2e133a,set as _0x5a4f8e,isEqual as _0x26274f,unset as _0x371c55,omit as Bt}from'lodash-es';import{Delete as _0x18cd61,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2113d5,ShiftEnter as _0x2b64a4}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x41ad50,_0x41b4ad){super(_0x41ad50),this['_enabledCommands']=_0x41b4ad,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 _0x3a6c66 of this['editor']['commands']['commands']())_0x3a6c66['affectsData']&&!this['_enabledCommands']['has'](_0x3a6c66)&&_0x3a6c66['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2c61ce of this['editor']['commands']['commands']())_0x2c61ce['affectsData']&&!this['_enabledCommands']['has'](_0x2c61ce)&&_0x2c61ce['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x13bced,_0x4a9b66){super(_0x13bced),this['_suggestions']=_0x4a9b66,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2a6316){const _0x418323=this['_suggestions']['get'](_0x2a6316);if(!_0x418323)throw new _0x1fea76('track-changes-accept-suggestion-not-found',this);const _0x5849e9=_0x418323['getRanges']();this['editor']['model']['canEditAt'](_0x5849e9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x418323);}}class B extends ts{['_suggestions'];constructor(_0x320a78,_0x30015c){super(_0x320a78),this['_suggestions']=_0x30015c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4a7c84){const _0xa4459=this['_suggestions']['get'](_0x4a7c84);if(!_0xa4459)throw new _0x1fea76('track-changes-discard-suggestion-not-found',this);const _0x1ef3e3=_0xa4459['getRanges']();this['editor']['model']['canEditAt'](_0x1ef3e3)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xa4459);}}function ss(_0xa79113){return _0xa79113['sort']((_0x4e5e65,_0x720f2b)=>'deletion'==_0x4e5e65['type']&&'deletion'!=_0x720f2b['type']?-0x1:'deletion'!=_0x4e5e65['type']&&'deletion'==_0x720f2b['type']?0x1:0x0);}function to(_0x2a1764,_0x118fe7){let _0xb05c22,_0x2e88fa=0x0;const _0x2375aa=[],_0x25a779=_0x118fe7['schema'];for(;_0x2e88fa<_0x2a1764['length'];){const _0xff6dbc=_0x2a1764[_0x2e88fa],_0x425fd5=_0x2a1764[_0x2e88fa+0x1];_0xb05c22||(_0xb05c22=_0x118fe7['createPositionBefore'](_0xff6dbc)),co(_0x118fe7,_0xff6dbc,_0x425fd5)||(_0x2375aa['push'](_0x118fe7['createRange'](_0xb05c22,_0x25a779['isObject'](_0xff6dbc)?_0x118fe7['createPositionAfter'](_0xff6dbc):_0x118fe7['createPositionAt'](_0xff6dbc,'end'))),_0xb05c22=null),_0x2e88fa++;}return _0x2375aa;}function co(_0x295c05,_0x38eec7,_0x477054){if(!_0x477054)return!0x1;const _0x341bfb=_0x295c05['createPositionAfter'](_0x38eec7),_0x30ff56=_0x295c05['createPositionBefore'](_0x477054);return _0x341bfb['isTouching'](_0x30ff56);}function rs(_0x587eac,_0x75d15b,_0xbbb19f){for(;_0xbbb19f['length'];){const _0x121521=_0xbbb19f['splice'](0x0,0x64);_0x587eac['change'](()=>{for(const _0x42337a of _0x121521)_0x42337a['isInContent']&&_0x75d15b['execute'](_0x42337a['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x61d3cc,_0x12a590,_0x55ad28){super(_0x61d3cc),this['_command']=_0x12a590,this['_suggestions']=_0x55ad28,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x301054=Array['from'](this['_suggestions']['values']())['some'](_0x539412=>_0x539412['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x301054;}['execute'](){const _0x3a6224=ss(Array['from'](this['_suggestions']['values']()));for(const _0x28f023 of _0x3a6224){const _0x186217=_0x28f023['getRanges']();if(!this['editor']['model']['canEditAt'](_0x186217))return;}rs(this['editor']['model'],this['_command'],_0x3a6224);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2f5cdf,_0x2c2d3d,_0x1c578b){super(_0x2f5cdf),this['_command']=_0x2c2d3d,this['_suggestions']=_0x1c578b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x59752e=this['editor']['model']['document']['selection'],_0x5641a5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x47704a,_0x5a8c03){const _0x1859b2=Array['from'](_0x47704a['getRanges']()),_0x5bf0b1=new Set();for(const _0x161f46 of _0x5a8c03)if(_0x161f46['isInContent']){for(const _0x27c8c9 of _0x1859b2)for(const _0x353555 of _0x161f46['getRanges']())(_0x27c8c9['isIntersecting'](_0x353555)||_0x47704a['isCollapsed']&&!_0x161f46['isMultiRange']&&_0x161f46['next']&&_0x353555['end']['isTouching'](_0x27c8c9['start']))&&_0x5bf0b1['add'](_0x161f46);}return _0x5bf0b1;}(_0x59752e,_0x5641a5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5d631c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x210b9a of _0x5d631c){const _0x42543f=_0x210b9a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42543f))return;}rs(this['editor']['model'],this['_command'],_0x5d631c);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x59bc79(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x366f99,_0x1deaa4){super(),this['id']=_0x1deaa4['id'],this['type']=_0x1deaa4['type'],this['subType']=_0x1deaa4['subType']||null,this['author']=_0x1deaa4['author'],this['creator']=_0x1deaa4['creator']||_0x1deaa4['author'],this['isExternal']=Boolean(_0x1deaa4['attributes']&&_0x1deaa4['attributes']['@external']),this['data']=null,this['_model']=_0x366f99,this['_onAccept']=_0x1deaa4['onAccept'],this['_onDiscard']=_0x1deaa4['onDiscard'],this['_onAttributesChange']=_0x1deaa4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1deaa4['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 _0x3ea405=this;for(;_0x3ea405['previous'];)_0x3ea405=_0x3ea405['previous'];return _0x3ea405;}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'](_0xa902e){this['_markerNames']['add'](_0xa902e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x418b94=>this['_model']['markers']['get'](_0x418b94))['filter'](_0x21e61f=>_0x21e61f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4f3c56=>{for(const _0x71b498 of this['getMarkers']())_0x4f3c56['removeMarker'](_0x71b498);}),this['_markerNames']['clear']();}['removeMarker'](_0x3067b9){this['_model']['change'](_0x36cffc=>{_0x36cffc['removeMarker'](_0x3067b9);}),this['_markerNames']['delete'](_0x3067b9);}['addRange'](_0x3c2ea1){const _0x44e50b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x44e50b),this['_model']['change'](_0x37d9bb=>{_0x37d9bb['addMarker'](_0x44e50b,{'range':_0x3c2ea1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x345976){for(const _0x12a690 of this['getRanges']())if(_0x12a690['isIntersecting'](_0x345976))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x566797=>_0x566797['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x473131,_0x8cd32e)=>[..._0x473131,..._0x8cd32e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2a8508=this['getRanges']();if(0x1!=_0x2a8508['length'])return null;const _0x46d05a=_0x2a8508[0x0],_0x249f80=_0x46d05a['start']['nodeAfter'],_0x424dba=_0x46d05a['end']['nodeBefore'];return _0x249f80 instanceof _0x3a4001?_0x249f80!=_0x424dba?null:_0x249f80: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 _0x1f7e69=[];let _0x356382=this['head'];for(;_0x356382;)_0x1f7e69['push'](_0x356382),_0x356382=_0x356382['next'];return _0x1f7e69;}['setAttribute'](_0x16f791,_0x2d9453){const _0x1948f4=_0x2e133a(this['attributes']);_0x5a4f8e(_0x1948f4,_0x16f791,_0x2d9453),_0x26274f(_0x1948f4,this['attributes'])||(this['attributes']=_0x1948f4,this['_onAttributesChange'](_0x1948f4));}['removeAttribute'](_0x365b86){const _0x599efe=_0x2e133a(this['attributes']);_0x371c55(_0x599efe,_0x365b86),_0x26274f(_0x599efe,this['attributes'])||(this['attributes']=_0x599efe,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 _0x1a0dc4()['substr'](0x1,0x5);}}function o(_0x270451,_0xfd6ddd,_0x15f828){const t=_0x270451['t'];switch(_0xfd6ddd){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',_0x15f828);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x15f828);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x15f828);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x15f828);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x15f828);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',_0x15f828);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x15f828);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',_0x15f828);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x15f828);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x15f828);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x15f828);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x15f828);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x15f828);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x15f828);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x15f828);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x15f828);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x15f828);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x15f828);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x15f828);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x15f828);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x15f828);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x15f828);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x15f828);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'},_0x15f828);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x15f828);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x15f828);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x15f828);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x15f828);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x15f828);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'},_0x15f828);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x15f828);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x15f828);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x15f828);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x15f828);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'},_0x15f828);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x15f828);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'},_0x15f828);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'},_0x15f828);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x15f828);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'},_0x15f828);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x15f828);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'},_0x15f828);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x15f828);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x15f828);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x15f828);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'},_0x15f828);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xfd6ddd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x410825,_0x2340cc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x410825,this['_locale']=_0x2340cc;}['getDescriptions'](_0x1d8c03){const _0x3f5162=[],_0x447d09=new Set(),_0x3dc2d0=new Set();for(let _0x1d4405=0x0;_0x1d4405<_0x1d8c03['length'];_0x1d4405++){const _0x243d88=_0x1d8c03[_0x1d4405];if(!_0x243d88['isInContent'])continue;const _0x36ac50=this['_handleCustomCallbackDescription'](_0x243d88);if(_0x36ac50){if(null!=_0x243d88['subType']){if(_0x447d09['has'](_0x243d88['subType']))continue;_0x447d09['add'](_0x243d88['subType']);}_0x3f5162['push'](_0x36ac50);}else{if('attribute'!=_0x243d88['type'])'insertion'!=_0x243d88['type']&&'deletion'!=_0x243d88['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3f5162,_0x243d88,_0x1d8c03[_0x1d4405+0x1]);else{const _0x396e17=_0x243d88['data']['key'];if(_0x3dc2d0['has'](_0x396e17))continue;_0x3dc2d0['add'](_0x243d88['data']['key']),_0x396e17==m?this['_handleRenameSuggestionDescription'](_0x3f5162,_0x243d88):this['_handleAttributeSuggestionDescription'](_0x3f5162,_0x243d88);}}}return this['_resolveDescriptionItems'](_0x3f5162);}['registerDescriptionCallback'](_0x2b8d40){this['_customCallbacks']['push'](_0x2b8d40);}['registerElementLabel'](_0x19a4e8,_0xed3de1,_0x3eb960=_0x542e83['normal']){'function'==typeof _0x19a4e8?_0x5b0ac0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x19a4e8,'label':_0xed3de1,'priority':_0x3eb960}):this['_itemLabels']['set'](_0x19a4e8,_0xed3de1);}['registerAttributeLabel'](_0xf17081,_0x3eb0c0){this['_attributeLabels']['set'](_0xf17081,_0x3eb0c0);}['getItemLabel'](_0x503711,_0x371d52=0x1){let _0x4f533f;for(const _0x2d1c26 of this['_itemLabelsCallbacks'])if(_0x2d1c26['matchingCallback'](_0x503711)){_0x4f533f=_0x2d1c26['label'];break;}return _0x4f533f||(_0x4f533f=this['_itemLabels']['get'](_0x503711['name'])),_0x4f533f?_0x4f533f(_0x371d52):0x1!==_0x371d52?_0x371d52+'\x20'+_0x503711['name']+'s':''+_0x503711['name'];}['_addDescriptionItems'](_0x27e745,_0x150927){const _0x368182=_0x150927['getFirstRange']()['getWalker'](),_0x1607c6='insertion'==_0x150927['type']?'add':'remove';for(const _0x26bb4c of _0x368182){const _0x3d34f5=_0x26bb4c['item'],_0x371429=_0x27e745[_0x27e745['length']-0x1];if(_0x3d34f5['is']('$textProxy'))_0x371429&&_0x371429['type']['indexOf']('Container')>-0x1&&_0x27e745['pop'](),_0x371429&&'text'==_0x371429['type']?_0x371429[_0x1607c6]+=_0x3d34f5['data']:_0x27e745['push']({'type':'text','add':'add'==_0x1607c6?_0x3d34f5['data']:'','remove':'remove'==_0x1607c6?_0x3d34f5['data']:''});else{if(this['_schema']['isObject'](_0x3d34f5)){const _0x2b5872=_0x3d34f5;if(_0x371429&&_0x371429['type']['indexOf']('Container')>-0x1&&_0x27e745['pop'](),'elementEnd'==_0x26bb4c['type'])continue;_0x371429&&_0x371429['type']==_0x1607c6+'Object'&&_0x371429['element']['name']==_0x2b5872['name']?_0x371429['quantity']++:_0x27e745['push']({'type':_0x1607c6+'Object','element':_0x2b5872,'quantity':0x1}),_0x368182['skip'](_0x42eb22=>!('elementEnd'==_0x42eb22['type']&&_0x42eb22['item']==_0x3d34f5));}else{if(this['_schema']['checkChild'](_0x3d34f5,'$text')||_0x3d34f5['is']('element','softBreak')){const _0x2b6c0d=_0x3d34f5;if('add'==_0x1607c6&&'elementStart'==_0x26bb4c['type']||'remove'==_0x1607c6&&'elementEnd'==_0x26bb4c['type'])continue;if(_0x371429&&-0x1==_0x371429['type']['indexOf']('Container')){'text'==_0x371429['type']&&(_0x371429[_0x1607c6]+='\x0a');continue;}let _0x3e7823;if(_0x3e7823='add'==_0x1607c6?_0x2b6c0d['nextSibling']&&!this['_schema']['isObject'](_0x2b6c0d['nextSibling'])?_0x2b6c0d['nextSibling']:null:_0x2b6c0d['previousSibling']&&!this['_schema']['isObject'](_0x2b6c0d['previousSibling'])?_0x2b6c0d['previousSibling']:null,_0x2b6c0d['isEmpty']||_0x3e7823&&_0x3e7823['isEmpty']){const _0x1efe35=_0x3e7823&&_0x3e7823['isEmpty']?_0x3e7823:_0x2b6c0d;_0x371429&&_0x371429['type']==_0x1607c6+'EmptyContainer'&&_0x371429['element']['name']==_0x1efe35['name']?_0x371429['quantity']++:_0x27e745['push']({'type':_0x1607c6+'EmptyContainer','element':_0x1efe35,'quantity':0x1});}else _0x27e745['push']({'type':_0x1607c6+'Container','element':_0x2b6c0d});}}}}}['_resolveDescriptionItems'](_0x100348){const _0x4c0b50=this['_locale'],_0x3bba7c=[],_0x1c7e34=[],_0x12df03=[];for(const _0xe35790 of _0x100348)switch(_0xe35790['type']){case'text':if(_0xe35790['add']=_0xe35790['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xe35790['remove']=_0xe35790['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xe35790['add']&&''!=_0xe35790['remove']){_0x3bba7c['push']({'type':'replace','content':o(_0x4c0b50,'REPLACE_TEXT',['\x22'+_0xe35790['remove']+'\x22','\x22'+_0xe35790['add']+'\x22'])});continue;}if(null!=_0xe35790['add']['match'](/^ +$/)){_0x3bba7c['push']({'type':'insertion','content':o(_0x4c0b50,'*Insert:*\x20%0',o(_0x4c0b50,'ELEMENT_SPACE',_0xe35790['add']['length']))});continue;}if(null!=_0xe35790['remove']['match'](/^ +$/)){_0x3bba7c['push']({'type':'deletion','content':o(_0x4c0b50,'*Remove:*\x20%0',o(_0x4c0b50,'ELEMENT_SPACE',_0xe35790['remove']['length']))});continue;}if(''!=_0xe35790['add']){_0x3bba7c['push']({'type':'insertion','content':o(_0x4c0b50,'*Insert:*\x20%0','\x22'+_0xe35790['add']+'\x22')});continue;}_0x3bba7c['push']({'type':'deletion','content':o(_0x4c0b50,'*Remove:*\x20%0','\x22'+_0xe35790['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3bba7c['push']({'type':'insertion','content':o(_0x4c0b50,'*Insert:*\x20%0',this['getItemLabel'](_0xe35790['element'],_0xe35790['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3bba7c['push']({'type':'deletion','content':o(_0x4c0b50,'*Remove:*\x20%0',this['getItemLabel'](_0xe35790['element'],_0xe35790['quantity']))});continue;case'addContainer':_0x3bba7c['push']({'type':'insertion','content':o(_0x4c0b50,'*Split:*\x20%0',this['getItemLabel'](_0xe35790['element'],_0xe35790['quantity']))});continue;case'removeContainer':_0x3bba7c['push']({'type':'deletion','content':o(_0x4c0b50,'*Merge:*\x20%0',this['getItemLabel'](_0xe35790['element'],_0xe35790['quantity']))});continue;case'addFormat':_0x1c7e34['push'](_0xe35790['key']);continue;case'removeFormat':_0x12df03['push'](_0xe35790['key']);continue;default:_0x3bba7c['push'](_0xe35790);}if(_0x1c7e34['length']){const _0xad3e60=_0x1c7e34['map'](_0x3e5128=>this['_attributeLabels']['has'](_0x3e5128)?this['_attributeLabels']['get'](_0x3e5128):_0x3e5128)['join'](',\x20');_0x3bba7c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xad3e60)});}if(_0x12df03['length']){const _0x4f0e48=_0x12df03['map'](_0x38f036=>this['_attributeLabels']['has'](_0x38f036)?this['_attributeLabels']['get'](_0x38f036):_0x38f036)['join'](',\x20');_0x3bba7c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4f0e48)});}return _0x3bba7c;}['_handleCustomCallbackDescription'](_0x563880){for(const _0x36bc4c of this['_customCallbacks']){const _0x46357e=_0x36bc4c(_0x563880);if(_0x46357e&&'type'in _0x46357e)return _0x46357e;}}['_handleAttributeSuggestionDescription'](_0x5249ed,_0x17d4a7){const _0x23a269=_0x17d4a7['data'],_0xf52161=void 0x0===_0x23a269['newValue']?'removeFormat':'addFormat';_0x5249ed['push']({'type':_0xf52161,'key':_0x23a269['key']});}['_handleRenameSuggestionDescription'](_0x16432b,_0x47ecd6){_0x16432b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x47ecd6['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x250bcd,_0x3989a3,_0x340c87){if(this['_addDescriptionItems'](_0x250bcd,_0x3989a3),_0x340c87&&_0x340c87['getFirstRange']()&&!_0x3989a3['getFirstRange']()['end']['isEqual'](_0x340c87['getFirstRange']()['start'])){const _0x5b1053=_0x250bcd[_0x250bcd['length']-0x1],_0x406016='insertion'==_0x3989a3['type']?'add':'remove';_0x5b1053&&'text'==_0x5b1053['type']&&(_0x5b1053[_0x406016]+='\x0a');}}}class E extends _0x165a31{['afterInit'](){const _0x14a554=this['editor'],_0x3afac4=_0x14a554['plugins']['get']('TrackChangesEditing');_0x14a554['commands']['get']('showAIAssistant')&&_0x3afac4['enableCommand']('showAIAssistant');}}class V extends _0x165a31{['afterInit'](){const _0x1dad38=this['editor'],_0x16e862=_0x1dad38['locale'];if(!_0x1dad38['plugins']['has']('AlignmentEditing'))return;const _0x254d83=_0x1dad38['plugins']['get']('TrackChangesEditing');_0x254d83['enableDefaultAttributesIntegration']('alignment'),_0x254d83['registerBlockAttribute']('alignment'),_0x254d83['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x16e862,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46a52d=this['editor'],_0x4c4ba7=_0x46a52d['locale'];_0x46a52d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51d28c=>{if('formatBlock'!=_0x51d28c['type'])return;const {data:_0x45faee}=_0x51d28c;if(_0x45faee&&'alignment'==_0x45faee['commandName']){const _0x4b0c0e=_0x45faee['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4c4ba7,'*Format:*\x20%0',function(_0x142cce){switch(_0x142cce){case'left':return o(_0x4c4ba7,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4c4ba7,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4c4ba7,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4c4ba7,'FORMAT_JUSTIFY_TEXT');}}(_0x4b0c0e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x165a31{['afterInit'](){const _0x497d34=this['editor'],_0x974c0=_0x497d34['plugins']['get']('TrackChangesEditing'),_0x1f36af=_0x497d34['locale'];for(const _0x4b3ac2 of ti){if(!_0x497d34['plugins']['has'](_0x4b3ac2))continue;const _0x125254=_0x4b3ac2['slice'](0x0,-0x7)['toLowerCase'](),_0x42cc86='FORMAT_'+_0x125254['toUpperCase']();_0x974c0['enableDefaultAttributesIntegration'](_0x125254),_0x974c0['registerInlineAttribute'](_0x125254),_0x974c0['descriptionFactory']['registerAttributeLabel'](_0x125254,o(_0x1f36af,_0x42cc86));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7f0780=this['editor'],_0x54dd03=_0x7f0780['locale'],_0xda4ae8=_0x7f0780['plugins']['get']('TrackChangesEditing');function _0x530dcc(_0x27b571,_0x158171){_0xda4ae8['descriptionFactory']['registerDescriptionCallback'](_0x49f20a=>{if('formatInline'!=_0x49f20a['type'])return;const {data:_0x124bda}=_0x49f20a;return _0x124bda&&_0x124bda['commandName']===_0x27b571?_0x124bda['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54dd03,'*Format:*\x20%0',_0x158171)}:{'type':'format','content':o(_0x54dd03,'*Remove\x20format:*\x20%0',_0x158171)}:void 0x0;});}_0x530dcc('bold',o(_0x54dd03,'FORMAT_BOLD')),_0x530dcc('italic',o(_0x54dd03,'FORMAT_ITALIC')),_0x530dcc('underline',o(_0x54dd03,'FORMAT_UNDERLINE')),_0x530dcc('code',o(_0x54dd03,'FORMAT_CODE')),_0x530dcc('strikethrough',o(_0x54dd03,'FORMAT_STRIKETHROUGH')),_0x530dcc('subscript',o(_0x54dd03,'FORMAT_SUBSCRIPT')),_0x530dcc('superscript',o(_0x54dd03,'FORMAT_SUPERSCRIPT'));}}class O extends _0x165a31{['afterInit'](){const _0x7eba27=this['editor'],_0x4d058d=_0x7eba27['locale'];if(!_0x7eba27['plugins']['has']('BlockQuoteEditing'))return;const _0x244018=_0x7eba27['plugins']['get']('TrackChangesEditing'),_0x3e8cf3=this['editor']['commands']['get']('blockQuote');_0x244018['enableCommand']('blockQuote',(_0x722266,_0x5f5cba={})=>{const _0x398c95=this['editor']['model']['document']['selection'],_0x5cbe72=_0x5f5cba&&void 0x0!==_0x5f5cba['forceValue']?_0x5f5cba['forceValue']:!_0x3e8cf3['value'];let _0x1b618e=[];if(_0x5cbe72){const _0x1a045a=Array['from'](_0x398c95['getSelectedBlocks']())['filter'](_0xdeb703=>oo(_0xdeb703)||function(_0x226720,_0x510c69){const _0x2694b3=_0x510c69['checkChild'](_0x226720['parent'],'blockQuote'),_0x56208d=_0x510c69['checkChild'](['$root','blockQuote'],_0x226720);return _0x2694b3&&_0x56208d;}(_0xdeb703,this['editor']['model']['schema']));_0x1b618e=to(_0x1a045a,_0x7eba27['model']);}else{const _0x5aaba5=Array['from'](_0x398c95['getSelectedBlocks']())['filter'](_0x2f1e0b=>oo(_0x2f1e0b));_0x1b618e=to(_0x5aaba5,_0x7eba27['model']);}_0x7eba27['model']['change'](()=>{for(const _0xcefc91 of _0x1b618e)_0x244018['markBlockFormat'](_0xcefc91,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5cbe72}]});});}),_0x244018['descriptionFactory']['registerDescriptionCallback'](_0x45f004=>{const {data:_0x3ae265}=_0x45f004;if(_0x3ae265&&'blockQuote'==_0x3ae265['commandName']){const _0x604f5c=o(_0x4d058d,'ELEMENT_BLOCK_QUOTE');return _0x3ae265['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d058d,'*Set\x20format:*\x20%0',_0x604f5c)}:{'type':'format','content':o(_0x4d058d,'*Remove\x20format:*\x20%0',_0x604f5c)};}});}}function oo(_0x13765c){return'blockQuote'==_0x13765c['parent']['name'];}class G extends _0x165a31{['afterInit'](){const _0x370dd3=this['editor'];_0x370dd3['plugins']['has']('CaseChange')&&(_0x370dd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x370dd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x370dd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x165a31{['afterInit'](){const _0x265436=this['editor'];_0x265436['commands']['get']('ckbox')&&_0x265436['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x165a31{['afterInit'](){const _0x3d6ff3=this['editor'];if(!_0x3d6ff3['plugins']['has']('CodeBlock'))return;const _0x2403c2=_0x3d6ff3['plugins']['get']('TrackChangesEditing'),_0x395bd7=_0x3d6ff3['locale'],_0x581a0f=_0x3d6ff3['config']['get']('codeBlock')['languages'],_0x2347d4=_0x3d6ff3['commands']['get']('codeBlock');_0x2403c2['enableCommand']('indentCodeBlock'),_0x2403c2['enableCommand']('outdentCodeBlock'),_0x2403c2['enableCommand']('codeBlock',(_0x3fdcbc,_0x5841d2={})=>{const _0x5bf58f=_0x3d6ff3['model'],_0x2a0e31=_0x3d6ff3['model']['document']['selection'],_0x46ccf6=_0x5841d2&&void 0x0!==_0x5841d2['forceValue']?_0x5841d2['forceValue']:!_0x2347d4['value'];let _0x51e408;_0x5841d2['language']||(_0x5841d2['language']=_0x581a0f[0x0]['language']),_0x51e408=_0x46ccf6?Array['from'](_0x2a0e31['getSelectedBlocks']())['filter'](_0x1518b9=>eo(_0x1518b9)||function(_0x255cd3,_0x41b3d1){if(_0x255cd3['is']('rootElement')||_0x41b3d1['isLimit'](_0x255cd3))return!0x1;return _0x41b3d1['checkChild'](_0x255cd3['parent'],'codeBlock');}(_0x1518b9,_0x5bf58f['schema'])):Array['from'](_0x2a0e31['getSelectedBlocks']())['filter'](_0x1b7010=>eo(_0x1b7010));const _0x3cb9db=to(_0x51e408,_0x5bf58f);_0x5bf58f['change'](()=>{for(const _0x2a88c0 of _0x3cb9db)_0x2403c2['markBlockFormat'](_0x2a88c0,{'commandName':'codeBlock','commandParams':[{..._0x5841d2,'forceValue':_0x46ccf6}],'formatGroupId':'blockName'});});}),(_0x2403c2['descriptionFactory']['registerElementLabel']('codeBlock',_0x141d7e=>o(_0x395bd7,'ELEMENT_CODE_BLOCK',_0x141d7e)),_0x2403c2['descriptionFactory']['registerDescriptionCallback'](_0x519393=>{if('formatBlock'!=_0x519393['type'])return;const _0x19d8a4=_0x395bd7['t'],{data:_0x5c5ced}=_0x519393;if(!_0x5c5ced||'codeBlock'!=_0x5c5ced['commandName'])return;const _0x3a79a2=_0x5c5ced['commandParams'][0x0]['language'],_0x57fcf4=_0x19d8a4(_0x581a0f['find'](_0x38797f=>_0x38797f['language']===_0x3a79a2)['label'])['toLowerCase']();return _0x5c5ced['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x395bd7,'*Set\x20format:*\x20%0',o(_0x395bd7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x57fcf4+')')}:{'type':'format','content':o(_0x395bd7,'*Remove\x20format:*\x20%0',o(_0x395bd7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x187072){return'codeBlock'==_0x187072['name'];}class H extends _0x165a31{['afterInit'](){const _0x3b1711=this['editor'];if(!_0x3b1711['plugins']['has']('CommentsEditing'))return;_0x3b1711['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5f0bbd,_0x133231,_0x19698e){const _0x4d8a8a=[];for(const _0x278701 of _0x133231['getItems']())_0x278701['hasAttribute'](_0x5f0bbd)&&_0x4d8a8a['push'](_0x19698e['createRangeOn'](_0x278701));return _0x4d8a8a;}function _e(_0x56667d,_0x51d8cc,{showActiveMarker:_0x27d7d1=!0x0}={}){const _0x115a0a=_0x56667d['plugins']['get']('TrackChangesEditing');return(_0x34cf00,_0x142afb,_0x4e7f04)=>{if(!_0x4e7f04['consumable']['test'](_0x142afb['markerRange'],_0x34cf00['name']))return;const _0x265b55=_0x142afb['markerRange']['getWalker'](),_0x44b17e=_0x142afb['markerRange']['start'],_0x48adb5=_0x56667d['model']['schema'];let _0x49c0f4=null,_0x3bf825=null,_0x4f89a9=!0x1,_0x3ada80=!0x1;for(const _0x3a94da of _0x265b55){const _0x311eb1=_0x3a94da['item'];_0x4f89a9=_0x4f89a9||_0x48adb5['isContent'](_0x311eb1);const _0x59e907=_0x4e7f04['mapper']['toViewElement'](_0x311eb1);if(_0x59e907&&_0x59e907['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3a94da['type']&&(_0x48adb5['isBlock'](_0x311eb1)&&!_0x48adb5['isLimit'](_0x311eb1)&&(_0x311eb1['nextSibling']||_0x44b17e['isAtEnd']?_0x49c0f4&&_0x49c0f4['parent']==_0x311eb1||(_0x49c0f4=_0x311eb1,_0x2c59a9(_0x3a94da['previousPosition']),_0x3ada80=!0x0):_0x3bf825=_0x3bf825||_0x3a94da['previousPosition']));}function _0x2c59a9(_0xafa872){const _0x213e8f=_0x4e7f04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51d8cc}),_0x41efe3=_0x4e7f04['mapper']['toViewPosition'](_0xafa872);_0x27d7d1&&_0x115a0a['activeMarkers']['includes'](_0x142afb['markerName'])&&_0x4e7f04['writer']['addClass']('ck-suggestion-marker--active',_0x213e8f),_0x4e7f04['writer']['insert'](_0x41efe3,_0x213e8f),_0x4e7f04['mapper']['bindElementToMarker'](_0x213e8f,_0x142afb['markerName']);}_0x4f89a9||_0x3ada80||!_0x3bf825||_0x2c59a9(_0x3bf825);};}class q extends _0x165a31{static get['requires'](){return[_0x18cd61];}['init'](){const _0x168eb0=this['editor'],_0x21a9f2=_0x168eb0['plugins']['get']('TrackChangesEditing');_0x21a9f2['enableCommand']('delete');const _0x11371e=_0x168eb0['commands']['get']('deleteForward');_0x21a9f2['enableCommand']('deleteForward',(_0xc92397,_0x28e7d4={})=>{const _0x10d567=_0x168eb0['model']['createSelection'](_0x168eb0['model']['document']['selection']);_0x10d567['isCollapsed']&&_0x168eb0['model']['modifySelection'](_0x10d567,{'direction':'forward','unit':_0x28e7d4['unit']});const _0xf5a38f=_0x10d567['getFirstRange'](),_0x3b8bfa=_0x5d0450['fromRange'](_0xf5a38f);let _0x256dd3;_0xc92397(_0x28e7d4),_0x256dd3='$graveyard'==_0x3b8bfa['root']['rootName']?_0x168eb0['model']['createRange'](_0xf5a38f['start']):_0x168eb0['model']['createRange'](_0x3b8bfa['start'],_0x3b8bfa['end']),_0x3b8bfa['detach'](),_0x168eb0['model']['enqueueChange'](_0x11371e['buffer']['batch'],_0x1ad659=>{_0x11371e['buffer']['lock'](),_0x1ad659['setSelection'](_0x1ad659['createRange'](_0x256dd3['end'])),_0x11371e['buffer']['unlock']();});}),_0x168eb0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x168eb0,'merge'),{'priority':'high'}),_0x168eb0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x44c6c8,_0x21dddf,_0x3afca8)=>{_0x3afca8['options']['showSuggestionHighlights']&&_e(_0x168eb0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x44c6c8,_0x21dddf,_0x3afca8);},{'priority':'high'}),_0x168eb0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x548b92,_0x36e02b,_0x2ddf56)=>{const _0x5ad10b=_0x2ddf56['mapper']['markerNameToElements'](_0x36e02b['markerName']);if(_0x5ad10b){for(const _0x570217 of _0x5ad10b)_0x570217['is']('uiElement')&&(_0x2ddf56['mapper']['unbindElementFromMarkerName'](_0x570217,_0x36e02b['markerName']),_0x2ddf56['writer']['remove'](_0x570217));}},{'priority':'high'});}}class z extends _0x165a31{['afterInit'](){const _0x4838e6=this['editor'];if(!_0x4838e6['plugins']['has']('ListEditing'))return;const _0x24b915=_0x4838e6['locale'],_0x49f87b=_0x4838e6['plugins']['get']('TrackChangesEditing'),_0x16c674=_0x4838e6['plugins']['has']('TodoListEditing'),_0x1b4bfc=!!_0x4838e6['config']['get']('list.multiBlock');function _0x18bec8(_0x2823b9){return{'type':'format','content':''+o(_0x24b915,'*Set\x20format:*\x20%0',_0x2823b9)};}function _0x42f270(_0x473273){return{'type':'format','content':''+o(_0x24b915,'*Remove\x20format:*\x20%0',_0x473273)};}_0x49f87b['enableDefaultAttributesIntegration']('numberedList'),_0x49f87b['enableDefaultAttributesIntegration']('bulletedList'),_0x49f87b['enableDefaultAttributesIntegration']('customNumberedList'),_0x49f87b['enableDefaultAttributesIntegration']('customBulletedList'),_0x49f87b['enableDefaultAttributesIntegration']('indentList'),_0x49f87b['enableDefaultAttributesIntegration']('outdentList'),_0x49f87b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x49f87b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x49f87b['registerBlockAttribute']('listItemId'),_0x49f87b['registerBlockAttribute']('listType'),_0x49f87b['registerBlockAttribute']('listIndent'),_0x1b4bfc&&(_0x49f87b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x49f87b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x16c674&&(_0x49f87b['enableDefaultAttributesIntegration']('todoList'),_0x49f87b['enableDefaultAttributesIntegration']('checkTodoList'),_0x49f87b['registerBlockAttribute']('todoListChecked'),_0x49f87b['descriptionFactory']['registerDescriptionCallback'](_0x527a4a=>{const {data:_0x52dc56}=_0x527a4a;if(_0x52dc56&&'todoListChecked'==_0x52dc56['key'])return{'type':'format','content':_0x52dc56['newValue']?o(_0x24b915,'*Check\x20item*'):o(_0x24b915,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5a451a=>{if(_0x5a451a['batch']['isUndo'])return!0x1;let _0x5387d1=!0x1;const _0x55c6a1=_0x49f87b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3357bd=>'todoListChecked'===_0x49f87b['_getAttributeKey'](_0x3357bd));for(const _0x562dda of _0x55c6a1){'todo'!=_0x562dda['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x49f87b['_findSuggestions'](_0x562dda['getFirstRange'](),'attribute')['find'](_0x75e045=>'listType'===_0x49f87b['_getAttributeKey'](_0x75e045['suggestion']))||(_0x5a451a['removeMarker'](_0x562dda['getFirstMarker']()),_0x5387d1=!0x0));}return _0x5387d1;})),_0x49f87b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x24b915,'FORMAT_INDENT'));const _0x3b5cb3={'type':'format','content':''};_0x49f87b['descriptionFactory']['registerDescriptionCallback'](_0x2fd159=>{const {data:_0x46fe44}=_0x2fd159;if(!_0x46fe44||'listType'!=_0x46fe44['key'])return;let _0x29aae2=_0x2fd159['head'];for(;_0x29aae2;){if(_0x29aae2['data']&&(('listStyle'==_0x29aae2['data']['key']||'listMarkerStyle'==_0x29aae2['data']['key'])&&(_0x29aae2['data']['newValue']&&'default'!=_0x29aae2['data']['newValue']||'default'!=_0x29aae2['data']['oldValue']&&!_0x46fe44['newValue'])||!_0x1b4bfc&&_0x29aae2['data']['key']==m))return _0x3b5cb3;_0x29aae2=_0x29aae2['next'];}if(null==_0x46fe44['newValue'])switch(_0x46fe44['oldValue']){case'bulleted':return _0x42f270(o(_0x24b915,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x42f270(o(_0x24b915,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x42f270(o(_0x24b915,'ELEMENT_TODO_LIST'));}switch(_0x46fe44['newValue']){case'bulleted':return _0x18bec8(o(_0x24b915,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18bec8(o(_0x24b915,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18bec8(o(_0x24b915,'ELEMENT_TODO_LIST'));}}),_0x49f87b['descriptionFactory']['registerDescriptionCallback'](_0x3f01cf=>{const {data:_0x10e4f0}=_0x3f01cf;if(_0x10e4f0&&'listIndent'==_0x10e4f0['key'])return null==_0x10e4f0['newValue']||null==_0x10e4f0['oldValue']&&0x0==_0x10e4f0['newValue']?_0x3b5cb3:void 0x0;}),_0x49f87b['descriptionFactory']['registerDescriptionCallback'](_0x21be2e=>{if('attribute'!=_0x21be2e['type'])return;const {data:_0x4a36a9}=_0x21be2e;if(!_0x4a36a9||'listItemId'!=_0x4a36a9['key'])return;const _0x3afc5f=le(_0x21be2e);return'newValue'==_0x3afc5f?{'type':'format','content':o(_0x24b915,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3afc5f?{'type':'format','content':o(_0x24b915,'*Split:*\x20list\x20item')}:_0x3b5cb3;}),_0x4838e6['model']['document']['registerPostFixer'](_0x30a494=>this['listItemIdFixer'](_0x30a494)),_0x4838e6['model']['document']['registerPostFixer'](_0x484b19=>this['noTrackChangesFixer'](_0x484b19)),_0x4838e6['model']['document']['registerPostFixer'](_0x5cc15d=>this['assureChains'](_0x5cc15d)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x48b533){if(_0x48b533['batch']['isUndo']||!_0x48b533['batch']['isLocal'])return!0x1;let _0x46861f=!0x1;const _0x39f967=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe5fa11=>_0xe5fa11['data']&&'listItemId'==_0xe5fa11['data']['key'])['filter'](_0x2650d6=>_0x2650d6['data']['newValue']&&_0x2650d6['data']['oldValue']);for(const _0x577798 of _0x39f967)le(_0x577798)||(_0x48b533['removeMarker'](_0x577798['getFirstMarker']()),_0x46861f=!0x0);return _0x46861f;}['noTrackChangesFixer'](_0x233af6){if(_0x233af6['batch']['isUndo']||!_0x233af6['batch']['isLocal'])return!0x1;const _0x262abe=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x262abe['trackChangesCommand']['value'])return!0x1;let _0x237c27=!0x1;const _0x473663=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5907bc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x455110=>'attribute'==_0x455110['type'])['filter'](_0x46d3d6=>_0x473663['includes'](_0x46d3d6['attributeKey']));if(0x0==_0x5907bc['length'])return _0x237c27;for(const _0x27849a of _0x5907bc){const _0x2e8dfb=_0x262abe['_findSuggestions'](_0x27849a['range'],'attribute')['filter'](_0x1b1fcc=>!_0x1b1fcc['meta']['isNextTo'])['map'](_0x1d40a1=>_0x1d40a1['suggestion'])['filter'](_0xc5ed8=>{const _0x1f4526=_0x262abe['_getAttributeKey'](_0xc5ed8);return _0x473663['includes'](_0x1f4526);});if(_0x2e8dfb['length']){for(const _0x19eaec of _0x2e8dfb)_0x233af6['removeMarker'](_0x19eaec['getFirstMarker']());_0x237c27=!0x0;}}return _0x237c27;}['assureChains'](_0x4a1920){if(_0x4a1920['batch']['isUndo']||!_0x4a1920['batch']['isLocal'])return!0x1;const _0x44dd88=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3853f0=!0x1;const _0x4d7279=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x2ea4f7 of _0x44dd88['getSuggestions']({'skipNotAttached':!0x0})){const _0x2b80fd=_0x44dd88['_findSuggestions'](_0x2ea4f7['getFirstRange'](),'attribute')['map'](_0x426682=>_0x426682['suggestion'])['filter'](_0xc2fb63=>_0xc2fb63['data']&&_0x4d7279['includes'](_0xc2fb63['data']['key']));if(!_0x2b80fd['length'])continue;const _0x2bbea7=_0x2b80fd[0x0]['head']['attributes']['groupId'];if(!_0x2b80fd['every'](_0x5aad53=>_0x5aad53['attributes']['groupId']===_0x2bbea7)){for(const _0x267249 of _0x2b80fd)_0x4a7eee(_0x267249,_0x2bbea7)&&(_0x3853f0=!0x0);}}return _0x3853f0;function _0x146ebd(_0x3ee14a,_0x5349bf){for(const _0x444f2b of _0x44dd88['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb642b6=>'attribute'==_0xb642b6['type']&&_0xb642b6['attributes']['groupId']==_0x3ee14a))_0x444f2b['setAttribute']('groupId',_0x5349bf);}function _0x4a7eee(_0x14e338,_0x125c57){let _0x538833=_0x14e338['head'],_0x121c8a=!0x1;for(;_0x538833;)_0x538833['attributes']['groupId']!=_0x125c57&&(_0x146ebd(_0x538833['attributes']['groupId'],_0x125c57),_0x538833['setAttribute']('groupId',_0x125c57),_0x121c8a=!0x0),_0x538833=_0x538833['next'];return _0x121c8a;}}['_supportLegacySuggestions'](){const _0x149fd9=this['editor'],_0x16064b=_0x149fd9['locale'],_0x4fc2a8=_0x149fd9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4fc2a8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x49ea10,_0x5d36c4){const _0x5b6c6d=[];for(let _0x5e044b of _0x49ea10)_0x5e044b['start']['nodeAfter']===_0x5e044b['end']['parent']&&(_0x5e044b=_0x149fd9['model']['createRange'](_0x149fd9['model']['createPositionAt'](_0x5e044b['start']['nodeAfter'],0x0))),_0x5b6c6d['push'](_0x5e044b);_0x149fd9['model']['change'](_0x385ec4=>{const _0x460122=_0x149fd9['model']['document']['selection'],_0x21a82d=Array['from'](_0x460122['getRanges']())['map'](_0x3062f2=>_0x5d0450['fromRange'](_0x3062f2));_0x385ec4['setSelection'](_0x5b6c6d),_0x149fd9['commands']['get'](_0x5d36c4['commandName'])['refresh'](),_0x5d36c4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x149fd9['execute'](_0x5d36c4['commandName'],..._0x5d36c4['commandParams']),_0x385ec4['setSelection'](_0x21a82d);for(const _0x17f998 of _0x21a82d)_0x17f998['detach']();});}),_0x4fc2a8['descriptionFactory']['registerElementLabel'](function(_0x255f52){const _0xe40b20=!_0x149fd9['model']['schema']['isObject'](_0x255f52),_0x3ecdc0=_0x255f52['previousSibling'],_0xfbaa51=_0x255f52['nextSibling'],_0x2efc73=_0x255f52['getAttribute']('listItemId'),_0x3a4a92=!_0x3ecdc0||_0x3ecdc0['getAttribute']('listItemId')!==_0x2efc73,_0x3af108=!_0xfbaa51||_0xfbaa51['getAttribute']('listItemId')!==_0x2efc73;return _0xe40b20&&Boolean(_0x2efc73)&&_0x3a4a92&&_0x3af108;},_0x4e2c35=>o(_0x16064b,'ELEMENT_LIST_ITEM',_0x4e2c35));}['_registerLegacyDescription'](){const _0x2e611e=this['editor'],_0x25ceef=_0x2e611e['locale'];function _0x4f39b2(_0xa44321){const _0xec8ef4=_0x2e611e['commands']['get']('bulletedList')['value'],_0x219c1b=_0x2e611e['commands']['get']('numberedList')['value'];return'numberedList'===_0xa44321?_0xec8ef4:_0x219c1b;}_0x2e611e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1febb4){if('formatBlock'!=_0x1febb4['type'])return;const {data:_0x474a34}=_0x1febb4;if(!_0x474a34)return;let _0x4c0d57,_0x3e0012,_0x53ddc9,_0xc6c99a;switch(_0x474a34['commandName']){case'bulletedList':_0x53ddc9=_0x474a34['commandParams'][0x0]['forceValue'],_0xc6c99a=_0x4f39b2(_0x474a34['commandName']),_0x4c0d57=_0x53ddc9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc6c99a&&_0x2e611e['config']['get']('list.multiBlock')||(_0x4c0d57='*Change\x20to:*\x20%0'),_0x3e0012={'type':'format','content':o(_0x25ceef,_0x4c0d57,o(_0x25ceef,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x53ddc9=_0x474a34['commandParams'][0x0]['forceValue'],_0xc6c99a=_0x4f39b2(_0x474a34['commandName']),_0x4c0d57=_0x53ddc9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc6c99a&&_0x2e611e['config']['get']('list.multiBlock')||(_0x4c0d57='*Change\x20to:*\x20%0'),_0x3e0012={'type':'format','content':o(_0x25ceef,_0x4c0d57,o(_0x25ceef,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4c0d57='*Indent:*\x20%0',_0x3e0012={'type':'format','content':o(_0x25ceef,_0x4c0d57,o(_0x25ceef,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4c0d57=function(_0x5e46f8){const _0x16aeb3=_0x5e46f8['getFirstRange']();let _0x442d48=_0x16aeb3['start']['nodeAfter'];for(;_0x442d48&&_0x16aeb3['containsItem'](_0x442d48);){if(_0x442d48['getAttribute']('listIndent')>0x0)return!0x1;_0x442d48=_0x442d48['nextSibling'];}return!0x0;}(_0x1febb4)?o(_0x25ceef,'*Format:*\x20remove\x20from\x20%0',o(_0x25ceef,function(_0x4a1475){return'ELEMENT_'+_0x4a1475['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1febb4))):o(_0x25ceef,'*Outdent:*\x20%0',o(_0x25ceef,'ELEMENT_LIST_ITEM')),_0x3e0012={'type':'format','content':_0x4c0d57};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x474a34['multipleBlocks']&&(_0x4c0d57='*Merge:*\x20%0',_0x3e0012={'type':'deletion','content':o(_0x25ceef,_0x4c0d57,o(_0x25ceef,'ELEMENT_LIST_ITEM'))});}return _0x3e0012;});}}function le(_0x54aa89){let _0x3cffa6=_0x54aa89['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3cffa6;){const _0x4566cf=_0x3cffa6['getAttribute']('listItemId');if(!_0x4566cf)return!0x1;if(_0x4566cf==_0x54aa89['data']['newValue'])return'newValue';if(_0x4566cf==_0x54aa89['data']['oldValue'])return'oldValue';_0x3cffa6=_0x3cffa6['previousSibling'];}return!0x1;}class ue extends _0x165a31{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x10723e=this['editor']['config']['get']('list.properties'),_0x47abb5=this['editor']['plugins']['get']('TrackChangesEditing');_0x10723e['styles']&&(_0x47abb5['enableDefaultAttributesIntegration']('listStyle'),_0x47abb5['registerBlockAttribute']('listStyle')),_0x10723e['reversed']&&(_0x47abb5['enableDefaultAttributesIntegration']('listReversed'),_0x47abb5['registerBlockAttribute']('listReversed')),_0x10723e['startIndex']&&(_0x47abb5['enableDefaultAttributesIntegration']('listStart'),_0x47abb5['registerBlockAttribute']('listStart'));const _0x1e05f5={'type':'format','content':''};_0x47abb5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x46ffba=this['editor']['locale'];_0x47abb5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x46ffba,'FORMAT_LIST_REVERSED')),_0x47abb5['descriptionFactory']['registerDescriptionCallback'](_0x363ddd=>{const {data:_0x4a6c4f}=_0x363ddd;if(_0x4a6c4f&&'listReversed'==_0x4a6c4f['key'])return null==_0x4a6c4f['newValue']||0x0==_0x4a6c4f['newValue']&&null==_0x4a6c4f['oldValue']?_0x1e05f5:void 0x0;}),_0x47abb5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x46ffba,'FORMAT_LIST_START')),_0x47abb5['descriptionFactory']['registerDescriptionCallback'](_0x536171=>{const {data:_0x126ccf}=_0x536171;if(_0x126ccf&&'listStart'==_0x126ccf['key'])return null==_0x126ccf['newValue']||0x1==_0x126ccf['newValue']&&null==_0x126ccf['oldValue']?_0x1e05f5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5ba26c=>{if(_0x5ba26c['batch']['isUndo'])return!0x1;let _0x5a8b68=!0x1;const _0x523007=_0x47abb5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e4e62=>{const _0x2b7c53=_0x47abb5['_getAttributeKey'](_0x5e4e62);return'listStart'==_0x2b7c53||'listReversed'==_0x2b7c53;});for(const _0x571d15 of _0x523007){const _0x41f5e4=_0x571d15['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x41f5e4||'customNumbered'==_0x41f5e4)continue;_0x47abb5['_findSuggestions'](_0x571d15['getFirstRange'](),'attribute')['find'](_0x58a4b5=>'listType'==_0x47abb5['_getAttributeKey'](_0x58a4b5['suggestion']))||(_0x5ba26c['removeMarker'](_0x571d15['getFirstMarker']()),_0x5a8b68=!0x0);}return _0x5a8b68;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3bbeb4){const _0x23fd3e=this['editor']['locale'],{data:_0xc06962}=_0x3bbeb4,_0x59043f={'type':'format','content':''};if(!_0xc06962||'listStyle'!=_0xc06962['key'])return;if(!_0xc06962['oldValue'])return'default'==_0xc06962['newValue']?_0x59043f:{'type':'format','content':''+o(_0x23fd3e,'*Set\x20format:*\x20%0',o(_0x23fd3e,this['_getTranslationKeyForListStyle'](_0xc06962['newValue'])))};if(!_0xc06962['newValue']){if('default'==_0xc06962['oldValue'])return _0x59043f;let _0x25f8dc=_0x3bbeb4['head'];for(;_0x25f8dc;){if(_0x25f8dc['data']&&'listType'==_0x25f8dc['data']['key']&&_0x25f8dc['data']['newValue'])return _0x59043f;_0x25f8dc=_0x25f8dc['next'];}return{'type':'format','content':''+o(_0x23fd3e,'*Remove\x20format:*\x20%0',o(_0x23fd3e,this['_getTranslationKeyForListStyle'](_0xc06962['oldValue'])))};}if('default'!=_0xc06962['newValue'])return{'type':'format','content':''+o(_0x23fd3e,'*Set\x20format:*\x20%0',o(_0x23fd3e,this['_getTranslationKeyForListStyle'](_0xc06962['newValue'])))};let _0x123762=_0x3bbeb4['head'];for(;_0x123762;){if(_0x123762['data']&&'listType'==_0x123762['data']['key']&&_0x123762['data']['newValue']&&_0x123762['data']['oldValue'])return _0x59043f;_0x123762=_0x123762['next'];}return{'type':'format','content':o(_0x23fd3e,'*Set\x20format:*\x20%0',o(_0x23fd3e,'ELEMENT_'+_0x3bbeb4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a6d61=this['editor'],_0x1be65f=_0x1a6d61['locale'];_0x1a6d61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48acc1=>{if('formatBlock'!=_0x48acc1['type'])return;const {data:_0x1b4840}=_0x48acc1;if(!_0x1b4840)return;let _0x1d8798,_0x4a7fba;switch(_0x1b4840['commandName']){case'listStyle':_0x1d8798='*Change\x20to:*\x20%0',_0x4a7fba={'type':'format','content':o(_0x1be65f,_0x1d8798,o(_0x1be65f,this['_getTranslationKeyForListStyle'](_0x1b4840['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d8798=_0x1b4840['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4a7fba={'type':'format','content':o(_0x1be65f,_0x1d8798)};break;case'listStart':_0x1d8798='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4a7fba={'type':'format','content':o(_0x1be65f,_0x1d8798,_0x1b4840['commandParams'][0x0]['startIndex'])};}return _0x4a7fba;});}['_getTranslationKeyForListStyle'](_0x43a67a){return'ELEMENT_'+function(_0x3ebf2e){if(pe['includes'](_0x3ebf2e))return'bulleted';if(ye['includes'](_0x3ebf2e))return'numbered';return null;}(_0x43a67a)['toUpperCase']()+'_LIST_'+_0x43a67a['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x165a31{static get['requires'](){return[_0x2113d5];}['init'](){const _0x51b25b=this['editor'],_0x2ad09f=_0x51b25b['plugins']['get']('TrackChangesEditing'),_0x54d19b=_0x51b25b['commands']['get']('enter');_0x2ad09f['enableCommand']('enter',()=>{_0x51b25b['model']['change'](_0xab229e=>{const _0x4acfec=_0x51b25b['model']['document']['selection'],_0x43bdd9=_0x4acfec['getFirstPosition'](),_0x18d698=_0x5d0450['fromRange'](_0x4acfec['getFirstRange']());if(_0x54d19b['enterBlock'](_0xab229e)){const _0xca59f2=_0x51b25b['model']['createPositionAt'](_0x43bdd9['parent']['nextSibling'],0x0),_0x2cac77=_0xab229e['createRange'](_0x43bdd9,_0xca59f2);_0x2ad09f['markInsertion'](_0x2cac77);}else _0xab229e['setSelection'](_0xab229e['createRange'](_0x18d698['end']));_0x18d698['detach'](),_0x54d19b['fire']('afterExecute',{'writer':_0xab229e});});}),_0x51b25b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x51b25b,'split'),{'priority':'high'}),_0x51b25b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x248038,_0xd5599b,_0x3a69bb)=>{const _0x4936e7=_0x3a69bb['mapper']['markerNameToElements'](_0xd5599b['markerName']);if(_0x4936e7){for(const _0x8e6c91 of _0x4936e7)_0x8e6c91['hasClass']('ck-suggestion-marker-split')&&(_0x3a69bb['mapper']['unbindElementFromMarkerName'](_0x8e6c91,_0xd5599b['markerName']),_0x3a69bb['writer']['remove'](_0x8e6c91));}},{'priority':'high'}),_0x51b25b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x6a604a,_0x103bc7,_0x2f9134)=>{_0x2f9134['options']['showSuggestionHighlights']&&_e(_0x51b25b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x6a604a,_0x103bc7,_0x2f9134);},{'priority':'high'});}}class J extends _0x165a31{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x552405=this['editor']['plugins']['get']('TrackChangesEditing');_0x552405['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x552405['enableCommand']('findNext'),_0x552405['enableCommand']('findPrevious'),_0x552405['enableCommand']('replace'),_0x552405['enableCommand']('replaceAll');}['handleFindCommand'](_0x91d1d7,_0x5d65a,_0xe424fb={}){const _0x4b06cd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x91d1d7(_0x3732d3=>('string'==typeof _0x5d65a?_0x4b06cd['findByTextCallback'](_0x5d65a,_0xe424fb):_0x5d65a)(_0x3732d3)['filter'](_0x11ad2a=>!0x1===this['_isInDeletionRange'](_0x11ad2a,_0x3732d3['item'])),_0xe424fb);}['_isInDeletionRange'](_0x37e71f,_0x27acb0){const _0x5ac024=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27acb0,_0x37e71f['start']),this['editor']['model']['createPositionAt'](_0x27acb0,_0x37e71f['end']));for(const _0x39e6f7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5ac024['getIntersection'](_0x39e6f7['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x165a31{['afterInit'](){const _0x55dab2=this['editor']['locale'],_0x4531cd=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x57645b,commandName:_0x43d225}of ro)this['editor']['plugins']['has'](_0x57645b)&&(_0x4531cd['enableDefaultAttributesIntegration'](_0x43d225),_0x4531cd['registerInlineAttribute'](_0x43d225));_0x55dab2['t'],_0x4531cd['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x55dab2,'FORMAT_FONT_SIZE')),_0x4531cd['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x55dab2,'FORMAT_FONT_FAMILY')),_0x4531cd['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x55dab2,'FORMAT_FONT_COLOR')),_0x4531cd['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x55dab2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e5393=this['editor'],_0x28f3b2=_0x4e5393['locale'];_0x4e5393['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48fea6=>{const _0x131196=_0x28f3b2['t'];if('formatInline'!=_0x48fea6['type'])return;const {data:_0x3cda5e}=_0x48fea6;if(null!=_0x3cda5e){if('fontSize'==_0x3cda5e['commandName']){const _0x1a41cc=_0x3cda5e['commandParams'][0x0]['value'];if(_0x1a41cc){const _0x188786=_0x131196(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3143fe=>_0x3143fe['model']==_0x1a41cc)['title'])['toLowerCase']();return{'type':'format','content':o(_0x28f3b2,'*Set\x20font\x20size:*\x20%0',_0x188786)};}return{'type':'format','content':o(_0x28f3b2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3cda5e['commandName']){const _0x449fc7=_0x3cda5e['commandParams'][0x0]['value'];return _0x449fc7?{'type':'format','content':o(_0x28f3b2,'*Set\x20font\x20family:*\x20%0',_0x449fc7)}:{'type':'format','content':o(_0x28f3b2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3cda5e['commandName']){const _0x118187=_0x3cda5e['commandParams'][0x0]['value'];if(_0x118187){const _0x481729=_0x218fe1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x447148=>_0x447148['model']==_0x118187);let _0x2acb36=_0x118187,_0x417b15='';return _0x481729&&(_0x2acb36=_0x481729['label'],_0x417b15=_0x131196(_0x2acb36)['toLowerCase']()),{'type':'format','content':o(_0x28f3b2,'*Set\x20font\x20color:*\x20%0',_0x417b15)['trim'](),'color':{'value':_0x118187,'title':_0x417b15||_0x2acb36}};}return{'type':'format','content':o(_0x28f3b2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3cda5e['commandName']){const _0x2148b4=_0x3cda5e['commandParams'][0x0]['value'];if(_0x2148b4){const _0x458882=_0x218fe1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ce19b=>_0x2ce19b['model']==_0x2148b4);let _0x3df699=_0x2148b4,_0x18ce5b='';return _0x458882&&(_0x3df699=_0x458882['label'],_0x18ce5b=_0x131196(_0x3df699)['toLowerCase']()),{'type':'format','content':o(_0x28f3b2,'*Set\x20font\x20background\x20color:*\x20%0',_0x18ce5b)['trim'](),'color':{'value':_0x2148b4,'title':_0x18ce5b||_0x3df699}};}return{'type':'format','content':o(_0x28f3b2,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x165a31{['afterInit'](){const _0x3dc934=this['editor'],_0x50aed8=_0x3dc934['plugins']['get']('TrackChangesEditing'),_0x749608=_0x3dc934['commands']['get']('copyFormat'),_0x26e3bf=_0x3dc934['commands']['get']('pasteFormat');_0x749608&&_0x26e3bf&&(_0x50aed8['enableDefaultAttributesIntegration']('pasteFormat'),_0x50aed8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1eeec1=this['editor'],_0x3bb585=_0x1eeec1['locale'];_0x1eeec1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x416e91=>{if('formatBlock'!=_0x416e91['type']&&'formatInline'!=_0x416e91['type'])return;const {data:_0x5ad8cf}=_0x416e91;if(_0x5ad8cf&&'pasteFormat'===_0x5ad8cf['commandName']){const _0x108173=[],_0x4f9fd1=_0x5ad8cf['commandParams'][0x0];for(const [_0x58af4c,_0x4c9896]of Object['entries'](_0x4f9fd1))_0x108173['push'](so(_0x1eeec1,_0x58af4c,_0x4c9896));return _0x108173['length']?{'type':'format','content':o(_0x3bb585,'*Set\x20format\x20to:*\x20%0',_0x108173['join'](',\x20'))}:{'type':'format','content':o(_0x3bb585,'*Remove\x20all\x20formatting*')};}});}}function so(_0x284595,_0x47d19f,_0x34e08a){const _0x1575bb=_0x284595['locale']['t'],_0x2f7899=_0x47d19f['split'](/(?=[A-Z])/)['join']('\x20'),_0x418c97=_0x1575bb(_0x2f7899['charAt'](0x0)['toUpperCase']()+_0x2f7899['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x34e08a)return _0x418c97;if('fontColor'===_0x47d19f||'fontBackgroundColor'===_0x47d19f){const _0x33610c=_0x218fe1(_0x284595['config']['get']('fontColor.colors'))['find'](_0x391c78=>_0x391c78['model']==_0x34e08a);return _0x418c97+'\x20('+(_0x33610c?_0x1575bb(_0x33610c['label'])['toLowerCase']():_0x34e08a)+')';}if('fontSize'===_0x47d19f&&isNaN(parseFloat(_0x34e08a))){const _0x1a4938=_0x284595['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x284595['config']['get']('fontSize.options'))['find'](_0x2a803e=>_0x2a803e['model']==_0x34e08a);return _0x418c97+'\x20('+(_0x1a4938?_0x1575bb(_0x1a4938['title'])['toLowerCase']():_0x34e08a)+')';}return _0x418c97+'\x20('+_0x34e08a+')';}class Y extends _0x165a31{['_headingOptions'];['afterInit'](){const _0x2dc1ca=this['editor'];if(!_0x2dc1ca['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2dc1ca['config']['get']('heading.options');const _0x5dc151=_0x2dc1ca['locale'],_0x1e706d=_0x2dc1ca['plugins']['get']('TrackChangesEditing');_0x1e706d['enableDefaultAttributesIntegration']('heading');for(const _0x386a3c of this['_headingOptions'])'paragraph'!=_0x386a3c['model']&&_0x1e706d['descriptionFactory']['registerElementLabel'](_0x386a3c['model'],_0x2c37af=>{const _0x26cb2d=this['_getHeadingLevel'](_0x386a3c['model']);return null!==_0x26cb2d?_0x16b5cd(_0x2c37af,_0x26cb2d):_0x36135a(_0x2c37af,_0x386a3c['title']);});function _0x16b5cd(_0x24787f,_0x273dda){return o(_0x5dc151,'ELEMENT_HEADING',[_0x24787f,_0x273dda]);}function _0x36135a(_0x340db0,_0x461b16){return o(_0x5dc151,'ELEMENT_HEADING_CUSTOM',[_0x340db0,_0x461b16]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c7d0b=this['editor'],_0x1a0dfa=_0x5c7d0b['locale'];function _0x301fa5(_0x4d3616,_0x2a4496){return o(_0x1a0dfa,'ELEMENT_HEADING_CUSTOM',[_0x4d3616,_0x2a4496]);}_0x5c7d0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c3d23=>{if('formatBlock'!=_0x4c3d23['type'])return;const {data:_0xa2d30}=_0x4c3d23;if(_0xa2d30&&'heading'==_0xa2d30['commandName']){const _0x42cf9b=_0xa2d30['commandParams'][0x0]['value'],_0x325943=this['_getHeadingLevel'](_0x42cf9b);if(null!==_0x325943)return{'type':'format','content':o(_0x1a0dfa,'*Change\x20to:*\x20%0',(_0x40376b=0x1,_0x52c5cd=_0x325943,o(_0x1a0dfa,'ELEMENT_HEADING',[_0x40376b,_0x52c5cd])))};const _0x240ea4=this['_headingOptions']['find'](_0x2517d0=>_0x2517d0['model']===_0x42cf9b)['title'];return{'type':'format','content':o(_0x1a0dfa,'*Change\x20to:*\x20%0',_0x301fa5(0x1,_0x240ea4))};}var _0x40376b,_0x52c5cd;});}['_getHeadingLevel'](_0x506856){const _0x240213=_0x506856['match'](/^heading(\d+)/);if(_0x240213)return _0x240213[0x1];const _0x40890e=this['_headingOptions']?.['find'](_0x9f60a7=>_0x9f60a7['model']==_0x506856);if(_0x40890e&&_0x40890e['view']){const _0x12be1a=_0x40890e['view'],_0x5ed35b=(_0x12be1a['name']??_0x12be1a)['match'](/^h(\d+)/);if(_0x5ed35b)return _0x5ed35b[0x1];}return null;}}class Z extends _0x165a31{['afterInit'](){const _0x5f0c0f=this['editor'];if(!_0x5f0c0f['plugins']['has']('HighlightEditing'))return;const _0xf1416c=_0x5f0c0f['plugins']['get']('TrackChangesEditing'),_0x3e39d5=_0x5f0c0f['locale'];_0xf1416c['enableDefaultAttributesIntegration']('highlight'),_0xf1416c['registerInlineAttribute']('highlight'),_0xf1416c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3e39d5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x487ad3=this['editor'],_0x41cb6c=_0x487ad3['locale'];_0x487ad3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44b9f3=>{if('formatInline'!=_0x44b9f3['type'])return;const {data:_0xdb36eb}=_0x44b9f3;if(_0xdb36eb&&'highlight'==_0xdb36eb['commandName']){const _0x4b8dfc=_0x41cb6c['t'],_0x5ecd5a=_0xdb36eb['commandParams'][0x0]['value'];if(_0x5ecd5a){const _0x41a4b3=_0x487ad3['config']['get']('highlight.options')['find'](_0x4de1a1=>_0x4de1a1['model']==_0x5ecd5a),_0xd7cb71=_0x4b8dfc(_0x41a4b3['title'])['toLowerCase']();return{'type':'format','content':o(_0x41cb6c,'*Set\x20highlight:*\x20%0',_0xd7cb71),'color':{'value':_0x41a4b3['color'],'title':_0x41a4b3['title']}};}return{'type':'format','content':o(_0x41cb6c,'*Remove\x20highlight*',o(_0x41cb6c,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x165a31{['afterInit'](){const _0x49137c=this['editor'];if(!_0x49137c['plugins']['has']('HorizontalLineEditing'))return;_0x49137c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x16bfb9=_0x49137c['plugins']['get']('TrackChangesEditing'),_0xedf8ca=_0x49137c['locale'];_0x16bfb9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x111b07=>o(_0xedf8ca,'ELEMENT_HORIZONTAL_LINE',_0x111b07)),_0x49137c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x525e80,{writer:_0xe9a3be,options:_0x4919ec})=>{if(!_0x4919ec['showSuggestionHighlights'])return null;const _0x3ca7aa=_0xe9a3be['createContainerElement']('div'),_0x53668f=_0xe9a3be['createEmptyElement']('hr');return _0xe9a3be['addClass']('ck-horizontal-line',_0x3ca7aa),_0xe9a3be['insert'](_0xe9a3be['createPositionAt'](_0x3ca7aa,0x0),_0x53668f),_0x3ca7aa;},'converterPriority':'high'});}}class et extends _0x165a31{['afterInit'](){const _0x405660=this['editor'];if(!_0x405660['plugins']['has']('HtmlEmbed'))return;const _0xda13f5=_0x405660['plugins']['get']('TrackChangesEditing'),_0x4644a5=_0x405660['locale'];_0xda13f5['descriptionFactory']['registerElementLabel']('rawHtml',_0x26d723=>o(_0x4644a5,'ELEMENT_HTML_EMBED',_0x26d723)),_0xda13f5['enableDefaultAttributesIntegration']('htmlEmbed'),_0xda13f5['registerBlockAttribute']('value'),_0xda13f5['descriptionFactory']['registerDescriptionCallback'](_0x430813=>{if('attribute'!=_0x430813['type'])return;const {data:_0x3da096}=_0x430813;if(_0x3da096&&'value'==_0x3da096['key']&&_0x430813['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x116acd=o(_0x4644a5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4644a5,'*Change\x20%0\x20content*',_0x116acd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x168312=this['editor'],_0xa5442c=_0x168312['locale'];_0x168312['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf2fea2=>{if('formatBlock'!=_0xf2fea2['type'])return;const {data:_0x31d7b6}=_0xf2fea2;if(_0x31d7b6&&'htmlEmbed'==_0x31d7b6['commandName']){const _0x10db42=o(_0xa5442c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xa5442c,'*Change\x20%0\x20content*',_0x10db42)};}});}}class it extends _0x165a31{['afterInit'](){const _0x1e0305=this['editor'];if(!_0x1e0305['plugins']['has']('ImageEditing'))return;const _0xd5025=_0x1e0305['plugins']['get']('TrackChangesEditing'),_0x58e27a=_0x1e0305['plugins']['get']('ImageUtils'),_0x3930f3=_0x1e0305['locale'];_0xd5025['enableCommand']('insertImage'),_0xd5025['descriptionFactory']['registerElementLabel']('imageBlock',_0x3fa6a2=>o(_0x3930f3,'ELEMENT_IMAGE',_0x3fa6a2)),_0xd5025['descriptionFactory']['registerElementLabel']('imageInline',_0x1fe12d=>o(_0x3930f3,'ELEMENT_INLINE_IMAGE',_0x1fe12d)),_0xd5025['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3930f3,'ELEMENT_CAPTION')),_0x1e0305['plugins']['has']('ImageUploadEditing')&&_0xd5025['enableCommand']('uploadImage'),_0x1e0305['plugins']['has']('ImageBlockEditing')&&_0x1e0305['plugins']['has']('ImageInlineEditing')&&(_0xd5025['enableCommand']('imageTypeInline',(_0xa7c8e8,_0x312826)=>{const _0x2116dc=_0x58e27a['getClosestSelectedImageElement'](_0x1e0305['model']['document']['selection']);_0x1e0305['model']['change'](()=>{_0xd5025['markBlockFormat'](_0x2116dc,{'commandName':'imageTypeInline','commandParams':[_0x312826]},[],'convertBlockImageToInline');});}),_0xd5025['enableCommand']('imageTypeBlock',(_0x4fae8d,_0x8437e6)=>{_0x1e0305['model']['change'](_0x1aec1e=>{let _0x2cd2df=_0x58e27a['getClosestSelectedImageElement'](_0x1e0305['model']['document']['selection']),_0x459e68=_0x1aec1e['createRangeOn'](_0x2cd2df);const _0x488144=_0x260d24['fromPosition'](_0x459e68['start'],'toPrevious'),_0x4214b3=_0x260d24['fromPosition'](_0x459e68['end'],'toNext');_0xd5025['forceDefaultExecution'](()=>_0x4fae8d(_0x8437e6)),_0x2cd2df=_0x58e27a['getClosestSelectedImageElement'](_0x1e0305['model']['document']['selection']),_0x459e68=_0x1aec1e['createRangeOn'](_0x2cd2df);const _0x20e77e=_0x1aec1e['createRange'](_0x488144,_0x4214b3);_0x488144['detach'](),_0x4214b3['detach'](),_0xd5025['markBlockFormat'](_0x2cd2df,{'commandName':'imageTypeInline','commandParams':[_0x8437e6]},[],'convertInlineImageToBlock'),_0x20e77e['start']['isBefore'](_0x459e68['start'])&&_0xd5025['markInsertion'](_0x1aec1e['createRange'](_0x20e77e['start'],_0x459e68['start']),'convertInlineImageToBlock'),_0x459e68['end']['isBefore'](_0x20e77e['end'])&&_0xd5025['markInsertion'](_0x1aec1e['createRange'](_0x459e68['end'],_0x20e77e['end']),'convertInlineImageToBlock');});}),_0xd5025['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xd5025['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xd5025['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xd5025['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xd5025['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xd5025['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x35f349])=>{const _0xf0e582=_0xd5025['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3d3d87=_0x35f349['start'],_0x51de26=_0x35f349['end'];const _0x43306b=_0x1e0305['model']['schema']['getNearestSelectionRange'](_0x3d3d87,'backward'),_0x238740=_0x1e0305['model']['schema']['getNearestSelectionRange'](_0x51de26,'forward');_0x43306b['isCollapsed']&&(_0x3d3d87=_0x43306b['start']),_0x238740['isCollapsed']&&(_0x51de26=_0x238740['end']),_0xf0e582([_0x1e0305['model']['createRange'](_0x3d3d87,_0x51de26)]);}),_0xd5025['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x22f1c6),_0xd5025['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x22f1c6)),_0x1e0305['plugins']['has']('ImageCaptionEditing')&&(_0xd5025['enableCommand']('toggleImageCaption',(_0x55b9a4,_0x59b3bf)=>{const _0x35f0cf=_0x1e0305['plugins']['get']('ImageCaptionUtils');let _0x3298c4=_0x58e27a['getClosestSelectedImageElement'](_0x1e0305['model']['document']['selection']),_0xb07685=_0x35f0cf['getCaptionFromImageModelElement'](_0x3298c4);_0x1e0305['model']['change'](()=>{if(_0xb07685)return void _0xd5025['markDeletion'](_0x1e0305['model']['createRangeOn'](_0xb07685));const _0x59dfe8=_0x58e27a['isBlockImage'](_0x3298c4);_0x55b9a4(_0x59b3bf),_0x3298c4=_0x58e27a['getClosestSelectedImageElement'](_0x1e0305['model']['document']['selection']),_0xb07685=_0x35f0cf['getCaptionFromImageModelElement'](_0x3298c4),_0xd5025['markInsertion'](_0x1e0305['model']['createRangeOn'](_0xb07685),_0x59dfe8?null:'imageCaption');});}),_0xd5025['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x22f1c6));const _0x956ae1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1f5545(_0x3ddec1,_0x1444d7){const _0x2bf17c=_0x956ae1['findIndex'](({type:_0x3bbef4,subType:_0x13e0b3})=>_0x3ddec1['type']==_0x3bbef4&&_0x3ddec1['subType']==_0x13e0b3),_0x2e0889=_0x956ae1['findIndex'](({type:_0x85cc35,subType:_0x448eb4})=>_0x1444d7['type']==_0x85cc35&&_0x1444d7['subType']==_0x448eb4);if(_0x2bf17c<0x0||_0x2e0889<0x0)return!0x1;const _0x9e60c0=_0x3ddec1['getFirstRange'](),_0xccd144=_0x1444d7['getFirstRange']();if((0x0==_0x2bf17c||0x1==_0x2bf17c)&&0x2==_0x2e0889&&_0x9e60c0['isIntersecting'](_0xccd144))return!0x0;if(0x2==_0x2bf17c&&0x3==_0x2e0889){const _0x59137d=_0xd5025['_findSuggestions'](_0x9e60c0,'insertion')['filter'](({suggestion:_0x47e452,meta:_0xda004d})=>_0xda004d['isOwn']&&'convertInlineImageToBlock'==_0x47e452['subType']);if(_0x59137d['length']>0x1&&_0xccd144['end']['isEqual'](_0x9e60c0['start']))return!0x0;if(0x1==_0x59137d['length']&&(_0x9e60c0['start']['isEqual'](_0xccd144['end'])||_0x9e60c0['end']['isEqual'](_0xccd144['start'])))return!0x0;}if(0x3==_0x2bf17c&&0x3==_0x2e0889&&_0x9e60c0['start']['isBefore'](_0xccd144['start'])){const _0x30e3ff=_0x9e60c0['end']['nodeAfter'],_0x3ce9bb=_0xccd144['start']['nodeBefore'];return _0x58e27a['isBlockImage'](_0x30e3ff)&&_0x30e3ff===_0x3ce9bb;}return!0x1;}function _0x22f1c6(_0x44392b,_0x6474b7){return _0x1f5545(_0x44392b,_0x6474b7)?[_0x44392b,_0x6474b7]:_0x1f5545(_0x6474b7,_0x44392b)?[_0x6474b7,_0x44392b]:null;}_0x1e0305['plugins']['has']('ImageResize')&&(_0xd5025['enableDefaultAttributesIntegration']('resizeImage'),_0xd5025['registerBlockAttribute']('resizedWidth'),_0xd5025['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3930f3,'FORMAT_IMAGE_SIZE'))),_0x1e0305['plugins']['has']('ImageTextAlternativeEditing')&&(_0xd5025['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xd5025['registerBlockAttribute']('alt')),_0xd5025['descriptionFactory']['registerDescriptionCallback'](_0x3b7e6e=>{if(!!_0x956ae1['find'](({type:_0x38e4c7,subType:_0x50d89e})=>_0x3b7e6e['type']==_0x38e4c7&&_0x3b7e6e['subType']==_0x50d89e))return _0x3b7e6e['previous']?{}:void 0x0;}),_0xd5025['descriptionFactory']['registerDescriptionCallback'](_0x44636e=>{if('insertion'==_0x44636e['type']||'deletion'==_0x44636e['type']){const _0x59ff24=_0x44636e['getContainedElement']();if(_0x59ff24&&_0x59ff24['is']('element','caption'))return{'type':'insertion'==_0x44636e['type']?'addObject':'removeObject','element':_0x59ff24,'quantity':0x1};}}),_0xd5025['descriptionFactory']['registerDescriptionCallback'](_0x6f871=>'formatBlock'==_0x6f871['type']&&'convertInlineImageToBlock'==_0x6f871['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x6f871['type']&&'convertBlockImageToInline'==_0x6f871['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xd5025['descriptionFactory']['registerDescriptionCallback'](_0xdd282a=>{if('attribute'!=_0xdd282a['type'])return;const {data:_0x11dc18}=_0xdd282a;if(!_0x11dc18||'alt'!=_0x11dc18['key'])return;const _0x575d05=_0x11dc18['newValue'];return _0x575d05?{'type':'format','content':o(_0x3930f3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x575d05+'\x22')}:{'type':'format','content':o(_0x3930f3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbebaf0=this['editor'],_0x249507=_0xbebaf0['locale'];_0xbebaf0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b3189=>{if('formatBlock'!=_0x4b3189['type']&&'formatInline'!=_0x4b3189['type'])return;const {data:_0x3fada3}=_0x4b3189;if(_0x3fada3){if('imageTextAlternative'==_0x3fada3['commandName']){const _0x157ec6=_0x3fada3['commandParams'][0x0]['newValue'];return _0x157ec6?{'type':'format','content':o(_0x249507,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x157ec6+'\x22')}:{'type':'format','content':o(_0x249507,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3fada3['commandName']){const _0x2f5f29=_0x3fada3['commandParams'][0x0]['width'];return _0x2f5f29?{'type':'format','content':o(_0x249507,'*Set\x20image\x20width:*\x20%0',_0x2f5f29)}:{'type':'format','content':o(_0x249507,'*Reset\x20image\x20width*')};}}});}}class st extends _0x165a31{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xe93ded=this['editor']['locale'],_0x4e7e39=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e7e39['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4e7e39['registerBlockAttribute']('src'),_0x4e7e39['descriptionFactory']['registerDescriptionCallback'](_0x502590=>{if('attribute'!=_0x502590['type'])return;const {data:_0x2729c4}=_0x502590;return _0x2729c4&&'src'==_0x2729c4['key']?_0x2729c4['newValue']&&_0x2729c4['oldValue']?{'type':'format','content':o(_0xe93ded,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x212248=this['editor']['plugins']['get']('TrackChangesEditing');_0x212248['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x212248['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x212248['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x212248['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b9837=this['editor'],_0x15c32b=_0x3b9837['locale'];_0x3b9837['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x331fcd=>{if('formatBlock'!=_0x331fcd['type']&&'formatInline'!=_0x331fcd['type'])return;const {data:_0x3ca5eb}=_0x331fcd;if(!_0x3ca5eb||'replaceImageSource'!=_0x3ca5eb['commandName'])return;return{'type':'format','content':o(_0x15c32b,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x165a31{['afterInit'](){const _0x7af854=this['editor'];if(!_0x7af854['plugins']['has']('ImageStyleEditing'))return;const _0x1c253f=_0x7af854['plugins']['get']('TrackChangesEditing'),_0x290f11=_0x7af854['plugins']['get']('ImageUtils'),_0x2ce507={};_0x1c253f['enableCommand']('imageStyle',(_0x4ffe7c,_0x47ced6)=>{const _0x15e7d3=_0x7af854['plugins']['get']('Users')['me'],_0x1a5594=_0x7af854['commands']['get']('imageStyle');let _0x3ad6aa=_0x290f11['getClosestSelectedImageElement'](_0x7af854['model']['document']['selection']),_0x3b9759=_0x7af854['model']['createRangeOn'](_0x3ad6aa),_0x1dc30a=_0x1a5594['value'];if(_0x1dc30a==_0x47ced6['value'])return;const _0x9d224c={'commandName':'imageStyle','commandParams':[_0x47ced6],'formatGroupId':_0x1a0dc4()};_0x7af854['model']['change'](()=>{if(_0x1c253f['getSuggestions']()['filter'](_0x13cdfa=>_0x13cdfa['isInContent']&&_0x15e7d3==_0x13cdfa['author']&&('formatBlock'==_0x13cdfa['type']||'formatInline'==_0x13cdfa['type'])&&('imageStylePreApply'==_0x13cdfa['subType']||'imageStylePostApply'==_0x13cdfa['subType'])&&_0x13cdfa['getFirstRange']()['isEqual'](_0x3b9759))['forEach'](_0x26ebb1=>_0x1c253f['discardSuggestion'](_0x26ebb1['head'])),_0x3ad6aa=_0x290f11['getClosestSelectedImageElement'](_0x7af854['model']['document']['selection']),_0x3b9759=_0x7af854['model']['createRangeOn'](_0x3ad6aa),_0x1a5594['refresh'](),_0x7af854['commands']['get']('imageTypeInline')['refresh'](),_0x7af854['commands']['get']('imageTypeBlock')['refresh'](),_0x1dc30a=_0x1a5594['value'],_0x1dc30a!=_0x47ced6['value'])return _0x290f11['isInlineImage'](_0x3ad6aa)&&_0x1a5594['shouldConvertImageType'](_0x47ced6['value'],_0x3ad6aa)?(_0x4ffe7c({..._0x47ced6,'setImageSizes':!0x1}),_0x3ad6aa=_0x290f11['getClosestSelectedImageElement'](_0x7af854['model']['document']['selection']),void _0x1c253f['markBlockFormat'](_0x3ad6aa,{..._0x9d224c,'commandReversedParams':[{'value':_0x1dc30a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x290f11['isBlockImage'](_0x3ad6aa)?_0x1c253f['markBlockFormat'](_0x3ad6aa,_0x9d224c,[],'imageStylePostApply'):_0x1c253f['markInlineFormat'](_0x3b9759,_0x9d224c,'imageStylePostApply'));});});for(const _0x2cc648 of _0x7af854['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2ce507[_0x2cc648['name']]=_0x2cc648['title']['toLowerCase']();_0x1c253f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1c253f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1c253f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1c253f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3954e5])=>{_0x290f11['setImageNaturalSizeAttributes'](_0x3954e5['getContainedElement']());}),_0x1c253f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1df408,_0x3384cf)=>{_0x1c253f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1df408,{'commandName':_0x3384cf['commandName'],'commandParams':_0x3384cf['commandReversedParams']});}),_0x1c253f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x39e39d,_0x54f189){if(_0x1a7637(_0x39e39d,_0x54f189))return[_0x39e39d,_0x54f189];if(_0x1a7637(_0x54f189,_0x39e39d))return[_0x54f189,_0x39e39d];return null;});const _0x5a5669=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a7637(_0x478c1c,_0xb4dd87){const _0x47faa9=_0x5a5669['findIndex'](({type:_0xb32db7,subType:_0x24a18e})=>_0x478c1c['type']==_0xb32db7&&_0x478c1c['subType']==_0x24a18e),_0x3c6de3=_0x5a5669['findIndex'](({type:_0xc26d12,subType:_0x3d6712})=>_0xb4dd87['type']==_0xc26d12&&_0xb4dd87['subType']==_0x3d6712);if(_0x47faa9<0x0||_0x3c6de3<0x0)return!0x1;const _0x568f78=_0x478c1c['getFirstRange'](),_0x1b6661=_0xb4dd87['getFirstRange']();if((0x0==_0x47faa9||0x1==_0x47faa9)&&0x2==_0x3c6de3&&_0x568f78['isIntersecting'](_0x1b6661))return!0x0;if(0x2==_0x47faa9&&0x3==_0x3c6de3){const _0xc2faa3=_0x1c253f['_findSuggestions'](_0x568f78,'insertion')['filter'](({suggestion:_0x25d858,meta:_0x89207a})=>_0x89207a['isOwn']&&'convertInlineImageToBlock'==_0x25d858['subType']);if(_0xc2faa3['length']>0x1&&_0x1b6661['end']['isEqual'](_0x568f78['start']))return!0x0;if(0x1==_0xc2faa3['length']&&(_0x568f78['start']['isEqual'](_0x1b6661['end'])||_0x568f78['end']['isEqual'](_0x1b6661['start'])))return!0x0;}if(0x3==_0x47faa9&&0x3==_0x3c6de3&&_0x568f78['start']['isBefore'](_0x1b6661['start'])){const _0x554d06=_0x568f78['end']['nodeAfter'],_0x14f3e7=_0x1b6661['start']['nodeBefore'];return _0x290f11['isBlockImage'](_0x554d06)&&_0x554d06===_0x14f3e7;}return!0x1;}_0x7af854['model']['document']['registerPostFixer'](()=>{let _0x44a665=!0x1;const _0x318b12=Array['from'](_0x7af854['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45e37d,data:_0x419b79}of _0x318b12){const {group:_0x2dcef2,type:_0x3db456,subType:_0x26ab20,id:_0x2859a7}=_0x1c253f['_splitMarkerName'](_0x45e37d);if('suggestion'==_0x2dcef2&&_0x1c253f['hasSuggestion'](_0x2859a7)){if('formatBlock'==_0x3db456&&('imageStylePreApply'==_0x26ab20||'imageStylePostApply'==_0x26ab20)){const _0x58a1f2=_0x1c253f['getSuggestion'](_0x2859a7);if(_0x419b79['newRange']){const _0x583553=_0x58a1f2['getFirstRange']()['getContainedElement']();if(_0x290f11['isBlockImage'](_0x583553))continue;_0x1c253f['discardSuggestion'](_0x58a1f2),_0x44a665=!0x0;}}if('insertion'==_0x3db456&&'imageCaption'==_0x26ab20&&!_0x419b79['newRange']){const _0x28034b=_0x1c253f['getSuggestion'](_0x2859a7);_0x28034b['next']&&_0x28034b['next']['isInContent']&&(_0x1c253f['discardSuggestion'](_0x28034b['next']),_0x44a665=!0x0);}}}return _0x44a665;}),this['_registerLegacyDescription'](_0x2ce507);}['_registerLegacyDescription'](_0x274255){const _0x233e81=this['editor'],_0x3096fd=_0x233e81['locale'];_0x233e81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c2da5=>{if('formatBlock'!=_0x3c2da5['type']&&'formatInline'!=_0x3c2da5['type'])return;const {data:_0x4ecc5d}=_0x3c2da5;if(!_0x4ecc5d||'imageStyle'!=_0x4ecc5d['commandName'])return;const _0x834f9f=_0x4ecc5d['commandParams'][0x0]['value'];return _0x22dd43('side'===_0x834f9f?o(_0x3096fd,'FORMAT_SIDE_IMAGE'):_0x274255[_0x834f9f]||_0x834f9f);function _0x22dd43(_0x28ec9b){return{'type':'format','content':o(_0x3096fd,'*Format:*\x20%0',_0x28ec9b)};}});}}class ot extends _0x165a31{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x16f75e){super(_0x16f75e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x16468b=this['editor'],_0x3216bb=_0x16468b['commands']['get']('importWord'),_0x57a2f8=_0x16468b['commands']['get']('trackChanges');_0x3216bb&&(_0x3216bb['on']('execute',(_0x1955c3,[,_0x356dab])=>{this['_trackChangesValueDuringImport']=_0x57a2f8['value'],_0x356dab['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3216bb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3216bb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x57a2f8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x16468b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2a34a8,_0x455a91){const {suggestions:_0x2f4abd}=_0x455a91,_0x3862b3=this['editor']['commands']['get']('trackChanges'),_0x1248a0=_0x3862b3['value'];this['_trackChangesValueDuringImport']!==_0x1248a0&&(_0x3862b3['execute'](),this['_trackChangesExecuted']=!0x0),_0x2f4abd&&_0x2f4abd['forEach'](({id:_0x5475c6,type:_0xd2428b,author:_0xf325c9,created_at:_0x30cf95})=>{const _0x1a376d={'id':_0x5475c6,'type':_0xd2428b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xf325c9,'createdAt':_0x30cf95?new Date(_0x30cf95):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1a376d);});}}class rt extends _0x165a31{['afterInit'](){const _0x1f9844=this['editor'],_0x425065=_0x1f9844['plugins']['get']('TrackChangesEditing');if(_0x1f9844['plugins']['has']('IndentEditing')&&(_0x425065['enableCommand']('indent'),_0x425065['enableCommand']('outdent')),_0x1f9844['plugins']['has']('IndentBlock')){for(const _0x73d5b1 of['indentBlock','outdentBlock'])_0x425065['enableDefaultAttributesIntegration'](_0x73d5b1);}const _0x2e2155=_0x1f9844['locale'];_0x425065['registerBlockAttribute']('blockIndent'),_0x425065['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2e2155,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42468c=this['editor'],_0x40a1d2=_0x42468c['locale'],_0x524af5=_0x42468c['plugins']['get']('TrackChangesEditing');_0x524af5['descriptionFactory']['registerDescriptionCallback'](_0x397bb8=>{if('formatBlock'!=_0x397bb8['type'])return;const {data:_0x2425f3}=_0x397bb8;if(!_0x2425f3)return;if('indentBlock'!=_0x2425f3['commandName']&&'outdentBlock'!=_0x2425f3['commandName'])return;const _0x2c6d35=_0x397bb8['getItems']()[0x0],_0x487795=_0x524af5['descriptionFactory']['getItemLabel'](_0x2c6d35);return'indentBlock'==_0x2425f3['commandName']?{'type':'format','content':o(_0x40a1d2,'*Indent:*\x20%0',_0x487795)}:'outdentBlock'==_0x2425f3['commandName']?{'type':'format','content':o(_0x40a1d2,'*Outdent:*\x20%0',_0x487795)}:void 0x0;});}}class at extends _0x165a31{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x165a31{['afterInit'](){const _0x58ab51=this['editor'];if(!_0x58ab51['plugins']['has']('LinkEditing'))return;const _0x48f219=_0x58ab51['plugins']['get']('TrackChangesEditing'),_0x3c7f28=_0x58ab51['commands']['get']('link');_0x48f219['enableDefaultAttributesIntegration']('link'),_0x48f219['enableDefaultAttributesIntegration']('unlink'),_0x48f219['registerInlineAttribute']('linkHref');for(const _0x428d1a of _0x3c7f28['manualDecorators'])_0x48f219['registerInlineAttribute'](_0x428d1a['id']),_0x48f219['descriptionFactory']['registerAttributeLabel'](_0x428d1a['id'],'link\x20('+_0x428d1a['label']['toLowerCase']()+')');_0x48f219['descriptionFactory']['registerDescriptionCallback'](_0x930812=>{if('attribute'!=_0x930812['type'])return;const {data:_0x5282d1}=_0x930812;if(!_0x5282d1||'linkHref'!=_0x5282d1['key'])return;const _0x2feaee=_0x5282d1['newValue'],_0x17fba9=_0x58ab51['locale'];return{'type':'format','content':null==_0x2feaee?o(_0x17fba9,'*Remove\x20link*'):o(_0x17fba9,'*Set\x20link:*\x20%0','\x22'+_0x2feaee+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d913f=this['editor'],_0x47ce31=_0x2d913f['locale'];_0x2d913f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaf3176=>{if('formatInline'!=_0xaf3176['type'])return;const {data:_0x5c6d0d}=_0xaf3176;if(_0x5c6d0d){if('link'==_0x5c6d0d['commandName']){const _0x460e06=_0x5c6d0d['commandParams'][0x0];return{'type':'format','content':o(_0x47ce31,'*Set\x20link:*\x20%0','\x22'+_0x460e06+'\x22')};}return'unlink'==_0x5c6d0d['commandName']?{'type':'format','content':o(_0x47ce31,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x165a31{['afterInit'](){const _0x1c8a79=this['editor'],_0x4cbb3f=_0x1c8a79['locale'];if(!_0x1c8a79['plugins']['has']('LegacyListEditing'))return;const _0xff75e6=_0x1c8a79['plugins']['get']('TrackChangesEditing'),_0x49287b=_0x1c8a79['plugins']['has']('LegacyTodoListEditing');function _0x245147(_0x25982a){return()=>{const _0x3c0df1=_0x1c8a79['model']['document']['selection'],_0x176e78=_0x1c8a79['commands']['get'](_0x25982a);if(_0x176e78['value'])return void _0x1c8a79['execute']('paragraph',{});const _0xa379e0=_0x25982a['slice'](0x0,-0x4),_0x59958c=function(_0x38dfa2,_0x5bce29,_0x47bcc4){let _0x1adc4e=Array['from'](_0x38dfa2)['filter'](_0xb3866=>function(_0x2cfe6b,_0x52e04d){return _0x52e04d['checkChild'](_0x2cfe6b['parent'],'listItem')&&!_0x52e04d['isObject'](_0x2cfe6b);}(_0xb3866,_0x47bcc4));_0x1adc4e=_0x1adc4e['filter'](_0x5bbf02=>!_0x5bbf02['is']('element','listItem')||_0x5bbf02['getAttribute']('listType')!=_0x5bce29);const _0x5f15c2=new Set();for(const _0x444c23 of _0x1adc4e)_0x444c23['is']('element','listItem')?_0x5f15c2['add'](me(_0x444c23)):_0x5f15c2['add'](_0x444c23);return Array['from'](_0x5f15c2);}(_0x3c0df1['getSelectedBlocks'](),_0xa379e0,_0x1c8a79['model']['schema']);_0x1c8a79['model']['change'](()=>{for(const _0x4c2fe0 of _0x59958c)_0xff75e6['markBlockFormat'](_0x4c2fe0,{'commandName':_0x25982a,'commandParams':[{'forceValue':!_0x176e78['value']}],'formatGroupId':'blockName'},fe(_0x4c2fe0));});};}function _0x53b911(_0x2c8bde){return()=>{const _0x4b2257=function(_0x3baeb){let _0xd12e87=Array['from'](_0x3baeb);const _0x525ff2=_0xd12e87['findIndex'](_0xb7c9e8=>'listItem'!=_0xb7c9e8['name']);return _0x525ff2>-0x1&&(_0xd12e87=_0xd12e87['slice'](0x0,_0x525ff2)),_0xd12e87;}(_0x1c8a79['model']['document']['selection']['getSelectedBlocks']()),_0x1ee2cc=_0x1c8a79['model']['createRange'](_0x1c8a79['model']['createPositionAt'](_0x4b2257[0x0],'before'),_0x1c8a79['model']['createPositionAt'](_0x4b2257[_0x4b2257['length']-0x1],'end'));_0x1c8a79['model']['change'](()=>{_0xff75e6['markBlockFormat'](_0x1ee2cc,{'commandName':_0x2c8bde,'commandParams':[],'formatGroupId':'listIndent'},function(_0x275f25){const _0x3382fe=new Set();for(const _0x5c2001 of _0x275f25){let _0x1a40a8=_0x5c2001['nextSibling'];for(;_0x1a40a8&&_0x1a40a8['getAttribute']('listIndent')>_0x5c2001['getAttribute']('listIndent');)_0x3382fe['add'](_0x1a40a8),_0x1a40a8=_0x1a40a8['nextSibling'];}return Array['from'](_0x3382fe);}(_0x4b2257));});};}_0xff75e6['enableCommand']('numberedList',_0x245147('numberedList')),_0xff75e6['enableCommand']('bulletedList',_0x245147('bulletedList')),_0x49287b&&_0xff75e6['enableCommand']('todoList',_0x245147('todoList')),_0xff75e6['enableCommand']('indentList',_0x53b911('indentList')),_0xff75e6['enableCommand']('outdentList',_0x53b911('outdentList')),_0x49287b&&_0xff75e6['enableCommand']('checkTodoList',()=>{const _0x2ff308=_0x1c8a79['commands']['get']('checkTodoList'),_0x1e0ee4=Array['from'](_0x2ff308['_selectedElements']);_0x1e0ee4['filter'](_0x90629b=>_0x90629b['getAttribute']('todoListChecked')!=_0x2ff308['value']),_0x1c8a79['model']['change'](()=>{for(const _0x3c4f80 of _0x1e0ee4)_0xff75e6['markBlockFormat'](_0x3c4f80,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2ff308['value']}]});});}),_0xff75e6['descriptionFactory']['registerElementLabel']('listItem',_0x17656e=>o(_0x4cbb3f,'ELEMENT_LIST_ITEM',_0x17656e)),_0xff75e6['descriptionFactory']['registerDescriptionCallback'](_0x46da15=>{if('formatBlock'!=_0x46da15['type']&&'formatInline'!=_0x46da15['type'])return;const {data:_0x29659f}=_0x46da15;if(_0x29659f){if('numberedList'==_0x29659f['commandName']||'bulletedList'==_0x29659f['commandName']||'todoList'==_0x29659f['commandName'])switch(_0x29659f['commandName']['replace']('List','')){case'bulleted':return _0x14076b(o(_0x4cbb3f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14076b(o(_0x4cbb3f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14076b(o(_0x4cbb3f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x29659f['commandName'])return{'type':'format','content':o(_0x4cbb3f,'*Indent:*\x20%0',o(_0x4cbb3f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x29659f['commandName'])return{'type':'format','content':o(_0x4cbb3f,'*Outdent:*\x20%0',o(_0x4cbb3f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x29659f['commandName'])return _0x29659f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cbb3f,'*Check\x20item*')}:{'type':'format','content':o(_0x4cbb3f,'*Uncheck\x20item*')};}function _0x14076b(_0x2a7d43){return{'type':'format','content':o(_0x4cbb3f,'*Change\x20to:*\x20%0',_0x2a7d43)};}});}}function me(_0x2549d2){const _0xd127f8=_0x2549d2['getAttribute']('listIndent');if(0x0==_0xd127f8)return _0x2549d2;let _0x3120de=_0x2549d2;for(;_0x2549d2['previousSibling']&&_0x2549d2['previousSibling']['is']('element','listItem');){const _0x7c2a03=_0x2549d2['previousSibling']['getAttribute']('listIndent');if(_0x7c2a03==_0xd127f8)_0x3120de=_0x2549d2['previousSibling'];else{if(_0x7c2a03<_0xd127f8)break;}_0x2549d2=_0x2549d2['previousSibling'];}return _0x3120de;}function fe(_0x41ff46){const _0x3436ff=[];if(_0x41ff46['is']('element','listItem')&&_0x41ff46['getAttribute']('listIndent')>0x0){let _0x1a7dc6=_0x41ff46['nextSibling'];for(;_0x1a7dc6&&'listItem'==_0x1a7dc6['name']&&_0x1a7dc6['getAttribute']('listIndent')==_0x41ff46['getAttribute']('listIndent');)_0x3436ff['push'](_0x1a7dc6),_0x1a7dc6=_0x1a7dc6['nextSibling'];}return _0x3436ff;}class K extends _0x165a31{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x21cf8f=this['editor']['config']['get']('list.properties'),_0x277895=this['editor']['plugins']['get']('TrackChangesEditing');_0x21cf8f['styles']&&_0x277895['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x21cf8f['reversed']&&_0x277895['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x21cf8f['startIndex']&&_0x277895['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x277895['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4c9b2a,_0x5aee23={}){const _0x290858=this['editor']['plugins']['get']('TrackChangesEditing'),_0x485b03=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x290858['markMultiRangeBlockFormat'](_0x485b03,{'commandName':'listStyle','commandParams':[{'type':_0x5aee23['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x556fc9,_0x2a6ce8={}){const _0x27fcdc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x364055=this['_getSuggestionBlocks'](_0x47a1a=>_0x47a1a['is']('element','listItem')&&'numbered'===_0x47a1a['getAttribute']('listType'));if(_0x364055['length']<0x1)return;const _0x26c200=_0x364055['map'](_0x10d5b5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10d5b5,'before'),this['editor']['model']['createPositionAt'](_0x10d5b5,0x0)));this['editor']['model']['change'](()=>{_0x27fcdc['markMultiRangeBlockFormat'](_0x26c200,{'commandName':'listReversed','commandParams':[{'reversed':_0x2a6ce8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x397aa2,_0x26d8a7={}){const _0x5c3a54=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe1ea98=this['_getSuggestionBlocks'](_0x536ba8=>_0x536ba8['is']('element','listItem')&&'numbered'===_0x536ba8['getAttribute']('listType'));if(_0xe1ea98['length']<0x1)return;const _0x22b861=_0xe1ea98['map'](_0x440f3e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x440f3e,'before'),this['editor']['model']['createPositionAt'](_0x440f3e,0x0)));this['editor']['model']['change'](()=>{_0x5c3a54['markMultiRangeBlockFormat'](_0x22b861,{'commandName':'listStart','commandParams':[{'startIndex':_0x26d8a7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x43dcf8){if('formatBlock'!=_0x43dcf8['type']&&'formatInline'!=_0x43dcf8['type'])return;const _0x37ddd0=this['editor']['locale'],{data:_0x44f621}=_0x43dcf8;if(!_0x44f621)return;let _0x475543,_0x4237ff;switch(_0x44f621['commandName']){case'listStyle':_0x475543='*Change\x20to:*\x20%0',_0x4237ff={'type':'format','content':o(_0x37ddd0,_0x475543,o(_0x37ddd0,this['_getTranslationKeyForListStyle'](_0x44f621['commandParams'][0x0]['type'])))};break;case'listReversed':_0x475543=_0x44f621['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4237ff={'type':'format','content':o(_0x37ddd0,_0x475543)};break;case'listStart':_0x475543='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4237ff={'type':'format','content':o(_0x37ddd0,_0x475543,_0x44f621['commandParams'][0x0]['startIndex'])};}return _0x4237ff;}['_getSuggestionBlocksForListStyle'](){const _0x247a67=this['editor']['plugins']['get']('LegacyListUtils');let _0x449c3a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x449c3a[0x0]?.['is']('element','listItem')&&_0x449c3a['unshift'](..._0x247a67['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x449c3a[_0x449c3a['length']-0x1]?.['is']('element','listItem')&&_0x449c3a['push'](..._0x247a67['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x449c3a=[...new Set(_0x449c3a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x449c3a=_0x449c3a['filter'](_0x2876b8=>_0x2876b8['is']('element','listItem'))),_0x449c3a;}['_getSuggestionBlocks'](_0x18cfdc){const _0x36e282=this['editor']['plugins']['get']('LegacyListUtils');let _0x54e750=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x18cfdc)['map'](_0xdf1af6=>{const _0x546366=this['editor']['model']['createPositionAt'](_0xdf1af6,0x0);return[..._0x36e282['getSiblingNodes'](_0x546366,'backward'),..._0x36e282['getSiblingNodes'](_0x546366,'forward')];})['flat']();return _0x54e750=[...new Set(_0x54e750)],_0x54e750;}['_getTranslationKeyForListStyle'](_0x300b8e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x300b8e)||'default')['toUpperCase']()+'_LIST_'+_0x300b8e['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x165a31{['afterInit'](){const _0x32b53d=this['editor'];if(!_0x32b53d['plugins']['has']('MediaEmbedEditing'))return;const _0x41d55b=_0x32b53d['plugins']['get']('TrackChangesEditing'),_0x211d10=_0x32b53d['locale'];_0x41d55b['enableCommand']('mediaEmbed'),_0x41d55b['descriptionFactory']['registerElementLabel']('media',_0xb0f8c6=>o(_0x211d10,'ELEMENT_MEDIA',_0xb0f8c6)),_0x32b53d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5003bb,{writer:_0x254ace,options:_0x4d3eed})=>{if(_0x4d3eed['showSuggestionHighlights'])return _0x254ace['createEmptyElement']('div');},'converterPriority':'high'}),_0x32b53d['data']['downcastDispatcher']['on']('attribute:url:media',(_0xd480e5,_0x1b66b8,_0x33a7f1)=>{_0x33a7f1['options']['showSuggestionHighlights']&&_0xd480e5['stop']();},{'priority':'high'});}}class gt extends _0x165a31{['afterInit'](){const _0x26b20a=this['editor'];_0x26b20a['plugins']['has']('MentionEditing')&&_0x26b20a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x165a31{['afterInit'](){const _0x4b72de=this['editor'],_0x8f93d0=_0x4b72de['plugins']['get']('TrackChangesEditing');_0x4b72de['plugins']['has']('MultiLevelList')&&(_0x8f93d0['enableDefaultAttributesIntegration']('multiLevelList'),_0x8f93d0['registerBlockAttribute']('listMarkerStyle'),_0x8f93d0['descriptionFactory']['registerDescriptionCallback'](_0x15e55e=>this['handleDescriptions'](_0x15e55e)));}['handleDescriptions'](_0x4468f7){const _0x228727=this['editor']['locale'],{data:_0x51970d}=_0x4468f7,_0x1a001a={'type':'format','content':''};if(_0x51970d&&'listMarkerStyle'==_0x51970d['key']){if(!_0x51970d['oldValue'])return{'type':'format','content':o(_0x228727,'*Set\x20format:*\x20%0',o(_0x228727,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x51970d['newValue']+')'};if(!_0x51970d['newValue']){let _0x2cffaa=_0x4468f7['head'];for(;_0x2cffaa;){if(_0x2cffaa['data']&&'listType'==_0x2cffaa['data']['key']&&_0x2cffaa['data']['newValue'])return _0x1a001a;_0x2cffaa=_0x2cffaa['next'];}return{'type':'format','content':o(_0x228727,'*Remove\x20format:*\x20%0',o(_0x228727,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x51970d['oldValue']+')'};}}}}class mt extends _0x165a31{['afterInit'](){const _0x484750=this['editor'];if(!_0x484750['plugins']['has']('PageBreakEditing'))return;_0x484750['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x466807=_0x484750['plugins']['get']('TrackChangesEditing'),_0x4c8458=_0x484750['locale'];_0x466807['descriptionFactory']['registerElementLabel']('pageBreak',_0x3cc815=>o(_0x4c8458,'ELEMENT_PAGE_BREAK',_0x3cc815));}}class dt extends _0x165a31{['afterInit'](){const _0x5bda21=this['editor'];if(!_0x5bda21['plugins']['has']('Paragraph'))return;const _0x2b453d=_0x5bda21['locale'],_0x3e13b7=_0x5bda21['plugins']['get']('TrackChangesEditing');_0x3e13b7['descriptionFactory']['registerElementLabel']('paragraph',_0x17a9a0=>o(_0x2b453d,'ELEMENT_PARAGRAPH',_0x17a9a0)),_0x3e13b7['enableDefaultAttributesIntegration']('paragraph'),_0x3e13b7['enableCommand']('insertParagraph'),_0x5bda21['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5bda21),{'priority':'highest'}),_0x5bda21['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x22ea29,_0x2f4449,_0x3b24ea)=>{_0x3b24ea['options']['showSuggestionHighlights']&&nr(_0x5bda21,{'showActiveMarker':!0x1})(_0x22ea29,_0x2f4449,_0x3b24ea);},{'priority':'highest'});const _0x54899c=_0x3e13b7['descriptionFactory'];_0x54899c['registerDescriptionCallback'](_0x24c225=>{if('insertion'!==_0x24c225['type'])return;const {start:_0x20524d,end:_0x22c0ea}=_0x24c225['getFirstRange']();if(!_0x20524d['isTouching'](_0x22c0ea)||!_0x20524d['nodeAfter'])return;const _0x51e69f=_0x5bda21['model']['schema'],_0x11de37=_0x20524d['nodeAfter'];return _0x51e69f['isBlock'](_0x11de37)&&!_0x51e69f['isLimit'](_0x11de37)&&_0x51e69f['checkChild'](_0x11de37,'$text')?{'type':'insertion','content':o(_0x2b453d,'*Insert:*\x20%0',_0x54899c['getItemLabel'](_0x11de37,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x594e22=this['editor'],_0x5a48e8=_0x594e22['locale'];_0x594e22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17c7e=>{if('formatBlock'!=_0x17c7e['type'])return;const {data:_0xe83467}=_0x17c7e;return _0xe83467&&'paragraph'==_0xe83467['commandName']?{'type':'format','content':o(_0x5a48e8,'*Change\x20to:*\x20%0',o(_0x5a48e8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3990f2,{showActiveMarker:_0x2fcd4d=!0x0}={}){return(_0x2e4662,_0xe9d56,_0x3ea446)=>{const _0x2b9b6c=_0x3990f2['plugins']['get']('TrackChangesEditing'),_0xa1e1e7=_0xe9d56['markerRange']['start'],_0x653466=_0xe9d56['markerRange']['end'],_0xff0e63=_0x3990f2['model']['schema'];if(!_0xa1e1e7['isTouching'](_0x653466)||!_0xa1e1e7['nodeAfter'])return;const _0x3156d4=_0xa1e1e7['nodeAfter'];if(_0xff0e63['isBlock'](_0x3156d4)&&!_0xff0e63['isLimit'](_0x3156d4)&&_0xff0e63['checkChild'](_0x3156d4,'$text')){if(!_0x3ea446['consumable']['consume'](_0xe9d56['markerRange'],_0x2e4662['name']))return;const _0xe8694d=_0x3ea446['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1380c0=_0x3ea446['mapper']['toViewPosition'](_0x653466);_0x2fcd4d&&_0x2b9b6c['activeMarkers']['includes'](_0xe9d56['markerName'])&&_0x3ea446['writer']['addClass']('ck-suggestion-marker--active',_0xe8694d),_0x3ea446['writer']['insert'](_0x1380c0,_0xe8694d),_0x3ea446['mapper']['bindElementToMarker'](_0xe8694d,_0xe9d56['markerName']);}};}class pt extends _0x165a31{['afterInit'](){const _0xa6718e=this['editor'];if(!_0xa6718e['plugins']['has']('RemoveFormatEditing'))return;_0xa6718e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58d7a9=this['editor'];_0x58d7a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c90f0=>{if('formatBlock'!=_0x2c90f0['type']&&'formatInline'!=_0x2c90f0['type'])return;const {data:_0xfcf41a}=_0x2c90f0;return _0xfcf41a&&'removeFormat'==_0xfcf41a['commandName']?{'type':'format','content':o(_0x58d7a9['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x165a31{['afterInit'](){const _0x1678dc=this['editor'];if(!_0x1678dc['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x39af8a=_0x1678dc['plugins']['get']('TrackChangesEditing');_0x39af8a['enableCommand']('goToPreviousRestrictedEditingException'),_0x39af8a['enableCommand']('goToNextRestrictedEditingException');const _0x7a316e=_0x1678dc['plugins']['get']('RestrictedEditingModeEditing');_0x7a316e['enableCommand']('trackChanges'),_0x7a316e['enableCommand']('acceptSuggestion'),_0x7a316e['enableCommand']('discardSuggestion'),_0x7a316e['enableCommand']('acceptAllSuggestions'),_0x7a316e['enableCommand']('discardAllSuggestions'),_0x7a316e['enableCommand']('acceptSelectedSuggestions'),_0x7a316e['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x165a31{static get['requires'](){return[_0x2b64a4];}['init'](){const _0x59b260=this['editor'],_0x88bd44=_0x59b260['plugins']['get']('TrackChangesEditing');_0x88bd44['enableCommand']('shiftEnter'),_0x59b260['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x59b260),{'priority':'high'}),_0x59b260['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x59b260),{'priority':'high'}),_0x59b260['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21cf0a,_0x1a7e36,_0x369959)=>{_0x369959['options']['showSuggestionHighlights']&&de(_0x59b260,{'showActiveMarker':!0x1})(_0x21cf0a,_0x1a7e36,_0x369959);}),_0x88bd44['descriptionFactory']['registerElementLabel']('softBreak',_0x5101af=>o(_0x59b260['locale'],'ELEMENT_LINE_BREAK',_0x5101af));}}function de(_0x26eaba,{showActiveMarker:_0x30ad0a=!0x0}={}){return(_0x339c15,_0x2a1857,_0xe2c8f)=>{const _0x88cf07=_0x26eaba['plugins']['get']('TrackChangesEditing');if(!_0xe2c8f['consumable']['test'](_0x2a1857['markerRange'],_0x339c15['name']))return;const _0x48c384=_0x26eaba['model'];for(const _0x2df183 of _0x2a1857['markerRange']['getItems']()){if(!_0x2df183['is']('element','softBreak'))continue;const _0x47579d='deletion'==_0x2a1857['markerName']['split'](':')[0x1]?'merge':'split',_0x16fd5f=_0xe2c8f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x47579d}),_0xa42b45=_0xe2c8f['mapper']['toViewPosition'](_0x48c384['createPositionBefore'](_0x2df183));_0x30ad0a&&_0x88cf07['activeMarkers']['includes'](_0x2a1857['markerName'])&&_0xe2c8f['writer']['addClass']('ck-suggestion-marker--active',_0x16fd5f),_0xe2c8f['writer']['insert'](_0xa42b45,_0x16fd5f),_0xe2c8f['mapper']['bindElementToMarker'](_0x16fd5f,_0x2a1857['markerName']);}};}class wt extends _0x165a31{['afterInit'](){const _0x5eb9c6=this['editor'],_0xe45101=_0x5eb9c6['model'],_0x2b8576=_0x5eb9c6['locale'];if(!_0x5eb9c6['plugins']['has']('StandardEditingModeEditing'))return;const _0x188fe2=_0x5eb9c6['plugins']['get']('TrackChangesEditing'),_0x58771='restrictedEditingException',_0x4e2079=_0x5eb9c6['commands']['get'](_0x58771);_0x188fe2['enableCommand'](_0x58771,(_0x34c0cd,_0x76ddb9={})=>{const _0x10552d=_0xe45101['document']['selection'];if(_0x10552d['isCollapsed'])return void _0x34c0cd(_0x76ddb9);const _0x33aab0=void 0x0!==_0x76ddb9['forceValue']?_0x76ddb9['forceValue']:!_0x4e2079['value'];_0xe45101['change'](()=>{const _0x21324f=Array['from'](_0x10552d['getRanges']());for(const _0x1ba2a6 of _0x21324f){const _0x9b0a91=_0x33aab0?[_0x1ba2a6]:io(_0x58771,_0x1ba2a6,_0xe45101);for(const _0x55ccbc of _0x9b0a91)_0x188fe2['markInlineFormat'](_0x55ccbc,{'commandName':_0x58771,'commandParams':[{'forceValue':_0x33aab0}]});}});}),_0x188fe2['descriptionFactory']['registerDescriptionCallback'](_0x587e92=>{if('formatBlock'!=_0x587e92['type']&&'formatInline'!=_0x587e92['type'])return;const {data:_0x348e1e}=_0x587e92;return _0x348e1e&&_0x348e1e['commandName']==_0x58771?_0x348e1e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b8576,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2b8576,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x165a31{['afterInit'](){const _0x71ae2d=this['editor'];if(!_0x71ae2d['plugins']['has']('Style')||!_0x71ae2d['plugins']['has']('DataSchema'))return;const _0x5983f4=_0x71ae2d['plugins']['get']('TrackChangesEditing'),_0x152dc6=_0x71ae2d['locale'],_0x4014ef=_0x71ae2d['config']['get']('style')||{},_0xd04a95=_0x71ae2d['plugins']['get']('GeneralHtmlSupport'),_0x452a0d=_0x71ae2d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x71ae2d['plugins']['get']('DataSchema'),_0x4014ef['definitions']);_0x5983f4['enableDefaultAttributesIntegration']('style');const _0x3485a5=new Set();for(const _0x26ec1d of _0x452a0d['block']){const _0x5d9cf8=_0xd04a95['getGhsAttributeNameForElement'](_0x26ec1d['element']);_0x3485a5['add'](_0x5d9cf8);}const _0x135986=new Set();for(const _0x2fca2f of _0x452a0d['inline']){const _0x3e1405=_0xd04a95['getGhsAttributeNameForElement'](_0x2fca2f['element']);_0x135986['add'](_0x3e1405);for(const _0x50b1d7 of _0x2fca2f['ghsAttributes'])_0x135986['add'](_0x50b1d7);}for(const _0x193646 of _0x3485a5)_0x5983f4['registerBlockAttribute'](_0x193646),_0x5983f4['descriptionFactory']['registerAttributeLabel'](_0x193646,o(_0x152dc6,'FORMAT_STYLE'));for(const _0x2bf15b of _0x135986)_0x5983f4['registerInlineAttribute'](_0x2bf15b),_0x5983f4['descriptionFactory']['registerAttributeLabel'](_0x2bf15b,o(_0x152dc6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1908cd=this['editor'],_0x460196=_0x1908cd['locale'];_0x1908cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b102f=>{if('formatBlock'!=_0x1b102f['type']&&'formatInline'!=_0x1b102f['type'])return;const {data:_0x2bd1c0}=_0x1b102f;return _0x2bd1c0&&'style'===_0x2bd1c0['commandName']?_0x2bd1c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x460196,'*Set\x20format:*\x20%0',_0x2bd1c0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x460196,'*Remove\x20format:*\x20%0',_0x2bd1c0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x165a31{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x324054){super(_0x324054),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xf13a1e=this['editor'],_0x5517ef=_0xf13a1e['model']['document']['selection'];if(!_0xf13a1e['plugins']['has']('TableEditing'))return;const _0x103deb=_0xf13a1e['locale'],_0x401905=_0xf13a1e['plugins']['get']('TrackChangesEditing'),_0x345c47=_0xf13a1e['plugins']['get']('TableUtils');_0x401905['descriptionFactory']['registerElementLabel']('table',_0x4770fa=>o(_0x103deb,'ELEMENT_TABLE',_0x4770fa)),this['_setupColumnsRowsFixing'](),_0x401905['enableCommand']('insertTable'),_0x401905['enableCommand']('selectTableRow'),_0x401905['enableCommand']('selectTableColumn');for(const _0x49b320 of['insertTableRowAbove','insertTableRowBelow']){const _0x2cb19e=_0xf13a1e['commands']['get'](_0x49b320);_0x401905['enableCommand'](_0x49b320,_0x39ddbd=>{_0xf13a1e['model']['change'](_0x36dce9=>{_0x39ddbd();const _0x318564='above'===_0x2cb19e['order'],_0x1da9ef=_0x345c47['getSelectionAffectedTableCells'](_0x5517ef),_0x43d091=_0x345c47['getRowIndexes'](_0x1da9ef),_0x550000=_0x318564?_0x43d091['first']-0x1:_0x43d091['last']+0x1,_0x2993ad=_0x1da9ef[0x0]['findAncestor']('table'),_0x5d2be4=_0x345c47['createTableWalker'](_0x2993ad,{'startRow':_0x550000,'endRow':_0x550000}),_0x4229bd=Array['from'](_0x5d2be4)['map'](_0x35775c=>_0x36dce9['createRangeOn'](_0x35775c['cell']));_0x401905['markMultiRangeInsertion'](_0x4229bd,'tableRow');});});}for(const _0x58ce31 of['insertTableColumnLeft','insertTableColumnRight']){const _0x572542=_0xf13a1e['commands']['get'](_0x58ce31);_0x401905['enableCommand'](_0x58ce31,_0x2ad991=>{_0xf13a1e['model']['change'](_0x56ddb1=>{_0x2ad991();const _0x2de81e='left'===_0x572542['order'],_0x37740a=_0x345c47['getSelectionAffectedTableCells'](_0x5517ef),_0x47976f=_0x345c47['getColumnIndexes'](_0x37740a),_0x33e0fb=_0x2de81e?_0x47976f['first']-0x1:_0x47976f['last']+0x1,_0x4c4a1c=_0x37740a[0x0]['findAncestor']('table'),_0x319e88=_0x345c47['createTableWalker'](_0x4c4a1c,{'startRow':0x0,'column':_0x33e0fb,'includeAllSlots':!0x1}),_0x43cef9=Array['from'](_0x319e88)['map'](_0x5bcf1c=>_0x56ddb1['createRangeOn'](_0x5bcf1c['cell']));_0x401905['markMultiRangeInsertion'](_0x43cef9,'tableColumn');});});}for(const _0x540cd6 of['removeTableRow','removeTableColumn']){const _0x42c3f6=_0x540cd6['substr'](0xb),_0x4637f1=_0x42c3f6['toLowerCase'](),_0x4f6025=_0x4637f1['substr'](0x0,0x3)+'span',_0x53cc4c='table'+_0x42c3f6,_0x51e52a='min'+_0x42c3f6,_0x17675f='max'+_0x42c3f6;_0x401905['enableCommand'](_0x540cd6,()=>{_0xf13a1e['model']['change'](_0x4b55b4=>{const _0x37d570=_0x345c47['getSelectionAffectedTableCells'](_0x5517ef),_0x2dc5b6=_0x37d570[0x0]['findAncestor']('table');let _0x1c8c12;if('removeTableRow'==_0x540cd6){const _0x6e0da9=_0x345c47['getRowIndexes'](_0x37d570);_0x1c8c12={'startRow':_0x6e0da9['first'],'endRow':_0x6e0da9['last'],'includeAllSlots':!0x0};}else{const _0x59ff9c=_0x345c47['getColumnIndexes'](_0x37d570);_0x1c8c12={'startColumn':_0x59ff9c['first'],'endColumn':_0x59ff9c['last'],'includeAllSlots':!0x0};}const _0x165708=_0x345c47['createTableWalker'](_0x2dc5b6,_0x1c8c12),_0x863925=Array['from'](_0x165708)['map'](({cell:_0x533b79})=>_0x533b79),_0xf0db35=Ee(_0x863925['filter'](_0x3b4aa8=>_0x3b4aa8['hasAttribute'](_0x4f6025))),_0x3493fa=Ee(_0x863925['filter'](_0x379dbd=>!_0x379dbd['hasAttribute'](_0x4f6025)))['map'](_0x2edec0=>_0x4b55b4['createRangeOn'](_0x2edec0)),_0x16edaa=_0x401905['markMultiRangeDeletion'](_0x3493fa,_0x53cc4c);if(_0x16edaa&&('tableRow'==_0x16edaa['subType']||'tableColumn'==_0x16edaa['subType'])){const _0x41d599=this['_getSuggestionCoords'](_0x16edaa);for(const _0x587961 of _0xf0db35){const _0x3f8675=_0x4b55b4['createRangeOn'](_0x587961),_0x5a97e3=_0x345c47['getCellLocation'](_0x587961),_0x373d2a=_0x587961['getAttribute'](_0x4f6025)-0x1,_0x1b118f=_0x41d599[_0x51e52a],_0x445f33=_0x41d599[_0x17675f];_0x1b118f<=_0x5a97e3[_0x4637f1]&&_0x5a97e3[_0x4637f1]+_0x373d2a<=_0x445f33&&_0x16edaa['addRange'](_0x3f8675);}}});});}function _0x41bbba(_0x11882a){const _0x3db698=Array['from'](_0x5517ef['getRanges']())['map'](_0x4ecef5=>_0x5d0450['fromRange'](_0x4ecef5));_0xf13a1e['model']['change'](_0x354654=>{const _0x493502=_0x354654['batch'];_0x11882a=_0x11882a['filter'](_0x16778f=>'$graveyard'!=_0x16778f['root']['rootName']),_0x354654['setSelection'](_0x11882a),_0xf13a1e['commands']['get']('removeTableRow')['refresh'](),_0xf13a1e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xf13a1e['model']['enqueueChange'](()=>{_0xf13a1e['model']['enqueueChange'](_0x493502,_0x4e7215=>{const _0x4b0a4a=_0x3db698['filter'](_0x45f73a=>'$graveyard'!=_0x45f73a['root']['rootName']);_0x4b0a4a['length']>0x0&&_0x4e7215['setSelection'](_0x4b0a4a);for(const _0xc57b56 of _0x3db698)_0xc57b56['detach']();});});});}function _0x11628e(_0x2ddcf6){_0xf13a1e['model']['change'](_0x33dd52=>{const _0x446981=Array['from'](_0x5517ef['getRanges']())['map'](_0x450fe8=>_0x5d0450['fromRange'](_0x450fe8)),_0x1934c8=[];for(const _0x531088 of _0x2ddcf6)for(const _0x51a0ab of _0x531088['getItems']({'shallow':!0x0}))_0x1934c8['push'](_0x51a0ab);for(const _0x36e9b3 of _0x1934c8)'$graveyard'!=_0x36e9b3['root']['rootName']&&(_0x33dd52['setSelection'](_0x33dd52['createPositionAt'](_0x36e9b3,0x0)),_0xf13a1e['commands']['get']('removeTableColumn')['refresh'](),_0xf13a1e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1ced38=_0x446981['filter'](_0x16a490=>'$graveyard'!=_0x16a490['root']['rootName']);_0x1ced38['length']>0x0&&_0x33dd52['setSelection'](_0x1ced38);for(const _0x47b86d of _0x446981)_0x47b86d['detach']();});}function _0x4597b8(_0xb92dae,_0x2a6e70){return _0x2a6e70['every'](_0x254224=>_0xb92dae['some'](_0x4e498b=>_0x4e498b['end']['isEqual'](_0x254224['start'])||_0x254224['end']['isEqual'](_0x4e498b['start'])));}function _0x519b5f(_0x431db4,_0x4df5d4){return!_0x431db4['some'](_0x2f42b6=>_0x4df5d4['some'](_0x2d2a8d=>_0x2f42b6['isIntersecting'](_0x2d2a8d)))&&_0x431db4['some'](_0x19bce4=>_0x4df5d4['some'](_0x53a27f=>_0x19bce4['end']['isTouching'](_0x53a27f['start'])));}_0xf13a1e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2dccc8,_0x47ceaa,_0x26350e)=>{if(!_0x26350e['options']['showSuggestionHighlights'])return;const _0x58f4cc=_0x47ceaa['item'];if(!_0x58f4cc)return;const _0x570439=_0x26350e['mapper']['toViewElement'](_0x58f4cc);function _0x43807d(_0x49ecc8){return Array['isArray'](_0x49ecc8)?_0x49ecc8:[_0x49ecc8];}_0x570439&&'tableCell'===_0x58f4cc['name']&&_0x4cacb9(_0x570439,_0x26350e['writer'],(_0x4c3984,_0x565ed3,_0x370922)=>_0x370922['addClass'](_0x43807d(_0x565ed3['classes']),_0x4c3984),(_0x37d85d,_0x1af977,_0x50834d)=>_0x50834d['removeClass'](_0x43807d(_0x1af977['classes']),_0x37d85d));},{'priority':'highest'}),_0x401905['descriptionFactory']['registerDescriptionCallback'](_0x4fa1f5=>{if('insertion'!=_0x4fa1f5['type']&&'deletion'!=_0x4fa1f5['type'])return;const _0x4736fe=_0x4fa1f5['getContainedElement']();if(null!=_0x4736fe&&_0x4736fe['is']('element','table')){if('insertion'==_0x4fa1f5['type']){const _0x31a85e=_0x4fa1f5['getItems']()['filter'](_0x340b3f=>_0x340b3f['is']('$textProxy'))['map'](_0x59442a=>_0x59442a['data']);if(_0x31a85e['length'])return{'type':'insertion','content':o(_0x103deb,'*Insert:*\x20%0',o(_0x103deb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x31a85e['join']('\x20')+'\x22'))};}if('deletion'==_0x4fa1f5['type']){const _0x844876=_0x4fa1f5['getItems']()['filter'](_0x3cf33b=>_0x3cf33b['is']('$textProxy'))['map'](_0x1bb751=>_0x1bb751['data']);if(_0x844876['length'])return{'type':'deletion','content':o(_0x103deb,'*Remove:*\x20%0',o(_0x103deb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x844876['join']('\x20')+'\x22'))};}}}),_0x401905['descriptionFactory']['registerDescriptionCallback'](_0x152c26=>{if('tableRow'==_0x152c26['subType']){const _0x91d487=_0x152c26['getItems']()['filter'](_0x3acefa=>_0x3acefa['is']('$textProxy'))['map'](_0x5e7d24=>_0x5e7d24['data']),_0x39623c=this['_getSuggestionCoords'](_0x152c26),_0xf8813e=_0x39623c['maxRow']-_0x39623c['minRow']+0x1;if('insertion'==_0x152c26['type'])return _0x91d487['length']?{'type':'insertion','content':o(_0x103deb,'*Insert:*\x20%0',o(_0x103deb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xf8813e,'\x22'+_0x91d487['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x103deb,'*Insert:*\x20%0',o(_0x103deb,'ELEMENT_TABLE_ROW',_0xf8813e))};if('deletion'==_0x152c26['type'])return _0x91d487['length']?{'type':'deletion','content':o(_0x103deb,'*Remove:*\x20%0',o(_0x103deb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xf8813e,'\x22'+_0x91d487['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x103deb,'*Remove:*\x20%0',o(_0x103deb,'ELEMENT_TABLE_ROW',_0xf8813e))};}if('tableColumn'==_0x152c26['subType']){const _0x40f99e=_0x152c26['getItems']()['filter'](_0x2f9d7e=>_0x2f9d7e['is']('$textProxy'))['map'](_0x56efc1=>_0x56efc1['data']),_0x39a985=this['_getSuggestionCoords'](_0x152c26),_0x1cb7ce=_0x39a985['maxColumn']-_0x39a985['minColumn']+0x1;if('insertion'==_0x152c26['type'])return _0x40f99e['length']?{'type':'insertion','content':o(_0x103deb,'*Insert:*\x20%0',o(_0x103deb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1cb7ce,'\x22'+_0x40f99e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x103deb,'*Insert:*\x20%0',o(_0x103deb,'ELEMENT_TABLE_COLUMN',_0x1cb7ce))};if('deletion'==_0x152c26['type'])return _0x40f99e['length']?{'type':'deletion','content':o(_0x103deb,'*Remove:*\x20%0',o(_0x103deb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1cb7ce,'\x22'+_0x40f99e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x103deb,'*Remove:*\x20%0',o(_0x103deb,'ELEMENT_TABLE_COLUMN',_0x1cb7ce))};}}),_0x401905['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x41bbba),_0x401905['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x41bbba),_0x401905['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x11628e),_0x401905['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x11628e),_0x401905['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4597b8),_0x401905['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4597b8),_0x401905['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x519b5f),_0x401905['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x519b5f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x24d872=this['editor'],_0x2b2c11=_0x24d872['model']['document']['selection'];return(_0x21a5c8,_0x3d6530)=>{_0x24d872['model']['change'](_0x2b3c17=>{const {commandName:_0x552049,commandParams:_0x5ab500}=_0x3d6530;let _0x246acb=_0x21a5c8[0x0]['end']['nodeBefore'];_0x5ab500&&_0x5ab500[0x0]&&!0x1===_0x5ab500[0x0]['forceValue']&&(_0x246acb=_0x21a5c8[0x0]['start']['nodeAfter']);const _0x8af6a=_0x2b3c17['createRangeIn'](_0x246acb);if('$graveyard'==_0x8af6a['root']['rootName'])return;const _0x365a2d=Array['from'](_0x2b2c11['getRanges']())['map'](_0x2588f3=>_0x5d0450['fromRange'](_0x2588f3));_0x2b3c17['setSelection'](_0x8af6a),_0x24d872['commands']['get'](_0x552049)['refresh'](),_0x5ab500['push']({'forceDefaultExecution':!0x0}),_0x24d872['execute'](_0x552049,..._0x5ab500);const _0x5aab96=_0x365a2d['filter'](_0x49795a=>'$graveyard'!=_0x49795a['root']['rootName']);_0x5aab96['length']>0x0&&_0x2b3c17['setSelection'](_0x5aab96);for(const _0x24ac51 of _0x365a2d)_0x24ac51['detach']();});};}['_getCoordsForCells'](_0x1a3059){const _0x4c68dd=this['editor']['plugins']['get']('TableUtils');let _0x1784f3=Number['MAX_SAFE_INTEGER'],_0x44aba7=Number['MIN_SAFE_INTEGER'],_0x45ece9=Number['MAX_SAFE_INTEGER'],_0x22daa7=Number['MIN_SAFE_INTEGER'];for(const _0x17e626 of _0x1a3059){if('$graveyard'==_0x17e626['root']['rootName'])continue;const {row:_0x170d57,column:_0x41bd68}=_0x4c68dd['getCellLocation'](_0x17e626),_0x531c15=_0x17e626['hasAttribute']('rowspan')?_0x17e626['getAttribute']('rowspan')-0x1:0x0,_0x19a659=_0x17e626['hasAttribute']('colspan')?_0x17e626['getAttribute']('colspan')-0x1:0x0;_0x1784f3=_0x170d57<_0x1784f3?_0x170d57:_0x1784f3,_0x44aba7=_0x170d57+_0x531c15>_0x44aba7?_0x170d57+_0x531c15:_0x44aba7,_0x45ece9=_0x41bd68<_0x45ece9?_0x41bd68:_0x45ece9,_0x22daa7=_0x41bd68+_0x19a659>_0x22daa7?_0x41bd68+_0x19a659:_0x22daa7;}return{'minRow':_0x1784f3,'maxRow':_0x44aba7,'minColumn':_0x45ece9,'maxColumn':_0x22daa7};}['_setupColumnsRowsFixing'](){const _0x374011=this['editor'],_0x56018b=_0x374011['plugins']['get']('TrackChangesEditing'),_0x45329d=_0x374011['plugins']['get']('TableUtils');_0x374011['model']['document']['on']('change:data',()=>{const _0x9a7fec=Array['from'](_0x374011['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44648e,data:_0x5bed38}of _0x9a7fec){const {group:_0x480e31,id:_0x28e21b,subType:_0x15c6d6}=_0x56018b['_splitMarkerName'](_0x44648e);if('suggestion'!=_0x480e31)continue;if(null!=_0x5bed38['oldRange'])continue;const _0x4dd41f=_0x56018b['getSuggestion'](_0x28e21b);this['_tablePostFixingSubtypes']['includes'](_0x15c6d6)&&this['_tableSuggestions']['add'](_0x4dd41f);}},{'priority':'low'});const _0x42aa39=(_0x6ae856,_0xbfc578)=>{let _0x278645=!0x1;const _0x2d1359=_0xbfc578['createRangeOn'](_0x6ae856),_0x388691=_0x6ae856['findAncestor']('table'),_0x6d1a2c=_0x45329d['getCellLocation'](_0x6ae856);for(const _0x816c4d of this['_tableSuggestions']){const _0x19fe06=_0x816c4d['subType'],_0x482af9=_0x19fe06['startsWith']('tablePaste'),_0xa6d17d=_0x19fe06['substr'](_0x482af9?0xa:0x5),_0x3fd97d=_0xa6d17d['toLowerCase'](),_0x1e49e7=_0x3fd97d['substr'](0x0,0x3)+'span',_0x3c4585='min'+_0xa6d17d,_0x545bdf='max'+_0xa6d17d;if(!_0x816c4d['isInContent'])continue;if(_0x388691!=_0x816c4d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x816c4d['isIntersectingWithRange'](_0x2d1359))continue;const _0x4059e7=_0x6ae856['hasAttribute'](_0x1e49e7)?_0x6ae856['getAttribute'](_0x1e49e7)-0x1:0x0,_0x4fa692=this['_getSuggestionCoords'](_0x816c4d),_0x126d85=_0x4fa692[_0x3c4585],_0x4a41c1=_0x4fa692[_0x545bdf];_0x126d85<=_0x6d1a2c[_0x3fd97d]&&_0x6d1a2c[_0x3fd97d]+_0x4059e7<=_0x4a41c1&&(_0x816c4d['addRange'](_0x2d1359),_0x278645=!0x0);}return _0x278645;};_0x374011['model']['document']['registerPostFixer'](_0x515651=>{let _0x5c6736=!0x1;for(const _0x526cf2 of _0x374011['model']['document']['differ']['getChanges']())if('insert'==_0x526cf2['type']){if('tableRow'==_0x526cf2['name']){for(const _0x3f8d5e of _0x526cf2['position']['nodeAfter']['getChildren']())_0x5c6736=_0x5c6736||_0x42aa39(_0x3f8d5e,_0x515651);}else'tableCell'==_0x526cf2['name']&&(_0x5c6736=_0x5c6736||_0x42aa39(_0x526cf2['position']['nodeAfter'],_0x515651));}return _0x5c6736;});}['_getSuggestionCoords'](_0x4eaa14){return this['_getCoordsForCells'](_0x4eaa14['getRanges']()['map'](_0x288f77=>_0x288f77['start']['nodeAfter']));}}function Ee(_0x3e0ad1){return Array['from'](new Set(_0x3e0ad1)['values']());}class St extends _0x165a31{static get['requires'](){return[jt];}['afterInit'](){const _0x1ffadb=this['editor'],_0x339599=_0x1ffadb['model']['document']['selection'],_0x501a10=_0x1ffadb['locale'];if(!_0x1ffadb['plugins']['has']('TableEditing'))return;const _0x45b0d7=_0x1ffadb['plugins']['get']('TrackChangesEditing'),_0x3bab83=_0x1ffadb['plugins']['get']('TableUtils'),_0x26409e=_0x1ffadb['plugins']['get'](jt);_0x26409e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x45b0d7['enableCommand']('mergeTableCells',()=>{const _0xf2b004=_0x3bab83['getSelectionAffectedTableCells'](_0x1ffadb['model']['document']['selection']);_0x1ffadb['model']['change'](()=>{_0x45b0d7['markMultiRangeBlockFormat'](_0xf2b004,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1ffadb['commands']['get']('mergeTableCells')['on']('execute',(_0x5326bc,_0x32b125)=>{_0x1ffadb['commands']['get']('trackChanges')['value']&&(_0x32b125['length']>0x0&&_0x32b125[_0x32b125['length']-0x1]&&_0x32b125[_0x32b125['length']-0x1]['forceDefaultExecution']||_0x45b0d7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5326bc['stop']());},{'priority':'highest'});for(const _0xeab665 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xac59f2=_0x1ffadb['commands']['get'](_0xeab665);_0x45b0d7['enableCommand'](_0xeab665,()=>{const _0x564305=_0x1ffadb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1c4aff=>_0x1c4aff['is']('element','tableCell')),_0x36ff5b=_0xac59f2['value'];_0x1ffadb['model']['change'](()=>{_0x45b0d7['markMultiRangeBlockFormat']([_0x564305,_0x36ff5b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x54f4b2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4e54dc=_0x1ffadb['commands']['get'](_0x54f4b2);_0x45b0d7['enableCommand'](_0x54f4b2,()=>{const _0x3c2b72=_0x3bab83['getSelectionAffectedTableCells'](_0x1ffadb['model']['document']['selection'])[0x0],_0x1e1d25=_0x3c2b72['findAncestor']('table'),{column:_0x50bbd7,row:_0x180524}=_0x3bab83['getCellLocation'](_0x3c2b72);let _0x503bbc=[];if('horizontally'==_0x4e54dc['direction']){const _0x51e556=_0x3bab83['createTableWalker'](_0x1e1d25,{'startRow':_0x180524,'endRow':_0x180524,'includeAllSlots':!0x0});_0x503bbc=Array['from'](_0x51e556)['map'](_0x57187c=>_0x57187c['cell']);}else{const _0x44428a=_0x3bab83['createTableWalker'](_0x1e1d25,{'column':_0x50bbd7,'includeAllSlots':!0x0});_0x503bbc=Array['from'](_0x44428a)['map'](_0x3948fe=>_0x3948fe['cell']);}_0x1ffadb['model']['change'](_0x1e4658=>{_0x45b0d7['markBlockFormat'](_0x1e4658['createRangeOn'](_0x3c2b72),{'commandName':_0x54f4b2,'commandParams':[]},_0x503bbc,_0x54f4b2);});});}_0x45b0d7['descriptionFactory']['registerDescriptionCallback'](_0x3848f0=>{if('formatBlock'!=_0x3848f0['type']&&'formatInline'!=_0x3848f0['type'])return;const {data:_0x64bf37}=_0x3848f0;return _0x64bf37&&'mergeTableCells'==_0x64bf37['commandName']?{'type':'format','content':o(_0x501a10,'*Merge\x20cells*')}:void 0x0;}),_0x45b0d7['descriptionFactory']['registerDescriptionCallback'](_0x2b06e9=>{if('formatBlock'!=_0x2b06e9['type']&&'formatInline'!=_0x2b06e9['type'])return;const {data:_0x1f81f6}=_0x2b06e9;return _0x1f81f6?'splitTableCellVertically'==_0x1f81f6['commandName']?{'type':'format','content':o(_0x501a10,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1f81f6['commandName']?{'type':'format','content':o(_0x501a10,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x276fbc=_0x26409e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3170bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x45b0d7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3170bd,'accept',_0x276fbc);for(const _0x1974d4 of['splitTableCellVertically','splitTableCellHorizontally'])_0x45b0d7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1974d4,'accept',_0x276fbc);_0x45b0d7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2133cd=>{_0x1ffadb['model']['change'](_0x10f4ee=>{const _0x5cc25b=Array['from'](_0x339599['getRanges']())['map'](_0x2dd351=>_0x5d0450['fromRange'](_0x2dd351));_0x10f4ee['setSelection'](_0x2133cd),_0x1ffadb['commands']['get']('mergeTableCells')['refresh'](),_0x1ffadb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x12c171=_0x5cc25b['filter'](_0x59c5d0=>'$graveyard'!=_0x59c5d0['root']['rootName']);_0x12c171['length']>0x0&&_0x10f4ee['setSelection'](_0x12c171);for(const _0xa653ce of _0x5cc25b)_0xa653ce['detach']();});});for(const _0x444d5d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x13917b=_0x1ffadb['commands']['get'](_0x444d5d);_0x13917b['on']('set:isEnabled',(_0x1179e4,_0x13491b,_0x112b2b)=>{if(_0x112b2b){const _0xb5a15b=_0x1ffadb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1b148b=>_0x1b148b['is']('element','tableCell'));this['_areMergableCells'](_0x13917b['value'],_0xb5a15b)||(_0x1179e4['return']=!0x1,_0x1179e4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xec0e5c=this['editor']['commands']['get']('mergeTableCells'),_0x51d122=this['editor']['plugins']['get']('TableUtils');if(!_0xec0e5c['isEnabled'])return!0x1;const _0xd95ce3=_0x51d122['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x9e5cf1 of _0xd95ce3)for(const _0x1f8a52 of _0xd95ce3)if(_0x9e5cf1!=_0x1f8a52&&!this['_areMergableCells'](_0x9e5cf1,_0x1f8a52))return!0x1;return!0x0;}['_areMergableCells'](_0x1a7de1,_0x16fc02){const _0x5ee32c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c73a8=this['editor']['model']['createRangeOn'](_0x1a7de1),_0x3ffe4b=this['editor']['model']['createRangeOn'](_0x16fc02),_0x5864c5=new Set(),_0x42bca2=new Set();for(const _0x17a974 of _0x5ee32c['getSuggestions']())if(('insertion'==_0x17a974['type']||'deletion'==_0x17a974['type']||'mergeTableCells'==_0x17a974['subType'])&&_0x17a974['isInContent']){for(const _0x4fe20f of _0x17a974['getRanges']())_0x4fe20f['containsRange'](_0x2c73a8,!0x0)&&_0x5864c5['add'](_0x17a974['type']+':'+_0x17a974['author']['id']),_0x4fe20f['containsRange'](_0x3ffe4b,!0x0)&&_0x42bca2['add'](_0x17a974['type']+':'+_0x17a974['author']['id']);}if(_0x5864c5['size']!=_0x42bca2['size'])return!0x1;for(const _0x2520af of _0x5864c5)if(!_0x42bca2['has'](_0x2520af))return!0x1;return!0x0;}}class At extends _0x165a31{static get['requires'](){return[jt];}['afterInit'](){const _0x137d43=this['editor'];if(!_0x137d43['plugins']['has']('TableEditing'))return;const _0x52e47a=_0x137d43['locale'],_0x45ef6f=_0x137d43['plugins']['get']('TrackChangesEditing');_0x45ef6f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x45ef6f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x45ef6f['registerBlockAttribute']('headingRows'),_0x45ef6f['registerBlockAttribute']('headingColumns'),_0x45ef6f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x52e47a,'FORMAT_HEADER_ROW')),_0x45ef6f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x52e47a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x150045=this['editor']['plugins']['get']('TrackChangesEditing'),_0x509965=this['editor']['plugins']['get']('TableUtils'),_0x20ed6c=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5c85f8({showActiveMarker:_0x5421c5=!0x0,setDataAttribute:_0x25af08=!0x0}={}){return(_0x1a3ab7,_0x323c80,_0x307c45)=>{const {type:_0x2285f0,id:_0x16edf3}=_0x150045['_splitMarkerName'](_0x323c80['markerName']),_0x513e1f=_0x150045['getSuggestion'](_0x16edf3),_0x482e59=_0x513e1f['data'];if('formatBlock'!=_0x513e1f['type']||!_0x482e59||'setTableColumnHeader'!=_0x482e59['commandName'])return;if(_0x323c80['item'])return void _0x1a3ab7['stop']();if(!_0x307c45['consumable']['consume'](_0x323c80['markerRange'],_0x1a3ab7['name']))return;const _0x4fa47a=_0x323c80['markerRange']['start']['nodeAfter'],_0x9f2153=_0x323c80['markerRange']['end']['nodeBefore'],_0x37eed0=_0x4fa47a['parent']['parent'],{column:_0x17531d}=_0x509965['getCellLocation'](_0x4fa47a),{column:_0x19e17e}=_0x509965['getCellLocation'](_0x9f2153);for(let _0x3a4f6c=_0x17531d;_0x3a4f6c<=_0x19e17e;_0x3a4f6c++){const _0x53aae5=_0x509965['createTableWalker'](_0x37eed0,{'column':_0x3a4f6c,'includeAllSlots':!0x1});for(const _0x5e90b0 of _0x53aae5){const _0x14ba84=_0x5e90b0['cell'],_0x178558=_0x307c45['mapper']['toViewElement'](_0x14ba84);_0x307c45['writer']['addClass']('ck-suggestion-marker-'+_0x2285f0,_0x178558),_0x25af08&&_0x307c45['writer']['setAttribute']('data-suggestion',_0x16edf3,_0x178558),_0x307c45['mapper']['bindElementToMarker'](_0x178558,_0x323c80['markerName']),_0x5421c5&&(_0x150045['activeMarkers']['includes'](_0x323c80['markerName'])?_0x307c45['writer']['addClass']('ck-suggestion-marker--active',_0x178558):_0x307c45['writer']['removeClass']('ck-suggestion-marker--active',_0x178558));}}};}_0x150045['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x20ed6c),_0x150045['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x20ed6c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5c85f8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38a083,_0x2f8bc7,_0x53bd67)=>{_0x53bd67['options']['showSuggestionHighlights']&&_0x5c85f8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38a083,_0x2f8bc7,_0x53bd67);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x432053,_0xbad84,_0x13a710)=>{const {type:_0x2abfd1,id:_0x5da87b}=_0x150045['_splitMarkerName'](_0xbad84['markerName']),_0x32fa0c=_0x150045['getSuggestion'](_0x5da87b),_0xc62f81=_0x32fa0c['data'];if('formatBlock'!=_0x32fa0c['type']||!_0xc62f81||'setTableColumnHeader'!=_0xc62f81['commandName'])return;const _0x194ed6=_0x13a710['mapper']['markerNameToElements'](_0xbad84['markerName']);if(_0x194ed6){for(const _0x253517 of _0x194ed6)_0x13a710['writer']['removeClass']('ck-suggestion-marker-'+_0x2abfd1,_0x253517),_0x13a710['writer']['removeClass']('ck-suggestion-marker--active',_0x253517),_0x13a710['writer']['removeAttribute']('data-suggestion',_0x253517),_0x13a710['mapper']['unbindElementFromMarkerName'](_0x253517,_0xbad84['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a686d=this['editor'],_0x1d80f7=_0x5a686d['locale'];function _0x2198a7(_0x57a5b1){return{'type':'format','content':o(_0x1d80f7,'*Format:*\x20%0',_0x57a5b1)};}_0x5a686d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c16ad=>{if('formatBlock'!=_0x2c16ad['type'])return;const {data:_0x11782a}=_0x2c16ad;if(_0x11782a){if('setTableRowHeader'==_0x11782a['commandName']){const _0xcd1bec=_0x11782a['commandParams'][0x0]['forceValue'];return _0x2198a7(o(_0x1d80f7,_0xcd1bec?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x11782a['commandName']){const _0x291248=_0x11782a['commandParams'][0x0]['forceValue'];return _0x2198a7(o(_0x1d80f7,_0x291248?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x306545=>[_0x306545,null]));class It extends _0x165a31{static get['requires'](){return[jt];}['afterInit'](){const _0x363ab9=this['editor'];if(!_0x363ab9['plugins']['has']('TableClipboard'))return;const _0x46793f=_0x363ab9['plugins']['get']('TrackChangesEditing'),_0x3d060e=_0x363ab9['plugins']['get']('TableUtils'),_0x1a4067=_0x363ab9['plugins']['get'](jt),_0x348ce7=_0x363ab9['plugins']['get']('TableClipboard');_0x1a4067['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x363ab9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x363ab9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x334963=null;_0x363ab9['model']['on']('insertContent',(_0x297749,_0x6cbbef)=>{const [_0x20b388,_0x192792]=_0x6cbbef,_0x517876=_0x6cbbef[_0x6cbbef['length']-0x1];_0x517876&&_0x517876['forceDefaultExecution']||_0x46793f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xdf770d,_0x21ec6a,_0x29e67c,_0x40fd8e,_0x57bba8){if(_0x21ec6a&&!_0x21ec6a['is']('documentSelection'))return!0x1;const _0x16e93d=_0x57bba8['getTableIfOnlyTableInContent'](_0xdf770d,_0x29e67c);if(!_0x16e93d||!he(_0x16e93d,void 0x0,_0x40fd8e))return!0x1;const _0x4a7d38=_0x40fd8e['getSelectionAffectedTableCells'](_0x29e67c['document']['selection']);if(!_0x4a7d38['length'])return!0x1;const _0x1f388a=_0x4a7d38[0x0]['findAncestor']('table'),_0x596eac=_0x40fd8e['getRowIndexes'](_0x4a7d38),_0x35c888=_0x40fd8e['getColumnIndexes'](_0x4a7d38),_0x15c9a0={'startRow':_0x596eac['first'],'endRow':_0x596eac['last'],'startColumn':_0x35c888['first'],'endColumn':_0x35c888['last']};return 0x1==_0x4a7d38['length']&&(_0x15c9a0['endRow']+=_0x40fd8e['getRows'](_0x16e93d)-0x1,_0x15c9a0['endColumn']+=_0x40fd8e['getColumns'](_0x16e93d)-0x1),he(_0x1f388a,_0x15c9a0,_0x40fd8e);}(_0x20b388,_0x192792,_0x363ab9['model'],_0x3d060e,_0x348ce7)&&(_0x297749['stop'](),_0x334963={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x363ab9['model']['change'](()=>{_0x363ab9['model']['insertContent'](_0x6cbbef[0x0],_0x6cbbef[0x1],_0x6cbbef[0x2],{'forceDefaultExecution':!0x0});const _0x5e1d25=_0x1a0dc4(),{rowInsertionRanges:_0x5245af,columnInsertionRanges:_0x11f45b,insertionRanges:_0x2952f9,deletionRanges:_0x4bdb89,cells:_0xbddc06}=_0x334963;_0x5245af['length']&&_0x46793f['markMultiRangeInsertion'](_0x5245af,'tablePasteRow',{'tablePasteChainId':_0x5e1d25}),_0x11f45b['length']&&_0x46793f['markMultiRangeInsertion'](_0x11f45b,'tablePasteColumn',{'tablePasteChainId':_0x5e1d25}),_0x2952f9['length']&&(_0x46793f['markMultiRangeInsertion'](_0x2952f9,'tablePaste',{'tablePasteChainId':_0x5e1d25,'skipNestingCheck':!0x0}),_0x2952f9['forEach'](_0xe3e36a=>_0xe3e36a['detach']?.())),_0x4bdb89['length']&&(_0x46793f['markMultiRangeDeletion'](_0x4bdb89,'tablePaste',{'tablePasteChainId':_0x5e1d25,'skipNestingCheck':!0x0}),_0x4bdb89['forEach'](_0x510b4f=>_0x510b4f['detach']?.()));const _0x5a19c6=_0x46793f['markMultiRangeBlockFormat'](_0xbddc06['map'](({element:_0x23bcd6})=>_0x23bcd6),{'formatGroupId':_0x1a0dc4()},[],'tablePasteCell',{'tablePasteChainId':_0x5e1d25});if(_0x5a19c6){const _0x23af95=_0x5a19c6['getMarkers'](),_0x515309=[];for(const {element:_0x57cbc2,attributes:_0x319844}of _0xbddc06){if(!_0x319844)continue;const _0x41d3c1=_0x363ab9['model']['createRangeOn'](_0x57cbc2),_0x4028ad=_0x23af95['find'](_0x5da121=>_0x5da121['getRange']()['isEqual'](_0x41d3c1));_0x4028ad&&_0x515309['push']([_0x4028ad['name'],_0x319844]);}_0x515309['length']&&_0x5a19c6['setAttribute']('markerAttributes',Object['fromEntries'](_0x515309));}_0x334963=null;}));},{'priority':_0x542e83['high']+0xa}),_0x363ab9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2adf35,_0xd7bee1)=>{const [_0x95361e,_0x541870,,_0x6eda52]=_0xd7bee1;if(!_0x334963)return;_0x2adf35['stop']();const _0x2816e7=_0x95361e['cell'],_0x4139d6=_0x541870,_0x1c8b41=Pe(_0x2816e7),_0x5f0486=Pe(_0x4139d6);_0x2adf35['return']=_0x2816e7;let _0x36849c=null,_0x4c2878=null;if(_0x5f0486||_0x1c8b41){if(_0x1c8b41&&!_0x5f0486){_0x6eda52['remove'](_0x2816e7['getChild'](0x0));for(const _0x3d34cf of Array['from'](_0x4139d6['getChildren']()))_0x6eda52['insert'](_0x3d34cf,_0x2816e7,'end');const _0x63dfd1=_0x334963['rowInsertionIndexes']['includes'](_0x95361e['row']),_0x3cac80=_0x334963['columnInsertionIndexes']['includes'](_0x95361e['column']);_0x63dfd1||_0x3cac80||(_0x36849c=_0x5d0450['fromRange'](_0x6eda52['createRangeIn'](_0x2816e7)));}else _0x5f0486&&!_0x1c8b41&&(_0x4c2878=_0x6eda52['createRangeIn'](_0x2816e7));}else{const _0x4c0e9a=_0x6eda52['createElement']('tableCellSuggestion'),_0x1174bd=_0x6eda52['createElement']('tableCellSuggestion');_0x6eda52['wrap'](_0x6eda52['createRangeIn'](_0x2816e7),_0x1174bd),_0x6eda52['insert'](_0x4c0e9a,_0x2816e7,0x0);for(const _0x309b70 of Array['from'](_0x4139d6['getChildren']()))_0x6eda52['insert'](_0x309b70,_0x4c0e9a,'end');_0x36849c=_0x5d0450['fromRange'](_0x6eda52['createRangeOn'](_0x4c0e9a)),_0x4c2878=_0x5d0450['fromRange'](_0x6eda52['createRangeOn'](_0x1174bd));}const _0x83f46b=Array['from'](_0x4139d6['getAttributes']())['filter'](([_0x33cff2])=>ge['includes'](_0x33cff2));_0x334963['cells']['push']({'element':_0x2816e7,'attributes':_0x83f46b['length']?Object['fromEntries'](_0x83f46b):null}),_0x36849c&&_0x334963['insertionRanges']['push'](_0x36849c),_0x4c2878&&_0x334963['deletionRanges']['push'](_0x4c2878);},{'priority':'high'}),_0x3d060e['on']('insertColumns',(_0xe4b1e3,_0x4bf395)=>{const [_0x405fbc,_0x5ad01d={}]=_0x4bf395;if(!_0x334963)return;const _0x4376f4=_0x5ad01d['at']||0x0,_0x5bbae9=_0x5ad01d['columns']||0x1;_0x334963['columnInsertionIndexes']=new Array(_0x5bbae9)['fill'](_0x4376f4)['map']((_0xe45f03,_0x52ab58)=>_0xe45f03+_0x52ab58);for(const {cell:_0x10868c}of _0x3d060e['createTableWalker'](_0x405fbc,{'startColumn':_0x4376f4,'endColumn':_0x4376f4+_0x5bbae9-0x1}))_0x334963['columnInsertionRanges']['push'](_0x363ab9['model']['createRangeOn'](_0x10868c));},{'priority':'low'}),_0x3d060e['on']('insertRows',(_0x53cefa,_0x5e7dbd)=>{const [_0xb78f72,_0x140b7b={}]=_0x5e7dbd;if(!_0x334963)return;const _0x4571da=_0x140b7b['at']||0x0,_0x249c81=_0x140b7b['rows']||0x1;_0x334963['rowInsertionIndexes']=new Array(_0x249c81)['fill'](_0x4571da)['map']((_0x5e783f,_0x2c6b77)=>_0x5e783f+_0x2c6b77);for(const {cell:_0x77ab2a}of _0x3d060e['createTableWalker'](_0xb78f72,{'startRow':_0x4571da,'endRow':_0x4571da+_0x249c81-0x1}))_0x334963['rowInsertionRanges']['push'](_0x363ab9['model']['createRangeOn'](_0x77ab2a));},{'priority':'low'}),_0x46793f['descriptionFactory']['registerDescriptionCallback'](_0x22eda4=>{if(_0x22eda4['subType']&&_0x22eda4['subType']['startsWith']('tablePaste'))return _0x22eda4['previous']?{}:{'type':'insertion','content':o(_0x363ab9['locale'],'*Replace\x20table\x20cells*')};});const _0x53c6da=()=>!0x1;for(const _0x472cd7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x46793f['_suggestionFactory']['registerCustomCallback']('insertion',_0x472cd7,'join',_0x53c6da),_0x46793f['_suggestionFactory']['registerCustomCallback']('deletion',_0x472cd7,'join',_0x53c6da),_0x46793f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x472cd7,'join',_0x53c6da);_0x46793f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53c6da),_0x46793f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49b49b,_0x4b269a,_0x109e4b)=>{const _0x4c7434=_0x49b49b['map'](_0x33c023=>_0x33c023['getContainedElement']())['filter'](_0x4a1472=>_0x4a1472),_0x3836aa=new Map(_0x4c7434['map'](_0x3c123a=>[_0x3c123a,null]));if(_0x334963){for(const {element:_0x89bb61,attributes:_0x5126d9}of _0x334963['cells'])_0x5126d9&&_0x3836aa['set'](_0x89bb61,_0x5126d9);}else{if(_0x109e4b&&_0x109e4b['markerAttributes'])for(const [_0x41f60c,_0x32a45e]of Object['entries'](_0x109e4b['markerAttributes'])){const _0x248f80=_0x363ab9['model']['markers']['get'](_0x41f60c),_0x2fe35e=_0x248f80?_0x248f80['getRange']()['getContainedElement']():null;_0x2fe35e&&_0x3836aa['set'](_0x2fe35e,_0x32a45e);}}_0x363ab9['model']['change'](_0xd6b722=>{for(const [_0x1d8e6a,_0x195a0d]of _0x3836aa)_0xd6b722['setAttributes']({...Ce,..._0x195a0d},_0x1d8e6a);});});const _0xaf66ae=(_0x2e4719,_0x3e626b)=>{_0x46793f['_suggestionFactory']['registerCustomCallback'](_0x2e4719,'tablePaste',_0x3e626b,(_0x3b2c0d,_0x3873a9,_0x679d4f)=>{_0x363ab9['model']['change'](_0x366230=>{const _0x41ff84=[];for(const _0x81c5c3 of _0x3b2c0d){const _0x1c0e73=_0x81c5c3['start']['nodeAfter'];_0x1c0e73['is']('element','tableCellSuggestion')&&_0x41ff84['push'](_0x1c0e73);}_0x46793f['_suggestionFactory']['getSuggestionCallback'](_0x2e4719,null,_0x3e626b)(_0x3b2c0d,_0x3873a9,_0x679d4f);for(const _0xb59b86 of _0x41ff84)'$graveyard'!=_0xb59b86['root']['rootName']&&_0x366230['unwrap'](_0xb59b86);});});};_0xaf66ae('insertion','accept'),_0xaf66ae('insertion','discard'),_0xaf66ae('deletion','accept'),_0xaf66ae('deletion','discard'),_0x46793f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x18b1c5=>{const _0x38b587=_0x18b1c5['map'](_0x26bfe4=>_0x26bfe4['getContainedElement']()),_0x13cffd=_0x38b587[0x0]['findAncestor']('table'),{minRow:_0x134a85,maxRow:_0x373f72}=_0x1a4067['_getCoordsForCells'](_0x38b587);_0x3d060e['removeRows'](_0x13cffd,{'at':_0x134a85,'rows':_0x373f72-_0x134a85+0x1});}),_0x46793f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4d4a55=>{const _0x106f4c=_0x4d4a55['map'](_0x4e887a=>_0x4e887a['getContainedElement']()),_0x1dbd2a=_0x106f4c[0x0]['findAncestor']('table'),{minColumn:_0x54cb65,maxColumn:_0x260775}=_0x1a4067['_getCoordsForCells'](_0x106f4c);_0x3d060e['removeColumns'](_0x1dbd2a,{'at':_0x54cb65,'columns':_0x260775-_0x54cb65+0x1});});const _0x2e1f60=(_0x122db2,_0x2e7e89)=>{if(!_0x2e7e89['subType']||!_0x2e7e89['subType']['startsWith']('tablePaste'))return;const _0x72b4=_0x2e7e89['attributes']['tablePasteChainId'],_0x5c43f0=_0x46793f['getSuggestions']()['filter'](_0x4be77c=>_0x4be77c['isInContent']&&_0x4be77c['attributes']&&_0x4be77c['attributes']['tablePasteChainId']==_0x72b4);_0x5c43f0['length']&&_0x2e7e89['getAllAdjacentSuggestions']()['length']!=_0x5c43f0['length']&&_0x5c43f0['reduce']((_0x187a0a,_0x27180a)=>(_0x187a0a['next']=_0x27180a,_0x27180a['previous']=_0x187a0a,_0x27180a));};function _0x165489(_0x1d8e01,_0xd01738=!0x0){const {id:_0x21f25a}=_0x46793f['_splitMarkerName'](_0x1d8e01['markerName']),_0x16fac7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2fee09=_0x46793f['activeMarkers']['includes'](_0x1d8e01['markerName']);return _0x2fee09&&_0x16fac7['push']('ck-suggestion-marker--active'),{'classes':_0x16fac7,'attributes':{'data-suggestion':_0x21f25a},'priority':_0x2fee09&&_0xd01738?0xbc2:0xbb8};}_0x46793f['on']('suggestionLoaded',_0x2e1f60,{'priority':'high'}),_0x46793f['on']('suggestionUnloaded',_0x2e1f60,{'priority':'high'}),_0x363ab9['model']['document']['registerPostFixer'](()=>{let _0x32c440=!0x1;const _0x459677=Array['from'](_0x363ab9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ecf3a,data:_0x3e75ed}of _0x459677){const {group:_0x2396cc,type:_0x200adc,id:_0x216823}=_0x46793f['_splitMarkerName'](_0x5ecf3a);if('suggestion'!=_0x2396cc||'deletion'!=_0x200adc||_0x3e75ed['oldRange'])continue;if(!_0x46793f['hasSuggestion'](_0x216823))continue;const _0x6d75a=_0x46793f['getSuggestion'](_0x216823)['getRanges'](),_0x256138=_0x363ab9['plugins']['get']('Users')['me'];for(const _0x2a9ac1 of _0x46793f['getSuggestions']()){if(!_0x2a9ac1['isInContent']||_0x2a9ac1['author']!=_0x256138)continue;if('formatBlock'!=_0x2a9ac1['type']||'tablePasteCell'!=_0x2a9ac1['subType'])continue;if(_0x2a9ac1['getRanges']()['every'](_0x1358cd=>_0x6d75a['some'](_0x36b3da=>_0x36b3da['containsRange'](_0x1358cd,!0x0)))){for(const _0x1d1c3e of _0x2a9ac1['getAllAdjacentSuggestions']())_0x1d1c3e['isInContent']&&(_0x1d1c3e['discard'](),_0x32c440=!0x0);}}}return _0x32c440;}),_0x363ab9['model']['document']['registerPostFixer'](_0x146af1=>{const _0x34f3c0=_0x363ab9['commands']['get']('redo');if(!_0x34f3c0||!_0x34f3c0['_createdBatches']['has'](_0x146af1['batch']))return!0x1;let _0x296936=!0x1;const _0x3e89f7=_0x363ab9['plugins']['get']('Users')['me'],_0x39a170=_0x363ab9['model']['document']['differ']['getChanges'](),_0x162277=Array['from'](_0x363ab9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1cbad2,data:_0x344aea})=>{const {group:_0x1769f0,subType:_0x5bf8eb,authorId:_0x57ea45}=_0x46793f['_splitMarkerName'](_0x1cbad2);return'suggestion'==_0x1769f0&&'tablePaste'==_0x5bf8eb&&_0x57ea45==_0x3e89f7['id']&&!_0x344aea['oldRange'];});for(const _0x440a35 of _0x39a170){if('insert'!=_0x440a35['type']||'tableCellSuggestion'!=_0x440a35['name']||0x1!=_0x440a35['length'])continue;const _0xba7d4d=_0x146af1['createRange'](_0x440a35['position'],_0x440a35['position']['getShiftedBy'](0x1));if(!_0x162277['find'](({data:_0x417cbf})=>_0x417cbf['newRange']['isEqual'](_0xba7d4d))){for(const {name:_0x587ad9,data:_0x4d7ca7}of _0x162277)if(_0xba7d4d['containsRange'](_0x4d7ca7['newRange'])){_0x146af1['updateMarker'](_0x587ad9,{'range':_0xba7d4d}),_0x296936=!0x0;break;}}}return _0x296936;}),_0x363ab9['model']['document']['registerPostFixer'](_0x6e6a7d=>{let _0x525c06=!0x1;const _0x321cb9=_0x363ab9['plugins']['get']('Users')['me'],_0x6e689e=_0x46793f['getSuggestions']()['filter'](_0x4610e0=>_0x4610e0['isInContent']&&_0x4610e0['author']==_0x321cb9),_0x24b65f=new Set(),_0x515f26=new Set();for(const _0x5e5f69 of _0x6e689e)if('tablePaste'==_0x5e5f69['subType'])for(const _0x1f472f of _0x5e5f69['getMarkers']()){const _0x485ccf=_0x1f472f['getRange']()['getContainedElement']();if(_0x485ccf){if(_0x485ccf['is']('element','tableCellSuggestion')&&Pe(_0x485ccf)){_0x5e5f69['removeMarker'](_0x1f472f['name']),_0x24b65f['add'](_0x485ccf),_0x525c06=!0x0;const _0x23c168=_0x485ccf['nextSibling'],_0x5353f1=_0x485ccf['previousSibling'],_0xd41845=_0x23c168&&_0x23c168['is']('element','tableCellSuggestion'),_0x1250f0=_0x5353f1&&_0x5353f1['is']('element','tableCellSuggestion');_0xd41845&&!_0x24b65f['has'](_0x23c168)&&_0x515f26['add'](_0x23c168),_0x1250f0&&!_0x24b65f['has'](_0x5353f1)&&_0x515f26['add'](_0x5353f1);}else _0x485ccf['is']('element','paragraph')&&_0x485ccf['isEmpty']&&(_0x5e5f69['removeMarker'](_0x1f472f['name']),_0x525c06=!0x0);}}else{if('tablePasteCell'==_0x5e5f69['subType']){if(!_0x5e5f69['attributes']||!_0x5e5f69['attributes']['tablePasteChainId'])continue;const _0xed327e=_0x5e5f69['attributes']['markerAttributes'];if(_0xed327e&&Object['keys'](_0xed327e)['length'])continue;const _0x17de10=_0x5e5f69['attributes']['tablePasteChainId'];let _0x4b1c63=!0x0,_0x5a0a90=!0x0;for(const _0x1d2ef0 of _0x6e689e)if(_0x1d2ef0['subType']&&_0x1d2ef0['subType']['startsWith']('tablePaste')){if(!_0x1d2ef0['attributes']['tablePasteChainId']){_0x5a0a90=!0x1;break;}if(_0x1d2ef0['id']!=_0x5e5f69['id']&&_0x1d2ef0['attributes']['tablePasteChainId']==_0x17de10){_0x4b1c63=!0x1;break;}}_0x5a0a90&&_0x4b1c63&&(_0x5e5f69['removeMarkers'](),_0x525c06=!0x0);}}for(const _0x5e5302 of _0x24b65f)_0x6e6a7d['remove'](_0x5e5302);for(const _0x14e7bd of _0x515f26)_0x6e6a7d['unwrap'](_0x14e7bd);return _0x525c06;}),_0x363ab9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4eae9b,_0x53892d)=>_0x165489(_0x4eae9b),'converterPriority':'high'}),_0x363ab9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1242f5,_0x67bf08)=>_0x67bf08['options']['showSuggestionHighlights']?_0x165489(_0x1242f5,!0x1):null,'converterPriority':'high'});const _0x38a6cb=_0x363ab9['editing']['view'];this['listenTo'](_0x38a6cb['document'],'clipboardOutput',(_0x31979b,_0x12c5c4)=>{const _0x40c9eb=[];for(const _0x2e6071 of _0x38a6cb['createRangeIn'](_0x12c5c4['content'])['getItems']())_0x2e6071['is']('element','suggestion-td')&&_0x40c9eb['push'](_0x2e6071);_0x38a6cb['change'](_0x1b504a=>{for(const _0x18daa5 of _0x40c9eb)_0x1b504a['move'](_0x1b504a['createRangeIn'](_0x18daa5),_0x1b504a['createPositionBefore'](_0x18daa5)),_0x1b504a['remove'](_0x18daa5);});});}}function Pe(_0xb797a0){if(_0xb797a0['isEmpty'])return!0x0;const _0x55236e=_0xb797a0['getChild'](0x0);return _0x55236e['is']('element','paragraph')&&_0x55236e['isEmpty'];}function he(_0x5c27bc,_0x48a7ed={},_0x1ba105){for(const {isAnchor:_0x32ab85,cellHeight:_0x329aa5,cellWidth:_0x599e66}of _0x1ba105['createTableWalker'](_0x5c27bc,{'includeAllSlots':!0x0,..._0x48a7ed}))if(!_0x32ab85||0x1!=_0x329aa5||0x1!=_0x599e66)return!0x1;return!0x0;}class vt extends _0x165a31{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x58e454=this['editor']['plugins']['get']('TrackChangesEditing');_0x58e454['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x58e454['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x58e454['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58e454['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x58e454['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x58e454['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1fdc66,_0x1e15e4){const _0x534422=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1775ce=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x219d97=_0x1e15e4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x31f53d=_0x1775ce['getColumnGroupElement'](_0x219d97);let _0x2603af=_0x31f53d?_0x1775ce['getTableColumnsWidths'](_0x31f53d):null,_0x3838ae=_0x219d97['getAttribute']('tableWidth')||null;const _0x51c831=_0x1e15e4['tableWidth']||_0x3838ae,_0x237241=_0x1e15e4['columnWidths']||_0x2603af,_0x2f36d2=this['editor']['plugins']['get']('Users')['me'];for(const _0xba713d of _0x534422['getSuggestions']()){const _0x23af10=_0xba713d['getContainedElement']();if('resizeTable'===_0xba713d['subType']&&_0x23af10===_0x219d97){_0xba713d['author']!==_0x2f36d2&&_0xba713d['discard']();const _0x5c6685=_0xba713d['data']['commandParams'];_0x3838ae=_0x5c6685[0x0]['tableWidth'],_0x2603af=_0x5c6685[0x0]['columnWidths'];break;}}_0x1fdc66({'table':_0x219d97,'tableWidth':_0x51c831,'columnWidths':_0x237241}),_0x534422['markBlockFormat'](_0x219d97,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3838ae,'columnWidths':_0x2603af}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x39894b){if('formatBlock'!=_0x39894b['type']&&'formatInline'!=_0x39894b['type'])return;const {data:_0x67895a}=_0x39894b;if(_0x67895a&&'resizeTable'===_0x67895a['formatGroupId']){const _0x59b54d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x59b54d)};}}}class Ct extends _0x165a31{['afterInit'](){const _0x4e550f=this['editor'];_0x4e550f['plugins']['has']('Template')&&_0x4e550f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x165a31{['afterInit'](){const _0x2c7d91=this['editor'];if(!_0x2c7d91['commands']['get']('insertTableOfContents'))return;_0x2c7d91['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3d6f4d=_0x2c7d91['plugins']['get']('TrackChangesEditing'),_0x45e9a8=_0x2c7d91['locale'];_0x3d6f4d['descriptionFactory']['registerElementLabel']('tableOfContents',_0xc21fe6=>o(_0x45e9a8,'ELEMENT_TABLE_OF_CONTENTS',_0xc21fe6));}}class Dt extends _0x165a31{['afterInit'](){const _0x15df8e=this['editor'];if(!_0x15df8e['plugins']['has']('Title'))return;const _0x41ff94=_0x15df8e['plugins']['get']('TrackChangesEditing');_0x41ff94['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x15df8e['locale'],'ELEMENT_TITLE')),_0x15df8e['model']['document']['registerPostFixer'](_0x3e029d=>{let _0x4f7c9f=!0x1;const _0x464c5b=Array['from'](_0x15df8e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x331145,data:_0x9198ba}of _0x464c5b){const {group:_0xeea7e8}=_0x41ff94['_splitMarkerName'](_0x331145);if('suggestion'!==_0xeea7e8||!_0x9198ba['newRange'])continue;const _0x4a9186=_0x9198ba['newRange'],_0x9a935f=_0x4a9186['end']['nodeBefore'];if(!_0x9a935f||!_0x9a935f['is']('element','title-content'))continue;if(!_0x4a9186['start']['isTouching'](_0x4a9186['end']))continue;const _0xa8c37c=_0x15df8e['model']['schema']['getNearestSelectionRange'](_0x4a9186['end'],'forward');if(_0xa8c37c&&_0xa8c37c['isCollapsed']){const _0x31512f=_0x3e029d['createRange'](_0x4a9186['start'],_0xa8c37c['start']);_0x31512f['isEqual'](_0x4a9186)||(_0x3e029d['updateMarker'](_0x331145,{'range':_0x31512f}),_0x4f7c9f=!0x0);}_0x4f7c9f||(_0x3e029d['removeMarker'](_0x331145),_0x4f7c9f=!0x0);}return _0x4f7c9f;});}}class Nt extends _0x165a31{['afterInit'](){const _0x1fcc38=this['editor'],_0x5159a1=_0x1fcc38['plugins']['get']('TrackChangesEditing');_0x1fcc38['plugins']['has']('UndoEditing')&&(_0x5159a1['enableCommand']('undo'),_0x5159a1['enableCommand']('redo'));}}class Mt extends _0x165a31{static get['requires'](){return[jt];}['afterInit'](){const _0x3039c5=this['editor'];if(!_0x3039c5['plugins']['has']('TableCaptionEditing'))return;_0x3039c5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x165a31{['tableProperties'];['tableCellProperties'];constructor(_0x126aef){super(_0x126aef),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 _0x5e924e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6cc97f of this['tableProperties'])_0x5e924e['enableCommand'](_0x6cc97f,(_0x246779,_0x521060)=>{const _0xdc704f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6cc97f,[_0xdc704f],this['tableProperties'],'tableProperties',_0x246779,_0x521060);});_0x5e924e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e924e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e924e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4dcd2c,_0x112792)=>this['handleDiscardAction'](this['tableProperties'],_0x4dcd2c,_0x112792)),_0x5e924e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x313ef7 of this['tableCellProperties'])_0x5e924e['enableCommand'](_0x313ef7,(_0x21a0e6,_0xdbbd18)=>{const _0x4ee5bf=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x313ef7,_0x4ee5bf,this['tableCellProperties'],'tableCellProperties',_0x21a0e6,_0xdbbd18);});_0x5e924e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e924e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e924e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x258c8f,_0x37fbba)=>this['handleDiscardAction'](this['tableCellProperties'],_0x258c8f,_0x37fbba)),_0x5e924e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e924e['descriptionFactory']['registerDescriptionCallback'](_0x414a1b=>this['handleSuggestionDescription'](_0x414a1b));}['_handlePropertyChange'](_0x378c62,_0x5a02c6,_0x1e56f3,_0x4f79ea,_0x50960e,_0x343bb1){const _0x50d4ba=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x343bb1['batch'],()=>{for(const _0x51ed1e of _0x5a02c6){if(this['_getSuggestion'](_0x51ed1e,_0x4f79ea))_0x50960e(_0x343bb1);else{const _0x60b02f={};for(const _0x2f7db0 of _0x1e56f3){const _0x958ed0=_0x51ed1e['getAttribute'](_0x2f7db0);void 0x0!==_0x958ed0&&(_0x60b02f[_0x2f7db0]=_0x958ed0);}_0x50960e(_0x343bb1),_0x50d4ba['markBlockFormat'](_0x51ed1e,{'commandParams':[_0x60b02f]},[],_0x4f79ea);}}});}['handleDiscardAction'](_0x3a7a7c,_0xd2f6e2,_0x400e75){const _0x599b1c=_0xd2f6e2[0x0]['start']['nodeAfter'],_0x5de4e0=_0x400e75['commandParams'][0x0];this['editor']['model']['change'](_0x2348fd=>{for(const _0x1bc5c9 of _0x3a7a7c)void 0x0!==_0x5de4e0[_0x1bc5c9]?_0x2348fd['setAttribute'](_0x1bc5c9,_0x5de4e0[_0x1bc5c9],_0x599b1c):_0x2348fd['removeAttribute'](_0x1bc5c9,_0x599b1c);});}['handleSuggestionDescription'](_0x262417){if(_0x262417['data'])switch(_0x262417['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'](_0x406d44,_0x45e629){const _0x5af6dd=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2f3623 of _0x5af6dd['getSuggestions']({'skipNotAttached':!0x0})){const _0x52466d=_0x2f3623['getContainedElement']();if(_0x2f3623['subType']===_0x45e629&&_0x52466d===_0x406d44)return _0x2f3623;}return null;}}const m='$elementName';class p extends _0x165a31{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2b6863,_0x15766d,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x310b0e){function _0x23cf26(_0xab28a1){return _0xab28a1['map'](_0x4f7f24=>String['fromCharCode'](_0x4f7f24))['join']('');}super(_0x310b0e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5b394b,_0x40ae89,_0x417109,_0x4952f1)=>{this['_model']['change'](()=>{for(const _0x727d57 of[..._0x4952f1,..._0x417109])this['_model']['markers']['has'](_0x727d57)&&_0x310b0e['editing']['reconvertMarker'](_0x727d57);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x310b0e['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(),_0x310b0e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x310b0e['config']['get']('trackChanges.trackFormatChanges'),_0x310b0e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x310b0e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x310b0e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x23cf26([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x23cf26([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x38]);}['init'](){const _0x33aae9=this['editor'],_0x3a6356=(_0xb32a59,_0xdb58ed)=>{if('attribute'!=_0xb32a59)return'ck-suggestion-marker-'+_0xb32a59;const _0x308819=_0xdb58ed['split']('|')[0x0];return this['_isBlockAttribute'](_0x308819)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x33aae9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4a1f9d=>{const {id:_0x4fcba8,type:_0x38125f,subType:_0x4888c6}=this['_splitMarkerName'](_0x4a1f9d['markerName']),_0x30a3cc=['ck-suggestion-marker',_0x3a6356(_0x38125f,_0x4888c6)];let _0x1380ff=0xbb8;return this['activeMarkers']['includes'](_0x4a1f9d['markerName'])&&(_0x30a3cc['push']('ck-suggestion-marker--active'),_0x1380ff=0xbc2),'deletion'==_0x38125f&&(_0x1380ff+=0x5),{'classes':_0x30a3cc,'attributes':{'data-suggestion':_0x4fcba8},'priority':_0x1380ff};}}),_0x33aae9['conversion']['for']('dataDowncast')['add'](_0x530b4b=>{_0x530b4b['on']('addMarker:suggestion',(_0x132ac5,_0x240dcd,_0x358800)=>{if(!_0x358800['options']['showSuggestionHighlights'])return;const _0xa0a4bf=_0x240dcd['item'];if(!_0xa0a4bf)return;const _0x1c40b8=_0x358800['mapper']['toViewElement'](_0xa0a4bf);_0x33aae9['model']['schema']['isObject'](_0xa0a4bf)&&_0x1c40b8&&!_0x1c40b8['getCustomProperty']('widget')&&_0x1c40b8['is']('containerElement')&&_0xecdb3b(_0x1c40b8,_0x358800['writer']);},{'priority':'high'});}),_0x33aae9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x33269e,_0x4c3e27)=>{if(!_0x4c3e27['options']['showSuggestionHighlights'])return null;const {type:_0x4f31c9,subType:_0x853d57}=this['_splitMarkerName'](_0x33269e['markerName']);return{'classes':['ck-suggestion-marker',_0x3a6356(_0x4f31c9,_0x853d57)],'priority':0xbb8};}});const _0x46c178=({showActiveMarkers:_0x2434db=!0x0,isAttributeSuggestion:_0x59bb36=!0x1}={})=>(_0x2c345c,_0x149dce,_0x2de95c)=>{if(!_0x149dce['item'])return;const {id:_0x1c3c66}=this['_splitMarkerName'](_0x149dce['markerName']);if(_0x59bb36){const _0xc80509=this['_suggestions']['get'](_0x1c3c66),_0x31b0ef=this['_getAttributeKey'](_0xc80509);if(!this['_isBlockAttribute'](_0x31b0ef))return;}if(_0x149dce['item']['is']('selection'))return void _0x2de95c['consumable']['consume'](_0x149dce['item'],_0x2c345c['name']);const _0x26f458=_0x2de95c['mapper']['toViewElement'](_0x149dce['item']);if(_0x149dce['item']['is']('element')&&_0x33aae9['model']['schema']['isBlock'](_0x149dce['item'])&&!_0x26f458['getCustomProperty']('addHighlight')){_0x2de95c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x26f458),_0x2de95c['writer']['setAttribute']('data-suggestion',_0x1c3c66,_0x26f458),_0x2de95c['mapper']['bindElementToMarker'](_0x26f458,_0x149dce['markerName']),_0x2434db&&(this['activeMarkers']['includes'](_0x149dce['markerName'])?_0x2de95c['writer']['addClass']('ck-suggestion-marker--active',_0x26f458):_0x2de95c['writer']['removeClass']('ck-suggestion-marker--active',_0x26f458));for(const _0x57eafb of _0x33aae9['model']['createRangeIn'](_0x149dce['item'])['getItems']())_0x2de95c['consumable']['consume'](_0x57eafb,_0x2c345c['name']);_0x2de95c['consumable']['consume'](_0x149dce['item'],_0x2c345c['name']);}};_0x33aae9['conversion']['for']('dataDowncast')['add'](_0x199afa=>{_0x199afa['on']('addMarker:suggestion:formatBlock',(_0x27a0dd,_0x280097,_0x1be4dc)=>{_0x1be4dc['options']['showSuggestionHighlights']&&_0x46c178({'showActiveMarkers':!0x1})(_0x27a0dd,_0x280097,_0x1be4dc);},{'priority':'highest'});}),_0x33aae9['conversion']['for']('dataDowncast')['add'](_0x582df1=>{_0x582df1['on']('addMarker:suggestion:attribute',(_0x55e641,_0x2bb598,_0x29062f)=>{_0x29062f['options']['showSuggestionHighlights']&&_0x46c178({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x55e641,_0x2bb598,_0x29062f);},{'priority':'highest'});}),_0x33aae9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xb637cf,_0x558a36)=>_0x558a36['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xb637cf['substr'](0xb)}}),_0x33aae9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x58d8a4,{writer:_0x320485})=>{let _0xdcf151='suggestion:'+_0x58d8a4['getAttribute']('suggestion-type')+':'+_0x58d8a4['getAttribute']('id');return _0x58d8a4['getAttribute']('marker-count')&&(_0xdcf151+=':'+_0x58d8a4['getAttribute']('marker-count')),_0x320485['createElement']('$marker',{'data-name':_0xdcf151});}}),_0x33aae9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33aae9['conversion']['for']('editingDowncast')['add'](_0x5e98d0=>{_0x5e98d0['on']('addMarker:suggestion:formatBlock',_0x46c178(),{'priority':'high'});}),_0x33aae9['conversion']['for']('editingDowncast')['add'](_0xd1419c=>{_0xd1419c['on']('addMarker:suggestion:attribute',_0x46c178({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x33aae9['conversion']['for']('editingDowncast')['add'](_0x53ceca=>{_0x53ceca['on']('removeMarker:suggestion:formatBlock',(_0x3eb1a4,_0xe5e819,_0x29be35)=>{const _0x351527=_0x29be35['mapper']['markerNameToElements'](_0xe5e819['markerName']);if(_0x351527){for(const _0x545399 of _0x351527)_0x545399['getCustomProperty']('addHighlight')||(_0x29be35['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x545399),_0x29be35['writer']['removeAttribute']('data-suggestion',_0x545399),_0x29be35['mapper']['unbindElementFromMarkerName'](_0x545399,_0xe5e819['markerName']));}},{'priority':'high'});}),_0x33aae9['conversion']['for']('editingDowncast')['add'](_0x15cc7f=>{_0x15cc7f['on']('removeMarker:suggestion:attribute',(_0x1fcedf,_0x515381,_0x34fd73)=>{const _0x35f0ef=_0x34fd73['mapper']['markerNameToElements'](_0x515381['markerName']);if(!_0x35f0ef)return;const {id:_0x353d55}=this['_splitMarkerName'](_0x515381['markerName']),_0xb30479=this['_suggestions']['get'](_0x353d55),_0x412a6e=this['_getAttributeKey'](_0xb30479);if(this['_isBlockAttribute'](_0x412a6e)){for(const _0x29cfbd of _0x35f0ef)_0x29cfbd['getCustomProperty']('addHighlight')||(_0x34fd73['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29cfbd),_0x34fd73['writer']['removeAttribute']('data-suggestion',_0x29cfbd),_0x34fd73['mapper']['unbindElementFromMarkerName'](_0x29cfbd,_0x515381['markerName']));}},{'priority':'high'});}),_0x33aae9['model']['document']['registerPostFixer'](_0xaba508=>{let _0x382010=!0x1;const _0x31151a=Array['from'](_0x33aae9['model']['document']['differ']['getChangedMarkers']()),_0x39c6bd=new Set();for(const {name:_0x4fc40d,data:_0x2901a9}of _0x31151a){const {group:_0xea0745,type:_0x325b14,subType:_0x4eeea5,id:_0x279463}=this['_splitMarkerName'](_0x4fc40d);if('suggestion'!==_0xea0745)continue;const _0x5d4f39=this['_suggestions']['get'](_0x279463);if(null!=_0x2901a9['newRange']){'formatInline'==_0x325b14&&(_0x382010=_0x382010||Et(_0x2901a9['newRange'],_0x4fc40d,_0xaba508,_0x33aae9['model']['schema']));const _0x5a2738='attribute'==_0x325b14&&this['_isBlockAttribute'](_0x4eeea5['split']('|')[0x0]);if(_0x2901a9['newRange']['isCollapsed']||'$graveyard'==_0x2901a9['newRange']['root']['rootName']||'formatBlock'==_0x325b14&&!Ut(_0x2901a9['newRange'])||_0x5a2738&&!Ut(_0x2901a9['newRange'])||'deletion'==_0x325b14&&!(!Tt(_0x16b713=_0x2901a9['newRange'])&&!function(_0x310e2c){return _0x310e2c['start']['parent']==_0x310e2c['end']['nodeBefore']&&_0x310e2c['start']['isAtEnd'];}(_0x16b713)))_0xaba508['removeMarker'](_0x4fc40d),_0x382010=!0x0;else{if(!_0x5d4f39||!_0x5d4f39['isInContent'])continue;_0x39c6bd['add'](_0x5d4f39);}}}var _0x16b713;return _0x39c6bd['size']>0x0&&(_0x382010=!!this['_joinWithAdjacentSuggestions'](_0x39c6bd)||_0x382010),_0x382010;}),_0x33aae9['model']['document']['registerPostFixer'](_0x2db268=>{let _0x564231=!0x1;for(const _0x44ce84 of _0x33aae9['model']['document']['differ']['getChanges']())if('insert'==_0x44ce84['type'])for(const _0x38c0d6 of this['_suggestions']['values']()){if(_0x38c0d6['isMultiRange']||!_0x38c0d6['isInContent'])continue;const _0x14f739='formatBlock'==_0x38c0d6['type'],_0x571d2c=this['_getAttributeKey'](_0x38c0d6),_0x341c7c=_0x571d2c&&this['_isBlockAttribute'](_0x571d2c);if(!_0x14f739&&!_0x341c7c)continue;const _0x195b4f=_0x38c0d6['getFirstRange']();if(_0x195b4f['start']['parent']!=_0x195b4f['end']['parent']&&!_0x195b4f['end']['isAtEnd']){const _0x3ea37d=_0x33aae9['model']['createPositionAt'](_0x195b4f['start']['nodeAfter'],'end'),_0x388c14=_0x33aae9['model']['createRange'](_0x195b4f['start'],_0x3ea37d);_0x2db268['updateMarker'](_0x38c0d6['getFirstMarker'](),{'range':_0x388c14}),_0x564231=!0x0;}}return _0x564231;}),_0x33aae9['model']['document']['registerPostFixer'](_0x1a8f2b=>this['_processAttributeChanges'](_0x1a8f2b)),_0x33aae9['model']['document']['registerPostFixer'](_0xc10a8e=>!_0xc10a8e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xc10a8e)),_0x33aae9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33aae9['model']['document']['on']('change:data',(_0x352750,_0x3ec9d2)=>{if(!_0x3ec9d2['isLocal']||_0x3ec9d2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xc8e11d=_0x33aae9['model']['document']['differ']['getChanges']();if(0x0==_0xc8e11d['length'])return;const _0x51fb28=[],_0x21c487=_0xc8e11d['filter'](_0x2cf0e7=>'attribute'==_0x2cf0e7['type']),_0x5bd909=_0xc8e11d['filter'](_0x32e7f2=>'insert'==_0x32e7f2['type']&&'$text'!=_0x32e7f2['name']);for(const _0x485c47 of _0x21c487)this['_isRegisteredAttribute'](_0x485c47['attributeKey'])&&_0x51fb28['push']({'key':_0x485c47['attributeKey'],'newValue':_0x485c47['attributeNewValue'],'oldValue':_0x485c47['attributeOldValue'],'range':Ot(_0x485c47['range'],_0x33aae9['model'])});for(const _0x1181c2 of _0x5bd909){if('rename'!=_0x1181c2['action']&&'refresh'!=_0x1181c2['action'])continue;const _0x1700a9=Gt(_0x1181c2['position']['nodeAfter'],_0x33aae9['model']),_0x59658a=_0x1181c2['before'];'rename'==_0x1181c2['action']&&_0x51fb28['push']({'key':m,'newValue':_0x1181c2['name'],'oldValue':_0x59658a['name'],'range':_0x1700a9});for(const [_0x159fdb,_0x34cf16]of _0x59658a['attributes']){if(!this['_isRegisteredAttribute'](_0x159fdb))continue;const _0x109b27=_0x1181c2['attributes']['get'](_0x159fdb);_0x34cf16!==_0x109b27&&_0x51fb28['push']({'key':_0x159fdb,'newValue':_0x109b27,'oldValue':_0x34cf16,'range':_0x1700a9});}for(const [_0xdb3fcc,_0x219ed3]of _0x1181c2['attributes'])this['_isRegisteredAttribute'](_0xdb3fcc)&&(_0x59658a['attributes']['has'](_0xdb3fcc)||_0x51fb28['push']({'key':_0xdb3fcc,'newValue':_0x219ed3,'oldValue':null,'range':_0x1700a9}));}0x0!=_0x51fb28['length']&&_0x33aae9['model']['enqueueChange'](_0x3ec9d2,_0x9a7022=>{const _0x2d8027=_0x1a0dc4();for(const {range:_0x4d8740,key:_0x1ee5ea,oldValue:_0x2375f5,newValue:_0x37c368}of _0x51fb28)this['markAttributeChange'](_0x4d8740,_0x1ee5ea,_0x2375f5,_0x37c368,{'groupId':_0x2d8027});this['_reduceExistingSuggestions'](_0x9a7022,_0x51fb28);});},{'priority':'lowest'}),_0x33aae9['model']['markers']['on']('update:suggestion',(_0x3fa443,_0x24c235,_0x288859)=>{if(null==_0x288859){const {id:_0x1e6c4d}=this['_splitMarkerName'](_0x24c235['name']),_0x2153b4=this['_suggestions']['get'](_0x1e6c4d);_0x2153b4&&_0x2153b4['addMarkerName'](_0x24c235['name']);}}),_0x33aae9['model']['document']['on']('change:data',()=>{const _0x1634bd=Array['from'](_0x33aae9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x35e8f0=>'suggestion'===this['_splitMarkerName'](_0x35e8f0['name'])['group']);if(0x0===_0x1634bd['length'])return;_0x1634bd['sort']((_0x10ea7d,_0x390ebe)=>{const _0x418cbb=_0x10ea7d['data']['oldRange'],_0x5cc27d=_0x390ebe['data']['oldRange'];return null===_0x418cbb&&null===_0x5cc27d?0x0:null===_0x418cbb&&null!==_0x5cc27d?-0x1:null!==_0x418cbb&&null===_0x5cc27d?0x1:_0x418cbb['start']['isBefore'](_0x5cc27d['start'])?-0x1:0x1;});const _0x503a60=new Set(),_0x1b5067=new Set();for(const {name:_0x37d86a,data:_0x4bec8d}of _0x1634bd){const {id:_0x436303}=this['_splitMarkerName'](_0x37d86a);if(null===_0x4bec8d['oldRange']){const _0x27deff=this['_handleNewSuggestionMarker'](_0x37d86a);_0x1b5067['add'](_0x27deff);}else{const _0x4c017a=this['_suggestions']['get'](_0x436303);null!==_0x4bec8d['newRange']||_0x4c017a['isInContent']?(_0x503a60['add'](_0x4c017a['head']),_0x1b5067['add'](_0x4c017a)):this['_removeSuggestion'](_0x4c017a);}}_0x1b5067['size']>0x0&&this['_refreshSuggestionsChain'](_0x1b5067);for(const _0x1187e5 of _0x503a60)this['fire']('suggestionChanged',_0x1187e5);}),_0x33aae9['model']['on']('applyOperation',(_0x2966e4,_0x2be765)=>{const _0x4ec048=_0x2be765[0x0];if(!this['_suggestions']['size'])return;if(!_0x4ec048['isDocumentOperation'])return;if(_0x4ec048['batch']['isUndo']||!_0x4ec048['batch']['isLocal'])return;let _0x48bbcb,_0x2d2a62;switch(_0x4ec048['type']){case'insert':_0x48bbcb=_0x33aae9['model']['createPositionAt'](_0x4ec048['position']),_0x2d2a62=_0x48bbcb['getShiftedBy'](_0x4ec048['howMany']);break;case'split':_0x48bbcb=_0x33aae9['model']['createPositionAt'](_0x4ec048['splitPosition']),_0x2d2a62=_0x33aae9['model']['createPositionAt'](_0x4ec048['moveTargetPosition']);break;case'move':_0x48bbcb=_0x33aae9['model']['createPositionAt'](_0x4ec048['targetPosition']),_0x2d2a62=_0x48bbcb['getShiftedBy'](_0x4ec048['howMany']);break;default:return;}const _0xbed38=_0x33aae9['model']['createRange'](_0x48bbcb,_0x2d2a62);_0x33aae9['model']['change'](()=>{for(const {suggestion:_0x4c6ca6,meta:_0x5c59f3}of this['_findSuggestions'](_0xbed38)){if(_0x4c6ca6['isMultiRange'])continue;if('formatInline'==_0x4c6ca6['type'])continue;const _0x100709=this['_getAttributeKey'](_0x4c6ca6);if(_0x100709&&this['_isBlockAttribute'](_0x100709)&&'split'!=_0x4ec048['type'])continue;const _0x4c17fb=_0x4c6ca6['data']&&_0x4c6ca6['data']['multipleBlocks'];('formatBlock'!=_0x4c6ca6['type']||'split'==_0x4ec048['type']&&!_0x4c17fb)&&(_0x5c59f3['containsRangeInObject']||'insertion'==_0x4c6ca6['type']&&_0x5c59f3['isOwn']||_0x4c6ca6['getFirstRange']()['containsRange'](_0xbed38)&&this['_breakSuggestionMarker'](_0x4c6ca6,_0x48bbcb,_0x2d2a62));}});},{'priority':'lowest'}),_0x33aae9['model']['on']('deleteContent',(_0x4776d1,_0x15726a)=>{const _0x2f05a8=_0x15726a[0x0],_0x54afa1=_0x15726a[0x1];if(_0x54afa1&&_0x54afa1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2f05a8['isCollapsed'])return;const _0x4e0802=_0x33aae9['model']['schema'],{start:_0x4ed2af,end:_0xb6ee4a}=_0x2f05a8['getFirstRange'](),_0x419399=_0x4ed2af['nodeAfter']&&_0x4e0802['isLimit'](_0x4ed2af['nodeAfter'])?null:_0x4e0802['getNearestSelectionRange'](_0x4ed2af,'forward'),_0x150d25=_0xb6ee4a['nodeBefore']&&_0x4e0802['isLimit'](_0xb6ee4a['nodeBefore'])?null:_0x4e0802['getNearestSelectionRange'](_0xb6ee4a,'backward'),_0x461dae=_0x33aae9['model']['createRange'](_0x419399?_0x419399['start']:_0x4ed2af,_0x150d25?_0x150d25['end']:_0xb6ee4a);_0x33aae9['model']['change'](_0x31e600=>{this['markDeletion'](_0x461dae);const _0x408d1d=_0x33aae9['model']['schema']['getNearestSelectionRange'](_0x461dae['start']);_0x2f05a8['is']('documentSelection')?_0x31e600['setSelection'](_0x408d1d):_0x2f05a8['setTo'](_0x408d1d);}),_0x4776d1['stop']();},{'priority':_0x542e83['normal']+0xa}),_0x33aae9['model']['on']('insertContent',(_0x2b5e76,_0x378a49)=>{const _0x57b79b=_0x378a49[_0x378a49['length']-0x1];_0x57b79b&&_0x57b79b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33aae9['model']['change'](()=>{let _0x2b43e0=_0x33aae9['model']['insertContent'](_0x378a49[0x0],_0x378a49[0x1],_0x378a49[0x2],{'forceDefaultExecution':!0x0});if(!_0x2b43e0)return;_0x2b5e76['return']=_0x2b43e0['clone']();const _0x224f6a=_0x2b43e0['end']['nodeBefore'],_0x31ec92=_0x33aae9['model']['schema'];_0x224f6a&&_0x31ec92['isBlock'](_0x224f6a)&&!_0x31ec92['isObject'](_0x224f6a)&&(_0x2b43e0=_0x33aae9['model']['createRange'](_0x2b43e0['start'],_0x33aae9['model']['createPositionAt'](_0x224f6a,'end'))),this['markInsertion'](_0x2b43e0);}),_0x2b5e76['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3dbca3=new $(_0x33aae9,this['_suggestions']);_0x33aae9['commands']['add']('acceptSuggestion',_0x3dbca3),this['enableCommand']('acceptSuggestion');const _0x22ded4=new B(_0x33aae9,this['_suggestions']);_0x33aae9['commands']['add']('discardSuggestion',_0x22ded4),this['enableCommand']('discardSuggestion'),_0x33aae9['commands']['add']('acceptAllSuggestions',new x(_0x33aae9,_0x3dbca3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33aae9['commands']['add']('discardAllSuggestions',new x(_0x33aae9,_0x22ded4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33aae9['commands']['add']('acceptSelectedSuggestions',new R(_0x33aae9,_0x3dbca3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33aae9['commands']['add']('discardSelectedSuggestions',new R(_0x33aae9,_0x22ded4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x41e5d4=_0x33aae9['plugins']['get']('CommentsRepository');this['listenTo'](_0x41e5d4,'addComment',(_0x19dc5c,{threadId:_0x1e6941})=>{const _0x158a32=this['_suggestions']['get'](_0x1e6941);_0x158a32&&_0x158a32['commentThread']&&0x1===_0x158a32['commentThread']['length']&&this['_updateSuggestionData'](_0x1e6941,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x41e5d4,'removeComment',(_0x5fab98,{threadId:_0x16ba4b})=>{const _0x1d367d=this['_suggestions']['get'](_0x16ba4b);_0x1d367d&&_0x1d367d['commentThread']&&!_0x1d367d['commentThread']['length']&&this['_updateSuggestionData'](_0x16ba4b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x173eec){if(this['_adapter'])throw new _0x1fea76('track-changes-adapter-already-set',this);this['_adapter']=_0x173eec;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4533d7=!0x1,toJSON:_0x50b030=!0x1}={}){const _0x27e56a=[];for(const _0x2b4cc5 of this['_suggestions']['values']())_0x4533d7&&!_0x2b4cc5['isInContent']||_0x27e56a['push'](_0x2b4cc5);return _0x50b030?_0x27e56a['map'](_0x2ac26d=>_0x2ac26d['toJSON']()):_0x27e56a;}['getSuggestion'](_0x578ec4){const _0x544407=this['_suggestions']['get'](_0x578ec4);if(!_0x544407)throw new _0x1fea76('track-changes-suggestion-not-found',this);return _0x544407;}['hasSuggestion'](_0xb878db){return this['_suggestions']['has'](_0xb878db);}['addSuggestionData'](_0xf8dfbe){const {authorId:_0x44a977,id:_0x5ccc8f,attributes:_0xd60626}=_0xf8dfbe,[_0x50c699,_0x45afa2]=_0xf8dfbe['type']['split'](':'),_0x2cb009=this['_suggestions']['get'](_0x5ccc8f)||this['_createSuggestion'](_0x50c699,_0x45afa2,_0x5ccc8f,_0x44a977,_0xd60626);if(this['_addThreadToSuggestion'](_0x2cb009),this['_checkSuggestionCorrectness'](_0x2cb009,_0x50c699,_0x45afa2||null,_0x44a977),_0x2cb009['createdAt']=_0xf8dfbe['createdAt'],_0x2cb009['_isDataLoaded']=!0x0,_0xd60626&&_0xd60626['@external']){const _0xef5d08=_0xd60626['@external'],_0x34615c=this['_getExternalAuthor'](_0xef5d08['authorName']);_0x2cb009['authoredAt']=_0xef5d08['createdAt'],_0x2cb009['author']=_0x34615c,_0x2cb009['isExternal']=!0x0;}else _0x2cb009['authoredAt']=_0xf8dfbe['createdAt'];switch(_0xf8dfbe['data']&&(_0x2cb009['data']=_0xf8dfbe['data']),_0xf8dfbe['attributes']&&(_0x2cb009['attributes']=_0xf8dfbe['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2cb009['_saved']=!0x0),this['_suggestionState']['get'](_0x2cb009)){case'notReady':this['_suggestionState']['set'](_0x2cb009,'dataReady');break;case'markerReady':_0x2cb009['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2cb009])),this['_refreshSuggestionsChain'](new Set([_0x2cb009])),this['_suggestionState']['set'](_0x2cb009,'ready'),this['fire']('suggestionLoaded',_0x2cb009)):this['_suggestionState']['set'](_0x2cb009,'removed');}return _0x2cb009;}['acceptSuggestion'](_0x35cd07){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58d590 of _0x35cd07['getAllAdjacentSuggestions']())_0x58d590['accept']();});});}['discardSuggestion'](_0x3c943f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x408fa6 of _0x3c943f['getAllAdjacentSuggestions']())_0x408fa6['discard']();});});}['enableCommand'](_0x253fcf,_0x1218da){const _0x3c7b26=this['editor']['commands']['get'](_0x253fcf);if(!_0x3c7b26)throw new _0x1fea76('track-changes-command-not-found',this,{'commandName':_0x253fcf});if(this['_enabledCommands']['has'](_0x3c7b26))throw new _0x1fea76('track-changes-enable-command-twice',this,{'commandName':_0x253fcf});this['_enabledCommands']['add'](_0x3c7b26),_0x1218da&&_0x3c7b26['on']('execute',(_0x34b8e2,_0x95684e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x95684e['length']>0x0&&_0x95684e[_0x95684e['length']-0x1]&&_0x95684e[_0x95684e['length']-0x1]['forceDefaultExecution']?_0x95684e['pop']():(_0x34b8e2['return']=_0x1218da((..._0xfbffea)=>_0x3c7b26['execute'](..._0xfbffea,{'forceDefaultExecution':!0x0}),..._0x95684e),_0x34b8e2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3ecdef){let _0x16bb10,_0x494685;const _0x2f7f80=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x16bb10=_0x3ecdef();}catch(_0x5b1f9c){_0x494685=_0x5b1f9c;}return _0x2f7f80||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x494685&&_0x1fea76['rethrowUnexpectedError'](_0x494685,this),_0x16bb10;}['markInsertion'](_0x18a2cf,_0x58f97d=null,_0x5e77b3={}){if(_0x18a2cf['isCollapsed'])return null;const _0x298405=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2d84c3,meta:_0x24f5d2}of this['_findSuggestions'](_0x18a2cf,'insertion'))if(_0x24f5d2['isOwn']){if(!_0x24f5d2['isNextTo']){if(_0x24f5d2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2d84c3,_0x5e77b3))continue;return _0x2d84c3;}if(Lt(_0x2d84c3,_0x5e77b3))return _0x2d84c3;this['_breakSuggestionMarker'](_0x2d84c3,_0x18a2cf['start'],_0x18a2cf['end']);break;}if(_0x58f97d==_0x2d84c3['subType']&&Lt(_0x2d84c3,_0x5e77b3)){const _0x4d65c1=_0x2d84c3['getFirstRange']();return _0x4d65c1['start']['isEqual'](_0x18a2cf['end'])?this['_setSuggestionRange'](_0x2d84c3,this['_model']['createRange'](_0x18a2cf['start'],_0x4d65c1['end'])):this['_setSuggestionRange'](_0x2d84c3,this['_model']['createRange'](_0x4d65c1['start'],_0x18a2cf['end'])),_0x2d84c3;}}const _0x39b02e=_0x1a0dc4(),_0x371bd2=_0x298405['id'],_0x461099=_0x58f97d?'insertion:'+_0x58f97d:'insertion',_0x2ff55f=this['_setSuggestionData']({'id':_0x39b02e,'type':_0x461099,'createdAt':new Date(),'authorId':_0x371bd2,'attributes':_0x5e77b3});return this['_addSuggestionMarker'](_0x461099,_0x39b02e,_0x371bd2,_0x18a2cf),_0x2ff55f;}['markMultiRangeInsertion'](_0x149648,_0xb12b07='multi',_0x3e870e={}){const _0x409acf=this['editor']['plugins']['get']('Users')['me'],_0x34435c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xb12b07,'join');for(const _0x5c3d2d of this['getSuggestions']())if(_0x5c3d2d['author']['id']==_0x409acf['id']&&'insertion'==_0x5c3d2d['type']&&_0x5c3d2d['subType']==_0xb12b07&&Lt(_0x5c3d2d,_0x3e870e)&&(_0x34435c(_0x5c3d2d['getRanges'](),_0x149648)||_0x34435c(_0x149648,_0x5c3d2d['getRanges']()))){for(const _0x5f341a of _0x149648)_0x5c3d2d['addRange'](_0x5f341a);return _0x5c3d2d;}for(const {suggestion:_0xafe19b,meta:_0x3d2cc9}of this['_findSuggestions'](_0x149648,'insertion')){if(!_0x3d2cc9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3d2cc9['containsRangeInObject'])continue;if(!Lt(_0xafe19b,_0x3e870e))continue;let _0x4686a6=!0x0;for(const _0x3e26a7 of _0xafe19b['getRanges']())for(const _0x91668b of _0x149648)if(!_0x3e26a7['containsRange'](_0x91668b)){_0x4686a6=!0x1;break;}if(_0x4686a6)return _0xafe19b;}const _0x1bd72a=_0x1a0dc4(),_0x3f408d=_0x409acf['id'],_0x4a9936='insertion:'+_0xb12b07,_0x3d4bc2=this['_setSuggestionData']({'id':_0x1bd72a,'type':_0x4a9936,'createdAt':new Date(),'authorId':_0x3f408d,'attributes':_0x3e870e});for(const _0x37877e of _0x149648)this['_addSuggestionMarker'](_0x4a9936,_0x1bd72a,_0x3f408d,_0x37877e,u['getMultiRangeId']());return _0x3d4bc2;}['markInlineFormat'](_0x14d9fa,_0x3bdc4c,_0x519616=null,_0x12869a={}){if(_0x519616=_0x519616||Vt(_0x3bdc4c),_0x14d9fa['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5da955=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x519616,'accept');return this['forceDefaultExecution'](()=>_0x5da955([_0x14d9fa],_0x3bdc4c,_0x12869a)),null;}const _0x11a776=this['editor']['plugins']['get']('Users')['me'],_0x5d1384=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x351bc5,meta:_0x4c93ff}of this['_findSuggestions'](_0x14d9fa,'insertion'))_0x4c93ff['isOwn']&&!_0x4c93ff['isInsideObject']&&_0x5d1384['push'](..._0x351bc5['getRanges']());}const _0x2cf73a=function(_0x5727d6,_0x335824){const _0x58d17f=[];for(const _0x21fef3 of _0x335824){const _0x44b54e=_0x5727d6['getIntersection'](_0x21fef3);_0x44b54e&&_0x58d17f['push'](_0x44b54e);}return _0x58d17f;}(_0x14d9fa,_0x5d1384),_0x3a4647=function(_0x3241bb,_0x3352c3){const _0x10833d=[_0x3241bb];for(const _0x45a645 of _0x3352c3){let _0x248b23=0x0;for(;_0x248b23<_0x10833d['length'];){const _0x182be0=_0x10833d[_0x248b23]['getDifference'](_0x45a645);_0x10833d['splice'](_0x248b23,0x1,..._0x182be0),_0x248b23+=_0x182be0['length'];}}return _0x10833d;}(_0x14d9fa,_0x5d1384);_0x2cf73a['length']&&this['_model']['change'](()=>{for(const _0x2b7025 of _0x2cf73a){const _0x2fb161=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x519616,'accept');this['forceDefaultExecution'](()=>_0x2fb161([_0x2b7025],_0x3bdc4c,_0x12869a));}});for(const _0x16922d of _0x3a4647){let _0x3e4c3e=null,_0x278f47=_0x16922d['start'],_0x2e0a48=_0x16922d['end'];for(const {suggestion:_0x4b6cda,meta:_0x484685}of this['_findSuggestions'](_0x16922d,'formatInline')){if(!_0x484685['isOwn'])continue;if(_0x4b6cda['subType']!=_0x519616)continue;if(!Lt(_0x4b6cda,_0x12869a))continue;const _0x3e5469=_0x4b6cda['getFirstRange']();if(_0x3e5469['containsRange'](_0x16922d,!0x0))return null;_0x278f47=_0x278f47['isBefore'](_0x3e5469['start'])?_0x278f47:_0x3e5469['start'],_0x2e0a48=_0x2e0a48['isAfter'](_0x3e5469['end'])?_0x2e0a48:_0x3e5469['end'],_0x3e4c3e?_0x3e5469['start']['isBefore'](_0x3e4c3e['getFirstRange']()['start'])?(_0x3e4c3e['removeMarkers'](),_0x3e4c3e=_0x4b6cda):_0x4b6cda['removeMarkers']():_0x3e4c3e=_0x4b6cda;}const _0xdc6b61=this['_model']['createRange'](_0x278f47,_0x2e0a48);if(_0x3e4c3e)this['_setSuggestionRange'](_0x3e4c3e,_0xdc6b61);else{const _0x2aa62d=_0x1a0dc4(),_0x4b709b=_0x11a776['id'];this['_setSuggestionData']({'id':_0x2aa62d,'type':'formatInline:'+_0x519616,'data':_0x3bdc4c,'createdAt':new Date(),'authorId':_0x4b709b,'attributes':_0x12869a}),this['_addSuggestionMarker']('formatInline:'+_0x519616,_0x2aa62d,_0x4b709b,_0xdc6b61);}}return null;}['markBlockFormat'](_0x14ffd3,_0x41d53f,_0x41be8d=[],_0x7692d3=null,_0x22e5be={}){_0x41d53f['formatGroupId']||(_0x41d53f['formatGroupId']=_0x41d53f['commandName']),_0x41d53f['multipleBlocks']=_0x14ffd3['is']('range'),_0x7692d3=_0x7692d3||Vt(_0x41d53f);const _0x4e55e0=_0x41be8d['map'](_0x263614=>Gt(_0x263614,this['_model'])),_0x2846f2=_0x14ffd3['is']('range')?_0x14ffd3:Gt(_0x14ffd3,this['_model']);if('never'===this['_trackFormatChanges']){const _0x50fa8d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7692d3,'accept');return this['forceDefaultExecution'](()=>_0x50fa8d([_0x2846f2],_0x41d53f,_0x22e5be)),null;}_0x4e55e0['push'](_0x2846f2);let _0xcafb9=!0x0;for(const _0xedccf2 of _0x4e55e0)if(!this['_rangeIsInLocalUserInsertion'](_0xedccf2)){_0xcafb9=!0x1;break;}if(_0xcafb9&&'always'!==this['_trackFormatChanges']){const _0x171367=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7692d3,'accept');return this['forceDefaultExecution'](()=>_0x171367([_0x2846f2],_0x41d53f,_0x22e5be)),null;}let _0x41e5bf=null,_0x2f4309=_0x2846f2['start'],_0x16b7e6=_0x2846f2['end'];for(const {suggestion:_0x1ce572,meta:_0x1f8652}of this['_findSuggestions'](_0x2846f2,'formatBlock')){if(!_0x1f8652['isOwn'])continue;if(_0x1f8652['isNextTo']||_0x1f8652['containsRangeInObject']||_0x1f8652['isInsideObject'])continue;if(_0x1ce572['data']['formatGroupId']!=_0x41d53f['formatGroupId'])continue;if(!Lt(_0x1ce572,_0x22e5be))continue;const _0x38bd87=_0x1ce572['getFirstRange']();if(_0x1ce572['subType']==_0x7692d3){if(_0x38bd87['containsRange'](_0x2846f2,!0x0))return null;_0x2f4309=_0x2f4309['isBefore'](_0x38bd87['start'])?_0x2f4309:_0x38bd87['start'],_0x16b7e6=_0x16b7e6['isAfter'](_0x38bd87['end'])?_0x16b7e6:_0x38bd87['end'],_0x41e5bf?_0x38bd87['start']['isBefore'](_0x41e5bf['getFirstRange']()['start'])?(_0x41e5bf['removeMarkers'](),_0x41e5bf=_0x1ce572):_0x1ce572['removeMarkers']():_0x41e5bf=_0x1ce572;}else{const _0x54d98a=_0x2846f2['getIntersection'](_0x38bd87);this['_cutOutSuggestionMarker'](_0x1ce572,_0x54d98a);}}const _0x1dcee5=this['editor']['plugins']['get']('Users')['me'],_0x2d2c4b=_0x1a0dc4(),_0x5e96c2=_0x1dcee5['id'];if(_0x41e5bf)return this['_setSuggestionRange'](_0x41e5bf,this['_model']['createRange'](_0x2f4309,_0x16b7e6)),_0x41e5bf;{const _0x3c17c4=this['_setSuggestionData']({'id':_0x2d2c4b,'type':'formatBlock:'+_0x7692d3,'data':_0x41d53f,'createdAt':new Date(),'authorId':_0x5e96c2,'attributes':_0x22e5be});return this['_addSuggestionMarker']('formatBlock:'+_0x7692d3,_0x2d2c4b,_0x5e96c2,this['_model']['createRange'](_0x2f4309,_0x16b7e6)),_0x3c17c4;}}['markMultiRangeBlockFormat'](_0xe40083,_0xca8b90,_0x204503=[],_0x4a4dd4=null,_0x3de92a={}){_0xca8b90['formatGroupId']||(_0xca8b90['formatGroupId']=_0xca8b90['commandName']);const _0x50d23a=_0xe40083[0x0];_0xca8b90['multipleBlocks']=_0x50d23a['is']('range'),_0x4a4dd4=_0x4a4dd4||Vt(_0xca8b90);const _0x29c07d=_0x204503['map'](_0x15398a=>Gt(_0x15398a,this['_model'])),_0x5cab5f=_0x50d23a['is']('range')?_0xe40083:_0xe40083['map'](_0x10d6a0=>Gt(_0x10d6a0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x25058d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a4dd4,'accept');return this['forceDefaultExecution'](()=>_0x25058d(_0x5cab5f,_0xca8b90,_0x3de92a)),null;}_0x29c07d['push'](..._0x5cab5f);let _0x51517e=!0x0;for(const _0x321525 of _0x29c07d)if(!this['_rangeIsInLocalUserInsertion'](_0x321525)){_0x51517e=!0x1;break;}if(_0x51517e&&'always'!==this['_trackFormatChanges']){const _0x3a06dc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a4dd4,'accept');return this['forceDefaultExecution'](()=>_0x3a06dc(_0x5cab5f,_0xca8b90,_0x3de92a)),null;}const _0x4d5eb0=this['editor']['plugins']['get']('Users')['me'];for(const _0x115c83 of this['getSuggestions']()){if(_0x115c83['author']['id']!=_0x4d5eb0['id'])continue;if('formatBlock'!=_0x115c83['type']||_0x115c83['data']['formatGroupId']!=_0xca8b90['formatGroupId'])continue;if(!Lt(_0x115c83,_0x3de92a))continue;const _0x2d9989=_0x115c83['subType']==_0x4a4dd4;for(let _0x59f58f=0x0;_0x59f58f<_0x5cab5f['length'];_0x59f58f++){const _0x5d3c35=_0x5cab5f[_0x59f58f];for(const _0x5e694c of _0x115c83['getMarkers']()){const _0x2a12ac=_0x5e694c['getRange']();if(_0x5d3c35['isEqual'](_0x2a12ac)){_0x2d9989?(_0x5cab5f['splice'](_0x59f58f,0x1),_0x59f58f--):_0x115c83['removeMarker'](_0x5e694c['name']);break;}}}}if(0x0==_0x5cab5f['length'])return null;const _0x7b8c4c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a4dd4,'join');for(const _0x3091f3 of this['getSuggestions']())if(_0x3091f3['author']['id']==_0x4d5eb0['id']&&'formatBlock'==_0x3091f3['type']&&_0x3091f3['data']['formatGroupId']==_0xca8b90['formatGroupId']&&_0x3091f3['subType']==_0x4a4dd4&&Lt(_0x3091f3,_0x3de92a)&&(_0x7b8c4c(_0x3091f3['getRanges'](),_0x5cab5f)||_0x7b8c4c(_0x5cab5f,_0x3091f3['getRanges']()))){for(const _0x23289b of _0x5cab5f)_0x3091f3['addRange'](_0x23289b);return _0x3091f3;}const _0x33db57=_0x1a0dc4(),_0x6ed46b=_0x4d5eb0['id'],_0x16fc24='formatBlock:'+_0x4a4dd4,_0x5a7efc=this['_setSuggestionData']({'id':_0x33db57,'type':_0x16fc24,'data':_0xca8b90,'createdAt':new Date(),'authorId':_0x6ed46b,'attributes':_0x3de92a});for(const _0x2fb763 of _0x5cab5f)this['_addSuggestionMarker'](_0x16fc24,_0x33db57,_0x6ed46b,_0x2fb763,u['getMultiRangeId']());return _0x5a7efc;}['markDeletion'](_0x4d2b30,_0x26dd46=null,_0x20aaa8={}){if(_0x4d2b30['isCollapsed'])return null;const _0x5605a2=this['editor']['plugins']['get']('Users')['me'],_0x209a26=new _0x5d0450(_0x4d2b30['start'],_0x4d2b30['end']);for(const {suggestion:_0x6e7099,meta:_0x2dd4b8}of this['_findSuggestions'](_0x209a26,'insertion'))if(_0x2dd4b8['isOwn']&&!_0x2dd4b8['isNextTo']){if(_0x6e7099['isMultiRange']){const _0x40afc0=_0x6e7099['getRanges']()['filter'](_0x4f4c7c=>'$graveyard'!=_0x4f4c7c['root']['rootName']);_0x40afc0['every'](_0x424e52=>_0x209a26['containsRange'](_0x424e52,!0x0))&&_0x6e7099['discard']();if(_0x40afc0['some'](_0x552057=>_0x552057['containsRange'](_0x209a26,!0x0))){const _0x1264c4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26dd46,'accept');return this['forceDefaultExecution'](()=>_0x1264c4([_0x209a26],null,_0x20aaa8)),null;}}else{const _0x152a24=_0x209a26['getIntersection'](_0x6e7099['getFirstRange']());null!==_0x152a24&&_0x6e7099['_onDiscard']([_0x152a24],null,_0x20aaa8);}}if(_0x209a26['detach'](),_0x209a26['isCollapsed']||'$graveyard'==_0x209a26['root']['rootName'])return null;let _0x551afa=null,_0x4cc259=_0x209a26['start'],_0x1011b0=_0x209a26['end'];const _0x424373=this['_findSuggestions'](_0x209a26,'deletion');for(const {suggestion:_0x12ac44,meta:_0x4a8b25}of _0x424373){const _0x5b29b4=this['_model']['createRange'](_0x4cc259,_0x1011b0);if(_0x4a8b25['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a8b25['containsRangeInObject']&&!_0x4a8b25['isInsideObject'])){if(_0x12ac44['isMultiRange']){if(!Lt(_0x12ac44,_0x20aaa8))continue;let _0x491854=!0x0;for(const _0xee78ea of _0x12ac44['getRanges']()){if(_0xee78ea['containsRange'](_0x5b29b4,!0x0))return _0x12ac44;_0x5b29b4['containsRange'](_0xee78ea)||(_0x491854=!0x1);}_0x491854&&_0x12ac44['discard']();}else{const _0x2bc690=_0x12ac44['getFirstRange']();if(_0x2bc690['containsRange'](_0x5b29b4,!0x0))return _0x12ac44;if(!Lt(_0x12ac44,_0x20aaa8)){_0x5b29b4['containsRange'](_0x2bc690)?_0x12ac44['removeMarkers']():_0x2bc690['containsPosition'](_0x4cc259)?_0x4cc259=_0x2bc690['end']:_0x2bc690['containsPosition'](_0x1011b0)&&(_0x1011b0=_0x2bc690['start']);continue;}_0x4cc259=_0x4cc259['isBefore'](_0x2bc690['start'])?_0x4cc259:_0x2bc690['start'],_0x1011b0=_0x1011b0['isAfter'](_0x2bc690['end'])?_0x1011b0:_0x2bc690['end'],_0x20aaa8=Object['assign']({},_0x12ac44['attributes']),_0x551afa?_0x2bc690['start']['isBefore'](_0x551afa['getFirstRange']()['start'])?(_0x551afa['removeMarkers'](),_0x551afa=_0x12ac44):_0x12ac44['removeMarkers']():_0x551afa=_0x12ac44;}}}if(_0x551afa)return this['_setSuggestionRange'](_0x551afa,this['_model']['createRange'](_0x4cc259,_0x1011b0)),_0x551afa;{const _0x182775=_0x1a0dc4(),_0x512131=this['_model']['createRange'](_0x4cc259,_0x1011b0),_0x113f07=_0x5605a2['id'],_0x19cec2=_0x26dd46?'deletion:'+_0x26dd46:'deletion',_0x3db5d4=this['_setSuggestionData']({'id':_0x182775,'type':_0x19cec2,'createdAt':new Date(),'authorId':_0x113f07,'attributes':_0x20aaa8});return this['_addSuggestionMarker'](_0x19cec2,_0x182775,_0x113f07,_0x512131),_0x3db5d4;}}['markMultiRangeDeletion'](_0x3ce620,_0x3e1475='multi',_0x3c12b4={}){const _0x41f9a7=this['editor']['plugins']['get']('Users')['me'],_0x49838f=_0x3ce620['map'](_0x486127=>new _0x5d0450(_0x486127['start'],_0x486127['end'])),_0x11fc55=new Set();for(const {suggestion:_0xd3fd7d,meta:_0x99552}of this['_findSuggestions'](_0x49838f,'insertion'))_0x99552['isOwn']&&!_0x99552['isNextTo']&&_0x11fc55['add'](_0xd3fd7d);for(const _0x242f3a of _0x11fc55)if(_0x242f3a['isMultiRange']){const _0x3886a0=_0x242f3a['getRanges']();(!_0x242f3a['attributes']||!_0x242f3a['attributes']['skipNestingCheck'])&&(_0x3886a0['every'](_0x10fbca=>_0x49838f['some'](_0x36746c=>_0x36746c['containsRange'](_0x10fbca,!0x0)))&&_0x242f3a['discard']());if(_0x49838f['every'](_0x59eadc=>_0x3886a0['some'](_0x481383=>_0x481383['containsRange'](_0x59eadc,!0x0)))){const _0x135772=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e1475,'accept');return this['forceDefaultExecution'](()=>_0x135772(_0x3ce620,null,_0x3c12b4)),null;}}else{const _0x14db0b=_0x242f3a['getFirstRange']();_0x49838f['some'](_0x48e5d0=>_0x48e5d0['containsRange'](_0x14db0b,!0x0))&&_0x242f3a['discard']();if(_0x49838f['every'](_0x4c9dc7=>_0x14db0b['containsRange'](_0x4c9dc7,!0x0))){const _0x50b3eb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e1475,'accept');return this['forceDefaultExecution'](()=>_0x50b3eb(_0x49838f,null,_0x3c12b4)),null;}}const _0x51da95=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e1475,'join');let _0xb43cb9=null;for(const _0x529121 of this['getSuggestions']())if(_0x529121['author']['id']==_0x41f9a7['id']&&_0x529121['isInContent']&&'deletion'==_0x529121['type']&&_0x529121['subType']==_0x3e1475&&Lt(_0x529121,_0x3c12b4)&&(_0x51da95(_0x529121['getRanges'](),_0x49838f)||_0x51da95(_0x49838f,_0x529121['getRanges']()))){if(_0xb43cb9){if(_0x529121['commentThread']&&_0x529121['commentThread']['length'])continue;for(const _0x62ca3f of _0x529121['getRanges']())_0xb43cb9['isIntersectingWithRange'](_0x62ca3f)||_0xb43cb9['addRange'](_0x62ca3f);_0x529121['removeMarkers']();}else{_0xb43cb9=_0x529121;for(const _0x36dc46 of _0x49838f)_0x529121['isIntersectingWithRange'](_0x36dc46)||_0x529121['addRange'](_0x36dc46);}}if(_0xb43cb9)return _0xb43cb9;_0x11fc55['clear']();for(const {suggestion:_0x5bae11,meta:_0x4be211}of this['_findSuggestions'](_0x49838f,'deletion'))_0x4be211['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4be211['containsRangeInObject']&&!_0x4be211['isInsideObject'])&&Lt(_0x5bae11,_0x3c12b4)&&_0x11fc55['add'](_0x5bae11);for(const _0x4cca44 of _0x11fc55){const _0x1425b3=_0x4cca44['getRanges']();if(!_0x3c12b4||!_0x3c12b4['skipNestingCheck']){if(_0x49838f['every'](_0x2621d7=>_0x1425b3['some'](_0x34d892=>_0x34d892['containsRange'](_0x2621d7,!0x0))))return _0x4cca44;}(!_0x4cca44['attributes']||!_0x4cca44['attributes']['skipNestingCheck'])&&(_0x1425b3['every'](_0x17c301=>_0x49838f['some'](_0x4fc19f=>_0x4fc19f['containsRange'](_0x17c301,!0x0)))&&_0x4cca44['discard']());}const _0x41205d=_0x1a0dc4(),_0x14f345=_0x41f9a7['id'],_0x590921='deletion:'+_0x3e1475,_0x518a0e=this['_setSuggestionData']({'id':_0x41205d,'type':_0x590921,'createdAt':new Date(),'authorId':_0x14f345,'attributes':_0x3c12b4});for(const _0x362737 of _0x49838f)_0x362737['detach'](),_0x362737['isCollapsed']||'$graveyard'==_0x362737['root']['rootName']||this['_addSuggestionMarker'](_0x590921,_0x41205d,_0x14f345,_0x362737,u['getMultiRangeId']());return _0x518a0e;}['markAttributeChange'](_0x455887,_0x49fab1,_0x50c1dd,_0x2d4c8f,_0x33e303){if(_0x455887['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x28c579=this['editor']['plugins']['get']('Users')['me']['id'],_0xf940f6=Array['from'](this['_suggestions']['values']())['filter'](_0x151f68=>'attribute'==_0x151f68['type']&&_0x151f68['data']['key']==_0x49fab1&&_0x151f68['isIntersectingWithRange'](_0x455887));if('default'===this['_trackFormatChanges']){const _0x4a2f94=this['_findSuggestions'](_0x455887,'insertion')['filter'](({meta:_0x36dc3c})=>_0x36dc3c['isOwn']&&!_0x36dc3c['isInsideObject']&&!_0x36dc3c['isNextTo'])['map'](({suggestion:_0x1dd892})=>_0x1dd892);_0xf940f6['unshift'](..._0x4a2f94);}const _0x45a21f=new Map([[_0x455887,_0x50c1dd]]);for(const _0xa36b08 of _0xf940f6){const _0x34d17d='attribute'==_0xa36b08['type']?_0xa36b08['data']['oldValue']:void 0x0,_0x2f0fa6=_0xa36b08['getFirstRange'](),_0x3aedcb=Array['from'](_0x45a21f['keys']())['find'](_0x55e5ed=>_0x55e5ed['isIntersecting'](_0x2f0fa6));if(!_0x3aedcb)continue;const _0x45e121=_0x3aedcb['getDifference'](_0x2f0fa6);this['_isBlockAttribute'](_0x49fab1)&&'insertion'==_0xa36b08['type']&&0x0!=_0x45e121['length']||(_0x45a21f['delete'](_0x3aedcb),_0x45e121['forEach'](_0x159425=>{_0x45a21f['set'](_0x159425,_0x50c1dd);}),'insertion'!=_0xa36b08['type']&&_0x34d17d!=_0x2d4c8f&&_0x45a21f['set'](_0x3aedcb['getIntersection'](_0x2f0fa6),_0x34d17d));}const _0x18c146=[];for(const [_0x1525b7,_0x3a3d48]of _0x45a21f){const _0x37ffaa=_0x1a0dc4(),_0x216ed8={'key':_0x49fab1,'oldValue':_0x3a3d48,'newValue':_0x2d4c8f};_0x49fab1['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':_0x49fab1});const _0x311d73=('attribute:'+(_0x49fab1+'|'+Vt({'newValue':_0x2d4c8f})))['substring'](0x0,0x3c),_0xb7a37b=this['_setSuggestionData']({'id':_0x37ffaa,'type':_0x311d73,'data':_0x216ed8,'createdAt':new Date(),'authorId':_0x28c579,'attributes':_0x33e303});_0x18c146['push'](_0xb7a37b),this['_addSuggestionMarker'](_0x311d73,_0x37ffaa,_0x28c579,_0x1525b7);}return _0x18c146;}['enableDefaultAttributesIntegration'](_0x5e04ac){this['enableCommand'](_0x5e04ac,(_0x534445,..._0x34476a)=>{this['_recordAttributeChanges'](()=>{_0x534445(..._0x34476a);});});}['registerBlockAttribute'](_0x5d2f33){this['_blockAttributeKeys']['add'](_0x5d2f33);}['registerInlineAttribute'](_0x5d12f0){this['_inlineAttributeKeys']['add'](_0x5d12f0);}['_getAttributeKey'](_0x59cb9a){return'attribute'==_0x59cb9a['type']?_0x59cb9a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xf40747,_0x57aba1){const _0x2996d0=_0xf40747['getFirstMarker']();this['_model']['change'](_0x2c4ff2=>{_0x2c4ff2['updateMarker'](_0x2996d0,{'range':_0x57aba1});});}['_addThreadToSuggestion'](_0x32710d){const _0x4b74e2=_0x32710d['id'],_0x74da40=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4b74e2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x74da40,'threadId':_0x4b74e2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1c6deb=this['_commentsRepository']['getCommentThread'](_0x4b74e2);_0x1c6deb['unbind']('isRemovable'),_0x1c6deb['isRemovable']=!0x1,_0x32710d['commentThread']=_0x1c6deb;}['_checkSuggestionCorrectness'](_0x44f8e7,_0x2a3082,_0x1e9e67,_0xfe148d){if(_0x44f8e7['type']!=_0x2a3082||_0x44f8e7['subType']!=_0x1e9e67||_0x44f8e7['creator']['id']!=_0xfe148d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1fea76('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4f11d7,_0x54648c){const _0x2ab304=_0x4f11d7['getFirstRange']();if(_0x54648c['isEqual'](_0x2ab304))_0x4f11d7['removeMarkers']();else{if(_0x2ab304['containsRange'](_0x54648c)){const _0x396fc4=this['_model']['createPositionAt'](_0x54648c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4f11d7,this['_model']['createRange'](_0x2ab304['start'],_0x396fc4));const _0x415cf3=_0x1a0dc4(),_0x11aac5=_0x4f11d7['creator']['id'],_0x250460=_0x4f11d7['type']+':'+_0x4f11d7['subType'];this['_setSuggestionData']({'id':_0x415cf3,'type':_0x250460,'createdAt':new Date(),'authorId':_0x11aac5,'data':_0x4f11d7['data'],'attributes':_0x4f11d7['attributes']});const _0x18fae6=this['_model']['createPositionAt'](_0x54648c['end']['parent'],'after'),_0x240ca1=this['_model']['createRange'](_0x18fae6,_0x2ab304['end']);this['_addSuggestionMarker'](_0x250460,_0x415cf3,_0x11aac5,_0x240ca1);}else{if(_0x2ab304['containsPosition'](_0x54648c['start'])){const _0x4e88b0=this['_model']['createPositionAt'](_0x54648c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4f11d7,this['_model']['createRange'](_0x2ab304['start'],_0x4e88b0));}else{const _0x24be0=this['_model']['createPositionAt'](_0x54648c['end']['parent'],'after');this['_setSuggestionRange'](_0x4f11d7,this['_model']['createRange'](_0x24be0,_0x2ab304['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1b38c3){for(const {suggestion:_0x339d81,meta:_0x2f9963}of this['_findSuggestions'](_0x1b38c3,'insertion')){if(!_0x2f9963['isOwn'])continue;const _0x47bf46=_0x339d81['getRanges']();for(const _0x394e15 of _0x47bf46)if(!_0x1b38c3['getDifference'](_0x394e15)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1f0662){const _0xda3122=this['editor']['plugins']['get']('Users')['getUser'](_0x1f0662);if(!_0xda3122)throw new _0x1fea76('track-changes-user-not-found',this);return _0xda3122;}['_getExternalAuthor'](_0x4b632e){const _0x57d955=this['editor']['plugins']['get']('Users'),_0x2cddbe=_0x4588ef('external:'+_0x4b632e),_0x352f8e=_0x57d955['getUser'](_0x2cddbe);return _0x352f8e||_0x57d955['addUser']({'id':_0x2cddbe,'name':_0x4b632e});}['_createSuggestion'](_0x9aaf83,_0x404577,_0x421167,_0x2f720c,_0x46d20e){const _0x307bfc=this['_getAuthorFromId'](_0x2f720c),_0x32e40a=this['_suggestionFactory']['buildSuggestion'](_0x9aaf83,_0x404577,_0x421167,_0x307bfc,_0x46d20e,_0x1943c7=>{this['_updateSuggestionData'](_0x421167,{'attributes':_0x1943c7});const _0x13d007=this['getSuggestion'](_0x421167);this['_joinWithAdjacentSuggestions'](new Set([_0x13d007])),this['_refreshSuggestionsChain'](new Set([_0x13d007]));});return this['listenTo'](_0x32e40a,'accept',()=>{this['_updateSuggestionData'](_0x421167,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x32e40a,'discard',()=>{this['_updateSuggestionData'](_0x421167,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x421167,_0x32e40a),this['_suggestionState']['set'](_0x32e40a,'notReady'),_0x32e40a;}['_splitMarkerName'](_0x5461d5){const _0xcad652=_0x5461d5['split'](':');return{'group':_0xcad652[0x0],'type':_0xcad652[0x1],'subType':_0xcad652['length']>=0x5?_0xcad652[0x2]:null,'id':_0xcad652['length']<0x5?_0xcad652[0x2]:_0xcad652[0x3],'authorId':_0xcad652['length']<0x5?_0xcad652[0x3]:_0xcad652[0x4],'markerCount':0x6==_0xcad652['length']?_0xcad652[0x5]:null};}['_breakSuggestionMarker'](_0x2c2bb8,_0xbc0444,_0x2e1a66){const _0x4dcfe3=_0x2c2bb8['getFirstRange'](),_0x3a0329=_0x4dcfe3['start'],_0x3d2f79=_0x4dcfe3['end'];this['_setSuggestionRange'](_0x2c2bb8,this['_model']['createRange'](_0x3a0329,_0xbc0444));const _0x9d9a09=_0x1a0dc4(),_0x56dac6=_0x2c2bb8['creator']['id'],_0x5cbc23=_0x2c2bb8['type']+(_0x2c2bb8['subType']?':'+_0x2c2bb8['subType']:'');this['_setSuggestionData']({'id':_0x9d9a09,'type':_0x5cbc23,'createdAt':new Date(),'authorId':_0x56dac6,'originalSuggestionId':_0x2c2bb8['id'],'attributes':_0x2c2bb8['attributes'],'data':_0x2c2bb8['data']});const _0x43a199=this['_getAttributeKey'](_0x2c2bb8);('formatBlock'==_0x2c2bb8['type']||_0x43a199&&this['_isBlockAttribute'](_0x43a199))&&(_0x2e1a66=this['_model']['createPositionBefore'](_0x2e1a66['parent'])),this['_addSuggestionMarker'](_0x5cbc23,_0x9d9a09,_0x56dac6,this['_model']['createRange'](_0x2e1a66,_0x3d2f79));}['_findSuggestions'](_0x1641c9,_0x25f289=null){const _0x344bfb=[],_0x36690e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1641c9)||(_0x1641c9=[_0x1641c9]);for(const _0x5ef4db of this['getSuggestions']()){if(!_0x5ef4db['isInContent'])continue;if(_0x25f289&&_0x5ef4db['type']!=_0x25f289)continue;let _0x54125a=!0x1;for(const _0x5025d8 of _0x5ef4db['getRanges']()){for(const _0x2f6e36 of _0x1641c9){const _0x133488=_0x2f6e36['start']['isEqual'](_0x5025d8['end'])||_0x2f6e36['end']['isEqual'](_0x5025d8['start']);if(_0x133488||_0x2f6e36['getIntersection'](_0x5025d8)){const _0x363063=_0x2f6e36['containsRange'](_0x5025d8)&&Rt(this['_model']['schema'],_0x5025d8['start'],_0x2f6e36),_0x1b3b20=_0x5025d8['containsRange'](_0x2f6e36)&&Rt(this['_model']['schema'],_0x2f6e36['start'],_0x5025d8);_0x344bfb['push']({'suggestion':_0x5ef4db,'meta':{'isOwn':_0x36690e==_0x5ef4db['author'],'isNextTo':_0x133488,'isInsideObject':_0x363063,'containsRangeInObject':_0x1b3b20}}),_0x54125a=!0x0;break;}}if(_0x54125a)break;}}return _0x344bfb;}['_addSuggestionMarker'](_0x16d72a,_0x1b5050,_0x2d3caa,_0x73ad2b,_0x29d3a4){this['_model']['change'](_0x20046c=>{let _0x11ca2a='suggestion:'+_0x16d72a+':'+_0x1b5050+':'+_0x2d3caa;_0x29d3a4&&(_0x11ca2a=_0x11ca2a+':'+_0x29d3a4),_0x20046c['addMarker'](_0x11ca2a,{'range':_0x73ad2b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x49d91f){const _0x319688=_0x49d91f['previous'],_0x86bd21=_0x49d91f['next'];_0x49d91f['previous']=null,_0x49d91f['next']=null,null!=_0x319688&&_0x319688['next']==_0x49d91f&&(_0x319688['next']=_0x86bd21),null!=_0x86bd21&&_0x86bd21['previous']==_0x49d91f&&(_0x86bd21['previous']=_0x319688),'ready'==this['_suggestionState']['get'](_0x49d91f)&&(this['_suggestionState']['set'](_0x49d91f,'removed'),this['fire']('suggestionUnloaded',_0x49d91f,_0x319688,_0x86bd21));}['_setSuggestionData'](_0x2e5698){const _0x522c70=_0x2e5698['id'],_0x43d7b6=this['addSuggestionData'](_0x2e5698);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5da195=this['editor']['plugins']['get']('PendingActions'),_0x431ef1=_0x43d7b6['hasComments'],_0xd202a1=_0x43d7b6['subType']?_0x43d7b6['type']+':'+_0x43d7b6['subType']:_0x43d7b6['type'],_0x3e042=this['editor']['locale'],_0x30c1b1=_0x5da195['add'](o(_0x3e042,'PENDING_ACTION_SUGGESTION')),_0x428bb7={'id':_0x522c70,'type':_0xd202a1,'hasComments':_0x431ef1,'data':_0x2e5698['data']||null,'originalSuggestionId':_0x2e5698['originalSuggestionId']||null,'attributes':_0x43d7b6['attributes']};this['_adapter']['addSuggestion'](_0x428bb7)['then'](_0x54afaa=>{_0x43d7b6['_saved']=!0x0,_0x5da195['remove'](_0x30c1b1),_0x54afaa&&_0x54afaa['createdAt']&&(this['_suggestions']['get'](_0x522c70)['createdAt']=_0x54afaa['createdAt']);})['catch'](_0x4ecf50=>{throw _0x173674('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x43d7b6['discard']();}),_0x43d7b6['stopListening'](),this['_suggestions']['delete'](_0x43d7b6['id']),this['_suggestionState']['delete'](_0x43d7b6),_0x4ecf50;});}return _0x43d7b6;}['_isBlockAttribute'](_0x22cd67){return this['_blockAttributeKeys']['has'](_0x22cd67);}['_updateSuggestionData'](_0x4e1c70,_0x228cd7){const _0x4dfa1a=this['editor']['plugins']['get']('PendingActions'),_0xa0e5b9=this['getSuggestion'](_0x4e1c70);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xa0e5b9['_saved']){const _0x2b17e3=_0x4dfa1a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4e1c70,_0x228cd7)['then'](()=>{_0x4dfa1a['remove'](_0x2b17e3);});}else _0xa0e5b9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4e1c70,_0x228cd7);});}}['_getSuggestionData'](_0x52a350){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1fea76('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x52a350);}['_handleNewSuggestionMarker'](_0x162efa){const {id:_0x369b3b,type:_0xa076e,subType:_0x1fc77f,authorId:_0x3025e2}=this['_splitMarkerName'](_0x162efa),_0x1c265c=this['_suggestions']['get'](_0x369b3b)||this['_createSuggestion'](_0xa076e,_0x1fc77f,_0x369b3b,_0x3025e2,{});switch(this['_checkSuggestionCorrectness'](_0x1c265c,_0xa076e,_0x1fc77f,_0x3025e2),this['_suggestionState']['get'](_0x1c265c)){case'notReady':this['_getSuggestionData'](_0x369b3b)['then'](_0xdad22b=>{let _0x1418f4=Promise['resolve']();_0xdad22b['hasComments']&&(_0x1418f4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x369b3b})),_0x1418f4['then'](()=>{this['addSuggestionData'](_0xdad22b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1c265c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x369b3b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1c265c,'ready'),this['fire']('suggestionLoaded',_0x1c265c);break;case'ready':this['fire']('suggestionChanged',_0x1c265c);}return _0x1c265c['addMarkerName'](_0x162efa),_0x1c265c;}['_refreshSuggestionsChain'](_0x5e85ad){const _0x370a09=Array['from'](_0x5e85ad),_0x4d1ef2=_0x370a09['filter'](_0x1688e2=>'attribute'==_0x1688e2['type']);this['_refreshAttributeSuggestionsChain'](_0x4d1ef2);const _0x425c7c=_0x370a09['filter'](_0x2f5daa=>!_0x2f5daa['isMultiRange']&&'attribute'!=_0x2f5daa['type']),_0x978154=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e003e=>!_0x2e003e['isMultiRange']&&'attribute'!=_0x2e003e['type']),_0x2b5c60=_0x978154['filter'](_0x336aed=>!_0x5e85ad['has'](_0x336aed)),_0x468321=new Map(_0x978154['map'](_0x2eee6c=>[_0x2eee6c,this['_suggestionFactory']['getSuggestionCallback'](_0x2eee6c['type'],_0x2eee6c['subType'],'chain')])),_0x51683f=new Map(_0x978154['map'](_0x1c61c7=>[_0x1c61c7,_0x1c61c7['getFirstRange']()])),_0x384da4=new Set(),_0x1931c2=new Set();for(let _0x56550b=0x0;_0x56550b<_0x425c7c['length'];_0x56550b++)_0x5ed4d5(_0x425c7c[_0x56550b],_0x425c7c,_0x56550b+0x1);for(let _0x15eb1c=0x0;_0x15eb1c<_0x425c7c['length'];_0x15eb1c++)_0x5ed4d5(_0x425c7c[_0x15eb1c],_0x2b5c60,0x0);const _0xca668f=new Set();for(let _0xdbce3f=0x0;_0xdbce3f<_0x425c7c['length'];_0xdbce3f++){const _0x19a6ca=_0x425c7c[_0xdbce3f];!_0x1931c2['has'](_0x19a6ca)&&_0x19a6ca['previous']&&(_0xca668f['add'](_0x19a6ca['previous']),_0x19a6ca['previous']['next']===_0x19a6ca&&(_0x19a6ca['previous']['next']=null),_0x19a6ca['previous']=null),!_0x384da4['has'](_0x19a6ca)&&_0x19a6ca['next']&&(_0xca668f['add'](_0x19a6ca['next']),_0x19a6ca['next']['previous']===_0x19a6ca&&(_0x19a6ca['next']['previous']=null),_0x19a6ca['next']=null);}function _0x5ed4d5(_0x4768fc,_0xc03d11,_0x189561){for(let _0x4558ff=_0x189561;_0x4558ff<_0xc03d11['length'];_0x4558ff++){const _0x46f140=_0x53f1b9(_0x4768fc,_0xc03d11[_0x4558ff]);_0x46f140&&(_0x46f140[0x0]['next']=_0x46f140[0x1],_0x46f140[0x1]['previous']=_0x46f140[0x0],_0x384da4['add'](_0x46f140[0x0]),_0x1931c2['add'](_0x46f140[0x1]));}}function _0x53f1b9(_0x366885,_0x6face1){if(_0x366885['author']['id']!==_0x6face1['author']['id'])return null;const _0x54473d=_0x468321['get'](_0x366885)(_0x366885,_0x6face1,_0x51683f['get'](_0x366885),_0x51683f['get'](_0x6face1));if(!_0x54473d)return null;return _0x468321['get'](_0x6face1)(_0x366885,_0x6face1,_0x51683f['get'](_0x366885),_0x51683f['get'](_0x6face1))?_0x54473d[0x1]['commentThread']&&_0x54473d[0x1]['commentThread']['length']?null:_0x54473d:null;}_0xca668f['size']&&this['_refreshSuggestionsChain'](_0xca668f);}['_refreshAttributeSuggestionsChain'](_0x48f555){if(0x0==_0x48f555['length'])return;const _0x23edfe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x574b51=>'attribute'==_0x574b51['type']&&_0x574b51['_isDataLoaded']),_0x5ea317=[],_0x314d2e=new Map();for(const _0x3134d4 of _0x23edfe){const _0x2f2dc5=_0x4588ef(_0x3134d4['attributes']);_0x314d2e['has'](_0x2f2dc5)||(_0x314d2e['set'](_0x2f2dc5,_0x5ea317['length']),_0x5ea317['push']([]));const _0x54c77f=_0x314d2e['get'](_0x2f2dc5);_0x5ea317[_0x54c77f]['push'](_0x3134d4);}!(function(){_0x5ea317['sort']((_0x376c55,_0x4e4eae)=>{const _0x35b6f0=_0x376c55[0x0]['createdAt'],_0x11fcd0=_0x4e4eae[0x0]['createdAt'];return _0x35b6f0==_0x11fcd0?_0x376c55[0x0]['attributes']['groupId']<_0x4e4eae[0x0]['attributes']['groupId']?-0x1:0x1:_0x35b6f0<_0x11fcd0?-0x1:0x1;});for(const _0x214bd2 of _0x5ea317)_0x214bd2['sort']((_0x4b7fd8,_0x5b8946)=>_0x4b7fd8['id']<_0x5b8946['id']?-0x1:0x1);}());for(let _0x230dfb=0x0;_0x230dfb<_0x5ea317['length'];_0x230dfb++){if(0x0==_0x5ea317[_0x230dfb]['length'])continue;const _0x566f93=[];for(let _0x236f63=_0x230dfb+0x1;_0x236f63<_0x5ea317['length'];_0x236f63++)0x0!=_0x5ea317[_0x236f63]['length']&&_0x3085dc(_0x5ea317[_0x230dfb],_0x5ea317[_0x236f63])&&_0x566f93['push'](_0x236f63);for(const _0x2b50c8 of _0x566f93)_0x5ea317[_0x230dfb]=_0x5ea317[_0x230dfb]['concat'](_0x5ea317[_0x2b50c8]),_0x5ea317[_0x2b50c8]=[];}for(const _0x51ffc0 of _0x5ea317)for(let _0x3c1e82=0x0;_0x3c1e82<_0x51ffc0['length'];_0x3c1e82++)_0x51ffc0[_0x3c1e82]['next']=_0x51ffc0[_0x3c1e82+0x1]||null;for(const _0x544e16 of _0x5ea317)for(let _0x5192fd=0x0;_0x5192fd<_0x544e16['length'];_0x5192fd++)_0x544e16[_0x5192fd]['previous']=_0x544e16[_0x5192fd-0x1]||null;function _0x3085dc(_0x5f13f6,_0x4d01a7){if(_0x5f13f6[0x0]['attributes']['groupId']!==_0x4d01a7[0x0]['attributes']['groupId']&&_0x5f13f6[0x0]['author']!==_0x4d01a7[0x0]['author'])return!0x1;if(!function(_0x38d241,_0x5a5b1b){if(!_0x38d241['hasComments']&&!_0x5a5b1b['hasComments'])return!0x0;if(_0x38d241['hasComments']&&_0x5a5b1b['hasComments'])return!0x1;if(_0x38d241['hasComments']&&_0x5a5b1b['createdAt']<_0x38d241['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5a5b1b['hasComments']&&_0x38d241['createdAt']<_0x5a5b1b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5f13f6[0x0],_0x4d01a7[0x0]))return!0x1;const _0x2ab64d=Bt(_0x5f13f6[0x0]['attributes'],'groupId'),_0x2982f4=Bt(_0x4d01a7[0x0]['attributes'],'groupId');if(!_0x26274f(_0x2ab64d,_0x2982f4))return!0x1;return!!_0x5f13f6['every'](_0x5d735e=>_0x4d01a7['some'](_0x23b36c=>_0x5d735e['getFirstRange']()['isEqual'](_0x23b36c['getFirstRange']())))&&_0x4d01a7['every'](_0x42ccbd=>_0x5f13f6['some'](_0x141f63=>_0x42ccbd['getFirstRange']()['isEqual'](_0x141f63['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x32a792){const _0x480b27=Array['from'](_0x32a792),_0x2d3de3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2f0ca6=_0x2d3de3['filter'](_0x496975=>!_0x32a792['has'](_0x496975)),_0x3a7847=new Map(_0x480b27['map'](_0x3ee393=>[_0x3ee393,this['_suggestionFactory']['getSuggestionCallback'](_0x3ee393['type'],_0x3ee393['subType'],'join')])),_0x41df44=new Map(_0x2d3de3['map'](_0x59a18d=>[_0x59a18d,_0x59a18d['getRanges']()]));for(let _0x23cfc1=0x0;_0x23cfc1<_0x480b27['length'];_0x23cfc1++){if(_0x5f801e(this,_0x480b27[_0x23cfc1],_0x480b27,_0x23cfc1+0x1))return!0x0;}for(let _0x56317f=0x0;_0x56317f<_0x480b27['length'];_0x56317f++){if(_0x5f801e(this,_0x480b27[_0x56317f],_0x2f0ca6,0x0))return!0x0;}return!0x1;function _0x5f801e(_0xa78b57,_0x5c7de5,_0x520e66,_0x5af9b5){for(let _0x5b268e=_0x5af9b5;_0x5b268e<_0x520e66['length'];_0x5b268e++){const _0x4ef5a7=_0x520e66[_0x5b268e];if(_0x4ef5a7['type']!==_0x5c7de5['type']||_0x4ef5a7['author']['id']!==_0x5c7de5['author']['id']||_0x4ef5a7['subType']!==_0x5c7de5['subType'])continue;if(!Pt(_0x5c7de5,_0x4ef5a7,['groupId']))continue;if('attribute'==_0x5c7de5['type']&&_0x5c7de5['data']['oldValue']!=_0x4ef5a7['data']['oldValue'])continue;if('attribute'==_0x5c7de5['type']&&_0xa78b57['_isBlockAttribute'](_0x5c7de5['data']['key']))continue;if('formatBlock'==_0x5c7de5['type']){const _0x5a9015=_0xa78b57['editor']['model'],_0x5190d0=_0x5c7de5['getContainedElement']();if(_0x5190d0&&(_0x5a9015['schema']['isObject'](_0x5190d0)||_0x5a9015['schema']['isLimit'](_0x5190d0)))continue;}const _0xd022d2=_0x3a7847['get'](_0x5c7de5),_0x71a0a3=_0x41df44['get'](_0x5c7de5),_0x468812=_0x41df44['get'](_0x4ef5a7),_0xab6613=_0x5c7de5['commentThread']&&_0x5c7de5['commentThread']['length'],_0x34fafa=_0x4ef5a7['commentThread']&&_0x4ef5a7['commentThread']['length'];if(!_0xab6613&&_0xd022d2(_0x468812,_0x71a0a3))return _0xa78b57['_joinSuggestions'](_0x4ef5a7,_0x5c7de5),_0x41df44['delete'](_0x5c7de5),!0x0;if(!_0x34fafa&&_0xd022d2(_0x71a0a3,_0x468812))return _0xa78b57['_joinSuggestions'](_0x5c7de5,_0x4ef5a7),_0x41df44['delete'](_0x4ef5a7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x56d019,_0x300ece){if(_0x56d019['isMultiRange']){for(const _0x485db3 of _0x300ece['getRanges']())_0x56d019['addRange'](_0x485db3);}else{const _0x3e7f9c=_0x300ece['getFirstRange']()['end'];this['_setSuggestionRange'](_0x56d019,this['_model']['createRange'](_0x56d019['getFirstRange']()['start'],_0x3e7f9c));}_0x300ece['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2b671d,_0x2fde27){const _0x362608=_0x2b671d['startsWith']('format')||_0x2b671d['startsWith']('attribute')?'FORMATTING':_0x2b671d['toUpperCase']();return o(this['editor']['locale'],_0x2fde27+'_'+_0x362608+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x689124=this['editor'];if(!_0x689124['ui'])return;const {ariaLiveAnnouncer:_0x480513}=_0x689124['ui'];_0x2bfce0(this['_model'],({left:_0x1333fe,entered:_0x5a1335})=>{for(const _0x5c2c62 of _0x1333fe){const {group:_0x2e5b26,type:_0x1c03cd}=this['_splitMarkerName'](_0x5c2c62['name']);if('suggestion'===_0x2e5b26){_0x480513['announce'](this['_getMarkerAnnouncementText'](_0x1c03cd,'LEAVE'));break;}}for(const _0x4c785b of _0x5a1335){const {group:_0x57e5bc,type:_0x316f5e}=this['_splitMarkerName'](_0x4c785b['name']);if('suggestion'===_0x57e5bc){_0x480513['announce'](this['_getMarkerAnnouncementText'](_0x316f5e,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1f9133){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5e8bf8=this['editor'],_0x57373c=_0x5e8bf8['model']['document']['differ']['getChanges']();if(0x0==_0x57373c['length'])return!0x1;const _0x1f2af8=[],_0x416f94=_0x57373c['filter'](_0x374a06=>'attribute'==_0x374a06['type']),_0x550e03=_0x57373c['filter'](_0x46fa6c=>'insert'==_0x46fa6c['type']&&'$text'!=_0x46fa6c['name']),_0x5db7c1=_0x57373c['filter'](_0x4c7e81=>'remove'==_0x4c7e81['type']&&'$text'!=_0x4c7e81['name']);for(const _0x232081 of _0x416f94)_0x1f2af8['push']({'key':_0x232081['attributeKey'],'newValue':_0x232081['attributeNewValue'],'oldValue':_0x232081['attributeOldValue'],'range':Ot(_0x232081['range'],_0x5e8bf8['model'])});for(const _0x45a957 of _0x550e03){const _0x1da793=_0x5db7c1['find'](_0x5cc44c=>_0x5cc44c['position']['isEqual'](_0x45a957['position']));_0x1da793&&_0x1f2af8['push']({'key':m,'newValue':_0x45a957['name'],'oldValue':_0x1da793['name'],'range':_0x5e8bf8['model']['createRangeOn'](_0x45a957['position']['nodeAfter'])});}return 0x0!=_0x1f2af8['length']&&this['_reduceExistingSuggestions'](_0x1f9133,_0x1f2af8);}['_processAttributeSuggestions'](_0x4f8659){let _0x24a5f5=!0x1;const _0x1bc3db=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5c5881=>_0x5c5881['data']['newRange']&&_0x5c5881['name']['startsWith']('suggestion:attribute:'));for(const _0x342c1e of _0x1bc3db){const {subType:_0x559257,id:_0x123f98}=this['_splitMarkerName'](_0x342c1e['name']),_0x3d226b=_0x559257['split']('|')[0x0];for(const _0x5063e4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5063e4['id']!=_0x123f98&&'attribute'==_0x5063e4['type']&&_0x5063e4['data']&&_0x5063e4['data']['key']==_0x3d226b&&_0x5063e4['getFirstRange']()['isIntersecting'](_0x342c1e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5063e4,_0x342c1e['data']['newRange'],_0x4f8659),_0x24a5f5=!0x0);}return _0x24a5f5;}['_recordAttributeChanges'](_0x183eda){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x183eda();}['_isRegisteredAttribute'](_0x5283b3){const _0x54e5ac=this['_isBlockAttribute'](_0x5283b3),_0x25c6d0=this['_inlineAttributeKeys']['has'](_0x5283b3);return _0x54e5ac||_0x25c6d0;}['_reduceExistingSuggestions'](_0x4b1d46,_0x27a6ad){if(0x0==_0x27a6ad['length'])return!0x1;let _0x4b88ef=!0x1;for(const _0x57d1de of _0x27a6ad){const _0x3df0d0=this['_findSuggestions'](_0x57d1de['range'],'attribute')['filter'](_0x1410c4=>!_0x1410c4['meta']['isNextTo'])['map'](_0x55c800=>_0x55c800['suggestion']),_0x3c1504=_0x4588ef({'newValue':_0x57d1de['newValue']});_0x3df0d0['filter'](_0x476865=>{const [_0x218b2f,_0x2abd5b]=_0x476865['subType']['split']('|');return _0x218b2f==_0x57d1de['key']&&_0x2abd5b!=_0x3c1504;})['forEach'](_0x3be3ef=>{this['_reduceSuggestionAttributeRange'](_0x3be3ef,_0x57d1de['range'],_0x4b1d46),_0x4b88ef=!0x0;});}return _0x4b88ef;}['_reduceSuggestionAttributeRange'](_0x5f3add,_0x5f5631,_0x2b600f){const _0x45016e=_0x5f3add['getFirstRange']()['getDifference'](_0x5f5631);0x0!==_0x45016e['length']?0x1!==_0x45016e['length']?this['_breakSuggestionMarker'](_0x5f3add,_0x5f5631['start'],_0x5f5631['end']):this['_setSuggestionRange'](_0x5f3add,_0x45016e[0x0]):_0x2b600f['removeMarker'](_0x5f3add['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2b8d9c){this['_editor']=_0x2b8d9c,this['_model']=_0x2b8d9c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x49e833,_0x110030,_0x5a4415,_0x1e7726,_0x56a770,_0xca533b){return new u(this['_model'],{'type':_0x49e833,'subType':_0x110030,'id':_0x5a4415,'author':_0x1e7726,'creator':_0x1e7726,'attributes':_0x56a770,'onAttributesChange':_0xca533b,'onAccept':(..._0x2a291a)=>this['getSuggestionCallback'](_0x49e833,_0x110030,'accept')(..._0x2a291a),'onDiscard':(..._0x4a6d53)=>this['getSuggestionCallback'](_0x49e833,_0x110030,'discard')(..._0x4a6d53)});}['registerCustomCallback'](_0x4eea1e,_0x303508,_0x3c947e,_0x458288){const _0xeee6cf=_0x4eea1e+':'+_0x303508+':'+_0x3c947e;this['_customCallbacks']['set'](_0xeee6cf,_0x458288);}['getSuggestionCallback'](_0x1eb578,_0x2bee37,_0x443f44){const _0x40d56e=_0x1eb578+':'+_0x2bee37+':'+_0x443f44;return this['_customCallbacks']['get'](_0x40d56e)||this['_defaultCallbacks']['get'](_0x1eb578+':'+_0x443f44);}['_registerDefaultCallbacks'](){const _0x5b872f=()=>!0x1,_0x62c1a8=_0x587d83=>{_0x587d83['sort']((_0x55f560,_0x27b214)=>_0x55f560['start']['isBefore'](_0x27b214['start'])?0x1:-0x1),this['_model']['change'](_0x3c6264=>{for(const _0x1d9770 of _0x587d83){let _0x5d3c04;_0x5d3c04=_0x1d9770['end']['isAtEnd']&&_0x1d9770['end']['parent']==_0x1d9770['start']['nodeAfter']?_0x3c6264['createSelection'](_0x1d9770['start']['nodeAfter'],'on'):_0x3c6264['createSelection'](_0x1d9770),this['_model']['deleteContent'](_0x5d3c04,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2629d6=(_0x1e0ec9,_0x10455a)=>{_0x10455a&&this['_model']['change'](_0x2a6e87=>{const {commandName:_0x2865dd,commandParams:_0x26f775=[]}=_0x10455a,_0x3ed70c=_0x1e0ec9['map'](_0x5f3856=>(Tt(_0x5f3856)&&(_0x5f3856=this['_model']['createRange'](_0x5f3856['end'])),_0x5f3856))['filter'](_0x5ce566=>'$graveyard'!==_0x5ce566['root']['rootName']);if(_0x3ed70c['length']<0x1)return;const _0x4f4d04=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc3fc64=>_0x5d0450['fromRange'](_0xc3fc64));_0x2a6e87['setSelection'](_0x3ed70c);for(const _0x38049d of this['_editor']['commands']['commands']())_0x38049d['refresh']();_0x26f775['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2865dd,..._0x26f775);const _0x5b69b7=_0x4f4d04['filter'](_0x460ba1=>'$graveyard'!=_0x460ba1['root']['rootName']);_0x5b69b7['length']>0x0&&_0x2a6e87['setSelection'](_0x5b69b7);for(const _0x2026fc of _0x4f4d04)_0x2026fc['detach']();});},_0x517c43=(_0x42c0d6,_0x2b7c30)=>0x1==_0x42c0d6['length']&&0x1==_0x2b7c30['length']&&_0x42c0d6[0x0]['end']['isEqual'](_0x2b7c30[0x0]['start']),_0x3444ae=(_0xdbc6a0,_0xf115f8,_0x188bae,_0x322bbc)=>Ft(_0xdbc6a0,_0xf115f8,_0x188bae,_0x322bbc,this['_model'])?[_0xdbc6a0,_0xf115f8]:Ft(_0xf115f8,_0xdbc6a0,_0x322bbc,_0x188bae,this['_model'])?[_0xf115f8,_0xdbc6a0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5b872f),this['_defaultCallbacks']['set']('insertion:discard',_0x62c1a8),this['_defaultCallbacks']['set']('insertion:join',_0x517c43),this['_defaultCallbacks']['set']('insertion:chain',_0x3444ae),this['_defaultCallbacks']['set']('deletion:accept',_0x62c1a8),this['_defaultCallbacks']['set']('deletion:discard',_0x5b872f),this['_defaultCallbacks']['set']('deletion:join',_0x517c43),this['_defaultCallbacks']['set']('deletion:chain',_0x3444ae),this['_defaultCallbacks']['set']('formatInline:accept',_0x2629d6),this['_defaultCallbacks']['set']('formatInline:discard',_0x5b872f),this['_defaultCallbacks']['set']('formatInline:join',_0x517c43),this['_defaultCallbacks']['set']('formatInline:chain',_0x5b872f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2629d6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5b872f),this['_defaultCallbacks']['set']('formatBlock:join',_0x517c43),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5b872f),this['_defaultCallbacks']['set']('attribute:accept',_0x5b872f),this['_defaultCallbacks']['set']('attribute:discard',(_0x4d1404,_0x1b1f2e)=>{if(!_0x1b1f2e)return;const _0x570b23=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xb71397=>{if(_0x1b1f2e['key']==m)for(const _0x32a014 of _0x4d1404){const _0x3fa2d7=_0x32a014['start']['nodeAfter'],_0x56fc16=_0x1b1f2e['oldValue'];_0xb71397['rename'](_0x3fa2d7,_0x56fc16);}else{if(_0x570b23['_isBlockAttribute'](_0x1b1f2e['key'])){for(const _0xffa707 of _0x4d1404)void 0x0!==_0x1b1f2e['oldValue']?_0xb71397['setAttribute'](_0x1b1f2e['key'],_0x1b1f2e['oldValue'],_0xffa707['start']['nodeAfter']):_0xb71397['removeAttribute'](_0x1b1f2e['key'],_0xffa707['start']['nodeAfter']);}else{for(const _0x30255b of _0x4d1404)_0x1b1f2e['oldValue']?_0xb71397['setAttribute'](_0x1b1f2e['key'],_0x1b1f2e['oldValue'],_0x30255b):_0xb71397['removeAttribute'](_0x1b1f2e['key'],_0x30255b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x517c43);}}function Rt(_0x315d7c,_0x5eec39,_0x15c27e){for(const _0x87a1ae of _0x5eec39['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x87a1ae['root']==_0x87a1ae)return!0x1;if(!_0x15c27e['containsItem'](_0x87a1ae))return!0x1;if(_0x315d7c['isObject'](_0x87a1ae)||_0x315d7c['isLimit'](_0x87a1ae))return!0x0;}return!0x1;}function Tt(_0x42ddee){return _0x42ddee['end']['parent']==_0x42ddee['start']['nodeAfter']&&_0x42ddee['end']['isAtStart'];}function Et(_0x360aaa,_0x6705b0,_0x431969,_0x250d78){const _0x274a86=_0x5c6f01=>!_0x5c6f01['item']['is']('$textProxy')&&!_0x250d78['isObject'](_0x5c6f01['item']),_0x3017ab=_0x360aaa['start']['getLastMatchingPosition'](_0x274a86),_0x3fa2e7=_0x360aaa['end']['getLastMatchingPosition'](_0x274a86,{'direction':'backward'});return(!_0x360aaa['start']['isEqual'](_0x3017ab)||!_0x360aaa['end']['isEqual'](_0x3fa2e7))&&(_0x3017ab['isBefore'](_0x3fa2e7)?_0x431969['updateMarker'](_0x6705b0,{'range':_0x431969['createRange'](_0x3017ab,_0x3fa2e7)}):_0x431969['removeMarker'](_0x6705b0),!0x0);}function Vt(_0x53eda0){return _0x4588ef(_0x53eda0);}function Ut(_0x487dac){const _0x43ad44=_0x487dac['start']['nodeAfter'];return _0x43ad44&&_0x43ad44['is']('element');}function Ot(_0x5bc0f7,_0x38eafe){return null==_0x5bc0f7['end']['nodeBefore']&&_0x5bc0f7['end']['parent']==_0x5bc0f7['start']['nodeAfter']?Gt(_0x5bc0f7['start']['nodeAfter'],_0x38eafe):_0x5bc0f7;}function Gt(_0x2691cc,_0xd2bd24){const _0x306d01=_0xd2bd24['schema']['isObject'](_0x2691cc)||_0xd2bd24['schema']['isSelectable'](_0x2691cc);return _0xd2bd24['createRange'](_0xd2bd24['createPositionAt'](_0x2691cc,'before'),_0x306d01?_0xd2bd24['createPositionAfter'](_0x2691cc):_0xd2bd24['createPositionAt'](_0x2691cc,'end'));}function Ft(_0x12d7e5,_0x237990,_0x32d3cb,_0x34d543,_0x43e5e7){if(!Pt(_0x12d7e5,_0x237990))return!0x1;if(_0x32d3cb['end']['isEqual'](_0x34d543['start']))return!0x0;if(_0x12d7e5['type']!=_0x237990['type'])return!0x1;if(!_0x32d3cb['end']['isTouching'](_0x34d543['start']))return!0x1;const _0x134a7c=_0x43e5e7['createRange'](_0x32d3cb['end'],_0x34d543['start'])['getWalker']();for(const _0x2960b1 of _0x134a7c)if(['elementStart','elementEnd']['includes'](_0x2960b1['type'])&&_0x43e5e7['schema']['isLimit'](_0x2960b1['item']))return!0x1;return!0x0;}function Pt(_0x68d3bc,_0x518233,_0x52758c=[]){return!(!_0x68d3bc['_isDataLoaded']||!_0x518233['_isDataLoaded'])&&_0x26274f(Bt(_0x68d3bc['attributes'],_0x52758c),Bt(_0x518233['attributes'],_0x52758c));}function Lt(_0x4e2b5d,_0x2455b1){const _0x5d4ae9=Ht(_0x4e2b5d['attributes']),_0x4fe23e=Ht(_0x2455b1);if(!_0x4e2b5d['_isDataLoaded'])return!0x1;for(const _0x3c8adf of Object['keys'](_0x4fe23e))if(!_0x26274f(_0x5d4ae9[_0x3c8adf],_0x4fe23e[_0x3c8adf]))return!0x1;return!0x0;}function Ht(_0x21dbca){const _0x315cee=Object['assign']({},_0x21dbca);return delete _0x315cee['skipNestingCheck'],delete _0x315cee['tablePasteChainId'],_0x315cee;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x59bc79(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x45c92d,_0x867008,_0x2d02b7,_0x5bf279){super(),this['model']=_0x867008,this['view']=_0x2d02b7,this['commentThreadController']=_0x5bf279,this['_editor']=_0x45c92d,this['_acceptCommand']=_0x45c92d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x45c92d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x335e88,_0x38f720)=>_0x335e88||_0x38f720),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x23779e=>_0x23779e&&this['_editor']['model']['canEditAt'](_0x867008['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5c39ed=>_0x5c39ed&&this['_editor']['model']['canEditAt'](_0x867008['getRanges']())),this['_pendingAction']=null,_0x2d02b7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2d02b7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2d02b7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2d02b7,'change:isDirty',()=>{_0x2d02b7['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 _0x1d4c24=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1d4c24);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x14723b{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x8ebef,_0x14b383,_0x870b26,_0x555734){super(_0x8ebef),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x14b383['authoredAt']),this['bind']('authoredAt')['to'](_0x14b383),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x14b383,this['_localUser']=_0x870b26,this['_config']=_0x555734,_0x555734['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x54f26f}=this['_config'];this['commentsListView']=new _0x54f26f(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',_0xf948b5=>_0xf948b5+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x31d182,_0x1c860d)=>_0x31d182||!!_0x1c860d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5a61e9}=this['_config'],_0x206616=new _0x5a61e9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x283851=_0x206616['commentInputView'];return _0x206616['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x283851,'value',(_0x29f996,_0x445b94,_0x593a51)=>!!_0x593a51||_0x29f996&&!_0x445b94),_0x283851['on']('submit',(_0x395dbc,_0x1bf65b)=>{this['fire']('addComment',_0x1bf65b),_0x283851['editor']['setData']('');}),_0x283851['on']('cancel',()=>this['focus']()),_0x283851['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x206616;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5b3838,_0x39d079,_0x465a34,_0x5801f7){super(_0x5b3838,_0x39d079,_0x465a34,_0x5801f7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3ba172=>_0x3ba172&&_0x3ba172[0x0]?_0x3ba172[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xa6524e,_0x2b78f2)=>{let _0x4b7779='';for(const _0x511573 of _0xa6524e)_0x4b7779+='<p>'+ds(_0x511573['content'],_0x511573['color'])+'</p>';return _0x2b78f2?_0x4b7779:_0x320a0d(_0x4b7779,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5b3838,'Accept\x20suggestion'),_0x248ec0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5b3838,'Discard\x20suggestion'),_0x248ec0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xc40ff7(_0x5b3838,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x568a3b=this['bindTemplate'],_0x184b34=[{'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':_0x568a3b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x568a3b['to']('authoredAt',_0x403471=>this['_config']['formatDateTime'](_0x403471))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x184b34['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3475ce={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x568a3b['if']('isActive','ck-suggestion-wrapper--active'),_0x568a3b['to']('type',_0xfa38a3=>'ck-suggestion-'+_0xfa38a3),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x184b34}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3475ce['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x3475ce;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x47d1a1,_0x3ccdd2,_0x54a431)=>{this['_descriptionElement']['innerHTML']=_0x54a431;});}['_createButton'](_0x13aa6c,_0x1310d4,_0x59ff2e,_0x1dc88e,_0x4ee76d){const _0x416fe6=new _0x20a4b2(this['locale']);return _0x416fe6['set']({'label':_0x13aa6c,'icon':_0x1310d4,'tooltip':!0x0,'tooltipPosition':_0x4ee76d}),_0x416fe6['extendTemplate']({'attributes':{'class':_0x59ff2e}}),_0x416fe6['on']('execute',()=>{this['fire'](_0x1dc88e,this['_model']['id']);}),_0x416fe6;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x340b7d,_0x223a93){let _0x10947a='';return _0x10947a+=_0x340b7d['split']('*')['map']((_0x4c26eb,_0x33b725)=>_0x33b725%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x4c26eb)+'</span>':us(_0x4c26eb))['join'](''),_0x223a93&&(_0x10947a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x223a93['value']+'\x22\x20title=\x22'+_0x223a93['title']+'\x22></span>'),_0x10947a;}function us(_0x5eb3f1){const _0x570206=document['createElement']('span');return _0x570206['innerText']=_0x5eb3f1,_0x570206['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x165a31{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2b6863,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2fab7a){super(_0x2fab7a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3eff3c=this['editor']['config'];_0x3eff3c['define']('trackChanges.SuggestionThreadView',ne),_0x3eff3c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3eff3c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x192cfe,_0x3de90f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x35cfe0,_0x2c5e3a]of this['_handleControllerBuffer']){const _0x23b589=this['_suggestionToController']['has'](_0x35cfe0);_0x23b589||_0x2c5e3a?_0x23b589&&_0x2c5e3a&&this['_destroyController'](_0x35cfe0):this['_initializeController'](_0x35cfe0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x192cfe,_0x3de90f);}['init'](){const _0x42ddb9=this['editor'],_0x4c4f51=_0x42ddb9['plugins']['get']('TrackChangesEditing'),_0x8d2aab=_0x42ddb9['plugins']['get']('Annotations'),_0x51c403=_0x42ddb9['plugins']['get']('EditorAnnotations'),_0x299cfc=_0x42ddb9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x51c403['addSourceCollector'](()=>{const _0x2157e4=[];for(const [_0x43e1ac,_0x66af97]of Array['from'](this['_suggestionToController'])){const _0x484ab1=_0x43e1ac['getAllAdjacentSuggestions'](),_0x39e376=[];for(const _0x1f8e5c of _0x484ab1){if(!_0x1f8e5c['isInContent'])continue;if(_0x1f8e5c['isMultiRange']){_0x39e376['push'](..._0x1f8e5c['getRanges']());continue;}const _0x299730=_0x1f8e5c['getFirstRange']();if(_0x39e376['length']>0x0){const _0x302adc=_0x39e376[0x0]['getJoined'](_0x299730);if(_0x302adc){_0x39e376[0x0]=_0x302adc;continue;}}_0x39e376['push'](_0x299730);}_0x2157e4['push']([_0x66af97['view'],_0x39e376]);}return _0x2157e4;}),this['listenTo'](_0x4c4f51,'suggestionLoaded',(_0x151d68,_0x58f825)=>{this['listenTo'](_0x58f825,'change:previous',(_0x4c862d,_0x11006d,_0x2884de,_0x4c7127)=>{_0x58f825['isInContent']&&(null==_0x2884de?(this['_updateController'](_0x4c7127['head']),this['_handleSuggestionControllerDelayed'](_0x58f825,!0x1)):(this['_updateController'](_0x2884de['head']),null==_0x4c7127&&this['_handleSuggestionControllerDelayed'](_0x58f825,!0x0)));}),null!==_0x58f825['previous']?this['_updateController'](_0x58f825['head']):this['_handleSuggestionControllerDelayed'](_0x58f825,!0x1);}),this['listenTo'](_0x4c4f51,'suggestionUnloaded',(_0x2d245d,_0x35716b,_0x41f1d2)=>{this['stopListening'](_0x35716b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x35716b),this['_suggestionToController']['has'](_0x35716b)&&this['_destroyController'](_0x35716b),_0x41f1d2&&this['_updateController'](_0x41f1d2['head']);}),this['listenTo'](_0x4c4f51,'suggestionChanged',(_0x2d7c33,_0x3e271f)=>{this['_updateController'](_0x3e271f);}),this['listenTo'](_0x8d2aab,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x299cfc,'addComment',(_0x477c16,{threadId:_0x23dd78,isFromAdapter:_0x35835b})=>{if(_0x35835b||!_0x4c4f51['hasSuggestion'](_0x23dd78))return;const _0x5b8fac=_0x4c4f51['getSuggestion'](_0x23dd78);this['_suggestionToController']['get'](_0x5b8fac)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x463d0e=this['editor']['plugins']['get']('Annotations'),_0x3d34a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x241c32=Array['from'](_0x463d0e['activeAnnotations'],_0x4bd244=>_0x4bd244['innerView'])['filter'](_0xfad474=>this['_viewToController']['has'](_0xfad474)),_0x370dd7=[];for(const _0x1af8e6 of _0x241c32){const _0x19baaf=this['_viewToController']['get'](_0x1af8e6)['model']['getAllAdjacentSuggestions']();_0x370dd7['push'](..._0x19baaf['reduce']((_0x362857,_0x57c4bf)=>[..._0x362857,..._0x57c4bf['getMarkerNames']()],[]));}_0x3d34a6['activeMarkers']=_0x370dd7;}['_addUIComponentsToFactory'](){const _0x58247b=this['editor'],_0x26364c=_0x58247b['locale'],_0x1bbe2a=o(_0x26364c,'Track\x20changes'),_0x405305=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1bbe2a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x26364c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x26364c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x26364c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x26364c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x30b989 of _0x405305)if(ae(_0x30b989)){const _0x2265e5=_0x58247b['commands']['get'](_0x30b989['model']['commandName']);_0x30b989['model']['bind']('isOn','isEnabled')['to'](_0x2265e5,'value','isEnabled');}_0x58247b['ui']['componentFactory']['add']('trackChanges',_0x30ab95=>this['_createToolbarButton'](_0x30ab95,_0x405305,_0x1bbe2a)),_0x58247b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x94529b=>this['_createMenuBarMenu'](_0x94529b,_0x405305,_0x1bbe2a));}['_createToolbarButton'](_0x3b364a,_0x5ec2ca,_0x1c098d){const _0x4d8f77=zt(_0x3b364a,Zt),_0x45bf10=this['editor']['commands']['get']('trackChanges');_0x4d8f77['buttonView']['set']({'tooltip':_0x1c098d,'label':_0x1c098d,'icon':ie}),_0x4d8f77['buttonView']['bind']('isOn')['to'](_0x45bf10,'value'),_0x4d8f77['buttonView']['on']('execute',()=>{_0x45bf10['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x4d8f77,_0x5ec2ca,{'role':'menu'});const _0x5d582c=[];for(const _0x9279e4 of _0x5ec2ca)ae(_0x9279e4)&&_0x5d582c['push'](this['editor']['commands']['get'](_0x9279e4['model']['commandName']));const _0x5afd25=_0x4d8f77['buttonView'];return _0x5afd25['actionView']['unbind']('isEnabled'),_0x5afd25['arrowView']['unbind']('isEnabled'),_0x5afd25['actionView']['bind']('isEnabled')['to'](_0x45bf10,'isEnabled'),_0x5afd25['arrowView']['bind']('isEnabled')['toMany'](_0x5d582c,'isEnabled',(..._0x20f6f1)=>_0x20f6f1['some'](_0x12e04b=>_0x12e04b)),_0x4d8f77['on']('execute',_0x2370ec=>{this['editor']['execute'](_0x2370ec['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4d8f77;}['_createMenuBarMenu'](_0x1e569c,_0x3cfc6c,_0xb6b3f8){const _0x40f4f4=new Kt(_0x1e569c),_0x585fc9=this['editor']['commands']['get']('trackChanges');_0x40f4f4['buttonView']['set']({'label':_0xb6b3f8,'icon':ie});const _0x122b2f=new Qt(_0x1e569c);for(const _0x6c2ca6 of _0x3cfc6c){if('separator'==_0x6c2ca6['type']){_0x122b2f['items']['add'](new Jt(_0x1e569c));continue;}const _0x135fbd=new Xt(_0x1e569c,_0x40f4f4),_0x705a82=new Yt(_0x1e569c),_0x19d7d7=_0x6c2ca6['model'];_0x705a82['bind'](...Object['keys'](_0x19d7d7))['to'](_0x19d7d7),_0x705a82['delegate']('execute')['to'](_0x40f4f4),_0x705a82['on']('execute',()=>{this['editor']['execute'](_0x19d7d7['commandName']),this['editor']['editing']['view']['focus']();}),_0x135fbd['children']['add'](_0x705a82),_0x122b2f['items']['add'](_0x135fbd);}return _0x40f4f4['bind']('isEnabled')['to'](_0x585fc9,'isEnabled'),_0x40f4f4['panelView']['children']['add'](_0x122b2f),_0x40f4f4;}['_initializeController'](_0x84f03d){const _0x5110ed=this['editor'],_0xc2c793=_0x5110ed['config'],_0x5860eb=_0x5110ed['plugins']['get']('Annotations'),_0x29b004=_0x5110ed['plugins']['get']('CommentsRepository'),_0x3cc98b=_0x5110ed['plugins']['get']('EditorAnnotations'),_0x3b037f=_0x5110ed['plugins']['get'](_0x2b6863)['me'],_0x488c6f=_0xc2c793['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x5c419b,CommentThreadInputView:_0x24d994}=_0x5110ed['plugins']['get']('CommentsUI');let _0x4e508c,_0x23cbbc;this['_annotationViews']['has'](_0x84f03d['id'])?(_0x23cbbc=this['_annotationViews']['get'](_0x84f03d['id']),_0x4e508c=_0x23cbbc['mainView']):(_0x4e508c=new _0x488c6f(_0x5110ed['locale'],_0x84f03d,_0x3b037f,{'disableComments':this['_disableComments'],'editorConfig':_0xc2c793['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xc2c793['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xc2c793['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xc2c793['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4fd486(_0xc2c793['get']('locale')),'CommentView':_0xc2c793['get']('comments')['CommentView'],'CommentsListView':_0x5c419b,'CommentThreadInputView':_0x24d994}),_0x4e508c['acceptButton']['on']('execute',()=>{_0x5110ed['editing']['view']['focus']();}),_0x4e508c['discardButton']['on']('execute',()=>{_0x5110ed['editing']['view']['focus']();}),_0x23cbbc=_0x5860eb['createAnnotationView'](this['editor']['locale'],_0x4e508c),_0x23cbbc['bind']('isDirty')['to'](_0x4e508c,'isDirty'),_0x23cbbc['bind']('length')['to'](_0x4e508c),_0x23cbbc['bind']('type')['to'](_0x4e508c,'type',_0x17df66=>'suggestion-'+_0x17df66),this['_annotationViews']['set'](_0x84f03d['id'],_0x23cbbc));const _0x4bdbbd=_0x29b004['createCommentThreadController'](_0x84f03d['commentThread'],_0x4e508c),_0x4bbe36=new oe(_0x5110ed,_0x84f03d,_0x4e508c,_0x4bdbbd),_0x2b1e75=_0x84f03d['getAllAdjacentSuggestions']()['filter'](_0x53aa65=>_0x53aa65['isInContent']);_0x4e508c['descriptionParts']=_0x5110ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2b1e75),this['_suggestionToController']['set'](_0x84f03d,_0x4bbe36),this['_viewToController']['set'](_0x4e508c,_0x4bbe36);const _0x2e4e22=_0x5860eb['createAnnotation']({'view':_0x23cbbc,'target':()=>{const _0x19c179=[],_0x3d7395=_0x84f03d['getAllAdjacentSuggestions']()['filter'](_0x209f97=>_0x209f97['isInContent']);for(const _0x4aaa18 of _0x3d7395)_0x19c179['push'](..._0x4aaa18['getMarkers']());return _0x13a72c(_0x5110ed['editing'],_0x19c179);},'type':()=>'suggestion-'+_0x4bbe36['view']['type']});_0x29b004['_bindAnnotationToEditors'](_0x4e508c,_0x2e4e22),_0x5860eb['add'](_0x2e4e22),_0x3cc98b['registerAnnotation'](_0x2e4e22);}['_destroyController'](_0x3ccc32){const _0xc919bb=this['editor']['plugins']['get']('CommentsRepository'),_0x2b5b51=this['editor']['plugins']['get']('Annotations'),_0xb201e0=this['_suggestionToController']['get'](_0x3ccc32),_0x2b31a2=_0xb201e0['view'],_0x12b459=_0x2b5b51['getByInnerView'](_0x2b31a2);_0xc919bb['_unbindEditors'](_0x2b31a2),_0x12b459&&_0x2b5b51['remove'](_0x12b459),this['_suggestionToController']['delete'](_0x3ccc32),this['_viewToController']['delete'](_0x2b31a2),_0xb201e0['destroy']();}['_updateController'](_0x4cbcec){if(!_0x4cbcec['isInContent']||!this['_suggestionToController']['has'](_0x4cbcec))return;const _0x36725d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x479466=this['_suggestionToController']['get'](_0x4cbcec),_0x44769a=_0x4cbcec['getAllAdjacentSuggestions']();_0x479466['view']['descriptionParts']=_0x36725d['descriptionFactory']['getDescriptions'](_0x44769a);}['destroy'](){for(const _0x256972 of this['_suggestionToController']['keys']())this['_destroyController'](_0x256972);for(const _0x48e78b of this['_annotationViews']['values']())_0x48e78b['mainView']['destroy']();super['destroy']();}}function ae(_0x12bf22){return'model'in _0x12bf22;}class k extends _0x165a31{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3cf423){this['editor']['plugins']['get'](p)['adapter']=_0x3cf423;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x17fb79){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x17fb79);}['getSuggestions']({skipNotAttached:_0x426d60=!0x1,toJSON:_0x57c580=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x426d60,'toJSON':_0x57c580});}['getSuggestion'](_0x28b543){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x28b543);}}const T=['Pagination'];class P extends _0x165a31{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1ea87b=this['editor'];if(_0x1ea87b['config']['define']('trackChangesData.editorCreator',_0x4a18ca=>{const _0x50ed22=_0x1ea87b['model']['document']['getRootNames']()['reduce']((_0x21992a,_0x45a667)=>(_0x21992a[_0x45a667]='',_0x21992a),{});return _0x1ea87b['constructor']['create'](_0x50ed22,_0x4a18ca);}),'function'!=typeof _0x1ea87b['config']['get']('trackChangesData')['editorCreator'])throw new _0x1fea76('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28a63f){return N(this['editor'],!0x0,_0x28a63f);}['getDataWithDiscardedSuggestions'](_0xee5173){return N(this['editor'],!0x1,_0xee5173);}}class D extends _0x165a31{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x529f5a){super(_0x529f5a),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(_0x1a822e){return void 0x0!==_0x1a822e['getRootsAttributes'];}async function N(_0x37bdd5,_0x5dc733,_0xce05e6){const _0x35fbf9=_0x307cca(_0x37bdd5,T);_0x35fbf9['plugins']['push'](p,D),_0x35fbf9['rootsAttributes']=v(_0x37bdd5)?_0x37bdd5['getRootsAttributes']():void 0x0;const _0x12f810=document['createDocumentFragment'](),_0x3504e5=_0x37bdd5['config']['get']('trackChangesData')['editorCreator'],_0x31e993=await _0x3504e5(_0x35fbf9,()=>function(_0x574847){const _0x186657=document['createElement']('div');return _0x574847['appendChild'](_0x186657),_0x186657;}(_0x12f810));!function(_0x31a72d,_0x67f4df){const _0x1d3425=_0x31a72d['model']['document']['getRootNames']()['reduce']((_0x2507de,_0xf7f829)=>(_0x2507de[_0xf7f829]=_0x31a72d['data']['get']({'rootName':_0xf7f829}),_0x2507de),{}),_0x29b0e4=_0x31a72d['plugins']['get']('Users')['users']['map'](_0x1ed317=>({'id':_0x1ed317['id'],'name':_0x1ed317['name']})),_0x3da340=_0x31a72d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x49bbf3=_0x31a72d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c178d=_0x67f4df['plugins']['get']('Users'),_0x50e459=_0x67f4df['plugins']['get']('TrackChangesEditing'),_0x41a1af=_0x67f4df['plugins']['get']('CommentsRepository');for(const _0x47dca9 of _0x29b0e4)_0x4c178d['getUser'](_0x47dca9['id'])||_0x4c178d['addUser'](_0x47dca9);_0x4c178d['me']||_0x4c178d['useAnonymousUser']();for(const _0x2ae1c1 of _0x49bbf3)_0x41a1af['addCommentThread'](_0x2ae1c1);for(const _0x362b3e of _0x3da340)_0x50e459['addSuggestionData'](_0x362b3e);_0x67f4df['data']['set'](_0x1d3425);}(_0x37bdd5,_0x31e993),_0x31e993['execute'](_0x5dc733?'acceptAllSuggestions':'discardAllSuggestions');const _0x2f363e=v(_0x31e993)?_0x31e993['getFullData'](_0xce05e6):_0x31e993['data']['get'](_0xce05e6);return await _0x31e993['destroy'](),_0x2f363e;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};