@ckeditor/ckeditor5-track-changes 48.5.0-alpha.2 → 48.5.0-alpha.3

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 _0x319139,PendingActions as _0x253707,Plugin as _0x26ff96}from'@ckeditor/ckeditor5-core';import{Annotations as _0x2ff334,Comments as _0x57912a,CommentsRepository as _0x5b43d8,EditorAnnotations as _0x55f346}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x18ab5c,Collection as _0x30ba87,FocusTracker as _0x3fe02d,KeystrokeHandler as _0x564f03,ObservableMixin as _0xe77ac2,getEnvKeystrokeText as _0xff45bc,insertToPriorityArray as _0x2cb8a3,logWarning as _0x12c767,priorities as _0x224aaf,uid as _0x3a663f}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x4161ec,IconCancel as _0x2e7ed3,IconCheck as _0x288bec,IconSparkle as _0x319f9d,IconTrackChanges as _0x1af545}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x3aee1a,Dialog as _0x5b9b2d,FocusCycler as _0x26183e,ListSeparatorView as _0x5e489e,MenuBarMenuListItemButtonView as _0x388c35,MenuBarMenuListItemView as _0x2f78b5,MenuBarMenuListView as _0x310144,MenuBarMenuView as _0x3f7048,SplitButtonView as _0x171d98,UIModel as _0x4fa1ce,View as _0x394804,ViewCollection as _0x305bf1,addListToDropdown as _0x2ccfbe,createDropdown as _0x151f69,normalizeColorOptions as _0x782781}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x56c57f,CollaborationUserColor as _0x35e7cc,FOCUS_ANNOTATION_KEYSTROKE as _0x3b00e4,LateFocusButtonView as _0x2436d1,PillView as _0x505b21,SuggestionsConversion as _0x3338e0,User as _0x559f2b,UserView as _0x3b76d0,Users as _0x1d4274,fixElementSuggestionRange as _0x49ec1a,getAllMarkersDomElementsSorted as _0x3ad40c,getDateTimeFormatter as _0x1e6b48,hashObject as _0x1eefb7,isInvalidAttributeOperation as _0x272ba7,sanitizeEditorConfig as _0x5539b0,setupThreadKeyboardNavigation as _0x6a2c0e,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ht,ClipboardPipeline as gt}from'@ckeditor/ckeditor5-clipboard';import{Delete as ft,Input as mt}from'@ckeditor/ckeditor5-typing';import{Enter as Et}from'@ckeditor/ckeditor5-enter';var Tt=class extends _0x319139{['_enabledCommands'];constructor(_0x941e84,_0x33e008){super(_0x941e84),this['_enabledCommands']=_0x33e008,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 _0x136489 of this['editor']['commands']['commands']())_0x136489['affectsData']&&!this['_enabledCommands']['has'](_0x136489)&&_0x136489['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x53fd73 of this['editor']['commands']['commands']())_0x53fd73['affectsData']&&!this['_enabledCommands']['has'](_0x53fd73)&&_0x53fd73['clearForceDisabled']('TrackChangesCommand');}},_t=class extends _0x319139{_suggestions;constructor(_0x15c329,_0x2b8c04){super(_0x15c329),this['_suggestions']=_0x2b8c04,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x189254){const _0x3a51d2=this['_suggestions']['get'](_0x189254);if(!_0x3a51d2)throw new _0x18ab5c('track-changes-accept-suggestion-not-found',this);const _0x3f589c=_0x3a51d2['getRanges']();this['editor']['model']['canEditAt'](_0x3f589c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3a51d2);}},pt=class extends _0x319139{_suggestions;constructor(_0xa7814d,_0x59aeaf){super(_0xa7814d),this['_suggestions']=_0x59aeaf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x295d7f){const _0x4e9780=this['_suggestions']['get'](_0x295d7f);if(!_0x4e9780)throw new _0x18ab5c('track-changes-discard-suggestion-not-found',this);const _0x5b8f21=_0x4e9780['getRanges']();this['editor']['model']['canEditAt'](_0x5b8f21)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4e9780);}};function Lt(_0x399975,_0x33b2df){let _0x144439='';return _0x144439+=_0x399975['split']('*')['map']((_0x5bf0b0,_0x26f027)=>_0x26f027%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+It(_0x5bf0b0)+'</span>':It(_0x5bf0b0))['join'](''),_0x33b2df&&(_0x144439+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x33b2df['value']+'\x22\x20title=\x22'+_0x33b2df['title']+'\x22></span>'),_0x144439;}function It(_0x45a1f7){const _0x3ac253=document['createElement']('span');return _0x3ac253['innerText']=_0x45a1f7,_0x3ac253['innerHTML'];}function At(_0x4520a8){return _0x4520a8['sort']((_0x5abcc4,_0x50213d)=>'attribute'===_0x5abcc4['type']&&'attribute'!==_0x50213d['type']?-0x1:'attribute'!==_0x5abcc4['type']&&'attribute'===_0x50213d['type']?0x1:'deletion'==_0x5abcc4['type']&&'deletion'!=_0x50213d['type']?-0x1:'deletion'!=_0x5abcc4['type']&&'deletion'==_0x50213d['type']?0x1:0x0);}function bt(_0x516df3,_0x1bd564){let _0x5a0b4d,_0x2e2922=0x0;const _0x289ff1=[],_0x44db65=_0x1bd564['schema'];for(;_0x2e2922<_0x516df3['length'];){const _0x3d74dc=_0x516df3[_0x2e2922],_0x106b41=_0x516df3[_0x2e2922+0x1];_0x5a0b4d||(_0x5a0b4d=_0x1bd564['createPositionBefore'](_0x3d74dc)),kt(_0x1bd564,_0x3d74dc,_0x106b41)||(_0x289ff1['push'](_0x1bd564['createRange'](_0x5a0b4d,_0x44db65['isObject'](_0x3d74dc)?_0x1bd564['createPositionAfter'](_0x3d74dc):_0x1bd564['createPositionAt'](_0x3d74dc,'end'))),_0x5a0b4d=null),_0x2e2922++;}return _0x289ff1;}function kt(_0x163e10,_0x2a244a,_0x39879e){if(!_0x39879e)return!0x1;const _0x4c8014=_0x163e10['createPositionAfter'](_0x2a244a),_0x2163c5=_0x163e10['createPositionBefore'](_0x39879e);return _0x4c8014['isTouching'](_0x2163c5);}function Ct(_0xef3e5f,_0x2d5680,_0x21c9fa){for(;_0x21c9fa['length'];){const _0x2e31d3=_0x21c9fa['splice'](0x0,0x64);_0xef3e5f['change'](()=>{for(const _0x5e79be of _0x2e31d3)_0x5e79be['isInContent']&&_0x2d5680['execute'](_0x5e79be['id']);});}}var Rt=class extends _0x319139{['_command'];_suggestions;constructor(_0x17d3c9,_0xdd6c12,_0x40639c){super(_0x17d3c9),this['_command']=_0xdd6c12,this['_suggestions']=_0x40639c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x586527=Array['from'](this['_suggestions']['values']())['some'](_0x4361dd=>_0x4361dd['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x586527;}execute(){const _0x3bfad1=At(Array['from'](this['_suggestions']['values']()));for(const _0x3515d0 of _0x3bfad1){const _0x3dd530=_0x3515d0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3dd530))return;}Ct(this['editor']['model'],this['_command'],_0x3bfad1);}},yt=class extends _0x319139{['_command'];_suggestions;_selectedSuggestions;constructor(_0x4b8598,_0x40850d,_0x5e687f){super(_0x4b8598),this['_command']=_0x40850d,this['_suggestions']=_0x5e687f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x94805d=this['editor']['model']['document']['selection'],_0x164c78=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x431bed,_0x5bacf8){const _0x4b16fd=Array['from'](_0x431bed['getRanges']()),_0xaf906b=new Set();for(const _0x341ca9 of _0x5bacf8)if(_0x341ca9['isInContent']){for(const _0x1884dc of _0x4b16fd)for(const _0x5aeb65 of _0x341ca9['getRanges']())(_0x1884dc['isIntersecting'](_0x5aeb65)||_0x431bed['isCollapsed']&&!_0x341ca9['isMultiRange']&&_0x341ca9['next']&&_0x5aeb65['end']['isTouching'](_0x1884dc['start']))&&_0xaf906b['add'](_0x341ca9);}return _0xaf906b;}(_0x94805d,_0x164c78),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x456286=At(Array['from'](this['_selectedSuggestions']));for(const _0x4a7067 of _0x456286){const _0x8999e5=_0x4a7067['getRanges']();if(!this['editor']['model']['canEditAt'](_0x8999e5))return;}Ct(this['editor']['model'],this['_command'],_0x456286);}};const Nt=/* #__PURE__ -- @preserve */
24
- _0xe77ac2();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x226800,_0x742c2f){super(),this['id']=_0x742c2f['id'],this['type']=_0x742c2f['type'],this['subType']=_0x742c2f['subType']||null,this['author']=_0x742c2f['author'],this['creator']=_0x742c2f['creator']||_0x742c2f['author'],this['data']=null,this['_originalSuggestionId']=_0x742c2f['originalSuggestionId']||null,this['_model']=_0x226800,this['_onAccept']=_0x742c2f['onAccept'],this['_onDiscard']=_0x742c2f['onDiscard'],this['_onAttributesChange']=_0x742c2f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x742c2f['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x137e66=this;for(;_0x137e66['previous'];)_0x137e66=_0x137e66['previous'];return _0x137e66;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x100c27){this['_markerNames']['add'](_0x100c27);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x1ae006=>this['_model']['markers']['get'](_0x1ae006))['filter'](_0x589ac6=>_0x589ac6);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x6aa052=>{for(const _0x5a697a of this['getMarkers']())_0x6aa052['removeMarker'](_0x5a697a);}),this['_markerNames']['clear']();}['removeMarker'](_0x3b4a36){this['_model']['change'](_0x58a7e6=>{_0x58a7e6['removeMarker'](_0x3b4a36);}),this['_markerNames']['delete'](_0x3b4a36);}['addRange'](_0x2935cb){const _0x363302='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x363302),this['_model']['change'](_0x1f7803=>{_0x1f7803['addMarker'](_0x363302,{'range':_0x2935cb,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x487b07){for(const _0x15ecd1 of this['getRanges']())if(_0x15ecd1['isIntersecting'](_0x487b07))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x3f67e8=>_0x3f67e8['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x561c07,_0x9c9084)=>[..._0x561c07,..._0x9c9084['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0xd8ac09=this['getRanges']();if(0x1!=_0xd8ac09['length'])return null;const _0x4b222f=_0xd8ac09[0x0],_0x1cd3e0=_0x4b222f['start']['nodeAfter'],_0x5b09ff=_0x4b222f['end']['nodeBefore'];return _0x1cd3e0 instanceof it?_0x1cd3e0!=_0x5b09ff?null:_0x1cd3e0: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 _0xf588ed=[];let _0x4feb40=this['head'];for(;_0x4feb40;)_0xf588ed['push'](_0x4feb40),_0x4feb40=_0x4feb40['next'];return _0xf588ed;}setAttribute(_0xf983b1,_0x2e7f34){const _0x22da3a=at(this['attributes']);ut(_0x22da3a,_0xf983b1,_0x2e7f34),ct(_0x22da3a,this['attributes'])||(this['attributes']=_0x22da3a,this['_onAttributesChange'](_0x22da3a));}removeAttribute(_0x8ceff0){const _0x5bbcc3=at(this['attributes']);dt(_0x5bbcc3,_0x8ceff0),ct(_0x5bbcc3,this['attributes'])||(this['attributes']=_0x5bbcc3,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 _0x3a663f()['substr'](0x1,0x5);}};function Mt(_0x32f4b0,_0x36b440,_0x1adc29){const _0x1fafd0=_0x32f4b0['t'],t=_0x32f4b0['t'];switch(_0x36b440){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',_0x1adc29);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1adc29);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1adc29);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1adc29);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1adc29);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',_0x1adc29);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1adc29);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',_0x1adc29);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1adc29);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1adc29);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1adc29);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1adc29);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1adc29);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1adc29);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1adc29);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1adc29);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1adc29);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1adc29);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1adc29);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1adc29);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1adc29);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1adc29);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1adc29);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1adc29);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1adc29);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'},_0x1adc29);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1adc29);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1adc29);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1adc29);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1adc29);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1adc29);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1adc29);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1adc29);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x1adc29);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x1adc29);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1adc29);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1adc29);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1adc29);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1adc29);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'},_0x1adc29);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1adc29);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'},_0x1adc29);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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});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'},_0x1adc29);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1adc29);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'},_0x1adc29);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1adc29);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'},_0x1adc29);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1adc29);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1adc29);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1adc29);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1adc29);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1adc29);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'},_0x1adc29);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1adc29);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x1fafd0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1adc29);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1fafd0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1adc29);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1adc29);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'},_0x1adc29);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'},_0x1adc29);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'},_0x1adc29);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x36b440;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0xb21430,_0x17845d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xb21430,this['_locale']=_0x17845d;}getDescriptions(_0x4239a9){const _0x6bccd7=[],_0x40c4c3=new Set(),_0x54456f=new Set();for(let _0x5a3307=0x0;_0x5a3307<_0x4239a9['length'];_0x5a3307++){const _0x397132=_0x4239a9[_0x5a3307];if(!_0x397132['isInContent'])continue;const _0x4e985a=this['_handleCustomCallbackDescription'](_0x397132);if(_0x4e985a){if(null!=_0x397132['subType']){if(_0x40c4c3['has'](_0x397132['subType']))continue;_0x40c4c3['add'](_0x397132['subType']);}_0x6bccd7['push'](_0x4e985a);}else{if('attribute'==_0x397132['type']){const _0x1fb306=_0x397132['data']['key'];if(_0x54456f['has'](_0x1fb306))continue;_0x54456f['add'](_0x397132['data']['key']),'$elementName'==_0x1fb306?this['_handleRenameSuggestionDescription'](_0x6bccd7,_0x397132):this['_handleAttributeSuggestionDescription'](_0x6bccd7,_0x397132);continue;}'insertion'!=_0x397132['type']&&'deletion'!=_0x397132['type']||this['_handleInsertRemoveSuggestionDescription'](_0x6bccd7,_0x397132,_0x4239a9[_0x5a3307+0x1]);}}return this['_resolveDescriptionItems'](_0x6bccd7);}registerDescriptionCallback(_0x2181a8){this['_customCallbacks']['push'](_0x2181a8);}registerElementLabel(_0x49bd14,_0x65694a,_0x2113ea=_0x224aaf['normal']){'function'==typeof _0x49bd14?_0x2cb8a3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49bd14,'label':_0x65694a,'priority':_0x2113ea}):this['_itemLabels']['set'](_0x49bd14,_0x65694a);}registerAttributeLabel(_0x5e0f96,_0xdf0170){this['_attributeLabels']['set'](_0x5e0f96,_0xdf0170);}getItemLabel(_0x4e856c,_0x1a07dd=0x1){let _0x582e7a;for(const _0x39c9c6 of this['_itemLabelsCallbacks'])if(_0x39c9c6['matchingCallback'](_0x4e856c)){_0x582e7a=_0x39c9c6['label'];break;}return _0x582e7a||(_0x582e7a=this['_itemLabels']['get'](_0x4e856c['name'])),_0x582e7a?_0x582e7a(_0x1a07dd):0x1!==_0x1a07dd?_0x1a07dd+'\x20'+_0x4e856c['name']+'s':''+_0x4e856c['name'];}_addDescriptionItems(_0x32976a,_0x319da4){const _0x1b0cb4=_0x319da4['getFirstRange']()['getWalker'](),_0x47a5fe='insertion'==_0x319da4['type']?'add':'remove';for(const _0x426584 of _0x1b0cb4){const _0x20c42f=_0x426584['item'],_0x3c8354=_0x32976a[_0x32976a['length']-0x1];if(_0x20c42f['is']('$textProxy'))_0x3c8354&&_0x3c8354['type']['indexOf']('Container')>-0x1&&_0x32976a['pop'](),_0x3c8354&&'text'==_0x3c8354['type']?_0x3c8354[_0x47a5fe]+=_0x20c42f['data']:_0x32976a['push']({'type':'text','add':'add'==_0x47a5fe?_0x20c42f['data']:'','remove':'remove'==_0x47a5fe?_0x20c42f['data']:''});else{if(this['_schema']['isObject'](_0x20c42f)){const _0x2a1065=_0x20c42f;if(_0x3c8354&&_0x3c8354['type']['indexOf']('Container')>-0x1&&_0x32976a['pop'](),'elementEnd'==_0x426584['type'])continue;_0x3c8354&&_0x3c8354['type']==_0x47a5fe+'Object'&&_0x3c8354['element']['name']==_0x2a1065['name']?_0x3c8354['quantity']++:_0x32976a['push']({'type':_0x47a5fe+'Object','element':_0x2a1065,'quantity':0x1}),_0x1b0cb4['skip'](_0x19a0a4=>!('elementEnd'==_0x19a0a4['type']&&_0x19a0a4['item']==_0x20c42f));}else{if(this['_schema']['checkChild'](_0x20c42f,'$text')||_0x20c42f['is']('element','softBreak')){const _0x12d476=_0x20c42f;if('add'==_0x47a5fe&&'elementStart'==_0x426584['type']||'remove'==_0x47a5fe&&'elementEnd'==_0x426584['type'])continue;if(_0x3c8354&&-0x1==_0x3c8354['type']['indexOf']('Container')){'text'==_0x3c8354['type']&&(_0x3c8354[_0x47a5fe]+='\x0a');continue;}let _0x4b2be2;if(_0x4b2be2='add'==_0x47a5fe?_0x12d476['nextSibling']&&!this['_schema']['isObject'](_0x12d476['nextSibling'])?_0x12d476['nextSibling']:null:_0x12d476['previousSibling']&&!this['_schema']['isObject'](_0x12d476['previousSibling'])?_0x12d476['previousSibling']:null,_0x12d476['isEmpty']||_0x4b2be2&&_0x4b2be2['isEmpty']){const _0x3130c9=_0x4b2be2&&_0x4b2be2['isEmpty']?_0x4b2be2:_0x12d476;_0x3c8354&&_0x3c8354['type']==_0x47a5fe+'EmptyContainer'&&_0x3c8354['element']['name']==_0x3130c9['name']?_0x3c8354['quantity']++:_0x32976a['push']({'type':_0x47a5fe+'EmptyContainer','element':_0x3130c9,'quantity':0x1});}else _0x32976a['push']({'type':_0x47a5fe+'Container','element':_0x12d476});}}}}}_resolveDescriptionItems(_0xea60db){const _0x16b49f=this['_locale'],_0x2ac118=[],_0x5b2c84=[],_0x59db8f=[];for(const _0x60600d of _0xea60db)switch(_0x60600d['type']){case'text':if(_0x60600d['add']=_0x60600d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x60600d['remove']=_0x60600d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x60600d['add']&&''!=_0x60600d['remove']){_0x2ac118['push']({'type':'replace','content':Mt(_0x16b49f,'REPLACE_TEXT',['\x22'+_0x60600d['remove']+'\x22','\x22'+_0x60600d['add']+'\x22'])});continue;}if(null!=_0x60600d['add']['match'](/^ +$/)){_0x2ac118['push']({'type':'insertion','content':Mt(_0x16b49f,'*Insert:*\x20%0',Mt(_0x16b49f,'ELEMENT_SPACE',_0x60600d['add']['length']))});continue;}if(null!=_0x60600d['remove']['match'](/^ +$/)){_0x2ac118['push']({'type':'deletion','content':Mt(_0x16b49f,'*Remove:*\x20%0',Mt(_0x16b49f,'ELEMENT_SPACE',_0x60600d['remove']['length']))});continue;}if(''!=_0x60600d['add']){_0x2ac118['push']({'type':'insertion','content':Mt(_0x16b49f,'*Insert:*\x20%0','\x22'+_0x60600d['add']+'\x22')});continue;}_0x2ac118['push']({'type':'deletion','content':Mt(_0x16b49f,'*Remove:*\x20%0','\x22'+_0x60600d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2ac118['push']({'type':'insertion','content':Mt(_0x16b49f,'*Insert:*\x20%0',this['getItemLabel'](_0x60600d['element'],_0x60600d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2ac118['push']({'type':'deletion','content':Mt(_0x16b49f,'*Remove:*\x20%0',this['getItemLabel'](_0x60600d['element'],_0x60600d['quantity']))});continue;case'addContainer':_0x2ac118['push']({'type':'insertion','content':Mt(_0x16b49f,'*Split:*\x20%0',this['getItemLabel'](_0x60600d['element'],_0x60600d['quantity']))});continue;case'removeContainer':_0x2ac118['push']({'type':'deletion','content':Mt(_0x16b49f,'*Merge:*\x20%0',this['getItemLabel'](_0x60600d['element'],_0x60600d['quantity']))});continue;case'addFormat':_0x5b2c84['push'](_0x60600d['key']);continue;case'removeFormat':_0x59db8f['push'](_0x60600d['key']);continue;default:_0x2ac118['push'](_0x60600d);}if(_0x5b2c84['length']){const _0x16555e=_0x5b2c84['map'](_0x1b1a5d=>this['_attributeLabels']['has'](_0x1b1a5d)?this['_attributeLabels']['get'](_0x1b1a5d):_0x1b1a5d)['join'](',\x20');_0x2ac118['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x16555e)});}if(_0x59db8f['length']){const _0x11904b=_0x59db8f['map'](_0x3f7222=>this['_attributeLabels']['has'](_0x3f7222)?this['_attributeLabels']['get'](_0x3f7222):_0x3f7222)['join'](',\x20');_0x2ac118['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x11904b)});}return _0x2ac118;}_handleCustomCallbackDescription(_0x2a139c){for(const _0x2e76ea of this['_customCallbacks']){const _0x364105=_0x2e76ea(_0x2a139c);if(_0x364105&&'type'in _0x364105)return _0x364105;}}_handleAttributeSuggestionDescription(_0x170383,_0x3a8bc5){const _0x2ab989=_0x3a8bc5['data'],_0x90a7fa=void 0x0===_0x2ab989['newValue']?'removeFormat':'addFormat';_0x170383['push']({'type':_0x90a7fa,'key':_0x2ab989['key']});}_handleRenameSuggestionDescription(_0x284ec8,_0x243cc7){_0x284ec8['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x243cc7['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0xa1866a,_0x13e3ad,_0x979714){if(this['_addDescriptionItems'](_0xa1866a,_0x13e3ad),_0x979714&&_0x979714['getFirstRange']()&&!_0x13e3ad['getFirstRange']()['end']['isEqual'](_0x979714['getFirstRange']()['start'])){const _0x43fc38=_0xa1866a[_0xa1866a['length']-0x1],_0x4b92f6='insertion'==_0x13e3ad['type']?'add':'remove';_0x43fc38&&'text'==_0x43fc38['type']&&(_0x43fc38[_0x4b92f6]+='\x0a');}}},wt=class extends _0x26ff96{afterInit(){const _0x102376=this['editor'],_0x1a3b41=_0x102376['plugins']['get']('TrackChangesEditing');_0x102376['commands']['get']('showAIAssistant')&&_0x1a3b41['enableCommand']('showAIAssistant');}},Ft=class extends _0x26ff96{afterInit(){const _0x11b605=this['editor'],_0x2b358c=_0x11b605['plugins']['get']('TrackChangesEditing');_0x11b605['commands']['get']('toggleAi')&&_0x2b358c['enableCommand']('toggleAi');}},Bt=class extends _0x26ff96{afterInit(){const _0x16235a=this['editor'],_0x4bfac9=_0x16235a['plugins']['get']('TrackChangesEditing');_0x16235a['commands']['get']('aiQuickAction')&&_0x4bfac9['enableCommand']('aiQuickAction');}},vt=class extends _0x26ff96{afterInit(){const _0x9b08e8=this['editor'],_0x2ba1c6=_0x9b08e8['locale'];if(!_0x9b08e8['plugins']['has']('AlignmentEditing'))return;const _0xc6f5a4=_0x9b08e8['plugins']['get']('TrackChangesEditing');_0xc6f5a4['enableDefaultAttributesIntegration']('alignment'),_0xc6f5a4['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x2ba1c6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x418faf=this['editor'],_0x824b47=_0x418faf['locale'];_0x418faf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d1f0e=>{if('formatBlock'!=_0x5d1f0e['type'])return;const {data:_0x43c149}=_0x5d1f0e;if(_0x43c149&&'alignment'==_0x43c149['commandName']){const _0x508d15=_0x43c149['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x824b47,'*Format:*\x20%0',function(_0x4c9061){switch(_0x4c9061){case'left':return Mt(_0x824b47,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x824b47,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x824b47,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x824b47,'FORMAT_JUSTIFY_TEXT');}}(_0x508d15))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x26ff96{afterInit(){const _0x41fd4f=this['editor'],_0x1147ef=_0x41fd4f['plugins']['get']('TrackChangesEditing'),_0x44199c=_0x41fd4f['locale'];for(const _0x440cde of Dt){if(!_0x41fd4f['plugins']['has'](_0x440cde))continue;const _0x5d7992=_0x440cde['slice'](0x0,-0x7)['toLowerCase'](),_0x2e16ae='FORMAT_'+_0x5d7992['toUpperCase']();_0x1147ef['enableDefaultAttributesIntegration'](_0x5d7992),_0x1147ef['descriptionFactory']['registerAttributeLabel'](_0x5d7992,Mt(_0x44199c,_0x2e16ae));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x272864=this['editor'],_0x13c706=_0x272864['locale'],_0x17916e=_0x272864['plugins']['get']('TrackChangesEditing');function _0x2f9323(_0x4efd53,_0x2117ac){_0x17916e['descriptionFactory']['registerDescriptionCallback'](_0x306dcf=>{if('formatInline'!=_0x306dcf['type'])return;const {data:_0x368e57}=_0x306dcf;return _0x368e57&&_0x368e57['commandName']===_0x4efd53?_0x368e57['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x13c706,'*Format:*\x20%0',_0x2117ac)}:{'type':'format','content':Mt(_0x13c706,'*Remove\x20format:*\x20%0',_0x2117ac)}:void 0x0;});}_0x2f9323('bold',Mt(_0x13c706,'FORMAT_BOLD')),_0x2f9323('italic',Mt(_0x13c706,'FORMAT_ITALIC')),_0x2f9323('underline',Mt(_0x13c706,'FORMAT_UNDERLINE')),_0x2f9323('code',Mt(_0x13c706,'FORMAT_CODE')),_0x2f9323('strikethrough',Mt(_0x13c706,'FORMAT_STRIKETHROUGH')),_0x2f9323('subscript',Mt(_0x13c706,'FORMAT_SUBSCRIPT')),_0x2f9323('superscript',Mt(_0x13c706,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x26ff96{afterInit(){const _0x138066=this['editor'],_0x58d20b=_0x138066['locale'];if(!_0x138066['plugins']['has']('BlockQuoteEditing'))return;const _0x23ad9f=_0x138066['plugins']['get']('TrackChangesEditing'),_0x56b2c8=this['editor']['commands']['get']('blockQuote');_0x23ad9f['enableCommand']('blockQuote',(_0x143c3b,_0x19898a={})=>{const _0x2c2866=this['editor']['model']['document']['selection'],_0x4b48ab=_0x19898a&&void 0x0!==_0x19898a['forceValue']?_0x19898a['forceValue']:!_0x56b2c8['value'];let _0x4bf2e0=[];if(_0x4b48ab){const _0x30d517=Array['from'](_0x2c2866['getSelectedBlocks']())['filter'](_0x182f44=>xt(_0x182f44)||function(_0x40ebe8,_0x57004e){const _0x3a11c7=_0x57004e['createContext'](_0x40ebe8['parent']);return!!_0x57004e['checkChild'](_0x3a11c7,'blockQuote')&&!!_0x57004e['checkChild'](_0x3a11c7['push']('blockQuote'),_0x40ebe8);}(_0x182f44,this['editor']['model']['schema']));_0x4bf2e0=bt(_0x30d517,_0x138066['model']);}else{const _0x426825=Array['from'](_0x2c2866['getSelectedBlocks']())['filter'](_0x5aecc5=>xt(_0x5aecc5));_0x4bf2e0=bt(_0x426825,_0x138066['model']);}_0x138066['model']['change'](()=>{for(const _0xbf1450 of _0x4bf2e0)_0x23ad9f['markBlockFormat'](_0xbf1450,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4b48ab}]});});}),_0x23ad9f['descriptionFactory']['registerDescriptionCallback'](_0x2c55d7=>{const {data:_0xf2460c}=_0x2c55d7;if(_0xf2460c&&'blockQuote'==_0xf2460c['commandName']){const _0x4087bf=Mt(_0x58d20b,'ELEMENT_BLOCK_QUOTE');return _0xf2460c['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x58d20b,'*Set\x20format:*\x20%0',_0x4087bf)}:{'type':'format','content':Mt(_0x58d20b,'*Remove\x20format:*\x20%0',_0x4087bf)};}});}};function xt(_0x3c9e7b){return'blockQuote'==_0x3c9e7b['parent']['name'];}var Gt=class extends _0x26ff96{afterInit(){const _0x5498c2=this['editor'],_0x24fff3=_0x5498c2['locale'],_0x8057bc=_0x5498c2['plugins']['get']('TrackChangesEditing');_0x5498c2['plugins']['has']('BookmarkEditing')&&(_0x8057bc['enableCommand']('insertBookmark'),_0x8057bc['enableDefaultAttributesIntegration']('updateBookmark'),_0x8057bc['descriptionFactory']['registerDescriptionCallback'](_0x4681d6=>{if('insertion'!=_0x4681d6['type']&&'deletion'!=_0x4681d6['type']&&'attribute'!=_0x4681d6['type'])return;const _0x46dd1c=_0x4681d6['getContainedElement']();if(null==_0x46dd1c)return;if(!_0x46dd1c['is']('element','bookmark'))return;const _0x1b07fb=_0x46dd1c['getAttribute']('bookmarkId');if('insertion'==_0x4681d6['type'])return{'type':'insertion','content':Mt(_0x24fff3,'*Insert:*\x20%0','\x22'+_0x1b07fb+'\x22\x20'+Mt(_0x24fff3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4681d6['type'])return{'type':'deletion','content':Mt(_0x24fff3,'*Remove:*\x20%0','\x22'+_0x1b07fb+'\x22\x20'+Mt(_0x24fff3,'ELEMENT_BOOKMARK'))};const {data:_0x192a54}=_0x4681d6;return _0x192a54&&'bookmarkId'==_0x192a54['key']?{'type':'format','content':Mt(_0x24fff3,'*Set\x20bookmark:*\x20%0','\x22'+_0x192a54['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x26ff96{afterInit(){const _0x530856=this['editor'];_0x530856['plugins']['has']('CaseChange')&&(_0x530856['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x530856['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x530856['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x26ff96{afterInit(){const _0x1786cf=this['editor'];_0x1786cf['commands']['get']('ckbox')&&_0x1786cf['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x26ff96{static get requires(){return[ht,gt];}constructor(_0x5363e9){super(_0x5363e9),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0xedc469=this['editor'],_0x530a67=_0xedc469['plugins']['get']('ClipboardMarkersUtils'),_0x10391b=_0xedc469['plugins']['get'](gt);_0x530a67['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x10391b['on']('outputTransformation',(_0x5770ea,_0xa04785)=>{const _0x1c01e2=this['_getSuggestionEntries'](_0xa04785);for(const [_0x4cde9f,_0x19fda8]of _0xa04785['content']['markers']){const _0x2b4890=rt['_fromRangeInDocumentFragment'](_0x19fda8,_0xedc469['model']);function _0x15faee(){_0x2b4890['detach'](),_0xa04785['content']['markers']['delete'](_0x4cde9f);}_0x2b4890['on']('change:drop',_0x15faee),(_0x4cde9f['startsWith']('suggestion:')||_0x4cde9f['startsWith']('comment:'))&&_0x2b4890['on']('change:range',()=>{_0x2b4890['isCollapsed']&&_0x15faee();}),_0xa04785['content']['markers']['set'](_0x4cde9f,_0x2b4890);}const _0x1d01a0=_0x1c01e2['filter'](_0x2dfd72=>'deletion'===_0x2dfd72['meta']['type'])['map'](_0x440d4e=>_0x440d4e['modelRange']);if(this['_shouldSkipDeletions'](_0x1d01a0,_0xa04785['content']))return[..._0x1c01e2]['forEach'](_0x18990b=>{_0xa04785['content']['markers']['get'](_0x18990b['markerName'])['detach'](),_0xa04785['content']['markers']['delete'](_0x18990b['markerName']);}),void this['_restoreRegularRanges'](_0xa04785['content']['markers']);[..._0x1c01e2]['forEach'](_0x805a23=>{const _0x12ce33=_0xedc469['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x805a23['meta']['type'],_0x805a23['meta']['subType'],'accept'),{markerName:_0x600fab,meta:_0x472fa5}=_0x805a23;if(_0xa04785['content']['markers']['has'](_0x600fab)){switch(_0x472fa5['type']){case'deletion':if('tableRow'===_0x472fa5['subType']||'tableColumn'===_0x472fa5['subType']){if(!_0xedc469['plugins']['has']('TableUtils'))break;const _0x4c168b=_0xedc469['plugins']['get']('TableUtils'),_0x2ff568=_0x4c168b['getSelectionAffectedTableCells'](_0xedc469['model']['createSelection'](_0xa04785['content']['markers']['get'](_0x600fab))),_0x36c51f=_0x2ff568[0x0]['findAncestor']('table');if('tableRow'===_0x472fa5['subType']){const {first:_0x2b9fba,last:_0x5dbd7b}=_0x4c168b['getRowIndexes'](_0x2ff568);_0x4c168b['removeRows'](_0x36c51f,{'at':_0x2b9fba,'rows':_0x5dbd7b-_0x2b9fba+0x1});}else{const {first:_0x2dc5df,last:_0x293cec}=_0x4c168b['getColumnIndexes'](_0x2ff568);_0x4c168b['removeColumns'](_0x36c51f,{'at':_0x2dc5df,'columns':_0x293cec-_0x2dc5df+0x1});}break;}_0x12ce33([_0xa04785['content']['markers']['get'](_0x600fab)]);}_0xa04785['content']['markers']['has'](_0x600fab)&&(_0xa04785['content']['markers']['get'](_0x600fab)['detach'](),_0xa04785['content']['markers']['delete'](_0x600fab));}}),this['_restoreRegularRanges'](_0xa04785['content']['markers']);});}_getSuggestionEntries(_0x1bb9fc){const _0x479694=_0x1df0e0=>'dragstart'===_0x1bb9fc['method']?_0x1df0e0['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x1df0e0;return Array['from'](_0x1bb9fc['content']['markers'])['map'](([_0x3ce529,_0x386ada])=>({'markerName':_0x3ce529,'modelRange':_0x386ada,'meta':tt(_0x479694(_0x3ce529))}))['filter'](({meta:_0x531aa5})=>'suggestion'===_0x531aa5['group']);}_shouldSkipDeletions(_0x43a96c,_0x50652d){if(!_0x43a96c['length'])return!0x1;let _0x4c1b92=[this['editor']['model']['createRangeIn'](_0x50652d)];for(const _0x3ec3eb of _0x43a96c)_0x4c1b92=_0x4c1b92['flatMap'](_0x44efc0=>_0x44efc0['getDifference'](_0x3ec3eb));return!_0x4c1b92['some'](_0x5aa947=>this['editor']['model']['hasContent'](_0x5aa947,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0xef9839){[..._0xef9839['keys']()]['forEach'](_0x28baba=>{const _0xf5922f=_0xef9839['get'](_0x28baba);_0xf5922f['detach'](),_0xef9839['set'](_0x28baba,_0xf5922f['toRange']());});}},Vt=class extends _0x26ff96{afterInit(){const _0x297829=this['editor'];if(!_0x297829['plugins']['has']('CodeBlock'))return;const _0x330b7a=_0x297829['plugins']['get']('TrackChangesEditing'),_0x3023d9=_0x297829['locale'],_0x28fba8=_0x297829['config']['get']('codeBlock')['languages'],_0x9afd99=_0x297829['commands']['get']('codeBlock');_0x330b7a['enableCommand']('indentCodeBlock'),_0x330b7a['enableCommand']('outdentCodeBlock'),_0x330b7a['enableCommand']('codeBlock',(_0x4bfafc,_0x2227f1={})=>{const _0x5bc863=_0x297829['model'],_0x489a15=_0x297829['model']['document']['selection'],_0x2ba2c3=_0x2227f1&&void 0x0!==_0x2227f1['forceValue']?_0x2227f1['forceValue']:!_0x9afd99['value'];let _0x2db0e0;_0x2227f1['language']||(_0x2227f1['language']=_0x28fba8[0x0]['language']),_0x2db0e0=_0x2ba2c3?Array['from'](_0x489a15['getSelectedBlocks']())['filter'](_0x275e84=>{return jt(_0x275e84)||(_0x199652=_0x275e84,_0xfb86eb=_0x5bc863['schema'],!_0x199652['is']('rootElement')&&!_0xfb86eb['isLimit'](_0x199652)&&_0xfb86eb['checkChild'](_0x199652['parent'],'codeBlock'));var _0x199652,_0xfb86eb;}):Array['from'](_0x489a15['getSelectedBlocks']())['filter'](_0x5ec944=>jt(_0x5ec944));const _0x25def6=bt(_0x2db0e0,_0x5bc863);_0x5bc863['change'](()=>{for(const _0x1c5bb9 of _0x25def6)_0x330b7a['markBlockFormat'](_0x1c5bb9,{'commandName':'codeBlock','commandParams':[{..._0x2227f1,'forceValue':_0x2ba2c3}],'formatGroupId':'blockName'});});}),(_0x330b7a['descriptionFactory']['registerElementLabel']('codeBlock',_0x5d8086=>Mt(_0x3023d9,'ELEMENT_CODE_BLOCK',_0x5d8086)),_0x330b7a['descriptionFactory']['registerDescriptionCallback'](_0x1c9e2a=>{if('formatBlock'!=_0x1c9e2a['type'])return;const _0x545c93=_0x3023d9['t'],{data:_0x15a171}=_0x1c9e2a;if(!_0x15a171||'codeBlock'!=_0x15a171['commandName'])return;const _0x417358=_0x15a171['commandParams'][0x0]['language'],_0x38501c=_0x545c93(_0x28fba8['find'](_0x598772=>_0x598772['language']===_0x417358)['label'])['toLowerCase']();return _0x15a171['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3023d9,'*Set\x20format:*\x20%0',Mt(_0x3023d9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x38501c+')')}:{'type':'format','content':Mt(_0x3023d9,'*Remove\x20format:*\x20%0',Mt(_0x3023d9,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x108a0d){return'codeBlock'==_0x108a0d['name'];}var zt=class extends _0x26ff96{afterInit(){const _0xbf06a5=this['editor'];_0xbf06a5['plugins']['has']('CommentsEditing')&&_0xbf06a5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x26ff96{static get requires(){return[ft];}init(){const _0x4e89c6=this['editor'],_0x4c8531=_0x4e89c6['plugins']['get']('TrackChangesEditing');_0x4c8531['enableCommand']('delete');const _0x1874b4=_0x4e89c6['commands']['get']('deleteForward');_0x4c8531['enableCommand']('deleteForward',(_0x38286d,_0x264155={})=>{const _0x40fafb=_0x4e89c6['model']['createSelection'](_0x4e89c6['model']['document']['selection']);_0x40fafb['isCollapsed']&&_0x4e89c6['model']['modifySelection'](_0x40fafb,{'direction':'forward','unit':_0x264155['unit']});const _0x35b761=_0x40fafb['getFirstRange'](),_0x577c00=rt['fromRange'](_0x35b761);let _0xb00fb3;_0x38286d(_0x264155),_0xb00fb3='$graveyard'==_0x577c00['root']['rootName']?_0x4e89c6['model']['createRange'](_0x35b761['start']):_0x4e89c6['model']['createRange'](_0x577c00['start'],_0x577c00['end']),_0x577c00['detach'](),_0x4e89c6['model']['enqueueChange'](_0x1874b4['buffer']['batch'],_0x43cab4=>{_0x1874b4['buffer']['lock'](),_0x43cab4['setSelection'](_0x43cab4['createRange'](_0xb00fb3['end'])),_0x1874b4['buffer']['unlock']();});});}},Xt=class extends _0x26ff96{afterInit(){const _0x181296=this['editor'];if(!_0x181296['plugins']['has']('ListEditing'))return;const _0x116822=_0x181296['locale'],_0x4c72a2=_0x181296['plugins']['get']('TrackChangesEditing'),_0x317807=_0x181296['plugins']['has']('TodoListEditing'),_0x4f7429=!!_0x181296['config']['get']('list.multiBlock');function _0x31bf29(_0x14a00c){return{'type':'format','content':''+Mt(_0x116822,'*Set\x20format:*\x20%0',_0x14a00c)};}function _0x455da3(_0x243aa4){return{'type':'format','content':''+Mt(_0x116822,'*Remove\x20format:*\x20%0',_0x243aa4)};}_0x4c72a2['enableDefaultAttributesIntegration']('numberedList'),_0x4c72a2['enableDefaultAttributesIntegration']('bulletedList'),_0x4c72a2['enableDefaultAttributesIntegration']('customNumberedList'),_0x4c72a2['enableDefaultAttributesIntegration']('customBulletedList'),_0x4c72a2['enableDefaultAttributesIntegration']('indentList'),_0x4c72a2['enableDefaultAttributesIntegration']('outdentList'),_0x4c72a2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4c72a2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4f7429&&(_0x4c72a2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4c72a2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x317807&&(_0x4c72a2['enableDefaultAttributesIntegration']('todoList'),_0x4c72a2['enableDefaultAttributesIntegration']('checkTodoList'),_0x4c72a2['descriptionFactory']['registerDescriptionCallback'](_0x490f48=>{const {data:_0x2812e5}=_0x490f48;if(_0x2812e5&&'todoListChecked'==_0x2812e5['key'])return{'type':'format','content':_0x2812e5['newValue']?Mt(_0x116822,'*Check\x20item*'):Mt(_0x116822,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x880a38=>{if(_0x880a38['batch']['isUndo'])return!0x1;let _0x649bc8=!0x1;const _0x13d5db=_0x4c72a2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd87f4d=>'todoListChecked'===_0x4c72a2['_getAttributeKey'](_0xd87f4d));for(const _0x1fe468 of _0x13d5db)'todo'!=_0x1fe468['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4c72a2['_findSuggestions'](_0x1fe468['getFirstRange'](),'attribute')['find'](_0x76fdaa=>'listType'===_0x4c72a2['_getAttributeKey'](_0x76fdaa['suggestion']))||(_0x880a38['removeMarker'](_0x1fe468['getFirstMarker']()),_0x649bc8=!0x0));return _0x649bc8;})),_0x4c72a2['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x116822,'FORMAT_INDENT'));const _0x472d0c={'type':'format','content':''};_0x4c72a2['descriptionFactory']['registerDescriptionCallback'](_0x10e8eb=>{const {data:_0x13a250}=_0x10e8eb;if(!_0x13a250||'listType'!=_0x13a250['key'])return;let _0x1de6bb=_0x10e8eb['head'];for(;_0x1de6bb;){if(_0x1de6bb['data']&&(('listStyle'==_0x1de6bb['data']['key']||'listMarkerStyle'==_0x1de6bb['data']['key'])&&(_0x1de6bb['data']['newValue']&&'default'!=_0x1de6bb['data']['newValue']||'default'!=_0x1de6bb['data']['oldValue']&&!_0x13a250['newValue'])||!_0x4f7429&&'$elementName'==_0x1de6bb['data']['key']))return _0x472d0c;_0x1de6bb=_0x1de6bb['next'];}if(null==_0x13a250['newValue'])switch(_0x13a250['oldValue']){case'bulleted':return _0x455da3(Mt(_0x116822,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x455da3(Mt(_0x116822,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x455da3(Mt(_0x116822,'ELEMENT_TODO_LIST'));}switch(_0x13a250['newValue']){case'bulleted':return _0x31bf29(Mt(_0x116822,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31bf29(Mt(_0x116822,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31bf29(Mt(_0x116822,'ELEMENT_TODO_LIST'));}}),_0x4c72a2['descriptionFactory']['registerDescriptionCallback'](_0x31b69c=>{const {data:_0x448600}=_0x31b69c;if(_0x448600&&'listIndent'==_0x448600['key'])return null==_0x448600['newValue']||null==_0x448600['oldValue']&&0x0==_0x448600['newValue']?_0x472d0c:void 0x0;}),_0x4c72a2['descriptionFactory']['registerDescriptionCallback'](_0x370055=>{if('attribute'!=_0x370055['type'])return;const {data:_0x5024e0}=_0x370055;if(!_0x5024e0||'listItemId'!=_0x5024e0['key'])return;const _0x59e0f5=qt(_0x370055);return'newValue'==_0x59e0f5?{'type':'format','content':Mt(_0x116822,'*Merge:*\x20list\x20item')}:'oldValue'==_0x59e0f5?{'type':'format','content':Mt(_0x116822,'*Split:*\x20list\x20item')}:_0x472d0c;}),_0x181296['model']['document']['registerPostFixer'](_0x51bce6=>this['listItemIdFixer'](_0x51bce6)),_0x181296['model']['document']['registerPostFixer'](_0x43a912=>this['noTrackChangesFixer'](_0x43a912)),_0x181296['model']['document']['on']('change:data',(_0x501b09,_0x4bbdd1)=>{if(_0x4bbdd1['isUndo']||!_0x4bbdd1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x50ba24){if(_0x50ba24['batch']['isUndo']||!_0x50ba24['batch']['isLocal'])return!0x1;let _0x58c5c4=!0x1;const _0x7b8a69=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1da766=>_0x1da766['data']&&'listItemId'==_0x1da766['data']['key'])['filter'](_0x561687=>_0x561687['data']['newValue']&&_0x561687['data']['oldValue']);for(const _0x8d5302 of _0x7b8a69)qt(_0x8d5302)||(_0x50ba24['removeMarker'](_0x8d5302['getFirstMarker']()),_0x58c5c4=!0x0);return _0x58c5c4;}['noTrackChangesFixer'](_0x30eac1){if(_0x30eac1['batch']['isUndo']||!_0x30eac1['batch']['isLocal'])return!0x1;const _0x162361=this['editor']['model']['document']['differ'],_0xb6ce08=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xb6ce08['trackChangesCommand']['value'])return!0x1;let _0x269fb0=!0x1;const _0x13a183=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x38cd14=_0x162361['getChanges']()['filter'](_0x3cc1df=>'attribute'==_0x3cc1df['type'])['filter'](_0x5c54d4=>_0x13a183['has'](_0x5c54d4['attributeKey']));if(0x0==_0x38cd14['length'])return _0x269fb0;const _0x5f5ad0=new Set(_0x162361['getMarkersToAdd']()['filter'](_0xf801fa=>{if(!_0xf801fa['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x566559=tt(_0xf801fa['name'])['subType']['split']('|')[0x0];return _0x13a183['has'](_0x566559);})['map'](_0xa3ba36=>tt(_0xa3ba36['name'])['id']));for(const _0x154162 of _0x38cd14){const _0x4c4867=_0xb6ce08['_findSuggestions'](_0x154162['range'],'attribute')['filter'](_0x3080e8=>{if(_0x3080e8['meta']['isNextTo'])return!0x1;if(_0x5f5ad0['has'](_0x3080e8['suggestion']['id']))return!0x1;const _0x1f0849=_0xb6ce08['_getAttributeKey'](_0x3080e8['suggestion']);return _0x13a183['has'](_0x1f0849);})['map'](_0x120f51=>_0x120f51['suggestion']);if(_0x4c4867['length']){for(const _0xdcc8a6 of _0x4c4867)_0x30eac1['removeMarker'](_0xdcc8a6['getFirstMarker']());_0x269fb0=!0x0;}}return _0x269fb0;}['assureChains'](){const _0x1a613e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a7b36=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x43b9b8;const _0x5e4373=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x51f7a1=>{if(_0x51f7a1['data']['oldRange']||!_0x51f7a1['data']['newRange'])return null;if(!_0x51f7a1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x211ccd}=tt(_0x51f7a1['name']);if(!_0x1a613e['hasSuggestion'](_0x211ccd))return null;const _0xe72a5c=_0x1a613e['getSuggestion'](_0x211ccd);return _0x4a7b36['includes'](_0xe72a5c['data']['key']);})['map'](_0x413ebb=>{const {id:_0x48c0db}=tt(_0x413ebb['name']),_0x101f30=_0x1a613e['getSuggestion'](_0x48c0db);return _0x43b9b8=_0x101f30['attributes']['groupId'],_0x101f30['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5e4373['size'])return;const _0x32276f=_0x1a613e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5783ab=>'attribute'==_0x5783ab['type']&&_0x5783ab['data']&&_0x4a7b36['includes'](_0x5783ab['data']['key'])&&_0x5783ab['attributes']['groupId']!=_0x43b9b8)['map'](_0x66d3a3=>({'listItem':_0x66d3a3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x66d3a3['attributes']['groupId']})),_0x3e024b=new Set();for(const {groupId:_0x3e860c,listItem:_0x18b2fd}of _0x32276f)_0x5e4373['has'](_0x18b2fd)&&_0x3e024b['add'](_0x3e860c);for(const _0x438698 of _0x1a613e['getSuggestions']())_0x3e024b['has'](_0x438698['attributes']['groupId'])&&_0x438698['setAttribute']('groupId',_0x43b9b8);}_supportLegacySuggestions(){const _0x33030c=this['editor'],_0x137853=_0x33030c['locale'],_0x503a8d=_0x33030c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x503a8d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x54b003,_0x573018){const _0x49c33f=[];for(let _0x2bebff of _0x54b003)_0x2bebff['start']['nodeAfter']===_0x2bebff['end']['parent']&&(_0x2bebff=_0x33030c['model']['createRange'](_0x33030c['model']['createPositionAt'](_0x2bebff['start']['nodeAfter'],0x0))),_0x49c33f['push'](_0x2bebff);_0x33030c['model']['change'](_0x5cd6a6=>{const _0x28e3b1=_0x33030c['model']['document']['selection'],_0x412cb7=Array['from'](_0x28e3b1['getRanges']())['map'](_0x48203c=>rt['fromRange'](_0x48203c));_0x5cd6a6['setSelection'](_0x49c33f),_0x33030c['commands']['get'](_0x573018['commandName'])['refresh'](),_0x573018['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x33030c['execute'](_0x573018['commandName'],..._0x573018['commandParams']),_0x5cd6a6['setSelection'](_0x412cb7);for(const _0x58ede9 of _0x412cb7)_0x58ede9['detach']();});}),_0x503a8d['descriptionFactory']['registerElementLabel'](function(_0x1b59fb){const _0x4fb0fe=!_0x33030c['model']['schema']['isObject'](_0x1b59fb),_0x36a190=_0x1b59fb['previousSibling'],_0x3b41fa=_0x1b59fb['nextSibling'],_0x13c124=_0x1b59fb['getAttribute']('listItemId'),_0x7c4f65=!_0x36a190||_0x36a190['getAttribute']('listItemId')!==_0x13c124,_0x859e00=!_0x3b41fa||_0x3b41fa['getAttribute']('listItemId')!==_0x13c124;return _0x4fb0fe&&Boolean(_0x13c124)&&_0x7c4f65&&_0x859e00;},_0x552687=>Mt(_0x137853,'ELEMENT_LIST_ITEM',_0x552687));}_registerLegacyDescription(){const _0x24bea9=this['editor'],_0x4afc1e=_0x24bea9['locale'];function _0x16c7f4(_0x1e7429){const _0x1231c4=_0x24bea9['commands']['get']('bulletedList')['value'],_0x4fe3b2=_0x24bea9['commands']['get']('numberedList')['value'];return'numberedList'===_0x1e7429?_0x1231c4:_0x4fe3b2;}_0x24bea9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40aa96){if('formatBlock'!=_0x40aa96['type'])return;const {data:_0x749d05}=_0x40aa96;if(!_0x749d05)return;let _0x50150a,_0x30f0e0,_0x5ddc17,_0x4d6467;switch(_0x749d05['commandName']){case'bulletedList':_0x5ddc17=_0x749d05['commandParams'][0x0]['forceValue'],_0x4d6467=_0x16c7f4(_0x749d05['commandName']),_0x50150a=_0x5ddc17?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4d6467&&_0x24bea9['config']['get']('list.multiBlock')||(_0x50150a='*Change\x20to:*\x20%0'),_0x30f0e0={'type':'format','content':Mt(_0x4afc1e,_0x50150a,Mt(_0x4afc1e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5ddc17=_0x749d05['commandParams'][0x0]['forceValue'],_0x4d6467=_0x16c7f4(_0x749d05['commandName']),_0x50150a=_0x5ddc17?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4d6467&&_0x24bea9['config']['get']('list.multiBlock')||(_0x50150a='*Change\x20to:*\x20%0'),_0x30f0e0={'type':'format','content':Mt(_0x4afc1e,_0x50150a,Mt(_0x4afc1e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x50150a='*Indent:*\x20%0',_0x30f0e0={'type':'format','content':Mt(_0x4afc1e,_0x50150a,Mt(_0x4afc1e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x50150a=function(_0x19d3e8){const _0x239205=_0x19d3e8['getFirstRange']();let _0x26ddcf=_0x239205['start']['nodeAfter'];for(;_0x26ddcf&&_0x239205['containsItem'](_0x26ddcf);){if(_0x26ddcf['getAttribute']('listIndent')>0x0)return!0x1;_0x26ddcf=_0x26ddcf['nextSibling'];}return!0x0;}(_0x40aa96)?Mt(_0x4afc1e,'*Format:*\x20remove\x20from\x20%0',Mt(_0x4afc1e,function(_0x421b56){return'ELEMENT_'+_0x421b56['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40aa96))):Mt(_0x4afc1e,'*Outdent:*\x20%0',Mt(_0x4afc1e,'ELEMENT_LIST_ITEM')),_0x30f0e0={'type':'format','content':_0x50150a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x749d05['multipleBlocks']&&(_0x50150a='*Merge:*\x20%0',_0x30f0e0={'type':'deletion','content':Mt(_0x4afc1e,_0x50150a,Mt(_0x4afc1e,'ELEMENT_LIST_ITEM'))});}return _0x30f0e0;});}};function qt(_0xebb451){let _0x6adf78=_0xebb451['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x6adf78;){const _0x12b96f=_0x6adf78['getAttribute']('listItemId');if(!_0x12b96f)return!0x1;if(_0x12b96f==_0xebb451['data']['newValue'])return'newValue';if(_0x12b96f==_0xebb451['data']['oldValue'])return'oldValue';_0x6adf78=_0x6adf78['previousSibling'];}return!0x1;}var Yt=class extends _0x26ff96{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x49c01e=this['editor']['config']['get']('list.properties'),_0x27978c=this['editor']['plugins']['get']('TrackChangesEditing');_0x49c01e['styles']&&_0x27978c['enableDefaultAttributesIntegration']('listStyle'),_0x49c01e['reversed']&&_0x27978c['enableDefaultAttributesIntegration']('listReversed'),_0x49c01e['startIndex']&&_0x27978c['enableDefaultAttributesIntegration']('listStart');const _0x56732d={'type':'format','content':''};_0x27978c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3f2193=this['editor']['locale'];_0x27978c['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x3f2193,'FORMAT_LIST_REVERSED')),_0x27978c['descriptionFactory']['registerDescriptionCallback'](_0x41b801=>{const {data:_0x367950}=_0x41b801;if(_0x367950&&'listReversed'==_0x367950['key'])return null==_0x367950['newValue']||0x0==_0x367950['newValue']&&null==_0x367950['oldValue']?_0x56732d:void 0x0;}),_0x27978c['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x3f2193,'FORMAT_LIST_START')),_0x27978c['descriptionFactory']['registerDescriptionCallback'](_0x3d039f=>{const {data:_0x386cac}=_0x3d039f;if(_0x386cac&&'listStart'==_0x386cac['key'])return null==_0x386cac['newValue']||0x1==_0x386cac['newValue']&&null==_0x386cac['oldValue']?_0x56732d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x37d1d0=>{if(_0x37d1d0['batch']['isUndo'])return!0x1;let _0x562e44=!0x1;const _0x49dd57=_0x27978c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73caa4=>{const _0x997366=_0x27978c['_getAttributeKey'](_0x73caa4);return'listStart'==_0x997366||'listReversed'==_0x997366;});for(const _0x37da56 of _0x49dd57){const _0x56cd0c=_0x37da56['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x56cd0c&&'customNumbered'!=_0x56cd0c&&(_0x27978c['_findSuggestions'](_0x37da56['getFirstRange'](),'attribute')['find'](_0x2c693d=>'listType'==_0x27978c['_getAttributeKey'](_0x2c693d['suggestion']))||(_0x37d1d0['removeMarker'](_0x37da56['getFirstMarker']()),_0x562e44=!0x0));}return _0x562e44;}),this['_registerLegacyDescription']();}handleDescriptions(_0x5a092f){const _0x321b80=this['editor']['locale'],{data:_0x5a8409}=_0x5a092f,_0x47bf24={'type':'format','content':''};if(!_0x5a8409||'listStyle'!=_0x5a8409['key'])return;if(!_0x5a8409['oldValue'])return'default'==_0x5a8409['newValue']?_0x47bf24:{'type':'format','content':''+Mt(_0x321b80,'*Set\x20format:*\x20%0',Mt(_0x321b80,this['_getTranslationKeyForListStyle'](_0x5a8409['newValue'])))};if(!_0x5a8409['newValue']){if('default'==_0x5a8409['oldValue'])return _0x47bf24;let _0x59384d=_0x5a092f['head'];for(;_0x59384d;){if(_0x59384d['data']&&'listType'==_0x59384d['data']['key']&&_0x59384d['data']['newValue'])return _0x47bf24;_0x59384d=_0x59384d['next'];}return{'type':'format','content':''+Mt(_0x321b80,'*Remove\x20format:*\x20%0',Mt(_0x321b80,this['_getTranslationKeyForListStyle'](_0x5a8409['oldValue'])))};}if('default'!=_0x5a8409['newValue'])return{'type':'format','content':''+Mt(_0x321b80,'*Set\x20format:*\x20%0',Mt(_0x321b80,this['_getTranslationKeyForListStyle'](_0x5a8409['newValue'])))};let _0x251a06=_0x5a092f['head'];for(;_0x251a06;){if(_0x251a06['data']&&'listType'==_0x251a06['data']['key']&&_0x251a06['data']['newValue']&&_0x251a06['data']['oldValue'])return _0x47bf24;_0x251a06=_0x251a06['next'];}return{'type':'format','content':Mt(_0x321b80,'*Set\x20format:*\x20%0',Mt(_0x321b80,'ELEMENT_'+_0x5a092f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x1a7e59=this['editor'],_0x5b0f20=_0x1a7e59['locale'];_0x1a7e59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f01e7=>{if('formatBlock'!=_0x2f01e7['type'])return;const {data:_0x539f88}=_0x2f01e7;if(!_0x539f88)return;let _0x3661f8,_0x3789c7;switch(_0x539f88['commandName']){case'listStyle':_0x3661f8='*Change\x20to:*\x20%0',_0x3789c7={'type':'format','content':Mt(_0x5b0f20,_0x3661f8,Mt(_0x5b0f20,this['_getTranslationKeyForListStyle'](_0x539f88['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3661f8=_0x539f88['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3789c7={'type':'format','content':Mt(_0x5b0f20,_0x3661f8)};break;case'listStart':_0x3661f8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3789c7={'type':'format','content':Mt(_0x5b0f20,_0x3661f8,_0x539f88['commandParams'][0x0]['startIndex'])};}return _0x3789c7;});}_getTranslationKeyForListStyle(_0x4e42a2){return'ELEMENT_'+(_0x45b1d0=_0x4e42a2,Qt['includes'](_0x45b1d0)?'bulleted':Zt['includes'](_0x45b1d0)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x4e42a2['toUpperCase']()['replace'](/-/g,'_');var _0x45b1d0;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x26ff96{afterInit(){const _0x5e96b7=this['editor'];_0x5e96b7['commands']['get']('emoji')&&_0x5e96b7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x26ff96{static get requires(){return[Et];}init(){const _0x524f93=this['editor'],_0xcf392a=_0x524f93['plugins']['get']('TrackChangesEditing'),_0x4f4a9b=_0x524f93['commands']['get']('enter');_0xcf392a['enableCommand']('enter',()=>{_0x524f93['model']['change'](_0x424339=>{const _0x1fd30f=_0x524f93['model']['document']['selection'],_0x3924de=_0x1fd30f['getFirstPosition'](),_0x1c3f80=rt['fromRange'](_0x1fd30f['getFirstRange']());if(_0x4f4a9b['enterBlock'](_0x424339)){const _0x7d410a=_0x524f93['model']['createPositionAt'](_0x3924de['parent']['nextSibling'],0x0),_0x462aa5=_0x424339['createRange'](_0x3924de,_0x7d410a);_0xcf392a['markInsertion'](_0x462aa5);}else _0x424339['setSelection'](_0x424339['createRange'](_0x1c3f80['end']));_0x1c3f80['detach'](),_0x4f4a9b['fire']('afterExecute',{'writer':_0x424339});});});}},ee=class extends _0x26ff96{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xab257b=this['editor']['plugins']['get']('TrackChangesEditing');_0xab257b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xab257b['enableCommand']('findNext'),_0xab257b['enableCommand']('findPrevious'),_0xab257b['enableCommand']('replace'),_0xab257b['enableCommand']('replaceAll');}['handleFindCommand'](_0x588318,_0x37b68c,_0x5927a0={}){const _0x319abb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x588318(_0x58ba3f=>{let _0x349c8d=('string'==typeof _0x37b68c?_0x319abb['findByTextCallback'](_0x37b68c,_0x5927a0):_0x37b68c)(_0x58ba3f);Array['isArray'](_0x349c8d)&&(_0x349c8d={'results':_0x349c8d,'searchText':'string'==typeof _0x37b68c?_0x37b68c:''});const _0x51e174=_0x349c8d['results']['filter'](_0x11b1b6=>!0x1===this['_isInDeletionRange'](_0x11b1b6,_0x58ba3f['item']));return{..._0x349c8d,'results':_0x51e174};},_0x5927a0);}_isInDeletionRange(_0x2ef7b0,_0x276487){const _0xd57b80=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x276487,_0x2ef7b0['start']),this['editor']['model']['createPositionAt'](_0x276487,_0x2ef7b0['end']));for(const _0x2fb51f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd57b80['getIntersection'](_0x2fb51f['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x26ff96{afterInit(){const _0x346bb8=this['editor']['locale'],_0x34e48f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b43c6,commandName:_0x101003}of ne)this['editor']['plugins']['has'](_0x1b43c6)&&_0x34e48f['enableDefaultAttributesIntegration'](_0x101003);_0x34e48f['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x346bb8,'FORMAT_FONT_SIZE')),_0x34e48f['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x346bb8,'FORMAT_FONT_FAMILY')),_0x34e48f['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x346bb8,'FORMAT_FONT_COLOR')),_0x34e48f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x346bb8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1058c4=this['editor'],_0x4520d0=_0x1058c4['locale'];_0x1058c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27f608=>{const _0x454455=_0x4520d0['t'];if('formatInline'!=_0x27f608['type'])return;const {data:_0x5be450}=_0x27f608;if(null!=_0x5be450){if('fontSize'==_0x5be450['commandName']){const _0x5f49aa=_0x5be450['commandParams'][0x0]['value'];if(_0x5f49aa){const _0x51ee82=_0x454455(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x224080=>_0x224080['model']==_0x5f49aa)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x4520d0,'*Set\x20font\x20size:*\x20%0',_0x51ee82)};}return{'type':'format','content':Mt(_0x4520d0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5be450['commandName']){const _0x2968bd=_0x5be450['commandParams'][0x0]['value'];return _0x2968bd?{'type':'format','content':Mt(_0x4520d0,'*Set\x20font\x20family:*\x20%0',_0x2968bd)}:{'type':'format','content':Mt(_0x4520d0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5be450['commandName']){const _0x1e86fd=_0x5be450['commandParams'][0x0]['value'];if(_0x1e86fd){const _0x97ca08=_0x782781(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5a720e=>_0x5a720e['model']==_0x1e86fd);let _0x50b3bc=_0x1e86fd,_0x204014='';return _0x97ca08&&(_0x50b3bc=_0x97ca08['label'],_0x204014=_0x454455(_0x50b3bc)['toLowerCase']()),{'type':'format','content':Mt(_0x4520d0,'*Set\x20font\x20color:*\x20%0',_0x204014)['trim'](),'color':{'value':_0x1e86fd,'title':_0x204014||_0x50b3bc}};}return{'type':'format','content':Mt(_0x4520d0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5be450['commandName']){const _0x8a0bb5=_0x5be450['commandParams'][0x0]['value'];if(_0x8a0bb5){const _0x30a95b=_0x782781(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x83734=>_0x83734['model']==_0x8a0bb5);let _0x4c431d=_0x8a0bb5,_0x1b0dec='';return _0x30a95b&&(_0x4c431d=_0x30a95b['label'],_0x1b0dec=_0x454455(_0x4c431d)['toLowerCase']()),{'type':'format','content':Mt(_0x4520d0,'*Set\x20font\x20background\x20color:*\x20%0',_0x1b0dec)['trim'](),'color':{'value':_0x8a0bb5,'title':_0x1b0dec||_0x4c431d}};}return{'type':'format','content':Mt(_0x4520d0,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x26ff96{afterInit(){const {plugins:_0x57d769}=this['editor'];_0x57d769['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x57d769['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x55c5e7,plugins:_0x2e62da,commands:_0xe26e0c}=this['editor'],_0x3326c6=_0x2e62da['get']('TrackChangesEditing');_0xe26e0c['get']('footnotesStyle')&&_0x3326c6['enableDefaultAttributesIntegration']('footnotesStyle'),_0xe26e0c['get']('footnotesStart')&&_0x3326c6['enableDefaultAttributesIntegration']('footnotesStart'),_0x3326c6['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x55c5e7,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3326c6['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x55c5e7,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x4458c5=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x18e864,commands:_0x1b0650}=this['editor'];_0x1b0650['get']('insertFootnote')&&_0x4458c5['enableCommand']('insertFootnote'),_0x4458c5['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3e7bbe=>Mt(_0x18e864,'ELEMENT_FOOTNOTE_REF',_0x3e7bbe)),_0x4458c5['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x257914=>Mt(_0x18e864,'ELEMENT_FOOTNOTE_DEFINITION',_0x257914)),_0x4458c5['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xee84f6=>Mt(_0x18e864,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xee84f6));}},re=class extends _0x26ff96{afterInit(){const _0x2903b8=this['editor'],_0x3cb1f=_0x2903b8['plugins']['get']('TrackChangesEditing'),_0x3d961c=_0x2903b8['commands']['get']('copyFormat'),_0x13a627=_0x2903b8['commands']['get']('pasteFormat');_0x3d961c&&_0x13a627&&(_0x3cb1f['enableDefaultAttributesIntegration']('pasteFormat'),_0x3cb1f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x4d7ca7=this['editor'],_0x18af3a=_0x4d7ca7['locale'];_0x4d7ca7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25b503=>{if('formatBlock'!=_0x25b503['type']&&'formatInline'!=_0x25b503['type'])return;const {data:_0x3f56af}=_0x25b503;if(_0x3f56af&&'pasteFormat'===_0x3f56af['commandName']){const _0x2d52be=[],_0x58e85d=_0x3f56af['commandParams'][0x0];for(const [_0x32a99e,_0xb702e0]of Object['entries'](_0x58e85d))_0x2d52be['push'](oe(_0x4d7ca7,_0x32a99e,_0xb702e0));return _0x2d52be['length']?{'type':'format','content':Mt(_0x18af3a,'*Set\x20format\x20to:*\x20%0',_0x2d52be['join'](',\x20'))}:{'type':'format','content':Mt(_0x18af3a,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x223447,_0x2a2501,_0x13180b){const _0x3c6a73=_0x223447['locale']['t'],_0x3bbda4=_0x2a2501['split'](/(?=[A-Z])/)['join']('\x20'),_0x20ec4b=_0x3c6a73(_0x3bbda4['charAt'](0x0)['toUpperCase']()+_0x3bbda4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x13180b)return _0x20ec4b;if('fontColor'===_0x2a2501||'fontBackgroundColor'===_0x2a2501){const _0x5e496c=_0x782781(_0x223447['config']['get']('fontColor.colors'))['find'](_0x8f56c7=>_0x8f56c7['model']==_0x13180b);return _0x20ec4b+'\x20('+(_0x5e496c?_0x3c6a73(_0x5e496c['label'])['toLowerCase']():_0x13180b)+')';}if('fontSize'===_0x2a2501&&isNaN(parseFloat(_0x13180b))){const _0x4412e3=_0x223447['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x223447['config']['get']('fontSize.options'))['find'](_0x3d6475=>_0x3d6475['model']==_0x13180b);return _0x20ec4b+'\x20('+(_0x4412e3?_0x3c6a73(_0x4412e3['title'])['toLowerCase']():_0x13180b)+')';}return _0x20ec4b+'\x20('+_0x13180b+')';}var ae=class extends _0x26ff96{afterInit(){const _0x4486b0=this['editor'];if(!_0x4486b0['plugins']['has']('GeneralHtmlSupport')||!_0x4486b0['plugins']['has']('DataSchema'))return;const _0x296253=_0x4486b0['plugins']['get']('TrackChangesEditing'),_0x13a7d7=_0x4486b0['plugins']['get']('GeneralHtmlSupport'),_0x5b803a=_0x4486b0['plugins']['get']('DataSchema'),_0x5c7a7e=_0x4486b0['locale'],_0xac1023=new Set(['htmlContent']);for(const _0x26822a of _0x5b803a['getDefinitionsForView'](/.*/,!0x1)){const _0x594cc4=_0x26822a['view'],_0x11d8b4=_0x13a7d7['getGhsAttributeNameForElement'](_0x594cc4);_0xac1023['add'](_0x11d8b4),!_0x26822a['isInline']||_0x26822a['isObject']||'appliesToBlock'in _0x26822a&&_0x26822a['appliesToBlock']||_0x296253['descriptionFactory']['registerAttributeLabel'](_0x11d8b4,_0x594cc4),_0x26822a['model']['startsWith']('html')&&_0x296253['descriptionFactory']['registerElementLabel'](_0x26822a['model'],_0x1e549b=>Mt(_0x5c7a7e,'ELEMENT_HTML_TAG',[_0x1e549b,_0x594cc4]));}_0x296253['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x5c7a7e,'FORMAT_RAW_HTML_CONTENT')),_0x296253['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x5c7a7e,'FORMAT_HTML_LIST_ITEM')),_0x296253['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x5c7a7e,'FORMAT_HTML_BULLETED_LIST')),_0x296253['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x5c7a7e,'FORMAT_HTML_NUMBERED_LIST')),_0x296253['descriptionFactory']['registerDescriptionCallback'](_0x48d265=>{if('attribute'!==_0x48d265['type'])return;const _0x344d82=_0x48d265['data'];if(!_0x344d82||!_0xac1023['has'](_0x344d82['key']))return;if('htmlContent'===_0x344d82['key'])return{'type':'format','content':Mt(_0x5c7a7e,'*Change\x20%0\x20content*',Mt(_0x5c7a7e,'ELEMENT_RAW_HTML'))};const {setItems:_0x15deae,removeItems:_0x4e8e26}=function(_0x1aaffb,_0x2d5224,_0x487e27){const _0x4c6141=[],_0x3bad9d=[],_0x1a2f78=_0x1aaffb['styles']??{},_0x573095=_0x2d5224['styles']??{};for(const _0x2c8b3c of new Set([...Object['keys'](_0x1a2f78),...Object['keys'](_0x573095)]))_0x1a2f78[_0x2c8b3c]!==_0x573095[_0x2c8b3c]&&(void 0x0===_0x573095[_0x2c8b3c]?_0x3bad9d['push'](_0x2c8b3c):_0x4c6141['push'](_0x2c8b3c+'\x20('+_0x573095[_0x2c8b3c]+')'));const _0x1db6ab=Mt(_0x487e27,'FORMAT_HTML_CLASS'),_0x5ecbfc=new Set(_0x1aaffb['classes']??[]),_0x1604c0=new Set(_0x2d5224['classes']??[]),_0x4fd7c4=[..._0x1604c0]['some'](_0x34aebe=>!_0x5ecbfc['has'](_0x34aebe)),_0x1e2cc0=[..._0x5ecbfc]['some'](_0x39e888=>!_0x1604c0['has'](_0x39e888));_0x4fd7c4&&_0x4c6141['push'](_0x1db6ab),_0x1e2cc0&&_0x3bad9d['push'](_0x1db6ab);const _0x53404=Mt(_0x487e27,'FORMAT_HTML_ATTRIBUTE'),_0x5e23ad=_0x1aaffb['attributes']??{},_0x1d81ec=_0x2d5224['attributes']??{};let _0x1fd7b1=!0x1,_0x8fa30a=!0x1;for(const _0x511e88 of new Set([...Object['keys'](_0x5e23ad),...Object['keys'](_0x1d81ec)]))_0x5e23ad[_0x511e88]!==_0x1d81ec[_0x511e88]&&(void 0x0===_0x1d81ec[_0x511e88]?_0x8fa30a=!0x0:_0x1fd7b1=!0x0);return _0x1fd7b1&&_0x4c6141['push'](_0x53404),_0x8fa30a&&_0x3bad9d['push'](_0x53404),{'setItems':_0x4c6141,'removeItems':_0x3bad9d};}(_0x344d82['oldValue']??{},_0x344d82['newValue']??{},_0x5c7a7e);if(!_0x15deae['length']&&!_0x4e8e26['length'])return;const _0x9fb9f5=[];return _0x15deae['length']&&_0x9fb9f5['push'](Mt(_0x5c7a7e,'*Set\x20format:*\x20%0',_0x15deae['join'](',\x20'))),_0x4e8e26['length']&&_0x9fb9f5['push'](Mt(_0x5c7a7e,'*Remove\x20format:*\x20%0',_0x4e8e26['join'](',\x20'))),{'type':'format','content':_0x9fb9f5['join']('\x0a')};});}},ce=class extends _0x26ff96{_headingOptions;afterInit(){const _0x527690=this['editor'];if(!_0x527690['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x527690['config']['get']('heading.options');const _0x6d539c=_0x527690['locale'],_0x56f55e=_0x527690['plugins']['get']('TrackChangesEditing');_0x56f55e['enableDefaultAttributesIntegration']('heading');for(const _0x247e09 of this['_headingOptions'])'paragraph'!=_0x247e09['model']&&_0x56f55e['descriptionFactory']['registerElementLabel'](_0x247e09['model'],_0x344219=>{const _0x1cfb38=this['_getHeadingLevel'](_0x247e09['model']);return null!==_0x1cfb38?_0x365191(_0x344219,_0x1cfb38):_0x2b8876(_0x344219,_0x247e09['title']);});function _0x365191(_0x48fbbf,_0x179215){return Mt(_0x6d539c,'ELEMENT_HEADING',[_0x48fbbf,_0x179215]);}function _0x2b8876(_0x47656a,_0x2f5d81){return Mt(_0x6d539c,'ELEMENT_HEADING_CUSTOM',[_0x47656a,_0x2f5d81]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x194e2b=this['editor'],_0x530702=_0x194e2b['locale'];function _0x28cbd0(_0x211fda,_0xca3cb3){return Mt(_0x530702,'ELEMENT_HEADING_CUSTOM',[_0x211fda,_0xca3cb3]);}_0x194e2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173a11=>{if('formatBlock'!=_0x173a11['type'])return;const {data:_0x1199bb}=_0x173a11;if(_0x1199bb&&'heading'==_0x1199bb['commandName']){const _0x55ee52=_0x1199bb['commandParams'][0x0]['value'],_0x12f671=this['_getHeadingLevel'](_0x55ee52);if(null!==_0x12f671)return{'type':'format','content':Mt(_0x530702,'*Change\x20to:*\x20%0',(_0x10525c=0x1,_0x497c0b=_0x12f671,Mt(_0x530702,'ELEMENT_HEADING',[_0x10525c,_0x497c0b])))};const _0x285892=this['_headingOptions']['find'](_0x102fe7=>_0x102fe7['model']===_0x55ee52)['title'];return{'type':'format','content':Mt(_0x530702,'*Change\x20to:*\x20%0',_0x28cbd0(0x1,_0x285892))};}var _0x10525c,_0x497c0b;});}_getHeadingLevel(_0x259705){const _0x366351=_0x259705['match'](/^heading(\d+)/);if(_0x366351)return _0x366351[0x1];const _0xfd1b1d=this['_headingOptions']?.['find'](_0x41a252=>_0x41a252['model']==_0x259705);if(_0xfd1b1d&&_0xfd1b1d['view']){const _0x2dc6dd=_0xfd1b1d['view'],_0x2a7833=(_0x2dc6dd['name']??_0x2dc6dd)['match'](/^h(\d+)/);if(_0x2a7833)return _0x2a7833[0x1];}return null;}},le=class extends _0x26ff96{afterInit(){const _0x5560d3=this['editor'];if(!_0x5560d3['plugins']['has']('HighlightEditing'))return;const _0x55928f=_0x5560d3['plugins']['get']('TrackChangesEditing'),_0x5b00ba=_0x5560d3['locale'];_0x55928f['enableDefaultAttributesIntegration']('highlight'),_0x55928f['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x5b00ba,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x34cf8e=this['editor'],_0x4ed3b6=_0x34cf8e['locale'];_0x34cf8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x342e30=>{if('formatInline'!=_0x342e30['type'])return;const {data:_0x5ac7b4}=_0x342e30;if(_0x5ac7b4&&'highlight'==_0x5ac7b4['commandName']){const _0x346878=_0x4ed3b6['t'],_0x894821=_0x5ac7b4['commandParams'][0x0]['value'];if(_0x894821){const _0x5ae189=_0x34cf8e['config']['get']('highlight.options')['find'](_0xd63400=>_0xd63400['model']==_0x894821),_0x79f3bb=_0x346878(_0x5ae189['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x4ed3b6,'*Set\x20highlight:*\x20%0',_0x79f3bb),'color':{'value':_0x5ae189['color'],'title':_0x5ae189['title']}};}return{'type':'format','content':Mt(_0x4ed3b6,'*Remove\x20highlight*',Mt(_0x4ed3b6,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x26ff96{afterInit(){const _0x3e49ac=this['editor'];if(!_0x3e49ac['plugins']['has']('HorizontalLineEditing'))return;_0x3e49ac['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4b8c40=_0x3e49ac['plugins']['get']('TrackChangesEditing'),_0x20fcb0=_0x3e49ac['locale'];_0x4b8c40['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd8e03e=>Mt(_0x20fcb0,'ELEMENT_HORIZONTAL_LINE',_0xd8e03e));}},de=class extends _0x26ff96{afterInit(){const _0x399325=this['editor'];if(!_0x399325['plugins']['has']('HtmlEmbed'))return;const _0x506cf3=_0x399325['plugins']['get']('TrackChangesEditing'),_0x355844=_0x399325['locale'];_0x506cf3['descriptionFactory']['registerElementLabel']('rawHtml',_0x220b80=>Mt(_0x355844,'ELEMENT_HTML_EMBED',_0x220b80)),_0x506cf3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x506cf3['descriptionFactory']['registerDescriptionCallback'](_0x211be0=>{if('attribute'!=_0x211be0['type'])return;const {data:_0x503946}=_0x211be0;if(_0x503946&&'value'==_0x503946['key']&&_0x211be0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1eb58d=Mt(_0x355844,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x355844,'*Change\x20%0\x20content*',_0x1eb58d)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1c72a6=this['editor'],_0x1053d0=_0x1c72a6['locale'];_0x1c72a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eef1b=>{if('formatBlock'!=_0x4eef1b['type'])return;const {data:_0x28433b}=_0x4eef1b;if(_0x28433b&&'htmlEmbed'==_0x28433b['commandName']){const _0x989465=Mt(_0x1053d0,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x1053d0,'*Change\x20%0\x20content*',_0x989465)};}});}},he=class extends _0x26ff96{afterInit(){const _0x1261a9=this['editor'];if(!_0x1261a9['plugins']['has']('ImageEditing'))return;const _0x4d31ac=_0x1261a9['plugins']['get']('TrackChangesEditing'),_0x25e143=_0x1261a9['plugins']['get']('ImageUtils'),_0x8ba650=_0x1261a9['locale'];_0x4d31ac['enableCommand']('insertImage'),_0x4d31ac['descriptionFactory']['registerElementLabel']('imageBlock',_0xfd1ff8=>Mt(_0x8ba650,'ELEMENT_IMAGE',_0xfd1ff8)),_0x4d31ac['descriptionFactory']['registerElementLabel']('imageInline',_0x490d79=>Mt(_0x8ba650,'ELEMENT_INLINE_IMAGE',_0x490d79)),_0x4d31ac['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x8ba650,'ELEMENT_CAPTION')),_0x1261a9['plugins']['has']('ImageUploadEditing')&&_0x4d31ac['enableCommand']('uploadImage'),_0x1261a9['plugins']['has']('ImageBlockEditing')&&_0x1261a9['plugins']['has']('ImageInlineEditing')&&(_0x4d31ac['enableCommand']('imageTypeInline',(_0x1d5df4,_0x5994bb)=>{const _0x79a2e9=_0x25e143['getClosestSelectedImageElement'](_0x1261a9['model']['document']['selection']);_0x1261a9['model']['change'](()=>{_0x4d31ac['markBlockFormat'](_0x79a2e9,{'commandName':'imageTypeInline','commandParams':[_0x5994bb]},[],'convertBlockImageToInline');});}),_0x4d31ac['enableCommand']('imageTypeBlock',(_0x869dad,_0x1f1a39)=>{_0x1261a9['model']['change'](_0x87ef9e=>{let _0x3985fa=_0x25e143['getClosestSelectedImageElement'](_0x1261a9['model']['document']['selection']),_0x5cab8c=_0x87ef9e['createRangeOn'](_0x3985fa);const _0x1b964c=st['fromPosition'](_0x5cab8c['start'],'toPrevious'),_0x40ca26=st['fromPosition'](_0x5cab8c['end'],'toNext');_0x4d31ac['forceDefaultExecution'](()=>_0x869dad(_0x1f1a39)),_0x3985fa=_0x25e143['getClosestSelectedImageElement'](_0x1261a9['model']['document']['selection']),_0x5cab8c=_0x87ef9e['createRangeOn'](_0x3985fa);const _0xb96110=_0x87ef9e['createRange'](_0x1b964c,_0x40ca26);_0x1b964c['detach'](),_0x40ca26['detach'](),_0x4d31ac['markBlockFormat'](_0x3985fa,{'commandName':'imageTypeInline','commandParams':[_0x1f1a39]},[],'convertInlineImageToBlock'),_0xb96110['start']['isBefore'](_0x5cab8c['start'])&&_0x4d31ac['markInsertion'](_0x87ef9e['createRange'](_0xb96110['start'],_0x5cab8c['start']),'convertInlineImageToBlock'),_0x5cab8c['end']['isBefore'](_0xb96110['end'])&&_0x4d31ac['markInsertion'](_0x87ef9e['createRange'](_0x5cab8c['end'],_0xb96110['end']),'convertInlineImageToBlock');});}),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d31ac['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x442f4f])=>{const _0x2071aa=_0x4d31ac['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x141cd8=_0x442f4f['start'],_0x210e62=_0x442f4f['end'];const _0x841205=_0x1261a9['model']['schema']['getNearestSelectionRange'](_0x141cd8,'backward'),_0x59f280=_0x1261a9['model']['schema']['getNearestSelectionRange'](_0x210e62,'forward');_0x841205['isCollapsed']&&(_0x141cd8=_0x841205['start']),_0x59f280['isCollapsed']&&(_0x210e62=_0x59f280['end']),_0x2071aa([_0x1261a9['model']['createRange'](_0x141cd8,_0x210e62)]);}),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x35384a),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x35384a)),_0x1261a9['plugins']['has']('ImageCaptionEditing')&&(_0x4d31ac['enableCommand']('toggleImageCaption',(_0x7d9600,_0x10f1d3)=>{const _0x210b16=_0x1261a9['plugins']['get']('ImageCaptionUtils');let _0x2717fd=_0x25e143['getClosestSelectedImageElement'](_0x1261a9['model']['document']['selection']),_0x126f9c=_0x210b16['getCaptionFromImageModelElement'](_0x2717fd);_0x1261a9['model']['change'](()=>{if(_0x126f9c)return void _0x4d31ac['markDeletion'](_0x1261a9['model']['createRangeOn'](_0x126f9c));const _0x46d603=_0x25e143['isBlockImage'](_0x2717fd);_0x7d9600(_0x10f1d3),_0x2717fd=_0x25e143['getClosestSelectedImageElement'](_0x1261a9['model']['document']['selection']),_0x126f9c=_0x210b16['getCaptionFromImageModelElement'](_0x2717fd),_0x4d31ac['markInsertion'](_0x1261a9['model']['createRangeOn'](_0x126f9c),_0x46d603?null:'imageCaption');});}),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x35384a));const _0x5d4a5f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46d0d4(_0x30d2dd,_0x824157){const _0x5615bd=_0x5d4a5f['findIndex'](({type:_0x5831ef,subType:_0x39dce9})=>_0x30d2dd['type']==_0x5831ef&&_0x30d2dd['subType']==_0x39dce9),_0x518282=_0x5d4a5f['findIndex'](({type:_0x163df7,subType:_0xee1c})=>_0x824157['type']==_0x163df7&&_0x824157['subType']==_0xee1c);if(_0x5615bd<0x0||_0x518282<0x0)return!0x1;const _0x2d3039=_0x30d2dd['getFirstRange'](),_0x139114=_0x824157['getFirstRange']();if((0x0==_0x5615bd||0x1==_0x5615bd)&&0x2==_0x518282&&_0x2d3039['isIntersecting'](_0x139114))return!0x0;if(0x2==_0x5615bd&&0x3==_0x518282){const _0x5a2b31=_0x4d31ac['_findSuggestions'](_0x2d3039,'insertion')['filter'](({suggestion:_0xc95f76,meta:_0x14a21b})=>_0x14a21b['isOwn']&&'convertInlineImageToBlock'==_0xc95f76['subType']);if(_0x5a2b31['length']>0x1&&_0x139114['end']['isEqual'](_0x2d3039['start']))return!0x0;if(0x1==_0x5a2b31['length']&&(_0x2d3039['start']['isEqual'](_0x139114['end'])||_0x2d3039['end']['isEqual'](_0x139114['start'])))return!0x0;}if(0x3==_0x5615bd&&0x3==_0x518282&&_0x2d3039['start']['isBefore'](_0x139114['start'])){const _0x3594d0=_0x2d3039['end']['nodeAfter'],_0xae46df=_0x139114['start']['nodeBefore'];return _0x25e143['isBlockImage'](_0x3594d0)&&_0x3594d0===_0xae46df;}return!0x1;}function _0x35384a(_0x852787,_0x1cc3fa){return _0x46d0d4(_0x852787,_0x1cc3fa)?[_0x852787,_0x1cc3fa]:_0x46d0d4(_0x1cc3fa,_0x852787)?[_0x1cc3fa,_0x852787]:null;}_0x1261a9['plugins']['has']('ImageResize')&&(_0x4d31ac['enableDefaultAttributesIntegration']('resizeImage'),_0x4d31ac['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x8ba650,'FORMAT_IMAGE_SIZE'))),_0x1261a9['plugins']['has']('ImageTextAlternativeEditing')&&_0x4d31ac['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1261a9['plugins']['has']('PictureEditing')&&_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x430de5=>{if('attribute'!=_0x430de5['type'])return;const {data:_0x5f0940}=_0x430de5;return _0x5f0940&&'sources'==_0x5f0940['key']?{'type':'format','content':''}:void 0x0;}),_0x1261a9['plugins']['has']('ImageSizeAttributes')&&_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x285f05=>{if('attribute'!=_0x285f05['type'])return;const {data:_0x2548a8}=_0x285f05;return!_0x2548a8||'width'!=_0x2548a8['key']&&'height'!=_0x2548a8['key']?void 0x0:{'type':'format','content':''};}),_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x1b0b9f=>{if(_0x5d4a5f['find'](({type:_0x3803cd,subType:_0x18c44f})=>_0x1b0b9f['type']==_0x3803cd&&_0x1b0b9f['subType']==_0x18c44f))return _0x1b0b9f['previous']?{}:void 0x0;}),_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x20e9d5=>{if('insertion'==_0x20e9d5['type']||'deletion'==_0x20e9d5['type']){const _0x5d1ca2=_0x20e9d5['getContainedElement']();if(_0x5d1ca2&&_0x5d1ca2['is']('element','caption'))return{'type':'insertion'==_0x20e9d5['type']?'addObject':'removeObject','element':_0x5d1ca2,'quantity':0x1};}}),_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x5b72ff=>'formatBlock'==_0x5b72ff['type']&&'convertInlineImageToBlock'==_0x5b72ff['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5b72ff['type']&&'convertBlockImageToInline'==_0x5b72ff['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x43cf3f=>{if('attribute'!=_0x43cf3f['type'])return;const {data:_0x5b4119}=_0x43cf3f;if(!_0x5b4119||'alt'!=_0x5b4119['key'])return;const _0x4193d2=_0x5b4119['newValue'];return _0x4193d2?{'type':'format','content':Mt(_0x8ba650,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4193d2+'\x22')}:{'type':'format','content':Mt(_0x8ba650,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x54cf0c=this['editor'],_0x1faf0f=_0x54cf0c['locale'];_0x54cf0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x507352=>{if('formatBlock'!=_0x507352['type']&&'formatInline'!=_0x507352['type'])return;const {data:_0x583128}=_0x507352;if(_0x583128){if('imageTextAlternative'==_0x583128['commandName']){const _0xa51d23=_0x583128['commandParams'][0x0]['newValue'];return _0xa51d23?{'type':'format','content':Mt(_0x1faf0f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa51d23+'\x22')}:{'type':'format','content':Mt(_0x1faf0f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x583128['commandName']){const _0x3c96f9=_0x583128['commandParams'][0x0]['width'];return _0x3c96f9?{'type':'format','content':Mt(_0x1faf0f,'*Set\x20image\x20width:*\x20%0',_0x3c96f9)}:{'type':'format','content':Mt(_0x1faf0f,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x26ff96{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x13428a=this['editor']['locale'],_0x2f526b=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f526b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2f526b['descriptionFactory']['registerDescriptionCallback'](_0x379246=>{if('attribute'!=_0x379246['type'])return;const {data:_0x5c813c}=_0x379246;return _0x5c813c&&'src'==_0x5c813c['key']?_0x5c813c['newValue']&&_0x5c813c['oldValue']?{'type':'format','content':Mt(_0x13428a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x200baf=this['editor']['plugins']['get']('TrackChangesEditing');_0x200baf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x200baf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x200baf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x200baf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3708b9=this['editor'],_0x19a093=_0x3708b9['locale'];_0x3708b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d5bcc=>{if('formatBlock'!=_0x5d5bcc['type']&&'formatInline'!=_0x5d5bcc['type'])return;const {data:_0x1573bf}=_0x5d5bcc;return _0x1573bf&&'replaceImageSource'==_0x1573bf['commandName']?{'type':'format','content':Mt(_0x19a093,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x26ff96{afterInit(){const _0x10ed78=this['editor'];if(!_0x10ed78['plugins']['has']('ImageStyleEditing'))return;const _0x4c1fbf=_0x10ed78['plugins']['get']('TrackChangesEditing'),_0xd138db=_0x10ed78['plugins']['get']('ImageUtils'),_0x119b0b={};_0x4c1fbf['enableCommand']('imageStyle',(_0x37e145,_0x3a23ad)=>{const _0xa676c5=_0x10ed78['plugins']['get']('Users')['me'],_0xb10f54=_0x10ed78['commands']['get']('imageStyle');let _0x32c066=_0xd138db['getClosestSelectedImageElement'](_0x10ed78['model']['document']['selection']),_0x519ceb=_0x10ed78['model']['createRangeOn'](_0x32c066),_0x2743d6=_0xb10f54['value'];if(_0x2743d6==_0x3a23ad['value'])return;if(_0x3a23ad['value']&&_0xd138db['isInlineImage'](_0x32c066)&&!_0xb10f54['isStyleEnabled'](_0x3a23ad['value']))return;const _0x25cdfe={'commandName':'imageStyle','commandParams':[_0x3a23ad],'formatGroupId':_0x3a663f()};_0x10ed78['model']['change'](()=>{if(_0x4c1fbf['getSuggestions']()['filter'](_0x28a696=>_0x28a696['isInContent']&&_0xa676c5==_0x28a696['author']&&('formatBlock'==_0x28a696['type']||'formatInline'==_0x28a696['type'])&&('imageStylePreApply'==_0x28a696['subType']||'imageStylePostApply'==_0x28a696['subType'])&&_0x28a696['getFirstRange']()['isEqual'](_0x519ceb))['forEach'](_0x197b0a=>_0x4c1fbf['discardSuggestion'](_0x197b0a['head'])),_0x32c066=_0xd138db['getClosestSelectedImageElement'](_0x10ed78['model']['document']['selection']),_0x519ceb=_0x10ed78['model']['createRangeOn'](_0x32c066),_0xb10f54['refresh'](),_0x10ed78['commands']['get']('imageTypeInline')['refresh'](),_0x10ed78['commands']['get']('imageTypeBlock')['refresh'](),_0x2743d6=_0xb10f54['value'],_0x2743d6!=_0x3a23ad['value'])return _0xd138db['isInlineImage'](_0x32c066)&&_0xb10f54['shouldConvertImageType'](_0x3a23ad['value'],_0x32c066)?(_0x37e145({..._0x3a23ad,'setImageSizes':!0x1}),_0x32c066=_0xd138db['getClosestSelectedImageElement'](_0x10ed78['model']['document']['selection']),void _0x4c1fbf['markBlockFormat'](_0x32c066,{..._0x25cdfe,'commandReversedParams':[{'value':_0x2743d6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xd138db['isBlockImage'](_0x32c066)?_0x4c1fbf['markBlockFormat'](_0x32c066,_0x25cdfe,[],'imageStylePostApply'):_0x4c1fbf['markInlineFormat'](_0x519ceb,_0x25cdfe,'imageStylePostApply'));});});for(const _0x579069 of _0x10ed78['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x119b0b[_0x579069['name']]=_0x579069['title']['toLowerCase']();_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x563676])=>{_0xd138db['setImageNaturalSizeAttributes'](_0x563676['getContainedElement']());}),_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5a76da,_0x2e8c20)=>{_0x4c1fbf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5a76da,{'commandName':_0x2e8c20['commandName'],'commandParams':_0x2e8c20['commandReversedParams']});}),_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2bb55b,_0x2f8646){return _0x5e00a4(_0x2bb55b,_0x2f8646)?[_0x2bb55b,_0x2f8646]:_0x5e00a4(_0x2f8646,_0x2bb55b)?[_0x2f8646,_0x2bb55b]:null;});const _0x4d3ab7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e00a4(_0x2e7285,_0x59fe01){const _0x2ab1e7=_0x4d3ab7['findIndex'](({type:_0x2267bd,subType:_0x3376b6})=>_0x2e7285['type']==_0x2267bd&&_0x2e7285['subType']==_0x3376b6),_0x3c19fd=_0x4d3ab7['findIndex'](({type:_0x2d6d81,subType:_0x4868af})=>_0x59fe01['type']==_0x2d6d81&&_0x59fe01['subType']==_0x4868af);if(_0x2ab1e7<0x0||_0x3c19fd<0x0)return!0x1;const _0x1018fb=_0x2e7285['getFirstRange'](),_0x5ce9e9=_0x59fe01['getFirstRange']();if((0x0==_0x2ab1e7||0x1==_0x2ab1e7)&&0x2==_0x3c19fd&&_0x1018fb['isIntersecting'](_0x5ce9e9))return!0x0;if(0x2==_0x2ab1e7&&0x3==_0x3c19fd){const _0x1383f7=_0x4c1fbf['_findSuggestions'](_0x1018fb,'insertion')['filter'](({suggestion:_0xbe656b,meta:_0x4342ea})=>_0x4342ea['isOwn']&&'convertInlineImageToBlock'==_0xbe656b['subType']);if(_0x1383f7['length']>0x1&&_0x5ce9e9['end']['isEqual'](_0x1018fb['start']))return!0x0;if(0x1==_0x1383f7['length']&&(_0x1018fb['start']['isEqual'](_0x5ce9e9['end'])||_0x1018fb['end']['isEqual'](_0x5ce9e9['start'])))return!0x0;}if(0x3==_0x2ab1e7&&0x3==_0x3c19fd&&_0x1018fb['start']['isBefore'](_0x5ce9e9['start'])){const _0x3af379=_0x1018fb['end']['nodeAfter'],_0x34e965=_0x5ce9e9['start']['nodeBefore'];return _0xd138db['isBlockImage'](_0x3af379)&&_0x3af379===_0x34e965;}return!0x1;}_0x10ed78['model']['document']['registerPostFixer'](()=>{let _0x31756b=!0x1;const _0x1de508=Array['from'](_0x10ed78['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5628a4,data:_0x1152f2}of _0x1de508){const {group:_0x3b4eb8,type:_0x209fd9,subType:_0x4c63a1,id:_0x3c3209}=tt(_0x5628a4);if('suggestion'==_0x3b4eb8&&_0x4c1fbf['hasSuggestion'](_0x3c3209)){if('formatBlock'==_0x209fd9&&('imageStylePreApply'==_0x4c63a1||'imageStylePostApply'==_0x4c63a1)){const _0x18c130=_0x4c1fbf['getSuggestion'](_0x3c3209);if(_0x1152f2['newRange']){const _0x4c593=_0x18c130['getFirstRange']()['getContainedElement']();if(_0xd138db['isBlockImage'](_0x4c593))continue;_0x4c1fbf['discardSuggestion'](_0x18c130),_0x31756b=!0x0;}}if('insertion'==_0x209fd9&&'imageCaption'==_0x4c63a1&&!_0x1152f2['newRange']){const _0xbb68a9=_0x4c1fbf['getSuggestion'](_0x3c3209);_0xbb68a9['next']&&_0xbb68a9['next']['isInContent']&&(_0x4c1fbf['discardSuggestion'](_0xbb68a9['next']),_0x31756b=!0x0);}}}return _0x31756b;}),this['_registerLegacyDescription'](_0x119b0b);}_registerLegacyDescription(_0x42c8d3){const _0x18f983=this['editor'],_0x2a6682=_0x18f983['locale'];_0x18f983['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ab2a9=>{if('formatBlock'!=_0x2ab2a9['type']&&'formatInline'!=_0x2ab2a9['type'])return;const {data:_0x2a699f}=_0x2ab2a9;if(!_0x2a699f||'imageStyle'!=_0x2a699f['commandName'])return;const _0x3ee5cc=_0x2a699f['commandParams'][0x0]['value'];return _0x35bf52('side'===_0x3ee5cc?Mt(_0x2a6682,'FORMAT_SIDE_IMAGE'):_0x42c8d3[_0x3ee5cc]||_0x3ee5cc);function _0x35bf52(_0x1a32c1){return{'type':'format','content':Mt(_0x2a6682,'*Format:*\x20%0',_0x1a32c1)};}});}},me=class extends _0x26ff96{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x2732d6){super(_0x2732d6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x40301c=this['editor'],_0x3f4cba=_0x40301c['commands']['get']('importWord'),_0x240d70=_0x40301c['commands']['get']('trackChanges');_0x3f4cba&&(_0x3f4cba['on']('execute',(_0x57d834,[,_0x5b56af])=>{this['_trackChangesValueDuringImport']=_0x240d70['value'],_0x5b56af['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3f4cba,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3f4cba,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x240d70['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x40301c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x3868a3,_0x939fcd){const {suggestions:_0x3a8d9c}=_0x939fcd,_0x63e45f=this['editor']['commands']['get']('trackChanges'),_0xd036a3=_0x63e45f['value'];this['_trackChangesValueDuringImport']!==_0xd036a3&&(_0x63e45f['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a8d9c&&_0x3a8d9c['forEach'](({id:_0x2d65bb,type:_0x3f94a2,author:_0x798b26,created_at:_0xa9a1e6})=>{const _0x22e09={'id':_0x2d65bb,'type':_0x3f94a2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x798b26,'createdAt':_0xa9a1e6?new Date(_0xa9a1e6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x22e09);});}},Ee=class extends _0x26ff96{afterInit(){const _0x2f9661=this['editor'],_0x5af94f=_0x2f9661['plugins']['get']('TrackChangesEditing');if(_0x2f9661['plugins']['has']('IndentEditing')&&(_0x5af94f['enableCommand']('indent'),_0x5af94f['enableCommand']('outdent')),_0x2f9661['plugins']['has']('IndentBlock')){for(const _0x5ee261 of['indentBlock','outdentBlock'])_0x5af94f['enableDefaultAttributesIntegration'](_0x5ee261);if(_0x2f9661['plugins']['has']('ListEditing')){for(const _0x10ef33 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5af94f['enableDefaultAttributesIntegration'](_0x10ef33);}}const _0x3f714e=_0x2f9661['locale'];_0x5af94f['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x3f714e,'FORMAT_INDENT')),_0x5af94f['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x3f714e,'FORMAT_INDENT')),_0x5af94f['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x3f714e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4ee7d9=this['editor'],_0x15cf9b=_0x4ee7d9['locale'],_0x5cd48e=_0x4ee7d9['plugins']['get']('TrackChangesEditing');_0x5cd48e['descriptionFactory']['registerDescriptionCallback'](_0x4948a0=>{if('formatBlock'!=_0x4948a0['type'])return;const {data:_0x58b58e}=_0x4948a0;if(!_0x58b58e)return;if('indentBlock'!=_0x58b58e['commandName']&&'outdentBlock'!=_0x58b58e['commandName'])return;const _0x234842=_0x4948a0['getItems']()[0x0],_0x4dd357=_0x5cd48e['descriptionFactory']['getItemLabel'](_0x234842);return'indentBlock'==_0x58b58e['commandName']?{'type':'format','content':Mt(_0x15cf9b,'*Indent:*\x20%0',_0x4dd357)}:'outdentBlock'==_0x58b58e['commandName']?{'type':'format','content':Mt(_0x15cf9b,'*Outdent:*\x20%0',_0x4dd357)}:void 0x0;});}},Te=class extends _0x26ff96{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x26ff96{afterInit(){const _0x389190=this['editor'];if(!_0x389190['plugins']['has']('LinkEditing'))return;const _0x42bbfe=_0x389190['plugins']['get']('TrackChangesEditing'),_0x143753=_0x389190['commands']['get']('link');_0x42bbfe['enableDefaultAttributesIntegration']('link'),_0x42bbfe['enableDefaultAttributesIntegration']('unlink');for(const _0x170c64 of _0x143753['manualDecorators'])_0x42bbfe['descriptionFactory']['registerAttributeLabel'](_0x170c64['id'],'link\x20('+_0x170c64['label']['toLowerCase']()+')');_0x42bbfe['descriptionFactory']['registerDescriptionCallback'](_0x80ea79=>{if('attribute'!=_0x80ea79['type'])return;const {data:_0x217387}=_0x80ea79;if(!_0x217387||'linkHref'!=_0x217387['key'])return;const _0x4030d1=_0x217387['newValue'],_0xa245c4=_0x389190['locale'];return{'type':'format','content':null==_0x4030d1?Mt(_0xa245c4,'*Remove\x20link*'):Mt(_0xa245c4,'*Set\x20link:*\x20%0','\x22'+_0x4030d1+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x6159d0=this['editor'],_0x17f891=_0x6159d0['locale'];_0x6159d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a35de=>{if('formatInline'!=_0x4a35de['type'])return;const {data:_0x404cff}=_0x4a35de;if(_0x404cff){if('link'==_0x404cff['commandName']){const _0x590fc3=_0x404cff['commandParams'][0x0];return{'type':'format','content':Mt(_0x17f891,'*Set\x20link:*\x20%0','\x22'+_0x590fc3+'\x22')};}return'unlink'==_0x404cff['commandName']?{'type':'format','content':Mt(_0x17f891,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x26ff96{afterInit(){const _0x598a43=this['editor'],_0x4d3931=_0x598a43['locale'];if(!_0x598a43['plugins']['has']('LegacyListEditing'))return;const _0x17770c=_0x598a43['plugins']['get']('TrackChangesEditing'),_0x17d939=_0x598a43['plugins']['has']('LegacyTodoListEditing');function _0x5063ec(_0xeef08a){return()=>{const _0x10df45=_0x598a43['model']['document']['selection'],_0x30a1c6=_0x598a43['commands']['get'](_0xeef08a);if(_0x30a1c6['value'])return void _0x598a43['execute']('paragraph',{});const _0x39a4b7=_0xeef08a['slice'](0x0,-0x4),_0x44bbcf=function(_0x28a49a,_0x4e02a5,_0x83dba1){let _0x114ff9=Array['from'](_0x28a49a)['filter'](_0x3b524d=>function(_0x592fbf,_0x3c9697){return _0x3c9697['checkChild'](_0x592fbf['parent'],'listItem')&&!_0x3c9697['isObject'](_0x592fbf);}(_0x3b524d,_0x83dba1));_0x114ff9=_0x114ff9['filter'](_0x13e0ca=>!_0x13e0ca['is']('element','listItem')||_0x13e0ca['getAttribute']('listType')!=_0x4e02a5);const _0x46b75d=new Set();for(const _0x3922b1 of _0x114ff9)_0x3922b1['is']('element','listItem')?_0x46b75d['add'](Le(_0x3922b1)):_0x46b75d['add'](_0x3922b1);return Array['from'](_0x46b75d);}(_0x10df45['getSelectedBlocks'](),_0x39a4b7,_0x598a43['model']['schema']);_0x598a43['model']['change'](()=>{for(const _0x48152f of _0x44bbcf)_0x17770c['markBlockFormat'](_0x48152f,{'commandName':_0xeef08a,'commandParams':[{'forceValue':!_0x30a1c6['value']}],'formatGroupId':'blockName'},Ie(_0x48152f));});};}function _0x2fd665(_0x8e7cc1){return()=>{const _0x401cd0=function(_0x33c3a1){let _0x3c22f3=Array['from'](_0x33c3a1);const _0x2a344d=_0x3c22f3['findIndex'](_0x14b588=>'listItem'!=_0x14b588['name']);return _0x2a344d>-0x1&&(_0x3c22f3=_0x3c22f3['slice'](0x0,_0x2a344d)),_0x3c22f3;}(_0x598a43['model']['document']['selection']['getSelectedBlocks']()),_0x42e908=_0x598a43['model']['createRange'](_0x598a43['model']['createPositionAt'](_0x401cd0[0x0],'before'),_0x598a43['model']['createPositionAt'](_0x401cd0[_0x401cd0['length']-0x1],'end'));_0x598a43['model']['change'](()=>{_0x17770c['markBlockFormat'](_0x42e908,{'commandName':_0x8e7cc1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4028ce){const _0x1d4ab3=new Set();for(const _0x339aeb of _0x4028ce){let _0x3a47ae=_0x339aeb['nextSibling'];for(;_0x3a47ae&&_0x3a47ae['getAttribute']('listIndent')>_0x339aeb['getAttribute']('listIndent');)_0x1d4ab3['add'](_0x3a47ae),_0x3a47ae=_0x3a47ae['nextSibling'];}return Array['from'](_0x1d4ab3);}(_0x401cd0));});};}_0x17770c['enableCommand']('numberedList',_0x5063ec('numberedList')),_0x17770c['enableCommand']('bulletedList',_0x5063ec('bulletedList')),_0x17d939&&_0x17770c['enableCommand']('todoList',_0x5063ec('todoList')),_0x17770c['enableCommand']('indentList',_0x2fd665('indentList')),_0x17770c['enableCommand']('outdentList',_0x2fd665('outdentList')),_0x17d939&&_0x17770c['enableCommand']('checkTodoList',()=>{const _0x49bda5=_0x598a43['commands']['get']('checkTodoList'),_0xbe2876=Array['from'](_0x49bda5['_selectedElements']);_0xbe2876['filter'](_0x4b6a26=>_0x4b6a26['getAttribute']('todoListChecked')!=_0x49bda5['value']),_0x598a43['model']['change'](()=>{for(const _0x25be23 of _0xbe2876)_0x17770c['markBlockFormat'](_0x25be23,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x49bda5['value']}]});});}),_0x17770c['descriptionFactory']['registerElementLabel']('listItem',_0x434bfb=>Mt(_0x4d3931,'ELEMENT_LIST_ITEM',_0x434bfb)),_0x17770c['descriptionFactory']['registerDescriptionCallback'](_0x459127=>{if('formatBlock'!=_0x459127['type']&&'formatInline'!=_0x459127['type'])return;const {data:_0x44807d}=_0x459127;if(_0x44807d){if('numberedList'==_0x44807d['commandName']||'bulletedList'==_0x44807d['commandName']||'todoList'==_0x44807d['commandName'])switch(_0x44807d['commandName']['replace']('List','')){case'bulleted':return _0x546150(Mt(_0x4d3931,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x546150(Mt(_0x4d3931,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x546150(Mt(_0x4d3931,'ELEMENT_TODO_LIST'));}if('indentList'==_0x44807d['commandName'])return{'type':'format','content':Mt(_0x4d3931,'*Indent:*\x20%0',Mt(_0x4d3931,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x44807d['commandName'])return{'type':'format','content':Mt(_0x4d3931,'*Outdent:*\x20%0',Mt(_0x4d3931,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x44807d['commandName'])return _0x44807d['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4d3931,'*Check\x20item*')}:{'type':'format','content':Mt(_0x4d3931,'*Uncheck\x20item*')};}function _0x546150(_0x3d3fb6){return{'type':'format','content':Mt(_0x4d3931,'*Change\x20to:*\x20%0',_0x3d3fb6)};}});}};function Le(_0x3a9d93){const _0x36482f=_0x3a9d93['getAttribute']('listIndent');if(0x0==_0x36482f)return _0x3a9d93;let _0x2a908d=_0x3a9d93;for(;_0x3a9d93['previousSibling']&&_0x3a9d93['previousSibling']['is']('element','listItem');){const _0x37605d=_0x3a9d93['previousSibling']['getAttribute']('listIndent');if(_0x37605d==_0x36482f)_0x2a908d=_0x3a9d93['previousSibling'];else{if(_0x37605d<_0x36482f)break;}_0x3a9d93=_0x3a9d93['previousSibling'];}return _0x2a908d;}function Ie(_0x555144){const _0x4ed182=[];if(_0x555144['is']('element','listItem')&&_0x555144['getAttribute']('listIndent')>0x0){let _0x19da6d=_0x555144['nextSibling'];for(;_0x19da6d&&'listItem'==_0x19da6d['name']&&_0x19da6d['getAttribute']('listIndent')==_0x555144['getAttribute']('listIndent');)_0x4ed182['push'](_0x19da6d),_0x19da6d=_0x19da6d['nextSibling'];}return _0x4ed182;}var Ae=class extends _0x26ff96{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x259954=this['editor']['config']['get']('list.properties'),_0x326f55=this['editor']['plugins']['get']('TrackChangesEditing');_0x259954['styles']&&_0x326f55['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x259954['reversed']&&_0x326f55['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x259954['startIndex']&&_0x326f55['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x326f55['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x275147,_0x462ff4={}){const _0x291c65=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bdc17=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x291c65['markMultiRangeBlockFormat'](_0x5bdc17,{'commandName':'listStyle','commandParams':[{'type':_0x462ff4['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x59b88d,_0x5122b0={}){const _0x533c33=this['editor']['plugins']['get']('TrackChangesEditing'),_0x166307=this['_getSuggestionBlocks'](_0x6b7530=>_0x6b7530['is']('element','listItem')&&'numbered'===_0x6b7530['getAttribute']('listType'));if(_0x166307['length']<0x1)return;const _0x415c53=_0x166307['map'](_0x43c57d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x43c57d,'before'),this['editor']['model']['createPositionAt'](_0x43c57d,0x0)));this['editor']['model']['change'](()=>{_0x533c33['markMultiRangeBlockFormat'](_0x415c53,{'commandName':'listReversed','commandParams':[{'reversed':_0x5122b0['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x3afc9e,_0x54be03={}){const _0x35bf59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e5a93=this['_getSuggestionBlocks'](_0x5098f6=>_0x5098f6['is']('element','listItem')&&'numbered'===_0x5098f6['getAttribute']('listType'));if(_0x2e5a93['length']<0x1)return;const _0x1a5e18=_0x2e5a93['map'](_0x1e5fc8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e5fc8,'before'),this['editor']['model']['createPositionAt'](_0x1e5fc8,0x0)));this['editor']['model']['change'](()=>{_0x35bf59['markMultiRangeBlockFormat'](_0x1a5e18,{'commandName':'listStart','commandParams':[{'startIndex':_0x54be03['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0xa55583){if('formatBlock'!=_0xa55583['type']&&'formatInline'!=_0xa55583['type'])return;const _0x305fc9=this['editor']['locale'],{data:_0x26d45b}=_0xa55583;if(!_0x26d45b)return;let _0x81b6c3,_0x1f25ae;switch(_0x26d45b['commandName']){case'listStyle':_0x81b6c3='*Change\x20to:*\x20%0',_0x1f25ae={'type':'format','content':Mt(_0x305fc9,_0x81b6c3,Mt(_0x305fc9,this['_getTranslationKeyForListStyle'](_0x26d45b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x81b6c3=_0x26d45b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f25ae={'type':'format','content':Mt(_0x305fc9,_0x81b6c3)};break;case'listStart':_0x81b6c3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f25ae={'type':'format','content':Mt(_0x305fc9,_0x81b6c3,_0x26d45b['commandParams'][0x0]['startIndex'])};}return _0x1f25ae;}_getSuggestionBlocksForListStyle(){const _0x2b6312=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e2ffa=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5e2ffa[0x0]?.['is']('element','listItem')&&_0x5e2ffa['unshift'](..._0x2b6312['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5e2ffa[_0x5e2ffa['length']-0x1]?.['is']('element','listItem')&&_0x5e2ffa['push'](..._0x2b6312['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5e2ffa=[...new Set(_0x5e2ffa)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5e2ffa=_0x5e2ffa['filter'](_0x22c2d3=>_0x22c2d3['is']('element','listItem'))),_0x5e2ffa;}_getSuggestionBlocks(_0x5afd13){const _0x793f11=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c5d7a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5afd13)['map'](_0xa2b6bd=>{const _0x403b6b=this['editor']['model']['createPositionAt'](_0xa2b6bd,0x0);return[..._0x793f11['getSiblingNodes'](_0x403b6b,'backward'),..._0x793f11['getSiblingNodes'](_0x403b6b,'forward')];})['flat']();return _0x2c5d7a=[...new Set(_0x2c5d7a)],_0x2c5d7a;}_getTranslationKeyForListStyle(_0x43c399){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x43c399)||'default')['toUpperCase']()+'_LIST_'+_0x43c399['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x26ff96{afterInit(){const _0x2aca69=this['editor'];if(!_0x2aca69['plugins']['has']('MediaEmbedEditing'))return;const _0x138792=_0x2aca69['plugins']['get']('TrackChangesEditing'),_0x53a1c7=_0x2aca69['locale'];_0x138792['enableCommand']('mediaEmbed'),_0x138792['descriptionFactory']['registerElementLabel']('media',_0x240809=>Mt(_0x53a1c7,'ELEMENT_MEDIA',_0x240809)),_0x2aca69['plugins']['has']('MediaEmbedResizeEditing')&&(_0x138792['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x138792['descriptionFactory']['registerDescriptionCallback'](_0x45ae06=>{if('attribute'!=_0x45ae06['type'])return;const {data:_0x39354c}=_0x45ae06;if(!_0x39354c||'resizedWidth'!=_0x39354c['key'])return;const _0x115cc6=_0x45ae06['getContainedElement']();if(!_0x115cc6||!_0x115cc6['is']('element','media'))return;const _0x109ccb=Mt(_0x53a1c7,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x53a1c7,'*Set\x20format:*\x20%0',_0x109ccb)};}));}},ke=class extends _0x26ff96{afterInit(){const _0xee027c=this['editor'];if(!_0xee027c['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x408da6=_0xee027c['plugins']['get']('TrackChangesEditing'),_0x209ab8=_0xee027c['locale'],_0x2702c8=_0xee027c['plugins']['get']('MediaEmbedStyleEditing'),_0x3893cd={};for(const _0x3af2f2 of _0x2702c8['normalizedStyles'])_0x3893cd[_0x3af2f2['name']]=_0x3af2f2['title']['toLowerCase']();const _0x52056c=_0x2702c8['normalizedStyles']['find'](_0x271a1f=>_0x271a1f['isDefault'])?.['name'];_0x408da6['enableCommand']('mediaStyle',(_0x37a6ad,_0x407b7b)=>{const _0x3a7112=_0xee027c['plugins']['get']('Users')['me'],_0x544835=_0xee027c['commands']['get']('mediaStyle'),_0x110788=function(_0x2e4c4c){const _0x425b32=_0x2e4c4c['model']['document']['selection']['getSelectedElement']();return _0x425b32&&_0x425b32['is']('element','media')?_0x425b32:null;}(_0xee027c);if(!_0x110788)return;const _0x237036=_0xee027c['model']['createRangeOn'](_0x110788);let _0x527455=_0x544835['value'];if(_0x527455==_0x407b7b['value'])return;const _0xe1e1a1={'commandName':'mediaStyle','commandParams':[_0x407b7b],'formatGroupId':_0x3a663f()};_0xee027c['model']['change'](()=>{_0x408da6['getSuggestions']()['filter'](_0x11779a=>_0x11779a['isInContent']&&_0x3a7112==_0x11779a['author']&&'formatBlock'==_0x11779a['type']&&'mediaStylePostApply'==_0x11779a['subType']&&_0x11779a['getFirstRange']()['isEqual'](_0x237036))['forEach'](_0x48cb0b=>_0x408da6['discardSuggestion'](_0x48cb0b['head'])),_0x544835['refresh'](),_0x527455=_0x544835['value'],_0x527455!=_0x407b7b['value']&&_0x408da6['markBlockFormat'](_0x110788,{..._0xe1e1a1,'commandReversedParams':[{'value':'string'==typeof _0x527455?_0x527455:null}]},[],'mediaStylePostApply');});}),_0x408da6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x408da6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1f73a3,_0x5943a1)=>{_0x408da6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1f73a3,{'commandName':_0x5943a1['commandName'],'commandParams':_0x5943a1['commandReversedParams']});}),_0x408da6['descriptionFactory']['registerDescriptionCallback'](_0x5ec7da=>{if('formatBlock'!=_0x5ec7da['type'])return;const {data:_0x1e8569}=_0x5ec7da;if(!_0x1e8569||'mediaStyle'!=_0x1e8569['commandName'])return;const _0x44853f=_0x1e8569['commandParams'][0x0]['value']||_0x52056c;if(!_0x44853f)return;const _0x8278e8=_0x3893cd[_0x44853f]||_0x44853f;return{'type':'format','content':Mt(_0x209ab8,'*Format:*\x20%0',_0x8278e8)};});}},Ce=class extends _0x26ff96{afterInit(){const _0x27309e=this['editor'];_0x27309e['plugins']['has']('MentionEditing')&&_0x27309e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x26ff96{afterInit(){const _0x4612c2=this['editor'];if(!_0x4612c2['plugins']['has']('MergeFieldsEditing'))return;const _0x4c5ff8=_0x4612c2['plugins']['get']('TrackChangesEditing'),_0x41b336=_0x4612c2['locale'];_0x4c5ff8['enableCommand']('insertMergeField'),_0x4c5ff8['enableCommand']('insertMergeFieldBlock'),_0x4c5ff8['enableCommand']('insertMergeFieldImage'),_0x4c5ff8['descriptionFactory']['registerElementLabel']('mergeField',_0xb78ea0=>Mt(_0x41b336,'ELEMENT_MERGE_FIELD',_0xb78ea0)),_0x4c5ff8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5cf399=>Mt(_0x41b336,'ELEMENT_MERGE_FIELD',_0x5cf399)),_0x4c5ff8['descriptionFactory']['registerDescriptionCallback'](_0xee53dd=>{if('insertion'!=_0xee53dd['type']&&'deletion'!=_0xee53dd['type'])return;const _0x251a50=_0xee53dd['getContainedElement']();if(null==_0x251a50)return;const _0x102e2b=_0x4612c2['plugins']['get']('MergeFieldsEditing');let _0xaed41b;switch(_0x102e2b['getMergeFieldType'](_0x251a50)){case null:return;case'image':{const _0x10c422=_0x102e2b['unwrapAffixes'](_0x251a50['getAttribute']('src'));_0xaed41b=_0x102e2b['getLabel'](_0x10c422)||_0x10c422;break;}default:{const _0x53aadf=_0x251a50['getAttribute']('id');_0xaed41b=_0x102e2b['getLabel'](_0x53aadf)||_0x53aadf;break;}}return'insertion'==_0xee53dd['type']?{'type':'insertion','content':Mt(_0x41b336,'*Insert:*\x20%0','\x22'+_0xaed41b+'\x22\x20'+Mt(_0x41b336,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x41b336,'*Remove:*\x20%0','\x22'+_0xaed41b+'\x22\x20'+Mt(_0x41b336,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x26ff96{afterInit(){const _0x13bbc3=this['editor'],_0x3d32ed=_0x13bbc3['plugins']['get']('TrackChangesEditing');_0x13bbc3['plugins']['has']('MultiLevelList')&&(_0x3d32ed['enableDefaultAttributesIntegration']('multiLevelList'),_0x3d32ed['descriptionFactory']['registerDescriptionCallback'](_0x289593=>this['handleDescriptions'](_0x289593)));}handleDescriptions(_0x31b6c0){const _0x163e41=this['editor']['locale'],{data:_0x2e1a4d}=_0x31b6c0,_0x139d31={'type':'format','content':''};if(_0x2e1a4d&&'listMarkerStyle'==_0x2e1a4d['key']){if(!_0x2e1a4d['oldValue'])return{'type':'format','content':Mt(_0x163e41,'*Set\x20format:*\x20%0',Mt(_0x163e41,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e1a4d['newValue']+')'};if(!_0x2e1a4d['newValue']){let _0x487fd1=_0x31b6c0['head'];for(;_0x487fd1;){if(_0x487fd1['data']&&'listType'==_0x487fd1['data']['key']&&_0x487fd1['data']['newValue'])return _0x139d31;_0x487fd1=_0x487fd1['next'];}return{'type':'format','content':Mt(_0x163e41,'*Remove\x20format:*\x20%0',Mt(_0x163e41,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e1a4d['oldValue']+')'};}}}},Ne=class extends _0x26ff96{afterInit(){const _0x18b512=this['editor'];if(!_0x18b512['plugins']['has']('PageBreakEditing'))return;_0x18b512['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc24868=_0x18b512['plugins']['get']('TrackChangesEditing'),_0x5ba527=_0x18b512['locale'];_0xc24868['descriptionFactory']['registerElementLabel']('pageBreak',_0x3c3c26=>Mt(_0x5ba527,'ELEMENT_PAGE_BREAK',_0x3c3c26));}},Se=class extends _0x26ff96{afterInit(){const _0x372ab3=this['editor'];if(!_0x372ab3['plugins']['has']('Paragraph'))return;const _0x50478c=_0x372ab3['locale'],_0x104f28=_0x372ab3['plugins']['get']('TrackChangesEditing');_0x104f28['descriptionFactory']['registerElementLabel']('paragraph',_0x4b3579=>Mt(_0x50478c,'ELEMENT_PARAGRAPH',_0x4b3579)),_0x104f28['enableDefaultAttributesIntegration']('paragraph'),_0x104f28['enableCommand']('insertParagraph');const _0x10db7b=_0x104f28['descriptionFactory'];_0x10db7b['registerDescriptionCallback'](_0x23198c=>{if('insertion'!==_0x23198c['type'])return;const {start:_0xc7ea34,end:_0x3f8964}=_0x23198c['getFirstRange']();if(!_0xc7ea34['isTouching'](_0x3f8964)||!_0xc7ea34['nodeAfter'])return;const _0x3cb357=_0x372ab3['model']['schema'],_0x237bae=_0xc7ea34['nodeAfter'];return _0x3cb357['isBlock'](_0x237bae)&&!_0x3cb357['isLimit'](_0x237bae)&&_0x3cb357['checkChild'](_0x237bae,'$text')?{'type':'insertion','content':Mt(_0x50478c,'*Insert:*\x20%0',_0x10db7b['getItemLabel'](_0x237bae,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x31ec6d=this['editor'],_0x48ad1a=_0x31ec6d['locale'];_0x31ec6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a1183=>{if('formatBlock'!=_0x2a1183['type'])return;const {data:_0x14727f}=_0x2a1183;return _0x14727f&&'paragraph'==_0x14727f['commandName']?{'type':'format','content':Mt(_0x48ad1a,'*Change\x20to:*\x20%0',Mt(_0x48ad1a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x26ff96{afterInit(){const _0x58ad41=this['editor'];_0x58ad41['commands']['get']('replaceSource')&&_0x58ad41['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x26ff96{afterInit(){const _0x30c3c5=this['editor'];_0x30c3c5['plugins']['has']('RemoveFormatEditing')&&(_0x30c3c5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x185dba=this['editor'];_0x185dba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x265b8f=>{if('formatBlock'!=_0x265b8f['type']&&'formatInline'!=_0x265b8f['type'])return;const {data:_0x137141}=_0x265b8f;return _0x137141&&'removeFormat'==_0x137141['commandName']?{'type':'format','content':Mt(_0x185dba['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x26ff96{afterInit(){const _0x37d077=this['editor'];if(!_0x37d077['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x36e411=_0x37d077['plugins']['get']('TrackChangesEditing');_0x36e411['enableCommand']('goToPreviousRestrictedEditingException'),_0x36e411['enableCommand']('goToNextRestrictedEditingException');const _0x4a49a2=_0x37d077['plugins']['get']('RestrictedEditingModeEditing');_0x4a49a2['enableCommand']('trackChanges'),_0x4a49a2['enableCommand']('acceptSuggestion'),_0x4a49a2['enableCommand']('discardSuggestion'),_0x4a49a2['enableCommand']('acceptAllSuggestions'),_0x4a49a2['enableCommand']('discardAllSuggestions'),_0x4a49a2['enableCommand']('acceptSelectedSuggestions'),_0x4a49a2['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x26ff96{afterInit(){const _0x33f4ad=this['editor'];if(!_0x33f4ad['plugins']['has']('ShiftEnter'))return;const _0x44ed70=_0x33f4ad['plugins']['get']('TrackChangesEditing');_0x44ed70['enableCommand']('shiftEnter'),_0x44ed70['descriptionFactory']['registerElementLabel']('softBreak',_0x32e4fd=>Mt(_0x33f4ad['locale'],'ELEMENT_LINE_BREAK',_0x32e4fd));}};function Be(_0x38365e,_0x7d4739,_0x5c921a){const _0x3c568e=[];for(const _0x1a8a24 of _0x7d4739['getItems']())_0x1a8a24['hasAttribute'](_0x38365e)&&_0x3c568e['push'](_0x5c921a['createRangeOn'](_0x1a8a24));return _0x3c568e;}var ve=class extends _0x26ff96{afterInit(){const _0x5ad7a8=this['editor'],_0x3b63de=_0x5ad7a8['plugins']['get']('TrackChangesEditing');_0x5ad7a8['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3b63de['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x7f5626=this['editor'],_0x3e2dd9=_0x7f5626['model'],_0x374fe8=_0x7f5626['locale'],_0x4d8f22=_0x7f5626['plugins']['get']('TrackChangesEditing'),_0x55a9b8='restrictedEditingException',_0xf01f43=_0x7f5626['commands']['get'](_0x55a9b8);_0x4d8f22['enableCommand'](_0x55a9b8,(_0x19e5eb,_0x582dd4={})=>{const _0x456569=_0x3e2dd9['document']['selection'];if(_0x456569['isCollapsed'])return void _0x19e5eb(_0x582dd4);const _0x2de0c2=void 0x0!==_0x582dd4['forceValue']?_0x582dd4['forceValue']:!_0xf01f43['value'];_0x3e2dd9['change'](()=>{const _0x5530d0=Array['from'](_0x456569['getRanges']());for(const _0x3f77ab of _0x5530d0){const _0x2f5f08=_0x2de0c2?[_0x3f77ab]:Be(_0x55a9b8,_0x3f77ab,_0x3e2dd9);for(const _0x5b924e of _0x2f5f08)_0x4d8f22['markInlineFormat'](_0x5b924e,{'commandName':_0x55a9b8,'commandParams':[{'forceValue':_0x2de0c2}]});}});}),_0x4d8f22['descriptionFactory']['registerDescriptionCallback'](_0x53afd6=>{if('formatBlock'!=_0x53afd6['type']&&'formatInline'!=_0x53afd6['type'])return;const {data:_0x15efd9}=_0x53afd6;return _0x15efd9&&_0x15efd9['commandName']==_0x55a9b8?_0x15efd9['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x374fe8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x374fe8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x409d5e=this['editor'],_0x33004f=_0x409d5e['locale'],_0x20325c=_0x409d5e['plugins']['get']('TrackChangesEditing'),_0x4c356f='restrictedEditingExceptionBlock',_0xb50dde=this['editor']['commands']['get'](_0x4c356f);_0x20325c['enableCommand'](_0x4c356f,(_0x52ac58,_0x3140b0={})=>{const _0x4d5dd1=this['editor']['model']['document']['selection'],_0x5453fd=_0x3140b0&&void 0x0!==_0x3140b0['forceValue']?_0x3140b0['forceValue']:!_0xb50dde['value'];let _0x474e24=[];if(_0x5453fd){const _0x5ab37f=Array['from'](_0x4d5dd1['getSelectedBlocks']())['filter'](_0x32e3dd=>function(_0x5a95fb){return!!_0x5a95fb['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x32e3dd)||function(_0x2c49f9,_0x465bb6){const _0x40c4e9=_0x465bb6['createContext'](_0x2c49f9['parent']);return!!_0x465bb6['checkChild'](_0x40c4e9,'restrictedEditingException')&&!!_0x465bb6['checkChild'](_0x40c4e9['push']('restrictedEditingException'),_0x2c49f9);}(_0x32e3dd,this['editor']['model']['schema']));_0x474e24=bt(_0x5ab37f,_0x409d5e['model']);}else{const _0x465257=Array['from'](_0x4d5dd1['getSelectedBlocks']())['map'](_0x82e010=>function(_0x262649){let _0x3e0eea=_0x262649;for(;_0x3e0eea['parent'];){if('restrictedEditingException'==_0x3e0eea['parent']['name'])return _0x3e0eea;_0x3e0eea=_0x3e0eea['parent'];}return null;}(_0x82e010))['filter'](_0x4fa393=>!!_0x4fa393);_0x474e24=bt(_0x465257,_0x409d5e['model']);}_0x409d5e['model']['change'](()=>{for(const _0x42ee29 of _0x474e24)_0x20325c['markBlockFormat'](_0x42ee29,{'commandName':_0x4c356f,'commandParams':[{'forceValue':_0x5453fd}]});});}),_0x20325c['descriptionFactory']['registerDescriptionCallback'](_0x3a5db9=>{const {data:_0x255095}=_0x3a5db9;if(_0x255095&&_0x255095['commandName']==_0x4c356f)return _0x255095['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x33004f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x33004f,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x26ff96{afterInit(){const _0x4c98a1=this['editor'];_0x4c98a1['plugins']['has']('Style')&&_0x4c98a1['plugins']['has']('DataSchema')&&(_0x4c98a1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x74712a=this['editor'],_0x6ff658=_0x74712a['locale'];_0x74712a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x180bc9=>{if('formatBlock'!=_0x180bc9['type']&&'formatInline'!=_0x180bc9['type'])return;const {data:_0x171013}=_0x180bc9;return _0x171013&&'style'===_0x171013['commandName']?_0x171013['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x6ff658,'*Set\x20format:*\x20%0',_0x171013['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x6ff658,'*Remove\x20format:*\x20%0',_0x171013['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x26ff96{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x3d7786){super(_0x3d7786),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x326785=this['editor'],_0x18b75e=_0x326785['model']['document']['selection'];if(!_0x326785['plugins']['has']('TableEditing'))return;const _0x17049d=_0x326785['locale'],_0x33fdaf=_0x326785['plugins']['get']('TrackChangesEditing'),_0x3b0798=_0x326785['plugins']['get']('TableUtils');_0x33fdaf['descriptionFactory']['registerElementLabel']('table',_0x43eda7=>Mt(_0x17049d,'ELEMENT_TABLE',_0x43eda7)),this['_setupColumnsRowsFixing'](),_0x33fdaf['enableCommand']('insertTable'),_0x33fdaf['enableCommand']('selectTableRow'),_0x33fdaf['enableCommand']('selectTableColumn');for(const _0x7ef7a7 of['insertTableRowAbove','insertTableRowBelow']){const _0x5e6b87=_0x326785['commands']['get'](_0x7ef7a7);_0x33fdaf['enableCommand'](_0x7ef7a7,_0x374d6d=>{_0x326785['model']['change'](_0x38d34f=>{_0x374d6d();const _0x24cbe1='above'===_0x5e6b87['order'],_0x70d345=_0x3b0798['getSelectionAffectedTableCells'](_0x18b75e),_0x1707a0=_0x3b0798['getRowIndexes'](_0x70d345),_0x1856b7=_0x24cbe1?_0x1707a0['first']-0x1:_0x1707a0['last']+0x1,_0xca6f3c=_0x70d345[0x0]['findAncestor']('table'),_0x52a059=_0x3b0798['createTableWalker'](_0xca6f3c,{'startRow':_0x1856b7,'endRow':_0x1856b7}),_0x4e1f58=Array['from'](_0x52a059)['map'](_0x283b1a=>_0x38d34f['createRangeOn'](_0x283b1a['cell']));_0x33fdaf['markMultiRangeInsertion'](_0x4e1f58,'tableRow');});});}for(const _0x4962f6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1c110e=_0x326785['commands']['get'](_0x4962f6);_0x33fdaf['enableCommand'](_0x4962f6,_0x54be7b=>{_0x326785['model']['change'](_0x2ea68d=>{_0x54be7b();const _0x1f33fe='left'===_0x1c110e['order'],_0x1e7fed=_0x3b0798['getSelectionAffectedTableCells'](_0x18b75e),_0x2be6ba=_0x3b0798['getColumnIndexes'](_0x1e7fed),_0x2d0f7c=_0x1f33fe?_0x2be6ba['first']-0x1:_0x2be6ba['last']+0x1,_0x36137e=_0x1e7fed[0x0]['findAncestor']('table'),_0x48e69a=_0x3b0798['createTableWalker'](_0x36137e,{'startRow':0x0,'column':_0x2d0f7c,'includeAllSlots':!0x1}),_0x445f04=Array['from'](_0x48e69a)['map'](_0x5c2bbf=>_0x2ea68d['createRangeOn'](_0x5c2bbf['cell']));_0x33fdaf['markMultiRangeInsertion'](_0x445f04,'tableColumn');});});}for(const _0x56b3ec of['removeTableRow','removeTableColumn']){const _0x3effbe=_0x56b3ec['substr'](0xb),_0x2a6c09=_0x3effbe['toLowerCase'](),_0x5efe43=_0x2a6c09['substr'](0x0,0x3)+'span',_0x980dee='table'+_0x3effbe,_0x39d76e='min'+_0x3effbe,_0x5c84dc='max'+_0x3effbe;_0x33fdaf['enableCommand'](_0x56b3ec,()=>{_0x326785['model']['change'](_0x7c8c5b=>{const _0x2956f9=_0x3b0798['getSelectionAffectedTableCells'](_0x18b75e),_0x3ca98a=_0x2956f9[0x0]['findAncestor']('table');let _0xfeac04;if('removeTableRow'==_0x56b3ec){const _0xb76530=_0x3b0798['getRowIndexes'](_0x2956f9);_0xfeac04={'startRow':_0xb76530['first'],'endRow':_0xb76530['last'],'includeAllSlots':!0x0};}else{const _0x1fa84b=_0x3b0798['getColumnIndexes'](_0x2956f9);_0xfeac04={'startColumn':_0x1fa84b['first'],'endColumn':_0x1fa84b['last'],'includeAllSlots':!0x0};}const _0x25c580=_0x3b0798['createTableWalker'](_0x3ca98a,_0xfeac04),_0x4af253=Array['from'](_0x25c580)['map'](({cell:_0x3527f3})=>_0x3527f3),_0x55447f=Pe(_0x4af253['filter'](_0x1ded5c=>_0x1ded5c['hasAttribute'](_0x5efe43))),_0x1f8d42=Pe(_0x4af253['filter'](_0x54e197=>!_0x54e197['hasAttribute'](_0x5efe43)))['map'](_0x2366f8=>_0x7c8c5b['createRangeOn'](_0x2366f8)),_0x5aa0ca=_0x33fdaf['markMultiRangeDeletion'](_0x1f8d42,_0x980dee);if(_0x5aa0ca&&('tableRow'==_0x5aa0ca['subType']||'tableColumn'==_0x5aa0ca['subType'])){const _0x43053e=this['_getSuggestionCoords'](_0x5aa0ca);for(const _0x35a2c1 of _0x55447f){const _0x2cd39e=_0x7c8c5b['createRangeOn'](_0x35a2c1),_0x4a3d5f=_0x3b0798['getCellLocation'](_0x35a2c1),_0x356e6d=_0x35a2c1['getAttribute'](_0x5efe43)-0x1,_0x3af5bd=_0x43053e[_0x39d76e],_0x4ca654=_0x43053e[_0x5c84dc];_0x3af5bd<=_0x4a3d5f[_0x2a6c09]&&_0x4a3d5f[_0x2a6c09]+_0x356e6d<=_0x4ca654&&_0x5aa0ca['addRange'](_0x2cd39e);}}});});}function _0x4a2378(_0x2e4db2){const _0x26a0e3=Array['from'](_0x18b75e['getRanges']())['map'](_0x39d1d5=>rt['fromRange'](_0x39d1d5));_0x326785['model']['change'](_0x2204ba=>{const _0x512441=_0x2204ba['batch'];_0x2e4db2=_0x2e4db2['filter'](_0x1b9f1c=>'$graveyard'!=_0x1b9f1c['root']['rootName']),_0x2204ba['setSelection'](_0x2e4db2),_0x326785['commands']['get']('removeTableRow')['refresh'](),_0x326785['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x326785['model']['enqueueChange'](()=>{_0x326785['model']['enqueueChange'](_0x512441,_0xa8a19f=>{const _0x51ecc6=_0x26a0e3['filter'](_0x249f72=>'$graveyard'!=_0x249f72['root']['rootName']);_0x51ecc6['length']>0x0&&_0xa8a19f['setSelection'](_0x51ecc6);for(const _0x1af247 of _0x26a0e3)_0x1af247['detach']();});});});}function _0x2837d0(_0x3c4f97){_0x326785['model']['change'](_0x2081c8=>{const _0x2dd357=Array['from'](_0x18b75e['getRanges']())['map'](_0x7703cf=>rt['fromRange'](_0x7703cf)),_0x585491=[];for(const _0x11b68b of _0x3c4f97)for(const _0x3b3f16 of _0x11b68b['getItems']({'shallow':!0x0}))_0x585491['push'](_0x3b3f16);for(const _0x3ec41c of _0x585491)'$graveyard'!=_0x3ec41c['root']['rootName']&&(_0x2081c8['setSelection'](_0x2081c8['createPositionAt'](_0x3ec41c,0x0)),_0x326785['commands']['get']('removeTableColumn')['refresh'](),_0x326785['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x335a68=_0x2dd357['filter'](_0x53157d=>'$graveyard'!=_0x53157d['root']['rootName']);_0x335a68['length']>0x0&&_0x2081c8['setSelection'](_0x335a68);for(const _0x8220a3 of _0x2dd357)_0x8220a3['detach']();});}function _0x15f44b(_0x5d833e,_0x5604fd){return _0x5604fd['every'](_0x4773ad=>_0x5d833e['some'](_0x10eee0=>_0x10eee0['end']['isEqual'](_0x4773ad['start'])||_0x4773ad['end']['isEqual'](_0x10eee0['start'])));}function _0x2743b5(_0xc40fac,_0x3bb2a8){return!_0xc40fac['some'](_0x246bb6=>_0x3bb2a8['some'](_0x1c8c4c=>_0x246bb6['isIntersecting'](_0x1c8c4c)))&&_0xc40fac['some'](_0x4bee29=>_0x3bb2a8['some'](_0x129a86=>_0x4bee29['end']['isTouching'](_0x129a86['start'])));}_0x33fdaf['descriptionFactory']['registerDescriptionCallback'](_0x3d5ee5=>{if('insertion'!=_0x3d5ee5['type']&&'deletion'!=_0x3d5ee5['type'])return;const _0x1346f8=_0x3d5ee5['getContainedElement']();if(null!=_0x1346f8&&_0x1346f8['is']('element','table')){if('insertion'==_0x3d5ee5['type']){const _0x3873dd=_0x3d5ee5['getItems']()['filter'](_0x311e7f=>_0x311e7f['is']('$textProxy'))['map'](_0x4a0b0c=>_0x4a0b0c['data']);if(_0x3873dd['length'])return{'type':'insertion','content':Mt(_0x17049d,'*Insert:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3873dd['join']('\x20')+'\x22'))};}if('deletion'==_0x3d5ee5['type']){const _0x9d19e4=_0x3d5ee5['getItems']()['filter'](_0x467f12=>_0x467f12['is']('$textProxy'))['map'](_0x2adcbe=>_0x2adcbe['data']);if(_0x9d19e4['length'])return{'type':'deletion','content':Mt(_0x17049d,'*Remove:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9d19e4['join']('\x20')+'\x22'))};}}}),_0x33fdaf['descriptionFactory']['registerDescriptionCallback'](_0xf9d9ba=>{if('tableRow'==_0xf9d9ba['subType']){const _0x33d3ce=_0xf9d9ba['getItems']()['filter'](_0xd62755=>_0xd62755['is']('$textProxy'))['map'](_0xa0aa58=>_0xa0aa58['data']),_0x28ced6=this['_getSuggestionCoords'](_0xf9d9ba),_0x2be28c=_0x28ced6['maxRow']-_0x28ced6['minRow']+0x1;if('insertion'==_0xf9d9ba['type'])return _0x33d3ce['length']?{'type':'insertion','content':Mt(_0x17049d,'*Insert:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2be28c,'\x22'+_0x33d3ce['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x17049d,'*Insert:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_ROW',_0x2be28c))};if('deletion'==_0xf9d9ba['type'])return _0x33d3ce['length']?{'type':'deletion','content':Mt(_0x17049d,'*Remove:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2be28c,'\x22'+_0x33d3ce['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x17049d,'*Remove:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_ROW',_0x2be28c))};}if('tableColumn'==_0xf9d9ba['subType']){const _0x86be77=_0xf9d9ba['getItems']()['filter'](_0x14aaaf=>_0x14aaaf['is']('$textProxy'))['map'](_0x1ed9cf=>_0x1ed9cf['data']),_0x4119bd=this['_getSuggestionCoords'](_0xf9d9ba),_0x5eb287=_0x4119bd['maxColumn']-_0x4119bd['minColumn']+0x1;if('insertion'==_0xf9d9ba['type'])return _0x86be77['length']?{'type':'insertion','content':Mt(_0x17049d,'*Insert:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5eb287,'\x22'+_0x86be77['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x17049d,'*Insert:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_COLUMN',_0x5eb287))};if('deletion'==_0xf9d9ba['type'])return _0x86be77['length']?{'type':'deletion','content':Mt(_0x17049d,'*Remove:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5eb287,'\x22'+_0x86be77['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x17049d,'*Remove:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_COLUMN',_0x5eb287))};}}),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4a2378),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4a2378),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2837d0),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2837d0),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x15f44b),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x15f44b),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2743b5),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2743b5);}_acceptFormatSuggestionCallbackFactory(){const _0x5b7566=this['editor'],_0x1444d1=_0x5b7566['model']['document']['selection'];return(_0x560df3,_0x44ac70)=>{_0x5b7566['model']['change'](_0x5b51e6=>{const {commandName:_0x53284a,commandParams:_0x46d739}=_0x44ac70;let _0x298aaf=_0x560df3[0x0]['end']['nodeBefore'];_0x46d739&&_0x46d739[0x0]&&!0x1===_0x46d739[0x0]['forceValue']&&(_0x298aaf=_0x560df3[0x0]['start']['nodeAfter']);const _0x20dc02=_0x5b51e6['createRangeIn'](_0x298aaf);if('$graveyard'==_0x20dc02['root']['rootName'])return;const _0x4f3d55=Array['from'](_0x1444d1['getRanges']())['map'](_0x4c77b0=>rt['fromRange'](_0x4c77b0));_0x5b51e6['setSelection'](_0x20dc02),_0x5b7566['commands']['get'](_0x53284a)['refresh'](),_0x46d739['push']({'forceDefaultExecution':!0x0}),_0x5b7566['execute'](_0x53284a,..._0x46d739);const _0x43bd1f=_0x4f3d55['filter'](_0x449c32=>'$graveyard'!=_0x449c32['root']['rootName']);_0x43bd1f['length']>0x0&&_0x5b51e6['setSelection'](_0x43bd1f);for(const _0x5323a1 of _0x4f3d55)_0x5323a1['detach']();});};}_getCoordsForCells(_0x272256){const _0x53f945=this['editor']['plugins']['get']('TableUtils');let _0x33c920=Number['MAX_SAFE_INTEGER'],_0x4907f3=Number['MIN_SAFE_INTEGER'],_0x499290=Number['MAX_SAFE_INTEGER'],_0x18e657=Number['MIN_SAFE_INTEGER'];for(const _0x218928 of _0x272256){if('$graveyard'==_0x218928['root']['rootName'])continue;const {row:_0x3ea85b,column:_0x14591f}=_0x53f945['getCellLocation'](_0x218928),_0x2c9fcc=_0x218928['hasAttribute']('rowspan')?_0x218928['getAttribute']('rowspan')-0x1:0x0,_0x2fbe64=_0x218928['hasAttribute']('colspan')?_0x218928['getAttribute']('colspan')-0x1:0x0;_0x33c920=_0x3ea85b<_0x33c920?_0x3ea85b:_0x33c920,_0x4907f3=_0x3ea85b+_0x2c9fcc>_0x4907f3?_0x3ea85b+_0x2c9fcc:_0x4907f3,_0x499290=_0x14591f<_0x499290?_0x14591f:_0x499290,_0x18e657=_0x14591f+_0x2fbe64>_0x18e657?_0x14591f+_0x2fbe64:_0x18e657;}return{'minRow':_0x33c920,'maxRow':_0x4907f3,'minColumn':_0x499290,'maxColumn':_0x18e657};}_setupColumnsRowsFixing(){const _0x48a628=this['editor'],_0x2e991a=_0x48a628['plugins']['get']('TrackChangesEditing'),_0x22c1be=_0x48a628['plugins']['get']('TableUtils');_0x48a628['model']['document']['on']('change:data',()=>{const _0x241674=Array['from'](_0x48a628['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2125c1,data:_0x58324a}of _0x241674){const {group:_0x505ab5,id:_0x19f446,subType:_0x2c9564}=tt(_0x2125c1);if('suggestion'!=_0x505ab5)continue;if(null!=_0x58324a['oldRange'])continue;const _0x4dd612=_0x2e991a['getSuggestion'](_0x19f446);this['_tablePostFixingSubtypes']['includes'](_0x2c9564)&&this['_tableSuggestions']['add'](_0x4dd612);}},{'priority':'low'});const _0x2eccc3=(_0x2c7511,_0x51aea8)=>{let _0x4d4816=!0x1;const _0x354120=_0x51aea8['createRangeOn'](_0x2c7511),_0x33d8a1=_0x2c7511['findAncestor']('table'),_0x3a18ad=_0x22c1be['getCellLocation'](_0x2c7511);for(const _0x516b2a of this['_tableSuggestions']){const _0x497b6e=_0x516b2a['subType'],_0x6478c6=_0x497b6e['startsWith']('tablePaste'),_0x1c986d=_0x497b6e['substr'](_0x6478c6?0xa:0x5),_0x18ad53=_0x1c986d['toLowerCase'](),_0x2755e3=_0x18ad53['substr'](0x0,0x3)+'span',_0x4681ca='min'+_0x1c986d,_0x13ed78='max'+_0x1c986d;if(!_0x516b2a['isInContent'])continue;if(_0x33d8a1!=_0x516b2a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x516b2a['isIntersectingWithRange'](_0x354120))continue;const _0x22d7eb=_0x2c7511['hasAttribute'](_0x2755e3)?_0x2c7511['getAttribute'](_0x2755e3)-0x1:0x0,_0x2b3c69=this['_getSuggestionCoords'](_0x516b2a),_0xacc727=_0x2b3c69[_0x4681ca],_0xcbbd78=_0x2b3c69[_0x13ed78];_0xacc727<=_0x3a18ad[_0x18ad53]&&_0x3a18ad[_0x18ad53]+_0x22d7eb<=_0xcbbd78&&(_0x516b2a['addRange'](_0x354120),_0x4d4816=!0x0);}return _0x4d4816;};_0x48a628['model']['document']['registerPostFixer'](_0x176ae2=>{let _0x348b71=!0x1;for(const _0x28402f of _0x48a628['model']['document']['differ']['getChanges']())if('insert'==_0x28402f['type']){if('tableRow'==_0x28402f['name']){for(const _0x2433e8 of _0x28402f['position']['nodeAfter']['getChildren']())_0x348b71=_0x348b71||_0x2eccc3(_0x2433e8,_0x176ae2);}else'tableCell'==_0x28402f['name']&&(_0x348b71=_0x348b71||_0x2eccc3(_0x28402f['position']['nodeAfter'],_0x176ae2));}return _0x348b71;});}_getSuggestionCoords(_0x45718c){return this['_getCoordsForCells'](_0x45718c['getRanges']()['map'](_0x2b8503=>_0x2b8503['start']['nodeAfter']));}};function Pe(_0x1331d8){return Array['from'](new Set(_0x1331d8)['values']());}var xe=class extends _0x26ff96{static get requires(){return[Ue];}afterInit(){const _0x1aeb1d=this['editor'],_0x53d8bd=_0x1aeb1d['model']['document']['selection'],_0x12d83c=_0x1aeb1d['locale'];if(!_0x1aeb1d['plugins']['has']('TableEditing'))return;const _0x7f509d=_0x1aeb1d['plugins']['get']('TrackChangesEditing'),_0x4ac53d=_0x1aeb1d['plugins']['get']('TableUtils'),_0x8593e3=_0x1aeb1d['plugins']['get'](Ue);_0x8593e3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x7f509d['enableCommand']('mergeTableCells',()=>{const _0x57268a=_0x4ac53d['getSelectionAffectedTableCells'](_0x1aeb1d['model']['document']['selection']);_0x1aeb1d['model']['change'](()=>{_0x7f509d['markMultiRangeBlockFormat'](_0x57268a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1aeb1d['commands']['get']('mergeTableCells')['on']('execute',(_0xb76f5e,_0x59181a)=>{_0x1aeb1d['commands']['get']('trackChanges')['value']&&(_0x59181a['length']>0x0&&_0x59181a[_0x59181a['length']-0x1]&&_0x59181a[_0x59181a['length']-0x1]['forceDefaultExecution']||_0x7f509d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xb76f5e['stop']());},{'priority':'highest'});for(const _0x41679a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5b027c=_0x1aeb1d['commands']['get'](_0x41679a);_0x7f509d['enableCommand'](_0x41679a,()=>{const _0x2dbc31=_0x1aeb1d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xde46e5=>_0xde46e5['is']('element','tableCell')),_0x31e0d6=_0x5b027c['value'];_0x1aeb1d['model']['change'](()=>{_0x7f509d['markMultiRangeBlockFormat']([_0x2dbc31,_0x31e0d6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x194c7f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4693b4=_0x1aeb1d['commands']['get'](_0x194c7f);_0x7f509d['enableCommand'](_0x194c7f,()=>{const _0xc6b671=_0x4ac53d['getSelectionAffectedTableCells'](_0x1aeb1d['model']['document']['selection']),_0x3cf4c8=_0xc6b671[0x0]['findAncestor']('table'),_0x4fb5a9=new Set();for(const _0x1c1d38 of _0xc6b671){const {column:_0x261d2c,row:_0x3b79ad}=_0x4ac53d['getCellLocation'](_0x1c1d38),_0x192552='horizontally'==_0x4693b4['direction']?_0x4ac53d['createTableWalker'](_0x3cf4c8,{'startRow':_0x3b79ad,'endRow':_0x3b79ad,'includeAllSlots':!0x0}):_0x4ac53d['createTableWalker'](_0x3cf4c8,{'column':_0x261d2c,'includeAllSlots':!0x0});for(const {cell:_0xe6bb4a}of _0x192552)_0x4fb5a9['add'](_0xe6bb4a);}_0x1aeb1d['model']['change'](()=>{_0x7f509d['markMultiRangeBlockFormat'](_0xc6b671,{'commandName':_0x194c7f,'commandParams':[]},Array['from'](_0x4fb5a9),_0x194c7f);});});}_0x7f509d['descriptionFactory']['registerDescriptionCallback'](_0x85a940=>{if('formatBlock'!=_0x85a940['type']&&'formatInline'!=_0x85a940['type'])return;const {data:_0x1b5b52}=_0x85a940;return _0x1b5b52&&'mergeTableCells'==_0x1b5b52['commandName']?{'type':'format','content':Mt(_0x12d83c,'*Merge\x20cells*')}:void 0x0;}),_0x7f509d['descriptionFactory']['registerDescriptionCallback'](_0x20e647=>{if('formatBlock'!=_0x20e647['type']&&'formatInline'!=_0x20e647['type'])return;const {data:_0x128c56}=_0x20e647;return _0x128c56?'splitTableCellVertically'==_0x128c56['commandName']?{'type':'format','content':Mt(_0x12d83c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x128c56['commandName']?{'type':'format','content':Mt(_0x12d83c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x56b7fe=_0x8593e3['_acceptFormatSuggestionCallbackFactory']();for(const _0x4ff1d1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x7f509d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ff1d1,'accept',_0x56b7fe);for(const _0xb5c0d7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x7f509d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb5c0d7,'accept',_0x4b1f5e=>{_0x1aeb1d['model']['change'](_0x478cd9=>{const _0x57c170=Array['from'](_0x4b1f5e)['filter'](_0x348aa3=>'$graveyard'!=_0x348aa3['root']['rootName']&&!!_0x348aa3['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x57c170['length'])return;const _0x3fa84e=Array['from'](_0x53d8bd['getRanges']())['map'](_0x4685c9=>rt['fromRange'](_0x4685c9));_0x478cd9['setSelection'](_0x57c170),_0x1aeb1d['commands']['get'](_0xb5c0d7)['refresh'](),_0x1aeb1d['execute'](_0xb5c0d7,{'forceDefaultExecution':!0x0});const _0x24e37a=_0x3fa84e['filter'](_0x3f59d0=>'$graveyard'!=_0x3f59d0['root']['rootName']);_0x24e37a['length']>0x0&&_0x478cd9['setSelection'](_0x24e37a);for(const _0x4dae22 of _0x3fa84e)_0x4dae22['detach']();});});_0x7f509d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4e6f8c=>{_0x1aeb1d['model']['change'](_0x358f03=>{const _0xa2207f=Array['from'](_0x53d8bd['getRanges']())['map'](_0x2db46b=>rt['fromRange'](_0x2db46b));_0x358f03['setSelection'](_0x4e6f8c),_0x1aeb1d['commands']['get']('mergeTableCells')['refresh'](),_0x1aeb1d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xc383c1=_0xa2207f['filter'](_0x6d04bc=>'$graveyard'!=_0x6d04bc['root']['rootName']);_0xc383c1['length']>0x0&&_0x358f03['setSelection'](_0xc383c1);for(const _0x1610b0 of _0xa2207f)_0x1610b0['detach']();});});for(const _0x5345d4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x43d431=_0x1aeb1d['commands']['get'](_0x5345d4);_0x43d431['on']('set:isEnabled',(_0x4ead89,_0x20b890,_0x5f0ece)=>{if(_0x5f0ece){const _0x19706d=_0x1aeb1d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x43c9b1=>_0x43c9b1['is']('element','tableCell'));this['_areMergableCells'](_0x43d431['value'],_0x19706d)||(_0x4ead89['return']=!0x1,_0x4ead89['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x52ffdf=this['editor']['commands']['get']('mergeTableCells'),_0x131baf=this['editor']['plugins']['get']('TableUtils');if(!_0x52ffdf['isEnabled'])return!0x1;const _0x2c3c3a=_0x131baf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a93fb of _0x2c3c3a)for(const _0x13fae6 of _0x2c3c3a)if(_0x5a93fb!=_0x13fae6&&!this['_areMergableCells'](_0x5a93fb,_0x13fae6))return!0x1;return!0x0;}['_areMergableCells'](_0x365295,_0x191474){const _0x2e0e67=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f825c=this['editor']['model']['createRangeOn'](_0x365295),_0x2b3159=this['editor']['model']['createRangeOn'](_0x191474),_0x33432c=new Set(),_0x4f03d9=new Set();for(const _0x2c9e62 of _0x2e0e67['getSuggestions']())if(('insertion'==_0x2c9e62['type']||'deletion'==_0x2c9e62['type']||'mergeTableCells'==_0x2c9e62['subType'])&&_0x2c9e62['isInContent']){for(const _0x1f2185 of _0x2c9e62['getRanges']())_0x1f2185['containsRange'](_0x4f825c,!0x0)&&_0x33432c['add'](_0x2c9e62['type']+':'+_0x2c9e62['author']['id']),_0x1f2185['containsRange'](_0x2b3159,!0x0)&&_0x4f03d9['add'](_0x2c9e62['type']+':'+_0x2c9e62['author']['id']);}if(_0x33432c['size']!=_0x4f03d9['size'])return!0x1;for(const _0x26b2e5 of _0x33432c)if(!_0x4f03d9['has'](_0x26b2e5))return!0x1;return!0x0;}},Ge=class extends _0x26ff96{static get requires(){return[Ue];}afterInit(){const _0x552227=this['editor'];if(!_0x552227['plugins']['has']('TableEditing'))return;const _0x5be1b7=_0x552227['locale'],_0x28928b=_0x552227['plugins']['get']('TrackChangesEditing');_0x28928b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x28928b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x28928b['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x5be1b7,'FORMAT_HEADER_ROW')),_0x28928b['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x5be1b7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x5afd7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50ef1f=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x5afd7d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x50ef1f),_0x5afd7d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x50ef1f),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x11adaf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40025e=this['editor']['plugins']['get']('TableUtils');function _0x46366a({showActiveMarker:_0x154992=!0x0,setDataAttribute:_0x8fd333=!0x0}={}){return(_0x211b96,_0x304c5c,_0x78ede5)=>{const {type:_0x15f191,id:_0x3bb0f3}=tt(_0x304c5c['markerName']);if(!_0x11adaf['hasSuggestion'](_0x3bb0f3))return;const _0x5274bd=_0x11adaf['getSuggestion'](_0x3bb0f3),_0x315789=_0x5274bd['data'];if('formatBlock'!=_0x5274bd['type']||!_0x315789||'setTableColumnHeader'!=_0x315789['commandName'])return;if(_0x304c5c['item'])return void _0x211b96['stop']();if(!_0x78ede5['consumable']['consume'](_0x304c5c['markerRange'],_0x211b96['name']))return;const _0x290aae=_0x304c5c['markerRange']['start']['nodeAfter'],_0x388b0a=_0x304c5c['markerRange']['end']['nodeBefore'],_0x713526=_0x290aae['parent']['parent'],{column:_0x4653eb}=_0x40025e['getCellLocation'](_0x290aae),{column:_0x24d7bf}=_0x40025e['getCellLocation'](_0x388b0a);for(let _0x1ea15e=_0x4653eb;_0x1ea15e<=_0x24d7bf;_0x1ea15e++){const _0x2e7526=_0x40025e['createTableWalker'](_0x713526,{'column':_0x1ea15e,'includeAllSlots':!0x1});for(const _0x44b825 of _0x2e7526){const _0x431861=_0x44b825['cell'],_0x56c340=_0x78ede5['mapper']['toViewElement'](_0x431861);_0x78ede5['writer']['addClass']('ck-suggestion-marker-'+_0x15f191,_0x56c340),_0x8fd333&&_0x78ede5['writer']['setAttribute']('data-suggestion',_0x3bb0f3,_0x56c340),_0x78ede5['mapper']['bindElementToMarker'](_0x56c340,_0x304c5c['markerName']),_0x154992&&(_0x11adaf['activeMarkers']['includes'](_0x304c5c['markerName'])?_0x78ede5['writer']['addClass']('ck-suggestion-marker--active',_0x56c340):_0x78ede5['writer']['removeClass']('ck-suggestion-marker--active',_0x56c340));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46366a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6b0de5,_0x148665,_0x5fae2d)=>{_0x5fae2d['options']['showSuggestionHighlights']&&_0x46366a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x6b0de5,_0x148665,_0x5fae2d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x13284b,_0x25faf6,_0x1d9762)=>{const {type:_0x5c7420,id:_0x5c4631}=tt(_0x25faf6['markerName']);if(!_0x11adaf['hasSuggestion'](_0x5c4631))return;const _0x22ec24=_0x11adaf['getSuggestion'](_0x5c4631),_0x32d785=_0x22ec24['data'];if('formatBlock'!=_0x22ec24['type']||!_0x32d785||'setTableColumnHeader'!=_0x32d785['commandName'])return;const _0x2af06d=_0x1d9762['mapper']['markerNameToElements'](_0x25faf6['markerName']);if(_0x2af06d){for(const _0x25dc93 of _0x2af06d)_0x1d9762['writer']['removeClass']('ck-suggestion-marker-'+_0x5c7420,_0x25dc93),_0x1d9762['writer']['removeClass']('ck-suggestion-marker--active',_0x25dc93),_0x1d9762['writer']['removeAttribute']('data-suggestion',_0x25dc93),_0x1d9762['mapper']['unbindElementFromMarkerName'](_0x25dc93,_0x25faf6['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x317a2c=this['editor'],_0x3f257d=_0x317a2c['locale'];function _0x35d714(_0x240adc){return{'type':'format','content':Mt(_0x3f257d,'*Format:*\x20%0',_0x240adc)};}_0x317a2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e774a=>{if('formatBlock'!=_0x2e774a['type'])return;const {data:_0x722bb}=_0x2e774a;return _0x722bb?'setTableRowHeader'==_0x722bb['commandName']?_0x722bb['commandParams'][0x0]['forceValue']?_0x35d714(Mt(_0x3f257d,'FORMAT_HEADER_ROW')):_0x35d714(Mt(_0x3f257d,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x722bb['commandName']?_0x722bb['commandParams'][0x0]['forceValue']?_0x35d714(Mt(_0x3f257d,'FORMAT_HEADER_COLUMN')):_0x35d714(Mt(_0x3f257d,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x26ff96{static get requires(){return[Ue];}afterInit(){const _0xb1ff97=this['editor'];if(!_0xb1ff97['plugins']['has']('TableEditing')||!_0xb1ff97['config']['get']('table.enableFooters'))return;const _0x509625=_0xb1ff97['locale'],_0x54d21a=_0xb1ff97['plugins']['get']('TrackChangesEditing');_0x54d21a['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x54d21a['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x509625,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x26ff96{afterInit(){const _0x295f4a=this['editor'],_0x45d5bc=_0x295f4a['locale'],_0x5d824c=_0x295f4a['plugins']['get']('TrackChangesEditing');function _0x1ae339(_0x25336d){return{'type':'format','content':''+Mt(_0x45d5bc,'*Set\x20table\x20type:*\x20%0',_0x25336d)};}_0x295f4a['plugins']['has']('TableLayout')&&(_0x5d824c['enableCommand']('insertTableLayout'),_0x5d824c['enableDefaultAttributesIntegration']('tableType'),_0x5d824c['descriptionFactory']['registerElementLabel'](_0x275238=>_0x275238['is']('element','table')&&'layout'===_0x275238['getAttribute']('tableType'),_0x1e57d4=>Mt(_0x45d5bc,'ELEMENT_LAYOUT_TABLE',_0x1e57d4)),_0x5d824c['descriptionFactory']['registerDescriptionCallback'](_0x505879=>{const {data:_0x2378e8}=_0x505879;if(_0x2378e8&&'tableType'==_0x2378e8['key'])switch(_0x2378e8['newValue']){case'layout':return _0x1ae339(Mt(_0x45d5bc,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1ae339(Mt(_0x45d5bc,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](We['map'](_0x19ce30=>[_0x19ce30,null]));var je=class extends _0x26ff96{static get requires(){return[Ue];}afterInit(){const _0x2c0a71=this['editor'];if(!_0x2c0a71['plugins']['has']('TableClipboard'))return;const _0x3bdb33=_0x2c0a71['plugins']['get']('TrackChangesEditing'),_0x14a415=_0x2c0a71['plugins']['get']('TableUtils'),_0x4ec915=_0x2c0a71['plugins']['get'](Ue),_0x453cb4=_0x2c0a71['plugins']['get']('TableClipboard'),_0x3d3d67=_0x2c0a71['plugins']['get']('TableSelection'),_0x4ba2aa=_0x2c0a71['plugins']['get'](gt);_0x4ec915['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c0a71['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c0a71['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5f52af=null,_0x4d8fba=!0x1;_0x4ba2aa['on']('contentInsertion',(_0x20fc70,_0x5bfdaf)=>{_0x4d8fba='paste'===_0x5bfdaf['method'];}),_0x2c0a71['model']['on']('insertContent',(_0x81a269,_0x4646cf)=>{if(!_0x4d8fba&&null===_0x3d3d67['getSelectedTableCells']())return;const [_0x45384f,_0x13d665]=_0x4646cf,_0x321c68=_0x4646cf[_0x4646cf['length']-0x1];_0x321c68&&_0x321c68['forceDefaultExecution']||_0x3bdb33['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x37ae4c,_0x61c29a,_0x4e2d07,_0x39a312,_0x1521b0){if(_0x61c29a&&!_0x61c29a['is']('documentSelection'))return!0x1;const _0x382a39=_0x1521b0['getTableIfOnlyTableInContent'](_0x37ae4c,_0x4e2d07);if(!_0x382a39||!Ke(_0x382a39,void 0x0,_0x39a312))return!0x1;const _0x890a32=_0x39a312['getSelectionAffectedTableCells'](_0x4e2d07['document']['selection']);if(!_0x890a32['length'])return!0x1;const _0x449975=_0x890a32[0x0]['findAncestor']('table'),_0x388d86=_0x39a312['getRowIndexes'](_0x890a32),_0x5d6bf3=_0x39a312['getColumnIndexes'](_0x890a32),_0x567b97={'startRow':_0x388d86['first'],'endRow':_0x388d86['last'],'startColumn':_0x5d6bf3['first'],'endColumn':_0x5d6bf3['last']};return 0x1==_0x890a32['length']&&(_0x567b97['endRow']+=_0x39a312['getRows'](_0x382a39)-0x1,_0x567b97['endColumn']+=_0x39a312['getColumns'](_0x382a39)-0x1),Ke(_0x449975,_0x567b97,_0x39a312);}(_0x45384f,_0x13d665,_0x2c0a71['model'],_0x14a415,_0x453cb4)&&(_0x81a269['stop'](),_0x5f52af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c0a71['model']['change'](()=>{_0x2c0a71['model']['insertContent'](_0x4646cf[0x0],_0x4646cf[0x1],_0x4646cf[0x2],{'forceDefaultExecution':!0x0});const _0x1d99e4=_0x3a663f(),{rowInsertionRanges:_0x520be6,columnInsertionRanges:_0x4d087c,insertionRanges:_0x52e811,deletionRanges:_0x162401,cells:_0x237d3e}=_0x5f52af;_0x520be6['length']&&_0x3bdb33['markMultiRangeInsertion'](_0x520be6,'tablePasteRow',{'tablePasteChainId':_0x1d99e4}),_0x4d087c['length']&&_0x3bdb33['markMultiRangeInsertion'](_0x4d087c,'tablePasteColumn',{'tablePasteChainId':_0x1d99e4}),_0x52e811['length']&&(_0x3bdb33['markMultiRangeInsertion'](_0x52e811,'tablePaste',{'tablePasteChainId':_0x1d99e4,'skipNestingCheck':!0x0}),_0x52e811['forEach'](_0x32b7fb=>_0x32b7fb['detach']?.())),_0x162401['length']&&(_0x3bdb33['markMultiRangeDeletion'](_0x162401,'tablePaste',{'tablePasteChainId':_0x1d99e4,'skipNestingCheck':!0x0}),_0x162401['forEach'](_0x2d0a2e=>_0x2d0a2e['detach']?.()));const _0xd66c0b=_0x3bdb33['markMultiRangeBlockFormat'](_0x237d3e['map'](({element:_0x4f2e52})=>_0x4f2e52),{'formatGroupId':_0x3a663f()},[],'tablePasteCell',{'tablePasteChainId':_0x1d99e4});if(_0xd66c0b){const _0x416f8d=_0xd66c0b['getMarkers'](),_0xf7f7e8=[];for(const {element:_0x3a77ca,attributes:_0x2ffb58}of _0x237d3e){if(!_0x2ffb58)continue;const _0x1dcec7=_0x2c0a71['model']['createRangeOn'](_0x3a77ca),_0x47950c=_0x416f8d['find'](_0x5838e9=>_0x5838e9['getRange']()['isEqual'](_0x1dcec7));_0x47950c&&_0xf7f7e8['push']([_0x47950c['name'],_0x2ffb58]);}_0xf7f7e8['length']&&_0xd66c0b['setAttribute']('markerAttributes',Object['fromEntries'](_0xf7f7e8));}_0x5f52af=null;}));},{'priority':_0x224aaf['high']+0xa}),_0x4ba2aa['on']('contentInsertion',()=>{_0x4d8fba=!0x1;},{'priority':'lowest'}),_0x2c0a71['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2c594c,_0x49a0cb)=>{const [_0x488190,_0x3dd637,,_0x37a217]=_0x49a0cb;if(!_0x5f52af)return;_0x2c594c['stop']();const _0x29b2a0=_0x488190['cell'],_0x10a389=_0x3dd637,_0x15a10a=ze(_0x29b2a0),_0xaeccec=ze(_0x10a389);_0x2c594c['return']=_0x29b2a0;let _0x4320fb=null,_0x2d0b69=null;if(_0xaeccec||_0x15a10a){if(_0x15a10a&&!_0xaeccec){_0x37a217['remove'](_0x29b2a0['getChild'](0x0));for(const _0x2e1c83 of Array['from'](_0x10a389['getChildren']()))_0x37a217['insert'](_0x2e1c83,_0x29b2a0,'end');const _0x55b680=_0x5f52af['rowInsertionIndexes']['includes'](_0x488190['row']),_0x160b0e=_0x5f52af['columnInsertionIndexes']['includes'](_0x488190['column']);_0x55b680||_0x160b0e||(_0x4320fb=rt['fromRange'](_0x37a217['createRangeIn'](_0x29b2a0)));}else _0xaeccec&&!_0x15a10a&&(_0x2d0b69=_0x37a217['createRangeIn'](_0x29b2a0));}else{const _0x23c9ac=_0x37a217['createElement']('tableCellSuggestion'),_0xc3ff87=_0x37a217['createElement']('tableCellSuggestion');_0x37a217['wrap'](_0x37a217['createRangeIn'](_0x29b2a0),_0xc3ff87),_0x37a217['insert'](_0x23c9ac,_0x29b2a0,0x0);for(const _0x152415 of Array['from'](_0x10a389['getChildren']()))_0x37a217['insert'](_0x152415,_0x23c9ac,'end');_0x4320fb=rt['fromRange'](_0x37a217['createRangeOn'](_0x23c9ac)),_0x2d0b69=rt['fromRange'](_0x37a217['createRangeOn'](_0xc3ff87));}const _0x241148=Array['from'](_0x10a389['getAttributes']())['filter'](([_0x234b59])=>We['includes'](_0x234b59));_0x5f52af['cells']['push']({'element':_0x29b2a0,'attributes':_0x241148['length']?Object['fromEntries'](_0x241148):null}),_0x4320fb&&_0x5f52af['insertionRanges']['push'](_0x4320fb),_0x2d0b69&&_0x5f52af['deletionRanges']['push'](_0x2d0b69);},{'priority':'high'}),_0x14a415['on']('insertColumns',(_0xce8fcf,_0x2bd49e)=>{const [_0x4c1be4,_0x5a417d={}]=_0x2bd49e;if(!_0x5f52af)return;const _0x378791=_0x5a417d['at']||0x0,_0x59ba05=_0x5a417d['columns']||0x1;_0x5f52af['columnInsertionIndexes']=new Array(_0x59ba05)['fill'](_0x378791)['map']((_0x54dab3,_0x3f9b19)=>_0x54dab3+_0x3f9b19);for(const {cell:_0x4fe6c1}of _0x14a415['createTableWalker'](_0x4c1be4,{'startColumn':_0x378791,'endColumn':_0x378791+_0x59ba05-0x1}))_0x5f52af['columnInsertionRanges']['push'](_0x2c0a71['model']['createRangeOn'](_0x4fe6c1));},{'priority':'low'}),_0x14a415['on']('insertRows',(_0x961158,_0x277f51)=>{const [_0x3b988a,_0x108e7f={}]=_0x277f51;if(!_0x5f52af)return;const _0x4db5a1=_0x108e7f['at']||0x0,_0x59f266=_0x108e7f['rows']||0x1;_0x5f52af['rowInsertionIndexes']=new Array(_0x59f266)['fill'](_0x4db5a1)['map']((_0x1dd31c,_0x110342)=>_0x1dd31c+_0x110342);for(const {cell:_0x312fdb}of _0x14a415['createTableWalker'](_0x3b988a,{'startRow':_0x4db5a1,'endRow':_0x4db5a1+_0x59f266-0x1}))_0x5f52af['rowInsertionRanges']['push'](_0x2c0a71['model']['createRangeOn'](_0x312fdb));},{'priority':'low'}),_0x3bdb33['descriptionFactory']['registerDescriptionCallback'](_0x40fecb=>{if(_0x40fecb['subType']&&_0x40fecb['subType']['startsWith']('tablePaste'))return _0x40fecb['previous']?{}:{'type':'insertion','content':Mt(_0x2c0a71['locale'],'*Replace\x20table\x20cells*')};});const _0x27a11b=()=>!0x1;for(const _0x19fafa of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3bdb33['_suggestionFactory']['registerCustomCallback']('insertion',_0x19fafa,'join',_0x27a11b),_0x3bdb33['_suggestionFactory']['registerCustomCallback']('deletion',_0x19fafa,'join',_0x27a11b),_0x3bdb33['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19fafa,'join',_0x27a11b);_0x3bdb33['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x27a11b),_0x3bdb33['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x28b3a9,_0x4d7aca,_0x519d43)=>{const _0x469af7=_0x28b3a9['map'](_0x179b51=>_0x179b51['getContainedElement']())['filter'](_0x560dc5=>_0x560dc5),_0x37673a=new Map(_0x469af7['map'](_0x303e7c=>[_0x303e7c,null]));if(_0x5f52af){for(const {element:_0x2ed090,attributes:_0x51a03a}of _0x5f52af['cells'])_0x51a03a&&_0x37673a['set'](_0x2ed090,_0x51a03a);}else{if(_0x519d43&&_0x519d43['markerAttributes'])for(const [_0x5afede,_0x2c56b6]of Object['entries'](_0x519d43['markerAttributes'])){const _0x53dd64=_0x2c0a71['model']['markers']['get'](_0x5afede),_0x393e8e=_0x53dd64?_0x53dd64['getRange']()['getContainedElement']():null;_0x393e8e&&_0x37673a['set'](_0x393e8e,_0x2c56b6);}}_0x2c0a71['model']['change'](_0x17f2ec=>{for(const [_0x5b505c,_0x35c4bc]of _0x37673a)_0x17f2ec['setAttributes']({...Ve,..._0x35c4bc},_0x5b505c);});});const _0x3b2be5=(_0x2b3aa8,_0x1a9d28)=>{_0x3bdb33['_suggestionFactory']['registerCustomCallback'](_0x2b3aa8,'tablePaste',_0x1a9d28,(_0x5e2db3,_0x578a34,_0x909f17)=>{_0x2c0a71['model']['change'](_0x48ca4a=>{const _0xfc5506=[];for(const _0x15f660 of _0x5e2db3){const _0x13a706=_0x15f660['start']['nodeAfter'];_0x13a706['is']('element','tableCellSuggestion')&&_0xfc5506['push'](_0x13a706);}_0x3bdb33['_suggestionFactory']['getSuggestionCallback'](_0x2b3aa8,null,_0x1a9d28)(_0x5e2db3,_0x578a34,_0x909f17);for(const _0x10a6d1 of _0xfc5506)'$graveyard'!=_0x10a6d1['root']['rootName']&&_0x48ca4a['unwrap'](_0x10a6d1);});});};_0x3b2be5('insertion','accept'),_0x3b2be5('insertion','discard'),_0x3b2be5('deletion','accept'),_0x3b2be5('deletion','discard'),_0x3bdb33['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1f7a58=>{const _0x21e8ff=_0x1f7a58['map'](_0x390308=>_0x390308['getContainedElement']()),_0xaaed4d=_0x21e8ff[0x0]['findAncestor']('table'),{minRow:_0x3bbc0f,maxRow:_0x14608a}=_0x4ec915['_getCoordsForCells'](_0x21e8ff);_0x14a415['removeRows'](_0xaaed4d,{'at':_0x3bbc0f,'rows':_0x14608a-_0x3bbc0f+0x1});}),_0x3bdb33['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4926a2=>{const _0x1c0aa4=_0x4926a2['map'](_0x3f365f=>_0x3f365f['getContainedElement']()),_0x5be72a=_0x1c0aa4[0x0]['findAncestor']('table'),{minColumn:_0x172e42,maxColumn:_0x3f76ba}=_0x4ec915['_getCoordsForCells'](_0x1c0aa4);_0x14a415['removeColumns'](_0x5be72a,{'at':_0x172e42,'columns':_0x3f76ba-_0x172e42+0x1});});const _0xe3de66=(_0x17cb9f,_0x53a711)=>{if(!_0x53a711['subType']||!_0x53a711['subType']['startsWith']('tablePaste'))return;const _0x339afc=_0x53a711['attributes']['tablePasteChainId'],_0x2c9a6a=_0x3bdb33['getSuggestions']()['filter'](_0x17169a=>_0x17169a['isInContent']&&_0x17169a['attributes']&&_0x17169a['attributes']['tablePasteChainId']==_0x339afc);_0x2c9a6a['length']&&_0x53a711['getAllAdjacentSuggestions']()['length']!=_0x2c9a6a['length']&&_0x2c9a6a['reduce']((_0x2d266c,_0x2192d8)=>(_0x2d266c['next']=_0x2192d8,_0x2192d8['previous']=_0x2d266c,_0x2192d8));};function _0x152a01(_0x488a56,_0x29fda8=!0x0){const {id:_0x4563d3,authorId:_0x109736}=tt(_0x488a56['markerName']),_0x3adafa=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1bc536=_0x3bdb33['activeMarkers']['includes'](_0x488a56['markerName']);return _0x1bc536&&_0x3adafa['push']('ck-suggestion-marker--active'),{'classes':_0x3adafa,'attributes':{'data-suggestion':_0x4563d3,'data-author-id':_0x109736},'priority':_0x1bc536&&_0x29fda8?0xbc2:0xbb8};}_0x3bdb33['on']('suggestionLoaded',_0xe3de66,{'priority':'high'}),_0x3bdb33['on']('suggestionUnloaded',_0xe3de66,{'priority':'high'}),_0x2c0a71['model']['document']['registerPostFixer'](()=>{let _0xe6b69=!0x1;const _0x3e80ac=Array['from'](_0x2c0a71['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2134c5,data:_0x223334}of _0x3e80ac){const {group:_0x45de61,type:_0x22ea38,id:_0x20124a}=tt(_0x2134c5);if('suggestion'!=_0x45de61||'deletion'!=_0x22ea38||_0x223334['oldRange'])continue;if(!_0x3bdb33['hasSuggestion'](_0x20124a))continue;const _0x3a3a2e=_0x3bdb33['getSuggestion'](_0x20124a)['getRanges'](),_0x296c83=_0x2c0a71['plugins']['get']('Users')['me'];for(const _0x16ec96 of _0x3bdb33['getSuggestions']())if(_0x16ec96['isInContent']&&_0x16ec96['author']==_0x296c83&&'formatBlock'==_0x16ec96['type']&&'tablePasteCell'==_0x16ec96['subType']&&_0x16ec96['getRanges']()['every'](_0x1111af=>_0x3a3a2e['some'](_0x3cbaaf=>_0x3cbaaf['containsRange'](_0x1111af,!0x0)))){for(const _0x466fff of _0x16ec96['getAllAdjacentSuggestions']())_0x466fff['isInContent']&&(_0x466fff['discard'](),_0xe6b69=!0x0);}}return _0xe6b69;}),_0x2c0a71['model']['document']['registerPostFixer'](_0x504bd6=>{const _0x49d78f=_0x2c0a71['commands']['get']('redo');if(!_0x49d78f||!_0x49d78f['_createdBatches']['has'](_0x504bd6['batch']))return!0x1;let _0xbbc1ed=!0x1;const _0x4cbc2c=_0x2c0a71['plugins']['get']('Users')['me'],_0x4e4860=_0x2c0a71['model']['document']['differ']['getChanges'](),_0x321a7d=Array['from'](_0x2c0a71['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4b2310,data:_0x2cb7e6})=>{const {group:_0x120e39,subType:_0x4937a1,authorId:_0x4769ac}=tt(_0x4b2310);return'suggestion'==_0x120e39&&'tablePaste'==_0x4937a1&&_0x4769ac==_0x4cbc2c['id']&&!_0x2cb7e6['oldRange'];});for(const _0x1c77e8 of _0x4e4860){if('insert'!=_0x1c77e8['type']||'tableCellSuggestion'!=_0x1c77e8['name']||0x1!=_0x1c77e8['length'])continue;const _0x25662e=_0x504bd6['createRange'](_0x1c77e8['position'],_0x1c77e8['position']['getShiftedBy'](0x1));if(!_0x321a7d['find'](({data:_0x245f6d})=>_0x245f6d['newRange']['isEqual'](_0x25662e))){for(const {name:_0xbeecda,data:_0x45fbf7}of _0x321a7d)if(_0x25662e['containsRange'](_0x45fbf7['newRange'])){_0x504bd6['updateMarker'](_0xbeecda,{'range':_0x25662e}),_0xbbc1ed=!0x0;break;}}}return _0xbbc1ed;}),_0x2c0a71['model']['document']['registerPostFixer'](_0x2b7162=>{let _0x1d5946=!0x1;const _0x18b4e2=_0x2c0a71['plugins']['get']('Users')['me'],_0x13cc54=_0x3bdb33['getSuggestions']()['filter'](_0x41cb0b=>_0x41cb0b['isInContent']&&_0x41cb0b['author']==_0x18b4e2),_0x1c8509=new Set(),_0x1f8282=new Set();for(const _0xcc67c5 of _0x13cc54)if('tablePaste'==_0xcc67c5['subType'])for(const _0x2c7df7 of _0xcc67c5['getMarkers']()){const _0x3f8fc7=_0x2c7df7['getRange']()['getContainedElement']();if(_0x3f8fc7){if(_0x3f8fc7['is']('element','tableCellSuggestion')&&ze(_0x3f8fc7)){_0xcc67c5['removeMarker'](_0x2c7df7['name']),_0x1c8509['add'](_0x3f8fc7),_0x1d5946=!0x0;const _0x4b3046=_0x3f8fc7['nextSibling'],_0x4e802a=_0x3f8fc7['previousSibling'],_0x20da10=_0x4b3046&&_0x4b3046['is']('element','tableCellSuggestion'),_0x47913b=_0x4e802a&&_0x4e802a['is']('element','tableCellSuggestion');_0x20da10&&!_0x1c8509['has'](_0x4b3046)&&_0x1f8282['add'](_0x4b3046),_0x47913b&&!_0x1c8509['has'](_0x4e802a)&&_0x1f8282['add'](_0x4e802a);}else _0x3f8fc7['is']('element','paragraph')&&_0x3f8fc7['isEmpty']&&(_0xcc67c5['removeMarker'](_0x2c7df7['name']),_0x1d5946=!0x0);}}else{if('tablePasteCell'==_0xcc67c5['subType']){if(!_0xcc67c5['attributes']||!_0xcc67c5['attributes']['tablePasteChainId'])continue;const _0x46ee97=_0xcc67c5['attributes']['markerAttributes'];if(_0x46ee97&&Object['keys'](_0x46ee97)['length'])continue;const _0x59f641=_0xcc67c5['attributes']['tablePasteChainId'];let _0x44cb18=!0x0,_0x1507fa=!0x0;for(const _0x1d0080 of _0x13cc54)if(_0x1d0080['subType']&&_0x1d0080['subType']['startsWith']('tablePaste')){if(!_0x1d0080['attributes']['tablePasteChainId']){_0x1507fa=!0x1;break;}if(_0x1d0080['id']!=_0xcc67c5['id']&&_0x1d0080['attributes']['tablePasteChainId']==_0x59f641){_0x44cb18=!0x1;break;}}_0x1507fa&&_0x44cb18&&(_0xcc67c5['removeMarkers'](),_0x1d5946=!0x0);}}for(const _0x35b245 of _0x1c8509)_0x2b7162['remove'](_0x35b245);for(const _0x465560 of _0x1f8282)_0x2b7162['unwrap'](_0x465560);return _0x1d5946;}),_0x2c0a71['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3b6529=>_0x152a01(_0x3b6529),'converterPriority':'high'}),_0x2c0a71['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3cef22,_0x44c11a)=>_0x44c11a['options']['showSuggestionHighlights']?_0x152a01(_0x3cef22,!0x1):null,'converterPriority':'high'});const _0x1e968f=_0x2c0a71['editing']['view'];this['listenTo'](_0x1e968f['document'],'clipboardOutput',(_0x130a0a,_0x23689f)=>{const _0x42d4de=[];for(const _0x114756 of _0x1e968f['createRangeIn'](_0x23689f['content'])['getItems']())_0x114756['is']('element','suggestion-td')&&_0x42d4de['push'](_0x114756);_0x1e968f['change'](_0x2406dd=>{for(const _0x25056c of _0x42d4de)_0x2406dd['move'](_0x2406dd['createRangeIn'](_0x25056c),_0x2406dd['createPositionBefore'](_0x25056c)),_0x2406dd['remove'](_0x25056c);});});}};function ze(_0x203cf2){if(_0x203cf2['isEmpty'])return!0x0;const _0x3af949=_0x203cf2['getChild'](0x0);return _0x3af949['is']('element','paragraph')&&_0x3af949['isEmpty'];}function Ke(_0x4d5eb7,_0x1f9e7a={},_0x41f116){for(const {isAnchor:_0x4bafd9,cellHeight:_0x3179c6,cellWidth:_0x16ece4}of _0x41f116['createTableWalker'](_0x4d5eb7,{'includeAllSlots':!0x0,..._0x1f9e7a}))if(!_0x4bafd9||0x1!=_0x3179c6||0x1!=_0x16ece4)return!0x1;return!0x0;}var Xe=class extends _0x26ff96{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x200c97=this['editor']['plugins']['get']('TrackChangesEditing');_0x200c97['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x200c97['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x200c97['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x200c97['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x4f7aef=_0x200c97['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x200c97['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0xfe3658,_0x4c5da1)=>{_0x4f7aef(_0xfe3658,_0x4c5da1),this['_restoreCellWidths'](_0xfe3658[0x0]['start']['nodeAfter'],_0x4c5da1['commandParams'][0x0]['cellWidths']);}),_0x200c97['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x36b38e,_0x4ea6c0){const _0x481837=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1252ff=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x319772=_0x4ea6c0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x43ff03=_0x1252ff['getColumnGroupElement'](_0x319772);let _0x3bdaa5=_0x43ff03?_0x1252ff['getTableColumnsWidths'](_0x43ff03):null,_0x668b6a=_0x319772['getAttribute']('tableWidth')||null;const _0x43af13=_0x4ea6c0['tableWidth']||_0x668b6a,_0x23cdb0=_0x4ea6c0['columnWidths']||_0x3bdaa5;let _0x5e4ab6=this['_getCellWidths'](_0x319772);const _0x5d7fad=this['_foldResizeTableSuggestion'](_0x319772);_0x5d7fad&&(_0x668b6a=_0x5d7fad['tableWidth'],_0x3bdaa5=_0x5d7fad['columnWidths'],_0x5e4ab6=_0x5d7fad['cellWidths']||_0x5e4ab6),_0x36b38e({'table':_0x319772,'tableWidth':_0x43af13,'columnWidths':_0x23cdb0}),_0x481837['markBlockFormat'](_0x319772,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x668b6a,'columnWidths':_0x3bdaa5,'cellWidths':_0x5e4ab6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0xe97bf9,_0x3c485a={}){if(void 0x0===_0x3c485a['value']||''===_0x3c485a['value'])return void _0xe97bf9(_0x3c485a);const _0x25a81f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e7d54=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x520819=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x3c485a['batch']||(_0x3c485a['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x3c485a['batch'],()=>{const _0x42a6a7=_0x2e7d54['getColumnGroupElement'](_0x520819);let _0x1cb919=_0x42a6a7?_0x2e7d54['getTableColumnsWidths'](_0x42a6a7):null,_0x1fad56=_0x520819['getAttribute']('tableWidth')||null,_0x25d928=this['_getCellWidths'](_0x520819);const _0x13711e=this['_foldResizeTableSuggestion'](_0x520819,!0x0);_0x13711e&&(_0x1fad56=_0x13711e['tableWidth'],_0x1cb919=_0x13711e['columnWidths'],_0x25d928=_0x13711e['cellWidths']||_0x25d928),_0xe97bf9(_0x3c485a),_0x25a81f['markBlockFormat'](_0x520819,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1fad56,'columnWidths':_0x1cb919,'cellWidths':_0x25d928}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x449721,_0x42b18a=!0x1){const _0x400e43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3418b2=this['editor']['plugins']['get']('Users')['me'];for(const _0x48ee71 of _0x400e43['getSuggestions']({'skipNotAttached':!0x0})){const _0x373dbb=_0x48ee71['getContainedElement']();if('resizeTable'===_0x48ee71['subType']&&_0x373dbb===_0x449721){_0x48ee71['author']!==_0x3418b2&&(_0x42b18a?_0x48ee71['removeMarkers']():_0x48ee71['discard']());const _0x400f81=_0x48ee71['data']['commandParams'];return{'tableWidth':_0x400f81[0x0]['tableWidth'],'columnWidths':_0x400f81[0x0]['columnWidths'],'cellWidths':_0x400f81[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x5aa7b8){const _0x5edafa=[];for(const _0x5a5dbc of _0x5aa7b8['getChildren']())if(_0x5a5dbc['is']('element','tableRow')){for(const _0x385e2a of _0x5a5dbc['getChildren']())_0x5edafa['push'](_0x385e2a['getAttribute']('tableCellWidth')||null);}return _0x5edafa;}_restoreCellWidths(_0x293099,_0x13a769){_0x13a769&&this['editor']['model']['change'](_0x1c3ef2=>{let _0x364927=0x0;for(const _0x5e42db of _0x293099['getChildren']())if(_0x5e42db['is']('element','tableRow'))for(const _0x3438e9 of _0x5e42db['getChildren']()){const _0x28c20f=_0x13a769[_0x364927++];_0x28c20f&&_0x1c3ef2['setAttribute']('tableCellWidth',_0x28c20f,_0x3438e9);}});}handleSuggestionDescription(_0x50be3b){if('formatBlock'!=_0x50be3b['type']&&'formatInline'!=_0x50be3b['type'])return;const {data:_0x916f2e}=_0x50be3b;return _0x916f2e&&'resizeTable'===_0x916f2e['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x26ff96{afterInit(){const _0x36544a=this['editor'];_0x36544a['plugins']['has']('Template')&&_0x36544a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x26ff96{afterInit(){const _0x1b4897=this['editor'];if(!_0x1b4897['commands']['get']('insertTableOfContents'))return;_0x1b4897['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4e8b59=_0x1b4897['plugins']['get']('TrackChangesEditing'),_0x14d102=_0x1b4897['locale'];_0x4e8b59['descriptionFactory']['registerElementLabel']('tableOfContents',_0x399b26=>Mt(_0x14d102,'ELEMENT_TABLE_OF_CONTENTS',_0x399b26));}},Qe=class extends _0x26ff96{afterInit(){const _0x19d398=this['editor'];_0x19d398['plugins']['has']('Title')&&(_0x19d398['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x19d398['locale'],'ELEMENT_TITLE')),_0x19d398['model']['document']['registerPostFixer'](_0x303568=>{let _0x2bfa4c=!0x1;const _0x963468=Array['from'](_0x19d398['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20f491,data:_0x28b8c6}of _0x963468){const {group:_0x1e9988}=tt(_0x20f491);if('suggestion'!==_0x1e9988||!_0x28b8c6['newRange'])continue;const _0x5ce804=_0x28b8c6['newRange'],_0x17b2dc=_0x5ce804['end']['nodeBefore'];if(!_0x17b2dc||!_0x17b2dc['is']('element','title-content'))continue;if(!_0x5ce804['start']['isTouching'](_0x5ce804['end']))continue;const _0x44f1f0=_0x19d398['model']['schema']['getNearestSelectionRange'](_0x5ce804['end'],'forward');if(_0x44f1f0&&_0x44f1f0['isCollapsed']){const _0x392400=_0x303568['createRange'](_0x5ce804['start'],_0x44f1f0['start']);_0x392400['isEqual'](_0x5ce804)||(_0x303568['updateMarker'](_0x20f491,{'range':_0x392400}),_0x2bfa4c=!0x0);}_0x2bfa4c||(_0x303568['removeMarker'](_0x20f491),_0x2bfa4c=!0x0);}return _0x2bfa4c;}));}},Ze=class extends _0x26ff96{afterInit(){const _0x310927=this['editor'],_0x2817ff=_0x310927['plugins']['get']('TrackChangesEditing');_0x310927['plugins']['has']('Uploadcare')&&(_0x2817ff['enableCommand']('uploadcare'),_0x310927['plugins']['has']('UploadcareImageEdit')&&(_0x2817ff['enableCommand']('uploadcareImageEdit'),_0x2817ff['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2817ff['descriptionFactory']['registerDescriptionCallback'](_0x1fbcbc=>{if('attribute'!=_0x1fbcbc['type'])return;const {data:_0x1027ad}=_0x1fbcbc;return _0x1027ad&&'uploadcareImageId'==_0x1027ad['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x26ff96{afterInit(){const _0x28d765=this['editor'],_0x20f64d=_0x28d765['plugins']['get']('TrackChangesEditing');_0x28d765['plugins']['has']('UndoEditing')&&(_0x20f64d['enableCommand']('undo'),_0x20f64d['enableCommand']('redo'));}},tn=class extends _0x26ff96{static get requires(){return[Ue];}afterInit(){const _0x873abc=this['editor'];_0x873abc['plugins']['has']('TableCaptionEditing')&&_0x873abc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x26ff96{tableProperties;tableCellProperties;constructor(_0x2ef49f){super(_0x2ef49f),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 _0x49e04a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa3da2a of this['tableProperties'])_0x49e04a['enableCommand'](_0xa3da2a,(_0x58f942,_0x419176)=>{const _0x2d16a0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa3da2a,[_0x2d16a0],this['tableProperties'],'tableProperties',_0x58f942,_0x419176);});_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x49e04a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x42409d,_0x4f87e4)=>this['handleDiscardAction'](this['tableProperties'],_0x42409d,_0x4f87e4)),_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1c64af of this['tableCellProperties'])this['editor']['commands']['get'](_0x1c64af)&&_0x49e04a['enableCommand'](_0x1c64af,(_0xc6dbe9,_0x11ca13)=>{const _0x24f5cd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1c64af,_0x24f5cd,this['tableCellProperties'],'tableCellProperties',_0xc6dbe9,_0x11ca13);});_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x49e04a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33036d,_0x543e68)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33036d,_0x543e68)),_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x49e04a['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x49e04a['descriptionFactory']['registerDescriptionCallback'](_0x20bb0f=>this['handleSuggestionDescription'](_0x20bb0f)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x2bba48,_0x18610a,_0x3a91ed,_0x2a9884,_0x3c7634,_0x54dad2){const _0x11cdd2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x54dad2['batch'],()=>{for(const _0x447eab of _0x18610a)if(this['_getSuggestion'](_0x447eab,_0x2a9884))_0x3c7634(_0x54dad2);else{const _0x13d904={};for(const _0x3a4ee2 of _0x3a91ed){const _0x179e69=_0x447eab['getAttribute'](_0x3a4ee2);void 0x0!==_0x179e69&&(_0x13d904[_0x3a4ee2]=_0x179e69);}const _0x4b11bf=this['_getResizedColumnWidths'](_0x447eab);_0x4b11bf&&(_0x13d904['columnWidths']=_0x4b11bf),_0x3c7634(_0x54dad2),_0x11cdd2['markBlockFormat'](_0x447eab,{'commandParams':[_0x13d904]},[],_0x2a9884);}});}handleDiscardAction(_0xacc91e,_0x17c56f,_0xd90d8e){const _0x120b9e=_0x17c56f[0x0]['start']['nodeAfter'],_0x34f165=_0xd90d8e['commandParams'][0x0];this['editor']['model']['change'](_0x437ced=>{for(const _0x270058 of _0xacc91e)void 0x0!==_0x34f165[_0x270058]?_0x437ced['setAttribute'](_0x270058,_0x34f165[_0x270058],_0x120b9e):_0x437ced['removeAttribute'](_0x270058,_0x120b9e);if(_0x34f165['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x1a69b3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10f33b=_0x1a69b3['getColumnGroupElement'](_0x120b9e);if(_0x10f33b){const _0x2003cf=_0x1a69b3['getTableColumnsWidths'](_0x10f33b),_0x192e91=_0x120b9e['getAttribute']('tableWidth');if(('string'==typeof _0x192e91&&_0x192e91['trim']()['endsWith']('px'))!==_0x2003cf['some'](_0x5c3c24=>'string'==typeof _0x5c3c24&&_0x5c3c24['endsWith']('px'))){const _0x1f14e8=_0x1a69b3['getTableColumnElements'](_0x10f33b);_0x34f165['columnWidths']['forEach']((_0x5b7699,_0x4af240)=>{_0x1f14e8[_0x4af240]&&_0x437ced['setAttribute']('columnWidth',_0x5b7699,_0x1f14e8[_0x4af240]);});}}}});}_getResizedColumnWidths(_0x59cd88){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x59cd88['is']('element','table'))return;const _0x3725ba=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x39e790=_0x3725ba['getColumnGroupElement'](_0x59cd88);return _0x39e790?_0x3725ba['getTableColumnsWidths'](_0x39e790):void 0x0;}handleSuggestionDescription(_0x43e270){if(_0x43e270['data'])switch(_0x43e270['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0xc26141,_0x1e498d){const _0x1c1908=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xbb421e of _0x1c1908['getSuggestions']({'skipNotAttached':!0x0})){const _0x1c9fb6=_0xbb421e['getContainedElement']();if(_0xbb421e['subType']===_0x1e498d&&_0x1c9fb6===_0xc26141)return _0xbb421e;}return null;}_registerTablePropertiesAttributes(){const _0x45de3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49f3de=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2e66e5 of _0x49f3de){const _0x3a959f=_0x2e66e5['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x45de3b['descriptionFactory']['registerAttributeLabel'](_0x2e66e5,Mt(this['editor']['locale'],'FORMAT_'+_0x3a959f));}}},nn=class extends _0x26ff96{afterInit(){const _0x34980e=this['editor'];if(!_0x34980e['plugins']['has']('LineHeight'))return;const _0x5819c3=_0x34980e['plugins']['get']('TrackChangesEditing'),_0x1b112f=_0x34980e['locale'];_0x5819c3['enableDefaultAttributesIntegration']('lineHeight'),_0x5819c3['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x1b112f,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0x23df43){return'marker'==_0x23df43['type']&&_0x23df43['name']['startsWith']('$markedRemove');}var on=class extends _0x26ff96{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x5b43d8,_0x3338e0,_0x1d4274,_0x253707,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bfbc4){super(_0x4bfbc4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4d09b8,_0x23fed4,_0x577325,_0x94e88a)=>{this['_model']['change'](()=>{for(const _0x1f0605 of[..._0x94e88a,..._0x577325])this['_model']['markers']['has'](_0x1f0605)&&_0x4bfbc4['editing']['reconvertMarker'](_0x1f0605);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4bfbc4['plugins']['get'](_0x5b43d8),this['_suggestionsConversion']=_0x4bfbc4['plugins']['get'](_0x3338e0),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4bfbc4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4bfbc4['config']['get']('trackChanges.trackFormatChanges'),_0x4bfbc4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4bfbc4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x4bfbc4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x49cfe8=this['editor'];_0x49cfe8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x345278,{writer:_0x1dc771})=>{let _0xad5400='suggestion:'+_0x345278['getAttribute']('suggestion-type')+':'+_0x345278['getAttribute']('id');return _0x345278['getAttribute']('marker-count')&&(_0xad5400+=':'+_0x345278['getAttribute']('marker-count')),_0x1dc771['createElement']('$marker',{'data-name':_0xad5400});}}),_0x49cfe8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x49cfe8['model']['document']['registerPostFixer'](_0x199386=>{let _0x36dd35=!0x1;const _0x20d2be=Array['from'](_0x49cfe8['model']['document']['differ']['getChangedMarkers']()),_0x15474a=new Set();for(const {name:_0x3904a1,data:_0x2b33d3}of _0x20d2be){const {group:_0x3f1876,type:_0x4b77d2,subType:_0x21ac9a,id:_0x52f381}=tt(_0x3904a1);if('suggestion'!==_0x3f1876)continue;const _0x416f61=_0x21ac9a?'suggestion:'+_0x4b77d2+':'+_0x21ac9a+':'+_0x52f381:'suggestion:'+_0x4b77d2+':'+_0x52f381,_0x606304=_0x49cfe8['model']['markers']['getMarkersGroup'](_0x416f61),_0x4d3d6d=_0x49cfe8['model']['markers']['get'](_0x3904a1),_0xfdeea2=this['_suggestions']['get'](_0x52f381);if(null!=_0x2b33d3['newRange']){'formatInline'==_0x4b77d2&&(_0x36dd35=_0x36dd35||un(_0x2b33d3['newRange'],_0x3904a1,_0x199386,_0x49cfe8['model']['schema']));const _0xc0fcd='attribute'==_0x4b77d2&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x21ac9a)),_0x2756ec='attribute'==_0x4b77d2&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x21ac9a));if(_0x2b33d3['newRange']['isCollapsed']||'$graveyard'==_0x2b33d3['newRange']['root']['rootName']||'formatBlock'==_0x4b77d2&&!hn(_0x2b33d3['newRange'])||_0xc0fcd&&!hn(_0x2b33d3['newRange'])||_0x2756ec&&gn(_0x2b33d3['newRange'])||'deletion'==_0x4b77d2&&gn(_0x2b33d3['newRange'])||_0x4d3d6d&&fn(_0x4d3d6d,_0x606304))_0x199386['removeMarker'](_0x3904a1),_0x36dd35=!0x0;else{if(!_0xfdeea2||!_0xfdeea2['isInContent'])continue;if(_0x2b33d3['newRange']&&_0x2b33d3['oldRange']&&_0x2b33d3['newRange']['isEqual'](_0x2b33d3['oldRange']))continue;_0x15474a['add'](_0xfdeea2);}}}return _0x15474a['size']>0x0&&(_0x36dd35=!!this['_joinWithAdjacentSuggestions'](_0x15474a)||_0x36dd35),_0x36dd35;}),_0x49cfe8['model']['document']['registerPostFixer'](_0x730cbf=>{let _0x59c331=!0x1;for(const _0x4c1558 of _0x49cfe8['model']['document']['differ']['getChanges']())if('insert'==_0x4c1558['type'])for(const _0x5f368f of this['_suggestions']['values']()){if(_0x5f368f['isMultiRange']||!_0x5f368f['isInContent'])continue;const _0x165736='formatBlock'==_0x5f368f['type'],_0x4b3d56=this['_getAttributeKey'](_0x5f368f),_0x36296f=_0x4b3d56&&this['_suggestionsConversion']['isBlockAttribute'](_0x4b3d56);if(!_0x165736&&!_0x36296f)continue;const _0x41eac5=_0x5f368f['getFirstRange']();if(_0x41eac5['start']['parent']!=_0x41eac5['end']['parent']&&!_0x41eac5['end']['isAtEnd']){const _0x2290c3=_0x49cfe8['model']['createPositionAt'](_0x41eac5['start']['nodeAfter'],'end'),_0x2c7577=_0x49cfe8['model']['createRange'](_0x41eac5['start'],_0x2290c3);_0x730cbf['updateMarker'](_0x5f368f['getFirstMarker'](),{'range':_0x2c7577}),_0x59c331=!0x0;}}return _0x59c331;}),_0x49cfe8['model']['document']['registerPostFixer'](_0x2338f8=>this['_processAttributeChanges'](_0x2338f8)),_0x49cfe8['model']['document']['registerPostFixer'](_0x823638=>!_0x823638['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x823638)),_0x49cfe8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x49cfe8['model']['document']['on']('change:data',(_0x3015b4,_0x10aa40)=>{if(!_0x10aa40['isLocal']||_0x10aa40['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1422e5=_0x49cfe8['model']['document']['differ']['getChanges']();if(0x0==_0x1422e5['length'])return;const _0x2f2a65=[],_0x56fb73=_0x1422e5['filter'](_0x13182d=>'attribute'==_0x13182d['type']),_0x512107=_0x1422e5['filter'](_0x2b11be=>'insert'==_0x2b11be['type']&&'$text'!=_0x2b11be['name']);for(const _0x180a5c of _0x56fb73)this['_suggestionsConversion']['isRegisteredAttribute'](_0x180a5c['attributeKey'])&&_0x2f2a65['push']({'key':_0x180a5c['attributeKey'],'newValue':_0x180a5c['attributeNewValue'],'oldValue':_0x180a5c['attributeOldValue'],'range':mn(_0x180a5c['range'],_0x49cfe8['model'])});for(const _0x502df8 of _0x512107){if('rename'!=_0x502df8['action']&&'refresh'!=_0x502df8['action'])continue;const _0x167e83=En(_0x502df8['position']['nodeAfter'],_0x49cfe8['model']),_0x77d499=_0x502df8['before'];'rename'==_0x502df8['action']&&_0x2f2a65['push']({'key':sn,'newValue':_0x502df8['name'],'oldValue':_0x77d499['name'],'range':_0x167e83});for(const [_0x5564b0,_0x4cccd5]of _0x77d499['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5564b0))continue;const _0x1fd53d=_0x502df8['attributes']['get'](_0x5564b0);_0x4cccd5!==_0x1fd53d&&_0x2f2a65['push']({'key':_0x5564b0,'newValue':_0x1fd53d,'oldValue':_0x4cccd5,'range':_0x167e83});}for(const [_0x34d3b4,_0x1203fe]of _0x502df8['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x34d3b4)&&(_0x77d499['attributes']['has'](_0x34d3b4)||_0x2f2a65['push']({'key':_0x34d3b4,'newValue':_0x1203fe,'oldValue':null,'range':_0x167e83}));}0x0!=_0x2f2a65['length']&&_0x49cfe8['model']['enqueueChange'](_0x10aa40,_0x372c73=>{const _0x1f4306=_0x3a663f();for(const {range:_0x15dd0e,key:_0x1db988,oldValue:_0x13e738,newValue:_0x87d134}of _0x2f2a65)this['markAttributeChange'](_0x15dd0e,_0x1db988,_0x13e738,_0x87d134,{'groupId':_0x1f4306});this['_reduceExistingSuggestions'](_0x372c73,_0x2f2a65);});},{'priority':'lowest'}),_0x49cfe8['model']['markers']['on']('update:suggestion',(_0x2431b3,_0x200786,_0xe0cab6)=>{if(null==_0xe0cab6){const {id:_0x296d53}=tt(_0x200786['name']),_0x3cc780=this['_suggestions']['get'](_0x296d53);_0x3cc780&&_0x3cc780['addMarkerName'](_0x200786['name']);}}),_0x49cfe8['model']['document']['on']('change:data',()=>{const _0x45b666=Array['from'](_0x49cfe8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x38d0b0=>'suggestion'===tt(_0x38d0b0['name'])['group']);if(0x0===_0x45b666['length'])return;_0x45b666['sort']((_0x413742,_0x57a614)=>{const _0x4d04c7=_0x413742['data']['oldRange'],_0x127758=_0x57a614['data']['oldRange'];return null===_0x4d04c7&&null===_0x127758?0x0:null===_0x4d04c7&&null!==_0x127758?-0x1:null!==_0x4d04c7&&null===_0x127758?0x1:_0x4d04c7['start']['isBefore'](_0x127758['start'])?-0x1:0x1;});const _0x1aabae=new Set(),_0x4cc198=new Set();for(const {name:_0x5a49b1,data:_0xd91f5f}of _0x45b666){const {id:_0x563e91}=tt(_0x5a49b1);if(null===_0xd91f5f['oldRange']){const _0x34d02b=this['_handleNewSuggestionMarker'](_0x5a49b1);_0x4cc198['add'](_0x34d02b);}else{const _0x4d2dde=this['_suggestions']['get'](_0x563e91);null!==_0xd91f5f['newRange']||_0x4d2dde['isInContent']?(_0x1aabae['add'](_0x4d2dde['head']),_0x4cc198['add'](_0x4d2dde)):this['_removeSuggestion'](_0x4d2dde);}}_0x4cc198['size']>0x0&&this['_refreshSuggestionsChain'](_0x4cc198);for(const _0x4e8345 of _0x1aabae)this['fire']('suggestionChanged',_0x4e8345);}),_0x49cfe8['model']['on']('applyOperation',(_0x592c6a,_0x8bbc23)=>{const _0x20f88e=_0x8bbc23[0x0];if(!this['_suggestions']['size'])return;if(!_0x20f88e['isDocumentOperation'])return;if(_0x20f88e['batch']['isUndo']||!_0x20f88e['batch']['isLocal'])return;let _0x418f10,_0xe6388d;switch(_0x20f88e['type']){case'insert':_0x418f10=_0x49cfe8['model']['createPositionAt'](_0x20f88e['position']),_0xe6388d=_0x418f10['getShiftedBy'](_0x20f88e['howMany']);break;case'split':_0x418f10=_0x49cfe8['model']['createPositionAt'](_0x20f88e['splitPosition']),_0xe6388d=_0x49cfe8['model']['createPositionAt'](_0x20f88e['moveTargetPosition']);break;case'move':_0x418f10=_0x49cfe8['model']['createPositionAt'](_0x20f88e['targetPosition']),_0xe6388d=_0x418f10['getShiftedBy'](_0x20f88e['howMany']);break;default:return;}const _0x1bc1f5=_0x49cfe8['model']['createRange'](_0x418f10,_0xe6388d);_0x49cfe8['model']['change'](()=>{for(const {suggestion:_0x35e745,meta:_0x199cb9}of this['_findSuggestions'](_0x1bc1f5)){if(_0x35e745['isMultiRange'])continue;if('formatInline'==_0x35e745['type'])continue;const _0x158619=this['_getAttributeKey'](_0x35e745);if(_0x158619&&this['_suggestionsConversion']['isBlockAttribute'](_0x158619)&&'split'!=_0x20f88e['type'])continue;const _0x1be02b=_0x35e745['data']&&_0x35e745['data']['multipleBlocks'];('formatBlock'!=_0x35e745['type']||'split'==_0x20f88e['type']&&!_0x1be02b)&&(_0x199cb9['containsRangeInObject']||'insertion'==_0x35e745['type']&&_0x199cb9['isOwn']||_0x35e745['getFirstRange']()['containsRange'](_0x1bc1f5)&&this['_breakSuggestionMarker'](_0x35e745,_0x418f10,_0xe6388d));}});},{'priority':'lowest'}),_0x49cfe8['model']['on']('deleteContent',(_0x3d818b,_0x640cd3)=>{const _0x4d47b2=_0x640cd3[0x0],_0x2f8a0b=_0x640cd3[0x1];if(_0x2f8a0b&&_0x2f8a0b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d47b2['isCollapsed'])return;const _0x58e6bf=_0x49cfe8['model']['schema'],{start:_0x5da35d,end:_0x208ee4}=_0x4d47b2['getFirstRange'](),_0x11cc0d=_0x5da35d['nodeAfter']&&_0x58e6bf['isLimit'](_0x5da35d['nodeAfter'])?null:_0x58e6bf['getNearestSelectionRange'](_0x5da35d,'forward'),_0x2e90a8=_0x208ee4['nodeBefore']&&_0x58e6bf['isLimit'](_0x208ee4['nodeBefore'])?null:_0x58e6bf['getNearestSelectionRange'](_0x208ee4,'backward'),_0x58dda7=_0x49cfe8['model']['createRange'](_0x11cc0d?_0x11cc0d['start']:_0x5da35d,_0x2e90a8?_0x2e90a8['end']:_0x208ee4);_0x49cfe8['model']['change'](_0x212602=>{this['markDeletion'](_0x58dda7);const _0x40070c=_0x49cfe8['model']['schema']['getNearestSelectionRange'](_0x58dda7['start']);_0x4d47b2['is']('documentSelection')?_0x212602['setSelection'](_0x40070c):_0x4d47b2['setTo'](_0x40070c);}),_0x3d818b['stop']();},{'priority':_0x224aaf['normal']+0xa}),_0x49cfe8['model']['on']('insertContent',(_0x589c82,_0x207157)=>{const _0x2270d5=_0x207157[_0x207157['length']-0x1];_0x2270d5&&_0x2270d5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x49cfe8['model']['change'](()=>{let _0x380246=_0x49cfe8['model']['insertContent'](_0x207157[0x0],_0x207157[0x1],_0x207157[0x2],{'forceDefaultExecution':!0x0});if(!_0x380246)return;_0x589c82['return']=_0x380246['clone']();const _0x545dd1=_0x380246['end']['nodeBefore'],_0x40075a=_0x49cfe8['model']['schema'];_0x545dd1&&_0x40075a['isBlock'](_0x545dd1)&&!_0x40075a['isObject'](_0x545dd1)&&(_0x380246=_0x49cfe8['model']['createRange'](_0x380246['start'],_0x49cfe8['model']['createPositionAt'](_0x545dd1,'end'))),this['markInsertion'](_0x380246);}),_0x589c82['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x123777=new _t(_0x49cfe8,this['_suggestions']);_0x49cfe8['commands']['add']('acceptSuggestion',_0x123777),this['enableCommand']('acceptSuggestion');const _0x222703=new pt(_0x49cfe8,this['_suggestions']);_0x49cfe8['commands']['add']('discardSuggestion',_0x222703),this['enableCommand']('discardSuggestion'),_0x49cfe8['commands']['add']('acceptAllSuggestions',new Rt(_0x49cfe8,_0x123777,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x49cfe8['commands']['add']('discardAllSuggestions',new Rt(_0x49cfe8,_0x222703,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x49cfe8['commands']['add']('acceptSelectedSuggestions',new yt(_0x49cfe8,_0x123777,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x49cfe8['commands']['add']('discardSelectedSuggestions',new yt(_0x49cfe8,_0x222703,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x136ea5=_0x49cfe8['plugins']['get'](_0x5b43d8);this['listenTo'](_0x136ea5,'addComment',(_0x13bf50,{threadId:_0x4412b8})=>{const _0x16d463=this['_suggestions']['get'](_0x4412b8);_0x16d463&&_0x16d463['commentThread']&&0x1===_0x16d463['commentThread']['length']&&this['_updateSuggestionData'](_0x4412b8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x136ea5,'removeComment',(_0x5ca58b,{threadId:_0x23d03f})=>{const _0x3d210f=this['_suggestions']['get'](_0x23d03f);_0x3d210f&&_0x3d210f['commentThread']&&!_0x3d210f['commentThread']['length']&&this['_updateSuggestionData'](_0x23d03f,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x15b22b){const _0x5d1a9c='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x33fb61=0x793f8,_0x3ed640={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x3aa6d2(_0x27410b){const _0x251860=new window['Promise'](_0x511c1b=>{_0x27410b['once']('ready',_0x511c1b);}),_0x595da5=window['Date']['now'](),_0x3a32cb=_0x27410b['config']['get']('licenseKey');async function _0x5cccb9(){let _0x1ee1fc,_0x25b46f=null,_0x425e71=null;try{return'GPL'==_0x3a32cb?'NotAllowed':(_0x1ee1fc=_0x3604ea(),_0x1ee1fc?(_0x1ee1fc['usageEndpoint']&&(_0x425e71=_0x55feb1(_0x1ee1fc['usageEndpoint'],_0x1ee1fc['jti'])),await _0x2b7c40()?_0x321198()?_0x392fe3()?'Expired':_0x43504c()?('evaluation'==_0x1ee1fc['licenseType']&&(_0x25b46f=_0x1e5859('EvaluationLimit')),await _0x508b92()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x392fe3(){const _0x59aa32=['evaluation','trial']['includes'](_0x1ee1fc['licenseType'])?_0x595da5/0x3e8:0xe10*_0x33fb61;return _0x1ee1fc['exp']<_0x59aa32;}function _0x321198(){const _0x12e3b5=_0x1ee1fc['features'];if(!_0x12e3b5)return!0x1;if(_0x12e3b5['includes']('*'))return!0x0;if(_0x12e3b5['includes']('TC'))return!0x0;if(_0x12e3b5['includes']('RTC')){if(_0x37600e())return!0x0;if(_0x304583()||_0x2639c8())return!0x0;}return!0x1;}function _0x43504c(){const _0x4513a4=_0x1ee1fc['licensedHosts'];if(!_0x4513a4||0x0==_0x4513a4['length'])return!0x0;const {hostname:_0x6951b8}=new URL(window['location']['href']);if(_0x4513a4['includes'](_0x6951b8))return!0x0;const _0x9c137e=_0x6951b8['split']('.');return _0x4513a4['filter'](_0x322312=>_0x322312['includes']('*'))['map'](_0x1380db=>_0x1380db['split']('.'))['filter'](_0x1eed26=>_0x1eed26['length']<=_0x9c137e['length'])['map'](_0x469a6e=>Array(_0x9c137e['length']-_0x469a6e['length'])['fill']('*'===_0x469a6e[0x0]?'*':'')['concat'](_0x469a6e))['some'](_0x258440=>_0x9c137e['every']((_0x22cc6e,_0x36d0de)=>_0x258440[_0x36d0de]===_0x22cc6e||'*'===_0x258440[_0x36d0de]));}function _0x508b92(){return _0x25b46f&&_0x425e71?new window['Promise']((_0x273e49,_0x308b95)=>{_0x25b46f['then'](_0x273e49,_0x308b95),_0x425e71['then'](_0x95f65a=>{'Valid'!=_0x95f65a&&_0x273e49(_0x95f65a);},_0x308b95);}):_0x25b46f||_0x425e71||'Valid';}}function _0x55feb1(_0x4d2b30,_0x42970a){return new window['Promise'](_0x3b2ddb=>{if(_0x7772c8())return _0x3b2ddb('Valid');_0x368e84(),_0x27410b['decorate']('_sendUsageRequest');let _0x3c27fa=!0x1;const _0x2af5be=_0x3a663f();function _0x62a4a7(_0x2918ed){return!!_0x2918ed&&('object'==typeof _0x2918ed||'function'==typeof _0x2918ed)&&'function'==typeof _0x2918ed['then']&&'function'==typeof _0x2918ed['catch'];}function _0x2b9ba6(_0x1c6cf9){_0x42f90c(_0x1c6cf9)['then'](_0x4b2d49=>_0x4b2d49&&'ok'==_0x4b2d49['status']?_0x454b9f(_0x240d2e(_0x2af5be+_0x42970a))!=_0x4b2d49['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x8b746f=>(_0x522402(),_0x8b746f),()=>{const _0x49aab3=_0x15d76e();return null==_0x49aab3?(_0x522402(),'Valid'):_0x595da5-_0x49aab3>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3b2ddb)['catch'](()=>{_0x3b2ddb('UsageLimit');});const _0x3af50d=0x36ee80;function _0x522402(){const _0x4aca9b='llct-'+_0x454b9f(_0x240d2e(_0x4d2b30)),_0x42f1e5=_0x283183(_0x454b9f(window['Math']['ceil'](_0x595da5/_0x3af50d)));window['localStorage']['setItem'](_0x4aca9b,_0x42f1e5);}function _0x15d76e(){const _0xc9dd07='llct-'+_0x454b9f(_0x240d2e(_0x4d2b30)),_0xde1115=window['localStorage']['getItem'](_0xc9dd07);return _0xde1115?window['parseInt'](_0x283183(_0xde1115),0x10)*_0x3af50d:null;}function _0x42f90c(_0x5d9cb9){return new window['Promise']((_0xf28455,_0x3138ee)=>{_0x5d9cb9['then'](_0xf28455,_0x3138ee),window['setTimeout'](_0x3138ee,0x1d4c0);});}}_0x27410b['on']('_sendUsageRequest',(_0x38cc93,_0x1ea6d9)=>{if(_0x1ea6d9[0x0]!=_0x4d2b30)return _0x3b2ddb('UsageLimit');_0x1ea6d9[0x1]={..._0x1ea6d9[0x1],'requestId':_0x2af5be};},{'priority':'high'}),_0x27410b['on']('_sendUsageRequest',_0xbfaba7=>{_0x62a4a7(_0xbfaba7['return'])&&(_0x3c27fa=!0x0,_0x2b9ba6(_0xbfaba7['return']));},{'priority':'low'}),_0x251860['then'](()=>{_0x3c27fa||_0x3b2ddb('UsageLimit');});});function _0x7772c8(){return'auto'==_0x27410b['editing']['view']['_overlayModeHint'];}function _0x368e84(){_0x27410b['editing']['view']['_overlayModeHint']='auto';}}function _0x1e5859(_0x2a613a){const _0x4189d7=[new window['Promise'](_0x49005c=>setTimeout(_0x49005c,0x93ecc)),_0x251860['then'](()=>new window['Promise'](_0x675b5e=>{let _0x1b5351=0x0;_0x27410b['model']['on']('applyOperation',(_0x45e167,_0x2cf779)=>{_0x2cf779[0x0]['isDocumentOperation']&&_0x1b5351++,0x5e8==_0x1b5351&&(_0x675b5e(),_0x45e167['off']());});}))];return window['Promise']['race'](_0x4189d7)['then'](()=>_0x2a613a);}async function _0x38f7f9(){await _0x251860,_0x27410b['model']['change']=_0x822299,_0x27410b['model']['enqueueChange']=_0x822299,_0x27410b['enableReadOnlyMode']('model');}function _0x37600e(){return _0x508543('WebSocketGateway')&&'connected'==_0x136829('WebSocketGateway')['state'];}function _0x304583(){return _0x508543('RevisionViewerIntegration');}function _0x2639c8(){return _0x508543('TrackChangesDataGetter');}function _0x4048f0(_0x487285){const _0xb7a98d=_0x2ed21f();_0x27410b[_0xb7a98d]='trackChangesLicenseKey'+_0x487285,'Valid'!=_0x487285&&_0x38f7f9();}function _0x2ed21f(){const _0x202352=window['String'](window['performance']['now']())['replace']('.','');let _0x506a22='U';for(let _0x41836b=0x0;_0x41836b<_0x202352['length'];_0x41836b+=0x2){let _0x437fba=window['parseInt'](_0x202352['substring'](_0x41836b,_0x41836b+0x2));_0x437fba>=0x3e&&(_0x437fba-=0x3e),_0x506a22+=_0x5d1a9c[_0x437fba];}return _0x506a22;}function _0x3604ea(){const _0x24849a=_0x3a32cb['split']('.');if(0x3!=_0x24849a['length'])return null;return _0x368e1e(_0x24849a[0x1]);function _0x368e1e(_0x42d2f1){const _0x46caff=_0xd73459(_0x42d2f1);return _0x46caff&&_0x36e974()?_0x46caff:null;function _0x36e974(){const _0x15065d=_0x46caff['jti'],_0x45fd78=window['parseInt'](_0x15065d['substring'](_0x15065d['length']-0x8),0x10),_0x31bfb2={..._0x46caff,'jti':_0x15065d['substring'](0x0,_0x15065d['length']-0x8)};return delete _0x31bfb2['vc'],_0x240d2e(_0x31bfb2)==_0x45fd78;}}}async function _0x2b7c40(){let _0xd2315d=!0x0;try{const [_0x22cb61,_0x442ef5,_0x29e138]=_0x3a32cb['split']('.');return _0x170d41(_0x22cb61),await _0x427520(_0x22cb61,_0x442ef5,_0x29e138),_0xd2315d;}catch{return!0x1;}function _0x170d41(_0x40999e){const _0xc1c4ff=_0xd73459(_0x40999e);_0xc1c4ff&&'ES256'==_0xc1c4ff['alg']||(_0xd2315d=!0x1);}async function _0x427520(_0x3b8ee9,_0x5199e2,_0x2c4f5d){const _0x5dec6d=window['Uint8Array']['from'](_0x33e825(_0x2c4f5d),_0x587d45=>_0x587d45['charCodeAt'](0x0)),_0xea5dfe=new window['TextEncoder']()['encode'](_0x3b8ee9+'.'+_0x5199e2),_0x212fab=window['crypto']['subtle'];if(!_0x212fab)return;const _0x159366=await _0x212fab['importKey']('jwk',_0x3ed640,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x212fab['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x159366,_0x5dec6d,_0xea5dfe)||(_0xd2315d=!0x1);}}function _0xd73459(_0x296157){return _0x296157['startsWith']('ey')?JSON['parse'](_0x33e825(_0x296157)):null;}function _0x33e825(_0x1241c5){return window['atob'](_0x1241c5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x240d2e(_0xe27c7c){let _0x35affb=0x1505;function _0x64f78d(_0x2625ca){for(let _0x364914=0x0;_0x364914<_0x2625ca['length'];_0x364914++){const _0xc240ee=_0x2625ca['charCodeAt'](_0x364914);_0x35affb=(_0x35affb<<0x5)+_0x35affb+_0xc240ee,_0x35affb&=_0x35affb;}}function _0x51126c(_0x51c162){Array['isArray'](_0x51c162)?_0x51c162['forEach'](_0x51126c):_0x51c162&&'object'==typeof _0x51c162?Object['entries'](_0x51c162)['sort']()['forEach'](([_0xc45ece,_0x4321f1])=>{_0x64f78d(_0xc45ece),_0x51126c(_0x4321f1);}):_0x64f78d(window['String'](_0x51c162));}return _0x51126c(_0xe27c7c),_0x35affb>>>0x0;}function _0x454b9f(_0x433a22){return _0x433a22['toString'](0x10)['padStart'](0x8,'0');}function _0x283183(_0x5c229b){return _0x5c229b['split']('')['reverse']()['join']('');}function _0x508543(_0x52b0e1){return _0x27410b['plugins']['has'](_0x52b0e1);}function _0x136829(_0x3a93d9){return _0x27410b['plugins']['get'](_0x3a93d9);}function _0x822299(){}_0x4048f0(await _0x5cccb9());}_0x3aa6d2(_0x15b22b['editor']);}(this);}set adapter(_0x35c4b4){if(this['_adapter'])throw new _0x18ab5c('track-changes-adapter-already-set',this);this['_adapter']=_0x35c4b4;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x1a73f=!0x1,toJSON:_0x217956=!0x1}={}){const _0x2c5711=[];for(const _0x40aa89 of this['_suggestions']['values']())_0x1a73f&&!_0x40aa89['isInContent']||_0x2c5711['push'](_0x40aa89);return _0x217956?_0x2c5711['map'](_0xba1750=>_0xba1750['toJSON']()):_0x2c5711;}getSuggestion(_0x586b21){const _0x21d0f7=this['_suggestions']['get'](_0x586b21);if(!_0x21d0f7)throw new _0x18ab5c('track-changes-suggestion-not-found',this);return _0x21d0f7;}hasSuggestion(_0x130162){return this['_suggestions']['has'](_0x130162);}addSuggestionData(_0x1b5bd4){const {authorId:_0x3de152,id:_0x69ddb4,originalSuggestionId:_0x399e9a,attributes:_0x4503cf}=_0x1b5bd4,[_0x5de853,_0x442202]=_0x1b5bd4['type']['split'](':'),_0x117a6f=this['_suggestions']['get'](_0x69ddb4)||this['_createSuggestion'](_0x5de853,_0x442202,_0x69ddb4,_0x3de152,_0x4503cf,_0x399e9a);if(this['_addThreadToSuggestion'](_0x117a6f),this['_checkSuggestionCorrectness'](_0x117a6f,_0x5de853,_0x442202||null,_0x3de152),_0x117a6f['createdAt']=_0x1b5bd4['createdAt'],_0x117a6f['_isDataLoaded']=!0x0,_0x4503cf&&_0x4503cf['@external']){const _0x150ca5=_0x4503cf['@external'],_0x4cedbf=this['_getExternalAuthor'](_0x150ca5['authorName']);_0x117a6f['authoredAt']=_0x150ca5['createdAt'],_0x117a6f['author']=_0x4cedbf;}else _0x117a6f['authoredAt']=_0x1b5bd4['createdAt'];switch(_0x1b5bd4['data']&&(_0x117a6f['data']=_0x1b5bd4['data']),_0x1b5bd4['attributes']&&(_0x117a6f['attributes']=_0x1b5bd4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x117a6f['_saved']=!0x0),this['_suggestionState']['get'](_0x117a6f)){case'notReady':this['_suggestionState']['set'](_0x117a6f,'dataReady');break;case'markerReady':_0x117a6f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x117a6f])),this['_refreshSuggestionsChain'](new Set([_0x117a6f])),this['_suggestionState']['set'](_0x117a6f,'ready'),this['fire']('suggestionLoaded',_0x117a6f)):this['_suggestionState']['set'](_0x117a6f,'removed');}return _0x117a6f;}acceptSuggestion(_0xccabb9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12a414 of _0xccabb9['getAllAdjacentSuggestions']())_0x12a414['accept']();});});}discardSuggestion(_0x474aaa){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1a4b00 of _0x474aaa['getAllAdjacentSuggestions']())_0x1a4b00['discard']();});});}['enableCommand'](_0x3b09b6,_0x204283){const _0x2be889=this['editor']['commands']['get'](_0x3b09b6);if(!_0x2be889)throw new _0x18ab5c('track-changes-command-not-found',this,{'commandName':_0x3b09b6});if(this['_enabledCommands']['has'](_0x2be889))throw new _0x18ab5c('track-changes-enable-command-twice',this,{'commandName':_0x3b09b6});this['_enabledCommands']['add'](_0x2be889),_0x204283&&_0x2be889['on']('execute',(_0x4fe690,_0x1bada3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1bada3['length']>0x0&&_0x1bada3[_0x1bada3['length']-0x1]&&_0x1bada3[_0x1bada3['length']-0x1]['forceDefaultExecution']?_0x1bada3['pop']():(_0x4fe690['return']=_0x204283((..._0x34a285)=>_0x2be889['execute'](..._0x34a285,{'forceDefaultExecution':!0x0}),..._0x1bada3),_0x4fe690['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x399e0e){let _0x1e7bc6,_0x740ce2;const _0x2f2d1c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1e7bc6=_0x399e0e();}catch(_0x130b93){_0x740ce2=_0x130b93;}return _0x2f2d1c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x740ce2&&_0x18ab5c['rethrowUnexpectedError'](_0x740ce2,this),_0x1e7bc6;}markInsertion(_0x494a64,_0x188c19=null,_0x33e79d={}){if(_0x494a64['isCollapsed'])return null;const _0x108d33=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x33e79d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3f22f5,meta:_0x297464}of this['_findSuggestions'](_0x494a64,'insertion'))if(_0x297464['isOwn']){if(!_0x297464['isNextTo']){if(_0x297464['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x3f22f5,_0x33e79d))continue;return _0x3f22f5;}if(pn(_0x3f22f5,_0x33e79d))return _0x3f22f5;this['_breakSuggestionMarker'](_0x3f22f5,_0x494a64['start'],_0x494a64['end']);break;}if(_0x188c19==_0x3f22f5['subType']&&pn(_0x3f22f5,_0x33e79d)){const _0x23c891=_0x3f22f5['getFirstRange']();return _0x23c891['start']['isEqual'](_0x494a64['end'])?this['_setSuggestionRange'](_0x3f22f5,this['_model']['createRange'](_0x494a64['start'],_0x23c891['end'])):this['_setSuggestionRange'](_0x3f22f5,this['_model']['createRange'](_0x23c891['start'],_0x494a64['end'])),_0x3f22f5;}}const _0x3b1ec0=_0x3a663f(),_0x644172=_0x108d33['id'],_0x2b3ffc=_0x188c19?'insertion:'+_0x188c19:'insertion',_0x56dfd9=this['_setSuggestionData']({'id':_0x3b1ec0,'type':_0x2b3ffc,'createdAt':new Date(),'authorId':_0x644172,'attributes':_0x33e79d});return this['_addSuggestionMarker'](_0x2b3ffc,_0x3b1ec0,_0x644172,_0x494a64),_0x56dfd9;}markMultiRangeInsertion(_0x3ba901,_0x31cb67='multi',_0x553634={}){const _0x2840e0=this['editor']['plugins']['get']('Users')['me'],_0x11e648=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x31cb67,'join');this['_trackingSessionId']&&(_0x553634['trackingSessionId']=this['_trackingSessionId']);for(const _0x5936f3 of this['getSuggestions']())if(_0x5936f3['author']['id']==_0x2840e0['id']&&'insertion'==_0x5936f3['type']&&_0x5936f3['subType']==_0x31cb67&&pn(_0x5936f3,_0x553634)&&(_0x11e648(_0x5936f3['getRanges'](),_0x3ba901)||_0x11e648(_0x3ba901,_0x5936f3['getRanges']()))){for(const _0x23d451 of _0x3ba901)_0x5936f3['addRange'](_0x23d451);return _0x5936f3;}for(const {suggestion:_0x236a86,meta:_0x292fb5}of this['_findSuggestions'](_0x3ba901,'insertion')){if(!_0x292fb5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x292fb5['containsRangeInObject'])continue;if(!pn(_0x236a86,_0x553634))continue;let _0xd0eb99=!0x0;for(const _0x4a7567 of _0x236a86['getRanges']())for(const _0x5f004a of _0x3ba901)if(!_0x4a7567['containsRange'](_0x5f004a)){_0xd0eb99=!0x1;break;}if(_0xd0eb99)return _0x236a86;}const _0x28de34=_0x3a663f(),_0x24caef=_0x2840e0['id'],_0x4b84d1='insertion:'+_0x31cb67,_0x3d24c7=this['_setSuggestionData']({'id':_0x28de34,'type':_0x4b84d1,'createdAt':new Date(),'authorId':_0x24caef,'attributes':_0x553634});for(const _0x98084 of _0x3ba901)this['_addSuggestionMarker'](_0x4b84d1,_0x28de34,_0x24caef,_0x98084,St['getMultiRangeId']());return _0x3d24c7;}markInlineFormat(_0x555d4d,_0x294e4b,_0xa630b6=null,_0x2371ac={}){if(_0xa630b6=_0xa630b6||dn(_0x294e4b),_0x555d4d['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2371ac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x335079=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa630b6,'accept');return this['forceDefaultExecution'](()=>_0x335079([_0x555d4d],_0x294e4b,_0x2371ac)),null;}const _0x31e944=this['editor']['plugins']['get']('Users')['me'],_0xa4913f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x41f431,meta:_0x2ee02f}of this['_findSuggestions'](_0x555d4d,'insertion'))_0x2ee02f['isOwn']&&!_0x2ee02f['isInsideObject']&&_0xa4913f['push'](..._0x41f431['getRanges']());}const _0x243355=function(_0x260e77,_0x1a7e77){const _0x5f3357=[];for(const _0x245b27 of _0x1a7e77){const _0x62d1ea=_0x260e77['getIntersection'](_0x245b27);_0x62d1ea&&_0x5f3357['push'](_0x62d1ea);}return _0x5f3357;}(_0x555d4d,_0xa4913f),_0x1d9567=function(_0x4457ba,_0x27c4bf){const _0x56a8f3=[_0x4457ba];for(const _0x4baf8f of _0x27c4bf){let _0x311015=0x0;for(;_0x311015<_0x56a8f3['length'];){const _0x53aedf=_0x56a8f3[_0x311015]['getDifference'](_0x4baf8f);_0x56a8f3['splice'](_0x311015,0x1,..._0x53aedf),_0x311015+=_0x53aedf['length'];}}return _0x56a8f3;}(_0x555d4d,_0xa4913f);_0x243355['length']&&this['_model']['change'](()=>{for(const _0x424272 of _0x243355){const _0x47e9b1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa630b6,'accept');this['forceDefaultExecution'](()=>_0x47e9b1([_0x424272],_0x294e4b,_0x2371ac));}});for(const _0x380930 of _0x1d9567){let _0x404217=null,_0x28174c=_0x380930['start'],_0x5811e7=_0x380930['end'];for(const {suggestion:_0x19291d,meta:_0x276245}of this['_findSuggestions'](_0x380930,'formatInline')){if(!_0x276245['isOwn'])continue;if(_0x19291d['subType']!=_0xa630b6)continue;if(!pn(_0x19291d,_0x2371ac))continue;const _0x16bca9=_0x19291d['getFirstRange']();if(_0x16bca9['containsRange'](_0x380930,!0x0))return null;_0x28174c=_0x28174c['isBefore'](_0x16bca9['start'])?_0x28174c:_0x16bca9['start'],_0x5811e7=_0x5811e7['isAfter'](_0x16bca9['end'])?_0x5811e7:_0x16bca9['end'],_0x404217?_0x16bca9['start']['isBefore'](_0x404217['getFirstRange']()['start'])?(_0x404217['removeMarkers'](),_0x404217=_0x19291d):_0x19291d['removeMarkers']():_0x404217=_0x19291d;}const _0x3e4e0d=this['_model']['createRange'](_0x28174c,_0x5811e7);if(_0x404217)this['_setSuggestionRange'](_0x404217,_0x3e4e0d);else{const _0x4694c1=_0x3a663f(),_0x3ae683=_0x31e944['id'];this['_setSuggestionData']({'id':_0x4694c1,'type':'formatInline:'+_0xa630b6,'data':_0x294e4b,'createdAt':new Date(),'authorId':_0x3ae683,'attributes':_0x2371ac}),this['_addSuggestionMarker']('formatInline:'+_0xa630b6,_0x4694c1,_0x3ae683,_0x3e4e0d);}}return null;}markBlockFormat(_0x556897,_0x117183,_0x47369b=[],_0x59131a=null,_0x4426f8={}){_0x117183['formatGroupId']||(_0x117183['formatGroupId']=_0x117183['commandName']),_0x117183['multipleBlocks']=_0x556897['is']('range'),_0x59131a=_0x59131a||dn(_0x117183);const _0x3c5ea1=_0x47369b['map'](_0x8b4045=>En(_0x8b4045,this['_model'])),_0x560d8f=_0x556897['is']('range')?_0x556897:En(_0x556897,this['_model']);if(this['_trackingSessionId']&&(_0x4426f8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa248f4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59131a,'accept');return this['forceDefaultExecution'](()=>_0xa248f4([_0x560d8f],_0x117183,_0x4426f8)),null;}_0x3c5ea1['push'](_0x560d8f);let _0x38de0d=!0x0;for(const _0x306e28 of _0x3c5ea1)if(!this['_rangeIsInLocalUserInsertion'](_0x306e28)){_0x38de0d=!0x1;break;}if(_0x38de0d&&'always'!==this['_trackFormatChanges']){const _0x47bdd2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59131a,'accept');return this['forceDefaultExecution'](()=>_0x47bdd2([_0x560d8f],_0x117183,_0x4426f8)),null;}let _0x35ed60=null,_0x35762b=_0x560d8f['start'],_0x317098=_0x560d8f['end'];for(const {suggestion:_0x3ba2b3,meta:_0x1c832e}of this['_findSuggestions'](_0x560d8f,'formatBlock')){if(!_0x1c832e['isOwn'])continue;if(_0x1c832e['isNextTo']||_0x1c832e['containsRangeInObject']||_0x1c832e['isInsideObject'])continue;if(_0x3ba2b3['data']['formatGroupId']!=_0x117183['formatGroupId'])continue;if(!pn(_0x3ba2b3,_0x4426f8))continue;const _0xcc0ad1=_0x3ba2b3['getFirstRange']();if(_0x3ba2b3['subType']==_0x59131a){if(_0xcc0ad1['containsRange'](_0x560d8f,!0x0))return null;_0x35762b=_0x35762b['isBefore'](_0xcc0ad1['start'])?_0x35762b:_0xcc0ad1['start'],_0x317098=_0x317098['isAfter'](_0xcc0ad1['end'])?_0x317098:_0xcc0ad1['end'],_0x35ed60?_0xcc0ad1['start']['isBefore'](_0x35ed60['getFirstRange']()['start'])?(_0x35ed60['removeMarkers'](),_0x35ed60=_0x3ba2b3):_0x3ba2b3['removeMarkers']():_0x35ed60=_0x3ba2b3;}else{const _0x3c3f91=_0x560d8f['getIntersection'](_0xcc0ad1);this['_cutOutSuggestionMarker'](_0x3ba2b3,_0x3c3f91);}}const _0x557772=this['editor']['plugins']['get']('Users')['me'],_0x53eacf=_0x3a663f(),_0xab5a9=_0x557772['id'];if(_0x35ed60)return this['_setSuggestionRange'](_0x35ed60,this['_model']['createRange'](_0x35762b,_0x317098)),_0x35ed60;{const _0x2d9bc0=this['_setSuggestionData']({'id':_0x53eacf,'type':'formatBlock:'+_0x59131a,'data':_0x117183,'createdAt':new Date(),'authorId':_0xab5a9,'attributes':_0x4426f8});return this['_addSuggestionMarker']('formatBlock:'+_0x59131a,_0x53eacf,_0xab5a9,this['_model']['createRange'](_0x35762b,_0x317098)),_0x2d9bc0;}}markMultiRangeBlockFormat(_0x343cc0,_0x390930,_0x2f9251=[],_0xcd787b=null,_0x4eb7e3={}){_0x390930['formatGroupId']||(_0x390930['formatGroupId']=_0x390930['commandName']);const _0x48969e=_0x343cc0[0x0];_0x390930['multipleBlocks']=_0x48969e['is']('range'),_0xcd787b=_0xcd787b||dn(_0x390930);const _0x4f83f1=_0x2f9251['map'](_0x510916=>En(_0x510916,this['_model'])),_0x61213d=_0x48969e['is']('range')?_0x343cc0:_0x343cc0['map'](_0x24159b=>En(_0x24159b,this['_model']));if(this['_trackingSessionId']&&(_0x4eb7e3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdb6f79=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcd787b,'accept');return this['forceDefaultExecution'](()=>_0xdb6f79(_0x61213d,_0x390930,_0x4eb7e3)),null;}_0x4f83f1['push'](..._0x61213d);let _0x201a73=!0x0;for(const _0x3124bb of _0x4f83f1)if(!this['_rangeIsInLocalUserInsertion'](_0x3124bb)){_0x201a73=!0x1;break;}if(_0x201a73&&'always'!==this['_trackFormatChanges']){const _0x2ee881=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcd787b,'accept');return this['forceDefaultExecution'](()=>_0x2ee881(_0x61213d,_0x390930,_0x4eb7e3)),null;}const _0x2ee025=this['editor']['plugins']['get']('Users')['me'];for(const _0x396bb0 of this['getSuggestions']()){const _0x539f53=_0x396bb0['data'];if(_0x396bb0['author']['id']!=_0x2ee025['id'])continue;if('formatBlock'!=_0x396bb0['type']||_0x539f53['formatGroupId']!=_0x390930['formatGroupId'])continue;if(!pn(_0x396bb0,_0x4eb7e3))continue;const _0xf612f3=_0x396bb0['subType']==_0xcd787b;for(let _0x15f1ba=0x0;_0x15f1ba<_0x61213d['length'];_0x15f1ba++){const _0x144397=_0x61213d[_0x15f1ba];for(const _0x39626f of _0x396bb0['getMarkers']()){const _0xba9099=_0x39626f['getRange']();if(_0x144397['isEqual'](_0xba9099)){_0xf612f3?(_0x61213d['splice'](_0x15f1ba,0x1),_0x15f1ba--):_0x396bb0['removeMarker'](_0x39626f['name']);break;}}}}if(0x0==_0x61213d['length'])return null;const _0x17e65a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcd787b,'join');for(const _0x25f144 of this['getSuggestions']()){const _0x593466=_0x25f144['data'];if(_0x25f144['author']['id']==_0x2ee025['id']&&('formatBlock'==_0x25f144['type']&&_0x593466['formatGroupId']==_0x390930['formatGroupId']&&_0x25f144['subType']==_0xcd787b&&pn(_0x25f144,_0x4eb7e3)&&(_0x17e65a(_0x25f144['getRanges'](),_0x61213d)||_0x17e65a(_0x61213d,_0x25f144['getRanges']())))){for(const _0x17e541 of _0x61213d)_0x25f144['addRange'](_0x17e541);return _0x25f144;}}const _0x34e76e=_0x3a663f(),_0x1a5418=_0x2ee025['id'],_0x2b6d9f='formatBlock:'+_0xcd787b,_0x1f851a=this['_setSuggestionData']({'id':_0x34e76e,'type':_0x2b6d9f,'data':_0x390930,'createdAt':new Date(),'authorId':_0x1a5418,'attributes':_0x4eb7e3});for(const _0xab3f6e of _0x61213d)this['_addSuggestionMarker'](_0x2b6d9f,_0x34e76e,_0x1a5418,_0xab3f6e,St['getMultiRangeId']());return _0x1f851a;}markDeletion(_0x539948,_0x3cc40a=null,_0x2e29d0={}){if(_0x539948['isCollapsed'])return null;const _0x2a86de=this['editor']['plugins']['get']('Users')['me'],_0x1936c7=new rt(_0x539948['start'],_0x539948['end']);this['_trackingSessionId']&&(_0x2e29d0['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x29a2f5,meta:_0x2f7239}of this['_findSuggestions'](_0x1936c7,'insertion'))if(_0x2f7239['isOwn']&&!_0x2f7239['isNextTo']){if(_0x29a2f5['isMultiRange']){const _0x4831a8=_0x29a2f5['getRanges']()['filter'](_0x404b8b=>'$graveyard'!=_0x404b8b['root']['rootName']);if(_0x4831a8['every'](_0xa400b1=>_0x1936c7['containsRange'](_0xa400b1,!0x0))&&_0x29a2f5['discard'](),_0x4831a8['some'](_0x444f47=>_0x444f47['containsRange'](_0x1936c7,!0x0))){const _0x18d0c7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3cc40a,'accept');return this['forceDefaultExecution'](()=>_0x18d0c7([_0x1936c7],null,_0x2e29d0)),null;}}else{const _0x550c21=_0x1936c7['getIntersection'](_0x29a2f5['getFirstRange']());null!==_0x550c21&&_0x29a2f5['_onDiscard']([_0x550c21],null,_0x2e29d0);}}if(_0x1936c7['detach'](),_0x1936c7['isCollapsed']||'$graveyard'==_0x1936c7['root']['rootName'])return null;let _0x51b300=null,_0x195182=_0x1936c7['start'],_0x41a9b4=_0x1936c7['end'];const _0x5cdd6e=this['_findSuggestions'](_0x1936c7,'deletion');for(const {suggestion:_0x53081a,meta:_0x3b0b0e}of _0x5cdd6e){const _0x1f7272=this['_model']['createRange'](_0x195182,_0x41a9b4);if(_0x3b0b0e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3b0b0e['containsRangeInObject']&&!_0x3b0b0e['isInsideObject'])){if(_0x53081a['isMultiRange']){if(!pn(_0x53081a,_0x2e29d0))continue;let _0xaab382=!0x0;for(const _0x3012d3 of _0x53081a['getRanges']()){if(_0x3012d3['containsRange'](_0x1f7272,!0x0))return _0x53081a;_0x1f7272['containsRange'](_0x3012d3)||(_0xaab382=!0x1);}_0xaab382&&_0x53081a['discard']();}else{const _0x35582b=_0x53081a['getFirstRange']();if(_0x35582b['containsRange'](_0x1f7272,!0x0))return _0x53081a;if(!pn(_0x53081a,_0x2e29d0)){_0x1f7272['containsRange'](_0x35582b)?_0x53081a['removeMarkers']():_0x35582b['containsPosition'](_0x195182)?_0x195182=_0x35582b['end']:_0x35582b['containsPosition'](_0x41a9b4)&&(_0x41a9b4=_0x35582b['start']);continue;}_0x195182=_0x195182['isBefore'](_0x35582b['start'])?_0x195182:_0x35582b['start'],_0x41a9b4=_0x41a9b4['isAfter'](_0x35582b['end'])?_0x41a9b4:_0x35582b['end'],_0x2e29d0=Object['assign']({},_0x53081a['attributes']),_0x51b300?_0x35582b['start']['isBefore'](_0x51b300['getFirstRange']()['start'])?(_0x51b300['removeMarkers'](),_0x51b300=_0x53081a):_0x53081a['removeMarkers']():_0x51b300=_0x53081a;}}}if(_0x51b300)return this['_setSuggestionRange'](_0x51b300,this['_model']['createRange'](_0x195182,_0x41a9b4)),_0x51b300;{const _0x3b16eb=_0x3a663f(),_0x1bd1b1=this['_model']['createRange'](_0x195182,_0x41a9b4),_0x577e4c=_0x2a86de['id'],_0x44d344=_0x3cc40a?'deletion:'+_0x3cc40a:'deletion',_0xcd1213=this['_setSuggestionData']({'id':_0x3b16eb,'type':_0x44d344,'createdAt':new Date(),'authorId':_0x577e4c,'attributes':_0x2e29d0});return this['_addSuggestionMarker'](_0x44d344,_0x3b16eb,_0x577e4c,_0x1bd1b1),_0xcd1213;}}markMultiRangeDeletion(_0x23fcea,_0x2c3ecd='multi',_0x573b0b={}){const _0x4c47d9=this['editor']['plugins']['get']('Users')['me'],_0x3d6767=_0x23fcea['map'](_0x55d96a=>new rt(_0x55d96a['start'],_0x55d96a['end'])),_0x3eff75=new Set();this['_trackingSessionId']&&(_0x573b0b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a7d19,meta:_0x393012}of this['_findSuggestions'](_0x3d6767,'insertion'))_0x393012['isOwn']&&!_0x393012['isNextTo']&&_0x3eff75['add'](_0x1a7d19);for(const _0x59b9d9 of _0x3eff75)if(_0x59b9d9['isMultiRange']){const _0x5a1ebb=_0x59b9d9['getRanges']();if(_0x59b9d9['attributes']&&_0x59b9d9['attributes']['skipNestingCheck']||_0x5a1ebb['every'](_0x32ccc7=>_0x3d6767['some'](_0x139b15=>_0x139b15['containsRange'](_0x32ccc7,!0x0)))&&_0x59b9d9['discard'](),_0x3d6767['every'](_0x2c0ad5=>_0x5a1ebb['some'](_0x5ed578=>_0x5ed578['containsRange'](_0x2c0ad5,!0x0)))){const _0x5deeb9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c3ecd,'accept');return this['forceDefaultExecution'](()=>_0x5deeb9(_0x23fcea,null,_0x573b0b)),null;}}else{const _0x316273=_0x59b9d9['getFirstRange']();if(_0x3d6767['some'](_0x185eba=>_0x185eba['containsRange'](_0x316273,!0x0))&&_0x59b9d9['discard'](),_0x3d6767['every'](_0x28eebb=>_0x316273['containsRange'](_0x28eebb,!0x0))){const _0x51beaf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c3ecd,'accept');return this['forceDefaultExecution'](()=>_0x51beaf(_0x3d6767,null,_0x573b0b)),null;}}const _0x51fa4b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c3ecd,'join');let _0x92d093=null;for(const _0x476d7f of this['getSuggestions']())if(_0x476d7f['author']['id']==_0x4c47d9['id']&&_0x476d7f['isInContent']&&'deletion'==_0x476d7f['type']&&_0x476d7f['subType']==_0x2c3ecd&&pn(_0x476d7f,_0x573b0b)&&(_0x51fa4b(_0x476d7f['getRanges'](),_0x3d6767)||_0x51fa4b(_0x3d6767,_0x476d7f['getRanges']()))){if(_0x92d093){if(_0x476d7f['commentThread']&&_0x476d7f['commentThread']['length'])continue;for(const _0x336126 of _0x476d7f['getRanges']())_0x92d093['isIntersectingWithRange'](_0x336126)||_0x92d093['addRange'](_0x336126);_0x476d7f['removeMarkers']();}else{_0x92d093=_0x476d7f;for(const _0x4f861f of _0x3d6767)_0x476d7f['isIntersectingWithRange'](_0x4f861f)||_0x476d7f['addRange'](_0x4f861f);}}if(_0x92d093)return _0x92d093;_0x3eff75['clear']();for(const {suggestion:_0x21707d,meta:_0x285058}of this['_findSuggestions'](_0x3d6767,'deletion'))_0x285058['isOwn']&&(this['_mergeNestedSuggestions']||!_0x285058['containsRangeInObject']&&!_0x285058['isInsideObject'])&&pn(_0x21707d,_0x573b0b)&&_0x3eff75['add'](_0x21707d);for(const _0x2fb532 of _0x3eff75){const _0x31cb69=_0x2fb532['getRanges']();if((!_0x573b0b||!_0x573b0b['skipNestingCheck'])&&_0x3d6767['every'](_0x4b26f5=>_0x31cb69['some'](_0x428dc2=>_0x428dc2['containsRange'](_0x4b26f5,!0x0))))return _0x2fb532;_0x2fb532['attributes']&&_0x2fb532['attributes']['skipNestingCheck']||_0x31cb69['every'](_0x31ff43=>_0x3d6767['some'](_0x1b336f=>_0x1b336f['containsRange'](_0x31ff43,!0x0)))&&_0x2fb532['discard']();}const _0x30fbee=_0x3a663f(),_0x16e071=_0x4c47d9['id'],_0x18767d='deletion:'+_0x2c3ecd,_0x2ae51a=this['_setSuggestionData']({'id':_0x30fbee,'type':_0x18767d,'createdAt':new Date(),'authorId':_0x16e071,'attributes':_0x573b0b});for(const _0x58e397 of _0x3d6767)_0x58e397['detach'](),_0x58e397['isCollapsed']||'$graveyard'==_0x58e397['root']['rootName']||this['_addSuggestionMarker'](_0x18767d,_0x30fbee,_0x16e071,_0x58e397,St['getMultiRangeId']());return _0x2ae51a;}markAttributeChange(_0x258bf2,_0x400c27,_0x18cd6e,_0x3ebead,_0x2ae53e){if(_0x258bf2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3d2f83=this['editor']['plugins']['get']('Users')['me']['id'],_0x460e09=Array['from'](this['_suggestions']['values']())['filter'](_0x38549e=>'attribute'==_0x38549e['type']&&_0x38549e['data']['key']==_0x400c27&&_0x38549e['isIntersectingWithRange'](_0x258bf2));if(this['_trackingSessionId']&&(_0x2ae53e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1912e6=this['_findSuggestions'](_0x258bf2,'insertion')['filter'](({meta:_0x444920})=>_0x444920['isOwn']&&!_0x444920['isInsideObject']&&!_0x444920['isNextTo'])['map'](({suggestion:_0x4058cc})=>_0x4058cc);_0x460e09['unshift'](..._0x1912e6);}const _0xd6fe4c=new Map([[_0x258bf2,_0x18cd6e]]);for(const _0x4e4dea of _0x460e09){const _0x1ed7c8='attribute'==_0x4e4dea['type']?_0x4e4dea['data']['oldValue']:void 0x0,_0xe4986=_0x4e4dea['getFirstRange'](),_0xe2ec25=Array['from'](_0xd6fe4c['keys']())['find'](_0x39be6c=>_0x39be6c['isIntersecting'](_0xe4986));if(!_0xe2ec25)continue;const _0x5d7324=_0xe2ec25['getDifference'](_0xe4986);this['_suggestionsConversion']['isBlockAttribute'](_0x400c27)&&'insertion'==_0x4e4dea['type']&&0x0!=_0x5d7324['length']||(_0xd6fe4c['delete'](_0xe2ec25),_0x5d7324['forEach'](_0x454048=>{_0xd6fe4c['set'](_0x454048,_0x18cd6e);}),'insertion'!=_0x4e4dea['type']&&_0x1ed7c8!=_0x3ebead&&_0xd6fe4c['set'](_0xe2ec25['getIntersection'](_0xe4986),_0x1ed7c8));}const _0x5d5f8a=[];for(const [_0x4a8fbd,_0x5b7967]of _0xd6fe4c){const _0x52a393=_0x3a663f(),_0x286064={'key':_0x400c27,'oldValue':_0x5b7967,'newValue':_0x3ebead};_0x400c27['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':_0x400c27});const _0x5389bf=('attribute:'+_0x400c27+'|'+dn({'newValue':_0x3ebead}))['substring'](0x0,0x3c),_0x2087df=this['_setSuggestionData']({'id':_0x52a393,'type':_0x5389bf,'data':_0x286064,'createdAt':new Date(),'authorId':_0x3d2f83,'attributes':_0x2ae53e});_0x5d5f8a['push'](_0x2087df),this['_addSuggestionMarker'](_0x5389bf,_0x52a393,_0x3d2f83,_0x4a8fbd);}return _0x5d5f8a;}enableDefaultAttributesIntegration(_0x172388){this['enableCommand'](_0x172388,(_0x3ce815,..._0x4ee3d4)=>{this['recordAttributeChanges'](()=>{_0x3ce815(..._0x4ee3d4);});});}startTrackingSession(_0x395943){return this['_trackingSessionId']=void 0x0!==_0x395943?_0x395943:_0x3a663f(),this['_trackingSessionId'];}_getAttributeKey(_0x3a073f){return'attribute'==_0x3a073f['type']?In(_0x3a073f['subType']):null;}_applyOperationsAsSuggestions(_0x445567){if(0x0==_0x445567['length'])return;const _0x1e6e33=this['editor'],_0x16416f=[],_0x329159=_0xe83fc2=>{const _0x3bafc2=_0xe83fc2['_aiSource'];return _0x3bafc2?{'@ai':{'type':_0x3bafc2}}:{};},_0x32957f=(_0x2aa88e,_0x1cd2f9,_0x3637e2)=>{for(let _0x4add18=_0x1cd2f9;_0x4add18<_0x2aa88e['operations']['length'];_0x4add18++)_0x2aa88e['operations'][_0x4add18]['_aiSource']=_0x3637e2;};_0x1e6e33['model']['change'](_0x229be7=>{for(let _0x26040d=0x0;_0x26040d<_0x445567['length'];_0x26040d++){const _0x581278=_0x445567[_0x26040d],_0x1a4be3=_0x581278['_aiSource'],_0x39443d=_0x229be7['batch']['operations']['length'];if(_0x581278['baseVersion']=_0x1e6e33['model']['document']['version'],_0x581278['isDocumentOperation']=!0x0,!_0x272ba7(_0x581278)){if(rn(_0x581278)){const _0x176a99=_0x49ec1a(_0x581278['newRange'],_0x1e6e33['model']);_0x16416f['unshift']({'range':rt['fromRange'](_0x176a99),'opAttributes':_0x329159(_0x581278),'aiSource':_0x1a4be3});}else{switch(_0x581278['type']){case'rename':{const _0x10b9b4=_0x581278['oldName'],_0x451572=_0x581278['newName'];if(_0x10b9b4==_0x451572)break;_0x229be7['batch']['addOperation'](_0x581278),_0x1e6e33['model']['applyOperation'](_0x581278);const _0x4ab08a='$elementName',_0x1ec746=_0x581278['position'],_0x13348d=_0x1e6e33['model']['createRange'](_0x1ec746,_0x1e6e33['model']['createPositionAt'](_0x1ec746['nodeAfter'],'end'));this['markAttributeChange'](_0x13348d,_0x4ab08a,_0x10b9b4,_0x451572,{..._0x329159(_0x581278),'groupId':_0x3a663f()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x103aeb=_0x581278['oldValue'],_0x31b366=_0x581278['newValue'];if(_0x103aeb==_0x31b366)break;_0x229be7['batch']['addOperation'](_0x581278),_0x1e6e33['model']['applyOperation'](_0x581278);const _0x367480=_0x581278['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x367480))break;const _0x348183=_0x49ec1a(_0x581278['range'],_0x1e6e33['model']);this['markAttributeChange'](_0x348183,_0x367480,_0x103aeb,_0x31b366,{..._0x329159(_0x581278),'groupId':_0x3a663f()});break;}case'insert':{if(_0x229be7['batch']['addOperation'](_0x581278),_0x1e6e33['model']['applyOperation'](_0x581278),_0x445567[_0x26040d+0x1]&&'move'==_0x445567[_0x26040d+0x1]['type'])break;const _0x14e2c9=_0x581278['position'],_0x1aa031=_0x581278['howMany'],_0x4e258f=_0x49ec1a(_0x1e6e33['model']['createRange'](_0x14e2c9,_0x14e2c9['getShiftedBy'](_0x1aa031)),_0x1e6e33['model']);this['markInsertion'](_0x4e258f,null,{..._0x329159(_0x581278)});break;}case'split':{_0x229be7['batch']['addOperation'](_0x581278),_0x1e6e33['model']['applyOperation'](_0x581278);const _0x37e2d8=_0x581278['splitPosition'],_0x5cf119=_0x581278['moveTargetPosition'],_0x50ceea=_0x1e6e33['model']['createRange'](_0x37e2d8,_0x5cf119);this['markInsertion'](_0x50ceea,null,{..._0x329159(_0x581278)});break;}case'move':case'remove':_0x229be7['batch']['addOperation'](_0x581278),_0x1e6e33['model']['applyOperation'](_0x581278);}_0x1a4be3&&_0x32957f(_0x229be7['batch'],_0x39443d,_0x1a4be3);}}}for(const {range:_0x3ce7b7,opAttributes:_0x536a65,aiSource:_0x52446e}of _0x16416f){const _0x139e32=_0x229be7['batch']['operations']['length'];_0x3ce7b7['detach'](),this['markDeletion'](_0x3ce7b7,null,{..._0x536a65}),_0x52446e&&_0x32957f(_0x229be7['batch'],_0x139e32,_0x52446e);}});}_setSuggestionRange(_0x167eb1,_0x11c6fb){const _0x45511b=_0x167eb1['getFirstMarker']();this['_model']['change'](_0x11f2db=>{_0x11f2db['updateMarker'](_0x45511b,{'range':_0x11c6fb});});}_addThreadToSuggestion(_0x353581){const _0x35b7aa=_0x353581['id'],_0x54b3c6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x35b7aa)||this['_commentsRepository']['addCommentThread']({'channelId':_0x54b3c6,'threadId':_0x35b7aa,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x831a0a=this['_commentsRepository']['getCommentThread'](_0x35b7aa);_0x831a0a['unbind']('isRemovable'),_0x831a0a['isRemovable']=!0x1,_0x353581['commentThread']=_0x831a0a;}_checkSuggestionCorrectness(_0x20eb7d,_0x51216b,_0x5d352e,_0x40b8d5){if(_0x20eb7d['type']!=_0x51216b||_0x20eb7d['subType']!=_0x5d352e||_0x20eb7d['creator']['id']!=_0x40b8d5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x18ab5c('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x1005ab,_0x3c373e){const _0xc41e18=_0x1005ab['getFirstRange']();if(_0x3c373e['isEqual'](_0xc41e18))_0x1005ab['removeMarkers']();else{if(_0xc41e18['containsRange'](_0x3c373e)){const _0x165cb0=this['_model']['createPositionAt'](_0x3c373e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1005ab,this['_model']['createRange'](_0xc41e18['start'],_0x165cb0));const _0x276270=_0x3a663f(),_0x5dfbfb=_0x1005ab['creator']['id'],_0x42f93a=_0x1005ab['type']+':'+_0x1005ab['subType'];this['_setSuggestionData']({'id':_0x276270,'type':_0x42f93a,'createdAt':new Date(),'authorId':_0x5dfbfb,'data':_0x1005ab['data'],'attributes':_0x1005ab['attributes']});const _0x189ee2=this['_model']['createPositionAt'](_0x3c373e['end']['parent'],'after'),_0x9967cd=this['_model']['createRange'](_0x189ee2,_0xc41e18['end']);this['_addSuggestionMarker'](_0x42f93a,_0x276270,_0x5dfbfb,_0x9967cd);}else{if(_0xc41e18['containsPosition'](_0x3c373e['start'])){const _0x58f8f3=this['_model']['createPositionAt'](_0x3c373e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1005ab,this['_model']['createRange'](_0xc41e18['start'],_0x58f8f3));}else{const _0x3e1357=this['_model']['createPositionAt'](_0x3c373e['end']['parent'],'after');this['_setSuggestionRange'](_0x1005ab,this['_model']['createRange'](_0x3e1357,_0xc41e18['end']));}}}}_rangeIsInLocalUserInsertion(_0x144423){for(const {suggestion:_0x586736,meta:_0x55a7b7}of this['_findSuggestions'](_0x144423,'insertion')){if(!_0x55a7b7['isOwn'])continue;const _0x2bedd0=_0x586736['getRanges']();for(const _0x133d1c of _0x2bedd0)if(!_0x144423['getDifference'](_0x133d1c)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x540fab){return this['editor']['plugins']['get']('Users')['getUser'](_0x540fab);}_getExternalAuthor(_0x1c9ac6){const _0x2fcbba=this['editor']['plugins']['get']('Users'),_0x38ede7=_0x1eefb7('external:'+_0x1c9ac6),_0x2aba66=_0x2fcbba['getUser'](_0x38ede7);return _0x2aba66||_0x2fcbba['addUser']({'id':_0x38ede7,'name':_0x1c9ac6});}_createSuggestion(_0x5403b2,_0x2799d1,_0x412923,_0x4c7ce3,_0x244dc8,_0x2b2653){const _0x20203d=this['_getAuthorFromId'](_0x4c7ce3);if(!_0x20203d)throw new _0x18ab5c('track-changes-user-not-found',this,{'authorId':_0x4c7ce3,'suggestionId':_0x412923});const _0x70c43c=this['_suggestionFactory']['buildSuggestion'](_0x5403b2,_0x2799d1,_0x412923,_0x20203d,_0x244dc8,_0x1b9b19=>{this['_updateSuggestionData'](_0x412923,{'attributes':_0x1b9b19});const _0x388939=this['getSuggestion'](_0x412923);this['_joinWithAdjacentSuggestions'](new Set([_0x388939])),this['_refreshSuggestionsChain'](new Set([_0x388939]));},_0x2b2653);return this['listenTo'](_0x70c43c,'accept',()=>{this['_updateSuggestionData'](_0x412923,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x70c43c,'discard',()=>{this['_updateSuggestionData'](_0x412923,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x412923,_0x70c43c),this['_suggestionState']['set'](_0x70c43c,'notReady'),_0x70c43c;}_breakSuggestionMarker(_0x446c76,_0x15356e,_0x53b87b){const _0x914113=_0x446c76['getFirstRange'](),_0x24f4f2=_0x914113['start'],_0x2b92e0=_0x914113['end'];this['_setSuggestionRange'](_0x446c76,this['_model']['createRange'](_0x24f4f2,_0x15356e));const _0x28b84e=_0x3a663f(),_0x453441=_0x446c76['creator']['id'],_0x740686=_0x446c76['type']+(_0x446c76['subType']?':'+_0x446c76['subType']:'');this['_setSuggestionData']({'id':_0x28b84e,'type':_0x740686,'createdAt':new Date(),'authorId':_0x453441,'originalSuggestionId':_0x446c76['_originalSuggestionId']||_0x446c76['id'],'attributes':_0x446c76['attributes'],'data':_0x446c76['data']});const _0x206245=this['_getAttributeKey'](_0x446c76);('formatBlock'==_0x446c76['type']||_0x206245&&this['_suggestionsConversion']['isBlockAttribute'](_0x206245))&&(_0x53b87b=this['_model']['createPositionBefore'](_0x53b87b['parent'])),this['_addSuggestionMarker'](_0x740686,_0x28b84e,_0x453441,this['_model']['createRange'](_0x53b87b,_0x2b92e0));}_findSuggestions(_0x289d77,_0x2edea=null){const _0x52aace=[],_0x5d0676=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x289d77)||(_0x289d77=[_0x289d77]);for(const _0x34619f of this['getSuggestions']()){if(!_0x34619f['isInContent'])continue;if(_0x2edea&&_0x34619f['type']!=_0x2edea)continue;let _0x5a1a14=!0x1;for(const _0x539ee5 of _0x34619f['getRanges']()){for(const _0x2d6ad0 of _0x289d77){const _0x3dd3f0=_0x2d6ad0['start']['isEqual'](_0x539ee5['end'])||_0x2d6ad0['end']['isEqual'](_0x539ee5['start']);if(_0x3dd3f0||_0x2d6ad0['getIntersection'](_0x539ee5)){const _0x26951c=_0x2d6ad0['containsRange'](_0x539ee5)&&cn(this['_model']['schema'],_0x539ee5['start'],_0x2d6ad0),_0x330a5c=_0x539ee5['containsRange'](_0x2d6ad0)&&cn(this['_model']['schema'],_0x2d6ad0['start'],_0x539ee5);_0x52aace['push']({'suggestion':_0x34619f,'meta':{'isOwn':_0x5d0676==_0x34619f['author'],'isNextTo':_0x3dd3f0,'isInsideObject':_0x26951c,'containsRangeInObject':_0x330a5c}}),_0x5a1a14=!0x0;break;}}if(_0x5a1a14)break;}}return _0x52aace;}_addSuggestionMarker(_0x50d134,_0x11b7b6,_0x496222,_0xd438ef,_0x5426b5){this['_model']['change'](_0xd919e6=>{let _0x572a95='suggestion:'+_0x50d134+':'+_0x11b7b6+':'+_0x496222;_0x5426b5&&(_0x572a95=_0x572a95+':'+_0x5426b5),_0xd919e6['addMarker'](_0x572a95,{'range':_0xd438ef,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x28d278){const _0x57d17c=_0x28d278['previous'],_0x3338e7=_0x28d278['next'];_0x28d278['previous']=null,_0x28d278['next']=null,null!=_0x57d17c&&_0x57d17c['next']==_0x28d278&&(_0x57d17c['next']=_0x3338e7),null!=_0x3338e7&&_0x3338e7['previous']==_0x28d278&&(_0x3338e7['previous']=_0x57d17c),'ready'==this['_suggestionState']['get'](_0x28d278)&&(this['_suggestionState']['set'](_0x28d278,'removed'),this['fire']('suggestionUnloaded',_0x28d278,_0x57d17c,_0x3338e7));}_setSuggestionData(_0x239113){const _0xe9d497=_0x239113['id'],_0x2fa704=this['addSuggestionData'](_0x239113);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1aebdc=this['editor']['plugins']['get']('PendingActions'),_0x87c2f0=_0x2fa704['hasComments'],_0x1e8cc6=_0x2fa704['subType']?_0x2fa704['type']+':'+_0x2fa704['subType']:_0x2fa704['type'],_0x3916f9=this['editor']['locale'],_0x1c9c84=_0x1aebdc['add'](Mt(_0x3916f9,'PENDING_ACTION_SUGGESTION')),_0x3c962e={'id':_0xe9d497,'type':_0x1e8cc6,'hasComments':_0x87c2f0,'data':_0x239113['data']||null,'originalSuggestionId':_0x239113['originalSuggestionId']||null,'attributes':_0x2fa704['attributes']};this['_adapter']['addSuggestion'](_0x3c962e)['then'](_0xfda961=>{_0x2fa704['_saved']=!0x0,_0x1aebdc['remove'](_0x1c9c84),_0xfda961&&_0xfda961['createdAt']&&(this['_suggestions']['get'](_0xe9d497)['createdAt']=_0xfda961['createdAt']);})['catch'](_0x327d61=>{throw _0x12c767('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2fa704['discard']();}),_0x2fa704['stopListening'](),this['_suggestions']['delete'](_0x2fa704['id']),this['_suggestionState']['delete'](_0x2fa704),_0x327d61;});}return _0x2fa704;}_updateSuggestionData(_0x49be50,_0x5b4186){const _0x194529=this['editor']['plugins']['get']('PendingActions'),_0x340eb3=this['getSuggestion'](_0x49be50);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x340eb3['_saved']){const _0x317992=_0x194529['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x49be50,_0x5b4186)['then'](()=>{_0x194529['remove'](_0x317992);});}else _0x340eb3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x49be50,_0x5b4186);});}}_getSuggestionData(_0x2dcac9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x18ab5c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2dcac9);}_handleNewSuggestionMarker(_0x46c91c){const {id:_0xc9f104,type:_0x2262c4,subType:_0x1c32a3,authorId:_0x25b80b}=tt(_0x46c91c),_0x42d12f=this['_suggestions']['get'](_0xc9f104)||this['_createSuggestion'](_0x2262c4,_0x1c32a3,_0xc9f104,_0x25b80b,{});switch(this['_checkSuggestionCorrectness'](_0x42d12f,_0x2262c4,_0x1c32a3,_0x25b80b),this['_suggestionState']['get'](_0x42d12f)){case'notReady':this['_getSuggestionData'](_0xc9f104)['then'](_0x19cfa4=>{let _0x14d705=Promise['resolve']();_0x19cfa4['hasComments']&&(_0x14d705=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc9f104})),_0x14d705['then'](()=>{this['addSuggestionData'](_0x19cfa4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x42d12f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc9f104,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x42d12f,'ready'),this['fire']('suggestionLoaded',_0x42d12f);break;case'ready':this['fire']('suggestionChanged',_0x42d12f);}return _0x42d12f['addMarkerName'](_0x46c91c),_0x42d12f;}_refreshSuggestionsChain(_0x28babb){const _0xbe1c=Array['from'](_0x28babb),_0x3196c9=_0xbe1c['filter'](_0x2f37ad=>'attribute'==_0x2f37ad['type']);this['_refreshAttributeSuggestionsChain'](_0x3196c9);const _0x2312b6=_0xbe1c['filter'](_0x41941f=>!_0x41941f['isMultiRange']&&'attribute'!=_0x41941f['type']),_0x1833c9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40acbf=>!_0x40acbf['isMultiRange']&&'attribute'!=_0x40acbf['type']),_0x1f8df0=_0x1833c9['filter'](_0x30bd22=>!_0x28babb['has'](_0x30bd22)),_0x4ba2c9=new Map(_0x1833c9['map'](_0x455236=>[_0x455236,this['_suggestionFactory']['getSuggestionCallback'](_0x455236['type'],_0x455236['subType'],'chain')])),_0x1c2c87=new Map(_0x1833c9['map'](_0x5682c9=>[_0x5682c9,_0x5682c9['getFirstRange']()])),_0x4cf3a0=new Set(),_0x3a7dda=new Set();for(let _0x136731=0x0;_0x136731<_0x2312b6['length'];_0x136731++)_0x135ac2(_0x2312b6[_0x136731],_0x2312b6,_0x136731+0x1);for(let _0x1507ad=0x0;_0x1507ad<_0x2312b6['length'];_0x1507ad++)_0x135ac2(_0x2312b6[_0x1507ad],_0x1f8df0,0x0);const _0x20cc44=new Set();for(let _0x1a9067=0x0;_0x1a9067<_0x2312b6['length'];_0x1a9067++){const _0x335c04=_0x2312b6[_0x1a9067];!_0x3a7dda['has'](_0x335c04)&&_0x335c04['previous']&&(_0x20cc44['add'](_0x335c04['previous']),_0x335c04['previous']['next']===_0x335c04&&(_0x335c04['previous']['next']=null),_0x335c04['previous']=null),!_0x4cf3a0['has'](_0x335c04)&&_0x335c04['next']&&(_0x20cc44['add'](_0x335c04['next']),_0x335c04['next']['previous']===_0x335c04&&(_0x335c04['next']['previous']=null),_0x335c04['next']=null);}function _0x135ac2(_0x60ff22,_0xfa78e1,_0x24abe5){for(let _0x1e82b9=_0x24abe5;_0x1e82b9<_0xfa78e1['length'];_0x1e82b9++){const _0x7877c1=_0xae71b6(_0x60ff22,_0xfa78e1[_0x1e82b9]);_0x7877c1&&(_0x7877c1[0x0]['next']=_0x7877c1[0x1],_0x7877c1[0x1]['previous']=_0x7877c1[0x0],_0x4cf3a0['add'](_0x7877c1[0x0]),_0x3a7dda['add'](_0x7877c1[0x1]));}}function _0xae71b6(_0x4f57c9,_0x51af4f){if(_0x4f57c9['author']['id']!==_0x51af4f['author']['id'])return null;const _0xeb1775=_0x4ba2c9['get'](_0x4f57c9)(_0x4f57c9,_0x51af4f,_0x1c2c87['get'](_0x4f57c9),_0x1c2c87['get'](_0x51af4f));return _0xeb1775&&_0x4ba2c9['get'](_0x51af4f)(_0x4f57c9,_0x51af4f,_0x1c2c87['get'](_0x4f57c9),_0x1c2c87['get'](_0x51af4f))?_0xeb1775[0x1]['commentThread']&&_0xeb1775[0x1]['commentThread']['length']?null:_0xeb1775:null;}_0x20cc44['size']&&this['_refreshSuggestionsChain'](_0x20cc44);}_refreshAttributeSuggestionsChain(_0x437d85){if(0x0==_0x437d85['length'])return;const _0x505955=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x845196=>'attribute'==_0x845196['type']&&_0x845196['_isDataLoaded']),_0x159cf3=[],_0x1ed3a8=new Map();for(const _0x18f8a6 of _0x505955){const _0x52bc44=_0x1eefb7(_0x18f8a6['attributes']);_0x1ed3a8['has'](_0x52bc44)||(_0x1ed3a8['set'](_0x52bc44,_0x159cf3['length']),_0x159cf3['push']([])),_0x159cf3[_0x1ed3a8['get'](_0x52bc44)]['push'](_0x18f8a6);}!(function(){_0x159cf3['sort']((_0x4ce831,_0x58367f)=>{const _0x58b0d6=_0x4ce831[0x0]['createdAt'],_0x55ff09=_0x58367f[0x0]['createdAt'];return _0x58b0d6==_0x55ff09?_0x4ce831[0x0]['attributes']['groupId']<_0x58367f[0x0]['attributes']['groupId']?-0x1:0x1:_0x58b0d6<_0x55ff09?-0x1:0x1;});for(const _0x2828a2 of _0x159cf3)_0x2828a2['sort']((_0xdefcdb,_0x3e5bbb)=>_0xdefcdb['id']<_0x3e5bbb['id']?-0x1:0x1);}());for(let _0x466e5f=0x0;_0x466e5f<_0x159cf3['length'];_0x466e5f++){if(0x0==_0x159cf3[_0x466e5f]['length'])continue;const _0x497af3=[];for(let _0x16c400=_0x466e5f+0x1;_0x16c400<_0x159cf3['length'];_0x16c400++)0x0!=_0x159cf3[_0x16c400]['length']&&_0x1f340f(_0x159cf3[_0x466e5f],_0x159cf3[_0x16c400])&&_0x497af3['push'](_0x16c400);for(const _0x366434 of _0x497af3)_0x159cf3[_0x466e5f]=_0x159cf3[_0x466e5f]['concat'](_0x159cf3[_0x366434]),_0x159cf3[_0x366434]=[];}for(const _0x1804d4 of _0x159cf3)for(let _0x384554=0x0;_0x384554<_0x1804d4['length'];_0x384554++){const _0x13d652=_0x1804d4[_0x384554+0x1]||null;_0x1804d4[_0x384554]['next']!==_0x13d652&&(_0x1804d4[_0x384554]['next']=_0x13d652);}for(const _0x1d62b2 of _0x159cf3)for(let _0x3af3aa=0x0;_0x3af3aa<_0x1d62b2['length'];_0x3af3aa++){const _0x429c28=_0x1d62b2[_0x3af3aa-0x1]||null;_0x1d62b2[_0x3af3aa]['previous']!==_0x429c28&&(_0x1d62b2[_0x3af3aa]['previous']=_0x429c28);}function _0x1f340f(_0x5cc24c,_0x2165cd){if(_0x5cc24c[0x0]['attributes']['groupId']!==_0x2165cd[0x0]['attributes']['groupId']&&_0x5cc24c[0x0]['author']!==_0x2165cd[0x0]['author'])return!0x1;if(!function(_0x5f3f42,_0x2fee7a){return!_0x5f3f42['hasComments']&&!_0x2fee7a['hasComments']||(!_0x5f3f42['hasComments']||!_0x2fee7a['hasComments'])&&(!!(_0x5f3f42['hasComments']&&_0x2fee7a['createdAt']<_0x5f3f42['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x2fee7a['hasComments']&&_0x5f3f42['createdAt']<_0x2fee7a['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x5cc24c[0x0],_0x2165cd[0x0]))return!0x1;const _0x49ab4a=lt(_0x5cc24c[0x0]['attributes'],['groupId','trackingSessionId']),_0x29805f=lt(_0x2165cd[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x49ab4a,_0x29805f)&&(_0x5cc24c[0x0]['attributes']['groupId']==_0x2165cd[0x0]['attributes']['groupId']||_0x5cc24c[0x0]['attributes']['trackingSessionId']===_0x2165cd[0x0]['attributes']['trackingSessionId']&&(!!_0x5cc24c['every'](_0x9fc2f=>_0x2165cd['some'](_0x5574c1=>_0x9fc2f['getFirstRange']()['isEqual'](_0x5574c1['getFirstRange']())))&&_0x2165cd['every'](_0x2f66bc=>_0x5cc24c['some'](_0x3ba657=>_0x2f66bc['getFirstRange']()['isEqual'](_0x3ba657['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0xd640e7){const _0xa647a6=Array['from'](_0xd640e7),_0xab5240=this['getSuggestions']({'skipNotAttached':!0x0}),_0x307225=_0xab5240['filter'](_0x489fc7=>!_0xd640e7['has'](_0x489fc7)),_0x571c8a=new Map(_0xa647a6['map'](_0x5896db=>[_0x5896db,this['_suggestionFactory']['getSuggestionCallback'](_0x5896db['type'],_0x5896db['subType'],'join')])),_0x113c58=new Map(_0xab5240['map'](_0x2c1032=>[_0x2c1032,_0x2c1032['getRanges']()]));for(let _0x5a7ea6=0x0;_0x5a7ea6<_0xa647a6['length'];_0x5a7ea6++)if(_0x595862(this,_0xa647a6[_0x5a7ea6],_0xa647a6,_0x5a7ea6+0x1))return!0x0;for(let _0x4dc7f3=0x0;_0x4dc7f3<_0xa647a6['length'];_0x4dc7f3++)if(_0x595862(this,_0xa647a6[_0x4dc7f3],_0x307225,0x0))return!0x0;return!0x1;function _0x595862(_0x390adb,_0x59d507,_0x5bad9a,_0x4b7859){for(let _0xe3d5e4=_0x4b7859;_0xe3d5e4<_0x5bad9a['length'];_0xe3d5e4++){const _0xa3ffb2=_0x5bad9a[_0xe3d5e4];if(_0xa3ffb2['type']!==_0x59d507['type']||_0xa3ffb2['author']['id']!==_0x59d507['author']['id']||_0xa3ffb2['subType']!==_0x59d507['subType'])continue;if(!_n(_0x59d507,_0xa3ffb2))continue;if('attribute'==_0x59d507['type']&&_0x59d507['data']['oldValue']!=_0xa3ffb2['data']['oldValue'])continue;if('attribute'==_0x59d507['type']&&_0x390adb['_suggestionsConversion']['isBlockAttribute'](_0x59d507['data']['key']))continue;if('formatBlock'==_0x59d507['type']){const _0x491bca=_0x390adb['editor']['model'],_0x2ade4b=_0x59d507['getContainedElement']();if(_0x2ade4b&&(_0x491bca['schema']['isObject'](_0x2ade4b)||_0x491bca['schema']['isLimit'](_0x2ade4b)))continue;}const _0x25be1c=_0x571c8a['get'](_0x59d507),_0x30e972=_0x113c58['get'](_0x59d507),_0x44a250=_0x113c58['get'](_0xa3ffb2),_0x157913=_0x59d507['commentThread']&&_0x59d507['commentThread']['length'],_0x201b02=_0xa3ffb2['commentThread']&&_0xa3ffb2['commentThread']['length'];if(!_0x157913&&_0x25be1c(_0x44a250,_0x30e972))return _0x390adb['_joinSuggestions'](_0xa3ffb2,_0x59d507),_0x113c58['delete'](_0x59d507),!0x0;if(!_0x201b02&&_0x25be1c(_0x30e972,_0x44a250))return _0x390adb['_joinSuggestions'](_0x59d507,_0xa3ffb2),_0x113c58['delete'](_0xa3ffb2),!0x0;}return!0x1;}}_joinSuggestions(_0x534431,_0x45a08d){if(_0x534431['isMultiRange']){for(const _0xbf5f88 of _0x45a08d['getRanges']())_0x534431['addRange'](_0xbf5f88);}else{const _0x1cccf7=_0x45a08d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x534431,this['_model']['createRange'](_0x534431['getFirstRange']()['start'],_0x1cccf7));}_0x45a08d['removeMarkers']();}_getMarkerAnnouncementText(_0x1c1736,_0x39df6d,_0x2be80f){const _0x370319=_0x1c1736['startsWith']('format')||_0x1c1736['startsWith']('attribute')?'FORMATTING':_0x1c1736['toUpperCase']();return Mt(this['editor']['locale'],_0x39df6d+'_'+_0x370319+'_SUGGESTION_ANNOUNCEMENT',_0x2be80f);}_initAriaMarkerChangeAnnouncements(){const _0x445ed1=this['editor'];if(!_0x445ed1['ui'])return;const {ariaLiveAnnouncer:_0x4d3a69}=_0x445ed1['ui'];et(this['_model'],({left:_0x58f2e5,entered:_0x5d6196})=>{for(const _0x5bf735 of _0x58f2e5){const {group:_0x17e175,type:_0x286eb3}=tt(_0x5bf735['name']);if('suggestion'===_0x17e175){_0x4d3a69['announce'](this['_getMarkerAnnouncementText'](_0x286eb3,'LEAVE'));break;}}for(const _0x37d85b of _0x5d6196){const {group:_0x32b4ab,type:_0x3a6e14}=tt(_0x37d85b['name']);if('suggestion'===_0x32b4ab){_0x4d3a69['announce'](this['_getMarkerAnnouncementText'](_0x3a6e14,'ENTER',_0xff45bc(_0x3b00e4)));break;}}});}_processAttributeChanges(_0x172c01){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2244d6=this['editor'],_0x37cb17=_0x2244d6['model']['document']['differ']['getChanges']();if(0x0==_0x37cb17['length'])return!0x1;const _0x47ca10=[],_0x509305=_0x37cb17['filter'](_0x405a1f=>'attribute'==_0x405a1f['type']),_0xc9accd=_0x37cb17['filter'](_0x5e3f81=>'insert'==_0x5e3f81['type']&&'$text'!=_0x5e3f81['name']),_0x4087d9=_0x37cb17['filter'](_0x678000=>'remove'==_0x678000['type']&&'$text'!=_0x678000['name']);for(const _0x21768e of _0x509305)_0x47ca10['push']({'key':_0x21768e['attributeKey'],'newValue':_0x21768e['attributeNewValue'],'oldValue':_0x21768e['attributeOldValue'],'range':mn(_0x21768e['range'],_0x2244d6['model'])});for(const _0x1553af of _0xc9accd){const _0x32d121=_0x4087d9['find'](_0x58bcac=>_0x58bcac['position']['isEqual'](_0x1553af['position']));_0x32d121&&_0x47ca10['push']({'key':sn,'newValue':_0x1553af['name'],'oldValue':_0x32d121['name'],'range':_0x2244d6['model']['createRangeOn'](_0x1553af['position']['nodeAfter'])});}return 0x0!=_0x47ca10['length']&&this['_reduceExistingSuggestions'](_0x172c01,_0x47ca10);}_processAttributeSuggestions(_0x5b3b53){let _0x752d8c=!0x1;const _0x47da60=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x25cb72=>_0x25cb72['data']['newRange']&&_0x25cb72['name']['startsWith']('suggestion:attribute:'));for(const _0x50a8c1 of _0x47da60){const {subType:_0xe478f3,id:_0x2021bb}=tt(_0x50a8c1['name']),_0x504d65=_0xe478f3['split']('|')[0x0];for(const _0x166370 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x166370['id']!=_0x2021bb&&'attribute'==_0x166370['type']&&_0x166370['data']&&_0x166370['data']['key']==_0x504d65&&_0x166370['getFirstRange']()['isIntersecting'](_0x50a8c1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x166370,_0x50a8c1['data']['newRange'],_0x5b3b53),_0x752d8c=!0x0);}return _0x752d8c;}recordAttributeChanges(_0x3f1ad7){this['_recordAttributeSuggestions']=!0x0,_0x3f1ad7();}_reduceExistingSuggestions(_0x561443,_0x166ec6){if(0x0==_0x166ec6['length'])return!0x1;let _0x24325d=!0x1;for(const _0x58afc9 of _0x166ec6){const _0x1cbd0d=this['_findSuggestions'](_0x58afc9['range'],'attribute')['filter'](_0x1ad7ae=>!_0x1ad7ae['meta']['isNextTo'])['map'](_0x585b53=>_0x585b53['suggestion']),_0x4038fe=_0x1eefb7({'newValue':_0x58afc9['newValue']});_0x1cbd0d['filter'](_0x147571=>{const [_0x48ca70,_0x1fbe89]=_0x147571['subType']['split']('|');return _0x48ca70==_0x58afc9['key']&&_0x1fbe89!=_0x4038fe;})['forEach'](_0x5e9200=>{this['_reduceSuggestionAttributeRange'](_0x5e9200,_0x58afc9['range'],_0x561443),_0x24325d=!0x0;});}return _0x24325d;}_reduceSuggestionAttributeRange(_0x2c465b,_0x43c30c,_0x904748){const _0x56e339=_0x2c465b['getFirstRange']()['getDifference'](_0x43c30c);0x0!==_0x56e339['length']?0x1!==_0x56e339['length']?this['_breakSuggestionMarker'](_0x2c465b,_0x43c30c['start'],_0x43c30c['end']):this['_setSuggestionRange'](_0x2c465b,_0x56e339[0x0]):_0x904748['removeMarker'](_0x2c465b['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4e7517){this['_editor']=_0x4e7517,this['_model']=_0x4e7517['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x26b853,_0x220e1d,_0x32f348,_0x317ff3,_0x3b1458,_0x3096e9,_0x2b7ef2){return new St(this['_model'],{'type':_0x26b853,'subType':_0x220e1d,'id':_0x32f348,'originalSuggestionId':_0x2b7ef2,'author':_0x317ff3,'creator':_0x317ff3,'attributes':_0x3b1458,'onAttributesChange':_0x3096e9,'onAccept':(..._0x23562b)=>this['getSuggestionCallback'](_0x26b853,_0x220e1d,'accept')(..._0x23562b),'onDiscard':(..._0x4282f3)=>this['getSuggestionCallback'](_0x26b853,_0x220e1d,'discard')(..._0x4282f3)});}registerCustomCallback(_0x17d75b,_0x5e390a,_0x13d464,_0x4e4d14){const _0x5af018=_0x17d75b+':'+_0x5e390a+':'+_0x13d464;this['_customCallbacks']['set'](_0x5af018,_0x4e4d14);}getSuggestionCallback(_0x1619d5,_0x56ca7f,_0x77a7dc){const _0xbb7c5c=_0x1619d5+':'+_0x56ca7f+':'+_0x77a7dc;return this['_customCallbacks']['get'](_0xbb7c5c)||this['_defaultCallbacks']['get'](_0x1619d5+':'+_0x77a7dc);}_registerDefaultCallbacks(){const _0x216ec7=()=>!0x1,_0x2b8d68=_0x17b575=>{_0x17b575['sort']((_0x2b09df,_0x16af8d)=>_0x2b09df['start']['isBefore'](_0x16af8d['start'])?0x1:-0x1),this['_model']['change'](_0x531f3f=>{for(const _0x159e42 of _0x17b575){let _0x5c224c;_0x5c224c=_0x159e42['end']['isAtEnd']&&_0x159e42['end']['parent']==_0x159e42['start']['nodeAfter']?_0x531f3f['createSelection'](_0x159e42['start']['nodeAfter'],'on'):_0x531f3f['createSelection'](_0x159e42),this['_model']['deleteContent'](_0x5c224c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5957aa=(_0x5463f6,_0x467f69)=>{_0x467f69&&this['_model']['change'](_0x2773c9=>{const {commandName:_0x36532f,commandParams:_0x564ad5=[]}=_0x467f69,_0x5a3b0c=_0x5463f6['map'](_0x3209db=>(ln(_0x3209db)&&(_0x3209db=this['_model']['createRange'](_0x3209db['end'])),_0x3209db))['filter'](_0x591c03=>'$graveyard'!==_0x591c03['root']['rootName']);if(_0x5a3b0c['length']<0x1)return;const _0x886e93=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x584f13=>rt['fromRange'](_0x584f13));_0x2773c9['setSelection'](_0x5a3b0c);for(const _0x932007 of this['_editor']['commands']['commands']())_0x932007['refresh']();_0x564ad5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x36532f,..._0x564ad5);const _0x1ea387=_0x886e93['filter'](_0x325f38=>'$graveyard'!=_0x325f38['root']['rootName']);_0x1ea387['length']>0x0&&_0x2773c9['setSelection'](_0x1ea387);for(const _0x5e0f70 of _0x886e93)_0x5e0f70['detach']();});},_0x28592a=(_0x40790e,_0x3c59df)=>0x1==_0x40790e['length']&&0x1==_0x3c59df['length']&&_0x40790e[0x0]['end']['isEqual'](_0x3c59df[0x0]['start']),_0xf8a06b=(_0x1d8e35,_0x17c9fd,_0x528116,_0x165bad)=>Tn(_0x1d8e35,_0x17c9fd,_0x528116,_0x165bad)?[_0x1d8e35,_0x17c9fd]:Tn(_0x17c9fd,_0x1d8e35,_0x165bad,_0x528116)?[_0x17c9fd,_0x1d8e35]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x216ec7),this['_defaultCallbacks']['set']('insertion:discard',_0x2b8d68),this['_defaultCallbacks']['set']('insertion:join',_0x28592a),this['_defaultCallbacks']['set']('insertion:chain',_0xf8a06b),this['_defaultCallbacks']['set']('deletion:accept',(_0x3472cd,_0x338168,_0x4ce5b9)=>{const _0x34a38b=(_0x4ce5b9?.['@ai'])?.['type'];_0x34a38b?this['_model']['change'](_0x45dafb=>{const _0x452338=_0x45dafb['batch']['operations']['length'];_0x2b8d68(_0x3472cd);for(let _0x1a50d7=_0x452338;_0x1a50d7<_0x45dafb['batch']['operations']['length'];_0x1a50d7++)_0x45dafb['batch']['operations'][_0x1a50d7]['_aiSource']=_0x34a38b;}):_0x2b8d68(_0x3472cd);}),this['_defaultCallbacks']['set']('deletion:discard',_0x216ec7),this['_defaultCallbacks']['set']('deletion:join',_0x28592a),this['_defaultCallbacks']['set']('deletion:chain',_0xf8a06b),this['_defaultCallbacks']['set']('formatInline:accept',_0x5957aa),this['_defaultCallbacks']['set']('formatInline:discard',_0x216ec7),this['_defaultCallbacks']['set']('formatInline:join',_0x28592a),this['_defaultCallbacks']['set']('formatInline:chain',_0x216ec7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5957aa),this['_defaultCallbacks']['set']('formatBlock:discard',_0x216ec7),this['_defaultCallbacks']['set']('formatBlock:join',_0x28592a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x216ec7),this['_defaultCallbacks']['set']('attribute:accept',_0x216ec7),this['_defaultCallbacks']['set']('attribute:discard',(_0x1cbb37,_0xea31ba)=>{if(!_0xea31ba)return;const _0x2fba08=this['_editor']['plugins']['get'](_0x3338e0);this['_model']['change'](_0x84b04=>{if('$elementName'==_0xea31ba['key'])for(const _0x3fb0e4 of _0x1cbb37){const _0x58b2c9=_0x3fb0e4['start']['nodeAfter'],_0x4c9fbc=_0xea31ba['oldValue'];_0x84b04['rename'](_0x58b2c9,_0x4c9fbc);}else{if(_0x2fba08['isBlockAttribute'](_0xea31ba['key'])){for(const _0x11b7fe of _0x1cbb37)void 0x0!==_0xea31ba['oldValue']?_0x84b04['setAttribute'](_0xea31ba['key'],_0xea31ba['oldValue'],_0x11b7fe['start']['nodeAfter']):_0x84b04['removeAttribute'](_0xea31ba['key'],_0x11b7fe['start']['nodeAfter']);}else{for(const _0x3686de of _0x1cbb37)_0xea31ba['oldValue']?_0x84b04['setAttribute'](_0xea31ba['key'],_0xea31ba['oldValue'],_0x3686de):_0x84b04['removeAttribute'](_0xea31ba['key'],_0x3686de);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x28592a);}};function cn(_0x1302d2,_0x452664,_0x5307ff){for(const _0x278ec9 of _0x452664['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x278ec9['root']==_0x278ec9)return!0x1;if(!_0x5307ff['containsItem'](_0x278ec9))return!0x1;if(_0x1302d2['isObject'](_0x278ec9)||_0x1302d2['isLimit'](_0x278ec9))return!0x0;}return!0x1;}function ln(_0x8f3917){return _0x8f3917['end']['parent']==_0x8f3917['start']['nodeAfter']&&_0x8f3917['end']['isAtStart'];}function un(_0x18de04,_0x1e771e,_0x487d9c,_0x597687){const _0xa0e884=_0x3bff2a=>!_0x3bff2a['item']['is']('$textProxy')&&!_0x597687['isObject'](_0x3bff2a['item']),_0x143e30=_0x18de04['start']['getLastMatchingPosition'](_0xa0e884),_0x599968=_0x18de04['end']['getLastMatchingPosition'](_0xa0e884,{'direction':'backward'});return(!_0x18de04['start']['isEqual'](_0x143e30)||!_0x18de04['end']['isEqual'](_0x599968))&&(_0x143e30['isBefore'](_0x599968)?_0x487d9c['updateMarker'](_0x1e771e,{'range':_0x487d9c['createRange'](_0x143e30,_0x599968)}):_0x487d9c['removeMarker'](_0x1e771e),!0x0);}function dn(_0x4b532c){return _0x1eefb7(_0x4b532c);}function hn(_0xbb287e){const _0x2d6d5b=_0xbb287e['start']['nodeAfter'];return _0x2d6d5b&&_0x2d6d5b['is']('element');}function gn(_0x1917b9){return ln(_0x1917b9)||function(_0x15a5c0){return _0x15a5c0['start']['parent']==_0x15a5c0['end']['nodeBefore']&&_0x15a5c0['start']['isAtEnd'];}(_0x1917b9);}function fn(_0xbbb551,_0x5aaf74){try{const _0x345db5=_0xbbb551['getRange']();for(const _0x232656 of _0x5aaf74)if(_0xbbb551!==_0x232656&&_0x345db5&&_0x345db5['isIntersecting'](_0x232656['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0xfa155c,_0x5098df){return null==_0xfa155c['end']['nodeBefore']&&_0xfa155c['end']['parent']==_0xfa155c['start']['nodeAfter']?En(_0xfa155c['start']['nodeAfter'],_0x5098df):_0xfa155c;}function En(_0x4130f4,_0x483c26){const _0x45cb0a=_0x483c26['schema']['isObject'](_0x4130f4)||_0x483c26['schema']['isSelectable'](_0x4130f4);return _0x483c26['createRange'](_0x483c26['createPositionAt'](_0x4130f4,'before'),_0x45cb0a?_0x483c26['createPositionAfter'](_0x4130f4):_0x483c26['createPositionAt'](_0x4130f4,'end'));}function Tn(_0x3bde62,_0x1fcb47,_0x53cd16,_0x28cdb3){return!!_n(_0x3bde62,_0x1fcb47)&&_0x53cd16['end']['isEqual'](_0x28cdb3['start']);}function _n(_0x7f18a8,_0x39747e){if(!_0x7f18a8['_isDataLoaded']||!_0x39747e['_isDataLoaded'])return!0x1;const _0x14fe73=new Set(Object['keys'](_0x7f18a8['attributes'])),_0x54e7bc=new Set(Object['keys'](_0x39747e['attributes']));if(_0x14fe73['delete']('groupId'),_0x54e7bc['delete']('groupId'),0x0==_0x14fe73['size']&&0x0==_0x54e7bc['size'])return!0x0;if(_0x14fe73['size']!=_0x54e7bc['size'])return!0x1;const _0x3ec18b={..._0x7f18a8['attributes']},_0x536469={..._0x39747e['attributes']};return delete _0x3ec18b['groupId'],delete _0x536469['groupId'],JSON['stringify'](_0x3ec18b)==JSON['stringify'](_0x536469);}function pn(_0x5df057,_0x2c7cce){const _0x389399=Ln(_0x5df057['attributes']),_0x2f3ab3=Ln(_0x2c7cce);if(!_0x5df057['_isDataLoaded'])return!0x1;if(!ct(_0x389399['@ai'],_0x2f3ab3['@ai']))return!0x1;for(const _0x287db3 of Object['keys'](_0x2f3ab3))if(!ct(_0x389399[_0x287db3],_0x2f3ab3[_0x287db3]))return!0x1;return!0x0;}function Ln(_0x11e8a4){const _0x387b1d=Object['assign']({},_0x11e8a4);return delete _0x387b1d['skipNestingCheck'],delete _0x387b1d['tablePasteChainId'],_0x387b1d;}function In(_0x58754d){return _0x58754d['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
- _0xe77ac2();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x5a1a77,_0x2f9428,_0x5a6fd5,_0x117b45){super(),this['model']=_0x2f9428,this['view']=_0x5a6fd5,this['commentThreadController']=_0x117b45,this['_editor']=_0x5a1a77,this['_acceptCommand']=_0x5a1a77['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5a1a77['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x14a412,_0x55a3f2)=>_0x14a412||_0x55a3f2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x362c50=>_0x362c50&&this['_editor']['model']['canEditAt'](_0x2f9428['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x57e610=>_0x57e610&&this['_editor']['model']['canEditAt'](_0x2f9428['getRanges']())),this['_pendingAction']=null,_0x5a6fd5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5a6fd5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5a6fd5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5a6fd5,'change:isDirty',()=>{_0x5a6fd5['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 _0x215936=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x215936);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},kn=class extends _0x394804{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xb7d2ff,_0x40f559,_0x1d5780,_0x260ab2){super(_0xb7d2ff),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x56c57f(_0xb7d2ff,Mt(_0xb7d2ff,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x40f559['authoredAt']),this['bind']('authoredAt')['to'](_0x40f559),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',_0x40f559,'authoredAt',this,'descriptionParts',(_0x575b92,_0x31b8d0,_0x3bfccf)=>{const _0x2ef8fa=_0x3bfccf['map'](_0x2f3733=>Lt(_0x2f3733['content']))['join']('.\x20')+'.',_0x19cb4f=_0x40f559['aiSource']&&'author'===_0x260ab2['showAISource']?_0x260ab2['aiAuthor']['name']:_0x40f559['author']['name'],_0x22255c=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x575b92-0x1,_0x19cb4f,_0x31b8d0?_0x260ab2['formatDateTime'](_0x31b8d0):'',new DOMParser()['parseFromString'](_0x2ef8fa,'text/html')['body']['textContent']]);return _0x40f559['aiSource']&&'pill'===_0x260ab2['showAISource']?_0x22255c+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x22255c;}),this['focusables']=new _0x305bf1(),this['focusTracker']=new _0x3fe02d(),this['keystrokes']=new _0x564f03(),this['focusCycler']=new _0x26183e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x56094a=>_0x56094a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x40f559,this['_localUser']=_0x1d5780,this['_config']=_0x260ab2,_0x260ab2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x6a2c0e(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x241ed3}=this['_config'];this['commentsListView']=new _0x241ed3(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',_0x23ef65=>_0x23ef65+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x56fb14,_0x372afc)=>_0x56fb14||!!_0x372afc);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x31118b}=this['_config'],_0x5bedf4=new _0x31118b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xc540d8=_0x5bedf4['commentInputView'];return _0x5bedf4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xc540d8,'value',(_0xca58ba,_0x44c77e,_0x113814)=>!!_0x113814||_0xca58ba&&!_0x44c77e),_0xc540d8['on']('submit',(_0x23c27a,_0x51f584)=>{this['fire']('addComment',_0x51f584),_0xc540d8['editor']['setData']('');}),_0xc540d8['on']('cancel',()=>this['focus']()),_0xc540d8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5bedf4;}},Cn=class extends kn{suggestionView;_descriptionElement;constructor(_0x3a3bc2,_0x5aef87,_0x356cae,_0x36b679){super(_0x3a3bc2,_0x5aef87,_0x356cae,_0x36b679),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x14e8ab=>_0x14e8ab&&_0x14e8ab[0x0]?_0x14e8ab[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4f49c0,_0x54826b)=>{let _0x5372ea='';for(const _0x2116be of _0x4f49c0)_0x5372ea+='<p>'+Lt(_0x2116be['content'],_0x2116be['color'])+'</p>';return _0x54826b?_0x5372ea:nt(_0x5372ea,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x36b679['SuggestionView'](_0x3a3bc2,_0x5aef87,{'formatDateTime':_0x36b679['formatDateTime'],'showAISource':_0x36b679['showAISource'],'aiAuthor':_0x36b679['aiAuthor']}),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 _0x4bcd6c=this['bindTemplate'],_0x43e0ee=[this['suggestionView']];return this['commentsListView']&&_0x43e0ee['push'](this['commentsListView']),this['commentThreadInputView']&&_0x43e0ee['push'](this['commentThreadInputView']),_0x43e0ee['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4bcd6c['if']('isActive','ck-suggestion-wrapper--active'),_0x4bcd6c['to']('type',_0x514c60=>'ck-suggestion-'+_0x514c60),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':_0x4bcd6c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x43e0ee};}['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));}},Rn=class extends _0x394804{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x43aa0a,_0x4851d0,_0x4fcf55){super(_0x43aa0a),this['_model']=_0x4851d0,this['_config']=_0x4fcf55,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4851d0),this['acceptButton']=this['_createButton'](Mt(_0x43aa0a,'Accept\x20suggestion'),_0x288bec,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x43aa0a,'Discard\x20suggestion'),_0x2e7ed3,'ck-suggestion--discard','discardSuggestion','sw');const _0x255f2a=!!_0x4851d0['aiSource']&&'author'===_0x4fcf55['showAISource'],_0x2bc81a=_0x255f2a?this['_createAIUser'](_0x4fcf55['aiAuthor']):_0x4851d0['author'],_0x4a5568=_0x255f2a&&!_0x4fcf55['aiAuthor']['avatar']?_0x4161ec:void 0x0;this['userView']=new _0x3b76d0(_0x43aa0a,_0x2bc81a,this['getUserViewNotificationText'](),_0x4a5568),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x305bf1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3fe02d(),this['keystrokes']=new _0x564f03(),this['focusCycler']=new _0x26183e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x76751b=>_0x76751b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x7e7303=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x7e7303['innerHTML']=this['description'],this['on']('change:description',(_0x3ac31e,_0x40f373,_0x3412da)=>{_0x7e7303['innerHTML']=_0x3412da;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x2e58f7=this['bindTemplate'],_0x5b8c6b=[{'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':_0x2e58f7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2e58f7['to']('authoredAt',_0x52d410=>this['_config']['formatDateTime'](_0x52d410))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x5b8c6b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x3b9db7=new _0x505b21(this['locale']);_0x3b9db7['set']({'icon':_0x319f9d,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x5b8c6b['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x3b9db7]});}return{'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':_0x5b8c6b}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x1d6275){return new _0x559f2b({'id':'ck-ai-author','name':_0x1d6275['name'],'avatar':_0x1d6275['avatar'],'color':new _0x35e7cc(0x0)});}_createButton(_0x49f515,_0x52b1dd,_0x138056,_0x493c19,_0x13513f){const _0x27fab6=new _0x2436d1(this['locale']);return _0x27fab6['set']({'label':_0x49f515,'icon':_0x52b1dd,'tooltip':!0x0,'tooltipPosition':_0x13513f}),_0x27fab6['extendTemplate']({'attributes':{'class':_0x138056}}),_0x27fab6['on']('execute',()=>{this['fire'](_0x493c19,this['_model']['id']);}),_0x27fab6;}_setupKeyboardNavigation(){const _0x178d9c=this['element'];this['keystrokes']['listenTo'](_0x178d9c);for(const _0x588a53 of this['focusables'])this['focusTracker']['add'](_0x588a53['element']),this['keystrokes']['listenTo'](_0x588a53['element']);this['keystrokes']['set']('enter',(_0x28cd2a,_0x270026)=>{_0x178d9c===_0x28cd2a['target']&&(this['focusCycler']['focusFirst'](),_0x270026());}),this['keystrokes']['set']('esc',(_0x310304,_0x2a1eb9)=>{_0x178d9c!==_0x310304['target']&&(this['focus'](),_0x2a1eb9());});}},yn=class extends _0x26ff96{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x1d4274,_0x5b43d8,_0x2ff334,_0x55f346];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x64a37e){super(_0x64a37e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x181c64=this['editor']['config'];_0x181c64['define']('trackChanges.SuggestionThreadView',Cn),_0x181c64['define']('trackChanges.SuggestionView',Rn),_0x181c64['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x181c64['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x686618,_0x436f72){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3fa6c6,_0x1e646c]of this['_handleControllerBuffer']){const _0x4d6be3=this['_suggestionToController']['has'](_0x3fa6c6);_0x4d6be3||_0x1e646c?_0x4d6be3&&_0x1e646c&&this['_destroyController'](_0x3fa6c6):this['_initializeController'](_0x3fa6c6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x55f346)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x686618,_0x436f72);}init(){const _0x34a4e9=this['editor'],_0x319ce9=_0x34a4e9['plugins']['get'](on),_0xa7e06a=_0x34a4e9['plugins']['get'](_0x2ff334),_0x393d28=_0x34a4e9['plugins']['get'](_0x55f346),_0x594aba=_0x34a4e9['plugins']['get'](_0x5b43d8);this['_addUIComponentsToFactory'](),_0x393d28['addSourceCollector'](()=>{const _0x1d476f=[];for(const [_0x2fbcf0,_0x2c66b7]of Array['from'](this['_suggestionToController'])){const _0x316426=_0x2fbcf0['getAllAdjacentSuggestions'](),_0x493bab=[];for(const _0x519832 of _0x316426){if(!_0x519832['isInContent'])continue;if(_0x519832['isMultiRange']){_0x493bab['push'](..._0x519832['getRanges']());continue;}const _0x18bd14=_0x519832['getFirstRange']();if(_0x493bab['length']>0x0){const _0x319732=_0x493bab[0x0]['getJoined'](_0x18bd14);if(_0x319732){_0x493bab[0x0]=_0x319732;continue;}}_0x493bab['push'](_0x18bd14);}_0x1d476f['push']([_0x2c66b7['view'],_0x493bab]);}return _0x1d476f;}),this['listenTo'](_0x319ce9,'suggestionLoaded',(_0xb5efc4,_0x2cb9f3)=>{this['listenTo'](_0x2cb9f3,'change:previous',(_0x12dab6,_0x51ad7d,_0x2fa3d3,_0xdedfc5)=>{_0x2cb9f3['isInContent']&&(null==_0x2fa3d3?(this['_updateController'](_0xdedfc5['head']),this['_handleSuggestionControllerDelayed'](_0x2cb9f3,!0x1)):(this['_updateController'](_0x2fa3d3['head']),null==_0xdedfc5&&this['_handleSuggestionControllerDelayed'](_0x2cb9f3,!0x0)));}),null!==_0x2cb9f3['previous']?this['_updateController'](_0x2cb9f3['head']):this['_handleSuggestionControllerDelayed'](_0x2cb9f3,!0x1);}),this['listenTo'](_0x319ce9,'suggestionUnloaded',(_0x1032b9,_0x2182c1,_0x4dc0fa)=>{this['stopListening'](_0x2182c1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2182c1),this['_suggestionToController']['has'](_0x2182c1)&&this['_destroyController'](_0x2182c1),_0x4dc0fa&&this['_updateController'](_0x4dc0fa['head']);}),this['listenTo'](_0x319ce9,'suggestionChanged',(_0x19887d,_0x1a0fab)=>{this['_updateController'](_0x1a0fab);}),this['listenTo'](_0xa7e06a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x594aba,'addComment',(_0xf0ed75,{threadId:_0x2b9b35,isFromAdapter:_0x3b2757})=>{if(_0x3b2757||!_0x319ce9['hasSuggestion'](_0x2b9b35))return;const _0x1ed94f=_0x319ce9['getSuggestion'](_0x2b9b35);this['_suggestionToController']['get'](_0x1ed94f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x465460=[this['editor']];for(const _0x5e17da of _0x465460){let _0x5dc1d7;for(const _0x4eb8b6 in _0x5e17da){const _0x2bea96=_0x4eb8b6,_0x3fd4d9=_0x5e17da[_0x2bea96];if('trackChangesLicenseKeyValid'==_0x3fd4d9||'trackChangesLicenseKeyInvalid'==_0x3fd4d9||'trackChangesLicenseKeyExpired'==_0x3fd4d9||'trackChangesLicenseKeyDomainLimit'==_0x3fd4d9||'trackChangesLicenseKeyNotAllowed'==_0x3fd4d9||'trackChangesLicenseKeyEvaluationLimit'==_0x3fd4d9||'trackChangesLicenseKeyUsageLimit'==_0x3fd4d9){delete _0x5e17da[_0x2bea96],_0x5dc1d7=_0x3fd4d9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0xa1b7a1){const _0x52bdf5=this['_suggestionToController']['get'](_0xa1b7a1);return _0x52bdf5&&this['editor']['plugins']['get'](_0x2ff334)['getByInnerView'](_0x52bdf5['view'])||null;}getSuggestionForAnnotation(_0x4a06e7){const _0x1c3271=this['_viewToController']['get'](_0x4a06e7['innerView']);return _0x1c3271?_0x1c3271['model']:null;}_refreshActiveMarkers(){const _0x3809ce=this['editor']['plugins']['get'](_0x2ff334),_0x30660d=this['editor']['plugins']['get'](on),_0x2f6102=Array['from'](_0x3809ce['activeAnnotations'],_0x5cde7b=>_0x5cde7b['innerView'])['filter'](_0x2981da=>this['_viewToController']['has'](_0x2981da)),_0x38a495=[];for(const _0x136a6c of _0x2f6102){const _0x2666df=this['_viewToController']['get'](_0x136a6c)['model']['getAllAdjacentSuggestions']();_0x38a495['push'](..._0x2666df['reduce']((_0x5f27ad,_0x85431b)=>[..._0x5f27ad,..._0x85431b['getMarkerNames']()],[]));}_0x30660d['activeMarkers']=_0x38a495;}_addUIComponentsToFactory(){const _0x1b08b2=this['editor'],_0x5acce0=_0x1b08b2['locale'],_0x23b9f9=Mt(_0x5acce0,'Track\x20changes'),_0x44817f=new _0x30ba87([{'type':'switchbutton','model':new _0x4fa1ce({'withText':!0x0,'isToggleable':!0x0,'label':_0x23b9f9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4fa1ce({'withText':!0x0,'label':Mt(_0x5acce0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fa1ce({'withText':!0x0,'label':Mt(_0x5acce0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fa1ce({'withText':!0x0,'label':Mt(_0x5acce0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fa1ce({'withText':!0x0,'label':Mt(_0x5acce0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1b08b2['plugins']['has']('TrackChangesPreview')&&_0x44817f['addMany']([{'type':'separator'},{'type':'button','model':new _0x4fa1ce({'withText':!0x0,'label':Mt(_0x5acce0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x55f3cf of _0x44817f)if(Nn(_0x55f3cf)){const _0xe8a180=_0x1b08b2['commands']['get'](_0x55f3cf['model']['commandName']);_0x55f3cf['model']['bind']('isOn','isEnabled')['to'](_0xe8a180,'value','isEnabled');}_0x1b08b2['ui']['componentFactory']['add']('trackChanges',_0x3c5d06=>this['_createToolbarButton'](_0x3c5d06,_0x44817f,_0x23b9f9)),_0x1b08b2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x33528b=>this['_createMenuBarMenu'](_0x33528b,_0x44817f,_0x23b9f9));}_createToolbarButton(_0x240ce8,_0x108916,_0x5422fb){const _0x2e0d99=_0x151f69(_0x240ce8,_0x171d98),_0x220560=this['editor']['commands']['get']('trackChanges');_0x2e0d99['buttonView']['set']({'tooltip':_0x5422fb,'label':_0x5422fb,'icon':_0x1af545}),_0x2e0d99['buttonView']['bind']('isOn')['to'](_0x220560,'value'),_0x2e0d99['buttonView']['on']('execute',()=>{_0x220560['execute'](),this['editor']['editing']['view']['focus']();}),_0x2ccfbe(_0x2e0d99,_0x108916,{'role':'menu'});const _0x5817bb=[];for(const _0x55749d of _0x108916)Nn(_0x55749d)&&_0x5817bb['push'](this['editor']['commands']['get'](_0x55749d['model']['commandName']));const _0x4d4590=_0x2e0d99['buttonView'];return _0x4d4590['actionView']['unbind']('isEnabled'),_0x4d4590['arrowView']['unbind']('isEnabled'),_0x4d4590['actionView']['bind']('isEnabled')['to'](_0x220560,'isEnabled'),_0x4d4590['arrowView']['bind']('isEnabled')['toMany'](_0x5817bb,'isEnabled',(..._0x4e3c2c)=>_0x4e3c2c['some'](_0x327b21=>_0x327b21)),_0x2e0d99['on']('execute',_0x5d5b7b=>{this['editor']['execute'](_0x5d5b7b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e0d99;}_createMenuBarMenu(_0x3d436d,_0x2d5547,_0x2e7c87){const _0xca31ff=new _0x3f7048(_0x3d436d),_0x15db74=this['editor']['commands']['get']('trackChanges');_0xca31ff['buttonView']['set']({'label':_0x2e7c87,'icon':_0x1af545});const _0x121be7=new _0x310144(_0x3d436d);for(const _0x13538d of _0x2d5547){if('separator'==_0x13538d['type']){_0x121be7['items']['add'](new _0x5e489e(_0x3d436d));continue;}const _0x40520f=new _0x2f78b5(_0x3d436d,_0xca31ff),_0x42848f=new _0x388c35(_0x3d436d),_0x11f0da=_0x13538d['model'];_0x42848f['bind'](...Object['keys'](_0x11f0da))['to'](_0x11f0da),_0x42848f['delegate']('execute')['to'](_0xca31ff),_0x42848f['on']('execute',()=>{this['editor']['execute'](_0x11f0da['commandName']),this['editor']['editing']['view']['focus']();}),_0x40520f['children']['add'](_0x42848f),_0x121be7['items']['add'](_0x40520f);}return _0xca31ff['bind']('isEnabled')['to'](_0x15db74,'isEnabled'),_0xca31ff['panelView']['children']['add'](_0x121be7),_0xca31ff;}_initializeController(_0x3bdf52){const _0x34d5c4=this['editor'],_0x12920=_0x34d5c4['config'],_0x4ae1f2=_0x34d5c4['plugins']['get'](_0x2ff334),_0x3c9b1c=_0x34d5c4['plugins']['get'](_0x5b43d8),_0x44f818=_0x34d5c4['plugins']['get'](_0x55f346),_0x4f0ba8=_0x34d5c4['plugins']['get'](_0x1d4274)['me'],_0x1a3c31=_0x12920['get']('trackChanges')['SuggestionThreadView'],_0x3e37c3=_0x12920['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x270fea,CommentThreadInputView:_0x4cc4ab}=_0x34d5c4['plugins']['get']('CommentsUI');let _0x8e5c2e,_0x1fffad,_0x5ebf4b;this['_annotationViews']['has'](_0x3bdf52['id'])?(_0x1fffad=this['_annotationViews']['get'](_0x3bdf52['id']),_0x8e5c2e=_0x1fffad['mainView']):(_0x8e5c2e=new _0x1a3c31(_0x34d5c4['locale'],_0x3bdf52,_0x4f0ba8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x12920['get']('comments.editorConfig'),'licenseKey':_0x12920['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x12920['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12920['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12920['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1e6b48(_0x12920['get']('locale'),_0x34d5c4['locale']),'CommentView':_0x12920['get']('comments')['CommentView'],'CommentsListView':_0x270fea,'CommentThreadInputView':_0x4cc4ab,'SuggestionView':_0x3e37c3,'showAISource':_0x12920['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x12920['get']('trackChanges.aiAuthor'),'name':_0x12920['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x34d5c4['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x8e5c2e['suggestionView']['acceptButton']['on']('execute',()=>{_0x34d5c4['editing']['view']['focus']();}),_0x8e5c2e['suggestionView']['discardButton']['on']('execute',()=>{_0x34d5c4['editing']['view']['focus']();}),_0x1fffad=_0x4ae1f2['createAnnotationView'](this['editor']['locale'],_0x8e5c2e),_0x1fffad['bind']('isDirty')['to'](_0x8e5c2e,'isDirty'),_0x1fffad['bind']('length')['to'](_0x8e5c2e),_0x1fffad['bind']('type')['to'](_0x8e5c2e,'type',_0x4e4b63=>'suggestion-'+_0x4e4b63),_0x8e5c2e['on']('escape',()=>{_0x5ebf4b['fire']('escape');}),this['_annotationViews']['set'](_0x3bdf52['id'],_0x1fffad));const _0x499742=_0x3c9b1c['createCommentThreadController'](_0x3bdf52['commentThread'],_0x8e5c2e),_0x43c9a4=new bn(_0x34d5c4,_0x3bdf52,_0x8e5c2e,_0x499742),_0x1bef03=_0x3bdf52['getAllAdjacentSuggestions']()['filter'](_0x9615c8=>_0x9615c8['isInContent']);_0x8e5c2e['descriptionParts']=_0x34d5c4['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x1bef03),this['_suggestionToController']['set'](_0x3bdf52,_0x43c9a4),this['_viewToController']['set'](_0x8e5c2e,_0x43c9a4);const _0x5618c8=()=>{const _0x61f53=[],_0x179de0=_0x3bdf52['getAllAdjacentSuggestions']()['filter'](_0x5db4d3=>_0x5db4d3['isInContent']);for(const _0x1d8f34 of _0x179de0)_0x61f53['push'](..._0x1d8f34['getMarkers']());return _0x3ad40c(_0x34d5c4['editing'],_0x61f53);};_0x5ebf4b=_0x4ae1f2['createAnnotation']({'view':_0x1fffad,'target':_0x5618c8,'type':()=>'suggestion-'+_0x43c9a4['view']['type'],'isVisible':!!_0x5618c8()}),_0x3c9b1c['_bindAnnotationToEditors'](_0x8e5c2e,_0x5ebf4b),_0x4ae1f2['add'](_0x5ebf4b),_0x44f818['registerAnnotation'](_0x5ebf4b);}_destroyController(_0xcc547b){const _0x1557b5=this['editor']['plugins']['get'](_0x5b43d8),_0x2e7cf5=this['editor']['plugins']['get'](_0x2ff334),_0x76be55=this['_suggestionToController']['get'](_0xcc547b),_0x526842=_0x76be55['view'],_0x4d98ab=_0x2e7cf5['getByInnerView'](_0x526842);_0x1557b5['_unbindEditors'](_0x526842),_0x4d98ab&&_0x2e7cf5['remove'](_0x4d98ab),this['_suggestionToController']['delete'](_0xcc547b),this['_viewToController']['delete'](_0x526842),_0x76be55['destroy']();}_updateController(_0x31b51a){if(!_0x31b51a['isInContent']||!this['_suggestionToController']['has'](_0x31b51a))return;const _0x38659b=this['editor']['plugins']['get'](on),_0x18f7cd=this['_suggestionToController']['get'](_0x31b51a),_0x12e4b3=_0x31b51a['getAllAdjacentSuggestions']();_0x18f7cd['view']['descriptionParts']=_0x38659b['descriptionFactory']['getDescriptions'](_0x12e4b3);}destroy(){for(const _0x361a42 of this['_suggestionToController']['keys']())this['_destroyController'](_0x361a42);for(const _0x40e470 of this['_annotationViews']['values']())_0x40e470['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x10713a){return'model'in _0x10713a;}var Sn=class extends _0x26ff96{static get requires(){return[on,yn,_0x57912a];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x106468){this['editor']['plugins']['get'](on)['adapter']=_0x106468;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0xfd3686){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0xfd3686);}getSuggestions({skipNotAttached:_0x35995c=!0x1,toJSON:_0x1a31ac=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x35995c,'toJSON':_0x1a31ac});}getSuggestion(_0x390f05){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x390f05);}};const Mn=['Pagination'];var On=class extends _0x26ff96{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x497448=this['editor'];if(_0x497448['config']['define']('trackChangesData.editorCreator',_0x325ff6=>{const _0x277d7c=_0x497448['model']['document']['getRootNames']()['reduce']((_0x1ccbd7,_0x629dbe)=>(_0x1ccbd7[_0x629dbe]='',_0x1ccbd7),{});return _0x497448['constructor']['create'](_0x277d7c,_0x325ff6);}),'function'!=typeof _0x497448['config']['get']('trackChangesData')['editorCreator'])throw new _0x18ab5c('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x392886){return Bn(this['editor'],!0x0,_0x392886);}getDataWithDiscardedSuggestions(_0x10fb27){return Bn(this['editor'],!0x1,_0x10fb27);}},wn=class extends _0x26ff96{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40a748){super(_0x40a748),this['result']='end',_0x40a748['editing']['view']['_overlayModeHint']='auto',_0x40a748['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0x4eb649){return void 0x0!==_0x4eb649['getRootsAttributes'];}async function Bn(_0x3176f7,_0x4df270,_0x2a76bd){const _0x5e068d=_0x5539b0(_0x3176f7,Mn);if(_0x5e068d['plugins']['push'](on,wn),Fn(_0x3176f7)){_0x5e068d['roots']=Object['create'](null);for(const _0xb772b5 of _0x3176f7['model']['document']['getRootNames']())_0x5e068d['roots'][_0xb772b5]={'modelAttributes':_0x3176f7['getRootAttributes'](_0xb772b5)};}const _0x423fc9=document['createDocumentFragment'](),_0x5afe8b=_0x3176f7['config']['get']('trackChangesData')['editorCreator'],_0x5f5655=await _0x5afe8b(_0x5e068d,()=>function(_0x33a073){const _0x31f8c3=document['createElement']('div');return _0x33a073['appendChild'](_0x31f8c3),_0x31f8c3;}(_0x423fc9));!function(_0x31d7bf,_0x2702c2){const _0x10227f=_0x31d7bf['model']['document']['getRootNames']()['reduce']((_0x253135,_0x39edf5)=>(_0x253135[_0x39edf5]=_0x31d7bf['data']['get']({'rootName':_0x39edf5}),_0x253135),{}),_0x2bf4e7=_0x31d7bf['plugins']['get']('Users')['users']['map'](_0x54aaf6=>({'id':_0x54aaf6['id'],'name':_0x54aaf6['name']})),_0xcc4b22=_0x31d7bf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1144d9=_0x31d7bf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x25d40e=_0x2702c2['plugins']['get']('Users'),_0x1c79a9=_0x2702c2['plugins']['get']('TrackChangesEditing'),_0x39f98a=_0x2702c2['plugins']['get']('CommentsRepository');for(const _0x7462b6 of _0x39f98a['getCommentThreads']())_0x7462b6['remove']();for(const _0x304053 of _0x2bf4e7)_0x25d40e['getUser'](_0x304053['id'])||_0x25d40e['addUser'](_0x304053);_0x25d40e['me']||_0x25d40e['useAnonymousUser']();for(const _0x3df207 of _0x1144d9)_0x39f98a['addCommentThread'](_0x3df207);for(const _0x4f16b6 of _0xcc4b22)_0x1c79a9['addSuggestionData'](_0x4f16b6);_0x2702c2['data']['set'](_0x10227f);}(_0x3176f7,_0x5f5655),_0x5f5655['execute'](_0x4df270?'acceptAllSuggestions':'discardAllSuggestions');const _0xf1ac18=Fn(_0x5f5655)?_0x5f5655['getFullData'](_0x2a76bd):_0x5f5655['data']['get'](_0x2a76bd);return await _0x5f5655['destroy'](),_0xf1ac18;}var vn=class extends _0x394804{options;constructor(_0x1c717d,_0x24d8b9){super(_0x1c717d),this['options']=_0x24d8b9,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(_0x16b76a,_0x286c1e){if(!this['element'])return;const _0x416700=[];for(const [_0xff606e,_0x4caff9]of _0x16b76a){const _0x3ad2cc=document['createElement']('div');_0x3ad2cc['setAttribute']('data-ck-root-name',_0xff606e),_0x3ad2cc['className']=_0x4caff9['classes']+'\x20ck-track-changes-preview__root-container',_0x3ad2cc['innerHTML']=_0x4caff9['content'],_0x416700['push'](_0x3ad2cc);}_0x286c1e(this['element'],_0x416700),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x319139{constructor(_0x56c8c0){super(_0x56c8c0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x31459d=this['editor'],_0x53920d=_0x31459d['locale'],_0x1faf4f=_0x31459d['plugins']['get']('Dialog');let _0x3d593f;const _0x462e2f=function(_0x392f66){const _0x5ae551={};if('editables'in _0x392f66['ui']['view']){for(const [_0x2f662d,_0xb15027]of Object['entries'](_0x392f66['ui']['view']['editables']))_0x5ae551[_0x2f662d]=_0xb15027['element'];}else _0x5ae551[_0x392f66['model']['document']['getRootNames']()[0x0]]=_0x392f66['ui']['view']['editable']['element'];return _0x5ae551;}(_0x31459d),_0x5d113e=function(_0x351175){let _0x4b99a1=0x0;for(const _0x5d0550 of Object['values'](_0x351175))_0x4b99a1=Math['max'](_0x4b99a1,_0x5d0550['getBoundingClientRect']()['width']);let _0x2f117c=0x0;for(const _0x2a2885 of Object['values'](_0x351175))_0x2f117c+=_0x2a2885['getBoundingClientRect']()['height'];const _0x1b0ab8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x4b99a1,'height':Math['min'](_0x2f117c,_0x1b0ab8)};}(_0x462e2f);_0x1faf4f['show']({'id':'finalContentPreview','title':Mt(_0x53920d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x53920d,{'dialogRects':_0x5d113e}),'onHide':()=>{_0x3d593f['detachFromDom']();},'onShow':()=>{_0x31459d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x335efc=>{const _0x54c794=this['_standarizeRootsData'](_0x335efc,_0x31459d,_0x462e2f);_0x1faf4f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54c794,_0x31459d['config']['get']('trackChanges.preview.renderFunction'));}),_0x3d593f=new _0x3aee1a(_0x53920d,[_0x1faf4f['view']]),_0x3d593f['attachToDom'](),_0x3d593f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x31459d['once']('destroy',()=>{_0x3d593f['detachFromDom']();});const _0x2ead5e=_0x1faf4f['view']['headerView']['class'];_0x1faf4f['view']['headerView']['class']=_0x2ead5e?_0x2ead5e+'\x20ck-reset_all':'ck-reset_all',_0x1faf4f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1faf4f['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2e5546=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x55a0b3=_0x2e5546['previewMode'],_0x2d74e1={};if('$labels'===_0x55a0b3){for(const _0x37d804 of _0x2e5546['getMergeFieldsIds']())_0x2d74e1[_0x37d804]=_0x2e5546['getLabel'](_0x37d804)||_0x37d804;}else{const _0x46c09f='$defaultValues'===_0x55a0b3?_0x2e5546['getDefaultValues']():_0x2e5546['getDataSetValues'](_0x55a0b3,!0x0);for(const _0x24303d of Object['entries'](_0x46c09f)){const [_0x86ebd,_0x49a836]=_0x24303d;_0x2d74e1[_0x86ebd]=null!==_0x49a836?_0x49a836:_0x2e5546['getLabel'](_0x86ebd)||_0x86ebd;}}return{'mergeFieldsData':_0x2d74e1};}_standarizeRootsData(_0x20d3ad,_0x3c5d3d,_0x3a3480){let _0x2cd1e9;_0x2cd1e9='string'==typeof _0x20d3ad?{[_0x3c5d3d['model']['document']['getRootNames']()[0x0]]:_0x20d3ad}:_0x20d3ad;const _0x1f976d=this['_fixMediaEmbeds'](_0x2cd1e9,_0x3c5d3d);return function(_0x3659d8,_0x54a97a){for(const [_0x1fbd98,_0x2afc72]of _0x3659d8)_0x2afc72['classes']=_0x54a97a[_0x1fbd98]['classList']['value']['replace']('ck-focused','');return _0x3659d8;}(this['_sortRoots'](_0x3c5d3d)['reduce']((_0x2092c1,_0x39135e)=>(_0x2092c1['push']([_0x39135e,{'content':_0x1f976d[_0x39135e],'classes':''}]),_0x2092c1),[]),_0x3a3480);}['_fixMediaEmbeds'](_0x30ddfd,_0xba59e7){if(!_0xba59e7['plugins']['has']('MediaEmbedEditing'))return _0x30ddfd;const _0x51f24e=_0xba59e7['plugins']['get']('MediaEmbedEditing');for(const [_0x37a9bf,_0x1b85d9]of Object['entries'](_0x30ddfd)){const _0x1c6505=document['createElement']('div');_0x1c6505['innerHTML']=_0x1b85d9,_0x1c6505['querySelectorAll']('figure.media')['forEach'](_0x363b9d=>{const _0x59cdbc=_0x363b9d['querySelector']('oembed');if(_0x59cdbc){const _0x31fec1=_0x59cdbc['getAttribute']('url');if(_0x31fec1){const _0x109a90=_0x51f24e['registry']['getMediaViewElement'](new ot(_0xba59e7['editing']['view']['document']),_0x31fec1,{'elementName':'','renderForEditingView':!0x0}),_0x48cf6c=document['createElement']('div');_0x48cf6c['classList']['add']('ck-media__wrapper'),_0x109a90['render'](_0x48cf6c,_0xba59e7['editing']['view']['domConverter']),_0x59cdbc['replaceWith'](_0x48cf6c);}}}),_0x30ddfd[_0x37a9bf]=_0x1c6505['innerHTML'];}return _0x30ddfd;}_sortRoots(_0x52d028){if(!function(_0x15450f){return void 0x0!==_0x15450f['getRootsAttributes'];}(_0x52d028))return _0x52d028['model']['document']['getRootNames']();const _0x24a2f6=[],_0x44ed67=new Map();for(const _0x71fdaa of _0x52d028['model']['document']['getRootNames']()){const _0x129d05=_0x52d028['editing']['view']['getDomRoot'](_0x71fdaa)['getClientRects']()['item'](0x0);_0x24a2f6['push'](_0x71fdaa),_0x44ed67['set'](_0x71fdaa,_0x129d05);}return _0x24a2f6['sort']((_0x6e60ed,_0x54243a)=>{const _0x2475c4=_0x44ed67['get'](_0x6e60ed),_0x165516=_0x44ed67['get'](_0x54243a);return _0x2475c4['y']-_0x165516['y']||_0x2475c4['x']-_0x165516['x'];}),_0x24a2f6;}},Un=class extends _0x26ff96{static get requires(){return[On,_0x5b9b2d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbf7498){super(_0xbf7498),_0xbf7498['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0xbf7498['config']['define']('trackChanges.preview.renderFunction',(_0x5ce4bf,_0x162d63)=>{for(const _0xb1432a of _0x162d63)_0x5ce4bf['appendChild'](_0xb1432a);});}};export{_t as AcceptSuggestionCommand,kn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Cn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,Tt as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
23
+ import{Command as _0x3b0b10,PendingActions as _0x305bdb,Plugin as _0x5cf544}from'@ckeditor/ckeditor5-core';import{Annotations as _0x5a86b5,Comments as _0x179390,CommentsRepository as _0x3f08e8,EditorAnnotations as _0x13b066}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x2faccb,Collection as _0x4dbd7f,FocusTracker as _0x5168be,KeystrokeHandler as _0x102cde,ObservableMixin as _0x37f228,getEnvKeystrokeText as _0x239078,insertToPriorityArray as _0x3e2cb1,logWarning as _0x5fc841,priorities as _0x3fd845,uid as _0x4aa562}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x3406c2,IconCancel as _0x2275d4,IconCheck as _0x1a9023,IconSparkle as _0xa2c210,IconTrackChanges as _0x1c9f01}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x108842,Dialog as _0x1f1a23,FocusCycler as _0x4a519b,ListSeparatorView as _0x2c8915,MenuBarMenuListItemButtonView as _0x51db7d,MenuBarMenuListItemView as _0x2248bd,MenuBarMenuListView as _0x56e832,MenuBarMenuView as _0x44568a,SplitButtonView as _0x3803ab,UIModel as _0x2d34e9,View as _0x4c905d,ViewCollection as _0x3be405,addListToDropdown as _0x2e2a83,createDropdown as _0x1b326e,normalizeColorOptions as _0xed1c81}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x23bc98,CollaborationUserColor as _0x5c15c6,FOCUS_ANNOTATION_KEYSTROKE as _0x4b3db1,LateFocusButtonView as _0x4594aa,PillView as _0x23e89f,SuggestionsConversion as _0x479c91,User as _0x2b2ea0,UserView as _0x4dfbd0,Users as _0x14ae03,fixElementSuggestionRange as _0x3afe45,getAllMarkersDomElementsSorted as _0x432206,getDateTimeFormatter as _0x53f4d4,hashObject as _0x43717f,isInvalidAttributeOperation as _0x13baab,sanitizeEditorConfig as _0x9d7e32,setupThreadKeyboardNavigation as _0x500825,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ht,ClipboardPipeline as gt}from'@ckeditor/ckeditor5-clipboard';import{Delete as ft,Input as mt}from'@ckeditor/ckeditor5-typing';import{Enter as Et}from'@ckeditor/ckeditor5-enter';var Tt=class extends _0x3b0b10{['_enabledCommands'];constructor(_0x39cc20,_0x2602bb){super(_0x39cc20),this['_enabledCommands']=_0x2602bb,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 _0x3443e9 of this['editor']['commands']['commands']())_0x3443e9['affectsData']&&!this['_enabledCommands']['has'](_0x3443e9)&&_0x3443e9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x110d3b of this['editor']['commands']['commands']())_0x110d3b['affectsData']&&!this['_enabledCommands']['has'](_0x110d3b)&&_0x110d3b['clearForceDisabled']('TrackChangesCommand');}},_t=class extends _0x3b0b10{_suggestions;constructor(_0x57ece7,_0xc0071c){super(_0x57ece7),this['_suggestions']=_0xc0071c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x4df717){const _0x24e82e=this['_suggestions']['get'](_0x4df717);if(!_0x24e82e)throw new _0x2faccb('track-changes-accept-suggestion-not-found',this);const _0x38451b=_0x24e82e['getRanges']();this['editor']['model']['canEditAt'](_0x38451b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x24e82e);}},pt=class extends _0x3b0b10{_suggestions;constructor(_0x79377e,_0x5b6833){super(_0x79377e),this['_suggestions']=_0x5b6833,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x5cb6aa){const _0xd2f475=this['_suggestions']['get'](_0x5cb6aa);if(!_0xd2f475)throw new _0x2faccb('track-changes-discard-suggestion-not-found',this);const _0x4e7518=_0xd2f475['getRanges']();this['editor']['model']['canEditAt'](_0x4e7518)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xd2f475);}};function Lt(_0x3a1629,_0x58f87c){let _0x4be2a6='';return _0x4be2a6+=_0x3a1629['split']('*')['map']((_0xb106c,_0x5a99ce)=>_0x5a99ce%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+It(_0xb106c)+'</span>':It(_0xb106c))['join'](''),_0x58f87c&&(_0x4be2a6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x58f87c['value']+'\x22\x20title=\x22'+_0x58f87c['title']+'\x22></span>'),_0x4be2a6;}function It(_0x5647ad){const _0x24a068=document['createElement']('span');return _0x24a068['innerText']=_0x5647ad,_0x24a068['innerHTML'];}function At(_0x7e9544){return _0x7e9544['sort']((_0x6448ac,_0x90f3d1)=>'attribute'===_0x6448ac['type']&&'attribute'!==_0x90f3d1['type']?-0x1:'attribute'!==_0x6448ac['type']&&'attribute'===_0x90f3d1['type']?0x1:'deletion'==_0x6448ac['type']&&'deletion'!=_0x90f3d1['type']?-0x1:'deletion'!=_0x6448ac['type']&&'deletion'==_0x90f3d1['type']?0x1:0x0);}function bt(_0x426529,_0x13a307){let _0x4c40d1,_0x39903b=0x0;const _0x3d1bca=[],_0x46c1e8=_0x13a307['schema'];for(;_0x39903b<_0x426529['length'];){const _0x1640a5=_0x426529[_0x39903b],_0x4b1eac=_0x426529[_0x39903b+0x1];_0x4c40d1||(_0x4c40d1=_0x13a307['createPositionBefore'](_0x1640a5)),kt(_0x13a307,_0x1640a5,_0x4b1eac)||(_0x3d1bca['push'](_0x13a307['createRange'](_0x4c40d1,_0x46c1e8['isObject'](_0x1640a5)?_0x13a307['createPositionAfter'](_0x1640a5):_0x13a307['createPositionAt'](_0x1640a5,'end'))),_0x4c40d1=null),_0x39903b++;}return _0x3d1bca;}function kt(_0x3365f6,_0x4094e2,_0x5caddb){if(!_0x5caddb)return!0x1;const _0x309383=_0x3365f6['createPositionAfter'](_0x4094e2),_0x1f0efb=_0x3365f6['createPositionBefore'](_0x5caddb);return _0x309383['isTouching'](_0x1f0efb);}function Ct(_0x4bfa0c,_0x46288a,_0x2d324c){for(;_0x2d324c['length'];){const _0xd07a64=_0x2d324c['splice'](0x0,0x64);_0x4bfa0c['change'](()=>{for(const _0x215008 of _0xd07a64)_0x215008['isInContent']&&_0x46288a['execute'](_0x215008['id']);});}}var Rt=class extends _0x3b0b10{['_command'];_suggestions;constructor(_0x146f56,_0x581908,_0x2a9b3d){super(_0x146f56),this['_command']=_0x581908,this['_suggestions']=_0x2a9b3d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2a2eb7=Array['from'](this['_suggestions']['values']())['some'](_0x49a18a=>_0x49a18a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2a2eb7;}execute(){const _0x335b51=At(Array['from'](this['_suggestions']['values']()));for(const _0x5bb7ac of _0x335b51){const _0xe2b3db=_0x5bb7ac['getRanges']();if(!this['editor']['model']['canEditAt'](_0xe2b3db))return;}Ct(this['editor']['model'],this['_command'],_0x335b51);}},yt=class extends _0x3b0b10{['_command'];_suggestions;_selectedSuggestions;constructor(_0xb422e1,_0x1632a8,_0x3daccb){super(_0xb422e1),this['_command']=_0x1632a8,this['_suggestions']=_0x3daccb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a2d05=this['editor']['model']['document']['selection'],_0x3965f2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x12f0e9,_0x376e9b){const _0x313c44=Array['from'](_0x12f0e9['getRanges']()),_0x2eaed3=new Set();for(const _0x1f7c53 of _0x376e9b)if(_0x1f7c53['isInContent']){for(const _0x3c287e of _0x313c44)for(const _0x147f91 of _0x1f7c53['getRanges']())(_0x3c287e['isIntersecting'](_0x147f91)||_0x12f0e9['isCollapsed']&&!_0x1f7c53['isMultiRange']&&_0x1f7c53['next']&&_0x147f91['end']['isTouching'](_0x3c287e['start']))&&_0x2eaed3['add'](_0x1f7c53);}return _0x2eaed3;}(_0x3a2d05,_0x3965f2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x18ad73=At(Array['from'](this['_selectedSuggestions']));for(const _0x5d4a93 of _0x18ad73){const _0x577dd3=_0x5d4a93['getRanges']();if(!this['editor']['model']['canEditAt'](_0x577dd3))return;}Ct(this['editor']['model'],this['_command'],_0x18ad73);}};const Nt=/* #__PURE__ -- @preserve */
24
+ _0x37f228();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x22aff8,_0x4a9cb1){super(),this['id']=_0x4a9cb1['id'],this['type']=_0x4a9cb1['type'],this['subType']=_0x4a9cb1['subType']||null,this['author']=_0x4a9cb1['author'],this['creator']=_0x4a9cb1['creator']||_0x4a9cb1['author'],this['data']=null,this['_originalSuggestionId']=_0x4a9cb1['originalSuggestionId']||null,this['_model']=_0x22aff8,this['_onAccept']=_0x4a9cb1['onAccept'],this['_onDiscard']=_0x4a9cb1['onDiscard'],this['_onAttributesChange']=_0x4a9cb1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4a9cb1['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x161040=this;for(;_0x161040['previous'];)_0x161040=_0x161040['previous'];return _0x161040;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x55b002){this['_markerNames']['add'](_0x55b002);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x48222a=>this['_model']['markers']['get'](_0x48222a))['filter'](_0x1cc812=>_0x1cc812);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x8c6fa=>{for(const _0xc8f3be of this['getMarkers']())_0x8c6fa['removeMarker'](_0xc8f3be);}),this['_markerNames']['clear']();}['removeMarker'](_0xf4c0d1){this['_model']['change'](_0x230261=>{_0x230261['removeMarker'](_0xf4c0d1);}),this['_markerNames']['delete'](_0xf4c0d1);}['addRange'](_0x91bc78){const _0x20d1f5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x20d1f5),this['_model']['change'](_0x141c6f=>{_0x141c6f['addMarker'](_0x20d1f5,{'range':_0x91bc78,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x2a602d){for(const _0x14fe65 of this['getRanges']())if(_0x14fe65['isIntersecting'](_0x2a602d))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x3a4f20=>_0x3a4f20['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x33f71c,_0x22fba4)=>[..._0x33f71c,..._0x22fba4['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x258aa1=this['getRanges']();if(0x1!=_0x258aa1['length'])return null;const _0x20534c=_0x258aa1[0x0],_0x1580e1=_0x20534c['start']['nodeAfter'],_0x283319=_0x20534c['end']['nodeBefore'];return _0x1580e1 instanceof it?_0x1580e1!=_0x283319?null:_0x1580e1: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 _0x21261f=[];let _0xef1898=this['head'];for(;_0xef1898;)_0x21261f['push'](_0xef1898),_0xef1898=_0xef1898['next'];return _0x21261f;}setAttribute(_0x518349,_0x2614ed){const _0xefcf01=at(this['attributes']);ut(_0xefcf01,_0x518349,_0x2614ed),ct(_0xefcf01,this['attributes'])||(this['attributes']=_0xefcf01,this['_onAttributesChange'](_0xefcf01));}removeAttribute(_0x3d0fbf){const _0x3a53ff=at(this['attributes']);dt(_0x3a53ff,_0x3d0fbf),ct(_0x3a53ff,this['attributes'])||(this['attributes']=_0x3a53ff,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 _0x4aa562()['substr'](0x1,0x5);}};function Mt(_0x12f6d2,_0x5016fb,_0x13c94f){const _0x1a7c25=_0x12f6d2['t'],t=_0x12f6d2['t'];switch(_0x5016fb){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',_0x13c94f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x13c94f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x13c94f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x13c94f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x13c94f);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',_0x13c94f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x13c94f);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',_0x13c94f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x13c94f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x13c94f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x13c94f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x13c94f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x13c94f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x13c94f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x13c94f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x13c94f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x13c94f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x13c94f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x13c94f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x13c94f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x13c94f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x13c94f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x13c94f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x13c94f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x13c94f);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'},_0x13c94f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x13c94f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x13c94f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x13c94f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x13c94f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x13c94f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x13c94f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x13c94f);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x13c94f);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x13c94f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x13c94f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x13c94f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x13c94f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x13c94f);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'},_0x13c94f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x13c94f);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'},_0x13c94f);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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});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'},_0x13c94f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x13c94f);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'},_0x13c94f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x13c94f);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'},_0x13c94f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x13c94f);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x13c94f);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x13c94f);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x13c94f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x13c94f);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'},_0x13c94f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x13c94f);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x1a7c25({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x13c94f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1a7c25({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x13c94f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x13c94f);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'},_0x13c94f);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'},_0x13c94f);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'},_0x13c94f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5016fb;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x1d38f7,_0x440e33){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1d38f7,this['_locale']=_0x440e33;}getDescriptions(_0x3f264f){const _0x201c1f=[],_0x43d832=new Set(),_0x138cfc=new Set();for(let _0x62efec=0x0;_0x62efec<_0x3f264f['length'];_0x62efec++){const _0x34c3ed=_0x3f264f[_0x62efec];if(!_0x34c3ed['isInContent'])continue;const _0x151afe=this['_handleCustomCallbackDescription'](_0x34c3ed);if(_0x151afe){if(null!=_0x34c3ed['subType']){if(_0x43d832['has'](_0x34c3ed['subType']))continue;_0x43d832['add'](_0x34c3ed['subType']);}_0x201c1f['push'](_0x151afe);}else{if('attribute'==_0x34c3ed['type']){const _0x48dd8f=_0x34c3ed['data']['key'];if(_0x138cfc['has'](_0x48dd8f))continue;_0x138cfc['add'](_0x34c3ed['data']['key']),'$elementName'==_0x48dd8f?this['_handleRenameSuggestionDescription'](_0x201c1f,_0x34c3ed):this['_handleAttributeSuggestionDescription'](_0x201c1f,_0x34c3ed);continue;}'insertion'!=_0x34c3ed['type']&&'deletion'!=_0x34c3ed['type']||this['_handleInsertRemoveSuggestionDescription'](_0x201c1f,_0x34c3ed,_0x3f264f[_0x62efec+0x1]);}}return this['_resolveDescriptionItems'](_0x201c1f);}registerDescriptionCallback(_0x2f7947){this['_customCallbacks']['push'](_0x2f7947);}registerElementLabel(_0x2ba3b9,_0x2f6ad7,_0x449dcb=_0x3fd845['normal']){'function'==typeof _0x2ba3b9?_0x3e2cb1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2ba3b9,'label':_0x2f6ad7,'priority':_0x449dcb}):this['_itemLabels']['set'](_0x2ba3b9,_0x2f6ad7);}registerAttributeLabel(_0x948b9f,_0x1bd6b0){this['_attributeLabels']['set'](_0x948b9f,_0x1bd6b0);}getItemLabel(_0x4cbd10,_0x4323f2=0x1){let _0x13b2b6;for(const _0x5532d5 of this['_itemLabelsCallbacks'])if(_0x5532d5['matchingCallback'](_0x4cbd10)){_0x13b2b6=_0x5532d5['label'];break;}return _0x13b2b6||(_0x13b2b6=this['_itemLabels']['get'](_0x4cbd10['name'])),_0x13b2b6?_0x13b2b6(_0x4323f2):0x1!==_0x4323f2?_0x4323f2+'\x20'+_0x4cbd10['name']+'s':''+_0x4cbd10['name'];}_addDescriptionItems(_0x8eb8d3,_0x3530fa){const _0x418f59=_0x3530fa['getFirstRange']()['getWalker'](),_0x31ffa3='insertion'==_0x3530fa['type']?'add':'remove';for(const _0x35e256 of _0x418f59){const _0x2b1fd5=_0x35e256['item'],_0x1d864f=_0x8eb8d3[_0x8eb8d3['length']-0x1];if(_0x2b1fd5['is']('$textProxy'))_0x1d864f&&_0x1d864f['type']['indexOf']('Container')>-0x1&&_0x8eb8d3['pop'](),_0x1d864f&&'text'==_0x1d864f['type']?_0x1d864f[_0x31ffa3]+=_0x2b1fd5['data']:_0x8eb8d3['push']({'type':'text','add':'add'==_0x31ffa3?_0x2b1fd5['data']:'','remove':'remove'==_0x31ffa3?_0x2b1fd5['data']:''});else{if(this['_schema']['isObject'](_0x2b1fd5)){const _0x3b0baa=_0x2b1fd5;if(_0x1d864f&&_0x1d864f['type']['indexOf']('Container')>-0x1&&_0x8eb8d3['pop'](),'elementEnd'==_0x35e256['type'])continue;_0x1d864f&&_0x1d864f['type']==_0x31ffa3+'Object'&&_0x1d864f['element']['name']==_0x3b0baa['name']?_0x1d864f['quantity']++:_0x8eb8d3['push']({'type':_0x31ffa3+'Object','element':_0x3b0baa,'quantity':0x1}),_0x418f59['skip'](_0xa47811=>!('elementEnd'==_0xa47811['type']&&_0xa47811['item']==_0x2b1fd5));}else{if(this['_schema']['checkChild'](_0x2b1fd5,'$text')||_0x2b1fd5['is']('element','softBreak')){const _0x2bb589=_0x2b1fd5;if('add'==_0x31ffa3&&'elementStart'==_0x35e256['type']||'remove'==_0x31ffa3&&'elementEnd'==_0x35e256['type'])continue;if(_0x1d864f&&-0x1==_0x1d864f['type']['indexOf']('Container')){'text'==_0x1d864f['type']&&(_0x1d864f[_0x31ffa3]+='\x0a');continue;}let _0x3323f4;if(_0x3323f4='add'==_0x31ffa3?_0x2bb589['nextSibling']&&!this['_schema']['isObject'](_0x2bb589['nextSibling'])?_0x2bb589['nextSibling']:null:_0x2bb589['previousSibling']&&!this['_schema']['isObject'](_0x2bb589['previousSibling'])?_0x2bb589['previousSibling']:null,_0x2bb589['isEmpty']||_0x3323f4&&_0x3323f4['isEmpty']){const _0x4b2e1f=_0x3323f4&&_0x3323f4['isEmpty']?_0x3323f4:_0x2bb589;_0x1d864f&&_0x1d864f['type']==_0x31ffa3+'EmptyContainer'&&_0x1d864f['element']['name']==_0x4b2e1f['name']?_0x1d864f['quantity']++:_0x8eb8d3['push']({'type':_0x31ffa3+'EmptyContainer','element':_0x4b2e1f,'quantity':0x1});}else _0x8eb8d3['push']({'type':_0x31ffa3+'Container','element':_0x2bb589});}}}}}_resolveDescriptionItems(_0x19c2d9){const _0x520b31=this['_locale'],_0x1fb583=[],_0xe52bfc=[],_0x5e2cc2=[];for(const _0x1cc37c of _0x19c2d9)switch(_0x1cc37c['type']){case'text':if(_0x1cc37c['add']=_0x1cc37c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1cc37c['remove']=_0x1cc37c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1cc37c['add']&&''!=_0x1cc37c['remove']){_0x1fb583['push']({'type':'replace','content':Mt(_0x520b31,'REPLACE_TEXT',['\x22'+_0x1cc37c['remove']+'\x22','\x22'+_0x1cc37c['add']+'\x22'])});continue;}if(null!=_0x1cc37c['add']['match'](/^ +$/)){_0x1fb583['push']({'type':'insertion','content':Mt(_0x520b31,'*Insert:*\x20%0',Mt(_0x520b31,'ELEMENT_SPACE',_0x1cc37c['add']['length']))});continue;}if(null!=_0x1cc37c['remove']['match'](/^ +$/)){_0x1fb583['push']({'type':'deletion','content':Mt(_0x520b31,'*Remove:*\x20%0',Mt(_0x520b31,'ELEMENT_SPACE',_0x1cc37c['remove']['length']))});continue;}if(''!=_0x1cc37c['add']){_0x1fb583['push']({'type':'insertion','content':Mt(_0x520b31,'*Insert:*\x20%0','\x22'+_0x1cc37c['add']+'\x22')});continue;}_0x1fb583['push']({'type':'deletion','content':Mt(_0x520b31,'*Remove:*\x20%0','\x22'+_0x1cc37c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1fb583['push']({'type':'insertion','content':Mt(_0x520b31,'*Insert:*\x20%0',this['getItemLabel'](_0x1cc37c['element'],_0x1cc37c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1fb583['push']({'type':'deletion','content':Mt(_0x520b31,'*Remove:*\x20%0',this['getItemLabel'](_0x1cc37c['element'],_0x1cc37c['quantity']))});continue;case'addContainer':_0x1fb583['push']({'type':'insertion','content':Mt(_0x520b31,'*Split:*\x20%0',this['getItemLabel'](_0x1cc37c['element'],_0x1cc37c['quantity']))});continue;case'removeContainer':_0x1fb583['push']({'type':'deletion','content':Mt(_0x520b31,'*Merge:*\x20%0',this['getItemLabel'](_0x1cc37c['element'],_0x1cc37c['quantity']))});continue;case'addFormat':_0xe52bfc['push'](_0x1cc37c['key']);continue;case'removeFormat':_0x5e2cc2['push'](_0x1cc37c['key']);continue;default:_0x1fb583['push'](_0x1cc37c);}if(_0xe52bfc['length']){const _0x144be3=_0xe52bfc['map'](_0x43fc82=>this['_attributeLabels']['has'](_0x43fc82)?this['_attributeLabels']['get'](_0x43fc82):_0x43fc82)['join'](',\x20');_0x1fb583['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x144be3)});}if(_0x5e2cc2['length']){const _0x57b184=_0x5e2cc2['map'](_0x4b97d0=>this['_attributeLabels']['has'](_0x4b97d0)?this['_attributeLabels']['get'](_0x4b97d0):_0x4b97d0)['join'](',\x20');_0x1fb583['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x57b184)});}return _0x1fb583;}_handleCustomCallbackDescription(_0x8a5214){for(const _0x182289 of this['_customCallbacks']){const _0x2532a8=_0x182289(_0x8a5214);if(_0x2532a8&&'type'in _0x2532a8)return _0x2532a8;}}_handleAttributeSuggestionDescription(_0x699c72,_0x3debfb){const _0x24061a=_0x3debfb['data'],_0x237427=void 0x0===_0x24061a['newValue']?'removeFormat':'addFormat';_0x699c72['push']({'type':_0x237427,'key':_0x24061a['key']});}_handleRenameSuggestionDescription(_0xa25039,_0x2820fa){_0xa25039['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2820fa['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x221960,_0x104a42,_0x6c5e78){if(this['_addDescriptionItems'](_0x221960,_0x104a42),_0x6c5e78&&_0x6c5e78['getFirstRange']()&&!_0x104a42['getFirstRange']()['end']['isEqual'](_0x6c5e78['getFirstRange']()['start'])){const _0x3651ac=_0x221960[_0x221960['length']-0x1],_0x37b978='insertion'==_0x104a42['type']?'add':'remove';_0x3651ac&&'text'==_0x3651ac['type']&&(_0x3651ac[_0x37b978]+='\x0a');}}},wt=class extends _0x5cf544{afterInit(){const _0x374170=this['editor'],_0x309cd5=_0x374170['plugins']['get']('TrackChangesEditing');_0x374170['commands']['get']('showAIAssistant')&&_0x309cd5['enableCommand']('showAIAssistant');}},Ft=class extends _0x5cf544{afterInit(){const _0x1b9a2b=this['editor'],_0x1db18c=_0x1b9a2b['plugins']['get']('TrackChangesEditing');_0x1b9a2b['commands']['get']('toggleAi')&&_0x1db18c['enableCommand']('toggleAi');}},Bt=class extends _0x5cf544{afterInit(){const _0x54a557=this['editor'],_0x3f3e77=_0x54a557['plugins']['get']('TrackChangesEditing');_0x54a557['commands']['get']('aiQuickAction')&&_0x3f3e77['enableCommand']('aiQuickAction');}},vt=class extends _0x5cf544{afterInit(){const _0x243caf=this['editor'],_0x37a87d=_0x243caf['locale'];if(!_0x243caf['plugins']['has']('AlignmentEditing'))return;const _0x419398=_0x243caf['plugins']['get']('TrackChangesEditing');_0x419398['enableDefaultAttributesIntegration']('alignment'),_0x419398['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x37a87d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x49ec15=this['editor'],_0x1016c8=_0x49ec15['locale'];_0x49ec15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f2ba6=>{if('formatBlock'!=_0x2f2ba6['type'])return;const {data:_0x4da6ba}=_0x2f2ba6;if(_0x4da6ba&&'alignment'==_0x4da6ba['commandName']){const _0x367aba=_0x4da6ba['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x1016c8,'*Format:*\x20%0',function(_0x59d153){switch(_0x59d153){case'left':return Mt(_0x1016c8,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x1016c8,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x1016c8,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x1016c8,'FORMAT_JUSTIFY_TEXT');}}(_0x367aba))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x5cf544{afterInit(){const _0x24039b=this['editor'],_0x18c935=_0x24039b['plugins']['get']('TrackChangesEditing'),_0x4ea090=_0x24039b['locale'];for(const _0x24eb8c of Dt){if(!_0x24039b['plugins']['has'](_0x24eb8c))continue;const _0x198e1e=_0x24eb8c['slice'](0x0,-0x7)['toLowerCase'](),_0x547856='FORMAT_'+_0x198e1e['toUpperCase']();_0x18c935['enableDefaultAttributesIntegration'](_0x198e1e),_0x18c935['descriptionFactory']['registerAttributeLabel'](_0x198e1e,Mt(_0x4ea090,_0x547856));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x42a82e=this['editor'],_0x510d7d=_0x42a82e['locale'],_0x436d85=_0x42a82e['plugins']['get']('TrackChangesEditing');function _0x20077f(_0x35d728,_0x5605b1){_0x436d85['descriptionFactory']['registerDescriptionCallback'](_0x541f5e=>{if('formatInline'!=_0x541f5e['type'])return;const {data:_0x5b5a0e}=_0x541f5e;return _0x5b5a0e&&_0x5b5a0e['commandName']===_0x35d728?_0x5b5a0e['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x510d7d,'*Format:*\x20%0',_0x5605b1)}:{'type':'format','content':Mt(_0x510d7d,'*Remove\x20format:*\x20%0',_0x5605b1)}:void 0x0;});}_0x20077f('bold',Mt(_0x510d7d,'FORMAT_BOLD')),_0x20077f('italic',Mt(_0x510d7d,'FORMAT_ITALIC')),_0x20077f('underline',Mt(_0x510d7d,'FORMAT_UNDERLINE')),_0x20077f('code',Mt(_0x510d7d,'FORMAT_CODE')),_0x20077f('strikethrough',Mt(_0x510d7d,'FORMAT_STRIKETHROUGH')),_0x20077f('subscript',Mt(_0x510d7d,'FORMAT_SUBSCRIPT')),_0x20077f('superscript',Mt(_0x510d7d,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x5cf544{afterInit(){const _0x59852e=this['editor'],_0x5de1bc=_0x59852e['locale'];if(!_0x59852e['plugins']['has']('BlockQuoteEditing'))return;const _0x155228=_0x59852e['plugins']['get']('TrackChangesEditing'),_0x4a55a7=this['editor']['commands']['get']('blockQuote');_0x155228['enableCommand']('blockQuote',(_0x3d4a0b,_0x5cc87b={})=>{const _0x59da9f=this['editor']['model']['document']['selection'],_0x5ba91a=_0x5cc87b&&void 0x0!==_0x5cc87b['forceValue']?_0x5cc87b['forceValue']:!_0x4a55a7['value'];let _0x52d462=[];if(_0x5ba91a){const _0x4923d8=Array['from'](_0x59da9f['getSelectedBlocks']())['filter'](_0x1e00fb=>xt(_0x1e00fb)||function(_0x47b172,_0x12765b){const _0x244535=_0x12765b['createContext'](_0x47b172['parent']);return!!_0x12765b['checkChild'](_0x244535,'blockQuote')&&!!_0x12765b['checkChild'](_0x244535['push']('blockQuote'),_0x47b172);}(_0x1e00fb,this['editor']['model']['schema']));_0x52d462=bt(_0x4923d8,_0x59852e['model']);}else{const _0x4b8717=Array['from'](_0x59da9f['getSelectedBlocks']())['filter'](_0x503266=>xt(_0x503266));_0x52d462=bt(_0x4b8717,_0x59852e['model']);}_0x59852e['model']['change'](()=>{for(const _0x2ef0f3 of _0x52d462)_0x155228['markBlockFormat'](_0x2ef0f3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5ba91a}]});});}),_0x155228['descriptionFactory']['registerDescriptionCallback'](_0x5dbbde=>{const {data:_0x3c37c4}=_0x5dbbde;if(_0x3c37c4&&'blockQuote'==_0x3c37c4['commandName']){const _0x31fe8a=Mt(_0x5de1bc,'ELEMENT_BLOCK_QUOTE');return _0x3c37c4['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x5de1bc,'*Set\x20format:*\x20%0',_0x31fe8a)}:{'type':'format','content':Mt(_0x5de1bc,'*Remove\x20format:*\x20%0',_0x31fe8a)};}});}};function xt(_0x1ee31e){return'blockQuote'==_0x1ee31e['parent']['name'];}var Gt=class extends _0x5cf544{afterInit(){const _0x39b6d2=this['editor'],_0x3d708b=_0x39b6d2['locale'],_0x54b265=_0x39b6d2['plugins']['get']('TrackChangesEditing');_0x39b6d2['plugins']['has']('BookmarkEditing')&&(_0x54b265['enableCommand']('insertBookmark'),_0x54b265['enableDefaultAttributesIntegration']('updateBookmark'),_0x54b265['descriptionFactory']['registerDescriptionCallback'](_0x47a809=>{if('insertion'!=_0x47a809['type']&&'deletion'!=_0x47a809['type']&&'attribute'!=_0x47a809['type'])return;const _0x3c2ffb=_0x47a809['getContainedElement']();if(null==_0x3c2ffb)return;if(!_0x3c2ffb['is']('element','bookmark'))return;const _0x33727b=_0x3c2ffb['getAttribute']('bookmarkId');if('insertion'==_0x47a809['type'])return{'type':'insertion','content':Mt(_0x3d708b,'*Insert:*\x20%0','\x22'+_0x33727b+'\x22\x20'+Mt(_0x3d708b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x47a809['type'])return{'type':'deletion','content':Mt(_0x3d708b,'*Remove:*\x20%0','\x22'+_0x33727b+'\x22\x20'+Mt(_0x3d708b,'ELEMENT_BOOKMARK'))};const {data:_0xe3936e}=_0x47a809;return _0xe3936e&&'bookmarkId'==_0xe3936e['key']?{'type':'format','content':Mt(_0x3d708b,'*Set\x20bookmark:*\x20%0','\x22'+_0xe3936e['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x5cf544{afterInit(){const _0x1ec321=this['editor'];_0x1ec321['plugins']['has']('CaseChange')&&(_0x1ec321['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1ec321['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1ec321['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x5cf544{afterInit(){const _0xb9b321=this['editor'];_0xb9b321['commands']['get']('ckbox')&&_0xb9b321['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x5cf544{static get requires(){return[ht,gt];}constructor(_0x5c3648){super(_0x5c3648),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x245d35=this['editor'],_0x213b54=_0x245d35['plugins']['get']('ClipboardMarkersUtils'),_0x1a9151=_0x245d35['plugins']['get'](gt);_0x213b54['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x1a9151['on']('outputTransformation',(_0x2ee171,_0x21b59f)=>{const _0x3575ee=this['_getSuggestionEntries'](_0x21b59f);for(const [_0x47096e,_0x320dca]of _0x21b59f['content']['markers']){const _0x4c2c20=rt['_fromRangeInDocumentFragment'](_0x320dca,_0x245d35['model']);function _0x11a948(){_0x4c2c20['detach'](),_0x21b59f['content']['markers']['delete'](_0x47096e);}_0x4c2c20['on']('change:drop',_0x11a948),(_0x47096e['startsWith']('suggestion:')||_0x47096e['startsWith']('comment:'))&&_0x4c2c20['on']('change:range',()=>{_0x4c2c20['isCollapsed']&&_0x11a948();}),_0x21b59f['content']['markers']['set'](_0x47096e,_0x4c2c20);}const _0x5cc877=_0x3575ee['filter'](_0x3d4822=>'deletion'===_0x3d4822['meta']['type'])['map'](_0x4ecad=>_0x4ecad['modelRange']);if(this['_shouldSkipDeletions'](_0x5cc877,_0x21b59f['content']))return[..._0x3575ee]['forEach'](_0x11cc9d=>{_0x21b59f['content']['markers']['get'](_0x11cc9d['markerName'])['detach'](),_0x21b59f['content']['markers']['delete'](_0x11cc9d['markerName']);}),void this['_restoreRegularRanges'](_0x21b59f['content']['markers']);[..._0x3575ee]['forEach'](_0x3cb632=>{const _0x8d4596=_0x245d35['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x3cb632['meta']['type'],_0x3cb632['meta']['subType'],'accept'),{markerName:_0x1e078f,meta:_0x147626}=_0x3cb632;if(_0x21b59f['content']['markers']['has'](_0x1e078f)){switch(_0x147626['type']){case'deletion':if('tableRow'===_0x147626['subType']||'tableColumn'===_0x147626['subType']){if(!_0x245d35['plugins']['has']('TableUtils'))break;const _0xb78ae0=_0x245d35['plugins']['get']('TableUtils'),_0x1deaf7=_0xb78ae0['getSelectionAffectedTableCells'](_0x245d35['model']['createSelection'](_0x21b59f['content']['markers']['get'](_0x1e078f))),_0x32c577=_0x1deaf7[0x0]['findAncestor']('table');if('tableRow'===_0x147626['subType']){const {first:_0x15ae58,last:_0x13c164}=_0xb78ae0['getRowIndexes'](_0x1deaf7);_0xb78ae0['removeRows'](_0x32c577,{'at':_0x15ae58,'rows':_0x13c164-_0x15ae58+0x1});}else{const {first:_0x14176d,last:_0x1a59f6}=_0xb78ae0['getColumnIndexes'](_0x1deaf7);_0xb78ae0['removeColumns'](_0x32c577,{'at':_0x14176d,'columns':_0x1a59f6-_0x14176d+0x1});}break;}_0x8d4596([_0x21b59f['content']['markers']['get'](_0x1e078f)]);}_0x21b59f['content']['markers']['has'](_0x1e078f)&&(_0x21b59f['content']['markers']['get'](_0x1e078f)['detach'](),_0x21b59f['content']['markers']['delete'](_0x1e078f));}}),this['_restoreRegularRanges'](_0x21b59f['content']['markers']);});}_getSuggestionEntries(_0x2af4f1){const _0x660454=_0xe983cf=>'dragstart'===_0x2af4f1['method']?_0xe983cf['split'](':')['slice'](0x0,-0x1)['join'](':'):_0xe983cf;return Array['from'](_0x2af4f1['content']['markers'])['map'](([_0x1f9e64,_0x5a84e2])=>({'markerName':_0x1f9e64,'modelRange':_0x5a84e2,'meta':tt(_0x660454(_0x1f9e64))}))['filter'](({meta:_0x32c551})=>'suggestion'===_0x32c551['group']);}_shouldSkipDeletions(_0x5ba430,_0xe6fb98){if(!_0x5ba430['length'])return!0x1;let _0x5ae711=[this['editor']['model']['createRangeIn'](_0xe6fb98)];for(const _0x2ba690 of _0x5ba430)_0x5ae711=_0x5ae711['flatMap'](_0x5c61a4=>_0x5c61a4['getDifference'](_0x2ba690));return!_0x5ae711['some'](_0x5f2727=>this['editor']['model']['hasContent'](_0x5f2727,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x2ac7b7){[..._0x2ac7b7['keys']()]['forEach'](_0x4538b6=>{const _0x1c03b8=_0x2ac7b7['get'](_0x4538b6);_0x1c03b8['detach'](),_0x2ac7b7['set'](_0x4538b6,_0x1c03b8['toRange']());});}},Vt=class extends _0x5cf544{afterInit(){const _0x532e03=this['editor'];if(!_0x532e03['plugins']['has']('CodeBlock'))return;const _0x56b8d8=_0x532e03['plugins']['get']('TrackChangesEditing'),_0x327b6b=_0x532e03['locale'],_0x56ed43=_0x532e03['config']['get']('codeBlock')['languages'],_0x3345c2=_0x532e03['commands']['get']('codeBlock');_0x56b8d8['enableCommand']('indentCodeBlock'),_0x56b8d8['enableCommand']('outdentCodeBlock'),_0x56b8d8['enableCommand']('codeBlock',(_0x19b876,_0x28f10d={})=>{const _0x4ee62b=_0x532e03['model'],_0x1143bb=_0x532e03['model']['document']['selection'],_0x5a04da=_0x28f10d&&void 0x0!==_0x28f10d['forceValue']?_0x28f10d['forceValue']:!_0x3345c2['value'];let _0x10853a;_0x28f10d['language']||(_0x28f10d['language']=_0x56ed43[0x0]['language']),_0x10853a=_0x5a04da?Array['from'](_0x1143bb['getSelectedBlocks']())['filter'](_0x489a3d=>{return jt(_0x489a3d)||(_0x4e3b32=_0x489a3d,_0x5692e8=_0x4ee62b['schema'],!_0x4e3b32['is']('rootElement')&&!_0x5692e8['isLimit'](_0x4e3b32)&&_0x5692e8['checkChild'](_0x4e3b32['parent'],'codeBlock'));var _0x4e3b32,_0x5692e8;}):Array['from'](_0x1143bb['getSelectedBlocks']())['filter'](_0x46531f=>jt(_0x46531f));const _0x16ec82=bt(_0x10853a,_0x4ee62b);_0x4ee62b['change'](()=>{for(const _0x204c24 of _0x16ec82)_0x56b8d8['markBlockFormat'](_0x204c24,{'commandName':'codeBlock','commandParams':[{..._0x28f10d,'forceValue':_0x5a04da}],'formatGroupId':'blockName'});});}),(_0x56b8d8['descriptionFactory']['registerElementLabel']('codeBlock',_0x98e09b=>Mt(_0x327b6b,'ELEMENT_CODE_BLOCK',_0x98e09b)),_0x56b8d8['descriptionFactory']['registerDescriptionCallback'](_0x536afa=>{if('formatBlock'!=_0x536afa['type'])return;const _0x2fcab9=_0x327b6b['t'],{data:_0x366f05}=_0x536afa;if(!_0x366f05||'codeBlock'!=_0x366f05['commandName'])return;const _0x45b65f=_0x366f05['commandParams'][0x0]['language'],_0x232747=_0x2fcab9(_0x56ed43['find'](_0x14f71d=>_0x14f71d['language']===_0x45b65f)['label'])['toLowerCase']();return _0x366f05['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x327b6b,'*Set\x20format:*\x20%0',Mt(_0x327b6b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x232747+')')}:{'type':'format','content':Mt(_0x327b6b,'*Remove\x20format:*\x20%0',Mt(_0x327b6b,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x286e0c){return'codeBlock'==_0x286e0c['name'];}var zt=class extends _0x5cf544{afterInit(){const _0x25a564=this['editor'];_0x25a564['plugins']['has']('CommentsEditing')&&_0x25a564['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x5cf544{static get requires(){return[ft];}init(){const _0x1f1d2e=this['editor'],_0x4dcd6c=_0x1f1d2e['plugins']['get']('TrackChangesEditing');_0x4dcd6c['enableCommand']('delete');const _0x2f2202=_0x1f1d2e['commands']['get']('deleteForward');_0x4dcd6c['enableCommand']('deleteForward',(_0x3329d8,_0x4fefef={})=>{const _0x5501f0=_0x1f1d2e['model']['createSelection'](_0x1f1d2e['model']['document']['selection']);_0x5501f0['isCollapsed']&&_0x1f1d2e['model']['modifySelection'](_0x5501f0,{'direction':'forward','unit':_0x4fefef['unit']});const _0x23a994=_0x5501f0['getFirstRange'](),_0x2a0920=rt['fromRange'](_0x23a994);let _0x2745dc;_0x3329d8(_0x4fefef),_0x2745dc='$graveyard'==_0x2a0920['root']['rootName']?_0x1f1d2e['model']['createRange'](_0x23a994['start']):_0x1f1d2e['model']['createRange'](_0x2a0920['start'],_0x2a0920['end']),_0x2a0920['detach'](),_0x1f1d2e['model']['enqueueChange'](_0x2f2202['buffer']['batch'],_0x4435e3=>{_0x2f2202['buffer']['lock'](),_0x4435e3['setSelection'](_0x4435e3['createRange'](_0x2745dc['end'])),_0x2f2202['buffer']['unlock']();});});}},Xt=class extends _0x5cf544{afterInit(){const _0x3e0218=this['editor'];if(!_0x3e0218['plugins']['has']('ListEditing'))return;const _0xcab2a2=_0x3e0218['locale'],_0xf5e1c3=_0x3e0218['plugins']['get']('TrackChangesEditing'),_0x1f93e5=_0x3e0218['plugins']['has']('TodoListEditing'),_0x1ae410=!!_0x3e0218['config']['get']('list.multiBlock');function _0x5d76b8(_0x2a4fe1){return{'type':'format','content':''+Mt(_0xcab2a2,'*Set\x20format:*\x20%0',_0x2a4fe1)};}function _0x3f7ee7(_0x31b90b){return{'type':'format','content':''+Mt(_0xcab2a2,'*Remove\x20format:*\x20%0',_0x31b90b)};}_0xf5e1c3['enableDefaultAttributesIntegration']('numberedList'),_0xf5e1c3['enableDefaultAttributesIntegration']('bulletedList'),_0xf5e1c3['enableDefaultAttributesIntegration']('customNumberedList'),_0xf5e1c3['enableDefaultAttributesIntegration']('customBulletedList'),_0xf5e1c3['enableDefaultAttributesIntegration']('indentList'),_0xf5e1c3['enableDefaultAttributesIntegration']('outdentList'),_0xf5e1c3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xf5e1c3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1ae410&&(_0xf5e1c3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xf5e1c3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1f93e5&&(_0xf5e1c3['enableDefaultAttributesIntegration']('todoList'),_0xf5e1c3['enableDefaultAttributesIntegration']('checkTodoList'),_0xf5e1c3['descriptionFactory']['registerDescriptionCallback'](_0x326e00=>{const {data:_0x16dc22}=_0x326e00;if(_0x16dc22&&'todoListChecked'==_0x16dc22['key'])return{'type':'format','content':_0x16dc22['newValue']?Mt(_0xcab2a2,'*Check\x20item*'):Mt(_0xcab2a2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1c54ce=>{if(_0x1c54ce['batch']['isUndo'])return!0x1;let _0x44a9ea=!0x1;const _0x46d780=_0xf5e1c3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7adc4c=>'todoListChecked'===_0xf5e1c3['_getAttributeKey'](_0x7adc4c));for(const _0x26a6e4 of _0x46d780)'todo'!=_0x26a6e4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xf5e1c3['_findSuggestions'](_0x26a6e4['getFirstRange'](),'attribute')['find'](_0x3a4120=>'listType'===_0xf5e1c3['_getAttributeKey'](_0x3a4120['suggestion']))||(_0x1c54ce['removeMarker'](_0x26a6e4['getFirstMarker']()),_0x44a9ea=!0x0));return _0x44a9ea;})),_0xf5e1c3['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0xcab2a2,'FORMAT_INDENT'));const _0x75ee30={'type':'format','content':''};_0xf5e1c3['descriptionFactory']['registerDescriptionCallback'](_0x41751d=>{const {data:_0x39bb0a}=_0x41751d;if(!_0x39bb0a||'listType'!=_0x39bb0a['key'])return;let _0x4eebd7=_0x41751d['head'];for(;_0x4eebd7;){if(_0x4eebd7['data']&&(('listStyle'==_0x4eebd7['data']['key']||'listMarkerStyle'==_0x4eebd7['data']['key'])&&(_0x4eebd7['data']['newValue']&&'default'!=_0x4eebd7['data']['newValue']||'default'!=_0x4eebd7['data']['oldValue']&&!_0x39bb0a['newValue'])||!_0x1ae410&&'$elementName'==_0x4eebd7['data']['key']))return _0x75ee30;_0x4eebd7=_0x4eebd7['next'];}if(null==_0x39bb0a['newValue'])switch(_0x39bb0a['oldValue']){case'bulleted':return _0x3f7ee7(Mt(_0xcab2a2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f7ee7(Mt(_0xcab2a2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f7ee7(Mt(_0xcab2a2,'ELEMENT_TODO_LIST'));}switch(_0x39bb0a['newValue']){case'bulleted':return _0x5d76b8(Mt(_0xcab2a2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d76b8(Mt(_0xcab2a2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d76b8(Mt(_0xcab2a2,'ELEMENT_TODO_LIST'));}}),_0xf5e1c3['descriptionFactory']['registerDescriptionCallback'](_0x1c3af4=>{const {data:_0x29a71b}=_0x1c3af4;if(_0x29a71b&&'listIndent'==_0x29a71b['key'])return null==_0x29a71b['newValue']||null==_0x29a71b['oldValue']&&0x0==_0x29a71b['newValue']?_0x75ee30:void 0x0;}),_0xf5e1c3['descriptionFactory']['registerDescriptionCallback'](_0x26510c=>{if('attribute'!=_0x26510c['type'])return;const {data:_0x2d2406}=_0x26510c;if(!_0x2d2406||'listItemId'!=_0x2d2406['key'])return;const _0x257de5=qt(_0x26510c);return'newValue'==_0x257de5?{'type':'format','content':Mt(_0xcab2a2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x257de5?{'type':'format','content':Mt(_0xcab2a2,'*Split:*\x20list\x20item')}:_0x75ee30;}),_0x3e0218['model']['document']['registerPostFixer'](_0x4b8671=>this['listItemIdFixer'](_0x4b8671)),_0x3e0218['model']['document']['registerPostFixer'](_0x4e1b3d=>this['noTrackChangesFixer'](_0x4e1b3d)),_0x3e0218['model']['document']['on']('change:data',(_0x385146,_0x3b29a3)=>{if(_0x3b29a3['isUndo']||!_0x3b29a3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x47b180){if(_0x47b180['batch']['isUndo']||!_0x47b180['batch']['isLocal'])return!0x1;let _0x14929c=!0x1;const _0x435646=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d5ffd=>_0x3d5ffd['data']&&'listItemId'==_0x3d5ffd['data']['key'])['filter'](_0x5095ec=>_0x5095ec['data']['newValue']&&_0x5095ec['data']['oldValue']);for(const _0xa30e7a of _0x435646)qt(_0xa30e7a)||(_0x47b180['removeMarker'](_0xa30e7a['getFirstMarker']()),_0x14929c=!0x0);return _0x14929c;}['noTrackChangesFixer'](_0x569166){if(_0x569166['batch']['isUndo']||!_0x569166['batch']['isLocal'])return!0x1;const _0x2b3ea8=this['editor']['model']['document']['differ'],_0x1b472b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1b472b['trackChangesCommand']['value'])return!0x1;let _0x41fa5b=!0x1;const _0x371b79=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0xa6ac18=_0x2b3ea8['getChanges']()['filter'](_0x33b3ab=>'attribute'==_0x33b3ab['type'])['filter'](_0x34e5ac=>_0x371b79['has'](_0x34e5ac['attributeKey']));if(0x0==_0xa6ac18['length'])return _0x41fa5b;const _0x27f13b=new Set(_0x2b3ea8['getMarkersToAdd']()['filter'](_0x26982d=>{if(!_0x26982d['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x227e83=tt(_0x26982d['name'])['subType']['split']('|')[0x0];return _0x371b79['has'](_0x227e83);})['map'](_0x299865=>tt(_0x299865['name'])['id']));for(const _0x3ec82e of _0xa6ac18){const _0xfa4b14=_0x1b472b['_findSuggestions'](_0x3ec82e['range'],'attribute')['filter'](_0xefd9e5=>{if(_0xefd9e5['meta']['isNextTo'])return!0x1;if(_0x27f13b['has'](_0xefd9e5['suggestion']['id']))return!0x1;const _0x2ef361=_0x1b472b['_getAttributeKey'](_0xefd9e5['suggestion']);return _0x371b79['has'](_0x2ef361);})['map'](_0x2babcf=>_0x2babcf['suggestion']);if(_0xfa4b14['length']){for(const _0x38adf9 of _0xfa4b14)_0x569166['removeMarker'](_0x38adf9['getFirstMarker']());_0x41fa5b=!0x0;}}return _0x41fa5b;}['assureChains'](){const _0xc6b0ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d98fd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x316b6d;const _0x91c15d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1a746a=>{if(_0x1a746a['data']['oldRange']||!_0x1a746a['data']['newRange'])return null;if(!_0x1a746a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1a7079}=tt(_0x1a746a['name']);if(!_0xc6b0ac['hasSuggestion'](_0x1a7079))return null;const _0x1798dc=_0xc6b0ac['getSuggestion'](_0x1a7079);return _0x2d98fd['includes'](_0x1798dc['data']['key']);})['map'](_0x43d5b4=>{const {id:_0xc96906}=tt(_0x43d5b4['name']),_0x5aa729=_0xc6b0ac['getSuggestion'](_0xc96906);return _0x316b6d=_0x5aa729['attributes']['groupId'],_0x5aa729['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x91c15d['size'])return;const _0x369a75=_0xc6b0ac['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49e9ae=>'attribute'==_0x49e9ae['type']&&_0x49e9ae['data']&&_0x2d98fd['includes'](_0x49e9ae['data']['key'])&&_0x49e9ae['attributes']['groupId']!=_0x316b6d)['map'](_0x2b1c5e=>({'listItem':_0x2b1c5e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2b1c5e['attributes']['groupId']})),_0x555791=new Set();for(const {groupId:_0x15d117,listItem:_0x30a96a}of _0x369a75)_0x91c15d['has'](_0x30a96a)&&_0x555791['add'](_0x15d117);for(const _0x4e3d97 of _0xc6b0ac['getSuggestions']())_0x555791['has'](_0x4e3d97['attributes']['groupId'])&&_0x4e3d97['setAttribute']('groupId',_0x316b6d);}_supportLegacySuggestions(){const _0x1ac4a0=this['editor'],_0x5bb945=_0x1ac4a0['locale'],_0x582d14=_0x1ac4a0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x582d14['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x255914,_0x570af5){const _0x68ae1c=[];for(let _0x472a64 of _0x255914)_0x472a64['start']['nodeAfter']===_0x472a64['end']['parent']&&(_0x472a64=_0x1ac4a0['model']['createRange'](_0x1ac4a0['model']['createPositionAt'](_0x472a64['start']['nodeAfter'],0x0))),_0x68ae1c['push'](_0x472a64);_0x1ac4a0['model']['change'](_0x1571fd=>{const _0x12cc21=_0x1ac4a0['model']['document']['selection'],_0x39c080=Array['from'](_0x12cc21['getRanges']())['map'](_0x5759e1=>rt['fromRange'](_0x5759e1));_0x1571fd['setSelection'](_0x68ae1c),_0x1ac4a0['commands']['get'](_0x570af5['commandName'])['refresh'](),_0x570af5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1ac4a0['execute'](_0x570af5['commandName'],..._0x570af5['commandParams']),_0x1571fd['setSelection'](_0x39c080);for(const _0x3fade4 of _0x39c080)_0x3fade4['detach']();});}),_0x582d14['descriptionFactory']['registerElementLabel'](function(_0x2a6665){const _0xffbca=!_0x1ac4a0['model']['schema']['isObject'](_0x2a6665),_0x4e207c=_0x2a6665['previousSibling'],_0x189163=_0x2a6665['nextSibling'],_0x31a918=_0x2a6665['getAttribute']('listItemId'),_0x11fbbe=!_0x4e207c||_0x4e207c['getAttribute']('listItemId')!==_0x31a918,_0x405945=!_0x189163||_0x189163['getAttribute']('listItemId')!==_0x31a918;return _0xffbca&&Boolean(_0x31a918)&&_0x11fbbe&&_0x405945;},_0x34dd50=>Mt(_0x5bb945,'ELEMENT_LIST_ITEM',_0x34dd50));}_registerLegacyDescription(){const _0x1855e0=this['editor'],_0x40e4bc=_0x1855e0['locale'];function _0x2b1c15(_0x264696){const _0x1a30c0=_0x1855e0['commands']['get']('bulletedList')['value'],_0x5737c0=_0x1855e0['commands']['get']('numberedList')['value'];return'numberedList'===_0x264696?_0x1a30c0:_0x5737c0;}_0x1855e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3fa0a6){if('formatBlock'!=_0x3fa0a6['type'])return;const {data:_0x156015}=_0x3fa0a6;if(!_0x156015)return;let _0xa038aa,_0x5a2349,_0x5aa3ca,_0x3ce526;switch(_0x156015['commandName']){case'bulletedList':_0x5aa3ca=_0x156015['commandParams'][0x0]['forceValue'],_0x3ce526=_0x2b1c15(_0x156015['commandName']),_0xa038aa=_0x5aa3ca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ce526&&_0x1855e0['config']['get']('list.multiBlock')||(_0xa038aa='*Change\x20to:*\x20%0'),_0x5a2349={'type':'format','content':Mt(_0x40e4bc,_0xa038aa,Mt(_0x40e4bc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5aa3ca=_0x156015['commandParams'][0x0]['forceValue'],_0x3ce526=_0x2b1c15(_0x156015['commandName']),_0xa038aa=_0x5aa3ca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ce526&&_0x1855e0['config']['get']('list.multiBlock')||(_0xa038aa='*Change\x20to:*\x20%0'),_0x5a2349={'type':'format','content':Mt(_0x40e4bc,_0xa038aa,Mt(_0x40e4bc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xa038aa='*Indent:*\x20%0',_0x5a2349={'type':'format','content':Mt(_0x40e4bc,_0xa038aa,Mt(_0x40e4bc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xa038aa=function(_0x5e9f3b){const _0x5d221d=_0x5e9f3b['getFirstRange']();let _0x2f90b8=_0x5d221d['start']['nodeAfter'];for(;_0x2f90b8&&_0x5d221d['containsItem'](_0x2f90b8);){if(_0x2f90b8['getAttribute']('listIndent')>0x0)return!0x1;_0x2f90b8=_0x2f90b8['nextSibling'];}return!0x0;}(_0x3fa0a6)?Mt(_0x40e4bc,'*Format:*\x20remove\x20from\x20%0',Mt(_0x40e4bc,function(_0x5246f0){return'ELEMENT_'+_0x5246f0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3fa0a6))):Mt(_0x40e4bc,'*Outdent:*\x20%0',Mt(_0x40e4bc,'ELEMENT_LIST_ITEM')),_0x5a2349={'type':'format','content':_0xa038aa};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x156015['multipleBlocks']&&(_0xa038aa='*Merge:*\x20%0',_0x5a2349={'type':'deletion','content':Mt(_0x40e4bc,_0xa038aa,Mt(_0x40e4bc,'ELEMENT_LIST_ITEM'))});}return _0x5a2349;});}};function qt(_0x175848){let _0x259cce=_0x175848['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x259cce;){const _0x1435ec=_0x259cce['getAttribute']('listItemId');if(!_0x1435ec)return!0x1;if(_0x1435ec==_0x175848['data']['newValue'])return'newValue';if(_0x1435ec==_0x175848['data']['oldValue'])return'oldValue';_0x259cce=_0x259cce['previousSibling'];}return!0x1;}var Yt=class extends _0x5cf544{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x86c0a6=this['editor']['config']['get']('list.properties'),_0x34157f=this['editor']['plugins']['get']('TrackChangesEditing');_0x86c0a6['styles']&&_0x34157f['enableDefaultAttributesIntegration']('listStyle'),_0x86c0a6['reversed']&&_0x34157f['enableDefaultAttributesIntegration']('listReversed'),_0x86c0a6['startIndex']&&_0x34157f['enableDefaultAttributesIntegration']('listStart');const _0x56f3db={'type':'format','content':''};_0x34157f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x104561=this['editor']['locale'];_0x34157f['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x104561,'FORMAT_LIST_REVERSED')),_0x34157f['descriptionFactory']['registerDescriptionCallback'](_0x56b1d6=>{const {data:_0x5b3135}=_0x56b1d6;if(_0x5b3135&&'listReversed'==_0x5b3135['key'])return null==_0x5b3135['newValue']||0x0==_0x5b3135['newValue']&&null==_0x5b3135['oldValue']?_0x56f3db:void 0x0;}),_0x34157f['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x104561,'FORMAT_LIST_START')),_0x34157f['descriptionFactory']['registerDescriptionCallback'](_0xb22c96=>{const {data:_0x134f4a}=_0xb22c96;if(_0x134f4a&&'listStart'==_0x134f4a['key'])return null==_0x134f4a['newValue']||0x1==_0x134f4a['newValue']&&null==_0x134f4a['oldValue']?_0x56f3db:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x735ad4=>{if(_0x735ad4['batch']['isUndo'])return!0x1;let _0x58c7a6=!0x1;const _0xd8a3a=_0x34157f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c728a=>{const _0x143318=_0x34157f['_getAttributeKey'](_0x4c728a);return'listStart'==_0x143318||'listReversed'==_0x143318;});for(const _0x1aac41 of _0xd8a3a){const _0x4b03e3=_0x1aac41['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x4b03e3&&'customNumbered'!=_0x4b03e3&&(_0x34157f['_findSuggestions'](_0x1aac41['getFirstRange'](),'attribute')['find'](_0x4abce7=>'listType'==_0x34157f['_getAttributeKey'](_0x4abce7['suggestion']))||(_0x735ad4['removeMarker'](_0x1aac41['getFirstMarker']()),_0x58c7a6=!0x0));}return _0x58c7a6;}),this['_registerLegacyDescription']();}handleDescriptions(_0x2b4a78){const _0x4e8bf9=this['editor']['locale'],{data:_0x12cfbc}=_0x2b4a78,_0x392055={'type':'format','content':''};if(!_0x12cfbc||'listStyle'!=_0x12cfbc['key'])return;if(!_0x12cfbc['oldValue'])return'default'==_0x12cfbc['newValue']?_0x392055:{'type':'format','content':''+Mt(_0x4e8bf9,'*Set\x20format:*\x20%0',Mt(_0x4e8bf9,this['_getTranslationKeyForListStyle'](_0x12cfbc['newValue'])))};if(!_0x12cfbc['newValue']){if('default'==_0x12cfbc['oldValue'])return _0x392055;let _0x1c7b53=_0x2b4a78['head'];for(;_0x1c7b53;){if(_0x1c7b53['data']&&'listType'==_0x1c7b53['data']['key']&&_0x1c7b53['data']['newValue'])return _0x392055;_0x1c7b53=_0x1c7b53['next'];}return{'type':'format','content':''+Mt(_0x4e8bf9,'*Remove\x20format:*\x20%0',Mt(_0x4e8bf9,this['_getTranslationKeyForListStyle'](_0x12cfbc['oldValue'])))};}if('default'!=_0x12cfbc['newValue'])return{'type':'format','content':''+Mt(_0x4e8bf9,'*Set\x20format:*\x20%0',Mt(_0x4e8bf9,this['_getTranslationKeyForListStyle'](_0x12cfbc['newValue'])))};let _0x56f86d=_0x2b4a78['head'];for(;_0x56f86d;){if(_0x56f86d['data']&&'listType'==_0x56f86d['data']['key']&&_0x56f86d['data']['newValue']&&_0x56f86d['data']['oldValue'])return _0x392055;_0x56f86d=_0x56f86d['next'];}return{'type':'format','content':Mt(_0x4e8bf9,'*Set\x20format:*\x20%0',Mt(_0x4e8bf9,'ELEMENT_'+_0x2b4a78['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x497451=this['editor'],_0x209567=_0x497451['locale'];_0x497451['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274f9=>{if('formatBlock'!=_0x274f9['type'])return;const {data:_0x599610}=_0x274f9;if(!_0x599610)return;let _0x5ae69f,_0x48db37;switch(_0x599610['commandName']){case'listStyle':_0x5ae69f='*Change\x20to:*\x20%0',_0x48db37={'type':'format','content':Mt(_0x209567,_0x5ae69f,Mt(_0x209567,this['_getTranslationKeyForListStyle'](_0x599610['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5ae69f=_0x599610['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x48db37={'type':'format','content':Mt(_0x209567,_0x5ae69f)};break;case'listStart':_0x5ae69f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x48db37={'type':'format','content':Mt(_0x209567,_0x5ae69f,_0x599610['commandParams'][0x0]['startIndex'])};}return _0x48db37;});}_getTranslationKeyForListStyle(_0x631f87){return'ELEMENT_'+(_0x4da04b=_0x631f87,Qt['includes'](_0x4da04b)?'bulleted':Zt['includes'](_0x4da04b)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x631f87['toUpperCase']()['replace'](/-/g,'_');var _0x4da04b;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x5cf544{afterInit(){const _0xe3c715=this['editor'];_0xe3c715['commands']['get']('emoji')&&_0xe3c715['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x5cf544{static get requires(){return[Et];}init(){const _0x3631cb=this['editor'],_0x1d0644=_0x3631cb['plugins']['get']('TrackChangesEditing'),_0x5b554b=_0x3631cb['commands']['get']('enter');_0x1d0644['enableCommand']('enter',()=>{_0x3631cb['model']['change'](_0x38b5fb=>{const _0xd827e1=_0x3631cb['model']['document']['selection'],_0x182aa5=_0xd827e1['getFirstPosition'](),_0x197166=rt['fromRange'](_0xd827e1['getFirstRange']());if(_0x5b554b['enterBlock'](_0x38b5fb)){const _0xd1ec1=_0x3631cb['model']['createPositionAt'](_0x182aa5['parent']['nextSibling'],0x0),_0x40da98=_0x38b5fb['createRange'](_0x182aa5,_0xd1ec1);_0x1d0644['markInsertion'](_0x40da98);}else _0x38b5fb['setSelection'](_0x38b5fb['createRange'](_0x197166['end']));_0x197166['detach'](),_0x5b554b['fire']('afterExecute',{'writer':_0x38b5fb});});});}},ee=class extends _0x5cf544{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x294196=this['editor']['plugins']['get']('TrackChangesEditing');_0x294196['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x294196['enableCommand']('findNext'),_0x294196['enableCommand']('findPrevious'),_0x294196['enableCommand']('replace'),_0x294196['enableCommand']('replaceAll');}['handleFindCommand'](_0x15e8ba,_0x370f3c,_0x4293fe={}){const _0x4bb779=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x15e8ba(_0x466390=>{let _0x360e77=('string'==typeof _0x370f3c?_0x4bb779['findByTextCallback'](_0x370f3c,_0x4293fe):_0x370f3c)(_0x466390);Array['isArray'](_0x360e77)&&(_0x360e77={'results':_0x360e77,'searchText':'string'==typeof _0x370f3c?_0x370f3c:''});const _0x44fc09=_0x360e77['results']['filter'](_0x3bd073=>!0x1===this['_isInDeletionRange'](_0x3bd073,_0x466390['item']));return{..._0x360e77,'results':_0x44fc09};},_0x4293fe);}_isInDeletionRange(_0x38a03d,_0x3f9f32){const _0x23e691=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f9f32,_0x38a03d['start']),this['editor']['model']['createPositionAt'](_0x3f9f32,_0x38a03d['end']));for(const _0x19b63c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23e691['getIntersection'](_0x19b63c['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x5cf544{afterInit(){const _0x959c41=this['editor']['locale'],_0x1b01fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x91a4bb,commandName:_0x111aa2}of ne)this['editor']['plugins']['has'](_0x91a4bb)&&_0x1b01fb['enableDefaultAttributesIntegration'](_0x111aa2);_0x1b01fb['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x959c41,'FORMAT_FONT_SIZE')),_0x1b01fb['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x959c41,'FORMAT_FONT_FAMILY')),_0x1b01fb['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x959c41,'FORMAT_FONT_COLOR')),_0x1b01fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x959c41,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xccaff1=this['editor'],_0x37732f=_0xccaff1['locale'];_0xccaff1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c8a5a=>{const _0x3713a1=_0x37732f['t'];if('formatInline'!=_0x1c8a5a['type'])return;const {data:_0xdddc4}=_0x1c8a5a;if(null!=_0xdddc4){if('fontSize'==_0xdddc4['commandName']){const _0x4538a2=_0xdddc4['commandParams'][0x0]['value'];if(_0x4538a2){const _0x16e049=_0x3713a1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xad843d=>_0xad843d['model']==_0x4538a2)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x37732f,'*Set\x20font\x20size:*\x20%0',_0x16e049)};}return{'type':'format','content':Mt(_0x37732f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xdddc4['commandName']){const _0x3c96a6=_0xdddc4['commandParams'][0x0]['value'];return _0x3c96a6?{'type':'format','content':Mt(_0x37732f,'*Set\x20font\x20family:*\x20%0',_0x3c96a6)}:{'type':'format','content':Mt(_0x37732f,'*Reset\x20font\x20family*')};}if('fontColor'==_0xdddc4['commandName']){const _0x55c308=_0xdddc4['commandParams'][0x0]['value'];if(_0x55c308){const _0x389378=_0xed1c81(this['editor']['config']['get']('fontColor.colors'))['find'](_0x292807=>_0x292807['model']==_0x55c308);let _0x218857=_0x55c308,_0x5dd445='';return _0x389378&&(_0x218857=_0x389378['label'],_0x5dd445=_0x3713a1(_0x218857)['toLowerCase']()),{'type':'format','content':Mt(_0x37732f,'*Set\x20font\x20color:*\x20%0',_0x5dd445)['trim'](),'color':{'value':_0x55c308,'title':_0x5dd445||_0x218857}};}return{'type':'format','content':Mt(_0x37732f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xdddc4['commandName']){const _0x5a9628=_0xdddc4['commandParams'][0x0]['value'];if(_0x5a9628){const _0x317b5b=_0xed1c81(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x28e946=>_0x28e946['model']==_0x5a9628);let _0x88d37a=_0x5a9628,_0x410368='';return _0x317b5b&&(_0x88d37a=_0x317b5b['label'],_0x410368=_0x3713a1(_0x88d37a)['toLowerCase']()),{'type':'format','content':Mt(_0x37732f,'*Set\x20font\x20background\x20color:*\x20%0',_0x410368)['trim'](),'color':{'value':_0x5a9628,'title':_0x410368||_0x88d37a}};}return{'type':'format','content':Mt(_0x37732f,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x5cf544{afterInit(){const {plugins:_0x329a97}=this['editor'];_0x329a97['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x329a97['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x114af0,plugins:_0x275f73,commands:_0x2c3d1f}=this['editor'],_0x477adc=_0x275f73['get']('TrackChangesEditing');_0x2c3d1f['get']('footnotesStyle')&&_0x477adc['enableDefaultAttributesIntegration']('footnotesStyle'),_0x2c3d1f['get']('footnotesStart')&&_0x477adc['enableDefaultAttributesIntegration']('footnotesStart'),_0x477adc['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x114af0,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x477adc['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x114af0,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0xee46f6=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x473cd8,commands:_0xc1229c}=this['editor'];_0xc1229c['get']('insertFootnote')&&_0xee46f6['enableCommand']('insertFootnote'),_0xee46f6['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3bb165=>Mt(_0x473cd8,'ELEMENT_FOOTNOTE_REF',_0x3bb165)),_0xee46f6['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x208f4c=>Mt(_0x473cd8,'ELEMENT_FOOTNOTE_DEFINITION',_0x208f4c)),_0xee46f6['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x13a338=>Mt(_0x473cd8,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x13a338));}},re=class extends _0x5cf544{afterInit(){const _0x5106e4=this['editor'],_0x56b579=_0x5106e4['plugins']['get']('TrackChangesEditing'),_0x170a59=_0x5106e4['commands']['get']('copyFormat'),_0x35eef5=_0x5106e4['commands']['get']('pasteFormat');_0x170a59&&_0x35eef5&&(_0x56b579['enableDefaultAttributesIntegration']('pasteFormat'),_0x56b579['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x1eeaea=this['editor'],_0x31627b=_0x1eeaea['locale'];_0x1eeaea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35c647=>{if('formatBlock'!=_0x35c647['type']&&'formatInline'!=_0x35c647['type'])return;const {data:_0x5cadae}=_0x35c647;if(_0x5cadae&&'pasteFormat'===_0x5cadae['commandName']){const _0x367235=[],_0x3b2a3a=_0x5cadae['commandParams'][0x0];for(const [_0xe7015e,_0x4298ed]of Object['entries'](_0x3b2a3a))_0x367235['push'](oe(_0x1eeaea,_0xe7015e,_0x4298ed));return _0x367235['length']?{'type':'format','content':Mt(_0x31627b,'*Set\x20format\x20to:*\x20%0',_0x367235['join'](',\x20'))}:{'type':'format','content':Mt(_0x31627b,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x55e8ed,_0x4bfe91,_0x3b1e8e){const _0x3068de=_0x55e8ed['locale']['t'],_0x36c640=_0x4bfe91['split'](/(?=[A-Z])/)['join']('\x20'),_0x500644=_0x3068de(_0x36c640['charAt'](0x0)['toUpperCase']()+_0x36c640['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3b1e8e)return _0x500644;if('fontColor'===_0x4bfe91||'fontBackgroundColor'===_0x4bfe91){const _0x4693c6=_0xed1c81(_0x55e8ed['config']['get']('fontColor.colors'))['find'](_0x26c923=>_0x26c923['model']==_0x3b1e8e);return _0x500644+'\x20('+(_0x4693c6?_0x3068de(_0x4693c6['label'])['toLowerCase']():_0x3b1e8e)+')';}if('fontSize'===_0x4bfe91&&isNaN(parseFloat(_0x3b1e8e))){const _0x219840=_0x55e8ed['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x55e8ed['config']['get']('fontSize.options'))['find'](_0x1061f6=>_0x1061f6['model']==_0x3b1e8e);return _0x500644+'\x20('+(_0x219840?_0x3068de(_0x219840['title'])['toLowerCase']():_0x3b1e8e)+')';}return _0x500644+'\x20('+_0x3b1e8e+')';}var ae=class extends _0x5cf544{afterInit(){const _0x232eaa=this['editor'];if(!_0x232eaa['plugins']['has']('GeneralHtmlSupport')||!_0x232eaa['plugins']['has']('DataSchema'))return;const _0x3431e9=_0x232eaa['plugins']['get']('TrackChangesEditing'),_0x5dd1fa=_0x232eaa['plugins']['get']('GeneralHtmlSupport'),_0x2dcd01=_0x232eaa['plugins']['get']('DataSchema'),_0x376e2c=_0x232eaa['locale'],_0x18ba45=new Set(['htmlContent']);for(const _0x3279ec of _0x2dcd01['getDefinitionsForView'](/.*/,!0x1)){const _0x9e849=_0x3279ec['view'],_0x4531f9=_0x5dd1fa['getGhsAttributeNameForElement'](_0x9e849);_0x18ba45['add'](_0x4531f9),!_0x3279ec['isInline']||_0x3279ec['isObject']||'appliesToBlock'in _0x3279ec&&_0x3279ec['appliesToBlock']||_0x3431e9['descriptionFactory']['registerAttributeLabel'](_0x4531f9,_0x9e849),_0x3279ec['model']['startsWith']('html')&&_0x3431e9['descriptionFactory']['registerElementLabel'](_0x3279ec['model'],_0x1f56af=>Mt(_0x376e2c,'ELEMENT_HTML_TAG',[_0x1f56af,_0x9e849]));}_0x3431e9['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x376e2c,'FORMAT_RAW_HTML_CONTENT')),_0x3431e9['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x376e2c,'FORMAT_HTML_LIST_ITEM')),_0x3431e9['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x376e2c,'FORMAT_HTML_BULLETED_LIST')),_0x3431e9['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x376e2c,'FORMAT_HTML_NUMBERED_LIST')),_0x3431e9['descriptionFactory']['registerDescriptionCallback'](_0x28ddce=>{if('attribute'!==_0x28ddce['type'])return;const _0x183016=_0x28ddce['data'];if(!_0x183016||!_0x18ba45['has'](_0x183016['key']))return;if('htmlContent'===_0x183016['key'])return{'type':'format','content':Mt(_0x376e2c,'*Change\x20%0\x20content*',Mt(_0x376e2c,'ELEMENT_RAW_HTML'))};const {setItems:_0xb52d8d,removeItems:_0x453d62}=function(_0x42b5bf,_0x1af225,_0x3d0ba7){const _0x30b642=[],_0x3e5414=[],_0x46225e=_0x42b5bf['styles']??{},_0x43eb4=_0x1af225['styles']??{};for(const _0x1fde29 of new Set([...Object['keys'](_0x46225e),...Object['keys'](_0x43eb4)]))_0x46225e[_0x1fde29]!==_0x43eb4[_0x1fde29]&&(void 0x0===_0x43eb4[_0x1fde29]?_0x3e5414['push'](_0x1fde29):_0x30b642['push'](_0x1fde29+'\x20('+_0x43eb4[_0x1fde29]+')'));const _0x1c2b95=Mt(_0x3d0ba7,'FORMAT_HTML_CLASS'),_0x29af32=new Set(_0x42b5bf['classes']??[]),_0x5930c5=new Set(_0x1af225['classes']??[]),_0x139332=[..._0x5930c5]['some'](_0x28195c=>!_0x29af32['has'](_0x28195c)),_0x489941=[..._0x29af32]['some'](_0x815b6f=>!_0x5930c5['has'](_0x815b6f));_0x139332&&_0x30b642['push'](_0x1c2b95),_0x489941&&_0x3e5414['push'](_0x1c2b95);const _0xef2621=Mt(_0x3d0ba7,'FORMAT_HTML_ATTRIBUTE'),_0x3b2ea2=_0x42b5bf['attributes']??{},_0x3b6842=_0x1af225['attributes']??{};let _0x43f205=!0x1,_0x51ef33=!0x1;for(const _0x4255c6 of new Set([...Object['keys'](_0x3b2ea2),...Object['keys'](_0x3b6842)]))_0x3b2ea2[_0x4255c6]!==_0x3b6842[_0x4255c6]&&(void 0x0===_0x3b6842[_0x4255c6]?_0x51ef33=!0x0:_0x43f205=!0x0);return _0x43f205&&_0x30b642['push'](_0xef2621),_0x51ef33&&_0x3e5414['push'](_0xef2621),{'setItems':_0x30b642,'removeItems':_0x3e5414};}(_0x183016['oldValue']??{},_0x183016['newValue']??{},_0x376e2c);if(!_0xb52d8d['length']&&!_0x453d62['length'])return;const _0x136174=[];return _0xb52d8d['length']&&_0x136174['push'](Mt(_0x376e2c,'*Set\x20format:*\x20%0',_0xb52d8d['join'](',\x20'))),_0x453d62['length']&&_0x136174['push'](Mt(_0x376e2c,'*Remove\x20format:*\x20%0',_0x453d62['join'](',\x20'))),{'type':'format','content':_0x136174['join']('\x0a')};});}},ce=class extends _0x5cf544{_headingOptions;afterInit(){const _0x5a6bf6=this['editor'];if(!_0x5a6bf6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5a6bf6['config']['get']('heading.options');const _0x5aac93=_0x5a6bf6['locale'],_0x36241b=_0x5a6bf6['plugins']['get']('TrackChangesEditing');_0x36241b['enableDefaultAttributesIntegration']('heading');for(const _0x438997 of this['_headingOptions'])'paragraph'!=_0x438997['model']&&_0x36241b['descriptionFactory']['registerElementLabel'](_0x438997['model'],_0x1ae8d3=>{const _0x2c3422=this['_getHeadingLevel'](_0x438997['model']);return null!==_0x2c3422?_0x19bbf6(_0x1ae8d3,_0x2c3422):_0x114376(_0x1ae8d3,_0x438997['title']);});function _0x19bbf6(_0x131d71,_0x154b00){return Mt(_0x5aac93,'ELEMENT_HEADING',[_0x131d71,_0x154b00]);}function _0x114376(_0x21f510,_0x2f3190){return Mt(_0x5aac93,'ELEMENT_HEADING_CUSTOM',[_0x21f510,_0x2f3190]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xbf1d50=this['editor'],_0x508dc6=_0xbf1d50['locale'];function _0x77df4b(_0x51c6c7,_0x40a0b0){return Mt(_0x508dc6,'ELEMENT_HEADING_CUSTOM',[_0x51c6c7,_0x40a0b0]);}_0xbf1d50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35153=>{if('formatBlock'!=_0x35153['type'])return;const {data:_0x4624b9}=_0x35153;if(_0x4624b9&&'heading'==_0x4624b9['commandName']){const _0x22d4aa=_0x4624b9['commandParams'][0x0]['value'],_0x304542=this['_getHeadingLevel'](_0x22d4aa);if(null!==_0x304542)return{'type':'format','content':Mt(_0x508dc6,'*Change\x20to:*\x20%0',(_0x3db2a8=0x1,_0x29d1a4=_0x304542,Mt(_0x508dc6,'ELEMENT_HEADING',[_0x3db2a8,_0x29d1a4])))};const _0x4b3460=this['_headingOptions']['find'](_0x39aa7e=>_0x39aa7e['model']===_0x22d4aa)['title'];return{'type':'format','content':Mt(_0x508dc6,'*Change\x20to:*\x20%0',_0x77df4b(0x1,_0x4b3460))};}var _0x3db2a8,_0x29d1a4;});}_getHeadingLevel(_0x51a698){const _0x5009d2=_0x51a698['match'](/^heading(\d+)/);if(_0x5009d2)return _0x5009d2[0x1];const _0x490e5e=this['_headingOptions']?.['find'](_0x1b913e=>_0x1b913e['model']==_0x51a698);if(_0x490e5e&&_0x490e5e['view']){const _0x4a9553=_0x490e5e['view'],_0x2290e7=(_0x4a9553['name']??_0x4a9553)['match'](/^h(\d+)/);if(_0x2290e7)return _0x2290e7[0x1];}return null;}},le=class extends _0x5cf544{afterInit(){const _0x1add90=this['editor'];if(!_0x1add90['plugins']['has']('HighlightEditing'))return;const _0x24ee0c=_0x1add90['plugins']['get']('TrackChangesEditing'),_0x3cc22b=_0x1add90['locale'];_0x24ee0c['enableDefaultAttributesIntegration']('highlight'),_0x24ee0c['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x3cc22b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3a54df=this['editor'],_0x3550ea=_0x3a54df['locale'];_0x3a54df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8a35e6=>{if('formatInline'!=_0x8a35e6['type'])return;const {data:_0x3e7c17}=_0x8a35e6;if(_0x3e7c17&&'highlight'==_0x3e7c17['commandName']){const _0x468506=_0x3550ea['t'],_0x2df0e8=_0x3e7c17['commandParams'][0x0]['value'];if(_0x2df0e8){const _0x2a410d=_0x3a54df['config']['get']('highlight.options')['find'](_0x1255c7=>_0x1255c7['model']==_0x2df0e8),_0x3134ba=_0x468506(_0x2a410d['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x3550ea,'*Set\x20highlight:*\x20%0',_0x3134ba),'color':{'value':_0x2a410d['color'],'title':_0x2a410d['title']}};}return{'type':'format','content':Mt(_0x3550ea,'*Remove\x20highlight*',Mt(_0x3550ea,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x5cf544{afterInit(){const _0x393400=this['editor'];if(!_0x393400['plugins']['has']('HorizontalLineEditing'))return;_0x393400['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x33c88e=_0x393400['plugins']['get']('TrackChangesEditing'),_0x5a6144=_0x393400['locale'];_0x33c88e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4c2346=>Mt(_0x5a6144,'ELEMENT_HORIZONTAL_LINE',_0x4c2346));}},de=class extends _0x5cf544{afterInit(){const _0x409f1a=this['editor'];if(!_0x409f1a['plugins']['has']('HtmlEmbed'))return;const _0x4ed839=_0x409f1a['plugins']['get']('TrackChangesEditing'),_0x3f0c2e=_0x409f1a['locale'];_0x4ed839['descriptionFactory']['registerElementLabel']('rawHtml',_0x2be01e=>Mt(_0x3f0c2e,'ELEMENT_HTML_EMBED',_0x2be01e)),_0x4ed839['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4ed839['descriptionFactory']['registerDescriptionCallback'](_0x48c8df=>{if('attribute'!=_0x48c8df['type'])return;const {data:_0x3b837d}=_0x48c8df;if(_0x3b837d&&'value'==_0x3b837d['key']&&_0x48c8df['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x172d3f=Mt(_0x3f0c2e,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x3f0c2e,'*Change\x20%0\x20content*',_0x172d3f)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2705c8=this['editor'],_0x1de93b=_0x2705c8['locale'];_0x2705c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x594567=>{if('formatBlock'!=_0x594567['type'])return;const {data:_0x48a6a9}=_0x594567;if(_0x48a6a9&&'htmlEmbed'==_0x48a6a9['commandName']){const _0x39f40a=Mt(_0x1de93b,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x1de93b,'*Change\x20%0\x20content*',_0x39f40a)};}});}},he=class extends _0x5cf544{afterInit(){const _0x3e4d3c=this['editor'];if(!_0x3e4d3c['plugins']['has']('ImageEditing'))return;const _0x1d9db8=_0x3e4d3c['plugins']['get']('TrackChangesEditing'),_0x4cbfb7=_0x3e4d3c['plugins']['get']('ImageUtils'),_0x41ad9a=_0x3e4d3c['locale'];_0x1d9db8['enableCommand']('insertImage'),_0x1d9db8['descriptionFactory']['registerElementLabel']('imageBlock',_0x483697=>Mt(_0x41ad9a,'ELEMENT_IMAGE',_0x483697)),_0x1d9db8['descriptionFactory']['registerElementLabel']('imageInline',_0x309b3a=>Mt(_0x41ad9a,'ELEMENT_INLINE_IMAGE',_0x309b3a)),_0x1d9db8['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x41ad9a,'ELEMENT_CAPTION')),_0x3e4d3c['plugins']['has']('ImageUploadEditing')&&_0x1d9db8['enableCommand']('uploadImage'),_0x3e4d3c['plugins']['has']('ImageBlockEditing')&&_0x3e4d3c['plugins']['has']('ImageInlineEditing')&&(_0x1d9db8['enableCommand']('imageTypeInline',(_0x11bba4,_0x58a0a9)=>{const _0x40bcc6=_0x4cbfb7['getClosestSelectedImageElement'](_0x3e4d3c['model']['document']['selection']);_0x3e4d3c['model']['change'](()=>{_0x1d9db8['markBlockFormat'](_0x40bcc6,{'commandName':'imageTypeInline','commandParams':[_0x58a0a9]},[],'convertBlockImageToInline');});}),_0x1d9db8['enableCommand']('imageTypeBlock',(_0x4649e3,_0x121581)=>{_0x3e4d3c['model']['change'](_0x5daf14=>{let _0x5c1e2f=_0x4cbfb7['getClosestSelectedImageElement'](_0x3e4d3c['model']['document']['selection']),_0x376764=_0x5daf14['createRangeOn'](_0x5c1e2f);const _0x424d06=st['fromPosition'](_0x376764['start'],'toPrevious'),_0x40d58b=st['fromPosition'](_0x376764['end'],'toNext');_0x1d9db8['forceDefaultExecution'](()=>_0x4649e3(_0x121581)),_0x5c1e2f=_0x4cbfb7['getClosestSelectedImageElement'](_0x3e4d3c['model']['document']['selection']),_0x376764=_0x5daf14['createRangeOn'](_0x5c1e2f);const _0x497600=_0x5daf14['createRange'](_0x424d06,_0x40d58b);_0x424d06['detach'](),_0x40d58b['detach'](),_0x1d9db8['markBlockFormat'](_0x5c1e2f,{'commandName':'imageTypeInline','commandParams':[_0x121581]},[],'convertInlineImageToBlock'),_0x497600['start']['isBefore'](_0x376764['start'])&&_0x1d9db8['markInsertion'](_0x5daf14['createRange'](_0x497600['start'],_0x376764['start']),'convertInlineImageToBlock'),_0x376764['end']['isBefore'](_0x497600['end'])&&_0x1d9db8['markInsertion'](_0x5daf14['createRange'](_0x376764['end'],_0x497600['end']),'convertInlineImageToBlock');});}),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1d9db8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3acbfe])=>{const _0x3d8ad2=_0x1d9db8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x9cdef6=_0x3acbfe['start'],_0x29b3e9=_0x3acbfe['end'];const _0x57e0fe=_0x3e4d3c['model']['schema']['getNearestSelectionRange'](_0x9cdef6,'backward'),_0x512968=_0x3e4d3c['model']['schema']['getNearestSelectionRange'](_0x29b3e9,'forward');_0x57e0fe['isCollapsed']&&(_0x9cdef6=_0x57e0fe['start']),_0x512968['isCollapsed']&&(_0x29b3e9=_0x512968['end']),_0x3d8ad2([_0x3e4d3c['model']['createRange'](_0x9cdef6,_0x29b3e9)]);}),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5ca291),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5ca291)),_0x3e4d3c['plugins']['has']('ImageCaptionEditing')&&(_0x1d9db8['enableCommand']('toggleImageCaption',(_0x384269,_0x6df244)=>{const _0x1972d7=_0x3e4d3c['plugins']['get']('ImageCaptionUtils');let _0x1cfc30=_0x4cbfb7['getClosestSelectedImageElement'](_0x3e4d3c['model']['document']['selection']),_0xb6ea43=_0x1972d7['getCaptionFromImageModelElement'](_0x1cfc30);_0x3e4d3c['model']['change'](()=>{if(_0xb6ea43)return void _0x1d9db8['markDeletion'](_0x3e4d3c['model']['createRangeOn'](_0xb6ea43));const _0xba2b8a=_0x4cbfb7['isBlockImage'](_0x1cfc30);_0x384269(_0x6df244),_0x1cfc30=_0x4cbfb7['getClosestSelectedImageElement'](_0x3e4d3c['model']['document']['selection']),_0xb6ea43=_0x1972d7['getCaptionFromImageModelElement'](_0x1cfc30),_0x1d9db8['markInsertion'](_0x3e4d3c['model']['createRangeOn'](_0xb6ea43),_0xba2b8a?null:'imageCaption');});}),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5ca291));const _0x2c7b32=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd1d6d5(_0x5ab0ad,_0x3bd0ea){const _0x461881=_0x2c7b32['findIndex'](({type:_0x1eb03e,subType:_0x5dab60})=>_0x5ab0ad['type']==_0x1eb03e&&_0x5ab0ad['subType']==_0x5dab60),_0x45cd00=_0x2c7b32['findIndex'](({type:_0xe5a701,subType:_0x2e2679})=>_0x3bd0ea['type']==_0xe5a701&&_0x3bd0ea['subType']==_0x2e2679);if(_0x461881<0x0||_0x45cd00<0x0)return!0x1;const _0x27a610=_0x5ab0ad['getFirstRange'](),_0x41784b=_0x3bd0ea['getFirstRange']();if((0x0==_0x461881||0x1==_0x461881)&&0x2==_0x45cd00&&_0x27a610['isIntersecting'](_0x41784b))return!0x0;if(0x2==_0x461881&&0x3==_0x45cd00){const _0x264936=_0x1d9db8['_findSuggestions'](_0x27a610,'insertion')['filter'](({suggestion:_0x5ca913,meta:_0x13af21})=>_0x13af21['isOwn']&&'convertInlineImageToBlock'==_0x5ca913['subType']);if(_0x264936['length']>0x1&&_0x41784b['end']['isEqual'](_0x27a610['start']))return!0x0;if(0x1==_0x264936['length']&&(_0x27a610['start']['isEqual'](_0x41784b['end'])||_0x27a610['end']['isEqual'](_0x41784b['start'])))return!0x0;}if(0x3==_0x461881&&0x3==_0x45cd00&&_0x27a610['start']['isBefore'](_0x41784b['start'])){const _0x30e541=_0x27a610['end']['nodeAfter'],_0x4a23c9=_0x41784b['start']['nodeBefore'];return _0x4cbfb7['isBlockImage'](_0x30e541)&&_0x30e541===_0x4a23c9;}return!0x1;}function _0x5ca291(_0x3b3924,_0x54eeaf){return _0xd1d6d5(_0x3b3924,_0x54eeaf)?[_0x3b3924,_0x54eeaf]:_0xd1d6d5(_0x54eeaf,_0x3b3924)?[_0x54eeaf,_0x3b3924]:null;}_0x3e4d3c['plugins']['has']('ImageResize')&&(_0x1d9db8['enableDefaultAttributesIntegration']('resizeImage'),_0x1d9db8['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x41ad9a,'FORMAT_IMAGE_SIZE'))),_0x3e4d3c['plugins']['has']('ImageTextAlternativeEditing')&&_0x1d9db8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3e4d3c['plugins']['has']('PictureEditing')&&_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x138534=>{if('attribute'!=_0x138534['type'])return;const {data:_0x33bd0c}=_0x138534;return _0x33bd0c&&'sources'==_0x33bd0c['key']?{'type':'format','content':''}:void 0x0;}),_0x3e4d3c['plugins']['has']('ImageSizeAttributes')&&_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x3dcf57=>{if('attribute'!=_0x3dcf57['type'])return;const {data:_0x4eb03b}=_0x3dcf57;return!_0x4eb03b||'width'!=_0x4eb03b['key']&&'height'!=_0x4eb03b['key']?void 0x0:{'type':'format','content':''};}),_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x13e025=>{if(_0x2c7b32['find'](({type:_0x185d7e,subType:_0x3b8724})=>_0x13e025['type']==_0x185d7e&&_0x13e025['subType']==_0x3b8724))return _0x13e025['previous']?{}:void 0x0;}),_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x54e62b=>{if('insertion'==_0x54e62b['type']||'deletion'==_0x54e62b['type']){const _0x517728=_0x54e62b['getContainedElement']();if(_0x517728&&_0x517728['is']('element','caption'))return{'type':'insertion'==_0x54e62b['type']?'addObject':'removeObject','element':_0x517728,'quantity':0x1};}}),_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x18028b=>'formatBlock'==_0x18028b['type']&&'convertInlineImageToBlock'==_0x18028b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18028b['type']&&'convertBlockImageToInline'==_0x18028b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x1822d7=>{if('attribute'!=_0x1822d7['type'])return;const {data:_0x28ad35}=_0x1822d7;if(!_0x28ad35||'alt'!=_0x28ad35['key'])return;const _0x1d2357=_0x28ad35['newValue'];return _0x1d2357?{'type':'format','content':Mt(_0x41ad9a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d2357+'\x22')}:{'type':'format','content':Mt(_0x41ad9a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x536345=this['editor'],_0x3bc306=_0x536345['locale'];_0x536345['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fa1c7=>{if('formatBlock'!=_0x3fa1c7['type']&&'formatInline'!=_0x3fa1c7['type'])return;const {data:_0x33d285}=_0x3fa1c7;if(_0x33d285){if('imageTextAlternative'==_0x33d285['commandName']){const _0x4e65ad=_0x33d285['commandParams'][0x0]['newValue'];return _0x4e65ad?{'type':'format','content':Mt(_0x3bc306,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e65ad+'\x22')}:{'type':'format','content':Mt(_0x3bc306,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x33d285['commandName']){const _0x441c9e=_0x33d285['commandParams'][0x0]['width'];return _0x441c9e?{'type':'format','content':Mt(_0x3bc306,'*Set\x20image\x20width:*\x20%0',_0x441c9e)}:{'type':'format','content':Mt(_0x3bc306,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x5cf544{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x42c761=this['editor']['locale'],_0x2b4546=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b4546['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2b4546['descriptionFactory']['registerDescriptionCallback'](_0x428538=>{if('attribute'!=_0x428538['type'])return;const {data:_0x381730}=_0x428538;return _0x381730&&'src'==_0x381730['key']?_0x381730['newValue']&&_0x381730['oldValue']?{'type':'format','content':Mt(_0x42c761,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3359d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x3359d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3359d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3359d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3359d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1050e8=this['editor'],_0xa81af9=_0x1050e8['locale'];_0x1050e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe263a2=>{if('formatBlock'!=_0xe263a2['type']&&'formatInline'!=_0xe263a2['type'])return;const {data:_0x425ee6}=_0xe263a2;return _0x425ee6&&'replaceImageSource'==_0x425ee6['commandName']?{'type':'format','content':Mt(_0xa81af9,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x5cf544{afterInit(){const _0xc781f6=this['editor'];if(!_0xc781f6['plugins']['has']('ImageStyleEditing'))return;const _0x661f94=_0xc781f6['plugins']['get']('TrackChangesEditing'),_0x21614b=_0xc781f6['plugins']['get']('ImageUtils'),_0xf02afa={};_0x661f94['enableCommand']('imageStyle',(_0x5c4c5d,_0x1c0523)=>{const _0x18fb3f=_0xc781f6['plugins']['get']('Users')['me'],_0x1478c3=_0xc781f6['commands']['get']('imageStyle');let _0x1dde52=_0x21614b['getClosestSelectedImageElement'](_0xc781f6['model']['document']['selection']),_0x4f615f=_0xc781f6['model']['createRangeOn'](_0x1dde52),_0x12ceca=_0x1478c3['value'];if(_0x12ceca==_0x1c0523['value'])return;if(_0x1c0523['value']&&_0x21614b['isInlineImage'](_0x1dde52)&&!_0x1478c3['isStyleEnabled'](_0x1c0523['value']))return;const _0x4329ab={'commandName':'imageStyle','commandParams':[_0x1c0523],'formatGroupId':_0x4aa562()};_0xc781f6['model']['change'](()=>{if(_0x661f94['getSuggestions']()['filter'](_0x505c37=>_0x505c37['isInContent']&&_0x18fb3f==_0x505c37['author']&&('formatBlock'==_0x505c37['type']||'formatInline'==_0x505c37['type'])&&('imageStylePreApply'==_0x505c37['subType']||'imageStylePostApply'==_0x505c37['subType'])&&_0x505c37['getFirstRange']()['isEqual'](_0x4f615f))['forEach'](_0x2f1680=>_0x661f94['discardSuggestion'](_0x2f1680['head'])),_0x1dde52=_0x21614b['getClosestSelectedImageElement'](_0xc781f6['model']['document']['selection']),_0x4f615f=_0xc781f6['model']['createRangeOn'](_0x1dde52),_0x1478c3['refresh'](),_0xc781f6['commands']['get']('imageTypeInline')['refresh'](),_0xc781f6['commands']['get']('imageTypeBlock')['refresh'](),_0x12ceca=_0x1478c3['value'],_0x12ceca!=_0x1c0523['value'])return _0x21614b['isInlineImage'](_0x1dde52)&&_0x1478c3['shouldConvertImageType'](_0x1c0523['value'],_0x1dde52)?(_0x5c4c5d({..._0x1c0523,'setImageSizes':!0x1}),_0x1dde52=_0x21614b['getClosestSelectedImageElement'](_0xc781f6['model']['document']['selection']),void _0x661f94['markBlockFormat'](_0x1dde52,{..._0x4329ab,'commandReversedParams':[{'value':_0x12ceca||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x21614b['isBlockImage'](_0x1dde52)?_0x661f94['markBlockFormat'](_0x1dde52,_0x4329ab,[],'imageStylePostApply'):_0x661f94['markInlineFormat'](_0x4f615f,_0x4329ab,'imageStylePostApply'));});});for(const _0xe7622d of _0xc781f6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xf02afa[_0xe7622d['name']]=_0xe7622d['title']['toLowerCase']();_0x661f94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x661f94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x661f94['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x661f94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x26f800])=>{_0x21614b['setImageNaturalSizeAttributes'](_0x26f800['getContainedElement']());}),_0x661f94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4c3d00,_0x38d0f2)=>{_0x661f94['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4c3d00,{'commandName':_0x38d0f2['commandName'],'commandParams':_0x38d0f2['commandReversedParams']});}),_0x661f94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3f3314,_0x4838bb){return _0x420092(_0x3f3314,_0x4838bb)?[_0x3f3314,_0x4838bb]:_0x420092(_0x4838bb,_0x3f3314)?[_0x4838bb,_0x3f3314]:null;});const _0x2bf77f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x420092(_0x1f3a72,_0x3650ba){const _0xc54420=_0x2bf77f['findIndex'](({type:_0x3fb171,subType:_0xfdc44b})=>_0x1f3a72['type']==_0x3fb171&&_0x1f3a72['subType']==_0xfdc44b),_0x172fa3=_0x2bf77f['findIndex'](({type:_0x35482a,subType:_0x3add17})=>_0x3650ba['type']==_0x35482a&&_0x3650ba['subType']==_0x3add17);if(_0xc54420<0x0||_0x172fa3<0x0)return!0x1;const _0x54556f=_0x1f3a72['getFirstRange'](),_0x120717=_0x3650ba['getFirstRange']();if((0x0==_0xc54420||0x1==_0xc54420)&&0x2==_0x172fa3&&_0x54556f['isIntersecting'](_0x120717))return!0x0;if(0x2==_0xc54420&&0x3==_0x172fa3){const _0x1f33ac=_0x661f94['_findSuggestions'](_0x54556f,'insertion')['filter'](({suggestion:_0xf5064e,meta:_0x1eb94e})=>_0x1eb94e['isOwn']&&'convertInlineImageToBlock'==_0xf5064e['subType']);if(_0x1f33ac['length']>0x1&&_0x120717['end']['isEqual'](_0x54556f['start']))return!0x0;if(0x1==_0x1f33ac['length']&&(_0x54556f['start']['isEqual'](_0x120717['end'])||_0x54556f['end']['isEqual'](_0x120717['start'])))return!0x0;}if(0x3==_0xc54420&&0x3==_0x172fa3&&_0x54556f['start']['isBefore'](_0x120717['start'])){const _0x27fd29=_0x54556f['end']['nodeAfter'],_0x15058d=_0x120717['start']['nodeBefore'];return _0x21614b['isBlockImage'](_0x27fd29)&&_0x27fd29===_0x15058d;}return!0x1;}_0xc781f6['model']['document']['registerPostFixer'](()=>{let _0x35ff29=!0x1;const _0x4a1bc3=Array['from'](_0xc781f6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x225a64,data:_0x58893c}of _0x4a1bc3){const {group:_0x2cc245,type:_0xceaea2,subType:_0x2c7f2b,id:_0x138f78}=tt(_0x225a64);if('suggestion'==_0x2cc245&&_0x661f94['hasSuggestion'](_0x138f78)){if('formatBlock'==_0xceaea2&&('imageStylePreApply'==_0x2c7f2b||'imageStylePostApply'==_0x2c7f2b)){const _0x1dfc8f=_0x661f94['getSuggestion'](_0x138f78);if(_0x58893c['newRange']){const _0x29ad1a=_0x1dfc8f['getFirstRange']()['getContainedElement']();if(_0x21614b['isBlockImage'](_0x29ad1a))continue;_0x661f94['discardSuggestion'](_0x1dfc8f),_0x35ff29=!0x0;}}if('insertion'==_0xceaea2&&'imageCaption'==_0x2c7f2b&&!_0x58893c['newRange']){const _0x2928e6=_0x661f94['getSuggestion'](_0x138f78);_0x2928e6['next']&&_0x2928e6['next']['isInContent']&&(_0x661f94['discardSuggestion'](_0x2928e6['next']),_0x35ff29=!0x0);}}}return _0x35ff29;}),this['_registerLegacyDescription'](_0xf02afa);}_registerLegacyDescription(_0x513dcd){const _0xc413fb=this['editor'],_0x176032=_0xc413fb['locale'];_0xc413fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x465f24=>{if('formatBlock'!=_0x465f24['type']&&'formatInline'!=_0x465f24['type'])return;const {data:_0x5ce715}=_0x465f24;if(!_0x5ce715||'imageStyle'!=_0x5ce715['commandName'])return;const _0x2d8508=_0x5ce715['commandParams'][0x0]['value'];return _0x3e2501('side'===_0x2d8508?Mt(_0x176032,'FORMAT_SIDE_IMAGE'):_0x513dcd[_0x2d8508]||_0x2d8508);function _0x3e2501(_0x5ad239){return{'type':'format','content':Mt(_0x176032,'*Format:*\x20%0',_0x5ad239)};}});}},me=class extends _0x5cf544{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x157c9d){super(_0x157c9d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x238b81=this['editor'],_0x1be41c=_0x238b81['commands']['get']('importWord'),_0x31d60a=_0x238b81['commands']['get']('trackChanges');_0x1be41c&&(_0x1be41c['on']('execute',(_0x43459b,[,_0x5e8475])=>{this['_trackChangesValueDuringImport']=_0x31d60a['value'],_0x5e8475['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1be41c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1be41c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x31d60a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x238b81['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x3dbfcb,_0x21054b){const {suggestions:_0x3eba30}=_0x21054b,_0x6d705a=this['editor']['commands']['get']('trackChanges'),_0x586c68=_0x6d705a['value'];this['_trackChangesValueDuringImport']!==_0x586c68&&(_0x6d705a['execute'](),this['_trackChangesExecuted']=!0x0),_0x3eba30&&_0x3eba30['forEach'](({id:_0xa4b879,type:_0x145117,author:_0x2f8f06,created_at:_0x5f06af})=>{const _0x38d7cd={'id':_0xa4b879,'type':_0x145117,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2f8f06,'createdAt':_0x5f06af?new Date(_0x5f06af):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x38d7cd);});}},Ee=class extends _0x5cf544{afterInit(){const _0x43ea54=this['editor'],_0x12c7e8=_0x43ea54['plugins']['get']('TrackChangesEditing');if(_0x43ea54['plugins']['has']('IndentEditing')&&(_0x12c7e8['enableCommand']('indent'),_0x12c7e8['enableCommand']('outdent')),_0x43ea54['plugins']['has']('IndentBlock')){for(const _0x5f5abc of['indentBlock','outdentBlock'])_0x12c7e8['enableDefaultAttributesIntegration'](_0x5f5abc);if(_0x43ea54['plugins']['has']('ListEditing')){for(const _0x19b5a1 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x12c7e8['enableDefaultAttributesIntegration'](_0x19b5a1);}}const _0x3479b0=_0x43ea54['locale'];_0x12c7e8['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x3479b0,'FORMAT_INDENT')),_0x12c7e8['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x3479b0,'FORMAT_INDENT')),_0x12c7e8['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x3479b0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x33b55f=this['editor'],_0x56fed0=_0x33b55f['locale'],_0x39b2fc=_0x33b55f['plugins']['get']('TrackChangesEditing');_0x39b2fc['descriptionFactory']['registerDescriptionCallback'](_0x19d707=>{if('formatBlock'!=_0x19d707['type'])return;const {data:_0x50553b}=_0x19d707;if(!_0x50553b)return;if('indentBlock'!=_0x50553b['commandName']&&'outdentBlock'!=_0x50553b['commandName'])return;const _0x2e3ef7=_0x19d707['getItems']()[0x0],_0x4a31e9=_0x39b2fc['descriptionFactory']['getItemLabel'](_0x2e3ef7);return'indentBlock'==_0x50553b['commandName']?{'type':'format','content':Mt(_0x56fed0,'*Indent:*\x20%0',_0x4a31e9)}:'outdentBlock'==_0x50553b['commandName']?{'type':'format','content':Mt(_0x56fed0,'*Outdent:*\x20%0',_0x4a31e9)}:void 0x0;});}},Te=class extends _0x5cf544{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x5cf544{afterInit(){const _0xf837c7=this['editor'];if(!_0xf837c7['plugins']['has']('LinkEditing'))return;const _0x2f933e=_0xf837c7['plugins']['get']('TrackChangesEditing'),_0x252ffe=_0xf837c7['commands']['get']('link');_0x2f933e['enableDefaultAttributesIntegration']('link'),_0x2f933e['enableDefaultAttributesIntegration']('unlink');for(const _0x4c285e of _0x252ffe['manualDecorators'])_0x2f933e['descriptionFactory']['registerAttributeLabel'](_0x4c285e['id'],'link\x20('+_0x4c285e['label']['toLowerCase']()+')');_0x2f933e['descriptionFactory']['registerDescriptionCallback'](_0x520013=>{if('attribute'!=_0x520013['type'])return;const {data:_0x16d451}=_0x520013;if(!_0x16d451||'linkHref'!=_0x16d451['key'])return;const _0x20ef8c=_0x16d451['newValue'],_0xb28d60=_0xf837c7['locale'];return{'type':'format','content':null==_0x20ef8c?Mt(_0xb28d60,'*Remove\x20link*'):Mt(_0xb28d60,'*Set\x20link:*\x20%0','\x22'+_0x20ef8c+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4920f9=this['editor'],_0x166f39=_0x4920f9['locale'];_0x4920f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f78c=>{if('formatInline'!=_0x20f78c['type'])return;const {data:_0x49e131}=_0x20f78c;if(_0x49e131){if('link'==_0x49e131['commandName']){const _0x5c74c4=_0x49e131['commandParams'][0x0];return{'type':'format','content':Mt(_0x166f39,'*Set\x20link:*\x20%0','\x22'+_0x5c74c4+'\x22')};}return'unlink'==_0x49e131['commandName']?{'type':'format','content':Mt(_0x166f39,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x5cf544{afterInit(){const _0x1434a9=this['editor'],_0x2a9a5d=_0x1434a9['locale'];if(!_0x1434a9['plugins']['has']('LegacyListEditing'))return;const _0x5093e6=_0x1434a9['plugins']['get']('TrackChangesEditing'),_0x17fb90=_0x1434a9['plugins']['has']('LegacyTodoListEditing');function _0x5855cf(_0x1db2dc){return()=>{const _0x1ac035=_0x1434a9['model']['document']['selection'],_0x91f932=_0x1434a9['commands']['get'](_0x1db2dc);if(_0x91f932['value'])return void _0x1434a9['execute']('paragraph',{});const _0x2c0236=_0x1db2dc['slice'](0x0,-0x4),_0x47de60=function(_0x3d20bd,_0x5c2ec7,_0x5d77ad){let _0xe67c3c=Array['from'](_0x3d20bd)['filter'](_0x37e4db=>function(_0x21dd9f,_0x5e207f){return _0x5e207f['checkChild'](_0x21dd9f['parent'],'listItem')&&!_0x5e207f['isObject'](_0x21dd9f);}(_0x37e4db,_0x5d77ad));_0xe67c3c=_0xe67c3c['filter'](_0x229b32=>!_0x229b32['is']('element','listItem')||_0x229b32['getAttribute']('listType')!=_0x5c2ec7);const _0x3c0be7=new Set();for(const _0x427c85 of _0xe67c3c)_0x427c85['is']('element','listItem')?_0x3c0be7['add'](Le(_0x427c85)):_0x3c0be7['add'](_0x427c85);return Array['from'](_0x3c0be7);}(_0x1ac035['getSelectedBlocks'](),_0x2c0236,_0x1434a9['model']['schema']);_0x1434a9['model']['change'](()=>{for(const _0x3e1b9e of _0x47de60)_0x5093e6['markBlockFormat'](_0x3e1b9e,{'commandName':_0x1db2dc,'commandParams':[{'forceValue':!_0x91f932['value']}],'formatGroupId':'blockName'},Ie(_0x3e1b9e));});};}function _0x4c8350(_0x4616cd){return()=>{const _0xad660a=function(_0x141147){let _0x38e815=Array['from'](_0x141147);const _0x58101f=_0x38e815['findIndex'](_0x668474=>'listItem'!=_0x668474['name']);return _0x58101f>-0x1&&(_0x38e815=_0x38e815['slice'](0x0,_0x58101f)),_0x38e815;}(_0x1434a9['model']['document']['selection']['getSelectedBlocks']()),_0x35e9d2=_0x1434a9['model']['createRange'](_0x1434a9['model']['createPositionAt'](_0xad660a[0x0],'before'),_0x1434a9['model']['createPositionAt'](_0xad660a[_0xad660a['length']-0x1],'end'));_0x1434a9['model']['change'](()=>{_0x5093e6['markBlockFormat'](_0x35e9d2,{'commandName':_0x4616cd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x560bdc){const _0x5496a9=new Set();for(const _0x333da of _0x560bdc){let _0x3b084c=_0x333da['nextSibling'];for(;_0x3b084c&&_0x3b084c['getAttribute']('listIndent')>_0x333da['getAttribute']('listIndent');)_0x5496a9['add'](_0x3b084c),_0x3b084c=_0x3b084c['nextSibling'];}return Array['from'](_0x5496a9);}(_0xad660a));});};}_0x5093e6['enableCommand']('numberedList',_0x5855cf('numberedList')),_0x5093e6['enableCommand']('bulletedList',_0x5855cf('bulletedList')),_0x17fb90&&_0x5093e6['enableCommand']('todoList',_0x5855cf('todoList')),_0x5093e6['enableCommand']('indentList',_0x4c8350('indentList')),_0x5093e6['enableCommand']('outdentList',_0x4c8350('outdentList')),_0x17fb90&&_0x5093e6['enableCommand']('checkTodoList',()=>{const _0x1bd857=_0x1434a9['commands']['get']('checkTodoList'),_0x11be95=Array['from'](_0x1bd857['_selectedElements']);_0x11be95['filter'](_0x29b452=>_0x29b452['getAttribute']('todoListChecked')!=_0x1bd857['value']),_0x1434a9['model']['change'](()=>{for(const _0x3ad465 of _0x11be95)_0x5093e6['markBlockFormat'](_0x3ad465,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1bd857['value']}]});});}),_0x5093e6['descriptionFactory']['registerElementLabel']('listItem',_0x198234=>Mt(_0x2a9a5d,'ELEMENT_LIST_ITEM',_0x198234)),_0x5093e6['descriptionFactory']['registerDescriptionCallback'](_0x2f8c5c=>{if('formatBlock'!=_0x2f8c5c['type']&&'formatInline'!=_0x2f8c5c['type'])return;const {data:_0xa2fb7c}=_0x2f8c5c;if(_0xa2fb7c){if('numberedList'==_0xa2fb7c['commandName']||'bulletedList'==_0xa2fb7c['commandName']||'todoList'==_0xa2fb7c['commandName'])switch(_0xa2fb7c['commandName']['replace']('List','')){case'bulleted':return _0x30423f(Mt(_0x2a9a5d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30423f(Mt(_0x2a9a5d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30423f(Mt(_0x2a9a5d,'ELEMENT_TODO_LIST'));}if('indentList'==_0xa2fb7c['commandName'])return{'type':'format','content':Mt(_0x2a9a5d,'*Indent:*\x20%0',Mt(_0x2a9a5d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xa2fb7c['commandName'])return{'type':'format','content':Mt(_0x2a9a5d,'*Outdent:*\x20%0',Mt(_0x2a9a5d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xa2fb7c['commandName'])return _0xa2fb7c['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x2a9a5d,'*Check\x20item*')}:{'type':'format','content':Mt(_0x2a9a5d,'*Uncheck\x20item*')};}function _0x30423f(_0x2fb31d){return{'type':'format','content':Mt(_0x2a9a5d,'*Change\x20to:*\x20%0',_0x2fb31d)};}});}};function Le(_0x38991c){const _0x2a313b=_0x38991c['getAttribute']('listIndent');if(0x0==_0x2a313b)return _0x38991c;let _0x39ee2d=_0x38991c;for(;_0x38991c['previousSibling']&&_0x38991c['previousSibling']['is']('element','listItem');){const _0x313dad=_0x38991c['previousSibling']['getAttribute']('listIndent');if(_0x313dad==_0x2a313b)_0x39ee2d=_0x38991c['previousSibling'];else{if(_0x313dad<_0x2a313b)break;}_0x38991c=_0x38991c['previousSibling'];}return _0x39ee2d;}function Ie(_0x9bffc6){const _0x4e30f6=[];if(_0x9bffc6['is']('element','listItem')&&_0x9bffc6['getAttribute']('listIndent')>0x0){let _0x3446c1=_0x9bffc6['nextSibling'];for(;_0x3446c1&&'listItem'==_0x3446c1['name']&&_0x3446c1['getAttribute']('listIndent')==_0x9bffc6['getAttribute']('listIndent');)_0x4e30f6['push'](_0x3446c1),_0x3446c1=_0x3446c1['nextSibling'];}return _0x4e30f6;}var Ae=class extends _0x5cf544{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x216f06=this['editor']['config']['get']('list.properties'),_0x22010c=this['editor']['plugins']['get']('TrackChangesEditing');_0x216f06['styles']&&_0x22010c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x216f06['reversed']&&_0x22010c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x216f06['startIndex']&&_0x22010c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x22010c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x44be48,_0x19c6a6={}){const _0x52288b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x437ad7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x52288b['markMultiRangeBlockFormat'](_0x437ad7,{'commandName':'listStyle','commandParams':[{'type':_0x19c6a6['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x53d054,_0x53ec57={}){const _0x41b20b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe6516f=this['_getSuggestionBlocks'](_0x4995e1=>_0x4995e1['is']('element','listItem')&&'numbered'===_0x4995e1['getAttribute']('listType'));if(_0xe6516f['length']<0x1)return;const _0x131c82=_0xe6516f['map'](_0x2066e9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2066e9,'before'),this['editor']['model']['createPositionAt'](_0x2066e9,0x0)));this['editor']['model']['change'](()=>{_0x41b20b['markMultiRangeBlockFormat'](_0x131c82,{'commandName':'listReversed','commandParams':[{'reversed':_0x53ec57['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x21a787,_0x3084f7={}){const _0x5cdc42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5556f8=this['_getSuggestionBlocks'](_0x21dcc8=>_0x21dcc8['is']('element','listItem')&&'numbered'===_0x21dcc8['getAttribute']('listType'));if(_0x5556f8['length']<0x1)return;const _0x411d51=_0x5556f8['map'](_0x435de3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x435de3,'before'),this['editor']['model']['createPositionAt'](_0x435de3,0x0)));this['editor']['model']['change'](()=>{_0x5cdc42['markMultiRangeBlockFormat'](_0x411d51,{'commandName':'listStart','commandParams':[{'startIndex':_0x3084f7['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x59cf16){if('formatBlock'!=_0x59cf16['type']&&'formatInline'!=_0x59cf16['type'])return;const _0x57641b=this['editor']['locale'],{data:_0x452641}=_0x59cf16;if(!_0x452641)return;let _0x42d7bf,_0x527630;switch(_0x452641['commandName']){case'listStyle':_0x42d7bf='*Change\x20to:*\x20%0',_0x527630={'type':'format','content':Mt(_0x57641b,_0x42d7bf,Mt(_0x57641b,this['_getTranslationKeyForListStyle'](_0x452641['commandParams'][0x0]['type'])))};break;case'listReversed':_0x42d7bf=_0x452641['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x527630={'type':'format','content':Mt(_0x57641b,_0x42d7bf)};break;case'listStart':_0x42d7bf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x527630={'type':'format','content':Mt(_0x57641b,_0x42d7bf,_0x452641['commandParams'][0x0]['startIndex'])};}return _0x527630;}_getSuggestionBlocksForListStyle(){const _0x40a484=this['editor']['plugins']['get']('LegacyListUtils');let _0x264bfc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x264bfc[0x0]?.['is']('element','listItem')&&_0x264bfc['unshift'](..._0x40a484['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x264bfc[_0x264bfc['length']-0x1]?.['is']('element','listItem')&&_0x264bfc['push'](..._0x40a484['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x264bfc=[...new Set(_0x264bfc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x264bfc=_0x264bfc['filter'](_0x522955=>_0x522955['is']('element','listItem'))),_0x264bfc;}_getSuggestionBlocks(_0x4d5013){const _0x26523d=this['editor']['plugins']['get']('LegacyListUtils');let _0x38dd9b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d5013)['map'](_0x535c54=>{const _0x1a1552=this['editor']['model']['createPositionAt'](_0x535c54,0x0);return[..._0x26523d['getSiblingNodes'](_0x1a1552,'backward'),..._0x26523d['getSiblingNodes'](_0x1a1552,'forward')];})['flat']();return _0x38dd9b=[...new Set(_0x38dd9b)],_0x38dd9b;}_getTranslationKeyForListStyle(_0x3611a2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3611a2)||'default')['toUpperCase']()+'_LIST_'+_0x3611a2['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x5cf544{afterInit(){const _0x439acc=this['editor'];if(!_0x439acc['plugins']['has']('MediaEmbedEditing'))return;const _0x4276bd=_0x439acc['plugins']['get']('TrackChangesEditing'),_0x57416a=_0x439acc['locale'];_0x4276bd['enableCommand']('mediaEmbed'),_0x4276bd['descriptionFactory']['registerElementLabel']('media',_0xfc5d50=>Mt(_0x57416a,'ELEMENT_MEDIA',_0xfc5d50)),_0x439acc['plugins']['has']('MediaEmbedResizeEditing')&&(_0x4276bd['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x4276bd['descriptionFactory']['registerDescriptionCallback'](_0x39fd48=>{if('attribute'!=_0x39fd48['type'])return;const {data:_0x3ebfd2}=_0x39fd48;if(!_0x3ebfd2||'resizedWidth'!=_0x3ebfd2['key'])return;const _0x12a055=_0x39fd48['getContainedElement']();if(!_0x12a055||!_0x12a055['is']('element','media'))return;const _0x571476=Mt(_0x57416a,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x57416a,'*Set\x20format:*\x20%0',_0x571476)};}));}},ke=class extends _0x5cf544{afterInit(){const _0x3c926a=this['editor'];if(!_0x3c926a['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x1a2534=_0x3c926a['plugins']['get']('TrackChangesEditing'),_0x35e97d=_0x3c926a['locale'],_0x587027=_0x3c926a['plugins']['get']('MediaEmbedStyleEditing'),_0x137182={};for(const _0x5642f6 of _0x587027['normalizedStyles'])_0x137182[_0x5642f6['name']]=_0x5642f6['title']['toLowerCase']();const _0x407757=_0x587027['normalizedStyles']['find'](_0x5acc90=>_0x5acc90['isDefault'])?.['name'];_0x1a2534['enableCommand']('mediaStyle',(_0x29f4cd,_0x315129)=>{const _0x23e004=_0x3c926a['plugins']['get']('Users')['me'],_0x2f90bb=_0x3c926a['commands']['get']('mediaStyle'),_0x2aba4c=function(_0x4cd55a){const _0x335f0f=_0x4cd55a['model']['document']['selection']['getSelectedElement']();return _0x335f0f&&_0x335f0f['is']('element','media')?_0x335f0f:null;}(_0x3c926a);if(!_0x2aba4c)return;const _0x3fc02f=_0x3c926a['model']['createRangeOn'](_0x2aba4c);let _0x495768=_0x2f90bb['value'];if(_0x495768==_0x315129['value'])return;const _0x143096={'commandName':'mediaStyle','commandParams':[_0x315129],'formatGroupId':_0x4aa562()};_0x3c926a['model']['change'](()=>{_0x1a2534['getSuggestions']()['filter'](_0x13e25a=>_0x13e25a['isInContent']&&_0x23e004==_0x13e25a['author']&&'formatBlock'==_0x13e25a['type']&&'mediaStylePostApply'==_0x13e25a['subType']&&_0x13e25a['getFirstRange']()['isEqual'](_0x3fc02f))['forEach'](_0x6b9ebc=>_0x1a2534['discardSuggestion'](_0x6b9ebc['head'])),_0x2f90bb['refresh'](),_0x495768=_0x2f90bb['value'],_0x495768!=_0x315129['value']&&_0x1a2534['markBlockFormat'](_0x2aba4c,{..._0x143096,'commandReversedParams':[{'value':'string'==typeof _0x495768?_0x495768:null}]},[],'mediaStylePostApply');});}),_0x1a2534['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x1a2534['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5d3aed,_0x1243ed)=>{_0x1a2534['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d3aed,{'commandName':_0x1243ed['commandName'],'commandParams':_0x1243ed['commandReversedParams']});}),_0x1a2534['descriptionFactory']['registerDescriptionCallback'](_0x31597b=>{if('formatBlock'!=_0x31597b['type'])return;const {data:_0x17dcd3}=_0x31597b;if(!_0x17dcd3||'mediaStyle'!=_0x17dcd3['commandName'])return;const _0x1788de=_0x17dcd3['commandParams'][0x0]['value']||_0x407757;if(!_0x1788de)return;const _0x5d133d=_0x137182[_0x1788de]||_0x1788de;return{'type':'format','content':Mt(_0x35e97d,'*Format:*\x20%0',_0x5d133d)};});}},Ce=class extends _0x5cf544{afterInit(){const _0x2461ea=this['editor'];_0x2461ea['plugins']['has']('MentionEditing')&&_0x2461ea['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x5cf544{afterInit(){const _0x3f7984=this['editor'];if(!_0x3f7984['plugins']['has']('MergeFieldsEditing'))return;const _0x116342=_0x3f7984['plugins']['get']('TrackChangesEditing'),_0x42f972=_0x3f7984['locale'];_0x116342['enableCommand']('insertMergeField'),_0x116342['enableCommand']('insertMergeFieldBlock'),_0x116342['enableCommand']('insertMergeFieldImage'),_0x116342['descriptionFactory']['registerElementLabel']('mergeField',_0x107633=>Mt(_0x42f972,'ELEMENT_MERGE_FIELD',_0x107633)),_0x116342['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3a54e1=>Mt(_0x42f972,'ELEMENT_MERGE_FIELD',_0x3a54e1)),_0x116342['descriptionFactory']['registerDescriptionCallback'](_0x15c073=>{if('insertion'!=_0x15c073['type']&&'deletion'!=_0x15c073['type'])return;const _0x4d85b1=_0x15c073['getContainedElement']();if(null==_0x4d85b1)return;const _0x6047f4=_0x3f7984['plugins']['get']('MergeFieldsEditing');let _0x26b043;switch(_0x6047f4['getMergeFieldType'](_0x4d85b1)){case null:return;case'image':{const _0x86b92b=_0x6047f4['unwrapAffixes'](_0x4d85b1['getAttribute']('src'));_0x26b043=_0x6047f4['getLabel'](_0x86b92b)||_0x86b92b;break;}default:{const _0x269bb7=_0x4d85b1['getAttribute']('id');_0x26b043=_0x6047f4['getLabel'](_0x269bb7)||_0x269bb7;break;}}return'insertion'==_0x15c073['type']?{'type':'insertion','content':Mt(_0x42f972,'*Insert:*\x20%0','\x22'+_0x26b043+'\x22\x20'+Mt(_0x42f972,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x42f972,'*Remove:*\x20%0','\x22'+_0x26b043+'\x22\x20'+Mt(_0x42f972,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x5cf544{afterInit(){const _0xcb4c4d=this['editor'],_0x526327=_0xcb4c4d['plugins']['get']('TrackChangesEditing');_0xcb4c4d['plugins']['has']('MultiLevelList')&&(_0x526327['enableDefaultAttributesIntegration']('multiLevelList'),_0x526327['descriptionFactory']['registerDescriptionCallback'](_0x1b5ab8=>this['handleDescriptions'](_0x1b5ab8)));}handleDescriptions(_0x330a22){const _0x379c86=this['editor']['locale'],{data:_0x230d84}=_0x330a22,_0x24de81={'type':'format','content':''};if(_0x230d84&&'listMarkerStyle'==_0x230d84['key']){if(!_0x230d84['oldValue'])return{'type':'format','content':Mt(_0x379c86,'*Set\x20format:*\x20%0',Mt(_0x379c86,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x230d84['newValue']+')'};if(!_0x230d84['newValue']){let _0x100899=_0x330a22['head'];for(;_0x100899;){if(_0x100899['data']&&'listType'==_0x100899['data']['key']&&_0x100899['data']['newValue'])return _0x24de81;_0x100899=_0x100899['next'];}return{'type':'format','content':Mt(_0x379c86,'*Remove\x20format:*\x20%0',Mt(_0x379c86,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x230d84['oldValue']+')'};}}}},Ne=class extends _0x5cf544{afterInit(){const _0x91ae51=this['editor'];if(!_0x91ae51['plugins']['has']('PageBreakEditing'))return;_0x91ae51['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x152bda=_0x91ae51['plugins']['get']('TrackChangesEditing'),_0x234c1e=_0x91ae51['locale'];_0x152bda['descriptionFactory']['registerElementLabel']('pageBreak',_0x34cff9=>Mt(_0x234c1e,'ELEMENT_PAGE_BREAK',_0x34cff9));}},Se=class extends _0x5cf544{afterInit(){const _0x1e0a75=this['editor'];if(!_0x1e0a75['plugins']['has']('Paragraph'))return;const _0x39ef09=_0x1e0a75['locale'],_0x25c643=_0x1e0a75['plugins']['get']('TrackChangesEditing');_0x25c643['descriptionFactory']['registerElementLabel']('paragraph',_0x4984f5=>Mt(_0x39ef09,'ELEMENT_PARAGRAPH',_0x4984f5)),_0x25c643['enableDefaultAttributesIntegration']('paragraph'),_0x25c643['enableCommand']('insertParagraph');const _0x89afce=_0x25c643['descriptionFactory'];_0x89afce['registerDescriptionCallback'](_0x3939df=>{if('insertion'!==_0x3939df['type'])return;const {start:_0x1a1124,end:_0x9f2ba0}=_0x3939df['getFirstRange']();if(!_0x1a1124['isTouching'](_0x9f2ba0)||!_0x1a1124['nodeAfter'])return;const _0x489c53=_0x1e0a75['model']['schema'],_0x41acc6=_0x1a1124['nodeAfter'];return _0x489c53['isBlock'](_0x41acc6)&&!_0x489c53['isLimit'](_0x41acc6)&&_0x489c53['checkChild'](_0x41acc6,'$text')?{'type':'insertion','content':Mt(_0x39ef09,'*Insert:*\x20%0',_0x89afce['getItemLabel'](_0x41acc6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x528d07=this['editor'],_0x12a0e8=_0x528d07['locale'];_0x528d07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313ca4=>{if('formatBlock'!=_0x313ca4['type'])return;const {data:_0x59a5fc}=_0x313ca4;return _0x59a5fc&&'paragraph'==_0x59a5fc['commandName']?{'type':'format','content':Mt(_0x12a0e8,'*Change\x20to:*\x20%0',Mt(_0x12a0e8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x5cf544{afterInit(){const _0xb10964=this['editor'];_0xb10964['commands']['get']('replaceSource')&&_0xb10964['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x5cf544{afterInit(){const _0x23f639=this['editor'];_0x23f639['plugins']['has']('RemoveFormatEditing')&&(_0x23f639['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5852ab=this['editor'];_0x5852ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1620ef=>{if('formatBlock'!=_0x1620ef['type']&&'formatInline'!=_0x1620ef['type'])return;const {data:_0x3412c3}=_0x1620ef;return _0x3412c3&&'removeFormat'==_0x3412c3['commandName']?{'type':'format','content':Mt(_0x5852ab['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x5cf544{afterInit(){const _0x3b80cd=this['editor'];if(!_0x3b80cd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3af426=_0x3b80cd['plugins']['get']('TrackChangesEditing');_0x3af426['enableCommand']('goToPreviousRestrictedEditingException'),_0x3af426['enableCommand']('goToNextRestrictedEditingException');const _0x159cba=_0x3b80cd['plugins']['get']('RestrictedEditingModeEditing');_0x159cba['enableCommand']('trackChanges'),_0x159cba['enableCommand']('acceptSuggestion'),_0x159cba['enableCommand']('discardSuggestion'),_0x159cba['enableCommand']('acceptAllSuggestions'),_0x159cba['enableCommand']('discardAllSuggestions'),_0x159cba['enableCommand']('acceptSelectedSuggestions'),_0x159cba['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x5cf544{afterInit(){const _0x36240d=this['editor'];if(!_0x36240d['plugins']['has']('ShiftEnter'))return;const _0xb5d013=_0x36240d['plugins']['get']('TrackChangesEditing');_0xb5d013['enableCommand']('shiftEnter'),_0xb5d013['descriptionFactory']['registerElementLabel']('softBreak',_0x293643=>Mt(_0x36240d['locale'],'ELEMENT_LINE_BREAK',_0x293643));}};function Be(_0x3a7f2a,_0x162b65,_0x3b72ae){const _0x2cfceb=[];for(const _0xa9ade6 of _0x162b65['getItems']())_0xa9ade6['hasAttribute'](_0x3a7f2a)&&_0x2cfceb['push'](_0x3b72ae['createRangeOn'](_0xa9ade6));return _0x2cfceb;}var ve=class extends _0x5cf544{afterInit(){const _0x32a4de=this['editor'],_0xce3b9d=_0x32a4de['plugins']['get']('TrackChangesEditing');_0x32a4de['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xce3b9d['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x5205c3=this['editor'],_0x5f3e22=_0x5205c3['model'],_0xd20284=_0x5205c3['locale'],_0x2434cf=_0x5205c3['plugins']['get']('TrackChangesEditing'),_0x4e0d7b='restrictedEditingException',_0x1ff99a=_0x5205c3['commands']['get'](_0x4e0d7b);_0x2434cf['enableCommand'](_0x4e0d7b,(_0x387628,_0x3354d5={})=>{const _0x37ea9b=_0x5f3e22['document']['selection'];if(_0x37ea9b['isCollapsed'])return void _0x387628(_0x3354d5);const _0xcd64a9=void 0x0!==_0x3354d5['forceValue']?_0x3354d5['forceValue']:!_0x1ff99a['value'];_0x5f3e22['change'](()=>{const _0x4916b9=Array['from'](_0x37ea9b['getRanges']());for(const _0x59e1d7 of _0x4916b9){const _0x2a7a0c=_0xcd64a9?[_0x59e1d7]:Be(_0x4e0d7b,_0x59e1d7,_0x5f3e22);for(const _0x308c1d of _0x2a7a0c)_0x2434cf['markInlineFormat'](_0x308c1d,{'commandName':_0x4e0d7b,'commandParams':[{'forceValue':_0xcd64a9}]});}});}),_0x2434cf['descriptionFactory']['registerDescriptionCallback'](_0x6ec3b=>{if('formatBlock'!=_0x6ec3b['type']&&'formatInline'!=_0x6ec3b['type'])return;const {data:_0x1b5d66}=_0x6ec3b;return _0x1b5d66&&_0x1b5d66['commandName']==_0x4e0d7b?_0x1b5d66['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0xd20284,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0xd20284,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0xca3cb5=this['editor'],_0x24b08d=_0xca3cb5['locale'],_0x38243a=_0xca3cb5['plugins']['get']('TrackChangesEditing'),_0x115e90='restrictedEditingExceptionBlock',_0x5676d8=this['editor']['commands']['get'](_0x115e90);_0x38243a['enableCommand'](_0x115e90,(_0x3b39da,_0x41d901={})=>{const _0x5e2a1f=this['editor']['model']['document']['selection'],_0x16fc6c=_0x41d901&&void 0x0!==_0x41d901['forceValue']?_0x41d901['forceValue']:!_0x5676d8['value'];let _0x49ac22=[];if(_0x16fc6c){const _0x2ed049=Array['from'](_0x5e2a1f['getSelectedBlocks']())['filter'](_0x91f907=>function(_0x4e800e){return!!_0x4e800e['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x91f907)||function(_0x51d6f1,_0x31ff45){const _0x58a8f1=_0x31ff45['createContext'](_0x51d6f1['parent']);return!!_0x31ff45['checkChild'](_0x58a8f1,'restrictedEditingException')&&!!_0x31ff45['checkChild'](_0x58a8f1['push']('restrictedEditingException'),_0x51d6f1);}(_0x91f907,this['editor']['model']['schema']));_0x49ac22=bt(_0x2ed049,_0xca3cb5['model']);}else{const _0x573eb4=Array['from'](_0x5e2a1f['getSelectedBlocks']())['map'](_0xd4ee72=>function(_0x2d14bf){let _0x107b81=_0x2d14bf;for(;_0x107b81['parent'];){if('restrictedEditingException'==_0x107b81['parent']['name'])return _0x107b81;_0x107b81=_0x107b81['parent'];}return null;}(_0xd4ee72))['filter'](_0x1276dd=>!!_0x1276dd);_0x49ac22=bt(_0x573eb4,_0xca3cb5['model']);}_0xca3cb5['model']['change'](()=>{for(const _0x59e998 of _0x49ac22)_0x38243a['markBlockFormat'](_0x59e998,{'commandName':_0x115e90,'commandParams':[{'forceValue':_0x16fc6c}]});});}),_0x38243a['descriptionFactory']['registerDescriptionCallback'](_0x370fbf=>{const {data:_0x54b64a}=_0x370fbf;if(_0x54b64a&&_0x54b64a['commandName']==_0x115e90)return _0x54b64a['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x24b08d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x24b08d,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x5cf544{afterInit(){const _0x1f9164=this['editor'];_0x1f9164['plugins']['has']('Style')&&_0x1f9164['plugins']['has']('DataSchema')&&(_0x1f9164['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5eac58=this['editor'],_0x2cabf4=_0x5eac58['locale'];_0x5eac58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b9554=>{if('formatBlock'!=_0x1b9554['type']&&'formatInline'!=_0x1b9554['type'])return;const {data:_0x5b539d}=_0x1b9554;return _0x5b539d&&'style'===_0x5b539d['commandName']?_0x5b539d['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x2cabf4,'*Set\x20format:*\x20%0',_0x5b539d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x2cabf4,'*Remove\x20format:*\x20%0',_0x5b539d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x5cf544{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x19bf77){super(_0x19bf77),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x5c851b=this['editor'],_0x36da0c=_0x5c851b['model']['document']['selection'];if(!_0x5c851b['plugins']['has']('TableEditing'))return;const _0x1f6883=_0x5c851b['locale'],_0x2345d7=_0x5c851b['plugins']['get']('TrackChangesEditing'),_0x43adfd=_0x5c851b['plugins']['get']('TableUtils');_0x2345d7['descriptionFactory']['registerElementLabel']('table',_0x14972c=>Mt(_0x1f6883,'ELEMENT_TABLE',_0x14972c)),this['_setupColumnsRowsFixing'](),_0x2345d7['enableCommand']('insertTable'),_0x2345d7['enableCommand']('selectTableRow'),_0x2345d7['enableCommand']('selectTableColumn');for(const _0x33f414 of['insertTableRowAbove','insertTableRowBelow']){const _0x157670=_0x5c851b['commands']['get'](_0x33f414);_0x2345d7['enableCommand'](_0x33f414,_0x41bc0e=>{_0x5c851b['model']['change'](_0x2ab0df=>{_0x41bc0e();const _0x48349b='above'===_0x157670['order'],_0x214ced=_0x43adfd['getSelectionAffectedTableCells'](_0x36da0c),_0x156cb2=_0x43adfd['getRowIndexes'](_0x214ced),_0x1bb033=_0x48349b?_0x156cb2['first']-0x1:_0x156cb2['last']+0x1,_0x272d58=_0x214ced[0x0]['findAncestor']('table'),_0x2d3a4f=_0x43adfd['createTableWalker'](_0x272d58,{'startRow':_0x1bb033,'endRow':_0x1bb033}),_0x6b892=Array['from'](_0x2d3a4f)['map'](_0x90cc27=>_0x2ab0df['createRangeOn'](_0x90cc27['cell']));_0x2345d7['markMultiRangeInsertion'](_0x6b892,'tableRow');});});}for(const _0x1c38ed of['insertTableColumnLeft','insertTableColumnRight']){const _0x1d43c5=_0x5c851b['commands']['get'](_0x1c38ed);_0x2345d7['enableCommand'](_0x1c38ed,_0x8d1bd2=>{_0x5c851b['model']['change'](_0x4e616e=>{_0x8d1bd2();const _0x490485='left'===_0x1d43c5['order'],_0x300c38=_0x43adfd['getSelectionAffectedTableCells'](_0x36da0c),_0x2160ef=_0x43adfd['getColumnIndexes'](_0x300c38),_0x1aaec4=_0x490485?_0x2160ef['first']-0x1:_0x2160ef['last']+0x1,_0x3e4a42=_0x300c38[0x0]['findAncestor']('table'),_0x986c89=_0x43adfd['createTableWalker'](_0x3e4a42,{'startRow':0x0,'column':_0x1aaec4,'includeAllSlots':!0x1}),_0x9eb39f=Array['from'](_0x986c89)['map'](_0x19061e=>_0x4e616e['createRangeOn'](_0x19061e['cell']));_0x2345d7['markMultiRangeInsertion'](_0x9eb39f,'tableColumn');});});}for(const _0x14641e of['removeTableRow','removeTableColumn']){const _0x196e23=_0x14641e['substr'](0xb),_0x32ddeb=_0x196e23['toLowerCase'](),_0x1f4e34=_0x32ddeb['substr'](0x0,0x3)+'span',_0x18f7d5='table'+_0x196e23,_0x37ea56='min'+_0x196e23,_0x53ebdd='max'+_0x196e23;_0x2345d7['enableCommand'](_0x14641e,()=>{_0x5c851b['model']['change'](_0x282dd0=>{const _0x222ade=_0x43adfd['getSelectionAffectedTableCells'](_0x36da0c),_0x5d271a=_0x222ade[0x0]['findAncestor']('table');let _0x156ece;if('removeTableRow'==_0x14641e){const _0x489c25=_0x43adfd['getRowIndexes'](_0x222ade);_0x156ece={'startRow':_0x489c25['first'],'endRow':_0x489c25['last'],'includeAllSlots':!0x0};}else{const _0x1a593b=_0x43adfd['getColumnIndexes'](_0x222ade);_0x156ece={'startColumn':_0x1a593b['first'],'endColumn':_0x1a593b['last'],'includeAllSlots':!0x0};}const _0xf56146=_0x43adfd['createTableWalker'](_0x5d271a,_0x156ece),_0xa05165=Array['from'](_0xf56146)['map'](({cell:_0x48d760})=>_0x48d760),_0x1c6d9e=Pe(_0xa05165['filter'](_0x336f23=>_0x336f23['hasAttribute'](_0x1f4e34))),_0x21a545=Pe(_0xa05165['filter'](_0x3a29d3=>!_0x3a29d3['hasAttribute'](_0x1f4e34)))['map'](_0x3d6014=>_0x282dd0['createRangeOn'](_0x3d6014)),_0x102786=_0x2345d7['markMultiRangeDeletion'](_0x21a545,_0x18f7d5);if(_0x102786&&('tableRow'==_0x102786['subType']||'tableColumn'==_0x102786['subType'])){const _0x55c806=this['_getSuggestionCoords'](_0x102786);for(const _0xa49304 of _0x1c6d9e){const _0x509bbc=_0x282dd0['createRangeOn'](_0xa49304),_0x1ffe5e=_0x43adfd['getCellLocation'](_0xa49304),_0x199f9e=_0xa49304['getAttribute'](_0x1f4e34)-0x1,_0xd4cca7=_0x55c806[_0x37ea56],_0x1d113e=_0x55c806[_0x53ebdd];_0xd4cca7<=_0x1ffe5e[_0x32ddeb]&&_0x1ffe5e[_0x32ddeb]+_0x199f9e<=_0x1d113e&&_0x102786['addRange'](_0x509bbc);}}});});}function _0x1dc52b(_0x527e46){const _0x14ba4a=Array['from'](_0x36da0c['getRanges']())['map'](_0x170785=>rt['fromRange'](_0x170785));_0x5c851b['model']['change'](_0x359b65=>{const _0x58173c=_0x359b65['batch'];_0x527e46=_0x527e46['filter'](_0x19bc62=>'$graveyard'!=_0x19bc62['root']['rootName']),_0x359b65['setSelection'](_0x527e46),_0x5c851b['commands']['get']('removeTableRow')['refresh'](),_0x5c851b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5c851b['model']['enqueueChange'](()=>{_0x5c851b['model']['enqueueChange'](_0x58173c,_0x1d39f4=>{const _0x75d2f=_0x14ba4a['filter'](_0x572529=>'$graveyard'!=_0x572529['root']['rootName']);_0x75d2f['length']>0x0&&_0x1d39f4['setSelection'](_0x75d2f);for(const _0x53505f of _0x14ba4a)_0x53505f['detach']();});});});}function _0x25d68(_0x12c3b4){_0x5c851b['model']['change'](_0x477dac=>{const _0x5c2f35=Array['from'](_0x36da0c['getRanges']())['map'](_0x3e2492=>rt['fromRange'](_0x3e2492)),_0x16c261=[];for(const _0x411a11 of _0x12c3b4)for(const _0x4a4d7f of _0x411a11['getItems']({'shallow':!0x0}))_0x16c261['push'](_0x4a4d7f);for(const _0x2bac67 of _0x16c261)'$graveyard'!=_0x2bac67['root']['rootName']&&(_0x477dac['setSelection'](_0x477dac['createPositionAt'](_0x2bac67,0x0)),_0x5c851b['commands']['get']('removeTableColumn')['refresh'](),_0x5c851b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xdcc52f=_0x5c2f35['filter'](_0x295975=>'$graveyard'!=_0x295975['root']['rootName']);_0xdcc52f['length']>0x0&&_0x477dac['setSelection'](_0xdcc52f);for(const _0x5c7fef of _0x5c2f35)_0x5c7fef['detach']();});}function _0x37fa63(_0x13c50b,_0x48e832){return _0x48e832['every'](_0x3ec803=>_0x13c50b['some'](_0x59e17f=>_0x59e17f['end']['isEqual'](_0x3ec803['start'])||_0x3ec803['end']['isEqual'](_0x59e17f['start'])));}function _0x3014fd(_0x20b41b,_0x44fadb){return!_0x20b41b['some'](_0x48ba3d=>_0x44fadb['some'](_0x768038=>_0x48ba3d['isIntersecting'](_0x768038)))&&_0x20b41b['some'](_0x50022d=>_0x44fadb['some'](_0x683ea5=>_0x50022d['end']['isTouching'](_0x683ea5['start'])));}_0x2345d7['descriptionFactory']['registerDescriptionCallback'](_0x1f3728=>{if('insertion'!=_0x1f3728['type']&&'deletion'!=_0x1f3728['type'])return;const _0x3a9333=_0x1f3728['getContainedElement']();if(null!=_0x3a9333&&_0x3a9333['is']('element','table')){if('insertion'==_0x1f3728['type']){const _0xe6d148=_0x1f3728['getItems']()['filter'](_0x24b85d=>_0x24b85d['is']('$textProxy'))['map'](_0x407c25=>_0x407c25['data']);if(_0xe6d148['length'])return{'type':'insertion','content':Mt(_0x1f6883,'*Insert:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe6d148['join']('\x20')+'\x22'))};}if('deletion'==_0x1f3728['type']){const _0x11367f=_0x1f3728['getItems']()['filter'](_0x38ae95=>_0x38ae95['is']('$textProxy'))['map'](_0x215eba=>_0x215eba['data']);if(_0x11367f['length'])return{'type':'deletion','content':Mt(_0x1f6883,'*Remove:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x11367f['join']('\x20')+'\x22'))};}}}),_0x2345d7['descriptionFactory']['registerDescriptionCallback'](_0x1647a4=>{if('tableRow'==_0x1647a4['subType']){const _0xe2bc7e=_0x1647a4['getItems']()['filter'](_0x267e4b=>_0x267e4b['is']('$textProxy'))['map'](_0x3e0393=>_0x3e0393['data']),_0x40b0ab=this['_getSuggestionCoords'](_0x1647a4),_0x146754=_0x40b0ab['maxRow']-_0x40b0ab['minRow']+0x1;if('insertion'==_0x1647a4['type'])return _0xe2bc7e['length']?{'type':'insertion','content':Mt(_0x1f6883,'*Insert:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x146754,'\x22'+_0xe2bc7e['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x1f6883,'*Insert:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_ROW',_0x146754))};if('deletion'==_0x1647a4['type'])return _0xe2bc7e['length']?{'type':'deletion','content':Mt(_0x1f6883,'*Remove:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x146754,'\x22'+_0xe2bc7e['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x1f6883,'*Remove:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_ROW',_0x146754))};}if('tableColumn'==_0x1647a4['subType']){const _0x267326=_0x1647a4['getItems']()['filter'](_0x49320d=>_0x49320d['is']('$textProxy'))['map'](_0x9c5a6c=>_0x9c5a6c['data']),_0x5cd50c=this['_getSuggestionCoords'](_0x1647a4),_0x1d2487=_0x5cd50c['maxColumn']-_0x5cd50c['minColumn']+0x1;if('insertion'==_0x1647a4['type'])return _0x267326['length']?{'type':'insertion','content':Mt(_0x1f6883,'*Insert:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d2487,'\x22'+_0x267326['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x1f6883,'*Insert:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_COLUMN',_0x1d2487))};if('deletion'==_0x1647a4['type'])return _0x267326['length']?{'type':'deletion','content':Mt(_0x1f6883,'*Remove:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d2487,'\x22'+_0x267326['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x1f6883,'*Remove:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_COLUMN',_0x1d2487))};}}),_0x2345d7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1dc52b),_0x2345d7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1dc52b),_0x2345d7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25d68),_0x2345d7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25d68),_0x2345d7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37fa63),_0x2345d7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37fa63),_0x2345d7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3014fd),_0x2345d7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3014fd);}_acceptFormatSuggestionCallbackFactory(){const _0xf3a3fb=this['editor'],_0xc50932=_0xf3a3fb['model']['document']['selection'];return(_0x16e916,_0x195093)=>{_0xf3a3fb['model']['change'](_0x750093=>{const {commandName:_0x5cfa6f,commandParams:_0x3e030a}=_0x195093;let _0x5ea2ce=_0x16e916[0x0]['end']['nodeBefore'];_0x3e030a&&_0x3e030a[0x0]&&!0x1===_0x3e030a[0x0]['forceValue']&&(_0x5ea2ce=_0x16e916[0x0]['start']['nodeAfter']);const _0x536537=_0x750093['createRangeIn'](_0x5ea2ce);if('$graveyard'==_0x536537['root']['rootName'])return;const _0x5e5431=Array['from'](_0xc50932['getRanges']())['map'](_0x54b9bf=>rt['fromRange'](_0x54b9bf));_0x750093['setSelection'](_0x536537),_0xf3a3fb['commands']['get'](_0x5cfa6f)['refresh'](),_0x3e030a['push']({'forceDefaultExecution':!0x0}),_0xf3a3fb['execute'](_0x5cfa6f,..._0x3e030a);const _0x2dcfda=_0x5e5431['filter'](_0x27a235=>'$graveyard'!=_0x27a235['root']['rootName']);_0x2dcfda['length']>0x0&&_0x750093['setSelection'](_0x2dcfda);for(const _0x331960 of _0x5e5431)_0x331960['detach']();});};}_getCoordsForCells(_0x29f6ba){const _0x523958=this['editor']['plugins']['get']('TableUtils');let _0x573796=Number['MAX_SAFE_INTEGER'],_0x5000d7=Number['MIN_SAFE_INTEGER'],_0x1ceb2c=Number['MAX_SAFE_INTEGER'],_0x4060e1=Number['MIN_SAFE_INTEGER'];for(const _0x8a1b48 of _0x29f6ba){if('$graveyard'==_0x8a1b48['root']['rootName'])continue;const {row:_0x4a9b30,column:_0x526598}=_0x523958['getCellLocation'](_0x8a1b48),_0x4d82ee=_0x8a1b48['hasAttribute']('rowspan')?_0x8a1b48['getAttribute']('rowspan')-0x1:0x0,_0x3a71f5=_0x8a1b48['hasAttribute']('colspan')?_0x8a1b48['getAttribute']('colspan')-0x1:0x0;_0x573796=_0x4a9b30<_0x573796?_0x4a9b30:_0x573796,_0x5000d7=_0x4a9b30+_0x4d82ee>_0x5000d7?_0x4a9b30+_0x4d82ee:_0x5000d7,_0x1ceb2c=_0x526598<_0x1ceb2c?_0x526598:_0x1ceb2c,_0x4060e1=_0x526598+_0x3a71f5>_0x4060e1?_0x526598+_0x3a71f5:_0x4060e1;}return{'minRow':_0x573796,'maxRow':_0x5000d7,'minColumn':_0x1ceb2c,'maxColumn':_0x4060e1};}_setupColumnsRowsFixing(){const _0x5c21a2=this['editor'],_0x26bf83=_0x5c21a2['plugins']['get']('TrackChangesEditing'),_0x3025cb=_0x5c21a2['plugins']['get']('TableUtils');_0x5c21a2['model']['document']['on']('change:data',()=>{const _0x249398=Array['from'](_0x5c21a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bf557,data:_0x1cf413}of _0x249398){const {group:_0x2d0471,id:_0x307033,subType:_0x5667e6}=tt(_0x3bf557);if('suggestion'!=_0x2d0471)continue;if(null!=_0x1cf413['oldRange'])continue;const _0x34adfe=_0x26bf83['getSuggestion'](_0x307033);this['_tablePostFixingSubtypes']['includes'](_0x5667e6)&&this['_tableSuggestions']['add'](_0x34adfe);}},{'priority':'low'});const _0x1bbd4f=(_0x12db16,_0x3b04fe)=>{let _0x6cdb6a=!0x1;const _0xd16155=_0x3b04fe['createRangeOn'](_0x12db16),_0x12b6e7=_0x12db16['findAncestor']('table'),_0x4b2698=_0x3025cb['getCellLocation'](_0x12db16);for(const _0x14a354 of this['_tableSuggestions']){const _0x325484=_0x14a354['subType'],_0x51eff9=_0x325484['startsWith']('tablePaste'),_0xfaf181=_0x325484['substr'](_0x51eff9?0xa:0x5),_0x410c06=_0xfaf181['toLowerCase'](),_0x33c3d9=_0x410c06['substr'](0x0,0x3)+'span',_0x18dcdb='min'+_0xfaf181,_0x5f0c79='max'+_0xfaf181;if(!_0x14a354['isInContent'])continue;if(_0x12b6e7!=_0x14a354['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x14a354['isIntersectingWithRange'](_0xd16155))continue;const _0x229943=_0x12db16['hasAttribute'](_0x33c3d9)?_0x12db16['getAttribute'](_0x33c3d9)-0x1:0x0,_0x51e3ec=this['_getSuggestionCoords'](_0x14a354),_0x3721be=_0x51e3ec[_0x18dcdb],_0x2a4cbc=_0x51e3ec[_0x5f0c79];_0x3721be<=_0x4b2698[_0x410c06]&&_0x4b2698[_0x410c06]+_0x229943<=_0x2a4cbc&&(_0x14a354['addRange'](_0xd16155),_0x6cdb6a=!0x0);}return _0x6cdb6a;};_0x5c21a2['model']['document']['registerPostFixer'](_0x2302d1=>{let _0x37a252=!0x1;for(const _0xc13309 of _0x5c21a2['model']['document']['differ']['getChanges']())if('insert'==_0xc13309['type']){if('tableRow'==_0xc13309['name']){for(const _0x113739 of _0xc13309['position']['nodeAfter']['getChildren']())_0x37a252=_0x37a252||_0x1bbd4f(_0x113739,_0x2302d1);}else'tableCell'==_0xc13309['name']&&(_0x37a252=_0x37a252||_0x1bbd4f(_0xc13309['position']['nodeAfter'],_0x2302d1));}return _0x37a252;});}_getSuggestionCoords(_0x13ead8){return this['_getCoordsForCells'](_0x13ead8['getRanges']()['map'](_0x1d308c=>_0x1d308c['start']['nodeAfter']));}};function Pe(_0x495f04){return Array['from'](new Set(_0x495f04)['values']());}var xe=class extends _0x5cf544{static get requires(){return[Ue];}afterInit(){const _0x1e7a95=this['editor'],_0x5aafe9=_0x1e7a95['model']['document']['selection'],_0x4b32f3=_0x1e7a95['locale'];if(!_0x1e7a95['plugins']['has']('TableEditing'))return;const _0x45be78=_0x1e7a95['plugins']['get']('TrackChangesEditing'),_0x372de0=_0x1e7a95['plugins']['get']('TableUtils'),_0x1161c0=_0x1e7a95['plugins']['get'](Ue);_0x1161c0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x45be78['enableCommand']('mergeTableCells',()=>{const _0x6488a=_0x372de0['getSelectionAffectedTableCells'](_0x1e7a95['model']['document']['selection']);_0x1e7a95['model']['change'](()=>{_0x45be78['markMultiRangeBlockFormat'](_0x6488a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1e7a95['commands']['get']('mergeTableCells')['on']('execute',(_0x147a08,_0x1fb12b)=>{_0x1e7a95['commands']['get']('trackChanges')['value']&&(_0x1fb12b['length']>0x0&&_0x1fb12b[_0x1fb12b['length']-0x1]&&_0x1fb12b[_0x1fb12b['length']-0x1]['forceDefaultExecution']||_0x45be78['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x147a08['stop']());},{'priority':'highest'});for(const _0x5f5a00 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x59fb63=_0x1e7a95['commands']['get'](_0x5f5a00);_0x45be78['enableCommand'](_0x5f5a00,()=>{const _0x5d1333=_0x1e7a95['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x56ee03=>_0x56ee03['is']('element','tableCell')),_0x34d568=_0x59fb63['value'];_0x1e7a95['model']['change'](()=>{_0x45be78['markMultiRangeBlockFormat']([_0x5d1333,_0x34d568],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4f00c0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2050bb=_0x1e7a95['commands']['get'](_0x4f00c0);_0x45be78['enableCommand'](_0x4f00c0,()=>{const _0x52a910=_0x372de0['getSelectionAffectedTableCells'](_0x1e7a95['model']['document']['selection']),_0x3f6cf3=_0x52a910[0x0]['findAncestor']('table'),_0x3fce34=new Set();for(const _0x1acb35 of _0x52a910){const {column:_0x540710,row:_0x5e6df8}=_0x372de0['getCellLocation'](_0x1acb35),_0x267c97='horizontally'==_0x2050bb['direction']?_0x372de0['createTableWalker'](_0x3f6cf3,{'startRow':_0x5e6df8,'endRow':_0x5e6df8,'includeAllSlots':!0x0}):_0x372de0['createTableWalker'](_0x3f6cf3,{'column':_0x540710,'includeAllSlots':!0x0});for(const {cell:_0x31180e}of _0x267c97)_0x3fce34['add'](_0x31180e);}_0x1e7a95['model']['change'](()=>{_0x45be78['markMultiRangeBlockFormat'](_0x52a910,{'commandName':_0x4f00c0,'commandParams':[]},Array['from'](_0x3fce34),_0x4f00c0);});});}_0x45be78['descriptionFactory']['registerDescriptionCallback'](_0xe0dc1=>{if('formatBlock'!=_0xe0dc1['type']&&'formatInline'!=_0xe0dc1['type'])return;const {data:_0x5e543b}=_0xe0dc1;return _0x5e543b&&'mergeTableCells'==_0x5e543b['commandName']?{'type':'format','content':Mt(_0x4b32f3,'*Merge\x20cells*')}:void 0x0;}),_0x45be78['descriptionFactory']['registerDescriptionCallback'](_0x40ebb5=>{if('formatBlock'!=_0x40ebb5['type']&&'formatInline'!=_0x40ebb5['type'])return;const {data:_0x46a4a7}=_0x40ebb5;return _0x46a4a7?'splitTableCellVertically'==_0x46a4a7['commandName']?{'type':'format','content':Mt(_0x4b32f3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x46a4a7['commandName']?{'type':'format','content':Mt(_0x4b32f3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1438a3=_0x1161c0['_acceptFormatSuggestionCallbackFactory']();for(const _0x3a03db of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x45be78['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a03db,'accept',_0x1438a3);for(const _0x727347 of['splitTableCellVertically','splitTableCellHorizontally'])_0x45be78['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x727347,'accept',_0x1845bc=>{_0x1e7a95['model']['change'](_0x34de53=>{const _0x931b83=Array['from'](_0x1845bc)['filter'](_0x16e794=>'$graveyard'!=_0x16e794['root']['rootName']&&!!_0x16e794['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x931b83['length'])return;const _0x163804=Array['from'](_0x5aafe9['getRanges']())['map'](_0x15fdea=>rt['fromRange'](_0x15fdea));_0x34de53['setSelection'](_0x931b83),_0x1e7a95['commands']['get'](_0x727347)['refresh'](),_0x1e7a95['execute'](_0x727347,{'forceDefaultExecution':!0x0});const _0x4d8fde=_0x163804['filter'](_0x412c32=>'$graveyard'!=_0x412c32['root']['rootName']);_0x4d8fde['length']>0x0&&_0x34de53['setSelection'](_0x4d8fde);for(const _0x921eea of _0x163804)_0x921eea['detach']();});});_0x45be78['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x325569=>{_0x1e7a95['model']['change'](_0x518edb=>{const _0x416209=Array['from'](_0x5aafe9['getRanges']())['map'](_0x28defa=>rt['fromRange'](_0x28defa));_0x518edb['setSelection'](_0x325569),_0x1e7a95['commands']['get']('mergeTableCells')['refresh'](),_0x1e7a95['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4d2662=_0x416209['filter'](_0x1d7aff=>'$graveyard'!=_0x1d7aff['root']['rootName']);_0x4d2662['length']>0x0&&_0x518edb['setSelection'](_0x4d2662);for(const _0x5c0bbe of _0x416209)_0x5c0bbe['detach']();});});for(const _0x339d53 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x21f27e=_0x1e7a95['commands']['get'](_0x339d53);_0x21f27e['on']('set:isEnabled',(_0x4c12df,_0x90ed36,_0x10dc17)=>{if(_0x10dc17){const _0x41023c=_0x1e7a95['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3bfd68=>_0x3bfd68['is']('element','tableCell'));this['_areMergableCells'](_0x21f27e['value'],_0x41023c)||(_0x4c12df['return']=!0x1,_0x4c12df['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x55b686=this['editor']['commands']['get']('mergeTableCells'),_0x3acebf=this['editor']['plugins']['get']('TableUtils');if(!_0x55b686['isEnabled'])return!0x1;const _0x41f2f3=_0x3acebf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b22f9 of _0x41f2f3)for(const _0x5b7ccb of _0x41f2f3)if(_0x2b22f9!=_0x5b7ccb&&!this['_areMergableCells'](_0x2b22f9,_0x5b7ccb))return!0x1;return!0x0;}['_areMergableCells'](_0x124b41,_0x47c450){const _0x2f6c45=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdf5520=this['editor']['model']['createRangeOn'](_0x124b41),_0x42ca12=this['editor']['model']['createRangeOn'](_0x47c450),_0x3f8627=new Set(),_0x192f0e=new Set();for(const _0x798fe7 of _0x2f6c45['getSuggestions']())if(('insertion'==_0x798fe7['type']||'deletion'==_0x798fe7['type']||'mergeTableCells'==_0x798fe7['subType'])&&_0x798fe7['isInContent']){for(const _0x462448 of _0x798fe7['getRanges']())_0x462448['containsRange'](_0xdf5520,!0x0)&&_0x3f8627['add'](_0x798fe7['type']+':'+_0x798fe7['author']['id']),_0x462448['containsRange'](_0x42ca12,!0x0)&&_0x192f0e['add'](_0x798fe7['type']+':'+_0x798fe7['author']['id']);}if(_0x3f8627['size']!=_0x192f0e['size'])return!0x1;for(const _0x180d81 of _0x3f8627)if(!_0x192f0e['has'](_0x180d81))return!0x1;return!0x0;}},Ge=class extends _0x5cf544{static get requires(){return[Ue];}afterInit(){const _0x417eb3=this['editor'];if(!_0x417eb3['plugins']['has']('TableEditing'))return;const _0x462901=_0x417eb3['locale'],_0x1ed05a=_0x417eb3['plugins']['get']('TrackChangesEditing');_0x1ed05a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1ed05a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1ed05a['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x462901,'FORMAT_HEADER_ROW')),_0x1ed05a['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x462901,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x4b00c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18defc=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x4b00c3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x18defc),_0x4b00c3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x18defc),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0xffbdee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x189989=this['editor']['plugins']['get']('TableUtils');function _0x2b822f({showActiveMarker:_0x23d5b5=!0x0,setDataAttribute:_0x5c12fb=!0x0}={}){return(_0x1dbd61,_0x56832d,_0x2b7b35)=>{const {type:_0x16703b,id:_0x37690c}=tt(_0x56832d['markerName']);if(!_0xffbdee['hasSuggestion'](_0x37690c))return;const _0x23322b=_0xffbdee['getSuggestion'](_0x37690c),_0x25d6e0=_0x23322b['data'];if('formatBlock'!=_0x23322b['type']||!_0x25d6e0||'setTableColumnHeader'!=_0x25d6e0['commandName'])return;if(_0x56832d['item'])return void _0x1dbd61['stop']();if(!_0x2b7b35['consumable']['consume'](_0x56832d['markerRange'],_0x1dbd61['name']))return;const _0x56f7ed=_0x56832d['markerRange']['start']['nodeAfter'],_0x22fdd3=_0x56832d['markerRange']['end']['nodeBefore'],_0x50e53c=_0x56f7ed['parent']['parent'],{column:_0x3f6c7c}=_0x189989['getCellLocation'](_0x56f7ed),{column:_0x467b8b}=_0x189989['getCellLocation'](_0x22fdd3);for(let _0x150f4b=_0x3f6c7c;_0x150f4b<=_0x467b8b;_0x150f4b++){const _0x56eb49=_0x189989['createTableWalker'](_0x50e53c,{'column':_0x150f4b,'includeAllSlots':!0x1});for(const _0x48ad0c of _0x56eb49){const _0x2e5bef=_0x48ad0c['cell'],_0x1b770e=_0x2b7b35['mapper']['toViewElement'](_0x2e5bef);_0x2b7b35['writer']['addClass']('ck-suggestion-marker-'+_0x16703b,_0x1b770e),_0x5c12fb&&_0x2b7b35['writer']['setAttribute']('data-suggestion',_0x37690c,_0x1b770e),_0x2b7b35['mapper']['bindElementToMarker'](_0x1b770e,_0x56832d['markerName']),_0x23d5b5&&(_0xffbdee['activeMarkers']['includes'](_0x56832d['markerName'])?_0x2b7b35['writer']['addClass']('ck-suggestion-marker--active',_0x1b770e):_0x2b7b35['writer']['removeClass']('ck-suggestion-marker--active',_0x1b770e));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2b822f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5555c2,_0x41426f,_0x2db4fb)=>{_0x2db4fb['options']['showSuggestionHighlights']&&_0x2b822f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5555c2,_0x41426f,_0x2db4fb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x31c81c,_0x445919,_0x1a225c)=>{const {type:_0x584782,id:_0x555577}=tt(_0x445919['markerName']);if(!_0xffbdee['hasSuggestion'](_0x555577))return;const _0x3be3b0=_0xffbdee['getSuggestion'](_0x555577),_0x4c79d6=_0x3be3b0['data'];if('formatBlock'!=_0x3be3b0['type']||!_0x4c79d6||'setTableColumnHeader'!=_0x4c79d6['commandName'])return;const _0xe06eca=_0x1a225c['mapper']['markerNameToElements'](_0x445919['markerName']);if(_0xe06eca){for(const _0x514f22 of _0xe06eca)_0x1a225c['writer']['removeClass']('ck-suggestion-marker-'+_0x584782,_0x514f22),_0x1a225c['writer']['removeClass']('ck-suggestion-marker--active',_0x514f22),_0x1a225c['writer']['removeAttribute']('data-suggestion',_0x514f22),_0x1a225c['mapper']['unbindElementFromMarkerName'](_0x514f22,_0x445919['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x122a66=this['editor'],_0x4594db=_0x122a66['locale'];function _0x4e60df(_0x5c49c3){return{'type':'format','content':Mt(_0x4594db,'*Format:*\x20%0',_0x5c49c3)};}_0x122a66['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f1d30=>{if('formatBlock'!=_0x3f1d30['type'])return;const {data:_0x4d7512}=_0x3f1d30;return _0x4d7512?'setTableRowHeader'==_0x4d7512['commandName']?_0x4d7512['commandParams'][0x0]['forceValue']?_0x4e60df(Mt(_0x4594db,'FORMAT_HEADER_ROW')):_0x4e60df(Mt(_0x4594db,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x4d7512['commandName']?_0x4d7512['commandParams'][0x0]['forceValue']?_0x4e60df(Mt(_0x4594db,'FORMAT_HEADER_COLUMN')):_0x4e60df(Mt(_0x4594db,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x5cf544{static get requires(){return[Ue];}afterInit(){const _0x16ea3d=this['editor'];if(!_0x16ea3d['plugins']['has']('TableEditing')||!_0x16ea3d['config']['get']('table.enableFooters'))return;const _0x1384bd=_0x16ea3d['locale'],_0x4e07ad=_0x16ea3d['plugins']['get']('TrackChangesEditing');_0x4e07ad['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x4e07ad['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x1384bd,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x5cf544{afterInit(){const _0x54cb51=this['editor'],_0x2b46de=_0x54cb51['locale'],_0x504bf7=_0x54cb51['plugins']['get']('TrackChangesEditing');function _0x53c5c1(_0x3516e0){return{'type':'format','content':''+Mt(_0x2b46de,'*Set\x20table\x20type:*\x20%0',_0x3516e0)};}_0x54cb51['plugins']['has']('TableLayout')&&(_0x504bf7['enableCommand']('insertTableLayout'),_0x504bf7['enableDefaultAttributesIntegration']('tableType'),_0x504bf7['descriptionFactory']['registerElementLabel'](_0x2f5af2=>_0x2f5af2['is']('element','table')&&'layout'===_0x2f5af2['getAttribute']('tableType'),_0x59f61d=>Mt(_0x2b46de,'ELEMENT_LAYOUT_TABLE',_0x59f61d)),_0x504bf7['descriptionFactory']['registerDescriptionCallback'](_0x179067=>{const {data:_0x781031}=_0x179067;if(_0x781031&&'tableType'==_0x781031['key'])switch(_0x781031['newValue']){case'layout':return _0x53c5c1(Mt(_0x2b46de,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x53c5c1(Mt(_0x2b46de,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](We['map'](_0x4db097=>[_0x4db097,null]));var je=class extends _0x5cf544{static get requires(){return[Ue];}afterInit(){const _0x3502a3=this['editor'];if(!_0x3502a3['plugins']['has']('TableClipboard'))return;const _0x4c39cf=_0x3502a3['plugins']['get']('TrackChangesEditing'),_0x41bccb=_0x3502a3['plugins']['get']('TableUtils'),_0xd9ca21=_0x3502a3['plugins']['get'](Ue),_0x5a07a3=_0x3502a3['plugins']['get']('TableClipboard'),_0x5b489d=_0x3502a3['plugins']['get']('TableSelection'),_0x5da6f4=_0x3502a3['plugins']['get'](gt);_0xd9ca21['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3502a3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3502a3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5403b4=null,_0x37ff7e=!0x1;_0x5da6f4['on']('contentInsertion',(_0x9152aa,_0x126d1d)=>{_0x37ff7e='paste'===_0x126d1d['method'];}),_0x3502a3['model']['on']('insertContent',(_0x2e0fad,_0x15261c)=>{if(!_0x37ff7e&&null===_0x5b489d['getSelectedTableCells']())return;const [_0xc47382,_0x1adf82]=_0x15261c,_0x3bba51=_0x15261c[_0x15261c['length']-0x1];_0x3bba51&&_0x3bba51['forceDefaultExecution']||_0x4c39cf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4be625,_0x54172d,_0x41368d,_0xe35b3a,_0x5aeb2c){if(_0x54172d&&!_0x54172d['is']('documentSelection'))return!0x1;const _0x30cb56=_0x5aeb2c['getTableIfOnlyTableInContent'](_0x4be625,_0x41368d);if(!_0x30cb56||!Ke(_0x30cb56,void 0x0,_0xe35b3a))return!0x1;const _0xfed026=_0xe35b3a['getSelectionAffectedTableCells'](_0x41368d['document']['selection']);if(!_0xfed026['length'])return!0x1;const _0x3ee6a9=_0xfed026[0x0]['findAncestor']('table'),_0xe9beb=_0xe35b3a['getRowIndexes'](_0xfed026),_0x20cbde=_0xe35b3a['getColumnIndexes'](_0xfed026),_0x3d967e={'startRow':_0xe9beb['first'],'endRow':_0xe9beb['last'],'startColumn':_0x20cbde['first'],'endColumn':_0x20cbde['last']};return 0x1==_0xfed026['length']&&(_0x3d967e['endRow']+=_0xe35b3a['getRows'](_0x30cb56)-0x1,_0x3d967e['endColumn']+=_0xe35b3a['getColumns'](_0x30cb56)-0x1),Ke(_0x3ee6a9,_0x3d967e,_0xe35b3a);}(_0xc47382,_0x1adf82,_0x3502a3['model'],_0x41bccb,_0x5a07a3)&&(_0x2e0fad['stop'](),_0x5403b4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3502a3['model']['change'](()=>{_0x3502a3['model']['insertContent'](_0x15261c[0x0],_0x15261c[0x1],_0x15261c[0x2],{'forceDefaultExecution':!0x0});const _0x154107=_0x4aa562(),{rowInsertionRanges:_0x12a74c,columnInsertionRanges:_0x483e98,insertionRanges:_0x5cef0b,deletionRanges:_0x14f5e4,cells:_0x453001}=_0x5403b4;_0x12a74c['length']&&_0x4c39cf['markMultiRangeInsertion'](_0x12a74c,'tablePasteRow',{'tablePasteChainId':_0x154107}),_0x483e98['length']&&_0x4c39cf['markMultiRangeInsertion'](_0x483e98,'tablePasteColumn',{'tablePasteChainId':_0x154107}),_0x5cef0b['length']&&(_0x4c39cf['markMultiRangeInsertion'](_0x5cef0b,'tablePaste',{'tablePasteChainId':_0x154107,'skipNestingCheck':!0x0}),_0x5cef0b['forEach'](_0x2d3f60=>_0x2d3f60['detach']?.())),_0x14f5e4['length']&&(_0x4c39cf['markMultiRangeDeletion'](_0x14f5e4,'tablePaste',{'tablePasteChainId':_0x154107,'skipNestingCheck':!0x0}),_0x14f5e4['forEach'](_0x31ceac=>_0x31ceac['detach']?.()));const _0x4443c0=_0x4c39cf['markMultiRangeBlockFormat'](_0x453001['map'](({element:_0x2686fa})=>_0x2686fa),{'formatGroupId':_0x4aa562()},[],'tablePasteCell',{'tablePasteChainId':_0x154107});if(_0x4443c0){const _0x104d5d=_0x4443c0['getMarkers'](),_0x5439db=[];for(const {element:_0x5c632d,attributes:_0x32c345}of _0x453001){if(!_0x32c345)continue;const _0x9bae09=_0x3502a3['model']['createRangeOn'](_0x5c632d),_0x3f482b=_0x104d5d['find'](_0x27a6b0=>_0x27a6b0['getRange']()['isEqual'](_0x9bae09));_0x3f482b&&_0x5439db['push']([_0x3f482b['name'],_0x32c345]);}_0x5439db['length']&&_0x4443c0['setAttribute']('markerAttributes',Object['fromEntries'](_0x5439db));}_0x5403b4=null;}));},{'priority':_0x3fd845['high']+0xa}),_0x5da6f4['on']('contentInsertion',()=>{_0x37ff7e=!0x1;},{'priority':'lowest'}),_0x3502a3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x19e49c,_0x1c871e)=>{const [_0x482938,_0x4faa26,,_0x32ad8d]=_0x1c871e;if(!_0x5403b4)return;_0x19e49c['stop']();const _0x1242f0=_0x482938['cell'],_0x515ad1=_0x4faa26,_0x25a905=ze(_0x1242f0),_0x2888b0=ze(_0x515ad1);_0x19e49c['return']=_0x1242f0;let _0x3cf7a2=null,_0x484bed=null;if(_0x2888b0||_0x25a905){if(_0x25a905&&!_0x2888b0){_0x32ad8d['remove'](_0x1242f0['getChild'](0x0));for(const _0x1a8443 of Array['from'](_0x515ad1['getChildren']()))_0x32ad8d['insert'](_0x1a8443,_0x1242f0,'end');const _0x4da89e=_0x5403b4['rowInsertionIndexes']['includes'](_0x482938['row']),_0x69170a=_0x5403b4['columnInsertionIndexes']['includes'](_0x482938['column']);_0x4da89e||_0x69170a||(_0x3cf7a2=rt['fromRange'](_0x32ad8d['createRangeIn'](_0x1242f0)));}else _0x2888b0&&!_0x25a905&&(_0x484bed=_0x32ad8d['createRangeIn'](_0x1242f0));}else{const _0x3740e6=_0x32ad8d['createElement']('tableCellSuggestion'),_0x248969=_0x32ad8d['createElement']('tableCellSuggestion');_0x32ad8d['wrap'](_0x32ad8d['createRangeIn'](_0x1242f0),_0x248969),_0x32ad8d['insert'](_0x3740e6,_0x1242f0,0x0);for(const _0x1cbccb of Array['from'](_0x515ad1['getChildren']()))_0x32ad8d['insert'](_0x1cbccb,_0x3740e6,'end');_0x3cf7a2=rt['fromRange'](_0x32ad8d['createRangeOn'](_0x3740e6)),_0x484bed=rt['fromRange'](_0x32ad8d['createRangeOn'](_0x248969));}const _0x5886b9=Array['from'](_0x515ad1['getAttributes']())['filter'](([_0xe221c3])=>We['includes'](_0xe221c3));_0x5403b4['cells']['push']({'element':_0x1242f0,'attributes':_0x5886b9['length']?Object['fromEntries'](_0x5886b9):null}),_0x3cf7a2&&_0x5403b4['insertionRanges']['push'](_0x3cf7a2),_0x484bed&&_0x5403b4['deletionRanges']['push'](_0x484bed);},{'priority':'high'}),_0x41bccb['on']('insertColumns',(_0x1cf9ce,_0x1d50d9)=>{const [_0xc25d98,_0x418eb9={}]=_0x1d50d9;if(!_0x5403b4)return;const _0x2622b2=_0x418eb9['at']||0x0,_0x4121ab=_0x418eb9['columns']||0x1;_0x5403b4['columnInsertionIndexes']=new Array(_0x4121ab)['fill'](_0x2622b2)['map']((_0x545e19,_0x12d780)=>_0x545e19+_0x12d780);for(const {cell:_0x1426f2}of _0x41bccb['createTableWalker'](_0xc25d98,{'startColumn':_0x2622b2,'endColumn':_0x2622b2+_0x4121ab-0x1}))_0x5403b4['columnInsertionRanges']['push'](_0x3502a3['model']['createRangeOn'](_0x1426f2));},{'priority':'low'}),_0x41bccb['on']('insertRows',(_0x560810,_0x9a6b71)=>{const [_0x17bb1e,_0x26e1df={}]=_0x9a6b71;if(!_0x5403b4)return;const _0x410ac3=_0x26e1df['at']||0x0,_0x52debc=_0x26e1df['rows']||0x1;_0x5403b4['rowInsertionIndexes']=new Array(_0x52debc)['fill'](_0x410ac3)['map']((_0x1e542c,_0x277dc3)=>_0x1e542c+_0x277dc3);for(const {cell:_0x44d69e}of _0x41bccb['createTableWalker'](_0x17bb1e,{'startRow':_0x410ac3,'endRow':_0x410ac3+_0x52debc-0x1}))_0x5403b4['rowInsertionRanges']['push'](_0x3502a3['model']['createRangeOn'](_0x44d69e));},{'priority':'low'}),_0x4c39cf['descriptionFactory']['registerDescriptionCallback'](_0x4febd5=>{if(_0x4febd5['subType']&&_0x4febd5['subType']['startsWith']('tablePaste'))return _0x4febd5['previous']?{}:{'type':'insertion','content':Mt(_0x3502a3['locale'],'*Replace\x20table\x20cells*')};});const _0x196b2a=()=>!0x1;for(const _0x224ecd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c39cf['_suggestionFactory']['registerCustomCallback']('insertion',_0x224ecd,'join',_0x196b2a),_0x4c39cf['_suggestionFactory']['registerCustomCallback']('deletion',_0x224ecd,'join',_0x196b2a),_0x4c39cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x224ecd,'join',_0x196b2a);_0x4c39cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x196b2a),_0x4c39cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5d38f7,_0x5a25fd,_0x6e60d0)=>{const _0x989d0b=_0x5d38f7['map'](_0x39bdbc=>_0x39bdbc['getContainedElement']())['filter'](_0x387655=>_0x387655),_0x211e8d=new Map(_0x989d0b['map'](_0x16e9ab=>[_0x16e9ab,null]));if(_0x5403b4){for(const {element:_0x1e4c5e,attributes:_0x19b40e}of _0x5403b4['cells'])_0x19b40e&&_0x211e8d['set'](_0x1e4c5e,_0x19b40e);}else{if(_0x6e60d0&&_0x6e60d0['markerAttributes'])for(const [_0x572f4f,_0x5c2ab7]of Object['entries'](_0x6e60d0['markerAttributes'])){const _0x575d4b=_0x3502a3['model']['markers']['get'](_0x572f4f),_0x2ff1bd=_0x575d4b?_0x575d4b['getRange']()['getContainedElement']():null;_0x2ff1bd&&_0x211e8d['set'](_0x2ff1bd,_0x5c2ab7);}}_0x3502a3['model']['change'](_0x4e9b69=>{for(const [_0x198fc9,_0x57d309]of _0x211e8d)_0x4e9b69['setAttributes']({...Ve,..._0x57d309},_0x198fc9);});});const _0x23dbca=(_0x279ec3,_0x10010a)=>{_0x4c39cf['_suggestionFactory']['registerCustomCallback'](_0x279ec3,'tablePaste',_0x10010a,(_0x159ab4,_0x47315b,_0x45d3bc)=>{_0x3502a3['model']['change'](_0x3f413a=>{const _0x30e7cb=[];for(const _0xeb202a of _0x159ab4){const _0x4e067f=_0xeb202a['start']['nodeAfter'];_0x4e067f['is']('element','tableCellSuggestion')&&_0x30e7cb['push'](_0x4e067f);}_0x4c39cf['_suggestionFactory']['getSuggestionCallback'](_0x279ec3,null,_0x10010a)(_0x159ab4,_0x47315b,_0x45d3bc);for(const _0x118682 of _0x30e7cb)'$graveyard'!=_0x118682['root']['rootName']&&_0x3f413a['unwrap'](_0x118682);});});};_0x23dbca('insertion','accept'),_0x23dbca('insertion','discard'),_0x23dbca('deletion','accept'),_0x23dbca('deletion','discard'),_0x4c39cf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5ae0dd=>{const _0x42f1e2=_0x5ae0dd['map'](_0x195cca=>_0x195cca['getContainedElement']()),_0x2a6e9d=_0x42f1e2[0x0]['findAncestor']('table'),{minRow:_0x49f9d9,maxRow:_0x92c8ef}=_0xd9ca21['_getCoordsForCells'](_0x42f1e2);_0x41bccb['removeRows'](_0x2a6e9d,{'at':_0x49f9d9,'rows':_0x92c8ef-_0x49f9d9+0x1});}),_0x4c39cf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1c5986=>{const _0x1c4999=_0x1c5986['map'](_0x364d8e=>_0x364d8e['getContainedElement']()),_0x4defdd=_0x1c4999[0x0]['findAncestor']('table'),{minColumn:_0x5f4778,maxColumn:_0x3c983a}=_0xd9ca21['_getCoordsForCells'](_0x1c4999);_0x41bccb['removeColumns'](_0x4defdd,{'at':_0x5f4778,'columns':_0x3c983a-_0x5f4778+0x1});});const _0x10a8b4=(_0x551377,_0x421567)=>{if(!_0x421567['subType']||!_0x421567['subType']['startsWith']('tablePaste'))return;const _0x1ac73b=_0x421567['attributes']['tablePasteChainId'],_0x1add07=_0x4c39cf['getSuggestions']()['filter'](_0x588e5e=>_0x588e5e['isInContent']&&_0x588e5e['attributes']&&_0x588e5e['attributes']['tablePasteChainId']==_0x1ac73b);_0x1add07['length']&&_0x421567['getAllAdjacentSuggestions']()['length']!=_0x1add07['length']&&_0x1add07['reduce']((_0x35343f,_0x5b869d)=>(_0x35343f['next']=_0x5b869d,_0x5b869d['previous']=_0x35343f,_0x5b869d));};function _0x3d4ac7(_0x5c8345,_0x489313=!0x0){const {id:_0x53d448,authorId:_0x3efc5a}=tt(_0x5c8345['markerName']),_0x59a5f0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x16b9b8=_0x4c39cf['activeMarkers']['includes'](_0x5c8345['markerName']);return _0x16b9b8&&_0x59a5f0['push']('ck-suggestion-marker--active'),{'classes':_0x59a5f0,'attributes':{'data-suggestion':_0x53d448,'data-author-id':_0x3efc5a},'priority':_0x16b9b8&&_0x489313?0xbc2:0xbb8};}_0x4c39cf['on']('suggestionLoaded',_0x10a8b4,{'priority':'high'}),_0x4c39cf['on']('suggestionUnloaded',_0x10a8b4,{'priority':'high'}),_0x3502a3['model']['document']['registerPostFixer'](()=>{let _0x5a212a=!0x1;const _0x5c23e5=Array['from'](_0x3502a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42b185,data:_0x16ec0c}of _0x5c23e5){const {group:_0x41c5ef,type:_0x4819a4,id:_0x5b9922}=tt(_0x42b185);if('suggestion'!=_0x41c5ef||'deletion'!=_0x4819a4||_0x16ec0c['oldRange'])continue;if(!_0x4c39cf['hasSuggestion'](_0x5b9922))continue;const _0x3b4654=_0x4c39cf['getSuggestion'](_0x5b9922)['getRanges'](),_0x5d5c71=_0x3502a3['plugins']['get']('Users')['me'];for(const _0x3cc255 of _0x4c39cf['getSuggestions']())if(_0x3cc255['isInContent']&&_0x3cc255['author']==_0x5d5c71&&'formatBlock'==_0x3cc255['type']&&'tablePasteCell'==_0x3cc255['subType']&&_0x3cc255['getRanges']()['every'](_0x7e8180=>_0x3b4654['some'](_0x1c7db7=>_0x1c7db7['containsRange'](_0x7e8180,!0x0)))){for(const _0x223f03 of _0x3cc255['getAllAdjacentSuggestions']())_0x223f03['isInContent']&&(_0x223f03['discard'](),_0x5a212a=!0x0);}}return _0x5a212a;}),_0x3502a3['model']['document']['registerPostFixer'](_0x52e47d=>{const _0x25e1f1=_0x3502a3['commands']['get']('redo');if(!_0x25e1f1||!_0x25e1f1['_createdBatches']['has'](_0x52e47d['batch']))return!0x1;let _0x418b93=!0x1;const _0x35a068=_0x3502a3['plugins']['get']('Users')['me'],_0x5db554=_0x3502a3['model']['document']['differ']['getChanges'](),_0xf20bf6=Array['from'](_0x3502a3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d5d34,data:_0x1139aa})=>{const {group:_0x242011,subType:_0xe28300,authorId:_0x45b59c}=tt(_0x3d5d34);return'suggestion'==_0x242011&&'tablePaste'==_0xe28300&&_0x45b59c==_0x35a068['id']&&!_0x1139aa['oldRange'];});for(const _0x32f087 of _0x5db554){if('insert'!=_0x32f087['type']||'tableCellSuggestion'!=_0x32f087['name']||0x1!=_0x32f087['length'])continue;const _0xb68e0c=_0x52e47d['createRange'](_0x32f087['position'],_0x32f087['position']['getShiftedBy'](0x1));if(!_0xf20bf6['find'](({data:_0x139be1})=>_0x139be1['newRange']['isEqual'](_0xb68e0c))){for(const {name:_0x4d2996,data:_0x1ad5d4}of _0xf20bf6)if(_0xb68e0c['containsRange'](_0x1ad5d4['newRange'])){_0x52e47d['updateMarker'](_0x4d2996,{'range':_0xb68e0c}),_0x418b93=!0x0;break;}}}return _0x418b93;}),_0x3502a3['model']['document']['registerPostFixer'](_0x366e2a=>{let _0x2b3fec=!0x1;const _0x576823=_0x3502a3['plugins']['get']('Users')['me'],_0x244b17=_0x4c39cf['getSuggestions']()['filter'](_0x2f7754=>_0x2f7754['isInContent']&&_0x2f7754['author']==_0x576823),_0x4b0410=new Set(),_0x17d225=new Set();for(const _0x1f8ad4 of _0x244b17)if('tablePaste'==_0x1f8ad4['subType'])for(const _0x572b7c of _0x1f8ad4['getMarkers']()){const _0x56c798=_0x572b7c['getRange']()['getContainedElement']();if(_0x56c798){if(_0x56c798['is']('element','tableCellSuggestion')&&ze(_0x56c798)){_0x1f8ad4['removeMarker'](_0x572b7c['name']),_0x4b0410['add'](_0x56c798),_0x2b3fec=!0x0;const _0x1be2f1=_0x56c798['nextSibling'],_0x43bf93=_0x56c798['previousSibling'],_0x48175c=_0x1be2f1&&_0x1be2f1['is']('element','tableCellSuggestion'),_0x11ce6a=_0x43bf93&&_0x43bf93['is']('element','tableCellSuggestion');_0x48175c&&!_0x4b0410['has'](_0x1be2f1)&&_0x17d225['add'](_0x1be2f1),_0x11ce6a&&!_0x4b0410['has'](_0x43bf93)&&_0x17d225['add'](_0x43bf93);}else _0x56c798['is']('element','paragraph')&&_0x56c798['isEmpty']&&(_0x1f8ad4['removeMarker'](_0x572b7c['name']),_0x2b3fec=!0x0);}}else{if('tablePasteCell'==_0x1f8ad4['subType']){if(!_0x1f8ad4['attributes']||!_0x1f8ad4['attributes']['tablePasteChainId'])continue;const _0x204c55=_0x1f8ad4['attributes']['markerAttributes'];if(_0x204c55&&Object['keys'](_0x204c55)['length'])continue;const _0x12603f=_0x1f8ad4['attributes']['tablePasteChainId'];let _0x4e8dad=!0x0,_0x454984=!0x0;for(const _0x3db4ce of _0x244b17)if(_0x3db4ce['subType']&&_0x3db4ce['subType']['startsWith']('tablePaste')){if(!_0x3db4ce['attributes']['tablePasteChainId']){_0x454984=!0x1;break;}if(_0x3db4ce['id']!=_0x1f8ad4['id']&&_0x3db4ce['attributes']['tablePasteChainId']==_0x12603f){_0x4e8dad=!0x1;break;}}_0x454984&&_0x4e8dad&&(_0x1f8ad4['removeMarkers'](),_0x2b3fec=!0x0);}}for(const _0x3a1e90 of _0x4b0410)_0x366e2a['remove'](_0x3a1e90);for(const _0x26d34c of _0x17d225)_0x366e2a['unwrap'](_0x26d34c);return _0x2b3fec;}),_0x3502a3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x35220d=>_0x3d4ac7(_0x35220d),'converterPriority':'high'}),_0x3502a3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5df068,_0x336dd6)=>_0x336dd6['options']['showSuggestionHighlights']?_0x3d4ac7(_0x5df068,!0x1):null,'converterPriority':'high'});const _0x452074=_0x3502a3['editing']['view'];this['listenTo'](_0x452074['document'],'clipboardOutput',(_0xf2820a,_0x17d2d3)=>{const _0x146ddf=[];for(const _0x512a4a of _0x452074['createRangeIn'](_0x17d2d3['content'])['getItems']())_0x512a4a['is']('element','suggestion-td')&&_0x146ddf['push'](_0x512a4a);_0x452074['change'](_0x58f924=>{for(const _0x4c21b5 of _0x146ddf)_0x58f924['move'](_0x58f924['createRangeIn'](_0x4c21b5),_0x58f924['createPositionBefore'](_0x4c21b5)),_0x58f924['remove'](_0x4c21b5);});});}};function ze(_0x351bbd){if(_0x351bbd['isEmpty'])return!0x0;const _0x13714f=_0x351bbd['getChild'](0x0);return _0x13714f['is']('element','paragraph')&&_0x13714f['isEmpty'];}function Ke(_0x302f03,_0x57e894={},_0x3663ca){for(const {isAnchor:_0x5db541,cellHeight:_0x25c38e,cellWidth:_0x326027}of _0x3663ca['createTableWalker'](_0x302f03,{'includeAllSlots':!0x0,..._0x57e894}))if(!_0x5db541||0x1!=_0x25c38e||0x1!=_0x326027)return!0x1;return!0x0;}var Xe=class extends _0x5cf544{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xb460cf=this['editor']['plugins']['get']('TrackChangesEditing');_0xb460cf['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0xb460cf['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0xb460cf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xb460cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x22522e=_0xb460cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0xb460cf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x27351c,_0x2f56b6)=>{_0x22522e(_0x27351c,_0x2f56b6),this['_restoreCellWidths'](_0x27351c[0x0]['start']['nodeAfter'],_0x2f56b6['commandParams'][0x0]['cellWidths']);}),_0xb460cf['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x2d0ff8,_0x1dcb5b){const _0x4e01b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b2dae=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49178f=_0x1dcb5b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x76031=_0x3b2dae['getColumnGroupElement'](_0x49178f);let _0x49204c=_0x76031?_0x3b2dae['getTableColumnsWidths'](_0x76031):null,_0x4e2073=_0x49178f['getAttribute']('tableWidth')||null;const _0x1fcd89=_0x1dcb5b['tableWidth']||_0x4e2073,_0x4cf98a=_0x1dcb5b['columnWidths']||_0x49204c;let _0x34edb6=this['_getCellWidths'](_0x49178f);const _0x396c19=this['_foldResizeTableSuggestion'](_0x49178f);_0x396c19&&(_0x4e2073=_0x396c19['tableWidth'],_0x49204c=_0x396c19['columnWidths'],_0x34edb6=_0x396c19['cellWidths']||_0x34edb6),_0x2d0ff8({'table':_0x49178f,'tableWidth':_0x1fcd89,'columnWidths':_0x4cf98a}),_0x4e01b9['markBlockFormat'](_0x49178f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e2073,'columnWidths':_0x49204c,'cellWidths':_0x34edb6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x3b6950,_0xca7244={}){if(void 0x0===_0xca7244['value']||''===_0xca7244['value'])return void _0x3b6950(_0xca7244);const _0x20852c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ef2ec=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xaef722=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0xca7244['batch']||(_0xca7244['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0xca7244['batch'],()=>{const _0x4c112b=_0x4ef2ec['getColumnGroupElement'](_0xaef722);let _0x1f7de5=_0x4c112b?_0x4ef2ec['getTableColumnsWidths'](_0x4c112b):null,_0x26c0c0=_0xaef722['getAttribute']('tableWidth')||null,_0x17249d=this['_getCellWidths'](_0xaef722);const _0x496620=this['_foldResizeTableSuggestion'](_0xaef722,!0x0);_0x496620&&(_0x26c0c0=_0x496620['tableWidth'],_0x1f7de5=_0x496620['columnWidths'],_0x17249d=_0x496620['cellWidths']||_0x17249d),_0x3b6950(_0xca7244),_0x20852c['markBlockFormat'](_0xaef722,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x26c0c0,'columnWidths':_0x1f7de5,'cellWidths':_0x17249d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x48f9d7,_0x4382d4=!0x1){const _0x32af82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x387497=this['editor']['plugins']['get']('Users')['me'];for(const _0x160974 of _0x32af82['getSuggestions']({'skipNotAttached':!0x0})){const _0x16f202=_0x160974['getContainedElement']();if('resizeTable'===_0x160974['subType']&&_0x16f202===_0x48f9d7){_0x160974['author']!==_0x387497&&(_0x4382d4?_0x160974['removeMarkers']():_0x160974['discard']());const _0x1f712e=_0x160974['data']['commandParams'];return{'tableWidth':_0x1f712e[0x0]['tableWidth'],'columnWidths':_0x1f712e[0x0]['columnWidths'],'cellWidths':_0x1f712e[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x15377f){const _0x401eb1=[];for(const _0x2e4116 of _0x15377f['getChildren']())if(_0x2e4116['is']('element','tableRow')){for(const _0x571d7d of _0x2e4116['getChildren']())_0x401eb1['push'](_0x571d7d['getAttribute']('tableCellWidth')||null);}return _0x401eb1;}_restoreCellWidths(_0x53af5e,_0x58db1a){_0x58db1a&&this['editor']['model']['change'](_0x1182af=>{let _0x1d0067=0x0;for(const _0x49a081 of _0x53af5e['getChildren']())if(_0x49a081['is']('element','tableRow'))for(const _0x657e20 of _0x49a081['getChildren']()){const _0x50c601=_0x58db1a[_0x1d0067++];_0x50c601&&_0x1182af['setAttribute']('tableCellWidth',_0x50c601,_0x657e20);}});}handleSuggestionDescription(_0x623380){if('formatBlock'!=_0x623380['type']&&'formatInline'!=_0x623380['type'])return;const {data:_0x1ee61f}=_0x623380;return _0x1ee61f&&'resizeTable'===_0x1ee61f['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x5cf544{afterInit(){const _0x2fcfd4=this['editor'];_0x2fcfd4['plugins']['has']('Template')&&_0x2fcfd4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x5cf544{afterInit(){const _0x4f97ae=this['editor'];if(!_0x4f97ae['commands']['get']('insertTableOfContents'))return;_0x4f97ae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x540895=_0x4f97ae['plugins']['get']('TrackChangesEditing'),_0x474575=_0x4f97ae['locale'];_0x540895['descriptionFactory']['registerElementLabel']('tableOfContents',_0x55d98f=>Mt(_0x474575,'ELEMENT_TABLE_OF_CONTENTS',_0x55d98f));}},Qe=class extends _0x5cf544{afterInit(){const _0x3740b8=this['editor'];_0x3740b8['plugins']['has']('Title')&&(_0x3740b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x3740b8['locale'],'ELEMENT_TITLE')),_0x3740b8['model']['document']['registerPostFixer'](_0x57f7d6=>{let _0x5ec03e=!0x1;const _0x151570=Array['from'](_0x3740b8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31a7a0,data:_0x595e81}of _0x151570){const {group:_0x1834c6}=tt(_0x31a7a0);if('suggestion'!==_0x1834c6||!_0x595e81['newRange'])continue;const _0x45e4ab=_0x595e81['newRange'],_0x511c43=_0x45e4ab['end']['nodeBefore'];if(!_0x511c43||!_0x511c43['is']('element','title-content'))continue;if(!_0x45e4ab['start']['isTouching'](_0x45e4ab['end']))continue;const _0x4b93dc=_0x3740b8['model']['schema']['getNearestSelectionRange'](_0x45e4ab['end'],'forward');if(_0x4b93dc&&_0x4b93dc['isCollapsed']){const _0x5f36bb=_0x57f7d6['createRange'](_0x45e4ab['start'],_0x4b93dc['start']);_0x5f36bb['isEqual'](_0x45e4ab)||(_0x57f7d6['updateMarker'](_0x31a7a0,{'range':_0x5f36bb}),_0x5ec03e=!0x0);}_0x5ec03e||(_0x57f7d6['removeMarker'](_0x31a7a0),_0x5ec03e=!0x0);}return _0x5ec03e;}));}},Ze=class extends _0x5cf544{afterInit(){const _0xcf70ab=this['editor'],_0xba4158=_0xcf70ab['plugins']['get']('TrackChangesEditing');_0xcf70ab['plugins']['has']('Uploadcare')&&(_0xba4158['enableCommand']('uploadcare'),_0xcf70ab['plugins']['has']('UploadcareImageEdit')&&(_0xba4158['enableCommand']('uploadcareImageEdit'),_0xba4158['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xba4158['descriptionFactory']['registerDescriptionCallback'](_0x1c5e25=>{if('attribute'!=_0x1c5e25['type'])return;const {data:_0x5aef6a}=_0x1c5e25;return _0x5aef6a&&'uploadcareImageId'==_0x5aef6a['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x5cf544{afterInit(){const _0x5f056b=this['editor'],_0x575ddd=_0x5f056b['plugins']['get']('TrackChangesEditing');_0x5f056b['plugins']['has']('UndoEditing')&&(_0x575ddd['enableCommand']('undo'),_0x575ddd['enableCommand']('redo'));}},tn=class extends _0x5cf544{static get requires(){return[Ue];}afterInit(){const _0x529474=this['editor'];_0x529474['plugins']['has']('TableCaptionEditing')&&_0x529474['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x5cf544{tableProperties;tableCellProperties;constructor(_0x24c22a){super(_0x24c22a),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 _0x593b19=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5be9ef of this['tableProperties'])_0x593b19['enableCommand'](_0x5be9ef,(_0x83bcdf,_0x2f8fb7)=>{const _0x47ceb1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5be9ef,[_0x47ceb1],this['tableProperties'],'tableProperties',_0x83bcdf,_0x2f8fb7);});_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x593b19['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x43f5c7,_0x90b606)=>this['handleDiscardAction'](this['tableProperties'],_0x43f5c7,_0x90b606)),_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x417d2f of this['tableCellProperties'])this['editor']['commands']['get'](_0x417d2f)&&_0x593b19['enableCommand'](_0x417d2f,(_0xcca55b,_0x2651a5)=>{const _0x395175=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x417d2f,_0x395175,this['tableCellProperties'],'tableCellProperties',_0xcca55b,_0x2651a5);});_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x593b19['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2da066,_0x40dd86)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2da066,_0x40dd86)),_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x593b19['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x593b19['descriptionFactory']['registerDescriptionCallback'](_0x32bfb1=>this['handleSuggestionDescription'](_0x32bfb1)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x1904c6,_0x1fa333,_0x55ccee,_0x4fd5a6,_0x44e7d8,_0x32d446){const _0xd5da29=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x32d446['batch'],()=>{for(const _0x3adc94 of _0x1fa333)if(this['_getSuggestion'](_0x3adc94,_0x4fd5a6))_0x44e7d8(_0x32d446);else{const _0x51706d={};for(const _0x3611ca of _0x55ccee){const _0x105c82=_0x3adc94['getAttribute'](_0x3611ca);void 0x0!==_0x105c82&&(_0x51706d[_0x3611ca]=_0x105c82);}const _0x4f2fec=this['_getResizedColumnWidths'](_0x3adc94);_0x4f2fec&&(_0x51706d['columnWidths']=_0x4f2fec),_0x44e7d8(_0x32d446),_0xd5da29['markBlockFormat'](_0x3adc94,{'commandParams':[_0x51706d]},[],_0x4fd5a6);}});}handleDiscardAction(_0x1f4d04,_0x1132ce,_0x54c369){const _0x5a28c1=_0x1132ce[0x0]['start']['nodeAfter'],_0x2cbbc2=_0x54c369['commandParams'][0x0];this['editor']['model']['change'](_0x5236ef=>{for(const _0xe10635 of _0x1f4d04)void 0x0!==_0x2cbbc2[_0xe10635]?_0x5236ef['setAttribute'](_0xe10635,_0x2cbbc2[_0xe10635],_0x5a28c1):_0x5236ef['removeAttribute'](_0xe10635,_0x5a28c1);if(_0x2cbbc2['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x320f4f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10bd05=_0x320f4f['getColumnGroupElement'](_0x5a28c1);if(_0x10bd05){const _0x1e4523=_0x320f4f['getTableColumnsWidths'](_0x10bd05),_0x5211dc=_0x5a28c1['getAttribute']('tableWidth');if(('string'==typeof _0x5211dc&&_0x5211dc['trim']()['endsWith']('px'))!==_0x1e4523['some'](_0xf711de=>'string'==typeof _0xf711de&&_0xf711de['endsWith']('px'))){const _0x53837d=_0x320f4f['getTableColumnElements'](_0x10bd05);_0x2cbbc2['columnWidths']['forEach']((_0x3abd80,_0x3e9a71)=>{_0x53837d[_0x3e9a71]&&_0x5236ef['setAttribute']('columnWidth',_0x3abd80,_0x53837d[_0x3e9a71]);});}}}});}_getResizedColumnWidths(_0x2586ab){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x2586ab['is']('element','table'))return;const _0x2e5280=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x21b90f=_0x2e5280['getColumnGroupElement'](_0x2586ab);return _0x21b90f?_0x2e5280['getTableColumnsWidths'](_0x21b90f):void 0x0;}handleSuggestionDescription(_0x3ac0ef){if(_0x3ac0ef['data'])switch(_0x3ac0ef['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x4fa13c,_0x50e295){const _0x2eea9c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x20c3f1 of _0x2eea9c['getSuggestions']({'skipNotAttached':!0x0})){const _0xd949c9=_0x20c3f1['getContainedElement']();if(_0x20c3f1['subType']===_0x50e295&&_0xd949c9===_0x4fa13c)return _0x20c3f1;}return null;}_registerTablePropertiesAttributes(){const _0x3a6a6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c1c7d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4bd6ef of _0x1c1c7d){const _0x100a7b=_0x4bd6ef['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3a6a6e['descriptionFactory']['registerAttributeLabel'](_0x4bd6ef,Mt(this['editor']['locale'],'FORMAT_'+_0x100a7b));}}},nn=class extends _0x5cf544{afterInit(){const _0x53974e=this['editor'];if(!_0x53974e['plugins']['has']('LineHeight'))return;const _0x33abf4=_0x53974e['plugins']['get']('TrackChangesEditing'),_0x33398f=_0x53974e['locale'];_0x33abf4['enableDefaultAttributesIntegration']('lineHeight'),_0x33abf4['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x33398f,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0x1d8c67){return'marker'==_0x1d8c67['type']&&_0x1d8c67['name']['startsWith']('$markedRemove');}var on=class extends _0x5cf544{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x3f08e8,_0x479c91,_0x14ae03,_0x305bdb,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7b5dcc){super(_0x7b5dcc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xd6b2d7,_0x19388d,_0x2ca48b,_0x61b185)=>{this['_model']['change'](()=>{for(const _0x26ffb2 of[..._0x61b185,..._0x2ca48b])this['_model']['markers']['has'](_0x26ffb2)&&_0x7b5dcc['editing']['reconvertMarker'](_0x26ffb2);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x7b5dcc['plugins']['get'](_0x3f08e8),this['_suggestionsConversion']=_0x7b5dcc['plugins']['get'](_0x479c91),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x7b5dcc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x7b5dcc['config']['get']('trackChanges.trackFormatChanges'),_0x7b5dcc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x7b5dcc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x7b5dcc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x39cb93=this['editor'];_0x39cb93['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3bbd64,{writer:_0x93732f})=>{let _0x4ea549='suggestion:'+_0x3bbd64['getAttribute']('suggestion-type')+':'+_0x3bbd64['getAttribute']('id');return _0x3bbd64['getAttribute']('marker-count')&&(_0x4ea549+=':'+_0x3bbd64['getAttribute']('marker-count')),_0x93732f['createElement']('$marker',{'data-name':_0x4ea549});}}),_0x39cb93['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x39cb93['model']['document']['registerPostFixer'](_0x3c3a2b=>{let _0x5e625a=!0x1;const _0x47e076=Array['from'](_0x39cb93['model']['document']['differ']['getChangedMarkers']()),_0xab13fb=new Set();for(const {name:_0x383b2b,data:_0x29c213}of _0x47e076){const {group:_0x2a5ba9,type:_0x397c37,subType:_0x9a422b,id:_0x589fdb}=tt(_0x383b2b);if('suggestion'!==_0x2a5ba9)continue;const _0x13c3ef=_0x9a422b?'suggestion:'+_0x397c37+':'+_0x9a422b+':'+_0x589fdb:'suggestion:'+_0x397c37+':'+_0x589fdb,_0x1d04a0=_0x39cb93['model']['markers']['getMarkersGroup'](_0x13c3ef),_0x57e765=_0x39cb93['model']['markers']['get'](_0x383b2b),_0x6880be=this['_suggestions']['get'](_0x589fdb);if(null!=_0x29c213['newRange']){'formatInline'==_0x397c37&&(_0x5e625a=_0x5e625a||un(_0x29c213['newRange'],_0x383b2b,_0x3c3a2b,_0x39cb93['model']['schema']));const _0x237451='attribute'==_0x397c37&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x9a422b)),_0x1a033d='attribute'==_0x397c37&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x9a422b));if(_0x29c213['newRange']['isCollapsed']||'$graveyard'==_0x29c213['newRange']['root']['rootName']||'formatBlock'==_0x397c37&&!hn(_0x29c213['newRange'])||_0x237451&&!hn(_0x29c213['newRange'])||_0x1a033d&&gn(_0x29c213['newRange'])||'deletion'==_0x397c37&&gn(_0x29c213['newRange'])||_0x57e765&&fn(_0x57e765,_0x1d04a0))_0x3c3a2b['removeMarker'](_0x383b2b),_0x5e625a=!0x0;else{if(!_0x6880be||!_0x6880be['isInContent'])continue;if(_0x29c213['newRange']&&_0x29c213['oldRange']&&_0x29c213['newRange']['isEqual'](_0x29c213['oldRange']))continue;_0xab13fb['add'](_0x6880be);}}}return _0xab13fb['size']>0x0&&(_0x5e625a=!!this['_joinWithAdjacentSuggestions'](_0xab13fb)||_0x5e625a),_0x5e625a;}),_0x39cb93['model']['document']['registerPostFixer'](_0x82a5bc=>{let _0x406311=!0x1;for(const _0x5ac81f of _0x39cb93['model']['document']['differ']['getChanges']())if('insert'==_0x5ac81f['type'])for(const _0x240add of this['_suggestions']['values']()){if(_0x240add['isMultiRange']||!_0x240add['isInContent'])continue;const _0xf20fbd='formatBlock'==_0x240add['type'],_0x2e1dc7=this['_getAttributeKey'](_0x240add),_0x48a665=_0x2e1dc7&&this['_suggestionsConversion']['isBlockAttribute'](_0x2e1dc7);if(!_0xf20fbd&&!_0x48a665)continue;const _0x22a2cd=_0x240add['getFirstRange']();if(_0x22a2cd['start']['parent']!=_0x22a2cd['end']['parent']&&!_0x22a2cd['end']['isAtEnd']){const _0x3a2665=_0x39cb93['model']['createPositionAt'](_0x22a2cd['start']['nodeAfter'],'end'),_0x11744e=_0x39cb93['model']['createRange'](_0x22a2cd['start'],_0x3a2665);_0x82a5bc['updateMarker'](_0x240add['getFirstMarker'](),{'range':_0x11744e}),_0x406311=!0x0;}}return _0x406311;}),_0x39cb93['model']['document']['registerPostFixer'](_0x2ba787=>this['_processAttributeChanges'](_0x2ba787)),_0x39cb93['model']['document']['registerPostFixer'](_0x880fa5=>!_0x880fa5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x880fa5)),_0x39cb93['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x39cb93['model']['document']['on']('change:data',(_0x1717c8,_0x1756fb)=>{if(!_0x1756fb['isLocal']||_0x1756fb['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x30d0b8=_0x39cb93['model']['document']['differ']['getChanges']();if(0x0==_0x30d0b8['length'])return;const _0x25bb60=[],_0x337e85=_0x30d0b8['filter'](_0x528a9f=>'attribute'==_0x528a9f['type']),_0x2f04af=_0x30d0b8['filter'](_0xf168a4=>'insert'==_0xf168a4['type']&&'$text'!=_0xf168a4['name']);for(const _0x3674a1 of _0x337e85)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3674a1['attributeKey'])&&_0x25bb60['push']({'key':_0x3674a1['attributeKey'],'newValue':_0x3674a1['attributeNewValue'],'oldValue':_0x3674a1['attributeOldValue'],'range':mn(_0x3674a1['range'],_0x39cb93['model'])});for(const _0x457230 of _0x2f04af){if('rename'!=_0x457230['action']&&'refresh'!=_0x457230['action'])continue;const _0x18dc4=En(_0x457230['position']['nodeAfter'],_0x39cb93['model']),_0x141516=_0x457230['before'];'rename'==_0x457230['action']&&_0x25bb60['push']({'key':sn,'newValue':_0x457230['name'],'oldValue':_0x141516['name'],'range':_0x18dc4});for(const [_0x431256,_0x3bb79c]of _0x141516['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x431256))continue;const _0x5f389f=_0x457230['attributes']['get'](_0x431256);_0x3bb79c!==_0x5f389f&&_0x25bb60['push']({'key':_0x431256,'newValue':_0x5f389f,'oldValue':_0x3bb79c,'range':_0x18dc4});}for(const [_0x31cbc2,_0x5ac962]of _0x457230['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x31cbc2)&&(_0x141516['attributes']['has'](_0x31cbc2)||_0x25bb60['push']({'key':_0x31cbc2,'newValue':_0x5ac962,'oldValue':null,'range':_0x18dc4}));}0x0!=_0x25bb60['length']&&_0x39cb93['model']['enqueueChange'](_0x1756fb,_0x3c1099=>{const _0xbd79b=_0x4aa562();for(const {range:_0x56a92e,key:_0x5e6381,oldValue:_0x2b84c6,newValue:_0x335a35}of _0x25bb60)this['markAttributeChange'](_0x56a92e,_0x5e6381,_0x2b84c6,_0x335a35,{'groupId':_0xbd79b});this['_reduceExistingSuggestions'](_0x3c1099,_0x25bb60);});},{'priority':'lowest'}),_0x39cb93['model']['markers']['on']('update:suggestion',(_0x11c1ed,_0x2f099a,_0x23cba7)=>{if(null==_0x23cba7){const {id:_0xbf14a2}=tt(_0x2f099a['name']),_0x43be18=this['_suggestions']['get'](_0xbf14a2);_0x43be18&&_0x43be18['addMarkerName'](_0x2f099a['name']);}}),_0x39cb93['model']['document']['on']('change:data',()=>{const _0x155840=Array['from'](_0x39cb93['model']['document']['differ']['getChangedMarkers']())['filter'](_0x11ca46=>'suggestion'===tt(_0x11ca46['name'])['group']);if(0x0===_0x155840['length'])return;_0x155840['sort']((_0x2dbbfb,_0x352d5b)=>{const _0x1869c4=_0x2dbbfb['data']['oldRange'],_0x6551c4=_0x352d5b['data']['oldRange'];return null===_0x1869c4&&null===_0x6551c4?0x0:null===_0x1869c4&&null!==_0x6551c4?-0x1:null!==_0x1869c4&&null===_0x6551c4?0x1:_0x1869c4['start']['isBefore'](_0x6551c4['start'])?-0x1:0x1;});const _0x600b07=new Set(),_0x1089cc=new Set();for(const {name:_0x2100f0,data:_0x3b29d2}of _0x155840){const {id:_0x2a89c0}=tt(_0x2100f0);if(null===_0x3b29d2['oldRange']){const _0x35ed73=this['_handleNewSuggestionMarker'](_0x2100f0);_0x1089cc['add'](_0x35ed73);}else{const _0x47c63a=this['_suggestions']['get'](_0x2a89c0);null!==_0x3b29d2['newRange']||_0x47c63a['isInContent']?(_0x600b07['add'](_0x47c63a['head']),_0x1089cc['add'](_0x47c63a)):this['_removeSuggestion'](_0x47c63a);}}_0x1089cc['size']>0x0&&this['_refreshSuggestionsChain'](_0x1089cc);for(const _0x8c0662 of _0x600b07)this['fire']('suggestionChanged',_0x8c0662);}),_0x39cb93['model']['on']('applyOperation',(_0x4fdec3,_0x3f1f4a)=>{const _0x344609=_0x3f1f4a[0x0];if(!this['_suggestions']['size'])return;if(!_0x344609['isDocumentOperation'])return;if(_0x344609['batch']['isUndo']||!_0x344609['batch']['isLocal'])return;let _0xe6383b,_0x4ac613;switch(_0x344609['type']){case'insert':_0xe6383b=_0x39cb93['model']['createPositionAt'](_0x344609['position']),_0x4ac613=_0xe6383b['getShiftedBy'](_0x344609['howMany']);break;case'split':_0xe6383b=_0x39cb93['model']['createPositionAt'](_0x344609['splitPosition']),_0x4ac613=_0x39cb93['model']['createPositionAt'](_0x344609['moveTargetPosition']);break;case'move':_0xe6383b=_0x39cb93['model']['createPositionAt'](_0x344609['targetPosition']),_0x4ac613=_0xe6383b['getShiftedBy'](_0x344609['howMany']);break;default:return;}const _0x44489c=_0x39cb93['model']['createRange'](_0xe6383b,_0x4ac613);_0x39cb93['model']['change'](()=>{for(const {suggestion:_0x4f336d,meta:_0x5710bf}of this['_findSuggestions'](_0x44489c)){if(_0x4f336d['isMultiRange'])continue;if('formatInline'==_0x4f336d['type'])continue;const _0x592c57=this['_getAttributeKey'](_0x4f336d);if(_0x592c57&&this['_suggestionsConversion']['isBlockAttribute'](_0x592c57)&&'split'!=_0x344609['type'])continue;const _0x1c8bef=_0x4f336d['data']&&_0x4f336d['data']['multipleBlocks'];('formatBlock'!=_0x4f336d['type']||'split'==_0x344609['type']&&!_0x1c8bef)&&(_0x5710bf['containsRangeInObject']||'insertion'==_0x4f336d['type']&&_0x5710bf['isOwn']||_0x4f336d['getFirstRange']()['containsRange'](_0x44489c)&&this['_breakSuggestionMarker'](_0x4f336d,_0xe6383b,_0x4ac613));}});},{'priority':'lowest'}),_0x39cb93['model']['on']('deleteContent',(_0x31dd39,_0x303157)=>{const _0x54429f=_0x303157[0x0],_0x45a140=_0x303157[0x1];if(_0x45a140&&_0x45a140['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x54429f['isCollapsed'])return;const _0x8d12f5=_0x39cb93['model']['schema'],{start:_0x1e3dd7,end:_0x555bea}=_0x54429f['getFirstRange'](),_0x2ead2f=_0x1e3dd7['nodeAfter']&&_0x8d12f5['isLimit'](_0x1e3dd7['nodeAfter'])?null:_0x8d12f5['getNearestSelectionRange'](_0x1e3dd7,'forward'),_0x505951=_0x555bea['nodeBefore']&&_0x8d12f5['isLimit'](_0x555bea['nodeBefore'])?null:_0x8d12f5['getNearestSelectionRange'](_0x555bea,'backward'),_0x11f877=_0x39cb93['model']['createRange'](_0x2ead2f?_0x2ead2f['start']:_0x1e3dd7,_0x505951?_0x505951['end']:_0x555bea);_0x39cb93['model']['change'](_0xc77ace=>{this['markDeletion'](_0x11f877);const _0x113d95=_0x39cb93['model']['schema']['getNearestSelectionRange'](_0x11f877['start']);_0x54429f['is']('documentSelection')?_0xc77ace['setSelection'](_0x113d95):_0x54429f['setTo'](_0x113d95);}),_0x31dd39['stop']();},{'priority':_0x3fd845['normal']+0xa}),_0x39cb93['model']['on']('insertContent',(_0x4a168c,_0x533e39)=>{const _0x1a2f85=_0x533e39[_0x533e39['length']-0x1];_0x1a2f85&&_0x1a2f85['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x39cb93['model']['change'](()=>{let _0x207fae=_0x39cb93['model']['insertContent'](_0x533e39[0x0],_0x533e39[0x1],_0x533e39[0x2],{'forceDefaultExecution':!0x0});if(!_0x207fae)return;_0x4a168c['return']=_0x207fae['clone']();const _0xeb409=_0x207fae['end']['nodeBefore'],_0x21d612=_0x39cb93['model']['schema'];_0xeb409&&_0x21d612['isBlock'](_0xeb409)&&!_0x21d612['isObject'](_0xeb409)&&(_0x207fae=_0x39cb93['model']['createRange'](_0x207fae['start'],_0x39cb93['model']['createPositionAt'](_0xeb409,'end'))),this['markInsertion'](_0x207fae);}),_0x4a168c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x268eff=new _t(_0x39cb93,this['_suggestions']);_0x39cb93['commands']['add']('acceptSuggestion',_0x268eff),this['enableCommand']('acceptSuggestion');const _0xf33c=new pt(_0x39cb93,this['_suggestions']);_0x39cb93['commands']['add']('discardSuggestion',_0xf33c),this['enableCommand']('discardSuggestion'),_0x39cb93['commands']['add']('acceptAllSuggestions',new Rt(_0x39cb93,_0x268eff,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x39cb93['commands']['add']('discardAllSuggestions',new Rt(_0x39cb93,_0xf33c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x39cb93['commands']['add']('acceptSelectedSuggestions',new yt(_0x39cb93,_0x268eff,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x39cb93['commands']['add']('discardSelectedSuggestions',new yt(_0x39cb93,_0xf33c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b37b7=_0x39cb93['plugins']['get'](_0x3f08e8);this['listenTo'](_0x2b37b7,'addComment',(_0x31f2d2,{threadId:_0x1fdeec})=>{const _0x1770c7=this['_suggestions']['get'](_0x1fdeec);_0x1770c7&&_0x1770c7['commentThread']&&0x1===_0x1770c7['commentThread']['length']&&this['_updateSuggestionData'](_0x1fdeec,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b37b7,'removeComment',(_0x5aedb,{threadId:_0xb4a53d})=>{const _0x15c050=this['_suggestions']['get'](_0xb4a53d);_0x15c050&&_0x15c050['commentThread']&&!_0x15c050['commentThread']['length']&&this['_updateSuggestionData'](_0xb4a53d,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x59ac5a){const _0xe2984f='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x54f542=0x79410,_0x1b1f96={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x45d791(_0x951b3a){const _0x1fa131=new window['Promise'](_0x574a32=>{_0x951b3a['once']('ready',_0x574a32);}),_0x1343c2=window['Date']['now'](),_0x4d98da=_0x951b3a['config']['get']('licenseKey');async function _0x32b5c7(){let _0x445ba5,_0x57ec5c=null,_0x1b52ce=null;try{return'GPL'==_0x4d98da?'NotAllowed':(_0x445ba5=_0x21f44f(),_0x445ba5?(_0x445ba5['usageEndpoint']&&(_0x1b52ce=_0x143997(_0x445ba5['usageEndpoint'],_0x445ba5['jti'])),await _0x14777d()?_0x42a0b4()?_0x9bd51a()?'Expired':_0x2f54da()?('evaluation'==_0x445ba5['licenseType']&&(_0x57ec5c=_0xf6366d('EvaluationLimit')),await _0x2a0d4b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x9bd51a(){const _0x4d7e88=['evaluation','trial']['includes'](_0x445ba5['licenseType'])?_0x1343c2/0x3e8:0xe10*_0x54f542;return _0x445ba5['exp']<_0x4d7e88;}function _0x42a0b4(){const _0x1cb82e=_0x445ba5['features'];if(!_0x1cb82e)return!0x1;if(_0x1cb82e['includes']('*'))return!0x0;if(_0x1cb82e['includes']('TC'))return!0x0;if(_0x1cb82e['includes']('RTC')){if(_0x16a70c())return!0x0;if(_0x5ee5d8()||_0x58b05a())return!0x0;}return!0x1;}function _0x2f54da(){const _0x137576=_0x445ba5['licensedHosts'];if(!_0x137576||0x0==_0x137576['length'])return!0x0;const {hostname:_0x438b86}=new URL(window['location']['href']);if(_0x137576['includes'](_0x438b86))return!0x0;const _0x49ab90=_0x438b86['split']('.');return _0x137576['filter'](_0x39a108=>_0x39a108['includes']('*'))['map'](_0x180caf=>_0x180caf['split']('.'))['filter'](_0x5521e8=>_0x5521e8['length']<=_0x49ab90['length'])['map'](_0x42ef38=>Array(_0x49ab90['length']-_0x42ef38['length'])['fill']('*'===_0x42ef38[0x0]?'*':'')['concat'](_0x42ef38))['some'](_0x1e1e19=>_0x49ab90['every']((_0x4238f3,_0x31c3e7)=>_0x1e1e19[_0x31c3e7]===_0x4238f3||'*'===_0x1e1e19[_0x31c3e7]));}function _0x2a0d4b(){return _0x57ec5c&&_0x1b52ce?new window['Promise']((_0x58ce95,_0x1db0fc)=>{_0x57ec5c['then'](_0x58ce95,_0x1db0fc),_0x1b52ce['then'](_0x4b908c=>{'Valid'!=_0x4b908c&&_0x58ce95(_0x4b908c);},_0x1db0fc);}):_0x57ec5c||_0x1b52ce||'Valid';}}function _0x143997(_0x6b54ef,_0x40d05){return new window['Promise'](_0x5af9e4=>{if(_0xb08925())return _0x5af9e4('Valid');_0x39ce35(),_0x951b3a['decorate']('_sendUsageRequest');let _0x13e677=!0x1;const _0xa33677=_0x4aa562();function _0x3a5fb9(_0x1b1190){return!!_0x1b1190&&('object'==typeof _0x1b1190||'function'==typeof _0x1b1190)&&'function'==typeof _0x1b1190['then']&&'function'==typeof _0x1b1190['catch'];}function _0x37cd49(_0x4c75a1){_0x3a8409(_0x4c75a1)['then'](_0x371d59=>_0x371d59&&'ok'==_0x371d59['status']?_0xf450b2(_0x1b755d(_0xa33677+_0x40d05))!=_0x371d59['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3506c4=>(_0x20710a(),_0x3506c4),()=>{const _0x472de8=_0x2f213f();return null==_0x472de8?(_0x20710a(),'Valid'):_0x1343c2-_0x472de8>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5af9e4)['catch'](()=>{_0x5af9e4('UsageLimit');});const _0x298ea6=0x36ee80;function _0x20710a(){const _0x501886='llct-'+_0xf450b2(_0x1b755d(_0x6b54ef)),_0x18e6f9=_0x7625a5(_0xf450b2(window['Math']['ceil'](_0x1343c2/_0x298ea6)));window['localStorage']['setItem'](_0x501886,_0x18e6f9);}function _0x2f213f(){const _0xe1c1f3='llct-'+_0xf450b2(_0x1b755d(_0x6b54ef)),_0x38ad89=window['localStorage']['getItem'](_0xe1c1f3);return _0x38ad89?window['parseInt'](_0x7625a5(_0x38ad89),0x10)*_0x298ea6:null;}function _0x3a8409(_0x2e5bcf){return new window['Promise']((_0x30eee1,_0x568d88)=>{_0x2e5bcf['then'](_0x30eee1,_0x568d88),window['setTimeout'](_0x568d88,0x1d4c0);});}}_0x951b3a['on']('_sendUsageRequest',(_0x288921,_0x45ca9d)=>{if(_0x45ca9d[0x0]!=_0x6b54ef)return _0x5af9e4('UsageLimit');_0x45ca9d[0x1]={..._0x45ca9d[0x1],'requestId':_0xa33677};},{'priority':'high'}),_0x951b3a['on']('_sendUsageRequest',_0x10b96a=>{_0x3a5fb9(_0x10b96a['return'])&&(_0x13e677=!0x0,_0x37cd49(_0x10b96a['return']));},{'priority':'low'}),_0x1fa131['then'](()=>{_0x13e677||_0x5af9e4('UsageLimit');});});function _0xb08925(){return'auto'==_0x951b3a['editing']['view']['_overlayModeHint'];}function _0x39ce35(){_0x951b3a['editing']['view']['_overlayModeHint']='auto';}}function _0xf6366d(_0x48c814){const _0x2aad8a=[new window['Promise'](_0x15a6ff=>setTimeout(_0x15a6ff,0x93ecc)),_0x1fa131['then'](()=>new window['Promise'](_0x2f62db=>{let _0x27cee1=0x0;_0x951b3a['model']['on']('applyOperation',(_0x23707a,_0x2d579c)=>{_0x2d579c[0x0]['isDocumentOperation']&&_0x27cee1++,0x5e8==_0x27cee1&&(_0x2f62db(),_0x23707a['off']());});}))];return window['Promise']['race'](_0x2aad8a)['then'](()=>_0x48c814);}async function _0x441d6c(){await _0x1fa131,_0x951b3a['model']['change']=_0x13599f,_0x951b3a['model']['enqueueChange']=_0x13599f,_0x951b3a['enableReadOnlyMode']('model');}function _0x16a70c(){return _0x439243('WebSocketGateway')&&'connected'==_0x565c8a('WebSocketGateway')['state'];}function _0x5ee5d8(){return _0x439243('RevisionViewerIntegration');}function _0x58b05a(){return _0x439243('TrackChangesDataGetter');}function _0x419a7a(_0x498114){const _0x2243e=_0x32ec3e();_0x951b3a[_0x2243e]='trackChangesLicenseKey'+_0x498114,'Valid'!=_0x498114&&_0x441d6c();}function _0x32ec3e(){const _0x1f3422=window['String'](window['performance']['now']())['replace']('.','');let _0x2c896c='U';for(let _0x5286c4=0x0;_0x5286c4<_0x1f3422['length'];_0x5286c4+=0x2){let _0x175438=window['parseInt'](_0x1f3422['substring'](_0x5286c4,_0x5286c4+0x2));_0x175438>=0x3e&&(_0x175438-=0x3e),_0x2c896c+=_0xe2984f[_0x175438];}return _0x2c896c;}function _0x21f44f(){const _0x4cf157=_0x4d98da['split']('.');if(0x3!=_0x4cf157['length'])return null;return _0x820111(_0x4cf157[0x1]);function _0x820111(_0x4063de){const _0x512d30=_0xc0167e(_0x4063de);return _0x512d30&&_0x5375ac()?_0x512d30:null;function _0x5375ac(){const _0x3d170e=_0x512d30['jti'],_0x4b96e7=window['parseInt'](_0x3d170e['substring'](_0x3d170e['length']-0x8),0x10),_0x5348b1={..._0x512d30,'jti':_0x3d170e['substring'](0x0,_0x3d170e['length']-0x8)};return delete _0x5348b1['vc'],_0x1b755d(_0x5348b1)==_0x4b96e7;}}}async function _0x14777d(){let _0x307e0a=!0x0;try{const [_0x5b7304,_0x3db065,_0x17eada]=_0x4d98da['split']('.');return _0x228cd8(_0x5b7304),await _0x1bfe6e(_0x5b7304,_0x3db065,_0x17eada),_0x307e0a;}catch{return!0x1;}function _0x228cd8(_0x1ae06f){const _0x48e5c3=_0xc0167e(_0x1ae06f);_0x48e5c3&&'ES256'==_0x48e5c3['alg']||(_0x307e0a=!0x1);}async function _0x1bfe6e(_0x3da1eb,_0x5f2336,_0x4864cd){const _0x11bcc4=window['Uint8Array']['from'](_0x565b06(_0x4864cd),_0x39d21d=>_0x39d21d['charCodeAt'](0x0)),_0x54ce20=new window['TextEncoder']()['encode'](_0x3da1eb+'.'+_0x5f2336),_0xb41af=window['crypto']['subtle'];if(!_0xb41af)return;const _0x2cbaae=await _0xb41af['importKey']('jwk',_0x1b1f96,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xb41af['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2cbaae,_0x11bcc4,_0x54ce20)||(_0x307e0a=!0x1);}}function _0xc0167e(_0x566df3){return _0x566df3['startsWith']('ey')?JSON['parse'](_0x565b06(_0x566df3)):null;}function _0x565b06(_0x343c48){return window['atob'](_0x343c48['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1b755d(_0x980766){let _0x1e3900=0x1505;function _0x224958(_0x47a73d){for(let _0xc553c5=0x0;_0xc553c5<_0x47a73d['length'];_0xc553c5++){const _0x53b0d9=_0x47a73d['charCodeAt'](_0xc553c5);_0x1e3900=(_0x1e3900<<0x5)+_0x1e3900+_0x53b0d9,_0x1e3900&=_0x1e3900;}}function _0x16bcd3(_0x139844){Array['isArray'](_0x139844)?_0x139844['forEach'](_0x16bcd3):_0x139844&&'object'==typeof _0x139844?Object['entries'](_0x139844)['sort']()['forEach'](([_0x5c3316,_0x1393a8])=>{_0x224958(_0x5c3316),_0x16bcd3(_0x1393a8);}):_0x224958(window['String'](_0x139844));}return _0x16bcd3(_0x980766),_0x1e3900>>>0x0;}function _0xf450b2(_0x52a6d0){return _0x52a6d0['toString'](0x10)['padStart'](0x8,'0');}function _0x7625a5(_0x39d57c){return _0x39d57c['split']('')['reverse']()['join']('');}function _0x439243(_0x16b770){return _0x951b3a['plugins']['has'](_0x16b770);}function _0x565c8a(_0x4c703f){return _0x951b3a['plugins']['get'](_0x4c703f);}function _0x13599f(){}_0x419a7a(await _0x32b5c7());}_0x45d791(_0x59ac5a['editor']);}(this);}set adapter(_0x26f48b){if(this['_adapter'])throw new _0x2faccb('track-changes-adapter-already-set',this);this['_adapter']=_0x26f48b;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x57cce5=!0x1,toJSON:_0x4109ac=!0x1}={}){const _0x377314=[];for(const _0x2b72d6 of this['_suggestions']['values']())_0x57cce5&&!_0x2b72d6['isInContent']||_0x377314['push'](_0x2b72d6);return _0x4109ac?_0x377314['map'](_0x3fe75c=>_0x3fe75c['toJSON']()):_0x377314;}getSuggestion(_0xcebbcc){const _0x30bd1c=this['_suggestions']['get'](_0xcebbcc);if(!_0x30bd1c)throw new _0x2faccb('track-changes-suggestion-not-found',this);return _0x30bd1c;}hasSuggestion(_0x41f524){return this['_suggestions']['has'](_0x41f524);}addSuggestionData(_0xc926ed){const {authorId:_0x6c86cf,id:_0x508f5b,originalSuggestionId:_0xf9edfe,attributes:_0x39e6a5}=_0xc926ed,[_0x3336d9,_0x8bb3ab]=_0xc926ed['type']['split'](':'),_0x3a8234=this['_suggestions']['get'](_0x508f5b)||this['_createSuggestion'](_0x3336d9,_0x8bb3ab,_0x508f5b,_0x6c86cf,_0x39e6a5,_0xf9edfe);if(this['_addThreadToSuggestion'](_0x3a8234),this['_checkSuggestionCorrectness'](_0x3a8234,_0x3336d9,_0x8bb3ab||null,_0x6c86cf),_0x3a8234['createdAt']=_0xc926ed['createdAt'],_0x3a8234['_isDataLoaded']=!0x0,_0x39e6a5&&_0x39e6a5['@external']){const _0x26a635=_0x39e6a5['@external'],_0x32d668=this['_getExternalAuthor'](_0x26a635['authorName']);_0x3a8234['authoredAt']=_0x26a635['createdAt'],_0x3a8234['author']=_0x32d668;}else _0x3a8234['authoredAt']=_0xc926ed['createdAt'];switch(_0xc926ed['data']&&(_0x3a8234['data']=_0xc926ed['data']),_0xc926ed['attributes']&&(_0x3a8234['attributes']=_0xc926ed['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3a8234['_saved']=!0x0),this['_suggestionState']['get'](_0x3a8234)){case'notReady':this['_suggestionState']['set'](_0x3a8234,'dataReady');break;case'markerReady':_0x3a8234['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3a8234])),this['_refreshSuggestionsChain'](new Set([_0x3a8234])),this['_suggestionState']['set'](_0x3a8234,'ready'),this['fire']('suggestionLoaded',_0x3a8234)):this['_suggestionState']['set'](_0x3a8234,'removed');}return _0x3a8234;}acceptSuggestion(_0x1b9e99){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x465ee9 of _0x1b9e99['getAllAdjacentSuggestions']())_0x465ee9['accept']();});});}discardSuggestion(_0x24a482){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2219d4 of _0x24a482['getAllAdjacentSuggestions']())_0x2219d4['discard']();});});}['enableCommand'](_0x181489,_0xe54a9b){const _0xf0bc9f=this['editor']['commands']['get'](_0x181489);if(!_0xf0bc9f)throw new _0x2faccb('track-changes-command-not-found',this,{'commandName':_0x181489});if(this['_enabledCommands']['has'](_0xf0bc9f))throw new _0x2faccb('track-changes-enable-command-twice',this,{'commandName':_0x181489});this['_enabledCommands']['add'](_0xf0bc9f),_0xe54a9b&&_0xf0bc9f['on']('execute',(_0x4aa30d,_0x61ebe7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x61ebe7['length']>0x0&&_0x61ebe7[_0x61ebe7['length']-0x1]&&_0x61ebe7[_0x61ebe7['length']-0x1]['forceDefaultExecution']?_0x61ebe7['pop']():(_0x4aa30d['return']=_0xe54a9b((..._0x1e5c3d)=>_0xf0bc9f['execute'](..._0x1e5c3d,{'forceDefaultExecution':!0x0}),..._0x61ebe7),_0x4aa30d['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x349fdd){let _0x21e6cd,_0xe8bb1f;const _0x30c6a7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x21e6cd=_0x349fdd();}catch(_0x3cc775){_0xe8bb1f=_0x3cc775;}return _0x30c6a7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xe8bb1f&&_0x2faccb['rethrowUnexpectedError'](_0xe8bb1f,this),_0x21e6cd;}markInsertion(_0x44a9ba,_0x356265=null,_0x228265={}){if(_0x44a9ba['isCollapsed'])return null;const _0x405afe=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x228265['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xafb205,meta:_0x1ef398}of this['_findSuggestions'](_0x44a9ba,'insertion'))if(_0x1ef398['isOwn']){if(!_0x1ef398['isNextTo']){if(_0x1ef398['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0xafb205,_0x228265))continue;return _0xafb205;}if(pn(_0xafb205,_0x228265))return _0xafb205;this['_breakSuggestionMarker'](_0xafb205,_0x44a9ba['start'],_0x44a9ba['end']);break;}if(_0x356265==_0xafb205['subType']&&pn(_0xafb205,_0x228265)){const _0x18e39f=_0xafb205['getFirstRange']();return _0x18e39f['start']['isEqual'](_0x44a9ba['end'])?this['_setSuggestionRange'](_0xafb205,this['_model']['createRange'](_0x44a9ba['start'],_0x18e39f['end'])):this['_setSuggestionRange'](_0xafb205,this['_model']['createRange'](_0x18e39f['start'],_0x44a9ba['end'])),_0xafb205;}}const _0x2df163=_0x4aa562(),_0x4d88ab=_0x405afe['id'],_0x166f89=_0x356265?'insertion:'+_0x356265:'insertion',_0xc7d19c=this['_setSuggestionData']({'id':_0x2df163,'type':_0x166f89,'createdAt':new Date(),'authorId':_0x4d88ab,'attributes':_0x228265});return this['_addSuggestionMarker'](_0x166f89,_0x2df163,_0x4d88ab,_0x44a9ba),_0xc7d19c;}markMultiRangeInsertion(_0x1d9257,_0x1962ca='multi',_0x27a0b1={}){const _0x49d8ab=this['editor']['plugins']['get']('Users')['me'],_0xa1d85a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1962ca,'join');this['_trackingSessionId']&&(_0x27a0b1['trackingSessionId']=this['_trackingSessionId']);for(const _0x31a36f of this['getSuggestions']())if(_0x31a36f['author']['id']==_0x49d8ab['id']&&'insertion'==_0x31a36f['type']&&_0x31a36f['subType']==_0x1962ca&&pn(_0x31a36f,_0x27a0b1)&&(_0xa1d85a(_0x31a36f['getRanges'](),_0x1d9257)||_0xa1d85a(_0x1d9257,_0x31a36f['getRanges']()))){for(const _0x1da475 of _0x1d9257)_0x31a36f['addRange'](_0x1da475);return _0x31a36f;}for(const {suggestion:_0x3caefb,meta:_0x542ddf}of this['_findSuggestions'](_0x1d9257,'insertion')){if(!_0x542ddf['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x542ddf['containsRangeInObject'])continue;if(!pn(_0x3caefb,_0x27a0b1))continue;let _0x5a1d8d=!0x0;for(const _0x23def2 of _0x3caefb['getRanges']())for(const _0x5314e of _0x1d9257)if(!_0x23def2['containsRange'](_0x5314e)){_0x5a1d8d=!0x1;break;}if(_0x5a1d8d)return _0x3caefb;}const _0xf1609f=_0x4aa562(),_0x1c2e54=_0x49d8ab['id'],_0x3e7ce2='insertion:'+_0x1962ca,_0x5213e4=this['_setSuggestionData']({'id':_0xf1609f,'type':_0x3e7ce2,'createdAt':new Date(),'authorId':_0x1c2e54,'attributes':_0x27a0b1});for(const _0x4909e8 of _0x1d9257)this['_addSuggestionMarker'](_0x3e7ce2,_0xf1609f,_0x1c2e54,_0x4909e8,St['getMultiRangeId']());return _0x5213e4;}markInlineFormat(_0x109322,_0x19ec06,_0x178ba6=null,_0x581a3f={}){if(_0x178ba6=_0x178ba6||dn(_0x19ec06),_0x109322['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x581a3f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x26ff57=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x178ba6,'accept');return this['forceDefaultExecution'](()=>_0x26ff57([_0x109322],_0x19ec06,_0x581a3f)),null;}const _0x162b55=this['editor']['plugins']['get']('Users')['me'],_0x5c7844=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x106201,meta:_0x2620f2}of this['_findSuggestions'](_0x109322,'insertion'))_0x2620f2['isOwn']&&!_0x2620f2['isInsideObject']&&_0x5c7844['push'](..._0x106201['getRanges']());}const _0x183e95=function(_0x22693e,_0x22b09c){const _0x151d4f=[];for(const _0x4ae66e of _0x22b09c){const _0x28f8e6=_0x22693e['getIntersection'](_0x4ae66e);_0x28f8e6&&_0x151d4f['push'](_0x28f8e6);}return _0x151d4f;}(_0x109322,_0x5c7844),_0x253a2f=function(_0x10afaf,_0x161419){const _0xc3eb45=[_0x10afaf];for(const _0x41c975 of _0x161419){let _0x29640e=0x0;for(;_0x29640e<_0xc3eb45['length'];){const _0x3313ef=_0xc3eb45[_0x29640e]['getDifference'](_0x41c975);_0xc3eb45['splice'](_0x29640e,0x1,..._0x3313ef),_0x29640e+=_0x3313ef['length'];}}return _0xc3eb45;}(_0x109322,_0x5c7844);_0x183e95['length']&&this['_model']['change'](()=>{for(const _0x4ea74f of _0x183e95){const _0x47cf7e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x178ba6,'accept');this['forceDefaultExecution'](()=>_0x47cf7e([_0x4ea74f],_0x19ec06,_0x581a3f));}});for(const _0x1b7ab6 of _0x253a2f){let _0x318a0d=null,_0x3ad7e3=_0x1b7ab6['start'],_0x29a240=_0x1b7ab6['end'];for(const {suggestion:_0x573c62,meta:_0x4777fa}of this['_findSuggestions'](_0x1b7ab6,'formatInline')){if(!_0x4777fa['isOwn'])continue;if(_0x573c62['subType']!=_0x178ba6)continue;if(!pn(_0x573c62,_0x581a3f))continue;const _0x3da8b1=_0x573c62['getFirstRange']();if(_0x3da8b1['containsRange'](_0x1b7ab6,!0x0))return null;_0x3ad7e3=_0x3ad7e3['isBefore'](_0x3da8b1['start'])?_0x3ad7e3:_0x3da8b1['start'],_0x29a240=_0x29a240['isAfter'](_0x3da8b1['end'])?_0x29a240:_0x3da8b1['end'],_0x318a0d?_0x3da8b1['start']['isBefore'](_0x318a0d['getFirstRange']()['start'])?(_0x318a0d['removeMarkers'](),_0x318a0d=_0x573c62):_0x573c62['removeMarkers']():_0x318a0d=_0x573c62;}const _0x52a552=this['_model']['createRange'](_0x3ad7e3,_0x29a240);if(_0x318a0d)this['_setSuggestionRange'](_0x318a0d,_0x52a552);else{const _0x43a09d=_0x4aa562(),_0x4a2b94=_0x162b55['id'];this['_setSuggestionData']({'id':_0x43a09d,'type':'formatInline:'+_0x178ba6,'data':_0x19ec06,'createdAt':new Date(),'authorId':_0x4a2b94,'attributes':_0x581a3f}),this['_addSuggestionMarker']('formatInline:'+_0x178ba6,_0x43a09d,_0x4a2b94,_0x52a552);}}return null;}markBlockFormat(_0x512169,_0x47fcf8,_0x117f93=[],_0x5781ba=null,_0x4b3bdc={}){_0x47fcf8['formatGroupId']||(_0x47fcf8['formatGroupId']=_0x47fcf8['commandName']),_0x47fcf8['multipleBlocks']=_0x512169['is']('range'),_0x5781ba=_0x5781ba||dn(_0x47fcf8);const _0x5cd121=_0x117f93['map'](_0x48cf83=>En(_0x48cf83,this['_model'])),_0x3820d7=_0x512169['is']('range')?_0x512169:En(_0x512169,this['_model']);if(this['_trackingSessionId']&&(_0x4b3bdc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30a25b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5781ba,'accept');return this['forceDefaultExecution'](()=>_0x30a25b([_0x3820d7],_0x47fcf8,_0x4b3bdc)),null;}_0x5cd121['push'](_0x3820d7);let _0x2599b9=!0x0;for(const _0x56e5e3 of _0x5cd121)if(!this['_rangeIsInLocalUserInsertion'](_0x56e5e3)){_0x2599b9=!0x1;break;}if(_0x2599b9&&'always'!==this['_trackFormatChanges']){const _0x3dc640=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5781ba,'accept');return this['forceDefaultExecution'](()=>_0x3dc640([_0x3820d7],_0x47fcf8,_0x4b3bdc)),null;}let _0x1db289=null,_0x251ea9=_0x3820d7['start'],_0x4ff0d0=_0x3820d7['end'];for(const {suggestion:_0x34ea7d,meta:_0x418f7e}of this['_findSuggestions'](_0x3820d7,'formatBlock')){if(!_0x418f7e['isOwn'])continue;if(_0x418f7e['isNextTo']||_0x418f7e['containsRangeInObject']||_0x418f7e['isInsideObject'])continue;if(_0x34ea7d['data']['formatGroupId']!=_0x47fcf8['formatGroupId'])continue;if(!pn(_0x34ea7d,_0x4b3bdc))continue;const _0x5a4053=_0x34ea7d['getFirstRange']();if(_0x34ea7d['subType']==_0x5781ba){if(_0x5a4053['containsRange'](_0x3820d7,!0x0))return null;_0x251ea9=_0x251ea9['isBefore'](_0x5a4053['start'])?_0x251ea9:_0x5a4053['start'],_0x4ff0d0=_0x4ff0d0['isAfter'](_0x5a4053['end'])?_0x4ff0d0:_0x5a4053['end'],_0x1db289?_0x5a4053['start']['isBefore'](_0x1db289['getFirstRange']()['start'])?(_0x1db289['removeMarkers'](),_0x1db289=_0x34ea7d):_0x34ea7d['removeMarkers']():_0x1db289=_0x34ea7d;}else{const _0x38cf49=_0x3820d7['getIntersection'](_0x5a4053);this['_cutOutSuggestionMarker'](_0x34ea7d,_0x38cf49);}}const _0x1d0112=this['editor']['plugins']['get']('Users')['me'],_0x5f1443=_0x4aa562(),_0x371f8e=_0x1d0112['id'];if(_0x1db289)return this['_setSuggestionRange'](_0x1db289,this['_model']['createRange'](_0x251ea9,_0x4ff0d0)),_0x1db289;{const _0x25cc73=this['_setSuggestionData']({'id':_0x5f1443,'type':'formatBlock:'+_0x5781ba,'data':_0x47fcf8,'createdAt':new Date(),'authorId':_0x371f8e,'attributes':_0x4b3bdc});return this['_addSuggestionMarker']('formatBlock:'+_0x5781ba,_0x5f1443,_0x371f8e,this['_model']['createRange'](_0x251ea9,_0x4ff0d0)),_0x25cc73;}}markMultiRangeBlockFormat(_0x5df4e3,_0x2e86fa,_0x253e80=[],_0x5c6bbf=null,_0xe20b05={}){_0x2e86fa['formatGroupId']||(_0x2e86fa['formatGroupId']=_0x2e86fa['commandName']);const _0x2b188a=_0x5df4e3[0x0];_0x2e86fa['multipleBlocks']=_0x2b188a['is']('range'),_0x5c6bbf=_0x5c6bbf||dn(_0x2e86fa);const _0x3c10e2=_0x253e80['map'](_0x2a4ebb=>En(_0x2a4ebb,this['_model'])),_0x58135d=_0x2b188a['is']('range')?_0x5df4e3:_0x5df4e3['map'](_0x214838=>En(_0x214838,this['_model']));if(this['_trackingSessionId']&&(_0xe20b05['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37024d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c6bbf,'accept');return this['forceDefaultExecution'](()=>_0x37024d(_0x58135d,_0x2e86fa,_0xe20b05)),null;}_0x3c10e2['push'](..._0x58135d);let _0x1fdbf7=!0x0;for(const _0x246e38 of _0x3c10e2)if(!this['_rangeIsInLocalUserInsertion'](_0x246e38)){_0x1fdbf7=!0x1;break;}if(_0x1fdbf7&&'always'!==this['_trackFormatChanges']){const _0x3d224e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c6bbf,'accept');return this['forceDefaultExecution'](()=>_0x3d224e(_0x58135d,_0x2e86fa,_0xe20b05)),null;}const _0x1e1765=this['editor']['plugins']['get']('Users')['me'];for(const _0x12d4df of this['getSuggestions']()){const _0xe389a9=_0x12d4df['data'];if(_0x12d4df['author']['id']!=_0x1e1765['id'])continue;if('formatBlock'!=_0x12d4df['type']||_0xe389a9['formatGroupId']!=_0x2e86fa['formatGroupId'])continue;if(!pn(_0x12d4df,_0xe20b05))continue;const _0x4e339e=_0x12d4df['subType']==_0x5c6bbf;for(let _0x2b1601=0x0;_0x2b1601<_0x58135d['length'];_0x2b1601++){const _0x3b29e1=_0x58135d[_0x2b1601];for(const _0xccfbfa of _0x12d4df['getMarkers']()){const _0x1229a8=_0xccfbfa['getRange']();if(_0x3b29e1['isEqual'](_0x1229a8)){_0x4e339e?(_0x58135d['splice'](_0x2b1601,0x1),_0x2b1601--):_0x12d4df['removeMarker'](_0xccfbfa['name']);break;}}}}if(0x0==_0x58135d['length'])return null;const _0x4290f3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c6bbf,'join');for(const _0x394c7d of this['getSuggestions']()){const _0xfb65f2=_0x394c7d['data'];if(_0x394c7d['author']['id']==_0x1e1765['id']&&('formatBlock'==_0x394c7d['type']&&_0xfb65f2['formatGroupId']==_0x2e86fa['formatGroupId']&&_0x394c7d['subType']==_0x5c6bbf&&pn(_0x394c7d,_0xe20b05)&&(_0x4290f3(_0x394c7d['getRanges'](),_0x58135d)||_0x4290f3(_0x58135d,_0x394c7d['getRanges']())))){for(const _0x780853 of _0x58135d)_0x394c7d['addRange'](_0x780853);return _0x394c7d;}}const _0x1382c1=_0x4aa562(),_0x169a27=_0x1e1765['id'],_0x39f2e6='formatBlock:'+_0x5c6bbf,_0x17b722=this['_setSuggestionData']({'id':_0x1382c1,'type':_0x39f2e6,'data':_0x2e86fa,'createdAt':new Date(),'authorId':_0x169a27,'attributes':_0xe20b05});for(const _0x9f0e72 of _0x58135d)this['_addSuggestionMarker'](_0x39f2e6,_0x1382c1,_0x169a27,_0x9f0e72,St['getMultiRangeId']());return _0x17b722;}markDeletion(_0x1ea0b5,_0x4b59c5=null,_0x364148={}){if(_0x1ea0b5['isCollapsed'])return null;const _0x2aa999=this['editor']['plugins']['get']('Users')['me'],_0x5f0260=new rt(_0x1ea0b5['start'],_0x1ea0b5['end']);this['_trackingSessionId']&&(_0x364148['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53ec58,meta:_0x5249e5}of this['_findSuggestions'](_0x5f0260,'insertion'))if(_0x5249e5['isOwn']&&!_0x5249e5['isNextTo']){if(_0x53ec58['isMultiRange']){const _0x374c8c=_0x53ec58['getRanges']()['filter'](_0x502f7e=>'$graveyard'!=_0x502f7e['root']['rootName']);if(_0x374c8c['every'](_0x1d3c3c=>_0x5f0260['containsRange'](_0x1d3c3c,!0x0))&&_0x53ec58['discard'](),_0x374c8c['some'](_0xa59165=>_0xa59165['containsRange'](_0x5f0260,!0x0))){const _0x5e0ba5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b59c5,'accept');return this['forceDefaultExecution'](()=>_0x5e0ba5([_0x5f0260],null,_0x364148)),null;}}else{const _0x2772c0=_0x5f0260['getIntersection'](_0x53ec58['getFirstRange']());null!==_0x2772c0&&_0x53ec58['_onDiscard']([_0x2772c0],null,_0x364148);}}if(_0x5f0260['detach'](),_0x5f0260['isCollapsed']||'$graveyard'==_0x5f0260['root']['rootName'])return null;let _0x50cf28=null,_0x20aa47=_0x5f0260['start'],_0x276918=_0x5f0260['end'];const _0x3778d6=this['_findSuggestions'](_0x5f0260,'deletion');for(const {suggestion:_0x58c9c9,meta:_0x829b49}of _0x3778d6){const _0x4ba4b4=this['_model']['createRange'](_0x20aa47,_0x276918);if(_0x829b49['isOwn']&&(this['_mergeNestedSuggestions']||!_0x829b49['containsRangeInObject']&&!_0x829b49['isInsideObject'])){if(_0x58c9c9['isMultiRange']){if(!pn(_0x58c9c9,_0x364148))continue;let _0x9525a3=!0x0;for(const _0x396471 of _0x58c9c9['getRanges']()){if(_0x396471['containsRange'](_0x4ba4b4,!0x0))return _0x58c9c9;_0x4ba4b4['containsRange'](_0x396471)||(_0x9525a3=!0x1);}_0x9525a3&&_0x58c9c9['discard']();}else{const _0x39896e=_0x58c9c9['getFirstRange']();if(_0x39896e['containsRange'](_0x4ba4b4,!0x0))return _0x58c9c9;if(!pn(_0x58c9c9,_0x364148)){_0x4ba4b4['containsRange'](_0x39896e)?_0x58c9c9['removeMarkers']():_0x39896e['containsPosition'](_0x20aa47)?_0x20aa47=_0x39896e['end']:_0x39896e['containsPosition'](_0x276918)&&(_0x276918=_0x39896e['start']);continue;}_0x20aa47=_0x20aa47['isBefore'](_0x39896e['start'])?_0x20aa47:_0x39896e['start'],_0x276918=_0x276918['isAfter'](_0x39896e['end'])?_0x276918:_0x39896e['end'],_0x364148=Object['assign']({},_0x58c9c9['attributes']),_0x50cf28?_0x39896e['start']['isBefore'](_0x50cf28['getFirstRange']()['start'])?(_0x50cf28['removeMarkers'](),_0x50cf28=_0x58c9c9):_0x58c9c9['removeMarkers']():_0x50cf28=_0x58c9c9;}}}if(_0x50cf28)return this['_setSuggestionRange'](_0x50cf28,this['_model']['createRange'](_0x20aa47,_0x276918)),_0x50cf28;{const _0x1824ec=_0x4aa562(),_0x2c256e=this['_model']['createRange'](_0x20aa47,_0x276918),_0x410b65=_0x2aa999['id'],_0xe86bd8=_0x4b59c5?'deletion:'+_0x4b59c5:'deletion',_0x1e4e65=this['_setSuggestionData']({'id':_0x1824ec,'type':_0xe86bd8,'createdAt':new Date(),'authorId':_0x410b65,'attributes':_0x364148});return this['_addSuggestionMarker'](_0xe86bd8,_0x1824ec,_0x410b65,_0x2c256e),_0x1e4e65;}}markMultiRangeDeletion(_0x5d1df7,_0x32cf65='multi',_0x4f43e6={}){const _0x4a4d2c=this['editor']['plugins']['get']('Users')['me'],_0xf881e=_0x5d1df7['map'](_0x41f727=>new rt(_0x41f727['start'],_0x41f727['end'])),_0x1acf4a=new Set();this['_trackingSessionId']&&(_0x4f43e6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2b01f7,meta:_0x426032}of this['_findSuggestions'](_0xf881e,'insertion'))_0x426032['isOwn']&&!_0x426032['isNextTo']&&_0x1acf4a['add'](_0x2b01f7);for(const _0x4f6de1 of _0x1acf4a)if(_0x4f6de1['isMultiRange']){const _0x43c7d9=_0x4f6de1['getRanges']();if(_0x4f6de1['attributes']&&_0x4f6de1['attributes']['skipNestingCheck']||_0x43c7d9['every'](_0x45e2dc=>_0xf881e['some'](_0x46325c=>_0x46325c['containsRange'](_0x45e2dc,!0x0)))&&_0x4f6de1['discard'](),_0xf881e['every'](_0x59d7d1=>_0x43c7d9['some'](_0x5e4403=>_0x5e4403['containsRange'](_0x59d7d1,!0x0)))){const _0x1ccdf0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32cf65,'accept');return this['forceDefaultExecution'](()=>_0x1ccdf0(_0x5d1df7,null,_0x4f43e6)),null;}}else{const _0x5eb68e=_0x4f6de1['getFirstRange']();if(_0xf881e['some'](_0x3bba52=>_0x3bba52['containsRange'](_0x5eb68e,!0x0))&&_0x4f6de1['discard'](),_0xf881e['every'](_0x49730d=>_0x5eb68e['containsRange'](_0x49730d,!0x0))){const _0xa6a9d8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32cf65,'accept');return this['forceDefaultExecution'](()=>_0xa6a9d8(_0xf881e,null,_0x4f43e6)),null;}}const _0x1ebc7b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32cf65,'join');let _0x193178=null;for(const _0x18aa2d of this['getSuggestions']())if(_0x18aa2d['author']['id']==_0x4a4d2c['id']&&_0x18aa2d['isInContent']&&'deletion'==_0x18aa2d['type']&&_0x18aa2d['subType']==_0x32cf65&&pn(_0x18aa2d,_0x4f43e6)&&(_0x1ebc7b(_0x18aa2d['getRanges'](),_0xf881e)||_0x1ebc7b(_0xf881e,_0x18aa2d['getRanges']()))){if(_0x193178){if(_0x18aa2d['commentThread']&&_0x18aa2d['commentThread']['length'])continue;for(const _0x4a33c9 of _0x18aa2d['getRanges']())_0x193178['isIntersectingWithRange'](_0x4a33c9)||_0x193178['addRange'](_0x4a33c9);_0x18aa2d['removeMarkers']();}else{_0x193178=_0x18aa2d;for(const _0x173df7 of _0xf881e)_0x18aa2d['isIntersectingWithRange'](_0x173df7)||_0x18aa2d['addRange'](_0x173df7);}}if(_0x193178)return _0x193178;_0x1acf4a['clear']();for(const {suggestion:_0x3edfd9,meta:_0x26de06}of this['_findSuggestions'](_0xf881e,'deletion'))_0x26de06['isOwn']&&(this['_mergeNestedSuggestions']||!_0x26de06['containsRangeInObject']&&!_0x26de06['isInsideObject'])&&pn(_0x3edfd9,_0x4f43e6)&&_0x1acf4a['add'](_0x3edfd9);for(const _0xdfa0e0 of _0x1acf4a){const _0x267168=_0xdfa0e0['getRanges']();if((!_0x4f43e6||!_0x4f43e6['skipNestingCheck'])&&_0xf881e['every'](_0x58f972=>_0x267168['some'](_0x1cf70c=>_0x1cf70c['containsRange'](_0x58f972,!0x0))))return _0xdfa0e0;_0xdfa0e0['attributes']&&_0xdfa0e0['attributes']['skipNestingCheck']||_0x267168['every'](_0x206547=>_0xf881e['some'](_0x2759b9=>_0x2759b9['containsRange'](_0x206547,!0x0)))&&_0xdfa0e0['discard']();}const _0x4f27c2=_0x4aa562(),_0x3d7631=_0x4a4d2c['id'],_0x58ddf9='deletion:'+_0x32cf65,_0x5543d7=this['_setSuggestionData']({'id':_0x4f27c2,'type':_0x58ddf9,'createdAt':new Date(),'authorId':_0x3d7631,'attributes':_0x4f43e6});for(const _0x2248e3 of _0xf881e)_0x2248e3['detach'](),_0x2248e3['isCollapsed']||'$graveyard'==_0x2248e3['root']['rootName']||this['_addSuggestionMarker'](_0x58ddf9,_0x4f27c2,_0x3d7631,_0x2248e3,St['getMultiRangeId']());return _0x5543d7;}markAttributeChange(_0x281b8c,_0x51f188,_0x32bda2,_0x41a218,_0x4752ca){if(_0x281b8c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x26c18b=this['editor']['plugins']['get']('Users')['me']['id'],_0x507e01=Array['from'](this['_suggestions']['values']())['filter'](_0x328a5f=>'attribute'==_0x328a5f['type']&&_0x328a5f['data']['key']==_0x51f188&&_0x328a5f['isIntersectingWithRange'](_0x281b8c));if(this['_trackingSessionId']&&(_0x4752ca['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1cfca5=this['_findSuggestions'](_0x281b8c,'insertion')['filter'](({meta:_0x59c827})=>_0x59c827['isOwn']&&!_0x59c827['isInsideObject']&&!_0x59c827['isNextTo'])['map'](({suggestion:_0x21f8ff})=>_0x21f8ff);_0x507e01['unshift'](..._0x1cfca5);}const _0x78850b=new Map([[_0x281b8c,_0x32bda2]]);for(const _0x109a6e of _0x507e01){const _0x59aacb='attribute'==_0x109a6e['type']?_0x109a6e['data']['oldValue']:void 0x0,_0x3a2387=_0x109a6e['getFirstRange'](),_0x12442c=Array['from'](_0x78850b['keys']())['find'](_0x65079f=>_0x65079f['isIntersecting'](_0x3a2387));if(!_0x12442c)continue;const _0x3dd61a=_0x12442c['getDifference'](_0x3a2387);this['_suggestionsConversion']['isBlockAttribute'](_0x51f188)&&'insertion'==_0x109a6e['type']&&0x0!=_0x3dd61a['length']||(_0x78850b['delete'](_0x12442c),_0x3dd61a['forEach'](_0x3c5109=>{_0x78850b['set'](_0x3c5109,_0x32bda2);}),'insertion'!=_0x109a6e['type']&&_0x59aacb!=_0x41a218&&_0x78850b['set'](_0x12442c['getIntersection'](_0x3a2387),_0x59aacb));}const _0x296aa7=[];for(const [_0x25ac51,_0x45cd89]of _0x78850b){const _0x2351e7=_0x4aa562(),_0x4dd103={'key':_0x51f188,'oldValue':_0x45cd89,'newValue':_0x41a218};_0x51f188['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':_0x51f188});const _0x1fd0ed=('attribute:'+_0x51f188+'|'+dn({'newValue':_0x41a218}))['substring'](0x0,0x3c),_0x190d5c=this['_setSuggestionData']({'id':_0x2351e7,'type':_0x1fd0ed,'data':_0x4dd103,'createdAt':new Date(),'authorId':_0x26c18b,'attributes':_0x4752ca});_0x296aa7['push'](_0x190d5c),this['_addSuggestionMarker'](_0x1fd0ed,_0x2351e7,_0x26c18b,_0x25ac51);}return _0x296aa7;}enableDefaultAttributesIntegration(_0x1a8f7c){this['enableCommand'](_0x1a8f7c,(_0x5cdaf8,..._0x2438ee)=>{this['recordAttributeChanges'](()=>{_0x5cdaf8(..._0x2438ee);});});}startTrackingSession(_0x1a284a){return this['_trackingSessionId']=void 0x0!==_0x1a284a?_0x1a284a:_0x4aa562(),this['_trackingSessionId'];}_getAttributeKey(_0x4992cf){return'attribute'==_0x4992cf['type']?In(_0x4992cf['subType']):null;}_applyOperationsAsSuggestions(_0x582189){if(0x0==_0x582189['length'])return;const _0x217815=this['editor'],_0x56d54e=[],_0x2d95ba=_0x1b573e=>{const _0x5d9ad3=_0x1b573e['_aiSource'];return _0x5d9ad3?{'@ai':{'type':_0x5d9ad3}}:{};},_0x128703=(_0x304a5c,_0x31dbc0,_0x1765af)=>{for(let _0x282fdc=_0x31dbc0;_0x282fdc<_0x304a5c['operations']['length'];_0x282fdc++)_0x304a5c['operations'][_0x282fdc]['_aiSource']=_0x1765af;};_0x217815['model']['change'](_0x5e0850=>{for(let _0x2fb6ca=0x0;_0x2fb6ca<_0x582189['length'];_0x2fb6ca++){const _0x289433=_0x582189[_0x2fb6ca],_0x441f80=_0x289433['_aiSource'],_0x20f960=_0x5e0850['batch']['operations']['length'];if(_0x289433['baseVersion']=_0x217815['model']['document']['version'],_0x289433['isDocumentOperation']=!0x0,!_0x13baab(_0x289433)){if(rn(_0x289433)){const _0x5e5e6d=_0x3afe45(_0x289433['newRange'],_0x217815['model']);_0x56d54e['unshift']({'range':rt['fromRange'](_0x5e5e6d),'opAttributes':_0x2d95ba(_0x289433),'aiSource':_0x441f80});}else{switch(_0x289433['type']){case'rename':{const _0x322274=_0x289433['oldName'],_0x5d3884=_0x289433['newName'];if(_0x322274==_0x5d3884)break;_0x5e0850['batch']['addOperation'](_0x289433),_0x217815['model']['applyOperation'](_0x289433);const _0x512548='$elementName',_0x4b3be8=_0x289433['position'],_0x488bfb=_0x217815['model']['createRange'](_0x4b3be8,_0x217815['model']['createPositionAt'](_0x4b3be8['nodeAfter'],'end'));this['markAttributeChange'](_0x488bfb,_0x512548,_0x322274,_0x5d3884,{..._0x2d95ba(_0x289433),'groupId':_0x4aa562()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1cb569=_0x289433['oldValue'],_0xea58e=_0x289433['newValue'];if(_0x1cb569==_0xea58e)break;_0x5e0850['batch']['addOperation'](_0x289433),_0x217815['model']['applyOperation'](_0x289433);const _0x30d292=_0x289433['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x30d292))break;const _0x3240bd=_0x3afe45(_0x289433['range'],_0x217815['model']);this['markAttributeChange'](_0x3240bd,_0x30d292,_0x1cb569,_0xea58e,{..._0x2d95ba(_0x289433),'groupId':_0x4aa562()});break;}case'insert':{if(_0x5e0850['batch']['addOperation'](_0x289433),_0x217815['model']['applyOperation'](_0x289433),_0x582189[_0x2fb6ca+0x1]&&'move'==_0x582189[_0x2fb6ca+0x1]['type'])break;const _0x3965de=_0x289433['position'],_0x310960=_0x289433['howMany'],_0x1a5a5c=_0x3afe45(_0x217815['model']['createRange'](_0x3965de,_0x3965de['getShiftedBy'](_0x310960)),_0x217815['model']);this['markInsertion'](_0x1a5a5c,null,{..._0x2d95ba(_0x289433)});break;}case'split':{_0x5e0850['batch']['addOperation'](_0x289433),_0x217815['model']['applyOperation'](_0x289433);const _0x54f55d=_0x289433['splitPosition'],_0xece1bc=_0x289433['moveTargetPosition'],_0x4bfc0d=_0x217815['model']['createRange'](_0x54f55d,_0xece1bc);this['markInsertion'](_0x4bfc0d,null,{..._0x2d95ba(_0x289433)});break;}case'move':case'remove':_0x5e0850['batch']['addOperation'](_0x289433),_0x217815['model']['applyOperation'](_0x289433);}_0x441f80&&_0x128703(_0x5e0850['batch'],_0x20f960,_0x441f80);}}}for(const {range:_0x356595,opAttributes:_0x454446,aiSource:_0xc946af}of _0x56d54e){const _0x1cb916=_0x5e0850['batch']['operations']['length'];_0x356595['detach'](),this['markDeletion'](_0x356595,null,{..._0x454446}),_0xc946af&&_0x128703(_0x5e0850['batch'],_0x1cb916,_0xc946af);}});}_setSuggestionRange(_0x125651,_0x50ba62){const _0x41d0d0=_0x125651['getFirstMarker']();this['_model']['change'](_0xbfbca1=>{_0xbfbca1['updateMarker'](_0x41d0d0,{'range':_0x50ba62});});}_addThreadToSuggestion(_0x20fba9){const _0x10b963=_0x20fba9['id'],_0x1d74fc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x10b963)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1d74fc,'threadId':_0x10b963,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x143f70=this['_commentsRepository']['getCommentThread'](_0x10b963);_0x143f70['unbind']('isRemovable'),_0x143f70['isRemovable']=!0x1,_0x20fba9['commentThread']=_0x143f70;}_checkSuggestionCorrectness(_0x17a273,_0x329eb8,_0x12434c,_0x46dc67){if(_0x17a273['type']!=_0x329eb8||_0x17a273['subType']!=_0x12434c||_0x17a273['creator']['id']!=_0x46dc67)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2faccb('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x1ff406,_0x3c1b39){const _0x16e596=_0x1ff406['getFirstRange']();if(_0x3c1b39['isEqual'](_0x16e596))_0x1ff406['removeMarkers']();else{if(_0x16e596['containsRange'](_0x3c1b39)){const _0x42cb0e=this['_model']['createPositionAt'](_0x3c1b39['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ff406,this['_model']['createRange'](_0x16e596['start'],_0x42cb0e));const _0x5b6bf3=_0x4aa562(),_0x2c5eaa=_0x1ff406['creator']['id'],_0x4a15e6=_0x1ff406['type']+':'+_0x1ff406['subType'];this['_setSuggestionData']({'id':_0x5b6bf3,'type':_0x4a15e6,'createdAt':new Date(),'authorId':_0x2c5eaa,'data':_0x1ff406['data'],'attributes':_0x1ff406['attributes']});const _0x2b4680=this['_model']['createPositionAt'](_0x3c1b39['end']['parent'],'after'),_0x1da904=this['_model']['createRange'](_0x2b4680,_0x16e596['end']);this['_addSuggestionMarker'](_0x4a15e6,_0x5b6bf3,_0x2c5eaa,_0x1da904);}else{if(_0x16e596['containsPosition'](_0x3c1b39['start'])){const _0x5c64d7=this['_model']['createPositionAt'](_0x3c1b39['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ff406,this['_model']['createRange'](_0x16e596['start'],_0x5c64d7));}else{const _0x53671d=this['_model']['createPositionAt'](_0x3c1b39['end']['parent'],'after');this['_setSuggestionRange'](_0x1ff406,this['_model']['createRange'](_0x53671d,_0x16e596['end']));}}}}_rangeIsInLocalUserInsertion(_0x58fcf9){for(const {suggestion:_0x2062b4,meta:_0x5eb10b}of this['_findSuggestions'](_0x58fcf9,'insertion')){if(!_0x5eb10b['isOwn'])continue;const _0x84d9b4=_0x2062b4['getRanges']();for(const _0x2b7a39 of _0x84d9b4)if(!_0x58fcf9['getDifference'](_0x2b7a39)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x44f9bf){return this['editor']['plugins']['get']('Users')['getUser'](_0x44f9bf);}_getExternalAuthor(_0x1c141d){const _0x2d23a0=this['editor']['plugins']['get']('Users'),_0x5b47ec=_0x43717f('external:'+_0x1c141d),_0x48071d=_0x2d23a0['getUser'](_0x5b47ec);return _0x48071d||_0x2d23a0['addUser']({'id':_0x5b47ec,'name':_0x1c141d});}_createSuggestion(_0x3ed8d6,_0x1015a3,_0x44359b,_0x40acf6,_0x22a07c,_0x1bd618){const _0x586d86=this['_getAuthorFromId'](_0x40acf6);if(!_0x586d86)throw new _0x2faccb('track-changes-user-not-found',this,{'authorId':_0x40acf6,'suggestionId':_0x44359b});const _0x8e6b9b=this['_suggestionFactory']['buildSuggestion'](_0x3ed8d6,_0x1015a3,_0x44359b,_0x586d86,_0x22a07c,_0xd3aaa9=>{this['_updateSuggestionData'](_0x44359b,{'attributes':_0xd3aaa9});const _0x2b2819=this['getSuggestion'](_0x44359b);this['_joinWithAdjacentSuggestions'](new Set([_0x2b2819])),this['_refreshSuggestionsChain'](new Set([_0x2b2819]));},_0x1bd618);return this['listenTo'](_0x8e6b9b,'accept',()=>{this['_updateSuggestionData'](_0x44359b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x8e6b9b,'discard',()=>{this['_updateSuggestionData'](_0x44359b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x44359b,_0x8e6b9b),this['_suggestionState']['set'](_0x8e6b9b,'notReady'),_0x8e6b9b;}_breakSuggestionMarker(_0x3b72a5,_0x1164aa,_0x21abfa){const _0x414d11=_0x3b72a5['getFirstRange'](),_0x27611e=_0x414d11['start'],_0x404796=_0x414d11['end'];this['_setSuggestionRange'](_0x3b72a5,this['_model']['createRange'](_0x27611e,_0x1164aa));const _0x5f1b52=_0x4aa562(),_0x5ab331=_0x3b72a5['creator']['id'],_0x31a8da=_0x3b72a5['type']+(_0x3b72a5['subType']?':'+_0x3b72a5['subType']:'');this['_setSuggestionData']({'id':_0x5f1b52,'type':_0x31a8da,'createdAt':new Date(),'authorId':_0x5ab331,'originalSuggestionId':_0x3b72a5['_originalSuggestionId']||_0x3b72a5['id'],'attributes':_0x3b72a5['attributes'],'data':_0x3b72a5['data']});const _0x239d2f=this['_getAttributeKey'](_0x3b72a5);('formatBlock'==_0x3b72a5['type']||_0x239d2f&&this['_suggestionsConversion']['isBlockAttribute'](_0x239d2f))&&(_0x21abfa=this['_model']['createPositionBefore'](_0x21abfa['parent'])),this['_addSuggestionMarker'](_0x31a8da,_0x5f1b52,_0x5ab331,this['_model']['createRange'](_0x21abfa,_0x404796));}_findSuggestions(_0xcecd2c,_0x5cc856=null){const _0x4e211f=[],_0xc74800=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xcecd2c)||(_0xcecd2c=[_0xcecd2c]);for(const _0x440e01 of this['getSuggestions']()){if(!_0x440e01['isInContent'])continue;if(_0x5cc856&&_0x440e01['type']!=_0x5cc856)continue;let _0x50dd53=!0x1;for(const _0x5c9ffb of _0x440e01['getRanges']()){for(const _0x38c0fb of _0xcecd2c){const _0x5d4412=_0x38c0fb['start']['isEqual'](_0x5c9ffb['end'])||_0x38c0fb['end']['isEqual'](_0x5c9ffb['start']);if(_0x5d4412||_0x38c0fb['getIntersection'](_0x5c9ffb)){const _0x19ddc7=_0x38c0fb['containsRange'](_0x5c9ffb)&&cn(this['_model']['schema'],_0x5c9ffb['start'],_0x38c0fb),_0x4749d0=_0x5c9ffb['containsRange'](_0x38c0fb)&&cn(this['_model']['schema'],_0x38c0fb['start'],_0x5c9ffb);_0x4e211f['push']({'suggestion':_0x440e01,'meta':{'isOwn':_0xc74800==_0x440e01['author'],'isNextTo':_0x5d4412,'isInsideObject':_0x19ddc7,'containsRangeInObject':_0x4749d0}}),_0x50dd53=!0x0;break;}}if(_0x50dd53)break;}}return _0x4e211f;}_addSuggestionMarker(_0x4655ab,_0x476d42,_0x242adf,_0x4564a6,_0x18b390){this['_model']['change'](_0x1e9248=>{let _0x4754c1='suggestion:'+_0x4655ab+':'+_0x476d42+':'+_0x242adf;_0x18b390&&(_0x4754c1=_0x4754c1+':'+_0x18b390),_0x1e9248['addMarker'](_0x4754c1,{'range':_0x4564a6,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x21b90e){const _0x507285=_0x21b90e['previous'],_0x53d30e=_0x21b90e['next'];_0x21b90e['previous']=null,_0x21b90e['next']=null,null!=_0x507285&&_0x507285['next']==_0x21b90e&&(_0x507285['next']=_0x53d30e),null!=_0x53d30e&&_0x53d30e['previous']==_0x21b90e&&(_0x53d30e['previous']=_0x507285),'ready'==this['_suggestionState']['get'](_0x21b90e)&&(this['_suggestionState']['set'](_0x21b90e,'removed'),this['fire']('suggestionUnloaded',_0x21b90e,_0x507285,_0x53d30e));}_setSuggestionData(_0x42d78a){const _0x58a6f4=_0x42d78a['id'],_0x66cff6=this['addSuggestionData'](_0x42d78a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x41d352=this['editor']['plugins']['get']('PendingActions'),_0x17cf52=_0x66cff6['hasComments'],_0x4a31f4=_0x66cff6['subType']?_0x66cff6['type']+':'+_0x66cff6['subType']:_0x66cff6['type'],_0x51e249=this['editor']['locale'],_0x125e1b=_0x41d352['add'](Mt(_0x51e249,'PENDING_ACTION_SUGGESTION')),_0x3e593e={'id':_0x58a6f4,'type':_0x4a31f4,'hasComments':_0x17cf52,'data':_0x42d78a['data']||null,'originalSuggestionId':_0x42d78a['originalSuggestionId']||null,'attributes':_0x66cff6['attributes']};this['_adapter']['addSuggestion'](_0x3e593e)['then'](_0x54d866=>{_0x66cff6['_saved']=!0x0,_0x41d352['remove'](_0x125e1b),_0x54d866&&_0x54d866['createdAt']&&(this['_suggestions']['get'](_0x58a6f4)['createdAt']=_0x54d866['createdAt']);})['catch'](_0x3ac508=>{throw _0x5fc841('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x66cff6['discard']();}),_0x66cff6['stopListening'](),this['_suggestions']['delete'](_0x66cff6['id']),this['_suggestionState']['delete'](_0x66cff6),_0x3ac508;});}return _0x66cff6;}_updateSuggestionData(_0x2dcd82,_0x539fba){const _0x5efd12=this['editor']['plugins']['get']('PendingActions'),_0x2cf28f=this['getSuggestion'](_0x2dcd82);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2cf28f['_saved']){const _0x4df292=_0x5efd12['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2dcd82,_0x539fba)['then'](()=>{_0x5efd12['remove'](_0x4df292);});}else _0x2cf28f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2dcd82,_0x539fba);});}}_getSuggestionData(_0x3a4155){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2faccb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a4155);}_handleNewSuggestionMarker(_0x5c2f3e){const {id:_0x34b2f3,type:_0x25f257,subType:_0x59bf94,authorId:_0x1d287a}=tt(_0x5c2f3e),_0x11b9bc=this['_suggestions']['get'](_0x34b2f3)||this['_createSuggestion'](_0x25f257,_0x59bf94,_0x34b2f3,_0x1d287a,{});switch(this['_checkSuggestionCorrectness'](_0x11b9bc,_0x25f257,_0x59bf94,_0x1d287a),this['_suggestionState']['get'](_0x11b9bc)){case'notReady':this['_getSuggestionData'](_0x34b2f3)['then'](_0x511dd2=>{let _0x5126f3=Promise['resolve']();_0x511dd2['hasComments']&&(_0x5126f3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x34b2f3})),_0x5126f3['then'](()=>{this['addSuggestionData'](_0x511dd2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x11b9bc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x34b2f3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x11b9bc,'ready'),this['fire']('suggestionLoaded',_0x11b9bc);break;case'ready':this['fire']('suggestionChanged',_0x11b9bc);}return _0x11b9bc['addMarkerName'](_0x5c2f3e),_0x11b9bc;}_refreshSuggestionsChain(_0x337b31){const _0x57dc41=Array['from'](_0x337b31),_0x207e32=_0x57dc41['filter'](_0x79b7eb=>'attribute'==_0x79b7eb['type']);this['_refreshAttributeSuggestionsChain'](_0x207e32);const _0x42c54e=_0x57dc41['filter'](_0x53efcd=>!_0x53efcd['isMultiRange']&&'attribute'!=_0x53efcd['type']),_0x323dca=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x520727=>!_0x520727['isMultiRange']&&'attribute'!=_0x520727['type']),_0x556d0c=_0x323dca['filter'](_0x3a73a9=>!_0x337b31['has'](_0x3a73a9)),_0xa0ef54=new Map(_0x323dca['map'](_0x81df3b=>[_0x81df3b,this['_suggestionFactory']['getSuggestionCallback'](_0x81df3b['type'],_0x81df3b['subType'],'chain')])),_0x2d9e57=new Map(_0x323dca['map'](_0x2d9fc0=>[_0x2d9fc0,_0x2d9fc0['getFirstRange']()])),_0x4f1531=new Set(),_0x6d96c5=new Set();for(let _0x534db2=0x0;_0x534db2<_0x42c54e['length'];_0x534db2++)_0x5d82b1(_0x42c54e[_0x534db2],_0x42c54e,_0x534db2+0x1);for(let _0x3ec027=0x0;_0x3ec027<_0x42c54e['length'];_0x3ec027++)_0x5d82b1(_0x42c54e[_0x3ec027],_0x556d0c,0x0);const _0x5a708a=new Set();for(let _0x267d7c=0x0;_0x267d7c<_0x42c54e['length'];_0x267d7c++){const _0x345c7a=_0x42c54e[_0x267d7c];!_0x6d96c5['has'](_0x345c7a)&&_0x345c7a['previous']&&(_0x5a708a['add'](_0x345c7a['previous']),_0x345c7a['previous']['next']===_0x345c7a&&(_0x345c7a['previous']['next']=null),_0x345c7a['previous']=null),!_0x4f1531['has'](_0x345c7a)&&_0x345c7a['next']&&(_0x5a708a['add'](_0x345c7a['next']),_0x345c7a['next']['previous']===_0x345c7a&&(_0x345c7a['next']['previous']=null),_0x345c7a['next']=null);}function _0x5d82b1(_0x5b3618,_0x53ccac,_0x3732fe){for(let _0x975fde=_0x3732fe;_0x975fde<_0x53ccac['length'];_0x975fde++){const _0x3c3246=_0x31af6a(_0x5b3618,_0x53ccac[_0x975fde]);_0x3c3246&&(_0x3c3246[0x0]['next']=_0x3c3246[0x1],_0x3c3246[0x1]['previous']=_0x3c3246[0x0],_0x4f1531['add'](_0x3c3246[0x0]),_0x6d96c5['add'](_0x3c3246[0x1]));}}function _0x31af6a(_0x23a82a,_0x2d86aa){if(_0x23a82a['author']['id']!==_0x2d86aa['author']['id'])return null;const _0x2f60b9=_0xa0ef54['get'](_0x23a82a)(_0x23a82a,_0x2d86aa,_0x2d9e57['get'](_0x23a82a),_0x2d9e57['get'](_0x2d86aa));return _0x2f60b9&&_0xa0ef54['get'](_0x2d86aa)(_0x23a82a,_0x2d86aa,_0x2d9e57['get'](_0x23a82a),_0x2d9e57['get'](_0x2d86aa))?_0x2f60b9[0x1]['commentThread']&&_0x2f60b9[0x1]['commentThread']['length']?null:_0x2f60b9:null;}_0x5a708a['size']&&this['_refreshSuggestionsChain'](_0x5a708a);}_refreshAttributeSuggestionsChain(_0x7857fd){if(0x0==_0x7857fd['length'])return;const _0x275dfb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23b50e=>'attribute'==_0x23b50e['type']&&_0x23b50e['_isDataLoaded']),_0x5c8d80=[],_0x1512bf=new Map();for(const _0x546b12 of _0x275dfb){const _0x3dc70f=_0x43717f(_0x546b12['attributes']);_0x1512bf['has'](_0x3dc70f)||(_0x1512bf['set'](_0x3dc70f,_0x5c8d80['length']),_0x5c8d80['push']([])),_0x5c8d80[_0x1512bf['get'](_0x3dc70f)]['push'](_0x546b12);}!(function(){_0x5c8d80['sort']((_0x47a9d4,_0x473824)=>{const _0x1781b8=_0x47a9d4[0x0]['createdAt'],_0x22ab04=_0x473824[0x0]['createdAt'];return _0x1781b8==_0x22ab04?_0x47a9d4[0x0]['attributes']['groupId']<_0x473824[0x0]['attributes']['groupId']?-0x1:0x1:_0x1781b8<_0x22ab04?-0x1:0x1;});for(const _0x5ac6fa of _0x5c8d80)_0x5ac6fa['sort']((_0x3f6564,_0x4c5d09)=>_0x3f6564['id']<_0x4c5d09['id']?-0x1:0x1);}());for(let _0x1b8e20=0x0;_0x1b8e20<_0x5c8d80['length'];_0x1b8e20++){if(0x0==_0x5c8d80[_0x1b8e20]['length'])continue;const _0x3b3c48=[];for(let _0x103216=_0x1b8e20+0x1;_0x103216<_0x5c8d80['length'];_0x103216++)0x0!=_0x5c8d80[_0x103216]['length']&&_0x52ae7c(_0x5c8d80[_0x1b8e20],_0x5c8d80[_0x103216])&&_0x3b3c48['push'](_0x103216);for(const _0x14a953 of _0x3b3c48)_0x5c8d80[_0x1b8e20]=_0x5c8d80[_0x1b8e20]['concat'](_0x5c8d80[_0x14a953]),_0x5c8d80[_0x14a953]=[];}for(const _0x5ab88a of _0x5c8d80)for(let _0x252f6a=0x0;_0x252f6a<_0x5ab88a['length'];_0x252f6a++){const _0x22e40d=_0x5ab88a[_0x252f6a+0x1]||null;_0x5ab88a[_0x252f6a]['next']!==_0x22e40d&&(_0x5ab88a[_0x252f6a]['next']=_0x22e40d);}for(const _0x3f019d of _0x5c8d80)for(let _0x1438b4=0x0;_0x1438b4<_0x3f019d['length'];_0x1438b4++){const _0x1e89c2=_0x3f019d[_0x1438b4-0x1]||null;_0x3f019d[_0x1438b4]['previous']!==_0x1e89c2&&(_0x3f019d[_0x1438b4]['previous']=_0x1e89c2);}function _0x52ae7c(_0x180966,_0x529c19){if(_0x180966[0x0]['attributes']['groupId']!==_0x529c19[0x0]['attributes']['groupId']&&_0x180966[0x0]['author']!==_0x529c19[0x0]['author'])return!0x1;if(!function(_0x489dcc,_0xf5e2a1){return!_0x489dcc['hasComments']&&!_0xf5e2a1['hasComments']||(!_0x489dcc['hasComments']||!_0xf5e2a1['hasComments'])&&(!!(_0x489dcc['hasComments']&&_0xf5e2a1['createdAt']<_0x489dcc['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0xf5e2a1['hasComments']&&_0x489dcc['createdAt']<_0xf5e2a1['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x180966[0x0],_0x529c19[0x0]))return!0x1;const _0x433a0d=lt(_0x180966[0x0]['attributes'],['groupId','trackingSessionId']),_0x1b8e94=lt(_0x529c19[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x433a0d,_0x1b8e94)&&(_0x180966[0x0]['attributes']['groupId']==_0x529c19[0x0]['attributes']['groupId']||_0x180966[0x0]['attributes']['trackingSessionId']===_0x529c19[0x0]['attributes']['trackingSessionId']&&(!!_0x180966['every'](_0x3e164c=>_0x529c19['some'](_0x252246=>_0x3e164c['getFirstRange']()['isEqual'](_0x252246['getFirstRange']())))&&_0x529c19['every'](_0x2cbf93=>_0x180966['some'](_0x3a37a1=>_0x2cbf93['getFirstRange']()['isEqual'](_0x3a37a1['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x34d5fa){const _0x419152=Array['from'](_0x34d5fa),_0x5ae4ae=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1b6b9a=_0x5ae4ae['filter'](_0x38a0f3=>!_0x34d5fa['has'](_0x38a0f3)),_0x2a0554=new Map(_0x419152['map'](_0x54108a=>[_0x54108a,this['_suggestionFactory']['getSuggestionCallback'](_0x54108a['type'],_0x54108a['subType'],'join')])),_0x25b41d=new Map(_0x5ae4ae['map'](_0x10ad3d=>[_0x10ad3d,_0x10ad3d['getRanges']()]));for(let _0x429a61=0x0;_0x429a61<_0x419152['length'];_0x429a61++)if(_0xf8827e(this,_0x419152[_0x429a61],_0x419152,_0x429a61+0x1))return!0x0;for(let _0x504def=0x0;_0x504def<_0x419152['length'];_0x504def++)if(_0xf8827e(this,_0x419152[_0x504def],_0x1b6b9a,0x0))return!0x0;return!0x1;function _0xf8827e(_0x5cc1a1,_0x3c0e39,_0x48a846,_0x252bba){for(let _0x403e25=_0x252bba;_0x403e25<_0x48a846['length'];_0x403e25++){const _0x4fb764=_0x48a846[_0x403e25];if(_0x4fb764['type']!==_0x3c0e39['type']||_0x4fb764['author']['id']!==_0x3c0e39['author']['id']||_0x4fb764['subType']!==_0x3c0e39['subType'])continue;if(!_n(_0x3c0e39,_0x4fb764))continue;if('attribute'==_0x3c0e39['type']&&_0x3c0e39['data']['oldValue']!=_0x4fb764['data']['oldValue'])continue;if('attribute'==_0x3c0e39['type']&&_0x5cc1a1['_suggestionsConversion']['isBlockAttribute'](_0x3c0e39['data']['key']))continue;if('formatBlock'==_0x3c0e39['type']){const _0x47393c=_0x5cc1a1['editor']['model'],_0x419439=_0x3c0e39['getContainedElement']();if(_0x419439&&(_0x47393c['schema']['isObject'](_0x419439)||_0x47393c['schema']['isLimit'](_0x419439)))continue;}const _0x15fb6f=_0x2a0554['get'](_0x3c0e39),_0x347668=_0x25b41d['get'](_0x3c0e39),_0x43c118=_0x25b41d['get'](_0x4fb764),_0x530bde=_0x3c0e39['commentThread']&&_0x3c0e39['commentThread']['length'],_0xfcb286=_0x4fb764['commentThread']&&_0x4fb764['commentThread']['length'];if(!_0x530bde&&_0x15fb6f(_0x43c118,_0x347668))return _0x5cc1a1['_joinSuggestions'](_0x4fb764,_0x3c0e39),_0x25b41d['delete'](_0x3c0e39),!0x0;if(!_0xfcb286&&_0x15fb6f(_0x347668,_0x43c118))return _0x5cc1a1['_joinSuggestions'](_0x3c0e39,_0x4fb764),_0x25b41d['delete'](_0x4fb764),!0x0;}return!0x1;}}_joinSuggestions(_0x1e1c25,_0x30ad5c){if(_0x1e1c25['isMultiRange']){for(const _0xacc0f4 of _0x30ad5c['getRanges']())_0x1e1c25['addRange'](_0xacc0f4);}else{const _0x54ad3f=_0x30ad5c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1e1c25,this['_model']['createRange'](_0x1e1c25['getFirstRange']()['start'],_0x54ad3f));}_0x30ad5c['removeMarkers']();}_getMarkerAnnouncementText(_0x77cc7d,_0x2ceab7,_0x107e59){const _0x3f352f=_0x77cc7d['startsWith']('format')||_0x77cc7d['startsWith']('attribute')?'FORMATTING':_0x77cc7d['toUpperCase']();return Mt(this['editor']['locale'],_0x2ceab7+'_'+_0x3f352f+'_SUGGESTION_ANNOUNCEMENT',_0x107e59);}_initAriaMarkerChangeAnnouncements(){const _0x4cad1e=this['editor'];if(!_0x4cad1e['ui'])return;const {ariaLiveAnnouncer:_0x2a0189}=_0x4cad1e['ui'];et(this['_model'],({left:_0x4e6082,entered:_0x300b34})=>{for(const _0x4f3cfe of _0x4e6082){const {group:_0x4ebb51,type:_0x24dbe8}=tt(_0x4f3cfe['name']);if('suggestion'===_0x4ebb51){_0x2a0189['announce'](this['_getMarkerAnnouncementText'](_0x24dbe8,'LEAVE'));break;}}for(const _0x23231b of _0x300b34){const {group:_0x48a278,type:_0x9d83c8}=tt(_0x23231b['name']);if('suggestion'===_0x48a278){_0x2a0189['announce'](this['_getMarkerAnnouncementText'](_0x9d83c8,'ENTER',_0x239078(_0x4b3db1)));break;}}});}_processAttributeChanges(_0x371047){if(this['_recordAttributeSuggestions'])return!0x1;const _0x461d2b=this['editor'],_0x1dff88=_0x461d2b['model']['document']['differ']['getChanges']();if(0x0==_0x1dff88['length'])return!0x1;const _0x272260=[],_0x94c6f5=_0x1dff88['filter'](_0xc3b455=>'attribute'==_0xc3b455['type']),_0x23f818=_0x1dff88['filter'](_0x12e5e2=>'insert'==_0x12e5e2['type']&&'$text'!=_0x12e5e2['name']),_0x4681ed=_0x1dff88['filter'](_0xdaee82=>'remove'==_0xdaee82['type']&&'$text'!=_0xdaee82['name']);for(const _0x2572c2 of _0x94c6f5)_0x272260['push']({'key':_0x2572c2['attributeKey'],'newValue':_0x2572c2['attributeNewValue'],'oldValue':_0x2572c2['attributeOldValue'],'range':mn(_0x2572c2['range'],_0x461d2b['model'])});for(const _0x5ea08d of _0x23f818){const _0x3d86f9=_0x4681ed['find'](_0x4345ce=>_0x4345ce['position']['isEqual'](_0x5ea08d['position']));_0x3d86f9&&_0x272260['push']({'key':sn,'newValue':_0x5ea08d['name'],'oldValue':_0x3d86f9['name'],'range':_0x461d2b['model']['createRangeOn'](_0x5ea08d['position']['nodeAfter'])});}return 0x0!=_0x272260['length']&&this['_reduceExistingSuggestions'](_0x371047,_0x272260);}_processAttributeSuggestions(_0x100a88){let _0x27ed26=!0x1;const _0x5582c2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4f4f74=>_0x4f4f74['data']['newRange']&&_0x4f4f74['name']['startsWith']('suggestion:attribute:'));for(const _0x58e6fb of _0x5582c2){const {subType:_0x3e0a8d,id:_0x29a879}=tt(_0x58e6fb['name']),_0x5406ab=_0x3e0a8d['split']('|')[0x0];for(const _0x3e02fb of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3e02fb['id']!=_0x29a879&&'attribute'==_0x3e02fb['type']&&_0x3e02fb['data']&&_0x3e02fb['data']['key']==_0x5406ab&&_0x3e02fb['getFirstRange']()['isIntersecting'](_0x58e6fb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3e02fb,_0x58e6fb['data']['newRange'],_0x100a88),_0x27ed26=!0x0);}return _0x27ed26;}recordAttributeChanges(_0x37b4b8){this['_recordAttributeSuggestions']=!0x0,_0x37b4b8();}_reduceExistingSuggestions(_0x1092fd,_0x4675ef){if(0x0==_0x4675ef['length'])return!0x1;let _0x4c31b5=!0x1;for(const _0xa453ac of _0x4675ef){const _0x5e6292=this['_findSuggestions'](_0xa453ac['range'],'attribute')['filter'](_0x5546e7=>!_0x5546e7['meta']['isNextTo'])['map'](_0x1611c9=>_0x1611c9['suggestion']),_0x2f8590=_0x43717f({'newValue':_0xa453ac['newValue']});_0x5e6292['filter'](_0x250dd7=>{const [_0x4d59ad,_0x472f33]=_0x250dd7['subType']['split']('|');return _0x4d59ad==_0xa453ac['key']&&_0x472f33!=_0x2f8590;})['forEach'](_0x5c97e4=>{this['_reduceSuggestionAttributeRange'](_0x5c97e4,_0xa453ac['range'],_0x1092fd),_0x4c31b5=!0x0;});}return _0x4c31b5;}_reduceSuggestionAttributeRange(_0x37b2cf,_0x17ddc0,_0x5e4cfe){const _0x5adc66=_0x37b2cf['getFirstRange']()['getDifference'](_0x17ddc0);0x0!==_0x5adc66['length']?0x1!==_0x5adc66['length']?this['_breakSuggestionMarker'](_0x37b2cf,_0x17ddc0['start'],_0x17ddc0['end']):this['_setSuggestionRange'](_0x37b2cf,_0x5adc66[0x0]):_0x5e4cfe['removeMarker'](_0x37b2cf['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x2806f6){this['_editor']=_0x2806f6,this['_model']=_0x2806f6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x5979ad,_0x13c0bc,_0x19c083,_0xcfdaa8,_0x4dfb53,_0x4a1b24,_0xfa11ff){return new St(this['_model'],{'type':_0x5979ad,'subType':_0x13c0bc,'id':_0x19c083,'originalSuggestionId':_0xfa11ff,'author':_0xcfdaa8,'creator':_0xcfdaa8,'attributes':_0x4dfb53,'onAttributesChange':_0x4a1b24,'onAccept':(..._0xfae173)=>this['getSuggestionCallback'](_0x5979ad,_0x13c0bc,'accept')(..._0xfae173),'onDiscard':(..._0x5166d3)=>this['getSuggestionCallback'](_0x5979ad,_0x13c0bc,'discard')(..._0x5166d3)});}registerCustomCallback(_0x3260c,_0x2c7f14,_0x1a7094,_0x19042d){const _0x3e7aa0=_0x3260c+':'+_0x2c7f14+':'+_0x1a7094;this['_customCallbacks']['set'](_0x3e7aa0,_0x19042d);}getSuggestionCallback(_0x437833,_0x550af0,_0x4ea04a){const _0x50f7f1=_0x437833+':'+_0x550af0+':'+_0x4ea04a;return this['_customCallbacks']['get'](_0x50f7f1)||this['_defaultCallbacks']['get'](_0x437833+':'+_0x4ea04a);}_registerDefaultCallbacks(){const _0x366e4a=()=>!0x1,_0x1b4db0=_0x45dc72=>{_0x45dc72['sort']((_0x2359fd,_0x216717)=>_0x2359fd['start']['isBefore'](_0x216717['start'])?0x1:-0x1),this['_model']['change'](_0x1cf78a=>{for(const _0xa15c3 of _0x45dc72){let _0x361ac9;_0x361ac9=_0xa15c3['end']['isAtEnd']&&_0xa15c3['end']['parent']==_0xa15c3['start']['nodeAfter']?_0x1cf78a['createSelection'](_0xa15c3['start']['nodeAfter'],'on'):_0x1cf78a['createSelection'](_0xa15c3),this['_model']['deleteContent'](_0x361ac9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4aa447=(_0x3108d2,_0x4441da)=>{_0x4441da&&this['_model']['change'](_0x5f1d01=>{const {commandName:_0x5c6412,commandParams:_0x3774cc=[]}=_0x4441da,_0x1c3d49=_0x3108d2['map'](_0x43a5c8=>(ln(_0x43a5c8)&&(_0x43a5c8=this['_model']['createRange'](_0x43a5c8['end'])),_0x43a5c8))['filter'](_0x52d1c2=>'$graveyard'!==_0x52d1c2['root']['rootName']);if(_0x1c3d49['length']<0x1)return;const _0x113f6a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5274d3=>rt['fromRange'](_0x5274d3));_0x5f1d01['setSelection'](_0x1c3d49);for(const _0x3057c9 of this['_editor']['commands']['commands']())_0x3057c9['refresh']();_0x3774cc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c6412,..._0x3774cc);const _0x74559=_0x113f6a['filter'](_0x52cc75=>'$graveyard'!=_0x52cc75['root']['rootName']);_0x74559['length']>0x0&&_0x5f1d01['setSelection'](_0x74559);for(const _0xd3a2fb of _0x113f6a)_0xd3a2fb['detach']();});},_0x19db74=(_0x479945,_0x46432b)=>0x1==_0x479945['length']&&0x1==_0x46432b['length']&&_0x479945[0x0]['end']['isEqual'](_0x46432b[0x0]['start']),_0x3eb1b5=(_0x54000d,_0x210f83,_0x20dc96,_0x119d6b)=>Tn(_0x54000d,_0x210f83,_0x20dc96,_0x119d6b)?[_0x54000d,_0x210f83]:Tn(_0x210f83,_0x54000d,_0x119d6b,_0x20dc96)?[_0x210f83,_0x54000d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x366e4a),this['_defaultCallbacks']['set']('insertion:discard',_0x1b4db0),this['_defaultCallbacks']['set']('insertion:join',_0x19db74),this['_defaultCallbacks']['set']('insertion:chain',_0x3eb1b5),this['_defaultCallbacks']['set']('deletion:accept',(_0x2d019c,_0xa047ef,_0x5d04be)=>{const _0x5a76fd=(_0x5d04be?.['@ai'])?.['type'];_0x5a76fd?this['_model']['change'](_0x192282=>{const _0x36af2d=_0x192282['batch']['operations']['length'];_0x1b4db0(_0x2d019c);for(let _0xf2ae8c=_0x36af2d;_0xf2ae8c<_0x192282['batch']['operations']['length'];_0xf2ae8c++)_0x192282['batch']['operations'][_0xf2ae8c]['_aiSource']=_0x5a76fd;}):_0x1b4db0(_0x2d019c);}),this['_defaultCallbacks']['set']('deletion:discard',_0x366e4a),this['_defaultCallbacks']['set']('deletion:join',_0x19db74),this['_defaultCallbacks']['set']('deletion:chain',_0x3eb1b5),this['_defaultCallbacks']['set']('formatInline:accept',_0x4aa447),this['_defaultCallbacks']['set']('formatInline:discard',_0x366e4a),this['_defaultCallbacks']['set']('formatInline:join',_0x19db74),this['_defaultCallbacks']['set']('formatInline:chain',_0x366e4a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4aa447),this['_defaultCallbacks']['set']('formatBlock:discard',_0x366e4a),this['_defaultCallbacks']['set']('formatBlock:join',_0x19db74),this['_defaultCallbacks']['set']('formatBlock:chain',_0x366e4a),this['_defaultCallbacks']['set']('attribute:accept',_0x366e4a),this['_defaultCallbacks']['set']('attribute:discard',(_0x499390,_0x87876d)=>{if(!_0x87876d)return;const _0x2087a7=this['_editor']['plugins']['get'](_0x479c91);this['_model']['change'](_0x4ee821=>{if('$elementName'==_0x87876d['key'])for(const _0x1850c1 of _0x499390){const _0x3b33e0=_0x1850c1['start']['nodeAfter'],_0x3a6657=_0x87876d['oldValue'];_0x4ee821['rename'](_0x3b33e0,_0x3a6657);}else{if(_0x2087a7['isBlockAttribute'](_0x87876d['key'])){for(const _0x1214db of _0x499390)void 0x0!==_0x87876d['oldValue']?_0x4ee821['setAttribute'](_0x87876d['key'],_0x87876d['oldValue'],_0x1214db['start']['nodeAfter']):_0x4ee821['removeAttribute'](_0x87876d['key'],_0x1214db['start']['nodeAfter']);}else{for(const _0x4cc0bb of _0x499390)_0x87876d['oldValue']?_0x4ee821['setAttribute'](_0x87876d['key'],_0x87876d['oldValue'],_0x4cc0bb):_0x4ee821['removeAttribute'](_0x87876d['key'],_0x4cc0bb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x19db74);}};function cn(_0x45f046,_0x5b5639,_0x793205){for(const _0x2112e6 of _0x5b5639['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2112e6['root']==_0x2112e6)return!0x1;if(!_0x793205['containsItem'](_0x2112e6))return!0x1;if(_0x45f046['isObject'](_0x2112e6)||_0x45f046['isLimit'](_0x2112e6))return!0x0;}return!0x1;}function ln(_0x3062b4){return _0x3062b4['end']['parent']==_0x3062b4['start']['nodeAfter']&&_0x3062b4['end']['isAtStart'];}function un(_0x325d0f,_0x5eff6e,_0x2a6401,_0xab693f){const _0x42226e=_0x12180a=>!_0x12180a['item']['is']('$textProxy')&&!_0xab693f['isObject'](_0x12180a['item']),_0x4b7eb=_0x325d0f['start']['getLastMatchingPosition'](_0x42226e),_0x2895ec=_0x325d0f['end']['getLastMatchingPosition'](_0x42226e,{'direction':'backward'});return(!_0x325d0f['start']['isEqual'](_0x4b7eb)||!_0x325d0f['end']['isEqual'](_0x2895ec))&&(_0x4b7eb['isBefore'](_0x2895ec)?_0x2a6401['updateMarker'](_0x5eff6e,{'range':_0x2a6401['createRange'](_0x4b7eb,_0x2895ec)}):_0x2a6401['removeMarker'](_0x5eff6e),!0x0);}function dn(_0x26c88f){return _0x43717f(_0x26c88f);}function hn(_0x1c28f7){const _0x43a472=_0x1c28f7['start']['nodeAfter'];return _0x43a472&&_0x43a472['is']('element');}function gn(_0x46edf3){return ln(_0x46edf3)||function(_0x1a2d53){return _0x1a2d53['start']['parent']==_0x1a2d53['end']['nodeBefore']&&_0x1a2d53['start']['isAtEnd'];}(_0x46edf3);}function fn(_0x2a22ab,_0x4dde47){try{const _0x1d7145=_0x2a22ab['getRange']();for(const _0x520518 of _0x4dde47)if(_0x2a22ab!==_0x520518&&_0x1d7145&&_0x1d7145['isIntersecting'](_0x520518['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x3ba13f,_0x5741d7){return null==_0x3ba13f['end']['nodeBefore']&&_0x3ba13f['end']['parent']==_0x3ba13f['start']['nodeAfter']?En(_0x3ba13f['start']['nodeAfter'],_0x5741d7):_0x3ba13f;}function En(_0x406853,_0x1467d6){const _0x5891c8=_0x1467d6['schema']['isObject'](_0x406853)||_0x1467d6['schema']['isSelectable'](_0x406853);return _0x1467d6['createRange'](_0x1467d6['createPositionAt'](_0x406853,'before'),_0x5891c8?_0x1467d6['createPositionAfter'](_0x406853):_0x1467d6['createPositionAt'](_0x406853,'end'));}function Tn(_0x20f26b,_0x18f999,_0xeee4bc,_0x4d5993){return!!_n(_0x20f26b,_0x18f999)&&_0xeee4bc['end']['isEqual'](_0x4d5993['start']);}function _n(_0x13183e,_0x58920e){if(!_0x13183e['_isDataLoaded']||!_0x58920e['_isDataLoaded'])return!0x1;const _0x30c943=new Set(Object['keys'](_0x13183e['attributes'])),_0x474686=new Set(Object['keys'](_0x58920e['attributes']));if(_0x30c943['delete']('groupId'),_0x474686['delete']('groupId'),0x0==_0x30c943['size']&&0x0==_0x474686['size'])return!0x0;if(_0x30c943['size']!=_0x474686['size'])return!0x1;const _0x1051a8={..._0x13183e['attributes']},_0x46740d={..._0x58920e['attributes']};return delete _0x1051a8['groupId'],delete _0x46740d['groupId'],JSON['stringify'](_0x1051a8)==JSON['stringify'](_0x46740d);}function pn(_0x36ad05,_0x3e5c78){const _0x16e43e=Ln(_0x36ad05['attributes']),_0x117eaa=Ln(_0x3e5c78);if(!_0x36ad05['_isDataLoaded'])return!0x1;if(!ct(_0x16e43e['@ai'],_0x117eaa['@ai']))return!0x1;for(const _0x518937 of Object['keys'](_0x117eaa))if(!ct(_0x16e43e[_0x518937],_0x117eaa[_0x518937]))return!0x1;return!0x0;}function Ln(_0x31e310){const _0x1e06cd=Object['assign']({},_0x31e310);return delete _0x1e06cd['skipNestingCheck'],delete _0x1e06cd['tablePasteChainId'],_0x1e06cd;}function In(_0x1b8d70){return _0x1b8d70['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
+ _0x37f228();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x4d38ee,_0x377583,_0x154703,_0x445435){super(),this['model']=_0x377583,this['view']=_0x154703,this['commentThreadController']=_0x445435,this['_editor']=_0x4d38ee,this['_acceptCommand']=_0x4d38ee['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d38ee['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x121df2,_0x599b1e)=>_0x121df2||_0x599b1e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5c88bf=>_0x5c88bf&&this['_editor']['model']['canEditAt'](_0x377583['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1c181e=>_0x1c181e&&this['_editor']['model']['canEditAt'](_0x377583['getRanges']())),this['_pendingAction']=null,_0x154703['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x154703,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x154703,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x154703,'change:isDirty',()=>{_0x154703['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 _0x51a096=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x51a096);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},kn=class extends _0x4c905d{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x696e1c,_0x4987be,_0x24abe9,_0x591d68){super(_0x696e1c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x23bc98(_0x696e1c,Mt(_0x696e1c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4987be['authoredAt']),this['bind']('authoredAt')['to'](_0x4987be),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',_0x4987be,'authoredAt',this,'descriptionParts',(_0x469ffb,_0x122c5e,_0x257952)=>{const _0x446b64=_0x257952['map'](_0x43017b=>Lt(_0x43017b['content']))['join']('.\x20')+'.',_0x11c174=_0x4987be['aiSource']&&'author'===_0x591d68['showAISource']?_0x591d68['aiAuthor']['name']:_0x4987be['author']['name'],_0x21b69c=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x469ffb-0x1,_0x11c174,_0x122c5e?_0x591d68['formatDateTime'](_0x122c5e):'',new DOMParser()['parseFromString'](_0x446b64,'text/html')['body']['textContent']]);return _0x4987be['aiSource']&&'pill'===_0x591d68['showAISource']?_0x21b69c+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x21b69c;}),this['focusables']=new _0x3be405(),this['focusTracker']=new _0x5168be(),this['keystrokes']=new _0x102cde(),this['focusCycler']=new _0x4a519b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x52a41f=>_0x52a41f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4987be,this['_localUser']=_0x24abe9,this['_config']=_0x591d68,_0x591d68['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x500825(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x3de0c9}=this['_config'];this['commentsListView']=new _0x3de0c9(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',_0x18a34a=>_0x18a34a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4463e8,_0x30b5db)=>_0x4463e8||!!_0x30b5db);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x419257}=this['_config'],_0x2f171a=new _0x419257(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c07f5=_0x2f171a['commentInputView'];return _0x2f171a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c07f5,'value',(_0xecfb74,_0x50dfdf,_0xaa0a75)=>!!_0xaa0a75||_0xecfb74&&!_0x50dfdf),_0x3c07f5['on']('submit',(_0x4d4f8e,_0x1870ef)=>{this['fire']('addComment',_0x1870ef),_0x3c07f5['editor']['setData']('');}),_0x3c07f5['on']('cancel',()=>this['focus']()),_0x3c07f5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f171a;}},Cn=class extends kn{suggestionView;_descriptionElement;constructor(_0x550d72,_0xa40399,_0x222216,_0xcf60b8){super(_0x550d72,_0xa40399,_0x222216,_0xcf60b8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xdc50d2=>_0xdc50d2&&_0xdc50d2[0x0]?_0xdc50d2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4c4d08,_0x58c837)=>{let _0x426a92='';for(const _0x4210fa of _0x4c4d08)_0x426a92+='<p>'+Lt(_0x4210fa['content'],_0x4210fa['color'])+'</p>';return _0x58c837?_0x426a92:nt(_0x426a92,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xcf60b8['SuggestionView'](_0x550d72,_0xa40399,{'formatDateTime':_0xcf60b8['formatDateTime'],'showAISource':_0xcf60b8['showAISource'],'aiAuthor':_0xcf60b8['aiAuthor']}),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 _0x59fb3a=this['bindTemplate'],_0x3e3942=[this['suggestionView']];return this['commentsListView']&&_0x3e3942['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3e3942['push'](this['commentThreadInputView']),_0x3e3942['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x59fb3a['if']('isActive','ck-suggestion-wrapper--active'),_0x59fb3a['to']('type',_0x53cfbe=>'ck-suggestion-'+_0x53cfbe),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':_0x59fb3a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3e3942};}['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));}},Rn=class extends _0x4c905d{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0xce0839,_0x1bca68,_0xd46a6c){super(_0xce0839),this['_model']=_0x1bca68,this['_config']=_0xd46a6c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1bca68),this['acceptButton']=this['_createButton'](Mt(_0xce0839,'Accept\x20suggestion'),_0x1a9023,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0xce0839,'Discard\x20suggestion'),_0x2275d4,'ck-suggestion--discard','discardSuggestion','sw');const _0xa6beb0=!!_0x1bca68['aiSource']&&'author'===_0xd46a6c['showAISource'],_0x35e212=_0xa6beb0?this['_createAIUser'](_0xd46a6c['aiAuthor']):_0x1bca68['author'],_0x21826a=_0xa6beb0&&!_0xd46a6c['aiAuthor']['avatar']?_0x3406c2:void 0x0;this['userView']=new _0x4dfbd0(_0xce0839,_0x35e212,this['getUserViewNotificationText'](),_0x21826a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3be405([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5168be(),this['keystrokes']=new _0x102cde(),this['focusCycler']=new _0x4a519b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2b728e=>_0x2b728e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x47279f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x47279f['innerHTML']=this['description'],this['on']('change:description',(_0x1c4153,_0x3c3b13,_0xe4f9fb)=>{_0x47279f['innerHTML']=_0xe4f9fb;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x11a30f=this['bindTemplate'],_0x4fadbc=[{'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':_0x11a30f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x11a30f['to']('authoredAt',_0x11a476=>this['_config']['formatDateTime'](_0x11a476))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x4fadbc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x2c7e34=new _0x23e89f(this['locale']);_0x2c7e34['set']({'icon':_0xa2c210,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x4fadbc['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x2c7e34]});}return{'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':_0x4fadbc}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x2f3f66){return new _0x2b2ea0({'id':'ck-ai-author','name':_0x2f3f66['name'],'avatar':_0x2f3f66['avatar'],'color':new _0x5c15c6(0x0)});}_createButton(_0x30484d,_0x291796,_0x4061c0,_0x2588cc,_0x5330db){const _0x28b9f6=new _0x4594aa(this['locale']);return _0x28b9f6['set']({'label':_0x30484d,'icon':_0x291796,'tooltip':!0x0,'tooltipPosition':_0x5330db}),_0x28b9f6['extendTemplate']({'attributes':{'class':_0x4061c0}}),_0x28b9f6['on']('execute',()=>{this['fire'](_0x2588cc,this['_model']['id']);}),_0x28b9f6;}_setupKeyboardNavigation(){const _0x19c583=this['element'];this['keystrokes']['listenTo'](_0x19c583);for(const _0x159827 of this['focusables'])this['focusTracker']['add'](_0x159827['element']),this['keystrokes']['listenTo'](_0x159827['element']);this['keystrokes']['set']('enter',(_0x32d516,_0x38d61e)=>{_0x19c583===_0x32d516['target']&&(this['focusCycler']['focusFirst'](),_0x38d61e());}),this['keystrokes']['set']('esc',(_0x5bb9c1,_0x411e03)=>{_0x19c583!==_0x5bb9c1['target']&&(this['focus'](),_0x411e03());});}},yn=class extends _0x5cf544{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x14ae03,_0x3f08e8,_0x5a86b5,_0x13b066];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bf8ad){super(_0x3bf8ad),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x41faf5=this['editor']['config'];_0x41faf5['define']('trackChanges.SuggestionThreadView',Cn),_0x41faf5['define']('trackChanges.SuggestionView',Rn),_0x41faf5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x41faf5['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x56d7db,_0x3a9322){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x411a71,_0x266885]of this['_handleControllerBuffer']){const _0x273213=this['_suggestionToController']['has'](_0x411a71);_0x273213||_0x266885?_0x273213&&_0x266885&&this['_destroyController'](_0x411a71):this['_initializeController'](_0x411a71);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x13b066)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x56d7db,_0x3a9322);}init(){const _0x70c67a=this['editor'],_0x4107df=_0x70c67a['plugins']['get'](on),_0x290542=_0x70c67a['plugins']['get'](_0x5a86b5),_0x5cda14=_0x70c67a['plugins']['get'](_0x13b066),_0x3b2344=_0x70c67a['plugins']['get'](_0x3f08e8);this['_addUIComponentsToFactory'](),_0x5cda14['addSourceCollector'](()=>{const _0x191729=[];for(const [_0x3a6b42,_0x46c3b0]of Array['from'](this['_suggestionToController'])){const _0x3295e5=_0x3a6b42['getAllAdjacentSuggestions'](),_0x330c71=[];for(const _0x363499 of _0x3295e5){if(!_0x363499['isInContent'])continue;if(_0x363499['isMultiRange']){_0x330c71['push'](..._0x363499['getRanges']());continue;}const _0x22f109=_0x363499['getFirstRange']();if(_0x330c71['length']>0x0){const _0x5ce807=_0x330c71[0x0]['getJoined'](_0x22f109);if(_0x5ce807){_0x330c71[0x0]=_0x5ce807;continue;}}_0x330c71['push'](_0x22f109);}_0x191729['push']([_0x46c3b0['view'],_0x330c71]);}return _0x191729;}),this['listenTo'](_0x4107df,'suggestionLoaded',(_0x5ce567,_0x17fcf8)=>{this['listenTo'](_0x17fcf8,'change:previous',(_0x271b6a,_0x2c2d61,_0x341355,_0x2193bf)=>{_0x17fcf8['isInContent']&&(null==_0x341355?(this['_updateController'](_0x2193bf['head']),this['_handleSuggestionControllerDelayed'](_0x17fcf8,!0x1)):(this['_updateController'](_0x341355['head']),null==_0x2193bf&&this['_handleSuggestionControllerDelayed'](_0x17fcf8,!0x0)));}),null!==_0x17fcf8['previous']?this['_updateController'](_0x17fcf8['head']):this['_handleSuggestionControllerDelayed'](_0x17fcf8,!0x1);}),this['listenTo'](_0x4107df,'suggestionUnloaded',(_0x4d4b23,_0x3c333f,_0x4a5be6)=>{this['stopListening'](_0x3c333f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c333f),this['_suggestionToController']['has'](_0x3c333f)&&this['_destroyController'](_0x3c333f),_0x4a5be6&&this['_updateController'](_0x4a5be6['head']);}),this['listenTo'](_0x4107df,'suggestionChanged',(_0x602b5e,_0x334939)=>{this['_updateController'](_0x334939);}),this['listenTo'](_0x290542,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3b2344,'addComment',(_0x1baf68,{threadId:_0x4ff356,isFromAdapter:_0x24d83f})=>{if(_0x24d83f||!_0x4107df['hasSuggestion'](_0x4ff356))return;const _0x31cb50=_0x4107df['getSuggestion'](_0x4ff356);this['_suggestionToController']['get'](_0x31cb50)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x477643=[this['editor']];for(const _0x1b5968 of _0x477643){let _0x17b09e;for(const _0x2729a1 in _0x1b5968){const _0x314f7e=_0x2729a1,_0x25cfed=_0x1b5968[_0x314f7e];if('trackChangesLicenseKeyValid'==_0x25cfed||'trackChangesLicenseKeyInvalid'==_0x25cfed||'trackChangesLicenseKeyExpired'==_0x25cfed||'trackChangesLicenseKeyDomainLimit'==_0x25cfed||'trackChangesLicenseKeyNotAllowed'==_0x25cfed||'trackChangesLicenseKeyEvaluationLimit'==_0x25cfed||'trackChangesLicenseKeyUsageLimit'==_0x25cfed){delete _0x1b5968[_0x314f7e],_0x17b09e=_0x25cfed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x17b09e&&_0x1b5968['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x17b09e&&_0x1b5968['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x17b09e&&_0x1b5968['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x17b09e&&_0x1b5968['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x17b09e&&_0x1b5968['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x17b09e&&_0x1b5968['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x168b61){const _0x39c187=this['_suggestionToController']['get'](_0x168b61);return _0x39c187&&this['editor']['plugins']['get'](_0x5a86b5)['getByInnerView'](_0x39c187['view'])||null;}getSuggestionForAnnotation(_0x479a33){const _0x510097=this['_viewToController']['get'](_0x479a33['innerView']);return _0x510097?_0x510097['model']:null;}_refreshActiveMarkers(){const _0x29f174=this['editor']['plugins']['get'](_0x5a86b5),_0x244306=this['editor']['plugins']['get'](on),_0x2b6f73=Array['from'](_0x29f174['activeAnnotations'],_0x224c61=>_0x224c61['innerView'])['filter'](_0x517f24=>this['_viewToController']['has'](_0x517f24)),_0x2caa11=[];for(const _0x529ca0 of _0x2b6f73){const _0x11b128=this['_viewToController']['get'](_0x529ca0)['model']['getAllAdjacentSuggestions']();_0x2caa11['push'](..._0x11b128['reduce']((_0x4137cc,_0x5da43a)=>[..._0x4137cc,..._0x5da43a['getMarkerNames']()],[]));}_0x244306['activeMarkers']=_0x2caa11;}_addUIComponentsToFactory(){const _0x43fceb=this['editor'],_0x5a3d24=_0x43fceb['locale'],_0x50d6d7=Mt(_0x5a3d24,'Track\x20changes'),_0x85ab71=new _0x4dbd7f([{'type':'switchbutton','model':new _0x2d34e9({'withText':!0x0,'isToggleable':!0x0,'label':_0x50d6d7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2d34e9({'withText':!0x0,'label':Mt(_0x5a3d24,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d34e9({'withText':!0x0,'label':Mt(_0x5a3d24,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d34e9({'withText':!0x0,'label':Mt(_0x5a3d24,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d34e9({'withText':!0x0,'label':Mt(_0x5a3d24,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x43fceb['plugins']['has']('TrackChangesPreview')&&_0x85ab71['addMany']([{'type':'separator'},{'type':'button','model':new _0x2d34e9({'withText':!0x0,'label':Mt(_0x5a3d24,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xb529b3 of _0x85ab71)if(Nn(_0xb529b3)){const _0xb602e=_0x43fceb['commands']['get'](_0xb529b3['model']['commandName']);_0xb529b3['model']['bind']('isOn','isEnabled')['to'](_0xb602e,'value','isEnabled');}_0x43fceb['ui']['componentFactory']['add']('trackChanges',_0x462129=>this['_createToolbarButton'](_0x462129,_0x85ab71,_0x50d6d7)),_0x43fceb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2beac5=>this['_createMenuBarMenu'](_0x2beac5,_0x85ab71,_0x50d6d7));}_createToolbarButton(_0x50b06b,_0xdaaa01,_0x3e3b0d){const _0x404514=_0x1b326e(_0x50b06b,_0x3803ab),_0x42a718=this['editor']['commands']['get']('trackChanges');_0x404514['buttonView']['set']({'tooltip':_0x3e3b0d,'label':_0x3e3b0d,'icon':_0x1c9f01}),_0x404514['buttonView']['bind']('isOn')['to'](_0x42a718,'value'),_0x404514['buttonView']['on']('execute',()=>{_0x42a718['execute'](),this['editor']['editing']['view']['focus']();}),_0x2e2a83(_0x404514,_0xdaaa01,{'role':'menu'});const _0x10eac3=[];for(const _0x295323 of _0xdaaa01)Nn(_0x295323)&&_0x10eac3['push'](this['editor']['commands']['get'](_0x295323['model']['commandName']));const _0x1ba5e9=_0x404514['buttonView'];return _0x1ba5e9['actionView']['unbind']('isEnabled'),_0x1ba5e9['arrowView']['unbind']('isEnabled'),_0x1ba5e9['actionView']['bind']('isEnabled')['to'](_0x42a718,'isEnabled'),_0x1ba5e9['arrowView']['bind']('isEnabled')['toMany'](_0x10eac3,'isEnabled',(..._0x326429)=>_0x326429['some'](_0x2ed67e=>_0x2ed67e)),_0x404514['on']('execute',_0x1fb99e=>{this['editor']['execute'](_0x1fb99e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x404514;}_createMenuBarMenu(_0x304e58,_0x2ca8c9,_0x174f3c){const _0x3aa4c1=new _0x44568a(_0x304e58),_0x205d9e=this['editor']['commands']['get']('trackChanges');_0x3aa4c1['buttonView']['set']({'label':_0x174f3c,'icon':_0x1c9f01});const _0x3ef1da=new _0x56e832(_0x304e58);for(const _0x17fd12 of _0x2ca8c9){if('separator'==_0x17fd12['type']){_0x3ef1da['items']['add'](new _0x2c8915(_0x304e58));continue;}const _0x1d99e9=new _0x2248bd(_0x304e58,_0x3aa4c1),_0x2a0edb=new _0x51db7d(_0x304e58),_0x385637=_0x17fd12['model'];_0x2a0edb['bind'](...Object['keys'](_0x385637))['to'](_0x385637),_0x2a0edb['delegate']('execute')['to'](_0x3aa4c1),_0x2a0edb['on']('execute',()=>{this['editor']['execute'](_0x385637['commandName']),this['editor']['editing']['view']['focus']();}),_0x1d99e9['children']['add'](_0x2a0edb),_0x3ef1da['items']['add'](_0x1d99e9);}return _0x3aa4c1['bind']('isEnabled')['to'](_0x205d9e,'isEnabled'),_0x3aa4c1['panelView']['children']['add'](_0x3ef1da),_0x3aa4c1;}_initializeController(_0x177f32){const _0x5f6dc2=this['editor'],_0x2e0c6c=_0x5f6dc2['config'],_0x2e5b2a=_0x5f6dc2['plugins']['get'](_0x5a86b5),_0x2770d3=_0x5f6dc2['plugins']['get'](_0x3f08e8),_0x355975=_0x5f6dc2['plugins']['get'](_0x13b066),_0x47031b=_0x5f6dc2['plugins']['get'](_0x14ae03)['me'],_0x36769b=_0x2e0c6c['get']('trackChanges')['SuggestionThreadView'],_0x75563c=_0x2e0c6c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4022b8,CommentThreadInputView:_0xd45350}=_0x5f6dc2['plugins']['get']('CommentsUI');let _0x3ba563,_0x2a0d1f,_0x48a7aa;this['_annotationViews']['has'](_0x177f32['id'])?(_0x2a0d1f=this['_annotationViews']['get'](_0x177f32['id']),_0x3ba563=_0x2a0d1f['mainView']):(_0x3ba563=new _0x36769b(_0x5f6dc2['locale'],_0x177f32,_0x47031b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2e0c6c['get']('comments.editorConfig'),'licenseKey':_0x2e0c6c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2e0c6c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2e0c6c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2e0c6c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x53f4d4(_0x2e0c6c['get']('locale'),_0x5f6dc2['locale']),'CommentView':_0x2e0c6c['get']('comments')['CommentView'],'CommentsListView':_0x4022b8,'CommentThreadInputView':_0xd45350,'SuggestionView':_0x75563c,'showAISource':_0x2e0c6c['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x2e0c6c['get']('trackChanges.aiAuthor'),'name':_0x2e0c6c['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x5f6dc2['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x3ba563['suggestionView']['acceptButton']['on']('execute',()=>{_0x5f6dc2['editing']['view']['focus']();}),_0x3ba563['suggestionView']['discardButton']['on']('execute',()=>{_0x5f6dc2['editing']['view']['focus']();}),_0x2a0d1f=_0x2e5b2a['createAnnotationView'](this['editor']['locale'],_0x3ba563),_0x2a0d1f['bind']('isDirty')['to'](_0x3ba563,'isDirty'),_0x2a0d1f['bind']('length')['to'](_0x3ba563),_0x2a0d1f['bind']('type')['to'](_0x3ba563,'type',_0x1e76dc=>'suggestion-'+_0x1e76dc),_0x3ba563['on']('escape',()=>{_0x48a7aa['fire']('escape');}),this['_annotationViews']['set'](_0x177f32['id'],_0x2a0d1f));const _0x2c697c=_0x2770d3['createCommentThreadController'](_0x177f32['commentThread'],_0x3ba563),_0x49fd0a=new bn(_0x5f6dc2,_0x177f32,_0x3ba563,_0x2c697c),_0x4e81c7=_0x177f32['getAllAdjacentSuggestions']()['filter'](_0x56652d=>_0x56652d['isInContent']);_0x3ba563['descriptionParts']=_0x5f6dc2['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x4e81c7),this['_suggestionToController']['set'](_0x177f32,_0x49fd0a),this['_viewToController']['set'](_0x3ba563,_0x49fd0a);const _0x3e7a96=()=>{const _0x1db951=[],_0x236b16=_0x177f32['getAllAdjacentSuggestions']()['filter'](_0xcfea55=>_0xcfea55['isInContent']);for(const _0x220eec of _0x236b16)_0x1db951['push'](..._0x220eec['getMarkers']());return _0x432206(_0x5f6dc2['editing'],_0x1db951);};_0x48a7aa=_0x2e5b2a['createAnnotation']({'view':_0x2a0d1f,'target':_0x3e7a96,'type':()=>'suggestion-'+_0x49fd0a['view']['type'],'isVisible':!!_0x3e7a96()}),_0x2770d3['_bindAnnotationToEditors'](_0x3ba563,_0x48a7aa),_0x2e5b2a['add'](_0x48a7aa),_0x355975['registerAnnotation'](_0x48a7aa);}_destroyController(_0x13b657){const _0xce3159=this['editor']['plugins']['get'](_0x3f08e8),_0x3d5748=this['editor']['plugins']['get'](_0x5a86b5),_0x5c2157=this['_suggestionToController']['get'](_0x13b657),_0x1be5f3=_0x5c2157['view'],_0x5606d2=_0x3d5748['getByInnerView'](_0x1be5f3);_0xce3159['_unbindEditors'](_0x1be5f3),_0x5606d2&&_0x3d5748['remove'](_0x5606d2),this['_suggestionToController']['delete'](_0x13b657),this['_viewToController']['delete'](_0x1be5f3),_0x5c2157['destroy']();}_updateController(_0x613faa){if(!_0x613faa['isInContent']||!this['_suggestionToController']['has'](_0x613faa))return;const _0x6b4052=this['editor']['plugins']['get'](on),_0x37f262=this['_suggestionToController']['get'](_0x613faa),_0x116c5b=_0x613faa['getAllAdjacentSuggestions']();_0x37f262['view']['descriptionParts']=_0x6b4052['descriptionFactory']['getDescriptions'](_0x116c5b);}destroy(){for(const _0x18d41a of this['_suggestionToController']['keys']())this['_destroyController'](_0x18d41a);for(const _0x3ef718 of this['_annotationViews']['values']())_0x3ef718['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x30a070){return'model'in _0x30a070;}var Sn=class extends _0x5cf544{static get requires(){return[on,yn,_0x179390];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3eb561){this['editor']['plugins']['get'](on)['adapter']=_0x3eb561;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x47f967){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x47f967);}getSuggestions({skipNotAttached:_0x5bc382=!0x1,toJSON:_0x6c7d38=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x5bc382,'toJSON':_0x6c7d38});}getSuggestion(_0x5164ed){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x5164ed);}};const Mn=['Pagination'];var On=class extends _0x5cf544{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x2331ad=this['editor'];if(_0x2331ad['config']['define']('trackChangesData.editorCreator',_0x4d07f4=>{const _0xfe2618=_0x2331ad['model']['document']['getRootNames']()['reduce']((_0x2554cc,_0x113d6f)=>(_0x2554cc[_0x113d6f]='',_0x2554cc),{});return _0x2331ad['constructor']['create'](_0xfe2618,_0x4d07f4);}),'function'!=typeof _0x2331ad['config']['get']('trackChangesData')['editorCreator'])throw new _0x2faccb('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x5635c1){return Bn(this['editor'],!0x0,_0x5635c1);}getDataWithDiscardedSuggestions(_0xd68f71){return Bn(this['editor'],!0x1,_0xd68f71);}},wn=class extends _0x5cf544{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a1e11){super(_0x5a1e11),this['result']='end',_0x5a1e11['editing']['view']['_overlayModeHint']='auto',_0x5a1e11['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0xd0934d){return void 0x0!==_0xd0934d['getRootsAttributes'];}async function Bn(_0x4be9ef,_0x346492,_0x281efc){const _0x332e78=_0x9d7e32(_0x4be9ef,Mn);if(_0x332e78['plugins']['push'](on,wn),Fn(_0x4be9ef)){_0x332e78['roots']=Object['create'](null);for(const _0x455bd8 of _0x4be9ef['model']['document']['getRootNames']())_0x332e78['roots'][_0x455bd8]={'modelAttributes':_0x4be9ef['getRootAttributes'](_0x455bd8)};}const _0x595ae3=document['createDocumentFragment'](),_0x530812=_0x4be9ef['config']['get']('trackChangesData')['editorCreator'],_0x287444=await _0x530812(_0x332e78,()=>function(_0x34fd1b){const _0x4f05ed=document['createElement']('div');return _0x34fd1b['appendChild'](_0x4f05ed),_0x4f05ed;}(_0x595ae3));!function(_0x24e504,_0x10fa20){const _0x3dc94c=_0x24e504['model']['document']['getRootNames']()['reduce']((_0x165423,_0x279937)=>(_0x165423[_0x279937]=_0x24e504['data']['get']({'rootName':_0x279937}),_0x165423),{}),_0x5bdc57=_0x24e504['plugins']['get']('Users')['users']['map'](_0x56f416=>({'id':_0x56f416['id'],'name':_0x56f416['name']})),_0x2c36a0=_0x24e504['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4af5f5=_0x24e504['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fdcce=_0x10fa20['plugins']['get']('Users'),_0x36f242=_0x10fa20['plugins']['get']('TrackChangesEditing'),_0x58c325=_0x10fa20['plugins']['get']('CommentsRepository');for(const _0x2a1df8 of _0x58c325['getCommentThreads']())_0x2a1df8['remove']();for(const _0x5db580 of _0x5bdc57)_0x3fdcce['getUser'](_0x5db580['id'])||_0x3fdcce['addUser'](_0x5db580);_0x3fdcce['me']||_0x3fdcce['useAnonymousUser']();for(const _0x50c2de of _0x4af5f5)_0x58c325['addCommentThread'](_0x50c2de);for(const _0x1a5872 of _0x2c36a0)_0x36f242['addSuggestionData'](_0x1a5872);_0x10fa20['data']['set'](_0x3dc94c);}(_0x4be9ef,_0x287444),_0x287444['execute'](_0x346492?'acceptAllSuggestions':'discardAllSuggestions');const _0x135269=Fn(_0x287444)?_0x287444['getFullData'](_0x281efc):_0x287444['data']['get'](_0x281efc);return await _0x287444['destroy'](),_0x135269;}var vn=class extends _0x4c905d{options;constructor(_0x4e7bb5,_0x325409){super(_0x4e7bb5),this['options']=_0x325409,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(_0x1a9a56,_0xc07cdf){if(!this['element'])return;const _0x4230be=[];for(const [_0x379e84,_0x10a03c]of _0x1a9a56){const _0x523a6c=document['createElement']('div');_0x523a6c['setAttribute']('data-ck-root-name',_0x379e84),_0x523a6c['className']=_0x10a03c['classes']+'\x20ck-track-changes-preview__root-container',_0x523a6c['innerHTML']=_0x10a03c['content'],_0x4230be['push'](_0x523a6c);}_0xc07cdf(this['element'],_0x4230be),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x3b0b10{constructor(_0x26e631){super(_0x26e631),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x3c6e11=this['editor'],_0x1a0f58=_0x3c6e11['locale'],_0x5f1a35=_0x3c6e11['plugins']['get']('Dialog');let _0x46bb50;const _0x1a8fc8=function(_0x37adf9){const _0x3372d9={};if('editables'in _0x37adf9['ui']['view']){for(const [_0x2b06c2,_0x261be1]of Object['entries'](_0x37adf9['ui']['view']['editables']))_0x3372d9[_0x2b06c2]=_0x261be1['element'];}else _0x3372d9[_0x37adf9['model']['document']['getRootNames']()[0x0]]=_0x37adf9['ui']['view']['editable']['element'];return _0x3372d9;}(_0x3c6e11),_0x535f3b=function(_0x5407bd){let _0x31fc30=0x0;for(const _0x502d57 of Object['values'](_0x5407bd))_0x31fc30=Math['max'](_0x31fc30,_0x502d57['getBoundingClientRect']()['width']);let _0x48df60=0x0;for(const _0x32e9a1 of Object['values'](_0x5407bd))_0x48df60+=_0x32e9a1['getBoundingClientRect']()['height'];const _0x20124e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x31fc30,'height':Math['min'](_0x48df60,_0x20124e)};}(_0x1a8fc8);_0x5f1a35['show']({'id':'finalContentPreview','title':Mt(_0x1a0f58,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x1a0f58,{'dialogRects':_0x535f3b}),'onHide':()=>{_0x46bb50['detachFromDom']();},'onShow':()=>{_0x3c6e11['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3e9a86=>{const _0x145e67=this['_standarizeRootsData'](_0x3e9a86,_0x3c6e11,_0x1a8fc8);_0x5f1a35['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x145e67,_0x3c6e11['config']['get']('trackChanges.preview.renderFunction'));}),_0x46bb50=new _0x108842(_0x1a0f58,[_0x5f1a35['view']]),_0x46bb50['attachToDom'](),_0x46bb50['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3c6e11['once']('destroy',()=>{_0x46bb50['detachFromDom']();});const _0x5a7544=_0x5f1a35['view']['headerView']['class'];_0x5f1a35['view']['headerView']['class']=_0x5a7544?_0x5a7544+'\x20ck-reset_all':'ck-reset_all',_0x5f1a35['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5f1a35['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2884a0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x42a9a2=_0x2884a0['previewMode'],_0x348f82={};if('$labels'===_0x42a9a2){for(const _0x55eb85 of _0x2884a0['getMergeFieldsIds']())_0x348f82[_0x55eb85]=_0x2884a0['getLabel'](_0x55eb85)||_0x55eb85;}else{const _0x1d8031='$defaultValues'===_0x42a9a2?_0x2884a0['getDefaultValues']():_0x2884a0['getDataSetValues'](_0x42a9a2,!0x0);for(const _0x1b75ae of Object['entries'](_0x1d8031)){const [_0x2575c1,_0x1fd0a1]=_0x1b75ae;_0x348f82[_0x2575c1]=null!==_0x1fd0a1?_0x1fd0a1:_0x2884a0['getLabel'](_0x2575c1)||_0x2575c1;}}return{'mergeFieldsData':_0x348f82};}_standarizeRootsData(_0x22683f,_0x2f16d5,_0x20ba2c){let _0x3dadec;_0x3dadec='string'==typeof _0x22683f?{[_0x2f16d5['model']['document']['getRootNames']()[0x0]]:_0x22683f}:_0x22683f;const _0x514f3e=this['_fixMediaEmbeds'](_0x3dadec,_0x2f16d5);return function(_0x2b149c,_0x46e633){for(const [_0x2faf88,_0x32ba1b]of _0x2b149c)_0x32ba1b['classes']=_0x46e633[_0x2faf88]['classList']['value']['replace']('ck-focused','');return _0x2b149c;}(this['_sortRoots'](_0x2f16d5)['reduce']((_0x15a806,_0x47451c)=>(_0x15a806['push']([_0x47451c,{'content':_0x514f3e[_0x47451c],'classes':''}]),_0x15a806),[]),_0x20ba2c);}['_fixMediaEmbeds'](_0x44032f,_0x2a05ed){if(!_0x2a05ed['plugins']['has']('MediaEmbedEditing'))return _0x44032f;const _0x4b274c=_0x2a05ed['plugins']['get']('MediaEmbedEditing');for(const [_0x5725b4,_0x3dff3b]of Object['entries'](_0x44032f)){const _0x243f9f=document['createElement']('div');_0x243f9f['innerHTML']=_0x3dff3b,_0x243f9f['querySelectorAll']('figure.media')['forEach'](_0x55f408=>{const _0xcf54dd=_0x55f408['querySelector']('oembed');if(_0xcf54dd){const _0x25bf7b=_0xcf54dd['getAttribute']('url');if(_0x25bf7b){const _0x2f47ee=_0x4b274c['registry']['getMediaViewElement'](new ot(_0x2a05ed['editing']['view']['document']),_0x25bf7b,{'elementName':'','renderForEditingView':!0x0}),_0x150d3f=document['createElement']('div');_0x150d3f['classList']['add']('ck-media__wrapper'),_0x2f47ee['render'](_0x150d3f,_0x2a05ed['editing']['view']['domConverter']),_0xcf54dd['replaceWith'](_0x150d3f);}}}),_0x44032f[_0x5725b4]=_0x243f9f['innerHTML'];}return _0x44032f;}_sortRoots(_0x58e9f4){if(!function(_0x258119){return void 0x0!==_0x258119['getRootsAttributes'];}(_0x58e9f4))return _0x58e9f4['model']['document']['getRootNames']();const _0x1bed39=[],_0x1f2a10=new Map();for(const _0x5be5e8 of _0x58e9f4['model']['document']['getRootNames']()){const _0x7b6c9e=_0x58e9f4['editing']['view']['getDomRoot'](_0x5be5e8)['getClientRects']()['item'](0x0);_0x1bed39['push'](_0x5be5e8),_0x1f2a10['set'](_0x5be5e8,_0x7b6c9e);}return _0x1bed39['sort']((_0x286c6a,_0x4ee4f5)=>{const _0x105072=_0x1f2a10['get'](_0x286c6a),_0x152389=_0x1f2a10['get'](_0x4ee4f5);return _0x105072['y']-_0x152389['y']||_0x105072['x']-_0x152389['x'];}),_0x1bed39;}},Un=class extends _0x5cf544{static get requires(){return[On,_0x1f1a23];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b970b){super(_0x3b970b),_0x3b970b['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x3b970b['config']['define']('trackChanges.preview.renderFunction',(_0x2bb3be,_0x39dafa)=>{for(const _0x227d44 of _0x39dafa)_0x2bb3be['appendChild'](_0x227d44);});}};export{_t as AcceptSuggestionCommand,kn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Cn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,Tt as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};