@ckeditor/ckeditor5-track-changes 45.2.1-alpha.3 → 45.2.1-alpha.4

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 _0x18dae3,Plugin as _0x3b35c4,PendingActions as _0x3fbc39}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xc7eb95,ObservableMixin as _0x39e58d,uid as _0x281607,priorities as _0x4512e8,insertToPriorityArray as _0x1fd667,toArray as _0x3a9362,logWarning as _0xd2389d,getEnvKeystrokeText as _0x26c402,FocusTracker as _0x2e8585,KeystrokeHandler as _0x1cdd14,Collection as _0x28345c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2d481a,IconCancel as _0x35c47,IconTrackChanges as _0x328e47}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x34724a,View as _0x227acf,ViewCollection as _0x49b3dd,FocusCycler as _0x4b6c41,ViewModel as _0x4eb3cd,createDropdown as _0x3f6a89,SplitButtonView as _0xc75dec,addListToDropdown as _0x4ae9e0,MenuBarMenuView as _0x1a7567,MenuBarMenuListView as _0x4d5f26,ListSeparatorView as _0xd2db54,MenuBarMenuListItemView as _0x52ff2f,MenuBarMenuListItemButtonView as _0x87f93d,BodyCollection as _0x36988f,Dialog as _0x846e2a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x30d22a,hashObject as _0x3ed617,surroundingMarkersDetector as _0x619df9,FOCUS_ANNOTATION_KEYSTROKE as _0x2ddebb,AriaDescriptionView as _0x784425,setupThreadKeyboardNavigation as _0x24eb33,trimHtml as ti,UserView as _0xb2de16,LateFocusButtonView as _0x44c3f4,getDateTimeFormatter as _0x3e5c82,getAllMarkersDomElementsSorted as _0x5a8a50,sanitizeEditorConfig as _0x9c03b3}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x391178,LiveRange as _0x268add,LivePosition as _0x1a83d5,DowncastWriter as _0x5356e3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x30dddd,toWidget as _0x4010d0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x53a7f5,set as _0x49cd5f,isEqual as _0x4c5c2a,unset as _0x589aff,omit as Ft}from'es-toolkit/compat';import{Delete as _0x4d99a2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1af609}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3e542b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x18dae3{['_enabledCommands'];constructor(_0xf64018,_0x2a14dd){super(_0xf64018),this['_enabledCommands']=_0x2a14dd,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 _0x283f95 of this['editor']['commands']['commands']())_0x283f95['affectsData']&&!this['_enabledCommands']['has'](_0x283f95)&&_0x283f95['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe14fb1 of this['editor']['commands']['commands']())_0xe14fb1['affectsData']&&!this['_enabledCommands']['has'](_0xe14fb1)&&_0xe14fb1['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x18dae3{['_suggestions'];constructor(_0x4bec67,_0x516c98){super(_0x4bec67),this['_suggestions']=_0x516c98,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x484c0b){const _0x3cc1aa=this['_suggestions']['get'](_0x484c0b);if(!_0x3cc1aa)throw new _0xc7eb95('track-changes-accept-suggestion-not-found',this);const _0xd08bf1=_0x3cc1aa['getRanges']();this['editor']['model']['canEditAt'](_0xd08bf1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3cc1aa);}}class O extends _0x18dae3{['_suggestions'];constructor(_0x728812,_0x2f167b){super(_0x728812),this['_suggestions']=_0x2f167b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5ccee7){const _0x549738=this['_suggestions']['get'](_0x5ccee7);if(!_0x549738)throw new _0xc7eb95('track-changes-discard-suggestion-not-found',this);const _0x4a2ae5=_0x549738['getRanges']();this['editor']['model']['canEditAt'](_0x4a2ae5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x549738);}}function ls(_0x33e37d,_0x456be4){let _0x49852d='';return _0x49852d+=_0x33e37d['split']('*')['map']((_0x4ddc64,_0x175f32)=>_0x175f32%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4ddc64)+'</span>':nn(_0x4ddc64))['join'](''),_0x456be4&&(_0x49852d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x456be4['value']+'\x22\x20title=\x22'+_0x456be4['title']+'\x22></span>'),_0x49852d;}function nn(_0x78f4cf){const _0x3d73bf=document['createElement']('span');return _0x3d73bf['innerText']=_0x78f4cf,_0x3d73bf['innerHTML'];}function ts(_0x5b6e99){return _0x5b6e99['sort']((_0xe2fc5f,_0x1ba5d0)=>'deletion'==_0xe2fc5f['type']&&'deletion'!=_0x1ba5d0['type']?-0x1:'deletion'!=_0xe2fc5f['type']&&'deletion'==_0x1ba5d0['type']?0x1:0x0);}function to(_0x5337ae,_0x4d3eaf){let _0x2fac8d,_0x590839=0x0;const _0x2e1b75=[],_0x17d00a=_0x4d3eaf['schema'];for(;_0x590839<_0x5337ae['length'];){const _0x5daaac=_0x5337ae[_0x590839],_0x4af3d1=_0x5337ae[_0x590839+0x1];_0x2fac8d||(_0x2fac8d=_0x4d3eaf['createPositionBefore'](_0x5daaac)),on(_0x4d3eaf,_0x5daaac,_0x4af3d1)||(_0x2e1b75['push'](_0x4d3eaf['createRange'](_0x2fac8d,_0x17d00a['isObject'](_0x5daaac)?_0x4d3eaf['createPositionAfter'](_0x5daaac):_0x4d3eaf['createPositionAt'](_0x5daaac,'end'))),_0x2fac8d=null),_0x590839++;}return _0x2e1b75;}function on(_0xd51af0,_0x48b824,_0x2929c9){if(!_0x2929c9)return!0x1;const _0x5648e0=_0xd51af0['createPositionAfter'](_0x48b824),_0x2647f0=_0xd51af0['createPositionBefore'](_0x2929c9);return _0x5648e0['isTouching'](_0x2647f0);}function rs(_0xd1e603,_0x529330,_0x29c997){for(;_0x29c997['length'];){const _0x4d70cf=_0x29c997['splice'](0x0,0x64);_0xd1e603['change'](()=>{for(const _0x41cf5e of _0x4d70cf)_0x41cf5e['isInContent']&&_0x529330['execute'](_0x41cf5e['id']);});}}class R extends _0x18dae3{['_command'];['_suggestions'];constructor(_0x3854ce,_0x1bc950,_0x20aefa){super(_0x3854ce),this['_command']=_0x1bc950,this['_suggestions']=_0x20aefa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x21449b=Array['from'](this['_suggestions']['values']())['some'](_0x1880e4=>_0x1880e4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x21449b;}['execute'](){const _0x3b063f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3b5334 of _0x3b063f){const _0x28fdd7=_0x3b5334['getRanges']();if(!this['editor']['model']['canEditAt'](_0x28fdd7))return;}rs(this['editor']['model'],this['_command'],_0x3b063f);}}class E extends _0x18dae3{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x306f2e,_0x3fae93,_0x5d395f){super(_0x306f2e),this['_command']=_0x3fae93,this['_suggestions']=_0x5d395f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x126018=this['editor']['model']['document']['selection'],_0x2c0621=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xcb2b20,_0x40b2bb){const _0x5eca0a=Array['from'](_0xcb2b20['getRanges']()),_0x8aa413=new Set();for(const _0x743f35 of _0x40b2bb)if(_0x743f35['isInContent']){for(const _0x16614c of _0x5eca0a)for(const _0x4b2c56 of _0x743f35['getRanges']())(_0x16614c['isIntersecting'](_0x4b2c56)||_0xcb2b20['isCollapsed']&&!_0x743f35['isMultiRange']&&_0x743f35['next']&&_0x4b2c56['end']['isTouching'](_0x16614c['start']))&&_0x8aa413['add'](_0x743f35);}return _0x8aa413;}(_0x126018,_0x2c0621),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x60457=ts(Array['from'](this['_selectedSuggestions']));for(const _0x49787c of _0x60457){const _0xb3787a=_0x49787c['getRanges']();if(!this['editor']['model']['canEditAt'](_0xb3787a))return;}rs(this['editor']['model'],this['_command'],_0x60457);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x39e58d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x22d962,_0x5d7fbf){super(),this['id']=_0x5d7fbf['id'],this['type']=_0x5d7fbf['type'],this['subType']=_0x5d7fbf['subType']||null,this['author']=_0x5d7fbf['author'],this['creator']=_0x5d7fbf['creator']||_0x5d7fbf['author'],this['isExternal']=Boolean(_0x5d7fbf['attributes']&&_0x5d7fbf['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5d7fbf['originalSuggestionId']||null,this['_model']=_0x22d962,this['_onAccept']=_0x5d7fbf['onAccept'],this['_onDiscard']=_0x5d7fbf['onDiscard'],this['_onAttributesChange']=_0x5d7fbf['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5d7fbf['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 _0x35cde2=this;for(;_0x35cde2['previous'];)_0x35cde2=_0x35cde2['previous'];return _0x35cde2;}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'](_0x16e55a){this['_markerNames']['add'](_0x16e55a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x6bf42c=>this['_model']['markers']['get'](_0x6bf42c))['filter'](_0x554b23=>_0x554b23);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x33842c=>{for(const _0x37b8da of this['getMarkers']())_0x33842c['removeMarker'](_0x37b8da);}),this['_markerNames']['clear']();}['removeMarker'](_0x41cedf){this['_model']['change'](_0xa7b404=>{_0xa7b404['removeMarker'](_0x41cedf);}),this['_markerNames']['delete'](_0x41cedf);}['addRange'](_0x3044ee){const _0x1c38d8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1c38d8),this['_model']['change'](_0x400de9=>{_0x400de9['addMarker'](_0x1c38d8,{'range':_0x3044ee,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xab0ac2){for(const _0x1f3784 of this['getRanges']())if(_0x1f3784['isIntersecting'](_0xab0ac2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x47ec5c=>_0x47ec5c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x57900d,_0x8b12ee)=>[..._0x57900d,..._0x8b12ee['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x496d0d=this['getRanges']();if(0x1!=_0x496d0d['length'])return null;const _0x1abdd2=_0x496d0d[0x0],_0x52ba0b=_0x1abdd2['start']['nodeAfter'],_0x465221=_0x1abdd2['end']['nodeBefore'];return _0x52ba0b instanceof _0x391178?_0x52ba0b!=_0x465221?null:_0x52ba0b: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 _0x5e441c=[];let _0x2c959a=this['head'];for(;_0x2c959a;)_0x5e441c['push'](_0x2c959a),_0x2c959a=_0x2c959a['next'];return _0x5e441c;}['setAttribute'](_0x11101a,_0x427a8d){const _0x480741=_0x53a7f5(this['attributes']);_0x49cd5f(_0x480741,_0x11101a,_0x427a8d),_0x4c5c2a(_0x480741,this['attributes'])||(this['attributes']=_0x480741,this['_onAttributesChange'](_0x480741));}['removeAttribute'](_0x28168e){const _0x26dc75=_0x53a7f5(this['attributes']);_0x589aff(_0x26dc75,_0x28168e),_0x4c5c2a(_0x26dc75,this['attributes'])||(this['attributes']=_0x26dc75,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 _0x281607()['substr'](0x1,0x5);}}function c(_0x5200b5,_0x70c588,_0x369ff2){const _0x3951a5=_0x5200b5['t'],t=_0x5200b5['t'];switch(_0x70c588){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x369ff2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x369ff2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x369ff2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x369ff2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x369ff2);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',_0x369ff2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x369ff2);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x369ff2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x369ff2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x369ff2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x369ff2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x369ff2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x369ff2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x369ff2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x369ff2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x369ff2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x369ff2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x369ff2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x369ff2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x369ff2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x369ff2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x369ff2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x369ff2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x369ff2);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x369ff2);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'},_0x369ff2);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x369ff2);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x369ff2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x369ff2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x369ff2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x369ff2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x369ff2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x369ff2);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'},_0x369ff2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x369ff2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x369ff2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x369ff2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x369ff2);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'},_0x369ff2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x369ff2);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'},_0x369ff2);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'},_0x369ff2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x369ff2);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'},_0x369ff2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x369ff2);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'},_0x369ff2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x369ff2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x369ff2);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x369ff2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x369ff2);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 _0x3951a5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x369ff2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3951a5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x369ff2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x369ff2);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x369ff2);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x369ff2);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x369ff2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x70c588;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1f6a0c,_0x227141){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1f6a0c,this['_locale']=_0x227141;}['getDescriptions'](_0x4c8a2d){const _0x132057=[],_0x1da77c=new Set(),_0x3e2802=new Set();for(let _0x481870=0x0;_0x481870<_0x4c8a2d['length'];_0x481870++){const _0x455938=_0x4c8a2d[_0x481870];if(!_0x455938['isInContent'])continue;const _0x2ef79c=this['_handleCustomCallbackDescription'](_0x455938);if(_0x2ef79c){if(null!=_0x455938['subType']){if(_0x1da77c['has'](_0x455938['subType']))continue;_0x1da77c['add'](_0x455938['subType']);}_0x132057['push'](_0x2ef79c);}else{if('attribute'!=_0x455938['type'])'insertion'!=_0x455938['type']&&'deletion'!=_0x455938['type']||this['_handleInsertRemoveSuggestionDescription'](_0x132057,_0x455938,_0x4c8a2d[_0x481870+0x1]);else{const _0x1588e1=_0x455938['data']['key'];if(_0x3e2802['has'](_0x1588e1))continue;_0x3e2802['add'](_0x455938['data']['key']),_0x1588e1==u?this['_handleRenameSuggestionDescription'](_0x132057,_0x455938):this['_handleAttributeSuggestionDescription'](_0x132057,_0x455938);}}}return this['_resolveDescriptionItems'](_0x132057);}['registerDescriptionCallback'](_0x16b786){this['_customCallbacks']['push'](_0x16b786);}['registerElementLabel'](_0x4754a3,_0x5eb874,_0x5520ea=_0x4512e8['normal']){'function'==typeof _0x4754a3?_0x1fd667(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4754a3,'label':_0x5eb874,'priority':_0x5520ea}):this['_itemLabels']['set'](_0x4754a3,_0x5eb874);}['registerAttributeLabel'](_0x4fc8b4,_0x6a03f2){this['_attributeLabels']['set'](_0x4fc8b4,_0x6a03f2);}['getItemLabel'](_0x1ff5d1,_0x22b0a5=0x1){let _0x13793a;for(const _0x306dba of this['_itemLabelsCallbacks'])if(_0x306dba['matchingCallback'](_0x1ff5d1)){_0x13793a=_0x306dba['label'];break;}return _0x13793a||(_0x13793a=this['_itemLabels']['get'](_0x1ff5d1['name'])),_0x13793a?_0x13793a(_0x22b0a5):0x1!==_0x22b0a5?_0x22b0a5+'\x20'+_0x1ff5d1['name']+'s':''+_0x1ff5d1['name'];}['_addDescriptionItems'](_0x37b746,_0x245f07){const _0x520711=_0x245f07['getFirstRange']()['getWalker'](),_0x1ebadb='insertion'==_0x245f07['type']?'add':'remove';for(const _0x5d6086 of _0x520711){const _0x19db8e=_0x5d6086['item'],_0x3c97ea=_0x37b746[_0x37b746['length']-0x1];if(_0x19db8e['is']('$textProxy'))_0x3c97ea&&_0x3c97ea['type']['indexOf']('Container')>-0x1&&_0x37b746['pop'](),_0x3c97ea&&'text'==_0x3c97ea['type']?_0x3c97ea[_0x1ebadb]+=_0x19db8e['data']:_0x37b746['push']({'type':'text','add':'add'==_0x1ebadb?_0x19db8e['data']:'','remove':'remove'==_0x1ebadb?_0x19db8e['data']:''});else{if(this['_schema']['isObject'](_0x19db8e)){const _0x5154c0=_0x19db8e;if(_0x3c97ea&&_0x3c97ea['type']['indexOf']('Container')>-0x1&&_0x37b746['pop'](),'elementEnd'==_0x5d6086['type'])continue;_0x3c97ea&&_0x3c97ea['type']==_0x1ebadb+'Object'&&_0x3c97ea['element']['name']==_0x5154c0['name']?_0x3c97ea['quantity']++:_0x37b746['push']({'type':_0x1ebadb+'Object','element':_0x5154c0,'quantity':0x1}),_0x520711['skip'](_0x488306=>!('elementEnd'==_0x488306['type']&&_0x488306['item']==_0x19db8e));}else{if(this['_schema']['checkChild'](_0x19db8e,'$text')||_0x19db8e['is']('element','softBreak')){const _0x5cfeb7=_0x19db8e;if('add'==_0x1ebadb&&'elementStart'==_0x5d6086['type']||'remove'==_0x1ebadb&&'elementEnd'==_0x5d6086['type'])continue;if(_0x3c97ea&&-0x1==_0x3c97ea['type']['indexOf']('Container')){'text'==_0x3c97ea['type']&&(_0x3c97ea[_0x1ebadb]+='\x0a');continue;}let _0x82fe89;if(_0x82fe89='add'==_0x1ebadb?_0x5cfeb7['nextSibling']&&!this['_schema']['isObject'](_0x5cfeb7['nextSibling'])?_0x5cfeb7['nextSibling']:null:_0x5cfeb7['previousSibling']&&!this['_schema']['isObject'](_0x5cfeb7['previousSibling'])?_0x5cfeb7['previousSibling']:null,_0x5cfeb7['isEmpty']||_0x82fe89&&_0x82fe89['isEmpty']){const _0x8d064c=_0x82fe89&&_0x82fe89['isEmpty']?_0x82fe89:_0x5cfeb7;_0x3c97ea&&_0x3c97ea['type']==_0x1ebadb+'EmptyContainer'&&_0x3c97ea['element']['name']==_0x8d064c['name']?_0x3c97ea['quantity']++:_0x37b746['push']({'type':_0x1ebadb+'EmptyContainer','element':_0x8d064c,'quantity':0x1});}else _0x37b746['push']({'type':_0x1ebadb+'Container','element':_0x5cfeb7});}}}}}['_resolveDescriptionItems'](_0x47823f){const _0x1f7d8f=this['_locale'],_0xc8b875=[],_0xb0d15e=[],_0x7af76f=[];for(const _0x47c022 of _0x47823f)switch(_0x47c022['type']){case'text':if(_0x47c022['add']=_0x47c022['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x47c022['remove']=_0x47c022['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x47c022['add']&&''!=_0x47c022['remove']){_0xc8b875['push']({'type':'replace','content':c(_0x1f7d8f,'REPLACE_TEXT',['\x22'+_0x47c022['remove']+'\x22','\x22'+_0x47c022['add']+'\x22'])});continue;}if(null!=_0x47c022['add']['match'](/^ +$/)){_0xc8b875['push']({'type':'insertion','content':c(_0x1f7d8f,'*Insert:*\x20%0',c(_0x1f7d8f,'ELEMENT_SPACE',_0x47c022['add']['length']))});continue;}if(null!=_0x47c022['remove']['match'](/^ +$/)){_0xc8b875['push']({'type':'deletion','content':c(_0x1f7d8f,'*Remove:*\x20%0',c(_0x1f7d8f,'ELEMENT_SPACE',_0x47c022['remove']['length']))});continue;}if(''!=_0x47c022['add']){_0xc8b875['push']({'type':'insertion','content':c(_0x1f7d8f,'*Insert:*\x20%0','\x22'+_0x47c022['add']+'\x22')});continue;}_0xc8b875['push']({'type':'deletion','content':c(_0x1f7d8f,'*Remove:*\x20%0','\x22'+_0x47c022['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xc8b875['push']({'type':'insertion','content':c(_0x1f7d8f,'*Insert:*\x20%0',this['getItemLabel'](_0x47c022['element'],_0x47c022['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xc8b875['push']({'type':'deletion','content':c(_0x1f7d8f,'*Remove:*\x20%0',this['getItemLabel'](_0x47c022['element'],_0x47c022['quantity']))});continue;case'addContainer':_0xc8b875['push']({'type':'insertion','content':c(_0x1f7d8f,'*Split:*\x20%0',this['getItemLabel'](_0x47c022['element'],_0x47c022['quantity']))});continue;case'removeContainer':_0xc8b875['push']({'type':'deletion','content':c(_0x1f7d8f,'*Merge:*\x20%0',this['getItemLabel'](_0x47c022['element'],_0x47c022['quantity']))});continue;case'addFormat':_0xb0d15e['push'](_0x47c022['key']);continue;case'removeFormat':_0x7af76f['push'](_0x47c022['key']);continue;default:_0xc8b875['push'](_0x47c022);}if(_0xb0d15e['length']){const _0x15d09b=_0xb0d15e['map'](_0x5d5479=>this['_attributeLabels']['has'](_0x5d5479)?this['_attributeLabels']['get'](_0x5d5479):_0x5d5479)['join'](',\x20');_0xc8b875['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x15d09b)});}if(_0x7af76f['length']){const _0x3c0051=_0x7af76f['map'](_0x334051=>this['_attributeLabels']['has'](_0x334051)?this['_attributeLabels']['get'](_0x334051):_0x334051)['join'](',\x20');_0xc8b875['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3c0051)});}return _0xc8b875;}['_handleCustomCallbackDescription'](_0x20ff81){for(const _0x102ac0 of this['_customCallbacks']){const _0x14c13e=_0x102ac0(_0x20ff81);if(_0x14c13e&&'type'in _0x14c13e)return _0x14c13e;}}['_handleAttributeSuggestionDescription'](_0x242d0f,_0x3c77e6){const _0x2c193f=_0x3c77e6['data'],_0x1d1df2=void 0x0===_0x2c193f['newValue']?'removeFormat':'addFormat';_0x242d0f['push']({'type':_0x1d1df2,'key':_0x2c193f['key']});}['_handleRenameSuggestionDescription'](_0x37793b,_0x4b8ead){_0x37793b['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4b8ead['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x50f90c,_0x5c826c,_0x121f29){if(this['_addDescriptionItems'](_0x50f90c,_0x5c826c),_0x121f29&&_0x121f29['getFirstRange']()&&!_0x5c826c['getFirstRange']()['end']['isEqual'](_0x121f29['getFirstRange']()['start'])){const _0x32e035=_0x50f90c[_0x50f90c['length']-0x1],_0x165f0b='insertion'==_0x5c826c['type']?'add':'remove';_0x32e035&&'text'==_0x32e035['type']&&(_0x32e035[_0x165f0b]+='\x0a');}}}class U extends _0x3b35c4{['afterInit'](){const _0x3ba846=this['editor'],_0x13ffdf=_0x3ba846['plugins']['get']('TrackChangesEditing');_0x3ba846['commands']['get']('showAIAssistant')&&_0x13ffdf['enableCommand']('showAIAssistant');}}class V extends _0x3b35c4{['afterInit'](){const _0x552374=this['editor'],_0xc6653e=_0x552374['locale'];if(!_0x552374['plugins']['has']('AlignmentEditing'))return;const _0x289721=_0x552374['plugins']['get']('TrackChangesEditing');_0x289721['enableDefaultAttributesIntegration']('alignment'),_0x289721['registerBlockAttribute']('alignment'),_0x289721['descriptionFactory']['registerAttributeLabel']('alignment',c(_0xc6653e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43254e=this['editor'],_0x2f9cdc=_0x43254e['locale'];_0x43254e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f7323=>{if('formatBlock'!=_0x3f7323['type'])return;const {data:_0x364a21}=_0x3f7323;if(_0x364a21&&'alignment'==_0x364a21['commandName']){const _0x4416a7=_0x364a21['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2f9cdc,'*Format:*\x20%0',function(_0x5b59c7){switch(_0x5b59c7){case'left':return c(_0x2f9cdc,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2f9cdc,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2f9cdc,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2f9cdc,'FORMAT_JUSTIFY_TEXT');}}(_0x4416a7))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3b35c4{['afterInit'](){const _0x3f4ff2=this['editor'],_0x270bac=_0x3f4ff2['plugins']['get']('TrackChangesEditing'),_0x10292e=_0x3f4ff2['locale'];for(const _0x2be8fa of Zt){if(!_0x3f4ff2['plugins']['has'](_0x2be8fa))continue;const _0x236b77=_0x2be8fa['slice'](0x0,-0x7)['toLowerCase'](),_0x104946='FORMAT_'+_0x236b77['toUpperCase']();_0x270bac['enableDefaultAttributesIntegration'](_0x236b77),_0x270bac['registerInlineAttribute'](_0x236b77),_0x270bac['descriptionFactory']['registerAttributeLabel'](_0x236b77,c(_0x10292e,_0x104946));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x349e6a=this['editor'],_0x19c901=_0x349e6a['locale'],_0x261217=_0x349e6a['plugins']['get']('TrackChangesEditing');function _0xa0337c(_0x44bb13,_0x37a3b9){_0x261217['descriptionFactory']['registerDescriptionCallback'](_0x766003=>{if('formatInline'!=_0x766003['type'])return;const {data:_0x6f194e}=_0x766003;return _0x6f194e&&_0x6f194e['commandName']===_0x44bb13?_0x6f194e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x19c901,'*Format:*\x20%0',_0x37a3b9)}:{'type':'format','content':c(_0x19c901,'*Remove\x20format:*\x20%0',_0x37a3b9)}:void 0x0;});}_0xa0337c('bold',c(_0x19c901,'FORMAT_BOLD')),_0xa0337c('italic',c(_0x19c901,'FORMAT_ITALIC')),_0xa0337c('underline',c(_0x19c901,'FORMAT_UNDERLINE')),_0xa0337c('code',c(_0x19c901,'FORMAT_CODE')),_0xa0337c('strikethrough',c(_0x19c901,'FORMAT_STRIKETHROUGH')),_0xa0337c('subscript',c(_0x19c901,'FORMAT_SUBSCRIPT')),_0xa0337c('superscript',c(_0x19c901,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3b35c4{['afterInit'](){const _0x130a04=this['editor'],_0x153093=_0x130a04['locale'];if(!_0x130a04['plugins']['has']('BlockQuoteEditing'))return;const _0x43aaa3=_0x130a04['plugins']['get']('TrackChangesEditing'),_0x52f762=this['editor']['commands']['get']('blockQuote');_0x43aaa3['enableCommand']('blockQuote',(_0x3ac311,_0x1b32d2={})=>{const _0x30b3ea=this['editor']['model']['document']['selection'],_0x5c6e39=_0x1b32d2&&void 0x0!==_0x1b32d2['forceValue']?_0x1b32d2['forceValue']:!_0x52f762['value'];let _0x18785e=[];if(_0x5c6e39){const _0x2a2f12=Array['from'](_0x30b3ea['getSelectedBlocks']())['filter'](_0x9ebaa=>oo(_0x9ebaa)||function(_0x520c0e,_0x1a0f8c){const _0x5ce209=_0x1a0f8c['checkChild'](_0x520c0e['parent'],'blockQuote'),_0x3c8db1=_0x1a0f8c['checkChild'](['$root','blockQuote'],_0x520c0e);return _0x5ce209&&_0x3c8db1;}(_0x9ebaa,this['editor']['model']['schema']));_0x18785e=to(_0x2a2f12,_0x130a04['model']);}else{const _0x22bff8=Array['from'](_0x30b3ea['getSelectedBlocks']())['filter'](_0x475f7c=>oo(_0x475f7c));_0x18785e=to(_0x22bff8,_0x130a04['model']);}_0x130a04['model']['change'](()=>{for(const _0x11b743 of _0x18785e)_0x43aaa3['markBlockFormat'](_0x11b743,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5c6e39}]});});}),_0x43aaa3['descriptionFactory']['registerDescriptionCallback'](_0x47894b=>{const {data:_0x3f3901}=_0x47894b;if(_0x3f3901&&'blockQuote'==_0x3f3901['commandName']){const _0x4ba1d7=c(_0x153093,'ELEMENT_BLOCK_QUOTE');return _0x3f3901['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x153093,'*Set\x20format:*\x20%0',_0x4ba1d7)}:{'type':'format','content':c(_0x153093,'*Remove\x20format:*\x20%0',_0x4ba1d7)};}});}}function oo(_0x496c36){return'blockQuote'==_0x496c36['parent']['name'];}class L extends _0x3b35c4{['afterInit'](){const _0x407559=this['editor'],_0x1dd698=_0x407559['locale'],_0x471956=_0x407559['plugins']['get']('TrackChangesEditing');_0x407559['plugins']['has']('BookmarkEditing')&&(_0x471956['enableCommand']('insertBookmark'),_0x471956['enableDefaultAttributesIntegration']('updateBookmark'),_0x471956['registerBlockAttribute']('bookmarkId'),_0x471956['descriptionFactory']['registerDescriptionCallback'](_0x2c4329=>{if('insertion'!=_0x2c4329['type']&&'deletion'!=_0x2c4329['type']&&'attribute'!=_0x2c4329['type'])return;const _0x5b98e3=_0x2c4329['getContainedElement']();if(null==_0x5b98e3)return;if(!_0x5b98e3['is']('element','bookmark'))return;const _0x5f027c=_0x5b98e3['getAttribute']('bookmarkId');if('insertion'==_0x2c4329['type'])return{'type':'insertion','content':c(_0x1dd698,'*Insert:*\x20%0','\x22'+_0x5f027c+'\x22\x20'+c(_0x1dd698,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2c4329['type'])return{'type':'deletion','content':c(_0x1dd698,'*Remove:*\x20%0','\x22'+_0x5f027c+'\x22\x20'+c(_0x1dd698,'ELEMENT_BOOKMARK'))};const {data:_0x277624}=_0x2c4329;if(!_0x277624||'bookmarkId'!=_0x277624['key'])return;return{'type':'format','content':c(_0x1dd698,'*Set\x20bookmark:*\x20%0','\x22'+_0x277624['newValue']+'\x22')};}));}}class J extends _0x3b35c4{['afterInit'](){const _0x454358=this['editor'];_0x454358['plugins']['has']('CaseChange')&&(_0x454358['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x454358['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x454358['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3b35c4{['afterInit'](){const _0x49fb58=this['editor'];_0x49fb58['commands']['get']('ckbox')&&_0x49fb58['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3b35c4{['afterInit'](){const _0x819867=this['editor'];if(!_0x819867['plugins']['has']('CodeBlock'))return;const _0x255939=_0x819867['plugins']['get']('TrackChangesEditing'),_0x1778cb=_0x819867['locale'],_0x56509a=_0x819867['config']['get']('codeBlock')['languages'],_0x45cbcf=_0x819867['commands']['get']('codeBlock');_0x255939['enableCommand']('indentCodeBlock'),_0x255939['enableCommand']('outdentCodeBlock'),_0x255939['enableCommand']('codeBlock',(_0x4277aa,_0x28fb95={})=>{const _0x5887c7=_0x819867['model'],_0x20a95f=_0x819867['model']['document']['selection'],_0xa68581=_0x28fb95&&void 0x0!==_0x28fb95['forceValue']?_0x28fb95['forceValue']:!_0x45cbcf['value'];let _0x4e348c;_0x28fb95['language']||(_0x28fb95['language']=_0x56509a[0x0]['language']),_0x4e348c=_0xa68581?Array['from'](_0x20a95f['getSelectedBlocks']())['filter'](_0x5a8a1f=>eo(_0x5a8a1f)||function(_0x2fd3d7,_0x126d42){if(_0x2fd3d7['is']('rootElement')||_0x126d42['isLimit'](_0x2fd3d7))return!0x1;return _0x126d42['checkChild'](_0x2fd3d7['parent'],'codeBlock');}(_0x5a8a1f,_0x5887c7['schema'])):Array['from'](_0x20a95f['getSelectedBlocks']())['filter'](_0xcc879c=>eo(_0xcc879c));const _0x3e61d6=to(_0x4e348c,_0x5887c7);_0x5887c7['change'](()=>{for(const _0x4a3998 of _0x3e61d6)_0x255939['markBlockFormat'](_0x4a3998,{'commandName':'codeBlock','commandParams':[{..._0x28fb95,'forceValue':_0xa68581}],'formatGroupId':'blockName'});});}),(_0x255939['descriptionFactory']['registerElementLabel']('codeBlock',_0x4e7ed9=>c(_0x1778cb,'ELEMENT_CODE_BLOCK',_0x4e7ed9)),_0x255939['descriptionFactory']['registerDescriptionCallback'](_0x1323fb=>{if('formatBlock'!=_0x1323fb['type'])return;const _0x46fec5=_0x1778cb['t'],{data:_0xd9ecc4}=_0x1323fb;if(!_0xd9ecc4||'codeBlock'!=_0xd9ecc4['commandName'])return;const _0x49d68a=_0xd9ecc4['commandParams'][0x0]['language'],_0xbe7e2c=_0x46fec5(_0x56509a['find'](_0xf515a6=>_0xf515a6['language']===_0x49d68a)['label'])['toLowerCase']();return _0xd9ecc4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1778cb,'*Set\x20format:*\x20%0',c(_0x1778cb,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xbe7e2c+')')}:{'type':'format','content':c(_0x1778cb,'*Remove\x20format:*\x20%0',c(_0x1778cb,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2a2b30){return'codeBlock'==_0x2a2b30['name'];}class q extends _0x3b35c4{['afterInit'](){const _0x55ce64=this['editor'];if(!_0x55ce64['plugins']['has']('CommentsEditing'))return;_0x55ce64['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2f048b,_0x408e9f,_0x33e0d5){const _0x129f53=[];for(const _0x54779e of _0x408e9f['getItems']())_0x54779e['hasAttribute'](_0x2f048b)&&_0x129f53['push'](_0x33e0d5['createRangeOn'](_0x54779e));return _0x129f53;}function Fe(_0x3cb16a,_0x25f588,{showActiveMarker:_0xe3a831=!0x0}={}){const _0x19282f=_0x3cb16a['plugins']['get']('TrackChangesEditing');return(_0x55cb9b,_0x1abc52,_0x27cc92)=>{if(!_0x27cc92['consumable']['test'](_0x1abc52['markerRange'],_0x55cb9b['name']))return;const _0x2ebce6=_0x1abc52['markerRange']['getWalker'](),_0x41b1bc=_0x1abc52['markerRange']['start'],_0x161a38=_0x3cb16a['model']['schema'];let _0x114a64=null,_0x186332=null,_0x300b5d=!0x1,_0x3de5b9=!0x1;for(const _0x77ff9a of _0x2ebce6){const _0x568c14=_0x77ff9a['item'];_0x300b5d=_0x300b5d||_0x161a38['isContent'](_0x568c14);const _0x198124=_0x27cc92['mapper']['toViewElement'](_0x568c14);if(_0x198124&&_0x198124['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x77ff9a['type']&&(_0x161a38['isBlock'](_0x568c14)&&!_0x161a38['isLimit'](_0x568c14)&&(_0x568c14['nextSibling']||_0x41b1bc['isAtEnd']?_0x114a64&&_0x114a64['parent']==_0x568c14||(_0x114a64=_0x568c14,_0x473c56(_0x77ff9a['previousPosition']),_0x3de5b9=!0x0):_0x186332=_0x186332||_0x77ff9a['previousPosition']));}function _0x473c56(_0x3e20af){const {id:_0x5791ea,authorId:_0x16dbfa}=_0x19282f['_splitMarkerName'](_0x1abc52['markerName']),_0x121c3d=_0x27cc92['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25f588,'data-suggestion':_0x5791ea,'data-author-id':_0x16dbfa}),_0x5b639c=_0x27cc92['mapper']['toViewPosition'](_0x3e20af);_0xe3a831&&_0x19282f['activeMarkers']['includes'](_0x1abc52['markerName'])&&_0x27cc92['writer']['addClass']('ck-suggestion-marker--active',_0x121c3d),_0x27cc92['writer']['insert'](_0x5b639c,_0x121c3d),_0x27cc92['mapper']['bindElementToMarker'](_0x121c3d,_0x1abc52['markerName']);}_0x300b5d||_0x3de5b9||!_0x186332||_0x473c56(_0x186332);};}class z extends _0x3b35c4{static get['requires'](){return[_0x4d99a2];}['init'](){const _0x593bd9=this['editor'],_0x2a8d4d=_0x593bd9['plugins']['get']('TrackChangesEditing');_0x2a8d4d['enableCommand']('delete');const _0x33509a=_0x593bd9['commands']['get']('deleteForward');_0x2a8d4d['enableCommand']('deleteForward',(_0x2eb172,_0x4b25f5={})=>{const _0x4bc4e3=_0x593bd9['model']['createSelection'](_0x593bd9['model']['document']['selection']);_0x4bc4e3['isCollapsed']&&_0x593bd9['model']['modifySelection'](_0x4bc4e3,{'direction':'forward','unit':_0x4b25f5['unit']});const _0x295ae2=_0x4bc4e3['getFirstRange'](),_0xab38ad=_0x268add['fromRange'](_0x295ae2);let _0x14a2ee;_0x2eb172(_0x4b25f5),_0x14a2ee='$graveyard'==_0xab38ad['root']['rootName']?_0x593bd9['model']['createRange'](_0x295ae2['start']):_0x593bd9['model']['createRange'](_0xab38ad['start'],_0xab38ad['end']),_0xab38ad['detach'](),_0x593bd9['model']['enqueueChange'](_0x33509a['buffer']['batch'],_0x3dd417=>{_0x33509a['buffer']['lock'](),_0x3dd417['setSelection'](_0x3dd417['createRange'](_0x14a2ee['end'])),_0x33509a['buffer']['unlock']();});}),_0x593bd9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x593bd9,'merge'),{'priority':'high'}),_0x593bd9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x24f660,_0x385d1f,_0x146549)=>{_0x146549['options']['showSuggestionHighlights']&&Fe(_0x593bd9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x24f660,_0x385d1f,_0x146549);},{'priority':'high'}),_0x593bd9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3f25f9,_0x4b94cd,_0x387497)=>{const _0x37168e=_0x387497['mapper']['markerNameToElements'](_0x4b94cd['markerName']);if(_0x37168e){for(const _0x222c2e of _0x37168e)_0x222c2e['is']('uiElement')&&(_0x387497['mapper']['unbindElementFromMarkerName'](_0x222c2e,_0x4b94cd['markerName']),_0x387497['writer']['remove'](_0x222c2e));}},{'priority':'high'});}}class W extends _0x3b35c4{['afterInit'](){const _0x6420f0=this['editor'];if(!_0x6420f0['plugins']['has']('ListEditing'))return;const _0xc0bcb7=_0x6420f0['locale'],_0x265e7d=_0x6420f0['plugins']['get']('TrackChangesEditing'),_0x62af97=_0x6420f0['plugins']['has']('TodoListEditing'),_0x2e805b=!!_0x6420f0['config']['get']('list.multiBlock');function _0x1a59ab(_0x45b4e4){return{'type':'format','content':''+c(_0xc0bcb7,'*Set\x20format:*\x20%0',_0x45b4e4)};}function _0x1abc00(_0x146bd3){return{'type':'format','content':''+c(_0xc0bcb7,'*Remove\x20format:*\x20%0',_0x146bd3)};}_0x265e7d['enableDefaultAttributesIntegration']('numberedList'),_0x265e7d['enableDefaultAttributesIntegration']('bulletedList'),_0x265e7d['enableDefaultAttributesIntegration']('customNumberedList'),_0x265e7d['enableDefaultAttributesIntegration']('customBulletedList'),_0x265e7d['enableDefaultAttributesIntegration']('indentList'),_0x265e7d['enableDefaultAttributesIntegration']('outdentList'),_0x265e7d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x265e7d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x265e7d['registerBlockAttribute']('listItemId'),_0x265e7d['registerBlockAttribute']('listType'),_0x265e7d['registerBlockAttribute']('listIndent'),_0x2e805b&&(_0x265e7d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x265e7d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x62af97&&(_0x265e7d['enableDefaultAttributesIntegration']('todoList'),_0x265e7d['enableDefaultAttributesIntegration']('checkTodoList'),_0x265e7d['registerBlockAttribute']('todoListChecked'),_0x265e7d['descriptionFactory']['registerDescriptionCallback'](_0x2be46e=>{const {data:_0xfc826c}=_0x2be46e;if(_0xfc826c&&'todoListChecked'==_0xfc826c['key'])return{'type':'format','content':_0xfc826c['newValue']?c(_0xc0bcb7,'*Check\x20item*'):c(_0xc0bcb7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x8e4420=>{if(_0x8e4420['batch']['isUndo'])return!0x1;let _0x21e57b=!0x1;const _0x127bed=_0x265e7d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7e0b12=>'todoListChecked'===_0x265e7d['_getAttributeKey'](_0x7e0b12));for(const _0x3e82a7 of _0x127bed){'todo'!=_0x3e82a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x265e7d['_findSuggestions'](_0x3e82a7['getFirstRange'](),'attribute')['find'](_0x583446=>'listType'===_0x265e7d['_getAttributeKey'](_0x583446['suggestion']))||(_0x8e4420['removeMarker'](_0x3e82a7['getFirstMarker']()),_0x21e57b=!0x0));}return _0x21e57b;})),_0x265e7d['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xc0bcb7,'FORMAT_INDENT'));const _0x58ba7f={'type':'format','content':''};_0x265e7d['descriptionFactory']['registerDescriptionCallback'](_0x1d33c3=>{const {data:_0x430d36}=_0x1d33c3;if(!_0x430d36||'listType'!=_0x430d36['key'])return;let _0x31dec8=_0x1d33c3['head'];for(;_0x31dec8;){if(_0x31dec8['data']&&(('listStyle'==_0x31dec8['data']['key']||'listMarkerStyle'==_0x31dec8['data']['key'])&&(_0x31dec8['data']['newValue']&&'default'!=_0x31dec8['data']['newValue']||'default'!=_0x31dec8['data']['oldValue']&&!_0x430d36['newValue'])||!_0x2e805b&&_0x31dec8['data']['key']==u))return _0x58ba7f;_0x31dec8=_0x31dec8['next'];}if(null==_0x430d36['newValue'])switch(_0x430d36['oldValue']){case'bulleted':return _0x1abc00(c(_0xc0bcb7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1abc00(c(_0xc0bcb7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1abc00(c(_0xc0bcb7,'ELEMENT_TODO_LIST'));}switch(_0x430d36['newValue']){case'bulleted':return _0x1a59ab(c(_0xc0bcb7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a59ab(c(_0xc0bcb7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a59ab(c(_0xc0bcb7,'ELEMENT_TODO_LIST'));}}),_0x265e7d['descriptionFactory']['registerDescriptionCallback'](_0x1adb85=>{const {data:_0x30c76c}=_0x1adb85;if(_0x30c76c&&'listIndent'==_0x30c76c['key'])return null==_0x30c76c['newValue']||null==_0x30c76c['oldValue']&&0x0==_0x30c76c['newValue']?_0x58ba7f:void 0x0;}),_0x265e7d['descriptionFactory']['registerDescriptionCallback'](_0x38e0bc=>{if('attribute'!=_0x38e0bc['type'])return;const {data:_0x2abb58}=_0x38e0bc;if(!_0x2abb58||'listItemId'!=_0x2abb58['key'])return;const _0x2a0659=Te(_0x38e0bc);return'newValue'==_0x2a0659?{'type':'format','content':c(_0xc0bcb7,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2a0659?{'type':'format','content':c(_0xc0bcb7,'*Split:*\x20list\x20item')}:_0x58ba7f;}),_0x6420f0['model']['document']['registerPostFixer'](_0x330061=>this['listItemIdFixer'](_0x330061)),_0x6420f0['model']['document']['registerPostFixer'](_0x267303=>this['noTrackChangesFixer'](_0x267303)),_0x6420f0['model']['document']['on']('change:data',(_0x17ee33,_0x380a98)=>{if(_0x380a98['isUndo']||!_0x380a98['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x322ea6){if(_0x322ea6['batch']['isUndo']||!_0x322ea6['batch']['isLocal'])return!0x1;let _0x34abbe=!0x1;const _0x5825d8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x596c7a=>_0x596c7a['data']&&'listItemId'==_0x596c7a['data']['key'])['filter'](_0x3e39eb=>_0x3e39eb['data']['newValue']&&_0x3e39eb['data']['oldValue']);for(const _0x307ecf of _0x5825d8)Te(_0x307ecf)||(_0x322ea6['removeMarker'](_0x307ecf['getFirstMarker']()),_0x34abbe=!0x0);return _0x34abbe;}['noTrackChangesFixer'](_0x5f028d){if(_0x5f028d['batch']['isUndo']||!_0x5f028d['batch']['isLocal'])return!0x1;const _0x56940b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56940b['trackChangesCommand']['value'])return!0x1;let _0x5b1b11=!0x1;const _0x19600e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x309e5d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x277563=>'attribute'==_0x277563['type'])['filter'](_0x166cf7=>_0x19600e['includes'](_0x166cf7['attributeKey']));if(0x0==_0x309e5d['length'])return _0x5b1b11;for(const _0x2d0f44 of _0x309e5d){const _0x501069=_0x56940b['_findSuggestions'](_0x2d0f44['range'],'attribute')['filter'](_0x5543b8=>!_0x5543b8['meta']['isNextTo'])['map'](_0x3135bf=>_0x3135bf['suggestion'])['filter'](_0x4d0139=>{const _0x6a84c5=_0x56940b['_getAttributeKey'](_0x4d0139);return _0x19600e['includes'](_0x6a84c5);});if(_0x501069['length']){for(const _0x4ef973 of _0x501069)_0x5f028d['removeMarker'](_0x4ef973['getFirstMarker']());_0x5b1b11=!0x0;}}return _0x5b1b11;}['assureChains'](){const _0x2ef3fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42a9aa=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xd830e;const _0x3f63f6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5f55d1=>{if(_0x5f55d1['data']['oldRange']||!_0x5f55d1['data']['newRange'])return null;if(!_0x5f55d1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5489eb}=_0x2ef3fd['_splitMarkerName'](_0x5f55d1['name']);if(!_0x2ef3fd['hasSuggestion'](_0x5489eb))return null;const _0x3b1307=_0x2ef3fd['getSuggestion'](_0x5489eb);return _0x42a9aa['includes'](_0x3b1307['data']['key']);})['map'](_0x2a99fb=>{const {id:_0x168a06}=_0x2ef3fd['_splitMarkerName'](_0x2a99fb['name']),_0x5a0b90=_0x2ef3fd['getSuggestion'](_0x168a06);return _0xd830e=_0x5a0b90['attributes']['groupId'],_0x5a0b90['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3f63f6['size'])return;const _0x1b368a=_0x2ef3fd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26a096=>'attribute'==_0x26a096['type']&&_0x26a096['data']&&_0x42a9aa['includes'](_0x26a096['data']['key'])&&_0x26a096['attributes']['groupId']!=_0xd830e)['map'](_0x188ecc=>({'listItem':_0x188ecc['getFirstRange']()['start']['nodeAfter'],'groupId':_0x188ecc['attributes']['groupId']})),_0x4bf410=new Set();for(const {groupId:_0x2bbb28,listItem:_0x24f4ea}of _0x1b368a)_0x3f63f6['has'](_0x24f4ea)&&_0x4bf410['add'](_0x2bbb28);for(const _0x3b24e7 of _0x2ef3fd['getSuggestions']())_0x4bf410['has'](_0x3b24e7['attributes']['groupId'])&&_0x3b24e7['setAttribute']('groupId',_0xd830e);}['_supportLegacySuggestions'](){const _0x8d614d=this['editor'],_0x13cf95=_0x8d614d['locale'],_0x2707ec=_0x8d614d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2707ec['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x516a96,_0x1c7dfe){const _0x5333ae=[];for(let _0x32e5ae of _0x516a96)_0x32e5ae['start']['nodeAfter']===_0x32e5ae['end']['parent']&&(_0x32e5ae=_0x8d614d['model']['createRange'](_0x8d614d['model']['createPositionAt'](_0x32e5ae['start']['nodeAfter'],0x0))),_0x5333ae['push'](_0x32e5ae);_0x8d614d['model']['change'](_0x1a7708=>{const _0x41cecd=_0x8d614d['model']['document']['selection'],_0x195e66=Array['from'](_0x41cecd['getRanges']())['map'](_0x4e573d=>_0x268add['fromRange'](_0x4e573d));_0x1a7708['setSelection'](_0x5333ae),_0x8d614d['commands']['get'](_0x1c7dfe['commandName'])['refresh'](),_0x1c7dfe['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x8d614d['execute'](_0x1c7dfe['commandName'],..._0x1c7dfe['commandParams']),_0x1a7708['setSelection'](_0x195e66);for(const _0xebec25 of _0x195e66)_0xebec25['detach']();});}),_0x2707ec['descriptionFactory']['registerElementLabel'](function(_0x353619){const _0xc25e81=!_0x8d614d['model']['schema']['isObject'](_0x353619),_0x296527=_0x353619['previousSibling'],_0x17a9ac=_0x353619['nextSibling'],_0x127b73=_0x353619['getAttribute']('listItemId'),_0x5510a7=!_0x296527||_0x296527['getAttribute']('listItemId')!==_0x127b73,_0x53ae95=!_0x17a9ac||_0x17a9ac['getAttribute']('listItemId')!==_0x127b73;return _0xc25e81&&Boolean(_0x127b73)&&_0x5510a7&&_0x53ae95;},_0xf1ff09=>c(_0x13cf95,'ELEMENT_LIST_ITEM',_0xf1ff09));}['_registerLegacyDescription'](){const _0x45f487=this['editor'],_0x39fd83=_0x45f487['locale'];function _0x6ca9c7(_0x38df95){const _0x3dd35e=_0x45f487['commands']['get']('bulletedList')['value'],_0x4b68dd=_0x45f487['commands']['get']('numberedList')['value'];return'numberedList'===_0x38df95?_0x3dd35e:_0x4b68dd;}_0x45f487['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x6bb83c){if('formatBlock'!=_0x6bb83c['type'])return;const {data:_0x35dd43}=_0x6bb83c;if(!_0x35dd43)return;let _0x204c0e,_0xa38538,_0x2ebd94,_0x4b5e23;switch(_0x35dd43['commandName']){case'bulletedList':_0x2ebd94=_0x35dd43['commandParams'][0x0]['forceValue'],_0x4b5e23=_0x6ca9c7(_0x35dd43['commandName']),_0x204c0e=_0x2ebd94?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4b5e23&&_0x45f487['config']['get']('list.multiBlock')||(_0x204c0e='*Change\x20to:*\x20%0'),_0xa38538={'type':'format','content':c(_0x39fd83,_0x204c0e,c(_0x39fd83,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2ebd94=_0x35dd43['commandParams'][0x0]['forceValue'],_0x4b5e23=_0x6ca9c7(_0x35dd43['commandName']),_0x204c0e=_0x2ebd94?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4b5e23&&_0x45f487['config']['get']('list.multiBlock')||(_0x204c0e='*Change\x20to:*\x20%0'),_0xa38538={'type':'format','content':c(_0x39fd83,_0x204c0e,c(_0x39fd83,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x204c0e='*Indent:*\x20%0',_0xa38538={'type':'format','content':c(_0x39fd83,_0x204c0e,c(_0x39fd83,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x204c0e=function(_0x282c6d){const _0x3e1625=_0x282c6d['getFirstRange']();let _0x4b63d2=_0x3e1625['start']['nodeAfter'];for(;_0x4b63d2&&_0x3e1625['containsItem'](_0x4b63d2);){if(_0x4b63d2['getAttribute']('listIndent')>0x0)return!0x1;_0x4b63d2=_0x4b63d2['nextSibling'];}return!0x0;}(_0x6bb83c)?c(_0x39fd83,'*Format:*\x20remove\x20from\x20%0',c(_0x39fd83,function(_0xd0fafb){return'ELEMENT_'+_0xd0fafb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x6bb83c))):c(_0x39fd83,'*Outdent:*\x20%0',c(_0x39fd83,'ELEMENT_LIST_ITEM')),_0xa38538={'type':'format','content':_0x204c0e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x35dd43['multipleBlocks']&&(_0x204c0e='*Merge:*\x20%0',_0xa38538={'type':'deletion','content':c(_0x39fd83,_0x204c0e,c(_0x39fd83,'ELEMENT_LIST_ITEM'))});}return _0xa38538;});}}function Te(_0x3eeb7d){let _0x3e3243=_0x3eeb7d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3e3243;){const _0x4e5c3b=_0x3e3243['getAttribute']('listItemId');if(!_0x4e5c3b)return!0x1;if(_0x4e5c3b==_0x3eeb7d['data']['newValue'])return'newValue';if(_0x4e5c3b==_0x3eeb7d['data']['oldValue'])return'oldValue';_0x3e3243=_0x3e3243['previousSibling'];}return!0x1;}class Se extends _0x3b35c4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x293da7=this['editor']['config']['get']('list.properties'),_0x4cba7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x293da7['styles']&&(_0x4cba7d['enableDefaultAttributesIntegration']('listStyle'),_0x4cba7d['registerBlockAttribute']('listStyle')),_0x293da7['reversed']&&(_0x4cba7d['enableDefaultAttributesIntegration']('listReversed'),_0x4cba7d['registerBlockAttribute']('listReversed')),_0x293da7['startIndex']&&(_0x4cba7d['enableDefaultAttributesIntegration']('listStart'),_0x4cba7d['registerBlockAttribute']('listStart'));const _0x1e3066={'type':'format','content':''};_0x4cba7d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2e3caf=this['editor']['locale'];_0x4cba7d['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2e3caf,'FORMAT_LIST_REVERSED')),_0x4cba7d['descriptionFactory']['registerDescriptionCallback'](_0x1f14f0=>{const {data:_0x2b5008}=_0x1f14f0;if(_0x2b5008&&'listReversed'==_0x2b5008['key'])return null==_0x2b5008['newValue']||0x0==_0x2b5008['newValue']&&null==_0x2b5008['oldValue']?_0x1e3066:void 0x0;}),_0x4cba7d['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2e3caf,'FORMAT_LIST_START')),_0x4cba7d['descriptionFactory']['registerDescriptionCallback'](_0x4cf9ad=>{const {data:_0xffcf57}=_0x4cf9ad;if(_0xffcf57&&'listStart'==_0xffcf57['key'])return null==_0xffcf57['newValue']||0x1==_0xffcf57['newValue']&&null==_0xffcf57['oldValue']?_0x1e3066:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x35634e=>{if(_0x35634e['batch']['isUndo'])return!0x1;let _0x26a2d5=!0x1;const _0x3877c=_0x4cba7d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41effd=>{const _0x13d944=_0x4cba7d['_getAttributeKey'](_0x41effd);return'listStart'==_0x13d944||'listReversed'==_0x13d944;});for(const _0xfe7c7b of _0x3877c){const _0x45e84d=_0xfe7c7b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x45e84d||'customNumbered'==_0x45e84d)continue;_0x4cba7d['_findSuggestions'](_0xfe7c7b['getFirstRange'](),'attribute')['find'](_0xc20c93=>'listType'==_0x4cba7d['_getAttributeKey'](_0xc20c93['suggestion']))||(_0x35634e['removeMarker'](_0xfe7c7b['getFirstMarker']()),_0x26a2d5=!0x0);}return _0x26a2d5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xfedfd2){const _0x4f5757=this['editor']['locale'],{data:_0xb7b127}=_0xfedfd2,_0xb7c001={'type':'format','content':''};if(!_0xb7b127||'listStyle'!=_0xb7b127['key'])return;if(!_0xb7b127['oldValue'])return'default'==_0xb7b127['newValue']?_0xb7c001:{'type':'format','content':''+c(_0x4f5757,'*Set\x20format:*\x20%0',c(_0x4f5757,this['_getTranslationKeyForListStyle'](_0xb7b127['newValue'])))};if(!_0xb7b127['newValue']){if('default'==_0xb7b127['oldValue'])return _0xb7c001;let _0x5a36c8=_0xfedfd2['head'];for(;_0x5a36c8;){if(_0x5a36c8['data']&&'listType'==_0x5a36c8['data']['key']&&_0x5a36c8['data']['newValue'])return _0xb7c001;_0x5a36c8=_0x5a36c8['next'];}return{'type':'format','content':''+c(_0x4f5757,'*Remove\x20format:*\x20%0',c(_0x4f5757,this['_getTranslationKeyForListStyle'](_0xb7b127['oldValue'])))};}if('default'!=_0xb7b127['newValue'])return{'type':'format','content':''+c(_0x4f5757,'*Set\x20format:*\x20%0',c(_0x4f5757,this['_getTranslationKeyForListStyle'](_0xb7b127['newValue'])))};let _0x3373d0=_0xfedfd2['head'];for(;_0x3373d0;){if(_0x3373d0['data']&&'listType'==_0x3373d0['data']['key']&&_0x3373d0['data']['newValue']&&_0x3373d0['data']['oldValue'])return _0xb7c001;_0x3373d0=_0x3373d0['next'];}return{'type':'format','content':c(_0x4f5757,'*Set\x20format:*\x20%0',c(_0x4f5757,'ELEMENT_'+_0xfedfd2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1144e3=this['editor'],_0x14a211=_0x1144e3['locale'];_0x1144e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd65345=>{if('formatBlock'!=_0xd65345['type'])return;const {data:_0x18098b}=_0xd65345;if(!_0x18098b)return;let _0x436f6c,_0x52c39b;switch(_0x18098b['commandName']){case'listStyle':_0x436f6c='*Change\x20to:*\x20%0',_0x52c39b={'type':'format','content':c(_0x14a211,_0x436f6c,c(_0x14a211,this['_getTranslationKeyForListStyle'](_0x18098b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x436f6c=_0x18098b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x52c39b={'type':'format','content':c(_0x14a211,_0x436f6c)};break;case'listStart':_0x436f6c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x52c39b={'type':'format','content':c(_0x14a211,_0x436f6c,_0x18098b['commandParams'][0x0]['startIndex'])};}return _0x52c39b;});}['_getTranslationKeyForListStyle'](_0x424a77){return'ELEMENT_'+function(_0x3fa799){if(_e['includes'](_0x3fa799))return'bulleted';if(Re['includes'](_0x3fa799))return'numbered';return null;}(_0x424a77)['toUpperCase']()+'_LIST_'+_0x424a77['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3b35c4{['afterInit'](){const _0x48af4b=this['editor'];_0x48af4b['commands']['get']('emoji')&&_0x48af4b['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3b35c4{static get['requires'](){return[_0x1af609];}['init'](){const _0x827c70=this['editor'],_0x79f548=_0x827c70['plugins']['get']('TrackChangesEditing'),_0x38bd4f=_0x827c70['commands']['get']('enter');_0x79f548['enableCommand']('enter',()=>{_0x827c70['model']['change'](_0x43a595=>{const _0x282ecb=_0x827c70['model']['document']['selection'],_0x8e7a1b=_0x282ecb['getFirstPosition'](),_0x584198=_0x268add['fromRange'](_0x282ecb['getFirstRange']());if(_0x38bd4f['enterBlock'](_0x43a595)){const _0x446eca=_0x827c70['model']['createPositionAt'](_0x8e7a1b['parent']['nextSibling'],0x0),_0x36af36=_0x43a595['createRange'](_0x8e7a1b,_0x446eca);_0x79f548['markInsertion'](_0x36af36);}else _0x43a595['setSelection'](_0x43a595['createRange'](_0x584198['end']));_0x584198['detach'](),_0x38bd4f['fire']('afterExecute',{'writer':_0x43a595});});}),_0x827c70['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x827c70,'split'),{'priority':'high'}),_0x827c70['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xb5c121,_0x10cc57,_0x217a0b)=>{const _0x1098fb=_0x217a0b['mapper']['markerNameToElements'](_0x10cc57['markerName']);if(_0x1098fb){for(const _0x2e7f4a of _0x1098fb)_0x2e7f4a['hasClass']('ck-suggestion-marker-split')&&(_0x217a0b['mapper']['unbindElementFromMarkerName'](_0x2e7f4a,_0x10cc57['markerName']),_0x217a0b['writer']['remove'](_0x2e7f4a));}},{'priority':'high'}),_0x827c70['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2ffd58,_0x2f349a,_0x4013c3)=>{_0x4013c3['options']['showSuggestionHighlights']&&Fe(_0x827c70,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2ffd58,_0x2f349a,_0x4013c3);},{'priority':'high'});}}class Z extends _0x3b35c4{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x24ae32=this['editor']['plugins']['get']('TrackChangesEditing');_0x24ae32['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x24ae32['enableCommand']('findNext'),_0x24ae32['enableCommand']('findPrevious'),_0x24ae32['enableCommand']('replace'),_0x24ae32['enableCommand']('replaceAll');}['handleFindCommand'](_0x4fc4ea,_0x5ac4a3,_0x23a5d9={}){const _0x3ed75c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4fc4ea(_0x2bcbe2=>{let _0x20cfec=('string'==typeof _0x5ac4a3?_0x3ed75c['findByTextCallback'](_0x5ac4a3,_0x23a5d9):_0x5ac4a3)(_0x2bcbe2);Array['isArray'](_0x20cfec)&&(_0x20cfec={'results':_0x20cfec,'searchText':'string'==typeof _0x5ac4a3?_0x5ac4a3:''});const _0x5f15d1=_0x20cfec['results']['filter'](_0x1badc5=>!0x1===this['_isInDeletionRange'](_0x1badc5,_0x2bcbe2['item']));return{..._0x20cfec,'results':_0x5f15d1};},_0x23a5d9);}['_isInDeletionRange'](_0x46c44d,_0x5a5db4){const _0x408817=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a5db4,_0x46c44d['start']),this['editor']['model']['createPositionAt'](_0x5a5db4,_0x46c44d['end']));for(const _0x25f197 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x408817['getIntersection'](_0x25f197['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x3b35c4{['afterInit'](){const _0x340513=this['editor']['locale'],_0x2722c6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b6223,commandName:_0x28267a}of ro)this['editor']['plugins']['has'](_0x1b6223)&&(_0x2722c6['enableDefaultAttributesIntegration'](_0x28267a),_0x2722c6['registerInlineAttribute'](_0x28267a));_0x2722c6['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x340513,'FORMAT_FONT_SIZE')),_0x2722c6['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x340513,'FORMAT_FONT_FAMILY')),_0x2722c6['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x340513,'FORMAT_FONT_COLOR')),_0x2722c6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x340513,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c6782=this['editor'],_0x584707=_0x2c6782['locale'];_0x2c6782['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b8555=>{const _0x3bd054=_0x584707['t'];if('formatInline'!=_0x4b8555['type'])return;const {data:_0x573648}=_0x4b8555;if(null!=_0x573648){if('fontSize'==_0x573648['commandName']){const _0x17e5ca=_0x573648['commandParams'][0x0]['value'];if(_0x17e5ca){const _0x5dbc53=_0x3bd054(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x35828a=>_0x35828a['model']==_0x17e5ca)['title'])['toLowerCase']();return{'type':'format','content':c(_0x584707,'*Set\x20font\x20size:*\x20%0',_0x5dbc53)};}return{'type':'format','content':c(_0x584707,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x573648['commandName']){const _0x354245=_0x573648['commandParams'][0x0]['value'];return _0x354245?{'type':'format','content':c(_0x584707,'*Set\x20font\x20family:*\x20%0',_0x354245)}:{'type':'format','content':c(_0x584707,'*Reset\x20font\x20family*')};}if('fontColor'==_0x573648['commandName']){const _0x1bc2e=_0x573648['commandParams'][0x0]['value'];if(_0x1bc2e){const _0x2ae4bc=_0x34724a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x40f021=>_0x40f021['model']==_0x1bc2e);let _0x42ce6b=_0x1bc2e,_0x111816='';return _0x2ae4bc&&(_0x42ce6b=_0x2ae4bc['label'],_0x111816=_0x3bd054(_0x42ce6b)['toLowerCase']()),{'type':'format','content':c(_0x584707,'*Set\x20font\x20color:*\x20%0',_0x111816)['trim'](),'color':{'value':_0x1bc2e,'title':_0x111816||_0x42ce6b}};}return{'type':'format','content':c(_0x584707,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x573648['commandName']){const _0x59b0bb=_0x573648['commandParams'][0x0]['value'];if(_0x59b0bb){const _0x232a04=_0x34724a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1e3494=>_0x1e3494['model']==_0x59b0bb);let _0x221835=_0x59b0bb,_0x540439='';return _0x232a04&&(_0x221835=_0x232a04['label'],_0x540439=_0x3bd054(_0x221835)['toLowerCase']()),{'type':'format','content':c(_0x584707,'*Set\x20font\x20background\x20color:*\x20%0',_0x540439)['trim'](),'color':{'value':_0x59b0bb,'title':_0x540439||_0x221835}};}return{'type':'format','content':c(_0x584707,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3b35c4{['afterInit'](){const _0x47379c=this['editor'],_0x53edea=_0x47379c['plugins']['get']('TrackChangesEditing'),_0x9ed1e0=_0x47379c['commands']['get']('copyFormat'),_0x12a1c7=_0x47379c['commands']['get']('pasteFormat');_0x9ed1e0&&_0x12a1c7&&(_0x53edea['enableDefaultAttributesIntegration']('pasteFormat'),_0x53edea['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xe08fd8=this['editor'],_0x3c64a6=_0xe08fd8['locale'];_0xe08fd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5887ea=>{if('formatBlock'!=_0x5887ea['type']&&'formatInline'!=_0x5887ea['type'])return;const {data:_0x464d82}=_0x5887ea;if(_0x464d82&&'pasteFormat'===_0x464d82['commandName']){const _0x5bbfd2=[],_0x21d669=_0x464d82['commandParams'][0x0];for(const [_0x20497f,_0x2c39df]of Object['entries'](_0x21d669))_0x5bbfd2['push'](so(_0xe08fd8,_0x20497f,_0x2c39df));return _0x5bbfd2['length']?{'type':'format','content':c(_0x3c64a6,'*Set\x20format\x20to:*\x20%0',_0x5bbfd2['join'](',\x20'))}:{'type':'format','content':c(_0x3c64a6,'*Remove\x20all\x20formatting*')};}});}}function so(_0x176b1c,_0x286061,_0x1caa01){const _0x54f181=_0x176b1c['locale']['t'],_0x4e5998=_0x286061['split'](/(?=[A-Z])/)['join']('\x20'),_0x541df5=_0x54f181(_0x4e5998['charAt'](0x0)['toUpperCase']()+_0x4e5998['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1caa01)return _0x541df5;if('fontColor'===_0x286061||'fontBackgroundColor'===_0x286061){const _0x1802e9=_0x34724a(_0x176b1c['config']['get']('fontColor.colors'))['find'](_0x5c304a=>_0x5c304a['model']==_0x1caa01);return _0x541df5+'\x20('+(_0x1802e9?_0x54f181(_0x1802e9['label'])['toLowerCase']():_0x1caa01)+')';}if('fontSize'===_0x286061&&isNaN(parseFloat(_0x1caa01))){const _0x56264c=_0x176b1c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x176b1c['config']['get']('fontSize.options'))['find'](_0x550cbe=>_0x550cbe['model']==_0x1caa01);return _0x541df5+'\x20('+(_0x56264c?_0x54f181(_0x56264c['title'])['toLowerCase']():_0x1caa01)+')';}return _0x541df5+'\x20('+_0x1caa01+')';}class et extends _0x3b35c4{['_headingOptions'];['afterInit'](){const _0x3254dc=this['editor'];if(!_0x3254dc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3254dc['config']['get']('heading.options');const _0xac8522=_0x3254dc['locale'],_0x57500d=_0x3254dc['plugins']['get']('TrackChangesEditing');_0x57500d['enableDefaultAttributesIntegration']('heading');for(const _0x43f155 of this['_headingOptions'])'paragraph'!=_0x43f155['model']&&_0x57500d['descriptionFactory']['registerElementLabel'](_0x43f155['model'],_0x1f7d00=>{const _0x583f63=this['_getHeadingLevel'](_0x43f155['model']);return null!==_0x583f63?_0x2404a8(_0x1f7d00,_0x583f63):_0x204a52(_0x1f7d00,_0x43f155['title']);});function _0x2404a8(_0x370655,_0x3615c3){return c(_0xac8522,'ELEMENT_HEADING',[_0x370655,_0x3615c3]);}function _0x204a52(_0x92e932,_0x3e0f0a){return c(_0xac8522,'ELEMENT_HEADING_CUSTOM',[_0x92e932,_0x3e0f0a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13a8ae=this['editor'],_0x1eba3e=_0x13a8ae['locale'];function _0x466b33(_0x9045bf,_0x11138e){return c(_0x1eba3e,'ELEMENT_HEADING_CUSTOM',[_0x9045bf,_0x11138e]);}_0x13a8ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x576dab=>{if('formatBlock'!=_0x576dab['type'])return;const {data:_0x40f3f0}=_0x576dab;if(_0x40f3f0&&'heading'==_0x40f3f0['commandName']){const _0x5b9e17=_0x40f3f0['commandParams'][0x0]['value'],_0xbbf215=this['_getHeadingLevel'](_0x5b9e17);if(null!==_0xbbf215)return{'type':'format','content':c(_0x1eba3e,'*Change\x20to:*\x20%0',(_0x534df5=0x1,_0x1a1d0c=_0xbbf215,c(_0x1eba3e,'ELEMENT_HEADING',[_0x534df5,_0x1a1d0c])))};const _0x3127df=this['_headingOptions']['find'](_0x521cab=>_0x521cab['model']===_0x5b9e17)['title'];return{'type':'format','content':c(_0x1eba3e,'*Change\x20to:*\x20%0',_0x466b33(0x1,_0x3127df))};}var _0x534df5,_0x1a1d0c;});}['_getHeadingLevel'](_0x540a83){const _0x3d8114=_0x540a83['match'](/^heading(\d+)/);if(_0x3d8114)return _0x3d8114[0x1];const _0x2a83ca=this['_headingOptions']?.['find'](_0x1389bd=>_0x1389bd['model']==_0x540a83);if(_0x2a83ca&&_0x2a83ca['view']){const _0x4ee92b=_0x2a83ca['view'],_0x2c6d3f=(_0x4ee92b['name']??_0x4ee92b)['match'](/^h(\d+)/);if(_0x2c6d3f)return _0x2c6d3f[0x1];}return null;}}class nt extends _0x3b35c4{['afterInit'](){const _0x578927=this['editor'];if(!_0x578927['plugins']['has']('HighlightEditing'))return;const _0x3394d2=_0x578927['plugins']['get']('TrackChangesEditing'),_0x159cbb=_0x578927['locale'];_0x3394d2['enableDefaultAttributesIntegration']('highlight'),_0x3394d2['registerInlineAttribute']('highlight'),_0x3394d2['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x159cbb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x589748=this['editor'],_0x409bc4=_0x589748['locale'];_0x589748['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdf388=>{if('formatInline'!=_0xdf388['type'])return;const {data:_0x4422f2}=_0xdf388;if(_0x4422f2&&'highlight'==_0x4422f2['commandName']){const _0x3fd605=_0x409bc4['t'],_0x33b00f=_0x4422f2['commandParams'][0x0]['value'];if(_0x33b00f){const _0x145c1d=_0x589748['config']['get']('highlight.options')['find'](_0x4948dd=>_0x4948dd['model']==_0x33b00f),_0x6755d8=_0x3fd605(_0x145c1d['title'])['toLowerCase']();return{'type':'format','content':c(_0x409bc4,'*Set\x20highlight:*\x20%0',_0x6755d8),'color':{'value':_0x145c1d['color'],'title':_0x145c1d['title']}};}return{'type':'format','content':c(_0x409bc4,'*Remove\x20highlight*',c(_0x409bc4,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3b35c4{['afterInit'](){const _0x30c60f=this['editor'];if(!_0x30c60f['plugins']['has']('HorizontalLineEditing'))return;_0x30c60f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x16c9b5=_0x30c60f['plugins']['get']('TrackChangesEditing'),_0x352754=_0x30c60f['locale'];_0x16c9b5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x46a422=>c(_0x352754,'ELEMENT_HORIZONTAL_LINE',_0x46a422)),_0x30c60f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4cac01,{writer:_0x20781d,options:_0x41a47a})=>{if(!_0x41a47a['showSuggestionHighlights'])return null;const _0x10ae87=_0x20781d['createContainerElement']('div'),_0x3af1e0=_0x20781d['createEmptyElement']('hr');return _0x20781d['addClass']('ck-horizontal-line',_0x10ae87),_0x20781d['insert'](_0x20781d['createPositionAt'](_0x10ae87,0x0),_0x3af1e0),_0x10ae87;},'converterPriority':'high'});}}class ot extends _0x3b35c4{['afterInit'](){const _0x303274=this['editor'];if(!_0x303274['plugins']['has']('HtmlEmbed'))return;const _0x390b8b=_0x303274['plugins']['get']('TrackChangesEditing'),_0x234708=_0x303274['locale'];_0x390b8b['descriptionFactory']['registerElementLabel']('rawHtml',_0x3fa52b=>c(_0x234708,'ELEMENT_HTML_EMBED',_0x3fa52b)),_0x390b8b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x390b8b['registerBlockAttribute']('value'),_0x390b8b['descriptionFactory']['registerDescriptionCallback'](_0x4874f8=>{if('attribute'!=_0x4874f8['type'])return;const {data:_0x36c33f}=_0x4874f8;if(_0x36c33f&&'value'==_0x36c33f['key']&&_0x4874f8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x393a64=c(_0x234708,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x234708,'*Change\x20%0\x20content*',_0x393a64)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f9f0b=this['editor'],_0x280f54=_0x1f9f0b['locale'];_0x1f9f0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd47dee=>{if('formatBlock'!=_0xd47dee['type'])return;const {data:_0x42d0e5}=_0xd47dee;if(_0x42d0e5&&'htmlEmbed'==_0x42d0e5['commandName']){const _0x46f0bd=c(_0x280f54,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x280f54,'*Change\x20%0\x20content*',_0x46f0bd)};}});}}class rt extends _0x3b35c4{['afterInit'](){const _0x253077=this['editor'];if(!_0x253077['plugins']['has']('ImageEditing'))return;const _0x2473d9=_0x253077['plugins']['get']('TrackChangesEditing'),_0x5f46da=_0x253077['plugins']['get']('ImageUtils'),_0x3dbce9=_0x253077['locale'];_0x2473d9['enableCommand']('insertImage'),_0x2473d9['descriptionFactory']['registerElementLabel']('imageBlock',_0x363bdd=>c(_0x3dbce9,'ELEMENT_IMAGE',_0x363bdd)),_0x2473d9['descriptionFactory']['registerElementLabel']('imageInline',_0x470f95=>c(_0x3dbce9,'ELEMENT_INLINE_IMAGE',_0x470f95)),_0x2473d9['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3dbce9,'ELEMENT_CAPTION')),_0x253077['plugins']['has']('ImageUploadEditing')&&_0x2473d9['enableCommand']('uploadImage'),_0x253077['plugins']['has']('ImageBlockEditing')&&_0x253077['plugins']['has']('ImageInlineEditing')&&(_0x2473d9['enableCommand']('imageTypeInline',(_0x13f9d4,_0x3178be)=>{const _0x25d497=_0x5f46da['getClosestSelectedImageElement'](_0x253077['model']['document']['selection']);_0x253077['model']['change'](()=>{_0x2473d9['markBlockFormat'](_0x25d497,{'commandName':'imageTypeInline','commandParams':[_0x3178be]},[],'convertBlockImageToInline');});}),_0x2473d9['enableCommand']('imageTypeBlock',(_0x124e9e,_0x4005a1)=>{_0x253077['model']['change'](_0x5cc7dc=>{let _0x3ea1f4=_0x5f46da['getClosestSelectedImageElement'](_0x253077['model']['document']['selection']),_0x119a9f=_0x5cc7dc['createRangeOn'](_0x3ea1f4);const _0x39ff67=_0x1a83d5['fromPosition'](_0x119a9f['start'],'toPrevious'),_0x96ee19=_0x1a83d5['fromPosition'](_0x119a9f['end'],'toNext');_0x2473d9['forceDefaultExecution'](()=>_0x124e9e(_0x4005a1)),_0x3ea1f4=_0x5f46da['getClosestSelectedImageElement'](_0x253077['model']['document']['selection']),_0x119a9f=_0x5cc7dc['createRangeOn'](_0x3ea1f4);const _0x131c5d=_0x5cc7dc['createRange'](_0x39ff67,_0x96ee19);_0x39ff67['detach'](),_0x96ee19['detach'](),_0x2473d9['markBlockFormat'](_0x3ea1f4,{'commandName':'imageTypeInline','commandParams':[_0x4005a1]},[],'convertInlineImageToBlock'),_0x131c5d['start']['isBefore'](_0x119a9f['start'])&&_0x2473d9['markInsertion'](_0x5cc7dc['createRange'](_0x131c5d['start'],_0x119a9f['start']),'convertInlineImageToBlock'),_0x119a9f['end']['isBefore'](_0x131c5d['end'])&&_0x2473d9['markInsertion'](_0x5cc7dc['createRange'](_0x119a9f['end'],_0x131c5d['end']),'convertInlineImageToBlock');});}),_0x2473d9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2473d9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2473d9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2473d9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2473d9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2473d9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1282ac])=>{const _0x1e2c0e=_0x2473d9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5d9385=_0x1282ac['start'],_0x2a6e5a=_0x1282ac['end'];const _0x58bedc=_0x253077['model']['schema']['getNearestSelectionRange'](_0x5d9385,'backward'),_0x618094=_0x253077['model']['schema']['getNearestSelectionRange'](_0x2a6e5a,'forward');_0x58bedc['isCollapsed']&&(_0x5d9385=_0x58bedc['start']),_0x618094['isCollapsed']&&(_0x2a6e5a=_0x618094['end']),_0x1e2c0e([_0x253077['model']['createRange'](_0x5d9385,_0x2a6e5a)]);}),_0x2473d9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2c11ad),_0x2473d9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2c11ad)),_0x253077['plugins']['has']('ImageCaptionEditing')&&(_0x2473d9['enableCommand']('toggleImageCaption',(_0x214a08,_0x498c61)=>{const _0x5746c9=_0x253077['plugins']['get']('ImageCaptionUtils');let _0x4dd958=_0x5f46da['getClosestSelectedImageElement'](_0x253077['model']['document']['selection']),_0x281dc7=_0x5746c9['getCaptionFromImageModelElement'](_0x4dd958);_0x253077['model']['change'](()=>{if(_0x281dc7)return void _0x2473d9['markDeletion'](_0x253077['model']['createRangeOn'](_0x281dc7));const _0x330c56=_0x5f46da['isBlockImage'](_0x4dd958);_0x214a08(_0x498c61),_0x4dd958=_0x5f46da['getClosestSelectedImageElement'](_0x253077['model']['document']['selection']),_0x281dc7=_0x5746c9['getCaptionFromImageModelElement'](_0x4dd958),_0x2473d9['markInsertion'](_0x253077['model']['createRangeOn'](_0x281dc7),_0x330c56?null:'imageCaption');});}),_0x2473d9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2c11ad));const _0x3f9452=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3847cd(_0x5a3be3,_0x449f4e){const _0x2ba86a=_0x3f9452['findIndex'](({type:_0x7720d,subType:_0x39d6a3})=>_0x5a3be3['type']==_0x7720d&&_0x5a3be3['subType']==_0x39d6a3),_0x1cdb8a=_0x3f9452['findIndex'](({type:_0x4e853f,subType:_0x4e01c6})=>_0x449f4e['type']==_0x4e853f&&_0x449f4e['subType']==_0x4e01c6);if(_0x2ba86a<0x0||_0x1cdb8a<0x0)return!0x1;const _0x374c45=_0x5a3be3['getFirstRange'](),_0x570b54=_0x449f4e['getFirstRange']();if((0x0==_0x2ba86a||0x1==_0x2ba86a)&&0x2==_0x1cdb8a&&_0x374c45['isIntersecting'](_0x570b54))return!0x0;if(0x2==_0x2ba86a&&0x3==_0x1cdb8a){const _0x3a2430=_0x2473d9['_findSuggestions'](_0x374c45,'insertion')['filter'](({suggestion:_0xcc24f5,meta:_0x16d4c3})=>_0x16d4c3['isOwn']&&'convertInlineImageToBlock'==_0xcc24f5['subType']);if(_0x3a2430['length']>0x1&&_0x570b54['end']['isEqual'](_0x374c45['start']))return!0x0;if(0x1==_0x3a2430['length']&&(_0x374c45['start']['isEqual'](_0x570b54['end'])||_0x374c45['end']['isEqual'](_0x570b54['start'])))return!0x0;}if(0x3==_0x2ba86a&&0x3==_0x1cdb8a&&_0x374c45['start']['isBefore'](_0x570b54['start'])){const _0x42e1d1=_0x374c45['end']['nodeAfter'],_0x425a12=_0x570b54['start']['nodeBefore'];return _0x5f46da['isBlockImage'](_0x42e1d1)&&_0x42e1d1===_0x425a12;}return!0x1;}function _0x2c11ad(_0x858a42,_0x215273){return _0x3847cd(_0x858a42,_0x215273)?[_0x858a42,_0x215273]:_0x3847cd(_0x215273,_0x858a42)?[_0x215273,_0x858a42]:null;}_0x253077['plugins']['has']('ImageResize')&&(_0x2473d9['enableDefaultAttributesIntegration']('resizeImage'),_0x2473d9['registerBlockAttribute']('resizedWidth'),_0x2473d9['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3dbce9,'FORMAT_IMAGE_SIZE'))),_0x253077['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2473d9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2473d9['registerBlockAttribute']('alt')),_0x253077['plugins']['has']('PictureEditing')&&(_0x2473d9['registerBlockAttribute']('sources'),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x1adc2f=>{if('attribute'!=_0x1adc2f['type'])return;const {data:_0x7d7253}=_0x1adc2f;return _0x7d7253&&'sources'==_0x7d7253['key']?{'type':'format','content':''}:void 0x0;})),_0x253077['plugins']['has']('ImageSizeAttributes')&&(_0x2473d9['registerBlockAttribute']('width'),_0x2473d9['registerBlockAttribute']('height'),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x4ca92f=>{if('attribute'!=_0x4ca92f['type'])return;const {data:_0x4caaff}=_0x4ca92f;return!_0x4caaff||'width'!=_0x4caaff['key']&&'height'!=_0x4caaff['key']?void 0x0:{'type':'format','content':''};})),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x558cdd=>{if(!!_0x3f9452['find'](({type:_0x1b7f4b,subType:_0x2c029f})=>_0x558cdd['type']==_0x1b7f4b&&_0x558cdd['subType']==_0x2c029f))return _0x558cdd['previous']?{}:void 0x0;}),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x7d3f0d=>{if('insertion'==_0x7d3f0d['type']||'deletion'==_0x7d3f0d['type']){const _0x80297e=_0x7d3f0d['getContainedElement']();if(_0x80297e&&_0x80297e['is']('element','caption'))return{'type':'insertion'==_0x7d3f0d['type']?'addObject':'removeObject','element':_0x80297e,'quantity':0x1};}}),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x1fd7c0=>'formatBlock'==_0x1fd7c0['type']&&'convertInlineImageToBlock'==_0x1fd7c0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1fd7c0['type']&&'convertBlockImageToInline'==_0x1fd7c0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2473d9['descriptionFactory']['registerDescriptionCallback'](_0x5d566b=>{if('attribute'!=_0x5d566b['type'])return;const {data:_0xac8f0d}=_0x5d566b;if(!_0xac8f0d||'alt'!=_0xac8f0d['key'])return;const _0x5e477d=_0xac8f0d['newValue'];return _0x5e477d?{'type':'format','content':c(_0x3dbce9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5e477d+'\x22')}:{'type':'format','content':c(_0x3dbce9,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1844b7=this['editor'],_0x433b60=_0x1844b7['locale'];_0x1844b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b93c0=>{if('formatBlock'!=_0x5b93c0['type']&&'formatInline'!=_0x5b93c0['type'])return;const {data:_0x594230}=_0x5b93c0;if(_0x594230){if('imageTextAlternative'==_0x594230['commandName']){const _0x5a241f=_0x594230['commandParams'][0x0]['newValue'];return _0x5a241f?{'type':'format','content':c(_0x433b60,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a241f+'\x22')}:{'type':'format','content':c(_0x433b60,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x594230['commandName']){const _0x5bcf7d=_0x594230['commandParams'][0x0]['width'];return _0x5bcf7d?{'type':'format','content':c(_0x433b60,'*Set\x20image\x20width:*\x20%0',_0x5bcf7d)}:{'type':'format','content':c(_0x433b60,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3b35c4{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5d0150=this['editor']['locale'],_0x58ee0f=this['editor']['plugins']['get']('TrackChangesEditing');_0x58ee0f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x58ee0f['registerBlockAttribute']('src'),_0x58ee0f['descriptionFactory']['registerDescriptionCallback'](_0x5ba08f=>{if('attribute'!=_0x5ba08f['type'])return;const {data:_0x28f24c}=_0x5ba08f;return _0x28f24c&&'src'==_0x28f24c['key']?_0x28f24c['newValue']&&_0x28f24c['oldValue']?{'type':'format','content':c(_0x5d0150,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x599d15=this['editor']['plugins']['get']('TrackChangesEditing');_0x599d15['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x599d15['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x599d15['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x599d15['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35fe4b=this['editor'],_0x59d6be=_0x35fe4b['locale'];_0x35fe4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2542fa=>{if('formatBlock'!=_0x2542fa['type']&&'formatInline'!=_0x2542fa['type'])return;const {data:_0x306747}=_0x2542fa;if(!_0x306747||'replaceImageSource'!=_0x306747['commandName'])return;return{'type':'format','content':c(_0x59d6be,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3b35c4{['afterInit'](){const _0x107a1f=this['editor'];if(!_0x107a1f['plugins']['has']('ImageStyleEditing'))return;const _0x625ab4=_0x107a1f['plugins']['get']('TrackChangesEditing'),_0xff5c6c=_0x107a1f['plugins']['get']('ImageUtils'),_0x1a91ed={};_0x625ab4['enableCommand']('imageStyle',(_0x26635f,_0x34a808)=>{const _0x27c225=_0x107a1f['plugins']['get']('Users')['me'],_0x38db74=_0x107a1f['commands']['get']('imageStyle');let _0x4dbf60=_0xff5c6c['getClosestSelectedImageElement'](_0x107a1f['model']['document']['selection']),_0x4284e2=_0x107a1f['model']['createRangeOn'](_0x4dbf60),_0x5eaa23=_0x38db74['value'];if(_0x5eaa23==_0x34a808['value'])return;const _0x42861c={'commandName':'imageStyle','commandParams':[_0x34a808],'formatGroupId':_0x281607()};_0x107a1f['model']['change'](()=>{if(_0x625ab4['getSuggestions']()['filter'](_0x59692d=>_0x59692d['isInContent']&&_0x27c225==_0x59692d['author']&&('formatBlock'==_0x59692d['type']||'formatInline'==_0x59692d['type'])&&('imageStylePreApply'==_0x59692d['subType']||'imageStylePostApply'==_0x59692d['subType'])&&_0x59692d['getFirstRange']()['isEqual'](_0x4284e2))['forEach'](_0x31492f=>_0x625ab4['discardSuggestion'](_0x31492f['head'])),_0x4dbf60=_0xff5c6c['getClosestSelectedImageElement'](_0x107a1f['model']['document']['selection']),_0x4284e2=_0x107a1f['model']['createRangeOn'](_0x4dbf60),_0x38db74['refresh'](),_0x107a1f['commands']['get']('imageTypeInline')['refresh'](),_0x107a1f['commands']['get']('imageTypeBlock')['refresh'](),_0x5eaa23=_0x38db74['value'],_0x5eaa23!=_0x34a808['value'])return _0xff5c6c['isInlineImage'](_0x4dbf60)&&_0x38db74['shouldConvertImageType'](_0x34a808['value'],_0x4dbf60)?(_0x26635f({..._0x34a808,'setImageSizes':!0x1}),_0x4dbf60=_0xff5c6c['getClosestSelectedImageElement'](_0x107a1f['model']['document']['selection']),void _0x625ab4['markBlockFormat'](_0x4dbf60,{..._0x42861c,'commandReversedParams':[{'value':_0x5eaa23||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xff5c6c['isBlockImage'](_0x4dbf60)?_0x625ab4['markBlockFormat'](_0x4dbf60,_0x42861c,[],'imageStylePostApply'):_0x625ab4['markInlineFormat'](_0x4284e2,_0x42861c,'imageStylePostApply'));});});for(const _0x40b454 of _0x107a1f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1a91ed[_0x40b454['name']]=_0x40b454['title']['toLowerCase']();_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x48dce8])=>{_0xff5c6c['setImageNaturalSizeAttributes'](_0x48dce8['getContainedElement']());}),_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5d6c73,_0x3c59ae)=>{_0x625ab4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d6c73,{'commandName':_0x3c59ae['commandName'],'commandParams':_0x3c59ae['commandReversedParams']});}),_0x625ab4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x444670,_0x4946d5){if(_0x5b893a(_0x444670,_0x4946d5))return[_0x444670,_0x4946d5];if(_0x5b893a(_0x4946d5,_0x444670))return[_0x4946d5,_0x444670];return null;});const _0x364c02=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b893a(_0x380766,_0x3b49a6){const _0x5cff3f=_0x364c02['findIndex'](({type:_0x113fce,subType:_0x12d2f5})=>_0x380766['type']==_0x113fce&&_0x380766['subType']==_0x12d2f5),_0x18d3f1=_0x364c02['findIndex'](({type:_0x343fb4,subType:_0x3e9002})=>_0x3b49a6['type']==_0x343fb4&&_0x3b49a6['subType']==_0x3e9002);if(_0x5cff3f<0x0||_0x18d3f1<0x0)return!0x1;const _0x27b311=_0x380766['getFirstRange'](),_0x214ffa=_0x3b49a6['getFirstRange']();if((0x0==_0x5cff3f||0x1==_0x5cff3f)&&0x2==_0x18d3f1&&_0x27b311['isIntersecting'](_0x214ffa))return!0x0;if(0x2==_0x5cff3f&&0x3==_0x18d3f1){const _0x169fcf=_0x625ab4['_findSuggestions'](_0x27b311,'insertion')['filter'](({suggestion:_0x3a0c18,meta:_0x29c762})=>_0x29c762['isOwn']&&'convertInlineImageToBlock'==_0x3a0c18['subType']);if(_0x169fcf['length']>0x1&&_0x214ffa['end']['isEqual'](_0x27b311['start']))return!0x0;if(0x1==_0x169fcf['length']&&(_0x27b311['start']['isEqual'](_0x214ffa['end'])||_0x27b311['end']['isEqual'](_0x214ffa['start'])))return!0x0;}if(0x3==_0x5cff3f&&0x3==_0x18d3f1&&_0x27b311['start']['isBefore'](_0x214ffa['start'])){const _0x49b051=_0x27b311['end']['nodeAfter'],_0x21682=_0x214ffa['start']['nodeBefore'];return _0xff5c6c['isBlockImage'](_0x49b051)&&_0x49b051===_0x21682;}return!0x1;}_0x107a1f['model']['document']['registerPostFixer'](()=>{let _0x327688=!0x1;const _0x54bc61=Array['from'](_0x107a1f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x788d37,data:_0x274d8e}of _0x54bc61){const {group:_0xf1218,type:_0x3b0cc1,subType:_0x576220,id:_0x41114}=_0x625ab4['_splitMarkerName'](_0x788d37);if('suggestion'==_0xf1218&&_0x625ab4['hasSuggestion'](_0x41114)){if('formatBlock'==_0x3b0cc1&&('imageStylePreApply'==_0x576220||'imageStylePostApply'==_0x576220)){const _0x45aef4=_0x625ab4['getSuggestion'](_0x41114);if(_0x274d8e['newRange']){const _0x580980=_0x45aef4['getFirstRange']()['getContainedElement']();if(_0xff5c6c['isBlockImage'](_0x580980))continue;_0x625ab4['discardSuggestion'](_0x45aef4),_0x327688=!0x0;}}if('insertion'==_0x3b0cc1&&'imageCaption'==_0x576220&&!_0x274d8e['newRange']){const _0x32e435=_0x625ab4['getSuggestion'](_0x41114);_0x32e435['next']&&_0x32e435['next']['isInContent']&&(_0x625ab4['discardSuggestion'](_0x32e435['next']),_0x327688=!0x0);}}}return _0x327688;}),this['_registerLegacyDescription'](_0x1a91ed);}['_registerLegacyDescription'](_0x28d0f9){const _0x363de7=this['editor'],_0x143887=_0x363de7['locale'];_0x363de7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x544ebd=>{if('formatBlock'!=_0x544ebd['type']&&'formatInline'!=_0x544ebd['type'])return;const {data:_0x3cf634}=_0x544ebd;if(!_0x3cf634||'imageStyle'!=_0x3cf634['commandName'])return;const _0x45aa54=_0x3cf634['commandParams'][0x0]['value'];return _0x98142a('side'===_0x45aa54?c(_0x143887,'FORMAT_SIDE_IMAGE'):_0x28d0f9[_0x45aa54]||_0x45aa54);function _0x98142a(_0x56f60f){return{'type':'format','content':c(_0x143887,'*Format:*\x20%0',_0x56f60f)};}});}}class ut extends _0x3b35c4{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3de720){super(_0x3de720),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x553ea4=this['editor'],_0x36b3ad=_0x553ea4['commands']['get']('importWord'),_0x2485a1=_0x553ea4['commands']['get']('trackChanges');_0x36b3ad&&(_0x36b3ad['on']('execute',(_0x17cf8e,[,_0x364b65])=>{this['_trackChangesValueDuringImport']=_0x2485a1['value'],_0x364b65['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x36b3ad,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x36b3ad,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2485a1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x553ea4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x181430,_0x817272){const {suggestions:_0x4f0f4b}=_0x817272,_0x4187d8=this['editor']['commands']['get']('trackChanges'),_0x2c00a1=_0x4187d8['value'];this['_trackChangesValueDuringImport']!==_0x2c00a1&&(_0x4187d8['execute'](),this['_trackChangesExecuted']=!0x0),_0x4f0f4b&&_0x4f0f4b['forEach'](({id:_0x3ed94f,type:_0x30b836,author:_0x57d028,created_at:_0x412985})=>{const _0x4e1c1a={'id':_0x3ed94f,'type':_0x30b836,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x57d028,'createdAt':_0x412985?new Date(_0x412985):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4e1c1a);});}}class ft extends _0x3b35c4{['afterInit'](){const _0x44a950=this['editor'],_0x5ebf6c=_0x44a950['plugins']['get']('TrackChangesEditing');if(_0x44a950['plugins']['has']('IndentEditing')&&(_0x5ebf6c['enableCommand']('indent'),_0x5ebf6c['enableCommand']('outdent')),_0x44a950['plugins']['has']('IndentBlock')){for(const _0x3ac93a of['indentBlock','outdentBlock'])_0x5ebf6c['enableDefaultAttributesIntegration'](_0x3ac93a);}const _0x42062d=_0x44a950['locale'];_0x5ebf6c['registerBlockAttribute']('blockIndent'),_0x5ebf6c['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x42062d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf2e73d=this['editor'],_0x6e650b=_0xf2e73d['locale'],_0x28d430=_0xf2e73d['plugins']['get']('TrackChangesEditing');_0x28d430['descriptionFactory']['registerDescriptionCallback'](_0x4cfabe=>{if('formatBlock'!=_0x4cfabe['type'])return;const {data:_0x4cc84d}=_0x4cfabe;if(!_0x4cc84d)return;if('indentBlock'!=_0x4cc84d['commandName']&&'outdentBlock'!=_0x4cc84d['commandName'])return;const _0x5951eb=_0x4cfabe['getItems']()[0x0],_0x1e6630=_0x28d430['descriptionFactory']['getItemLabel'](_0x5951eb);return'indentBlock'==_0x4cc84d['commandName']?{'type':'format','content':c(_0x6e650b,'*Indent:*\x20%0',_0x1e6630)}:'outdentBlock'==_0x4cc84d['commandName']?{'type':'format','content':c(_0x6e650b,'*Outdent:*\x20%0',_0x1e6630)}:void 0x0;});}}class ht extends _0x3b35c4{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x3b35c4{['afterInit'](){const _0x5d7fe7=this['editor'];if(!_0x5d7fe7['plugins']['has']('LinkEditing'))return;const _0x2e4cdc=_0x5d7fe7['plugins']['get']('TrackChangesEditing'),_0x371ab6=_0x5d7fe7['commands']['get']('link');_0x2e4cdc['enableDefaultAttributesIntegration']('link'),_0x2e4cdc['enableDefaultAttributesIntegration']('unlink'),_0x2e4cdc['registerInlineAttribute']('linkHref');for(const _0x1a77d8 of _0x371ab6['manualDecorators'])_0x2e4cdc['registerInlineAttribute'](_0x1a77d8['id']),_0x2e4cdc['descriptionFactory']['registerAttributeLabel'](_0x1a77d8['id'],'link\x20('+_0x1a77d8['label']['toLowerCase']()+')');_0x2e4cdc['descriptionFactory']['registerDescriptionCallback'](_0x1b54ca=>{if('attribute'!=_0x1b54ca['type'])return;const {data:_0x5a0b4a}=_0x1b54ca;if(!_0x5a0b4a||'linkHref'!=_0x5a0b4a['key'])return;const _0x3c03f2=_0x5a0b4a['newValue'],_0x11ecc7=_0x5d7fe7['locale'];return{'type':'format','content':null==_0x3c03f2?c(_0x11ecc7,'*Remove\x20link*'):c(_0x11ecc7,'*Set\x20link:*\x20%0','\x22'+_0x3c03f2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56844c=this['editor'],_0x527e19=_0x56844c['locale'];_0x56844c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40f07d=>{if('formatInline'!=_0x40f07d['type'])return;const {data:_0x128244}=_0x40f07d;if(_0x128244){if('link'==_0x128244['commandName']){const _0x2c3ac9=_0x128244['commandParams'][0x0];return{'type':'format','content':c(_0x527e19,'*Set\x20link:*\x20%0','\x22'+_0x2c3ac9+'\x22')};}return'unlink'==_0x128244['commandName']?{'type':'format','content':c(_0x527e19,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x3b35c4{['afterInit'](){const _0x33f504=this['editor'],_0x29e569=_0x33f504['locale'];if(!_0x33f504['plugins']['has']('LegacyListEditing'))return;const _0x3ee231=_0x33f504['plugins']['get']('TrackChangesEditing'),_0x11a172=_0x33f504['plugins']['has']('LegacyTodoListEditing');function _0x5f12ed(_0x2b4c63){return()=>{const _0x4e18cb=_0x33f504['model']['document']['selection'],_0x359339=_0x33f504['commands']['get'](_0x2b4c63);if(_0x359339['value'])return void _0x33f504['execute']('paragraph',{});const _0x26c16e=_0x2b4c63['slice'](0x0,-0x4),_0x1c22c2=function(_0x41e1c0,_0xf2e319,_0x5dbc88){let _0x579ae5=Array['from'](_0x41e1c0)['filter'](_0x5f177f=>function(_0x59b870,_0x183d8c){return _0x183d8c['checkChild'](_0x59b870['parent'],'listItem')&&!_0x183d8c['isObject'](_0x59b870);}(_0x5f177f,_0x5dbc88));_0x579ae5=_0x579ae5['filter'](_0x49f258=>!_0x49f258['is']('element','listItem')||_0x49f258['getAttribute']('listType')!=_0xf2e319);const _0x367cdb=new Set();for(const _0x4913ae of _0x579ae5)_0x4913ae['is']('element','listItem')?_0x367cdb['add'](Le(_0x4913ae)):_0x367cdb['add'](_0x4913ae);return Array['from'](_0x367cdb);}(_0x4e18cb['getSelectedBlocks'](),_0x26c16e,_0x33f504['model']['schema']);_0x33f504['model']['change'](()=>{for(const _0x2ed9bf of _0x1c22c2)_0x3ee231['markBlockFormat'](_0x2ed9bf,{'commandName':_0x2b4c63,'commandParams':[{'forceValue':!_0x359339['value']}],'formatGroupId':'blockName'},Ee(_0x2ed9bf));});};}function _0x588b60(_0x3c1956){return()=>{const _0x1ef75c=function(_0x46afa2){let _0x521f21=Array['from'](_0x46afa2);const _0x1b024e=_0x521f21['findIndex'](_0xa41cf1=>'listItem'!=_0xa41cf1['name']);return _0x1b024e>-0x1&&(_0x521f21=_0x521f21['slice'](0x0,_0x1b024e)),_0x521f21;}(_0x33f504['model']['document']['selection']['getSelectedBlocks']()),_0x5b5c08=_0x33f504['model']['createRange'](_0x33f504['model']['createPositionAt'](_0x1ef75c[0x0],'before'),_0x33f504['model']['createPositionAt'](_0x1ef75c[_0x1ef75c['length']-0x1],'end'));_0x33f504['model']['change'](()=>{_0x3ee231['markBlockFormat'](_0x5b5c08,{'commandName':_0x3c1956,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3ce633){const _0x1a78f0=new Set();for(const _0x5ccbb0 of _0x3ce633){let _0x43660b=_0x5ccbb0['nextSibling'];for(;_0x43660b&&_0x43660b['getAttribute']('listIndent')>_0x5ccbb0['getAttribute']('listIndent');)_0x1a78f0['add'](_0x43660b),_0x43660b=_0x43660b['nextSibling'];}return Array['from'](_0x1a78f0);}(_0x1ef75c));});};}_0x3ee231['enableCommand']('numberedList',_0x5f12ed('numberedList')),_0x3ee231['enableCommand']('bulletedList',_0x5f12ed('bulletedList')),_0x11a172&&_0x3ee231['enableCommand']('todoList',_0x5f12ed('todoList')),_0x3ee231['enableCommand']('indentList',_0x588b60('indentList')),_0x3ee231['enableCommand']('outdentList',_0x588b60('outdentList')),_0x11a172&&_0x3ee231['enableCommand']('checkTodoList',()=>{const _0x474aa1=_0x33f504['commands']['get']('checkTodoList'),_0x1cc26b=Array['from'](_0x474aa1['_selectedElements']);_0x1cc26b['filter'](_0x42450a=>_0x42450a['getAttribute']('todoListChecked')!=_0x474aa1['value']),_0x33f504['model']['change'](()=>{for(const _0xc6dfbf of _0x1cc26b)_0x3ee231['markBlockFormat'](_0xc6dfbf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x474aa1['value']}]});});}),_0x3ee231['descriptionFactory']['registerElementLabel']('listItem',_0x2938c0=>c(_0x29e569,'ELEMENT_LIST_ITEM',_0x2938c0)),_0x3ee231['descriptionFactory']['registerDescriptionCallback'](_0x2af865=>{if('formatBlock'!=_0x2af865['type']&&'formatInline'!=_0x2af865['type'])return;const {data:_0x1a52ae}=_0x2af865;if(_0x1a52ae){if('numberedList'==_0x1a52ae['commandName']||'bulletedList'==_0x1a52ae['commandName']||'todoList'==_0x1a52ae['commandName'])switch(_0x1a52ae['commandName']['replace']('List','')){case'bulleted':return _0x4f7431(c(_0x29e569,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f7431(c(_0x29e569,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f7431(c(_0x29e569,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1a52ae['commandName'])return{'type':'format','content':c(_0x29e569,'*Indent:*\x20%0',c(_0x29e569,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1a52ae['commandName'])return{'type':'format','content':c(_0x29e569,'*Outdent:*\x20%0',c(_0x29e569,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1a52ae['commandName'])return _0x1a52ae['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x29e569,'*Check\x20item*')}:{'type':'format','content':c(_0x29e569,'*Uncheck\x20item*')};}function _0x4f7431(_0x28c06a){return{'type':'format','content':c(_0x29e569,'*Change\x20to:*\x20%0',_0x28c06a)};}});}}function Le(_0x22b641){const _0x1f6f33=_0x22b641['getAttribute']('listIndent');if(0x0==_0x1f6f33)return _0x22b641;let _0x470c33=_0x22b641;for(;_0x22b641['previousSibling']&&_0x22b641['previousSibling']['is']('element','listItem');){const _0x4410cd=_0x22b641['previousSibling']['getAttribute']('listIndent');if(_0x4410cd==_0x1f6f33)_0x470c33=_0x22b641['previousSibling'];else{if(_0x4410cd<_0x1f6f33)break;}_0x22b641=_0x22b641['previousSibling'];}return _0x470c33;}function Ee(_0x446bfc){const _0x280ec9=[];if(_0x446bfc['is']('element','listItem')&&_0x446bfc['getAttribute']('listIndent')>0x0){let _0x158593=_0x446bfc['nextSibling'];for(;_0x158593&&'listItem'==_0x158593['name']&&_0x158593['getAttribute']('listIndent')==_0x446bfc['getAttribute']('listIndent');)_0x280ec9['push'](_0x158593),_0x158593=_0x158593['nextSibling'];}return _0x280ec9;}class Q extends _0x3b35c4{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2b9544=this['editor']['config']['get']('list.properties'),_0x281755=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b9544['styles']&&_0x281755['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2b9544['reversed']&&_0x281755['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2b9544['startIndex']&&_0x281755['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x281755['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b76b9,_0x1b1496={}){const _0x517262=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b1923=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x517262['markMultiRangeBlockFormat'](_0x2b1923,{'commandName':'listStyle','commandParams':[{'type':_0x1b1496['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2ea2c0,_0x38ae1f={}){const _0x2cb2bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28ecb2=this['_getSuggestionBlocks'](_0x553731=>_0x553731['is']('element','listItem')&&'numbered'===_0x553731['getAttribute']('listType'));if(_0x28ecb2['length']<0x1)return;const _0x519ca5=_0x28ecb2['map'](_0x31995f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31995f,'before'),this['editor']['model']['createPositionAt'](_0x31995f,0x0)));this['editor']['model']['change'](()=>{_0x2cb2bb['markMultiRangeBlockFormat'](_0x519ca5,{'commandName':'listReversed','commandParams':[{'reversed':_0x38ae1f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xbeacdf,_0x10cb35={}){const _0x33cff7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34d58a=this['_getSuggestionBlocks'](_0x14238e=>_0x14238e['is']('element','listItem')&&'numbered'===_0x14238e['getAttribute']('listType'));if(_0x34d58a['length']<0x1)return;const _0x5ae15c=_0x34d58a['map'](_0x472f23=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x472f23,'before'),this['editor']['model']['createPositionAt'](_0x472f23,0x0)));this['editor']['model']['change'](()=>{_0x33cff7['markMultiRangeBlockFormat'](_0x5ae15c,{'commandName':'listStart','commandParams':[{'startIndex':_0x10cb35['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x29b792){if('formatBlock'!=_0x29b792['type']&&'formatInline'!=_0x29b792['type'])return;const _0x58310b=this['editor']['locale'],{data:_0x10ae37}=_0x29b792;if(!_0x10ae37)return;let _0x1c2c63,_0x516766;switch(_0x10ae37['commandName']){case'listStyle':_0x1c2c63='*Change\x20to:*\x20%0',_0x516766={'type':'format','content':c(_0x58310b,_0x1c2c63,c(_0x58310b,this['_getTranslationKeyForListStyle'](_0x10ae37['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1c2c63=_0x10ae37['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x516766={'type':'format','content':c(_0x58310b,_0x1c2c63)};break;case'listStart':_0x1c2c63='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x516766={'type':'format','content':c(_0x58310b,_0x1c2c63,_0x10ae37['commandParams'][0x0]['startIndex'])};}return _0x516766;}['_getSuggestionBlocksForListStyle'](){const _0x2cb492=this['editor']['plugins']['get']('LegacyListUtils');let _0x4770c5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4770c5[0x0]?.['is']('element','listItem')&&_0x4770c5['unshift'](..._0x2cb492['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4770c5[_0x4770c5['length']-0x1]?.['is']('element','listItem')&&_0x4770c5['push'](..._0x2cb492['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4770c5=[...new Set(_0x4770c5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4770c5=_0x4770c5['filter'](_0x16f66c=>_0x16f66c['is']('element','listItem'))),_0x4770c5;}['_getSuggestionBlocks'](_0x4528d9){const _0x35acfe=this['editor']['plugins']['get']('LegacyListUtils');let _0x40a626=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4528d9)['map'](_0x5f0164=>{const _0x4df2b2=this['editor']['model']['createPositionAt'](_0x5f0164,0x0);return[..._0x35acfe['getSiblingNodes'](_0x4df2b2,'backward'),..._0x35acfe['getSiblingNodes'](_0x4df2b2,'forward')];})['flat']();return _0x40a626=[...new Set(_0x40a626)],_0x40a626;}['_getTranslationKeyForListStyle'](_0x4979e5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4979e5)||'default')['toUpperCase']()+'_LIST_'+_0x4979e5['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3b35c4{['afterInit'](){const _0x4d743c=this['editor'];if(!_0x4d743c['plugins']['has']('MediaEmbedEditing'))return;const _0x17fe19=_0x4d743c['plugins']['get']('TrackChangesEditing'),_0x5e19a5=_0x4d743c['locale'];_0x17fe19['enableCommand']('mediaEmbed'),_0x17fe19['descriptionFactory']['registerElementLabel']('media',_0x4e0cd7=>c(_0x5e19a5,'ELEMENT_MEDIA',_0x4e0cd7)),_0x4d743c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4bea79,{writer:_0x861ee5,options:_0x8dba70})=>{if(_0x8dba70['showSuggestionHighlights'])return _0x861ee5['createEmptyElement']('div');},'converterPriority':'high'}),_0x4d743c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x188e3d,_0x4a3ab8,_0xc027f5)=>{_0xc027f5['options']['showSuggestionHighlights']&&_0x188e3d['stop']();},{'priority':'high'});}}class pt extends _0x3b35c4{['afterInit'](){const _0x2f2ec4=this['editor'];_0x2f2ec4['plugins']['has']('MentionEditing')&&_0x2f2ec4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3b35c4{['afterInit'](){const _0x35b382=this['editor'];if(!_0x35b382['plugins']['has']('MergeFieldsEditing'))return;const _0x210e13=_0x35b382['plugins']['get']('TrackChangesEditing'),_0x481deb=_0x35b382['locale'];_0x210e13['enableCommand']('insertMergeField'),_0x210e13['enableCommand']('insertMergeFieldBlock'),_0x210e13['enableCommand']('insertMergeFieldImage'),_0x210e13['descriptionFactory']['registerElementLabel']('mergeField',_0x4ddfcc=>c(_0x481deb,'ELEMENT_MERGE_FIELD',_0x4ddfcc)),_0x210e13['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x19d52d=>c(_0x481deb,'ELEMENT_MERGE_FIELD',_0x19d52d)),_0x210e13['descriptionFactory']['registerDescriptionCallback'](_0x2279d2=>{if('insertion'!=_0x2279d2['type']&&'deletion'!=_0x2279d2['type'])return;const _0x292237=_0x2279d2['getContainedElement']();if(null==_0x292237)return;const _0x1e69a5=_0x35b382['plugins']['get']('MergeFieldsEditing');let _0x12e4b5;switch(_0x1e69a5['getMergeFieldType'](_0x292237)){case null:return;case'image':{const _0x2978d5=_0x1e69a5['unwrapAffixes'](_0x292237['getAttribute']('src'));_0x12e4b5=_0x1e69a5['getLabel'](_0x2978d5)||_0x2978d5;break;}default:{const _0x415277=_0x292237['getAttribute']('id');_0x12e4b5=_0x1e69a5['getLabel'](_0x415277)||_0x415277;break;}}return'insertion'==_0x2279d2['type']?{'type':'insertion','content':c(_0x481deb,'*Insert:*\x20%0','\x22'+_0x12e4b5+'\x22\x20'+c(_0x481deb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x481deb,'*Remove:*\x20%0','\x22'+_0x12e4b5+'\x22\x20'+c(_0x481deb,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3b35c4{['afterInit'](){const _0x405e59=this['editor'],_0x569fa7=_0x405e59['plugins']['get']('TrackChangesEditing');_0x405e59['plugins']['has']('MultiLevelList')&&(_0x569fa7['enableDefaultAttributesIntegration']('multiLevelList'),_0x569fa7['registerBlockAttribute']('listMarkerStyle'),_0x569fa7['descriptionFactory']['registerDescriptionCallback'](_0x9d71db=>this['handleDescriptions'](_0x9d71db)));}['handleDescriptions'](_0x4c63eb){const _0x4b6fb5=this['editor']['locale'],{data:_0x3f62c2}=_0x4c63eb,_0x1c117a={'type':'format','content':''};if(_0x3f62c2&&'listMarkerStyle'==_0x3f62c2['key']){if(!_0x3f62c2['oldValue'])return{'type':'format','content':c(_0x4b6fb5,'*Set\x20format:*\x20%0',c(_0x4b6fb5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f62c2['newValue']+')'};if(!_0x3f62c2['newValue']){let _0x61630b=_0x4c63eb['head'];for(;_0x61630b;){if(_0x61630b['data']&&'listType'==_0x61630b['data']['key']&&_0x61630b['data']['newValue'])return _0x1c117a;_0x61630b=_0x61630b['next'];}return{'type':'format','content':c(_0x4b6fb5,'*Remove\x20format:*\x20%0',c(_0x4b6fb5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f62c2['oldValue']+')'};}}}}class bt extends _0x3b35c4{['afterInit'](){const _0x312e21=this['editor'];if(!_0x312e21['plugins']['has']('PageBreakEditing'))return;_0x312e21['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc2261a=_0x312e21['plugins']['get']('TrackChangesEditing'),_0x3720ae=_0x312e21['locale'];_0xc2261a['descriptionFactory']['registerElementLabel']('pageBreak',_0xd74a9d=>c(_0x3720ae,'ELEMENT_PAGE_BREAK',_0xd74a9d));}}class yt extends _0x3b35c4{['afterInit'](){const _0x3eb7e7=this['editor'];if(!_0x3eb7e7['plugins']['has']('Paragraph'))return;const _0x23b12a=_0x3eb7e7['locale'],_0x4eae17=_0x3eb7e7['plugins']['get']('TrackChangesEditing');_0x4eae17['descriptionFactory']['registerElementLabel']('paragraph',_0x1afa8f=>c(_0x23b12a,'ELEMENT_PARAGRAPH',_0x1afa8f)),_0x4eae17['enableDefaultAttributesIntegration']('paragraph'),_0x4eae17['enableCommand']('insertParagraph'),_0x3eb7e7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3eb7e7),{'priority':'highest'}),_0x3eb7e7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3bc2fb,_0x3df55a,_0x3a053a)=>{_0x3a053a['options']['showSuggestionHighlights']&&nr(_0x3eb7e7,{'showActiveMarker':!0x1})(_0x3bc2fb,_0x3df55a,_0x3a053a);},{'priority':'highest'});const _0x573372=_0x4eae17['descriptionFactory'];_0x573372['registerDescriptionCallback'](_0x5e9229=>{if('insertion'!==_0x5e9229['type'])return;const {start:_0x31e709,end:_0xdcdf85}=_0x5e9229['getFirstRange']();if(!_0x31e709['isTouching'](_0xdcdf85)||!_0x31e709['nodeAfter'])return;const _0x469eff=_0x3eb7e7['model']['schema'],_0xec9b27=_0x31e709['nodeAfter'];return _0x469eff['isBlock'](_0xec9b27)&&!_0x469eff['isLimit'](_0xec9b27)&&_0x469eff['checkChild'](_0xec9b27,'$text')?{'type':'insertion','content':c(_0x23b12a,'*Insert:*\x20%0',_0x573372['getItemLabel'](_0xec9b27,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a7bb1=this['editor'],_0x54ac6a=_0x3a7bb1['locale'];_0x3a7bb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b719d=>{if('formatBlock'!=_0x5b719d['type'])return;const {data:_0x39bd53}=_0x5b719d;return _0x39bd53&&'paragraph'==_0x39bd53['commandName']?{'type':'format','content':c(_0x54ac6a,'*Change\x20to:*\x20%0',c(_0x54ac6a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x9a59b1,{showActiveMarker:_0x444491=!0x0}={}){return(_0x3c1131,_0x4dce7c,_0x2c7fa1)=>{const _0x1b7715=_0x9a59b1['plugins']['get']('TrackChangesEditing'),_0x5490ef=_0x4dce7c['markerRange']['start'],_0x1d0554=_0x4dce7c['markerRange']['end'],_0x4f4610=_0x9a59b1['model']['schema'];if(!_0x5490ef['isTouching'](_0x1d0554)||!_0x5490ef['nodeAfter'])return;const _0x4a498d=_0x5490ef['nodeAfter'];if(_0x4f4610['isBlock'](_0x4a498d)&&!_0x4f4610['isLimit'](_0x4a498d)&&_0x4f4610['checkChild'](_0x4a498d,'$text')){if(!_0x2c7fa1['consumable']['consume'](_0x4dce7c['markerRange'],_0x3c1131['name']))return;const {id:_0x380fb2,authorId:_0x3eb877}=_0x1b7715['_splitMarkerName'](_0x4dce7c['markerName']),_0x1982e1=_0x2c7fa1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x380fb2,'data-author-id':_0x3eb877}),_0x1d9557=_0x2c7fa1['mapper']['toViewPosition'](_0x1d0554);_0x444491&&_0x1b7715['activeMarkers']['includes'](_0x4dce7c['markerName'])&&_0x2c7fa1['writer']['addClass']('ck-suggestion-marker--active',_0x1982e1),_0x2c7fa1['writer']['insert'](_0x1d9557,_0x1982e1),_0x2c7fa1['mapper']['bindElementToMarker'](_0x1982e1,_0x4dce7c['markerName']);}};}class St extends _0x3b35c4{['afterInit'](){const _0x3bf53d=this['editor'];_0x3bf53d['commands']['get']('replaceSource')&&_0x3bf53d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x3b35c4{['afterInit'](){const _0xd69761=this['editor'];if(!_0xd69761['plugins']['has']('RemoveFormatEditing'))return;_0xd69761['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7edf9a=this['editor'];_0x7edf9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d7916=>{if('formatBlock'!=_0x4d7916['type']&&'formatInline'!=_0x4d7916['type'])return;const {data:_0x944d17}=_0x4d7916;return _0x944d17&&'removeFormat'==_0x944d17['commandName']?{'type':'format','content':c(_0x7edf9a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x3b35c4{['afterInit'](){const _0x19104e=this['editor'];if(!_0x19104e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2ffe8f=_0x19104e['plugins']['get']('TrackChangesEditing');_0x2ffe8f['enableCommand']('goToPreviousRestrictedEditingException'),_0x2ffe8f['enableCommand']('goToNextRestrictedEditingException');const _0x228cfe=_0x19104e['plugins']['get']('RestrictedEditingModeEditing');_0x228cfe['enableCommand']('trackChanges'),_0x228cfe['enableCommand']('acceptSuggestion'),_0x228cfe['enableCommand']('discardSuggestion'),_0x228cfe['enableCommand']('acceptAllSuggestions'),_0x228cfe['enableCommand']('discardAllSuggestions'),_0x228cfe['enableCommand']('acceptSelectedSuggestions'),_0x228cfe['enableCommand']('discardSelectedSuggestions');}}class At extends _0x3b35c4{['afterInit'](){const _0x223351=this['editor'];if(!_0x223351['plugins']['has']('ShiftEnter'))return;const _0x4e8842=_0x223351['plugins']['get']('TrackChangesEditing');_0x4e8842['enableCommand']('shiftEnter'),_0x223351['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x223351),{'priority':'high'}),_0x223351['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x223351),{'priority':'high'}),_0x223351['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x32fab3,_0x175c9c,_0x1a3e5d)=>{_0x1a3e5d['options']['showSuggestionHighlights']&&je(_0x223351,{'showActiveMarker':!0x1})(_0x32fab3,_0x175c9c,_0x1a3e5d);}),_0x4e8842['descriptionFactory']['registerElementLabel']('softBreak',_0xf76745=>c(_0x223351['locale'],'ELEMENT_LINE_BREAK',_0xf76745));}}function je(_0xc4dbd,{showActiveMarker:_0xcbf24f=!0x0}={}){return(_0x39e33a,_0x558d54,_0x4e055b)=>{const _0x34c3b5=_0xc4dbd['plugins']['get']('TrackChangesEditing');if(!_0x4e055b['consumable']['test'](_0x558d54['markerRange'],_0x39e33a['name']))return;const _0x19fcc2=_0xc4dbd['model'];for(const _0xdd7f6b of _0x558d54['markerRange']['getItems']()){if(!_0xdd7f6b['is']('element','softBreak'))continue;const _0x1537da='deletion'==_0x558d54['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2ab0e7,authorId:_0x4ebd53}=_0x34c3b5['_splitMarkerName'](_0x558d54['markerName']),_0x150d18=_0x4e055b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1537da,'data-suggestion':_0x2ab0e7,'data-author-id':_0x4ebd53}),_0x348fa9=_0x4e055b['mapper']['toViewPosition'](_0x19fcc2['createPositionBefore'](_0xdd7f6b));_0xcbf24f&&_0x34c3b5['activeMarkers']['includes'](_0x558d54['markerName'])&&_0x4e055b['writer']['addClass']('ck-suggestion-marker--active',_0x150d18),_0x4e055b['writer']['insert'](_0x348fa9,_0x150d18),_0x4e055b['mapper']['bindElementToMarker'](_0x150d18,_0x558d54['markerName']);}};}class _t extends _0x3b35c4{['afterInit'](){const _0x2643bf=this['editor'],_0x5f2167=_0x2643bf['model'],_0x2b741f=_0x2643bf['locale'];if(!_0x2643bf['plugins']['has']('StandardEditingModeEditing'))return;const _0x197476=_0x2643bf['plugins']['get']('TrackChangesEditing'),_0x2ee02c='restrictedEditingException',_0x283335=_0x2643bf['commands']['get'](_0x2ee02c);_0x197476['enableCommand'](_0x2ee02c,(_0x48f457,_0x4ed909={})=>{const _0x438ab8=_0x5f2167['document']['selection'];if(_0x438ab8['isCollapsed'])return void _0x48f457(_0x4ed909);const _0x1d9250=void 0x0!==_0x4ed909['forceValue']?_0x4ed909['forceValue']:!_0x283335['value'];_0x5f2167['change'](()=>{const _0x55bce4=Array['from'](_0x438ab8['getRanges']());for(const _0x5dda88 of _0x55bce4){const _0x136d0=_0x1d9250?[_0x5dda88]:io(_0x2ee02c,_0x5dda88,_0x5f2167);for(const _0x444c52 of _0x136d0)_0x197476['markInlineFormat'](_0x444c52,{'commandName':_0x2ee02c,'commandParams':[{'forceValue':_0x1d9250}]});}});}),_0x197476['descriptionFactory']['registerDescriptionCallback'](_0x3f492e=>{if('formatBlock'!=_0x3f492e['type']&&'formatInline'!=_0x3f492e['type'])return;const {data:_0x17491b}=_0x3f492e;return _0x17491b&&_0x17491b['commandName']==_0x2ee02c?_0x17491b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2b741f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x2b741f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3b35c4{['afterInit'](){const _0x132755=this['editor'];if(!_0x132755['plugins']['has']('Style')||!_0x132755['plugins']['has']('DataSchema'))return;const _0x4f48ae=_0x132755['plugins']['get']('TrackChangesEditing'),_0x3316a1=_0x132755['locale'],_0x25e529=_0x132755['config']['get']('style')||{},_0x325418=_0x132755['plugins']['get']('GeneralHtmlSupport'),_0x11fe9d=_0x132755['plugins']['get']('StyleUtils')['normalizeConfig'](_0x132755['plugins']['get']('DataSchema'),_0x25e529['definitions']);_0x4f48ae['enableDefaultAttributesIntegration']('style');const _0x2ad794=new Set();for(const _0x4df11b of _0x11fe9d['block']){const _0x4285e8=_0x325418['getGhsAttributeNameForElement'](_0x4df11b['element']);_0x2ad794['add'](_0x4285e8);}const _0x26bbd4=new Set();for(const _0x4cd40b of _0x11fe9d['inline']){const _0x32b527=_0x325418['getGhsAttributeNameForElement'](_0x4cd40b['element']);_0x26bbd4['add'](_0x32b527);for(const _0x511ec3 of _0x4cd40b['ghsAttributes'])_0x26bbd4['add'](_0x511ec3);}for(const _0x43c411 of _0x2ad794)_0x4f48ae['registerBlockAttribute'](_0x43c411),_0x4f48ae['descriptionFactory']['registerAttributeLabel'](_0x43c411,c(_0x3316a1,'FORMAT_STYLE'));for(const _0x5099e5 of _0x26bbd4)_0x4f48ae['registerInlineAttribute'](_0x5099e5),_0x4f48ae['descriptionFactory']['registerAttributeLabel'](_0x5099e5,c(_0x3316a1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35877a=this['editor'],_0x5dc47f=_0x35877a['locale'];_0x35877a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2680e7=>{if('formatBlock'!=_0x2680e7['type']&&'formatInline'!=_0x2680e7['type'])return;const {data:_0x224c75}=_0x2680e7;return _0x224c75&&'style'===_0x224c75['commandName']?_0x224c75['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5dc47f,'*Set\x20format:*\x20%0',_0x224c75['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5dc47f,'*Remove\x20format:*\x20%0',_0x224c75['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3b35c4{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x366530){super(_0x366530),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x23875d=this['editor'],_0x53a201=_0x23875d['model']['document']['selection'];if(!_0x23875d['plugins']['has']('TableEditing'))return;const _0x1765cb=_0x23875d['locale'],_0x287cea=_0x23875d['plugins']['get']('TrackChangesEditing'),_0x104bb0=_0x23875d['plugins']['get']('TableUtils');_0x287cea['descriptionFactory']['registerElementLabel']('table',_0x1fca2d=>c(_0x1765cb,'ELEMENT_TABLE',_0x1fca2d)),this['_setupColumnsRowsFixing'](),_0x287cea['enableCommand']('insertTable'),_0x287cea['enableCommand']('selectTableRow'),_0x287cea['enableCommand']('selectTableColumn');for(const _0x32952b of['insertTableRowAbove','insertTableRowBelow']){const _0x351cdc=_0x23875d['commands']['get'](_0x32952b);_0x287cea['enableCommand'](_0x32952b,_0x1c7111=>{_0x23875d['model']['change'](_0x42728f=>{_0x1c7111();const _0x25d3ca='above'===_0x351cdc['order'],_0x170161=_0x104bb0['getSelectionAffectedTableCells'](_0x53a201),_0xdeaa9d=_0x104bb0['getRowIndexes'](_0x170161),_0xef48e8=_0x25d3ca?_0xdeaa9d['first']-0x1:_0xdeaa9d['last']+0x1,_0x3c484e=_0x170161[0x0]['findAncestor']('table'),_0x43e40c=_0x104bb0['createTableWalker'](_0x3c484e,{'startRow':_0xef48e8,'endRow':_0xef48e8}),_0x5e9b93=Array['from'](_0x43e40c)['map'](_0x2cea72=>_0x42728f['createRangeOn'](_0x2cea72['cell']));_0x287cea['markMultiRangeInsertion'](_0x5e9b93,'tableRow');});});}for(const _0x56ab6f of['insertTableColumnLeft','insertTableColumnRight']){const _0x43cb37=_0x23875d['commands']['get'](_0x56ab6f);_0x287cea['enableCommand'](_0x56ab6f,_0x368b37=>{_0x23875d['model']['change'](_0x1c1b6d=>{_0x368b37();const _0x31bd70='left'===_0x43cb37['order'],_0x209b0e=_0x104bb0['getSelectionAffectedTableCells'](_0x53a201),_0x2c3394=_0x104bb0['getColumnIndexes'](_0x209b0e),_0x4ecc1e=_0x31bd70?_0x2c3394['first']-0x1:_0x2c3394['last']+0x1,_0x5a61bf=_0x209b0e[0x0]['findAncestor']('table'),_0x5855f6=_0x104bb0['createTableWalker'](_0x5a61bf,{'startRow':0x0,'column':_0x4ecc1e,'includeAllSlots':!0x1}),_0x37f3c2=Array['from'](_0x5855f6)['map'](_0x56566f=>_0x1c1b6d['createRangeOn'](_0x56566f['cell']));_0x287cea['markMultiRangeInsertion'](_0x37f3c2,'tableColumn');});});}for(const _0x399c32 of['removeTableRow','removeTableColumn']){const _0x13c775=_0x399c32['substr'](0xb),_0xf24512=_0x13c775['toLowerCase'](),_0x54a928=_0xf24512['substr'](0x0,0x3)+'span',_0x25c5c5='table'+_0x13c775,_0x44d9b3='min'+_0x13c775,_0x591efb='max'+_0x13c775;_0x287cea['enableCommand'](_0x399c32,()=>{_0x23875d['model']['change'](_0x167af9=>{const _0x3bff07=_0x104bb0['getSelectionAffectedTableCells'](_0x53a201),_0xd6420d=_0x3bff07[0x0]['findAncestor']('table');let _0x4ce870;if('removeTableRow'==_0x399c32){const _0x4df297=_0x104bb0['getRowIndexes'](_0x3bff07);_0x4ce870={'startRow':_0x4df297['first'],'endRow':_0x4df297['last'],'includeAllSlots':!0x0};}else{const _0x10435c=_0x104bb0['getColumnIndexes'](_0x3bff07);_0x4ce870={'startColumn':_0x10435c['first'],'endColumn':_0x10435c['last'],'includeAllSlots':!0x0};}const _0x365329=_0x104bb0['createTableWalker'](_0xd6420d,_0x4ce870),_0x4453cc=Array['from'](_0x365329)['map'](({cell:_0x50c7f9})=>_0x50c7f9),_0x51e788=xe(_0x4453cc['filter'](_0x23aaa4=>_0x23aaa4['hasAttribute'](_0x54a928))),_0x2031a9=xe(_0x4453cc['filter'](_0x2b6729=>!_0x2b6729['hasAttribute'](_0x54a928)))['map'](_0x17cadd=>_0x167af9['createRangeOn'](_0x17cadd)),_0x174b7d=_0x287cea['markMultiRangeDeletion'](_0x2031a9,_0x25c5c5);if(_0x174b7d&&('tableRow'==_0x174b7d['subType']||'tableColumn'==_0x174b7d['subType'])){const _0x1aeeb0=this['_getSuggestionCoords'](_0x174b7d);for(const _0xf4cc74 of _0x51e788){const _0x38e673=_0x167af9['createRangeOn'](_0xf4cc74),_0x371fcc=_0x104bb0['getCellLocation'](_0xf4cc74),_0x370fb0=_0xf4cc74['getAttribute'](_0x54a928)-0x1,_0xb1a24f=_0x1aeeb0[_0x44d9b3],_0x2986d0=_0x1aeeb0[_0x591efb];_0xb1a24f<=_0x371fcc[_0xf24512]&&_0x371fcc[_0xf24512]+_0x370fb0<=_0x2986d0&&_0x174b7d['addRange'](_0x38e673);}}});});}function _0x162c1c(_0x34d9d7){const _0x33f6d9=Array['from'](_0x53a201['getRanges']())['map'](_0x252486=>_0x268add['fromRange'](_0x252486));_0x23875d['model']['change'](_0x1d4217=>{const _0x53e76c=_0x1d4217['batch'];_0x34d9d7=_0x34d9d7['filter'](_0x449cc5=>'$graveyard'!=_0x449cc5['root']['rootName']),_0x1d4217['setSelection'](_0x34d9d7),_0x23875d['commands']['get']('removeTableRow')['refresh'](),_0x23875d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x23875d['model']['enqueueChange'](()=>{_0x23875d['model']['enqueueChange'](_0x53e76c,_0xf664c2=>{const _0x133e7a=_0x33f6d9['filter'](_0x5000dc=>'$graveyard'!=_0x5000dc['root']['rootName']);_0x133e7a['length']>0x0&&_0xf664c2['setSelection'](_0x133e7a);for(const _0x23d9b2 of _0x33f6d9)_0x23d9b2['detach']();});});});}function _0x4be281(_0x21466d){_0x23875d['model']['change'](_0x208dc9=>{const _0xe8bb80=Array['from'](_0x53a201['getRanges']())['map'](_0x1b08d8=>_0x268add['fromRange'](_0x1b08d8)),_0x467aa5=[];for(const _0xc10b9d of _0x21466d)for(const _0x4fb9bb of _0xc10b9d['getItems']({'shallow':!0x0}))_0x467aa5['push'](_0x4fb9bb);for(const _0x8d3cb2 of _0x467aa5)'$graveyard'!=_0x8d3cb2['root']['rootName']&&(_0x208dc9['setSelection'](_0x208dc9['createPositionAt'](_0x8d3cb2,0x0)),_0x23875d['commands']['get']('removeTableColumn')['refresh'](),_0x23875d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x162b47=_0xe8bb80['filter'](_0x5ee108=>'$graveyard'!=_0x5ee108['root']['rootName']);_0x162b47['length']>0x0&&_0x208dc9['setSelection'](_0x162b47);for(const _0x4c7190 of _0xe8bb80)_0x4c7190['detach']();});}function _0x1fe18a(_0x2552f8,_0x5189d6){return _0x5189d6['every'](_0x1e9127=>_0x2552f8['some'](_0x10d267=>_0x10d267['end']['isEqual'](_0x1e9127['start'])||_0x1e9127['end']['isEqual'](_0x10d267['start'])));}function _0x177abb(_0x2babb4,_0x370571){return!_0x2babb4['some'](_0x4a6c8a=>_0x370571['some'](_0x420cf2=>_0x4a6c8a['isIntersecting'](_0x420cf2)))&&_0x2babb4['some'](_0x1c1091=>_0x370571['some'](_0x186eae=>_0x1c1091['end']['isTouching'](_0x186eae['start'])));}_0x23875d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x39a7a8,_0xda8c71,_0x51c87e)=>{if(!_0x51c87e['options']['showSuggestionHighlights'])return;const _0x3351b3=_0xda8c71['item'];if(!_0x3351b3||!_0x3351b3['is']('element','tableCell'))return;const _0x4cf970=_0x51c87e['mapper']['toViewElement'](_0x3351b3);if(_0x4cf970){const {id:_0x476f70,authorId:_0x32aeaf}=_0x287cea['_splitMarkerName'](_0xda8c71['markerName']);_0x30dddd(_0x4cf970,_0x51c87e['writer'],(_0x27febd,_0x3b5559,_0x597b28)=>{_0x597b28['addClass'](_0x3a9362(_0x3b5559['classes']),_0x27febd),_0x597b28['setAttribute']('data-suggestion-id',_0x476f70,_0x27febd),_0x597b28['setAttribute']('data-author-id',_0x32aeaf,_0x27febd);},(_0x311bcb,_0x110c75,_0xd6e1b6)=>{_0xd6e1b6['removeClass'](_0x3a9362(_0x110c75['classes']),_0x311bcb),_0xd6e1b6['removeAttribute']('data-suggestion-id',_0x311bcb),_0xd6e1b6['removeAttribute']('data-author-id',_0x311bcb);});}},{'priority':'highest'}),_0x287cea['descriptionFactory']['registerDescriptionCallback'](_0xaf7d17=>{if('insertion'!=_0xaf7d17['type']&&'deletion'!=_0xaf7d17['type'])return;const _0x470ce3=_0xaf7d17['getContainedElement']();if(null!=_0x470ce3&&_0x470ce3['is']('element','table')){if('insertion'==_0xaf7d17['type']){const _0x29ef0e=_0xaf7d17['getItems']()['filter'](_0x52f3f5=>_0x52f3f5['is']('$textProxy'))['map'](_0x14267e=>_0x14267e['data']);if(_0x29ef0e['length'])return{'type':'insertion','content':c(_0x1765cb,'*Insert:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x29ef0e['join']('\x20')+'\x22'))};}if('deletion'==_0xaf7d17['type']){const _0xa9921=_0xaf7d17['getItems']()['filter'](_0x351a4a=>_0x351a4a['is']('$textProxy'))['map'](_0x157f89=>_0x157f89['data']);if(_0xa9921['length'])return{'type':'deletion','content':c(_0x1765cb,'*Remove:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xa9921['join']('\x20')+'\x22'))};}}}),_0x287cea['descriptionFactory']['registerDescriptionCallback'](_0x12fd60=>{if('tableRow'==_0x12fd60['subType']){const _0x5ee1ae=_0x12fd60['getItems']()['filter'](_0x2f45b6=>_0x2f45b6['is']('$textProxy'))['map'](_0x103c64=>_0x103c64['data']),_0x56f2a3=this['_getSuggestionCoords'](_0x12fd60),_0x20e165=_0x56f2a3['maxRow']-_0x56f2a3['minRow']+0x1;if('insertion'==_0x12fd60['type'])return _0x5ee1ae['length']?{'type':'insertion','content':c(_0x1765cb,'*Insert:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x20e165,'\x22'+_0x5ee1ae['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1765cb,'*Insert:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_ROW',_0x20e165))};if('deletion'==_0x12fd60['type'])return _0x5ee1ae['length']?{'type':'deletion','content':c(_0x1765cb,'*Remove:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x20e165,'\x22'+_0x5ee1ae['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1765cb,'*Remove:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_ROW',_0x20e165))};}if('tableColumn'==_0x12fd60['subType']){const _0x1070ef=_0x12fd60['getItems']()['filter'](_0x2b4c75=>_0x2b4c75['is']('$textProxy'))['map'](_0x4b281c=>_0x4b281c['data']),_0x476b92=this['_getSuggestionCoords'](_0x12fd60),_0x4b3987=_0x476b92['maxColumn']-_0x476b92['minColumn']+0x1;if('insertion'==_0x12fd60['type'])return _0x1070ef['length']?{'type':'insertion','content':c(_0x1765cb,'*Insert:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b3987,'\x22'+_0x1070ef['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1765cb,'*Insert:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_COLUMN',_0x4b3987))};if('deletion'==_0x12fd60['type'])return _0x1070ef['length']?{'type':'deletion','content':c(_0x1765cb,'*Remove:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b3987,'\x22'+_0x1070ef['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1765cb,'*Remove:*\x20%0',c(_0x1765cb,'ELEMENT_TABLE_COLUMN',_0x4b3987))};}}),_0x287cea['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x162c1c),_0x287cea['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x162c1c),_0x287cea['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4be281),_0x287cea['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4be281),_0x287cea['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1fe18a),_0x287cea['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1fe18a),_0x287cea['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x177abb),_0x287cea['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x177abb);}['_acceptFormatSuggestionCallbackFactory'](){const _0x88ac82=this['editor'],_0x508b0d=_0x88ac82['model']['document']['selection'];return(_0x49759b,_0x379d4a)=>{_0x88ac82['model']['change'](_0x6060d7=>{const {commandName:_0x5331d5,commandParams:_0x57da76}=_0x379d4a;let _0x2a45af=_0x49759b[0x0]['end']['nodeBefore'];_0x57da76&&_0x57da76[0x0]&&!0x1===_0x57da76[0x0]['forceValue']&&(_0x2a45af=_0x49759b[0x0]['start']['nodeAfter']);const _0x12f937=_0x6060d7['createRangeIn'](_0x2a45af);if('$graveyard'==_0x12f937['root']['rootName'])return;const _0x36ac18=Array['from'](_0x508b0d['getRanges']())['map'](_0x405bc0=>_0x268add['fromRange'](_0x405bc0));_0x6060d7['setSelection'](_0x12f937),_0x88ac82['commands']['get'](_0x5331d5)['refresh'](),_0x57da76['push']({'forceDefaultExecution':!0x0}),_0x88ac82['execute'](_0x5331d5,..._0x57da76);const _0x2e0ee6=_0x36ac18['filter'](_0x19a84f=>'$graveyard'!=_0x19a84f['root']['rootName']);_0x2e0ee6['length']>0x0&&_0x6060d7['setSelection'](_0x2e0ee6);for(const _0x2fd20c of _0x36ac18)_0x2fd20c['detach']();});};}['_getCoordsForCells'](_0x4fb89c){const _0x27c7e3=this['editor']['plugins']['get']('TableUtils');let _0x1a8250=Number['MAX_SAFE_INTEGER'],_0xcbeb86=Number['MIN_SAFE_INTEGER'],_0x186e71=Number['MAX_SAFE_INTEGER'],_0x1c03d9=Number['MIN_SAFE_INTEGER'];for(const _0x49bccd of _0x4fb89c){if('$graveyard'==_0x49bccd['root']['rootName'])continue;const {row:_0x4dcb03,column:_0x566b8e}=_0x27c7e3['getCellLocation'](_0x49bccd),_0x34e66d=_0x49bccd['hasAttribute']('rowspan')?_0x49bccd['getAttribute']('rowspan')-0x1:0x0,_0x84425a=_0x49bccd['hasAttribute']('colspan')?_0x49bccd['getAttribute']('colspan')-0x1:0x0;_0x1a8250=_0x4dcb03<_0x1a8250?_0x4dcb03:_0x1a8250,_0xcbeb86=_0x4dcb03+_0x34e66d>_0xcbeb86?_0x4dcb03+_0x34e66d:_0xcbeb86,_0x186e71=_0x566b8e<_0x186e71?_0x566b8e:_0x186e71,_0x1c03d9=_0x566b8e+_0x84425a>_0x1c03d9?_0x566b8e+_0x84425a:_0x1c03d9;}return{'minRow':_0x1a8250,'maxRow':_0xcbeb86,'minColumn':_0x186e71,'maxColumn':_0x1c03d9};}['_setupColumnsRowsFixing'](){const _0x8971b4=this['editor'],_0x5444ff=_0x8971b4['plugins']['get']('TrackChangesEditing'),_0x1ac858=_0x8971b4['plugins']['get']('TableUtils');_0x8971b4['model']['document']['on']('change:data',()=>{const _0x64c0cf=Array['from'](_0x8971b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x254a00,data:_0x1acfb8}of _0x64c0cf){const {group:_0x26274a,id:_0x3421c2,subType:_0x32d872}=_0x5444ff['_splitMarkerName'](_0x254a00);if('suggestion'!=_0x26274a)continue;if(null!=_0x1acfb8['oldRange'])continue;const _0x394cf8=_0x5444ff['getSuggestion'](_0x3421c2);this['_tablePostFixingSubtypes']['includes'](_0x32d872)&&this['_tableSuggestions']['add'](_0x394cf8);}},{'priority':'low'});const _0x1535f0=(_0x3fa4e3,_0xb3d712)=>{let _0xb02a98=!0x1;const _0x30a9e9=_0xb3d712['createRangeOn'](_0x3fa4e3),_0xbf54fc=_0x3fa4e3['findAncestor']('table'),_0x32c74d=_0x1ac858['getCellLocation'](_0x3fa4e3);for(const _0x15c1e1 of this['_tableSuggestions']){const _0x3000dc=_0x15c1e1['subType'],_0x436cf4=_0x3000dc['startsWith']('tablePaste'),_0xed9b85=_0x3000dc['substr'](_0x436cf4?0xa:0x5),_0x34483b=_0xed9b85['toLowerCase'](),_0x27ee3c=_0x34483b['substr'](0x0,0x3)+'span',_0x452090='min'+_0xed9b85,_0x1c79fe='max'+_0xed9b85;if(!_0x15c1e1['isInContent'])continue;if(_0xbf54fc!=_0x15c1e1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x15c1e1['isIntersectingWithRange'](_0x30a9e9))continue;const _0x118959=_0x3fa4e3['hasAttribute'](_0x27ee3c)?_0x3fa4e3['getAttribute'](_0x27ee3c)-0x1:0x0,_0x18bb30=this['_getSuggestionCoords'](_0x15c1e1),_0x5ddb83=_0x18bb30[_0x452090],_0x33bd8d=_0x18bb30[_0x1c79fe];_0x5ddb83<=_0x32c74d[_0x34483b]&&_0x32c74d[_0x34483b]+_0x118959<=_0x33bd8d&&(_0x15c1e1['addRange'](_0x30a9e9),_0xb02a98=!0x0);}return _0xb02a98;};_0x8971b4['model']['document']['registerPostFixer'](_0x111be4=>{let _0x5ee211=!0x1;for(const _0x544faf of _0x8971b4['model']['document']['differ']['getChanges']())if('insert'==_0x544faf['type']){if('tableRow'==_0x544faf['name']){for(const _0x18cc32 of _0x544faf['position']['nodeAfter']['getChildren']())_0x5ee211=_0x5ee211||_0x1535f0(_0x18cc32,_0x111be4);}else'tableCell'==_0x544faf['name']&&(_0x5ee211=_0x5ee211||_0x1535f0(_0x544faf['position']['nodeAfter'],_0x111be4));}return _0x5ee211;});}['_getSuggestionCoords'](_0x564505){return this['_getCoordsForCells'](_0x564505['getRanges']()['map'](_0x140a58=>_0x140a58['start']['nodeAfter']));}}function xe(_0x176279){return Array['from'](new Set(_0x176279)['values']());}class Nt extends _0x3b35c4{static get['requires'](){return[Ct];}['afterInit'](){const _0x2bcd1e=this['editor'],_0x56225c=_0x2bcd1e['model']['document']['selection'],_0x589bbf=_0x2bcd1e['locale'];if(!_0x2bcd1e['plugins']['has']('TableEditing'))return;const _0x3bb212=_0x2bcd1e['plugins']['get']('TrackChangesEditing'),_0x55ffb8=_0x2bcd1e['plugins']['get']('TableUtils'),_0x206914=_0x2bcd1e['plugins']['get'](Ct);_0x206914['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3bb212['enableCommand']('mergeTableCells',()=>{const _0x1d7ac6=_0x55ffb8['getSelectionAffectedTableCells'](_0x2bcd1e['model']['document']['selection']);_0x2bcd1e['model']['change'](()=>{_0x3bb212['markMultiRangeBlockFormat'](_0x1d7ac6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2bcd1e['commands']['get']('mergeTableCells')['on']('execute',(_0x3de576,_0x6f5da2)=>{_0x2bcd1e['commands']['get']('trackChanges')['value']&&(_0x6f5da2['length']>0x0&&_0x6f5da2[_0x6f5da2['length']-0x1]&&_0x6f5da2[_0x6f5da2['length']-0x1]['forceDefaultExecution']||_0x3bb212['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3de576['stop']());},{'priority':'highest'});for(const _0x1272b4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x557eae=_0x2bcd1e['commands']['get'](_0x1272b4);_0x3bb212['enableCommand'](_0x1272b4,()=>{const _0x3a6669=_0x2bcd1e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2bb5cb=>_0x2bb5cb['is']('element','tableCell')),_0x41ad0e=_0x557eae['value'];_0x2bcd1e['model']['change'](()=>{_0x3bb212['markMultiRangeBlockFormat']([_0x3a6669,_0x41ad0e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x29a836 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4e2469=_0x2bcd1e['commands']['get'](_0x29a836);_0x3bb212['enableCommand'](_0x29a836,()=>{const _0x1573d1=_0x55ffb8['getSelectionAffectedTableCells'](_0x2bcd1e['model']['document']['selection'])[0x0],_0x3cebf8=_0x1573d1['findAncestor']('table'),{column:_0x3a5002,row:_0x4770a7}=_0x55ffb8['getCellLocation'](_0x1573d1);let _0x1b2f89=[];if('horizontally'==_0x4e2469['direction']){const _0x3505a1=_0x55ffb8['createTableWalker'](_0x3cebf8,{'startRow':_0x4770a7,'endRow':_0x4770a7,'includeAllSlots':!0x0});_0x1b2f89=Array['from'](_0x3505a1)['map'](_0x14e25e=>_0x14e25e['cell']);}else{const _0x172067=_0x55ffb8['createTableWalker'](_0x3cebf8,{'column':_0x3a5002,'includeAllSlots':!0x0});_0x1b2f89=Array['from'](_0x172067)['map'](_0x4d73f4=>_0x4d73f4['cell']);}_0x2bcd1e['model']['change'](_0x54495e=>{_0x3bb212['markBlockFormat'](_0x54495e['createRangeOn'](_0x1573d1),{'commandName':_0x29a836,'commandParams':[]},_0x1b2f89,_0x29a836);});});}_0x3bb212['descriptionFactory']['registerDescriptionCallback'](_0x590758=>{if('formatBlock'!=_0x590758['type']&&'formatInline'!=_0x590758['type'])return;const {data:_0x5a76ef}=_0x590758;return _0x5a76ef&&'mergeTableCells'==_0x5a76ef['commandName']?{'type':'format','content':c(_0x589bbf,'*Merge\x20cells*')}:void 0x0;}),_0x3bb212['descriptionFactory']['registerDescriptionCallback'](_0x22ad7c=>{if('formatBlock'!=_0x22ad7c['type']&&'formatInline'!=_0x22ad7c['type'])return;const {data:_0xd5918f}=_0x22ad7c;return _0xd5918f?'splitTableCellVertically'==_0xd5918f['commandName']?{'type':'format','content':c(_0x589bbf,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xd5918f['commandName']?{'type':'format','content':c(_0x589bbf,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xfe84e1=_0x206914['_acceptFormatSuggestionCallbackFactory']();for(const _0x50e72b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3bb212['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50e72b,'accept',_0xfe84e1);for(const _0x512baa of['splitTableCellVertically','splitTableCellHorizontally'])_0x3bb212['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x512baa,'accept',_0xfe84e1);_0x3bb212['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3401ef=>{_0x2bcd1e['model']['change'](_0x3b8310=>{const _0x1602e2=Array['from'](_0x56225c['getRanges']())['map'](_0x2f8697=>_0x268add['fromRange'](_0x2f8697));_0x3b8310['setSelection'](_0x3401ef),_0x2bcd1e['commands']['get']('mergeTableCells')['refresh'](),_0x2bcd1e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c3926=_0x1602e2['filter'](_0x5c113d=>'$graveyard'!=_0x5c113d['root']['rootName']);_0x3c3926['length']>0x0&&_0x3b8310['setSelection'](_0x3c3926);for(const _0x1f0e1a of _0x1602e2)_0x1f0e1a['detach']();});});for(const _0x5bc722 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5c2af8=_0x2bcd1e['commands']['get'](_0x5bc722);_0x5c2af8['on']('set:isEnabled',(_0x5a5167,_0x57fda5,_0x2fcc29)=>{if(_0x2fcc29){const _0x37a9e2=_0x2bcd1e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35abbe=>_0x35abbe['is']('element','tableCell'));this['_areMergableCells'](_0x5c2af8['value'],_0x37a9e2)||(_0x5a5167['return']=!0x1,_0x5a5167['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2db0cd=this['editor']['commands']['get']('mergeTableCells'),_0x67adf5=this['editor']['plugins']['get']('TableUtils');if(!_0x2db0cd['isEnabled'])return!0x1;const _0x593e61=_0x67adf5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x14a8b8 of _0x593e61)for(const _0x587ba4 of _0x593e61)if(_0x14a8b8!=_0x587ba4&&!this['_areMergableCells'](_0x14a8b8,_0x587ba4))return!0x1;return!0x0;}['_areMergableCells'](_0x243a36,_0x7d9129){const _0x85fa84=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ac0bc=this['editor']['model']['createRangeOn'](_0x243a36),_0x32bb8f=this['editor']['model']['createRangeOn'](_0x7d9129),_0x492bba=new Set(),_0x442ead=new Set();for(const _0x5aeac9 of _0x85fa84['getSuggestions']())if(('insertion'==_0x5aeac9['type']||'deletion'==_0x5aeac9['type']||'mergeTableCells'==_0x5aeac9['subType'])&&_0x5aeac9['isInContent']){for(const _0x495436 of _0x5aeac9['getRanges']())_0x495436['containsRange'](_0x1ac0bc,!0x0)&&_0x492bba['add'](_0x5aeac9['type']+':'+_0x5aeac9['author']['id']),_0x495436['containsRange'](_0x32bb8f,!0x0)&&_0x442ead['add'](_0x5aeac9['type']+':'+_0x5aeac9['author']['id']);}if(_0x492bba['size']!=_0x442ead['size'])return!0x1;for(const _0x90f93 of _0x492bba)if(!_0x442ead['has'](_0x90f93))return!0x1;return!0x0;}}class Dt extends _0x3b35c4{static get['requires'](){return[Ct];}['afterInit'](){const _0x134496=this['editor'];if(!_0x134496['plugins']['has']('TableEditing'))return;const _0x27ea46=_0x134496['locale'],_0x1acd4a=_0x134496['plugins']['get']('TrackChangesEditing');_0x1acd4a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1acd4a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1acd4a['registerBlockAttribute']('headingRows'),_0x1acd4a['registerBlockAttribute']('headingColumns'),_0x1acd4a['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x27ea46,'FORMAT_HEADER_ROW')),_0x1acd4a['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x27ea46,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b4d42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x554fde=this['editor']['plugins']['get']('TableUtils'),_0x18c599=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x11ffd0({showActiveMarker:_0x3ee6d9=!0x0,setDataAttribute:_0x2b6177=!0x0}={}){return(_0x44c01e,_0x246fdd,_0xade7cc)=>{const {type:_0x52921c,id:_0x2e5e57}=_0x3b4d42['_splitMarkerName'](_0x246fdd['markerName']),_0x45852b=_0x3b4d42['getSuggestion'](_0x2e5e57),_0x26fcb3=_0x45852b['data'];if('formatBlock'!=_0x45852b['type']||!_0x26fcb3||'setTableColumnHeader'!=_0x26fcb3['commandName'])return;if(_0x246fdd['item'])return void _0x44c01e['stop']();if(!_0xade7cc['consumable']['consume'](_0x246fdd['markerRange'],_0x44c01e['name']))return;const _0x4646e6=_0x246fdd['markerRange']['start']['nodeAfter'],_0x56169a=_0x246fdd['markerRange']['end']['nodeBefore'],_0x801521=_0x4646e6['parent']['parent'],{column:_0xe4dde3}=_0x554fde['getCellLocation'](_0x4646e6),{column:_0xe37240}=_0x554fde['getCellLocation'](_0x56169a);for(let _0x51d39c=_0xe4dde3;_0x51d39c<=_0xe37240;_0x51d39c++){const _0x5a056b=_0x554fde['createTableWalker'](_0x801521,{'column':_0x51d39c,'includeAllSlots':!0x1});for(const _0x51a6c2 of _0x5a056b){const _0x5cd84f=_0x51a6c2['cell'],_0x42c628=_0xade7cc['mapper']['toViewElement'](_0x5cd84f);_0xade7cc['writer']['addClass']('ck-suggestion-marker-'+_0x52921c,_0x42c628),_0x2b6177&&_0xade7cc['writer']['setAttribute']('data-suggestion',_0x2e5e57,_0x42c628),_0xade7cc['mapper']['bindElementToMarker'](_0x42c628,_0x246fdd['markerName']),_0x3ee6d9&&(_0x3b4d42['activeMarkers']['includes'](_0x246fdd['markerName'])?_0xade7cc['writer']['addClass']('ck-suggestion-marker--active',_0x42c628):_0xade7cc['writer']['removeClass']('ck-suggestion-marker--active',_0x42c628));}}};}_0x3b4d42['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x18c599),_0x3b4d42['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x18c599),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x11ffd0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a1efd,_0x43707f,_0xcca9e5)=>{_0xcca9e5['options']['showSuggestionHighlights']&&_0x11ffd0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3a1efd,_0x43707f,_0xcca9e5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xa542fb,_0x49da22,_0xb56f31)=>{const {type:_0x2083c8,id:_0x3dc0aa}=_0x3b4d42['_splitMarkerName'](_0x49da22['markerName']),_0x4adcb7=_0x3b4d42['getSuggestion'](_0x3dc0aa),_0x5bea65=_0x4adcb7['data'];if('formatBlock'!=_0x4adcb7['type']||!_0x5bea65||'setTableColumnHeader'!=_0x5bea65['commandName'])return;const _0x19ab05=_0xb56f31['mapper']['markerNameToElements'](_0x49da22['markerName']);if(_0x19ab05){for(const _0x1ea2f0 of _0x19ab05)_0xb56f31['writer']['removeClass']('ck-suggestion-marker-'+_0x2083c8,_0x1ea2f0),_0xb56f31['writer']['removeClass']('ck-suggestion-marker--active',_0x1ea2f0),_0xb56f31['writer']['removeAttribute']('data-suggestion',_0x1ea2f0),_0xb56f31['mapper']['unbindElementFromMarkerName'](_0x1ea2f0,_0x49da22['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf1da93=this['editor'],_0x128432=_0xf1da93['locale'];function _0x3c5645(_0x48e812){return{'type':'format','content':c(_0x128432,'*Format:*\x20%0',_0x48e812)};}_0xf1da93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x60002a=>{if('formatBlock'!=_0x60002a['type'])return;const {data:_0x4df33c}=_0x60002a;if(_0x4df33c){if('setTableRowHeader'==_0x4df33c['commandName']){const _0x2ee4eb=_0x4df33c['commandParams'][0x0]['forceValue'];return _0x3c5645(c(_0x128432,_0x2ee4eb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4df33c['commandName']){const _0x4071f9=_0x4df33c['commandParams'][0x0]['forceValue'];return _0x3c5645(c(_0x128432,_0x4071f9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3b35c4{['afterInit'](){const _0x329ada=this['editor'],_0x3a3f15=_0x329ada['locale'],_0x6467fe=_0x329ada['plugins']['get']('TrackChangesEditing');function _0x467b5f(_0x3e596e){return{'type':'format','content':''+c(_0x3a3f15,'*Set\x20table\x20type:*\x20%0',_0x3e596e)};}_0x329ada['plugins']['has']('TableLayout')&&(_0x6467fe['enableCommand']('insertTableLayout'),_0x6467fe['enableDefaultAttributesIntegration']('tableType'),_0x6467fe['registerBlockAttribute']('tableType'),_0x6467fe['descriptionFactory']['registerElementLabel'](_0x15a3cb=>_0x15a3cb['is']('element','table')&&'layout'===_0x15a3cb['getAttribute']('tableType'),_0x27dce5=>c(_0x3a3f15,'ELEMENT_LAYOUT_TABLE',_0x27dce5)),_0x6467fe['descriptionFactory']['registerDescriptionCallback'](_0x5d2809=>{const {data:_0x4449f1}=_0x5d2809;if(_0x4449f1&&'tableType'==_0x4449f1['key'])switch(_0x4449f1['newValue']){case'layout':return _0x467b5f(c(_0x3a3f15,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x467b5f(c(_0x3a3f15,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3a87ca=>[_0x3a87ca,null]));class $t extends _0x3b35c4{static get['requires'](){return[Ct];}['afterInit'](){const _0x37203e=this['editor'];if(!_0x37203e['plugins']['has']('TableClipboard'))return;const _0x8faaaf=_0x37203e['plugins']['get']('TrackChangesEditing'),_0x330b4c=_0x37203e['plugins']['get']('TableUtils'),_0x57aa62=_0x37203e['plugins']['get'](Ct),_0x5284bf=_0x37203e['plugins']['get']('TableClipboard'),_0x5be424=_0x37203e['plugins']['get']('TableSelection'),_0x38982d=_0x37203e['plugins']['get'](_0x3e542b);_0x57aa62['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x37203e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x37203e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d8cad=null,_0x5eb5e7=!0x1;_0x38982d['on']('contentInsertion',(_0x32fea5,_0x559ded)=>{_0x5eb5e7='paste'===_0x559ded['method'];}),_0x37203e['model']['on']('insertContent',(_0x5648e6,_0x439590)=>{if(!_0x5eb5e7&&null===_0x5be424['getSelectedTableCells']())return;const [_0x593984,_0xbe834b]=_0x439590,_0x239285=_0x439590[_0x439590['length']-0x1];_0x239285&&_0x239285['forceDefaultExecution']||_0x8faaaf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x10116a,_0x1672a4,_0x7da2c3,_0x150ad0,_0x390a55){if(_0x1672a4&&!_0x1672a4['is']('documentSelection'))return!0x1;const _0x4e9332=_0x390a55['getTableIfOnlyTableInContent'](_0x10116a,_0x7da2c3);if(!_0x4e9332||!He(_0x4e9332,void 0x0,_0x150ad0))return!0x1;const _0x5a7923=_0x150ad0['getSelectionAffectedTableCells'](_0x7da2c3['document']['selection']);if(!_0x5a7923['length'])return!0x1;const _0xb18691=_0x5a7923[0x0]['findAncestor']('table'),_0x47bffc=_0x150ad0['getRowIndexes'](_0x5a7923),_0x2e4319=_0x150ad0['getColumnIndexes'](_0x5a7923),_0x20ec58={'startRow':_0x47bffc['first'],'endRow':_0x47bffc['last'],'startColumn':_0x2e4319['first'],'endColumn':_0x2e4319['last']};return 0x1==_0x5a7923['length']&&(_0x20ec58['endRow']+=_0x150ad0['getRows'](_0x4e9332)-0x1,_0x20ec58['endColumn']+=_0x150ad0['getColumns'](_0x4e9332)-0x1),He(_0xb18691,_0x20ec58,_0x150ad0);}(_0x593984,_0xbe834b,_0x37203e['model'],_0x330b4c,_0x5284bf)&&(_0x5648e6['stop'](),_0x1d8cad={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x37203e['model']['change'](()=>{_0x37203e['model']['insertContent'](_0x439590[0x0],_0x439590[0x1],_0x439590[0x2],{'forceDefaultExecution':!0x0});const _0x26106b=_0x281607(),{rowInsertionRanges:_0x92f554,columnInsertionRanges:_0x39f4a9,insertionRanges:_0x3f6f6a,deletionRanges:_0x56806f,cells:_0x356c02}=_0x1d8cad;_0x92f554['length']&&_0x8faaaf['markMultiRangeInsertion'](_0x92f554,'tablePasteRow',{'tablePasteChainId':_0x26106b}),_0x39f4a9['length']&&_0x8faaaf['markMultiRangeInsertion'](_0x39f4a9,'tablePasteColumn',{'tablePasteChainId':_0x26106b}),_0x3f6f6a['length']&&(_0x8faaaf['markMultiRangeInsertion'](_0x3f6f6a,'tablePaste',{'tablePasteChainId':_0x26106b,'skipNestingCheck':!0x0}),_0x3f6f6a['forEach'](_0x68363f=>_0x68363f['detach']?.())),_0x56806f['length']&&(_0x8faaaf['markMultiRangeDeletion'](_0x56806f,'tablePaste',{'tablePasteChainId':_0x26106b,'skipNestingCheck':!0x0}),_0x56806f['forEach'](_0x2e30ea=>_0x2e30ea['detach']?.()));const _0x52af61=_0x8faaaf['markMultiRangeBlockFormat'](_0x356c02['map'](({element:_0x1bab5e})=>_0x1bab5e),{'formatGroupId':_0x281607()},[],'tablePasteCell',{'tablePasteChainId':_0x26106b});if(_0x52af61){const _0x207dce=_0x52af61['getMarkers'](),_0x98efd=[];for(const {element:_0x1d9410,attributes:_0xef91ba}of _0x356c02){if(!_0xef91ba)continue;const _0x3f6572=_0x37203e['model']['createRangeOn'](_0x1d9410),_0x5de3fd=_0x207dce['find'](_0x46d443=>_0x46d443['getRange']()['isEqual'](_0x3f6572));_0x5de3fd&&_0x98efd['push']([_0x5de3fd['name'],_0xef91ba]);}_0x98efd['length']&&_0x52af61['setAttribute']('markerAttributes',Object['fromEntries'](_0x98efd));}_0x1d8cad=null;}));},{'priority':_0x4512e8['high']+0xa}),_0x38982d['on']('contentInsertion',()=>{_0x5eb5e7=!0x1;},{'priority':'lowest'}),_0x37203e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1b9cb7,_0x500d0f)=>{const [_0xd1f559,_0x475c9f,,_0xa60beb]=_0x500d0f;if(!_0x1d8cad)return;_0x1b9cb7['stop']();const _0xd60789=_0xd1f559['cell'],_0x40ef4c=_0x475c9f,_0x203104=De(_0xd60789),_0x479ae5=De(_0x40ef4c);_0x1b9cb7['return']=_0xd60789;let _0x4a5809=null,_0x54cbe1=null;if(_0x479ae5||_0x203104){if(_0x203104&&!_0x479ae5){_0xa60beb['remove'](_0xd60789['getChild'](0x0));for(const _0x91dba8 of Array['from'](_0x40ef4c['getChildren']()))_0xa60beb['insert'](_0x91dba8,_0xd60789,'end');const _0x1c090f=_0x1d8cad['rowInsertionIndexes']['includes'](_0xd1f559['row']),_0x2c4a8e=_0x1d8cad['columnInsertionIndexes']['includes'](_0xd1f559['column']);_0x1c090f||_0x2c4a8e||(_0x4a5809=_0x268add['fromRange'](_0xa60beb['createRangeIn'](_0xd60789)));}else _0x479ae5&&!_0x203104&&(_0x54cbe1=_0xa60beb['createRangeIn'](_0xd60789));}else{const _0x276a23=_0xa60beb['createElement']('tableCellSuggestion'),_0x5e510b=_0xa60beb['createElement']('tableCellSuggestion');_0xa60beb['wrap'](_0xa60beb['createRangeIn'](_0xd60789),_0x5e510b),_0xa60beb['insert'](_0x276a23,_0xd60789,0x0);for(const _0x133d51 of Array['from'](_0x40ef4c['getChildren']()))_0xa60beb['insert'](_0x133d51,_0x276a23,'end');_0x4a5809=_0x268add['fromRange'](_0xa60beb['createRangeOn'](_0x276a23)),_0x54cbe1=_0x268add['fromRange'](_0xa60beb['createRangeOn'](_0x5e510b));}const _0x2e3c0e=Array['from'](_0x40ef4c['getAttributes']())['filter'](([_0xfe6f9b])=>Oe['includes'](_0xfe6f9b));_0x1d8cad['cells']['push']({'element':_0xd60789,'attributes':_0x2e3c0e['length']?Object['fromEntries'](_0x2e3c0e):null}),_0x4a5809&&_0x1d8cad['insertionRanges']['push'](_0x4a5809),_0x54cbe1&&_0x1d8cad['deletionRanges']['push'](_0x54cbe1);},{'priority':'high'}),_0x330b4c['on']('insertColumns',(_0x439203,_0x232f6c)=>{const [_0x80f7d9,_0x1a5e5a={}]=_0x232f6c;if(!_0x1d8cad)return;const _0x4f3df8=_0x1a5e5a['at']||0x0,_0x532e49=_0x1a5e5a['columns']||0x1;_0x1d8cad['columnInsertionIndexes']=new Array(_0x532e49)['fill'](_0x4f3df8)['map']((_0x4a9201,_0x236b5b)=>_0x4a9201+_0x236b5b);for(const {cell:_0x56f41b}of _0x330b4c['createTableWalker'](_0x80f7d9,{'startColumn':_0x4f3df8,'endColumn':_0x4f3df8+_0x532e49-0x1}))_0x1d8cad['columnInsertionRanges']['push'](_0x37203e['model']['createRangeOn'](_0x56f41b));},{'priority':'low'}),_0x330b4c['on']('insertRows',(_0x1cc945,_0x6086e6)=>{const [_0x405dc0,_0x7c9b38={}]=_0x6086e6;if(!_0x1d8cad)return;const _0x49f79b=_0x7c9b38['at']||0x0,_0x379941=_0x7c9b38['rows']||0x1;_0x1d8cad['rowInsertionIndexes']=new Array(_0x379941)['fill'](_0x49f79b)['map']((_0x17e61d,_0x5e3440)=>_0x17e61d+_0x5e3440);for(const {cell:_0xdf2ecd}of _0x330b4c['createTableWalker'](_0x405dc0,{'startRow':_0x49f79b,'endRow':_0x49f79b+_0x379941-0x1}))_0x1d8cad['rowInsertionRanges']['push'](_0x37203e['model']['createRangeOn'](_0xdf2ecd));},{'priority':'low'}),_0x8faaaf['descriptionFactory']['registerDescriptionCallback'](_0x746602=>{if(_0x746602['subType']&&_0x746602['subType']['startsWith']('tablePaste'))return _0x746602['previous']?{}:{'type':'insertion','content':c(_0x37203e['locale'],'*Replace\x20table\x20cells*')};});const _0x3f0d89=()=>!0x1;for(const _0x4252bd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x8faaaf['_suggestionFactory']['registerCustomCallback']('insertion',_0x4252bd,'join',_0x3f0d89),_0x8faaaf['_suggestionFactory']['registerCustomCallback']('deletion',_0x4252bd,'join',_0x3f0d89),_0x8faaaf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4252bd,'join',_0x3f0d89);_0x8faaaf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3f0d89),_0x8faaaf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x46b291,_0x303b78,_0x43387e)=>{const _0x5bf5d2=_0x46b291['map'](_0x43d2dd=>_0x43d2dd['getContainedElement']())['filter'](_0x1a13fb=>_0x1a13fb),_0x4db24f=new Map(_0x5bf5d2['map'](_0x472383=>[_0x472383,null]));if(_0x1d8cad){for(const {element:_0x2c4188,attributes:_0x46f27e}of _0x1d8cad['cells'])_0x46f27e&&_0x4db24f['set'](_0x2c4188,_0x46f27e);}else{if(_0x43387e&&_0x43387e['markerAttributes'])for(const [_0x2384a2,_0x2552cc]of Object['entries'](_0x43387e['markerAttributes'])){const _0x119eca=_0x37203e['model']['markers']['get'](_0x2384a2),_0x36d8eb=_0x119eca?_0x119eca['getRange']()['getContainedElement']():null;_0x36d8eb&&_0x4db24f['set'](_0x36d8eb,_0x2552cc);}}_0x37203e['model']['change'](_0xf375d9=>{for(const [_0xa9e12b,_0x43e032]of _0x4db24f)_0xf375d9['setAttributes']({...Ue,..._0x43e032},_0xa9e12b);});});const _0x24ba2c=(_0x35e22e,_0x294d50)=>{_0x8faaaf['_suggestionFactory']['registerCustomCallback'](_0x35e22e,'tablePaste',_0x294d50,(_0x547768,_0x392dc5,_0x4f9495)=>{_0x37203e['model']['change'](_0x38a738=>{const _0x5d2ba1=[];for(const _0x1030dd of _0x547768){const _0x2c3d6b=_0x1030dd['start']['nodeAfter'];_0x2c3d6b['is']('element','tableCellSuggestion')&&_0x5d2ba1['push'](_0x2c3d6b);}_0x8faaaf['_suggestionFactory']['getSuggestionCallback'](_0x35e22e,null,_0x294d50)(_0x547768,_0x392dc5,_0x4f9495);for(const _0x1086a6 of _0x5d2ba1)'$graveyard'!=_0x1086a6['root']['rootName']&&_0x38a738['unwrap'](_0x1086a6);});});};_0x24ba2c('insertion','accept'),_0x24ba2c('insertion','discard'),_0x24ba2c('deletion','accept'),_0x24ba2c('deletion','discard'),_0x8faaaf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x457c46=>{const _0x2239fd=_0x457c46['map'](_0x421a26=>_0x421a26['getContainedElement']()),_0x59a657=_0x2239fd[0x0]['findAncestor']('table'),{minRow:_0x44dad7,maxRow:_0x3af6dd}=_0x57aa62['_getCoordsForCells'](_0x2239fd);_0x330b4c['removeRows'](_0x59a657,{'at':_0x44dad7,'rows':_0x3af6dd-_0x44dad7+0x1});}),_0x8faaaf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2efe48=>{const _0x39dd1b=_0x2efe48['map'](_0x2e601f=>_0x2e601f['getContainedElement']()),_0x5b07a3=_0x39dd1b[0x0]['findAncestor']('table'),{minColumn:_0x4f9f53,maxColumn:_0x6bc365}=_0x57aa62['_getCoordsForCells'](_0x39dd1b);_0x330b4c['removeColumns'](_0x5b07a3,{'at':_0x4f9f53,'columns':_0x6bc365-_0x4f9f53+0x1});});const _0x53e176=(_0xa48232,_0x32a254)=>{if(!_0x32a254['subType']||!_0x32a254['subType']['startsWith']('tablePaste'))return;const _0x5b2cc2=_0x32a254['attributes']['tablePasteChainId'],_0x3165e1=_0x8faaaf['getSuggestions']()['filter'](_0x2bcb1c=>_0x2bcb1c['isInContent']&&_0x2bcb1c['attributes']&&_0x2bcb1c['attributes']['tablePasteChainId']==_0x5b2cc2);_0x3165e1['length']&&_0x32a254['getAllAdjacentSuggestions']()['length']!=_0x3165e1['length']&&_0x3165e1['reduce']((_0x5a5f9a,_0x330ba8)=>(_0x5a5f9a['next']=_0x330ba8,_0x330ba8['previous']=_0x5a5f9a,_0x330ba8));};function _0x2d812b(_0x236218,_0x5cd4c5=!0x0){const {id:_0x352caf,authorId:_0x338d6d}=_0x8faaaf['_splitMarkerName'](_0x236218['markerName']),_0x396f76=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2a707=_0x8faaaf['activeMarkers']['includes'](_0x236218['markerName']);return _0x2a707&&_0x396f76['push']('ck-suggestion-marker--active'),{'classes':_0x396f76,'attributes':{'data-suggestion':_0x352caf,'data-author-id':_0x338d6d},'priority':_0x2a707&&_0x5cd4c5?0xbc2:0xbb8};}_0x8faaaf['on']('suggestionLoaded',_0x53e176,{'priority':'high'}),_0x8faaaf['on']('suggestionUnloaded',_0x53e176,{'priority':'high'}),_0x37203e['model']['document']['registerPostFixer'](()=>{let _0x2240fb=!0x1;const _0x2f36fc=Array['from'](_0x37203e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8b52c4,data:_0x2e2533}of _0x2f36fc){const {group:_0x206848,type:_0x2a1206,id:_0xd45cec}=_0x8faaaf['_splitMarkerName'](_0x8b52c4);if('suggestion'!=_0x206848||'deletion'!=_0x2a1206||_0x2e2533['oldRange'])continue;if(!_0x8faaaf['hasSuggestion'](_0xd45cec))continue;const _0x2afc3d=_0x8faaaf['getSuggestion'](_0xd45cec)['getRanges'](),_0x5848d5=_0x37203e['plugins']['get']('Users')['me'];for(const _0xf33e68 of _0x8faaaf['getSuggestions']()){if(!_0xf33e68['isInContent']||_0xf33e68['author']!=_0x5848d5)continue;if('formatBlock'!=_0xf33e68['type']||'tablePasteCell'!=_0xf33e68['subType'])continue;if(_0xf33e68['getRanges']()['every'](_0x51d3b6=>_0x2afc3d['some'](_0x1c2356=>_0x1c2356['containsRange'](_0x51d3b6,!0x0)))){for(const _0x3cfcb7 of _0xf33e68['getAllAdjacentSuggestions']())_0x3cfcb7['isInContent']&&(_0x3cfcb7['discard'](),_0x2240fb=!0x0);}}}return _0x2240fb;}),_0x37203e['model']['document']['registerPostFixer'](_0xd97e9a=>{const _0x2f00c4=_0x37203e['commands']['get']('redo');if(!_0x2f00c4||!_0x2f00c4['_createdBatches']['has'](_0xd97e9a['batch']))return!0x1;let _0xeeb57a=!0x1;const _0x32da30=_0x37203e['plugins']['get']('Users')['me'],_0x53f5fd=_0x37203e['model']['document']['differ']['getChanges'](),_0x153b20=Array['from'](_0x37203e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x285524,data:_0x39e1b8})=>{const {group:_0xb01f95,subType:_0x42bdee,authorId:_0x185864}=_0x8faaaf['_splitMarkerName'](_0x285524);return'suggestion'==_0xb01f95&&'tablePaste'==_0x42bdee&&_0x185864==_0x32da30['id']&&!_0x39e1b8['oldRange'];});for(const _0x205141 of _0x53f5fd){if('insert'!=_0x205141['type']||'tableCellSuggestion'!=_0x205141['name']||0x1!=_0x205141['length'])continue;const _0x1f0a7b=_0xd97e9a['createRange'](_0x205141['position'],_0x205141['position']['getShiftedBy'](0x1));if(!_0x153b20['find'](({data:_0x826e45})=>_0x826e45['newRange']['isEqual'](_0x1f0a7b))){for(const {name:_0x211f4a,data:_0x39f16b}of _0x153b20)if(_0x1f0a7b['containsRange'](_0x39f16b['newRange'])){_0xd97e9a['updateMarker'](_0x211f4a,{'range':_0x1f0a7b}),_0xeeb57a=!0x0;break;}}}return _0xeeb57a;}),_0x37203e['model']['document']['registerPostFixer'](_0x1a934d=>{let _0x393197=!0x1;const _0x2d91c9=_0x37203e['plugins']['get']('Users')['me'],_0x2d73ec=_0x8faaaf['getSuggestions']()['filter'](_0x5677c9=>_0x5677c9['isInContent']&&_0x5677c9['author']==_0x2d91c9),_0x387456=new Set(),_0x4f2c06=new Set();for(const _0x486d8e of _0x2d73ec)if('tablePaste'==_0x486d8e['subType'])for(const _0x2b19ef of _0x486d8e['getMarkers']()){const _0x2fd4b=_0x2b19ef['getRange']()['getContainedElement']();if(_0x2fd4b){if(_0x2fd4b['is']('element','tableCellSuggestion')&&De(_0x2fd4b)){_0x486d8e['removeMarker'](_0x2b19ef['name']),_0x387456['add'](_0x2fd4b),_0x393197=!0x0;const _0x495bab=_0x2fd4b['nextSibling'],_0x37d3a9=_0x2fd4b['previousSibling'],_0x44974b=_0x495bab&&_0x495bab['is']('element','tableCellSuggestion'),_0x523c57=_0x37d3a9&&_0x37d3a9['is']('element','tableCellSuggestion');_0x44974b&&!_0x387456['has'](_0x495bab)&&_0x4f2c06['add'](_0x495bab),_0x523c57&&!_0x387456['has'](_0x37d3a9)&&_0x4f2c06['add'](_0x37d3a9);}else _0x2fd4b['is']('element','paragraph')&&_0x2fd4b['isEmpty']&&(_0x486d8e['removeMarker'](_0x2b19ef['name']),_0x393197=!0x0);}}else{if('tablePasteCell'==_0x486d8e['subType']){if(!_0x486d8e['attributes']||!_0x486d8e['attributes']['tablePasteChainId'])continue;const _0x4db650=_0x486d8e['attributes']['markerAttributes'];if(_0x4db650&&Object['keys'](_0x4db650)['length'])continue;const _0x1aabe2=_0x486d8e['attributes']['tablePasteChainId'];let _0x3b93c6=!0x0,_0x487bef=!0x0;for(const _0x6c98b1 of _0x2d73ec)if(_0x6c98b1['subType']&&_0x6c98b1['subType']['startsWith']('tablePaste')){if(!_0x6c98b1['attributes']['tablePasteChainId']){_0x487bef=!0x1;break;}if(_0x6c98b1['id']!=_0x486d8e['id']&&_0x6c98b1['attributes']['tablePasteChainId']==_0x1aabe2){_0x3b93c6=!0x1;break;}}_0x487bef&&_0x3b93c6&&(_0x486d8e['removeMarkers'](),_0x393197=!0x0);}}for(const _0x3c09c9 of _0x387456)_0x1a934d['remove'](_0x3c09c9);for(const _0x700e8b of _0x4f2c06)_0x1a934d['unwrap'](_0x700e8b);return _0x393197;}),_0x37203e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x47e9ce=>_0x2d812b(_0x47e9ce),'converterPriority':'high'}),_0x37203e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x216e01,_0xd2eec6)=>_0xd2eec6['options']['showSuggestionHighlights']?_0x2d812b(_0x216e01,!0x1):null,'converterPriority':'high'});const _0x582cd1=_0x37203e['editing']['view'];this['listenTo'](_0x582cd1['document'],'clipboardOutput',(_0x426d95,_0x5c4091)=>{const _0x590a32=[];for(const _0x2f58a5 of _0x582cd1['createRangeIn'](_0x5c4091['content'])['getItems']())_0x2f58a5['is']('element','suggestion-td')&&_0x590a32['push'](_0x2f58a5);_0x582cd1['change'](_0x1156df=>{for(const _0x158e1b of _0x590a32)_0x1156df['move'](_0x1156df['createRangeIn'](_0x158e1b),_0x1156df['createPositionBefore'](_0x158e1b)),_0x1156df['remove'](_0x158e1b);});});}}function De(_0x54bf21){if(_0x54bf21['isEmpty'])return!0x0;const _0x5b234a=_0x54bf21['getChild'](0x0);return _0x5b234a['is']('element','paragraph')&&_0x5b234a['isEmpty'];}function He(_0x2e4753,_0x8d7c4d={},_0x51fd09){for(const {isAnchor:_0x36c1c9,cellHeight:_0x2b2354,cellWidth:_0x1de758}of _0x51fd09['createTableWalker'](_0x2e4753,{'includeAllSlots':!0x0,..._0x8d7c4d}))if(!_0x36c1c9||0x1!=_0x2b2354||0x1!=_0x1de758)return!0x1;return!0x0;}class Bt extends _0x3b35c4{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x33a943=this['editor']['plugins']['get']('TrackChangesEditing');_0x33a943['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x33a943['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x33a943['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33a943['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x33a943['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x33a943['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x40d1fe,_0x1bc947){const _0x19dee1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39ff50=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2cf1d8=_0x1bc947['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x455ce2=_0x39ff50['getColumnGroupElement'](_0x2cf1d8);let _0x3be535=_0x455ce2?_0x39ff50['getTableColumnsWidths'](_0x455ce2):null,_0x3675e5=_0x2cf1d8['getAttribute']('tableWidth')||null;const _0x3f690c=_0x1bc947['tableWidth']||_0x3675e5,_0x399191=_0x1bc947['columnWidths']||_0x3be535,_0x4d7844=this['editor']['plugins']['get']('Users')['me'];for(const _0x21f3d4 of _0x19dee1['getSuggestions']()){const _0x2d0a63=_0x21f3d4['getContainedElement']();if('resizeTable'===_0x21f3d4['subType']&&_0x2d0a63===_0x2cf1d8){_0x21f3d4['author']!==_0x4d7844&&_0x21f3d4['discard']();const _0x327e2e=_0x21f3d4['data']['commandParams'];_0x3675e5=_0x327e2e[0x0]['tableWidth'],_0x3be535=_0x327e2e[0x0]['columnWidths'];break;}}_0x40d1fe({'table':_0x2cf1d8,'tableWidth':_0x3f690c,'columnWidths':_0x399191}),_0x19dee1['markBlockFormat'](_0x2cf1d8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3675e5,'columnWidths':_0x3be535}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x16147f){if('formatBlock'!=_0x16147f['type']&&'formatInline'!=_0x16147f['type'])return;const {data:_0x20849e}=_0x16147f;if(_0x20849e&&'resizeTable'===_0x20849e['formatGroupId']){const _0x378c54='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x378c54)};}}}class xt extends _0x3b35c4{['afterInit'](){const _0x4a44ab=this['editor'];_0x4a44ab['plugins']['has']('Template')&&_0x4a44ab['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3b35c4{['afterInit'](){const _0x5e925e=this['editor'];if(!_0x5e925e['commands']['get']('insertTableOfContents'))return;_0x5e925e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xc8ad85=_0x5e925e['plugins']['get']('TrackChangesEditing'),_0x3730d8=_0x5e925e['locale'];_0xc8ad85['descriptionFactory']['registerElementLabel']('tableOfContents',_0x33bf97=>c(_0x3730d8,'ELEMENT_TABLE_OF_CONTENTS',_0x33bf97));}}class Rt extends _0x3b35c4{['afterInit'](){const _0x2d87c4=this['editor'];if(!_0x2d87c4['plugins']['has']('Title'))return;const _0x2fe38e=_0x2d87c4['plugins']['get']('TrackChangesEditing');_0x2fe38e['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2d87c4['locale'],'ELEMENT_TITLE')),_0x2d87c4['model']['document']['registerPostFixer'](_0x554c38=>{let _0x124223=!0x1;const _0x2f2717=Array['from'](_0x2d87c4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42bad9,data:_0x2a020b}of _0x2f2717){const {group:_0x139a97}=_0x2fe38e['_splitMarkerName'](_0x42bad9);if('suggestion'!==_0x139a97||!_0x2a020b['newRange'])continue;const _0x320121=_0x2a020b['newRange'],_0x4bdf17=_0x320121['end']['nodeBefore'];if(!_0x4bdf17||!_0x4bdf17['is']('element','title-content'))continue;if(!_0x320121['start']['isTouching'](_0x320121['end']))continue;const _0x12e48f=_0x2d87c4['model']['schema']['getNearestSelectionRange'](_0x320121['end'],'forward');if(_0x12e48f&&_0x12e48f['isCollapsed']){const _0x45a3fe=_0x554c38['createRange'](_0x320121['start'],_0x12e48f['start']);_0x45a3fe['isEqual'](_0x320121)||(_0x554c38['updateMarker'](_0x42bad9,{'range':_0x45a3fe}),_0x124223=!0x0);}_0x124223||(_0x554c38['removeMarker'](_0x42bad9),_0x124223=!0x0);}return _0x124223;});}}class Tt extends _0x3b35c4{['afterInit'](){const _0x75606d=this['editor'],_0x3120b6=_0x75606d['plugins']['get']('TrackChangesEditing');_0x75606d['plugins']['has']('Uploadcare')&&(_0x3120b6['enableCommand']('uploadcare'),_0x75606d['plugins']['has']('UploadcareImageEdit')&&(_0x3120b6['enableCommand']('uploadcareImageEdit'),_0x3120b6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3120b6['registerBlockAttribute']('uploadcareImageId'),_0x3120b6['descriptionFactory']['registerDescriptionCallback'](_0x5bc650=>{if('attribute'!=_0x5bc650['type'])return;const {data:_0x4c939c}=_0x5bc650;return _0x4c939c&&'uploadcareImageId'==_0x4c939c['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3b35c4{['afterInit'](){const _0x27ee17=this['editor'],_0x47bce0=_0x27ee17['plugins']['get']('TrackChangesEditing');_0x27ee17['plugins']['has']('UndoEditing')&&(_0x47bce0['enableCommand']('undo'),_0x47bce0['enableCommand']('redo'));}}class Ut extends _0x3b35c4{static get['requires'](){return[Ct];}['afterInit'](){const _0xd57cfb=this['editor'];if(!_0xd57cfb['plugins']['has']('TableCaptionEditing'))return;_0xd57cfb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3b35c4{['tableProperties'];['tableCellProperties'];constructor(_0x2455fe){super(_0x2455fe),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1f4be2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4132ad of this['tableProperties'])_0x1f4be2['enableCommand'](_0x4132ad,(_0x317d47,_0x48b8c2)=>{const _0x17ec4b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4132ad,[_0x17ec4b],this['tableProperties'],'tableProperties',_0x317d47,_0x48b8c2);});_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f4be2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4b0254,_0x38894b)=>this['handleDiscardAction'](this['tableProperties'],_0x4b0254,_0x38894b)),_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x19f2c9 of this['tableCellProperties'])_0x1f4be2['enableCommand'](_0x19f2c9,(_0x34df5e,_0x575bd3)=>{const _0x5d647b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x19f2c9,_0x5d647b,this['tableCellProperties'],'tableCellProperties',_0x34df5e,_0x575bd3);});_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f4be2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x55c2e4,_0x4930d9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x55c2e4,_0x4930d9)),_0x1f4be2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f4be2['descriptionFactory']['registerDescriptionCallback'](_0x24e6eb=>this['handleSuggestionDescription'](_0x24e6eb));}['_handlePropertyChange'](_0x11ddf6,_0x402d3e,_0x15fa24,_0x599d5c,_0x5491dd,_0x41aa48){const _0x35d6bd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x41aa48['batch'],()=>{for(const _0x3dc25b of _0x402d3e){if(this['_getSuggestion'](_0x3dc25b,_0x599d5c))_0x5491dd(_0x41aa48);else{const _0x119bfb={};for(const _0x1add9e of _0x15fa24){const _0x43af2e=_0x3dc25b['getAttribute'](_0x1add9e);void 0x0!==_0x43af2e&&(_0x119bfb[_0x1add9e]=_0x43af2e);}_0x5491dd(_0x41aa48),_0x35d6bd['markBlockFormat'](_0x3dc25b,{'commandParams':[_0x119bfb]},[],_0x599d5c);}}});}['handleDiscardAction'](_0x360efd,_0x23cff6,_0x337fe9){const _0x1f0815=_0x23cff6[0x0]['start']['nodeAfter'],_0x324061=_0x337fe9['commandParams'][0x0];this['editor']['model']['change'](_0x40f7d2=>{for(const _0x31c10b of _0x360efd)void 0x0!==_0x324061[_0x31c10b]?_0x40f7d2['setAttribute'](_0x31c10b,_0x324061[_0x31c10b],_0x1f0815):_0x40f7d2['removeAttribute'](_0x31c10b,_0x1f0815);});}['handleSuggestionDescription'](_0x29967d){if(_0x29967d['data'])switch(_0x29967d['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3c6200,_0x1886da){const _0x14854d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1be765 of _0x14854d['getSuggestions']({'skipNotAttached':!0x0})){const _0x1f854b=_0x1be765['getContainedElement']();if(_0x1be765['subType']===_0x1886da&&_0x1f854b===_0x3c6200)return _0x1be765;}return null;}}const u='$elementName';class p extends _0x3b35c4{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x30d22a,_0x3fbc39,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x357113){super(_0x357113),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3b9cac,_0x2807d9,_0x578011,_0x343d70)=>{this['_model']['change'](()=>{for(const _0x4ee1b7 of[..._0x343d70,..._0x578011])this['_model']['markers']['has'](_0x4ee1b7)&&_0x357113['editing']['reconvertMarker'](_0x4ee1b7);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x357113['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x357113['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x357113['config']['get']('trackChanges.trackFormatChanges'),_0x357113['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x357113['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x357113,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1bffda=this['editor'],_0xedbbb6=(_0x5c0df6,_0x22346b)=>{if('attribute'!=_0x5c0df6)return'ck-suggestion-marker-'+_0x5c0df6;const _0x463593=_0x22346b['split']('|')[0x0];return this['_isBlockAttribute'](_0x463593)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1bffda['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5b42df=>{const {id:_0x43db9e,authorId:_0x1b8c19,type:_0x1c1065,subType:_0x258e09}=this['_splitMarkerName'](_0x5b42df['markerName']),_0x492991=['ck-suggestion-marker',_0xedbbb6(_0x1c1065,_0x258e09)];let _0x19688a=0xbb8;return this['activeMarkers']['includes'](_0x5b42df['markerName'])&&(_0x492991['push']('ck-suggestion-marker--active'),_0x19688a=0xbc2),'deletion'==_0x1c1065&&(_0x19688a+=0x5),{'classes':_0x492991,'attributes':{'data-suggestion':_0x43db9e,'data-author-id':_0x1b8c19},'priority':_0x19688a};}}),_0x1bffda['conversion']['for']('dataDowncast')['add'](_0x458907=>{_0x458907['on']('addMarker:suggestion',(_0x214759,_0x2111d5,_0x31ed5d)=>{if(!_0x31ed5d['options']['showSuggestionHighlights'])return;const _0x1d51f5=_0x2111d5['item'];if(!_0x1d51f5)return;const _0x4e2751=_0x31ed5d['mapper']['toViewElement'](_0x1d51f5);_0x1bffda['model']['schema']['isObject'](_0x1d51f5)&&_0x4e2751&&!_0x4e2751['getCustomProperty']('widget')&&_0x4e2751['is']('containerElement')&&_0x4010d0(_0x4e2751,_0x31ed5d['writer']);},{'priority':'high'});}),_0x1bffda['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5da525,_0x856420)=>{if(!_0x856420['options']['showSuggestionHighlights'])return null;const {id:_0x544da6,authorId:_0x243e31,type:_0x52fe67,subType:_0x19643f}=this['_splitMarkerName'](_0x5da525['markerName']);return{'classes':['ck-suggestion-marker',_0xedbbb6(_0x52fe67,_0x19643f)],'priority':0xbb8,'attributes':{'data-suggestion':_0x544da6,'data-author-id':_0x243e31}};}});const _0x16ecbd=({showActiveMarkers:_0x1f803f=!0x0,isAttributeSuggestion:_0x1f97dd=!0x1}={})=>(_0x2a94ff,_0x529fbf,_0x2d9499)=>{if(!_0x529fbf['item'])return;const {id:_0x13e744,authorId:_0x230af9}=this['_splitMarkerName'](_0x529fbf['markerName']);if(_0x1f97dd){const _0x4df9d5=this['_suggestions']['get'](_0x13e744),_0x21d709=this['_getAttributeKey'](_0x4df9d5);if(!this['_isBlockAttribute'](_0x21d709))return;}if(_0x529fbf['item']['is']('selection'))return void _0x2d9499['consumable']['consume'](_0x529fbf['item'],_0x2a94ff['name']);const _0x2c0a9a=_0x2d9499['mapper']['toViewElement'](_0x529fbf['item']);if(_0x529fbf['item']['is']('element')&&_0x1bffda['model']['schema']['isBlock'](_0x529fbf['item'])&&!_0x2c0a9a['getCustomProperty']('addHighlight')){_0x2d9499['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2c0a9a),_0x2d9499['writer']['setAttribute']('data-suggestion',_0x13e744,_0x2c0a9a),_0x2d9499['writer']['setAttribute']('data-author-id',_0x230af9,_0x2c0a9a),_0x2d9499['mapper']['bindElementToMarker'](_0x2c0a9a,_0x529fbf['markerName']),_0x1f803f&&(this['activeMarkers']['includes'](_0x529fbf['markerName'])?_0x2d9499['writer']['addClass']('ck-suggestion-marker--active',_0x2c0a9a):_0x2d9499['writer']['removeClass']('ck-suggestion-marker--active',_0x2c0a9a));for(const _0x105df4 of _0x1bffda['model']['createRangeIn'](_0x529fbf['item'])['getItems']())_0x2d9499['consumable']['consume'](_0x105df4,_0x2a94ff['name']);_0x2d9499['consumable']['consume'](_0x529fbf['item'],_0x2a94ff['name']);}};_0x1bffda['conversion']['for']('dataDowncast')['add'](_0xd7094=>{_0xd7094['on']('addMarker:suggestion:formatBlock',(_0x447d84,_0x36cfa7,_0x5bd1b0)=>{_0x5bd1b0['options']['showSuggestionHighlights']&&_0x16ecbd({'showActiveMarkers':!0x1})(_0x447d84,_0x36cfa7,_0x5bd1b0);},{'priority':'highest'});}),_0x1bffda['conversion']['for']('dataDowncast')['add'](_0x26aa5b=>{_0x26aa5b['on']('addMarker:suggestion:attribute',(_0x19bfed,_0xd1e928,_0xfc9906)=>{_0xfc9906['options']['showSuggestionHighlights']&&_0x16ecbd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x19bfed,_0xd1e928,_0xfc9906);},{'priority':'highest'});}),_0x1bffda['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x523996,_0x1448a7)=>{if(_0x1448a7['options']['showSuggestionHighlights']){const {id:_0x5e9916,authorId:_0x86662a}=this['_splitMarkerName'](_0x523996);return _0x523996['includes'](':split')||_0x523996['includes'](':merge')?{'group':'suggestion','name':_0x523996['substr'](0xb),'attributes':{'data-suggestion':_0x5e9916,'data-author-id':_0x86662a}}:null;}return{'group':'suggestion','name':_0x523996['substr'](0xb)};}}),_0x1bffda['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xd72d24,{writer:_0x299ac2})=>{let _0x2eda77='suggestion:'+_0xd72d24['getAttribute']('suggestion-type')+':'+_0xd72d24['getAttribute']('id');return _0xd72d24['getAttribute']('marker-count')&&(_0x2eda77+=':'+_0xd72d24['getAttribute']('marker-count')),_0x299ac2['createElement']('$marker',{'data-name':_0x2eda77});}}),_0x1bffda['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1bffda['conversion']['for']('editingDowncast')['add'](_0x12b823=>{_0x12b823['on']('addMarker:suggestion:formatBlock',_0x16ecbd(),{'priority':'high'});}),_0x1bffda['conversion']['for']('editingDowncast')['add'](_0x5dd819=>{_0x5dd819['on']('addMarker:suggestion:attribute',_0x16ecbd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1bffda['conversion']['for']('editingDowncast')['add'](_0x293496=>{_0x293496['on']('removeMarker:suggestion:formatBlock',(_0x323d9f,_0x157690,_0x3c209c)=>{const _0x5dad9c=_0x3c209c['mapper']['markerNameToElements'](_0x157690['markerName']);if(_0x5dad9c){for(const _0x903d36 of _0x5dad9c)_0x903d36['getCustomProperty']('addHighlight')||(_0x3c209c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x903d36),_0x3c209c['writer']['removeAttribute']('data-suggestion',_0x903d36),_0x3c209c['writer']['removeAttribute']('data-author-id',_0x903d36),_0x3c209c['mapper']['unbindElementFromMarkerName'](_0x903d36,_0x157690['markerName']));}},{'priority':'high'});}),_0x1bffda['conversion']['for']('editingDowncast')['add'](_0x14d6f6=>{_0x14d6f6['on']('removeMarker:suggestion:attribute',(_0x1d3a83,_0x4a0fde,_0x3d0259)=>{const _0x2223ab=_0x3d0259['mapper']['markerNameToElements'](_0x4a0fde['markerName']);if(!_0x2223ab)return;const {id:_0x46da5a}=this['_splitMarkerName'](_0x4a0fde['markerName']),_0x2b930f=this['_suggestions']['get'](_0x46da5a),_0x2e9c27=this['_getAttributeKey'](_0x2b930f);if(this['_isBlockAttribute'](_0x2e9c27)){for(const _0x4c121e of _0x2223ab)_0x4c121e['getCustomProperty']('addHighlight')||(_0x3d0259['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4c121e),_0x3d0259['writer']['removeAttribute']('data-suggestion',_0x4c121e),_0x3d0259['writer']['removeAttribute']('data-author-id',_0x4c121e),_0x3d0259['mapper']['unbindElementFromMarkerName'](_0x4c121e,_0x4a0fde['markerName']));}},{'priority':'high'});}),_0x1bffda['model']['document']['registerPostFixer'](_0xda36be=>{let _0x9e6196=!0x1;const _0x41929b=Array['from'](_0x1bffda['model']['document']['differ']['getChangedMarkers']()),_0x1a252e=new Set();for(const {name:_0x476312,data:_0x172f89}of _0x41929b){const {group:_0x1bd429,type:_0x5075fd,subType:_0x27d370,id:_0x2863fa}=this['_splitMarkerName'](_0x476312);if('suggestion'!==_0x1bd429)continue;const _0xc880b=this['_suggestions']['get'](_0x2863fa);if(null!=_0x172f89['newRange']){'formatInline'==_0x5075fd&&(_0x9e6196=_0x9e6196||Jt(_0x172f89['newRange'],_0x476312,_0xda36be,_0x1bffda['model']['schema']));const _0x4b1887='attribute'==_0x5075fd&&this['_isBlockAttribute'](_0x27d370['split']('|')[0x0]);if(_0x172f89['newRange']['isCollapsed']||'$graveyard'==_0x172f89['newRange']['root']['rootName']||'formatBlock'==_0x5075fd&&!Ht(_0x172f89['newRange'])||_0x4b1887&&!Ht(_0x172f89['newRange'])||'deletion'==_0x5075fd&&!(!Lt(_0x400717=_0x172f89['newRange'])&&!function(_0x2b7539){return _0x2b7539['start']['parent']==_0x2b7539['end']['nodeBefore']&&_0x2b7539['start']['isAtEnd'];}(_0x400717)))_0xda36be['removeMarker'](_0x476312),_0x9e6196=!0x0;else{if(!_0xc880b||!_0xc880b['isInContent'])continue;if(_0x172f89['newRange']&&_0x172f89['oldRange']&&_0x172f89['newRange']['isEqual'](_0x172f89['oldRange']))continue;_0x1a252e['add'](_0xc880b);}}}var _0x400717;return _0x1a252e['size']>0x0&&(_0x9e6196=!!this['_joinWithAdjacentSuggestions'](_0x1a252e)||_0x9e6196),_0x9e6196;}),_0x1bffda['model']['document']['registerPostFixer'](_0x5dae9d=>{let _0x1343c1=!0x1;for(const _0x26dae6 of _0x1bffda['model']['document']['differ']['getChanges']())if('insert'==_0x26dae6['type'])for(const _0x42b0dc of this['_suggestions']['values']()){if(_0x42b0dc['isMultiRange']||!_0x42b0dc['isInContent'])continue;const _0x8d069d='formatBlock'==_0x42b0dc['type'],_0x5a33ca=this['_getAttributeKey'](_0x42b0dc),_0x1e7b79=_0x5a33ca&&this['_isBlockAttribute'](_0x5a33ca);if(!_0x8d069d&&!_0x1e7b79)continue;const _0x16de7a=_0x42b0dc['getFirstRange']();if(_0x16de7a['start']['parent']!=_0x16de7a['end']['parent']&&!_0x16de7a['end']['isAtEnd']){const _0x5d80c8=_0x1bffda['model']['createPositionAt'](_0x16de7a['start']['nodeAfter'],'end'),_0x28070b=_0x1bffda['model']['createRange'](_0x16de7a['start'],_0x5d80c8);_0x5dae9d['updateMarker'](_0x42b0dc['getFirstMarker'](),{'range':_0x28070b}),_0x1343c1=!0x0;}}return _0x1343c1;}),_0x1bffda['model']['document']['registerPostFixer'](_0x5bce18=>this['_processAttributeChanges'](_0x5bce18)),_0x1bffda['model']['document']['registerPostFixer'](_0x3ba7ac=>!_0x3ba7ac['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3ba7ac)),_0x1bffda['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1bffda['model']['document']['on']('change:data',(_0x38452d,_0xafbc1c)=>{if(!_0xafbc1c['isLocal']||_0xafbc1c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34b460=_0x1bffda['model']['document']['differ']['getChanges']();if(0x0==_0x34b460['length'])return;const _0x22d6fc=[],_0x4b2fdc=_0x34b460['filter'](_0x4cb552=>'attribute'==_0x4cb552['type']),_0x7bfa25=_0x34b460['filter'](_0x1e27e4=>'insert'==_0x1e27e4['type']&&'$text'!=_0x1e27e4['name']);for(const _0x2afe68 of _0x4b2fdc)this['_isRegisteredAttribute'](_0x2afe68['attributeKey'])&&_0x22d6fc['push']({'key':_0x2afe68['attributeKey'],'newValue':_0x2afe68['attributeNewValue'],'oldValue':_0x2afe68['attributeOldValue'],'range':qt(_0x2afe68['range'],_0x1bffda['model'])});for(const _0x53f034 of _0x7bfa25){if('rename'!=_0x53f034['action']&&'refresh'!=_0x53f034['action'])continue;const _0x46c542=zt(_0x53f034['position']['nodeAfter'],_0x1bffda['model']),_0xf6e559=_0x53f034['before'];'rename'==_0x53f034['action']&&_0x22d6fc['push']({'key':u,'newValue':_0x53f034['name'],'oldValue':_0xf6e559['name'],'range':_0x46c542});for(const [_0xcaf232,_0x392fa2]of _0xf6e559['attributes']){if(!this['_isRegisteredAttribute'](_0xcaf232))continue;const _0x410d5a=_0x53f034['attributes']['get'](_0xcaf232);_0x392fa2!==_0x410d5a&&_0x22d6fc['push']({'key':_0xcaf232,'newValue':_0x410d5a,'oldValue':_0x392fa2,'range':_0x46c542});}for(const [_0x57f2c8,_0x24be3c]of _0x53f034['attributes'])this['_isRegisteredAttribute'](_0x57f2c8)&&(_0xf6e559['attributes']['has'](_0x57f2c8)||_0x22d6fc['push']({'key':_0x57f2c8,'newValue':_0x24be3c,'oldValue':null,'range':_0x46c542}));}0x0!=_0x22d6fc['length']&&_0x1bffda['model']['enqueueChange'](_0xafbc1c,_0x4792e8=>{const _0x508379=_0x281607();for(const {range:_0x42459,key:_0x254d64,oldValue:_0xc44577,newValue:_0xf09bc1}of _0x22d6fc)this['markAttributeChange'](_0x42459,_0x254d64,_0xc44577,_0xf09bc1,{'groupId':_0x508379});this['_reduceExistingSuggestions'](_0x4792e8,_0x22d6fc);});},{'priority':'lowest'}),_0x1bffda['model']['markers']['on']('update:suggestion',(_0x4bc9c4,_0xe0b7f8,_0x4e8247)=>{if(null==_0x4e8247){const {id:_0x15443b}=this['_splitMarkerName'](_0xe0b7f8['name']),_0x5c9afe=this['_suggestions']['get'](_0x15443b);_0x5c9afe&&_0x5c9afe['addMarkerName'](_0xe0b7f8['name']);}}),_0x1bffda['model']['document']['on']('change:data',()=>{const _0x25ab33=Array['from'](_0x1bffda['model']['document']['differ']['getChangedMarkers']())['filter'](_0x422bdb=>'suggestion'===this['_splitMarkerName'](_0x422bdb['name'])['group']);if(0x0===_0x25ab33['length'])return;_0x25ab33['sort']((_0x13c7d2,_0x2a8805)=>{const _0x3f8ac1=_0x13c7d2['data']['oldRange'],_0x9a92fb=_0x2a8805['data']['oldRange'];return null===_0x3f8ac1&&null===_0x9a92fb?0x0:null===_0x3f8ac1&&null!==_0x9a92fb?-0x1:null!==_0x3f8ac1&&null===_0x9a92fb?0x1:_0x3f8ac1['start']['isBefore'](_0x9a92fb['start'])?-0x1:0x1;});const _0x889023=new Set(),_0x21ffa2=new Set();for(const {name:_0x34232b,data:_0x491634}of _0x25ab33){const {id:_0x2f2dd8}=this['_splitMarkerName'](_0x34232b);if(null===_0x491634['oldRange']){const _0x42aa50=this['_handleNewSuggestionMarker'](_0x34232b);_0x21ffa2['add'](_0x42aa50);}else{const _0x81775e=this['_suggestions']['get'](_0x2f2dd8);null!==_0x491634['newRange']||_0x81775e['isInContent']?(_0x889023['add'](_0x81775e['head']),_0x21ffa2['add'](_0x81775e)):this['_removeSuggestion'](_0x81775e);}}_0x21ffa2['size']>0x0&&this['_refreshSuggestionsChain'](_0x21ffa2);for(const _0x391a2e of _0x889023)this['fire']('suggestionChanged',_0x391a2e);}),_0x1bffda['model']['on']('applyOperation',(_0x28ea97,_0xf4047d)=>{const _0x3096bf=_0xf4047d[0x0];if(!this['_suggestions']['size'])return;if(!_0x3096bf['isDocumentOperation'])return;if(_0x3096bf['batch']['isUndo']||!_0x3096bf['batch']['isLocal'])return;let _0x213a0c,_0x35f5da;switch(_0x3096bf['type']){case'insert':_0x213a0c=_0x1bffda['model']['createPositionAt'](_0x3096bf['position']),_0x35f5da=_0x213a0c['getShiftedBy'](_0x3096bf['howMany']);break;case'split':_0x213a0c=_0x1bffda['model']['createPositionAt'](_0x3096bf['splitPosition']),_0x35f5da=_0x1bffda['model']['createPositionAt'](_0x3096bf['moveTargetPosition']);break;case'move':_0x213a0c=_0x1bffda['model']['createPositionAt'](_0x3096bf['targetPosition']),_0x35f5da=_0x213a0c['getShiftedBy'](_0x3096bf['howMany']);break;default:return;}const _0x59f33d=_0x1bffda['model']['createRange'](_0x213a0c,_0x35f5da);_0x1bffda['model']['change'](()=>{for(const {suggestion:_0x5907dd,meta:_0x27c52d}of this['_findSuggestions'](_0x59f33d)){if(_0x5907dd['isMultiRange'])continue;if('formatInline'==_0x5907dd['type'])continue;const _0xbe70ec=this['_getAttributeKey'](_0x5907dd);if(_0xbe70ec&&this['_isBlockAttribute'](_0xbe70ec)&&'split'!=_0x3096bf['type'])continue;const _0x320e6e=_0x5907dd['data']&&_0x5907dd['data']['multipleBlocks'];('formatBlock'!=_0x5907dd['type']||'split'==_0x3096bf['type']&&!_0x320e6e)&&(_0x27c52d['containsRangeInObject']||'insertion'==_0x5907dd['type']&&_0x27c52d['isOwn']||_0x5907dd['getFirstRange']()['containsRange'](_0x59f33d)&&this['_breakSuggestionMarker'](_0x5907dd,_0x213a0c,_0x35f5da));}});},{'priority':'lowest'}),_0x1bffda['model']['on']('deleteContent',(_0x4b6024,_0x36f799)=>{const _0x2eada6=_0x36f799[0x0],_0x4e6037=_0x36f799[0x1];if(_0x4e6037&&_0x4e6037['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2eada6['isCollapsed'])return;const _0xf82108=_0x1bffda['model']['schema'],{start:_0x516020,end:_0x4ce38e}=_0x2eada6['getFirstRange'](),_0x13ce46=_0x516020['nodeAfter']&&_0xf82108['isLimit'](_0x516020['nodeAfter'])?null:_0xf82108['getNearestSelectionRange'](_0x516020,'forward'),_0x1b8886=_0x4ce38e['nodeBefore']&&_0xf82108['isLimit'](_0x4ce38e['nodeBefore'])?null:_0xf82108['getNearestSelectionRange'](_0x4ce38e,'backward'),_0x5407a6=_0x1bffda['model']['createRange'](_0x13ce46?_0x13ce46['start']:_0x516020,_0x1b8886?_0x1b8886['end']:_0x4ce38e);_0x1bffda['model']['change'](_0x1c4cd3=>{this['markDeletion'](_0x5407a6);const _0x42dd19=_0x1bffda['model']['schema']['getNearestSelectionRange'](_0x5407a6['start']);_0x2eada6['is']('documentSelection')?_0x1c4cd3['setSelection'](_0x42dd19):_0x2eada6['setTo'](_0x42dd19);}),_0x4b6024['stop']();},{'priority':_0x4512e8['normal']+0xa}),_0x1bffda['model']['on']('insertContent',(_0x1b1379,_0xb285ff)=>{const _0x1c4fb3=_0xb285ff[_0xb285ff['length']-0x1];_0x1c4fb3&&_0x1c4fb3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1bffda['model']['change'](()=>{let _0x30b889=_0x1bffda['model']['insertContent'](_0xb285ff[0x0],_0xb285ff[0x1],_0xb285ff[0x2],{'forceDefaultExecution':!0x0});if(!_0x30b889)return;_0x1b1379['return']=_0x30b889['clone']();const _0xf4f459=_0x30b889['end']['nodeBefore'],_0x3845c1=_0x1bffda['model']['schema'];_0xf4f459&&_0x3845c1['isBlock'](_0xf4f459)&&!_0x3845c1['isObject'](_0xf4f459)&&(_0x30b889=_0x1bffda['model']['createRange'](_0x30b889['start'],_0x1bffda['model']['createPositionAt'](_0xf4f459,'end'))),this['markInsertion'](_0x30b889);}),_0x1b1379['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x341a2c=new x(_0x1bffda,this['_suggestions']);_0x1bffda['commands']['add']('acceptSuggestion',_0x341a2c),this['enableCommand']('acceptSuggestion');const _0x177215=new O(_0x1bffda,this['_suggestions']);_0x1bffda['commands']['add']('discardSuggestion',_0x177215),this['enableCommand']('discardSuggestion'),_0x1bffda['commands']['add']('acceptAllSuggestions',new R(_0x1bffda,_0x341a2c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1bffda['commands']['add']('discardAllSuggestions',new R(_0x1bffda,_0x177215,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1bffda['commands']['add']('acceptSelectedSuggestions',new E(_0x1bffda,_0x341a2c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1bffda['commands']['add']('discardSelectedSuggestions',new E(_0x1bffda,_0x177215,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x27f02c=_0x1bffda['plugins']['get']('CommentsRepository');this['listenTo'](_0x27f02c,'addComment',(_0x4e0793,{threadId:_0x561f96})=>{const _0x19bda4=this['_suggestions']['get'](_0x561f96);_0x19bda4&&_0x19bda4['commentThread']&&0x1===_0x19bda4['commentThread']['length']&&this['_updateSuggestionData'](_0x561f96,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x27f02c,'removeComment',(_0x149bbe,{threadId:_0x569df2})=>{const _0x429655=this['_suggestions']['get'](_0x569df2);_0x429655&&_0x429655['commentThread']&&!_0x429655['commentThread']['length']&&this['_updateSuggestionData'](_0x569df2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x56c11d){const _0x4ebb59=_0x59c5d8([0x57,0x4f,0x76,0x53,0x73,0x70,0x78,0x52,0x41,0x55,0x59,0x6b,0x46,0x67,0x4d,0x69,0x71,0x4b,0x61,0x36,0x6a,0x62,0x79,0x6f,0x65,0x7a,0x35,0x39,0x5a,0x4a,0x6e,0x33,0x43,0x49,0x58,0x4c,0x45,0x74,0x75,0x64,0x44,0x68,0x6d,0x38,0x50,0x54,0x51,0x48,0x32,0x56,0x30,0x63,0x72,0x31,0x77,0x6c,0x37,0x34,0x42,0x66,0x4e,0x47]),_0x3c9805=0x6f51f477,_0x2c0bdb=0x6f569e9f^_0x3c9805,_0x14ac42=window[_0x59c5d8([0x44,0x61,0x74,0x65])][_0x59c5d8([0x6e,0x6f,0x77])](),_0x1ce7e7=_0x56c11d[_0x59c5d8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b30d5=new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21c9db=>{_0x1ce7e7[_0x59c5d8([0x6f,0x6e,0x63,0x65])](_0x59c5d8([0x72,0x65,0x61,0x64,0x79]),_0x21c9db);}),_0x469c9f={[_0x59c5d8([0x6b,0x74,0x79])]:_0x59c5d8([0x45,0x43]),[_0x59c5d8([0x75,0x73,0x65])]:_0x59c5d8([0x73,0x69,0x67]),[_0x59c5d8([0x63,0x72,0x76])]:_0x59c5d8([0x50,0x2d,0x32,0x35,0x36]),[_0x59c5d8([0x78])]:_0x59c5d8([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x59c5d8([0x79])]:_0x59c5d8([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x59c5d8([0x61,0x6c,0x67])]:_0x59c5d8([0x45,0x53,0x32,0x35,0x36])},_0x2a80f1=_0x1ce7e7[_0x59c5d8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59c5d8([0x67,0x65,0x74])](_0x59c5d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbcf59b(){let _0x2a6ce5,_0x10c2d6=null,_0x9b670b=null;try{if(_0x2a80f1==_0x59c5d8([0x47,0x50,0x4c]))return _0x59c5d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a6ce5=_0x73e850(),!_0x2a6ce5)return _0x59c5d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a6ce5[_0x59c5d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9b670b=_0x4b2296(_0x2a6ce5[_0x59c5d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a6ce5[_0x59c5d8([0x6a,0x74,0x69])])),await _0x4bb856()?_0x6312b1()?_0x2356b2()?_0x59c5d8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34566f()?(_0x2a6ce5[_0x59c5d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59c5d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10c2d6=_0x5e7ff9(_0x59c5d8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a6ce5[_0x59c5d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59c5d8([0x74,0x72,0x69,0x61,0x6c])&&(_0x10c2d6=_0x5e7ff9(_0x59c5d8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b5f83()):_0x59c5d8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59c5d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59c5d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59c5d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2356b2(){const _0x5168f0=[_0x59c5d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59c5d8([0x74,0x72,0x69,0x61,0x6c])][_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a6ce5[_0x59c5d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14ac42/0x3e8:0xe10*_0x2c0bdb;return _0x2a6ce5[_0x59c5d8([0x65,0x78,0x70])]<_0x5168f0;}function _0x6312b1(){const _0x7a456=_0x2a6ce5[_0x59c5d8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x7a456)return!0x1;if(_0x7a456[_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59c5d8([0x2a])))return!0x0;if(_0x7a456[_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59c5d8([0x54,0x43])))return!0x0;if(_0x7a456[_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59c5d8([0x52,0x54,0x43]))){if(_0x34606c())return!0x0;if(_0x36bb4c()||_0x5d4d52())return!0x0;}return!0x1;}function _0x34566f(){const _0x5946f1=_0x2a6ce5[_0x59c5d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5946f1||0x0==_0x5946f1[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc090c}=new URL(window[_0x59c5d8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5946f1[_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc090c))return!0x0;const _0x45e3a8=_0xc090c[_0x59c5d8([0x73,0x70,0x6c,0x69,0x74])](_0x59c5d8([0x2e]));return _0x5946f1[_0x59c5d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x104249=>_0x104249[_0x59c5d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59c5d8([0x2a])))[_0x59c5d8([0x6d,0x61,0x70])](_0x4e9600=>_0x4e9600[_0x59c5d8([0x73,0x70,0x6c,0x69,0x74])](_0x59c5d8([0x2e])))[_0x59c5d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5032ce=>_0x5032ce[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45e3a8[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59c5d8([0x6d,0x61,0x70])](_0x53720c=>Array(_0x45e3a8[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x53720c[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59c5d8([0x66,0x69,0x6c,0x6c])](_0x53720c[0x0]===_0x59c5d8([0x2a])?_0x59c5d8([0x2a]):'')[_0x59c5d8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x53720c))[_0x59c5d8([0x73,0x6f,0x6d,0x65])](_0x3d1383=>_0x45e3a8[_0x59c5d8([0x65,0x76,0x65,0x72,0x79])]((_0x5c308c,_0x8eb92f)=>_0x3d1383[_0x8eb92f]===_0x5c308c||_0x3d1383[_0x8eb92f]===_0x59c5d8([0x2a])));}function _0x4b5f83(){return _0x10c2d6&&_0x9b670b?new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3380d9,_0x4be50a)=>{_0x10c2d6[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x3380d9,_0x4be50a),_0x9b670b[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x52ef1b=>{_0x52ef1b!=_0x59c5d8([0x56,0x61,0x6c,0x69,0x64])&&_0x3380d9(_0x52ef1b);},_0x4be50a);}):_0x10c2d6||_0x9b670b||_0x59c5d8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b2296(_0x44ef1b,_0x2918de){return new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6114ee=>{if(_0x499683())return _0x6114ee(_0x59c5d8([0x56,0x61,0x6c,0x69,0x64]));_0x23102f(),_0x1ce7e7[_0x59c5d8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59c5d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50c811=!0x1;const _0x1fffcd=_0x281607();function _0x24b746(_0x10192e){return!!_0x10192e&&(typeof _0x10192e===_0x59c5d8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10192e===_0x59c5d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10192e[_0x59c5d8([0x74,0x68,0x65,0x6e])]===_0x59c5d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10192e[_0x59c5d8([0x63,0x61,0x74,0x63,0x68])]===_0x59c5d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3651c8(_0x4d44a2){_0x367d55(_0x4d44a2)[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x309fa3=>{if(!_0x309fa3||_0x309fa3[_0x59c5d8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59c5d8([0x6f,0x6b]))return _0x59c5d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc8fda8(_0x479bb0(_0x1fffcd+_0x2918de))!=_0x309fa3[_0x59c5d8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59c5d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59c5d8([0x56,0x61,0x6c,0x69,0x64]);})[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x5bed8e=>(_0x478f7c(),_0x5bed8e),()=>{const _0x1e28c6=_0x48b2b9();return null==_0x1e28c6?(_0x478f7c(),_0x59c5d8([0x56,0x61,0x6c,0x69,0x64])):_0x59c5d8(_0x14ac42-_0x1e28c6>(0x4b5d7077^_0x3c9805)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x6114ee)[_0x59c5d8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6114ee(_0x59c5d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xcc742b=0x6f671af7^_0x3c9805;function _0x478f7c(){const _0x5c30ab=_0x59c5d8([0x6c,0x6c,0x63,0x74,0x2d])+_0xc8fda8(_0x479bb0(_0x44ef1b)),_0x4438c3=_0x2dba27(_0xc8fda8(window[_0x59c5d8([0x4d,0x61,0x74,0x68])][_0x59c5d8([0x63,0x65,0x69,0x6c])](_0x14ac42/_0xcc742b)));window[_0x59c5d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59c5d8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c30ab,_0x4438c3);}function _0x48b2b9(){const _0x51198b=_0x59c5d8([0x6c,0x6c,0x63,0x74,0x2d])+_0xc8fda8(_0x479bb0(_0x44ef1b)),_0x9e047a=window[_0x59c5d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59c5d8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51198b);return _0x9e047a?window[_0x59c5d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dba27(_0x9e047a),0x10)*_0xcc742b:null;}function _0x367d55(_0x504d6d){return new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37eeb6,_0x14e6fc)=>{_0x504d6d[_0x59c5d8([0x74,0x68,0x65,0x6e])](_0x37eeb6,_0x14e6fc),window[_0x59c5d8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14e6fc,0x6f5020b7^_0x3c9805);});}}_0x1ce7e7[_0x59c5d8([0x6f,0x6e])](_0x59c5d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1222a3,_0x26f4a9)=>{if(_0x26f4a9[0x0]!=_0x44ef1b)return _0x6114ee(_0x59c5d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26f4a9[0x1]={..._0x26f4a9[0x1],[_0x59c5d8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1fffcd};},{[_0x59c5d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59c5d8([0x68,0x69,0x67,0x68])}),_0x1ce7e7[_0x59c5d8([0x6f,0x6e])](_0x59c5d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x35eda6=>{_0x24b746(_0x35eda6[_0x59c5d8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50c811=!0x0,_0x3651c8(_0x35eda6[_0x59c5d8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59c5d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59c5d8([0x6c,0x6f,0x77])}),_0x2b30d5[_0x59c5d8([0x74,0x68,0x65,0x6e])](()=>{_0x50c811||_0x6114ee(_0x59c5d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x499683(){return _0x1ce7e7[_0x59c5d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59c5d8([0x76,0x69,0x65,0x77])][_0x59c5d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59c5d8([0x61,0x75,0x74,0x6f]);}function _0x23102f(){_0x1ce7e7[_0x59c5d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59c5d8([0x76,0x69,0x65,0x77])][_0x59c5d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59c5d8([0x61,0x75,0x74,0x6f]);}}function _0x5e7ff9(_0xef0af1){const _0xb0958c=[new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x123fcf=>setTimeout(_0x123fcf,0x6f58cabb^_0x3c9805)),_0x2b30d5[_0x59c5d8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42a3a2=>{let _0x24cc2e=0x0;_0x1ce7e7[_0x59c5d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x59c5d8([0x6f,0x6e])](_0x59c5d8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x56eba2,_0x25b6ff)=>{_0x25b6ff[0x0][_0x59c5d8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24cc2e++,_0x24cc2e==(0x6f51f58f^_0x3c9805)&&(_0x42a3a2(),_0x56eba2[_0x59c5d8([0x6f,0x66,0x66])]());});}))];return window[_0x59c5d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59c5d8([0x72,0x61,0x63,0x65])](_0xb0958c)[_0x59c5d8([0x74,0x68,0x65,0x6e])](()=>_0xef0af1);}async function _0x5b43f6(){await _0x2b30d5,_0x1ce7e7[_0x59c5d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x59c5d8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d03f7,_0x1ce7e7[_0x59c5d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x59c5d8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d03f7,_0x1ce7e7[_0x59c5d8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59c5d8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34606c(){return _0x5589a7(_0x59c5d8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x465431(_0x59c5d8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59c5d8([0x73,0x74,0x61,0x74,0x65])]==_0x59c5d8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36bb4c(){return _0x5589a7(_0x59c5d8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x5d4d52(){return _0x5589a7(_0x59c5d8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x14db32(_0x2dab45){const _0x54590f=_0x4ac8ab();_0x1ce7e7[_0x54590f]=_0x59c5d8([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2dab45,_0x2dab45!=_0x59c5d8([0x56,0x61,0x6c,0x69,0x64])&&_0x5b43f6();}function _0x4ac8ab(){const _0xbe5555=window[_0x59c5d8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59c5d8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59c5d8([0x6e,0x6f,0x77])]())[_0x59c5d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59c5d8([0x2e]),'');let _0x272435=_0x59c5d8([0x57]);for(let _0x417569=0x0;_0x417569<_0xbe5555[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x417569+=0x2){let _0x246ddc=window[_0x59c5d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbe5555[_0x59c5d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x417569,_0x417569+0x2));_0x246ddc>=_0x4ebb59[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x246ddc-=_0x4ebb59[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x272435+=_0x4ebb59[_0x246ddc];}return _0x272435;}function _0x73e850(){const _0x4b94c2=_0x2a80f1[_0x59c5d8([0x73,0x70,0x6c,0x69,0x74])](_0x59c5d8([0x2e]));if(0x3!=_0x4b94c2[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc66e39(_0x4b94c2[0x1]);function _0xc66e39(_0x11be67){const _0x69ed94=_0x6ef116(_0x11be67);return _0x69ed94&&_0x5e252c()?_0x69ed94:null;function _0x5e252c(){const _0x669b79=_0x69ed94[_0x59c5d8([0x6a,0x74,0x69])],_0x3fb20b=window[_0x59c5d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x669b79[_0x59c5d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x669b79[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x306bde={..._0x69ed94,[_0x59c5d8([0x6a,0x74,0x69])]:_0x669b79[_0x59c5d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x669b79[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x306bde[_0x59c5d8([0x76,0x63])],_0x479bb0(_0x306bde)==_0x3fb20b;}}}async function _0x4bb856(){let _0x2fff0c=!0x0;try{const _0x3a1804=_0x2a80f1[_0x59c5d8([0x73,0x70,0x6c,0x69,0x74])](_0x59c5d8([0x2e])),[_0x4773ee,_0x180ed6,_0x3e6881]=_0x3a1804;return _0x3dcbf4(_0x4773ee),await _0x346135(_0x4773ee,_0x180ed6,_0x3e6881),_0x2fff0c;}catch{return!0x1;}function _0x3dcbf4(_0x43d69c){const _0x23d982=_0x6ef116(_0x43d69c);_0x23d982&&_0x23d982[_0x59c5d8([0x61,0x6c,0x67])]==_0x59c5d8([0x45,0x53,0x32,0x35,0x36])||(_0x2fff0c=!0x1);}async function _0x346135(_0x3d57f3,_0x17e319,_0x3992e3){const _0x1c338a=window[_0x59c5d8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59c5d8([0x66,0x72,0x6f,0x6d])](_0x141ddc(_0x3992e3),_0x3a2ce0=>_0x3a2ce0[_0x59c5d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3355a0=new window[(_0x59c5d8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59c5d8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d57f3+_0x59c5d8([0x2e])+_0x17e319),_0x2657bc=window[_0x59c5d8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59c5d8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2657bc)return;const _0x328df5=await _0x2657bc[_0x59c5d8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59c5d8([0x6a,0x77,0x6b]),_0x469c9f,{[_0x59c5d8([0x6e,0x61,0x6d,0x65])]:_0x59c5d8([0x45,0x43,0x44,0x53,0x41]),[_0x59c5d8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59c5d8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59c5d8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2657bc[_0x59c5d8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59c5d8([0x6e,0x61,0x6d,0x65])]:_0x59c5d8([0x45,0x43,0x44,0x53,0x41]),[_0x59c5d8([0x68,0x61,0x73,0x68])]:{[_0x59c5d8([0x6e,0x61,0x6d,0x65])]:_0x59c5d8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x328df5,_0x1c338a,_0x3355a0)||(_0x2fff0c=!0x1);}}function _0x6ef116(_0x3bb321){return _0x3bb321[_0x59c5d8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59c5d8([0x65,0x79]))?JSON[_0x59c5d8([0x70,0x61,0x72,0x73,0x65])](_0x141ddc(_0x3bb321)):null;}function _0x141ddc(_0x273767){return window[_0x59c5d8([0x61,0x74,0x6f,0x62])](_0x273767[_0x59c5d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59c5d8([0x2b]))[_0x59c5d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59c5d8([0x2f])));}function _0x479bb0(_0x4a0407){let _0x38fb51=0x1505;function _0x54f7de(_0x339a9c){for(let _0x284e85=0x0;_0x284e85<_0x339a9c[_0x59c5d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x284e85++){const _0x5a1364=_0x339a9c[_0x59c5d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x284e85);_0x38fb51=(_0x38fb51<<0x5)+_0x38fb51+_0x5a1364,_0x38fb51&=_0x38fb51;}}function _0x676927(_0x5a715f){Array[_0x59c5d8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a715f)?_0x5a715f[_0x59c5d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x676927):_0x5a715f&&typeof _0x5a715f==_0x59c5d8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59c5d8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a715f)[_0x59c5d8([0x73,0x6f,0x72,0x74])]()[_0x59c5d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x414993,_0x53462d])=>{_0x54f7de(_0x414993),_0x676927(_0x53462d);}):_0x54f7de(window[_0x59c5d8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a715f));}return _0x676927(_0x4a0407),_0x38fb51>>>0x0;}function _0xc8fda8(_0x365e42){return _0x365e42[_0x59c5d8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59c5d8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59c5d8([0x30]));}function _0x2dba27(_0x577847){return _0x577847[_0x59c5d8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59c5d8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59c5d8([0x6a,0x6f,0x69,0x6e])]('');}function _0x5589a7(_0x325b79){return _0x1ce7e7[_0x59c5d8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59c5d8([0x68,0x61,0x73])](_0x325b79);}function _0x465431(_0xcb20cd){return _0x1ce7e7[_0x59c5d8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59c5d8([0x67,0x65,0x74])](_0xcb20cd);}function _0x3d03f7(){}function _0x59c5d8(_0x24e541){return _0x24e541['map'](_0x40cb3d=>String['fromCharCode'](_0x40cb3d))['join']('');}_0x14db32(await _0xbcf59b());}(this);}set['adapter'](_0x379b87){if(this['_adapter'])throw new _0xc7eb95('track-changes-adapter-already-set',this);this['_adapter']=_0x379b87;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x373d03=!0x1,toJSON:_0x1ab05a=!0x1}={}){const _0x1b0ae4=[];for(const _0x214262 of this['_suggestions']['values']())_0x373d03&&!_0x214262['isInContent']||_0x1b0ae4['push'](_0x214262);return _0x1ab05a?_0x1b0ae4['map'](_0x2ead48=>_0x2ead48['toJSON']()):_0x1b0ae4;}['getSuggestion'](_0x304779){const _0x5ef7c6=this['_suggestions']['get'](_0x304779);if(!_0x5ef7c6)throw new _0xc7eb95('track-changes-suggestion-not-found',this);return _0x5ef7c6;}['hasSuggestion'](_0x30956a){return this['_suggestions']['has'](_0x30956a);}['addSuggestionData'](_0x54f727){const {authorId:_0x147ade,id:_0x365e4b,originalSuggestionId:_0x13a644,attributes:_0x2a6106}=_0x54f727,[_0x2d48ac,_0x39a458]=_0x54f727['type']['split'](':'),_0x1c15c9=this['_suggestions']['get'](_0x365e4b)||this['_createSuggestion'](_0x2d48ac,_0x39a458,_0x365e4b,_0x147ade,_0x2a6106,_0x13a644);if(this['_addThreadToSuggestion'](_0x1c15c9),this['_checkSuggestionCorrectness'](_0x1c15c9,_0x2d48ac,_0x39a458||null,_0x147ade),_0x1c15c9['createdAt']=_0x54f727['createdAt'],_0x1c15c9['_isDataLoaded']=!0x0,_0x2a6106&&_0x2a6106['@external']){const _0x8e7ae0=_0x2a6106['@external'],_0x118f23=this['_getExternalAuthor'](_0x8e7ae0['authorName']);_0x1c15c9['authoredAt']=_0x8e7ae0['createdAt'],_0x1c15c9['author']=_0x118f23,_0x1c15c9['isExternal']=!0x0;}else _0x1c15c9['authoredAt']=_0x54f727['createdAt'];switch(_0x54f727['data']&&(_0x1c15c9['data']=_0x54f727['data']),_0x54f727['attributes']&&(_0x1c15c9['attributes']=_0x54f727['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1c15c9['_saved']=!0x0),this['_suggestionState']['get'](_0x1c15c9)){case'notReady':this['_suggestionState']['set'](_0x1c15c9,'dataReady');break;case'markerReady':_0x1c15c9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1c15c9])),this['_refreshSuggestionsChain'](new Set([_0x1c15c9])),this['_suggestionState']['set'](_0x1c15c9,'ready'),this['fire']('suggestionLoaded',_0x1c15c9)):this['_suggestionState']['set'](_0x1c15c9,'removed');}return _0x1c15c9;}['acceptSuggestion'](_0x5cb29c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xc9a70d of _0x5cb29c['getAllAdjacentSuggestions']())_0xc9a70d['accept']();});});}['discardSuggestion'](_0x70ca0c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4b37de of _0x70ca0c['getAllAdjacentSuggestions']())_0x4b37de['discard']();});});}['enableCommand'](_0x51eefa,_0x23caec){const _0x5bcf30=this['editor']['commands']['get'](_0x51eefa);if(!_0x5bcf30)throw new _0xc7eb95('track-changes-command-not-found',this,{'commandName':_0x51eefa});if(this['_enabledCommands']['has'](_0x5bcf30))throw new _0xc7eb95('track-changes-enable-command-twice',this,{'commandName':_0x51eefa});this['_enabledCommands']['add'](_0x5bcf30),_0x23caec&&_0x5bcf30['on']('execute',(_0x4e43cd,_0x3274ef)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3274ef['length']>0x0&&_0x3274ef[_0x3274ef['length']-0x1]&&_0x3274ef[_0x3274ef['length']-0x1]['forceDefaultExecution']?_0x3274ef['pop']():(_0x4e43cd['return']=_0x23caec((..._0x34974a)=>_0x5bcf30['execute'](..._0x34974a,{'forceDefaultExecution':!0x0}),..._0x3274ef),_0x4e43cd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x24b559){let _0x344055,_0x53ee4c;const _0x5c92b2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x344055=_0x24b559();}catch(_0x593097){_0x53ee4c=_0x593097;}return _0x5c92b2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x53ee4c&&_0xc7eb95['rethrowUnexpectedError'](_0x53ee4c,this),_0x344055;}['markInsertion'](_0x314e67,_0x5696c9=null,_0x44605d={}){if(_0x314e67['isCollapsed'])return null;const _0x4146e9=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x44605d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xb12e28,meta:_0x2ca825}of this['_findSuggestions'](_0x314e67,'insertion'))if(_0x2ca825['isOwn']){if(!_0x2ca825['isNextTo']){if(_0x2ca825['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0xb12e28,_0x44605d))continue;return _0xb12e28;}if(Xt(_0xb12e28,_0x44605d))return _0xb12e28;this['_breakSuggestionMarker'](_0xb12e28,_0x314e67['start'],_0x314e67['end']);break;}if(_0x5696c9==_0xb12e28['subType']&&Xt(_0xb12e28,_0x44605d)){const _0x1321ef=_0xb12e28['getFirstRange']();return _0x1321ef['start']['isEqual'](_0x314e67['end'])?this['_setSuggestionRange'](_0xb12e28,this['_model']['createRange'](_0x314e67['start'],_0x1321ef['end'])):this['_setSuggestionRange'](_0xb12e28,this['_model']['createRange'](_0x1321ef['start'],_0x314e67['end'])),_0xb12e28;}}const _0x2eb6e8=_0x281607(),_0x59654b=_0x4146e9['id'],_0x459b09=_0x5696c9?'insertion:'+_0x5696c9:'insertion',_0x4db0cf=this['_setSuggestionData']({'id':_0x2eb6e8,'type':_0x459b09,'createdAt':new Date(),'authorId':_0x59654b,'attributes':_0x44605d});return this['_addSuggestionMarker'](_0x459b09,_0x2eb6e8,_0x59654b,_0x314e67),_0x4db0cf;}['markMultiRangeInsertion'](_0x14aa3d,_0x532cf6='multi',_0x135eda={}){const _0x1cb1fe=this['editor']['plugins']['get']('Users')['me'],_0x182367=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x532cf6,'join');this['_trackingSessionId']&&(_0x135eda['trackingSessionId']=this['_trackingSessionId']);for(const _0xb2f1ed of this['getSuggestions']())if(_0xb2f1ed['author']['id']==_0x1cb1fe['id']&&'insertion'==_0xb2f1ed['type']&&_0xb2f1ed['subType']==_0x532cf6&&Xt(_0xb2f1ed,_0x135eda)&&(_0x182367(_0xb2f1ed['getRanges'](),_0x14aa3d)||_0x182367(_0x14aa3d,_0xb2f1ed['getRanges']()))){for(const _0x378473 of _0x14aa3d)_0xb2f1ed['addRange'](_0x378473);return _0xb2f1ed;}for(const {suggestion:_0x1e4a27,meta:_0x3ab482}of this['_findSuggestions'](_0x14aa3d,'insertion')){if(!_0x3ab482['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3ab482['containsRangeInObject'])continue;if(!Xt(_0x1e4a27,_0x135eda))continue;let _0x195ecd=!0x0;for(const _0x371665 of _0x1e4a27['getRanges']())for(const _0x2f5234 of _0x14aa3d)if(!_0x371665['containsRange'](_0x2f5234)){_0x195ecd=!0x1;break;}if(_0x195ecd)return _0x1e4a27;}const _0x33e37e=_0x281607(),_0x71fabd=_0x1cb1fe['id'],_0x10dd43='insertion:'+_0x532cf6,_0x393c53=this['_setSuggestionData']({'id':_0x33e37e,'type':_0x10dd43,'createdAt':new Date(),'authorId':_0x71fabd,'attributes':_0x135eda});for(const _0x2eb12a of _0x14aa3d)this['_addSuggestionMarker'](_0x10dd43,_0x33e37e,_0x71fabd,_0x2eb12a,o['getMultiRangeId']());return _0x393c53;}['markInlineFormat'](_0x103254,_0x26537b,_0x2ac9b3=null,_0x993e9={}){if(_0x2ac9b3=_0x2ac9b3||Kt(_0x26537b),_0x103254['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x993e9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc5d15e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2ac9b3,'accept');return this['forceDefaultExecution'](()=>_0xc5d15e([_0x103254],_0x26537b,_0x993e9)),null;}const _0x385d98=this['editor']['plugins']['get']('Users')['me'],_0x4e1adc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4561b5,meta:_0x24e774}of this['_findSuggestions'](_0x103254,'insertion'))_0x24e774['isOwn']&&!_0x24e774['isInsideObject']&&_0x4e1adc['push'](..._0x4561b5['getRanges']());}const _0x284c4f=function(_0x3be0f2,_0x19ee93){const _0x43f96f=[];for(const _0x526ba8 of _0x19ee93){const _0x1bd247=_0x3be0f2['getIntersection'](_0x526ba8);_0x1bd247&&_0x43f96f['push'](_0x1bd247);}return _0x43f96f;}(_0x103254,_0x4e1adc),_0xbe600c=function(_0x2d7aff,_0x24747c){const _0x54fa31=[_0x2d7aff];for(const _0x58d261 of _0x24747c){let _0x13b0d9=0x0;for(;_0x13b0d9<_0x54fa31['length'];){const _0x11dffd=_0x54fa31[_0x13b0d9]['getDifference'](_0x58d261);_0x54fa31['splice'](_0x13b0d9,0x1,..._0x11dffd),_0x13b0d9+=_0x11dffd['length'];}}return _0x54fa31;}(_0x103254,_0x4e1adc);_0x284c4f['length']&&this['_model']['change'](()=>{for(const _0x32b491 of _0x284c4f){const _0x36788d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2ac9b3,'accept');this['forceDefaultExecution'](()=>_0x36788d([_0x32b491],_0x26537b,_0x993e9));}});for(const _0x3ca7b8 of _0xbe600c){let _0x48df67=null,_0x230c1c=_0x3ca7b8['start'],_0x3a5027=_0x3ca7b8['end'];for(const {suggestion:_0x5bcc60,meta:_0x497247}of this['_findSuggestions'](_0x3ca7b8,'formatInline')){if(!_0x497247['isOwn'])continue;if(_0x5bcc60['subType']!=_0x2ac9b3)continue;if(!Xt(_0x5bcc60,_0x993e9))continue;const _0x229929=_0x5bcc60['getFirstRange']();if(_0x229929['containsRange'](_0x3ca7b8,!0x0))return null;_0x230c1c=_0x230c1c['isBefore'](_0x229929['start'])?_0x230c1c:_0x229929['start'],_0x3a5027=_0x3a5027['isAfter'](_0x229929['end'])?_0x3a5027:_0x229929['end'],_0x48df67?_0x229929['start']['isBefore'](_0x48df67['getFirstRange']()['start'])?(_0x48df67['removeMarkers'](),_0x48df67=_0x5bcc60):_0x5bcc60['removeMarkers']():_0x48df67=_0x5bcc60;}const _0x50c89f=this['_model']['createRange'](_0x230c1c,_0x3a5027);if(_0x48df67)this['_setSuggestionRange'](_0x48df67,_0x50c89f);else{const _0x368aa7=_0x281607(),_0x275f8a=_0x385d98['id'];this['_setSuggestionData']({'id':_0x368aa7,'type':'formatInline:'+_0x2ac9b3,'data':_0x26537b,'createdAt':new Date(),'authorId':_0x275f8a,'attributes':_0x993e9}),this['_addSuggestionMarker']('formatInline:'+_0x2ac9b3,_0x368aa7,_0x275f8a,_0x50c89f);}}return null;}['markBlockFormat'](_0x14f583,_0x37b4ad,_0x362cce=[],_0x3eb6b5=null,_0x331bc6={}){_0x37b4ad['formatGroupId']||(_0x37b4ad['formatGroupId']=_0x37b4ad['commandName']),_0x37b4ad['multipleBlocks']=_0x14f583['is']('range'),_0x3eb6b5=_0x3eb6b5||Kt(_0x37b4ad);const _0x31994c=_0x362cce['map'](_0x29cc1c=>zt(_0x29cc1c,this['_model'])),_0x3d8ec9=_0x14f583['is']('range')?_0x14f583:zt(_0x14f583,this['_model']);if(this['_trackingSessionId']&&(_0x331bc6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3ae6f0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3eb6b5,'accept');return this['forceDefaultExecution'](()=>_0x3ae6f0([_0x3d8ec9],_0x37b4ad,_0x331bc6)),null;}_0x31994c['push'](_0x3d8ec9);let _0x3395b3=!0x0;for(const _0x5e8528 of _0x31994c)if(!this['_rangeIsInLocalUserInsertion'](_0x5e8528)){_0x3395b3=!0x1;break;}if(_0x3395b3&&'always'!==this['_trackFormatChanges']){const _0x353174=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3eb6b5,'accept');return this['forceDefaultExecution'](()=>_0x353174([_0x3d8ec9],_0x37b4ad,_0x331bc6)),null;}let _0x503392=null,_0x5b9b3c=_0x3d8ec9['start'],_0x48c946=_0x3d8ec9['end'];for(const {suggestion:_0x24ea46,meta:_0x561744}of this['_findSuggestions'](_0x3d8ec9,'formatBlock')){if(!_0x561744['isOwn'])continue;if(_0x561744['isNextTo']||_0x561744['containsRangeInObject']||_0x561744['isInsideObject'])continue;if(_0x24ea46['data']['formatGroupId']!=_0x37b4ad['formatGroupId'])continue;if(!Xt(_0x24ea46,_0x331bc6))continue;const _0x4035d4=_0x24ea46['getFirstRange']();if(_0x24ea46['subType']==_0x3eb6b5){if(_0x4035d4['containsRange'](_0x3d8ec9,!0x0))return null;_0x5b9b3c=_0x5b9b3c['isBefore'](_0x4035d4['start'])?_0x5b9b3c:_0x4035d4['start'],_0x48c946=_0x48c946['isAfter'](_0x4035d4['end'])?_0x48c946:_0x4035d4['end'],_0x503392?_0x4035d4['start']['isBefore'](_0x503392['getFirstRange']()['start'])?(_0x503392['removeMarkers'](),_0x503392=_0x24ea46):_0x24ea46['removeMarkers']():_0x503392=_0x24ea46;}else{const _0x301c6c=_0x3d8ec9['getIntersection'](_0x4035d4);this['_cutOutSuggestionMarker'](_0x24ea46,_0x301c6c);}}const _0x47b67b=this['editor']['plugins']['get']('Users')['me'],_0x192b02=_0x281607(),_0x2966ba=_0x47b67b['id'];if(_0x503392)return this['_setSuggestionRange'](_0x503392,this['_model']['createRange'](_0x5b9b3c,_0x48c946)),_0x503392;{const _0x120a12=this['_setSuggestionData']({'id':_0x192b02,'type':'formatBlock:'+_0x3eb6b5,'data':_0x37b4ad,'createdAt':new Date(),'authorId':_0x2966ba,'attributes':_0x331bc6});return this['_addSuggestionMarker']('formatBlock:'+_0x3eb6b5,_0x192b02,_0x2966ba,this['_model']['createRange'](_0x5b9b3c,_0x48c946)),_0x120a12;}}['markMultiRangeBlockFormat'](_0x5e3f0c,_0x25ffce,_0x10fa3a=[],_0x2b5d3b=null,_0x103ea0={}){_0x25ffce['formatGroupId']||(_0x25ffce['formatGroupId']=_0x25ffce['commandName']);const _0x3200ed=_0x5e3f0c[0x0];_0x25ffce['multipleBlocks']=_0x3200ed['is']('range'),_0x2b5d3b=_0x2b5d3b||Kt(_0x25ffce);const _0x442aea=_0x10fa3a['map'](_0x4a4f11=>zt(_0x4a4f11,this['_model'])),_0x521803=_0x3200ed['is']('range')?_0x5e3f0c:_0x5e3f0c['map'](_0x4b15a0=>zt(_0x4b15a0,this['_model']));if(this['_trackingSessionId']&&(_0x103ea0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37a9e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b5d3b,'accept');return this['forceDefaultExecution'](()=>_0x37a9e6(_0x521803,_0x25ffce,_0x103ea0)),null;}_0x442aea['push'](..._0x521803);let _0x3d4854=!0x0;for(const _0x3ea5b6 of _0x442aea)if(!this['_rangeIsInLocalUserInsertion'](_0x3ea5b6)){_0x3d4854=!0x1;break;}if(_0x3d4854&&'always'!==this['_trackFormatChanges']){const _0x37590e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b5d3b,'accept');return this['forceDefaultExecution'](()=>_0x37590e(_0x521803,_0x25ffce,_0x103ea0)),null;}const _0x3c9477=this['editor']['plugins']['get']('Users')['me'];for(const _0x54d60c of this['getSuggestions']()){if(_0x54d60c['author']['id']!=_0x3c9477['id'])continue;if('formatBlock'!=_0x54d60c['type']||_0x54d60c['data']['formatGroupId']!=_0x25ffce['formatGroupId'])continue;if(!Xt(_0x54d60c,_0x103ea0))continue;const _0x3e7a74=_0x54d60c['subType']==_0x2b5d3b;for(let _0x152b71=0x0;_0x152b71<_0x521803['length'];_0x152b71++){const _0x30a782=_0x521803[_0x152b71];for(const _0x2f54e7 of _0x54d60c['getMarkers']()){const _0x46df3b=_0x2f54e7['getRange']();if(_0x30a782['isEqual'](_0x46df3b)){_0x3e7a74?(_0x521803['splice'](_0x152b71,0x1),_0x152b71--):_0x54d60c['removeMarker'](_0x2f54e7['name']);break;}}}}if(0x0==_0x521803['length'])return null;const _0x169aae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b5d3b,'join');for(const _0x1d8190 of this['getSuggestions']())if(_0x1d8190['author']['id']==_0x3c9477['id']&&'formatBlock'==_0x1d8190['type']&&_0x1d8190['data']['formatGroupId']==_0x25ffce['formatGroupId']&&_0x1d8190['subType']==_0x2b5d3b&&Xt(_0x1d8190,_0x103ea0)&&(_0x169aae(_0x1d8190['getRanges'](),_0x521803)||_0x169aae(_0x521803,_0x1d8190['getRanges']()))){for(const _0x447021 of _0x521803)_0x1d8190['addRange'](_0x447021);return _0x1d8190;}const _0x1ff9ed=_0x281607(),_0x387697=_0x3c9477['id'],_0x91a402='formatBlock:'+_0x2b5d3b,_0xe10cc2=this['_setSuggestionData']({'id':_0x1ff9ed,'type':_0x91a402,'data':_0x25ffce,'createdAt':new Date(),'authorId':_0x387697,'attributes':_0x103ea0});for(const _0x2a0be5 of _0x521803)this['_addSuggestionMarker'](_0x91a402,_0x1ff9ed,_0x387697,_0x2a0be5,o['getMultiRangeId']());return _0xe10cc2;}['markDeletion'](_0x3892c1,_0x2b216c=null,_0x553033={}){if(_0x3892c1['isCollapsed'])return null;const _0x50f325=this['editor']['plugins']['get']('Users')['me'],_0x5c81db=new _0x268add(_0x3892c1['start'],_0x3892c1['end']);this['_trackingSessionId']&&(_0x553033['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x571c5f,meta:_0x172368}of this['_findSuggestions'](_0x5c81db,'insertion'))if(_0x172368['isOwn']&&!_0x172368['isNextTo']){if(_0x571c5f['isMultiRange']){const _0x55ae04=_0x571c5f['getRanges']()['filter'](_0x378c9d=>'$graveyard'!=_0x378c9d['root']['rootName']);_0x55ae04['every'](_0x153614=>_0x5c81db['containsRange'](_0x153614,!0x0))&&_0x571c5f['discard']();if(_0x55ae04['some'](_0x52647e=>_0x52647e['containsRange'](_0x5c81db,!0x0))){const _0x1b6ea8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b216c,'accept');return this['forceDefaultExecution'](()=>_0x1b6ea8([_0x5c81db],null,_0x553033)),null;}}else{const _0x3420b6=_0x5c81db['getIntersection'](_0x571c5f['getFirstRange']());null!==_0x3420b6&&_0x571c5f['_onDiscard']([_0x3420b6],null,_0x553033);}}if(_0x5c81db['detach'](),_0x5c81db['isCollapsed']||'$graveyard'==_0x5c81db['root']['rootName'])return null;let _0x58d8f8=null,_0x3a5bbd=_0x5c81db['start'],_0x2b83d5=_0x5c81db['end'];const _0x14d434=this['_findSuggestions'](_0x5c81db,'deletion');for(const {suggestion:_0x4bf914,meta:_0x254786}of _0x14d434){const _0x2ccdc7=this['_model']['createRange'](_0x3a5bbd,_0x2b83d5);if(_0x254786['isOwn']&&(this['_mergeNestedSuggestions']||!_0x254786['containsRangeInObject']&&!_0x254786['isInsideObject'])){if(_0x4bf914['isMultiRange']){if(!Xt(_0x4bf914,_0x553033))continue;let _0x189a31=!0x0;for(const _0x2d1ab6 of _0x4bf914['getRanges']()){if(_0x2d1ab6['containsRange'](_0x2ccdc7,!0x0))return _0x4bf914;_0x2ccdc7['containsRange'](_0x2d1ab6)||(_0x189a31=!0x1);}_0x189a31&&_0x4bf914['discard']();}else{const _0xcd3ad=_0x4bf914['getFirstRange']();if(_0xcd3ad['containsRange'](_0x2ccdc7,!0x0))return _0x4bf914;if(!Xt(_0x4bf914,_0x553033)){_0x2ccdc7['containsRange'](_0xcd3ad)?_0x4bf914['removeMarkers']():_0xcd3ad['containsPosition'](_0x3a5bbd)?_0x3a5bbd=_0xcd3ad['end']:_0xcd3ad['containsPosition'](_0x2b83d5)&&(_0x2b83d5=_0xcd3ad['start']);continue;}_0x3a5bbd=_0x3a5bbd['isBefore'](_0xcd3ad['start'])?_0x3a5bbd:_0xcd3ad['start'],_0x2b83d5=_0x2b83d5['isAfter'](_0xcd3ad['end'])?_0x2b83d5:_0xcd3ad['end'],_0x553033=Object['assign']({},_0x4bf914['attributes']),_0x58d8f8?_0xcd3ad['start']['isBefore'](_0x58d8f8['getFirstRange']()['start'])?(_0x58d8f8['removeMarkers'](),_0x58d8f8=_0x4bf914):_0x4bf914['removeMarkers']():_0x58d8f8=_0x4bf914;}}}if(_0x58d8f8)return this['_setSuggestionRange'](_0x58d8f8,this['_model']['createRange'](_0x3a5bbd,_0x2b83d5)),_0x58d8f8;{const _0x274c09=_0x281607(),_0x4d13ca=this['_model']['createRange'](_0x3a5bbd,_0x2b83d5),_0x2de0c3=_0x50f325['id'],_0x55ccc3=_0x2b216c?'deletion:'+_0x2b216c:'deletion',_0x4b8ceb=this['_setSuggestionData']({'id':_0x274c09,'type':_0x55ccc3,'createdAt':new Date(),'authorId':_0x2de0c3,'attributes':_0x553033});return this['_addSuggestionMarker'](_0x55ccc3,_0x274c09,_0x2de0c3,_0x4d13ca),_0x4b8ceb;}}['markMultiRangeDeletion'](_0x28fe7d,_0x449a6f='multi',_0x47a290={}){const _0x323ee2=this['editor']['plugins']['get']('Users')['me'],_0x28ab46=_0x28fe7d['map'](_0x483b2d=>new _0x268add(_0x483b2d['start'],_0x483b2d['end'])),_0x11d0a4=new Set();this['_trackingSessionId']&&(_0x47a290['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xd2b841,meta:_0x5a14bc}of this['_findSuggestions'](_0x28ab46,'insertion'))_0x5a14bc['isOwn']&&!_0x5a14bc['isNextTo']&&_0x11d0a4['add'](_0xd2b841);for(const _0x8b9c7d of _0x11d0a4)if(_0x8b9c7d['isMultiRange']){const _0x1c7242=_0x8b9c7d['getRanges']();(!_0x8b9c7d['attributes']||!_0x8b9c7d['attributes']['skipNestingCheck'])&&(_0x1c7242['every'](_0x11d8bd=>_0x28ab46['some'](_0x392b16=>_0x392b16['containsRange'](_0x11d8bd,!0x0)))&&_0x8b9c7d['discard']());if(_0x28ab46['every'](_0x22cd4b=>_0x1c7242['some'](_0x1087d0=>_0x1087d0['containsRange'](_0x22cd4b,!0x0)))){const _0x29fb03=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x449a6f,'accept');return this['forceDefaultExecution'](()=>_0x29fb03(_0x28fe7d,null,_0x47a290)),null;}}else{const _0x5b9e06=_0x8b9c7d['getFirstRange']();_0x28ab46['some'](_0x156945=>_0x156945['containsRange'](_0x5b9e06,!0x0))&&_0x8b9c7d['discard']();if(_0x28ab46['every'](_0x504385=>_0x5b9e06['containsRange'](_0x504385,!0x0))){const _0x111e4f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x449a6f,'accept');return this['forceDefaultExecution'](()=>_0x111e4f(_0x28ab46,null,_0x47a290)),null;}}const _0x38b047=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x449a6f,'join');let _0x50515e=null;for(const _0x299638 of this['getSuggestions']())if(_0x299638['author']['id']==_0x323ee2['id']&&_0x299638['isInContent']&&'deletion'==_0x299638['type']&&_0x299638['subType']==_0x449a6f&&Xt(_0x299638,_0x47a290)&&(_0x38b047(_0x299638['getRanges'](),_0x28ab46)||_0x38b047(_0x28ab46,_0x299638['getRanges']()))){if(_0x50515e){if(_0x299638['commentThread']&&_0x299638['commentThread']['length'])continue;for(const _0x41d5e8 of _0x299638['getRanges']())_0x50515e['isIntersectingWithRange'](_0x41d5e8)||_0x50515e['addRange'](_0x41d5e8);_0x299638['removeMarkers']();}else{_0x50515e=_0x299638;for(const _0x18c76f of _0x28ab46)_0x299638['isIntersectingWithRange'](_0x18c76f)||_0x299638['addRange'](_0x18c76f);}}if(_0x50515e)return _0x50515e;_0x11d0a4['clear']();for(const {suggestion:_0x3829e1,meta:_0x79c419}of this['_findSuggestions'](_0x28ab46,'deletion'))_0x79c419['isOwn']&&(this['_mergeNestedSuggestions']||!_0x79c419['containsRangeInObject']&&!_0x79c419['isInsideObject'])&&Xt(_0x3829e1,_0x47a290)&&_0x11d0a4['add'](_0x3829e1);for(const _0xd41b5a of _0x11d0a4){const _0xf5a884=_0xd41b5a['getRanges']();if(!_0x47a290||!_0x47a290['skipNestingCheck']){if(_0x28ab46['every'](_0x47274d=>_0xf5a884['some'](_0xbd19a2=>_0xbd19a2['containsRange'](_0x47274d,!0x0))))return _0xd41b5a;}(!_0xd41b5a['attributes']||!_0xd41b5a['attributes']['skipNestingCheck'])&&(_0xf5a884['every'](_0x199a27=>_0x28ab46['some'](_0x113215=>_0x113215['containsRange'](_0x199a27,!0x0)))&&_0xd41b5a['discard']());}const _0x391598=_0x281607(),_0x55ec5a=_0x323ee2['id'],_0x4fb6a8='deletion:'+_0x449a6f,_0x3d2154=this['_setSuggestionData']({'id':_0x391598,'type':_0x4fb6a8,'createdAt':new Date(),'authorId':_0x55ec5a,'attributes':_0x47a290});for(const _0x208229 of _0x28ab46)_0x208229['detach'](),_0x208229['isCollapsed']||'$graveyard'==_0x208229['root']['rootName']||this['_addSuggestionMarker'](_0x4fb6a8,_0x391598,_0x55ec5a,_0x208229,o['getMultiRangeId']());return _0x3d2154;}['markAttributeChange'](_0x43fd5a,_0x4582ed,_0x2af91e,_0x12a57b,_0x525b8f){if(_0x43fd5a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x41d8b8=this['editor']['plugins']['get']('Users')['me']['id'],_0x314336=Array['from'](this['_suggestions']['values']())['filter'](_0x5a2603=>'attribute'==_0x5a2603['type']&&_0x5a2603['data']['key']==_0x4582ed&&_0x5a2603['isIntersectingWithRange'](_0x43fd5a));if(this['_trackingSessionId']&&(_0x525b8f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xe2a2ff=this['_findSuggestions'](_0x43fd5a,'insertion')['filter'](({meta:_0x3d0b23})=>_0x3d0b23['isOwn']&&!_0x3d0b23['isInsideObject']&&!_0x3d0b23['isNextTo'])['map'](({suggestion:_0x1565f9})=>_0x1565f9);_0x314336['unshift'](..._0xe2a2ff);}const _0x5ab2dc=new Map([[_0x43fd5a,_0x2af91e]]);for(const _0x390c09 of _0x314336){const _0x2d4220='attribute'==_0x390c09['type']?_0x390c09['data']['oldValue']:void 0x0,_0x37de08=_0x390c09['getFirstRange'](),_0x333b7a=Array['from'](_0x5ab2dc['keys']())['find'](_0x2a2989=>_0x2a2989['isIntersecting'](_0x37de08));if(!_0x333b7a)continue;const _0x50038f=_0x333b7a['getDifference'](_0x37de08);this['_isBlockAttribute'](_0x4582ed)&&'insertion'==_0x390c09['type']&&0x0!=_0x50038f['length']||(_0x5ab2dc['delete'](_0x333b7a),_0x50038f['forEach'](_0x3cd15c=>{_0x5ab2dc['set'](_0x3cd15c,_0x2af91e);}),'insertion'!=_0x390c09['type']&&_0x2d4220!=_0x12a57b&&_0x5ab2dc['set'](_0x333b7a['getIntersection'](_0x37de08),_0x2d4220));}const _0x1b4680=[];for(const [_0x5e46d7,_0xc2f3b9]of _0x5ab2dc){const _0x29bacd=_0x281607(),_0x40be4d={'key':_0x4582ed,'oldValue':_0xc2f3b9,'newValue':_0x12a57b};_0x4582ed['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':_0x4582ed});const _0x47ae8e=('attribute:'+(_0x4582ed+'|'+Kt({'newValue':_0x12a57b})))['substring'](0x0,0x3c),_0xb3c6e3=this['_setSuggestionData']({'id':_0x29bacd,'type':_0x47ae8e,'data':_0x40be4d,'createdAt':new Date(),'authorId':_0x41d8b8,'attributes':_0x525b8f});_0x1b4680['push'](_0xb3c6e3),this['_addSuggestionMarker'](_0x47ae8e,_0x29bacd,_0x41d8b8,_0x5e46d7);}return _0x1b4680;}['enableDefaultAttributesIntegration'](_0x1fd01b){this['enableCommand'](_0x1fd01b,(_0x51747f,..._0x4e4d53)=>{this['_recordAttributeChanges'](()=>{_0x51747f(..._0x4e4d53);});});}['registerBlockAttribute'](_0x223fe8){this['_blockAttributeKeys']['add'](_0x223fe8);}['registerInlineAttribute'](_0x122863){this['_inlineAttributeKeys']['add'](_0x122863);}['startTrackingSession'](_0x21a2ec){return this['_trackingSessionId']=void 0x0!==_0x21a2ec?_0x21a2ec:_0x281607(),this['_trackingSessionId'];}['_getAttributeKey'](_0x316c53){return'attribute'==_0x316c53['type']?_0x316c53['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x462db8,_0x59eb13){const _0x5183dc=_0x462db8['getFirstMarker']();this['_model']['change'](_0x50c43f=>{_0x50c43f['updateMarker'](_0x5183dc,{'range':_0x59eb13});});}['_addThreadToSuggestion'](_0x3a5b7b){const _0x2c23cb=_0x3a5b7b['id'],_0x3d0982=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2c23cb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d0982,'threadId':_0x2c23cb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1535ce=this['_commentsRepository']['getCommentThread'](_0x2c23cb);_0x1535ce['unbind']('isRemovable'),_0x1535ce['isRemovable']=!0x1,_0x3a5b7b['commentThread']=_0x1535ce;}['_checkSuggestionCorrectness'](_0x4b6617,_0x22b5c6,_0x4f0951,_0x17698f){if(_0x4b6617['type']!=_0x22b5c6||_0x4b6617['subType']!=_0x4f0951||_0x4b6617['creator']['id']!=_0x17698f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xc7eb95('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x365987,_0x3242e9){const _0xa00308=_0x365987['getFirstRange']();if(_0x3242e9['isEqual'](_0xa00308))_0x365987['removeMarkers']();else{if(_0xa00308['containsRange'](_0x3242e9)){const _0x6b8771=this['_model']['createPositionAt'](_0x3242e9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x365987,this['_model']['createRange'](_0xa00308['start'],_0x6b8771));const _0x45e603=_0x281607(),_0x24f41d=_0x365987['creator']['id'],_0x1200a3=_0x365987['type']+':'+_0x365987['subType'];this['_setSuggestionData']({'id':_0x45e603,'type':_0x1200a3,'createdAt':new Date(),'authorId':_0x24f41d,'data':_0x365987['data'],'attributes':_0x365987['attributes']});const _0x406559=this['_model']['createPositionAt'](_0x3242e9['end']['parent'],'after'),_0x35d779=this['_model']['createRange'](_0x406559,_0xa00308['end']);this['_addSuggestionMarker'](_0x1200a3,_0x45e603,_0x24f41d,_0x35d779);}else{if(_0xa00308['containsPosition'](_0x3242e9['start'])){const _0x23a090=this['_model']['createPositionAt'](_0x3242e9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x365987,this['_model']['createRange'](_0xa00308['start'],_0x23a090));}else{const _0x24703f=this['_model']['createPositionAt'](_0x3242e9['end']['parent'],'after');this['_setSuggestionRange'](_0x365987,this['_model']['createRange'](_0x24703f,_0xa00308['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3f1e66){for(const {suggestion:_0x537420,meta:_0x130a11}of this['_findSuggestions'](_0x3f1e66,'insertion')){if(!_0x130a11['isOwn'])continue;const _0x5c5f24=_0x537420['getRanges']();for(const _0x418aec of _0x5c5f24)if(!_0x3f1e66['getDifference'](_0x418aec)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e15b9){const _0x273eaa=this['editor']['plugins']['get']('Users')['getUser'](_0x5e15b9);if(!_0x273eaa)throw new _0xc7eb95('track-changes-user-not-found',this);return _0x273eaa;}['_getExternalAuthor'](_0x509fd8){const _0x436fdf=this['editor']['plugins']['get']('Users'),_0x2110d4=_0x3ed617('external:'+_0x509fd8),_0x4bb7d2=_0x436fdf['getUser'](_0x2110d4);return _0x4bb7d2||_0x436fdf['addUser']({'id':_0x2110d4,'name':_0x509fd8});}['_createSuggestion'](_0x9a708f,_0x13fbf7,_0x24c6cc,_0x40889e,_0x5dbdfa,_0x4593dc){const _0x4fd08d=this['_getAuthorFromId'](_0x40889e),_0x45fc63=this['_suggestionFactory']['buildSuggestion'](_0x9a708f,_0x13fbf7,_0x24c6cc,_0x4fd08d,_0x5dbdfa,_0x2a3052=>{this['_updateSuggestionData'](_0x24c6cc,{'attributes':_0x2a3052});const _0xd2c4f9=this['getSuggestion'](_0x24c6cc);this['_joinWithAdjacentSuggestions'](new Set([_0xd2c4f9])),this['_refreshSuggestionsChain'](new Set([_0xd2c4f9]));},_0x4593dc);return this['listenTo'](_0x45fc63,'accept',()=>{this['_updateSuggestionData'](_0x24c6cc,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x45fc63,'discard',()=>{this['_updateSuggestionData'](_0x24c6cc,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x24c6cc,_0x45fc63),this['_suggestionState']['set'](_0x45fc63,'notReady'),_0x45fc63;}['_splitMarkerName'](_0x4be410){const _0x12e340=_0x4be410['split'](':');return{'group':_0x12e340[0x0],'type':_0x12e340[0x1],'subType':_0x12e340['length']>=0x5?_0x12e340[0x2]:null,'id':_0x12e340['length']<0x5?_0x12e340[0x2]:_0x12e340[0x3],'authorId':_0x12e340['length']<0x5?_0x12e340[0x3]:_0x12e340[0x4],'markerCount':0x6==_0x12e340['length']?_0x12e340[0x5]:null};}['_breakSuggestionMarker'](_0x19be95,_0x1095c6,_0x26196a){const _0x52a6f3=_0x19be95['getFirstRange'](),_0x356e16=_0x52a6f3['start'],_0x1412f5=_0x52a6f3['end'];this['_setSuggestionRange'](_0x19be95,this['_model']['createRange'](_0x356e16,_0x1095c6));const _0x3e6326=_0x281607(),_0x3e5ebc=_0x19be95['creator']['id'],_0x59b33a=_0x19be95['type']+(_0x19be95['subType']?':'+_0x19be95['subType']:'');this['_setSuggestionData']({'id':_0x3e6326,'type':_0x59b33a,'createdAt':new Date(),'authorId':_0x3e5ebc,'originalSuggestionId':_0x19be95['_originalSuggestionId']||_0x19be95['id'],'attributes':_0x19be95['attributes'],'data':_0x19be95['data']});const _0xef0b06=this['_getAttributeKey'](_0x19be95);('formatBlock'==_0x19be95['type']||_0xef0b06&&this['_isBlockAttribute'](_0xef0b06))&&(_0x26196a=this['_model']['createPositionBefore'](_0x26196a['parent'])),this['_addSuggestionMarker'](_0x59b33a,_0x3e6326,_0x3e5ebc,this['_model']['createRange'](_0x26196a,_0x1412f5));}['_findSuggestions'](_0x21bd7f,_0x1ef537=null){const _0x3990ed=[],_0x3e2fd9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x21bd7f)||(_0x21bd7f=[_0x21bd7f]);for(const _0x20ab00 of this['getSuggestions']()){if(!_0x20ab00['isInContent'])continue;if(_0x1ef537&&_0x20ab00['type']!=_0x1ef537)continue;let _0x142f0f=!0x1;for(const _0x1c9f57 of _0x20ab00['getRanges']()){for(const _0x2528e7 of _0x21bd7f){const _0x3f21ca=_0x2528e7['start']['isEqual'](_0x1c9f57['end'])||_0x2528e7['end']['isEqual'](_0x1c9f57['start']);if(_0x3f21ca||_0x2528e7['getIntersection'](_0x1c9f57)){const _0x5b774b=_0x2528e7['containsRange'](_0x1c9f57)&&Gt(this['_model']['schema'],_0x1c9f57['start'],_0x2528e7),_0x3e2dbc=_0x1c9f57['containsRange'](_0x2528e7)&&Gt(this['_model']['schema'],_0x2528e7['start'],_0x1c9f57);_0x3990ed['push']({'suggestion':_0x20ab00,'meta':{'isOwn':_0x3e2fd9==_0x20ab00['author'],'isNextTo':_0x3f21ca,'isInsideObject':_0x5b774b,'containsRangeInObject':_0x3e2dbc}}),_0x142f0f=!0x0;break;}}if(_0x142f0f)break;}}return _0x3990ed;}['_addSuggestionMarker'](_0x5e430c,_0x595197,_0x39eb77,_0x19366b,_0x1eb5e3){this['_model']['change'](_0x4d446e=>{let _0x2cc012='suggestion:'+_0x5e430c+':'+_0x595197+':'+_0x39eb77;_0x1eb5e3&&(_0x2cc012=_0x2cc012+':'+_0x1eb5e3),_0x4d446e['addMarker'](_0x2cc012,{'range':_0x19366b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x15d83f){const _0x342d6b=_0x15d83f['previous'],_0x2b40af=_0x15d83f['next'];_0x15d83f['previous']=null,_0x15d83f['next']=null,null!=_0x342d6b&&_0x342d6b['next']==_0x15d83f&&(_0x342d6b['next']=_0x2b40af),null!=_0x2b40af&&_0x2b40af['previous']==_0x15d83f&&(_0x2b40af['previous']=_0x342d6b),'ready'==this['_suggestionState']['get'](_0x15d83f)&&(this['_suggestionState']['set'](_0x15d83f,'removed'),this['fire']('suggestionUnloaded',_0x15d83f,_0x342d6b,_0x2b40af));}['_setSuggestionData'](_0x59615b){const _0x4f0d39=_0x59615b['id'],_0x257921=this['addSuggestionData'](_0x59615b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x54cf86=this['editor']['plugins']['get']('PendingActions'),_0x55fcc6=_0x257921['hasComments'],_0x7d49ce=_0x257921['subType']?_0x257921['type']+':'+_0x257921['subType']:_0x257921['type'],_0x446390=this['editor']['locale'],_0x4507f6=_0x54cf86['add'](c(_0x446390,'PENDING_ACTION_SUGGESTION')),_0x544836={'id':_0x4f0d39,'type':_0x7d49ce,'hasComments':_0x55fcc6,'data':_0x59615b['data']||null,'originalSuggestionId':_0x59615b['originalSuggestionId']||null,'attributes':_0x257921['attributes']};this['_adapter']['addSuggestion'](_0x544836)['then'](_0x323423=>{_0x257921['_saved']=!0x0,_0x54cf86['remove'](_0x4507f6),_0x323423&&_0x323423['createdAt']&&(this['_suggestions']['get'](_0x4f0d39)['createdAt']=_0x323423['createdAt']);})['catch'](_0x3c320a=>{throw _0xd2389d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x257921['discard']();}),_0x257921['stopListening'](),this['_suggestions']['delete'](_0x257921['id']),this['_suggestionState']['delete'](_0x257921),_0x3c320a;});}return _0x257921;}['_isBlockAttribute'](_0x1bdfe9){return this['_blockAttributeKeys']['has'](_0x1bdfe9);}['_updateSuggestionData'](_0x322044,_0x405c15){const _0x511fe5=this['editor']['plugins']['get']('PendingActions'),_0x373e5d=this['getSuggestion'](_0x322044);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x373e5d['_saved']){const _0x4a5460=_0x511fe5['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x322044,_0x405c15)['then'](()=>{_0x511fe5['remove'](_0x4a5460);});}else _0x373e5d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x322044,_0x405c15);});}}['_getSuggestionData'](_0x176a01){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xc7eb95('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x176a01);}['_handleNewSuggestionMarker'](_0x3cf23e){const {id:_0xc09ea0,type:_0x23393f,subType:_0x27b5b6,authorId:_0x559b79}=this['_splitMarkerName'](_0x3cf23e),_0x491777=this['_suggestions']['get'](_0xc09ea0)||this['_createSuggestion'](_0x23393f,_0x27b5b6,_0xc09ea0,_0x559b79,{});switch(this['_checkSuggestionCorrectness'](_0x491777,_0x23393f,_0x27b5b6,_0x559b79),this['_suggestionState']['get'](_0x491777)){case'notReady':this['_getSuggestionData'](_0xc09ea0)['then'](_0x214199=>{let _0x34b641=Promise['resolve']();_0x214199['hasComments']&&(_0x34b641=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc09ea0})),_0x34b641['then'](()=>{this['addSuggestionData'](_0x214199)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x491777,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc09ea0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x491777,'ready'),this['fire']('suggestionLoaded',_0x491777);break;case'ready':this['fire']('suggestionChanged',_0x491777);}return _0x491777['addMarkerName'](_0x3cf23e),_0x491777;}['_refreshSuggestionsChain'](_0x2be70e){const _0x27a3fd=Array['from'](_0x2be70e),_0xa6d5aa=_0x27a3fd['filter'](_0x530fb1=>'attribute'==_0x530fb1['type']);this['_refreshAttributeSuggestionsChain'](_0xa6d5aa);const _0x1ed1e7=_0x27a3fd['filter'](_0x51f784=>!_0x51f784['isMultiRange']&&'attribute'!=_0x51f784['type']),_0x46d58f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x75a180=>!_0x75a180['isMultiRange']&&'attribute'!=_0x75a180['type']),_0x4a8c37=_0x46d58f['filter'](_0x59df0c=>!_0x2be70e['has'](_0x59df0c)),_0x538a03=new Map(_0x46d58f['map'](_0x531e22=>[_0x531e22,this['_suggestionFactory']['getSuggestionCallback'](_0x531e22['type'],_0x531e22['subType'],'chain')])),_0x5d42ce=new Map(_0x46d58f['map'](_0x5a2e78=>[_0x5a2e78,_0x5a2e78['getFirstRange']()])),_0x357815=new Set(),_0x138af1=new Set();for(let _0x31681=0x0;_0x31681<_0x1ed1e7['length'];_0x31681++)_0x3668d3(_0x1ed1e7[_0x31681],_0x1ed1e7,_0x31681+0x1);for(let _0x3ccff5=0x0;_0x3ccff5<_0x1ed1e7['length'];_0x3ccff5++)_0x3668d3(_0x1ed1e7[_0x3ccff5],_0x4a8c37,0x0);const _0x24babd=new Set();for(let _0x31b8ee=0x0;_0x31b8ee<_0x1ed1e7['length'];_0x31b8ee++){const _0x2fb428=_0x1ed1e7[_0x31b8ee];!_0x138af1['has'](_0x2fb428)&&_0x2fb428['previous']&&(_0x24babd['add'](_0x2fb428['previous']),_0x2fb428['previous']['next']===_0x2fb428&&(_0x2fb428['previous']['next']=null),_0x2fb428['previous']=null),!_0x357815['has'](_0x2fb428)&&_0x2fb428['next']&&(_0x24babd['add'](_0x2fb428['next']),_0x2fb428['next']['previous']===_0x2fb428&&(_0x2fb428['next']['previous']=null),_0x2fb428['next']=null);}function _0x3668d3(_0x109a9b,_0x1ee777,_0x443e35){for(let _0x135d6c=_0x443e35;_0x135d6c<_0x1ee777['length'];_0x135d6c++){const _0x12f2b8=_0x19f667(_0x109a9b,_0x1ee777[_0x135d6c]);_0x12f2b8&&(_0x12f2b8[0x0]['next']=_0x12f2b8[0x1],_0x12f2b8[0x1]['previous']=_0x12f2b8[0x0],_0x357815['add'](_0x12f2b8[0x0]),_0x138af1['add'](_0x12f2b8[0x1]));}}function _0x19f667(_0x405010,_0x408cc2){if(_0x405010['author']['id']!==_0x408cc2['author']['id'])return null;const _0xcb945c=_0x538a03['get'](_0x405010)(_0x405010,_0x408cc2,_0x5d42ce['get'](_0x405010),_0x5d42ce['get'](_0x408cc2));if(!_0xcb945c)return null;return _0x538a03['get'](_0x408cc2)(_0x405010,_0x408cc2,_0x5d42ce['get'](_0x405010),_0x5d42ce['get'](_0x408cc2))?_0xcb945c[0x1]['commentThread']&&_0xcb945c[0x1]['commentThread']['length']?null:_0xcb945c:null;}_0x24babd['size']&&this['_refreshSuggestionsChain'](_0x24babd);}['_refreshAttributeSuggestionsChain'](_0x1c6b97){if(0x0==_0x1c6b97['length'])return;const _0x39e8cb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x315faa=>'attribute'==_0x315faa['type']&&_0x315faa['_isDataLoaded']),_0x3550cd=[],_0x326c08=new Map();for(const _0x4c3809 of _0x39e8cb){const _0x26c029=_0x3ed617(_0x4c3809['attributes']);_0x326c08['has'](_0x26c029)||(_0x326c08['set'](_0x26c029,_0x3550cd['length']),_0x3550cd['push']([]));const _0x598484=_0x326c08['get'](_0x26c029);_0x3550cd[_0x598484]['push'](_0x4c3809);}!(function(){_0x3550cd['sort']((_0x1a1a33,_0xeaa3c)=>{const _0x3d6806=_0x1a1a33[0x0]['createdAt'],_0x5a77d4=_0xeaa3c[0x0]['createdAt'];return _0x3d6806==_0x5a77d4?_0x1a1a33[0x0]['attributes']['groupId']<_0xeaa3c[0x0]['attributes']['groupId']?-0x1:0x1:_0x3d6806<_0x5a77d4?-0x1:0x1;});for(const _0x4ca004 of _0x3550cd)_0x4ca004['sort']((_0x2e5a80,_0x11b6e6)=>_0x2e5a80['id']<_0x11b6e6['id']?-0x1:0x1);}());for(let _0x110c10=0x0;_0x110c10<_0x3550cd['length'];_0x110c10++){if(0x0==_0x3550cd[_0x110c10]['length'])continue;const _0x517b26=[];for(let _0x3ce26d=_0x110c10+0x1;_0x3ce26d<_0x3550cd['length'];_0x3ce26d++)0x0!=_0x3550cd[_0x3ce26d]['length']&&_0x53061e(_0x3550cd[_0x110c10],_0x3550cd[_0x3ce26d])&&_0x517b26['push'](_0x3ce26d);for(const _0x54406f of _0x517b26)_0x3550cd[_0x110c10]=_0x3550cd[_0x110c10]['concat'](_0x3550cd[_0x54406f]),_0x3550cd[_0x54406f]=[];}for(const _0x4a5a35 of _0x3550cd)for(let _0x3affeb=0x0;_0x3affeb<_0x4a5a35['length'];_0x3affeb++){const _0x441f97=_0x4a5a35[_0x3affeb+0x1]||null;_0x4a5a35[_0x3affeb]['next']!==_0x441f97&&(_0x4a5a35[_0x3affeb]['next']=_0x441f97);}for(const _0x58ae8c of _0x3550cd)for(let _0x398918=0x0;_0x398918<_0x58ae8c['length'];_0x398918++){const _0x50157a=_0x58ae8c[_0x398918-0x1]||null;_0x58ae8c[_0x398918]['previous']!==_0x50157a&&(_0x58ae8c[_0x398918]['previous']=_0x50157a);}function _0x53061e(_0x421a50,_0x32a0ce){if(_0x421a50[0x0]['attributes']['groupId']!==_0x32a0ce[0x0]['attributes']['groupId']&&_0x421a50[0x0]['author']!==_0x32a0ce[0x0]['author'])return!0x1;if(!function(_0x41b13b,_0x1cdecf){if(!_0x41b13b['hasComments']&&!_0x1cdecf['hasComments'])return!0x0;if(_0x41b13b['hasComments']&&_0x1cdecf['hasComments'])return!0x1;if(_0x41b13b['hasComments']&&_0x1cdecf['createdAt']<_0x41b13b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1cdecf['hasComments']&&_0x41b13b['createdAt']<_0x1cdecf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x421a50[0x0],_0x32a0ce[0x0]))return!0x1;const _0x2e8fc8=Ft(_0x421a50[0x0]['attributes'],['groupId','trackingSessionId']),_0x36cd22=Ft(_0x32a0ce[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4c5c2a(_0x2e8fc8,_0x36cd22))return!0x1;if(_0x421a50[0x0]['attributes']['groupId']==_0x32a0ce[0x0]['attributes']['groupId'])return!0x0;if(_0x421a50[0x0]['attributes']['trackingSessionId']!==_0x32a0ce[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x421a50['every'](_0x45f740=>_0x32a0ce['some'](_0x347a52=>_0x45f740['getFirstRange']()['isEqual'](_0x347a52['getFirstRange']())))&&_0x32a0ce['every'](_0x5d23e7=>_0x421a50['some'](_0x565fa1=>_0x5d23e7['getFirstRange']()['isEqual'](_0x565fa1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x123474){const _0x138c3f=Array['from'](_0x123474),_0x44e3a0=this['getSuggestions']({'skipNotAttached':!0x0}),_0xcb60f=_0x44e3a0['filter'](_0x449ffe=>!_0x123474['has'](_0x449ffe)),_0x2a5124=new Map(_0x138c3f['map'](_0x1926a3=>[_0x1926a3,this['_suggestionFactory']['getSuggestionCallback'](_0x1926a3['type'],_0x1926a3['subType'],'join')])),_0x49c39e=new Map(_0x44e3a0['map'](_0x146a76=>[_0x146a76,_0x146a76['getRanges']()]));for(let _0x16a589=0x0;_0x16a589<_0x138c3f['length'];_0x16a589++){if(_0x3b8872(this,_0x138c3f[_0x16a589],_0x138c3f,_0x16a589+0x1))return!0x0;}for(let _0x5363c7=0x0;_0x5363c7<_0x138c3f['length'];_0x5363c7++){if(_0x3b8872(this,_0x138c3f[_0x5363c7],_0xcb60f,0x0))return!0x0;}return!0x1;function _0x3b8872(_0x4b10c4,_0x27ed2e,_0x6472c1,_0x37234a){for(let _0xd4e023=_0x37234a;_0xd4e023<_0x6472c1['length'];_0xd4e023++){const _0x2f90e0=_0x6472c1[_0xd4e023];if(_0x2f90e0['type']!==_0x27ed2e['type']||_0x2f90e0['author']['id']!==_0x27ed2e['author']['id']||_0x2f90e0['subType']!==_0x27ed2e['subType'])continue;if(!Qt(_0x27ed2e,_0x2f90e0))continue;if('attribute'==_0x27ed2e['type']&&_0x27ed2e['data']['oldValue']!=_0x2f90e0['data']['oldValue'])continue;if('attribute'==_0x27ed2e['type']&&_0x4b10c4['_isBlockAttribute'](_0x27ed2e['data']['key']))continue;if('formatBlock'==_0x27ed2e['type']){const _0x2b88a6=_0x4b10c4['editor']['model'],_0x34b1db=_0x27ed2e['getContainedElement']();if(_0x34b1db&&(_0x2b88a6['schema']['isObject'](_0x34b1db)||_0x2b88a6['schema']['isLimit'](_0x34b1db)))continue;}const _0x185869=_0x2a5124['get'](_0x27ed2e),_0x2c15cd=_0x49c39e['get'](_0x27ed2e),_0x5bc238=_0x49c39e['get'](_0x2f90e0),_0x2b16d6=_0x27ed2e['commentThread']&&_0x27ed2e['commentThread']['length'],_0xb2ea07=_0x2f90e0['commentThread']&&_0x2f90e0['commentThread']['length'];if(!_0x2b16d6&&_0x185869(_0x5bc238,_0x2c15cd))return _0x4b10c4['_joinSuggestions'](_0x2f90e0,_0x27ed2e),_0x49c39e['delete'](_0x27ed2e),!0x0;if(!_0xb2ea07&&_0x185869(_0x2c15cd,_0x5bc238))return _0x4b10c4['_joinSuggestions'](_0x27ed2e,_0x2f90e0),_0x49c39e['delete'](_0x2f90e0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x45708f,_0x27e444){if(_0x45708f['isMultiRange']){for(const _0x4b520d of _0x27e444['getRanges']())_0x45708f['addRange'](_0x4b520d);}else{const _0x980a2c=_0x27e444['getFirstRange']()['end'];this['_setSuggestionRange'](_0x45708f,this['_model']['createRange'](_0x45708f['getFirstRange']()['start'],_0x980a2c));}_0x27e444['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5f178d,_0x40ac26,_0x185da7){const _0x241fe8=_0x5f178d['startsWith']('format')||_0x5f178d['startsWith']('attribute')?'FORMATTING':_0x5f178d['toUpperCase']();return c(this['editor']['locale'],_0x40ac26+'_'+_0x241fe8+'_SUGGESTION_ANNOUNCEMENT',_0x185da7);}['_initAriaMarkerChangeAnnouncements'](){const _0x1eccb7=this['editor'];if(!_0x1eccb7['ui'])return;const {ariaLiveAnnouncer:_0x88b76c}=_0x1eccb7['ui'];_0x619df9(this['_model'],({left:_0x59a213,entered:_0x4b3cc8})=>{for(const _0x147b56 of _0x59a213){const {group:_0x5c46b9,type:_0x277561}=this['_splitMarkerName'](_0x147b56['name']);if('suggestion'===_0x5c46b9){_0x88b76c['announce'](this['_getMarkerAnnouncementText'](_0x277561,'LEAVE'));break;}}for(const _0x3720d7 of _0x4b3cc8){const {group:_0x47c829,type:_0x56a4b9}=this['_splitMarkerName'](_0x3720d7['name']);if('suggestion'===_0x47c829){_0x88b76c['announce'](this['_getMarkerAnnouncementText'](_0x56a4b9,'ENTER',_0x26c402(_0x2ddebb)));break;}}});}['_processAttributeChanges'](_0x9bb6d9){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd435d7=this['editor'],_0x35b818=_0xd435d7['model']['document']['differ']['getChanges']();if(0x0==_0x35b818['length'])return!0x1;const _0x17aa2a=[],_0x2501a0=_0x35b818['filter'](_0x48af1a=>'attribute'==_0x48af1a['type']),_0x370c21=_0x35b818['filter'](_0x138b63=>'insert'==_0x138b63['type']&&'$text'!=_0x138b63['name']),_0x2e9ee0=_0x35b818['filter'](_0x1f40c1=>'remove'==_0x1f40c1['type']&&'$text'!=_0x1f40c1['name']);for(const _0x2c5f0d of _0x2501a0)_0x17aa2a['push']({'key':_0x2c5f0d['attributeKey'],'newValue':_0x2c5f0d['attributeNewValue'],'oldValue':_0x2c5f0d['attributeOldValue'],'range':qt(_0x2c5f0d['range'],_0xd435d7['model'])});for(const _0x381146 of _0x370c21){const _0x32d07e=_0x2e9ee0['find'](_0x19ac0e=>_0x19ac0e['position']['isEqual'](_0x381146['position']));_0x32d07e&&_0x17aa2a['push']({'key':u,'newValue':_0x381146['name'],'oldValue':_0x32d07e['name'],'range':_0xd435d7['model']['createRangeOn'](_0x381146['position']['nodeAfter'])});}return 0x0!=_0x17aa2a['length']&&this['_reduceExistingSuggestions'](_0x9bb6d9,_0x17aa2a);}['_processAttributeSuggestions'](_0x126d44){let _0x3166ed=!0x1;const _0x568e01=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x27f7a1=>_0x27f7a1['data']['newRange']&&_0x27f7a1['name']['startsWith']('suggestion:attribute:'));for(const _0x37d611 of _0x568e01){const {subType:_0x5a403f,id:_0x246653}=this['_splitMarkerName'](_0x37d611['name']),_0x269b62=_0x5a403f['split']('|')[0x0];for(const _0x110e2d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x110e2d['id']!=_0x246653&&'attribute'==_0x110e2d['type']&&_0x110e2d['data']&&_0x110e2d['data']['key']==_0x269b62&&_0x110e2d['getFirstRange']()['isIntersecting'](_0x37d611['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x110e2d,_0x37d611['data']['newRange'],_0x126d44),_0x3166ed=!0x0);}return _0x3166ed;}['_recordAttributeChanges'](_0x2fd5be){this['_recordAttributeSuggestions']=!0x0,_0x2fd5be();}['_isRegisteredAttribute'](_0x106356){const _0x1f130d=this['_isBlockAttribute'](_0x106356),_0x4bec86=this['_inlineAttributeKeys']['has'](_0x106356);return _0x1f130d||_0x4bec86;}['_reduceExistingSuggestions'](_0x4cb3e3,_0x19b23b){if(0x0==_0x19b23b['length'])return!0x1;let _0x447267=!0x1;for(const _0x3444d8 of _0x19b23b){const _0xe378da=this['_findSuggestions'](_0x3444d8['range'],'attribute')['filter'](_0x4b54de=>!_0x4b54de['meta']['isNextTo'])['map'](_0x30f008=>_0x30f008['suggestion']),_0x1062b9=_0x3ed617({'newValue':_0x3444d8['newValue']});_0xe378da['filter'](_0x411612=>{const [_0xd95617,_0x1c9d1d]=_0x411612['subType']['split']('|');return _0xd95617==_0x3444d8['key']&&_0x1c9d1d!=_0x1062b9;})['forEach'](_0xf0ee41=>{this['_reduceSuggestionAttributeRange'](_0xf0ee41,_0x3444d8['range'],_0x4cb3e3),_0x447267=!0x0;});}return _0x447267;}['_reduceSuggestionAttributeRange'](_0x560cee,_0x4539c4,_0x3b064f){const _0x12f54b=_0x560cee['getFirstRange']()['getDifference'](_0x4539c4);0x0!==_0x12f54b['length']?0x1!==_0x12f54b['length']?this['_breakSuggestionMarker'](_0x560cee,_0x4539c4['start'],_0x4539c4['end']):this['_setSuggestionRange'](_0x560cee,_0x12f54b[0x0]):_0x3b064f['removeMarker'](_0x560cee['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5eaaa9){this['_editor']=_0x5eaaa9,this['_model']=_0x5eaaa9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5be3ca,_0x1cedc5,_0x53a6f3,_0x505ed9,_0x350083,_0x37ec58,_0x1c7f8b){return new o(this['_model'],{'type':_0x5be3ca,'subType':_0x1cedc5,'id':_0x53a6f3,'originalSuggestionId':_0x1c7f8b,'author':_0x505ed9,'creator':_0x505ed9,'attributes':_0x350083,'onAttributesChange':_0x37ec58,'onAccept':(..._0xf845e1)=>this['getSuggestionCallback'](_0x5be3ca,_0x1cedc5,'accept')(..._0xf845e1),'onDiscard':(..._0x30ea3d)=>this['getSuggestionCallback'](_0x5be3ca,_0x1cedc5,'discard')(..._0x30ea3d)});}['registerCustomCallback'](_0x150442,_0x266cee,_0x2787b0,_0x1d0eea){const _0x253442=_0x150442+':'+_0x266cee+':'+_0x2787b0;this['_customCallbacks']['set'](_0x253442,_0x1d0eea);}['getSuggestionCallback'](_0x210244,_0x114764,_0x1c245a){const _0x415cb3=_0x210244+':'+_0x114764+':'+_0x1c245a;return this['_customCallbacks']['get'](_0x415cb3)||this['_defaultCallbacks']['get'](_0x210244+':'+_0x1c245a);}['_registerDefaultCallbacks'](){const _0x19ffa2=()=>!0x1,_0x3f52f1=_0xa4ad4b=>{_0xa4ad4b['sort']((_0x172d2f,_0x32c9ff)=>_0x172d2f['start']['isBefore'](_0x32c9ff['start'])?0x1:-0x1),this['_model']['change'](_0x6050a5=>{for(const _0x11fc20 of _0xa4ad4b){let _0x86721;_0x86721=_0x11fc20['end']['isAtEnd']&&_0x11fc20['end']['parent']==_0x11fc20['start']['nodeAfter']?_0x6050a5['createSelection'](_0x11fc20['start']['nodeAfter'],'on'):_0x6050a5['createSelection'](_0x11fc20),this['_model']['deleteContent'](_0x86721,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x160144=(_0x259952,_0x2b134c)=>{_0x2b134c&&this['_model']['change'](_0x6e6fab=>{const {commandName:_0xc99a83,commandParams:_0x52d2a7=[]}=_0x2b134c,_0x4fe570=_0x259952['map'](_0x48b825=>(Lt(_0x48b825)&&(_0x48b825=this['_model']['createRange'](_0x48b825['end'])),_0x48b825))['filter'](_0x6a60de=>'$graveyard'!==_0x6a60de['root']['rootName']);if(_0x4fe570['length']<0x1)return;const _0x5c0864=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3e3a1f=>_0x268add['fromRange'](_0x3e3a1f));_0x6e6fab['setSelection'](_0x4fe570);for(const _0x4aa2ab of this['_editor']['commands']['commands']())_0x4aa2ab['refresh']();_0x52d2a7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xc99a83,..._0x52d2a7);const _0x10b9bd=_0x5c0864['filter'](_0x2e1f74=>'$graveyard'!=_0x2e1f74['root']['rootName']);_0x10b9bd['length']>0x0&&_0x6e6fab['setSelection'](_0x10b9bd);for(const _0xb6bfef of _0x5c0864)_0xb6bfef['detach']();});},_0x4bde33=(_0x51840e,_0x304530)=>0x1==_0x51840e['length']&&0x1==_0x304530['length']&&_0x51840e[0x0]['end']['isEqual'](_0x304530[0x0]['start']),_0xec26b1=(_0xe8241,_0x54e75a,_0x3bd1a1,_0x124d94)=>Wt(_0xe8241,_0x54e75a,_0x3bd1a1,_0x124d94)?[_0xe8241,_0x54e75a]:Wt(_0x54e75a,_0xe8241,_0x124d94,_0x3bd1a1)?[_0x54e75a,_0xe8241]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x19ffa2),this['_defaultCallbacks']['set']('insertion:discard',_0x3f52f1),this['_defaultCallbacks']['set']('insertion:join',_0x4bde33),this['_defaultCallbacks']['set']('insertion:chain',_0xec26b1),this['_defaultCallbacks']['set']('deletion:accept',_0x3f52f1),this['_defaultCallbacks']['set']('deletion:discard',_0x19ffa2),this['_defaultCallbacks']['set']('deletion:join',_0x4bde33),this['_defaultCallbacks']['set']('deletion:chain',_0xec26b1),this['_defaultCallbacks']['set']('formatInline:accept',_0x160144),this['_defaultCallbacks']['set']('formatInline:discard',_0x19ffa2),this['_defaultCallbacks']['set']('formatInline:join',_0x4bde33),this['_defaultCallbacks']['set']('formatInline:chain',_0x19ffa2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x160144),this['_defaultCallbacks']['set']('formatBlock:discard',_0x19ffa2),this['_defaultCallbacks']['set']('formatBlock:join',_0x4bde33),this['_defaultCallbacks']['set']('formatBlock:chain',_0x19ffa2),this['_defaultCallbacks']['set']('attribute:accept',_0x19ffa2),this['_defaultCallbacks']['set']('attribute:discard',(_0x2cfd3c,_0x4887e2)=>{if(!_0x4887e2)return;const _0x100766=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4af0da=>{if(_0x4887e2['key']==u)for(const _0x96643 of _0x2cfd3c){const _0xff626=_0x96643['start']['nodeAfter'],_0x247956=_0x4887e2['oldValue'];_0x4af0da['rename'](_0xff626,_0x247956);}else{if(_0x100766['_isBlockAttribute'](_0x4887e2['key'])){for(const _0x30feb7 of _0x2cfd3c)void 0x0!==_0x4887e2['oldValue']?_0x4af0da['setAttribute'](_0x4887e2['key'],_0x4887e2['oldValue'],_0x30feb7['start']['nodeAfter']):_0x4af0da['removeAttribute'](_0x4887e2['key'],_0x30feb7['start']['nodeAfter']);}else{for(const _0x14af77 of _0x2cfd3c)_0x4887e2['oldValue']?_0x4af0da['setAttribute'](_0x4887e2['key'],_0x4887e2['oldValue'],_0x14af77):_0x4af0da['removeAttribute'](_0x4887e2['key'],_0x14af77);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4bde33);}}function Gt(_0x4e5d76,_0x4f1490,_0x5f2605){for(const _0xda67a3 of _0x4f1490['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xda67a3['root']==_0xda67a3)return!0x1;if(!_0x5f2605['containsItem'](_0xda67a3))return!0x1;if(_0x4e5d76['isObject'](_0xda67a3)||_0x4e5d76['isLimit'](_0xda67a3))return!0x0;}return!0x1;}function Lt(_0x4792df){return _0x4792df['end']['parent']==_0x4792df['start']['nodeAfter']&&_0x4792df['end']['isAtStart'];}function Jt(_0x325cfc,_0x2ed4e2,_0x2777e0,_0x3ae60e){const _0x3bb7a2=_0x46431e=>!_0x46431e['item']['is']('$textProxy')&&!_0x3ae60e['isObject'](_0x46431e['item']),_0x18d1bf=_0x325cfc['start']['getLastMatchingPosition'](_0x3bb7a2),_0x11f4b7=_0x325cfc['end']['getLastMatchingPosition'](_0x3bb7a2,{'direction':'backward'});return(!_0x325cfc['start']['isEqual'](_0x18d1bf)||!_0x325cfc['end']['isEqual'](_0x11f4b7))&&(_0x18d1bf['isBefore'](_0x11f4b7)?_0x2777e0['updateMarker'](_0x2ed4e2,{'range':_0x2777e0['createRange'](_0x18d1bf,_0x11f4b7)}):_0x2777e0['removeMarker'](_0x2ed4e2),!0x0);}function Kt(_0x2fb5cf){return _0x3ed617(_0x2fb5cf);}function Ht(_0x3d5b4a){const _0x4b980f=_0x3d5b4a['start']['nodeAfter'];return _0x4b980f&&_0x4b980f['is']('element');}function qt(_0x401fed,_0x1a3f48){return null==_0x401fed['end']['nodeBefore']&&_0x401fed['end']['parent']==_0x401fed['start']['nodeAfter']?zt(_0x401fed['start']['nodeAfter'],_0x1a3f48):_0x401fed;}function zt(_0x5ecc4b,_0x5a547e){const _0x229f28=_0x5a547e['schema']['isObject'](_0x5ecc4b)||_0x5a547e['schema']['isSelectable'](_0x5ecc4b);return _0x5a547e['createRange'](_0x5a547e['createPositionAt'](_0x5ecc4b,'before'),_0x229f28?_0x5a547e['createPositionAfter'](_0x5ecc4b):_0x5a547e['createPositionAt'](_0x5ecc4b,'end'));}function Wt(_0x3087f6,_0x40f330,_0x35b51f,_0x1b4080){return!!Qt(_0x3087f6,_0x40f330)&&_0x35b51f['end']['isEqual'](_0x1b4080['start']);}function Qt(_0x35f0d9,_0x54ce6e){if(!_0x35f0d9['_isDataLoaded']||!_0x54ce6e['_isDataLoaded'])return!0x1;const _0x4615ed=new Set(Object['keys'](_0x35f0d9['attributes'])),_0x49112b=new Set(Object['keys'](_0x54ce6e['attributes']));if(_0x4615ed['delete']('groupId'),_0x49112b['delete']('groupId'),0x0==_0x4615ed['size']&&0x0==_0x49112b['size'])return!0x0;if(_0x4615ed['size']!=_0x49112b['size'])return!0x1;const _0x4a2f47={..._0x35f0d9['attributes']},_0x5164d7={..._0x54ce6e['attributes']};return delete _0x4a2f47['groupId'],delete _0x5164d7['groupId'],JSON['stringify'](_0x4a2f47)==JSON['stringify'](_0x5164d7);}function Xt(_0x1a0dd6,_0x341dad){const _0x3cf0a2=Yt(_0x1a0dd6['attributes']),_0x31f207=Yt(_0x341dad);if(!_0x1a0dd6['_isDataLoaded'])return!0x1;for(const _0x1bc14e of Object['keys'](_0x31f207))if(!_0x4c5c2a(_0x3cf0a2[_0x1bc14e],_0x31f207[_0x1bc14e]))return!0x1;return!0x0;}function Yt(_0x2b2187){const _0x58d2fd=Object['assign']({},_0x2b2187);return delete _0x58d2fd['skipNestingCheck'],delete _0x58d2fd['tablePasteChainId'],_0x58d2fd;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x39e58d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x50d361,_0x5eee44,_0x2311b7,_0x30c054){super(),this['model']=_0x5eee44,this['view']=_0x2311b7,this['commentThreadController']=_0x30c054,this['_editor']=_0x50d361,this['_acceptCommand']=_0x50d361['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x50d361['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x405f88,_0x146fd3)=>_0x405f88||_0x146fd3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x186f58=>_0x186f58&&this['_editor']['model']['canEditAt'](_0x5eee44['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x56b8a8=>_0x56b8a8&&this['_editor']['model']['canEditAt'](_0x5eee44['getRanges']())),this['_pendingAction']=null,_0x2311b7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2311b7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2311b7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2311b7,'change:isDirty',()=>{_0x2311b7['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 _0x49ef66=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x49ef66);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x227acf{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x44e0fe,_0x63984e,_0x5e21a2,_0x4806c0){super(_0x44e0fe),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x784425(_0x44e0fe,c(_0x44e0fe,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x63984e['authoredAt']),this['bind']('authoredAt')['to'](_0x63984e),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x63984e,'authoredAt',this,'descriptionParts',(_0x2badac,_0x4fc15b,_0x3b4526)=>{const _0x5be81f=_0x3b4526['map'](_0x34b669=>ls(_0x34b669['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2badac-0x1,_0x63984e['author']['name'],_0x4fc15b?_0x4806c0['formatDateTime'](_0x4fc15b):'',new DOMParser()['parseFromString'](_0x5be81f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x49b3dd(),this['focusTracker']=new _0x2e8585(),this['keystrokes']=new _0x1cdd14(),this['focusCycler']=new _0x4b6c41({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4871d9=>_0x4871d9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x63984e,this['_localUser']=_0x5e21a2,this['_config']=_0x4806c0,_0x4806c0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x24eb33(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x52ad62}=this['_config'];this['commentsListView']=new _0x52ad62(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',_0x382432=>_0x382432+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x43ef9a,_0x23efc1)=>_0x43ef9a||!!_0x23efc1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x16ae25}=this['_config'],_0x57046c=new _0x16ae25(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5eac11=_0x57046c['commentInputView'];return _0x57046c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5eac11,'value',(_0x30293a,_0x23916d,_0x1bbc81)=>!!_0x1bbc81||_0x30293a&&!_0x23916d),_0x5eac11['on']('submit',(_0x766c99,_0x433b5f)=>{this['fire']('addComment',_0x433b5f),_0x5eac11['editor']['setData']('');}),_0x5eac11['on']('cancel',()=>this['focus']()),_0x5eac11['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x57046c;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4bda8d,_0x3ab004,_0x2ecfa9,_0xd13cb0){super(_0x4bda8d,_0x3ab004,_0x2ecfa9,_0xd13cb0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3201ae=>_0x3201ae&&_0x3201ae[0x0]?_0x3201ae[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x20a62b,_0x266f8b)=>{let _0x37d206='';for(const _0x59b100 of _0x20a62b)_0x37d206+='<p>'+ls(_0x59b100['content'],_0x59b100['color'])+'</p>';return _0x266f8b?_0x37d206:ti(_0x37d206,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xd13cb0['SuggestionView'](_0x4bda8d,_0x3ab004,{'formatDateTime':_0xd13cb0['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x146a44=this['bindTemplate'],_0x57b037=[this['suggestionView']];return this['commentsListView']&&_0x57b037['push'](this['commentsListView']),this['commentThreadInputView']&&_0x57b037['push'](this['commentThreadInputView']),_0x57b037['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x146a44['if']('isActive','ck-suggestion-wrapper--active'),_0x146a44['to']('type',_0x201c58=>'ck-suggestion-'+_0x201c58),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x146a44['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x57b037};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x227acf{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1624c4,_0x288e25,_0x169fce){super(_0x1624c4),this['_model']=_0x288e25,this['_config']=_0x169fce,this['set']('description',''),this['bind']('authoredAt')['to'](_0x288e25),this['acceptButton']=this['_createButton'](c(_0x1624c4,'Accept\x20suggestion'),_0x2d481a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1624c4,'Discard\x20suggestion'),_0x35c47,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xb2de16(_0x1624c4,_0x288e25['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x49b3dd([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2e8585(),this['keystrokes']=new _0x1cdd14(),this['focusCycler']=new _0x4b6c41({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x20fc93=>_0x20fc93['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1ee10f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1ee10f['innerHTML']=this['description'],this['on']('change:description',(_0x43ed89,_0x2168e2,_0x2db7b5)=>{_0x1ee10f['innerHTML']=_0x2db7b5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x463da6=this['bindTemplate'],_0x38d492=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x463da6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x463da6['to']('authoredAt',_0x4edded=>this['_config']['formatDateTime'](_0x4edded))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x38d492['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x38d492}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x38cbeb,_0x2bafd5,_0xd559dc,_0x163035,_0x8b9b2f){const _0x32e748=new _0x44c3f4(this['locale']);return _0x32e748['set']({'label':_0x38cbeb,'icon':_0x2bafd5,'tooltip':!0x0,'tooltipPosition':_0x8b9b2f}),_0x32e748['extendTemplate']({'attributes':{'class':_0xd559dc}}),_0x32e748['on']('execute',()=>{this['fire'](_0x163035,this['_model']['id']);}),_0x32e748;}['_setupKeyboardNavigation'](){const _0x391946=this['element'];this['keystrokes']['listenTo'](_0x391946);for(const _0x2f8b78 of this['focusables'])this['focusTracker']['add'](_0x2f8b78['element']),this['keystrokes']['listenTo'](_0x2f8b78['element']);this['keystrokes']['set']('enter',(_0x4b78ac,_0x84f2e3)=>{_0x391946===_0x4b78ac['target']&&(this['focusCycler']['focusFirst'](),_0x84f2e3());}),this['keystrokes']['set']('esc',(_0x14fc1d,_0x41b954)=>{_0x391946!==_0x14fc1d['target']&&(this['focus'](),_0x41b954());});}}class d extends _0x3b35c4{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x30d22a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2de1df){super(_0x2de1df),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a1abb=this['editor']['config'];_0x4a1abb['define']('trackChanges.SuggestionThreadView',fe),_0x4a1abb['define']('trackChanges.SuggestionView',we),_0x4a1abb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a1abb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2e5210,_0x5334b0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4cf4b9,_0x43a6bb]of this['_handleControllerBuffer']){const _0x2dd9bd=this['_suggestionToController']['has'](_0x4cf4b9);_0x2dd9bd||_0x43a6bb?_0x2dd9bd&&_0x43a6bb&&this['_destroyController'](_0x4cf4b9):this['_initializeController'](_0x4cf4b9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2e5210,_0x5334b0);}['init'](){const _0x2a0708=this['editor'],_0x466c59=_0x2a0708['plugins']['get']('TrackChangesEditing'),_0x13c81c=_0x2a0708['plugins']['get']('Annotations'),_0x2b0d5b=_0x2a0708['plugins']['get']('EditorAnnotations'),_0x2f49ea=_0x2a0708['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2b0d5b['addSourceCollector'](()=>{const _0x544028=[];for(const [_0x5169c7,_0x1a7926]of Array['from'](this['_suggestionToController'])){const _0x376f51=_0x5169c7['getAllAdjacentSuggestions'](),_0x28bfc0=[];for(const _0x406812 of _0x376f51){if(!_0x406812['isInContent'])continue;if(_0x406812['isMultiRange']){_0x28bfc0['push'](..._0x406812['getRanges']());continue;}const _0xced20d=_0x406812['getFirstRange']();if(_0x28bfc0['length']>0x0){const _0x4746df=_0x28bfc0[0x0]['getJoined'](_0xced20d);if(_0x4746df){_0x28bfc0[0x0]=_0x4746df;continue;}}_0x28bfc0['push'](_0xced20d);}_0x544028['push']([_0x1a7926['view'],_0x28bfc0]);}return _0x544028;}),this['listenTo'](_0x466c59,'suggestionLoaded',(_0x1a1465,_0x4fe353)=>{this['listenTo'](_0x4fe353,'change:previous',(_0x5f040b,_0x5cc6b3,_0x161b57,_0x26716a)=>{_0x4fe353['isInContent']&&(null==_0x161b57?(this['_updateController'](_0x26716a['head']),this['_handleSuggestionControllerDelayed'](_0x4fe353,!0x1)):(this['_updateController'](_0x161b57['head']),null==_0x26716a&&this['_handleSuggestionControllerDelayed'](_0x4fe353,!0x0)));}),null!==_0x4fe353['previous']?this['_updateController'](_0x4fe353['head']):this['_handleSuggestionControllerDelayed'](_0x4fe353,!0x1);}),this['listenTo'](_0x466c59,'suggestionUnloaded',(_0x213849,_0x397ced,_0x22b095)=>{this['stopListening'](_0x397ced,'change:previous'),this['_handleControllerBuffer']['delete'](_0x397ced),this['_suggestionToController']['has'](_0x397ced)&&this['_destroyController'](_0x397ced),_0x22b095&&this['_updateController'](_0x22b095['head']);}),this['listenTo'](_0x466c59,'suggestionChanged',(_0x413b30,_0x40b501)=>{this['_updateController'](_0x40b501);}),this['listenTo'](_0x13c81c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2f49ea,'addComment',(_0x2d03da,{threadId:_0x88dee3,isFromAdapter:_0x456df4})=>{if(_0x456df4||!_0x466c59['hasSuggestion'](_0x88dee3))return;const _0x2ef1f3=_0x466c59['getSuggestion'](_0x88dee3);this['_suggestionToController']['get'](_0x2ef1f3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3b404d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4bb5e3;for(const _0x9757f6 in _0x3b404d){const _0x861c68=_0x9757f6,_0x2bc03f=_0x3b404d[_0x861c68];if('trackChangesLicenseKeyValid'==_0x2bc03f||'trackChangesLicenseKeyInvalid'==_0x2bc03f||'trackChangesLicenseKeyExpired'==_0x2bc03f||'trackChangesLicenseKeyDomainLimit'==_0x2bc03f||'trackChangesLicenseKeyNotAllowed'==_0x2bc03f||'trackChangesLicenseKeyEvaluationLimit'==_0x2bc03f||'trackChangesLicenseKeyTrialLimit'==_0x2bc03f||'trackChangesLicenseKeyUsageLimit'==_0x2bc03f){delete _0x3b404d[_0x861c68],_0x4bb5e3=_0x2bc03f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4bb5e3&&_0x3b404d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5cffbc=this['editor']['plugins']['get']('Annotations'),_0x434c0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb5e649=Array['from'](_0x5cffbc['activeAnnotations'],_0xaa677f=>_0xaa677f['innerView'])['filter'](_0x523d94=>this['_viewToController']['has'](_0x523d94)),_0x79bc08=[];for(const _0x3bfb93 of _0xb5e649){const _0x1dea0f=this['_viewToController']['get'](_0x3bfb93)['model']['getAllAdjacentSuggestions']();_0x79bc08['push'](..._0x1dea0f['reduce']((_0x5b75b4,_0x4bce4f)=>[..._0x5b75b4,..._0x4bce4f['getMarkerNames']()],[]));}_0x434c0a['activeMarkers']=_0x79bc08;}['_addUIComponentsToFactory'](){const _0x3058ae=this['editor'],_0x458734=_0x3058ae['locale'],_0x2acd53=c(_0x458734,'Track\x20changes'),_0x44cc16=new _0x28345c([{'type':'switchbutton','model':new _0x4eb3cd({'withText':!0x0,'isToggleable':!0x0,'label':_0x2acd53,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4eb3cd({'withText':!0x0,'label':c(_0x458734,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4eb3cd({'withText':!0x0,'label':c(_0x458734,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4eb3cd({'withText':!0x0,'label':c(_0x458734,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4eb3cd({'withText':!0x0,'label':c(_0x458734,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3058ae['plugins']['has']('TrackChangesPreview')&&_0x44cc16['addMany']([{'type':'separator'},{'type':'button','model':new _0x4eb3cd({'withText':!0x0,'label':c(_0x458734,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x469752 of _0x44cc16)if(ke(_0x469752)){const _0x379c1c=_0x3058ae['commands']['get'](_0x469752['model']['commandName']);_0x469752['model']['bind']('isOn','isEnabled')['to'](_0x379c1c,'value','isEnabled');}_0x3058ae['ui']['componentFactory']['add']('trackChanges',_0xfba92=>this['_createToolbarButton'](_0xfba92,_0x44cc16,_0x2acd53)),_0x3058ae['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5e3013=>this['_createMenuBarMenu'](_0x5e3013,_0x44cc16,_0x2acd53));}['_createToolbarButton'](_0x4e4e31,_0x438000,_0xb1d19c){const _0x2c5cb6=_0x3f6a89(_0x4e4e31,_0xc75dec),_0x426b0f=this['editor']['commands']['get']('trackChanges');_0x2c5cb6['buttonView']['set']({'tooltip':_0xb1d19c,'label':_0xb1d19c,'icon':_0x328e47}),_0x2c5cb6['buttonView']['bind']('isOn')['to'](_0x426b0f,'value'),_0x2c5cb6['buttonView']['on']('execute',()=>{_0x426b0f['execute'](),this['editor']['editing']['view']['focus']();}),_0x4ae9e0(_0x2c5cb6,_0x438000,{'role':'menu'});const _0x28c611=[];for(const _0x495b45 of _0x438000)ke(_0x495b45)&&_0x28c611['push'](this['editor']['commands']['get'](_0x495b45['model']['commandName']));const _0x3b424b=_0x2c5cb6['buttonView'];return _0x3b424b['actionView']['unbind']('isEnabled'),_0x3b424b['arrowView']['unbind']('isEnabled'),_0x3b424b['actionView']['bind']('isEnabled')['to'](_0x426b0f,'isEnabled'),_0x3b424b['arrowView']['bind']('isEnabled')['toMany'](_0x28c611,'isEnabled',(..._0x30fea9)=>_0x30fea9['some'](_0x5d90c0=>_0x5d90c0)),_0x2c5cb6['on']('execute',_0x4edf79=>{this['editor']['execute'](_0x4edf79['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2c5cb6;}['_createMenuBarMenu'](_0x51f7b2,_0x33d124,_0x4b4639){const _0x38a570=new _0x1a7567(_0x51f7b2),_0x1bd520=this['editor']['commands']['get']('trackChanges');_0x38a570['buttonView']['set']({'label':_0x4b4639,'icon':_0x328e47});const _0xcb8a9a=new _0x4d5f26(_0x51f7b2);for(const _0x586eb1 of _0x33d124){if('separator'==_0x586eb1['type']){_0xcb8a9a['items']['add'](new _0xd2db54(_0x51f7b2));continue;}const _0x10bd33=new _0x52ff2f(_0x51f7b2,_0x38a570),_0x34fc54=new _0x87f93d(_0x51f7b2),_0x554de1=_0x586eb1['model'];_0x34fc54['bind'](...Object['keys'](_0x554de1))['to'](_0x554de1),_0x34fc54['delegate']('execute')['to'](_0x38a570),_0x34fc54['on']('execute',()=>{this['editor']['execute'](_0x554de1['commandName']),this['editor']['editing']['view']['focus']();}),_0x10bd33['children']['add'](_0x34fc54),_0xcb8a9a['items']['add'](_0x10bd33);}return _0x38a570['bind']('isEnabled')['to'](_0x1bd520,'isEnabled'),_0x38a570['panelView']['children']['add'](_0xcb8a9a),_0x38a570;}['_initializeController'](_0x4a91a3){const _0x1f38d6=this['editor'],_0x1fd406=_0x1f38d6['config'],_0x49c74f=_0x1f38d6['plugins']['get']('Annotations'),_0x302d92=_0x1f38d6['plugins']['get']('CommentsRepository'),_0x165564=_0x1f38d6['plugins']['get']('EditorAnnotations'),_0x3b3e75=_0x1f38d6['plugins']['get'](_0x30d22a)['me'],_0x1766e4=_0x1fd406['get']('trackChanges')['SuggestionThreadView'],_0x9f190b=_0x1fd406['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x25efc4,CommentThreadInputView:_0x4c508c}=_0x1f38d6['plugins']['get']('CommentsUI');let _0x20f07b,_0x56e50f,_0x2d5925;this['_annotationViews']['has'](_0x4a91a3['id'])?(_0x56e50f=this['_annotationViews']['get'](_0x4a91a3['id']),_0x20f07b=_0x56e50f['mainView']):(_0x20f07b=new _0x1766e4(_0x1f38d6['locale'],_0x4a91a3,_0x3b3e75,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1fd406['get']('comments.editorConfig'),'licenseKey':_0x1fd406['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1fd406['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1fd406['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1fd406['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3e5c82(_0x1fd406['get']('locale'),_0x1f38d6['locale']),'CommentView':_0x1fd406['get']('comments')['CommentView'],'CommentsListView':_0x25efc4,'CommentThreadInputView':_0x4c508c,'SuggestionView':_0x9f190b}),_0x20f07b['suggestionView']['acceptButton']['on']('execute',()=>{_0x1f38d6['editing']['view']['focus']();}),_0x20f07b['suggestionView']['discardButton']['on']('execute',()=>{_0x1f38d6['editing']['view']['focus']();}),_0x56e50f=_0x49c74f['createAnnotationView'](this['editor']['locale'],_0x20f07b),_0x56e50f['bind']('isDirty')['to'](_0x20f07b,'isDirty'),_0x56e50f['bind']('length')['to'](_0x20f07b),_0x56e50f['bind']('type')['to'](_0x20f07b,'type',_0x47861a=>'suggestion-'+_0x47861a),_0x20f07b['on']('escape',()=>{_0x2d5925['fire']('escape');}),this['_annotationViews']['set'](_0x4a91a3['id'],_0x56e50f));const _0x2b70d1=_0x302d92['createCommentThreadController'](_0x4a91a3['commentThread'],_0x20f07b),_0x5549af=new pe(_0x1f38d6,_0x4a91a3,_0x20f07b,_0x2b70d1),_0x364b6e=_0x4a91a3['getAllAdjacentSuggestions']()['filter'](_0x2233da=>_0x2233da['isInContent']);_0x20f07b['descriptionParts']=_0x1f38d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x364b6e),this['_suggestionToController']['set'](_0x4a91a3,_0x5549af),this['_viewToController']['set'](_0x20f07b,_0x5549af),_0x2d5925=_0x49c74f['createAnnotation']({'view':_0x56e50f,'target':()=>{const _0x55a673=[],_0xaf126c=_0x4a91a3['getAllAdjacentSuggestions']()['filter'](_0x3f4e06=>_0x3f4e06['isInContent']);for(const _0x21e4dc of _0xaf126c)_0x55a673['push'](..._0x21e4dc['getMarkers']());return _0x5a8a50(_0x1f38d6['editing'],_0x55a673);},'type':()=>'suggestion-'+_0x5549af['view']['type']}),_0x302d92['_bindAnnotationToEditors'](_0x20f07b,_0x2d5925),_0x49c74f['add'](_0x2d5925),_0x165564['registerAnnotation'](_0x2d5925);}['_destroyController'](_0x56de6d){const _0x429037=this['editor']['plugins']['get']('CommentsRepository'),_0x4b322e=this['editor']['plugins']['get']('Annotations'),_0x92e513=this['_suggestionToController']['get'](_0x56de6d),_0xabc007=_0x92e513['view'],_0x25033e=_0x4b322e['getByInnerView'](_0xabc007);_0x429037['_unbindEditors'](_0xabc007),_0x25033e&&_0x4b322e['remove'](_0x25033e),this['_suggestionToController']['delete'](_0x56de6d),this['_viewToController']['delete'](_0xabc007),_0x92e513['destroy']();}['_updateController'](_0x1d9507){if(!_0x1d9507['isInContent']||!this['_suggestionToController']['has'](_0x1d9507))return;const _0x21aee4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15fcd3=this['_suggestionToController']['get'](_0x1d9507),_0x3256d7=_0x1d9507['getAllAdjacentSuggestions']();_0x15fcd3['view']['descriptionParts']=_0x21aee4['descriptionFactory']['getDescriptions'](_0x3256d7);}['destroy'](){for(const _0x110768 of this['_suggestionToController']['keys']())this['_destroyController'](_0x110768);for(const _0x1d4cc0 of this['_annotationViews']['values']())_0x1d4cc0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2029c9){return'model'in _0x2029c9;}class k extends _0x3b35c4{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x111372){this['editor']['plugins']['get'](p)['adapter']=_0x111372;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xdf92eb){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xdf92eb);}['getSuggestions']({skipNotAttached:_0x565380=!0x1,toJSON:_0x5b5f31=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x565380,'toJSON':_0x5b5f31});}['getSuggestion'](_0x4b5bd4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4b5bd4);}}const w=['Pagination'];class T extends _0x3b35c4{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x84c45f=this['editor'];if(_0x84c45f['config']['define']('trackChangesData.editorCreator',_0x4a4af8=>{const _0x2e6afb=_0x84c45f['model']['document']['getRootNames']()['reduce']((_0x12f85e,_0x3f89ea)=>(_0x12f85e[_0x3f89ea]='',_0x12f85e),{});return _0x84c45f['constructor']['create'](_0x2e6afb,_0x4a4af8);}),'function'!=typeof _0x84c45f['config']['get']('trackChangesData')['editorCreator'])throw new _0xc7eb95('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x250ad1){return N(this['editor'],!0x0,_0x250ad1);}['getDataWithDiscardedSuggestions'](_0x2bb25e){return N(this['editor'],!0x1,_0x2bb25e);}}class D extends _0x3b35c4{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x756461){function _0x5ee1a8(_0x331f7b){return _0x331f7b['map'](_0x379442=>String['fromCharCode'](_0x379442))['join']('');}super(_0x756461),this['result']='end',_0x756461[_0x5ee1a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ee1a8([0x76,0x69,0x65,0x77])][_0x5ee1a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ee1a8([0x61,0x75,0x74,0x6f]),_0x756461[_0x5ee1a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5ee1a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ee1a8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5ee1a8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5ee1a8([0x6f,0x6b])});}['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 Ge(_0x3e0471){return void 0x0!==_0x3e0471['getRootsAttributes'];}async function N(_0x5875c7,_0xc3610f,_0x2fc6bc){const _0x23e900=_0x9c03b3(_0x5875c7,w);_0x23e900['plugins']['push'](p,D),_0x23e900['rootsAttributes']=Ge(_0x5875c7)?_0x5875c7['getRootsAttributes']():void 0x0;const _0x1aaa1b=document['createDocumentFragment'](),_0x5298de=_0x5875c7['config']['get']('trackChangesData')['editorCreator'],_0x41a382=await _0x5298de(_0x23e900,()=>function(_0x18b5c4){const _0x35bad1=document['createElement']('div');return _0x18b5c4['appendChild'](_0x35bad1),_0x35bad1;}(_0x1aaa1b));!function(_0x47f232,_0x25eaed){const _0x16be05=_0x47f232['model']['document']['getRootNames']()['reduce']((_0x4447cd,_0x331395)=>(_0x4447cd[_0x331395]=_0x47f232['data']['get']({'rootName':_0x331395}),_0x4447cd),{}),_0x18d510=_0x47f232['plugins']['get']('Users')['users']['map'](_0x4de806=>({'id':_0x4de806['id'],'name':_0x4de806['name']})),_0x2ee8cb=_0x47f232['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30f197=_0x47f232['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x228646=_0x25eaed['plugins']['get']('Users'),_0x5ab5df=_0x25eaed['plugins']['get']('TrackChangesEditing'),_0x2eb4b6=_0x25eaed['plugins']['get']('CommentsRepository');for(const _0x4dd1ad of _0x2eb4b6['getCommentThreads']())_0x4dd1ad['remove']();for(const _0x1c945f of _0x18d510)_0x228646['getUser'](_0x1c945f['id'])||_0x228646['addUser'](_0x1c945f);_0x228646['me']||_0x228646['useAnonymousUser']();for(const _0x23e6b1 of _0x30f197)_0x2eb4b6['addCommentThread'](_0x23e6b1);for(const _0x348a09 of _0x2ee8cb)_0x5ab5df['addSuggestionData'](_0x348a09);_0x25eaed['data']['set'](_0x16be05);}(_0x5875c7,_0x41a382),_0x41a382['execute'](_0xc3610f?'acceptAllSuggestions':'discardAllSuggestions');const _0x1f75cd=Ge(_0x41a382)?_0x41a382['getFullData'](_0x2fc6bc):_0x41a382['data']['get'](_0x2fc6bc);return await _0x41a382['destroy'](),_0x1f75cd;}class Me extends _0x227acf{['options'];constructor(_0x206d0b,_0x5d49e5){super(_0x206d0b),this['options']=_0x5d49e5,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x32d9c0,_0x335f93){if(!this['element'])return;const _0x20e1ec=[];for(const [_0x495cd1,_0x1a7ccd]of _0x32d9c0){const _0x25a184=document['createElement']('div');_0x25a184['setAttribute']('data-ck-root-name',_0x495cd1),_0x25a184['className']=_0x1a7ccd['classes']+'\x20ck-track-changes-preview__root-container',_0x25a184['innerHTML']=_0x1a7ccd['content'],_0x20e1ec['push'](_0x25a184);}_0x335f93(this['element'],_0x20e1ec),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x18dae3{constructor(_0xda1c8c){super(_0xda1c8c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x447aeb=this['editor'],_0x25af28=_0x447aeb['locale'],_0x43b95a=_0x447aeb['plugins']['get']('Dialog');let _0x39849d;const _0x287031=function(_0x5c2f75){const _0x5e6347={};if('editables'in _0x5c2f75['ui']['view']){for(const [_0x178be8,_0x14c896]of Object['entries'](_0x5c2f75['ui']['view']['editables']))_0x5e6347[_0x178be8]=_0x14c896['element'];}else _0x5e6347[_0x5c2f75['model']['document']['getRootNames']()[0x0]]=_0x5c2f75['ui']['view']['editable']['element'];return _0x5e6347;}(_0x447aeb),_0x35300d=function(_0x414155){let _0x35c9a7=0x0;for(const _0x2bfd85 of Object['values'](_0x414155))_0x35c9a7=Math['max'](_0x35c9a7,_0x2bfd85['getBoundingClientRect']()['width']);let _0x5d642b=0x0;for(const _0x42ac9b of Object['values'](_0x414155))_0x5d642b+=_0x42ac9b['getBoundingClientRect']()['height'];const _0x2fc776=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2653af=Math['min'](_0x5d642b,_0x2fc776);return{'width':_0x35c9a7,'height':_0x2653af};}(_0x287031);_0x43b95a['show']({'id':'finalContentPreview','title':c(_0x25af28,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x25af28,{'dialogRects':_0x35300d}),'onHide':()=>{_0x39849d['detachFromDom']();},'onShow':()=>{_0x447aeb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4e80ae=>{const _0x2fe339=this['_standarizeRootsData'](_0x4e80ae,_0x447aeb,_0x287031);_0x43b95a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2fe339,_0x447aeb['config']['get']('trackChanges.preview.renderFunction'));}),_0x39849d=new _0x36988f(_0x25af28,[_0x43b95a['view']]),_0x39849d['attachToDom'](),_0x39849d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x447aeb['once']('destroy',()=>{_0x39849d['detachFromDom']();});const _0x40c96e=_0x43b95a['view']['headerView']['class'];_0x43b95a['view']['headerView']['class']=_0x40c96e?_0x40c96e+'\x20ck-reset_all':'ck-reset_all',_0x43b95a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x43b95a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2cac62=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x14b3d6=_0x2cac62['previewMode'],_0x3fadf3={};if('$labels'===_0x14b3d6){for(const _0x2be8d0 of _0x2cac62['getMergeFieldsIds']())_0x3fadf3[_0x2be8d0]=_0x2cac62['getLabel'](_0x2be8d0)||_0x2be8d0;}else{const _0x407cc0='$defaultValues'===_0x14b3d6?_0x2cac62['getDefaultValues']():_0x2cac62['getDataSetValues'](_0x14b3d6,!0x0);for(const _0x246945 of Object['entries'](_0x407cc0)){const [_0x2c28aa,_0xad5afe]=_0x246945;_0x3fadf3[_0x2c28aa]=null!==_0xad5afe?_0xad5afe:_0x2cac62['getLabel'](_0x2c28aa)||_0x2c28aa;}}return{'mergeFieldsData':_0x3fadf3};}['_standarizeRootsData'](_0x373306,_0x316110,_0x5499c6){let _0x1639f5;if('string'==typeof _0x373306){const _0x25c373=_0x316110['model']['document']['getRootNames']()[0x0];_0x1639f5={[_0x25c373]:_0x373306};}else _0x1639f5=_0x373306;const _0x3c158d=this['_fixMediaEmbeds'](_0x1639f5,_0x316110),_0xd4b65f=function(_0x3b3846,_0x4e0c6a){for(const [_0x49bdc9,_0x26bc28]of _0x3b3846)_0x26bc28['classes']=_0x4e0c6a[_0x49bdc9]['classList']['value']['replace']('ck-focused','');return _0x3b3846;}(this['_sortRoots'](_0x316110)['reduce']((_0x1cb1fa,_0x1823ef)=>(_0x1cb1fa['push']([_0x1823ef,{'content':_0x3c158d[_0x1823ef],'classes':''}]),_0x1cb1fa),[]),_0x5499c6);return _0xd4b65f;}['_fixMediaEmbeds'](_0xcc250f,_0x4dad47){if(!_0x4dad47['plugins']['has']('MediaEmbedEditing'))return _0xcc250f;const _0xa5145=_0x4dad47['plugins']['get']('MediaEmbedEditing');for(const [_0x6ffb92,_0xef53e2]of Object['entries'](_0xcc250f)){const _0x4401df=document['createElement']('div');_0x4401df['innerHTML']=_0xef53e2,(_0x4401df['querySelectorAll']('figure.media')['forEach'](_0x390ee0=>{const _0x52022f=_0x390ee0['querySelector']('oembed');if(_0x52022f){const _0x194010=_0x52022f['getAttribute']('url');if(_0x194010){const _0x36537e=_0xa5145['registry']['getMediaViewElement'](new _0x5356e3(_0x4dad47['editing']['view']['document']),_0x194010,{'elementName':'','renderForEditingView':!0x0}),_0x56eeb1=document['createElement']('div');_0x56eeb1['classList']['add']('ck-media__wrapper'),_0x36537e['render'](_0x56eeb1,_0x4dad47['editing']['view']['domConverter']),_0x52022f['replaceWith'](_0x56eeb1);}}}),_0xcc250f[_0x6ffb92]=_0x4401df['innerHTML']);}return _0xcc250f;}['_sortRoots'](_0x565482){if(!function(_0x175854){return void 0x0!==_0x175854['getRootsAttributes'];}(_0x565482))return _0x565482['model']['document']['getRootNames']();const _0x38b11f=[],_0x22b15c=new Map();for(const _0x243f29 of _0x565482['model']['document']['getRootNames']()){const _0x2b936d=_0x565482['editing']['view']['getDomRoot'](_0x243f29)['getClientRects']()['item'](0x0);_0x38b11f['push'](_0x243f29),_0x22b15c['set'](_0x243f29,_0x2b936d);}return _0x38b11f['sort']((_0x147099,_0x209953)=>{const _0x2c3590=_0x22b15c['get'](_0x147099),_0x47004f=_0x22b15c['get'](_0x209953);return _0x2c3590['y']-_0x47004f['y']||_0x2c3590['x']-_0x47004f['x'];}),_0x38b11f;}}class te extends _0x3b35c4{static get['requires'](){return[T,_0x846e2a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x431118){super(_0x431118),_0x431118['commands']['add']('previewFinalContent',new re(this['editor'])),_0x431118['config']['define']('trackChanges.preview.renderFunction',(_0x2fc5b4,_0x538348)=>{for(const _0x539c96 of _0x538348)_0x2fc5b4['appendChild'](_0x539c96);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x51c4d5,Plugin as _0xac175e,PendingActions as _0x2eb11e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3ebbb1,ObservableMixin as _0x1f213a,uid as _0xbf3332,priorities as _0x59a01c,insertToPriorityArray as _0xff31c8,toArray as _0x1e8e77,logWarning as _0x27513f,getEnvKeystrokeText as _0x4c6853,FocusTracker as _0x5e8cfc,KeystrokeHandler as _0x3655e0,Collection as _0x21b3d3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1fd088,IconCancel as _0x3712a9,IconTrackChanges as _0x3aba50}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x99d1a,View as _0x486323,ViewCollection as _0x4f47bb,FocusCycler as _0x12544e,ViewModel as _0x5e0531,createDropdown as _0x29815e,SplitButtonView as _0x3cf9ee,addListToDropdown as _0xf8aee7,MenuBarMenuView as _0x549d73,MenuBarMenuListView as _0x3cf913,ListSeparatorView as _0x5c3a7e,MenuBarMenuListItemView as _0x5b03be,MenuBarMenuListItemButtonView as _0x1b760a,BodyCollection as _0x41989d,Dialog as _0x52247b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x46023b,hashObject as _0x473f1e,surroundingMarkersDetector as _0x22a8e2,FOCUS_ANNOTATION_KEYSTROKE as _0xf35b4f,AriaDescriptionView as _0x39e842,setupThreadKeyboardNavigation as _0x113609,trimHtml as ti,UserView as _0x197c7f,LateFocusButtonView as _0x1d944b,getDateTimeFormatter as _0x461b86,getAllMarkersDomElementsSorted as _0x3831a6,sanitizeEditorConfig as _0x386543}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1617a0,LiveRange as _0x5b3987,LivePosition as _0x11b1a2,DowncastWriter as _0x454453}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3f08c7,toWidget as _0x2f5fe0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5e53be,set as _0x41facb,isEqual as _0x2eabca,unset as _0x23b510,omit as Ft}from'es-toolkit/compat';import{Delete as _0x26abb9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x382035}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x429f1d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x51c4d5{['_enabledCommands'];constructor(_0x30b6cd,_0x53e2c3){super(_0x30b6cd),this['_enabledCommands']=_0x53e2c3,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 _0x56b47f of this['editor']['commands']['commands']())_0x56b47f['affectsData']&&!this['_enabledCommands']['has'](_0x56b47f)&&_0x56b47f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x812eca of this['editor']['commands']['commands']())_0x812eca['affectsData']&&!this['_enabledCommands']['has'](_0x812eca)&&_0x812eca['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x51c4d5{['_suggestions'];constructor(_0x1659a0,_0x4dfc5b){super(_0x1659a0),this['_suggestions']=_0x4dfc5b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x363cac){const _0x3d4337=this['_suggestions']['get'](_0x363cac);if(!_0x3d4337)throw new _0x3ebbb1('track-changes-accept-suggestion-not-found',this);const _0x5da385=_0x3d4337['getRanges']();this['editor']['model']['canEditAt'](_0x5da385)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3d4337);}}class O extends _0x51c4d5{['_suggestions'];constructor(_0x1386be,_0x5ad120){super(_0x1386be),this['_suggestions']=_0x5ad120,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4fa574){const _0x585622=this['_suggestions']['get'](_0x4fa574);if(!_0x585622)throw new _0x3ebbb1('track-changes-discard-suggestion-not-found',this);const _0x19fd30=_0x585622['getRanges']();this['editor']['model']['canEditAt'](_0x19fd30)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x585622);}}function ls(_0x556aae,_0x65e677){let _0x309397='';return _0x309397+=_0x556aae['split']('*')['map']((_0x2798d6,_0x168e1c)=>_0x168e1c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2798d6)+'</span>':nn(_0x2798d6))['join'](''),_0x65e677&&(_0x309397+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x65e677['value']+'\x22\x20title=\x22'+_0x65e677['title']+'\x22></span>'),_0x309397;}function nn(_0xd3bbb9){const _0x178a83=document['createElement']('span');return _0x178a83['innerText']=_0xd3bbb9,_0x178a83['innerHTML'];}function ts(_0x3892df){return _0x3892df['sort']((_0x469105,_0x1be9c1)=>'deletion'==_0x469105['type']&&'deletion'!=_0x1be9c1['type']?-0x1:'deletion'!=_0x469105['type']&&'deletion'==_0x1be9c1['type']?0x1:0x0);}function to(_0x5b681d,_0x22e8af){let _0xa82dd2,_0x528fc9=0x0;const _0x23a5a2=[],_0x149fc6=_0x22e8af['schema'];for(;_0x528fc9<_0x5b681d['length'];){const _0x1e283d=_0x5b681d[_0x528fc9],_0x1dd33c=_0x5b681d[_0x528fc9+0x1];_0xa82dd2||(_0xa82dd2=_0x22e8af['createPositionBefore'](_0x1e283d)),on(_0x22e8af,_0x1e283d,_0x1dd33c)||(_0x23a5a2['push'](_0x22e8af['createRange'](_0xa82dd2,_0x149fc6['isObject'](_0x1e283d)?_0x22e8af['createPositionAfter'](_0x1e283d):_0x22e8af['createPositionAt'](_0x1e283d,'end'))),_0xa82dd2=null),_0x528fc9++;}return _0x23a5a2;}function on(_0x30185c,_0x34e052,_0x2c7958){if(!_0x2c7958)return!0x1;const _0x5cbfe3=_0x30185c['createPositionAfter'](_0x34e052),_0x1d13ec=_0x30185c['createPositionBefore'](_0x2c7958);return _0x5cbfe3['isTouching'](_0x1d13ec);}function rs(_0x3e50ac,_0x1fcfca,_0x2f662e){for(;_0x2f662e['length'];){const _0x5d220a=_0x2f662e['splice'](0x0,0x64);_0x3e50ac['change'](()=>{for(const _0x5e3d3a of _0x5d220a)_0x5e3d3a['isInContent']&&_0x1fcfca['execute'](_0x5e3d3a['id']);});}}class R extends _0x51c4d5{['_command'];['_suggestions'];constructor(_0x511770,_0x59387d,_0x16c717){super(_0x511770),this['_command']=_0x59387d,this['_suggestions']=_0x16c717,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x8de4d7=Array['from'](this['_suggestions']['values']())['some'](_0x1c98fd=>_0x1c98fd['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x8de4d7;}['execute'](){const _0x4f24cf=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5a8b91 of _0x4f24cf){const _0x3609ef=_0x5a8b91['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3609ef))return;}rs(this['editor']['model'],this['_command'],_0x4f24cf);}}class E extends _0x51c4d5{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xe02a40,_0x31d110,_0x587919){super(_0xe02a40),this['_command']=_0x31d110,this['_suggestions']=_0x587919,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x34c76e=this['editor']['model']['document']['selection'],_0x6bbb67=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x57a070,_0x28f3f0){const _0x3fbe90=Array['from'](_0x57a070['getRanges']()),_0x3113f2=new Set();for(const _0xf199ce of _0x28f3f0)if(_0xf199ce['isInContent']){for(const _0x52516c of _0x3fbe90)for(const _0xf5a467 of _0xf199ce['getRanges']())(_0x52516c['isIntersecting'](_0xf5a467)||_0x57a070['isCollapsed']&&!_0xf199ce['isMultiRange']&&_0xf199ce['next']&&_0xf5a467['end']['isTouching'](_0x52516c['start']))&&_0x3113f2['add'](_0xf199ce);}return _0x3113f2;}(_0x34c76e,_0x6bbb67),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5475ba=ts(Array['from'](this['_selectedSuggestions']));for(const _0x26eb4c of _0x5475ba){const _0x2fcceb=_0x26eb4c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2fcceb))return;}rs(this['editor']['model'],this['_command'],_0x5475ba);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x1f213a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3dfdf0,_0x5e5301){super(),this['id']=_0x5e5301['id'],this['type']=_0x5e5301['type'],this['subType']=_0x5e5301['subType']||null,this['author']=_0x5e5301['author'],this['creator']=_0x5e5301['creator']||_0x5e5301['author'],this['isExternal']=Boolean(_0x5e5301['attributes']&&_0x5e5301['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5e5301['originalSuggestionId']||null,this['_model']=_0x3dfdf0,this['_onAccept']=_0x5e5301['onAccept'],this['_onDiscard']=_0x5e5301['onDiscard'],this['_onAttributesChange']=_0x5e5301['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5e5301['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 _0x4389c9=this;for(;_0x4389c9['previous'];)_0x4389c9=_0x4389c9['previous'];return _0x4389c9;}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'](_0x43304a){this['_markerNames']['add'](_0x43304a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xf08923=>this['_model']['markers']['get'](_0xf08923))['filter'](_0x40542e=>_0x40542e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x228c55=>{for(const _0x1eb01f of this['getMarkers']())_0x228c55['removeMarker'](_0x1eb01f);}),this['_markerNames']['clear']();}['removeMarker'](_0x20ee6c){this['_model']['change'](_0x100400=>{_0x100400['removeMarker'](_0x20ee6c);}),this['_markerNames']['delete'](_0x20ee6c);}['addRange'](_0x29bb15){const _0x589858='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x589858),this['_model']['change'](_0x3664d7=>{_0x3664d7['addMarker'](_0x589858,{'range':_0x29bb15,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x44e992){for(const _0x2deeff of this['getRanges']())if(_0x2deeff['isIntersecting'](_0x44e992))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4e66f0=>_0x4e66f0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3dd94f,_0x3abbd1)=>[..._0x3dd94f,..._0x3abbd1['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a3244=this['getRanges']();if(0x1!=_0x1a3244['length'])return null;const _0x313cb6=_0x1a3244[0x0],_0x266a92=_0x313cb6['start']['nodeAfter'],_0x5bf4a3=_0x313cb6['end']['nodeBefore'];return _0x266a92 instanceof _0x1617a0?_0x266a92!=_0x5bf4a3?null:_0x266a92: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 _0x28397e=[];let _0x20ee24=this['head'];for(;_0x20ee24;)_0x28397e['push'](_0x20ee24),_0x20ee24=_0x20ee24['next'];return _0x28397e;}['setAttribute'](_0x179038,_0x546053){const _0x19caac=_0x5e53be(this['attributes']);_0x41facb(_0x19caac,_0x179038,_0x546053),_0x2eabca(_0x19caac,this['attributes'])||(this['attributes']=_0x19caac,this['_onAttributesChange'](_0x19caac));}['removeAttribute'](_0x32a656){const _0x4bfa6f=_0x5e53be(this['attributes']);_0x23b510(_0x4bfa6f,_0x32a656),_0x2eabca(_0x4bfa6f,this['attributes'])||(this['attributes']=_0x4bfa6f,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 _0xbf3332()['substr'](0x1,0x5);}}function c(_0x3ec88a,_0x34ad6c,_0x15e47c){const _0x5b4c86=_0x3ec88a['t'],t=_0x3ec88a['t'];switch(_0x34ad6c){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x15e47c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x15e47c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x15e47c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x15e47c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x15e47c);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',_0x15e47c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x15e47c);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x15e47c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x15e47c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x15e47c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x15e47c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x15e47c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x15e47c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x15e47c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x15e47c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x15e47c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x15e47c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x15e47c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x15e47c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x15e47c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x15e47c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x15e47c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x15e47c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x15e47c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x15e47c);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'},_0x15e47c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x15e47c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x15e47c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x15e47c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x15e47c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x15e47c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x15e47c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x15e47c);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'},_0x15e47c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x15e47c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x15e47c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x15e47c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x15e47c);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'},_0x15e47c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x15e47c);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'},_0x15e47c);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'},_0x15e47c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x15e47c);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'},_0x15e47c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x15e47c);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'},_0x15e47c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x15e47c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x15e47c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x15e47c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x15e47c);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 _0x5b4c86({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x15e47c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5b4c86({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x15e47c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x15e47c);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x15e47c);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x15e47c);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x15e47c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x34ad6c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1c7242,_0x4f72fd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1c7242,this['_locale']=_0x4f72fd;}['getDescriptions'](_0x36bbbb){const _0x53d2e9=[],_0x10a682=new Set(),_0x4161a4=new Set();for(let _0x562dd6=0x0;_0x562dd6<_0x36bbbb['length'];_0x562dd6++){const _0x3707a0=_0x36bbbb[_0x562dd6];if(!_0x3707a0['isInContent'])continue;const _0x495dd7=this['_handleCustomCallbackDescription'](_0x3707a0);if(_0x495dd7){if(null!=_0x3707a0['subType']){if(_0x10a682['has'](_0x3707a0['subType']))continue;_0x10a682['add'](_0x3707a0['subType']);}_0x53d2e9['push'](_0x495dd7);}else{if('attribute'!=_0x3707a0['type'])'insertion'!=_0x3707a0['type']&&'deletion'!=_0x3707a0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x53d2e9,_0x3707a0,_0x36bbbb[_0x562dd6+0x1]);else{const _0x2efde3=_0x3707a0['data']['key'];if(_0x4161a4['has'](_0x2efde3))continue;_0x4161a4['add'](_0x3707a0['data']['key']),_0x2efde3==u?this['_handleRenameSuggestionDescription'](_0x53d2e9,_0x3707a0):this['_handleAttributeSuggestionDescription'](_0x53d2e9,_0x3707a0);}}}return this['_resolveDescriptionItems'](_0x53d2e9);}['registerDescriptionCallback'](_0x7007fc){this['_customCallbacks']['push'](_0x7007fc);}['registerElementLabel'](_0xc7c261,_0x3169e2,_0x826621=_0x59a01c['normal']){'function'==typeof _0xc7c261?_0xff31c8(this['_itemLabelsCallbacks'],{'matchingCallback':_0xc7c261,'label':_0x3169e2,'priority':_0x826621}):this['_itemLabels']['set'](_0xc7c261,_0x3169e2);}['registerAttributeLabel'](_0x1c4b9e,_0x2649a1){this['_attributeLabels']['set'](_0x1c4b9e,_0x2649a1);}['getItemLabel'](_0x483eb6,_0x278c4d=0x1){let _0x378074;for(const _0x552e39 of this['_itemLabelsCallbacks'])if(_0x552e39['matchingCallback'](_0x483eb6)){_0x378074=_0x552e39['label'];break;}return _0x378074||(_0x378074=this['_itemLabels']['get'](_0x483eb6['name'])),_0x378074?_0x378074(_0x278c4d):0x1!==_0x278c4d?_0x278c4d+'\x20'+_0x483eb6['name']+'s':''+_0x483eb6['name'];}['_addDescriptionItems'](_0x7b176,_0x28feee){const _0x21b05a=_0x28feee['getFirstRange']()['getWalker'](),_0x2f240d='insertion'==_0x28feee['type']?'add':'remove';for(const _0x265e4c of _0x21b05a){const _0x4aac89=_0x265e4c['item'],_0x390324=_0x7b176[_0x7b176['length']-0x1];if(_0x4aac89['is']('$textProxy'))_0x390324&&_0x390324['type']['indexOf']('Container')>-0x1&&_0x7b176['pop'](),_0x390324&&'text'==_0x390324['type']?_0x390324[_0x2f240d]+=_0x4aac89['data']:_0x7b176['push']({'type':'text','add':'add'==_0x2f240d?_0x4aac89['data']:'','remove':'remove'==_0x2f240d?_0x4aac89['data']:''});else{if(this['_schema']['isObject'](_0x4aac89)){const _0x5eb6fa=_0x4aac89;if(_0x390324&&_0x390324['type']['indexOf']('Container')>-0x1&&_0x7b176['pop'](),'elementEnd'==_0x265e4c['type'])continue;_0x390324&&_0x390324['type']==_0x2f240d+'Object'&&_0x390324['element']['name']==_0x5eb6fa['name']?_0x390324['quantity']++:_0x7b176['push']({'type':_0x2f240d+'Object','element':_0x5eb6fa,'quantity':0x1}),_0x21b05a['skip'](_0x493680=>!('elementEnd'==_0x493680['type']&&_0x493680['item']==_0x4aac89));}else{if(this['_schema']['checkChild'](_0x4aac89,'$text')||_0x4aac89['is']('element','softBreak')){const _0x460a84=_0x4aac89;if('add'==_0x2f240d&&'elementStart'==_0x265e4c['type']||'remove'==_0x2f240d&&'elementEnd'==_0x265e4c['type'])continue;if(_0x390324&&-0x1==_0x390324['type']['indexOf']('Container')){'text'==_0x390324['type']&&(_0x390324[_0x2f240d]+='\x0a');continue;}let _0x33857e;if(_0x33857e='add'==_0x2f240d?_0x460a84['nextSibling']&&!this['_schema']['isObject'](_0x460a84['nextSibling'])?_0x460a84['nextSibling']:null:_0x460a84['previousSibling']&&!this['_schema']['isObject'](_0x460a84['previousSibling'])?_0x460a84['previousSibling']:null,_0x460a84['isEmpty']||_0x33857e&&_0x33857e['isEmpty']){const _0x468927=_0x33857e&&_0x33857e['isEmpty']?_0x33857e:_0x460a84;_0x390324&&_0x390324['type']==_0x2f240d+'EmptyContainer'&&_0x390324['element']['name']==_0x468927['name']?_0x390324['quantity']++:_0x7b176['push']({'type':_0x2f240d+'EmptyContainer','element':_0x468927,'quantity':0x1});}else _0x7b176['push']({'type':_0x2f240d+'Container','element':_0x460a84});}}}}}['_resolveDescriptionItems'](_0x24731e){const _0x3b9bed=this['_locale'],_0x3c40b3=[],_0x3c1103=[],_0x375790=[];for(const _0x3c75d1 of _0x24731e)switch(_0x3c75d1['type']){case'text':if(_0x3c75d1['add']=_0x3c75d1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3c75d1['remove']=_0x3c75d1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3c75d1['add']&&''!=_0x3c75d1['remove']){_0x3c40b3['push']({'type':'replace','content':c(_0x3b9bed,'REPLACE_TEXT',['\x22'+_0x3c75d1['remove']+'\x22','\x22'+_0x3c75d1['add']+'\x22'])});continue;}if(null!=_0x3c75d1['add']['match'](/^ +$/)){_0x3c40b3['push']({'type':'insertion','content':c(_0x3b9bed,'*Insert:*\x20%0',c(_0x3b9bed,'ELEMENT_SPACE',_0x3c75d1['add']['length']))});continue;}if(null!=_0x3c75d1['remove']['match'](/^ +$/)){_0x3c40b3['push']({'type':'deletion','content':c(_0x3b9bed,'*Remove:*\x20%0',c(_0x3b9bed,'ELEMENT_SPACE',_0x3c75d1['remove']['length']))});continue;}if(''!=_0x3c75d1['add']){_0x3c40b3['push']({'type':'insertion','content':c(_0x3b9bed,'*Insert:*\x20%0','\x22'+_0x3c75d1['add']+'\x22')});continue;}_0x3c40b3['push']({'type':'deletion','content':c(_0x3b9bed,'*Remove:*\x20%0','\x22'+_0x3c75d1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3c40b3['push']({'type':'insertion','content':c(_0x3b9bed,'*Insert:*\x20%0',this['getItemLabel'](_0x3c75d1['element'],_0x3c75d1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3c40b3['push']({'type':'deletion','content':c(_0x3b9bed,'*Remove:*\x20%0',this['getItemLabel'](_0x3c75d1['element'],_0x3c75d1['quantity']))});continue;case'addContainer':_0x3c40b3['push']({'type':'insertion','content':c(_0x3b9bed,'*Split:*\x20%0',this['getItemLabel'](_0x3c75d1['element'],_0x3c75d1['quantity']))});continue;case'removeContainer':_0x3c40b3['push']({'type':'deletion','content':c(_0x3b9bed,'*Merge:*\x20%0',this['getItemLabel'](_0x3c75d1['element'],_0x3c75d1['quantity']))});continue;case'addFormat':_0x3c1103['push'](_0x3c75d1['key']);continue;case'removeFormat':_0x375790['push'](_0x3c75d1['key']);continue;default:_0x3c40b3['push'](_0x3c75d1);}if(_0x3c1103['length']){const _0x4b4104=_0x3c1103['map'](_0x1758de=>this['_attributeLabels']['has'](_0x1758de)?this['_attributeLabels']['get'](_0x1758de):_0x1758de)['join'](',\x20');_0x3c40b3['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4b4104)});}if(_0x375790['length']){const _0x309d1a=_0x375790['map'](_0x439270=>this['_attributeLabels']['has'](_0x439270)?this['_attributeLabels']['get'](_0x439270):_0x439270)['join'](',\x20');_0x3c40b3['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x309d1a)});}return _0x3c40b3;}['_handleCustomCallbackDescription'](_0xc23a01){for(const _0x27b67d of this['_customCallbacks']){const _0x516842=_0x27b67d(_0xc23a01);if(_0x516842&&'type'in _0x516842)return _0x516842;}}['_handleAttributeSuggestionDescription'](_0x5c1a30,_0x5631bc){const _0xe67859=_0x5631bc['data'],_0x4136c2=void 0x0===_0xe67859['newValue']?'removeFormat':'addFormat';_0x5c1a30['push']({'type':_0x4136c2,'key':_0xe67859['key']});}['_handleRenameSuggestionDescription'](_0x1a5367,_0x3efcce){_0x1a5367['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3efcce['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3d92fc,_0x3b97cb,_0x2b3d3c){if(this['_addDescriptionItems'](_0x3d92fc,_0x3b97cb),_0x2b3d3c&&_0x2b3d3c['getFirstRange']()&&!_0x3b97cb['getFirstRange']()['end']['isEqual'](_0x2b3d3c['getFirstRange']()['start'])){const _0x5366f0=_0x3d92fc[_0x3d92fc['length']-0x1],_0x42d93e='insertion'==_0x3b97cb['type']?'add':'remove';_0x5366f0&&'text'==_0x5366f0['type']&&(_0x5366f0[_0x42d93e]+='\x0a');}}}class U extends _0xac175e{['afterInit'](){const _0xa77586=this['editor'],_0x4cea50=_0xa77586['plugins']['get']('TrackChangesEditing');_0xa77586['commands']['get']('showAIAssistant')&&_0x4cea50['enableCommand']('showAIAssistant');}}class V extends _0xac175e{['afterInit'](){const _0x269d55=this['editor'],_0x598402=_0x269d55['locale'];if(!_0x269d55['plugins']['has']('AlignmentEditing'))return;const _0x364af7=_0x269d55['plugins']['get']('TrackChangesEditing');_0x364af7['enableDefaultAttributesIntegration']('alignment'),_0x364af7['registerBlockAttribute']('alignment'),_0x364af7['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x598402,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28ad6a=this['editor'],_0x3e2761=_0x28ad6a['locale'];_0x28ad6a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b6fb9=>{if('formatBlock'!=_0x1b6fb9['type'])return;const {data:_0x5a04ec}=_0x1b6fb9;if(_0x5a04ec&&'alignment'==_0x5a04ec['commandName']){const _0x22403a=_0x5a04ec['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3e2761,'*Format:*\x20%0',function(_0x47d7fe){switch(_0x47d7fe){case'left':return c(_0x3e2761,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3e2761,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3e2761,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3e2761,'FORMAT_JUSTIFY_TEXT');}}(_0x22403a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0xac175e{['afterInit'](){const _0x2eae77=this['editor'],_0x2a685a=_0x2eae77['plugins']['get']('TrackChangesEditing'),_0x24e092=_0x2eae77['locale'];for(const _0x2faaa3 of Zt){if(!_0x2eae77['plugins']['has'](_0x2faaa3))continue;const _0x10b927=_0x2faaa3['slice'](0x0,-0x7)['toLowerCase'](),_0x7157d2='FORMAT_'+_0x10b927['toUpperCase']();_0x2a685a['enableDefaultAttributesIntegration'](_0x10b927),_0x2a685a['registerInlineAttribute'](_0x10b927),_0x2a685a['descriptionFactory']['registerAttributeLabel'](_0x10b927,c(_0x24e092,_0x7157d2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b81ce=this['editor'],_0x2f9997=_0x5b81ce['locale'],_0x5a00e5=_0x5b81ce['plugins']['get']('TrackChangesEditing');function _0x178c52(_0x2616c1,_0xa52379){_0x5a00e5['descriptionFactory']['registerDescriptionCallback'](_0x1ab2fd=>{if('formatInline'!=_0x1ab2fd['type'])return;const {data:_0x211b67}=_0x1ab2fd;return _0x211b67&&_0x211b67['commandName']===_0x2616c1?_0x211b67['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2f9997,'*Format:*\x20%0',_0xa52379)}:{'type':'format','content':c(_0x2f9997,'*Remove\x20format:*\x20%0',_0xa52379)}:void 0x0;});}_0x178c52('bold',c(_0x2f9997,'FORMAT_BOLD')),_0x178c52('italic',c(_0x2f9997,'FORMAT_ITALIC')),_0x178c52('underline',c(_0x2f9997,'FORMAT_UNDERLINE')),_0x178c52('code',c(_0x2f9997,'FORMAT_CODE')),_0x178c52('strikethrough',c(_0x2f9997,'FORMAT_STRIKETHROUGH')),_0x178c52('subscript',c(_0x2f9997,'FORMAT_SUBSCRIPT')),_0x178c52('superscript',c(_0x2f9997,'FORMAT_SUPERSCRIPT'));}}class G extends _0xac175e{['afterInit'](){const _0x50d05a=this['editor'],_0x583df2=_0x50d05a['locale'];if(!_0x50d05a['plugins']['has']('BlockQuoteEditing'))return;const _0x56449e=_0x50d05a['plugins']['get']('TrackChangesEditing'),_0x1f97e3=this['editor']['commands']['get']('blockQuote');_0x56449e['enableCommand']('blockQuote',(_0x11cfa2,_0x48750a={})=>{const _0x5b741e=this['editor']['model']['document']['selection'],_0x207bf7=_0x48750a&&void 0x0!==_0x48750a['forceValue']?_0x48750a['forceValue']:!_0x1f97e3['value'];let _0x5e67fb=[];if(_0x207bf7){const _0x1052ca=Array['from'](_0x5b741e['getSelectedBlocks']())['filter'](_0x258408=>oo(_0x258408)||function(_0x17c3ae,_0x21fd47){const _0x348d70=_0x21fd47['checkChild'](_0x17c3ae['parent'],'blockQuote'),_0x25ad7b=_0x21fd47['checkChild'](['$root','blockQuote'],_0x17c3ae);return _0x348d70&&_0x25ad7b;}(_0x258408,this['editor']['model']['schema']));_0x5e67fb=to(_0x1052ca,_0x50d05a['model']);}else{const _0x4b63c2=Array['from'](_0x5b741e['getSelectedBlocks']())['filter'](_0x13e9a2=>oo(_0x13e9a2));_0x5e67fb=to(_0x4b63c2,_0x50d05a['model']);}_0x50d05a['model']['change'](()=>{for(const _0x337745 of _0x5e67fb)_0x56449e['markBlockFormat'](_0x337745,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x207bf7}]});});}),_0x56449e['descriptionFactory']['registerDescriptionCallback'](_0xf3f476=>{const {data:_0x1014f0}=_0xf3f476;if(_0x1014f0&&'blockQuote'==_0x1014f0['commandName']){const _0x3a43c1=c(_0x583df2,'ELEMENT_BLOCK_QUOTE');return _0x1014f0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x583df2,'*Set\x20format:*\x20%0',_0x3a43c1)}:{'type':'format','content':c(_0x583df2,'*Remove\x20format:*\x20%0',_0x3a43c1)};}});}}function oo(_0x96fcfc){return'blockQuote'==_0x96fcfc['parent']['name'];}class L extends _0xac175e{['afterInit'](){const _0x42b2a5=this['editor'],_0x329ed2=_0x42b2a5['locale'],_0x5cf70a=_0x42b2a5['plugins']['get']('TrackChangesEditing');_0x42b2a5['plugins']['has']('BookmarkEditing')&&(_0x5cf70a['enableCommand']('insertBookmark'),_0x5cf70a['enableDefaultAttributesIntegration']('updateBookmark'),_0x5cf70a['registerBlockAttribute']('bookmarkId'),_0x5cf70a['descriptionFactory']['registerDescriptionCallback'](_0x4cf7a7=>{if('insertion'!=_0x4cf7a7['type']&&'deletion'!=_0x4cf7a7['type']&&'attribute'!=_0x4cf7a7['type'])return;const _0x1e503f=_0x4cf7a7['getContainedElement']();if(null==_0x1e503f)return;if(!_0x1e503f['is']('element','bookmark'))return;const _0x84b50a=_0x1e503f['getAttribute']('bookmarkId');if('insertion'==_0x4cf7a7['type'])return{'type':'insertion','content':c(_0x329ed2,'*Insert:*\x20%0','\x22'+_0x84b50a+'\x22\x20'+c(_0x329ed2,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4cf7a7['type'])return{'type':'deletion','content':c(_0x329ed2,'*Remove:*\x20%0','\x22'+_0x84b50a+'\x22\x20'+c(_0x329ed2,'ELEMENT_BOOKMARK'))};const {data:_0x1a28c7}=_0x4cf7a7;if(!_0x1a28c7||'bookmarkId'!=_0x1a28c7['key'])return;return{'type':'format','content':c(_0x329ed2,'*Set\x20bookmark:*\x20%0','\x22'+_0x1a28c7['newValue']+'\x22')};}));}}class J extends _0xac175e{['afterInit'](){const _0x37a244=this['editor'];_0x37a244['plugins']['has']('CaseChange')&&(_0x37a244['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x37a244['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x37a244['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xac175e{['afterInit'](){const _0x1e863c=this['editor'];_0x1e863c['commands']['get']('ckbox')&&_0x1e863c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0xac175e{['afterInit'](){const _0x676b2a=this['editor'];if(!_0x676b2a['plugins']['has']('CodeBlock'))return;const _0x4d3ab4=_0x676b2a['plugins']['get']('TrackChangesEditing'),_0x359359=_0x676b2a['locale'],_0x931a80=_0x676b2a['config']['get']('codeBlock')['languages'],_0x321648=_0x676b2a['commands']['get']('codeBlock');_0x4d3ab4['enableCommand']('indentCodeBlock'),_0x4d3ab4['enableCommand']('outdentCodeBlock'),_0x4d3ab4['enableCommand']('codeBlock',(_0x25aaea,_0x1c39b4={})=>{const _0x390280=_0x676b2a['model'],_0x4ca96f=_0x676b2a['model']['document']['selection'],_0x264ca7=_0x1c39b4&&void 0x0!==_0x1c39b4['forceValue']?_0x1c39b4['forceValue']:!_0x321648['value'];let _0x28bf44;_0x1c39b4['language']||(_0x1c39b4['language']=_0x931a80[0x0]['language']),_0x28bf44=_0x264ca7?Array['from'](_0x4ca96f['getSelectedBlocks']())['filter'](_0x4f5422=>eo(_0x4f5422)||function(_0x3c6a51,_0x1f7294){if(_0x3c6a51['is']('rootElement')||_0x1f7294['isLimit'](_0x3c6a51))return!0x1;return _0x1f7294['checkChild'](_0x3c6a51['parent'],'codeBlock');}(_0x4f5422,_0x390280['schema'])):Array['from'](_0x4ca96f['getSelectedBlocks']())['filter'](_0x28ebb5=>eo(_0x28ebb5));const _0x3d6477=to(_0x28bf44,_0x390280);_0x390280['change'](()=>{for(const _0x476081 of _0x3d6477)_0x4d3ab4['markBlockFormat'](_0x476081,{'commandName':'codeBlock','commandParams':[{..._0x1c39b4,'forceValue':_0x264ca7}],'formatGroupId':'blockName'});});}),(_0x4d3ab4['descriptionFactory']['registerElementLabel']('codeBlock',_0x5a78bf=>c(_0x359359,'ELEMENT_CODE_BLOCK',_0x5a78bf)),_0x4d3ab4['descriptionFactory']['registerDescriptionCallback'](_0xa009fb=>{if('formatBlock'!=_0xa009fb['type'])return;const _0x210772=_0x359359['t'],{data:_0xf0b99f}=_0xa009fb;if(!_0xf0b99f||'codeBlock'!=_0xf0b99f['commandName'])return;const _0x13f1ee=_0xf0b99f['commandParams'][0x0]['language'],_0x438c36=_0x210772(_0x931a80['find'](_0x4554cf=>_0x4554cf['language']===_0x13f1ee)['label'])['toLowerCase']();return _0xf0b99f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x359359,'*Set\x20format:*\x20%0',c(_0x359359,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x438c36+')')}:{'type':'format','content':c(_0x359359,'*Remove\x20format:*\x20%0',c(_0x359359,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x584875){return'codeBlock'==_0x584875['name'];}class q extends _0xac175e{['afterInit'](){const _0x49fa3d=this['editor'];if(!_0x49fa3d['plugins']['has']('CommentsEditing'))return;_0x49fa3d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x133c1e,_0x49ca8e,_0x1a7c8d){const _0x1eb1dd=[];for(const _0x499e90 of _0x49ca8e['getItems']())_0x499e90['hasAttribute'](_0x133c1e)&&_0x1eb1dd['push'](_0x1a7c8d['createRangeOn'](_0x499e90));return _0x1eb1dd;}function Fe(_0x3e70c0,_0xa5937,{showActiveMarker:_0x18a518=!0x0}={}){const _0x2a4c40=_0x3e70c0['plugins']['get']('TrackChangesEditing');return(_0x1a802d,_0x52caad,_0x115092)=>{if(!_0x115092['consumable']['test'](_0x52caad['markerRange'],_0x1a802d['name']))return;const _0x22fd15=_0x52caad['markerRange']['getWalker'](),_0x44fef8=_0x52caad['markerRange']['start'],_0x461c76=_0x3e70c0['model']['schema'];let _0x463dd9=null,_0x1bf0b4=null,_0x28148d=!0x1,_0xe55007=!0x1;for(const _0x1d41b8 of _0x22fd15){const _0x1f93d3=_0x1d41b8['item'];_0x28148d=_0x28148d||_0x461c76['isContent'](_0x1f93d3);const _0x465da5=_0x115092['mapper']['toViewElement'](_0x1f93d3);if(_0x465da5&&_0x465da5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d41b8['type']&&(_0x461c76['isBlock'](_0x1f93d3)&&!_0x461c76['isLimit'](_0x1f93d3)&&(_0x1f93d3['nextSibling']||_0x44fef8['isAtEnd']?_0x463dd9&&_0x463dd9['parent']==_0x1f93d3||(_0x463dd9=_0x1f93d3,_0x22da27(_0x1d41b8['previousPosition']),_0xe55007=!0x0):_0x1bf0b4=_0x1bf0b4||_0x1d41b8['previousPosition']));}function _0x22da27(_0x1fa096){const {id:_0x370413,authorId:_0x247548}=_0x2a4c40['_splitMarkerName'](_0x52caad['markerName']),_0x3897b2=_0x115092['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xa5937,'data-suggestion':_0x370413,'data-author-id':_0x247548}),_0x3404f5=_0x115092['mapper']['toViewPosition'](_0x1fa096);_0x18a518&&_0x2a4c40['activeMarkers']['includes'](_0x52caad['markerName'])&&_0x115092['writer']['addClass']('ck-suggestion-marker--active',_0x3897b2),_0x115092['writer']['insert'](_0x3404f5,_0x3897b2),_0x115092['mapper']['bindElementToMarker'](_0x3897b2,_0x52caad['markerName']);}_0x28148d||_0xe55007||!_0x1bf0b4||_0x22da27(_0x1bf0b4);};}class z extends _0xac175e{static get['requires'](){return[_0x26abb9];}['init'](){const _0x100d88=this['editor'],_0x1a8a01=_0x100d88['plugins']['get']('TrackChangesEditing');_0x1a8a01['enableCommand']('delete');const _0x1970f2=_0x100d88['commands']['get']('deleteForward');_0x1a8a01['enableCommand']('deleteForward',(_0xf6167d,_0x55fbdf={})=>{const _0x570ade=_0x100d88['model']['createSelection'](_0x100d88['model']['document']['selection']);_0x570ade['isCollapsed']&&_0x100d88['model']['modifySelection'](_0x570ade,{'direction':'forward','unit':_0x55fbdf['unit']});const _0x12172e=_0x570ade['getFirstRange'](),_0x3df89c=_0x5b3987['fromRange'](_0x12172e);let _0x5c0614;_0xf6167d(_0x55fbdf),_0x5c0614='$graveyard'==_0x3df89c['root']['rootName']?_0x100d88['model']['createRange'](_0x12172e['start']):_0x100d88['model']['createRange'](_0x3df89c['start'],_0x3df89c['end']),_0x3df89c['detach'](),_0x100d88['model']['enqueueChange'](_0x1970f2['buffer']['batch'],_0x16185d=>{_0x1970f2['buffer']['lock'](),_0x16185d['setSelection'](_0x16185d['createRange'](_0x5c0614['end'])),_0x1970f2['buffer']['unlock']();});}),_0x100d88['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x100d88,'merge'),{'priority':'high'}),_0x100d88['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x108345,_0xb6572f,_0x12a0d0)=>{_0x12a0d0['options']['showSuggestionHighlights']&&Fe(_0x100d88,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x108345,_0xb6572f,_0x12a0d0);},{'priority':'high'}),_0x100d88['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2694ca,_0x177e6c,_0x35f1c4)=>{const _0x18d217=_0x35f1c4['mapper']['markerNameToElements'](_0x177e6c['markerName']);if(_0x18d217){for(const _0x4509f2 of _0x18d217)_0x4509f2['is']('uiElement')&&(_0x35f1c4['mapper']['unbindElementFromMarkerName'](_0x4509f2,_0x177e6c['markerName']),_0x35f1c4['writer']['remove'](_0x4509f2));}},{'priority':'high'});}}class W extends _0xac175e{['afterInit'](){const _0x245db1=this['editor'];if(!_0x245db1['plugins']['has']('ListEditing'))return;const _0x428236=_0x245db1['locale'],_0x4d71aa=_0x245db1['plugins']['get']('TrackChangesEditing'),_0x443050=_0x245db1['plugins']['has']('TodoListEditing'),_0x123461=!!_0x245db1['config']['get']('list.multiBlock');function _0x1b5f79(_0x64be1d){return{'type':'format','content':''+c(_0x428236,'*Set\x20format:*\x20%0',_0x64be1d)};}function _0x3fa6b0(_0x58fa9c){return{'type':'format','content':''+c(_0x428236,'*Remove\x20format:*\x20%0',_0x58fa9c)};}_0x4d71aa['enableDefaultAttributesIntegration']('numberedList'),_0x4d71aa['enableDefaultAttributesIntegration']('bulletedList'),_0x4d71aa['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d71aa['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d71aa['enableDefaultAttributesIntegration']('indentList'),_0x4d71aa['enableDefaultAttributesIntegration']('outdentList'),_0x4d71aa['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d71aa['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4d71aa['registerBlockAttribute']('listItemId'),_0x4d71aa['registerBlockAttribute']('listType'),_0x4d71aa['registerBlockAttribute']('listIndent'),_0x123461&&(_0x4d71aa['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d71aa['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x443050&&(_0x4d71aa['enableDefaultAttributesIntegration']('todoList'),_0x4d71aa['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d71aa['registerBlockAttribute']('todoListChecked'),_0x4d71aa['descriptionFactory']['registerDescriptionCallback'](_0x2a75b8=>{const {data:_0xec64f2}=_0x2a75b8;if(_0xec64f2&&'todoListChecked'==_0xec64f2['key'])return{'type':'format','content':_0xec64f2['newValue']?c(_0x428236,'*Check\x20item*'):c(_0x428236,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x43a309=>{if(_0x43a309['batch']['isUndo'])return!0x1;let _0x364833=!0x1;const _0x256dc6=_0x4d71aa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x547cca=>'todoListChecked'===_0x4d71aa['_getAttributeKey'](_0x547cca));for(const _0x61af89 of _0x256dc6){'todo'!=_0x61af89['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d71aa['_findSuggestions'](_0x61af89['getFirstRange'](),'attribute')['find'](_0x301c42=>'listType'===_0x4d71aa['_getAttributeKey'](_0x301c42['suggestion']))||(_0x43a309['removeMarker'](_0x61af89['getFirstMarker']()),_0x364833=!0x0));}return _0x364833;})),_0x4d71aa['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x428236,'FORMAT_INDENT'));const _0x36fe91={'type':'format','content':''};_0x4d71aa['descriptionFactory']['registerDescriptionCallback'](_0x2d1894=>{const {data:_0x5e8e5b}=_0x2d1894;if(!_0x5e8e5b||'listType'!=_0x5e8e5b['key'])return;let _0x13aaf6=_0x2d1894['head'];for(;_0x13aaf6;){if(_0x13aaf6['data']&&(('listStyle'==_0x13aaf6['data']['key']||'listMarkerStyle'==_0x13aaf6['data']['key'])&&(_0x13aaf6['data']['newValue']&&'default'!=_0x13aaf6['data']['newValue']||'default'!=_0x13aaf6['data']['oldValue']&&!_0x5e8e5b['newValue'])||!_0x123461&&_0x13aaf6['data']['key']==u))return _0x36fe91;_0x13aaf6=_0x13aaf6['next'];}if(null==_0x5e8e5b['newValue'])switch(_0x5e8e5b['oldValue']){case'bulleted':return _0x3fa6b0(c(_0x428236,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3fa6b0(c(_0x428236,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3fa6b0(c(_0x428236,'ELEMENT_TODO_LIST'));}switch(_0x5e8e5b['newValue']){case'bulleted':return _0x1b5f79(c(_0x428236,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b5f79(c(_0x428236,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b5f79(c(_0x428236,'ELEMENT_TODO_LIST'));}}),_0x4d71aa['descriptionFactory']['registerDescriptionCallback'](_0xe228a5=>{const {data:_0x206d58}=_0xe228a5;if(_0x206d58&&'listIndent'==_0x206d58['key'])return null==_0x206d58['newValue']||null==_0x206d58['oldValue']&&0x0==_0x206d58['newValue']?_0x36fe91:void 0x0;}),_0x4d71aa['descriptionFactory']['registerDescriptionCallback'](_0x37e8a2=>{if('attribute'!=_0x37e8a2['type'])return;const {data:_0x408d9f}=_0x37e8a2;if(!_0x408d9f||'listItemId'!=_0x408d9f['key'])return;const _0x5cf725=Te(_0x37e8a2);return'newValue'==_0x5cf725?{'type':'format','content':c(_0x428236,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5cf725?{'type':'format','content':c(_0x428236,'*Split:*\x20list\x20item')}:_0x36fe91;}),_0x245db1['model']['document']['registerPostFixer'](_0x3ec00d=>this['listItemIdFixer'](_0x3ec00d)),_0x245db1['model']['document']['registerPostFixer'](_0x57546c=>this['noTrackChangesFixer'](_0x57546c)),_0x245db1['model']['document']['on']('change:data',(_0x5e4773,_0x26016d)=>{if(_0x26016d['isUndo']||!_0x26016d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x168a56){if(_0x168a56['batch']['isUndo']||!_0x168a56['batch']['isLocal'])return!0x1;let _0x453132=!0x1;const _0x52fe51=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27ed2c=>_0x27ed2c['data']&&'listItemId'==_0x27ed2c['data']['key'])['filter'](_0x437837=>_0x437837['data']['newValue']&&_0x437837['data']['oldValue']);for(const _0x2f4339 of _0x52fe51)Te(_0x2f4339)||(_0x168a56['removeMarker'](_0x2f4339['getFirstMarker']()),_0x453132=!0x0);return _0x453132;}['noTrackChangesFixer'](_0x5eab09){if(_0x5eab09['batch']['isUndo']||!_0x5eab09['batch']['isLocal'])return!0x1;const _0x58c7c9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x58c7c9['trackChangesCommand']['value'])return!0x1;let _0x2b8819=!0x1;const _0x50b29a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x56e0f6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x57cee5=>'attribute'==_0x57cee5['type'])['filter'](_0x127f2=>_0x50b29a['includes'](_0x127f2['attributeKey']));if(0x0==_0x56e0f6['length'])return _0x2b8819;for(const _0x3696e3 of _0x56e0f6){const _0x44c1be=_0x58c7c9['_findSuggestions'](_0x3696e3['range'],'attribute')['filter'](_0xd6f746=>!_0xd6f746['meta']['isNextTo'])['map'](_0x518bd4=>_0x518bd4['suggestion'])['filter'](_0x3538f8=>{const _0x56cee3=_0x58c7c9['_getAttributeKey'](_0x3538f8);return _0x50b29a['includes'](_0x56cee3);});if(_0x44c1be['length']){for(const _0x195218 of _0x44c1be)_0x5eab09['removeMarker'](_0x195218['getFirstMarker']());_0x2b8819=!0x0;}}return _0x2b8819;}['assureChains'](){const _0x171b15=this['editor']['plugins']['get']('TrackChangesEditing'),_0x490848=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3a7117;const _0x56bb00=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a40e2=>{if(_0x3a40e2['data']['oldRange']||!_0x3a40e2['data']['newRange'])return null;if(!_0x3a40e2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x56f6c5}=_0x171b15['_splitMarkerName'](_0x3a40e2['name']);if(!_0x171b15['hasSuggestion'](_0x56f6c5))return null;const _0xc168a3=_0x171b15['getSuggestion'](_0x56f6c5);return _0x490848['includes'](_0xc168a3['data']['key']);})['map'](_0x5c2fcb=>{const {id:_0x100782}=_0x171b15['_splitMarkerName'](_0x5c2fcb['name']),_0x3cc5ea=_0x171b15['getSuggestion'](_0x100782);return _0x3a7117=_0x3cc5ea['attributes']['groupId'],_0x3cc5ea['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x56bb00['size'])return;const _0x5a9ba9=_0x171b15['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e02f=>'attribute'==_0x5e02f['type']&&_0x5e02f['data']&&_0x490848['includes'](_0x5e02f['data']['key'])&&_0x5e02f['attributes']['groupId']!=_0x3a7117)['map'](_0x2c961b=>({'listItem':_0x2c961b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2c961b['attributes']['groupId']})),_0xcb8232=new Set();for(const {groupId:_0x4f3b94,listItem:_0x562814}of _0x5a9ba9)_0x56bb00['has'](_0x562814)&&_0xcb8232['add'](_0x4f3b94);for(const _0x4fdbc9 of _0x171b15['getSuggestions']())_0xcb8232['has'](_0x4fdbc9['attributes']['groupId'])&&_0x4fdbc9['setAttribute']('groupId',_0x3a7117);}['_supportLegacySuggestions'](){const _0x27909b=this['editor'],_0x50c97d=_0x27909b['locale'],_0x4213c7=_0x27909b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4213c7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x300615,_0x3f0769){const _0x4d5bfe=[];for(let _0xfbae11 of _0x300615)_0xfbae11['start']['nodeAfter']===_0xfbae11['end']['parent']&&(_0xfbae11=_0x27909b['model']['createRange'](_0x27909b['model']['createPositionAt'](_0xfbae11['start']['nodeAfter'],0x0))),_0x4d5bfe['push'](_0xfbae11);_0x27909b['model']['change'](_0x340be9=>{const _0xe9034f=_0x27909b['model']['document']['selection'],_0x30d926=Array['from'](_0xe9034f['getRanges']())['map'](_0x263837=>_0x5b3987['fromRange'](_0x263837));_0x340be9['setSelection'](_0x4d5bfe),_0x27909b['commands']['get'](_0x3f0769['commandName'])['refresh'](),_0x3f0769['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x27909b['execute'](_0x3f0769['commandName'],..._0x3f0769['commandParams']),_0x340be9['setSelection'](_0x30d926);for(const _0x7922d0 of _0x30d926)_0x7922d0['detach']();});}),_0x4213c7['descriptionFactory']['registerElementLabel'](function(_0x9de502){const _0x414df8=!_0x27909b['model']['schema']['isObject'](_0x9de502),_0x43014a=_0x9de502['previousSibling'],_0x4a6b44=_0x9de502['nextSibling'],_0x58b406=_0x9de502['getAttribute']('listItemId'),_0x10879c=!_0x43014a||_0x43014a['getAttribute']('listItemId')!==_0x58b406,_0x5b2f30=!_0x4a6b44||_0x4a6b44['getAttribute']('listItemId')!==_0x58b406;return _0x414df8&&Boolean(_0x58b406)&&_0x10879c&&_0x5b2f30;},_0x4d9fb8=>c(_0x50c97d,'ELEMENT_LIST_ITEM',_0x4d9fb8));}['_registerLegacyDescription'](){const _0x3cf95f=this['editor'],_0x3745aa=_0x3cf95f['locale'];function _0x4c882d(_0x120d68){const _0x2aa55f=_0x3cf95f['commands']['get']('bulletedList')['value'],_0x49012f=_0x3cf95f['commands']['get']('numberedList')['value'];return'numberedList'===_0x120d68?_0x2aa55f:_0x49012f;}_0x3cf95f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1cb89e){if('formatBlock'!=_0x1cb89e['type'])return;const {data:_0xc9db0e}=_0x1cb89e;if(!_0xc9db0e)return;let _0x3b0dbf,_0x590d18,_0x669b30,_0x464bda;switch(_0xc9db0e['commandName']){case'bulletedList':_0x669b30=_0xc9db0e['commandParams'][0x0]['forceValue'],_0x464bda=_0x4c882d(_0xc9db0e['commandName']),_0x3b0dbf=_0x669b30?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x464bda&&_0x3cf95f['config']['get']('list.multiBlock')||(_0x3b0dbf='*Change\x20to:*\x20%0'),_0x590d18={'type':'format','content':c(_0x3745aa,_0x3b0dbf,c(_0x3745aa,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x669b30=_0xc9db0e['commandParams'][0x0]['forceValue'],_0x464bda=_0x4c882d(_0xc9db0e['commandName']),_0x3b0dbf=_0x669b30?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x464bda&&_0x3cf95f['config']['get']('list.multiBlock')||(_0x3b0dbf='*Change\x20to:*\x20%0'),_0x590d18={'type':'format','content':c(_0x3745aa,_0x3b0dbf,c(_0x3745aa,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3b0dbf='*Indent:*\x20%0',_0x590d18={'type':'format','content':c(_0x3745aa,_0x3b0dbf,c(_0x3745aa,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3b0dbf=function(_0x115320){const _0x7ce263=_0x115320['getFirstRange']();let _0x39a09c=_0x7ce263['start']['nodeAfter'];for(;_0x39a09c&&_0x7ce263['containsItem'](_0x39a09c);){if(_0x39a09c['getAttribute']('listIndent')>0x0)return!0x1;_0x39a09c=_0x39a09c['nextSibling'];}return!0x0;}(_0x1cb89e)?c(_0x3745aa,'*Format:*\x20remove\x20from\x20%0',c(_0x3745aa,function(_0x4a22b0){return'ELEMENT_'+_0x4a22b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1cb89e))):c(_0x3745aa,'*Outdent:*\x20%0',c(_0x3745aa,'ELEMENT_LIST_ITEM')),_0x590d18={'type':'format','content':_0x3b0dbf};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xc9db0e['multipleBlocks']&&(_0x3b0dbf='*Merge:*\x20%0',_0x590d18={'type':'deletion','content':c(_0x3745aa,_0x3b0dbf,c(_0x3745aa,'ELEMENT_LIST_ITEM'))});}return _0x590d18;});}}function Te(_0x380f55){let _0x5ea11f=_0x380f55['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5ea11f;){const _0x493591=_0x5ea11f['getAttribute']('listItemId');if(!_0x493591)return!0x1;if(_0x493591==_0x380f55['data']['newValue'])return'newValue';if(_0x493591==_0x380f55['data']['oldValue'])return'oldValue';_0x5ea11f=_0x5ea11f['previousSibling'];}return!0x1;}class Se extends _0xac175e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2205e0=this['editor']['config']['get']('list.properties'),_0xe80c28=this['editor']['plugins']['get']('TrackChangesEditing');_0x2205e0['styles']&&(_0xe80c28['enableDefaultAttributesIntegration']('listStyle'),_0xe80c28['registerBlockAttribute']('listStyle')),_0x2205e0['reversed']&&(_0xe80c28['enableDefaultAttributesIntegration']('listReversed'),_0xe80c28['registerBlockAttribute']('listReversed')),_0x2205e0['startIndex']&&(_0xe80c28['enableDefaultAttributesIntegration']('listStart'),_0xe80c28['registerBlockAttribute']('listStart'));const _0x3352d4={'type':'format','content':''};_0xe80c28['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x571528=this['editor']['locale'];_0xe80c28['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x571528,'FORMAT_LIST_REVERSED')),_0xe80c28['descriptionFactory']['registerDescriptionCallback'](_0x2fda17=>{const {data:_0x592ecf}=_0x2fda17;if(_0x592ecf&&'listReversed'==_0x592ecf['key'])return null==_0x592ecf['newValue']||0x0==_0x592ecf['newValue']&&null==_0x592ecf['oldValue']?_0x3352d4:void 0x0;}),_0xe80c28['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x571528,'FORMAT_LIST_START')),_0xe80c28['descriptionFactory']['registerDescriptionCallback'](_0x130888=>{const {data:_0x3bc539}=_0x130888;if(_0x3bc539&&'listStart'==_0x3bc539['key'])return null==_0x3bc539['newValue']||0x1==_0x3bc539['newValue']&&null==_0x3bc539['oldValue']?_0x3352d4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5bd628=>{if(_0x5bd628['batch']['isUndo'])return!0x1;let _0x179a4e=!0x1;const _0x42124f=_0xe80c28['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a57f9=>{const _0x28b874=_0xe80c28['_getAttributeKey'](_0x4a57f9);return'listStart'==_0x28b874||'listReversed'==_0x28b874;});for(const _0x344124 of _0x42124f){const _0x28ba01=_0x344124['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x28ba01||'customNumbered'==_0x28ba01)continue;_0xe80c28['_findSuggestions'](_0x344124['getFirstRange'](),'attribute')['find'](_0x332dff=>'listType'==_0xe80c28['_getAttributeKey'](_0x332dff['suggestion']))||(_0x5bd628['removeMarker'](_0x344124['getFirstMarker']()),_0x179a4e=!0x0);}return _0x179a4e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x34edea){const _0x28f8bf=this['editor']['locale'],{data:_0x43428f}=_0x34edea,_0x1d4d40={'type':'format','content':''};if(!_0x43428f||'listStyle'!=_0x43428f['key'])return;if(!_0x43428f['oldValue'])return'default'==_0x43428f['newValue']?_0x1d4d40:{'type':'format','content':''+c(_0x28f8bf,'*Set\x20format:*\x20%0',c(_0x28f8bf,this['_getTranslationKeyForListStyle'](_0x43428f['newValue'])))};if(!_0x43428f['newValue']){if('default'==_0x43428f['oldValue'])return _0x1d4d40;let _0x500e08=_0x34edea['head'];for(;_0x500e08;){if(_0x500e08['data']&&'listType'==_0x500e08['data']['key']&&_0x500e08['data']['newValue'])return _0x1d4d40;_0x500e08=_0x500e08['next'];}return{'type':'format','content':''+c(_0x28f8bf,'*Remove\x20format:*\x20%0',c(_0x28f8bf,this['_getTranslationKeyForListStyle'](_0x43428f['oldValue'])))};}if('default'!=_0x43428f['newValue'])return{'type':'format','content':''+c(_0x28f8bf,'*Set\x20format:*\x20%0',c(_0x28f8bf,this['_getTranslationKeyForListStyle'](_0x43428f['newValue'])))};let _0x7e2053=_0x34edea['head'];for(;_0x7e2053;){if(_0x7e2053['data']&&'listType'==_0x7e2053['data']['key']&&_0x7e2053['data']['newValue']&&_0x7e2053['data']['oldValue'])return _0x1d4d40;_0x7e2053=_0x7e2053['next'];}return{'type':'format','content':c(_0x28f8bf,'*Set\x20format:*\x20%0',c(_0x28f8bf,'ELEMENT_'+_0x34edea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4fbdc5=this['editor'],_0x28c34b=_0x4fbdc5['locale'];_0x4fbdc5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x121ddb=>{if('formatBlock'!=_0x121ddb['type'])return;const {data:_0xa948d3}=_0x121ddb;if(!_0xa948d3)return;let _0x25d3dc,_0x7318a;switch(_0xa948d3['commandName']){case'listStyle':_0x25d3dc='*Change\x20to:*\x20%0',_0x7318a={'type':'format','content':c(_0x28c34b,_0x25d3dc,c(_0x28c34b,this['_getTranslationKeyForListStyle'](_0xa948d3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25d3dc=_0xa948d3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x7318a={'type':'format','content':c(_0x28c34b,_0x25d3dc)};break;case'listStart':_0x25d3dc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x7318a={'type':'format','content':c(_0x28c34b,_0x25d3dc,_0xa948d3['commandParams'][0x0]['startIndex'])};}return _0x7318a;});}['_getTranslationKeyForListStyle'](_0x252d9d){return'ELEMENT_'+function(_0x694f1b){if(_e['includes'](_0x694f1b))return'bulleted';if(Re['includes'](_0x694f1b))return'numbered';return null;}(_0x252d9d)['toUpperCase']()+'_LIST_'+_0x252d9d['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xac175e{['afterInit'](){const _0x3b3d91=this['editor'];_0x3b3d91['commands']['get']('emoji')&&_0x3b3d91['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xac175e{static get['requires'](){return[_0x382035];}['init'](){const _0x4372f0=this['editor'],_0x71124f=_0x4372f0['plugins']['get']('TrackChangesEditing'),_0x3a9938=_0x4372f0['commands']['get']('enter');_0x71124f['enableCommand']('enter',()=>{_0x4372f0['model']['change'](_0x3eb388=>{const _0x1d99af=_0x4372f0['model']['document']['selection'],_0x4956b0=_0x1d99af['getFirstPosition'](),_0x470260=_0x5b3987['fromRange'](_0x1d99af['getFirstRange']());if(_0x3a9938['enterBlock'](_0x3eb388)){const _0x5815a0=_0x4372f0['model']['createPositionAt'](_0x4956b0['parent']['nextSibling'],0x0),_0x5def37=_0x3eb388['createRange'](_0x4956b0,_0x5815a0);_0x71124f['markInsertion'](_0x5def37);}else _0x3eb388['setSelection'](_0x3eb388['createRange'](_0x470260['end']));_0x470260['detach'](),_0x3a9938['fire']('afterExecute',{'writer':_0x3eb388});});}),_0x4372f0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x4372f0,'split'),{'priority':'high'}),_0x4372f0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1163aa,_0x61446e,_0x42e4ae)=>{const _0x15415d=_0x42e4ae['mapper']['markerNameToElements'](_0x61446e['markerName']);if(_0x15415d){for(const _0x202811 of _0x15415d)_0x202811['hasClass']('ck-suggestion-marker-split')&&(_0x42e4ae['mapper']['unbindElementFromMarkerName'](_0x202811,_0x61446e['markerName']),_0x42e4ae['writer']['remove'](_0x202811));}},{'priority':'high'}),_0x4372f0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3cc924,_0x566ece,_0x2a1ced)=>{_0x2a1ced['options']['showSuggestionHighlights']&&Fe(_0x4372f0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3cc924,_0x566ece,_0x2a1ced);},{'priority':'high'});}}class Z extends _0xac175e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3f878e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f878e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3f878e['enableCommand']('findNext'),_0x3f878e['enableCommand']('findPrevious'),_0x3f878e['enableCommand']('replace'),_0x3f878e['enableCommand']('replaceAll');}['handleFindCommand'](_0x302049,_0x1aec67,_0x35aaa8={}){const _0x24510c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x302049(_0x203bef=>{let _0x4838d9=('string'==typeof _0x1aec67?_0x24510c['findByTextCallback'](_0x1aec67,_0x35aaa8):_0x1aec67)(_0x203bef);Array['isArray'](_0x4838d9)&&(_0x4838d9={'results':_0x4838d9,'searchText':'string'==typeof _0x1aec67?_0x1aec67:''});const _0x11bda5=_0x4838d9['results']['filter'](_0x2d8d91=>!0x1===this['_isInDeletionRange'](_0x2d8d91,_0x203bef['item']));return{..._0x4838d9,'results':_0x11bda5};},_0x35aaa8);}['_isInDeletionRange'](_0x45e56f,_0x26df05){const _0x26701a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26df05,_0x45e56f['start']),this['editor']['model']['createPositionAt'](_0x26df05,_0x45e56f['end']));for(const _0x44c699 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x26701a['getIntersection'](_0x44c699['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0xac175e{['afterInit'](){const _0x41c5e9=this['editor']['locale'],_0xeede97=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x34ca39,commandName:_0x1f930b}of ro)this['editor']['plugins']['has'](_0x34ca39)&&(_0xeede97['enableDefaultAttributesIntegration'](_0x1f930b),_0xeede97['registerInlineAttribute'](_0x1f930b));_0xeede97['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x41c5e9,'FORMAT_FONT_SIZE')),_0xeede97['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x41c5e9,'FORMAT_FONT_FAMILY')),_0xeede97['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x41c5e9,'FORMAT_FONT_COLOR')),_0xeede97['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x41c5e9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cb273=this['editor'],_0x17e9fd=_0x4cb273['locale'];_0x4cb273['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5931c3=>{const _0x8a1436=_0x17e9fd['t'];if('formatInline'!=_0x5931c3['type'])return;const {data:_0x452b3f}=_0x5931c3;if(null!=_0x452b3f){if('fontSize'==_0x452b3f['commandName']){const _0x475c88=_0x452b3f['commandParams'][0x0]['value'];if(_0x475c88){const _0xccc72=_0x8a1436(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3697df=>_0x3697df['model']==_0x475c88)['title'])['toLowerCase']();return{'type':'format','content':c(_0x17e9fd,'*Set\x20font\x20size:*\x20%0',_0xccc72)};}return{'type':'format','content':c(_0x17e9fd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x452b3f['commandName']){const _0x1e401c=_0x452b3f['commandParams'][0x0]['value'];return _0x1e401c?{'type':'format','content':c(_0x17e9fd,'*Set\x20font\x20family:*\x20%0',_0x1e401c)}:{'type':'format','content':c(_0x17e9fd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x452b3f['commandName']){const _0x5dd5da=_0x452b3f['commandParams'][0x0]['value'];if(_0x5dd5da){const _0x1d1ac3=_0x99d1a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x45488c=>_0x45488c['model']==_0x5dd5da);let _0x1146d6=_0x5dd5da,_0x272edf='';return _0x1d1ac3&&(_0x1146d6=_0x1d1ac3['label'],_0x272edf=_0x8a1436(_0x1146d6)['toLowerCase']()),{'type':'format','content':c(_0x17e9fd,'*Set\x20font\x20color:*\x20%0',_0x272edf)['trim'](),'color':{'value':_0x5dd5da,'title':_0x272edf||_0x1146d6}};}return{'type':'format','content':c(_0x17e9fd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x452b3f['commandName']){const _0x40b906=_0x452b3f['commandParams'][0x0]['value'];if(_0x40b906){const _0x341ba3=_0x99d1a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5249bf=>_0x5249bf['model']==_0x40b906);let _0x512358=_0x40b906,_0x29224a='';return _0x341ba3&&(_0x512358=_0x341ba3['label'],_0x29224a=_0x8a1436(_0x512358)['toLowerCase']()),{'type':'format','content':c(_0x17e9fd,'*Set\x20font\x20background\x20color:*\x20%0',_0x29224a)['trim'](),'color':{'value':_0x40b906,'title':_0x29224a||_0x512358}};}return{'type':'format','content':c(_0x17e9fd,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0xac175e{['afterInit'](){const _0x25d164=this['editor'],_0x2292a3=_0x25d164['plugins']['get']('TrackChangesEditing'),_0x1a44fc=_0x25d164['commands']['get']('copyFormat'),_0x5bee3b=_0x25d164['commands']['get']('pasteFormat');_0x1a44fc&&_0x5bee3b&&(_0x2292a3['enableDefaultAttributesIntegration']('pasteFormat'),_0x2292a3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x19ece4=this['editor'],_0x48f5ad=_0x19ece4['locale'];_0x19ece4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ba395=>{if('formatBlock'!=_0x2ba395['type']&&'formatInline'!=_0x2ba395['type'])return;const {data:_0x40a516}=_0x2ba395;if(_0x40a516&&'pasteFormat'===_0x40a516['commandName']){const _0x3372a5=[],_0x23e384=_0x40a516['commandParams'][0x0];for(const [_0x1383bf,_0x56ebb7]of Object['entries'](_0x23e384))_0x3372a5['push'](so(_0x19ece4,_0x1383bf,_0x56ebb7));return _0x3372a5['length']?{'type':'format','content':c(_0x48f5ad,'*Set\x20format\x20to:*\x20%0',_0x3372a5['join'](',\x20'))}:{'type':'format','content':c(_0x48f5ad,'*Remove\x20all\x20formatting*')};}});}}function so(_0x54320d,_0x6d4178,_0x2c7e39){const _0x56f1ed=_0x54320d['locale']['t'],_0x443785=_0x6d4178['split'](/(?=[A-Z])/)['join']('\x20'),_0x1f79e2=_0x56f1ed(_0x443785['charAt'](0x0)['toUpperCase']()+_0x443785['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2c7e39)return _0x1f79e2;if('fontColor'===_0x6d4178||'fontBackgroundColor'===_0x6d4178){const _0x1c5e18=_0x99d1a(_0x54320d['config']['get']('fontColor.colors'))['find'](_0x5d7f1a=>_0x5d7f1a['model']==_0x2c7e39);return _0x1f79e2+'\x20('+(_0x1c5e18?_0x56f1ed(_0x1c5e18['label'])['toLowerCase']():_0x2c7e39)+')';}if('fontSize'===_0x6d4178&&isNaN(parseFloat(_0x2c7e39))){const _0x1549d7=_0x54320d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x54320d['config']['get']('fontSize.options'))['find'](_0x15df60=>_0x15df60['model']==_0x2c7e39);return _0x1f79e2+'\x20('+(_0x1549d7?_0x56f1ed(_0x1549d7['title'])['toLowerCase']():_0x2c7e39)+')';}return _0x1f79e2+'\x20('+_0x2c7e39+')';}class et extends _0xac175e{['_headingOptions'];['afterInit'](){const _0x5373f7=this['editor'];if(!_0x5373f7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5373f7['config']['get']('heading.options');const _0x54b159=_0x5373f7['locale'],_0x393b07=_0x5373f7['plugins']['get']('TrackChangesEditing');_0x393b07['enableDefaultAttributesIntegration']('heading');for(const _0x3fecfe of this['_headingOptions'])'paragraph'!=_0x3fecfe['model']&&_0x393b07['descriptionFactory']['registerElementLabel'](_0x3fecfe['model'],_0xc0f126=>{const _0x183382=this['_getHeadingLevel'](_0x3fecfe['model']);return null!==_0x183382?_0x1ce21c(_0xc0f126,_0x183382):_0x4c27f9(_0xc0f126,_0x3fecfe['title']);});function _0x1ce21c(_0x3db0bd,_0x5ab768){return c(_0x54b159,'ELEMENT_HEADING',[_0x3db0bd,_0x5ab768]);}function _0x4c27f9(_0x5551ec,_0x3c5d6e){return c(_0x54b159,'ELEMENT_HEADING_CUSTOM',[_0x5551ec,_0x3c5d6e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e75bc=this['editor'],_0x111631=_0x2e75bc['locale'];function _0x4c6e2d(_0x27136c,_0x617156){return c(_0x111631,'ELEMENT_HEADING_CUSTOM',[_0x27136c,_0x617156]);}_0x2e75bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4852e1=>{if('formatBlock'!=_0x4852e1['type'])return;const {data:_0x380827}=_0x4852e1;if(_0x380827&&'heading'==_0x380827['commandName']){const _0x326c95=_0x380827['commandParams'][0x0]['value'],_0x33a1d2=this['_getHeadingLevel'](_0x326c95);if(null!==_0x33a1d2)return{'type':'format','content':c(_0x111631,'*Change\x20to:*\x20%0',(_0x153da0=0x1,_0x3b89fe=_0x33a1d2,c(_0x111631,'ELEMENT_HEADING',[_0x153da0,_0x3b89fe])))};const _0xb2b500=this['_headingOptions']['find'](_0xe03931=>_0xe03931['model']===_0x326c95)['title'];return{'type':'format','content':c(_0x111631,'*Change\x20to:*\x20%0',_0x4c6e2d(0x1,_0xb2b500))};}var _0x153da0,_0x3b89fe;});}['_getHeadingLevel'](_0x212bc9){const _0x4a00f4=_0x212bc9['match'](/^heading(\d+)/);if(_0x4a00f4)return _0x4a00f4[0x1];const _0x91601a=this['_headingOptions']?.['find'](_0x55b240=>_0x55b240['model']==_0x212bc9);if(_0x91601a&&_0x91601a['view']){const _0x1b986f=_0x91601a['view'],_0x3b3f16=(_0x1b986f['name']??_0x1b986f)['match'](/^h(\d+)/);if(_0x3b3f16)return _0x3b3f16[0x1];}return null;}}class nt extends _0xac175e{['afterInit'](){const _0x1f328a=this['editor'];if(!_0x1f328a['plugins']['has']('HighlightEditing'))return;const _0x57e07b=_0x1f328a['plugins']['get']('TrackChangesEditing'),_0x2814fe=_0x1f328a['locale'];_0x57e07b['enableDefaultAttributesIntegration']('highlight'),_0x57e07b['registerInlineAttribute']('highlight'),_0x57e07b['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2814fe,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19d35d=this['editor'],_0x57403c=_0x19d35d['locale'];_0x19d35d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x478496=>{if('formatInline'!=_0x478496['type'])return;const {data:_0x2ede30}=_0x478496;if(_0x2ede30&&'highlight'==_0x2ede30['commandName']){const _0x113ab0=_0x57403c['t'],_0x4523a0=_0x2ede30['commandParams'][0x0]['value'];if(_0x4523a0){const _0x1935dc=_0x19d35d['config']['get']('highlight.options')['find'](_0x4d7332=>_0x4d7332['model']==_0x4523a0),_0x3ea2c1=_0x113ab0(_0x1935dc['title'])['toLowerCase']();return{'type':'format','content':c(_0x57403c,'*Set\x20highlight:*\x20%0',_0x3ea2c1),'color':{'value':_0x1935dc['color'],'title':_0x1935dc['title']}};}return{'type':'format','content':c(_0x57403c,'*Remove\x20highlight*',c(_0x57403c,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xac175e{['afterInit'](){const _0x459f33=this['editor'];if(!_0x459f33['plugins']['has']('HorizontalLineEditing'))return;_0x459f33['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x310b44=_0x459f33['plugins']['get']('TrackChangesEditing'),_0x157c07=_0x459f33['locale'];_0x310b44['descriptionFactory']['registerElementLabel']('horizontalLine',_0x214683=>c(_0x157c07,'ELEMENT_HORIZONTAL_LINE',_0x214683)),_0x459f33['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1bc274,{writer:_0xc064d0,options:_0x32f6fa})=>{if(!_0x32f6fa['showSuggestionHighlights'])return null;const _0x305a35=_0xc064d0['createContainerElement']('div'),_0x171beb=_0xc064d0['createEmptyElement']('hr');return _0xc064d0['addClass']('ck-horizontal-line',_0x305a35),_0xc064d0['insert'](_0xc064d0['createPositionAt'](_0x305a35,0x0),_0x171beb),_0x305a35;},'converterPriority':'high'});}}class ot extends _0xac175e{['afterInit'](){const _0x2dfb22=this['editor'];if(!_0x2dfb22['plugins']['has']('HtmlEmbed'))return;const _0x5679b4=_0x2dfb22['plugins']['get']('TrackChangesEditing'),_0x1a3d44=_0x2dfb22['locale'];_0x5679b4['descriptionFactory']['registerElementLabel']('rawHtml',_0x31a1aa=>c(_0x1a3d44,'ELEMENT_HTML_EMBED',_0x31a1aa)),_0x5679b4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5679b4['registerBlockAttribute']('value'),_0x5679b4['descriptionFactory']['registerDescriptionCallback'](_0x4d3aa1=>{if('attribute'!=_0x4d3aa1['type'])return;const {data:_0x2b9df4}=_0x4d3aa1;if(_0x2b9df4&&'value'==_0x2b9df4['key']&&_0x4d3aa1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x31d8e2=c(_0x1a3d44,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1a3d44,'*Change\x20%0\x20content*',_0x31d8e2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f1e7a=this['editor'],_0x5b4dbb=_0x2f1e7a['locale'];_0x2f1e7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x109739=>{if('formatBlock'!=_0x109739['type'])return;const {data:_0x58175a}=_0x109739;if(_0x58175a&&'htmlEmbed'==_0x58175a['commandName']){const _0x2744b3=c(_0x5b4dbb,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5b4dbb,'*Change\x20%0\x20content*',_0x2744b3)};}});}}class rt extends _0xac175e{['afterInit'](){const _0x4f2c99=this['editor'];if(!_0x4f2c99['plugins']['has']('ImageEditing'))return;const _0x5890f4=_0x4f2c99['plugins']['get']('TrackChangesEditing'),_0x5368=_0x4f2c99['plugins']['get']('ImageUtils'),_0x551795=_0x4f2c99['locale'];_0x5890f4['enableCommand']('insertImage'),_0x5890f4['descriptionFactory']['registerElementLabel']('imageBlock',_0x4d1735=>c(_0x551795,'ELEMENT_IMAGE',_0x4d1735)),_0x5890f4['descriptionFactory']['registerElementLabel']('imageInline',_0x4f5ad9=>c(_0x551795,'ELEMENT_INLINE_IMAGE',_0x4f5ad9)),_0x5890f4['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x551795,'ELEMENT_CAPTION')),_0x4f2c99['plugins']['has']('ImageUploadEditing')&&_0x5890f4['enableCommand']('uploadImage'),_0x4f2c99['plugins']['has']('ImageBlockEditing')&&_0x4f2c99['plugins']['has']('ImageInlineEditing')&&(_0x5890f4['enableCommand']('imageTypeInline',(_0x12a637,_0x5aa758)=>{const _0x582cc9=_0x5368['getClosestSelectedImageElement'](_0x4f2c99['model']['document']['selection']);_0x4f2c99['model']['change'](()=>{_0x5890f4['markBlockFormat'](_0x582cc9,{'commandName':'imageTypeInline','commandParams':[_0x5aa758]},[],'convertBlockImageToInline');});}),_0x5890f4['enableCommand']('imageTypeBlock',(_0x1fbd3f,_0x3e3835)=>{_0x4f2c99['model']['change'](_0x24920d=>{let _0x485764=_0x5368['getClosestSelectedImageElement'](_0x4f2c99['model']['document']['selection']),_0x15c7e3=_0x24920d['createRangeOn'](_0x485764);const _0xb0c577=_0x11b1a2['fromPosition'](_0x15c7e3['start'],'toPrevious'),_0x2d8837=_0x11b1a2['fromPosition'](_0x15c7e3['end'],'toNext');_0x5890f4['forceDefaultExecution'](()=>_0x1fbd3f(_0x3e3835)),_0x485764=_0x5368['getClosestSelectedImageElement'](_0x4f2c99['model']['document']['selection']),_0x15c7e3=_0x24920d['createRangeOn'](_0x485764);const _0xde5c41=_0x24920d['createRange'](_0xb0c577,_0x2d8837);_0xb0c577['detach'](),_0x2d8837['detach'](),_0x5890f4['markBlockFormat'](_0x485764,{'commandName':'imageTypeInline','commandParams':[_0x3e3835]},[],'convertInlineImageToBlock'),_0xde5c41['start']['isBefore'](_0x15c7e3['start'])&&_0x5890f4['markInsertion'](_0x24920d['createRange'](_0xde5c41['start'],_0x15c7e3['start']),'convertInlineImageToBlock'),_0x15c7e3['end']['isBefore'](_0xde5c41['end'])&&_0x5890f4['markInsertion'](_0x24920d['createRange'](_0x15c7e3['end'],_0xde5c41['end']),'convertInlineImageToBlock');});}),_0x5890f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5890f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5890f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5890f4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5890f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5890f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3fc8bd])=>{const _0x1b58f3=_0x5890f4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4cfe44=_0x3fc8bd['start'],_0x1c2dcf=_0x3fc8bd['end'];const _0x19e263=_0x4f2c99['model']['schema']['getNearestSelectionRange'](_0x4cfe44,'backward'),_0x50e88a=_0x4f2c99['model']['schema']['getNearestSelectionRange'](_0x1c2dcf,'forward');_0x19e263['isCollapsed']&&(_0x4cfe44=_0x19e263['start']),_0x50e88a['isCollapsed']&&(_0x1c2dcf=_0x50e88a['end']),_0x1b58f3([_0x4f2c99['model']['createRange'](_0x4cfe44,_0x1c2dcf)]);}),_0x5890f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2232d5),_0x5890f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2232d5)),_0x4f2c99['plugins']['has']('ImageCaptionEditing')&&(_0x5890f4['enableCommand']('toggleImageCaption',(_0x2d06b6,_0xea4f07)=>{const _0x481b34=_0x4f2c99['plugins']['get']('ImageCaptionUtils');let _0x3b9582=_0x5368['getClosestSelectedImageElement'](_0x4f2c99['model']['document']['selection']),_0x35b5c0=_0x481b34['getCaptionFromImageModelElement'](_0x3b9582);_0x4f2c99['model']['change'](()=>{if(_0x35b5c0)return void _0x5890f4['markDeletion'](_0x4f2c99['model']['createRangeOn'](_0x35b5c0));const _0x3d7a4c=_0x5368['isBlockImage'](_0x3b9582);_0x2d06b6(_0xea4f07),_0x3b9582=_0x5368['getClosestSelectedImageElement'](_0x4f2c99['model']['document']['selection']),_0x35b5c0=_0x481b34['getCaptionFromImageModelElement'](_0x3b9582),_0x5890f4['markInsertion'](_0x4f2c99['model']['createRangeOn'](_0x35b5c0),_0x3d7a4c?null:'imageCaption');});}),_0x5890f4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2232d5));const _0x39778c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31c3ee(_0x2ebb08,_0x4f53da){const _0x4014a0=_0x39778c['findIndex'](({type:_0x44b3fc,subType:_0x36ae8a})=>_0x2ebb08['type']==_0x44b3fc&&_0x2ebb08['subType']==_0x36ae8a),_0x19033a=_0x39778c['findIndex'](({type:_0x528867,subType:_0x1e8c5b})=>_0x4f53da['type']==_0x528867&&_0x4f53da['subType']==_0x1e8c5b);if(_0x4014a0<0x0||_0x19033a<0x0)return!0x1;const _0x1c6a88=_0x2ebb08['getFirstRange'](),_0x55ddf1=_0x4f53da['getFirstRange']();if((0x0==_0x4014a0||0x1==_0x4014a0)&&0x2==_0x19033a&&_0x1c6a88['isIntersecting'](_0x55ddf1))return!0x0;if(0x2==_0x4014a0&&0x3==_0x19033a){const _0x10a5b4=_0x5890f4['_findSuggestions'](_0x1c6a88,'insertion')['filter'](({suggestion:_0x876314,meta:_0x53888a})=>_0x53888a['isOwn']&&'convertInlineImageToBlock'==_0x876314['subType']);if(_0x10a5b4['length']>0x1&&_0x55ddf1['end']['isEqual'](_0x1c6a88['start']))return!0x0;if(0x1==_0x10a5b4['length']&&(_0x1c6a88['start']['isEqual'](_0x55ddf1['end'])||_0x1c6a88['end']['isEqual'](_0x55ddf1['start'])))return!0x0;}if(0x3==_0x4014a0&&0x3==_0x19033a&&_0x1c6a88['start']['isBefore'](_0x55ddf1['start'])){const _0x1bbe46=_0x1c6a88['end']['nodeAfter'],_0x33f265=_0x55ddf1['start']['nodeBefore'];return _0x5368['isBlockImage'](_0x1bbe46)&&_0x1bbe46===_0x33f265;}return!0x1;}function _0x2232d5(_0x74c99,_0x19d493){return _0x31c3ee(_0x74c99,_0x19d493)?[_0x74c99,_0x19d493]:_0x31c3ee(_0x19d493,_0x74c99)?[_0x19d493,_0x74c99]:null;}_0x4f2c99['plugins']['has']('ImageResize')&&(_0x5890f4['enableDefaultAttributesIntegration']('resizeImage'),_0x5890f4['registerBlockAttribute']('resizedWidth'),_0x5890f4['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x551795,'FORMAT_IMAGE_SIZE'))),_0x4f2c99['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5890f4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5890f4['registerBlockAttribute']('alt')),_0x4f2c99['plugins']['has']('PictureEditing')&&(_0x5890f4['registerBlockAttribute']('sources'),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0x4dde87=>{if('attribute'!=_0x4dde87['type'])return;const {data:_0x210b9b}=_0x4dde87;return _0x210b9b&&'sources'==_0x210b9b['key']?{'type':'format','content':''}:void 0x0;})),_0x4f2c99['plugins']['has']('ImageSizeAttributes')&&(_0x5890f4['registerBlockAttribute']('width'),_0x5890f4['registerBlockAttribute']('height'),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0xc7ed31=>{if('attribute'!=_0xc7ed31['type'])return;const {data:_0x2340a9}=_0xc7ed31;return!_0x2340a9||'width'!=_0x2340a9['key']&&'height'!=_0x2340a9['key']?void 0x0:{'type':'format','content':''};})),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0x46291c=>{if(!!_0x39778c['find'](({type:_0x493a74,subType:_0x2ca289})=>_0x46291c['type']==_0x493a74&&_0x46291c['subType']==_0x2ca289))return _0x46291c['previous']?{}:void 0x0;}),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0x388557=>{if('insertion'==_0x388557['type']||'deletion'==_0x388557['type']){const _0x592f9a=_0x388557['getContainedElement']();if(_0x592f9a&&_0x592f9a['is']('element','caption'))return{'type':'insertion'==_0x388557['type']?'addObject':'removeObject','element':_0x592f9a,'quantity':0x1};}}),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0xb8059d=>'formatBlock'==_0xb8059d['type']&&'convertInlineImageToBlock'==_0xb8059d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xb8059d['type']&&'convertBlockImageToInline'==_0xb8059d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0x5794c6=>{if('attribute'!=_0x5794c6['type'])return;const {data:_0x3726c6}=_0x5794c6;if(!_0x3726c6||'alt'!=_0x3726c6['key'])return;const _0x4cbc3a=_0x3726c6['newValue'];return _0x4cbc3a?{'type':'format','content':c(_0x551795,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4cbc3a+'\x22')}:{'type':'format','content':c(_0x551795,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x389a36=this['editor'],_0x5bc40b=_0x389a36['locale'];_0x389a36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45aedf=>{if('formatBlock'!=_0x45aedf['type']&&'formatInline'!=_0x45aedf['type'])return;const {data:_0xe29aca}=_0x45aedf;if(_0xe29aca){if('imageTextAlternative'==_0xe29aca['commandName']){const _0x153d87=_0xe29aca['commandParams'][0x0]['newValue'];return _0x153d87?{'type':'format','content':c(_0x5bc40b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x153d87+'\x22')}:{'type':'format','content':c(_0x5bc40b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe29aca['commandName']){const _0x56afe3=_0xe29aca['commandParams'][0x0]['width'];return _0x56afe3?{'type':'format','content':c(_0x5bc40b,'*Set\x20image\x20width:*\x20%0',_0x56afe3)}:{'type':'format','content':c(_0x5bc40b,'*Reset\x20image\x20width*')};}}});}}class at extends _0xac175e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x432582=this['editor']['locale'],_0x39b270=this['editor']['plugins']['get']('TrackChangesEditing');_0x39b270['enableDefaultAttributesIntegration']('replaceImageSource'),_0x39b270['registerBlockAttribute']('src'),_0x39b270['descriptionFactory']['registerDescriptionCallback'](_0x99d32c=>{if('attribute'!=_0x99d32c['type'])return;const {data:_0x436622}=_0x99d32c;return _0x436622&&'src'==_0x436622['key']?_0x436622['newValue']&&_0x436622['oldValue']?{'type':'format','content':c(_0x432582,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50d9cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x50d9cc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x50d9cc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50d9cc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x50d9cc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c1fe1=this['editor'],_0x49f0fb=_0x2c1fe1['locale'];_0x2c1fe1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a7ebb=>{if('formatBlock'!=_0x5a7ebb['type']&&'formatInline'!=_0x5a7ebb['type'])return;const {data:_0x4e94db}=_0x5a7ebb;if(!_0x4e94db||'replaceImageSource'!=_0x4e94db['commandName'])return;return{'type':'format','content':c(_0x49f0fb,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xac175e{['afterInit'](){const _0xcde50c=this['editor'];if(!_0xcde50c['plugins']['has']('ImageStyleEditing'))return;const _0x1c16d9=_0xcde50c['plugins']['get']('TrackChangesEditing'),_0x3fe13d=_0xcde50c['plugins']['get']('ImageUtils'),_0x3e1f58={};_0x1c16d9['enableCommand']('imageStyle',(_0x3f8507,_0x3be3fb)=>{const _0x412f98=_0xcde50c['plugins']['get']('Users')['me'],_0x4a2bb6=_0xcde50c['commands']['get']('imageStyle');let _0x147278=_0x3fe13d['getClosestSelectedImageElement'](_0xcde50c['model']['document']['selection']),_0x39c732=_0xcde50c['model']['createRangeOn'](_0x147278),_0x7708b5=_0x4a2bb6['value'];if(_0x7708b5==_0x3be3fb['value'])return;const _0x24a32e={'commandName':'imageStyle','commandParams':[_0x3be3fb],'formatGroupId':_0xbf3332()};_0xcde50c['model']['change'](()=>{if(_0x1c16d9['getSuggestions']()['filter'](_0x32d3ca=>_0x32d3ca['isInContent']&&_0x412f98==_0x32d3ca['author']&&('formatBlock'==_0x32d3ca['type']||'formatInline'==_0x32d3ca['type'])&&('imageStylePreApply'==_0x32d3ca['subType']||'imageStylePostApply'==_0x32d3ca['subType'])&&_0x32d3ca['getFirstRange']()['isEqual'](_0x39c732))['forEach'](_0x173284=>_0x1c16d9['discardSuggestion'](_0x173284['head'])),_0x147278=_0x3fe13d['getClosestSelectedImageElement'](_0xcde50c['model']['document']['selection']),_0x39c732=_0xcde50c['model']['createRangeOn'](_0x147278),_0x4a2bb6['refresh'](),_0xcde50c['commands']['get']('imageTypeInline')['refresh'](),_0xcde50c['commands']['get']('imageTypeBlock')['refresh'](),_0x7708b5=_0x4a2bb6['value'],_0x7708b5!=_0x3be3fb['value'])return _0x3fe13d['isInlineImage'](_0x147278)&&_0x4a2bb6['shouldConvertImageType'](_0x3be3fb['value'],_0x147278)?(_0x3f8507({..._0x3be3fb,'setImageSizes':!0x1}),_0x147278=_0x3fe13d['getClosestSelectedImageElement'](_0xcde50c['model']['document']['selection']),void _0x1c16d9['markBlockFormat'](_0x147278,{..._0x24a32e,'commandReversedParams':[{'value':_0x7708b5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3fe13d['isBlockImage'](_0x147278)?_0x1c16d9['markBlockFormat'](_0x147278,_0x24a32e,[],'imageStylePostApply'):_0x1c16d9['markInlineFormat'](_0x39c732,_0x24a32e,'imageStylePostApply'));});});for(const _0x3ac8db of _0xcde50c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3e1f58[_0x3ac8db['name']]=_0x3ac8db['title']['toLowerCase']();_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x29da19])=>{_0x3fe13d['setImageNaturalSizeAttributes'](_0x29da19['getContainedElement']());}),_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x194372,_0x51ee29)=>{_0x1c16d9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x194372,{'commandName':_0x51ee29['commandName'],'commandParams':_0x51ee29['commandReversedParams']});}),_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5e93b7,_0x2ee694){if(_0xe8a738(_0x5e93b7,_0x2ee694))return[_0x5e93b7,_0x2ee694];if(_0xe8a738(_0x2ee694,_0x5e93b7))return[_0x2ee694,_0x5e93b7];return null;});const _0x2f3c07=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xe8a738(_0x3899fb,_0x26c0e5){const _0x2ac1ea=_0x2f3c07['findIndex'](({type:_0x4d7f97,subType:_0x5e00e1})=>_0x3899fb['type']==_0x4d7f97&&_0x3899fb['subType']==_0x5e00e1),_0x1fdc61=_0x2f3c07['findIndex'](({type:_0x28977e,subType:_0x2f5399})=>_0x26c0e5['type']==_0x28977e&&_0x26c0e5['subType']==_0x2f5399);if(_0x2ac1ea<0x0||_0x1fdc61<0x0)return!0x1;const _0x5a1f4a=_0x3899fb['getFirstRange'](),_0xc82cff=_0x26c0e5['getFirstRange']();if((0x0==_0x2ac1ea||0x1==_0x2ac1ea)&&0x2==_0x1fdc61&&_0x5a1f4a['isIntersecting'](_0xc82cff))return!0x0;if(0x2==_0x2ac1ea&&0x3==_0x1fdc61){const _0x57b7a7=_0x1c16d9['_findSuggestions'](_0x5a1f4a,'insertion')['filter'](({suggestion:_0xb807fd,meta:_0x2f1d7a})=>_0x2f1d7a['isOwn']&&'convertInlineImageToBlock'==_0xb807fd['subType']);if(_0x57b7a7['length']>0x1&&_0xc82cff['end']['isEqual'](_0x5a1f4a['start']))return!0x0;if(0x1==_0x57b7a7['length']&&(_0x5a1f4a['start']['isEqual'](_0xc82cff['end'])||_0x5a1f4a['end']['isEqual'](_0xc82cff['start'])))return!0x0;}if(0x3==_0x2ac1ea&&0x3==_0x1fdc61&&_0x5a1f4a['start']['isBefore'](_0xc82cff['start'])){const _0x288368=_0x5a1f4a['end']['nodeAfter'],_0x353910=_0xc82cff['start']['nodeBefore'];return _0x3fe13d['isBlockImage'](_0x288368)&&_0x288368===_0x353910;}return!0x1;}_0xcde50c['model']['document']['registerPostFixer'](()=>{let _0x542629=!0x1;const _0x341a5a=Array['from'](_0xcde50c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x287ad0,data:_0x111642}of _0x341a5a){const {group:_0x12a556,type:_0x138d45,subType:_0x413817,id:_0x1e613c}=_0x1c16d9['_splitMarkerName'](_0x287ad0);if('suggestion'==_0x12a556&&_0x1c16d9['hasSuggestion'](_0x1e613c)){if('formatBlock'==_0x138d45&&('imageStylePreApply'==_0x413817||'imageStylePostApply'==_0x413817)){const _0x25e897=_0x1c16d9['getSuggestion'](_0x1e613c);if(_0x111642['newRange']){const _0x3b3b00=_0x25e897['getFirstRange']()['getContainedElement']();if(_0x3fe13d['isBlockImage'](_0x3b3b00))continue;_0x1c16d9['discardSuggestion'](_0x25e897),_0x542629=!0x0;}}if('insertion'==_0x138d45&&'imageCaption'==_0x413817&&!_0x111642['newRange']){const _0x55fb76=_0x1c16d9['getSuggestion'](_0x1e613c);_0x55fb76['next']&&_0x55fb76['next']['isInContent']&&(_0x1c16d9['discardSuggestion'](_0x55fb76['next']),_0x542629=!0x0);}}}return _0x542629;}),this['_registerLegacyDescription'](_0x3e1f58);}['_registerLegacyDescription'](_0x5b1aed){const _0x3901a5=this['editor'],_0x6d0b30=_0x3901a5['locale'];_0x3901a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd467=>{if('formatBlock'!=_0x2bd467['type']&&'formatInline'!=_0x2bd467['type'])return;const {data:_0xf87ef4}=_0x2bd467;if(!_0xf87ef4||'imageStyle'!=_0xf87ef4['commandName'])return;const _0x5f57c9=_0xf87ef4['commandParams'][0x0]['value'];return _0x3018fd('side'===_0x5f57c9?c(_0x6d0b30,'FORMAT_SIDE_IMAGE'):_0x5b1aed[_0x5f57c9]||_0x5f57c9);function _0x3018fd(_0x5a3213){return{'type':'format','content':c(_0x6d0b30,'*Format:*\x20%0',_0x5a3213)};}});}}class ut extends _0xac175e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x223466){super(_0x223466),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x530bb9=this['editor'],_0x2b5ae2=_0x530bb9['commands']['get']('importWord'),_0x5790a3=_0x530bb9['commands']['get']('trackChanges');_0x2b5ae2&&(_0x2b5ae2['on']('execute',(_0x19edb3,[,_0x133ace])=>{this['_trackChangesValueDuringImport']=_0x5790a3['value'],_0x133ace['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2b5ae2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2b5ae2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5790a3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x530bb9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1d42d6,_0x2a78b3){const {suggestions:_0x365818}=_0x2a78b3,_0x4555cf=this['editor']['commands']['get']('trackChanges'),_0x3b4a79=_0x4555cf['value'];this['_trackChangesValueDuringImport']!==_0x3b4a79&&(_0x4555cf['execute'](),this['_trackChangesExecuted']=!0x0),_0x365818&&_0x365818['forEach'](({id:_0x5e11bf,type:_0x3cfc17,author:_0x874f35,created_at:_0x1a17a6})=>{const _0x263a92={'id':_0x5e11bf,'type':_0x3cfc17,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x874f35,'createdAt':_0x1a17a6?new Date(_0x1a17a6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x263a92);});}}class ft extends _0xac175e{['afterInit'](){const _0x125e1d=this['editor'],_0x53b4b7=_0x125e1d['plugins']['get']('TrackChangesEditing');if(_0x125e1d['plugins']['has']('IndentEditing')&&(_0x53b4b7['enableCommand']('indent'),_0x53b4b7['enableCommand']('outdent')),_0x125e1d['plugins']['has']('IndentBlock')){for(const _0x3b1449 of['indentBlock','outdentBlock'])_0x53b4b7['enableDefaultAttributesIntegration'](_0x3b1449);}const _0x4c2814=_0x125e1d['locale'];_0x53b4b7['registerBlockAttribute']('blockIndent'),_0x53b4b7['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x4c2814,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x435a60=this['editor'],_0x55882d=_0x435a60['locale'],_0x75e728=_0x435a60['plugins']['get']('TrackChangesEditing');_0x75e728['descriptionFactory']['registerDescriptionCallback'](_0x27f2c5=>{if('formatBlock'!=_0x27f2c5['type'])return;const {data:_0x5b610a}=_0x27f2c5;if(!_0x5b610a)return;if('indentBlock'!=_0x5b610a['commandName']&&'outdentBlock'!=_0x5b610a['commandName'])return;const _0x559754=_0x27f2c5['getItems']()[0x0],_0x52331d=_0x75e728['descriptionFactory']['getItemLabel'](_0x559754);return'indentBlock'==_0x5b610a['commandName']?{'type':'format','content':c(_0x55882d,'*Indent:*\x20%0',_0x52331d)}:'outdentBlock'==_0x5b610a['commandName']?{'type':'format','content':c(_0x55882d,'*Outdent:*\x20%0',_0x52331d)}:void 0x0;});}}class ht extends _0xac175e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0xac175e{['afterInit'](){const _0x3cecba=this['editor'];if(!_0x3cecba['plugins']['has']('LinkEditing'))return;const _0x23497e=_0x3cecba['plugins']['get']('TrackChangesEditing'),_0x139d1b=_0x3cecba['commands']['get']('link');_0x23497e['enableDefaultAttributesIntegration']('link'),_0x23497e['enableDefaultAttributesIntegration']('unlink'),_0x23497e['registerInlineAttribute']('linkHref');for(const _0x22d300 of _0x139d1b['manualDecorators'])_0x23497e['registerInlineAttribute'](_0x22d300['id']),_0x23497e['descriptionFactory']['registerAttributeLabel'](_0x22d300['id'],'link\x20('+_0x22d300['label']['toLowerCase']()+')');_0x23497e['descriptionFactory']['registerDescriptionCallback'](_0x4cc868=>{if('attribute'!=_0x4cc868['type'])return;const {data:_0x54cdc8}=_0x4cc868;if(!_0x54cdc8||'linkHref'!=_0x54cdc8['key'])return;const _0x3f6431=_0x54cdc8['newValue'],_0x5c8e01=_0x3cecba['locale'];return{'type':'format','content':null==_0x3f6431?c(_0x5c8e01,'*Remove\x20link*'):c(_0x5c8e01,'*Set\x20link:*\x20%0','\x22'+_0x3f6431+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x373b6d=this['editor'],_0x1fb7ca=_0x373b6d['locale'];_0x373b6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x243e8d=>{if('formatInline'!=_0x243e8d['type'])return;const {data:_0x5c1ca6}=_0x243e8d;if(_0x5c1ca6){if('link'==_0x5c1ca6['commandName']){const _0x594155=_0x5c1ca6['commandParams'][0x0];return{'type':'format','content':c(_0x1fb7ca,'*Set\x20link:*\x20%0','\x22'+_0x594155+'\x22')};}return'unlink'==_0x5c1ca6['commandName']?{'type':'format','content':c(_0x1fb7ca,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0xac175e{['afterInit'](){const _0x32a82c=this['editor'],_0x659ab=_0x32a82c['locale'];if(!_0x32a82c['plugins']['has']('LegacyListEditing'))return;const _0x7075b2=_0x32a82c['plugins']['get']('TrackChangesEditing'),_0x47795c=_0x32a82c['plugins']['has']('LegacyTodoListEditing');function _0x4f7d61(_0x2f990e){return()=>{const _0x2a751b=_0x32a82c['model']['document']['selection'],_0x472a49=_0x32a82c['commands']['get'](_0x2f990e);if(_0x472a49['value'])return void _0x32a82c['execute']('paragraph',{});const _0x18acf0=_0x2f990e['slice'](0x0,-0x4),_0x56f055=function(_0x64a748,_0x4c5095,_0x4e71cc){let _0x54b216=Array['from'](_0x64a748)['filter'](_0x8a7612=>function(_0x15e542,_0x9fa6ec){return _0x9fa6ec['checkChild'](_0x15e542['parent'],'listItem')&&!_0x9fa6ec['isObject'](_0x15e542);}(_0x8a7612,_0x4e71cc));_0x54b216=_0x54b216['filter'](_0x52e68a=>!_0x52e68a['is']('element','listItem')||_0x52e68a['getAttribute']('listType')!=_0x4c5095);const _0x3c14ce=new Set();for(const _0x2c1333 of _0x54b216)_0x2c1333['is']('element','listItem')?_0x3c14ce['add'](Le(_0x2c1333)):_0x3c14ce['add'](_0x2c1333);return Array['from'](_0x3c14ce);}(_0x2a751b['getSelectedBlocks'](),_0x18acf0,_0x32a82c['model']['schema']);_0x32a82c['model']['change'](()=>{for(const _0x3010b2 of _0x56f055)_0x7075b2['markBlockFormat'](_0x3010b2,{'commandName':_0x2f990e,'commandParams':[{'forceValue':!_0x472a49['value']}],'formatGroupId':'blockName'},Ee(_0x3010b2));});};}function _0x20acf0(_0x44ef74){return()=>{const _0x1ed0f1=function(_0xe4b6a1){let _0x2ac072=Array['from'](_0xe4b6a1);const _0x476295=_0x2ac072['findIndex'](_0x1b08e4=>'listItem'!=_0x1b08e4['name']);return _0x476295>-0x1&&(_0x2ac072=_0x2ac072['slice'](0x0,_0x476295)),_0x2ac072;}(_0x32a82c['model']['document']['selection']['getSelectedBlocks']()),_0x4bf06b=_0x32a82c['model']['createRange'](_0x32a82c['model']['createPositionAt'](_0x1ed0f1[0x0],'before'),_0x32a82c['model']['createPositionAt'](_0x1ed0f1[_0x1ed0f1['length']-0x1],'end'));_0x32a82c['model']['change'](()=>{_0x7075b2['markBlockFormat'](_0x4bf06b,{'commandName':_0x44ef74,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b2642){const _0x51f5b8=new Set();for(const _0x4e595d of _0x2b2642){let _0x38a4ad=_0x4e595d['nextSibling'];for(;_0x38a4ad&&_0x38a4ad['getAttribute']('listIndent')>_0x4e595d['getAttribute']('listIndent');)_0x51f5b8['add'](_0x38a4ad),_0x38a4ad=_0x38a4ad['nextSibling'];}return Array['from'](_0x51f5b8);}(_0x1ed0f1));});};}_0x7075b2['enableCommand']('numberedList',_0x4f7d61('numberedList')),_0x7075b2['enableCommand']('bulletedList',_0x4f7d61('bulletedList')),_0x47795c&&_0x7075b2['enableCommand']('todoList',_0x4f7d61('todoList')),_0x7075b2['enableCommand']('indentList',_0x20acf0('indentList')),_0x7075b2['enableCommand']('outdentList',_0x20acf0('outdentList')),_0x47795c&&_0x7075b2['enableCommand']('checkTodoList',()=>{const _0x5ab0ec=_0x32a82c['commands']['get']('checkTodoList'),_0x31db51=Array['from'](_0x5ab0ec['_selectedElements']);_0x31db51['filter'](_0x438add=>_0x438add['getAttribute']('todoListChecked')!=_0x5ab0ec['value']),_0x32a82c['model']['change'](()=>{for(const _0x3835fe of _0x31db51)_0x7075b2['markBlockFormat'](_0x3835fe,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5ab0ec['value']}]});});}),_0x7075b2['descriptionFactory']['registerElementLabel']('listItem',_0x7a0b2=>c(_0x659ab,'ELEMENT_LIST_ITEM',_0x7a0b2)),_0x7075b2['descriptionFactory']['registerDescriptionCallback'](_0x3626e9=>{if('formatBlock'!=_0x3626e9['type']&&'formatInline'!=_0x3626e9['type'])return;const {data:_0xb218ab}=_0x3626e9;if(_0xb218ab){if('numberedList'==_0xb218ab['commandName']||'bulletedList'==_0xb218ab['commandName']||'todoList'==_0xb218ab['commandName'])switch(_0xb218ab['commandName']['replace']('List','')){case'bulleted':return _0xb43a4(c(_0x659ab,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb43a4(c(_0x659ab,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb43a4(c(_0x659ab,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb218ab['commandName'])return{'type':'format','content':c(_0x659ab,'*Indent:*\x20%0',c(_0x659ab,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb218ab['commandName'])return{'type':'format','content':c(_0x659ab,'*Outdent:*\x20%0',c(_0x659ab,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb218ab['commandName'])return _0xb218ab['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x659ab,'*Check\x20item*')}:{'type':'format','content':c(_0x659ab,'*Uncheck\x20item*')};}function _0xb43a4(_0x3c6ada){return{'type':'format','content':c(_0x659ab,'*Change\x20to:*\x20%0',_0x3c6ada)};}});}}function Le(_0x22efcf){const _0x15ff92=_0x22efcf['getAttribute']('listIndent');if(0x0==_0x15ff92)return _0x22efcf;let _0x11ec40=_0x22efcf;for(;_0x22efcf['previousSibling']&&_0x22efcf['previousSibling']['is']('element','listItem');){const _0xf5d9eb=_0x22efcf['previousSibling']['getAttribute']('listIndent');if(_0xf5d9eb==_0x15ff92)_0x11ec40=_0x22efcf['previousSibling'];else{if(_0xf5d9eb<_0x15ff92)break;}_0x22efcf=_0x22efcf['previousSibling'];}return _0x11ec40;}function Ee(_0x33e54f){const _0x3c2669=[];if(_0x33e54f['is']('element','listItem')&&_0x33e54f['getAttribute']('listIndent')>0x0){let _0x1e02dc=_0x33e54f['nextSibling'];for(;_0x1e02dc&&'listItem'==_0x1e02dc['name']&&_0x1e02dc['getAttribute']('listIndent')==_0x33e54f['getAttribute']('listIndent');)_0x3c2669['push'](_0x1e02dc),_0x1e02dc=_0x1e02dc['nextSibling'];}return _0x3c2669;}class Q extends _0xac175e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x561bf6=this['editor']['config']['get']('list.properties'),_0x21e815=this['editor']['plugins']['get']('TrackChangesEditing');_0x561bf6['styles']&&_0x21e815['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x561bf6['reversed']&&_0x21e815['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x561bf6['startIndex']&&_0x21e815['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x21e815['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2c4872,_0x54e499={}){const _0x39438e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x545690=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x39438e['markMultiRangeBlockFormat'](_0x545690,{'commandName':'listStyle','commandParams':[{'type':_0x54e499['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x611622,_0x1d7b7e={}){const _0x5cd67f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x540093=this['_getSuggestionBlocks'](_0x5b1439=>_0x5b1439['is']('element','listItem')&&'numbered'===_0x5b1439['getAttribute']('listType'));if(_0x540093['length']<0x1)return;const _0x2045ff=_0x540093['map'](_0x525f7e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x525f7e,'before'),this['editor']['model']['createPositionAt'](_0x525f7e,0x0)));this['editor']['model']['change'](()=>{_0x5cd67f['markMultiRangeBlockFormat'](_0x2045ff,{'commandName':'listReversed','commandParams':[{'reversed':_0x1d7b7e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x37264e,_0x314edc={}){const _0x7245ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5104b4=this['_getSuggestionBlocks'](_0x3202d9=>_0x3202d9['is']('element','listItem')&&'numbered'===_0x3202d9['getAttribute']('listType'));if(_0x5104b4['length']<0x1)return;const _0x26bf15=_0x5104b4['map'](_0x33f895=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33f895,'before'),this['editor']['model']['createPositionAt'](_0x33f895,0x0)));this['editor']['model']['change'](()=>{_0x7245ae['markMultiRangeBlockFormat'](_0x26bf15,{'commandName':'listStart','commandParams':[{'startIndex':_0x314edc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x139e21){if('formatBlock'!=_0x139e21['type']&&'formatInline'!=_0x139e21['type'])return;const _0x5a72e0=this['editor']['locale'],{data:_0x1e2687}=_0x139e21;if(!_0x1e2687)return;let _0x5b1d31,_0x4dec14;switch(_0x1e2687['commandName']){case'listStyle':_0x5b1d31='*Change\x20to:*\x20%0',_0x4dec14={'type':'format','content':c(_0x5a72e0,_0x5b1d31,c(_0x5a72e0,this['_getTranslationKeyForListStyle'](_0x1e2687['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5b1d31=_0x1e2687['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4dec14={'type':'format','content':c(_0x5a72e0,_0x5b1d31)};break;case'listStart':_0x5b1d31='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4dec14={'type':'format','content':c(_0x5a72e0,_0x5b1d31,_0x1e2687['commandParams'][0x0]['startIndex'])};}return _0x4dec14;}['_getSuggestionBlocksForListStyle'](){const _0x4a8b2c=this['editor']['plugins']['get']('LegacyListUtils');let _0x38ac7c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x38ac7c[0x0]?.['is']('element','listItem')&&_0x38ac7c['unshift'](..._0x4a8b2c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x38ac7c[_0x38ac7c['length']-0x1]?.['is']('element','listItem')&&_0x38ac7c['push'](..._0x4a8b2c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x38ac7c=[...new Set(_0x38ac7c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x38ac7c=_0x38ac7c['filter'](_0x26dcd5=>_0x26dcd5['is']('element','listItem'))),_0x38ac7c;}['_getSuggestionBlocks'](_0x2f0741){const _0x5809a3=this['editor']['plugins']['get']('LegacyListUtils');let _0x580e0e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2f0741)['map'](_0x5eeaa5=>{const _0x4f931c=this['editor']['model']['createPositionAt'](_0x5eeaa5,0x0);return[..._0x5809a3['getSiblingNodes'](_0x4f931c,'backward'),..._0x5809a3['getSiblingNodes'](_0x4f931c,'forward')];})['flat']();return _0x580e0e=[...new Set(_0x580e0e)],_0x580e0e;}['_getTranslationKeyForListStyle'](_0x26a17e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x26a17e)||'default')['toUpperCase']()+'_LIST_'+_0x26a17e['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0xac175e{['afterInit'](){const _0x1e0289=this['editor'];if(!_0x1e0289['plugins']['has']('MediaEmbedEditing'))return;const _0x4a62f7=_0x1e0289['plugins']['get']('TrackChangesEditing'),_0x558a2b=_0x1e0289['locale'];_0x4a62f7['enableCommand']('mediaEmbed'),_0x4a62f7['descriptionFactory']['registerElementLabel']('media',_0x459ba1=>c(_0x558a2b,'ELEMENT_MEDIA',_0x459ba1)),_0x1e0289['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x11ae4c,{writer:_0x5cf21d,options:_0x156c58})=>{if(_0x156c58['showSuggestionHighlights'])return _0x5cf21d['createEmptyElement']('div');},'converterPriority':'high'}),_0x1e0289['data']['downcastDispatcher']['on']('attribute:url:media',(_0x54853b,_0x536366,_0x55ad64)=>{_0x55ad64['options']['showSuggestionHighlights']&&_0x54853b['stop']();},{'priority':'high'});}}class pt extends _0xac175e{['afterInit'](){const _0x476b6d=this['editor'];_0x476b6d['plugins']['has']('MentionEditing')&&_0x476b6d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0xac175e{['afterInit'](){const _0x33073b=this['editor'];if(!_0x33073b['plugins']['has']('MergeFieldsEditing'))return;const _0x23fcfb=_0x33073b['plugins']['get']('TrackChangesEditing'),_0x4d1b00=_0x33073b['locale'];_0x23fcfb['enableCommand']('insertMergeField'),_0x23fcfb['enableCommand']('insertMergeFieldBlock'),_0x23fcfb['enableCommand']('insertMergeFieldImage'),_0x23fcfb['descriptionFactory']['registerElementLabel']('mergeField',_0x1cd9b5=>c(_0x4d1b00,'ELEMENT_MERGE_FIELD',_0x1cd9b5)),_0x23fcfb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4d1cbe=>c(_0x4d1b00,'ELEMENT_MERGE_FIELD',_0x4d1cbe)),_0x23fcfb['descriptionFactory']['registerDescriptionCallback'](_0x346ad9=>{if('insertion'!=_0x346ad9['type']&&'deletion'!=_0x346ad9['type'])return;const _0x3a9e36=_0x346ad9['getContainedElement']();if(null==_0x3a9e36)return;const _0x2974ec=_0x33073b['plugins']['get']('MergeFieldsEditing');let _0x56831d;switch(_0x2974ec['getMergeFieldType'](_0x3a9e36)){case null:return;case'image':{const _0x747664=_0x2974ec['unwrapAffixes'](_0x3a9e36['getAttribute']('src'));_0x56831d=_0x2974ec['getLabel'](_0x747664)||_0x747664;break;}default:{const _0x58dabb=_0x3a9e36['getAttribute']('id');_0x56831d=_0x2974ec['getLabel'](_0x58dabb)||_0x58dabb;break;}}return'insertion'==_0x346ad9['type']?{'type':'insertion','content':c(_0x4d1b00,'*Insert:*\x20%0','\x22'+_0x56831d+'\x22\x20'+c(_0x4d1b00,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x4d1b00,'*Remove:*\x20%0','\x22'+_0x56831d+'\x22\x20'+c(_0x4d1b00,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0xac175e{['afterInit'](){const _0x55a1cb=this['editor'],_0xab0a6c=_0x55a1cb['plugins']['get']('TrackChangesEditing');_0x55a1cb['plugins']['has']('MultiLevelList')&&(_0xab0a6c['enableDefaultAttributesIntegration']('multiLevelList'),_0xab0a6c['registerBlockAttribute']('listMarkerStyle'),_0xab0a6c['descriptionFactory']['registerDescriptionCallback'](_0x2d6a2=>this['handleDescriptions'](_0x2d6a2)));}['handleDescriptions'](_0x320e1e){const _0x2f2aa2=this['editor']['locale'],{data:_0x5e8693}=_0x320e1e,_0x5b05c2={'type':'format','content':''};if(_0x5e8693&&'listMarkerStyle'==_0x5e8693['key']){if(!_0x5e8693['oldValue'])return{'type':'format','content':c(_0x2f2aa2,'*Set\x20format:*\x20%0',c(_0x2f2aa2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e8693['newValue']+')'};if(!_0x5e8693['newValue']){let _0x3c20dc=_0x320e1e['head'];for(;_0x3c20dc;){if(_0x3c20dc['data']&&'listType'==_0x3c20dc['data']['key']&&_0x3c20dc['data']['newValue'])return _0x5b05c2;_0x3c20dc=_0x3c20dc['next'];}return{'type':'format','content':c(_0x2f2aa2,'*Remove\x20format:*\x20%0',c(_0x2f2aa2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e8693['oldValue']+')'};}}}}class bt extends _0xac175e{['afterInit'](){const _0x4e86bb=this['editor'];if(!_0x4e86bb['plugins']['has']('PageBreakEditing'))return;_0x4e86bb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2d386a=_0x4e86bb['plugins']['get']('TrackChangesEditing'),_0xb4ce1a=_0x4e86bb['locale'];_0x2d386a['descriptionFactory']['registerElementLabel']('pageBreak',_0x2cc636=>c(_0xb4ce1a,'ELEMENT_PAGE_BREAK',_0x2cc636));}}class yt extends _0xac175e{['afterInit'](){const _0x456709=this['editor'];if(!_0x456709['plugins']['has']('Paragraph'))return;const _0x260dcc=_0x456709['locale'],_0x212b6f=_0x456709['plugins']['get']('TrackChangesEditing');_0x212b6f['descriptionFactory']['registerElementLabel']('paragraph',_0x33cbf0=>c(_0x260dcc,'ELEMENT_PARAGRAPH',_0x33cbf0)),_0x212b6f['enableDefaultAttributesIntegration']('paragraph'),_0x212b6f['enableCommand']('insertParagraph'),_0x456709['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x456709),{'priority':'highest'}),_0x456709['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ff1f0,_0x5cb414,_0x2404d2)=>{_0x2404d2['options']['showSuggestionHighlights']&&nr(_0x456709,{'showActiveMarker':!0x1})(_0x3ff1f0,_0x5cb414,_0x2404d2);},{'priority':'highest'});const _0x34ee2e=_0x212b6f['descriptionFactory'];_0x34ee2e['registerDescriptionCallback'](_0x16e5d9=>{if('insertion'!==_0x16e5d9['type'])return;const {start:_0x21677a,end:_0xdc0ca7}=_0x16e5d9['getFirstRange']();if(!_0x21677a['isTouching'](_0xdc0ca7)||!_0x21677a['nodeAfter'])return;const _0x5d15e6=_0x456709['model']['schema'],_0x4e7dab=_0x21677a['nodeAfter'];return _0x5d15e6['isBlock'](_0x4e7dab)&&!_0x5d15e6['isLimit'](_0x4e7dab)&&_0x5d15e6['checkChild'](_0x4e7dab,'$text')?{'type':'insertion','content':c(_0x260dcc,'*Insert:*\x20%0',_0x34ee2e['getItemLabel'](_0x4e7dab,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e71cd=this['editor'],_0x1357d6=_0x3e71cd['locale'];_0x3e71cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ba60c=>{if('formatBlock'!=_0x5ba60c['type'])return;const {data:_0x5e7d24}=_0x5ba60c;return _0x5e7d24&&'paragraph'==_0x5e7d24['commandName']?{'type':'format','content':c(_0x1357d6,'*Change\x20to:*\x20%0',c(_0x1357d6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x468b5f,{showActiveMarker:_0x57673a=!0x0}={}){return(_0x42573a,_0x317003,_0x454f93)=>{const _0x565884=_0x468b5f['plugins']['get']('TrackChangesEditing'),_0x3bdbd7=_0x317003['markerRange']['start'],_0x1640af=_0x317003['markerRange']['end'],_0x16640f=_0x468b5f['model']['schema'];if(!_0x3bdbd7['isTouching'](_0x1640af)||!_0x3bdbd7['nodeAfter'])return;const _0x59a8e3=_0x3bdbd7['nodeAfter'];if(_0x16640f['isBlock'](_0x59a8e3)&&!_0x16640f['isLimit'](_0x59a8e3)&&_0x16640f['checkChild'](_0x59a8e3,'$text')){if(!_0x454f93['consumable']['consume'](_0x317003['markerRange'],_0x42573a['name']))return;const {id:_0x21a2e6,authorId:_0x41b56c}=_0x565884['_splitMarkerName'](_0x317003['markerName']),_0x480529=_0x454f93['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x21a2e6,'data-author-id':_0x41b56c}),_0x38d0c5=_0x454f93['mapper']['toViewPosition'](_0x1640af);_0x57673a&&_0x565884['activeMarkers']['includes'](_0x317003['markerName'])&&_0x454f93['writer']['addClass']('ck-suggestion-marker--active',_0x480529),_0x454f93['writer']['insert'](_0x38d0c5,_0x480529),_0x454f93['mapper']['bindElementToMarker'](_0x480529,_0x317003['markerName']);}};}class St extends _0xac175e{['afterInit'](){const _0x410a27=this['editor'];_0x410a27['commands']['get']('replaceSource')&&_0x410a27['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0xac175e{['afterInit'](){const _0x28aadf=this['editor'];if(!_0x28aadf['plugins']['has']('RemoveFormatEditing'))return;_0x28aadf['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16b775=this['editor'];_0x16b775['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbdfccc=>{if('formatBlock'!=_0xbdfccc['type']&&'formatInline'!=_0xbdfccc['type'])return;const {data:_0x2d2cdd}=_0xbdfccc;return _0x2d2cdd&&'removeFormat'==_0x2d2cdd['commandName']?{'type':'format','content':c(_0x16b775['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0xac175e{['afterInit'](){const _0x1053dd=this['editor'];if(!_0x1053dd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4d2fa7=_0x1053dd['plugins']['get']('TrackChangesEditing');_0x4d2fa7['enableCommand']('goToPreviousRestrictedEditingException'),_0x4d2fa7['enableCommand']('goToNextRestrictedEditingException');const _0x25208c=_0x1053dd['plugins']['get']('RestrictedEditingModeEditing');_0x25208c['enableCommand']('trackChanges'),_0x25208c['enableCommand']('acceptSuggestion'),_0x25208c['enableCommand']('discardSuggestion'),_0x25208c['enableCommand']('acceptAllSuggestions'),_0x25208c['enableCommand']('discardAllSuggestions'),_0x25208c['enableCommand']('acceptSelectedSuggestions'),_0x25208c['enableCommand']('discardSelectedSuggestions');}}class At extends _0xac175e{['afterInit'](){const _0x17505d=this['editor'];if(!_0x17505d['plugins']['has']('ShiftEnter'))return;const _0x167125=_0x17505d['plugins']['get']('TrackChangesEditing');_0x167125['enableCommand']('shiftEnter'),_0x17505d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x17505d),{'priority':'high'}),_0x17505d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x17505d),{'priority':'high'}),_0x17505d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d6ad8,_0x7adeb3,_0xa584f8)=>{_0xa584f8['options']['showSuggestionHighlights']&&je(_0x17505d,{'showActiveMarker':!0x1})(_0x2d6ad8,_0x7adeb3,_0xa584f8);}),_0x167125['descriptionFactory']['registerElementLabel']('softBreak',_0x2b0b84=>c(_0x17505d['locale'],'ELEMENT_LINE_BREAK',_0x2b0b84));}}function je(_0x11a435,{showActiveMarker:_0x838e40=!0x0}={}){return(_0x558348,_0x640f71,_0x31ae72)=>{const _0x14b59a=_0x11a435['plugins']['get']('TrackChangesEditing');if(!_0x31ae72['consumable']['test'](_0x640f71['markerRange'],_0x558348['name']))return;const _0x13a6ab=_0x11a435['model'];for(const _0x464de6 of _0x640f71['markerRange']['getItems']()){if(!_0x464de6['is']('element','softBreak'))continue;const _0x54c19d='deletion'==_0x640f71['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xf433f5,authorId:_0x45a642}=_0x14b59a['_splitMarkerName'](_0x640f71['markerName']),_0x240c5a=_0x31ae72['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54c19d,'data-suggestion':_0xf433f5,'data-author-id':_0x45a642}),_0x55f276=_0x31ae72['mapper']['toViewPosition'](_0x13a6ab['createPositionBefore'](_0x464de6));_0x838e40&&_0x14b59a['activeMarkers']['includes'](_0x640f71['markerName'])&&_0x31ae72['writer']['addClass']('ck-suggestion-marker--active',_0x240c5a),_0x31ae72['writer']['insert'](_0x55f276,_0x240c5a),_0x31ae72['mapper']['bindElementToMarker'](_0x240c5a,_0x640f71['markerName']);}};}class _t extends _0xac175e{['afterInit'](){const _0x35356f=this['editor'],_0x44c998=_0x35356f['model'],_0x9aac9c=_0x35356f['locale'];if(!_0x35356f['plugins']['has']('StandardEditingModeEditing'))return;const _0x3c3d91=_0x35356f['plugins']['get']('TrackChangesEditing'),_0x274690='restrictedEditingException',_0x16af4f=_0x35356f['commands']['get'](_0x274690);_0x3c3d91['enableCommand'](_0x274690,(_0x1e9cd6,_0x51e5f6={})=>{const _0x527b60=_0x44c998['document']['selection'];if(_0x527b60['isCollapsed'])return void _0x1e9cd6(_0x51e5f6);const _0x8f76be=void 0x0!==_0x51e5f6['forceValue']?_0x51e5f6['forceValue']:!_0x16af4f['value'];_0x44c998['change'](()=>{const _0x5b7fad=Array['from'](_0x527b60['getRanges']());for(const _0x4a097d of _0x5b7fad){const _0x5e2746=_0x8f76be?[_0x4a097d]:io(_0x274690,_0x4a097d,_0x44c998);for(const _0x4cc2bf of _0x5e2746)_0x3c3d91['markInlineFormat'](_0x4cc2bf,{'commandName':_0x274690,'commandParams':[{'forceValue':_0x8f76be}]});}});}),_0x3c3d91['descriptionFactory']['registerDescriptionCallback'](_0x48c2b6=>{if('formatBlock'!=_0x48c2b6['type']&&'formatInline'!=_0x48c2b6['type'])return;const {data:_0x35c8d6}=_0x48c2b6;return _0x35c8d6&&_0x35c8d6['commandName']==_0x274690?_0x35c8d6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9aac9c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x9aac9c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0xac175e{['afterInit'](){const _0x5f4d54=this['editor'];if(!_0x5f4d54['plugins']['has']('Style')||!_0x5f4d54['plugins']['has']('DataSchema'))return;const _0x17045b=_0x5f4d54['plugins']['get']('TrackChangesEditing'),_0x207160=_0x5f4d54['locale'],_0x8cd90c=_0x5f4d54['config']['get']('style')||{},_0x12975b=_0x5f4d54['plugins']['get']('GeneralHtmlSupport'),_0x5e6e0=_0x5f4d54['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5f4d54['plugins']['get']('DataSchema'),_0x8cd90c['definitions']);_0x17045b['enableDefaultAttributesIntegration']('style');const _0x3296ec=new Set();for(const _0x3d23e1 of _0x5e6e0['block']){const _0x8242c9=_0x12975b['getGhsAttributeNameForElement'](_0x3d23e1['element']);_0x3296ec['add'](_0x8242c9);}const _0x4735a2=new Set();for(const _0x954c96 of _0x5e6e0['inline']){const _0x58d3a8=_0x12975b['getGhsAttributeNameForElement'](_0x954c96['element']);_0x4735a2['add'](_0x58d3a8);for(const _0x1d0163 of _0x954c96['ghsAttributes'])_0x4735a2['add'](_0x1d0163);}for(const _0x3d366b of _0x3296ec)_0x17045b['registerBlockAttribute'](_0x3d366b),_0x17045b['descriptionFactory']['registerAttributeLabel'](_0x3d366b,c(_0x207160,'FORMAT_STYLE'));for(const _0xd92196 of _0x4735a2)_0x17045b['registerInlineAttribute'](_0xd92196),_0x17045b['descriptionFactory']['registerAttributeLabel'](_0xd92196,c(_0x207160,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dc2b5=this['editor'],_0x1ff2e4=_0x3dc2b5['locale'];_0x3dc2b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53b4fd=>{if('formatBlock'!=_0x53b4fd['type']&&'formatInline'!=_0x53b4fd['type'])return;const {data:_0x426884}=_0x53b4fd;return _0x426884&&'style'===_0x426884['commandName']?_0x426884['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ff2e4,'*Set\x20format:*\x20%0',_0x426884['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x1ff2e4,'*Remove\x20format:*\x20%0',_0x426884['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xac175e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x470325){super(_0x470325),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x6a613d=this['editor'],_0x4c3351=_0x6a613d['model']['document']['selection'];if(!_0x6a613d['plugins']['has']('TableEditing'))return;const _0xdcdd4e=_0x6a613d['locale'],_0x618723=_0x6a613d['plugins']['get']('TrackChangesEditing'),_0x46c45c=_0x6a613d['plugins']['get']('TableUtils');_0x618723['descriptionFactory']['registerElementLabel']('table',_0x416bfd=>c(_0xdcdd4e,'ELEMENT_TABLE',_0x416bfd)),this['_setupColumnsRowsFixing'](),_0x618723['enableCommand']('insertTable'),_0x618723['enableCommand']('selectTableRow'),_0x618723['enableCommand']('selectTableColumn');for(const _0x5c7030 of['insertTableRowAbove','insertTableRowBelow']){const _0x4e55f5=_0x6a613d['commands']['get'](_0x5c7030);_0x618723['enableCommand'](_0x5c7030,_0x43cee8=>{_0x6a613d['model']['change'](_0xd5df8a=>{_0x43cee8();const _0x2ead6d='above'===_0x4e55f5['order'],_0x3b989a=_0x46c45c['getSelectionAffectedTableCells'](_0x4c3351),_0x584911=_0x46c45c['getRowIndexes'](_0x3b989a),_0x1410bb=_0x2ead6d?_0x584911['first']-0x1:_0x584911['last']+0x1,_0x5d1572=_0x3b989a[0x0]['findAncestor']('table'),_0x5a37dd=_0x46c45c['createTableWalker'](_0x5d1572,{'startRow':_0x1410bb,'endRow':_0x1410bb}),_0x5508b6=Array['from'](_0x5a37dd)['map'](_0x5395ba=>_0xd5df8a['createRangeOn'](_0x5395ba['cell']));_0x618723['markMultiRangeInsertion'](_0x5508b6,'tableRow');});});}for(const _0x59daba of['insertTableColumnLeft','insertTableColumnRight']){const _0x466fce=_0x6a613d['commands']['get'](_0x59daba);_0x618723['enableCommand'](_0x59daba,_0x51a58d=>{_0x6a613d['model']['change'](_0x54d836=>{_0x51a58d();const _0x3133f2='left'===_0x466fce['order'],_0x48eedb=_0x46c45c['getSelectionAffectedTableCells'](_0x4c3351),_0x5a78df=_0x46c45c['getColumnIndexes'](_0x48eedb),_0x33f90d=_0x3133f2?_0x5a78df['first']-0x1:_0x5a78df['last']+0x1,_0x3d622f=_0x48eedb[0x0]['findAncestor']('table'),_0x580522=_0x46c45c['createTableWalker'](_0x3d622f,{'startRow':0x0,'column':_0x33f90d,'includeAllSlots':!0x1}),_0x475113=Array['from'](_0x580522)['map'](_0x20b792=>_0x54d836['createRangeOn'](_0x20b792['cell']));_0x618723['markMultiRangeInsertion'](_0x475113,'tableColumn');});});}for(const _0x1e14e1 of['removeTableRow','removeTableColumn']){const _0x15ac17=_0x1e14e1['substr'](0xb),_0xae798e=_0x15ac17['toLowerCase'](),_0x3ab86a=_0xae798e['substr'](0x0,0x3)+'span',_0x298c35='table'+_0x15ac17,_0x3d7c13='min'+_0x15ac17,_0xbedd6f='max'+_0x15ac17;_0x618723['enableCommand'](_0x1e14e1,()=>{_0x6a613d['model']['change'](_0x530a5f=>{const _0x63c050=_0x46c45c['getSelectionAffectedTableCells'](_0x4c3351),_0x262648=_0x63c050[0x0]['findAncestor']('table');let _0x54c886;if('removeTableRow'==_0x1e14e1){const _0x531564=_0x46c45c['getRowIndexes'](_0x63c050);_0x54c886={'startRow':_0x531564['first'],'endRow':_0x531564['last'],'includeAllSlots':!0x0};}else{const _0x90364a=_0x46c45c['getColumnIndexes'](_0x63c050);_0x54c886={'startColumn':_0x90364a['first'],'endColumn':_0x90364a['last'],'includeAllSlots':!0x0};}const _0x3cbd0b=_0x46c45c['createTableWalker'](_0x262648,_0x54c886),_0x1b2507=Array['from'](_0x3cbd0b)['map'](({cell:_0x245e90})=>_0x245e90),_0x58c138=xe(_0x1b2507['filter'](_0x1c7752=>_0x1c7752['hasAttribute'](_0x3ab86a))),_0x814b8=xe(_0x1b2507['filter'](_0x235116=>!_0x235116['hasAttribute'](_0x3ab86a)))['map'](_0x2dac65=>_0x530a5f['createRangeOn'](_0x2dac65)),_0x38e056=_0x618723['markMultiRangeDeletion'](_0x814b8,_0x298c35);if(_0x38e056&&('tableRow'==_0x38e056['subType']||'tableColumn'==_0x38e056['subType'])){const _0x59a62b=this['_getSuggestionCoords'](_0x38e056);for(const _0x30f40e of _0x58c138){const _0x75db97=_0x530a5f['createRangeOn'](_0x30f40e),_0x912f43=_0x46c45c['getCellLocation'](_0x30f40e),_0x20f1a6=_0x30f40e['getAttribute'](_0x3ab86a)-0x1,_0x36589a=_0x59a62b[_0x3d7c13],_0x267341=_0x59a62b[_0xbedd6f];_0x36589a<=_0x912f43[_0xae798e]&&_0x912f43[_0xae798e]+_0x20f1a6<=_0x267341&&_0x38e056['addRange'](_0x75db97);}}});});}function _0x4cf274(_0x43941e){const _0x34e2ba=Array['from'](_0x4c3351['getRanges']())['map'](_0x50bf63=>_0x5b3987['fromRange'](_0x50bf63));_0x6a613d['model']['change'](_0x1813b3=>{const _0x1d9e0e=_0x1813b3['batch'];_0x43941e=_0x43941e['filter'](_0x23beeb=>'$graveyard'!=_0x23beeb['root']['rootName']),_0x1813b3['setSelection'](_0x43941e),_0x6a613d['commands']['get']('removeTableRow')['refresh'](),_0x6a613d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x6a613d['model']['enqueueChange'](()=>{_0x6a613d['model']['enqueueChange'](_0x1d9e0e,_0x1dc922=>{const _0x43bc16=_0x34e2ba['filter'](_0x29f569=>'$graveyard'!=_0x29f569['root']['rootName']);_0x43bc16['length']>0x0&&_0x1dc922['setSelection'](_0x43bc16);for(const _0xcbb07d of _0x34e2ba)_0xcbb07d['detach']();});});});}function _0xd40753(_0x20100d){_0x6a613d['model']['change'](_0x27760f=>{const _0x3eb11a=Array['from'](_0x4c3351['getRanges']())['map'](_0x691b7d=>_0x5b3987['fromRange'](_0x691b7d)),_0x526cab=[];for(const _0x9d49f4 of _0x20100d)for(const _0x111dc5 of _0x9d49f4['getItems']({'shallow':!0x0}))_0x526cab['push'](_0x111dc5);for(const _0x206d12 of _0x526cab)'$graveyard'!=_0x206d12['root']['rootName']&&(_0x27760f['setSelection'](_0x27760f['createPositionAt'](_0x206d12,0x0)),_0x6a613d['commands']['get']('removeTableColumn')['refresh'](),_0x6a613d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6932b6=_0x3eb11a['filter'](_0x41583f=>'$graveyard'!=_0x41583f['root']['rootName']);_0x6932b6['length']>0x0&&_0x27760f['setSelection'](_0x6932b6);for(const _0x5e79d2 of _0x3eb11a)_0x5e79d2['detach']();});}function _0x14385c(_0xc7509,_0x38ef29){return _0x38ef29['every'](_0x482eec=>_0xc7509['some'](_0x23ff68=>_0x23ff68['end']['isEqual'](_0x482eec['start'])||_0x482eec['end']['isEqual'](_0x23ff68['start'])));}function _0x3d8153(_0x3de37c,_0x543356){return!_0x3de37c['some'](_0x1d889c=>_0x543356['some'](_0x4f66e2=>_0x1d889c['isIntersecting'](_0x4f66e2)))&&_0x3de37c['some'](_0x44326a=>_0x543356['some'](_0x43a781=>_0x44326a['end']['isTouching'](_0x43a781['start'])));}_0x6a613d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x841424,_0x44e667,_0x3c0eff)=>{if(!_0x3c0eff['options']['showSuggestionHighlights'])return;const _0x2d7d83=_0x44e667['item'];if(!_0x2d7d83||!_0x2d7d83['is']('element','tableCell'))return;const _0x3f1d29=_0x3c0eff['mapper']['toViewElement'](_0x2d7d83);if(_0x3f1d29){const {id:_0x5315e8,authorId:_0x42a573}=_0x618723['_splitMarkerName'](_0x44e667['markerName']);_0x3f08c7(_0x3f1d29,_0x3c0eff['writer'],(_0x229e8a,_0x45f3d8,_0x526269)=>{_0x526269['addClass'](_0x1e8e77(_0x45f3d8['classes']),_0x229e8a),_0x526269['setAttribute']('data-suggestion-id',_0x5315e8,_0x229e8a),_0x526269['setAttribute']('data-author-id',_0x42a573,_0x229e8a);},(_0x34c43b,_0x7256c0,_0x26101e)=>{_0x26101e['removeClass'](_0x1e8e77(_0x7256c0['classes']),_0x34c43b),_0x26101e['removeAttribute']('data-suggestion-id',_0x34c43b),_0x26101e['removeAttribute']('data-author-id',_0x34c43b);});}},{'priority':'highest'}),_0x618723['descriptionFactory']['registerDescriptionCallback'](_0x53e2e5=>{if('insertion'!=_0x53e2e5['type']&&'deletion'!=_0x53e2e5['type'])return;const _0xb80a4=_0x53e2e5['getContainedElement']();if(null!=_0xb80a4&&_0xb80a4['is']('element','table')){if('insertion'==_0x53e2e5['type']){const _0x36a6fb=_0x53e2e5['getItems']()['filter'](_0x5dba4f=>_0x5dba4f['is']('$textProxy'))['map'](_0x11d1a7=>_0x11d1a7['data']);if(_0x36a6fb['length'])return{'type':'insertion','content':c(_0xdcdd4e,'*Insert:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36a6fb['join']('\x20')+'\x22'))};}if('deletion'==_0x53e2e5['type']){const _0x3e0780=_0x53e2e5['getItems']()['filter'](_0x5c1253=>_0x5c1253['is']('$textProxy'))['map'](_0x56f60=>_0x56f60['data']);if(_0x3e0780['length'])return{'type':'deletion','content':c(_0xdcdd4e,'*Remove:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e0780['join']('\x20')+'\x22'))};}}}),_0x618723['descriptionFactory']['registerDescriptionCallback'](_0x3e62ff=>{if('tableRow'==_0x3e62ff['subType']){const _0x2f3458=_0x3e62ff['getItems']()['filter'](_0x390c43=>_0x390c43['is']('$textProxy'))['map'](_0x1c6555=>_0x1c6555['data']),_0x7e3adb=this['_getSuggestionCoords'](_0x3e62ff),_0x17a7c3=_0x7e3adb['maxRow']-_0x7e3adb['minRow']+0x1;if('insertion'==_0x3e62ff['type'])return _0x2f3458['length']?{'type':'insertion','content':c(_0xdcdd4e,'*Insert:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17a7c3,'\x22'+_0x2f3458['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xdcdd4e,'*Insert:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_ROW',_0x17a7c3))};if('deletion'==_0x3e62ff['type'])return _0x2f3458['length']?{'type':'deletion','content':c(_0xdcdd4e,'*Remove:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17a7c3,'\x22'+_0x2f3458['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xdcdd4e,'*Remove:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_ROW',_0x17a7c3))};}if('tableColumn'==_0x3e62ff['subType']){const _0x41a182=_0x3e62ff['getItems']()['filter'](_0x31df0e=>_0x31df0e['is']('$textProxy'))['map'](_0x3cc4cb=>_0x3cc4cb['data']),_0x46d708=this['_getSuggestionCoords'](_0x3e62ff),_0x54553a=_0x46d708['maxColumn']-_0x46d708['minColumn']+0x1;if('insertion'==_0x3e62ff['type'])return _0x41a182['length']?{'type':'insertion','content':c(_0xdcdd4e,'*Insert:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54553a,'\x22'+_0x41a182['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xdcdd4e,'*Insert:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_COLUMN',_0x54553a))};if('deletion'==_0x3e62ff['type'])return _0x41a182['length']?{'type':'deletion','content':c(_0xdcdd4e,'*Remove:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54553a,'\x22'+_0x41a182['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xdcdd4e,'*Remove:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_COLUMN',_0x54553a))};}}),_0x618723['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4cf274),_0x618723['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4cf274),_0x618723['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xd40753),_0x618723['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xd40753),_0x618723['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x14385c),_0x618723['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x14385c),_0x618723['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3d8153),_0x618723['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3d8153);}['_acceptFormatSuggestionCallbackFactory'](){const _0x125bbe=this['editor'],_0x2f9f31=_0x125bbe['model']['document']['selection'];return(_0x2bb111,_0x12b032)=>{_0x125bbe['model']['change'](_0x2583d9=>{const {commandName:_0x44780d,commandParams:_0x46f8e4}=_0x12b032;let _0x4b819f=_0x2bb111[0x0]['end']['nodeBefore'];_0x46f8e4&&_0x46f8e4[0x0]&&!0x1===_0x46f8e4[0x0]['forceValue']&&(_0x4b819f=_0x2bb111[0x0]['start']['nodeAfter']);const _0x5f1f24=_0x2583d9['createRangeIn'](_0x4b819f);if('$graveyard'==_0x5f1f24['root']['rootName'])return;const _0x434146=Array['from'](_0x2f9f31['getRanges']())['map'](_0x5161f7=>_0x5b3987['fromRange'](_0x5161f7));_0x2583d9['setSelection'](_0x5f1f24),_0x125bbe['commands']['get'](_0x44780d)['refresh'](),_0x46f8e4['push']({'forceDefaultExecution':!0x0}),_0x125bbe['execute'](_0x44780d,..._0x46f8e4);const _0x349d78=_0x434146['filter'](_0x24e5d4=>'$graveyard'!=_0x24e5d4['root']['rootName']);_0x349d78['length']>0x0&&_0x2583d9['setSelection'](_0x349d78);for(const _0x436ee8 of _0x434146)_0x436ee8['detach']();});};}['_getCoordsForCells'](_0x4cf0a5){const _0x4e764e=this['editor']['plugins']['get']('TableUtils');let _0x2423f7=Number['MAX_SAFE_INTEGER'],_0x1d9ce4=Number['MIN_SAFE_INTEGER'],_0x991a0e=Number['MAX_SAFE_INTEGER'],_0x13a0ca=Number['MIN_SAFE_INTEGER'];for(const _0x58935d of _0x4cf0a5){if('$graveyard'==_0x58935d['root']['rootName'])continue;const {row:_0x3c5264,column:_0x1b2edf}=_0x4e764e['getCellLocation'](_0x58935d),_0x9b4acf=_0x58935d['hasAttribute']('rowspan')?_0x58935d['getAttribute']('rowspan')-0x1:0x0,_0x4ebcd5=_0x58935d['hasAttribute']('colspan')?_0x58935d['getAttribute']('colspan')-0x1:0x0;_0x2423f7=_0x3c5264<_0x2423f7?_0x3c5264:_0x2423f7,_0x1d9ce4=_0x3c5264+_0x9b4acf>_0x1d9ce4?_0x3c5264+_0x9b4acf:_0x1d9ce4,_0x991a0e=_0x1b2edf<_0x991a0e?_0x1b2edf:_0x991a0e,_0x13a0ca=_0x1b2edf+_0x4ebcd5>_0x13a0ca?_0x1b2edf+_0x4ebcd5:_0x13a0ca;}return{'minRow':_0x2423f7,'maxRow':_0x1d9ce4,'minColumn':_0x991a0e,'maxColumn':_0x13a0ca};}['_setupColumnsRowsFixing'](){const _0x281a89=this['editor'],_0x156fb9=_0x281a89['plugins']['get']('TrackChangesEditing'),_0x384c6c=_0x281a89['plugins']['get']('TableUtils');_0x281a89['model']['document']['on']('change:data',()=>{const _0x54c58f=Array['from'](_0x281a89['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x151c81,data:_0x2dd2ce}of _0x54c58f){const {group:_0x3a8b6f,id:_0x1a83cb,subType:_0x422bba}=_0x156fb9['_splitMarkerName'](_0x151c81);if('suggestion'!=_0x3a8b6f)continue;if(null!=_0x2dd2ce['oldRange'])continue;const _0x10d10b=_0x156fb9['getSuggestion'](_0x1a83cb);this['_tablePostFixingSubtypes']['includes'](_0x422bba)&&this['_tableSuggestions']['add'](_0x10d10b);}},{'priority':'low'});const _0x3eb5b6=(_0xa29f19,_0x2ab554)=>{let _0x38db29=!0x1;const _0x3aedda=_0x2ab554['createRangeOn'](_0xa29f19),_0x4f16d9=_0xa29f19['findAncestor']('table'),_0x2b9e8f=_0x384c6c['getCellLocation'](_0xa29f19);for(const _0x109b66 of this['_tableSuggestions']){const _0x4fe651=_0x109b66['subType'],_0x454d05=_0x4fe651['startsWith']('tablePaste'),_0x182797=_0x4fe651['substr'](_0x454d05?0xa:0x5),_0x2e8499=_0x182797['toLowerCase'](),_0x1fd7c0=_0x2e8499['substr'](0x0,0x3)+'span',_0x2d3607='min'+_0x182797,_0x583529='max'+_0x182797;if(!_0x109b66['isInContent'])continue;if(_0x4f16d9!=_0x109b66['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x109b66['isIntersectingWithRange'](_0x3aedda))continue;const _0x1ae91c=_0xa29f19['hasAttribute'](_0x1fd7c0)?_0xa29f19['getAttribute'](_0x1fd7c0)-0x1:0x0,_0x441066=this['_getSuggestionCoords'](_0x109b66),_0x588d9f=_0x441066[_0x2d3607],_0x2f6d44=_0x441066[_0x583529];_0x588d9f<=_0x2b9e8f[_0x2e8499]&&_0x2b9e8f[_0x2e8499]+_0x1ae91c<=_0x2f6d44&&(_0x109b66['addRange'](_0x3aedda),_0x38db29=!0x0);}return _0x38db29;};_0x281a89['model']['document']['registerPostFixer'](_0x502390=>{let _0x587d1c=!0x1;for(const _0x13a0f1 of _0x281a89['model']['document']['differ']['getChanges']())if('insert'==_0x13a0f1['type']){if('tableRow'==_0x13a0f1['name']){for(const _0x56d92a of _0x13a0f1['position']['nodeAfter']['getChildren']())_0x587d1c=_0x587d1c||_0x3eb5b6(_0x56d92a,_0x502390);}else'tableCell'==_0x13a0f1['name']&&(_0x587d1c=_0x587d1c||_0x3eb5b6(_0x13a0f1['position']['nodeAfter'],_0x502390));}return _0x587d1c;});}['_getSuggestionCoords'](_0x359537){return this['_getCoordsForCells'](_0x359537['getRanges']()['map'](_0xc3c16=>_0xc3c16['start']['nodeAfter']));}}function xe(_0x2c8ec7){return Array['from'](new Set(_0x2c8ec7)['values']());}class Nt extends _0xac175e{static get['requires'](){return[Ct];}['afterInit'](){const _0x280790=this['editor'],_0x3ea082=_0x280790['model']['document']['selection'],_0x3033f2=_0x280790['locale'];if(!_0x280790['plugins']['has']('TableEditing'))return;const _0x596c35=_0x280790['plugins']['get']('TrackChangesEditing'),_0xd6c62f=_0x280790['plugins']['get']('TableUtils'),_0x433ce0=_0x280790['plugins']['get'](Ct);_0x433ce0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x596c35['enableCommand']('mergeTableCells',()=>{const _0x261046=_0xd6c62f['getSelectionAffectedTableCells'](_0x280790['model']['document']['selection']);_0x280790['model']['change'](()=>{_0x596c35['markMultiRangeBlockFormat'](_0x261046,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x280790['commands']['get']('mergeTableCells')['on']('execute',(_0x109b86,_0x21c5d4)=>{_0x280790['commands']['get']('trackChanges')['value']&&(_0x21c5d4['length']>0x0&&_0x21c5d4[_0x21c5d4['length']-0x1]&&_0x21c5d4[_0x21c5d4['length']-0x1]['forceDefaultExecution']||_0x596c35['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x109b86['stop']());},{'priority':'highest'});for(const _0xe4b76e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5ed0ea=_0x280790['commands']['get'](_0xe4b76e);_0x596c35['enableCommand'](_0xe4b76e,()=>{const _0x33b2e0=_0x280790['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45c240=>_0x45c240['is']('element','tableCell')),_0x1d5153=_0x5ed0ea['value'];_0x280790['model']['change'](()=>{_0x596c35['markMultiRangeBlockFormat']([_0x33b2e0,_0x1d5153],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x529375 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4a34c2=_0x280790['commands']['get'](_0x529375);_0x596c35['enableCommand'](_0x529375,()=>{const _0x58b863=_0xd6c62f['getSelectionAffectedTableCells'](_0x280790['model']['document']['selection'])[0x0],_0x9b2b41=_0x58b863['findAncestor']('table'),{column:_0x4439cd,row:_0x459635}=_0xd6c62f['getCellLocation'](_0x58b863);let _0x53567d=[];if('horizontally'==_0x4a34c2['direction']){const _0x1c8d75=_0xd6c62f['createTableWalker'](_0x9b2b41,{'startRow':_0x459635,'endRow':_0x459635,'includeAllSlots':!0x0});_0x53567d=Array['from'](_0x1c8d75)['map'](_0x3bc2e1=>_0x3bc2e1['cell']);}else{const _0x5c6755=_0xd6c62f['createTableWalker'](_0x9b2b41,{'column':_0x4439cd,'includeAllSlots':!0x0});_0x53567d=Array['from'](_0x5c6755)['map'](_0x111e5e=>_0x111e5e['cell']);}_0x280790['model']['change'](_0x596089=>{_0x596c35['markBlockFormat'](_0x596089['createRangeOn'](_0x58b863),{'commandName':_0x529375,'commandParams':[]},_0x53567d,_0x529375);});});}_0x596c35['descriptionFactory']['registerDescriptionCallback'](_0x1b8992=>{if('formatBlock'!=_0x1b8992['type']&&'formatInline'!=_0x1b8992['type'])return;const {data:_0x165343}=_0x1b8992;return _0x165343&&'mergeTableCells'==_0x165343['commandName']?{'type':'format','content':c(_0x3033f2,'*Merge\x20cells*')}:void 0x0;}),_0x596c35['descriptionFactory']['registerDescriptionCallback'](_0x79a34d=>{if('formatBlock'!=_0x79a34d['type']&&'formatInline'!=_0x79a34d['type'])return;const {data:_0x225672}=_0x79a34d;return _0x225672?'splitTableCellVertically'==_0x225672['commandName']?{'type':'format','content':c(_0x3033f2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x225672['commandName']?{'type':'format','content':c(_0x3033f2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1530b6=_0x433ce0['_acceptFormatSuggestionCallbackFactory']();for(const _0x4a6b84 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x596c35['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a6b84,'accept',_0x1530b6);for(const _0x4e731d of['splitTableCellVertically','splitTableCellHorizontally'])_0x596c35['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e731d,'accept',_0x1530b6);_0x596c35['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3fad06=>{_0x280790['model']['change'](_0x341cd7=>{const _0x2a7534=Array['from'](_0x3ea082['getRanges']())['map'](_0x2be90d=>_0x5b3987['fromRange'](_0x2be90d));_0x341cd7['setSelection'](_0x3fad06),_0x280790['commands']['get']('mergeTableCells')['refresh'](),_0x280790['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4f7b87=_0x2a7534['filter'](_0x4b2d6a=>'$graveyard'!=_0x4b2d6a['root']['rootName']);_0x4f7b87['length']>0x0&&_0x341cd7['setSelection'](_0x4f7b87);for(const _0x349d9f of _0x2a7534)_0x349d9f['detach']();});});for(const _0x110460 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x632acb=_0x280790['commands']['get'](_0x110460);_0x632acb['on']('set:isEnabled',(_0x13febc,_0xa99e4e,_0x5aff62)=>{if(_0x5aff62){const _0x1cf8b2=_0x280790['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x281b9d=>_0x281b9d['is']('element','tableCell'));this['_areMergableCells'](_0x632acb['value'],_0x1cf8b2)||(_0x13febc['return']=!0x1,_0x13febc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x37a580=this['editor']['commands']['get']('mergeTableCells'),_0x4932db=this['editor']['plugins']['get']('TableUtils');if(!_0x37a580['isEnabled'])return!0x1;const _0x5b5d9a=_0x4932db['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x28a8f1 of _0x5b5d9a)for(const _0x4d1827 of _0x5b5d9a)if(_0x28a8f1!=_0x4d1827&&!this['_areMergableCells'](_0x28a8f1,_0x4d1827))return!0x1;return!0x0;}['_areMergableCells'](_0x5d12ad,_0x3d4e15){const _0x17ed44=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa8f566=this['editor']['model']['createRangeOn'](_0x5d12ad),_0x517b96=this['editor']['model']['createRangeOn'](_0x3d4e15),_0x21cc3b=new Set(),_0x545a2c=new Set();for(const _0xb8aa02 of _0x17ed44['getSuggestions']())if(('insertion'==_0xb8aa02['type']||'deletion'==_0xb8aa02['type']||'mergeTableCells'==_0xb8aa02['subType'])&&_0xb8aa02['isInContent']){for(const _0x572bff of _0xb8aa02['getRanges']())_0x572bff['containsRange'](_0xa8f566,!0x0)&&_0x21cc3b['add'](_0xb8aa02['type']+':'+_0xb8aa02['author']['id']),_0x572bff['containsRange'](_0x517b96,!0x0)&&_0x545a2c['add'](_0xb8aa02['type']+':'+_0xb8aa02['author']['id']);}if(_0x21cc3b['size']!=_0x545a2c['size'])return!0x1;for(const _0x23660d of _0x21cc3b)if(!_0x545a2c['has'](_0x23660d))return!0x1;return!0x0;}}class Dt extends _0xac175e{static get['requires'](){return[Ct];}['afterInit'](){const _0x2756d9=this['editor'];if(!_0x2756d9['plugins']['has']('TableEditing'))return;const _0x54d8df=_0x2756d9['locale'],_0x43cfe8=_0x2756d9['plugins']['get']('TrackChangesEditing');_0x43cfe8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x43cfe8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x43cfe8['registerBlockAttribute']('headingRows'),_0x43cfe8['registerBlockAttribute']('headingColumns'),_0x43cfe8['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x54d8df,'FORMAT_HEADER_ROW')),_0x43cfe8['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x54d8df,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4646ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x478f8d=this['editor']['plugins']['get']('TableUtils'),_0x2966f5=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x372ab0({showActiveMarker:_0x2b2b4c=!0x0,setDataAttribute:_0x5509c9=!0x0}={}){return(_0x371804,_0x392a40,_0x34c520)=>{const {type:_0x4c28b3,id:_0x5076f9}=_0x4646ed['_splitMarkerName'](_0x392a40['markerName']),_0x3f9bc6=_0x4646ed['getSuggestion'](_0x5076f9),_0xc8d98d=_0x3f9bc6['data'];if('formatBlock'!=_0x3f9bc6['type']||!_0xc8d98d||'setTableColumnHeader'!=_0xc8d98d['commandName'])return;if(_0x392a40['item'])return void _0x371804['stop']();if(!_0x34c520['consumable']['consume'](_0x392a40['markerRange'],_0x371804['name']))return;const _0x3f583e=_0x392a40['markerRange']['start']['nodeAfter'],_0xfe6347=_0x392a40['markerRange']['end']['nodeBefore'],_0x4ad3fd=_0x3f583e['parent']['parent'],{column:_0x81cbe4}=_0x478f8d['getCellLocation'](_0x3f583e),{column:_0x51d56b}=_0x478f8d['getCellLocation'](_0xfe6347);for(let _0x5ae294=_0x81cbe4;_0x5ae294<=_0x51d56b;_0x5ae294++){const _0x20f478=_0x478f8d['createTableWalker'](_0x4ad3fd,{'column':_0x5ae294,'includeAllSlots':!0x1});for(const _0x95baaf of _0x20f478){const _0x2a1348=_0x95baaf['cell'],_0x4e4f27=_0x34c520['mapper']['toViewElement'](_0x2a1348);_0x34c520['writer']['addClass']('ck-suggestion-marker-'+_0x4c28b3,_0x4e4f27),_0x5509c9&&_0x34c520['writer']['setAttribute']('data-suggestion',_0x5076f9,_0x4e4f27),_0x34c520['mapper']['bindElementToMarker'](_0x4e4f27,_0x392a40['markerName']),_0x2b2b4c&&(_0x4646ed['activeMarkers']['includes'](_0x392a40['markerName'])?_0x34c520['writer']['addClass']('ck-suggestion-marker--active',_0x4e4f27):_0x34c520['writer']['removeClass']('ck-suggestion-marker--active',_0x4e4f27));}}};}_0x4646ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2966f5),_0x4646ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2966f5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x372ab0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9f3862,_0x34a15a,_0x50c166)=>{_0x50c166['options']['showSuggestionHighlights']&&_0x372ab0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x9f3862,_0x34a15a,_0x50c166);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x396c65,_0x4626aa,_0x2e2aae)=>{const {type:_0x1f51c6,id:_0x2c87b1}=_0x4646ed['_splitMarkerName'](_0x4626aa['markerName']),_0x4d6b61=_0x4646ed['getSuggestion'](_0x2c87b1),_0x15557d=_0x4d6b61['data'];if('formatBlock'!=_0x4d6b61['type']||!_0x15557d||'setTableColumnHeader'!=_0x15557d['commandName'])return;const _0x27195a=_0x2e2aae['mapper']['markerNameToElements'](_0x4626aa['markerName']);if(_0x27195a){for(const _0x4cf0f9 of _0x27195a)_0x2e2aae['writer']['removeClass']('ck-suggestion-marker-'+_0x1f51c6,_0x4cf0f9),_0x2e2aae['writer']['removeClass']('ck-suggestion-marker--active',_0x4cf0f9),_0x2e2aae['writer']['removeAttribute']('data-suggestion',_0x4cf0f9),_0x2e2aae['mapper']['unbindElementFromMarkerName'](_0x4cf0f9,_0x4626aa['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25e5e6=this['editor'],_0x5557a6=_0x25e5e6['locale'];function _0x47b182(_0x1a5913){return{'type':'format','content':c(_0x5557a6,'*Format:*\x20%0',_0x1a5913)};}_0x25e5e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39c335=>{if('formatBlock'!=_0x39c335['type'])return;const {data:_0x518770}=_0x39c335;if(_0x518770){if('setTableRowHeader'==_0x518770['commandName']){const _0x310f65=_0x518770['commandParams'][0x0]['forceValue'];return _0x47b182(c(_0x5557a6,_0x310f65?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x518770['commandName']){const _0x253699=_0x518770['commandParams'][0x0]['forceValue'];return _0x47b182(c(_0x5557a6,_0x253699?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0xac175e{['afterInit'](){const _0x446ea8=this['editor'],_0x5147a1=_0x446ea8['locale'],_0x394a91=_0x446ea8['plugins']['get']('TrackChangesEditing');function _0x154df6(_0x314c2c){return{'type':'format','content':''+c(_0x5147a1,'*Set\x20table\x20type:*\x20%0',_0x314c2c)};}_0x446ea8['plugins']['has']('TableLayout')&&(_0x394a91['enableCommand']('insertTableLayout'),_0x394a91['enableDefaultAttributesIntegration']('tableType'),_0x394a91['registerBlockAttribute']('tableType'),_0x394a91['descriptionFactory']['registerElementLabel'](_0x4f13a1=>_0x4f13a1['is']('element','table')&&'layout'===_0x4f13a1['getAttribute']('tableType'),_0x48c025=>c(_0x5147a1,'ELEMENT_LAYOUT_TABLE',_0x48c025)),_0x394a91['descriptionFactory']['registerDescriptionCallback'](_0x29cfd3=>{const {data:_0x4cd2c9}=_0x29cfd3;if(_0x4cd2c9&&'tableType'==_0x4cd2c9['key'])switch(_0x4cd2c9['newValue']){case'layout':return _0x154df6(c(_0x5147a1,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x154df6(c(_0x5147a1,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x467c31=>[_0x467c31,null]));class $t extends _0xac175e{static get['requires'](){return[Ct];}['afterInit'](){const _0x4e1665=this['editor'];if(!_0x4e1665['plugins']['has']('TableClipboard'))return;const _0x2645ac=_0x4e1665['plugins']['get']('TrackChangesEditing'),_0x5b23ca=_0x4e1665['plugins']['get']('TableUtils'),_0x444edb=_0x4e1665['plugins']['get'](Ct),_0x11895c=_0x4e1665['plugins']['get']('TableClipboard'),_0x477d11=_0x4e1665['plugins']['get']('TableSelection'),_0x5e07c6=_0x4e1665['plugins']['get'](_0x429f1d);_0x444edb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4e1665['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4e1665['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xf30dd6=null,_0x5ea37d=!0x1;_0x5e07c6['on']('contentInsertion',(_0x305fc7,_0x5907d6)=>{_0x5ea37d='paste'===_0x5907d6['method'];}),_0x4e1665['model']['on']('insertContent',(_0x3e3771,_0x53ce32)=>{if(!_0x5ea37d&&null===_0x477d11['getSelectedTableCells']())return;const [_0x54024a,_0x42bc21]=_0x53ce32,_0x5a40a9=_0x53ce32[_0x53ce32['length']-0x1];_0x5a40a9&&_0x5a40a9['forceDefaultExecution']||_0x2645ac['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x519904,_0x234abe,_0x191508,_0x2b5567,_0x2a9f74){if(_0x234abe&&!_0x234abe['is']('documentSelection'))return!0x1;const _0x4d1178=_0x2a9f74['getTableIfOnlyTableInContent'](_0x519904,_0x191508);if(!_0x4d1178||!He(_0x4d1178,void 0x0,_0x2b5567))return!0x1;const _0x3763ee=_0x2b5567['getSelectionAffectedTableCells'](_0x191508['document']['selection']);if(!_0x3763ee['length'])return!0x1;const _0x26fc05=_0x3763ee[0x0]['findAncestor']('table'),_0x5c4feb=_0x2b5567['getRowIndexes'](_0x3763ee),_0x13a639=_0x2b5567['getColumnIndexes'](_0x3763ee),_0x214b25={'startRow':_0x5c4feb['first'],'endRow':_0x5c4feb['last'],'startColumn':_0x13a639['first'],'endColumn':_0x13a639['last']};return 0x1==_0x3763ee['length']&&(_0x214b25['endRow']+=_0x2b5567['getRows'](_0x4d1178)-0x1,_0x214b25['endColumn']+=_0x2b5567['getColumns'](_0x4d1178)-0x1),He(_0x26fc05,_0x214b25,_0x2b5567);}(_0x54024a,_0x42bc21,_0x4e1665['model'],_0x5b23ca,_0x11895c)&&(_0x3e3771['stop'](),_0xf30dd6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4e1665['model']['change'](()=>{_0x4e1665['model']['insertContent'](_0x53ce32[0x0],_0x53ce32[0x1],_0x53ce32[0x2],{'forceDefaultExecution':!0x0});const _0x1a30a5=_0xbf3332(),{rowInsertionRanges:_0x5415b7,columnInsertionRanges:_0x421bd3,insertionRanges:_0x2c4856,deletionRanges:_0xc9c289,cells:_0x526978}=_0xf30dd6;_0x5415b7['length']&&_0x2645ac['markMultiRangeInsertion'](_0x5415b7,'tablePasteRow',{'tablePasteChainId':_0x1a30a5}),_0x421bd3['length']&&_0x2645ac['markMultiRangeInsertion'](_0x421bd3,'tablePasteColumn',{'tablePasteChainId':_0x1a30a5}),_0x2c4856['length']&&(_0x2645ac['markMultiRangeInsertion'](_0x2c4856,'tablePaste',{'tablePasteChainId':_0x1a30a5,'skipNestingCheck':!0x0}),_0x2c4856['forEach'](_0x51cd16=>_0x51cd16['detach']?.())),_0xc9c289['length']&&(_0x2645ac['markMultiRangeDeletion'](_0xc9c289,'tablePaste',{'tablePasteChainId':_0x1a30a5,'skipNestingCheck':!0x0}),_0xc9c289['forEach'](_0x136a77=>_0x136a77['detach']?.()));const _0x3d98de=_0x2645ac['markMultiRangeBlockFormat'](_0x526978['map'](({element:_0x3155e9})=>_0x3155e9),{'formatGroupId':_0xbf3332()},[],'tablePasteCell',{'tablePasteChainId':_0x1a30a5});if(_0x3d98de){const _0x1be45f=_0x3d98de['getMarkers'](),_0x3f9c5f=[];for(const {element:_0x93e698,attributes:_0x456f75}of _0x526978){if(!_0x456f75)continue;const _0x50a0e9=_0x4e1665['model']['createRangeOn'](_0x93e698),_0x1c41fb=_0x1be45f['find'](_0xa3e542=>_0xa3e542['getRange']()['isEqual'](_0x50a0e9));_0x1c41fb&&_0x3f9c5f['push']([_0x1c41fb['name'],_0x456f75]);}_0x3f9c5f['length']&&_0x3d98de['setAttribute']('markerAttributes',Object['fromEntries'](_0x3f9c5f));}_0xf30dd6=null;}));},{'priority':_0x59a01c['high']+0xa}),_0x5e07c6['on']('contentInsertion',()=>{_0x5ea37d=!0x1;},{'priority':'lowest'}),_0x4e1665['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d0f15,_0x49adcc)=>{const [_0x44374d,_0x228dee,,_0x5b4bcd]=_0x49adcc;if(!_0xf30dd6)return;_0x4d0f15['stop']();const _0x36e9f9=_0x44374d['cell'],_0x356726=_0x228dee,_0x44a5a0=De(_0x36e9f9),_0x4873f2=De(_0x356726);_0x4d0f15['return']=_0x36e9f9;let _0x227b7d=null,_0x3ae24c=null;if(_0x4873f2||_0x44a5a0){if(_0x44a5a0&&!_0x4873f2){_0x5b4bcd['remove'](_0x36e9f9['getChild'](0x0));for(const _0x5098e7 of Array['from'](_0x356726['getChildren']()))_0x5b4bcd['insert'](_0x5098e7,_0x36e9f9,'end');const _0x377352=_0xf30dd6['rowInsertionIndexes']['includes'](_0x44374d['row']),_0x5d3ac5=_0xf30dd6['columnInsertionIndexes']['includes'](_0x44374d['column']);_0x377352||_0x5d3ac5||(_0x227b7d=_0x5b3987['fromRange'](_0x5b4bcd['createRangeIn'](_0x36e9f9)));}else _0x4873f2&&!_0x44a5a0&&(_0x3ae24c=_0x5b4bcd['createRangeIn'](_0x36e9f9));}else{const _0x552580=_0x5b4bcd['createElement']('tableCellSuggestion'),_0x51c9e5=_0x5b4bcd['createElement']('tableCellSuggestion');_0x5b4bcd['wrap'](_0x5b4bcd['createRangeIn'](_0x36e9f9),_0x51c9e5),_0x5b4bcd['insert'](_0x552580,_0x36e9f9,0x0);for(const _0x5172f5 of Array['from'](_0x356726['getChildren']()))_0x5b4bcd['insert'](_0x5172f5,_0x552580,'end');_0x227b7d=_0x5b3987['fromRange'](_0x5b4bcd['createRangeOn'](_0x552580)),_0x3ae24c=_0x5b3987['fromRange'](_0x5b4bcd['createRangeOn'](_0x51c9e5));}const _0x2d8b3a=Array['from'](_0x356726['getAttributes']())['filter'](([_0x160eca])=>Oe['includes'](_0x160eca));_0xf30dd6['cells']['push']({'element':_0x36e9f9,'attributes':_0x2d8b3a['length']?Object['fromEntries'](_0x2d8b3a):null}),_0x227b7d&&_0xf30dd6['insertionRanges']['push'](_0x227b7d),_0x3ae24c&&_0xf30dd6['deletionRanges']['push'](_0x3ae24c);},{'priority':'high'}),_0x5b23ca['on']('insertColumns',(_0x4e2541,_0x29da4f)=>{const [_0x2ac174,_0xbf5a16={}]=_0x29da4f;if(!_0xf30dd6)return;const _0xf2ab2f=_0xbf5a16['at']||0x0,_0x5f30b4=_0xbf5a16['columns']||0x1;_0xf30dd6['columnInsertionIndexes']=new Array(_0x5f30b4)['fill'](_0xf2ab2f)['map']((_0x1e571c,_0x236082)=>_0x1e571c+_0x236082);for(const {cell:_0x51d3ad}of _0x5b23ca['createTableWalker'](_0x2ac174,{'startColumn':_0xf2ab2f,'endColumn':_0xf2ab2f+_0x5f30b4-0x1}))_0xf30dd6['columnInsertionRanges']['push'](_0x4e1665['model']['createRangeOn'](_0x51d3ad));},{'priority':'low'}),_0x5b23ca['on']('insertRows',(_0x4da840,_0x262b7f)=>{const [_0x2dffaf,_0x3f8dfc={}]=_0x262b7f;if(!_0xf30dd6)return;const _0x4d4974=_0x3f8dfc['at']||0x0,_0x339288=_0x3f8dfc['rows']||0x1;_0xf30dd6['rowInsertionIndexes']=new Array(_0x339288)['fill'](_0x4d4974)['map']((_0x45e3fa,_0x4f7446)=>_0x45e3fa+_0x4f7446);for(const {cell:_0x7d9e53}of _0x5b23ca['createTableWalker'](_0x2dffaf,{'startRow':_0x4d4974,'endRow':_0x4d4974+_0x339288-0x1}))_0xf30dd6['rowInsertionRanges']['push'](_0x4e1665['model']['createRangeOn'](_0x7d9e53));},{'priority':'low'}),_0x2645ac['descriptionFactory']['registerDescriptionCallback'](_0x10e975=>{if(_0x10e975['subType']&&_0x10e975['subType']['startsWith']('tablePaste'))return _0x10e975['previous']?{}:{'type':'insertion','content':c(_0x4e1665['locale'],'*Replace\x20table\x20cells*')};});const _0x74171d=()=>!0x1;for(const _0x31b7b4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2645ac['_suggestionFactory']['registerCustomCallback']('insertion',_0x31b7b4,'join',_0x74171d),_0x2645ac['_suggestionFactory']['registerCustomCallback']('deletion',_0x31b7b4,'join',_0x74171d),_0x2645ac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31b7b4,'join',_0x74171d);_0x2645ac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x74171d),_0x2645ac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x385615,_0x1af053,_0x3b27a7)=>{const _0x153f41=_0x385615['map'](_0x1142c1=>_0x1142c1['getContainedElement']())['filter'](_0x46ba6c=>_0x46ba6c),_0x4bf13e=new Map(_0x153f41['map'](_0x40d76f=>[_0x40d76f,null]));if(_0xf30dd6){for(const {element:_0x18c838,attributes:_0x2f48cd}of _0xf30dd6['cells'])_0x2f48cd&&_0x4bf13e['set'](_0x18c838,_0x2f48cd);}else{if(_0x3b27a7&&_0x3b27a7['markerAttributes'])for(const [_0x40c3ad,_0x2d6fd4]of Object['entries'](_0x3b27a7['markerAttributes'])){const _0x110ee2=_0x4e1665['model']['markers']['get'](_0x40c3ad),_0x1da763=_0x110ee2?_0x110ee2['getRange']()['getContainedElement']():null;_0x1da763&&_0x4bf13e['set'](_0x1da763,_0x2d6fd4);}}_0x4e1665['model']['change'](_0x4b42a8=>{for(const [_0x386fe3,_0x58ea4d]of _0x4bf13e)_0x4b42a8['setAttributes']({...Ue,..._0x58ea4d},_0x386fe3);});});const _0x2316fd=(_0x3d4643,_0x537f4a)=>{_0x2645ac['_suggestionFactory']['registerCustomCallback'](_0x3d4643,'tablePaste',_0x537f4a,(_0x36dc0e,_0x1f9ed9,_0x9591c7)=>{_0x4e1665['model']['change'](_0x775dd6=>{const _0xab5fb9=[];for(const _0x1aaf52 of _0x36dc0e){const _0x4b0d33=_0x1aaf52['start']['nodeAfter'];_0x4b0d33['is']('element','tableCellSuggestion')&&_0xab5fb9['push'](_0x4b0d33);}_0x2645ac['_suggestionFactory']['getSuggestionCallback'](_0x3d4643,null,_0x537f4a)(_0x36dc0e,_0x1f9ed9,_0x9591c7);for(const _0x272987 of _0xab5fb9)'$graveyard'!=_0x272987['root']['rootName']&&_0x775dd6['unwrap'](_0x272987);});});};_0x2316fd('insertion','accept'),_0x2316fd('insertion','discard'),_0x2316fd('deletion','accept'),_0x2316fd('deletion','discard'),_0x2645ac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x35f8e6=>{const _0x59e369=_0x35f8e6['map'](_0x536bd2=>_0x536bd2['getContainedElement']()),_0x1bba70=_0x59e369[0x0]['findAncestor']('table'),{minRow:_0x4a4eef,maxRow:_0x50cace}=_0x444edb['_getCoordsForCells'](_0x59e369);_0x5b23ca['removeRows'](_0x1bba70,{'at':_0x4a4eef,'rows':_0x50cace-_0x4a4eef+0x1});}),_0x2645ac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x21fd6f=>{const _0x25d0d3=_0x21fd6f['map'](_0x17c963=>_0x17c963['getContainedElement']()),_0x53213f=_0x25d0d3[0x0]['findAncestor']('table'),{minColumn:_0x10557e,maxColumn:_0x5b568f}=_0x444edb['_getCoordsForCells'](_0x25d0d3);_0x5b23ca['removeColumns'](_0x53213f,{'at':_0x10557e,'columns':_0x5b568f-_0x10557e+0x1});});const _0x147230=(_0x313d98,_0x4965a8)=>{if(!_0x4965a8['subType']||!_0x4965a8['subType']['startsWith']('tablePaste'))return;const _0x1963c2=_0x4965a8['attributes']['tablePasteChainId'],_0x47a47a=_0x2645ac['getSuggestions']()['filter'](_0x517bc8=>_0x517bc8['isInContent']&&_0x517bc8['attributes']&&_0x517bc8['attributes']['tablePasteChainId']==_0x1963c2);_0x47a47a['length']&&_0x4965a8['getAllAdjacentSuggestions']()['length']!=_0x47a47a['length']&&_0x47a47a['reduce']((_0x2770b2,_0x23261e)=>(_0x2770b2['next']=_0x23261e,_0x23261e['previous']=_0x2770b2,_0x23261e));};function _0x46206a(_0x4f89e1,_0x485659=!0x0){const {id:_0x1fe953,authorId:_0x5bba5c}=_0x2645ac['_splitMarkerName'](_0x4f89e1['markerName']),_0x5ebd71=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x495c42=_0x2645ac['activeMarkers']['includes'](_0x4f89e1['markerName']);return _0x495c42&&_0x5ebd71['push']('ck-suggestion-marker--active'),{'classes':_0x5ebd71,'attributes':{'data-suggestion':_0x1fe953,'data-author-id':_0x5bba5c},'priority':_0x495c42&&_0x485659?0xbc2:0xbb8};}_0x2645ac['on']('suggestionLoaded',_0x147230,{'priority':'high'}),_0x2645ac['on']('suggestionUnloaded',_0x147230,{'priority':'high'}),_0x4e1665['model']['document']['registerPostFixer'](()=>{let _0x599635=!0x1;const _0x1fb923=Array['from'](_0x4e1665['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40dba5,data:_0x52dd89}of _0x1fb923){const {group:_0x27f8c7,type:_0x310184,id:_0xc611e5}=_0x2645ac['_splitMarkerName'](_0x40dba5);if('suggestion'!=_0x27f8c7||'deletion'!=_0x310184||_0x52dd89['oldRange'])continue;if(!_0x2645ac['hasSuggestion'](_0xc611e5))continue;const _0x483948=_0x2645ac['getSuggestion'](_0xc611e5)['getRanges'](),_0x463caa=_0x4e1665['plugins']['get']('Users')['me'];for(const _0x3c115f of _0x2645ac['getSuggestions']()){if(!_0x3c115f['isInContent']||_0x3c115f['author']!=_0x463caa)continue;if('formatBlock'!=_0x3c115f['type']||'tablePasteCell'!=_0x3c115f['subType'])continue;if(_0x3c115f['getRanges']()['every'](_0x1016e4=>_0x483948['some'](_0x325c63=>_0x325c63['containsRange'](_0x1016e4,!0x0)))){for(const _0x5f42b4 of _0x3c115f['getAllAdjacentSuggestions']())_0x5f42b4['isInContent']&&(_0x5f42b4['discard'](),_0x599635=!0x0);}}}return _0x599635;}),_0x4e1665['model']['document']['registerPostFixer'](_0x3a246b=>{const _0x1d67e1=_0x4e1665['commands']['get']('redo');if(!_0x1d67e1||!_0x1d67e1['_createdBatches']['has'](_0x3a246b['batch']))return!0x1;let _0x38f92b=!0x1;const _0x5eddcc=_0x4e1665['plugins']['get']('Users')['me'],_0x1e9480=_0x4e1665['model']['document']['differ']['getChanges'](),_0x110ddc=Array['from'](_0x4e1665['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x425b3d,data:_0x33421a})=>{const {group:_0x449c21,subType:_0x2a6002,authorId:_0x5784d8}=_0x2645ac['_splitMarkerName'](_0x425b3d);return'suggestion'==_0x449c21&&'tablePaste'==_0x2a6002&&_0x5784d8==_0x5eddcc['id']&&!_0x33421a['oldRange'];});for(const _0x4c52fd of _0x1e9480){if('insert'!=_0x4c52fd['type']||'tableCellSuggestion'!=_0x4c52fd['name']||0x1!=_0x4c52fd['length'])continue;const _0x8b731a=_0x3a246b['createRange'](_0x4c52fd['position'],_0x4c52fd['position']['getShiftedBy'](0x1));if(!_0x110ddc['find'](({data:_0x4b107d})=>_0x4b107d['newRange']['isEqual'](_0x8b731a))){for(const {name:_0x17b600,data:_0x3bd722}of _0x110ddc)if(_0x8b731a['containsRange'](_0x3bd722['newRange'])){_0x3a246b['updateMarker'](_0x17b600,{'range':_0x8b731a}),_0x38f92b=!0x0;break;}}}return _0x38f92b;}),_0x4e1665['model']['document']['registerPostFixer'](_0x35c2f5=>{let _0x28096c=!0x1;const _0x1cf552=_0x4e1665['plugins']['get']('Users')['me'],_0x572141=_0x2645ac['getSuggestions']()['filter'](_0x5f4815=>_0x5f4815['isInContent']&&_0x5f4815['author']==_0x1cf552),_0x5457c8=new Set(),_0x211594=new Set();for(const _0x7e4a75 of _0x572141)if('tablePaste'==_0x7e4a75['subType'])for(const _0x330aab of _0x7e4a75['getMarkers']()){const _0xc04aec=_0x330aab['getRange']()['getContainedElement']();if(_0xc04aec){if(_0xc04aec['is']('element','tableCellSuggestion')&&De(_0xc04aec)){_0x7e4a75['removeMarker'](_0x330aab['name']),_0x5457c8['add'](_0xc04aec),_0x28096c=!0x0;const _0x5ab0c4=_0xc04aec['nextSibling'],_0x358bb0=_0xc04aec['previousSibling'],_0x5555a8=_0x5ab0c4&&_0x5ab0c4['is']('element','tableCellSuggestion'),_0x247d9e=_0x358bb0&&_0x358bb0['is']('element','tableCellSuggestion');_0x5555a8&&!_0x5457c8['has'](_0x5ab0c4)&&_0x211594['add'](_0x5ab0c4),_0x247d9e&&!_0x5457c8['has'](_0x358bb0)&&_0x211594['add'](_0x358bb0);}else _0xc04aec['is']('element','paragraph')&&_0xc04aec['isEmpty']&&(_0x7e4a75['removeMarker'](_0x330aab['name']),_0x28096c=!0x0);}}else{if('tablePasteCell'==_0x7e4a75['subType']){if(!_0x7e4a75['attributes']||!_0x7e4a75['attributes']['tablePasteChainId'])continue;const _0x5a9858=_0x7e4a75['attributes']['markerAttributes'];if(_0x5a9858&&Object['keys'](_0x5a9858)['length'])continue;const _0x1957be=_0x7e4a75['attributes']['tablePasteChainId'];let _0x5cc024=!0x0,_0x356b54=!0x0;for(const _0x4a6013 of _0x572141)if(_0x4a6013['subType']&&_0x4a6013['subType']['startsWith']('tablePaste')){if(!_0x4a6013['attributes']['tablePasteChainId']){_0x356b54=!0x1;break;}if(_0x4a6013['id']!=_0x7e4a75['id']&&_0x4a6013['attributes']['tablePasteChainId']==_0x1957be){_0x5cc024=!0x1;break;}}_0x356b54&&_0x5cc024&&(_0x7e4a75['removeMarkers'](),_0x28096c=!0x0);}}for(const _0xa95a58 of _0x5457c8)_0x35c2f5['remove'](_0xa95a58);for(const _0x31ac10 of _0x211594)_0x35c2f5['unwrap'](_0x31ac10);return _0x28096c;}),_0x4e1665['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xec48c=>_0x46206a(_0xec48c),'converterPriority':'high'}),_0x4e1665['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3da5ed,_0x1984cf)=>_0x1984cf['options']['showSuggestionHighlights']?_0x46206a(_0x3da5ed,!0x1):null,'converterPriority':'high'});const _0x2cc67a=_0x4e1665['editing']['view'];this['listenTo'](_0x2cc67a['document'],'clipboardOutput',(_0x4655a0,_0x28c2ef)=>{const _0x3d0610=[];for(const _0x4ec707 of _0x2cc67a['createRangeIn'](_0x28c2ef['content'])['getItems']())_0x4ec707['is']('element','suggestion-td')&&_0x3d0610['push'](_0x4ec707);_0x2cc67a['change'](_0x2830d9=>{for(const _0x4d3597 of _0x3d0610)_0x2830d9['move'](_0x2830d9['createRangeIn'](_0x4d3597),_0x2830d9['createPositionBefore'](_0x4d3597)),_0x2830d9['remove'](_0x4d3597);});});}}function De(_0x4d68f0){if(_0x4d68f0['isEmpty'])return!0x0;const _0x959268=_0x4d68f0['getChild'](0x0);return _0x959268['is']('element','paragraph')&&_0x959268['isEmpty'];}function He(_0x2d0942,_0x3ab458={},_0x41d54d){for(const {isAnchor:_0x29cb8c,cellHeight:_0x6abf2d,cellWidth:_0x54cd78}of _0x41d54d['createTableWalker'](_0x2d0942,{'includeAllSlots':!0x0,..._0x3ab458}))if(!_0x29cb8c||0x1!=_0x6abf2d||0x1!=_0x54cd78)return!0x1;return!0x0;}class Bt extends _0xac175e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a0168=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a0168['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a0168['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a0168['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a0168['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a0168['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a0168['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4e53b7,_0x15c69d){const _0x1a7314=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa20a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3a6e0c=_0x15c69d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4a0425=_0x1aa20a['getColumnGroupElement'](_0x3a6e0c);let _0xa3dcb2=_0x4a0425?_0x1aa20a['getTableColumnsWidths'](_0x4a0425):null,_0x1ad1b3=_0x3a6e0c['getAttribute']('tableWidth')||null;const _0x4055f4=_0x15c69d['tableWidth']||_0x1ad1b3,_0x332a57=_0x15c69d['columnWidths']||_0xa3dcb2,_0x2a3d36=this['editor']['plugins']['get']('Users')['me'];for(const _0x39a6e9 of _0x1a7314['getSuggestions']()){const _0x42117a=_0x39a6e9['getContainedElement']();if('resizeTable'===_0x39a6e9['subType']&&_0x42117a===_0x3a6e0c){_0x39a6e9['author']!==_0x2a3d36&&_0x39a6e9['discard']();const _0x7103f6=_0x39a6e9['data']['commandParams'];_0x1ad1b3=_0x7103f6[0x0]['tableWidth'],_0xa3dcb2=_0x7103f6[0x0]['columnWidths'];break;}}_0x4e53b7({'table':_0x3a6e0c,'tableWidth':_0x4055f4,'columnWidths':_0x332a57}),_0x1a7314['markBlockFormat'](_0x3a6e0c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ad1b3,'columnWidths':_0xa3dcb2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x353115){if('formatBlock'!=_0x353115['type']&&'formatInline'!=_0x353115['type'])return;const {data:_0x49d804}=_0x353115;if(_0x49d804&&'resizeTable'===_0x49d804['formatGroupId']){const _0x3df0d1='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3df0d1)};}}}class xt extends _0xac175e{['afterInit'](){const _0xa86c62=this['editor'];_0xa86c62['plugins']['has']('Template')&&_0xa86c62['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0xac175e{['afterInit'](){const _0x33cd88=this['editor'];if(!_0x33cd88['commands']['get']('insertTableOfContents'))return;_0x33cd88['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x554dcd=_0x33cd88['plugins']['get']('TrackChangesEditing'),_0x245503=_0x33cd88['locale'];_0x554dcd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x382a0d=>c(_0x245503,'ELEMENT_TABLE_OF_CONTENTS',_0x382a0d));}}class Rt extends _0xac175e{['afterInit'](){const _0x1f2867=this['editor'];if(!_0x1f2867['plugins']['has']('Title'))return;const _0x49820e=_0x1f2867['plugins']['get']('TrackChangesEditing');_0x49820e['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1f2867['locale'],'ELEMENT_TITLE')),_0x1f2867['model']['document']['registerPostFixer'](_0x1f5820=>{let _0x5a4e9f=!0x1;const _0x43a9d7=Array['from'](_0x1f2867['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27126a,data:_0xe9e006}of _0x43a9d7){const {group:_0x4f7916}=_0x49820e['_splitMarkerName'](_0x27126a);if('suggestion'!==_0x4f7916||!_0xe9e006['newRange'])continue;const _0x52c994=_0xe9e006['newRange'],_0x11573a=_0x52c994['end']['nodeBefore'];if(!_0x11573a||!_0x11573a['is']('element','title-content'))continue;if(!_0x52c994['start']['isTouching'](_0x52c994['end']))continue;const _0xdd3a5d=_0x1f2867['model']['schema']['getNearestSelectionRange'](_0x52c994['end'],'forward');if(_0xdd3a5d&&_0xdd3a5d['isCollapsed']){const _0x37879c=_0x1f5820['createRange'](_0x52c994['start'],_0xdd3a5d['start']);_0x37879c['isEqual'](_0x52c994)||(_0x1f5820['updateMarker'](_0x27126a,{'range':_0x37879c}),_0x5a4e9f=!0x0);}_0x5a4e9f||(_0x1f5820['removeMarker'](_0x27126a),_0x5a4e9f=!0x0);}return _0x5a4e9f;});}}class Tt extends _0xac175e{['afterInit'](){const _0x217eb7=this['editor'],_0x4f050c=_0x217eb7['plugins']['get']('TrackChangesEditing');_0x217eb7['plugins']['has']('Uploadcare')&&(_0x4f050c['enableCommand']('uploadcare'),_0x217eb7['plugins']['has']('UploadcareImageEdit')&&(_0x4f050c['enableCommand']('uploadcareImageEdit'),_0x4f050c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4f050c['registerBlockAttribute']('uploadcareImageId'),_0x4f050c['descriptionFactory']['registerDescriptionCallback'](_0xe37c17=>{if('attribute'!=_0xe37c17['type'])return;const {data:_0x278f99}=_0xe37c17;return _0x278f99&&'uploadcareImageId'==_0x278f99['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0xac175e{['afterInit'](){const _0x2b7262=this['editor'],_0x1e415d=_0x2b7262['plugins']['get']('TrackChangesEditing');_0x2b7262['plugins']['has']('UndoEditing')&&(_0x1e415d['enableCommand']('undo'),_0x1e415d['enableCommand']('redo'));}}class Ut extends _0xac175e{static get['requires'](){return[Ct];}['afterInit'](){const _0x5e6a44=this['editor'];if(!_0x5e6a44['plugins']['has']('TableCaptionEditing'))return;_0x5e6a44['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0xac175e{['tableProperties'];['tableCellProperties'];constructor(_0x1ed3c5){super(_0x1ed3c5),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x19bb29=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x142666 of this['tableProperties'])_0x19bb29['enableCommand'](_0x142666,(_0x4033c5,_0x9a4448)=>{const _0x39d59e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x142666,[_0x39d59e],this['tableProperties'],'tableProperties',_0x4033c5,_0x9a4448);});_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x19bb29['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x25c733,_0x1e3fdf)=>this['handleDiscardAction'](this['tableProperties'],_0x25c733,_0x1e3fdf)),_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4f4cb9 of this['tableCellProperties'])_0x19bb29['enableCommand'](_0x4f4cb9,(_0x30e55c,_0x1d2eae)=>{const _0x50816c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4f4cb9,_0x50816c,this['tableCellProperties'],'tableCellProperties',_0x30e55c,_0x1d2eae);});_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x19bb29['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5a19e9,_0x5e0445)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5a19e9,_0x5e0445)),_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x19bb29['descriptionFactory']['registerDescriptionCallback'](_0x29ffc2=>this['handleSuggestionDescription'](_0x29ffc2));}['_handlePropertyChange'](_0x2d3986,_0x959b21,_0x2c7952,_0x184cb0,_0x1b904a,_0x45ab31){const _0x69a787=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45ab31['batch'],()=>{for(const _0x22bd18 of _0x959b21){if(this['_getSuggestion'](_0x22bd18,_0x184cb0))_0x1b904a(_0x45ab31);else{const _0x3ddffc={};for(const _0x425d6d of _0x2c7952){const _0xd99cf7=_0x22bd18['getAttribute'](_0x425d6d);void 0x0!==_0xd99cf7&&(_0x3ddffc[_0x425d6d]=_0xd99cf7);}_0x1b904a(_0x45ab31),_0x69a787['markBlockFormat'](_0x22bd18,{'commandParams':[_0x3ddffc]},[],_0x184cb0);}}});}['handleDiscardAction'](_0x57ee37,_0x4e7fdb,_0x5b2ce2){const _0x2fd5af=_0x4e7fdb[0x0]['start']['nodeAfter'],_0x3c10c9=_0x5b2ce2['commandParams'][0x0];this['editor']['model']['change'](_0x1b1529=>{for(const _0x4c8a81 of _0x57ee37)void 0x0!==_0x3c10c9[_0x4c8a81]?_0x1b1529['setAttribute'](_0x4c8a81,_0x3c10c9[_0x4c8a81],_0x2fd5af):_0x1b1529['removeAttribute'](_0x4c8a81,_0x2fd5af);});}['handleSuggestionDescription'](_0x544b60){if(_0x544b60['data'])switch(_0x544b60['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xe5e5,_0x32baf6){const _0x2e452c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x437f86 of _0x2e452c['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ef61c=_0x437f86['getContainedElement']();if(_0x437f86['subType']===_0x32baf6&&_0x3ef61c===_0xe5e5)return _0x437f86;}return null;}}const u='$elementName';class p extends _0xac175e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x46023b,_0x2eb11e,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x531b33){super(_0x531b33),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ce4d2,_0x4fad98,_0x5b7a5f,_0x5b7f87)=>{this['_model']['change'](()=>{for(const _0x4fa2e6 of[..._0x5b7f87,..._0x5b7a5f])this['_model']['markers']['has'](_0x4fa2e6)&&_0x531b33['editing']['reconvertMarker'](_0x4fa2e6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x531b33['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x531b33['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x531b33['config']['get']('trackChanges.trackFormatChanges'),_0x531b33['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x531b33['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x531b33,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x465b95=this['editor'],_0xd1c342=(_0x51196d,_0x1f0ad1)=>{if('attribute'!=_0x51196d)return'ck-suggestion-marker-'+_0x51196d;const _0x7cc3ef=_0x1f0ad1['split']('|')[0x0];return this['_isBlockAttribute'](_0x7cc3ef)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x465b95['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2378fa=>{const {id:_0x266c56,authorId:_0x4a972f,type:_0x5bab7d,subType:_0x4b928a}=this['_splitMarkerName'](_0x2378fa['markerName']),_0x1ef765=['ck-suggestion-marker',_0xd1c342(_0x5bab7d,_0x4b928a)];let _0x295b03=0xbb8;return this['activeMarkers']['includes'](_0x2378fa['markerName'])&&(_0x1ef765['push']('ck-suggestion-marker--active'),_0x295b03=0xbc2),'deletion'==_0x5bab7d&&(_0x295b03+=0x5),{'classes':_0x1ef765,'attributes':{'data-suggestion':_0x266c56,'data-author-id':_0x4a972f},'priority':_0x295b03};}}),_0x465b95['conversion']['for']('dataDowncast')['add'](_0x49c1f8=>{_0x49c1f8['on']('addMarker:suggestion',(_0x4a8900,_0x5f3962,_0x4b01ae)=>{if(!_0x4b01ae['options']['showSuggestionHighlights'])return;const _0x5245ab=_0x5f3962['item'];if(!_0x5245ab)return;const _0x5b1d13=_0x4b01ae['mapper']['toViewElement'](_0x5245ab);_0x465b95['model']['schema']['isObject'](_0x5245ab)&&_0x5b1d13&&!_0x5b1d13['getCustomProperty']('widget')&&_0x5b1d13['is']('containerElement')&&_0x2f5fe0(_0x5b1d13,_0x4b01ae['writer']);},{'priority':'high'});}),_0x465b95['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2a086e,_0x14cc8d)=>{if(!_0x14cc8d['options']['showSuggestionHighlights'])return null;const {id:_0x1bbab5,authorId:_0xc4e7de,type:_0x1ebac9,subType:_0x7fc316}=this['_splitMarkerName'](_0x2a086e['markerName']);return{'classes':['ck-suggestion-marker',_0xd1c342(_0x1ebac9,_0x7fc316)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1bbab5,'data-author-id':_0xc4e7de}};}});const _0x46e13d=({showActiveMarkers:_0x1ff5c9=!0x0,isAttributeSuggestion:_0x2ea8d9=!0x1}={})=>(_0x1100d0,_0x14a07b,_0x6d482b)=>{if(!_0x14a07b['item'])return;const {id:_0x2eb58d,authorId:_0x179427}=this['_splitMarkerName'](_0x14a07b['markerName']);if(_0x2ea8d9){const _0x957976=this['_suggestions']['get'](_0x2eb58d),_0x49bd19=this['_getAttributeKey'](_0x957976);if(!this['_isBlockAttribute'](_0x49bd19))return;}if(_0x14a07b['item']['is']('selection'))return void _0x6d482b['consumable']['consume'](_0x14a07b['item'],_0x1100d0['name']);const _0x27ce04=_0x6d482b['mapper']['toViewElement'](_0x14a07b['item']);if(_0x14a07b['item']['is']('element')&&_0x465b95['model']['schema']['isBlock'](_0x14a07b['item'])&&!_0x27ce04['getCustomProperty']('addHighlight')){_0x6d482b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x27ce04),_0x6d482b['writer']['setAttribute']('data-suggestion',_0x2eb58d,_0x27ce04),_0x6d482b['writer']['setAttribute']('data-author-id',_0x179427,_0x27ce04),_0x6d482b['mapper']['bindElementToMarker'](_0x27ce04,_0x14a07b['markerName']),_0x1ff5c9&&(this['activeMarkers']['includes'](_0x14a07b['markerName'])?_0x6d482b['writer']['addClass']('ck-suggestion-marker--active',_0x27ce04):_0x6d482b['writer']['removeClass']('ck-suggestion-marker--active',_0x27ce04));for(const _0x4d4398 of _0x465b95['model']['createRangeIn'](_0x14a07b['item'])['getItems']())_0x6d482b['consumable']['consume'](_0x4d4398,_0x1100d0['name']);_0x6d482b['consumable']['consume'](_0x14a07b['item'],_0x1100d0['name']);}};_0x465b95['conversion']['for']('dataDowncast')['add'](_0x273fc5=>{_0x273fc5['on']('addMarker:suggestion:formatBlock',(_0x2480c8,_0x4b2824,_0xd59c9c)=>{_0xd59c9c['options']['showSuggestionHighlights']&&_0x46e13d({'showActiveMarkers':!0x1})(_0x2480c8,_0x4b2824,_0xd59c9c);},{'priority':'highest'});}),_0x465b95['conversion']['for']('dataDowncast')['add'](_0x5062d1=>{_0x5062d1['on']('addMarker:suggestion:attribute',(_0x1d36ab,_0x7ae389,_0x23ae6f)=>{_0x23ae6f['options']['showSuggestionHighlights']&&_0x46e13d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1d36ab,_0x7ae389,_0x23ae6f);},{'priority':'highest'});}),_0x465b95['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5d27b5,_0xe0c72c)=>{if(_0xe0c72c['options']['showSuggestionHighlights']){const {id:_0xc20f69,authorId:_0x4bb634}=this['_splitMarkerName'](_0x5d27b5);return _0x5d27b5['includes'](':split')||_0x5d27b5['includes'](':merge')?{'group':'suggestion','name':_0x5d27b5['substr'](0xb),'attributes':{'data-suggestion':_0xc20f69,'data-author-id':_0x4bb634}}:null;}return{'group':'suggestion','name':_0x5d27b5['substr'](0xb)};}}),_0x465b95['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x317ddf,{writer:_0x2b14c9})=>{let _0x509576='suggestion:'+_0x317ddf['getAttribute']('suggestion-type')+':'+_0x317ddf['getAttribute']('id');return _0x317ddf['getAttribute']('marker-count')&&(_0x509576+=':'+_0x317ddf['getAttribute']('marker-count')),_0x2b14c9['createElement']('$marker',{'data-name':_0x509576});}}),_0x465b95['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x465b95['conversion']['for']('editingDowncast')['add'](_0x6979b5=>{_0x6979b5['on']('addMarker:suggestion:formatBlock',_0x46e13d(),{'priority':'high'});}),_0x465b95['conversion']['for']('editingDowncast')['add'](_0x675bf4=>{_0x675bf4['on']('addMarker:suggestion:attribute',_0x46e13d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x465b95['conversion']['for']('editingDowncast')['add'](_0x26f8a9=>{_0x26f8a9['on']('removeMarker:suggestion:formatBlock',(_0x56c3f3,_0x91f4c2,_0x3d8354)=>{const _0x7cee87=_0x3d8354['mapper']['markerNameToElements'](_0x91f4c2['markerName']);if(_0x7cee87){for(const _0x3ead7a of _0x7cee87)_0x3ead7a['getCustomProperty']('addHighlight')||(_0x3d8354['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ead7a),_0x3d8354['writer']['removeAttribute']('data-suggestion',_0x3ead7a),_0x3d8354['writer']['removeAttribute']('data-author-id',_0x3ead7a),_0x3d8354['mapper']['unbindElementFromMarkerName'](_0x3ead7a,_0x91f4c2['markerName']));}},{'priority':'high'});}),_0x465b95['conversion']['for']('editingDowncast')['add'](_0x3dc209=>{_0x3dc209['on']('removeMarker:suggestion:attribute',(_0xa57c20,_0x2e17d2,_0x4d80e3)=>{const _0x2563ae=_0x4d80e3['mapper']['markerNameToElements'](_0x2e17d2['markerName']);if(!_0x2563ae)return;const {id:_0x3cdfc3}=this['_splitMarkerName'](_0x2e17d2['markerName']),_0x4492ca=this['_suggestions']['get'](_0x3cdfc3),_0x113370=this['_getAttributeKey'](_0x4492ca);if(this['_isBlockAttribute'](_0x113370)){for(const _0x4de87b of _0x2563ae)_0x4de87b['getCustomProperty']('addHighlight')||(_0x4d80e3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4de87b),_0x4d80e3['writer']['removeAttribute']('data-suggestion',_0x4de87b),_0x4d80e3['writer']['removeAttribute']('data-author-id',_0x4de87b),_0x4d80e3['mapper']['unbindElementFromMarkerName'](_0x4de87b,_0x2e17d2['markerName']));}},{'priority':'high'});}),_0x465b95['model']['document']['registerPostFixer'](_0x265d47=>{let _0x2547fe=!0x1;const _0x522117=Array['from'](_0x465b95['model']['document']['differ']['getChangedMarkers']()),_0x38e3f5=new Set();for(const {name:_0xc6db9a,data:_0x4ade40}of _0x522117){const {group:_0x178d76,type:_0x7b8304,subType:_0x490fd0,id:_0x2136ba}=this['_splitMarkerName'](_0xc6db9a);if('suggestion'!==_0x178d76)continue;const _0xdbd1dd=this['_suggestions']['get'](_0x2136ba);if(null!=_0x4ade40['newRange']){'formatInline'==_0x7b8304&&(_0x2547fe=_0x2547fe||Jt(_0x4ade40['newRange'],_0xc6db9a,_0x265d47,_0x465b95['model']['schema']));const _0x2475c8='attribute'==_0x7b8304&&this['_isBlockAttribute'](_0x490fd0['split']('|')[0x0]);if(_0x4ade40['newRange']['isCollapsed']||'$graveyard'==_0x4ade40['newRange']['root']['rootName']||'formatBlock'==_0x7b8304&&!Ht(_0x4ade40['newRange'])||_0x2475c8&&!Ht(_0x4ade40['newRange'])||'deletion'==_0x7b8304&&!(!Lt(_0x393dd1=_0x4ade40['newRange'])&&!function(_0x2cbbe7){return _0x2cbbe7['start']['parent']==_0x2cbbe7['end']['nodeBefore']&&_0x2cbbe7['start']['isAtEnd'];}(_0x393dd1)))_0x265d47['removeMarker'](_0xc6db9a),_0x2547fe=!0x0;else{if(!_0xdbd1dd||!_0xdbd1dd['isInContent'])continue;if(_0x4ade40['newRange']&&_0x4ade40['oldRange']&&_0x4ade40['newRange']['isEqual'](_0x4ade40['oldRange']))continue;_0x38e3f5['add'](_0xdbd1dd);}}}var _0x393dd1;return _0x38e3f5['size']>0x0&&(_0x2547fe=!!this['_joinWithAdjacentSuggestions'](_0x38e3f5)||_0x2547fe),_0x2547fe;}),_0x465b95['model']['document']['registerPostFixer'](_0x420367=>{let _0x5176da=!0x1;for(const _0x519ab8 of _0x465b95['model']['document']['differ']['getChanges']())if('insert'==_0x519ab8['type'])for(const _0x3c94cd of this['_suggestions']['values']()){if(_0x3c94cd['isMultiRange']||!_0x3c94cd['isInContent'])continue;const _0x22b438='formatBlock'==_0x3c94cd['type'],_0x251b1e=this['_getAttributeKey'](_0x3c94cd),_0x4f5d73=_0x251b1e&&this['_isBlockAttribute'](_0x251b1e);if(!_0x22b438&&!_0x4f5d73)continue;const _0x5cde35=_0x3c94cd['getFirstRange']();if(_0x5cde35['start']['parent']!=_0x5cde35['end']['parent']&&!_0x5cde35['end']['isAtEnd']){const _0x2f897b=_0x465b95['model']['createPositionAt'](_0x5cde35['start']['nodeAfter'],'end'),_0xe2652a=_0x465b95['model']['createRange'](_0x5cde35['start'],_0x2f897b);_0x420367['updateMarker'](_0x3c94cd['getFirstMarker'](),{'range':_0xe2652a}),_0x5176da=!0x0;}}return _0x5176da;}),_0x465b95['model']['document']['registerPostFixer'](_0x5bc8ac=>this['_processAttributeChanges'](_0x5bc8ac)),_0x465b95['model']['document']['registerPostFixer'](_0x30a057=>!_0x30a057['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x30a057)),_0x465b95['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x465b95['model']['document']['on']('change:data',(_0x18d8a8,_0x369074)=>{if(!_0x369074['isLocal']||_0x369074['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xff0b9d=_0x465b95['model']['document']['differ']['getChanges']();if(0x0==_0xff0b9d['length'])return;const _0x324984=[],_0x19617c=_0xff0b9d['filter'](_0x46923f=>'attribute'==_0x46923f['type']),_0x85f547=_0xff0b9d['filter'](_0x3e9830=>'insert'==_0x3e9830['type']&&'$text'!=_0x3e9830['name']);for(const _0x52b7bf of _0x19617c)this['_isRegisteredAttribute'](_0x52b7bf['attributeKey'])&&_0x324984['push']({'key':_0x52b7bf['attributeKey'],'newValue':_0x52b7bf['attributeNewValue'],'oldValue':_0x52b7bf['attributeOldValue'],'range':qt(_0x52b7bf['range'],_0x465b95['model'])});for(const _0x1da6cc of _0x85f547){if('rename'!=_0x1da6cc['action']&&'refresh'!=_0x1da6cc['action'])continue;const _0x1d0637=zt(_0x1da6cc['position']['nodeAfter'],_0x465b95['model']),_0xef754b=_0x1da6cc['before'];'rename'==_0x1da6cc['action']&&_0x324984['push']({'key':u,'newValue':_0x1da6cc['name'],'oldValue':_0xef754b['name'],'range':_0x1d0637});for(const [_0x54d19a,_0x925aa]of _0xef754b['attributes']){if(!this['_isRegisteredAttribute'](_0x54d19a))continue;const _0x396a94=_0x1da6cc['attributes']['get'](_0x54d19a);_0x925aa!==_0x396a94&&_0x324984['push']({'key':_0x54d19a,'newValue':_0x396a94,'oldValue':_0x925aa,'range':_0x1d0637});}for(const [_0x568d55,_0x513e19]of _0x1da6cc['attributes'])this['_isRegisteredAttribute'](_0x568d55)&&(_0xef754b['attributes']['has'](_0x568d55)||_0x324984['push']({'key':_0x568d55,'newValue':_0x513e19,'oldValue':null,'range':_0x1d0637}));}0x0!=_0x324984['length']&&_0x465b95['model']['enqueueChange'](_0x369074,_0x194df4=>{const _0x3c953c=_0xbf3332();for(const {range:_0x2c276c,key:_0x33701e,oldValue:_0x1ceb92,newValue:_0x166d3a}of _0x324984)this['markAttributeChange'](_0x2c276c,_0x33701e,_0x1ceb92,_0x166d3a,{'groupId':_0x3c953c});this['_reduceExistingSuggestions'](_0x194df4,_0x324984);});},{'priority':'lowest'}),_0x465b95['model']['markers']['on']('update:suggestion',(_0x1c83c8,_0x19b803,_0x17bc26)=>{if(null==_0x17bc26){const {id:_0x395c0a}=this['_splitMarkerName'](_0x19b803['name']),_0x37b53d=this['_suggestions']['get'](_0x395c0a);_0x37b53d&&_0x37b53d['addMarkerName'](_0x19b803['name']);}}),_0x465b95['model']['document']['on']('change:data',()=>{const _0x846b03=Array['from'](_0x465b95['model']['document']['differ']['getChangedMarkers']())['filter'](_0xfdd52=>'suggestion'===this['_splitMarkerName'](_0xfdd52['name'])['group']);if(0x0===_0x846b03['length'])return;_0x846b03['sort']((_0x42941f,_0x17723e)=>{const _0x2d97b7=_0x42941f['data']['oldRange'],_0x3eb425=_0x17723e['data']['oldRange'];return null===_0x2d97b7&&null===_0x3eb425?0x0:null===_0x2d97b7&&null!==_0x3eb425?-0x1:null!==_0x2d97b7&&null===_0x3eb425?0x1:_0x2d97b7['start']['isBefore'](_0x3eb425['start'])?-0x1:0x1;});const _0x5f5bbf=new Set(),_0x23811a=new Set();for(const {name:_0x5ac1fc,data:_0x79936e}of _0x846b03){const {id:_0x3d3d41}=this['_splitMarkerName'](_0x5ac1fc);if(null===_0x79936e['oldRange']){const _0x4d0af1=this['_handleNewSuggestionMarker'](_0x5ac1fc);_0x23811a['add'](_0x4d0af1);}else{const _0x21856d=this['_suggestions']['get'](_0x3d3d41);null!==_0x79936e['newRange']||_0x21856d['isInContent']?(_0x5f5bbf['add'](_0x21856d['head']),_0x23811a['add'](_0x21856d)):this['_removeSuggestion'](_0x21856d);}}_0x23811a['size']>0x0&&this['_refreshSuggestionsChain'](_0x23811a);for(const _0x14ad2f of _0x5f5bbf)this['fire']('suggestionChanged',_0x14ad2f);}),_0x465b95['model']['on']('applyOperation',(_0x6ba1b1,_0x322e1c)=>{const _0x15d7ea=_0x322e1c[0x0];if(!this['_suggestions']['size'])return;if(!_0x15d7ea['isDocumentOperation'])return;if(_0x15d7ea['batch']['isUndo']||!_0x15d7ea['batch']['isLocal'])return;let _0x49ee92,_0x4a7f9e;switch(_0x15d7ea['type']){case'insert':_0x49ee92=_0x465b95['model']['createPositionAt'](_0x15d7ea['position']),_0x4a7f9e=_0x49ee92['getShiftedBy'](_0x15d7ea['howMany']);break;case'split':_0x49ee92=_0x465b95['model']['createPositionAt'](_0x15d7ea['splitPosition']),_0x4a7f9e=_0x465b95['model']['createPositionAt'](_0x15d7ea['moveTargetPosition']);break;case'move':_0x49ee92=_0x465b95['model']['createPositionAt'](_0x15d7ea['targetPosition']),_0x4a7f9e=_0x49ee92['getShiftedBy'](_0x15d7ea['howMany']);break;default:return;}const _0x171f24=_0x465b95['model']['createRange'](_0x49ee92,_0x4a7f9e);_0x465b95['model']['change'](()=>{for(const {suggestion:_0x55c812,meta:_0x1a72a0}of this['_findSuggestions'](_0x171f24)){if(_0x55c812['isMultiRange'])continue;if('formatInline'==_0x55c812['type'])continue;const _0x511256=this['_getAttributeKey'](_0x55c812);if(_0x511256&&this['_isBlockAttribute'](_0x511256)&&'split'!=_0x15d7ea['type'])continue;const _0x617963=_0x55c812['data']&&_0x55c812['data']['multipleBlocks'];('formatBlock'!=_0x55c812['type']||'split'==_0x15d7ea['type']&&!_0x617963)&&(_0x1a72a0['containsRangeInObject']||'insertion'==_0x55c812['type']&&_0x1a72a0['isOwn']||_0x55c812['getFirstRange']()['containsRange'](_0x171f24)&&this['_breakSuggestionMarker'](_0x55c812,_0x49ee92,_0x4a7f9e));}});},{'priority':'lowest'}),_0x465b95['model']['on']('deleteContent',(_0x14fb7a,_0x1011a1)=>{const _0x46b7b0=_0x1011a1[0x0],_0x5d05d7=_0x1011a1[0x1];if(_0x5d05d7&&_0x5d05d7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x46b7b0['isCollapsed'])return;const _0x1db65f=_0x465b95['model']['schema'],{start:_0xa85ba6,end:_0xe3662}=_0x46b7b0['getFirstRange'](),_0x585604=_0xa85ba6['nodeAfter']&&_0x1db65f['isLimit'](_0xa85ba6['nodeAfter'])?null:_0x1db65f['getNearestSelectionRange'](_0xa85ba6,'forward'),_0x6b4552=_0xe3662['nodeBefore']&&_0x1db65f['isLimit'](_0xe3662['nodeBefore'])?null:_0x1db65f['getNearestSelectionRange'](_0xe3662,'backward'),_0x5e22e4=_0x465b95['model']['createRange'](_0x585604?_0x585604['start']:_0xa85ba6,_0x6b4552?_0x6b4552['end']:_0xe3662);_0x465b95['model']['change'](_0x49132c=>{this['markDeletion'](_0x5e22e4);const _0x3601f=_0x465b95['model']['schema']['getNearestSelectionRange'](_0x5e22e4['start']);_0x46b7b0['is']('documentSelection')?_0x49132c['setSelection'](_0x3601f):_0x46b7b0['setTo'](_0x3601f);}),_0x14fb7a['stop']();},{'priority':_0x59a01c['normal']+0xa}),_0x465b95['model']['on']('insertContent',(_0x17b6ba,_0x29c035)=>{const _0x43a2d4=_0x29c035[_0x29c035['length']-0x1];_0x43a2d4&&_0x43a2d4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x465b95['model']['change'](()=>{let _0x239844=_0x465b95['model']['insertContent'](_0x29c035[0x0],_0x29c035[0x1],_0x29c035[0x2],{'forceDefaultExecution':!0x0});if(!_0x239844)return;_0x17b6ba['return']=_0x239844['clone']();const _0x3b11ad=_0x239844['end']['nodeBefore'],_0x4eb9e6=_0x465b95['model']['schema'];_0x3b11ad&&_0x4eb9e6['isBlock'](_0x3b11ad)&&!_0x4eb9e6['isObject'](_0x3b11ad)&&(_0x239844=_0x465b95['model']['createRange'](_0x239844['start'],_0x465b95['model']['createPositionAt'](_0x3b11ad,'end'))),this['markInsertion'](_0x239844);}),_0x17b6ba['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf240ba=new x(_0x465b95,this['_suggestions']);_0x465b95['commands']['add']('acceptSuggestion',_0xf240ba),this['enableCommand']('acceptSuggestion');const _0x4a706d=new O(_0x465b95,this['_suggestions']);_0x465b95['commands']['add']('discardSuggestion',_0x4a706d),this['enableCommand']('discardSuggestion'),_0x465b95['commands']['add']('acceptAllSuggestions',new R(_0x465b95,_0xf240ba,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x465b95['commands']['add']('discardAllSuggestions',new R(_0x465b95,_0x4a706d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x465b95['commands']['add']('acceptSelectedSuggestions',new E(_0x465b95,_0xf240ba,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x465b95['commands']['add']('discardSelectedSuggestions',new E(_0x465b95,_0x4a706d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2d3e7b=_0x465b95['plugins']['get']('CommentsRepository');this['listenTo'](_0x2d3e7b,'addComment',(_0x71ba8f,{threadId:_0x2a2e4a})=>{const _0x3037dd=this['_suggestions']['get'](_0x2a2e4a);_0x3037dd&&_0x3037dd['commentThread']&&0x1===_0x3037dd['commentThread']['length']&&this['_updateSuggestionData'](_0x2a2e4a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2d3e7b,'removeComment',(_0x3875ae,{threadId:_0x5d7082})=>{const _0x2ae418=this['_suggestions']['get'](_0x5d7082);_0x2ae418&&_0x2ae418['commentThread']&&!_0x2ae418['commentThread']['length']&&this['_updateSuggestionData'](_0x5d7082,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2a22a1){const _0x5a4c83=_0x3d3dad([0x68,0x76,0x78,0x41,0x63,0x5a,0x4b,0x75,0x4a,0x65,0x67,0x79,0x46,0x6a,0x6c,0x6e,0x58,0x4d,0x73,0x51,0x70,0x42,0x4c,0x6d,0x55,0x61,0x62,0x59,0x69,0x6b,0x56,0x4e,0x53,0x32,0x6f,0x7a,0x38,0x31,0x30,0x48,0x49,0x72,0x50,0x66,0x57,0x35,0x52,0x77,0x45,0x33,0x43,0x36,0x74,0x37,0x64,0x54,0x39,0x34,0x4f,0x71,0x47,0x44]),_0x283567=0x78d62f32,_0x2e4dff=0x78d14432^_0x283567,_0x41e681=window[_0x3d3dad([0x44,0x61,0x74,0x65])][_0x3d3dad([0x6e,0x6f,0x77])](),_0x211a3f=_0x2a22a1[_0x3d3dad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xba1f1c=new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x395dde=>{_0x211a3f[_0x3d3dad([0x6f,0x6e,0x63,0x65])](_0x3d3dad([0x72,0x65,0x61,0x64,0x79]),_0x395dde);}),_0x13610d={[_0x3d3dad([0x6b,0x74,0x79])]:_0x3d3dad([0x45,0x43]),[_0x3d3dad([0x75,0x73,0x65])]:_0x3d3dad([0x73,0x69,0x67]),[_0x3d3dad([0x63,0x72,0x76])]:_0x3d3dad([0x50,0x2d,0x32,0x35,0x36]),[_0x3d3dad([0x78])]:_0x3d3dad([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3d3dad([0x79])]:_0x3d3dad([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3d3dad([0x61,0x6c,0x67])]:_0x3d3dad([0x45,0x53,0x32,0x35,0x36])},_0x43fa6a=_0x211a3f[_0x3d3dad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d3dad([0x67,0x65,0x74])](_0x3d3dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa624e2(){let _0x23d5c7,_0x39ee5f=null,_0xdd9c31=null;try{if(_0x43fa6a==_0x3d3dad([0x47,0x50,0x4c]))return _0x3d3dad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23d5c7=_0x2cb19c(),!_0x23d5c7)return _0x3d3dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23d5c7[_0x3d3dad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xdd9c31=_0x155963(_0x23d5c7[_0x3d3dad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23d5c7[_0x3d3dad([0x6a,0x74,0x69])])),await _0x221d47()?_0x549f0c()?_0x10af5b()?_0x3d3dad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e938e()?(_0x23d5c7[_0x3d3dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d3dad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39ee5f=_0x55cab0(_0x3d3dad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x23d5c7[_0x3d3dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d3dad([0x74,0x72,0x69,0x61,0x6c])&&(_0x39ee5f=_0x55cab0(_0x3d3dad([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37164b()):_0x3d3dad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3dad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d3dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d3dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10af5b(){const _0x2842eb=[_0x3d3dad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d3dad([0x74,0x72,0x69,0x61,0x6c])][_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23d5c7[_0x3d3dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41e681/0x3e8:0xe10*_0x2e4dff;return _0x23d5c7[_0x3d3dad([0x65,0x78,0x70])]<_0x2842eb;}function _0x549f0c(){const _0x56af94=_0x23d5c7[_0x3d3dad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x56af94)return!0x1;if(_0x56af94[_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3dad([0x2a])))return!0x0;if(_0x56af94[_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3dad([0x54,0x43])))return!0x0;if(_0x56af94[_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3dad([0x52,0x54,0x43]))){if(_0x13bac6())return!0x0;if(_0x5e0551()||_0x1444ec())return!0x0;}return!0x1;}function _0x3e938e(){const _0x2bb9f7=_0x23d5c7[_0x3d3dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bb9f7||0x0==_0x2bb9f7[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2bae53}=new URL(window[_0x3d3dad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2bb9f7[_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bae53))return!0x0;const _0x37f91a=_0x2bae53[_0x3d3dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d3dad([0x2e]));return _0x2bb9f7[_0x3d3dad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x237b27=>_0x237b27[_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3dad([0x2a])))[_0x3d3dad([0x6d,0x61,0x70])](_0x4738fb=>_0x4738fb[_0x3d3dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d3dad([0x2e])))[_0x3d3dad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a4520=>_0x5a4520[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x37f91a[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d3dad([0x6d,0x61,0x70])](_0x179da5=>Array(_0x37f91a[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x179da5[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d3dad([0x66,0x69,0x6c,0x6c])](_0x179da5[0x0]===_0x3d3dad([0x2a])?_0x3d3dad([0x2a]):'')[_0x3d3dad([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x179da5))[_0x3d3dad([0x73,0x6f,0x6d,0x65])](_0x3a2fc8=>_0x37f91a[_0x3d3dad([0x65,0x76,0x65,0x72,0x79])]((_0x121740,_0x345bf7)=>_0x3a2fc8[_0x345bf7]===_0x121740||_0x3a2fc8[_0x345bf7]===_0x3d3dad([0x2a])));}function _0x37164b(){return _0x39ee5f&&_0xdd9c31?new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c9d26,_0x28a9b5)=>{_0x39ee5f[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x4c9d26,_0x28a9b5),_0xdd9c31[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x5cd8c6=>{_0x5cd8c6!=_0x3d3dad([0x56,0x61,0x6c,0x69,0x64])&&_0x4c9d26(_0x5cd8c6);},_0x28a9b5);}):_0x39ee5f||_0xdd9c31||_0x3d3dad([0x56,0x61,0x6c,0x69,0x64]);}}function _0x155963(_0xaf6c9e,_0x5bc64a){return new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ebd77=>{if(_0x1af009())return _0x3ebd77(_0x3d3dad([0x56,0x61,0x6c,0x69,0x64]));_0x49c81e(),_0x211a3f[_0x3d3dad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d3dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x486e5d=!0x1;const _0x4dc836=_0xbf3332();function _0x5e2dd2(_0x3f11a4){return!!_0x3f11a4&&(typeof _0x3f11a4===_0x3d3dad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f11a4===_0x3d3dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f11a4[_0x3d3dad([0x74,0x68,0x65,0x6e])]===_0x3d3dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f11a4[_0x3d3dad([0x63,0x61,0x74,0x63,0x68])]===_0x3d3dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5cea04(_0x57517c){_0x33a031(_0x57517c)[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x45b043=>{if(!_0x45b043||_0x45b043[_0x3d3dad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d3dad([0x6f,0x6b]))return _0x3d3dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36985b(_0x339ecc(_0x4dc836+_0x5bc64a))!=_0x45b043[_0x3d3dad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d3dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3dad([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x180891=>(_0x122d66(),_0x180891),()=>{const _0x4e7b08=_0xd92e64();return null==_0x4e7b08?(_0x122d66(),_0x3d3dad([0x56,0x61,0x6c,0x69,0x64])):_0x3d3dad(_0x41e681-_0x4e7b08>(0x5cdaab32^_0x283567)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x3ebd77)[_0x3d3dad([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ebd77(_0x3d3dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x45faa5=0x78e0c1b2^_0x283567;function _0x122d66(){const _0x4474bd=_0x3d3dad([0x6c,0x6c,0x63,0x74,0x2d])+_0x36985b(_0x339ecc(_0xaf6c9e)),_0x3512d1=_0x1c6dcb(_0x36985b(window[_0x3d3dad([0x4d,0x61,0x74,0x68])][_0x3d3dad([0x63,0x65,0x69,0x6c])](_0x41e681/_0x45faa5)));window[_0x3d3dad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3dad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4474bd,_0x3512d1);}function _0xd92e64(){const _0x568e97=_0x3d3dad([0x6c,0x6c,0x63,0x74,0x2d])+_0x36985b(_0x339ecc(_0xaf6c9e)),_0x380ecb=window[_0x3d3dad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3dad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x568e97);return _0x380ecb?window[_0x3d3dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c6dcb(_0x380ecb),0x10)*_0x45faa5:null;}function _0x33a031(_0x1af7c9){return new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x232e6e,_0x43ec9a)=>{_0x1af7c9[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x232e6e,_0x43ec9a),window[_0x3d3dad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43ec9a,0x78d7fbf2^_0x283567);});}}_0x211a3f[_0x3d3dad([0x6f,0x6e])](_0x3d3dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c8a7d,_0x26e277)=>{if(_0x26e277[0x0]!=_0xaf6c9e)return _0x3ebd77(_0x3d3dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26e277[0x1]={..._0x26e277[0x1],[_0x3d3dad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4dc836};},{[_0x3d3dad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3dad([0x68,0x69,0x67,0x68])}),_0x211a3f[_0x3d3dad([0x6f,0x6e])](_0x3d3dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x521b09=>{_0x5e2dd2(_0x521b09[_0x3d3dad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x486e5d=!0x0,_0x5cea04(_0x521b09[_0x3d3dad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d3dad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3dad([0x6c,0x6f,0x77])}),_0xba1f1c[_0x3d3dad([0x74,0x68,0x65,0x6e])](()=>{_0x486e5d||_0x3ebd77(_0x3d3dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1af009(){return _0x211a3f[_0x3d3dad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3dad([0x76,0x69,0x65,0x77])][_0x3d3dad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d3dad([0x61,0x75,0x74,0x6f]);}function _0x49c81e(){_0x211a3f[_0x3d3dad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3dad([0x76,0x69,0x65,0x77])][_0x3d3dad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d3dad([0x61,0x75,0x74,0x6f]);}}function _0x55cab0(_0x40afeb){const _0x345383=[new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f419e=>setTimeout(_0x4f419e,0x78df11fe^_0x283567)),_0xba1f1c[_0x3d3dad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23532b=>{let _0x53b599=0x0;_0x211a3f[_0x3d3dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3dad([0x6f,0x6e])](_0x3d3dad([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x21880a,_0x58f6c9)=>{_0x58f6c9[0x0][_0x3d3dad([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x53b599++,_0x53b599==(0x78d62eca^_0x283567)&&(_0x23532b(),_0x21880a[_0x3d3dad([0x6f,0x66,0x66])]());});}))];return window[_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d3dad([0x72,0x61,0x63,0x65])](_0x345383)[_0x3d3dad([0x74,0x68,0x65,0x6e])](()=>_0x40afeb);}async function _0x5aa110(){await _0xba1f1c,_0x211a3f[_0x3d3dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3dad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c966f,_0x211a3f[_0x3d3dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3dad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c966f,_0x211a3f[_0x3d3dad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d3dad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13bac6(){return _0x37dc9c(_0x3d3dad([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2a314d(_0x3d3dad([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3d3dad([0x73,0x74,0x61,0x74,0x65])]==_0x3d3dad([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5e0551(){return _0x37dc9c(_0x3d3dad([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1444ec(){return _0x37dc9c(_0x3d3dad([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1b4302(_0x1628b8){const _0x36b68d=_0x1323f3();_0x211a3f[_0x36b68d]=_0x3d3dad([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1628b8,_0x1628b8!=_0x3d3dad([0x56,0x61,0x6c,0x69,0x64])&&_0x5aa110();}function _0x1323f3(){const _0x272784=window[_0x3d3dad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d3dad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d3dad([0x6e,0x6f,0x77])]())[_0x3d3dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d3dad([0x2e]),'');let _0x2240c4=_0x3d3dad([0x68]);for(let _0x176bba=0x0;_0x176bba<_0x272784[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x176bba+=0x2){let _0x42da3a=window[_0x3d3dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x272784[_0x3d3dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x176bba,_0x176bba+0x2));_0x42da3a>=_0x5a4c83[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42da3a-=_0x5a4c83[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2240c4+=_0x5a4c83[_0x42da3a];}return _0x2240c4;}function _0x2cb19c(){const _0x559e34=_0x43fa6a[_0x3d3dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d3dad([0x2e]));if(0x3!=_0x559e34[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x254f7f(_0x559e34[0x1]);function _0x254f7f(_0x5dbfff){const _0x5ea715=_0x48e9e2(_0x5dbfff);return _0x5ea715&&_0x366a81()?_0x5ea715:null;function _0x366a81(){const _0x470fde=_0x5ea715[_0x3d3dad([0x6a,0x74,0x69])],_0x28386f=window[_0x3d3dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x470fde[_0x3d3dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x470fde[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x196bbd={..._0x5ea715,[_0x3d3dad([0x6a,0x74,0x69])]:_0x470fde[_0x3d3dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x470fde[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x196bbd[_0x3d3dad([0x76,0x63])],_0x339ecc(_0x196bbd)==_0x28386f;}}}async function _0x221d47(){let _0x569b56=!0x0;try{const _0x2b2cca=_0x43fa6a[_0x3d3dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d3dad([0x2e])),[_0x3b6173,_0x1a447d,_0x526347]=_0x2b2cca;return _0x4f64cd(_0x3b6173),await _0x4b165f(_0x3b6173,_0x1a447d,_0x526347),_0x569b56;}catch{return!0x1;}function _0x4f64cd(_0x55ab43){const _0x357355=_0x48e9e2(_0x55ab43);_0x357355&&_0x357355[_0x3d3dad([0x61,0x6c,0x67])]==_0x3d3dad([0x45,0x53,0x32,0x35,0x36])||(_0x569b56=!0x1);}async function _0x4b165f(_0x41b855,_0x45fe85,_0x5bccc2){const _0x39bc4a=window[_0x3d3dad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d3dad([0x66,0x72,0x6f,0x6d])](_0x2043ef(_0x5bccc2),_0x7365ce=>_0x7365ce[_0x3d3dad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4753f9=new window[(_0x3d3dad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d3dad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41b855+_0x3d3dad([0x2e])+_0x45fe85),_0x4845ef=window[_0x3d3dad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d3dad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4845ef)return;const _0xac9a88=await _0x4845ef[_0x3d3dad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d3dad([0x6a,0x77,0x6b]),_0x13610d,{[_0x3d3dad([0x6e,0x61,0x6d,0x65])]:_0x3d3dad([0x45,0x43,0x44,0x53,0x41]),[_0x3d3dad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d3dad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d3dad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4845ef[_0x3d3dad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d3dad([0x6e,0x61,0x6d,0x65])]:_0x3d3dad([0x45,0x43,0x44,0x53,0x41]),[_0x3d3dad([0x68,0x61,0x73,0x68])]:{[_0x3d3dad([0x6e,0x61,0x6d,0x65])]:_0x3d3dad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xac9a88,_0x39bc4a,_0x4753f9)||(_0x569b56=!0x1);}}function _0x48e9e2(_0x17d8ea){return _0x17d8ea[_0x3d3dad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d3dad([0x65,0x79]))?JSON[_0x3d3dad([0x70,0x61,0x72,0x73,0x65])](_0x2043ef(_0x17d8ea)):null;}function _0x2043ef(_0x3845a2){return window[_0x3d3dad([0x61,0x74,0x6f,0x62])](_0x3845a2[_0x3d3dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d3dad([0x2b]))[_0x3d3dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d3dad([0x2f])));}function _0x339ecc(_0x1d624f){let _0x396484=0x1505;function _0x330c9f(_0xcbccdc){for(let _0x23ecc8=0x0;_0x23ecc8<_0xcbccdc[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23ecc8++){const _0x32fc4b=_0xcbccdc[_0x3d3dad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23ecc8);_0x396484=(_0x396484<<0x5)+_0x396484+_0x32fc4b,_0x396484&=_0x396484;}}function _0x4e6eb5(_0x57a9ba){Array[_0x3d3dad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57a9ba)?_0x57a9ba[_0x3d3dad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e6eb5):_0x57a9ba&&typeof _0x57a9ba==_0x3d3dad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d3dad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57a9ba)[_0x3d3dad([0x73,0x6f,0x72,0x74])]()[_0x3d3dad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55f51d,_0x35fa7d])=>{_0x330c9f(_0x55f51d),_0x4e6eb5(_0x35fa7d);}):_0x330c9f(window[_0x3d3dad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57a9ba));}return _0x4e6eb5(_0x1d624f),_0x396484>>>0x0;}function _0x36985b(_0xe1751){return _0xe1751[_0x3d3dad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d3dad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d3dad([0x30]));}function _0x1c6dcb(_0x5e8bc4){return _0x5e8bc4[_0x3d3dad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d3dad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d3dad([0x6a,0x6f,0x69,0x6e])]('');}function _0x37dc9c(_0x539e68){return _0x211a3f[_0x3d3dad([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d3dad([0x68,0x61,0x73])](_0x539e68);}function _0x2a314d(_0x29f379){return _0x211a3f[_0x3d3dad([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d3dad([0x67,0x65,0x74])](_0x29f379);}function _0x4c966f(){}function _0x3d3dad(_0x229b82){return _0x229b82['map'](_0x4c053a=>String['fromCharCode'](_0x4c053a))['join']('');}_0x1b4302(await _0xa624e2());}(this);}set['adapter'](_0x27dfad){if(this['_adapter'])throw new _0x3ebbb1('track-changes-adapter-already-set',this);this['_adapter']=_0x27dfad;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x36d031=!0x1,toJSON:_0x2ada54=!0x1}={}){const _0x497028=[];for(const _0xb99c41 of this['_suggestions']['values']())_0x36d031&&!_0xb99c41['isInContent']||_0x497028['push'](_0xb99c41);return _0x2ada54?_0x497028['map'](_0x92e0ce=>_0x92e0ce['toJSON']()):_0x497028;}['getSuggestion'](_0x3775cc){const _0x5ade04=this['_suggestions']['get'](_0x3775cc);if(!_0x5ade04)throw new _0x3ebbb1('track-changes-suggestion-not-found',this);return _0x5ade04;}['hasSuggestion'](_0x227b8b){return this['_suggestions']['has'](_0x227b8b);}['addSuggestionData'](_0x1b0016){const {authorId:_0x5a6fbb,id:_0x466bc9,originalSuggestionId:_0xa1357e,attributes:_0x12cb2d}=_0x1b0016,[_0x5a498d,_0x2fa86e]=_0x1b0016['type']['split'](':'),_0x37d1d0=this['_suggestions']['get'](_0x466bc9)||this['_createSuggestion'](_0x5a498d,_0x2fa86e,_0x466bc9,_0x5a6fbb,_0x12cb2d,_0xa1357e);if(this['_addThreadToSuggestion'](_0x37d1d0),this['_checkSuggestionCorrectness'](_0x37d1d0,_0x5a498d,_0x2fa86e||null,_0x5a6fbb),_0x37d1d0['createdAt']=_0x1b0016['createdAt'],_0x37d1d0['_isDataLoaded']=!0x0,_0x12cb2d&&_0x12cb2d['@external']){const _0x42fd75=_0x12cb2d['@external'],_0x130e1f=this['_getExternalAuthor'](_0x42fd75['authorName']);_0x37d1d0['authoredAt']=_0x42fd75['createdAt'],_0x37d1d0['author']=_0x130e1f,_0x37d1d0['isExternal']=!0x0;}else _0x37d1d0['authoredAt']=_0x1b0016['createdAt'];switch(_0x1b0016['data']&&(_0x37d1d0['data']=_0x1b0016['data']),_0x1b0016['attributes']&&(_0x37d1d0['attributes']=_0x1b0016['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x37d1d0['_saved']=!0x0),this['_suggestionState']['get'](_0x37d1d0)){case'notReady':this['_suggestionState']['set'](_0x37d1d0,'dataReady');break;case'markerReady':_0x37d1d0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x37d1d0])),this['_refreshSuggestionsChain'](new Set([_0x37d1d0])),this['_suggestionState']['set'](_0x37d1d0,'ready'),this['fire']('suggestionLoaded',_0x37d1d0)):this['_suggestionState']['set'](_0x37d1d0,'removed');}return _0x37d1d0;}['acceptSuggestion'](_0xb44374){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5e5c95 of _0xb44374['getAllAdjacentSuggestions']())_0x5e5c95['accept']();});});}['discardSuggestion'](_0x572e51){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23a589 of _0x572e51['getAllAdjacentSuggestions']())_0x23a589['discard']();});});}['enableCommand'](_0x2f5eeb,_0x5ba0d7){const _0x22bc8b=this['editor']['commands']['get'](_0x2f5eeb);if(!_0x22bc8b)throw new _0x3ebbb1('track-changes-command-not-found',this,{'commandName':_0x2f5eeb});if(this['_enabledCommands']['has'](_0x22bc8b))throw new _0x3ebbb1('track-changes-enable-command-twice',this,{'commandName':_0x2f5eeb});this['_enabledCommands']['add'](_0x22bc8b),_0x5ba0d7&&_0x22bc8b['on']('execute',(_0x55ae31,_0x45d0cb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x45d0cb['length']>0x0&&_0x45d0cb[_0x45d0cb['length']-0x1]&&_0x45d0cb[_0x45d0cb['length']-0x1]['forceDefaultExecution']?_0x45d0cb['pop']():(_0x55ae31['return']=_0x5ba0d7((..._0x2d2f7b)=>_0x22bc8b['execute'](..._0x2d2f7b,{'forceDefaultExecution':!0x0}),..._0x45d0cb),_0x55ae31['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5d63b2){let _0x4e988e,_0x1b1e12;const _0x103c45=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4e988e=_0x5d63b2();}catch(_0x47c747){_0x1b1e12=_0x47c747;}return _0x103c45||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b1e12&&_0x3ebbb1['rethrowUnexpectedError'](_0x1b1e12,this),_0x4e988e;}['markInsertion'](_0x3c168a,_0x23eec3=null,_0x4c84fa={}){if(_0x3c168a['isCollapsed'])return null;const _0x1be08e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4c84fa['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x577516,meta:_0x5e06c7}of this['_findSuggestions'](_0x3c168a,'insertion'))if(_0x5e06c7['isOwn']){if(!_0x5e06c7['isNextTo']){if(_0x5e06c7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x577516,_0x4c84fa))continue;return _0x577516;}if(Xt(_0x577516,_0x4c84fa))return _0x577516;this['_breakSuggestionMarker'](_0x577516,_0x3c168a['start'],_0x3c168a['end']);break;}if(_0x23eec3==_0x577516['subType']&&Xt(_0x577516,_0x4c84fa)){const _0x24ccc6=_0x577516['getFirstRange']();return _0x24ccc6['start']['isEqual'](_0x3c168a['end'])?this['_setSuggestionRange'](_0x577516,this['_model']['createRange'](_0x3c168a['start'],_0x24ccc6['end'])):this['_setSuggestionRange'](_0x577516,this['_model']['createRange'](_0x24ccc6['start'],_0x3c168a['end'])),_0x577516;}}const _0x342b38=_0xbf3332(),_0x312c29=_0x1be08e['id'],_0x2dca08=_0x23eec3?'insertion:'+_0x23eec3:'insertion',_0x3f3094=this['_setSuggestionData']({'id':_0x342b38,'type':_0x2dca08,'createdAt':new Date(),'authorId':_0x312c29,'attributes':_0x4c84fa});return this['_addSuggestionMarker'](_0x2dca08,_0x342b38,_0x312c29,_0x3c168a),_0x3f3094;}['markMultiRangeInsertion'](_0xdae06f,_0x5911f8='multi',_0xe56da7={}){const _0x5e5ea4=this['editor']['plugins']['get']('Users')['me'],_0x1b1bfb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5911f8,'join');this['_trackingSessionId']&&(_0xe56da7['trackingSessionId']=this['_trackingSessionId']);for(const _0x4f983b of this['getSuggestions']())if(_0x4f983b['author']['id']==_0x5e5ea4['id']&&'insertion'==_0x4f983b['type']&&_0x4f983b['subType']==_0x5911f8&&Xt(_0x4f983b,_0xe56da7)&&(_0x1b1bfb(_0x4f983b['getRanges'](),_0xdae06f)||_0x1b1bfb(_0xdae06f,_0x4f983b['getRanges']()))){for(const _0xba765e of _0xdae06f)_0x4f983b['addRange'](_0xba765e);return _0x4f983b;}for(const {suggestion:_0xcf6b3e,meta:_0x4df37e}of this['_findSuggestions'](_0xdae06f,'insertion')){if(!_0x4df37e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4df37e['containsRangeInObject'])continue;if(!Xt(_0xcf6b3e,_0xe56da7))continue;let _0xe4518e=!0x0;for(const _0x2f2b01 of _0xcf6b3e['getRanges']())for(const _0x2ade7c of _0xdae06f)if(!_0x2f2b01['containsRange'](_0x2ade7c)){_0xe4518e=!0x1;break;}if(_0xe4518e)return _0xcf6b3e;}const _0x5cf4e5=_0xbf3332(),_0x37e991=_0x5e5ea4['id'],_0x474b84='insertion:'+_0x5911f8,_0x44f214=this['_setSuggestionData']({'id':_0x5cf4e5,'type':_0x474b84,'createdAt':new Date(),'authorId':_0x37e991,'attributes':_0xe56da7});for(const _0x3f0b96 of _0xdae06f)this['_addSuggestionMarker'](_0x474b84,_0x5cf4e5,_0x37e991,_0x3f0b96,o['getMultiRangeId']());return _0x44f214;}['markInlineFormat'](_0x1c0534,_0x2f7745,_0x67cd50=null,_0x1ba1f3={}){if(_0x67cd50=_0x67cd50||Kt(_0x2f7745),_0x1c0534['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1ba1f3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1ad411=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x67cd50,'accept');return this['forceDefaultExecution'](()=>_0x1ad411([_0x1c0534],_0x2f7745,_0x1ba1f3)),null;}const _0x2fab74=this['editor']['plugins']['get']('Users')['me'],_0x3c5ffa=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5682f1,meta:_0x3f8735}of this['_findSuggestions'](_0x1c0534,'insertion'))_0x3f8735['isOwn']&&!_0x3f8735['isInsideObject']&&_0x3c5ffa['push'](..._0x5682f1['getRanges']());}const _0x744b10=function(_0x24fe51,_0x58d523){const _0x5361ab=[];for(const _0x46151 of _0x58d523){const _0x1c001a=_0x24fe51['getIntersection'](_0x46151);_0x1c001a&&_0x5361ab['push'](_0x1c001a);}return _0x5361ab;}(_0x1c0534,_0x3c5ffa),_0x4a215f=function(_0x7b7e2,_0xd446e3){const _0x1a866a=[_0x7b7e2];for(const _0x26dc72 of _0xd446e3){let _0x5195bf=0x0;for(;_0x5195bf<_0x1a866a['length'];){const _0x9a0795=_0x1a866a[_0x5195bf]['getDifference'](_0x26dc72);_0x1a866a['splice'](_0x5195bf,0x1,..._0x9a0795),_0x5195bf+=_0x9a0795['length'];}}return _0x1a866a;}(_0x1c0534,_0x3c5ffa);_0x744b10['length']&&this['_model']['change'](()=>{for(const _0x457d4b of _0x744b10){const _0x240f46=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x67cd50,'accept');this['forceDefaultExecution'](()=>_0x240f46([_0x457d4b],_0x2f7745,_0x1ba1f3));}});for(const _0x1630ec of _0x4a215f){let _0x29c292=null,_0xb2efb=_0x1630ec['start'],_0x400ab6=_0x1630ec['end'];for(const {suggestion:_0x3819f8,meta:_0x4abf24}of this['_findSuggestions'](_0x1630ec,'formatInline')){if(!_0x4abf24['isOwn'])continue;if(_0x3819f8['subType']!=_0x67cd50)continue;if(!Xt(_0x3819f8,_0x1ba1f3))continue;const _0x1fb37e=_0x3819f8['getFirstRange']();if(_0x1fb37e['containsRange'](_0x1630ec,!0x0))return null;_0xb2efb=_0xb2efb['isBefore'](_0x1fb37e['start'])?_0xb2efb:_0x1fb37e['start'],_0x400ab6=_0x400ab6['isAfter'](_0x1fb37e['end'])?_0x400ab6:_0x1fb37e['end'],_0x29c292?_0x1fb37e['start']['isBefore'](_0x29c292['getFirstRange']()['start'])?(_0x29c292['removeMarkers'](),_0x29c292=_0x3819f8):_0x3819f8['removeMarkers']():_0x29c292=_0x3819f8;}const _0x369c0a=this['_model']['createRange'](_0xb2efb,_0x400ab6);if(_0x29c292)this['_setSuggestionRange'](_0x29c292,_0x369c0a);else{const _0x247b5a=_0xbf3332(),_0x343306=_0x2fab74['id'];this['_setSuggestionData']({'id':_0x247b5a,'type':'formatInline:'+_0x67cd50,'data':_0x2f7745,'createdAt':new Date(),'authorId':_0x343306,'attributes':_0x1ba1f3}),this['_addSuggestionMarker']('formatInline:'+_0x67cd50,_0x247b5a,_0x343306,_0x369c0a);}}return null;}['markBlockFormat'](_0x2ac15a,_0x2073a8,_0x34be06=[],_0x5ac0d2=null,_0x2afa26={}){_0x2073a8['formatGroupId']||(_0x2073a8['formatGroupId']=_0x2073a8['commandName']),_0x2073a8['multipleBlocks']=_0x2ac15a['is']('range'),_0x5ac0d2=_0x5ac0d2||Kt(_0x2073a8);const _0x155cef=_0x34be06['map'](_0x20cbb0=>zt(_0x20cbb0,this['_model'])),_0x1475cb=_0x2ac15a['is']('range')?_0x2ac15a:zt(_0x2ac15a,this['_model']);if(this['_trackingSessionId']&&(_0x2afa26['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x45e6b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ac0d2,'accept');return this['forceDefaultExecution'](()=>_0x45e6b1([_0x1475cb],_0x2073a8,_0x2afa26)),null;}_0x155cef['push'](_0x1475cb);let _0x471f67=!0x0;for(const _0x154cbe of _0x155cef)if(!this['_rangeIsInLocalUserInsertion'](_0x154cbe)){_0x471f67=!0x1;break;}if(_0x471f67&&'always'!==this['_trackFormatChanges']){const _0x2f1047=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ac0d2,'accept');return this['forceDefaultExecution'](()=>_0x2f1047([_0x1475cb],_0x2073a8,_0x2afa26)),null;}let _0x461828=null,_0x4b47de=_0x1475cb['start'],_0xb2f24c=_0x1475cb['end'];for(const {suggestion:_0x47e68a,meta:_0x4c5423}of this['_findSuggestions'](_0x1475cb,'formatBlock')){if(!_0x4c5423['isOwn'])continue;if(_0x4c5423['isNextTo']||_0x4c5423['containsRangeInObject']||_0x4c5423['isInsideObject'])continue;if(_0x47e68a['data']['formatGroupId']!=_0x2073a8['formatGroupId'])continue;if(!Xt(_0x47e68a,_0x2afa26))continue;const _0x2df409=_0x47e68a['getFirstRange']();if(_0x47e68a['subType']==_0x5ac0d2){if(_0x2df409['containsRange'](_0x1475cb,!0x0))return null;_0x4b47de=_0x4b47de['isBefore'](_0x2df409['start'])?_0x4b47de:_0x2df409['start'],_0xb2f24c=_0xb2f24c['isAfter'](_0x2df409['end'])?_0xb2f24c:_0x2df409['end'],_0x461828?_0x2df409['start']['isBefore'](_0x461828['getFirstRange']()['start'])?(_0x461828['removeMarkers'](),_0x461828=_0x47e68a):_0x47e68a['removeMarkers']():_0x461828=_0x47e68a;}else{const _0x563d1c=_0x1475cb['getIntersection'](_0x2df409);this['_cutOutSuggestionMarker'](_0x47e68a,_0x563d1c);}}const _0x539140=this['editor']['plugins']['get']('Users')['me'],_0x4e853c=_0xbf3332(),_0x4be96f=_0x539140['id'];if(_0x461828)return this['_setSuggestionRange'](_0x461828,this['_model']['createRange'](_0x4b47de,_0xb2f24c)),_0x461828;{const _0x265042=this['_setSuggestionData']({'id':_0x4e853c,'type':'formatBlock:'+_0x5ac0d2,'data':_0x2073a8,'createdAt':new Date(),'authorId':_0x4be96f,'attributes':_0x2afa26});return this['_addSuggestionMarker']('formatBlock:'+_0x5ac0d2,_0x4e853c,_0x4be96f,this['_model']['createRange'](_0x4b47de,_0xb2f24c)),_0x265042;}}['markMultiRangeBlockFormat'](_0xdc760c,_0x26ff43,_0x3fe330=[],_0x5606cf=null,_0x397c90={}){_0x26ff43['formatGroupId']||(_0x26ff43['formatGroupId']=_0x26ff43['commandName']);const _0x22c0e2=_0xdc760c[0x0];_0x26ff43['multipleBlocks']=_0x22c0e2['is']('range'),_0x5606cf=_0x5606cf||Kt(_0x26ff43);const _0x5794dd=_0x3fe330['map'](_0x482ab0=>zt(_0x482ab0,this['_model'])),_0x26643f=_0x22c0e2['is']('range')?_0xdc760c:_0xdc760c['map'](_0x282d62=>zt(_0x282d62,this['_model']));if(this['_trackingSessionId']&&(_0x397c90['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x277116=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5606cf,'accept');return this['forceDefaultExecution'](()=>_0x277116(_0x26643f,_0x26ff43,_0x397c90)),null;}_0x5794dd['push'](..._0x26643f);let _0x440586=!0x0;for(const _0x11b929 of _0x5794dd)if(!this['_rangeIsInLocalUserInsertion'](_0x11b929)){_0x440586=!0x1;break;}if(_0x440586&&'always'!==this['_trackFormatChanges']){const _0x33ed24=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5606cf,'accept');return this['forceDefaultExecution'](()=>_0x33ed24(_0x26643f,_0x26ff43,_0x397c90)),null;}const _0x2fb9a7=this['editor']['plugins']['get']('Users')['me'];for(const _0x320b9b of this['getSuggestions']()){if(_0x320b9b['author']['id']!=_0x2fb9a7['id'])continue;if('formatBlock'!=_0x320b9b['type']||_0x320b9b['data']['formatGroupId']!=_0x26ff43['formatGroupId'])continue;if(!Xt(_0x320b9b,_0x397c90))continue;const _0x406067=_0x320b9b['subType']==_0x5606cf;for(let _0x2a740e=0x0;_0x2a740e<_0x26643f['length'];_0x2a740e++){const _0x11f956=_0x26643f[_0x2a740e];for(const _0x2e1c55 of _0x320b9b['getMarkers']()){const _0x40b3b5=_0x2e1c55['getRange']();if(_0x11f956['isEqual'](_0x40b3b5)){_0x406067?(_0x26643f['splice'](_0x2a740e,0x1),_0x2a740e--):_0x320b9b['removeMarker'](_0x2e1c55['name']);break;}}}}if(0x0==_0x26643f['length'])return null;const _0x1e53e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5606cf,'join');for(const _0x2a7138 of this['getSuggestions']())if(_0x2a7138['author']['id']==_0x2fb9a7['id']&&'formatBlock'==_0x2a7138['type']&&_0x2a7138['data']['formatGroupId']==_0x26ff43['formatGroupId']&&_0x2a7138['subType']==_0x5606cf&&Xt(_0x2a7138,_0x397c90)&&(_0x1e53e9(_0x2a7138['getRanges'](),_0x26643f)||_0x1e53e9(_0x26643f,_0x2a7138['getRanges']()))){for(const _0x3b1382 of _0x26643f)_0x2a7138['addRange'](_0x3b1382);return _0x2a7138;}const _0x4719f6=_0xbf3332(),_0x5df0a8=_0x2fb9a7['id'],_0x55807c='formatBlock:'+_0x5606cf,_0x7080e3=this['_setSuggestionData']({'id':_0x4719f6,'type':_0x55807c,'data':_0x26ff43,'createdAt':new Date(),'authorId':_0x5df0a8,'attributes':_0x397c90});for(const _0x2e8c40 of _0x26643f)this['_addSuggestionMarker'](_0x55807c,_0x4719f6,_0x5df0a8,_0x2e8c40,o['getMultiRangeId']());return _0x7080e3;}['markDeletion'](_0x2cad82,_0xca3712=null,_0x400e91={}){if(_0x2cad82['isCollapsed'])return null;const _0x59e172=this['editor']['plugins']['get']('Users')['me'],_0x32a96d=new _0x5b3987(_0x2cad82['start'],_0x2cad82['end']);this['_trackingSessionId']&&(_0x400e91['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2e074f,meta:_0x19a0aa}of this['_findSuggestions'](_0x32a96d,'insertion'))if(_0x19a0aa['isOwn']&&!_0x19a0aa['isNextTo']){if(_0x2e074f['isMultiRange']){const _0x4cdab9=_0x2e074f['getRanges']()['filter'](_0x14640a=>'$graveyard'!=_0x14640a['root']['rootName']);_0x4cdab9['every'](_0x2ba02c=>_0x32a96d['containsRange'](_0x2ba02c,!0x0))&&_0x2e074f['discard']();if(_0x4cdab9['some'](_0x4d692e=>_0x4d692e['containsRange'](_0x32a96d,!0x0))){const _0x1d2331=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xca3712,'accept');return this['forceDefaultExecution'](()=>_0x1d2331([_0x32a96d],null,_0x400e91)),null;}}else{const _0x492cfc=_0x32a96d['getIntersection'](_0x2e074f['getFirstRange']());null!==_0x492cfc&&_0x2e074f['_onDiscard']([_0x492cfc],null,_0x400e91);}}if(_0x32a96d['detach'](),_0x32a96d['isCollapsed']||'$graveyard'==_0x32a96d['root']['rootName'])return null;let _0x2b4ef7=null,_0x5a6246=_0x32a96d['start'],_0x4f80a8=_0x32a96d['end'];const _0xd08331=this['_findSuggestions'](_0x32a96d,'deletion');for(const {suggestion:_0x43f089,meta:_0x56604f}of _0xd08331){const _0x47d492=this['_model']['createRange'](_0x5a6246,_0x4f80a8);if(_0x56604f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x56604f['containsRangeInObject']&&!_0x56604f['isInsideObject'])){if(_0x43f089['isMultiRange']){if(!Xt(_0x43f089,_0x400e91))continue;let _0x168793=!0x0;for(const _0x22fbbf of _0x43f089['getRanges']()){if(_0x22fbbf['containsRange'](_0x47d492,!0x0))return _0x43f089;_0x47d492['containsRange'](_0x22fbbf)||(_0x168793=!0x1);}_0x168793&&_0x43f089['discard']();}else{const _0xf1ab79=_0x43f089['getFirstRange']();if(_0xf1ab79['containsRange'](_0x47d492,!0x0))return _0x43f089;if(!Xt(_0x43f089,_0x400e91)){_0x47d492['containsRange'](_0xf1ab79)?_0x43f089['removeMarkers']():_0xf1ab79['containsPosition'](_0x5a6246)?_0x5a6246=_0xf1ab79['end']:_0xf1ab79['containsPosition'](_0x4f80a8)&&(_0x4f80a8=_0xf1ab79['start']);continue;}_0x5a6246=_0x5a6246['isBefore'](_0xf1ab79['start'])?_0x5a6246:_0xf1ab79['start'],_0x4f80a8=_0x4f80a8['isAfter'](_0xf1ab79['end'])?_0x4f80a8:_0xf1ab79['end'],_0x400e91=Object['assign']({},_0x43f089['attributes']),_0x2b4ef7?_0xf1ab79['start']['isBefore'](_0x2b4ef7['getFirstRange']()['start'])?(_0x2b4ef7['removeMarkers'](),_0x2b4ef7=_0x43f089):_0x43f089['removeMarkers']():_0x2b4ef7=_0x43f089;}}}if(_0x2b4ef7)return this['_setSuggestionRange'](_0x2b4ef7,this['_model']['createRange'](_0x5a6246,_0x4f80a8)),_0x2b4ef7;{const _0x4c41ce=_0xbf3332(),_0x114915=this['_model']['createRange'](_0x5a6246,_0x4f80a8),_0xad5f82=_0x59e172['id'],_0x4fb693=_0xca3712?'deletion:'+_0xca3712:'deletion',_0x750c1e=this['_setSuggestionData']({'id':_0x4c41ce,'type':_0x4fb693,'createdAt':new Date(),'authorId':_0xad5f82,'attributes':_0x400e91});return this['_addSuggestionMarker'](_0x4fb693,_0x4c41ce,_0xad5f82,_0x114915),_0x750c1e;}}['markMultiRangeDeletion'](_0x2eba9d,_0x42ed1d='multi',_0x11eb4a={}){const _0x4f1d37=this['editor']['plugins']['get']('Users')['me'],_0x4823a3=_0x2eba9d['map'](_0x246329=>new _0x5b3987(_0x246329['start'],_0x246329['end'])),_0x21aa74=new Set();this['_trackingSessionId']&&(_0x11eb4a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3fdbfa,meta:_0x103bb9}of this['_findSuggestions'](_0x4823a3,'insertion'))_0x103bb9['isOwn']&&!_0x103bb9['isNextTo']&&_0x21aa74['add'](_0x3fdbfa);for(const _0x52c30e of _0x21aa74)if(_0x52c30e['isMultiRange']){const _0x31fb72=_0x52c30e['getRanges']();(!_0x52c30e['attributes']||!_0x52c30e['attributes']['skipNestingCheck'])&&(_0x31fb72['every'](_0x4ef280=>_0x4823a3['some'](_0x5f2b03=>_0x5f2b03['containsRange'](_0x4ef280,!0x0)))&&_0x52c30e['discard']());if(_0x4823a3['every'](_0x13b758=>_0x31fb72['some'](_0x2f8883=>_0x2f8883['containsRange'](_0x13b758,!0x0)))){const _0x5df9ce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42ed1d,'accept');return this['forceDefaultExecution'](()=>_0x5df9ce(_0x2eba9d,null,_0x11eb4a)),null;}}else{const _0x2d7e4d=_0x52c30e['getFirstRange']();_0x4823a3['some'](_0x4833f3=>_0x4833f3['containsRange'](_0x2d7e4d,!0x0))&&_0x52c30e['discard']();if(_0x4823a3['every'](_0x3ea5fb=>_0x2d7e4d['containsRange'](_0x3ea5fb,!0x0))){const _0x2b756c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42ed1d,'accept');return this['forceDefaultExecution'](()=>_0x2b756c(_0x4823a3,null,_0x11eb4a)),null;}}const _0x49af9d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42ed1d,'join');let _0x409021=null;for(const _0x4e6652 of this['getSuggestions']())if(_0x4e6652['author']['id']==_0x4f1d37['id']&&_0x4e6652['isInContent']&&'deletion'==_0x4e6652['type']&&_0x4e6652['subType']==_0x42ed1d&&Xt(_0x4e6652,_0x11eb4a)&&(_0x49af9d(_0x4e6652['getRanges'](),_0x4823a3)||_0x49af9d(_0x4823a3,_0x4e6652['getRanges']()))){if(_0x409021){if(_0x4e6652['commentThread']&&_0x4e6652['commentThread']['length'])continue;for(const _0x3eefbd of _0x4e6652['getRanges']())_0x409021['isIntersectingWithRange'](_0x3eefbd)||_0x409021['addRange'](_0x3eefbd);_0x4e6652['removeMarkers']();}else{_0x409021=_0x4e6652;for(const _0x2dd148 of _0x4823a3)_0x4e6652['isIntersectingWithRange'](_0x2dd148)||_0x4e6652['addRange'](_0x2dd148);}}if(_0x409021)return _0x409021;_0x21aa74['clear']();for(const {suggestion:_0x58c4da,meta:_0x1e722f}of this['_findSuggestions'](_0x4823a3,'deletion'))_0x1e722f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e722f['containsRangeInObject']&&!_0x1e722f['isInsideObject'])&&Xt(_0x58c4da,_0x11eb4a)&&_0x21aa74['add'](_0x58c4da);for(const _0xadbdb8 of _0x21aa74){const _0x74bd5d=_0xadbdb8['getRanges']();if(!_0x11eb4a||!_0x11eb4a['skipNestingCheck']){if(_0x4823a3['every'](_0x3e980c=>_0x74bd5d['some'](_0x4c7d17=>_0x4c7d17['containsRange'](_0x3e980c,!0x0))))return _0xadbdb8;}(!_0xadbdb8['attributes']||!_0xadbdb8['attributes']['skipNestingCheck'])&&(_0x74bd5d['every'](_0x18c342=>_0x4823a3['some'](_0x573ab7=>_0x573ab7['containsRange'](_0x18c342,!0x0)))&&_0xadbdb8['discard']());}const _0x4ba1ab=_0xbf3332(),_0x9652b4=_0x4f1d37['id'],_0x388d91='deletion:'+_0x42ed1d,_0x17ff8a=this['_setSuggestionData']({'id':_0x4ba1ab,'type':_0x388d91,'createdAt':new Date(),'authorId':_0x9652b4,'attributes':_0x11eb4a});for(const _0x135183 of _0x4823a3)_0x135183['detach'](),_0x135183['isCollapsed']||'$graveyard'==_0x135183['root']['rootName']||this['_addSuggestionMarker'](_0x388d91,_0x4ba1ab,_0x9652b4,_0x135183,o['getMultiRangeId']());return _0x17ff8a;}['markAttributeChange'](_0x369686,_0x3227ae,_0x3a9421,_0x19d848,_0x4a89cd){if(_0x369686['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5c4a1d=this['editor']['plugins']['get']('Users')['me']['id'],_0x4929f2=Array['from'](this['_suggestions']['values']())['filter'](_0x46ab43=>'attribute'==_0x46ab43['type']&&_0x46ab43['data']['key']==_0x3227ae&&_0x46ab43['isIntersectingWithRange'](_0x369686));if(this['_trackingSessionId']&&(_0x4a89cd['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3d742d=this['_findSuggestions'](_0x369686,'insertion')['filter'](({meta:_0x5d4747})=>_0x5d4747['isOwn']&&!_0x5d4747['isInsideObject']&&!_0x5d4747['isNextTo'])['map'](({suggestion:_0x3b7d7a})=>_0x3b7d7a);_0x4929f2['unshift'](..._0x3d742d);}const _0x3e2584=new Map([[_0x369686,_0x3a9421]]);for(const _0x15db28 of _0x4929f2){const _0x4195d3='attribute'==_0x15db28['type']?_0x15db28['data']['oldValue']:void 0x0,_0x1017db=_0x15db28['getFirstRange'](),_0x599ed5=Array['from'](_0x3e2584['keys']())['find'](_0x5e834d=>_0x5e834d['isIntersecting'](_0x1017db));if(!_0x599ed5)continue;const _0x400015=_0x599ed5['getDifference'](_0x1017db);this['_isBlockAttribute'](_0x3227ae)&&'insertion'==_0x15db28['type']&&0x0!=_0x400015['length']||(_0x3e2584['delete'](_0x599ed5),_0x400015['forEach'](_0x3f1d7c=>{_0x3e2584['set'](_0x3f1d7c,_0x3a9421);}),'insertion'!=_0x15db28['type']&&_0x4195d3!=_0x19d848&&_0x3e2584['set'](_0x599ed5['getIntersection'](_0x1017db),_0x4195d3));}const _0x2aa4ae=[];for(const [_0x1c83d4,_0x4e89ee]of _0x3e2584){const _0x58a04d=_0xbf3332(),_0x3bb493={'key':_0x3227ae,'oldValue':_0x4e89ee,'newValue':_0x19d848};_0x3227ae['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':_0x3227ae});const _0x577091=('attribute:'+(_0x3227ae+'|'+Kt({'newValue':_0x19d848})))['substring'](0x0,0x3c),_0x3785e4=this['_setSuggestionData']({'id':_0x58a04d,'type':_0x577091,'data':_0x3bb493,'createdAt':new Date(),'authorId':_0x5c4a1d,'attributes':_0x4a89cd});_0x2aa4ae['push'](_0x3785e4),this['_addSuggestionMarker'](_0x577091,_0x58a04d,_0x5c4a1d,_0x1c83d4);}return _0x2aa4ae;}['enableDefaultAttributesIntegration'](_0x4ad54c){this['enableCommand'](_0x4ad54c,(_0x59b5f7,..._0xd24f11)=>{this['_recordAttributeChanges'](()=>{_0x59b5f7(..._0xd24f11);});});}['registerBlockAttribute'](_0x411a05){this['_blockAttributeKeys']['add'](_0x411a05);}['registerInlineAttribute'](_0xafa8e6){this['_inlineAttributeKeys']['add'](_0xafa8e6);}['startTrackingSession'](_0x18e4c6){return this['_trackingSessionId']=void 0x0!==_0x18e4c6?_0x18e4c6:_0xbf3332(),this['_trackingSessionId'];}['_getAttributeKey'](_0x27ba7d){return'attribute'==_0x27ba7d['type']?_0x27ba7d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x189fbc,_0x4ca7ab){const _0x1aa87a=_0x189fbc['getFirstMarker']();this['_model']['change'](_0x31ed8a=>{_0x31ed8a['updateMarker'](_0x1aa87a,{'range':_0x4ca7ab});});}['_addThreadToSuggestion'](_0x27c7c3){const _0x4c4d17=_0x27c7c3['id'],_0x322eaf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4c4d17)||this['_commentsRepository']['addCommentThread']({'channelId':_0x322eaf,'threadId':_0x4c4d17,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x380e00=this['_commentsRepository']['getCommentThread'](_0x4c4d17);_0x380e00['unbind']('isRemovable'),_0x380e00['isRemovable']=!0x1,_0x27c7c3['commentThread']=_0x380e00;}['_checkSuggestionCorrectness'](_0x1fee26,_0x50e1db,_0x5988f8,_0x13d506){if(_0x1fee26['type']!=_0x50e1db||_0x1fee26['subType']!=_0x5988f8||_0x1fee26['creator']['id']!=_0x13d506)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ebbb1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4044f9,_0x52ee43){const _0x397aa1=_0x4044f9['getFirstRange']();if(_0x52ee43['isEqual'](_0x397aa1))_0x4044f9['removeMarkers']();else{if(_0x397aa1['containsRange'](_0x52ee43)){const _0x4098f6=this['_model']['createPositionAt'](_0x52ee43['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4044f9,this['_model']['createRange'](_0x397aa1['start'],_0x4098f6));const _0xd95176=_0xbf3332(),_0x291984=_0x4044f9['creator']['id'],_0x471657=_0x4044f9['type']+':'+_0x4044f9['subType'];this['_setSuggestionData']({'id':_0xd95176,'type':_0x471657,'createdAt':new Date(),'authorId':_0x291984,'data':_0x4044f9['data'],'attributes':_0x4044f9['attributes']});const _0x51177c=this['_model']['createPositionAt'](_0x52ee43['end']['parent'],'after'),_0x2224a3=this['_model']['createRange'](_0x51177c,_0x397aa1['end']);this['_addSuggestionMarker'](_0x471657,_0xd95176,_0x291984,_0x2224a3);}else{if(_0x397aa1['containsPosition'](_0x52ee43['start'])){const _0x3b6410=this['_model']['createPositionAt'](_0x52ee43['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4044f9,this['_model']['createRange'](_0x397aa1['start'],_0x3b6410));}else{const _0x189bf6=this['_model']['createPositionAt'](_0x52ee43['end']['parent'],'after');this['_setSuggestionRange'](_0x4044f9,this['_model']['createRange'](_0x189bf6,_0x397aa1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x59cc7d){for(const {suggestion:_0x1c7545,meta:_0x1d878c}of this['_findSuggestions'](_0x59cc7d,'insertion')){if(!_0x1d878c['isOwn'])continue;const _0xbdfced=_0x1c7545['getRanges']();for(const _0x12f27e of _0xbdfced)if(!_0x59cc7d['getDifference'](_0x12f27e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x11fcdd){const _0x2f546e=this['editor']['plugins']['get']('Users')['getUser'](_0x11fcdd);if(!_0x2f546e)throw new _0x3ebbb1('track-changes-user-not-found',this);return _0x2f546e;}['_getExternalAuthor'](_0x4da57e){const _0x4feb00=this['editor']['plugins']['get']('Users'),_0x4070f2=_0x473f1e('external:'+_0x4da57e),_0x4347fc=_0x4feb00['getUser'](_0x4070f2);return _0x4347fc||_0x4feb00['addUser']({'id':_0x4070f2,'name':_0x4da57e});}['_createSuggestion'](_0x53ccce,_0x31f6ac,_0x3c75ea,_0x252b27,_0x50f617,_0x4a62bd){const _0x3d524e=this['_getAuthorFromId'](_0x252b27),_0x2ce48d=this['_suggestionFactory']['buildSuggestion'](_0x53ccce,_0x31f6ac,_0x3c75ea,_0x3d524e,_0x50f617,_0x243f99=>{this['_updateSuggestionData'](_0x3c75ea,{'attributes':_0x243f99});const _0x3700d9=this['getSuggestion'](_0x3c75ea);this['_joinWithAdjacentSuggestions'](new Set([_0x3700d9])),this['_refreshSuggestionsChain'](new Set([_0x3700d9]));},_0x4a62bd);return this['listenTo'](_0x2ce48d,'accept',()=>{this['_updateSuggestionData'](_0x3c75ea,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2ce48d,'discard',()=>{this['_updateSuggestionData'](_0x3c75ea,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3c75ea,_0x2ce48d),this['_suggestionState']['set'](_0x2ce48d,'notReady'),_0x2ce48d;}['_splitMarkerName'](_0x192baa){const _0x7a61a3=_0x192baa['split'](':');return{'group':_0x7a61a3[0x0],'type':_0x7a61a3[0x1],'subType':_0x7a61a3['length']>=0x5?_0x7a61a3[0x2]:null,'id':_0x7a61a3['length']<0x5?_0x7a61a3[0x2]:_0x7a61a3[0x3],'authorId':_0x7a61a3['length']<0x5?_0x7a61a3[0x3]:_0x7a61a3[0x4],'markerCount':0x6==_0x7a61a3['length']?_0x7a61a3[0x5]:null};}['_breakSuggestionMarker'](_0x2a6b3f,_0x5ce217,_0x31df11){const _0x3e8602=_0x2a6b3f['getFirstRange'](),_0x26bf65=_0x3e8602['start'],_0x11bc47=_0x3e8602['end'];this['_setSuggestionRange'](_0x2a6b3f,this['_model']['createRange'](_0x26bf65,_0x5ce217));const _0x15d1af=_0xbf3332(),_0x1b76df=_0x2a6b3f['creator']['id'],_0x59aeca=_0x2a6b3f['type']+(_0x2a6b3f['subType']?':'+_0x2a6b3f['subType']:'');this['_setSuggestionData']({'id':_0x15d1af,'type':_0x59aeca,'createdAt':new Date(),'authorId':_0x1b76df,'originalSuggestionId':_0x2a6b3f['_originalSuggestionId']||_0x2a6b3f['id'],'attributes':_0x2a6b3f['attributes'],'data':_0x2a6b3f['data']});const _0x405fca=this['_getAttributeKey'](_0x2a6b3f);('formatBlock'==_0x2a6b3f['type']||_0x405fca&&this['_isBlockAttribute'](_0x405fca))&&(_0x31df11=this['_model']['createPositionBefore'](_0x31df11['parent'])),this['_addSuggestionMarker'](_0x59aeca,_0x15d1af,_0x1b76df,this['_model']['createRange'](_0x31df11,_0x11bc47));}['_findSuggestions'](_0x96392f,_0xd1c916=null){const _0x13b1cc=[],_0x12f894=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x96392f)||(_0x96392f=[_0x96392f]);for(const _0x387a67 of this['getSuggestions']()){if(!_0x387a67['isInContent'])continue;if(_0xd1c916&&_0x387a67['type']!=_0xd1c916)continue;let _0x5ecc81=!0x1;for(const _0x2a39e5 of _0x387a67['getRanges']()){for(const _0x4daa82 of _0x96392f){const _0x4646c5=_0x4daa82['start']['isEqual'](_0x2a39e5['end'])||_0x4daa82['end']['isEqual'](_0x2a39e5['start']);if(_0x4646c5||_0x4daa82['getIntersection'](_0x2a39e5)){const _0x2012e2=_0x4daa82['containsRange'](_0x2a39e5)&&Gt(this['_model']['schema'],_0x2a39e5['start'],_0x4daa82),_0x30d5ba=_0x2a39e5['containsRange'](_0x4daa82)&&Gt(this['_model']['schema'],_0x4daa82['start'],_0x2a39e5);_0x13b1cc['push']({'suggestion':_0x387a67,'meta':{'isOwn':_0x12f894==_0x387a67['author'],'isNextTo':_0x4646c5,'isInsideObject':_0x2012e2,'containsRangeInObject':_0x30d5ba}}),_0x5ecc81=!0x0;break;}}if(_0x5ecc81)break;}}return _0x13b1cc;}['_addSuggestionMarker'](_0x2e93f8,_0x4627df,_0xc3973d,_0x8a9bd2,_0x1b81ef){this['_model']['change'](_0x62c4a4=>{let _0x1a446e='suggestion:'+_0x2e93f8+':'+_0x4627df+':'+_0xc3973d;_0x1b81ef&&(_0x1a446e=_0x1a446e+':'+_0x1b81ef),_0x62c4a4['addMarker'](_0x1a446e,{'range':_0x8a9bd2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x263a2f){const _0x27b1a6=_0x263a2f['previous'],_0x2c1edf=_0x263a2f['next'];_0x263a2f['previous']=null,_0x263a2f['next']=null,null!=_0x27b1a6&&_0x27b1a6['next']==_0x263a2f&&(_0x27b1a6['next']=_0x2c1edf),null!=_0x2c1edf&&_0x2c1edf['previous']==_0x263a2f&&(_0x2c1edf['previous']=_0x27b1a6),'ready'==this['_suggestionState']['get'](_0x263a2f)&&(this['_suggestionState']['set'](_0x263a2f,'removed'),this['fire']('suggestionUnloaded',_0x263a2f,_0x27b1a6,_0x2c1edf));}['_setSuggestionData'](_0x1c71f1){const _0x392f9d=_0x1c71f1['id'],_0x1325c3=this['addSuggestionData'](_0x1c71f1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x353876=this['editor']['plugins']['get']('PendingActions'),_0x2667b5=_0x1325c3['hasComments'],_0x30330a=_0x1325c3['subType']?_0x1325c3['type']+':'+_0x1325c3['subType']:_0x1325c3['type'],_0x327fdc=this['editor']['locale'],_0x41743a=_0x353876['add'](c(_0x327fdc,'PENDING_ACTION_SUGGESTION')),_0x1d5e0f={'id':_0x392f9d,'type':_0x30330a,'hasComments':_0x2667b5,'data':_0x1c71f1['data']||null,'originalSuggestionId':_0x1c71f1['originalSuggestionId']||null,'attributes':_0x1325c3['attributes']};this['_adapter']['addSuggestion'](_0x1d5e0f)['then'](_0x1069f9=>{_0x1325c3['_saved']=!0x0,_0x353876['remove'](_0x41743a),_0x1069f9&&_0x1069f9['createdAt']&&(this['_suggestions']['get'](_0x392f9d)['createdAt']=_0x1069f9['createdAt']);})['catch'](_0x2df9d8=>{throw _0x27513f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1325c3['discard']();}),_0x1325c3['stopListening'](),this['_suggestions']['delete'](_0x1325c3['id']),this['_suggestionState']['delete'](_0x1325c3),_0x2df9d8;});}return _0x1325c3;}['_isBlockAttribute'](_0x2823a9){return this['_blockAttributeKeys']['has'](_0x2823a9);}['_updateSuggestionData'](_0x493603,_0x4f236a){const _0x1dafc9=this['editor']['plugins']['get']('PendingActions'),_0x3f0149=this['getSuggestion'](_0x493603);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3f0149['_saved']){const _0x34b364=_0x1dafc9['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x493603,_0x4f236a)['then'](()=>{_0x1dafc9['remove'](_0x34b364);});}else _0x3f0149['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x493603,_0x4f236a);});}}['_getSuggestionData'](_0x597f02){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3ebbb1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x597f02);}['_handleNewSuggestionMarker'](_0x25b00d){const {id:_0x4029ed,type:_0xe67def,subType:_0x2e077d,authorId:_0xca8a1f}=this['_splitMarkerName'](_0x25b00d),_0x3405c6=this['_suggestions']['get'](_0x4029ed)||this['_createSuggestion'](_0xe67def,_0x2e077d,_0x4029ed,_0xca8a1f,{});switch(this['_checkSuggestionCorrectness'](_0x3405c6,_0xe67def,_0x2e077d,_0xca8a1f),this['_suggestionState']['get'](_0x3405c6)){case'notReady':this['_getSuggestionData'](_0x4029ed)['then'](_0xa99af2=>{let _0x19eb97=Promise['resolve']();_0xa99af2['hasComments']&&(_0x19eb97=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4029ed})),_0x19eb97['then'](()=>{this['addSuggestionData'](_0xa99af2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3405c6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4029ed,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3405c6,'ready'),this['fire']('suggestionLoaded',_0x3405c6);break;case'ready':this['fire']('suggestionChanged',_0x3405c6);}return _0x3405c6['addMarkerName'](_0x25b00d),_0x3405c6;}['_refreshSuggestionsChain'](_0x5bf33c){const _0x3f008d=Array['from'](_0x5bf33c),_0x428ae9=_0x3f008d['filter'](_0x48c723=>'attribute'==_0x48c723['type']);this['_refreshAttributeSuggestionsChain'](_0x428ae9);const _0x217dce=_0x3f008d['filter'](_0x254106=>!_0x254106['isMultiRange']&&'attribute'!=_0x254106['type']),_0xbea18b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29c97c=>!_0x29c97c['isMultiRange']&&'attribute'!=_0x29c97c['type']),_0xd53cf2=_0xbea18b['filter'](_0x167f0b=>!_0x5bf33c['has'](_0x167f0b)),_0x4afa10=new Map(_0xbea18b['map'](_0x28b848=>[_0x28b848,this['_suggestionFactory']['getSuggestionCallback'](_0x28b848['type'],_0x28b848['subType'],'chain')])),_0x4c68c2=new Map(_0xbea18b['map'](_0x23b519=>[_0x23b519,_0x23b519['getFirstRange']()])),_0x563e9d=new Set(),_0x5ba921=new Set();for(let _0x5077d2=0x0;_0x5077d2<_0x217dce['length'];_0x5077d2++)_0x1f35e3(_0x217dce[_0x5077d2],_0x217dce,_0x5077d2+0x1);for(let _0x24b6c8=0x0;_0x24b6c8<_0x217dce['length'];_0x24b6c8++)_0x1f35e3(_0x217dce[_0x24b6c8],_0xd53cf2,0x0);const _0x203a74=new Set();for(let _0x4c2e93=0x0;_0x4c2e93<_0x217dce['length'];_0x4c2e93++){const _0x3d9833=_0x217dce[_0x4c2e93];!_0x5ba921['has'](_0x3d9833)&&_0x3d9833['previous']&&(_0x203a74['add'](_0x3d9833['previous']),_0x3d9833['previous']['next']===_0x3d9833&&(_0x3d9833['previous']['next']=null),_0x3d9833['previous']=null),!_0x563e9d['has'](_0x3d9833)&&_0x3d9833['next']&&(_0x203a74['add'](_0x3d9833['next']),_0x3d9833['next']['previous']===_0x3d9833&&(_0x3d9833['next']['previous']=null),_0x3d9833['next']=null);}function _0x1f35e3(_0x4215e7,_0x45f201,_0x26494c){for(let _0x51afba=_0x26494c;_0x51afba<_0x45f201['length'];_0x51afba++){const _0x5220ac=_0xee8f5d(_0x4215e7,_0x45f201[_0x51afba]);_0x5220ac&&(_0x5220ac[0x0]['next']=_0x5220ac[0x1],_0x5220ac[0x1]['previous']=_0x5220ac[0x0],_0x563e9d['add'](_0x5220ac[0x0]),_0x5ba921['add'](_0x5220ac[0x1]));}}function _0xee8f5d(_0x3af99b,_0x23a1b4){if(_0x3af99b['author']['id']!==_0x23a1b4['author']['id'])return null;const _0x133ee2=_0x4afa10['get'](_0x3af99b)(_0x3af99b,_0x23a1b4,_0x4c68c2['get'](_0x3af99b),_0x4c68c2['get'](_0x23a1b4));if(!_0x133ee2)return null;return _0x4afa10['get'](_0x23a1b4)(_0x3af99b,_0x23a1b4,_0x4c68c2['get'](_0x3af99b),_0x4c68c2['get'](_0x23a1b4))?_0x133ee2[0x1]['commentThread']&&_0x133ee2[0x1]['commentThread']['length']?null:_0x133ee2:null;}_0x203a74['size']&&this['_refreshSuggestionsChain'](_0x203a74);}['_refreshAttributeSuggestionsChain'](_0x51debf){if(0x0==_0x51debf['length'])return;const _0x17c658=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46c63f=>'attribute'==_0x46c63f['type']&&_0x46c63f['_isDataLoaded']),_0x496b7c=[],_0x1b4777=new Map();for(const _0x2550ea of _0x17c658){const _0x5c1f67=_0x473f1e(_0x2550ea['attributes']);_0x1b4777['has'](_0x5c1f67)||(_0x1b4777['set'](_0x5c1f67,_0x496b7c['length']),_0x496b7c['push']([]));const _0x34b5f0=_0x1b4777['get'](_0x5c1f67);_0x496b7c[_0x34b5f0]['push'](_0x2550ea);}!(function(){_0x496b7c['sort']((_0x16cab2,_0x5468b8)=>{const _0x5a86ee=_0x16cab2[0x0]['createdAt'],_0xf8c692=_0x5468b8[0x0]['createdAt'];return _0x5a86ee==_0xf8c692?_0x16cab2[0x0]['attributes']['groupId']<_0x5468b8[0x0]['attributes']['groupId']?-0x1:0x1:_0x5a86ee<_0xf8c692?-0x1:0x1;});for(const _0x30c691 of _0x496b7c)_0x30c691['sort']((_0x7effda,_0x318e65)=>_0x7effda['id']<_0x318e65['id']?-0x1:0x1);}());for(let _0x213902=0x0;_0x213902<_0x496b7c['length'];_0x213902++){if(0x0==_0x496b7c[_0x213902]['length'])continue;const _0x5da996=[];for(let _0x12f90a=_0x213902+0x1;_0x12f90a<_0x496b7c['length'];_0x12f90a++)0x0!=_0x496b7c[_0x12f90a]['length']&&_0xc725e6(_0x496b7c[_0x213902],_0x496b7c[_0x12f90a])&&_0x5da996['push'](_0x12f90a);for(const _0x28bbe9 of _0x5da996)_0x496b7c[_0x213902]=_0x496b7c[_0x213902]['concat'](_0x496b7c[_0x28bbe9]),_0x496b7c[_0x28bbe9]=[];}for(const _0x5e0ced of _0x496b7c)for(let _0x810500=0x0;_0x810500<_0x5e0ced['length'];_0x810500++){const _0x2b9d00=_0x5e0ced[_0x810500+0x1]||null;_0x5e0ced[_0x810500]['next']!==_0x2b9d00&&(_0x5e0ced[_0x810500]['next']=_0x2b9d00);}for(const _0x4947f3 of _0x496b7c)for(let _0x579e22=0x0;_0x579e22<_0x4947f3['length'];_0x579e22++){const _0xaf566f=_0x4947f3[_0x579e22-0x1]||null;_0x4947f3[_0x579e22]['previous']!==_0xaf566f&&(_0x4947f3[_0x579e22]['previous']=_0xaf566f);}function _0xc725e6(_0x4665b0,_0x31e092){if(_0x4665b0[0x0]['attributes']['groupId']!==_0x31e092[0x0]['attributes']['groupId']&&_0x4665b0[0x0]['author']!==_0x31e092[0x0]['author'])return!0x1;if(!function(_0x32037b,_0xe1cb36){if(!_0x32037b['hasComments']&&!_0xe1cb36['hasComments'])return!0x0;if(_0x32037b['hasComments']&&_0xe1cb36['hasComments'])return!0x1;if(_0x32037b['hasComments']&&_0xe1cb36['createdAt']<_0x32037b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe1cb36['hasComments']&&_0x32037b['createdAt']<_0xe1cb36['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4665b0[0x0],_0x31e092[0x0]))return!0x1;const _0x2aa17e=Ft(_0x4665b0[0x0]['attributes'],['groupId','trackingSessionId']),_0x1c40df=Ft(_0x31e092[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2eabca(_0x2aa17e,_0x1c40df))return!0x1;if(_0x4665b0[0x0]['attributes']['groupId']==_0x31e092[0x0]['attributes']['groupId'])return!0x0;if(_0x4665b0[0x0]['attributes']['trackingSessionId']!==_0x31e092[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4665b0['every'](_0x34cc28=>_0x31e092['some'](_0x25ea0c=>_0x34cc28['getFirstRange']()['isEqual'](_0x25ea0c['getFirstRange']())))&&_0x31e092['every'](_0x4c0a34=>_0x4665b0['some'](_0x137da0=>_0x4c0a34['getFirstRange']()['isEqual'](_0x137da0['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xf241b0){const _0x172df9=Array['from'](_0xf241b0),_0x2ad7f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x430705=_0x2ad7f2['filter'](_0x903c0b=>!_0xf241b0['has'](_0x903c0b)),_0xcb9721=new Map(_0x172df9['map'](_0x494587=>[_0x494587,this['_suggestionFactory']['getSuggestionCallback'](_0x494587['type'],_0x494587['subType'],'join')])),_0x69552b=new Map(_0x2ad7f2['map'](_0xf364a6=>[_0xf364a6,_0xf364a6['getRanges']()]));for(let _0x322907=0x0;_0x322907<_0x172df9['length'];_0x322907++){if(_0xdca066(this,_0x172df9[_0x322907],_0x172df9,_0x322907+0x1))return!0x0;}for(let _0x130775=0x0;_0x130775<_0x172df9['length'];_0x130775++){if(_0xdca066(this,_0x172df9[_0x130775],_0x430705,0x0))return!0x0;}return!0x1;function _0xdca066(_0x2ed458,_0x3d5e01,_0x1c5e2b,_0x282be6){for(let _0x42e5a6=_0x282be6;_0x42e5a6<_0x1c5e2b['length'];_0x42e5a6++){const _0x3ea205=_0x1c5e2b[_0x42e5a6];if(_0x3ea205['type']!==_0x3d5e01['type']||_0x3ea205['author']['id']!==_0x3d5e01['author']['id']||_0x3ea205['subType']!==_0x3d5e01['subType'])continue;if(!Qt(_0x3d5e01,_0x3ea205))continue;if('attribute'==_0x3d5e01['type']&&_0x3d5e01['data']['oldValue']!=_0x3ea205['data']['oldValue'])continue;if('attribute'==_0x3d5e01['type']&&_0x2ed458['_isBlockAttribute'](_0x3d5e01['data']['key']))continue;if('formatBlock'==_0x3d5e01['type']){const _0x3651ba=_0x2ed458['editor']['model'],_0x3c6a9d=_0x3d5e01['getContainedElement']();if(_0x3c6a9d&&(_0x3651ba['schema']['isObject'](_0x3c6a9d)||_0x3651ba['schema']['isLimit'](_0x3c6a9d)))continue;}const _0x52b340=_0xcb9721['get'](_0x3d5e01),_0x2c395e=_0x69552b['get'](_0x3d5e01),_0x2457d9=_0x69552b['get'](_0x3ea205),_0x49c1ae=_0x3d5e01['commentThread']&&_0x3d5e01['commentThread']['length'],_0x20fe45=_0x3ea205['commentThread']&&_0x3ea205['commentThread']['length'];if(!_0x49c1ae&&_0x52b340(_0x2457d9,_0x2c395e))return _0x2ed458['_joinSuggestions'](_0x3ea205,_0x3d5e01),_0x69552b['delete'](_0x3d5e01),!0x0;if(!_0x20fe45&&_0x52b340(_0x2c395e,_0x2457d9))return _0x2ed458['_joinSuggestions'](_0x3d5e01,_0x3ea205),_0x69552b['delete'](_0x3ea205),!0x0;}return!0x1;}}['_joinSuggestions'](_0x491fd9,_0x334459){if(_0x491fd9['isMultiRange']){for(const _0x1c4742 of _0x334459['getRanges']())_0x491fd9['addRange'](_0x1c4742);}else{const _0x5e98af=_0x334459['getFirstRange']()['end'];this['_setSuggestionRange'](_0x491fd9,this['_model']['createRange'](_0x491fd9['getFirstRange']()['start'],_0x5e98af));}_0x334459['removeMarkers']();}['_getMarkerAnnouncementText'](_0x80e4c7,_0x285193,_0x5c6ac7){const _0x595332=_0x80e4c7['startsWith']('format')||_0x80e4c7['startsWith']('attribute')?'FORMATTING':_0x80e4c7['toUpperCase']();return c(this['editor']['locale'],_0x285193+'_'+_0x595332+'_SUGGESTION_ANNOUNCEMENT',_0x5c6ac7);}['_initAriaMarkerChangeAnnouncements'](){const _0x5d4f59=this['editor'];if(!_0x5d4f59['ui'])return;const {ariaLiveAnnouncer:_0xc9a94a}=_0x5d4f59['ui'];_0x22a8e2(this['_model'],({left:_0x46a0a7,entered:_0x3cbbce})=>{for(const _0x3effee of _0x46a0a7){const {group:_0x3fc931,type:_0x383db9}=this['_splitMarkerName'](_0x3effee['name']);if('suggestion'===_0x3fc931){_0xc9a94a['announce'](this['_getMarkerAnnouncementText'](_0x383db9,'LEAVE'));break;}}for(const _0x4ec1e4 of _0x3cbbce){const {group:_0x19d1d3,type:_0x15b639}=this['_splitMarkerName'](_0x4ec1e4['name']);if('suggestion'===_0x19d1d3){_0xc9a94a['announce'](this['_getMarkerAnnouncementText'](_0x15b639,'ENTER',_0x4c6853(_0xf35b4f)));break;}}});}['_processAttributeChanges'](_0x5b09e4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x214523=this['editor'],_0x16f7a8=_0x214523['model']['document']['differ']['getChanges']();if(0x0==_0x16f7a8['length'])return!0x1;const _0x15f229=[],_0x4f24eb=_0x16f7a8['filter'](_0x32d35d=>'attribute'==_0x32d35d['type']),_0x3a9fb0=_0x16f7a8['filter'](_0x49dee4=>'insert'==_0x49dee4['type']&&'$text'!=_0x49dee4['name']),_0x143122=_0x16f7a8['filter'](_0x530efb=>'remove'==_0x530efb['type']&&'$text'!=_0x530efb['name']);for(const _0x1317d8 of _0x4f24eb)_0x15f229['push']({'key':_0x1317d8['attributeKey'],'newValue':_0x1317d8['attributeNewValue'],'oldValue':_0x1317d8['attributeOldValue'],'range':qt(_0x1317d8['range'],_0x214523['model'])});for(const _0xcd82cd of _0x3a9fb0){const _0x19765b=_0x143122['find'](_0xebf2e=>_0xebf2e['position']['isEqual'](_0xcd82cd['position']));_0x19765b&&_0x15f229['push']({'key':u,'newValue':_0xcd82cd['name'],'oldValue':_0x19765b['name'],'range':_0x214523['model']['createRangeOn'](_0xcd82cd['position']['nodeAfter'])});}return 0x0!=_0x15f229['length']&&this['_reduceExistingSuggestions'](_0x5b09e4,_0x15f229);}['_processAttributeSuggestions'](_0x36798e){let _0x219a06=!0x1;const _0x13adb0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b0f49=>_0x5b0f49['data']['newRange']&&_0x5b0f49['name']['startsWith']('suggestion:attribute:'));for(const _0x3a1ac7 of _0x13adb0){const {subType:_0x2ac39d,id:_0x2c06a3}=this['_splitMarkerName'](_0x3a1ac7['name']),_0x448e7f=_0x2ac39d['split']('|')[0x0];for(const _0x2fbb31 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2fbb31['id']!=_0x2c06a3&&'attribute'==_0x2fbb31['type']&&_0x2fbb31['data']&&_0x2fbb31['data']['key']==_0x448e7f&&_0x2fbb31['getFirstRange']()['isIntersecting'](_0x3a1ac7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2fbb31,_0x3a1ac7['data']['newRange'],_0x36798e),_0x219a06=!0x0);}return _0x219a06;}['_recordAttributeChanges'](_0xe4b43d){this['_recordAttributeSuggestions']=!0x0,_0xe4b43d();}['_isRegisteredAttribute'](_0x334cb1){const _0x511262=this['_isBlockAttribute'](_0x334cb1),_0x1a12f0=this['_inlineAttributeKeys']['has'](_0x334cb1);return _0x511262||_0x1a12f0;}['_reduceExistingSuggestions'](_0x2a670f,_0x28f686){if(0x0==_0x28f686['length'])return!0x1;let _0x17ccc2=!0x1;for(const _0x12150b of _0x28f686){const _0x5a36ff=this['_findSuggestions'](_0x12150b['range'],'attribute')['filter'](_0x49458a=>!_0x49458a['meta']['isNextTo'])['map'](_0x40b80a=>_0x40b80a['suggestion']),_0x3b2cd1=_0x473f1e({'newValue':_0x12150b['newValue']});_0x5a36ff['filter'](_0x23e525=>{const [_0x81899d,_0x77db70]=_0x23e525['subType']['split']('|');return _0x81899d==_0x12150b['key']&&_0x77db70!=_0x3b2cd1;})['forEach'](_0x4420d7=>{this['_reduceSuggestionAttributeRange'](_0x4420d7,_0x12150b['range'],_0x2a670f),_0x17ccc2=!0x0;});}return _0x17ccc2;}['_reduceSuggestionAttributeRange'](_0x18e0ad,_0x387e4c,_0x2beb72){const _0x3790ea=_0x18e0ad['getFirstRange']()['getDifference'](_0x387e4c);0x0!==_0x3790ea['length']?0x1!==_0x3790ea['length']?this['_breakSuggestionMarker'](_0x18e0ad,_0x387e4c['start'],_0x387e4c['end']):this['_setSuggestionRange'](_0x18e0ad,_0x3790ea[0x0]):_0x2beb72['removeMarker'](_0x18e0ad['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x33d94f){this['_editor']=_0x33d94f,this['_model']=_0x33d94f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb31085,_0x5cef96,_0x3246ef,_0x4ee62b,_0x1135fc,_0x5af866,_0x58aaca){return new o(this['_model'],{'type':_0xb31085,'subType':_0x5cef96,'id':_0x3246ef,'originalSuggestionId':_0x58aaca,'author':_0x4ee62b,'creator':_0x4ee62b,'attributes':_0x1135fc,'onAttributesChange':_0x5af866,'onAccept':(..._0x573c6b)=>this['getSuggestionCallback'](_0xb31085,_0x5cef96,'accept')(..._0x573c6b),'onDiscard':(..._0x22348b)=>this['getSuggestionCallback'](_0xb31085,_0x5cef96,'discard')(..._0x22348b)});}['registerCustomCallback'](_0xb0c8fc,_0x29f97b,_0x248c76,_0x4ab556){const _0x196493=_0xb0c8fc+':'+_0x29f97b+':'+_0x248c76;this['_customCallbacks']['set'](_0x196493,_0x4ab556);}['getSuggestionCallback'](_0x5ace82,_0x8154b0,_0x201fe8){const _0x4894a3=_0x5ace82+':'+_0x8154b0+':'+_0x201fe8;return this['_customCallbacks']['get'](_0x4894a3)||this['_defaultCallbacks']['get'](_0x5ace82+':'+_0x201fe8);}['_registerDefaultCallbacks'](){const _0x39e4a2=()=>!0x1,_0x8ffe70=_0x43bba9=>{_0x43bba9['sort']((_0x408d30,_0x193c12)=>_0x408d30['start']['isBefore'](_0x193c12['start'])?0x1:-0x1),this['_model']['change'](_0x5c419e=>{for(const _0x4a98a7 of _0x43bba9){let _0x5d6f11;_0x5d6f11=_0x4a98a7['end']['isAtEnd']&&_0x4a98a7['end']['parent']==_0x4a98a7['start']['nodeAfter']?_0x5c419e['createSelection'](_0x4a98a7['start']['nodeAfter'],'on'):_0x5c419e['createSelection'](_0x4a98a7),this['_model']['deleteContent'](_0x5d6f11,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1fff50=(_0x5e6a26,_0x46687c)=>{_0x46687c&&this['_model']['change'](_0x43ac74=>{const {commandName:_0x4c0168,commandParams:_0x356696=[]}=_0x46687c,_0x237fb8=_0x5e6a26['map'](_0x18736e=>(Lt(_0x18736e)&&(_0x18736e=this['_model']['createRange'](_0x18736e['end'])),_0x18736e))['filter'](_0x51d9a6=>'$graveyard'!==_0x51d9a6['root']['rootName']);if(_0x237fb8['length']<0x1)return;const _0x407fa8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x38a05c=>_0x5b3987['fromRange'](_0x38a05c));_0x43ac74['setSelection'](_0x237fb8);for(const _0x5ac2f5 of this['_editor']['commands']['commands']())_0x5ac2f5['refresh']();_0x356696['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4c0168,..._0x356696);const _0x2d9a27=_0x407fa8['filter'](_0x3fbdad=>'$graveyard'!=_0x3fbdad['root']['rootName']);_0x2d9a27['length']>0x0&&_0x43ac74['setSelection'](_0x2d9a27);for(const _0x4fce53 of _0x407fa8)_0x4fce53['detach']();});},_0x4202d0=(_0x4721d4,_0xd23767)=>0x1==_0x4721d4['length']&&0x1==_0xd23767['length']&&_0x4721d4[0x0]['end']['isEqual'](_0xd23767[0x0]['start']),_0x558c63=(_0x849f15,_0x2dc0a8,_0x578b1a,_0x4ac5fc)=>Wt(_0x849f15,_0x2dc0a8,_0x578b1a,_0x4ac5fc)?[_0x849f15,_0x2dc0a8]:Wt(_0x2dc0a8,_0x849f15,_0x4ac5fc,_0x578b1a)?[_0x2dc0a8,_0x849f15]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x39e4a2),this['_defaultCallbacks']['set']('insertion:discard',_0x8ffe70),this['_defaultCallbacks']['set']('insertion:join',_0x4202d0),this['_defaultCallbacks']['set']('insertion:chain',_0x558c63),this['_defaultCallbacks']['set']('deletion:accept',_0x8ffe70),this['_defaultCallbacks']['set']('deletion:discard',_0x39e4a2),this['_defaultCallbacks']['set']('deletion:join',_0x4202d0),this['_defaultCallbacks']['set']('deletion:chain',_0x558c63),this['_defaultCallbacks']['set']('formatInline:accept',_0x1fff50),this['_defaultCallbacks']['set']('formatInline:discard',_0x39e4a2),this['_defaultCallbacks']['set']('formatInline:join',_0x4202d0),this['_defaultCallbacks']['set']('formatInline:chain',_0x39e4a2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1fff50),this['_defaultCallbacks']['set']('formatBlock:discard',_0x39e4a2),this['_defaultCallbacks']['set']('formatBlock:join',_0x4202d0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x39e4a2),this['_defaultCallbacks']['set']('attribute:accept',_0x39e4a2),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d5890,_0x1acea5)=>{if(!_0x1acea5)return;const _0x49bb08=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x37483f=>{if(_0x1acea5['key']==u)for(const _0x43cb85 of _0x5d5890){const _0x5df6b7=_0x43cb85['start']['nodeAfter'],_0xba1393=_0x1acea5['oldValue'];_0x37483f['rename'](_0x5df6b7,_0xba1393);}else{if(_0x49bb08['_isBlockAttribute'](_0x1acea5['key'])){for(const _0x5f1881 of _0x5d5890)void 0x0!==_0x1acea5['oldValue']?_0x37483f['setAttribute'](_0x1acea5['key'],_0x1acea5['oldValue'],_0x5f1881['start']['nodeAfter']):_0x37483f['removeAttribute'](_0x1acea5['key'],_0x5f1881['start']['nodeAfter']);}else{for(const _0x37b05c of _0x5d5890)_0x1acea5['oldValue']?_0x37483f['setAttribute'](_0x1acea5['key'],_0x1acea5['oldValue'],_0x37b05c):_0x37483f['removeAttribute'](_0x1acea5['key'],_0x37b05c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4202d0);}}function Gt(_0x218e3f,_0x527cda,_0x8d7cf2){for(const _0x5af62e of _0x527cda['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5af62e['root']==_0x5af62e)return!0x1;if(!_0x8d7cf2['containsItem'](_0x5af62e))return!0x1;if(_0x218e3f['isObject'](_0x5af62e)||_0x218e3f['isLimit'](_0x5af62e))return!0x0;}return!0x1;}function Lt(_0x8a0a33){return _0x8a0a33['end']['parent']==_0x8a0a33['start']['nodeAfter']&&_0x8a0a33['end']['isAtStart'];}function Jt(_0x190d39,_0x1b75c1,_0x5d2a3b,_0x3fe2fa){const _0x183a96=_0x259a68=>!_0x259a68['item']['is']('$textProxy')&&!_0x3fe2fa['isObject'](_0x259a68['item']),_0x468106=_0x190d39['start']['getLastMatchingPosition'](_0x183a96),_0x50a165=_0x190d39['end']['getLastMatchingPosition'](_0x183a96,{'direction':'backward'});return(!_0x190d39['start']['isEqual'](_0x468106)||!_0x190d39['end']['isEqual'](_0x50a165))&&(_0x468106['isBefore'](_0x50a165)?_0x5d2a3b['updateMarker'](_0x1b75c1,{'range':_0x5d2a3b['createRange'](_0x468106,_0x50a165)}):_0x5d2a3b['removeMarker'](_0x1b75c1),!0x0);}function Kt(_0x40c07c){return _0x473f1e(_0x40c07c);}function Ht(_0x39f69f){const _0x475186=_0x39f69f['start']['nodeAfter'];return _0x475186&&_0x475186['is']('element');}function qt(_0x31ee7d,_0x1a5525){return null==_0x31ee7d['end']['nodeBefore']&&_0x31ee7d['end']['parent']==_0x31ee7d['start']['nodeAfter']?zt(_0x31ee7d['start']['nodeAfter'],_0x1a5525):_0x31ee7d;}function zt(_0x531c79,_0x5960bb){const _0x31b062=_0x5960bb['schema']['isObject'](_0x531c79)||_0x5960bb['schema']['isSelectable'](_0x531c79);return _0x5960bb['createRange'](_0x5960bb['createPositionAt'](_0x531c79,'before'),_0x31b062?_0x5960bb['createPositionAfter'](_0x531c79):_0x5960bb['createPositionAt'](_0x531c79,'end'));}function Wt(_0x5c06fb,_0x267bb7,_0x17bf0d,_0x107d20){return!!Qt(_0x5c06fb,_0x267bb7)&&_0x17bf0d['end']['isEqual'](_0x107d20['start']);}function Qt(_0x5c0c54,_0x16cf4e){if(!_0x5c0c54['_isDataLoaded']||!_0x16cf4e['_isDataLoaded'])return!0x1;const _0x19ca2f=new Set(Object['keys'](_0x5c0c54['attributes'])),_0x5254b3=new Set(Object['keys'](_0x16cf4e['attributes']));if(_0x19ca2f['delete']('groupId'),_0x5254b3['delete']('groupId'),0x0==_0x19ca2f['size']&&0x0==_0x5254b3['size'])return!0x0;if(_0x19ca2f['size']!=_0x5254b3['size'])return!0x1;const _0x179544={..._0x5c0c54['attributes']},_0x20ac2a={..._0x16cf4e['attributes']};return delete _0x179544['groupId'],delete _0x20ac2a['groupId'],JSON['stringify'](_0x179544)==JSON['stringify'](_0x20ac2a);}function Xt(_0x54347f,_0x45b536){const _0x1c6f8f=Yt(_0x54347f['attributes']),_0x3c9ec2=Yt(_0x45b536);if(!_0x54347f['_isDataLoaded'])return!0x1;for(const _0x4aedc4 of Object['keys'](_0x3c9ec2))if(!_0x2eabca(_0x1c6f8f[_0x4aedc4],_0x3c9ec2[_0x4aedc4]))return!0x1;return!0x0;}function Yt(_0x31a1c0){const _0x5c823d=Object['assign']({},_0x31a1c0);return delete _0x5c823d['skipNestingCheck'],delete _0x5c823d['tablePasteChainId'],_0x5c823d;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x1f213a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x407a66,_0x3198f2,_0x3c2a4b,_0x3c287e){super(),this['model']=_0x3198f2,this['view']=_0x3c2a4b,this['commentThreadController']=_0x3c287e,this['_editor']=_0x407a66,this['_acceptCommand']=_0x407a66['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x407a66['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4fef8f,_0x5377cb)=>_0x4fef8f||_0x5377cb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x52d1a2=>_0x52d1a2&&this['_editor']['model']['canEditAt'](_0x3198f2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x230bd7=>_0x230bd7&&this['_editor']['model']['canEditAt'](_0x3198f2['getRanges']())),this['_pendingAction']=null,_0x3c2a4b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3c2a4b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3c2a4b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3c2a4b,'change:isDirty',()=>{_0x3c2a4b['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 _0x58fc08=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x58fc08);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x486323{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3e8775,_0x55b9ce,_0x20f48a,_0x5b6a4f){super(_0x3e8775),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x39e842(_0x3e8775,c(_0x3e8775,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x55b9ce['authoredAt']),this['bind']('authoredAt')['to'](_0x55b9ce),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x55b9ce,'authoredAt',this,'descriptionParts',(_0x50f30d,_0x2264ea,_0x4e15a3)=>{const _0x38d18b=_0x4e15a3['map'](_0x3691b4=>ls(_0x3691b4['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x50f30d-0x1,_0x55b9ce['author']['name'],_0x2264ea?_0x5b6a4f['formatDateTime'](_0x2264ea):'',new DOMParser()['parseFromString'](_0x38d18b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4f47bb(),this['focusTracker']=new _0x5e8cfc(),this['keystrokes']=new _0x3655e0(),this['focusCycler']=new _0x12544e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xdd6eb2=>_0xdd6eb2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x55b9ce,this['_localUser']=_0x20f48a,this['_config']=_0x5b6a4f,_0x5b6a4f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x113609(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xbd146a}=this['_config'];this['commentsListView']=new _0xbd146a(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',_0x4ab81f=>_0x4ab81f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5f4d07,_0x22c34b)=>_0x5f4d07||!!_0x22c34b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1cb068}=this['_config'],_0x4ad8fd=new _0x1cb068(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4fc078=_0x4ad8fd['commentInputView'];return _0x4ad8fd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4fc078,'value',(_0x47659c,_0x493623,_0x3e9acf)=>!!_0x3e9acf||_0x47659c&&!_0x493623),_0x4fc078['on']('submit',(_0x248b6a,_0x2c6b7a)=>{this['fire']('addComment',_0x2c6b7a),_0x4fc078['editor']['setData']('');}),_0x4fc078['on']('cancel',()=>this['focus']()),_0x4fc078['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4ad8fd;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4115ae,_0x573737,_0x4752db,_0x312674){super(_0x4115ae,_0x573737,_0x4752db,_0x312674),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x49ffc2=>_0x49ffc2&&_0x49ffc2[0x0]?_0x49ffc2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1e44f8,_0x1c9e4b)=>{let _0x588983='';for(const _0x12168e of _0x1e44f8)_0x588983+='<p>'+ls(_0x12168e['content'],_0x12168e['color'])+'</p>';return _0x1c9e4b?_0x588983:ti(_0x588983,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x312674['SuggestionView'](_0x4115ae,_0x573737,{'formatDateTime':_0x312674['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x22a8dd=this['bindTemplate'],_0x5b9163=[this['suggestionView']];return this['commentsListView']&&_0x5b9163['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5b9163['push'](this['commentThreadInputView']),_0x5b9163['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x22a8dd['if']('isActive','ck-suggestion-wrapper--active'),_0x22a8dd['to']('type',_0x47409c=>'ck-suggestion-'+_0x47409c),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x22a8dd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5b9163};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x486323{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4dffc1,_0x3dc584,_0x1aa545){super(_0x4dffc1),this['_model']=_0x3dc584,this['_config']=_0x1aa545,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3dc584),this['acceptButton']=this['_createButton'](c(_0x4dffc1,'Accept\x20suggestion'),_0x1fd088,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4dffc1,'Discard\x20suggestion'),_0x3712a9,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x197c7f(_0x4dffc1,_0x3dc584['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4f47bb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5e8cfc(),this['keystrokes']=new _0x3655e0(),this['focusCycler']=new _0x12544e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3ff540=>_0x3ff540['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x164884=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x164884['innerHTML']=this['description'],this['on']('change:description',(_0xe94b85,_0x41d703,_0x444ed8)=>{_0x164884['innerHTML']=_0x444ed8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x46b073=this['bindTemplate'],_0x2b7043=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x46b073['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46b073['to']('authoredAt',_0x5990a7=>this['_config']['formatDateTime'](_0x5990a7))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x2b7043['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x2b7043}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x461e34,_0x2eacfa,_0x4a5828,_0x4b97db,_0x50944d){const _0x502b29=new _0x1d944b(this['locale']);return _0x502b29['set']({'label':_0x461e34,'icon':_0x2eacfa,'tooltip':!0x0,'tooltipPosition':_0x50944d}),_0x502b29['extendTemplate']({'attributes':{'class':_0x4a5828}}),_0x502b29['on']('execute',()=>{this['fire'](_0x4b97db,this['_model']['id']);}),_0x502b29;}['_setupKeyboardNavigation'](){const _0x180bba=this['element'];this['keystrokes']['listenTo'](_0x180bba);for(const _0x3cec14 of this['focusables'])this['focusTracker']['add'](_0x3cec14['element']),this['keystrokes']['listenTo'](_0x3cec14['element']);this['keystrokes']['set']('enter',(_0x4dd90e,_0x3d0d6c)=>{_0x180bba===_0x4dd90e['target']&&(this['focusCycler']['focusFirst'](),_0x3d0d6c());}),this['keystrokes']['set']('esc',(_0x538b58,_0x3d0a30)=>{_0x180bba!==_0x538b58['target']&&(this['focus'](),_0x3d0a30());});}}class d extends _0xac175e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x46023b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ff13d){super(_0x3ff13d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x522eff=this['editor']['config'];_0x522eff['define']('trackChanges.SuggestionThreadView',fe),_0x522eff['define']('trackChanges.SuggestionView',we),_0x522eff['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x522eff['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x397a0f,_0x265b24){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x260d14,_0x1f2174]of this['_handleControllerBuffer']){const _0x21f4fc=this['_suggestionToController']['has'](_0x260d14);_0x21f4fc||_0x1f2174?_0x21f4fc&&_0x1f2174&&this['_destroyController'](_0x260d14):this['_initializeController'](_0x260d14);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x397a0f,_0x265b24);}['init'](){const _0x4970d2=this['editor'],_0x29668b=_0x4970d2['plugins']['get']('TrackChangesEditing'),_0x338384=_0x4970d2['plugins']['get']('Annotations'),_0x4759db=_0x4970d2['plugins']['get']('EditorAnnotations'),_0x5617ec=_0x4970d2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4759db['addSourceCollector'](()=>{const _0x2391d0=[];for(const [_0x26526d,_0x559520]of Array['from'](this['_suggestionToController'])){const _0x59fd18=_0x26526d['getAllAdjacentSuggestions'](),_0x27b7c2=[];for(const _0x14fbd4 of _0x59fd18){if(!_0x14fbd4['isInContent'])continue;if(_0x14fbd4['isMultiRange']){_0x27b7c2['push'](..._0x14fbd4['getRanges']());continue;}const _0x4e091c=_0x14fbd4['getFirstRange']();if(_0x27b7c2['length']>0x0){const _0x51c644=_0x27b7c2[0x0]['getJoined'](_0x4e091c);if(_0x51c644){_0x27b7c2[0x0]=_0x51c644;continue;}}_0x27b7c2['push'](_0x4e091c);}_0x2391d0['push']([_0x559520['view'],_0x27b7c2]);}return _0x2391d0;}),this['listenTo'](_0x29668b,'suggestionLoaded',(_0x2debcb,_0x32a29b)=>{this['listenTo'](_0x32a29b,'change:previous',(_0x5b1d9d,_0x5b2c28,_0x4c65be,_0x527c31)=>{_0x32a29b['isInContent']&&(null==_0x4c65be?(this['_updateController'](_0x527c31['head']),this['_handleSuggestionControllerDelayed'](_0x32a29b,!0x1)):(this['_updateController'](_0x4c65be['head']),null==_0x527c31&&this['_handleSuggestionControllerDelayed'](_0x32a29b,!0x0)));}),null!==_0x32a29b['previous']?this['_updateController'](_0x32a29b['head']):this['_handleSuggestionControllerDelayed'](_0x32a29b,!0x1);}),this['listenTo'](_0x29668b,'suggestionUnloaded',(_0x34fee2,_0x2dd8fd,_0x42e60b)=>{this['stopListening'](_0x2dd8fd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2dd8fd),this['_suggestionToController']['has'](_0x2dd8fd)&&this['_destroyController'](_0x2dd8fd),_0x42e60b&&this['_updateController'](_0x42e60b['head']);}),this['listenTo'](_0x29668b,'suggestionChanged',(_0x4113d4,_0xfe1edb)=>{this['_updateController'](_0xfe1edb);}),this['listenTo'](_0x338384,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5617ec,'addComment',(_0x7c144e,{threadId:_0x21805d,isFromAdapter:_0x482d5b})=>{if(_0x482d5b||!_0x29668b['hasSuggestion'](_0x21805d))return;const _0x10d754=_0x29668b['getSuggestion'](_0x21805d);this['_suggestionToController']['get'](_0x10d754)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5048b7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5bf28c;for(const _0x44d8fc in _0x5048b7){const _0x4b278e=_0x44d8fc,_0x51aa4f=_0x5048b7[_0x4b278e];if('trackChangesLicenseKeyValid'==_0x51aa4f||'trackChangesLicenseKeyInvalid'==_0x51aa4f||'trackChangesLicenseKeyExpired'==_0x51aa4f||'trackChangesLicenseKeyDomainLimit'==_0x51aa4f||'trackChangesLicenseKeyNotAllowed'==_0x51aa4f||'trackChangesLicenseKeyEvaluationLimit'==_0x51aa4f||'trackChangesLicenseKeyTrialLimit'==_0x51aa4f||'trackChangesLicenseKeyUsageLimit'==_0x51aa4f){delete _0x5048b7[_0x4b278e],_0x5bf28c=_0x51aa4f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5bf28c&&_0x5048b7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5bf28c&&_0x5048b7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5bf28c&&_0x5048b7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5bf28c&&_0x5048b7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5bf28c&&_0x5048b7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5bf28c&&_0x5048b7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5bf28c&&_0x5048b7['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x32cd16=this['editor']['plugins']['get']('Annotations'),_0x53434d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e9457=Array['from'](_0x32cd16['activeAnnotations'],_0x305331=>_0x305331['innerView'])['filter'](_0x1fccb2=>this['_viewToController']['has'](_0x1fccb2)),_0x41408c=[];for(const _0x383985 of _0x5e9457){const _0x3355b5=this['_viewToController']['get'](_0x383985)['model']['getAllAdjacentSuggestions']();_0x41408c['push'](..._0x3355b5['reduce']((_0x3ed332,_0x2ca17a)=>[..._0x3ed332,..._0x2ca17a['getMarkerNames']()],[]));}_0x53434d['activeMarkers']=_0x41408c;}['_addUIComponentsToFactory'](){const _0x29a1e4=this['editor'],_0x38857d=_0x29a1e4['locale'],_0x51b9cd=c(_0x38857d,'Track\x20changes'),_0x16d0e3=new _0x21b3d3([{'type':'switchbutton','model':new _0x5e0531({'withText':!0x0,'isToggleable':!0x0,'label':_0x51b9cd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5e0531({'withText':!0x0,'label':c(_0x38857d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e0531({'withText':!0x0,'label':c(_0x38857d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e0531({'withText':!0x0,'label':c(_0x38857d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e0531({'withText':!0x0,'label':c(_0x38857d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x29a1e4['plugins']['has']('TrackChangesPreview')&&_0x16d0e3['addMany']([{'type':'separator'},{'type':'button','model':new _0x5e0531({'withText':!0x0,'label':c(_0x38857d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5bda6a of _0x16d0e3)if(ke(_0x5bda6a)){const _0x22bc8c=_0x29a1e4['commands']['get'](_0x5bda6a['model']['commandName']);_0x5bda6a['model']['bind']('isOn','isEnabled')['to'](_0x22bc8c,'value','isEnabled');}_0x29a1e4['ui']['componentFactory']['add']('trackChanges',_0x106f48=>this['_createToolbarButton'](_0x106f48,_0x16d0e3,_0x51b9cd)),_0x29a1e4['ui']['componentFactory']['add']('menuBar:trackChanges',_0xc6b7c9=>this['_createMenuBarMenu'](_0xc6b7c9,_0x16d0e3,_0x51b9cd));}['_createToolbarButton'](_0x5eaa3b,_0xb1ed77,_0x1b7b93){const _0x5910f0=_0x29815e(_0x5eaa3b,_0x3cf9ee),_0x39ac97=this['editor']['commands']['get']('trackChanges');_0x5910f0['buttonView']['set']({'tooltip':_0x1b7b93,'label':_0x1b7b93,'icon':_0x3aba50}),_0x5910f0['buttonView']['bind']('isOn')['to'](_0x39ac97,'value'),_0x5910f0['buttonView']['on']('execute',()=>{_0x39ac97['execute'](),this['editor']['editing']['view']['focus']();}),_0xf8aee7(_0x5910f0,_0xb1ed77,{'role':'menu'});const _0x4b7d51=[];for(const _0x4057a0 of _0xb1ed77)ke(_0x4057a0)&&_0x4b7d51['push'](this['editor']['commands']['get'](_0x4057a0['model']['commandName']));const _0x4a06ca=_0x5910f0['buttonView'];return _0x4a06ca['actionView']['unbind']('isEnabled'),_0x4a06ca['arrowView']['unbind']('isEnabled'),_0x4a06ca['actionView']['bind']('isEnabled')['to'](_0x39ac97,'isEnabled'),_0x4a06ca['arrowView']['bind']('isEnabled')['toMany'](_0x4b7d51,'isEnabled',(..._0x2305e7)=>_0x2305e7['some'](_0x115ab1=>_0x115ab1)),_0x5910f0['on']('execute',_0x26c679=>{this['editor']['execute'](_0x26c679['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5910f0;}['_createMenuBarMenu'](_0x5de355,_0x11b698,_0x3f64dd){const _0x145e79=new _0x549d73(_0x5de355),_0x5e1998=this['editor']['commands']['get']('trackChanges');_0x145e79['buttonView']['set']({'label':_0x3f64dd,'icon':_0x3aba50});const _0x275aaa=new _0x3cf913(_0x5de355);for(const _0x124f2b of _0x11b698){if('separator'==_0x124f2b['type']){_0x275aaa['items']['add'](new _0x5c3a7e(_0x5de355));continue;}const _0x16e153=new _0x5b03be(_0x5de355,_0x145e79),_0x3b6388=new _0x1b760a(_0x5de355),_0x425420=_0x124f2b['model'];_0x3b6388['bind'](...Object['keys'](_0x425420))['to'](_0x425420),_0x3b6388['delegate']('execute')['to'](_0x145e79),_0x3b6388['on']('execute',()=>{this['editor']['execute'](_0x425420['commandName']),this['editor']['editing']['view']['focus']();}),_0x16e153['children']['add'](_0x3b6388),_0x275aaa['items']['add'](_0x16e153);}return _0x145e79['bind']('isEnabled')['to'](_0x5e1998,'isEnabled'),_0x145e79['panelView']['children']['add'](_0x275aaa),_0x145e79;}['_initializeController'](_0x25f5b5){const _0x5e831a=this['editor'],_0x274238=_0x5e831a['config'],_0x23426e=_0x5e831a['plugins']['get']('Annotations'),_0x46dcf9=_0x5e831a['plugins']['get']('CommentsRepository'),_0x16312c=_0x5e831a['plugins']['get']('EditorAnnotations'),_0x1ab7b2=_0x5e831a['plugins']['get'](_0x46023b)['me'],_0x3947c7=_0x274238['get']('trackChanges')['SuggestionThreadView'],_0x5686c7=_0x274238['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x139332,CommentThreadInputView:_0x526d50}=_0x5e831a['plugins']['get']('CommentsUI');let _0x22915f,_0x15e2ef,_0x385d56;this['_annotationViews']['has'](_0x25f5b5['id'])?(_0x15e2ef=this['_annotationViews']['get'](_0x25f5b5['id']),_0x22915f=_0x15e2ef['mainView']):(_0x22915f=new _0x3947c7(_0x5e831a['locale'],_0x25f5b5,_0x1ab7b2,{'disableComments':this['_disableComments'],'editorConfig':{..._0x274238['get']('comments.editorConfig'),'licenseKey':_0x274238['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x274238['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x274238['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x274238['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x461b86(_0x274238['get']('locale'),_0x5e831a['locale']),'CommentView':_0x274238['get']('comments')['CommentView'],'CommentsListView':_0x139332,'CommentThreadInputView':_0x526d50,'SuggestionView':_0x5686c7}),_0x22915f['suggestionView']['acceptButton']['on']('execute',()=>{_0x5e831a['editing']['view']['focus']();}),_0x22915f['suggestionView']['discardButton']['on']('execute',()=>{_0x5e831a['editing']['view']['focus']();}),_0x15e2ef=_0x23426e['createAnnotationView'](this['editor']['locale'],_0x22915f),_0x15e2ef['bind']('isDirty')['to'](_0x22915f,'isDirty'),_0x15e2ef['bind']('length')['to'](_0x22915f),_0x15e2ef['bind']('type')['to'](_0x22915f,'type',_0x58303b=>'suggestion-'+_0x58303b),_0x22915f['on']('escape',()=>{_0x385d56['fire']('escape');}),this['_annotationViews']['set'](_0x25f5b5['id'],_0x15e2ef));const _0x4b0f46=_0x46dcf9['createCommentThreadController'](_0x25f5b5['commentThread'],_0x22915f),_0x5ac47f=new pe(_0x5e831a,_0x25f5b5,_0x22915f,_0x4b0f46),_0x2a50a9=_0x25f5b5['getAllAdjacentSuggestions']()['filter'](_0x5a905b=>_0x5a905b['isInContent']);_0x22915f['descriptionParts']=_0x5e831a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2a50a9),this['_suggestionToController']['set'](_0x25f5b5,_0x5ac47f),this['_viewToController']['set'](_0x22915f,_0x5ac47f),_0x385d56=_0x23426e['createAnnotation']({'view':_0x15e2ef,'target':()=>{const _0x4b0af5=[],_0x15866f=_0x25f5b5['getAllAdjacentSuggestions']()['filter'](_0x12c3ef=>_0x12c3ef['isInContent']);for(const _0x5cb363 of _0x15866f)_0x4b0af5['push'](..._0x5cb363['getMarkers']());return _0x3831a6(_0x5e831a['editing'],_0x4b0af5);},'type':()=>'suggestion-'+_0x5ac47f['view']['type']}),_0x46dcf9['_bindAnnotationToEditors'](_0x22915f,_0x385d56),_0x23426e['add'](_0x385d56),_0x16312c['registerAnnotation'](_0x385d56);}['_destroyController'](_0x2383c5){const _0x53ae30=this['editor']['plugins']['get']('CommentsRepository'),_0x2619fd=this['editor']['plugins']['get']('Annotations'),_0x16236e=this['_suggestionToController']['get'](_0x2383c5),_0x583052=_0x16236e['view'],_0x35fb8e=_0x2619fd['getByInnerView'](_0x583052);_0x53ae30['_unbindEditors'](_0x583052),_0x35fb8e&&_0x2619fd['remove'](_0x35fb8e),this['_suggestionToController']['delete'](_0x2383c5),this['_viewToController']['delete'](_0x583052),_0x16236e['destroy']();}['_updateController'](_0x58cfb3){if(!_0x58cfb3['isInContent']||!this['_suggestionToController']['has'](_0x58cfb3))return;const _0x407b5e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51e9a9=this['_suggestionToController']['get'](_0x58cfb3),_0xf66e4f=_0x58cfb3['getAllAdjacentSuggestions']();_0x51e9a9['view']['descriptionParts']=_0x407b5e['descriptionFactory']['getDescriptions'](_0xf66e4f);}['destroy'](){for(const _0x5eecf5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5eecf5);for(const _0x335c41 of this['_annotationViews']['values']())_0x335c41['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x51edbb){return'model'in _0x51edbb;}class k extends _0xac175e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xe4372f){this['editor']['plugins']['get'](p)['adapter']=_0xe4372f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x948abf){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x948abf);}['getSuggestions']({skipNotAttached:_0x2bd7d1=!0x1,toJSON:_0x4f8e6a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2bd7d1,'toJSON':_0x4f8e6a});}['getSuggestion'](_0x135348){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x135348);}}const w=['Pagination'];class T extends _0xac175e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xd05cd0=this['editor'];if(_0xd05cd0['config']['define']('trackChangesData.editorCreator',_0x104899=>{const _0x479ee7=_0xd05cd0['model']['document']['getRootNames']()['reduce']((_0x490201,_0x5bf95f)=>(_0x490201[_0x5bf95f]='',_0x490201),{});return _0xd05cd0['constructor']['create'](_0x479ee7,_0x104899);}),'function'!=typeof _0xd05cd0['config']['get']('trackChangesData')['editorCreator'])throw new _0x3ebbb1('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5d8dd2){return N(this['editor'],!0x0,_0x5d8dd2);}['getDataWithDiscardedSuggestions'](_0x352e6d){return N(this['editor'],!0x1,_0x352e6d);}}class D extends _0xac175e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b4ecc){function _0x4e0d62(_0x2dd6c2){return _0x2dd6c2['map'](_0x594240=>String['fromCharCode'](_0x594240))['join']('');}super(_0x5b4ecc),this['result']='end',_0x5b4ecc[_0x4e0d62([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e0d62([0x76,0x69,0x65,0x77])][_0x4e0d62([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e0d62([0x61,0x75,0x74,0x6f]),_0x5b4ecc[_0x4e0d62([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4e0d62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e0d62([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4e0d62([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4e0d62([0x6f,0x6b])});}['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 Ge(_0x475730){return void 0x0!==_0x475730['getRootsAttributes'];}async function N(_0x366690,_0x6e92e1,_0x3883e2){const _0x485f43=_0x386543(_0x366690,w);_0x485f43['plugins']['push'](p,D),_0x485f43['rootsAttributes']=Ge(_0x366690)?_0x366690['getRootsAttributes']():void 0x0;const _0x35def7=document['createDocumentFragment'](),_0x5adb64=_0x366690['config']['get']('trackChangesData')['editorCreator'],_0x4cb0dd=await _0x5adb64(_0x485f43,()=>function(_0x1d612d){const _0x4ba136=document['createElement']('div');return _0x1d612d['appendChild'](_0x4ba136),_0x4ba136;}(_0x35def7));!function(_0x10f4e2,_0x45e4b9){const _0x2f3863=_0x10f4e2['model']['document']['getRootNames']()['reduce']((_0x32c374,_0x439577)=>(_0x32c374[_0x439577]=_0x10f4e2['data']['get']({'rootName':_0x439577}),_0x32c374),{}),_0x275cff=_0x10f4e2['plugins']['get']('Users')['users']['map'](_0x3acf4c=>({'id':_0x3acf4c['id'],'name':_0x3acf4c['name']})),_0x299f09=_0x10f4e2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x469e6b=_0x10f4e2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5cf73d=_0x45e4b9['plugins']['get']('Users'),_0xc7aad1=_0x45e4b9['plugins']['get']('TrackChangesEditing'),_0x5ce4f9=_0x45e4b9['plugins']['get']('CommentsRepository');for(const _0x4e3208 of _0x5ce4f9['getCommentThreads']())_0x4e3208['remove']();for(const _0xbbd5e4 of _0x275cff)_0x5cf73d['getUser'](_0xbbd5e4['id'])||_0x5cf73d['addUser'](_0xbbd5e4);_0x5cf73d['me']||_0x5cf73d['useAnonymousUser']();for(const _0x49bdd1 of _0x469e6b)_0x5ce4f9['addCommentThread'](_0x49bdd1);for(const _0x582739 of _0x299f09)_0xc7aad1['addSuggestionData'](_0x582739);_0x45e4b9['data']['set'](_0x2f3863);}(_0x366690,_0x4cb0dd),_0x4cb0dd['execute'](_0x6e92e1?'acceptAllSuggestions':'discardAllSuggestions');const _0x4ad5f0=Ge(_0x4cb0dd)?_0x4cb0dd['getFullData'](_0x3883e2):_0x4cb0dd['data']['get'](_0x3883e2);return await _0x4cb0dd['destroy'](),_0x4ad5f0;}class Me extends _0x486323{['options'];constructor(_0xea1efb,_0x34db3d){super(_0xea1efb),this['options']=_0x34db3d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x1c5122,_0x5bc965){if(!this['element'])return;const _0x446ac4=[];for(const [_0x53046e,_0x2c768e]of _0x1c5122){const _0x30d21b=document['createElement']('div');_0x30d21b['setAttribute']('data-ck-root-name',_0x53046e),_0x30d21b['className']=_0x2c768e['classes']+'\x20ck-track-changes-preview__root-container',_0x30d21b['innerHTML']=_0x2c768e['content'],_0x446ac4['push'](_0x30d21b);}_0x5bc965(this['element'],_0x446ac4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x51c4d5{constructor(_0x18375b){super(_0x18375b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x41f82f=this['editor'],_0x3a5672=_0x41f82f['locale'],_0x8f2b03=_0x41f82f['plugins']['get']('Dialog');let _0x331dff;const _0x6a4178=function(_0x380885){const _0x4cc155={};if('editables'in _0x380885['ui']['view']){for(const [_0x234bac,_0x944ba]of Object['entries'](_0x380885['ui']['view']['editables']))_0x4cc155[_0x234bac]=_0x944ba['element'];}else _0x4cc155[_0x380885['model']['document']['getRootNames']()[0x0]]=_0x380885['ui']['view']['editable']['element'];return _0x4cc155;}(_0x41f82f),_0x42a9e0=function(_0x2492f1){let _0x46217a=0x0;for(const _0x24d926 of Object['values'](_0x2492f1))_0x46217a=Math['max'](_0x46217a,_0x24d926['getBoundingClientRect']()['width']);let _0x107691=0x0;for(const _0x424fd2 of Object['values'](_0x2492f1))_0x107691+=_0x424fd2['getBoundingClientRect']()['height'];const _0x33909e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1d7ee4=Math['min'](_0x107691,_0x33909e);return{'width':_0x46217a,'height':_0x1d7ee4};}(_0x6a4178);_0x8f2b03['show']({'id':'finalContentPreview','title':c(_0x3a5672,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3a5672,{'dialogRects':_0x42a9e0}),'onHide':()=>{_0x331dff['detachFromDom']();},'onShow':()=>{_0x41f82f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x54efd7=>{const _0x3037ae=this['_standarizeRootsData'](_0x54efd7,_0x41f82f,_0x6a4178);_0x8f2b03['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3037ae,_0x41f82f['config']['get']('trackChanges.preview.renderFunction'));}),_0x331dff=new _0x41989d(_0x3a5672,[_0x8f2b03['view']]),_0x331dff['attachToDom'](),_0x331dff['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x41f82f['once']('destroy',()=>{_0x331dff['detachFromDom']();});const _0x2707c7=_0x8f2b03['view']['headerView']['class'];_0x8f2b03['view']['headerView']['class']=_0x2707c7?_0x2707c7+'\x20ck-reset_all':'ck-reset_all',_0x8f2b03['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x8f2b03['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3dff0d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x27f102=_0x3dff0d['previewMode'],_0x2449b8={};if('$labels'===_0x27f102){for(const _0x16b46b of _0x3dff0d['getMergeFieldsIds']())_0x2449b8[_0x16b46b]=_0x3dff0d['getLabel'](_0x16b46b)||_0x16b46b;}else{const _0x37553d='$defaultValues'===_0x27f102?_0x3dff0d['getDefaultValues']():_0x3dff0d['getDataSetValues'](_0x27f102,!0x0);for(const _0x394d6f of Object['entries'](_0x37553d)){const [_0x1c0c5c,_0x477170]=_0x394d6f;_0x2449b8[_0x1c0c5c]=null!==_0x477170?_0x477170:_0x3dff0d['getLabel'](_0x1c0c5c)||_0x1c0c5c;}}return{'mergeFieldsData':_0x2449b8};}['_standarizeRootsData'](_0x3a3652,_0x46981b,_0x346548){let _0x3e80f4;if('string'==typeof _0x3a3652){const _0x48a2c9=_0x46981b['model']['document']['getRootNames']()[0x0];_0x3e80f4={[_0x48a2c9]:_0x3a3652};}else _0x3e80f4=_0x3a3652;const _0x193074=this['_fixMediaEmbeds'](_0x3e80f4,_0x46981b),_0x10745b=function(_0x550cf3,_0x571bc2){for(const [_0x1aeec1,_0x414c7f]of _0x550cf3)_0x414c7f['classes']=_0x571bc2[_0x1aeec1]['classList']['value']['replace']('ck-focused','');return _0x550cf3;}(this['_sortRoots'](_0x46981b)['reduce']((_0x54719d,_0x506f98)=>(_0x54719d['push']([_0x506f98,{'content':_0x193074[_0x506f98],'classes':''}]),_0x54719d),[]),_0x346548);return _0x10745b;}['_fixMediaEmbeds'](_0x24ced3,_0x4ff72d){if(!_0x4ff72d['plugins']['has']('MediaEmbedEditing'))return _0x24ced3;const _0x30fd2f=_0x4ff72d['plugins']['get']('MediaEmbedEditing');for(const [_0x216de9,_0x2cecc6]of Object['entries'](_0x24ced3)){const _0x1a4200=document['createElement']('div');_0x1a4200['innerHTML']=_0x2cecc6,(_0x1a4200['querySelectorAll']('figure.media')['forEach'](_0x3ed1ff=>{const _0x2da278=_0x3ed1ff['querySelector']('oembed');if(_0x2da278){const _0x1a7fe8=_0x2da278['getAttribute']('url');if(_0x1a7fe8){const _0x105f14=_0x30fd2f['registry']['getMediaViewElement'](new _0x454453(_0x4ff72d['editing']['view']['document']),_0x1a7fe8,{'elementName':'','renderForEditingView':!0x0}),_0x2f300c=document['createElement']('div');_0x2f300c['classList']['add']('ck-media__wrapper'),_0x105f14['render'](_0x2f300c,_0x4ff72d['editing']['view']['domConverter']),_0x2da278['replaceWith'](_0x2f300c);}}}),_0x24ced3[_0x216de9]=_0x1a4200['innerHTML']);}return _0x24ced3;}['_sortRoots'](_0x417baa){if(!function(_0x47e91a){return void 0x0!==_0x47e91a['getRootsAttributes'];}(_0x417baa))return _0x417baa['model']['document']['getRootNames']();const _0x31793c=[],_0x171926=new Map();for(const _0x7af48b of _0x417baa['model']['document']['getRootNames']()){const _0x215270=_0x417baa['editing']['view']['getDomRoot'](_0x7af48b)['getClientRects']()['item'](0x0);_0x31793c['push'](_0x7af48b),_0x171926['set'](_0x7af48b,_0x215270);}return _0x31793c['sort']((_0x3f02a1,_0x23d8c8)=>{const _0x28f46b=_0x171926['get'](_0x3f02a1),_0x44c155=_0x171926['get'](_0x23d8c8);return _0x28f46b['y']-_0x44c155['y']||_0x28f46b['x']-_0x44c155['x'];}),_0x31793c;}}class te extends _0xac175e{static get['requires'](){return[T,_0x52247b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa7a585){super(_0xa7a585),_0xa7a585['commands']['add']('previewFinalContent',new re(this['editor'])),_0xa7a585['config']['define']('trackChanges.preview.renderFunction',(_0x5712df,_0x564133)=>{for(const _0x55b30e of _0x564133)_0x5712df['appendChild'](_0x55b30e);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};