@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240617.0 → 0.0.0-nightly-20240618.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x54db38,PendingActions as _0x59e33d,icons as _0x1089ce}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x50d316,ObservableMixin as _0x25d463,uid as _0xa3dac7,insertToPriorityArray as _0x2d87a0,priorities as _0x275526,logWarning as _0x2b9abd,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2a332b,View as _0x3759d1,ButtonView as _0x266fe3,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 _0x1d3df5,hashObject as _0x1e437b,surroundingMarkersDetector as _0x3cad82,trimHtml as _0x8d55fb,UserView as _0x307e07,getDateTimeFormatter as _0x212d68,getAllMarkersDomElementsSorted as _0x4b736c,sanitizeEditorConfig as _0x581139}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x270d03,LiveRange as _0x216747,LivePosition as _0xf4223e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3ad1c3,toWidget as _0x22e04a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2e2f54,set as _0xcde711,isEqual as _0x1f7f6a,unset as _0x2c6995,omit as Bt}from'lodash-es';import{Delete as _0x277a9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5234e5,ShiftEnter as _0x36d1dc}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x18789e,_0x27095f){super(_0x18789e),this['_enabledCommands']=_0x27095f,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 _0x2b6d41 of this['editor']['commands']['commands']())_0x2b6d41['affectsData']&&!this['_enabledCommands']['has'](_0x2b6d41)&&_0x2b6d41['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3f3126 of this['editor']['commands']['commands']())_0x3f3126['affectsData']&&!this['_enabledCommands']['has'](_0x3f3126)&&_0x3f3126['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x470eb4,_0x4d75f0){super(_0x470eb4),this['_suggestions']=_0x4d75f0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4f6385){const _0x299bd5=this['_suggestions']['get'](_0x4f6385);if(!_0x299bd5)throw new _0x50d316('track-changes-accept-suggestion-not-found',this);const _0x391481=_0x299bd5['getRanges']();this['editor']['model']['canEditAt'](_0x391481)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x299bd5);}}class B extends ts{['_suggestions'];constructor(_0x34278f,_0x447b06){super(_0x34278f),this['_suggestions']=_0x447b06,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1575c0){const _0x29427e=this['_suggestions']['get'](_0x1575c0);if(!_0x29427e)throw new _0x50d316('track-changes-discard-suggestion-not-found',this);const _0x434a8e=_0x29427e['getRanges']();this['editor']['model']['canEditAt'](_0x434a8e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x29427e);}}function ss(_0x4a1268){return _0x4a1268['sort']((_0x58463a,_0x55d541)=>'deletion'==_0x58463a['type']&&'deletion'!=_0x55d541['type']?-0x1:'deletion'!=_0x58463a['type']&&'deletion'==_0x55d541['type']?0x1:0x0);}function to(_0x4c18ac,_0x295dac){let _0xbda0a6,_0x12560c=0x0;const _0x4bdb24=[],_0x46bb71=_0x295dac['schema'];for(;_0x12560c<_0x4c18ac['length'];){const _0xbafb5f=_0x4c18ac[_0x12560c],_0x148e15=_0x4c18ac[_0x12560c+0x1];_0xbda0a6||(_0xbda0a6=_0x295dac['createPositionBefore'](_0xbafb5f)),co(_0x295dac,_0xbafb5f,_0x148e15)||(_0x4bdb24['push'](_0x295dac['createRange'](_0xbda0a6,_0x46bb71['isObject'](_0xbafb5f)?_0x295dac['createPositionAfter'](_0xbafb5f):_0x295dac['createPositionAt'](_0xbafb5f,'end'))),_0xbda0a6=null),_0x12560c++;}return _0x4bdb24;}function co(_0x3dfbc3,_0x133a7c,_0xda755e){if(!_0xda755e)return!0x1;const _0x1d1760=_0x3dfbc3['createPositionAfter'](_0x133a7c),_0x198a19=_0x3dfbc3['createPositionBefore'](_0xda755e);return _0x1d1760['isTouching'](_0x198a19);}function rs(_0x19fbd4,_0x145692,_0x43afd4){for(;_0x43afd4['length'];){const _0x2e9e60=_0x43afd4['splice'](0x0,0x64);_0x19fbd4['change'](()=>{for(const _0x2cb0e5 of _0x2e9e60)_0x2cb0e5['isInContent']&&_0x145692['execute'](_0x2cb0e5['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4c4d43,_0x9f63b2,_0x45c053){super(_0x4c4d43),this['_command']=_0x9f63b2,this['_suggestions']=_0x45c053,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x216b48=Array['from'](this['_suggestions']['values']())['some'](_0x8cf135=>_0x8cf135['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x216b48;}['execute'](){const _0x167129=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3ee799 of _0x167129){const _0x53dee7=_0x3ee799['getRanges']();if(!this['editor']['model']['canEditAt'](_0x53dee7))return;}rs(this['editor']['model'],this['_command'],_0x167129);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x213b87,_0x387e50,_0x2a1b1b){super(_0x213b87),this['_command']=_0x387e50,this['_suggestions']=_0x2a1b1b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2513e5=this['editor']['model']['document']['selection'],_0xef7efc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5a45a7,_0x39d89d){const _0xafc423=Array['from'](_0x5a45a7['getRanges']()),_0x9c5963=new Set();for(const _0x35d65c of _0x39d89d)if(_0x35d65c['isInContent']){for(const _0x414566 of _0xafc423)for(const _0x1ad9bd of _0x35d65c['getRanges']())(_0x414566['isIntersecting'](_0x1ad9bd)||_0x5a45a7['isCollapsed']&&!_0x35d65c['isMultiRange']&&_0x35d65c['next']&&_0x1ad9bd['end']['isTouching'](_0x414566['start']))&&_0x9c5963['add'](_0x35d65c);}return _0x9c5963;}(_0x2513e5,_0xef7efc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x57423c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5919eb of _0x57423c){const _0x3522a3=_0x5919eb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3522a3))return;}rs(this['editor']['model'],this['_command'],_0x57423c);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x25d463(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xad67b0,_0xb9034a){super(),this['id']=_0xb9034a['id'],this['type']=_0xb9034a['type'],this['subType']=_0xb9034a['subType']||null,this['author']=_0xb9034a['author'],this['creator']=_0xb9034a['creator']||_0xb9034a['author'],this['isExternal']=Boolean(_0xb9034a['attributes']&&_0xb9034a['attributes']['@external']),this['data']=null,this['_model']=_0xad67b0,this['_onAccept']=_0xb9034a['onAccept'],this['_onDiscard']=_0xb9034a['onDiscard'],this['_onAttributesChange']=_0xb9034a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb9034a['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 _0x19caf4=this;for(;_0x19caf4['previous'];)_0x19caf4=_0x19caf4['previous'];return _0x19caf4;}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'](_0x16b490){this['_markerNames']['add'](_0x16b490);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x38c497=>this['_model']['markers']['get'](_0x38c497))['filter'](_0x30831d=>_0x30831d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x583f72=>{for(const _0x1d40b1 of this['getMarkers']())_0x583f72['removeMarker'](_0x1d40b1);}),this['_markerNames']['clear']();}['removeMarker'](_0x5c2c5b){this['_model']['change'](_0x3f6daa=>{_0x3f6daa['removeMarker'](_0x5c2c5b);}),this['_markerNames']['delete'](_0x5c2c5b);}['addRange'](_0x5eaa42){const _0x41f426='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x41f426),this['_model']['change'](_0x24ad66=>{_0x24ad66['addMarker'](_0x41f426,{'range':_0x5eaa42,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x38ad7f){for(const _0x37849f of this['getRanges']())if(_0x37849f['isIntersecting'](_0x38ad7f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4d9f19=>_0x4d9f19['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xfbc08a,_0x510d9c)=>[..._0xfbc08a,..._0x510d9c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1971e8=this['getRanges']();if(0x1!=_0x1971e8['length'])return null;const _0x133a18=_0x1971e8[0x0],_0x208d06=_0x133a18['start']['nodeAfter'],_0x385284=_0x133a18['end']['nodeBefore'];return _0x208d06 instanceof _0x270d03?_0x208d06!=_0x385284?null:_0x208d06: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 _0xbd50eb=[];let _0xe9088b=this['head'];for(;_0xe9088b;)_0xbd50eb['push'](_0xe9088b),_0xe9088b=_0xe9088b['next'];return _0xbd50eb;}['setAttribute'](_0x215193,_0x8432c){const _0x435104=_0x2e2f54(this['attributes']);_0xcde711(_0x435104,_0x215193,_0x8432c),_0x1f7f6a(_0x435104,this['attributes'])||(this['attributes']=_0x435104,this['_onAttributesChange'](_0x435104));}['removeAttribute'](_0x10466a){const _0x4ec008=_0x2e2f54(this['attributes']);_0x2c6995(_0x4ec008,_0x10466a),_0x1f7f6a(_0x4ec008,this['attributes'])||(this['attributes']=_0x4ec008,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 _0xa3dac7()['substr'](0x1,0x5);}}function o(_0x2c4bc3,_0x2b0338,_0x2e6ee9){const t=_0x2c4bc3['t'];switch(_0x2b0338){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',_0x2e6ee9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2e6ee9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2e6ee9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2e6ee9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2e6ee9);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',_0x2e6ee9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2e6ee9);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',_0x2e6ee9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2e6ee9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2e6ee9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2e6ee9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2e6ee9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2e6ee9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2e6ee9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2e6ee9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2e6ee9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2e6ee9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2e6ee9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2e6ee9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2e6ee9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2e6ee9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2e6ee9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2e6ee9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2e6ee9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2e6ee9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2e6ee9);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'},_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2e6ee9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2e6ee9);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'},_0x2e6ee9);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'},_0x2e6ee9);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 _0x2b0338;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x11479d,_0x3dedb2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x11479d,this['_locale']=_0x3dedb2;}['getDescriptions'](_0x27b3a6){const _0x2c320d=[],_0x354680=new Set(),_0x4a0ccb=new Set();for(let _0x81185=0x0;_0x81185<_0x27b3a6['length'];_0x81185++){const _0x1fcc6c=_0x27b3a6[_0x81185];if(!_0x1fcc6c['isInContent'])continue;const _0x4ee904=this['_handleCustomCallbackDescription'](_0x1fcc6c);if(_0x4ee904){if(null!=_0x1fcc6c['subType']){if(_0x354680['has'](_0x1fcc6c['subType']))continue;_0x354680['add'](_0x1fcc6c['subType']);}_0x2c320d['push'](_0x4ee904);}else{if('attribute'!=_0x1fcc6c['type'])'insertion'!=_0x1fcc6c['type']&&'deletion'!=_0x1fcc6c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2c320d,_0x1fcc6c,_0x27b3a6[_0x81185+0x1]);else{const _0x16f3ee=_0x1fcc6c['data']['key'];if(_0x4a0ccb['has'](_0x16f3ee))continue;_0x4a0ccb['add'](_0x1fcc6c['data']['key']),_0x16f3ee==m?this['_handleRenameSuggestionDescription'](_0x2c320d,_0x1fcc6c):this['_handleAttributeSuggestionDescription'](_0x2c320d,_0x1fcc6c);}}}return this['_resolveDescriptionItems'](_0x2c320d);}['registerDescriptionCallback'](_0x302c6c){this['_customCallbacks']['push'](_0x302c6c);}['registerElementLabel'](_0x47c903,_0x284328,_0x4556c8=_0x275526['normal']){'function'==typeof _0x47c903?_0x2d87a0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x47c903,'label':_0x284328,'priority':_0x4556c8}):this['_itemLabels']['set'](_0x47c903,_0x284328);}['registerAttributeLabel'](_0x2a5c9c,_0x6b6459){this['_attributeLabels']['set'](_0x2a5c9c,_0x6b6459);}['getItemLabel'](_0x51a79c,_0x31efbc=0x1){let _0x3a84e6;for(const _0x2f5b3c of this['_itemLabelsCallbacks'])if(_0x2f5b3c['matchingCallback'](_0x51a79c)){_0x3a84e6=_0x2f5b3c['label'];break;}return _0x3a84e6||(_0x3a84e6=this['_itemLabels']['get'](_0x51a79c['name'])),_0x3a84e6?_0x3a84e6(_0x31efbc):0x1!==_0x31efbc?_0x31efbc+'\x20'+_0x51a79c['name']+'s':''+_0x51a79c['name'];}['_addDescriptionItems'](_0x2308e1,_0x7d8231){const _0x3ff877=_0x7d8231['getFirstRange']()['getWalker'](),_0x1d2c60='insertion'==_0x7d8231['type']?'add':'remove';for(const _0x1d56cd of _0x3ff877){const _0x46799c=_0x1d56cd['item'],_0x351f7f=_0x2308e1[_0x2308e1['length']-0x1];if(_0x46799c['is']('$textProxy'))_0x351f7f&&_0x351f7f['type']['indexOf']('Container')>-0x1&&_0x2308e1['pop'](),_0x351f7f&&'text'==_0x351f7f['type']?_0x351f7f[_0x1d2c60]+=_0x46799c['data']:_0x2308e1['push']({'type':'text','add':'add'==_0x1d2c60?_0x46799c['data']:'','remove':'remove'==_0x1d2c60?_0x46799c['data']:''});else{if(this['_schema']['isObject'](_0x46799c)){const _0x7d1b15=_0x46799c;if(_0x351f7f&&_0x351f7f['type']['indexOf']('Container')>-0x1&&_0x2308e1['pop'](),'elementEnd'==_0x1d56cd['type'])continue;_0x351f7f&&_0x351f7f['type']==_0x1d2c60+'Object'&&_0x351f7f['element']['name']==_0x7d1b15['name']?_0x351f7f['quantity']++:_0x2308e1['push']({'type':_0x1d2c60+'Object','element':_0x7d1b15,'quantity':0x1}),_0x3ff877['skip'](_0x5de0c8=>!('elementEnd'==_0x5de0c8['type']&&_0x5de0c8['item']==_0x46799c));}else{if(this['_schema']['checkChild'](_0x46799c,'$text')||_0x46799c['is']('element','softBreak')){const _0x4449e1=_0x46799c;if('add'==_0x1d2c60&&'elementStart'==_0x1d56cd['type']||'remove'==_0x1d2c60&&'elementEnd'==_0x1d56cd['type'])continue;if(_0x351f7f&&-0x1==_0x351f7f['type']['indexOf']('Container')){'text'==_0x351f7f['type']&&(_0x351f7f[_0x1d2c60]+='\x0a');continue;}let _0x4622df;if(_0x4622df='add'==_0x1d2c60?_0x4449e1['nextSibling']&&!this['_schema']['isObject'](_0x4449e1['nextSibling'])?_0x4449e1['nextSibling']:null:_0x4449e1['previousSibling']&&!this['_schema']['isObject'](_0x4449e1['previousSibling'])?_0x4449e1['previousSibling']:null,_0x4449e1['isEmpty']||_0x4622df&&_0x4622df['isEmpty']){const _0x3966bd=_0x4622df&&_0x4622df['isEmpty']?_0x4622df:_0x4449e1;_0x351f7f&&_0x351f7f['type']==_0x1d2c60+'EmptyContainer'&&_0x351f7f['element']['name']==_0x3966bd['name']?_0x351f7f['quantity']++:_0x2308e1['push']({'type':_0x1d2c60+'EmptyContainer','element':_0x3966bd,'quantity':0x1});}else _0x2308e1['push']({'type':_0x1d2c60+'Container','element':_0x4449e1});}}}}}['_resolveDescriptionItems'](_0x24c954){const _0xab49b4=this['_locale'],_0x51d87f=[],_0x1e12ba=[],_0x4cb2da=[];for(const _0x494d7d of _0x24c954)switch(_0x494d7d['type']){case'text':if(_0x494d7d['add']=_0x494d7d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x494d7d['remove']=_0x494d7d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x494d7d['add']&&''!=_0x494d7d['remove']){_0x51d87f['push']({'type':'replace','content':o(_0xab49b4,'REPLACE_TEXT',['\x22'+_0x494d7d['remove']+'\x22','\x22'+_0x494d7d['add']+'\x22'])});continue;}if(null!=_0x494d7d['add']['match'](/^ +$/)){_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Insert:*\x20%0',o(_0xab49b4,'ELEMENT_SPACE',_0x494d7d['add']['length']))});continue;}if(null!=_0x494d7d['remove']['match'](/^ +$/)){_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Remove:*\x20%0',o(_0xab49b4,'ELEMENT_SPACE',_0x494d7d['remove']['length']))});continue;}if(''!=_0x494d7d['add']){_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Insert:*\x20%0','\x22'+_0x494d7d['add']+'\x22')});continue;}_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Remove:*\x20%0','\x22'+_0x494d7d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Insert:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Remove:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'addContainer':_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Split:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'removeContainer':_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Merge:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'addFormat':_0x1e12ba['push'](_0x494d7d['key']);continue;case'removeFormat':_0x4cb2da['push'](_0x494d7d['key']);continue;default:_0x51d87f['push'](_0x494d7d);}if(_0x1e12ba['length']){const _0x4d9c16=_0x1e12ba['map'](_0x1e6134=>this['_attributeLabels']['has'](_0x1e6134)?this['_attributeLabels']['get'](_0x1e6134):_0x1e6134)['join'](',\x20');_0x51d87f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4d9c16)});}if(_0x4cb2da['length']){const _0xb523bb=_0x4cb2da['map'](_0x5ea597=>this['_attributeLabels']['has'](_0x5ea597)?this['_attributeLabels']['get'](_0x5ea597):_0x5ea597)['join'](',\x20');_0x51d87f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xb523bb)});}return _0x51d87f;}['_handleCustomCallbackDescription'](_0x57221f){for(const _0x1c7cae of this['_customCallbacks']){const _0x69ff3a=_0x1c7cae(_0x57221f);if(_0x69ff3a&&'type'in _0x69ff3a)return _0x69ff3a;}}['_handleAttributeSuggestionDescription'](_0x31e4a3,_0x4dac85){const _0x1dda9b=_0x4dac85['data'],_0xc318a1=void 0x0===_0x1dda9b['newValue']?'removeFormat':'addFormat';_0x31e4a3['push']({'type':_0xc318a1,'key':_0x1dda9b['key']});}['_handleRenameSuggestionDescription'](_0x4c6aef,_0x19951b){_0x4c6aef['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x19951b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x48a6af,_0x261c63,_0x5b95d1){if(this['_addDescriptionItems'](_0x48a6af,_0x261c63),_0x5b95d1&&_0x5b95d1['getFirstRange']()&&!_0x261c63['getFirstRange']()['end']['isEqual'](_0x5b95d1['getFirstRange']()['start'])){const _0x48db61=_0x48a6af[_0x48a6af['length']-0x1],_0x4e860c='insertion'==_0x261c63['type']?'add':'remove';_0x48db61&&'text'==_0x48db61['type']&&(_0x48db61[_0x4e860c]+='\x0a');}}}class E extends _0x54db38{['afterInit'](){const _0x5ec9f9=this['editor'],_0x3bab8b=_0x5ec9f9['plugins']['get']('TrackChangesEditing');_0x5ec9f9['commands']['get']('showAIAssistant')&&_0x3bab8b['enableCommand']('showAIAssistant');}}class V extends _0x54db38{['afterInit'](){const _0x41556c=this['editor'],_0x10825a=_0x41556c['locale'];if(!_0x41556c['plugins']['has']('AlignmentEditing'))return;const _0x2aa3e7=_0x41556c['plugins']['get']('TrackChangesEditing');_0x2aa3e7['enableDefaultAttributesIntegration']('alignment'),_0x2aa3e7['registerBlockAttribute']('alignment'),_0x2aa3e7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x10825a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x548002=this['editor'],_0x540169=_0x548002['locale'];_0x548002['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55029a=>{if('formatBlock'!=_0x55029a['type'])return;const {data:_0x33bc5a}=_0x55029a;if(_0x33bc5a&&'alignment'==_0x33bc5a['commandName']){const _0x1246ed=_0x33bc5a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x540169,'*Format:*\x20%0',function(_0x236a62){switch(_0x236a62){case'left':return o(_0x540169,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x540169,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x540169,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x540169,'FORMAT_JUSTIFY_TEXT');}}(_0x1246ed))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x54db38{['afterInit'](){const _0x5c226e=this['editor'],_0x2c84ff=_0x5c226e['plugins']['get']('TrackChangesEditing'),_0x3c232c=_0x5c226e['locale'];for(const _0x362f19 of ti){if(!_0x5c226e['plugins']['has'](_0x362f19))continue;const _0x87e0db=_0x362f19['slice'](0x0,-0x7)['toLowerCase'](),_0x14c9dd='FORMAT_'+_0x87e0db['toUpperCase']();_0x2c84ff['enableDefaultAttributesIntegration'](_0x87e0db),_0x2c84ff['registerInlineAttribute'](_0x87e0db),_0x2c84ff['descriptionFactory']['registerAttributeLabel'](_0x87e0db,o(_0x3c232c,_0x14c9dd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x62899c=this['editor'],_0x2e705f=_0x62899c['locale'],_0x3d7721=_0x62899c['plugins']['get']('TrackChangesEditing');function _0x2fe3a8(_0x512e7a,_0x559e39){_0x3d7721['descriptionFactory']['registerDescriptionCallback'](_0x1bef46=>{if('formatInline'!=_0x1bef46['type'])return;const {data:_0x5dcd5f}=_0x1bef46;return _0x5dcd5f&&_0x5dcd5f['commandName']===_0x512e7a?_0x5dcd5f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e705f,'*Format:*\x20%0',_0x559e39)}:{'type':'format','content':o(_0x2e705f,'*Remove\x20format:*\x20%0',_0x559e39)}:void 0x0;});}_0x2fe3a8('bold',o(_0x2e705f,'FORMAT_BOLD')),_0x2fe3a8('italic',o(_0x2e705f,'FORMAT_ITALIC')),_0x2fe3a8('underline',o(_0x2e705f,'FORMAT_UNDERLINE')),_0x2fe3a8('code',o(_0x2e705f,'FORMAT_CODE')),_0x2fe3a8('strikethrough',o(_0x2e705f,'FORMAT_STRIKETHROUGH')),_0x2fe3a8('subscript',o(_0x2e705f,'FORMAT_SUBSCRIPT')),_0x2fe3a8('superscript',o(_0x2e705f,'FORMAT_SUPERSCRIPT'));}}class O extends _0x54db38{['afterInit'](){const _0xa262ab=this['editor'],_0x57a8d4=_0xa262ab['locale'];if(!_0xa262ab['plugins']['has']('BlockQuoteEditing'))return;const _0x4912e0=_0xa262ab['plugins']['get']('TrackChangesEditing'),_0x2e69fc=this['editor']['commands']['get']('blockQuote');_0x4912e0['enableCommand']('blockQuote',(_0x58a798,_0xb4b396={})=>{const _0x52aebb=this['editor']['model']['document']['selection'],_0x57aa01=_0xb4b396&&void 0x0!==_0xb4b396['forceValue']?_0xb4b396['forceValue']:!_0x2e69fc['value'];let _0x4422f3=[];if(_0x57aa01){const _0x539b45=Array['from'](_0x52aebb['getSelectedBlocks']())['filter'](_0x1e0943=>oo(_0x1e0943)||function(_0x2dccb7,_0x2afd19){const _0x4e1b0f=_0x2afd19['checkChild'](_0x2dccb7['parent'],'blockQuote'),_0x50ca55=_0x2afd19['checkChild'](['$root','blockQuote'],_0x2dccb7);return _0x4e1b0f&&_0x50ca55;}(_0x1e0943,this['editor']['model']['schema']));_0x4422f3=to(_0x539b45,_0xa262ab['model']);}else{const _0x2568c6=Array['from'](_0x52aebb['getSelectedBlocks']())['filter'](_0x9bc330=>oo(_0x9bc330));_0x4422f3=to(_0x2568c6,_0xa262ab['model']);}_0xa262ab['model']['change'](()=>{for(const _0x3395e0 of _0x4422f3)_0x4912e0['markBlockFormat'](_0x3395e0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x57aa01}]});});}),_0x4912e0['descriptionFactory']['registerDescriptionCallback'](_0x472529=>{const {data:_0x12ed0e}=_0x472529;if(_0x12ed0e&&'blockQuote'==_0x12ed0e['commandName']){const _0x312717=o(_0x57a8d4,'ELEMENT_BLOCK_QUOTE');return _0x12ed0e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57a8d4,'*Set\x20format:*\x20%0',_0x312717)}:{'type':'format','content':o(_0x57a8d4,'*Remove\x20format:*\x20%0',_0x312717)};}});}}function oo(_0x1d9b15){return'blockQuote'==_0x1d9b15['parent']['name'];}class G extends _0x54db38{['afterInit'](){const _0x1f0a27=this['editor'];_0x1f0a27['plugins']['has']('CaseChange')&&(_0x1f0a27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1f0a27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1f0a27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x54db38{['afterInit'](){const _0x306e49=this['editor'];_0x306e49['commands']['get']('ckbox')&&_0x306e49['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x54db38{['afterInit'](){const _0x205eb2=this['editor'];if(!_0x205eb2['plugins']['has']('CodeBlock'))return;const _0x43ce5a=_0x205eb2['plugins']['get']('TrackChangesEditing'),_0x1f3a19=_0x205eb2['locale'],_0x785345=_0x205eb2['config']['get']('codeBlock')['languages'],_0x5e9ab5=_0x205eb2['commands']['get']('codeBlock');_0x43ce5a['enableCommand']('indentCodeBlock'),_0x43ce5a['enableCommand']('outdentCodeBlock'),_0x43ce5a['enableCommand']('codeBlock',(_0x51dee9,_0xcf2d48={})=>{const _0x24169d=_0x205eb2['model'],_0x45959d=_0x205eb2['model']['document']['selection'],_0x31b6a9=_0xcf2d48&&void 0x0!==_0xcf2d48['forceValue']?_0xcf2d48['forceValue']:!_0x5e9ab5['value'];let _0x24da77;_0xcf2d48['language']||(_0xcf2d48['language']=_0x785345[0x0]['language']),_0x24da77=_0x31b6a9?Array['from'](_0x45959d['getSelectedBlocks']())['filter'](_0x5c3db4=>eo(_0x5c3db4)||function(_0x516641,_0x501595){if(_0x516641['is']('rootElement')||_0x501595['isLimit'](_0x516641))return!0x1;return _0x501595['checkChild'](_0x516641['parent'],'codeBlock');}(_0x5c3db4,_0x24169d['schema'])):Array['from'](_0x45959d['getSelectedBlocks']())['filter'](_0x2faeea=>eo(_0x2faeea));const _0x4c060b=to(_0x24da77,_0x24169d);_0x24169d['change'](()=>{for(const _0xf9ce6b of _0x4c060b)_0x43ce5a['markBlockFormat'](_0xf9ce6b,{'commandName':'codeBlock','commandParams':[{..._0xcf2d48,'forceValue':_0x31b6a9}],'formatGroupId':'blockName'});});}),(_0x43ce5a['descriptionFactory']['registerElementLabel']('codeBlock',_0x303f7e=>o(_0x1f3a19,'ELEMENT_CODE_BLOCK',_0x303f7e)),_0x43ce5a['descriptionFactory']['registerDescriptionCallback'](_0x3c1358=>{if('formatBlock'!=_0x3c1358['type'])return;const _0x364e34=_0x1f3a19['t'],{data:_0x44352a}=_0x3c1358;if(!_0x44352a||'codeBlock'!=_0x44352a['commandName'])return;const _0x1768e0=_0x44352a['commandParams'][0x0]['language'],_0x41472b=_0x364e34(_0x785345['find'](_0x30a912=>_0x30a912['language']===_0x1768e0)['label'])['toLowerCase']();return _0x44352a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f3a19,'*Set\x20format:*\x20%0',o(_0x1f3a19,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x41472b+')')}:{'type':'format','content':o(_0x1f3a19,'*Remove\x20format:*\x20%0',o(_0x1f3a19,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2e0a03){return'codeBlock'==_0x2e0a03['name'];}class H extends _0x54db38{['afterInit'](){const _0x4d539a=this['editor'];if(!_0x4d539a['plugins']['has']('CommentsEditing'))return;_0x4d539a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x35d01d,_0x18ff7a,_0xb927ef){const _0x7f4586=[];for(const _0xe92ef5 of _0x18ff7a['getItems']())_0xe92ef5['hasAttribute'](_0x35d01d)&&_0x7f4586['push'](_0xb927ef['createRangeOn'](_0xe92ef5));return _0x7f4586;}function _e(_0x5e39e5,_0x34fb2c,{showActiveMarker:_0x2caa39=!0x0}={}){const _0x3c6525=_0x5e39e5['plugins']['get']('TrackChangesEditing');return(_0x2fef41,_0x2eb511,_0x2353ae)=>{if(!_0x2353ae['consumable']['test'](_0x2eb511['markerRange'],_0x2fef41['name']))return;const _0x28f1bd=_0x2eb511['markerRange']['getWalker'](),_0x28ea1d=_0x2eb511['markerRange']['start'],_0x4f1d33=_0x5e39e5['model']['schema'];let _0x3456d6=null,_0x1f7beb=null,_0x178091=!0x1,_0x43ee24=!0x1;for(const _0x3bbabf of _0x28f1bd){const _0x375623=_0x3bbabf['item'];_0x178091=_0x178091||_0x4f1d33['isContent'](_0x375623);const _0x429c32=_0x2353ae['mapper']['toViewElement'](_0x375623);if(_0x429c32&&_0x429c32['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3bbabf['type']&&(_0x4f1d33['isBlock'](_0x375623)&&!_0x4f1d33['isLimit'](_0x375623)&&(_0x375623['nextSibling']||_0x28ea1d['isAtEnd']?_0x3456d6&&_0x3456d6['parent']==_0x375623||(_0x3456d6=_0x375623,_0x1cf803(_0x3bbabf['previousPosition']),_0x43ee24=!0x0):_0x1f7beb=_0x1f7beb||_0x3bbabf['previousPosition']));}function _0x1cf803(_0x51b460){const _0x5e5cc7=_0x2353ae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34fb2c}),_0xf7cfb9=_0x2353ae['mapper']['toViewPosition'](_0x51b460);_0x2caa39&&_0x3c6525['activeMarkers']['includes'](_0x2eb511['markerName'])&&_0x2353ae['writer']['addClass']('ck-suggestion-marker--active',_0x5e5cc7),_0x2353ae['writer']['insert'](_0xf7cfb9,_0x5e5cc7),_0x2353ae['mapper']['bindElementToMarker'](_0x5e5cc7,_0x2eb511['markerName']);}_0x178091||_0x43ee24||!_0x1f7beb||_0x1cf803(_0x1f7beb);};}class q extends _0x54db38{static get['requires'](){return[_0x277a9];}['init'](){const _0x3a7427=this['editor'],_0x7dc146=_0x3a7427['plugins']['get']('TrackChangesEditing');_0x7dc146['enableCommand']('delete');const _0x404556=_0x3a7427['commands']['get']('deleteForward');_0x7dc146['enableCommand']('deleteForward',(_0x5a6779,_0x582fa7={})=>{const _0x5a150c=_0x3a7427['model']['createSelection'](_0x3a7427['model']['document']['selection']);_0x5a150c['isCollapsed']&&_0x3a7427['model']['modifySelection'](_0x5a150c,{'direction':'forward','unit':_0x582fa7['unit']});const _0x2dca35=_0x5a150c['getFirstRange'](),_0x159b20=_0x216747['fromRange'](_0x2dca35);let _0x44aa1e;_0x5a6779(_0x582fa7),_0x44aa1e='$graveyard'==_0x159b20['root']['rootName']?_0x3a7427['model']['createRange'](_0x2dca35['start']):_0x3a7427['model']['createRange'](_0x159b20['start'],_0x159b20['end']),_0x159b20['detach'](),_0x3a7427['model']['enqueueChange'](_0x404556['buffer']['batch'],_0xbc0f3b=>{_0x404556['buffer']['lock'](),_0xbc0f3b['setSelection'](_0xbc0f3b['createRange'](_0x44aa1e['end'])),_0x404556['buffer']['unlock']();});}),_0x3a7427['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3a7427,'merge'),{'priority':'high'}),_0x3a7427['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3b2d69,_0x301de2,_0x518036)=>{_0x518036['options']['showSuggestionHighlights']&&_e(_0x3a7427,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3b2d69,_0x301de2,_0x518036);},{'priority':'high'}),_0x3a7427['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x210d34,_0x2f0ae3,_0x43c834)=>{const _0x136187=_0x43c834['mapper']['markerNameToElements'](_0x2f0ae3['markerName']);if(_0x136187){for(const _0x3e7526 of _0x136187)_0x3e7526['is']('uiElement')&&(_0x43c834['mapper']['unbindElementFromMarkerName'](_0x3e7526,_0x2f0ae3['markerName']),_0x43c834['writer']['remove'](_0x3e7526));}},{'priority':'high'});}}class z extends _0x54db38{['afterInit'](){const _0x157663=this['editor'];if(!_0x157663['plugins']['has']('ListEditing'))return;const _0x5ce131=_0x157663['locale'],_0x39dec9=_0x157663['plugins']['get']('TrackChangesEditing'),_0x1fdf5c=_0x157663['plugins']['has']('TodoListEditing'),_0x879aaa=!!_0x157663['config']['get']('list.multiBlock');function _0x452833(_0x5647d9){return{'type':'format','content':''+o(_0x5ce131,'*Set\x20format:*\x20%0',_0x5647d9)};}function _0x5012ec(_0x149fb5){return{'type':'format','content':''+o(_0x5ce131,'*Remove\x20format:*\x20%0',_0x149fb5)};}_0x39dec9['enableDefaultAttributesIntegration']('numberedList'),_0x39dec9['enableDefaultAttributesIntegration']('bulletedList'),_0x39dec9['enableDefaultAttributesIntegration']('customNumberedList'),_0x39dec9['enableDefaultAttributesIntegration']('customBulletedList'),_0x39dec9['enableDefaultAttributesIntegration']('indentList'),_0x39dec9['enableDefaultAttributesIntegration']('outdentList'),_0x39dec9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x39dec9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x39dec9['registerBlockAttribute']('listItemId'),_0x39dec9['registerBlockAttribute']('listType'),_0x39dec9['registerBlockAttribute']('listIndent'),_0x879aaa&&(_0x39dec9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x39dec9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1fdf5c&&(_0x39dec9['enableDefaultAttributesIntegration']('todoList'),_0x39dec9['enableDefaultAttributesIntegration']('checkTodoList'),_0x39dec9['registerBlockAttribute']('todoListChecked'),_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x1601e5=>{const {data:_0x3049bc}=_0x1601e5;if(_0x3049bc&&'todoListChecked'==_0x3049bc['key'])return{'type':'format','content':_0x3049bc['newValue']?o(_0x5ce131,'*Check\x20item*'):o(_0x5ce131,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2d1a4f=>{if(_0x2d1a4f['batch']['isUndo'])return!0x1;let _0x5d9281=!0x1;const _0x1ae95b=_0x39dec9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2436a9=>'todoListChecked'===_0x39dec9['_getAttributeKey'](_0x2436a9));for(const _0x48245b of _0x1ae95b){'todo'!=_0x48245b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x39dec9['_findSuggestions'](_0x48245b['getFirstRange'](),'attribute')['find'](_0x52c70b=>'listType'===_0x39dec9['_getAttributeKey'](_0x52c70b['suggestion']))||(_0x2d1a4f['removeMarker'](_0x48245b['getFirstMarker']()),_0x5d9281=!0x0));}return _0x5d9281;})),_0x39dec9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5ce131,'FORMAT_INDENT'));const _0x2726a7={'type':'format','content':''};_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x35abb1=>{const {data:_0x42efd5}=_0x35abb1;if(!_0x42efd5||'listType'!=_0x42efd5['key'])return;let _0x398fa6=_0x35abb1['head'];for(;_0x398fa6;){if(_0x398fa6['data']&&(('listStyle'==_0x398fa6['data']['key']||'listMarkerStyle'==_0x398fa6['data']['key'])&&(_0x398fa6['data']['newValue']&&'default'!=_0x398fa6['data']['newValue']||'default'!=_0x398fa6['data']['oldValue']&&!_0x42efd5['newValue'])||!_0x879aaa&&_0x398fa6['data']['key']==m))return _0x2726a7;_0x398fa6=_0x398fa6['next'];}if(null==_0x42efd5['newValue'])switch(_0x42efd5['oldValue']){case'bulleted':return _0x5012ec(o(_0x5ce131,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5012ec(o(_0x5ce131,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5012ec(o(_0x5ce131,'ELEMENT_TODO_LIST'));}switch(_0x42efd5['newValue']){case'bulleted':return _0x452833(o(_0x5ce131,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x452833(o(_0x5ce131,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x452833(o(_0x5ce131,'ELEMENT_TODO_LIST'));}}),_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x30eb37=>{const {data:_0x403cd5}=_0x30eb37;if(_0x403cd5&&'listIndent'==_0x403cd5['key'])return null==_0x403cd5['newValue']||null==_0x403cd5['oldValue']&&0x0==_0x403cd5['newValue']?_0x2726a7:void 0x0;}),_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x3046fd=>{if('attribute'!=_0x3046fd['type'])return;const {data:_0x55bebf}=_0x3046fd;if(!_0x55bebf||'listItemId'!=_0x55bebf['key'])return;const _0x169e96=le(_0x3046fd);return'newValue'==_0x169e96?{'type':'format','content':o(_0x5ce131,'*Merge:*\x20list\x20item')}:'oldValue'==_0x169e96?{'type':'format','content':o(_0x5ce131,'*Split:*\x20list\x20item')}:_0x2726a7;}),_0x157663['model']['document']['registerPostFixer'](_0x49d825=>this['listItemIdFixer'](_0x49d825)),_0x157663['model']['document']['registerPostFixer'](_0x62adce=>this['noTrackChangesFixer'](_0x62adce)),_0x157663['model']['document']['registerPostFixer'](_0x4944d3=>this['assureChains'](_0x4944d3)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6850dc){if(_0x6850dc['batch']['isUndo']||!_0x6850dc['batch']['isLocal'])return!0x1;let _0x133f00=!0x1;const _0x4867a4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e5270=>_0x5e5270['data']&&'listItemId'==_0x5e5270['data']['key'])['filter'](_0x18817e=>_0x18817e['data']['newValue']&&_0x18817e['data']['oldValue']);for(const _0x53757f of _0x4867a4)le(_0x53757f)||(_0x6850dc['removeMarker'](_0x53757f['getFirstMarker']()),_0x133f00=!0x0);return _0x133f00;}['noTrackChangesFixer'](_0x3803ec){if(_0x3803ec['batch']['isUndo']||!_0x3803ec['batch']['isLocal'])return!0x1;const _0x5d1de1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5d1de1['trackChangesCommand']['value'])return!0x1;let _0x498572=!0x1;const _0x5b9732=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1f7498=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4a6ec1=>'attribute'==_0x4a6ec1['type'])['filter'](_0x37c630=>_0x5b9732['includes'](_0x37c630['attributeKey']));if(0x0==_0x1f7498['length'])return _0x498572;for(const _0x4741ab of _0x1f7498){const _0x233171=_0x5d1de1['_findSuggestions'](_0x4741ab['range'],'attribute')['filter'](_0x4bc520=>!_0x4bc520['meta']['isNextTo'])['map'](_0xb102c5=>_0xb102c5['suggestion'])['filter'](_0x36b2a2=>{const _0x271444=_0x5d1de1['_getAttributeKey'](_0x36b2a2);return _0x5b9732['includes'](_0x271444);});if(_0x233171['length']){for(const _0x440deb of _0x233171)_0x3803ec['removeMarker'](_0x440deb['getFirstMarker']());_0x498572=!0x0;}}return _0x498572;}['assureChains'](_0x4b8750){if(_0x4b8750['batch']['isUndo']||!_0x4b8750['batch']['isLocal'])return!0x1;const _0x2ff222=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3596ea=!0x1;const _0x566718=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x44fed0 of _0x2ff222['getSuggestions']({'skipNotAttached':!0x0})){const _0x56b981=_0x2ff222['_findSuggestions'](_0x44fed0['getFirstRange'](),'attribute')['map'](_0x977215=>_0x977215['suggestion'])['filter'](_0x47f717=>_0x47f717['data']&&_0x566718['includes'](_0x47f717['data']['key']));if(!_0x56b981['length'])continue;const _0x38ac14=_0x56b981[0x0]['head']['attributes']['groupId'];if(!_0x56b981['every'](_0x19281c=>_0x19281c['attributes']['groupId']===_0x38ac14)){for(const _0x21d182 of _0x56b981)_0x10f92e(_0x21d182,_0x38ac14)&&(_0x3596ea=!0x0);}}return _0x3596ea;function _0x4cb44c(_0x154359,_0x59c949){for(const _0x2d6198 of _0x2ff222['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1104fa=>'attribute'==_0x1104fa['type']&&_0x1104fa['attributes']['groupId']==_0x154359))_0x2d6198['setAttribute']('groupId',_0x59c949);}function _0x10f92e(_0x413fce,_0x36e303){let _0x2e21aa=_0x413fce['head'],_0x4f7aa8=!0x1;for(;_0x2e21aa;)_0x2e21aa['attributes']['groupId']!=_0x36e303&&(_0x4cb44c(_0x2e21aa['attributes']['groupId'],_0x36e303),_0x2e21aa['setAttribute']('groupId',_0x36e303),_0x4f7aa8=!0x0),_0x2e21aa=_0x2e21aa['next'];return _0x4f7aa8;}}['_supportLegacySuggestions'](){const _0x50138d=this['editor'],_0x2f6cbb=_0x50138d['locale'],_0x18efbf=_0x50138d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x18efbf['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x457b2e,_0x2c7896){const _0x15d603=[];for(let _0x48796e of _0x457b2e)_0x48796e['start']['nodeAfter']===_0x48796e['end']['parent']&&(_0x48796e=_0x50138d['model']['createRange'](_0x50138d['model']['createPositionAt'](_0x48796e['start']['nodeAfter'],0x0))),_0x15d603['push'](_0x48796e);_0x50138d['model']['change'](_0x1925fc=>{const _0x17cba0=_0x50138d['model']['document']['selection'],_0x25e055=Array['from'](_0x17cba0['getRanges']())['map'](_0x4abfa3=>_0x216747['fromRange'](_0x4abfa3));_0x1925fc['setSelection'](_0x15d603),_0x50138d['commands']['get'](_0x2c7896['commandName'])['refresh'](),_0x2c7896['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x50138d['execute'](_0x2c7896['commandName'],..._0x2c7896['commandParams']),_0x1925fc['setSelection'](_0x25e055);for(const _0x303713 of _0x25e055)_0x303713['detach']();});}),_0x18efbf['descriptionFactory']['registerElementLabel'](function(_0xb62e){const _0x555bfc=!_0x50138d['model']['schema']['isObject'](_0xb62e),_0x35629b=_0xb62e['previousSibling'],_0x5d7758=_0xb62e['nextSibling'],_0x4e5cbc=_0xb62e['getAttribute']('listItemId'),_0x34e970=!_0x35629b||_0x35629b['getAttribute']('listItemId')!==_0x4e5cbc,_0x435bca=!_0x5d7758||_0x5d7758['getAttribute']('listItemId')!==_0x4e5cbc;return _0x555bfc&&Boolean(_0x4e5cbc)&&_0x34e970&&_0x435bca;},_0x35f455=>o(_0x2f6cbb,'ELEMENT_LIST_ITEM',_0x35f455));}['_registerLegacyDescription'](){const _0x209d29=this['editor'],_0x251d3d=_0x209d29['locale'];function _0x2f866a(_0x3c2284){const _0x586a98=_0x209d29['commands']['get']('bulletedList')['value'],_0x5c793b=_0x209d29['commands']['get']('numberedList')['value'];return'numberedList'===_0x3c2284?_0x586a98:_0x5c793b;}_0x209d29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x476dd0){if('formatBlock'!=_0x476dd0['type'])return;const {data:_0x7ba49}=_0x476dd0;if(!_0x7ba49)return;let _0x355796,_0x59383e,_0x22a53c,_0x1ba419;switch(_0x7ba49['commandName']){case'bulletedList':_0x22a53c=_0x7ba49['commandParams'][0x0]['forceValue'],_0x1ba419=_0x2f866a(_0x7ba49['commandName']),_0x355796=_0x22a53c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ba419&&_0x209d29['config']['get']('list.multiBlock')||(_0x355796='*Change\x20to:*\x20%0'),_0x59383e={'type':'format','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x22a53c=_0x7ba49['commandParams'][0x0]['forceValue'],_0x1ba419=_0x2f866a(_0x7ba49['commandName']),_0x355796=_0x22a53c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ba419&&_0x209d29['config']['get']('list.multiBlock')||(_0x355796='*Change\x20to:*\x20%0'),_0x59383e={'type':'format','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x355796='*Indent:*\x20%0',_0x59383e={'type':'format','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x355796=function(_0x34bb87){const _0x3dd882=_0x34bb87['getFirstRange']();let _0x17d2a2=_0x3dd882['start']['nodeAfter'];for(;_0x17d2a2&&_0x3dd882['containsItem'](_0x17d2a2);){if(_0x17d2a2['getAttribute']('listIndent')>0x0)return!0x1;_0x17d2a2=_0x17d2a2['nextSibling'];}return!0x0;}(_0x476dd0)?o(_0x251d3d,'*Format:*\x20remove\x20from\x20%0',o(_0x251d3d,function(_0x2d49c7){return'ELEMENT_'+_0x2d49c7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x476dd0))):o(_0x251d3d,'*Outdent:*\x20%0',o(_0x251d3d,'ELEMENT_LIST_ITEM')),_0x59383e={'type':'format','content':_0x355796};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7ba49['multipleBlocks']&&(_0x355796='*Merge:*\x20%0',_0x59383e={'type':'deletion','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_LIST_ITEM'))});}return _0x59383e;});}}function le(_0x3be6c0){let _0x394a15=_0x3be6c0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x394a15;){const _0x569f28=_0x394a15['getAttribute']('listItemId');if(!_0x569f28)return!0x1;if(_0x569f28==_0x3be6c0['data']['newValue'])return'newValue';if(_0x569f28==_0x3be6c0['data']['oldValue'])return'oldValue';_0x394a15=_0x394a15['previousSibling'];}return!0x1;}class ue extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x55bb87=this['editor']['config']['get']('list.properties'),_0x34d552=this['editor']['plugins']['get']('TrackChangesEditing');_0x55bb87['styles']&&(_0x34d552['enableDefaultAttributesIntegration']('listStyle'),_0x34d552['registerBlockAttribute']('listStyle')),_0x55bb87['reversed']&&(_0x34d552['enableDefaultAttributesIntegration']('listReversed'),_0x34d552['registerBlockAttribute']('listReversed')),_0x55bb87['startIndex']&&(_0x34d552['enableDefaultAttributesIntegration']('listStart'),_0x34d552['registerBlockAttribute']('listStart'));const _0x1b765e={'type':'format','content':''};_0x34d552['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5c0471=this['editor']['locale'];_0x34d552['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5c0471,'FORMAT_LIST_REVERSED')),_0x34d552['descriptionFactory']['registerDescriptionCallback'](_0x234966=>{const {data:_0x2676e3}=_0x234966;if(_0x2676e3&&'listReversed'==_0x2676e3['key'])return null==_0x2676e3['newValue']||0x0==_0x2676e3['newValue']&&null==_0x2676e3['oldValue']?_0x1b765e:void 0x0;}),_0x34d552['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5c0471,'FORMAT_LIST_START')),_0x34d552['descriptionFactory']['registerDescriptionCallback'](_0x1c7fa5=>{const {data:_0x411c3a}=_0x1c7fa5;if(_0x411c3a&&'listStart'==_0x411c3a['key'])return null==_0x411c3a['newValue']||0x1==_0x411c3a['newValue']&&null==_0x411c3a['oldValue']?_0x1b765e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x43a264=>{if(_0x43a264['batch']['isUndo'])return!0x1;let _0x12e1d9=!0x1;const _0x4481a7=_0x34d552['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c622b=>{const _0x36e15e=_0x34d552['_getAttributeKey'](_0x1c622b);return'listStart'==_0x36e15e||'listReversed'==_0x36e15e;});for(const _0x1185ab of _0x4481a7){const _0x157039=_0x1185ab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x157039||'customNumbered'==_0x157039)continue;_0x34d552['_findSuggestions'](_0x1185ab['getFirstRange'](),'attribute')['find'](_0x253bed=>'listType'==_0x34d552['_getAttributeKey'](_0x253bed['suggestion']))||(_0x43a264['removeMarker'](_0x1185ab['getFirstMarker']()),_0x12e1d9=!0x0);}return _0x12e1d9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x25ef72){const _0x387fc3=this['editor']['locale'],{data:_0x523321}=_0x25ef72,_0x273f13={'type':'format','content':''};if(!_0x523321||'listStyle'!=_0x523321['key'])return;if(!_0x523321['oldValue'])return'default'==_0x523321['newValue']?_0x273f13:{'type':'format','content':''+o(_0x387fc3,'*Set\x20format:*\x20%0',o(_0x387fc3,this['_getTranslationKeyForListStyle'](_0x523321['newValue'])))};if(!_0x523321['newValue']){if('default'==_0x523321['oldValue'])return _0x273f13;let _0xebda05=_0x25ef72['head'];for(;_0xebda05;){if(_0xebda05['data']&&'listType'==_0xebda05['data']['key']&&_0xebda05['data']['newValue'])return _0x273f13;_0xebda05=_0xebda05['next'];}return{'type':'format','content':''+o(_0x387fc3,'*Remove\x20format:*\x20%0',o(_0x387fc3,this['_getTranslationKeyForListStyle'](_0x523321['oldValue'])))};}if('default'!=_0x523321['newValue'])return{'type':'format','content':''+o(_0x387fc3,'*Set\x20format:*\x20%0',o(_0x387fc3,this['_getTranslationKeyForListStyle'](_0x523321['newValue'])))};let _0x3cc6d=_0x25ef72['head'];for(;_0x3cc6d;){if(_0x3cc6d['data']&&'listType'==_0x3cc6d['data']['key']&&_0x3cc6d['data']['newValue']&&_0x3cc6d['data']['oldValue'])return _0x273f13;_0x3cc6d=_0x3cc6d['next'];}return{'type':'format','content':o(_0x387fc3,'*Set\x20format:*\x20%0',o(_0x387fc3,'ELEMENT_'+_0x25ef72['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e2d26=this['editor'],_0x4c5aed=_0x2e2d26['locale'];_0x2e2d26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f5078=>{if('formatBlock'!=_0x1f5078['type'])return;const {data:_0x2de1b8}=_0x1f5078;if(!_0x2de1b8)return;let _0x251095,_0x51702b;switch(_0x2de1b8['commandName']){case'listStyle':_0x251095='*Change\x20to:*\x20%0',_0x51702b={'type':'format','content':o(_0x4c5aed,_0x251095,o(_0x4c5aed,this['_getTranslationKeyForListStyle'](_0x2de1b8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x251095=_0x2de1b8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51702b={'type':'format','content':o(_0x4c5aed,_0x251095)};break;case'listStart':_0x251095='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51702b={'type':'format','content':o(_0x4c5aed,_0x251095,_0x2de1b8['commandParams'][0x0]['startIndex'])};}return _0x51702b;});}['_getTranslationKeyForListStyle'](_0xe56b47){return'ELEMENT_'+function(_0x1bb0ee){if(pe['includes'](_0x1bb0ee))return'bulleted';if(ye['includes'](_0x1bb0ee))return'numbered';return null;}(_0xe56b47)['toUpperCase']()+'_LIST_'+_0xe56b47['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x54db38{static get['requires'](){return[_0x5234e5];}['init'](){const _0x3435f9=this['editor'],_0x5ddc6b=_0x3435f9['plugins']['get']('TrackChangesEditing'),_0x3dcb20=_0x3435f9['commands']['get']('enter');_0x5ddc6b['enableCommand']('enter',()=>{_0x3435f9['model']['change'](_0x355504=>{const _0x400d60=_0x3435f9['model']['document']['selection'],_0x69194c=_0x400d60['getFirstPosition'](),_0x2ad428=_0x216747['fromRange'](_0x400d60['getFirstRange']());if(_0x3dcb20['enterBlock'](_0x355504)){const _0x42c956=_0x3435f9['model']['createPositionAt'](_0x69194c['parent']['nextSibling'],0x0),_0x5cb5b9=_0x355504['createRange'](_0x69194c,_0x42c956);_0x5ddc6b['markInsertion'](_0x5cb5b9);}else _0x355504['setSelection'](_0x355504['createRange'](_0x2ad428['end']));_0x2ad428['detach'](),_0x3dcb20['fire']('afterExecute',{'writer':_0x355504});});}),_0x3435f9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3435f9,'split'),{'priority':'high'}),_0x3435f9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x159661,_0x22ddf1,_0x5babb6)=>{const _0x30e864=_0x5babb6['mapper']['markerNameToElements'](_0x22ddf1['markerName']);if(_0x30e864){for(const _0x54e213 of _0x30e864)_0x54e213['hasClass']('ck-suggestion-marker-split')&&(_0x5babb6['mapper']['unbindElementFromMarkerName'](_0x54e213,_0x22ddf1['markerName']),_0x5babb6['writer']['remove'](_0x54e213));}},{'priority':'high'}),_0x3435f9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x570e29,_0x2a2efc,_0xcddf4d)=>{_0xcddf4d['options']['showSuggestionHighlights']&&_e(_0x3435f9,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x570e29,_0x2a2efc,_0xcddf4d);},{'priority':'high'});}}class J extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x57344a=this['editor']['plugins']['get']('TrackChangesEditing');_0x57344a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x57344a['enableCommand']('findNext'),_0x57344a['enableCommand']('findPrevious'),_0x57344a['enableCommand']('replace'),_0x57344a['enableCommand']('replaceAll');}['handleFindCommand'](_0x292336,_0x462136,_0x36485f={}){const _0x168828=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x292336(_0x2399bd=>('string'==typeof _0x462136?_0x168828['findByTextCallback'](_0x462136,_0x36485f):_0x462136)(_0x2399bd)['filter'](_0xa57a14=>!0x1===this['_isInDeletionRange'](_0xa57a14,_0x2399bd['item'])),_0x36485f);}['_isInDeletionRange'](_0x358ee9,_0x5f56fd){const _0x3f50b0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f56fd,_0x358ee9['start']),this['editor']['model']['createPositionAt'](_0x5f56fd,_0x358ee9['end']));for(const _0x3d5ac7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3f50b0['getIntersection'](_0x3d5ac7['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 _0x54db38{['afterInit'](){const _0xbdf3c0=this['editor']['locale'],_0x3d3726=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xb92426,commandName:_0x45f346}of ro)this['editor']['plugins']['has'](_0xb92426)&&(_0x3d3726['enableDefaultAttributesIntegration'](_0x45f346),_0x3d3726['registerInlineAttribute'](_0x45f346));_0xbdf3c0['t'],_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xbdf3c0,'FORMAT_FONT_SIZE')),_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xbdf3c0,'FORMAT_FONT_FAMILY')),_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xbdf3c0,'FORMAT_FONT_COLOR')),_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xbdf3c0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d7349=this['editor'],_0x25fd47=_0x4d7349['locale'];_0x4d7349['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e64b4=>{const _0x354bbc=_0x25fd47['t'];if('formatInline'!=_0x5e64b4['type'])return;const {data:_0x4a5c91}=_0x5e64b4;if(null!=_0x4a5c91){if('fontSize'==_0x4a5c91['commandName']){const _0x6f6ddb=_0x4a5c91['commandParams'][0x0]['value'];if(_0x6f6ddb){const _0x1bef2b=_0x354bbc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x33ef3f=>_0x33ef3f['model']==_0x6f6ddb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20size:*\x20%0',_0x1bef2b)};}return{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4a5c91['commandName']){const _0x27a867=_0x4a5c91['commandParams'][0x0]['value'];return _0x27a867?{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20family:*\x20%0',_0x27a867)}:{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4a5c91['commandName']){const _0x20bc15=_0x4a5c91['commandParams'][0x0]['value'];if(_0x20bc15){const _0x5c0fbe=_0x2a332b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x54d2c3=>_0x54d2c3['model']==_0x20bc15);let _0x289ac5=_0x20bc15,_0x4b4ae8='';return _0x5c0fbe&&(_0x289ac5=_0x5c0fbe['label'],_0x4b4ae8=_0x354bbc(_0x289ac5)['toLowerCase']()),{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20color:*\x20%0',_0x4b4ae8)['trim'](),'color':{'value':_0x20bc15,'title':_0x4b4ae8||_0x289ac5}};}return{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4a5c91['commandName']){const _0x7eb573=_0x4a5c91['commandParams'][0x0]['value'];if(_0x7eb573){const _0x44da35=_0x2a332b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x11ab8c=>_0x11ab8c['model']==_0x7eb573);let _0x2d524f=_0x7eb573,_0xb2a974='';return _0x44da35&&(_0x2d524f=_0x44da35['label'],_0xb2a974=_0x354bbc(_0x2d524f)['toLowerCase']()),{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20background\x20color:*\x20%0',_0xb2a974)['trim'](),'color':{'value':_0x7eb573,'title':_0xb2a974||_0x2d524f}};}return{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x54db38{['afterInit'](){const _0x5d2f9e=this['editor'],_0x1c6ff9=_0x5d2f9e['plugins']['get']('TrackChangesEditing'),_0x509f0a=_0x5d2f9e['commands']['get']('copyFormat'),_0x1fbd3e=_0x5d2f9e['commands']['get']('pasteFormat');_0x509f0a&&_0x1fbd3e&&(_0x1c6ff9['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c6ff9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2dc328=this['editor'],_0x3ccc6f=_0x2dc328['locale'];_0x2dc328['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1230ee=>{if('formatBlock'!=_0x1230ee['type']&&'formatInline'!=_0x1230ee['type'])return;const {data:_0x5aa231}=_0x1230ee;if(_0x5aa231&&'pasteFormat'===_0x5aa231['commandName']){const _0x38ac9a=[],_0x5d469c=_0x5aa231['commandParams'][0x0];for(const [_0x32d536,_0x460265]of Object['entries'](_0x5d469c))_0x38ac9a['push'](so(_0x2dc328,_0x32d536,_0x460265));return _0x38ac9a['length']?{'type':'format','content':o(_0x3ccc6f,'*Set\x20format\x20to:*\x20%0',_0x38ac9a['join'](',\x20'))}:{'type':'format','content':o(_0x3ccc6f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x26ff10,_0x26c00a,_0x58bedd){const _0x29416e=_0x26ff10['locale']['t'],_0x36cdc3=_0x26c00a['split'](/(?=[A-Z])/)['join']('\x20'),_0x4bfd16=_0x29416e(_0x36cdc3['charAt'](0x0)['toUpperCase']()+_0x36cdc3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x58bedd)return _0x4bfd16;if('fontColor'===_0x26c00a||'fontBackgroundColor'===_0x26c00a){const _0x40e81b=_0x2a332b(_0x26ff10['config']['get']('fontColor.colors'))['find'](_0x59870b=>_0x59870b['model']==_0x58bedd);return _0x4bfd16+'\x20('+(_0x40e81b?_0x29416e(_0x40e81b['label'])['toLowerCase']():_0x58bedd)+')';}if('fontSize'===_0x26c00a&&isNaN(parseFloat(_0x58bedd))){const _0x553adc=_0x26ff10['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x26ff10['config']['get']('fontSize.options'))['find'](_0x11bb73=>_0x11bb73['model']==_0x58bedd);return _0x4bfd16+'\x20('+(_0x553adc?_0x29416e(_0x553adc['title'])['toLowerCase']():_0x58bedd)+')';}return _0x4bfd16+'\x20('+_0x58bedd+')';}class Y extends _0x54db38{['_headingOptions'];['afterInit'](){const _0x10114d=this['editor'];if(!_0x10114d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x10114d['config']['get']('heading.options');const _0x266769=_0x10114d['locale'],_0xdc616d=_0x10114d['plugins']['get']('TrackChangesEditing');_0xdc616d['enableDefaultAttributesIntegration']('heading');for(const _0xb3876c of this['_headingOptions'])'paragraph'!=_0xb3876c['model']&&_0xdc616d['descriptionFactory']['registerElementLabel'](_0xb3876c['model'],_0x26e1de=>{const _0x18e7b0=this['_getHeadingLevel'](_0xb3876c['model']);return null!==_0x18e7b0?_0x3b23d0(_0x26e1de,_0x18e7b0):_0x59a123(_0x26e1de,_0xb3876c['title']);});function _0x3b23d0(_0x202390,_0x2977dd){return o(_0x266769,'ELEMENT_HEADING',[_0x202390,_0x2977dd]);}function _0x59a123(_0x29ea46,_0x566b9f){return o(_0x266769,'ELEMENT_HEADING_CUSTOM',[_0x29ea46,_0x566b9f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e40f5=this['editor'],_0x5b8696=_0x5e40f5['locale'];function _0x448611(_0x6fb9eb,_0x3a0fe6){return o(_0x5b8696,'ELEMENT_HEADING_CUSTOM',[_0x6fb9eb,_0x3a0fe6]);}_0x5e40f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x436c17=>{if('formatBlock'!=_0x436c17['type'])return;const {data:_0x44ff95}=_0x436c17;if(_0x44ff95&&'heading'==_0x44ff95['commandName']){const _0x4640c8=_0x44ff95['commandParams'][0x0]['value'],_0x30277f=this['_getHeadingLevel'](_0x4640c8);if(null!==_0x30277f)return{'type':'format','content':o(_0x5b8696,'*Change\x20to:*\x20%0',(_0x10cd69=0x1,_0x2dc8bb=_0x30277f,o(_0x5b8696,'ELEMENT_HEADING',[_0x10cd69,_0x2dc8bb])))};const _0x3da972=this['_headingOptions']['find'](_0x2218e4=>_0x2218e4['model']===_0x4640c8)['title'];return{'type':'format','content':o(_0x5b8696,'*Change\x20to:*\x20%0',_0x448611(0x1,_0x3da972))};}var _0x10cd69,_0x2dc8bb;});}['_getHeadingLevel'](_0x176fbb){const _0x124cfc=_0x176fbb['match'](/^heading(\d+)/);if(_0x124cfc)return _0x124cfc[0x1];const _0x2bd4e2=this['_headingOptions']?.['find'](_0x2e1fd6=>_0x2e1fd6['model']==_0x176fbb);if(_0x2bd4e2&&_0x2bd4e2['view']){const _0x26adf3=_0x2bd4e2['view'],_0x4570a6=(_0x26adf3['name']??_0x26adf3)['match'](/^h(\d+)/);if(_0x4570a6)return _0x4570a6[0x1];}return null;}}class Z extends _0x54db38{['afterInit'](){const _0x2c0d66=this['editor'];if(!_0x2c0d66['plugins']['has']('HighlightEditing'))return;const _0x5e8e1c=_0x2c0d66['plugins']['get']('TrackChangesEditing'),_0x1ab9f4=_0x2c0d66['locale'];_0x5e8e1c['enableDefaultAttributesIntegration']('highlight'),_0x5e8e1c['registerInlineAttribute']('highlight'),_0x5e8e1c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1ab9f4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43137e=this['editor'],_0x657209=_0x43137e['locale'];_0x43137e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24db7d=>{if('formatInline'!=_0x24db7d['type'])return;const {data:_0x3d475a}=_0x24db7d;if(_0x3d475a&&'highlight'==_0x3d475a['commandName']){const _0x3f6852=_0x657209['t'],_0x5291f4=_0x3d475a['commandParams'][0x0]['value'];if(_0x5291f4){const _0x14bcb1=_0x43137e['config']['get']('highlight.options')['find'](_0x4f112c=>_0x4f112c['model']==_0x5291f4),_0x39072f=_0x3f6852(_0x14bcb1['title'])['toLowerCase']();return{'type':'format','content':o(_0x657209,'*Set\x20highlight:*\x20%0',_0x39072f),'color':{'value':_0x14bcb1['color'],'title':_0x14bcb1['title']}};}return{'type':'format','content':o(_0x657209,'*Remove\x20highlight*',o(_0x657209,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x54db38{['afterInit'](){const _0x3966bb=this['editor'];if(!_0x3966bb['plugins']['has']('HorizontalLineEditing'))return;_0x3966bb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1f5c48=_0x3966bb['plugins']['get']('TrackChangesEditing'),_0x3db204=_0x3966bb['locale'];_0x1f5c48['descriptionFactory']['registerElementLabel']('horizontalLine',_0x238637=>o(_0x3db204,'ELEMENT_HORIZONTAL_LINE',_0x238637)),_0x3966bb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb7b4a9,{writer:_0x1cb90e,options:_0x18bfad})=>{if(!_0x18bfad['showSuggestionHighlights'])return null;const _0x4012c6=_0x1cb90e['createContainerElement']('div'),_0x559dc5=_0x1cb90e['createEmptyElement']('hr');return _0x1cb90e['addClass']('ck-horizontal-line',_0x4012c6),_0x1cb90e['insert'](_0x1cb90e['createPositionAt'](_0x4012c6,0x0),_0x559dc5),_0x4012c6;},'converterPriority':'high'});}}class et extends _0x54db38{['afterInit'](){const _0x25fcf4=this['editor'];if(!_0x25fcf4['plugins']['has']('HtmlEmbed'))return;const _0x2600c9=_0x25fcf4['plugins']['get']('TrackChangesEditing'),_0x228df7=_0x25fcf4['locale'];_0x2600c9['descriptionFactory']['registerElementLabel']('rawHtml',_0x5dac90=>o(_0x228df7,'ELEMENT_HTML_EMBED',_0x5dac90)),_0x2600c9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2600c9['registerBlockAttribute']('value'),_0x2600c9['descriptionFactory']['registerDescriptionCallback'](_0x211b49=>{if('attribute'!=_0x211b49['type'])return;const {data:_0x3862e6}=_0x211b49;if(_0x3862e6&&'value'==_0x3862e6['key']&&_0x211b49['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x519295=o(_0x228df7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x228df7,'*Change\x20%0\x20content*',_0x519295)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12234a=this['editor'],_0x41c4d2=_0x12234a['locale'];_0x12234a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfe85ae=>{if('formatBlock'!=_0xfe85ae['type'])return;const {data:_0x59d97b}=_0xfe85ae;if(_0x59d97b&&'htmlEmbed'==_0x59d97b['commandName']){const _0x5e14f6=o(_0x41c4d2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x41c4d2,'*Change\x20%0\x20content*',_0x5e14f6)};}});}}class it extends _0x54db38{['afterInit'](){const _0x16994f=this['editor'];if(!_0x16994f['plugins']['has']('ImageEditing'))return;const _0x25e66b=_0x16994f['plugins']['get']('TrackChangesEditing'),_0x5a2eec=_0x16994f['plugins']['get']('ImageUtils'),_0x44346a=_0x16994f['locale'];_0x25e66b['enableCommand']('insertImage'),_0x25e66b['descriptionFactory']['registerElementLabel']('imageBlock',_0xd20c0d=>o(_0x44346a,'ELEMENT_IMAGE',_0xd20c0d)),_0x25e66b['descriptionFactory']['registerElementLabel']('imageInline',_0x479933=>o(_0x44346a,'ELEMENT_INLINE_IMAGE',_0x479933)),_0x25e66b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x44346a,'ELEMENT_CAPTION')),_0x16994f['plugins']['has']('ImageUploadEditing')&&_0x25e66b['enableCommand']('uploadImage'),_0x16994f['plugins']['has']('ImageBlockEditing')&&_0x16994f['plugins']['has']('ImageInlineEditing')&&(_0x25e66b['enableCommand']('imageTypeInline',(_0x5c26e6,_0x550078)=>{const _0x534b0a=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']);_0x16994f['model']['change'](()=>{_0x25e66b['markBlockFormat'](_0x534b0a,{'commandName':'imageTypeInline','commandParams':[_0x550078]},[],'convertBlockImageToInline');});}),_0x25e66b['enableCommand']('imageTypeBlock',(_0x128544,_0x1007f0)=>{_0x16994f['model']['change'](_0x5a4c22=>{let _0x4877cb=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x235b07=_0x5a4c22['createRangeOn'](_0x4877cb);const _0xc2c3c2=_0xf4223e['fromPosition'](_0x235b07['start'],'toPrevious'),_0x3dbe6b=_0xf4223e['fromPosition'](_0x235b07['end'],'toNext');_0x25e66b['forceDefaultExecution'](()=>_0x128544(_0x1007f0)),_0x4877cb=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x235b07=_0x5a4c22['createRangeOn'](_0x4877cb);const _0x4cea80=_0x5a4c22['createRange'](_0xc2c3c2,_0x3dbe6b);_0xc2c3c2['detach'](),_0x3dbe6b['detach'](),_0x25e66b['markBlockFormat'](_0x4877cb,{'commandName':'imageTypeInline','commandParams':[_0x1007f0]},[],'convertInlineImageToBlock'),_0x4cea80['start']['isBefore'](_0x235b07['start'])&&_0x25e66b['markInsertion'](_0x5a4c22['createRange'](_0x4cea80['start'],_0x235b07['start']),'convertInlineImageToBlock'),_0x235b07['end']['isBefore'](_0x4cea80['end'])&&_0x25e66b['markInsertion'](_0x5a4c22['createRange'](_0x235b07['end'],_0x4cea80['end']),'convertInlineImageToBlock');});}),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x25e66b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x24f942])=>{const _0x4155d6=_0x25e66b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x39778d=_0x24f942['start'],_0x478e0d=_0x24f942['end'];const _0xab2c75=_0x16994f['model']['schema']['getNearestSelectionRange'](_0x39778d,'backward'),_0x2c1b91=_0x16994f['model']['schema']['getNearestSelectionRange'](_0x478e0d,'forward');_0xab2c75['isCollapsed']&&(_0x39778d=_0xab2c75['start']),_0x2c1b91['isCollapsed']&&(_0x478e0d=_0x2c1b91['end']),_0x4155d6([_0x16994f['model']['createRange'](_0x39778d,_0x478e0d)]);}),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3dab2e),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3dab2e)),_0x16994f['plugins']['has']('ImageCaptionEditing')&&(_0x25e66b['enableCommand']('toggleImageCaption',(_0x15cdd2,_0x437f0f)=>{const _0x2ec1c6=_0x16994f['plugins']['get']('ImageCaptionUtils');let _0x3f26ae=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x347e52=_0x2ec1c6['getCaptionFromImageModelElement'](_0x3f26ae);_0x16994f['model']['change'](()=>{if(_0x347e52)return void _0x25e66b['markDeletion'](_0x16994f['model']['createRangeOn'](_0x347e52));const _0x15aeec=_0x5a2eec['isBlockImage'](_0x3f26ae);_0x15cdd2(_0x437f0f),_0x3f26ae=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x347e52=_0x2ec1c6['getCaptionFromImageModelElement'](_0x3f26ae),_0x25e66b['markInsertion'](_0x16994f['model']['createRangeOn'](_0x347e52),_0x15aeec?null:'imageCaption');});}),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3dab2e));const _0x19dc0e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x12dac5(_0x52648f,_0x36bbb3){const _0x410d03=_0x19dc0e['findIndex'](({type:_0x54df1c,subType:_0x30c8da})=>_0x52648f['type']==_0x54df1c&&_0x52648f['subType']==_0x30c8da),_0x47b899=_0x19dc0e['findIndex'](({type:_0x447f8a,subType:_0x3cabd1})=>_0x36bbb3['type']==_0x447f8a&&_0x36bbb3['subType']==_0x3cabd1);if(_0x410d03<0x0||_0x47b899<0x0)return!0x1;const _0x2adb33=_0x52648f['getFirstRange'](),_0x2ef45d=_0x36bbb3['getFirstRange']();if((0x0==_0x410d03||0x1==_0x410d03)&&0x2==_0x47b899&&_0x2adb33['isIntersecting'](_0x2ef45d))return!0x0;if(0x2==_0x410d03&&0x3==_0x47b899){const _0x52fcec=_0x25e66b['_findSuggestions'](_0x2adb33,'insertion')['filter'](({suggestion:_0xb00f2b,meta:_0x4c884b})=>_0x4c884b['isOwn']&&'convertInlineImageToBlock'==_0xb00f2b['subType']);if(_0x52fcec['length']>0x1&&_0x2ef45d['end']['isEqual'](_0x2adb33['start']))return!0x0;if(0x1==_0x52fcec['length']&&(_0x2adb33['start']['isEqual'](_0x2ef45d['end'])||_0x2adb33['end']['isEqual'](_0x2ef45d['start'])))return!0x0;}if(0x3==_0x410d03&&0x3==_0x47b899&&_0x2adb33['start']['isBefore'](_0x2ef45d['start'])){const _0x2a39f9=_0x2adb33['end']['nodeAfter'],_0x3e94f4=_0x2ef45d['start']['nodeBefore'];return _0x5a2eec['isBlockImage'](_0x2a39f9)&&_0x2a39f9===_0x3e94f4;}return!0x1;}function _0x3dab2e(_0x402749,_0x5ca8db){return _0x12dac5(_0x402749,_0x5ca8db)?[_0x402749,_0x5ca8db]:_0x12dac5(_0x5ca8db,_0x402749)?[_0x5ca8db,_0x402749]:null;}_0x16994f['plugins']['has']('ImageResize')&&(_0x25e66b['enableDefaultAttributesIntegration']('resizeImage'),_0x25e66b['registerBlockAttribute']('resizedWidth'),_0x25e66b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x44346a,'FORMAT_IMAGE_SIZE'))),_0x16994f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x25e66b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x25e66b['registerBlockAttribute']('alt')),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x2cc010=>{if(!!_0x19dc0e['find'](({type:_0x59a83e,subType:_0x290bd1})=>_0x2cc010['type']==_0x59a83e&&_0x2cc010['subType']==_0x290bd1))return _0x2cc010['previous']?{}:void 0x0;}),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x23b6a3=>{if('insertion'==_0x23b6a3['type']||'deletion'==_0x23b6a3['type']){const _0x4d653a=_0x23b6a3['getContainedElement']();if(_0x4d653a&&_0x4d653a['is']('element','caption'))return{'type':'insertion'==_0x23b6a3['type']?'addObject':'removeObject','element':_0x4d653a,'quantity':0x1};}}),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x57b781=>'formatBlock'==_0x57b781['type']&&'convertInlineImageToBlock'==_0x57b781['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x57b781['type']&&'convertBlockImageToInline'==_0x57b781['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x553148=>{if('attribute'!=_0x553148['type'])return;const {data:_0x4a5319}=_0x553148;if(!_0x4a5319||'alt'!=_0x4a5319['key'])return;const _0x336fbf=_0x4a5319['newValue'];return _0x336fbf?{'type':'format','content':o(_0x44346a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x336fbf+'\x22')}:{'type':'format','content':o(_0x44346a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59182b=this['editor'],_0x21536b=_0x59182b['locale'];_0x59182b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xffd54a=>{if('formatBlock'!=_0xffd54a['type']&&'formatInline'!=_0xffd54a['type'])return;const {data:_0x577b04}=_0xffd54a;if(_0x577b04){if('imageTextAlternative'==_0x577b04['commandName']){const _0x242d9e=_0x577b04['commandParams'][0x0]['newValue'];return _0x242d9e?{'type':'format','content':o(_0x21536b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x242d9e+'\x22')}:{'type':'format','content':o(_0x21536b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x577b04['commandName']){const _0x353981=_0x577b04['commandParams'][0x0]['width'];return _0x353981?{'type':'format','content':o(_0x21536b,'*Set\x20image\x20width:*\x20%0',_0x353981)}:{'type':'format','content':o(_0x21536b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x37dd30=this['editor']['locale'],_0x1347ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x1347ee['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1347ee['registerBlockAttribute']('src'),_0x1347ee['descriptionFactory']['registerDescriptionCallback'](_0x3eb033=>{if('attribute'!=_0x3eb033['type'])return;const {data:_0x56bef3}=_0x3eb033;return _0x56bef3&&'src'==_0x56bef3['key']?_0x56bef3['newValue']&&_0x56bef3['oldValue']?{'type':'format','content':o(_0x37dd30,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x28f068=this['editor']['plugins']['get']('TrackChangesEditing');_0x28f068['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x28f068['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28f068['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x28f068['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2386df=this['editor'],_0x81fe47=_0x2386df['locale'];_0x2386df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c8b8=>{if('formatBlock'!=_0x11c8b8['type']&&'formatInline'!=_0x11c8b8['type'])return;const {data:_0x303598}=_0x11c8b8;if(!_0x303598||'replaceImageSource'!=_0x303598['commandName'])return;return{'type':'format','content':o(_0x81fe47,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x54db38{['afterInit'](){const _0x35569e=this['editor'];if(!_0x35569e['plugins']['has']('ImageStyleEditing'))return;const _0x3359d8=_0x35569e['plugins']['get']('TrackChangesEditing'),_0x358c0c=_0x35569e['plugins']['get']('ImageUtils'),_0x1955dd={};_0x3359d8['enableCommand']('imageStyle',(_0x3433e3,_0x512846)=>{const _0xc4a46e=_0x35569e['plugins']['get']('Users')['me'],_0x4c52f1=_0x35569e['commands']['get']('imageStyle');let _0x3c8118=_0x358c0c['getClosestSelectedImageElement'](_0x35569e['model']['document']['selection']),_0x1eaeec=_0x35569e['model']['createRangeOn'](_0x3c8118),_0x305e2c=_0x4c52f1['value'];if(_0x305e2c==_0x512846['value'])return;const _0x2875e3={'commandName':'imageStyle','commandParams':[_0x512846],'formatGroupId':_0xa3dac7()};_0x35569e['model']['change'](()=>{if(_0x3359d8['getSuggestions']()['filter'](_0x5a2f0a=>_0x5a2f0a['isInContent']&&_0xc4a46e==_0x5a2f0a['author']&&('formatBlock'==_0x5a2f0a['type']||'formatInline'==_0x5a2f0a['type'])&&('imageStylePreApply'==_0x5a2f0a['subType']||'imageStylePostApply'==_0x5a2f0a['subType'])&&_0x5a2f0a['getFirstRange']()['isEqual'](_0x1eaeec))['forEach'](_0x532223=>_0x3359d8['discardSuggestion'](_0x532223['head'])),_0x3c8118=_0x358c0c['getClosestSelectedImageElement'](_0x35569e['model']['document']['selection']),_0x1eaeec=_0x35569e['model']['createRangeOn'](_0x3c8118),_0x4c52f1['refresh'](),_0x35569e['commands']['get']('imageTypeInline')['refresh'](),_0x35569e['commands']['get']('imageTypeBlock')['refresh'](),_0x305e2c=_0x4c52f1['value'],_0x305e2c!=_0x512846['value'])return _0x358c0c['isInlineImage'](_0x3c8118)&&_0x4c52f1['shouldConvertImageType'](_0x512846['value'],_0x3c8118)?(_0x3433e3({..._0x512846,'setImageSizes':!0x1}),_0x3c8118=_0x358c0c['getClosestSelectedImageElement'](_0x35569e['model']['document']['selection']),void _0x3359d8['markBlockFormat'](_0x3c8118,{..._0x2875e3,'commandReversedParams':[{'value':_0x305e2c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x358c0c['isBlockImage'](_0x3c8118)?_0x3359d8['markBlockFormat'](_0x3c8118,_0x2875e3,[],'imageStylePostApply'):_0x3359d8['markInlineFormat'](_0x1eaeec,_0x2875e3,'imageStylePostApply'));});});for(const _0x526f8f of _0x35569e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1955dd[_0x526f8f['name']]=_0x526f8f['title']['toLowerCase']();_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x11de40])=>{_0x358c0c['setImageNaturalSizeAttributes'](_0x11de40['getContainedElement']());}),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x153a51,_0x2d07ea)=>{_0x3359d8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x153a51,{'commandName':_0x2d07ea['commandName'],'commandParams':_0x2d07ea['commandReversedParams']});}),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1dc571,_0x5a8fc3){if(_0x179f5e(_0x1dc571,_0x5a8fc3))return[_0x1dc571,_0x5a8fc3];if(_0x179f5e(_0x5a8fc3,_0x1dc571))return[_0x5a8fc3,_0x1dc571];return null;});const _0x104462=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x179f5e(_0x5e4e85,_0x58e731){const _0x242517=_0x104462['findIndex'](({type:_0x353e6a,subType:_0x284a2e})=>_0x5e4e85['type']==_0x353e6a&&_0x5e4e85['subType']==_0x284a2e),_0xd54263=_0x104462['findIndex'](({type:_0x56af43,subType:_0x1cbc10})=>_0x58e731['type']==_0x56af43&&_0x58e731['subType']==_0x1cbc10);if(_0x242517<0x0||_0xd54263<0x0)return!0x1;const _0x18296a=_0x5e4e85['getFirstRange'](),_0x594e65=_0x58e731['getFirstRange']();if((0x0==_0x242517||0x1==_0x242517)&&0x2==_0xd54263&&_0x18296a['isIntersecting'](_0x594e65))return!0x0;if(0x2==_0x242517&&0x3==_0xd54263){const _0x55e9a7=_0x3359d8['_findSuggestions'](_0x18296a,'insertion')['filter'](({suggestion:_0x4d66bb,meta:_0x490085})=>_0x490085['isOwn']&&'convertInlineImageToBlock'==_0x4d66bb['subType']);if(_0x55e9a7['length']>0x1&&_0x594e65['end']['isEqual'](_0x18296a['start']))return!0x0;if(0x1==_0x55e9a7['length']&&(_0x18296a['start']['isEqual'](_0x594e65['end'])||_0x18296a['end']['isEqual'](_0x594e65['start'])))return!0x0;}if(0x3==_0x242517&&0x3==_0xd54263&&_0x18296a['start']['isBefore'](_0x594e65['start'])){const _0xabbe5b=_0x18296a['end']['nodeAfter'],_0x257367=_0x594e65['start']['nodeBefore'];return _0x358c0c['isBlockImage'](_0xabbe5b)&&_0xabbe5b===_0x257367;}return!0x1;}_0x35569e['model']['document']['registerPostFixer'](()=>{let _0x421dbf=!0x1;const _0x515c7e=Array['from'](_0x35569e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1920ca,data:_0x5be8a8}of _0x515c7e){const {group:_0x2af384,type:_0x58a808,subType:_0x216a94,id:_0x9c632f}=_0x3359d8['_splitMarkerName'](_0x1920ca);if('suggestion'==_0x2af384&&_0x3359d8['hasSuggestion'](_0x9c632f)){if('formatBlock'==_0x58a808&&('imageStylePreApply'==_0x216a94||'imageStylePostApply'==_0x216a94)){const _0x1c60b3=_0x3359d8['getSuggestion'](_0x9c632f);if(_0x5be8a8['newRange']){const _0x46c12b=_0x1c60b3['getFirstRange']()['getContainedElement']();if(_0x358c0c['isBlockImage'](_0x46c12b))continue;_0x3359d8['discardSuggestion'](_0x1c60b3),_0x421dbf=!0x0;}}if('insertion'==_0x58a808&&'imageCaption'==_0x216a94&&!_0x5be8a8['newRange']){const _0x291f85=_0x3359d8['getSuggestion'](_0x9c632f);_0x291f85['next']&&_0x291f85['next']['isInContent']&&(_0x3359d8['discardSuggestion'](_0x291f85['next']),_0x421dbf=!0x0);}}}return _0x421dbf;}),this['_registerLegacyDescription'](_0x1955dd);}['_registerLegacyDescription'](_0x133e11){const _0x21ce22=this['editor'],_0x1b1244=_0x21ce22['locale'];_0x21ce22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48283b=>{if('formatBlock'!=_0x48283b['type']&&'formatInline'!=_0x48283b['type'])return;const {data:_0x2d53ad}=_0x48283b;if(!_0x2d53ad||'imageStyle'!=_0x2d53ad['commandName'])return;const _0x283b1f=_0x2d53ad['commandParams'][0x0]['value'];return _0x339722('side'===_0x283b1f?o(_0x1b1244,'FORMAT_SIDE_IMAGE'):_0x133e11[_0x283b1f]||_0x283b1f);function _0x339722(_0x3bfa6a){return{'type':'format','content':o(_0x1b1244,'*Format:*\x20%0',_0x3bfa6a)};}});}}class ot extends _0x54db38{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x152d51){super(_0x152d51),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x55d831=this['editor'],_0x4c9009=_0x55d831['commands']['get']('importWord'),_0x2ac9fc=_0x55d831['commands']['get']('trackChanges');_0x4c9009&&(_0x4c9009['on']('execute',(_0x13e3f2,[,_0x5543f7])=>{this['_trackChangesValueDuringImport']=_0x2ac9fc['value'],_0x5543f7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c9009,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c9009,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2ac9fc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x55d831['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x350e18,_0x23a6b6){const {suggestions:_0x4b86d6}=_0x23a6b6,_0x52f264=this['editor']['commands']['get']('trackChanges'),_0xbfa534=_0x52f264['value'];this['_trackChangesValueDuringImport']!==_0xbfa534&&(_0x52f264['execute'](),this['_trackChangesExecuted']=!0x0),_0x4b86d6&&_0x4b86d6['forEach'](({id:_0x2fbbeb,type:_0x2d021e,author:_0xaff130,created_at:_0x46651b})=>{const _0x4caeaf={'id':_0x2fbbeb,'type':_0x2d021e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xaff130,'createdAt':_0x46651b?new Date(_0x46651b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4caeaf);});}}class rt extends _0x54db38{['afterInit'](){const _0x72f02f=this['editor'],_0x2b915d=_0x72f02f['plugins']['get']('TrackChangesEditing');if(_0x72f02f['plugins']['has']('IndentEditing')&&(_0x2b915d['enableCommand']('indent'),_0x2b915d['enableCommand']('outdent')),_0x72f02f['plugins']['has']('IndentBlock')){for(const _0x3e2e76 of['indentBlock','outdentBlock'])_0x2b915d['enableDefaultAttributesIntegration'](_0x3e2e76);}const _0xe0d0d4=_0x72f02f['locale'];_0x2b915d['registerBlockAttribute']('blockIndent'),_0x2b915d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xe0d0d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ff778=this['editor'],_0x3efc68=_0x4ff778['locale'],_0x19fe9c=_0x4ff778['plugins']['get']('TrackChangesEditing');_0x19fe9c['descriptionFactory']['registerDescriptionCallback'](_0x32bc2f=>{if('formatBlock'!=_0x32bc2f['type'])return;const {data:_0x506795}=_0x32bc2f;if(!_0x506795)return;if('indentBlock'!=_0x506795['commandName']&&'outdentBlock'!=_0x506795['commandName'])return;const _0x419459=_0x32bc2f['getItems']()[0x0],_0xb185e5=_0x19fe9c['descriptionFactory']['getItemLabel'](_0x419459);return'indentBlock'==_0x506795['commandName']?{'type':'format','content':o(_0x3efc68,'*Indent:*\x20%0',_0xb185e5)}:'outdentBlock'==_0x506795['commandName']?{'type':'format','content':o(_0x3efc68,'*Outdent:*\x20%0',_0xb185e5)}:void 0x0;});}}class at extends _0x54db38{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x54db38{['afterInit'](){const _0x2aa433=this['editor'];if(!_0x2aa433['plugins']['has']('LinkEditing'))return;const _0x5b307a=_0x2aa433['plugins']['get']('TrackChangesEditing'),_0x2222b2=_0x2aa433['commands']['get']('link');_0x5b307a['enableDefaultAttributesIntegration']('link'),_0x5b307a['enableDefaultAttributesIntegration']('unlink'),_0x5b307a['registerInlineAttribute']('linkHref');for(const _0x20e5bf of _0x2222b2['manualDecorators'])_0x5b307a['registerInlineAttribute'](_0x20e5bf['id']),_0x5b307a['descriptionFactory']['registerAttributeLabel'](_0x20e5bf['id'],'link\x20('+_0x20e5bf['label']['toLowerCase']()+')');_0x5b307a['descriptionFactory']['registerDescriptionCallback'](_0x5bd3f8=>{if('attribute'!=_0x5bd3f8['type'])return;const {data:_0x37fe9e}=_0x5bd3f8;if(!_0x37fe9e||'linkHref'!=_0x37fe9e['key'])return;const _0xc82f02=_0x37fe9e['newValue'],_0x511635=_0x2aa433['locale'];return{'type':'format','content':null==_0xc82f02?o(_0x511635,'*Remove\x20link*'):o(_0x511635,'*Set\x20link:*\x20%0','\x22'+_0xc82f02+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x409ef1=this['editor'],_0x3267a9=_0x409ef1['locale'];_0x409ef1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14822a=>{if('formatInline'!=_0x14822a['type'])return;const {data:_0x1d6f1d}=_0x14822a;if(_0x1d6f1d){if('link'==_0x1d6f1d['commandName']){const _0x1c477e=_0x1d6f1d['commandParams'][0x0];return{'type':'format','content':o(_0x3267a9,'*Set\x20link:*\x20%0','\x22'+_0x1c477e+'\x22')};}return'unlink'==_0x1d6f1d['commandName']?{'type':'format','content':o(_0x3267a9,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x54db38{['afterInit'](){const _0x2f5410=this['editor'],_0xbff8d2=_0x2f5410['locale'];if(!_0x2f5410['plugins']['has']('LegacyListEditing'))return;const _0x25ca23=_0x2f5410['plugins']['get']('TrackChangesEditing'),_0x50f124=_0x2f5410['plugins']['has']('LegacyTodoListEditing');function _0x30fe95(_0x11e125){return()=>{const _0x424c56=_0x2f5410['model']['document']['selection'],_0xc49bad=_0x2f5410['commands']['get'](_0x11e125);if(_0xc49bad['value'])return void _0x2f5410['execute']('paragraph',{});const _0x3d1058=_0x11e125['slice'](0x0,-0x4),_0x8ae22c=function(_0x4566e6,_0x3491c6,_0x864b3d){let _0x31390e=Array['from'](_0x4566e6)['filter'](_0x32e63b=>function(_0x1435b8,_0x11cfa0){return _0x11cfa0['checkChild'](_0x1435b8['parent'],'listItem')&&!_0x11cfa0['isObject'](_0x1435b8);}(_0x32e63b,_0x864b3d));_0x31390e=_0x31390e['filter'](_0x28b5f5=>!_0x28b5f5['is']('element','listItem')||_0x28b5f5['getAttribute']('listType')!=_0x3491c6);const _0xb9f14f=new Set();for(const _0x206ea1 of _0x31390e)_0x206ea1['is']('element','listItem')?_0xb9f14f['add'](me(_0x206ea1)):_0xb9f14f['add'](_0x206ea1);return Array['from'](_0xb9f14f);}(_0x424c56['getSelectedBlocks'](),_0x3d1058,_0x2f5410['model']['schema']);_0x2f5410['model']['change'](()=>{for(const _0x467a3d of _0x8ae22c)_0x25ca23['markBlockFormat'](_0x467a3d,{'commandName':_0x11e125,'commandParams':[{'forceValue':!_0xc49bad['value']}],'formatGroupId':'blockName'},fe(_0x467a3d));});};}function _0x139cbd(_0x41d104){return()=>{const _0x4a4f31=function(_0x2cd81c){let _0x1785a3=Array['from'](_0x2cd81c);const _0x537c8c=_0x1785a3['findIndex'](_0x7e4731=>'listItem'!=_0x7e4731['name']);return _0x537c8c>-0x1&&(_0x1785a3=_0x1785a3['slice'](0x0,_0x537c8c)),_0x1785a3;}(_0x2f5410['model']['document']['selection']['getSelectedBlocks']()),_0x5ac16e=_0x2f5410['model']['createRange'](_0x2f5410['model']['createPositionAt'](_0x4a4f31[0x0],'before'),_0x2f5410['model']['createPositionAt'](_0x4a4f31[_0x4a4f31['length']-0x1],'end'));_0x2f5410['model']['change'](()=>{_0x25ca23['markBlockFormat'](_0x5ac16e,{'commandName':_0x41d104,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2fa054){const _0x2d7360=new Set();for(const _0x1eca66 of _0x2fa054){let _0x145860=_0x1eca66['nextSibling'];for(;_0x145860&&_0x145860['getAttribute']('listIndent')>_0x1eca66['getAttribute']('listIndent');)_0x2d7360['add'](_0x145860),_0x145860=_0x145860['nextSibling'];}return Array['from'](_0x2d7360);}(_0x4a4f31));});};}_0x25ca23['enableCommand']('numberedList',_0x30fe95('numberedList')),_0x25ca23['enableCommand']('bulletedList',_0x30fe95('bulletedList')),_0x50f124&&_0x25ca23['enableCommand']('todoList',_0x30fe95('todoList')),_0x25ca23['enableCommand']('indentList',_0x139cbd('indentList')),_0x25ca23['enableCommand']('outdentList',_0x139cbd('outdentList')),_0x50f124&&_0x25ca23['enableCommand']('checkTodoList',()=>{const _0x485ee6=_0x2f5410['commands']['get']('checkTodoList'),_0x129eba=Array['from'](_0x485ee6['_selectedElements']);_0x129eba['filter'](_0x207b09=>_0x207b09['getAttribute']('todoListChecked')!=_0x485ee6['value']),_0x2f5410['model']['change'](()=>{for(const _0x53d1d4 of _0x129eba)_0x25ca23['markBlockFormat'](_0x53d1d4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x485ee6['value']}]});});}),_0x25ca23['descriptionFactory']['registerElementLabel']('listItem',_0x40392f=>o(_0xbff8d2,'ELEMENT_LIST_ITEM',_0x40392f)),_0x25ca23['descriptionFactory']['registerDescriptionCallback'](_0x4c3b47=>{if('formatBlock'!=_0x4c3b47['type']&&'formatInline'!=_0x4c3b47['type'])return;const {data:_0x23689e}=_0x4c3b47;if(_0x23689e){if('numberedList'==_0x23689e['commandName']||'bulletedList'==_0x23689e['commandName']||'todoList'==_0x23689e['commandName'])switch(_0x23689e['commandName']['replace']('List','')){case'bulleted':return _0x443f06(o(_0xbff8d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x443f06(o(_0xbff8d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x443f06(o(_0xbff8d2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23689e['commandName'])return{'type':'format','content':o(_0xbff8d2,'*Indent:*\x20%0',o(_0xbff8d2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23689e['commandName'])return{'type':'format','content':o(_0xbff8d2,'*Outdent:*\x20%0',o(_0xbff8d2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23689e['commandName'])return _0x23689e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xbff8d2,'*Check\x20item*')}:{'type':'format','content':o(_0xbff8d2,'*Uncheck\x20item*')};}function _0x443f06(_0xe5a8b7){return{'type':'format','content':o(_0xbff8d2,'*Change\x20to:*\x20%0',_0xe5a8b7)};}});}}function me(_0x3b2d00){const _0x57239a=_0x3b2d00['getAttribute']('listIndent');if(0x0==_0x57239a)return _0x3b2d00;let _0x264fbc=_0x3b2d00;for(;_0x3b2d00['previousSibling']&&_0x3b2d00['previousSibling']['is']('element','listItem');){const _0x501870=_0x3b2d00['previousSibling']['getAttribute']('listIndent');if(_0x501870==_0x57239a)_0x264fbc=_0x3b2d00['previousSibling'];else{if(_0x501870<_0x57239a)break;}_0x3b2d00=_0x3b2d00['previousSibling'];}return _0x264fbc;}function fe(_0x5e6fc9){const _0x381e0c=[];if(_0x5e6fc9['is']('element','listItem')&&_0x5e6fc9['getAttribute']('listIndent')>0x0){let _0x48094a=_0x5e6fc9['nextSibling'];for(;_0x48094a&&'listItem'==_0x48094a['name']&&_0x48094a['getAttribute']('listIndent')==_0x5e6fc9['getAttribute']('listIndent');)_0x381e0c['push'](_0x48094a),_0x48094a=_0x48094a['nextSibling'];}return _0x381e0c;}class K extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xf3ba1=this['editor']['config']['get']('list.properties'),_0x26f4d0=this['editor']['plugins']['get']('TrackChangesEditing');_0xf3ba1['styles']&&_0x26f4d0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xf3ba1['reversed']&&_0x26f4d0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xf3ba1['startIndex']&&_0x26f4d0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x26f4d0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x203dd5,_0x1adca9={}){const _0xbcd1a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47f0d1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xbcd1a9['markMultiRangeBlockFormat'](_0x47f0d1,{'commandName':'listStyle','commandParams':[{'type':_0x1adca9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x29cfce,_0x2cf330={}){const _0x54e59e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bbc9e=this['_getSuggestionBlocks'](_0x1c3507=>_0x1c3507['is']('element','listItem')&&'numbered'===_0x1c3507['getAttribute']('listType'));if(_0x3bbc9e['length']<0x1)return;const _0x172495=_0x3bbc9e['map'](_0x4349b1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4349b1,'before'),this['editor']['model']['createPositionAt'](_0x4349b1,0x0)));this['editor']['model']['change'](()=>{_0x54e59e['markMultiRangeBlockFormat'](_0x172495,{'commandName':'listReversed','commandParams':[{'reversed':_0x2cf330['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x31788b,_0x3c8698={}){const _0x1ca34d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7b245f=this['_getSuggestionBlocks'](_0x5a7693=>_0x5a7693['is']('element','listItem')&&'numbered'===_0x5a7693['getAttribute']('listType'));if(_0x7b245f['length']<0x1)return;const _0x6069ca=_0x7b245f['map'](_0x54c1d3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54c1d3,'before'),this['editor']['model']['createPositionAt'](_0x54c1d3,0x0)));this['editor']['model']['change'](()=>{_0x1ca34d['markMultiRangeBlockFormat'](_0x6069ca,{'commandName':'listStart','commandParams':[{'startIndex':_0x3c8698['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x28d8c6){if('formatBlock'!=_0x28d8c6['type']&&'formatInline'!=_0x28d8c6['type'])return;const _0x44d770=this['editor']['locale'],{data:_0xd43836}=_0x28d8c6;if(!_0xd43836)return;let _0x56027e,_0x4aa2ce;switch(_0xd43836['commandName']){case'listStyle':_0x56027e='*Change\x20to:*\x20%0',_0x4aa2ce={'type':'format','content':o(_0x44d770,_0x56027e,o(_0x44d770,this['_getTranslationKeyForListStyle'](_0xd43836['commandParams'][0x0]['type'])))};break;case'listReversed':_0x56027e=_0xd43836['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4aa2ce={'type':'format','content':o(_0x44d770,_0x56027e)};break;case'listStart':_0x56027e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4aa2ce={'type':'format','content':o(_0x44d770,_0x56027e,_0xd43836['commandParams'][0x0]['startIndex'])};}return _0x4aa2ce;}['_getSuggestionBlocksForListStyle'](){const _0x3d9c4a=this['editor']['plugins']['get']('LegacyListUtils');let _0x53bb77=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x53bb77[0x0]?.['is']('element','listItem')&&_0x53bb77['unshift'](..._0x3d9c4a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x53bb77[_0x53bb77['length']-0x1]?.['is']('element','listItem')&&_0x53bb77['push'](..._0x3d9c4a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x53bb77=[...new Set(_0x53bb77)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x53bb77=_0x53bb77['filter'](_0x6b40d7=>_0x6b40d7['is']('element','listItem'))),_0x53bb77;}['_getSuggestionBlocks'](_0xe0b8b0){const _0x5cc211=this['editor']['plugins']['get']('LegacyListUtils');let _0x4734b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xe0b8b0)['map'](_0x492bff=>{const _0xceb8d7=this['editor']['model']['createPositionAt'](_0x492bff,0x0);return[..._0x5cc211['getSiblingNodes'](_0xceb8d7,'backward'),..._0x5cc211['getSiblingNodes'](_0xceb8d7,'forward')];})['flat']();return _0x4734b4=[...new Set(_0x4734b4)],_0x4734b4;}['_getTranslationKeyForListStyle'](_0x5afd86){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5afd86)||'default')['toUpperCase']()+'_LIST_'+_0x5afd86['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x54db38{['afterInit'](){const _0x3daccc=this['editor'];if(!_0x3daccc['plugins']['has']('MediaEmbedEditing'))return;const _0x49dd3a=_0x3daccc['plugins']['get']('TrackChangesEditing'),_0x37b234=_0x3daccc['locale'];_0x49dd3a['enableCommand']('mediaEmbed'),_0x49dd3a['descriptionFactory']['registerElementLabel']('media',_0x5b540e=>o(_0x37b234,'ELEMENT_MEDIA',_0x5b540e)),_0x3daccc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2d83cc,{writer:_0x424e63,options:_0x922a2e})=>{if(_0x922a2e['showSuggestionHighlights'])return _0x424e63['createEmptyElement']('div');},'converterPriority':'high'}),_0x3daccc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x51adf5,_0x276e59,_0x9035b4)=>{_0x9035b4['options']['showSuggestionHighlights']&&_0x51adf5['stop']();},{'priority':'high'});}}class gt extends _0x54db38{['afterInit'](){const _0x21f12c=this['editor'];_0x21f12c['plugins']['has']('MentionEditing')&&_0x21f12c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x54db38{['afterInit'](){const _0x468adc=this['editor'],_0x199c6e=_0x468adc['plugins']['get']('TrackChangesEditing');_0x468adc['plugins']['has']('MultiLevelList')&&(_0x199c6e['enableDefaultAttributesIntegration']('multiLevelList'),_0x199c6e['registerBlockAttribute']('listMarkerStyle'),_0x199c6e['descriptionFactory']['registerDescriptionCallback'](_0x1b44d9=>this['handleDescriptions'](_0x1b44d9)));}['handleDescriptions'](_0x3a53e0){const _0x1487ff=this['editor']['locale'],{data:_0x4fc4f9}=_0x3a53e0,_0x2b8a05={'type':'format','content':''};if(_0x4fc4f9&&'listMarkerStyle'==_0x4fc4f9['key']){if(!_0x4fc4f9['oldValue'])return{'type':'format','content':o(_0x1487ff,'*Set\x20format:*\x20%0',o(_0x1487ff,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4fc4f9['newValue']+')'};if(!_0x4fc4f9['newValue']){let _0x124a55=_0x3a53e0['head'];for(;_0x124a55;){if(_0x124a55['data']&&'listType'==_0x124a55['data']['key']&&_0x124a55['data']['newValue'])return _0x2b8a05;_0x124a55=_0x124a55['next'];}return{'type':'format','content':o(_0x1487ff,'*Remove\x20format:*\x20%0',o(_0x1487ff,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4fc4f9['oldValue']+')'};}}}}class mt extends _0x54db38{['afterInit'](){const _0x1e7d9e=this['editor'];if(!_0x1e7d9e['plugins']['has']('PageBreakEditing'))return;_0x1e7d9e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d2107=_0x1e7d9e['plugins']['get']('TrackChangesEditing'),_0x26d2c1=_0x1e7d9e['locale'];_0x3d2107['descriptionFactory']['registerElementLabel']('pageBreak',_0x855422=>o(_0x26d2c1,'ELEMENT_PAGE_BREAK',_0x855422));}}class dt extends _0x54db38{['afterInit'](){const _0x4abdc0=this['editor'];if(!_0x4abdc0['plugins']['has']('Paragraph'))return;const _0x2b8f86=_0x4abdc0['locale'],_0x1e1558=_0x4abdc0['plugins']['get']('TrackChangesEditing');_0x1e1558['descriptionFactory']['registerElementLabel']('paragraph',_0x293fea=>o(_0x2b8f86,'ELEMENT_PARAGRAPH',_0x293fea)),_0x1e1558['enableDefaultAttributesIntegration']('paragraph'),_0x1e1558['enableCommand']('insertParagraph'),_0x4abdc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4abdc0),{'priority':'highest'}),_0x4abdc0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x21e923,_0x13bd84,_0x1dd454)=>{_0x1dd454['options']['showSuggestionHighlights']&&nr(_0x4abdc0,{'showActiveMarker':!0x1})(_0x21e923,_0x13bd84,_0x1dd454);},{'priority':'highest'});const _0x44ac73=_0x1e1558['descriptionFactory'];_0x44ac73['registerDescriptionCallback'](_0x2d0b16=>{if('insertion'!==_0x2d0b16['type'])return;const {start:_0x1b5a4c,end:_0x224c7b}=_0x2d0b16['getFirstRange']();if(!_0x1b5a4c['isTouching'](_0x224c7b)||!_0x1b5a4c['nodeAfter'])return;const _0x3e827c=_0x4abdc0['model']['schema'],_0x3a9489=_0x1b5a4c['nodeAfter'];return _0x3e827c['isBlock'](_0x3a9489)&&!_0x3e827c['isLimit'](_0x3a9489)&&_0x3e827c['checkChild'](_0x3a9489,'$text')?{'type':'insertion','content':o(_0x2b8f86,'*Insert:*\x20%0',_0x44ac73['getItemLabel'](_0x3a9489,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d1755=this['editor'],_0x21527=_0x3d1755['locale'];_0x3d1755['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x407b5d=>{if('formatBlock'!=_0x407b5d['type'])return;const {data:_0x2774e1}=_0x407b5d;return _0x2774e1&&'paragraph'==_0x2774e1['commandName']?{'type':'format','content':o(_0x21527,'*Change\x20to:*\x20%0',o(_0x21527,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x374a08,{showActiveMarker:_0x1dffd9=!0x0}={}){return(_0x36dd98,_0x3b6d9b,_0x3d75d2)=>{const _0x5381da=_0x374a08['plugins']['get']('TrackChangesEditing'),_0x6e12d2=_0x3b6d9b['markerRange']['start'],_0x552fa7=_0x3b6d9b['markerRange']['end'],_0xd0087d=_0x374a08['model']['schema'];if(!_0x6e12d2['isTouching'](_0x552fa7)||!_0x6e12d2['nodeAfter'])return;const _0x327930=_0x6e12d2['nodeAfter'];if(_0xd0087d['isBlock'](_0x327930)&&!_0xd0087d['isLimit'](_0x327930)&&_0xd0087d['checkChild'](_0x327930,'$text')){if(!_0x3d75d2['consumable']['consume'](_0x3b6d9b['markerRange'],_0x36dd98['name']))return;const _0x428fa3=_0x3d75d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x46ef80=_0x3d75d2['mapper']['toViewPosition'](_0x552fa7);_0x1dffd9&&_0x5381da['activeMarkers']['includes'](_0x3b6d9b['markerName'])&&_0x3d75d2['writer']['addClass']('ck-suggestion-marker--active',_0x428fa3),_0x3d75d2['writer']['insert'](_0x46ef80,_0x428fa3),_0x3d75d2['mapper']['bindElementToMarker'](_0x428fa3,_0x3b6d9b['markerName']);}};}class pt extends _0x54db38{['afterInit'](){const _0x582e1c=this['editor'];if(!_0x582e1c['plugins']['has']('RemoveFormatEditing'))return;_0x582e1c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58ba74=this['editor'];_0x58ba74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40361a=>{if('formatBlock'!=_0x40361a['type']&&'formatInline'!=_0x40361a['type'])return;const {data:_0x269a64}=_0x40361a;return _0x269a64&&'removeFormat'==_0x269a64['commandName']?{'type':'format','content':o(_0x58ba74['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x54db38{['afterInit'](){const _0x2d52a6=this['editor'];if(!_0x2d52a6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x44e24a=_0x2d52a6['plugins']['get']('TrackChangesEditing');_0x44e24a['enableCommand']('goToPreviousRestrictedEditingException'),_0x44e24a['enableCommand']('goToNextRestrictedEditingException');const _0x2f0883=_0x2d52a6['plugins']['get']('RestrictedEditingModeEditing');_0x2f0883['enableCommand']('trackChanges'),_0x2f0883['enableCommand']('acceptSuggestion'),_0x2f0883['enableCommand']('discardSuggestion'),_0x2f0883['enableCommand']('acceptAllSuggestions'),_0x2f0883['enableCommand']('discardAllSuggestions'),_0x2f0883['enableCommand']('acceptSelectedSuggestions'),_0x2f0883['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x54db38{static get['requires'](){return[_0x36d1dc];}['init'](){const _0x423a48=this['editor'],_0x13a0c0=_0x423a48['plugins']['get']('TrackChangesEditing');_0x13a0c0['enableCommand']('shiftEnter'),_0x423a48['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x423a48),{'priority':'high'}),_0x423a48['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x423a48),{'priority':'high'}),_0x423a48['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d5327,_0x4ebb16,_0x2a8bed)=>{_0x2a8bed['options']['showSuggestionHighlights']&&de(_0x423a48,{'showActiveMarker':!0x1})(_0x3d5327,_0x4ebb16,_0x2a8bed);}),_0x13a0c0['descriptionFactory']['registerElementLabel']('softBreak',_0x21ba26=>o(_0x423a48['locale'],'ELEMENT_LINE_BREAK',_0x21ba26));}}function de(_0x1923b7,{showActiveMarker:_0x16491f=!0x0}={}){return(_0x18ba61,_0xe97d16,_0x21561c)=>{const _0x444dbb=_0x1923b7['plugins']['get']('TrackChangesEditing');if(!_0x21561c['consumable']['test'](_0xe97d16['markerRange'],_0x18ba61['name']))return;const _0x36fe0b=_0x1923b7['model'];for(const _0x5a55d7 of _0xe97d16['markerRange']['getItems']()){if(!_0x5a55d7['is']('element','softBreak'))continue;const _0x42d70a='deletion'==_0xe97d16['markerName']['split'](':')[0x1]?'merge':'split',_0xd31c28=_0x21561c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42d70a}),_0x25329f=_0x21561c['mapper']['toViewPosition'](_0x36fe0b['createPositionBefore'](_0x5a55d7));_0x16491f&&_0x444dbb['activeMarkers']['includes'](_0xe97d16['markerName'])&&_0x21561c['writer']['addClass']('ck-suggestion-marker--active',_0xd31c28),_0x21561c['writer']['insert'](_0x25329f,_0xd31c28),_0x21561c['mapper']['bindElementToMarker'](_0xd31c28,_0xe97d16['markerName']);}};}class wt extends _0x54db38{['afterInit'](){const _0x42879e=this['editor'],_0xeaf356=_0x42879e['model'],_0x4fc9bc=_0x42879e['locale'];if(!_0x42879e['plugins']['has']('StandardEditingModeEditing'))return;const _0x7099a9=_0x42879e['plugins']['get']('TrackChangesEditing'),_0x3d7923='restrictedEditingException',_0x244ced=_0x42879e['commands']['get'](_0x3d7923);_0x7099a9['enableCommand'](_0x3d7923,(_0x3f35f8,_0x566c35={})=>{const _0x24cf35=_0xeaf356['document']['selection'];if(_0x24cf35['isCollapsed'])return void _0x3f35f8(_0x566c35);const _0x45edd0=void 0x0!==_0x566c35['forceValue']?_0x566c35['forceValue']:!_0x244ced['value'];_0xeaf356['change'](()=>{const _0x235e60=Array['from'](_0x24cf35['getRanges']());for(const _0x4ece50 of _0x235e60){const _0x1c5047=_0x45edd0?[_0x4ece50]:io(_0x3d7923,_0x4ece50,_0xeaf356);for(const _0x14e829 of _0x1c5047)_0x7099a9['markInlineFormat'](_0x14e829,{'commandName':_0x3d7923,'commandParams':[{'forceValue':_0x45edd0}]});}});}),_0x7099a9['descriptionFactory']['registerDescriptionCallback'](_0x4ef09e=>{if('formatBlock'!=_0x4ef09e['type']&&'formatInline'!=_0x4ef09e['type'])return;const {data:_0x1187f2}=_0x4ef09e;return _0x1187f2&&_0x1187f2['commandName']==_0x3d7923?_0x1187f2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fc9bc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fc9bc,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x54db38{['afterInit'](){const _0x319e6b=this['editor'];if(!_0x319e6b['plugins']['has']('Style')||!_0x319e6b['plugins']['has']('DataSchema'))return;const _0x1a3bd2=_0x319e6b['plugins']['get']('TrackChangesEditing'),_0x2d20a3=_0x319e6b['locale'],_0x5b3a39=_0x319e6b['config']['get']('style')||{},_0x2e9c89=_0x319e6b['plugins']['get']('GeneralHtmlSupport'),_0x3cc9b4=_0x319e6b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x319e6b['plugins']['get']('DataSchema'),_0x5b3a39['definitions']);_0x1a3bd2['enableDefaultAttributesIntegration']('style');const _0x524f9f=new Set();for(const _0x14c932 of _0x3cc9b4['block']){const _0x520f1f=_0x2e9c89['getGhsAttributeNameForElement'](_0x14c932['element']);_0x524f9f['add'](_0x520f1f);}const _0xb13314=new Set();for(const _0x10df45 of _0x3cc9b4['inline']){const _0x394117=_0x2e9c89['getGhsAttributeNameForElement'](_0x10df45['element']);_0xb13314['add'](_0x394117);for(const _0x28bb92 of _0x10df45['ghsAttributes'])_0xb13314['add'](_0x28bb92);}for(const _0x1bc7cd of _0x524f9f)_0x1a3bd2['registerBlockAttribute'](_0x1bc7cd),_0x1a3bd2['descriptionFactory']['registerAttributeLabel'](_0x1bc7cd,o(_0x2d20a3,'FORMAT_STYLE'));for(const _0x6266c4 of _0xb13314)_0x1a3bd2['registerInlineAttribute'](_0x6266c4),_0x1a3bd2['descriptionFactory']['registerAttributeLabel'](_0x6266c4,o(_0x2d20a3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8f30ef=this['editor'],_0x2fc184=_0x8f30ef['locale'];_0x8f30ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d14b9=>{if('formatBlock'!=_0x1d14b9['type']&&'formatInline'!=_0x1d14b9['type'])return;const {data:_0x4d5f5b}=_0x1d14b9;return _0x4d5f5b&&'style'===_0x4d5f5b['commandName']?_0x4d5f5b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fc184,'*Set\x20format:*\x20%0',_0x4d5f5b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2fc184,'*Remove\x20format:*\x20%0',_0x4d5f5b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x54db38{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xb9881e){super(_0xb9881e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ff1c2=this['editor'],_0x5cb41b=_0x3ff1c2['model']['document']['selection'];if(!_0x3ff1c2['plugins']['has']('TableEditing'))return;const _0x1254ad=_0x3ff1c2['locale'],_0xa5b67b=_0x3ff1c2['plugins']['get']('TrackChangesEditing'),_0x7f9444=_0x3ff1c2['plugins']['get']('TableUtils');_0xa5b67b['descriptionFactory']['registerElementLabel']('table',_0x57aec9=>o(_0x1254ad,'ELEMENT_TABLE',_0x57aec9)),this['_setupColumnsRowsFixing'](),_0xa5b67b['enableCommand']('insertTable'),_0xa5b67b['enableCommand']('selectTableRow'),_0xa5b67b['enableCommand']('selectTableColumn');for(const _0x4d5dc1 of['insertTableRowAbove','insertTableRowBelow']){const _0x5901d7=_0x3ff1c2['commands']['get'](_0x4d5dc1);_0xa5b67b['enableCommand'](_0x4d5dc1,_0x3380fc=>{_0x3ff1c2['model']['change'](_0x40fd73=>{_0x3380fc();const _0x165c9c='above'===_0x5901d7['order'],_0x724001=_0x7f9444['getSelectionAffectedTableCells'](_0x5cb41b),_0x373d07=_0x7f9444['getRowIndexes'](_0x724001),_0x53be55=_0x165c9c?_0x373d07['first']-0x1:_0x373d07['last']+0x1,_0x3088eb=_0x724001[0x0]['findAncestor']('table'),_0x534e09=_0x7f9444['createTableWalker'](_0x3088eb,{'startRow':_0x53be55,'endRow':_0x53be55}),_0x1a4312=Array['from'](_0x534e09)['map'](_0x3d0698=>_0x40fd73['createRangeOn'](_0x3d0698['cell']));_0xa5b67b['markMultiRangeInsertion'](_0x1a4312,'tableRow');});});}for(const _0x5b5d43 of['insertTableColumnLeft','insertTableColumnRight']){const _0x37c7ea=_0x3ff1c2['commands']['get'](_0x5b5d43);_0xa5b67b['enableCommand'](_0x5b5d43,_0xabe585=>{_0x3ff1c2['model']['change'](_0x1bde2f=>{_0xabe585();const _0x3d9b12='left'===_0x37c7ea['order'],_0x5cb50b=_0x7f9444['getSelectionAffectedTableCells'](_0x5cb41b),_0x3e60b8=_0x7f9444['getColumnIndexes'](_0x5cb50b),_0x3d3dd9=_0x3d9b12?_0x3e60b8['first']-0x1:_0x3e60b8['last']+0x1,_0x209196=_0x5cb50b[0x0]['findAncestor']('table'),_0x271a7c=_0x7f9444['createTableWalker'](_0x209196,{'startRow':0x0,'column':_0x3d3dd9,'includeAllSlots':!0x1}),_0x5e3220=Array['from'](_0x271a7c)['map'](_0x1f6ef4=>_0x1bde2f['createRangeOn'](_0x1f6ef4['cell']));_0xa5b67b['markMultiRangeInsertion'](_0x5e3220,'tableColumn');});});}for(const _0x359ff5 of['removeTableRow','removeTableColumn']){const _0x30ce9f=_0x359ff5['substr'](0xb),_0x30db6b=_0x30ce9f['toLowerCase'](),_0x59ca46=_0x30db6b['substr'](0x0,0x3)+'span',_0x483b53='table'+_0x30ce9f,_0x2bbe84='min'+_0x30ce9f,_0x4cf2dd='max'+_0x30ce9f;_0xa5b67b['enableCommand'](_0x359ff5,()=>{_0x3ff1c2['model']['change'](_0x250792=>{const _0x5bc2e2=_0x7f9444['getSelectionAffectedTableCells'](_0x5cb41b),_0x375beb=_0x5bc2e2[0x0]['findAncestor']('table');let _0x3d1b15;if('removeTableRow'==_0x359ff5){const _0x23eb4e=_0x7f9444['getRowIndexes'](_0x5bc2e2);_0x3d1b15={'startRow':_0x23eb4e['first'],'endRow':_0x23eb4e['last'],'includeAllSlots':!0x0};}else{const _0x1b55e3=_0x7f9444['getColumnIndexes'](_0x5bc2e2);_0x3d1b15={'startColumn':_0x1b55e3['first'],'endColumn':_0x1b55e3['last'],'includeAllSlots':!0x0};}const _0x46cee2=_0x7f9444['createTableWalker'](_0x375beb,_0x3d1b15),_0x21c413=Array['from'](_0x46cee2)['map'](({cell:_0x3704c8})=>_0x3704c8),_0x583f0d=Ee(_0x21c413['filter'](_0x244cea=>_0x244cea['hasAttribute'](_0x59ca46))),_0x5895b8=Ee(_0x21c413['filter'](_0xa768b4=>!_0xa768b4['hasAttribute'](_0x59ca46)))['map'](_0x14d34f=>_0x250792['createRangeOn'](_0x14d34f)),_0x291ee4=_0xa5b67b['markMultiRangeDeletion'](_0x5895b8,_0x483b53);if(_0x291ee4&&('tableRow'==_0x291ee4['subType']||'tableColumn'==_0x291ee4['subType'])){const _0xc349eb=this['_getSuggestionCoords'](_0x291ee4);for(const _0x2a2d2c of _0x583f0d){const _0x385633=_0x250792['createRangeOn'](_0x2a2d2c),_0x3c9fb1=_0x7f9444['getCellLocation'](_0x2a2d2c),_0xb87fac=_0x2a2d2c['getAttribute'](_0x59ca46)-0x1,_0x123946=_0xc349eb[_0x2bbe84],_0x1d8c65=_0xc349eb[_0x4cf2dd];_0x123946<=_0x3c9fb1[_0x30db6b]&&_0x3c9fb1[_0x30db6b]+_0xb87fac<=_0x1d8c65&&_0x291ee4['addRange'](_0x385633);}}});});}function _0xcf10fa(_0x467e33){const _0x286328=Array['from'](_0x5cb41b['getRanges']())['map'](_0x56869a=>_0x216747['fromRange'](_0x56869a));_0x3ff1c2['model']['change'](_0x3a2889=>{const _0x3b8c0f=_0x3a2889['batch'];_0x467e33=_0x467e33['filter'](_0x111a97=>'$graveyard'!=_0x111a97['root']['rootName']),_0x3a2889['setSelection'](_0x467e33),_0x3ff1c2['commands']['get']('removeTableRow')['refresh'](),_0x3ff1c2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ff1c2['model']['enqueueChange'](()=>{_0x3ff1c2['model']['enqueueChange'](_0x3b8c0f,_0x2287d5=>{const _0xbdef0=_0x286328['filter'](_0x207766=>'$graveyard'!=_0x207766['root']['rootName']);_0xbdef0['length']>0x0&&_0x2287d5['setSelection'](_0xbdef0);for(const _0x312b3a of _0x286328)_0x312b3a['detach']();});});});}function _0x4c31aa(_0x3b95b1){_0x3ff1c2['model']['change'](_0x56a208=>{const _0x5c364f=Array['from'](_0x5cb41b['getRanges']())['map'](_0x5cf3be=>_0x216747['fromRange'](_0x5cf3be)),_0x520f55=[];for(const _0x285fa9 of _0x3b95b1)for(const _0x28977c of _0x285fa9['getItems']({'shallow':!0x0}))_0x520f55['push'](_0x28977c);for(const _0x18e326 of _0x520f55)'$graveyard'!=_0x18e326['root']['rootName']&&(_0x56a208['setSelection'](_0x56a208['createPositionAt'](_0x18e326,0x0)),_0x3ff1c2['commands']['get']('removeTableColumn')['refresh'](),_0x3ff1c2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3fba62=_0x5c364f['filter'](_0x20d904=>'$graveyard'!=_0x20d904['root']['rootName']);_0x3fba62['length']>0x0&&_0x56a208['setSelection'](_0x3fba62);for(const _0x3fc0af of _0x5c364f)_0x3fc0af['detach']();});}function _0x58389f(_0x3a1c5d,_0xb1857d){return _0xb1857d['every'](_0x262c8a=>_0x3a1c5d['some'](_0x16224f=>_0x16224f['end']['isEqual'](_0x262c8a['start'])||_0x262c8a['end']['isEqual'](_0x16224f['start'])));}function _0x36dc75(_0x10571b,_0x97bd6d){return!_0x10571b['some'](_0x501121=>_0x97bd6d['some'](_0x3dec71=>_0x501121['isIntersecting'](_0x3dec71)))&&_0x10571b['some'](_0x42346c=>_0x97bd6d['some'](_0x5cec7c=>_0x42346c['end']['isTouching'](_0x5cec7c['start'])));}_0x3ff1c2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4a3ed6,_0x2f444a,_0x2021eb)=>{if(!_0x2021eb['options']['showSuggestionHighlights'])return;const _0x9d6edc=_0x2f444a['item'];if(!_0x9d6edc)return;const _0x56abaf=_0x2021eb['mapper']['toViewElement'](_0x9d6edc);function _0x1a125b(_0x551489){return Array['isArray'](_0x551489)?_0x551489:[_0x551489];}_0x56abaf&&'tableCell'===_0x9d6edc['name']&&_0x3ad1c3(_0x56abaf,_0x2021eb['writer'],(_0x7dad2f,_0x26475b,_0x453e75)=>_0x453e75['addClass'](_0x1a125b(_0x26475b['classes']),_0x7dad2f),(_0x5b4505,_0x712401,_0x5313ea)=>_0x5313ea['removeClass'](_0x1a125b(_0x712401['classes']),_0x5b4505));},{'priority':'highest'}),_0xa5b67b['descriptionFactory']['registerDescriptionCallback'](_0x2de5a1=>{if('insertion'!=_0x2de5a1['type']&&'deletion'!=_0x2de5a1['type'])return;const _0xe7afc2=_0x2de5a1['getContainedElement']();if(null!=_0xe7afc2&&_0xe7afc2['is']('element','table')){if('insertion'==_0x2de5a1['type']){const _0x4b0064=_0x2de5a1['getItems']()['filter'](_0x45a72c=>_0x45a72c['is']('$textProxy'))['map'](_0x589a85=>_0x589a85['data']);if(_0x4b0064['length'])return{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b0064['join']('\x20')+'\x22'))};}if('deletion'==_0x2de5a1['type']){const _0x5c0bd8=_0x2de5a1['getItems']()['filter'](_0x1434f0=>_0x1434f0['is']('$textProxy'))['map'](_0x80ca73=>_0x80ca73['data']);if(_0x5c0bd8['length'])return{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c0bd8['join']('\x20')+'\x22'))};}}}),_0xa5b67b['descriptionFactory']['registerDescriptionCallback'](_0x5796c2=>{if('tableRow'==_0x5796c2['subType']){const _0x4cc259=_0x5796c2['getItems']()['filter'](_0x2e7357=>_0x2e7357['is']('$textProxy'))['map'](_0x4028c3=>_0x4028c3['data']),_0x4afb77=this['_getSuggestionCoords'](_0x5796c2),_0x4ba398=_0x4afb77['maxRow']-_0x4afb77['minRow']+0x1;if('insertion'==_0x5796c2['type'])return _0x4cc259['length']?{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ba398,'\x22'+_0x4cc259['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW',_0x4ba398))};if('deletion'==_0x5796c2['type'])return _0x4cc259['length']?{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ba398,'\x22'+_0x4cc259['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW',_0x4ba398))};}if('tableColumn'==_0x5796c2['subType']){const _0x5dde6d=_0x5796c2['getItems']()['filter'](_0x2ec8b6=>_0x2ec8b6['is']('$textProxy'))['map'](_0x4687fa=>_0x4687fa['data']),_0x3d7947=this['_getSuggestionCoords'](_0x5796c2),_0x7f8f7f=_0x3d7947['maxColumn']-_0x3d7947['minColumn']+0x1;if('insertion'==_0x5796c2['type'])return _0x5dde6d['length']?{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x7f8f7f,'\x22'+_0x5dde6d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN',_0x7f8f7f))};if('deletion'==_0x5796c2['type'])return _0x5dde6d['length']?{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x7f8f7f,'\x22'+_0x5dde6d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN',_0x7f8f7f))};}}),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xcf10fa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xcf10fa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4c31aa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4c31aa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58389f),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58389f),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x36dc75),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x36dc75);}['_acceptFormatSuggestionCallbackFactory'](){const _0x320f58=this['editor'],_0x484cd1=_0x320f58['model']['document']['selection'];return(_0x280149,_0x56fdd4)=>{_0x320f58['model']['change'](_0x552251=>{const {commandName:_0x595887,commandParams:_0x16f9b1}=_0x56fdd4;let _0x562644=_0x280149[0x0]['end']['nodeBefore'];_0x16f9b1&&_0x16f9b1[0x0]&&!0x1===_0x16f9b1[0x0]['forceValue']&&(_0x562644=_0x280149[0x0]['start']['nodeAfter']);const _0x2f8f49=_0x552251['createRangeIn'](_0x562644);if('$graveyard'==_0x2f8f49['root']['rootName'])return;const _0x37f669=Array['from'](_0x484cd1['getRanges']())['map'](_0x1088bb=>_0x216747['fromRange'](_0x1088bb));_0x552251['setSelection'](_0x2f8f49),_0x320f58['commands']['get'](_0x595887)['refresh'](),_0x16f9b1['push']({'forceDefaultExecution':!0x0}),_0x320f58['execute'](_0x595887,..._0x16f9b1);const _0x56412f=_0x37f669['filter'](_0x2962df=>'$graveyard'!=_0x2962df['root']['rootName']);_0x56412f['length']>0x0&&_0x552251['setSelection'](_0x56412f);for(const _0xbdb983 of _0x37f669)_0xbdb983['detach']();});};}['_getCoordsForCells'](_0x1a3804){const _0x5bfb33=this['editor']['plugins']['get']('TableUtils');let _0x3e3dca=Number['MAX_SAFE_INTEGER'],_0x4e3085=Number['MIN_SAFE_INTEGER'],_0x30aa70=Number['MAX_SAFE_INTEGER'],_0xc96fdd=Number['MIN_SAFE_INTEGER'];for(const _0x427011 of _0x1a3804){if('$graveyard'==_0x427011['root']['rootName'])continue;const {row:_0x4b2e6e,column:_0x572703}=_0x5bfb33['getCellLocation'](_0x427011),_0xf65d75=_0x427011['hasAttribute']('rowspan')?_0x427011['getAttribute']('rowspan')-0x1:0x0,_0x211be6=_0x427011['hasAttribute']('colspan')?_0x427011['getAttribute']('colspan')-0x1:0x0;_0x3e3dca=_0x4b2e6e<_0x3e3dca?_0x4b2e6e:_0x3e3dca,_0x4e3085=_0x4b2e6e+_0xf65d75>_0x4e3085?_0x4b2e6e+_0xf65d75:_0x4e3085,_0x30aa70=_0x572703<_0x30aa70?_0x572703:_0x30aa70,_0xc96fdd=_0x572703+_0x211be6>_0xc96fdd?_0x572703+_0x211be6:_0xc96fdd;}return{'minRow':_0x3e3dca,'maxRow':_0x4e3085,'minColumn':_0x30aa70,'maxColumn':_0xc96fdd};}['_setupColumnsRowsFixing'](){const _0x1d9c43=this['editor'],_0x422329=_0x1d9c43['plugins']['get']('TrackChangesEditing'),_0x1ec8dd=_0x1d9c43['plugins']['get']('TableUtils');_0x1d9c43['model']['document']['on']('change:data',()=>{const _0x48c6e6=Array['from'](_0x1d9c43['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23dc25,data:_0x2f36af}of _0x48c6e6){const {group:_0x4b5f08,id:_0x55159f,subType:_0x471253}=_0x422329['_splitMarkerName'](_0x23dc25);if('suggestion'!=_0x4b5f08)continue;if(null!=_0x2f36af['oldRange'])continue;const _0x3c2b77=_0x422329['getSuggestion'](_0x55159f);this['_tablePostFixingSubtypes']['includes'](_0x471253)&&this['_tableSuggestions']['add'](_0x3c2b77);}},{'priority':'low'});const _0x550464=(_0x205df7,_0x4441d8)=>{let _0x827141=!0x1;const _0x233887=_0x4441d8['createRangeOn'](_0x205df7),_0x2e77aa=_0x205df7['findAncestor']('table'),_0x91d1c5=_0x1ec8dd['getCellLocation'](_0x205df7);for(const _0x4705c1 of this['_tableSuggestions']){const _0x120b90=_0x4705c1['subType'],_0x1e5d65=_0x120b90['startsWith']('tablePaste'),_0x1bd15d=_0x120b90['substr'](_0x1e5d65?0xa:0x5),_0x5ccc82=_0x1bd15d['toLowerCase'](),_0x51fb3d=_0x5ccc82['substr'](0x0,0x3)+'span',_0x2c632d='min'+_0x1bd15d,_0x269311='max'+_0x1bd15d;if(!_0x4705c1['isInContent'])continue;if(_0x2e77aa!=_0x4705c1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4705c1['isIntersectingWithRange'](_0x233887))continue;const _0x278356=_0x205df7['hasAttribute'](_0x51fb3d)?_0x205df7['getAttribute'](_0x51fb3d)-0x1:0x0,_0x53c460=this['_getSuggestionCoords'](_0x4705c1),_0x9756c6=_0x53c460[_0x2c632d],_0x5c032d=_0x53c460[_0x269311];_0x9756c6<=_0x91d1c5[_0x5ccc82]&&_0x91d1c5[_0x5ccc82]+_0x278356<=_0x5c032d&&(_0x4705c1['addRange'](_0x233887),_0x827141=!0x0);}return _0x827141;};_0x1d9c43['model']['document']['registerPostFixer'](_0x5ed429=>{let _0x6f522f=!0x1;for(const _0x1ef015 of _0x1d9c43['model']['document']['differ']['getChanges']())if('insert'==_0x1ef015['type']){if('tableRow'==_0x1ef015['name']){for(const _0x5ca99b of _0x1ef015['position']['nodeAfter']['getChildren']())_0x6f522f=_0x6f522f||_0x550464(_0x5ca99b,_0x5ed429);}else'tableCell'==_0x1ef015['name']&&(_0x6f522f=_0x6f522f||_0x550464(_0x1ef015['position']['nodeAfter'],_0x5ed429));}return _0x6f522f;});}['_getSuggestionCoords'](_0x4dd8f7){return this['_getCoordsForCells'](_0x4dd8f7['getRanges']()['map'](_0x552ca7=>_0x552ca7['start']['nodeAfter']));}}function Ee(_0x43b4e9){return Array['from'](new Set(_0x43b4e9)['values']());}class St extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0x217a3c=this['editor'],_0x59cacb=_0x217a3c['model']['document']['selection'],_0x31fba5=_0x217a3c['locale'];if(!_0x217a3c['plugins']['has']('TableEditing'))return;const _0x51cff0=_0x217a3c['plugins']['get']('TrackChangesEditing'),_0x3e2d21=_0x217a3c['plugins']['get']('TableUtils'),_0x26f315=_0x217a3c['plugins']['get'](jt);_0x26f315['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x51cff0['enableCommand']('mergeTableCells',()=>{const _0x3ed389=_0x3e2d21['getSelectionAffectedTableCells'](_0x217a3c['model']['document']['selection']);_0x217a3c['model']['change'](()=>{_0x51cff0['markMultiRangeBlockFormat'](_0x3ed389,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x217a3c['commands']['get']('mergeTableCells')['on']('execute',(_0xee4b6e,_0x443036)=>{_0x217a3c['commands']['get']('trackChanges')['value']&&(_0x443036['length']>0x0&&_0x443036[_0x443036['length']-0x1]&&_0x443036[_0x443036['length']-0x1]['forceDefaultExecution']||_0x51cff0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xee4b6e['stop']());},{'priority':'highest'});for(const _0x5a200a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1c886d=_0x217a3c['commands']['get'](_0x5a200a);_0x51cff0['enableCommand'](_0x5a200a,()=>{const _0x5217b8=_0x217a3c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x51c849=>_0x51c849['is']('element','tableCell')),_0x22f161=_0x1c886d['value'];_0x217a3c['model']['change'](()=>{_0x51cff0['markMultiRangeBlockFormat']([_0x5217b8,_0x22f161],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x571a39 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x36a30d=_0x217a3c['commands']['get'](_0x571a39);_0x51cff0['enableCommand'](_0x571a39,()=>{const _0x2481fe=_0x3e2d21['getSelectionAffectedTableCells'](_0x217a3c['model']['document']['selection'])[0x0],_0x2d7c60=_0x2481fe['findAncestor']('table'),{column:_0x3e5c75,row:_0x2d58bf}=_0x3e2d21['getCellLocation'](_0x2481fe);let _0x52959f=[];if('horizontally'==_0x36a30d['direction']){const _0x4f6ade=_0x3e2d21['createTableWalker'](_0x2d7c60,{'startRow':_0x2d58bf,'endRow':_0x2d58bf,'includeAllSlots':!0x0});_0x52959f=Array['from'](_0x4f6ade)['map'](_0x5adcee=>_0x5adcee['cell']);}else{const _0x318ce1=_0x3e2d21['createTableWalker'](_0x2d7c60,{'column':_0x3e5c75,'includeAllSlots':!0x0});_0x52959f=Array['from'](_0x318ce1)['map'](_0x11438f=>_0x11438f['cell']);}_0x217a3c['model']['change'](_0xf385e2=>{_0x51cff0['markBlockFormat'](_0xf385e2['createRangeOn'](_0x2481fe),{'commandName':_0x571a39,'commandParams':[]},_0x52959f,_0x571a39);});});}_0x51cff0['descriptionFactory']['registerDescriptionCallback'](_0x4d2d91=>{if('formatBlock'!=_0x4d2d91['type']&&'formatInline'!=_0x4d2d91['type'])return;const {data:_0xe9f38b}=_0x4d2d91;return _0xe9f38b&&'mergeTableCells'==_0xe9f38b['commandName']?{'type':'format','content':o(_0x31fba5,'*Merge\x20cells*')}:void 0x0;}),_0x51cff0['descriptionFactory']['registerDescriptionCallback'](_0x533523=>{if('formatBlock'!=_0x533523['type']&&'formatInline'!=_0x533523['type'])return;const {data:_0x52d697}=_0x533523;return _0x52d697?'splitTableCellVertically'==_0x52d697['commandName']?{'type':'format','content':o(_0x31fba5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x52d697['commandName']?{'type':'format','content':o(_0x31fba5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x271f03=_0x26f315['_acceptFormatSuggestionCallbackFactory']();for(const _0x208fe1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x51cff0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x208fe1,'accept',_0x271f03);for(const _0x45804b of['splitTableCellVertically','splitTableCellHorizontally'])_0x51cff0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45804b,'accept',_0x271f03);_0x51cff0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2cb56e=>{_0x217a3c['model']['change'](_0x23735c=>{const _0x4de479=Array['from'](_0x59cacb['getRanges']())['map'](_0x24bd49=>_0x216747['fromRange'](_0x24bd49));_0x23735c['setSelection'](_0x2cb56e),_0x217a3c['commands']['get']('mergeTableCells')['refresh'](),_0x217a3c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x51f28d=_0x4de479['filter'](_0x20dcfc=>'$graveyard'!=_0x20dcfc['root']['rootName']);_0x51f28d['length']>0x0&&_0x23735c['setSelection'](_0x51f28d);for(const _0x16a144 of _0x4de479)_0x16a144['detach']();});});for(const _0x4334be of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xb5c95b=_0x217a3c['commands']['get'](_0x4334be);_0xb5c95b['on']('set:isEnabled',(_0x5465c3,_0x333ed1,_0x472b46)=>{if(_0x472b46){const _0x101b09=_0x217a3c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe86730=>_0xe86730['is']('element','tableCell'));this['_areMergableCells'](_0xb5c95b['value'],_0x101b09)||(_0x5465c3['return']=!0x1,_0x5465c3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x22cf39=this['editor']['commands']['get']('mergeTableCells'),_0x9e5f82=this['editor']['plugins']['get']('TableUtils');if(!_0x22cf39['isEnabled'])return!0x1;const _0x426324=_0x9e5f82['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a9874 of _0x426324)for(const _0x1c6202 of _0x426324)if(_0x5a9874!=_0x1c6202&&!this['_areMergableCells'](_0x5a9874,_0x1c6202))return!0x1;return!0x0;}['_areMergableCells'](_0x2146b1,_0x51f393){const _0x38457d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x695e4c=this['editor']['model']['createRangeOn'](_0x2146b1),_0x35dcdf=this['editor']['model']['createRangeOn'](_0x51f393),_0x2d1ffd=new Set(),_0x431de1=new Set();for(const _0x5b9528 of _0x38457d['getSuggestions']())if(('insertion'==_0x5b9528['type']||'deletion'==_0x5b9528['type']||'mergeTableCells'==_0x5b9528['subType'])&&_0x5b9528['isInContent']){for(const _0x11489b of _0x5b9528['getRanges']())_0x11489b['containsRange'](_0x695e4c,!0x0)&&_0x2d1ffd['add'](_0x5b9528['type']+':'+_0x5b9528['author']['id']),_0x11489b['containsRange'](_0x35dcdf,!0x0)&&_0x431de1['add'](_0x5b9528['type']+':'+_0x5b9528['author']['id']);}if(_0x2d1ffd['size']!=_0x431de1['size'])return!0x1;for(const _0x54d0b2 of _0x2d1ffd)if(!_0x431de1['has'](_0x54d0b2))return!0x1;return!0x0;}}class At extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0xc00cb1=this['editor'];if(!_0xc00cb1['plugins']['has']('TableEditing'))return;const _0x42043d=_0xc00cb1['locale'],_0x4864ad=_0xc00cb1['plugins']['get']('TrackChangesEditing');_0x4864ad['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4864ad['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4864ad['registerBlockAttribute']('headingRows'),_0x4864ad['registerBlockAttribute']('headingColumns'),_0x4864ad['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x42043d,'FORMAT_HEADER_ROW')),_0x4864ad['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x42043d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8dc761=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfe926e=this['editor']['plugins']['get']('TableUtils'),_0xb5fc4d=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x13c905({showActiveMarker:_0x4cb047=!0x0,setDataAttribute:_0x146c61=!0x0}={}){return(_0x415aba,_0x2d5aca,_0x5de747)=>{const {type:_0xfafb9a,id:_0x452d93}=_0x8dc761['_splitMarkerName'](_0x2d5aca['markerName']),_0x3f157e=_0x8dc761['getSuggestion'](_0x452d93),_0x104abb=_0x3f157e['data'];if('formatBlock'!=_0x3f157e['type']||!_0x104abb||'setTableColumnHeader'!=_0x104abb['commandName'])return;if(_0x2d5aca['item'])return void _0x415aba['stop']();if(!_0x5de747['consumable']['consume'](_0x2d5aca['markerRange'],_0x415aba['name']))return;const _0x4b657c=_0x2d5aca['markerRange']['start']['nodeAfter'],_0x4a4056=_0x2d5aca['markerRange']['end']['nodeBefore'],_0x3eda8b=_0x4b657c['parent']['parent'],{column:_0x376afa}=_0xfe926e['getCellLocation'](_0x4b657c),{column:_0x28e6dc}=_0xfe926e['getCellLocation'](_0x4a4056);for(let _0xcf3ab5=_0x376afa;_0xcf3ab5<=_0x28e6dc;_0xcf3ab5++){const _0x5db4e6=_0xfe926e['createTableWalker'](_0x3eda8b,{'column':_0xcf3ab5,'includeAllSlots':!0x1});for(const _0x20b0cc of _0x5db4e6){const _0x541e5e=_0x20b0cc['cell'],_0x834321=_0x5de747['mapper']['toViewElement'](_0x541e5e);_0x5de747['writer']['addClass']('ck-suggestion-marker-'+_0xfafb9a,_0x834321),_0x146c61&&_0x5de747['writer']['setAttribute']('data-suggestion',_0x452d93,_0x834321),_0x5de747['mapper']['bindElementToMarker'](_0x834321,_0x2d5aca['markerName']),_0x4cb047&&(_0x8dc761['activeMarkers']['includes'](_0x2d5aca['markerName'])?_0x5de747['writer']['addClass']('ck-suggestion-marker--active',_0x834321):_0x5de747['writer']['removeClass']('ck-suggestion-marker--active',_0x834321));}}};}_0x8dc761['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xb5fc4d),_0x8dc761['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xb5fc4d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x13c905(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d1f2f,_0x1fb4c1,_0x250fa4)=>{_0x250fa4['options']['showSuggestionHighlights']&&_0x13c905({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5d1f2f,_0x1fb4c1,_0x250fa4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x206803,_0x56f6ea,_0x1c546f)=>{const {type:_0xeb7fd3,id:_0x26b262}=_0x8dc761['_splitMarkerName'](_0x56f6ea['markerName']),_0x5e9018=_0x8dc761['getSuggestion'](_0x26b262),_0x2a60ef=_0x5e9018['data'];if('formatBlock'!=_0x5e9018['type']||!_0x2a60ef||'setTableColumnHeader'!=_0x2a60ef['commandName'])return;const _0x1397b8=_0x1c546f['mapper']['markerNameToElements'](_0x56f6ea['markerName']);if(_0x1397b8){for(const _0x3cb0b3 of _0x1397b8)_0x1c546f['writer']['removeClass']('ck-suggestion-marker-'+_0xeb7fd3,_0x3cb0b3),_0x1c546f['writer']['removeClass']('ck-suggestion-marker--active',_0x3cb0b3),_0x1c546f['writer']['removeAttribute']('data-suggestion',_0x3cb0b3),_0x1c546f['mapper']['unbindElementFromMarkerName'](_0x3cb0b3,_0x56f6ea['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf499d0=this['editor'],_0x2b81b1=_0xf499d0['locale'];function _0x47fcbe(_0x538a66){return{'type':'format','content':o(_0x2b81b1,'*Format:*\x20%0',_0x538a66)};}_0xf499d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ea4c4=>{if('formatBlock'!=_0x5ea4c4['type'])return;const {data:_0x5ae83c}=_0x5ea4c4;if(_0x5ae83c){if('setTableRowHeader'==_0x5ae83c['commandName']){const _0x497369=_0x5ae83c['commandParams'][0x0]['forceValue'];return _0x47fcbe(o(_0x2b81b1,_0x497369?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ae83c['commandName']){const _0x34f9c5=_0x5ae83c['commandParams'][0x0]['forceValue'];return _0x47fcbe(o(_0x2b81b1,_0x34f9c5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x330e64=>[_0x330e64,null]));class It extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0x50c080=this['editor'];if(!_0x50c080['plugins']['has']('TableClipboard'))return;const _0xc21638=_0x50c080['plugins']['get']('TrackChangesEditing'),_0x593905=_0x50c080['plugins']['get']('TableUtils'),_0x39328e=_0x50c080['plugins']['get'](jt),_0x512f06=_0x50c080['plugins']['get']('TableClipboard');_0x39328e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x50c080['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x50c080['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2fcfb5=null;_0x50c080['model']['on']('insertContent',(_0x2f32a7,_0x4d7e80)=>{const [_0x5f0198,_0x29b10a]=_0x4d7e80,_0x1fe568=_0x4d7e80[_0x4d7e80['length']-0x1];_0x1fe568&&_0x1fe568['forceDefaultExecution']||_0xc21638['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3b9f3b,_0x403184,_0x5952af,_0x4dc1ff,_0x2972fc){if(_0x403184&&!_0x403184['is']('documentSelection'))return!0x1;const _0x2fb604=_0x2972fc['getTableIfOnlyTableInContent'](_0x3b9f3b,_0x5952af);if(!_0x2fb604||!he(_0x2fb604,void 0x0,_0x4dc1ff))return!0x1;const _0x24e6d4=_0x4dc1ff['getSelectionAffectedTableCells'](_0x5952af['document']['selection']);if(!_0x24e6d4['length'])return!0x1;const _0x51f075=_0x24e6d4[0x0]['findAncestor']('table'),_0x3ca500=_0x4dc1ff['getRowIndexes'](_0x24e6d4),_0x1ca930=_0x4dc1ff['getColumnIndexes'](_0x24e6d4),_0x167817={'startRow':_0x3ca500['first'],'endRow':_0x3ca500['last'],'startColumn':_0x1ca930['first'],'endColumn':_0x1ca930['last']};return 0x1==_0x24e6d4['length']&&(_0x167817['endRow']+=_0x4dc1ff['getRows'](_0x2fb604)-0x1,_0x167817['endColumn']+=_0x4dc1ff['getColumns'](_0x2fb604)-0x1),he(_0x51f075,_0x167817,_0x4dc1ff);}(_0x5f0198,_0x29b10a,_0x50c080['model'],_0x593905,_0x512f06)&&(_0x2f32a7['stop'](),_0x2fcfb5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x50c080['model']['change'](()=>{_0x50c080['model']['insertContent'](_0x4d7e80[0x0],_0x4d7e80[0x1],_0x4d7e80[0x2],{'forceDefaultExecution':!0x0});const _0xaee6dd=_0xa3dac7(),{rowInsertionRanges:_0x288ce6,columnInsertionRanges:_0x27c601,insertionRanges:_0x54aaa5,deletionRanges:_0x30c7c9,cells:_0x276fe9}=_0x2fcfb5;_0x288ce6['length']&&_0xc21638['markMultiRangeInsertion'](_0x288ce6,'tablePasteRow',{'tablePasteChainId':_0xaee6dd}),_0x27c601['length']&&_0xc21638['markMultiRangeInsertion'](_0x27c601,'tablePasteColumn',{'tablePasteChainId':_0xaee6dd}),_0x54aaa5['length']&&(_0xc21638['markMultiRangeInsertion'](_0x54aaa5,'tablePaste',{'tablePasteChainId':_0xaee6dd,'skipNestingCheck':!0x0}),_0x54aaa5['forEach'](_0xd4dd37=>_0xd4dd37['detach']?.())),_0x30c7c9['length']&&(_0xc21638['markMultiRangeDeletion'](_0x30c7c9,'tablePaste',{'tablePasteChainId':_0xaee6dd,'skipNestingCheck':!0x0}),_0x30c7c9['forEach'](_0x4d4d12=>_0x4d4d12['detach']?.()));const _0x4badad=_0xc21638['markMultiRangeBlockFormat'](_0x276fe9['map'](({element:_0x528e0b})=>_0x528e0b),{'formatGroupId':_0xa3dac7()},[],'tablePasteCell',{'tablePasteChainId':_0xaee6dd});if(_0x4badad){const _0x12a032=_0x4badad['getMarkers'](),_0x4fd41c=[];for(const {element:_0x4cbd58,attributes:_0x46758a}of _0x276fe9){if(!_0x46758a)continue;const _0xa5220a=_0x50c080['model']['createRangeOn'](_0x4cbd58),_0x3ff2c4=_0x12a032['find'](_0xc97ed7=>_0xc97ed7['getRange']()['isEqual'](_0xa5220a));_0x3ff2c4&&_0x4fd41c['push']([_0x3ff2c4['name'],_0x46758a]);}_0x4fd41c['length']&&_0x4badad['setAttribute']('markerAttributes',Object['fromEntries'](_0x4fd41c));}_0x2fcfb5=null;}));},{'priority':_0x275526['high']+0xa}),_0x50c080['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5047dd,_0x5e72da)=>{const [_0x412af1,_0x50e921,,_0x1f2836]=_0x5e72da;if(!_0x2fcfb5)return;_0x5047dd['stop']();const _0x1b08b7=_0x412af1['cell'],_0x3e4d9a=_0x50e921,_0x2b3fdc=Pe(_0x1b08b7),_0x11ef4c=Pe(_0x3e4d9a);_0x5047dd['return']=_0x1b08b7;let _0x4fb922=null,_0x37a7ae=null;if(_0x11ef4c||_0x2b3fdc){if(_0x2b3fdc&&!_0x11ef4c){_0x1f2836['remove'](_0x1b08b7['getChild'](0x0));for(const _0x318971 of Array['from'](_0x3e4d9a['getChildren']()))_0x1f2836['insert'](_0x318971,_0x1b08b7,'end');const _0x48899=_0x2fcfb5['rowInsertionIndexes']['includes'](_0x412af1['row']),_0x1d261d=_0x2fcfb5['columnInsertionIndexes']['includes'](_0x412af1['column']);_0x48899||_0x1d261d||(_0x4fb922=_0x216747['fromRange'](_0x1f2836['createRangeIn'](_0x1b08b7)));}else _0x11ef4c&&!_0x2b3fdc&&(_0x37a7ae=_0x1f2836['createRangeIn'](_0x1b08b7));}else{const _0x15f6cf=_0x1f2836['createElement']('tableCellSuggestion'),_0x3fefc2=_0x1f2836['createElement']('tableCellSuggestion');_0x1f2836['wrap'](_0x1f2836['createRangeIn'](_0x1b08b7),_0x3fefc2),_0x1f2836['insert'](_0x15f6cf,_0x1b08b7,0x0);for(const _0xbe0f8d of Array['from'](_0x3e4d9a['getChildren']()))_0x1f2836['insert'](_0xbe0f8d,_0x15f6cf,'end');_0x4fb922=_0x216747['fromRange'](_0x1f2836['createRangeOn'](_0x15f6cf)),_0x37a7ae=_0x216747['fromRange'](_0x1f2836['createRangeOn'](_0x3fefc2));}const _0x734c05=Array['from'](_0x3e4d9a['getAttributes']())['filter'](([_0x180a0b])=>ge['includes'](_0x180a0b));_0x2fcfb5['cells']['push']({'element':_0x1b08b7,'attributes':_0x734c05['length']?Object['fromEntries'](_0x734c05):null}),_0x4fb922&&_0x2fcfb5['insertionRanges']['push'](_0x4fb922),_0x37a7ae&&_0x2fcfb5['deletionRanges']['push'](_0x37a7ae);},{'priority':'high'}),_0x593905['on']('insertColumns',(_0x1cc9ae,_0x26f981)=>{const [_0x23aece,_0x56b56d={}]=_0x26f981;if(!_0x2fcfb5)return;const _0x55955f=_0x56b56d['at']||0x0,_0x471918=_0x56b56d['columns']||0x1;_0x2fcfb5['columnInsertionIndexes']=new Array(_0x471918)['fill'](_0x55955f)['map']((_0x5954f0,_0x2c64a5)=>_0x5954f0+_0x2c64a5);for(const {cell:_0x3e426c}of _0x593905['createTableWalker'](_0x23aece,{'startColumn':_0x55955f,'endColumn':_0x55955f+_0x471918-0x1}))_0x2fcfb5['columnInsertionRanges']['push'](_0x50c080['model']['createRangeOn'](_0x3e426c));},{'priority':'low'}),_0x593905['on']('insertRows',(_0x192017,_0x190011)=>{const [_0x207670,_0x3fc105={}]=_0x190011;if(!_0x2fcfb5)return;const _0x42bd0e=_0x3fc105['at']||0x0,_0x4bd9b5=_0x3fc105['rows']||0x1;_0x2fcfb5['rowInsertionIndexes']=new Array(_0x4bd9b5)['fill'](_0x42bd0e)['map']((_0x4f4541,_0x4e346d)=>_0x4f4541+_0x4e346d);for(const {cell:_0x529bd0}of _0x593905['createTableWalker'](_0x207670,{'startRow':_0x42bd0e,'endRow':_0x42bd0e+_0x4bd9b5-0x1}))_0x2fcfb5['rowInsertionRanges']['push'](_0x50c080['model']['createRangeOn'](_0x529bd0));},{'priority':'low'}),_0xc21638['descriptionFactory']['registerDescriptionCallback'](_0x2a5630=>{if(_0x2a5630['subType']&&_0x2a5630['subType']['startsWith']('tablePaste'))return _0x2a5630['previous']?{}:{'type':'insertion','content':o(_0x50c080['locale'],'*Replace\x20table\x20cells*')};});const _0x1be976=()=>!0x1;for(const _0x5b4c21 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xc21638['_suggestionFactory']['registerCustomCallback']('insertion',_0x5b4c21,'join',_0x1be976),_0xc21638['_suggestionFactory']['registerCustomCallback']('deletion',_0x5b4c21,'join',_0x1be976),_0xc21638['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b4c21,'join',_0x1be976);_0xc21638['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1be976),_0xc21638['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x13071a,_0xa0473f,_0x3c4afe)=>{const _0xb7b308=_0x13071a['map'](_0x3ea58d=>_0x3ea58d['getContainedElement']())['filter'](_0x14f591=>_0x14f591),_0x43e7b3=new Map(_0xb7b308['map'](_0xfe4e7d=>[_0xfe4e7d,null]));if(_0x2fcfb5){for(const {element:_0x43d246,attributes:_0x2f6b0f}of _0x2fcfb5['cells'])_0x2f6b0f&&_0x43e7b3['set'](_0x43d246,_0x2f6b0f);}else{if(_0x3c4afe&&_0x3c4afe['markerAttributes'])for(const [_0x14bf75,_0x1b7fdf]of Object['entries'](_0x3c4afe['markerAttributes'])){const _0x13f345=_0x50c080['model']['markers']['get'](_0x14bf75),_0x21bea=_0x13f345?_0x13f345['getRange']()['getContainedElement']():null;_0x21bea&&_0x43e7b3['set'](_0x21bea,_0x1b7fdf);}}_0x50c080['model']['change'](_0xecb013=>{for(const [_0x4e2b0b,_0x6f9716]of _0x43e7b3)_0xecb013['setAttributes']({...Ce,..._0x6f9716},_0x4e2b0b);});});const _0x1da2b7=(_0x571345,_0x24eec5)=>{_0xc21638['_suggestionFactory']['registerCustomCallback'](_0x571345,'tablePaste',_0x24eec5,(_0x2c0a8c,_0x11c732,_0x155f18)=>{_0x50c080['model']['change'](_0x1b366d=>{const _0x3dd667=[];for(const _0x1985c5 of _0x2c0a8c){const _0x59d7e3=_0x1985c5['start']['nodeAfter'];_0x59d7e3['is']('element','tableCellSuggestion')&&_0x3dd667['push'](_0x59d7e3);}_0xc21638['_suggestionFactory']['getSuggestionCallback'](_0x571345,null,_0x24eec5)(_0x2c0a8c,_0x11c732,_0x155f18);for(const _0x44b272 of _0x3dd667)'$graveyard'!=_0x44b272['root']['rootName']&&_0x1b366d['unwrap'](_0x44b272);});});};_0x1da2b7('insertion','accept'),_0x1da2b7('insertion','discard'),_0x1da2b7('deletion','accept'),_0x1da2b7('deletion','discard'),_0xc21638['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x21ea9b=>{const _0x36e963=_0x21ea9b['map'](_0x5b07d3=>_0x5b07d3['getContainedElement']()),_0x26014e=_0x36e963[0x0]['findAncestor']('table'),{minRow:_0x49cbf9,maxRow:_0x3885e2}=_0x39328e['_getCoordsForCells'](_0x36e963);_0x593905['removeRows'](_0x26014e,{'at':_0x49cbf9,'rows':_0x3885e2-_0x49cbf9+0x1});}),_0xc21638['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x31e230=>{const _0x4f6205=_0x31e230['map'](_0x57cb58=>_0x57cb58['getContainedElement']()),_0x98f49=_0x4f6205[0x0]['findAncestor']('table'),{minColumn:_0x36c534,maxColumn:_0x147dba}=_0x39328e['_getCoordsForCells'](_0x4f6205);_0x593905['removeColumns'](_0x98f49,{'at':_0x36c534,'columns':_0x147dba-_0x36c534+0x1});});const _0x1bf492=(_0x1cdc57,_0xbbd656)=>{if(!_0xbbd656['subType']||!_0xbbd656['subType']['startsWith']('tablePaste'))return;const _0x271fb3=_0xbbd656['attributes']['tablePasteChainId'],_0xe944f7=_0xc21638['getSuggestions']()['filter'](_0x4ac973=>_0x4ac973['isInContent']&&_0x4ac973['attributes']&&_0x4ac973['attributes']['tablePasteChainId']==_0x271fb3);_0xe944f7['length']&&_0xbbd656['getAllAdjacentSuggestions']()['length']!=_0xe944f7['length']&&_0xe944f7['reduce']((_0x4e4615,_0x42c944)=>(_0x4e4615['next']=_0x42c944,_0x42c944['previous']=_0x4e4615,_0x42c944));};function _0x427e34(_0x38a575,_0x554966=!0x0){const {id:_0x18479e}=_0xc21638['_splitMarkerName'](_0x38a575['markerName']),_0x2a3a7f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x22060b=_0xc21638['activeMarkers']['includes'](_0x38a575['markerName']);return _0x22060b&&_0x2a3a7f['push']('ck-suggestion-marker--active'),{'classes':_0x2a3a7f,'attributes':{'data-suggestion':_0x18479e},'priority':_0x22060b&&_0x554966?0xbc2:0xbb8};}_0xc21638['on']('suggestionLoaded',_0x1bf492,{'priority':'high'}),_0xc21638['on']('suggestionUnloaded',_0x1bf492,{'priority':'high'}),_0x50c080['model']['document']['registerPostFixer'](()=>{let _0x5d5735=!0x1;const _0x239994=Array['from'](_0x50c080['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc08053,data:_0x20bda6}of _0x239994){const {group:_0x23642d,type:_0x43f18d,id:_0x5ba590}=_0xc21638['_splitMarkerName'](_0xc08053);if('suggestion'!=_0x23642d||'deletion'!=_0x43f18d||_0x20bda6['oldRange'])continue;if(!_0xc21638['hasSuggestion'](_0x5ba590))continue;const _0x2bb1e6=_0xc21638['getSuggestion'](_0x5ba590)['getRanges'](),_0x55695f=_0x50c080['plugins']['get']('Users')['me'];for(const _0x507437 of _0xc21638['getSuggestions']()){if(!_0x507437['isInContent']||_0x507437['author']!=_0x55695f)continue;if('formatBlock'!=_0x507437['type']||'tablePasteCell'!=_0x507437['subType'])continue;if(_0x507437['getRanges']()['every'](_0x76e2ef=>_0x2bb1e6['some'](_0x34a335=>_0x34a335['containsRange'](_0x76e2ef,!0x0)))){for(const _0xe5f207 of _0x507437['getAllAdjacentSuggestions']())_0xe5f207['isInContent']&&(_0xe5f207['discard'](),_0x5d5735=!0x0);}}}return _0x5d5735;}),_0x50c080['model']['document']['registerPostFixer'](_0x1a5660=>{const _0x5a30fd=_0x50c080['commands']['get']('redo');if(!_0x5a30fd||!_0x5a30fd['_createdBatches']['has'](_0x1a5660['batch']))return!0x1;let _0xfc97c0=!0x1;const _0x5cb99c=_0x50c080['plugins']['get']('Users')['me'],_0x1112a2=_0x50c080['model']['document']['differ']['getChanges'](),_0x1191c1=Array['from'](_0x50c080['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ab6e4,data:_0xf40ad0})=>{const {group:_0x50d3d3,subType:_0x3fd904,authorId:_0x5a6995}=_0xc21638['_splitMarkerName'](_0x1ab6e4);return'suggestion'==_0x50d3d3&&'tablePaste'==_0x3fd904&&_0x5a6995==_0x5cb99c['id']&&!_0xf40ad0['oldRange'];});for(const _0x2fe049 of _0x1112a2){if('insert'!=_0x2fe049['type']||'tableCellSuggestion'!=_0x2fe049['name']||0x1!=_0x2fe049['length'])continue;const _0x567304=_0x1a5660['createRange'](_0x2fe049['position'],_0x2fe049['position']['getShiftedBy'](0x1));if(!_0x1191c1['find'](({data:_0x23ce27})=>_0x23ce27['newRange']['isEqual'](_0x567304))){for(const {name:_0x2a9ef0,data:_0x568370}of _0x1191c1)if(_0x567304['containsRange'](_0x568370['newRange'])){_0x1a5660['updateMarker'](_0x2a9ef0,{'range':_0x567304}),_0xfc97c0=!0x0;break;}}}return _0xfc97c0;}),_0x50c080['model']['document']['registerPostFixer'](_0x37d9d6=>{let _0x382593=!0x1;const _0x1935b3=_0x50c080['plugins']['get']('Users')['me'],_0x53fa43=_0xc21638['getSuggestions']()['filter'](_0x12737a=>_0x12737a['isInContent']&&_0x12737a['author']==_0x1935b3),_0x32b73c=new Set(),_0x4a07cb=new Set();for(const _0x4f9650 of _0x53fa43)if('tablePaste'==_0x4f9650['subType'])for(const _0x4cb320 of _0x4f9650['getMarkers']()){const _0x287648=_0x4cb320['getRange']()['getContainedElement']();if(_0x287648){if(_0x287648['is']('element','tableCellSuggestion')&&Pe(_0x287648)){_0x4f9650['removeMarker'](_0x4cb320['name']),_0x32b73c['add'](_0x287648),_0x382593=!0x0;const _0x2238bb=_0x287648['nextSibling'],_0x1004d7=_0x287648['previousSibling'],_0xdad224=_0x2238bb&&_0x2238bb['is']('element','tableCellSuggestion'),_0x1cd629=_0x1004d7&&_0x1004d7['is']('element','tableCellSuggestion');_0xdad224&&!_0x32b73c['has'](_0x2238bb)&&_0x4a07cb['add'](_0x2238bb),_0x1cd629&&!_0x32b73c['has'](_0x1004d7)&&_0x4a07cb['add'](_0x1004d7);}else _0x287648['is']('element','paragraph')&&_0x287648['isEmpty']&&(_0x4f9650['removeMarker'](_0x4cb320['name']),_0x382593=!0x0);}}else{if('tablePasteCell'==_0x4f9650['subType']){if(!_0x4f9650['attributes']||!_0x4f9650['attributes']['tablePasteChainId'])continue;const _0x320072=_0x4f9650['attributes']['markerAttributes'];if(_0x320072&&Object['keys'](_0x320072)['length'])continue;const _0x3e2011=_0x4f9650['attributes']['tablePasteChainId'];let _0xfc7ea2=!0x0,_0x1af069=!0x0;for(const _0x3e20e6 of _0x53fa43)if(_0x3e20e6['subType']&&_0x3e20e6['subType']['startsWith']('tablePaste')){if(!_0x3e20e6['attributes']['tablePasteChainId']){_0x1af069=!0x1;break;}if(_0x3e20e6['id']!=_0x4f9650['id']&&_0x3e20e6['attributes']['tablePasteChainId']==_0x3e2011){_0xfc7ea2=!0x1;break;}}_0x1af069&&_0xfc7ea2&&(_0x4f9650['removeMarkers'](),_0x382593=!0x0);}}for(const _0x2b9416 of _0x32b73c)_0x37d9d6['remove'](_0x2b9416);for(const _0xb03e75 of _0x4a07cb)_0x37d9d6['unwrap'](_0xb03e75);return _0x382593;}),_0x50c080['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x203cb1,_0x21eedb)=>_0x427e34(_0x203cb1),'converterPriority':'high'}),_0x50c080['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x22488c,_0x379782)=>_0x379782['options']['showSuggestionHighlights']?_0x427e34(_0x22488c,!0x1):null,'converterPriority':'high'});const _0x18bab7=_0x50c080['editing']['view'];this['listenTo'](_0x18bab7['document'],'clipboardOutput',(_0x1516d8,_0x4a4810)=>{const _0x35a157=[];for(const _0x3d024e of _0x18bab7['createRangeIn'](_0x4a4810['content'])['getItems']())_0x3d024e['is']('element','suggestion-td')&&_0x35a157['push'](_0x3d024e);_0x18bab7['change'](_0x251a83=>{for(const _0x3fe846 of _0x35a157)_0x251a83['move'](_0x251a83['createRangeIn'](_0x3fe846),_0x251a83['createPositionBefore'](_0x3fe846)),_0x251a83['remove'](_0x3fe846);});});}}function Pe(_0x11ac4d){if(_0x11ac4d['isEmpty'])return!0x0;const _0x497804=_0x11ac4d['getChild'](0x0);return _0x497804['is']('element','paragraph')&&_0x497804['isEmpty'];}function he(_0x535f2e,_0x18cb14={},_0x46dcee){for(const {isAnchor:_0x2327ff,cellHeight:_0x303c5e,cellWidth:_0xaf6da8}of _0x46dcee['createTableWalker'](_0x535f2e,{'includeAllSlots':!0x0,..._0x18cb14}))if(!_0x2327ff||0x1!=_0x303c5e||0x1!=_0xaf6da8)return!0x1;return!0x0;}class vt extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x473832=this['editor']['plugins']['get']('TrackChangesEditing');_0x473832['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x473832['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x473832['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x473832['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x473832['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x473832['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f6233,_0x5b8859){const _0x19e42e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cedfe=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4dbe01=_0x5b8859['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xeee6dc=_0x1cedfe['getColumnGroupElement'](_0x4dbe01);let _0x3256f5=_0xeee6dc?_0x1cedfe['getTableColumnsWidths'](_0xeee6dc):null,_0x5ebe77=_0x4dbe01['getAttribute']('tableWidth')||null;const _0x1f0760=_0x5b8859['tableWidth']||_0x5ebe77,_0x4bd3d4=_0x5b8859['columnWidths']||_0x3256f5,_0x1aa469=this['editor']['plugins']['get']('Users')['me'];for(const _0x3cc61e of _0x19e42e['getSuggestions']()){const _0xdd5aed=_0x3cc61e['getContainedElement']();if('resizeTable'===_0x3cc61e['subType']&&_0xdd5aed===_0x4dbe01){_0x3cc61e['author']!==_0x1aa469&&_0x3cc61e['discard']();const _0x224713=_0x3cc61e['data']['commandParams'];_0x5ebe77=_0x224713[0x0]['tableWidth'],_0x3256f5=_0x224713[0x0]['columnWidths'];break;}}_0x2f6233({'table':_0x4dbe01,'tableWidth':_0x1f0760,'columnWidths':_0x4bd3d4}),_0x19e42e['markBlockFormat'](_0x4dbe01,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5ebe77,'columnWidths':_0x3256f5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x572e5d){if('formatBlock'!=_0x572e5d['type']&&'formatInline'!=_0x572e5d['type'])return;const {data:_0x5f18b4}=_0x572e5d;if(_0x5f18b4&&'resizeTable'===_0x5f18b4['formatGroupId']){const _0x18bb46='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x18bb46)};}}}class Ct extends _0x54db38{['afterInit'](){const _0xa26451=this['editor'];_0xa26451['plugins']['has']('Template')&&_0xa26451['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x54db38{['afterInit'](){const _0x4e5005=this['editor'];if(!_0x4e5005['commands']['get']('insertTableOfContents'))return;_0x4e5005['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4e32f7=_0x4e5005['plugins']['get']('TrackChangesEditing'),_0x10bde8=_0x4e5005['locale'];_0x4e32f7['descriptionFactory']['registerElementLabel']('tableOfContents',_0xa42242=>o(_0x10bde8,'ELEMENT_TABLE_OF_CONTENTS',_0xa42242));}}class Dt extends _0x54db38{['afterInit'](){const _0xbe2d8e=this['editor'];if(!_0xbe2d8e['plugins']['has']('Title'))return;const _0x3928da=_0xbe2d8e['plugins']['get']('TrackChangesEditing');_0x3928da['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xbe2d8e['locale'],'ELEMENT_TITLE')),_0xbe2d8e['model']['document']['registerPostFixer'](_0x20110b=>{let _0x2539cc=!0x1;const _0x59f8f1=Array['from'](_0xbe2d8e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58cc7e,data:_0x5e80d8}of _0x59f8f1){const {group:_0x1554e2}=_0x3928da['_splitMarkerName'](_0x58cc7e);if('suggestion'!==_0x1554e2||!_0x5e80d8['newRange'])continue;const _0x52c9f9=_0x5e80d8['newRange'],_0x2bcff5=_0x52c9f9['end']['nodeBefore'];if(!_0x2bcff5||!_0x2bcff5['is']('element','title-content'))continue;if(!_0x52c9f9['start']['isTouching'](_0x52c9f9['end']))continue;const _0x1f564f=_0xbe2d8e['model']['schema']['getNearestSelectionRange'](_0x52c9f9['end'],'forward');if(_0x1f564f&&_0x1f564f['isCollapsed']){const _0x39e124=_0x20110b['createRange'](_0x52c9f9['start'],_0x1f564f['start']);_0x39e124['isEqual'](_0x52c9f9)||(_0x20110b['updateMarker'](_0x58cc7e,{'range':_0x39e124}),_0x2539cc=!0x0);}_0x2539cc||(_0x20110b['removeMarker'](_0x58cc7e),_0x2539cc=!0x0);}return _0x2539cc;});}}class Nt extends _0x54db38{['afterInit'](){const _0x2bb460=this['editor'],_0x1c7ff1=_0x2bb460['plugins']['get']('TrackChangesEditing');_0x2bb460['plugins']['has']('UndoEditing')&&(_0x1c7ff1['enableCommand']('undo'),_0x1c7ff1['enableCommand']('redo'));}}class Mt extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0x50c3ae=this['editor'];if(!_0x50c3ae['plugins']['has']('TableCaptionEditing'))return;_0x50c3ae['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x54db38{['tableProperties'];['tableCellProperties'];constructor(_0x161013){super(_0x161013),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 _0x3ad012=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2bae25 of this['tableProperties'])_0x3ad012['enableCommand'](_0x2bae25,(_0x12a2dd,_0x126590)=>{const _0x67a83e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2bae25,[_0x67a83e],this['tableProperties'],'tableProperties',_0x12a2dd,_0x126590);});_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ad012['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2cd8c6,_0x410eff)=>this['handleDiscardAction'](this['tableProperties'],_0x2cd8c6,_0x410eff)),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x30cad9 of this['tableCellProperties'])_0x3ad012['enableCommand'](_0x30cad9,(_0xf42f9b,_0x4d887c)=>{const _0x34a327=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x30cad9,_0x34a327,this['tableCellProperties'],'tableCellProperties',_0xf42f9b,_0x4d887c);});_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ad012['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x343dfd,_0x49f288)=>this['handleDiscardAction'](this['tableCellProperties'],_0x343dfd,_0x49f288)),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3ad012['descriptionFactory']['registerDescriptionCallback'](_0x406636=>this['handleSuggestionDescription'](_0x406636));}['_handlePropertyChange'](_0x82009b,_0x5448cd,_0x3da487,_0x695113,_0x17b006,_0x5a154d){const _0x140874=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5a154d['batch'],()=>{for(const _0x1b655b of _0x5448cd){if(this['_getSuggestion'](_0x1b655b,_0x695113))_0x17b006(_0x5a154d);else{const _0x2ff7c9={};for(const _0x5990b9 of _0x3da487){const _0x6b6a1=_0x1b655b['getAttribute'](_0x5990b9);void 0x0!==_0x6b6a1&&(_0x2ff7c9[_0x5990b9]=_0x6b6a1);}_0x17b006(_0x5a154d),_0x140874['markBlockFormat'](_0x1b655b,{'commandParams':[_0x2ff7c9]},[],_0x695113);}}});}['handleDiscardAction'](_0x4ca5d2,_0xd94295,_0x400fc7){const _0x3c460f=_0xd94295[0x0]['start']['nodeAfter'],_0x4967fb=_0x400fc7['commandParams'][0x0];this['editor']['model']['change'](_0x475980=>{for(const _0x4cb976 of _0x4ca5d2)void 0x0!==_0x4967fb[_0x4cb976]?_0x475980['setAttribute'](_0x4cb976,_0x4967fb[_0x4cb976],_0x3c460f):_0x475980['removeAttribute'](_0x4cb976,_0x3c460f);});}['handleSuggestionDescription'](_0x2628f3){if(_0x2628f3['data'])switch(_0x2628f3['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'](_0x49478e,_0x2ba886){const _0xf4045a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x27b30f of _0xf4045a['getSuggestions']({'skipNotAttached':!0x0})){const _0x5291ee=_0x27b30f['getContainedElement']();if(_0x27b30f['subType']===_0x2ba886&&_0x5291ee===_0x49478e)return _0x27b30f;}return null;}}const m='$elementName';class p extends _0x54db38{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1d3df5,_0x59e33d,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(_0x5d7d88){function _0x3a9167(_0x401373){return _0x401373['map'](_0x5467d7=>String['fromCharCode'](_0x5467d7))['join']('');}super(_0x5d7d88),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x24290c,_0x3a7e4c,_0x33b720,_0x13bb49)=>{this['_model']['change'](()=>{for(const _0x243fd5 of[..._0x13bb49,..._0x33b720])this['_model']['markers']['has'](_0x243fd5)&&_0x5d7d88['editing']['reconvertMarker'](_0x243fd5);});}),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']=_0x5d7d88['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(),_0x5d7d88['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5d7d88['config']['get']('trackChanges.trackFormatChanges'),_0x5d7d88['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5d7d88['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5d7d88,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3a9167([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3a9167([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x34]);}['init'](){const _0x16dcaa=this['editor'],_0x578a4b=(_0x18d27f,_0x268a7e)=>{if('attribute'!=_0x18d27f)return'ck-suggestion-marker-'+_0x18d27f;const _0x1273d3=_0x268a7e['split']('|')[0x0];return this['_isBlockAttribute'](_0x1273d3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x16dcaa['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1fc531=>{const {id:_0x13b3ba,type:_0x4c029,subType:_0x348627}=this['_splitMarkerName'](_0x1fc531['markerName']),_0xaa1690=['ck-suggestion-marker',_0x578a4b(_0x4c029,_0x348627)];let _0x4fb19d=0xbb8;return this['activeMarkers']['includes'](_0x1fc531['markerName'])&&(_0xaa1690['push']('ck-suggestion-marker--active'),_0x4fb19d=0xbc2),'deletion'==_0x4c029&&(_0x4fb19d+=0x5),{'classes':_0xaa1690,'attributes':{'data-suggestion':_0x13b3ba},'priority':_0x4fb19d};}}),_0x16dcaa['conversion']['for']('dataDowncast')['add'](_0xcc03c9=>{_0xcc03c9['on']('addMarker:suggestion',(_0x49c833,_0x423d2b,_0x3ae9d1)=>{if(!_0x3ae9d1['options']['showSuggestionHighlights'])return;const _0x483ce5=_0x423d2b['item'];if(!_0x483ce5)return;const _0x2dac74=_0x3ae9d1['mapper']['toViewElement'](_0x483ce5);_0x16dcaa['model']['schema']['isObject'](_0x483ce5)&&_0x2dac74&&!_0x2dac74['getCustomProperty']('widget')&&_0x2dac74['is']('containerElement')&&_0x22e04a(_0x2dac74,_0x3ae9d1['writer']);},{'priority':'high'});}),_0x16dcaa['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4fe5c2,_0xe0f719)=>{if(!_0xe0f719['options']['showSuggestionHighlights'])return null;const {type:_0x23bdda,subType:_0x439b28}=this['_splitMarkerName'](_0x4fe5c2['markerName']);return{'classes':['ck-suggestion-marker',_0x578a4b(_0x23bdda,_0x439b28)],'priority':0xbb8};}});const _0x430e7a=({showActiveMarkers:_0x23ee8d=!0x0,isAttributeSuggestion:_0x32a2e1=!0x1}={})=>(_0xb5ed38,_0x1cc913,_0x12dc07)=>{if(!_0x1cc913['item'])return;const {id:_0x51d86e}=this['_splitMarkerName'](_0x1cc913['markerName']);if(_0x32a2e1){const _0x1f3091=this['_suggestions']['get'](_0x51d86e),_0xd94b88=this['_getAttributeKey'](_0x1f3091);if(!this['_isBlockAttribute'](_0xd94b88))return;}if(_0x1cc913['item']['is']('selection'))return void _0x12dc07['consumable']['consume'](_0x1cc913['item'],_0xb5ed38['name']);const _0x546024=_0x12dc07['mapper']['toViewElement'](_0x1cc913['item']);if(_0x1cc913['item']['is']('element')&&_0x16dcaa['model']['schema']['isBlock'](_0x1cc913['item'])&&!_0x546024['getCustomProperty']('addHighlight')){_0x12dc07['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x546024),_0x12dc07['writer']['setAttribute']('data-suggestion',_0x51d86e,_0x546024),_0x12dc07['mapper']['bindElementToMarker'](_0x546024,_0x1cc913['markerName']),_0x23ee8d&&(this['activeMarkers']['includes'](_0x1cc913['markerName'])?_0x12dc07['writer']['addClass']('ck-suggestion-marker--active',_0x546024):_0x12dc07['writer']['removeClass']('ck-suggestion-marker--active',_0x546024));for(const _0x5e33b4 of _0x16dcaa['model']['createRangeIn'](_0x1cc913['item'])['getItems']())_0x12dc07['consumable']['consume'](_0x5e33b4,_0xb5ed38['name']);_0x12dc07['consumable']['consume'](_0x1cc913['item'],_0xb5ed38['name']);}};_0x16dcaa['conversion']['for']('dataDowncast')['add'](_0x4d208f=>{_0x4d208f['on']('addMarker:suggestion:formatBlock',(_0x3f55a5,_0x1fd324,_0x98fca)=>{_0x98fca['options']['showSuggestionHighlights']&&_0x430e7a({'showActiveMarkers':!0x1})(_0x3f55a5,_0x1fd324,_0x98fca);},{'priority':'highest'});}),_0x16dcaa['conversion']['for']('dataDowncast')['add'](_0x16a072=>{_0x16a072['on']('addMarker:suggestion:attribute',(_0x534daf,_0x402333,_0x158c4d)=>{_0x158c4d['options']['showSuggestionHighlights']&&_0x430e7a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x534daf,_0x402333,_0x158c4d);},{'priority':'highest'});}),_0x16dcaa['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3fa008,_0x1e6e05)=>_0x1e6e05['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3fa008['substr'](0xb)}}),_0x16dcaa['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x428b6b,{writer:_0xc746da})=>{let _0x441f7d='suggestion:'+_0x428b6b['getAttribute']('suggestion-type')+':'+_0x428b6b['getAttribute']('id');return _0x428b6b['getAttribute']('marker-count')&&(_0x441f7d+=':'+_0x428b6b['getAttribute']('marker-count')),_0xc746da['createElement']('$marker',{'data-name':_0x441f7d});}}),_0x16dcaa['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x48c182=>{_0x48c182['on']('addMarker:suggestion:formatBlock',_0x430e7a(),{'priority':'high'});}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x1ac44f=>{_0x1ac44f['on']('addMarker:suggestion:attribute',_0x430e7a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x1b67ca=>{_0x1b67ca['on']('removeMarker:suggestion:formatBlock',(_0x3f86b5,_0x4f4e2b,_0x26a29c)=>{const _0x419c4c=_0x26a29c['mapper']['markerNameToElements'](_0x4f4e2b['markerName']);if(_0x419c4c){for(const _0x1c01bb of _0x419c4c)_0x1c01bb['getCustomProperty']('addHighlight')||(_0x26a29c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c01bb),_0x26a29c['writer']['removeAttribute']('data-suggestion',_0x1c01bb),_0x26a29c['mapper']['unbindElementFromMarkerName'](_0x1c01bb,_0x4f4e2b['markerName']));}},{'priority':'high'});}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x138ed0=>{_0x138ed0['on']('removeMarker:suggestion:attribute',(_0x22788d,_0x1f452b,_0x227cc3)=>{const _0x50ee13=_0x227cc3['mapper']['markerNameToElements'](_0x1f452b['markerName']);if(!_0x50ee13)return;const {id:_0xdefb49}=this['_splitMarkerName'](_0x1f452b['markerName']),_0x20d65e=this['_suggestions']['get'](_0xdefb49),_0x60fb82=this['_getAttributeKey'](_0x20d65e);if(this['_isBlockAttribute'](_0x60fb82)){for(const _0x515b4b of _0x50ee13)_0x515b4b['getCustomProperty']('addHighlight')||(_0x227cc3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x515b4b),_0x227cc3['writer']['removeAttribute']('data-suggestion',_0x515b4b),_0x227cc3['mapper']['unbindElementFromMarkerName'](_0x515b4b,_0x1f452b['markerName']));}},{'priority':'high'});}),_0x16dcaa['model']['document']['registerPostFixer'](_0x5cab22=>{let _0x7128eb=!0x1;const _0x3423c8=Array['from'](_0x16dcaa['model']['document']['differ']['getChangedMarkers']()),_0x4ee06a=new Set();for(const {name:_0x5d4b14,data:_0x273853}of _0x3423c8){const {group:_0x2dcab7,type:_0x4aedb6,subType:_0x1a1c20,id:_0x244de6}=this['_splitMarkerName'](_0x5d4b14);if('suggestion'!==_0x2dcab7)continue;const _0x5350fa=this['_suggestions']['get'](_0x244de6);if(null!=_0x273853['newRange']){'formatInline'==_0x4aedb6&&(_0x7128eb=_0x7128eb||Et(_0x273853['newRange'],_0x5d4b14,_0x5cab22,_0x16dcaa['model']['schema']));const _0x505ce9='attribute'==_0x4aedb6&&this['_isBlockAttribute'](_0x1a1c20['split']('|')[0x0]);if(_0x273853['newRange']['isCollapsed']||'$graveyard'==_0x273853['newRange']['root']['rootName']||'formatBlock'==_0x4aedb6&&!Ut(_0x273853['newRange'])||_0x505ce9&&!Ut(_0x273853['newRange'])||'deletion'==_0x4aedb6&&!(!Tt(_0xf49bff=_0x273853['newRange'])&&!function(_0xff007c){return _0xff007c['start']['parent']==_0xff007c['end']['nodeBefore']&&_0xff007c['start']['isAtEnd'];}(_0xf49bff)))_0x5cab22['removeMarker'](_0x5d4b14),_0x7128eb=!0x0;else{if(!_0x5350fa||!_0x5350fa['isInContent'])continue;_0x4ee06a['add'](_0x5350fa);}}}var _0xf49bff;return _0x4ee06a['size']>0x0&&(_0x7128eb=!!this['_joinWithAdjacentSuggestions'](_0x4ee06a)||_0x7128eb),_0x7128eb;}),_0x16dcaa['model']['document']['registerPostFixer'](_0xa6ea8a=>{let _0x4af792=!0x1;for(const _0x1c54e2 of _0x16dcaa['model']['document']['differ']['getChanges']())if('insert'==_0x1c54e2['type'])for(const _0x3b737f of this['_suggestions']['values']()){if(_0x3b737f['isMultiRange']||!_0x3b737f['isInContent'])continue;const _0x31a315='formatBlock'==_0x3b737f['type'],_0x4f42e6=this['_getAttributeKey'](_0x3b737f),_0xe8f30e=_0x4f42e6&&this['_isBlockAttribute'](_0x4f42e6);if(!_0x31a315&&!_0xe8f30e)continue;const _0x5b60f2=_0x3b737f['getFirstRange']();if(_0x5b60f2['start']['parent']!=_0x5b60f2['end']['parent']&&!_0x5b60f2['end']['isAtEnd']){const _0x35189e=_0x16dcaa['model']['createPositionAt'](_0x5b60f2['start']['nodeAfter'],'end'),_0x1b27a2=_0x16dcaa['model']['createRange'](_0x5b60f2['start'],_0x35189e);_0xa6ea8a['updateMarker'](_0x3b737f['getFirstMarker'](),{'range':_0x1b27a2}),_0x4af792=!0x0;}}return _0x4af792;}),_0x16dcaa['model']['document']['registerPostFixer'](_0x2f402d=>this['_processAttributeChanges'](_0x2f402d)),_0x16dcaa['model']['document']['registerPostFixer'](_0x66cd96=>!_0x66cd96['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x66cd96)),_0x16dcaa['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x16dcaa['model']['document']['on']('change:data',(_0x545245,_0x59e3e4)=>{if(!_0x59e3e4['isLocal']||_0x59e3e4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x255e47=_0x16dcaa['model']['document']['differ']['getChanges']();if(0x0==_0x255e47['length'])return;const _0x338a04=[],_0x42fafc=_0x255e47['filter'](_0x588e38=>'attribute'==_0x588e38['type']),_0x1d2e6f=_0x255e47['filter'](_0x522188=>'insert'==_0x522188['type']&&'$text'!=_0x522188['name']);for(const _0x5a499c of _0x42fafc)this['_isRegisteredAttribute'](_0x5a499c['attributeKey'])&&_0x338a04['push']({'key':_0x5a499c['attributeKey'],'newValue':_0x5a499c['attributeNewValue'],'oldValue':_0x5a499c['attributeOldValue'],'range':Ot(_0x5a499c['range'],_0x16dcaa['model'])});for(const _0x283926 of _0x1d2e6f){if('rename'!=_0x283926['action']&&'refresh'!=_0x283926['action'])continue;const _0x8cc9fd=Gt(_0x283926['position']['nodeAfter'],_0x16dcaa['model']),_0x172248=_0x283926['before'];'rename'==_0x283926['action']&&_0x338a04['push']({'key':m,'newValue':_0x283926['name'],'oldValue':_0x172248['name'],'range':_0x8cc9fd});for(const [_0x827c84,_0x59270d]of _0x172248['attributes']){if(!this['_isRegisteredAttribute'](_0x827c84))continue;const _0x2fdf4d=_0x283926['attributes']['get'](_0x827c84);_0x59270d!==_0x2fdf4d&&_0x338a04['push']({'key':_0x827c84,'newValue':_0x2fdf4d,'oldValue':_0x59270d,'range':_0x8cc9fd});}for(const [_0x2ac16a,_0x4c9a71]of _0x283926['attributes'])this['_isRegisteredAttribute'](_0x2ac16a)&&(_0x172248['attributes']['has'](_0x2ac16a)||_0x338a04['push']({'key':_0x2ac16a,'newValue':_0x4c9a71,'oldValue':null,'range':_0x8cc9fd}));}0x0!=_0x338a04['length']&&_0x16dcaa['model']['enqueueChange'](_0x59e3e4,_0xf31350=>{const _0x17a78d=_0xa3dac7();for(const {range:_0x3c8b1e,key:_0x213213,oldValue:_0x4fc133,newValue:_0x24633d}of _0x338a04)this['markAttributeChange'](_0x3c8b1e,_0x213213,_0x4fc133,_0x24633d,{'groupId':_0x17a78d});this['_reduceExistingSuggestions'](_0xf31350,_0x338a04);});},{'priority':'lowest'}),_0x16dcaa['model']['markers']['on']('update:suggestion',(_0x1aab9d,_0x2a000a,_0x4b34a5)=>{if(null==_0x4b34a5){const {id:_0x37932a}=this['_splitMarkerName'](_0x2a000a['name']),_0x5178e1=this['_suggestions']['get'](_0x37932a);_0x5178e1&&_0x5178e1['addMarkerName'](_0x2a000a['name']);}}),_0x16dcaa['model']['document']['on']('change:data',()=>{const _0x1e5056=Array['from'](_0x16dcaa['model']['document']['differ']['getChangedMarkers']())['filter'](_0xafe70a=>'suggestion'===this['_splitMarkerName'](_0xafe70a['name'])['group']);if(0x0===_0x1e5056['length'])return;_0x1e5056['sort']((_0x588033,_0x1c59aa)=>{const _0x289e93=_0x588033['data']['oldRange'],_0x537966=_0x1c59aa['data']['oldRange'];return null===_0x289e93&&null===_0x537966?0x0:null===_0x289e93&&null!==_0x537966?-0x1:null!==_0x289e93&&null===_0x537966?0x1:_0x289e93['start']['isBefore'](_0x537966['start'])?-0x1:0x1;});const _0x289765=new Set(),_0x226b82=new Set();for(const {name:_0x5918bf,data:_0x40503e}of _0x1e5056){const {id:_0x2943a5}=this['_splitMarkerName'](_0x5918bf);if(null===_0x40503e['oldRange']){const _0x112a4d=this['_handleNewSuggestionMarker'](_0x5918bf);_0x226b82['add'](_0x112a4d);}else{const _0x56125b=this['_suggestions']['get'](_0x2943a5);null!==_0x40503e['newRange']||_0x56125b['isInContent']?(_0x289765['add'](_0x56125b['head']),_0x226b82['add'](_0x56125b)):this['_removeSuggestion'](_0x56125b);}}_0x226b82['size']>0x0&&this['_refreshSuggestionsChain'](_0x226b82);for(const _0xb07d38 of _0x289765)this['fire']('suggestionChanged',_0xb07d38);}),_0x16dcaa['model']['on']('applyOperation',(_0x2b43bc,_0x1cc6dd)=>{const _0x5c83b6=_0x1cc6dd[0x0];if(!this['_suggestions']['size'])return;if(!_0x5c83b6['isDocumentOperation'])return;if(_0x5c83b6['batch']['isUndo']||!_0x5c83b6['batch']['isLocal'])return;let _0x5a0459,_0x4de467;switch(_0x5c83b6['type']){case'insert':_0x5a0459=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['position']),_0x4de467=_0x5a0459['getShiftedBy'](_0x5c83b6['howMany']);break;case'split':_0x5a0459=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['splitPosition']),_0x4de467=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['moveTargetPosition']);break;case'move':_0x5a0459=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['targetPosition']),_0x4de467=_0x5a0459['getShiftedBy'](_0x5c83b6['howMany']);break;default:return;}const _0x5144de=_0x16dcaa['model']['createRange'](_0x5a0459,_0x4de467);_0x16dcaa['model']['change'](()=>{for(const {suggestion:_0x2a372e,meta:_0x3836f3}of this['_findSuggestions'](_0x5144de)){if(_0x2a372e['isMultiRange'])continue;if('formatInline'==_0x2a372e['type'])continue;const _0x468d9e=this['_getAttributeKey'](_0x2a372e);if(_0x468d9e&&this['_isBlockAttribute'](_0x468d9e)&&'split'!=_0x5c83b6['type'])continue;const _0x42cf6c=_0x2a372e['data']&&_0x2a372e['data']['multipleBlocks'];('formatBlock'!=_0x2a372e['type']||'split'==_0x5c83b6['type']&&!_0x42cf6c)&&(_0x3836f3['containsRangeInObject']||'insertion'==_0x2a372e['type']&&_0x3836f3['isOwn']||_0x2a372e['getFirstRange']()['containsRange'](_0x5144de)&&this['_breakSuggestionMarker'](_0x2a372e,_0x5a0459,_0x4de467));}});},{'priority':'lowest'}),_0x16dcaa['model']['on']('deleteContent',(_0x5b72b6,_0x56ed2d)=>{const _0x1a3397=_0x56ed2d[0x0],_0x18cc04=_0x56ed2d[0x1];if(_0x18cc04&&_0x18cc04['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1a3397['isCollapsed'])return;const _0x5d9d21=_0x16dcaa['model']['schema'],{start:_0x414242,end:_0x2264d1}=_0x1a3397['getFirstRange'](),_0x5a77de=_0x414242['nodeAfter']&&_0x5d9d21['isLimit'](_0x414242['nodeAfter'])?null:_0x5d9d21['getNearestSelectionRange'](_0x414242,'forward'),_0x19e979=_0x2264d1['nodeBefore']&&_0x5d9d21['isLimit'](_0x2264d1['nodeBefore'])?null:_0x5d9d21['getNearestSelectionRange'](_0x2264d1,'backward'),_0x51d8f6=_0x16dcaa['model']['createRange'](_0x5a77de?_0x5a77de['start']:_0x414242,_0x19e979?_0x19e979['end']:_0x2264d1);_0x16dcaa['model']['change'](_0x5c08da=>{this['markDeletion'](_0x51d8f6);const _0x507cd3=_0x16dcaa['model']['schema']['getNearestSelectionRange'](_0x51d8f6['start']);_0x1a3397['is']('documentSelection')?_0x5c08da['setSelection'](_0x507cd3):_0x1a3397['setTo'](_0x507cd3);}),_0x5b72b6['stop']();},{'priority':_0x275526['normal']+0xa}),_0x16dcaa['model']['on']('insertContent',(_0x56811b,_0x36f3a9)=>{const _0x1615ef=_0x36f3a9[_0x36f3a9['length']-0x1];_0x1615ef&&_0x1615ef['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x16dcaa['model']['change'](()=>{let _0x3a7653=_0x16dcaa['model']['insertContent'](_0x36f3a9[0x0],_0x36f3a9[0x1],_0x36f3a9[0x2],{'forceDefaultExecution':!0x0});if(!_0x3a7653)return;_0x56811b['return']=_0x3a7653['clone']();const _0x44e451=_0x3a7653['end']['nodeBefore'],_0x433275=_0x16dcaa['model']['schema'];_0x44e451&&_0x433275['isBlock'](_0x44e451)&&!_0x433275['isObject'](_0x44e451)&&(_0x3a7653=_0x16dcaa['model']['createRange'](_0x3a7653['start'],_0x16dcaa['model']['createPositionAt'](_0x44e451,'end'))),this['markInsertion'](_0x3a7653);}),_0x56811b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2681de=new $(_0x16dcaa,this['_suggestions']);_0x16dcaa['commands']['add']('acceptSuggestion',_0x2681de),this['enableCommand']('acceptSuggestion');const _0x4f284e=new B(_0x16dcaa,this['_suggestions']);_0x16dcaa['commands']['add']('discardSuggestion',_0x4f284e),this['enableCommand']('discardSuggestion'),_0x16dcaa['commands']['add']('acceptAllSuggestions',new x(_0x16dcaa,_0x2681de,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x16dcaa['commands']['add']('discardAllSuggestions',new x(_0x16dcaa,_0x4f284e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x16dcaa['commands']['add']('acceptSelectedSuggestions',new R(_0x16dcaa,_0x2681de,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x16dcaa['commands']['add']('discardSelectedSuggestions',new R(_0x16dcaa,_0x4f284e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x144a4e=_0x16dcaa['plugins']['get']('CommentsRepository');this['listenTo'](_0x144a4e,'addComment',(_0x5d2099,{threadId:_0x3f8228})=>{const _0x26f6fb=this['_suggestions']['get'](_0x3f8228);_0x26f6fb&&_0x26f6fb['commentThread']&&0x1===_0x26f6fb['commentThread']['length']&&this['_updateSuggestionData'](_0x3f8228,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x144a4e,'removeComment',(_0x52efbd,{threadId:_0x241619})=>{const _0x2db76c=this['_suggestions']['get'](_0x241619);_0x2db76c&&_0x2db76c['commentThread']&&!_0x2db76c['commentThread']['length']&&this['_updateSuggestionData'](_0x241619,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xf65b85){if(this['_adapter'])throw new _0x50d316('track-changes-adapter-already-set',this);this['_adapter']=_0xf65b85;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x516400=!0x1,toJSON:_0x2d56c0=!0x1}={}){const _0x58d0d3=[];for(const _0x16357a of this['_suggestions']['values']())_0x516400&&!_0x16357a['isInContent']||_0x58d0d3['push'](_0x16357a);return _0x2d56c0?_0x58d0d3['map'](_0x3bf6fd=>_0x3bf6fd['toJSON']()):_0x58d0d3;}['getSuggestion'](_0x33ad35){const _0x4aaebb=this['_suggestions']['get'](_0x33ad35);if(!_0x4aaebb)throw new _0x50d316('track-changes-suggestion-not-found',this);return _0x4aaebb;}['hasSuggestion'](_0x19676b){return this['_suggestions']['has'](_0x19676b);}['addSuggestionData'](_0x1cd0f9){const {authorId:_0x50303c,id:_0x218bc2,attributes:_0x54fc18}=_0x1cd0f9,[_0x1a42d5,_0x426ce0]=_0x1cd0f9['type']['split'](':'),_0x5dc66d=this['_suggestions']['get'](_0x218bc2)||this['_createSuggestion'](_0x1a42d5,_0x426ce0,_0x218bc2,_0x50303c,_0x54fc18);if(this['_addThreadToSuggestion'](_0x5dc66d),this['_checkSuggestionCorrectness'](_0x5dc66d,_0x1a42d5,_0x426ce0||null,_0x50303c),_0x5dc66d['createdAt']=_0x1cd0f9['createdAt'],_0x5dc66d['_isDataLoaded']=!0x0,_0x54fc18&&_0x54fc18['@external']){const _0x503b87=_0x54fc18['@external'],_0xc18296=this['_getExternalAuthor'](_0x503b87['authorName']);_0x5dc66d['authoredAt']=_0x503b87['createdAt'],_0x5dc66d['author']=_0xc18296,_0x5dc66d['isExternal']=!0x0;}else _0x5dc66d['authoredAt']=_0x1cd0f9['createdAt'];switch(_0x1cd0f9['data']&&(_0x5dc66d['data']=_0x1cd0f9['data']),_0x1cd0f9['attributes']&&(_0x5dc66d['attributes']=_0x1cd0f9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5dc66d['_saved']=!0x0),this['_suggestionState']['get'](_0x5dc66d)){case'notReady':this['_suggestionState']['set'](_0x5dc66d,'dataReady');break;case'markerReady':_0x5dc66d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5dc66d])),this['_refreshSuggestionsChain'](new Set([_0x5dc66d])),this['_suggestionState']['set'](_0x5dc66d,'ready'),this['fire']('suggestionLoaded',_0x5dc66d)):this['_suggestionState']['set'](_0x5dc66d,'removed');}return _0x5dc66d;}['acceptSuggestion'](_0x4df9cb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x482856 of _0x4df9cb['getAllAdjacentSuggestions']())_0x482856['accept']();});});}['discardSuggestion'](_0x59b3ec){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16dd49 of _0x59b3ec['getAllAdjacentSuggestions']())_0x16dd49['discard']();});});}['enableCommand'](_0x5a0168,_0x3b9af7){const _0x172f44=this['editor']['commands']['get'](_0x5a0168);if(!_0x172f44)throw new _0x50d316('track-changes-command-not-found',this,{'commandName':_0x5a0168});if(this['_enabledCommands']['has'](_0x172f44))throw new _0x50d316('track-changes-enable-command-twice',this,{'commandName':_0x5a0168});this['_enabledCommands']['add'](_0x172f44),_0x3b9af7&&_0x172f44['on']('execute',(_0x3496f1,_0x4e689a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4e689a['length']>0x0&&_0x4e689a[_0x4e689a['length']-0x1]&&_0x4e689a[_0x4e689a['length']-0x1]['forceDefaultExecution']?_0x4e689a['pop']():(_0x3496f1['return']=_0x3b9af7((..._0x1d7f89)=>_0x172f44['execute'](..._0x1d7f89,{'forceDefaultExecution':!0x0}),..._0x4e689a),_0x3496f1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xaa3a60){let _0x4c512e,_0x2119a3;const _0x1d3e15=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4c512e=_0xaa3a60();}catch(_0x552603){_0x2119a3=_0x552603;}return _0x1d3e15||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2119a3&&_0x50d316['rethrowUnexpectedError'](_0x2119a3,this),_0x4c512e;}['markInsertion'](_0x185203,_0x38f2e2=null,_0xa51c86={}){if(_0x185203['isCollapsed'])return null;const _0x31836b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3e7f94,meta:_0x5bb23c}of this['_findSuggestions'](_0x185203,'insertion'))if(_0x5bb23c['isOwn']){if(!_0x5bb23c['isNextTo']){if(_0x5bb23c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3e7f94,_0xa51c86))continue;return _0x3e7f94;}if(Lt(_0x3e7f94,_0xa51c86))return _0x3e7f94;this['_breakSuggestionMarker'](_0x3e7f94,_0x185203['start'],_0x185203['end']);break;}if(_0x38f2e2==_0x3e7f94['subType']&&Lt(_0x3e7f94,_0xa51c86)){const _0x22d4c0=_0x3e7f94['getFirstRange']();return _0x22d4c0['start']['isEqual'](_0x185203['end'])?this['_setSuggestionRange'](_0x3e7f94,this['_model']['createRange'](_0x185203['start'],_0x22d4c0['end'])):this['_setSuggestionRange'](_0x3e7f94,this['_model']['createRange'](_0x22d4c0['start'],_0x185203['end'])),_0x3e7f94;}}const _0x58ed2f=_0xa3dac7(),_0x17a029=_0x31836b['id'],_0x23fbab=_0x38f2e2?'insertion:'+_0x38f2e2:'insertion',_0x19acab=this['_setSuggestionData']({'id':_0x58ed2f,'type':_0x23fbab,'createdAt':new Date(),'authorId':_0x17a029,'attributes':_0xa51c86});return this['_addSuggestionMarker'](_0x23fbab,_0x58ed2f,_0x17a029,_0x185203),_0x19acab;}['markMultiRangeInsertion'](_0xa9ddb4,_0x7b06a2='multi',_0x3fe5c5={}){const _0x1da26c=this['editor']['plugins']['get']('Users')['me'],_0x398c35=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x7b06a2,'join');for(const _0x33f9f6 of this['getSuggestions']())if(_0x33f9f6['author']['id']==_0x1da26c['id']&&'insertion'==_0x33f9f6['type']&&_0x33f9f6['subType']==_0x7b06a2&&Lt(_0x33f9f6,_0x3fe5c5)&&(_0x398c35(_0x33f9f6['getRanges'](),_0xa9ddb4)||_0x398c35(_0xa9ddb4,_0x33f9f6['getRanges']()))){for(const _0x5cadcf of _0xa9ddb4)_0x33f9f6['addRange'](_0x5cadcf);return _0x33f9f6;}for(const {suggestion:_0x7b25d3,meta:_0x3eb096}of this['_findSuggestions'](_0xa9ddb4,'insertion')){if(!_0x3eb096['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3eb096['containsRangeInObject'])continue;if(!Lt(_0x7b25d3,_0x3fe5c5))continue;let _0x1d1753=!0x0;for(const _0x18c3dd of _0x7b25d3['getRanges']())for(const _0x36f1e0 of _0xa9ddb4)if(!_0x18c3dd['containsRange'](_0x36f1e0)){_0x1d1753=!0x1;break;}if(_0x1d1753)return _0x7b25d3;}const _0x59d4ae=_0xa3dac7(),_0x43737f=_0x1da26c['id'],_0x305af4='insertion:'+_0x7b06a2,_0x555fc1=this['_setSuggestionData']({'id':_0x59d4ae,'type':_0x305af4,'createdAt':new Date(),'authorId':_0x43737f,'attributes':_0x3fe5c5});for(const _0x3fd5f9 of _0xa9ddb4)this['_addSuggestionMarker'](_0x305af4,_0x59d4ae,_0x43737f,_0x3fd5f9,u['getMultiRangeId']());return _0x555fc1;}['markInlineFormat'](_0x4dc9e4,_0x5b8fb7,_0x88e49c=null,_0x406fd0={}){if(_0x88e49c=_0x88e49c||Vt(_0x5b8fb7),_0x4dc9e4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x733f21=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x88e49c,'accept');return this['forceDefaultExecution'](()=>_0x733f21([_0x4dc9e4],_0x5b8fb7,_0x406fd0)),null;}const _0x3e5459=this['editor']['plugins']['get']('Users')['me'],_0xc4448e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4c12f1,meta:_0x1334a8}of this['_findSuggestions'](_0x4dc9e4,'insertion'))_0x1334a8['isOwn']&&!_0x1334a8['isInsideObject']&&_0xc4448e['push'](..._0x4c12f1['getRanges']());}const _0x21ec2e=function(_0x25cdbc,_0x92fa60){const _0x2c4477=[];for(const _0x232073 of _0x92fa60){const _0x18ae99=_0x25cdbc['getIntersection'](_0x232073);_0x18ae99&&_0x2c4477['push'](_0x18ae99);}return _0x2c4477;}(_0x4dc9e4,_0xc4448e),_0x228d2c=function(_0x51e7fc,_0x430d7b){const _0x2f7a12=[_0x51e7fc];for(const _0x5587be of _0x430d7b){let _0x184045=0x0;for(;_0x184045<_0x2f7a12['length'];){const _0x3f2126=_0x2f7a12[_0x184045]['getDifference'](_0x5587be);_0x2f7a12['splice'](_0x184045,0x1,..._0x3f2126),_0x184045+=_0x3f2126['length'];}}return _0x2f7a12;}(_0x4dc9e4,_0xc4448e);_0x21ec2e['length']&&this['_model']['change'](()=>{for(const _0x416365 of _0x21ec2e){const _0x3f2ed2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x88e49c,'accept');this['forceDefaultExecution'](()=>_0x3f2ed2([_0x416365],_0x5b8fb7,_0x406fd0));}});for(const _0x3c4615 of _0x228d2c){let _0x26a25a=null,_0x2dc45d=_0x3c4615['start'],_0x24e510=_0x3c4615['end'];for(const {suggestion:_0x39387d,meta:_0x77f3e4}of this['_findSuggestions'](_0x3c4615,'formatInline')){if(!_0x77f3e4['isOwn'])continue;if(_0x39387d['subType']!=_0x88e49c)continue;if(!Lt(_0x39387d,_0x406fd0))continue;const _0x30eed1=_0x39387d['getFirstRange']();if(_0x30eed1['containsRange'](_0x3c4615,!0x0))return null;_0x2dc45d=_0x2dc45d['isBefore'](_0x30eed1['start'])?_0x2dc45d:_0x30eed1['start'],_0x24e510=_0x24e510['isAfter'](_0x30eed1['end'])?_0x24e510:_0x30eed1['end'],_0x26a25a?_0x30eed1['start']['isBefore'](_0x26a25a['getFirstRange']()['start'])?(_0x26a25a['removeMarkers'](),_0x26a25a=_0x39387d):_0x39387d['removeMarkers']():_0x26a25a=_0x39387d;}const _0x2a2a24=this['_model']['createRange'](_0x2dc45d,_0x24e510);if(_0x26a25a)this['_setSuggestionRange'](_0x26a25a,_0x2a2a24);else{const _0x10f0df=_0xa3dac7(),_0x3300db=_0x3e5459['id'];this['_setSuggestionData']({'id':_0x10f0df,'type':'formatInline:'+_0x88e49c,'data':_0x5b8fb7,'createdAt':new Date(),'authorId':_0x3300db,'attributes':_0x406fd0}),this['_addSuggestionMarker']('formatInline:'+_0x88e49c,_0x10f0df,_0x3300db,_0x2a2a24);}}return null;}['markBlockFormat'](_0x1d035a,_0x4f23f9,_0x57073e=[],_0x2870fc=null,_0x5983c7={}){_0x4f23f9['formatGroupId']||(_0x4f23f9['formatGroupId']=_0x4f23f9['commandName']),_0x4f23f9['multipleBlocks']=_0x1d035a['is']('range'),_0x2870fc=_0x2870fc||Vt(_0x4f23f9);const _0x3bdc3f=_0x57073e['map'](_0x3d1d09=>Gt(_0x3d1d09,this['_model'])),_0x16e2b9=_0x1d035a['is']('range')?_0x1d035a:Gt(_0x1d035a,this['_model']);if('never'===this['_trackFormatChanges']){const _0xe82e05=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2870fc,'accept');return this['forceDefaultExecution'](()=>_0xe82e05([_0x16e2b9],_0x4f23f9,_0x5983c7)),null;}_0x3bdc3f['push'](_0x16e2b9);let _0x4e062b=!0x0;for(const _0xb3001 of _0x3bdc3f)if(!this['_rangeIsInLocalUserInsertion'](_0xb3001)){_0x4e062b=!0x1;break;}if(_0x4e062b&&'always'!==this['_trackFormatChanges']){const _0x336002=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2870fc,'accept');return this['forceDefaultExecution'](()=>_0x336002([_0x16e2b9],_0x4f23f9,_0x5983c7)),null;}let _0x57482d=null,_0x3937ea=_0x16e2b9['start'],_0x2849fa=_0x16e2b9['end'];for(const {suggestion:_0x2841db,meta:_0x5f4bd7}of this['_findSuggestions'](_0x16e2b9,'formatBlock')){if(!_0x5f4bd7['isOwn'])continue;if(_0x5f4bd7['isNextTo']||_0x5f4bd7['containsRangeInObject']||_0x5f4bd7['isInsideObject'])continue;if(_0x2841db['data']['formatGroupId']!=_0x4f23f9['formatGroupId'])continue;if(!Lt(_0x2841db,_0x5983c7))continue;const _0x1ea91c=_0x2841db['getFirstRange']();if(_0x2841db['subType']==_0x2870fc){if(_0x1ea91c['containsRange'](_0x16e2b9,!0x0))return null;_0x3937ea=_0x3937ea['isBefore'](_0x1ea91c['start'])?_0x3937ea:_0x1ea91c['start'],_0x2849fa=_0x2849fa['isAfter'](_0x1ea91c['end'])?_0x2849fa:_0x1ea91c['end'],_0x57482d?_0x1ea91c['start']['isBefore'](_0x57482d['getFirstRange']()['start'])?(_0x57482d['removeMarkers'](),_0x57482d=_0x2841db):_0x2841db['removeMarkers']():_0x57482d=_0x2841db;}else{const _0x27b94c=_0x16e2b9['getIntersection'](_0x1ea91c);this['_cutOutSuggestionMarker'](_0x2841db,_0x27b94c);}}const _0x45a7c5=this['editor']['plugins']['get']('Users')['me'],_0x34a6d4=_0xa3dac7(),_0x35832f=_0x45a7c5['id'];if(_0x57482d)return this['_setSuggestionRange'](_0x57482d,this['_model']['createRange'](_0x3937ea,_0x2849fa)),_0x57482d;{const _0x2764cb=this['_setSuggestionData']({'id':_0x34a6d4,'type':'formatBlock:'+_0x2870fc,'data':_0x4f23f9,'createdAt':new Date(),'authorId':_0x35832f,'attributes':_0x5983c7});return this['_addSuggestionMarker']('formatBlock:'+_0x2870fc,_0x34a6d4,_0x35832f,this['_model']['createRange'](_0x3937ea,_0x2849fa)),_0x2764cb;}}['markMultiRangeBlockFormat'](_0x433f67,_0x15f831,_0x21ab59=[],_0x1fd5e7=null,_0x5c380d={}){_0x15f831['formatGroupId']||(_0x15f831['formatGroupId']=_0x15f831['commandName']);const _0x232a1d=_0x433f67[0x0];_0x15f831['multipleBlocks']=_0x232a1d['is']('range'),_0x1fd5e7=_0x1fd5e7||Vt(_0x15f831);const _0x4a11de=_0x21ab59['map'](_0x4b6d4b=>Gt(_0x4b6d4b,this['_model'])),_0x12624f=_0x232a1d['is']('range')?_0x433f67:_0x433f67['map'](_0x3cb47a=>Gt(_0x3cb47a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4961ff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd5e7,'accept');return this['forceDefaultExecution'](()=>_0x4961ff(_0x12624f,_0x15f831,_0x5c380d)),null;}_0x4a11de['push'](..._0x12624f);let _0x3d3f99=!0x0;for(const _0x610674 of _0x4a11de)if(!this['_rangeIsInLocalUserInsertion'](_0x610674)){_0x3d3f99=!0x1;break;}if(_0x3d3f99&&'always'!==this['_trackFormatChanges']){const _0x50d082=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd5e7,'accept');return this['forceDefaultExecution'](()=>_0x50d082(_0x12624f,_0x15f831,_0x5c380d)),null;}const _0x1284da=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d3445 of this['getSuggestions']()){if(_0x3d3445['author']['id']!=_0x1284da['id'])continue;if('formatBlock'!=_0x3d3445['type']||_0x3d3445['data']['formatGroupId']!=_0x15f831['formatGroupId'])continue;if(!Lt(_0x3d3445,_0x5c380d))continue;const _0x2c82d3=_0x3d3445['subType']==_0x1fd5e7;for(let _0x5e4291=0x0;_0x5e4291<_0x12624f['length'];_0x5e4291++){const _0xf23f4a=_0x12624f[_0x5e4291];for(const _0xedfa85 of _0x3d3445['getMarkers']()){const _0x4fb81a=_0xedfa85['getRange']();if(_0xf23f4a['isEqual'](_0x4fb81a)){_0x2c82d3?(_0x12624f['splice'](_0x5e4291,0x1),_0x5e4291--):_0x3d3445['removeMarker'](_0xedfa85['name']);break;}}}}if(0x0==_0x12624f['length'])return null;const _0x4fa6e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd5e7,'join');for(const _0x534d2a of this['getSuggestions']())if(_0x534d2a['author']['id']==_0x1284da['id']&&'formatBlock'==_0x534d2a['type']&&_0x534d2a['data']['formatGroupId']==_0x15f831['formatGroupId']&&_0x534d2a['subType']==_0x1fd5e7&&Lt(_0x534d2a,_0x5c380d)&&(_0x4fa6e6(_0x534d2a['getRanges'](),_0x12624f)||_0x4fa6e6(_0x12624f,_0x534d2a['getRanges']()))){for(const _0x296289 of _0x12624f)_0x534d2a['addRange'](_0x296289);return _0x534d2a;}const _0x14aba4=_0xa3dac7(),_0xdc5e72=_0x1284da['id'],_0x11c790='formatBlock:'+_0x1fd5e7,_0x30c9fd=this['_setSuggestionData']({'id':_0x14aba4,'type':_0x11c790,'data':_0x15f831,'createdAt':new Date(),'authorId':_0xdc5e72,'attributes':_0x5c380d});for(const _0x4c5092 of _0x12624f)this['_addSuggestionMarker'](_0x11c790,_0x14aba4,_0xdc5e72,_0x4c5092,u['getMultiRangeId']());return _0x30c9fd;}['markDeletion'](_0x18f980,_0x4cccfb=null,_0x3d6d81={}){if(_0x18f980['isCollapsed'])return null;const _0xce9b81=this['editor']['plugins']['get']('Users')['me'],_0x13cd6b=new _0x216747(_0x18f980['start'],_0x18f980['end']);for(const {suggestion:_0x3d6d19,meta:_0x5afb13}of this['_findSuggestions'](_0x13cd6b,'insertion'))if(_0x5afb13['isOwn']&&!_0x5afb13['isNextTo']){if(_0x3d6d19['isMultiRange']){const _0x875dec=_0x3d6d19['getRanges']()['filter'](_0x255382=>'$graveyard'!=_0x255382['root']['rootName']);_0x875dec['every'](_0x325b6c=>_0x13cd6b['containsRange'](_0x325b6c,!0x0))&&_0x3d6d19['discard']();if(_0x875dec['some'](_0x244e82=>_0x244e82['containsRange'](_0x13cd6b,!0x0))){const _0x4c8bdc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cccfb,'accept');return this['forceDefaultExecution'](()=>_0x4c8bdc([_0x13cd6b],null,_0x3d6d81)),null;}}else{const _0x2fa07=_0x13cd6b['getIntersection'](_0x3d6d19['getFirstRange']());null!==_0x2fa07&&_0x3d6d19['_onDiscard']([_0x2fa07],null,_0x3d6d81);}}if(_0x13cd6b['detach'](),_0x13cd6b['isCollapsed']||'$graveyard'==_0x13cd6b['root']['rootName'])return null;let _0xa09519=null,_0x3810ba=_0x13cd6b['start'],_0x11b9ff=_0x13cd6b['end'];const _0x4bcc51=this['_findSuggestions'](_0x13cd6b,'deletion');for(const {suggestion:_0x5693e5,meta:_0x41d150}of _0x4bcc51){const _0x48b5f7=this['_model']['createRange'](_0x3810ba,_0x11b9ff);if(_0x41d150['isOwn']&&(this['_mergeNestedSuggestions']||!_0x41d150['containsRangeInObject']&&!_0x41d150['isInsideObject'])){if(_0x5693e5['isMultiRange']){if(!Lt(_0x5693e5,_0x3d6d81))continue;let _0x2751c2=!0x0;for(const _0x515215 of _0x5693e5['getRanges']()){if(_0x515215['containsRange'](_0x48b5f7,!0x0))return _0x5693e5;_0x48b5f7['containsRange'](_0x515215)||(_0x2751c2=!0x1);}_0x2751c2&&_0x5693e5['discard']();}else{const _0x1bfbd7=_0x5693e5['getFirstRange']();if(_0x1bfbd7['containsRange'](_0x48b5f7,!0x0))return _0x5693e5;if(!Lt(_0x5693e5,_0x3d6d81)){_0x48b5f7['containsRange'](_0x1bfbd7)?_0x5693e5['removeMarkers']():_0x1bfbd7['containsPosition'](_0x3810ba)?_0x3810ba=_0x1bfbd7['end']:_0x1bfbd7['containsPosition'](_0x11b9ff)&&(_0x11b9ff=_0x1bfbd7['start']);continue;}_0x3810ba=_0x3810ba['isBefore'](_0x1bfbd7['start'])?_0x3810ba:_0x1bfbd7['start'],_0x11b9ff=_0x11b9ff['isAfter'](_0x1bfbd7['end'])?_0x11b9ff:_0x1bfbd7['end'],_0x3d6d81=Object['assign']({},_0x5693e5['attributes']),_0xa09519?_0x1bfbd7['start']['isBefore'](_0xa09519['getFirstRange']()['start'])?(_0xa09519['removeMarkers'](),_0xa09519=_0x5693e5):_0x5693e5['removeMarkers']():_0xa09519=_0x5693e5;}}}if(_0xa09519)return this['_setSuggestionRange'](_0xa09519,this['_model']['createRange'](_0x3810ba,_0x11b9ff)),_0xa09519;{const _0x34d8e2=_0xa3dac7(),_0x4ee0d5=this['_model']['createRange'](_0x3810ba,_0x11b9ff),_0x4f0703=_0xce9b81['id'],_0x4831d4=_0x4cccfb?'deletion:'+_0x4cccfb:'deletion',_0x5337b2=this['_setSuggestionData']({'id':_0x34d8e2,'type':_0x4831d4,'createdAt':new Date(),'authorId':_0x4f0703,'attributes':_0x3d6d81});return this['_addSuggestionMarker'](_0x4831d4,_0x34d8e2,_0x4f0703,_0x4ee0d5),_0x5337b2;}}['markMultiRangeDeletion'](_0x168ab3,_0x173933='multi',_0x4dbfda={}){const _0x56b341=this['editor']['plugins']['get']('Users')['me'],_0x363b1=_0x168ab3['map'](_0xce979e=>new _0x216747(_0xce979e['start'],_0xce979e['end'])),_0x4720ca=new Set();for(const {suggestion:_0x3c2a33,meta:_0x5d4377}of this['_findSuggestions'](_0x363b1,'insertion'))_0x5d4377['isOwn']&&!_0x5d4377['isNextTo']&&_0x4720ca['add'](_0x3c2a33);for(const _0x1f61c4 of _0x4720ca)if(_0x1f61c4['isMultiRange']){const _0x28ea5e=_0x1f61c4['getRanges']();(!_0x1f61c4['attributes']||!_0x1f61c4['attributes']['skipNestingCheck'])&&(_0x28ea5e['every'](_0x1f8ddf=>_0x363b1['some'](_0x5147de=>_0x5147de['containsRange'](_0x1f8ddf,!0x0)))&&_0x1f61c4['discard']());if(_0x363b1['every'](_0x3dd6c0=>_0x28ea5e['some'](_0x5efa36=>_0x5efa36['containsRange'](_0x3dd6c0,!0x0)))){const _0xe49272=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x173933,'accept');return this['forceDefaultExecution'](()=>_0xe49272(_0x168ab3,null,_0x4dbfda)),null;}}else{const _0x202b11=_0x1f61c4['getFirstRange']();_0x363b1['some'](_0x3a5e0f=>_0x3a5e0f['containsRange'](_0x202b11,!0x0))&&_0x1f61c4['discard']();if(_0x363b1['every'](_0x36608a=>_0x202b11['containsRange'](_0x36608a,!0x0))){const _0x7bbf23=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x173933,'accept');return this['forceDefaultExecution'](()=>_0x7bbf23(_0x363b1,null,_0x4dbfda)),null;}}const _0x304013=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x173933,'join');let _0x4dcc6a=null;for(const _0x5a71bb of this['getSuggestions']())if(_0x5a71bb['author']['id']==_0x56b341['id']&&_0x5a71bb['isInContent']&&'deletion'==_0x5a71bb['type']&&_0x5a71bb['subType']==_0x173933&&Lt(_0x5a71bb,_0x4dbfda)&&(_0x304013(_0x5a71bb['getRanges'](),_0x363b1)||_0x304013(_0x363b1,_0x5a71bb['getRanges']()))){if(_0x4dcc6a){if(_0x5a71bb['commentThread']&&_0x5a71bb['commentThread']['length'])continue;for(const _0x109a00 of _0x5a71bb['getRanges']())_0x4dcc6a['isIntersectingWithRange'](_0x109a00)||_0x4dcc6a['addRange'](_0x109a00);_0x5a71bb['removeMarkers']();}else{_0x4dcc6a=_0x5a71bb;for(const _0x19e199 of _0x363b1)_0x5a71bb['isIntersectingWithRange'](_0x19e199)||_0x5a71bb['addRange'](_0x19e199);}}if(_0x4dcc6a)return _0x4dcc6a;_0x4720ca['clear']();for(const {suggestion:_0x440311,meta:_0x3714a9}of this['_findSuggestions'](_0x363b1,'deletion'))_0x3714a9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3714a9['containsRangeInObject']&&!_0x3714a9['isInsideObject'])&&Lt(_0x440311,_0x4dbfda)&&_0x4720ca['add'](_0x440311);for(const _0x1db57f of _0x4720ca){const _0x5ccec4=_0x1db57f['getRanges']();if(!_0x4dbfda||!_0x4dbfda['skipNestingCheck']){if(_0x363b1['every'](_0x586d6a=>_0x5ccec4['some'](_0x142c81=>_0x142c81['containsRange'](_0x586d6a,!0x0))))return _0x1db57f;}(!_0x1db57f['attributes']||!_0x1db57f['attributes']['skipNestingCheck'])&&(_0x5ccec4['every'](_0x34574a=>_0x363b1['some'](_0x4136d0=>_0x4136d0['containsRange'](_0x34574a,!0x0)))&&_0x1db57f['discard']());}const _0x1d90fe=_0xa3dac7(),_0x9d5f88=_0x56b341['id'],_0x21f00c='deletion:'+_0x173933,_0x4962d0=this['_setSuggestionData']({'id':_0x1d90fe,'type':_0x21f00c,'createdAt':new Date(),'authorId':_0x9d5f88,'attributes':_0x4dbfda});for(const _0x356316 of _0x363b1)_0x356316['detach'](),_0x356316['isCollapsed']||'$graveyard'==_0x356316['root']['rootName']||this['_addSuggestionMarker'](_0x21f00c,_0x1d90fe,_0x9d5f88,_0x356316,u['getMultiRangeId']());return _0x4962d0;}['markAttributeChange'](_0xa35dac,_0x134f98,_0xa7792d,_0x50f58e,_0x8ef4dc){if(_0xa35dac['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x253276=this['editor']['plugins']['get']('Users')['me']['id'],_0x145368=Array['from'](this['_suggestions']['values']())['filter'](_0x5d9392=>'attribute'==_0x5d9392['type']&&_0x5d9392['data']['key']==_0x134f98&&_0x5d9392['isIntersectingWithRange'](_0xa35dac));if('default'===this['_trackFormatChanges']){const _0x14ecc7=this['_findSuggestions'](_0xa35dac,'insertion')['filter'](({meta:_0xcd137a})=>_0xcd137a['isOwn']&&!_0xcd137a['isInsideObject']&&!_0xcd137a['isNextTo'])['map'](({suggestion:_0x3fa238})=>_0x3fa238);_0x145368['unshift'](..._0x14ecc7);}const _0xced14b=new Map([[_0xa35dac,_0xa7792d]]);for(const _0xc9d0cd of _0x145368){const _0x81a23='attribute'==_0xc9d0cd['type']?_0xc9d0cd['data']['oldValue']:void 0x0,_0x3b8414=_0xc9d0cd['getFirstRange'](),_0xd8f4a0=Array['from'](_0xced14b['keys']())['find'](_0x5e4893=>_0x5e4893['isIntersecting'](_0x3b8414));if(!_0xd8f4a0)continue;const _0x51ffd0=_0xd8f4a0['getDifference'](_0x3b8414);this['_isBlockAttribute'](_0x134f98)&&'insertion'==_0xc9d0cd['type']&&0x0!=_0x51ffd0['length']||(_0xced14b['delete'](_0xd8f4a0),_0x51ffd0['forEach'](_0x50a950=>{_0xced14b['set'](_0x50a950,_0xa7792d);}),'insertion'!=_0xc9d0cd['type']&&_0x81a23!=_0x50f58e&&_0xced14b['set'](_0xd8f4a0['getIntersection'](_0x3b8414),_0x81a23));}const _0x37a0a0=[];for(const [_0x512e5b,_0xaba624]of _0xced14b){const _0x32ab8e=_0xa3dac7(),_0x2e0dba={'key':_0x134f98,'oldValue':_0xaba624,'newValue':_0x50f58e};_0x134f98['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':_0x134f98});const _0x25f7ba=('attribute:'+(_0x134f98+'|'+Vt({'newValue':_0x50f58e})))['substring'](0x0,0x3c),_0x3d21ac=this['_setSuggestionData']({'id':_0x32ab8e,'type':_0x25f7ba,'data':_0x2e0dba,'createdAt':new Date(),'authorId':_0x253276,'attributes':_0x8ef4dc});_0x37a0a0['push'](_0x3d21ac),this['_addSuggestionMarker'](_0x25f7ba,_0x32ab8e,_0x253276,_0x512e5b);}return _0x37a0a0;}['enableDefaultAttributesIntegration'](_0x2f60b1){this['enableCommand'](_0x2f60b1,(_0x154f8f,..._0x21a5e8)=>{this['_recordAttributeChanges'](()=>{_0x154f8f(..._0x21a5e8);});});}['registerBlockAttribute'](_0x52783f){this['_blockAttributeKeys']['add'](_0x52783f);}['registerInlineAttribute'](_0x395d7a){this['_inlineAttributeKeys']['add'](_0x395d7a);}['_getAttributeKey'](_0x554699){return'attribute'==_0x554699['type']?_0x554699['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4f28ad,_0x2ce820){const _0x68d96c=_0x4f28ad['getFirstMarker']();this['_model']['change'](_0x4899cc=>{_0x4899cc['updateMarker'](_0x68d96c,{'range':_0x2ce820});});}['_addThreadToSuggestion'](_0x17a136){const _0x606310=_0x17a136['id'],_0x21bba7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x606310)||this['_commentsRepository']['addCommentThread']({'channelId':_0x21bba7,'threadId':_0x606310,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3b6428=this['_commentsRepository']['getCommentThread'](_0x606310);_0x3b6428['unbind']('isRemovable'),_0x3b6428['isRemovable']=!0x1,_0x17a136['commentThread']=_0x3b6428;}['_checkSuggestionCorrectness'](_0x4b6395,_0x3e07c7,_0xede255,_0x13850c){if(_0x4b6395['type']!=_0x3e07c7||_0x4b6395['subType']!=_0xede255||_0x4b6395['creator']['id']!=_0x13850c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x50d316('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2dce58,_0x553464){const _0x359594=_0x2dce58['getFirstRange']();if(_0x553464['isEqual'](_0x359594))_0x2dce58['removeMarkers']();else{if(_0x359594['containsRange'](_0x553464)){const _0x30a8bb=this['_model']['createPositionAt'](_0x553464['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2dce58,this['_model']['createRange'](_0x359594['start'],_0x30a8bb));const _0x4e97d1=_0xa3dac7(),_0x7a2e35=_0x2dce58['creator']['id'],_0x11926b=_0x2dce58['type']+':'+_0x2dce58['subType'];this['_setSuggestionData']({'id':_0x4e97d1,'type':_0x11926b,'createdAt':new Date(),'authorId':_0x7a2e35,'data':_0x2dce58['data'],'attributes':_0x2dce58['attributes']});const _0x1cac8a=this['_model']['createPositionAt'](_0x553464['end']['parent'],'after'),_0x20579f=this['_model']['createRange'](_0x1cac8a,_0x359594['end']);this['_addSuggestionMarker'](_0x11926b,_0x4e97d1,_0x7a2e35,_0x20579f);}else{if(_0x359594['containsPosition'](_0x553464['start'])){const _0x4cdcba=this['_model']['createPositionAt'](_0x553464['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2dce58,this['_model']['createRange'](_0x359594['start'],_0x4cdcba));}else{const _0x364f43=this['_model']['createPositionAt'](_0x553464['end']['parent'],'after');this['_setSuggestionRange'](_0x2dce58,this['_model']['createRange'](_0x364f43,_0x359594['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x28aef2){for(const {suggestion:_0x57d5fe,meta:_0x4ff145}of this['_findSuggestions'](_0x28aef2,'insertion')){if(!_0x4ff145['isOwn'])continue;const _0x86a27e=_0x57d5fe['getRanges']();for(const _0x6143ba of _0x86a27e)if(!_0x28aef2['getDifference'](_0x6143ba)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x257660){const _0x76d479=this['editor']['plugins']['get']('Users')['getUser'](_0x257660);if(!_0x76d479)throw new _0x50d316('track-changes-user-not-found',this);return _0x76d479;}['_getExternalAuthor'](_0x117201){const _0x1331a2=this['editor']['plugins']['get']('Users'),_0x174731=_0x1e437b('external:'+_0x117201),_0x1c754f=_0x1331a2['getUser'](_0x174731);return _0x1c754f||_0x1331a2['addUser']({'id':_0x174731,'name':_0x117201});}['_createSuggestion'](_0x1cb0d3,_0x515e0e,_0xc8842,_0x4cc50a,_0x11aa77){const _0x19d10d=this['_getAuthorFromId'](_0x4cc50a),_0x386eed=this['_suggestionFactory']['buildSuggestion'](_0x1cb0d3,_0x515e0e,_0xc8842,_0x19d10d,_0x11aa77,_0x48f616=>{this['_updateSuggestionData'](_0xc8842,{'attributes':_0x48f616});const _0x3347fb=this['getSuggestion'](_0xc8842);this['_joinWithAdjacentSuggestions'](new Set([_0x3347fb])),this['_refreshSuggestionsChain'](new Set([_0x3347fb]));});return this['listenTo'](_0x386eed,'accept',()=>{this['_updateSuggestionData'](_0xc8842,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x386eed,'discard',()=>{this['_updateSuggestionData'](_0xc8842,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xc8842,_0x386eed),this['_suggestionState']['set'](_0x386eed,'notReady'),_0x386eed;}['_splitMarkerName'](_0x5be535){const _0x2946d7=_0x5be535['split'](':');return{'group':_0x2946d7[0x0],'type':_0x2946d7[0x1],'subType':_0x2946d7['length']>=0x5?_0x2946d7[0x2]:null,'id':_0x2946d7['length']<0x5?_0x2946d7[0x2]:_0x2946d7[0x3],'authorId':_0x2946d7['length']<0x5?_0x2946d7[0x3]:_0x2946d7[0x4],'markerCount':0x6==_0x2946d7['length']?_0x2946d7[0x5]:null};}['_breakSuggestionMarker'](_0x2c0043,_0x4a5d4b,_0x555382){const _0xeae53=_0x2c0043['getFirstRange'](),_0x46b26f=_0xeae53['start'],_0x2f11e0=_0xeae53['end'];this['_setSuggestionRange'](_0x2c0043,this['_model']['createRange'](_0x46b26f,_0x4a5d4b));const _0x5b4da4=_0xa3dac7(),_0xbbef2b=_0x2c0043['creator']['id'],_0x5a4de5=_0x2c0043['type']+(_0x2c0043['subType']?':'+_0x2c0043['subType']:'');this['_setSuggestionData']({'id':_0x5b4da4,'type':_0x5a4de5,'createdAt':new Date(),'authorId':_0xbbef2b,'originalSuggestionId':_0x2c0043['id'],'attributes':_0x2c0043['attributes'],'data':_0x2c0043['data']});const _0x254c1c=this['_getAttributeKey'](_0x2c0043);('formatBlock'==_0x2c0043['type']||_0x254c1c&&this['_isBlockAttribute'](_0x254c1c))&&(_0x555382=this['_model']['createPositionBefore'](_0x555382['parent'])),this['_addSuggestionMarker'](_0x5a4de5,_0x5b4da4,_0xbbef2b,this['_model']['createRange'](_0x555382,_0x2f11e0));}['_findSuggestions'](_0x2f5af2,_0x5780ec=null){const _0x374354=[],_0x212510=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2f5af2)||(_0x2f5af2=[_0x2f5af2]);for(const _0x427f64 of this['getSuggestions']()){if(!_0x427f64['isInContent'])continue;if(_0x5780ec&&_0x427f64['type']!=_0x5780ec)continue;let _0x483395=!0x1;for(const _0xad3b20 of _0x427f64['getRanges']()){for(const _0x34b7b6 of _0x2f5af2){const _0x38b309=_0x34b7b6['start']['isEqual'](_0xad3b20['end'])||_0x34b7b6['end']['isEqual'](_0xad3b20['start']);if(_0x38b309||_0x34b7b6['getIntersection'](_0xad3b20)){const _0x251b4f=_0x34b7b6['containsRange'](_0xad3b20)&&Rt(this['_model']['schema'],_0xad3b20['start'],_0x34b7b6),_0x4b60fe=_0xad3b20['containsRange'](_0x34b7b6)&&Rt(this['_model']['schema'],_0x34b7b6['start'],_0xad3b20);_0x374354['push']({'suggestion':_0x427f64,'meta':{'isOwn':_0x212510==_0x427f64['author'],'isNextTo':_0x38b309,'isInsideObject':_0x251b4f,'containsRangeInObject':_0x4b60fe}}),_0x483395=!0x0;break;}}if(_0x483395)break;}}return _0x374354;}['_addSuggestionMarker'](_0x484f55,_0x41f8b7,_0x258eb1,_0x4e1cf6,_0x294569){this['_model']['change'](_0x185c9a=>{let _0x3086a1='suggestion:'+_0x484f55+':'+_0x41f8b7+':'+_0x258eb1;_0x294569&&(_0x3086a1=_0x3086a1+':'+_0x294569),_0x185c9a['addMarker'](_0x3086a1,{'range':_0x4e1cf6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4f5cfb){const _0x40fb2e=_0x4f5cfb['previous'],_0x15ba39=_0x4f5cfb['next'];_0x4f5cfb['previous']=null,_0x4f5cfb['next']=null,null!=_0x40fb2e&&_0x40fb2e['next']==_0x4f5cfb&&(_0x40fb2e['next']=_0x15ba39),null!=_0x15ba39&&_0x15ba39['previous']==_0x4f5cfb&&(_0x15ba39['previous']=_0x40fb2e),'ready'==this['_suggestionState']['get'](_0x4f5cfb)&&(this['_suggestionState']['set'](_0x4f5cfb,'removed'),this['fire']('suggestionUnloaded',_0x4f5cfb,_0x40fb2e,_0x15ba39));}['_setSuggestionData'](_0x41a3f0){const _0x3b62ea=_0x41a3f0['id'],_0x5a7aa4=this['addSuggestionData'](_0x41a3f0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4c1ca5=this['editor']['plugins']['get']('PendingActions'),_0x533f31=_0x5a7aa4['hasComments'],_0x20673b=_0x5a7aa4['subType']?_0x5a7aa4['type']+':'+_0x5a7aa4['subType']:_0x5a7aa4['type'],_0x1f7d24=this['editor']['locale'],_0x430f46=_0x4c1ca5['add'](o(_0x1f7d24,'PENDING_ACTION_SUGGESTION')),_0x286561={'id':_0x3b62ea,'type':_0x20673b,'hasComments':_0x533f31,'data':_0x41a3f0['data']||null,'originalSuggestionId':_0x41a3f0['originalSuggestionId']||null,'attributes':_0x5a7aa4['attributes']};this['_adapter']['addSuggestion'](_0x286561)['then'](_0x46fdbe=>{_0x5a7aa4['_saved']=!0x0,_0x4c1ca5['remove'](_0x430f46),_0x46fdbe&&_0x46fdbe['createdAt']&&(this['_suggestions']['get'](_0x3b62ea)['createdAt']=_0x46fdbe['createdAt']);})['catch'](_0x15858e=>{throw _0x2b9abd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a7aa4['discard']();}),_0x5a7aa4['stopListening'](),this['_suggestions']['delete'](_0x5a7aa4['id']),this['_suggestionState']['delete'](_0x5a7aa4),_0x15858e;});}return _0x5a7aa4;}['_isBlockAttribute'](_0x4ef8c5){return this['_blockAttributeKeys']['has'](_0x4ef8c5);}['_updateSuggestionData'](_0x4001a7,_0x375c32){const _0xb49cbb=this['editor']['plugins']['get']('PendingActions'),_0xa18fe4=this['getSuggestion'](_0x4001a7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xa18fe4['_saved']){const _0x1e28de=_0xb49cbb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4001a7,_0x375c32)['then'](()=>{_0xb49cbb['remove'](_0x1e28de);});}else _0xa18fe4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4001a7,_0x375c32);});}}['_getSuggestionData'](_0x2d6e01){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x50d316('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d6e01);}['_handleNewSuggestionMarker'](_0x19de7a){const {id:_0x35cd25,type:_0x1837f2,subType:_0x254645,authorId:_0x3d6360}=this['_splitMarkerName'](_0x19de7a),_0x451ccb=this['_suggestions']['get'](_0x35cd25)||this['_createSuggestion'](_0x1837f2,_0x254645,_0x35cd25,_0x3d6360,{});switch(this['_checkSuggestionCorrectness'](_0x451ccb,_0x1837f2,_0x254645,_0x3d6360),this['_suggestionState']['get'](_0x451ccb)){case'notReady':this['_getSuggestionData'](_0x35cd25)['then'](_0x3d4a34=>{let _0x9e2dec=Promise['resolve']();_0x3d4a34['hasComments']&&(_0x9e2dec=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x35cd25})),_0x9e2dec['then'](()=>{this['addSuggestionData'](_0x3d4a34)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x451ccb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x35cd25,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x451ccb,'ready'),this['fire']('suggestionLoaded',_0x451ccb);break;case'ready':this['fire']('suggestionChanged',_0x451ccb);}return _0x451ccb['addMarkerName'](_0x19de7a),_0x451ccb;}['_refreshSuggestionsChain'](_0x38a80a){const _0x25a46c=Array['from'](_0x38a80a),_0x585fc0=_0x25a46c['filter'](_0xe22a2b=>'attribute'==_0xe22a2b['type']);this['_refreshAttributeSuggestionsChain'](_0x585fc0);const _0x20cc81=_0x25a46c['filter'](_0x30b42c=>!_0x30b42c['isMultiRange']&&'attribute'!=_0x30b42c['type']),_0x2889fa=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x352cbb=>!_0x352cbb['isMultiRange']&&'attribute'!=_0x352cbb['type']),_0x2c9a1c=_0x2889fa['filter'](_0x2f799e=>!_0x38a80a['has'](_0x2f799e)),_0x5651bc=new Map(_0x2889fa['map'](_0x4acdf5=>[_0x4acdf5,this['_suggestionFactory']['getSuggestionCallback'](_0x4acdf5['type'],_0x4acdf5['subType'],'chain')])),_0x1ef37a=new Map(_0x2889fa['map'](_0x20a5dc=>[_0x20a5dc,_0x20a5dc['getFirstRange']()])),_0x12bd52=new Set(),_0x3b5c4e=new Set();for(let _0x4f945e=0x0;_0x4f945e<_0x20cc81['length'];_0x4f945e++)_0x1a219b(_0x20cc81[_0x4f945e],_0x20cc81,_0x4f945e+0x1);for(let _0x22d867=0x0;_0x22d867<_0x20cc81['length'];_0x22d867++)_0x1a219b(_0x20cc81[_0x22d867],_0x2c9a1c,0x0);const _0x3b7291=new Set();for(let _0x2c2ba9=0x0;_0x2c2ba9<_0x20cc81['length'];_0x2c2ba9++){const _0x157a51=_0x20cc81[_0x2c2ba9];!_0x3b5c4e['has'](_0x157a51)&&_0x157a51['previous']&&(_0x3b7291['add'](_0x157a51['previous']),_0x157a51['previous']['next']===_0x157a51&&(_0x157a51['previous']['next']=null),_0x157a51['previous']=null),!_0x12bd52['has'](_0x157a51)&&_0x157a51['next']&&(_0x3b7291['add'](_0x157a51['next']),_0x157a51['next']['previous']===_0x157a51&&(_0x157a51['next']['previous']=null),_0x157a51['next']=null);}function _0x1a219b(_0x109214,_0x11dd68,_0x40ff17){for(let _0x3cba03=_0x40ff17;_0x3cba03<_0x11dd68['length'];_0x3cba03++){const _0x4358f4=_0x314ebd(_0x109214,_0x11dd68[_0x3cba03]);_0x4358f4&&(_0x4358f4[0x0]['next']=_0x4358f4[0x1],_0x4358f4[0x1]['previous']=_0x4358f4[0x0],_0x12bd52['add'](_0x4358f4[0x0]),_0x3b5c4e['add'](_0x4358f4[0x1]));}}function _0x314ebd(_0x209237,_0x11dbba){if(_0x209237['author']['id']!==_0x11dbba['author']['id'])return null;const _0x176ab9=_0x5651bc['get'](_0x209237)(_0x209237,_0x11dbba,_0x1ef37a['get'](_0x209237),_0x1ef37a['get'](_0x11dbba));if(!_0x176ab9)return null;return _0x5651bc['get'](_0x11dbba)(_0x209237,_0x11dbba,_0x1ef37a['get'](_0x209237),_0x1ef37a['get'](_0x11dbba))?_0x176ab9[0x1]['commentThread']&&_0x176ab9[0x1]['commentThread']['length']?null:_0x176ab9:null;}_0x3b7291['size']&&this['_refreshSuggestionsChain'](_0x3b7291);}['_refreshAttributeSuggestionsChain'](_0x3a9ba3){if(0x0==_0x3a9ba3['length'])return;const _0x26c933=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34013e=>'attribute'==_0x34013e['type']&&_0x34013e['_isDataLoaded']),_0xbf41f5=[],_0x5d2f17=new Map();for(const _0x346ba5 of _0x26c933){const _0xccb19=_0x1e437b(_0x346ba5['attributes']);_0x5d2f17['has'](_0xccb19)||(_0x5d2f17['set'](_0xccb19,_0xbf41f5['length']),_0xbf41f5['push']([]));const _0x482f59=_0x5d2f17['get'](_0xccb19);_0xbf41f5[_0x482f59]['push'](_0x346ba5);}!(function(){_0xbf41f5['sort']((_0x41b4c5,_0x53cf51)=>{const _0x27c26c=_0x41b4c5[0x0]['createdAt'],_0x6c3e77=_0x53cf51[0x0]['createdAt'];return _0x27c26c==_0x6c3e77?_0x41b4c5[0x0]['attributes']['groupId']<_0x53cf51[0x0]['attributes']['groupId']?-0x1:0x1:_0x27c26c<_0x6c3e77?-0x1:0x1;});for(const _0x45020b of _0xbf41f5)_0x45020b['sort']((_0x4b7855,_0x5a7a27)=>_0x4b7855['id']<_0x5a7a27['id']?-0x1:0x1);}());for(let _0x325e78=0x0;_0x325e78<_0xbf41f5['length'];_0x325e78++){if(0x0==_0xbf41f5[_0x325e78]['length'])continue;const _0x1759dd=[];for(let _0x1f2ac7=_0x325e78+0x1;_0x1f2ac7<_0xbf41f5['length'];_0x1f2ac7++)0x0!=_0xbf41f5[_0x1f2ac7]['length']&&_0xcc4041(_0xbf41f5[_0x325e78],_0xbf41f5[_0x1f2ac7])&&_0x1759dd['push'](_0x1f2ac7);for(const _0x114d51 of _0x1759dd)_0xbf41f5[_0x325e78]=_0xbf41f5[_0x325e78]['concat'](_0xbf41f5[_0x114d51]),_0xbf41f5[_0x114d51]=[];}for(const _0x3220f7 of _0xbf41f5)for(let _0x16a340=0x0;_0x16a340<_0x3220f7['length'];_0x16a340++)_0x3220f7[_0x16a340]['next']=_0x3220f7[_0x16a340+0x1]||null;for(const _0x33d863 of _0xbf41f5)for(let _0x35e0bb=0x0;_0x35e0bb<_0x33d863['length'];_0x35e0bb++)_0x33d863[_0x35e0bb]['previous']=_0x33d863[_0x35e0bb-0x1]||null;function _0xcc4041(_0x37921e,_0x352f87){if(_0x37921e[0x0]['attributes']['groupId']!==_0x352f87[0x0]['attributes']['groupId']&&_0x37921e[0x0]['author']!==_0x352f87[0x0]['author'])return!0x1;if(!function(_0x13a227,_0x56b213){if(!_0x13a227['hasComments']&&!_0x56b213['hasComments'])return!0x0;if(_0x13a227['hasComments']&&_0x56b213['hasComments'])return!0x1;if(_0x13a227['hasComments']&&_0x56b213['createdAt']<_0x13a227['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x56b213['hasComments']&&_0x13a227['createdAt']<_0x56b213['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x37921e[0x0],_0x352f87[0x0]))return!0x1;const _0x1c2a39=Bt(_0x37921e[0x0]['attributes'],'groupId'),_0x544ce9=Bt(_0x352f87[0x0]['attributes'],'groupId');if(!_0x1f7f6a(_0x1c2a39,_0x544ce9))return!0x1;return!!_0x37921e['every'](_0x1b1a6e=>_0x352f87['some'](_0x121ce7=>_0x1b1a6e['getFirstRange']()['isEqual'](_0x121ce7['getFirstRange']())))&&_0x352f87['every'](_0x38e836=>_0x37921e['some'](_0x12b665=>_0x38e836['getFirstRange']()['isEqual'](_0x12b665['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x349ec1){const _0x1f8ae6=Array['from'](_0x349ec1),_0x92583e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3a8c8d=_0x92583e['filter'](_0x2afd00=>!_0x349ec1['has'](_0x2afd00)),_0x920c2e=new Map(_0x1f8ae6['map'](_0x230555=>[_0x230555,this['_suggestionFactory']['getSuggestionCallback'](_0x230555['type'],_0x230555['subType'],'join')])),_0x38c7cb=new Map(_0x92583e['map'](_0x37e9b9=>[_0x37e9b9,_0x37e9b9['getRanges']()]));for(let _0xff9421=0x0;_0xff9421<_0x1f8ae6['length'];_0xff9421++){if(_0xccced5(this,_0x1f8ae6[_0xff9421],_0x1f8ae6,_0xff9421+0x1))return!0x0;}for(let _0x55c8cb=0x0;_0x55c8cb<_0x1f8ae6['length'];_0x55c8cb++){if(_0xccced5(this,_0x1f8ae6[_0x55c8cb],_0x3a8c8d,0x0))return!0x0;}return!0x1;function _0xccced5(_0x493d4e,_0x37b933,_0x34c6d5,_0x2d305c){for(let _0x3e2daa=_0x2d305c;_0x3e2daa<_0x34c6d5['length'];_0x3e2daa++){const _0x132967=_0x34c6d5[_0x3e2daa];if(_0x132967['type']!==_0x37b933['type']||_0x132967['author']['id']!==_0x37b933['author']['id']||_0x132967['subType']!==_0x37b933['subType'])continue;if(!Pt(_0x37b933,_0x132967,['groupId']))continue;if('attribute'==_0x37b933['type']&&_0x37b933['data']['oldValue']!=_0x132967['data']['oldValue'])continue;if('attribute'==_0x37b933['type']&&_0x493d4e['_isBlockAttribute'](_0x37b933['data']['key']))continue;if('formatBlock'==_0x37b933['type']){const _0xda8d19=_0x493d4e['editor']['model'],_0x37fe49=_0x37b933['getContainedElement']();if(_0x37fe49&&(_0xda8d19['schema']['isObject'](_0x37fe49)||_0xda8d19['schema']['isLimit'](_0x37fe49)))continue;}const _0x6adf8c=_0x920c2e['get'](_0x37b933),_0x3e43c0=_0x38c7cb['get'](_0x37b933),_0x241af2=_0x38c7cb['get'](_0x132967),_0x58f151=_0x37b933['commentThread']&&_0x37b933['commentThread']['length'],_0x22502b=_0x132967['commentThread']&&_0x132967['commentThread']['length'];if(!_0x58f151&&_0x6adf8c(_0x241af2,_0x3e43c0))return _0x493d4e['_joinSuggestions'](_0x132967,_0x37b933),_0x38c7cb['delete'](_0x37b933),!0x0;if(!_0x22502b&&_0x6adf8c(_0x3e43c0,_0x241af2))return _0x493d4e['_joinSuggestions'](_0x37b933,_0x132967),_0x38c7cb['delete'](_0x132967),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3e8d16,_0x306bc3){if(_0x3e8d16['isMultiRange']){for(const _0x31a079 of _0x306bc3['getRanges']())_0x3e8d16['addRange'](_0x31a079);}else{const _0x3b90d2=_0x306bc3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3e8d16,this['_model']['createRange'](_0x3e8d16['getFirstRange']()['start'],_0x3b90d2));}_0x306bc3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x531eae,_0x57846d){const _0x421f58=_0x531eae['startsWith']('format')||_0x531eae['startsWith']('attribute')?'FORMATTING':_0x531eae['toUpperCase']();return o(this['editor']['locale'],_0x57846d+'_'+_0x421f58+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x3a049=this['editor'];if(!_0x3a049['ui'])return;const {ariaLiveAnnouncer:_0x34c57}=_0x3a049['ui'];_0x3cad82(this['_model'],({left:_0x218c4f,entered:_0xef9ee4})=>{for(const _0x48d1db of _0x218c4f){const {group:_0x3eee6d,type:_0x3e494d}=this['_splitMarkerName'](_0x48d1db['name']);if('suggestion'===_0x3eee6d){_0x34c57['announce'](this['_getMarkerAnnouncementText'](_0x3e494d,'LEAVE'));break;}}for(const _0x4a3519 of _0xef9ee4){const {group:_0x36b20c,type:_0x5fa3ed}=this['_splitMarkerName'](_0x4a3519['name']);if('suggestion'===_0x36b20c){_0x34c57['announce'](this['_getMarkerAnnouncementText'](_0x5fa3ed,'ENTER'));break;}}});}['_processAttributeChanges'](_0x39ad37){if(this['_recordAttributeSuggestions'])return!0x1;const _0x330c2f=this['editor'],_0x52d83d=_0x330c2f['model']['document']['differ']['getChanges']();if(0x0==_0x52d83d['length'])return!0x1;const _0x36c79a=[],_0x572fac=_0x52d83d['filter'](_0x407acf=>'attribute'==_0x407acf['type']),_0x51ef66=_0x52d83d['filter'](_0xa80dc0=>'insert'==_0xa80dc0['type']&&'$text'!=_0xa80dc0['name']),_0x28303b=_0x52d83d['filter'](_0x6d796b=>'remove'==_0x6d796b['type']&&'$text'!=_0x6d796b['name']);for(const _0x4f0413 of _0x572fac)_0x36c79a['push']({'key':_0x4f0413['attributeKey'],'newValue':_0x4f0413['attributeNewValue'],'oldValue':_0x4f0413['attributeOldValue'],'range':Ot(_0x4f0413['range'],_0x330c2f['model'])});for(const _0x4f7eef of _0x51ef66){const _0x311f4b=_0x28303b['find'](_0x32bd04=>_0x32bd04['position']['isEqual'](_0x4f7eef['position']));_0x311f4b&&_0x36c79a['push']({'key':m,'newValue':_0x4f7eef['name'],'oldValue':_0x311f4b['name'],'range':_0x330c2f['model']['createRangeOn'](_0x4f7eef['position']['nodeAfter'])});}return 0x0!=_0x36c79a['length']&&this['_reduceExistingSuggestions'](_0x39ad37,_0x36c79a);}['_processAttributeSuggestions'](_0x25098f){let _0x589940=!0x1;const _0x76683d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x128bfd=>_0x128bfd['data']['newRange']&&_0x128bfd['name']['startsWith']('suggestion:attribute:'));for(const _0xa9b84b of _0x76683d){const {subType:_0xf43bb3,id:_0x46a2bb}=this['_splitMarkerName'](_0xa9b84b['name']),_0x3fb299=_0xf43bb3['split']('|')[0x0];for(const _0x1f05e6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1f05e6['id']!=_0x46a2bb&&'attribute'==_0x1f05e6['type']&&_0x1f05e6['data']&&_0x1f05e6['data']['key']==_0x3fb299&&_0x1f05e6['getFirstRange']()['isIntersecting'](_0xa9b84b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1f05e6,_0xa9b84b['data']['newRange'],_0x25098f),_0x589940=!0x0);}return _0x589940;}['_recordAttributeChanges'](_0x4c1985){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4c1985();}['_isRegisteredAttribute'](_0x20c93c){const _0x37328b=this['_isBlockAttribute'](_0x20c93c),_0x4a0795=this['_inlineAttributeKeys']['has'](_0x20c93c);return _0x37328b||_0x4a0795;}['_reduceExistingSuggestions'](_0x5da769,_0x505a28){if(0x0==_0x505a28['length'])return!0x1;let _0x55bc14=!0x1;for(const _0x39788a of _0x505a28){const _0x573596=this['_findSuggestions'](_0x39788a['range'],'attribute')['filter'](_0x16a0bd=>!_0x16a0bd['meta']['isNextTo'])['map'](_0x1fd27b=>_0x1fd27b['suggestion']),_0x2e8d3d=_0x1e437b({'newValue':_0x39788a['newValue']});_0x573596['filter'](_0x3fd1fc=>{const [_0x139f2d,_0x5dc71d]=_0x3fd1fc['subType']['split']('|');return _0x139f2d==_0x39788a['key']&&_0x5dc71d!=_0x2e8d3d;})['forEach'](_0x35c6b7=>{this['_reduceSuggestionAttributeRange'](_0x35c6b7,_0x39788a['range'],_0x5da769),_0x55bc14=!0x0;});}return _0x55bc14;}['_reduceSuggestionAttributeRange'](_0x23532f,_0xebfa2e,_0x3bc8b9){const _0x526463=_0x23532f['getFirstRange']()['getDifference'](_0xebfa2e);0x0!==_0x526463['length']?0x1!==_0x526463['length']?this['_breakSuggestionMarker'](_0x23532f,_0xebfa2e['start'],_0xebfa2e['end']):this['_setSuggestionRange'](_0x23532f,_0x526463[0x0]):_0x3bc8b9['removeMarker'](_0x23532f['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1bbca8){this['_editor']=_0x1bbca8,this['_model']=_0x1bbca8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x164b59,_0x583d38,_0x4276a6,_0x323906,_0x54b55a,_0x55d077){return new u(this['_model'],{'type':_0x164b59,'subType':_0x583d38,'id':_0x4276a6,'author':_0x323906,'creator':_0x323906,'attributes':_0x54b55a,'onAttributesChange':_0x55d077,'onAccept':(..._0x2b46dd)=>this['getSuggestionCallback'](_0x164b59,_0x583d38,'accept')(..._0x2b46dd),'onDiscard':(..._0x1f86a8)=>this['getSuggestionCallback'](_0x164b59,_0x583d38,'discard')(..._0x1f86a8)});}['registerCustomCallback'](_0x57fd08,_0x45e52b,_0x2c1de0,_0x334177){const _0x3384d5=_0x57fd08+':'+_0x45e52b+':'+_0x2c1de0;this['_customCallbacks']['set'](_0x3384d5,_0x334177);}['getSuggestionCallback'](_0x368e75,_0x468db5,_0x33fd7b){const _0x316ed3=_0x368e75+':'+_0x468db5+':'+_0x33fd7b;return this['_customCallbacks']['get'](_0x316ed3)||this['_defaultCallbacks']['get'](_0x368e75+':'+_0x33fd7b);}['_registerDefaultCallbacks'](){const _0x4d691c=()=>!0x1,_0x21e164=_0x3a0b54=>{_0x3a0b54['sort']((_0xcd964,_0x31a0ea)=>_0xcd964['start']['isBefore'](_0x31a0ea['start'])?0x1:-0x1),this['_model']['change'](_0x31bc06=>{for(const _0x527567 of _0x3a0b54){let _0x223d65;_0x223d65=_0x527567['end']['isAtEnd']&&_0x527567['end']['parent']==_0x527567['start']['nodeAfter']?_0x31bc06['createSelection'](_0x527567['start']['nodeAfter'],'on'):_0x31bc06['createSelection'](_0x527567),this['_model']['deleteContent'](_0x223d65,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f0992=(_0x72fbaa,_0xc58fb2)=>{_0xc58fb2&&this['_model']['change'](_0x1de6ce=>{const {commandName:_0x246b5d,commandParams:_0x4e5a0b=[]}=_0xc58fb2,_0x2b8ada=_0x72fbaa['map'](_0x33d87c=>(Tt(_0x33d87c)&&(_0x33d87c=this['_model']['createRange'](_0x33d87c['end'])),_0x33d87c))['filter'](_0x30cf31=>'$graveyard'!==_0x30cf31['root']['rootName']);if(_0x2b8ada['length']<0x1)return;const _0x130928=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x455a7b=>_0x216747['fromRange'](_0x455a7b));_0x1de6ce['setSelection'](_0x2b8ada);for(const _0x245071 of this['_editor']['commands']['commands']())_0x245071['refresh']();_0x4e5a0b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x246b5d,..._0x4e5a0b);const _0x8aafe=_0x130928['filter'](_0x4c0c72=>'$graveyard'!=_0x4c0c72['root']['rootName']);_0x8aafe['length']>0x0&&_0x1de6ce['setSelection'](_0x8aafe);for(const _0x50e821 of _0x130928)_0x50e821['detach']();});},_0x2e60c0=(_0x1206ce,_0x331b7c)=>0x1==_0x1206ce['length']&&0x1==_0x331b7c['length']&&_0x1206ce[0x0]['end']['isEqual'](_0x331b7c[0x0]['start']),_0x25ea72=(_0x4a44ff,_0x3ed27c,_0x1c4d64,_0x5015ce)=>Ft(_0x4a44ff,_0x3ed27c,_0x1c4d64,_0x5015ce,this['_model'])?[_0x4a44ff,_0x3ed27c]:Ft(_0x3ed27c,_0x4a44ff,_0x5015ce,_0x1c4d64,this['_model'])?[_0x3ed27c,_0x4a44ff]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d691c),this['_defaultCallbacks']['set']('insertion:discard',_0x21e164),this['_defaultCallbacks']['set']('insertion:join',_0x2e60c0),this['_defaultCallbacks']['set']('insertion:chain',_0x25ea72),this['_defaultCallbacks']['set']('deletion:accept',_0x21e164),this['_defaultCallbacks']['set']('deletion:discard',_0x4d691c),this['_defaultCallbacks']['set']('deletion:join',_0x2e60c0),this['_defaultCallbacks']['set']('deletion:chain',_0x25ea72),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f0992),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d691c),this['_defaultCallbacks']['set']('formatInline:join',_0x2e60c0),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d691c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f0992),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d691c),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e60c0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d691c),this['_defaultCallbacks']['set']('attribute:accept',_0x4d691c),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d0c52,_0x5625d5)=>{if(!_0x5625d5)return;const _0x480a11=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x41e8a2=>{if(_0x5625d5['key']==m)for(const _0x37c8b3 of _0x5d0c52){const _0x3ab14c=_0x37c8b3['start']['nodeAfter'],_0x5d1209=_0x5625d5['oldValue'];_0x41e8a2['rename'](_0x3ab14c,_0x5d1209);}else{if(_0x480a11['_isBlockAttribute'](_0x5625d5['key'])){for(const _0x114c44 of _0x5d0c52)void 0x0!==_0x5625d5['oldValue']?_0x41e8a2['setAttribute'](_0x5625d5['key'],_0x5625d5['oldValue'],_0x114c44['start']['nodeAfter']):_0x41e8a2['removeAttribute'](_0x5625d5['key'],_0x114c44['start']['nodeAfter']);}else{for(const _0x3d3cec of _0x5d0c52)_0x5625d5['oldValue']?_0x41e8a2['setAttribute'](_0x5625d5['key'],_0x5625d5['oldValue'],_0x3d3cec):_0x41e8a2['removeAttribute'](_0x5625d5['key'],_0x3d3cec);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e60c0);}}function Rt(_0x263fbe,_0x3cdab8,_0x1520bd){for(const _0x592561 of _0x3cdab8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x592561['root']==_0x592561)return!0x1;if(!_0x1520bd['containsItem'](_0x592561))return!0x1;if(_0x263fbe['isObject'](_0x592561)||_0x263fbe['isLimit'](_0x592561))return!0x0;}return!0x1;}function Tt(_0x241b0b){return _0x241b0b['end']['parent']==_0x241b0b['start']['nodeAfter']&&_0x241b0b['end']['isAtStart'];}function Et(_0x178d44,_0x401bd4,_0x5831b6,_0x5aad07){const _0x576f71=_0x453f34=>!_0x453f34['item']['is']('$textProxy')&&!_0x5aad07['isObject'](_0x453f34['item']),_0x5ea19b=_0x178d44['start']['getLastMatchingPosition'](_0x576f71),_0x4126ab=_0x178d44['end']['getLastMatchingPosition'](_0x576f71,{'direction':'backward'});return(!_0x178d44['start']['isEqual'](_0x5ea19b)||!_0x178d44['end']['isEqual'](_0x4126ab))&&(_0x5ea19b['isBefore'](_0x4126ab)?_0x5831b6['updateMarker'](_0x401bd4,{'range':_0x5831b6['createRange'](_0x5ea19b,_0x4126ab)}):_0x5831b6['removeMarker'](_0x401bd4),!0x0);}function Vt(_0x104871){return _0x1e437b(_0x104871);}function Ut(_0x57afec){const _0xe17a7f=_0x57afec['start']['nodeAfter'];return _0xe17a7f&&_0xe17a7f['is']('element');}function Ot(_0x261560,_0x3ceceb){return null==_0x261560['end']['nodeBefore']&&_0x261560['end']['parent']==_0x261560['start']['nodeAfter']?Gt(_0x261560['start']['nodeAfter'],_0x3ceceb):_0x261560;}function Gt(_0x54a2c6,_0xab0a4f){const _0xccd304=_0xab0a4f['schema']['isObject'](_0x54a2c6)||_0xab0a4f['schema']['isSelectable'](_0x54a2c6);return _0xab0a4f['createRange'](_0xab0a4f['createPositionAt'](_0x54a2c6,'before'),_0xccd304?_0xab0a4f['createPositionAfter'](_0x54a2c6):_0xab0a4f['createPositionAt'](_0x54a2c6,'end'));}function Ft(_0xd483e1,_0x54054c,_0x4e52e2,_0x4d5229,_0x4ccfff){if(!Pt(_0xd483e1,_0x54054c))return!0x1;if(_0x4e52e2['end']['isEqual'](_0x4d5229['start']))return!0x0;if(_0xd483e1['type']!=_0x54054c['type'])return!0x1;if(!_0x4e52e2['end']['isTouching'](_0x4d5229['start']))return!0x1;const _0x2ba1c3=_0x4ccfff['createRange'](_0x4e52e2['end'],_0x4d5229['start'])['getWalker']();for(const _0x56929f of _0x2ba1c3)if(['elementStart','elementEnd']['includes'](_0x56929f['type'])&&_0x4ccfff['schema']['isLimit'](_0x56929f['item']))return!0x1;return!0x0;}function Pt(_0x4b2c54,_0xf49168,_0x10bae7=[]){return!(!_0x4b2c54['_isDataLoaded']||!_0xf49168['_isDataLoaded'])&&_0x1f7f6a(Bt(_0x4b2c54['attributes'],_0x10bae7),Bt(_0xf49168['attributes'],_0x10bae7));}function Lt(_0x25adfc,_0x5db6e7){const _0x1fb30c=Ht(_0x25adfc['attributes']),_0x4eb874=Ht(_0x5db6e7);if(!_0x25adfc['_isDataLoaded'])return!0x1;for(const _0xa6ff38 of Object['keys'](_0x4eb874))if(!_0x1f7f6a(_0x1fb30c[_0xa6ff38],_0x4eb874[_0xa6ff38]))return!0x1;return!0x0;}function Ht(_0x28f446){const _0x1c9994=Object['assign']({},_0x28f446);return delete _0x1c9994['skipNestingCheck'],delete _0x1c9994['tablePasteChainId'],_0x1c9994;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x25d463(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x17c31,_0xde5904,_0x4ee6a7,_0x36cdb9){super(),this['model']=_0xde5904,this['view']=_0x4ee6a7,this['commentThreadController']=_0x36cdb9,this['_editor']=_0x17c31,this['_acceptCommand']=_0x17c31['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x17c31['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5c351c,_0x1a93d6)=>_0x5c351c||_0x1a93d6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x109d45=>_0x109d45&&this['_editor']['model']['canEditAt'](_0xde5904['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x519121=>_0x519121&&this['_editor']['model']['canEditAt'](_0xde5904['getRanges']())),this['_pendingAction']=null,_0x4ee6a7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4ee6a7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4ee6a7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4ee6a7,'change:isDirty',()=>{_0x4ee6a7['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 _0x3dba59=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3dba59);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x3759d1{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x194cf5,_0x59566a,_0x506935,_0xee7b49){super(_0x194cf5),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x59566a['authoredAt']),this['bind']('authoredAt')['to'](_0x59566a),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x59566a,this['_localUser']=_0x506935,this['_config']=_0xee7b49,_0xee7b49['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:_0x31625d}=this['_config'];this['commentsListView']=new _0x31625d(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',_0x145ce2=>_0x145ce2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x17da75,_0x2e613e)=>_0x17da75||!!_0x2e613e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3a6f72}=this['_config'],_0x4fcdc4=new _0x3a6f72(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3263f9=_0x4fcdc4['commentInputView'];return _0x4fcdc4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3263f9,'value',(_0x1c6189,_0x2da91b,_0xe8e632)=>!!_0xe8e632||_0x1c6189&&!_0x2da91b),_0x3263f9['on']('submit',(_0x2e4ac8,_0x2638cd)=>{this['fire']('addComment',_0x2638cd),_0x3263f9['editor']['setData']('');}),_0x3263f9['on']('cancel',()=>this['focus']()),_0x3263f9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4fcdc4;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2ddc9a,_0x5b1f47,_0x2e9da0,_0x4df9a4){super(_0x2ddc9a,_0x5b1f47,_0x2e9da0,_0x4df9a4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ddd40=>_0x5ddd40&&_0x5ddd40[0x0]?_0x5ddd40[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x291ff1,_0x2a7357)=>{let _0x305bc8='';for(const _0xd6f90 of _0x291ff1)_0x305bc8+='<p>'+ds(_0xd6f90['content'],_0xd6f90['color'])+'</p>';return _0x2a7357?_0x305bc8:_0x8d55fb(_0x305bc8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2ddc9a,'Accept\x20suggestion'),_0x1089ce['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2ddc9a,'Discard\x20suggestion'),_0x1089ce['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x307e07(_0x2ddc9a,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2d6b21=this['bindTemplate'],_0x2d5b6e=[{'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':_0x2d6b21['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2d6b21['to']('authoredAt',_0xc0414f=>this['_config']['formatDateTime'](_0xc0414f))}]}]},{'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']&&_0x2d5b6e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5bef38={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2d6b21['if']('isActive','ck-suggestion-wrapper--active'),_0x2d6b21['to']('type',_0x4b3e8c=>'ck-suggestion-'+_0x4b3e8c),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':_0x2d5b6e}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5bef38['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)),_0x5bef38;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xdfaa31,_0x3ad73b,_0x29c42d)=>{this['_descriptionElement']['innerHTML']=_0x29c42d;});}['_createButton'](_0x195d9a,_0x7b3710,_0x3efe15,_0x9a7bc2,_0x56dba8){const _0x415c16=new _0x266fe3(this['locale']);return _0x415c16['set']({'label':_0x195d9a,'icon':_0x7b3710,'tooltip':!0x0,'tooltipPosition':_0x56dba8}),_0x415c16['extendTemplate']({'attributes':{'class':_0x3efe15}}),_0x415c16['on']('execute',()=>{this['fire'](_0x9a7bc2,this['_model']['id']);}),_0x415c16;}['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(_0x18a9ec,_0x25a79){let _0x599393='';return _0x599393+=_0x18a9ec['split']('*')['map']((_0x5db915,_0x15e303)=>_0x15e303%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5db915)+'</span>':us(_0x5db915))['join'](''),_0x25a79&&(_0x599393+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x25a79['value']+'\x22\x20title=\x22'+_0x25a79['title']+'\x22></span>'),_0x599393;}function us(_0x431c2c){const _0x28bb60=document['createElement']('span');return _0x28bb60['innerText']=_0x431c2c,_0x28bb60['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 _0x54db38{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1d3df5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x16553e){super(_0x16553e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x58cee0=this['editor']['config'];_0x58cee0['define']('trackChanges.SuggestionThreadView',ne),_0x58cee0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x58cee0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x30faa3,_0x46588a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5b6919,_0x24475b]of this['_handleControllerBuffer']){const _0x3367b7=this['_suggestionToController']['has'](_0x5b6919);_0x3367b7||_0x24475b?_0x3367b7&&_0x24475b&&this['_destroyController'](_0x5b6919):this['_initializeController'](_0x5b6919);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x30faa3,_0x46588a);}['init'](){const _0xaf4cb2=this['editor'],_0x29260f=_0xaf4cb2['plugins']['get']('TrackChangesEditing'),_0x5cd03f=_0xaf4cb2['plugins']['get']('Annotations'),_0x38fb6b=_0xaf4cb2['plugins']['get']('EditorAnnotations'),_0x1fb410=_0xaf4cb2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x38fb6b['addSourceCollector'](()=>{const _0xa55f07=[];for(const [_0x226157,_0x4c4e1e]of Array['from'](this['_suggestionToController'])){const _0xbcab2f=_0x226157['getAllAdjacentSuggestions'](),_0x33cb3c=[];for(const _0x5b6747 of _0xbcab2f){if(!_0x5b6747['isInContent'])continue;if(_0x5b6747['isMultiRange']){_0x33cb3c['push'](..._0x5b6747['getRanges']());continue;}const _0x1892dc=_0x5b6747['getFirstRange']();if(_0x33cb3c['length']>0x0){const _0x18096c=_0x33cb3c[0x0]['getJoined'](_0x1892dc);if(_0x18096c){_0x33cb3c[0x0]=_0x18096c;continue;}}_0x33cb3c['push'](_0x1892dc);}_0xa55f07['push']([_0x4c4e1e['view'],_0x33cb3c]);}return _0xa55f07;}),this['listenTo'](_0x29260f,'suggestionLoaded',(_0x532e35,_0x57bbc1)=>{this['listenTo'](_0x57bbc1,'change:previous',(_0x320102,_0x5e783f,_0x148eaf,_0x1a0cb8)=>{_0x57bbc1['isInContent']&&(null==_0x148eaf?(this['_updateController'](_0x1a0cb8['head']),this['_handleSuggestionControllerDelayed'](_0x57bbc1,!0x1)):(this['_updateController'](_0x148eaf['head']),null==_0x1a0cb8&&this['_handleSuggestionControllerDelayed'](_0x57bbc1,!0x0)));}),null!==_0x57bbc1['previous']?this['_updateController'](_0x57bbc1['head']):this['_handleSuggestionControllerDelayed'](_0x57bbc1,!0x1);}),this['listenTo'](_0x29260f,'suggestionUnloaded',(_0x1d8bbe,_0x5eeeea,_0x4644d8)=>{this['stopListening'](_0x5eeeea,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5eeeea),this['_suggestionToController']['has'](_0x5eeeea)&&this['_destroyController'](_0x5eeeea),_0x4644d8&&this['_updateController'](_0x4644d8['head']);}),this['listenTo'](_0x29260f,'suggestionChanged',(_0xcd7097,_0x1ca8c1)=>{this['_updateController'](_0x1ca8c1);}),this['listenTo'](_0x5cd03f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1fb410,'addComment',(_0x214533,{threadId:_0x31bcfa,isFromAdapter:_0x4e92c1})=>{if(_0x4e92c1||!_0x29260f['hasSuggestion'](_0x31bcfa))return;const _0x40c9b0=_0x29260f['getSuggestion'](_0x31bcfa);this['_suggestionToController']['get'](_0x40c9b0)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x212f18=this['editor']['plugins']['get']('Annotations'),_0x1a2528=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43bc3e=Array['from'](_0x212f18['activeAnnotations'],_0x5e64fc=>_0x5e64fc['innerView'])['filter'](_0x2b8a5=>this['_viewToController']['has'](_0x2b8a5)),_0x4fa237=[];for(const _0x20f5b0 of _0x43bc3e){const _0x206836=this['_viewToController']['get'](_0x20f5b0)['model']['getAllAdjacentSuggestions']();_0x4fa237['push'](..._0x206836['reduce']((_0x180acd,_0x2c4dde)=>[..._0x180acd,..._0x2c4dde['getMarkerNames']()],[]));}_0x1a2528['activeMarkers']=_0x4fa237;}['_addUIComponentsToFactory'](){const _0x1eb7be=this['editor'],_0x4f5908=_0x1eb7be['locale'],_0x1eb167=o(_0x4f5908,'Track\x20changes'),_0x9ac67b=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1eb167,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xe9ecf6 of _0x9ac67b)if(ae(_0xe9ecf6)){const _0x2cd342=_0x1eb7be['commands']['get'](_0xe9ecf6['model']['commandName']);_0xe9ecf6['model']['bind']('isOn','isEnabled')['to'](_0x2cd342,'value','isEnabled');}_0x1eb7be['ui']['componentFactory']['add']('trackChanges',_0x3c4843=>this['_createToolbarButton'](_0x3c4843,_0x9ac67b,_0x1eb167)),_0x1eb7be['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2729eb=>this['_createMenuBarMenu'](_0x2729eb,_0x9ac67b,_0x1eb167));}['_createToolbarButton'](_0x19fe6f,_0xb23453,_0x5917cd){const _0x250074=zt(_0x19fe6f,Zt),_0x5b8109=this['editor']['commands']['get']('trackChanges');_0x250074['buttonView']['set']({'tooltip':_0x5917cd,'label':_0x5917cd,'icon':ie}),_0x250074['buttonView']['bind']('isOn')['to'](_0x5b8109,'value'),_0x250074['buttonView']['on']('execute',()=>{_0x5b8109['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x250074,_0xb23453,{'role':'menu'});const _0x19310c=[];for(const _0x514e4e of _0xb23453)ae(_0x514e4e)&&_0x19310c['push'](this['editor']['commands']['get'](_0x514e4e['model']['commandName']));const _0x5b1a50=_0x250074['buttonView'];return _0x5b1a50['actionView']['unbind']('isEnabled'),_0x5b1a50['arrowView']['unbind']('isEnabled'),_0x5b1a50['actionView']['bind']('isEnabled')['to'](_0x5b8109,'isEnabled'),_0x5b1a50['arrowView']['bind']('isEnabled')['toMany'](_0x19310c,'isEnabled',(..._0x1fdbd9)=>_0x1fdbd9['some'](_0x112a57=>_0x112a57)),_0x250074['on']('execute',_0x2b31f9=>{this['editor']['execute'](_0x2b31f9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x250074;}['_createMenuBarMenu'](_0x4a1ebf,_0x3718c3,_0x2b7405){const _0x17dea0=new Kt(_0x4a1ebf),_0x2cb6e6=this['editor']['commands']['get']('trackChanges');_0x17dea0['buttonView']['set']({'label':_0x2b7405,'icon':ie});const _0x4206bd=new Qt(_0x4a1ebf);for(const _0xc47440 of _0x3718c3){if('separator'==_0xc47440['type']){_0x4206bd['items']['add'](new Jt(_0x4a1ebf));continue;}const _0x21bcec=new Xt(_0x4a1ebf,_0x17dea0),_0x2ae583=new Yt(_0x4a1ebf),_0x1535c1=_0xc47440['model'];_0x2ae583['bind'](...Object['keys'](_0x1535c1))['to'](_0x1535c1),_0x2ae583['delegate']('execute')['to'](_0x17dea0),_0x2ae583['on']('execute',()=>{this['editor']['execute'](_0x1535c1['commandName']),this['editor']['editing']['view']['focus']();}),_0x21bcec['children']['add'](_0x2ae583),_0x4206bd['items']['add'](_0x21bcec);}return _0x17dea0['bind']('isEnabled')['to'](_0x2cb6e6,'isEnabled'),_0x17dea0['panelView']['children']['add'](_0x4206bd),_0x17dea0;}['_initializeController'](_0x21e9e0){const _0x68d5e7=this['editor'],_0x36dcc1=_0x68d5e7['config'],_0x23afb7=_0x68d5e7['plugins']['get']('Annotations'),_0x1af4d8=_0x68d5e7['plugins']['get']('CommentsRepository'),_0x5f2ef1=_0x68d5e7['plugins']['get']('EditorAnnotations'),_0x40d3c3=_0x68d5e7['plugins']['get'](_0x1d3df5)['me'],_0x3525e8=_0x36dcc1['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3b9e97,CommentThreadInputView:_0x21c4d8}=_0x68d5e7['plugins']['get']('CommentsUI');let _0x28e680,_0x3d30fc;this['_annotationViews']['has'](_0x21e9e0['id'])?(_0x3d30fc=this['_annotationViews']['get'](_0x21e9e0['id']),_0x28e680=_0x3d30fc['mainView']):(_0x28e680=new _0x3525e8(_0x68d5e7['locale'],_0x21e9e0,_0x40d3c3,{'disableComments':this['_disableComments'],'editorConfig':_0x36dcc1['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x36dcc1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x36dcc1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x36dcc1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x212d68(_0x36dcc1['get']('locale')),'CommentView':_0x36dcc1['get']('comments')['CommentView'],'CommentsListView':_0x3b9e97,'CommentThreadInputView':_0x21c4d8}),_0x28e680['acceptButton']['on']('execute',()=>{_0x68d5e7['editing']['view']['focus']();}),_0x28e680['discardButton']['on']('execute',()=>{_0x68d5e7['editing']['view']['focus']();}),_0x3d30fc=_0x23afb7['createAnnotationView'](this['editor']['locale'],_0x28e680),_0x3d30fc['bind']('isDirty')['to'](_0x28e680,'isDirty'),_0x3d30fc['bind']('length')['to'](_0x28e680),_0x3d30fc['bind']('type')['to'](_0x28e680,'type',_0x2bb080=>'suggestion-'+_0x2bb080),this['_annotationViews']['set'](_0x21e9e0['id'],_0x3d30fc));const _0x3f7b5d=_0x1af4d8['createCommentThreadController'](_0x21e9e0['commentThread'],_0x28e680),_0x592cf2=new oe(_0x68d5e7,_0x21e9e0,_0x28e680,_0x3f7b5d),_0x6a0cd3=_0x21e9e0['getAllAdjacentSuggestions']()['filter'](_0x48a7d5=>_0x48a7d5['isInContent']);_0x28e680['descriptionParts']=_0x68d5e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x6a0cd3),this['_suggestionToController']['set'](_0x21e9e0,_0x592cf2),this['_viewToController']['set'](_0x28e680,_0x592cf2);const _0x1bfe6b=_0x23afb7['createAnnotation']({'view':_0x3d30fc,'target':()=>{const _0x314172=[],_0x10d979=_0x21e9e0['getAllAdjacentSuggestions']()['filter'](_0x41814b=>_0x41814b['isInContent']);for(const _0x511bfd of _0x10d979)_0x314172['push'](..._0x511bfd['getMarkers']());return _0x4b736c(_0x68d5e7['editing'],_0x314172);},'type':()=>'suggestion-'+_0x592cf2['view']['type']});_0x1af4d8['_bindAnnotationToEditors'](_0x28e680,_0x1bfe6b),_0x23afb7['add'](_0x1bfe6b),_0x5f2ef1['registerAnnotation'](_0x1bfe6b);}['_destroyController'](_0x2f1c99){const _0xfec670=this['editor']['plugins']['get']('CommentsRepository'),_0x413130=this['editor']['plugins']['get']('Annotations'),_0x69cab0=this['_suggestionToController']['get'](_0x2f1c99),_0x2f5769=_0x69cab0['view'],_0x328026=_0x413130['getByInnerView'](_0x2f5769);_0xfec670['_unbindEditors'](_0x2f5769),_0x328026&&_0x413130['remove'](_0x328026),this['_suggestionToController']['delete'](_0x2f1c99),this['_viewToController']['delete'](_0x2f5769),_0x69cab0['destroy']();}['_updateController'](_0x3f28e2){if(!_0x3f28e2['isInContent']||!this['_suggestionToController']['has'](_0x3f28e2))return;const _0xbf4cd7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x550735=this['_suggestionToController']['get'](_0x3f28e2),_0x2a5730=_0x3f28e2['getAllAdjacentSuggestions']();_0x550735['view']['descriptionParts']=_0xbf4cd7['descriptionFactory']['getDescriptions'](_0x2a5730);}['destroy'](){for(const _0x3fe5d4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3fe5d4);for(const _0x27cdde of this['_annotationViews']['values']())_0x27cdde['mainView']['destroy']();super['destroy']();}}function ae(_0x20b291){return'model'in _0x20b291;}class k extends _0x54db38{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xc2fa8c){this['editor']['plugins']['get'](p)['adapter']=_0xc2fa8c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x791030){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x791030);}['getSuggestions']({skipNotAttached:_0x5175f8=!0x1,toJSON:_0x1cd885=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5175f8,'toJSON':_0x1cd885});}['getSuggestion'](_0x47752e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x47752e);}}const T=['Pagination'];class P extends _0x54db38{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1bb80e=this['editor'];if(_0x1bb80e['config']['define']('trackChangesData.editorCreator',_0x1e4ec9=>{const _0x1b0492=_0x1bb80e['model']['document']['getRootNames']()['reduce']((_0x4cafd9,_0x3cd1f1)=>(_0x4cafd9[_0x3cd1f1]='',_0x4cafd9),{});return _0x1bb80e['constructor']['create'](_0x1b0492,_0x1e4ec9);}),'function'!=typeof _0x1bb80e['config']['get']('trackChangesData')['editorCreator'])throw new _0x50d316('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4659e6){return N(this['editor'],!0x0,_0x4659e6);}['getDataWithDiscardedSuggestions'](_0x99ba1c){return N(this['editor'],!0x1,_0x99ba1c);}}class D extends _0x54db38{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3560e4){super(_0x3560e4),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(_0x3b0187){return void 0x0!==_0x3b0187['getRootsAttributes'];}async function N(_0x3c2a56,_0x1d44e5,_0x325eb5){const _0x341e1b=_0x581139(_0x3c2a56,T);_0x341e1b['plugins']['push'](p,D),_0x341e1b['rootsAttributes']=v(_0x3c2a56)?_0x3c2a56['getRootsAttributes']():void 0x0;const _0x28109f=document['createDocumentFragment'](),_0x3a65ba=_0x3c2a56['config']['get']('trackChangesData')['editorCreator'],_0x190269=await _0x3a65ba(_0x341e1b,()=>function(_0x2e4b20){const _0x5b18be=document['createElement']('div');return _0x2e4b20['appendChild'](_0x5b18be),_0x5b18be;}(_0x28109f));!function(_0x5b1f15,_0x28e5d5){const _0x841bab=_0x5b1f15['model']['document']['getRootNames']()['reduce']((_0x297755,_0x108bb8)=>(_0x297755[_0x108bb8]=_0x5b1f15['data']['get']({'rootName':_0x108bb8}),_0x297755),{}),_0x33494c=_0x5b1f15['plugins']['get']('Users')['users']['map'](_0x107bd8=>({'id':_0x107bd8['id'],'name':_0x107bd8['name']})),_0x171539=_0x5b1f15['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x6b7ef6=_0x5b1f15['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26a123=_0x28e5d5['plugins']['get']('Users'),_0x190cbc=_0x28e5d5['plugins']['get']('TrackChangesEditing'),_0x58dc89=_0x28e5d5['plugins']['get']('CommentsRepository');for(const _0x3a6808 of _0x33494c)_0x26a123['getUser'](_0x3a6808['id'])||_0x26a123['addUser'](_0x3a6808);_0x26a123['me']||_0x26a123['useAnonymousUser']();for(const _0x21faa6 of _0x6b7ef6)_0x58dc89['addCommentThread'](_0x21faa6);for(const _0x656a45 of _0x171539)_0x190cbc['addSuggestionData'](_0x656a45);_0x28e5d5['data']['set'](_0x841bab);}(_0x3c2a56,_0x190269),_0x190269['execute'](_0x1d44e5?'acceptAllSuggestions':'discardAllSuggestions');const _0x51ffff=v(_0x190269)?_0x190269['getFullData'](_0x325eb5):_0x190269['data']['get'](_0x325eb5);return await _0x190269['destroy'](),_0x51ffff;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x462782,PendingActions as _0xd5ee65,icons as _0x68a7a3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x418606,ObservableMixin as _0x55c595,uid as _0xeabe53,insertToPriorityArray as _0x522383,priorities as _0xbf3aa1,logWarning as _0x4f8950,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3ba08d,View as _0x4d6504,ButtonView as _0x360e0f,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 _0x537a23,hashObject as _0x1aadbe,surroundingMarkersDetector as _0x244eaa,trimHtml as _0x1d2bcd,UserView as _0x457804,getDateTimeFormatter as _0x5f0809,getAllMarkersDomElementsSorted as _0x4d7bd0,sanitizeEditorConfig as _0x4346ae}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x354e14,LiveRange as _0x3a5b18,LivePosition as _0xc2eba5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xfd2bd8,toWidget as _0x18a5d4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2e89cc,set as _0x215068,isEqual as _0x3d3015,unset as _0x2be26a,omit as Bt}from'lodash-es';import{Delete as _0x28bf79,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1e7b8b,ShiftEnter as _0x2477d3}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x2869ca,_0x49918d){super(_0x2869ca),this['_enabledCommands']=_0x49918d,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 _0x3e593b of this['editor']['commands']['commands']())_0x3e593b['affectsData']&&!this['_enabledCommands']['has'](_0x3e593b)&&_0x3e593b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3b2f43 of this['editor']['commands']['commands']())_0x3b2f43['affectsData']&&!this['_enabledCommands']['has'](_0x3b2f43)&&_0x3b2f43['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x5eca64,_0x22cbac){super(_0x5eca64),this['_suggestions']=_0x22cbac,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x455aad){const _0x314c37=this['_suggestions']['get'](_0x455aad);if(!_0x314c37)throw new _0x418606('track-changes-accept-suggestion-not-found',this);const _0x1104fc=_0x314c37['getRanges']();this['editor']['model']['canEditAt'](_0x1104fc)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x314c37);}}class B extends ts{['_suggestions'];constructor(_0x1b3068,_0x231e41){super(_0x1b3068),this['_suggestions']=_0x231e41,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x51925a){const _0x42408a=this['_suggestions']['get'](_0x51925a);if(!_0x42408a)throw new _0x418606('track-changes-discard-suggestion-not-found',this);const _0x32d583=_0x42408a['getRanges']();this['editor']['model']['canEditAt'](_0x32d583)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x42408a);}}function ss(_0xe1d5ed){return _0xe1d5ed['sort']((_0x18596a,_0x3a0df8)=>'deletion'==_0x18596a['type']&&'deletion'!=_0x3a0df8['type']?-0x1:'deletion'!=_0x18596a['type']&&'deletion'==_0x3a0df8['type']?0x1:0x0);}function to(_0x1df157,_0x778c9){let _0x32b732,_0x6d00bf=0x0;const _0x10772b=[],_0x2a043b=_0x778c9['schema'];for(;_0x6d00bf<_0x1df157['length'];){const _0x54f0dd=_0x1df157[_0x6d00bf],_0x3f66e7=_0x1df157[_0x6d00bf+0x1];_0x32b732||(_0x32b732=_0x778c9['createPositionBefore'](_0x54f0dd)),co(_0x778c9,_0x54f0dd,_0x3f66e7)||(_0x10772b['push'](_0x778c9['createRange'](_0x32b732,_0x2a043b['isObject'](_0x54f0dd)?_0x778c9['createPositionAfter'](_0x54f0dd):_0x778c9['createPositionAt'](_0x54f0dd,'end'))),_0x32b732=null),_0x6d00bf++;}return _0x10772b;}function co(_0x2e9660,_0x1a9513,_0x20e37c){if(!_0x20e37c)return!0x1;const _0x480b70=_0x2e9660['createPositionAfter'](_0x1a9513),_0x1690cd=_0x2e9660['createPositionBefore'](_0x20e37c);return _0x480b70['isTouching'](_0x1690cd);}function rs(_0x1ad615,_0x12f212,_0x4fef14){for(;_0x4fef14['length'];){const _0x17dc85=_0x4fef14['splice'](0x0,0x64);_0x1ad615['change'](()=>{for(const _0x5e285b of _0x17dc85)_0x5e285b['isInContent']&&_0x12f212['execute'](_0x5e285b['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x512690,_0x4d4b23,_0x164991){super(_0x512690),this['_command']=_0x4d4b23,this['_suggestions']=_0x164991,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x31514b=Array['from'](this['_suggestions']['values']())['some'](_0x38fa6e=>_0x38fa6e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x31514b;}['execute'](){const _0x183ce4=ss(Array['from'](this['_suggestions']['values']()));for(const _0x37b2db of _0x183ce4){const _0x1500de=_0x37b2db['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1500de))return;}rs(this['editor']['model'],this['_command'],_0x183ce4);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x101861,_0x140f98,_0xfe38eb){super(_0x101861),this['_command']=_0x140f98,this['_suggestions']=_0xfe38eb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x379220=this['editor']['model']['document']['selection'],_0x1c726a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x54d820,_0x55cf0e){const _0x25b755=Array['from'](_0x54d820['getRanges']()),_0x23ef16=new Set();for(const _0x583f47 of _0x55cf0e)if(_0x583f47['isInContent']){for(const _0x13a793 of _0x25b755)for(const _0x39ea03 of _0x583f47['getRanges']())(_0x13a793['isIntersecting'](_0x39ea03)||_0x54d820['isCollapsed']&&!_0x583f47['isMultiRange']&&_0x583f47['next']&&_0x39ea03['end']['isTouching'](_0x13a793['start']))&&_0x23ef16['add'](_0x583f47);}return _0x23ef16;}(_0x379220,_0x1c726a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x246e9f=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5227ac of _0x246e9f){const _0x340404=_0x5227ac['getRanges']();if(!this['editor']['model']['canEditAt'](_0x340404))return;}rs(this['editor']['model'],this['_command'],_0x246e9f);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x55c595(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1117db,_0x116908){super(),this['id']=_0x116908['id'],this['type']=_0x116908['type'],this['subType']=_0x116908['subType']||null,this['author']=_0x116908['author'],this['creator']=_0x116908['creator']||_0x116908['author'],this['isExternal']=Boolean(_0x116908['attributes']&&_0x116908['attributes']['@external']),this['data']=null,this['_model']=_0x1117db,this['_onAccept']=_0x116908['onAccept'],this['_onDiscard']=_0x116908['onDiscard'],this['_onAttributesChange']=_0x116908['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x116908['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 _0x22dd88=this;for(;_0x22dd88['previous'];)_0x22dd88=_0x22dd88['previous'];return _0x22dd88;}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'](_0xeb070e){this['_markerNames']['add'](_0xeb070e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x56db00=>this['_model']['markers']['get'](_0x56db00))['filter'](_0x19cd76=>_0x19cd76);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x6d92ed=>{for(const _0x429402 of this['getMarkers']())_0x6d92ed['removeMarker'](_0x429402);}),this['_markerNames']['clear']();}['removeMarker'](_0x4f4bba){this['_model']['change'](_0xa78f12=>{_0xa78f12['removeMarker'](_0x4f4bba);}),this['_markerNames']['delete'](_0x4f4bba);}['addRange'](_0x3f61ac){const _0x546439='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x546439),this['_model']['change'](_0x5beeff=>{_0x5beeff['addMarker'](_0x546439,{'range':_0x3f61ac,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xce9cb0){for(const _0x2d59fe of this['getRanges']())if(_0x2d59fe['isIntersecting'](_0xce9cb0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4c15e8=>_0x4c15e8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x282a37,_0xe0dbb9)=>[..._0x282a37,..._0xe0dbb9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2a0f7d=this['getRanges']();if(0x1!=_0x2a0f7d['length'])return null;const _0x4baea1=_0x2a0f7d[0x0],_0x3a9471=_0x4baea1['start']['nodeAfter'],_0x2516d8=_0x4baea1['end']['nodeBefore'];return _0x3a9471 instanceof _0x354e14?_0x3a9471!=_0x2516d8?null:_0x3a9471: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 _0x2c2595=[];let _0x30c32f=this['head'];for(;_0x30c32f;)_0x2c2595['push'](_0x30c32f),_0x30c32f=_0x30c32f['next'];return _0x2c2595;}['setAttribute'](_0x42c78d,_0x2e1ed2){const _0x2dba0b=_0x2e89cc(this['attributes']);_0x215068(_0x2dba0b,_0x42c78d,_0x2e1ed2),_0x3d3015(_0x2dba0b,this['attributes'])||(this['attributes']=_0x2dba0b,this['_onAttributesChange'](_0x2dba0b));}['removeAttribute'](_0xaf4fad){const _0x5b4fbb=_0x2e89cc(this['attributes']);_0x2be26a(_0x5b4fbb,_0xaf4fad),_0x3d3015(_0x5b4fbb,this['attributes'])||(this['attributes']=_0x5b4fbb,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 _0xeabe53()['substr'](0x1,0x5);}}function o(_0x225ba2,_0x5ba249,_0x20dd7c){const t=_0x225ba2['t'];switch(_0x5ba249){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',_0x20dd7c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x20dd7c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x20dd7c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x20dd7c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x20dd7c);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',_0x20dd7c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x20dd7c);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',_0x20dd7c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x20dd7c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x20dd7c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x20dd7c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x20dd7c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x20dd7c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x20dd7c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x20dd7c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x20dd7c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x20dd7c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x20dd7c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x20dd7c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x20dd7c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x20dd7c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x20dd7c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x20dd7c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x20dd7c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x20dd7c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x20dd7c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x20dd7c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x20dd7c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x20dd7c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x20dd7c);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'},_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x20dd7c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x20dd7c);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'},_0x20dd7c);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'},_0x20dd7c);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 _0x5ba249;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3a6ac0,_0x3a3dae){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3a6ac0,this['_locale']=_0x3a3dae;}['getDescriptions'](_0x1f618b){const _0x508686=[],_0x319730=new Set(),_0x525ad0=new Set();for(let _0x107356=0x0;_0x107356<_0x1f618b['length'];_0x107356++){const _0x4d77e6=_0x1f618b[_0x107356];if(!_0x4d77e6['isInContent'])continue;const _0x5f1922=this['_handleCustomCallbackDescription'](_0x4d77e6);if(_0x5f1922){if(null!=_0x4d77e6['subType']){if(_0x319730['has'](_0x4d77e6['subType']))continue;_0x319730['add'](_0x4d77e6['subType']);}_0x508686['push'](_0x5f1922);}else{if('attribute'!=_0x4d77e6['type'])'insertion'!=_0x4d77e6['type']&&'deletion'!=_0x4d77e6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x508686,_0x4d77e6,_0x1f618b[_0x107356+0x1]);else{const _0x73b942=_0x4d77e6['data']['key'];if(_0x525ad0['has'](_0x73b942))continue;_0x525ad0['add'](_0x4d77e6['data']['key']),_0x73b942==m?this['_handleRenameSuggestionDescription'](_0x508686,_0x4d77e6):this['_handleAttributeSuggestionDescription'](_0x508686,_0x4d77e6);}}}return this['_resolveDescriptionItems'](_0x508686);}['registerDescriptionCallback'](_0x2f46a5){this['_customCallbacks']['push'](_0x2f46a5);}['registerElementLabel'](_0x301878,_0x5447d8,_0x5dbd21=_0xbf3aa1['normal']){'function'==typeof _0x301878?_0x522383(this['_itemLabelsCallbacks'],{'matchingCallback':_0x301878,'label':_0x5447d8,'priority':_0x5dbd21}):this['_itemLabels']['set'](_0x301878,_0x5447d8);}['registerAttributeLabel'](_0x3f4dbb,_0x3b1958){this['_attributeLabels']['set'](_0x3f4dbb,_0x3b1958);}['getItemLabel'](_0x8ee056,_0x491658=0x1){let _0x92e843;for(const _0x3e7b0e of this['_itemLabelsCallbacks'])if(_0x3e7b0e['matchingCallback'](_0x8ee056)){_0x92e843=_0x3e7b0e['label'];break;}return _0x92e843||(_0x92e843=this['_itemLabels']['get'](_0x8ee056['name'])),_0x92e843?_0x92e843(_0x491658):0x1!==_0x491658?_0x491658+'\x20'+_0x8ee056['name']+'s':''+_0x8ee056['name'];}['_addDescriptionItems'](_0x238603,_0x5b9cfd){const _0x5ba673=_0x5b9cfd['getFirstRange']()['getWalker'](),_0x4e33e2='insertion'==_0x5b9cfd['type']?'add':'remove';for(const _0x45c9f1 of _0x5ba673){const _0x461e14=_0x45c9f1['item'],_0x37876a=_0x238603[_0x238603['length']-0x1];if(_0x461e14['is']('$textProxy'))_0x37876a&&_0x37876a['type']['indexOf']('Container')>-0x1&&_0x238603['pop'](),_0x37876a&&'text'==_0x37876a['type']?_0x37876a[_0x4e33e2]+=_0x461e14['data']:_0x238603['push']({'type':'text','add':'add'==_0x4e33e2?_0x461e14['data']:'','remove':'remove'==_0x4e33e2?_0x461e14['data']:''});else{if(this['_schema']['isObject'](_0x461e14)){const _0x550d71=_0x461e14;if(_0x37876a&&_0x37876a['type']['indexOf']('Container')>-0x1&&_0x238603['pop'](),'elementEnd'==_0x45c9f1['type'])continue;_0x37876a&&_0x37876a['type']==_0x4e33e2+'Object'&&_0x37876a['element']['name']==_0x550d71['name']?_0x37876a['quantity']++:_0x238603['push']({'type':_0x4e33e2+'Object','element':_0x550d71,'quantity':0x1}),_0x5ba673['skip'](_0x35c1fd=>!('elementEnd'==_0x35c1fd['type']&&_0x35c1fd['item']==_0x461e14));}else{if(this['_schema']['checkChild'](_0x461e14,'$text')||_0x461e14['is']('element','softBreak')){const _0x2db70a=_0x461e14;if('add'==_0x4e33e2&&'elementStart'==_0x45c9f1['type']||'remove'==_0x4e33e2&&'elementEnd'==_0x45c9f1['type'])continue;if(_0x37876a&&-0x1==_0x37876a['type']['indexOf']('Container')){'text'==_0x37876a['type']&&(_0x37876a[_0x4e33e2]+='\x0a');continue;}let _0x2adeb0;if(_0x2adeb0='add'==_0x4e33e2?_0x2db70a['nextSibling']&&!this['_schema']['isObject'](_0x2db70a['nextSibling'])?_0x2db70a['nextSibling']:null:_0x2db70a['previousSibling']&&!this['_schema']['isObject'](_0x2db70a['previousSibling'])?_0x2db70a['previousSibling']:null,_0x2db70a['isEmpty']||_0x2adeb0&&_0x2adeb0['isEmpty']){const _0x5e92c1=_0x2adeb0&&_0x2adeb0['isEmpty']?_0x2adeb0:_0x2db70a;_0x37876a&&_0x37876a['type']==_0x4e33e2+'EmptyContainer'&&_0x37876a['element']['name']==_0x5e92c1['name']?_0x37876a['quantity']++:_0x238603['push']({'type':_0x4e33e2+'EmptyContainer','element':_0x5e92c1,'quantity':0x1});}else _0x238603['push']({'type':_0x4e33e2+'Container','element':_0x2db70a});}}}}}['_resolveDescriptionItems'](_0x125bb0){const _0x1f70ce=this['_locale'],_0x2291b4=[],_0x1c013a=[],_0x280e5d=[];for(const _0x39df4f of _0x125bb0)switch(_0x39df4f['type']){case'text':if(_0x39df4f['add']=_0x39df4f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x39df4f['remove']=_0x39df4f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x39df4f['add']&&''!=_0x39df4f['remove']){_0x2291b4['push']({'type':'replace','content':o(_0x1f70ce,'REPLACE_TEXT',['\x22'+_0x39df4f['remove']+'\x22','\x22'+_0x39df4f['add']+'\x22'])});continue;}if(null!=_0x39df4f['add']['match'](/^ +$/)){_0x2291b4['push']({'type':'insertion','content':o(_0x1f70ce,'*Insert:*\x20%0',o(_0x1f70ce,'ELEMENT_SPACE',_0x39df4f['add']['length']))});continue;}if(null!=_0x39df4f['remove']['match'](/^ +$/)){_0x2291b4['push']({'type':'deletion','content':o(_0x1f70ce,'*Remove:*\x20%0',o(_0x1f70ce,'ELEMENT_SPACE',_0x39df4f['remove']['length']))});continue;}if(''!=_0x39df4f['add']){_0x2291b4['push']({'type':'insertion','content':o(_0x1f70ce,'*Insert:*\x20%0','\x22'+_0x39df4f['add']+'\x22')});continue;}_0x2291b4['push']({'type':'deletion','content':o(_0x1f70ce,'*Remove:*\x20%0','\x22'+_0x39df4f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2291b4['push']({'type':'insertion','content':o(_0x1f70ce,'*Insert:*\x20%0',this['getItemLabel'](_0x39df4f['element'],_0x39df4f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2291b4['push']({'type':'deletion','content':o(_0x1f70ce,'*Remove:*\x20%0',this['getItemLabel'](_0x39df4f['element'],_0x39df4f['quantity']))});continue;case'addContainer':_0x2291b4['push']({'type':'insertion','content':o(_0x1f70ce,'*Split:*\x20%0',this['getItemLabel'](_0x39df4f['element'],_0x39df4f['quantity']))});continue;case'removeContainer':_0x2291b4['push']({'type':'deletion','content':o(_0x1f70ce,'*Merge:*\x20%0',this['getItemLabel'](_0x39df4f['element'],_0x39df4f['quantity']))});continue;case'addFormat':_0x1c013a['push'](_0x39df4f['key']);continue;case'removeFormat':_0x280e5d['push'](_0x39df4f['key']);continue;default:_0x2291b4['push'](_0x39df4f);}if(_0x1c013a['length']){const _0x280868=_0x1c013a['map'](_0x55a681=>this['_attributeLabels']['has'](_0x55a681)?this['_attributeLabels']['get'](_0x55a681):_0x55a681)['join'](',\x20');_0x2291b4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x280868)});}if(_0x280e5d['length']){const _0x4a989c=_0x280e5d['map'](_0x19e1fb=>this['_attributeLabels']['has'](_0x19e1fb)?this['_attributeLabels']['get'](_0x19e1fb):_0x19e1fb)['join'](',\x20');_0x2291b4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a989c)});}return _0x2291b4;}['_handleCustomCallbackDescription'](_0x3c0e5f){for(const _0x9dc65f of this['_customCallbacks']){const _0x28332c=_0x9dc65f(_0x3c0e5f);if(_0x28332c&&'type'in _0x28332c)return _0x28332c;}}['_handleAttributeSuggestionDescription'](_0x15d8db,_0x2dfb69){const _0x33395a=_0x2dfb69['data'],_0x4d9dc7=void 0x0===_0x33395a['newValue']?'removeFormat':'addFormat';_0x15d8db['push']({'type':_0x4d9dc7,'key':_0x33395a['key']});}['_handleRenameSuggestionDescription'](_0x45846a,_0x3bebe2){_0x45846a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3bebe2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x204a2c,_0x2cc282,_0x37d066){if(this['_addDescriptionItems'](_0x204a2c,_0x2cc282),_0x37d066&&_0x37d066['getFirstRange']()&&!_0x2cc282['getFirstRange']()['end']['isEqual'](_0x37d066['getFirstRange']()['start'])){const _0x1a060d=_0x204a2c[_0x204a2c['length']-0x1],_0x4c8341='insertion'==_0x2cc282['type']?'add':'remove';_0x1a060d&&'text'==_0x1a060d['type']&&(_0x1a060d[_0x4c8341]+='\x0a');}}}class E extends _0x462782{['afterInit'](){const _0x43f799=this['editor'],_0xa06d5f=_0x43f799['plugins']['get']('TrackChangesEditing');_0x43f799['commands']['get']('showAIAssistant')&&_0xa06d5f['enableCommand']('showAIAssistant');}}class V extends _0x462782{['afterInit'](){const _0x4cb229=this['editor'],_0x3c8c98=_0x4cb229['locale'];if(!_0x4cb229['plugins']['has']('AlignmentEditing'))return;const _0x3a798e=_0x4cb229['plugins']['get']('TrackChangesEditing');_0x3a798e['enableDefaultAttributesIntegration']('alignment'),_0x3a798e['registerBlockAttribute']('alignment'),_0x3a798e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3c8c98,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ae6fc=this['editor'],_0x56fc35=_0x3ae6fc['locale'];_0x3ae6fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f3145=>{if('formatBlock'!=_0x5f3145['type'])return;const {data:_0x3cd387}=_0x5f3145;if(_0x3cd387&&'alignment'==_0x3cd387['commandName']){const _0x362f14=_0x3cd387['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x56fc35,'*Format:*\x20%0',function(_0xd0fb06){switch(_0xd0fb06){case'left':return o(_0x56fc35,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x56fc35,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x56fc35,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x56fc35,'FORMAT_JUSTIFY_TEXT');}}(_0x362f14))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x462782{['afterInit'](){const _0x1a513f=this['editor'],_0x18e295=_0x1a513f['plugins']['get']('TrackChangesEditing'),_0x53ac08=_0x1a513f['locale'];for(const _0x2c1cc7 of ti){if(!_0x1a513f['plugins']['has'](_0x2c1cc7))continue;const _0x46cd22=_0x2c1cc7['slice'](0x0,-0x7)['toLowerCase'](),_0x2017fd='FORMAT_'+_0x46cd22['toUpperCase']();_0x18e295['enableDefaultAttributesIntegration'](_0x46cd22),_0x18e295['registerInlineAttribute'](_0x46cd22),_0x18e295['descriptionFactory']['registerAttributeLabel'](_0x46cd22,o(_0x53ac08,_0x2017fd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b7dba=this['editor'],_0x2f2694=_0x2b7dba['locale'],_0x12c61e=_0x2b7dba['plugins']['get']('TrackChangesEditing');function _0x4367a6(_0x33234f,_0x50c788){_0x12c61e['descriptionFactory']['registerDescriptionCallback'](_0x157b14=>{if('formatInline'!=_0x157b14['type'])return;const {data:_0x4c5c7c}=_0x157b14;return _0x4c5c7c&&_0x4c5c7c['commandName']===_0x33234f?_0x4c5c7c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f2694,'*Format:*\x20%0',_0x50c788)}:{'type':'format','content':o(_0x2f2694,'*Remove\x20format:*\x20%0',_0x50c788)}:void 0x0;});}_0x4367a6('bold',o(_0x2f2694,'FORMAT_BOLD')),_0x4367a6('italic',o(_0x2f2694,'FORMAT_ITALIC')),_0x4367a6('underline',o(_0x2f2694,'FORMAT_UNDERLINE')),_0x4367a6('code',o(_0x2f2694,'FORMAT_CODE')),_0x4367a6('strikethrough',o(_0x2f2694,'FORMAT_STRIKETHROUGH')),_0x4367a6('subscript',o(_0x2f2694,'FORMAT_SUBSCRIPT')),_0x4367a6('superscript',o(_0x2f2694,'FORMAT_SUPERSCRIPT'));}}class O extends _0x462782{['afterInit'](){const _0x5a1e96=this['editor'],_0x5dd2ec=_0x5a1e96['locale'];if(!_0x5a1e96['plugins']['has']('BlockQuoteEditing'))return;const _0x4fea80=_0x5a1e96['plugins']['get']('TrackChangesEditing'),_0xaa39c5=this['editor']['commands']['get']('blockQuote');_0x4fea80['enableCommand']('blockQuote',(_0x504a6b,_0x57f183={})=>{const _0xacd769=this['editor']['model']['document']['selection'],_0x3b87b7=_0x57f183&&void 0x0!==_0x57f183['forceValue']?_0x57f183['forceValue']:!_0xaa39c5['value'];let _0x1a5aad=[];if(_0x3b87b7){const _0x4207e9=Array['from'](_0xacd769['getSelectedBlocks']())['filter'](_0x262c44=>oo(_0x262c44)||function(_0x41d0ce,_0x44c9e3){const _0x533063=_0x44c9e3['checkChild'](_0x41d0ce['parent'],'blockQuote'),_0x360bfb=_0x44c9e3['checkChild'](['$root','blockQuote'],_0x41d0ce);return _0x533063&&_0x360bfb;}(_0x262c44,this['editor']['model']['schema']));_0x1a5aad=to(_0x4207e9,_0x5a1e96['model']);}else{const _0x5c5fa3=Array['from'](_0xacd769['getSelectedBlocks']())['filter'](_0x2cfe4a=>oo(_0x2cfe4a));_0x1a5aad=to(_0x5c5fa3,_0x5a1e96['model']);}_0x5a1e96['model']['change'](()=>{for(const _0x227011 of _0x1a5aad)_0x4fea80['markBlockFormat'](_0x227011,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3b87b7}]});});}),_0x4fea80['descriptionFactory']['registerDescriptionCallback'](_0x30f4fb=>{const {data:_0xef6d04}=_0x30f4fb;if(_0xef6d04&&'blockQuote'==_0xef6d04['commandName']){const _0x5ae7ef=o(_0x5dd2ec,'ELEMENT_BLOCK_QUOTE');return _0xef6d04['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dd2ec,'*Set\x20format:*\x20%0',_0x5ae7ef)}:{'type':'format','content':o(_0x5dd2ec,'*Remove\x20format:*\x20%0',_0x5ae7ef)};}});}}function oo(_0x26b45e){return'blockQuote'==_0x26b45e['parent']['name'];}class G extends _0x462782{['afterInit'](){const _0x16218c=this['editor'];_0x16218c['plugins']['has']('CaseChange')&&(_0x16218c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x16218c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x16218c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x462782{['afterInit'](){const _0x5e5ef9=this['editor'];_0x5e5ef9['commands']['get']('ckbox')&&_0x5e5ef9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x462782{['afterInit'](){const _0x100aa8=this['editor'];if(!_0x100aa8['plugins']['has']('CodeBlock'))return;const _0x1012dc=_0x100aa8['plugins']['get']('TrackChangesEditing'),_0x5d4543=_0x100aa8['locale'],_0x47c352=_0x100aa8['config']['get']('codeBlock')['languages'],_0x141ffc=_0x100aa8['commands']['get']('codeBlock');_0x1012dc['enableCommand']('indentCodeBlock'),_0x1012dc['enableCommand']('outdentCodeBlock'),_0x1012dc['enableCommand']('codeBlock',(_0x55b58d,_0x2dd884={})=>{const _0x2f30ad=_0x100aa8['model'],_0x3ec13b=_0x100aa8['model']['document']['selection'],_0x210101=_0x2dd884&&void 0x0!==_0x2dd884['forceValue']?_0x2dd884['forceValue']:!_0x141ffc['value'];let _0x1340d7;_0x2dd884['language']||(_0x2dd884['language']=_0x47c352[0x0]['language']),_0x1340d7=_0x210101?Array['from'](_0x3ec13b['getSelectedBlocks']())['filter'](_0x2eb0bf=>eo(_0x2eb0bf)||function(_0x5751ba,_0xaa0944){if(_0x5751ba['is']('rootElement')||_0xaa0944['isLimit'](_0x5751ba))return!0x1;return _0xaa0944['checkChild'](_0x5751ba['parent'],'codeBlock');}(_0x2eb0bf,_0x2f30ad['schema'])):Array['from'](_0x3ec13b['getSelectedBlocks']())['filter'](_0x58dc6c=>eo(_0x58dc6c));const _0x4cd6ed=to(_0x1340d7,_0x2f30ad);_0x2f30ad['change'](()=>{for(const _0xc4bb65 of _0x4cd6ed)_0x1012dc['markBlockFormat'](_0xc4bb65,{'commandName':'codeBlock','commandParams':[{..._0x2dd884,'forceValue':_0x210101}],'formatGroupId':'blockName'});});}),(_0x1012dc['descriptionFactory']['registerElementLabel']('codeBlock',_0x3a08fa=>o(_0x5d4543,'ELEMENT_CODE_BLOCK',_0x3a08fa)),_0x1012dc['descriptionFactory']['registerDescriptionCallback'](_0x4266eb=>{if('formatBlock'!=_0x4266eb['type'])return;const _0x16cf5f=_0x5d4543['t'],{data:_0xae74b7}=_0x4266eb;if(!_0xae74b7||'codeBlock'!=_0xae74b7['commandName'])return;const _0x3d1ca1=_0xae74b7['commandParams'][0x0]['language'],_0x264932=_0x16cf5f(_0x47c352['find'](_0x357ff2=>_0x357ff2['language']===_0x3d1ca1)['label'])['toLowerCase']();return _0xae74b7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d4543,'*Set\x20format:*\x20%0',o(_0x5d4543,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x264932+')')}:{'type':'format','content':o(_0x5d4543,'*Remove\x20format:*\x20%0',o(_0x5d4543,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x188a64){return'codeBlock'==_0x188a64['name'];}class H extends _0x462782{['afterInit'](){const _0x560d91=this['editor'];if(!_0x560d91['plugins']['has']('CommentsEditing'))return;_0x560d91['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x18489f,_0x575010,_0x3d6b4a){const _0x11aec1=[];for(const _0x3dc0f3 of _0x575010['getItems']())_0x3dc0f3['hasAttribute'](_0x18489f)&&_0x11aec1['push'](_0x3d6b4a['createRangeOn'](_0x3dc0f3));return _0x11aec1;}function _e(_0x4f0cc6,_0x23087d,{showActiveMarker:_0x2088e0=!0x0}={}){const _0x3f07b3=_0x4f0cc6['plugins']['get']('TrackChangesEditing');return(_0x52a86c,_0x165392,_0x41b5a2)=>{if(!_0x41b5a2['consumable']['test'](_0x165392['markerRange'],_0x52a86c['name']))return;const _0x1b1de7=_0x165392['markerRange']['getWalker'](),_0x50d56e=_0x165392['markerRange']['start'],_0xe1d70e=_0x4f0cc6['model']['schema'];let _0x4ea279=null,_0x223034=null,_0x1004e8=!0x1,_0x19eb16=!0x1;for(const _0x407dc2 of _0x1b1de7){const _0x15c79b=_0x407dc2['item'];_0x1004e8=_0x1004e8||_0xe1d70e['isContent'](_0x15c79b);const _0x190133=_0x41b5a2['mapper']['toViewElement'](_0x15c79b);if(_0x190133&&_0x190133['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x407dc2['type']&&(_0xe1d70e['isBlock'](_0x15c79b)&&!_0xe1d70e['isLimit'](_0x15c79b)&&(_0x15c79b['nextSibling']||_0x50d56e['isAtEnd']?_0x4ea279&&_0x4ea279['parent']==_0x15c79b||(_0x4ea279=_0x15c79b,_0x2e0af7(_0x407dc2['previousPosition']),_0x19eb16=!0x0):_0x223034=_0x223034||_0x407dc2['previousPosition']));}function _0x2e0af7(_0x4628f4){const _0x3f9c7d=_0x41b5a2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23087d}),_0xf05809=_0x41b5a2['mapper']['toViewPosition'](_0x4628f4);_0x2088e0&&_0x3f07b3['activeMarkers']['includes'](_0x165392['markerName'])&&_0x41b5a2['writer']['addClass']('ck-suggestion-marker--active',_0x3f9c7d),_0x41b5a2['writer']['insert'](_0xf05809,_0x3f9c7d),_0x41b5a2['mapper']['bindElementToMarker'](_0x3f9c7d,_0x165392['markerName']);}_0x1004e8||_0x19eb16||!_0x223034||_0x2e0af7(_0x223034);};}class q extends _0x462782{static get['requires'](){return[_0x28bf79];}['init'](){const _0x5f31c4=this['editor'],_0x3d5583=_0x5f31c4['plugins']['get']('TrackChangesEditing');_0x3d5583['enableCommand']('delete');const _0x3439af=_0x5f31c4['commands']['get']('deleteForward');_0x3d5583['enableCommand']('deleteForward',(_0x316b8a,_0x37a908={})=>{const _0x3bb044=_0x5f31c4['model']['createSelection'](_0x5f31c4['model']['document']['selection']);_0x3bb044['isCollapsed']&&_0x5f31c4['model']['modifySelection'](_0x3bb044,{'direction':'forward','unit':_0x37a908['unit']});const _0x2cde90=_0x3bb044['getFirstRange'](),_0x10a76d=_0x3a5b18['fromRange'](_0x2cde90);let _0xd497d0;_0x316b8a(_0x37a908),_0xd497d0='$graveyard'==_0x10a76d['root']['rootName']?_0x5f31c4['model']['createRange'](_0x2cde90['start']):_0x5f31c4['model']['createRange'](_0x10a76d['start'],_0x10a76d['end']),_0x10a76d['detach'](),_0x5f31c4['model']['enqueueChange'](_0x3439af['buffer']['batch'],_0x729984=>{_0x3439af['buffer']['lock'](),_0x729984['setSelection'](_0x729984['createRange'](_0xd497d0['end'])),_0x3439af['buffer']['unlock']();});}),_0x5f31c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5f31c4,'merge'),{'priority':'high'}),_0x5f31c4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x33051a,_0x4d793b,_0x4e7109)=>{_0x4e7109['options']['showSuggestionHighlights']&&_e(_0x5f31c4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x33051a,_0x4d793b,_0x4e7109);},{'priority':'high'}),_0x5f31c4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x253236,_0x5f5927,_0x5a679d)=>{const _0x416b7a=_0x5a679d['mapper']['markerNameToElements'](_0x5f5927['markerName']);if(_0x416b7a){for(const _0x1f3d22 of _0x416b7a)_0x1f3d22['is']('uiElement')&&(_0x5a679d['mapper']['unbindElementFromMarkerName'](_0x1f3d22,_0x5f5927['markerName']),_0x5a679d['writer']['remove'](_0x1f3d22));}},{'priority':'high'});}}class z extends _0x462782{['afterInit'](){const _0x4739dc=this['editor'];if(!_0x4739dc['plugins']['has']('ListEditing'))return;const _0x5b408c=_0x4739dc['locale'],_0x356623=_0x4739dc['plugins']['get']('TrackChangesEditing'),_0x1deb53=_0x4739dc['plugins']['has']('TodoListEditing'),_0x222fcf=!!_0x4739dc['config']['get']('list.multiBlock');function _0x3df825(_0x4c2458){return{'type':'format','content':''+o(_0x5b408c,'*Set\x20format:*\x20%0',_0x4c2458)};}function _0x158197(_0x28109c){return{'type':'format','content':''+o(_0x5b408c,'*Remove\x20format:*\x20%0',_0x28109c)};}_0x356623['enableDefaultAttributesIntegration']('numberedList'),_0x356623['enableDefaultAttributesIntegration']('bulletedList'),_0x356623['enableDefaultAttributesIntegration']('customNumberedList'),_0x356623['enableDefaultAttributesIntegration']('customBulletedList'),_0x356623['enableDefaultAttributesIntegration']('indentList'),_0x356623['enableDefaultAttributesIntegration']('outdentList'),_0x356623['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x356623['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x356623['registerBlockAttribute']('listItemId'),_0x356623['registerBlockAttribute']('listType'),_0x356623['registerBlockAttribute']('listIndent'),_0x222fcf&&(_0x356623['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x356623['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1deb53&&(_0x356623['enableDefaultAttributesIntegration']('todoList'),_0x356623['enableDefaultAttributesIntegration']('checkTodoList'),_0x356623['registerBlockAttribute']('todoListChecked'),_0x356623['descriptionFactory']['registerDescriptionCallback'](_0x5a0326=>{const {data:_0xdb4d1c}=_0x5a0326;if(_0xdb4d1c&&'todoListChecked'==_0xdb4d1c['key'])return{'type':'format','content':_0xdb4d1c['newValue']?o(_0x5b408c,'*Check\x20item*'):o(_0x5b408c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x504f3c=>{if(_0x504f3c['batch']['isUndo'])return!0x1;let _0x2fe4ca=!0x1;const _0x495392=_0x356623['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b487d=>'todoListChecked'===_0x356623['_getAttributeKey'](_0x3b487d));for(const _0x1c5562 of _0x495392){'todo'!=_0x1c5562['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x356623['_findSuggestions'](_0x1c5562['getFirstRange'](),'attribute')['find'](_0xdf3325=>'listType'===_0x356623['_getAttributeKey'](_0xdf3325['suggestion']))||(_0x504f3c['removeMarker'](_0x1c5562['getFirstMarker']()),_0x2fe4ca=!0x0));}return _0x2fe4ca;})),_0x356623['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5b408c,'FORMAT_INDENT'));const _0x2b88ea={'type':'format','content':''};_0x356623['descriptionFactory']['registerDescriptionCallback'](_0x53245c=>{const {data:_0x421839}=_0x53245c;if(!_0x421839||'listType'!=_0x421839['key'])return;let _0x4ea5cb=_0x53245c['head'];for(;_0x4ea5cb;){if(_0x4ea5cb['data']&&(('listStyle'==_0x4ea5cb['data']['key']||'listMarkerStyle'==_0x4ea5cb['data']['key'])&&(_0x4ea5cb['data']['newValue']&&'default'!=_0x4ea5cb['data']['newValue']||'default'!=_0x4ea5cb['data']['oldValue']&&!_0x421839['newValue'])||!_0x222fcf&&_0x4ea5cb['data']['key']==m))return _0x2b88ea;_0x4ea5cb=_0x4ea5cb['next'];}if(null==_0x421839['newValue'])switch(_0x421839['oldValue']){case'bulleted':return _0x158197(o(_0x5b408c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x158197(o(_0x5b408c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x158197(o(_0x5b408c,'ELEMENT_TODO_LIST'));}switch(_0x421839['newValue']){case'bulleted':return _0x3df825(o(_0x5b408c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3df825(o(_0x5b408c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3df825(o(_0x5b408c,'ELEMENT_TODO_LIST'));}}),_0x356623['descriptionFactory']['registerDescriptionCallback'](_0x4219b8=>{const {data:_0xa86094}=_0x4219b8;if(_0xa86094&&'listIndent'==_0xa86094['key'])return null==_0xa86094['newValue']||null==_0xa86094['oldValue']&&0x0==_0xa86094['newValue']?_0x2b88ea:void 0x0;}),_0x356623['descriptionFactory']['registerDescriptionCallback'](_0x3d3dcf=>{if('attribute'!=_0x3d3dcf['type'])return;const {data:_0x11e2b9}=_0x3d3dcf;if(!_0x11e2b9||'listItemId'!=_0x11e2b9['key'])return;const _0xcc457e=le(_0x3d3dcf);return'newValue'==_0xcc457e?{'type':'format','content':o(_0x5b408c,'*Merge:*\x20list\x20item')}:'oldValue'==_0xcc457e?{'type':'format','content':o(_0x5b408c,'*Split:*\x20list\x20item')}:_0x2b88ea;}),_0x4739dc['model']['document']['registerPostFixer'](_0x32c903=>this['listItemIdFixer'](_0x32c903)),_0x4739dc['model']['document']['registerPostFixer'](_0x37652a=>this['noTrackChangesFixer'](_0x37652a)),_0x4739dc['model']['document']['registerPostFixer'](_0x13c018=>this['assureChains'](_0x13c018)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x555cd3){if(_0x555cd3['batch']['isUndo']||!_0x555cd3['batch']['isLocal'])return!0x1;let _0x43af58=!0x1;const _0x443f94=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13fc6f=>_0x13fc6f['data']&&'listItemId'==_0x13fc6f['data']['key'])['filter'](_0x5783f0=>_0x5783f0['data']['newValue']&&_0x5783f0['data']['oldValue']);for(const _0x2e9bd8 of _0x443f94)le(_0x2e9bd8)||(_0x555cd3['removeMarker'](_0x2e9bd8['getFirstMarker']()),_0x43af58=!0x0);return _0x43af58;}['noTrackChangesFixer'](_0x54ff43){if(_0x54ff43['batch']['isUndo']||!_0x54ff43['batch']['isLocal'])return!0x1;const _0x33afcc=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x33afcc['trackChangesCommand']['value'])return!0x1;let _0x2d6270=!0x1;const _0x4b8bf2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x11ff0b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x518bea=>'attribute'==_0x518bea['type'])['filter'](_0x4b6587=>_0x4b8bf2['includes'](_0x4b6587['attributeKey']));if(0x0==_0x11ff0b['length'])return _0x2d6270;for(const _0x5703a9 of _0x11ff0b){const _0x1cb8c1=_0x33afcc['_findSuggestions'](_0x5703a9['range'],'attribute')['filter'](_0x1e97d6=>!_0x1e97d6['meta']['isNextTo'])['map'](_0x562974=>_0x562974['suggestion'])['filter'](_0x5065eb=>{const _0x452446=_0x33afcc['_getAttributeKey'](_0x5065eb);return _0x4b8bf2['includes'](_0x452446);});if(_0x1cb8c1['length']){for(const _0x50149e of _0x1cb8c1)_0x54ff43['removeMarker'](_0x50149e['getFirstMarker']());_0x2d6270=!0x0;}}return _0x2d6270;}['assureChains'](_0xb02fd5){if(_0xb02fd5['batch']['isUndo']||!_0xb02fd5['batch']['isLocal'])return!0x1;const _0x40754c=this['editor']['plugins']['get']('TrackChangesEditing');let _0x36d3cd=!0x1;const _0x3a1878=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5d7e16 of _0x40754c['getSuggestions']({'skipNotAttached':!0x0})){const _0x18570d=_0x40754c['_findSuggestions'](_0x5d7e16['getFirstRange'](),'attribute')['map'](_0xe4d53a=>_0xe4d53a['suggestion'])['filter'](_0x532a49=>_0x532a49['data']&&_0x3a1878['includes'](_0x532a49['data']['key']));if(!_0x18570d['length'])continue;const _0x3d351e=_0x18570d[0x0]['head']['attributes']['groupId'];if(!_0x18570d['every'](_0x3cbb2b=>_0x3cbb2b['attributes']['groupId']===_0x3d351e)){for(const _0x138ed1 of _0x18570d)_0x4cd29c(_0x138ed1,_0x3d351e)&&(_0x36d3cd=!0x0);}}return _0x36d3cd;function _0xfa4a74(_0xec7140,_0x1cbabf){for(const _0x1ea42a of _0x40754c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31b5b1=>'attribute'==_0x31b5b1['type']&&_0x31b5b1['attributes']['groupId']==_0xec7140))_0x1ea42a['setAttribute']('groupId',_0x1cbabf);}function _0x4cd29c(_0x4bba06,_0x37d32b){let _0x920fd5=_0x4bba06['head'],_0x2669c0=!0x1;for(;_0x920fd5;)_0x920fd5['attributes']['groupId']!=_0x37d32b&&(_0xfa4a74(_0x920fd5['attributes']['groupId'],_0x37d32b),_0x920fd5['setAttribute']('groupId',_0x37d32b),_0x2669c0=!0x0),_0x920fd5=_0x920fd5['next'];return _0x2669c0;}}['_supportLegacySuggestions'](){const _0x5679fa=this['editor'],_0x52be28=_0x5679fa['locale'],_0x37f768=_0x5679fa['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x37f768['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x71090b,_0x8ab26b){const _0x201945=[];for(let _0x4d3c40 of _0x71090b)_0x4d3c40['start']['nodeAfter']===_0x4d3c40['end']['parent']&&(_0x4d3c40=_0x5679fa['model']['createRange'](_0x5679fa['model']['createPositionAt'](_0x4d3c40['start']['nodeAfter'],0x0))),_0x201945['push'](_0x4d3c40);_0x5679fa['model']['change'](_0x74fae6=>{const _0x48c422=_0x5679fa['model']['document']['selection'],_0x4ca8ce=Array['from'](_0x48c422['getRanges']())['map'](_0x1ffbe6=>_0x3a5b18['fromRange'](_0x1ffbe6));_0x74fae6['setSelection'](_0x201945),_0x5679fa['commands']['get'](_0x8ab26b['commandName'])['refresh'](),_0x8ab26b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5679fa['execute'](_0x8ab26b['commandName'],..._0x8ab26b['commandParams']),_0x74fae6['setSelection'](_0x4ca8ce);for(const _0x42e76e of _0x4ca8ce)_0x42e76e['detach']();});}),_0x37f768['descriptionFactory']['registerElementLabel'](function(_0x8feb9a){const _0x3f2a86=!_0x5679fa['model']['schema']['isObject'](_0x8feb9a),_0x2f5be0=_0x8feb9a['previousSibling'],_0x103101=_0x8feb9a['nextSibling'],_0x387769=_0x8feb9a['getAttribute']('listItemId'),_0x31886c=!_0x2f5be0||_0x2f5be0['getAttribute']('listItemId')!==_0x387769,_0x5df91e=!_0x103101||_0x103101['getAttribute']('listItemId')!==_0x387769;return _0x3f2a86&&Boolean(_0x387769)&&_0x31886c&&_0x5df91e;},_0x3619ca=>o(_0x52be28,'ELEMENT_LIST_ITEM',_0x3619ca));}['_registerLegacyDescription'](){const _0x41f783=this['editor'],_0xd2d087=_0x41f783['locale'];function _0x1f34fa(_0x3f49b4){const _0x3bc2fa=_0x41f783['commands']['get']('bulletedList')['value'],_0x5bdd05=_0x41f783['commands']['get']('numberedList')['value'];return'numberedList'===_0x3f49b4?_0x3bc2fa:_0x5bdd05;}_0x41f783['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x180154){if('formatBlock'!=_0x180154['type'])return;const {data:_0xdab211}=_0x180154;if(!_0xdab211)return;let _0x1dc8ff,_0x551bb7,_0x24b05a,_0x3a0986;switch(_0xdab211['commandName']){case'bulletedList':_0x24b05a=_0xdab211['commandParams'][0x0]['forceValue'],_0x3a0986=_0x1f34fa(_0xdab211['commandName']),_0x1dc8ff=_0x24b05a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a0986&&_0x41f783['config']['get']('list.multiBlock')||(_0x1dc8ff='*Change\x20to:*\x20%0'),_0x551bb7={'type':'format','content':o(_0xd2d087,_0x1dc8ff,o(_0xd2d087,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24b05a=_0xdab211['commandParams'][0x0]['forceValue'],_0x3a0986=_0x1f34fa(_0xdab211['commandName']),_0x1dc8ff=_0x24b05a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a0986&&_0x41f783['config']['get']('list.multiBlock')||(_0x1dc8ff='*Change\x20to:*\x20%0'),_0x551bb7={'type':'format','content':o(_0xd2d087,_0x1dc8ff,o(_0xd2d087,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1dc8ff='*Indent:*\x20%0',_0x551bb7={'type':'format','content':o(_0xd2d087,_0x1dc8ff,o(_0xd2d087,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1dc8ff=function(_0x224d61){const _0x47edda=_0x224d61['getFirstRange']();let _0x5318c5=_0x47edda['start']['nodeAfter'];for(;_0x5318c5&&_0x47edda['containsItem'](_0x5318c5);){if(_0x5318c5['getAttribute']('listIndent')>0x0)return!0x1;_0x5318c5=_0x5318c5['nextSibling'];}return!0x0;}(_0x180154)?o(_0xd2d087,'*Format:*\x20remove\x20from\x20%0',o(_0xd2d087,function(_0x13713b){return'ELEMENT_'+_0x13713b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x180154))):o(_0xd2d087,'*Outdent:*\x20%0',o(_0xd2d087,'ELEMENT_LIST_ITEM')),_0x551bb7={'type':'format','content':_0x1dc8ff};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xdab211['multipleBlocks']&&(_0x1dc8ff='*Merge:*\x20%0',_0x551bb7={'type':'deletion','content':o(_0xd2d087,_0x1dc8ff,o(_0xd2d087,'ELEMENT_LIST_ITEM'))});}return _0x551bb7;});}}function le(_0x254d3d){let _0x34eb55=_0x254d3d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34eb55;){const _0x59b717=_0x34eb55['getAttribute']('listItemId');if(!_0x59b717)return!0x1;if(_0x59b717==_0x254d3d['data']['newValue'])return'newValue';if(_0x59b717==_0x254d3d['data']['oldValue'])return'oldValue';_0x34eb55=_0x34eb55['previousSibling'];}return!0x1;}class ue extends _0x462782{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a3496=this['editor']['config']['get']('list.properties'),_0x4ffc45=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a3496['styles']&&(_0x4ffc45['enableDefaultAttributesIntegration']('listStyle'),_0x4ffc45['registerBlockAttribute']('listStyle')),_0x2a3496['reversed']&&(_0x4ffc45['enableDefaultAttributesIntegration']('listReversed'),_0x4ffc45['registerBlockAttribute']('listReversed')),_0x2a3496['startIndex']&&(_0x4ffc45['enableDefaultAttributesIntegration']('listStart'),_0x4ffc45['registerBlockAttribute']('listStart'));const _0x13b27d={'type':'format','content':''};_0x4ffc45['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x437b46=this['editor']['locale'];_0x4ffc45['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x437b46,'FORMAT_LIST_REVERSED')),_0x4ffc45['descriptionFactory']['registerDescriptionCallback'](_0x164b94=>{const {data:_0x32dd83}=_0x164b94;if(_0x32dd83&&'listReversed'==_0x32dd83['key'])return null==_0x32dd83['newValue']||0x0==_0x32dd83['newValue']&&null==_0x32dd83['oldValue']?_0x13b27d:void 0x0;}),_0x4ffc45['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x437b46,'FORMAT_LIST_START')),_0x4ffc45['descriptionFactory']['registerDescriptionCallback'](_0x42bc84=>{const {data:_0x4de240}=_0x42bc84;if(_0x4de240&&'listStart'==_0x4de240['key'])return null==_0x4de240['newValue']||0x1==_0x4de240['newValue']&&null==_0x4de240['oldValue']?_0x13b27d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4aafbc=>{if(_0x4aafbc['batch']['isUndo'])return!0x1;let _0x104307=!0x1;const _0x4fa2f4=_0x4ffc45['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb8196a=>{const _0x21a6ba=_0x4ffc45['_getAttributeKey'](_0xb8196a);return'listStart'==_0x21a6ba||'listReversed'==_0x21a6ba;});for(const _0x296acc of _0x4fa2f4){const _0x3d1166=_0x296acc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3d1166||'customNumbered'==_0x3d1166)continue;_0x4ffc45['_findSuggestions'](_0x296acc['getFirstRange'](),'attribute')['find'](_0x2db454=>'listType'==_0x4ffc45['_getAttributeKey'](_0x2db454['suggestion']))||(_0x4aafbc['removeMarker'](_0x296acc['getFirstMarker']()),_0x104307=!0x0);}return _0x104307;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xea00d4){const _0x5ee26a=this['editor']['locale'],{data:_0xa77229}=_0xea00d4,_0x4d5249={'type':'format','content':''};if(!_0xa77229||'listStyle'!=_0xa77229['key'])return;if(!_0xa77229['oldValue'])return'default'==_0xa77229['newValue']?_0x4d5249:{'type':'format','content':''+o(_0x5ee26a,'*Set\x20format:*\x20%0',o(_0x5ee26a,this['_getTranslationKeyForListStyle'](_0xa77229['newValue'])))};if(!_0xa77229['newValue']){if('default'==_0xa77229['oldValue'])return _0x4d5249;let _0x34d305=_0xea00d4['head'];for(;_0x34d305;){if(_0x34d305['data']&&'listType'==_0x34d305['data']['key']&&_0x34d305['data']['newValue'])return _0x4d5249;_0x34d305=_0x34d305['next'];}return{'type':'format','content':''+o(_0x5ee26a,'*Remove\x20format:*\x20%0',o(_0x5ee26a,this['_getTranslationKeyForListStyle'](_0xa77229['oldValue'])))};}if('default'!=_0xa77229['newValue'])return{'type':'format','content':''+o(_0x5ee26a,'*Set\x20format:*\x20%0',o(_0x5ee26a,this['_getTranslationKeyForListStyle'](_0xa77229['newValue'])))};let _0x838933=_0xea00d4['head'];for(;_0x838933;){if(_0x838933['data']&&'listType'==_0x838933['data']['key']&&_0x838933['data']['newValue']&&_0x838933['data']['oldValue'])return _0x4d5249;_0x838933=_0x838933['next'];}return{'type':'format','content':o(_0x5ee26a,'*Set\x20format:*\x20%0',o(_0x5ee26a,'ELEMENT_'+_0xea00d4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3d7c6b=this['editor'],_0x24572c=_0x3d7c6b['locale'];_0x3d7c6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10ede5=>{if('formatBlock'!=_0x10ede5['type'])return;const {data:_0x530100}=_0x10ede5;if(!_0x530100)return;let _0x5137a2,_0x1acb28;switch(_0x530100['commandName']){case'listStyle':_0x5137a2='*Change\x20to:*\x20%0',_0x1acb28={'type':'format','content':o(_0x24572c,_0x5137a2,o(_0x24572c,this['_getTranslationKeyForListStyle'](_0x530100['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5137a2=_0x530100['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1acb28={'type':'format','content':o(_0x24572c,_0x5137a2)};break;case'listStart':_0x5137a2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1acb28={'type':'format','content':o(_0x24572c,_0x5137a2,_0x530100['commandParams'][0x0]['startIndex'])};}return _0x1acb28;});}['_getTranslationKeyForListStyle'](_0x295680){return'ELEMENT_'+function(_0x2f9d09){if(pe['includes'](_0x2f9d09))return'bulleted';if(ye['includes'](_0x2f9d09))return'numbered';return null;}(_0x295680)['toUpperCase']()+'_LIST_'+_0x295680['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x462782{static get['requires'](){return[_0x1e7b8b];}['init'](){const _0x2e5ba2=this['editor'],_0xfab857=_0x2e5ba2['plugins']['get']('TrackChangesEditing'),_0x2470ad=_0x2e5ba2['commands']['get']('enter');_0xfab857['enableCommand']('enter',()=>{_0x2e5ba2['model']['change'](_0x86d572=>{const _0x19fefd=_0x2e5ba2['model']['document']['selection'],_0x309ff0=_0x19fefd['getFirstPosition'](),_0x376126=_0x3a5b18['fromRange'](_0x19fefd['getFirstRange']());if(_0x2470ad['enterBlock'](_0x86d572)){const _0x2275c4=_0x2e5ba2['model']['createPositionAt'](_0x309ff0['parent']['nextSibling'],0x0),_0x1b21f1=_0x86d572['createRange'](_0x309ff0,_0x2275c4);_0xfab857['markInsertion'](_0x1b21f1);}else _0x86d572['setSelection'](_0x86d572['createRange'](_0x376126['end']));_0x376126['detach'](),_0x2470ad['fire']('afterExecute',{'writer':_0x86d572});});}),_0x2e5ba2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2e5ba2,'split'),{'priority':'high'}),_0x2e5ba2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x43ed88,_0x54c748,_0x6912d6)=>{const _0x144720=_0x6912d6['mapper']['markerNameToElements'](_0x54c748['markerName']);if(_0x144720){for(const _0x1b9bba of _0x144720)_0x1b9bba['hasClass']('ck-suggestion-marker-split')&&(_0x6912d6['mapper']['unbindElementFromMarkerName'](_0x1b9bba,_0x54c748['markerName']),_0x6912d6['writer']['remove'](_0x1b9bba));}},{'priority':'high'}),_0x2e5ba2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28b0e0,_0x478185,_0x3198b4)=>{_0x3198b4['options']['showSuggestionHighlights']&&_e(_0x2e5ba2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x28b0e0,_0x478185,_0x3198b4);},{'priority':'high'});}}class J extends _0x462782{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x250984=this['editor']['plugins']['get']('TrackChangesEditing');_0x250984['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x250984['enableCommand']('findNext'),_0x250984['enableCommand']('findPrevious'),_0x250984['enableCommand']('replace'),_0x250984['enableCommand']('replaceAll');}['handleFindCommand'](_0xa17ae7,_0x18f8e2,_0x546bee={}){const _0x2c130d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa17ae7(_0x5333a1=>('string'==typeof _0x18f8e2?_0x2c130d['findByTextCallback'](_0x18f8e2,_0x546bee):_0x18f8e2)(_0x5333a1)['filter'](_0x16af18=>!0x1===this['_isInDeletionRange'](_0x16af18,_0x5333a1['item'])),_0x546bee);}['_isInDeletionRange'](_0x4ca194,_0x301daf){const _0xcd4168=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x301daf,_0x4ca194['start']),this['editor']['model']['createPositionAt'](_0x301daf,_0x4ca194['end']));for(const _0x5c2e90 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xcd4168['getIntersection'](_0x5c2e90['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 _0x462782{['afterInit'](){const _0x557b6c=this['editor']['locale'],_0x442b68=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf4b0fc,commandName:_0x5befc2}of ro)this['editor']['plugins']['has'](_0xf4b0fc)&&(_0x442b68['enableDefaultAttributesIntegration'](_0x5befc2),_0x442b68['registerInlineAttribute'](_0x5befc2));_0x557b6c['t'],_0x442b68['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x557b6c,'FORMAT_FONT_SIZE')),_0x442b68['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x557b6c,'FORMAT_FONT_FAMILY')),_0x442b68['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x557b6c,'FORMAT_FONT_COLOR')),_0x442b68['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x557b6c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31efdb=this['editor'],_0x5b30ee=_0x31efdb['locale'];_0x31efdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c5b47=>{const _0x5f3ef6=_0x5b30ee['t'];if('formatInline'!=_0x3c5b47['type'])return;const {data:_0x392e01}=_0x3c5b47;if(null!=_0x392e01){if('fontSize'==_0x392e01['commandName']){const _0x1bebf0=_0x392e01['commandParams'][0x0]['value'];if(_0x1bebf0){const _0x510121=_0x5f3ef6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x35418a=>_0x35418a['model']==_0x1bebf0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b30ee,'*Set\x20font\x20size:*\x20%0',_0x510121)};}return{'type':'format','content':o(_0x5b30ee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x392e01['commandName']){const _0x415917=_0x392e01['commandParams'][0x0]['value'];return _0x415917?{'type':'format','content':o(_0x5b30ee,'*Set\x20font\x20family:*\x20%0',_0x415917)}:{'type':'format','content':o(_0x5b30ee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x392e01['commandName']){const _0x8dfe21=_0x392e01['commandParams'][0x0]['value'];if(_0x8dfe21){const _0x592ce1=_0x3ba08d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x11a8eb=>_0x11a8eb['model']==_0x8dfe21);let _0x888d7b=_0x8dfe21,_0x30dfe1='';return _0x592ce1&&(_0x888d7b=_0x592ce1['label'],_0x30dfe1=_0x5f3ef6(_0x888d7b)['toLowerCase']()),{'type':'format','content':o(_0x5b30ee,'*Set\x20font\x20color:*\x20%0',_0x30dfe1)['trim'](),'color':{'value':_0x8dfe21,'title':_0x30dfe1||_0x888d7b}};}return{'type':'format','content':o(_0x5b30ee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x392e01['commandName']){const _0x2e3d70=_0x392e01['commandParams'][0x0]['value'];if(_0x2e3d70){const _0x5130cf=_0x3ba08d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x200ee1=>_0x200ee1['model']==_0x2e3d70);let _0x2e8226=_0x2e3d70,_0x455f76='';return _0x5130cf&&(_0x2e8226=_0x5130cf['label'],_0x455f76=_0x5f3ef6(_0x2e8226)['toLowerCase']()),{'type':'format','content':o(_0x5b30ee,'*Set\x20font\x20background\x20color:*\x20%0',_0x455f76)['trim'](),'color':{'value':_0x2e3d70,'title':_0x455f76||_0x2e8226}};}return{'type':'format','content':o(_0x5b30ee,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x462782{['afterInit'](){const _0x5447cf=this['editor'],_0x139843=_0x5447cf['plugins']['get']('TrackChangesEditing'),_0x5ac04f=_0x5447cf['commands']['get']('copyFormat'),_0x10d0c3=_0x5447cf['commands']['get']('pasteFormat');_0x5ac04f&&_0x10d0c3&&(_0x139843['enableDefaultAttributesIntegration']('pasteFormat'),_0x139843['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x15848f=this['editor'],_0x5b084e=_0x15848f['locale'];_0x15848f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x179cd4=>{if('formatBlock'!=_0x179cd4['type']&&'formatInline'!=_0x179cd4['type'])return;const {data:_0xb0eaa7}=_0x179cd4;if(_0xb0eaa7&&'pasteFormat'===_0xb0eaa7['commandName']){const _0xc79b89=[],_0x3d592b=_0xb0eaa7['commandParams'][0x0];for(const [_0x40a403,_0xacc939]of Object['entries'](_0x3d592b))_0xc79b89['push'](so(_0x15848f,_0x40a403,_0xacc939));return _0xc79b89['length']?{'type':'format','content':o(_0x5b084e,'*Set\x20format\x20to:*\x20%0',_0xc79b89['join'](',\x20'))}:{'type':'format','content':o(_0x5b084e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5ae65c,_0x7a4be4,_0x559fb2){const _0x5b0643=_0x5ae65c['locale']['t'],_0x45a093=_0x7a4be4['split'](/(?=[A-Z])/)['join']('\x20'),_0x565456=_0x5b0643(_0x45a093['charAt'](0x0)['toUpperCase']()+_0x45a093['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x559fb2)return _0x565456;if('fontColor'===_0x7a4be4||'fontBackgroundColor'===_0x7a4be4){const _0x11b833=_0x3ba08d(_0x5ae65c['config']['get']('fontColor.colors'))['find'](_0x356ff1=>_0x356ff1['model']==_0x559fb2);return _0x565456+'\x20('+(_0x11b833?_0x5b0643(_0x11b833['label'])['toLowerCase']():_0x559fb2)+')';}if('fontSize'===_0x7a4be4&&isNaN(parseFloat(_0x559fb2))){const _0x5d551e=_0x5ae65c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5ae65c['config']['get']('fontSize.options'))['find'](_0x1e9b2f=>_0x1e9b2f['model']==_0x559fb2);return _0x565456+'\x20('+(_0x5d551e?_0x5b0643(_0x5d551e['title'])['toLowerCase']():_0x559fb2)+')';}return _0x565456+'\x20('+_0x559fb2+')';}class Y extends _0x462782{['_headingOptions'];['afterInit'](){const _0x2f6219=this['editor'];if(!_0x2f6219['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2f6219['config']['get']('heading.options');const _0x5c861c=_0x2f6219['locale'],_0x134004=_0x2f6219['plugins']['get']('TrackChangesEditing');_0x134004['enableDefaultAttributesIntegration']('heading');for(const _0x552204 of this['_headingOptions'])'paragraph'!=_0x552204['model']&&_0x134004['descriptionFactory']['registerElementLabel'](_0x552204['model'],_0x213cd6=>{const _0x527838=this['_getHeadingLevel'](_0x552204['model']);return null!==_0x527838?_0x31960f(_0x213cd6,_0x527838):_0x5280d8(_0x213cd6,_0x552204['title']);});function _0x31960f(_0x2c1ac3,_0x5dcad5){return o(_0x5c861c,'ELEMENT_HEADING',[_0x2c1ac3,_0x5dcad5]);}function _0x5280d8(_0x90be,_0x313bcc){return o(_0x5c861c,'ELEMENT_HEADING_CUSTOM',[_0x90be,_0x313bcc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37e81c=this['editor'],_0x471a24=_0x37e81c['locale'];function _0x16fb65(_0x16e68f,_0x22b6d8){return o(_0x471a24,'ELEMENT_HEADING_CUSTOM',[_0x16e68f,_0x22b6d8]);}_0x37e81c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33f581=>{if('formatBlock'!=_0x33f581['type'])return;const {data:_0x5247c7}=_0x33f581;if(_0x5247c7&&'heading'==_0x5247c7['commandName']){const _0x5d2732=_0x5247c7['commandParams'][0x0]['value'],_0x2a49d9=this['_getHeadingLevel'](_0x5d2732);if(null!==_0x2a49d9)return{'type':'format','content':o(_0x471a24,'*Change\x20to:*\x20%0',(_0x35412c=0x1,_0xe23528=_0x2a49d9,o(_0x471a24,'ELEMENT_HEADING',[_0x35412c,_0xe23528])))};const _0x1a9620=this['_headingOptions']['find'](_0x255617=>_0x255617['model']===_0x5d2732)['title'];return{'type':'format','content':o(_0x471a24,'*Change\x20to:*\x20%0',_0x16fb65(0x1,_0x1a9620))};}var _0x35412c,_0xe23528;});}['_getHeadingLevel'](_0x1d3621){const _0xbc832d=_0x1d3621['match'](/^heading(\d+)/);if(_0xbc832d)return _0xbc832d[0x1];const _0x111690=this['_headingOptions']?.['find'](_0x2bcccd=>_0x2bcccd['model']==_0x1d3621);if(_0x111690&&_0x111690['view']){const _0x4ea820=_0x111690['view'],_0x366615=(_0x4ea820['name']??_0x4ea820)['match'](/^h(\d+)/);if(_0x366615)return _0x366615[0x1];}return null;}}class Z extends _0x462782{['afterInit'](){const _0x4197a0=this['editor'];if(!_0x4197a0['plugins']['has']('HighlightEditing'))return;const _0x50cd75=_0x4197a0['plugins']['get']('TrackChangesEditing'),_0x26e8db=_0x4197a0['locale'];_0x50cd75['enableDefaultAttributesIntegration']('highlight'),_0x50cd75['registerInlineAttribute']('highlight'),_0x50cd75['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x26e8db,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x129825=this['editor'],_0x42dfd2=_0x129825['locale'];_0x129825['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12b4bb=>{if('formatInline'!=_0x12b4bb['type'])return;const {data:_0x443472}=_0x12b4bb;if(_0x443472&&'highlight'==_0x443472['commandName']){const _0x5b386d=_0x42dfd2['t'],_0x1494f7=_0x443472['commandParams'][0x0]['value'];if(_0x1494f7){const _0x211e35=_0x129825['config']['get']('highlight.options')['find'](_0x42ec66=>_0x42ec66['model']==_0x1494f7),_0x2483b9=_0x5b386d(_0x211e35['title'])['toLowerCase']();return{'type':'format','content':o(_0x42dfd2,'*Set\x20highlight:*\x20%0',_0x2483b9),'color':{'value':_0x211e35['color'],'title':_0x211e35['title']}};}return{'type':'format','content':o(_0x42dfd2,'*Remove\x20highlight*',o(_0x42dfd2,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x462782{['afterInit'](){const _0x4a7f63=this['editor'];if(!_0x4a7f63['plugins']['has']('HorizontalLineEditing'))return;_0x4a7f63['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c0cb4=_0x4a7f63['plugins']['get']('TrackChangesEditing'),_0x354a95=_0x4a7f63['locale'];_0x4c0cb4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x6bedd7=>o(_0x354a95,'ELEMENT_HORIZONTAL_LINE',_0x6bedd7)),_0x4a7f63['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1ca84d,{writer:_0x32a5f6,options:_0xcd3c4d})=>{if(!_0xcd3c4d['showSuggestionHighlights'])return null;const _0x46a9aa=_0x32a5f6['createContainerElement']('div'),_0x4eb6ac=_0x32a5f6['createEmptyElement']('hr');return _0x32a5f6['addClass']('ck-horizontal-line',_0x46a9aa),_0x32a5f6['insert'](_0x32a5f6['createPositionAt'](_0x46a9aa,0x0),_0x4eb6ac),_0x46a9aa;},'converterPriority':'high'});}}class et extends _0x462782{['afterInit'](){const _0x3674b3=this['editor'];if(!_0x3674b3['plugins']['has']('HtmlEmbed'))return;const _0x12e5fd=_0x3674b3['plugins']['get']('TrackChangesEditing'),_0x1fda09=_0x3674b3['locale'];_0x12e5fd['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d3d17=>o(_0x1fda09,'ELEMENT_HTML_EMBED',_0x5d3d17)),_0x12e5fd['enableDefaultAttributesIntegration']('htmlEmbed'),_0x12e5fd['registerBlockAttribute']('value'),_0x12e5fd['descriptionFactory']['registerDescriptionCallback'](_0x4a02ac=>{if('attribute'!=_0x4a02ac['type'])return;const {data:_0xa4a05c}=_0x4a02ac;if(_0xa4a05c&&'value'==_0xa4a05c['key']&&_0x4a02ac['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x28f271=o(_0x1fda09,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1fda09,'*Change\x20%0\x20content*',_0x28f271)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9e70db=this['editor'],_0x3d1d8d=_0x9e70db['locale'];_0x9e70db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x581026=>{if('formatBlock'!=_0x581026['type'])return;const {data:_0x2d536f}=_0x581026;if(_0x2d536f&&'htmlEmbed'==_0x2d536f['commandName']){const _0x4f86eb=o(_0x3d1d8d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3d1d8d,'*Change\x20%0\x20content*',_0x4f86eb)};}});}}class it extends _0x462782{['afterInit'](){const _0x48eb28=this['editor'];if(!_0x48eb28['plugins']['has']('ImageEditing'))return;const _0x57a2f7=_0x48eb28['plugins']['get']('TrackChangesEditing'),_0x55db69=_0x48eb28['plugins']['get']('ImageUtils'),_0x364191=_0x48eb28['locale'];_0x57a2f7['enableCommand']('insertImage'),_0x57a2f7['descriptionFactory']['registerElementLabel']('imageBlock',_0x138571=>o(_0x364191,'ELEMENT_IMAGE',_0x138571)),_0x57a2f7['descriptionFactory']['registerElementLabel']('imageInline',_0x30ddb8=>o(_0x364191,'ELEMENT_INLINE_IMAGE',_0x30ddb8)),_0x57a2f7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x364191,'ELEMENT_CAPTION')),_0x48eb28['plugins']['has']('ImageUploadEditing')&&_0x57a2f7['enableCommand']('uploadImage'),_0x48eb28['plugins']['has']('ImageBlockEditing')&&_0x48eb28['plugins']['has']('ImageInlineEditing')&&(_0x57a2f7['enableCommand']('imageTypeInline',(_0x2dbbee,_0x15e8b7)=>{const _0x303fd9=_0x55db69['getClosestSelectedImageElement'](_0x48eb28['model']['document']['selection']);_0x48eb28['model']['change'](()=>{_0x57a2f7['markBlockFormat'](_0x303fd9,{'commandName':'imageTypeInline','commandParams':[_0x15e8b7]},[],'convertBlockImageToInline');});}),_0x57a2f7['enableCommand']('imageTypeBlock',(_0x406314,_0xc286a2)=>{_0x48eb28['model']['change'](_0x457070=>{let _0x280833=_0x55db69['getClosestSelectedImageElement'](_0x48eb28['model']['document']['selection']),_0x1eba8c=_0x457070['createRangeOn'](_0x280833);const _0x1e1a93=_0xc2eba5['fromPosition'](_0x1eba8c['start'],'toPrevious'),_0x3e4163=_0xc2eba5['fromPosition'](_0x1eba8c['end'],'toNext');_0x57a2f7['forceDefaultExecution'](()=>_0x406314(_0xc286a2)),_0x280833=_0x55db69['getClosestSelectedImageElement'](_0x48eb28['model']['document']['selection']),_0x1eba8c=_0x457070['createRangeOn'](_0x280833);const _0x52cc10=_0x457070['createRange'](_0x1e1a93,_0x3e4163);_0x1e1a93['detach'](),_0x3e4163['detach'](),_0x57a2f7['markBlockFormat'](_0x280833,{'commandName':'imageTypeInline','commandParams':[_0xc286a2]},[],'convertInlineImageToBlock'),_0x52cc10['start']['isBefore'](_0x1eba8c['start'])&&_0x57a2f7['markInsertion'](_0x457070['createRange'](_0x52cc10['start'],_0x1eba8c['start']),'convertInlineImageToBlock'),_0x1eba8c['end']['isBefore'](_0x52cc10['end'])&&_0x57a2f7['markInsertion'](_0x457070['createRange'](_0x1eba8c['end'],_0x52cc10['end']),'convertInlineImageToBlock');});}),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x57a2f7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4223e2])=>{const _0xbcfb49=_0x57a2f7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3bc32a=_0x4223e2['start'],_0x206f6a=_0x4223e2['end'];const _0x27b68e=_0x48eb28['model']['schema']['getNearestSelectionRange'](_0x3bc32a,'backward'),_0x132666=_0x48eb28['model']['schema']['getNearestSelectionRange'](_0x206f6a,'forward');_0x27b68e['isCollapsed']&&(_0x3bc32a=_0x27b68e['start']),_0x132666['isCollapsed']&&(_0x206f6a=_0x132666['end']),_0xbcfb49([_0x48eb28['model']['createRange'](_0x3bc32a,_0x206f6a)]);}),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x185512),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x185512)),_0x48eb28['plugins']['has']('ImageCaptionEditing')&&(_0x57a2f7['enableCommand']('toggleImageCaption',(_0x39a1c6,_0x51a3ae)=>{const _0x480827=_0x48eb28['plugins']['get']('ImageCaptionUtils');let _0x51c7b4=_0x55db69['getClosestSelectedImageElement'](_0x48eb28['model']['document']['selection']),_0x208abc=_0x480827['getCaptionFromImageModelElement'](_0x51c7b4);_0x48eb28['model']['change'](()=>{if(_0x208abc)return void _0x57a2f7['markDeletion'](_0x48eb28['model']['createRangeOn'](_0x208abc));const _0x588b26=_0x55db69['isBlockImage'](_0x51c7b4);_0x39a1c6(_0x51a3ae),_0x51c7b4=_0x55db69['getClosestSelectedImageElement'](_0x48eb28['model']['document']['selection']),_0x208abc=_0x480827['getCaptionFromImageModelElement'](_0x51c7b4),_0x57a2f7['markInsertion'](_0x48eb28['model']['createRangeOn'](_0x208abc),_0x588b26?null:'imageCaption');});}),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x185512));const _0x506f68=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x477923(_0x459382,_0x22bf7b){const _0x9d523b=_0x506f68['findIndex'](({type:_0x392666,subType:_0x41bf24})=>_0x459382['type']==_0x392666&&_0x459382['subType']==_0x41bf24),_0x10878c=_0x506f68['findIndex'](({type:_0xcf339b,subType:_0x51c85c})=>_0x22bf7b['type']==_0xcf339b&&_0x22bf7b['subType']==_0x51c85c);if(_0x9d523b<0x0||_0x10878c<0x0)return!0x1;const _0x200e25=_0x459382['getFirstRange'](),_0xf9688e=_0x22bf7b['getFirstRange']();if((0x0==_0x9d523b||0x1==_0x9d523b)&&0x2==_0x10878c&&_0x200e25['isIntersecting'](_0xf9688e))return!0x0;if(0x2==_0x9d523b&&0x3==_0x10878c){const _0x36d50d=_0x57a2f7['_findSuggestions'](_0x200e25,'insertion')['filter'](({suggestion:_0x4cbfc7,meta:_0x1ddb41})=>_0x1ddb41['isOwn']&&'convertInlineImageToBlock'==_0x4cbfc7['subType']);if(_0x36d50d['length']>0x1&&_0xf9688e['end']['isEqual'](_0x200e25['start']))return!0x0;if(0x1==_0x36d50d['length']&&(_0x200e25['start']['isEqual'](_0xf9688e['end'])||_0x200e25['end']['isEqual'](_0xf9688e['start'])))return!0x0;}if(0x3==_0x9d523b&&0x3==_0x10878c&&_0x200e25['start']['isBefore'](_0xf9688e['start'])){const _0x1cd082=_0x200e25['end']['nodeAfter'],_0x2bfc7b=_0xf9688e['start']['nodeBefore'];return _0x55db69['isBlockImage'](_0x1cd082)&&_0x1cd082===_0x2bfc7b;}return!0x1;}function _0x185512(_0x46c1af,_0x3f42b9){return _0x477923(_0x46c1af,_0x3f42b9)?[_0x46c1af,_0x3f42b9]:_0x477923(_0x3f42b9,_0x46c1af)?[_0x3f42b9,_0x46c1af]:null;}_0x48eb28['plugins']['has']('ImageResize')&&(_0x57a2f7['enableDefaultAttributesIntegration']('resizeImage'),_0x57a2f7['registerBlockAttribute']('resizedWidth'),_0x57a2f7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x364191,'FORMAT_IMAGE_SIZE'))),_0x48eb28['plugins']['has']('ImageTextAlternativeEditing')&&(_0x57a2f7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x57a2f7['registerBlockAttribute']('alt')),_0x57a2f7['descriptionFactory']['registerDescriptionCallback'](_0x4b3494=>{if(!!_0x506f68['find'](({type:_0x191f13,subType:_0x13228d})=>_0x4b3494['type']==_0x191f13&&_0x4b3494['subType']==_0x13228d))return _0x4b3494['previous']?{}:void 0x0;}),_0x57a2f7['descriptionFactory']['registerDescriptionCallback'](_0x3a1774=>{if('insertion'==_0x3a1774['type']||'deletion'==_0x3a1774['type']){const _0x5e8e8a=_0x3a1774['getContainedElement']();if(_0x5e8e8a&&_0x5e8e8a['is']('element','caption'))return{'type':'insertion'==_0x3a1774['type']?'addObject':'removeObject','element':_0x5e8e8a,'quantity':0x1};}}),_0x57a2f7['descriptionFactory']['registerDescriptionCallback'](_0x49dc6d=>'formatBlock'==_0x49dc6d['type']&&'convertInlineImageToBlock'==_0x49dc6d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x49dc6d['type']&&'convertBlockImageToInline'==_0x49dc6d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x57a2f7['descriptionFactory']['registerDescriptionCallback'](_0x5619c2=>{if('attribute'!=_0x5619c2['type'])return;const {data:_0x40910f}=_0x5619c2;if(!_0x40910f||'alt'!=_0x40910f['key'])return;const _0x1f2e1e=_0x40910f['newValue'];return _0x1f2e1e?{'type':'format','content':o(_0x364191,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1f2e1e+'\x22')}:{'type':'format','content':o(_0x364191,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x202212=this['editor'],_0x442816=_0x202212['locale'];_0x202212['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17027e=>{if('formatBlock'!=_0x17027e['type']&&'formatInline'!=_0x17027e['type'])return;const {data:_0x38eeb8}=_0x17027e;if(_0x38eeb8){if('imageTextAlternative'==_0x38eeb8['commandName']){const _0x40dec4=_0x38eeb8['commandParams'][0x0]['newValue'];return _0x40dec4?{'type':'format','content':o(_0x442816,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x40dec4+'\x22')}:{'type':'format','content':o(_0x442816,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x38eeb8['commandName']){const _0x46de45=_0x38eeb8['commandParams'][0x0]['width'];return _0x46de45?{'type':'format','content':o(_0x442816,'*Set\x20image\x20width:*\x20%0',_0x46de45)}:{'type':'format','content':o(_0x442816,'*Reset\x20image\x20width*')};}}});}}class st extends _0x462782{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2bb98a=this['editor']['locale'],_0x4137b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4137b7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4137b7['registerBlockAttribute']('src'),_0x4137b7['descriptionFactory']['registerDescriptionCallback'](_0x553a3d=>{if('attribute'!=_0x553a3d['type'])return;const {data:_0x23177a}=_0x553a3d;return _0x23177a&&'src'==_0x23177a['key']?_0x23177a['newValue']&&_0x23177a['oldValue']?{'type':'format','content':o(_0x2bb98a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4eabdc=this['editor']['plugins']['get']('TrackChangesEditing');_0x4eabdc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4eabdc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4eabdc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4eabdc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55dda8=this['editor'],_0x255771=_0x55dda8['locale'];_0x55dda8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b979c=>{if('formatBlock'!=_0x4b979c['type']&&'formatInline'!=_0x4b979c['type'])return;const {data:_0x506cbc}=_0x4b979c;if(!_0x506cbc||'replaceImageSource'!=_0x506cbc['commandName'])return;return{'type':'format','content':o(_0x255771,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x462782{['afterInit'](){const _0x228436=this['editor'];if(!_0x228436['plugins']['has']('ImageStyleEditing'))return;const _0x12d68e=_0x228436['plugins']['get']('TrackChangesEditing'),_0x9cfed3=_0x228436['plugins']['get']('ImageUtils'),_0x48220d={};_0x12d68e['enableCommand']('imageStyle',(_0x51c754,_0x58995e)=>{const _0x3a6d8c=_0x228436['plugins']['get']('Users')['me'],_0x2bf634=_0x228436['commands']['get']('imageStyle');let _0x1f6ab8=_0x9cfed3['getClosestSelectedImageElement'](_0x228436['model']['document']['selection']),_0x3c35b2=_0x228436['model']['createRangeOn'](_0x1f6ab8),_0x495883=_0x2bf634['value'];if(_0x495883==_0x58995e['value'])return;const _0x5734e2={'commandName':'imageStyle','commandParams':[_0x58995e],'formatGroupId':_0xeabe53()};_0x228436['model']['change'](()=>{if(_0x12d68e['getSuggestions']()['filter'](_0x53d583=>_0x53d583['isInContent']&&_0x3a6d8c==_0x53d583['author']&&('formatBlock'==_0x53d583['type']||'formatInline'==_0x53d583['type'])&&('imageStylePreApply'==_0x53d583['subType']||'imageStylePostApply'==_0x53d583['subType'])&&_0x53d583['getFirstRange']()['isEqual'](_0x3c35b2))['forEach'](_0x3f353c=>_0x12d68e['discardSuggestion'](_0x3f353c['head'])),_0x1f6ab8=_0x9cfed3['getClosestSelectedImageElement'](_0x228436['model']['document']['selection']),_0x3c35b2=_0x228436['model']['createRangeOn'](_0x1f6ab8),_0x2bf634['refresh'](),_0x228436['commands']['get']('imageTypeInline')['refresh'](),_0x228436['commands']['get']('imageTypeBlock')['refresh'](),_0x495883=_0x2bf634['value'],_0x495883!=_0x58995e['value'])return _0x9cfed3['isInlineImage'](_0x1f6ab8)&&_0x2bf634['shouldConvertImageType'](_0x58995e['value'],_0x1f6ab8)?(_0x51c754({..._0x58995e,'setImageSizes':!0x1}),_0x1f6ab8=_0x9cfed3['getClosestSelectedImageElement'](_0x228436['model']['document']['selection']),void _0x12d68e['markBlockFormat'](_0x1f6ab8,{..._0x5734e2,'commandReversedParams':[{'value':_0x495883||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x9cfed3['isBlockImage'](_0x1f6ab8)?_0x12d68e['markBlockFormat'](_0x1f6ab8,_0x5734e2,[],'imageStylePostApply'):_0x12d68e['markInlineFormat'](_0x3c35b2,_0x5734e2,'imageStylePostApply'));});});for(const _0x15cd86 of _0x228436['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x48220d[_0x15cd86['name']]=_0x15cd86['title']['toLowerCase']();_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xcee9f7])=>{_0x9cfed3['setImageNaturalSizeAttributes'](_0xcee9f7['getContainedElement']());}),_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2b4847,_0x44475a)=>{_0x12d68e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2b4847,{'commandName':_0x44475a['commandName'],'commandParams':_0x44475a['commandReversedParams']});}),_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x33d468,_0x526c18){if(_0x1a31cb(_0x33d468,_0x526c18))return[_0x33d468,_0x526c18];if(_0x1a31cb(_0x526c18,_0x33d468))return[_0x526c18,_0x33d468];return null;});const _0x4acbf8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a31cb(_0x1da94d,_0xb4c4fb){const _0x2235c0=_0x4acbf8['findIndex'](({type:_0x515508,subType:_0x34f341})=>_0x1da94d['type']==_0x515508&&_0x1da94d['subType']==_0x34f341),_0x1af5a1=_0x4acbf8['findIndex'](({type:_0x5d599c,subType:_0x4e1961})=>_0xb4c4fb['type']==_0x5d599c&&_0xb4c4fb['subType']==_0x4e1961);if(_0x2235c0<0x0||_0x1af5a1<0x0)return!0x1;const _0x4cfc74=_0x1da94d['getFirstRange'](),_0x4d024c=_0xb4c4fb['getFirstRange']();if((0x0==_0x2235c0||0x1==_0x2235c0)&&0x2==_0x1af5a1&&_0x4cfc74['isIntersecting'](_0x4d024c))return!0x0;if(0x2==_0x2235c0&&0x3==_0x1af5a1){const _0x5edfce=_0x12d68e['_findSuggestions'](_0x4cfc74,'insertion')['filter'](({suggestion:_0x49ee46,meta:_0x5ce47b})=>_0x5ce47b['isOwn']&&'convertInlineImageToBlock'==_0x49ee46['subType']);if(_0x5edfce['length']>0x1&&_0x4d024c['end']['isEqual'](_0x4cfc74['start']))return!0x0;if(0x1==_0x5edfce['length']&&(_0x4cfc74['start']['isEqual'](_0x4d024c['end'])||_0x4cfc74['end']['isEqual'](_0x4d024c['start'])))return!0x0;}if(0x3==_0x2235c0&&0x3==_0x1af5a1&&_0x4cfc74['start']['isBefore'](_0x4d024c['start'])){const _0xeb0d4a=_0x4cfc74['end']['nodeAfter'],_0x4ffe71=_0x4d024c['start']['nodeBefore'];return _0x9cfed3['isBlockImage'](_0xeb0d4a)&&_0xeb0d4a===_0x4ffe71;}return!0x1;}_0x228436['model']['document']['registerPostFixer'](()=>{let _0x3c8e07=!0x1;const _0x17a60b=Array['from'](_0x228436['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a4086,data:_0x30d1af}of _0x17a60b){const {group:_0x54cfd9,type:_0x36eb16,subType:_0xa7029a,id:_0x2933df}=_0x12d68e['_splitMarkerName'](_0x4a4086);if('suggestion'==_0x54cfd9&&_0x12d68e['hasSuggestion'](_0x2933df)){if('formatBlock'==_0x36eb16&&('imageStylePreApply'==_0xa7029a||'imageStylePostApply'==_0xa7029a)){const _0x3f9426=_0x12d68e['getSuggestion'](_0x2933df);if(_0x30d1af['newRange']){const _0x1ea6db=_0x3f9426['getFirstRange']()['getContainedElement']();if(_0x9cfed3['isBlockImage'](_0x1ea6db))continue;_0x12d68e['discardSuggestion'](_0x3f9426),_0x3c8e07=!0x0;}}if('insertion'==_0x36eb16&&'imageCaption'==_0xa7029a&&!_0x30d1af['newRange']){const _0xcc689e=_0x12d68e['getSuggestion'](_0x2933df);_0xcc689e['next']&&_0xcc689e['next']['isInContent']&&(_0x12d68e['discardSuggestion'](_0xcc689e['next']),_0x3c8e07=!0x0);}}}return _0x3c8e07;}),this['_registerLegacyDescription'](_0x48220d);}['_registerLegacyDescription'](_0x58f689){const _0x39f90c=this['editor'],_0x5d409e=_0x39f90c['locale'];_0x39f90c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a8ef4=>{if('formatBlock'!=_0x2a8ef4['type']&&'formatInline'!=_0x2a8ef4['type'])return;const {data:_0x16ea10}=_0x2a8ef4;if(!_0x16ea10||'imageStyle'!=_0x16ea10['commandName'])return;const _0x5326f4=_0x16ea10['commandParams'][0x0]['value'];return _0x3bd882('side'===_0x5326f4?o(_0x5d409e,'FORMAT_SIDE_IMAGE'):_0x58f689[_0x5326f4]||_0x5326f4);function _0x3bd882(_0x39ca09){return{'type':'format','content':o(_0x5d409e,'*Format:*\x20%0',_0x39ca09)};}});}}class ot extends _0x462782{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3be51a){super(_0x3be51a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4c380e=this['editor'],_0xe3ac02=_0x4c380e['commands']['get']('importWord'),_0x373eb6=_0x4c380e['commands']['get']('trackChanges');_0xe3ac02&&(_0xe3ac02['on']('execute',(_0x2c5ed4,[,_0x4f8641])=>{this['_trackChangesValueDuringImport']=_0x373eb6['value'],_0x4f8641['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xe3ac02,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xe3ac02,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x373eb6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4c380e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25b494,_0x2a2c4b){const {suggestions:_0x3a6e73}=_0x2a2c4b,_0x3d5627=this['editor']['commands']['get']('trackChanges'),_0x530e38=_0x3d5627['value'];this['_trackChangesValueDuringImport']!==_0x530e38&&(_0x3d5627['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a6e73&&_0x3a6e73['forEach'](({id:_0x351c6b,type:_0x1cc60a,author:_0x31d346,created_at:_0x514b6b})=>{const _0x4c4849={'id':_0x351c6b,'type':_0x1cc60a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x31d346,'createdAt':_0x514b6b?new Date(_0x514b6b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c4849);});}}class rt extends _0x462782{['afterInit'](){const _0xfe5ffa=this['editor'],_0x3de698=_0xfe5ffa['plugins']['get']('TrackChangesEditing');if(_0xfe5ffa['plugins']['has']('IndentEditing')&&(_0x3de698['enableCommand']('indent'),_0x3de698['enableCommand']('outdent')),_0xfe5ffa['plugins']['has']('IndentBlock')){for(const _0x5f0499 of['indentBlock','outdentBlock'])_0x3de698['enableDefaultAttributesIntegration'](_0x5f0499);}const _0x39618a=_0xfe5ffa['locale'];_0x3de698['registerBlockAttribute']('blockIndent'),_0x3de698['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x39618a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x61e847=this['editor'],_0x5a0259=_0x61e847['locale'],_0x2fc5f5=_0x61e847['plugins']['get']('TrackChangesEditing');_0x2fc5f5['descriptionFactory']['registerDescriptionCallback'](_0x5ec848=>{if('formatBlock'!=_0x5ec848['type'])return;const {data:_0x1525ab}=_0x5ec848;if(!_0x1525ab)return;if('indentBlock'!=_0x1525ab['commandName']&&'outdentBlock'!=_0x1525ab['commandName'])return;const _0x26dd10=_0x5ec848['getItems']()[0x0],_0x24e5fd=_0x2fc5f5['descriptionFactory']['getItemLabel'](_0x26dd10);return'indentBlock'==_0x1525ab['commandName']?{'type':'format','content':o(_0x5a0259,'*Indent:*\x20%0',_0x24e5fd)}:'outdentBlock'==_0x1525ab['commandName']?{'type':'format','content':o(_0x5a0259,'*Outdent:*\x20%0',_0x24e5fd)}:void 0x0;});}}class at extends _0x462782{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x462782{['afterInit'](){const _0x117b4c=this['editor'];if(!_0x117b4c['plugins']['has']('LinkEditing'))return;const _0x57d8b8=_0x117b4c['plugins']['get']('TrackChangesEditing'),_0x17819a=_0x117b4c['commands']['get']('link');_0x57d8b8['enableDefaultAttributesIntegration']('link'),_0x57d8b8['enableDefaultAttributesIntegration']('unlink'),_0x57d8b8['registerInlineAttribute']('linkHref');for(const _0x16b76d of _0x17819a['manualDecorators'])_0x57d8b8['registerInlineAttribute'](_0x16b76d['id']),_0x57d8b8['descriptionFactory']['registerAttributeLabel'](_0x16b76d['id'],'link\x20('+_0x16b76d['label']['toLowerCase']()+')');_0x57d8b8['descriptionFactory']['registerDescriptionCallback'](_0x163069=>{if('attribute'!=_0x163069['type'])return;const {data:_0x709d68}=_0x163069;if(!_0x709d68||'linkHref'!=_0x709d68['key'])return;const _0x14159=_0x709d68['newValue'],_0x1241f4=_0x117b4c['locale'];return{'type':'format','content':null==_0x14159?o(_0x1241f4,'*Remove\x20link*'):o(_0x1241f4,'*Set\x20link:*\x20%0','\x22'+_0x14159+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24041a=this['editor'],_0x14270d=_0x24041a['locale'];_0x24041a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d30e9=>{if('formatInline'!=_0x5d30e9['type'])return;const {data:_0x1ca9cc}=_0x5d30e9;if(_0x1ca9cc){if('link'==_0x1ca9cc['commandName']){const _0x15b23b=_0x1ca9cc['commandParams'][0x0];return{'type':'format','content':o(_0x14270d,'*Set\x20link:*\x20%0','\x22'+_0x15b23b+'\x22')};}return'unlink'==_0x1ca9cc['commandName']?{'type':'format','content':o(_0x14270d,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x462782{['afterInit'](){const _0x575808=this['editor'],_0x547774=_0x575808['locale'];if(!_0x575808['plugins']['has']('LegacyListEditing'))return;const _0x5420a7=_0x575808['plugins']['get']('TrackChangesEditing'),_0x7ed3b2=_0x575808['plugins']['has']('LegacyTodoListEditing');function _0x4556e0(_0x30457e){return()=>{const _0x4b87a8=_0x575808['model']['document']['selection'],_0x242853=_0x575808['commands']['get'](_0x30457e);if(_0x242853['value'])return void _0x575808['execute']('paragraph',{});const _0x28cb99=_0x30457e['slice'](0x0,-0x4),_0x36e4f9=function(_0x537864,_0x169a4a,_0x201c3e){let _0x41e446=Array['from'](_0x537864)['filter'](_0x58ac80=>function(_0x5a0e90,_0x103e85){return _0x103e85['checkChild'](_0x5a0e90['parent'],'listItem')&&!_0x103e85['isObject'](_0x5a0e90);}(_0x58ac80,_0x201c3e));_0x41e446=_0x41e446['filter'](_0x5f267c=>!_0x5f267c['is']('element','listItem')||_0x5f267c['getAttribute']('listType')!=_0x169a4a);const _0x3262e6=new Set();for(const _0x1c9500 of _0x41e446)_0x1c9500['is']('element','listItem')?_0x3262e6['add'](me(_0x1c9500)):_0x3262e6['add'](_0x1c9500);return Array['from'](_0x3262e6);}(_0x4b87a8['getSelectedBlocks'](),_0x28cb99,_0x575808['model']['schema']);_0x575808['model']['change'](()=>{for(const _0x39a619 of _0x36e4f9)_0x5420a7['markBlockFormat'](_0x39a619,{'commandName':_0x30457e,'commandParams':[{'forceValue':!_0x242853['value']}],'formatGroupId':'blockName'},fe(_0x39a619));});};}function _0x2c8247(_0xa2c6cf){return()=>{const _0x50c031=function(_0x46226a){let _0x39f3c9=Array['from'](_0x46226a);const _0x1b25a9=_0x39f3c9['findIndex'](_0x48e66f=>'listItem'!=_0x48e66f['name']);return _0x1b25a9>-0x1&&(_0x39f3c9=_0x39f3c9['slice'](0x0,_0x1b25a9)),_0x39f3c9;}(_0x575808['model']['document']['selection']['getSelectedBlocks']()),_0x2b6a90=_0x575808['model']['createRange'](_0x575808['model']['createPositionAt'](_0x50c031[0x0],'before'),_0x575808['model']['createPositionAt'](_0x50c031[_0x50c031['length']-0x1],'end'));_0x575808['model']['change'](()=>{_0x5420a7['markBlockFormat'](_0x2b6a90,{'commandName':_0xa2c6cf,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4e6f22){const _0xc57fa9=new Set();for(const _0x33d290 of _0x4e6f22){let _0x4dc210=_0x33d290['nextSibling'];for(;_0x4dc210&&_0x4dc210['getAttribute']('listIndent')>_0x33d290['getAttribute']('listIndent');)_0xc57fa9['add'](_0x4dc210),_0x4dc210=_0x4dc210['nextSibling'];}return Array['from'](_0xc57fa9);}(_0x50c031));});};}_0x5420a7['enableCommand']('numberedList',_0x4556e0('numberedList')),_0x5420a7['enableCommand']('bulletedList',_0x4556e0('bulletedList')),_0x7ed3b2&&_0x5420a7['enableCommand']('todoList',_0x4556e0('todoList')),_0x5420a7['enableCommand']('indentList',_0x2c8247('indentList')),_0x5420a7['enableCommand']('outdentList',_0x2c8247('outdentList')),_0x7ed3b2&&_0x5420a7['enableCommand']('checkTodoList',()=>{const _0x290966=_0x575808['commands']['get']('checkTodoList'),_0x4fdd3d=Array['from'](_0x290966['_selectedElements']);_0x4fdd3d['filter'](_0x132906=>_0x132906['getAttribute']('todoListChecked')!=_0x290966['value']),_0x575808['model']['change'](()=>{for(const _0x1c39b7 of _0x4fdd3d)_0x5420a7['markBlockFormat'](_0x1c39b7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x290966['value']}]});});}),_0x5420a7['descriptionFactory']['registerElementLabel']('listItem',_0x5cafd1=>o(_0x547774,'ELEMENT_LIST_ITEM',_0x5cafd1)),_0x5420a7['descriptionFactory']['registerDescriptionCallback'](_0x4c569a=>{if('formatBlock'!=_0x4c569a['type']&&'formatInline'!=_0x4c569a['type'])return;const {data:_0x330307}=_0x4c569a;if(_0x330307){if('numberedList'==_0x330307['commandName']||'bulletedList'==_0x330307['commandName']||'todoList'==_0x330307['commandName'])switch(_0x330307['commandName']['replace']('List','')){case'bulleted':return _0x3a1645(o(_0x547774,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a1645(o(_0x547774,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a1645(o(_0x547774,'ELEMENT_TODO_LIST'));}if('indentList'==_0x330307['commandName'])return{'type':'format','content':o(_0x547774,'*Indent:*\x20%0',o(_0x547774,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x330307['commandName'])return{'type':'format','content':o(_0x547774,'*Outdent:*\x20%0',o(_0x547774,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x330307['commandName'])return _0x330307['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x547774,'*Check\x20item*')}:{'type':'format','content':o(_0x547774,'*Uncheck\x20item*')};}function _0x3a1645(_0x5bb1a7){return{'type':'format','content':o(_0x547774,'*Change\x20to:*\x20%0',_0x5bb1a7)};}});}}function me(_0x330ff2){const _0x158b8a=_0x330ff2['getAttribute']('listIndent');if(0x0==_0x158b8a)return _0x330ff2;let _0x4ef2ec=_0x330ff2;for(;_0x330ff2['previousSibling']&&_0x330ff2['previousSibling']['is']('element','listItem');){const _0x50fecd=_0x330ff2['previousSibling']['getAttribute']('listIndent');if(_0x50fecd==_0x158b8a)_0x4ef2ec=_0x330ff2['previousSibling'];else{if(_0x50fecd<_0x158b8a)break;}_0x330ff2=_0x330ff2['previousSibling'];}return _0x4ef2ec;}function fe(_0x1ab64c){const _0x3586f6=[];if(_0x1ab64c['is']('element','listItem')&&_0x1ab64c['getAttribute']('listIndent')>0x0){let _0x4d66b4=_0x1ab64c['nextSibling'];for(;_0x4d66b4&&'listItem'==_0x4d66b4['name']&&_0x4d66b4['getAttribute']('listIndent')==_0x1ab64c['getAttribute']('listIndent');)_0x3586f6['push'](_0x4d66b4),_0x4d66b4=_0x4d66b4['nextSibling'];}return _0x3586f6;}class K extends _0x462782{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x207fe2=this['editor']['config']['get']('list.properties'),_0x3a1f5e=this['editor']['plugins']['get']('TrackChangesEditing');_0x207fe2['styles']&&_0x3a1f5e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x207fe2['reversed']&&_0x3a1f5e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x207fe2['startIndex']&&_0x3a1f5e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3a1f5e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x55259e,_0xa1fdba={}){const _0x5c5d6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a186e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5c5d6a['markMultiRangeBlockFormat'](_0x3a186e,{'commandName':'listStyle','commandParams':[{'type':_0xa1fdba['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xbeaaea,_0x427349={}){const _0xf969c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ce2c8=this['_getSuggestionBlocks'](_0x929162=>_0x929162['is']('element','listItem')&&'numbered'===_0x929162['getAttribute']('listType'));if(_0x1ce2c8['length']<0x1)return;const _0x1a9230=_0x1ce2c8['map'](_0xbe6154=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xbe6154,'before'),this['editor']['model']['createPositionAt'](_0xbe6154,0x0)));this['editor']['model']['change'](()=>{_0xf969c4['markMultiRangeBlockFormat'](_0x1a9230,{'commandName':'listReversed','commandParams':[{'reversed':_0x427349['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1b9c89,_0x150c16={}){const _0xea11b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9e4fb7=this['_getSuggestionBlocks'](_0x1f3781=>_0x1f3781['is']('element','listItem')&&'numbered'===_0x1f3781['getAttribute']('listType'));if(_0x9e4fb7['length']<0x1)return;const _0x43958a=_0x9e4fb7['map'](_0x536b4b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x536b4b,'before'),this['editor']['model']['createPositionAt'](_0x536b4b,0x0)));this['editor']['model']['change'](()=>{_0xea11b6['markMultiRangeBlockFormat'](_0x43958a,{'commandName':'listStart','commandParams':[{'startIndex':_0x150c16['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x39ba63){if('formatBlock'!=_0x39ba63['type']&&'formatInline'!=_0x39ba63['type'])return;const _0x5a6fb1=this['editor']['locale'],{data:_0x27361b}=_0x39ba63;if(!_0x27361b)return;let _0x586782,_0x1a61c;switch(_0x27361b['commandName']){case'listStyle':_0x586782='*Change\x20to:*\x20%0',_0x1a61c={'type':'format','content':o(_0x5a6fb1,_0x586782,o(_0x5a6fb1,this['_getTranslationKeyForListStyle'](_0x27361b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x586782=_0x27361b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a61c={'type':'format','content':o(_0x5a6fb1,_0x586782)};break;case'listStart':_0x586782='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a61c={'type':'format','content':o(_0x5a6fb1,_0x586782,_0x27361b['commandParams'][0x0]['startIndex'])};}return _0x1a61c;}['_getSuggestionBlocksForListStyle'](){const _0x266718=this['editor']['plugins']['get']('LegacyListUtils');let _0x59f379=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x59f379[0x0]?.['is']('element','listItem')&&_0x59f379['unshift'](..._0x266718['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x59f379[_0x59f379['length']-0x1]?.['is']('element','listItem')&&_0x59f379['push'](..._0x266718['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x59f379=[...new Set(_0x59f379)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x59f379=_0x59f379['filter'](_0x213262=>_0x213262['is']('element','listItem'))),_0x59f379;}['_getSuggestionBlocks'](_0x41be4e){const _0x2fe307=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f3e74=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x41be4e)['map'](_0x457f32=>{const _0x38d778=this['editor']['model']['createPositionAt'](_0x457f32,0x0);return[..._0x2fe307['getSiblingNodes'](_0x38d778,'backward'),..._0x2fe307['getSiblingNodes'](_0x38d778,'forward')];})['flat']();return _0x1f3e74=[...new Set(_0x1f3e74)],_0x1f3e74;}['_getTranslationKeyForListStyle'](_0x1fe2a8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1fe2a8)||'default')['toUpperCase']()+'_LIST_'+_0x1fe2a8['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x462782{['afterInit'](){const _0x13b33c=this['editor'];if(!_0x13b33c['plugins']['has']('MediaEmbedEditing'))return;const _0x12b986=_0x13b33c['plugins']['get']('TrackChangesEditing'),_0x561f85=_0x13b33c['locale'];_0x12b986['enableCommand']('mediaEmbed'),_0x12b986['descriptionFactory']['registerElementLabel']('media',_0x259888=>o(_0x561f85,'ELEMENT_MEDIA',_0x259888)),_0x13b33c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x275819,{writer:_0x2b4e07,options:_0x359b81})=>{if(_0x359b81['showSuggestionHighlights'])return _0x2b4e07['createEmptyElement']('div');},'converterPriority':'high'}),_0x13b33c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x36f90d,_0x189959,_0x1d542f)=>{_0x1d542f['options']['showSuggestionHighlights']&&_0x36f90d['stop']();},{'priority':'high'});}}class gt extends _0x462782{['afterInit'](){const _0xc1b37c=this['editor'];_0xc1b37c['plugins']['has']('MentionEditing')&&_0xc1b37c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x462782{['afterInit'](){const _0x28eba8=this['editor'],_0x1d2a8e=_0x28eba8['plugins']['get']('TrackChangesEditing');_0x28eba8['plugins']['has']('MultiLevelList')&&(_0x1d2a8e['enableDefaultAttributesIntegration']('multiLevelList'),_0x1d2a8e['registerBlockAttribute']('listMarkerStyle'),_0x1d2a8e['descriptionFactory']['registerDescriptionCallback'](_0x485f46=>this['handleDescriptions'](_0x485f46)));}['handleDescriptions'](_0x5c7921){const _0x5b81d2=this['editor']['locale'],{data:_0x23532a}=_0x5c7921,_0x11e3fc={'type':'format','content':''};if(_0x23532a&&'listMarkerStyle'==_0x23532a['key']){if(!_0x23532a['oldValue'])return{'type':'format','content':o(_0x5b81d2,'*Set\x20format:*\x20%0',o(_0x5b81d2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x23532a['newValue']+')'};if(!_0x23532a['newValue']){let _0xc65104=_0x5c7921['head'];for(;_0xc65104;){if(_0xc65104['data']&&'listType'==_0xc65104['data']['key']&&_0xc65104['data']['newValue'])return _0x11e3fc;_0xc65104=_0xc65104['next'];}return{'type':'format','content':o(_0x5b81d2,'*Remove\x20format:*\x20%0',o(_0x5b81d2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x23532a['oldValue']+')'};}}}}class mt extends _0x462782{['afterInit'](){const _0x1b4d60=this['editor'];if(!_0x1b4d60['plugins']['has']('PageBreakEditing'))return;_0x1b4d60['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2ec579=_0x1b4d60['plugins']['get']('TrackChangesEditing'),_0x4370b4=_0x1b4d60['locale'];_0x2ec579['descriptionFactory']['registerElementLabel']('pageBreak',_0x5a747a=>o(_0x4370b4,'ELEMENT_PAGE_BREAK',_0x5a747a));}}class dt extends _0x462782{['afterInit'](){const _0x3e0070=this['editor'];if(!_0x3e0070['plugins']['has']('Paragraph'))return;const _0x3f7216=_0x3e0070['locale'],_0x585690=_0x3e0070['plugins']['get']('TrackChangesEditing');_0x585690['descriptionFactory']['registerElementLabel']('paragraph',_0x537077=>o(_0x3f7216,'ELEMENT_PARAGRAPH',_0x537077)),_0x585690['enableDefaultAttributesIntegration']('paragraph'),_0x585690['enableCommand']('insertParagraph'),_0x3e0070['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3e0070),{'priority':'highest'}),_0x3e0070['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xa8b8dd,_0x217dad,_0x2eac84)=>{_0x2eac84['options']['showSuggestionHighlights']&&nr(_0x3e0070,{'showActiveMarker':!0x1})(_0xa8b8dd,_0x217dad,_0x2eac84);},{'priority':'highest'});const _0x2160ec=_0x585690['descriptionFactory'];_0x2160ec['registerDescriptionCallback'](_0x388291=>{if('insertion'!==_0x388291['type'])return;const {start:_0x2fa901,end:_0x538a13}=_0x388291['getFirstRange']();if(!_0x2fa901['isTouching'](_0x538a13)||!_0x2fa901['nodeAfter'])return;const _0x3bf50f=_0x3e0070['model']['schema'],_0xe28e06=_0x2fa901['nodeAfter'];return _0x3bf50f['isBlock'](_0xe28e06)&&!_0x3bf50f['isLimit'](_0xe28e06)&&_0x3bf50f['checkChild'](_0xe28e06,'$text')?{'type':'insertion','content':o(_0x3f7216,'*Insert:*\x20%0',_0x2160ec['getItemLabel'](_0xe28e06,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x98a92a=this['editor'],_0x3a51a2=_0x98a92a['locale'];_0x98a92a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd420a3=>{if('formatBlock'!=_0xd420a3['type'])return;const {data:_0x4a8f7f}=_0xd420a3;return _0x4a8f7f&&'paragraph'==_0x4a8f7f['commandName']?{'type':'format','content':o(_0x3a51a2,'*Change\x20to:*\x20%0',o(_0x3a51a2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4520d4,{showActiveMarker:_0x1ba91a=!0x0}={}){return(_0x5ee204,_0x11b697,_0x3ebba8)=>{const _0x52ab96=_0x4520d4['plugins']['get']('TrackChangesEditing'),_0x1acc33=_0x11b697['markerRange']['start'],_0x54c645=_0x11b697['markerRange']['end'],_0x37bcf5=_0x4520d4['model']['schema'];if(!_0x1acc33['isTouching'](_0x54c645)||!_0x1acc33['nodeAfter'])return;const _0x2c60fa=_0x1acc33['nodeAfter'];if(_0x37bcf5['isBlock'](_0x2c60fa)&&!_0x37bcf5['isLimit'](_0x2c60fa)&&_0x37bcf5['checkChild'](_0x2c60fa,'$text')){if(!_0x3ebba8['consumable']['consume'](_0x11b697['markerRange'],_0x5ee204['name']))return;const _0x52d8a1=_0x3ebba8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3ea908=_0x3ebba8['mapper']['toViewPosition'](_0x54c645);_0x1ba91a&&_0x52ab96['activeMarkers']['includes'](_0x11b697['markerName'])&&_0x3ebba8['writer']['addClass']('ck-suggestion-marker--active',_0x52d8a1),_0x3ebba8['writer']['insert'](_0x3ea908,_0x52d8a1),_0x3ebba8['mapper']['bindElementToMarker'](_0x52d8a1,_0x11b697['markerName']);}};}class pt extends _0x462782{['afterInit'](){const _0x2d5085=this['editor'];if(!_0x2d5085['plugins']['has']('RemoveFormatEditing'))return;_0x2d5085['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57ad0b=this['editor'];_0x57ad0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25f1e3=>{if('formatBlock'!=_0x25f1e3['type']&&'formatInline'!=_0x25f1e3['type'])return;const {data:_0x6d73c2}=_0x25f1e3;return _0x6d73c2&&'removeFormat'==_0x6d73c2['commandName']?{'type':'format','content':o(_0x57ad0b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x462782{['afterInit'](){const _0x3c8110=this['editor'];if(!_0x3c8110['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4eb605=_0x3c8110['plugins']['get']('TrackChangesEditing');_0x4eb605['enableCommand']('goToPreviousRestrictedEditingException'),_0x4eb605['enableCommand']('goToNextRestrictedEditingException');const _0x16dcdd=_0x3c8110['plugins']['get']('RestrictedEditingModeEditing');_0x16dcdd['enableCommand']('trackChanges'),_0x16dcdd['enableCommand']('acceptSuggestion'),_0x16dcdd['enableCommand']('discardSuggestion'),_0x16dcdd['enableCommand']('acceptAllSuggestions'),_0x16dcdd['enableCommand']('discardAllSuggestions'),_0x16dcdd['enableCommand']('acceptSelectedSuggestions'),_0x16dcdd['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x462782{static get['requires'](){return[_0x2477d3];}['init'](){const _0x5a324d=this['editor'],_0x27a2cc=_0x5a324d['plugins']['get']('TrackChangesEditing');_0x27a2cc['enableCommand']('shiftEnter'),_0x5a324d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5a324d),{'priority':'high'}),_0x5a324d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5a324d),{'priority':'high'}),_0x5a324d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59afbd,_0x1828ff,_0x3a6da4)=>{_0x3a6da4['options']['showSuggestionHighlights']&&de(_0x5a324d,{'showActiveMarker':!0x1})(_0x59afbd,_0x1828ff,_0x3a6da4);}),_0x27a2cc['descriptionFactory']['registerElementLabel']('softBreak',_0x99f752=>o(_0x5a324d['locale'],'ELEMENT_LINE_BREAK',_0x99f752));}}function de(_0x47cff1,{showActiveMarker:_0x1a424a=!0x0}={}){return(_0x3cba15,_0x3b12cc,_0xd4c3ef)=>{const _0x230210=_0x47cff1['plugins']['get']('TrackChangesEditing');if(!_0xd4c3ef['consumable']['test'](_0x3b12cc['markerRange'],_0x3cba15['name']))return;const _0x13989d=_0x47cff1['model'];for(const _0x887e6c of _0x3b12cc['markerRange']['getItems']()){if(!_0x887e6c['is']('element','softBreak'))continue;const _0x732df1='deletion'==_0x3b12cc['markerName']['split'](':')[0x1]?'merge':'split',_0x25e3ec=_0xd4c3ef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x732df1}),_0xadbdc3=_0xd4c3ef['mapper']['toViewPosition'](_0x13989d['createPositionBefore'](_0x887e6c));_0x1a424a&&_0x230210['activeMarkers']['includes'](_0x3b12cc['markerName'])&&_0xd4c3ef['writer']['addClass']('ck-suggestion-marker--active',_0x25e3ec),_0xd4c3ef['writer']['insert'](_0xadbdc3,_0x25e3ec),_0xd4c3ef['mapper']['bindElementToMarker'](_0x25e3ec,_0x3b12cc['markerName']);}};}class wt extends _0x462782{['afterInit'](){const _0x435b47=this['editor'],_0x4a152b=_0x435b47['model'],_0x33ae7f=_0x435b47['locale'];if(!_0x435b47['plugins']['has']('StandardEditingModeEditing'))return;const _0x3a7760=_0x435b47['plugins']['get']('TrackChangesEditing'),_0x3a077d='restrictedEditingException',_0x23e263=_0x435b47['commands']['get'](_0x3a077d);_0x3a7760['enableCommand'](_0x3a077d,(_0x4b2aa4,_0x2463d5={})=>{const _0x9363f8=_0x4a152b['document']['selection'];if(_0x9363f8['isCollapsed'])return void _0x4b2aa4(_0x2463d5);const _0x18100d=void 0x0!==_0x2463d5['forceValue']?_0x2463d5['forceValue']:!_0x23e263['value'];_0x4a152b['change'](()=>{const _0x706243=Array['from'](_0x9363f8['getRanges']());for(const _0x389da7 of _0x706243){const _0x179051=_0x18100d?[_0x389da7]:io(_0x3a077d,_0x389da7,_0x4a152b);for(const _0x1a210b of _0x179051)_0x3a7760['markInlineFormat'](_0x1a210b,{'commandName':_0x3a077d,'commandParams':[{'forceValue':_0x18100d}]});}});}),_0x3a7760['descriptionFactory']['registerDescriptionCallback'](_0x15637d=>{if('formatBlock'!=_0x15637d['type']&&'formatInline'!=_0x15637d['type'])return;const {data:_0x435c81}=_0x15637d;return _0x435c81&&_0x435c81['commandName']==_0x3a077d?_0x435c81['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33ae7f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x33ae7f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x462782{['afterInit'](){const _0x2fd738=this['editor'];if(!_0x2fd738['plugins']['has']('Style')||!_0x2fd738['plugins']['has']('DataSchema'))return;const _0x3a97c0=_0x2fd738['plugins']['get']('TrackChangesEditing'),_0x45117b=_0x2fd738['locale'],_0x5c06ab=_0x2fd738['config']['get']('style')||{},_0x36b768=_0x2fd738['plugins']['get']('GeneralHtmlSupport'),_0x72b9db=_0x2fd738['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2fd738['plugins']['get']('DataSchema'),_0x5c06ab['definitions']);_0x3a97c0['enableDefaultAttributesIntegration']('style');const _0x3b3547=new Set();for(const _0x184ce9 of _0x72b9db['block']){const _0x2a8ab8=_0x36b768['getGhsAttributeNameForElement'](_0x184ce9['element']);_0x3b3547['add'](_0x2a8ab8);}const _0x1ef35d=new Set();for(const _0x285bbb of _0x72b9db['inline']){const _0x31f17c=_0x36b768['getGhsAttributeNameForElement'](_0x285bbb['element']);_0x1ef35d['add'](_0x31f17c);for(const _0x2e32f3 of _0x285bbb['ghsAttributes'])_0x1ef35d['add'](_0x2e32f3);}for(const _0x573f64 of _0x3b3547)_0x3a97c0['registerBlockAttribute'](_0x573f64),_0x3a97c0['descriptionFactory']['registerAttributeLabel'](_0x573f64,o(_0x45117b,'FORMAT_STYLE'));for(const _0xaae2aa of _0x1ef35d)_0x3a97c0['registerInlineAttribute'](_0xaae2aa),_0x3a97c0['descriptionFactory']['registerAttributeLabel'](_0xaae2aa,o(_0x45117b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb52c0c=this['editor'],_0x1e6d50=_0xb52c0c['locale'];_0xb52c0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29668f=>{if('formatBlock'!=_0x29668f['type']&&'formatInline'!=_0x29668f['type'])return;const {data:_0x1bbf0f}=_0x29668f;return _0x1bbf0f&&'style'===_0x1bbf0f['commandName']?_0x1bbf0f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e6d50,'*Set\x20format:*\x20%0',_0x1bbf0f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1e6d50,'*Remove\x20format:*\x20%0',_0x1bbf0f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x462782{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3fda74){super(_0x3fda74),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2a7aba=this['editor'],_0x32da0c=_0x2a7aba['model']['document']['selection'];if(!_0x2a7aba['plugins']['has']('TableEditing'))return;const _0x4f4dc7=_0x2a7aba['locale'],_0x1568bf=_0x2a7aba['plugins']['get']('TrackChangesEditing'),_0x256646=_0x2a7aba['plugins']['get']('TableUtils');_0x1568bf['descriptionFactory']['registerElementLabel']('table',_0x361727=>o(_0x4f4dc7,'ELEMENT_TABLE',_0x361727)),this['_setupColumnsRowsFixing'](),_0x1568bf['enableCommand']('insertTable'),_0x1568bf['enableCommand']('selectTableRow'),_0x1568bf['enableCommand']('selectTableColumn');for(const _0x2d3b3f of['insertTableRowAbove','insertTableRowBelow']){const _0x4c8e8a=_0x2a7aba['commands']['get'](_0x2d3b3f);_0x1568bf['enableCommand'](_0x2d3b3f,_0x545004=>{_0x2a7aba['model']['change'](_0xd7aa6a=>{_0x545004();const _0x313069='above'===_0x4c8e8a['order'],_0x144554=_0x256646['getSelectionAffectedTableCells'](_0x32da0c),_0x5827a0=_0x256646['getRowIndexes'](_0x144554),_0x1f806f=_0x313069?_0x5827a0['first']-0x1:_0x5827a0['last']+0x1,_0x4044c9=_0x144554[0x0]['findAncestor']('table'),_0x41e989=_0x256646['createTableWalker'](_0x4044c9,{'startRow':_0x1f806f,'endRow':_0x1f806f}),_0x16c793=Array['from'](_0x41e989)['map'](_0x32bb08=>_0xd7aa6a['createRangeOn'](_0x32bb08['cell']));_0x1568bf['markMultiRangeInsertion'](_0x16c793,'tableRow');});});}for(const _0x5c5ff8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x176100=_0x2a7aba['commands']['get'](_0x5c5ff8);_0x1568bf['enableCommand'](_0x5c5ff8,_0x22a93b=>{_0x2a7aba['model']['change'](_0x3de2f8=>{_0x22a93b();const _0x4f4577='left'===_0x176100['order'],_0x1eccbf=_0x256646['getSelectionAffectedTableCells'](_0x32da0c),_0x1fbd97=_0x256646['getColumnIndexes'](_0x1eccbf),_0x15021f=_0x4f4577?_0x1fbd97['first']-0x1:_0x1fbd97['last']+0x1,_0x5068dd=_0x1eccbf[0x0]['findAncestor']('table'),_0x4ad5ea=_0x256646['createTableWalker'](_0x5068dd,{'startRow':0x0,'column':_0x15021f,'includeAllSlots':!0x1}),_0x22316c=Array['from'](_0x4ad5ea)['map'](_0x54f3bd=>_0x3de2f8['createRangeOn'](_0x54f3bd['cell']));_0x1568bf['markMultiRangeInsertion'](_0x22316c,'tableColumn');});});}for(const _0x1911d3 of['removeTableRow','removeTableColumn']){const _0x2dd54d=_0x1911d3['substr'](0xb),_0x28f454=_0x2dd54d['toLowerCase'](),_0x4ce8b4=_0x28f454['substr'](0x0,0x3)+'span',_0x38d90c='table'+_0x2dd54d,_0x1c56bb='min'+_0x2dd54d,_0x56c83d='max'+_0x2dd54d;_0x1568bf['enableCommand'](_0x1911d3,()=>{_0x2a7aba['model']['change'](_0x59ece4=>{const _0xa034bc=_0x256646['getSelectionAffectedTableCells'](_0x32da0c),_0x47a2ba=_0xa034bc[0x0]['findAncestor']('table');let _0x5989dc;if('removeTableRow'==_0x1911d3){const _0x121739=_0x256646['getRowIndexes'](_0xa034bc);_0x5989dc={'startRow':_0x121739['first'],'endRow':_0x121739['last'],'includeAllSlots':!0x0};}else{const _0x4b9346=_0x256646['getColumnIndexes'](_0xa034bc);_0x5989dc={'startColumn':_0x4b9346['first'],'endColumn':_0x4b9346['last'],'includeAllSlots':!0x0};}const _0x13c640=_0x256646['createTableWalker'](_0x47a2ba,_0x5989dc),_0x54fac4=Array['from'](_0x13c640)['map'](({cell:_0x41f14a})=>_0x41f14a),_0xe973a5=Ee(_0x54fac4['filter'](_0x15744d=>_0x15744d['hasAttribute'](_0x4ce8b4))),_0x4f003d=Ee(_0x54fac4['filter'](_0x9c73e4=>!_0x9c73e4['hasAttribute'](_0x4ce8b4)))['map'](_0x2183a1=>_0x59ece4['createRangeOn'](_0x2183a1)),_0x4809ca=_0x1568bf['markMultiRangeDeletion'](_0x4f003d,_0x38d90c);if(_0x4809ca&&('tableRow'==_0x4809ca['subType']||'tableColumn'==_0x4809ca['subType'])){const _0x139c82=this['_getSuggestionCoords'](_0x4809ca);for(const _0x14e7c7 of _0xe973a5){const _0x696479=_0x59ece4['createRangeOn'](_0x14e7c7),_0x42c108=_0x256646['getCellLocation'](_0x14e7c7),_0x58078e=_0x14e7c7['getAttribute'](_0x4ce8b4)-0x1,_0x23190d=_0x139c82[_0x1c56bb],_0x40be07=_0x139c82[_0x56c83d];_0x23190d<=_0x42c108[_0x28f454]&&_0x42c108[_0x28f454]+_0x58078e<=_0x40be07&&_0x4809ca['addRange'](_0x696479);}}});});}function _0x1f7209(_0x358519){const _0x2090f5=Array['from'](_0x32da0c['getRanges']())['map'](_0xdf48e7=>_0x3a5b18['fromRange'](_0xdf48e7));_0x2a7aba['model']['change'](_0x12590e=>{const _0x2e783e=_0x12590e['batch'];_0x358519=_0x358519['filter'](_0x91f292=>'$graveyard'!=_0x91f292['root']['rootName']),_0x12590e['setSelection'](_0x358519),_0x2a7aba['commands']['get']('removeTableRow')['refresh'](),_0x2a7aba['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a7aba['model']['enqueueChange'](()=>{_0x2a7aba['model']['enqueueChange'](_0x2e783e,_0x35c575=>{const _0x4e24cb=_0x2090f5['filter'](_0x56ee76=>'$graveyard'!=_0x56ee76['root']['rootName']);_0x4e24cb['length']>0x0&&_0x35c575['setSelection'](_0x4e24cb);for(const _0x288b8f of _0x2090f5)_0x288b8f['detach']();});});});}function _0x1fbc60(_0x48f1d8){_0x2a7aba['model']['change'](_0x58c83b=>{const _0xfd4bd3=Array['from'](_0x32da0c['getRanges']())['map'](_0x2d396b=>_0x3a5b18['fromRange'](_0x2d396b)),_0x6c0520=[];for(const _0xb1e68b of _0x48f1d8)for(const _0x4ea8aa of _0xb1e68b['getItems']({'shallow':!0x0}))_0x6c0520['push'](_0x4ea8aa);for(const _0x3fef41 of _0x6c0520)'$graveyard'!=_0x3fef41['root']['rootName']&&(_0x58c83b['setSelection'](_0x58c83b['createPositionAt'](_0x3fef41,0x0)),_0x2a7aba['commands']['get']('removeTableColumn')['refresh'](),_0x2a7aba['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x19d155=_0xfd4bd3['filter'](_0x82a72f=>'$graveyard'!=_0x82a72f['root']['rootName']);_0x19d155['length']>0x0&&_0x58c83b['setSelection'](_0x19d155);for(const _0xbfc7a7 of _0xfd4bd3)_0xbfc7a7['detach']();});}function _0x1ec1ed(_0x49c0e5,_0x172f45){return _0x172f45['every'](_0x15c07a=>_0x49c0e5['some'](_0x403d33=>_0x403d33['end']['isEqual'](_0x15c07a['start'])||_0x15c07a['end']['isEqual'](_0x403d33['start'])));}function _0x1a3c07(_0x8ac917,_0x54a690){return!_0x8ac917['some'](_0x53c91d=>_0x54a690['some'](_0x492d6a=>_0x53c91d['isIntersecting'](_0x492d6a)))&&_0x8ac917['some'](_0x334e21=>_0x54a690['some'](_0x1a940a=>_0x334e21['end']['isTouching'](_0x1a940a['start'])));}_0x2a7aba['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x487178,_0x2b55bf,_0x3847fb)=>{if(!_0x3847fb['options']['showSuggestionHighlights'])return;const _0x22cc05=_0x2b55bf['item'];if(!_0x22cc05)return;const _0x1019ca=_0x3847fb['mapper']['toViewElement'](_0x22cc05);function _0x61116b(_0x5937ef){return Array['isArray'](_0x5937ef)?_0x5937ef:[_0x5937ef];}_0x1019ca&&'tableCell'===_0x22cc05['name']&&_0xfd2bd8(_0x1019ca,_0x3847fb['writer'],(_0x144764,_0x5aacce,_0x47d604)=>_0x47d604['addClass'](_0x61116b(_0x5aacce['classes']),_0x144764),(_0x89a6,_0x4d6a99,_0x3139a2)=>_0x3139a2['removeClass'](_0x61116b(_0x4d6a99['classes']),_0x89a6));},{'priority':'highest'}),_0x1568bf['descriptionFactory']['registerDescriptionCallback'](_0xd15f3c=>{if('insertion'!=_0xd15f3c['type']&&'deletion'!=_0xd15f3c['type'])return;const _0x10f8c2=_0xd15f3c['getContainedElement']();if(null!=_0x10f8c2&&_0x10f8c2['is']('element','table')){if('insertion'==_0xd15f3c['type']){const _0xc12682=_0xd15f3c['getItems']()['filter'](_0x32f79c=>_0x32f79c['is']('$textProxy'))['map'](_0x4a2262=>_0x4a2262['data']);if(_0xc12682['length'])return{'type':'insertion','content':o(_0x4f4dc7,'*Insert:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc12682['join']('\x20')+'\x22'))};}if('deletion'==_0xd15f3c['type']){const _0x57a931=_0xd15f3c['getItems']()['filter'](_0x300c48=>_0x300c48['is']('$textProxy'))['map'](_0x459dc9=>_0x459dc9['data']);if(_0x57a931['length'])return{'type':'deletion','content':o(_0x4f4dc7,'*Remove:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57a931['join']('\x20')+'\x22'))};}}}),_0x1568bf['descriptionFactory']['registerDescriptionCallback'](_0x1f19d7=>{if('tableRow'==_0x1f19d7['subType']){const _0x2d4643=_0x1f19d7['getItems']()['filter'](_0x1dcd25=>_0x1dcd25['is']('$textProxy'))['map'](_0x480dba=>_0x480dba['data']),_0x6ce927=this['_getSuggestionCoords'](_0x1f19d7),_0x581fc7=_0x6ce927['maxRow']-_0x6ce927['minRow']+0x1;if('insertion'==_0x1f19d7['type'])return _0x2d4643['length']?{'type':'insertion','content':o(_0x4f4dc7,'*Insert:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x581fc7,'\x22'+_0x2d4643['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4f4dc7,'*Insert:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_ROW',_0x581fc7))};if('deletion'==_0x1f19d7['type'])return _0x2d4643['length']?{'type':'deletion','content':o(_0x4f4dc7,'*Remove:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x581fc7,'\x22'+_0x2d4643['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4f4dc7,'*Remove:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_ROW',_0x581fc7))};}if('tableColumn'==_0x1f19d7['subType']){const _0x147760=_0x1f19d7['getItems']()['filter'](_0x56bbb9=>_0x56bbb9['is']('$textProxy'))['map'](_0x20b025=>_0x20b025['data']),_0xac8f2e=this['_getSuggestionCoords'](_0x1f19d7),_0x551120=_0xac8f2e['maxColumn']-_0xac8f2e['minColumn']+0x1;if('insertion'==_0x1f19d7['type'])return _0x147760['length']?{'type':'insertion','content':o(_0x4f4dc7,'*Insert:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x551120,'\x22'+_0x147760['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4f4dc7,'*Insert:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_COLUMN',_0x551120))};if('deletion'==_0x1f19d7['type'])return _0x147760['length']?{'type':'deletion','content':o(_0x4f4dc7,'*Remove:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x551120,'\x22'+_0x147760['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4f4dc7,'*Remove:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_COLUMN',_0x551120))};}}),_0x1568bf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1f7209),_0x1568bf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1f7209),_0x1568bf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1fbc60),_0x1568bf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1fbc60),_0x1568bf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1ec1ed),_0x1568bf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1ec1ed),_0x1568bf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1a3c07),_0x1568bf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1a3c07);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2fb21f=this['editor'],_0x24af50=_0x2fb21f['model']['document']['selection'];return(_0x57485a,_0x5a23d6)=>{_0x2fb21f['model']['change'](_0x3a4e9a=>{const {commandName:_0x15b916,commandParams:_0x3403ae}=_0x5a23d6;let _0x41f4c5=_0x57485a[0x0]['end']['nodeBefore'];_0x3403ae&&_0x3403ae[0x0]&&!0x1===_0x3403ae[0x0]['forceValue']&&(_0x41f4c5=_0x57485a[0x0]['start']['nodeAfter']);const _0x4f2810=_0x3a4e9a['createRangeIn'](_0x41f4c5);if('$graveyard'==_0x4f2810['root']['rootName'])return;const _0x10b9d0=Array['from'](_0x24af50['getRanges']())['map'](_0x100fa3=>_0x3a5b18['fromRange'](_0x100fa3));_0x3a4e9a['setSelection'](_0x4f2810),_0x2fb21f['commands']['get'](_0x15b916)['refresh'](),_0x3403ae['push']({'forceDefaultExecution':!0x0}),_0x2fb21f['execute'](_0x15b916,..._0x3403ae);const _0x8fd30b=_0x10b9d0['filter'](_0x54a909=>'$graveyard'!=_0x54a909['root']['rootName']);_0x8fd30b['length']>0x0&&_0x3a4e9a['setSelection'](_0x8fd30b);for(const _0x12ca1e of _0x10b9d0)_0x12ca1e['detach']();});};}['_getCoordsForCells'](_0x1b605a){const _0x1a10f0=this['editor']['plugins']['get']('TableUtils');let _0xce8116=Number['MAX_SAFE_INTEGER'],_0x1997b3=Number['MIN_SAFE_INTEGER'],_0x443b11=Number['MAX_SAFE_INTEGER'],_0x5b2db0=Number['MIN_SAFE_INTEGER'];for(const _0x40a135 of _0x1b605a){if('$graveyard'==_0x40a135['root']['rootName'])continue;const {row:_0x5dab82,column:_0x117a17}=_0x1a10f0['getCellLocation'](_0x40a135),_0x2cae3f=_0x40a135['hasAttribute']('rowspan')?_0x40a135['getAttribute']('rowspan')-0x1:0x0,_0x26ecc6=_0x40a135['hasAttribute']('colspan')?_0x40a135['getAttribute']('colspan')-0x1:0x0;_0xce8116=_0x5dab82<_0xce8116?_0x5dab82:_0xce8116,_0x1997b3=_0x5dab82+_0x2cae3f>_0x1997b3?_0x5dab82+_0x2cae3f:_0x1997b3,_0x443b11=_0x117a17<_0x443b11?_0x117a17:_0x443b11,_0x5b2db0=_0x117a17+_0x26ecc6>_0x5b2db0?_0x117a17+_0x26ecc6:_0x5b2db0;}return{'minRow':_0xce8116,'maxRow':_0x1997b3,'minColumn':_0x443b11,'maxColumn':_0x5b2db0};}['_setupColumnsRowsFixing'](){const _0x29a2a1=this['editor'],_0x47b478=_0x29a2a1['plugins']['get']('TrackChangesEditing'),_0x264eb4=_0x29a2a1['plugins']['get']('TableUtils');_0x29a2a1['model']['document']['on']('change:data',()=>{const _0x10160d=Array['from'](_0x29a2a1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1fbb2a,data:_0x54fa0a}of _0x10160d){const {group:_0x585c70,id:_0x3752de,subType:_0x5a5f10}=_0x47b478['_splitMarkerName'](_0x1fbb2a);if('suggestion'!=_0x585c70)continue;if(null!=_0x54fa0a['oldRange'])continue;const _0x12d2e1=_0x47b478['getSuggestion'](_0x3752de);this['_tablePostFixingSubtypes']['includes'](_0x5a5f10)&&this['_tableSuggestions']['add'](_0x12d2e1);}},{'priority':'low'});const _0x3c4ef8=(_0xdc8ca1,_0x5f2b78)=>{let _0x42e655=!0x1;const _0x2a5a2e=_0x5f2b78['createRangeOn'](_0xdc8ca1),_0x18c369=_0xdc8ca1['findAncestor']('table'),_0xd19662=_0x264eb4['getCellLocation'](_0xdc8ca1);for(const _0x3a4ebe of this['_tableSuggestions']){const _0x1de18c=_0x3a4ebe['subType'],_0x42653f=_0x1de18c['startsWith']('tablePaste'),_0xf0ee09=_0x1de18c['substr'](_0x42653f?0xa:0x5),_0x529890=_0xf0ee09['toLowerCase'](),_0x34049a=_0x529890['substr'](0x0,0x3)+'span',_0x33cfad='min'+_0xf0ee09,_0x3379a2='max'+_0xf0ee09;if(!_0x3a4ebe['isInContent'])continue;if(_0x18c369!=_0x3a4ebe['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3a4ebe['isIntersectingWithRange'](_0x2a5a2e))continue;const _0x168b4f=_0xdc8ca1['hasAttribute'](_0x34049a)?_0xdc8ca1['getAttribute'](_0x34049a)-0x1:0x0,_0x22c855=this['_getSuggestionCoords'](_0x3a4ebe),_0x4a6386=_0x22c855[_0x33cfad],_0x4e817c=_0x22c855[_0x3379a2];_0x4a6386<=_0xd19662[_0x529890]&&_0xd19662[_0x529890]+_0x168b4f<=_0x4e817c&&(_0x3a4ebe['addRange'](_0x2a5a2e),_0x42e655=!0x0);}return _0x42e655;};_0x29a2a1['model']['document']['registerPostFixer'](_0x481170=>{let _0x117325=!0x1;for(const _0x223962 of _0x29a2a1['model']['document']['differ']['getChanges']())if('insert'==_0x223962['type']){if('tableRow'==_0x223962['name']){for(const _0x4b9d8c of _0x223962['position']['nodeAfter']['getChildren']())_0x117325=_0x117325||_0x3c4ef8(_0x4b9d8c,_0x481170);}else'tableCell'==_0x223962['name']&&(_0x117325=_0x117325||_0x3c4ef8(_0x223962['position']['nodeAfter'],_0x481170));}return _0x117325;});}['_getSuggestionCoords'](_0x903f80){return this['_getCoordsForCells'](_0x903f80['getRanges']()['map'](_0x40bef7=>_0x40bef7['start']['nodeAfter']));}}function Ee(_0x246cf1){return Array['from'](new Set(_0x246cf1)['values']());}class St extends _0x462782{static get['requires'](){return[jt];}['afterInit'](){const _0x55c058=this['editor'],_0x142602=_0x55c058['model']['document']['selection'],_0x59256a=_0x55c058['locale'];if(!_0x55c058['plugins']['has']('TableEditing'))return;const _0x1ec98d=_0x55c058['plugins']['get']('TrackChangesEditing'),_0x16f2ac=_0x55c058['plugins']['get']('TableUtils'),_0xda680d=_0x55c058['plugins']['get'](jt);_0xda680d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1ec98d['enableCommand']('mergeTableCells',()=>{const _0x4f2200=_0x16f2ac['getSelectionAffectedTableCells'](_0x55c058['model']['document']['selection']);_0x55c058['model']['change'](()=>{_0x1ec98d['markMultiRangeBlockFormat'](_0x4f2200,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x55c058['commands']['get']('mergeTableCells')['on']('execute',(_0x1e284c,_0x2ea752)=>{_0x55c058['commands']['get']('trackChanges')['value']&&(_0x2ea752['length']>0x0&&_0x2ea752[_0x2ea752['length']-0x1]&&_0x2ea752[_0x2ea752['length']-0x1]['forceDefaultExecution']||_0x1ec98d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1e284c['stop']());},{'priority':'highest'});for(const _0x3b1ea0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1af951=_0x55c058['commands']['get'](_0x3b1ea0);_0x1ec98d['enableCommand'](_0x3b1ea0,()=>{const _0x10392d=_0x55c058['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x318b00=>_0x318b00['is']('element','tableCell')),_0x16dc5e=_0x1af951['value'];_0x55c058['model']['change'](()=>{_0x1ec98d['markMultiRangeBlockFormat']([_0x10392d,_0x16dc5e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x19674a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x10932a=_0x55c058['commands']['get'](_0x19674a);_0x1ec98d['enableCommand'](_0x19674a,()=>{const _0x5f4201=_0x16f2ac['getSelectionAffectedTableCells'](_0x55c058['model']['document']['selection'])[0x0],_0x230d68=_0x5f4201['findAncestor']('table'),{column:_0x11f885,row:_0x1cd55f}=_0x16f2ac['getCellLocation'](_0x5f4201);let _0x343134=[];if('horizontally'==_0x10932a['direction']){const _0x7002db=_0x16f2ac['createTableWalker'](_0x230d68,{'startRow':_0x1cd55f,'endRow':_0x1cd55f,'includeAllSlots':!0x0});_0x343134=Array['from'](_0x7002db)['map'](_0x12ad09=>_0x12ad09['cell']);}else{const _0x5e6249=_0x16f2ac['createTableWalker'](_0x230d68,{'column':_0x11f885,'includeAllSlots':!0x0});_0x343134=Array['from'](_0x5e6249)['map'](_0x28a6ff=>_0x28a6ff['cell']);}_0x55c058['model']['change'](_0x3724c4=>{_0x1ec98d['markBlockFormat'](_0x3724c4['createRangeOn'](_0x5f4201),{'commandName':_0x19674a,'commandParams':[]},_0x343134,_0x19674a);});});}_0x1ec98d['descriptionFactory']['registerDescriptionCallback'](_0x12b1bf=>{if('formatBlock'!=_0x12b1bf['type']&&'formatInline'!=_0x12b1bf['type'])return;const {data:_0x448754}=_0x12b1bf;return _0x448754&&'mergeTableCells'==_0x448754['commandName']?{'type':'format','content':o(_0x59256a,'*Merge\x20cells*')}:void 0x0;}),_0x1ec98d['descriptionFactory']['registerDescriptionCallback'](_0x526452=>{if('formatBlock'!=_0x526452['type']&&'formatInline'!=_0x526452['type'])return;const {data:_0x3f3c7a}=_0x526452;return _0x3f3c7a?'splitTableCellVertically'==_0x3f3c7a['commandName']?{'type':'format','content':o(_0x59256a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3f3c7a['commandName']?{'type':'format','content':o(_0x59256a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x10614d=_0xda680d['_acceptFormatSuggestionCallbackFactory']();for(const _0xeeb43b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1ec98d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xeeb43b,'accept',_0x10614d);for(const _0x22346d of['splitTableCellVertically','splitTableCellHorizontally'])_0x1ec98d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22346d,'accept',_0x10614d);_0x1ec98d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x16a77a=>{_0x55c058['model']['change'](_0x1f8daf=>{const _0x2f1b9e=Array['from'](_0x142602['getRanges']())['map'](_0x2dcb9b=>_0x3a5b18['fromRange'](_0x2dcb9b));_0x1f8daf['setSelection'](_0x16a77a),_0x55c058['commands']['get']('mergeTableCells')['refresh'](),_0x55c058['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2e974a=_0x2f1b9e['filter'](_0x442e2b=>'$graveyard'!=_0x442e2b['root']['rootName']);_0x2e974a['length']>0x0&&_0x1f8daf['setSelection'](_0x2e974a);for(const _0x43cab1 of _0x2f1b9e)_0x43cab1['detach']();});});for(const _0x47d116 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1b8edb=_0x55c058['commands']['get'](_0x47d116);_0x1b8edb['on']('set:isEnabled',(_0xd4edae,_0x163f97,_0x157fc1)=>{if(_0x157fc1){const _0x389123=_0x55c058['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1c61f6=>_0x1c61f6['is']('element','tableCell'));this['_areMergableCells'](_0x1b8edb['value'],_0x389123)||(_0xd4edae['return']=!0x1,_0xd4edae['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4e0da6=this['editor']['commands']['get']('mergeTableCells'),_0x7b5ab9=this['editor']['plugins']['get']('TableUtils');if(!_0x4e0da6['isEnabled'])return!0x1;const _0x5f2d26=_0x7b5ab9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2d8416 of _0x5f2d26)for(const _0x1de3fa of _0x5f2d26)if(_0x2d8416!=_0x1de3fa&&!this['_areMergableCells'](_0x2d8416,_0x1de3fa))return!0x1;return!0x0;}['_areMergableCells'](_0x2cc474,_0x4f2b60){const _0x4023da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21873c=this['editor']['model']['createRangeOn'](_0x2cc474),_0x174a28=this['editor']['model']['createRangeOn'](_0x4f2b60),_0x4c2ac1=new Set(),_0x50b270=new Set();for(const _0x18b943 of _0x4023da['getSuggestions']())if(('insertion'==_0x18b943['type']||'deletion'==_0x18b943['type']||'mergeTableCells'==_0x18b943['subType'])&&_0x18b943['isInContent']){for(const _0x3c319a of _0x18b943['getRanges']())_0x3c319a['containsRange'](_0x21873c,!0x0)&&_0x4c2ac1['add'](_0x18b943['type']+':'+_0x18b943['author']['id']),_0x3c319a['containsRange'](_0x174a28,!0x0)&&_0x50b270['add'](_0x18b943['type']+':'+_0x18b943['author']['id']);}if(_0x4c2ac1['size']!=_0x50b270['size'])return!0x1;for(const _0x176ea4 of _0x4c2ac1)if(!_0x50b270['has'](_0x176ea4))return!0x1;return!0x0;}}class At extends _0x462782{static get['requires'](){return[jt];}['afterInit'](){const _0x55f7ac=this['editor'];if(!_0x55f7ac['plugins']['has']('TableEditing'))return;const _0x2296f8=_0x55f7ac['locale'],_0x15a9ed=_0x55f7ac['plugins']['get']('TrackChangesEditing');_0x15a9ed['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x15a9ed['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x15a9ed['registerBlockAttribute']('headingRows'),_0x15a9ed['registerBlockAttribute']('headingColumns'),_0x15a9ed['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2296f8,'FORMAT_HEADER_ROW')),_0x15a9ed['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2296f8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fb5a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x521387=this['editor']['plugins']['get']('TableUtils'),_0x4b253a=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x60db0f({showActiveMarker:_0x2fc5ca=!0x0,setDataAttribute:_0x4f7c1f=!0x0}={}){return(_0x1e6196,_0x110e28,_0x42dd60)=>{const {type:_0x2d488e,id:_0x57dd80}=_0x4fb5a1['_splitMarkerName'](_0x110e28['markerName']),_0x2b2b94=_0x4fb5a1['getSuggestion'](_0x57dd80),_0x47d539=_0x2b2b94['data'];if('formatBlock'!=_0x2b2b94['type']||!_0x47d539||'setTableColumnHeader'!=_0x47d539['commandName'])return;if(_0x110e28['item'])return void _0x1e6196['stop']();if(!_0x42dd60['consumable']['consume'](_0x110e28['markerRange'],_0x1e6196['name']))return;const _0x1a898a=_0x110e28['markerRange']['start']['nodeAfter'],_0x53ab3d=_0x110e28['markerRange']['end']['nodeBefore'],_0x470037=_0x1a898a['parent']['parent'],{column:_0x59cfda}=_0x521387['getCellLocation'](_0x1a898a),{column:_0x487770}=_0x521387['getCellLocation'](_0x53ab3d);for(let _0xede376=_0x59cfda;_0xede376<=_0x487770;_0xede376++){const _0x4e59e1=_0x521387['createTableWalker'](_0x470037,{'column':_0xede376,'includeAllSlots':!0x1});for(const _0x2dbe6c of _0x4e59e1){const _0x59b005=_0x2dbe6c['cell'],_0x2bf2c3=_0x42dd60['mapper']['toViewElement'](_0x59b005);_0x42dd60['writer']['addClass']('ck-suggestion-marker-'+_0x2d488e,_0x2bf2c3),_0x4f7c1f&&_0x42dd60['writer']['setAttribute']('data-suggestion',_0x57dd80,_0x2bf2c3),_0x42dd60['mapper']['bindElementToMarker'](_0x2bf2c3,_0x110e28['markerName']),_0x2fc5ca&&(_0x4fb5a1['activeMarkers']['includes'](_0x110e28['markerName'])?_0x42dd60['writer']['addClass']('ck-suggestion-marker--active',_0x2bf2c3):_0x42dd60['writer']['removeClass']('ck-suggestion-marker--active',_0x2bf2c3));}}};}_0x4fb5a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4b253a),_0x4fb5a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4b253a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x60db0f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x545ec3,_0xee8db0,_0x3e3828)=>{_0x3e3828['options']['showSuggestionHighlights']&&_0x60db0f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x545ec3,_0xee8db0,_0x3e3828);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x51cb4b,_0x48d87c,_0x54de86)=>{const {type:_0xbccb17,id:_0x4fa72c}=_0x4fb5a1['_splitMarkerName'](_0x48d87c['markerName']),_0x379a96=_0x4fb5a1['getSuggestion'](_0x4fa72c),_0x2325b0=_0x379a96['data'];if('formatBlock'!=_0x379a96['type']||!_0x2325b0||'setTableColumnHeader'!=_0x2325b0['commandName'])return;const _0x4890a2=_0x54de86['mapper']['markerNameToElements'](_0x48d87c['markerName']);if(_0x4890a2){for(const _0x31a438 of _0x4890a2)_0x54de86['writer']['removeClass']('ck-suggestion-marker-'+_0xbccb17,_0x31a438),_0x54de86['writer']['removeClass']('ck-suggestion-marker--active',_0x31a438),_0x54de86['writer']['removeAttribute']('data-suggestion',_0x31a438),_0x54de86['mapper']['unbindElementFromMarkerName'](_0x31a438,_0x48d87c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x424c1e=this['editor'],_0x12c4d5=_0x424c1e['locale'];function _0x5d3284(_0xbfea96){return{'type':'format','content':o(_0x12c4d5,'*Format:*\x20%0',_0xbfea96)};}_0x424c1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2573cf=>{if('formatBlock'!=_0x2573cf['type'])return;const {data:_0xba090b}=_0x2573cf;if(_0xba090b){if('setTableRowHeader'==_0xba090b['commandName']){const _0x1d80e2=_0xba090b['commandParams'][0x0]['forceValue'];return _0x5d3284(o(_0x12c4d5,_0x1d80e2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xba090b['commandName']){const _0x508fb0=_0xba090b['commandParams'][0x0]['forceValue'];return _0x5d3284(o(_0x12c4d5,_0x508fb0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x293278=>[_0x293278,null]));class It extends _0x462782{static get['requires'](){return[jt];}['afterInit'](){const _0xd41d8=this['editor'];if(!_0xd41d8['plugins']['has']('TableClipboard'))return;const _0x2306ec=_0xd41d8['plugins']['get']('TrackChangesEditing'),_0x308485=_0xd41d8['plugins']['get']('TableUtils'),_0xd20093=_0xd41d8['plugins']['get'](jt),_0x3b7ff2=_0xd41d8['plugins']['get']('TableClipboard');_0xd20093['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xd41d8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xd41d8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x138a93=null;_0xd41d8['model']['on']('insertContent',(_0x4b02f0,_0x35b5b8)=>{const [_0x57ab95,_0x4158b1]=_0x35b5b8,_0x363d20=_0x35b5b8[_0x35b5b8['length']-0x1];_0x363d20&&_0x363d20['forceDefaultExecution']||_0x2306ec['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x49c407,_0x3e4aeb,_0x4ca870,_0x1f575f,_0x5e10cc){if(_0x3e4aeb&&!_0x3e4aeb['is']('documentSelection'))return!0x1;const _0x552a7e=_0x5e10cc['getTableIfOnlyTableInContent'](_0x49c407,_0x4ca870);if(!_0x552a7e||!he(_0x552a7e,void 0x0,_0x1f575f))return!0x1;const _0x5453f5=_0x1f575f['getSelectionAffectedTableCells'](_0x4ca870['document']['selection']);if(!_0x5453f5['length'])return!0x1;const _0x4f141c=_0x5453f5[0x0]['findAncestor']('table'),_0x279897=_0x1f575f['getRowIndexes'](_0x5453f5),_0x25556c=_0x1f575f['getColumnIndexes'](_0x5453f5),_0x521f10={'startRow':_0x279897['first'],'endRow':_0x279897['last'],'startColumn':_0x25556c['first'],'endColumn':_0x25556c['last']};return 0x1==_0x5453f5['length']&&(_0x521f10['endRow']+=_0x1f575f['getRows'](_0x552a7e)-0x1,_0x521f10['endColumn']+=_0x1f575f['getColumns'](_0x552a7e)-0x1),he(_0x4f141c,_0x521f10,_0x1f575f);}(_0x57ab95,_0x4158b1,_0xd41d8['model'],_0x308485,_0x3b7ff2)&&(_0x4b02f0['stop'](),_0x138a93={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xd41d8['model']['change'](()=>{_0xd41d8['model']['insertContent'](_0x35b5b8[0x0],_0x35b5b8[0x1],_0x35b5b8[0x2],{'forceDefaultExecution':!0x0});const _0x1a1b6f=_0xeabe53(),{rowInsertionRanges:_0x17eb7a,columnInsertionRanges:_0x562397,insertionRanges:_0x46fce7,deletionRanges:_0x6f9023,cells:_0x5c0047}=_0x138a93;_0x17eb7a['length']&&_0x2306ec['markMultiRangeInsertion'](_0x17eb7a,'tablePasteRow',{'tablePasteChainId':_0x1a1b6f}),_0x562397['length']&&_0x2306ec['markMultiRangeInsertion'](_0x562397,'tablePasteColumn',{'tablePasteChainId':_0x1a1b6f}),_0x46fce7['length']&&(_0x2306ec['markMultiRangeInsertion'](_0x46fce7,'tablePaste',{'tablePasteChainId':_0x1a1b6f,'skipNestingCheck':!0x0}),_0x46fce7['forEach'](_0x48b3b0=>_0x48b3b0['detach']?.())),_0x6f9023['length']&&(_0x2306ec['markMultiRangeDeletion'](_0x6f9023,'tablePaste',{'tablePasteChainId':_0x1a1b6f,'skipNestingCheck':!0x0}),_0x6f9023['forEach'](_0x20c35e=>_0x20c35e['detach']?.()));const _0x3380ad=_0x2306ec['markMultiRangeBlockFormat'](_0x5c0047['map'](({element:_0x20708f})=>_0x20708f),{'formatGroupId':_0xeabe53()},[],'tablePasteCell',{'tablePasteChainId':_0x1a1b6f});if(_0x3380ad){const _0x2893eb=_0x3380ad['getMarkers'](),_0x240409=[];for(const {element:_0x4eaaea,attributes:_0x519471}of _0x5c0047){if(!_0x519471)continue;const _0x7a42eb=_0xd41d8['model']['createRangeOn'](_0x4eaaea),_0x23c09c=_0x2893eb['find'](_0x53a1bc=>_0x53a1bc['getRange']()['isEqual'](_0x7a42eb));_0x23c09c&&_0x240409['push']([_0x23c09c['name'],_0x519471]);}_0x240409['length']&&_0x3380ad['setAttribute']('markerAttributes',Object['fromEntries'](_0x240409));}_0x138a93=null;}));},{'priority':_0xbf3aa1['high']+0xa}),_0xd41d8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x36b3c4,_0x56180c)=>{const [_0x427cf9,_0x195b78,,_0x2cbb6e]=_0x56180c;if(!_0x138a93)return;_0x36b3c4['stop']();const _0x2b8a78=_0x427cf9['cell'],_0x3e5dfd=_0x195b78,_0x3fc9a6=Pe(_0x2b8a78),_0x1da555=Pe(_0x3e5dfd);_0x36b3c4['return']=_0x2b8a78;let _0x3c7e1f=null,_0x202f2f=null;if(_0x1da555||_0x3fc9a6){if(_0x3fc9a6&&!_0x1da555){_0x2cbb6e['remove'](_0x2b8a78['getChild'](0x0));for(const _0x3a3019 of Array['from'](_0x3e5dfd['getChildren']()))_0x2cbb6e['insert'](_0x3a3019,_0x2b8a78,'end');const _0x331b61=_0x138a93['rowInsertionIndexes']['includes'](_0x427cf9['row']),_0x21bbe3=_0x138a93['columnInsertionIndexes']['includes'](_0x427cf9['column']);_0x331b61||_0x21bbe3||(_0x3c7e1f=_0x3a5b18['fromRange'](_0x2cbb6e['createRangeIn'](_0x2b8a78)));}else _0x1da555&&!_0x3fc9a6&&(_0x202f2f=_0x2cbb6e['createRangeIn'](_0x2b8a78));}else{const _0x2a983d=_0x2cbb6e['createElement']('tableCellSuggestion'),_0x207229=_0x2cbb6e['createElement']('tableCellSuggestion');_0x2cbb6e['wrap'](_0x2cbb6e['createRangeIn'](_0x2b8a78),_0x207229),_0x2cbb6e['insert'](_0x2a983d,_0x2b8a78,0x0);for(const _0x558357 of Array['from'](_0x3e5dfd['getChildren']()))_0x2cbb6e['insert'](_0x558357,_0x2a983d,'end');_0x3c7e1f=_0x3a5b18['fromRange'](_0x2cbb6e['createRangeOn'](_0x2a983d)),_0x202f2f=_0x3a5b18['fromRange'](_0x2cbb6e['createRangeOn'](_0x207229));}const _0x17cafd=Array['from'](_0x3e5dfd['getAttributes']())['filter'](([_0x312b3b])=>ge['includes'](_0x312b3b));_0x138a93['cells']['push']({'element':_0x2b8a78,'attributes':_0x17cafd['length']?Object['fromEntries'](_0x17cafd):null}),_0x3c7e1f&&_0x138a93['insertionRanges']['push'](_0x3c7e1f),_0x202f2f&&_0x138a93['deletionRanges']['push'](_0x202f2f);},{'priority':'high'}),_0x308485['on']('insertColumns',(_0x41313d,_0x2e6e98)=>{const [_0x39e418,_0x3fbe9a={}]=_0x2e6e98;if(!_0x138a93)return;const _0x1f358d=_0x3fbe9a['at']||0x0,_0x337924=_0x3fbe9a['columns']||0x1;_0x138a93['columnInsertionIndexes']=new Array(_0x337924)['fill'](_0x1f358d)['map']((_0x3d86fe,_0x1ae6fa)=>_0x3d86fe+_0x1ae6fa);for(const {cell:_0x23a343}of _0x308485['createTableWalker'](_0x39e418,{'startColumn':_0x1f358d,'endColumn':_0x1f358d+_0x337924-0x1}))_0x138a93['columnInsertionRanges']['push'](_0xd41d8['model']['createRangeOn'](_0x23a343));},{'priority':'low'}),_0x308485['on']('insertRows',(_0x31e5b2,_0x52e318)=>{const [_0x3f0ce3,_0x38e201={}]=_0x52e318;if(!_0x138a93)return;const _0x143c52=_0x38e201['at']||0x0,_0x33c3da=_0x38e201['rows']||0x1;_0x138a93['rowInsertionIndexes']=new Array(_0x33c3da)['fill'](_0x143c52)['map']((_0x3286bc,_0x2486bd)=>_0x3286bc+_0x2486bd);for(const {cell:_0x40cdad}of _0x308485['createTableWalker'](_0x3f0ce3,{'startRow':_0x143c52,'endRow':_0x143c52+_0x33c3da-0x1}))_0x138a93['rowInsertionRanges']['push'](_0xd41d8['model']['createRangeOn'](_0x40cdad));},{'priority':'low'}),_0x2306ec['descriptionFactory']['registerDescriptionCallback'](_0x572d19=>{if(_0x572d19['subType']&&_0x572d19['subType']['startsWith']('tablePaste'))return _0x572d19['previous']?{}:{'type':'insertion','content':o(_0xd41d8['locale'],'*Replace\x20table\x20cells*')};});const _0x3179cc=()=>!0x1;for(const _0xf0408c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2306ec['_suggestionFactory']['registerCustomCallback']('insertion',_0xf0408c,'join',_0x3179cc),_0x2306ec['_suggestionFactory']['registerCustomCallback']('deletion',_0xf0408c,'join',_0x3179cc),_0x2306ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf0408c,'join',_0x3179cc);_0x2306ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3179cc),_0x2306ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3ea340,_0x11f675,_0x1697cc)=>{const _0x40163e=_0x3ea340['map'](_0x3db130=>_0x3db130['getContainedElement']())['filter'](_0x21fcf1=>_0x21fcf1),_0x1d800d=new Map(_0x40163e['map'](_0x18fc11=>[_0x18fc11,null]));if(_0x138a93){for(const {element:_0xc3ce3d,attributes:_0x33404e}of _0x138a93['cells'])_0x33404e&&_0x1d800d['set'](_0xc3ce3d,_0x33404e);}else{if(_0x1697cc&&_0x1697cc['markerAttributes'])for(const [_0x4af057,_0x17247a]of Object['entries'](_0x1697cc['markerAttributes'])){const _0x3da85d=_0xd41d8['model']['markers']['get'](_0x4af057),_0x3dabfc=_0x3da85d?_0x3da85d['getRange']()['getContainedElement']():null;_0x3dabfc&&_0x1d800d['set'](_0x3dabfc,_0x17247a);}}_0xd41d8['model']['change'](_0x2ddf97=>{for(const [_0x120a8a,_0x539758]of _0x1d800d)_0x2ddf97['setAttributes']({...Ce,..._0x539758},_0x120a8a);});});const _0x22f2b0=(_0x52dfb2,_0x53b4a8)=>{_0x2306ec['_suggestionFactory']['registerCustomCallback'](_0x52dfb2,'tablePaste',_0x53b4a8,(_0xc227f4,_0x442c35,_0x478e7b)=>{_0xd41d8['model']['change'](_0x3d9bde=>{const _0xdd276=[];for(const _0xba1ab7 of _0xc227f4){const _0x1969ee=_0xba1ab7['start']['nodeAfter'];_0x1969ee['is']('element','tableCellSuggestion')&&_0xdd276['push'](_0x1969ee);}_0x2306ec['_suggestionFactory']['getSuggestionCallback'](_0x52dfb2,null,_0x53b4a8)(_0xc227f4,_0x442c35,_0x478e7b);for(const _0x1eee3a of _0xdd276)'$graveyard'!=_0x1eee3a['root']['rootName']&&_0x3d9bde['unwrap'](_0x1eee3a);});});};_0x22f2b0('insertion','accept'),_0x22f2b0('insertion','discard'),_0x22f2b0('deletion','accept'),_0x22f2b0('deletion','discard'),_0x2306ec['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3264ef=>{const _0xf8e4b5=_0x3264ef['map'](_0x23673f=>_0x23673f['getContainedElement']()),_0xa46462=_0xf8e4b5[0x0]['findAncestor']('table'),{minRow:_0xb6bf81,maxRow:_0x8a5fd0}=_0xd20093['_getCoordsForCells'](_0xf8e4b5);_0x308485['removeRows'](_0xa46462,{'at':_0xb6bf81,'rows':_0x8a5fd0-_0xb6bf81+0x1});}),_0x2306ec['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4a11bb=>{const _0x5124a9=_0x4a11bb['map'](_0x15d2c8=>_0x15d2c8['getContainedElement']()),_0x2d4b4a=_0x5124a9[0x0]['findAncestor']('table'),{minColumn:_0x255570,maxColumn:_0x150212}=_0xd20093['_getCoordsForCells'](_0x5124a9);_0x308485['removeColumns'](_0x2d4b4a,{'at':_0x255570,'columns':_0x150212-_0x255570+0x1});});const _0x104dbe=(_0x534e8d,_0x16461a)=>{if(!_0x16461a['subType']||!_0x16461a['subType']['startsWith']('tablePaste'))return;const _0x514613=_0x16461a['attributes']['tablePasteChainId'],_0x11e00a=_0x2306ec['getSuggestions']()['filter'](_0x5947a8=>_0x5947a8['isInContent']&&_0x5947a8['attributes']&&_0x5947a8['attributes']['tablePasteChainId']==_0x514613);_0x11e00a['length']&&_0x16461a['getAllAdjacentSuggestions']()['length']!=_0x11e00a['length']&&_0x11e00a['reduce']((_0x212d08,_0x4d2439)=>(_0x212d08['next']=_0x4d2439,_0x4d2439['previous']=_0x212d08,_0x4d2439));};function _0x8ea563(_0x4ffff1,_0x34a66b=!0x0){const {id:_0x30f615}=_0x2306ec['_splitMarkerName'](_0x4ffff1['markerName']),_0x2a900f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa31ea2=_0x2306ec['activeMarkers']['includes'](_0x4ffff1['markerName']);return _0xa31ea2&&_0x2a900f['push']('ck-suggestion-marker--active'),{'classes':_0x2a900f,'attributes':{'data-suggestion':_0x30f615},'priority':_0xa31ea2&&_0x34a66b?0xbc2:0xbb8};}_0x2306ec['on']('suggestionLoaded',_0x104dbe,{'priority':'high'}),_0x2306ec['on']('suggestionUnloaded',_0x104dbe,{'priority':'high'}),_0xd41d8['model']['document']['registerPostFixer'](()=>{let _0xd28ba6=!0x1;const _0x66bc2a=Array['from'](_0xd41d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28e75c,data:_0x8f85f3}of _0x66bc2a){const {group:_0xb8a044,type:_0x68ed05,id:_0x1f0e25}=_0x2306ec['_splitMarkerName'](_0x28e75c);if('suggestion'!=_0xb8a044||'deletion'!=_0x68ed05||_0x8f85f3['oldRange'])continue;if(!_0x2306ec['hasSuggestion'](_0x1f0e25))continue;const _0x5e8485=_0x2306ec['getSuggestion'](_0x1f0e25)['getRanges'](),_0x2c76ab=_0xd41d8['plugins']['get']('Users')['me'];for(const _0x3c6a38 of _0x2306ec['getSuggestions']()){if(!_0x3c6a38['isInContent']||_0x3c6a38['author']!=_0x2c76ab)continue;if('formatBlock'!=_0x3c6a38['type']||'tablePasteCell'!=_0x3c6a38['subType'])continue;if(_0x3c6a38['getRanges']()['every'](_0x3c0155=>_0x5e8485['some'](_0x3a8603=>_0x3a8603['containsRange'](_0x3c0155,!0x0)))){for(const _0x28c438 of _0x3c6a38['getAllAdjacentSuggestions']())_0x28c438['isInContent']&&(_0x28c438['discard'](),_0xd28ba6=!0x0);}}}return _0xd28ba6;}),_0xd41d8['model']['document']['registerPostFixer'](_0xe11b66=>{const _0x1d60e8=_0xd41d8['commands']['get']('redo');if(!_0x1d60e8||!_0x1d60e8['_createdBatches']['has'](_0xe11b66['batch']))return!0x1;let _0x47a885=!0x1;const _0xdde61b=_0xd41d8['plugins']['get']('Users')['me'],_0x7a85e2=_0xd41d8['model']['document']['differ']['getChanges'](),_0x2d50e7=Array['from'](_0xd41d8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5d7bfc,data:_0x2a7768})=>{const {group:_0x2ad976,subType:_0x1fed9e,authorId:_0x38cde9}=_0x2306ec['_splitMarkerName'](_0x5d7bfc);return'suggestion'==_0x2ad976&&'tablePaste'==_0x1fed9e&&_0x38cde9==_0xdde61b['id']&&!_0x2a7768['oldRange'];});for(const _0x2ff2a1 of _0x7a85e2){if('insert'!=_0x2ff2a1['type']||'tableCellSuggestion'!=_0x2ff2a1['name']||0x1!=_0x2ff2a1['length'])continue;const _0x6be56=_0xe11b66['createRange'](_0x2ff2a1['position'],_0x2ff2a1['position']['getShiftedBy'](0x1));if(!_0x2d50e7['find'](({data:_0x6cd52})=>_0x6cd52['newRange']['isEqual'](_0x6be56))){for(const {name:_0x9755f7,data:_0x4b159f}of _0x2d50e7)if(_0x6be56['containsRange'](_0x4b159f['newRange'])){_0xe11b66['updateMarker'](_0x9755f7,{'range':_0x6be56}),_0x47a885=!0x0;break;}}}return _0x47a885;}),_0xd41d8['model']['document']['registerPostFixer'](_0x5aa382=>{let _0x14ed79=!0x1;const _0xf9c8db=_0xd41d8['plugins']['get']('Users')['me'],_0x5d02d6=_0x2306ec['getSuggestions']()['filter'](_0x1ffa85=>_0x1ffa85['isInContent']&&_0x1ffa85['author']==_0xf9c8db),_0x4d2a01=new Set(),_0x56e82a=new Set();for(const _0xe0ef9c of _0x5d02d6)if('tablePaste'==_0xe0ef9c['subType'])for(const _0x4750f4 of _0xe0ef9c['getMarkers']()){const _0xdceb85=_0x4750f4['getRange']()['getContainedElement']();if(_0xdceb85){if(_0xdceb85['is']('element','tableCellSuggestion')&&Pe(_0xdceb85)){_0xe0ef9c['removeMarker'](_0x4750f4['name']),_0x4d2a01['add'](_0xdceb85),_0x14ed79=!0x0;const _0x3cb490=_0xdceb85['nextSibling'],_0x51b559=_0xdceb85['previousSibling'],_0x258260=_0x3cb490&&_0x3cb490['is']('element','tableCellSuggestion'),_0x272caf=_0x51b559&&_0x51b559['is']('element','tableCellSuggestion');_0x258260&&!_0x4d2a01['has'](_0x3cb490)&&_0x56e82a['add'](_0x3cb490),_0x272caf&&!_0x4d2a01['has'](_0x51b559)&&_0x56e82a['add'](_0x51b559);}else _0xdceb85['is']('element','paragraph')&&_0xdceb85['isEmpty']&&(_0xe0ef9c['removeMarker'](_0x4750f4['name']),_0x14ed79=!0x0);}}else{if('tablePasteCell'==_0xe0ef9c['subType']){if(!_0xe0ef9c['attributes']||!_0xe0ef9c['attributes']['tablePasteChainId'])continue;const _0x431850=_0xe0ef9c['attributes']['markerAttributes'];if(_0x431850&&Object['keys'](_0x431850)['length'])continue;const _0xb56bdd=_0xe0ef9c['attributes']['tablePasteChainId'];let _0x1ecc00=!0x0,_0x5968e7=!0x0;for(const _0x30c608 of _0x5d02d6)if(_0x30c608['subType']&&_0x30c608['subType']['startsWith']('tablePaste')){if(!_0x30c608['attributes']['tablePasteChainId']){_0x5968e7=!0x1;break;}if(_0x30c608['id']!=_0xe0ef9c['id']&&_0x30c608['attributes']['tablePasteChainId']==_0xb56bdd){_0x1ecc00=!0x1;break;}}_0x5968e7&&_0x1ecc00&&(_0xe0ef9c['removeMarkers'](),_0x14ed79=!0x0);}}for(const _0x1ee9d1 of _0x4d2a01)_0x5aa382['remove'](_0x1ee9d1);for(const _0x1f6e34 of _0x56e82a)_0x5aa382['unwrap'](_0x1f6e34);return _0x14ed79;}),_0xd41d8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x549bcc,_0x51b30b)=>_0x8ea563(_0x549bcc),'converterPriority':'high'}),_0xd41d8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x430761,_0x413635)=>_0x413635['options']['showSuggestionHighlights']?_0x8ea563(_0x430761,!0x1):null,'converterPriority':'high'});const _0x3aa5df=_0xd41d8['editing']['view'];this['listenTo'](_0x3aa5df['document'],'clipboardOutput',(_0x40b0d2,_0x2be559)=>{const _0x3901b2=[];for(const _0x5b8a23 of _0x3aa5df['createRangeIn'](_0x2be559['content'])['getItems']())_0x5b8a23['is']('element','suggestion-td')&&_0x3901b2['push'](_0x5b8a23);_0x3aa5df['change'](_0x5cb55a=>{for(const _0x135fca of _0x3901b2)_0x5cb55a['move'](_0x5cb55a['createRangeIn'](_0x135fca),_0x5cb55a['createPositionBefore'](_0x135fca)),_0x5cb55a['remove'](_0x135fca);});});}}function Pe(_0xa61913){if(_0xa61913['isEmpty'])return!0x0;const _0x26b912=_0xa61913['getChild'](0x0);return _0x26b912['is']('element','paragraph')&&_0x26b912['isEmpty'];}function he(_0x345618,_0x38c230={},_0x47fbc4){for(const {isAnchor:_0x1504a6,cellHeight:_0x4f9949,cellWidth:_0x368fcd}of _0x47fbc4['createTableWalker'](_0x345618,{'includeAllSlots':!0x0,..._0x38c230}))if(!_0x1504a6||0x1!=_0x4f9949||0x1!=_0x368fcd)return!0x1;return!0x0;}class vt extends _0x462782{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x47c11a=this['editor']['plugins']['get']('TrackChangesEditing');_0x47c11a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x47c11a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x47c11a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47c11a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x47c11a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x47c11a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x189d14,_0x3cbacf){const _0x2984de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x494882=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3a7f30=_0x3cbacf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x58c43a=_0x494882['getColumnGroupElement'](_0x3a7f30);let _0x2dafad=_0x58c43a?_0x494882['getTableColumnsWidths'](_0x58c43a):null,_0x20969c=_0x3a7f30['getAttribute']('tableWidth')||null;const _0x225d26=_0x3cbacf['tableWidth']||_0x20969c,_0x48e30a=_0x3cbacf['columnWidths']||_0x2dafad,_0x2c1e31=this['editor']['plugins']['get']('Users')['me'];for(const _0x3635fe of _0x2984de['getSuggestions']()){const _0x56e383=_0x3635fe['getContainedElement']();if('resizeTable'===_0x3635fe['subType']&&_0x56e383===_0x3a7f30){_0x3635fe['author']!==_0x2c1e31&&_0x3635fe['discard']();const _0x2528b0=_0x3635fe['data']['commandParams'];_0x20969c=_0x2528b0[0x0]['tableWidth'],_0x2dafad=_0x2528b0[0x0]['columnWidths'];break;}}_0x189d14({'table':_0x3a7f30,'tableWidth':_0x225d26,'columnWidths':_0x48e30a}),_0x2984de['markBlockFormat'](_0x3a7f30,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x20969c,'columnWidths':_0x2dafad}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2345ab){if('formatBlock'!=_0x2345ab['type']&&'formatInline'!=_0x2345ab['type'])return;const {data:_0x34685b}=_0x2345ab;if(_0x34685b&&'resizeTable'===_0x34685b['formatGroupId']){const _0x46748a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x46748a)};}}}class Ct extends _0x462782{['afterInit'](){const _0x19e48e=this['editor'];_0x19e48e['plugins']['has']('Template')&&_0x19e48e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x462782{['afterInit'](){const _0x595928=this['editor'];if(!_0x595928['commands']['get']('insertTableOfContents'))return;_0x595928['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x506588=_0x595928['plugins']['get']('TrackChangesEditing'),_0x4c7ac8=_0x595928['locale'];_0x506588['descriptionFactory']['registerElementLabel']('tableOfContents',_0x453568=>o(_0x4c7ac8,'ELEMENT_TABLE_OF_CONTENTS',_0x453568));}}class Dt extends _0x462782{['afterInit'](){const _0xa69d5a=this['editor'];if(!_0xa69d5a['plugins']['has']('Title'))return;const _0x52a074=_0xa69d5a['plugins']['get']('TrackChangesEditing');_0x52a074['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xa69d5a['locale'],'ELEMENT_TITLE')),_0xa69d5a['model']['document']['registerPostFixer'](_0x270edf=>{let _0x3daf35=!0x1;const _0x423050=Array['from'](_0xa69d5a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f16c7,data:_0x323d21}of _0x423050){const {group:_0x216b15}=_0x52a074['_splitMarkerName'](_0x2f16c7);if('suggestion'!==_0x216b15||!_0x323d21['newRange'])continue;const _0x35a924=_0x323d21['newRange'],_0x1ab88a=_0x35a924['end']['nodeBefore'];if(!_0x1ab88a||!_0x1ab88a['is']('element','title-content'))continue;if(!_0x35a924['start']['isTouching'](_0x35a924['end']))continue;const _0x581bd0=_0xa69d5a['model']['schema']['getNearestSelectionRange'](_0x35a924['end'],'forward');if(_0x581bd0&&_0x581bd0['isCollapsed']){const _0x125bdb=_0x270edf['createRange'](_0x35a924['start'],_0x581bd0['start']);_0x125bdb['isEqual'](_0x35a924)||(_0x270edf['updateMarker'](_0x2f16c7,{'range':_0x125bdb}),_0x3daf35=!0x0);}_0x3daf35||(_0x270edf['removeMarker'](_0x2f16c7),_0x3daf35=!0x0);}return _0x3daf35;});}}class Nt extends _0x462782{['afterInit'](){const _0x5eae64=this['editor'],_0x424a6a=_0x5eae64['plugins']['get']('TrackChangesEditing');_0x5eae64['plugins']['has']('UndoEditing')&&(_0x424a6a['enableCommand']('undo'),_0x424a6a['enableCommand']('redo'));}}class Mt extends _0x462782{static get['requires'](){return[jt];}['afterInit'](){const _0x24dd5c=this['editor'];if(!_0x24dd5c['plugins']['has']('TableCaptionEditing'))return;_0x24dd5c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x462782{['tableProperties'];['tableCellProperties'];constructor(_0x4f4b69){super(_0x4f4b69),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 _0x5d8489=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xc50be2 of this['tableProperties'])_0x5d8489['enableCommand'](_0xc50be2,(_0x282a48,_0x5c2a8c)=>{const _0x3b1c2f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xc50be2,[_0x3b1c2f],this['tableProperties'],'tableProperties',_0x282a48,_0x5c2a8c);});_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5d8489['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4d38b9,_0x128247)=>this['handleDiscardAction'](this['tableProperties'],_0x4d38b9,_0x128247)),_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4317c1 of this['tableCellProperties'])_0x5d8489['enableCommand'](_0x4317c1,(_0x3aa9f3,_0x199210)=>{const _0x1e4375=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4317c1,_0x1e4375,this['tableCellProperties'],'tableCellProperties',_0x3aa9f3,_0x199210);});_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5d8489['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x191e82,_0x3be0e4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x191e82,_0x3be0e4)),_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5d8489['descriptionFactory']['registerDescriptionCallback'](_0x97b968=>this['handleSuggestionDescription'](_0x97b968));}['_handlePropertyChange'](_0x1b77d4,_0x4f5ffa,_0xd0c46d,_0x144bb0,_0x342be5,_0x409f54){const _0x36750b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x409f54['batch'],()=>{for(const _0x492696 of _0x4f5ffa){if(this['_getSuggestion'](_0x492696,_0x144bb0))_0x342be5(_0x409f54);else{const _0xb7a20e={};for(const _0x4ddc80 of _0xd0c46d){const _0x158e7b=_0x492696['getAttribute'](_0x4ddc80);void 0x0!==_0x158e7b&&(_0xb7a20e[_0x4ddc80]=_0x158e7b);}_0x342be5(_0x409f54),_0x36750b['markBlockFormat'](_0x492696,{'commandParams':[_0xb7a20e]},[],_0x144bb0);}}});}['handleDiscardAction'](_0x1c6cda,_0x298f9c,_0x1750f4){const _0x1798cd=_0x298f9c[0x0]['start']['nodeAfter'],_0x183298=_0x1750f4['commandParams'][0x0];this['editor']['model']['change'](_0x443579=>{for(const _0x39aee5 of _0x1c6cda)void 0x0!==_0x183298[_0x39aee5]?_0x443579['setAttribute'](_0x39aee5,_0x183298[_0x39aee5],_0x1798cd):_0x443579['removeAttribute'](_0x39aee5,_0x1798cd);});}['handleSuggestionDescription'](_0x1bdbcd){if(_0x1bdbcd['data'])switch(_0x1bdbcd['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'](_0x231ab2,_0x4e0be3){const _0x3a9d6d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x465d95 of _0x3a9d6d['getSuggestions']({'skipNotAttached':!0x0})){const _0x147350=_0x465d95['getContainedElement']();if(_0x465d95['subType']===_0x4e0be3&&_0x147350===_0x231ab2)return _0x465d95;}return null;}}const m='$elementName';class p extends _0x462782{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x537a23,_0xd5ee65,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(_0x812aab){function _0x231a23(_0x30c04b){return _0x30c04b['map'](_0x588f6c=>String['fromCharCode'](_0x588f6c))['join']('');}super(_0x812aab),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1cba74,_0x5b21ab,_0x211ee4,_0xa048ca)=>{this['_model']['change'](()=>{for(const _0x332968 of[..._0xa048ca,..._0x211ee4])this['_model']['markers']['has'](_0x332968)&&_0x812aab['editing']['reconvertMarker'](_0x332968);});}),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']=_0x812aab['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(),_0x812aab['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x812aab['config']['get']('trackChanges.trackFormatChanges'),_0x812aab['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x812aab['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x812aab,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x231a23([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x231a23([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x36]);}['init'](){const _0x2ff22c=this['editor'],_0x5765aa=(_0x6d200f,_0x2c7145)=>{if('attribute'!=_0x6d200f)return'ck-suggestion-marker-'+_0x6d200f;const _0xd19eb8=_0x2c7145['split']('|')[0x0];return this['_isBlockAttribute'](_0xd19eb8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2ff22c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x569f11=>{const {id:_0x3138aa,type:_0x7cde9a,subType:_0x5194f6}=this['_splitMarkerName'](_0x569f11['markerName']),_0x10feb7=['ck-suggestion-marker',_0x5765aa(_0x7cde9a,_0x5194f6)];let _0x1689fc=0xbb8;return this['activeMarkers']['includes'](_0x569f11['markerName'])&&(_0x10feb7['push']('ck-suggestion-marker--active'),_0x1689fc=0xbc2),'deletion'==_0x7cde9a&&(_0x1689fc+=0x5),{'classes':_0x10feb7,'attributes':{'data-suggestion':_0x3138aa},'priority':_0x1689fc};}}),_0x2ff22c['conversion']['for']('dataDowncast')['add'](_0x4634ab=>{_0x4634ab['on']('addMarker:suggestion',(_0x5c81d2,_0x462464,_0x1c70d8)=>{if(!_0x1c70d8['options']['showSuggestionHighlights'])return;const _0x454106=_0x462464['item'];if(!_0x454106)return;const _0x4a6598=_0x1c70d8['mapper']['toViewElement'](_0x454106);_0x2ff22c['model']['schema']['isObject'](_0x454106)&&_0x4a6598&&!_0x4a6598['getCustomProperty']('widget')&&_0x4a6598['is']('containerElement')&&_0x18a5d4(_0x4a6598,_0x1c70d8['writer']);},{'priority':'high'});}),_0x2ff22c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x365cc3,_0x2dc3a8)=>{if(!_0x2dc3a8['options']['showSuggestionHighlights'])return null;const {type:_0x5d9f16,subType:_0x129bed}=this['_splitMarkerName'](_0x365cc3['markerName']);return{'classes':['ck-suggestion-marker',_0x5765aa(_0x5d9f16,_0x129bed)],'priority':0xbb8};}});const _0x2c916e=({showActiveMarkers:_0x4db700=!0x0,isAttributeSuggestion:_0x4eb5e8=!0x1}={})=>(_0x34b2fc,_0x506710,_0x4aba55)=>{if(!_0x506710['item'])return;const {id:_0x69537}=this['_splitMarkerName'](_0x506710['markerName']);if(_0x4eb5e8){const _0x1bd50b=this['_suggestions']['get'](_0x69537),_0x168c56=this['_getAttributeKey'](_0x1bd50b);if(!this['_isBlockAttribute'](_0x168c56))return;}if(_0x506710['item']['is']('selection'))return void _0x4aba55['consumable']['consume'](_0x506710['item'],_0x34b2fc['name']);const _0x11ea1a=_0x4aba55['mapper']['toViewElement'](_0x506710['item']);if(_0x506710['item']['is']('element')&&_0x2ff22c['model']['schema']['isBlock'](_0x506710['item'])&&!_0x11ea1a['getCustomProperty']('addHighlight')){_0x4aba55['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x11ea1a),_0x4aba55['writer']['setAttribute']('data-suggestion',_0x69537,_0x11ea1a),_0x4aba55['mapper']['bindElementToMarker'](_0x11ea1a,_0x506710['markerName']),_0x4db700&&(this['activeMarkers']['includes'](_0x506710['markerName'])?_0x4aba55['writer']['addClass']('ck-suggestion-marker--active',_0x11ea1a):_0x4aba55['writer']['removeClass']('ck-suggestion-marker--active',_0x11ea1a));for(const _0x54010d of _0x2ff22c['model']['createRangeIn'](_0x506710['item'])['getItems']())_0x4aba55['consumable']['consume'](_0x54010d,_0x34b2fc['name']);_0x4aba55['consumable']['consume'](_0x506710['item'],_0x34b2fc['name']);}};_0x2ff22c['conversion']['for']('dataDowncast')['add'](_0x2b24d0=>{_0x2b24d0['on']('addMarker:suggestion:formatBlock',(_0x4466c1,_0x562a00,_0x37995d)=>{_0x37995d['options']['showSuggestionHighlights']&&_0x2c916e({'showActiveMarkers':!0x1})(_0x4466c1,_0x562a00,_0x37995d);},{'priority':'highest'});}),_0x2ff22c['conversion']['for']('dataDowncast')['add'](_0x499f90=>{_0x499f90['on']('addMarker:suggestion:attribute',(_0xd436c6,_0x2c5a1b,_0xb0b58e)=>{_0xb0b58e['options']['showSuggestionHighlights']&&_0x2c916e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xd436c6,_0x2c5a1b,_0xb0b58e);},{'priority':'highest'});}),_0x2ff22c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2698a8,_0x3cf994)=>_0x3cf994['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2698a8['substr'](0xb)}}),_0x2ff22c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4c9a98,{writer:_0x5a68d9})=>{let _0x46e607='suggestion:'+_0x4c9a98['getAttribute']('suggestion-type')+':'+_0x4c9a98['getAttribute']('id');return _0x4c9a98['getAttribute']('marker-count')&&(_0x46e607+=':'+_0x4c9a98['getAttribute']('marker-count')),_0x5a68d9['createElement']('$marker',{'data-name':_0x46e607});}}),_0x2ff22c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2ff22c['conversion']['for']('editingDowncast')['add'](_0x4e9fe3=>{_0x4e9fe3['on']('addMarker:suggestion:formatBlock',_0x2c916e(),{'priority':'high'});}),_0x2ff22c['conversion']['for']('editingDowncast')['add'](_0x2466ae=>{_0x2466ae['on']('addMarker:suggestion:attribute',_0x2c916e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2ff22c['conversion']['for']('editingDowncast')['add'](_0x3f609b=>{_0x3f609b['on']('removeMarker:suggestion:formatBlock',(_0x2b429b,_0x5998c0,_0x33010c)=>{const _0x358897=_0x33010c['mapper']['markerNameToElements'](_0x5998c0['markerName']);if(_0x358897){for(const _0x2fae4a of _0x358897)_0x2fae4a['getCustomProperty']('addHighlight')||(_0x33010c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2fae4a),_0x33010c['writer']['removeAttribute']('data-suggestion',_0x2fae4a),_0x33010c['mapper']['unbindElementFromMarkerName'](_0x2fae4a,_0x5998c0['markerName']));}},{'priority':'high'});}),_0x2ff22c['conversion']['for']('editingDowncast')['add'](_0x4ef17a=>{_0x4ef17a['on']('removeMarker:suggestion:attribute',(_0x2ce9c8,_0x59e626,_0x26f202)=>{const _0x1815b1=_0x26f202['mapper']['markerNameToElements'](_0x59e626['markerName']);if(!_0x1815b1)return;const {id:_0x5a3a7f}=this['_splitMarkerName'](_0x59e626['markerName']),_0x51ebaa=this['_suggestions']['get'](_0x5a3a7f),_0x1c43fa=this['_getAttributeKey'](_0x51ebaa);if(this['_isBlockAttribute'](_0x1c43fa)){for(const _0xfb78a2 of _0x1815b1)_0xfb78a2['getCustomProperty']('addHighlight')||(_0x26f202['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xfb78a2),_0x26f202['writer']['removeAttribute']('data-suggestion',_0xfb78a2),_0x26f202['mapper']['unbindElementFromMarkerName'](_0xfb78a2,_0x59e626['markerName']));}},{'priority':'high'});}),_0x2ff22c['model']['document']['registerPostFixer'](_0x1819a7=>{let _0x2e74d4=!0x1;const _0x31de96=Array['from'](_0x2ff22c['model']['document']['differ']['getChangedMarkers']()),_0x3a46bb=new Set();for(const {name:_0x26fb28,data:_0xacff4f}of _0x31de96){const {group:_0x168cd7,type:_0x36ae70,subType:_0x1d5442,id:_0x4da950}=this['_splitMarkerName'](_0x26fb28);if('suggestion'!==_0x168cd7)continue;const _0x33b986=this['_suggestions']['get'](_0x4da950);if(null!=_0xacff4f['newRange']){'formatInline'==_0x36ae70&&(_0x2e74d4=_0x2e74d4||Et(_0xacff4f['newRange'],_0x26fb28,_0x1819a7,_0x2ff22c['model']['schema']));const _0x3d32c6='attribute'==_0x36ae70&&this['_isBlockAttribute'](_0x1d5442['split']('|')[0x0]);if(_0xacff4f['newRange']['isCollapsed']||'$graveyard'==_0xacff4f['newRange']['root']['rootName']||'formatBlock'==_0x36ae70&&!Ut(_0xacff4f['newRange'])||_0x3d32c6&&!Ut(_0xacff4f['newRange'])||'deletion'==_0x36ae70&&!(!Tt(_0x2989e1=_0xacff4f['newRange'])&&!function(_0x3e0b22){return _0x3e0b22['start']['parent']==_0x3e0b22['end']['nodeBefore']&&_0x3e0b22['start']['isAtEnd'];}(_0x2989e1)))_0x1819a7['removeMarker'](_0x26fb28),_0x2e74d4=!0x0;else{if(!_0x33b986||!_0x33b986['isInContent'])continue;_0x3a46bb['add'](_0x33b986);}}}var _0x2989e1;return _0x3a46bb['size']>0x0&&(_0x2e74d4=!!this['_joinWithAdjacentSuggestions'](_0x3a46bb)||_0x2e74d4),_0x2e74d4;}),_0x2ff22c['model']['document']['registerPostFixer'](_0x85f5a6=>{let _0x5472ae=!0x1;for(const _0x25a272 of _0x2ff22c['model']['document']['differ']['getChanges']())if('insert'==_0x25a272['type'])for(const _0x5a6074 of this['_suggestions']['values']()){if(_0x5a6074['isMultiRange']||!_0x5a6074['isInContent'])continue;const _0x827fb7='formatBlock'==_0x5a6074['type'],_0x25f06a=this['_getAttributeKey'](_0x5a6074),_0x32a951=_0x25f06a&&this['_isBlockAttribute'](_0x25f06a);if(!_0x827fb7&&!_0x32a951)continue;const _0x33c03c=_0x5a6074['getFirstRange']();if(_0x33c03c['start']['parent']!=_0x33c03c['end']['parent']&&!_0x33c03c['end']['isAtEnd']){const _0x5c2a8f=_0x2ff22c['model']['createPositionAt'](_0x33c03c['start']['nodeAfter'],'end'),_0x51f982=_0x2ff22c['model']['createRange'](_0x33c03c['start'],_0x5c2a8f);_0x85f5a6['updateMarker'](_0x5a6074['getFirstMarker'](),{'range':_0x51f982}),_0x5472ae=!0x0;}}return _0x5472ae;}),_0x2ff22c['model']['document']['registerPostFixer'](_0x427ab1=>this['_processAttributeChanges'](_0x427ab1)),_0x2ff22c['model']['document']['registerPostFixer'](_0x12b71f=>!_0x12b71f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x12b71f)),_0x2ff22c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2ff22c['model']['document']['on']('change:data',(_0x18ff06,_0x302500)=>{if(!_0x302500['isLocal']||_0x302500['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x22f3ad=_0x2ff22c['model']['document']['differ']['getChanges']();if(0x0==_0x22f3ad['length'])return;const _0x435813=[],_0x1554fa=_0x22f3ad['filter'](_0x41c581=>'attribute'==_0x41c581['type']),_0x42b696=_0x22f3ad['filter'](_0x85c41=>'insert'==_0x85c41['type']&&'$text'!=_0x85c41['name']);for(const _0x18afbb of _0x1554fa)this['_isRegisteredAttribute'](_0x18afbb['attributeKey'])&&_0x435813['push']({'key':_0x18afbb['attributeKey'],'newValue':_0x18afbb['attributeNewValue'],'oldValue':_0x18afbb['attributeOldValue'],'range':Ot(_0x18afbb['range'],_0x2ff22c['model'])});for(const _0xd26ce0 of _0x42b696){if('rename'!=_0xd26ce0['action']&&'refresh'!=_0xd26ce0['action'])continue;const _0x1ace30=Gt(_0xd26ce0['position']['nodeAfter'],_0x2ff22c['model']),_0x45df0c=_0xd26ce0['before'];'rename'==_0xd26ce0['action']&&_0x435813['push']({'key':m,'newValue':_0xd26ce0['name'],'oldValue':_0x45df0c['name'],'range':_0x1ace30});for(const [_0x5125c8,_0x51dae5]of _0x45df0c['attributes']){if(!this['_isRegisteredAttribute'](_0x5125c8))continue;const _0x7f4e91=_0xd26ce0['attributes']['get'](_0x5125c8);_0x51dae5!==_0x7f4e91&&_0x435813['push']({'key':_0x5125c8,'newValue':_0x7f4e91,'oldValue':_0x51dae5,'range':_0x1ace30});}for(const [_0x4ec64e,_0x43fedf]of _0xd26ce0['attributes'])this['_isRegisteredAttribute'](_0x4ec64e)&&(_0x45df0c['attributes']['has'](_0x4ec64e)||_0x435813['push']({'key':_0x4ec64e,'newValue':_0x43fedf,'oldValue':null,'range':_0x1ace30}));}0x0!=_0x435813['length']&&_0x2ff22c['model']['enqueueChange'](_0x302500,_0x3fc4e1=>{const _0x241fcc=_0xeabe53();for(const {range:_0x27ba95,key:_0x1d5b73,oldValue:_0xd75a1e,newValue:_0x4ab200}of _0x435813)this['markAttributeChange'](_0x27ba95,_0x1d5b73,_0xd75a1e,_0x4ab200,{'groupId':_0x241fcc});this['_reduceExistingSuggestions'](_0x3fc4e1,_0x435813);});},{'priority':'lowest'}),_0x2ff22c['model']['markers']['on']('update:suggestion',(_0x1cb082,_0x36d618,_0xd49af5)=>{if(null==_0xd49af5){const {id:_0x4ee561}=this['_splitMarkerName'](_0x36d618['name']),_0xe592bb=this['_suggestions']['get'](_0x4ee561);_0xe592bb&&_0xe592bb['addMarkerName'](_0x36d618['name']);}}),_0x2ff22c['model']['document']['on']('change:data',()=>{const _0x706929=Array['from'](_0x2ff22c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20e844=>'suggestion'===this['_splitMarkerName'](_0x20e844['name'])['group']);if(0x0===_0x706929['length'])return;_0x706929['sort']((_0x5af569,_0x12981f)=>{const _0x5e8c05=_0x5af569['data']['oldRange'],_0x1757db=_0x12981f['data']['oldRange'];return null===_0x5e8c05&&null===_0x1757db?0x0:null===_0x5e8c05&&null!==_0x1757db?-0x1:null!==_0x5e8c05&&null===_0x1757db?0x1:_0x5e8c05['start']['isBefore'](_0x1757db['start'])?-0x1:0x1;});const _0x2e0ee4=new Set(),_0x328d92=new Set();for(const {name:_0x1045f7,data:_0x3b6c0f}of _0x706929){const {id:_0x9c29d3}=this['_splitMarkerName'](_0x1045f7);if(null===_0x3b6c0f['oldRange']){const _0x3f1203=this['_handleNewSuggestionMarker'](_0x1045f7);_0x328d92['add'](_0x3f1203);}else{const _0x3147c3=this['_suggestions']['get'](_0x9c29d3);null!==_0x3b6c0f['newRange']||_0x3147c3['isInContent']?(_0x2e0ee4['add'](_0x3147c3['head']),_0x328d92['add'](_0x3147c3)):this['_removeSuggestion'](_0x3147c3);}}_0x328d92['size']>0x0&&this['_refreshSuggestionsChain'](_0x328d92);for(const _0x5cb180 of _0x2e0ee4)this['fire']('suggestionChanged',_0x5cb180);}),_0x2ff22c['model']['on']('applyOperation',(_0x4e61b3,_0x19ab6c)=>{const _0x206197=_0x19ab6c[0x0];if(!this['_suggestions']['size'])return;if(!_0x206197['isDocumentOperation'])return;if(_0x206197['batch']['isUndo']||!_0x206197['batch']['isLocal'])return;let _0x57a78d,_0x27822f;switch(_0x206197['type']){case'insert':_0x57a78d=_0x2ff22c['model']['createPositionAt'](_0x206197['position']),_0x27822f=_0x57a78d['getShiftedBy'](_0x206197['howMany']);break;case'split':_0x57a78d=_0x2ff22c['model']['createPositionAt'](_0x206197['splitPosition']),_0x27822f=_0x2ff22c['model']['createPositionAt'](_0x206197['moveTargetPosition']);break;case'move':_0x57a78d=_0x2ff22c['model']['createPositionAt'](_0x206197['targetPosition']),_0x27822f=_0x57a78d['getShiftedBy'](_0x206197['howMany']);break;default:return;}const _0x567b83=_0x2ff22c['model']['createRange'](_0x57a78d,_0x27822f);_0x2ff22c['model']['change'](()=>{for(const {suggestion:_0x579686,meta:_0x438426}of this['_findSuggestions'](_0x567b83)){if(_0x579686['isMultiRange'])continue;if('formatInline'==_0x579686['type'])continue;const _0x3e98aa=this['_getAttributeKey'](_0x579686);if(_0x3e98aa&&this['_isBlockAttribute'](_0x3e98aa)&&'split'!=_0x206197['type'])continue;const _0x1952a0=_0x579686['data']&&_0x579686['data']['multipleBlocks'];('formatBlock'!=_0x579686['type']||'split'==_0x206197['type']&&!_0x1952a0)&&(_0x438426['containsRangeInObject']||'insertion'==_0x579686['type']&&_0x438426['isOwn']||_0x579686['getFirstRange']()['containsRange'](_0x567b83)&&this['_breakSuggestionMarker'](_0x579686,_0x57a78d,_0x27822f));}});},{'priority':'lowest'}),_0x2ff22c['model']['on']('deleteContent',(_0x456c6e,_0x556fd7)=>{const _0x565b66=_0x556fd7[0x0],_0x2dc5e1=_0x556fd7[0x1];if(_0x2dc5e1&&_0x2dc5e1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x565b66['isCollapsed'])return;const _0x25b6ed=_0x2ff22c['model']['schema'],{start:_0x189855,end:_0x5d98fe}=_0x565b66['getFirstRange'](),_0x4d11d4=_0x189855['nodeAfter']&&_0x25b6ed['isLimit'](_0x189855['nodeAfter'])?null:_0x25b6ed['getNearestSelectionRange'](_0x189855,'forward'),_0xa5bb4c=_0x5d98fe['nodeBefore']&&_0x25b6ed['isLimit'](_0x5d98fe['nodeBefore'])?null:_0x25b6ed['getNearestSelectionRange'](_0x5d98fe,'backward'),_0x44c87a=_0x2ff22c['model']['createRange'](_0x4d11d4?_0x4d11d4['start']:_0x189855,_0xa5bb4c?_0xa5bb4c['end']:_0x5d98fe);_0x2ff22c['model']['change'](_0x1b9987=>{this['markDeletion'](_0x44c87a);const _0x5f433c=_0x2ff22c['model']['schema']['getNearestSelectionRange'](_0x44c87a['start']);_0x565b66['is']('documentSelection')?_0x1b9987['setSelection'](_0x5f433c):_0x565b66['setTo'](_0x5f433c);}),_0x456c6e['stop']();},{'priority':_0xbf3aa1['normal']+0xa}),_0x2ff22c['model']['on']('insertContent',(_0x11c176,_0x38447a)=>{const _0x4bc8da=_0x38447a[_0x38447a['length']-0x1];_0x4bc8da&&_0x4bc8da['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2ff22c['model']['change'](()=>{let _0x5e5bdc=_0x2ff22c['model']['insertContent'](_0x38447a[0x0],_0x38447a[0x1],_0x38447a[0x2],{'forceDefaultExecution':!0x0});if(!_0x5e5bdc)return;_0x11c176['return']=_0x5e5bdc['clone']();const _0x1a8241=_0x5e5bdc['end']['nodeBefore'],_0xb6bd43=_0x2ff22c['model']['schema'];_0x1a8241&&_0xb6bd43['isBlock'](_0x1a8241)&&!_0xb6bd43['isObject'](_0x1a8241)&&(_0x5e5bdc=_0x2ff22c['model']['createRange'](_0x5e5bdc['start'],_0x2ff22c['model']['createPositionAt'](_0x1a8241,'end'))),this['markInsertion'](_0x5e5bdc);}),_0x11c176['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4cda28=new $(_0x2ff22c,this['_suggestions']);_0x2ff22c['commands']['add']('acceptSuggestion',_0x4cda28),this['enableCommand']('acceptSuggestion');const _0x5c8668=new B(_0x2ff22c,this['_suggestions']);_0x2ff22c['commands']['add']('discardSuggestion',_0x5c8668),this['enableCommand']('discardSuggestion'),_0x2ff22c['commands']['add']('acceptAllSuggestions',new x(_0x2ff22c,_0x4cda28,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2ff22c['commands']['add']('discardAllSuggestions',new x(_0x2ff22c,_0x5c8668,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2ff22c['commands']['add']('acceptSelectedSuggestions',new R(_0x2ff22c,_0x4cda28,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2ff22c['commands']['add']('discardSelectedSuggestions',new R(_0x2ff22c,_0x5c8668,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x24f463=_0x2ff22c['plugins']['get']('CommentsRepository');this['listenTo'](_0x24f463,'addComment',(_0x312037,{threadId:_0x5bc5c9})=>{const _0x5427f8=this['_suggestions']['get'](_0x5bc5c9);_0x5427f8&&_0x5427f8['commentThread']&&0x1===_0x5427f8['commentThread']['length']&&this['_updateSuggestionData'](_0x5bc5c9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x24f463,'removeComment',(_0x278f7e,{threadId:_0x1329c3})=>{const _0x411f1c=this['_suggestions']['get'](_0x1329c3);_0x411f1c&&_0x411f1c['commentThread']&&!_0x411f1c['commentThread']['length']&&this['_updateSuggestionData'](_0x1329c3,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x20f1db){if(this['_adapter'])throw new _0x418606('track-changes-adapter-already-set',this);this['_adapter']=_0x20f1db;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4d67bb=!0x1,toJSON:_0x13227d=!0x1}={}){const _0x19e02b=[];for(const _0x14ccce of this['_suggestions']['values']())_0x4d67bb&&!_0x14ccce['isInContent']||_0x19e02b['push'](_0x14ccce);return _0x13227d?_0x19e02b['map'](_0x4f58d0=>_0x4f58d0['toJSON']()):_0x19e02b;}['getSuggestion'](_0x52cc55){const _0x3fe13b=this['_suggestions']['get'](_0x52cc55);if(!_0x3fe13b)throw new _0x418606('track-changes-suggestion-not-found',this);return _0x3fe13b;}['hasSuggestion'](_0x3c7bbe){return this['_suggestions']['has'](_0x3c7bbe);}['addSuggestionData'](_0x464032){const {authorId:_0x3244e4,id:_0x5888d3,attributes:_0x131a79}=_0x464032,[_0x3bb10a,_0x2c6e4b]=_0x464032['type']['split'](':'),_0x2c98e9=this['_suggestions']['get'](_0x5888d3)||this['_createSuggestion'](_0x3bb10a,_0x2c6e4b,_0x5888d3,_0x3244e4,_0x131a79);if(this['_addThreadToSuggestion'](_0x2c98e9),this['_checkSuggestionCorrectness'](_0x2c98e9,_0x3bb10a,_0x2c6e4b||null,_0x3244e4),_0x2c98e9['createdAt']=_0x464032['createdAt'],_0x2c98e9['_isDataLoaded']=!0x0,_0x131a79&&_0x131a79['@external']){const _0x4cc0bf=_0x131a79['@external'],_0x1f8188=this['_getExternalAuthor'](_0x4cc0bf['authorName']);_0x2c98e9['authoredAt']=_0x4cc0bf['createdAt'],_0x2c98e9['author']=_0x1f8188,_0x2c98e9['isExternal']=!0x0;}else _0x2c98e9['authoredAt']=_0x464032['createdAt'];switch(_0x464032['data']&&(_0x2c98e9['data']=_0x464032['data']),_0x464032['attributes']&&(_0x2c98e9['attributes']=_0x464032['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2c98e9['_saved']=!0x0),this['_suggestionState']['get'](_0x2c98e9)){case'notReady':this['_suggestionState']['set'](_0x2c98e9,'dataReady');break;case'markerReady':_0x2c98e9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2c98e9])),this['_refreshSuggestionsChain'](new Set([_0x2c98e9])),this['_suggestionState']['set'](_0x2c98e9,'ready'),this['fire']('suggestionLoaded',_0x2c98e9)):this['_suggestionState']['set'](_0x2c98e9,'removed');}return _0x2c98e9;}['acceptSuggestion'](_0x3a5a70){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa1f5c1 of _0x3a5a70['getAllAdjacentSuggestions']())_0xa1f5c1['accept']();});});}['discardSuggestion'](_0x53ded5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c3275 of _0x53ded5['getAllAdjacentSuggestions']())_0x5c3275['discard']();});});}['enableCommand'](_0x433a19,_0xb72c88){const _0x6ffd92=this['editor']['commands']['get'](_0x433a19);if(!_0x6ffd92)throw new _0x418606('track-changes-command-not-found',this,{'commandName':_0x433a19});if(this['_enabledCommands']['has'](_0x6ffd92))throw new _0x418606('track-changes-enable-command-twice',this,{'commandName':_0x433a19});this['_enabledCommands']['add'](_0x6ffd92),_0xb72c88&&_0x6ffd92['on']('execute',(_0x34f64e,_0x1abdee)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1abdee['length']>0x0&&_0x1abdee[_0x1abdee['length']-0x1]&&_0x1abdee[_0x1abdee['length']-0x1]['forceDefaultExecution']?_0x1abdee['pop']():(_0x34f64e['return']=_0xb72c88((..._0xb090a3)=>_0x6ffd92['execute'](..._0xb090a3,{'forceDefaultExecution':!0x0}),..._0x1abdee),_0x34f64e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x246043){let _0x55afaa,_0x4eadfb;const _0xe4b732=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x55afaa=_0x246043();}catch(_0x1878cc){_0x4eadfb=_0x1878cc;}return _0xe4b732||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4eadfb&&_0x418606['rethrowUnexpectedError'](_0x4eadfb,this),_0x55afaa;}['markInsertion'](_0x196513,_0x41c555=null,_0xaba900={}){if(_0x196513['isCollapsed'])return null;const _0x151644=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x116c4b,meta:_0x3df55d}of this['_findSuggestions'](_0x196513,'insertion'))if(_0x3df55d['isOwn']){if(!_0x3df55d['isNextTo']){if(_0x3df55d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x116c4b,_0xaba900))continue;return _0x116c4b;}if(Lt(_0x116c4b,_0xaba900))return _0x116c4b;this['_breakSuggestionMarker'](_0x116c4b,_0x196513['start'],_0x196513['end']);break;}if(_0x41c555==_0x116c4b['subType']&&Lt(_0x116c4b,_0xaba900)){const _0x32b601=_0x116c4b['getFirstRange']();return _0x32b601['start']['isEqual'](_0x196513['end'])?this['_setSuggestionRange'](_0x116c4b,this['_model']['createRange'](_0x196513['start'],_0x32b601['end'])):this['_setSuggestionRange'](_0x116c4b,this['_model']['createRange'](_0x32b601['start'],_0x196513['end'])),_0x116c4b;}}const _0xe38603=_0xeabe53(),_0x2abe33=_0x151644['id'],_0x4893c3=_0x41c555?'insertion:'+_0x41c555:'insertion',_0x2db696=this['_setSuggestionData']({'id':_0xe38603,'type':_0x4893c3,'createdAt':new Date(),'authorId':_0x2abe33,'attributes':_0xaba900});return this['_addSuggestionMarker'](_0x4893c3,_0xe38603,_0x2abe33,_0x196513),_0x2db696;}['markMultiRangeInsertion'](_0x5c6518,_0x55ef3b='multi',_0x37713f={}){const _0x271fd8=this['editor']['plugins']['get']('Users')['me'],_0x1c8cce=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x55ef3b,'join');for(const _0x34f710 of this['getSuggestions']())if(_0x34f710['author']['id']==_0x271fd8['id']&&'insertion'==_0x34f710['type']&&_0x34f710['subType']==_0x55ef3b&&Lt(_0x34f710,_0x37713f)&&(_0x1c8cce(_0x34f710['getRanges'](),_0x5c6518)||_0x1c8cce(_0x5c6518,_0x34f710['getRanges']()))){for(const _0x43cc71 of _0x5c6518)_0x34f710['addRange'](_0x43cc71);return _0x34f710;}for(const {suggestion:_0x55b329,meta:_0x176cc1}of this['_findSuggestions'](_0x5c6518,'insertion')){if(!_0x176cc1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x176cc1['containsRangeInObject'])continue;if(!Lt(_0x55b329,_0x37713f))continue;let _0x5b30b2=!0x0;for(const _0x485ae2 of _0x55b329['getRanges']())for(const _0x16e325 of _0x5c6518)if(!_0x485ae2['containsRange'](_0x16e325)){_0x5b30b2=!0x1;break;}if(_0x5b30b2)return _0x55b329;}const _0x5d19e0=_0xeabe53(),_0x1fcede=_0x271fd8['id'],_0xd0d70='insertion:'+_0x55ef3b,_0x9c1c8c=this['_setSuggestionData']({'id':_0x5d19e0,'type':_0xd0d70,'createdAt':new Date(),'authorId':_0x1fcede,'attributes':_0x37713f});for(const _0x4e1ece of _0x5c6518)this['_addSuggestionMarker'](_0xd0d70,_0x5d19e0,_0x1fcede,_0x4e1ece,u['getMultiRangeId']());return _0x9c1c8c;}['markInlineFormat'](_0x3e2ff6,_0x36aba2,_0x3c674d=null,_0x353264={}){if(_0x3c674d=_0x3c674d||Vt(_0x36aba2),_0x3e2ff6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd3a0e7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c674d,'accept');return this['forceDefaultExecution'](()=>_0xd3a0e7([_0x3e2ff6],_0x36aba2,_0x353264)),null;}const _0x21bbb0=this['editor']['plugins']['get']('Users')['me'],_0x3f78c7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5abe1e,meta:_0x47dd70}of this['_findSuggestions'](_0x3e2ff6,'insertion'))_0x47dd70['isOwn']&&!_0x47dd70['isInsideObject']&&_0x3f78c7['push'](..._0x5abe1e['getRanges']());}const _0x4b17ad=function(_0x2c7767,_0x3813a0){const _0x1e15e7=[];for(const _0x1357fe of _0x3813a0){const _0x584042=_0x2c7767['getIntersection'](_0x1357fe);_0x584042&&_0x1e15e7['push'](_0x584042);}return _0x1e15e7;}(_0x3e2ff6,_0x3f78c7),_0xf23c84=function(_0x2fe96c,_0x549df4){const _0x1f8c55=[_0x2fe96c];for(const _0xcf4ca5 of _0x549df4){let _0x4d9a70=0x0;for(;_0x4d9a70<_0x1f8c55['length'];){const _0x32cd69=_0x1f8c55[_0x4d9a70]['getDifference'](_0xcf4ca5);_0x1f8c55['splice'](_0x4d9a70,0x1,..._0x32cd69),_0x4d9a70+=_0x32cd69['length'];}}return _0x1f8c55;}(_0x3e2ff6,_0x3f78c7);_0x4b17ad['length']&&this['_model']['change'](()=>{for(const _0x2a9993 of _0x4b17ad){const _0x4a28f1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c674d,'accept');this['forceDefaultExecution'](()=>_0x4a28f1([_0x2a9993],_0x36aba2,_0x353264));}});for(const _0xe8490d of _0xf23c84){let _0x24d45a=null,_0x1d3d04=_0xe8490d['start'],_0x1ff32b=_0xe8490d['end'];for(const {suggestion:_0x18c20f,meta:_0x5939b4}of this['_findSuggestions'](_0xe8490d,'formatInline')){if(!_0x5939b4['isOwn'])continue;if(_0x18c20f['subType']!=_0x3c674d)continue;if(!Lt(_0x18c20f,_0x353264))continue;const _0x85e59a=_0x18c20f['getFirstRange']();if(_0x85e59a['containsRange'](_0xe8490d,!0x0))return null;_0x1d3d04=_0x1d3d04['isBefore'](_0x85e59a['start'])?_0x1d3d04:_0x85e59a['start'],_0x1ff32b=_0x1ff32b['isAfter'](_0x85e59a['end'])?_0x1ff32b:_0x85e59a['end'],_0x24d45a?_0x85e59a['start']['isBefore'](_0x24d45a['getFirstRange']()['start'])?(_0x24d45a['removeMarkers'](),_0x24d45a=_0x18c20f):_0x18c20f['removeMarkers']():_0x24d45a=_0x18c20f;}const _0x139907=this['_model']['createRange'](_0x1d3d04,_0x1ff32b);if(_0x24d45a)this['_setSuggestionRange'](_0x24d45a,_0x139907);else{const _0x1ae86e=_0xeabe53(),_0x352495=_0x21bbb0['id'];this['_setSuggestionData']({'id':_0x1ae86e,'type':'formatInline:'+_0x3c674d,'data':_0x36aba2,'createdAt':new Date(),'authorId':_0x352495,'attributes':_0x353264}),this['_addSuggestionMarker']('formatInline:'+_0x3c674d,_0x1ae86e,_0x352495,_0x139907);}}return null;}['markBlockFormat'](_0x10967b,_0x20ee8d,_0x286039=[],_0x48bc05=null,_0x3364e9={}){_0x20ee8d['formatGroupId']||(_0x20ee8d['formatGroupId']=_0x20ee8d['commandName']),_0x20ee8d['multipleBlocks']=_0x10967b['is']('range'),_0x48bc05=_0x48bc05||Vt(_0x20ee8d);const _0x1cd302=_0x286039['map'](_0xd8e9a0=>Gt(_0xd8e9a0,this['_model'])),_0x3adea4=_0x10967b['is']('range')?_0x10967b:Gt(_0x10967b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3fe0c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48bc05,'accept');return this['forceDefaultExecution'](()=>_0x3fe0c4([_0x3adea4],_0x20ee8d,_0x3364e9)),null;}_0x1cd302['push'](_0x3adea4);let _0x5be21e=!0x0;for(const _0xa71c94 of _0x1cd302)if(!this['_rangeIsInLocalUserInsertion'](_0xa71c94)){_0x5be21e=!0x1;break;}if(_0x5be21e&&'always'!==this['_trackFormatChanges']){const _0x4a9d4d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48bc05,'accept');return this['forceDefaultExecution'](()=>_0x4a9d4d([_0x3adea4],_0x20ee8d,_0x3364e9)),null;}let _0xd7c180=null,_0x198484=_0x3adea4['start'],_0x2f8da4=_0x3adea4['end'];for(const {suggestion:_0x3ebd89,meta:_0x4e2292}of this['_findSuggestions'](_0x3adea4,'formatBlock')){if(!_0x4e2292['isOwn'])continue;if(_0x4e2292['isNextTo']||_0x4e2292['containsRangeInObject']||_0x4e2292['isInsideObject'])continue;if(_0x3ebd89['data']['formatGroupId']!=_0x20ee8d['formatGroupId'])continue;if(!Lt(_0x3ebd89,_0x3364e9))continue;const _0xc308b0=_0x3ebd89['getFirstRange']();if(_0x3ebd89['subType']==_0x48bc05){if(_0xc308b0['containsRange'](_0x3adea4,!0x0))return null;_0x198484=_0x198484['isBefore'](_0xc308b0['start'])?_0x198484:_0xc308b0['start'],_0x2f8da4=_0x2f8da4['isAfter'](_0xc308b0['end'])?_0x2f8da4:_0xc308b0['end'],_0xd7c180?_0xc308b0['start']['isBefore'](_0xd7c180['getFirstRange']()['start'])?(_0xd7c180['removeMarkers'](),_0xd7c180=_0x3ebd89):_0x3ebd89['removeMarkers']():_0xd7c180=_0x3ebd89;}else{const _0x4a4dbf=_0x3adea4['getIntersection'](_0xc308b0);this['_cutOutSuggestionMarker'](_0x3ebd89,_0x4a4dbf);}}const _0x36aad1=this['editor']['plugins']['get']('Users')['me'],_0x26742c=_0xeabe53(),_0x506ac3=_0x36aad1['id'];if(_0xd7c180)return this['_setSuggestionRange'](_0xd7c180,this['_model']['createRange'](_0x198484,_0x2f8da4)),_0xd7c180;{const _0x5ca28d=this['_setSuggestionData']({'id':_0x26742c,'type':'formatBlock:'+_0x48bc05,'data':_0x20ee8d,'createdAt':new Date(),'authorId':_0x506ac3,'attributes':_0x3364e9});return this['_addSuggestionMarker']('formatBlock:'+_0x48bc05,_0x26742c,_0x506ac3,this['_model']['createRange'](_0x198484,_0x2f8da4)),_0x5ca28d;}}['markMultiRangeBlockFormat'](_0x1c6287,_0x3f2f55,_0x3b89c4=[],_0x5bf051=null,_0x20b869={}){_0x3f2f55['formatGroupId']||(_0x3f2f55['formatGroupId']=_0x3f2f55['commandName']);const _0x39017f=_0x1c6287[0x0];_0x3f2f55['multipleBlocks']=_0x39017f['is']('range'),_0x5bf051=_0x5bf051||Vt(_0x3f2f55);const _0x23ecaf=_0x3b89c4['map'](_0x243657=>Gt(_0x243657,this['_model'])),_0x22a1fa=_0x39017f['is']('range')?_0x1c6287:_0x1c6287['map'](_0x490233=>Gt(_0x490233,this['_model']));if('never'===this['_trackFormatChanges']){const _0xac61e3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf051,'accept');return this['forceDefaultExecution'](()=>_0xac61e3(_0x22a1fa,_0x3f2f55,_0x20b869)),null;}_0x23ecaf['push'](..._0x22a1fa);let _0x51ae4b=!0x0;for(const _0x169e88 of _0x23ecaf)if(!this['_rangeIsInLocalUserInsertion'](_0x169e88)){_0x51ae4b=!0x1;break;}if(_0x51ae4b&&'always'!==this['_trackFormatChanges']){const _0x8ae847=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf051,'accept');return this['forceDefaultExecution'](()=>_0x8ae847(_0x22a1fa,_0x3f2f55,_0x20b869)),null;}const _0x40e482=this['editor']['plugins']['get']('Users')['me'];for(const _0x11ada7 of this['getSuggestions']()){if(_0x11ada7['author']['id']!=_0x40e482['id'])continue;if('formatBlock'!=_0x11ada7['type']||_0x11ada7['data']['formatGroupId']!=_0x3f2f55['formatGroupId'])continue;if(!Lt(_0x11ada7,_0x20b869))continue;const _0x669e86=_0x11ada7['subType']==_0x5bf051;for(let _0x4ac27d=0x0;_0x4ac27d<_0x22a1fa['length'];_0x4ac27d++){const _0x21c1f0=_0x22a1fa[_0x4ac27d];for(const _0x42807c of _0x11ada7['getMarkers']()){const _0x367ddf=_0x42807c['getRange']();if(_0x21c1f0['isEqual'](_0x367ddf)){_0x669e86?(_0x22a1fa['splice'](_0x4ac27d,0x1),_0x4ac27d--):_0x11ada7['removeMarker'](_0x42807c['name']);break;}}}}if(0x0==_0x22a1fa['length'])return null;const _0x8ff736=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf051,'join');for(const _0x381816 of this['getSuggestions']())if(_0x381816['author']['id']==_0x40e482['id']&&'formatBlock'==_0x381816['type']&&_0x381816['data']['formatGroupId']==_0x3f2f55['formatGroupId']&&_0x381816['subType']==_0x5bf051&&Lt(_0x381816,_0x20b869)&&(_0x8ff736(_0x381816['getRanges'](),_0x22a1fa)||_0x8ff736(_0x22a1fa,_0x381816['getRanges']()))){for(const _0x43f6d3 of _0x22a1fa)_0x381816['addRange'](_0x43f6d3);return _0x381816;}const _0x4c91a6=_0xeabe53(),_0x24f187=_0x40e482['id'],_0x582c01='formatBlock:'+_0x5bf051,_0x1c5257=this['_setSuggestionData']({'id':_0x4c91a6,'type':_0x582c01,'data':_0x3f2f55,'createdAt':new Date(),'authorId':_0x24f187,'attributes':_0x20b869});for(const _0x3fe39f of _0x22a1fa)this['_addSuggestionMarker'](_0x582c01,_0x4c91a6,_0x24f187,_0x3fe39f,u['getMultiRangeId']());return _0x1c5257;}['markDeletion'](_0xff5520,_0x5694ec=null,_0x2fa391={}){if(_0xff5520['isCollapsed'])return null;const _0x158255=this['editor']['plugins']['get']('Users')['me'],_0x1f956f=new _0x3a5b18(_0xff5520['start'],_0xff5520['end']);for(const {suggestion:_0x16bd86,meta:_0xc04634}of this['_findSuggestions'](_0x1f956f,'insertion'))if(_0xc04634['isOwn']&&!_0xc04634['isNextTo']){if(_0x16bd86['isMultiRange']){const _0x157a50=_0x16bd86['getRanges']()['filter'](_0x550306=>'$graveyard'!=_0x550306['root']['rootName']);_0x157a50['every'](_0x2daa70=>_0x1f956f['containsRange'](_0x2daa70,!0x0))&&_0x16bd86['discard']();if(_0x157a50['some'](_0x4cb4cd=>_0x4cb4cd['containsRange'](_0x1f956f,!0x0))){const _0x10d54e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5694ec,'accept');return this['forceDefaultExecution'](()=>_0x10d54e([_0x1f956f],null,_0x2fa391)),null;}}else{const _0x3a6087=_0x1f956f['getIntersection'](_0x16bd86['getFirstRange']());null!==_0x3a6087&&_0x16bd86['_onDiscard']([_0x3a6087],null,_0x2fa391);}}if(_0x1f956f['detach'](),_0x1f956f['isCollapsed']||'$graveyard'==_0x1f956f['root']['rootName'])return null;let _0x176110=null,_0x4d2514=_0x1f956f['start'],_0x14d715=_0x1f956f['end'];const _0x33139a=this['_findSuggestions'](_0x1f956f,'deletion');for(const {suggestion:_0x25560b,meta:_0x48d283}of _0x33139a){const _0x28b346=this['_model']['createRange'](_0x4d2514,_0x14d715);if(_0x48d283['isOwn']&&(this['_mergeNestedSuggestions']||!_0x48d283['containsRangeInObject']&&!_0x48d283['isInsideObject'])){if(_0x25560b['isMultiRange']){if(!Lt(_0x25560b,_0x2fa391))continue;let _0x332fbc=!0x0;for(const _0xff31e of _0x25560b['getRanges']()){if(_0xff31e['containsRange'](_0x28b346,!0x0))return _0x25560b;_0x28b346['containsRange'](_0xff31e)||(_0x332fbc=!0x1);}_0x332fbc&&_0x25560b['discard']();}else{const _0x1742f1=_0x25560b['getFirstRange']();if(_0x1742f1['containsRange'](_0x28b346,!0x0))return _0x25560b;if(!Lt(_0x25560b,_0x2fa391)){_0x28b346['containsRange'](_0x1742f1)?_0x25560b['removeMarkers']():_0x1742f1['containsPosition'](_0x4d2514)?_0x4d2514=_0x1742f1['end']:_0x1742f1['containsPosition'](_0x14d715)&&(_0x14d715=_0x1742f1['start']);continue;}_0x4d2514=_0x4d2514['isBefore'](_0x1742f1['start'])?_0x4d2514:_0x1742f1['start'],_0x14d715=_0x14d715['isAfter'](_0x1742f1['end'])?_0x14d715:_0x1742f1['end'],_0x2fa391=Object['assign']({},_0x25560b['attributes']),_0x176110?_0x1742f1['start']['isBefore'](_0x176110['getFirstRange']()['start'])?(_0x176110['removeMarkers'](),_0x176110=_0x25560b):_0x25560b['removeMarkers']():_0x176110=_0x25560b;}}}if(_0x176110)return this['_setSuggestionRange'](_0x176110,this['_model']['createRange'](_0x4d2514,_0x14d715)),_0x176110;{const _0x17518f=_0xeabe53(),_0x25f30b=this['_model']['createRange'](_0x4d2514,_0x14d715),_0x23ff50=_0x158255['id'],_0x17a77c=_0x5694ec?'deletion:'+_0x5694ec:'deletion',_0xc4222c=this['_setSuggestionData']({'id':_0x17518f,'type':_0x17a77c,'createdAt':new Date(),'authorId':_0x23ff50,'attributes':_0x2fa391});return this['_addSuggestionMarker'](_0x17a77c,_0x17518f,_0x23ff50,_0x25f30b),_0xc4222c;}}['markMultiRangeDeletion'](_0x17ae8e,_0x41c91f='multi',_0x39b2b2={}){const _0x215213=this['editor']['plugins']['get']('Users')['me'],_0x39d25f=_0x17ae8e['map'](_0x4583dd=>new _0x3a5b18(_0x4583dd['start'],_0x4583dd['end'])),_0x11f684=new Set();for(const {suggestion:_0x16a8e5,meta:_0x5a2fa3}of this['_findSuggestions'](_0x39d25f,'insertion'))_0x5a2fa3['isOwn']&&!_0x5a2fa3['isNextTo']&&_0x11f684['add'](_0x16a8e5);for(const _0xb6d9f8 of _0x11f684)if(_0xb6d9f8['isMultiRange']){const _0x47b819=_0xb6d9f8['getRanges']();(!_0xb6d9f8['attributes']||!_0xb6d9f8['attributes']['skipNestingCheck'])&&(_0x47b819['every'](_0x1e989b=>_0x39d25f['some'](_0x435f06=>_0x435f06['containsRange'](_0x1e989b,!0x0)))&&_0xb6d9f8['discard']());if(_0x39d25f['every'](_0x53a962=>_0x47b819['some'](_0x223539=>_0x223539['containsRange'](_0x53a962,!0x0)))){const _0x4c6f4c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41c91f,'accept');return this['forceDefaultExecution'](()=>_0x4c6f4c(_0x17ae8e,null,_0x39b2b2)),null;}}else{const _0x3ee7fa=_0xb6d9f8['getFirstRange']();_0x39d25f['some'](_0x154d6b=>_0x154d6b['containsRange'](_0x3ee7fa,!0x0))&&_0xb6d9f8['discard']();if(_0x39d25f['every'](_0x3c2cfa=>_0x3ee7fa['containsRange'](_0x3c2cfa,!0x0))){const _0x4f3ab2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41c91f,'accept');return this['forceDefaultExecution'](()=>_0x4f3ab2(_0x39d25f,null,_0x39b2b2)),null;}}const _0x31e8bf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41c91f,'join');let _0x103d02=null;for(const _0xcdf7ac of this['getSuggestions']())if(_0xcdf7ac['author']['id']==_0x215213['id']&&_0xcdf7ac['isInContent']&&'deletion'==_0xcdf7ac['type']&&_0xcdf7ac['subType']==_0x41c91f&&Lt(_0xcdf7ac,_0x39b2b2)&&(_0x31e8bf(_0xcdf7ac['getRanges'](),_0x39d25f)||_0x31e8bf(_0x39d25f,_0xcdf7ac['getRanges']()))){if(_0x103d02){if(_0xcdf7ac['commentThread']&&_0xcdf7ac['commentThread']['length'])continue;for(const _0x3ef26c of _0xcdf7ac['getRanges']())_0x103d02['isIntersectingWithRange'](_0x3ef26c)||_0x103d02['addRange'](_0x3ef26c);_0xcdf7ac['removeMarkers']();}else{_0x103d02=_0xcdf7ac;for(const _0x37cbcf of _0x39d25f)_0xcdf7ac['isIntersectingWithRange'](_0x37cbcf)||_0xcdf7ac['addRange'](_0x37cbcf);}}if(_0x103d02)return _0x103d02;_0x11f684['clear']();for(const {suggestion:_0x1f6cc4,meta:_0x5e529d}of this['_findSuggestions'](_0x39d25f,'deletion'))_0x5e529d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5e529d['containsRangeInObject']&&!_0x5e529d['isInsideObject'])&&Lt(_0x1f6cc4,_0x39b2b2)&&_0x11f684['add'](_0x1f6cc4);for(const _0x224007 of _0x11f684){const _0x7df739=_0x224007['getRanges']();if(!_0x39b2b2||!_0x39b2b2['skipNestingCheck']){if(_0x39d25f['every'](_0x25b28c=>_0x7df739['some'](_0x22b385=>_0x22b385['containsRange'](_0x25b28c,!0x0))))return _0x224007;}(!_0x224007['attributes']||!_0x224007['attributes']['skipNestingCheck'])&&(_0x7df739['every'](_0x523b42=>_0x39d25f['some'](_0x575a74=>_0x575a74['containsRange'](_0x523b42,!0x0)))&&_0x224007['discard']());}const _0x3626d8=_0xeabe53(),_0x3febc6=_0x215213['id'],_0x41b7f8='deletion:'+_0x41c91f,_0x4ed7b4=this['_setSuggestionData']({'id':_0x3626d8,'type':_0x41b7f8,'createdAt':new Date(),'authorId':_0x3febc6,'attributes':_0x39b2b2});for(const _0x4ecd2b of _0x39d25f)_0x4ecd2b['detach'](),_0x4ecd2b['isCollapsed']||'$graveyard'==_0x4ecd2b['root']['rootName']||this['_addSuggestionMarker'](_0x41b7f8,_0x3626d8,_0x3febc6,_0x4ecd2b,u['getMultiRangeId']());return _0x4ed7b4;}['markAttributeChange'](_0x308ff7,_0x2df279,_0x2d72ca,_0x1ca5b8,_0x35e5cd){if(_0x308ff7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5249a0=this['editor']['plugins']['get']('Users')['me']['id'],_0x5cb0e0=Array['from'](this['_suggestions']['values']())['filter'](_0x37abcc=>'attribute'==_0x37abcc['type']&&_0x37abcc['data']['key']==_0x2df279&&_0x37abcc['isIntersectingWithRange'](_0x308ff7));if('default'===this['_trackFormatChanges']){const _0xf3a455=this['_findSuggestions'](_0x308ff7,'insertion')['filter'](({meta:_0x298247})=>_0x298247['isOwn']&&!_0x298247['isInsideObject']&&!_0x298247['isNextTo'])['map'](({suggestion:_0x456842})=>_0x456842);_0x5cb0e0['unshift'](..._0xf3a455);}const _0x1ddaef=new Map([[_0x308ff7,_0x2d72ca]]);for(const _0x4b8798 of _0x5cb0e0){const _0x56ce06='attribute'==_0x4b8798['type']?_0x4b8798['data']['oldValue']:void 0x0,_0x6d0417=_0x4b8798['getFirstRange'](),_0x3fa4c1=Array['from'](_0x1ddaef['keys']())['find'](_0x3d30ed=>_0x3d30ed['isIntersecting'](_0x6d0417));if(!_0x3fa4c1)continue;const _0x130837=_0x3fa4c1['getDifference'](_0x6d0417);this['_isBlockAttribute'](_0x2df279)&&'insertion'==_0x4b8798['type']&&0x0!=_0x130837['length']||(_0x1ddaef['delete'](_0x3fa4c1),_0x130837['forEach'](_0xb894bf=>{_0x1ddaef['set'](_0xb894bf,_0x2d72ca);}),'insertion'!=_0x4b8798['type']&&_0x56ce06!=_0x1ca5b8&&_0x1ddaef['set'](_0x3fa4c1['getIntersection'](_0x6d0417),_0x56ce06));}const _0x20ddfd=[];for(const [_0x47b2df,_0x337d18]of _0x1ddaef){const _0x20cffe=_0xeabe53(),_0x52674f={'key':_0x2df279,'oldValue':_0x337d18,'newValue':_0x1ca5b8};_0x2df279['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':_0x2df279});const _0x20762d=('attribute:'+(_0x2df279+'|'+Vt({'newValue':_0x1ca5b8})))['substring'](0x0,0x3c),_0xaa4b8a=this['_setSuggestionData']({'id':_0x20cffe,'type':_0x20762d,'data':_0x52674f,'createdAt':new Date(),'authorId':_0x5249a0,'attributes':_0x35e5cd});_0x20ddfd['push'](_0xaa4b8a),this['_addSuggestionMarker'](_0x20762d,_0x20cffe,_0x5249a0,_0x47b2df);}return _0x20ddfd;}['enableDefaultAttributesIntegration'](_0x31e218){this['enableCommand'](_0x31e218,(_0x55fcea,..._0x90b3c4)=>{this['_recordAttributeChanges'](()=>{_0x55fcea(..._0x90b3c4);});});}['registerBlockAttribute'](_0x2b04b2){this['_blockAttributeKeys']['add'](_0x2b04b2);}['registerInlineAttribute'](_0x3d3fad){this['_inlineAttributeKeys']['add'](_0x3d3fad);}['_getAttributeKey'](_0x516b72){return'attribute'==_0x516b72['type']?_0x516b72['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4d243a,_0x4bdbb0){const _0x3a3a7d=_0x4d243a['getFirstMarker']();this['_model']['change'](_0x277675=>{_0x277675['updateMarker'](_0x3a3a7d,{'range':_0x4bdbb0});});}['_addThreadToSuggestion'](_0x2989ac){const _0x5df1c8=_0x2989ac['id'],_0x3cfec1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5df1c8)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3cfec1,'threadId':_0x5df1c8,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x12b187=this['_commentsRepository']['getCommentThread'](_0x5df1c8);_0x12b187['unbind']('isRemovable'),_0x12b187['isRemovable']=!0x1,_0x2989ac['commentThread']=_0x12b187;}['_checkSuggestionCorrectness'](_0x3dfa62,_0x260b4f,_0x3529d4,_0x34dcd9){if(_0x3dfa62['type']!=_0x260b4f||_0x3dfa62['subType']!=_0x3529d4||_0x3dfa62['creator']['id']!=_0x34dcd9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x418606('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3fc5a3,_0x31ed55){const _0x23f915=_0x3fc5a3['getFirstRange']();if(_0x31ed55['isEqual'](_0x23f915))_0x3fc5a3['removeMarkers']();else{if(_0x23f915['containsRange'](_0x31ed55)){const _0x51383b=this['_model']['createPositionAt'](_0x31ed55['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fc5a3,this['_model']['createRange'](_0x23f915['start'],_0x51383b));const _0x2eae86=_0xeabe53(),_0x32352f=_0x3fc5a3['creator']['id'],_0x6ab185=_0x3fc5a3['type']+':'+_0x3fc5a3['subType'];this['_setSuggestionData']({'id':_0x2eae86,'type':_0x6ab185,'createdAt':new Date(),'authorId':_0x32352f,'data':_0x3fc5a3['data'],'attributes':_0x3fc5a3['attributes']});const _0x5cf712=this['_model']['createPositionAt'](_0x31ed55['end']['parent'],'after'),_0x166870=this['_model']['createRange'](_0x5cf712,_0x23f915['end']);this['_addSuggestionMarker'](_0x6ab185,_0x2eae86,_0x32352f,_0x166870);}else{if(_0x23f915['containsPosition'](_0x31ed55['start'])){const _0x541c06=this['_model']['createPositionAt'](_0x31ed55['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fc5a3,this['_model']['createRange'](_0x23f915['start'],_0x541c06));}else{const _0x5a54a7=this['_model']['createPositionAt'](_0x31ed55['end']['parent'],'after');this['_setSuggestionRange'](_0x3fc5a3,this['_model']['createRange'](_0x5a54a7,_0x23f915['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x47486e){for(const {suggestion:_0x482c2d,meta:_0x797507}of this['_findSuggestions'](_0x47486e,'insertion')){if(!_0x797507['isOwn'])continue;const _0x11fd91=_0x482c2d['getRanges']();for(const _0x2be95a of _0x11fd91)if(!_0x47486e['getDifference'](_0x2be95a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x42daf5){const _0x5de471=this['editor']['plugins']['get']('Users')['getUser'](_0x42daf5);if(!_0x5de471)throw new _0x418606('track-changes-user-not-found',this);return _0x5de471;}['_getExternalAuthor'](_0x75e3df){const _0x523970=this['editor']['plugins']['get']('Users'),_0x58f248=_0x1aadbe('external:'+_0x75e3df),_0x1e5f61=_0x523970['getUser'](_0x58f248);return _0x1e5f61||_0x523970['addUser']({'id':_0x58f248,'name':_0x75e3df});}['_createSuggestion'](_0x89e5ca,_0x306c9a,_0x28fdc6,_0x4d812e,_0x4f598a){const _0x25bd28=this['_getAuthorFromId'](_0x4d812e),_0x1b2812=this['_suggestionFactory']['buildSuggestion'](_0x89e5ca,_0x306c9a,_0x28fdc6,_0x25bd28,_0x4f598a,_0x44577e=>{this['_updateSuggestionData'](_0x28fdc6,{'attributes':_0x44577e});const _0x534174=this['getSuggestion'](_0x28fdc6);this['_joinWithAdjacentSuggestions'](new Set([_0x534174])),this['_refreshSuggestionsChain'](new Set([_0x534174]));});return this['listenTo'](_0x1b2812,'accept',()=>{this['_updateSuggestionData'](_0x28fdc6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1b2812,'discard',()=>{this['_updateSuggestionData'](_0x28fdc6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x28fdc6,_0x1b2812),this['_suggestionState']['set'](_0x1b2812,'notReady'),_0x1b2812;}['_splitMarkerName'](_0x4f9b6d){const _0x41adaf=_0x4f9b6d['split'](':');return{'group':_0x41adaf[0x0],'type':_0x41adaf[0x1],'subType':_0x41adaf['length']>=0x5?_0x41adaf[0x2]:null,'id':_0x41adaf['length']<0x5?_0x41adaf[0x2]:_0x41adaf[0x3],'authorId':_0x41adaf['length']<0x5?_0x41adaf[0x3]:_0x41adaf[0x4],'markerCount':0x6==_0x41adaf['length']?_0x41adaf[0x5]:null};}['_breakSuggestionMarker'](_0x319bf4,_0xd2cee9,_0x5282c0){const _0x2e5224=_0x319bf4['getFirstRange'](),_0x16c9cb=_0x2e5224['start'],_0xb6fb72=_0x2e5224['end'];this['_setSuggestionRange'](_0x319bf4,this['_model']['createRange'](_0x16c9cb,_0xd2cee9));const _0x1b8ea1=_0xeabe53(),_0x5ecc01=_0x319bf4['creator']['id'],_0x5f2103=_0x319bf4['type']+(_0x319bf4['subType']?':'+_0x319bf4['subType']:'');this['_setSuggestionData']({'id':_0x1b8ea1,'type':_0x5f2103,'createdAt':new Date(),'authorId':_0x5ecc01,'originalSuggestionId':_0x319bf4['id'],'attributes':_0x319bf4['attributes'],'data':_0x319bf4['data']});const _0x3563f1=this['_getAttributeKey'](_0x319bf4);('formatBlock'==_0x319bf4['type']||_0x3563f1&&this['_isBlockAttribute'](_0x3563f1))&&(_0x5282c0=this['_model']['createPositionBefore'](_0x5282c0['parent'])),this['_addSuggestionMarker'](_0x5f2103,_0x1b8ea1,_0x5ecc01,this['_model']['createRange'](_0x5282c0,_0xb6fb72));}['_findSuggestions'](_0x2ea705,_0x41198d=null){const _0x3625de=[],_0x895d6d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2ea705)||(_0x2ea705=[_0x2ea705]);for(const _0x252cbc of this['getSuggestions']()){if(!_0x252cbc['isInContent'])continue;if(_0x41198d&&_0x252cbc['type']!=_0x41198d)continue;let _0x24bde4=!0x1;for(const _0x584c6e of _0x252cbc['getRanges']()){for(const _0x4aa904 of _0x2ea705){const _0x4ea04e=_0x4aa904['start']['isEqual'](_0x584c6e['end'])||_0x4aa904['end']['isEqual'](_0x584c6e['start']);if(_0x4ea04e||_0x4aa904['getIntersection'](_0x584c6e)){const _0x28d541=_0x4aa904['containsRange'](_0x584c6e)&&Rt(this['_model']['schema'],_0x584c6e['start'],_0x4aa904),_0x851102=_0x584c6e['containsRange'](_0x4aa904)&&Rt(this['_model']['schema'],_0x4aa904['start'],_0x584c6e);_0x3625de['push']({'suggestion':_0x252cbc,'meta':{'isOwn':_0x895d6d==_0x252cbc['author'],'isNextTo':_0x4ea04e,'isInsideObject':_0x28d541,'containsRangeInObject':_0x851102}}),_0x24bde4=!0x0;break;}}if(_0x24bde4)break;}}return _0x3625de;}['_addSuggestionMarker'](_0x3e638d,_0x1dce91,_0x3edde4,_0x510f12,_0x290a46){this['_model']['change'](_0x203903=>{let _0x987921='suggestion:'+_0x3e638d+':'+_0x1dce91+':'+_0x3edde4;_0x290a46&&(_0x987921=_0x987921+':'+_0x290a46),_0x203903['addMarker'](_0x987921,{'range':_0x510f12,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5bae62){const _0x46c57c=_0x5bae62['previous'],_0xc496ad=_0x5bae62['next'];_0x5bae62['previous']=null,_0x5bae62['next']=null,null!=_0x46c57c&&_0x46c57c['next']==_0x5bae62&&(_0x46c57c['next']=_0xc496ad),null!=_0xc496ad&&_0xc496ad['previous']==_0x5bae62&&(_0xc496ad['previous']=_0x46c57c),'ready'==this['_suggestionState']['get'](_0x5bae62)&&(this['_suggestionState']['set'](_0x5bae62,'removed'),this['fire']('suggestionUnloaded',_0x5bae62,_0x46c57c,_0xc496ad));}['_setSuggestionData'](_0xd7fc2e){const _0x966598=_0xd7fc2e['id'],_0x3a4572=this['addSuggestionData'](_0xd7fc2e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x233682=this['editor']['plugins']['get']('PendingActions'),_0x294d80=_0x3a4572['hasComments'],_0x4eee8a=_0x3a4572['subType']?_0x3a4572['type']+':'+_0x3a4572['subType']:_0x3a4572['type'],_0xb0535e=this['editor']['locale'],_0x1c4002=_0x233682['add'](o(_0xb0535e,'PENDING_ACTION_SUGGESTION')),_0x11c872={'id':_0x966598,'type':_0x4eee8a,'hasComments':_0x294d80,'data':_0xd7fc2e['data']||null,'originalSuggestionId':_0xd7fc2e['originalSuggestionId']||null,'attributes':_0x3a4572['attributes']};this['_adapter']['addSuggestion'](_0x11c872)['then'](_0x52b031=>{_0x3a4572['_saved']=!0x0,_0x233682['remove'](_0x1c4002),_0x52b031&&_0x52b031['createdAt']&&(this['_suggestions']['get'](_0x966598)['createdAt']=_0x52b031['createdAt']);})['catch'](_0x4ac3f6=>{throw _0x4f8950('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3a4572['discard']();}),_0x3a4572['stopListening'](),this['_suggestions']['delete'](_0x3a4572['id']),this['_suggestionState']['delete'](_0x3a4572),_0x4ac3f6;});}return _0x3a4572;}['_isBlockAttribute'](_0x3691af){return this['_blockAttributeKeys']['has'](_0x3691af);}['_updateSuggestionData'](_0x15e35b,_0x2bc38f){const _0x5cf49c=this['editor']['plugins']['get']('PendingActions'),_0x454dea=this['getSuggestion'](_0x15e35b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x454dea['_saved']){const _0x200b02=_0x5cf49c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x15e35b,_0x2bc38f)['then'](()=>{_0x5cf49c['remove'](_0x200b02);});}else _0x454dea['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x15e35b,_0x2bc38f);});}}['_getSuggestionData'](_0x37e13c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x418606('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x37e13c);}['_handleNewSuggestionMarker'](_0x1bb357){const {id:_0x1d7232,type:_0x5cc85b,subType:_0x3205fc,authorId:_0x5652b8}=this['_splitMarkerName'](_0x1bb357),_0x7e87fa=this['_suggestions']['get'](_0x1d7232)||this['_createSuggestion'](_0x5cc85b,_0x3205fc,_0x1d7232,_0x5652b8,{});switch(this['_checkSuggestionCorrectness'](_0x7e87fa,_0x5cc85b,_0x3205fc,_0x5652b8),this['_suggestionState']['get'](_0x7e87fa)){case'notReady':this['_getSuggestionData'](_0x1d7232)['then'](_0x5d27c0=>{let _0x2e838a=Promise['resolve']();_0x5d27c0['hasComments']&&(_0x2e838a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1d7232})),_0x2e838a['then'](()=>{this['addSuggestionData'](_0x5d27c0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x7e87fa,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d7232,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x7e87fa,'ready'),this['fire']('suggestionLoaded',_0x7e87fa);break;case'ready':this['fire']('suggestionChanged',_0x7e87fa);}return _0x7e87fa['addMarkerName'](_0x1bb357),_0x7e87fa;}['_refreshSuggestionsChain'](_0x3571d8){const _0x3dd6ce=Array['from'](_0x3571d8),_0x655379=_0x3dd6ce['filter'](_0xd403c1=>'attribute'==_0xd403c1['type']);this['_refreshAttributeSuggestionsChain'](_0x655379);const _0x31cdb3=_0x3dd6ce['filter'](_0x4101e3=>!_0x4101e3['isMultiRange']&&'attribute'!=_0x4101e3['type']),_0x50e16b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25d105=>!_0x25d105['isMultiRange']&&'attribute'!=_0x25d105['type']),_0x59352e=_0x50e16b['filter'](_0x143cde=>!_0x3571d8['has'](_0x143cde)),_0x2835b2=new Map(_0x50e16b['map'](_0x389c71=>[_0x389c71,this['_suggestionFactory']['getSuggestionCallback'](_0x389c71['type'],_0x389c71['subType'],'chain')])),_0x248bc8=new Map(_0x50e16b['map'](_0x33145a=>[_0x33145a,_0x33145a['getFirstRange']()])),_0x57bc5d=new Set(),_0x3a2309=new Set();for(let _0xbd40dd=0x0;_0xbd40dd<_0x31cdb3['length'];_0xbd40dd++)_0x2eaac2(_0x31cdb3[_0xbd40dd],_0x31cdb3,_0xbd40dd+0x1);for(let _0x30a2ee=0x0;_0x30a2ee<_0x31cdb3['length'];_0x30a2ee++)_0x2eaac2(_0x31cdb3[_0x30a2ee],_0x59352e,0x0);const _0x2294c9=new Set();for(let _0x40dd0c=0x0;_0x40dd0c<_0x31cdb3['length'];_0x40dd0c++){const _0x4dc3ec=_0x31cdb3[_0x40dd0c];!_0x3a2309['has'](_0x4dc3ec)&&_0x4dc3ec['previous']&&(_0x2294c9['add'](_0x4dc3ec['previous']),_0x4dc3ec['previous']['next']===_0x4dc3ec&&(_0x4dc3ec['previous']['next']=null),_0x4dc3ec['previous']=null),!_0x57bc5d['has'](_0x4dc3ec)&&_0x4dc3ec['next']&&(_0x2294c9['add'](_0x4dc3ec['next']),_0x4dc3ec['next']['previous']===_0x4dc3ec&&(_0x4dc3ec['next']['previous']=null),_0x4dc3ec['next']=null);}function _0x2eaac2(_0x2b3167,_0xb73c90,_0x97266){for(let _0x540c0b=_0x97266;_0x540c0b<_0xb73c90['length'];_0x540c0b++){const _0x39566b=_0x1ce8df(_0x2b3167,_0xb73c90[_0x540c0b]);_0x39566b&&(_0x39566b[0x0]['next']=_0x39566b[0x1],_0x39566b[0x1]['previous']=_0x39566b[0x0],_0x57bc5d['add'](_0x39566b[0x0]),_0x3a2309['add'](_0x39566b[0x1]));}}function _0x1ce8df(_0x5b6d76,_0x5c7ff6){if(_0x5b6d76['author']['id']!==_0x5c7ff6['author']['id'])return null;const _0x384367=_0x2835b2['get'](_0x5b6d76)(_0x5b6d76,_0x5c7ff6,_0x248bc8['get'](_0x5b6d76),_0x248bc8['get'](_0x5c7ff6));if(!_0x384367)return null;return _0x2835b2['get'](_0x5c7ff6)(_0x5b6d76,_0x5c7ff6,_0x248bc8['get'](_0x5b6d76),_0x248bc8['get'](_0x5c7ff6))?_0x384367[0x1]['commentThread']&&_0x384367[0x1]['commentThread']['length']?null:_0x384367:null;}_0x2294c9['size']&&this['_refreshSuggestionsChain'](_0x2294c9);}['_refreshAttributeSuggestionsChain'](_0x418632){if(0x0==_0x418632['length'])return;const _0x21a2c2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c99d5=>'attribute'==_0x4c99d5['type']&&_0x4c99d5['_isDataLoaded']),_0x18a53c=[],_0x3b561a=new Map();for(const _0x2cb040 of _0x21a2c2){const _0x257a14=_0x1aadbe(_0x2cb040['attributes']);_0x3b561a['has'](_0x257a14)||(_0x3b561a['set'](_0x257a14,_0x18a53c['length']),_0x18a53c['push']([]));const _0x523bf7=_0x3b561a['get'](_0x257a14);_0x18a53c[_0x523bf7]['push'](_0x2cb040);}!(function(){_0x18a53c['sort']((_0x43510c,_0x2b2a8c)=>{const _0x6daa20=_0x43510c[0x0]['createdAt'],_0x4d30b8=_0x2b2a8c[0x0]['createdAt'];return _0x6daa20==_0x4d30b8?_0x43510c[0x0]['attributes']['groupId']<_0x2b2a8c[0x0]['attributes']['groupId']?-0x1:0x1:_0x6daa20<_0x4d30b8?-0x1:0x1;});for(const _0x513507 of _0x18a53c)_0x513507['sort']((_0x29aa1f,_0x2eb3e1)=>_0x29aa1f['id']<_0x2eb3e1['id']?-0x1:0x1);}());for(let _0x3d9fe3=0x0;_0x3d9fe3<_0x18a53c['length'];_0x3d9fe3++){if(0x0==_0x18a53c[_0x3d9fe3]['length'])continue;const _0x396b80=[];for(let _0x471dba=_0x3d9fe3+0x1;_0x471dba<_0x18a53c['length'];_0x471dba++)0x0!=_0x18a53c[_0x471dba]['length']&&_0x397a6c(_0x18a53c[_0x3d9fe3],_0x18a53c[_0x471dba])&&_0x396b80['push'](_0x471dba);for(const _0x43941b of _0x396b80)_0x18a53c[_0x3d9fe3]=_0x18a53c[_0x3d9fe3]['concat'](_0x18a53c[_0x43941b]),_0x18a53c[_0x43941b]=[];}for(const _0x1f7274 of _0x18a53c)for(let _0x764793=0x0;_0x764793<_0x1f7274['length'];_0x764793++)_0x1f7274[_0x764793]['next']=_0x1f7274[_0x764793+0x1]||null;for(const _0x4f50cc of _0x18a53c)for(let _0x17200c=0x0;_0x17200c<_0x4f50cc['length'];_0x17200c++)_0x4f50cc[_0x17200c]['previous']=_0x4f50cc[_0x17200c-0x1]||null;function _0x397a6c(_0x32ffd9,_0xa7554e){if(_0x32ffd9[0x0]['attributes']['groupId']!==_0xa7554e[0x0]['attributes']['groupId']&&_0x32ffd9[0x0]['author']!==_0xa7554e[0x0]['author'])return!0x1;if(!function(_0x1d3b80,_0x116ef5){if(!_0x1d3b80['hasComments']&&!_0x116ef5['hasComments'])return!0x0;if(_0x1d3b80['hasComments']&&_0x116ef5['hasComments'])return!0x1;if(_0x1d3b80['hasComments']&&_0x116ef5['createdAt']<_0x1d3b80['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x116ef5['hasComments']&&_0x1d3b80['createdAt']<_0x116ef5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x32ffd9[0x0],_0xa7554e[0x0]))return!0x1;const _0x34922d=Bt(_0x32ffd9[0x0]['attributes'],'groupId'),_0x463450=Bt(_0xa7554e[0x0]['attributes'],'groupId');if(!_0x3d3015(_0x34922d,_0x463450))return!0x1;return!!_0x32ffd9['every'](_0x5834f1=>_0xa7554e['some'](_0x1c1eaf=>_0x5834f1['getFirstRange']()['isEqual'](_0x1c1eaf['getFirstRange']())))&&_0xa7554e['every'](_0x1fcf96=>_0x32ffd9['some'](_0x58ccf1=>_0x1fcf96['getFirstRange']()['isEqual'](_0x58ccf1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2c7720){const _0x518500=Array['from'](_0x2c7720),_0x31d0ff=this['getSuggestions']({'skipNotAttached':!0x0}),_0x302d15=_0x31d0ff['filter'](_0x28d284=>!_0x2c7720['has'](_0x28d284)),_0x2af5d3=new Map(_0x518500['map'](_0x48b20c=>[_0x48b20c,this['_suggestionFactory']['getSuggestionCallback'](_0x48b20c['type'],_0x48b20c['subType'],'join')])),_0x26bad=new Map(_0x31d0ff['map'](_0x33b3c6=>[_0x33b3c6,_0x33b3c6['getRanges']()]));for(let _0x18cc09=0x0;_0x18cc09<_0x518500['length'];_0x18cc09++){if(_0x24c52f(this,_0x518500[_0x18cc09],_0x518500,_0x18cc09+0x1))return!0x0;}for(let _0x4a791b=0x0;_0x4a791b<_0x518500['length'];_0x4a791b++){if(_0x24c52f(this,_0x518500[_0x4a791b],_0x302d15,0x0))return!0x0;}return!0x1;function _0x24c52f(_0xcaac05,_0x4fc692,_0x2a47cc,_0x47d47b){for(let _0x1513a0=_0x47d47b;_0x1513a0<_0x2a47cc['length'];_0x1513a0++){const _0x35fffa=_0x2a47cc[_0x1513a0];if(_0x35fffa['type']!==_0x4fc692['type']||_0x35fffa['author']['id']!==_0x4fc692['author']['id']||_0x35fffa['subType']!==_0x4fc692['subType'])continue;if(!Pt(_0x4fc692,_0x35fffa,['groupId']))continue;if('attribute'==_0x4fc692['type']&&_0x4fc692['data']['oldValue']!=_0x35fffa['data']['oldValue'])continue;if('attribute'==_0x4fc692['type']&&_0xcaac05['_isBlockAttribute'](_0x4fc692['data']['key']))continue;if('formatBlock'==_0x4fc692['type']){const _0x3fdecc=_0xcaac05['editor']['model'],_0x525c8e=_0x4fc692['getContainedElement']();if(_0x525c8e&&(_0x3fdecc['schema']['isObject'](_0x525c8e)||_0x3fdecc['schema']['isLimit'](_0x525c8e)))continue;}const _0x3f35af=_0x2af5d3['get'](_0x4fc692),_0x3a71f6=_0x26bad['get'](_0x4fc692),_0x439b8d=_0x26bad['get'](_0x35fffa),_0x564b08=_0x4fc692['commentThread']&&_0x4fc692['commentThread']['length'],_0x52765a=_0x35fffa['commentThread']&&_0x35fffa['commentThread']['length'];if(!_0x564b08&&_0x3f35af(_0x439b8d,_0x3a71f6))return _0xcaac05['_joinSuggestions'](_0x35fffa,_0x4fc692),_0x26bad['delete'](_0x4fc692),!0x0;if(!_0x52765a&&_0x3f35af(_0x3a71f6,_0x439b8d))return _0xcaac05['_joinSuggestions'](_0x4fc692,_0x35fffa),_0x26bad['delete'](_0x35fffa),!0x0;}return!0x1;}}['_joinSuggestions'](_0x254f78,_0x5915ad){if(_0x254f78['isMultiRange']){for(const _0x44d30d of _0x5915ad['getRanges']())_0x254f78['addRange'](_0x44d30d);}else{const _0x55c8b8=_0x5915ad['getFirstRange']()['end'];this['_setSuggestionRange'](_0x254f78,this['_model']['createRange'](_0x254f78['getFirstRange']()['start'],_0x55c8b8));}_0x5915ad['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3b3dea,_0x462cfe){const _0xe2f96b=_0x3b3dea['startsWith']('format')||_0x3b3dea['startsWith']('attribute')?'FORMATTING':_0x3b3dea['toUpperCase']();return o(this['editor']['locale'],_0x462cfe+'_'+_0xe2f96b+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x22a0ea=this['editor'];if(!_0x22a0ea['ui'])return;const {ariaLiveAnnouncer:_0xece0c6}=_0x22a0ea['ui'];_0x244eaa(this['_model'],({left:_0x101f5a,entered:_0x3e8a65})=>{for(const _0x49b64a of _0x101f5a){const {group:_0xf41ec0,type:_0x334ac5}=this['_splitMarkerName'](_0x49b64a['name']);if('suggestion'===_0xf41ec0){_0xece0c6['announce'](this['_getMarkerAnnouncementText'](_0x334ac5,'LEAVE'));break;}}for(const _0x12a94e of _0x3e8a65){const {group:_0x287922,type:_0x1a12b2}=this['_splitMarkerName'](_0x12a94e['name']);if('suggestion'===_0x287922){_0xece0c6['announce'](this['_getMarkerAnnouncementText'](_0x1a12b2,'ENTER'));break;}}});}['_processAttributeChanges'](_0x522f05){if(this['_recordAttributeSuggestions'])return!0x1;const _0x581022=this['editor'],_0x94bdbe=_0x581022['model']['document']['differ']['getChanges']();if(0x0==_0x94bdbe['length'])return!0x1;const _0x249e19=[],_0x331004=_0x94bdbe['filter'](_0x191e17=>'attribute'==_0x191e17['type']),_0x4904a8=_0x94bdbe['filter'](_0x27c694=>'insert'==_0x27c694['type']&&'$text'!=_0x27c694['name']),_0x30d8be=_0x94bdbe['filter'](_0x40f2d9=>'remove'==_0x40f2d9['type']&&'$text'!=_0x40f2d9['name']);for(const _0x3ab13a of _0x331004)_0x249e19['push']({'key':_0x3ab13a['attributeKey'],'newValue':_0x3ab13a['attributeNewValue'],'oldValue':_0x3ab13a['attributeOldValue'],'range':Ot(_0x3ab13a['range'],_0x581022['model'])});for(const _0x316804 of _0x4904a8){const _0x410590=_0x30d8be['find'](_0x1383b1=>_0x1383b1['position']['isEqual'](_0x316804['position']));_0x410590&&_0x249e19['push']({'key':m,'newValue':_0x316804['name'],'oldValue':_0x410590['name'],'range':_0x581022['model']['createRangeOn'](_0x316804['position']['nodeAfter'])});}return 0x0!=_0x249e19['length']&&this['_reduceExistingSuggestions'](_0x522f05,_0x249e19);}['_processAttributeSuggestions'](_0x18f9c4){let _0x171ac5=!0x1;const _0x225364=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x8d9c1c=>_0x8d9c1c['data']['newRange']&&_0x8d9c1c['name']['startsWith']('suggestion:attribute:'));for(const _0x1a34dc of _0x225364){const {subType:_0x1613ca,id:_0x353b8c}=this['_splitMarkerName'](_0x1a34dc['name']),_0x4f6c6b=_0x1613ca['split']('|')[0x0];for(const _0x51de4b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x51de4b['id']!=_0x353b8c&&'attribute'==_0x51de4b['type']&&_0x51de4b['data']&&_0x51de4b['data']['key']==_0x4f6c6b&&_0x51de4b['getFirstRange']()['isIntersecting'](_0x1a34dc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x51de4b,_0x1a34dc['data']['newRange'],_0x18f9c4),_0x171ac5=!0x0);}return _0x171ac5;}['_recordAttributeChanges'](_0x1d1d6d){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1d1d6d();}['_isRegisteredAttribute'](_0x4b0367){const _0x47ef38=this['_isBlockAttribute'](_0x4b0367),_0x3642cd=this['_inlineAttributeKeys']['has'](_0x4b0367);return _0x47ef38||_0x3642cd;}['_reduceExistingSuggestions'](_0x38f223,_0x1213ea){if(0x0==_0x1213ea['length'])return!0x1;let _0x515768=!0x1;for(const _0x58f82d of _0x1213ea){const _0x12846d=this['_findSuggestions'](_0x58f82d['range'],'attribute')['filter'](_0x271ac7=>!_0x271ac7['meta']['isNextTo'])['map'](_0x25651=>_0x25651['suggestion']),_0x328c08=_0x1aadbe({'newValue':_0x58f82d['newValue']});_0x12846d['filter'](_0x2efd69=>{const [_0x14bfbc,_0xa1007a]=_0x2efd69['subType']['split']('|');return _0x14bfbc==_0x58f82d['key']&&_0xa1007a!=_0x328c08;})['forEach'](_0x450f4d=>{this['_reduceSuggestionAttributeRange'](_0x450f4d,_0x58f82d['range'],_0x38f223),_0x515768=!0x0;});}return _0x515768;}['_reduceSuggestionAttributeRange'](_0x5e292e,_0x209618,_0x391458){const _0x175551=_0x5e292e['getFirstRange']()['getDifference'](_0x209618);0x0!==_0x175551['length']?0x1!==_0x175551['length']?this['_breakSuggestionMarker'](_0x5e292e,_0x209618['start'],_0x209618['end']):this['_setSuggestionRange'](_0x5e292e,_0x175551[0x0]):_0x391458['removeMarker'](_0x5e292e['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3449f3){this['_editor']=_0x3449f3,this['_model']=_0x3449f3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x6b8d10,_0x32e7b9,_0x573aa6,_0x53e6be,_0x821ded,_0x4fa80a){return new u(this['_model'],{'type':_0x6b8d10,'subType':_0x32e7b9,'id':_0x573aa6,'author':_0x53e6be,'creator':_0x53e6be,'attributes':_0x821ded,'onAttributesChange':_0x4fa80a,'onAccept':(..._0x3870a7)=>this['getSuggestionCallback'](_0x6b8d10,_0x32e7b9,'accept')(..._0x3870a7),'onDiscard':(..._0x195ee2)=>this['getSuggestionCallback'](_0x6b8d10,_0x32e7b9,'discard')(..._0x195ee2)});}['registerCustomCallback'](_0x5d532c,_0x57dd3b,_0x5f5966,_0xe8cf9){const _0x5a5dc5=_0x5d532c+':'+_0x57dd3b+':'+_0x5f5966;this['_customCallbacks']['set'](_0x5a5dc5,_0xe8cf9);}['getSuggestionCallback'](_0x5121ee,_0x14a8ea,_0x3567c8){const _0x248525=_0x5121ee+':'+_0x14a8ea+':'+_0x3567c8;return this['_customCallbacks']['get'](_0x248525)||this['_defaultCallbacks']['get'](_0x5121ee+':'+_0x3567c8);}['_registerDefaultCallbacks'](){const _0x269b08=()=>!0x1,_0x5650fc=_0x2cb0c7=>{_0x2cb0c7['sort']((_0x27b9b5,_0x1ff640)=>_0x27b9b5['start']['isBefore'](_0x1ff640['start'])?0x1:-0x1),this['_model']['change'](_0x4740b4=>{for(const _0x31fcc7 of _0x2cb0c7){let _0x1e0beb;_0x1e0beb=_0x31fcc7['end']['isAtEnd']&&_0x31fcc7['end']['parent']==_0x31fcc7['start']['nodeAfter']?_0x4740b4['createSelection'](_0x31fcc7['start']['nodeAfter'],'on'):_0x4740b4['createSelection'](_0x31fcc7),this['_model']['deleteContent'](_0x1e0beb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1c307a=(_0x142a7b,_0x4e4300)=>{_0x4e4300&&this['_model']['change'](_0x456954=>{const {commandName:_0x51e9a4,commandParams:_0x45552c=[]}=_0x4e4300,_0x359559=_0x142a7b['map'](_0x7534f2=>(Tt(_0x7534f2)&&(_0x7534f2=this['_model']['createRange'](_0x7534f2['end'])),_0x7534f2))['filter'](_0x2c385c=>'$graveyard'!==_0x2c385c['root']['rootName']);if(_0x359559['length']<0x1)return;const _0x29199c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5e15f9=>_0x3a5b18['fromRange'](_0x5e15f9));_0x456954['setSelection'](_0x359559);for(const _0x5b28ab of this['_editor']['commands']['commands']())_0x5b28ab['refresh']();_0x45552c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x51e9a4,..._0x45552c);const _0x5371fe=_0x29199c['filter'](_0x4dc28b=>'$graveyard'!=_0x4dc28b['root']['rootName']);_0x5371fe['length']>0x0&&_0x456954['setSelection'](_0x5371fe);for(const _0x3a4abf of _0x29199c)_0x3a4abf['detach']();});},_0x366a05=(_0x370f7f,_0x5df057)=>0x1==_0x370f7f['length']&&0x1==_0x5df057['length']&&_0x370f7f[0x0]['end']['isEqual'](_0x5df057[0x0]['start']),_0x2cb00c=(_0x20e161,_0x37e153,_0x510711,_0x3d8717)=>Ft(_0x20e161,_0x37e153,_0x510711,_0x3d8717,this['_model'])?[_0x20e161,_0x37e153]:Ft(_0x37e153,_0x20e161,_0x3d8717,_0x510711,this['_model'])?[_0x37e153,_0x20e161]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x269b08),this['_defaultCallbacks']['set']('insertion:discard',_0x5650fc),this['_defaultCallbacks']['set']('insertion:join',_0x366a05),this['_defaultCallbacks']['set']('insertion:chain',_0x2cb00c),this['_defaultCallbacks']['set']('deletion:accept',_0x5650fc),this['_defaultCallbacks']['set']('deletion:discard',_0x269b08),this['_defaultCallbacks']['set']('deletion:join',_0x366a05),this['_defaultCallbacks']['set']('deletion:chain',_0x2cb00c),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c307a),this['_defaultCallbacks']['set']('formatInline:discard',_0x269b08),this['_defaultCallbacks']['set']('formatInline:join',_0x366a05),this['_defaultCallbacks']['set']('formatInline:chain',_0x269b08),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c307a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x269b08),this['_defaultCallbacks']['set']('formatBlock:join',_0x366a05),this['_defaultCallbacks']['set']('formatBlock:chain',_0x269b08),this['_defaultCallbacks']['set']('attribute:accept',_0x269b08),this['_defaultCallbacks']['set']('attribute:discard',(_0xda2a24,_0x4a66e0)=>{if(!_0x4a66e0)return;const _0x5308e7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3ede3d=>{if(_0x4a66e0['key']==m)for(const _0x55592f of _0xda2a24){const _0x3da69e=_0x55592f['start']['nodeAfter'],_0x7aa61a=_0x4a66e0['oldValue'];_0x3ede3d['rename'](_0x3da69e,_0x7aa61a);}else{if(_0x5308e7['_isBlockAttribute'](_0x4a66e0['key'])){for(const _0x3515ad of _0xda2a24)void 0x0!==_0x4a66e0['oldValue']?_0x3ede3d['setAttribute'](_0x4a66e0['key'],_0x4a66e0['oldValue'],_0x3515ad['start']['nodeAfter']):_0x3ede3d['removeAttribute'](_0x4a66e0['key'],_0x3515ad['start']['nodeAfter']);}else{for(const _0x380f40 of _0xda2a24)_0x4a66e0['oldValue']?_0x3ede3d['setAttribute'](_0x4a66e0['key'],_0x4a66e0['oldValue'],_0x380f40):_0x3ede3d['removeAttribute'](_0x4a66e0['key'],_0x380f40);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x366a05);}}function Rt(_0x517a72,_0x598fd5,_0x2249fa){for(const _0x5dd7d2 of _0x598fd5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5dd7d2['root']==_0x5dd7d2)return!0x1;if(!_0x2249fa['containsItem'](_0x5dd7d2))return!0x1;if(_0x517a72['isObject'](_0x5dd7d2)||_0x517a72['isLimit'](_0x5dd7d2))return!0x0;}return!0x1;}function Tt(_0x20428a){return _0x20428a['end']['parent']==_0x20428a['start']['nodeAfter']&&_0x20428a['end']['isAtStart'];}function Et(_0x3909cb,_0x54fc3d,_0x5d5b86,_0x53172b){const _0x1abd5d=_0x563ee5=>!_0x563ee5['item']['is']('$textProxy')&&!_0x53172b['isObject'](_0x563ee5['item']),_0x44f02d=_0x3909cb['start']['getLastMatchingPosition'](_0x1abd5d),_0x27db9a=_0x3909cb['end']['getLastMatchingPosition'](_0x1abd5d,{'direction':'backward'});return(!_0x3909cb['start']['isEqual'](_0x44f02d)||!_0x3909cb['end']['isEqual'](_0x27db9a))&&(_0x44f02d['isBefore'](_0x27db9a)?_0x5d5b86['updateMarker'](_0x54fc3d,{'range':_0x5d5b86['createRange'](_0x44f02d,_0x27db9a)}):_0x5d5b86['removeMarker'](_0x54fc3d),!0x0);}function Vt(_0x1d150d){return _0x1aadbe(_0x1d150d);}function Ut(_0x5bd622){const _0x265859=_0x5bd622['start']['nodeAfter'];return _0x265859&&_0x265859['is']('element');}function Ot(_0x11f975,_0x1a128a){return null==_0x11f975['end']['nodeBefore']&&_0x11f975['end']['parent']==_0x11f975['start']['nodeAfter']?Gt(_0x11f975['start']['nodeAfter'],_0x1a128a):_0x11f975;}function Gt(_0x5d2ec7,_0x1c6c69){const _0x25a5d1=_0x1c6c69['schema']['isObject'](_0x5d2ec7)||_0x1c6c69['schema']['isSelectable'](_0x5d2ec7);return _0x1c6c69['createRange'](_0x1c6c69['createPositionAt'](_0x5d2ec7,'before'),_0x25a5d1?_0x1c6c69['createPositionAfter'](_0x5d2ec7):_0x1c6c69['createPositionAt'](_0x5d2ec7,'end'));}function Ft(_0x28c6ce,_0x2b71ef,_0xaa2b0e,_0x5a007a,_0x13a823){if(!Pt(_0x28c6ce,_0x2b71ef))return!0x1;if(_0xaa2b0e['end']['isEqual'](_0x5a007a['start']))return!0x0;if(_0x28c6ce['type']!=_0x2b71ef['type'])return!0x1;if(!_0xaa2b0e['end']['isTouching'](_0x5a007a['start']))return!0x1;const _0x4a1a28=_0x13a823['createRange'](_0xaa2b0e['end'],_0x5a007a['start'])['getWalker']();for(const _0x30f326 of _0x4a1a28)if(['elementStart','elementEnd']['includes'](_0x30f326['type'])&&_0x13a823['schema']['isLimit'](_0x30f326['item']))return!0x1;return!0x0;}function Pt(_0x35627c,_0x3bb0c4,_0x16e705=[]){return!(!_0x35627c['_isDataLoaded']||!_0x3bb0c4['_isDataLoaded'])&&_0x3d3015(Bt(_0x35627c['attributes'],_0x16e705),Bt(_0x3bb0c4['attributes'],_0x16e705));}function Lt(_0x142936,_0x48c42a){const _0x2bdc88=Ht(_0x142936['attributes']),_0x312ae6=Ht(_0x48c42a);if(!_0x142936['_isDataLoaded'])return!0x1;for(const _0x2ca8b8 of Object['keys'](_0x312ae6))if(!_0x3d3015(_0x2bdc88[_0x2ca8b8],_0x312ae6[_0x2ca8b8]))return!0x1;return!0x0;}function Ht(_0x2837fd){const _0x30bf1f=Object['assign']({},_0x2837fd);return delete _0x30bf1f['skipNestingCheck'],delete _0x30bf1f['tablePasteChainId'],_0x30bf1f;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x55c595(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x95b489,_0x5ef709,_0x517211,_0x4a58fd){super(),this['model']=_0x5ef709,this['view']=_0x517211,this['commentThreadController']=_0x4a58fd,this['_editor']=_0x95b489,this['_acceptCommand']=_0x95b489['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x95b489['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x75575,_0x626c51)=>_0x75575||_0x626c51),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x28a82b=>_0x28a82b&&this['_editor']['model']['canEditAt'](_0x5ef709['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x486ac0=>_0x486ac0&&this['_editor']['model']['canEditAt'](_0x5ef709['getRanges']())),this['_pendingAction']=null,_0x517211['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x517211,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x517211,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x517211,'change:isDirty',()=>{_0x517211['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 _0x245485=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x245485);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x4d6504{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x5ebf7a,_0x3a4e88,_0xd8be1c,_0x45817f){super(_0x5ebf7a),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3a4e88['authoredAt']),this['bind']('authoredAt')['to'](_0x3a4e88),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3a4e88,this['_localUser']=_0xd8be1c,this['_config']=_0x45817f,_0x45817f['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:_0x4c09f5}=this['_config'];this['commentsListView']=new _0x4c09f5(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',_0x1da044=>_0x1da044+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x47f37c,_0x414a70)=>_0x47f37c||!!_0x414a70);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x20a50a}=this['_config'],_0x369bbd=new _0x20a50a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3de0ec=_0x369bbd['commentInputView'];return _0x369bbd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3de0ec,'value',(_0xf7e361,_0x388a0e,_0x3928e9)=>!!_0x3928e9||_0xf7e361&&!_0x388a0e),_0x3de0ec['on']('submit',(_0x56172c,_0x20a7a5)=>{this['fire']('addComment',_0x20a7a5),_0x3de0ec['editor']['setData']('');}),_0x3de0ec['on']('cancel',()=>this['focus']()),_0x3de0ec['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x369bbd;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x18a590,_0x159cfa,_0x1a7a4d,_0x48146f){super(_0x18a590,_0x159cfa,_0x1a7a4d,_0x48146f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x377eaf=>_0x377eaf&&_0x377eaf[0x0]?_0x377eaf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5a4778,_0xe94bd0)=>{let _0x24e1f8='';for(const _0x499557 of _0x5a4778)_0x24e1f8+='<p>'+ds(_0x499557['content'],_0x499557['color'])+'</p>';return _0xe94bd0?_0x24e1f8:_0x1d2bcd(_0x24e1f8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x18a590,'Accept\x20suggestion'),_0x68a7a3['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x18a590,'Discard\x20suggestion'),_0x68a7a3['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x457804(_0x18a590,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3fbd9b=this['bindTemplate'],_0x355295=[{'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':_0x3fbd9b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3fbd9b['to']('authoredAt',_0xfbcef2=>this['_config']['formatDateTime'](_0xfbcef2))}]}]},{'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']&&_0x355295['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x567ea2={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3fbd9b['if']('isActive','ck-suggestion-wrapper--active'),_0x3fbd9b['to']('type',_0x2543d9=>'ck-suggestion-'+_0x2543d9),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':_0x355295}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x567ea2['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)),_0x567ea2;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4d23c1,_0x44092b,_0x4116a6)=>{this['_descriptionElement']['innerHTML']=_0x4116a6;});}['_createButton'](_0x27a2e9,_0x440d71,_0x3c7822,_0x55b180,_0x5044be){const _0x1a9882=new _0x360e0f(this['locale']);return _0x1a9882['set']({'label':_0x27a2e9,'icon':_0x440d71,'tooltip':!0x0,'tooltipPosition':_0x5044be}),_0x1a9882['extendTemplate']({'attributes':{'class':_0x3c7822}}),_0x1a9882['on']('execute',()=>{this['fire'](_0x55b180,this['_model']['id']);}),_0x1a9882;}['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(_0x2af3f4,_0x2449ee){let _0x3a7b4b='';return _0x3a7b4b+=_0x2af3f4['split']('*')['map']((_0x51409b,_0x16507d)=>_0x16507d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x51409b)+'</span>':us(_0x51409b))['join'](''),_0x2449ee&&(_0x3a7b4b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2449ee['value']+'\x22\x20title=\x22'+_0x2449ee['title']+'\x22></span>'),_0x3a7b4b;}function us(_0x1ab542){const _0x584a5e=document['createElement']('span');return _0x584a5e['innerText']=_0x1ab542,_0x584a5e['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 _0x462782{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x537a23,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4a7bef){super(_0x4a7bef),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x400f38=this['editor']['config'];_0x400f38['define']('trackChanges.SuggestionThreadView',ne),_0x400f38['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x400f38['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x156a5b,_0x58d7bb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x355ceb,_0x35616e]of this['_handleControllerBuffer']){const _0x2c4f0a=this['_suggestionToController']['has'](_0x355ceb);_0x2c4f0a||_0x35616e?_0x2c4f0a&&_0x35616e&&this['_destroyController'](_0x355ceb):this['_initializeController'](_0x355ceb);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x156a5b,_0x58d7bb);}['init'](){const _0x12e4c4=this['editor'],_0x25d8c5=_0x12e4c4['plugins']['get']('TrackChangesEditing'),_0x391a44=_0x12e4c4['plugins']['get']('Annotations'),_0x3367c3=_0x12e4c4['plugins']['get']('EditorAnnotations'),_0x263b0b=_0x12e4c4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3367c3['addSourceCollector'](()=>{const _0x7561f2=[];for(const [_0x3b1978,_0x4e42eb]of Array['from'](this['_suggestionToController'])){const _0xf0456a=_0x3b1978['getAllAdjacentSuggestions'](),_0xca4f37=[];for(const _0x126496 of _0xf0456a){if(!_0x126496['isInContent'])continue;if(_0x126496['isMultiRange']){_0xca4f37['push'](..._0x126496['getRanges']());continue;}const _0x52a7fa=_0x126496['getFirstRange']();if(_0xca4f37['length']>0x0){const _0x2bf4b8=_0xca4f37[0x0]['getJoined'](_0x52a7fa);if(_0x2bf4b8){_0xca4f37[0x0]=_0x2bf4b8;continue;}}_0xca4f37['push'](_0x52a7fa);}_0x7561f2['push']([_0x4e42eb['view'],_0xca4f37]);}return _0x7561f2;}),this['listenTo'](_0x25d8c5,'suggestionLoaded',(_0x1fbcfb,_0x58fa35)=>{this['listenTo'](_0x58fa35,'change:previous',(_0x20cf7b,_0x3a6a94,_0x16a3cf,_0x23c2e7)=>{_0x58fa35['isInContent']&&(null==_0x16a3cf?(this['_updateController'](_0x23c2e7['head']),this['_handleSuggestionControllerDelayed'](_0x58fa35,!0x1)):(this['_updateController'](_0x16a3cf['head']),null==_0x23c2e7&&this['_handleSuggestionControllerDelayed'](_0x58fa35,!0x0)));}),null!==_0x58fa35['previous']?this['_updateController'](_0x58fa35['head']):this['_handleSuggestionControllerDelayed'](_0x58fa35,!0x1);}),this['listenTo'](_0x25d8c5,'suggestionUnloaded',(_0x300f14,_0xe6da0a,_0x1a1073)=>{this['stopListening'](_0xe6da0a,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe6da0a),this['_suggestionToController']['has'](_0xe6da0a)&&this['_destroyController'](_0xe6da0a),_0x1a1073&&this['_updateController'](_0x1a1073['head']);}),this['listenTo'](_0x25d8c5,'suggestionChanged',(_0x259b6e,_0x65397a)=>{this['_updateController'](_0x65397a);}),this['listenTo'](_0x391a44,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x263b0b,'addComment',(_0x1d6514,{threadId:_0x296b5a,isFromAdapter:_0xad1297})=>{if(_0xad1297||!_0x25d8c5['hasSuggestion'](_0x296b5a))return;const _0x1ca8a0=_0x25d8c5['getSuggestion'](_0x296b5a);this['_suggestionToController']['get'](_0x1ca8a0)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3e59c1=this['editor']['plugins']['get']('Annotations'),_0x318295=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32f863=Array['from'](_0x3e59c1['activeAnnotations'],_0x20ab39=>_0x20ab39['innerView'])['filter'](_0xf7b1d7=>this['_viewToController']['has'](_0xf7b1d7)),_0xf6c701=[];for(const _0x55a543 of _0x32f863){const _0x17e9ca=this['_viewToController']['get'](_0x55a543)['model']['getAllAdjacentSuggestions']();_0xf6c701['push'](..._0x17e9ca['reduce']((_0x4f95b2,_0x41d373)=>[..._0x4f95b2,..._0x41d373['getMarkerNames']()],[]));}_0x318295['activeMarkers']=_0xf6c701;}['_addUIComponentsToFactory'](){const _0x6a0d48=this['editor'],_0x2cbd34=_0x6a0d48['locale'],_0x27efa0=o(_0x2cbd34,'Track\x20changes'),_0x56224e=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x27efa0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2cbd34,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2cbd34,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2cbd34,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2cbd34,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3a04a2 of _0x56224e)if(ae(_0x3a04a2)){const _0x531199=_0x6a0d48['commands']['get'](_0x3a04a2['model']['commandName']);_0x3a04a2['model']['bind']('isOn','isEnabled')['to'](_0x531199,'value','isEnabled');}_0x6a0d48['ui']['componentFactory']['add']('trackChanges',_0x22aa6a=>this['_createToolbarButton'](_0x22aa6a,_0x56224e,_0x27efa0)),_0x6a0d48['ui']['componentFactory']['add']('menuBar:trackChanges',_0x46aedf=>this['_createMenuBarMenu'](_0x46aedf,_0x56224e,_0x27efa0));}['_createToolbarButton'](_0x4f8022,_0xf4ad69,_0x2e8c9f){const _0x735a52=zt(_0x4f8022,Zt),_0x376dd8=this['editor']['commands']['get']('trackChanges');_0x735a52['buttonView']['set']({'tooltip':_0x2e8c9f,'label':_0x2e8c9f,'icon':ie}),_0x735a52['buttonView']['bind']('isOn')['to'](_0x376dd8,'value'),_0x735a52['buttonView']['on']('execute',()=>{_0x376dd8['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x735a52,_0xf4ad69,{'role':'menu'});const _0x6a6f7a=[];for(const _0x285a0e of _0xf4ad69)ae(_0x285a0e)&&_0x6a6f7a['push'](this['editor']['commands']['get'](_0x285a0e['model']['commandName']));const _0x1f1d0e=_0x735a52['buttonView'];return _0x1f1d0e['actionView']['unbind']('isEnabled'),_0x1f1d0e['arrowView']['unbind']('isEnabled'),_0x1f1d0e['actionView']['bind']('isEnabled')['to'](_0x376dd8,'isEnabled'),_0x1f1d0e['arrowView']['bind']('isEnabled')['toMany'](_0x6a6f7a,'isEnabled',(..._0x52a9ba)=>_0x52a9ba['some'](_0x12757a=>_0x12757a)),_0x735a52['on']('execute',_0x518065=>{this['editor']['execute'](_0x518065['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x735a52;}['_createMenuBarMenu'](_0x359bba,_0x4f9163,_0x2203b5){const _0x53278f=new Kt(_0x359bba),_0x8ea8c0=this['editor']['commands']['get']('trackChanges');_0x53278f['buttonView']['set']({'label':_0x2203b5,'icon':ie});const _0x52dbb3=new Qt(_0x359bba);for(const _0x3bccb3 of _0x4f9163){if('separator'==_0x3bccb3['type']){_0x52dbb3['items']['add'](new Jt(_0x359bba));continue;}const _0x16aaa6=new Xt(_0x359bba,_0x53278f),_0x8d73ca=new Yt(_0x359bba),_0x44ab94=_0x3bccb3['model'];_0x8d73ca['bind'](...Object['keys'](_0x44ab94))['to'](_0x44ab94),_0x8d73ca['delegate']('execute')['to'](_0x53278f),_0x8d73ca['on']('execute',()=>{this['editor']['execute'](_0x44ab94['commandName']),this['editor']['editing']['view']['focus']();}),_0x16aaa6['children']['add'](_0x8d73ca),_0x52dbb3['items']['add'](_0x16aaa6);}return _0x53278f['bind']('isEnabled')['to'](_0x8ea8c0,'isEnabled'),_0x53278f['panelView']['children']['add'](_0x52dbb3),_0x53278f;}['_initializeController'](_0x5dd427){const _0x9f11ee=this['editor'],_0x2ac568=_0x9f11ee['config'],_0x30da32=_0x9f11ee['plugins']['get']('Annotations'),_0x12e1fe=_0x9f11ee['plugins']['get']('CommentsRepository'),_0x1e00d1=_0x9f11ee['plugins']['get']('EditorAnnotations'),_0x299711=_0x9f11ee['plugins']['get'](_0x537a23)['me'],_0x313dfc=_0x2ac568['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3d4a70,CommentThreadInputView:_0x3d296b}=_0x9f11ee['plugins']['get']('CommentsUI');let _0x37c791,_0x51203f;this['_annotationViews']['has'](_0x5dd427['id'])?(_0x51203f=this['_annotationViews']['get'](_0x5dd427['id']),_0x37c791=_0x51203f['mainView']):(_0x37c791=new _0x313dfc(_0x9f11ee['locale'],_0x5dd427,_0x299711,{'disableComments':this['_disableComments'],'editorConfig':_0x2ac568['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2ac568['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2ac568['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2ac568['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5f0809(_0x2ac568['get']('locale')),'CommentView':_0x2ac568['get']('comments')['CommentView'],'CommentsListView':_0x3d4a70,'CommentThreadInputView':_0x3d296b}),_0x37c791['acceptButton']['on']('execute',()=>{_0x9f11ee['editing']['view']['focus']();}),_0x37c791['discardButton']['on']('execute',()=>{_0x9f11ee['editing']['view']['focus']();}),_0x51203f=_0x30da32['createAnnotationView'](this['editor']['locale'],_0x37c791),_0x51203f['bind']('isDirty')['to'](_0x37c791,'isDirty'),_0x51203f['bind']('length')['to'](_0x37c791),_0x51203f['bind']('type')['to'](_0x37c791,'type',_0x2dfc09=>'suggestion-'+_0x2dfc09),this['_annotationViews']['set'](_0x5dd427['id'],_0x51203f));const _0x541309=_0x12e1fe['createCommentThreadController'](_0x5dd427['commentThread'],_0x37c791),_0x1ef5dd=new oe(_0x9f11ee,_0x5dd427,_0x37c791,_0x541309),_0x3f043d=_0x5dd427['getAllAdjacentSuggestions']()['filter'](_0x2e932f=>_0x2e932f['isInContent']);_0x37c791['descriptionParts']=_0x9f11ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3f043d),this['_suggestionToController']['set'](_0x5dd427,_0x1ef5dd),this['_viewToController']['set'](_0x37c791,_0x1ef5dd);const _0x27a50a=_0x30da32['createAnnotation']({'view':_0x51203f,'target':()=>{const _0x4eedd0=[],_0x541c7b=_0x5dd427['getAllAdjacentSuggestions']()['filter'](_0x5f29dd=>_0x5f29dd['isInContent']);for(const _0x52e4bd of _0x541c7b)_0x4eedd0['push'](..._0x52e4bd['getMarkers']());return _0x4d7bd0(_0x9f11ee['editing'],_0x4eedd0);},'type':()=>'suggestion-'+_0x1ef5dd['view']['type']});_0x12e1fe['_bindAnnotationToEditors'](_0x37c791,_0x27a50a),_0x30da32['add'](_0x27a50a),_0x1e00d1['registerAnnotation'](_0x27a50a);}['_destroyController'](_0x1b7f78){const _0x22cfa7=this['editor']['plugins']['get']('CommentsRepository'),_0x5c3031=this['editor']['plugins']['get']('Annotations'),_0x206f1a=this['_suggestionToController']['get'](_0x1b7f78),_0x217ce7=_0x206f1a['view'],_0x320ce3=_0x5c3031['getByInnerView'](_0x217ce7);_0x22cfa7['_unbindEditors'](_0x217ce7),_0x320ce3&&_0x5c3031['remove'](_0x320ce3),this['_suggestionToController']['delete'](_0x1b7f78),this['_viewToController']['delete'](_0x217ce7),_0x206f1a['destroy']();}['_updateController'](_0x2de7cf){if(!_0x2de7cf['isInContent']||!this['_suggestionToController']['has'](_0x2de7cf))return;const _0x54f132=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fcb62=this['_suggestionToController']['get'](_0x2de7cf),_0x6fd950=_0x2de7cf['getAllAdjacentSuggestions']();_0x2fcb62['view']['descriptionParts']=_0x54f132['descriptionFactory']['getDescriptions'](_0x6fd950);}['destroy'](){for(const _0x52fcf9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x52fcf9);for(const _0x44c929 of this['_annotationViews']['values']())_0x44c929['mainView']['destroy']();super['destroy']();}}function ae(_0x155c8d){return'model'in _0x155c8d;}class k extends _0x462782{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4821fc){this['editor']['plugins']['get'](p)['adapter']=_0x4821fc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x58de72){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x58de72);}['getSuggestions']({skipNotAttached:_0xeaa1e8=!0x1,toJSON:_0x39295b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xeaa1e8,'toJSON':_0x39295b});}['getSuggestion'](_0xabb6f4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xabb6f4);}}const T=['Pagination'];class P extends _0x462782{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2c35c9=this['editor'];if(_0x2c35c9['config']['define']('trackChangesData.editorCreator',_0xe28dd0=>{const _0x541a3b=_0x2c35c9['model']['document']['getRootNames']()['reduce']((_0x20f65e,_0x5470f8)=>(_0x20f65e[_0x5470f8]='',_0x20f65e),{});return _0x2c35c9['constructor']['create'](_0x541a3b,_0xe28dd0);}),'function'!=typeof _0x2c35c9['config']['get']('trackChangesData')['editorCreator'])throw new _0x418606('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4114b5){return N(this['editor'],!0x0,_0x4114b5);}['getDataWithDiscardedSuggestions'](_0xb87868){return N(this['editor'],!0x1,_0xb87868);}}class D extends _0x462782{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3cc826){super(_0x3cc826),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(_0x3a32d2){return void 0x0!==_0x3a32d2['getRootsAttributes'];}async function N(_0x4d31f7,_0x396a8a,_0x248627){const _0x34a713=_0x4346ae(_0x4d31f7,T);_0x34a713['plugins']['push'](p,D),_0x34a713['rootsAttributes']=v(_0x4d31f7)?_0x4d31f7['getRootsAttributes']():void 0x0;const _0x8dceb1=document['createDocumentFragment'](),_0x509967=_0x4d31f7['config']['get']('trackChangesData')['editorCreator'],_0x34882b=await _0x509967(_0x34a713,()=>function(_0x6f7ee3){const _0x3cc777=document['createElement']('div');return _0x6f7ee3['appendChild'](_0x3cc777),_0x3cc777;}(_0x8dceb1));!function(_0xe287c1,_0x114908){const _0x4e987a=_0xe287c1['model']['document']['getRootNames']()['reduce']((_0x5cd494,_0x39627f)=>(_0x5cd494[_0x39627f]=_0xe287c1['data']['get']({'rootName':_0x39627f}),_0x5cd494),{}),_0x575e12=_0xe287c1['plugins']['get']('Users')['users']['map'](_0x285914=>({'id':_0x285914['id'],'name':_0x285914['name']})),_0x90ed65=_0xe287c1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45392a=_0xe287c1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xfc6dd6=_0x114908['plugins']['get']('Users'),_0x52b9ce=_0x114908['plugins']['get']('TrackChangesEditing'),_0x4632cd=_0x114908['plugins']['get']('CommentsRepository');for(const _0x5e9d3c of _0x575e12)_0xfc6dd6['getUser'](_0x5e9d3c['id'])||_0xfc6dd6['addUser'](_0x5e9d3c);_0xfc6dd6['me']||_0xfc6dd6['useAnonymousUser']();for(const _0x44f522 of _0x45392a)_0x4632cd['addCommentThread'](_0x44f522);for(const _0x5bc546 of _0x90ed65)_0x52b9ce['addSuggestionData'](_0x5bc546);_0x114908['data']['set'](_0x4e987a);}(_0x4d31f7,_0x34882b),_0x34882b['execute'](_0x396a8a?'acceptAllSuggestions':'discardAllSuggestions');const _0x3e8904=v(_0x34882b)?_0x34882b['getFullData'](_0x248627):_0x34882b['data']['get'](_0x248627);return await _0x34882b['destroy'](),_0x3e8904;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};