@ckeditor/ckeditor5-track-changes 48.0.1-alpha.0 → 48.0.1

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x3ba425,Plugin as _0x957e03,PendingActions as _0x2bb4eb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x552cbc,Annotations as _0xce9570,EditorAnnotations as _0x5b7066,Comments as _0x2749f7}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x54f12a,ObservableMixin as _0x52ada8,uid as _0x10b1ba,priorities as _0x44e75e,insertToPriorityArray as _0x542196,logWarning as _0x5d3e28,getEnvKeystrokeText as _0x1e8d39,FocusTracker as _0x5def8c,KeystrokeHandler as _0x8f403f,Collection as _0x1335da}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5187d2,IconCancel as _0x21a991,IconTrackChanges as _0x59c1ed}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xc91311,View as _0x1fc7e3,ViewCollection as _0x36f468,FocusCycler as _0x5d13be,UIModel as _0x3a5d05,createDropdown as _0x1c7eeb,SplitButtonView as _0x164105,addListToDropdown as _0x3fe03e,MenuBarMenuView as _0x2d6ee1,MenuBarMenuListView as _0x401545,ListSeparatorView as _0x1d3cd1,MenuBarMenuListItemView as _0x5cf836,MenuBarMenuListItemButtonView as _0x131aa9,BodyCollection as _0x235106,Dialog as _0x354598}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x269eaf,SuggestionsConversion as _0x59977f,Users as _0x552f83,DocumentCompare as _0x42784c,fixElementSuggestionRange as _0x39a147,hashObject as _0x308fea,surroundingMarkersDetector as _0x20f644,FOCUS_ANNOTATION_KEYSTROKE as _0x4b3ffd,AriaDescriptionView as _0x352d10,setupThreadKeyboardNavigation as _0x4475e0,trimHtml as _0x1eb79e,UserView as _0x104b2f,LateFocusButtonView as _0x24af73,getDateTimeFormatter as _0x5c25a4,getAllMarkersDomElementsSorted as _0x411add,sanitizeEditorConfig as _0x4df7f6}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x296d07,ModelLiveRange as _0x82a6d2,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x3ba425{['_enabledCommands'];constructor(_0x31200a,_0x336e87){super(_0x31200a),this['_enabledCommands']=_0x336e87,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 _0x426c8a of this['editor']['commands']['commands']())_0x426c8a['affectsData']&&!this['_enabledCommands']['has'](_0x426c8a)&&_0x426c8a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3dbadb of this['editor']['commands']['commands']())_0x3dbadb['affectsData']&&!this['_enabledCommands']['has'](_0x3dbadb)&&_0x3dbadb['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x3ba425{['_suggestions'];constructor(_0x59c75d,_0x4aae78){super(_0x59c75d),this['_suggestions']=_0x4aae78,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4f9ac2){const _0x3ebda5=this['_suggestions']['get'](_0x4f9ac2);if(!_0x3ebda5)throw new _0x54f12a('track-changes-accept-suggestion-not-found',this);const _0x4663d0=_0x3ebda5['getRanges']();this['editor']['model']['canEditAt'](_0x4663d0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3ebda5);}}class ft extends _0x3ba425{['_suggestions'];constructor(_0x55e8b8,_0xc0fc79){super(_0x55e8b8),this['_suggestions']=_0xc0fc79,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x45eafe){const _0x4d6df6=this['_suggestions']['get'](_0x45eafe);if(!_0x4d6df6)throw new _0x54f12a('track-changes-discard-suggestion-not-found',this);const _0x29110e=_0x4d6df6['getRanges']();this['editor']['model']['canEditAt'](_0x29110e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4d6df6);}}function gt(_0xb8b218,_0x176929){let _0x53f005='';return _0x53f005+=_0xb8b218['split']('*')['map']((_0x229235,_0x10efeb)=>_0x10efeb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x229235)+'</span>':mt(_0x229235))['join'](''),_0x176929&&(_0x53f005+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x176929['value']+'\x22\x20title=\x22'+_0x176929['title']+'\x22></span>'),_0x53f005;}function mt(_0x547a85){const _0x43787f=document['createElement']('span');return _0x43787f['innerText']=_0x547a85,_0x43787f['innerHTML'];}function Et(_0x3839b7){return _0x3839b7['sort']((_0x1957ee,_0x4f04e5)=>'attribute'===_0x1957ee['type']&&'attribute'!==_0x4f04e5['type']?-0x1:'attribute'!==_0x1957ee['type']&&'attribute'===_0x4f04e5['type']?0x1:'deletion'==_0x1957ee['type']&&'deletion'!=_0x4f04e5['type']?-0x1:'deletion'!=_0x1957ee['type']&&'deletion'==_0x4f04e5['type']?0x1:0x0);}function Tt(_0x133c06,_0x3866d9){let _0x4698c4,_0x5cb55b=0x0;const _0x22ce88=[],_0x39315c=_0x3866d9['schema'];for(;_0x5cb55b<_0x133c06['length'];){const _0xbd1d33=_0x133c06[_0x5cb55b],_0x319e85=_0x133c06[_0x5cb55b+0x1];_0x4698c4||(_0x4698c4=_0x3866d9['createPositionBefore'](_0xbd1d33)),_t(_0x3866d9,_0xbd1d33,_0x319e85)||(_0x22ce88['push'](_0x3866d9['createRange'](_0x4698c4,_0x39315c['isObject'](_0xbd1d33)?_0x3866d9['createPositionAfter'](_0xbd1d33):_0x3866d9['createPositionAt'](_0xbd1d33,'end'))),_0x4698c4=null),_0x5cb55b++;}return _0x22ce88;}function _t(_0x4ed693,_0x284ba1,_0x704e36){if(!_0x704e36)return!0x1;const _0xa47351=_0x4ed693['createPositionAfter'](_0x284ba1),_0x478c77=_0x4ed693['createPositionBefore'](_0x704e36);return _0xa47351['isTouching'](_0x478c77);}function pt(_0x2fee93,_0x2600b7,_0x9a572d){for(;_0x9a572d['length'];){const _0x51a4f5=_0x9a572d['splice'](0x0,0x64);_0x2fee93['change'](()=>{for(const _0x2f3adc of _0x51a4f5)_0x2f3adc['isInContent']&&_0x2600b7['execute'](_0x2f3adc['id']);});}}class Lt extends _0x3ba425{['_command'];['_suggestions'];constructor(_0x1473aa,_0x2e9686,_0x122f2e){super(_0x1473aa),this['_command']=_0x2e9686,this['_suggestions']=_0x122f2e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x47beba=Array['from'](this['_suggestions']['values']())['some'](_0x2e23b9=>_0x2e23b9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x47beba;}['execute'](){const _0x539fa2=Et(Array['from'](this['_suggestions']['values']()));for(const _0x17d241 of _0x539fa2){const _0x1a2b31=_0x17d241['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1a2b31))return;}pt(this['editor']['model'],this['_command'],_0x539fa2);}}class It extends _0x3ba425{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x35a9ca,_0x8715d9,_0xc99ccf){super(_0x35a9ca),this['_command']=_0x8715d9,this['_suggestions']=_0xc99ccf,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x115390=this['editor']['model']['document']['selection'],_0x149d61=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x97e8bf,_0x215929){const _0xd87a78=Array['from'](_0x97e8bf['getRanges']()),_0x44487c=new Set();for(const _0x1aafa8 of _0x215929)if(_0x1aafa8['isInContent']){for(const _0x218f0f of _0xd87a78)for(const _0x5c4f16 of _0x1aafa8['getRanges']())(_0x218f0f['isIntersecting'](_0x5c4f16)||_0x97e8bf['isCollapsed']&&!_0x1aafa8['isMultiRange']&&_0x1aafa8['next']&&_0x5c4f16['end']['isTouching'](_0x218f0f['start']))&&_0x44487c['add'](_0x1aafa8);}return _0x44487c;}(_0x115390,_0x149d61),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x48134a=Et(Array['from'](this['_selectedSuggestions']));for(const _0x43d98a of _0x48134a){const _0x19ab19=_0x43d98a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19ab19))return;}pt(this['editor']['model'],this['_command'],_0x48134a);}}class bt extends/* #__PURE__ -- @preserve */
24
- _0x52ada8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x22e248,_0x1e7dbc){super(),this['id']=_0x1e7dbc['id'],this['type']=_0x1e7dbc['type'],this['subType']=_0x1e7dbc['subType']||null,this['author']=_0x1e7dbc['author'],this['creator']=_0x1e7dbc['creator']||_0x1e7dbc['author'],this['isExternal']=Boolean(_0x1e7dbc['attributes']&&_0x1e7dbc['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1e7dbc['originalSuggestionId']||null,this['_model']=_0x22e248,this['_onAccept']=_0x1e7dbc['onAccept'],this['_onDiscard']=_0x1e7dbc['onDiscard'],this['_onAttributesChange']=_0x1e7dbc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1e7dbc['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 _0x2f7269=this;for(;_0x2f7269['previous'];)_0x2f7269=_0x2f7269['previous'];return _0x2f7269;}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'](_0x5eab42){this['_markerNames']['add'](_0x5eab42);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b182a=>this['_model']['markers']['get'](_0x2b182a))['filter'](_0x2c84b8=>_0x2c84b8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x27cc35=>{for(const _0x24a108 of this['getMarkers']())_0x27cc35['removeMarker'](_0x24a108);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ddc8f){this['_model']['change'](_0x4c7216=>{_0x4c7216['removeMarker'](_0x1ddc8f);}),this['_markerNames']['delete'](_0x1ddc8f);}['addRange'](_0x59fe69){const _0x2e8689='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x2e8689),this['_model']['change'](_0x1a05c6=>{_0x1a05c6['addMarker'](_0x2e8689,{'range':_0x59fe69,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x104b93){for(const _0x19cf7e of this['getRanges']())if(_0x19cf7e['isIntersecting'](_0x104b93))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x462f2c=>_0x462f2c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4d9bf3,_0x1a0360)=>[..._0x4d9bf3,..._0x1a0360['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x16e186=this['getRanges']();if(0x1!=_0x16e186['length'])return null;const _0x466f32=_0x16e186[0x0],_0x385343=_0x466f32['start']['nodeAfter'],_0xa627ca=_0x466f32['end']['nodeBefore'];return _0x385343 instanceof _0x296d07?_0x385343!=_0xa627ca?null:_0x385343: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 _0x15f234=[];let _0x1544c8=this['head'];for(;_0x1544c8;)_0x15f234['push'](_0x1544c8),_0x1544c8=_0x1544c8['next'];return _0x15f234;}['setAttribute'](_0x4b00ac,_0x1176d0){const _0x131432=nt(this['attributes']);it(_0x131432,_0x4b00ac,_0x1176d0),st(_0x131432,this['attributes'])||(this['attributes']=_0x131432,this['_onAttributesChange'](_0x131432));}['removeAttribute'](_0x45a6e1){const _0x323726=nt(this['attributes']);rt(_0x323726,_0x45a6e1),st(_0x323726,this['attributes'])||(this['attributes']=_0x323726,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 _0x10b1ba()['substr'](0x1,0x5);}}function At(_0x1f25e5,_0x5d6e1d,_0x323dd4){const _0x99c9e7=_0x1f25e5['t'],t=_0x1f25e5['t'];switch(_0x5d6e1d){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',_0x323dd4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x323dd4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x323dd4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x323dd4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x323dd4);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',_0x323dd4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x323dd4);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',_0x323dd4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x323dd4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x323dd4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x323dd4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x323dd4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x323dd4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x323dd4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x323dd4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x323dd4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x323dd4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x323dd4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x323dd4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x323dd4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x323dd4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x323dd4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x323dd4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x323dd4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x323dd4);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'},_0x323dd4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x323dd4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x323dd4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x323dd4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x323dd4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x323dd4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x323dd4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x323dd4);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'},_0x323dd4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x323dd4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x323dd4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x323dd4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x323dd4);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x323dd4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x323dd4);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'},_0x323dd4);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x323dd4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x323dd4);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'},_0x323dd4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x323dd4);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'},_0x323dd4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x323dd4);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x323dd4);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x323dd4);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x323dd4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x323dd4);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'},_0x323dd4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x323dd4);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 _0x99c9e7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x323dd4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x99c9e7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x323dd4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x323dd4);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'},_0x323dd4);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'},_0x323dd4);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'},_0x323dd4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5d6e1d;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3f03df,_0x709753){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3f03df,this['_locale']=_0x709753;}['getDescriptions'](_0x5936d0){const _0x598602=[],_0x3df0a5=new Set(),_0x413e8c=new Set();for(let _0x5bcb61=0x0;_0x5bcb61<_0x5936d0['length'];_0x5bcb61++){const _0x489fa9=_0x5936d0[_0x5bcb61];if(!_0x489fa9['isInContent'])continue;const _0x4b5c46=this['_handleCustomCallbackDescription'](_0x489fa9);if(_0x4b5c46){if(null!=_0x489fa9['subType']){if(_0x3df0a5['has'](_0x489fa9['subType']))continue;_0x3df0a5['add'](_0x489fa9['subType']);}_0x598602['push'](_0x4b5c46);}else{if('attribute'==_0x489fa9['type']){const _0x2ac853=_0x489fa9['data']['key'];if(_0x413e8c['has'](_0x2ac853))continue;_0x413e8c['add'](_0x489fa9['data']['key']),_0x2ac853==Ke?this['_handleRenameSuggestionDescription'](_0x598602,_0x489fa9):this['_handleAttributeSuggestionDescription'](_0x598602,_0x489fa9);continue;}'insertion'!=_0x489fa9['type']&&'deletion'!=_0x489fa9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x598602,_0x489fa9,_0x5936d0[_0x5bcb61+0x1]);}}return this['_resolveDescriptionItems'](_0x598602);}['registerDescriptionCallback'](_0x38c5a4){this['_customCallbacks']['push'](_0x38c5a4);}['registerElementLabel'](_0xf054a3,_0x1b36bb,_0x5c06c5=_0x44e75e['normal']){'function'==typeof _0xf054a3?_0x542196(this['_itemLabelsCallbacks'],{'matchingCallback':_0xf054a3,'label':_0x1b36bb,'priority':_0x5c06c5}):this['_itemLabels']['set'](_0xf054a3,_0x1b36bb);}['registerAttributeLabel'](_0x20619e,_0x57abeb){this['_attributeLabels']['set'](_0x20619e,_0x57abeb);}['getItemLabel'](_0x541a5b,_0x5a593a=0x1){let _0xe666c1;for(const _0x551cb9 of this['_itemLabelsCallbacks'])if(_0x551cb9['matchingCallback'](_0x541a5b)){_0xe666c1=_0x551cb9['label'];break;}return _0xe666c1||(_0xe666c1=this['_itemLabels']['get'](_0x541a5b['name'])),_0xe666c1?_0xe666c1(_0x5a593a):0x1!==_0x5a593a?_0x5a593a+'\x20'+_0x541a5b['name']+'s':''+_0x541a5b['name'];}['_addDescriptionItems'](_0x312948,_0x3aa3c7){const _0x4a23bc=_0x3aa3c7['getFirstRange']()['getWalker'](),_0x1f7a73='insertion'==_0x3aa3c7['type']?'add':'remove';for(const _0x1ad7e7 of _0x4a23bc){const _0xa07103=_0x1ad7e7['item'],_0x56202d=_0x312948[_0x312948['length']-0x1];if(_0xa07103['is']('$textProxy'))_0x56202d&&_0x56202d['type']['indexOf']('Container')>-0x1&&_0x312948['pop'](),_0x56202d&&'text'==_0x56202d['type']?_0x56202d[_0x1f7a73]+=_0xa07103['data']:_0x312948['push']({'type':'text','add':'add'==_0x1f7a73?_0xa07103['data']:'','remove':'remove'==_0x1f7a73?_0xa07103['data']:''});else{if(this['_schema']['isObject'](_0xa07103)){const _0x3fc4e3=_0xa07103;if(_0x56202d&&_0x56202d['type']['indexOf']('Container')>-0x1&&_0x312948['pop'](),'elementEnd'==_0x1ad7e7['type'])continue;_0x56202d&&_0x56202d['type']==_0x1f7a73+'Object'&&_0x56202d['element']['name']==_0x3fc4e3['name']?_0x56202d['quantity']++:_0x312948['push']({'type':_0x1f7a73+'Object','element':_0x3fc4e3,'quantity':0x1}),_0x4a23bc['skip'](_0x4ec131=>!('elementEnd'==_0x4ec131['type']&&_0x4ec131['item']==_0xa07103));}else{if(this['_schema']['checkChild'](_0xa07103,'$text')||_0xa07103['is']('element','softBreak')){const _0x5dc49c=_0xa07103;if('add'==_0x1f7a73&&'elementStart'==_0x1ad7e7['type']||'remove'==_0x1f7a73&&'elementEnd'==_0x1ad7e7['type'])continue;if(_0x56202d&&-0x1==_0x56202d['type']['indexOf']('Container')){'text'==_0x56202d['type']&&(_0x56202d[_0x1f7a73]+='\x0a');continue;}let _0x226bfa;if(_0x226bfa='add'==_0x1f7a73?_0x5dc49c['nextSibling']&&!this['_schema']['isObject'](_0x5dc49c['nextSibling'])?_0x5dc49c['nextSibling']:null:_0x5dc49c['previousSibling']&&!this['_schema']['isObject'](_0x5dc49c['previousSibling'])?_0x5dc49c['previousSibling']:null,_0x5dc49c['isEmpty']||_0x226bfa&&_0x226bfa['isEmpty']){const _0x36e373=_0x226bfa&&_0x226bfa['isEmpty']?_0x226bfa:_0x5dc49c;_0x56202d&&_0x56202d['type']==_0x1f7a73+'EmptyContainer'&&_0x56202d['element']['name']==_0x36e373['name']?_0x56202d['quantity']++:_0x312948['push']({'type':_0x1f7a73+'EmptyContainer','element':_0x36e373,'quantity':0x1});}else _0x312948['push']({'type':_0x1f7a73+'Container','element':_0x5dc49c});}}}}}['_resolveDescriptionItems'](_0x40221d){const _0x2e54f1=this['_locale'],_0xe7f39=[],_0x58175a=[],_0x3dad1c=[];for(const _0xfdfc7c of _0x40221d)switch(_0xfdfc7c['type']){case'text':if(_0xfdfc7c['add']=_0xfdfc7c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xfdfc7c['remove']=_0xfdfc7c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xfdfc7c['add']&&''!=_0xfdfc7c['remove']){_0xe7f39['push']({'type':'replace','content':At(_0x2e54f1,'REPLACE_TEXT',['\x22'+_0xfdfc7c['remove']+'\x22','\x22'+_0xfdfc7c['add']+'\x22'])});continue;}if(null!=_0xfdfc7c['add']['match'](/^ +$/)){_0xe7f39['push']({'type':'insertion','content':At(_0x2e54f1,'*Insert:*\x20%0',At(_0x2e54f1,'ELEMENT_SPACE',_0xfdfc7c['add']['length']))});continue;}if(null!=_0xfdfc7c['remove']['match'](/^ +$/)){_0xe7f39['push']({'type':'deletion','content':At(_0x2e54f1,'*Remove:*\x20%0',At(_0x2e54f1,'ELEMENT_SPACE',_0xfdfc7c['remove']['length']))});continue;}if(''!=_0xfdfc7c['add']){_0xe7f39['push']({'type':'insertion','content':At(_0x2e54f1,'*Insert:*\x20%0','\x22'+_0xfdfc7c['add']+'\x22')});continue;}_0xe7f39['push']({'type':'deletion','content':At(_0x2e54f1,'*Remove:*\x20%0','\x22'+_0xfdfc7c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xe7f39['push']({'type':'insertion','content':At(_0x2e54f1,'*Insert:*\x20%0',this['getItemLabel'](_0xfdfc7c['element'],_0xfdfc7c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xe7f39['push']({'type':'deletion','content':At(_0x2e54f1,'*Remove:*\x20%0',this['getItemLabel'](_0xfdfc7c['element'],_0xfdfc7c['quantity']))});continue;case'addContainer':_0xe7f39['push']({'type':'insertion','content':At(_0x2e54f1,'*Split:*\x20%0',this['getItemLabel'](_0xfdfc7c['element'],_0xfdfc7c['quantity']))});continue;case'removeContainer':_0xe7f39['push']({'type':'deletion','content':At(_0x2e54f1,'*Merge:*\x20%0',this['getItemLabel'](_0xfdfc7c['element'],_0xfdfc7c['quantity']))});continue;case'addFormat':_0x58175a['push'](_0xfdfc7c['key']);continue;case'removeFormat':_0x3dad1c['push'](_0xfdfc7c['key']);continue;default:_0xe7f39['push'](_0xfdfc7c);}if(_0x58175a['length']){const _0x51e84f=_0x58175a['map'](_0x35509c=>this['_attributeLabels']['has'](_0x35509c)?this['_attributeLabels']['get'](_0x35509c):_0x35509c)['join'](',\x20');_0xe7f39['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x51e84f)});}if(_0x3dad1c['length']){const _0x479b52=_0x3dad1c['map'](_0x139d0b=>this['_attributeLabels']['has'](_0x139d0b)?this['_attributeLabels']['get'](_0x139d0b):_0x139d0b)['join'](',\x20');_0xe7f39['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x479b52)});}return _0xe7f39;}['_handleCustomCallbackDescription'](_0x471195){for(const _0x3e691e of this['_customCallbacks']){const _0x479846=_0x3e691e(_0x471195);if(_0x479846&&'type'in _0x479846)return _0x479846;}}['_handleAttributeSuggestionDescription'](_0xb1a0fd,_0x43a6db){const _0x323080=_0x43a6db['data'],_0x322318=void 0x0===_0x323080['newValue']?'removeFormat':'addFormat';_0xb1a0fd['push']({'type':_0x322318,'key':_0x323080['key']});}['_handleRenameSuggestionDescription'](_0x3c3ec7,_0x55f9b7){_0x3c3ec7['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x55f9b7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5b0cd0,_0x3d5cc8,_0x4e46a6){if(this['_addDescriptionItems'](_0x5b0cd0,_0x3d5cc8),_0x4e46a6&&_0x4e46a6['getFirstRange']()&&!_0x3d5cc8['getFirstRange']()['end']['isEqual'](_0x4e46a6['getFirstRange']()['start'])){const _0x70be36=_0x5b0cd0[_0x5b0cd0['length']-0x1],_0x34094d='insertion'==_0x3d5cc8['type']?'add':'remove';_0x70be36&&'text'==_0x70be36['type']&&(_0x70be36[_0x34094d]+='\x0a');}}}class Ct extends _0x957e03{['afterInit'](){const _0x3342dd=this['editor'],_0x45fd98=_0x3342dd['plugins']['get']('TrackChangesEditing');_0x3342dd['commands']['get']('showAIAssistant')&&_0x45fd98['enableCommand']('showAIAssistant');}}class yt extends _0x957e03{['afterInit'](){const _0x142db3=this['editor'],_0x23fa0a=_0x142db3['plugins']['get']('TrackChangesEditing');_0x142db3['commands']['get']('toggleAi')&&_0x23fa0a['enableCommand']('toggleAi');}}class Nt extends _0x957e03{['afterInit'](){const _0x3856c4=this['editor'],_0x4f3366=_0x3856c4['plugins']['get']('TrackChangesEditing');_0x3856c4['commands']['get']('aiQuickAction')&&_0x4f3366['enableCommand']('aiQuickAction');}}class Rt extends _0x957e03{['afterInit'](){const _0x7b0ea1=this['editor'],_0x4c96ba=_0x7b0ea1['locale'];if(!_0x7b0ea1['plugins']['has']('AlignmentEditing'))return;const _0x3686d9=_0x7b0ea1['plugins']['get']('TrackChangesEditing');_0x3686d9['enableDefaultAttributesIntegration']('alignment'),_0x3686d9['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x4c96ba,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40bd79=this['editor'],_0x257294=_0x40bd79['locale'];_0x40bd79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cee9a=>{if('formatBlock'!=_0x2cee9a['type'])return;const {data:_0x3dd738}=_0x2cee9a;if(_0x3dd738&&'alignment'==_0x3dd738['commandName']){const _0x4f3080=_0x3dd738['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x257294,'*Format:*\x20%0',function(_0x2c645b){switch(_0x2c645b){case'left':return At(_0x257294,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x257294,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x257294,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x257294,'FORMAT_JUSTIFY_TEXT');}}(_0x4f3080))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x957e03{['afterInit'](){const _0x32aca5=this['editor'],_0x5129ec=_0x32aca5['plugins']['get']('TrackChangesEditing'),_0x4500c1=_0x32aca5['locale'];for(const _0x4ec7b4 of St){if(!_0x32aca5['plugins']['has'](_0x4ec7b4))continue;const _0x29ec4f=_0x4ec7b4['slice'](0x0,-0x7)['toLowerCase'](),_0x478d2c='FORMAT_'+_0x29ec4f['toUpperCase']();_0x5129ec['enableDefaultAttributesIntegration'](_0x29ec4f),_0x5129ec['descriptionFactory']['registerAttributeLabel'](_0x29ec4f,At(_0x4500c1,_0x478d2c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e543c=this['editor'],_0x6efc18=_0x2e543c['locale'],_0x16eacf=_0x2e543c['plugins']['get']('TrackChangesEditing');function _0x35e507(_0x2a762b,_0x165aad){_0x16eacf['descriptionFactory']['registerDescriptionCallback'](_0x34d396=>{if('formatInline'!=_0x34d396['type'])return;const {data:_0x51936b}=_0x34d396;return _0x51936b&&_0x51936b['commandName']===_0x2a762b?_0x51936b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x6efc18,'*Format:*\x20%0',_0x165aad)}:{'type':'format','content':At(_0x6efc18,'*Remove\x20format:*\x20%0',_0x165aad)}:void 0x0;});}_0x35e507('bold',At(_0x6efc18,'FORMAT_BOLD')),_0x35e507('italic',At(_0x6efc18,'FORMAT_ITALIC')),_0x35e507('underline',At(_0x6efc18,'FORMAT_UNDERLINE')),_0x35e507('code',At(_0x6efc18,'FORMAT_CODE')),_0x35e507('strikethrough',At(_0x6efc18,'FORMAT_STRIKETHROUGH')),_0x35e507('subscript',At(_0x6efc18,'FORMAT_SUBSCRIPT')),_0x35e507('superscript',At(_0x6efc18,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x957e03{['afterInit'](){const _0x3a882d=this['editor'],_0x215f22=_0x3a882d['locale'];if(!_0x3a882d['plugins']['has']('BlockQuoteEditing'))return;const _0x590f40=_0x3a882d['plugins']['get']('TrackChangesEditing'),_0x442a6a=this['editor']['commands']['get']('blockQuote');_0x590f40['enableCommand']('blockQuote',(_0x28b583,_0x971531={})=>{const _0x5b0ae9=this['editor']['model']['document']['selection'],_0x421dcf=_0x971531&&void 0x0!==_0x971531['forceValue']?_0x971531['forceValue']:!_0x442a6a['value'];let _0x588e9e=[];if(_0x421dcf){const _0x5a282a=Array['from'](_0x5b0ae9['getSelectedBlocks']())['filter'](_0x59be38=>wt(_0x59be38)||function(_0x67e307,_0x267f55){const _0x137aa6=_0x267f55['checkChild'](_0x67e307['parent'],'blockQuote'),_0x4b0bcd=_0x267f55['checkChild'](['$root','blockQuote'],_0x67e307);return _0x137aa6&&_0x4b0bcd;}(_0x59be38,this['editor']['model']['schema']));_0x588e9e=Tt(_0x5a282a,_0x3a882d['model']);}else{const _0x4eb178=Array['from'](_0x5b0ae9['getSelectedBlocks']())['filter'](_0x19afb6=>wt(_0x19afb6));_0x588e9e=Tt(_0x4eb178,_0x3a882d['model']);}_0x3a882d['model']['change'](()=>{for(const _0x44aa3e of _0x588e9e)_0x590f40['markBlockFormat'](_0x44aa3e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x421dcf}]});});}),_0x590f40['descriptionFactory']['registerDescriptionCallback'](_0x344056=>{const {data:_0x58d0ac}=_0x344056;if(_0x58d0ac&&'blockQuote'==_0x58d0ac['commandName']){const _0x174ce8=At(_0x215f22,'ELEMENT_BLOCK_QUOTE');return _0x58d0ac['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x215f22,'*Set\x20format:*\x20%0',_0x174ce8)}:{'type':'format','content':At(_0x215f22,'*Remove\x20format:*\x20%0',_0x174ce8)};}});}}function wt(_0x5a30d0){return'blockQuote'==_0x5a30d0['parent']['name'];}class Bt extends _0x957e03{['afterInit'](){const _0x49c344=this['editor'],_0x54ac01=_0x49c344['locale'],_0x48c27d=_0x49c344['plugins']['get']('TrackChangesEditing');_0x49c344['plugins']['has']('BookmarkEditing')&&(_0x48c27d['enableCommand']('insertBookmark'),_0x48c27d['enableDefaultAttributesIntegration']('updateBookmark'),_0x48c27d['descriptionFactory']['registerDescriptionCallback'](_0x3e80ea=>{if('insertion'!=_0x3e80ea['type']&&'deletion'!=_0x3e80ea['type']&&'attribute'!=_0x3e80ea['type'])return;const _0x38954c=_0x3e80ea['getContainedElement']();if(null==_0x38954c)return;if(!_0x38954c['is']('element','bookmark'))return;const _0x34656a=_0x38954c['getAttribute']('bookmarkId');if('insertion'==_0x3e80ea['type'])return{'type':'insertion','content':At(_0x54ac01,'*Insert:*\x20%0','\x22'+_0x34656a+'\x22\x20'+At(_0x54ac01,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3e80ea['type'])return{'type':'deletion','content':At(_0x54ac01,'*Remove:*\x20%0','\x22'+_0x34656a+'\x22\x20'+At(_0x54ac01,'ELEMENT_BOOKMARK'))};const {data:_0xb3391f}=_0x3e80ea;if(!_0xb3391f||'bookmarkId'!=_0xb3391f['key'])return;return{'type':'format','content':At(_0x54ac01,'*Set\x20bookmark:*\x20%0','\x22'+_0xb3391f['newValue']+'\x22')};}));}}class Ft extends _0x957e03{['afterInit'](){const _0x1cbed8=this['editor'];_0x1cbed8['plugins']['has']('CaseChange')&&(_0x1cbed8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1cbed8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1cbed8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x957e03{['afterInit'](){const _0x202c95=this['editor'];_0x202c95['commands']['get']('ckbox')&&_0x202c95['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x957e03{['afterInit'](){const _0x487097=this['editor'];if(!_0x487097['plugins']['has']('CodeBlock'))return;const _0x14467b=_0x487097['plugins']['get']('TrackChangesEditing'),_0x207563=_0x487097['locale'],_0x37d31a=_0x487097['config']['get']('codeBlock')['languages'],_0x5820ea=_0x487097['commands']['get']('codeBlock');_0x14467b['enableCommand']('indentCodeBlock'),_0x14467b['enableCommand']('outdentCodeBlock'),_0x14467b['enableCommand']('codeBlock',(_0x5ee8ae,_0x182972={})=>{const _0x516453=_0x487097['model'],_0x3d70ec=_0x487097['model']['document']['selection'],_0x248127=_0x182972&&void 0x0!==_0x182972['forceValue']?_0x182972['forceValue']:!_0x5820ea['value'];let _0x44ddb5;_0x182972['language']||(_0x182972['language']=_0x37d31a[0x0]['language']),_0x44ddb5=_0x248127?Array['from'](_0x3d70ec['getSelectedBlocks']())['filter'](_0x218e09=>xt(_0x218e09)||function(_0xed4bfe,_0x4fb603){if(_0xed4bfe['is']('rootElement')||_0x4fb603['isLimit'](_0xed4bfe))return!0x1;return _0x4fb603['checkChild'](_0xed4bfe['parent'],'codeBlock');}(_0x218e09,_0x516453['schema'])):Array['from'](_0x3d70ec['getSelectedBlocks']())['filter'](_0x5cb7b6=>xt(_0x5cb7b6));const _0xfdb921=Tt(_0x44ddb5,_0x516453);_0x516453['change'](()=>{for(const _0x26efc0 of _0xfdb921)_0x14467b['markBlockFormat'](_0x26efc0,{'commandName':'codeBlock','commandParams':[{..._0x182972,'forceValue':_0x248127}],'formatGroupId':'blockName'});});}),(_0x14467b['descriptionFactory']['registerElementLabel']('codeBlock',_0x57b958=>At(_0x207563,'ELEMENT_CODE_BLOCK',_0x57b958)),_0x14467b['descriptionFactory']['registerDescriptionCallback'](_0x1a2eb7=>{if('formatBlock'!=_0x1a2eb7['type'])return;const _0x50cbef=_0x207563['t'],{data:_0x30b4cd}=_0x1a2eb7;if(!_0x30b4cd||'codeBlock'!=_0x30b4cd['commandName'])return;const _0x4e6186=_0x30b4cd['commandParams'][0x0]['language'],_0x1d38fc=_0x50cbef(_0x37d31a['find'](_0x3e464d=>_0x3e464d['language']===_0x4e6186)['label'])['toLowerCase']();return _0x30b4cd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x207563,'*Set\x20format:*\x20%0',At(_0x207563,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1d38fc+')')}:{'type':'format','content':At(_0x207563,'*Remove\x20format:*\x20%0',At(_0x207563,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x1ea79e){return'codeBlock'==_0x1ea79e['name'];}class Pt extends _0x957e03{['afterInit'](){const _0x16ccbd=this['editor'];if(!_0x16ccbd['plugins']['has']('CommentsEditing'))return;_0x16ccbd['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x957e03{static get['requires'](){return[at];}['init'](){const _0x329496=this['editor'],_0x455a96=_0x329496['plugins']['get']('TrackChangesEditing');_0x455a96['enableCommand']('delete');const _0x5d8a9d=_0x329496['commands']['get']('deleteForward');_0x455a96['enableCommand']('deleteForward',(_0x4aca94,_0x3d9d8a={})=>{const _0x4daa91=_0x329496['model']['createSelection'](_0x329496['model']['document']['selection']);_0x4daa91['isCollapsed']&&_0x329496['model']['modifySelection'](_0x4daa91,{'direction':'forward','unit':_0x3d9d8a['unit']});const _0x1ce6b8=_0x4daa91['getFirstRange'](),_0x7d8def=_0x82a6d2['fromRange'](_0x1ce6b8);let _0x4352b8;_0x4aca94(_0x3d9d8a),_0x4352b8='$graveyard'==_0x7d8def['root']['rootName']?_0x329496['model']['createRange'](_0x1ce6b8['start']):_0x329496['model']['createRange'](_0x7d8def['start'],_0x7d8def['end']),_0x7d8def['detach'](),_0x329496['model']['enqueueChange'](_0x5d8a9d['buffer']['batch'],_0x50b2e0=>{_0x5d8a9d['buffer']['lock'](),_0x50b2e0['setSelection'](_0x50b2e0['createRange'](_0x4352b8['end'])),_0x5d8a9d['buffer']['unlock']();});});}}class Gt extends _0x957e03{['afterInit'](){const _0x44579f=this['editor'];if(!_0x44579f['plugins']['has']('ListEditing'))return;const _0x637317=_0x44579f['locale'],_0x359cff=_0x44579f['plugins']['get']('TrackChangesEditing'),_0x59b8d5=_0x44579f['plugins']['has']('TodoListEditing'),_0x440731=!!_0x44579f['config']['get']('list.multiBlock');function _0x450729(_0x551702){return{'type':'format','content':''+At(_0x637317,'*Set\x20format:*\x20%0',_0x551702)};}function _0x50e587(_0x110348){return{'type':'format','content':''+At(_0x637317,'*Remove\x20format:*\x20%0',_0x110348)};}_0x359cff['enableDefaultAttributesIntegration']('numberedList'),_0x359cff['enableDefaultAttributesIntegration']('bulletedList'),_0x359cff['enableDefaultAttributesIntegration']('customNumberedList'),_0x359cff['enableDefaultAttributesIntegration']('customBulletedList'),_0x359cff['enableDefaultAttributesIntegration']('indentList'),_0x359cff['enableDefaultAttributesIntegration']('outdentList'),_0x359cff['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x359cff['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x440731&&(_0x359cff['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x359cff['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x59b8d5&&(_0x359cff['enableDefaultAttributesIntegration']('todoList'),_0x359cff['enableDefaultAttributesIntegration']('checkTodoList'),_0x359cff['descriptionFactory']['registerDescriptionCallback'](_0x352835=>{const {data:_0x1b9530}=_0x352835;if(_0x1b9530&&'todoListChecked'==_0x1b9530['key'])return{'type':'format','content':_0x1b9530['newValue']?At(_0x637317,'*Check\x20item*'):At(_0x637317,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x56519b=>{if(_0x56519b['batch']['isUndo'])return!0x1;let _0x563e2b=!0x1;const _0x36166b=_0x359cff['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb1af21=>'todoListChecked'===_0x359cff['_getAttributeKey'](_0xb1af21));for(const _0x3572ef of _0x36166b){'todo'!=_0x3572ef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x359cff['_findSuggestions'](_0x3572ef['getFirstRange'](),'attribute')['find'](_0x4c56d4=>'listType'===_0x359cff['_getAttributeKey'](_0x4c56d4['suggestion']))||(_0x56519b['removeMarker'](_0x3572ef['getFirstMarker']()),_0x563e2b=!0x0));}return _0x563e2b;})),_0x359cff['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x637317,'FORMAT_INDENT'));const _0x4e50c4={'type':'format','content':''};_0x359cff['descriptionFactory']['registerDescriptionCallback'](_0x1af3de=>{const {data:_0x1f0986}=_0x1af3de;if(!_0x1f0986||'listType'!=_0x1f0986['key'])return;let _0x2deadd=_0x1af3de['head'];for(;_0x2deadd;){if(_0x2deadd['data']&&(('listStyle'==_0x2deadd['data']['key']||'listMarkerStyle'==_0x2deadd['data']['key'])&&(_0x2deadd['data']['newValue']&&'default'!=_0x2deadd['data']['newValue']||'default'!=_0x2deadd['data']['oldValue']&&!_0x1f0986['newValue'])||!_0x440731&&_0x2deadd['data']['key']==Ke))return _0x4e50c4;_0x2deadd=_0x2deadd['next'];}if(null==_0x1f0986['newValue'])switch(_0x1f0986['oldValue']){case'bulleted':return _0x50e587(At(_0x637317,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x50e587(At(_0x637317,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x50e587(At(_0x637317,'ELEMENT_TODO_LIST'));}switch(_0x1f0986['newValue']){case'bulleted':return _0x450729(At(_0x637317,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x450729(At(_0x637317,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x450729(At(_0x637317,'ELEMENT_TODO_LIST'));}}),_0x359cff['descriptionFactory']['registerDescriptionCallback'](_0x7546fa=>{const {data:_0x306530}=_0x7546fa;if(_0x306530&&'listIndent'==_0x306530['key'])return null==_0x306530['newValue']||null==_0x306530['oldValue']&&0x0==_0x306530['newValue']?_0x4e50c4:void 0x0;}),_0x359cff['descriptionFactory']['registerDescriptionCallback'](_0xd6064=>{if('attribute'!=_0xd6064['type'])return;const {data:_0x2622a3}=_0xd6064;if(!_0x2622a3||'listItemId'!=_0x2622a3['key'])return;const _0x39806e=Ht(_0xd6064);return'newValue'==_0x39806e?{'type':'format','content':At(_0x637317,'*Merge:*\x20list\x20item')}:'oldValue'==_0x39806e?{'type':'format','content':At(_0x637317,'*Split:*\x20list\x20item')}:_0x4e50c4;}),_0x44579f['model']['document']['registerPostFixer'](_0x3e2386=>this['listItemIdFixer'](_0x3e2386)),_0x44579f['model']['document']['registerPostFixer'](_0x510e49=>this['noTrackChangesFixer'](_0x510e49)),_0x44579f['model']['document']['on']('change:data',(_0x1c30e1,_0xb75ba6)=>{if(_0xb75ba6['isUndo']||!_0xb75ba6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x76a986){if(_0x76a986['batch']['isUndo']||!_0x76a986['batch']['isLocal'])return!0x1;let _0x2d8f72=!0x1;const _0xfdd84b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x326977=>_0x326977['data']&&'listItemId'==_0x326977['data']['key'])['filter'](_0x12b591=>_0x12b591['data']['newValue']&&_0x12b591['data']['oldValue']);for(const _0x3ea7fe of _0xfdd84b)Ht(_0x3ea7fe)||(_0x76a986['removeMarker'](_0x3ea7fe['getFirstMarker']()),_0x2d8f72=!0x0);return _0x2d8f72;}['noTrackChangesFixer'](_0x5ba831){if(_0x5ba831['batch']['isUndo']||!_0x5ba831['batch']['isLocal'])return!0x1;const _0xa73983=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xa73983['trackChangesCommand']['value'])return!0x1;let _0x4683e9=!0x1;const _0x1e3f39=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x31ec24=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x38da68=>'attribute'==_0x38da68['type'])['filter'](_0x371cd5=>_0x1e3f39['includes'](_0x371cd5['attributeKey']));if(0x0==_0x31ec24['length'])return _0x4683e9;for(const _0x25c72d of _0x31ec24){const _0x2288a0=_0xa73983['_findSuggestions'](_0x25c72d['range'],'attribute')['filter'](_0x39a7d9=>!_0x39a7d9['meta']['isNextTo'])['map'](_0x4f3d53=>_0x4f3d53['suggestion'])['filter'](_0xfb6aa3=>{const _0x495327=_0xa73983['_getAttributeKey'](_0xfb6aa3);return _0x1e3f39['includes'](_0x495327);});if(_0x2288a0['length']){for(const _0x18f33a of _0x2288a0)_0x5ba831['removeMarker'](_0x18f33a['getFirstMarker']());_0x4683e9=!0x0;}}return _0x4683e9;}['assureChains'](){const _0x34f929=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24b31d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5a32cb;const _0x159b5b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x501bd7=>{if(_0x501bd7['data']['oldRange']||!_0x501bd7['data']['newRange'])return null;if(!_0x501bd7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x45059d}=_0x269eaf(_0x501bd7['name']);if(!_0x34f929['hasSuggestion'](_0x45059d))return null;const _0x4d7833=_0x34f929['getSuggestion'](_0x45059d);return _0x24b31d['includes'](_0x4d7833['data']['key']);})['map'](_0xa970d3=>{const {id:_0x589560}=_0x269eaf(_0xa970d3['name']),_0x1e31a0=_0x34f929['getSuggestion'](_0x589560);return _0x5a32cb=_0x1e31a0['attributes']['groupId'],_0x1e31a0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x159b5b['size'])return;const _0x3d112c=_0x34f929['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd22dc9=>'attribute'==_0xd22dc9['type']&&_0xd22dc9['data']&&_0x24b31d['includes'](_0xd22dc9['data']['key'])&&_0xd22dc9['attributes']['groupId']!=_0x5a32cb)['map'](_0x5f0585=>({'listItem':_0x5f0585['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5f0585['attributes']['groupId']})),_0xeb0ef9=new Set();for(const {groupId:_0x5c50d5,listItem:_0x392c9c}of _0x3d112c)_0x159b5b['has'](_0x392c9c)&&_0xeb0ef9['add'](_0x5c50d5);for(const _0x1f669b of _0x34f929['getSuggestions']())_0xeb0ef9['has'](_0x1f669b['attributes']['groupId'])&&_0x1f669b['setAttribute']('groupId',_0x5a32cb);}['_supportLegacySuggestions'](){const _0xcc6e0f=this['editor'],_0x54b3e8=_0xcc6e0f['locale'],_0x56cf7e=_0xcc6e0f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x56cf7e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1827ae,_0xdf1a4a){const _0x5229ac=[];for(let _0x96a802 of _0x1827ae)_0x96a802['start']['nodeAfter']===_0x96a802['end']['parent']&&(_0x96a802=_0xcc6e0f['model']['createRange'](_0xcc6e0f['model']['createPositionAt'](_0x96a802['start']['nodeAfter'],0x0))),_0x5229ac['push'](_0x96a802);_0xcc6e0f['model']['change'](_0x5bab0c=>{const _0x54fb22=_0xcc6e0f['model']['document']['selection'],_0x2ae3c1=Array['from'](_0x54fb22['getRanges']())['map'](_0x9f7a5d=>_0x82a6d2['fromRange'](_0x9f7a5d));_0x5bab0c['setSelection'](_0x5229ac),_0xcc6e0f['commands']['get'](_0xdf1a4a['commandName'])['refresh'](),_0xdf1a4a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xcc6e0f['execute'](_0xdf1a4a['commandName'],..._0xdf1a4a['commandParams']),_0x5bab0c['setSelection'](_0x2ae3c1);for(const _0x4786b9 of _0x2ae3c1)_0x4786b9['detach']();});}),_0x56cf7e['descriptionFactory']['registerElementLabel'](function(_0x28f766){const _0x135a0c=!_0xcc6e0f['model']['schema']['isObject'](_0x28f766),_0x23538c=_0x28f766['previousSibling'],_0x5a97f9=_0x28f766['nextSibling'],_0x159ff2=_0x28f766['getAttribute']('listItemId'),_0x1dee1b=!_0x23538c||_0x23538c['getAttribute']('listItemId')!==_0x159ff2,_0x219891=!_0x5a97f9||_0x5a97f9['getAttribute']('listItemId')!==_0x159ff2;return _0x135a0c&&Boolean(_0x159ff2)&&_0x1dee1b&&_0x219891;},_0x1ae443=>At(_0x54b3e8,'ELEMENT_LIST_ITEM',_0x1ae443));}['_registerLegacyDescription'](){const _0x414ed9=this['editor'],_0x39f1f9=_0x414ed9['locale'];function _0x53a764(_0x47ba77){const _0x19f4c0=_0x414ed9['commands']['get']('bulletedList')['value'],_0x2f2663=_0x414ed9['commands']['get']('numberedList')['value'];return'numberedList'===_0x47ba77?_0x19f4c0:_0x2f2663;}_0x414ed9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4e2996){if('formatBlock'!=_0x4e2996['type'])return;const {data:_0x2063ad}=_0x4e2996;if(!_0x2063ad)return;let _0x4efde7,_0x3068b0,_0x13e9a2,_0x20aae8;switch(_0x2063ad['commandName']){case'bulletedList':_0x13e9a2=_0x2063ad['commandParams'][0x0]['forceValue'],_0x20aae8=_0x53a764(_0x2063ad['commandName']),_0x4efde7=_0x13e9a2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20aae8&&_0x414ed9['config']['get']('list.multiBlock')||(_0x4efde7='*Change\x20to:*\x20%0'),_0x3068b0={'type':'format','content':At(_0x39f1f9,_0x4efde7,At(_0x39f1f9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x13e9a2=_0x2063ad['commandParams'][0x0]['forceValue'],_0x20aae8=_0x53a764(_0x2063ad['commandName']),_0x4efde7=_0x13e9a2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20aae8&&_0x414ed9['config']['get']('list.multiBlock')||(_0x4efde7='*Change\x20to:*\x20%0'),_0x3068b0={'type':'format','content':At(_0x39f1f9,_0x4efde7,At(_0x39f1f9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4efde7='*Indent:*\x20%0',_0x3068b0={'type':'format','content':At(_0x39f1f9,_0x4efde7,At(_0x39f1f9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4efde7=function(_0x3aaf1b){const _0x2b7161=_0x3aaf1b['getFirstRange']();let _0x1cbe48=_0x2b7161['start']['nodeAfter'];for(;_0x1cbe48&&_0x2b7161['containsItem'](_0x1cbe48);){if(_0x1cbe48['getAttribute']('listIndent')>0x0)return!0x1;_0x1cbe48=_0x1cbe48['nextSibling'];}return!0x0;}(_0x4e2996)?At(_0x39f1f9,'*Format:*\x20remove\x20from\x20%0',At(_0x39f1f9,function(_0x541176){return'ELEMENT_'+_0x541176['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4e2996))):At(_0x39f1f9,'*Outdent:*\x20%0',At(_0x39f1f9,'ELEMENT_LIST_ITEM')),_0x3068b0={'type':'format','content':_0x4efde7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2063ad['multipleBlocks']&&(_0x4efde7='*Merge:*\x20%0',_0x3068b0={'type':'deletion','content':At(_0x39f1f9,_0x4efde7,At(_0x39f1f9,'ELEMENT_LIST_ITEM'))});}return _0x3068b0;});}}function Ht(_0x5cd679){let _0x5ba077=_0x5cd679['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5ba077;){const _0x726da0=_0x5ba077['getAttribute']('listItemId');if(!_0x726da0)return!0x1;if(_0x726da0==_0x5cd679['data']['newValue'])return'newValue';if(_0x726da0==_0x5cd679['data']['oldValue'])return'oldValue';_0x5ba077=_0x5ba077['previousSibling'];}return!0x1;}class $t extends _0x957e03{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3db72b=this['editor']['config']['get']('list.properties'),_0x26d78d=this['editor']['plugins']['get']('TrackChangesEditing');_0x3db72b['styles']&&_0x26d78d['enableDefaultAttributesIntegration']('listStyle'),_0x3db72b['reversed']&&_0x26d78d['enableDefaultAttributesIntegration']('listReversed'),_0x3db72b['startIndex']&&_0x26d78d['enableDefaultAttributesIntegration']('listStart');const _0xe510c6={'type':'format','content':''};_0x26d78d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1fc7ce=this['editor']['locale'];_0x26d78d['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x1fc7ce,'FORMAT_LIST_REVERSED')),_0x26d78d['descriptionFactory']['registerDescriptionCallback'](_0x39d3f8=>{const {data:_0x250757}=_0x39d3f8;if(_0x250757&&'listReversed'==_0x250757['key'])return null==_0x250757['newValue']||0x0==_0x250757['newValue']&&null==_0x250757['oldValue']?_0xe510c6:void 0x0;}),_0x26d78d['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x1fc7ce,'FORMAT_LIST_START')),_0x26d78d['descriptionFactory']['registerDescriptionCallback'](_0x543c75=>{const {data:_0x5cb618}=_0x543c75;if(_0x5cb618&&'listStart'==_0x5cb618['key'])return null==_0x5cb618['newValue']||0x1==_0x5cb618['newValue']&&null==_0x5cb618['oldValue']?_0xe510c6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x51d6a0=>{if(_0x51d6a0['batch']['isUndo'])return!0x1;let _0x5b8337=!0x1;const _0x2a0f28=_0x26d78d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ed7ad=>{const _0x421d25=_0x26d78d['_getAttributeKey'](_0x5ed7ad);return'listStart'==_0x421d25||'listReversed'==_0x421d25;});for(const _0x4fd02a of _0x2a0f28){const _0x541c90=_0x4fd02a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x541c90||'customNumbered'==_0x541c90)continue;_0x26d78d['_findSuggestions'](_0x4fd02a['getFirstRange'](),'attribute')['find'](_0x549cfc=>'listType'==_0x26d78d['_getAttributeKey'](_0x549cfc['suggestion']))||(_0x51d6a0['removeMarker'](_0x4fd02a['getFirstMarker']()),_0x5b8337=!0x0);}return _0x5b8337;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1a3a60){const _0x3e6d6f=this['editor']['locale'],{data:_0x549958}=_0x1a3a60,_0x39f6cd={'type':'format','content':''};if(!_0x549958||'listStyle'!=_0x549958['key'])return;if(!_0x549958['oldValue'])return'default'==_0x549958['newValue']?_0x39f6cd:{'type':'format','content':''+At(_0x3e6d6f,'*Set\x20format:*\x20%0',At(_0x3e6d6f,this['_getTranslationKeyForListStyle'](_0x549958['newValue'])))};if(!_0x549958['newValue']){if('default'==_0x549958['oldValue'])return _0x39f6cd;let _0x27a9b3=_0x1a3a60['head'];for(;_0x27a9b3;){if(_0x27a9b3['data']&&'listType'==_0x27a9b3['data']['key']&&_0x27a9b3['data']['newValue'])return _0x39f6cd;_0x27a9b3=_0x27a9b3['next'];}return{'type':'format','content':''+At(_0x3e6d6f,'*Remove\x20format:*\x20%0',At(_0x3e6d6f,this['_getTranslationKeyForListStyle'](_0x549958['oldValue'])))};}if('default'!=_0x549958['newValue'])return{'type':'format','content':''+At(_0x3e6d6f,'*Set\x20format:*\x20%0',At(_0x3e6d6f,this['_getTranslationKeyForListStyle'](_0x549958['newValue'])))};let _0x195948=_0x1a3a60['head'];for(;_0x195948;){if(_0x195948['data']&&'listType'==_0x195948['data']['key']&&_0x195948['data']['newValue']&&_0x195948['data']['oldValue'])return _0x39f6cd;_0x195948=_0x195948['next'];}return{'type':'format','content':At(_0x3e6d6f,'*Set\x20format:*\x20%0',At(_0x3e6d6f,'ELEMENT_'+_0x1a3a60['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x23b278=this['editor'],_0x2b7e24=_0x23b278['locale'];_0x23b278['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x315c1d=>{if('formatBlock'!=_0x315c1d['type'])return;const {data:_0x3f72f5}=_0x315c1d;if(!_0x3f72f5)return;let _0x212010,_0x3acc25;switch(_0x3f72f5['commandName']){case'listStyle':_0x212010='*Change\x20to:*\x20%0',_0x3acc25={'type':'format','content':At(_0x2b7e24,_0x212010,At(_0x2b7e24,this['_getTranslationKeyForListStyle'](_0x3f72f5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x212010=_0x3f72f5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3acc25={'type':'format','content':At(_0x2b7e24,_0x212010)};break;case'listStart':_0x212010='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3acc25={'type':'format','content':At(_0x2b7e24,_0x212010,_0x3f72f5['commandParams'][0x0]['startIndex'])};}return _0x3acc25;});}['_getTranslationKeyForListStyle'](_0x5c47a8){return'ELEMENT_'+function(_0x1ca6ac){if(Wt['includes'](_0x1ca6ac))return'bulleted';if(Vt['includes'](_0x1ca6ac))return'numbered';return null;}(_0x5c47a8)['toUpperCase']()+'_LIST_'+_0x5c47a8['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x957e03{['afterInit'](){const _0x3f77b8=this['editor'];_0x3f77b8['commands']['get']('emoji')&&_0x3f77b8['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x957e03{static get['requires'](){return[lt];}['init'](){const _0x5d1194=this['editor'],_0x51bf6e=_0x5d1194['plugins']['get']('TrackChangesEditing'),_0x5eb6d6=_0x5d1194['commands']['get']('enter');_0x51bf6e['enableCommand']('enter',()=>{_0x5d1194['model']['change'](_0x4751ec=>{const _0x2597fe=_0x5d1194['model']['document']['selection'],_0x537bf0=_0x2597fe['getFirstPosition'](),_0x3b8170=_0x82a6d2['fromRange'](_0x2597fe['getFirstRange']());if(_0x5eb6d6['enterBlock'](_0x4751ec)){const _0x4effa5=_0x5d1194['model']['createPositionAt'](_0x537bf0['parent']['nextSibling'],0x0),_0x26cf3a=_0x4751ec['createRange'](_0x537bf0,_0x4effa5);_0x51bf6e['markInsertion'](_0x26cf3a);}else _0x4751ec['setSelection'](_0x4751ec['createRange'](_0x3b8170['end']));_0x3b8170['detach'](),_0x5eb6d6['fire']('afterExecute',{'writer':_0x4751ec});});});}}class Kt extends _0x957e03{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4f4e44=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f4e44['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4f4e44['enableCommand']('findNext'),_0x4f4e44['enableCommand']('findPrevious'),_0x4f4e44['enableCommand']('replace'),_0x4f4e44['enableCommand']('replaceAll');}['handleFindCommand'](_0x30ed18,_0x23073b,_0x3db952={}){const _0x2e2898=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x30ed18(_0x14e24c=>{let _0x3e2f79=('string'==typeof _0x23073b?_0x2e2898['findByTextCallback'](_0x23073b,_0x3db952):_0x23073b)(_0x14e24c);Array['isArray'](_0x3e2f79)&&(_0x3e2f79={'results':_0x3e2f79,'searchText':'string'==typeof _0x23073b?_0x23073b:''});const _0x47defa=_0x3e2f79['results']['filter'](_0x3cd23c=>!0x1===this['_isInDeletionRange'](_0x3cd23c,_0x14e24c['item']));return{..._0x3e2f79,'results':_0x47defa};},_0x3db952);}['_isInDeletionRange'](_0x2ec8e4,_0x41a284){const _0x420d98=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x41a284,_0x2ec8e4['start']),this['editor']['model']['createPositionAt'](_0x41a284,_0x2ec8e4['end']));for(const _0x37afd2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x420d98['getIntersection'](_0x37afd2['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x957e03{['afterInit'](){const _0x4b5734=this['editor']['locale'],_0x1b60b9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4f6278,commandName:_0x2b3990}of Xt)this['editor']['plugins']['has'](_0x4f6278)&&_0x1b60b9['enableDefaultAttributesIntegration'](_0x2b3990);_0x1b60b9['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x4b5734,'FORMAT_FONT_SIZE')),_0x1b60b9['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x4b5734,'FORMAT_FONT_FAMILY')),_0x1b60b9['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x4b5734,'FORMAT_FONT_COLOR')),_0x1b60b9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x4b5734,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fc2c2=this['editor'],_0x45fefb=_0x1fc2c2['locale'];_0x1fc2c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fa242=>{const _0x247901=_0x45fefb['t'];if('formatInline'!=_0x4fa242['type'])return;const {data:_0x397270}=_0x4fa242;if(null!=_0x397270){if('fontSize'==_0x397270['commandName']){const _0x34356a=_0x397270['commandParams'][0x0]['value'];if(_0x34356a){const _0x59f561=_0x247901(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x413d0a=>_0x413d0a['model']==_0x34356a)['title'])['toLowerCase']();return{'type':'format','content':At(_0x45fefb,'*Set\x20font\x20size:*\x20%0',_0x59f561)};}return{'type':'format','content':At(_0x45fefb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x397270['commandName']){const _0x4d9312=_0x397270['commandParams'][0x0]['value'];return _0x4d9312?{'type':'format','content':At(_0x45fefb,'*Set\x20font\x20family:*\x20%0',_0x4d9312)}:{'type':'format','content':At(_0x45fefb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x397270['commandName']){const _0x5bcae6=_0x397270['commandParams'][0x0]['value'];if(_0x5bcae6){const _0xc93d32=_0xc91311(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4c5505=>_0x4c5505['model']==_0x5bcae6);let _0x795d7a=_0x5bcae6,_0x49a7d5='';return _0xc93d32&&(_0x795d7a=_0xc93d32['label'],_0x49a7d5=_0x247901(_0x795d7a)['toLowerCase']()),{'type':'format','content':At(_0x45fefb,'*Set\x20font\x20color:*\x20%0',_0x49a7d5)['trim'](),'color':{'value':_0x5bcae6,'title':_0x49a7d5||_0x795d7a}};}return{'type':'format','content':At(_0x45fefb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x397270['commandName']){const _0x3d003f=_0x397270['commandParams'][0x0]['value'];if(_0x3d003f){const _0x269b5b=_0xc91311(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4b73cd=>_0x4b73cd['model']==_0x3d003f);let _0x37dfcb=_0x3d003f,_0x5df76d='';return _0x269b5b&&(_0x37dfcb=_0x269b5b['label'],_0x5df76d=_0x247901(_0x37dfcb)['toLowerCase']()),{'type':'format','content':At(_0x45fefb,'*Set\x20font\x20background\x20color:*\x20%0',_0x5df76d)['trim'](),'color':{'value':_0x3d003f,'title':_0x5df76d||_0x37dfcb}};}return{'type':'format','content':At(_0x45fefb,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x957e03{['afterInit'](){const {plugins:_0x33c4a8}=this['editor'];_0x33c4a8['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x33c4a8['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xa09557,plugins:_0x4a956b,commands:_0x14df98}=this['editor'],_0x9d3053=_0x4a956b['get']('TrackChangesEditing');_0x14df98['get']('footnotesStyle')&&_0x9d3053['enableDefaultAttributesIntegration']('footnotesStyle'),_0x14df98['get']('footnotesStart')&&_0x9d3053['enableDefaultAttributesIntegration']('footnotesStart'),_0x9d3053['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0xa09557,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x9d3053['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0xa09557,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x51bf2b=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5bb91a,commands:_0x2d6336}=this['editor'];_0x2d6336['get']('insertFootnote')&&_0x51bf2b['enableCommand']('insertFootnote'),_0x51bf2b['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2863fc=>At(_0x5bb91a,'ELEMENT_FOOTNOTE_REF',_0x2863fc)),_0x51bf2b['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x11b4a7=>At(_0x5bb91a,'ELEMENT_FOOTNOTE_DEFINITION',_0x11b4a7)),_0x51bf2b['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x5cc3d0=>At(_0x5bb91a,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x5cc3d0));}}class Qt extends _0x957e03{['afterInit'](){const _0x29dce8=this['editor'],_0x3c3379=_0x29dce8['plugins']['get']('TrackChangesEditing'),_0x16bb44=_0x29dce8['commands']['get']('copyFormat'),_0xa26613=_0x29dce8['commands']['get']('pasteFormat');_0x16bb44&&_0xa26613&&(_0x3c3379['enableDefaultAttributesIntegration']('pasteFormat'),_0x3c3379['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2f6925=this['editor'],_0x59d0d7=_0x2f6925['locale'];_0x2f6925['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x99bc0e=>{if('formatBlock'!=_0x99bc0e['type']&&'formatInline'!=_0x99bc0e['type'])return;const {data:_0x390b11}=_0x99bc0e;if(_0x390b11&&'pasteFormat'===_0x390b11['commandName']){const _0x50f3ae=[],_0x3aea4a=_0x390b11['commandParams'][0x0];for(const [_0x10394b,_0x336eb2]of Object['entries'](_0x3aea4a))_0x50f3ae['push'](Zt(_0x2f6925,_0x10394b,_0x336eb2));return _0x50f3ae['length']?{'type':'format','content':At(_0x59d0d7,'*Set\x20format\x20to:*\x20%0',_0x50f3ae['join'](',\x20'))}:{'type':'format','content':At(_0x59d0d7,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x2e5d04,_0x4c2b40,_0x315776){const _0x14f968=_0x2e5d04['locale']['t'],_0x1b5af1=_0x4c2b40['split'](/(?=[A-Z])/)['join']('\x20'),_0x1942cb=_0x14f968(_0x1b5af1['charAt'](0x0)['toUpperCase']()+_0x1b5af1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x315776)return _0x1942cb;if('fontColor'===_0x4c2b40||'fontBackgroundColor'===_0x4c2b40){const _0x1f5add=_0xc91311(_0x2e5d04['config']['get']('fontColor.colors'))['find'](_0x55947f=>_0x55947f['model']==_0x315776);return _0x1942cb+'\x20('+(_0x1f5add?_0x14f968(_0x1f5add['label'])['toLowerCase']():_0x315776)+')';}if('fontSize'===_0x4c2b40&&isNaN(parseFloat(_0x315776))){const _0x552b75=_0x2e5d04['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2e5d04['config']['get']('fontSize.options'))['find'](_0x5eaaa2=>_0x5eaaa2['model']==_0x315776);return _0x1942cb+'\x20('+(_0x552b75?_0x14f968(_0x552b75['title'])['toLowerCase']():_0x315776)+')';}return _0x1942cb+'\x20('+_0x315776+')';}class Jt extends _0x957e03{['_headingOptions'];['afterInit'](){const _0x8e3dc=this['editor'];if(!_0x8e3dc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x8e3dc['config']['get']('heading.options');const _0x5d526c=_0x8e3dc['locale'],_0xb33e59=_0x8e3dc['plugins']['get']('TrackChangesEditing');_0xb33e59['enableDefaultAttributesIntegration']('heading');for(const _0x550315 of this['_headingOptions'])'paragraph'!=_0x550315['model']&&_0xb33e59['descriptionFactory']['registerElementLabel'](_0x550315['model'],_0x5565fe=>{const _0x13b621=this['_getHeadingLevel'](_0x550315['model']);return null!==_0x13b621?_0x19e783(_0x5565fe,_0x13b621):_0x5a668a(_0x5565fe,_0x550315['title']);});function _0x19e783(_0x21d88d,_0x238b7a){return At(_0x5d526c,'ELEMENT_HEADING',[_0x21d88d,_0x238b7a]);}function _0x5a668a(_0x48fc79,_0x491ee0){return At(_0x5d526c,'ELEMENT_HEADING_CUSTOM',[_0x48fc79,_0x491ee0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x190909=this['editor'],_0x683fbd=_0x190909['locale'];function _0x14caef(_0x4cd77e,_0x1a29b6){return At(_0x683fbd,'ELEMENT_HEADING_CUSTOM',[_0x4cd77e,_0x1a29b6]);}_0x190909['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fadf6=>{if('formatBlock'!=_0x3fadf6['type'])return;const {data:_0x3adb72}=_0x3fadf6;if(_0x3adb72&&'heading'==_0x3adb72['commandName']){const _0x3826f5=_0x3adb72['commandParams'][0x0]['value'],_0x35a033=this['_getHeadingLevel'](_0x3826f5);if(null!==_0x35a033)return{'type':'format','content':At(_0x683fbd,'*Change\x20to:*\x20%0',(_0x15e3f6=0x1,_0xd9bf3b=_0x35a033,At(_0x683fbd,'ELEMENT_HEADING',[_0x15e3f6,_0xd9bf3b])))};const _0x699df2=this['_headingOptions']['find'](_0x2710bb=>_0x2710bb['model']===_0x3826f5)['title'];return{'type':'format','content':At(_0x683fbd,'*Change\x20to:*\x20%0',_0x14caef(0x1,_0x699df2))};}var _0x15e3f6,_0xd9bf3b;});}['_getHeadingLevel'](_0x227e3e){const _0x49c1a0=_0x227e3e['match'](/^heading(\d+)/);if(_0x49c1a0)return _0x49c1a0[0x1];const _0x4e4ed8=this['_headingOptions']?.['find'](_0x40d4fb=>_0x40d4fb['model']==_0x227e3e);if(_0x4e4ed8&&_0x4e4ed8['view']){const _0x588df6=_0x4e4ed8['view'],_0x3649b6=(_0x588df6['name']??_0x588df6)['match'](/^h(\d+)/);if(_0x3649b6)return _0x3649b6[0x1];}return null;}}class te extends _0x957e03{['afterInit'](){const _0x6f766a=this['editor'];if(!_0x6f766a['plugins']['has']('HighlightEditing'))return;const _0xfb5148=_0x6f766a['plugins']['get']('TrackChangesEditing'),_0x280d0a=_0x6f766a['locale'];_0xfb5148['enableDefaultAttributesIntegration']('highlight'),_0xfb5148['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x280d0a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f3b24=this['editor'],_0x55d953=_0x5f3b24['locale'];_0x5f3b24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25ff5c=>{if('formatInline'!=_0x25ff5c['type'])return;const {data:_0x40a777}=_0x25ff5c;if(_0x40a777&&'highlight'==_0x40a777['commandName']){const _0x38c2b8=_0x55d953['t'],_0x2f172b=_0x40a777['commandParams'][0x0]['value'];if(_0x2f172b){const _0x3053da=_0x5f3b24['config']['get']('highlight.options')['find'](_0x2e3eee=>_0x2e3eee['model']==_0x2f172b),_0x586ead=_0x38c2b8(_0x3053da['title'])['toLowerCase']();return{'type':'format','content':At(_0x55d953,'*Set\x20highlight:*\x20%0',_0x586ead),'color':{'value':_0x3053da['color'],'title':_0x3053da['title']}};}return{'type':'format','content':At(_0x55d953,'*Remove\x20highlight*',At(_0x55d953,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x957e03{['afterInit'](){const _0x3ad504=this['editor'];if(!_0x3ad504['plugins']['has']('HorizontalLineEditing'))return;_0x3ad504['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x38066a=_0x3ad504['plugins']['get']('TrackChangesEditing'),_0x3a6831=_0x3ad504['locale'];_0x38066a['descriptionFactory']['registerElementLabel']('horizontalLine',_0xaa9d2c=>At(_0x3a6831,'ELEMENT_HORIZONTAL_LINE',_0xaa9d2c));}}class ne extends _0x957e03{['afterInit'](){const _0x145f5e=this['editor'];if(!_0x145f5e['plugins']['has']('HtmlEmbed'))return;const _0xb5db64=_0x145f5e['plugins']['get']('TrackChangesEditing'),_0x3e7de0=_0x145f5e['locale'];_0xb5db64['descriptionFactory']['registerElementLabel']('rawHtml',_0x26e0f8=>At(_0x3e7de0,'ELEMENT_HTML_EMBED',_0x26e0f8)),_0xb5db64['enableDefaultAttributesIntegration']('htmlEmbed'),_0xb5db64['descriptionFactory']['registerDescriptionCallback'](_0x465451=>{if('attribute'!=_0x465451['type'])return;const {data:_0x337d86}=_0x465451;if(_0x337d86&&'value'==_0x337d86['key']&&_0x465451['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18cb6a=At(_0x3e7de0,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x3e7de0,'*Change\x20%0\x20content*',_0x18cb6a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e3da9=this['editor'],_0x3bc92f=_0x3e3da9['locale'];_0x3e3da9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12d293=>{if('formatBlock'!=_0x12d293['type'])return;const {data:_0xaf1ae1}=_0x12d293;if(_0xaf1ae1&&'htmlEmbed'==_0xaf1ae1['commandName']){const _0x49a919=At(_0x3bc92f,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x3bc92f,'*Change\x20%0\x20content*',_0x49a919)};}});}}class ie extends _0x957e03{['afterInit'](){const _0x259827=this['editor'];if(!_0x259827['plugins']['has']('ImageEditing'))return;const _0x16a778=_0x259827['plugins']['get']('TrackChangesEditing'),_0x52fa2e=_0x259827['plugins']['get']('ImageUtils'),_0x184e6e=_0x259827['locale'];_0x16a778['enableCommand']('insertImage'),_0x16a778['descriptionFactory']['registerElementLabel']('imageBlock',_0x35cedf=>At(_0x184e6e,'ELEMENT_IMAGE',_0x35cedf)),_0x16a778['descriptionFactory']['registerElementLabel']('imageInline',_0x11ae15=>At(_0x184e6e,'ELEMENT_INLINE_IMAGE',_0x11ae15)),_0x16a778['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x184e6e,'ELEMENT_CAPTION')),_0x259827['plugins']['has']('ImageUploadEditing')&&_0x16a778['enableCommand']('uploadImage'),_0x259827['plugins']['has']('ImageBlockEditing')&&_0x259827['plugins']['has']('ImageInlineEditing')&&(_0x16a778['enableCommand']('imageTypeInline',(_0x7d9ce1,_0x4732ea)=>{const _0x2c88aa=_0x52fa2e['getClosestSelectedImageElement'](_0x259827['model']['document']['selection']);_0x259827['model']['change'](()=>{_0x16a778['markBlockFormat'](_0x2c88aa,{'commandName':'imageTypeInline','commandParams':[_0x4732ea]},[],'convertBlockImageToInline');});}),_0x16a778['enableCommand']('imageTypeBlock',(_0x1bd145,_0x2d9159)=>{_0x259827['model']['change'](_0x8734b=>{let _0x4281d7=_0x52fa2e['getClosestSelectedImageElement'](_0x259827['model']['document']['selection']),_0x2714bf=_0x8734b['createRangeOn'](_0x4281d7);const _0x4792d4=tt['fromPosition'](_0x2714bf['start'],'toPrevious'),_0xfffebf=tt['fromPosition'](_0x2714bf['end'],'toNext');_0x16a778['forceDefaultExecution'](()=>_0x1bd145(_0x2d9159)),_0x4281d7=_0x52fa2e['getClosestSelectedImageElement'](_0x259827['model']['document']['selection']),_0x2714bf=_0x8734b['createRangeOn'](_0x4281d7);const _0x3f321c=_0x8734b['createRange'](_0x4792d4,_0xfffebf);_0x4792d4['detach'](),_0xfffebf['detach'](),_0x16a778['markBlockFormat'](_0x4281d7,{'commandName':'imageTypeInline','commandParams':[_0x2d9159]},[],'convertInlineImageToBlock'),_0x3f321c['start']['isBefore'](_0x2714bf['start'])&&_0x16a778['markInsertion'](_0x8734b['createRange'](_0x3f321c['start'],_0x2714bf['start']),'convertInlineImageToBlock'),_0x2714bf['end']['isBefore'](_0x3f321c['end'])&&_0x16a778['markInsertion'](_0x8734b['createRange'](_0x2714bf['end'],_0x3f321c['end']),'convertInlineImageToBlock');});}),_0x16a778['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x16a778['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x16a778['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x16a778['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x16a778['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x16a778['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x58aa35])=>{const _0x4c21d5=_0x16a778['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3407d3=_0x58aa35['start'],_0x33f29f=_0x58aa35['end'];const _0x2850b0=_0x259827['model']['schema']['getNearestSelectionRange'](_0x3407d3,'backward'),_0x8a6765=_0x259827['model']['schema']['getNearestSelectionRange'](_0x33f29f,'forward');_0x2850b0['isCollapsed']&&(_0x3407d3=_0x2850b0['start']),_0x8a6765['isCollapsed']&&(_0x33f29f=_0x8a6765['end']),_0x4c21d5([_0x259827['model']['createRange'](_0x3407d3,_0x33f29f)]);}),_0x16a778['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3d01e1),_0x16a778['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3d01e1)),_0x259827['plugins']['has']('ImageCaptionEditing')&&(_0x16a778['enableCommand']('toggleImageCaption',(_0x5e8df6,_0x53b864)=>{const _0x39db5b=_0x259827['plugins']['get']('ImageCaptionUtils');let _0x29bee0=_0x52fa2e['getClosestSelectedImageElement'](_0x259827['model']['document']['selection']),_0x5cd874=_0x39db5b['getCaptionFromImageModelElement'](_0x29bee0);_0x259827['model']['change'](()=>{if(_0x5cd874)return void _0x16a778['markDeletion'](_0x259827['model']['createRangeOn'](_0x5cd874));const _0x122501=_0x52fa2e['isBlockImage'](_0x29bee0);_0x5e8df6(_0x53b864),_0x29bee0=_0x52fa2e['getClosestSelectedImageElement'](_0x259827['model']['document']['selection']),_0x5cd874=_0x39db5b['getCaptionFromImageModelElement'](_0x29bee0),_0x16a778['markInsertion'](_0x259827['model']['createRangeOn'](_0x5cd874),_0x122501?null:'imageCaption');});}),_0x16a778['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3d01e1));const _0x4fb1ce=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1d7f33(_0x17ca72,_0x6aa9df){const _0x376084=_0x4fb1ce['findIndex'](({type:_0x43b422,subType:_0xc4aa0})=>_0x17ca72['type']==_0x43b422&&_0x17ca72['subType']==_0xc4aa0),_0x323e36=_0x4fb1ce['findIndex'](({type:_0x4213ac,subType:_0x33cf7c})=>_0x6aa9df['type']==_0x4213ac&&_0x6aa9df['subType']==_0x33cf7c);if(_0x376084<0x0||_0x323e36<0x0)return!0x1;const _0x4fb82d=_0x17ca72['getFirstRange'](),_0x31e7f1=_0x6aa9df['getFirstRange']();if((0x0==_0x376084||0x1==_0x376084)&&0x2==_0x323e36&&_0x4fb82d['isIntersecting'](_0x31e7f1))return!0x0;if(0x2==_0x376084&&0x3==_0x323e36){const _0x2943b8=_0x16a778['_findSuggestions'](_0x4fb82d,'insertion')['filter'](({suggestion:_0x2a7b01,meta:_0xcc2ac})=>_0xcc2ac['isOwn']&&'convertInlineImageToBlock'==_0x2a7b01['subType']);if(_0x2943b8['length']>0x1&&_0x31e7f1['end']['isEqual'](_0x4fb82d['start']))return!0x0;if(0x1==_0x2943b8['length']&&(_0x4fb82d['start']['isEqual'](_0x31e7f1['end'])||_0x4fb82d['end']['isEqual'](_0x31e7f1['start'])))return!0x0;}if(0x3==_0x376084&&0x3==_0x323e36&&_0x4fb82d['start']['isBefore'](_0x31e7f1['start'])){const _0x23f108=_0x4fb82d['end']['nodeAfter'],_0x258c0b=_0x31e7f1['start']['nodeBefore'];return _0x52fa2e['isBlockImage'](_0x23f108)&&_0x23f108===_0x258c0b;}return!0x1;}function _0x3d01e1(_0x459905,_0x20e302){return _0x1d7f33(_0x459905,_0x20e302)?[_0x459905,_0x20e302]:_0x1d7f33(_0x20e302,_0x459905)?[_0x20e302,_0x459905]:null;}_0x259827['plugins']['has']('ImageResize')&&(_0x16a778['enableDefaultAttributesIntegration']('resizeImage'),_0x16a778['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x184e6e,'FORMAT_IMAGE_SIZE'))),_0x259827['plugins']['has']('ImageTextAlternativeEditing')&&_0x16a778['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x259827['plugins']['has']('PictureEditing')&&_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0x4b0119=>{if('attribute'!=_0x4b0119['type'])return;const {data:_0x47cb11}=_0x4b0119;return _0x47cb11&&'sources'==_0x47cb11['key']?{'type':'format','content':''}:void 0x0;}),_0x259827['plugins']['has']('ImageSizeAttributes')&&_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0x20014f=>{if('attribute'!=_0x20014f['type'])return;const {data:_0x43a453}=_0x20014f;return!_0x43a453||'width'!=_0x43a453['key']&&'height'!=_0x43a453['key']?void 0x0:{'type':'format','content':''};}),_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0xa8169e=>{if(!!_0x4fb1ce['find'](({type:_0x1eff2e,subType:_0x2f68f3})=>_0xa8169e['type']==_0x1eff2e&&_0xa8169e['subType']==_0x2f68f3))return _0xa8169e['previous']?{}:void 0x0;}),_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0xe69fd2=>{if('insertion'==_0xe69fd2['type']||'deletion'==_0xe69fd2['type']){const _0x526d0a=_0xe69fd2['getContainedElement']();if(_0x526d0a&&_0x526d0a['is']('element','caption'))return{'type':'insertion'==_0xe69fd2['type']?'addObject':'removeObject','element':_0x526d0a,'quantity':0x1};}}),_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0x406ea7=>'formatBlock'==_0x406ea7['type']&&'convertInlineImageToBlock'==_0x406ea7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x406ea7['type']&&'convertBlockImageToInline'==_0x406ea7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0x2c324a=>{if('attribute'!=_0x2c324a['type'])return;const {data:_0x3beda6}=_0x2c324a;if(!_0x3beda6||'alt'!=_0x3beda6['key'])return;const _0x1ae0e3=_0x3beda6['newValue'];return _0x1ae0e3?{'type':'format','content':At(_0x184e6e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1ae0e3+'\x22')}:{'type':'format','content':At(_0x184e6e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x517519=this['editor'],_0x503c46=_0x517519['locale'];_0x517519['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23a444=>{if('formatBlock'!=_0x23a444['type']&&'formatInline'!=_0x23a444['type'])return;const {data:_0x4619ba}=_0x23a444;if(_0x4619ba){if('imageTextAlternative'==_0x4619ba['commandName']){const _0x1f1107=_0x4619ba['commandParams'][0x0]['newValue'];return _0x1f1107?{'type':'format','content':At(_0x503c46,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1f1107+'\x22')}:{'type':'format','content':At(_0x503c46,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4619ba['commandName']){const _0x5a8896=_0x4619ba['commandParams'][0x0]['width'];return _0x5a8896?{'type':'format','content':At(_0x503c46,'*Set\x20image\x20width:*\x20%0',_0x5a8896)}:{'type':'format','content':At(_0x503c46,'*Reset\x20image\x20width*')};}}});}}class se extends _0x957e03{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x560b76=this['editor']['locale'],_0x236244=this['editor']['plugins']['get']('TrackChangesEditing');_0x236244['enableDefaultAttributesIntegration']('replaceImageSource'),_0x236244['descriptionFactory']['registerDescriptionCallback'](_0x56221d=>{if('attribute'!=_0x56221d['type'])return;const {data:_0x959038}=_0x56221d;return _0x959038&&'src'==_0x959038['key']?_0x959038['newValue']&&_0x959038['oldValue']?{'type':'format','content':At(_0x560b76,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x331d10=this['editor']['plugins']['get']('TrackChangesEditing');_0x331d10['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x331d10['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x331d10['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x331d10['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f3be9=this['editor'],_0x9acb38=_0x5f3be9['locale'];_0x5f3be9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ef576=>{if('formatBlock'!=_0x3ef576['type']&&'formatInline'!=_0x3ef576['type'])return;const {data:_0xb97d9c}=_0x3ef576;if(!_0xb97d9c||'replaceImageSource'!=_0xb97d9c['commandName'])return;return{'type':'format','content':At(_0x9acb38,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x957e03{['afterInit'](){const _0x342553=this['editor'];if(!_0x342553['plugins']['has']('ImageStyleEditing'))return;const _0x5f1820=_0x342553['plugins']['get']('TrackChangesEditing'),_0x45cdc0=_0x342553['plugins']['get']('ImageUtils'),_0x501d80={};_0x5f1820['enableCommand']('imageStyle',(_0x1b4f76,_0x461d90)=>{const _0x24db2c=_0x342553['plugins']['get']('Users')['me'],_0x26d191=_0x342553['commands']['get']('imageStyle');let _0x52de3b=_0x45cdc0['getClosestSelectedImageElement'](_0x342553['model']['document']['selection']),_0x7b567=_0x342553['model']['createRangeOn'](_0x52de3b),_0x5cb23f=_0x26d191['value'];if(_0x5cb23f==_0x461d90['value'])return;const _0x395f9c={'commandName':'imageStyle','commandParams':[_0x461d90],'formatGroupId':_0x10b1ba()};_0x342553['model']['change'](()=>{if(_0x5f1820['getSuggestions']()['filter'](_0x3ec772=>_0x3ec772['isInContent']&&_0x24db2c==_0x3ec772['author']&&('formatBlock'==_0x3ec772['type']||'formatInline'==_0x3ec772['type'])&&('imageStylePreApply'==_0x3ec772['subType']||'imageStylePostApply'==_0x3ec772['subType'])&&_0x3ec772['getFirstRange']()['isEqual'](_0x7b567))['forEach'](_0x3a91fc=>_0x5f1820['discardSuggestion'](_0x3a91fc['head'])),_0x52de3b=_0x45cdc0['getClosestSelectedImageElement'](_0x342553['model']['document']['selection']),_0x7b567=_0x342553['model']['createRangeOn'](_0x52de3b),_0x26d191['refresh'](),_0x342553['commands']['get']('imageTypeInline')['refresh'](),_0x342553['commands']['get']('imageTypeBlock')['refresh'](),_0x5cb23f=_0x26d191['value'],_0x5cb23f!=_0x461d90['value'])return _0x45cdc0['isInlineImage'](_0x52de3b)&&_0x26d191['shouldConvertImageType'](_0x461d90['value'],_0x52de3b)?(_0x1b4f76({..._0x461d90,'setImageSizes':!0x1}),_0x52de3b=_0x45cdc0['getClosestSelectedImageElement'](_0x342553['model']['document']['selection']),void _0x5f1820['markBlockFormat'](_0x52de3b,{..._0x395f9c,'commandReversedParams':[{'value':_0x5cb23f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45cdc0['isBlockImage'](_0x52de3b)?_0x5f1820['markBlockFormat'](_0x52de3b,_0x395f9c,[],'imageStylePostApply'):_0x5f1820['markInlineFormat'](_0x7b567,_0x395f9c,'imageStylePostApply'));});});for(const _0x4783d8 of _0x342553['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x501d80[_0x4783d8['name']]=_0x4783d8['title']['toLowerCase']();_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x53ccd1])=>{_0x45cdc0['setImageNaturalSizeAttributes'](_0x53ccd1['getContainedElement']());}),_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x35890f,_0x39ab31)=>{_0x5f1820['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x35890f,{'commandName':_0x39ab31['commandName'],'commandParams':_0x39ab31['commandReversedParams']});}),_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e5acc,_0x2db986){if(_0x5c3ea2(_0x3e5acc,_0x2db986))return[_0x3e5acc,_0x2db986];if(_0x5c3ea2(_0x2db986,_0x3e5acc))return[_0x2db986,_0x3e5acc];return null;});const _0x1e64d7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c3ea2(_0x6405f0,_0x5eb830){const _0x5f2a04=_0x1e64d7['findIndex'](({type:_0x409bda,subType:_0x48d3d8})=>_0x6405f0['type']==_0x409bda&&_0x6405f0['subType']==_0x48d3d8),_0x1c1e26=_0x1e64d7['findIndex'](({type:_0x36e36a,subType:_0x5036f9})=>_0x5eb830['type']==_0x36e36a&&_0x5eb830['subType']==_0x5036f9);if(_0x5f2a04<0x0||_0x1c1e26<0x0)return!0x1;const _0x530974=_0x6405f0['getFirstRange'](),_0x5012a8=_0x5eb830['getFirstRange']();if((0x0==_0x5f2a04||0x1==_0x5f2a04)&&0x2==_0x1c1e26&&_0x530974['isIntersecting'](_0x5012a8))return!0x0;if(0x2==_0x5f2a04&&0x3==_0x1c1e26){const _0x24c3d3=_0x5f1820['_findSuggestions'](_0x530974,'insertion')['filter'](({suggestion:_0x2ae50f,meta:_0x33e811})=>_0x33e811['isOwn']&&'convertInlineImageToBlock'==_0x2ae50f['subType']);if(_0x24c3d3['length']>0x1&&_0x5012a8['end']['isEqual'](_0x530974['start']))return!0x0;if(0x1==_0x24c3d3['length']&&(_0x530974['start']['isEqual'](_0x5012a8['end'])||_0x530974['end']['isEqual'](_0x5012a8['start'])))return!0x0;}if(0x3==_0x5f2a04&&0x3==_0x1c1e26&&_0x530974['start']['isBefore'](_0x5012a8['start'])){const _0x1e5ee0=_0x530974['end']['nodeAfter'],_0x47e3b5=_0x5012a8['start']['nodeBefore'];return _0x45cdc0['isBlockImage'](_0x1e5ee0)&&_0x1e5ee0===_0x47e3b5;}return!0x1;}_0x342553['model']['document']['registerPostFixer'](()=>{let _0x4cb9ba=!0x1;const _0x50a3f2=Array['from'](_0x342553['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16a52a,data:_0x4ccf25}of _0x50a3f2){const {group:_0x27d2d0,type:_0x4cffd2,subType:_0x34d801,id:_0x284473}=_0x269eaf(_0x16a52a);if('suggestion'==_0x27d2d0&&_0x5f1820['hasSuggestion'](_0x284473)){if('formatBlock'==_0x4cffd2&&('imageStylePreApply'==_0x34d801||'imageStylePostApply'==_0x34d801)){const _0x236287=_0x5f1820['getSuggestion'](_0x284473);if(_0x4ccf25['newRange']){const _0x262902=_0x236287['getFirstRange']()['getContainedElement']();if(_0x45cdc0['isBlockImage'](_0x262902))continue;_0x5f1820['discardSuggestion'](_0x236287),_0x4cb9ba=!0x0;}}if('insertion'==_0x4cffd2&&'imageCaption'==_0x34d801&&!_0x4ccf25['newRange']){const _0x134b10=_0x5f1820['getSuggestion'](_0x284473);_0x134b10['next']&&_0x134b10['next']['isInContent']&&(_0x5f1820['discardSuggestion'](_0x134b10['next']),_0x4cb9ba=!0x0);}}}return _0x4cb9ba;}),this['_registerLegacyDescription'](_0x501d80);}['_registerLegacyDescription'](_0x5bb93f){const _0x3ff422=this['editor'],_0x150119=_0x3ff422['locale'];_0x3ff422['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538b62=>{if('formatBlock'!=_0x538b62['type']&&'formatInline'!=_0x538b62['type'])return;const {data:_0xee637e}=_0x538b62;if(!_0xee637e||'imageStyle'!=_0xee637e['commandName'])return;const _0x1c4914=_0xee637e['commandParams'][0x0]['value'];return _0x510f0a('side'===_0x1c4914?At(_0x150119,'FORMAT_SIDE_IMAGE'):_0x5bb93f[_0x1c4914]||_0x1c4914);function _0x510f0a(_0xf5d69a){return{'type':'format','content':At(_0x150119,'*Format:*\x20%0',_0xf5d69a)};}});}}class oe extends _0x957e03{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xf1ceea){super(_0xf1ceea),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4ce16a=this['editor'],_0x2eb639=_0x4ce16a['commands']['get']('importWord'),_0x1b57ee=_0x4ce16a['commands']['get']('trackChanges');_0x2eb639&&(_0x2eb639['on']('execute',(_0x57c376,[,_0x33df22])=>{this['_trackChangesValueDuringImport']=_0x1b57ee['value'],_0x33df22['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2eb639,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2eb639,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1b57ee['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4ce16a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x442fc1,_0x452d2d){const {suggestions:_0x10f1ca}=_0x452d2d,_0x43fa89=this['editor']['commands']['get']('trackChanges'),_0x49d050=_0x43fa89['value'];this['_trackChangesValueDuringImport']!==_0x49d050&&(_0x43fa89['execute'](),this['_trackChangesExecuted']=!0x0),_0x10f1ca&&_0x10f1ca['forEach'](({id:_0x4e3203,type:_0x551466,author:_0x496f5f,created_at:_0x5df63b})=>{const _0x12c40c={'id':_0x4e3203,'type':_0x551466,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x496f5f,'createdAt':_0x5df63b?new Date(_0x5df63b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x12c40c);});}}class ae extends _0x957e03{['afterInit'](){const _0x552092=this['editor'],_0x1fd066=_0x552092['plugins']['get']('TrackChangesEditing');if(_0x552092['plugins']['has']('IndentEditing')&&(_0x1fd066['enableCommand']('indent'),_0x1fd066['enableCommand']('outdent')),_0x552092['plugins']['has']('IndentBlock')){for(const _0x27e392 of['indentBlock','outdentBlock'])_0x1fd066['enableDefaultAttributesIntegration'](_0x27e392);if(_0x552092['plugins']['has']('ListEditing')){for(const _0x38957b of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x1fd066['enableDefaultAttributesIntegration'](_0x38957b);}}const _0x222290=_0x552092['locale'];_0x1fd066['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x222290,'FORMAT_INDENT')),_0x1fd066['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x222290,'FORMAT_INDENT')),_0x1fd066['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x222290,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d1b75=this['editor'],_0x2401cb=_0x1d1b75['locale'],_0x4b8b5f=_0x1d1b75['plugins']['get']('TrackChangesEditing');_0x4b8b5f['descriptionFactory']['registerDescriptionCallback'](_0x3c57a7=>{if('formatBlock'!=_0x3c57a7['type'])return;const {data:_0x2764a3}=_0x3c57a7;if(!_0x2764a3)return;if('indentBlock'!=_0x2764a3['commandName']&&'outdentBlock'!=_0x2764a3['commandName'])return;const _0x4c11cf=_0x3c57a7['getItems']()[0x0],_0xdc9d50=_0x4b8b5f['descriptionFactory']['getItemLabel'](_0x4c11cf);return'indentBlock'==_0x2764a3['commandName']?{'type':'format','content':At(_0x2401cb,'*Indent:*\x20%0',_0xdc9d50)}:'outdentBlock'==_0x2764a3['commandName']?{'type':'format','content':At(_0x2401cb,'*Outdent:*\x20%0',_0xdc9d50)}:void 0x0;});}}class ce extends _0x957e03{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x957e03{['afterInit'](){const _0x106bfa=this['editor'];if(!_0x106bfa['plugins']['has']('LinkEditing'))return;const _0x4891bd=_0x106bfa['plugins']['get']('TrackChangesEditing'),_0x526c64=_0x106bfa['commands']['get']('link');_0x4891bd['enableDefaultAttributesIntegration']('link'),_0x4891bd['enableDefaultAttributesIntegration']('unlink');for(const _0x4e08fb of _0x526c64['manualDecorators'])_0x4891bd['descriptionFactory']['registerAttributeLabel'](_0x4e08fb['id'],'link\x20('+_0x4e08fb['label']['toLowerCase']()+')');_0x4891bd['descriptionFactory']['registerDescriptionCallback'](_0x39424f=>{if('attribute'!=_0x39424f['type'])return;const {data:_0x34b1a1}=_0x39424f;if(!_0x34b1a1||'linkHref'!=_0x34b1a1['key'])return;const _0x4c6e7d=_0x34b1a1['newValue'],_0x1cc788=_0x106bfa['locale'];return{'type':'format','content':null==_0x4c6e7d?At(_0x1cc788,'*Remove\x20link*'):At(_0x1cc788,'*Set\x20link:*\x20%0','\x22'+_0x4c6e7d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38c3db=this['editor'],_0x28bbae=_0x38c3db['locale'];_0x38c3db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cccce=>{if('formatInline'!=_0x3cccce['type'])return;const {data:_0x54471f}=_0x3cccce;if(_0x54471f){if('link'==_0x54471f['commandName']){const _0x432869=_0x54471f['commandParams'][0x0];return{'type':'format','content':At(_0x28bbae,'*Set\x20link:*\x20%0','\x22'+_0x432869+'\x22')};}return'unlink'==_0x54471f['commandName']?{'type':'format','content':At(_0x28bbae,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x957e03{['afterInit'](){const _0x2a90eb=this['editor'],_0x5760df=_0x2a90eb['locale'];if(!_0x2a90eb['plugins']['has']('LegacyListEditing'))return;const _0xcde3df=_0x2a90eb['plugins']['get']('TrackChangesEditing'),_0x3980ff=_0x2a90eb['plugins']['has']('LegacyTodoListEditing');function _0x423355(_0x95c89){return()=>{const _0x23a46c=_0x2a90eb['model']['document']['selection'],_0x346b79=_0x2a90eb['commands']['get'](_0x95c89);if(_0x346b79['value'])return void _0x2a90eb['execute']('paragraph',{});const _0x3142b3=_0x95c89['slice'](0x0,-0x4),_0x2586e2=function(_0x40e58b,_0x58d6d,_0x1c1639){let _0x31ea36=Array['from'](_0x40e58b)['filter'](_0x24a90f=>function(_0x582711,_0x39f985){return _0x39f985['checkChild'](_0x582711['parent'],'listItem')&&!_0x39f985['isObject'](_0x582711);}(_0x24a90f,_0x1c1639));_0x31ea36=_0x31ea36['filter'](_0x4581b3=>!_0x4581b3['is']('element','listItem')||_0x4581b3['getAttribute']('listType')!=_0x58d6d);const _0x36a375=new Set();for(const _0x5db37a of _0x31ea36)_0x5db37a['is']('element','listItem')?_0x36a375['add'](he(_0x5db37a)):_0x36a375['add'](_0x5db37a);return Array['from'](_0x36a375);}(_0x23a46c['getSelectedBlocks'](),_0x3142b3,_0x2a90eb['model']['schema']);_0x2a90eb['model']['change'](()=>{for(const _0x32a702 of _0x2586e2)_0xcde3df['markBlockFormat'](_0x32a702,{'commandName':_0x95c89,'commandParams':[{'forceValue':!_0x346b79['value']}],'formatGroupId':'blockName'},de(_0x32a702));});};}function _0x100707(_0x24d0a0){return()=>{const _0x5d0277=function(_0x47c78f){let _0x2b13e7=Array['from'](_0x47c78f);const _0x50943e=_0x2b13e7['findIndex'](_0x54ae17=>'listItem'!=_0x54ae17['name']);return _0x50943e>-0x1&&(_0x2b13e7=_0x2b13e7['slice'](0x0,_0x50943e)),_0x2b13e7;}(_0x2a90eb['model']['document']['selection']['getSelectedBlocks']()),_0xb230da=_0x2a90eb['model']['createRange'](_0x2a90eb['model']['createPositionAt'](_0x5d0277[0x0],'before'),_0x2a90eb['model']['createPositionAt'](_0x5d0277[_0x5d0277['length']-0x1],'end'));_0x2a90eb['model']['change'](()=>{_0xcde3df['markBlockFormat'](_0xb230da,{'commandName':_0x24d0a0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2af43c){const _0x19aaa9=new Set();for(const _0x51933d of _0x2af43c){let _0x362545=_0x51933d['nextSibling'];for(;_0x362545&&_0x362545['getAttribute']('listIndent')>_0x51933d['getAttribute']('listIndent');)_0x19aaa9['add'](_0x362545),_0x362545=_0x362545['nextSibling'];}return Array['from'](_0x19aaa9);}(_0x5d0277));});};}_0xcde3df['enableCommand']('numberedList',_0x423355('numberedList')),_0xcde3df['enableCommand']('bulletedList',_0x423355('bulletedList')),_0x3980ff&&_0xcde3df['enableCommand']('todoList',_0x423355('todoList')),_0xcde3df['enableCommand']('indentList',_0x100707('indentList')),_0xcde3df['enableCommand']('outdentList',_0x100707('outdentList')),_0x3980ff&&_0xcde3df['enableCommand']('checkTodoList',()=>{const _0x2109b8=_0x2a90eb['commands']['get']('checkTodoList'),_0x1df855=Array['from'](_0x2109b8['_selectedElements']);_0x1df855['filter'](_0x2e36a3=>_0x2e36a3['getAttribute']('todoListChecked')!=_0x2109b8['value']),_0x2a90eb['model']['change'](()=>{for(const _0x1d0224 of _0x1df855)_0xcde3df['markBlockFormat'](_0x1d0224,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2109b8['value']}]});});}),_0xcde3df['descriptionFactory']['registerElementLabel']('listItem',_0x261f44=>At(_0x5760df,'ELEMENT_LIST_ITEM',_0x261f44)),_0xcde3df['descriptionFactory']['registerDescriptionCallback'](_0x5c577f=>{if('formatBlock'!=_0x5c577f['type']&&'formatInline'!=_0x5c577f['type'])return;const {data:_0x5eeeca}=_0x5c577f;if(_0x5eeeca){if('numberedList'==_0x5eeeca['commandName']||'bulletedList'==_0x5eeeca['commandName']||'todoList'==_0x5eeeca['commandName'])switch(_0x5eeeca['commandName']['replace']('List','')){case'bulleted':return _0xd9247e(At(_0x5760df,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd9247e(At(_0x5760df,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd9247e(At(_0x5760df,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5eeeca['commandName'])return{'type':'format','content':At(_0x5760df,'*Indent:*\x20%0',At(_0x5760df,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5eeeca['commandName'])return{'type':'format','content':At(_0x5760df,'*Outdent:*\x20%0',At(_0x5760df,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5eeeca['commandName'])return _0x5eeeca['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5760df,'*Check\x20item*')}:{'type':'format','content':At(_0x5760df,'*Uncheck\x20item*')};}function _0xd9247e(_0x22a43d){return{'type':'format','content':At(_0x5760df,'*Change\x20to:*\x20%0',_0x22a43d)};}});}}function he(_0x4a68d6){const _0x3fe870=_0x4a68d6['getAttribute']('listIndent');if(0x0==_0x3fe870)return _0x4a68d6;let _0x57fd53=_0x4a68d6;for(;_0x4a68d6['previousSibling']&&_0x4a68d6['previousSibling']['is']('element','listItem');){const _0x5bdaa3=_0x4a68d6['previousSibling']['getAttribute']('listIndent');if(_0x5bdaa3==_0x3fe870)_0x57fd53=_0x4a68d6['previousSibling'];else{if(_0x5bdaa3<_0x3fe870)break;}_0x4a68d6=_0x4a68d6['previousSibling'];}return _0x57fd53;}function de(_0x9bc696){const _0x46bd5a=[];if(_0x9bc696['is']('element','listItem')&&_0x9bc696['getAttribute']('listIndent')>0x0){let _0x3466d6=_0x9bc696['nextSibling'];for(;_0x3466d6&&'listItem'==_0x3466d6['name']&&_0x3466d6['getAttribute']('listIndent')==_0x9bc696['getAttribute']('listIndent');)_0x46bd5a['push'](_0x3466d6),_0x3466d6=_0x3466d6['nextSibling'];}return _0x46bd5a;}class fe extends _0x957e03{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xe29ce4=this['editor']['config']['get']('list.properties'),_0x7896d=this['editor']['plugins']['get']('TrackChangesEditing');_0xe29ce4['styles']&&_0x7896d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xe29ce4['reversed']&&_0x7896d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xe29ce4['startIndex']&&_0x7896d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x7896d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x9dc29e,_0x41a92f={}){const _0x3670dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x363e69=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3670dc['markMultiRangeBlockFormat'](_0x363e69,{'commandName':'listStyle','commandParams':[{'type':_0x41a92f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x29eeb2,_0x148c91={}){const _0x9930da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48a9ad=this['_getSuggestionBlocks'](_0x99e2dc=>_0x99e2dc['is']('element','listItem')&&'numbered'===_0x99e2dc['getAttribute']('listType'));if(_0x48a9ad['length']<0x1)return;const _0x138c13=_0x48a9ad['map'](_0x236d68=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x236d68,'before'),this['editor']['model']['createPositionAt'](_0x236d68,0x0)));this['editor']['model']['change'](()=>{_0x9930da['markMultiRangeBlockFormat'](_0x138c13,{'commandName':'listReversed','commandParams':[{'reversed':_0x148c91['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1ab3cf,_0x5783e9={}){const _0x164263=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59d792=this['_getSuggestionBlocks'](_0x13fd8d=>_0x13fd8d['is']('element','listItem')&&'numbered'===_0x13fd8d['getAttribute']('listType'));if(_0x59d792['length']<0x1)return;const _0x16c3c5=_0x59d792['map'](_0x1332c3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1332c3,'before'),this['editor']['model']['createPositionAt'](_0x1332c3,0x0)));this['editor']['model']['change'](()=>{_0x164263['markMultiRangeBlockFormat'](_0x16c3c5,{'commandName':'listStart','commandParams':[{'startIndex':_0x5783e9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x14b2d5){if('formatBlock'!=_0x14b2d5['type']&&'formatInline'!=_0x14b2d5['type'])return;const _0x147b82=this['editor']['locale'],{data:_0x1e7176}=_0x14b2d5;if(!_0x1e7176)return;let _0x304c6f,_0x202a85;switch(_0x1e7176['commandName']){case'listStyle':_0x304c6f='*Change\x20to:*\x20%0',_0x202a85={'type':'format','content':At(_0x147b82,_0x304c6f,At(_0x147b82,this['_getTranslationKeyForListStyle'](_0x1e7176['commandParams'][0x0]['type'])))};break;case'listReversed':_0x304c6f=_0x1e7176['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x202a85={'type':'format','content':At(_0x147b82,_0x304c6f)};break;case'listStart':_0x304c6f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x202a85={'type':'format','content':At(_0x147b82,_0x304c6f,_0x1e7176['commandParams'][0x0]['startIndex'])};}return _0x202a85;}['_getSuggestionBlocksForListStyle'](){const _0x204d1d=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d446=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5d446[0x0]?.['is']('element','listItem')&&_0x5d446['unshift'](..._0x204d1d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5d446[_0x5d446['length']-0x1]?.['is']('element','listItem')&&_0x5d446['push'](..._0x204d1d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5d446=[...new Set(_0x5d446)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5d446=_0x5d446['filter'](_0x4bc3b6=>_0x4bc3b6['is']('element','listItem'))),_0x5d446;}['_getSuggestionBlocks'](_0x1aac7b){const _0x34fb71=this['editor']['plugins']['get']('LegacyListUtils');let _0x237272=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1aac7b)['map'](_0x196eae=>{const _0x4ebde2=this['editor']['model']['createPositionAt'](_0x196eae,0x0);return[..._0x34fb71['getSiblingNodes'](_0x4ebde2,'backward'),..._0x34fb71['getSiblingNodes'](_0x4ebde2,'forward')];})['flat']();return _0x237272=[...new Set(_0x237272)],_0x237272;}['_getTranslationKeyForListStyle'](_0x40b11c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x40b11c)||'default')['toUpperCase']()+'_LIST_'+_0x40b11c['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x957e03{['afterInit'](){const _0x278c79=this['editor'];if(!_0x278c79['plugins']['has']('MediaEmbedEditing'))return;const _0x4a0a78=_0x278c79['plugins']['get']('TrackChangesEditing'),_0x31d7c4=_0x278c79['locale'];_0x4a0a78['enableCommand']('mediaEmbed'),_0x4a0a78['descriptionFactory']['registerElementLabel']('media',_0x12c64f=>At(_0x31d7c4,'ELEMENT_MEDIA',_0x12c64f));}}class me extends _0x957e03{['afterInit'](){const _0x190642=this['editor'];_0x190642['plugins']['has']('MentionEditing')&&_0x190642['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x957e03{['afterInit'](){const _0x1f2495=this['editor'];if(!_0x1f2495['plugins']['has']('MergeFieldsEditing'))return;const _0x1763d2=_0x1f2495['plugins']['get']('TrackChangesEditing'),_0x2b07a4=_0x1f2495['locale'];_0x1763d2['enableCommand']('insertMergeField'),_0x1763d2['enableCommand']('insertMergeFieldBlock'),_0x1763d2['enableCommand']('insertMergeFieldImage'),_0x1763d2['descriptionFactory']['registerElementLabel']('mergeField',_0x300e91=>At(_0x2b07a4,'ELEMENT_MERGE_FIELD',_0x300e91)),_0x1763d2['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3155c4=>At(_0x2b07a4,'ELEMENT_MERGE_FIELD',_0x3155c4)),_0x1763d2['descriptionFactory']['registerDescriptionCallback'](_0x47b914=>{if('insertion'!=_0x47b914['type']&&'deletion'!=_0x47b914['type'])return;const _0x7e77c=_0x47b914['getContainedElement']();if(null==_0x7e77c)return;const _0x43554a=_0x1f2495['plugins']['get']('MergeFieldsEditing');let _0x5b65bd;switch(_0x43554a['getMergeFieldType'](_0x7e77c)){case null:return;case'image':{const _0x29134e=_0x43554a['unwrapAffixes'](_0x7e77c['getAttribute']('src'));_0x5b65bd=_0x43554a['getLabel'](_0x29134e)||_0x29134e;break;}default:{const _0x2ccf9b=_0x7e77c['getAttribute']('id');_0x5b65bd=_0x43554a['getLabel'](_0x2ccf9b)||_0x2ccf9b;break;}}return'insertion'==_0x47b914['type']?{'type':'insertion','content':At(_0x2b07a4,'*Insert:*\x20%0','\x22'+_0x5b65bd+'\x22\x20'+At(_0x2b07a4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x2b07a4,'*Remove:*\x20%0','\x22'+_0x5b65bd+'\x22\x20'+At(_0x2b07a4,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x957e03{['afterInit'](){const _0x506dc1=this['editor'],_0x3be1b3=_0x506dc1['plugins']['get']('TrackChangesEditing');_0x506dc1['plugins']['has']('MultiLevelList')&&(_0x3be1b3['enableDefaultAttributesIntegration']('multiLevelList'),_0x3be1b3['descriptionFactory']['registerDescriptionCallback'](_0x152ffa=>this['handleDescriptions'](_0x152ffa)));}['handleDescriptions'](_0x387c24){const _0x3f0ac9=this['editor']['locale'],{data:_0x35f123}=_0x387c24,_0x4d6cd1={'type':'format','content':''};if(_0x35f123&&'listMarkerStyle'==_0x35f123['key']){if(!_0x35f123['oldValue'])return{'type':'format','content':At(_0x3f0ac9,'*Set\x20format:*\x20%0',At(_0x3f0ac9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35f123['newValue']+')'};if(!_0x35f123['newValue']){let _0x93aca9=_0x387c24['head'];for(;_0x93aca9;){if(_0x93aca9['data']&&'listType'==_0x93aca9['data']['key']&&_0x93aca9['data']['newValue'])return _0x4d6cd1;_0x93aca9=_0x93aca9['next'];}return{'type':'format','content':At(_0x3f0ac9,'*Remove\x20format:*\x20%0',At(_0x3f0ac9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35f123['oldValue']+')'};}}}}class _e extends _0x957e03{['afterInit'](){const _0x525590=this['editor'];if(!_0x525590['plugins']['has']('PageBreakEditing'))return;_0x525590['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x116afb=_0x525590['plugins']['get']('TrackChangesEditing'),_0x221b6b=_0x525590['locale'];_0x116afb['descriptionFactory']['registerElementLabel']('pageBreak',_0x4d29f8=>At(_0x221b6b,'ELEMENT_PAGE_BREAK',_0x4d29f8));}}class pe extends _0x957e03{['afterInit'](){const _0x464fb7=this['editor'];if(!_0x464fb7['plugins']['has']('Paragraph'))return;const _0x4cf7c2=_0x464fb7['locale'],_0x61b6e2=_0x464fb7['plugins']['get']('TrackChangesEditing');_0x61b6e2['descriptionFactory']['registerElementLabel']('paragraph',_0x45c838=>At(_0x4cf7c2,'ELEMENT_PARAGRAPH',_0x45c838)),_0x61b6e2['enableDefaultAttributesIntegration']('paragraph'),_0x61b6e2['enableCommand']('insertParagraph');const _0x18772a=_0x61b6e2['descriptionFactory'];_0x18772a['registerDescriptionCallback'](_0x1c104=>{if('insertion'!==_0x1c104['type'])return;const {start:_0x2f84f2,end:_0x385fae}=_0x1c104['getFirstRange']();if(!_0x2f84f2['isTouching'](_0x385fae)||!_0x2f84f2['nodeAfter'])return;const _0x1dde37=_0x464fb7['model']['schema'],_0x36e0d7=_0x2f84f2['nodeAfter'];return _0x1dde37['isBlock'](_0x36e0d7)&&!_0x1dde37['isLimit'](_0x36e0d7)&&_0x1dde37['checkChild'](_0x36e0d7,'$text')?{'type':'insertion','content':At(_0x4cf7c2,'*Insert:*\x20%0',_0x18772a['getItemLabel'](_0x36e0d7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29f0c0=this['editor'],_0x182fdf=_0x29f0c0['locale'];_0x29f0c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x288d2d=>{if('formatBlock'!=_0x288d2d['type'])return;const {data:_0x40735e}=_0x288d2d;return _0x40735e&&'paragraph'==_0x40735e['commandName']?{'type':'format','content':At(_0x182fdf,'*Change\x20to:*\x20%0',At(_0x182fdf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x957e03{['afterInit'](){const _0x479ddd=this['editor'];_0x479ddd['commands']['get']('replaceSource')&&_0x479ddd['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x957e03{['afterInit'](){const _0x5c2e21=this['editor'];if(!_0x5c2e21['plugins']['has']('RemoveFormatEditing'))return;_0x5c2e21['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48f98a=this['editor'];_0x48f98a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f23e0=>{if('formatBlock'!=_0x2f23e0['type']&&'formatInline'!=_0x2f23e0['type'])return;const {data:_0x4fbb43}=_0x2f23e0;return _0x4fbb43&&'removeFormat'==_0x4fbb43['commandName']?{'type':'format','content':At(_0x48f98a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x957e03{['afterInit'](){const _0x595e1c=this['editor'];if(!_0x595e1c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x44fbbd=_0x595e1c['plugins']['get']('TrackChangesEditing');_0x44fbbd['enableCommand']('goToPreviousRestrictedEditingException'),_0x44fbbd['enableCommand']('goToNextRestrictedEditingException');const _0x4b2b7b=_0x595e1c['plugins']['get']('RestrictedEditingModeEditing');_0x4b2b7b['enableCommand']('trackChanges'),_0x4b2b7b['enableCommand']('acceptSuggestion'),_0x4b2b7b['enableCommand']('discardSuggestion'),_0x4b2b7b['enableCommand']('acceptAllSuggestions'),_0x4b2b7b['enableCommand']('discardAllSuggestions'),_0x4b2b7b['enableCommand']('acceptSelectedSuggestions'),_0x4b2b7b['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x957e03{['afterInit'](){const _0x2e911d=this['editor'];if(!_0x2e911d['plugins']['has']('ShiftEnter'))return;const _0x2a3921=_0x2e911d['plugins']['get']('TrackChangesEditing');_0x2a3921['enableCommand']('shiftEnter'),_0x2a3921['descriptionFactory']['registerElementLabel']('softBreak',_0x3149a0=>At(_0x2e911d['locale'],'ELEMENT_LINE_BREAK',_0x3149a0));}}function ke(_0x115638,_0x998b53,_0x33df9a){const _0x1c3da7=[];for(const _0x3a08d4 of _0x998b53['getItems']())_0x3a08d4['hasAttribute'](_0x115638)&&_0x1c3da7['push'](_0x33df9a['createRangeOn'](_0x3a08d4));return _0x1c3da7;}class Ce extends _0x957e03{['afterInit'](){const _0x25b299=this['editor'],_0x4c39cd=_0x25b299['plugins']['get']('TrackChangesEditing');_0x25b299['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x4c39cd['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0xd2e21d=this['editor'],_0x266679=_0xd2e21d['model'],_0x137f7d=_0xd2e21d['locale'],_0x29f34d=_0xd2e21d['plugins']['get']('TrackChangesEditing'),_0x2d36a0='restrictedEditingException',_0x416a17=_0xd2e21d['commands']['get'](_0x2d36a0);_0x29f34d['enableCommand'](_0x2d36a0,(_0x3785d9,_0x584299={})=>{const _0x539ae0=_0x266679['document']['selection'];if(_0x539ae0['isCollapsed'])return void _0x3785d9(_0x584299);const _0x12678e=void 0x0!==_0x584299['forceValue']?_0x584299['forceValue']:!_0x416a17['value'];_0x266679['change'](()=>{const _0x323f63=Array['from'](_0x539ae0['getRanges']());for(const _0x4e4f8b of _0x323f63){const _0x3d768e=_0x12678e?[_0x4e4f8b]:ke(_0x2d36a0,_0x4e4f8b,_0x266679);for(const _0x5345c0 of _0x3d768e)_0x29f34d['markInlineFormat'](_0x5345c0,{'commandName':_0x2d36a0,'commandParams':[{'forceValue':_0x12678e}]});}});}),_0x29f34d['descriptionFactory']['registerDescriptionCallback'](_0x5ccd8b=>{if('formatBlock'!=_0x5ccd8b['type']&&'formatInline'!=_0x5ccd8b['type'])return;const {data:_0x2f2192}=_0x5ccd8b;return _0x2f2192&&_0x2f2192['commandName']==_0x2d36a0?_0x2f2192['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x137f7d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x137f7d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x1e6cd6=this['editor'],_0x8f758e=_0x1e6cd6['locale'],_0x57b8df=_0x1e6cd6['plugins']['get']('TrackChangesEditing'),_0x2dd4e3='restrictedEditingExceptionBlock',_0x3724d5=this['editor']['commands']['get'](_0x2dd4e3);_0x57b8df['enableCommand'](_0x2dd4e3,(_0x281209,_0x446fd4={})=>{const _0x34984f=this['editor']['model']['document']['selection'],_0x293c4e=_0x446fd4&&void 0x0!==_0x446fd4['forceValue']?_0x446fd4['forceValue']:!_0x3724d5['value'];let _0x8e7bb9=[];if(_0x293c4e){const _0x19f471=Array['from'](_0x34984f['getSelectedBlocks']())['filter'](_0x323617=>function(_0x8da7fa){return!!_0x8da7fa['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x323617)||function(_0x5680d6,_0x196444){const _0x4e0ffe=_0x196444['createContext'](_0x5680d6['parent']);if(!_0x196444['checkChild'](_0x4e0ffe,'restrictedEditingException'))return!0x1;if(!_0x196444['checkChild'](_0x4e0ffe['push']('restrictedEditingException'),_0x5680d6))return!0x1;return!0x0;}(_0x323617,this['editor']['model']['schema']));_0x8e7bb9=Tt(_0x19f471,_0x1e6cd6['model']);}else{const _0x18a829=Array['from'](_0x34984f['getSelectedBlocks']())['map'](_0x4a38ce=>function(_0x20230d){let _0x37841b=_0x20230d;for(;_0x37841b['parent'];){if('restrictedEditingException'==_0x37841b['parent']['name'])return _0x37841b;_0x37841b=_0x37841b['parent'];}return null;}(_0x4a38ce))['filter'](_0x399bd0=>!!_0x399bd0);_0x8e7bb9=Tt(_0x18a829,_0x1e6cd6['model']);}_0x1e6cd6['model']['change'](()=>{for(const _0x256ec9 of _0x8e7bb9)_0x57b8df['markBlockFormat'](_0x256ec9,{'commandName':_0x2dd4e3,'commandParams':[{'forceValue':_0x293c4e}]});});}),_0x57b8df['descriptionFactory']['registerDescriptionCallback'](_0x4faf19=>{const {data:_0x522fd3}=_0x4faf19;if(_0x522fd3&&_0x522fd3['commandName']==_0x2dd4e3)return _0x522fd3['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x8f758e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x8f758e,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x957e03{['afterInit'](){const _0x5a69c=this['editor'];if(!_0x5a69c['plugins']['has']('Style')||!_0x5a69c['plugins']['has']('DataSchema'))return;const _0x40208c=_0x5a69c['plugins']['get']('TrackChangesEditing'),_0x385f48=_0x5a69c['locale'],_0x4d5954=_0x5a69c['config']['get']('style')||{},_0x24483b=_0x5a69c['plugins']['get']('GeneralHtmlSupport'),_0x36fc06=_0x5a69c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5a69c['plugins']['get']('DataSchema'),_0x4d5954['definitions']);_0x40208c['enableDefaultAttributesIntegration']('style');const _0x392df6=new Set();for(const _0xaeb37f of _0x36fc06['block']){const _0x1540e2=_0x24483b['getGhsAttributeNameForElement'](_0xaeb37f['element']);_0x392df6['add'](_0x1540e2);}const _0x4af4f0=new Set();for(const _0xc04bf8 of _0x36fc06['inline']){const _0x364a68=_0x24483b['getGhsAttributeNameForElement'](_0xc04bf8['element']);_0x4af4f0['add'](_0x364a68);for(const _0x102bae of _0xc04bf8['ghsAttributes'])_0x4af4f0['add'](_0x102bae);}for(const _0x2a76d1 of _0x392df6)_0x40208c['descriptionFactory']['registerAttributeLabel'](_0x2a76d1,At(_0x385f48,'FORMAT_STYLE'));for(const _0xe00723 of _0x4af4f0)_0x40208c['descriptionFactory']['registerAttributeLabel'](_0xe00723,At(_0x385f48,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25d804=this['editor'],_0x3665fb=_0x25d804['locale'];_0x25d804['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d2947=>{if('formatBlock'!=_0x3d2947['type']&&'formatInline'!=_0x3d2947['type'])return;const {data:_0x52bfbd}=_0x3d2947;return _0x52bfbd&&'style'===_0x52bfbd['commandName']?_0x52bfbd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3665fb,'*Set\x20format:*\x20%0',_0x52bfbd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x3665fb,'*Remove\x20format:*\x20%0',_0x52bfbd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x957e03{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1b13d1){super(_0x1b13d1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3a3ec1=this['editor'],_0x1c650f=_0x3a3ec1['model']['document']['selection'];if(!_0x3a3ec1['plugins']['has']('TableEditing'))return;const _0x39de1f=_0x3a3ec1['locale'],_0x1a2814=_0x3a3ec1['plugins']['get']('TrackChangesEditing'),_0x3c2112=_0x3a3ec1['plugins']['get']('TableUtils');_0x1a2814['descriptionFactory']['registerElementLabel']('table',_0x5735e6=>At(_0x39de1f,'ELEMENT_TABLE',_0x5735e6)),this['_setupColumnsRowsFixing'](),_0x1a2814['enableCommand']('insertTable'),_0x1a2814['enableCommand']('selectTableRow'),_0x1a2814['enableCommand']('selectTableColumn');for(const _0x52eca8 of['insertTableRowAbove','insertTableRowBelow']){const _0x48e81c=_0x3a3ec1['commands']['get'](_0x52eca8);_0x1a2814['enableCommand'](_0x52eca8,_0x426ce9=>{_0x3a3ec1['model']['change'](_0xb1416a=>{_0x426ce9();const _0x487df4='above'===_0x48e81c['order'],_0x5aa3eb=_0x3c2112['getSelectionAffectedTableCells'](_0x1c650f),_0x239a39=_0x3c2112['getRowIndexes'](_0x5aa3eb),_0x41c975=_0x487df4?_0x239a39['first']-0x1:_0x239a39['last']+0x1,_0x42c286=_0x5aa3eb[0x0]['findAncestor']('table'),_0x4f0d78=_0x3c2112['createTableWalker'](_0x42c286,{'startRow':_0x41c975,'endRow':_0x41c975}),_0xa123e7=Array['from'](_0x4f0d78)['map'](_0x581c29=>_0xb1416a['createRangeOn'](_0x581c29['cell']));_0x1a2814['markMultiRangeInsertion'](_0xa123e7,'tableRow');});});}for(const _0x4bb54e of['insertTableColumnLeft','insertTableColumnRight']){const _0x47d5d9=_0x3a3ec1['commands']['get'](_0x4bb54e);_0x1a2814['enableCommand'](_0x4bb54e,_0x38badf=>{_0x3a3ec1['model']['change'](_0x310a7c=>{_0x38badf();const _0xbca861='left'===_0x47d5d9['order'],_0x363889=_0x3c2112['getSelectionAffectedTableCells'](_0x1c650f),_0x4a41c2=_0x3c2112['getColumnIndexes'](_0x363889),_0x13a197=_0xbca861?_0x4a41c2['first']-0x1:_0x4a41c2['last']+0x1,_0x5aba98=_0x363889[0x0]['findAncestor']('table'),_0x1807da=_0x3c2112['createTableWalker'](_0x5aba98,{'startRow':0x0,'column':_0x13a197,'includeAllSlots':!0x1}),_0x3ec4e6=Array['from'](_0x1807da)['map'](_0x1dd7f7=>_0x310a7c['createRangeOn'](_0x1dd7f7['cell']));_0x1a2814['markMultiRangeInsertion'](_0x3ec4e6,'tableColumn');});});}for(const _0x5afe56 of['removeTableRow','removeTableColumn']){const _0x1ce23a=_0x5afe56['substr'](0xb),_0x41c684=_0x1ce23a['toLowerCase'](),_0x15838a=_0x41c684['substr'](0x0,0x3)+'span',_0x1c7a0a='table'+_0x1ce23a,_0x59d3d5='min'+_0x1ce23a,_0x2ea2ca='max'+_0x1ce23a;_0x1a2814['enableCommand'](_0x5afe56,()=>{_0x3a3ec1['model']['change'](_0x44f2ab=>{const _0x54aaa7=_0x3c2112['getSelectionAffectedTableCells'](_0x1c650f),_0x3d8975=_0x54aaa7[0x0]['findAncestor']('table');let _0x1665f2;if('removeTableRow'==_0x5afe56){const _0x19a681=_0x3c2112['getRowIndexes'](_0x54aaa7);_0x1665f2={'startRow':_0x19a681['first'],'endRow':_0x19a681['last'],'includeAllSlots':!0x0};}else{const _0x291ffe=_0x3c2112['getColumnIndexes'](_0x54aaa7);_0x1665f2={'startColumn':_0x291ffe['first'],'endColumn':_0x291ffe['last'],'includeAllSlots':!0x0};}const _0x2ff52c=_0x3c2112['createTableWalker'](_0x3d8975,_0x1665f2),_0x2165ed=Array['from'](_0x2ff52c)['map'](({cell:_0x341005})=>_0x341005),_0x17fcb4=Re(_0x2165ed['filter'](_0x1acbf8=>_0x1acbf8['hasAttribute'](_0x15838a))),_0x2f7d7a=Re(_0x2165ed['filter'](_0x236d63=>!_0x236d63['hasAttribute'](_0x15838a)))['map'](_0x354d2a=>_0x44f2ab['createRangeOn'](_0x354d2a)),_0x162e67=_0x1a2814['markMultiRangeDeletion'](_0x2f7d7a,_0x1c7a0a);if(_0x162e67&&('tableRow'==_0x162e67['subType']||'tableColumn'==_0x162e67['subType'])){const _0x264ed4=this['_getSuggestionCoords'](_0x162e67);for(const _0x19a12b of _0x17fcb4){const _0x33d7f7=_0x44f2ab['createRangeOn'](_0x19a12b),_0xdcaa48=_0x3c2112['getCellLocation'](_0x19a12b),_0x2d865d=_0x19a12b['getAttribute'](_0x15838a)-0x1,_0x2ddbb3=_0x264ed4[_0x59d3d5],_0x36fc71=_0x264ed4[_0x2ea2ca];_0x2ddbb3<=_0xdcaa48[_0x41c684]&&_0xdcaa48[_0x41c684]+_0x2d865d<=_0x36fc71&&_0x162e67['addRange'](_0x33d7f7);}}});});}function _0x37b5f6(_0x51bfc){const _0x5172b5=Array['from'](_0x1c650f['getRanges']())['map'](_0x4ae186=>_0x82a6d2['fromRange'](_0x4ae186));_0x3a3ec1['model']['change'](_0x32c0cd=>{const _0xae0b62=_0x32c0cd['batch'];_0x51bfc=_0x51bfc['filter'](_0x21105d=>'$graveyard'!=_0x21105d['root']['rootName']),_0x32c0cd['setSelection'](_0x51bfc),_0x3a3ec1['commands']['get']('removeTableRow')['refresh'](),_0x3a3ec1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3a3ec1['model']['enqueueChange'](()=>{_0x3a3ec1['model']['enqueueChange'](_0xae0b62,_0x377518=>{const _0x454e2a=_0x5172b5['filter'](_0x386cbc=>'$graveyard'!=_0x386cbc['root']['rootName']);_0x454e2a['length']>0x0&&_0x377518['setSelection'](_0x454e2a);for(const _0x81d373 of _0x5172b5)_0x81d373['detach']();});});});}function _0x6c71bb(_0xff5a83){_0x3a3ec1['model']['change'](_0x22aa9a=>{const _0x140759=Array['from'](_0x1c650f['getRanges']())['map'](_0x2cb93e=>_0x82a6d2['fromRange'](_0x2cb93e)),_0x51035e=[];for(const _0x8abc7a of _0xff5a83)for(const _0x34ebbd of _0x8abc7a['getItems']({'shallow':!0x0}))_0x51035e['push'](_0x34ebbd);for(const _0x52f591 of _0x51035e)'$graveyard'!=_0x52f591['root']['rootName']&&(_0x22aa9a['setSelection'](_0x22aa9a['createPositionAt'](_0x52f591,0x0)),_0x3a3ec1['commands']['get']('removeTableColumn')['refresh'](),_0x3a3ec1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5c52ad=_0x140759['filter'](_0x2b4d5f=>'$graveyard'!=_0x2b4d5f['root']['rootName']);_0x5c52ad['length']>0x0&&_0x22aa9a['setSelection'](_0x5c52ad);for(const _0x2df8f4 of _0x140759)_0x2df8f4['detach']();});}function _0x393b1a(_0x2a57f9,_0x2e0449){return _0x2e0449['every'](_0xd6d960=>_0x2a57f9['some'](_0x7a312=>_0x7a312['end']['isEqual'](_0xd6d960['start'])||_0xd6d960['end']['isEqual'](_0x7a312['start'])));}function _0xa89ba(_0x44eed3,_0x23e11b){return!_0x44eed3['some'](_0x491c47=>_0x23e11b['some'](_0x49c53a=>_0x491c47['isIntersecting'](_0x49c53a)))&&_0x44eed3['some'](_0x37aafd=>_0x23e11b['some'](_0x420ea9=>_0x37aafd['end']['isTouching'](_0x420ea9['start'])));}_0x1a2814['descriptionFactory']['registerDescriptionCallback'](_0x1d0d7c=>{if('insertion'!=_0x1d0d7c['type']&&'deletion'!=_0x1d0d7c['type'])return;const _0x20fc15=_0x1d0d7c['getContainedElement']();if(null!=_0x20fc15&&_0x20fc15['is']('element','table')){if('insertion'==_0x1d0d7c['type']){const _0x4d7365=_0x1d0d7c['getItems']()['filter'](_0x3c2db0=>_0x3c2db0['is']('$textProxy'))['map'](_0x4bc610=>_0x4bc610['data']);if(_0x4d7365['length'])return{'type':'insertion','content':At(_0x39de1f,'*Insert:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d7365['join']('\x20')+'\x22'))};}if('deletion'==_0x1d0d7c['type']){const _0x37a8ce=_0x1d0d7c['getItems']()['filter'](_0x515d10=>_0x515d10['is']('$textProxy'))['map'](_0x35375a=>_0x35375a['data']);if(_0x37a8ce['length'])return{'type':'deletion','content':At(_0x39de1f,'*Remove:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37a8ce['join']('\x20')+'\x22'))};}}}),_0x1a2814['descriptionFactory']['registerDescriptionCallback'](_0x1e436e=>{if('tableRow'==_0x1e436e['subType']){const _0x1be06b=_0x1e436e['getItems']()['filter'](_0x5d7f39=>_0x5d7f39['is']('$textProxy'))['map'](_0x2722a6=>_0x2722a6['data']),_0x5b2c05=this['_getSuggestionCoords'](_0x1e436e),_0x595511=_0x5b2c05['maxRow']-_0x5b2c05['minRow']+0x1;if('insertion'==_0x1e436e['type'])return _0x1be06b['length']?{'type':'insertion','content':At(_0x39de1f,'*Insert:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x595511,'\x22'+_0x1be06b['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x39de1f,'*Insert:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_ROW',_0x595511))};if('deletion'==_0x1e436e['type'])return _0x1be06b['length']?{'type':'deletion','content':At(_0x39de1f,'*Remove:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x595511,'\x22'+_0x1be06b['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x39de1f,'*Remove:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_ROW',_0x595511))};}if('tableColumn'==_0x1e436e['subType']){const _0x3d5e7f=_0x1e436e['getItems']()['filter'](_0x169bc2=>_0x169bc2['is']('$textProxy'))['map'](_0x17aa4b=>_0x17aa4b['data']),_0x3b78dd=this['_getSuggestionCoords'](_0x1e436e),_0x40e3e4=_0x3b78dd['maxColumn']-_0x3b78dd['minColumn']+0x1;if('insertion'==_0x1e436e['type'])return _0x3d5e7f['length']?{'type':'insertion','content':At(_0x39de1f,'*Insert:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40e3e4,'\x22'+_0x3d5e7f['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x39de1f,'*Insert:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_COLUMN',_0x40e3e4))};if('deletion'==_0x1e436e['type'])return _0x3d5e7f['length']?{'type':'deletion','content':At(_0x39de1f,'*Remove:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40e3e4,'\x22'+_0x3d5e7f['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x39de1f,'*Remove:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_COLUMN',_0x40e3e4))};}}),_0x1a2814['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x37b5f6),_0x1a2814['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x37b5f6),_0x1a2814['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x6c71bb),_0x1a2814['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x6c71bb),_0x1a2814['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x393b1a),_0x1a2814['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x393b1a),_0x1a2814['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xa89ba),_0x1a2814['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xa89ba);}['_acceptFormatSuggestionCallbackFactory'](){const _0x463c98=this['editor'],_0x596fa9=_0x463c98['model']['document']['selection'];return(_0x4d319d,_0x1e2928)=>{_0x463c98['model']['change'](_0x3e4f2f=>{const {commandName:_0x563a14,commandParams:_0x5dbe70}=_0x1e2928;let _0x242dca=_0x4d319d[0x0]['end']['nodeBefore'];_0x5dbe70&&_0x5dbe70[0x0]&&!0x1===_0x5dbe70[0x0]['forceValue']&&(_0x242dca=_0x4d319d[0x0]['start']['nodeAfter']);const _0x1bd002=_0x3e4f2f['createRangeIn'](_0x242dca);if('$graveyard'==_0x1bd002['root']['rootName'])return;const _0x2978f6=Array['from'](_0x596fa9['getRanges']())['map'](_0xdee3a0=>_0x82a6d2['fromRange'](_0xdee3a0));_0x3e4f2f['setSelection'](_0x1bd002),_0x463c98['commands']['get'](_0x563a14)['refresh'](),_0x5dbe70['push']({'forceDefaultExecution':!0x0}),_0x463c98['execute'](_0x563a14,..._0x5dbe70);const _0x3aba93=_0x2978f6['filter'](_0x2470dc=>'$graveyard'!=_0x2470dc['root']['rootName']);_0x3aba93['length']>0x0&&_0x3e4f2f['setSelection'](_0x3aba93);for(const _0x52b896 of _0x2978f6)_0x52b896['detach']();});};}['_getCoordsForCells'](_0x3c4614){const _0x1a45f8=this['editor']['plugins']['get']('TableUtils');let _0x125786=Number['MAX_SAFE_INTEGER'],_0xefde1b=Number['MIN_SAFE_INTEGER'],_0x1ddb35=Number['MAX_SAFE_INTEGER'],_0x2c71ef=Number['MIN_SAFE_INTEGER'];for(const _0x5b2b40 of _0x3c4614){if('$graveyard'==_0x5b2b40['root']['rootName'])continue;const {row:_0x37237e,column:_0x349ec1}=_0x1a45f8['getCellLocation'](_0x5b2b40),_0x3313a1=_0x5b2b40['hasAttribute']('rowspan')?_0x5b2b40['getAttribute']('rowspan')-0x1:0x0,_0x3e2218=_0x5b2b40['hasAttribute']('colspan')?_0x5b2b40['getAttribute']('colspan')-0x1:0x0;_0x125786=_0x37237e<_0x125786?_0x37237e:_0x125786,_0xefde1b=_0x37237e+_0x3313a1>_0xefde1b?_0x37237e+_0x3313a1:_0xefde1b,_0x1ddb35=_0x349ec1<_0x1ddb35?_0x349ec1:_0x1ddb35,_0x2c71ef=_0x349ec1+_0x3e2218>_0x2c71ef?_0x349ec1+_0x3e2218:_0x2c71ef;}return{'minRow':_0x125786,'maxRow':_0xefde1b,'minColumn':_0x1ddb35,'maxColumn':_0x2c71ef};}['_setupColumnsRowsFixing'](){const _0x149f1b=this['editor'],_0x1133cd=_0x149f1b['plugins']['get']('TrackChangesEditing'),_0x55b0ca=_0x149f1b['plugins']['get']('TableUtils');_0x149f1b['model']['document']['on']('change:data',()=>{const _0x363fac=Array['from'](_0x149f1b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3078e4,data:_0x34c85e}of _0x363fac){const {group:_0x43e8d4,id:_0x35cd24,subType:_0x438142}=_0x269eaf(_0x3078e4);if('suggestion'!=_0x43e8d4)continue;if(null!=_0x34c85e['oldRange'])continue;const _0x2a7fd2=_0x1133cd['getSuggestion'](_0x35cd24);this['_tablePostFixingSubtypes']['includes'](_0x438142)&&this['_tableSuggestions']['add'](_0x2a7fd2);}},{'priority':'low'});const _0x98a3e3=(_0x39b3e7,_0x561801)=>{let _0x3085a3=!0x1;const _0xa66f93=_0x561801['createRangeOn'](_0x39b3e7),_0x45319d=_0x39b3e7['findAncestor']('table'),_0x17b8b=_0x55b0ca['getCellLocation'](_0x39b3e7);for(const _0x33fa45 of this['_tableSuggestions']){const _0x1ba5a1=_0x33fa45['subType'],_0x718233=_0x1ba5a1['startsWith']('tablePaste'),_0x4ec574=_0x1ba5a1['substr'](_0x718233?0xa:0x5),_0x3ff458=_0x4ec574['toLowerCase'](),_0x12b110=_0x3ff458['substr'](0x0,0x3)+'span',_0x155eb3='min'+_0x4ec574,_0x37c266='max'+_0x4ec574;if(!_0x33fa45['isInContent'])continue;if(_0x45319d!=_0x33fa45['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x33fa45['isIntersectingWithRange'](_0xa66f93))continue;const _0x446783=_0x39b3e7['hasAttribute'](_0x12b110)?_0x39b3e7['getAttribute'](_0x12b110)-0x1:0x0,_0xd71c25=this['_getSuggestionCoords'](_0x33fa45),_0x4ebdd4=_0xd71c25[_0x155eb3],_0x2bebce=_0xd71c25[_0x37c266];_0x4ebdd4<=_0x17b8b[_0x3ff458]&&_0x17b8b[_0x3ff458]+_0x446783<=_0x2bebce&&(_0x33fa45['addRange'](_0xa66f93),_0x3085a3=!0x0);}return _0x3085a3;};_0x149f1b['model']['document']['registerPostFixer'](_0x5e87fb=>{let _0x4a14a2=!0x1;for(const _0x22a934 of _0x149f1b['model']['document']['differ']['getChanges']())if('insert'==_0x22a934['type']){if('tableRow'==_0x22a934['name']){for(const _0x5de09b of _0x22a934['position']['nodeAfter']['getChildren']())_0x4a14a2=_0x4a14a2||_0x98a3e3(_0x5de09b,_0x5e87fb);}else'tableCell'==_0x22a934['name']&&(_0x4a14a2=_0x4a14a2||_0x98a3e3(_0x22a934['position']['nodeAfter'],_0x5e87fb));}return _0x4a14a2;});}['_getSuggestionCoords'](_0x40ced8){return this['_getCoordsForCells'](_0x40ced8['getRanges']()['map'](_0x2d5cbc=>_0x2d5cbc['start']['nodeAfter']));}}function Re(_0x4af391){return Array['from'](new Set(_0x4af391)['values']());}class Se extends _0x957e03{static get['requires'](){return[Ne];}['afterInit'](){const _0x54f6fd=this['editor'],_0x49f9c5=_0x54f6fd['model']['document']['selection'],_0x31e461=_0x54f6fd['locale'];if(!_0x54f6fd['plugins']['has']('TableEditing'))return;const _0x13c530=_0x54f6fd['plugins']['get']('TrackChangesEditing'),_0x4799d4=_0x54f6fd['plugins']['get']('TableUtils'),_0x29546d=_0x54f6fd['plugins']['get'](Ne);_0x29546d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x13c530['enableCommand']('mergeTableCells',()=>{const _0x1d1660=_0x4799d4['getSelectionAffectedTableCells'](_0x54f6fd['model']['document']['selection']);_0x54f6fd['model']['change'](()=>{_0x13c530['markMultiRangeBlockFormat'](_0x1d1660,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x54f6fd['commands']['get']('mergeTableCells')['on']('execute',(_0x3a7bba,_0x417e3a)=>{_0x54f6fd['commands']['get']('trackChanges')['value']&&(_0x417e3a['length']>0x0&&_0x417e3a[_0x417e3a['length']-0x1]&&_0x417e3a[_0x417e3a['length']-0x1]['forceDefaultExecution']||_0x13c530['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3a7bba['stop']());},{'priority':'highest'});for(const _0x330192 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4fa4a9=_0x54f6fd['commands']['get'](_0x330192);_0x13c530['enableCommand'](_0x330192,()=>{const _0x133a90=_0x54f6fd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b52a3=>_0x3b52a3['is']('element','tableCell')),_0x5aadf1=_0x4fa4a9['value'];_0x54f6fd['model']['change'](()=>{_0x13c530['markMultiRangeBlockFormat']([_0x133a90,_0x5aadf1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3e53fe of['splitTableCellVertically','splitTableCellHorizontally']){const _0x507c89=_0x54f6fd['commands']['get'](_0x3e53fe);_0x13c530['enableCommand'](_0x3e53fe,()=>{const _0x136b47=_0x4799d4['getSelectionAffectedTableCells'](_0x54f6fd['model']['document']['selection'])[0x0],_0x34f712=_0x136b47['findAncestor']('table'),{column:_0x4e36aa,row:_0x43d1dc}=_0x4799d4['getCellLocation'](_0x136b47);let _0xa2a2ab=[];if('horizontally'==_0x507c89['direction']){const _0x1883c1=_0x4799d4['createTableWalker'](_0x34f712,{'startRow':_0x43d1dc,'endRow':_0x43d1dc,'includeAllSlots':!0x0});_0xa2a2ab=Array['from'](_0x1883c1)['map'](_0x6f91ac=>_0x6f91ac['cell']);}else{const _0xa01f8d=_0x4799d4['createTableWalker'](_0x34f712,{'column':_0x4e36aa,'includeAllSlots':!0x0});_0xa2a2ab=Array['from'](_0xa01f8d)['map'](_0x271365=>_0x271365['cell']);}_0x54f6fd['model']['change'](_0x3f4f60=>{_0x13c530['markBlockFormat'](_0x3f4f60['createRangeOn'](_0x136b47),{'commandName':_0x3e53fe,'commandParams':[]},_0xa2a2ab,_0x3e53fe);});});}_0x13c530['descriptionFactory']['registerDescriptionCallback'](_0x433b5a=>{if('formatBlock'!=_0x433b5a['type']&&'formatInline'!=_0x433b5a['type'])return;const {data:_0x3a9250}=_0x433b5a;return _0x3a9250&&'mergeTableCells'==_0x3a9250['commandName']?{'type':'format','content':At(_0x31e461,'*Merge\x20cells*')}:void 0x0;}),_0x13c530['descriptionFactory']['registerDescriptionCallback'](_0x5629f7=>{if('formatBlock'!=_0x5629f7['type']&&'formatInline'!=_0x5629f7['type'])return;const {data:_0x204a0a}=_0x5629f7;return _0x204a0a?'splitTableCellVertically'==_0x204a0a['commandName']?{'type':'format','content':At(_0x31e461,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x204a0a['commandName']?{'type':'format','content':At(_0x31e461,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5608e1=_0x29546d['_acceptFormatSuggestionCallbackFactory']();for(const _0x49b14d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x13c530['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49b14d,'accept',_0x5608e1);for(const _0x59ea84 of['splitTableCellVertically','splitTableCellHorizontally'])_0x13c530['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59ea84,'accept',_0x5608e1);_0x13c530['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x56b659=>{_0x54f6fd['model']['change'](_0x4a5235=>{const _0x22c3e9=Array['from'](_0x49f9c5['getRanges']())['map'](_0xa7fe98=>_0x82a6d2['fromRange'](_0xa7fe98));_0x4a5235['setSelection'](_0x56b659),_0x54f6fd['commands']['get']('mergeTableCells')['refresh'](),_0x54f6fd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x41733b=_0x22c3e9['filter'](_0x51c767=>'$graveyard'!=_0x51c767['root']['rootName']);_0x41733b['length']>0x0&&_0x4a5235['setSelection'](_0x41733b);for(const _0x3a62ab of _0x22c3e9)_0x3a62ab['detach']();});});for(const _0x4b55d0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4e5eaa=_0x54f6fd['commands']['get'](_0x4b55d0);_0x4e5eaa['on']('set:isEnabled',(_0x3246da,_0x553d8a,_0x4fc7da)=>{if(_0x4fc7da){const _0xe73219=_0x54f6fd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1c230a=>_0x1c230a['is']('element','tableCell'));this['_areMergableCells'](_0x4e5eaa['value'],_0xe73219)||(_0x3246da['return']=!0x1,_0x3246da['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4f968f=this['editor']['commands']['get']('mergeTableCells'),_0x5e5148=this['editor']['plugins']['get']('TableUtils');if(!_0x4f968f['isEnabled'])return!0x1;const _0x835cc4=_0x5e5148['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a35a8 of _0x835cc4)for(const _0x1c2d1b of _0x835cc4)if(_0x1a35a8!=_0x1c2d1b&&!this['_areMergableCells'](_0x1a35a8,_0x1c2d1b))return!0x1;return!0x0;}['_areMergableCells'](_0xb50916,_0x36dda2){const _0x1177eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcc08b7=this['editor']['model']['createRangeOn'](_0xb50916),_0x3fadbd=this['editor']['model']['createRangeOn'](_0x36dda2),_0x2c79fc=new Set(),_0x29ead6=new Set();for(const _0x52a019 of _0x1177eb['getSuggestions']())if(('insertion'==_0x52a019['type']||'deletion'==_0x52a019['type']||'mergeTableCells'==_0x52a019['subType'])&&_0x52a019['isInContent']){for(const _0x358ed5 of _0x52a019['getRanges']())_0x358ed5['containsRange'](_0xcc08b7,!0x0)&&_0x2c79fc['add'](_0x52a019['type']+':'+_0x52a019['author']['id']),_0x358ed5['containsRange'](_0x3fadbd,!0x0)&&_0x29ead6['add'](_0x52a019['type']+':'+_0x52a019['author']['id']);}if(_0x2c79fc['size']!=_0x29ead6['size'])return!0x1;for(const _0x35b9ae of _0x2c79fc)if(!_0x29ead6['has'](_0x35b9ae))return!0x1;return!0x0;}}class Me extends _0x957e03{static get['requires'](){return[Ne];}['afterInit'](){const _0x655e52=this['editor'];if(!_0x655e52['plugins']['has']('TableEditing'))return;const _0x52475d=_0x655e52['locale'],_0x44156f=_0x655e52['plugins']['get']('TrackChangesEditing');_0x44156f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x44156f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x44156f['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x52475d,'FORMAT_HEADER_ROW')),_0x44156f['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x52475d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b647b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9d0ce3=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x3b647b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x9d0ce3),_0x3b647b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x9d0ce3),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x314d62=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39dbf4=this['editor']['plugins']['get']('TableUtils');function _0x4f0c81({showActiveMarker:_0x1b9130=!0x0,setDataAttribute:_0x2f3ee5=!0x0}={}){return(_0x4f9cd5,_0x4a586b,_0x98ac5e)=>{const {type:_0x4981f3,id:_0x4163e0}=_0x269eaf(_0x4a586b['markerName']);if(!_0x314d62['hasSuggestion'](_0x4163e0))return;const _0x8f08dc=_0x314d62['getSuggestion'](_0x4163e0),_0x33e44f=_0x8f08dc['data'];if('formatBlock'!=_0x8f08dc['type']||!_0x33e44f||'setTableColumnHeader'!=_0x33e44f['commandName'])return;if(_0x4a586b['item'])return void _0x4f9cd5['stop']();if(!_0x98ac5e['consumable']['consume'](_0x4a586b['markerRange'],_0x4f9cd5['name']))return;const _0x364319=_0x4a586b['markerRange']['start']['nodeAfter'],_0x468505=_0x4a586b['markerRange']['end']['nodeBefore'],_0x505d40=_0x364319['parent']['parent'],{column:_0x1e982c}=_0x39dbf4['getCellLocation'](_0x364319),{column:_0x5f1fe7}=_0x39dbf4['getCellLocation'](_0x468505);for(let _0x24d247=_0x1e982c;_0x24d247<=_0x5f1fe7;_0x24d247++){const _0x277d5a=_0x39dbf4['createTableWalker'](_0x505d40,{'column':_0x24d247,'includeAllSlots':!0x1});for(const _0x585c8b of _0x277d5a){const _0x21cd69=_0x585c8b['cell'],_0x28b1e4=_0x98ac5e['mapper']['toViewElement'](_0x21cd69);_0x98ac5e['writer']['addClass']('ck-suggestion-marker-'+_0x4981f3,_0x28b1e4),_0x2f3ee5&&_0x98ac5e['writer']['setAttribute']('data-suggestion',_0x4163e0,_0x28b1e4),_0x98ac5e['mapper']['bindElementToMarker'](_0x28b1e4,_0x4a586b['markerName']),_0x1b9130&&(_0x314d62['activeMarkers']['includes'](_0x4a586b['markerName'])?_0x98ac5e['writer']['addClass']('ck-suggestion-marker--active',_0x28b1e4):_0x98ac5e['writer']['removeClass']('ck-suggestion-marker--active',_0x28b1e4));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f0c81(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x213fd8,_0x4a5e32,_0x5a7302)=>{_0x5a7302['options']['showSuggestionHighlights']&&_0x4f0c81({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x213fd8,_0x4a5e32,_0x5a7302);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1c3609,_0x182aec,_0xe8e56f)=>{const {type:_0x2a879a,id:_0x5e6215}=_0x269eaf(_0x182aec['markerName']);if(!_0x314d62['hasSuggestion'](_0x5e6215))return;const _0x144a88=_0x314d62['getSuggestion'](_0x5e6215),_0x2ee250=_0x144a88['data'];if('formatBlock'!=_0x144a88['type']||!_0x2ee250||'setTableColumnHeader'!=_0x2ee250['commandName'])return;const _0x3e59a3=_0xe8e56f['mapper']['markerNameToElements'](_0x182aec['markerName']);if(_0x3e59a3){for(const _0x48495b of _0x3e59a3)_0xe8e56f['writer']['removeClass']('ck-suggestion-marker-'+_0x2a879a,_0x48495b),_0xe8e56f['writer']['removeClass']('ck-suggestion-marker--active',_0x48495b),_0xe8e56f['writer']['removeAttribute']('data-suggestion',_0x48495b),_0xe8e56f['mapper']['unbindElementFromMarkerName'](_0x48495b,_0x182aec['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x3cf02f=this['editor'],_0x4fe9e3=_0x3cf02f['locale'];function _0x53d946(_0x3123b7){return{'type':'format','content':At(_0x4fe9e3,'*Format:*\x20%0',_0x3123b7)};}_0x3cf02f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10be77=>{if('formatBlock'!=_0x10be77['type'])return;const {data:_0x651515}=_0x10be77;if(_0x651515){if('setTableRowHeader'==_0x651515['commandName']){const _0x1f079b=_0x651515['commandParams'][0x0]['forceValue'];return _0x53d946(At(_0x4fe9e3,_0x1f079b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x651515['commandName']){const _0x3292fa=_0x651515['commandParams'][0x0]['forceValue'];return _0x53d946(At(_0x4fe9e3,_0x3292fa?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x957e03{static get['requires'](){return[Ne];}['afterInit'](){const _0x1b709f=this['editor'];if(!_0x1b709f['plugins']['has']('TableEditing')||!_0x1b709f['config']['get']('table.enableFooters'))return;const _0x61595d=_0x1b709f['locale'],_0x4da7d4=_0x1b709f['plugins']['get']('TrackChangesEditing');_0x4da7d4['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x4da7d4['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x61595d,'FORMAT_FOOTER_ROW'));}}class we extends _0x957e03{['afterInit'](){const _0x18acb1=this['editor'],_0x18244a=_0x18acb1['locale'],_0x5a82ed=_0x18acb1['plugins']['get']('TrackChangesEditing');function _0xca6de(_0x4397db){return{'type':'format','content':''+At(_0x18244a,'*Set\x20table\x20type:*\x20%0',_0x4397db)};}_0x18acb1['plugins']['has']('TableLayout')&&(_0x5a82ed['enableCommand']('insertTableLayout'),_0x5a82ed['enableDefaultAttributesIntegration']('tableType'),_0x5a82ed['descriptionFactory']['registerElementLabel'](_0x1ca71a=>_0x1ca71a['is']('element','table')&&'layout'===_0x1ca71a['getAttribute']('tableType'),_0x434558=>At(_0x18244a,'ELEMENT_LAYOUT_TABLE',_0x434558)),_0x5a82ed['descriptionFactory']['registerDescriptionCallback'](_0xaf5cc=>{const {data:_0x52a775}=_0xaf5cc;if(_0x52a775&&'tableType'==_0x52a775['key'])switch(_0x52a775['newValue']){case'layout':return _0xca6de(At(_0x18244a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xca6de(At(_0x18244a,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x19fbf3=>[_0x19fbf3,null]));class De extends _0x957e03{static get['requires'](){return[Ne];}['afterInit'](){const _0x5eb636=this['editor'];if(!_0x5eb636['plugins']['has']('TableClipboard'))return;const _0x19ca08=_0x5eb636['plugins']['get']('TrackChangesEditing'),_0x5ebf29=_0x5eb636['plugins']['get']('TableUtils'),_0x5c81b5=_0x5eb636['plugins']['get'](Ne),_0x3353aa=_0x5eb636['plugins']['get']('TableClipboard'),_0x3a4da7=_0x5eb636['plugins']['get']('TableSelection'),_0x4d384a=_0x5eb636['plugins']['get'](ut);_0x5c81b5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5eb636['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5eb636['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x8287ed=null,_0x116d0b=!0x1;_0x4d384a['on']('contentInsertion',(_0x78aedc,_0x1b0d9c)=>{_0x116d0b='paste'===_0x1b0d9c['method'];}),_0x5eb636['model']['on']('insertContent',(_0x88680f,_0x14589f)=>{if(!_0x116d0b&&null===_0x3a4da7['getSelectedTableCells']())return;const [_0x4af015,_0x51e952]=_0x14589f,_0x5584d9=_0x14589f[_0x14589f['length']-0x1];_0x5584d9&&_0x5584d9['forceDefaultExecution']||_0x19ca08['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c097c,_0x2a0001,_0x4ad3d5,_0x4c9fe7,_0x1c95a1){if(_0x2a0001&&!_0x2a0001['is']('documentSelection'))return!0x1;const _0x3ae296=_0x1c95a1['getTableIfOnlyTableInContent'](_0x4c097c,_0x4ad3d5);if(!_0x3ae296||!xe(_0x3ae296,void 0x0,_0x4c9fe7))return!0x1;const _0x2f6914=_0x4c9fe7['getSelectionAffectedTableCells'](_0x4ad3d5['document']['selection']);if(!_0x2f6914['length'])return!0x1;const _0x21bfe6=_0x2f6914[0x0]['findAncestor']('table'),_0x3e2add=_0x4c9fe7['getRowIndexes'](_0x2f6914),_0x4e723d=_0x4c9fe7['getColumnIndexes'](_0x2f6914),_0xf84264={'startRow':_0x3e2add['first'],'endRow':_0x3e2add['last'],'startColumn':_0x4e723d['first'],'endColumn':_0x4e723d['last']};return 0x1==_0x2f6914['length']&&(_0xf84264['endRow']+=_0x4c9fe7['getRows'](_0x3ae296)-0x1,_0xf84264['endColumn']+=_0x4c9fe7['getColumns'](_0x3ae296)-0x1),xe(_0x21bfe6,_0xf84264,_0x4c9fe7);}(_0x4af015,_0x51e952,_0x5eb636['model'],_0x5ebf29,_0x3353aa)&&(_0x88680f['stop'](),_0x8287ed={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5eb636['model']['change'](()=>{_0x5eb636['model']['insertContent'](_0x14589f[0x0],_0x14589f[0x1],_0x14589f[0x2],{'forceDefaultExecution':!0x0});const _0x4a8d29=_0x10b1ba(),{rowInsertionRanges:_0x20e076,columnInsertionRanges:_0x52acb5,insertionRanges:_0x223739,deletionRanges:_0x509ec7,cells:_0x4652bf}=_0x8287ed;_0x20e076['length']&&_0x19ca08['markMultiRangeInsertion'](_0x20e076,'tablePasteRow',{'tablePasteChainId':_0x4a8d29}),_0x52acb5['length']&&_0x19ca08['markMultiRangeInsertion'](_0x52acb5,'tablePasteColumn',{'tablePasteChainId':_0x4a8d29}),_0x223739['length']&&(_0x19ca08['markMultiRangeInsertion'](_0x223739,'tablePaste',{'tablePasteChainId':_0x4a8d29,'skipNestingCheck':!0x0}),_0x223739['forEach'](_0x323f28=>_0x323f28['detach']?.())),_0x509ec7['length']&&(_0x19ca08['markMultiRangeDeletion'](_0x509ec7,'tablePaste',{'tablePasteChainId':_0x4a8d29,'skipNestingCheck':!0x0}),_0x509ec7['forEach'](_0x2e144d=>_0x2e144d['detach']?.()));const _0x1566e8=_0x19ca08['markMultiRangeBlockFormat'](_0x4652bf['map'](({element:_0x327128})=>_0x327128),{'formatGroupId':_0x10b1ba()},[],'tablePasteCell',{'tablePasteChainId':_0x4a8d29});if(_0x1566e8){const _0x20a23e=_0x1566e8['getMarkers'](),_0x1f4fd7=[];for(const {element:_0x725544,attributes:_0x2d3717}of _0x4652bf){if(!_0x2d3717)continue;const _0x274ed5=_0x5eb636['model']['createRangeOn'](_0x725544),_0x3a37de=_0x20a23e['find'](_0x65b992=>_0x65b992['getRange']()['isEqual'](_0x274ed5));_0x3a37de&&_0x1f4fd7['push']([_0x3a37de['name'],_0x2d3717]);}_0x1f4fd7['length']&&_0x1566e8['setAttribute']('markerAttributes',Object['fromEntries'](_0x1f4fd7));}_0x8287ed=null;}));},{'priority':_0x44e75e['high']+0xa}),_0x4d384a['on']('contentInsertion',()=>{_0x116d0b=!0x1;},{'priority':'lowest'}),_0x5eb636['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x9bce11,_0x5d47f8)=>{const [_0x2f92b9,_0x817921,,_0x564057]=_0x5d47f8;if(!_0x8287ed)return;_0x9bce11['stop']();const _0x11a4c6=_0x2f92b9['cell'],_0x5292db=_0x817921,_0x52feb4=ve(_0x11a4c6),_0x5282ba=ve(_0x5292db);_0x9bce11['return']=_0x11a4c6;let _0x482d87=null,_0x2ff8fa=null;if(_0x5282ba||_0x52feb4){if(_0x52feb4&&!_0x5282ba){_0x564057['remove'](_0x11a4c6['getChild'](0x0));for(const _0x217a43 of Array['from'](_0x5292db['getChildren']()))_0x564057['insert'](_0x217a43,_0x11a4c6,'end');const _0x5b639a=_0x8287ed['rowInsertionIndexes']['includes'](_0x2f92b9['row']),_0x32b3fa=_0x8287ed['columnInsertionIndexes']['includes'](_0x2f92b9['column']);_0x5b639a||_0x32b3fa||(_0x482d87=_0x82a6d2['fromRange'](_0x564057['createRangeIn'](_0x11a4c6)));}else _0x5282ba&&!_0x52feb4&&(_0x2ff8fa=_0x564057['createRangeIn'](_0x11a4c6));}else{const _0x56eb5b=_0x564057['createElement']('tableCellSuggestion'),_0x33f43c=_0x564057['createElement']('tableCellSuggestion');_0x564057['wrap'](_0x564057['createRangeIn'](_0x11a4c6),_0x33f43c),_0x564057['insert'](_0x56eb5b,_0x11a4c6,0x0);for(const _0x456ac4 of Array['from'](_0x5292db['getChildren']()))_0x564057['insert'](_0x456ac4,_0x56eb5b,'end');_0x482d87=_0x82a6d2['fromRange'](_0x564057['createRangeOn'](_0x56eb5b)),_0x2ff8fa=_0x82a6d2['fromRange'](_0x564057['createRangeOn'](_0x33f43c));}const _0x384ad2=Array['from'](_0x5292db['getAttributes']())['filter'](([_0xff424c])=>Be['includes'](_0xff424c));_0x8287ed['cells']['push']({'element':_0x11a4c6,'attributes':_0x384ad2['length']?Object['fromEntries'](_0x384ad2):null}),_0x482d87&&_0x8287ed['insertionRanges']['push'](_0x482d87),_0x2ff8fa&&_0x8287ed['deletionRanges']['push'](_0x2ff8fa);},{'priority':'high'}),_0x5ebf29['on']('insertColumns',(_0x5a4f0f,_0xd4e4fd)=>{const [_0x263567,_0x387ece={}]=_0xd4e4fd;if(!_0x8287ed)return;const _0x469ba7=_0x387ece['at']||0x0,_0x4c73c1=_0x387ece['columns']||0x1;_0x8287ed['columnInsertionIndexes']=new Array(_0x4c73c1)['fill'](_0x469ba7)['map']((_0x428426,_0x449c0f)=>_0x428426+_0x449c0f);for(const {cell:_0xff8352}of _0x5ebf29['createTableWalker'](_0x263567,{'startColumn':_0x469ba7,'endColumn':_0x469ba7+_0x4c73c1-0x1}))_0x8287ed['columnInsertionRanges']['push'](_0x5eb636['model']['createRangeOn'](_0xff8352));},{'priority':'low'}),_0x5ebf29['on']('insertRows',(_0x35e3c1,_0x3feaaa)=>{const [_0x247205,_0x10e2f8={}]=_0x3feaaa;if(!_0x8287ed)return;const _0x985239=_0x10e2f8['at']||0x0,_0x16a398=_0x10e2f8['rows']||0x1;_0x8287ed['rowInsertionIndexes']=new Array(_0x16a398)['fill'](_0x985239)['map']((_0x435f42,_0x251729)=>_0x435f42+_0x251729);for(const {cell:_0x550235}of _0x5ebf29['createTableWalker'](_0x247205,{'startRow':_0x985239,'endRow':_0x985239+_0x16a398-0x1}))_0x8287ed['rowInsertionRanges']['push'](_0x5eb636['model']['createRangeOn'](_0x550235));},{'priority':'low'}),_0x19ca08['descriptionFactory']['registerDescriptionCallback'](_0x1f301b=>{if(_0x1f301b['subType']&&_0x1f301b['subType']['startsWith']('tablePaste'))return _0x1f301b['previous']?{}:{'type':'insertion','content':At(_0x5eb636['locale'],'*Replace\x20table\x20cells*')};});const _0x3c7908=()=>!0x1;for(const _0x239f1b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x19ca08['_suggestionFactory']['registerCustomCallback']('insertion',_0x239f1b,'join',_0x3c7908),_0x19ca08['_suggestionFactory']['registerCustomCallback']('deletion',_0x239f1b,'join',_0x3c7908),_0x19ca08['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x239f1b,'join',_0x3c7908);_0x19ca08['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3c7908),_0x19ca08['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x36f637,_0x4d2317,_0x4540ee)=>{const _0x28ecb2=_0x36f637['map'](_0x432276=>_0x432276['getContainedElement']())['filter'](_0x457d62=>_0x457d62),_0x58723f=new Map(_0x28ecb2['map'](_0x340d0e=>[_0x340d0e,null]));if(_0x8287ed){for(const {element:_0x10ac63,attributes:_0x38e97b}of _0x8287ed['cells'])_0x38e97b&&_0x58723f['set'](_0x10ac63,_0x38e97b);}else{if(_0x4540ee&&_0x4540ee['markerAttributes'])for(const [_0x1075e1,_0x9d824a]of Object['entries'](_0x4540ee['markerAttributes'])){const _0x42cd00=_0x5eb636['model']['markers']['get'](_0x1075e1),_0x455ecf=_0x42cd00?_0x42cd00['getRange']()['getContainedElement']():null;_0x455ecf&&_0x58723f['set'](_0x455ecf,_0x9d824a);}}_0x5eb636['model']['change'](_0x4228ae=>{for(const [_0x277698,_0x27577d]of _0x58723f)_0x4228ae['setAttributes']({...Fe,..._0x27577d},_0x277698);});});const _0x3e1300=(_0x40196b,_0x183808)=>{_0x19ca08['_suggestionFactory']['registerCustomCallback'](_0x40196b,'tablePaste',_0x183808,(_0x431666,_0x1e657c,_0x1103d0)=>{_0x5eb636['model']['change'](_0x22f754=>{const _0x388533=[];for(const _0x6ca40d of _0x431666){const _0x363f16=_0x6ca40d['start']['nodeAfter'];_0x363f16['is']('element','tableCellSuggestion')&&_0x388533['push'](_0x363f16);}_0x19ca08['_suggestionFactory']['getSuggestionCallback'](_0x40196b,null,_0x183808)(_0x431666,_0x1e657c,_0x1103d0);for(const _0x5cb265 of _0x388533)'$graveyard'!=_0x5cb265['root']['rootName']&&_0x22f754['unwrap'](_0x5cb265);});});};_0x3e1300('insertion','accept'),_0x3e1300('insertion','discard'),_0x3e1300('deletion','accept'),_0x3e1300('deletion','discard'),_0x19ca08['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x369259=>{const _0x20797=_0x369259['map'](_0x4628a2=>_0x4628a2['getContainedElement']()),_0x5df5f8=_0x20797[0x0]['findAncestor']('table'),{minRow:_0x68df25,maxRow:_0x2a7a6b}=_0x5c81b5['_getCoordsForCells'](_0x20797);_0x5ebf29['removeRows'](_0x5df5f8,{'at':_0x68df25,'rows':_0x2a7a6b-_0x68df25+0x1});}),_0x19ca08['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x512a63=>{const _0xbf552e=_0x512a63['map'](_0x225874=>_0x225874['getContainedElement']()),_0x5be358=_0xbf552e[0x0]['findAncestor']('table'),{minColumn:_0x3111a7,maxColumn:_0x48b534}=_0x5c81b5['_getCoordsForCells'](_0xbf552e);_0x5ebf29['removeColumns'](_0x5be358,{'at':_0x3111a7,'columns':_0x48b534-_0x3111a7+0x1});});const _0x443021=(_0x3f871a,_0x5f5da0)=>{if(!_0x5f5da0['subType']||!_0x5f5da0['subType']['startsWith']('tablePaste'))return;const _0x56dbd3=_0x5f5da0['attributes']['tablePasteChainId'],_0x4f943c=_0x19ca08['getSuggestions']()['filter'](_0x38bdcb=>_0x38bdcb['isInContent']&&_0x38bdcb['attributes']&&_0x38bdcb['attributes']['tablePasteChainId']==_0x56dbd3);_0x4f943c['length']&&_0x5f5da0['getAllAdjacentSuggestions']()['length']!=_0x4f943c['length']&&_0x4f943c['reduce']((_0x4b870e,_0x171b54)=>(_0x4b870e['next']=_0x171b54,_0x171b54['previous']=_0x4b870e,_0x171b54));};function _0xf1fa42(_0x48d128,_0x2fba8b=!0x0){const {id:_0x2b87e9,authorId:_0x1f329a}=_0x269eaf(_0x48d128['markerName']),_0x381f24=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xceb3e6=_0x19ca08['activeMarkers']['includes'](_0x48d128['markerName']);return _0xceb3e6&&_0x381f24['push']('ck-suggestion-marker--active'),{'classes':_0x381f24,'attributes':{'data-suggestion':_0x2b87e9,'data-author-id':_0x1f329a},'priority':_0xceb3e6&&_0x2fba8b?0xbc2:0xbb8};}_0x19ca08['on']('suggestionLoaded',_0x443021,{'priority':'high'}),_0x19ca08['on']('suggestionUnloaded',_0x443021,{'priority':'high'}),_0x5eb636['model']['document']['registerPostFixer'](()=>{let _0x29f483=!0x1;const _0x1fd507=Array['from'](_0x5eb636['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x404a8e,data:_0x455990}of _0x1fd507){const {group:_0x181d59,type:_0x5cb2cc,id:_0x2311e9}=_0x269eaf(_0x404a8e);if('suggestion'!=_0x181d59||'deletion'!=_0x5cb2cc||_0x455990['oldRange'])continue;if(!_0x19ca08['hasSuggestion'](_0x2311e9))continue;const _0x150c30=_0x19ca08['getSuggestion'](_0x2311e9)['getRanges'](),_0x157c47=_0x5eb636['plugins']['get']('Users')['me'];for(const _0xa46881 of _0x19ca08['getSuggestions']()){if(!_0xa46881['isInContent']||_0xa46881['author']!=_0x157c47)continue;if('formatBlock'!=_0xa46881['type']||'tablePasteCell'!=_0xa46881['subType'])continue;if(_0xa46881['getRanges']()['every'](_0x3ed9fb=>_0x150c30['some'](_0x40b822=>_0x40b822['containsRange'](_0x3ed9fb,!0x0)))){for(const _0x5cf0fb of _0xa46881['getAllAdjacentSuggestions']())_0x5cf0fb['isInContent']&&(_0x5cf0fb['discard'](),_0x29f483=!0x0);}}}return _0x29f483;}),_0x5eb636['model']['document']['registerPostFixer'](_0x53e26b=>{const _0x779bcb=_0x5eb636['commands']['get']('redo');if(!_0x779bcb||!_0x779bcb['_createdBatches']['has'](_0x53e26b['batch']))return!0x1;let _0x3f0165=!0x1;const _0x83da9=_0x5eb636['plugins']['get']('Users')['me'],_0x48acfe=_0x5eb636['model']['document']['differ']['getChanges'](),_0x30159a=Array['from'](_0x5eb636['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4baae5,data:_0xe866db})=>{const {group:_0x5ab210,subType:_0x2a749d,authorId:_0x252487}=_0x269eaf(_0x4baae5);return'suggestion'==_0x5ab210&&'tablePaste'==_0x2a749d&&_0x252487==_0x83da9['id']&&!_0xe866db['oldRange'];});for(const _0x41e40d of _0x48acfe){if('insert'!=_0x41e40d['type']||'tableCellSuggestion'!=_0x41e40d['name']||0x1!=_0x41e40d['length'])continue;const _0x23e3a0=_0x53e26b['createRange'](_0x41e40d['position'],_0x41e40d['position']['getShiftedBy'](0x1));if(!_0x30159a['find'](({data:_0x32f21e})=>_0x32f21e['newRange']['isEqual'](_0x23e3a0))){for(const {name:_0x17a46c,data:_0x8204d4}of _0x30159a)if(_0x23e3a0['containsRange'](_0x8204d4['newRange'])){_0x53e26b['updateMarker'](_0x17a46c,{'range':_0x23e3a0}),_0x3f0165=!0x0;break;}}}return _0x3f0165;}),_0x5eb636['model']['document']['registerPostFixer'](_0x399024=>{let _0x437060=!0x1;const _0xb80005=_0x5eb636['plugins']['get']('Users')['me'],_0xd21c05=_0x19ca08['getSuggestions']()['filter'](_0xc2fcaa=>_0xc2fcaa['isInContent']&&_0xc2fcaa['author']==_0xb80005),_0x3ce747=new Set(),_0x31047e=new Set();for(const _0x524767 of _0xd21c05)if('tablePaste'==_0x524767['subType'])for(const _0x24c94a of _0x524767['getMarkers']()){const _0x213647=_0x24c94a['getRange']()['getContainedElement']();if(_0x213647){if(_0x213647['is']('element','tableCellSuggestion')&&ve(_0x213647)){_0x524767['removeMarker'](_0x24c94a['name']),_0x3ce747['add'](_0x213647),_0x437060=!0x0;const _0x2e99a0=_0x213647['nextSibling'],_0xdaee=_0x213647['previousSibling'],_0xb90763=_0x2e99a0&&_0x2e99a0['is']('element','tableCellSuggestion'),_0x34d970=_0xdaee&&_0xdaee['is']('element','tableCellSuggestion');_0xb90763&&!_0x3ce747['has'](_0x2e99a0)&&_0x31047e['add'](_0x2e99a0),_0x34d970&&!_0x3ce747['has'](_0xdaee)&&_0x31047e['add'](_0xdaee);}else _0x213647['is']('element','paragraph')&&_0x213647['isEmpty']&&(_0x524767['removeMarker'](_0x24c94a['name']),_0x437060=!0x0);}}else{if('tablePasteCell'==_0x524767['subType']){if(!_0x524767['attributes']||!_0x524767['attributes']['tablePasteChainId'])continue;const _0x317f4a=_0x524767['attributes']['markerAttributes'];if(_0x317f4a&&Object['keys'](_0x317f4a)['length'])continue;const _0x608200=_0x524767['attributes']['tablePasteChainId'];let _0x588512=!0x0,_0x20bd39=!0x0;for(const _0x53d353 of _0xd21c05)if(_0x53d353['subType']&&_0x53d353['subType']['startsWith']('tablePaste')){if(!_0x53d353['attributes']['tablePasteChainId']){_0x20bd39=!0x1;break;}if(_0x53d353['id']!=_0x524767['id']&&_0x53d353['attributes']['tablePasteChainId']==_0x608200){_0x588512=!0x1;break;}}_0x20bd39&&_0x588512&&(_0x524767['removeMarkers'](),_0x437060=!0x0);}}for(const _0x1aab68 of _0x3ce747)_0x399024['remove'](_0x1aab68);for(const _0x45900f of _0x31047e)_0x399024['unwrap'](_0x45900f);return _0x437060;}),_0x5eb636['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd1edcd=>_0xf1fa42(_0xd1edcd),'converterPriority':'high'}),_0x5eb636['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4edd12,_0x6504a3)=>_0x6504a3['options']['showSuggestionHighlights']?_0xf1fa42(_0x4edd12,!0x1):null,'converterPriority':'high'});const _0x49c7bb=_0x5eb636['editing']['view'];this['listenTo'](_0x49c7bb['document'],'clipboardOutput',(_0x3fb33e,_0x258dc2)=>{const _0x10d80b=[];for(const _0x24afce of _0x49c7bb['createRangeIn'](_0x258dc2['content'])['getItems']())_0x24afce['is']('element','suggestion-td')&&_0x10d80b['push'](_0x24afce);_0x49c7bb['change'](_0x5609ef=>{for(const _0xfde084 of _0x10d80b)_0x5609ef['move'](_0x5609ef['createRangeIn'](_0xfde084),_0x5609ef['createPositionBefore'](_0xfde084)),_0x5609ef['remove'](_0xfde084);});});}}function ve(_0x19a60d){if(_0x19a60d['isEmpty'])return!0x0;const _0x33ba09=_0x19a60d['getChild'](0x0);return _0x33ba09['is']('element','paragraph')&&_0x33ba09['isEmpty'];}function xe(_0x52b02b,_0x119abe={},_0x336279){for(const {isAnchor:_0x26c95b,cellHeight:_0x37052d,cellWidth:_0x29858c}of _0x336279['createTableWalker'](_0x52b02b,{'includeAllSlots':!0x0,..._0x119abe}))if(!_0x26c95b||0x1!=_0x37052d||0x1!=_0x29858c)return!0x1;return!0x0;}class Pe extends _0x957e03{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x367aef=this['editor']['plugins']['get']('TrackChangesEditing');_0x367aef['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x367aef['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x367aef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x367aef['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x367aef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x367aef['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xcfdecc,_0x469a70){const _0x5850ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a9237=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x54d2be=_0x469a70['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5bf223=_0x2a9237['getColumnGroupElement'](_0x54d2be);let _0xb1f675=_0x5bf223?_0x2a9237['getTableColumnsWidths'](_0x5bf223):null,_0x2a940f=_0x54d2be['getAttribute']('tableWidth')||null;const _0x375c06=_0x469a70['tableWidth']||_0x2a940f,_0x28f782=_0x469a70['columnWidths']||_0xb1f675,_0x26a099=this['editor']['plugins']['get']('Users')['me'];for(const _0x4b320f of _0x5850ab['getSuggestions']()){const _0x15c7b2=_0x4b320f['getContainedElement']();if('resizeTable'===_0x4b320f['subType']&&_0x15c7b2===_0x54d2be){_0x4b320f['author']!==_0x26a099&&_0x4b320f['discard']();const _0x578bc0=_0x4b320f['data']['commandParams'];_0x2a940f=_0x578bc0[0x0]['tableWidth'],_0xb1f675=_0x578bc0[0x0]['columnWidths'];break;}}_0xcfdecc({'table':_0x54d2be,'tableWidth':_0x375c06,'columnWidths':_0x28f782}),_0x5850ab['markBlockFormat'](_0x54d2be,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a940f,'columnWidths':_0xb1f675}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xb977d8){if('formatBlock'!=_0xb977d8['type']&&'formatInline'!=_0xb977d8['type'])return;const {data:_0x14e275}=_0xb977d8;if(_0x14e275&&'resizeTable'===_0x14e275['formatGroupId']){const _0x122a7b='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x122a7b)};}}}class Ue extends _0x957e03{['afterInit'](){const _0x3303e5=this['editor'];_0x3303e5['plugins']['has']('Template')&&_0x3303e5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x957e03{['afterInit'](){const _0x26231b=this['editor'];if(!_0x26231b['commands']['get']('insertTableOfContents'))return;_0x26231b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x53d039=_0x26231b['plugins']['get']('TrackChangesEditing'),_0x2ff102=_0x26231b['locale'];_0x53d039['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1327f9=>At(_0x2ff102,'ELEMENT_TABLE_OF_CONTENTS',_0x1327f9));}}class He extends _0x957e03{['afterInit'](){const _0x550b71=this['editor'];if(!_0x550b71['plugins']['has']('Title'))return;_0x550b71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x550b71['locale'],'ELEMENT_TITLE')),_0x550b71['model']['document']['registerPostFixer'](_0x1d9a7b=>{let _0x24fa84=!0x1;const _0x54c8ff=Array['from'](_0x550b71['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35b164,data:_0x34d726}of _0x54c8ff){const {group:_0x13e877}=_0x269eaf(_0x35b164);if('suggestion'!==_0x13e877||!_0x34d726['newRange'])continue;const _0x5a40e1=_0x34d726['newRange'],_0x23dfa1=_0x5a40e1['end']['nodeBefore'];if(!_0x23dfa1||!_0x23dfa1['is']('element','title-content'))continue;if(!_0x5a40e1['start']['isTouching'](_0x5a40e1['end']))continue;const _0x5b666c=_0x550b71['model']['schema']['getNearestSelectionRange'](_0x5a40e1['end'],'forward');if(_0x5b666c&&_0x5b666c['isCollapsed']){const _0x211773=_0x1d9a7b['createRange'](_0x5a40e1['start'],_0x5b666c['start']);_0x211773['isEqual'](_0x5a40e1)||(_0x1d9a7b['updateMarker'](_0x35b164,{'range':_0x211773}),_0x24fa84=!0x0);}_0x24fa84||(_0x1d9a7b['removeMarker'](_0x35b164),_0x24fa84=!0x0);}return _0x24fa84;});}}class $e extends _0x957e03{['afterInit'](){const _0x5c7736=this['editor'],_0x2edb47=_0x5c7736['plugins']['get']('TrackChangesEditing');_0x5c7736['plugins']['has']('Uploadcare')&&(_0x2edb47['enableCommand']('uploadcare'),_0x5c7736['plugins']['has']('UploadcareImageEdit')&&(_0x2edb47['enableCommand']('uploadcareImageEdit'),_0x2edb47['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2edb47['descriptionFactory']['registerDescriptionCallback'](_0x30f816=>{if('attribute'!=_0x30f816['type'])return;const {data:_0x474bfb}=_0x30f816;return _0x474bfb&&'uploadcareImageId'==_0x474bfb['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x957e03{['afterInit'](){const _0x3e0fca=this['editor'],_0x34e91b=_0x3e0fca['plugins']['get']('TrackChangesEditing');_0x3e0fca['plugins']['has']('UndoEditing')&&(_0x34e91b['enableCommand']('undo'),_0x34e91b['enableCommand']('redo'));}}class Ve extends _0x957e03{static get['requires'](){return[Ne];}['afterInit'](){const _0x43c5ae=this['editor'];if(!_0x43c5ae['plugins']['has']('TableCaptionEditing'))return;_0x43c5ae['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x957e03{['tableProperties'];['tableCellProperties'];constructor(_0x1edcac){super(_0x1edcac),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x6798d8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x43fe51 of this['tableProperties'])_0x6798d8['enableCommand'](_0x43fe51,(_0x5135e9,_0x1ad9f9)=>{const _0xd2ea2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x43fe51,[_0xd2ea2],this['tableProperties'],'tableProperties',_0x5135e9,_0x1ad9f9);});_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x6798d8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4186fb,_0x2b9db1)=>this['handleDiscardAction'](this['tableProperties'],_0x4186fb,_0x2b9db1)),_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1d2770 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1d2770)&&_0x6798d8['enableCommand'](_0x1d2770,(_0x345a9d,_0x49b760)=>{const _0x2aa236=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1d2770,_0x2aa236,this['tableCellProperties'],'tableCellProperties',_0x345a9d,_0x49b760);});_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x6798d8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3be31f,_0x48fbd0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3be31f,_0x48fbd0)),_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x6798d8['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x6798d8['descriptionFactory']['registerDescriptionCallback'](_0x5b6643=>this['handleSuggestionDescription'](_0x5b6643)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3f4156,_0xce2445,_0x326343,_0x3c1bc0,_0x4e9126,_0x3e8f2b){const _0xd66d9a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3e8f2b['batch'],()=>{for(const _0xed7cb4 of _0xce2445){if(this['_getSuggestion'](_0xed7cb4,_0x3c1bc0))_0x4e9126(_0x3e8f2b);else{const _0x115f1c={};for(const _0x3b45c3 of _0x326343){const _0x394c10=_0xed7cb4['getAttribute'](_0x3b45c3);void 0x0!==_0x394c10&&(_0x115f1c[_0x3b45c3]=_0x394c10);}_0x4e9126(_0x3e8f2b),_0xd66d9a['markBlockFormat'](_0xed7cb4,{'commandParams':[_0x115f1c]},[],_0x3c1bc0);}}});}['handleDiscardAction'](_0x5d4e70,_0x3dcd27,_0x232c69){const _0x366158=_0x3dcd27[0x0]['start']['nodeAfter'],_0xafda17=_0x232c69['commandParams'][0x0];this['editor']['model']['change'](_0x2befc1=>{for(const _0x12b428 of _0x5d4e70)void 0x0!==_0xafda17[_0x12b428]?_0x2befc1['setAttribute'](_0x12b428,_0xafda17[_0x12b428],_0x366158):_0x2befc1['removeAttribute'](_0x12b428,_0x366158);});}['handleSuggestionDescription'](_0x321919){if(_0x321919['data'])switch(_0x321919['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5d6dee,_0x2a9219){const _0x3e55d7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3514b7 of _0x3e55d7['getSuggestions']({'skipNotAttached':!0x0})){const _0x39f355=_0x3514b7['getContainedElement']();if(_0x3514b7['subType']===_0x2a9219&&_0x39f355===_0x5d6dee)return _0x3514b7;}return null;}['_registerTablePropertiesAttributes'](){const _0x246470=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1646e4=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4762f5 of _0x1646e4){const _0x2bf208=_0x4762f5['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x246470['descriptionFactory']['registerAttributeLabel'](_0x4762f5,At(this['editor']['locale'],'FORMAT_'+_0x2bf208));}}}class ze extends _0x957e03{['afterInit'](){const _0x50dd8e=this['editor'];if(!_0x50dd8e['plugins']['has']('LineHeight'))return;const _0x188359=_0x50dd8e['plugins']['get']('TrackChangesEditing'),_0x10343a=_0x50dd8e['locale'];_0x188359['enableDefaultAttributesIntegration']('lineHeight'),_0x188359['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x10343a,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x957e03{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x552cbc,_0x59977f,_0x552f83,_0x2bb4eb,_0x42784c,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44b65d){super(_0x44b65d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3445a4,_0x1e5c97,_0x3a9b8d,_0x165648)=>{this['_model']['change'](()=>{for(const _0x2928f6 of[..._0x165648,..._0x3a9b8d])this['_model']['markers']['has'](_0x2928f6)&&_0x44b65d['editing']['reconvertMarker'](_0x2928f6);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x44b65d['plugins']['get'](_0x552cbc),this['_suggestionsConversion']=_0x44b65d['plugins']['get'](_0x59977f),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x44b65d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x44b65d['config']['get']('trackChanges.trackFormatChanges'),_0x44b65d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x44b65d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x44b65d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x41a3e7=this['editor'];_0x41a3e7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3b8427,{writer:_0x2cf116})=>{let _0x277ff6='suggestion:'+_0x3b8427['getAttribute']('suggestion-type')+':'+_0x3b8427['getAttribute']('id');return _0x3b8427['getAttribute']('marker-count')&&(_0x277ff6+=':'+_0x3b8427['getAttribute']('marker-count')),_0x2cf116['createElement']('$marker',{'data-name':_0x277ff6});}}),_0x41a3e7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x41a3e7['model']['document']['registerPostFixer'](_0x4d2947=>{let _0x1ab184=!0x1;const _0x4ae830=Array['from'](_0x41a3e7['model']['document']['differ']['getChangedMarkers']()),_0x4f27a4=new Set();for(const {name:_0x5142b6,data:_0x241868}of _0x4ae830){const {group:_0x18adb2,type:_0x24a062,subType:_0x461568,id:_0x346898}=_0x269eaf(_0x5142b6);if('suggestion'!==_0x18adb2)continue;const _0x3a7f65=_0x461568?'suggestion:'+_0x24a062+':'+_0x461568+':'+_0x346898:'suggestion:'+_0x24a062+':'+_0x346898,_0x47f72b=_0x41a3e7['model']['markers']['getMarkersGroup'](_0x3a7f65),_0xa4b7f0=_0x41a3e7['model']['markers']['get'](_0x5142b6),_0x561e20=this['_suggestions']['get'](_0x346898);if(null!=_0x241868['newRange']){'formatInline'==_0x24a062&&(_0x1ab184=_0x1ab184||Ze(_0x241868['newRange'],_0x5142b6,_0x4d2947,_0x41a3e7['model']['schema']));const _0x11e57f='attribute'==_0x24a062&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x461568)),_0x559f92='attribute'==_0x24a062&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x461568));if(_0x241868['newRange']['isCollapsed']||'$graveyard'==_0x241868['newRange']['root']['rootName']||'formatBlock'==_0x24a062&&!tn(_0x241868['newRange'])||_0x11e57f&&!tn(_0x241868['newRange'])||_0x559f92&&en(_0x241868['newRange'])||'deletion'==_0x24a062&&en(_0x241868['newRange'])||_0xa4b7f0&&nn(_0xa4b7f0,_0x47f72b))_0x4d2947['removeMarker'](_0x5142b6),_0x1ab184=!0x0;else{if(!_0x561e20||!_0x561e20['isInContent'])continue;if(_0x241868['newRange']&&_0x241868['oldRange']&&_0x241868['newRange']['isEqual'](_0x241868['oldRange']))continue;_0x4f27a4['add'](_0x561e20);}}}return _0x4f27a4['size']>0x0&&(_0x1ab184=!!this['_joinWithAdjacentSuggestions'](_0x4f27a4)||_0x1ab184),_0x1ab184;}),_0x41a3e7['model']['document']['registerPostFixer'](_0x382be7=>{let _0x473338=!0x1;for(const _0xda84a4 of _0x41a3e7['model']['document']['differ']['getChanges']())if('insert'==_0xda84a4['type'])for(const _0xb6bfb9 of this['_suggestions']['values']()){if(_0xb6bfb9['isMultiRange']||!_0xb6bfb9['isInContent'])continue;const _0x54ea7b='formatBlock'==_0xb6bfb9['type'],_0x722f05=this['_getAttributeKey'](_0xb6bfb9),_0x842ecc=_0x722f05&&this['_suggestionsConversion']['isBlockAttribute'](_0x722f05);if(!_0x54ea7b&&!_0x842ecc)continue;const _0x485f5c=_0xb6bfb9['getFirstRange']();if(_0x485f5c['start']['parent']!=_0x485f5c['end']['parent']&&!_0x485f5c['end']['isAtEnd']){const _0x1352cc=_0x41a3e7['model']['createPositionAt'](_0x485f5c['start']['nodeAfter'],'end'),_0x17f780=_0x41a3e7['model']['createRange'](_0x485f5c['start'],_0x1352cc);_0x382be7['updateMarker'](_0xb6bfb9['getFirstMarker'](),{'range':_0x17f780}),_0x473338=!0x0;}}return _0x473338;}),_0x41a3e7['model']['document']['registerPostFixer'](_0x32b5df=>this['_processAttributeChanges'](_0x32b5df)),_0x41a3e7['model']['document']['registerPostFixer'](_0x5ac892=>!_0x5ac892['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5ac892)),_0x41a3e7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x41a3e7['model']['document']['on']('change:data',(_0x8e719d,_0x550e5c)=>{if(!_0x550e5c['isLocal']||_0x550e5c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2af65d=_0x41a3e7['model']['document']['differ']['getChanges']();if(0x0==_0x2af65d['length'])return;const _0x2a737c=[],_0x501be1=_0x2af65d['filter'](_0x5ccebd=>'attribute'==_0x5ccebd['type']),_0x8fb4b8=_0x2af65d['filter'](_0x538317=>'insert'==_0x538317['type']&&'$text'!=_0x538317['name']);for(const _0x4ac5d7 of _0x501be1)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4ac5d7['attributeKey'])&&_0x2a737c['push']({'key':_0x4ac5d7['attributeKey'],'newValue':_0x4ac5d7['attributeNewValue'],'oldValue':_0x4ac5d7['attributeOldValue'],'range':sn(_0x4ac5d7['range'],_0x41a3e7['model'])});for(const _0x5de26f of _0x8fb4b8){if('rename'!=_0x5de26f['action']&&'refresh'!=_0x5de26f['action'])continue;const _0x48b12e=rn(_0x5de26f['position']['nodeAfter'],_0x41a3e7['model']),_0xc7acd9=_0x5de26f['before'];'rename'==_0x5de26f['action']&&_0x2a737c['push']({'key':Ke,'newValue':_0x5de26f['name'],'oldValue':_0xc7acd9['name'],'range':_0x48b12e});for(const [_0x5a806a,_0x1bcc48]of _0xc7acd9['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5a806a))continue;const _0x497aac=_0x5de26f['attributes']['get'](_0x5a806a);_0x1bcc48!==_0x497aac&&_0x2a737c['push']({'key':_0x5a806a,'newValue':_0x497aac,'oldValue':_0x1bcc48,'range':_0x48b12e});}for(const [_0x426985,_0x279dfb]of _0x5de26f['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x426985)&&(_0xc7acd9['attributes']['has'](_0x426985)||_0x2a737c['push']({'key':_0x426985,'newValue':_0x279dfb,'oldValue':null,'range':_0x48b12e}));}0x0!=_0x2a737c['length']&&_0x41a3e7['model']['enqueueChange'](_0x550e5c,_0x2c53e8=>{const _0x2d1ddc=_0x10b1ba();for(const {range:_0x3106c7,key:_0x150e2e,oldValue:_0xc7bcc2,newValue:_0x44c57c}of _0x2a737c)this['markAttributeChange'](_0x3106c7,_0x150e2e,_0xc7bcc2,_0x44c57c,{'groupId':_0x2d1ddc});this['_reduceExistingSuggestions'](_0x2c53e8,_0x2a737c);});},{'priority':'lowest'}),_0x41a3e7['model']['markers']['on']('update:suggestion',(_0x501bf8,_0x451629,_0x216130)=>{if(null==_0x216130){const {id:_0x2b234f}=_0x269eaf(_0x451629['name']),_0x2224ae=this['_suggestions']['get'](_0x2b234f);_0x2224ae&&_0x2224ae['addMarkerName'](_0x451629['name']);}}),_0x41a3e7['model']['document']['on']('change:data',()=>{const _0x22fbb8=Array['from'](_0x41a3e7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4a6f50=>'suggestion'===_0x269eaf(_0x4a6f50['name'])['group']);if(0x0===_0x22fbb8['length'])return;_0x22fbb8['sort']((_0xf6da22,_0x561c29)=>{const _0x10c5e7=_0xf6da22['data']['oldRange'],_0x5dec54=_0x561c29['data']['oldRange'];return null===_0x10c5e7&&null===_0x5dec54?0x0:null===_0x10c5e7&&null!==_0x5dec54?-0x1:null!==_0x10c5e7&&null===_0x5dec54?0x1:_0x10c5e7['start']['isBefore'](_0x5dec54['start'])?-0x1:0x1;});const _0x57a551=new Set(),_0x2c261a=new Set();for(const {name:_0x25f685,data:_0x39d2fc}of _0x22fbb8){const {id:_0x523945}=_0x269eaf(_0x25f685);if(null===_0x39d2fc['oldRange']){const _0x2cf083=this['_handleNewSuggestionMarker'](_0x25f685);_0x2c261a['add'](_0x2cf083);}else{const _0x476d1e=this['_suggestions']['get'](_0x523945);null!==_0x39d2fc['newRange']||_0x476d1e['isInContent']?(_0x57a551['add'](_0x476d1e['head']),_0x2c261a['add'](_0x476d1e)):this['_removeSuggestion'](_0x476d1e);}}_0x2c261a['size']>0x0&&this['_refreshSuggestionsChain'](_0x2c261a);for(const _0x388d88 of _0x57a551)this['fire']('suggestionChanged',_0x388d88);}),_0x41a3e7['model']['on']('applyOperation',(_0x426fb0,_0x243366)=>{const _0x647fd8=_0x243366[0x0];if(!this['_suggestions']['size'])return;if(!_0x647fd8['isDocumentOperation'])return;if(_0x647fd8['batch']['isUndo']||!_0x647fd8['batch']['isLocal'])return;let _0x1e5d84,_0xcfece7;switch(_0x647fd8['type']){case'insert':_0x1e5d84=_0x41a3e7['model']['createPositionAt'](_0x647fd8['position']),_0xcfece7=_0x1e5d84['getShiftedBy'](_0x647fd8['howMany']);break;case'split':_0x1e5d84=_0x41a3e7['model']['createPositionAt'](_0x647fd8['splitPosition']),_0xcfece7=_0x41a3e7['model']['createPositionAt'](_0x647fd8['moveTargetPosition']);break;case'move':_0x1e5d84=_0x41a3e7['model']['createPositionAt'](_0x647fd8['targetPosition']),_0xcfece7=_0x1e5d84['getShiftedBy'](_0x647fd8['howMany']);break;default:return;}const _0xa9bf68=_0x41a3e7['model']['createRange'](_0x1e5d84,_0xcfece7);_0x41a3e7['model']['change'](()=>{for(const {suggestion:_0x36ca38,meta:_0x18edda}of this['_findSuggestions'](_0xa9bf68)){if(_0x36ca38['isMultiRange'])continue;if('formatInline'==_0x36ca38['type'])continue;const _0x5d2884=this['_getAttributeKey'](_0x36ca38);if(_0x5d2884&&this['_suggestionsConversion']['isBlockAttribute'](_0x5d2884)&&'split'!=_0x647fd8['type'])continue;const _0x5ab135=_0x36ca38['data']&&_0x36ca38['data']['multipleBlocks'];('formatBlock'!=_0x36ca38['type']||'split'==_0x647fd8['type']&&!_0x5ab135)&&(_0x18edda['containsRangeInObject']||'insertion'==_0x36ca38['type']&&_0x18edda['isOwn']||_0x36ca38['getFirstRange']()['containsRange'](_0xa9bf68)&&this['_breakSuggestionMarker'](_0x36ca38,_0x1e5d84,_0xcfece7));}});},{'priority':'lowest'}),_0x41a3e7['model']['on']('deleteContent',(_0x5037bb,_0x22d5ff)=>{const _0x48e567=_0x22d5ff[0x0],_0x4131b=_0x22d5ff[0x1];if(_0x4131b&&_0x4131b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x48e567['isCollapsed'])return;const _0x221fa4=_0x41a3e7['model']['schema'],{start:_0xb5664c,end:_0x2b9df8}=_0x48e567['getFirstRange'](),_0x3b85c2=_0xb5664c['nodeAfter']&&_0x221fa4['isLimit'](_0xb5664c['nodeAfter'])?null:_0x221fa4['getNearestSelectionRange'](_0xb5664c,'forward'),_0x343e7d=_0x2b9df8['nodeBefore']&&_0x221fa4['isLimit'](_0x2b9df8['nodeBefore'])?null:_0x221fa4['getNearestSelectionRange'](_0x2b9df8,'backward'),_0x5a3aa1=_0x41a3e7['model']['createRange'](_0x3b85c2?_0x3b85c2['start']:_0xb5664c,_0x343e7d?_0x343e7d['end']:_0x2b9df8);_0x41a3e7['model']['change'](_0x37e8b7=>{this['markDeletion'](_0x5a3aa1);const _0x257602=_0x41a3e7['model']['schema']['getNearestSelectionRange'](_0x5a3aa1['start']);_0x48e567['is']('documentSelection')?_0x37e8b7['setSelection'](_0x257602):_0x48e567['setTo'](_0x257602);}),_0x5037bb['stop']();},{'priority':_0x44e75e['normal']+0xa}),_0x41a3e7['model']['on']('insertContent',(_0x3e502d,_0x4ae490)=>{const _0xdab92e=_0x4ae490[_0x4ae490['length']-0x1];_0xdab92e&&_0xdab92e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x41a3e7['model']['change'](()=>{let _0x279777=_0x41a3e7['model']['insertContent'](_0x4ae490[0x0],_0x4ae490[0x1],_0x4ae490[0x2],{'forceDefaultExecution':!0x0});if(!_0x279777)return;_0x3e502d['return']=_0x279777['clone']();const _0xc67189=_0x279777['end']['nodeBefore'],_0x2b6de0=_0x41a3e7['model']['schema'];_0xc67189&&_0x2b6de0['isBlock'](_0xc67189)&&!_0x2b6de0['isObject'](_0xc67189)&&(_0x279777=_0x41a3e7['model']['createRange'](_0x279777['start'],_0x41a3e7['model']['createPositionAt'](_0xc67189,'end'))),this['markInsertion'](_0x279777);}),_0x3e502d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x446f2c=new dt(_0x41a3e7,this['_suggestions']);_0x41a3e7['commands']['add']('acceptSuggestion',_0x446f2c),this['enableCommand']('acceptSuggestion');const _0x29256d=new ft(_0x41a3e7,this['_suggestions']);_0x41a3e7['commands']['add']('discardSuggestion',_0x29256d),this['enableCommand']('discardSuggestion'),_0x41a3e7['commands']['add']('acceptAllSuggestions',new Lt(_0x41a3e7,_0x446f2c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x41a3e7['commands']['add']('discardAllSuggestions',new Lt(_0x41a3e7,_0x29256d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x41a3e7['commands']['add']('acceptSelectedSuggestions',new It(_0x41a3e7,_0x446f2c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x41a3e7['commands']['add']('discardSelectedSuggestions',new It(_0x41a3e7,_0x29256d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x59724d=_0x41a3e7['plugins']['get'](_0x552cbc);this['listenTo'](_0x59724d,'addComment',(_0x104269,{threadId:_0x26f047})=>{const _0x535f0a=this['_suggestions']['get'](_0x26f047);_0x535f0a&&_0x535f0a['commentThread']&&0x1===_0x535f0a['commentThread']['length']&&this['_updateSuggestionData'](_0x26f047,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x59724d,'removeComment',(_0x4b40e3,{threadId:_0x32244b})=>{const _0x5b30a2=this['_suggestions']['get'](_0x32244b);_0x5b30a2&&_0x5b30a2['commentThread']&&!_0x5b30a2['commentThread']['length']&&this['_updateSuggestionData'](_0x32244b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x47725f){const _0x1f15a8=_0x55a225([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x117b00=0x3d8d0df,_0xa40b46=0x3df573f^_0x117b00,_0x57cd09=window[_0x55a225([0x44,0x61,0x74,0x65])][_0x55a225([0x6e,0x6f,0x77])](),_0x2d579b=_0x47725f[_0x55a225([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46066f=new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3614f5=>{_0x2d579b[_0x55a225([0x6f,0x6e,0x63,0x65])](_0x55a225([0x72,0x65,0x61,0x64,0x79]),_0x3614f5);}),_0x2b2cc6={[_0x55a225([0x6b,0x74,0x79])]:_0x55a225([0x45,0x43]),[_0x55a225([0x75,0x73,0x65])]:_0x55a225([0x73,0x69,0x67]),[_0x55a225([0x63,0x72,0x76])]:_0x55a225([0x50,0x2d,0x32,0x35,0x36]),[_0x55a225([0x78])]:_0x55a225([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]),[_0x55a225([0x79])]:_0x55a225([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]),[_0x55a225([0x61,0x6c,0x67])]:_0x55a225([0x45,0x53,0x32,0x35,0x36])},_0x56dbfb=_0x2d579b[_0x55a225([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55a225([0x67,0x65,0x74])](_0x55a225([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56d6fc(){let _0x1c1f09,_0x4b779e=null,_0x4b2138=null;try{if(_0x56dbfb==_0x55a225([0x47,0x50,0x4c]))return _0x55a225([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c1f09=_0x5ae44b(),!_0x1c1f09)return _0x55a225([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c1f09[_0x55a225([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b2138=_0xebb5c0(_0x1c1f09[_0x55a225([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c1f09[_0x55a225([0x6a,0x74,0x69])])),await _0x916fef()?_0x508e60()?_0x116009()?_0x55a225([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ce417()?(_0x1c1f09[_0x55a225([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55a225([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b779e=_0x22acc9(_0x55a225([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4db50d()):_0x55a225([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55a225([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55a225([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x55a225([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x116009(){const _0x42974c=[_0x55a225([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55a225([0x74,0x72,0x69,0x61,0x6c])][_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c1f09[_0x55a225([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57cd09/0x3e8:0xe10*_0xa40b46;return _0x1c1f09[_0x55a225([0x65,0x78,0x70])]<_0x42974c;}function _0x508e60(){const _0x2330c4=_0x1c1f09[_0x55a225([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2330c4)return!0x1;if(_0x2330c4[_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a225([0x2a])))return!0x0;if(_0x2330c4[_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a225([0x54,0x43])))return!0x0;if(_0x2330c4[_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a225([0x52,0x54,0x43]))){if(_0x19c440())return!0x0;if(_0x5083df()||_0x235b51())return!0x0;}return!0x1;}function _0x1ce417(){const _0x7a9406=_0x1c1f09[_0x55a225([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7a9406||0x0==_0x7a9406[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fa352}=new URL(window[_0x55a225([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7a9406[_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fa352))return!0x0;const _0x3c38f4=_0x3fa352[_0x55a225([0x73,0x70,0x6c,0x69,0x74])](_0x55a225([0x2e]));return _0x7a9406[_0x55a225([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e2fd7=>_0x1e2fd7[_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a225([0x2a])))[_0x55a225([0x6d,0x61,0x70])](_0x152bf4=>_0x152bf4[_0x55a225([0x73,0x70,0x6c,0x69,0x74])](_0x55a225([0x2e])))[_0x55a225([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4997ca=>_0x4997ca[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c38f4[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55a225([0x6d,0x61,0x70])](_0x5314cb=>Array(_0x3c38f4[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5314cb[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55a225([0x66,0x69,0x6c,0x6c])](_0x5314cb[0x0]===_0x55a225([0x2a])?_0x55a225([0x2a]):'')[_0x55a225([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5314cb))[_0x55a225([0x73,0x6f,0x6d,0x65])](_0x2feedc=>_0x3c38f4[_0x55a225([0x65,0x76,0x65,0x72,0x79])]((_0x515ea6,_0x1d5402)=>_0x2feedc[_0x1d5402]===_0x515ea6||_0x2feedc[_0x1d5402]===_0x55a225([0x2a])));}function _0x4db50d(){return _0x4b779e&&_0x4b2138?new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e6fda,_0x1156ee)=>{_0x4b779e[_0x55a225([0x74,0x68,0x65,0x6e])](_0x5e6fda,_0x1156ee),_0x4b2138[_0x55a225([0x74,0x68,0x65,0x6e])](_0x3abd2f=>{_0x3abd2f!=_0x55a225([0x56,0x61,0x6c,0x69,0x64])&&_0x5e6fda(_0x3abd2f);},_0x1156ee);}):_0x4b779e||_0x4b2138||_0x55a225([0x56,0x61,0x6c,0x69,0x64]);}}function _0xebb5c0(_0x2aacf5,_0x3e5a57){return new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ebfb6=>{if(_0x5dcd3b())return _0x2ebfb6(_0x55a225([0x56,0x61,0x6c,0x69,0x64]));_0x3ab366(),_0x2d579b[_0x55a225([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55a225([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c4e63=!0x1;const _0x305720=_0x10b1ba();function _0x37a20a(_0x20326d){return!!_0x20326d&&(typeof _0x20326d===_0x55a225([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20326d===_0x55a225([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20326d[_0x55a225([0x74,0x68,0x65,0x6e])]===_0x55a225([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20326d[_0x55a225([0x63,0x61,0x74,0x63,0x68])]===_0x55a225([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x541f5c(_0x5d2e3c){_0x2e7ecd(_0x5d2e3c)[_0x55a225([0x74,0x68,0x65,0x6e])](_0x3f8dcc=>{if(!_0x3f8dcc||_0x3f8dcc[_0x55a225([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55a225([0x6f,0x6b]))return _0x55a225([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14de3c(_0x18f7db(_0x305720+_0x3e5a57))!=_0x3f8dcc[_0x55a225([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55a225([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55a225([0x56,0x61,0x6c,0x69,0x64]);})[_0x55a225([0x74,0x68,0x65,0x6e])](_0x38bc1b=>(_0x3aac20(),_0x38bc1b),()=>{const _0x562393=_0x3777bf();return null==_0x562393?(_0x3aac20(),_0x55a225([0x56,0x61,0x6c,0x69,0x64])):_0x55a225(_0x57cd09-_0x562393>(0x27d454df^_0x117b00)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55a225([0x74,0x68,0x65,0x6e])](_0x2ebfb6)[_0x55a225([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ebfb6(_0x55a225([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x421e6e=0x3ee3e5f^_0x117b00;function _0x3aac20(){const _0x1a57d6=_0x55a225([0x6c,0x6c,0x63,0x74,0x2d])+_0x14de3c(_0x18f7db(_0x2aacf5)),_0x5a090b=_0x5ae26a(_0x14de3c(window[_0x55a225([0x4d,0x61,0x74,0x68])][_0x55a225([0x63,0x65,0x69,0x6c])](_0x57cd09/_0x421e6e)));window[_0x55a225([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55a225([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a57d6,_0x5a090b);}function _0x3777bf(){const _0x39e474=_0x55a225([0x6c,0x6c,0x63,0x74,0x2d])+_0x14de3c(_0x18f7db(_0x2aacf5)),_0x18d791=window[_0x55a225([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55a225([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39e474);return _0x18d791?window[_0x55a225([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ae26a(_0x18d791),0x10)*_0x421e6e:null;}function _0x2e7ecd(_0x4f54a5){return new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x327ba4,_0x536afa)=>{_0x4f54a5[_0x55a225([0x74,0x68,0x65,0x6e])](_0x327ba4,_0x536afa),window[_0x55a225([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x536afa,0x3d9041f^_0x117b00);});}}_0x2d579b[_0x55a225([0x6f,0x6e])](_0x55a225([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f815b,_0xc19bc3)=>{if(_0xc19bc3[0x0]!=_0x2aacf5)return _0x2ebfb6(_0x55a225([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc19bc3[0x1]={..._0xc19bc3[0x1],[_0x55a225([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x305720};},{[_0x55a225([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55a225([0x68,0x69,0x67,0x68])}),_0x2d579b[_0x55a225([0x6f,0x6e])](_0x55a225([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34e324=>{_0x37a20a(_0x34e324[_0x55a225([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c4e63=!0x0,_0x541f5c(_0x34e324[_0x55a225([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55a225([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55a225([0x6c,0x6f,0x77])}),_0x46066f[_0x55a225([0x74,0x68,0x65,0x6e])](()=>{_0x2c4e63||_0x2ebfb6(_0x55a225([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5dcd3b(){return _0x2d579b[_0x55a225([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55a225([0x76,0x69,0x65,0x77])][_0x55a225([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55a225([0x61,0x75,0x74,0x6f]);}function _0x3ab366(){_0x2d579b[_0x55a225([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55a225([0x76,0x69,0x65,0x77])][_0x55a225([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55a225([0x61,0x75,0x74,0x6f]);}}function _0x22acc9(_0x386eb5){const _0x489a35=[new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e50e3=>setTimeout(_0x1e50e3,0x3d1ee13^_0x117b00)),_0x46066f[_0x55a225([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17912b=>{let _0x4260b2=0x0;_0x2d579b[_0x55a225([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a225([0x6f,0x6e])](_0x55a225([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a2efe,_0x5144ab)=>{_0x5144ab[0x0][_0x55a225([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4260b2++,_0x4260b2==(0x3d8d537^_0x117b00)&&(_0x17912b(),_0x4a2efe[_0x55a225([0x6f,0x66,0x66])]());});}))];return window[_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55a225([0x72,0x61,0x63,0x65])](_0x489a35)[_0x55a225([0x74,0x68,0x65,0x6e])](()=>_0x386eb5);}async function _0x512033(){await _0x46066f,_0x2d579b[_0x55a225([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a225([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50663b,_0x2d579b[_0x55a225([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a225([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50663b,_0x2d579b[_0x55a225([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55a225([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19c440(){return _0x46a9cb(_0x55a225([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x33cb9b(_0x55a225([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x55a225([0x73,0x74,0x61,0x74,0x65])]==_0x55a225([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5083df(){return _0x46a9cb(_0x55a225([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 _0x235b51(){return _0x46a9cb(_0x55a225([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x25efe1(_0x1b9a5f){const _0x2aff83=_0x99c9a0();_0x2d579b[_0x2aff83]=_0x55a225([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b9a5f,_0x1b9a5f!=_0x55a225([0x56,0x61,0x6c,0x69,0x64])&&_0x512033();}function _0x99c9a0(){const _0x5b1385=window[_0x55a225([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55a225([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55a225([0x6e,0x6f,0x77])]())[_0x55a225([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55a225([0x2e]),'');let _0x119164=_0x55a225([0x52]);for(let _0x3c8c8a=0x0;_0x3c8c8a<_0x5b1385[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c8c8a+=0x2){let _0x2ce856=window[_0x55a225([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b1385[_0x55a225([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c8c8a,_0x3c8c8a+0x2));_0x2ce856>=_0x1f15a8[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ce856-=_0x1f15a8[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x119164+=_0x1f15a8[_0x2ce856];}return _0x119164;}function _0x5ae44b(){const _0x5899dd=_0x56dbfb[_0x55a225([0x73,0x70,0x6c,0x69,0x74])](_0x55a225([0x2e]));if(0x3!=_0x5899dd[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a9a22(_0x5899dd[0x1]);function _0x1a9a22(_0xf9f34b){const _0x5a6485=_0x344208(_0xf9f34b);return _0x5a6485&&_0x440b99()?_0x5a6485:null;function _0x440b99(){const _0x41b3cc=_0x5a6485[_0x55a225([0x6a,0x74,0x69])],_0x5b7d43=window[_0x55a225([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41b3cc[_0x55a225([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41b3cc[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf63514={..._0x5a6485,[_0x55a225([0x6a,0x74,0x69])]:_0x41b3cc[_0x55a225([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41b3cc[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf63514[_0x55a225([0x76,0x63])],_0x18f7db(_0xf63514)==_0x5b7d43;}}}async function _0x916fef(){let _0x23ab12=!0x0;try{const _0x527be8=_0x56dbfb[_0x55a225([0x73,0x70,0x6c,0x69,0x74])](_0x55a225([0x2e])),[_0x5b4786,_0x3d7add,_0x4a427f]=_0x527be8;return _0x567b27(_0x5b4786),await _0x42b776(_0x5b4786,_0x3d7add,_0x4a427f),_0x23ab12;}catch{return!0x1;}function _0x567b27(_0x175a95){const _0x215110=_0x344208(_0x175a95);_0x215110&&_0x215110[_0x55a225([0x61,0x6c,0x67])]==_0x55a225([0x45,0x53,0x32,0x35,0x36])||(_0x23ab12=!0x1);}async function _0x42b776(_0x1dd2fe,_0x4f9a2d,_0x4d18ac){const _0x461360=window[_0x55a225([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55a225([0x66,0x72,0x6f,0x6d])](_0x3fc025(_0x4d18ac),_0x4b94c9=>_0x4b94c9[_0x55a225([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x247022=new window[(_0x55a225([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55a225([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1dd2fe+_0x55a225([0x2e])+_0x4f9a2d),_0x2fdba5=window[_0x55a225([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55a225([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fdba5)return;const _0x41ffc7=await _0x2fdba5[_0x55a225([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55a225([0x6a,0x77,0x6b]),_0x2b2cc6,{[_0x55a225([0x6e,0x61,0x6d,0x65])]:_0x55a225([0x45,0x43,0x44,0x53,0x41]),[_0x55a225([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55a225([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55a225([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fdba5[_0x55a225([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55a225([0x6e,0x61,0x6d,0x65])]:_0x55a225([0x45,0x43,0x44,0x53,0x41]),[_0x55a225([0x68,0x61,0x73,0x68])]:{[_0x55a225([0x6e,0x61,0x6d,0x65])]:_0x55a225([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x41ffc7,_0x461360,_0x247022)||(_0x23ab12=!0x1);}}function _0x344208(_0x199e22){return _0x199e22[_0x55a225([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55a225([0x65,0x79]))?JSON[_0x55a225([0x70,0x61,0x72,0x73,0x65])](_0x3fc025(_0x199e22)):null;}function _0x3fc025(_0x490dba){return window[_0x55a225([0x61,0x74,0x6f,0x62])](_0x490dba[_0x55a225([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55a225([0x2b]))[_0x55a225([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55a225([0x2f])));}function _0x18f7db(_0x3634f6){let _0x69f3b8=0x1505;function _0x23ed19(_0x449226){for(let _0x22fee6=0x0;_0x22fee6<_0x449226[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22fee6++){const _0x5c0b1b=_0x449226[_0x55a225([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x22fee6);_0x69f3b8=(_0x69f3b8<<0x5)+_0x69f3b8+_0x5c0b1b,_0x69f3b8&=_0x69f3b8;}}function _0x531bb3(_0x364c0d){Array[_0x55a225([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x364c0d)?_0x364c0d[_0x55a225([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x531bb3):_0x364c0d&&typeof _0x364c0d==_0x55a225([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55a225([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x364c0d)[_0x55a225([0x73,0x6f,0x72,0x74])]()[_0x55a225([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc9d6d6,_0x5aeda3])=>{_0x23ed19(_0xc9d6d6),_0x531bb3(_0x5aeda3);}):_0x23ed19(window[_0x55a225([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x364c0d));}return _0x531bb3(_0x3634f6),_0x69f3b8>>>0x0;}function _0x14de3c(_0x576712){return _0x576712[_0x55a225([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55a225([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55a225([0x30]));}function _0x5ae26a(_0x4cb6e3){return _0x4cb6e3[_0x55a225([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55a225([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55a225([0x6a,0x6f,0x69,0x6e])]('');}function _0x46a9cb(_0x288f33){return _0x2d579b[_0x55a225([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55a225([0x68,0x61,0x73])](_0x288f33);}function _0x33cb9b(_0x37d55f){return _0x2d579b[_0x55a225([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55a225([0x67,0x65,0x74])](_0x37d55f);}function _0x50663b(){}function _0x55a225(_0x3f7718){return _0x3f7718['map'](_0x38faf3=>String['fromCharCode'](_0x38faf3))['join']('');}_0x25efe1(await _0x56d6fc());}(this);}set['adapter'](_0xd59ece){if(this['_adapter'])throw new _0x54f12a('track-changes-adapter-already-set',this);this['_adapter']=_0xd59ece;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ddad8=!0x1,toJSON:_0x1ef709=!0x1}={}){const _0x3f9da2=[];for(const _0x3477a8 of this['_suggestions']['values']())_0x2ddad8&&!_0x3477a8['isInContent']||_0x3f9da2['push'](_0x3477a8);return _0x1ef709?_0x3f9da2['map'](_0x449b5b=>_0x449b5b['toJSON']()):_0x3f9da2;}['getSuggestion'](_0x1cf6fa){const _0x54d64d=this['_suggestions']['get'](_0x1cf6fa);if(!_0x54d64d)throw new _0x54f12a('track-changes-suggestion-not-found',this);return _0x54d64d;}['hasSuggestion'](_0x1c0e37){return this['_suggestions']['has'](_0x1c0e37);}['addSuggestionData'](_0x47ec0f){const {authorId:_0x18d9c5,id:_0x5c4163,originalSuggestionId:_0x39f1df,attributes:_0xfe4f84}=_0x47ec0f,[_0xb57a8,_0x190013]=_0x47ec0f['type']['split'](':'),_0x746f22=this['_suggestions']['get'](_0x5c4163)||this['_createSuggestion'](_0xb57a8,_0x190013,_0x5c4163,_0x18d9c5,_0xfe4f84,_0x39f1df);if(this['_addThreadToSuggestion'](_0x746f22),this['_checkSuggestionCorrectness'](_0x746f22,_0xb57a8,_0x190013||null,_0x18d9c5),_0x746f22['createdAt']=_0x47ec0f['createdAt'],_0x746f22['_isDataLoaded']=!0x0,_0xfe4f84&&_0xfe4f84['@external']){const _0x4e2ef9=_0xfe4f84['@external'],_0x3fe085=this['_getExternalAuthor'](_0x4e2ef9['authorName']);_0x746f22['authoredAt']=_0x4e2ef9['createdAt'],_0x746f22['author']=_0x3fe085,_0x746f22['isExternal']=!0x0;}else _0x746f22['authoredAt']=_0x47ec0f['createdAt'];switch(_0x47ec0f['data']&&(_0x746f22['data']=_0x47ec0f['data']),_0x47ec0f['attributes']&&(_0x746f22['attributes']=_0x47ec0f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x746f22['_saved']=!0x0),this['_suggestionState']['get'](_0x746f22)){case'notReady':this['_suggestionState']['set'](_0x746f22,'dataReady');break;case'markerReady':_0x746f22['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x746f22])),this['_refreshSuggestionsChain'](new Set([_0x746f22])),this['_suggestionState']['set'](_0x746f22,'ready'),this['fire']('suggestionLoaded',_0x746f22)):this['_suggestionState']['set'](_0x746f22,'removed');}return _0x746f22;}['acceptSuggestion'](_0x563cf5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x76ab5 of _0x563cf5['getAllAdjacentSuggestions']())_0x76ab5['accept']();});});}['discardSuggestion'](_0x34e0d9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x24fadf of _0x34e0d9['getAllAdjacentSuggestions']())_0x24fadf['discard']();});});}['enableCommand'](_0x157931,_0x21617b){const _0x3691cf=this['editor']['commands']['get'](_0x157931);if(!_0x3691cf)throw new _0x54f12a('track-changes-command-not-found',this,{'commandName':_0x157931});if(this['_enabledCommands']['has'](_0x3691cf))throw new _0x54f12a('track-changes-enable-command-twice',this,{'commandName':_0x157931});this['_enabledCommands']['add'](_0x3691cf),_0x21617b&&_0x3691cf['on']('execute',(_0x4acdd1,_0xd80169)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xd80169['length']>0x0&&_0xd80169[_0xd80169['length']-0x1]&&_0xd80169[_0xd80169['length']-0x1]['forceDefaultExecution']?_0xd80169['pop']():(_0x4acdd1['return']=_0x21617b((..._0x5d95a2)=>_0x3691cf['execute'](..._0x5d95a2,{'forceDefaultExecution':!0x0}),..._0xd80169),_0x4acdd1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4fb84c){let _0x53627e,_0x1f77ee;const _0x2178fe=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x53627e=_0x4fb84c();}catch(_0xe3fa){_0x1f77ee=_0xe3fa;}return _0x2178fe||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1f77ee&&_0x54f12a['rethrowUnexpectedError'](_0x1f77ee,this),_0x53627e;}['markInsertion'](_0x1d0f55,_0x131e0e=null,_0x53c996={}){if(_0x1d0f55['isCollapsed'])return null;const _0xe0ab61=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x53c996['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28f967,meta:_0x591691}of this['_findSuggestions'](_0x1d0f55,'insertion'))if(_0x591691['isOwn']){if(!_0x591691['isNextTo']){if(_0x591691['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x28f967,_0x53c996))continue;return _0x28f967;}if(cn(_0x28f967,_0x53c996))return _0x28f967;this['_breakSuggestionMarker'](_0x28f967,_0x1d0f55['start'],_0x1d0f55['end']);break;}if(_0x131e0e==_0x28f967['subType']&&cn(_0x28f967,_0x53c996)){const _0x1d79c3=_0x28f967['getFirstRange']();return _0x1d79c3['start']['isEqual'](_0x1d0f55['end'])?this['_setSuggestionRange'](_0x28f967,this['_model']['createRange'](_0x1d0f55['start'],_0x1d79c3['end'])):this['_setSuggestionRange'](_0x28f967,this['_model']['createRange'](_0x1d79c3['start'],_0x1d0f55['end'])),_0x28f967;}}const _0x133c91=_0x10b1ba(),_0x194ab4=_0xe0ab61['id'],_0x13307d=_0x131e0e?'insertion:'+_0x131e0e:'insertion',_0x40ac39=this['_setSuggestionData']({'id':_0x133c91,'type':_0x13307d,'createdAt':new Date(),'authorId':_0x194ab4,'attributes':_0x53c996});return this['_addSuggestionMarker'](_0x13307d,_0x133c91,_0x194ab4,_0x1d0f55),_0x40ac39;}['markMultiRangeInsertion'](_0x387b1c,_0x3d80ff='multi',_0xea848d={}){const _0x5ad0fc=this['editor']['plugins']['get']('Users')['me'],_0x1633a0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3d80ff,'join');this['_trackingSessionId']&&(_0xea848d['trackingSessionId']=this['_trackingSessionId']);for(const _0x433700 of this['getSuggestions']())if(_0x433700['author']['id']==_0x5ad0fc['id']&&'insertion'==_0x433700['type']&&_0x433700['subType']==_0x3d80ff&&cn(_0x433700,_0xea848d)&&(_0x1633a0(_0x433700['getRanges'](),_0x387b1c)||_0x1633a0(_0x387b1c,_0x433700['getRanges']()))){for(const _0x51c2d8 of _0x387b1c)_0x433700['addRange'](_0x51c2d8);return _0x433700;}for(const {suggestion:_0x3ab5f8,meta:_0x2650ee}of this['_findSuggestions'](_0x387b1c,'insertion')){if(!_0x2650ee['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2650ee['containsRangeInObject'])continue;if(!cn(_0x3ab5f8,_0xea848d))continue;let _0x1f3dac=!0x0;for(const _0x551fe3 of _0x3ab5f8['getRanges']())for(const _0x1eb568 of _0x387b1c)if(!_0x551fe3['containsRange'](_0x1eb568)){_0x1f3dac=!0x1;break;}if(_0x1f3dac)return _0x3ab5f8;}const _0xf5b8f=_0x10b1ba(),_0x37af88=_0x5ad0fc['id'],_0x1c8a1f='insertion:'+_0x3d80ff,_0x52a2eb=this['_setSuggestionData']({'id':_0xf5b8f,'type':_0x1c8a1f,'createdAt':new Date(),'authorId':_0x37af88,'attributes':_0xea848d});for(const _0x5763d3 of _0x387b1c)this['_addSuggestionMarker'](_0x1c8a1f,_0xf5b8f,_0x37af88,_0x5763d3,bt['getMultiRangeId']());return _0x52a2eb;}['markInlineFormat'](_0x79f12d,_0xb3060b,_0x357dfc=null,_0x275ecc={}){if(_0x357dfc=_0x357dfc||Je(_0xb3060b),_0x79f12d['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x275ecc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x38a1dc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x357dfc,'accept');return this['forceDefaultExecution'](()=>_0x38a1dc([_0x79f12d],_0xb3060b,_0x275ecc)),null;}const _0x42a101=this['editor']['plugins']['get']('Users')['me'],_0x561a17=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x20c35b,meta:_0x4e51fb}of this['_findSuggestions'](_0x79f12d,'insertion'))_0x4e51fb['isOwn']&&!_0x4e51fb['isInsideObject']&&_0x561a17['push'](..._0x20c35b['getRanges']());}const _0x324761=function(_0x37c33d,_0xd9ec27){const _0x11c2c4=[];for(const _0x13072e of _0xd9ec27){const _0x333082=_0x37c33d['getIntersection'](_0x13072e);_0x333082&&_0x11c2c4['push'](_0x333082);}return _0x11c2c4;}(_0x79f12d,_0x561a17),_0x3e394e=function(_0x5d02b4,_0x318c2a){const _0x581c8b=[_0x5d02b4];for(const _0x38f03f of _0x318c2a){let _0x92d91a=0x0;for(;_0x92d91a<_0x581c8b['length'];){const _0x3613dc=_0x581c8b[_0x92d91a]['getDifference'](_0x38f03f);_0x581c8b['splice'](_0x92d91a,0x1,..._0x3613dc),_0x92d91a+=_0x3613dc['length'];}}return _0x581c8b;}(_0x79f12d,_0x561a17);_0x324761['length']&&this['_model']['change'](()=>{for(const _0xbfb38d of _0x324761){const _0x320cdf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x357dfc,'accept');this['forceDefaultExecution'](()=>_0x320cdf([_0xbfb38d],_0xb3060b,_0x275ecc));}});for(const _0x3903d5 of _0x3e394e){let _0x4b64fb=null,_0xd6c5f7=_0x3903d5['start'],_0x270bd3=_0x3903d5['end'];for(const {suggestion:_0x58252a,meta:_0x2e6a6b}of this['_findSuggestions'](_0x3903d5,'formatInline')){if(!_0x2e6a6b['isOwn'])continue;if(_0x58252a['subType']!=_0x357dfc)continue;if(!cn(_0x58252a,_0x275ecc))continue;const _0x5760a4=_0x58252a['getFirstRange']();if(_0x5760a4['containsRange'](_0x3903d5,!0x0))return null;_0xd6c5f7=_0xd6c5f7['isBefore'](_0x5760a4['start'])?_0xd6c5f7:_0x5760a4['start'],_0x270bd3=_0x270bd3['isAfter'](_0x5760a4['end'])?_0x270bd3:_0x5760a4['end'],_0x4b64fb?_0x5760a4['start']['isBefore'](_0x4b64fb['getFirstRange']()['start'])?(_0x4b64fb['removeMarkers'](),_0x4b64fb=_0x58252a):_0x58252a['removeMarkers']():_0x4b64fb=_0x58252a;}const _0x7e0918=this['_model']['createRange'](_0xd6c5f7,_0x270bd3);if(_0x4b64fb)this['_setSuggestionRange'](_0x4b64fb,_0x7e0918);else{const _0x11eccc=_0x10b1ba(),_0x32d01a=_0x42a101['id'];this['_setSuggestionData']({'id':_0x11eccc,'type':'formatInline:'+_0x357dfc,'data':_0xb3060b,'createdAt':new Date(),'authorId':_0x32d01a,'attributes':_0x275ecc}),this['_addSuggestionMarker']('formatInline:'+_0x357dfc,_0x11eccc,_0x32d01a,_0x7e0918);}}return null;}['markBlockFormat'](_0x923011,_0x3ed244,_0x3ccca4=[],_0x28e093=null,_0x3780da={}){_0x3ed244['formatGroupId']||(_0x3ed244['formatGroupId']=_0x3ed244['commandName']),_0x3ed244['multipleBlocks']=_0x923011['is']('range'),_0x28e093=_0x28e093||Je(_0x3ed244);const _0x34926e=_0x3ccca4['map'](_0x2d44d0=>rn(_0x2d44d0,this['_model'])),_0x239a96=_0x923011['is']('range')?_0x923011:rn(_0x923011,this['_model']);if(this['_trackingSessionId']&&(_0x3780da['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c0d62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28e093,'accept');return this['forceDefaultExecution'](()=>_0x2c0d62([_0x239a96],_0x3ed244,_0x3780da)),null;}_0x34926e['push'](_0x239a96);let _0x1b9061=!0x0;for(const _0xbe9b2d of _0x34926e)if(!this['_rangeIsInLocalUserInsertion'](_0xbe9b2d)){_0x1b9061=!0x1;break;}if(_0x1b9061&&'always'!==this['_trackFormatChanges']){const _0x2b1f8a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28e093,'accept');return this['forceDefaultExecution'](()=>_0x2b1f8a([_0x239a96],_0x3ed244,_0x3780da)),null;}let _0x2ae48c=null,_0x57c0d4=_0x239a96['start'],_0x19046e=_0x239a96['end'];for(const {suggestion:_0xafc5da,meta:_0x3f9308}of this['_findSuggestions'](_0x239a96,'formatBlock')){if(!_0x3f9308['isOwn'])continue;if(_0x3f9308['isNextTo']||_0x3f9308['containsRangeInObject']||_0x3f9308['isInsideObject'])continue;if(_0xafc5da['data']['formatGroupId']!=_0x3ed244['formatGroupId'])continue;if(!cn(_0xafc5da,_0x3780da))continue;const _0x502aca=_0xafc5da['getFirstRange']();if(_0xafc5da['subType']==_0x28e093){if(_0x502aca['containsRange'](_0x239a96,!0x0))return null;_0x57c0d4=_0x57c0d4['isBefore'](_0x502aca['start'])?_0x57c0d4:_0x502aca['start'],_0x19046e=_0x19046e['isAfter'](_0x502aca['end'])?_0x19046e:_0x502aca['end'],_0x2ae48c?_0x502aca['start']['isBefore'](_0x2ae48c['getFirstRange']()['start'])?(_0x2ae48c['removeMarkers'](),_0x2ae48c=_0xafc5da):_0xafc5da['removeMarkers']():_0x2ae48c=_0xafc5da;}else{const _0x367162=_0x239a96['getIntersection'](_0x502aca);this['_cutOutSuggestionMarker'](_0xafc5da,_0x367162);}}const _0x12dd90=this['editor']['plugins']['get']('Users')['me'],_0x3651b5=_0x10b1ba(),_0x2c9ea6=_0x12dd90['id'];if(_0x2ae48c)return this['_setSuggestionRange'](_0x2ae48c,this['_model']['createRange'](_0x57c0d4,_0x19046e)),_0x2ae48c;{const _0x198c35=this['_setSuggestionData']({'id':_0x3651b5,'type':'formatBlock:'+_0x28e093,'data':_0x3ed244,'createdAt':new Date(),'authorId':_0x2c9ea6,'attributes':_0x3780da});return this['_addSuggestionMarker']('formatBlock:'+_0x28e093,_0x3651b5,_0x2c9ea6,this['_model']['createRange'](_0x57c0d4,_0x19046e)),_0x198c35;}}['markMultiRangeBlockFormat'](_0x2956ff,_0x1c8be9,_0x4fca3c=[],_0x476e4d=null,_0x795c85={}){_0x1c8be9['formatGroupId']||(_0x1c8be9['formatGroupId']=_0x1c8be9['commandName']);const _0x322836=_0x2956ff[0x0];_0x1c8be9['multipleBlocks']=_0x322836['is']('range'),_0x476e4d=_0x476e4d||Je(_0x1c8be9);const _0x3bc8f3=_0x4fca3c['map'](_0x238cc5=>rn(_0x238cc5,this['_model'])),_0xa76076=_0x322836['is']('range')?_0x2956ff:_0x2956ff['map'](_0xfb766a=>rn(_0xfb766a,this['_model']));if(this['_trackingSessionId']&&(_0x795c85['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1143c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x476e4d,'accept');return this['forceDefaultExecution'](()=>_0x1143c4(_0xa76076,_0x1c8be9,_0x795c85)),null;}_0x3bc8f3['push'](..._0xa76076);let _0x3cf3ae=!0x0;for(const _0x70b11d of _0x3bc8f3)if(!this['_rangeIsInLocalUserInsertion'](_0x70b11d)){_0x3cf3ae=!0x1;break;}if(_0x3cf3ae&&'always'!==this['_trackFormatChanges']){const _0x1d2af7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x476e4d,'accept');return this['forceDefaultExecution'](()=>_0x1d2af7(_0xa76076,_0x1c8be9,_0x795c85)),null;}const _0x5d804a=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d2042 of this['getSuggestions']()){const _0x410ea5=_0x3d2042['data'];if(_0x3d2042['author']['id']!=_0x5d804a['id'])continue;if('formatBlock'!=_0x3d2042['type']||_0x410ea5['formatGroupId']!=_0x1c8be9['formatGroupId'])continue;if(!cn(_0x3d2042,_0x795c85))continue;const _0x1eaf2d=_0x3d2042['subType']==_0x476e4d;for(let _0x27b652=0x0;_0x27b652<_0xa76076['length'];_0x27b652++){const _0x39182f=_0xa76076[_0x27b652];for(const _0x3460ae of _0x3d2042['getMarkers']()){const _0xe0f4f=_0x3460ae['getRange']();if(_0x39182f['isEqual'](_0xe0f4f)){_0x1eaf2d?(_0xa76076['splice'](_0x27b652,0x1),_0x27b652--):_0x3d2042['removeMarker'](_0x3460ae['name']);break;}}}}if(0x0==_0xa76076['length'])return null;const _0x52c544=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x476e4d,'join');for(const _0x5d775b of this['getSuggestions']()){const _0x31efef=_0x5d775b['data'];if(_0x5d775b['author']['id']==_0x5d804a['id']&&('formatBlock'==_0x5d775b['type']&&_0x31efef['formatGroupId']==_0x1c8be9['formatGroupId']&&_0x5d775b['subType']==_0x476e4d&&cn(_0x5d775b,_0x795c85)&&(_0x52c544(_0x5d775b['getRanges'](),_0xa76076)||_0x52c544(_0xa76076,_0x5d775b['getRanges']())))){for(const _0x15bfcb of _0xa76076)_0x5d775b['addRange'](_0x15bfcb);return _0x5d775b;}}const _0x3bb978=_0x10b1ba(),_0x5744a1=_0x5d804a['id'],_0xaa0675='formatBlock:'+_0x476e4d,_0x481cc1=this['_setSuggestionData']({'id':_0x3bb978,'type':_0xaa0675,'data':_0x1c8be9,'createdAt':new Date(),'authorId':_0x5744a1,'attributes':_0x795c85});for(const _0x111fd3 of _0xa76076)this['_addSuggestionMarker'](_0xaa0675,_0x3bb978,_0x5744a1,_0x111fd3,bt['getMultiRangeId']());return _0x481cc1;}['markDeletion'](_0x1d911c,_0x4ca45d=null,_0x278985={}){if(_0x1d911c['isCollapsed'])return null;const _0x4c76ec=this['editor']['plugins']['get']('Users')['me'],_0x3698e7=new _0x82a6d2(_0x1d911c['start'],_0x1d911c['end']);this['_trackingSessionId']&&(_0x278985['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xdc4479,meta:_0x18bd32}of this['_findSuggestions'](_0x3698e7,'insertion'))if(_0x18bd32['isOwn']&&!_0x18bd32['isNextTo']){if(_0xdc4479['isMultiRange']){const _0x5894b3=_0xdc4479['getRanges']()['filter'](_0x15d583=>'$graveyard'!=_0x15d583['root']['rootName']);_0x5894b3['every'](_0x8f5429=>_0x3698e7['containsRange'](_0x8f5429,!0x0))&&_0xdc4479['discard']();if(_0x5894b3['some'](_0x30de5e=>_0x30de5e['containsRange'](_0x3698e7,!0x0))){const _0x1bb87c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ca45d,'accept');return this['forceDefaultExecution'](()=>_0x1bb87c([_0x3698e7],null,_0x278985)),null;}}else{const _0x5c574e=_0x3698e7['getIntersection'](_0xdc4479['getFirstRange']());null!==_0x5c574e&&_0xdc4479['_onDiscard']([_0x5c574e],null,_0x278985);}}if(_0x3698e7['detach'](),_0x3698e7['isCollapsed']||'$graveyard'==_0x3698e7['root']['rootName'])return null;let _0x39ef0e=null,_0x5250d3=_0x3698e7['start'],_0x17a156=_0x3698e7['end'];const _0x46dac9=this['_findSuggestions'](_0x3698e7,'deletion');for(const {suggestion:_0x3e7d5e,meta:_0x526d52}of _0x46dac9){const _0x11f646=this['_model']['createRange'](_0x5250d3,_0x17a156);if(_0x526d52['isOwn']&&(this['_mergeNestedSuggestions']||!_0x526d52['containsRangeInObject']&&!_0x526d52['isInsideObject'])){if(_0x3e7d5e['isMultiRange']){if(!cn(_0x3e7d5e,_0x278985))continue;let _0x492996=!0x0;for(const _0x26a29f of _0x3e7d5e['getRanges']()){if(_0x26a29f['containsRange'](_0x11f646,!0x0))return _0x3e7d5e;_0x11f646['containsRange'](_0x26a29f)||(_0x492996=!0x1);}_0x492996&&_0x3e7d5e['discard']();}else{const _0x207954=_0x3e7d5e['getFirstRange']();if(_0x207954['containsRange'](_0x11f646,!0x0))return _0x3e7d5e;if(!cn(_0x3e7d5e,_0x278985)){_0x11f646['containsRange'](_0x207954)?_0x3e7d5e['removeMarkers']():_0x207954['containsPosition'](_0x5250d3)?_0x5250d3=_0x207954['end']:_0x207954['containsPosition'](_0x17a156)&&(_0x17a156=_0x207954['start']);continue;}_0x5250d3=_0x5250d3['isBefore'](_0x207954['start'])?_0x5250d3:_0x207954['start'],_0x17a156=_0x17a156['isAfter'](_0x207954['end'])?_0x17a156:_0x207954['end'],_0x278985=Object['assign']({},_0x3e7d5e['attributes']),_0x39ef0e?_0x207954['start']['isBefore'](_0x39ef0e['getFirstRange']()['start'])?(_0x39ef0e['removeMarkers'](),_0x39ef0e=_0x3e7d5e):_0x3e7d5e['removeMarkers']():_0x39ef0e=_0x3e7d5e;}}}if(_0x39ef0e)return this['_setSuggestionRange'](_0x39ef0e,this['_model']['createRange'](_0x5250d3,_0x17a156)),_0x39ef0e;{const _0x1f01a2=_0x10b1ba(),_0x34973b=this['_model']['createRange'](_0x5250d3,_0x17a156),_0x29c38d=_0x4c76ec['id'],_0x441181=_0x4ca45d?'deletion:'+_0x4ca45d:'deletion',_0x1e3818=this['_setSuggestionData']({'id':_0x1f01a2,'type':_0x441181,'createdAt':new Date(),'authorId':_0x29c38d,'attributes':_0x278985});return this['_addSuggestionMarker'](_0x441181,_0x1f01a2,_0x29c38d,_0x34973b),_0x1e3818;}}['markMultiRangeDeletion'](_0x29d413,_0x46368c='multi',_0x119d26={}){const _0x1acc7a=this['editor']['plugins']['get']('Users')['me'],_0x1b2acc=_0x29d413['map'](_0xf4b0b0=>new _0x82a6d2(_0xf4b0b0['start'],_0xf4b0b0['end'])),_0x245f0a=new Set();this['_trackingSessionId']&&(_0x119d26['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x203edb,meta:_0x5f3ebc}of this['_findSuggestions'](_0x1b2acc,'insertion'))_0x5f3ebc['isOwn']&&!_0x5f3ebc['isNextTo']&&_0x245f0a['add'](_0x203edb);for(const _0x1a9e3a of _0x245f0a)if(_0x1a9e3a['isMultiRange']){const _0x289206=_0x1a9e3a['getRanges']();(!_0x1a9e3a['attributes']||!_0x1a9e3a['attributes']['skipNestingCheck'])&&(_0x289206['every'](_0x3fe6fc=>_0x1b2acc['some'](_0x5e033f=>_0x5e033f['containsRange'](_0x3fe6fc,!0x0)))&&_0x1a9e3a['discard']());if(_0x1b2acc['every'](_0x199aca=>_0x289206['some'](_0x7a089b=>_0x7a089b['containsRange'](_0x199aca,!0x0)))){const _0x17e669=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46368c,'accept');return this['forceDefaultExecution'](()=>_0x17e669(_0x29d413,null,_0x119d26)),null;}}else{const _0x3b7afb=_0x1a9e3a['getFirstRange']();_0x1b2acc['some'](_0x54a6cc=>_0x54a6cc['containsRange'](_0x3b7afb,!0x0))&&_0x1a9e3a['discard']();if(_0x1b2acc['every'](_0x512fbe=>_0x3b7afb['containsRange'](_0x512fbe,!0x0))){const _0x377628=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46368c,'accept');return this['forceDefaultExecution'](()=>_0x377628(_0x1b2acc,null,_0x119d26)),null;}}const _0x16f58e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46368c,'join');let _0x58ae55=null;for(const _0x59b81e of this['getSuggestions']())if(_0x59b81e['author']['id']==_0x1acc7a['id']&&_0x59b81e['isInContent']&&'deletion'==_0x59b81e['type']&&_0x59b81e['subType']==_0x46368c&&cn(_0x59b81e,_0x119d26)&&(_0x16f58e(_0x59b81e['getRanges'](),_0x1b2acc)||_0x16f58e(_0x1b2acc,_0x59b81e['getRanges']()))){if(_0x58ae55){if(_0x59b81e['commentThread']&&_0x59b81e['commentThread']['length'])continue;for(const _0x453252 of _0x59b81e['getRanges']())_0x58ae55['isIntersectingWithRange'](_0x453252)||_0x58ae55['addRange'](_0x453252);_0x59b81e['removeMarkers']();}else{_0x58ae55=_0x59b81e;for(const _0x5f4000 of _0x1b2acc)_0x59b81e['isIntersectingWithRange'](_0x5f4000)||_0x59b81e['addRange'](_0x5f4000);}}if(_0x58ae55)return _0x58ae55;_0x245f0a['clear']();for(const {suggestion:_0x58c674,meta:_0x5b63e0}of this['_findSuggestions'](_0x1b2acc,'deletion'))_0x5b63e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b63e0['containsRangeInObject']&&!_0x5b63e0['isInsideObject'])&&cn(_0x58c674,_0x119d26)&&_0x245f0a['add'](_0x58c674);for(const _0xfc5b29 of _0x245f0a){const _0x4e33a7=_0xfc5b29['getRanges']();if(!_0x119d26||!_0x119d26['skipNestingCheck']){if(_0x1b2acc['every'](_0x411cf1=>_0x4e33a7['some'](_0x3546b2=>_0x3546b2['containsRange'](_0x411cf1,!0x0))))return _0xfc5b29;}(!_0xfc5b29['attributes']||!_0xfc5b29['attributes']['skipNestingCheck'])&&(_0x4e33a7['every'](_0x497eb1=>_0x1b2acc['some'](_0x2a40e2=>_0x2a40e2['containsRange'](_0x497eb1,!0x0)))&&_0xfc5b29['discard']());}const _0xa88b8=_0x10b1ba(),_0x1eb170=_0x1acc7a['id'],_0x45fe45='deletion:'+_0x46368c,_0x31c8f3=this['_setSuggestionData']({'id':_0xa88b8,'type':_0x45fe45,'createdAt':new Date(),'authorId':_0x1eb170,'attributes':_0x119d26});for(const _0x523e0c of _0x1b2acc)_0x523e0c['detach'](),_0x523e0c['isCollapsed']||'$graveyard'==_0x523e0c['root']['rootName']||this['_addSuggestionMarker'](_0x45fe45,_0xa88b8,_0x1eb170,_0x523e0c,bt['getMultiRangeId']());return _0x31c8f3;}['markAttributeChange'](_0x572a54,_0x31362f,_0x18c630,_0x1ce18b,_0x4d0e8c){if(_0x572a54['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x15c655=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e54f0=Array['from'](this['_suggestions']['values']())['filter'](_0x427b86=>'attribute'==_0x427b86['type']&&_0x427b86['data']['key']==_0x31362f&&_0x427b86['isIntersectingWithRange'](_0x572a54));if(this['_trackingSessionId']&&(_0x4d0e8c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x15b341=this['_findSuggestions'](_0x572a54,'insertion')['filter'](({meta:_0x53aa6c})=>_0x53aa6c['isOwn']&&!_0x53aa6c['isInsideObject']&&!_0x53aa6c['isNextTo'])['map'](({suggestion:_0x5be3ac})=>_0x5be3ac);_0x1e54f0['unshift'](..._0x15b341);}const _0x30543c=new Map([[_0x572a54,_0x18c630]]);for(const _0x5e6ec4 of _0x1e54f0){const _0x3bb445='attribute'==_0x5e6ec4['type']?_0x5e6ec4['data']['oldValue']:void 0x0,_0x4c4ed7=_0x5e6ec4['getFirstRange'](),_0x113495=Array['from'](_0x30543c['keys']())['find'](_0x56dc31=>_0x56dc31['isIntersecting'](_0x4c4ed7));if(!_0x113495)continue;const _0x3412ff=_0x113495['getDifference'](_0x4c4ed7);this['_suggestionsConversion']['isBlockAttribute'](_0x31362f)&&'insertion'==_0x5e6ec4['type']&&0x0!=_0x3412ff['length']||(_0x30543c['delete'](_0x113495),_0x3412ff['forEach'](_0x2f5771=>{_0x30543c['set'](_0x2f5771,_0x18c630);}),'insertion'!=_0x5e6ec4['type']&&_0x3bb445!=_0x1ce18b&&_0x30543c['set'](_0x113495['getIntersection'](_0x4c4ed7),_0x3bb445));}const _0x574244=[];for(const [_0x5e88c6,_0x2712f0]of _0x30543c){const _0x4d30c0=_0x10b1ba(),_0x14da61={'key':_0x31362f,'oldValue':_0x2712f0,'newValue':_0x1ce18b};_0x31362f['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':_0x31362f});const _0x32a885=('attribute:'+(_0x31362f+'|'+Je({'newValue':_0x1ce18b})))['substring'](0x0,0x3c),_0x184202=this['_setSuggestionData']({'id':_0x4d30c0,'type':_0x32a885,'data':_0x14da61,'createdAt':new Date(),'authorId':_0x15c655,'attributes':_0x4d0e8c});_0x574244['push'](_0x184202),this['_addSuggestionMarker'](_0x32a885,_0x4d30c0,_0x15c655,_0x5e88c6);}return _0x574244;}['enableDefaultAttributesIntegration'](_0x21faab){this['enableCommand'](_0x21faab,(_0x188a59,..._0x3374e9)=>{this['recordAttributeChanges'](()=>{_0x188a59(..._0x3374e9);});});}['startTrackingSession'](_0x5c44bf){return this['_trackingSessionId']=void 0x0!==_0x5c44bf?_0x5c44bf:_0x10b1ba(),this['_trackingSessionId'];}['_getAttributeKey'](_0xf594ff){return'attribute'==_0xf594ff['type']?un(_0xf594ff['subType']):null;}['_applyOperationsAsSuggestions'](_0x453489){if(0x0==_0x453489['length'])return;const _0x1542c9=this['editor'],_0x216435=_0x1542c9['plugins']['get'](_0x42784c),_0x120602=[];_0x1542c9['model']['change'](_0x360532=>{for(let _0x204501=0x0;_0x204501<_0x453489['length'];_0x204501++){const _0x42eee3=_0x453489[_0x204501];if(_0x42eee3['baseVersion']=_0x1542c9['model']['document']['version'],_0x42eee3['isDocumentOperation']=!0x0,_0x216435['isMarkedRemoveOperation'](_0x42eee3)){const _0xefa544=_0x39a147(_0x42eee3['newRange'],_0x1542c9['model']);_0x120602['unshift'](_0x82a6d2['fromRange'](_0xefa544));}else switch(_0x42eee3['type']){case'rename':{const _0x54e7c1=_0x42eee3['oldName'],_0x14bda1=_0x42eee3['newName'];if(_0x54e7c1==_0x14bda1)break;_0x360532['batch']['addOperation'](_0x42eee3),_0x1542c9['model']['applyOperation'](_0x42eee3);const _0xa615a8='$elementName',_0x3c2c14=_0x42eee3['position'],_0x45b359=_0x1542c9['model']['createRange'](_0x3c2c14,_0x1542c9['model']['createPositionAt'](_0x3c2c14['nodeAfter'],'end'));this['markAttributeChange'](_0x45b359,_0xa615a8,_0x54e7c1,_0x14bda1,{'groupId':_0x10b1ba()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x562f2f=_0x42eee3['oldValue'],_0x32c7f4=_0x42eee3['newValue'];if(_0x562f2f==_0x32c7f4)break;_0x360532['batch']['addOperation'](_0x42eee3),_0x1542c9['model']['applyOperation'](_0x42eee3);const _0x50a304=_0x42eee3['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x50a304))break;const _0x1f49af=_0x39a147(_0x42eee3['range'],_0x1542c9['model']);this['markAttributeChange'](_0x1f49af,_0x50a304,_0x562f2f,_0x32c7f4,{'groupId':_0x10b1ba()});break;}case'insert':{_0x360532['batch']['addOperation'](_0x42eee3),_0x1542c9['model']['applyOperation'](_0x42eee3);if(_0x453489[_0x204501+0x1]&&'move'==_0x453489[_0x204501+0x1]['type'])break;const _0x353e65=_0x42eee3['position'],_0x5e9645=_0x42eee3['howMany'],_0x5744c5=_0x39a147(_0x1542c9['model']['createRange'](_0x353e65,_0x353e65['getShiftedBy'](_0x5e9645)),_0x1542c9['model']);this['markInsertion'](_0x5744c5);break;}case'split':{_0x360532['batch']['addOperation'](_0x42eee3),_0x1542c9['model']['applyOperation'](_0x42eee3);const _0x112afc=_0x42eee3['splitPosition'],_0x34ee84=_0x42eee3['moveTargetPosition'];this['markInsertion'](_0x1542c9['model']['createRange'](_0x112afc,_0x34ee84));break;}case'move':case'remove':_0x360532['batch']['addOperation'](_0x42eee3),_0x1542c9['model']['applyOperation'](_0x42eee3);}}for(const _0x3b9800 of _0x120602)_0x3b9800['detach'](),this['markDeletion'](_0x3b9800);});}['_setSuggestionRange'](_0x1b07b3,_0xcaa203){const _0x2b3aa1=_0x1b07b3['getFirstMarker']();this['_model']['change'](_0x4047c0=>{_0x4047c0['updateMarker'](_0x2b3aa1,{'range':_0xcaa203});});}['_addThreadToSuggestion'](_0x24ffd1){const _0x537a9a=_0x24ffd1['id'],_0x1e8e1c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x537a9a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1e8e1c,'threadId':_0x537a9a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x449c85=this['_commentsRepository']['getCommentThread'](_0x537a9a);_0x449c85['unbind']('isRemovable'),_0x449c85['isRemovable']=!0x1,_0x24ffd1['commentThread']=_0x449c85;}['_checkSuggestionCorrectness'](_0x2491a7,_0x23ea3e,_0x1fdcd2,_0x4d909d){if(_0x2491a7['type']!=_0x23ea3e||_0x2491a7['subType']!=_0x1fdcd2||_0x2491a7['creator']['id']!=_0x4d909d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x54f12a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xa41518,_0x199cf1){const _0x1f016b=_0xa41518['getFirstRange']();if(_0x199cf1['isEqual'](_0x1f016b))_0xa41518['removeMarkers']();else{if(_0x1f016b['containsRange'](_0x199cf1)){const _0x44f2f5=this['_model']['createPositionAt'](_0x199cf1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa41518,this['_model']['createRange'](_0x1f016b['start'],_0x44f2f5));const _0xd74665=_0x10b1ba(),_0x2a2c56=_0xa41518['creator']['id'],_0x52c21b=_0xa41518['type']+':'+_0xa41518['subType'];this['_setSuggestionData']({'id':_0xd74665,'type':_0x52c21b,'createdAt':new Date(),'authorId':_0x2a2c56,'data':_0xa41518['data'],'attributes':_0xa41518['attributes']});const _0x4bcf28=this['_model']['createPositionAt'](_0x199cf1['end']['parent'],'after'),_0x176ded=this['_model']['createRange'](_0x4bcf28,_0x1f016b['end']);this['_addSuggestionMarker'](_0x52c21b,_0xd74665,_0x2a2c56,_0x176ded);}else{if(_0x1f016b['containsPosition'](_0x199cf1['start'])){const _0x4a3405=this['_model']['createPositionAt'](_0x199cf1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa41518,this['_model']['createRange'](_0x1f016b['start'],_0x4a3405));}else{const _0x3847e3=this['_model']['createPositionAt'](_0x199cf1['end']['parent'],'after');this['_setSuggestionRange'](_0xa41518,this['_model']['createRange'](_0x3847e3,_0x1f016b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x17b034){for(const {suggestion:_0x4dbae0,meta:_0x344d36}of this['_findSuggestions'](_0x17b034,'insertion')){if(!_0x344d36['isOwn'])continue;const _0x4bf923=_0x4dbae0['getRanges']();for(const _0x2e5c17 of _0x4bf923)if(!_0x17b034['getDifference'](_0x2e5c17)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x10092d){return this['editor']['plugins']['get']('Users')['getUser'](_0x10092d);}['_getExternalAuthor'](_0x305077){const _0x49ebf7=this['editor']['plugins']['get']('Users'),_0x5449c7=_0x308fea('external:'+_0x305077),_0x29b83=_0x49ebf7['getUser'](_0x5449c7);return _0x29b83||_0x49ebf7['addUser']({'id':_0x5449c7,'name':_0x305077});}['_createSuggestion'](_0x2ffe5c,_0x2bc8b9,_0x56fc39,_0x1c4946,_0x57fb4b,_0x3109e7){const _0x1d7871=this['_getAuthorFromId'](_0x1c4946);if(!_0x1d7871)throw new _0x54f12a('track-changes-user-not-found',this,{'authorId':_0x1c4946,'suggestionId':_0x56fc39});const _0x67fd38=this['_suggestionFactory']['buildSuggestion'](_0x2ffe5c,_0x2bc8b9,_0x56fc39,_0x1d7871,_0x57fb4b,_0x559905=>{this['_updateSuggestionData'](_0x56fc39,{'attributes':_0x559905});const _0xb4107b=this['getSuggestion'](_0x56fc39);this['_joinWithAdjacentSuggestions'](new Set([_0xb4107b])),this['_refreshSuggestionsChain'](new Set([_0xb4107b]));},_0x3109e7);return this['listenTo'](_0x67fd38,'accept',()=>{this['_updateSuggestionData'](_0x56fc39,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x67fd38,'discard',()=>{this['_updateSuggestionData'](_0x56fc39,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x56fc39,_0x67fd38),this['_suggestionState']['set'](_0x67fd38,'notReady'),_0x67fd38;}['_breakSuggestionMarker'](_0xa478d9,_0x44db38,_0x2915be){const _0xd448a7=_0xa478d9['getFirstRange'](),_0x3ab190=_0xd448a7['start'],_0x388c2c=_0xd448a7['end'];this['_setSuggestionRange'](_0xa478d9,this['_model']['createRange'](_0x3ab190,_0x44db38));const _0x52a08d=_0x10b1ba(),_0x33da83=_0xa478d9['creator']['id'],_0x5115b1=_0xa478d9['type']+(_0xa478d9['subType']?':'+_0xa478d9['subType']:'');this['_setSuggestionData']({'id':_0x52a08d,'type':_0x5115b1,'createdAt':new Date(),'authorId':_0x33da83,'originalSuggestionId':_0xa478d9['_originalSuggestionId']||_0xa478d9['id'],'attributes':_0xa478d9['attributes'],'data':_0xa478d9['data']});const _0x18954c=this['_getAttributeKey'](_0xa478d9);('formatBlock'==_0xa478d9['type']||_0x18954c&&this['_suggestionsConversion']['isBlockAttribute'](_0x18954c))&&(_0x2915be=this['_model']['createPositionBefore'](_0x2915be['parent'])),this['_addSuggestionMarker'](_0x5115b1,_0x52a08d,_0x33da83,this['_model']['createRange'](_0x2915be,_0x388c2c));}['_findSuggestions'](_0x4ce68d,_0x234d10=null){const _0xc23867=[],_0x155f86=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4ce68d)||(_0x4ce68d=[_0x4ce68d]);for(const _0x1fa67a of this['getSuggestions']()){if(!_0x1fa67a['isInContent'])continue;if(_0x234d10&&_0x1fa67a['type']!=_0x234d10)continue;let _0x26c867=!0x1;for(const _0x143d71 of _0x1fa67a['getRanges']()){for(const _0x4f7050 of _0x4ce68d){const _0x38a476=_0x4f7050['start']['isEqual'](_0x143d71['end'])||_0x4f7050['end']['isEqual'](_0x143d71['start']);if(_0x38a476||_0x4f7050['getIntersection'](_0x143d71)){const _0x1ac128=_0x4f7050['containsRange'](_0x143d71)&&qe(this['_model']['schema'],_0x143d71['start'],_0x4f7050),_0x1d2499=_0x143d71['containsRange'](_0x4f7050)&&qe(this['_model']['schema'],_0x4f7050['start'],_0x143d71);_0xc23867['push']({'suggestion':_0x1fa67a,'meta':{'isOwn':_0x155f86==_0x1fa67a['author'],'isNextTo':_0x38a476,'isInsideObject':_0x1ac128,'containsRangeInObject':_0x1d2499}}),_0x26c867=!0x0;break;}}if(_0x26c867)break;}}return _0xc23867;}['_addSuggestionMarker'](_0x16748c,_0x1ae72b,_0x17e0c6,_0x3e1b28,_0x41bb1f){this['_model']['change'](_0x4d1c9c=>{let _0xaef928='suggestion:'+_0x16748c+':'+_0x1ae72b+':'+_0x17e0c6;_0x41bb1f&&(_0xaef928=_0xaef928+':'+_0x41bb1f),_0x4d1c9c['addMarker'](_0xaef928,{'range':_0x3e1b28,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x531893){const _0x3b2074=_0x531893['previous'],_0x1fd3ad=_0x531893['next'];_0x531893['previous']=null,_0x531893['next']=null,null!=_0x3b2074&&_0x3b2074['next']==_0x531893&&(_0x3b2074['next']=_0x1fd3ad),null!=_0x1fd3ad&&_0x1fd3ad['previous']==_0x531893&&(_0x1fd3ad['previous']=_0x3b2074),'ready'==this['_suggestionState']['get'](_0x531893)&&(this['_suggestionState']['set'](_0x531893,'removed'),this['fire']('suggestionUnloaded',_0x531893,_0x3b2074,_0x1fd3ad));}['_setSuggestionData'](_0x5274e1){const _0x53106d=_0x5274e1['id'],_0x42da15=this['addSuggestionData'](_0x5274e1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x453fe0=this['editor']['plugins']['get']('PendingActions'),_0x37d91f=_0x42da15['hasComments'],_0x239495=_0x42da15['subType']?_0x42da15['type']+':'+_0x42da15['subType']:_0x42da15['type'],_0x59ea38=this['editor']['locale'],_0x3c70ae=_0x453fe0['add'](At(_0x59ea38,'PENDING_ACTION_SUGGESTION')),_0xda2ee8={'id':_0x53106d,'type':_0x239495,'hasComments':_0x37d91f,'data':_0x5274e1['data']||null,'originalSuggestionId':_0x5274e1['originalSuggestionId']||null,'attributes':_0x42da15['attributes']};this['_adapter']['addSuggestion'](_0xda2ee8)['then'](_0x4b4fe8=>{_0x42da15['_saved']=!0x0,_0x453fe0['remove'](_0x3c70ae),_0x4b4fe8&&_0x4b4fe8['createdAt']&&(this['_suggestions']['get'](_0x53106d)['createdAt']=_0x4b4fe8['createdAt']);})['catch'](_0x67e8f1=>{throw _0x5d3e28('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x42da15['discard']();}),_0x42da15['stopListening'](),this['_suggestions']['delete'](_0x42da15['id']),this['_suggestionState']['delete'](_0x42da15),_0x67e8f1;});}return _0x42da15;}['_updateSuggestionData'](_0x571dad,_0x55d2c8){const _0x5a5c39=this['editor']['plugins']['get']('PendingActions'),_0x34b755=this['getSuggestion'](_0x571dad);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x34b755['_saved']){const _0x5e4ba4=_0x5a5c39['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x571dad,_0x55d2c8)['then'](()=>{_0x5a5c39['remove'](_0x5e4ba4);});}else _0x34b755['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x571dad,_0x55d2c8);});}}['_getSuggestionData'](_0x4c0900){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x54f12a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4c0900);}['_handleNewSuggestionMarker'](_0x12dd0d){const {id:_0x28dc24,type:_0x24216a,subType:_0x562804,authorId:_0x314820}=_0x269eaf(_0x12dd0d),_0x8c4bc2=this['_suggestions']['get'](_0x28dc24)||this['_createSuggestion'](_0x24216a,_0x562804,_0x28dc24,_0x314820,{});switch(this['_checkSuggestionCorrectness'](_0x8c4bc2,_0x24216a,_0x562804,_0x314820),this['_suggestionState']['get'](_0x8c4bc2)){case'notReady':this['_getSuggestionData'](_0x28dc24)['then'](_0x4d21da=>{let _0x2df826=Promise['resolve']();_0x4d21da['hasComments']&&(_0x2df826=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x28dc24})),_0x2df826['then'](()=>{this['addSuggestionData'](_0x4d21da)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x8c4bc2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x28dc24,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x8c4bc2,'ready'),this['fire']('suggestionLoaded',_0x8c4bc2);break;case'ready':this['fire']('suggestionChanged',_0x8c4bc2);}return _0x8c4bc2['addMarkerName'](_0x12dd0d),_0x8c4bc2;}['_refreshSuggestionsChain'](_0x5127a2){const _0x33b336=Array['from'](_0x5127a2),_0x2f95fc=_0x33b336['filter'](_0x4bb323=>'attribute'==_0x4bb323['type']);this['_refreshAttributeSuggestionsChain'](_0x2f95fc);const _0x4fbf8b=_0x33b336['filter'](_0x268580=>!_0x268580['isMultiRange']&&'attribute'!=_0x268580['type']),_0x1e1957=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1afada=>!_0x1afada['isMultiRange']&&'attribute'!=_0x1afada['type']),_0x2beef4=_0x1e1957['filter'](_0x1bd267=>!_0x5127a2['has'](_0x1bd267)),_0x4b151f=new Map(_0x1e1957['map'](_0x4618c5=>[_0x4618c5,this['_suggestionFactory']['getSuggestionCallback'](_0x4618c5['type'],_0x4618c5['subType'],'chain')])),_0x1b7016=new Map(_0x1e1957['map'](_0x3979a1=>[_0x3979a1,_0x3979a1['getFirstRange']()])),_0x5e9c27=new Set(),_0x4c5b77=new Set();for(let _0x5df850=0x0;_0x5df850<_0x4fbf8b['length'];_0x5df850++)_0x20de55(_0x4fbf8b[_0x5df850],_0x4fbf8b,_0x5df850+0x1);for(let _0x36906e=0x0;_0x36906e<_0x4fbf8b['length'];_0x36906e++)_0x20de55(_0x4fbf8b[_0x36906e],_0x2beef4,0x0);const _0x3e6966=new Set();for(let _0x28236d=0x0;_0x28236d<_0x4fbf8b['length'];_0x28236d++){const _0x4e62d1=_0x4fbf8b[_0x28236d];!_0x4c5b77['has'](_0x4e62d1)&&_0x4e62d1['previous']&&(_0x3e6966['add'](_0x4e62d1['previous']),_0x4e62d1['previous']['next']===_0x4e62d1&&(_0x4e62d1['previous']['next']=null),_0x4e62d1['previous']=null),!_0x5e9c27['has'](_0x4e62d1)&&_0x4e62d1['next']&&(_0x3e6966['add'](_0x4e62d1['next']),_0x4e62d1['next']['previous']===_0x4e62d1&&(_0x4e62d1['next']['previous']=null),_0x4e62d1['next']=null);}function _0x20de55(_0x3d53e9,_0x4a4da0,_0x101567){for(let _0x629660=_0x101567;_0x629660<_0x4a4da0['length'];_0x629660++){const _0x4e44e4=_0x543425(_0x3d53e9,_0x4a4da0[_0x629660]);_0x4e44e4&&(_0x4e44e4[0x0]['next']=_0x4e44e4[0x1],_0x4e44e4[0x1]['previous']=_0x4e44e4[0x0],_0x5e9c27['add'](_0x4e44e4[0x0]),_0x4c5b77['add'](_0x4e44e4[0x1]));}}function _0x543425(_0x7c55ce,_0x35fade){if(_0x7c55ce['author']['id']!==_0x35fade['author']['id'])return null;const _0x1cf25c=_0x4b151f['get'](_0x7c55ce)(_0x7c55ce,_0x35fade,_0x1b7016['get'](_0x7c55ce),_0x1b7016['get'](_0x35fade));if(!_0x1cf25c)return null;return _0x4b151f['get'](_0x35fade)(_0x7c55ce,_0x35fade,_0x1b7016['get'](_0x7c55ce),_0x1b7016['get'](_0x35fade))?_0x1cf25c[0x1]['commentThread']&&_0x1cf25c[0x1]['commentThread']['length']?null:_0x1cf25c:null;}_0x3e6966['size']&&this['_refreshSuggestionsChain'](_0x3e6966);}['_refreshAttributeSuggestionsChain'](_0x30f2b6){if(0x0==_0x30f2b6['length'])return;const _0x263e07=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17b37b=>'attribute'==_0x17b37b['type']&&_0x17b37b['_isDataLoaded']),_0x76b0b4=[],_0x350ea4=new Map();for(const _0x24f2f5 of _0x263e07){const _0x39a71f=_0x308fea(_0x24f2f5['attributes']);_0x350ea4['has'](_0x39a71f)||(_0x350ea4['set'](_0x39a71f,_0x76b0b4['length']),_0x76b0b4['push']([]));const _0x40b500=_0x350ea4['get'](_0x39a71f);_0x76b0b4[_0x40b500]['push'](_0x24f2f5);}!(function(){_0x76b0b4['sort']((_0x4bb245,_0x19c213)=>{const _0x17059f=_0x4bb245[0x0]['createdAt'],_0xfc550=_0x19c213[0x0]['createdAt'];return _0x17059f==_0xfc550?_0x4bb245[0x0]['attributes']['groupId']<_0x19c213[0x0]['attributes']['groupId']?-0x1:0x1:_0x17059f<_0xfc550?-0x1:0x1;});for(const _0xa70afe of _0x76b0b4)_0xa70afe['sort']((_0x5ca823,_0x2b868d)=>_0x5ca823['id']<_0x2b868d['id']?-0x1:0x1);}());for(let _0x1b0762=0x0;_0x1b0762<_0x76b0b4['length'];_0x1b0762++){if(0x0==_0x76b0b4[_0x1b0762]['length'])continue;const _0x57a281=[];for(let _0x5216aa=_0x1b0762+0x1;_0x5216aa<_0x76b0b4['length'];_0x5216aa++)0x0!=_0x76b0b4[_0x5216aa]['length']&&_0x458230(_0x76b0b4[_0x1b0762],_0x76b0b4[_0x5216aa])&&_0x57a281['push'](_0x5216aa);for(const _0x1e76e5 of _0x57a281)_0x76b0b4[_0x1b0762]=_0x76b0b4[_0x1b0762]['concat'](_0x76b0b4[_0x1e76e5]),_0x76b0b4[_0x1e76e5]=[];}for(const _0x45d5cc of _0x76b0b4)for(let _0x4a0863=0x0;_0x4a0863<_0x45d5cc['length'];_0x4a0863++){const _0x1d2580=_0x45d5cc[_0x4a0863+0x1]||null;_0x45d5cc[_0x4a0863]['next']!==_0x1d2580&&(_0x45d5cc[_0x4a0863]['next']=_0x1d2580);}for(const _0x3db2e6 of _0x76b0b4)for(let _0x3f29ee=0x0;_0x3f29ee<_0x3db2e6['length'];_0x3f29ee++){const _0x15fc9c=_0x3db2e6[_0x3f29ee-0x1]||null;_0x3db2e6[_0x3f29ee]['previous']!==_0x15fc9c&&(_0x3db2e6[_0x3f29ee]['previous']=_0x15fc9c);}function _0x458230(_0x29b2a8,_0xf46235){if(_0x29b2a8[0x0]['attributes']['groupId']!==_0xf46235[0x0]['attributes']['groupId']&&_0x29b2a8[0x0]['author']!==_0xf46235[0x0]['author'])return!0x1;if(!function(_0x4063de,_0xe13f6){if(!_0x4063de['hasComments']&&!_0xe13f6['hasComments'])return!0x0;if(_0x4063de['hasComments']&&_0xe13f6['hasComments'])return!0x1;if(_0x4063de['hasComments']&&_0xe13f6['createdAt']<_0x4063de['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe13f6['hasComments']&&_0x4063de['createdAt']<_0xe13f6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x29b2a8[0x0],_0xf46235[0x0]))return!0x1;const _0x37a902=ot(_0x29b2a8[0x0]['attributes'],['groupId','trackingSessionId']),_0x266a48=ot(_0xf46235[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x37a902,_0x266a48))return!0x1;if(_0x29b2a8[0x0]['attributes']['groupId']==_0xf46235[0x0]['attributes']['groupId'])return!0x0;if(_0x29b2a8[0x0]['attributes']['trackingSessionId']!==_0xf46235[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x29b2a8['every'](_0x1d3b75=>_0xf46235['some'](_0x1da986=>_0x1d3b75['getFirstRange']()['isEqual'](_0x1da986['getFirstRange']())))&&_0xf46235['every'](_0x547ec3=>_0x29b2a8['some'](_0x57d32a=>_0x547ec3['getFirstRange']()['isEqual'](_0x57d32a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d9f85){const _0x4f249d=Array['from'](_0x4d9f85),_0x49e3d4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x556b06=_0x49e3d4['filter'](_0x1b467a=>!_0x4d9f85['has'](_0x1b467a)),_0x546368=new Map(_0x4f249d['map'](_0x2f7e76=>[_0x2f7e76,this['_suggestionFactory']['getSuggestionCallback'](_0x2f7e76['type'],_0x2f7e76['subType'],'join')])),_0x31c0eb=new Map(_0x49e3d4['map'](_0x40b8cc=>[_0x40b8cc,_0x40b8cc['getRanges']()]));for(let _0x5ee5af=0x0;_0x5ee5af<_0x4f249d['length'];_0x5ee5af++){if(_0x4a0f1a(this,_0x4f249d[_0x5ee5af],_0x4f249d,_0x5ee5af+0x1))return!0x0;}for(let _0x59506d=0x0;_0x59506d<_0x4f249d['length'];_0x59506d++){if(_0x4a0f1a(this,_0x4f249d[_0x59506d],_0x556b06,0x0))return!0x0;}return!0x1;function _0x4a0f1a(_0x656d43,_0x10112b,_0x559894,_0x3c7bf1){for(let _0x4a7b4e=_0x3c7bf1;_0x4a7b4e<_0x559894['length'];_0x4a7b4e++){const _0x3a7003=_0x559894[_0x4a7b4e];if(_0x3a7003['type']!==_0x10112b['type']||_0x3a7003['author']['id']!==_0x10112b['author']['id']||_0x3a7003['subType']!==_0x10112b['subType'])continue;if(!an(_0x10112b,_0x3a7003))continue;if('attribute'==_0x10112b['type']&&_0x10112b['data']['oldValue']!=_0x3a7003['data']['oldValue'])continue;if('attribute'==_0x10112b['type']&&_0x656d43['_suggestionsConversion']['isBlockAttribute'](_0x10112b['data']['key']))continue;if('formatBlock'==_0x10112b['type']){const _0x14240b=_0x656d43['editor']['model'],_0x3317ed=_0x10112b['getContainedElement']();if(_0x3317ed&&(_0x14240b['schema']['isObject'](_0x3317ed)||_0x14240b['schema']['isLimit'](_0x3317ed)))continue;}const _0x1a733d=_0x546368['get'](_0x10112b),_0x3a09a3=_0x31c0eb['get'](_0x10112b),_0x15c6d7=_0x31c0eb['get'](_0x3a7003),_0x4a2474=_0x10112b['commentThread']&&_0x10112b['commentThread']['length'],_0xed2ff6=_0x3a7003['commentThread']&&_0x3a7003['commentThread']['length'];if(!_0x4a2474&&_0x1a733d(_0x15c6d7,_0x3a09a3))return _0x656d43['_joinSuggestions'](_0x3a7003,_0x10112b),_0x31c0eb['delete'](_0x10112b),!0x0;if(!_0xed2ff6&&_0x1a733d(_0x3a09a3,_0x15c6d7))return _0x656d43['_joinSuggestions'](_0x10112b,_0x3a7003),_0x31c0eb['delete'](_0x3a7003),!0x0;}return!0x1;}}['_joinSuggestions'](_0x19ac67,_0x5eafe2){if(_0x19ac67['isMultiRange']){for(const _0x463bbb of _0x5eafe2['getRanges']())_0x19ac67['addRange'](_0x463bbb);}else{const _0x5f91fc=_0x5eafe2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x19ac67,this['_model']['createRange'](_0x19ac67['getFirstRange']()['start'],_0x5f91fc));}_0x5eafe2['removeMarkers']();}['_getMarkerAnnouncementText'](_0xdd50e3,_0x13e2bb,_0x37d66d){const _0x238a50=_0xdd50e3['startsWith']('format')||_0xdd50e3['startsWith']('attribute')?'FORMATTING':_0xdd50e3['toUpperCase']();return At(this['editor']['locale'],_0x13e2bb+'_'+_0x238a50+'_SUGGESTION_ANNOUNCEMENT',_0x37d66d);}['_initAriaMarkerChangeAnnouncements'](){const _0x1ea9c0=this['editor'];if(!_0x1ea9c0['ui'])return;const {ariaLiveAnnouncer:_0x4eae71}=_0x1ea9c0['ui'];_0x20f644(this['_model'],({left:_0x52d1bc,entered:_0x3e53a3})=>{for(const _0x18cf60 of _0x52d1bc){const {group:_0x44e027,type:_0x19e308}=_0x269eaf(_0x18cf60['name']);if('suggestion'===_0x44e027){_0x4eae71['announce'](this['_getMarkerAnnouncementText'](_0x19e308,'LEAVE'));break;}}for(const _0x3a58d5 of _0x3e53a3){const {group:_0x5595ab,type:_0x353fd0}=_0x269eaf(_0x3a58d5['name']);if('suggestion'===_0x5595ab){_0x4eae71['announce'](this['_getMarkerAnnouncementText'](_0x353fd0,'ENTER',_0x1e8d39(_0x4b3ffd)));break;}}});}['_processAttributeChanges'](_0x3ad8ed){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5a4b50=this['editor'],_0x225aba=_0x5a4b50['model']['document']['differ']['getChanges']();if(0x0==_0x225aba['length'])return!0x1;const _0x57b42d=[],_0x37b328=_0x225aba['filter'](_0x286a64=>'attribute'==_0x286a64['type']),_0x303740=_0x225aba['filter'](_0x23ba3b=>'insert'==_0x23ba3b['type']&&'$text'!=_0x23ba3b['name']),_0x33e48d=_0x225aba['filter'](_0x5bcef7=>'remove'==_0x5bcef7['type']&&'$text'!=_0x5bcef7['name']);for(const _0x334ceb of _0x37b328)_0x57b42d['push']({'key':_0x334ceb['attributeKey'],'newValue':_0x334ceb['attributeNewValue'],'oldValue':_0x334ceb['attributeOldValue'],'range':sn(_0x334ceb['range'],_0x5a4b50['model'])});for(const _0x162d03 of _0x303740){const _0x1ebf09=_0x33e48d['find'](_0x50ac65=>_0x50ac65['position']['isEqual'](_0x162d03['position']));_0x1ebf09&&_0x57b42d['push']({'key':Ke,'newValue':_0x162d03['name'],'oldValue':_0x1ebf09['name'],'range':_0x5a4b50['model']['createRangeOn'](_0x162d03['position']['nodeAfter'])});}return 0x0!=_0x57b42d['length']&&this['_reduceExistingSuggestions'](_0x3ad8ed,_0x57b42d);}['_processAttributeSuggestions'](_0xe46b1){let _0x6127d8=!0x1;const _0x41bbdd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x12133d=>_0x12133d['data']['newRange']&&_0x12133d['name']['startsWith']('suggestion:attribute:'));for(const _0x4b0ddd of _0x41bbdd){const {subType:_0x1fabd7,id:_0x1df3b8}=_0x269eaf(_0x4b0ddd['name']),_0x3b490f=_0x1fabd7['split']('|')[0x0];for(const _0x5d5920 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5d5920['id']!=_0x1df3b8&&'attribute'==_0x5d5920['type']&&_0x5d5920['data']&&_0x5d5920['data']['key']==_0x3b490f&&_0x5d5920['getFirstRange']()['isIntersecting'](_0x4b0ddd['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5d5920,_0x4b0ddd['data']['newRange'],_0xe46b1),_0x6127d8=!0x0);}return _0x6127d8;}['recordAttributeChanges'](_0x551850){this['_recordAttributeSuggestions']=!0x0,_0x551850();}['_reduceExistingSuggestions'](_0x5b5e83,_0x2a83af){if(0x0==_0x2a83af['length'])return!0x1;let _0x4c65d6=!0x1;for(const _0x2b92d5 of _0x2a83af){const _0x58204e=this['_findSuggestions'](_0x2b92d5['range'],'attribute')['filter'](_0x238d13=>!_0x238d13['meta']['isNextTo'])['map'](_0x5577d3=>_0x5577d3['suggestion']),_0x10af01=_0x308fea({'newValue':_0x2b92d5['newValue']});_0x58204e['filter'](_0x144ca3=>{const [_0x130128,_0x38a2f6]=_0x144ca3['subType']['split']('|');return _0x130128==_0x2b92d5['key']&&_0x38a2f6!=_0x10af01;})['forEach'](_0x35ae0f=>{this['_reduceSuggestionAttributeRange'](_0x35ae0f,_0x2b92d5['range'],_0x5b5e83),_0x4c65d6=!0x0;});}return _0x4c65d6;}['_reduceSuggestionAttributeRange'](_0x45896a,_0x5dd422,_0x3e8f75){const _0xfab3cb=_0x45896a['getFirstRange']()['getDifference'](_0x5dd422);0x0!==_0xfab3cb['length']?0x1!==_0xfab3cb['length']?this['_breakSuggestionMarker'](_0x45896a,_0x5dd422['start'],_0x5dd422['end']):this['_setSuggestionRange'](_0x45896a,_0xfab3cb[0x0]):_0x3e8f75['removeMarker'](_0x45896a['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x213536){this['_editor']=_0x213536,this['_model']=_0x213536['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x561950,_0x2b32f2,_0x43dd0e,_0xf4c205,_0x27608e,_0x227f03,_0x2a4b4b){return new bt(this['_model'],{'type':_0x561950,'subType':_0x2b32f2,'id':_0x43dd0e,'originalSuggestionId':_0x2a4b4b,'author':_0xf4c205,'creator':_0xf4c205,'attributes':_0x27608e,'onAttributesChange':_0x227f03,'onAccept':(..._0x4d1597)=>this['getSuggestionCallback'](_0x561950,_0x2b32f2,'accept')(..._0x4d1597),'onDiscard':(..._0x13915a)=>this['getSuggestionCallback'](_0x561950,_0x2b32f2,'discard')(..._0x13915a)});}['registerCustomCallback'](_0x284921,_0x31bf13,_0x3d00c3,_0xdb37af){const _0x488149=_0x284921+':'+_0x31bf13+':'+_0x3d00c3;this['_customCallbacks']['set'](_0x488149,_0xdb37af);}['getSuggestionCallback'](_0xdb286,_0x35486e,_0xe96ac9){const _0x84d030=_0xdb286+':'+_0x35486e+':'+_0xe96ac9;return this['_customCallbacks']['get'](_0x84d030)||this['_defaultCallbacks']['get'](_0xdb286+':'+_0xe96ac9);}['_registerDefaultCallbacks'](){const _0x422f63=()=>!0x1,_0x13f2b8=_0x51c63e=>{_0x51c63e['sort']((_0x5bdfa9,_0x1409dc)=>_0x5bdfa9['start']['isBefore'](_0x1409dc['start'])?0x1:-0x1),this['_model']['change'](_0x4efc21=>{for(const _0x57aa1a of _0x51c63e){let _0x319c54;_0x319c54=_0x57aa1a['end']['isAtEnd']&&_0x57aa1a['end']['parent']==_0x57aa1a['start']['nodeAfter']?_0x4efc21['createSelection'](_0x57aa1a['start']['nodeAfter'],'on'):_0x4efc21['createSelection'](_0x57aa1a),this['_model']['deleteContent'](_0x319c54,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3cfc9d=(_0x4bfd82,_0x1b561c)=>{_0x1b561c&&this['_model']['change'](_0x3682b9=>{const {commandName:_0x2b989e,commandParams:_0x29ab33=[]}=_0x1b561c,_0x39c1cc=_0x4bfd82['map'](_0x4376e=>(Qe(_0x4376e)&&(_0x4376e=this['_model']['createRange'](_0x4376e['end'])),_0x4376e))['filter'](_0x5dcfc3=>'$graveyard'!==_0x5dcfc3['root']['rootName']);if(_0x39c1cc['length']<0x1)return;const _0x1a8845=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5c02d9=>_0x82a6d2['fromRange'](_0x5c02d9));_0x3682b9['setSelection'](_0x39c1cc);for(const _0x4c35f0 of this['_editor']['commands']['commands']())_0x4c35f0['refresh']();_0x29ab33['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2b989e,..._0x29ab33);const _0x1c6f1e=_0x1a8845['filter'](_0x458d16=>'$graveyard'!=_0x458d16['root']['rootName']);_0x1c6f1e['length']>0x0&&_0x3682b9['setSelection'](_0x1c6f1e);for(const _0x23e7d5 of _0x1a8845)_0x23e7d5['detach']();});},_0x110c85=(_0x46b4e3,_0x520212)=>0x1==_0x46b4e3['length']&&0x1==_0x520212['length']&&_0x46b4e3[0x0]['end']['isEqual'](_0x520212[0x0]['start']),_0x51d3b8=(_0x4ef694,_0x2e4064,_0x322649,_0x1eacaa)=>on(_0x4ef694,_0x2e4064,_0x322649,_0x1eacaa)?[_0x4ef694,_0x2e4064]:on(_0x2e4064,_0x4ef694,_0x1eacaa,_0x322649)?[_0x2e4064,_0x4ef694]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x422f63),this['_defaultCallbacks']['set']('insertion:discard',_0x13f2b8),this['_defaultCallbacks']['set']('insertion:join',_0x110c85),this['_defaultCallbacks']['set']('insertion:chain',_0x51d3b8),this['_defaultCallbacks']['set']('deletion:accept',_0x13f2b8),this['_defaultCallbacks']['set']('deletion:discard',_0x422f63),this['_defaultCallbacks']['set']('deletion:join',_0x110c85),this['_defaultCallbacks']['set']('deletion:chain',_0x51d3b8),this['_defaultCallbacks']['set']('formatInline:accept',_0x3cfc9d),this['_defaultCallbacks']['set']('formatInline:discard',_0x422f63),this['_defaultCallbacks']['set']('formatInline:join',_0x110c85),this['_defaultCallbacks']['set']('formatInline:chain',_0x422f63),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3cfc9d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x422f63),this['_defaultCallbacks']['set']('formatBlock:join',_0x110c85),this['_defaultCallbacks']['set']('formatBlock:chain',_0x422f63),this['_defaultCallbacks']['set']('attribute:accept',_0x422f63),this['_defaultCallbacks']['set']('attribute:discard',(_0x540e6b,_0x4733fb)=>{if(!_0x4733fb)return;const _0x3f4fd9=this['_editor']['plugins']['get'](_0x59977f);this['_model']['change'](_0x3445ab=>{if(_0x4733fb['key']==Ke)for(const _0xc3c142 of _0x540e6b){const _0x490fc6=_0xc3c142['start']['nodeAfter'],_0x4485fb=_0x4733fb['oldValue'];_0x3445ab['rename'](_0x490fc6,_0x4485fb);}else{if(_0x3f4fd9['isBlockAttribute'](_0x4733fb['key'])){for(const _0x3a81cc of _0x540e6b)void 0x0!==_0x4733fb['oldValue']?_0x3445ab['setAttribute'](_0x4733fb['key'],_0x4733fb['oldValue'],_0x3a81cc['start']['nodeAfter']):_0x3445ab['removeAttribute'](_0x4733fb['key'],_0x3a81cc['start']['nodeAfter']);}else{for(const _0x381a3c of _0x540e6b)_0x4733fb['oldValue']?_0x3445ab['setAttribute'](_0x4733fb['key'],_0x4733fb['oldValue'],_0x381a3c):_0x3445ab['removeAttribute'](_0x4733fb['key'],_0x381a3c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x110c85);}}function qe(_0x37caad,_0x21005f,_0x13d615){for(const _0x1730fa of _0x21005f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1730fa['root']==_0x1730fa)return!0x1;if(!_0x13d615['containsItem'](_0x1730fa))return!0x1;if(_0x37caad['isObject'](_0x1730fa)||_0x37caad['isLimit'](_0x1730fa))return!0x0;}return!0x1;}function Qe(_0x5c15ce){return _0x5c15ce['end']['parent']==_0x5c15ce['start']['nodeAfter']&&_0x5c15ce['end']['isAtStart'];}function Ze(_0xa396ea,_0x4ab19c,_0x5a03de,_0x831f61){const _0x5ecabc=_0x5db958=>!_0x5db958['item']['is']('$textProxy')&&!_0x831f61['isObject'](_0x5db958['item']),_0x1996d7=_0xa396ea['start']['getLastMatchingPosition'](_0x5ecabc),_0x5f064f=_0xa396ea['end']['getLastMatchingPosition'](_0x5ecabc,{'direction':'backward'});return(!_0xa396ea['start']['isEqual'](_0x1996d7)||!_0xa396ea['end']['isEqual'](_0x5f064f))&&(_0x1996d7['isBefore'](_0x5f064f)?_0x5a03de['updateMarker'](_0x4ab19c,{'range':_0x5a03de['createRange'](_0x1996d7,_0x5f064f)}):_0x5a03de['removeMarker'](_0x4ab19c),!0x0);}function Je(_0x21bdee){return _0x308fea(_0x21bdee);}function tn(_0x5b96c2){const _0x21fdbe=_0x5b96c2['start']['nodeAfter'];return _0x21fdbe&&_0x21fdbe['is']('element');}function en(_0x3165a8){return Qe(_0x3165a8)||function(_0x12f317){return _0x12f317['start']['parent']==_0x12f317['end']['nodeBefore']&&_0x12f317['start']['isAtEnd'];}(_0x3165a8);}function nn(_0x2b7389,_0xa38262){try{const _0x563204=_0x2b7389['getRange']();for(const _0x228696 of _0xa38262)if(_0x2b7389!==_0x228696&&_0x563204&&_0x563204['isIntersecting'](_0x228696['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x3ad489,_0x266e3c){return null==_0x3ad489['end']['nodeBefore']&&_0x3ad489['end']['parent']==_0x3ad489['start']['nodeAfter']?rn(_0x3ad489['start']['nodeAfter'],_0x266e3c):_0x3ad489;}function rn(_0x4429fd,_0x44e117){const _0x12a59a=_0x44e117['schema']['isObject'](_0x4429fd)||_0x44e117['schema']['isSelectable'](_0x4429fd);return _0x44e117['createRange'](_0x44e117['createPositionAt'](_0x4429fd,'before'),_0x12a59a?_0x44e117['createPositionAfter'](_0x4429fd):_0x44e117['createPositionAt'](_0x4429fd,'end'));}function on(_0x2e2592,_0x4613b7,_0x2ec354,_0x5d9c70){return!!an(_0x2e2592,_0x4613b7)&&_0x2ec354['end']['isEqual'](_0x5d9c70['start']);}function an(_0x1f168c,_0x81e15e){if(!_0x1f168c['_isDataLoaded']||!_0x81e15e['_isDataLoaded'])return!0x1;const _0x198eea=new Set(Object['keys'](_0x1f168c['attributes'])),_0x1fe4c6=new Set(Object['keys'](_0x81e15e['attributes']));if(_0x198eea['delete']('groupId'),_0x1fe4c6['delete']('groupId'),0x0==_0x198eea['size']&&0x0==_0x1fe4c6['size'])return!0x0;if(_0x198eea['size']!=_0x1fe4c6['size'])return!0x1;const _0x334255={..._0x1f168c['attributes']},_0x586d4a={..._0x81e15e['attributes']};return delete _0x334255['groupId'],delete _0x586d4a['groupId'],JSON['stringify'](_0x334255)==JSON['stringify'](_0x586d4a);}function cn(_0x4aee1a,_0x36eaaa){const _0x22f3bc=ln(_0x4aee1a['attributes']),_0x1a0ba1=ln(_0x36eaaa);if(!_0x4aee1a['_isDataLoaded'])return!0x1;for(const _0x1fc1fc of Object['keys'](_0x1a0ba1))if(!st(_0x22f3bc[_0x1fc1fc],_0x1a0ba1[_0x1fc1fc]))return!0x1;return!0x0;}function ln(_0x4a6d9e){const _0x149751=Object['assign']({},_0x4a6d9e);return delete _0x149751['skipNestingCheck'],delete _0x149751['tablePasteChainId'],_0x149751;}function un(_0x341188){return _0x341188['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
- _0x52ada8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x383db7,_0x4d43bf,_0x497a3a,_0x3c0af9){super(),this['model']=_0x4d43bf,this['view']=_0x497a3a,this['commentThreadController']=_0x3c0af9,this['_editor']=_0x383db7,this['_acceptCommand']=_0x383db7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x383db7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x43a8cb,_0x248db3)=>_0x43a8cb||_0x248db3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1bcb8f=>_0x1bcb8f&&this['_editor']['model']['canEditAt'](_0x4d43bf['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42194b=>_0x42194b&&this['_editor']['model']['canEditAt'](_0x4d43bf['getRanges']())),this['_pendingAction']=null,_0x497a3a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x497a3a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x497a3a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x497a3a,'change:isDirty',()=>{_0x497a3a['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 _0x1eb061=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1eb061);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x1fc7e3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5aefa0,_0x31b685,_0x246e20,_0x253228){super(_0x5aefa0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x352d10(_0x5aefa0,At(_0x5aefa0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x31b685['authoredAt']),this['bind']('authoredAt')['to'](_0x31b685),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',_0x31b685,'authoredAt',this,'descriptionParts',(_0x2ba1fe,_0x50a489,_0xcd9d66)=>{const _0x9aca9a=_0xcd9d66['map'](_0x4de409=>gt(_0x4de409['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2ba1fe-0x1,_0x31b685['author']['name'],_0x50a489?_0x253228['formatDateTime'](_0x50a489):'',new DOMParser()['parseFromString'](_0x9aca9a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x36f468(),this['focusTracker']=new _0x5def8c(),this['keystrokes']=new _0x8f403f(),this['focusCycler']=new _0x5d13be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x226212=>_0x226212['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x31b685,this['_localUser']=_0x246e20,this['_config']=_0x253228,_0x253228['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4475e0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1a8521}=this['_config'];this['commentsListView']=new _0x1a8521(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',_0x439c22=>_0x439c22+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x11d735,_0x1d651a)=>_0x11d735||!!_0x1d651a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x354953}=this['_config'],_0x3ac539=new _0x354953(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3a669c=_0x3ac539['commentInputView'];return _0x3ac539['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3a669c,'value',(_0x3c21f8,_0xc87592,_0x327be8)=>!!_0x327be8||_0x3c21f8&&!_0xc87592),_0x3a669c['on']('submit',(_0xc38b36,_0x2ae019)=>{this['fire']('addComment',_0x2ae019),_0x3a669c['editor']['setData']('');}),_0x3a669c['on']('cancel',()=>this['focus']()),_0x3a669c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3ac539;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x353ddd,_0x31c21d,_0x558737,_0x336c5f){super(_0x353ddd,_0x31c21d,_0x558737,_0x336c5f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3f4d58=>_0x3f4d58&&_0x3f4d58[0x0]?_0x3f4d58[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3fb0aa,_0x3507ea)=>{let _0x2f1ede='';for(const _0x2d65dd of _0x3fb0aa)_0x2f1ede+='<p>'+gt(_0x2d65dd['content'],_0x2d65dd['color'])+'</p>';return _0x3507ea?_0x2f1ede:_0x1eb79e(_0x2f1ede,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x336c5f['SuggestionView'](_0x353ddd,_0x31c21d,{'formatDateTime':_0x336c5f['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 _0x134e17=this['bindTemplate'],_0x2697ec=[this['suggestionView']];return this['commentsListView']&&_0x2697ec['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2697ec['push'](this['commentThreadInputView']),_0x2697ec['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x134e17['if']('isActive','ck-suggestion-wrapper--active'),_0x134e17['to']('type',_0x40d2bd=>'ck-suggestion-'+_0x40d2bd),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':_0x134e17['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2697ec};}['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 gn extends _0x1fc7e3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3932a5,_0x51fb77,_0xf3d6f7){super(_0x3932a5),this['_model']=_0x51fb77,this['_config']=_0xf3d6f7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x51fb77),this['acceptButton']=this['_createButton'](At(_0x3932a5,'Accept\x20suggestion'),_0x5187d2,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x3932a5,'Discard\x20suggestion'),_0x21a991,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x104b2f(_0x3932a5,_0x51fb77['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x36f468([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5def8c(),this['keystrokes']=new _0x8f403f(),this['focusCycler']=new _0x5d13be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x6d5e2d=>_0x6d5e2d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1a4de7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1a4de7['innerHTML']=this['description'],this['on']('change:description',(_0x5a5c3e,_0x4de91e,_0x125685)=>{_0x1a4de7['innerHTML']=_0x125685;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x130e9d=this['bindTemplate'],_0x153084=[{'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':_0x130e9d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x130e9d['to']('authoredAt',_0x5dab28=>this['_config']['formatDateTime'](_0x5dab28))}]}]},{'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']&&_0x153084['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':_0x153084}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1310be,_0x573f02,_0x3509da,_0x501cd2,_0x1e9c9a){const _0x527fdf=new _0x24af73(this['locale']);return _0x527fdf['set']({'label':_0x1310be,'icon':_0x573f02,'tooltip':!0x0,'tooltipPosition':_0x1e9c9a}),_0x527fdf['extendTemplate']({'attributes':{'class':_0x3509da}}),_0x527fdf['on']('execute',()=>{this['fire'](_0x501cd2,this['_model']['id']);}),_0x527fdf;}['_setupKeyboardNavigation'](){const _0x108788=this['element'];this['keystrokes']['listenTo'](_0x108788);for(const _0x2276d5 of this['focusables'])this['focusTracker']['add'](_0x2276d5['element']),this['keystrokes']['listenTo'](_0x2276d5['element']);this['keystrokes']['set']('enter',(_0x5e5dac,_0x199c8f)=>{_0x108788===_0x5e5dac['target']&&(this['focusCycler']['focusFirst'](),_0x199c8f());}),this['keystrokes']['set']('esc',(_0x217f18,_0x7836a4)=>{_0x108788!==_0x217f18['target']&&(this['focus'](),_0x7836a4());});}}class mn extends _0x957e03{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x552f83,_0x552cbc,_0xce9570,_0x5b7066];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3186a4){super(_0x3186a4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x28eb9a=this['editor']['config'];_0x28eb9a['define']('trackChanges.SuggestionThreadView',fn),_0x28eb9a['define']('trackChanges.SuggestionView',gn),_0x28eb9a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x28eb9a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1265bf,_0x48dd68){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x98921e,_0x23cff4]of this['_handleControllerBuffer']){const _0x3b6b48=this['_suggestionToController']['has'](_0x98921e);_0x3b6b48||_0x23cff4?_0x3b6b48&&_0x23cff4&&this['_destroyController'](_0x98921e):this['_initializeController'](_0x98921e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x5b7066)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1265bf,_0x48dd68);}['init'](){const _0x35013f=this['editor'],_0x4f47e8=_0x35013f['plugins']['get'](Xe),_0x5b798c=_0x35013f['plugins']['get'](_0xce9570),_0x5c1c87=_0x35013f['plugins']['get'](_0x5b7066),_0x5fb351=_0x35013f['plugins']['get'](_0x552cbc);this['_addUIComponentsToFactory'](),_0x5c1c87['addSourceCollector'](()=>{const _0x5dad3d=[];for(const [_0x78a6f0,_0x4171ec]of Array['from'](this['_suggestionToController'])){const _0x31fe42=_0x78a6f0['getAllAdjacentSuggestions'](),_0x5af939=[];for(const _0x48d0c5 of _0x31fe42){if(!_0x48d0c5['isInContent'])continue;if(_0x48d0c5['isMultiRange']){_0x5af939['push'](..._0x48d0c5['getRanges']());continue;}const _0x19b53a=_0x48d0c5['getFirstRange']();if(_0x5af939['length']>0x0){const _0x33305d=_0x5af939[0x0]['getJoined'](_0x19b53a);if(_0x33305d){_0x5af939[0x0]=_0x33305d;continue;}}_0x5af939['push'](_0x19b53a);}_0x5dad3d['push']([_0x4171ec['view'],_0x5af939]);}return _0x5dad3d;}),this['listenTo'](_0x4f47e8,'suggestionLoaded',(_0x3ec401,_0x322b89)=>{this['listenTo'](_0x322b89,'change:previous',(_0x207fa9,_0x25f2a5,_0x1509af,_0x4c5131)=>{_0x322b89['isInContent']&&(null==_0x1509af?(this['_updateController'](_0x4c5131['head']),this['_handleSuggestionControllerDelayed'](_0x322b89,!0x1)):(this['_updateController'](_0x1509af['head']),null==_0x4c5131&&this['_handleSuggestionControllerDelayed'](_0x322b89,!0x0)));}),null!==_0x322b89['previous']?this['_updateController'](_0x322b89['head']):this['_handleSuggestionControllerDelayed'](_0x322b89,!0x1);}),this['listenTo'](_0x4f47e8,'suggestionUnloaded',(_0x24097d,_0x143191,_0x1b13f6)=>{this['stopListening'](_0x143191,'change:previous'),this['_handleControllerBuffer']['delete'](_0x143191),this['_suggestionToController']['has'](_0x143191)&&this['_destroyController'](_0x143191),_0x1b13f6&&this['_updateController'](_0x1b13f6['head']);}),this['listenTo'](_0x4f47e8,'suggestionChanged',(_0x324d74,_0x5ac7a3)=>{this['_updateController'](_0x5ac7a3);}),this['listenTo'](_0x5b798c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5fb351,'addComment',(_0x48d78d,{threadId:_0x5d9fe0,isFromAdapter:_0xbcbcf1})=>{if(_0xbcbcf1||!_0x4f47e8['hasSuggestion'](_0x5d9fe0))return;const _0x49c3c8=_0x4f47e8['getSuggestion'](_0x5d9fe0);this['_suggestionToController']['get'](_0x49c3c8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3e1b2c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c2b2d;for(const _0x35d5c5 in _0x3e1b2c){const _0xbd2e5e=_0x35d5c5,_0x525067=_0x3e1b2c[_0xbd2e5e];if('trackChangesLicenseKeyValid'==_0x525067||'trackChangesLicenseKeyInvalid'==_0x525067||'trackChangesLicenseKeyExpired'==_0x525067||'trackChangesLicenseKeyDomainLimit'==_0x525067||'trackChangesLicenseKeyNotAllowed'==_0x525067||'trackChangesLicenseKeyEvaluationLimit'==_0x525067||'trackChangesLicenseKeyUsageLimit'==_0x525067){delete _0x3e1b2c[_0xbd2e5e],_0x1c2b2d=_0x525067,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4cf716){const _0x270642=this['_suggestionToController']['get'](_0x4cf716);if(!_0x270642)return null;return this['editor']['plugins']['get'](_0xce9570)['getByInnerView'](_0x270642['view'])||null;}['getSuggestionForAnnotation'](_0x5b0255){const _0x2f92a9=this['_viewToController']['get'](_0x5b0255['innerView']);return _0x2f92a9?_0x2f92a9['model']:null;}['_refreshActiveMarkers'](){const _0x14f409=this['editor']['plugins']['get'](_0xce9570),_0x288ac8=this['editor']['plugins']['get'](Xe),_0x58b1f0=Array['from'](_0x14f409['activeAnnotations'],_0x45a11f=>_0x45a11f['innerView'])['filter'](_0x20d58f=>this['_viewToController']['has'](_0x20d58f)),_0x509f4b=[];for(const _0x542f0b of _0x58b1f0){const _0x9a8387=this['_viewToController']['get'](_0x542f0b)['model']['getAllAdjacentSuggestions']();_0x509f4b['push'](..._0x9a8387['reduce']((_0x6efdc3,_0x281257)=>[..._0x6efdc3,..._0x281257['getMarkerNames']()],[]));}_0x288ac8['activeMarkers']=_0x509f4b;}['_addUIComponentsToFactory'](){const _0x589774=this['editor'],_0x5707f3=_0x589774['locale'],_0x2a160f=At(_0x5707f3,'Track\x20changes'),_0x59554e=new _0x1335da([{'type':'switchbutton','model':new _0x3a5d05({'withText':!0x0,'isToggleable':!0x0,'label':_0x2a160f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a5d05({'withText':!0x0,'label':At(_0x5707f3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5d05({'withText':!0x0,'label':At(_0x5707f3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5d05({'withText':!0x0,'label':At(_0x5707f3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5d05({'withText':!0x0,'label':At(_0x5707f3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x589774['plugins']['has']('TrackChangesPreview')&&_0x59554e['addMany']([{'type':'separator'},{'type':'button','model':new _0x3a5d05({'withText':!0x0,'label':At(_0x5707f3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x24b009 of _0x59554e)if(En(_0x24b009)){const _0x4ef61f=_0x589774['commands']['get'](_0x24b009['model']['commandName']);_0x24b009['model']['bind']('isOn','isEnabled')['to'](_0x4ef61f,'value','isEnabled');}_0x589774['ui']['componentFactory']['add']('trackChanges',_0x584a6e=>this['_createToolbarButton'](_0x584a6e,_0x59554e,_0x2a160f)),_0x589774['ui']['componentFactory']['add']('menuBar:trackChanges',_0x943a90=>this['_createMenuBarMenu'](_0x943a90,_0x59554e,_0x2a160f));}['_createToolbarButton'](_0x3c5399,_0x562a26,_0x11c893){const _0x55d369=_0x1c7eeb(_0x3c5399,_0x164105),_0x4552a2=this['editor']['commands']['get']('trackChanges');_0x55d369['buttonView']['set']({'tooltip':_0x11c893,'label':_0x11c893,'icon':_0x59c1ed}),_0x55d369['buttonView']['bind']('isOn')['to'](_0x4552a2,'value'),_0x55d369['buttonView']['on']('execute',()=>{_0x4552a2['execute'](),this['editor']['editing']['view']['focus']();}),_0x3fe03e(_0x55d369,_0x562a26,{'role':'menu'});const _0x38ba26=[];for(const _0x1660b8 of _0x562a26)En(_0x1660b8)&&_0x38ba26['push'](this['editor']['commands']['get'](_0x1660b8['model']['commandName']));const _0x26787d=_0x55d369['buttonView'];return _0x26787d['actionView']['unbind']('isEnabled'),_0x26787d['arrowView']['unbind']('isEnabled'),_0x26787d['actionView']['bind']('isEnabled')['to'](_0x4552a2,'isEnabled'),_0x26787d['arrowView']['bind']('isEnabled')['toMany'](_0x38ba26,'isEnabled',(..._0x446788)=>_0x446788['some'](_0x5a19c5=>_0x5a19c5)),_0x55d369['on']('execute',_0x4e3c33=>{this['editor']['execute'](_0x4e3c33['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x55d369;}['_createMenuBarMenu'](_0x4f2d6b,_0x53dc3b,_0x2eafbe){const _0x4281e3=new _0x2d6ee1(_0x4f2d6b),_0x77be61=this['editor']['commands']['get']('trackChanges');_0x4281e3['buttonView']['set']({'label':_0x2eafbe,'icon':_0x59c1ed});const _0x275105=new _0x401545(_0x4f2d6b);for(const _0x14b697 of _0x53dc3b){if('separator'==_0x14b697['type']){_0x275105['items']['add'](new _0x1d3cd1(_0x4f2d6b));continue;}const _0x500f3b=new _0x5cf836(_0x4f2d6b,_0x4281e3),_0x236a63=new _0x131aa9(_0x4f2d6b),_0x60e18b=_0x14b697['model'];_0x236a63['bind'](...Object['keys'](_0x60e18b))['to'](_0x60e18b),_0x236a63['delegate']('execute')['to'](_0x4281e3),_0x236a63['on']('execute',()=>{this['editor']['execute'](_0x60e18b['commandName']),this['editor']['editing']['view']['focus']();}),_0x500f3b['children']['add'](_0x236a63),_0x275105['items']['add'](_0x500f3b);}return _0x4281e3['bind']('isEnabled')['to'](_0x77be61,'isEnabled'),_0x4281e3['panelView']['children']['add'](_0x275105),_0x4281e3;}['_initializeController'](_0x9ade58){const _0x2328d2=this['editor'],_0x18ae54=_0x2328d2['config'],_0x538d42=_0x2328d2['plugins']['get'](_0xce9570),_0x260140=_0x2328d2['plugins']['get'](_0x552cbc),_0x2316b6=_0x2328d2['plugins']['get'](_0x5b7066),_0x21c22f=_0x2328d2['plugins']['get'](_0x552f83)['me'],_0x38eb46=_0x18ae54['get']('trackChanges')['SuggestionThreadView'],_0x405b5e=_0x18ae54['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x35ae1c,CommentThreadInputView:_0x416f28}=_0x2328d2['plugins']['get']('CommentsUI');let _0x8b684b,_0x5df1c8,_0x515888;this['_annotationViews']['has'](_0x9ade58['id'])?(_0x5df1c8=this['_annotationViews']['get'](_0x9ade58['id']),_0x8b684b=_0x5df1c8['mainView']):(_0x8b684b=new _0x38eb46(_0x2328d2['locale'],_0x9ade58,_0x21c22f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x18ae54['get']('comments.editorConfig'),'licenseKey':_0x18ae54['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x18ae54['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x18ae54['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x18ae54['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5c25a4(_0x18ae54['get']('locale'),_0x2328d2['locale']),'CommentView':_0x18ae54['get']('comments')['CommentView'],'CommentsListView':_0x35ae1c,'CommentThreadInputView':_0x416f28,'SuggestionView':_0x405b5e}),_0x8b684b['suggestionView']['acceptButton']['on']('execute',()=>{_0x2328d2['editing']['view']['focus']();}),_0x8b684b['suggestionView']['discardButton']['on']('execute',()=>{_0x2328d2['editing']['view']['focus']();}),_0x5df1c8=_0x538d42['createAnnotationView'](this['editor']['locale'],_0x8b684b),_0x5df1c8['bind']('isDirty')['to'](_0x8b684b,'isDirty'),_0x5df1c8['bind']('length')['to'](_0x8b684b),_0x5df1c8['bind']('type')['to'](_0x8b684b,'type',_0x12befe=>'suggestion-'+_0x12befe),_0x8b684b['on']('escape',()=>{_0x515888['fire']('escape');}),this['_annotationViews']['set'](_0x9ade58['id'],_0x5df1c8));const _0x47bb3c=_0x260140['createCommentThreadController'](_0x9ade58['commentThread'],_0x8b684b),_0x5c40b4=new hn(_0x2328d2,_0x9ade58,_0x8b684b,_0x47bb3c),_0x51a30f=_0x9ade58['getAllAdjacentSuggestions']()['filter'](_0x48371d=>_0x48371d['isInContent']);_0x8b684b['descriptionParts']=_0x2328d2['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x51a30f),this['_suggestionToController']['set'](_0x9ade58,_0x5c40b4),this['_viewToController']['set'](_0x8b684b,_0x5c40b4);const _0x382195=()=>{const _0x52ea33=[],_0x2976b3=_0x9ade58['getAllAdjacentSuggestions']()['filter'](_0x37d561=>_0x37d561['isInContent']);for(const _0x2b7000 of _0x2976b3)_0x52ea33['push'](..._0x2b7000['getMarkers']());return _0x411add(_0x2328d2['editing'],_0x52ea33);};_0x515888=_0x538d42['createAnnotation']({'view':_0x5df1c8,'target':_0x382195,'type':()=>'suggestion-'+_0x5c40b4['view']['type'],'isVisible':!!_0x382195()}),_0x260140['_bindAnnotationToEditors'](_0x8b684b,_0x515888),_0x538d42['add'](_0x515888),_0x2316b6['registerAnnotation'](_0x515888);}['_destroyController'](_0x313458){const _0x2dcf03=this['editor']['plugins']['get'](_0x552cbc),_0x108ce0=this['editor']['plugins']['get'](_0xce9570),_0x74b687=this['_suggestionToController']['get'](_0x313458),_0x2bcb15=_0x74b687['view'],_0x1c2216=_0x108ce0['getByInnerView'](_0x2bcb15);_0x2dcf03['_unbindEditors'](_0x2bcb15),_0x1c2216&&_0x108ce0['remove'](_0x1c2216),this['_suggestionToController']['delete'](_0x313458),this['_viewToController']['delete'](_0x2bcb15),_0x74b687['destroy']();}['_updateController'](_0x125844){if(!_0x125844['isInContent']||!this['_suggestionToController']['has'](_0x125844))return;const _0x57cbac=this['editor']['plugins']['get'](Xe),_0x17bd7b=this['_suggestionToController']['get'](_0x125844),_0x573a2d=_0x125844['getAllAdjacentSuggestions']();_0x17bd7b['view']['descriptionParts']=_0x57cbac['descriptionFactory']['getDescriptions'](_0x573a2d);}['destroy'](){for(const _0x52748b of this['_suggestionToController']['keys']())this['_destroyController'](_0x52748b);for(const _0x4e61da of this['_annotationViews']['values']())_0x4e61da['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x10a5de){return'model'in _0x10a5de;}class Tn extends _0x957e03{static get['requires'](){return[Xe,mn,_0x2749f7];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3ea112){this['editor']['plugins']['get'](Xe)['adapter']=_0x3ea112;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0xa7f44){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0xa7f44);}['getSuggestions']({skipNotAttached:_0x3500d8=!0x1,toJSON:_0x50495a=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x3500d8,'toJSON':_0x50495a});}['getSuggestion'](_0xb65189){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0xb65189);}}const _n=['Pagination'];class pn extends _0x957e03{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x57d96b=this['editor'];if(_0x57d96b['config']['define']('trackChangesData.editorCreator',_0x3e61e2=>{const _0x269473=_0x57d96b['model']['document']['getRootNames']()['reduce']((_0x6bd37e,_0x349b36)=>(_0x6bd37e[_0x349b36]='',_0x6bd37e),{});return _0x57d96b['constructor']['create'](_0x269473,_0x3e61e2);}),'function'!=typeof _0x57d96b['config']['get']('trackChangesData')['editorCreator'])throw new _0x54f12a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x572059){return bn(this['editor'],!0x0,_0x572059);}['getDataWithDiscardedSuggestions'](_0x364299){return bn(this['editor'],!0x1,_0x364299);}}class Ln extends _0x957e03{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1791dd){function _0x16a1b8(_0x41887a){return _0x41887a['map'](_0x488874=>String['fromCharCode'](_0x488874))['join']('');}super(_0x1791dd),this['result']='end',_0x1791dd[_0x16a1b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16a1b8([0x76,0x69,0x65,0x77])][_0x16a1b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16a1b8([0x61,0x75,0x74,0x6f]),_0x1791dd[_0x16a1b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x16a1b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16a1b8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x16a1b8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x16a1b8([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 In(_0x6e366a){return void 0x0!==_0x6e366a['getRootsAttributes'];}async function bn(_0x3b78f3,_0x172e08,_0xeb81f1){const _0x5c0a82=_0x4df7f6(_0x3b78f3,_n);if(_0x5c0a82['plugins']['push'](Xe,Ln),In(_0x3b78f3)){_0x5c0a82['roots']=Object['create'](null);for(const _0x5a4d2c of _0x3b78f3['model']['document']['getRootNames']())_0x5c0a82['roots'][_0x5a4d2c]={'modelAttributes':_0x3b78f3['getRootAttributes'](_0x5a4d2c)};}const _0x24f812=document['createDocumentFragment'](),_0x3965fa=_0x3b78f3['config']['get']('trackChangesData')['editorCreator'],_0x404f72=await _0x3965fa(_0x5c0a82,()=>function(_0x1caf97){const _0x502122=document['createElement']('div');return _0x1caf97['appendChild'](_0x502122),_0x502122;}(_0x24f812));!function(_0x6b80ad,_0x3fa10f){const _0x20b223=_0x6b80ad['model']['document']['getRootNames']()['reduce']((_0x48a142,_0x7ceb01)=>(_0x48a142[_0x7ceb01]=_0x6b80ad['data']['get']({'rootName':_0x7ceb01}),_0x48a142),{}),_0x5c1ebf=_0x6b80ad['plugins']['get']('Users')['users']['map'](_0x524b4e=>({'id':_0x524b4e['id'],'name':_0x524b4e['name']})),_0x2178ee=_0x6b80ad['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x38e4ae=_0x6b80ad['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4748e3=_0x3fa10f['plugins']['get']('Users'),_0x3c365b=_0x3fa10f['plugins']['get']('TrackChangesEditing'),_0x4d53b6=_0x3fa10f['plugins']['get']('CommentsRepository');for(const _0x4cdd00 of _0x4d53b6['getCommentThreads']())_0x4cdd00['remove']();for(const _0xaaab8 of _0x5c1ebf)_0x4748e3['getUser'](_0xaaab8['id'])||_0x4748e3['addUser'](_0xaaab8);_0x4748e3['me']||_0x4748e3['useAnonymousUser']();for(const _0x3cba6c of _0x38e4ae)_0x4d53b6['addCommentThread'](_0x3cba6c);for(const _0x452559 of _0x2178ee)_0x3c365b['addSuggestionData'](_0x452559);_0x3fa10f['data']['set'](_0x20b223);}(_0x3b78f3,_0x404f72),_0x404f72['execute'](_0x172e08?'acceptAllSuggestions':'discardAllSuggestions');const _0x53891=In(_0x404f72)?_0x404f72['getFullData'](_0xeb81f1):_0x404f72['data']['get'](_0xeb81f1);return await _0x404f72['destroy'](),_0x53891;}class An extends _0x1fc7e3{['options'];constructor(_0x20c3e6,_0x25d461){super(_0x20c3e6),this['options']=_0x25d461,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'](_0x242015,_0x1652b1){if(!this['element'])return;const _0x13e043=[];for(const [_0x5114d6,_0x20bddc]of _0x242015){const _0x8813bb=document['createElement']('div');_0x8813bb['setAttribute']('data-ck-root-name',_0x5114d6),_0x8813bb['className']=_0x20bddc['classes']+'\x20ck-track-changes-preview__root-container',_0x8813bb['innerHTML']=_0x20bddc['content'],_0x13e043['push'](_0x8813bb);}_0x1652b1(this['element'],_0x13e043),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x3ba425{constructor(_0x41ebb2){super(_0x41ebb2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xf62b19=this['editor'],_0x5e8ecc=_0xf62b19['locale'],_0x172f32=_0xf62b19['plugins']['get']('Dialog');let _0x20b0bc;const _0x42b806=function(_0x371257){const _0x470bad={};if('editables'in _0x371257['ui']['view']){for(const [_0x2f8ea9,_0x4dd5ce]of Object['entries'](_0x371257['ui']['view']['editables']))_0x470bad[_0x2f8ea9]=_0x4dd5ce['element'];}else _0x470bad[_0x371257['model']['document']['getRootNames']()[0x0]]=_0x371257['ui']['view']['editable']['element'];return _0x470bad;}(_0xf62b19),_0x331053=function(_0x1351c2){let _0x24da9d=0x0;for(const _0x425019 of Object['values'](_0x1351c2))_0x24da9d=Math['max'](_0x24da9d,_0x425019['getBoundingClientRect']()['width']);let _0x5c0711=0x0;for(const _0x1b965e of Object['values'](_0x1351c2))_0x5c0711+=_0x1b965e['getBoundingClientRect']()['height'];const _0xa1aaad=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2933fe=Math['min'](_0x5c0711,_0xa1aaad);return{'width':_0x24da9d,'height':_0x2933fe};}(_0x42b806);_0x172f32['show']({'id':'finalContentPreview','title':At(_0x5e8ecc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x5e8ecc,{'dialogRects':_0x331053}),'onHide':()=>{_0x20b0bc['detachFromDom']();},'onShow':()=>{_0xf62b19['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5da13c=>{const _0x4ecd86=this['_standarizeRootsData'](_0x5da13c,_0xf62b19,_0x42b806);_0x172f32['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4ecd86,_0xf62b19['config']['get']('trackChanges.preview.renderFunction'));}),_0x20b0bc=new _0x235106(_0x5e8ecc,[_0x172f32['view']]),_0x20b0bc['attachToDom'](),_0x20b0bc['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xf62b19['once']('destroy',()=>{_0x20b0bc['detachFromDom']();});const _0x2e1bd7=_0x172f32['view']['headerView']['class'];_0x172f32['view']['headerView']['class']=_0x2e1bd7?_0x2e1bd7+'\x20ck-reset_all':'ck-reset_all',_0x172f32['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x172f32['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3d4ae6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x277d03=_0x3d4ae6['previewMode'],_0x54946c={};if('$labels'===_0x277d03){for(const _0x126fbd of _0x3d4ae6['getMergeFieldsIds']())_0x54946c[_0x126fbd]=_0x3d4ae6['getLabel'](_0x126fbd)||_0x126fbd;}else{const _0x4c3b3d='$defaultValues'===_0x277d03?_0x3d4ae6['getDefaultValues']():_0x3d4ae6['getDataSetValues'](_0x277d03,!0x0);for(const _0x255787 of Object['entries'](_0x4c3b3d)){const [_0x209937,_0x2e2ee2]=_0x255787;_0x54946c[_0x209937]=null!==_0x2e2ee2?_0x2e2ee2:_0x3d4ae6['getLabel'](_0x209937)||_0x209937;}}return{'mergeFieldsData':_0x54946c};}['_standarizeRootsData'](_0x42a89a,_0x1640da,_0x3a3ae1){let _0x505f3a;if('string'==typeof _0x42a89a){const _0x11503f=_0x1640da['model']['document']['getRootNames']()[0x0];_0x505f3a={[_0x11503f]:_0x42a89a};}else _0x505f3a=_0x42a89a;const _0x21b15a=this['_fixMediaEmbeds'](_0x505f3a,_0x1640da),_0x4cbaaa=function(_0x72465d,_0x527c7e){for(const [_0x315501,_0x5629e2]of _0x72465d)_0x5629e2['classes']=_0x527c7e[_0x315501]['classList']['value']['replace']('ck-focused','');return _0x72465d;}(this['_sortRoots'](_0x1640da)['reduce']((_0x40a7fb,_0x2f8325)=>(_0x40a7fb['push']([_0x2f8325,{'content':_0x21b15a[_0x2f8325],'classes':''}]),_0x40a7fb),[]),_0x3a3ae1);return _0x4cbaaa;}['_fixMediaEmbeds'](_0x1b2d81,_0x1d63cd){if(!_0x1d63cd['plugins']['has']('MediaEmbedEditing'))return _0x1b2d81;const _0x12feb1=_0x1d63cd['plugins']['get']('MediaEmbedEditing');for(const [_0x28c589,_0x17a7af]of Object['entries'](_0x1b2d81)){const _0x38455e=document['createElement']('div');_0x38455e['innerHTML']=_0x17a7af,(_0x38455e['querySelectorAll']('figure.media')['forEach'](_0x44a4a5=>{const _0x3abe66=_0x44a4a5['querySelector']('oembed');if(_0x3abe66){const _0x5a16cc=_0x3abe66['getAttribute']('url');if(_0x5a16cc){const _0x2c7589=_0x12feb1['registry']['getMediaViewElement'](new et(_0x1d63cd['editing']['view']['document']),_0x5a16cc,{'elementName':'','renderForEditingView':!0x0}),_0x1b3912=document['createElement']('div');_0x1b3912['classList']['add']('ck-media__wrapper'),_0x2c7589['render'](_0x1b3912,_0x1d63cd['editing']['view']['domConverter']),_0x3abe66['replaceWith'](_0x1b3912);}}}),_0x1b2d81[_0x28c589]=_0x38455e['innerHTML']);}return _0x1b2d81;}['_sortRoots'](_0x336549){if(!function(_0x4e7b67){return void 0x0!==_0x4e7b67['getRootsAttributes'];}(_0x336549))return _0x336549['model']['document']['getRootNames']();const _0xc49445=[],_0xb2e50c=new Map();for(const _0x4ccd5f of _0x336549['model']['document']['getRootNames']()){const _0x2dc04b=_0x336549['editing']['view']['getDomRoot'](_0x4ccd5f)['getClientRects']()['item'](0x0);_0xc49445['push'](_0x4ccd5f),_0xb2e50c['set'](_0x4ccd5f,_0x2dc04b);}return _0xc49445['sort']((_0xa04854,_0x25f507)=>{const _0x31e134=_0xb2e50c['get'](_0xa04854),_0x35320c=_0xb2e50c['get'](_0x25f507);return _0x31e134['y']-_0x35320c['y']||_0x31e134['x']-_0x35320c['x'];}),_0xc49445;}}class Cn extends _0x957e03{static get['requires'](){return[pn,_0x354598];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bb475){super(_0x4bb475),_0x4bb475['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x4bb475['config']['define']('trackChanges.preview.renderFunction',(_0x398afe,_0x1a561f)=>{for(const _0x15723a of _0x1a561f)_0x398afe['appendChild'](_0x15723a);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
23
+ import{Command as _0x5833eb,Plugin as _0x91c494,PendingActions as _0x5bd31c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x2b8fb6,Annotations as _0x12281d,EditorAnnotations as _0x5993c2,Comments as _0x6e1d7b}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x43ada4,ObservableMixin as _0x1ab30b,uid as _0x932f3b,priorities as _0x308b2d,insertToPriorityArray as _0x3e9544,logWarning as _0x3e4ee7,getEnvKeystrokeText as _0x3e595e,FocusTracker as _0x32f128,KeystrokeHandler as _0x4f848f,Collection as _0x467e60}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x337835,IconCancel as _0xa4163,IconTrackChanges as _0x142dfa}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4728ec,View as _0x1af2b4,ViewCollection as _0x532950,FocusCycler as _0x290d71,UIModel as _0x54aeb3,createDropdown as _0x5e205d,SplitButtonView as _0x2cda0d,addListToDropdown as _0x423175,MenuBarMenuView as _0x1d2186,MenuBarMenuListView as _0xded53f,ListSeparatorView as _0x19fed4,MenuBarMenuListItemView as _0x12c821,MenuBarMenuListItemButtonView as _0x216298,BodyCollection as _0x1ca9ba,Dialog as _0x16f007}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x548e4a,SuggestionsConversion as _0x3330c8,Users as _0x42a43f,DocumentCompare as _0x2826a9,fixElementSuggestionRange as _0x98d968,hashObject as _0x1760ad,surroundingMarkersDetector as _0x479afc,FOCUS_ANNOTATION_KEYSTROKE as _0xe619b0,AriaDescriptionView as _0x541ce7,setupThreadKeyboardNavigation as _0x520e0a,trimHtml as _0x47abc5,UserView as _0x1382e7,LateFocusButtonView as _0x6449d6,getDateTimeFormatter as _0x36ff6b,getAllMarkersDomElementsSorted as _0x30e3b4,sanitizeEditorConfig as _0x4b048c}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x32ad54,ModelLiveRange as _0xa6acbf,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x5833eb{['_enabledCommands'];constructor(_0xe32646,_0x26bbfd){super(_0xe32646),this['_enabledCommands']=_0x26bbfd,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 _0x197bf2 of this['editor']['commands']['commands']())_0x197bf2['affectsData']&&!this['_enabledCommands']['has'](_0x197bf2)&&_0x197bf2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe47b8d of this['editor']['commands']['commands']())_0xe47b8d['affectsData']&&!this['_enabledCommands']['has'](_0xe47b8d)&&_0xe47b8d['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x5833eb{['_suggestions'];constructor(_0x369d82,_0x1142c2){super(_0x369d82),this['_suggestions']=_0x1142c2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x12c209){const _0x20c486=this['_suggestions']['get'](_0x12c209);if(!_0x20c486)throw new _0x43ada4('track-changes-accept-suggestion-not-found',this);const _0x3f91ed=_0x20c486['getRanges']();this['editor']['model']['canEditAt'](_0x3f91ed)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x20c486);}}class ft extends _0x5833eb{['_suggestions'];constructor(_0x51a618,_0x4c0bba){super(_0x51a618),this['_suggestions']=_0x4c0bba,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x40ab55){const _0x109e22=this['_suggestions']['get'](_0x40ab55);if(!_0x109e22)throw new _0x43ada4('track-changes-discard-suggestion-not-found',this);const _0x6c0c64=_0x109e22['getRanges']();this['editor']['model']['canEditAt'](_0x6c0c64)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x109e22);}}function gt(_0x3c3a53,_0x46c4a6){let _0x3b79a0='';return _0x3b79a0+=_0x3c3a53['split']('*')['map']((_0x47af88,_0x3344c5)=>_0x3344c5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x47af88)+'</span>':mt(_0x47af88))['join'](''),_0x46c4a6&&(_0x3b79a0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x46c4a6['value']+'\x22\x20title=\x22'+_0x46c4a6['title']+'\x22></span>'),_0x3b79a0;}function mt(_0x35919d){const _0x1e6314=document['createElement']('span');return _0x1e6314['innerText']=_0x35919d,_0x1e6314['innerHTML'];}function Et(_0x3bca4b){return _0x3bca4b['sort']((_0x347d9,_0x588d4b)=>'attribute'===_0x347d9['type']&&'attribute'!==_0x588d4b['type']?-0x1:'attribute'!==_0x347d9['type']&&'attribute'===_0x588d4b['type']?0x1:'deletion'==_0x347d9['type']&&'deletion'!=_0x588d4b['type']?-0x1:'deletion'!=_0x347d9['type']&&'deletion'==_0x588d4b['type']?0x1:0x0);}function Tt(_0x79d5a7,_0x427dd0){let _0x871997,_0x1673c6=0x0;const _0x55e80b=[],_0x52a3ee=_0x427dd0['schema'];for(;_0x1673c6<_0x79d5a7['length'];){const _0xdd5e66=_0x79d5a7[_0x1673c6],_0x55f9ab=_0x79d5a7[_0x1673c6+0x1];_0x871997||(_0x871997=_0x427dd0['createPositionBefore'](_0xdd5e66)),_t(_0x427dd0,_0xdd5e66,_0x55f9ab)||(_0x55e80b['push'](_0x427dd0['createRange'](_0x871997,_0x52a3ee['isObject'](_0xdd5e66)?_0x427dd0['createPositionAfter'](_0xdd5e66):_0x427dd0['createPositionAt'](_0xdd5e66,'end'))),_0x871997=null),_0x1673c6++;}return _0x55e80b;}function _t(_0x172c72,_0x339094,_0x30359a){if(!_0x30359a)return!0x1;const _0x293f71=_0x172c72['createPositionAfter'](_0x339094),_0x4760a7=_0x172c72['createPositionBefore'](_0x30359a);return _0x293f71['isTouching'](_0x4760a7);}function pt(_0x21469d,_0x5d8fa5,_0x3fc4d7){for(;_0x3fc4d7['length'];){const _0x200e49=_0x3fc4d7['splice'](0x0,0x64);_0x21469d['change'](()=>{for(const _0x489c96 of _0x200e49)_0x489c96['isInContent']&&_0x5d8fa5['execute'](_0x489c96['id']);});}}class Lt extends _0x5833eb{['_command'];['_suggestions'];constructor(_0x34b44e,_0x4bf645,_0x4a8a57){super(_0x34b44e),this['_command']=_0x4bf645,this['_suggestions']=_0x4a8a57,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1617dd=Array['from'](this['_suggestions']['values']())['some'](_0x51d452=>_0x51d452['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1617dd;}['execute'](){const _0xbf1235=Et(Array['from'](this['_suggestions']['values']()));for(const _0x51be9e of _0xbf1235){const _0x303c7e=_0x51be9e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x303c7e))return;}pt(this['editor']['model'],this['_command'],_0xbf1235);}}class It extends _0x5833eb{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x148d3d,_0x5482bd,_0x1d2d10){super(_0x148d3d),this['_command']=_0x5482bd,this['_suggestions']=_0x1d2d10,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x655f2b=this['editor']['model']['document']['selection'],_0x5771f4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x26ad4c,_0x32f1ae){const _0x286fd2=Array['from'](_0x26ad4c['getRanges']()),_0x3d437c=new Set();for(const _0x393ef6 of _0x32f1ae)if(_0x393ef6['isInContent']){for(const _0x136c87 of _0x286fd2)for(const _0x444a8c of _0x393ef6['getRanges']())(_0x136c87['isIntersecting'](_0x444a8c)||_0x26ad4c['isCollapsed']&&!_0x393ef6['isMultiRange']&&_0x393ef6['next']&&_0x444a8c['end']['isTouching'](_0x136c87['start']))&&_0x3d437c['add'](_0x393ef6);}return _0x3d437c;}(_0x655f2b,_0x5771f4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4e0d0e=Et(Array['from'](this['_selectedSuggestions']));for(const _0x50574a of _0x4e0d0e){const _0x4dc0b9=_0x50574a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4dc0b9))return;}pt(this['editor']['model'],this['_command'],_0x4e0d0e);}}class bt extends/* #__PURE__ -- @preserve */
24
+ _0x1ab30b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4633aa,_0x47f4c3){super(),this['id']=_0x47f4c3['id'],this['type']=_0x47f4c3['type'],this['subType']=_0x47f4c3['subType']||null,this['author']=_0x47f4c3['author'],this['creator']=_0x47f4c3['creator']||_0x47f4c3['author'],this['isExternal']=Boolean(_0x47f4c3['attributes']&&_0x47f4c3['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x47f4c3['originalSuggestionId']||null,this['_model']=_0x4633aa,this['_onAccept']=_0x47f4c3['onAccept'],this['_onDiscard']=_0x47f4c3['onDiscard'],this['_onAttributesChange']=_0x47f4c3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x47f4c3['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 _0x58fb1d=this;for(;_0x58fb1d['previous'];)_0x58fb1d=_0x58fb1d['previous'];return _0x58fb1d;}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'](_0x36a2ba){this['_markerNames']['add'](_0x36a2ba);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5928c9=>this['_model']['markers']['get'](_0x5928c9))['filter'](_0x21b874=>_0x21b874);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5d9088=>{for(const _0x599950 of this['getMarkers']())_0x5d9088['removeMarker'](_0x599950);}),this['_markerNames']['clear']();}['removeMarker'](_0x5ddd52){this['_model']['change'](_0x3f13f7=>{_0x3f13f7['removeMarker'](_0x5ddd52);}),this['_markerNames']['delete'](_0x5ddd52);}['addRange'](_0x12a43b){const _0x273b6c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x273b6c),this['_model']['change'](_0x47a6ba=>{_0x47a6ba['addMarker'](_0x273b6c,{'range':_0x12a43b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2a951c){for(const _0x1dbed0 of this['getRanges']())if(_0x1dbed0['isIntersecting'](_0x2a951c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4450e5=>_0x4450e5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x488db7,_0x454511)=>[..._0x488db7,..._0x454511['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x20c0f8=this['getRanges']();if(0x1!=_0x20c0f8['length'])return null;const _0x3eaa09=_0x20c0f8[0x0],_0x58cf56=_0x3eaa09['start']['nodeAfter'],_0x51162a=_0x3eaa09['end']['nodeBefore'];return _0x58cf56 instanceof _0x32ad54?_0x58cf56!=_0x51162a?null:_0x58cf56: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 _0x1f53bd=[];let _0x2fd8c8=this['head'];for(;_0x2fd8c8;)_0x1f53bd['push'](_0x2fd8c8),_0x2fd8c8=_0x2fd8c8['next'];return _0x1f53bd;}['setAttribute'](_0xb57fb3,_0x2f1624){const _0x4e4e44=nt(this['attributes']);it(_0x4e4e44,_0xb57fb3,_0x2f1624),st(_0x4e4e44,this['attributes'])||(this['attributes']=_0x4e4e44,this['_onAttributesChange'](_0x4e4e44));}['removeAttribute'](_0x563114){const _0x40bde4=nt(this['attributes']);rt(_0x40bde4,_0x563114),st(_0x40bde4,this['attributes'])||(this['attributes']=_0x40bde4,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 _0x932f3b()['substr'](0x1,0x5);}}function At(_0x1ba3ae,_0x3821de,_0x38c7bc){const _0x5570f9=_0x1ba3ae['t'],t=_0x1ba3ae['t'];switch(_0x3821de){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',_0x38c7bc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x38c7bc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x38c7bc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x38c7bc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x38c7bc);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',_0x38c7bc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x38c7bc);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',_0x38c7bc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x38c7bc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x38c7bc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x38c7bc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x38c7bc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x38c7bc);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x38c7bc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x38c7bc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x38c7bc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x38c7bc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x38c7bc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x38c7bc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x38c7bc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x38c7bc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x38c7bc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x38c7bc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x38c7bc);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x38c7bc);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'},_0x38c7bc);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x38c7bc);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x38c7bc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x38c7bc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x38c7bc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x38c7bc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x38c7bc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x38c7bc);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'},_0x38c7bc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x38c7bc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x38c7bc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x38c7bc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x38c7bc);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x38c7bc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x38c7bc);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'},_0x38c7bc);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x38c7bc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x38c7bc);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'},_0x38c7bc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x38c7bc);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'},_0x38c7bc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x38c7bc);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x38c7bc);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x38c7bc);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x38c7bc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x38c7bc);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'},_0x38c7bc);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x38c7bc);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 _0x5570f9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x38c7bc);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5570f9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x38c7bc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x38c7bc);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'},_0x38c7bc);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'},_0x38c7bc);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'},_0x38c7bc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3821de;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1e7258,_0x9400f3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1e7258,this['_locale']=_0x9400f3;}['getDescriptions'](_0x8f421a){const _0x2b6986=[],_0x43831a=new Set(),_0x35e757=new Set();for(let _0x18264a=0x0;_0x18264a<_0x8f421a['length'];_0x18264a++){const _0x570984=_0x8f421a[_0x18264a];if(!_0x570984['isInContent'])continue;const _0x1d1d02=this['_handleCustomCallbackDescription'](_0x570984);if(_0x1d1d02){if(null!=_0x570984['subType']){if(_0x43831a['has'](_0x570984['subType']))continue;_0x43831a['add'](_0x570984['subType']);}_0x2b6986['push'](_0x1d1d02);}else{if('attribute'==_0x570984['type']){const _0x563b30=_0x570984['data']['key'];if(_0x35e757['has'](_0x563b30))continue;_0x35e757['add'](_0x570984['data']['key']),_0x563b30==Ke?this['_handleRenameSuggestionDescription'](_0x2b6986,_0x570984):this['_handleAttributeSuggestionDescription'](_0x2b6986,_0x570984);continue;}'insertion'!=_0x570984['type']&&'deletion'!=_0x570984['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2b6986,_0x570984,_0x8f421a[_0x18264a+0x1]);}}return this['_resolveDescriptionItems'](_0x2b6986);}['registerDescriptionCallback'](_0x537ebd){this['_customCallbacks']['push'](_0x537ebd);}['registerElementLabel'](_0x5b4e6a,_0x210464,_0x5c9eed=_0x308b2d['normal']){'function'==typeof _0x5b4e6a?_0x3e9544(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5b4e6a,'label':_0x210464,'priority':_0x5c9eed}):this['_itemLabels']['set'](_0x5b4e6a,_0x210464);}['registerAttributeLabel'](_0x2ffeb0,_0x4c298d){this['_attributeLabels']['set'](_0x2ffeb0,_0x4c298d);}['getItemLabel'](_0x50a6f3,_0x3f8048=0x1){let _0x29dd89;for(const _0x1c6298 of this['_itemLabelsCallbacks'])if(_0x1c6298['matchingCallback'](_0x50a6f3)){_0x29dd89=_0x1c6298['label'];break;}return _0x29dd89||(_0x29dd89=this['_itemLabels']['get'](_0x50a6f3['name'])),_0x29dd89?_0x29dd89(_0x3f8048):0x1!==_0x3f8048?_0x3f8048+'\x20'+_0x50a6f3['name']+'s':''+_0x50a6f3['name'];}['_addDescriptionItems'](_0x14bec9,_0x254743){const _0x58d27c=_0x254743['getFirstRange']()['getWalker'](),_0xc5a690='insertion'==_0x254743['type']?'add':'remove';for(const _0x16d7d0 of _0x58d27c){const _0x86b9c5=_0x16d7d0['item'],_0x373739=_0x14bec9[_0x14bec9['length']-0x1];if(_0x86b9c5['is']('$textProxy'))_0x373739&&_0x373739['type']['indexOf']('Container')>-0x1&&_0x14bec9['pop'](),_0x373739&&'text'==_0x373739['type']?_0x373739[_0xc5a690]+=_0x86b9c5['data']:_0x14bec9['push']({'type':'text','add':'add'==_0xc5a690?_0x86b9c5['data']:'','remove':'remove'==_0xc5a690?_0x86b9c5['data']:''});else{if(this['_schema']['isObject'](_0x86b9c5)){const _0x2d75ec=_0x86b9c5;if(_0x373739&&_0x373739['type']['indexOf']('Container')>-0x1&&_0x14bec9['pop'](),'elementEnd'==_0x16d7d0['type'])continue;_0x373739&&_0x373739['type']==_0xc5a690+'Object'&&_0x373739['element']['name']==_0x2d75ec['name']?_0x373739['quantity']++:_0x14bec9['push']({'type':_0xc5a690+'Object','element':_0x2d75ec,'quantity':0x1}),_0x58d27c['skip'](_0x2774ed=>!('elementEnd'==_0x2774ed['type']&&_0x2774ed['item']==_0x86b9c5));}else{if(this['_schema']['checkChild'](_0x86b9c5,'$text')||_0x86b9c5['is']('element','softBreak')){const _0x487e88=_0x86b9c5;if('add'==_0xc5a690&&'elementStart'==_0x16d7d0['type']||'remove'==_0xc5a690&&'elementEnd'==_0x16d7d0['type'])continue;if(_0x373739&&-0x1==_0x373739['type']['indexOf']('Container')){'text'==_0x373739['type']&&(_0x373739[_0xc5a690]+='\x0a');continue;}let _0x464860;if(_0x464860='add'==_0xc5a690?_0x487e88['nextSibling']&&!this['_schema']['isObject'](_0x487e88['nextSibling'])?_0x487e88['nextSibling']:null:_0x487e88['previousSibling']&&!this['_schema']['isObject'](_0x487e88['previousSibling'])?_0x487e88['previousSibling']:null,_0x487e88['isEmpty']||_0x464860&&_0x464860['isEmpty']){const _0x53b420=_0x464860&&_0x464860['isEmpty']?_0x464860:_0x487e88;_0x373739&&_0x373739['type']==_0xc5a690+'EmptyContainer'&&_0x373739['element']['name']==_0x53b420['name']?_0x373739['quantity']++:_0x14bec9['push']({'type':_0xc5a690+'EmptyContainer','element':_0x53b420,'quantity':0x1});}else _0x14bec9['push']({'type':_0xc5a690+'Container','element':_0x487e88});}}}}}['_resolveDescriptionItems'](_0xb82821){const _0x272acf=this['_locale'],_0x5ecd88=[],_0x12c7b5=[],_0x3314fc=[];for(const _0x58b340 of _0xb82821)switch(_0x58b340['type']){case'text':if(_0x58b340['add']=_0x58b340['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x58b340['remove']=_0x58b340['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x58b340['add']&&''!=_0x58b340['remove']){_0x5ecd88['push']({'type':'replace','content':At(_0x272acf,'REPLACE_TEXT',['\x22'+_0x58b340['remove']+'\x22','\x22'+_0x58b340['add']+'\x22'])});continue;}if(null!=_0x58b340['add']['match'](/^ +$/)){_0x5ecd88['push']({'type':'insertion','content':At(_0x272acf,'*Insert:*\x20%0',At(_0x272acf,'ELEMENT_SPACE',_0x58b340['add']['length']))});continue;}if(null!=_0x58b340['remove']['match'](/^ +$/)){_0x5ecd88['push']({'type':'deletion','content':At(_0x272acf,'*Remove:*\x20%0',At(_0x272acf,'ELEMENT_SPACE',_0x58b340['remove']['length']))});continue;}if(''!=_0x58b340['add']){_0x5ecd88['push']({'type':'insertion','content':At(_0x272acf,'*Insert:*\x20%0','\x22'+_0x58b340['add']+'\x22')});continue;}_0x5ecd88['push']({'type':'deletion','content':At(_0x272acf,'*Remove:*\x20%0','\x22'+_0x58b340['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5ecd88['push']({'type':'insertion','content':At(_0x272acf,'*Insert:*\x20%0',this['getItemLabel'](_0x58b340['element'],_0x58b340['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5ecd88['push']({'type':'deletion','content':At(_0x272acf,'*Remove:*\x20%0',this['getItemLabel'](_0x58b340['element'],_0x58b340['quantity']))});continue;case'addContainer':_0x5ecd88['push']({'type':'insertion','content':At(_0x272acf,'*Split:*\x20%0',this['getItemLabel'](_0x58b340['element'],_0x58b340['quantity']))});continue;case'removeContainer':_0x5ecd88['push']({'type':'deletion','content':At(_0x272acf,'*Merge:*\x20%0',this['getItemLabel'](_0x58b340['element'],_0x58b340['quantity']))});continue;case'addFormat':_0x12c7b5['push'](_0x58b340['key']);continue;case'removeFormat':_0x3314fc['push'](_0x58b340['key']);continue;default:_0x5ecd88['push'](_0x58b340);}if(_0x12c7b5['length']){const _0x59cb71=_0x12c7b5['map'](_0x5d08a5=>this['_attributeLabels']['has'](_0x5d08a5)?this['_attributeLabels']['get'](_0x5d08a5):_0x5d08a5)['join'](',\x20');_0x5ecd88['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x59cb71)});}if(_0x3314fc['length']){const _0x232387=_0x3314fc['map'](_0x304267=>this['_attributeLabels']['has'](_0x304267)?this['_attributeLabels']['get'](_0x304267):_0x304267)['join'](',\x20');_0x5ecd88['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x232387)});}return _0x5ecd88;}['_handleCustomCallbackDescription'](_0x3b9a2c){for(const _0x4cca3c of this['_customCallbacks']){const _0x5ba44d=_0x4cca3c(_0x3b9a2c);if(_0x5ba44d&&'type'in _0x5ba44d)return _0x5ba44d;}}['_handleAttributeSuggestionDescription'](_0x29d99e,_0xad3594){const _0x355967=_0xad3594['data'],_0x4149e5=void 0x0===_0x355967['newValue']?'removeFormat':'addFormat';_0x29d99e['push']({'type':_0x4149e5,'key':_0x355967['key']});}['_handleRenameSuggestionDescription'](_0x5f418c,_0x16b319){_0x5f418c['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x16b319['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2f02e5,_0x1f48d8,_0xbfa7f){if(this['_addDescriptionItems'](_0x2f02e5,_0x1f48d8),_0xbfa7f&&_0xbfa7f['getFirstRange']()&&!_0x1f48d8['getFirstRange']()['end']['isEqual'](_0xbfa7f['getFirstRange']()['start'])){const _0x207e75=_0x2f02e5[_0x2f02e5['length']-0x1],_0x1a0030='insertion'==_0x1f48d8['type']?'add':'remove';_0x207e75&&'text'==_0x207e75['type']&&(_0x207e75[_0x1a0030]+='\x0a');}}}class Ct extends _0x91c494{['afterInit'](){const _0x36f60a=this['editor'],_0x2a6796=_0x36f60a['plugins']['get']('TrackChangesEditing');_0x36f60a['commands']['get']('showAIAssistant')&&_0x2a6796['enableCommand']('showAIAssistant');}}class yt extends _0x91c494{['afterInit'](){const _0x314923=this['editor'],_0x55ef15=_0x314923['plugins']['get']('TrackChangesEditing');_0x314923['commands']['get']('toggleAi')&&_0x55ef15['enableCommand']('toggleAi');}}class Nt extends _0x91c494{['afterInit'](){const _0x21ce78=this['editor'],_0x55e598=_0x21ce78['plugins']['get']('TrackChangesEditing');_0x21ce78['commands']['get']('aiQuickAction')&&_0x55e598['enableCommand']('aiQuickAction');}}class Rt extends _0x91c494{['afterInit'](){const _0x431bd7=this['editor'],_0x4508a7=_0x431bd7['locale'];if(!_0x431bd7['plugins']['has']('AlignmentEditing'))return;const _0x29c6e9=_0x431bd7['plugins']['get']('TrackChangesEditing');_0x29c6e9['enableDefaultAttributesIntegration']('alignment'),_0x29c6e9['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x4508a7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e8dc2=this['editor'],_0x646320=_0x4e8dc2['locale'];_0x4e8dc2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x303ecb=>{if('formatBlock'!=_0x303ecb['type'])return;const {data:_0x162df8}=_0x303ecb;if(_0x162df8&&'alignment'==_0x162df8['commandName']){const _0x29da22=_0x162df8['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x646320,'*Format:*\x20%0',function(_0xe7b832){switch(_0xe7b832){case'left':return At(_0x646320,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x646320,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x646320,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x646320,'FORMAT_JUSTIFY_TEXT');}}(_0x29da22))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x91c494{['afterInit'](){const _0x4c1de1=this['editor'],_0x4980cc=_0x4c1de1['plugins']['get']('TrackChangesEditing'),_0x39d9e0=_0x4c1de1['locale'];for(const _0xc22aba of St){if(!_0x4c1de1['plugins']['has'](_0xc22aba))continue;const _0x326685=_0xc22aba['slice'](0x0,-0x7)['toLowerCase'](),_0x5363ac='FORMAT_'+_0x326685['toUpperCase']();_0x4980cc['enableDefaultAttributesIntegration'](_0x326685),_0x4980cc['descriptionFactory']['registerAttributeLabel'](_0x326685,At(_0x39d9e0,_0x5363ac));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25e521=this['editor'],_0x1dca61=_0x25e521['locale'],_0x2a9eaf=_0x25e521['plugins']['get']('TrackChangesEditing');function _0x2f0588(_0x1f1733,_0x355615){_0x2a9eaf['descriptionFactory']['registerDescriptionCallback'](_0xddb91=>{if('formatInline'!=_0xddb91['type'])return;const {data:_0xdbbd06}=_0xddb91;return _0xdbbd06&&_0xdbbd06['commandName']===_0x1f1733?_0xdbbd06['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1dca61,'*Format:*\x20%0',_0x355615)}:{'type':'format','content':At(_0x1dca61,'*Remove\x20format:*\x20%0',_0x355615)}:void 0x0;});}_0x2f0588('bold',At(_0x1dca61,'FORMAT_BOLD')),_0x2f0588('italic',At(_0x1dca61,'FORMAT_ITALIC')),_0x2f0588('underline',At(_0x1dca61,'FORMAT_UNDERLINE')),_0x2f0588('code',At(_0x1dca61,'FORMAT_CODE')),_0x2f0588('strikethrough',At(_0x1dca61,'FORMAT_STRIKETHROUGH')),_0x2f0588('subscript',At(_0x1dca61,'FORMAT_SUBSCRIPT')),_0x2f0588('superscript',At(_0x1dca61,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x91c494{['afterInit'](){const _0x45cbcf=this['editor'],_0x4255d4=_0x45cbcf['locale'];if(!_0x45cbcf['plugins']['has']('BlockQuoteEditing'))return;const _0xe7491a=_0x45cbcf['plugins']['get']('TrackChangesEditing'),_0x6091c6=this['editor']['commands']['get']('blockQuote');_0xe7491a['enableCommand']('blockQuote',(_0x238a07,_0x40acbd={})=>{const _0xed3ade=this['editor']['model']['document']['selection'],_0xcaf974=_0x40acbd&&void 0x0!==_0x40acbd['forceValue']?_0x40acbd['forceValue']:!_0x6091c6['value'];let _0x448512=[];if(_0xcaf974){const _0x3b8e86=Array['from'](_0xed3ade['getSelectedBlocks']())['filter'](_0x4c2d4f=>wt(_0x4c2d4f)||function(_0x4f846b,_0x2ff924){const _0x685e0e=_0x2ff924['checkChild'](_0x4f846b['parent'],'blockQuote'),_0xc5f07=_0x2ff924['checkChild'](['$root','blockQuote'],_0x4f846b);return _0x685e0e&&_0xc5f07;}(_0x4c2d4f,this['editor']['model']['schema']));_0x448512=Tt(_0x3b8e86,_0x45cbcf['model']);}else{const _0x37e673=Array['from'](_0xed3ade['getSelectedBlocks']())['filter'](_0x261991=>wt(_0x261991));_0x448512=Tt(_0x37e673,_0x45cbcf['model']);}_0x45cbcf['model']['change'](()=>{for(const _0x34012f of _0x448512)_0xe7491a['markBlockFormat'](_0x34012f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xcaf974}]});});}),_0xe7491a['descriptionFactory']['registerDescriptionCallback'](_0x1ea4da=>{const {data:_0x21e13b}=_0x1ea4da;if(_0x21e13b&&'blockQuote'==_0x21e13b['commandName']){const _0x4671e5=At(_0x4255d4,'ELEMENT_BLOCK_QUOTE');return _0x21e13b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4255d4,'*Set\x20format:*\x20%0',_0x4671e5)}:{'type':'format','content':At(_0x4255d4,'*Remove\x20format:*\x20%0',_0x4671e5)};}});}}function wt(_0x46a300){return'blockQuote'==_0x46a300['parent']['name'];}class Bt extends _0x91c494{['afterInit'](){const _0x1d9477=this['editor'],_0x277b0c=_0x1d9477['locale'],_0x3100b0=_0x1d9477['plugins']['get']('TrackChangesEditing');_0x1d9477['plugins']['has']('BookmarkEditing')&&(_0x3100b0['enableCommand']('insertBookmark'),_0x3100b0['enableDefaultAttributesIntegration']('updateBookmark'),_0x3100b0['descriptionFactory']['registerDescriptionCallback'](_0x2c291c=>{if('insertion'!=_0x2c291c['type']&&'deletion'!=_0x2c291c['type']&&'attribute'!=_0x2c291c['type'])return;const _0x12e161=_0x2c291c['getContainedElement']();if(null==_0x12e161)return;if(!_0x12e161['is']('element','bookmark'))return;const _0x661dad=_0x12e161['getAttribute']('bookmarkId');if('insertion'==_0x2c291c['type'])return{'type':'insertion','content':At(_0x277b0c,'*Insert:*\x20%0','\x22'+_0x661dad+'\x22\x20'+At(_0x277b0c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2c291c['type'])return{'type':'deletion','content':At(_0x277b0c,'*Remove:*\x20%0','\x22'+_0x661dad+'\x22\x20'+At(_0x277b0c,'ELEMENT_BOOKMARK'))};const {data:_0x1f38fc}=_0x2c291c;if(!_0x1f38fc||'bookmarkId'!=_0x1f38fc['key'])return;return{'type':'format','content':At(_0x277b0c,'*Set\x20bookmark:*\x20%0','\x22'+_0x1f38fc['newValue']+'\x22')};}));}}class Ft extends _0x91c494{['afterInit'](){const _0x128734=this['editor'];_0x128734['plugins']['has']('CaseChange')&&(_0x128734['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x128734['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x128734['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x91c494{['afterInit'](){const _0x679dff=this['editor'];_0x679dff['commands']['get']('ckbox')&&_0x679dff['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x91c494{['afterInit'](){const _0x5c27c6=this['editor'];if(!_0x5c27c6['plugins']['has']('CodeBlock'))return;const _0x3de3aa=_0x5c27c6['plugins']['get']('TrackChangesEditing'),_0x3dc3e2=_0x5c27c6['locale'],_0xfdf7ab=_0x5c27c6['config']['get']('codeBlock')['languages'],_0x352bba=_0x5c27c6['commands']['get']('codeBlock');_0x3de3aa['enableCommand']('indentCodeBlock'),_0x3de3aa['enableCommand']('outdentCodeBlock'),_0x3de3aa['enableCommand']('codeBlock',(_0x8fd013,_0x1e21d6={})=>{const _0x543e09=_0x5c27c6['model'],_0x29b659=_0x5c27c6['model']['document']['selection'],_0x5386d0=_0x1e21d6&&void 0x0!==_0x1e21d6['forceValue']?_0x1e21d6['forceValue']:!_0x352bba['value'];let _0x35629c;_0x1e21d6['language']||(_0x1e21d6['language']=_0xfdf7ab[0x0]['language']),_0x35629c=_0x5386d0?Array['from'](_0x29b659['getSelectedBlocks']())['filter'](_0x14249d=>xt(_0x14249d)||function(_0x151551,_0x12b3b2){if(_0x151551['is']('rootElement')||_0x12b3b2['isLimit'](_0x151551))return!0x1;return _0x12b3b2['checkChild'](_0x151551['parent'],'codeBlock');}(_0x14249d,_0x543e09['schema'])):Array['from'](_0x29b659['getSelectedBlocks']())['filter'](_0x4df351=>xt(_0x4df351));const _0x31b7a9=Tt(_0x35629c,_0x543e09);_0x543e09['change'](()=>{for(const _0x2de558 of _0x31b7a9)_0x3de3aa['markBlockFormat'](_0x2de558,{'commandName':'codeBlock','commandParams':[{..._0x1e21d6,'forceValue':_0x5386d0}],'formatGroupId':'blockName'});});}),(_0x3de3aa['descriptionFactory']['registerElementLabel']('codeBlock',_0x4c3188=>At(_0x3dc3e2,'ELEMENT_CODE_BLOCK',_0x4c3188)),_0x3de3aa['descriptionFactory']['registerDescriptionCallback'](_0x45c9e5=>{if('formatBlock'!=_0x45c9e5['type'])return;const _0x39fdb9=_0x3dc3e2['t'],{data:_0x32f6ec}=_0x45c9e5;if(!_0x32f6ec||'codeBlock'!=_0x32f6ec['commandName'])return;const _0x402bca=_0x32f6ec['commandParams'][0x0]['language'],_0x5eb6d4=_0x39fdb9(_0xfdf7ab['find'](_0x465bbd=>_0x465bbd['language']===_0x402bca)['label'])['toLowerCase']();return _0x32f6ec['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3dc3e2,'*Set\x20format:*\x20%0',At(_0x3dc3e2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5eb6d4+')')}:{'type':'format','content':At(_0x3dc3e2,'*Remove\x20format:*\x20%0',At(_0x3dc3e2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x3053d2){return'codeBlock'==_0x3053d2['name'];}class Pt extends _0x91c494{['afterInit'](){const _0x55d675=this['editor'];if(!_0x55d675['plugins']['has']('CommentsEditing'))return;_0x55d675['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x91c494{static get['requires'](){return[at];}['init'](){const _0x14dfbd=this['editor'],_0x3b23b2=_0x14dfbd['plugins']['get']('TrackChangesEditing');_0x3b23b2['enableCommand']('delete');const _0x132599=_0x14dfbd['commands']['get']('deleteForward');_0x3b23b2['enableCommand']('deleteForward',(_0x5c4f2d,_0x1385c0={})=>{const _0x576631=_0x14dfbd['model']['createSelection'](_0x14dfbd['model']['document']['selection']);_0x576631['isCollapsed']&&_0x14dfbd['model']['modifySelection'](_0x576631,{'direction':'forward','unit':_0x1385c0['unit']});const _0x4c8027=_0x576631['getFirstRange'](),_0x103a87=_0xa6acbf['fromRange'](_0x4c8027);let _0x7c4cc5;_0x5c4f2d(_0x1385c0),_0x7c4cc5='$graveyard'==_0x103a87['root']['rootName']?_0x14dfbd['model']['createRange'](_0x4c8027['start']):_0x14dfbd['model']['createRange'](_0x103a87['start'],_0x103a87['end']),_0x103a87['detach'](),_0x14dfbd['model']['enqueueChange'](_0x132599['buffer']['batch'],_0x176745=>{_0x132599['buffer']['lock'](),_0x176745['setSelection'](_0x176745['createRange'](_0x7c4cc5['end'])),_0x132599['buffer']['unlock']();});});}}class Gt extends _0x91c494{['afterInit'](){const _0x25f217=this['editor'];if(!_0x25f217['plugins']['has']('ListEditing'))return;const _0x5c83ef=_0x25f217['locale'],_0x52328a=_0x25f217['plugins']['get']('TrackChangesEditing'),_0x3aa501=_0x25f217['plugins']['has']('TodoListEditing'),_0x1dcc4b=!!_0x25f217['config']['get']('list.multiBlock');function _0x3dcb21(_0x584494){return{'type':'format','content':''+At(_0x5c83ef,'*Set\x20format:*\x20%0',_0x584494)};}function _0x2a18a9(_0x5c23a7){return{'type':'format','content':''+At(_0x5c83ef,'*Remove\x20format:*\x20%0',_0x5c23a7)};}_0x52328a['enableDefaultAttributesIntegration']('numberedList'),_0x52328a['enableDefaultAttributesIntegration']('bulletedList'),_0x52328a['enableDefaultAttributesIntegration']('customNumberedList'),_0x52328a['enableDefaultAttributesIntegration']('customBulletedList'),_0x52328a['enableDefaultAttributesIntegration']('indentList'),_0x52328a['enableDefaultAttributesIntegration']('outdentList'),_0x52328a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x52328a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1dcc4b&&(_0x52328a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x52328a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3aa501&&(_0x52328a['enableDefaultAttributesIntegration']('todoList'),_0x52328a['enableDefaultAttributesIntegration']('checkTodoList'),_0x52328a['descriptionFactory']['registerDescriptionCallback'](_0x5cf7a9=>{const {data:_0x53b729}=_0x5cf7a9;if(_0x53b729&&'todoListChecked'==_0x53b729['key'])return{'type':'format','content':_0x53b729['newValue']?At(_0x5c83ef,'*Check\x20item*'):At(_0x5c83ef,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4bacc0=>{if(_0x4bacc0['batch']['isUndo'])return!0x1;let _0x595aeb=!0x1;const _0x27552b=_0x52328a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7fd1a1=>'todoListChecked'===_0x52328a['_getAttributeKey'](_0x7fd1a1));for(const _0x32f7de of _0x27552b){'todo'!=_0x32f7de['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x52328a['_findSuggestions'](_0x32f7de['getFirstRange'](),'attribute')['find'](_0x349d08=>'listType'===_0x52328a['_getAttributeKey'](_0x349d08['suggestion']))||(_0x4bacc0['removeMarker'](_0x32f7de['getFirstMarker']()),_0x595aeb=!0x0));}return _0x595aeb;})),_0x52328a['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x5c83ef,'FORMAT_INDENT'));const _0x4d8348={'type':'format','content':''};_0x52328a['descriptionFactory']['registerDescriptionCallback'](_0x3c1479=>{const {data:_0x5d0f5a}=_0x3c1479;if(!_0x5d0f5a||'listType'!=_0x5d0f5a['key'])return;let _0x502780=_0x3c1479['head'];for(;_0x502780;){if(_0x502780['data']&&(('listStyle'==_0x502780['data']['key']||'listMarkerStyle'==_0x502780['data']['key'])&&(_0x502780['data']['newValue']&&'default'!=_0x502780['data']['newValue']||'default'!=_0x502780['data']['oldValue']&&!_0x5d0f5a['newValue'])||!_0x1dcc4b&&_0x502780['data']['key']==Ke))return _0x4d8348;_0x502780=_0x502780['next'];}if(null==_0x5d0f5a['newValue'])switch(_0x5d0f5a['oldValue']){case'bulleted':return _0x2a18a9(At(_0x5c83ef,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a18a9(At(_0x5c83ef,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a18a9(At(_0x5c83ef,'ELEMENT_TODO_LIST'));}switch(_0x5d0f5a['newValue']){case'bulleted':return _0x3dcb21(At(_0x5c83ef,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3dcb21(At(_0x5c83ef,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3dcb21(At(_0x5c83ef,'ELEMENT_TODO_LIST'));}}),_0x52328a['descriptionFactory']['registerDescriptionCallback'](_0x55aea4=>{const {data:_0x2f90d9}=_0x55aea4;if(_0x2f90d9&&'listIndent'==_0x2f90d9['key'])return null==_0x2f90d9['newValue']||null==_0x2f90d9['oldValue']&&0x0==_0x2f90d9['newValue']?_0x4d8348:void 0x0;}),_0x52328a['descriptionFactory']['registerDescriptionCallback'](_0x3d41ae=>{if('attribute'!=_0x3d41ae['type'])return;const {data:_0x4b8ab2}=_0x3d41ae;if(!_0x4b8ab2||'listItemId'!=_0x4b8ab2['key'])return;const _0x3ad9e8=Ht(_0x3d41ae);return'newValue'==_0x3ad9e8?{'type':'format','content':At(_0x5c83ef,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3ad9e8?{'type':'format','content':At(_0x5c83ef,'*Split:*\x20list\x20item')}:_0x4d8348;}),_0x25f217['model']['document']['registerPostFixer'](_0x43da6c=>this['listItemIdFixer'](_0x43da6c)),_0x25f217['model']['document']['registerPostFixer'](_0x170d19=>this['noTrackChangesFixer'](_0x170d19)),_0x25f217['model']['document']['on']('change:data',(_0x2a7701,_0x176cd8)=>{if(_0x176cd8['isUndo']||!_0x176cd8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2a0329){if(_0x2a0329['batch']['isUndo']||!_0x2a0329['batch']['isLocal'])return!0x1;let _0x1790e0=!0x1;const _0x3692ba=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x515a9b=>_0x515a9b['data']&&'listItemId'==_0x515a9b['data']['key'])['filter'](_0x3d182e=>_0x3d182e['data']['newValue']&&_0x3d182e['data']['oldValue']);for(const _0x3dcf92 of _0x3692ba)Ht(_0x3dcf92)||(_0x2a0329['removeMarker'](_0x3dcf92['getFirstMarker']()),_0x1790e0=!0x0);return _0x1790e0;}['noTrackChangesFixer'](_0x4b1e3a){if(_0x4b1e3a['batch']['isUndo']||!_0x4b1e3a['batch']['isLocal'])return!0x1;const _0xdc940a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xdc940a['trackChangesCommand']['value'])return!0x1;let _0x314540=!0x1;const _0x45293f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5a70a4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3f23f0=>'attribute'==_0x3f23f0['type'])['filter'](_0x584e4a=>_0x45293f['includes'](_0x584e4a['attributeKey']));if(0x0==_0x5a70a4['length'])return _0x314540;for(const _0x176038 of _0x5a70a4){const _0x2dc6fa=_0xdc940a['_findSuggestions'](_0x176038['range'],'attribute')['filter'](_0x5a7b18=>!_0x5a7b18['meta']['isNextTo'])['map'](_0xfb50b=>_0xfb50b['suggestion'])['filter'](_0x4d9611=>{const _0x49613b=_0xdc940a['_getAttributeKey'](_0x4d9611);return _0x45293f['includes'](_0x49613b);});if(_0x2dc6fa['length']){for(const _0x1e7a07 of _0x2dc6fa)_0x4b1e3a['removeMarker'](_0x1e7a07['getFirstMarker']());_0x314540=!0x0;}}return _0x314540;}['assureChains'](){const _0x4e5e9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35e4f5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xe130df;const _0x25a909=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3700ee=>{if(_0x3700ee['data']['oldRange']||!_0x3700ee['data']['newRange'])return null;if(!_0x3700ee['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4e578b}=_0x548e4a(_0x3700ee['name']);if(!_0x4e5e9b['hasSuggestion'](_0x4e578b))return null;const _0x2f717d=_0x4e5e9b['getSuggestion'](_0x4e578b);return _0x35e4f5['includes'](_0x2f717d['data']['key']);})['map'](_0x373df3=>{const {id:_0x3e97d1}=_0x548e4a(_0x373df3['name']),_0x1317ca=_0x4e5e9b['getSuggestion'](_0x3e97d1);return _0xe130df=_0x1317ca['attributes']['groupId'],_0x1317ca['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x25a909['size'])return;const _0x41944f=_0x4e5e9b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x552af3=>'attribute'==_0x552af3['type']&&_0x552af3['data']&&_0x35e4f5['includes'](_0x552af3['data']['key'])&&_0x552af3['attributes']['groupId']!=_0xe130df)['map'](_0x317c1b=>({'listItem':_0x317c1b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x317c1b['attributes']['groupId']})),_0x37a029=new Set();for(const {groupId:_0x59886f,listItem:_0x1a901b}of _0x41944f)_0x25a909['has'](_0x1a901b)&&_0x37a029['add'](_0x59886f);for(const _0x56cdaa of _0x4e5e9b['getSuggestions']())_0x37a029['has'](_0x56cdaa['attributes']['groupId'])&&_0x56cdaa['setAttribute']('groupId',_0xe130df);}['_supportLegacySuggestions'](){const _0x4a7bb7=this['editor'],_0x398b37=_0x4a7bb7['locale'],_0x5abe11=_0x4a7bb7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5abe11['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2feb41,_0x134e82){const _0xc980d7=[];for(let _0x47d982 of _0x2feb41)_0x47d982['start']['nodeAfter']===_0x47d982['end']['parent']&&(_0x47d982=_0x4a7bb7['model']['createRange'](_0x4a7bb7['model']['createPositionAt'](_0x47d982['start']['nodeAfter'],0x0))),_0xc980d7['push'](_0x47d982);_0x4a7bb7['model']['change'](_0x1c3108=>{const _0x29054f=_0x4a7bb7['model']['document']['selection'],_0xdb6c63=Array['from'](_0x29054f['getRanges']())['map'](_0x388914=>_0xa6acbf['fromRange'](_0x388914));_0x1c3108['setSelection'](_0xc980d7),_0x4a7bb7['commands']['get'](_0x134e82['commandName'])['refresh'](),_0x134e82['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a7bb7['execute'](_0x134e82['commandName'],..._0x134e82['commandParams']),_0x1c3108['setSelection'](_0xdb6c63);for(const _0x3e5f17 of _0xdb6c63)_0x3e5f17['detach']();});}),_0x5abe11['descriptionFactory']['registerElementLabel'](function(_0xa33abd){const _0x6d6213=!_0x4a7bb7['model']['schema']['isObject'](_0xa33abd),_0x126b92=_0xa33abd['previousSibling'],_0x456833=_0xa33abd['nextSibling'],_0x5ed2ff=_0xa33abd['getAttribute']('listItemId'),_0x4f3fee=!_0x126b92||_0x126b92['getAttribute']('listItemId')!==_0x5ed2ff,_0x2e1efa=!_0x456833||_0x456833['getAttribute']('listItemId')!==_0x5ed2ff;return _0x6d6213&&Boolean(_0x5ed2ff)&&_0x4f3fee&&_0x2e1efa;},_0x9b25bc=>At(_0x398b37,'ELEMENT_LIST_ITEM',_0x9b25bc));}['_registerLegacyDescription'](){const _0x206bd2=this['editor'],_0x5a35e5=_0x206bd2['locale'];function _0x45b41f(_0x433517){const _0x225d84=_0x206bd2['commands']['get']('bulletedList')['value'],_0x1c0b2e=_0x206bd2['commands']['get']('numberedList')['value'];return'numberedList'===_0x433517?_0x225d84:_0x1c0b2e;}_0x206bd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1a8f48){if('formatBlock'!=_0x1a8f48['type'])return;const {data:_0x1cb20f}=_0x1a8f48;if(!_0x1cb20f)return;let _0x223d4a,_0x1d23eb,_0x5b53b8,_0xece20c;switch(_0x1cb20f['commandName']){case'bulletedList':_0x5b53b8=_0x1cb20f['commandParams'][0x0]['forceValue'],_0xece20c=_0x45b41f(_0x1cb20f['commandName']),_0x223d4a=_0x5b53b8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xece20c&&_0x206bd2['config']['get']('list.multiBlock')||(_0x223d4a='*Change\x20to:*\x20%0'),_0x1d23eb={'type':'format','content':At(_0x5a35e5,_0x223d4a,At(_0x5a35e5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5b53b8=_0x1cb20f['commandParams'][0x0]['forceValue'],_0xece20c=_0x45b41f(_0x1cb20f['commandName']),_0x223d4a=_0x5b53b8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xece20c&&_0x206bd2['config']['get']('list.multiBlock')||(_0x223d4a='*Change\x20to:*\x20%0'),_0x1d23eb={'type':'format','content':At(_0x5a35e5,_0x223d4a,At(_0x5a35e5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x223d4a='*Indent:*\x20%0',_0x1d23eb={'type':'format','content':At(_0x5a35e5,_0x223d4a,At(_0x5a35e5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x223d4a=function(_0x1dca82){const _0x27f349=_0x1dca82['getFirstRange']();let _0xef4bf5=_0x27f349['start']['nodeAfter'];for(;_0xef4bf5&&_0x27f349['containsItem'](_0xef4bf5);){if(_0xef4bf5['getAttribute']('listIndent')>0x0)return!0x1;_0xef4bf5=_0xef4bf5['nextSibling'];}return!0x0;}(_0x1a8f48)?At(_0x5a35e5,'*Format:*\x20remove\x20from\x20%0',At(_0x5a35e5,function(_0xaee85c){return'ELEMENT_'+_0xaee85c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1a8f48))):At(_0x5a35e5,'*Outdent:*\x20%0',At(_0x5a35e5,'ELEMENT_LIST_ITEM')),_0x1d23eb={'type':'format','content':_0x223d4a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1cb20f['multipleBlocks']&&(_0x223d4a='*Merge:*\x20%0',_0x1d23eb={'type':'deletion','content':At(_0x5a35e5,_0x223d4a,At(_0x5a35e5,'ELEMENT_LIST_ITEM'))});}return _0x1d23eb;});}}function Ht(_0x342fee){let _0x2c96eb=_0x342fee['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2c96eb;){const _0x4f6f73=_0x2c96eb['getAttribute']('listItemId');if(!_0x4f6f73)return!0x1;if(_0x4f6f73==_0x342fee['data']['newValue'])return'newValue';if(_0x4f6f73==_0x342fee['data']['oldValue'])return'oldValue';_0x2c96eb=_0x2c96eb['previousSibling'];}return!0x1;}class $t extends _0x91c494{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x56750a=this['editor']['config']['get']('list.properties'),_0x45e8ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x56750a['styles']&&_0x45e8ca['enableDefaultAttributesIntegration']('listStyle'),_0x56750a['reversed']&&_0x45e8ca['enableDefaultAttributesIntegration']('listReversed'),_0x56750a['startIndex']&&_0x45e8ca['enableDefaultAttributesIntegration']('listStart');const _0x1bafaa={'type':'format','content':''};_0x45e8ca['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x14a0b2=this['editor']['locale'];_0x45e8ca['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x14a0b2,'FORMAT_LIST_REVERSED')),_0x45e8ca['descriptionFactory']['registerDescriptionCallback'](_0x3d630c=>{const {data:_0xbcd829}=_0x3d630c;if(_0xbcd829&&'listReversed'==_0xbcd829['key'])return null==_0xbcd829['newValue']||0x0==_0xbcd829['newValue']&&null==_0xbcd829['oldValue']?_0x1bafaa:void 0x0;}),_0x45e8ca['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x14a0b2,'FORMAT_LIST_START')),_0x45e8ca['descriptionFactory']['registerDescriptionCallback'](_0x13df00=>{const {data:_0x2331b8}=_0x13df00;if(_0x2331b8&&'listStart'==_0x2331b8['key'])return null==_0x2331b8['newValue']||0x1==_0x2331b8['newValue']&&null==_0x2331b8['oldValue']?_0x1bafaa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4744dd=>{if(_0x4744dd['batch']['isUndo'])return!0x1;let _0x5c4a68=!0x1;const _0x5a577a=_0x45e8ca['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x363898=>{const _0x38c994=_0x45e8ca['_getAttributeKey'](_0x363898);return'listStart'==_0x38c994||'listReversed'==_0x38c994;});for(const _0x3c8cc7 of _0x5a577a){const _0x3f4082=_0x3c8cc7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3f4082||'customNumbered'==_0x3f4082)continue;_0x45e8ca['_findSuggestions'](_0x3c8cc7['getFirstRange'](),'attribute')['find'](_0x2ef792=>'listType'==_0x45e8ca['_getAttributeKey'](_0x2ef792['suggestion']))||(_0x4744dd['removeMarker'](_0x3c8cc7['getFirstMarker']()),_0x5c4a68=!0x0);}return _0x5c4a68;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5890e2){const _0x478f90=this['editor']['locale'],{data:_0x2e5ab7}=_0x5890e2,_0x389e73={'type':'format','content':''};if(!_0x2e5ab7||'listStyle'!=_0x2e5ab7['key'])return;if(!_0x2e5ab7['oldValue'])return'default'==_0x2e5ab7['newValue']?_0x389e73:{'type':'format','content':''+At(_0x478f90,'*Set\x20format:*\x20%0',At(_0x478f90,this['_getTranslationKeyForListStyle'](_0x2e5ab7['newValue'])))};if(!_0x2e5ab7['newValue']){if('default'==_0x2e5ab7['oldValue'])return _0x389e73;let _0x2bf3f7=_0x5890e2['head'];for(;_0x2bf3f7;){if(_0x2bf3f7['data']&&'listType'==_0x2bf3f7['data']['key']&&_0x2bf3f7['data']['newValue'])return _0x389e73;_0x2bf3f7=_0x2bf3f7['next'];}return{'type':'format','content':''+At(_0x478f90,'*Remove\x20format:*\x20%0',At(_0x478f90,this['_getTranslationKeyForListStyle'](_0x2e5ab7['oldValue'])))};}if('default'!=_0x2e5ab7['newValue'])return{'type':'format','content':''+At(_0x478f90,'*Set\x20format:*\x20%0',At(_0x478f90,this['_getTranslationKeyForListStyle'](_0x2e5ab7['newValue'])))};let _0x37cb20=_0x5890e2['head'];for(;_0x37cb20;){if(_0x37cb20['data']&&'listType'==_0x37cb20['data']['key']&&_0x37cb20['data']['newValue']&&_0x37cb20['data']['oldValue'])return _0x389e73;_0x37cb20=_0x37cb20['next'];}return{'type':'format','content':At(_0x478f90,'*Set\x20format:*\x20%0',At(_0x478f90,'ELEMENT_'+_0x5890e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x487b63=this['editor'],_0x438100=_0x487b63['locale'];_0x487b63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b451d=>{if('formatBlock'!=_0x1b451d['type'])return;const {data:_0x21a5eb}=_0x1b451d;if(!_0x21a5eb)return;let _0x3171b3,_0x491b81;switch(_0x21a5eb['commandName']){case'listStyle':_0x3171b3='*Change\x20to:*\x20%0',_0x491b81={'type':'format','content':At(_0x438100,_0x3171b3,At(_0x438100,this['_getTranslationKeyForListStyle'](_0x21a5eb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3171b3=_0x21a5eb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x491b81={'type':'format','content':At(_0x438100,_0x3171b3)};break;case'listStart':_0x3171b3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x491b81={'type':'format','content':At(_0x438100,_0x3171b3,_0x21a5eb['commandParams'][0x0]['startIndex'])};}return _0x491b81;});}['_getTranslationKeyForListStyle'](_0x2b201c){return'ELEMENT_'+function(_0x1f5cf9){if(Wt['includes'](_0x1f5cf9))return'bulleted';if(Vt['includes'](_0x1f5cf9))return'numbered';return null;}(_0x2b201c)['toUpperCase']()+'_LIST_'+_0x2b201c['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x91c494{['afterInit'](){const _0x51838c=this['editor'];_0x51838c['commands']['get']('emoji')&&_0x51838c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x91c494{static get['requires'](){return[lt];}['init'](){const _0x4886cd=this['editor'],_0x5a0f45=_0x4886cd['plugins']['get']('TrackChangesEditing'),_0x1f63ae=_0x4886cd['commands']['get']('enter');_0x5a0f45['enableCommand']('enter',()=>{_0x4886cd['model']['change'](_0x123134=>{const _0x337a9f=_0x4886cd['model']['document']['selection'],_0x15f597=_0x337a9f['getFirstPosition'](),_0x26d949=_0xa6acbf['fromRange'](_0x337a9f['getFirstRange']());if(_0x1f63ae['enterBlock'](_0x123134)){const _0x3eab44=_0x4886cd['model']['createPositionAt'](_0x15f597['parent']['nextSibling'],0x0),_0x35c55d=_0x123134['createRange'](_0x15f597,_0x3eab44);_0x5a0f45['markInsertion'](_0x35c55d);}else _0x123134['setSelection'](_0x123134['createRange'](_0x26d949['end']));_0x26d949['detach'](),_0x1f63ae['fire']('afterExecute',{'writer':_0x123134});});});}}class Kt extends _0x91c494{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x21b3bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x21b3bd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x21b3bd['enableCommand']('findNext'),_0x21b3bd['enableCommand']('findPrevious'),_0x21b3bd['enableCommand']('replace'),_0x21b3bd['enableCommand']('replaceAll');}['handleFindCommand'](_0x26a225,_0x11f9c8,_0x286da9={}){const _0x36614e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26a225(_0x2a559f=>{let _0x31eb8b=('string'==typeof _0x11f9c8?_0x36614e['findByTextCallback'](_0x11f9c8,_0x286da9):_0x11f9c8)(_0x2a559f);Array['isArray'](_0x31eb8b)&&(_0x31eb8b={'results':_0x31eb8b,'searchText':'string'==typeof _0x11f9c8?_0x11f9c8:''});const _0xcc3b80=_0x31eb8b['results']['filter'](_0x499d51=>!0x1===this['_isInDeletionRange'](_0x499d51,_0x2a559f['item']));return{..._0x31eb8b,'results':_0xcc3b80};},_0x286da9);}['_isInDeletionRange'](_0x5234f0,_0x11c4e9){const _0x4dd221=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11c4e9,_0x5234f0['start']),this['editor']['model']['createPositionAt'](_0x11c4e9,_0x5234f0['end']));for(const _0x396a93 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4dd221['getIntersection'](_0x396a93['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x91c494{['afterInit'](){const _0x20a677=this['editor']['locale'],_0x452f2e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x330f42,commandName:_0x18f51d}of Xt)this['editor']['plugins']['has'](_0x330f42)&&_0x452f2e['enableDefaultAttributesIntegration'](_0x18f51d);_0x452f2e['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x20a677,'FORMAT_FONT_SIZE')),_0x452f2e['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x20a677,'FORMAT_FONT_FAMILY')),_0x452f2e['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x20a677,'FORMAT_FONT_COLOR')),_0x452f2e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x20a677,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16d11e=this['editor'],_0x42f1e5=_0x16d11e['locale'];_0x16d11e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcf16f3=>{const _0x5a9fd1=_0x42f1e5['t'];if('formatInline'!=_0xcf16f3['type'])return;const {data:_0x173fa7}=_0xcf16f3;if(null!=_0x173fa7){if('fontSize'==_0x173fa7['commandName']){const _0xdd9922=_0x173fa7['commandParams'][0x0]['value'];if(_0xdd9922){const _0x4a99d0=_0x5a9fd1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1eabcb=>_0x1eabcb['model']==_0xdd9922)['title'])['toLowerCase']();return{'type':'format','content':At(_0x42f1e5,'*Set\x20font\x20size:*\x20%0',_0x4a99d0)};}return{'type':'format','content':At(_0x42f1e5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x173fa7['commandName']){const _0x34d333=_0x173fa7['commandParams'][0x0]['value'];return _0x34d333?{'type':'format','content':At(_0x42f1e5,'*Set\x20font\x20family:*\x20%0',_0x34d333)}:{'type':'format','content':At(_0x42f1e5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x173fa7['commandName']){const _0x1dc677=_0x173fa7['commandParams'][0x0]['value'];if(_0x1dc677){const _0x4b6929=_0x4728ec(this['editor']['config']['get']('fontColor.colors'))['find'](_0x483527=>_0x483527['model']==_0x1dc677);let _0x52cef9=_0x1dc677,_0x50c93d='';return _0x4b6929&&(_0x52cef9=_0x4b6929['label'],_0x50c93d=_0x5a9fd1(_0x52cef9)['toLowerCase']()),{'type':'format','content':At(_0x42f1e5,'*Set\x20font\x20color:*\x20%0',_0x50c93d)['trim'](),'color':{'value':_0x1dc677,'title':_0x50c93d||_0x52cef9}};}return{'type':'format','content':At(_0x42f1e5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x173fa7['commandName']){const _0x38b7e4=_0x173fa7['commandParams'][0x0]['value'];if(_0x38b7e4){const _0x5ae09f=_0x4728ec(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x17a318=>_0x17a318['model']==_0x38b7e4);let _0x10e0c7=_0x38b7e4,_0x1a1b07='';return _0x5ae09f&&(_0x10e0c7=_0x5ae09f['label'],_0x1a1b07=_0x5a9fd1(_0x10e0c7)['toLowerCase']()),{'type':'format','content':At(_0x42f1e5,'*Set\x20font\x20background\x20color:*\x20%0',_0x1a1b07)['trim'](),'color':{'value':_0x38b7e4,'title':_0x1a1b07||_0x10e0c7}};}return{'type':'format','content':At(_0x42f1e5,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x91c494{['afterInit'](){const {plugins:_0x59f22a}=this['editor'];_0x59f22a['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x59f22a['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x1bbb4e,plugins:_0xa0201,commands:_0x396219}=this['editor'],_0x53ca51=_0xa0201['get']('TrackChangesEditing');_0x396219['get']('footnotesStyle')&&_0x53ca51['enableDefaultAttributesIntegration']('footnotesStyle'),_0x396219['get']('footnotesStart')&&_0x53ca51['enableDefaultAttributesIntegration']('footnotesStart'),_0x53ca51['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x1bbb4e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x53ca51['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x1bbb4e,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x904297=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3a636c,commands:_0x2012a5}=this['editor'];_0x2012a5['get']('insertFootnote')&&_0x904297['enableCommand']('insertFootnote'),_0x904297['descriptionFactory']['registerElementLabel']('footnoteRef',_0x574045=>At(_0x3a636c,'ELEMENT_FOOTNOTE_REF',_0x574045)),_0x904297['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x2af791=>At(_0x3a636c,'ELEMENT_FOOTNOTE_DEFINITION',_0x2af791)),_0x904297['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x33ce0a=>At(_0x3a636c,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x33ce0a));}}class Qt extends _0x91c494{['afterInit'](){const _0x5fb68=this['editor'],_0x16caf7=_0x5fb68['plugins']['get']('TrackChangesEditing'),_0x405b56=_0x5fb68['commands']['get']('copyFormat'),_0x144490=_0x5fb68['commands']['get']('pasteFormat');_0x405b56&&_0x144490&&(_0x16caf7['enableDefaultAttributesIntegration']('pasteFormat'),_0x16caf7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2ce67c=this['editor'],_0x5aa29d=_0x2ce67c['locale'];_0x2ce67c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x273eaf=>{if('formatBlock'!=_0x273eaf['type']&&'formatInline'!=_0x273eaf['type'])return;const {data:_0x4ad7c4}=_0x273eaf;if(_0x4ad7c4&&'pasteFormat'===_0x4ad7c4['commandName']){const _0x389e31=[],_0x33a8b9=_0x4ad7c4['commandParams'][0x0];for(const [_0x3cff7d,_0x245111]of Object['entries'](_0x33a8b9))_0x389e31['push'](Zt(_0x2ce67c,_0x3cff7d,_0x245111));return _0x389e31['length']?{'type':'format','content':At(_0x5aa29d,'*Set\x20format\x20to:*\x20%0',_0x389e31['join'](',\x20'))}:{'type':'format','content':At(_0x5aa29d,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x33d6ad,_0x466052,_0x3bf0a5){const _0x2d4a3b=_0x33d6ad['locale']['t'],_0x450bb2=_0x466052['split'](/(?=[A-Z])/)['join']('\x20'),_0x15ae92=_0x2d4a3b(_0x450bb2['charAt'](0x0)['toUpperCase']()+_0x450bb2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3bf0a5)return _0x15ae92;if('fontColor'===_0x466052||'fontBackgroundColor'===_0x466052){const _0x556eef=_0x4728ec(_0x33d6ad['config']['get']('fontColor.colors'))['find'](_0x1127d8=>_0x1127d8['model']==_0x3bf0a5);return _0x15ae92+'\x20('+(_0x556eef?_0x2d4a3b(_0x556eef['label'])['toLowerCase']():_0x3bf0a5)+')';}if('fontSize'===_0x466052&&isNaN(parseFloat(_0x3bf0a5))){const _0x35c097=_0x33d6ad['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x33d6ad['config']['get']('fontSize.options'))['find'](_0xd1f61f=>_0xd1f61f['model']==_0x3bf0a5);return _0x15ae92+'\x20('+(_0x35c097?_0x2d4a3b(_0x35c097['title'])['toLowerCase']():_0x3bf0a5)+')';}return _0x15ae92+'\x20('+_0x3bf0a5+')';}class Jt extends _0x91c494{['_headingOptions'];['afterInit'](){const _0x3d9a1f=this['editor'];if(!_0x3d9a1f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3d9a1f['config']['get']('heading.options');const _0x485cb9=_0x3d9a1f['locale'],_0x4c26db=_0x3d9a1f['plugins']['get']('TrackChangesEditing');_0x4c26db['enableDefaultAttributesIntegration']('heading');for(const _0x518e99 of this['_headingOptions'])'paragraph'!=_0x518e99['model']&&_0x4c26db['descriptionFactory']['registerElementLabel'](_0x518e99['model'],_0x1640c4=>{const _0x5e2bef=this['_getHeadingLevel'](_0x518e99['model']);return null!==_0x5e2bef?_0x2f5ed6(_0x1640c4,_0x5e2bef):_0x535ae0(_0x1640c4,_0x518e99['title']);});function _0x2f5ed6(_0x51a85f,_0x56ca72){return At(_0x485cb9,'ELEMENT_HEADING',[_0x51a85f,_0x56ca72]);}function _0x535ae0(_0x50a175,_0x11ec4d){return At(_0x485cb9,'ELEMENT_HEADING_CUSTOM',[_0x50a175,_0x11ec4d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e12ab=this['editor'],_0x1abd07=_0x1e12ab['locale'];function _0x452f7d(_0x23dae3,_0x18f9f9){return At(_0x1abd07,'ELEMENT_HEADING_CUSTOM',[_0x23dae3,_0x18f9f9]);}_0x1e12ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59bcc8=>{if('formatBlock'!=_0x59bcc8['type'])return;const {data:_0x1a293b}=_0x59bcc8;if(_0x1a293b&&'heading'==_0x1a293b['commandName']){const _0x1c3570=_0x1a293b['commandParams'][0x0]['value'],_0x55b29f=this['_getHeadingLevel'](_0x1c3570);if(null!==_0x55b29f)return{'type':'format','content':At(_0x1abd07,'*Change\x20to:*\x20%0',(_0x1be2bc=0x1,_0x388caf=_0x55b29f,At(_0x1abd07,'ELEMENT_HEADING',[_0x1be2bc,_0x388caf])))};const _0x37ec38=this['_headingOptions']['find'](_0x104f10=>_0x104f10['model']===_0x1c3570)['title'];return{'type':'format','content':At(_0x1abd07,'*Change\x20to:*\x20%0',_0x452f7d(0x1,_0x37ec38))};}var _0x1be2bc,_0x388caf;});}['_getHeadingLevel'](_0x3ff22f){const _0x19c1c4=_0x3ff22f['match'](/^heading(\d+)/);if(_0x19c1c4)return _0x19c1c4[0x1];const _0x479a2c=this['_headingOptions']?.['find'](_0x184718=>_0x184718['model']==_0x3ff22f);if(_0x479a2c&&_0x479a2c['view']){const _0x21a25c=_0x479a2c['view'],_0x1fa41a=(_0x21a25c['name']??_0x21a25c)['match'](/^h(\d+)/);if(_0x1fa41a)return _0x1fa41a[0x1];}return null;}}class te extends _0x91c494{['afterInit'](){const _0x5f25ee=this['editor'];if(!_0x5f25ee['plugins']['has']('HighlightEditing'))return;const _0x26411d=_0x5f25ee['plugins']['get']('TrackChangesEditing'),_0x18d5c3=_0x5f25ee['locale'];_0x26411d['enableDefaultAttributesIntegration']('highlight'),_0x26411d['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x18d5c3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54297e=this['editor'],_0x3b09cc=_0x54297e['locale'];_0x54297e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d18e0=>{if('formatInline'!=_0x4d18e0['type'])return;const {data:_0x227ad8}=_0x4d18e0;if(_0x227ad8&&'highlight'==_0x227ad8['commandName']){const _0x30a358=_0x3b09cc['t'],_0x304e74=_0x227ad8['commandParams'][0x0]['value'];if(_0x304e74){const _0x37c09c=_0x54297e['config']['get']('highlight.options')['find'](_0x5509ed=>_0x5509ed['model']==_0x304e74),_0x2adbfd=_0x30a358(_0x37c09c['title'])['toLowerCase']();return{'type':'format','content':At(_0x3b09cc,'*Set\x20highlight:*\x20%0',_0x2adbfd),'color':{'value':_0x37c09c['color'],'title':_0x37c09c['title']}};}return{'type':'format','content':At(_0x3b09cc,'*Remove\x20highlight*',At(_0x3b09cc,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x91c494{['afterInit'](){const _0x4b84bf=this['editor'];if(!_0x4b84bf['plugins']['has']('HorizontalLineEditing'))return;_0x4b84bf['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x388d81=_0x4b84bf['plugins']['get']('TrackChangesEditing'),_0x3ca9b3=_0x4b84bf['locale'];_0x388d81['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1b34d7=>At(_0x3ca9b3,'ELEMENT_HORIZONTAL_LINE',_0x1b34d7));}}class ne extends _0x91c494{['afterInit'](){const _0x2733bd=this['editor'];if(!_0x2733bd['plugins']['has']('HtmlEmbed'))return;const _0xaf7376=_0x2733bd['plugins']['get']('TrackChangesEditing'),_0x1cf12f=_0x2733bd['locale'];_0xaf7376['descriptionFactory']['registerElementLabel']('rawHtml',_0x1cc5de=>At(_0x1cf12f,'ELEMENT_HTML_EMBED',_0x1cc5de)),_0xaf7376['enableDefaultAttributesIntegration']('htmlEmbed'),_0xaf7376['descriptionFactory']['registerDescriptionCallback'](_0x83ad4f=>{if('attribute'!=_0x83ad4f['type'])return;const {data:_0x2e0223}=_0x83ad4f;if(_0x2e0223&&'value'==_0x2e0223['key']&&_0x83ad4f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x7e3fb8=At(_0x1cf12f,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x1cf12f,'*Change\x20%0\x20content*',_0x7e3fb8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a84e3=this['editor'],_0x79768=_0x4a84e3['locale'];_0x4a84e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf834be=>{if('formatBlock'!=_0xf834be['type'])return;const {data:_0x377ea4}=_0xf834be;if(_0x377ea4&&'htmlEmbed'==_0x377ea4['commandName']){const _0x58e298=At(_0x79768,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x79768,'*Change\x20%0\x20content*',_0x58e298)};}});}}class ie extends _0x91c494{['afterInit'](){const _0x1965f1=this['editor'];if(!_0x1965f1['plugins']['has']('ImageEditing'))return;const _0x2ef2b4=_0x1965f1['plugins']['get']('TrackChangesEditing'),_0x6011f0=_0x1965f1['plugins']['get']('ImageUtils'),_0x14f40b=_0x1965f1['locale'];_0x2ef2b4['enableCommand']('insertImage'),_0x2ef2b4['descriptionFactory']['registerElementLabel']('imageBlock',_0x3cc82f=>At(_0x14f40b,'ELEMENT_IMAGE',_0x3cc82f)),_0x2ef2b4['descriptionFactory']['registerElementLabel']('imageInline',_0x47c982=>At(_0x14f40b,'ELEMENT_INLINE_IMAGE',_0x47c982)),_0x2ef2b4['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x14f40b,'ELEMENT_CAPTION')),_0x1965f1['plugins']['has']('ImageUploadEditing')&&_0x2ef2b4['enableCommand']('uploadImage'),_0x1965f1['plugins']['has']('ImageBlockEditing')&&_0x1965f1['plugins']['has']('ImageInlineEditing')&&(_0x2ef2b4['enableCommand']('imageTypeInline',(_0x1b2653,_0x4bd9bc)=>{const _0xd90e4e=_0x6011f0['getClosestSelectedImageElement'](_0x1965f1['model']['document']['selection']);_0x1965f1['model']['change'](()=>{_0x2ef2b4['markBlockFormat'](_0xd90e4e,{'commandName':'imageTypeInline','commandParams':[_0x4bd9bc]},[],'convertBlockImageToInline');});}),_0x2ef2b4['enableCommand']('imageTypeBlock',(_0x21c4cf,_0x527bd6)=>{_0x1965f1['model']['change'](_0x402c66=>{let _0x3d0f34=_0x6011f0['getClosestSelectedImageElement'](_0x1965f1['model']['document']['selection']),_0x4d74da=_0x402c66['createRangeOn'](_0x3d0f34);const _0x43024b=tt['fromPosition'](_0x4d74da['start'],'toPrevious'),_0x55b96e=tt['fromPosition'](_0x4d74da['end'],'toNext');_0x2ef2b4['forceDefaultExecution'](()=>_0x21c4cf(_0x527bd6)),_0x3d0f34=_0x6011f0['getClosestSelectedImageElement'](_0x1965f1['model']['document']['selection']),_0x4d74da=_0x402c66['createRangeOn'](_0x3d0f34);const _0x9a1eda=_0x402c66['createRange'](_0x43024b,_0x55b96e);_0x43024b['detach'](),_0x55b96e['detach'](),_0x2ef2b4['markBlockFormat'](_0x3d0f34,{'commandName':'imageTypeInline','commandParams':[_0x527bd6]},[],'convertInlineImageToBlock'),_0x9a1eda['start']['isBefore'](_0x4d74da['start'])&&_0x2ef2b4['markInsertion'](_0x402c66['createRange'](_0x9a1eda['start'],_0x4d74da['start']),'convertInlineImageToBlock'),_0x4d74da['end']['isBefore'](_0x9a1eda['end'])&&_0x2ef2b4['markInsertion'](_0x402c66['createRange'](_0x4d74da['end'],_0x9a1eda['end']),'convertInlineImageToBlock');});}),_0x2ef2b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2ef2b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2ef2b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2ef2b4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2ef2b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2ef2b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1e9b44])=>{const _0x2b6c53=_0x2ef2b4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x21ef48=_0x1e9b44['start'],_0x5f2580=_0x1e9b44['end'];const _0x503b93=_0x1965f1['model']['schema']['getNearestSelectionRange'](_0x21ef48,'backward'),_0x2e4826=_0x1965f1['model']['schema']['getNearestSelectionRange'](_0x5f2580,'forward');_0x503b93['isCollapsed']&&(_0x21ef48=_0x503b93['start']),_0x2e4826['isCollapsed']&&(_0x5f2580=_0x2e4826['end']),_0x2b6c53([_0x1965f1['model']['createRange'](_0x21ef48,_0x5f2580)]);}),_0x2ef2b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1d533b),_0x2ef2b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1d533b)),_0x1965f1['plugins']['has']('ImageCaptionEditing')&&(_0x2ef2b4['enableCommand']('toggleImageCaption',(_0x1a7dc4,_0xf1fc57)=>{const _0xb91a39=_0x1965f1['plugins']['get']('ImageCaptionUtils');let _0xaca2b8=_0x6011f0['getClosestSelectedImageElement'](_0x1965f1['model']['document']['selection']),_0x334f42=_0xb91a39['getCaptionFromImageModelElement'](_0xaca2b8);_0x1965f1['model']['change'](()=>{if(_0x334f42)return void _0x2ef2b4['markDeletion'](_0x1965f1['model']['createRangeOn'](_0x334f42));const _0x357a88=_0x6011f0['isBlockImage'](_0xaca2b8);_0x1a7dc4(_0xf1fc57),_0xaca2b8=_0x6011f0['getClosestSelectedImageElement'](_0x1965f1['model']['document']['selection']),_0x334f42=_0xb91a39['getCaptionFromImageModelElement'](_0xaca2b8),_0x2ef2b4['markInsertion'](_0x1965f1['model']['createRangeOn'](_0x334f42),_0x357a88?null:'imageCaption');});}),_0x2ef2b4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1d533b));const _0xd15fed=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x359ba5(_0x3fcd27,_0x1a3ff3){const _0x6eb02a=_0xd15fed['findIndex'](({type:_0x1b4c16,subType:_0x28d7e5})=>_0x3fcd27['type']==_0x1b4c16&&_0x3fcd27['subType']==_0x28d7e5),_0x43a6b8=_0xd15fed['findIndex'](({type:_0x258fad,subType:_0x36e302})=>_0x1a3ff3['type']==_0x258fad&&_0x1a3ff3['subType']==_0x36e302);if(_0x6eb02a<0x0||_0x43a6b8<0x0)return!0x1;const _0x2d190b=_0x3fcd27['getFirstRange'](),_0x538904=_0x1a3ff3['getFirstRange']();if((0x0==_0x6eb02a||0x1==_0x6eb02a)&&0x2==_0x43a6b8&&_0x2d190b['isIntersecting'](_0x538904))return!0x0;if(0x2==_0x6eb02a&&0x3==_0x43a6b8){const _0x272c94=_0x2ef2b4['_findSuggestions'](_0x2d190b,'insertion')['filter'](({suggestion:_0x5de6e8,meta:_0x1b0765})=>_0x1b0765['isOwn']&&'convertInlineImageToBlock'==_0x5de6e8['subType']);if(_0x272c94['length']>0x1&&_0x538904['end']['isEqual'](_0x2d190b['start']))return!0x0;if(0x1==_0x272c94['length']&&(_0x2d190b['start']['isEqual'](_0x538904['end'])||_0x2d190b['end']['isEqual'](_0x538904['start'])))return!0x0;}if(0x3==_0x6eb02a&&0x3==_0x43a6b8&&_0x2d190b['start']['isBefore'](_0x538904['start'])){const _0x18cb61=_0x2d190b['end']['nodeAfter'],_0x2d1754=_0x538904['start']['nodeBefore'];return _0x6011f0['isBlockImage'](_0x18cb61)&&_0x18cb61===_0x2d1754;}return!0x1;}function _0x1d533b(_0x2013e1,_0x1284d7){return _0x359ba5(_0x2013e1,_0x1284d7)?[_0x2013e1,_0x1284d7]:_0x359ba5(_0x1284d7,_0x2013e1)?[_0x1284d7,_0x2013e1]:null;}_0x1965f1['plugins']['has']('ImageResize')&&(_0x2ef2b4['enableDefaultAttributesIntegration']('resizeImage'),_0x2ef2b4['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x14f40b,'FORMAT_IMAGE_SIZE'))),_0x1965f1['plugins']['has']('ImageTextAlternativeEditing')&&_0x2ef2b4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1965f1['plugins']['has']('PictureEditing')&&_0x2ef2b4['descriptionFactory']['registerDescriptionCallback'](_0x27225a=>{if('attribute'!=_0x27225a['type'])return;const {data:_0x2e0d7f}=_0x27225a;return _0x2e0d7f&&'sources'==_0x2e0d7f['key']?{'type':'format','content':''}:void 0x0;}),_0x1965f1['plugins']['has']('ImageSizeAttributes')&&_0x2ef2b4['descriptionFactory']['registerDescriptionCallback'](_0x475ab2=>{if('attribute'!=_0x475ab2['type'])return;const {data:_0x37321b}=_0x475ab2;return!_0x37321b||'width'!=_0x37321b['key']&&'height'!=_0x37321b['key']?void 0x0:{'type':'format','content':''};}),_0x2ef2b4['descriptionFactory']['registerDescriptionCallback'](_0x36e667=>{if(!!_0xd15fed['find'](({type:_0x3ea3b0,subType:_0x317b68})=>_0x36e667['type']==_0x3ea3b0&&_0x36e667['subType']==_0x317b68))return _0x36e667['previous']?{}:void 0x0;}),_0x2ef2b4['descriptionFactory']['registerDescriptionCallback'](_0x21d83b=>{if('insertion'==_0x21d83b['type']||'deletion'==_0x21d83b['type']){const _0xe6c41e=_0x21d83b['getContainedElement']();if(_0xe6c41e&&_0xe6c41e['is']('element','caption'))return{'type':'insertion'==_0x21d83b['type']?'addObject':'removeObject','element':_0xe6c41e,'quantity':0x1};}}),_0x2ef2b4['descriptionFactory']['registerDescriptionCallback'](_0x2b6f52=>'formatBlock'==_0x2b6f52['type']&&'convertInlineImageToBlock'==_0x2b6f52['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2b6f52['type']&&'convertBlockImageToInline'==_0x2b6f52['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2ef2b4['descriptionFactory']['registerDescriptionCallback'](_0x2b2676=>{if('attribute'!=_0x2b2676['type'])return;const {data:_0x2517fa}=_0x2b2676;if(!_0x2517fa||'alt'!=_0x2517fa['key'])return;const _0x374966=_0x2517fa['newValue'];return _0x374966?{'type':'format','content':At(_0x14f40b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x374966+'\x22')}:{'type':'format','content':At(_0x14f40b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb9092a=this['editor'],_0x1d582a=_0xb9092a['locale'];_0xb9092a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8f18=>{if('formatBlock'!=_0x4f8f18['type']&&'formatInline'!=_0x4f8f18['type'])return;const {data:_0x2d1176}=_0x4f8f18;if(_0x2d1176){if('imageTextAlternative'==_0x2d1176['commandName']){const _0x2c4da0=_0x2d1176['commandParams'][0x0]['newValue'];return _0x2c4da0?{'type':'format','content':At(_0x1d582a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c4da0+'\x22')}:{'type':'format','content':At(_0x1d582a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2d1176['commandName']){const _0x13a370=_0x2d1176['commandParams'][0x0]['width'];return _0x13a370?{'type':'format','content':At(_0x1d582a,'*Set\x20image\x20width:*\x20%0',_0x13a370)}:{'type':'format','content':At(_0x1d582a,'*Reset\x20image\x20width*')};}}});}}class se extends _0x91c494{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x357f27=this['editor']['locale'],_0x5e3bb4=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e3bb4['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5e3bb4['descriptionFactory']['registerDescriptionCallback'](_0x298f6f=>{if('attribute'!=_0x298f6f['type'])return;const {data:_0x5a74d5}=_0x298f6f;return _0x5a74d5&&'src'==_0x5a74d5['key']?_0x5a74d5['newValue']&&_0x5a74d5['oldValue']?{'type':'format','content':At(_0x357f27,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x112eba=this['editor']['plugins']['get']('TrackChangesEditing');_0x112eba['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x112eba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x112eba['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x112eba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x382fa4=this['editor'],_0x4f8d77=_0x382fa4['locale'];_0x382fa4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44ff66=>{if('formatBlock'!=_0x44ff66['type']&&'formatInline'!=_0x44ff66['type'])return;const {data:_0x44434c}=_0x44ff66;if(!_0x44434c||'replaceImageSource'!=_0x44434c['commandName'])return;return{'type':'format','content':At(_0x4f8d77,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x91c494{['afterInit'](){const _0x35dc2c=this['editor'];if(!_0x35dc2c['plugins']['has']('ImageStyleEditing'))return;const _0x4d38c5=_0x35dc2c['plugins']['get']('TrackChangesEditing'),_0x4ab282=_0x35dc2c['plugins']['get']('ImageUtils'),_0x130e1f={};_0x4d38c5['enableCommand']('imageStyle',(_0x978016,_0x54d6ad)=>{const _0x14b918=_0x35dc2c['plugins']['get']('Users')['me'],_0x5c574b=_0x35dc2c['commands']['get']('imageStyle');let _0x4ceb2a=_0x4ab282['getClosestSelectedImageElement'](_0x35dc2c['model']['document']['selection']),_0x224bb8=_0x35dc2c['model']['createRangeOn'](_0x4ceb2a),_0x323195=_0x5c574b['value'];if(_0x323195==_0x54d6ad['value'])return;const _0x9be375={'commandName':'imageStyle','commandParams':[_0x54d6ad],'formatGroupId':_0x932f3b()};_0x35dc2c['model']['change'](()=>{if(_0x4d38c5['getSuggestions']()['filter'](_0x1e52fe=>_0x1e52fe['isInContent']&&_0x14b918==_0x1e52fe['author']&&('formatBlock'==_0x1e52fe['type']||'formatInline'==_0x1e52fe['type'])&&('imageStylePreApply'==_0x1e52fe['subType']||'imageStylePostApply'==_0x1e52fe['subType'])&&_0x1e52fe['getFirstRange']()['isEqual'](_0x224bb8))['forEach'](_0x2bbc6e=>_0x4d38c5['discardSuggestion'](_0x2bbc6e['head'])),_0x4ceb2a=_0x4ab282['getClosestSelectedImageElement'](_0x35dc2c['model']['document']['selection']),_0x224bb8=_0x35dc2c['model']['createRangeOn'](_0x4ceb2a),_0x5c574b['refresh'](),_0x35dc2c['commands']['get']('imageTypeInline')['refresh'](),_0x35dc2c['commands']['get']('imageTypeBlock')['refresh'](),_0x323195=_0x5c574b['value'],_0x323195!=_0x54d6ad['value'])return _0x4ab282['isInlineImage'](_0x4ceb2a)&&_0x5c574b['shouldConvertImageType'](_0x54d6ad['value'],_0x4ceb2a)?(_0x978016({..._0x54d6ad,'setImageSizes':!0x1}),_0x4ceb2a=_0x4ab282['getClosestSelectedImageElement'](_0x35dc2c['model']['document']['selection']),void _0x4d38c5['markBlockFormat'](_0x4ceb2a,{..._0x9be375,'commandReversedParams':[{'value':_0x323195||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4ab282['isBlockImage'](_0x4ceb2a)?_0x4d38c5['markBlockFormat'](_0x4ceb2a,_0x9be375,[],'imageStylePostApply'):_0x4d38c5['markInlineFormat'](_0x224bb8,_0x9be375,'imageStylePostApply'));});});for(const _0x1d5280 of _0x35dc2c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x130e1f[_0x1d5280['name']]=_0x1d5280['title']['toLowerCase']();_0x4d38c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4d38c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4d38c5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4d38c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5e16c6])=>{_0x4ab282['setImageNaturalSizeAttributes'](_0x5e16c6['getContainedElement']());}),_0x4d38c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4413dd,_0x4ef5a3)=>{_0x4d38c5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4413dd,{'commandName':_0x4ef5a3['commandName'],'commandParams':_0x4ef5a3['commandReversedParams']});}),_0x4d38c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x6abf19,_0x2d3f31){if(_0x56ca1b(_0x6abf19,_0x2d3f31))return[_0x6abf19,_0x2d3f31];if(_0x56ca1b(_0x2d3f31,_0x6abf19))return[_0x2d3f31,_0x6abf19];return null;});const _0x19e3d4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x56ca1b(_0x31d6aa,_0x1ae409){const _0x4cf228=_0x19e3d4['findIndex'](({type:_0x372581,subType:_0x137fb8})=>_0x31d6aa['type']==_0x372581&&_0x31d6aa['subType']==_0x137fb8),_0x9678d7=_0x19e3d4['findIndex'](({type:_0x47d7e7,subType:_0x103ad7})=>_0x1ae409['type']==_0x47d7e7&&_0x1ae409['subType']==_0x103ad7);if(_0x4cf228<0x0||_0x9678d7<0x0)return!0x1;const _0x4fe322=_0x31d6aa['getFirstRange'](),_0x402c8c=_0x1ae409['getFirstRange']();if((0x0==_0x4cf228||0x1==_0x4cf228)&&0x2==_0x9678d7&&_0x4fe322['isIntersecting'](_0x402c8c))return!0x0;if(0x2==_0x4cf228&&0x3==_0x9678d7){const _0x16c7fa=_0x4d38c5['_findSuggestions'](_0x4fe322,'insertion')['filter'](({suggestion:_0x4d68af,meta:_0xc376f8})=>_0xc376f8['isOwn']&&'convertInlineImageToBlock'==_0x4d68af['subType']);if(_0x16c7fa['length']>0x1&&_0x402c8c['end']['isEqual'](_0x4fe322['start']))return!0x0;if(0x1==_0x16c7fa['length']&&(_0x4fe322['start']['isEqual'](_0x402c8c['end'])||_0x4fe322['end']['isEqual'](_0x402c8c['start'])))return!0x0;}if(0x3==_0x4cf228&&0x3==_0x9678d7&&_0x4fe322['start']['isBefore'](_0x402c8c['start'])){const _0x310580=_0x4fe322['end']['nodeAfter'],_0x114b83=_0x402c8c['start']['nodeBefore'];return _0x4ab282['isBlockImage'](_0x310580)&&_0x310580===_0x114b83;}return!0x1;}_0x35dc2c['model']['document']['registerPostFixer'](()=>{let _0x13ceed=!0x1;const _0x5f4acb=Array['from'](_0x35dc2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1017ec,data:_0x3e0f1a}of _0x5f4acb){const {group:_0x435dbf,type:_0x2b3d54,subType:_0x35c817,id:_0x35fc40}=_0x548e4a(_0x1017ec);if('suggestion'==_0x435dbf&&_0x4d38c5['hasSuggestion'](_0x35fc40)){if('formatBlock'==_0x2b3d54&&('imageStylePreApply'==_0x35c817||'imageStylePostApply'==_0x35c817)){const _0x326537=_0x4d38c5['getSuggestion'](_0x35fc40);if(_0x3e0f1a['newRange']){const _0x3f1b38=_0x326537['getFirstRange']()['getContainedElement']();if(_0x4ab282['isBlockImage'](_0x3f1b38))continue;_0x4d38c5['discardSuggestion'](_0x326537),_0x13ceed=!0x0;}}if('insertion'==_0x2b3d54&&'imageCaption'==_0x35c817&&!_0x3e0f1a['newRange']){const _0x1eb74d=_0x4d38c5['getSuggestion'](_0x35fc40);_0x1eb74d['next']&&_0x1eb74d['next']['isInContent']&&(_0x4d38c5['discardSuggestion'](_0x1eb74d['next']),_0x13ceed=!0x0);}}}return _0x13ceed;}),this['_registerLegacyDescription'](_0x130e1f);}['_registerLegacyDescription'](_0xed859b){const _0x1f6369=this['editor'],_0xe9107b=_0x1f6369['locale'];_0x1f6369['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11d1b4=>{if('formatBlock'!=_0x11d1b4['type']&&'formatInline'!=_0x11d1b4['type'])return;const {data:_0x27d84a}=_0x11d1b4;if(!_0x27d84a||'imageStyle'!=_0x27d84a['commandName'])return;const _0x38079c=_0x27d84a['commandParams'][0x0]['value'];return _0x25c9bc('side'===_0x38079c?At(_0xe9107b,'FORMAT_SIDE_IMAGE'):_0xed859b[_0x38079c]||_0x38079c);function _0x25c9bc(_0xd2d80d){return{'type':'format','content':At(_0xe9107b,'*Format:*\x20%0',_0xd2d80d)};}});}}class oe extends _0x91c494{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4dbabf){super(_0x4dbabf),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x291696=this['editor'],_0x2c939f=_0x291696['commands']['get']('importWord'),_0x4e2a64=_0x291696['commands']['get']('trackChanges');_0x2c939f&&(_0x2c939f['on']('execute',(_0x15c42b,[,_0x1883ef])=>{this['_trackChangesValueDuringImport']=_0x4e2a64['value'],_0x1883ef['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2c939f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2c939f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4e2a64['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x291696['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x234813,_0x4b206d){const {suggestions:_0x9f715d}=_0x4b206d,_0x5b3860=this['editor']['commands']['get']('trackChanges'),_0x323751=_0x5b3860['value'];this['_trackChangesValueDuringImport']!==_0x323751&&(_0x5b3860['execute'](),this['_trackChangesExecuted']=!0x0),_0x9f715d&&_0x9f715d['forEach'](({id:_0x370beb,type:_0x127c72,author:_0x32ac14,created_at:_0x5c1500})=>{const _0x3d9692={'id':_0x370beb,'type':_0x127c72,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x32ac14,'createdAt':_0x5c1500?new Date(_0x5c1500):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3d9692);});}}class ae extends _0x91c494{['afterInit'](){const _0xa27c83=this['editor'],_0x1ff936=_0xa27c83['plugins']['get']('TrackChangesEditing');if(_0xa27c83['plugins']['has']('IndentEditing')&&(_0x1ff936['enableCommand']('indent'),_0x1ff936['enableCommand']('outdent')),_0xa27c83['plugins']['has']('IndentBlock')){for(const _0x23a5b8 of['indentBlock','outdentBlock'])_0x1ff936['enableDefaultAttributesIntegration'](_0x23a5b8);if(_0xa27c83['plugins']['has']('ListEditing')){for(const _0x33b478 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x1ff936['enableDefaultAttributesIntegration'](_0x33b478);}}const _0x11d625=_0xa27c83['locale'];_0x1ff936['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x11d625,'FORMAT_INDENT')),_0x1ff936['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x11d625,'FORMAT_INDENT')),_0x1ff936['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x11d625,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17d51a=this['editor'],_0xe4f61f=_0x17d51a['locale'],_0x51d9ac=_0x17d51a['plugins']['get']('TrackChangesEditing');_0x51d9ac['descriptionFactory']['registerDescriptionCallback'](_0x273040=>{if('formatBlock'!=_0x273040['type'])return;const {data:_0x500ad}=_0x273040;if(!_0x500ad)return;if('indentBlock'!=_0x500ad['commandName']&&'outdentBlock'!=_0x500ad['commandName'])return;const _0x55c165=_0x273040['getItems']()[0x0],_0x164989=_0x51d9ac['descriptionFactory']['getItemLabel'](_0x55c165);return'indentBlock'==_0x500ad['commandName']?{'type':'format','content':At(_0xe4f61f,'*Indent:*\x20%0',_0x164989)}:'outdentBlock'==_0x500ad['commandName']?{'type':'format','content':At(_0xe4f61f,'*Outdent:*\x20%0',_0x164989)}:void 0x0;});}}class ce extends _0x91c494{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x91c494{['afterInit'](){const _0x52245c=this['editor'];if(!_0x52245c['plugins']['has']('LinkEditing'))return;const _0x307368=_0x52245c['plugins']['get']('TrackChangesEditing'),_0x2699a9=_0x52245c['commands']['get']('link');_0x307368['enableDefaultAttributesIntegration']('link'),_0x307368['enableDefaultAttributesIntegration']('unlink');for(const _0x3e2b62 of _0x2699a9['manualDecorators'])_0x307368['descriptionFactory']['registerAttributeLabel'](_0x3e2b62['id'],'link\x20('+_0x3e2b62['label']['toLowerCase']()+')');_0x307368['descriptionFactory']['registerDescriptionCallback'](_0x1668c5=>{if('attribute'!=_0x1668c5['type'])return;const {data:_0x446dd7}=_0x1668c5;if(!_0x446dd7||'linkHref'!=_0x446dd7['key'])return;const _0x3022d8=_0x446dd7['newValue'],_0x159da6=_0x52245c['locale'];return{'type':'format','content':null==_0x3022d8?At(_0x159da6,'*Remove\x20link*'):At(_0x159da6,'*Set\x20link:*\x20%0','\x22'+_0x3022d8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40c7d4=this['editor'],_0x365bb3=_0x40c7d4['locale'];_0x40c7d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x119bce=>{if('formatInline'!=_0x119bce['type'])return;const {data:_0x3fbb94}=_0x119bce;if(_0x3fbb94){if('link'==_0x3fbb94['commandName']){const _0x26b3c2=_0x3fbb94['commandParams'][0x0];return{'type':'format','content':At(_0x365bb3,'*Set\x20link:*\x20%0','\x22'+_0x26b3c2+'\x22')};}return'unlink'==_0x3fbb94['commandName']?{'type':'format','content':At(_0x365bb3,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x91c494{['afterInit'](){const _0x328bc5=this['editor'],_0x424c02=_0x328bc5['locale'];if(!_0x328bc5['plugins']['has']('LegacyListEditing'))return;const _0x18f60d=_0x328bc5['plugins']['get']('TrackChangesEditing'),_0x3dcdcd=_0x328bc5['plugins']['has']('LegacyTodoListEditing');function _0x342800(_0xda400b){return()=>{const _0x40a6d6=_0x328bc5['model']['document']['selection'],_0xab48cc=_0x328bc5['commands']['get'](_0xda400b);if(_0xab48cc['value'])return void _0x328bc5['execute']('paragraph',{});const _0x1e9066=_0xda400b['slice'](0x0,-0x4),_0x117a86=function(_0x481d79,_0x4898f1,_0x125ee3){let _0x2b95ec=Array['from'](_0x481d79)['filter'](_0x48b59d=>function(_0x43b1f5,_0x4a5910){return _0x4a5910['checkChild'](_0x43b1f5['parent'],'listItem')&&!_0x4a5910['isObject'](_0x43b1f5);}(_0x48b59d,_0x125ee3));_0x2b95ec=_0x2b95ec['filter'](_0xdedee5=>!_0xdedee5['is']('element','listItem')||_0xdedee5['getAttribute']('listType')!=_0x4898f1);const _0x1d0ea8=new Set();for(const _0x17db29 of _0x2b95ec)_0x17db29['is']('element','listItem')?_0x1d0ea8['add'](he(_0x17db29)):_0x1d0ea8['add'](_0x17db29);return Array['from'](_0x1d0ea8);}(_0x40a6d6['getSelectedBlocks'](),_0x1e9066,_0x328bc5['model']['schema']);_0x328bc5['model']['change'](()=>{for(const _0x3db70 of _0x117a86)_0x18f60d['markBlockFormat'](_0x3db70,{'commandName':_0xda400b,'commandParams':[{'forceValue':!_0xab48cc['value']}],'formatGroupId':'blockName'},de(_0x3db70));});};}function _0x5f4f55(_0x29de88){return()=>{const _0x2c268a=function(_0x3c91ff){let _0x5c3c7b=Array['from'](_0x3c91ff);const _0x3ed5a5=_0x5c3c7b['findIndex'](_0x3be0ee=>'listItem'!=_0x3be0ee['name']);return _0x3ed5a5>-0x1&&(_0x5c3c7b=_0x5c3c7b['slice'](0x0,_0x3ed5a5)),_0x5c3c7b;}(_0x328bc5['model']['document']['selection']['getSelectedBlocks']()),_0x1a35a8=_0x328bc5['model']['createRange'](_0x328bc5['model']['createPositionAt'](_0x2c268a[0x0],'before'),_0x328bc5['model']['createPositionAt'](_0x2c268a[_0x2c268a['length']-0x1],'end'));_0x328bc5['model']['change'](()=>{_0x18f60d['markBlockFormat'](_0x1a35a8,{'commandName':_0x29de88,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3c1d3a){const _0x1538ee=new Set();for(const _0x4c58bc of _0x3c1d3a){let _0x4917ae=_0x4c58bc['nextSibling'];for(;_0x4917ae&&_0x4917ae['getAttribute']('listIndent')>_0x4c58bc['getAttribute']('listIndent');)_0x1538ee['add'](_0x4917ae),_0x4917ae=_0x4917ae['nextSibling'];}return Array['from'](_0x1538ee);}(_0x2c268a));});};}_0x18f60d['enableCommand']('numberedList',_0x342800('numberedList')),_0x18f60d['enableCommand']('bulletedList',_0x342800('bulletedList')),_0x3dcdcd&&_0x18f60d['enableCommand']('todoList',_0x342800('todoList')),_0x18f60d['enableCommand']('indentList',_0x5f4f55('indentList')),_0x18f60d['enableCommand']('outdentList',_0x5f4f55('outdentList')),_0x3dcdcd&&_0x18f60d['enableCommand']('checkTodoList',()=>{const _0x408fcf=_0x328bc5['commands']['get']('checkTodoList'),_0x5251c6=Array['from'](_0x408fcf['_selectedElements']);_0x5251c6['filter'](_0x45a3db=>_0x45a3db['getAttribute']('todoListChecked')!=_0x408fcf['value']),_0x328bc5['model']['change'](()=>{for(const _0x2f7fdb of _0x5251c6)_0x18f60d['markBlockFormat'](_0x2f7fdb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x408fcf['value']}]});});}),_0x18f60d['descriptionFactory']['registerElementLabel']('listItem',_0x2a196c=>At(_0x424c02,'ELEMENT_LIST_ITEM',_0x2a196c)),_0x18f60d['descriptionFactory']['registerDescriptionCallback'](_0x3e1713=>{if('formatBlock'!=_0x3e1713['type']&&'formatInline'!=_0x3e1713['type'])return;const {data:_0x15344a}=_0x3e1713;if(_0x15344a){if('numberedList'==_0x15344a['commandName']||'bulletedList'==_0x15344a['commandName']||'todoList'==_0x15344a['commandName'])switch(_0x15344a['commandName']['replace']('List','')){case'bulleted':return _0x207288(At(_0x424c02,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x207288(At(_0x424c02,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x207288(At(_0x424c02,'ELEMENT_TODO_LIST'));}if('indentList'==_0x15344a['commandName'])return{'type':'format','content':At(_0x424c02,'*Indent:*\x20%0',At(_0x424c02,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x15344a['commandName'])return{'type':'format','content':At(_0x424c02,'*Outdent:*\x20%0',At(_0x424c02,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x15344a['commandName'])return _0x15344a['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x424c02,'*Check\x20item*')}:{'type':'format','content':At(_0x424c02,'*Uncheck\x20item*')};}function _0x207288(_0x1574cd){return{'type':'format','content':At(_0x424c02,'*Change\x20to:*\x20%0',_0x1574cd)};}});}}function he(_0x3d339f){const _0x3597e9=_0x3d339f['getAttribute']('listIndent');if(0x0==_0x3597e9)return _0x3d339f;let _0x257328=_0x3d339f;for(;_0x3d339f['previousSibling']&&_0x3d339f['previousSibling']['is']('element','listItem');){const _0x5b3e7b=_0x3d339f['previousSibling']['getAttribute']('listIndent');if(_0x5b3e7b==_0x3597e9)_0x257328=_0x3d339f['previousSibling'];else{if(_0x5b3e7b<_0x3597e9)break;}_0x3d339f=_0x3d339f['previousSibling'];}return _0x257328;}function de(_0xa970d2){const _0x4b777f=[];if(_0xa970d2['is']('element','listItem')&&_0xa970d2['getAttribute']('listIndent')>0x0){let _0x46f10c=_0xa970d2['nextSibling'];for(;_0x46f10c&&'listItem'==_0x46f10c['name']&&_0x46f10c['getAttribute']('listIndent')==_0xa970d2['getAttribute']('listIndent');)_0x4b777f['push'](_0x46f10c),_0x46f10c=_0x46f10c['nextSibling'];}return _0x4b777f;}class fe extends _0x91c494{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5c66bc=this['editor']['config']['get']('list.properties'),_0x102642=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c66bc['styles']&&_0x102642['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5c66bc['reversed']&&_0x102642['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5c66bc['startIndex']&&_0x102642['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x102642['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x26938c,_0x320ca7={}){const _0x443cf1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x311b9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x443cf1['markMultiRangeBlockFormat'](_0x311b9,{'commandName':'listStyle','commandParams':[{'type':_0x320ca7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4997a1,_0x39f168={}){const _0x1f5bf7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6757da=this['_getSuggestionBlocks'](_0x3d5b4f=>_0x3d5b4f['is']('element','listItem')&&'numbered'===_0x3d5b4f['getAttribute']('listType'));if(_0x6757da['length']<0x1)return;const _0x19e7b9=_0x6757da['map'](_0x3b5a20=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b5a20,'before'),this['editor']['model']['createPositionAt'](_0x3b5a20,0x0)));this['editor']['model']['change'](()=>{_0x1f5bf7['markMultiRangeBlockFormat'](_0x19e7b9,{'commandName':'listReversed','commandParams':[{'reversed':_0x39f168['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x50f12e,_0x19f964={}){const _0x108a78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43cab0=this['_getSuggestionBlocks'](_0x4b631b=>_0x4b631b['is']('element','listItem')&&'numbered'===_0x4b631b['getAttribute']('listType'));if(_0x43cab0['length']<0x1)return;const _0x351ca8=_0x43cab0['map'](_0x4bc34a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bc34a,'before'),this['editor']['model']['createPositionAt'](_0x4bc34a,0x0)));this['editor']['model']['change'](()=>{_0x108a78['markMultiRangeBlockFormat'](_0x351ca8,{'commandName':'listStart','commandParams':[{'startIndex':_0x19f964['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x573149){if('formatBlock'!=_0x573149['type']&&'formatInline'!=_0x573149['type'])return;const _0xd28fd9=this['editor']['locale'],{data:_0x44a446}=_0x573149;if(!_0x44a446)return;let _0x36d040,_0x5d33bb;switch(_0x44a446['commandName']){case'listStyle':_0x36d040='*Change\x20to:*\x20%0',_0x5d33bb={'type':'format','content':At(_0xd28fd9,_0x36d040,At(_0xd28fd9,this['_getTranslationKeyForListStyle'](_0x44a446['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36d040=_0x44a446['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5d33bb={'type':'format','content':At(_0xd28fd9,_0x36d040)};break;case'listStart':_0x36d040='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5d33bb={'type':'format','content':At(_0xd28fd9,_0x36d040,_0x44a446['commandParams'][0x0]['startIndex'])};}return _0x5d33bb;}['_getSuggestionBlocksForListStyle'](){const _0x29dc9e=this['editor']['plugins']['get']('LegacyListUtils');let _0x43c20f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x43c20f[0x0]?.['is']('element','listItem')&&_0x43c20f['unshift'](..._0x29dc9e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x43c20f[_0x43c20f['length']-0x1]?.['is']('element','listItem')&&_0x43c20f['push'](..._0x29dc9e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x43c20f=[...new Set(_0x43c20f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x43c20f=_0x43c20f['filter'](_0x4bdbc1=>_0x4bdbc1['is']('element','listItem'))),_0x43c20f;}['_getSuggestionBlocks'](_0x2fa565){const _0x4d754e=this['editor']['plugins']['get']('LegacyListUtils');let _0x3916d8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2fa565)['map'](_0x3133a0=>{const _0x6a61f9=this['editor']['model']['createPositionAt'](_0x3133a0,0x0);return[..._0x4d754e['getSiblingNodes'](_0x6a61f9,'backward'),..._0x4d754e['getSiblingNodes'](_0x6a61f9,'forward')];})['flat']();return _0x3916d8=[...new Set(_0x3916d8)],_0x3916d8;}['_getTranslationKeyForListStyle'](_0x1c41f8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1c41f8)||'default')['toUpperCase']()+'_LIST_'+_0x1c41f8['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x91c494{['afterInit'](){const _0x4b39f2=this['editor'];if(!_0x4b39f2['plugins']['has']('MediaEmbedEditing'))return;const _0x52932d=_0x4b39f2['plugins']['get']('TrackChangesEditing'),_0x2aa2ae=_0x4b39f2['locale'];_0x52932d['enableCommand']('mediaEmbed'),_0x52932d['descriptionFactory']['registerElementLabel']('media',_0xfe27bc=>At(_0x2aa2ae,'ELEMENT_MEDIA',_0xfe27bc));}}class me extends _0x91c494{['afterInit'](){const _0x1d54f1=this['editor'];_0x1d54f1['plugins']['has']('MentionEditing')&&_0x1d54f1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x91c494{['afterInit'](){const _0x38959a=this['editor'];if(!_0x38959a['plugins']['has']('MergeFieldsEditing'))return;const _0x2a6c63=_0x38959a['plugins']['get']('TrackChangesEditing'),_0x869772=_0x38959a['locale'];_0x2a6c63['enableCommand']('insertMergeField'),_0x2a6c63['enableCommand']('insertMergeFieldBlock'),_0x2a6c63['enableCommand']('insertMergeFieldImage'),_0x2a6c63['descriptionFactory']['registerElementLabel']('mergeField',_0x573835=>At(_0x869772,'ELEMENT_MERGE_FIELD',_0x573835)),_0x2a6c63['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4c5c28=>At(_0x869772,'ELEMENT_MERGE_FIELD',_0x4c5c28)),_0x2a6c63['descriptionFactory']['registerDescriptionCallback'](_0x51e13e=>{if('insertion'!=_0x51e13e['type']&&'deletion'!=_0x51e13e['type'])return;const _0x1cf123=_0x51e13e['getContainedElement']();if(null==_0x1cf123)return;const _0x427cba=_0x38959a['plugins']['get']('MergeFieldsEditing');let _0x56fbc2;switch(_0x427cba['getMergeFieldType'](_0x1cf123)){case null:return;case'image':{const _0x2e2978=_0x427cba['unwrapAffixes'](_0x1cf123['getAttribute']('src'));_0x56fbc2=_0x427cba['getLabel'](_0x2e2978)||_0x2e2978;break;}default:{const _0x107a97=_0x1cf123['getAttribute']('id');_0x56fbc2=_0x427cba['getLabel'](_0x107a97)||_0x107a97;break;}}return'insertion'==_0x51e13e['type']?{'type':'insertion','content':At(_0x869772,'*Insert:*\x20%0','\x22'+_0x56fbc2+'\x22\x20'+At(_0x869772,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x869772,'*Remove:*\x20%0','\x22'+_0x56fbc2+'\x22\x20'+At(_0x869772,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x91c494{['afterInit'](){const _0xe169f0=this['editor'],_0x5cf4a8=_0xe169f0['plugins']['get']('TrackChangesEditing');_0xe169f0['plugins']['has']('MultiLevelList')&&(_0x5cf4a8['enableDefaultAttributesIntegration']('multiLevelList'),_0x5cf4a8['descriptionFactory']['registerDescriptionCallback'](_0x3071e0=>this['handleDescriptions'](_0x3071e0)));}['handleDescriptions'](_0x5c2de1){const _0x35b33b=this['editor']['locale'],{data:_0x54846d}=_0x5c2de1,_0x2c8e94={'type':'format','content':''};if(_0x54846d&&'listMarkerStyle'==_0x54846d['key']){if(!_0x54846d['oldValue'])return{'type':'format','content':At(_0x35b33b,'*Set\x20format:*\x20%0',At(_0x35b33b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x54846d['newValue']+')'};if(!_0x54846d['newValue']){let _0x48c6b4=_0x5c2de1['head'];for(;_0x48c6b4;){if(_0x48c6b4['data']&&'listType'==_0x48c6b4['data']['key']&&_0x48c6b4['data']['newValue'])return _0x2c8e94;_0x48c6b4=_0x48c6b4['next'];}return{'type':'format','content':At(_0x35b33b,'*Remove\x20format:*\x20%0',At(_0x35b33b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x54846d['oldValue']+')'};}}}}class _e extends _0x91c494{['afterInit'](){const _0x29509c=this['editor'];if(!_0x29509c['plugins']['has']('PageBreakEditing'))return;_0x29509c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x28efc9=_0x29509c['plugins']['get']('TrackChangesEditing'),_0x415d64=_0x29509c['locale'];_0x28efc9['descriptionFactory']['registerElementLabel']('pageBreak',_0x4dbf76=>At(_0x415d64,'ELEMENT_PAGE_BREAK',_0x4dbf76));}}class pe extends _0x91c494{['afterInit'](){const _0x5a1b8c=this['editor'];if(!_0x5a1b8c['plugins']['has']('Paragraph'))return;const _0x55a6bd=_0x5a1b8c['locale'],_0x1938eb=_0x5a1b8c['plugins']['get']('TrackChangesEditing');_0x1938eb['descriptionFactory']['registerElementLabel']('paragraph',_0x314cbf=>At(_0x55a6bd,'ELEMENT_PARAGRAPH',_0x314cbf)),_0x1938eb['enableDefaultAttributesIntegration']('paragraph'),_0x1938eb['enableCommand']('insertParagraph');const _0x5a4e98=_0x1938eb['descriptionFactory'];_0x5a4e98['registerDescriptionCallback'](_0x5cea5d=>{if('insertion'!==_0x5cea5d['type'])return;const {start:_0x422240,end:_0x255ee4}=_0x5cea5d['getFirstRange']();if(!_0x422240['isTouching'](_0x255ee4)||!_0x422240['nodeAfter'])return;const _0x450af0=_0x5a1b8c['model']['schema'],_0x52acdc=_0x422240['nodeAfter'];return _0x450af0['isBlock'](_0x52acdc)&&!_0x450af0['isLimit'](_0x52acdc)&&_0x450af0['checkChild'](_0x52acdc,'$text')?{'type':'insertion','content':At(_0x55a6bd,'*Insert:*\x20%0',_0x5a4e98['getItemLabel'](_0x52acdc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6ba93f=this['editor'],_0x1de796=_0x6ba93f['locale'];_0x6ba93f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x569b1f=>{if('formatBlock'!=_0x569b1f['type'])return;const {data:_0x3695a1}=_0x569b1f;return _0x3695a1&&'paragraph'==_0x3695a1['commandName']?{'type':'format','content':At(_0x1de796,'*Change\x20to:*\x20%0',At(_0x1de796,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x91c494{['afterInit'](){const _0x36692e=this['editor'];_0x36692e['commands']['get']('replaceSource')&&_0x36692e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x91c494{['afterInit'](){const _0x154b02=this['editor'];if(!_0x154b02['plugins']['has']('RemoveFormatEditing'))return;_0x154b02['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a901d=this['editor'];_0x1a901d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x340a6a=>{if('formatBlock'!=_0x340a6a['type']&&'formatInline'!=_0x340a6a['type'])return;const {data:_0x48a710}=_0x340a6a;return _0x48a710&&'removeFormat'==_0x48a710['commandName']?{'type':'format','content':At(_0x1a901d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x91c494{['afterInit'](){const _0x487c6d=this['editor'];if(!_0x487c6d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x440c37=_0x487c6d['plugins']['get']('TrackChangesEditing');_0x440c37['enableCommand']('goToPreviousRestrictedEditingException'),_0x440c37['enableCommand']('goToNextRestrictedEditingException');const _0x4fb9cc=_0x487c6d['plugins']['get']('RestrictedEditingModeEditing');_0x4fb9cc['enableCommand']('trackChanges'),_0x4fb9cc['enableCommand']('acceptSuggestion'),_0x4fb9cc['enableCommand']('discardSuggestion'),_0x4fb9cc['enableCommand']('acceptAllSuggestions'),_0x4fb9cc['enableCommand']('discardAllSuggestions'),_0x4fb9cc['enableCommand']('acceptSelectedSuggestions'),_0x4fb9cc['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x91c494{['afterInit'](){const _0x2dd05b=this['editor'];if(!_0x2dd05b['plugins']['has']('ShiftEnter'))return;const _0x3a4e38=_0x2dd05b['plugins']['get']('TrackChangesEditing');_0x3a4e38['enableCommand']('shiftEnter'),_0x3a4e38['descriptionFactory']['registerElementLabel']('softBreak',_0x2dcb6e=>At(_0x2dd05b['locale'],'ELEMENT_LINE_BREAK',_0x2dcb6e));}}function ke(_0x29f652,_0x2ed13c,_0x1b402a){const _0x533e78=[];for(const _0x5da612 of _0x2ed13c['getItems']())_0x5da612['hasAttribute'](_0x29f652)&&_0x533e78['push'](_0x1b402a['createRangeOn'](_0x5da612));return _0x533e78;}class Ce extends _0x91c494{['afterInit'](){const _0x5beb24=this['editor'],_0x44b73b=_0x5beb24['plugins']['get']('TrackChangesEditing');_0x5beb24['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x44b73b['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x250f52=this['editor'],_0xab4645=_0x250f52['model'],_0x13ca3c=_0x250f52['locale'],_0x20a04f=_0x250f52['plugins']['get']('TrackChangesEditing'),_0x107f4b='restrictedEditingException',_0x1c0746=_0x250f52['commands']['get'](_0x107f4b);_0x20a04f['enableCommand'](_0x107f4b,(_0x5ae936,_0x240590={})=>{const _0x218d21=_0xab4645['document']['selection'];if(_0x218d21['isCollapsed'])return void _0x5ae936(_0x240590);const _0x23dc0c=void 0x0!==_0x240590['forceValue']?_0x240590['forceValue']:!_0x1c0746['value'];_0xab4645['change'](()=>{const _0x1754e7=Array['from'](_0x218d21['getRanges']());for(const _0x475b84 of _0x1754e7){const _0x6ef037=_0x23dc0c?[_0x475b84]:ke(_0x107f4b,_0x475b84,_0xab4645);for(const _0x2b888e of _0x6ef037)_0x20a04f['markInlineFormat'](_0x2b888e,{'commandName':_0x107f4b,'commandParams':[{'forceValue':_0x23dc0c}]});}});}),_0x20a04f['descriptionFactory']['registerDescriptionCallback'](_0x589208=>{if('formatBlock'!=_0x589208['type']&&'formatInline'!=_0x589208['type'])return;const {data:_0x364379}=_0x589208;return _0x364379&&_0x364379['commandName']==_0x107f4b?_0x364379['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x13ca3c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x13ca3c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x3957a7=this['editor'],_0x501f85=_0x3957a7['locale'],_0x4eaa0a=_0x3957a7['plugins']['get']('TrackChangesEditing'),_0x4fbf76='restrictedEditingExceptionBlock',_0x384138=this['editor']['commands']['get'](_0x4fbf76);_0x4eaa0a['enableCommand'](_0x4fbf76,(_0xb81b69,_0x43b9af={})=>{const _0x393e43=this['editor']['model']['document']['selection'],_0x52701c=_0x43b9af&&void 0x0!==_0x43b9af['forceValue']?_0x43b9af['forceValue']:!_0x384138['value'];let _0x4e2c1d=[];if(_0x52701c){const _0x34ce8a=Array['from'](_0x393e43['getSelectedBlocks']())['filter'](_0x7c6d93=>function(_0x122e76){return!!_0x122e76['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x7c6d93)||function(_0x37f4eb,_0x47cabe){const _0x16c598=_0x47cabe['createContext'](_0x37f4eb['parent']);if(!_0x47cabe['checkChild'](_0x16c598,'restrictedEditingException'))return!0x1;if(!_0x47cabe['checkChild'](_0x16c598['push']('restrictedEditingException'),_0x37f4eb))return!0x1;return!0x0;}(_0x7c6d93,this['editor']['model']['schema']));_0x4e2c1d=Tt(_0x34ce8a,_0x3957a7['model']);}else{const _0x55ba99=Array['from'](_0x393e43['getSelectedBlocks']())['map'](_0x1203be=>function(_0x1f8b6c){let _0x49254c=_0x1f8b6c;for(;_0x49254c['parent'];){if('restrictedEditingException'==_0x49254c['parent']['name'])return _0x49254c;_0x49254c=_0x49254c['parent'];}return null;}(_0x1203be))['filter'](_0x3b9c35=>!!_0x3b9c35);_0x4e2c1d=Tt(_0x55ba99,_0x3957a7['model']);}_0x3957a7['model']['change'](()=>{for(const _0x506a3e of _0x4e2c1d)_0x4eaa0a['markBlockFormat'](_0x506a3e,{'commandName':_0x4fbf76,'commandParams':[{'forceValue':_0x52701c}]});});}),_0x4eaa0a['descriptionFactory']['registerDescriptionCallback'](_0x5dd6e8=>{const {data:_0x590902}=_0x5dd6e8;if(_0x590902&&_0x590902['commandName']==_0x4fbf76)return _0x590902['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x501f85,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x501f85,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x91c494{['afterInit'](){const _0x1bfe9b=this['editor'];if(!_0x1bfe9b['plugins']['has']('Style')||!_0x1bfe9b['plugins']['has']('DataSchema'))return;const _0x2d9f83=_0x1bfe9b['plugins']['get']('TrackChangesEditing'),_0x2f24c8=_0x1bfe9b['locale'],_0x580c78=_0x1bfe9b['config']['get']('style')||{},_0x5d2956=_0x1bfe9b['plugins']['get']('GeneralHtmlSupport'),_0xffe36a=_0x1bfe9b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1bfe9b['plugins']['get']('DataSchema'),_0x580c78['definitions']);_0x2d9f83['enableDefaultAttributesIntegration']('style');const _0x18122c=new Set();for(const _0x242769 of _0xffe36a['block']){const _0x25efb3=_0x5d2956['getGhsAttributeNameForElement'](_0x242769['element']);_0x18122c['add'](_0x25efb3);}const _0x52eadf=new Set();for(const _0x46a3c7 of _0xffe36a['inline']){const _0x273b33=_0x5d2956['getGhsAttributeNameForElement'](_0x46a3c7['element']);_0x52eadf['add'](_0x273b33);for(const _0x93fcad of _0x46a3c7['ghsAttributes'])_0x52eadf['add'](_0x93fcad);}for(const _0x56aecd of _0x18122c)_0x2d9f83['descriptionFactory']['registerAttributeLabel'](_0x56aecd,At(_0x2f24c8,'FORMAT_STYLE'));for(const _0x322b06 of _0x52eadf)_0x2d9f83['descriptionFactory']['registerAttributeLabel'](_0x322b06,At(_0x2f24c8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40e176=this['editor'],_0x4b7d47=_0x40e176['locale'];_0x40e176['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41b521=>{if('formatBlock'!=_0x41b521['type']&&'formatInline'!=_0x41b521['type'])return;const {data:_0x3e02c1}=_0x41b521;return _0x3e02c1&&'style'===_0x3e02c1['commandName']?_0x3e02c1['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4b7d47,'*Set\x20format:*\x20%0',_0x3e02c1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x4b7d47,'*Remove\x20format:*\x20%0',_0x3e02c1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x91c494{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x259c97){super(_0x259c97),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1cd470=this['editor'],_0x1ab000=_0x1cd470['model']['document']['selection'];if(!_0x1cd470['plugins']['has']('TableEditing'))return;const _0x22606b=_0x1cd470['locale'],_0x1b3d29=_0x1cd470['plugins']['get']('TrackChangesEditing'),_0xb12afb=_0x1cd470['plugins']['get']('TableUtils');_0x1b3d29['descriptionFactory']['registerElementLabel']('table',_0x548d28=>At(_0x22606b,'ELEMENT_TABLE',_0x548d28)),this['_setupColumnsRowsFixing'](),_0x1b3d29['enableCommand']('insertTable'),_0x1b3d29['enableCommand']('selectTableRow'),_0x1b3d29['enableCommand']('selectTableColumn');for(const _0x10e0bf of['insertTableRowAbove','insertTableRowBelow']){const _0x4820a4=_0x1cd470['commands']['get'](_0x10e0bf);_0x1b3d29['enableCommand'](_0x10e0bf,_0x15d426=>{_0x1cd470['model']['change'](_0x5c77ee=>{_0x15d426();const _0x49d3f8='above'===_0x4820a4['order'],_0x1a8019=_0xb12afb['getSelectionAffectedTableCells'](_0x1ab000),_0x448d8d=_0xb12afb['getRowIndexes'](_0x1a8019),_0x26969a=_0x49d3f8?_0x448d8d['first']-0x1:_0x448d8d['last']+0x1,_0x53a763=_0x1a8019[0x0]['findAncestor']('table'),_0x19b1fa=_0xb12afb['createTableWalker'](_0x53a763,{'startRow':_0x26969a,'endRow':_0x26969a}),_0x595ee9=Array['from'](_0x19b1fa)['map'](_0x37ea75=>_0x5c77ee['createRangeOn'](_0x37ea75['cell']));_0x1b3d29['markMultiRangeInsertion'](_0x595ee9,'tableRow');});});}for(const _0xed31e6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x59ddb3=_0x1cd470['commands']['get'](_0xed31e6);_0x1b3d29['enableCommand'](_0xed31e6,_0x236c1e=>{_0x1cd470['model']['change'](_0x29b337=>{_0x236c1e();const _0x94e59c='left'===_0x59ddb3['order'],_0x23cc34=_0xb12afb['getSelectionAffectedTableCells'](_0x1ab000),_0x5dd5a2=_0xb12afb['getColumnIndexes'](_0x23cc34),_0x3c8c12=_0x94e59c?_0x5dd5a2['first']-0x1:_0x5dd5a2['last']+0x1,_0x1114c2=_0x23cc34[0x0]['findAncestor']('table'),_0x1da1cb=_0xb12afb['createTableWalker'](_0x1114c2,{'startRow':0x0,'column':_0x3c8c12,'includeAllSlots':!0x1}),_0x584078=Array['from'](_0x1da1cb)['map'](_0x547fab=>_0x29b337['createRangeOn'](_0x547fab['cell']));_0x1b3d29['markMultiRangeInsertion'](_0x584078,'tableColumn');});});}for(const _0x5cecd8 of['removeTableRow','removeTableColumn']){const _0x329efd=_0x5cecd8['substr'](0xb),_0x46e23b=_0x329efd['toLowerCase'](),_0x1bef9d=_0x46e23b['substr'](0x0,0x3)+'span',_0x5a5e40='table'+_0x329efd,_0x18aeb5='min'+_0x329efd,_0x23a27a='max'+_0x329efd;_0x1b3d29['enableCommand'](_0x5cecd8,()=>{_0x1cd470['model']['change'](_0x515e17=>{const _0x17b6a9=_0xb12afb['getSelectionAffectedTableCells'](_0x1ab000),_0x5a43fb=_0x17b6a9[0x0]['findAncestor']('table');let _0x36167d;if('removeTableRow'==_0x5cecd8){const _0xff262=_0xb12afb['getRowIndexes'](_0x17b6a9);_0x36167d={'startRow':_0xff262['first'],'endRow':_0xff262['last'],'includeAllSlots':!0x0};}else{const _0x2c7732=_0xb12afb['getColumnIndexes'](_0x17b6a9);_0x36167d={'startColumn':_0x2c7732['first'],'endColumn':_0x2c7732['last'],'includeAllSlots':!0x0};}const _0x17106c=_0xb12afb['createTableWalker'](_0x5a43fb,_0x36167d),_0x38518b=Array['from'](_0x17106c)['map'](({cell:_0x3d985})=>_0x3d985),_0x47efcd=Re(_0x38518b['filter'](_0x4f7fb6=>_0x4f7fb6['hasAttribute'](_0x1bef9d))),_0x46cbc7=Re(_0x38518b['filter'](_0x5db943=>!_0x5db943['hasAttribute'](_0x1bef9d)))['map'](_0x217e47=>_0x515e17['createRangeOn'](_0x217e47)),_0x50e79a=_0x1b3d29['markMultiRangeDeletion'](_0x46cbc7,_0x5a5e40);if(_0x50e79a&&('tableRow'==_0x50e79a['subType']||'tableColumn'==_0x50e79a['subType'])){const _0x2647be=this['_getSuggestionCoords'](_0x50e79a);for(const _0x2f8c6b of _0x47efcd){const _0x51250f=_0x515e17['createRangeOn'](_0x2f8c6b),_0x4cd9fa=_0xb12afb['getCellLocation'](_0x2f8c6b),_0x27c4a4=_0x2f8c6b['getAttribute'](_0x1bef9d)-0x1,_0x2338ff=_0x2647be[_0x18aeb5],_0x44d1b6=_0x2647be[_0x23a27a];_0x2338ff<=_0x4cd9fa[_0x46e23b]&&_0x4cd9fa[_0x46e23b]+_0x27c4a4<=_0x44d1b6&&_0x50e79a['addRange'](_0x51250f);}}});});}function _0x2fe230(_0x4568a5){const _0x2eb357=Array['from'](_0x1ab000['getRanges']())['map'](_0x112d87=>_0xa6acbf['fromRange'](_0x112d87));_0x1cd470['model']['change'](_0x38aa4b=>{const _0x605fe4=_0x38aa4b['batch'];_0x4568a5=_0x4568a5['filter'](_0x2b0ec0=>'$graveyard'!=_0x2b0ec0['root']['rootName']),_0x38aa4b['setSelection'](_0x4568a5),_0x1cd470['commands']['get']('removeTableRow')['refresh'](),_0x1cd470['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1cd470['model']['enqueueChange'](()=>{_0x1cd470['model']['enqueueChange'](_0x605fe4,_0x4b3c85=>{const _0x3f2aac=_0x2eb357['filter'](_0x347b2f=>'$graveyard'!=_0x347b2f['root']['rootName']);_0x3f2aac['length']>0x0&&_0x4b3c85['setSelection'](_0x3f2aac);for(const _0x11c4e5 of _0x2eb357)_0x11c4e5['detach']();});});});}function _0x52810c(_0x387349){_0x1cd470['model']['change'](_0x28d0eb=>{const _0x5c1a4f=Array['from'](_0x1ab000['getRanges']())['map'](_0xe1c990=>_0xa6acbf['fromRange'](_0xe1c990)),_0x2ddf33=[];for(const _0x42524f of _0x387349)for(const _0xd48c60 of _0x42524f['getItems']({'shallow':!0x0}))_0x2ddf33['push'](_0xd48c60);for(const _0x1c8012 of _0x2ddf33)'$graveyard'!=_0x1c8012['root']['rootName']&&(_0x28d0eb['setSelection'](_0x28d0eb['createPositionAt'](_0x1c8012,0x0)),_0x1cd470['commands']['get']('removeTableColumn')['refresh'](),_0x1cd470['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5e55df=_0x5c1a4f['filter'](_0x35bcaf=>'$graveyard'!=_0x35bcaf['root']['rootName']);_0x5e55df['length']>0x0&&_0x28d0eb['setSelection'](_0x5e55df);for(const _0x2f822e of _0x5c1a4f)_0x2f822e['detach']();});}function _0x3f4223(_0x19c761,_0x4fd3db){return _0x4fd3db['every'](_0x59f190=>_0x19c761['some'](_0xc98bae=>_0xc98bae['end']['isEqual'](_0x59f190['start'])||_0x59f190['end']['isEqual'](_0xc98bae['start'])));}function _0x62da91(_0x40fca8,_0x637211){return!_0x40fca8['some'](_0x267caa=>_0x637211['some'](_0x19b70d=>_0x267caa['isIntersecting'](_0x19b70d)))&&_0x40fca8['some'](_0xa1ad6=>_0x637211['some'](_0x26a4fa=>_0xa1ad6['end']['isTouching'](_0x26a4fa['start'])));}_0x1b3d29['descriptionFactory']['registerDescriptionCallback'](_0x302633=>{if('insertion'!=_0x302633['type']&&'deletion'!=_0x302633['type'])return;const _0x585af7=_0x302633['getContainedElement']();if(null!=_0x585af7&&_0x585af7['is']('element','table')){if('insertion'==_0x302633['type']){const _0x5af494=_0x302633['getItems']()['filter'](_0x2397d3=>_0x2397d3['is']('$textProxy'))['map'](_0x502ebb=>_0x502ebb['data']);if(_0x5af494['length'])return{'type':'insertion','content':At(_0x22606b,'*Insert:*\x20%0',At(_0x22606b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5af494['join']('\x20')+'\x22'))};}if('deletion'==_0x302633['type']){const _0x514462=_0x302633['getItems']()['filter'](_0x2d2757=>_0x2d2757['is']('$textProxy'))['map'](_0x870e9f=>_0x870e9f['data']);if(_0x514462['length'])return{'type':'deletion','content':At(_0x22606b,'*Remove:*\x20%0',At(_0x22606b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x514462['join']('\x20')+'\x22'))};}}}),_0x1b3d29['descriptionFactory']['registerDescriptionCallback'](_0x1d2bd8=>{if('tableRow'==_0x1d2bd8['subType']){const _0x5568c2=_0x1d2bd8['getItems']()['filter'](_0x3246b6=>_0x3246b6['is']('$textProxy'))['map'](_0x456f9d=>_0x456f9d['data']),_0x209cbb=this['_getSuggestionCoords'](_0x1d2bd8),_0x315293=_0x209cbb['maxRow']-_0x209cbb['minRow']+0x1;if('insertion'==_0x1d2bd8['type'])return _0x5568c2['length']?{'type':'insertion','content':At(_0x22606b,'*Insert:*\x20%0',At(_0x22606b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x315293,'\x22'+_0x5568c2['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x22606b,'*Insert:*\x20%0',At(_0x22606b,'ELEMENT_TABLE_ROW',_0x315293))};if('deletion'==_0x1d2bd8['type'])return _0x5568c2['length']?{'type':'deletion','content':At(_0x22606b,'*Remove:*\x20%0',At(_0x22606b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x315293,'\x22'+_0x5568c2['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x22606b,'*Remove:*\x20%0',At(_0x22606b,'ELEMENT_TABLE_ROW',_0x315293))};}if('tableColumn'==_0x1d2bd8['subType']){const _0x1c6aa2=_0x1d2bd8['getItems']()['filter'](_0x57de78=>_0x57de78['is']('$textProxy'))['map'](_0x2b32f6=>_0x2b32f6['data']),_0x13b443=this['_getSuggestionCoords'](_0x1d2bd8),_0x565759=_0x13b443['maxColumn']-_0x13b443['minColumn']+0x1;if('insertion'==_0x1d2bd8['type'])return _0x1c6aa2['length']?{'type':'insertion','content':At(_0x22606b,'*Insert:*\x20%0',At(_0x22606b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x565759,'\x22'+_0x1c6aa2['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x22606b,'*Insert:*\x20%0',At(_0x22606b,'ELEMENT_TABLE_COLUMN',_0x565759))};if('deletion'==_0x1d2bd8['type'])return _0x1c6aa2['length']?{'type':'deletion','content':At(_0x22606b,'*Remove:*\x20%0',At(_0x22606b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x565759,'\x22'+_0x1c6aa2['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x22606b,'*Remove:*\x20%0',At(_0x22606b,'ELEMENT_TABLE_COLUMN',_0x565759))};}}),_0x1b3d29['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2fe230),_0x1b3d29['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2fe230),_0x1b3d29['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x52810c),_0x1b3d29['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x52810c),_0x1b3d29['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3f4223),_0x1b3d29['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3f4223),_0x1b3d29['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x62da91),_0x1b3d29['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x62da91);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5d30f9=this['editor'],_0x5f1625=_0x5d30f9['model']['document']['selection'];return(_0x2b8324,_0x30e334)=>{_0x5d30f9['model']['change'](_0x46275e=>{const {commandName:_0x451967,commandParams:_0x104037}=_0x30e334;let _0x579627=_0x2b8324[0x0]['end']['nodeBefore'];_0x104037&&_0x104037[0x0]&&!0x1===_0x104037[0x0]['forceValue']&&(_0x579627=_0x2b8324[0x0]['start']['nodeAfter']);const _0x3bb895=_0x46275e['createRangeIn'](_0x579627);if('$graveyard'==_0x3bb895['root']['rootName'])return;const _0x4d31eb=Array['from'](_0x5f1625['getRanges']())['map'](_0x1838bf=>_0xa6acbf['fromRange'](_0x1838bf));_0x46275e['setSelection'](_0x3bb895),_0x5d30f9['commands']['get'](_0x451967)['refresh'](),_0x104037['push']({'forceDefaultExecution':!0x0}),_0x5d30f9['execute'](_0x451967,..._0x104037);const _0x3cc353=_0x4d31eb['filter'](_0x2f6866=>'$graveyard'!=_0x2f6866['root']['rootName']);_0x3cc353['length']>0x0&&_0x46275e['setSelection'](_0x3cc353);for(const _0x43bce1 of _0x4d31eb)_0x43bce1['detach']();});};}['_getCoordsForCells'](_0x5e38f9){const _0x157587=this['editor']['plugins']['get']('TableUtils');let _0x49c1a6=Number['MAX_SAFE_INTEGER'],_0x4edecd=Number['MIN_SAFE_INTEGER'],_0x23c311=Number['MAX_SAFE_INTEGER'],_0x2420b3=Number['MIN_SAFE_INTEGER'];for(const _0x58a52d of _0x5e38f9){if('$graveyard'==_0x58a52d['root']['rootName'])continue;const {row:_0x498eae,column:_0x389a97}=_0x157587['getCellLocation'](_0x58a52d),_0x3ce3cd=_0x58a52d['hasAttribute']('rowspan')?_0x58a52d['getAttribute']('rowspan')-0x1:0x0,_0x19a659=_0x58a52d['hasAttribute']('colspan')?_0x58a52d['getAttribute']('colspan')-0x1:0x0;_0x49c1a6=_0x498eae<_0x49c1a6?_0x498eae:_0x49c1a6,_0x4edecd=_0x498eae+_0x3ce3cd>_0x4edecd?_0x498eae+_0x3ce3cd:_0x4edecd,_0x23c311=_0x389a97<_0x23c311?_0x389a97:_0x23c311,_0x2420b3=_0x389a97+_0x19a659>_0x2420b3?_0x389a97+_0x19a659:_0x2420b3;}return{'minRow':_0x49c1a6,'maxRow':_0x4edecd,'minColumn':_0x23c311,'maxColumn':_0x2420b3};}['_setupColumnsRowsFixing'](){const _0x49445d=this['editor'],_0x1d4b35=_0x49445d['plugins']['get']('TrackChangesEditing'),_0x4d56df=_0x49445d['plugins']['get']('TableUtils');_0x49445d['model']['document']['on']('change:data',()=>{const _0xf35386=Array['from'](_0x49445d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3776e9,data:_0x31340d}of _0xf35386){const {group:_0x1cca3d,id:_0x4a7e75,subType:_0x526814}=_0x548e4a(_0x3776e9);if('suggestion'!=_0x1cca3d)continue;if(null!=_0x31340d['oldRange'])continue;const _0x46d9bc=_0x1d4b35['getSuggestion'](_0x4a7e75);this['_tablePostFixingSubtypes']['includes'](_0x526814)&&this['_tableSuggestions']['add'](_0x46d9bc);}},{'priority':'low'});const _0x15a653=(_0x53befd,_0x2bf38d)=>{let _0x3855fb=!0x1;const _0x379eb6=_0x2bf38d['createRangeOn'](_0x53befd),_0x3009be=_0x53befd['findAncestor']('table'),_0x2bca72=_0x4d56df['getCellLocation'](_0x53befd);for(const _0x28922d of this['_tableSuggestions']){const _0x48001a=_0x28922d['subType'],_0x3d90b2=_0x48001a['startsWith']('tablePaste'),_0x335730=_0x48001a['substr'](_0x3d90b2?0xa:0x5),_0x216ee7=_0x335730['toLowerCase'](),_0x39b1f6=_0x216ee7['substr'](0x0,0x3)+'span',_0x2f3c38='min'+_0x335730,_0x1f37f1='max'+_0x335730;if(!_0x28922d['isInContent'])continue;if(_0x3009be!=_0x28922d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28922d['isIntersectingWithRange'](_0x379eb6))continue;const _0xfbbd7e=_0x53befd['hasAttribute'](_0x39b1f6)?_0x53befd['getAttribute'](_0x39b1f6)-0x1:0x0,_0x2689f6=this['_getSuggestionCoords'](_0x28922d),_0x2d8e00=_0x2689f6[_0x2f3c38],_0x5e73dc=_0x2689f6[_0x1f37f1];_0x2d8e00<=_0x2bca72[_0x216ee7]&&_0x2bca72[_0x216ee7]+_0xfbbd7e<=_0x5e73dc&&(_0x28922d['addRange'](_0x379eb6),_0x3855fb=!0x0);}return _0x3855fb;};_0x49445d['model']['document']['registerPostFixer'](_0x570f55=>{let _0x14d2ec=!0x1;for(const _0x5aeff4 of _0x49445d['model']['document']['differ']['getChanges']())if('insert'==_0x5aeff4['type']){if('tableRow'==_0x5aeff4['name']){for(const _0x4a7b44 of _0x5aeff4['position']['nodeAfter']['getChildren']())_0x14d2ec=_0x14d2ec||_0x15a653(_0x4a7b44,_0x570f55);}else'tableCell'==_0x5aeff4['name']&&(_0x14d2ec=_0x14d2ec||_0x15a653(_0x5aeff4['position']['nodeAfter'],_0x570f55));}return _0x14d2ec;});}['_getSuggestionCoords'](_0x130e07){return this['_getCoordsForCells'](_0x130e07['getRanges']()['map'](_0x534212=>_0x534212['start']['nodeAfter']));}}function Re(_0x334c19){return Array['from'](new Set(_0x334c19)['values']());}class Se extends _0x91c494{static get['requires'](){return[Ne];}['afterInit'](){const _0x4f606a=this['editor'],_0x6a2078=_0x4f606a['model']['document']['selection'],_0x39e701=_0x4f606a['locale'];if(!_0x4f606a['plugins']['has']('TableEditing'))return;const _0x104eaa=_0x4f606a['plugins']['get']('TrackChangesEditing'),_0x23e5af=_0x4f606a['plugins']['get']('TableUtils'),_0x39cc3=_0x4f606a['plugins']['get'](Ne);_0x39cc3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x104eaa['enableCommand']('mergeTableCells',()=>{const _0x4643aa=_0x23e5af['getSelectionAffectedTableCells'](_0x4f606a['model']['document']['selection']);_0x4f606a['model']['change'](()=>{_0x104eaa['markMultiRangeBlockFormat'](_0x4643aa,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4f606a['commands']['get']('mergeTableCells')['on']('execute',(_0x2d01e6,_0xf0b966)=>{_0x4f606a['commands']['get']('trackChanges')['value']&&(_0xf0b966['length']>0x0&&_0xf0b966[_0xf0b966['length']-0x1]&&_0xf0b966[_0xf0b966['length']-0x1]['forceDefaultExecution']||_0x104eaa['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2d01e6['stop']());},{'priority':'highest'});for(const _0x114ead of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2c0720=_0x4f606a['commands']['get'](_0x114ead);_0x104eaa['enableCommand'](_0x114ead,()=>{const _0x42c10c=_0x4f606a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x54a26b=>_0x54a26b['is']('element','tableCell')),_0x7b1aac=_0x2c0720['value'];_0x4f606a['model']['change'](()=>{_0x104eaa['markMultiRangeBlockFormat']([_0x42c10c,_0x7b1aac],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1054d6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1b5720=_0x4f606a['commands']['get'](_0x1054d6);_0x104eaa['enableCommand'](_0x1054d6,()=>{const _0x2579bd=_0x23e5af['getSelectionAffectedTableCells'](_0x4f606a['model']['document']['selection'])[0x0],_0x59bff5=_0x2579bd['findAncestor']('table'),{column:_0x29cda,row:_0x1277b1}=_0x23e5af['getCellLocation'](_0x2579bd);let _0x3b5de3=[];if('horizontally'==_0x1b5720['direction']){const _0x12b59a=_0x23e5af['createTableWalker'](_0x59bff5,{'startRow':_0x1277b1,'endRow':_0x1277b1,'includeAllSlots':!0x0});_0x3b5de3=Array['from'](_0x12b59a)['map'](_0x1dda35=>_0x1dda35['cell']);}else{const _0x29b080=_0x23e5af['createTableWalker'](_0x59bff5,{'column':_0x29cda,'includeAllSlots':!0x0});_0x3b5de3=Array['from'](_0x29b080)['map'](_0x339173=>_0x339173['cell']);}_0x4f606a['model']['change'](_0x28fb53=>{_0x104eaa['markBlockFormat'](_0x28fb53['createRangeOn'](_0x2579bd),{'commandName':_0x1054d6,'commandParams':[]},_0x3b5de3,_0x1054d6);});});}_0x104eaa['descriptionFactory']['registerDescriptionCallback'](_0x580921=>{if('formatBlock'!=_0x580921['type']&&'formatInline'!=_0x580921['type'])return;const {data:_0x54eb85}=_0x580921;return _0x54eb85&&'mergeTableCells'==_0x54eb85['commandName']?{'type':'format','content':At(_0x39e701,'*Merge\x20cells*')}:void 0x0;}),_0x104eaa['descriptionFactory']['registerDescriptionCallback'](_0x281f3d=>{if('formatBlock'!=_0x281f3d['type']&&'formatInline'!=_0x281f3d['type'])return;const {data:_0x200329}=_0x281f3d;return _0x200329?'splitTableCellVertically'==_0x200329['commandName']?{'type':'format','content':At(_0x39e701,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x200329['commandName']?{'type':'format','content':At(_0x39e701,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x495d20=_0x39cc3['_acceptFormatSuggestionCallbackFactory']();for(const _0x208935 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x104eaa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x208935,'accept',_0x495d20);for(const _0x479f9c of['splitTableCellVertically','splitTableCellHorizontally'])_0x104eaa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x479f9c,'accept',_0x495d20);_0x104eaa['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3a5149=>{_0x4f606a['model']['change'](_0xbd9a16=>{const _0x47cf11=Array['from'](_0x6a2078['getRanges']())['map'](_0x4f1bca=>_0xa6acbf['fromRange'](_0x4f1bca));_0xbd9a16['setSelection'](_0x3a5149),_0x4f606a['commands']['get']('mergeTableCells')['refresh'](),_0x4f606a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x218c54=_0x47cf11['filter'](_0x1753fb=>'$graveyard'!=_0x1753fb['root']['rootName']);_0x218c54['length']>0x0&&_0xbd9a16['setSelection'](_0x218c54);for(const _0x22a7c6 of _0x47cf11)_0x22a7c6['detach']();});});for(const _0x593215 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x234c37=_0x4f606a['commands']['get'](_0x593215);_0x234c37['on']('set:isEnabled',(_0x5c7bb8,_0x224a0e,_0x1e50e5)=>{if(_0x1e50e5){const _0x5476ae=_0x4f606a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x300c0a=>_0x300c0a['is']('element','tableCell'));this['_areMergableCells'](_0x234c37['value'],_0x5476ae)||(_0x5c7bb8['return']=!0x1,_0x5c7bb8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x531ea2=this['editor']['commands']['get']('mergeTableCells'),_0x500168=this['editor']['plugins']['get']('TableUtils');if(!_0x531ea2['isEnabled'])return!0x1;const _0x1068ef=_0x500168['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x32ef38 of _0x1068ef)for(const _0x125445 of _0x1068ef)if(_0x32ef38!=_0x125445&&!this['_areMergableCells'](_0x32ef38,_0x125445))return!0x1;return!0x0;}['_areMergableCells'](_0x2379e4,_0x53cb99){const _0x8b2391=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5810dd=this['editor']['model']['createRangeOn'](_0x2379e4),_0x28fdbc=this['editor']['model']['createRangeOn'](_0x53cb99),_0x2479f7=new Set(),_0x52eee5=new Set();for(const _0x7342f8 of _0x8b2391['getSuggestions']())if(('insertion'==_0x7342f8['type']||'deletion'==_0x7342f8['type']||'mergeTableCells'==_0x7342f8['subType'])&&_0x7342f8['isInContent']){for(const _0x4c839a of _0x7342f8['getRanges']())_0x4c839a['containsRange'](_0x5810dd,!0x0)&&_0x2479f7['add'](_0x7342f8['type']+':'+_0x7342f8['author']['id']),_0x4c839a['containsRange'](_0x28fdbc,!0x0)&&_0x52eee5['add'](_0x7342f8['type']+':'+_0x7342f8['author']['id']);}if(_0x2479f7['size']!=_0x52eee5['size'])return!0x1;for(const _0x230ce2 of _0x2479f7)if(!_0x52eee5['has'](_0x230ce2))return!0x1;return!0x0;}}class Me extends _0x91c494{static get['requires'](){return[Ne];}['afterInit'](){const _0x24e2a5=this['editor'];if(!_0x24e2a5['plugins']['has']('TableEditing'))return;const _0x2309a8=_0x24e2a5['locale'],_0x5d5bf2=_0x24e2a5['plugins']['get']('TrackChangesEditing');_0x5d5bf2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5d5bf2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5d5bf2['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x2309a8,'FORMAT_HEADER_ROW')),_0x5d5bf2['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x2309a8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d4068=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3115c7=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x3d4068['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3115c7),_0x3d4068['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3115c7),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0xa93906=this['editor']['plugins']['get']('TrackChangesEditing'),_0x290b51=this['editor']['plugins']['get']('TableUtils');function _0x79eb2e({showActiveMarker:_0x11250b=!0x0,setDataAttribute:_0xd9e8b3=!0x0}={}){return(_0x51f094,_0x23a4e,_0x143c15)=>{const {type:_0x20bd6b,id:_0x27b1bf}=_0x548e4a(_0x23a4e['markerName']);if(!_0xa93906['hasSuggestion'](_0x27b1bf))return;const _0x5c7849=_0xa93906['getSuggestion'](_0x27b1bf),_0x19aaa9=_0x5c7849['data'];if('formatBlock'!=_0x5c7849['type']||!_0x19aaa9||'setTableColumnHeader'!=_0x19aaa9['commandName'])return;if(_0x23a4e['item'])return void _0x51f094['stop']();if(!_0x143c15['consumable']['consume'](_0x23a4e['markerRange'],_0x51f094['name']))return;const _0x5d8485=_0x23a4e['markerRange']['start']['nodeAfter'],_0x871630=_0x23a4e['markerRange']['end']['nodeBefore'],_0x461b10=_0x5d8485['parent']['parent'],{column:_0x462896}=_0x290b51['getCellLocation'](_0x5d8485),{column:_0x5b19d6}=_0x290b51['getCellLocation'](_0x871630);for(let _0x4c6844=_0x462896;_0x4c6844<=_0x5b19d6;_0x4c6844++){const _0x26c490=_0x290b51['createTableWalker'](_0x461b10,{'column':_0x4c6844,'includeAllSlots':!0x1});for(const _0x7f3faf of _0x26c490){const _0x7a680d=_0x7f3faf['cell'],_0x34088f=_0x143c15['mapper']['toViewElement'](_0x7a680d);_0x143c15['writer']['addClass']('ck-suggestion-marker-'+_0x20bd6b,_0x34088f),_0xd9e8b3&&_0x143c15['writer']['setAttribute']('data-suggestion',_0x27b1bf,_0x34088f),_0x143c15['mapper']['bindElementToMarker'](_0x34088f,_0x23a4e['markerName']),_0x11250b&&(_0xa93906['activeMarkers']['includes'](_0x23a4e['markerName'])?_0x143c15['writer']['addClass']('ck-suggestion-marker--active',_0x34088f):_0x143c15['writer']['removeClass']('ck-suggestion-marker--active',_0x34088f));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x79eb2e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x127383,_0x2486b6,_0x2a3089)=>{_0x2a3089['options']['showSuggestionHighlights']&&_0x79eb2e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x127383,_0x2486b6,_0x2a3089);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x22fa3a,_0x2e3c22,_0x6bc6a7)=>{const {type:_0x338a6e,id:_0x4ae3d8}=_0x548e4a(_0x2e3c22['markerName']);if(!_0xa93906['hasSuggestion'](_0x4ae3d8))return;const _0x3b863e=_0xa93906['getSuggestion'](_0x4ae3d8),_0x327b30=_0x3b863e['data'];if('formatBlock'!=_0x3b863e['type']||!_0x327b30||'setTableColumnHeader'!=_0x327b30['commandName'])return;const _0x55e7fd=_0x6bc6a7['mapper']['markerNameToElements'](_0x2e3c22['markerName']);if(_0x55e7fd){for(const _0x4daf51 of _0x55e7fd)_0x6bc6a7['writer']['removeClass']('ck-suggestion-marker-'+_0x338a6e,_0x4daf51),_0x6bc6a7['writer']['removeClass']('ck-suggestion-marker--active',_0x4daf51),_0x6bc6a7['writer']['removeAttribute']('data-suggestion',_0x4daf51),_0x6bc6a7['mapper']['unbindElementFromMarkerName'](_0x4daf51,_0x2e3c22['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x48b770=this['editor'],_0x29ca2a=_0x48b770['locale'];function _0x288657(_0x3967c5){return{'type':'format','content':At(_0x29ca2a,'*Format:*\x20%0',_0x3967c5)};}_0x48b770['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe631a1=>{if('formatBlock'!=_0xe631a1['type'])return;const {data:_0x148883}=_0xe631a1;if(_0x148883){if('setTableRowHeader'==_0x148883['commandName']){const _0x4a648a=_0x148883['commandParams'][0x0]['forceValue'];return _0x288657(At(_0x29ca2a,_0x4a648a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x148883['commandName']){const _0x4e833c=_0x148883['commandParams'][0x0]['forceValue'];return _0x288657(At(_0x29ca2a,_0x4e833c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x91c494{static get['requires'](){return[Ne];}['afterInit'](){const _0x173a9a=this['editor'];if(!_0x173a9a['plugins']['has']('TableEditing')||!_0x173a9a['config']['get']('table.enableFooters'))return;const _0x337cea=_0x173a9a['locale'],_0x576808=_0x173a9a['plugins']['get']('TrackChangesEditing');_0x576808['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x576808['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x337cea,'FORMAT_FOOTER_ROW'));}}class we extends _0x91c494{['afterInit'](){const _0x41d917=this['editor'],_0x24e908=_0x41d917['locale'],_0x3f0808=_0x41d917['plugins']['get']('TrackChangesEditing');function _0x4cb7ea(_0x41fd35){return{'type':'format','content':''+At(_0x24e908,'*Set\x20table\x20type:*\x20%0',_0x41fd35)};}_0x41d917['plugins']['has']('TableLayout')&&(_0x3f0808['enableCommand']('insertTableLayout'),_0x3f0808['enableDefaultAttributesIntegration']('tableType'),_0x3f0808['descriptionFactory']['registerElementLabel'](_0x47f43b=>_0x47f43b['is']('element','table')&&'layout'===_0x47f43b['getAttribute']('tableType'),_0x34379f=>At(_0x24e908,'ELEMENT_LAYOUT_TABLE',_0x34379f)),_0x3f0808['descriptionFactory']['registerDescriptionCallback'](_0x55454a=>{const {data:_0x3fbe2a}=_0x55454a;if(_0x3fbe2a&&'tableType'==_0x3fbe2a['key'])switch(_0x3fbe2a['newValue']){case'layout':return _0x4cb7ea(At(_0x24e908,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4cb7ea(At(_0x24e908,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x4ed24f=>[_0x4ed24f,null]));class De extends _0x91c494{static get['requires'](){return[Ne];}['afterInit'](){const _0x16531e=this['editor'];if(!_0x16531e['plugins']['has']('TableClipboard'))return;const _0x211a79=_0x16531e['plugins']['get']('TrackChangesEditing'),_0x134161=_0x16531e['plugins']['get']('TableUtils'),_0x44690b=_0x16531e['plugins']['get'](Ne),_0x80d1ad=_0x16531e['plugins']['get']('TableClipboard'),_0x3148fe=_0x16531e['plugins']['get']('TableSelection'),_0x948ab=_0x16531e['plugins']['get'](ut);_0x44690b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x16531e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x16531e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x59eefb=null,_0x21f7fb=!0x1;_0x948ab['on']('contentInsertion',(_0x43e62b,_0x3bc0be)=>{_0x21f7fb='paste'===_0x3bc0be['method'];}),_0x16531e['model']['on']('insertContent',(_0x1c2d3b,_0xabaff0)=>{if(!_0x21f7fb&&null===_0x3148fe['getSelectedTableCells']())return;const [_0x1944f0,_0x53f9bf]=_0xabaff0,_0xe7e78e=_0xabaff0[_0xabaff0['length']-0x1];_0xe7e78e&&_0xe7e78e['forceDefaultExecution']||_0x211a79['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5c1eb2,_0xc5f5db,_0x4b7c70,_0x521df5,_0x42f132){if(_0xc5f5db&&!_0xc5f5db['is']('documentSelection'))return!0x1;const _0x13c6da=_0x42f132['getTableIfOnlyTableInContent'](_0x5c1eb2,_0x4b7c70);if(!_0x13c6da||!xe(_0x13c6da,void 0x0,_0x521df5))return!0x1;const _0x1953f3=_0x521df5['getSelectionAffectedTableCells'](_0x4b7c70['document']['selection']);if(!_0x1953f3['length'])return!0x1;const _0x306022=_0x1953f3[0x0]['findAncestor']('table'),_0x14f791=_0x521df5['getRowIndexes'](_0x1953f3),_0x3f1a7d=_0x521df5['getColumnIndexes'](_0x1953f3),_0x13dcaf={'startRow':_0x14f791['first'],'endRow':_0x14f791['last'],'startColumn':_0x3f1a7d['first'],'endColumn':_0x3f1a7d['last']};return 0x1==_0x1953f3['length']&&(_0x13dcaf['endRow']+=_0x521df5['getRows'](_0x13c6da)-0x1,_0x13dcaf['endColumn']+=_0x521df5['getColumns'](_0x13c6da)-0x1),xe(_0x306022,_0x13dcaf,_0x521df5);}(_0x1944f0,_0x53f9bf,_0x16531e['model'],_0x134161,_0x80d1ad)&&(_0x1c2d3b['stop'](),_0x59eefb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x16531e['model']['change'](()=>{_0x16531e['model']['insertContent'](_0xabaff0[0x0],_0xabaff0[0x1],_0xabaff0[0x2],{'forceDefaultExecution':!0x0});const _0x27ebac=_0x932f3b(),{rowInsertionRanges:_0x8142a3,columnInsertionRanges:_0x1ed44f,insertionRanges:_0x4cc707,deletionRanges:_0x4aa970,cells:_0x3425cb}=_0x59eefb;_0x8142a3['length']&&_0x211a79['markMultiRangeInsertion'](_0x8142a3,'tablePasteRow',{'tablePasteChainId':_0x27ebac}),_0x1ed44f['length']&&_0x211a79['markMultiRangeInsertion'](_0x1ed44f,'tablePasteColumn',{'tablePasteChainId':_0x27ebac}),_0x4cc707['length']&&(_0x211a79['markMultiRangeInsertion'](_0x4cc707,'tablePaste',{'tablePasteChainId':_0x27ebac,'skipNestingCheck':!0x0}),_0x4cc707['forEach'](_0x54c5a4=>_0x54c5a4['detach']?.())),_0x4aa970['length']&&(_0x211a79['markMultiRangeDeletion'](_0x4aa970,'tablePaste',{'tablePasteChainId':_0x27ebac,'skipNestingCheck':!0x0}),_0x4aa970['forEach'](_0x43cffd=>_0x43cffd['detach']?.()));const _0x51a9f2=_0x211a79['markMultiRangeBlockFormat'](_0x3425cb['map'](({element:_0x37e2e8})=>_0x37e2e8),{'formatGroupId':_0x932f3b()},[],'tablePasteCell',{'tablePasteChainId':_0x27ebac});if(_0x51a9f2){const _0x3a9b0b=_0x51a9f2['getMarkers'](),_0x490960=[];for(const {element:_0x125996,attributes:_0x17cc65}of _0x3425cb){if(!_0x17cc65)continue;const _0x3c6ec2=_0x16531e['model']['createRangeOn'](_0x125996),_0x34cc5d=_0x3a9b0b['find'](_0x21a66e=>_0x21a66e['getRange']()['isEqual'](_0x3c6ec2));_0x34cc5d&&_0x490960['push']([_0x34cc5d['name'],_0x17cc65]);}_0x490960['length']&&_0x51a9f2['setAttribute']('markerAttributes',Object['fromEntries'](_0x490960));}_0x59eefb=null;}));},{'priority':_0x308b2d['high']+0xa}),_0x948ab['on']('contentInsertion',()=>{_0x21f7fb=!0x1;},{'priority':'lowest'}),_0x16531e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4deb15,_0x4329d7)=>{const [_0x57cf53,_0x506d8e,,_0x2024fb]=_0x4329d7;if(!_0x59eefb)return;_0x4deb15['stop']();const _0x13689c=_0x57cf53['cell'],_0x4f9859=_0x506d8e,_0x42a398=ve(_0x13689c),_0x5dd10d=ve(_0x4f9859);_0x4deb15['return']=_0x13689c;let _0x42d482=null,_0xef7315=null;if(_0x5dd10d||_0x42a398){if(_0x42a398&&!_0x5dd10d){_0x2024fb['remove'](_0x13689c['getChild'](0x0));for(const _0x4af1cf of Array['from'](_0x4f9859['getChildren']()))_0x2024fb['insert'](_0x4af1cf,_0x13689c,'end');const _0x53355b=_0x59eefb['rowInsertionIndexes']['includes'](_0x57cf53['row']),_0x1eba97=_0x59eefb['columnInsertionIndexes']['includes'](_0x57cf53['column']);_0x53355b||_0x1eba97||(_0x42d482=_0xa6acbf['fromRange'](_0x2024fb['createRangeIn'](_0x13689c)));}else _0x5dd10d&&!_0x42a398&&(_0xef7315=_0x2024fb['createRangeIn'](_0x13689c));}else{const _0x322631=_0x2024fb['createElement']('tableCellSuggestion'),_0x33b7b9=_0x2024fb['createElement']('tableCellSuggestion');_0x2024fb['wrap'](_0x2024fb['createRangeIn'](_0x13689c),_0x33b7b9),_0x2024fb['insert'](_0x322631,_0x13689c,0x0);for(const _0x3fea4b of Array['from'](_0x4f9859['getChildren']()))_0x2024fb['insert'](_0x3fea4b,_0x322631,'end');_0x42d482=_0xa6acbf['fromRange'](_0x2024fb['createRangeOn'](_0x322631)),_0xef7315=_0xa6acbf['fromRange'](_0x2024fb['createRangeOn'](_0x33b7b9));}const _0x394561=Array['from'](_0x4f9859['getAttributes']())['filter'](([_0x410016])=>Be['includes'](_0x410016));_0x59eefb['cells']['push']({'element':_0x13689c,'attributes':_0x394561['length']?Object['fromEntries'](_0x394561):null}),_0x42d482&&_0x59eefb['insertionRanges']['push'](_0x42d482),_0xef7315&&_0x59eefb['deletionRanges']['push'](_0xef7315);},{'priority':'high'}),_0x134161['on']('insertColumns',(_0x4468cd,_0x4c976c)=>{const [_0x208452,_0x513051={}]=_0x4c976c;if(!_0x59eefb)return;const _0x2108e4=_0x513051['at']||0x0,_0x2bec86=_0x513051['columns']||0x1;_0x59eefb['columnInsertionIndexes']=new Array(_0x2bec86)['fill'](_0x2108e4)['map']((_0xec0fa9,_0xef71a5)=>_0xec0fa9+_0xef71a5);for(const {cell:_0xd5eebc}of _0x134161['createTableWalker'](_0x208452,{'startColumn':_0x2108e4,'endColumn':_0x2108e4+_0x2bec86-0x1}))_0x59eefb['columnInsertionRanges']['push'](_0x16531e['model']['createRangeOn'](_0xd5eebc));},{'priority':'low'}),_0x134161['on']('insertRows',(_0x450505,_0x24ac73)=>{const [_0x3986f8,_0x59605e={}]=_0x24ac73;if(!_0x59eefb)return;const _0x297cf6=_0x59605e['at']||0x0,_0x5ea5c6=_0x59605e['rows']||0x1;_0x59eefb['rowInsertionIndexes']=new Array(_0x5ea5c6)['fill'](_0x297cf6)['map']((_0x19d678,_0x414da5)=>_0x19d678+_0x414da5);for(const {cell:_0xe982e2}of _0x134161['createTableWalker'](_0x3986f8,{'startRow':_0x297cf6,'endRow':_0x297cf6+_0x5ea5c6-0x1}))_0x59eefb['rowInsertionRanges']['push'](_0x16531e['model']['createRangeOn'](_0xe982e2));},{'priority':'low'}),_0x211a79['descriptionFactory']['registerDescriptionCallback'](_0x33a2d3=>{if(_0x33a2d3['subType']&&_0x33a2d3['subType']['startsWith']('tablePaste'))return _0x33a2d3['previous']?{}:{'type':'insertion','content':At(_0x16531e['locale'],'*Replace\x20table\x20cells*')};});const _0x329514=()=>!0x1;for(const _0xbbf0fe of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x211a79['_suggestionFactory']['registerCustomCallback']('insertion',_0xbbf0fe,'join',_0x329514),_0x211a79['_suggestionFactory']['registerCustomCallback']('deletion',_0xbbf0fe,'join',_0x329514),_0x211a79['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xbbf0fe,'join',_0x329514);_0x211a79['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x329514),_0x211a79['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3978b7,_0x1bb9e2,_0x262be6)=>{const _0x5b46c6=_0x3978b7['map'](_0x1375c4=>_0x1375c4['getContainedElement']())['filter'](_0x52d9e6=>_0x52d9e6),_0x13babf=new Map(_0x5b46c6['map'](_0x12419f=>[_0x12419f,null]));if(_0x59eefb){for(const {element:_0x47f398,attributes:_0xa29493}of _0x59eefb['cells'])_0xa29493&&_0x13babf['set'](_0x47f398,_0xa29493);}else{if(_0x262be6&&_0x262be6['markerAttributes'])for(const [_0x28c13c,_0x406ad0]of Object['entries'](_0x262be6['markerAttributes'])){const _0x2b781e=_0x16531e['model']['markers']['get'](_0x28c13c),_0x304a88=_0x2b781e?_0x2b781e['getRange']()['getContainedElement']():null;_0x304a88&&_0x13babf['set'](_0x304a88,_0x406ad0);}}_0x16531e['model']['change'](_0x5415d5=>{for(const [_0x65f940,_0x3da472]of _0x13babf)_0x5415d5['setAttributes']({...Fe,..._0x3da472},_0x65f940);});});const _0x5253cf=(_0x59f2fa,_0x1e54b7)=>{_0x211a79['_suggestionFactory']['registerCustomCallback'](_0x59f2fa,'tablePaste',_0x1e54b7,(_0x343170,_0x548520,_0x2c8914)=>{_0x16531e['model']['change'](_0x88a52d=>{const _0x1edf6d=[];for(const _0x23ef0c of _0x343170){const _0x3fb16b=_0x23ef0c['start']['nodeAfter'];_0x3fb16b['is']('element','tableCellSuggestion')&&_0x1edf6d['push'](_0x3fb16b);}_0x211a79['_suggestionFactory']['getSuggestionCallback'](_0x59f2fa,null,_0x1e54b7)(_0x343170,_0x548520,_0x2c8914);for(const _0x4d78f7 of _0x1edf6d)'$graveyard'!=_0x4d78f7['root']['rootName']&&_0x88a52d['unwrap'](_0x4d78f7);});});};_0x5253cf('insertion','accept'),_0x5253cf('insertion','discard'),_0x5253cf('deletion','accept'),_0x5253cf('deletion','discard'),_0x211a79['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x317187=>{const _0x1e51fd=_0x317187['map'](_0x303a8f=>_0x303a8f['getContainedElement']()),_0x4808d6=_0x1e51fd[0x0]['findAncestor']('table'),{minRow:_0x47757e,maxRow:_0x1efb29}=_0x44690b['_getCoordsForCells'](_0x1e51fd);_0x134161['removeRows'](_0x4808d6,{'at':_0x47757e,'rows':_0x1efb29-_0x47757e+0x1});}),_0x211a79['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3580d5=>{const _0x562400=_0x3580d5['map'](_0x19f323=>_0x19f323['getContainedElement']()),_0x479557=_0x562400[0x0]['findAncestor']('table'),{minColumn:_0x2b79bd,maxColumn:_0x322d49}=_0x44690b['_getCoordsForCells'](_0x562400);_0x134161['removeColumns'](_0x479557,{'at':_0x2b79bd,'columns':_0x322d49-_0x2b79bd+0x1});});const _0x4b5b92=(_0x4fecec,_0x104643)=>{if(!_0x104643['subType']||!_0x104643['subType']['startsWith']('tablePaste'))return;const _0x377e48=_0x104643['attributes']['tablePasteChainId'],_0x1b8c22=_0x211a79['getSuggestions']()['filter'](_0x43e92e=>_0x43e92e['isInContent']&&_0x43e92e['attributes']&&_0x43e92e['attributes']['tablePasteChainId']==_0x377e48);_0x1b8c22['length']&&_0x104643['getAllAdjacentSuggestions']()['length']!=_0x1b8c22['length']&&_0x1b8c22['reduce']((_0x20c2dc,_0x26985d)=>(_0x20c2dc['next']=_0x26985d,_0x26985d['previous']=_0x20c2dc,_0x26985d));};function _0x393e17(_0x563bc4,_0x885196=!0x0){const {id:_0x33aa41,authorId:_0x408461}=_0x548e4a(_0x563bc4['markerName']),_0x1b29c6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4e4723=_0x211a79['activeMarkers']['includes'](_0x563bc4['markerName']);return _0x4e4723&&_0x1b29c6['push']('ck-suggestion-marker--active'),{'classes':_0x1b29c6,'attributes':{'data-suggestion':_0x33aa41,'data-author-id':_0x408461},'priority':_0x4e4723&&_0x885196?0xbc2:0xbb8};}_0x211a79['on']('suggestionLoaded',_0x4b5b92,{'priority':'high'}),_0x211a79['on']('suggestionUnloaded',_0x4b5b92,{'priority':'high'}),_0x16531e['model']['document']['registerPostFixer'](()=>{let _0x29db67=!0x1;const _0xa2928e=Array['from'](_0x16531e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d7702,data:_0x20a56b}of _0xa2928e){const {group:_0x4cf271,type:_0x439fb1,id:_0x317e44}=_0x548e4a(_0x2d7702);if('suggestion'!=_0x4cf271||'deletion'!=_0x439fb1||_0x20a56b['oldRange'])continue;if(!_0x211a79['hasSuggestion'](_0x317e44))continue;const _0x714cda=_0x211a79['getSuggestion'](_0x317e44)['getRanges'](),_0x47825f=_0x16531e['plugins']['get']('Users')['me'];for(const _0x21d599 of _0x211a79['getSuggestions']()){if(!_0x21d599['isInContent']||_0x21d599['author']!=_0x47825f)continue;if('formatBlock'!=_0x21d599['type']||'tablePasteCell'!=_0x21d599['subType'])continue;if(_0x21d599['getRanges']()['every'](_0x396b49=>_0x714cda['some'](_0x54260d=>_0x54260d['containsRange'](_0x396b49,!0x0)))){for(const _0x2d4292 of _0x21d599['getAllAdjacentSuggestions']())_0x2d4292['isInContent']&&(_0x2d4292['discard'](),_0x29db67=!0x0);}}}return _0x29db67;}),_0x16531e['model']['document']['registerPostFixer'](_0x5b96aa=>{const _0x3071f0=_0x16531e['commands']['get']('redo');if(!_0x3071f0||!_0x3071f0['_createdBatches']['has'](_0x5b96aa['batch']))return!0x1;let _0x49caeb=!0x1;const _0x1891ac=_0x16531e['plugins']['get']('Users')['me'],_0x39d85d=_0x16531e['model']['document']['differ']['getChanges'](),_0x547458=Array['from'](_0x16531e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x10ddff,data:_0x573269})=>{const {group:_0x43a2d0,subType:_0x51e4c1,authorId:_0x3d87db}=_0x548e4a(_0x10ddff);return'suggestion'==_0x43a2d0&&'tablePaste'==_0x51e4c1&&_0x3d87db==_0x1891ac['id']&&!_0x573269['oldRange'];});for(const _0x3beb5a of _0x39d85d){if('insert'!=_0x3beb5a['type']||'tableCellSuggestion'!=_0x3beb5a['name']||0x1!=_0x3beb5a['length'])continue;const _0x26a87d=_0x5b96aa['createRange'](_0x3beb5a['position'],_0x3beb5a['position']['getShiftedBy'](0x1));if(!_0x547458['find'](({data:_0x59e319})=>_0x59e319['newRange']['isEqual'](_0x26a87d))){for(const {name:_0x1bfc90,data:_0x3ff933}of _0x547458)if(_0x26a87d['containsRange'](_0x3ff933['newRange'])){_0x5b96aa['updateMarker'](_0x1bfc90,{'range':_0x26a87d}),_0x49caeb=!0x0;break;}}}return _0x49caeb;}),_0x16531e['model']['document']['registerPostFixer'](_0x52e26e=>{let _0x4a129d=!0x1;const _0xe3e554=_0x16531e['plugins']['get']('Users')['me'],_0x1d82e4=_0x211a79['getSuggestions']()['filter'](_0x30acb7=>_0x30acb7['isInContent']&&_0x30acb7['author']==_0xe3e554),_0x3e6f65=new Set(),_0x1963c9=new Set();for(const _0x58a515 of _0x1d82e4)if('tablePaste'==_0x58a515['subType'])for(const _0x35f7e0 of _0x58a515['getMarkers']()){const _0x4548e8=_0x35f7e0['getRange']()['getContainedElement']();if(_0x4548e8){if(_0x4548e8['is']('element','tableCellSuggestion')&&ve(_0x4548e8)){_0x58a515['removeMarker'](_0x35f7e0['name']),_0x3e6f65['add'](_0x4548e8),_0x4a129d=!0x0;const _0x3167be=_0x4548e8['nextSibling'],_0xa4f859=_0x4548e8['previousSibling'],_0x1b5550=_0x3167be&&_0x3167be['is']('element','tableCellSuggestion'),_0x4c44a4=_0xa4f859&&_0xa4f859['is']('element','tableCellSuggestion');_0x1b5550&&!_0x3e6f65['has'](_0x3167be)&&_0x1963c9['add'](_0x3167be),_0x4c44a4&&!_0x3e6f65['has'](_0xa4f859)&&_0x1963c9['add'](_0xa4f859);}else _0x4548e8['is']('element','paragraph')&&_0x4548e8['isEmpty']&&(_0x58a515['removeMarker'](_0x35f7e0['name']),_0x4a129d=!0x0);}}else{if('tablePasteCell'==_0x58a515['subType']){if(!_0x58a515['attributes']||!_0x58a515['attributes']['tablePasteChainId'])continue;const _0x20b006=_0x58a515['attributes']['markerAttributes'];if(_0x20b006&&Object['keys'](_0x20b006)['length'])continue;const _0x157cb3=_0x58a515['attributes']['tablePasteChainId'];let _0x1f8d09=!0x0,_0x225aed=!0x0;for(const _0x466f8a of _0x1d82e4)if(_0x466f8a['subType']&&_0x466f8a['subType']['startsWith']('tablePaste')){if(!_0x466f8a['attributes']['tablePasteChainId']){_0x225aed=!0x1;break;}if(_0x466f8a['id']!=_0x58a515['id']&&_0x466f8a['attributes']['tablePasteChainId']==_0x157cb3){_0x1f8d09=!0x1;break;}}_0x225aed&&_0x1f8d09&&(_0x58a515['removeMarkers'](),_0x4a129d=!0x0);}}for(const _0x5aae30 of _0x3e6f65)_0x52e26e['remove'](_0x5aae30);for(const _0x2c68dc of _0x1963c9)_0x52e26e['unwrap'](_0x2c68dc);return _0x4a129d;}),_0x16531e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3eb297=>_0x393e17(_0x3eb297),'converterPriority':'high'}),_0x16531e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x439934,_0x43691a)=>_0x43691a['options']['showSuggestionHighlights']?_0x393e17(_0x439934,!0x1):null,'converterPriority':'high'});const _0x79ffe8=_0x16531e['editing']['view'];this['listenTo'](_0x79ffe8['document'],'clipboardOutput',(_0x38e89b,_0x2d2438)=>{const _0x43bd43=[];for(const _0x4a99ab of _0x79ffe8['createRangeIn'](_0x2d2438['content'])['getItems']())_0x4a99ab['is']('element','suggestion-td')&&_0x43bd43['push'](_0x4a99ab);_0x79ffe8['change'](_0x2128f4=>{for(const _0x5808bd of _0x43bd43)_0x2128f4['move'](_0x2128f4['createRangeIn'](_0x5808bd),_0x2128f4['createPositionBefore'](_0x5808bd)),_0x2128f4['remove'](_0x5808bd);});});}}function ve(_0x47bcf7){if(_0x47bcf7['isEmpty'])return!0x0;const _0x4f492f=_0x47bcf7['getChild'](0x0);return _0x4f492f['is']('element','paragraph')&&_0x4f492f['isEmpty'];}function xe(_0x3131a0,_0x264d82={},_0x51e210){for(const {isAnchor:_0x530027,cellHeight:_0x5c32f9,cellWidth:_0x37102d}of _0x51e210['createTableWalker'](_0x3131a0,{'includeAllSlots':!0x0,..._0x264d82}))if(!_0x530027||0x1!=_0x5c32f9||0x1!=_0x37102d)return!0x1;return!0x0;}class Pe extends _0x91c494{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4a714d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a714d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4a714d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4a714d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a714d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4a714d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4a714d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2232f5,_0x45cc4e){const _0x599a1a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5919dc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x14bbcb=_0x45cc4e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x39607e=_0x5919dc['getColumnGroupElement'](_0x14bbcb);let _0x2bb58d=_0x39607e?_0x5919dc['getTableColumnsWidths'](_0x39607e):null,_0x357938=_0x14bbcb['getAttribute']('tableWidth')||null;const _0x5a6170=_0x45cc4e['tableWidth']||_0x357938,_0xf81e80=_0x45cc4e['columnWidths']||_0x2bb58d,_0x12381f=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d8b53 of _0x599a1a['getSuggestions']()){const _0x103e94=_0x3d8b53['getContainedElement']();if('resizeTable'===_0x3d8b53['subType']&&_0x103e94===_0x14bbcb){_0x3d8b53['author']!==_0x12381f&&_0x3d8b53['discard']();const _0x55bdd2=_0x3d8b53['data']['commandParams'];_0x357938=_0x55bdd2[0x0]['tableWidth'],_0x2bb58d=_0x55bdd2[0x0]['columnWidths'];break;}}_0x2232f5({'table':_0x14bbcb,'tableWidth':_0x5a6170,'columnWidths':_0xf81e80}),_0x599a1a['markBlockFormat'](_0x14bbcb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x357938,'columnWidths':_0x2bb58d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x335d06){if('formatBlock'!=_0x335d06['type']&&'formatInline'!=_0x335d06['type'])return;const {data:_0x37f321}=_0x335d06;if(_0x37f321&&'resizeTable'===_0x37f321['formatGroupId']){const _0x8cc809='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x8cc809)};}}}class Ue extends _0x91c494{['afterInit'](){const _0x12e222=this['editor'];_0x12e222['plugins']['has']('Template')&&_0x12e222['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x91c494{['afterInit'](){const _0x2ba3f3=this['editor'];if(!_0x2ba3f3['commands']['get']('insertTableOfContents'))return;_0x2ba3f3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x598b32=_0x2ba3f3['plugins']['get']('TrackChangesEditing'),_0x2cc5a1=_0x2ba3f3['locale'];_0x598b32['descriptionFactory']['registerElementLabel']('tableOfContents',_0x375918=>At(_0x2cc5a1,'ELEMENT_TABLE_OF_CONTENTS',_0x375918));}}class He extends _0x91c494{['afterInit'](){const _0x5595ea=this['editor'];if(!_0x5595ea['plugins']['has']('Title'))return;_0x5595ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x5595ea['locale'],'ELEMENT_TITLE')),_0x5595ea['model']['document']['registerPostFixer'](_0x190beb=>{let _0x510ebb=!0x1;const _0x1686e9=Array['from'](_0x5595ea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c7bc4,data:_0x37cb7d}of _0x1686e9){const {group:_0x652362}=_0x548e4a(_0x4c7bc4);if('suggestion'!==_0x652362||!_0x37cb7d['newRange'])continue;const _0x201263=_0x37cb7d['newRange'],_0x5909f0=_0x201263['end']['nodeBefore'];if(!_0x5909f0||!_0x5909f0['is']('element','title-content'))continue;if(!_0x201263['start']['isTouching'](_0x201263['end']))continue;const _0x45a1ea=_0x5595ea['model']['schema']['getNearestSelectionRange'](_0x201263['end'],'forward');if(_0x45a1ea&&_0x45a1ea['isCollapsed']){const _0x2c4b4e=_0x190beb['createRange'](_0x201263['start'],_0x45a1ea['start']);_0x2c4b4e['isEqual'](_0x201263)||(_0x190beb['updateMarker'](_0x4c7bc4,{'range':_0x2c4b4e}),_0x510ebb=!0x0);}_0x510ebb||(_0x190beb['removeMarker'](_0x4c7bc4),_0x510ebb=!0x0);}return _0x510ebb;});}}class $e extends _0x91c494{['afterInit'](){const _0x89aa7e=this['editor'],_0x28fa9d=_0x89aa7e['plugins']['get']('TrackChangesEditing');_0x89aa7e['plugins']['has']('Uploadcare')&&(_0x28fa9d['enableCommand']('uploadcare'),_0x89aa7e['plugins']['has']('UploadcareImageEdit')&&(_0x28fa9d['enableCommand']('uploadcareImageEdit'),_0x28fa9d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x28fa9d['descriptionFactory']['registerDescriptionCallback'](_0x3ff926=>{if('attribute'!=_0x3ff926['type'])return;const {data:_0x3c9430}=_0x3ff926;return _0x3c9430&&'uploadcareImageId'==_0x3c9430['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x91c494{['afterInit'](){const _0x95b7a8=this['editor'],_0x5ea572=_0x95b7a8['plugins']['get']('TrackChangesEditing');_0x95b7a8['plugins']['has']('UndoEditing')&&(_0x5ea572['enableCommand']('undo'),_0x5ea572['enableCommand']('redo'));}}class Ve extends _0x91c494{static get['requires'](){return[Ne];}['afterInit'](){const _0x25d1b7=this['editor'];if(!_0x25d1b7['plugins']['has']('TableCaptionEditing'))return;_0x25d1b7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x91c494{['tableProperties'];['tableCellProperties'];constructor(_0x56d2ec){super(_0x56d2ec),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xdb7035=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1ed59b of this['tableProperties'])_0xdb7035['enableCommand'](_0x1ed59b,(_0x18d2ca,_0x35133b)=>{const _0x4f8e77=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1ed59b,[_0x4f8e77],this['tableProperties'],'tableProperties',_0x18d2ca,_0x35133b);});_0xdb7035['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xdb7035['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xdb7035['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3d9558,_0x37b404)=>this['handleDiscardAction'](this['tableProperties'],_0x3d9558,_0x37b404)),_0xdb7035['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4cb4a6 of this['tableCellProperties'])this['editor']['commands']['get'](_0x4cb4a6)&&_0xdb7035['enableCommand'](_0x4cb4a6,(_0x242cae,_0x3233a9)=>{const _0x14cc46=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4cb4a6,_0x14cc46,this['tableCellProperties'],'tableCellProperties',_0x242cae,_0x3233a9);});_0xdb7035['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xdb7035['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xdb7035['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x18d26e,_0x496bf5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x18d26e,_0x496bf5)),_0xdb7035['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0xdb7035['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0xdb7035['descriptionFactory']['registerDescriptionCallback'](_0x1c7bb4=>this['handleSuggestionDescription'](_0x1c7bb4)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x38afc8,_0x7cb0ed,_0x3032e6,_0x584522,_0x5e389e,_0x179b76){const _0x3bcf86=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x179b76['batch'],()=>{for(const _0x393615 of _0x7cb0ed){if(this['_getSuggestion'](_0x393615,_0x584522))_0x5e389e(_0x179b76);else{const _0x480f06={};for(const _0x21d05e of _0x3032e6){const _0x45827d=_0x393615['getAttribute'](_0x21d05e);void 0x0!==_0x45827d&&(_0x480f06[_0x21d05e]=_0x45827d);}_0x5e389e(_0x179b76),_0x3bcf86['markBlockFormat'](_0x393615,{'commandParams':[_0x480f06]},[],_0x584522);}}});}['handleDiscardAction'](_0x13cc37,_0x14826e,_0x5cc6c3){const _0x5cff35=_0x14826e[0x0]['start']['nodeAfter'],_0x7b3090=_0x5cc6c3['commandParams'][0x0];this['editor']['model']['change'](_0x476667=>{for(const _0x5d7d5f of _0x13cc37)void 0x0!==_0x7b3090[_0x5d7d5f]?_0x476667['setAttribute'](_0x5d7d5f,_0x7b3090[_0x5d7d5f],_0x5cff35):_0x476667['removeAttribute'](_0x5d7d5f,_0x5cff35);});}['handleSuggestionDescription'](_0x209db3){if(_0x209db3['data'])switch(_0x209db3['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xcbd56a,_0x37e732){const _0x473e9f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1fa12c of _0x473e9f['getSuggestions']({'skipNotAttached':!0x0})){const _0x13f94b=_0x1fa12c['getContainedElement']();if(_0x1fa12c['subType']===_0x37e732&&_0x13f94b===_0xcbd56a)return _0x1fa12c;}return null;}['_registerTablePropertiesAttributes'](){const _0xc00546=this['editor']['plugins']['get']('TrackChangesEditing'),_0x390f9f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x29a47e of _0x390f9f){const _0x32af5c=_0x29a47e['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xc00546['descriptionFactory']['registerAttributeLabel'](_0x29a47e,At(this['editor']['locale'],'FORMAT_'+_0x32af5c));}}}class ze extends _0x91c494{['afterInit'](){const _0x2bfdfc=this['editor'];if(!_0x2bfdfc['plugins']['has']('LineHeight'))return;const _0x3f3007=_0x2bfdfc['plugins']['get']('TrackChangesEditing'),_0x3e6a0a=_0x2bfdfc['locale'];_0x3f3007['enableDefaultAttributesIntegration']('lineHeight'),_0x3f3007['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x3e6a0a,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x91c494{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x2b8fb6,_0x3330c8,_0x42a43f,_0x5bd31c,_0x2826a9,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x527ead){super(_0x527ead),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2858cc,_0x1981fb,_0xe6902d,_0x156b8)=>{this['_model']['change'](()=>{for(const _0x314082 of[..._0x156b8,..._0xe6902d])this['_model']['markers']['has'](_0x314082)&&_0x527ead['editing']['reconvertMarker'](_0x314082);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x527ead['plugins']['get'](_0x2b8fb6),this['_suggestionsConversion']=_0x527ead['plugins']['get'](_0x3330c8),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x527ead['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x527ead['config']['get']('trackChanges.trackFormatChanges'),_0x527ead['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x527ead['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x527ead,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x173b06=this['editor'];_0x173b06['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5b0243,{writer:_0x32bcd5})=>{let _0x242236='suggestion:'+_0x5b0243['getAttribute']('suggestion-type')+':'+_0x5b0243['getAttribute']('id');return _0x5b0243['getAttribute']('marker-count')&&(_0x242236+=':'+_0x5b0243['getAttribute']('marker-count')),_0x32bcd5['createElement']('$marker',{'data-name':_0x242236});}}),_0x173b06['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x173b06['model']['document']['registerPostFixer'](_0x25dc5e=>{let _0x10610f=!0x1;const _0x2fc204=Array['from'](_0x173b06['model']['document']['differ']['getChangedMarkers']()),_0x34ec67=new Set();for(const {name:_0x2bad7a,data:_0x1de3d5}of _0x2fc204){const {group:_0x3bb55b,type:_0x5b6fa2,subType:_0x31ef77,id:_0x154a76}=_0x548e4a(_0x2bad7a);if('suggestion'!==_0x3bb55b)continue;const _0xab971f=_0x31ef77?'suggestion:'+_0x5b6fa2+':'+_0x31ef77+':'+_0x154a76:'suggestion:'+_0x5b6fa2+':'+_0x154a76,_0x3f1ca1=_0x173b06['model']['markers']['getMarkersGroup'](_0xab971f),_0x16a6e4=_0x173b06['model']['markers']['get'](_0x2bad7a),_0x11f162=this['_suggestions']['get'](_0x154a76);if(null!=_0x1de3d5['newRange']){'formatInline'==_0x5b6fa2&&(_0x10610f=_0x10610f||Ze(_0x1de3d5['newRange'],_0x2bad7a,_0x25dc5e,_0x173b06['model']['schema']));const _0x39514e='attribute'==_0x5b6fa2&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x31ef77)),_0x11fa3a='attribute'==_0x5b6fa2&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x31ef77));if(_0x1de3d5['newRange']['isCollapsed']||'$graveyard'==_0x1de3d5['newRange']['root']['rootName']||'formatBlock'==_0x5b6fa2&&!tn(_0x1de3d5['newRange'])||_0x39514e&&!tn(_0x1de3d5['newRange'])||_0x11fa3a&&en(_0x1de3d5['newRange'])||'deletion'==_0x5b6fa2&&en(_0x1de3d5['newRange'])||_0x16a6e4&&nn(_0x16a6e4,_0x3f1ca1))_0x25dc5e['removeMarker'](_0x2bad7a),_0x10610f=!0x0;else{if(!_0x11f162||!_0x11f162['isInContent'])continue;if(_0x1de3d5['newRange']&&_0x1de3d5['oldRange']&&_0x1de3d5['newRange']['isEqual'](_0x1de3d5['oldRange']))continue;_0x34ec67['add'](_0x11f162);}}}return _0x34ec67['size']>0x0&&(_0x10610f=!!this['_joinWithAdjacentSuggestions'](_0x34ec67)||_0x10610f),_0x10610f;}),_0x173b06['model']['document']['registerPostFixer'](_0x38be1c=>{let _0x49f967=!0x1;for(const _0x4662df of _0x173b06['model']['document']['differ']['getChanges']())if('insert'==_0x4662df['type'])for(const _0x19b4f6 of this['_suggestions']['values']()){if(_0x19b4f6['isMultiRange']||!_0x19b4f6['isInContent'])continue;const _0x3f510c='formatBlock'==_0x19b4f6['type'],_0x382776=this['_getAttributeKey'](_0x19b4f6),_0x261fca=_0x382776&&this['_suggestionsConversion']['isBlockAttribute'](_0x382776);if(!_0x3f510c&&!_0x261fca)continue;const _0x4afbba=_0x19b4f6['getFirstRange']();if(_0x4afbba['start']['parent']!=_0x4afbba['end']['parent']&&!_0x4afbba['end']['isAtEnd']){const _0x1f165f=_0x173b06['model']['createPositionAt'](_0x4afbba['start']['nodeAfter'],'end'),_0xa4cca9=_0x173b06['model']['createRange'](_0x4afbba['start'],_0x1f165f);_0x38be1c['updateMarker'](_0x19b4f6['getFirstMarker'](),{'range':_0xa4cca9}),_0x49f967=!0x0;}}return _0x49f967;}),_0x173b06['model']['document']['registerPostFixer'](_0x1170be=>this['_processAttributeChanges'](_0x1170be)),_0x173b06['model']['document']['registerPostFixer'](_0x446ab4=>!_0x446ab4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x446ab4)),_0x173b06['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x173b06['model']['document']['on']('change:data',(_0x3cb9ac,_0x6acc23)=>{if(!_0x6acc23['isLocal']||_0x6acc23['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2ee86e=_0x173b06['model']['document']['differ']['getChanges']();if(0x0==_0x2ee86e['length'])return;const _0x32b9cb=[],_0x3a5268=_0x2ee86e['filter'](_0x3db006=>'attribute'==_0x3db006['type']),_0x40bd41=_0x2ee86e['filter'](_0x4a7e16=>'insert'==_0x4a7e16['type']&&'$text'!=_0x4a7e16['name']);for(const _0x167187 of _0x3a5268)this['_suggestionsConversion']['isRegisteredAttribute'](_0x167187['attributeKey'])&&_0x32b9cb['push']({'key':_0x167187['attributeKey'],'newValue':_0x167187['attributeNewValue'],'oldValue':_0x167187['attributeOldValue'],'range':sn(_0x167187['range'],_0x173b06['model'])});for(const _0x1554b5 of _0x40bd41){if('rename'!=_0x1554b5['action']&&'refresh'!=_0x1554b5['action'])continue;const _0x5bd9cf=rn(_0x1554b5['position']['nodeAfter'],_0x173b06['model']),_0x5626df=_0x1554b5['before'];'rename'==_0x1554b5['action']&&_0x32b9cb['push']({'key':Ke,'newValue':_0x1554b5['name'],'oldValue':_0x5626df['name'],'range':_0x5bd9cf});for(const [_0x2a5910,_0x95078c]of _0x5626df['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2a5910))continue;const _0x505beb=_0x1554b5['attributes']['get'](_0x2a5910);_0x95078c!==_0x505beb&&_0x32b9cb['push']({'key':_0x2a5910,'newValue':_0x505beb,'oldValue':_0x95078c,'range':_0x5bd9cf});}for(const [_0x1fbc89,_0x2532f0]of _0x1554b5['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x1fbc89)&&(_0x5626df['attributes']['has'](_0x1fbc89)||_0x32b9cb['push']({'key':_0x1fbc89,'newValue':_0x2532f0,'oldValue':null,'range':_0x5bd9cf}));}0x0!=_0x32b9cb['length']&&_0x173b06['model']['enqueueChange'](_0x6acc23,_0x2cd287=>{const _0x2249cd=_0x932f3b();for(const {range:_0x111e33,key:_0x13ed57,oldValue:_0x5dfe51,newValue:_0x517816}of _0x32b9cb)this['markAttributeChange'](_0x111e33,_0x13ed57,_0x5dfe51,_0x517816,{'groupId':_0x2249cd});this['_reduceExistingSuggestions'](_0x2cd287,_0x32b9cb);});},{'priority':'lowest'}),_0x173b06['model']['markers']['on']('update:suggestion',(_0x58a98d,_0x1a4fce,_0x44527d)=>{if(null==_0x44527d){const {id:_0x3731e4}=_0x548e4a(_0x1a4fce['name']),_0x282f5c=this['_suggestions']['get'](_0x3731e4);_0x282f5c&&_0x282f5c['addMarkerName'](_0x1a4fce['name']);}}),_0x173b06['model']['document']['on']('change:data',()=>{const _0x52b75c=Array['from'](_0x173b06['model']['document']['differ']['getChangedMarkers']())['filter'](_0x108ae7=>'suggestion'===_0x548e4a(_0x108ae7['name'])['group']);if(0x0===_0x52b75c['length'])return;_0x52b75c['sort']((_0x41e55a,_0x41696f)=>{const _0x6aac15=_0x41e55a['data']['oldRange'],_0x5e4d9c=_0x41696f['data']['oldRange'];return null===_0x6aac15&&null===_0x5e4d9c?0x0:null===_0x6aac15&&null!==_0x5e4d9c?-0x1:null!==_0x6aac15&&null===_0x5e4d9c?0x1:_0x6aac15['start']['isBefore'](_0x5e4d9c['start'])?-0x1:0x1;});const _0x3a494a=new Set(),_0x539b4d=new Set();for(const {name:_0x492ae7,data:_0x9ef037}of _0x52b75c){const {id:_0x3f2e70}=_0x548e4a(_0x492ae7);if(null===_0x9ef037['oldRange']){const _0x4070be=this['_handleNewSuggestionMarker'](_0x492ae7);_0x539b4d['add'](_0x4070be);}else{const _0x3938e8=this['_suggestions']['get'](_0x3f2e70);null!==_0x9ef037['newRange']||_0x3938e8['isInContent']?(_0x3a494a['add'](_0x3938e8['head']),_0x539b4d['add'](_0x3938e8)):this['_removeSuggestion'](_0x3938e8);}}_0x539b4d['size']>0x0&&this['_refreshSuggestionsChain'](_0x539b4d);for(const _0x25dcd8 of _0x3a494a)this['fire']('suggestionChanged',_0x25dcd8);}),_0x173b06['model']['on']('applyOperation',(_0x186942,_0x1e435c)=>{const _0x10b782=_0x1e435c[0x0];if(!this['_suggestions']['size'])return;if(!_0x10b782['isDocumentOperation'])return;if(_0x10b782['batch']['isUndo']||!_0x10b782['batch']['isLocal'])return;let _0x27d49e,_0x3d1f11;switch(_0x10b782['type']){case'insert':_0x27d49e=_0x173b06['model']['createPositionAt'](_0x10b782['position']),_0x3d1f11=_0x27d49e['getShiftedBy'](_0x10b782['howMany']);break;case'split':_0x27d49e=_0x173b06['model']['createPositionAt'](_0x10b782['splitPosition']),_0x3d1f11=_0x173b06['model']['createPositionAt'](_0x10b782['moveTargetPosition']);break;case'move':_0x27d49e=_0x173b06['model']['createPositionAt'](_0x10b782['targetPosition']),_0x3d1f11=_0x27d49e['getShiftedBy'](_0x10b782['howMany']);break;default:return;}const _0x45a1f2=_0x173b06['model']['createRange'](_0x27d49e,_0x3d1f11);_0x173b06['model']['change'](()=>{for(const {suggestion:_0x1f98e5,meta:_0x4e506e}of this['_findSuggestions'](_0x45a1f2)){if(_0x1f98e5['isMultiRange'])continue;if('formatInline'==_0x1f98e5['type'])continue;const _0x5ba53e=this['_getAttributeKey'](_0x1f98e5);if(_0x5ba53e&&this['_suggestionsConversion']['isBlockAttribute'](_0x5ba53e)&&'split'!=_0x10b782['type'])continue;const _0xa1d218=_0x1f98e5['data']&&_0x1f98e5['data']['multipleBlocks'];('formatBlock'!=_0x1f98e5['type']||'split'==_0x10b782['type']&&!_0xa1d218)&&(_0x4e506e['containsRangeInObject']||'insertion'==_0x1f98e5['type']&&_0x4e506e['isOwn']||_0x1f98e5['getFirstRange']()['containsRange'](_0x45a1f2)&&this['_breakSuggestionMarker'](_0x1f98e5,_0x27d49e,_0x3d1f11));}});},{'priority':'lowest'}),_0x173b06['model']['on']('deleteContent',(_0x38ccb8,_0x5d7c14)=>{const _0x3d30d2=_0x5d7c14[0x0],_0x1088f4=_0x5d7c14[0x1];if(_0x1088f4&&_0x1088f4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3d30d2['isCollapsed'])return;const _0x1a4b70=_0x173b06['model']['schema'],{start:_0x245caf,end:_0x4ac91b}=_0x3d30d2['getFirstRange'](),_0xbbc42=_0x245caf['nodeAfter']&&_0x1a4b70['isLimit'](_0x245caf['nodeAfter'])?null:_0x1a4b70['getNearestSelectionRange'](_0x245caf,'forward'),_0x98ed06=_0x4ac91b['nodeBefore']&&_0x1a4b70['isLimit'](_0x4ac91b['nodeBefore'])?null:_0x1a4b70['getNearestSelectionRange'](_0x4ac91b,'backward'),_0x39252c=_0x173b06['model']['createRange'](_0xbbc42?_0xbbc42['start']:_0x245caf,_0x98ed06?_0x98ed06['end']:_0x4ac91b);_0x173b06['model']['change'](_0x240830=>{this['markDeletion'](_0x39252c);const _0x4f77fd=_0x173b06['model']['schema']['getNearestSelectionRange'](_0x39252c['start']);_0x3d30d2['is']('documentSelection')?_0x240830['setSelection'](_0x4f77fd):_0x3d30d2['setTo'](_0x4f77fd);}),_0x38ccb8['stop']();},{'priority':_0x308b2d['normal']+0xa}),_0x173b06['model']['on']('insertContent',(_0x34b9f9,_0xb962b6)=>{const _0xbd1de2=_0xb962b6[_0xb962b6['length']-0x1];_0xbd1de2&&_0xbd1de2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x173b06['model']['change'](()=>{let _0x36a8f2=_0x173b06['model']['insertContent'](_0xb962b6[0x0],_0xb962b6[0x1],_0xb962b6[0x2],{'forceDefaultExecution':!0x0});if(!_0x36a8f2)return;_0x34b9f9['return']=_0x36a8f2['clone']();const _0x284a43=_0x36a8f2['end']['nodeBefore'],_0x2a4a93=_0x173b06['model']['schema'];_0x284a43&&_0x2a4a93['isBlock'](_0x284a43)&&!_0x2a4a93['isObject'](_0x284a43)&&(_0x36a8f2=_0x173b06['model']['createRange'](_0x36a8f2['start'],_0x173b06['model']['createPositionAt'](_0x284a43,'end'))),this['markInsertion'](_0x36a8f2);}),_0x34b9f9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1e0b96=new dt(_0x173b06,this['_suggestions']);_0x173b06['commands']['add']('acceptSuggestion',_0x1e0b96),this['enableCommand']('acceptSuggestion');const _0x96ba51=new ft(_0x173b06,this['_suggestions']);_0x173b06['commands']['add']('discardSuggestion',_0x96ba51),this['enableCommand']('discardSuggestion'),_0x173b06['commands']['add']('acceptAllSuggestions',new Lt(_0x173b06,_0x1e0b96,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x173b06['commands']['add']('discardAllSuggestions',new Lt(_0x173b06,_0x96ba51,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x173b06['commands']['add']('acceptSelectedSuggestions',new It(_0x173b06,_0x1e0b96,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x173b06['commands']['add']('discardSelectedSuggestions',new It(_0x173b06,_0x96ba51,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x57fa64=_0x173b06['plugins']['get'](_0x2b8fb6);this['listenTo'](_0x57fa64,'addComment',(_0x3b8adf,{threadId:_0x595f84})=>{const _0x4ec4e7=this['_suggestions']['get'](_0x595f84);_0x4ec4e7&&_0x4ec4e7['commentThread']&&0x1===_0x4ec4e7['commentThread']['length']&&this['_updateSuggestionData'](_0x595f84,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x57fa64,'removeComment',(_0x2ddd24,{threadId:_0x3de14a})=>{const _0x31d677=this['_suggestions']['get'](_0x3de14a);_0x31d677&&_0x31d677['commentThread']&&!_0x31d677['commentThread']['length']&&this['_updateSuggestionData'](_0x3de14a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x358a5e){const _0x2867d0=_0x371d46([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4df7ea=0x3d8d0df,_0x4f63de=0x3df5727^_0x4df7ea,_0x50bfc3=window[_0x371d46([0x44,0x61,0x74,0x65])][_0x371d46([0x6e,0x6f,0x77])](),_0x53b04c=_0x358a5e[_0x371d46([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2976b4=new window[(_0x371d46([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ab7e7=>{_0x53b04c[_0x371d46([0x6f,0x6e,0x63,0x65])](_0x371d46([0x72,0x65,0x61,0x64,0x79]),_0x2ab7e7);}),_0x3239d6={[_0x371d46([0x6b,0x74,0x79])]:_0x371d46([0x45,0x43]),[_0x371d46([0x75,0x73,0x65])]:_0x371d46([0x73,0x69,0x67]),[_0x371d46([0x63,0x72,0x76])]:_0x371d46([0x50,0x2d,0x32,0x35,0x36]),[_0x371d46([0x78])]:_0x371d46([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]),[_0x371d46([0x79])]:_0x371d46([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]),[_0x371d46([0x61,0x6c,0x67])]:_0x371d46([0x45,0x53,0x32,0x35,0x36])},_0x2e428f=_0x53b04c[_0x371d46([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x371d46([0x67,0x65,0x74])](_0x371d46([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c6841(){let _0x36ef07,_0x21d46e=null,_0x15a489=null;try{if(_0x2e428f==_0x371d46([0x47,0x50,0x4c]))return _0x371d46([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36ef07=_0x580066(),!_0x36ef07)return _0x371d46([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36ef07[_0x371d46([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x15a489=_0x1a7c61(_0x36ef07[_0x371d46([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36ef07[_0x371d46([0x6a,0x74,0x69])])),await _0xe21ecd()?_0x35238e()?_0x110915()?_0x371d46([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x106966()?(_0x36ef07[_0x371d46([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x371d46([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21d46e=_0x2f6575(_0x371d46([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8a0911()):_0x371d46([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x371d46([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x371d46([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x371d46([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x110915(){const _0x44e25d=[_0x371d46([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x371d46([0x74,0x72,0x69,0x61,0x6c])][_0x371d46([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36ef07[_0x371d46([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50bfc3/0x3e8:0xe10*_0x4f63de;return _0x36ef07[_0x371d46([0x65,0x78,0x70])]<_0x44e25d;}function _0x35238e(){const _0x23c322=_0x36ef07[_0x371d46([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x23c322)return!0x1;if(_0x23c322[_0x371d46([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371d46([0x2a])))return!0x0;if(_0x23c322[_0x371d46([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371d46([0x54,0x43])))return!0x0;if(_0x23c322[_0x371d46([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371d46([0x52,0x54,0x43]))){if(_0x3fb6f5())return!0x0;if(_0x2be1d9()||_0xca823a())return!0x0;}return!0x1;}function _0x106966(){const _0x27aa28=_0x36ef07[_0x371d46([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27aa28||0x0==_0x27aa28[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc81d16}=new URL(window[_0x371d46([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x27aa28[_0x371d46([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc81d16))return!0x0;const _0x2c09bb=_0xc81d16[_0x371d46([0x73,0x70,0x6c,0x69,0x74])](_0x371d46([0x2e]));return _0x27aa28[_0x371d46([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3286d0=>_0x3286d0[_0x371d46([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371d46([0x2a])))[_0x371d46([0x6d,0x61,0x70])](_0xe88a3f=>_0xe88a3f[_0x371d46([0x73,0x70,0x6c,0x69,0x74])](_0x371d46([0x2e])))[_0x371d46([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43174c=>_0x43174c[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c09bb[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x371d46([0x6d,0x61,0x70])](_0x14e8ab=>Array(_0x2c09bb[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14e8ab[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x371d46([0x66,0x69,0x6c,0x6c])](_0x14e8ab[0x0]===_0x371d46([0x2a])?_0x371d46([0x2a]):'')[_0x371d46([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14e8ab))[_0x371d46([0x73,0x6f,0x6d,0x65])](_0x5875d3=>_0x2c09bb[_0x371d46([0x65,0x76,0x65,0x72,0x79])]((_0x560d74,_0x3bee3f)=>_0x5875d3[_0x3bee3f]===_0x560d74||_0x5875d3[_0x3bee3f]===_0x371d46([0x2a])));}function _0x8a0911(){return _0x21d46e&&_0x15a489?new window[(_0x371d46([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x199e13,_0x1be1fa)=>{_0x21d46e[_0x371d46([0x74,0x68,0x65,0x6e])](_0x199e13,_0x1be1fa),_0x15a489[_0x371d46([0x74,0x68,0x65,0x6e])](_0x176c23=>{_0x176c23!=_0x371d46([0x56,0x61,0x6c,0x69,0x64])&&_0x199e13(_0x176c23);},_0x1be1fa);}):_0x21d46e||_0x15a489||_0x371d46([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a7c61(_0x505ee5,_0x768358){return new window[(_0x371d46([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x572ab6=>{if(_0x852050())return _0x572ab6(_0x371d46([0x56,0x61,0x6c,0x69,0x64]));_0x42b545(),_0x53b04c[_0x371d46([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x371d46([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x41aa5b=!0x1;const _0x41c134=_0x932f3b();function _0x5b752a(_0x309c58){return!!_0x309c58&&(typeof _0x309c58===_0x371d46([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x309c58===_0x371d46([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x309c58[_0x371d46([0x74,0x68,0x65,0x6e])]===_0x371d46([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x309c58[_0x371d46([0x63,0x61,0x74,0x63,0x68])]===_0x371d46([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f54b5(_0x31f224){_0x2f7bfa(_0x31f224)[_0x371d46([0x74,0x68,0x65,0x6e])](_0x5b45dd=>{if(!_0x5b45dd||_0x5b45dd[_0x371d46([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x371d46([0x6f,0x6b]))return _0x371d46([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d795f(_0x4c6663(_0x41c134+_0x768358))!=_0x5b45dd[_0x371d46([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x371d46([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x371d46([0x56,0x61,0x6c,0x69,0x64]);})[_0x371d46([0x74,0x68,0x65,0x6e])](_0x449063=>(_0x36ae8c(),_0x449063),()=>{const _0xcf7359=_0x1a6f16();return null==_0xcf7359?(_0x36ae8c(),_0x371d46([0x56,0x61,0x6c,0x69,0x64])):_0x371d46(_0x50bfc3-_0xcf7359>(0x27d454df^_0x4df7ea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x371d46([0x74,0x68,0x65,0x6e])](_0x572ab6)[_0x371d46([0x63,0x61,0x74,0x63,0x68])](()=>{_0x572ab6(_0x371d46([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1be5d5=0x3ee3e5f^_0x4df7ea;function _0x36ae8c(){const _0xd32c45=_0x371d46([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d795f(_0x4c6663(_0x505ee5)),_0x2f8949=_0x4d505e(_0x4d795f(window[_0x371d46([0x4d,0x61,0x74,0x68])][_0x371d46([0x63,0x65,0x69,0x6c])](_0x50bfc3/_0x1be5d5)));window[_0x371d46([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x371d46([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd32c45,_0x2f8949);}function _0x1a6f16(){const _0x20a498=_0x371d46([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d795f(_0x4c6663(_0x505ee5)),_0x514413=window[_0x371d46([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x371d46([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20a498);return _0x514413?window[_0x371d46([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d505e(_0x514413),0x10)*_0x1be5d5:null;}function _0x2f7bfa(_0xd1fb44){return new window[(_0x371d46([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d2e73,_0xb4f68c)=>{_0xd1fb44[_0x371d46([0x74,0x68,0x65,0x6e])](_0x5d2e73,_0xb4f68c),window[_0x371d46([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb4f68c,0x3d9041f^_0x4df7ea);});}}_0x53b04c[_0x371d46([0x6f,0x6e])](_0x371d46([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x421db1,_0x3a685b)=>{if(_0x3a685b[0x0]!=_0x505ee5)return _0x572ab6(_0x371d46([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a685b[0x1]={..._0x3a685b[0x1],[_0x371d46([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41c134};},{[_0x371d46([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x371d46([0x68,0x69,0x67,0x68])}),_0x53b04c[_0x371d46([0x6f,0x6e])](_0x371d46([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56a3db=>{_0x5b752a(_0x56a3db[_0x371d46([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x41aa5b=!0x0,_0x2f54b5(_0x56a3db[_0x371d46([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x371d46([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x371d46([0x6c,0x6f,0x77])}),_0x2976b4[_0x371d46([0x74,0x68,0x65,0x6e])](()=>{_0x41aa5b||_0x572ab6(_0x371d46([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x852050(){return _0x53b04c[_0x371d46([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x371d46([0x76,0x69,0x65,0x77])][_0x371d46([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x371d46([0x61,0x75,0x74,0x6f]);}function _0x42b545(){_0x53b04c[_0x371d46([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x371d46([0x76,0x69,0x65,0x77])][_0x371d46([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x371d46([0x61,0x75,0x74,0x6f]);}}function _0x2f6575(_0x3ba0ef){const _0x5ed726=[new window[(_0x371d46([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32a743=>setTimeout(_0x32a743,0x3d1ee13^_0x4df7ea)),_0x2976b4[_0x371d46([0x74,0x68,0x65,0x6e])](()=>new window[(_0x371d46([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5aa81f=>{let _0x52341d=0x0;_0x53b04c[_0x371d46([0x6d,0x6f,0x64,0x65,0x6c])][_0x371d46([0x6f,0x6e])](_0x371d46([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c21d4,_0x55e874)=>{_0x55e874[0x0][_0x371d46([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52341d++,_0x52341d==(0x3d8d537^_0x4df7ea)&&(_0x5aa81f(),_0x2c21d4[_0x371d46([0x6f,0x66,0x66])]());});}))];return window[_0x371d46([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x371d46([0x72,0x61,0x63,0x65])](_0x5ed726)[_0x371d46([0x74,0x68,0x65,0x6e])](()=>_0x3ba0ef);}async function _0xdb8a12(){await _0x2976b4,_0x53b04c[_0x371d46([0x6d,0x6f,0x64,0x65,0x6c])][_0x371d46([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe64827,_0x53b04c[_0x371d46([0x6d,0x6f,0x64,0x65,0x6c])][_0x371d46([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe64827,_0x53b04c[_0x371d46([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x371d46([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3fb6f5(){return _0x3e3c18(_0x371d46([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x40d06b(_0x371d46([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x371d46([0x73,0x74,0x61,0x74,0x65])]==_0x371d46([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2be1d9(){return _0x3e3c18(_0x371d46([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 _0xca823a(){return _0x3e3c18(_0x371d46([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x415414(_0x537018){const _0x49c8e9=_0x3ec596();_0x53b04c[_0x49c8e9]=_0x371d46([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x537018,_0x537018!=_0x371d46([0x56,0x61,0x6c,0x69,0x64])&&_0xdb8a12();}function _0x3ec596(){const _0x1226c8=window[_0x371d46([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x371d46([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x371d46([0x6e,0x6f,0x77])]())[_0x371d46([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x371d46([0x2e]),'');let _0x4e94ab=_0x371d46([0x52]);for(let _0x278899=0x0;_0x278899<_0x1226c8[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x278899+=0x2){let _0x154ab5=window[_0x371d46([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1226c8[_0x371d46([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x278899,_0x278899+0x2));_0x154ab5>=_0x2867d0[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x154ab5-=_0x2867d0[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e94ab+=_0x2867d0[_0x154ab5];}return _0x4e94ab;}function _0x580066(){const _0x48d9e9=_0x2e428f[_0x371d46([0x73,0x70,0x6c,0x69,0x74])](_0x371d46([0x2e]));if(0x3!=_0x48d9e9[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f533c(_0x48d9e9[0x1]);function _0x2f533c(_0x5a1733){const _0x2c466b=_0x1cd7ca(_0x5a1733);return _0x2c466b&&_0xf333e()?_0x2c466b:null;function _0xf333e(){const _0x116e7d=_0x2c466b[_0x371d46([0x6a,0x74,0x69])],_0x3a77a1=window[_0x371d46([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x116e7d[_0x371d46([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x116e7d[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x218af5={..._0x2c466b,[_0x371d46([0x6a,0x74,0x69])]:_0x116e7d[_0x371d46([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x116e7d[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x218af5[_0x371d46([0x76,0x63])],_0x4c6663(_0x218af5)==_0x3a77a1;}}}async function _0xe21ecd(){let _0x4b8558=!0x0;try{const _0x3542a3=_0x2e428f[_0x371d46([0x73,0x70,0x6c,0x69,0x74])](_0x371d46([0x2e])),[_0x3ae8f7,_0x4f5ce4,_0x15ae6d]=_0x3542a3;return _0x53dfbd(_0x3ae8f7),await _0x4e65f2(_0x3ae8f7,_0x4f5ce4,_0x15ae6d),_0x4b8558;}catch{return!0x1;}function _0x53dfbd(_0x1d101d){const _0x320db0=_0x1cd7ca(_0x1d101d);_0x320db0&&_0x320db0[_0x371d46([0x61,0x6c,0x67])]==_0x371d46([0x45,0x53,0x32,0x35,0x36])||(_0x4b8558=!0x1);}async function _0x4e65f2(_0x1c2255,_0x1f9060,_0x152bbf){const _0x3b2ff9=window[_0x371d46([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x371d46([0x66,0x72,0x6f,0x6d])](_0x3fe752(_0x152bbf),_0x5c384c=>_0x5c384c[_0x371d46([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f3f5=new window[(_0x371d46([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x371d46([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c2255+_0x371d46([0x2e])+_0x1f9060),_0x771b34=window[_0x371d46([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x371d46([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x771b34)return;const _0x2b390f=await _0x771b34[_0x371d46([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x371d46([0x6a,0x77,0x6b]),_0x3239d6,{[_0x371d46([0x6e,0x61,0x6d,0x65])]:_0x371d46([0x45,0x43,0x44,0x53,0x41]),[_0x371d46([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x371d46([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x371d46([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x771b34[_0x371d46([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x371d46([0x6e,0x61,0x6d,0x65])]:_0x371d46([0x45,0x43,0x44,0x53,0x41]),[_0x371d46([0x68,0x61,0x73,0x68])]:{[_0x371d46([0x6e,0x61,0x6d,0x65])]:_0x371d46([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b390f,_0x3b2ff9,_0x4f3f5)||(_0x4b8558=!0x1);}}function _0x1cd7ca(_0x3e9d52){return _0x3e9d52[_0x371d46([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x371d46([0x65,0x79]))?JSON[_0x371d46([0x70,0x61,0x72,0x73,0x65])](_0x3fe752(_0x3e9d52)):null;}function _0x3fe752(_0x5df1d8){return window[_0x371d46([0x61,0x74,0x6f,0x62])](_0x5df1d8[_0x371d46([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x371d46([0x2b]))[_0x371d46([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x371d46([0x2f])));}function _0x4c6663(_0xc4ea6c){let _0x29fbb6=0x1505;function _0x3517b2(_0x5c8d9c){for(let _0x3ec8b0=0x0;_0x3ec8b0<_0x5c8d9c[_0x371d46([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ec8b0++){const _0x4131d7=_0x5c8d9c[_0x371d46([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ec8b0);_0x29fbb6=(_0x29fbb6<<0x5)+_0x29fbb6+_0x4131d7,_0x29fbb6&=_0x29fbb6;}}function _0x4d43a9(_0x1ec1e1){Array[_0x371d46([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ec1e1)?_0x1ec1e1[_0x371d46([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4d43a9):_0x1ec1e1&&typeof _0x1ec1e1==_0x371d46([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x371d46([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ec1e1)[_0x371d46([0x73,0x6f,0x72,0x74])]()[_0x371d46([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5350a8,_0x5cb1e8])=>{_0x3517b2(_0x5350a8),_0x4d43a9(_0x5cb1e8);}):_0x3517b2(window[_0x371d46([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ec1e1));}return _0x4d43a9(_0xc4ea6c),_0x29fbb6>>>0x0;}function _0x4d795f(_0x1cee77){return _0x1cee77[_0x371d46([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x371d46([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x371d46([0x30]));}function _0x4d505e(_0x4166d9){return _0x4166d9[_0x371d46([0x73,0x70,0x6c,0x69,0x74])]('')[_0x371d46([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x371d46([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e3c18(_0x262b8b){return _0x53b04c[_0x371d46([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x371d46([0x68,0x61,0x73])](_0x262b8b);}function _0x40d06b(_0x2e87ad){return _0x53b04c[_0x371d46([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x371d46([0x67,0x65,0x74])](_0x2e87ad);}function _0xe64827(){}function _0x371d46(_0x3b1c92){return _0x3b1c92['map'](_0x5a0fd5=>String['fromCharCode'](_0x5a0fd5))['join']('');}_0x415414(await _0x5c6841());}(this);}set['adapter'](_0x58add6){if(this['_adapter'])throw new _0x43ada4('track-changes-adapter-already-set',this);this['_adapter']=_0x58add6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x55be8a=!0x1,toJSON:_0x3ab2c9=!0x1}={}){const _0x418d83=[];for(const _0x59da5c of this['_suggestions']['values']())_0x55be8a&&!_0x59da5c['isInContent']||_0x418d83['push'](_0x59da5c);return _0x3ab2c9?_0x418d83['map'](_0x5f01a2=>_0x5f01a2['toJSON']()):_0x418d83;}['getSuggestion'](_0x523ee8){const _0xa00135=this['_suggestions']['get'](_0x523ee8);if(!_0xa00135)throw new _0x43ada4('track-changes-suggestion-not-found',this);return _0xa00135;}['hasSuggestion'](_0x444522){return this['_suggestions']['has'](_0x444522);}['addSuggestionData'](_0x1e2ff0){const {authorId:_0x46493f,id:_0x35d2fe,originalSuggestionId:_0x1346e0,attributes:_0x180000}=_0x1e2ff0,[_0x4d4626,_0x326666]=_0x1e2ff0['type']['split'](':'),_0x13f125=this['_suggestions']['get'](_0x35d2fe)||this['_createSuggestion'](_0x4d4626,_0x326666,_0x35d2fe,_0x46493f,_0x180000,_0x1346e0);if(this['_addThreadToSuggestion'](_0x13f125),this['_checkSuggestionCorrectness'](_0x13f125,_0x4d4626,_0x326666||null,_0x46493f),_0x13f125['createdAt']=_0x1e2ff0['createdAt'],_0x13f125['_isDataLoaded']=!0x0,_0x180000&&_0x180000['@external']){const _0x10a9a8=_0x180000['@external'],_0x493ba6=this['_getExternalAuthor'](_0x10a9a8['authorName']);_0x13f125['authoredAt']=_0x10a9a8['createdAt'],_0x13f125['author']=_0x493ba6,_0x13f125['isExternal']=!0x0;}else _0x13f125['authoredAt']=_0x1e2ff0['createdAt'];switch(_0x1e2ff0['data']&&(_0x13f125['data']=_0x1e2ff0['data']),_0x1e2ff0['attributes']&&(_0x13f125['attributes']=_0x1e2ff0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x13f125['_saved']=!0x0),this['_suggestionState']['get'](_0x13f125)){case'notReady':this['_suggestionState']['set'](_0x13f125,'dataReady');break;case'markerReady':_0x13f125['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x13f125])),this['_refreshSuggestionsChain'](new Set([_0x13f125])),this['_suggestionState']['set'](_0x13f125,'ready'),this['fire']('suggestionLoaded',_0x13f125)):this['_suggestionState']['set'](_0x13f125,'removed');}return _0x13f125;}['acceptSuggestion'](_0x16120e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x47ba78 of _0x16120e['getAllAdjacentSuggestions']())_0x47ba78['accept']();});});}['discardSuggestion'](_0x3f5530){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xcef89b of _0x3f5530['getAllAdjacentSuggestions']())_0xcef89b['discard']();});});}['enableCommand'](_0x1f37c6,_0x20987){const _0x53833d=this['editor']['commands']['get'](_0x1f37c6);if(!_0x53833d)throw new _0x43ada4('track-changes-command-not-found',this,{'commandName':_0x1f37c6});if(this['_enabledCommands']['has'](_0x53833d))throw new _0x43ada4('track-changes-enable-command-twice',this,{'commandName':_0x1f37c6});this['_enabledCommands']['add'](_0x53833d),_0x20987&&_0x53833d['on']('execute',(_0x588243,_0x4b1a18)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4b1a18['length']>0x0&&_0x4b1a18[_0x4b1a18['length']-0x1]&&_0x4b1a18[_0x4b1a18['length']-0x1]['forceDefaultExecution']?_0x4b1a18['pop']():(_0x588243['return']=_0x20987((..._0x38b5cc)=>_0x53833d['execute'](..._0x38b5cc,{'forceDefaultExecution':!0x0}),..._0x4b1a18),_0x588243['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2cdfc5){let _0x424cb0,_0x56f120;const _0x64d2e0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x424cb0=_0x2cdfc5();}catch(_0x50795d){_0x56f120=_0x50795d;}return _0x64d2e0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x56f120&&_0x43ada4['rethrowUnexpectedError'](_0x56f120,this),_0x424cb0;}['markInsertion'](_0x49d4a9,_0x355710=null,_0x108ef9={}){if(_0x49d4a9['isCollapsed'])return null;const _0x30ddd0=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x108ef9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3f4195,meta:_0x153f9c}of this['_findSuggestions'](_0x49d4a9,'insertion'))if(_0x153f9c['isOwn']){if(!_0x153f9c['isNextTo']){if(_0x153f9c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x3f4195,_0x108ef9))continue;return _0x3f4195;}if(cn(_0x3f4195,_0x108ef9))return _0x3f4195;this['_breakSuggestionMarker'](_0x3f4195,_0x49d4a9['start'],_0x49d4a9['end']);break;}if(_0x355710==_0x3f4195['subType']&&cn(_0x3f4195,_0x108ef9)){const _0x42d3a8=_0x3f4195['getFirstRange']();return _0x42d3a8['start']['isEqual'](_0x49d4a9['end'])?this['_setSuggestionRange'](_0x3f4195,this['_model']['createRange'](_0x49d4a9['start'],_0x42d3a8['end'])):this['_setSuggestionRange'](_0x3f4195,this['_model']['createRange'](_0x42d3a8['start'],_0x49d4a9['end'])),_0x3f4195;}}const _0x148dad=_0x932f3b(),_0x2f6780=_0x30ddd0['id'],_0x4d0c39=_0x355710?'insertion:'+_0x355710:'insertion',_0x40f058=this['_setSuggestionData']({'id':_0x148dad,'type':_0x4d0c39,'createdAt':new Date(),'authorId':_0x2f6780,'attributes':_0x108ef9});return this['_addSuggestionMarker'](_0x4d0c39,_0x148dad,_0x2f6780,_0x49d4a9),_0x40f058;}['markMultiRangeInsertion'](_0x20503b,_0x19398e='multi',_0x38cc25={}){const _0x375e45=this['editor']['plugins']['get']('Users')['me'],_0x24e7e7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x19398e,'join');this['_trackingSessionId']&&(_0x38cc25['trackingSessionId']=this['_trackingSessionId']);for(const _0x2db4e0 of this['getSuggestions']())if(_0x2db4e0['author']['id']==_0x375e45['id']&&'insertion'==_0x2db4e0['type']&&_0x2db4e0['subType']==_0x19398e&&cn(_0x2db4e0,_0x38cc25)&&(_0x24e7e7(_0x2db4e0['getRanges'](),_0x20503b)||_0x24e7e7(_0x20503b,_0x2db4e0['getRanges']()))){for(const _0x29272a of _0x20503b)_0x2db4e0['addRange'](_0x29272a);return _0x2db4e0;}for(const {suggestion:_0x426eb8,meta:_0x4dd13b}of this['_findSuggestions'](_0x20503b,'insertion')){if(!_0x4dd13b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4dd13b['containsRangeInObject'])continue;if(!cn(_0x426eb8,_0x38cc25))continue;let _0x1afacf=!0x0;for(const _0x34913f of _0x426eb8['getRanges']())for(const _0x7e9fc5 of _0x20503b)if(!_0x34913f['containsRange'](_0x7e9fc5)){_0x1afacf=!0x1;break;}if(_0x1afacf)return _0x426eb8;}const _0x39c16e=_0x932f3b(),_0x401bab=_0x375e45['id'],_0x4149b6='insertion:'+_0x19398e,_0xe5f55=this['_setSuggestionData']({'id':_0x39c16e,'type':_0x4149b6,'createdAt':new Date(),'authorId':_0x401bab,'attributes':_0x38cc25});for(const _0x3e0565 of _0x20503b)this['_addSuggestionMarker'](_0x4149b6,_0x39c16e,_0x401bab,_0x3e0565,bt['getMultiRangeId']());return _0xe5f55;}['markInlineFormat'](_0x4510c2,_0x4258cc,_0xcc270a=null,_0x32be39={}){if(_0xcc270a=_0xcc270a||Je(_0x4258cc),_0x4510c2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x32be39['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x160658=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xcc270a,'accept');return this['forceDefaultExecution'](()=>_0x160658([_0x4510c2],_0x4258cc,_0x32be39)),null;}const _0x9a08d3=this['editor']['plugins']['get']('Users')['me'],_0x35713e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e04d8,meta:_0x4f98e9}of this['_findSuggestions'](_0x4510c2,'insertion'))_0x4f98e9['isOwn']&&!_0x4f98e9['isInsideObject']&&_0x35713e['push'](..._0x1e04d8['getRanges']());}const _0x45385f=function(_0x9cbfe0,_0x1a877a){const _0x34f618=[];for(const _0x302a29 of _0x1a877a){const _0x59940b=_0x9cbfe0['getIntersection'](_0x302a29);_0x59940b&&_0x34f618['push'](_0x59940b);}return _0x34f618;}(_0x4510c2,_0x35713e),_0x19ee9d=function(_0x1856a4,_0x177f28){const _0x1bef6e=[_0x1856a4];for(const _0x4a6298 of _0x177f28){let _0x23e724=0x0;for(;_0x23e724<_0x1bef6e['length'];){const _0x3127b5=_0x1bef6e[_0x23e724]['getDifference'](_0x4a6298);_0x1bef6e['splice'](_0x23e724,0x1,..._0x3127b5),_0x23e724+=_0x3127b5['length'];}}return _0x1bef6e;}(_0x4510c2,_0x35713e);_0x45385f['length']&&this['_model']['change'](()=>{for(const _0x49f03b of _0x45385f){const _0xf5a70e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xcc270a,'accept');this['forceDefaultExecution'](()=>_0xf5a70e([_0x49f03b],_0x4258cc,_0x32be39));}});for(const _0x2b642b of _0x19ee9d){let _0x113894=null,_0x3e2f14=_0x2b642b['start'],_0x5a7920=_0x2b642b['end'];for(const {suggestion:_0x451f26,meta:_0x39fbff}of this['_findSuggestions'](_0x2b642b,'formatInline')){if(!_0x39fbff['isOwn'])continue;if(_0x451f26['subType']!=_0xcc270a)continue;if(!cn(_0x451f26,_0x32be39))continue;const _0x23311b=_0x451f26['getFirstRange']();if(_0x23311b['containsRange'](_0x2b642b,!0x0))return null;_0x3e2f14=_0x3e2f14['isBefore'](_0x23311b['start'])?_0x3e2f14:_0x23311b['start'],_0x5a7920=_0x5a7920['isAfter'](_0x23311b['end'])?_0x5a7920:_0x23311b['end'],_0x113894?_0x23311b['start']['isBefore'](_0x113894['getFirstRange']()['start'])?(_0x113894['removeMarkers'](),_0x113894=_0x451f26):_0x451f26['removeMarkers']():_0x113894=_0x451f26;}const _0x3d416f=this['_model']['createRange'](_0x3e2f14,_0x5a7920);if(_0x113894)this['_setSuggestionRange'](_0x113894,_0x3d416f);else{const _0x123d1a=_0x932f3b(),_0x1eedbe=_0x9a08d3['id'];this['_setSuggestionData']({'id':_0x123d1a,'type':'formatInline:'+_0xcc270a,'data':_0x4258cc,'createdAt':new Date(),'authorId':_0x1eedbe,'attributes':_0x32be39}),this['_addSuggestionMarker']('formatInline:'+_0xcc270a,_0x123d1a,_0x1eedbe,_0x3d416f);}}return null;}['markBlockFormat'](_0x4d3c33,_0x341dd6,_0x3cf357=[],_0x4af946=null,_0x2dd09c={}){_0x341dd6['formatGroupId']||(_0x341dd6['formatGroupId']=_0x341dd6['commandName']),_0x341dd6['multipleBlocks']=_0x4d3c33['is']('range'),_0x4af946=_0x4af946||Je(_0x341dd6);const _0x4a0eeb=_0x3cf357['map'](_0x4416df=>rn(_0x4416df,this['_model'])),_0x4e9d0c=_0x4d3c33['is']('range')?_0x4d3c33:rn(_0x4d3c33,this['_model']);if(this['_trackingSessionId']&&(_0x2dd09c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x458fc1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4af946,'accept');return this['forceDefaultExecution'](()=>_0x458fc1([_0x4e9d0c],_0x341dd6,_0x2dd09c)),null;}_0x4a0eeb['push'](_0x4e9d0c);let _0x6ac912=!0x0;for(const _0x33e03f of _0x4a0eeb)if(!this['_rangeIsInLocalUserInsertion'](_0x33e03f)){_0x6ac912=!0x1;break;}if(_0x6ac912&&'always'!==this['_trackFormatChanges']){const _0x3cb4cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4af946,'accept');return this['forceDefaultExecution'](()=>_0x3cb4cd([_0x4e9d0c],_0x341dd6,_0x2dd09c)),null;}let _0x36bd79=null,_0x275792=_0x4e9d0c['start'],_0x21066e=_0x4e9d0c['end'];for(const {suggestion:_0x3fbbaf,meta:_0x408a4f}of this['_findSuggestions'](_0x4e9d0c,'formatBlock')){if(!_0x408a4f['isOwn'])continue;if(_0x408a4f['isNextTo']||_0x408a4f['containsRangeInObject']||_0x408a4f['isInsideObject'])continue;if(_0x3fbbaf['data']['formatGroupId']!=_0x341dd6['formatGroupId'])continue;if(!cn(_0x3fbbaf,_0x2dd09c))continue;const _0x81eb1f=_0x3fbbaf['getFirstRange']();if(_0x3fbbaf['subType']==_0x4af946){if(_0x81eb1f['containsRange'](_0x4e9d0c,!0x0))return null;_0x275792=_0x275792['isBefore'](_0x81eb1f['start'])?_0x275792:_0x81eb1f['start'],_0x21066e=_0x21066e['isAfter'](_0x81eb1f['end'])?_0x21066e:_0x81eb1f['end'],_0x36bd79?_0x81eb1f['start']['isBefore'](_0x36bd79['getFirstRange']()['start'])?(_0x36bd79['removeMarkers'](),_0x36bd79=_0x3fbbaf):_0x3fbbaf['removeMarkers']():_0x36bd79=_0x3fbbaf;}else{const _0x9d2a81=_0x4e9d0c['getIntersection'](_0x81eb1f);this['_cutOutSuggestionMarker'](_0x3fbbaf,_0x9d2a81);}}const _0x441d33=this['editor']['plugins']['get']('Users')['me'],_0x4196ed=_0x932f3b(),_0x41aa7d=_0x441d33['id'];if(_0x36bd79)return this['_setSuggestionRange'](_0x36bd79,this['_model']['createRange'](_0x275792,_0x21066e)),_0x36bd79;{const _0x5ac36f=this['_setSuggestionData']({'id':_0x4196ed,'type':'formatBlock:'+_0x4af946,'data':_0x341dd6,'createdAt':new Date(),'authorId':_0x41aa7d,'attributes':_0x2dd09c});return this['_addSuggestionMarker']('formatBlock:'+_0x4af946,_0x4196ed,_0x41aa7d,this['_model']['createRange'](_0x275792,_0x21066e)),_0x5ac36f;}}['markMultiRangeBlockFormat'](_0x264276,_0x22d034,_0x5387f1=[],_0x296b57=null,_0xd3a168={}){_0x22d034['formatGroupId']||(_0x22d034['formatGroupId']=_0x22d034['commandName']);const _0xac2f00=_0x264276[0x0];_0x22d034['multipleBlocks']=_0xac2f00['is']('range'),_0x296b57=_0x296b57||Je(_0x22d034);const _0x9239d7=_0x5387f1['map'](_0x4e1a57=>rn(_0x4e1a57,this['_model'])),_0x28f834=_0xac2f00['is']('range')?_0x264276:_0x264276['map'](_0x360486=>rn(_0x360486,this['_model']));if(this['_trackingSessionId']&&(_0xd3a168['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1bd639=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x296b57,'accept');return this['forceDefaultExecution'](()=>_0x1bd639(_0x28f834,_0x22d034,_0xd3a168)),null;}_0x9239d7['push'](..._0x28f834);let _0x1532be=!0x0;for(const _0x124bdb of _0x9239d7)if(!this['_rangeIsInLocalUserInsertion'](_0x124bdb)){_0x1532be=!0x1;break;}if(_0x1532be&&'always'!==this['_trackFormatChanges']){const _0x38d3bc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x296b57,'accept');return this['forceDefaultExecution'](()=>_0x38d3bc(_0x28f834,_0x22d034,_0xd3a168)),null;}const _0x3a2483=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d5860 of this['getSuggestions']()){const _0x2c2aa8=_0x1d5860['data'];if(_0x1d5860['author']['id']!=_0x3a2483['id'])continue;if('formatBlock'!=_0x1d5860['type']||_0x2c2aa8['formatGroupId']!=_0x22d034['formatGroupId'])continue;if(!cn(_0x1d5860,_0xd3a168))continue;const _0x37d4bb=_0x1d5860['subType']==_0x296b57;for(let _0x2bca50=0x0;_0x2bca50<_0x28f834['length'];_0x2bca50++){const _0x24a748=_0x28f834[_0x2bca50];for(const _0x2553e3 of _0x1d5860['getMarkers']()){const _0x1646e6=_0x2553e3['getRange']();if(_0x24a748['isEqual'](_0x1646e6)){_0x37d4bb?(_0x28f834['splice'](_0x2bca50,0x1),_0x2bca50--):_0x1d5860['removeMarker'](_0x2553e3['name']);break;}}}}if(0x0==_0x28f834['length'])return null;const _0x456726=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x296b57,'join');for(const _0x454964 of this['getSuggestions']()){const _0x1e13f1=_0x454964['data'];if(_0x454964['author']['id']==_0x3a2483['id']&&('formatBlock'==_0x454964['type']&&_0x1e13f1['formatGroupId']==_0x22d034['formatGroupId']&&_0x454964['subType']==_0x296b57&&cn(_0x454964,_0xd3a168)&&(_0x456726(_0x454964['getRanges'](),_0x28f834)||_0x456726(_0x28f834,_0x454964['getRanges']())))){for(const _0x1621e9 of _0x28f834)_0x454964['addRange'](_0x1621e9);return _0x454964;}}const _0x284da0=_0x932f3b(),_0x262d4d=_0x3a2483['id'],_0x25f536='formatBlock:'+_0x296b57,_0x33fb8a=this['_setSuggestionData']({'id':_0x284da0,'type':_0x25f536,'data':_0x22d034,'createdAt':new Date(),'authorId':_0x262d4d,'attributes':_0xd3a168});for(const _0x217814 of _0x28f834)this['_addSuggestionMarker'](_0x25f536,_0x284da0,_0x262d4d,_0x217814,bt['getMultiRangeId']());return _0x33fb8a;}['markDeletion'](_0x4a0013,_0x44e696=null,_0x2b063f={}){if(_0x4a0013['isCollapsed'])return null;const _0x42c39c=this['editor']['plugins']['get']('Users')['me'],_0x48be35=new _0xa6acbf(_0x4a0013['start'],_0x4a0013['end']);this['_trackingSessionId']&&(_0x2b063f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x59560e,meta:_0x2bdd76}of this['_findSuggestions'](_0x48be35,'insertion'))if(_0x2bdd76['isOwn']&&!_0x2bdd76['isNextTo']){if(_0x59560e['isMultiRange']){const _0x3036d1=_0x59560e['getRanges']()['filter'](_0x5a1df4=>'$graveyard'!=_0x5a1df4['root']['rootName']);_0x3036d1['every'](_0x59f81f=>_0x48be35['containsRange'](_0x59f81f,!0x0))&&_0x59560e['discard']();if(_0x3036d1['some'](_0x338715=>_0x338715['containsRange'](_0x48be35,!0x0))){const _0x432a02=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x44e696,'accept');return this['forceDefaultExecution'](()=>_0x432a02([_0x48be35],null,_0x2b063f)),null;}}else{const _0x5e8811=_0x48be35['getIntersection'](_0x59560e['getFirstRange']());null!==_0x5e8811&&_0x59560e['_onDiscard']([_0x5e8811],null,_0x2b063f);}}if(_0x48be35['detach'](),_0x48be35['isCollapsed']||'$graveyard'==_0x48be35['root']['rootName'])return null;let _0x2e21ab=null,_0x5f4819=_0x48be35['start'],_0x4362e3=_0x48be35['end'];const _0x4d3531=this['_findSuggestions'](_0x48be35,'deletion');for(const {suggestion:_0x422d4d,meta:_0x57c3b6}of _0x4d3531){const _0x1df8cd=this['_model']['createRange'](_0x5f4819,_0x4362e3);if(_0x57c3b6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57c3b6['containsRangeInObject']&&!_0x57c3b6['isInsideObject'])){if(_0x422d4d['isMultiRange']){if(!cn(_0x422d4d,_0x2b063f))continue;let _0x4808e2=!0x0;for(const _0x5a50fd of _0x422d4d['getRanges']()){if(_0x5a50fd['containsRange'](_0x1df8cd,!0x0))return _0x422d4d;_0x1df8cd['containsRange'](_0x5a50fd)||(_0x4808e2=!0x1);}_0x4808e2&&_0x422d4d['discard']();}else{const _0x471c51=_0x422d4d['getFirstRange']();if(_0x471c51['containsRange'](_0x1df8cd,!0x0))return _0x422d4d;if(!cn(_0x422d4d,_0x2b063f)){_0x1df8cd['containsRange'](_0x471c51)?_0x422d4d['removeMarkers']():_0x471c51['containsPosition'](_0x5f4819)?_0x5f4819=_0x471c51['end']:_0x471c51['containsPosition'](_0x4362e3)&&(_0x4362e3=_0x471c51['start']);continue;}_0x5f4819=_0x5f4819['isBefore'](_0x471c51['start'])?_0x5f4819:_0x471c51['start'],_0x4362e3=_0x4362e3['isAfter'](_0x471c51['end'])?_0x4362e3:_0x471c51['end'],_0x2b063f=Object['assign']({},_0x422d4d['attributes']),_0x2e21ab?_0x471c51['start']['isBefore'](_0x2e21ab['getFirstRange']()['start'])?(_0x2e21ab['removeMarkers'](),_0x2e21ab=_0x422d4d):_0x422d4d['removeMarkers']():_0x2e21ab=_0x422d4d;}}}if(_0x2e21ab)return this['_setSuggestionRange'](_0x2e21ab,this['_model']['createRange'](_0x5f4819,_0x4362e3)),_0x2e21ab;{const _0x340d18=_0x932f3b(),_0x31d4d8=this['_model']['createRange'](_0x5f4819,_0x4362e3),_0x46a138=_0x42c39c['id'],_0x5c97c1=_0x44e696?'deletion:'+_0x44e696:'deletion',_0x412ca9=this['_setSuggestionData']({'id':_0x340d18,'type':_0x5c97c1,'createdAt':new Date(),'authorId':_0x46a138,'attributes':_0x2b063f});return this['_addSuggestionMarker'](_0x5c97c1,_0x340d18,_0x46a138,_0x31d4d8),_0x412ca9;}}['markMultiRangeDeletion'](_0x484165,_0x40eef5='multi',_0x211836={}){const _0xa00fad=this['editor']['plugins']['get']('Users')['me'],_0xbeaf7d=_0x484165['map'](_0x3cc550=>new _0xa6acbf(_0x3cc550['start'],_0x3cc550['end'])),_0x190055=new Set();this['_trackingSessionId']&&(_0x211836['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1242d0,meta:_0x361c34}of this['_findSuggestions'](_0xbeaf7d,'insertion'))_0x361c34['isOwn']&&!_0x361c34['isNextTo']&&_0x190055['add'](_0x1242d0);for(const _0x1407fa of _0x190055)if(_0x1407fa['isMultiRange']){const _0x117f82=_0x1407fa['getRanges']();(!_0x1407fa['attributes']||!_0x1407fa['attributes']['skipNestingCheck'])&&(_0x117f82['every'](_0x591acf=>_0xbeaf7d['some'](_0x58bea9=>_0x58bea9['containsRange'](_0x591acf,!0x0)))&&_0x1407fa['discard']());if(_0xbeaf7d['every'](_0x5f07d0=>_0x117f82['some'](_0x21f9bb=>_0x21f9bb['containsRange'](_0x5f07d0,!0x0)))){const _0x13ccbf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40eef5,'accept');return this['forceDefaultExecution'](()=>_0x13ccbf(_0x484165,null,_0x211836)),null;}}else{const _0x5c305b=_0x1407fa['getFirstRange']();_0xbeaf7d['some'](_0x3ab2e6=>_0x3ab2e6['containsRange'](_0x5c305b,!0x0))&&_0x1407fa['discard']();if(_0xbeaf7d['every'](_0x318db4=>_0x5c305b['containsRange'](_0x318db4,!0x0))){const _0x166fb9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40eef5,'accept');return this['forceDefaultExecution'](()=>_0x166fb9(_0xbeaf7d,null,_0x211836)),null;}}const _0x51b0c2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40eef5,'join');let _0x79324c=null;for(const _0x17f9bd of this['getSuggestions']())if(_0x17f9bd['author']['id']==_0xa00fad['id']&&_0x17f9bd['isInContent']&&'deletion'==_0x17f9bd['type']&&_0x17f9bd['subType']==_0x40eef5&&cn(_0x17f9bd,_0x211836)&&(_0x51b0c2(_0x17f9bd['getRanges'](),_0xbeaf7d)||_0x51b0c2(_0xbeaf7d,_0x17f9bd['getRanges']()))){if(_0x79324c){if(_0x17f9bd['commentThread']&&_0x17f9bd['commentThread']['length'])continue;for(const _0x43b664 of _0x17f9bd['getRanges']())_0x79324c['isIntersectingWithRange'](_0x43b664)||_0x79324c['addRange'](_0x43b664);_0x17f9bd['removeMarkers']();}else{_0x79324c=_0x17f9bd;for(const _0x3e4c90 of _0xbeaf7d)_0x17f9bd['isIntersectingWithRange'](_0x3e4c90)||_0x17f9bd['addRange'](_0x3e4c90);}}if(_0x79324c)return _0x79324c;_0x190055['clear']();for(const {suggestion:_0xbfaf87,meta:_0x9e334a}of this['_findSuggestions'](_0xbeaf7d,'deletion'))_0x9e334a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9e334a['containsRangeInObject']&&!_0x9e334a['isInsideObject'])&&cn(_0xbfaf87,_0x211836)&&_0x190055['add'](_0xbfaf87);for(const _0x318474 of _0x190055){const _0x843277=_0x318474['getRanges']();if(!_0x211836||!_0x211836['skipNestingCheck']){if(_0xbeaf7d['every'](_0x1b0871=>_0x843277['some'](_0x868a2f=>_0x868a2f['containsRange'](_0x1b0871,!0x0))))return _0x318474;}(!_0x318474['attributes']||!_0x318474['attributes']['skipNestingCheck'])&&(_0x843277['every'](_0x429a56=>_0xbeaf7d['some'](_0x40e5e0=>_0x40e5e0['containsRange'](_0x429a56,!0x0)))&&_0x318474['discard']());}const _0x2387f0=_0x932f3b(),_0x228a44=_0xa00fad['id'],_0x486968='deletion:'+_0x40eef5,_0x3905cd=this['_setSuggestionData']({'id':_0x2387f0,'type':_0x486968,'createdAt':new Date(),'authorId':_0x228a44,'attributes':_0x211836});for(const _0x3a87ba of _0xbeaf7d)_0x3a87ba['detach'](),_0x3a87ba['isCollapsed']||'$graveyard'==_0x3a87ba['root']['rootName']||this['_addSuggestionMarker'](_0x486968,_0x2387f0,_0x228a44,_0x3a87ba,bt['getMultiRangeId']());return _0x3905cd;}['markAttributeChange'](_0x452588,_0x14cf10,_0x3f14ee,_0x5c5939,_0x1f9813){if(_0x452588['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4735fe=this['editor']['plugins']['get']('Users')['me']['id'],_0x10555b=Array['from'](this['_suggestions']['values']())['filter'](_0x58c47e=>'attribute'==_0x58c47e['type']&&_0x58c47e['data']['key']==_0x14cf10&&_0x58c47e['isIntersectingWithRange'](_0x452588));if(this['_trackingSessionId']&&(_0x1f9813['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x15b70e=this['_findSuggestions'](_0x452588,'insertion')['filter'](({meta:_0x26a48f})=>_0x26a48f['isOwn']&&!_0x26a48f['isInsideObject']&&!_0x26a48f['isNextTo'])['map'](({suggestion:_0x371bdd})=>_0x371bdd);_0x10555b['unshift'](..._0x15b70e);}const _0x486975=new Map([[_0x452588,_0x3f14ee]]);for(const _0xa90720 of _0x10555b){const _0x2f2fb3='attribute'==_0xa90720['type']?_0xa90720['data']['oldValue']:void 0x0,_0x3ffe21=_0xa90720['getFirstRange'](),_0x4fc967=Array['from'](_0x486975['keys']())['find'](_0x126b7b=>_0x126b7b['isIntersecting'](_0x3ffe21));if(!_0x4fc967)continue;const _0x51ce02=_0x4fc967['getDifference'](_0x3ffe21);this['_suggestionsConversion']['isBlockAttribute'](_0x14cf10)&&'insertion'==_0xa90720['type']&&0x0!=_0x51ce02['length']||(_0x486975['delete'](_0x4fc967),_0x51ce02['forEach'](_0x159789=>{_0x486975['set'](_0x159789,_0x3f14ee);}),'insertion'!=_0xa90720['type']&&_0x2f2fb3!=_0x5c5939&&_0x486975['set'](_0x4fc967['getIntersection'](_0x3ffe21),_0x2f2fb3));}const _0x52af25=[];for(const [_0x58faa3,_0xfaa1c4]of _0x486975){const _0xe8127=_0x932f3b(),_0x29b2fe={'key':_0x14cf10,'oldValue':_0xfaa1c4,'newValue':_0x5c5939};_0x14cf10['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':_0x14cf10});const _0x5196a2=('attribute:'+(_0x14cf10+'|'+Je({'newValue':_0x5c5939})))['substring'](0x0,0x3c),_0x2d192a=this['_setSuggestionData']({'id':_0xe8127,'type':_0x5196a2,'data':_0x29b2fe,'createdAt':new Date(),'authorId':_0x4735fe,'attributes':_0x1f9813});_0x52af25['push'](_0x2d192a),this['_addSuggestionMarker'](_0x5196a2,_0xe8127,_0x4735fe,_0x58faa3);}return _0x52af25;}['enableDefaultAttributesIntegration'](_0x1c67d7){this['enableCommand'](_0x1c67d7,(_0xe6b74a,..._0x131ec7)=>{this['recordAttributeChanges'](()=>{_0xe6b74a(..._0x131ec7);});});}['startTrackingSession'](_0x21d2eb){return this['_trackingSessionId']=void 0x0!==_0x21d2eb?_0x21d2eb:_0x932f3b(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4ae3f9){return'attribute'==_0x4ae3f9['type']?un(_0x4ae3f9['subType']):null;}['_applyOperationsAsSuggestions'](_0x3bab5f){if(0x0==_0x3bab5f['length'])return;const _0x4f9a63=this['editor'],_0x4812a4=_0x4f9a63['plugins']['get'](_0x2826a9),_0x550f1c=[];_0x4f9a63['model']['change'](_0x110860=>{for(let _0x475841=0x0;_0x475841<_0x3bab5f['length'];_0x475841++){const _0x551647=_0x3bab5f[_0x475841];if(_0x551647['baseVersion']=_0x4f9a63['model']['document']['version'],_0x551647['isDocumentOperation']=!0x0,_0x4812a4['isMarkedRemoveOperation'](_0x551647)){const _0x670920=_0x98d968(_0x551647['newRange'],_0x4f9a63['model']);_0x550f1c['unshift'](_0xa6acbf['fromRange'](_0x670920));}else switch(_0x551647['type']){case'rename':{const _0x5aa6a5=_0x551647['oldName'],_0x5c4e2a=_0x551647['newName'];if(_0x5aa6a5==_0x5c4e2a)break;_0x110860['batch']['addOperation'](_0x551647),_0x4f9a63['model']['applyOperation'](_0x551647);const _0x3fdd8a='$elementName',_0x156595=_0x551647['position'],_0x517c23=_0x4f9a63['model']['createRange'](_0x156595,_0x4f9a63['model']['createPositionAt'](_0x156595['nodeAfter'],'end'));this['markAttributeChange'](_0x517c23,_0x3fdd8a,_0x5aa6a5,_0x5c4e2a,{'groupId':_0x932f3b()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x32dc93=_0x551647['oldValue'],_0x2e2b81=_0x551647['newValue'];if(_0x32dc93==_0x2e2b81)break;_0x110860['batch']['addOperation'](_0x551647),_0x4f9a63['model']['applyOperation'](_0x551647);const _0x511f95=_0x551647['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x511f95))break;const _0x8e3c54=_0x98d968(_0x551647['range'],_0x4f9a63['model']);this['markAttributeChange'](_0x8e3c54,_0x511f95,_0x32dc93,_0x2e2b81,{'groupId':_0x932f3b()});break;}case'insert':{_0x110860['batch']['addOperation'](_0x551647),_0x4f9a63['model']['applyOperation'](_0x551647);if(_0x3bab5f[_0x475841+0x1]&&'move'==_0x3bab5f[_0x475841+0x1]['type'])break;const _0x306ca3=_0x551647['position'],_0x2219b0=_0x551647['howMany'],_0x205897=_0x98d968(_0x4f9a63['model']['createRange'](_0x306ca3,_0x306ca3['getShiftedBy'](_0x2219b0)),_0x4f9a63['model']);this['markInsertion'](_0x205897);break;}case'split':{_0x110860['batch']['addOperation'](_0x551647),_0x4f9a63['model']['applyOperation'](_0x551647);const _0x42eb5b=_0x551647['splitPosition'],_0x350312=_0x551647['moveTargetPosition'];this['markInsertion'](_0x4f9a63['model']['createRange'](_0x42eb5b,_0x350312));break;}case'move':case'remove':_0x110860['batch']['addOperation'](_0x551647),_0x4f9a63['model']['applyOperation'](_0x551647);}}for(const _0x29ea08 of _0x550f1c)_0x29ea08['detach'](),this['markDeletion'](_0x29ea08);});}['_setSuggestionRange'](_0x5e64c2,_0x3ca62b){const _0xfba8b6=_0x5e64c2['getFirstMarker']();this['_model']['change'](_0x75b009=>{_0x75b009['updateMarker'](_0xfba8b6,{'range':_0x3ca62b});});}['_addThreadToSuggestion'](_0x34d231){const _0x4c013e=_0x34d231['id'],_0x56f893=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4c013e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x56f893,'threadId':_0x4c013e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x85d66b=this['_commentsRepository']['getCommentThread'](_0x4c013e);_0x85d66b['unbind']('isRemovable'),_0x85d66b['isRemovable']=!0x1,_0x34d231['commentThread']=_0x85d66b;}['_checkSuggestionCorrectness'](_0x573c93,_0x2a0218,_0x56405e,_0x54591a){if(_0x573c93['type']!=_0x2a0218||_0x573c93['subType']!=_0x56405e||_0x573c93['creator']['id']!=_0x54591a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x43ada4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x360ffc,_0x4ac701){const _0x5e9121=_0x360ffc['getFirstRange']();if(_0x4ac701['isEqual'](_0x5e9121))_0x360ffc['removeMarkers']();else{if(_0x5e9121['containsRange'](_0x4ac701)){const _0x554b12=this['_model']['createPositionAt'](_0x4ac701['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x360ffc,this['_model']['createRange'](_0x5e9121['start'],_0x554b12));const _0x1cd766=_0x932f3b(),_0x34e373=_0x360ffc['creator']['id'],_0x19b682=_0x360ffc['type']+':'+_0x360ffc['subType'];this['_setSuggestionData']({'id':_0x1cd766,'type':_0x19b682,'createdAt':new Date(),'authorId':_0x34e373,'data':_0x360ffc['data'],'attributes':_0x360ffc['attributes']});const _0x430756=this['_model']['createPositionAt'](_0x4ac701['end']['parent'],'after'),_0x93f0d=this['_model']['createRange'](_0x430756,_0x5e9121['end']);this['_addSuggestionMarker'](_0x19b682,_0x1cd766,_0x34e373,_0x93f0d);}else{if(_0x5e9121['containsPosition'](_0x4ac701['start'])){const _0x28d4e7=this['_model']['createPositionAt'](_0x4ac701['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x360ffc,this['_model']['createRange'](_0x5e9121['start'],_0x28d4e7));}else{const _0x1c5f59=this['_model']['createPositionAt'](_0x4ac701['end']['parent'],'after');this['_setSuggestionRange'](_0x360ffc,this['_model']['createRange'](_0x1c5f59,_0x5e9121['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x24f367){for(const {suggestion:_0x4a8d4f,meta:_0x1fe405}of this['_findSuggestions'](_0x24f367,'insertion')){if(!_0x1fe405['isOwn'])continue;const _0x2944b7=_0x4a8d4f['getRanges']();for(const _0x477923 of _0x2944b7)if(!_0x24f367['getDifference'](_0x477923)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x230c63){return this['editor']['plugins']['get']('Users')['getUser'](_0x230c63);}['_getExternalAuthor'](_0x525620){const _0x141004=this['editor']['plugins']['get']('Users'),_0x10da89=_0x1760ad('external:'+_0x525620),_0x26f405=_0x141004['getUser'](_0x10da89);return _0x26f405||_0x141004['addUser']({'id':_0x10da89,'name':_0x525620});}['_createSuggestion'](_0x513191,_0x1b9956,_0x22c16a,_0x5781f2,_0xfc06de,_0x22ad70){const _0x13f9a2=this['_getAuthorFromId'](_0x5781f2);if(!_0x13f9a2)throw new _0x43ada4('track-changes-user-not-found',this,{'authorId':_0x5781f2,'suggestionId':_0x22c16a});const _0xa20006=this['_suggestionFactory']['buildSuggestion'](_0x513191,_0x1b9956,_0x22c16a,_0x13f9a2,_0xfc06de,_0x58c716=>{this['_updateSuggestionData'](_0x22c16a,{'attributes':_0x58c716});const _0xbd87c4=this['getSuggestion'](_0x22c16a);this['_joinWithAdjacentSuggestions'](new Set([_0xbd87c4])),this['_refreshSuggestionsChain'](new Set([_0xbd87c4]));},_0x22ad70);return this['listenTo'](_0xa20006,'accept',()=>{this['_updateSuggestionData'](_0x22c16a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xa20006,'discard',()=>{this['_updateSuggestionData'](_0x22c16a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x22c16a,_0xa20006),this['_suggestionState']['set'](_0xa20006,'notReady'),_0xa20006;}['_breakSuggestionMarker'](_0x19ac9e,_0x31184e,_0x356805){const _0x287204=_0x19ac9e['getFirstRange'](),_0x598ace=_0x287204['start'],_0x45a387=_0x287204['end'];this['_setSuggestionRange'](_0x19ac9e,this['_model']['createRange'](_0x598ace,_0x31184e));const _0x22c62b=_0x932f3b(),_0x8ff57c=_0x19ac9e['creator']['id'],_0x4fda72=_0x19ac9e['type']+(_0x19ac9e['subType']?':'+_0x19ac9e['subType']:'');this['_setSuggestionData']({'id':_0x22c62b,'type':_0x4fda72,'createdAt':new Date(),'authorId':_0x8ff57c,'originalSuggestionId':_0x19ac9e['_originalSuggestionId']||_0x19ac9e['id'],'attributes':_0x19ac9e['attributes'],'data':_0x19ac9e['data']});const _0x1f0e3c=this['_getAttributeKey'](_0x19ac9e);('formatBlock'==_0x19ac9e['type']||_0x1f0e3c&&this['_suggestionsConversion']['isBlockAttribute'](_0x1f0e3c))&&(_0x356805=this['_model']['createPositionBefore'](_0x356805['parent'])),this['_addSuggestionMarker'](_0x4fda72,_0x22c62b,_0x8ff57c,this['_model']['createRange'](_0x356805,_0x45a387));}['_findSuggestions'](_0x33ef03,_0x3014af=null){const _0x47d25f=[],_0x2b5a97=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x33ef03)||(_0x33ef03=[_0x33ef03]);for(const _0x418989 of this['getSuggestions']()){if(!_0x418989['isInContent'])continue;if(_0x3014af&&_0x418989['type']!=_0x3014af)continue;let _0xae633f=!0x1;for(const _0x340c4f of _0x418989['getRanges']()){for(const _0x4ac926 of _0x33ef03){const _0x3491d7=_0x4ac926['start']['isEqual'](_0x340c4f['end'])||_0x4ac926['end']['isEqual'](_0x340c4f['start']);if(_0x3491d7||_0x4ac926['getIntersection'](_0x340c4f)){const _0x27357f=_0x4ac926['containsRange'](_0x340c4f)&&qe(this['_model']['schema'],_0x340c4f['start'],_0x4ac926),_0x42c912=_0x340c4f['containsRange'](_0x4ac926)&&qe(this['_model']['schema'],_0x4ac926['start'],_0x340c4f);_0x47d25f['push']({'suggestion':_0x418989,'meta':{'isOwn':_0x2b5a97==_0x418989['author'],'isNextTo':_0x3491d7,'isInsideObject':_0x27357f,'containsRangeInObject':_0x42c912}}),_0xae633f=!0x0;break;}}if(_0xae633f)break;}}return _0x47d25f;}['_addSuggestionMarker'](_0x23bd03,_0x533795,_0x1ce26b,_0x41279f,_0x17f03d){this['_model']['change'](_0x19b2b7=>{let _0x5423ea='suggestion:'+_0x23bd03+':'+_0x533795+':'+_0x1ce26b;_0x17f03d&&(_0x5423ea=_0x5423ea+':'+_0x17f03d),_0x19b2b7['addMarker'](_0x5423ea,{'range':_0x41279f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x15e7e7){const _0x5b3e0f=_0x15e7e7['previous'],_0x19b930=_0x15e7e7['next'];_0x15e7e7['previous']=null,_0x15e7e7['next']=null,null!=_0x5b3e0f&&_0x5b3e0f['next']==_0x15e7e7&&(_0x5b3e0f['next']=_0x19b930),null!=_0x19b930&&_0x19b930['previous']==_0x15e7e7&&(_0x19b930['previous']=_0x5b3e0f),'ready'==this['_suggestionState']['get'](_0x15e7e7)&&(this['_suggestionState']['set'](_0x15e7e7,'removed'),this['fire']('suggestionUnloaded',_0x15e7e7,_0x5b3e0f,_0x19b930));}['_setSuggestionData'](_0x3f0a12){const _0x3b7ec1=_0x3f0a12['id'],_0x30e365=this['addSuggestionData'](_0x3f0a12);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1b594b=this['editor']['plugins']['get']('PendingActions'),_0xfc6d75=_0x30e365['hasComments'],_0x20730e=_0x30e365['subType']?_0x30e365['type']+':'+_0x30e365['subType']:_0x30e365['type'],_0x17d871=this['editor']['locale'],_0x5bb49f=_0x1b594b['add'](At(_0x17d871,'PENDING_ACTION_SUGGESTION')),_0x4a96d6={'id':_0x3b7ec1,'type':_0x20730e,'hasComments':_0xfc6d75,'data':_0x3f0a12['data']||null,'originalSuggestionId':_0x3f0a12['originalSuggestionId']||null,'attributes':_0x30e365['attributes']};this['_adapter']['addSuggestion'](_0x4a96d6)['then'](_0x5f0e2e=>{_0x30e365['_saved']=!0x0,_0x1b594b['remove'](_0x5bb49f),_0x5f0e2e&&_0x5f0e2e['createdAt']&&(this['_suggestions']['get'](_0x3b7ec1)['createdAt']=_0x5f0e2e['createdAt']);})['catch'](_0x4c8468=>{throw _0x3e4ee7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x30e365['discard']();}),_0x30e365['stopListening'](),this['_suggestions']['delete'](_0x30e365['id']),this['_suggestionState']['delete'](_0x30e365),_0x4c8468;});}return _0x30e365;}['_updateSuggestionData'](_0x2c767a,_0xcd0560){const _0x500258=this['editor']['plugins']['get']('PendingActions'),_0x411054=this['getSuggestion'](_0x2c767a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x411054['_saved']){const _0x18d0aa=_0x500258['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2c767a,_0xcd0560)['then'](()=>{_0x500258['remove'](_0x18d0aa);});}else _0x411054['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2c767a,_0xcd0560);});}}['_getSuggestionData'](_0x2145f2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x43ada4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2145f2);}['_handleNewSuggestionMarker'](_0x4d13e5){const {id:_0x9f3c80,type:_0x44530e,subType:_0x5c0f7d,authorId:_0x48443e}=_0x548e4a(_0x4d13e5),_0xaab11a=this['_suggestions']['get'](_0x9f3c80)||this['_createSuggestion'](_0x44530e,_0x5c0f7d,_0x9f3c80,_0x48443e,{});switch(this['_checkSuggestionCorrectness'](_0xaab11a,_0x44530e,_0x5c0f7d,_0x48443e),this['_suggestionState']['get'](_0xaab11a)){case'notReady':this['_getSuggestionData'](_0x9f3c80)['then'](_0xbed37a=>{let _0x507ff2=Promise['resolve']();_0xbed37a['hasComments']&&(_0x507ff2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x9f3c80})),_0x507ff2['then'](()=>{this['addSuggestionData'](_0xbed37a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xaab11a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x9f3c80,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xaab11a,'ready'),this['fire']('suggestionLoaded',_0xaab11a);break;case'ready':this['fire']('suggestionChanged',_0xaab11a);}return _0xaab11a['addMarkerName'](_0x4d13e5),_0xaab11a;}['_refreshSuggestionsChain'](_0x51d271){const _0x1d6c12=Array['from'](_0x51d271),_0xde4b4=_0x1d6c12['filter'](_0x16e2da=>'attribute'==_0x16e2da['type']);this['_refreshAttributeSuggestionsChain'](_0xde4b4);const _0x335b05=_0x1d6c12['filter'](_0x4b2a8b=>!_0x4b2a8b['isMultiRange']&&'attribute'!=_0x4b2a8b['type']),_0x429e2e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5973fe=>!_0x5973fe['isMultiRange']&&'attribute'!=_0x5973fe['type']),_0x30a97c=_0x429e2e['filter'](_0x11067a=>!_0x51d271['has'](_0x11067a)),_0x283ed6=new Map(_0x429e2e['map'](_0x5e7c13=>[_0x5e7c13,this['_suggestionFactory']['getSuggestionCallback'](_0x5e7c13['type'],_0x5e7c13['subType'],'chain')])),_0x5d5114=new Map(_0x429e2e['map'](_0x123de5=>[_0x123de5,_0x123de5['getFirstRange']()])),_0x146ef8=new Set(),_0x28d273=new Set();for(let _0x130a6f=0x0;_0x130a6f<_0x335b05['length'];_0x130a6f++)_0x1c537e(_0x335b05[_0x130a6f],_0x335b05,_0x130a6f+0x1);for(let _0x5532d6=0x0;_0x5532d6<_0x335b05['length'];_0x5532d6++)_0x1c537e(_0x335b05[_0x5532d6],_0x30a97c,0x0);const _0x1b2e20=new Set();for(let _0x475ddb=0x0;_0x475ddb<_0x335b05['length'];_0x475ddb++){const _0x52cbb1=_0x335b05[_0x475ddb];!_0x28d273['has'](_0x52cbb1)&&_0x52cbb1['previous']&&(_0x1b2e20['add'](_0x52cbb1['previous']),_0x52cbb1['previous']['next']===_0x52cbb1&&(_0x52cbb1['previous']['next']=null),_0x52cbb1['previous']=null),!_0x146ef8['has'](_0x52cbb1)&&_0x52cbb1['next']&&(_0x1b2e20['add'](_0x52cbb1['next']),_0x52cbb1['next']['previous']===_0x52cbb1&&(_0x52cbb1['next']['previous']=null),_0x52cbb1['next']=null);}function _0x1c537e(_0x50c913,_0x24728c,_0x5ea2cb){for(let _0x5889cf=_0x5ea2cb;_0x5889cf<_0x24728c['length'];_0x5889cf++){const _0x2393c5=_0xf65df9(_0x50c913,_0x24728c[_0x5889cf]);_0x2393c5&&(_0x2393c5[0x0]['next']=_0x2393c5[0x1],_0x2393c5[0x1]['previous']=_0x2393c5[0x0],_0x146ef8['add'](_0x2393c5[0x0]),_0x28d273['add'](_0x2393c5[0x1]));}}function _0xf65df9(_0x4eb1c2,_0x5065bc){if(_0x4eb1c2['author']['id']!==_0x5065bc['author']['id'])return null;const _0x58e52a=_0x283ed6['get'](_0x4eb1c2)(_0x4eb1c2,_0x5065bc,_0x5d5114['get'](_0x4eb1c2),_0x5d5114['get'](_0x5065bc));if(!_0x58e52a)return null;return _0x283ed6['get'](_0x5065bc)(_0x4eb1c2,_0x5065bc,_0x5d5114['get'](_0x4eb1c2),_0x5d5114['get'](_0x5065bc))?_0x58e52a[0x1]['commentThread']&&_0x58e52a[0x1]['commentThread']['length']?null:_0x58e52a:null;}_0x1b2e20['size']&&this['_refreshSuggestionsChain'](_0x1b2e20);}['_refreshAttributeSuggestionsChain'](_0x1580f5){if(0x0==_0x1580f5['length'])return;const _0x5ab4d8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x358055=>'attribute'==_0x358055['type']&&_0x358055['_isDataLoaded']),_0x5d247c=[],_0x302e5b=new Map();for(const _0x8b4563 of _0x5ab4d8){const _0x116078=_0x1760ad(_0x8b4563['attributes']);_0x302e5b['has'](_0x116078)||(_0x302e5b['set'](_0x116078,_0x5d247c['length']),_0x5d247c['push']([]));const _0x4910af=_0x302e5b['get'](_0x116078);_0x5d247c[_0x4910af]['push'](_0x8b4563);}!(function(){_0x5d247c['sort']((_0x486d4e,_0x24716b)=>{const _0x3fafef=_0x486d4e[0x0]['createdAt'],_0x3c465d=_0x24716b[0x0]['createdAt'];return _0x3fafef==_0x3c465d?_0x486d4e[0x0]['attributes']['groupId']<_0x24716b[0x0]['attributes']['groupId']?-0x1:0x1:_0x3fafef<_0x3c465d?-0x1:0x1;});for(const _0x4aee54 of _0x5d247c)_0x4aee54['sort']((_0x1727bf,_0x484b92)=>_0x1727bf['id']<_0x484b92['id']?-0x1:0x1);}());for(let _0x26bbd5=0x0;_0x26bbd5<_0x5d247c['length'];_0x26bbd5++){if(0x0==_0x5d247c[_0x26bbd5]['length'])continue;const _0xa7ef4a=[];for(let _0x2b3623=_0x26bbd5+0x1;_0x2b3623<_0x5d247c['length'];_0x2b3623++)0x0!=_0x5d247c[_0x2b3623]['length']&&_0x35a5d3(_0x5d247c[_0x26bbd5],_0x5d247c[_0x2b3623])&&_0xa7ef4a['push'](_0x2b3623);for(const _0x290d05 of _0xa7ef4a)_0x5d247c[_0x26bbd5]=_0x5d247c[_0x26bbd5]['concat'](_0x5d247c[_0x290d05]),_0x5d247c[_0x290d05]=[];}for(const _0x420120 of _0x5d247c)for(let _0x2ae77d=0x0;_0x2ae77d<_0x420120['length'];_0x2ae77d++){const _0xb2118c=_0x420120[_0x2ae77d+0x1]||null;_0x420120[_0x2ae77d]['next']!==_0xb2118c&&(_0x420120[_0x2ae77d]['next']=_0xb2118c);}for(const _0x33cfe1 of _0x5d247c)for(let _0x5ae80b=0x0;_0x5ae80b<_0x33cfe1['length'];_0x5ae80b++){const _0x2a1b1e=_0x33cfe1[_0x5ae80b-0x1]||null;_0x33cfe1[_0x5ae80b]['previous']!==_0x2a1b1e&&(_0x33cfe1[_0x5ae80b]['previous']=_0x2a1b1e);}function _0x35a5d3(_0xd1ddc4,_0x42d717){if(_0xd1ddc4[0x0]['attributes']['groupId']!==_0x42d717[0x0]['attributes']['groupId']&&_0xd1ddc4[0x0]['author']!==_0x42d717[0x0]['author'])return!0x1;if(!function(_0x339f1f,_0x5a2359){if(!_0x339f1f['hasComments']&&!_0x5a2359['hasComments'])return!0x0;if(_0x339f1f['hasComments']&&_0x5a2359['hasComments'])return!0x1;if(_0x339f1f['hasComments']&&_0x5a2359['createdAt']<_0x339f1f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5a2359['hasComments']&&_0x339f1f['createdAt']<_0x5a2359['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xd1ddc4[0x0],_0x42d717[0x0]))return!0x1;const _0x5b48c5=ot(_0xd1ddc4[0x0]['attributes'],['groupId','trackingSessionId']),_0x1584a8=ot(_0x42d717[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x5b48c5,_0x1584a8))return!0x1;if(_0xd1ddc4[0x0]['attributes']['groupId']==_0x42d717[0x0]['attributes']['groupId'])return!0x0;if(_0xd1ddc4[0x0]['attributes']['trackingSessionId']!==_0x42d717[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xd1ddc4['every'](_0x13d618=>_0x42d717['some'](_0x52ef29=>_0x13d618['getFirstRange']()['isEqual'](_0x52ef29['getFirstRange']())))&&_0x42d717['every'](_0xe88211=>_0xd1ddc4['some'](_0x46f96b=>_0xe88211['getFirstRange']()['isEqual'](_0x46f96b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x42c8c1){const _0x3e46a7=Array['from'](_0x42c8c1),_0x204678=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3409c3=_0x204678['filter'](_0x50ce83=>!_0x42c8c1['has'](_0x50ce83)),_0x59e1ef=new Map(_0x3e46a7['map'](_0x4dfc97=>[_0x4dfc97,this['_suggestionFactory']['getSuggestionCallback'](_0x4dfc97['type'],_0x4dfc97['subType'],'join')])),_0x47dc9f=new Map(_0x204678['map'](_0x150153=>[_0x150153,_0x150153['getRanges']()]));for(let _0x318d23=0x0;_0x318d23<_0x3e46a7['length'];_0x318d23++){if(_0x23a58b(this,_0x3e46a7[_0x318d23],_0x3e46a7,_0x318d23+0x1))return!0x0;}for(let _0x2125e8=0x0;_0x2125e8<_0x3e46a7['length'];_0x2125e8++){if(_0x23a58b(this,_0x3e46a7[_0x2125e8],_0x3409c3,0x0))return!0x0;}return!0x1;function _0x23a58b(_0x9e70a1,_0x520317,_0x2bfa93,_0x22796a){for(let _0x19166c=_0x22796a;_0x19166c<_0x2bfa93['length'];_0x19166c++){const _0x35b6a9=_0x2bfa93[_0x19166c];if(_0x35b6a9['type']!==_0x520317['type']||_0x35b6a9['author']['id']!==_0x520317['author']['id']||_0x35b6a9['subType']!==_0x520317['subType'])continue;if(!an(_0x520317,_0x35b6a9))continue;if('attribute'==_0x520317['type']&&_0x520317['data']['oldValue']!=_0x35b6a9['data']['oldValue'])continue;if('attribute'==_0x520317['type']&&_0x9e70a1['_suggestionsConversion']['isBlockAttribute'](_0x520317['data']['key']))continue;if('formatBlock'==_0x520317['type']){const _0x3396d2=_0x9e70a1['editor']['model'],_0x46b837=_0x520317['getContainedElement']();if(_0x46b837&&(_0x3396d2['schema']['isObject'](_0x46b837)||_0x3396d2['schema']['isLimit'](_0x46b837)))continue;}const _0xe16889=_0x59e1ef['get'](_0x520317),_0x5b59c3=_0x47dc9f['get'](_0x520317),_0x50d7bb=_0x47dc9f['get'](_0x35b6a9),_0x3964fa=_0x520317['commentThread']&&_0x520317['commentThread']['length'],_0x16dc21=_0x35b6a9['commentThread']&&_0x35b6a9['commentThread']['length'];if(!_0x3964fa&&_0xe16889(_0x50d7bb,_0x5b59c3))return _0x9e70a1['_joinSuggestions'](_0x35b6a9,_0x520317),_0x47dc9f['delete'](_0x520317),!0x0;if(!_0x16dc21&&_0xe16889(_0x5b59c3,_0x50d7bb))return _0x9e70a1['_joinSuggestions'](_0x520317,_0x35b6a9),_0x47dc9f['delete'](_0x35b6a9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x534d46,_0x14da15){if(_0x534d46['isMultiRange']){for(const _0x8f158 of _0x14da15['getRanges']())_0x534d46['addRange'](_0x8f158);}else{const _0x41e648=_0x14da15['getFirstRange']()['end'];this['_setSuggestionRange'](_0x534d46,this['_model']['createRange'](_0x534d46['getFirstRange']()['start'],_0x41e648));}_0x14da15['removeMarkers']();}['_getMarkerAnnouncementText'](_0x390af5,_0x4afe83,_0x14c733){const _0x2a4e5d=_0x390af5['startsWith']('format')||_0x390af5['startsWith']('attribute')?'FORMATTING':_0x390af5['toUpperCase']();return At(this['editor']['locale'],_0x4afe83+'_'+_0x2a4e5d+'_SUGGESTION_ANNOUNCEMENT',_0x14c733);}['_initAriaMarkerChangeAnnouncements'](){const _0x4c72e9=this['editor'];if(!_0x4c72e9['ui'])return;const {ariaLiveAnnouncer:_0xf3f72f}=_0x4c72e9['ui'];_0x479afc(this['_model'],({left:_0x3e3fa4,entered:_0x116e54})=>{for(const _0x194d7e of _0x3e3fa4){const {group:_0x14dd0a,type:_0x5d9c76}=_0x548e4a(_0x194d7e['name']);if('suggestion'===_0x14dd0a){_0xf3f72f['announce'](this['_getMarkerAnnouncementText'](_0x5d9c76,'LEAVE'));break;}}for(const _0x29f525 of _0x116e54){const {group:_0x9f8c8d,type:_0x4f015e}=_0x548e4a(_0x29f525['name']);if('suggestion'===_0x9f8c8d){_0xf3f72f['announce'](this['_getMarkerAnnouncementText'](_0x4f015e,'ENTER',_0x3e595e(_0xe619b0)));break;}}});}['_processAttributeChanges'](_0x4c610a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x384bef=this['editor'],_0x41298e=_0x384bef['model']['document']['differ']['getChanges']();if(0x0==_0x41298e['length'])return!0x1;const _0x37dfaa=[],_0x1ab8a4=_0x41298e['filter'](_0x20a5fa=>'attribute'==_0x20a5fa['type']),_0x2f0d46=_0x41298e['filter'](_0x21577a=>'insert'==_0x21577a['type']&&'$text'!=_0x21577a['name']),_0x169be0=_0x41298e['filter'](_0x3ca7ca=>'remove'==_0x3ca7ca['type']&&'$text'!=_0x3ca7ca['name']);for(const _0x30dcd2 of _0x1ab8a4)_0x37dfaa['push']({'key':_0x30dcd2['attributeKey'],'newValue':_0x30dcd2['attributeNewValue'],'oldValue':_0x30dcd2['attributeOldValue'],'range':sn(_0x30dcd2['range'],_0x384bef['model'])});for(const _0xc3e355 of _0x2f0d46){const _0x4452cd=_0x169be0['find'](_0x5120fc=>_0x5120fc['position']['isEqual'](_0xc3e355['position']));_0x4452cd&&_0x37dfaa['push']({'key':Ke,'newValue':_0xc3e355['name'],'oldValue':_0x4452cd['name'],'range':_0x384bef['model']['createRangeOn'](_0xc3e355['position']['nodeAfter'])});}return 0x0!=_0x37dfaa['length']&&this['_reduceExistingSuggestions'](_0x4c610a,_0x37dfaa);}['_processAttributeSuggestions'](_0x538188){let _0x363e5b=!0x1;const _0x5c9121=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x37c911=>_0x37c911['data']['newRange']&&_0x37c911['name']['startsWith']('suggestion:attribute:'));for(const _0x3352a1 of _0x5c9121){const {subType:_0x5f357c,id:_0x488a65}=_0x548e4a(_0x3352a1['name']),_0x2ab779=_0x5f357c['split']('|')[0x0];for(const _0x1dfdb6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1dfdb6['id']!=_0x488a65&&'attribute'==_0x1dfdb6['type']&&_0x1dfdb6['data']&&_0x1dfdb6['data']['key']==_0x2ab779&&_0x1dfdb6['getFirstRange']()['isIntersecting'](_0x3352a1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1dfdb6,_0x3352a1['data']['newRange'],_0x538188),_0x363e5b=!0x0);}return _0x363e5b;}['recordAttributeChanges'](_0x3aa360){this['_recordAttributeSuggestions']=!0x0,_0x3aa360();}['_reduceExistingSuggestions'](_0x36cebd,_0x808d4b){if(0x0==_0x808d4b['length'])return!0x1;let _0x126ede=!0x1;for(const _0x5be478 of _0x808d4b){const _0x581db2=this['_findSuggestions'](_0x5be478['range'],'attribute')['filter'](_0x17b31f=>!_0x17b31f['meta']['isNextTo'])['map'](_0x9681b0=>_0x9681b0['suggestion']),_0x3119e3=_0x1760ad({'newValue':_0x5be478['newValue']});_0x581db2['filter'](_0x5104f2=>{const [_0x4c8304,_0x4e49e5]=_0x5104f2['subType']['split']('|');return _0x4c8304==_0x5be478['key']&&_0x4e49e5!=_0x3119e3;})['forEach'](_0x438a7c=>{this['_reduceSuggestionAttributeRange'](_0x438a7c,_0x5be478['range'],_0x36cebd),_0x126ede=!0x0;});}return _0x126ede;}['_reduceSuggestionAttributeRange'](_0x177862,_0x2dc282,_0x32808f){const _0x60901d=_0x177862['getFirstRange']()['getDifference'](_0x2dc282);0x0!==_0x60901d['length']?0x1!==_0x60901d['length']?this['_breakSuggestionMarker'](_0x177862,_0x2dc282['start'],_0x2dc282['end']):this['_setSuggestionRange'](_0x177862,_0x60901d[0x0]):_0x32808f['removeMarker'](_0x177862['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x6e1ad5){this['_editor']=_0x6e1ad5,this['_model']=_0x6e1ad5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4f1ad8,_0x3edd54,_0x1c2a07,_0xc7ac0d,_0x3bc5ef,_0x178298,_0x59a4ce){return new bt(this['_model'],{'type':_0x4f1ad8,'subType':_0x3edd54,'id':_0x1c2a07,'originalSuggestionId':_0x59a4ce,'author':_0xc7ac0d,'creator':_0xc7ac0d,'attributes':_0x3bc5ef,'onAttributesChange':_0x178298,'onAccept':(..._0x484766)=>this['getSuggestionCallback'](_0x4f1ad8,_0x3edd54,'accept')(..._0x484766),'onDiscard':(..._0x5b792a)=>this['getSuggestionCallback'](_0x4f1ad8,_0x3edd54,'discard')(..._0x5b792a)});}['registerCustomCallback'](_0x369647,_0x2dc09f,_0x1a9fbb,_0x319bf6){const _0x503c87=_0x369647+':'+_0x2dc09f+':'+_0x1a9fbb;this['_customCallbacks']['set'](_0x503c87,_0x319bf6);}['getSuggestionCallback'](_0x5bf649,_0x8b4bdc,_0x42203f){const _0x5e90cf=_0x5bf649+':'+_0x8b4bdc+':'+_0x42203f;return this['_customCallbacks']['get'](_0x5e90cf)||this['_defaultCallbacks']['get'](_0x5bf649+':'+_0x42203f);}['_registerDefaultCallbacks'](){const _0xba1f23=()=>!0x1,_0x149cd9=_0x1e8280=>{_0x1e8280['sort']((_0x384087,_0x45fe35)=>_0x384087['start']['isBefore'](_0x45fe35['start'])?0x1:-0x1),this['_model']['change'](_0x36b4ae=>{for(const _0x1b9258 of _0x1e8280){let _0x1eb16f;_0x1eb16f=_0x1b9258['end']['isAtEnd']&&_0x1b9258['end']['parent']==_0x1b9258['start']['nodeAfter']?_0x36b4ae['createSelection'](_0x1b9258['start']['nodeAfter'],'on'):_0x36b4ae['createSelection'](_0x1b9258),this['_model']['deleteContent'](_0x1eb16f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1788dc=(_0x3844fa,_0x1bdbce)=>{_0x1bdbce&&this['_model']['change'](_0x1f8bdb=>{const {commandName:_0x37e511,commandParams:_0x5c8e04=[]}=_0x1bdbce,_0x2d296f=_0x3844fa['map'](_0x52916c=>(Qe(_0x52916c)&&(_0x52916c=this['_model']['createRange'](_0x52916c['end'])),_0x52916c))['filter'](_0x2b23c7=>'$graveyard'!==_0x2b23c7['root']['rootName']);if(_0x2d296f['length']<0x1)return;const _0x1e16d1=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x19c0a4=>_0xa6acbf['fromRange'](_0x19c0a4));_0x1f8bdb['setSelection'](_0x2d296f);for(const _0x3904be of this['_editor']['commands']['commands']())_0x3904be['refresh']();_0x5c8e04['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x37e511,..._0x5c8e04);const _0x2a8fc5=_0x1e16d1['filter'](_0x2cbab2=>'$graveyard'!=_0x2cbab2['root']['rootName']);_0x2a8fc5['length']>0x0&&_0x1f8bdb['setSelection'](_0x2a8fc5);for(const _0x118aa9 of _0x1e16d1)_0x118aa9['detach']();});},_0x2f5cc6=(_0x4b2132,_0x3666eb)=>0x1==_0x4b2132['length']&&0x1==_0x3666eb['length']&&_0x4b2132[0x0]['end']['isEqual'](_0x3666eb[0x0]['start']),_0x45f927=(_0x4ab283,_0x5abeae,_0x62cc4f,_0x2de757)=>on(_0x4ab283,_0x5abeae,_0x62cc4f,_0x2de757)?[_0x4ab283,_0x5abeae]:on(_0x5abeae,_0x4ab283,_0x2de757,_0x62cc4f)?[_0x5abeae,_0x4ab283]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xba1f23),this['_defaultCallbacks']['set']('insertion:discard',_0x149cd9),this['_defaultCallbacks']['set']('insertion:join',_0x2f5cc6),this['_defaultCallbacks']['set']('insertion:chain',_0x45f927),this['_defaultCallbacks']['set']('deletion:accept',_0x149cd9),this['_defaultCallbacks']['set']('deletion:discard',_0xba1f23),this['_defaultCallbacks']['set']('deletion:join',_0x2f5cc6),this['_defaultCallbacks']['set']('deletion:chain',_0x45f927),this['_defaultCallbacks']['set']('formatInline:accept',_0x1788dc),this['_defaultCallbacks']['set']('formatInline:discard',_0xba1f23),this['_defaultCallbacks']['set']('formatInline:join',_0x2f5cc6),this['_defaultCallbacks']['set']('formatInline:chain',_0xba1f23),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1788dc),this['_defaultCallbacks']['set']('formatBlock:discard',_0xba1f23),this['_defaultCallbacks']['set']('formatBlock:join',_0x2f5cc6),this['_defaultCallbacks']['set']('formatBlock:chain',_0xba1f23),this['_defaultCallbacks']['set']('attribute:accept',_0xba1f23),this['_defaultCallbacks']['set']('attribute:discard',(_0x2950d9,_0x32c365)=>{if(!_0x32c365)return;const _0x14face=this['_editor']['plugins']['get'](_0x3330c8);this['_model']['change'](_0x5f5d95=>{if(_0x32c365['key']==Ke)for(const _0x4d504b of _0x2950d9){const _0x3009da=_0x4d504b['start']['nodeAfter'],_0x441ba8=_0x32c365['oldValue'];_0x5f5d95['rename'](_0x3009da,_0x441ba8);}else{if(_0x14face['isBlockAttribute'](_0x32c365['key'])){for(const _0x5ec4e3 of _0x2950d9)void 0x0!==_0x32c365['oldValue']?_0x5f5d95['setAttribute'](_0x32c365['key'],_0x32c365['oldValue'],_0x5ec4e3['start']['nodeAfter']):_0x5f5d95['removeAttribute'](_0x32c365['key'],_0x5ec4e3['start']['nodeAfter']);}else{for(const _0x308def of _0x2950d9)_0x32c365['oldValue']?_0x5f5d95['setAttribute'](_0x32c365['key'],_0x32c365['oldValue'],_0x308def):_0x5f5d95['removeAttribute'](_0x32c365['key'],_0x308def);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2f5cc6);}}function qe(_0x5f57c3,_0x40abc7,_0x5b13ed){for(const _0x2da1da of _0x40abc7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2da1da['root']==_0x2da1da)return!0x1;if(!_0x5b13ed['containsItem'](_0x2da1da))return!0x1;if(_0x5f57c3['isObject'](_0x2da1da)||_0x5f57c3['isLimit'](_0x2da1da))return!0x0;}return!0x1;}function Qe(_0x2e9190){return _0x2e9190['end']['parent']==_0x2e9190['start']['nodeAfter']&&_0x2e9190['end']['isAtStart'];}function Ze(_0x4baaf4,_0x27fdba,_0x46c000,_0x4f30c1){const _0x19209b=_0x2923f9=>!_0x2923f9['item']['is']('$textProxy')&&!_0x4f30c1['isObject'](_0x2923f9['item']),_0x3cbe5c=_0x4baaf4['start']['getLastMatchingPosition'](_0x19209b),_0x1e811b=_0x4baaf4['end']['getLastMatchingPosition'](_0x19209b,{'direction':'backward'});return(!_0x4baaf4['start']['isEqual'](_0x3cbe5c)||!_0x4baaf4['end']['isEqual'](_0x1e811b))&&(_0x3cbe5c['isBefore'](_0x1e811b)?_0x46c000['updateMarker'](_0x27fdba,{'range':_0x46c000['createRange'](_0x3cbe5c,_0x1e811b)}):_0x46c000['removeMarker'](_0x27fdba),!0x0);}function Je(_0x11533a){return _0x1760ad(_0x11533a);}function tn(_0xd176cb){const _0x543ec9=_0xd176cb['start']['nodeAfter'];return _0x543ec9&&_0x543ec9['is']('element');}function en(_0x7dc898){return Qe(_0x7dc898)||function(_0x4018d2){return _0x4018d2['start']['parent']==_0x4018d2['end']['nodeBefore']&&_0x4018d2['start']['isAtEnd'];}(_0x7dc898);}function nn(_0x52273c,_0x1cfee0){try{const _0x2967f1=_0x52273c['getRange']();for(const _0x2d2373 of _0x1cfee0)if(_0x52273c!==_0x2d2373&&_0x2967f1&&_0x2967f1['isIntersecting'](_0x2d2373['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x103848,_0x4aa672){return null==_0x103848['end']['nodeBefore']&&_0x103848['end']['parent']==_0x103848['start']['nodeAfter']?rn(_0x103848['start']['nodeAfter'],_0x4aa672):_0x103848;}function rn(_0x47c8a2,_0x386bb7){const _0x1d5094=_0x386bb7['schema']['isObject'](_0x47c8a2)||_0x386bb7['schema']['isSelectable'](_0x47c8a2);return _0x386bb7['createRange'](_0x386bb7['createPositionAt'](_0x47c8a2,'before'),_0x1d5094?_0x386bb7['createPositionAfter'](_0x47c8a2):_0x386bb7['createPositionAt'](_0x47c8a2,'end'));}function on(_0x2d91c6,_0x26a2d4,_0x4d1324,_0x2c696b){return!!an(_0x2d91c6,_0x26a2d4)&&_0x4d1324['end']['isEqual'](_0x2c696b['start']);}function an(_0x466f1b,_0x1ffcfb){if(!_0x466f1b['_isDataLoaded']||!_0x1ffcfb['_isDataLoaded'])return!0x1;const _0x4ac3b6=new Set(Object['keys'](_0x466f1b['attributes'])),_0x5ac3ac=new Set(Object['keys'](_0x1ffcfb['attributes']));if(_0x4ac3b6['delete']('groupId'),_0x5ac3ac['delete']('groupId'),0x0==_0x4ac3b6['size']&&0x0==_0x5ac3ac['size'])return!0x0;if(_0x4ac3b6['size']!=_0x5ac3ac['size'])return!0x1;const _0x978a5f={..._0x466f1b['attributes']},_0x542615={..._0x1ffcfb['attributes']};return delete _0x978a5f['groupId'],delete _0x542615['groupId'],JSON['stringify'](_0x978a5f)==JSON['stringify'](_0x542615);}function cn(_0x5df70b,_0x3a37eb){const _0x17ff34=ln(_0x5df70b['attributes']),_0x546398=ln(_0x3a37eb);if(!_0x5df70b['_isDataLoaded'])return!0x1;for(const _0x483d1b of Object['keys'](_0x546398))if(!st(_0x17ff34[_0x483d1b],_0x546398[_0x483d1b]))return!0x1;return!0x0;}function ln(_0x3f4286){const _0x49495d=Object['assign']({},_0x3f4286);return delete _0x49495d['skipNestingCheck'],delete _0x49495d['tablePasteChainId'],_0x49495d;}function un(_0x551445){return _0x551445['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
+ _0x1ab30b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x39b6c0,_0x4e95a9,_0x23a982,_0x576bb4){super(),this['model']=_0x4e95a9,this['view']=_0x23a982,this['commentThreadController']=_0x576bb4,this['_editor']=_0x39b6c0,this['_acceptCommand']=_0x39b6c0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x39b6c0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3987e4,_0x16e5c4)=>_0x3987e4||_0x16e5c4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x43b313=>_0x43b313&&this['_editor']['model']['canEditAt'](_0x4e95a9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x15c63d=>_0x15c63d&&this['_editor']['model']['canEditAt'](_0x4e95a9['getRanges']())),this['_pendingAction']=null,_0x23a982['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x23a982,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x23a982,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x23a982,'change:isDirty',()=>{_0x23a982['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 _0x1b1be6=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1b1be6);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x1af2b4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x158e05,_0x34c343,_0x2a865b,_0x1612fa){super(_0x158e05),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x541ce7(_0x158e05,At(_0x158e05,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x34c343['authoredAt']),this['bind']('authoredAt')['to'](_0x34c343),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',_0x34c343,'authoredAt',this,'descriptionParts',(_0xc2c36a,_0x490fe0,_0x28ea03)=>{const _0x41db63=_0x28ea03['map'](_0x504723=>gt(_0x504723['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xc2c36a-0x1,_0x34c343['author']['name'],_0x490fe0?_0x1612fa['formatDateTime'](_0x490fe0):'',new DOMParser()['parseFromString'](_0x41db63,'text/html')['body']['textContent']]);}),this['focusables']=new _0x532950(),this['focusTracker']=new _0x32f128(),this['keystrokes']=new _0x4f848f(),this['focusCycler']=new _0x290d71({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x308563=>_0x308563['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x34c343,this['_localUser']=_0x2a865b,this['_config']=_0x1612fa,_0x1612fa['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x520e0a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xe87fd6}=this['_config'];this['commentsListView']=new _0xe87fd6(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',_0x9a983=>_0x9a983+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x470fb1,_0x34710e)=>_0x470fb1||!!_0x34710e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x96e04b}=this['_config'],_0x28d8a3=new _0x96e04b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x42e414=_0x28d8a3['commentInputView'];return _0x28d8a3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x42e414,'value',(_0x33bd95,_0x5a6de0,_0x3ef064)=>!!_0x3ef064||_0x33bd95&&!_0x5a6de0),_0x42e414['on']('submit',(_0x260cef,_0x562df1)=>{this['fire']('addComment',_0x562df1),_0x42e414['editor']['setData']('');}),_0x42e414['on']('cancel',()=>this['focus']()),_0x42e414['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x28d8a3;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x4da7be,_0x26b665,_0xab72f6,_0x5a0349){super(_0x4da7be,_0x26b665,_0xab72f6,_0x5a0349),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2af42b=>_0x2af42b&&_0x2af42b[0x0]?_0x2af42b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x420810,_0x3e6461)=>{let _0x328426='';for(const _0x4cf174 of _0x420810)_0x328426+='<p>'+gt(_0x4cf174['content'],_0x4cf174['color'])+'</p>';return _0x3e6461?_0x328426:_0x47abc5(_0x328426,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5a0349['SuggestionView'](_0x4da7be,_0x26b665,{'formatDateTime':_0x5a0349['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 _0xb07734=this['bindTemplate'],_0xbdea04=[this['suggestionView']];return this['commentsListView']&&_0xbdea04['push'](this['commentsListView']),this['commentThreadInputView']&&_0xbdea04['push'](this['commentThreadInputView']),_0xbdea04['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xb07734['if']('isActive','ck-suggestion-wrapper--active'),_0xb07734['to']('type',_0x341ab3=>'ck-suggestion-'+_0x341ab3),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':_0xb07734['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xbdea04};}['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 gn extends _0x1af2b4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x10c79d,_0x1b9702,_0x36f73b){super(_0x10c79d),this['_model']=_0x1b9702,this['_config']=_0x36f73b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1b9702),this['acceptButton']=this['_createButton'](At(_0x10c79d,'Accept\x20suggestion'),_0x337835,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x10c79d,'Discard\x20suggestion'),_0xa4163,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1382e7(_0x10c79d,_0x1b9702['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x532950([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x32f128(),this['keystrokes']=new _0x4f848f(),this['focusCycler']=new _0x290d71({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5996d7=>_0x5996d7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x53afbe=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x53afbe['innerHTML']=this['description'],this['on']('change:description',(_0x34803f,_0x5b47ae,_0x532a09)=>{_0x53afbe['innerHTML']=_0x532a09;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5a292b=this['bindTemplate'],_0x123cd7=[{'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':_0x5a292b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5a292b['to']('authoredAt',_0x1116c9=>this['_config']['formatDateTime'](_0x1116c9))}]}]},{'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']&&_0x123cd7['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':_0x123cd7}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x177ac3,_0x168ff7,_0x179c81,_0x4ba1df,_0x30ebd9){const _0x2aa349=new _0x6449d6(this['locale']);return _0x2aa349['set']({'label':_0x177ac3,'icon':_0x168ff7,'tooltip':!0x0,'tooltipPosition':_0x30ebd9}),_0x2aa349['extendTemplate']({'attributes':{'class':_0x179c81}}),_0x2aa349['on']('execute',()=>{this['fire'](_0x4ba1df,this['_model']['id']);}),_0x2aa349;}['_setupKeyboardNavigation'](){const _0x13ae1d=this['element'];this['keystrokes']['listenTo'](_0x13ae1d);for(const _0x9f28e1 of this['focusables'])this['focusTracker']['add'](_0x9f28e1['element']),this['keystrokes']['listenTo'](_0x9f28e1['element']);this['keystrokes']['set']('enter',(_0x5d44a0,_0x4ec45c)=>{_0x13ae1d===_0x5d44a0['target']&&(this['focusCycler']['focusFirst'](),_0x4ec45c());}),this['keystrokes']['set']('esc',(_0xa35d51,_0x4f63c0)=>{_0x13ae1d!==_0xa35d51['target']&&(this['focus'](),_0x4f63c0());});}}class mn extends _0x91c494{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x42a43f,_0x2b8fb6,_0x12281d,_0x5993c2];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17fa7c){super(_0x17fa7c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a746b=this['editor']['config'];_0x4a746b['define']('trackChanges.SuggestionThreadView',fn),_0x4a746b['define']('trackChanges.SuggestionView',gn),_0x4a746b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a746b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3d4d16,_0x48377a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x293153,_0x4e42ec]of this['_handleControllerBuffer']){const _0x329911=this['_suggestionToController']['has'](_0x293153);_0x329911||_0x4e42ec?_0x329911&&_0x4e42ec&&this['_destroyController'](_0x293153):this['_initializeController'](_0x293153);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x5993c2)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d4d16,_0x48377a);}['init'](){const _0x6031c1=this['editor'],_0x4070af=_0x6031c1['plugins']['get'](Xe),_0x1a87b5=_0x6031c1['plugins']['get'](_0x12281d),_0x154cd4=_0x6031c1['plugins']['get'](_0x5993c2),_0x43b830=_0x6031c1['plugins']['get'](_0x2b8fb6);this['_addUIComponentsToFactory'](),_0x154cd4['addSourceCollector'](()=>{const _0x395125=[];for(const [_0x52cfd2,_0x46d4ba]of Array['from'](this['_suggestionToController'])){const _0x252671=_0x52cfd2['getAllAdjacentSuggestions'](),_0x1a7d0c=[];for(const _0xbc6da7 of _0x252671){if(!_0xbc6da7['isInContent'])continue;if(_0xbc6da7['isMultiRange']){_0x1a7d0c['push'](..._0xbc6da7['getRanges']());continue;}const _0x53d644=_0xbc6da7['getFirstRange']();if(_0x1a7d0c['length']>0x0){const _0x961c47=_0x1a7d0c[0x0]['getJoined'](_0x53d644);if(_0x961c47){_0x1a7d0c[0x0]=_0x961c47;continue;}}_0x1a7d0c['push'](_0x53d644);}_0x395125['push']([_0x46d4ba['view'],_0x1a7d0c]);}return _0x395125;}),this['listenTo'](_0x4070af,'suggestionLoaded',(_0x50100b,_0x1c839a)=>{this['listenTo'](_0x1c839a,'change:previous',(_0x9cf9a4,_0x229d91,_0x302f8f,_0x4ebb38)=>{_0x1c839a['isInContent']&&(null==_0x302f8f?(this['_updateController'](_0x4ebb38['head']),this['_handleSuggestionControllerDelayed'](_0x1c839a,!0x1)):(this['_updateController'](_0x302f8f['head']),null==_0x4ebb38&&this['_handleSuggestionControllerDelayed'](_0x1c839a,!0x0)));}),null!==_0x1c839a['previous']?this['_updateController'](_0x1c839a['head']):this['_handleSuggestionControllerDelayed'](_0x1c839a,!0x1);}),this['listenTo'](_0x4070af,'suggestionUnloaded',(_0x4b1667,_0x3b2be4,_0x3aa98e)=>{this['stopListening'](_0x3b2be4,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b2be4),this['_suggestionToController']['has'](_0x3b2be4)&&this['_destroyController'](_0x3b2be4),_0x3aa98e&&this['_updateController'](_0x3aa98e['head']);}),this['listenTo'](_0x4070af,'suggestionChanged',(_0x28d236,_0x54c964)=>{this['_updateController'](_0x54c964);}),this['listenTo'](_0x1a87b5,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x43b830,'addComment',(_0x2d27f8,{threadId:_0x24f8b1,isFromAdapter:_0x10d8f3})=>{if(_0x10d8f3||!_0x4070af['hasSuggestion'](_0x24f8b1))return;const _0x342487=_0x4070af['getSuggestion'](_0x24f8b1);this['_suggestionToController']['get'](_0x342487)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58e760=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe08336;for(const _0x2f7b9e in _0x58e760){const _0x4b5623=_0x2f7b9e,_0x27b53e=_0x58e760[_0x4b5623];if('trackChangesLicenseKeyValid'==_0x27b53e||'trackChangesLicenseKeyInvalid'==_0x27b53e||'trackChangesLicenseKeyExpired'==_0x27b53e||'trackChangesLicenseKeyDomainLimit'==_0x27b53e||'trackChangesLicenseKeyNotAllowed'==_0x27b53e||'trackChangesLicenseKeyEvaluationLimit'==_0x27b53e||'trackChangesLicenseKeyUsageLimit'==_0x27b53e){delete _0x58e760[_0x4b5623],_0xe08336=_0x27b53e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xe08336&&_0x58e760['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xe08336&&_0x58e760['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xe08336&&_0x58e760['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xe08336&&_0x58e760['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xe08336&&_0x58e760['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0xe08336&&_0x58e760['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x7a5503){const _0x4bf49c=this['_suggestionToController']['get'](_0x7a5503);if(!_0x4bf49c)return null;return this['editor']['plugins']['get'](_0x12281d)['getByInnerView'](_0x4bf49c['view'])||null;}['getSuggestionForAnnotation'](_0x4a76ad){const _0xba9f5d=this['_viewToController']['get'](_0x4a76ad['innerView']);return _0xba9f5d?_0xba9f5d['model']:null;}['_refreshActiveMarkers'](){const _0x295982=this['editor']['plugins']['get'](_0x12281d),_0x572411=this['editor']['plugins']['get'](Xe),_0x2462b3=Array['from'](_0x295982['activeAnnotations'],_0x4a3869=>_0x4a3869['innerView'])['filter'](_0x270c4c=>this['_viewToController']['has'](_0x270c4c)),_0x231f39=[];for(const _0x1d694d of _0x2462b3){const _0x43d686=this['_viewToController']['get'](_0x1d694d)['model']['getAllAdjacentSuggestions']();_0x231f39['push'](..._0x43d686['reduce']((_0x398dce,_0x50dccb)=>[..._0x398dce,..._0x50dccb['getMarkerNames']()],[]));}_0x572411['activeMarkers']=_0x231f39;}['_addUIComponentsToFactory'](){const _0x2fc239=this['editor'],_0x43b0a1=_0x2fc239['locale'],_0x382de0=At(_0x43b0a1,'Track\x20changes'),_0x2c39b6=new _0x467e60([{'type':'switchbutton','model':new _0x54aeb3({'withText':!0x0,'isToggleable':!0x0,'label':_0x382de0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x54aeb3({'withText':!0x0,'label':At(_0x43b0a1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x54aeb3({'withText':!0x0,'label':At(_0x43b0a1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x54aeb3({'withText':!0x0,'label':At(_0x43b0a1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x54aeb3({'withText':!0x0,'label':At(_0x43b0a1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2fc239['plugins']['has']('TrackChangesPreview')&&_0x2c39b6['addMany']([{'type':'separator'},{'type':'button','model':new _0x54aeb3({'withText':!0x0,'label':At(_0x43b0a1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4451b3 of _0x2c39b6)if(En(_0x4451b3)){const _0x494b00=_0x2fc239['commands']['get'](_0x4451b3['model']['commandName']);_0x4451b3['model']['bind']('isOn','isEnabled')['to'](_0x494b00,'value','isEnabled');}_0x2fc239['ui']['componentFactory']['add']('trackChanges',_0x52d289=>this['_createToolbarButton'](_0x52d289,_0x2c39b6,_0x382de0)),_0x2fc239['ui']['componentFactory']['add']('menuBar:trackChanges',_0x37c7be=>this['_createMenuBarMenu'](_0x37c7be,_0x2c39b6,_0x382de0));}['_createToolbarButton'](_0xcdda83,_0x3a535f,_0x2bb5b8){const _0x10c2d6=_0x5e205d(_0xcdda83,_0x2cda0d),_0x2c192c=this['editor']['commands']['get']('trackChanges');_0x10c2d6['buttonView']['set']({'tooltip':_0x2bb5b8,'label':_0x2bb5b8,'icon':_0x142dfa}),_0x10c2d6['buttonView']['bind']('isOn')['to'](_0x2c192c,'value'),_0x10c2d6['buttonView']['on']('execute',()=>{_0x2c192c['execute'](),this['editor']['editing']['view']['focus']();}),_0x423175(_0x10c2d6,_0x3a535f,{'role':'menu'});const _0x47e2a9=[];for(const _0x2bba7 of _0x3a535f)En(_0x2bba7)&&_0x47e2a9['push'](this['editor']['commands']['get'](_0x2bba7['model']['commandName']));const _0x1b7c9c=_0x10c2d6['buttonView'];return _0x1b7c9c['actionView']['unbind']('isEnabled'),_0x1b7c9c['arrowView']['unbind']('isEnabled'),_0x1b7c9c['actionView']['bind']('isEnabled')['to'](_0x2c192c,'isEnabled'),_0x1b7c9c['arrowView']['bind']('isEnabled')['toMany'](_0x47e2a9,'isEnabled',(..._0x39ccc8)=>_0x39ccc8['some'](_0x5cadb2=>_0x5cadb2)),_0x10c2d6['on']('execute',_0x4378d5=>{this['editor']['execute'](_0x4378d5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10c2d6;}['_createMenuBarMenu'](_0x35d5e4,_0xdbbb73,_0x16b992){const _0x4a26a4=new _0x1d2186(_0x35d5e4),_0x22e09b=this['editor']['commands']['get']('trackChanges');_0x4a26a4['buttonView']['set']({'label':_0x16b992,'icon':_0x142dfa});const _0x3fc725=new _0xded53f(_0x35d5e4);for(const _0x2cbc2b of _0xdbbb73){if('separator'==_0x2cbc2b['type']){_0x3fc725['items']['add'](new _0x19fed4(_0x35d5e4));continue;}const _0x49b7c9=new _0x12c821(_0x35d5e4,_0x4a26a4),_0x40a362=new _0x216298(_0x35d5e4),_0x2604b0=_0x2cbc2b['model'];_0x40a362['bind'](...Object['keys'](_0x2604b0))['to'](_0x2604b0),_0x40a362['delegate']('execute')['to'](_0x4a26a4),_0x40a362['on']('execute',()=>{this['editor']['execute'](_0x2604b0['commandName']),this['editor']['editing']['view']['focus']();}),_0x49b7c9['children']['add'](_0x40a362),_0x3fc725['items']['add'](_0x49b7c9);}return _0x4a26a4['bind']('isEnabled')['to'](_0x22e09b,'isEnabled'),_0x4a26a4['panelView']['children']['add'](_0x3fc725),_0x4a26a4;}['_initializeController'](_0x45fb11){const _0x40818f=this['editor'],_0x5f430e=_0x40818f['config'],_0x3572d0=_0x40818f['plugins']['get'](_0x12281d),_0x13a23b=_0x40818f['plugins']['get'](_0x2b8fb6),_0x2dd642=_0x40818f['plugins']['get'](_0x5993c2),_0x556609=_0x40818f['plugins']['get'](_0x42a43f)['me'],_0x1347e4=_0x5f430e['get']('trackChanges')['SuggestionThreadView'],_0x5f1c85=_0x5f430e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2cb124,CommentThreadInputView:_0x558030}=_0x40818f['plugins']['get']('CommentsUI');let _0x57d31a,_0x2477fc,_0x394f3c;this['_annotationViews']['has'](_0x45fb11['id'])?(_0x2477fc=this['_annotationViews']['get'](_0x45fb11['id']),_0x57d31a=_0x2477fc['mainView']):(_0x57d31a=new _0x1347e4(_0x40818f['locale'],_0x45fb11,_0x556609,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5f430e['get']('comments.editorConfig'),'licenseKey':_0x5f430e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5f430e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5f430e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5f430e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x36ff6b(_0x5f430e['get']('locale'),_0x40818f['locale']),'CommentView':_0x5f430e['get']('comments')['CommentView'],'CommentsListView':_0x2cb124,'CommentThreadInputView':_0x558030,'SuggestionView':_0x5f1c85}),_0x57d31a['suggestionView']['acceptButton']['on']('execute',()=>{_0x40818f['editing']['view']['focus']();}),_0x57d31a['suggestionView']['discardButton']['on']('execute',()=>{_0x40818f['editing']['view']['focus']();}),_0x2477fc=_0x3572d0['createAnnotationView'](this['editor']['locale'],_0x57d31a),_0x2477fc['bind']('isDirty')['to'](_0x57d31a,'isDirty'),_0x2477fc['bind']('length')['to'](_0x57d31a),_0x2477fc['bind']('type')['to'](_0x57d31a,'type',_0x514e42=>'suggestion-'+_0x514e42),_0x57d31a['on']('escape',()=>{_0x394f3c['fire']('escape');}),this['_annotationViews']['set'](_0x45fb11['id'],_0x2477fc));const _0x13a043=_0x13a23b['createCommentThreadController'](_0x45fb11['commentThread'],_0x57d31a),_0x294eee=new hn(_0x40818f,_0x45fb11,_0x57d31a,_0x13a043),_0x10aa8f=_0x45fb11['getAllAdjacentSuggestions']()['filter'](_0x2ebec6=>_0x2ebec6['isInContent']);_0x57d31a['descriptionParts']=_0x40818f['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x10aa8f),this['_suggestionToController']['set'](_0x45fb11,_0x294eee),this['_viewToController']['set'](_0x57d31a,_0x294eee);const _0x454ad8=()=>{const _0x47689f=[],_0x283b87=_0x45fb11['getAllAdjacentSuggestions']()['filter'](_0x48644d=>_0x48644d['isInContent']);for(const _0x556375 of _0x283b87)_0x47689f['push'](..._0x556375['getMarkers']());return _0x30e3b4(_0x40818f['editing'],_0x47689f);};_0x394f3c=_0x3572d0['createAnnotation']({'view':_0x2477fc,'target':_0x454ad8,'type':()=>'suggestion-'+_0x294eee['view']['type'],'isVisible':!!_0x454ad8()}),_0x13a23b['_bindAnnotationToEditors'](_0x57d31a,_0x394f3c),_0x3572d0['add'](_0x394f3c),_0x2dd642['registerAnnotation'](_0x394f3c);}['_destroyController'](_0x5d2f29){const _0x38eced=this['editor']['plugins']['get'](_0x2b8fb6),_0xb16d37=this['editor']['plugins']['get'](_0x12281d),_0x489983=this['_suggestionToController']['get'](_0x5d2f29),_0x3f457d=_0x489983['view'],_0x2fb6c9=_0xb16d37['getByInnerView'](_0x3f457d);_0x38eced['_unbindEditors'](_0x3f457d),_0x2fb6c9&&_0xb16d37['remove'](_0x2fb6c9),this['_suggestionToController']['delete'](_0x5d2f29),this['_viewToController']['delete'](_0x3f457d),_0x489983['destroy']();}['_updateController'](_0x2e7f88){if(!_0x2e7f88['isInContent']||!this['_suggestionToController']['has'](_0x2e7f88))return;const _0x81bad3=this['editor']['plugins']['get'](Xe),_0x321342=this['_suggestionToController']['get'](_0x2e7f88),_0x1640bf=_0x2e7f88['getAllAdjacentSuggestions']();_0x321342['view']['descriptionParts']=_0x81bad3['descriptionFactory']['getDescriptions'](_0x1640bf);}['destroy'](){for(const _0xe4089a of this['_suggestionToController']['keys']())this['_destroyController'](_0xe4089a);for(const _0x20f54d of this['_annotationViews']['values']())_0x20f54d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x41bdad){return'model'in _0x41bdad;}class Tn extends _0x91c494{static get['requires'](){return[Xe,mn,_0x6e1d7b];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2b587b){this['editor']['plugins']['get'](Xe)['adapter']=_0x2b587b;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x39f6fe){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x39f6fe);}['getSuggestions']({skipNotAttached:_0x318aeb=!0x1,toJSON:_0x571919=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x318aeb,'toJSON':_0x571919});}['getSuggestion'](_0x1e3992){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x1e3992);}}const _n=['Pagination'];class pn extends _0x91c494{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x126d57=this['editor'];if(_0x126d57['config']['define']('trackChangesData.editorCreator',_0x34de33=>{const _0x9c632a=_0x126d57['model']['document']['getRootNames']()['reduce']((_0x11e5cd,_0x254dc4)=>(_0x11e5cd[_0x254dc4]='',_0x11e5cd),{});return _0x126d57['constructor']['create'](_0x9c632a,_0x34de33);}),'function'!=typeof _0x126d57['config']['get']('trackChangesData')['editorCreator'])throw new _0x43ada4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3d003f){return bn(this['editor'],!0x0,_0x3d003f);}['getDataWithDiscardedSuggestions'](_0x97ae4e){return bn(this['editor'],!0x1,_0x97ae4e);}}class Ln extends _0x91c494{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42998c){function _0x154e85(_0x6e59e3){return _0x6e59e3['map'](_0x397ba4=>String['fromCharCode'](_0x397ba4))['join']('');}super(_0x42998c),this['result']='end',_0x42998c[_0x154e85([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x154e85([0x76,0x69,0x65,0x77])][_0x154e85([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x154e85([0x61,0x75,0x74,0x6f]),_0x42998c[_0x154e85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x154e85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x154e85([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x154e85([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x154e85([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 In(_0x158cb6){return void 0x0!==_0x158cb6['getRootsAttributes'];}async function bn(_0x31c674,_0x2bc012,_0x3bea1c){const _0x5c85e1=_0x4b048c(_0x31c674,_n);if(_0x5c85e1['plugins']['push'](Xe,Ln),In(_0x31c674)){_0x5c85e1['roots']=Object['create'](null);for(const _0x4809e4 of _0x31c674['model']['document']['getRootNames']())_0x5c85e1['roots'][_0x4809e4]={'modelAttributes':_0x31c674['getRootAttributes'](_0x4809e4)};}const _0x24fe86=document['createDocumentFragment'](),_0x27c130=_0x31c674['config']['get']('trackChangesData')['editorCreator'],_0x53c0a3=await _0x27c130(_0x5c85e1,()=>function(_0x3ff48c){const _0xbce399=document['createElement']('div');return _0x3ff48c['appendChild'](_0xbce399),_0xbce399;}(_0x24fe86));!function(_0x524dc4,_0x31471f){const _0x34f62d=_0x524dc4['model']['document']['getRootNames']()['reduce']((_0xf28277,_0x1babb8)=>(_0xf28277[_0x1babb8]=_0x524dc4['data']['get']({'rootName':_0x1babb8}),_0xf28277),{}),_0x58cc29=_0x524dc4['plugins']['get']('Users')['users']['map'](_0x303977=>({'id':_0x303977['id'],'name':_0x303977['name']})),_0x2cd820=_0x524dc4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x401538=_0x524dc4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x189a67=_0x31471f['plugins']['get']('Users'),_0x1c4f0e=_0x31471f['plugins']['get']('TrackChangesEditing'),_0x363a8f=_0x31471f['plugins']['get']('CommentsRepository');for(const _0xcf5b7b of _0x363a8f['getCommentThreads']())_0xcf5b7b['remove']();for(const _0x4a7f5b of _0x58cc29)_0x189a67['getUser'](_0x4a7f5b['id'])||_0x189a67['addUser'](_0x4a7f5b);_0x189a67['me']||_0x189a67['useAnonymousUser']();for(const _0x3e144b of _0x401538)_0x363a8f['addCommentThread'](_0x3e144b);for(const _0x503560 of _0x2cd820)_0x1c4f0e['addSuggestionData'](_0x503560);_0x31471f['data']['set'](_0x34f62d);}(_0x31c674,_0x53c0a3),_0x53c0a3['execute'](_0x2bc012?'acceptAllSuggestions':'discardAllSuggestions');const _0x3b6b10=In(_0x53c0a3)?_0x53c0a3['getFullData'](_0x3bea1c):_0x53c0a3['data']['get'](_0x3bea1c);return await _0x53c0a3['destroy'](),_0x3b6b10;}class An extends _0x1af2b4{['options'];constructor(_0x2e48b0,_0x5515bb){super(_0x2e48b0),this['options']=_0x5515bb,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'](_0x4857e9,_0x25610d){if(!this['element'])return;const _0x1e6b8f=[];for(const [_0x4e9662,_0x2a4fd0]of _0x4857e9){const _0x509403=document['createElement']('div');_0x509403['setAttribute']('data-ck-root-name',_0x4e9662),_0x509403['className']=_0x2a4fd0['classes']+'\x20ck-track-changes-preview__root-container',_0x509403['innerHTML']=_0x2a4fd0['content'],_0x1e6b8f['push'](_0x509403);}_0x25610d(this['element'],_0x1e6b8f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x5833eb{constructor(_0x32dc37){super(_0x32dc37),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x371ec4=this['editor'],_0x234ed7=_0x371ec4['locale'],_0x1c0117=_0x371ec4['plugins']['get']('Dialog');let _0x179d31;const _0x146735=function(_0xe6577c){const _0x1af140={};if('editables'in _0xe6577c['ui']['view']){for(const [_0x49fa57,_0x3e6b28]of Object['entries'](_0xe6577c['ui']['view']['editables']))_0x1af140[_0x49fa57]=_0x3e6b28['element'];}else _0x1af140[_0xe6577c['model']['document']['getRootNames']()[0x0]]=_0xe6577c['ui']['view']['editable']['element'];return _0x1af140;}(_0x371ec4),_0x13e361=function(_0x4a432e){let _0x1c6999=0x0;for(const _0xaf1e48 of Object['values'](_0x4a432e))_0x1c6999=Math['max'](_0x1c6999,_0xaf1e48['getBoundingClientRect']()['width']);let _0x59b2d9=0x0;for(const _0x3571fa of Object['values'](_0x4a432e))_0x59b2d9+=_0x3571fa['getBoundingClientRect']()['height'];const _0x56defb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x443672=Math['min'](_0x59b2d9,_0x56defb);return{'width':_0x1c6999,'height':_0x443672};}(_0x146735);_0x1c0117['show']({'id':'finalContentPreview','title':At(_0x234ed7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x234ed7,{'dialogRects':_0x13e361}),'onHide':()=>{_0x179d31['detachFromDom']();},'onShow':()=>{_0x371ec4['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x40d737=>{const _0x4738=this['_standarizeRootsData'](_0x40d737,_0x371ec4,_0x146735);_0x1c0117['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4738,_0x371ec4['config']['get']('trackChanges.preview.renderFunction'));}),_0x179d31=new _0x1ca9ba(_0x234ed7,[_0x1c0117['view']]),_0x179d31['attachToDom'](),_0x179d31['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x371ec4['once']('destroy',()=>{_0x179d31['detachFromDom']();});const _0x10920=_0x1c0117['view']['headerView']['class'];_0x1c0117['view']['headerView']['class']=_0x10920?_0x10920+'\x20ck-reset_all':'ck-reset_all',_0x1c0117['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1c0117['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5f4011=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4d54e5=_0x5f4011['previewMode'],_0xa824a3={};if('$labels'===_0x4d54e5){for(const _0x45d7d7 of _0x5f4011['getMergeFieldsIds']())_0xa824a3[_0x45d7d7]=_0x5f4011['getLabel'](_0x45d7d7)||_0x45d7d7;}else{const _0x4f6e0f='$defaultValues'===_0x4d54e5?_0x5f4011['getDefaultValues']():_0x5f4011['getDataSetValues'](_0x4d54e5,!0x0);for(const _0x3444a7 of Object['entries'](_0x4f6e0f)){const [_0x296e7a,_0x5a216c]=_0x3444a7;_0xa824a3[_0x296e7a]=null!==_0x5a216c?_0x5a216c:_0x5f4011['getLabel'](_0x296e7a)||_0x296e7a;}}return{'mergeFieldsData':_0xa824a3};}['_standarizeRootsData'](_0x5dbe4c,_0x4b40ad,_0x529012){let _0xbee241;if('string'==typeof _0x5dbe4c){const _0x16f533=_0x4b40ad['model']['document']['getRootNames']()[0x0];_0xbee241={[_0x16f533]:_0x5dbe4c};}else _0xbee241=_0x5dbe4c;const _0x545555=this['_fixMediaEmbeds'](_0xbee241,_0x4b40ad),_0x3064ae=function(_0x29099c,_0x3b0d94){for(const [_0x1efe47,_0x325731]of _0x29099c)_0x325731['classes']=_0x3b0d94[_0x1efe47]['classList']['value']['replace']('ck-focused','');return _0x29099c;}(this['_sortRoots'](_0x4b40ad)['reduce']((_0x49d0b3,_0x5c71d8)=>(_0x49d0b3['push']([_0x5c71d8,{'content':_0x545555[_0x5c71d8],'classes':''}]),_0x49d0b3),[]),_0x529012);return _0x3064ae;}['_fixMediaEmbeds'](_0x18997c,_0x32abb8){if(!_0x32abb8['plugins']['has']('MediaEmbedEditing'))return _0x18997c;const _0x3b29c6=_0x32abb8['plugins']['get']('MediaEmbedEditing');for(const [_0x564239,_0x1f76f1]of Object['entries'](_0x18997c)){const _0x32ac50=document['createElement']('div');_0x32ac50['innerHTML']=_0x1f76f1,(_0x32ac50['querySelectorAll']('figure.media')['forEach'](_0x293dee=>{const _0x2d1c41=_0x293dee['querySelector']('oembed');if(_0x2d1c41){const _0x582910=_0x2d1c41['getAttribute']('url');if(_0x582910){const _0x2e0469=_0x3b29c6['registry']['getMediaViewElement'](new et(_0x32abb8['editing']['view']['document']),_0x582910,{'elementName':'','renderForEditingView':!0x0}),_0x10a0de=document['createElement']('div');_0x10a0de['classList']['add']('ck-media__wrapper'),_0x2e0469['render'](_0x10a0de,_0x32abb8['editing']['view']['domConverter']),_0x2d1c41['replaceWith'](_0x10a0de);}}}),_0x18997c[_0x564239]=_0x32ac50['innerHTML']);}return _0x18997c;}['_sortRoots'](_0x336357){if(!function(_0x4c501a){return void 0x0!==_0x4c501a['getRootsAttributes'];}(_0x336357))return _0x336357['model']['document']['getRootNames']();const _0x236821=[],_0x55f672=new Map();for(const _0x300dd1 of _0x336357['model']['document']['getRootNames']()){const _0x5da840=_0x336357['editing']['view']['getDomRoot'](_0x300dd1)['getClientRects']()['item'](0x0);_0x236821['push'](_0x300dd1),_0x55f672['set'](_0x300dd1,_0x5da840);}return _0x236821['sort']((_0x52f26b,_0x3b4292)=>{const _0x3e4881=_0x55f672['get'](_0x52f26b),_0x256142=_0x55f672['get'](_0x3b4292);return _0x3e4881['y']-_0x256142['y']||_0x3e4881['x']-_0x256142['x'];}),_0x236821;}}class Cn extends _0x91c494{static get['requires'](){return[pn,_0x16f007];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x958f00){super(_0x958f00),_0x958f00['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x958f00['config']['define']('trackChanges.preview.renderFunction',(_0x1a3d41,_0x7a600b)=>{for(const _0x42d51f of _0x7a600b)_0x1a3d41['appendChild'](_0x42d51f);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};